@tempots/beatui 0.61.0 → 0.61.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,19 +1,19 @@
1
- import { prop as Z, html as d, attr as r, computedOf as I, Fragment as R, OnDispose as oe, style as S, on as A, WithElement as ne, When as Q, Value as v, Use as ae, Empty as W, input as pe, emitValue as te, aria as M, OneOfValue as bn, Unless as gn, coalesce as Pe, ForEach as Le, Ensure as Fe, OneOfType as Mt, dataAttr as st, NotEmpty as mn, emitValueAsDate as hn, Portal as lt, makeProviderMark as Ot, WithBrowserCtx as vn, renderWithContext as yn, WithProvider as wn, Task as xn, Provide as Nt, MapSignal as Rt, svg as mt, svgAttr as ht, delaySignal as kn } from "@tempots/dom";
1
+ import { prop as Z, html as d, attr as r, computedOf as I, Fragment as R, OnDispose as oe, style as S, on as A, WithElement as ne, When as Q, Value as v, Use as ae, Empty as W, input as pe, emitValue as te, aria as M, OneOfValue as bn, Unless as gn, coalesce as Pe, ForEach as Le, Ensure as Ue, OneOfType as Mt, dataAttr as st, NotEmpty as mn, emitValueAsDate as hn, Portal as lt, makeProviderMark as Ot, WithBrowserCtx as vn, renderWithContext as yn, WithProvider as wn, Task as xn, Provide as Nt, MapSignal as Rt, svg as mt, svgAttr as ht, delaySignal as kn } from "@tempots/dom";
2
2
  import { Use as Po } from "@tempots/dom";
3
- import { PopOver as Sn, ElementRect as Be, WindowSize as Cn, Query as Ft, Location as Ne, NavigationService as Tn, Anchor as it } from "@tempots/ui";
3
+ import { PopOver as Sn, ElementRect as Be, WindowSize as Cn, Query as Ut, Location as Ne, NavigationService as Tn, Anchor as it } from "@tempots/ui";
4
4
  import { i as se, t as Se, h as vt, e as ue, a as ie, I as ee, b as ce, C as fe, B as yt, c as Ye, L as ct, j as wt, k as xt } from "./translations-g3qGTkzw.js";
5
- import { x as Do, T as Ao, l as Vo, d as Bo, f as Eo, g as Mo, u as Oo, q as No, o as Ro, w as Fo, y as Uo, n as jo, v as Ho, m as Wo, p as zo, r as Yo, s as Go } from "./translations-g3qGTkzw.js";
5
+ import { x as Do, T as Ao, l as Vo, d as Bo, f as Eo, g as Mo, u as Oo, q as No, o as Ro, w as Uo, y as Fo, n as jo, v as Ho, m as Wo, p as zo, r as Yo, s as Go } from "./translations-g3qGTkzw.js";
6
6
  import { g as ut } from "./colors-pQZlNrwM.js";
7
7
  import { b as qo, e as Jo, i as Ko, a as Qo, c as Xo, o as es, l as ts, m as ns, k as as, j as rs, n as os, r as ss, s as ls, d as is, h as cs, t as us } from "./colors-pQZlNrwM.js";
8
8
  import { b as In } from "./index-CpZh_Snx.js";
9
- import { t as ps, am as fs, h as bs, J as gs, c as ms, N as hs, I as vs, K as ys, e as ws, l as xs, d as ks, a as Ss, ab as Cs, o as Ts, a0 as Is, ae as $s, q as _s, H as Ps, A as Ls, al as Ds, g as As, E as Vs, x as Bs, aj as Es, $ as Ms, a4 as Os, k as Ns, j as Rs, i as Fs, Y as Us, X as js, Q as Hs, P as Ws, S as zs, R as Ys, W as Gs, V as Zs, U as qs, T as Js, a8 as Ks, a7 as Qs, aa as Xs, a9 as el, n as tl, m as nl, _ as al, Z as rl, ad as ol, p as sl, G as ll, z as il, ak as cl, D as ul, C as dl, w as pl, v as fl, ai as bl, ah as gl, f as ml, a3 as hl, a2 as vl, M as yl, L as wl, a5 as xl, a6 as kl, r as Sl, O as Cl, ac as Tl, s as Il, F as $l, y as _l, ag as Pl, B as Ll, u as Dl, af as Al, a1 as Vl } from "./index-CpZh_Snx.js";
10
- import { C as Ue, s as he, m as Ut, d as jt, I as dt, B as Ht, c as Wt, S as pt, e as $n } from "./notice-Cpso9PgQ.js";
11
- import { A as El, g as Ml, b as Ol, D as Nl, E as Rl, v as Fl, L as Ul, M as jl, x as Hl, N as Wl, i as zl, P as Yl, R as Gl, n as Zl, q as ql, o as Jl, k as Kl, j as Ql, f as Xl, p as ei, h as ti, r as ni, t as ai, l as ri, u as oi, w as si } from "./notice-Cpso9PgQ.js";
9
+ import { t as ps, am as fs, h as bs, J as gs, c as ms, N as hs, I as vs, K as ys, e as ws, l as xs, d as ks, a as Ss, ab as Cs, o as Ts, a0 as Is, ae as $s, q as _s, H as Ps, A as Ls, al as Ds, g as As, E as Vs, x as Bs, aj as Es, $ as Ms, a4 as Os, k as Ns, j as Rs, i as Us, Y as Fs, X as js, Q as Hs, P as Ws, S as zs, R as Ys, W as Gs, V as Zs, U as qs, T as Js, a8 as Ks, a7 as Qs, aa as Xs, a9 as el, n as tl, m as nl, _ as al, Z as rl, ad as ol, p as sl, G as ll, z as il, ak as cl, D as ul, C as dl, w as pl, v as fl, ai as bl, ah as gl, f as ml, a3 as hl, a2 as vl, M as yl, L as wl, a5 as xl, a6 as kl, r as Sl, O as Cl, ac as Tl, s as Il, F as $l, y as _l, ag as Pl, B as Ll, u as Dl, af as Al, a1 as Vl } from "./index-CpZh_Snx.js";
10
+ import { C as Fe, s as he, m as Ft, d as jt, I as dt, B as Ht, c as Wt, S as pt, e as $n } from "./notice-Cpso9PgQ.js";
11
+ import { A as El, g as Ml, b as Ol, D as Nl, E as Rl, v as Ul, L as Fl, M as jl, x as Hl, N as Wl, i as zl, P as Yl, R as Gl, n as Zl, q as ql, o as Jl, k as Kl, j as Ql, f as Xl, p as ei, h as ti, r as ni, t as ai, l as ri, u as oi, w as si } from "./notice-Cpso9PgQ.js";
12
12
  import { u as Re, A as ot, a as _n, O as zt, F as Pn } from "./modal-DJDeFIxV.js";
