@tempots/beatui 0.50.3 → 0.51.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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { prop as G, html as d, attr as s, computedOf as C, Fragment as E, OnDispose as Y, When as J, Value as h, Use as ne, Empty as R, input as se, on as $, emitValue as W, WithElement as ae, style as k, aria as B, OneOfValue as sn, Unless as ln, coalesce as Te, ForEach as _e, Ensure as Ye, OneOfType as Dt, dataAttr as nt, NotEmpty as on, emitValueAsDate as cn, Portal as at, makeProviderMark as Pt, WithBrowserCtx as un, renderWithContext as dn, WithProvider as fn, Task as pn, Provide as Lt, MapSignal as At, svg as ut, svgAttr as dt } from "@tempots/dom";
1
+ import { prop as G, html as d, attr as s, computedOf as S, Fragment as E, OnDispose as Y, When as J, Value as m, Use as ne, Empty as R, input as se, on as $, emitValue as W, WithElement as ae, style as C, aria as B, OneOfValue as sn, Unless as ln, coalesce as Te, ForEach as _e, Ensure as Ye, OneOfType as Dt, dataAttr as nt, NotEmpty as on, emitValueAsDate as cn, Portal as at, makeProviderMark as Pt, WithBrowserCtx as un, renderWithContext as dn, WithProvider as fn, Task as pn, Provide as Lt, MapSignal as At, svg as ut, svgAttr as dt } from "@tempots/dom";
2
2
  import { Use as ss } from "@tempots/dom";
3
3
  import { PopOver as bn, ElementRect as Ee, WindowSize as gn, Query as mn, Location as Ve, NavigationService as hn, Anchor as rt } from "@tempots/ui";
4
4
  import { i as ce, t as we, h as ft, e as de, a as fe, I as ee, b as te, C as le, B as pt, c as ze, L as st, j as bt, k as gt } from "./translations-DoBmuZ5v.js";