13
13
  import { B as ii, C as ci, M as ui, c as di, S as pi, b as fi, d as bi, o as gi, s as mi, f as hi, e as vi, g as yi } from "./modal-DJDeFIxV.js";
14
14
  import { T as Yt, a as Ln } from "./theme-B5pmbvQ_.js";
15
15
  import { S as Dn, G as Gt, E as An, F as Vn, N as Zt, a as Ee, M as Me, e as kt, n as Bn, W as ve, d as En, i as Mn, b as St, c as Ve } from "./utils-BRzdi3Gx.js";
16
- import { j as xi, l as ki, B as Si, p as Ci, V as Ti, C as Ii, m as $i, L as _i, o as Pi, q as Li, r as Di, s as Ai, O as Vi, u as Bi, z as Ei, v as Mi, I as Oi, K as Ni, w as Ri, x as Fi, H as Ui, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Gi, D as Zi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as sc, $ as lc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-BRzdi3Gx.js";
16
+ import { j as xi, l as ki, B as Si, p as Ci, V as Ti, C as Ii, m as $i, L as _i, o as Pi, q as Li, r as Di, s as Ai, O as Vi, u as Bi, z as Ei, v as Mi, I as Oi, K as Ni, w as Ri, x as Ui, H as Fi, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Gi, D as Zi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as sc, $ as lc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-BRzdi3Gx.js";
17
17
  import { g as Ge, x as Ct } from "./timer-DzWb416P.js";
18
18
  import { L as Tc } from "./link-portal-Cr2l9f3k.js";
19
19
  import { T as $c, a as _c, c as Pc, b as Lc, d as Dc } from "./toolbar-_yJ-dm-Z.js";
@@ -265,11 +265,11 @@ function gr({
265
265
  a != null ? a({ isDragging: i, files: c, selectFiles: w }) : null
266
266
  );
267
267
  }
268
- function Fn(e, t, n, a, o, l) {
268
+ function Un(e, t, n, a, o, l) {
269
269
  const i = ["bc-table"];
270
270
  return e !== "md" && i.push(`bc-table--size-${e}`), t && i.push("bc-table--hoverable"), n && i.push("bc-table--sticky-header"), a && i.push("bc-table--with-striped-rows"), o && i.push("bc-table--with-column-borders"), l && i.push("bc-table--with-row-borders"), i.join(" ");
271
271
  }
272
- function Un(e) {
272
+ function Fn(e) {
273
273
  if (e != null)
274
274
  return e === "none" ? "--table-border-radius: 0" : `--table-border-radius: var(--radius-${e})`;
275
275
  }
@@ -292,7 +292,7 @@ function mr({
292
292
  i,
293
293
  c
294
294
  )(
295
- (m, y, h, x, w, g) => Fn(
295
+ (m, y, h, x, w, g) => Un(
296
296
  m ?? "md",
297
297
  y ?? !1,
298
298
  h ?? !1,
@@ -308,7 +308,7 @@ function mr({
308
308
  const x = ["bc-table-container"];
309
309
  return m && x.push("bc-table-container--sticky"), y && x.push("bc-table-container--full-width"), h && x.push("bc-table-container--with-table-border"), x.join(" ");
310
310
  }), k = I(u)(
311
- (m) => Un(m)
311
+ (m) => Fn(m)
312
312
  );
313
313
  return d.div(
314
314
  r.class(b),
@@ -357,7 +357,7 @@ const Jt = ({
357
357
  d.span(e),
358
358
  n != null ? ae(
359
359
  ie,
360
- (i) => Ue(
360
+ (i) => Fe(
361
361
  {
362
362
  size: "xs",
363
363
  label: i.$.removeItem,
@@ -488,8 +488,8 @@ function Ze(e) {
488
488
  y.setElement(O), g = Ge(() => {
489
489
  y.open(), g = null;
490
490
  });
491
- const B = (U) => {
492
- v.get(u) && U.key === "Escape" && (U.preventDefault(), U.stopPropagation(), V(), x.set(!1));
491
+ const B = (F) => {
492
+ v.get(u) && F.key === "Escape" && (F.preventDefault(), F.stopPropagation(), V(), x.set(!1));
493
493
  };
494
494
  return document.addEventListener("keydown", B, !0), R(
495
495
  oe(() => {
@@ -542,7 +542,7 @@ function Ze(e) {
542
542
  return ne((O) => {
543
543
  const B = () => {
544
544
  _(), x.set(!0);
545
- }, U = () => {
545
+ }, F = () => {
546
546
  V(), x.set(!1);
547
547
  }, X = R(
548
548
  M.expanded(x),
@@ -553,33 +553,33 @@ function Ze(e) {
553
553
  );
554
554
  return typeof c == "function" ? R(
555
555
  X,
556
- c(B, U)
556
+ c(B, F)
557
557
  ) : R(
558
558
  X,
559
559
  bn(c, {
560
560
  "hover-focus": () => R(
561
561
  A.mouseenter(() => B()),
562
- A.mouseleave(() => U()),
562
+ A.mouseleave(() => F()),
563
563
  A.focus(() => B()),
564
- A.blur(() => U())
564
+ A.blur(() => F())
565
565
  ),
566
566
  hover: () => R(
567
567
  A.mouseenter(() => B()),
568
- A.mouseleave(() => U())
568
+ A.mouseleave(() => F())
569
569
  ),
570
570
  focus: () => R(
571
571
  A.focus(() => B()),
572
- A.blur(() => U())
572
+ A.blur(() => F())
573
573
  ),
574
574
  click: () => {
575
- function F() {
575
+ function U() {
576
576
  document.removeEventListener("click", Y);
577
577
  }
578
578
  function Y() {
579
- F(), U();
579
+ U(), F();
580
580
  }
581
581
  return R(
582
- oe(F),
582
+ oe(U),
583
583
  A.click(() => {
584
584
  B(), Ge(() => {
585
585
  document.addEventListener("click", Y, {
@@ -1327,7 +1327,7 @@ function Tr({
1327
1327
  _,
1328
1328
  T,
1329
1329
  C
1330
- )((D, N, K) => N ? D - K : D), U = I(
1330
+ )((D, N, K) => N ? D - K : D), F = I(
1331
1331
  t,
1332
1332
  O
1333
1333
  )((D, N) => Number(D / BigInt(Math.max(1, N)))), X = I(
@@ -1336,7 +1336,7 @@ function Tr({
1336
1336
  )((D, N) => Number(D / BigInt(Math.max(1, N)))), H = v.map(
1337
1337
  h,
1338
1338
  (D) => D === "body-end" || D === "body-end-bottom"
1339
- ), F = Q(
1339
+ ), U = Q(
1340
1340
  H,
1341
1341
  () => S.left(
1342
1342
  I(
@@ -1462,7 +1462,7 @@ function Tr({
1462
1462
  i != null ? d.div(
1463
1463
  r.class("bc-nine-slice-pane bc-nine-slice-top-end"),
1464
1464
  S.top("0"),
1465
- F,
1465
+ U,
1466
1466
  // style.height(headerHeightPx),
1467
1467
  // style.width(sidebarEndWidthPx),
1468
1468
  i
@@ -1496,7 +1496,7 @@ function Tr({
1496
1496
  // middle-end sidebar
1497
1497
  m != null ? d.div(
1498
1498
  r.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
1499
- F,
1499
+ U,
1500
1500
  S.top(g),
1501
1501
  // style.height(visibleAreaHeightPx),
1502
1502
  // style.width(sidebarEndWidthPx),
@@ -1531,7 +1531,7 @@ function Tr({
1531
1531
  // bottom-end corner
1532
1532
  f != null ? d.div(
1533
1533
  r.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),
1534
- F,
1534
+ U,
1535
1535
  le,
1536
1536
  // style.height(footerHeightPx),
1537
1537
  // style.width(sidebarEndWidthPx),
@@ -1560,7 +1560,7 @@ function Tr({
1560
1560
  "bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"
1561
1561
  ),
1562
1562
  S.width(
1563
- U.map((D) => `${100 / Math.max(1, D)}%`)
1563
+ F.map((D) => `${100 / Math.max(1, D)}%`)
1564
1564
  ),
1565
1565
  S.height("100%"),
1566
1566
  S.backgroundColor("#ff000066")
@@ -1858,7 +1858,7 @@ const Ce = {
1858
1858
  })
1859
1859
  ))
1860
1860
  );
1861
- }, Xt = (e, t, n, a, o) => Fe(
1861
+ }, Xt = (e, t, n, a, o) => Ue(
1862
1862
  e,
1863
1863
  (l) => Mt(l, {
1864
1864
  value: (i) => {
@@ -1971,12 +1971,12 @@ const Ce = {
1971
1971
  ...o,
1972
1972
  value: t.signal,
1973
1973
  onChange: jt(t, n),
1974
- onBlur: Ut(t, a)
1974
+ onBlur: Ft(t, a)
1975
1975
  });
1976
1976
  }, $r = (e) => dt({
1977
1977
  ...e,
1978
1978
  content: ua(e)
1979
- }), en = (e, t, n, a, o, l) => Fe(
1979
+ }), en = (e, t, n, a, o, l) => Ue(
1980
1980
  e,
1981
1981
  (i) => Mt(i, {
1982
1982
  value: (c) => {
@@ -2137,7 +2137,7 @@ const Ce = {
2137
2137
  ...o,
2138
2138
  value: t.signal,
2139
2139
  onChange: jt(t, n),
2140
- onBlur: Ut(t, a)
2140
+ onBlur: Ft(t, a)
2141
2141
  });
2142
2142
  }, _r = (e) => dt({
2143
2143
  ...e,
@@ -2168,8 +2168,8 @@ function tn(e) {
2168
2168
  let O = _ + V, B = 0;
2169
2169
  for (; B < T.length; ) {
2170
2170
  O >= T.length && (O = 0), O < 0 && (O = T.length - 1);
2171
- const U = T[O];
2172
- if (U && U.getAttribute("aria-disabled") !== "true")
2171
+ const F = T[O];
2172
+ if (F && F.getAttribute("aria-disabled") !== "true")
2173
2173
  return O;
2174
2174
  O += V, B++;
2175
2175
  }
@@ -2190,11 +2190,11 @@ function tn(e) {
2190
2190
  case "Enter":
2191
2191
  case " ":
2192
2192
  if (_.preventDefault(), _.stopPropagation(), V >= 0 && T[V]) {
2193
- const U = T[V];
2194
- if (U.getAttribute("aria-disabled") === "true")
2193
+ const F = T[V];
2194
+ if (F.getAttribute("aria-disabled") === "true")
2195
2195
  return;
2196
- const X = U.getAttribute("data-key");
2197
- X && f && f(X), U.click(), s?.();
2196
+ const X = F.getAttribute("data-key");
2197
+ X && f && f(X), F.click(), s?.();
2198
2198
  }
2199
2199
  break;
2200
2200
  case "Escape":
@@ -2208,10 +2208,10 @@ function tn(e) {
2208
2208
  break;
2209
2209
  case "ArrowRight":
2210
2210
  if (_.preventDefault(), _.stopPropagation(), V >= 0 && T[V]) {
2211
- const U = T[V];
2212
- U.classList.contains(
2211
+ const F = T[V];
2212
+ F.classList.contains(
2213
2213
  "bc-menu-item--has-submenu"
2214
- ) && U.dispatchEvent(new Event("mouseenter"));
2214
+ ) && F.dispatchEvent(new Event("mouseenter"));
2215
2215
  }
2216
2216
  break;
2217
2217
  case "ArrowLeft":
@@ -2685,7 +2685,7 @@ const Br = (e) => {
2685
2685
  n?.(l[0]);
2686
2686
  }
2687
2687
  });
2688
- }, Or = (e) => Ft({
2688
+ }, Or = (e) => Ut({
2689
2689
  request: e.request,
2690
2690
  load: e.load,
2691
2691
  convertError: String,
@@ -2799,7 +2799,7 @@ const Br = (e) => {
2799
2799
  } catch {
2800
2800
  return null;
2801
2801
  }
2802
- }, Fr = (e) => {
2802
+ }, Ur = (e) => {
2803
2803
  const { value: t, step: n, min: a, max: o, onChange: l, onInput: i, after: c } = e, u = (y) => {
2804
2804
  const h = a != null ? v.get(a) : void 0, x = o != null ? v.get(o) : void 0;
2805
2805
  return h != null && y < h ? h : x != null && y > x ? x : y;
@@ -2872,7 +2872,7 @@ const Br = (e) => {
2872
2872
  allowMode: "digits",
2873
2873
  class: "bc-number-input"
2874
2874
  });
2875
- }, Ur = (e) => {
2875
+ }, Fr = (e) => {
2876
2876
  const { value: t, onChange: n, onBlur: a, before: o } = e, l = Z(""), i = (u) => {
2877
2877
  n?.(v.get(t).filter((s) => s !== u));
2878
2878
  }, c = () => {
@@ -3110,7 +3110,7 @@ const jr = qe({
3110
3110
  );
3111
3111
  };
3112
3112
  function ao(e, t, n) {
3113
- return Fe(
3113
+ return Ue(
3114
3114
  e.signal,
3115
3115
  () => {
3116
3116
  const a = e.transform(
@@ -3362,7 +3362,7 @@ function xa({
3362
3362
  t,
3363
3363
  () => d.div(
3364
3364
  r.class("bc-notification__meta"),
3365
- Ue({
3365
+ Fe({
3366
3366
  size: "sm",
3367
3367
  color: a,
3368
3368
  onClick: c
@@ -3556,8 +3556,8 @@ function co({
3556
3556
  if (h == null) return null;
3557
3557
  const B = [];
3558
3558
  x === !1 && B.push("toolbar=0"), w != null && w > 0 && B.push(`page=${w}`), g != null && g > 0 && B.push(`zoom=${g}`), p != null && B.push(`view=${p}`), C != null && B.push(`pagemode=${C}`), $ === !1 && B.push("scrollbar=0"), L === !1 && B.push("navpanes=0"), _ != null && B.push(`search=${encodeURIComponent(_)}`), T != null && B.push(`nameddest=${encodeURIComponent(T)}`), V != null && B.push(`viewrect=${encodeURIComponent(V)}`), O != null && B.push(`highlight=${encodeURIComponent(O)}`);
3559
- const U = B.join("&");
3560
- return U ? `${h}#${U}` : h;
3559
+ const F = B.join("&");
3560
+ return F ? `${h}#${F}` : h;
3561
3561
  });
3562
3562
  return m.on((h, x) => {
3563
3563
  x != null && URL.revokeObjectURL(x);
@@ -3633,14 +3633,14 @@ function uo({
3633
3633
  s,
3634
3634
  f,
3635
3635
  b
3636
- )((w, g, p, C, $, L, _, T, V, O, B, U, X) => {
3636
+ )((w, g, p, C, $, L, _, T, V, O, B, F, X) => {
3637
3637
  if (w == null) return null;
3638
- const H = g ?? "https://mozilla.github.io/pdf.js/web/viewer.html", F = new URLSearchParams();
3639
- F.set("file", encodeURIComponent(w));
3638
+ const H = g ?? "https://mozilla.github.io/pdf.js/web/viewer.html", U = new URLSearchParams();
3639
+ U.set("file", encodeURIComponent(w));
3640
3640
  const Y = [];
3641
- p != null && p > 0 && Y.push(`page=${p}`), C != null && (typeof C == "string" ? Y.push(`zoom=${C}`) : Y.push(`zoom=${C}`)), $ != null && Y.push(`pagemode=${$}`), L != null && Y.push(`nameddest=${encodeURIComponent(L)}`), _ != null && Y.push(`search=${encodeURIComponent(_)}`), T != null && Y.push(`textLayer=${T}`), V != null && Y.push(`sidebar=${V}`), O != null && Y.push(`scrollMode=${O}`), B != null && Y.push(`spreadMode=${B}`), U != null && Y.push(`enableScripting=${U ? "1" : "0"}`), X != null && Y.push(`enablePrinting=${X ? "1" : "0"}`);
3641
+ p != null && p > 0 && Y.push(`page=${p}`), C != null && (typeof C == "string" ? Y.push(`zoom=${C}`) : Y.push(`zoom=${C}`)), $ != null && Y.push(`pagemode=${$}`), L != null && Y.push(`nameddest=${encodeURIComponent(L)}`), _ != null && Y.push(`search=${encodeURIComponent(_)}`), T != null && Y.push(`textLayer=${T}`), V != null && Y.push(`sidebar=${V}`), O != null && Y.push(`scrollMode=${O}`), B != null && Y.push(`spreadMode=${B}`), F != null && Y.push(`enableScripting=${F ? "1" : "0"}`), X != null && Y.push(`enablePrinting=${X ? "1" : "0"}`);
3642
3642
  const le = Y.length > 0 ? `#${Y.join("&")}` : "";
3643
- return `${H}?${F.toString()}${le}`;
3643
+ return `${H}?${U.toString()}${le}`;
3644
3644
  });
3645
3645
  return h.on((w, g) => {
3646
3646
  g != null && g.startsWith("blob:") && URL.revokeObjectURL(g);
@@ -4304,7 +4304,7 @@ function yo(e) {
4304
4304
  // Panel
4305
4305
  Q(
4306
4306
  s ?? !0,
4307
- () => Fe(m, (h) => {
4307
+ () => Ue(m, (h) => {
4308
4308
  const x = h.$.key, w = x.map((p) => `${b}-tab-${p}`), g = x.map((p) => `${b}-panel-${p}`);
4309
4309
  return d.div(
4310
4310
  r.class("bc-tabs__panels"),
@@ -4364,7 +4364,7 @@ function wo(e) {
4364
4364
  s,
4365
4365
  L.status
4366
4366
  )(
4367
- (B, U, X) => `bc-drawer bc-drawer--size-${B} bc-drawer--container-${y} bc-drawer--side-${U} bc-drawer--status-${X}`
4367
+ (B, F, X) => `bc-drawer bc-drawer--size-${B} bc-drawer--container-${y} bc-drawer--side-${F} bc-drawer--status-${X}`
4368
4368
  )
4369
4369
  ),
4370
4370
  // Essential ARIA attributes for drawer dialog
@@ -4397,10 +4397,10 @@ function wo(e) {
4397
4397
  b,
4398
4398
  () => ae(
4399
4399
  ie,
4400
- (U) => Ue({
4400
+ (F) => Fe({
4401
4401
  size: "sm",
4402
4402
  onClick: o,
4403
- label: U.$.closeDrawer
4403
+ label: F.$.closeDrawer
4404
4404
  })
4405
4405
  )
4406
4406
  )
@@ -4570,7 +4570,7 @@ function So(e, t) {
4570
4570
  ie,
4571
4571
  (x) => d.div(
4572
4572
  r.class("bc-lightbox__close"),
4573
- Ue({
4573
+ Fe({
4574
4574
  size: "md",
4575
4575
  label: x.$.closeModal,
4576
4576
  onClick: () => {
@@ -4611,11 +4611,11 @@ function So(e, t) {
4611
4611
  });
4612
4612
  });
4613
4613
  }
4614
- function Fa(e, t) {
4614
+ function Ua(e, t) {
4615
4615
  const n = ["bc-announcement-bar"];
4616
4616
  return e && n.push("bc-announcement-bar--dismissible"), t && t.length > 0 && n.push(t), n.join(" ");
4617
4617
  }
4618
- function Ua(e) {
4618
+ function Fa(e) {
4619
4619
  return `--announcement-bar-bg-color: ${ut(e, 600)}`;
4620
4620
  }
4621
4621
  function Co({
@@ -4636,10 +4636,10 @@ function Co({
4636
4636
  I(
4637
4637
  c,
4638
4638
  o
4639
- )((u, s) => Fa(u, s))
4639
+ )((u, s) => Ua(u, s))
4640
4640
  ),
4641
4641
  r.style(
4642
- v.map(e, (u) => Ua(u))
4642
+ v.map(e, (u) => Fa(u))
4643
4643
  ),
4644
4644
  d.div(
4645
4645
  r.class("bc-announcement-bar__content"),
@@ -4659,7 +4659,7 @@ function Co({
4659
4659
  c,
4660
4660
  () => d.div(
4661
4661
  r.class("bc-announcement-bar__close"),
4662
- Ue({
4662
+ Fe({
4663
4663
  size: "xs",
4664
4664
  color: "white",
4665
4665
  onClick: () => {
@@ -4716,7 +4716,7 @@ function To(e) {
4716
4716
  onPlaybackRateChange: O,
4717
4717
  onPlaybackQualityChange: B
4718
4718
  } = e;
4719
- function U(P) {
4719
+ function F(P) {
4720
4720
  return /\.m3u8(\?|$)/i.test(P);
4721
4721
  }
4722
4722
  function X(P) {
@@ -4728,7 +4728,7 @@ function To(e) {
4728
4728
  }
4729
4729
  }
4730
4730
  const H = Z("file");
4731
- let F = null, Y = null, le = null;
4731
+ let U = null, Y = null, le = null;
4732
4732
  function Te() {
4733
4733
  try {
4734
4734
  le?.destroy();
@@ -4739,17 +4739,17 @@ function To(e) {
4739
4739
  const q = [];
4740
4740
  q.push(
4741
4741
  v.on(t, (P) => {
4742
- typeof P == "string" && P.length > 0 && ja(P) ? H.value = "youtube" : (H.value = "file", F && de());
4742
+ typeof P == "string" && P.length > 0 && ja(P) ? H.value = "youtube" : (H.value = "file", U && de());
4743
4743
  })
4744
4744
  );
4745
4745
  async function de() {
4746
- const P = F;
4746
+ const P = U;
4747
4747
  if (!P) return;
4748
4748
  const E = v.get(t);
4749
4749
  if (typeof E != "string" || E.length === 0) return;
4750
4750
  Te();
4751
4751
  const j = y?.file?.forceHLS ?? !1;
4752
- if (U(E) || j) {
4752
+ if (F(E) || j) {
4753
4753
  if (X(P)) {
4754
4754
  P.setAttribute("src", E);
4755
4755
  try {
@@ -4807,7 +4807,7 @@ function To(e) {
4807
4807
  Y?.();
4808
4808
  const P = v.get(k) ?? 1e3;
4809
4809
  Y = Ct(() => {
4810
- const E = F;
4810
+ const E = U;
4811
4811
  if (!E) return;
4812
4812
  const j = E.duration || 0, J = E.currentTime || 0, Oe = E.buffered?.length ? E.buffered.end(E.buffered.length - 1) : 0;
4813
4813
  V?.({
@@ -4824,17 +4824,17 @@ function To(e) {
4824
4824
  }
4825
4825
  const De = d.video(
4826
4826
  ne((P) => {
4827
- F = P, h?.();
4827
+ U = P, h?.();
4828
4828
  try {
4829
- F.playbackRate = v.get(c) ?? 1;
4829
+ U.playbackRate = v.get(c) ?? 1;
4830
4830
  } catch {
4831
4831
  }
4832
- F.muted = !!(v.get(i) ?? !1), F.loop = !!(v.get(a) ?? !1), F.controls = !!(v.get(o) ?? !1), F.playsInline != null && (!!(v.get(s) ?? !0) ? F.setAttribute("playsinline", "") : F.removeAttribute("playsinline")), v.get(n) && (F.play?.().catch(() => {
4832
+ U.muted = !!(v.get(i) ?? !1), U.loop = !!(v.get(a) ?? !1), U.controls = !!(v.get(o) ?? !1), U.playsInline != null && (!!(v.get(s) ?? !0) ? U.setAttribute("playsinline", "") : U.removeAttribute("playsinline")), v.get(n) && (U.play?.().catch(() => {
4833
4833
  }), x?.());
4834
4834
  try {
4835
- const E = !!(v.get(u) ?? !1), j = document, J = F;
4836
- E ? typeof J.requestPictureInPicture == "function" && j.pictureInPictureElement !== F && J.requestPictureInPicture().catch(() => {
4837
- }) : j.pictureInPictureElement === F && typeof j.exitPictureInPicture == "function" && j.exitPictureInPicture().catch(() => {
4835
+ const E = !!(v.get(u) ?? !1), j = document, J = U;
4836
+ E ? typeof J.requestPictureInPicture == "function" && j.pictureInPictureElement !== U && J.requestPictureInPicture().catch(() => {
4837
+ }) : j.pictureInPictureElement === U && typeof j.exitPictureInPicture == "function" && j.exitPictureInPicture().catch(() => {
4838
4838
  });
4839
4839
  } catch {
4840
4840
  }
@@ -4855,7 +4855,7 @@ function To(e) {
4855
4855
  A.pause(() => g?.()),
4856
4856
  A.waiting(() => p?.()),
4857
4857
  A.canplay(() => {
4858
- const P = F?.duration;
4858
+ const P = U?.duration;
4859
4859
  P != null && Number.isFinite(P) && _?.(P);
4860
4860
  }),
4861
4861
  A.ended(() => $?.()),
@@ -4951,13 +4951,13 @@ function To(e) {
4951
4951
  })
4952
4952
  ), q.push(
4953
4953
  v.on(n, () => {
4954
- H.value === "file" && F ? v.get(n) ? F.play?.().catch(() => {
4955
- }) : F.pause?.() : H.value === "youtube" && z && (v.get(n) ? z.playVideo?.() : z.pauseVideo?.());
4954
+ H.value === "file" && U ? v.get(n) ? U.play?.().catch(() => {
4955
+ }) : U.pause?.() : H.value === "youtube" && z && (v.get(n) ? z.playVideo?.() : z.pauseVideo?.());
4956
4956
  })
4957
4957
  ), q.push(
4958
4958
  v.on(l, () => {
4959
- if (H.value === "file" && F)
4960
- F.volume = Math.min(Math.max(v.get(l) ?? 1, 0), 1);
4959
+ if (H.value === "file" && U)
4960
+ U.volume = Math.min(Math.max(v.get(l) ?? 1, 0), 1);
4961
4961
  else if (H.value === "youtube" && z) {
4962
4962
  const P = Math.round(
4963
4963
  Math.min(Math.max(v.get(l) ?? 1, 0), 1) * 100
@@ -4967,24 +4967,24 @@ function To(e) {
4967
4967
  })
4968
4968
  ), q.push(
4969
4969
  v.on(i, () => {
4970
- H.value === "file" && F ? F.muted = !!v.get(i) : H.value === "youtube" && z && (v.get(i) ? z.mute?.() : z.unMute?.());
4970
+ H.value === "file" && U ? U.muted = !!v.get(i) : H.value === "youtube" && z && (v.get(i) ? z.mute?.() : z.unMute?.());
4971
4971
  })
4972
4972
  ), q.push(
4973
4973
  v.on(c, () => {
4974
- if (H.value === "file" && F)
4974
+ if (H.value === "file" && U)
4975
4975
  try {
4976
- F.playbackRate = v.get(c) ?? 1;
4976
+ U.playbackRate = v.get(c) ?? 1;
4977
4977
  } catch {
4978
4978
  }
4979
4979
  else H.value === "youtube" && z && z.setPlaybackRate?.(v.get(c) ?? 1);
4980
4980
  })
4981
4981
  ), q.push(
4982
4982
  v.on(u, async () => {
4983
- if (!(H.value !== "file" || !F))
4983
+ if (!(H.value !== "file" || !U))
4984
4984
  try {
4985
- const P = !!(v.get(u) ?? !1), E = document, j = F;
4986
- P ? typeof j.requestPictureInPicture == "function" && E.pictureInPictureElement !== F && await j.requestPictureInPicture()?.catch(() => {
4987
- }) : E.pictureInPictureElement === F && typeof E.exitPictureInPicture == "function" && await E.exitPictureInPicture()?.catch(() => {
4985
+ const P = !!(v.get(u) ?? !1), E = document, j = U;
4986
+ P ? typeof j.requestPictureInPicture == "function" && E.pictureInPictureElement !== U && await j.requestPictureInPicture()?.catch(() => {
4987
+ }) : E.pictureInPictureElement === U && typeof E.exitPictureInPicture == "function" && await E.exitPictureInPicture()?.catch(() => {
4988
4988
  });
4989
4989
  } catch {
4990
4990
  }
@@ -4993,9 +4993,9 @@ function To(e) {
4993
4993
  v.on(m ?? null, () => {
4994
4994
  const P = v.get(m);
4995
4995
  if (P != null)
4996
- if (H.value === "file" && F)
4996
+ if (H.value === "file" && U)
4997
4997
  try {
4998
- F.currentTime = P, T?.(P);
4998
+ U.currentTime = P, T?.(P);
4999
4999
  } catch {
5000
5000
  }
5001
5001
  else H.value === "youtube" && z && (z.seekTo?.(P, !0), T?.(P));
@@ -5121,9 +5121,9 @@ function Io({
5121
5121
  ),
5122
5122
  100
5123
5123
  );
5124
- return Fe(
5124
+ return Ue(
5125
5125
  w,
5126
- (g) => Ft({
5126
+ (g) => Ut({
5127
5127
  request: I(
5128
5128
  e,
5129
5129
  t,
@@ -5159,7 +5159,7 @@ function Io({
5159
5159
  const H = V.getViewport({
5160
5160
  scale: 1,
5161
5161
  rotation: p.rotation
5162
- }), F = H.width / H.height, Y = p.containerWidth / p.containerHeight;
5162
+ }), U = H.width / H.height, Y = p.containerWidth / p.containerHeight;
5163
5163
  switch (p.fit) {
5164
5164
  case "width":
5165
5165
  O = p.containerWidth / H.width;
@@ -5174,14 +5174,14 @@ function Io({
5174
5174
  );
5175
5175
  break;
5176
5176
  case "cover":
5177
- F > Y ? O = p.containerHeight / H.height : O = p.containerWidth / H.width;
5177
+ U > Y ? O = p.containerHeight / H.height : O = p.containerWidth / H.width;
5178
5178
  break;
5179
5179
  }
5180
5180
  }
5181
5181
  const B = V.getViewport({
5182
5182
  scale: O,
5183
5183
  rotation: p.rotation
5184
- }), U = V.getViewport({
5184
+ }), F = V.getViewport({
5185
5185
  scale: O * p.quality,
5186
5186
  rotation: p.rotation
5187
5187
  });
@@ -5191,23 +5191,23 @@ function Io({
5191
5191
  pdfHeight: B.height,
5192
5192
  canvasWidth: Math.floor(B.width),
5193
5193
  canvasHeight: Math.floor(B.height),
5194
- highResWidth: Math.floor(U.width),
5195
- highResHeight: Math.floor(U.height),
5196
- render: async (H, F, Y) => {
5194
+ highResWidth: Math.floor(F.width),
5195
+ highResHeight: Math.floor(F.height),
5196
+ render: async (H, U, Y) => {
5197
5197
  if (X)
5198
5198
  try {
5199
5199
  X.cancel(), await X.promise.catch(() => {
5200
5200
  });
5201
5201
  } catch {
5202
5202
  }
5203
- H.width = U.width, H.height = U.height, H.style.width = `${B.width}px`, H.style.height = `${B.height}px`;
5203
+ H.width = F.width, H.height = F.height, H.style.width = `${B.width}px`, H.style.height = `${B.height}px`;
5204
5204
  const le = H.getContext("2d");
5205
5205
  if (!le)
5206
5206
  throw new Error("Failed to get canvas context");
5207
5207
  const Te = V.render({
5208
5208
  canvasContext: le,
5209
5209
  canvas: H,
5210
- viewport: U
5210
+ viewport: F
5211
5211
  });
5212
5212
  X = Te;
5213
5213
  try {
@@ -5219,13 +5219,13 @@ function Io({
5219
5219
  } finally {
5220
5220
  X === Te && (X = null);
5221
5221
  }
5222
- if (p.renderTextLayer && F != null) {
5223
- F.innerHTML = "";
5222
+ if (p.renderTextLayer && U != null) {
5223
+ U.innerHTML = "";
5224
5224
  try {
5225
5225
  const q = await V.getTextContent(), de = C.TextLayer;
5226
5226
  de != null && await new de({
5227
5227
  textContentSource: q,
5228
- container: F,
5228
+ container: U,
5229
5229
  viewport: B
5230
5230
  }).render();
5231
5231
  } catch (q) {
@@ -5376,7 +5376,7 @@ export {
5376
5376
  Sr as CenterH,
5377
5377
  Ol as CheckboxInput,
5378
5378
  cn as Chips,
5379
- Ue as CloseButton,
5379
+ Fe as CloseButton,
5380
5380
  sa as Collapse,
5381
5381
  ho as CollapsibleSidebarGroup,
5382
5382
  ha as ColorController,
@@ -5400,7 +5400,7 @@ export {
5400
5400
  no as DurationInput,
5401
5401
  $i as EditableText,
5402
5402
  Rl as EmailInput,
5403
- Fl as EmphasisLabel,
5403
+ Ul as EmphasisLabel,
5404
5404
  ao as EnsureControl,
5405
5405
  An as Expando,
5406
5406
  Mr as FileInput,
@@ -5415,7 +5415,7 @@ export {
5415
5415
  dt as InputWrapper,
5416
5416
  Zr as InstantInput,
5417
5417
  Do as LOGICAL_PROPERTY_MAP,
5418
- Ul as Label,
5418
+ Fl as Label,
5419
5419
  Or as LazyNativeSelect,
5420
5420
  So as Lightbox,
5421
5421
  Ia as Link,
@@ -5441,7 +5441,7 @@ export {
5441
5441
  pn as NotificationProvider,
5442
5442
  Sa as NotificationService,
5443
5443
  Ca as NotificationViewport,
5444
- Fr as NullableBigintInput,
5444
+ Ur as NullableBigintInput,
5445
5445
  Di as NullableDateInput,
5446
5446
  Ai as NullableDateTimeInput,
5447
5447
  Vi as NullableDurationInput,
@@ -5458,8 +5458,8 @@ export {
5458
5458
  Oi as NullableRatingInput,
5459
5459
  Ni as NullableSliderInput,
5460
5460
  Ri as NullableTextArea,
5461
- Fi as NullableTextInput,
5462
- Ui as NullableUUIDInput,
5461
+ Ui as NullableTextInput,
5462
+ Fi as NullableUUIDInput,
5463
5463
  ji as NullableUrlInput,
5464
5464
  Kr as NullableZonedDateTimeInput,
5465
5465
  Hi as NumberInput,
@@ -5502,7 +5502,7 @@ export {
5502
5502
  mr as Table,
5503
5503
  yo as Tabs,
5504
5504
  Jt as Tag,
5505
- Ur as TagsInput,
5505
+ Fr as TagsInput,
5506
5506
  Gi as TextArea,
5507
5507
  Ao as TextInput,
5508
5508
  Yt as Theme,
@@ -5549,8 +5549,8 @@ export {
5549
5549
  cr as delaySignal,
5550
5550
  ur as downloadContent,
5551
5551
  pr as downloadFile,
5552
- dr as downloadToFile,
5553
5552
  qt as downloadUrl,
5553
+ dr as downloadUrlAndMonitor,
5554
5554
  Qi as emitExpando,
5555
5555
  Xi as emitOptionExpando,
5556
5556
  kt as emptyToNull,
@@ -5594,13 +5594,13 @@ export {
5594
5594
  Os as generateZIndexVariables,
5595
5595
  Ns as getBreakpointMediaQuery,
5596
5596
  Rs as getBreakpointVar,
5597
- Fs as getBreakpointVarName,
5597
+ Us as getBreakpointVarName,
5598
5598
  ut as getColorVar,
5599
5599
  as as getColorVarName,
5600
5600
  ac as getContrastRatio,
5601
5601
  Oo as getDirectionClassName,
5602
5602
  No as getDirectionFromLocale,
5603
- Us as getFontFamilyVar,
5603
+ Fs as getFontFamilyVar,
5604
5604
  js as getFontFamilyVarName,
5605
5605
  Hs as getFontSizeVar,
5606
5606
  Ws as getFontSizeVarName,
@@ -5615,8 +5615,8 @@ export {
5615
5615
  Qs as getMotionDurationVarName,
5616
5616
  Xs as getMotionEasingVar,
5617
5617
  el as getMotionEasingVarName,
5618
- Fo as getOppositeDirection,
5619
- Uo as getPhysicalProperty,
5618
+ Uo as getOppositeDirection,
5619
+ Fo as getPhysicalProperty,
5620
5620
  tl as getRadiusMediaQuery,
5621
5621
  In as getRadiusVar,
5622
5622
  nl as getRadiusVarName,
@@ -5655,7 +5655,7 @@ export {
5655
5655
  Wo as makeI18nProvider,
5656
5656
  Xl as makeMapValidation,
5657
5657
  zo as makeMessages,
5658
- Ut as makeOnBlurHandler,
5658
+ Ft as makeOnBlurHandler,
5659
5659
  jt as makeOnChangeHandler,
5660
5660
  xl as motionDurations,
5661
5661
  kl as motionEasings,