@@ -117,7 +117,7 @@ function qa({
117
117
  }, ...i) {
118
118
  return d.span(
119
119
  s.class(
120
- C(
120
+ S(
121
121
  t,
122
122
  a,
123
123
  r,
@@ -132,7 +132,7 @@ function qa({
132
132
  )
133
133
  ),
134
134
  s.style(
135
- C(
135
+ S(
136
136
  e,
137
137
  n
138
138
  )(
@@ -148,41 +148,51 @@ function qa({
148
148
  function Za({
149
149
  onChange: e,
150
150
  accept: t = "*/*",
151
- content: n,
152
- disabled: a = !1
151
+ onDragContent: n,
152
+ content: a,
153
+ disabled: r = !1
153
154
  }) {
154
- const r = G(!1), l = G([]);
155
- let i = 0;
156
- const u = (b) => b.dataTransfer?.types.includes("Files") ?? !1, c = (b, m) => m === "*/*" ? !0 : m.split(",").map((y) => y.trim()).some((y) => {
157
- if (y === "*/*") return !0;
158
- if (y.endsWith("/*")) {
159
- const g = y.slice(0, -2);
160
- return b.type.startsWith(g + "/");
155
+ const l = G(!1), i = G([]);
156
+ let u = 0;
157
+ const c = (b) => b.dataTransfer?.types.includes("Files") ?? !1, o = (b, w) => w === "*/*" ? !0 : w.split(",").map((k) => k.trim()).some((k) => {
158
+ if (k === "*/*") return !0;
159
+ if (k.endsWith("/*")) {
160
+ const T = k.slice(0, -2);
161
+ return b.type.startsWith(T + "/");
161
162
  }
162
- return b.type === y || b.name.endsWith(y);
163
- }), o = (b) => {
164
- h.get(a) || u(b) && (b.preventDefault(), b.stopPropagation(), i++, i === 1 && (r.value = !0));
165
- }, f = (b) => {
166
- h.get(a) || u(b) && (b.preventDefault(), b.stopPropagation(), b.dataTransfer != null && (b.dataTransfer.dropEffect = "copy"));
163
+ return b.type === k || b.name.endsWith(k);
164
+ }), f = (b) => {
165
+ m.get(r) || c(b) && (b.preventDefault(), b.stopPropagation(), u++, u === 1 && (l.value = !0));
167
166
  }, p = (b) => {
168
- h.get(a) || u(b) && (b.preventDefault(), b.stopPropagation(), i--, i === 0 && (r.value = !1));
167
+ m.get(r) || c(b) && (b.preventDefault(), b.stopPropagation(), b.dataTransfer != null && (b.dataTransfer.dropEffect = "copy"));
169
168
  }, x = (b) => {
170
- if (h.get(a) || !u(b)) return;
171
- b.preventDefault(), b.stopPropagation(), i = 0, r.value = !1;
172
- const m = Array.from(b.dataTransfer?.files ?? []);
173
- if (m.length > 0) {
174
- const w = h.get(t), y = m.filter(
175
- (g) => c(g, w)
169
+ m.get(r) || c(b) && (b.preventDefault(), b.stopPropagation(), u--, u === 0 && (l.value = !1));
170
+ }, v = (b) => {
171
+ if (m.get(r) || !c(b)) return;
172
+ b.preventDefault(), b.stopPropagation(), u = 0, l.value = !1;
173
+ const w = Array.from(b.dataTransfer?.files ?? []);
174
+ if (w.length > 0) {
175
+ const g = m.get(t), k = w.filter(
176
+ (T) => o(T, g)
176
177
  );
177
- y.length > 0 && (l.value = y, e(y));
178
+ k.length > 0 && (i.value = k, e(k));
178
179
  }
179
180
  };
180
- return typeof document < "u" && (document.addEventListener("dragenter", o), document.addEventListener("dragover", f), document.addEventListener("dragleave", p), document.addEventListener("drop", x)), E(
181
- Y(() => {
182
- typeof document < "u" && (document.removeEventListener("dragenter", o), document.removeEventListener("dragover", f), document.removeEventListener("dragleave", p), document.removeEventListener("drop", x)), i = 0;
183
- }, r, l),
181
+ typeof document < "u" && (document.addEventListener("dragenter", f), document.addEventListener("dragover", p), document.addEventListener("dragleave", x), document.addEventListener("drop", v));
182
+ const y = () => {
183
+ typeof document < "u" && (document.removeEventListener("dragenter", f), document.removeEventListener("dragover", p), document.removeEventListener("dragleave", x), document.removeEventListener("drop", v)), u = 0;
184
+ }, h = () => {
185
+ const b = document.createElement("input");
186
+ b.type = "file", b.multiple = !0, b.accept = m.get(t), b.style.display = "none", document.body.appendChild(b), b.addEventListener("change", () => {
187
+ const w = Array.from(b.files ?? []);
188
+ w.length > 0 && (i.value = w, e(w)), document.body.removeChild(b);
189
+ }), b.click();
190
+ };
191
+ return E(
192
+ Y(y, l, i),
184
193
  // Render overlay content to body when dragging (if content is provided)
185
- n != null ? J(r, () => n({ isDragging: r, files: l })) : null
194
+ n != null ? J(l, () => n({ files: i })) : null,
195
+ a != null ? a({ isDragging: l, files: i, selectFiles: h }) : null
186
196
  );
187
197
  }
188
198
  function An(e, t, n, a, r, l) {
@@ -204,7 +214,7 @@ function Ga({
204
214
  withRowBorders: u = !0,
205
215
  borderRadius: c
206
216
  } = {}, ...o) {
207
- const f = C(
217
+ const f = S(
208
218
  e,
209
219
  t,
210
220
  n,
@@ -212,22 +222,22 @@ function Ga({
212
222
  i,
213
223
  u
214
224
  )(
215
- (v, b, m, w, y, g) => An(
225
+ (v, y, h, b, w, g) => An(
216
226
  v ?? "md",
227
+ y ?? !1,
228
+ h ?? !1,
217
229
  b ?? !1,
218
- m ?? !1,
219
230
  w ?? !1,
220
- y ?? !1,
221
231
  g ?? !0
222
232
  )
223
- ), p = C(
233
+ ), p = S(
224
234
  n,
225
235
  a,
226
236
  l
227
- )((v, b, m) => {
228
- const w = ["bc-table-container"];
229
- return v && w.push("bc-table-container--sticky"), b && w.push("bc-table-container--full-width"), m && w.push("bc-table-container--with-table-border"), w.join(" ");
230
- }), x = C(c)(
237
+ )((v, y, h) => {
238
+ const b = ["bc-table-container"];
239
+ return v && b.push("bc-table-container--sticky"), y && b.push("bc-table-container--full-width"), h && b.push("bc-table-container--with-table-border"), b.join(" ");
240
+ }), x = S(c)(
231
241
  (v) => Bn(v)
232
242
  );
233
243
  return d.div(
@@ -263,13 +273,13 @@ const jt = ({
263
273
  disabled: l
264
274
  }) => d.span(
265
275
  s.class(
266
- C(
276
+ S(
267
277
  a ?? "md",
268
278
  l ?? !1
269
279
  )((i, u) => Vn(i, u))
270
280
  ),
271
281
  s.style(
272
- C(t)(
282
+ S(t)(
273
283
  (i) => Mn(i ?? "base")
274
284
  )
275
285
  ),
@@ -284,7 +294,7 @@ const jt = ({
284
294
  label: i.$.removeItem,
285
295
  color: "white",
286
296
  disabled: l,
287
- onClick: () => n?.(h.get(e))
297
+ onClick: () => n?.(m.get(e))
288
298
  },
289
299
  s.class("bc-tag__close")
290
300
  )
@@ -342,12 +352,12 @@ function Nn({
342
352
  se.color(
343
353
  ae((r) => (a = r, R)),
344
354
  s.value(e),
345
- k.width("4px"),
346
- k.height("4px"),
355
+ C.width("4px"),
356
+ C.height("4px"),
347
357
  t != null ? $.change(W(t)) : R,
348
358
  n != null ? $.input(W(n)) : R
349
359
  ),
350
- s.style(h.map(e, (r) => `background-color: ${r}`))
360
+ s.style(m.map(e, (r) => `background-color: ${r}`))
351
361
  )
352
362
  );
353
363
  }
@@ -387,44 +397,44 @@ function Ze(e) {
387
397
  hasPopup: p = "dialog"
388
398
  } = e;
389
399
  return bn((x, v) => {
390
- const b = Me({
400
+ const y = Me({
391
401
  initialStatus: "closed"
392
- }), m = he("flyout"), w = G(!1);
393
- let y = null, g = null, S = !1;
394
- function _() {
395
- V != null && (clearTimeout(V), V = null), I != null && (clearTimeout(I), I = null), g && (g(), g = null), y && (document.removeEventListener("keydown", y), y = null), w.set(!1), S = !1;
402
+ }), h = he("flyout"), b = G(!1);
403
+ let w = null, g = null, k = !1;
404
+ function T() {
405
+ V != null && (clearTimeout(V), V = null), I != null && (clearTimeout(I), I = null), g && (g(), g = null), w && (document.removeEventListener("keydown", w), w = null), b.set(!1), k = !1;
396
406
  }
397
407
  function L() {
398
- h.get(c) && (y = (F) => {
408
+ m.get(c) && (w = (F) => {
399
409
  F.key === "Escape" && M();
400
- }, document.addEventListener("keydown", y)), S = !0, w.set(!0), x({
410
+ }, document.addEventListener("keydown", w)), k = !0, b.set(!0), x({
401
411
  placement: n ?? "top",
402
412
  mainAxisOffset: l,
403
413
  crossAxisOffset: i,
404
414
  onClickOutside: () => {
405
- h.get(c) && M();
415
+ m.get(c) && M();
406
416
  },
407
417
  arrow: o,
408
418
  content: ae((F) => {
409
- b.setElement(F), g = We(() => {
410
- b.open(), g = null;
419
+ y.setElement(F), g = We(() => {
420
+ y.open(), g = null;
411
421
  });
412
422
  const O = (H) => {
413
- h.get(c) && H.key === "Escape" && (H.preventDefault(), H.stopPropagation(), M(), w.set(!1));
423
+ m.get(c) && H.key === "Escape" && (H.preventDefault(), H.stopPropagation(), M(), b.set(!1));
414
424
  };
415
425
  return document.addEventListener("keydown", O, !0), E(
416
426
  Y(() => {
417
- _(), document.removeEventListener("keydown", O, !0);
427
+ T(), document.removeEventListener("keydown", O, !0);
418
428
  }),
419
429
  s.class("bc-flyout-container"),
420
- s.id(m),
430
+ s.id(h),
421
431
  s.tabindex(-1),
422
432
  // Make focusable for screen readers
423
433
  d.div(
424
434
  s.class("bc-flyout"),
425
435
  tt({
426
- animation: h.map(n, On),
427
- status: b.status
436
+ animation: m.map(n, On),
437
+ status: y.status
428
438
  }),
429
439
  f ? s.role(f) : s.role("dialog"),
430
440
  // Default to dialog role
@@ -436,38 +446,38 @@ function Ze(e) {
436
446
  }
437
447
  let V = null;
438
448
  function P() {
439
- if (V != null && (clearTimeout(V), V = null), I != null && (clearTimeout(I), I = null), b.isOpened.value || b.isOpening.value || b.isStartOpening.value)
449
+ if (V != null && (clearTimeout(V), V = null), I != null && (clearTimeout(I), I = null), y.isOpened.value || y.isOpening.value || y.isStartOpening.value)
440
450
  return;
441
- if (b.isClosing.value || b.isStartClosing.value) {
442
- b.open();
451
+ if (y.isClosing.value || y.isStartClosing.value) {
452
+ y.open();
443
453
  return;
444
454
  }
445
- const F = h.get(a);
455
+ const F = m.get(a);
446
456
  V = setTimeout(() => {
447
457
  V = null, L();
448
458
  }, F);
449
459
  }
450
460
  let I = null;
451
461
  function M() {
452
- if (V != null && (clearTimeout(V), V = null), I != null && (clearTimeout(I), I = null), w.set(!1), g && (g(), g = null, S)) {
453
- v(), _();
462
+ if (V != null && (clearTimeout(V), V = null), I != null && (clearTimeout(I), I = null), b.set(!1), g && (g(), g = null, k)) {
463
+ v(), T();
454
464
  return;
455
465
  }
456
- const F = h.get(r);
466
+ const F = m.get(r);
457
467
  I = setTimeout(() => {
458
- I = null, b.close(), b.listenOnClosed(() => {
459
- v(), _();
468
+ I = null, y.close(), y.listenOnClosed(() => {
469
+ v(), T();
460
470
  });
461
471
  }, F);
462
472
  }
463
473
  return ae((F) => {
464
474
  const O = () => {
465
- P(), w.set(!0);
475
+ P(), b.set(!0);
466
476
  }, H = () => {
467
- M(), w.set(!1);
477
+ M(), b.set(!1);
468
478
  }, oe = E(
469
- B.expanded(w),
470
- B.controls(m),
479
+ B.expanded(b),
480
+ B.controls(h),
471
481
  B.haspopup(
472
482
  p
473
483
  )
@@ -480,7 +490,7 @@ function Ze(e) {
480
490
  const Q = u;
481
491
  return E(
482
492
  oe,
483
- Y(w, b),
493
+ Y(b, y),
484
494
  sn(Q, {
485
495
  "hover-focus": () => E(
486
496
  $.mouseenter(() => O()),
@@ -547,27 +557,27 @@ function Xa({
547
557
  const v = l != null;
548
558
  return d.div(
549
559
  s.class(
550
- C(
560
+ S(
551
561
  a,
552
562
  r,
553
563
  i
554
564
  )(
555
- (b, m, w) => Rn(
556
- b ?? !1,
557
- m ?? !1,
558
- w ?? "md",
565
+ (y, h, b) => Rn(
566
+ y ?? !1,
567
+ h ?? !1,
568
+ b ?? "md",
559
569
  v
560
570
  )
561
571
  )
562
572
  ),
563
573
  s.style(
564
- C(
574
+ S(
565
575
  o,
566
576
  f,
567
577
  p,
568
578
  x
569
579
  )(
570
- (b, m, w, y) => Fn(b, m, w, y)
580
+ (y, h, b, w) => Fn(y, h, b, w)
571
581
  )
572
582
  ),
573
583
  J(
@@ -694,16 +704,16 @@ function be(e, t) {
694
704
  return `bc-panel ${(Array.isArray(e) ? e : [e]).map((a) => `bc-panel--side-${a}`).join(" ")} bc-panel--shadow-${t}`;
695
705
  }
696
706
  function ye(e) {
697
- const t = h.toSignal(e).map(
707
+ const t = m.toSignal(e).map(
698
708
  (a) => de(a, "lighter", "light")
699
- ), n = h.toSignal(e).map(
709
+ ), n = m.toSignal(e).map(
700
710
  (a) => de(a, "lighter", "dark")
701
711
  );
702
712
  return E(
703
- k.variable("--panel-bg", t.$.backgroundColor),
704
- k.variable("--panel-text", t.$.textColor),
705
- k.variable("--panel-bg-dark", n.$.backgroundColor),
706
- k.variable("--panel-text-dark", n.$.textColor)
713
+ C.variable("--panel-bg", t.$.backgroundColor),
714
+ C.variable("--panel-text", t.$.textColor),
715
+ C.variable("--panel-bg-dark", n.$.backgroundColor),
716
+ C.variable("--panel-text-dark", n.$.textColor)
707
717
  );
708
718
  }
709
719
  const me = {
@@ -917,38 +927,38 @@ function tr({
917
927
  vertical: a,
918
928
  horizontal: r,
919
929
  is: u
920
- }), o = i.map(c), f = r.header != null || a.menu != null || a.aside != null, p = C(
930
+ }), o = i.map(c), f = r.header != null || a.menu != null || a.aside != null, p = S(
921
931
  a.aside != null,
922
932
  o
923
- )((g, { displayAside: S }) => g && !S), x = C(
933
+ )((g, { displayAside: k }) => g && !k), x = S(
924
934
  a.menu != null,
925
935
  o
926
- )((g, { displayMenu: S }) => g && !S), v = Me(), b = Me(), m = G(0), w = C(
936
+ )((g, { displayMenu: k }) => g && !k), v = Me(), y = Me(), h = G(0), b = S(
927
937
  a.menu != null,
928
938
  o,
929
939
  v.display
930
- )(Gn), y = C(
940
+ )(Gn), w = S(
931
941
  a.aside != null,
932
942
  o,
933
- b.display
943
+ y.display
934
944
  )(Kn);
935
945
  return d.div(
936
- Y(m, v, b, o),
937
- k.display("grid"),
938
- k.height("100%"),
939
- k.width("100%"),
940
- k.gridTemplateColumns(o.$.columns),
941
- k.gridTemplateRows(o.$.rows),
942
- k.gridTemplateAreas(o.$.areas),
943
- k.gridColumnGap("0"),
944
- k.gridRowGap("0"),
946
+ Y(h, v, y, o),
947
+ C.display("grid"),
948
+ C.height("100%"),
949
+ C.width("100%"),
950
+ C.gridTemplateColumns(o.$.columns),
951
+ C.gridTemplateRows(o.$.rows),
952
+ C.gridTemplateAreas(o.$.areas),
953
+ C.gridColumnGap("0"),
954
+ C.gridRowGap("0"),
945
955
  n.banner ? d.header(
946
956
  s.class(
947
957
  be("none", n.banner.shadow ?? "none")
948
958
  ),
949
959
  ye(n.banner.color ?? "white"),
950
- k.height("100%"),
951
- k.gridArea("banner"),
960
+ C.height("100%"),
961
+ C.gridArea("banner"),
952
962
  n.banner.content
953
963
  ) : null,
954
964
  d.header(
@@ -956,21 +966,21 @@ function tr({
956
966
  be("bottom", n.header?.shadow ?? "none")
957
967
  ),
958
968
  ye(n.header?.color ?? "white"),
959
- k.zIndex("20"),
960
- k.display(f ? "block" : "none"),
961
- k.gridArea("header"),
962
- Ee((g) => (g.$.bottom.feedProp(m), null)),
969
+ C.zIndex("20"),
970
+ C.display(f ? "block" : "none"),
971
+ C.gridArea("header"),
972
+ Ee((g) => (g.$.bottom.feedProp(h), null)),
963
973
  d.div(
964
- k.display("flex"),
965
- k.height("100%"),
974
+ C.display("flex"),
975
+ C.height("100%"),
966
976
  d.div(
967
- k.display(
977
+ C.display(
968
978
  x.map((g) => g ? "flex" : "none")
969
979
  ),
970
- k.alignItems("center"),
971
- k.justifyContent("center"),
972
- k.height("100%"),
973
- k.width("60px"),
980
+ C.alignItems("center"),
981
+ C.justifyContent("center"),
982
+ C.height("100%"),
983
+ C.width("60px"),
974
984
  pt(
975
985
  {
976
986
  onClick: () => v.toggle(),
@@ -986,21 +996,21 @@ function tr({
986
996
  )
987
997
  ),
988
998
  d.div(
989
- k.height("100%"),
990
- k.flexGrow("1"),
999
+ C.height("100%"),
1000
+ C.flexGrow("1"),
991
1001
  n.header?.content
992
1002
  ),
993
1003
  d.div(
994
- k.alignItems("center"),
995
- k.justifyContent("center"),
996
- k.height("100%"),
997
- k.width("60px"),
998
- k.display(
1004
+ C.alignItems("center"),
1005
+ C.justifyContent("center"),
1006
+ C.height("100%"),
1007
+ C.width("60px"),
1008
+ C.display(
999
1009
  p.map((g) => g ? "flex" : "none")
1000
1010
  ),
1001
1011
  pt(
1002
1012
  {
1003
- onClick: () => b.toggle(),
1013
+ onClick: () => y.toggle(),
1004
1014
  roundedness: "full",
1005
1015
  variant: "light",
1006
1016
  color: "base"
@@ -1010,7 +1020,7 @@ function tr({
1010
1020
  { icon: "line-md/chevron-left" },
1011
1021
  s.style("transition: transform 0.2s ease-in-out"),
1012
1022
  s.style(
1013
- b.display.map(
1023
+ y.display.map(
1014
1024
  (g) => `transform: rotate(${g ? 180 : 0}deg)`
1015
1025
  )
1016
1026
  )
@@ -1021,13 +1031,13 @@ function tr({
1021
1031
  ),
1022
1032
  n.menu ? d.nav(
1023
1033
  ae((g) => v.setElement(g)),
1024
- k.zIndex("10"),
1034
+ C.zIndex("10"),
1025
1035
  // Add ARIA attributes for navigation landmark
1026
1036
  B.label(l.$.mainNavigation),
1027
1037
  s.role("navigation"),
1028
- k.overflow("hidden"),
1038
+ C.overflow("hidden"),
1029
1039
  s.class(
1030
- w.map(
1040
+ b.map(
1031
1041
  (g) => g === "float" ? be(
1032
1042
  "right",
1033
1043
  n.menu?.shadow ?? "md"
@@ -1038,40 +1048,40 @@ function tr({
1038
1048
  )
1039
1049
  ),
1040
1050
  ye(n.menu?.color ?? "white"),
1041
- k.height(
1042
- w.map(
1051
+ C.height(
1052
+ b.map(
1043
1053
  (g) => g === "float" ? "auto" : "100%"
1044
1054
  )
1045
1055
  ),
1046
- k.overflow("hidden"),
1047
- k.gridArea("menu"),
1048
- k.display(
1049
- C(
1050
- w,
1056
+ C.overflow("hidden"),
1057
+ C.gridArea("menu"),
1058
+ C.display(
1059
+ S(
1060
+ b,
1051
1061
  v.status
1052
- )((g, S) => g === "none" && S === "closed" ? "none" : "block")
1062
+ )((g, k) => g === "none" && k === "closed" ? "none" : "block")
1053
1063
  ),
1054
- k.position(
1055
- C(
1056
- w,
1064
+ C.position(
1065
+ S(
1066
+ b,
1057
1067
  v.status
1058
- )((g, S) => g === "float" || g === "none" && S !== "closed" ? "fixed" : "initial")
1068
+ )((g, k) => g === "float" || g === "none" && k !== "closed" ? "fixed" : "initial")
1059
1069
  ),
1060
- k.top(m.map((g) => `${g}px`)),
1070
+ C.top(h.map((g) => `${g}px`)),
1061
1071
  tt({
1062
1072
  animation: { slide: "right" },
1063
- status: C(
1064
- w,
1073
+ status: S(
1074
+ b,
1065
1075
  v.status
1066
- )((g, S) => g === "block" ? "opened" : S)
1076
+ )((g, k) => g === "block" ? "opened" : k)
1067
1077
  }),
1068
- k.width(Te(n.menu?.width, o.$.menuWidth)),
1069
- k.bottom("0"),
1078
+ C.width(Te(n.menu?.width, o.$.menuWidth)),
1079
+ C.bottom("0"),
1070
1080
  n.menu?.content
1071
1081
  ) : null,
1072
1082
  n.mainHeader ? d.header(
1073
- k.height("100%"),
1074
- k.gridArea("mainHeader"),
1083
+ C.height("100%"),
1084
+ C.gridArea("mainHeader"),
1075
1085
  s.class(
1076
1086
  be(
1077
1087
  "none",
@@ -1082,9 +1092,9 @@ function tr({
1082
1092
  n.mainHeader.content
1083
1093
  ) : null,
1084
1094
  d.main(
1085
- k.height("100%"),
1086
- k.overflow("hidden"),
1087
- k.gridArea("main"),
1095
+ C.height("100%"),
1096
+ C.overflow("hidden"),
1097
+ C.gridArea("main"),
1088
1098
  s.class(
1089
1099
  be("none", n.main?.shadow ?? "none")
1090
1100
  ),
@@ -1092,8 +1102,8 @@ function tr({
1092
1102
  n.main.content
1093
1103
  ),
1094
1104
  n.mainFooter ? d.footer(
1095
- k.height("100%"),
1096
- k.gridArea("mainFooter"),
1105
+ C.height("100%"),
1106
+ C.gridArea("mainFooter"),
1097
1107
  s.class(
1098
1108
  be(
1099
1109
  "none",
@@ -1105,51 +1115,51 @@ function tr({
1105
1115
  ) : null,
1106
1116
  n.aside ? d.aside(
1107
1117
  ae((g) => {
1108
- b.setElement(g);
1118
+ y.setElement(g);
1109
1119
  }),
1110
- k.zIndex("10"),
1120
+ C.zIndex("10"),
1111
1121
  // Add ARIA attributes for aside landmark
1112
1122
  B.label(l.$.sidebar),
1113
1123
  s.role("complementary"),
1114
1124
  s.class(
1115
- y.map(
1125
+ w.map(
1116
1126
  (g) => g === "float" ? be("left", "md") : be("left", "none")
1117
1127
  )
1118
1128
  ),
1119
1129
  ye("white"),
1120
- k.height("100%"),
1121
- k.gridArea("aside"),
1122
- k.display(
1123
- C(
1124
- y,
1125
- b.status
1126
- )((g, S) => g === "none" && S === "closed" ? "none" : "block")
1130
+ C.height("100%"),
1131
+ C.gridArea("aside"),
1132
+ C.display(
1133
+ S(
1134
+ w,
1135
+ y.status
1136
+ )((g, k) => g === "none" && k === "closed" ? "none" : "block")
1127
1137
  ),
1128
- k.position(
1129
- C(
1130
- y,
1131
- b.status
1132
- )((g, S) => g === "float" || g === "none" && S !== "closed" ? "fixed" : "initial")
1138
+ C.position(
1139
+ S(
1140
+ w,
1141
+ y.status
1142
+ )((g, k) => g === "float" || g === "none" && k !== "closed" ? "fixed" : "initial")
1133
1143
  ),
1134
- k.top(m.map((g) => `${g}px`)),
1144
+ C.top(h.map((g) => `${g}px`)),
1135
1145
  tt({
1136
1146
  animation: { slide: "left" },
1137
- status: C(
1138
- y,
1139
- b.status
1140
- )((g, S) => g === "block" ? "opened" : S)
1147
+ status: S(
1148
+ w,
1149
+ y.status
1150
+ )((g, k) => g === "block" ? "opened" : k)
1141
1151
  }),
1142
- k.width(
1152
+ C.width(
1143
1153
  Te(n.aside?.width, o.$.asideWidth)
1144
1154
  ),
1145
- k.bottom(m.map((g) => `${g}px`)),
1155
+ C.bottom(h.map((g) => `${g}px`)),
1146
1156
  n.aside.content
1147
1157
  ) : null,
1148
1158
  n.footer ? d.footer(
1149
1159
  s.class(be("top", "none")),
1150
1160
  ye("white"),
1151
- k.height("100%"),
1152
- k.gridArea("footer"),
1161
+ C.height("100%"),
1162
+ C.gridArea("footer"),
1153
1163
  n.footer.content
1154
1164
  ) : null
1155
1165
  );
@@ -1168,18 +1178,18 @@ function Qn(e) {
1168
1178
  }
1169
1179
  function ar({ gap: e = "lg" } = {}, ...t) {
1170
1180
  return d.div(
1171
- s.class(C(e)((n) => Qn(n ?? "lg"))),
1181
+ s.class(S(e)((n) => Qn(n ?? "lg"))),
1172
1182
  ...t
1173
1183
  );
1174
1184
  }
1175
1185
  function Xn({ open: e }, ...t) {
1176
1186
  return ae((n) => {
1177
1187
  const { status: a, setOpen: r, dispose: l } = Me({
1178
- initialStatus: h.get(e) ? "opened" : "closed",
1188
+ initialStatus: m.get(e) ? "opened" : "closed",
1179
1189
  element: n
1180
1190
  });
1181
- return h.on(e, r), Ee((i) => {
1182
- const u = G(null), c = C(
1191
+ return m.on(e, r), Ee((i) => {
1192
+ const u = G(null), c = S(
1183
1193
  a,
1184
1194
  i.$.height
1185
1195
  )((o, f) => o === "opened" && f > 0 ? f : null);
@@ -1207,7 +1217,7 @@ function Jn(e) {
1207
1217
  return `${e}px`;
1208
1218
  }
1209
1219
  function xt(e) {
1210
- return h.map(e, Jn);
1220
+ return m.map(e, Jn);
1211
1221
  }
1212
1222
  function rr({
1213
1223
  body: e,
@@ -1224,129 +1234,129 @@ function rr({
1224
1234
  sidebarStart: p,
1225
1235
  sidebarStartWidth: x = 0,
1226
1236
  sidebarEnd: v,
1227
- sidebarEndWidth: b = 0,
1228
- anchorMode: m = "container-edge"
1237
+ sidebarEndWidth: y = 0,
1238
+ anchorMode: h = "container-edge"
1229
1239
  }) {
1230
- const w = G(0n), y = G(0n), g = xt(r), S = xt(x), _ = G(16);
1240
+ const b = G(0n), w = G(0n), g = xt(r), k = xt(x), T = G(16);
1231
1241
  return d.div(
1232
1242
  Y(
1243
+ b.dispose,
1233
1244
  w.dispose,
1234
- y.dispose,
1235
- _.dispose
1245
+ T.dispose
1236
1246
  ),
1237
1247
  s.class("bc-nine-slice-container"),
1238
1248
  Ee((L) => {
1239
- const V = C(
1249
+ const V = S(
1240
1250
  L.$.width,
1241
1251
  x,
1242
- b
1243
- )((D, N, K) => D - N - K), P = C(
1252
+ y
1253
+ )((D, N, K) => D - N - K), P = S(
1244
1254
  L.$.height,
1245
1255
  r,
1246
1256
  c
1247
- )((D, N, K) => D - N - K), I = C(
1257
+ )((D, N, K) => D - N - K), I = S(
1248
1258
  t,
1249
1259
  V
1250
- )((D, N) => D > BigInt(N)), M = C(
1260
+ )((D, N) => D > BigInt(N)), M = S(
1251
1261
  n,
1252
1262
  P
1253
- )((D, N) => D > BigInt(N)), F = C(
1263
+ )((D, N) => D > BigInt(N)), F = S(
1254
1264
  V,
1255
1265
  M,
1256
- _
1257
- )((D, N, K) => N ? D - K : D), O = C(
1266
+ T
1267
+ )((D, N, K) => N ? D - K : D), O = S(
1258
1268
  P,
1259
1269
  I,
1260
- _
1261
- )((D, N, K) => N ? D - K : D), H = C(
1270
+ T
1271
+ )((D, N, K) => N ? D - K : D), H = S(
1262
1272
  t,
1263
1273
  F
1264
- )((D, N) => Number(D / BigInt(Math.max(1, N)))), oe = C(
1274
+ )((D, N) => Number(D / BigInt(Math.max(1, N)))), oe = S(
1265
1275
  n,
1266
1276
  O
1267
- )((D, N) => Number(D / BigInt(Math.max(1, N)))), Q = h.map(
1268
- m,
1277
+ )((D, N) => Number(D / BigInt(Math.max(1, N)))), Q = m.map(
1278
+ h,
1269
1279
  (D) => D === "body-end" || D === "body-end-bottom"
1270
1280
  ), U = J(
1271
1281
  Q,
1272
- () => k.left(
1273
- C(
1282
+ () => C.left(
1283
+ S(
1274
1284
  x,
1275
1285
  t,
1276
1286
  F,
1277
- b
1278
- )((D, N, K, T) => {
1287
+ y
1288
+ )((D, N, K, _) => {
1279
1289
  const A = D + Number(N), j = D + K, Z = Math.min(A, j);
1280
- return `${Math.max(D + T, Z)}px`;
1290
+ return `${Math.max(D + _, Z)}px`;
1281
1291
  })
1282
1292
  ),
1283
- () => k.right("0")
1284
- ), X = h.map(
1285
- m,
1293
+ () => C.right("0")
1294
+ ), X = m.map(
1295
+ h,
1286
1296
  (D) => D === "body-bottom" || D === "body-end-bottom"
1287
1297
  ), pe = J(
1288
1298
  X,
1289
- () => k.top(
1290
- C(
1299
+ () => C.top(
1300
+ S(
1291
1301
  r,
1292
1302
  n,
1293
1303
  O,
1294
1304
  c
1295
- )((D, N, K, T) => {
1305
+ )((D, N, K, _) => {
1296
1306
  const A = D + Number(N), j = D + K, Z = Math.min(A, j);
1297
- return `${Math.max(D + T, Z)}px`;
1307
+ return `${Math.max(D + _, Z)}px`;
1298
1308
  })
1299
1309
  ),
1300
- () => k.bottom("0")
1301
- ), Ne = C(
1310
+ () => C.bottom("0")
1311
+ ), Ne = S(
1302
1312
  M,
1303
- _
1304
- )((D, N) => D ? `${N}px` : "0"), ue = C(
1313
+ T
1314
+ )((D, N) => D ? `${N}px` : "0"), ue = S(
1305
1315
  I,
1306
- _
1307
- )((D, N) => D ? `${N}px` : "0"), Oe = k.transform(
1308
- C(
1309
- y,
1316
+ T
1317
+ )((D, N) => D ? `${N}px` : "0"), Oe = C.transform(
1318
+ S(
1310
1319
  w,
1320
+ b,
1311
1321
  I,
1312
1322
  M
1313
- )((D, N, K, T) => {
1314
- const A = K ? `translateX(-${D}px)` : "", j = T ? `translateY(-${N}px)` : "";
1323
+ )((D, N, K, _) => {
1324
+ const A = K ? `translateX(-${D}px)` : "", j = _ ? `translateY(-${N}px)` : "";
1315
1325
  return `${A} ${j}`.trim() || "none";
1316
1326
  })
1317
- ), Re = k.transform(
1318
- y.map((D) => `translateX(-${D}px)`)
1319
- ), ke = k.transform(
1320
- w.map((D) => `translateY(-${D}px)`)
1321
- ), Ae = C(
1327
+ ), Re = C.transform(
1328
+ w.map((D) => `translateX(-${D}px)`)
1329
+ ), ke = C.transform(
1330
+ b.map((D) => `translateY(-${D}px)`)
1331
+ ), Ae = S(
1322
1332
  n,
1323
1333
  O
1324
- )((D, N) => D - BigInt(Math.max(1, N))), Ce = C(
1334
+ )((D, N) => D - BigInt(Math.max(1, N))), Ce = S(
1325
1335
  t,
1326
1336
  F
1327
1337
  )((D, N) => D - BigInt(Math.max(1, N)));
1328
1338
  let z = null, Se = 0, Ie = 0;
1329
1339
  const Ge = () => {
1330
- const D = Ae.value, N = Ce.value, K = M.value, T = I.value;
1340
+ const D = Ae.value, N = Ce.value, K = M.value, _ = I.value;
1331
1341
  if (K && Ie !== 0) {
1332
1342
  const A = yt(
1333
1343
  Fe(0n, D),
1334
1344
  Fe(
1335
1345
  0n,
1336
- w.value + BigInt(Math.round(Ie))
1346
+ b.value + BigInt(Math.round(Ie))
1337
1347
  )
1338
1348
  );
1339
- w.set(A);
1349
+ b.set(A);
1340
1350
  }
1341
- if (T && Se !== 0) {
1351
+ if (_ && Se !== 0) {
1342
1352
  const A = yt(
1343
1353
  Fe(0n, N),
1344
1354
  Fe(
1345
1355
  0n,
1346
- y.value + BigInt(Math.round(Se))
1356
+ w.value + BigInt(Math.round(Se))
1347
1357
  )
1348
1358
  );
1349
- y.set(A);
1359
+ w.set(A);
1350
1360
  }
1351
1361
  Se = 0, Ie = 0, z = null;
1352
1362
  };
@@ -1354,7 +1364,7 @@ function rr({
1354
1364
  Y(
1355
1365
  I,
1356
1366
  M,
1357
- () => h.dispose(Q),
1367
+ () => m.dispose(Q),
1358
1368
  V,
1359
1369
  P,
1360
1370
  F,
@@ -1364,10 +1374,10 @@ function rr({
1364
1374
  Ne,
1365
1375
  ue,
1366
1376
  I.on((D) => {
1367
- D || y.set(0n);
1377
+ D || w.set(0n);
1368
1378
  }),
1369
1379
  M.on((D) => {
1370
- D || w.set(0n);
1380
+ D || b.set(0n);
1371
1381
  }),
1372
1382
  Ae.dispose,
1373
1383
  Ce.dispose,
@@ -1382,13 +1392,13 @@ function rr({
1382
1392
  }),
1383
1393
  d.div(
1384
1394
  s.class("bc-nine-slice-pane-container"),
1385
- k.right(Ne),
1386
- k.bottom(ue),
1395
+ C.right(Ne),
1396
+ C.bottom(ue),
1387
1397
  // top-start corner
1388
1398
  l != null ? d.div(
1389
1399
  s.class("bc-nine-slice-pane bc-nine-slice-top-start"),
1390
- k.top("0"),
1391
- k.left("0"),
1400
+ C.top("0"),
1401
+ C.left("0"),
1392
1402
  // style.height(headerHeightPx),
1393
1403
  // style.width(sidebarStartWidthPx),
1394
1404
  l
@@ -1396,8 +1406,8 @@ function rr({
1396
1406
  // top-center
1397
1407
  a != null ? d.div(
1398
1408
  s.class("bc-nine-slice-pane bc-nine-slice-header"),
1399
- k.top("0"),
1400
- k.left(S),
1409
+ C.top("0"),
1410
+ C.left(k),
1401
1411
  // style.height(headerHeightPx),
1402
1412
  // style.width(visibleAreaWidthPx),
1403
1413
  d.div(
@@ -1409,7 +1419,7 @@ function rr({
1409
1419
  // top-end corner
1410
1420
  i != null ? d.div(
1411
1421
  s.class("bc-nine-slice-pane bc-nine-slice-top-end"),
1412
- k.top("0"),
1422
+ C.top("0"),
1413
1423
  U,
1414
1424
  // style.height(headerHeightPx),
1415
1425
  // style.width(sidebarEndWidthPx),
@@ -1418,8 +1428,8 @@ function rr({
1418
1428
  // middle-start sidebar
1419
1429
  p != null ? d.div(
1420
1430
  s.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),
1421
- k.left("0"),
1422
- k.top(g),
1431
+ C.left("0"),
1432
+ C.top(g),
1423
1433
  // style.height(visibleAreaHeightPx),
1424
1434
  // style.width(sidebarStartWidthPx),
1425
1435
  d.div(
@@ -1431,8 +1441,8 @@ function rr({
1431
1441
  // middle-center (main body)
1432
1442
  d.div(
1433
1443
  s.class("bc-nine-slice-pane bc-nine-slice-body"),
1434
- k.left(S),
1435
- k.top(g),
1444
+ C.left(k),
1445
+ C.top(g),
1436
1446
  // style.width(visibleAreaWidth.map(toPx)),
1437
1447
  // style.height(visibleAreaHeight.map(toPx)),
1438
1448
  d.div(
@@ -1445,7 +1455,7 @@ function rr({
1445
1455
  v != null ? d.div(
1446
1456
  s.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
1447
1457
  U,
1448
- k.top(g),
1458
+ C.top(g),
1449
1459
  // style.height(visibleAreaHeightPx),
1450
1460
  // style.width(sidebarEndWidthPx),
1451
1461
  d.div(
@@ -1457,7 +1467,7 @@ function rr({
1457
1467
  // bottom-start corner
1458
1468
  o != null ? d.div(
1459
1469
  s.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),
1460
- k.left("0"),
1470
+ C.left("0"),
1461
1471
  pe,
1462
1472
  // style.height(footerHeightPx),
1463
1473
  // style.width(sidebarStartWidthPx),
@@ -1466,7 +1476,7 @@ function rr({
1466
1476
  // bottom-center
1467
1477
  u != null ? d.div(
1468
1478
  s.class("bc-nine-slice-pane bc-nine-slice-footer"),
1469
- k.left(S),
1479
+ C.left(k),
1470
1480
  pe,
1471
1481
  // style.height(footerHeightPx),
1472
1482
  // style.width(visibleAreaWidthPx),
@@ -1489,16 +1499,16 @@ function rr({
1489
1499
  // horizontal scrollbar
1490
1500
  d.div(
1491
1501
  s.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar"),
1492
- k.overflowX("scroll"),
1493
- k.left("0"),
1494
- k.right(
1495
- C(
1502
+ C.overflowX("scroll"),
1503
+ C.left("0"),
1504
+ C.right(
1505
+ S(
1496
1506
  M,
1497
- _
1507
+ T
1498
1508
  )((D, N) => D ? `${N}px` : "0")
1499
1509
  ),
1500
- k.bottom("0"),
1501
- k.height(
1510
+ C.bottom("0"),
1511
+ C.height(
1502
1512
  I.map(
1503
1513
  (D) => D ? "16px" : "0"
1504
1514
  )
@@ -1507,17 +1517,17 @@ function rr({
1507
1517
  s.class(
1508
1518
  "bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"
1509
1519
  ),
1510
- k.width(
1520
+ C.width(
1511
1521
  H.map((D) => `${100 / Math.max(1, D)}%`)
1512
1522
  ),
1513
- k.height("100%"),
1514
- k.backgroundColor("#ff000066")
1523
+ C.height("100%"),
1524
+ C.backgroundColor("#ff000066")
1515
1525
  ),
1516
1526
  $.scroll((D) => {
1517
- const N = D.target, K = N.scrollLeft, T = N.scrollWidth - N.clientWidth;
1518
- if (T > 0) {
1519
- const A = K / T, j = Ce.value;
1520
- y.set(
1527
+ const N = D.target, K = N.scrollLeft, _ = N.scrollWidth - N.clientWidth;
1528
+ if (_ > 0) {
1529
+ const A = K / _, j = Ce.value;
1530
+ w.set(
1521
1531
  BigInt(Math.round(Number(j) * A))
1522
1532
  );
1523
1533
  }
@@ -1526,16 +1536,16 @@ function rr({
1526
1536
  // vertical scrollbar
1527
1537
  d.div(
1528
1538
  s.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar"),
1529
- k.overflowY("scroll"),
1530
- k.top("0"),
1531
- k.bottom(
1532
- C(
1539
+ C.overflowY("scroll"),
1540
+ C.top("0"),
1541
+ C.bottom(
1542
+ S(
1533
1543
  I,
1534
- _
1544
+ T
1535
1545
  )((D, N) => D ? `${N}px` : "0")
1536
1546
  ),
1537
- k.right("0"),
1538
- k.width(
1547
+ C.right("0"),
1548
+ C.width(
1539
1549
  M.map(
1540
1550
  (D) => D ? "16px" : "0"
1541
1551
  )
@@ -1544,22 +1554,22 @@ function rr({
1544
1554
  s.class(
1545
1555
  "bc-nine-slice-pane bc-nine-slice-vertical-scrollbar-thumb"
1546
1556
  ),
1547
- k.width("100%"),
1548
- k.height(
1549
- C(
1557
+ C.width("100%"),
1558
+ C.height(
1559
+ S(
1550
1560
  r,
1551
1561
  c,
1552
1562
  n,
1553
1563
  oe
1554
- )((D, N, K, T) => `${100 / Math.max(1, T)}%`)
1564
+ )((D, N, K, _) => `${100 / Math.max(1, _)}%`)
1555
1565
  ),
1556
- k.backgroundColor("#ff000066")
1566
+ C.backgroundColor("#ff000066")
1557
1567
  ),
1558
1568
  $.scroll((D) => {
1559
- const N = D.target, K = N.scrollTop, T = N.scrollHeight - N.clientHeight;
1560
- if (T > 0) {
1561
- const A = K / T, j = Ae.value;
1562
- w.set(
1569
+ const N = D.target, K = N.scrollTop, _ = N.scrollHeight - N.clientHeight;
1570
+ if (_ > 0) {
1571
+ const A = K / _, j = Ae.value;
1572
+ b.set(
1563
1573
  BigInt(Math.round(Number(j) * A))
1564
1574
  );
1565
1575
  }
@@ -1578,7 +1588,7 @@ function kt({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...r) {
1578
1588
  return d.div(
1579
1589
  s.class("bc-scrollable-panel"),
1580
1590
  s.class(
1581
- C(
1591
+ S(
1582
1592
  l,
1583
1593
  a
1584
1594
  )((c, o) => {
@@ -1620,7 +1630,7 @@ function ea(e, t, n) {
1620
1630
  function sr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } = {}, ...a) {
1621
1631
  return d.div(
1622
1632
  s.class(
1623
- C(
1633
+ S(
1624
1634
  e,
1625
1635
  t,
1626
1636
  n
@@ -1676,51 +1686,51 @@ const xe = {
1676
1686
  onBeforeOpen: u,
1677
1687
  onAfterOpen: c,
1678
1688
  buildListboxContent: o
1679
- } = e, f = G(!1), p = G(-1), x = G(null), v = he("dropdown"), b = he("listbox");
1680
- let m, w;
1681
- const y = (S) => {
1682
- t?.(S), f.set(!1), p.set(-1), x.set(null), m?.focus();
1683
- }, g = (S) => {
1684
- const _ = xe.getValues(h.get(l));
1685
- switch (S.key) {
1689
+ } = e, f = G(!1), p = G(-1), x = G(null), v = he("dropdown"), y = he("listbox");
1690
+ let h, b;
1691
+ const w = (k) => {
1692
+ t?.(k), f.set(!1), p.set(-1), x.set(null), h?.focus();
1693
+ }, g = (k) => {
1694
+ const T = xe.getValues(m.get(l));
1695
+ switch (k.key) {
1686
1696
  case "ArrowDown": {
1687
- if (S.preventDefault(), !f.value)
1688
- f.set(!0), _.length > 0 && (p.set(0), x.set(_[0]));
1697
+ if (k.preventDefault(), !f.value)
1698
+ f.set(!0), T.length > 0 && (p.set(0), x.set(T[0]));
1689
1699
  else {
1690
1700
  const L = Math.min(
1691
1701
  p.value + 1,
1692
- _.length - 1
1702
+ T.length - 1
1693
1703
  );
1694
- p.set(L), x.set(_[L] ?? null);
1704
+ p.set(L), x.set(T[L] ?? null);
1695
1705
  }
1696
1706
  break;
1697
1707
  }
1698
1708
  case "ArrowUp": {
1699
- if (S.preventDefault(), f.value) {
1709
+ if (k.preventDefault(), f.value) {
1700
1710
  const L = Math.max(p.value - 1, 0);
1701
- p.set(L), x.set(_[L] ?? null);
1711
+ p.set(L), x.set(T[L] ?? null);
1702
1712
  }
1703
1713
  break;
1704
1714
  }
1705
1715
  case "Enter": {
1706
- if (S.preventDefault(), f.value && p.value >= 0) {
1707
- const L = _[p.value];
1708
- L != null && y(L);
1716
+ if (k.preventDefault(), f.value && p.value >= 0) {
1717
+ const L = T[p.value];
1718
+ L != null && w(L);
1709
1719
  } else {
1710
1720
  u?.();
1711
- const L = xe.getValues(h.get(l));
1721
+ const L = xe.getValues(m.get(l));
1712
1722
  f.set(!0), L.length > 0 && (p.set(0), x.set(L[0])), setTimeout(() => c?.(), 0);
1713
1723
  }
1714
1724
  break;
1715
1725
  }
1716
1726
  case "Escape": {
1717
- f.value && (S.preventDefault(), f.set(!1), p.set(-1), x.set(null), m?.focus());
1727
+ f.value && (k.preventDefault(), f.set(!1), p.set(-1), x.set(null), h?.focus());
1718
1728
  break;
1719
1729
  }
1720
1730
  case " ": {
1721
- if (h.get(i)) {
1722
- S.preventDefault();
1723
- const L = xe.getValues(h.get(l));
1731
+ if (m.get(i)) {
1732
+ k.preventDefault();
1733
+ const L = xe.getValues(m.get(l));
1724
1734
  f.set(!f.value), f.value && L.length > 0 && (p.set(0), x.set(L[0]));
1725
1735
  }
1726
1736
  break;
@@ -1739,52 +1749,52 @@ const xe = {
1739
1749
  )
1740
1750
  )
1741
1751
  },
1742
- Ee((S) => E(
1743
- ae((_) => (m = _, _.addEventListener("keydown", g), Y(
1744
- () => _.removeEventListener("keydown", g)
1752
+ Ee((k) => E(
1753
+ ae((T) => (h = T, T.addEventListener("keydown", g), Y(
1754
+ () => T.removeEventListener("keydown", g)
1745
1755
  ))),
1746
1756
  le(e),
1747
1757
  s.id(v),
1748
1758
  s.tabindex(0),
1749
- B.controls(b),
1759
+ B.controls(y),
1750
1760
  B.expanded(f),
1751
1761
  s.class("bc-dropdown"),
1752
1762
  s.role(a),
1753
1763
  B.activedescendant(
1754
- C(
1764
+ S(
1755
1765
  f,
1756
1766
  x
1757
1767
  )(
1758
- (_, L) => _ && L != null ? `dropdown-option-${String(L)}` : ""
1768
+ (T, L) => T && L != null ? `dropdown-option-${String(L)}` : ""
1759
1769
  )
1760
1770
  ),
1761
1771
  n != null ? $.blur(() => {
1762
1772
  setTimeout(() => {
1763
- w?.contains(document.activeElement) || (f.set(!1), p.set(-1), n());
1773
+ b?.contains(document.activeElement) || (f.set(!1), p.set(-1), n());
1764
1774
  }, 100);
1765
1775
  }) : R,
1766
1776
  Ze({
1767
1777
  content: () => d.div(
1768
- ae((_) => {
1769
- w = _;
1778
+ ae((T) => {
1779
+ b = T;
1770
1780
  }),
1771
- k.minWidth(S.$.width.map((_) => `${_ - 10}px`)),
1781
+ C.minWidth(k.$.width.map((T) => `${T - 10}px`)),
1772
1782
  s.class("bc-dropdown__listbox"),
1773
1783
  s.role("listbox"),
1774
- s.id(b),
1784
+ s.id(y),
1775
1785
  B.labelledby(v),
1776
1786
  o({
1777
1787
  dropdownId: v,
1778
- listboxId: b,
1788
+ listboxId: y,
1779
1789
  focusedValue: x,
1780
1790
  handleKeyDown: g,
1781
- onSelect: y
1791
+ onSelect: w
1782
1792
  })
1783
1793
  ),
1784
1794
  mainAxisOffset: 0,
1785
1795
  placement: "bottom-start",
1786
1796
  hasPopup: "listbox",
1787
- showOn: (_, L) => {
1797
+ showOn: (T, L) => {
1788
1798
  const V = L;
1789
1799
  L = () => {
1790
1800
  f.set(!1), p.set(-1), x.set(null), V();
@@ -1794,8 +1804,8 @@ const xe = {
1794
1804
  L();
1795
1805
  else {
1796
1806
  u?.();
1797
- const I = xe.getValues(h.get(l));
1798
- f.set(!0), I.length > 0 && (p.set(0), x.set(I[0])), _(), setTimeout(() => c?.(), 0);
1807
+ const I = xe.getValues(m.get(l));
1808
+ f.set(!0), I.length > 0 && (p.set(0), x.set(I[0])), T(), setTimeout(() => c?.(), 0);
1799
1809
  }
1800
1810
  };
1801
1811
  return $.click(P);
@@ -1810,10 +1820,10 @@ const xe = {
1810
1820
  e,
1811
1821
  (l) => Dt(l, {
1812
1822
  value: (i) => {
1813
- const u = C(
1823
+ const u = S(
1814
1824
  i,
1815
1825
  n
1816
- )((o, f) => t(o.value, f)), c = C(
1826
+ )((o, f) => t(o.value, f)), c = S(
1817
1827
  i,
1818
1828
  r
1819
1829
  )((o, f) => f != null && t(o.value, f));
@@ -1822,7 +1832,7 @@ const xe = {
1822
1832
  Y(c.dispose),
1823
1833
  s.class("bc-dropdown__option"),
1824
1834
  s.class(
1825
- C(
1835
+ S(
1826
1836
  u,
1827
1837
  c,
1828
1838
  i
@@ -1880,7 +1890,7 @@ const xe = {
1880
1890
  equality: r = (o, f) => o === f,
1881
1891
  placeholder: l,
1882
1892
  searchable: i = !1
1883
- } = e, u = C(
1893
+ } = e, u = S(
1884
1894
  t,
1885
1895
  n
1886
1896
  )((o, f) => {
@@ -1890,13 +1900,13 @@ const xe = {
1890
1900
  if (v.type === "value" && r(v.value, o))
1891
1901
  return v.label;
1892
1902
  if (v.type === "group") {
1893
- const b = p(v.options);
1894
- if (b) return b;
1903
+ const y = p(v.options);
1904
+ if (y) return y;
1895
1905
  }
1896
1906
  }
1897
1907
  };
1898
1908
  return p(f) || String(o);
1899
- }), c = C(i)((o) => !o);
1909
+ }), c = S(i)((o) => !o);
1900
1910
  return zt({
1901
1911
  ...e,
1902
1912
  role: "dropdown",
@@ -1930,10 +1940,10 @@ const xe = {
1930
1940
  e,
1931
1941
  (i) => Dt(i, {
1932
1942
  value: (u) => {
1933
- const c = C(
1943
+ const c = S(
1934
1944
  u,
1935
1945
  n
1936
- )((f, p) => t(f.value, p)), o = C(
1946
+ )((f, p) => t(f.value, p)), o = S(
1937
1947
  u,
1938
1948
  r
1939
1949
  )(
@@ -1944,7 +1954,7 @@ const xe = {
1944
1954
  Y(o.dispose),
1945
1955
  s.class("bc-dropdown__option"),
1946
1956
  s.class(
1947
- C(
1957
+ S(
1948
1958
  c,
1949
1959
  o,
1950
1960
  u
@@ -2003,24 +2013,24 @@ const xe = {
2003
2013
  loadOptions: n,
2004
2014
  renderOption: a,
2005
2015
  renderValue: r,
2006
- equality: l = (g, S) => g === S,
2016
+ equality: l = (g, k) => g === k,
2007
2017
  placeholder: i,
2008
2018
  searchPlaceholder: u,
2009
2019
  debounceMs: c = 150
2010
2020
  } = e, o = G(""), f = G(!1), p = G([]);
2011
2021
  let x;
2012
- const v = h.toSignal(t), b = () => (r ?? a)(v);
2013
- let m = null;
2014
- const w = (g) => {
2015
- f.set(!0), Promise.resolve(n(g)).then((S) => {
2016
- p.set(S ?? []);
2022
+ const v = m.toSignal(t), y = () => (r ?? a)(v);
2023
+ let h = null;
2024
+ const b = (g) => {
2025
+ f.set(!0), Promise.resolve(n(g)).then((k) => {
2026
+ p.set(k ?? []);
2017
2027
  }).catch(() => {
2018
2028
  p.set([]);
2019
2029
  }).finally(() => f.set(!1));
2020
- }, y = (g) => {
2021
- m != null && (clearTimeout(m), m = null), m = setTimeout(
2030
+ }, w = (g) => {
2031
+ h != null && (clearTimeout(h), h = null), h = setTimeout(
2022
2032
  () => {
2023
- w(g);
2033
+ b(g);
2024
2034
  },
2025
2035
  Math.max(0, c)
2026
2036
  );
@@ -2029,19 +2039,19 @@ const xe = {
2029
2039
  ...e,
2030
2040
  role: "combobox",
2031
2041
  display: J(
2032
- C(t)((g) => g != null),
2033
- b,
2042
+ S(t)((g) => g != null),
2043
+ y,
2034
2044
  () => ne(fe, (g) => g.$.selectOne)
2035
2045
  ),
2036
2046
  optionsSource: p,
2037
2047
  onBeforeOpen: () => {
2038
- const g = h.get(o);
2039
- y(g);
2048
+ const g = m.get(o);
2049
+ w(g);
2040
2050
  },
2041
2051
  onAfterOpen: () => {
2042
2052
  x?.focus();
2043
2053
  },
2044
- buildListboxContent: ({ focusedValue: g, handleKeyDown: S, onSelect: _ }) => E(
2054
+ buildListboxContent: ({ focusedValue: g, handleKeyDown: k, onSelect: T }) => E(
2045
2055
  // Search input at the top
2046
2056
  d.div(
2047
2057
  s.class("bc-dropdown__search"),
@@ -2049,7 +2059,7 @@ const xe = {
2049
2059
  s.type("text"),
2050
2060
  s.class("bc-dropdown__search-input"),
2051
2061
  s.placeholder(
2052
- C(
2062
+ S(
2053
2063
  u,
2054
2064
  i
2055
2065
  )((L, V) => L ?? V ?? "Search")
@@ -2058,9 +2068,9 @@ const xe = {
2058
2068
  ae((L) => (x = L, R)),
2059
2069
  $.input((L) => {
2060
2070
  const V = L.target;
2061
- o.set(V.value), y(V.value);
2071
+ o.set(V.value), w(V.value);
2062
2072
  }),
2063
- $.keydown(S)
2073
+ $.keydown(k)
2064
2074
  )
2065
2075
  ),
2066
2076
  J(
@@ -2075,7 +2085,7 @@ const xe = {
2075
2085
  L,
2076
2086
  l,
2077
2087
  v,
2078
- _,
2088
+ T,
2079
2089
  g,
2080
2090
  a
2081
2091
  )
@@ -2109,13 +2119,13 @@ function qt(e) {
2109
2119
  onAction: f,
2110
2120
  ariaLabel: p,
2111
2121
  ariaLabelledBy: x
2112
- } = e, v = he("menu"), b = G(-1), m = G([]);
2113
- let w = null;
2122
+ } = e, v = he("menu"), y = G(-1), h = G([]);
2123
+ let b = null;
2114
2124
  return E(
2115
- Y(b, m),
2125
+ Y(y, h),
2116
2126
  Ze({
2117
- content: () => ae((y) => {
2118
- w = document.activeElement;
2127
+ content: () => ae((w) => {
2128
+ b = document.activeElement;
2119
2129
  const g = (P, I, M) => {
2120
2130
  if (I.length === 0) return -1;
2121
2131
  let F = P + M, O = 0;
@@ -2127,18 +2137,18 @@ function qt(e) {
2127
2137
  F += M, O++;
2128
2138
  }
2129
2139
  return P;
2130
- }, S = (P) => {
2131
- const I = m.value, M = b.value;
2140
+ }, k = (P) => {
2141
+ const I = h.value, M = y.value;
2132
2142
  switch (P.key) {
2133
2143
  case "ArrowDown":
2134
2144
  P.preventDefault(), P.stopPropagation();
2135
2145
  const F = g(M, I, 1);
2136
- _(F, I);
2146
+ T(F, I);
2137
2147
  break;
2138
2148
  case "ArrowUp":
2139
2149
  P.preventDefault(), P.stopPropagation();
2140
2150
  const O = g(M, I, -1);
2141
- _(O, I);
2151
+ T(O, I);
2142
2152
  break;
2143
2153
  case "Enter":
2144
2154
  case " ":
@@ -2154,10 +2164,10 @@ function qt(e) {
2154
2164
  o?.();
2155
2165
  break;
2156
2166
  case "Home":
2157
- P.preventDefault(), P.stopPropagation(), I.length > 0 && _(0, I);
2167
+ P.preventDefault(), P.stopPropagation(), I.length > 0 && T(0, I);
2158
2168
  break;
2159
2169
  case "End":
2160
- P.preventDefault(), P.stopPropagation(), I.length > 0 && _(I.length - 1, I);
2170
+ P.preventDefault(), P.stopPropagation(), I.length > 0 && T(I.length - 1, I);
2161
2171
  break;
2162
2172
  case "ArrowRight":
2163
2173
  if (P.preventDefault(), P.stopPropagation(), M >= 0 && I[M]) {
@@ -2171,26 +2181,26 @@ function qt(e) {
2171
2181
  P.preventDefault(), P.stopPropagation(), o?.();
2172
2182
  break;
2173
2183
  }
2174
- }, _ = (P, I) => {
2175
- b.value >= 0 && I[b.value] && (I[b.value].classList.remove(
2184
+ }, T = (P, I) => {
2185
+ y.value >= 0 && I[y.value] && (I[y.value].classList.remove(
2176
2186
  "bc-menu-item--focused"
2177
- ), I[b.value].removeAttribute("aria-selected")), P >= 0 && I[P] && (I[P].classList.add("bc-menu-item--focused"), I[P].setAttribute("aria-selected", "true"), b.set(P), typeof I[P].scrollIntoView == "function" && I[P].scrollIntoView({ block: "nearest" }));
2187
+ ), I[y.value].removeAttribute("aria-selected")), P >= 0 && I[P] && (I[P].classList.add("bc-menu-item--focused"), I[P].setAttribute("aria-selected", "true"), y.set(P), typeof I[P].scrollIntoView == "function" && I[P].scrollIntoView({ block: "nearest" }));
2178
2188
  }, L = () => {
2179
2189
  const P = Array.from(
2180
- y.querySelectorAll('[role="menuitem"]')
2190
+ w.querySelectorAll('[role="menuitem"]')
2181
2191
  );
2182
- if (m.set(P), P.length > 0) {
2192
+ if (h.set(P), P.length > 0) {
2183
2193
  const I = P.findIndex(
2184
2194
  (M) => M.getAttribute("aria-disabled") !== "true"
2185
2195
  );
2186
- I >= 0 && _(I, P);
2196
+ I >= 0 && T(I, P);
2187
2197
  }
2188
2198
  }, V = new MutationObserver(L);
2189
- return V.observe(y, { childList: !0, subtree: !0 }), setTimeout(() => {
2190
- L(), y.focus();
2191
- }, 0), document.addEventListener("keydown", S, !0), E(
2199
+ return V.observe(w, { childList: !0, subtree: !0 }), setTimeout(() => {
2200
+ L(), w.focus();
2201
+ }, 0), document.addEventListener("keydown", k, !0), E(
2192
2202
  Y(() => {
2193
- V.disconnect(), document.removeEventListener("keydown", S, !0), w && w.focus();
2203
+ V.disconnect(), document.removeEventListener("keydown", k, !0), b && b.focus();
2194
2204
  }),
2195
2205
  s.class("bc-menu"),
2196
2206
  s.id(v),
@@ -2200,8 +2210,8 @@ function qt(e) {
2200
2210
  p ? B.label(p) : E(),
2201
2211
  x ? B.labelledby(x) : E(),
2202
2212
  B.activedescendant(
2203
- b.map((P) => {
2204
- const I = m.value;
2213
+ y.map((P) => {
2214
+ const I = h.value;
2205
2215
  return P >= 0 && I[P] ? I[P].id || `${v}-item-${P}` : "";
2206
2216
  })
2207
2217
  ),
@@ -2219,8 +2229,8 @@ function qt(e) {
2219
2229
  s.class("sr-only"),
2220
2230
  B.live("polite"),
2221
2231
  B.atomic(!0),
2222
- b.map((P) => {
2223
- const I = m.value;
2232
+ y.map((P) => {
2233
+ const I = h.value;
2224
2234
  if (P >= 0 && I[P]) {
2225
2235
  const M = I[P].textContent || "";
2226
2236
  return I[P].getAttribute("aria-disabled") === "true" ? `${M}, disabled` : `${M}, ${P + 1} of ${I.length}`;
@@ -2256,7 +2266,7 @@ function ir(e) {
2256
2266
  } = e, f = t ?? he("menu-item"), p = `menu-item-${f}`, x = c != null;
2257
2267
  return d.div(
2258
2268
  s.class(
2259
- C(l)(
2269
+ S(l)(
2260
2270
  (v) => `bc-menu-item ${v ? "bc-menu-item--disabled" : ""} ${x ? "bc-menu-item--has-submenu" : ""}`
2261
2271
  )
2262
2272
  ),
@@ -2270,7 +2280,7 @@ function ir(e) {
2270
2280
  x ? B.expanded(!1) : E(),
2271
2281
  u ? B.label(u) : E(),
2272
2282
  $.click((v) => {
2273
- if (h.get(l)) {
2283
+ if (m.get(l)) {
2274
2284
  v.preventDefault(), v.stopPropagation();
2275
2285
  return;
2276
2286
  }
@@ -2358,7 +2368,7 @@ function en(e) {
2358
2368
  () => _e(
2359
2369
  t,
2360
2370
  (i) => jt({
2361
- value: C(
2371
+ value: S(
2362
2372
  i,
2363
2373
  n
2364
2374
  )((u, c) => sa(c, u, a)),
@@ -2376,14 +2386,14 @@ function tn(e) {
2376
2386
  equality: a = (o, f) => o === f,
2377
2387
  placeholder: r
2378
2388
  } = e, l = (o) => {
2379
- const f = h.get(t);
2389
+ const f = m.get(t);
2380
2390
  e.onChange?.(Kt(f, o, a));
2381
2391
  }, i = (o) => {
2382
- const f = h.get(t);
2392
+ const f = m.get(t);
2383
2393
  e.onChange?.(Gt(f, o, a));
2384
- }, u = (o) => C(t)((f) => Qt(f, o, a)), c = qt({
2394
+ }, u = (o) => S(t)((f) => Qt(f, o, a)), c = qt({
2385
2395
  items: () => {
2386
- const o = h.get(n), f = [];
2396
+ const o = m.get(n), f = [];
2387
2397
  for (const p of o)
2388
2398
  if (p.type === "value") {
2389
2399
  const x = u(p.value);
@@ -2468,58 +2478,58 @@ function nn(e) {
2468
2478
  const {
2469
2479
  value: t,
2470
2480
  options: n,
2471
- equality: a = (v, b) => v === b,
2481
+ equality: a = (v, y) => v === y,
2472
2482
  placeholder: r,
2473
2483
  searchPlaceholder: l,
2474
2484
  filter: i
2475
2485
  } = e, u = G(""), c = (v) => {
2476
- const b = h.get(t);
2477
- e.onChange?.(Kt(b, v, a));
2486
+ const y = m.get(t);
2487
+ e.onChange?.(Kt(y, v, a));
2478
2488
  }, o = (v) => {
2479
- const b = h.get(t);
2480
- e.onChange?.(Gt(b, v, a));
2481
- }, f = (v) => C(t)((b) => Qt(b, v, a)), p = C(
2489
+ const y = m.get(t);
2490
+ e.onChange?.(Gt(y, v, a));
2491
+ }, f = (v) => S(t)((y) => Qt(y, v, a)), p = S(
2482
2492
  n,
2483
2493
  u
2484
- )((v, b) => Jt(v, b, i)), x = qt({
2494
+ )((v, y) => Jt(v, y, i)), x = qt({
2485
2495
  items: () => {
2486
- const v = [], b = h.get(p);
2487
- if (b.length === 0)
2496
+ const v = [], y = m.get(p);
2497
+ if (y.length === 0)
2488
2498
  return v.push(
2489
2499
  d.div(
2490
2500
  s.class("bc-dropdown__empty"),
2491
- ne(fe, (m) => m.$.noResults)
2501
+ ne(fe, (h) => h.$.noResults)
2492
2502
  )
2493
2503
  ), v;
2494
- for (const m of b)
2495
- if (m.type === "value") {
2496
- const w = f(m.value);
2504
+ for (const h of y)
2505
+ if (h.type === "value") {
2506
+ const b = f(h.value);
2497
2507
  v.push(
2498
2508
  d.div(
2499
2509
  s.role("menuitem"),
2500
2510
  s.tabindex(-1),
2501
- B.disabled(m.disabled === !0),
2502
- B.checked(w),
2511
+ B.disabled(h.disabled === !0),
2512
+ B.checked(b),
2503
2513
  s.class("bc-menu-item"),
2504
- d.span(s.class("bc-menu-item__content"), m.label),
2505
- $.click(() => o(m.value))
2514
+ d.span(s.class("bc-menu-item__content"), h.label),
2515
+ $.click(() => o(h.value))
2506
2516
  )
2507
2517
  );
2508
- } else m.type === "group" ? v.push(
2518
+ } else h.type === "group" ? v.push(
2509
2519
  d.div(
2510
2520
  s.class("bc-menu-group"),
2511
- d.div(s.class("bc-menu-group__label"), m.group),
2512
- ...m.options.map((w) => {
2513
- if (w.type === "value") {
2514
- const y = f(w.value);
2521
+ d.div(s.class("bc-menu-group__label"), h.group),
2522
+ ...h.options.map((b) => {
2523
+ if (b.type === "value") {
2524
+ const w = f(b.value);
2515
2525
  return d.div(
2516
2526
  s.role("menuitem"),
2517
2527
  s.tabindex(-1),
2518
- B.disabled(w.disabled === !0),
2519
- B.checked(y),
2528
+ B.disabled(b.disabled === !0),
2529
+ B.checked(w),
2520
2530
  s.class("bc-menu-item"),
2521
- d.span(s.class("bc-menu-item__content"), w.label),
2522
- $.click(() => o(w.value))
2531
+ d.span(s.class("bc-menu-item__content"), b.label),
2532
+ $.click(() => o(b.value))
2523
2533
  );
2524
2534
  }
2525
2535
  return E();
@@ -2534,14 +2544,14 @@ function nn(e) {
2534
2544
  // Open the menu when the search input gains focus
2535
2545
  // We intentionally do not auto-hide on blur here because the Menu
2536
2546
  // manages its own close behavior (outside click, Escape, etc.)
2537
- showOn: (v, b) => ae((m) => {
2538
- const w = m.querySelector(
2547
+ showOn: (v, y) => ae((h) => {
2548
+ const b = h.querySelector(
2539
2549
  ".bc-dropdown__search-input"
2540
2550
  );
2541
- if (w) {
2542
- const y = () => v();
2543
- return w.addEventListener("focus", y), Y(() => {
2544
- w.removeEventListener("focus", y);
2551
+ if (b) {
2552
+ const w = () => v();
2553
+ return b.addEventListener("focus", w), Y(() => {
2554
+ b.removeEventListener("focus", w);
2545
2555
  });
2546
2556
  }
2547
2557
  return E();
@@ -2568,15 +2578,15 @@ function nn(e) {
2568
2578
  s.type("text"),
2569
2579
  s.class("bc-dropdown__search-input"),
2570
2580
  s.placeholder(
2571
- C(
2581
+ S(
2572
2582
  l,
2573
2583
  r
2574
- )((v, b) => v ?? b ?? "")
2584
+ )((v, y) => v ?? y ?? "")
2575
2585
  ),
2576
2586
  s.value(u),
2577
2587
  $.input((v) => {
2578
- const b = v.target;
2579
- u.set(b.value);
2588
+ const y = v.target;
2589
+ u.set(y.value);
2580
2590
  }),
2581
2591
  $.keydown((v) => {
2582
2592
  (v.key === "ArrowUp" || v.key === "ArrowDown" || v.key === "Enter" || v.key === " ") && v.stopPropagation();
@@ -2614,7 +2624,7 @@ const pr = (e) => {
2614
2624
  ...e,
2615
2625
  input: se["datetime-local"](
2616
2626
  le(e),
2617
- s.value(h.map(t, la)),
2627
+ s.value(m.map(t, la)),
2618
2628
  s.class("bc-input"),
2619
2629
  n != null ? $.blur(W(n)) : R,
2620
2630
  a != null ? $.change(W((r) => a(new Date(r)))) : R
@@ -2630,7 +2640,7 @@ const pr = (e) => {
2630
2640
  return In({
2631
2641
  ...r,
2632
2642
  maxFiles: 1,
2633
- value: h.map(t, (l) => l == null ? [] : [l]),
2643
+ value: m.map(t, (l) => l == null ? [] : [l]),
2634
2644
  onChange: (l) => {
2635
2645
  a?.(l[0]);
2636
2646
  },
@@ -2666,7 +2676,7 @@ const pr = (e) => {
2666
2676
  const { value: t, onBlur: n, onChange: a, onInput: r, after: l, disabled: i, ...u } = e, c = ve(t, i, a);
2667
2677
  return Le({
2668
2678
  ...u,
2669
- value: h.map(t, $n),
2679
+ value: m.map(t, $n),
2670
2680
  onChange: a != null ? (o) => a(mt(o)) : void 0,
2671
2681
  onInput: r != null ? (o) => r(mt(o)) : void 0,
2672
2682
  onBlur: n,
@@ -2680,20 +2690,20 @@ const pr = (e) => {
2680
2690
  }
2681
2691
  }, vr = (e) => {
2682
2692
  const { value: t, step: n, min: a, max: r, onChange: l, onInput: i, after: u } = e, c = (v) => {
2683
- const b = a != null ? h.get(a) : void 0, m = r != null ? h.get(r) : void 0;
2684
- return b != null && v < b ? b : m != null && v > m ? m : v;
2693
+ const y = a != null ? m.get(a) : void 0, h = r != null ? m.get(r) : void 0;
2694
+ return y != null && v < y ? y : h != null && v > h ? h : v;
2685
2695
  }, o = n != null ? ne(fe, (v) => {
2686
- const b = C(
2696
+ const y = S(
2687
2697
  t,
2688
2698
  a
2689
- )((y, g) => g == null ? !0 : (y ?? 0n) > g), m = C(
2699
+ )((w, g) => g == null ? !0 : (w ?? 0n) > g), h = S(
2690
2700
  t,
2691
2701
  r
2692
- )((y, g) => g == null ? !0 : (y ?? 0n) < g), w = (y, g) => {
2693
- const S = h.get(t) ?? 0n, _ = h.get(n), L = g?.shiftKey ? 10n : 1n, V = S + _ * L * y, P = a != null ? h.get(a) : void 0, I = r != null ? h.get(r) : void 0;
2694
- if (y < 0n && P != null && V < P || y > 0n && I != null && V > I) return;
2702
+ )((w, g) => g == null ? !0 : (w ?? 0n) < g), b = (w, g) => {
2703
+ const k = m.get(t) ?? 0n, T = m.get(n), L = g?.shiftKey ? 10n : 1n, V = k + T * L * w, P = a != null ? m.get(a) : void 0, I = r != null ? m.get(r) : void 0;
2704
+ if (w < 0n && P != null && V < P || w > 0n && I != null && V > I) return;
2695
2705
  const M = c(V);
2696
- M !== S && l && l(M);
2706
+ M !== k && l && l(M);
2697
2707
  };
2698
2708
  return ot(
2699
2709
  s.class("bc-number-input-steppers"),
@@ -2703,12 +2713,12 @@ const pr = (e) => {
2703
2713
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
2704
2714
  ),
2705
2715
  s.disabled(
2706
- C(
2707
- m,
2716
+ S(
2717
+ h,
2708
2718
  e.disabled ?? !1
2709
- )((y, g) => !y || g)
2719
+ )((w, g) => !w || g)
2710
2720
  ),
2711
- $.click((y) => w(1n, y)),
2721
+ $.click((w) => b(1n, w)),
2712
2722
  B.label(v.$.incrementValue),
2713
2723
  ee({ icon: "line-md:plus", size: "xs" })
2714
2724
  ),
@@ -2718,26 +2728,26 @@ const pr = (e) => {
2718
2728
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
2719
2729
  ),
2720
2730
  s.disabled(
2721
- C(
2722
- b,
2731
+ S(
2732
+ y,
2723
2733
  e.disabled ?? !1
2724
- )((y, g) => !y || g)
2734
+ )((w, g) => !w || g)
2725
2735
  ),
2726
- $.click((y) => w(-1n, y)),
2736
+ $.click((w) => b(-1n, w)),
2727
2737
  B.label(v.$.decrementValue),
2728
2738
  ee({ icon: "line-md:minus", size: "xs" })
2729
2739
  )
2730
2740
  );
2731
2741
  }) : null, f = u != null && o != null ? E(o, u) : u ?? o, p = l ? (v) => {
2732
- const b = Ct(v);
2733
- b != null && l(c(b));
2742
+ const y = Ct(v);
2743
+ y != null && l(c(y));
2734
2744
  } : void 0, x = i ? (v) => {
2735
- const b = Ct(v);
2736
- b != null && i(c(b));
2745
+ const y = Ct(v);
2746
+ y != null && i(c(y));
2737
2747
  } : void 0;
2738
2748
  return Le({
2739
2749
  ...e,
2740
- value: h.map(t, (v) => v.toString()),
2750
+ value: m.map(t, (v) => v.toString()),
2741
2751
  onChange: p,
2742
2752
  onInput: x,
2743
2753
  after: f,
@@ -2753,27 +2763,27 @@ const pr = (e) => {
2753
2763
  return null;
2754
2764
  }
2755
2765
  }, yr = (e) => {
2756
- const { value: t, step: n, min: a, max: r, onChange: l, onInput: i, after: u } = e, c = (b) => {
2757
- const m = a != null ? h.get(a) : void 0, w = r != null ? h.get(r) : void 0;
2758
- return m != null && b < m ? m : w != null && b > w ? w : b;
2759
- }, o = n != null ? ne(fe, (b) => {
2760
- const m = C(
2766
+ const { value: t, step: n, min: a, max: r, onChange: l, onInput: i, after: u } = e, c = (y) => {
2767
+ const h = a != null ? m.get(a) : void 0, b = r != null ? m.get(r) : void 0;
2768
+ return h != null && y < h ? h : b != null && y > b ? b : y;
2769
+ }, o = n != null ? ne(fe, (y) => {
2770
+ const h = S(
2761
2771
  t,
2762
2772
  a
2763
- )((g, S) => {
2764
- const _ = g ?? 0n;
2765
- return S == null ? !0 : _ > S;
2766
- }), w = C(
2773
+ )((g, k) => {
2774
+ const T = g ?? 0n;
2775
+ return k == null ? !0 : T > k;
2776
+ }), b = S(
2767
2777
  t,
2768
2778
  r
2769
- )((g, S) => {
2770
- const _ = g ?? 0n;
2771
- return S == null ? !0 : _ < S;
2772
- }), y = (g, S) => {
2773
- const _ = h.get(t) ?? 0n, L = h.get(n), V = S?.shiftKey ? 10n : 1n, P = _ + L * V * g, I = a != null ? h.get(a) : void 0, M = r != null ? h.get(r) : void 0;
2779
+ )((g, k) => {
2780
+ const T = g ?? 0n;
2781
+ return k == null ? !0 : T < k;
2782
+ }), w = (g, k) => {
2783
+ const T = m.get(t) ?? 0n, L = m.get(n), V = k?.shiftKey ? 10n : 1n, P = T + L * V * g, I = a != null ? m.get(a) : void 0, M = r != null ? m.get(r) : void 0;
2774
2784
  if (g < 0n && I != null && P < I || g > 0n && M != null && P > M) return;
2775
2785
  const F = c(P);
2776
- F !== _ && l && l(F);
2786
+ F !== T && l && l(F);
2777
2787
  };
2778
2788
  return ot(
2779
2789
  s.class("bc-number-input-steppers"),
@@ -2783,13 +2793,13 @@ const pr = (e) => {
2783
2793
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
2784
2794
  ),
2785
2795
  s.disabled(
2786
- C(
2787
- w,
2796
+ S(
2797
+ b,
2788
2798
  e.disabled ?? !1
2789
- )((g, S) => !g || S)
2799
+ )((g, k) => !g || k)
2790
2800
  ),
2791
- $.click((g) => y(1n, g)),
2792
- B.label(b.$.incrementValue),
2801
+ $.click((g) => w(1n, g)),
2802
+ B.label(y.$.incrementValue),
2793
2803
  ee({ icon: "line-md:plus", size: "xs" })
2794
2804
  ),
2795
2805
  d.button(
@@ -2798,26 +2808,26 @@ const pr = (e) => {
2798
2808
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
2799
2809
  ),
2800
2810
  s.disabled(
2801
- C(
2802
- m,
2811
+ S(
2812
+ h,
2803
2813
  e.disabled ?? !1
2804
- )((g, S) => !g || S)
2814
+ )((g, k) => !g || k)
2805
2815
  ),
2806
- $.click((g) => y(-1n, g)),
2807
- B.label(b.$.decrementValue),
2816
+ $.click((g) => w(-1n, g)),
2817
+ B.label(y.$.decrementValue),
2808
2818
  ee({ icon: "line-md:minus", size: "xs" })
2809
2819
  )
2810
2820
  );
2811
- }) : null, f = ve(t, e.disabled, l), p = u != null && o != null ? E(o, f, u) : u != null ? E(f, u) : o != null ? E(o, f) : f, x = l ? (b) => {
2812
- const m = St(b);
2813
- l(m === null ? null : c(m));
2814
- } : void 0, v = i ? (b) => {
2815
- const m = St(b);
2816
- i(m === null ? null : c(m));
2821
+ }) : null, f = ve(t, e.disabled, l), p = u != null && o != null ? E(o, f, u) : u != null ? E(f, u) : o != null ? E(o, f) : f, x = l ? (y) => {
2822
+ const h = St(y);
2823
+ l(h === null ? null : c(h));
2824
+ } : void 0, v = i ? (y) => {
2825
+ const h = St(y);
2826
+ i(h === null ? null : c(h));
2817
2827
  } : void 0;
2818
2828
  return Le({
2819
2829
  ...e,
2820
- value: h.map(t, (b) => b == null ? "" : b.toString()),
2830
+ value: m.map(t, (y) => y == null ? "" : y.toString()),
2821
2831
  onChange: x,
2822
2832
  onInput: v,
2823
2833
  after: p,
@@ -2827,9 +2837,9 @@ const pr = (e) => {
2827
2837
  });
2828
2838
  }, wr = (e) => {
2829
2839
  const { value: t, onChange: n, onBlur: a, before: r } = e, l = G(""), i = (c) => {
2830
- n?.(h.get(t).filter((o) => o !== c));
2840
+ n?.(m.get(t).filter((o) => o !== c));
2831
2841
  }, u = () => {
2832
- const c = l.value.trim(), o = h.get(t);
2842
+ const c = l.value.trim(), o = m.get(t);
2833
2843
  c === "" || o.includes(c) || (l.set(""), n?.([...o, c]));
2834
2844
  };
2835
2845
  return te({
@@ -2866,7 +2876,7 @@ const pr = (e) => {
2866
2876
  ...e,
2867
2877
  input: se.date(
2868
2878
  le(e),
2869
- s.value(h.map(t, (l) => l.toString())),
2879
+ s.value(m.map(t, (l) => l.toString())),
2870
2880
  s.class("bc-input"),
2871
2881
  n != null ? $.blur(W(n)) : R,
2872
2882
  a != null ? $.change(W((l) => a(r.PlainDate.from(l)))) : R
@@ -2880,7 +2890,7 @@ const pr = (e) => {
2880
2890
  ...e,
2881
2891
  input: se.date(
2882
2892
  le(e),
2883
- s.value(h.map(t, (c) => c?.toString() ?? "")),
2893
+ s.value(m.map(t, (c) => c?.toString() ?? "")),
2884
2894
  s.class("bc-input"),
2885
2895
  n != null ? $.blur(W(n)) : R,
2886
2896
  a != null ? $.change(
@@ -2899,7 +2909,7 @@ const pr = (e) => {
2899
2909
  ...e,
2900
2910
  input: se.time(
2901
2911
  le(e),
2902
- s.value(h.map(t, (l) => l.toString())),
2912
+ s.value(m.map(t, (l) => l.toString())),
2903
2913
  s.class("bc-input"),
2904
2914
  n != null ? $.blur(W(n)) : R,
2905
2915
  a != null ? $.change(W((l) => a(r.PlainTime.from(l)))) : R
@@ -2913,7 +2923,7 @@ const pr = (e) => {
2913
2923
  ...e,
2914
2924
  input: se.time(
2915
2925
  le(e),
2916
- s.value(h.map(t, (c) => c?.toString())),
2926
+ s.value(m.map(t, (c) => c?.toString())),
2917
2927
  s.class("bc-input"),
2918
2928
  n != null ? $.blur(W(n)) : R,
2919
2929
  a != null ? $.change(
@@ -2932,7 +2942,7 @@ const pr = (e) => {
2932
2942
  ...e,
2933
2943
  input: se["datetime-local"](
2934
2944
  le(e),
2935
- s.value(h.map(t, (l) => l.toJSON())),
2945
+ s.value(m.map(t, (l) => l.toJSON())),
2936
2946
  s.class("bc-input"),
2937
2947
  n != null ? $.blur(W(n)) : R,
2938
2948
  a != null ? $.change(W((l) => a(r.PlainDateTime.from(l)))) : R
@@ -2946,7 +2956,7 @@ const pr = (e) => {
2946
2956
  ...e,
2947
2957
  input: se["datetime-local"](
2948
2958
  le(e),
2949
- s.value(h.map(t, (c) => c?.toJSON())),
2959
+ s.value(m.map(t, (c) => c?.toJSON())),
2950
2960
  s.class("bc-input"),
2951
2961
  n != null ? $.blur(W(n)) : R,
2952
2962
  a != null ? $.change(
@@ -2969,7 +2979,7 @@ const pr = (e) => {
2969
2979
  input: se["datetime-local"](
2970
2980
  le(e),
2971
2981
  s.value(
2972
- h.map(t, (l) => oa(Number(l.epochMilliseconds)))
2982
+ m.map(t, (l) => oa(Number(l.epochMilliseconds)))
2973
2983
  ),
2974
2984
  s.class("bc-input"),
2975
2985
  n != null ? $.blur(W(n)) : R,
@@ -2992,7 +3002,7 @@ const pr = (e) => {
2992
3002
  input: se["datetime-local"](
2993
3003
  le(e),
2994
3004
  s.value(
2995
- h.map(
3005
+ m.map(
2996
3006
  t,
2997
3007
  (c) => c == null ? null : ia(Number(c.epochMilliseconds))
2998
3008
  )
@@ -3015,12 +3025,12 @@ const pr = (e) => {
3015
3025
  ...e,
3016
3026
  input: se["datetime-local"](
3017
3027
  le(e),
3018
- s.value(h.map(t, (l) => l.toJSON())),
3028
+ s.value(m.map(t, (l) => l.toJSON())),
3019
3029
  s.class("bc-input"),
3020
3030
  n != null ? $.blur(W(n)) : R,
3021
3031
  a != null ? $.change(
3022
3032
  W((l) => {
3023
- const i = r.PlainDateTime.from(l), u = h.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3033
+ const i = r.PlainDateTime.from(l), u = m.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3024
3034
  return a(r.ZonedDateTime.from({ ...i, timeZone: u }));
3025
3035
  })
3026
3036
  ) : R
@@ -3034,13 +3044,13 @@ const pr = (e) => {
3034
3044
  ...e,
3035
3045
  input: se["datetime-local"](
3036
3046
  le(e),
3037
- s.value(h.map(t, (c) => c?.toJSON())),
3047
+ s.value(m.map(t, (c) => c?.toJSON())),
3038
3048
  s.class("bc-input"),
3039
3049
  n != null ? $.blur(W(n)) : R,
3040
3050
  a != null ? $.change(
3041
3051
  W((c) => {
3042
3052
  if (c === "") return a(null);
3043
- const o = u.PlainDateTime.from(c), f = h.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3053
+ const o = u.PlainDateTime.from(c), f = m.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3044
3054
  return a(u.ZonedDateTime.from({ ...o, timeZone: f }));
3045
3055
  })
3046
3056
  ) : R
@@ -3055,7 +3065,7 @@ const pr = (e) => {
3055
3065
  ...e,
3056
3066
  input: se.month(
3057
3067
  le(e),
3058
- s.value(h.map(t, (l) => l.toString())),
3068
+ s.value(m.map(t, (l) => l.toString())),
3059
3069
  s.class("bc-input"),
3060
3070
  n != null ? $.blur(W(n)) : R,
3061
3071
  a != null ? $.change(W((l) => a(r.PlainYearMonth.from(l)))) : R
@@ -3069,7 +3079,7 @@ const pr = (e) => {
3069
3079
  ...e,
3070
3080
  input: se.month(
3071
3081
  le(e),
3072
- s.value(h.map(t, (c) => c?.toString())),
3082
+ s.value(m.map(t, (c) => c?.toString())),
3073
3083
  s.class("bc-input"),
3074
3084
  n != null ? $.blur(W(n)) : R,
3075
3085
  a != null ? $.change(
@@ -3087,7 +3097,7 @@ const pr = (e) => {
3087
3097
  (a) => Le({
3088
3098
  ...e,
3089
3099
  // Map Temporal value to MM-DD string
3090
- value: h.map(t, (r) => r.toString()),
3100
+ value: m.map(t, (r) => r.toString()),
3091
3101
  onChange: n != null ? (r) => n(a.PlainMonthDay.from(`--${r}`)) : void 0,
3092
3102
  onInput: void 0,
3093
3103
  mask: "99-99",
@@ -3099,7 +3109,7 @@ const pr = (e) => {
3099
3109
  return ie(
3100
3110
  (i) => Le({
3101
3111
  ...e,
3102
- value: h.map(t, (u) => u?.toString() ?? ""),
3112
+ value: m.map(t, (u) => u?.toString() ?? ""),
3103
3113
  onChange: n != null ? (u) => n(u === "" ? null : i.PlainMonthDay.from(`--${u}`)) : void 0,
3104
3114
  onInput: void 0,
3105
3115
  mask: "99-99",
@@ -3112,7 +3122,7 @@ const pr = (e) => {
3112
3122
  return ie(
3113
3123
  (a) => Le({
3114
3124
  ...e,
3115
- value: h.map(t, (r) => r.toString()),
3125
+ value: m.map(t, (r) => r.toString()),
3116
3126
  onChange: n ? (r) => n(a.Duration.from(r)) : void 0,
3117
3127
  onInput: void 0,
3118
3128
  ...Tn(a.Duration.from),
@@ -3268,7 +3278,7 @@ function Fr({
3268
3278
  title: a.$.locale
3269
3279
  }),
3270
3280
  Ut({
3271
- options: h.map(
3281
+ options: m.map(
3272
3282
  e,
3273
3283
  (i) => i.map((u) => {
3274
3284
  let c = u.name;
@@ -3309,30 +3319,30 @@ function pa({
3309
3319
  onClose: u,
3310
3320
  class: c
3311
3321
  } = {}, ...o) {
3312
- const f = h.map(i, (p) => p != null);
3322
+ const f = m.map(i, (p) => p != null);
3313
3323
  return d.section(
3314
- Y(() => h.dispose(f)),
3324
+ Y(() => m.dispose(f)),
3315
3325
  s.class(
3316
- C(
3326
+ S(
3317
3327
  n,
3318
3328
  f,
3319
3329
  t,
3320
3330
  e,
3321
3331
  c
3322
3332
  )(
3323
- (p, x, v, b, m) => [
3333
+ (p, x, v, y, h) => [
3324
3334
  da(
3325
3335
  p,
3326
3336
  x,
3327
3337
  v,
3328
- b,
3329
- m
3338
+ y,
3339
+ h
3330
3340
  )
3331
3341
  ].join(" ")
3332
3342
  )
3333
3343
  ),
3334
3344
  s.style(
3335
- C(
3345
+ S(
3336
3346
  a,
3337
3347
  r
3338
3348
  )(
@@ -3417,25 +3427,25 @@ const ga = new ba(), an = {
3417
3427
  };
3418
3428
  }
3419
3429
  const r = [], l = ({ dismissAfter: c, onClose: o, animation: f = { fade: !0 }, ...p }, ...x) => {
3420
- t.update((m) => m + 1);
3421
- const v = c != null ? typeof c == "number" ? Dn(c * 1e3) : c : void 0, b = {
3430
+ t.update((h) => h + 1);
3431
+ const v = c != null ? typeof c == "number" ? Dn(c * 1e3) : c : void 0, y = {
3422
3432
  animation: f,
3423
- class: h.toSignal(p.class),
3424
- loading: h.toSignal(p.loading ?? !1),
3425
- withCloseButton: h.toSignal(
3433
+ class: m.toSignal(p.class),
3434
+ loading: m.toSignal(p.loading ?? !1),
3435
+ withCloseButton: m.toSignal(
3426
3436
  p.withCloseButton == null && c == null ? !0 : p.withCloseButton ?? !0
3427
3437
  ),
3428
- withBorder: h.toSignal(p.withBorder ?? !1),
3429
- color: h.toSignal(p.color ?? "primary"),
3430
- radius: h.toSignal(p.radius ?? "md"),
3438
+ withBorder: m.toSignal(p.withBorder ?? !1),
3439
+ color: m.toSignal(p.color ?? "primary"),
3440
+ radius: m.toSignal(p.radius ?? "md"),
3431
3441
  title: p.title ?? R,
3432
- icon: h.toSignal(p.icon),
3442
+ icon: m.toSignal(p.icon),
3433
3443
  children: x,
3434
- listenRequestClose: (m) => (r.push(m), o?.(), () => {
3444
+ listenRequestClose: (h) => (r.push(h), o?.(), () => {
3435
3445
  }),
3436
3446
  delayedClose: v
3437
3447
  };
3438
- n.forEach((m) => m(b));
3448
+ n.forEach((h) => h(y));
3439
3449
  }, i = () => {
3440
3450
  r.forEach((c) => c()), r.length = 0;
3441
3451
  }, u = ga.attach({ show: l, clear: i });
@@ -3530,27 +3540,27 @@ function jr({
3530
3540
  highlight: p,
3531
3541
  allowfullscreen: x = !1
3532
3542
  }) {
3533
- const v = h.toSignal(
3543
+ const v = m.toSignal(
3534
3544
  e
3535
- ).mapAsync(async (m) => {
3536
- if (m instanceof Blob) {
3537
- const w = await m.arrayBuffer(), y = new Blob([w], { type: "application/pdf" });
3538
- return URL.createObjectURL(y);
3545
+ ).mapAsync(async (h) => {
3546
+ if (h instanceof Blob) {
3547
+ const b = await h.arrayBuffer(), w = new Blob([b], { type: "application/pdf" });
3548
+ return URL.createObjectURL(w);
3539
3549
  } else {
3540
- if (m instanceof ArrayBuffer)
3550
+ if (h instanceof ArrayBuffer)
3541
3551
  return URL.createObjectURL(
3542
- new Blob([m], { type: "application/pdf" })
3552
+ new Blob([h], { type: "application/pdf" })
3543
3553
  );
3544
- if (m instanceof Uint8Array)
3554
+ if (h instanceof Uint8Array)
3545
3555
  return URL.createObjectURL(
3546
- new Blob([new Uint8Array(m)], { type: "application/pdf" })
3556
+ new Blob([new Uint8Array(h)], { type: "application/pdf" })
3547
3557
  );
3548
- if (typeof m == "string") {
3549
- const y = await (await fetch(m)).arrayBuffer(), g = new Blob([y], { type: "application/pdf" });
3558
+ if (typeof h == "string") {
3559
+ const w = await (await fetch(h)).arrayBuffer(), g = new Blob([w], { type: "application/pdf" });
3550
3560
  return URL.createObjectURL(g);
3551
3561
  }
3552
3562
  }
3553
- }, null), b = C(
3563
+ }, null), y = S(
3554
3564
  v,
3555
3565
  t,
3556
3566
  n,
@@ -3563,22 +3573,22 @@ function jr({
3563
3573
  o,
3564
3574
  f,
3565
3575
  p
3566
- )((m, w, y, g, S, _, L, V, P, I, M, F) => {
3567
- if (m == null) return null;
3576
+ )((h, b, w, g, k, T, L, V, P, I, M, F) => {
3577
+ if (h == null) return null;
3568
3578
  const O = [];
3569
- w === !1 && O.push("toolbar=0"), y != null && y > 0 && O.push(`page=${y}`), g != null && g > 0 && O.push(`zoom=${g}`), S != null && O.push(`view=${S}`), _ != null && O.push(`pagemode=${_}`), L === !1 && O.push("scrollbar=0"), V === !1 && O.push("navpanes=0"), P != null && O.push(`search=${encodeURIComponent(P)}`), I != null && O.push(`nameddest=${encodeURIComponent(I)}`), M != null && O.push(`viewrect=${encodeURIComponent(M)}`), F != null && O.push(`highlight=${encodeURIComponent(F)}`);
3579
+ b === !1 && O.push("toolbar=0"), w != null && w > 0 && O.push(`page=${w}`), g != null && g > 0 && O.push(`zoom=${g}`), k != null && O.push(`view=${k}`), T != null && O.push(`pagemode=${T}`), L === !1 && O.push("scrollbar=0"), V === !1 && O.push("navpanes=0"), P != null && O.push(`search=${encodeURIComponent(P)}`), I != null && O.push(`nameddest=${encodeURIComponent(I)}`), M != null && O.push(`viewrect=${encodeURIComponent(M)}`), F != null && O.push(`highlight=${encodeURIComponent(F)}`);
3570
3580
  const H = O.join("&");
3571
- return H ? `${m}#${H}` : m;
3581
+ return H ? `${h}#${H}` : h;
3572
3582
  });
3573
3583
  return d.div(
3574
3584
  Y(
3575
- b,
3576
- v.on((m, w) => {
3577
- w != null && URL.revokeObjectURL(w);
3585
+ y,
3586
+ v.on((h, b) => {
3587
+ b != null && URL.revokeObjectURL(b);
3578
3588
  }),
3579
3589
  () => {
3580
- const m = v.value;
3581
- m != null && URL.revokeObjectURL(m);
3590
+ const h = v.value;
3591
+ h != null && URL.revokeObjectURL(h);
3582
3592
  }
3583
3593
  ),
3584
3594
  s.class("h-full w-full"),
@@ -3590,13 +3600,13 @@ function jr({
3590
3600
  s.loading("lazy"),
3591
3601
  // Force iframe reload when URL changes (including fragment changes)
3592
3602
  // by manually updating src instead of using attr.src
3593
- ae((m) => {
3594
- const w = m;
3595
- let y = !0;
3603
+ ae((h) => {
3604
+ const b = h;
3605
+ let w = !0;
3596
3606
  return Y(
3597
- b.on((g) => {
3598
- g != null && (y ? (w.src = g, y = !1) : (w.src = "about:blank", setTimeout(() => {
3599
- w.src = g;
3607
+ y.on((g) => {
3608
+ g != null && (w ? (b.src = g, w = !1) : (b.src = "about:blank", setTimeout(() => {
3609
+ b.src = g;
3600
3610
  }, 50)));
3601
3611
  })
3602
3612
  );
@@ -3619,25 +3629,25 @@ function Hr({
3619
3629
  enablePrinting: p,
3620
3630
  viewerUrl: x = null,
3621
3631
  allowfullscreen: v = !0,
3622
- class: b = null
3632
+ class: y = null
3623
3633
  }) {
3624
- const m = h.toSignal(
3634
+ const h = m.toSignal(
3625
3635
  e
3626
- ).mapAsync(async (y) => {
3627
- if (y instanceof Blob)
3628
- return URL.createObjectURL(y);
3629
- if (y instanceof ArrayBuffer)
3636
+ ).mapAsync(async (w) => {
3637
+ if (w instanceof Blob)
3638
+ return URL.createObjectURL(w);
3639
+ if (w instanceof ArrayBuffer)
3630
3640
  return URL.createObjectURL(
3631
- new Blob([y], { type: "application/pdf" })
3641
+ new Blob([w], { type: "application/pdf" })
3632
3642
  );
3633
- if (y instanceof Uint8Array)
3643
+ if (w instanceof Uint8Array)
3634
3644
  return URL.createObjectURL(
3635
- new Blob([new Uint8Array(y)], { type: "application/pdf" })
3645
+ new Blob([new Uint8Array(w)], { type: "application/pdf" })
3636
3646
  );
3637
- if (typeof y == "string")
3638
- return y;
3639
- }, null), w = C(
3640
- m,
3647
+ if (typeof w == "string")
3648
+ return w;
3649
+ }, null), b = S(
3650
+ h,
3641
3651
  x,
3642
3652
  t,
3643
3653
  n,
@@ -3650,34 +3660,34 @@ function Hr({
3650
3660
  o,
3651
3661
  f,
3652
3662
  p
3653
- )((y, g, S, _, L, V, P, I, M, F, O, H, oe) => {
3654
- if (y == null) return null;
3663
+ )((w, g, k, T, L, V, P, I, M, F, O, H, oe) => {
3664
+ if (w == null) return null;
3655
3665
  const Q = g ?? "https://mozilla.github.io/pdf.js/web/viewer.html", U = new URLSearchParams();
3656
- U.set("file", encodeURIComponent(y));
3666
+ U.set("file", encodeURIComponent(w));
3657
3667
  const X = [];
3658
- S != null && S > 0 && X.push(`page=${S}`), _ != null && (typeof _ == "string" ? X.push(`zoom=${_}`) : X.push(`zoom=${_}`)), L != null && X.push(`pagemode=${L}`), V != null && X.push(`nameddest=${encodeURIComponent(V)}`), P != null && X.push(`search=${encodeURIComponent(P)}`), I != null && X.push(`textLayer=${I}`), M != null && X.push(`sidebar=${M}`), F != null && X.push(`scrollMode=${F}`), O != null && X.push(`spreadMode=${O}`), H != null && X.push(`enableScripting=${H ? "1" : "0"}`), oe != null && X.push(`enablePrinting=${oe ? "1" : "0"}`);
3668
+ k != null && k > 0 && X.push(`page=${k}`), T != null && (typeof T == "string" ? X.push(`zoom=${T}`) : X.push(`zoom=${T}`)), L != null && X.push(`pagemode=${L}`), V != null && X.push(`nameddest=${encodeURIComponent(V)}`), P != null && X.push(`search=${encodeURIComponent(P)}`), I != null && X.push(`textLayer=${I}`), M != null && X.push(`sidebar=${M}`), F != null && X.push(`scrollMode=${F}`), O != null && X.push(`spreadMode=${O}`), H != null && X.push(`enableScripting=${H ? "1" : "0"}`), oe != null && X.push(`enablePrinting=${oe ? "1" : "0"}`);
3659
3669
  const pe = X.length > 0 ? `#${X.join("&")}` : "";
3660
3670
  return `${Q}?${U.toString()}${pe}`;
3661
3671
  });
3662
3672
  return d.div(
3663
3673
  Y(
3664
- w,
3665
- m.on((y, g) => {
3674
+ b,
3675
+ h.on((w, g) => {
3666
3676
  g != null && g.startsWith("blob:") && URL.revokeObjectURL(g);
3667
3677
  }),
3668
3678
  () => {
3669
- const y = m.value;
3670
- y != null && y.startsWith("blob:") && URL.revokeObjectURL(y);
3679
+ const w = h.value;
3680
+ w != null && w.startsWith("blob:") && URL.revokeObjectURL(w);
3671
3681
  }
3672
3682
  ),
3673
3683
  s.class("bc-pdfjs-preview h-full w-full"),
3674
- s.class(b),
3684
+ s.class(y),
3675
3685
  d.iframe(
3676
3686
  s.class("h-full w-full"),
3677
3687
  s.allowfullscreen(v),
3678
3688
  s.title("PDF Preview"),
3679
3689
  s.loading("lazy"),
3680
- s.src(w)
3690
+ s.src(b)
3681
3691
  )
3682
3692
  );
3683
3693
  }
@@ -3685,13 +3695,13 @@ const zr = ({ id: e, css: t }) => at("head", d.style(s.id(e), s.innerHTML(t)));
3685
3695
  function ge(e, t) {
3686
3696
  return t == null ? null : d.meta(
3687
3697
  s.name(e),
3688
- s.content(h.map(t, (n) => String(n)))
3698
+ s.content(m.map(t, (n) => String(n)))
3689
3699
  );
3690
3700
  }
3691
3701
  function q(e, t) {
3692
3702
  return t == null ? null : d.meta(
3693
3703
  s.property(e),
3694
- s.content(h.map(t, (n) => String(n)))
3704
+ s.content(m.map(t, (n) => String(n)))
3695
3705
  );
3696
3706
  }
3697
3707
  function He(e, t) {
@@ -3699,7 +3709,7 @@ function He(e, t) {
3699
3709
  }
3700
3710
  function ha(e, t) {
3701
3711
  return t == null ? null : J(
3702
- h.map(t, (n) => Array.isArray(n)),
3712
+ m.map(t, (n) => Array.isArray(n)),
3703
3713
  () => He(e, t),
3704
3714
  () => q(e, t)
3705
3715
  );
@@ -3732,7 +3742,7 @@ const Wr = (e) => {
3732
3742
  "twitter:image:alt",
3733
3743
  Te(e.twitterImageAlt, e.imageAlt)
3734
3744
  )
3735
- ), e.canonical != null && h.get(e.canonical) != null && t.push(d.link(s.rel("canonical"), s.href(e.canonical))), t.push(ge("robots", e.robots)), t.push(ge("keywords", e.keywords)), t.push(ge("author", e.metaAuthor)), at("head", t.filter((n) => n != null).flat());
3745
+ ), e.canonical != null && m.get(e.canonical) != null && t.push(d.link(s.rel("canonical"), s.href(e.canonical))), t.push(ge("robots", e.robots)), t.push(ge("keywords", e.keywords)), t.push(ge("author", e.metaAuthor)), at("head", t.filter((n) => n != null).flat());
3736
3746
  }, it = ({
3737
3747
  viewTransition: e,
3738
3748
  state: t,
@@ -3787,13 +3797,13 @@ function va({
3787
3797
  r,
3788
3798
  () => d.span(
3789
3799
  s.class(
3790
- C(
3800
+ S(
3791
3801
  t,
3792
3802
  r
3793
3803
  )((x, v) => It(x, v))
3794
3804
  ),
3795
3805
  s.style(
3796
- C(a)(
3806
+ S(a)(
3797
3807
  (x) => $t(x ?? "base")
3798
3808
  )
3799
3809
  ),
@@ -3810,13 +3820,13 @@ function va({
3810
3820
  })
3811
3821
  },
3812
3822
  s.class(
3813
- C(
3823
+ S(
3814
3824
  t,
3815
3825
  r
3816
3826
  )((x, v) => It(x, v))
3817
3827
  ),
3818
3828
  s.style(
3819
- C(n)((x) => $t(x ?? "primary"))
3829
+ S(n)((x) => $t(x ?? "primary"))
3820
3830
  ),
3821
3831
  o ? s.target(o) : null,
3822
3832
  f ? s.rel(f) : null,
@@ -3848,8 +3858,8 @@ function xa(e, t, n) {
3848
3858
  new URLSearchParams(c.search).entries()
3849
3859
  ).sort(), f = Array.from(a.entries()).sort();
3850
3860
  return o.length !== f.length ? !1 : o.every(([p, x], v) => {
3851
- const [b, m] = f[v];
3852
- return p === b && x === m;
3861
+ const [y, h] = f[v];
3862
+ return p === y && x === h;
3853
3863
  });
3854
3864
  } catch {
3855
3865
  return e.pathname === t;
@@ -3859,7 +3869,7 @@ function xa(e, t, n) {
3859
3869
  }
3860
3870
  }
3861
3871
  function ct(e, t) {
3862
- return t === "exact" ? C(e)((n) => n) : C(e)(
3872
+ return t === "exact" ? S(e)((n) => n) : S(e)(
3863
3873
  (n) => (a) => xa(a, n, t)
3864
3874
  );
3865
3875
  }
@@ -3872,7 +3882,7 @@ function Yr({
3872
3882
  return ne(Ve, (l) => {
3873
3883
  const i = l.matchSignal(
3874
3884
  ct(e, t)
3875
- ), u = C(
3885
+ ), u = S(
3876
3886
  i,
3877
3887
  n
3878
3888
  )((c, o) => o ?? !0 ? c : !1);
@@ -3901,15 +3911,15 @@ function qr({
3901
3911
  color: p = "base",
3902
3912
  roundedness: x = "sm",
3903
3913
  disabled: v = !1
3904
- }, ...b) {
3905
- return u !== void 0 || c !== void 0 ? ne(Ve, (m) => {
3906
- const w = u !== void 0 ? m.matchSignal(ct(e, u)) : C(m.location)(() => !1), y = C(
3907
- w,
3914
+ }, ...y) {
3915
+ return u !== void 0 || c !== void 0 ? ne(Ve, (h) => {
3916
+ const b = u !== void 0 ? h.matchSignal(ct(e, u)) : S(h.location)(() => !1), w = S(
3917
+ b,
3908
3918
  c
3909
- )((S, _) => !(_ ?? !0) || !u ? !1 : S), g = C(
3919
+ )((k, T) => !(T ?? !0) || !u ? !1 : k), g = S(
3910
3920
  v,
3911
- y
3912
- )((S, _) => S || _);
3921
+ w
3922
+ )((k, T) => k || T);
3913
3923
  return Tt(
3914
3924
  {
3915
3925
  href: e,
@@ -3925,7 +3935,7 @@ function qr({
3925
3935
  roundedness: x,
3926
3936
  disabled: g
3927
3937
  },
3928
- ...b
3938
+ ...y
3929
3939
  );
3930
3940
  }) : Tt(
3931
3941
  {
@@ -3942,7 +3952,7 @@ function qr({
3942
3952
  roundedness: x,
3943
3953
  disabled: v
3944
3954
  },
3945
- ...b
3955
+ ...y
3946
3956
  );
3947
3957
  }
3948
3958
  function Tt({
@@ -3960,12 +3970,12 @@ function Tt({
3960
3970
  disabled: p = !1,
3961
3971
  fullWidth: x = !1,
3962
3972
  loading: v = !1
3963
- }, ...b) {
3973
+ }, ...y) {
3964
3974
  return J(
3965
3975
  p ?? !1,
3966
3976
  () => d.span(
3967
3977
  s.class(
3968
- C(
3978
+ S(
3969
3979
  c,
3970
3980
  f,
3971
3981
  v,
@@ -3973,19 +3983,19 @@ function Tt({
3973
3983
  )(bt)
3974
3984
  ),
3975
3985
  s.style(
3976
- C(
3986
+ S(
3977
3987
  u,
3978
3988
  o,
3979
3989
  p
3980
3990
  )(
3981
- (m, w, y) => gt(
3982
- m ?? "filled",
3983
- w ?? "base",
3984
- y
3991
+ (h, b, w) => gt(
3992
+ h ?? "filled",
3993
+ b ?? "base",
3994
+ w
3985
3995
  )
3986
3996
  )
3987
3997
  ),
3988
- ...b
3998
+ ...y
3989
3999
  ),
3990
4000
  () => rt(
3991
4001
  {
@@ -3998,7 +4008,7 @@ function Tt({
3998
4008
  })
3999
4009
  },
4000
4010
  s.class(
4001
- C(
4011
+ S(
4002
4012
  c,
4003
4013
  f,
4004
4014
  v,
@@ -4006,21 +4016,21 @@ function Tt({
4006
4016
  )(bt)
4007
4017
  ),
4008
4018
  s.style(
4009
- C(
4019
+ S(
4010
4020
  u,
4011
4021
  o,
4012
4022
  p
4013
4023
  )(
4014
- (m, w, y) => gt(
4015
- m ?? "filled",
4016
- w ?? "base",
4017
- y
4024
+ (h, b, w) => gt(
4025
+ h ?? "filled",
4026
+ b ?? "base",
4027
+ w
4018
4028
  )
4019
4029
  )
4020
4030
  ),
4021
4031
  l ? s.target(l) : null,
4022
4032
  i ? s.rel(i) : null,
4023
- ...b
4033
+ ...y
4024
4034
  )
4025
4035
  );
4026
4036
  }
@@ -4037,7 +4047,7 @@ const ka = {
4037
4047
  function Zr({ backgroundMode: e = "light" }, ...t) {
4038
4048
  return Lt(
4039
4049
  ka,
4040
- h.map(
4050
+ m.map(
4041
4051
  e,
4042
4052
  (n) => ({
4043
4053
  backgroundMode: n
@@ -4046,7 +4056,7 @@ function Zr({ backgroundMode: e = "light" }, ...t) {
4046
4056
  () => d.div(
4047
4057
  s.class("bc-sidebar"),
4048
4058
  s.class(
4049
- h.map(
4059
+ m.map(
4050
4060
  e,
4051
4061
  (n) => n === "dark" ? "bc-sidebar--dark-bg" : ""
4052
4062
  )
@@ -4060,7 +4070,7 @@ function _t({ rail: e, header: t }, ...n) {
4060
4070
  t != null ? d.div(s.class("bc-sidebar-group__header"), t) : null,
4061
4071
  d.div(
4062
4072
  s.class(
4063
- h.map(
4073
+ m.map(
4064
4074
  e ?? !1,
4065
4075
  (a) => a ? "bc-sidebar-group--rail" : ""
4066
4076
  )
@@ -4087,7 +4097,7 @@ function Ia(e, ...t) {
4087
4097
  s.type("button"),
4088
4098
  $.click(e.onClick),
4089
4099
  e.ariaExpanded != null ? B.expanded(
4090
- h.map(
4100
+ m.map(
4091
4101
  e.ariaExpanded,
4092
4102
  (n) => n
4093
4103
  )
@@ -4138,7 +4148,7 @@ function Gr({
4138
4148
  header: n,
4139
4149
  startOpen: a = !0
4140
4150
  }, ...r) {
4141
- const l = h.deriveProp(a), i = he("sidebar-group"), u = `${i}-content`;
4151
+ const l = m.deriveProp(a), i = he("sidebar-group"), u = `${i}-content`;
4142
4152
  return _t(
4143
4153
  {},
4144
4154
  s.class("bc-sidebar-group-collapsible"),
@@ -4194,7 +4204,7 @@ function Ue(e, t, n) {
4194
4204
  let l = 0;
4195
4205
  for (; l < a; ) {
4196
4206
  const i = t[r];
4197
- if (!h.get(i.disabled ?? !1))
4207
+ if (!m.get(i.disabled ?? !1))
4198
4208
  return r;
4199
4209
  r += n, r >= a ? r = 0 : r < 0 && (r = a - 1), l++;
4200
4210
  }
@@ -4212,61 +4222,61 @@ function Qr(e) {
4212
4222
  orientation: c = "horizontal",
4213
4223
  showContent: o = !0,
4214
4224
  ariaLabel: f
4215
- } = e, p = he("tablist"), x = G(-1), v = C(n)((m) => t.find((w) => w.key === m)), b = (m) => {
4216
- if (h.get(u)) return;
4217
- const y = x.value, g = h.get(c) === "horizontal";
4218
- let S = y;
4219
- switch (m.key) {
4225
+ } = e, p = he("tablist"), x = G(-1), v = S(n)((h) => t.find((b) => b.key === h)), y = (h) => {
4226
+ if (m.get(u)) return;
4227
+ const w = x.value, g = m.get(c) === "horizontal";
4228
+ let k = w;
4229
+ switch (h.key) {
4220
4230
  case (g ? "ArrowRight" : "ArrowDown"):
4221
- m.preventDefault(), S = Ue(y, t, 1);
4231
+ h.preventDefault(), k = Ue(w, t, 1);
4222
4232
  break;
4223
4233
  case (g ? "ArrowLeft" : "ArrowUp"):
4224
- m.preventDefault(), S = Ue(y, t, -1);
4234
+ h.preventDefault(), k = Ue(w, t, -1);
4225
4235
  break;
4226
4236
  case "Home":
4227
- m.preventDefault(), S = Ue(-1, t, 1);
4237
+ h.preventDefault(), k = Ue(-1, t, 1);
4228
4238
  break;
4229
4239
  case "End":
4230
- m.preventDefault(), S = Ue(t.length, t, -1);
4240
+ h.preventDefault(), k = Ue(t.length, t, -1);
4231
4241
  break;
4232
4242
  case "Enter":
4233
4243
  case " ":
4234
- if (m.preventDefault(), y >= 0 && y < t.length) {
4235
- const _ = t[y];
4236
- h.get(_.disabled ?? !1) || a?.(_.key);
4244
+ if (h.preventDefault(), w >= 0 && w < t.length) {
4245
+ const T = t[w];
4246
+ m.get(T.disabled ?? !1) || a?.(T.key);
4237
4247
  }
4238
4248
  break;
4239
4249
  }
4240
- S !== y && S >= 0 && S < t.length && (x.set(S), setTimeout(() => {
4241
- const _ = document.querySelector(
4242
- `[data-tab-index="${S}"]`
4250
+ k !== w && k >= 0 && k < t.length && (x.set(k), setTimeout(() => {
4251
+ const T = document.querySelector(
4252
+ `[data-tab-index="${k}"]`
4243
4253
  );
4244
- _ && _.focus();
4254
+ T && T.focus();
4245
4255
  }, 0));
4246
4256
  };
4247
4257
  return d.div(
4248
4258
  Y(v, x),
4249
4259
  s.class(
4250
- C(
4260
+ S(
4251
4261
  r,
4252
4262
  c,
4253
4263
  u,
4254
4264
  l
4255
4265
  )(
4256
- (m, w, y, g) => Ta(
4257
- m ?? "md",
4258
- w ?? "horizontal",
4259
- y ?? !1,
4266
+ (h, b, w, g) => Ta(
4267
+ h ?? "md",
4268
+ b ?? "horizontal",
4269
+ w ?? !1,
4260
4270
  g ?? "default"
4261
4271
  )
4262
4272
  )
4263
4273
  ),
4264
4274
  s.style(
4265
- C(
4275
+ S(
4266
4276
  l,
4267
4277
  i
4268
4278
  )(
4269
- (m, w) => _a(m ?? "default", w ?? "primary")
4279
+ (h, b) => _a(h ?? "default", b ?? "primary")
4270
4280
  )
4271
4281
  ),
4272
4282
  // Tab list
@@ -4278,19 +4288,19 @@ function Qr(e) {
4278
4288
  c ?? "horizontal"
4279
4289
  ),
4280
4290
  f ? B.label(f) : E(),
4281
- $.keydown(b),
4282
- ...t.map((m, w) => {
4283
- const y = C(n)((L) => L === m.key), g = C(
4291
+ $.keydown(y),
4292
+ ...t.map((h, b) => {
4293
+ const w = S(n)((L) => L === h.key), g = S(
4284
4294
  u,
4285
- m.disabled
4286
- )((L, V) => L || V), S = `${p}-tab-${m.key}`, _ = `${p}-panel-${m.key}`;
4295
+ h.disabled
4296
+ )((L, V) => L || V), k = `${p}-tab-${h.key}`, T = `${p}-panel-${h.key}`;
4287
4297
  return d.button(
4288
- Y(y, g),
4298
+ Y(w, g),
4289
4299
  s.type("button"),
4290
4300
  s.class(
4291
- C(
4301
+ S(
4292
4302
  r,
4293
- y,
4303
+ w,
4294
4304
  g
4295
4305
  )(
4296
4306
  (L, V, P) => Da(
@@ -4300,45 +4310,45 @@ function Qr(e) {
4300
4310
  )
4301
4311
  )
4302
4312
  ),
4303
- s.id(S),
4313
+ s.id(k),
4304
4314
  s.role("tab"),
4305
4315
  s.tabindex(
4306
- C(
4307
- y,
4316
+ S(
4317
+ w,
4308
4318
  x
4309
- )((L, V) => L || V === w ? 0 : -1)
4319
+ )((L, V) => L || V === b ? 0 : -1)
4310
4320
  ),
4311
- B.selected(y),
4312
- B.controls(_),
4321
+ B.selected(w),
4322
+ B.controls(T),
4313
4323
  B.disabled(g),
4314
4324
  s.disabled(g),
4315
- nt["tab-index"](String(w)),
4316
- m.ariaLabel ? B.label(m.ariaLabel) : E(),
4325
+ nt["tab-index"](String(b)),
4326
+ h.ariaLabel ? B.label(h.ariaLabel) : E(),
4317
4327
  $.click((L) => {
4318
- L.preventDefault(), h.get(m.disabled ?? !1) || h.get(u) || (a?.(m.key), x.set(w));
4328
+ L.preventDefault(), m.get(h.disabled ?? !1) || m.get(u) || (a?.(h.key), x.set(b));
4319
4329
  }),
4320
4330
  $.focus(() => {
4321
- x.set(w);
4331
+ x.set(b);
4322
4332
  }),
4323
- m.label
4333
+ h.label
4324
4334
  );
4325
4335
  })
4326
4336
  ),
4327
4337
  // Panel
4328
4338
  J(
4329
4339
  o ?? !0,
4330
- () => Ye(v, (m) => {
4331
- const w = m.$.key, y = w.map((S) => `${p}-tab-${S}`), g = w.map((S) => `${p}-panel-${S}`);
4340
+ () => Ye(v, (h) => {
4341
+ const b = h.$.key, w = b.map((k) => `${p}-tab-${k}`), g = b.map((k) => `${p}-panel-${k}`);
4332
4342
  return d.div(
4333
- Y(w),
4343
+ Y(b),
4334
4344
  s.class("bc-tabs__panels"),
4335
4345
  d.div(
4336
4346
  s.class("bc-tabs__panel"),
4337
4347
  s.id(g),
4338
4348
  s.role("tabpanel"),
4339
4349
  s.tabindex(0),
4340
- B.labelledby(y),
4341
- At(m, (S) => S.content())
4350
+ B.labelledby(w),
4351
+ At(h, (k) => k.content())
4342
4352
  )
4343
4353
  );
4344
4354
  })
@@ -4357,20 +4367,20 @@ function Xr(e) {
4357
4367
  showCloseButton: p = !0,
4358
4368
  onClose: x,
4359
4369
  overlayEffect: v = "opaque",
4360
- container: b = "body",
4361
- header: m,
4362
- body: w,
4363
- footer: y
4370
+ container: y = "body",
4371
+ header: h,
4372
+ body: b,
4373
+ footer: w
4364
4374
  } = u;
4365
4375
  a = n;
4366
4376
  const g = G("capturing");
4367
- h.on(f, (L) => {
4377
+ m.on(f, (L) => {
4368
4378
  g.set(L ? "capturing" : "non-capturing");
4369
4379
  });
4370
- const S = C(
4371
- m != null,
4380
+ const k = S(
4381
+ h != null,
4372
4382
  p
4373
- )((L, V) => L || V), _ = ae((L) => {
4383
+ )((L, V) => L || V), T = ae((L) => {
4374
4384
  const V = Me({
4375
4385
  initialStatus: "closed",
4376
4386
  element: L
@@ -4380,16 +4390,16 @@ function Xr(e) {
4380
4390
  }), a = () => {
4381
4391
  V.close();
4382
4392
  }, We(() => V.open());
4383
- const I = he("drawer"), M = m != null ? `${I}-header` : void 0, F = `${I}-body`;
4393
+ const I = he("drawer"), M = h != null ? `${I}-header` : void 0, F = `${I}-body`;
4384
4394
  return d.div(
4385
4395
  Y(V),
4386
4396
  s.class(
4387
- C(
4397
+ S(
4388
4398
  c,
4389
4399
  o,
4390
4400
  V.status
4391
4401
  )(
4392
- (O, H, oe) => `bc-drawer bc-drawer--size-${O} bc-drawer--container-${b} bc-drawer--side-${H} bc-drawer--status-${oe}`
4402
+ (O, H, oe) => `bc-drawer bc-drawer--size-${O} bc-drawer--container-${y} bc-drawer--side-${H} bc-drawer--status-${oe}`
4393
4403
  )
4394
4404
  ),
4395
4405
  // Essential ARIA attributes for drawer dialog
@@ -4414,10 +4424,10 @@ function Xr(e) {
4414
4424
  $.mousedown((O) => O.stopPropagation()),
4415
4425
  // Prevent overlay click-outside when clicking drawer content
4416
4426
  // Drawer content container
4417
- At(S, (O) => kt(O ? {
4427
+ At(k, (O) => kt(O ? {
4418
4428
  header: d.div(
4419
4429
  s.class("bc-drawer__header"),
4420
- d.div(s.id(M), m),
4430
+ d.div(s.id(M), h),
4421
4431
  J(
4422
4432
  p,
4423
4433
  () => ne(
@@ -4433,24 +4443,24 @@ function Xr(e) {
4433
4443
  body: d.div(
4434
4444
  s.class("bc-drawer__body"),
4435
4445
  s.id(F),
4436
- w
4446
+ b
4437
4447
  ),
4438
- footer: y && d.div(s.class("bc-drawer__footer"), y)
4448
+ footer: w && d.div(s.class("bc-drawer__footer"), w)
4439
4449
  } : {
4440
4450
  body: d.div(
4441
4451
  s.class("bc-drawer__body"),
4442
4452
  s.id(F),
4443
- w
4453
+ b
4444
4454
  ),
4445
- footer: y && d.div(s.class("bc-drawer__footer"), y)
4455
+ footer: w && d.div(s.class("bc-drawer__footer"), w)
4446
4456
  }))
4447
4457
  );
4448
4458
  });
4449
4459
  t({
4450
4460
  mode: g,
4451
4461
  effect: v ?? "opaque",
4452
- container: b,
4453
- content: E(Y(g, S), _),
4462
+ container: y,
4463
+ content: E(Y(g, k), T),
4454
4464
  onClickOutside: () => {
4455
4465
  x?.(), r();
4456
4466
  },
@@ -4513,7 +4523,7 @@ function Jr(e) {
4513
4523
  return E(
4514
4524
  s.class("bc-tooltip__arrow"),
4515
4525
  s.class(f.map((p) => `bc-tooltip__arrow-${p}`)),
4516
- k.transform(
4526
+ C.transform(
4517
4527
  o.map(({ x: p, y: x }) => p == null && x == null ? "" : p != null ? `translate(${p}px, 0)` : `translate(0, ${x}px)`)
4518
4528
  ),
4519
4529
  Pa(f)
@@ -4552,7 +4562,7 @@ function es({
4552
4562
  s.class("bc-ribbon"),
4553
4563
  // Theme styles via CSS variables
4554
4564
  s.style(
4555
- C(
4565
+ S(
4556
4566
  e,
4557
4567
  n,
4558
4568
  a,
@@ -4582,22 +4592,22 @@ function ts(e, t) {
4582
4592
  const v = G(
4583
4593
  typeof n != "boolean" || n ? "capturing" : "non-capturing"
4584
4594
  );
4585
- let b = typeof n == "boolean" ? n : !0;
4586
- h.on(n, (w) => {
4587
- b = w, v.set(w ? "capturing" : "non-capturing");
4595
+ let y = typeof n == "boolean" ? n : !0;
4596
+ m.on(n, (b) => {
4597
+ y = b, v.set(b ? "capturing" : "non-capturing");
4588
4598
  });
4589
- const m = d.div(
4599
+ const h = d.div(
4590
4600
  s.class("bc-lightbox"),
4591
4601
  // Close button (top-end)
4592
4602
  J(
4593
4603
  a,
4594
4604
  () => ne(
4595
4605
  fe,
4596
- (w) => d.div(
4606
+ (b) => d.div(
4597
4607
  s.class("bc-lightbox__close"),
4598
4608
  qe({
4599
4609
  size: "md",
4600
- label: w.$.closeModal,
4610
+ label: b.$.closeModal,
4601
4611
  onClick: () => {
4602
4612
  o(), c();
4603
4613
  }
@@ -4611,8 +4621,8 @@ function ts(e, t) {
4611
4621
  s.class("bc-lightbox__viewport"),
4612
4622
  // Visual padding applied here
4613
4623
  s.style(
4614
- C(i)(
4615
- (w) => `padding:${typeof w == "number" ? w + "px" : w}`
4624
+ S(i)(
4625
+ (b) => `padding:${typeof b == "number" ? b + "px" : b}`
4616
4626
  )
4617
4627
  ),
4618
4628
  // Content wrapper capped by viewport; overflow is clipped
@@ -4623,12 +4633,12 @@ function ts(e, t) {
4623
4633
  mode: v,
4624
4634
  effect: r ?? "opaque",
4625
4635
  container: l,
4626
- content: E(Y(v), m),
4636
+ content: E(Y(v), h),
4627
4637
  onClickOutside: () => {
4628
- b && (o(), c());
4638
+ y && (o(), c());
4629
4639
  },
4630
4640
  onEscape: () => {
4631
- b && (o(), c());
4641
+ y && (o(), c());
4632
4642
  }
4633
4643
  });
4634
4644
  }, () => {
@@ -4665,13 +4675,13 @@ function ns(e) {
4665
4675
  height: p,
4666
4676
  progressInterval: x = 1e3,
4667
4677
  seekTo: v,
4668
- config: b,
4669
- onReady: m,
4670
- onStart: w,
4671
- onPlay: y,
4678
+ config: y,
4679
+ onReady: h,
4680
+ onStart: b,
4681
+ onPlay: w,
4672
4682
  onPause: g,
4673
- onBuffer: S,
4674
- onBufferEnd: _,
4683
+ onBuffer: k,
4684
+ onBufferEnd: T,
4675
4685
  onEnded: L,
4676
4686
  onError: V,
4677
4687
  onDuration: P,
@@ -4680,12 +4690,12 @@ function ns(e) {
4680
4690
  onPlaybackRateChange: F,
4681
4691
  onPlaybackQualityChange: O
4682
4692
  } = e;
4683
- function H(T) {
4684
- return /\.m3u8(\?|$)/i.test(T);
4693
+ function H(_) {
4694
+ return /\.m3u8(\?|$)/i.test(_);
4685
4695
  }
4686
- function oe(T) {
4696
+ function oe(_) {
4687
4697
  try {
4688
- const A = T.canPlayType("application/vnd.apple.mpegurl");
4698
+ const A = _.canPlayType("application/vnd.apple.mpegurl");
4689
4699
  return A === "probably" || A === "maybe";
4690
4700
  } catch {
4691
4701
  return !1;
@@ -4702,22 +4712,22 @@ function ns(e) {
4702
4712
  }
4703
4713
  const ue = [];
4704
4714
  ue.push(
4705
- h.on(t, (T) => {
4706
- typeof T == "string" && T.length > 0 && Aa(T) ? Q.value = "youtube" : (Q.value = "file", U && Oe());
4715
+ m.on(t, (_) => {
4716
+ typeof _ == "string" && _.length > 0 && Aa(_) ? Q.value = "youtube" : (Q.value = "file", U && Oe());
4707
4717
  })
4708
4718
  );
4709
4719
  async function Oe() {
4710
- const T = U;
4711
- if (!T) return;
4712
- const A = h.get(t);
4720
+ const _ = U;
4721
+ if (!_) return;
4722
+ const A = m.get(t);
4713
4723
  if (typeof A != "string" || A.length === 0) return;
4714
4724
  Ne();
4715
- const j = b?.file?.forceHLS ?? !1;
4725
+ const j = y?.file?.forceHLS ?? !1;
4716
4726
  if (H(A) || j) {
4717
- if (oe(T)) {
4718
- T.setAttribute("src", A);
4727
+ if (oe(_)) {
4728
+ _.setAttribute("src", A);
4719
4729
  try {
4720
- T.load();
4730
+ _.load();
4721
4731
  } catch {
4722
4732
  }
4723
4733
  return;
@@ -4731,45 +4741,45 @@ function ns(e) {
4731
4741
  if (typeof $e == "function") {
4732
4742
  const De = $e;
4733
4743
  if (typeof De.isSupported == "function" && De.isSupported()) {
4734
- T.removeAttribute("src");
4744
+ _.removeAttribute("src");
4735
4745
  try {
4736
- T.load();
4746
+ _.load();
4737
4747
  } catch {
4738
4748
  }
4739
- const Ke = new De(b?.hls);
4740
- pe = Ke, Ke.attachMedia(T), Ke.loadSource(A);
4749
+ const Ke = new De(y?.hls);
4750
+ pe = Ke, Ke.attachMedia(_), Ke.loadSource(A);
4741
4751
  } else {
4742
- T.setAttribute("src", A);
4752
+ _.setAttribute("src", A);
4743
4753
  try {
4744
- T.load();
4754
+ _.load();
4745
4755
  } catch {
4746
4756
  }
4747
4757
  }
4748
4758
  } else {
4749
- T.setAttribute("src", A);
4759
+ _.setAttribute("src", A);
4750
4760
  try {
4751
- T.load();
4761
+ _.load();
4752
4762
  } catch {
4753
4763
  }
4754
4764
  }
4755
4765
  } catch (Z) {
4756
- V?.(Z), T.setAttribute("src", A);
4766
+ V?.(Z), _.setAttribute("src", A);
4757
4767
  try {
4758
- T.load();
4768
+ _.load();
4759
4769
  } catch {
4760
4770
  }
4761
4771
  }
4762
4772
  return;
4763
4773
  }
4764
- T.setAttribute("src", A);
4774
+ _.setAttribute("src", A);
4765
4775
  try {
4766
- T.load();
4776
+ _.load();
4767
4777
  } catch {
4768
4778
  }
4769
4779
  }
4770
4780
  function Re() {
4771
4781
  X?.();
4772
- const T = h.get(x) ?? 1e3;
4782
+ const _ = m.get(x) ?? 1e3;
4773
4783
  X = vt(() => {
4774
4784
  const A = U;
4775
4785
  if (!A) return;
@@ -4780,23 +4790,23 @@ function ns(e) {
4780
4790
  loaded: j > 0 ? Math.min(Be, j) / j : 0,
4781
4791
  loadedSeconds: Math.min(Be, j)
4782
4792
  });
4783
- }, T);
4793
+ }, _);
4784
4794
  }
4785
- function ke(T) {
4786
- if (T != null)
4787
- return typeof T == "number" ? `${T}px` : T;
4795
+ function ke(_) {
4796
+ if (_ != null)
4797
+ return typeof _ == "number" ? `${_}px` : _;
4788
4798
  }
4789
4799
  const Ae = d.video(
4790
- ae((T) => {
4791
- U = T, m?.();
4800
+ ae((_) => {
4801
+ U = _, h?.();
4792
4802
  try {
4793
- U.playbackRate = h.get(u) ?? 1;
4803
+ U.playbackRate = m.get(u) ?? 1;
4794
4804
  } catch {
4795
4805
  }
4796
- U.muted = !!(h.get(i) ?? !1), U.loop = !!(h.get(a) ?? !1), U.controls = !!(h.get(r) ?? !1), U.playsInline != null && (!!(h.get(o) ?? !0) ? U.setAttribute("playsinline", "") : U.removeAttribute("playsinline")), h.get(n) && (U.play?.().catch(() => {
4797
- }), w?.());
4806
+ U.muted = !!(m.get(i) ?? !1), U.loop = !!(m.get(a) ?? !1), U.controls = !!(m.get(r) ?? !1), U.playsInline != null && (!!(m.get(o) ?? !0) ? U.setAttribute("playsinline", "") : U.removeAttribute("playsinline")), m.get(n) && (U.play?.().catch(() => {
4807
+ }), b?.());
4798
4808
  try {
4799
- const A = !!(h.get(c) ?? !1), j = document, Z = U;
4809
+ const A = !!(m.get(c) ?? !1), j = document, Z = U;
4800
4810
  A ? typeof Z.requestPictureInPicture == "function" && j.pictureInPictureElement !== U && Z.requestPictureInPicture().catch(() => {
4801
4811
  }) : j.pictureInPictureElement === U && typeof j.exitPictureInPicture == "function" && j.exitPictureInPicture().catch(() => {
4802
4812
  });
@@ -4805,33 +4815,33 @@ function ns(e) {
4805
4815
  Re(), Oe();
4806
4816
  }),
4807
4817
  // size
4808
- k.width(
4809
- h.map(f, ke)
4818
+ C.width(
4819
+ m.map(f, ke)
4810
4820
  ),
4811
- k.height(
4812
- h.map(p, ke)
4821
+ C.height(
4822
+ m.map(p, ke)
4813
4823
  ),
4814
4824
  // Events
4815
- $.play(() => y?.()),
4825
+ $.play(() => w?.()),
4816
4826
  $.playing(() => {
4817
- w?.(), _?.();
4827
+ b?.(), T?.();
4818
4828
  }),
4819
4829
  $.pause(() => g?.()),
4820
- $.waiting(() => S?.()),
4830
+ $.waiting(() => k?.()),
4821
4831
  $.canplay(() => {
4822
- const T = U?.duration;
4823
- T != null && Number.isFinite(T) && P?.(T);
4832
+ const _ = U?.duration;
4833
+ _ != null && Number.isFinite(_) && P?.(_);
4824
4834
  }),
4825
4835
  $.ended(() => L?.()),
4826
- $.error((T) => {
4827
- pe || V?.(T);
4836
+ $.error((_) => {
4837
+ pe || V?.(_);
4828
4838
  })
4829
4839
  );
4830
4840
  let Ce = null, z = null, Se = null;
4831
4841
  function Ie() {
4832
- const T = h.get(t);
4833
- !Ce || typeof T != "string" || Ba().then((A) => {
4834
- const j = rn(T);
4842
+ const _ = m.get(t);
4843
+ !Ce || typeof _ != "string" || Ba().then((A) => {
4844
+ const j = rn(_);
4835
4845
  if (j) {
4836
4846
  if (z) {
4837
4847
  z.loadVideoById({ videoId: j });
@@ -4842,18 +4852,18 @@ function ns(e) {
4842
4852
  playerVars: Va(e),
4843
4853
  events: {
4844
4854
  onReady: () => {
4845
- m?.(), D(), h.get(n) && w?.(), Ge();
4855
+ h?.(), D(), m.get(n) && b?.(), Ge();
4846
4856
  },
4847
4857
  onStateChange: (Z) => {
4848
4858
  switch (Z.data) {
4849
4859
  case A.PlayerState.PLAYING:
4850
- y?.(), _?.();
4860
+ w?.(), T?.();
4851
4861
  break;
4852
4862
  case A.PlayerState.PAUSED:
4853
4863
  g?.();
4854
4864
  break;
4855
4865
  case A.PlayerState.BUFFERING:
4856
- S?.();
4866
+ k?.();
4857
4867
  break;
4858
4868
  case A.PlayerState.ENDED:
4859
4869
  L?.();
@@ -4870,7 +4880,7 @@ function ns(e) {
4870
4880
  }
4871
4881
  function Ge() {
4872
4882
  Se?.();
4873
- const T = h.get(x) ?? 1e3;
4883
+ const _ = m.get(x) ?? 1e3;
4874
4884
  Se = vt(() => {
4875
4885
  if (!z) return;
4876
4886
  const A = z.getDuration?.() ?? 0, j = z.getCurrentTime?.() ?? 0, Z = z.getVideoLoadedFraction?.() ?? 0;
@@ -4880,101 +4890,101 @@ function ns(e) {
4880
4890
  loaded: Z,
4881
4891
  loadedSeconds: Z * A
4882
4892
  });
4883
- }, T);
4893
+ }, _);
4884
4894
  }
4885
4895
  function D() {
4886
4896
  if (!z) return;
4887
4897
  try {
4888
- const j = h.get(u) ?? 1;
4898
+ const j = m.get(u) ?? 1;
4889
4899
  z.setPlaybackRate?.(j);
4890
4900
  } catch {
4891
4901
  }
4892
4902
  try {
4893
4903
  const j = Math.round(
4894
- Math.min(Math.max(h.get(l) ?? 1, 0), 1) * 100
4904
+ Math.min(Math.max(m.get(l) ?? 1, 0), 1) * 100
4895
4905
  );
4896
4906
  z.setVolume?.(j);
4897
4907
  } catch {
4898
4908
  }
4899
4909
  try {
4900
- h.get(i) ?? !1 ? z.mute?.() : z.unMute?.();
4910
+ m.get(i) ?? !1 ? z.mute?.() : z.unMute?.();
4901
4911
  } catch {
4902
4912
  }
4903
- h.get(n) ?? !1 ? z.playVideo?.() : z.pauseVideo?.();
4904
- const A = h.get(v);
4913
+ m.get(n) ?? !1 ? z.playVideo?.() : z.pauseVideo?.();
4914
+ const A = m.get(v);
4905
4915
  typeof A == "number" && Number.isFinite(A) && (z.seekTo?.(A, !0), I?.(A));
4906
4916
  }
4907
4917
  const N = d.div(
4908
- ae((T) => {
4909
- Ce = T, Ie(), m?.();
4918
+ ae((_) => {
4919
+ Ce = _, Ie(), h?.();
4910
4920
  })
4911
4921
  );
4912
4922
  ue.push(
4913
- h.on(t, () => {
4923
+ m.on(t, () => {
4914
4924
  Q.value === "youtube" && Ie();
4915
4925
  })
4916
4926
  ), ue.push(
4917
- h.on(n, () => {
4918
- Q.value === "file" && U ? h.get(n) ? U.play?.().catch(() => {
4919
- }) : U.pause?.() : Q.value === "youtube" && z && (h.get(n) ? z.playVideo?.() : z.pauseVideo?.());
4927
+ m.on(n, () => {
4928
+ Q.value === "file" && U ? m.get(n) ? U.play?.().catch(() => {
4929
+ }) : U.pause?.() : Q.value === "youtube" && z && (m.get(n) ? z.playVideo?.() : z.pauseVideo?.());
4920
4930
  })
4921
4931
  ), ue.push(
4922
- h.on(l, () => {
4932
+ m.on(l, () => {
4923
4933
  if (Q.value === "file" && U)
4924
- U.volume = Math.min(Math.max(h.get(l) ?? 1, 0), 1);
4934
+ U.volume = Math.min(Math.max(m.get(l) ?? 1, 0), 1);
4925
4935
  else if (Q.value === "youtube" && z) {
4926
- const T = Math.round(
4927
- Math.min(Math.max(h.get(l) ?? 1, 0), 1) * 100
4936
+ const _ = Math.round(
4937
+ Math.min(Math.max(m.get(l) ?? 1, 0), 1) * 100
4928
4938
  );
4929
- z.setVolume?.(T);
4939
+ z.setVolume?.(_);
4930
4940
  }
4931
4941
  })
4932
4942
  ), ue.push(
4933
- h.on(i, () => {
4934
- Q.value === "file" && U ? U.muted = !!h.get(i) : Q.value === "youtube" && z && (h.get(i) ? z.mute?.() : z.unMute?.());
4943
+ m.on(i, () => {
4944
+ Q.value === "file" && U ? U.muted = !!m.get(i) : Q.value === "youtube" && z && (m.get(i) ? z.mute?.() : z.unMute?.());
4935
4945
  })
4936
4946
  ), ue.push(
4937
- h.on(u, () => {
4947
+ m.on(u, () => {
4938
4948
  if (Q.value === "file" && U)
4939
4949
  try {
4940
- U.playbackRate = h.get(u) ?? 1;
4950
+ U.playbackRate = m.get(u) ?? 1;
4941
4951
  } catch {
4942
4952
  }
4943
- else Q.value === "youtube" && z && z.setPlaybackRate?.(h.get(u) ?? 1);
4953
+ else Q.value === "youtube" && z && z.setPlaybackRate?.(m.get(u) ?? 1);
4944
4954
  })
4945
4955
  ), ue.push(
4946
- h.on(c, async () => {
4956
+ m.on(c, async () => {
4947
4957
  if (!(Q.value !== "file" || !U))
4948
4958
  try {
4949
- const T = !!(h.get(c) ?? !1), A = document, j = U;
4950
- T ? typeof j.requestPictureInPicture == "function" && A.pictureInPictureElement !== U && await j.requestPictureInPicture()?.catch(() => {
4959
+ const _ = !!(m.get(c) ?? !1), A = document, j = U;
4960
+ _ ? typeof j.requestPictureInPicture == "function" && A.pictureInPictureElement !== U && await j.requestPictureInPicture()?.catch(() => {
4951
4961
  }) : A.pictureInPictureElement === U && typeof A.exitPictureInPicture == "function" && await A.exitPictureInPicture()?.catch(() => {
4952
4962
  });
4953
4963
  } catch {
4954
4964
  }
4955
4965
  })
4956
4966
  ), ue.push(
4957
- h.on(v ?? null, () => {
4958
- const T = h.get(v);
4959
- if (T != null)
4967
+ m.on(v ?? null, () => {
4968
+ const _ = m.get(v);
4969
+ if (_ != null)
4960
4970
  if (Q.value === "file" && U)
4961
4971
  try {
4962
- U.currentTime = T, I?.(T);
4972
+ U.currentTime = _, I?.(_);
4963
4973
  } catch {
4964
4974
  }
4965
- else Q.value === "youtube" && z && (z.seekTo?.(T, !0), I?.(T));
4975
+ else Q.value === "youtube" && z && (z.seekTo?.(_, !0), I?.(_));
4966
4976
  })
4967
4977
  );
4968
4978
  const K = d.div(
4969
4979
  s.class("bc-base-video"),
4970
- k.width(
4971
- h.map(f, ke)
4980
+ C.width(
4981
+ m.map(f, ke)
4972
4982
  ),
4973
- k.height(
4974
- h.map(p, ke)
4983
+ C.height(
4984
+ m.map(p, ke)
4975
4985
  ),
4976
4986
  J(
4977
- h.map(Q, (T) => T === "youtube"),
4987
+ m.map(Q, (_) => _ === "youtube"),
4978
4988
  () => N,
4979
4989
  () => Ae
4980
4990
  )
@@ -4991,12 +5001,12 @@ function rn(e) {
4991
5001
  }
4992
5002
  function Va(e) {
4993
5003
  const t = {
4994
- autoplay: h.get(e.playing) ?? !1 ? 1 : 0,
4995
- controls: h.get(e.controls) ?? !1 ? 1 : 0,
5004
+ autoplay: m.get(e.playing) ?? !1 ? 1 : 0,
5005
+ controls: m.get(e.controls) ?? !1 ? 1 : 0,
4996
5006
  rel: 0,
4997
- playsinline: h.get(e.playsinline) ?? !0 ? 1 : 0,
5007
+ playsinline: m.get(e.playsinline) ?? !0 ? 1 : 0,
4998
5008
  modestbranding: 1
4999
- }, n = h.get(e.loop) ?? !1, a = h.get(e.url), r = typeof a == "string" ? rn(a) : null;
5009
+ }, n = m.get(e.loop) ?? !1, a = m.get(e.url), r = typeof a == "string" ? rn(a) : null;
5000
5010
  return n && r && (t.loop = 1, t.playlist = r), t;
5001
5011
  }
5002
5012
  export {