@vocalstack/player 0.1.0-alpha.52 → 0.1.0-alpha.53

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.js CHANGED
@@ -2,7 +2,7 @@ var co = Object.defineProperty;
2
2
  var uo = (t, e, n) => e in t ? co(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var fe = (t, e, n) => uo(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsx as i, jsxs as m, Fragment as xe } from "react/jsx-runtime";
5
- import { useState as z, useRef as k, useEffect as O, useLayoutEffect as tn, createContext as Bi, useMemo as ze, useContext as ho, useCallback as Je, Fragment as Mo, forwardRef as fo, useImperativeHandle as go } from "react";
5
+ import { useState as j, useRef as w, useEffect as O, useLayoutEffect as tn, createContext as Bi, useMemo as ze, useContext as ho, useCallback as Je, Fragment as Mo, forwardRef as fo, useImperativeHandle as go } from "react";
6
6
  import { createPortal as mo } from "react-dom";
7
7
  import { VocalStackError as Hi, VocalStack as Wi } from "@vocalstack/js-sdk";
8
8
  const Fi = "https://vocalstack.com", po = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDUxLjY5MDciIGhlaWdodD0iMTU1LjMwNjQxIiB2aWV3Qm94PSIwIDAgMTA1MS42OTA2IDE1NS4zMDY0MSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMC44ODczNDc3MSwwLDAsMC44OTExODY4MiwtNDIuNzE2NjMsLTEyMy44NTM4OCkiPjxwYXRoIHN0eWxlPSJmaWxsOiM1NWFiZTU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlLXdpZHRoOjAuMzcyOTYyIiBkPSJtIDE2NS43NDM2OSwzMTIuMzQ1MTQgYyAtMy42NTkwNCwtMC45NTg2MSAtNi44OTEzMSwtMy4zNTM0OCAtOS4yMTQ5NCwtNi44Mjc1OSAt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iIHg9IjExOS43ODkyNCIgeT0iMTc2LjI1OTA5IiByeT0iNS42MTA0OTYiLz48L2c+PC9nPjwvc3ZnPg==";
@@ -80,7 +80,7 @@ function ft({ size: t = 15, color: e = "currentColor", track: n = "rgba(127,127,
80
80
  }
81
81
  );
82
82
  }
83
- function ko({ size: t = 12 }) {
83
+ function Lo({ size: t = 12 }) {
84
84
  return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", width: t, height: t, fill: "currentColor", "aria-hidden": "true", children: [
85
85
  /* @__PURE__ */ i("rect", { x: "6.5", y: "5", width: "3.75", height: "14", rx: "1.2" }),
86
86
  /* @__PURE__ */ i("rect", { x: "13.75", y: "5", width: "3.75", height: "14", rx: "1.2" })
@@ -96,11 +96,11 @@ function Qr({ dark: t, size: e = 30 }) {
96
96
  function Ti({ children: t, panel: e, inset: n, className: r = "", style: s }) {
97
97
  return /* @__PURE__ */ i("div", { className: `vs-card${e ? " panel" : ""}${n ? " vs-card--inset" : ""} ${r}`, style: s, children: t });
98
98
  }
99
- function Lt({ checked: t, onChange: e, label: n, disabled: r }) {
99
+ function kt({ checked: t, onChange: e, label: n, disabled: r }) {
100
100
  return /* @__PURE__ */ i("button", { type: "button", role: "switch", "aria-checked": t, "aria-label": n, className: "vs-toggle", disabled: r, onClick: () => e(!t), children: /* @__PURE__ */ i("span", { className: "vs-toggle__knob" }) });
101
101
  }
102
102
  function Or({ value: t, onChange: e, options: n, size: r, bordered: s = !0, fill: a }) {
103
- const o = k(null), [l, c] = z(null), u = Math.max(0, n.findIndex((d) => d.value === t));
103
+ const o = w(null), [l, c] = j(null), u = Math.max(0, n.findIndex((d) => d.value === t));
104
104
  return tn(() => {
105
105
  const d = o.current;
106
106
  if (!d) return;
@@ -122,7 +122,7 @@ function Or({ value: t, onChange: e, options: n, size: r, bordered: s = !0, fill
122
122
  ] }, d.value))
123
123
  ] });
124
124
  }
125
- function Lo({ children: t, onClick: e, label: n, size: r, variant: s, bordered: a = !0, active: o, title: l }) {
125
+ function ko({ children: t, onClick: e, label: n, size: r, variant: s, bordered: a = !0, active: o, title: l }) {
126
126
  return /* @__PURE__ */ i("button", { type: "button", className: `vs-icon-btn${r === "sm" ? " vs-icon-btn--sm" : ""}${s === "primary" ? " vs-icon-btn--primary" : ""}${o ? " vs-icon-btn--primary" : ""}${a ? "" : " vs-icon-btn--borderless"}`, onClick: e, "aria-label": n, title: l ?? n, children: t });
127
127
  }
128
128
  function Qn({ flag: t, code: e, label: n, onClick: r, variant: s, block: a, bordered: o = !0, size: l, style: c, flagOnly: u }) {
@@ -136,7 +136,7 @@ function Qn({ flag: t, code: e, label: n, onClick: r, variant: s, block: a, bord
136
136
  ] });
137
137
  }
138
138
  function jo({ value: t, label: e = "Copy", onCopied: n }) {
139
- const [r, s] = z(!1), a = async () => {
139
+ const [r, s] = j(!1), a = async () => {
140
140
  try {
141
141
  await navigator.clipboard.writeText(t), s(!0), n == null || n(), setTimeout(() => s(!1), 1400);
142
142
  } catch {
@@ -178,14 +178,14 @@ function zo(t, e) {
178
178
  }, [t, e]);
179
179
  }
180
180
  function xr({ children: t, ms: e = 220 }) {
181
- const [n] = z(() => {
181
+ const [n] = j(() => {
182
182
  var r;
183
183
  return typeof window < "u" && !!((r = window.matchMedia) != null && r.call(window, "(hover: hover) and (pointer: fine)").matches);
184
184
  });
185
185
  return n ? /* @__PURE__ */ i(Io, { ms: e, children: t }) : /* @__PURE__ */ i("div", { children: t });
186
186
  }
187
187
  function Io({ children: t, ms: e }) {
188
- const n = k(null), r = k(null), [s, a] = z(null);
188
+ const n = w(null), r = w(null), [s, a] = j(null);
189
189
  return tn(() => {
190
190
  const o = r.current, l = n.current;
191
191
  if (!o || !l) return;
@@ -210,7 +210,7 @@ function Io({ children: t, ms: e }) {
210
210
  }, [e]), /* @__PURE__ */ i("div", { ref: n, style: { height: s ?? void 0, overflow: "clip", transition: s == null ? void 0 : `height ${e}ms cubic-bezier(.32,.72,0,1)` }, children: /* @__PURE__ */ i("div", { ref: r, children: t }) });
211
211
  }
212
212
  function nn({ open: t, onClose: e, title: n, titleNode: r, note: s, doneLabel: a = "Done", children: o, drawer: l = !1, header: c, kind: u, sticky: d = !1 }) {
213
- const M = k(null);
213
+ const M = w(null);
214
214
  return zo(M, t), O(() => {
215
215
  if (!t) return;
216
216
  const f = (g) => {
@@ -233,7 +233,7 @@ function Cr({ children: t, style: e, className: n }) {
233
233
  return /* @__PURE__ */ i("div", { className: n ? `eyebrow ${n}` : "eyebrow", style: e, children: t });
234
234
  }
235
235
  let Yn = null;
236
- function Td(t) {
236
+ function wd(t) {
237
237
  Yn = t;
238
238
  }
239
239
  function Zi(t) {
@@ -953,7 +953,7 @@ function ta(t, e) {
953
953
  for (const n of Ar) n();
954
954
  }
955
955
  function Vr(t, e) {
956
- const [n, r] = z(() => Er(t, e));
956
+ const [n, r] = j(() => Er(t, e));
957
957
  return O(() => {
958
958
  const s = () => r(Er(t, e));
959
959
  return Ar.add(s), window.addEventListener("storage", s), () => {
@@ -988,20 +988,20 @@ function Qo(t) {
988
988
  return [typeof e == "number" && e > 0 ? e : t === "ga" ? 560 : Po, n];
989
989
  }
990
990
  function Br({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPlaceholder: a = "Search languages", none: o, pinned: l = [], recent: c = [], requireVoice: u, keepOpen: d, busy: M }) {
991
- const [f, g] = z(""), [h, y] = z(!1), [T, N] = z(null);
991
+ const [f, g] = j(""), [h, y] = j(!1), [T, N] = j(null);
992
992
  O(() => {
993
993
  t && (g(""), y(!1), N(null));
994
994
  }, [t]);
995
995
  const p = ze(() => {
996
996
  const A = f.trim().toLowerCase();
997
997
  return [...A ? s.filter((x) => x.label.toLowerCase().includes(A) || x.native.toLowerCase().includes(A) || x.code.toLowerCase().includes(A)) : s].sort((x, te) => {
998
- const K = l.indexOf(x.code), j = l.indexOf(te.code);
999
- return K !== -1 || j !== -1 ? (K === -1 ? 999 : K) - (j === -1 ? 999 : j) : x.label.localeCompare(te.label);
998
+ const K = l.indexOf(x.code), z = l.indexOf(te.code);
999
+ return K !== -1 || z !== -1 ? (K === -1 ? 999 : K) - (z === -1 ? 999 : z) : x.label.localeCompare(te.label);
1000
1000
  });
1001
1001
  }, [s, f, l]), b = ze(
1002
- () => f ? [] : c.map((A) => p.find((w) => w.code === A)).filter((A) => !!A).sort((A, w) => A.label.localeCompare(w.label)),
1002
+ () => f ? [] : c.map((A) => p.find((L) => L.code === A)).filter((A) => !!A).sort((A, L) => A.label.localeCompare(L.label)),
1003
1003
  [c, p, f]
1004
- ), C = ze(() => b.length ? p.filter((A) => !b.some((w) => w.code === A.code)) : p, [p, b]), D = h || f ? C.length : 12, V = C, Y = C.length - Math.min(D, C.length), ee = (A, w = !1, _ = !1) => {
1004
+ ), C = ze(() => b.length ? p.filter((A) => !b.some((L) => L.code === A.code)) : p, [p, b]), D = h || f ? C.length : 12, V = C, Y = C.length - Math.min(D, C.length), ee = (A, L = !1, _ = !1) => {
1005
1005
  const x = !!u && !A.voice;
1006
1006
  return /* @__PURE__ */ m(
1007
1007
  "button",
@@ -1022,7 +1022,7 @@ function Br({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPl
1022
1022
  /* @__PURE__ */ i("div", { className: "vs-picker__label", children: A.label }),
1023
1023
  /* @__PURE__ */ i("div", { className: "vs-picker__native", children: A.native })
1024
1024
  ] }),
1025
- /* @__PURE__ */ i("span", { className: "vs-picker__slot", children: w && /* @__PURE__ */ i("span", { className: "vs-picker__forget", role: "button", tabIndex: 0, title: `Remove ${A.label} from recent`, "aria-label": `Remove ${A.label} from recent`, onClick: (te) => {
1025
+ /* @__PURE__ */ i("span", { className: "vs-picker__slot", children: L && /* @__PURE__ */ i("span", { className: "vs-picker__forget", role: "button", tabIndex: 0, title: `Remove ${A.label} from recent`, "aria-label": `Remove ${A.label} from recent`, onClick: (te) => {
1026
1026
  te.stopPropagation(), wi(A.code);
1027
1027
  }, onKeyDown: (te) => {
1028
1028
  (te.key === "Enter" || te.key === " ") && (te.preventDefault(), te.stopPropagation(), wi(A.code));
@@ -1054,7 +1054,7 @@ function Br({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPl
1054
1054
  b.map((A) => ee(A, !0)),
1055
1055
  /* @__PURE__ */ i("div", { className: "vs-picker__rule" })
1056
1056
  ] }),
1057
- V.map((A, w) => ee(A, !1, w >= D)),
1057
+ V.map((A, L) => ee(A, !1, L >= D)),
1058
1058
  Y > 0 && /* @__PURE__ */ m("button", { type: "button", className: "vs-picker__more vs-picker__more--btn", style: { background: "none", border: 0, cursor: "pointer", width: "100%", textAlign: "left" }, onClick: () => y(!0), children: [
1059
1059
  "+ ",
1060
1060
  Y,
@@ -1072,8 +1072,8 @@ function Vo({ open: t, onClose: e, title: n, note: r, sticky: s, ...a }) {
1072
1072
  const { search: o, list: l } = Br({ ...a, open: t, onClose: e });
1073
1073
  return /* @__PURE__ */ i(nn, { open: t, onClose: e, title: n, note: r, drawer: !1, sticky: s, kind: "picker", header: o, children: l });
1074
1074
  }
1075
- function ki({ src: t, setup: e, t: n, playing: r, seekN: s, onToggle: a, seekOver: o = 0.4 }) {
1076
- const l = k(null), [c, u] = z(!1), [d, M] = z(!1), f = k(n);
1075
+ function Li({ src: t, setup: e, t: n, playing: r, seekN: s, onToggle: a, seekOver: o = 0.4 }) {
1076
+ const l = w(null), [c, u] = j(!1), [d, M] = j(!1), f = w(n);
1077
1077
  return f.current = n, O(() => {
1078
1078
  u(!1), M(!1);
1079
1079
  }, [t, e]), O(() => {
@@ -1157,7 +1157,7 @@ const sa = [
1157
1157
  { id: "audioboom", name: "Audioboom", color: "#1ea2e0", hosts: /(^|\.)audioboom\.com$/, audioOnly: !0, glyph: "M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm-4 6v6h2V9H8Zm3-2v10h2V7h-2Zm3 3v4h2v-4h-2Z" },
1158
1158
  { id: "cnn", name: "CNN", color: "#cc0000", hosts: /(^|\.)cnn\.com$/, glyph: "M2 7h20v10H2V7Zm3.5 2.2a2.8 2.8 0 1 0 0 5.6h1.4v-1.6H5.6a1.2 1.2 0 1 1 0-2.4h1.3V9.2H5.5Zm3 0v5.6h1.6v-3.3l2.4 3.3H14V9.2h-1.6v3.3L10 9.2H8.5Zm6.2 0v5.6h1.6v-3.3l2.4 3.3h1.5V9.2h-1.6v3.3l-2.4-3.3h-1.5Z" }
1159
1159
  ], Bo = new Map(sa.map((t) => [t.id, t]));
1160
- function vd(t) {
1160
+ function Ld(t) {
1161
1161
  return t ? Bo.get(t) ?? null : null;
1162
1162
  }
1163
1163
  function Ho(t) {
@@ -1169,7 +1169,7 @@ function Ho(t) {
1169
1169
  return null;
1170
1170
  }
1171
1171
  }
1172
- function en(t) {
1172
+ function Zt(t) {
1173
1173
  const e = Ho(t);
1174
1174
  return e ? sa.find((n) => n.hosts.test(e)) ?? null : null;
1175
1175
  }
@@ -1217,7 +1217,7 @@ const Go = (t) => {
1217
1217
  };
1218
1218
  function aa(t, e) {
1219
1219
  var s, a, o, l, c, u, d, M, f, g;
1220
- const n = en(t);
1220
+ const n = Zt(t);
1221
1221
  if (!n) return null;
1222
1222
  const r = e.play ? 1 : 0;
1223
1223
  switch (n.id) {
@@ -1236,7 +1236,7 @@ function aa(t, e) {
1236
1236
  case "dailymotion": {
1237
1237
  const h = Fo(t);
1238
1238
  if (!h) return null;
1239
- const y = new URLSearchParams({ autoplay: String(r), mute: "1", controls: "0", "queue-enable": "0", "sharing-enable": "0", "ui-start-screen-info": "0", start: String(Wt(e.t)) });
1239
+ const y = new URLSearchParams({ autoplay: String(r), mute: "1", controls: "0", "queue-enable": "0", "sharing-enable": "0", "ui-start-screen-info": "0", start: String(Wt(e.t)), api: "postMessage" });
1240
1240
  return `https://www.dailymotion.com/embed/video/${h}?${y}`;
1241
1241
  }
1242
1242
  case "twitch": {
@@ -1361,11 +1361,33 @@ function el(t) {
1361
1361
  const e = /\/(?:watch\/)?([A-Za-z0-9_-]{16,})(?:\.html)?\/?$/.exec(((n = Ke(t)) == null ? void 0 : n.pathname) ?? "");
1362
1362
  return e ? e[1] : null;
1363
1363
  }
1364
- function tl({ url: t, t: e, playing: n, seekN: r, title: s, onToggle: a }) {
1365
- const o = k(e);
1364
+ const tl = { dailymotion: /(^|\.)dailymotion\.com$/ };
1365
+ function nl(t) {
1366
+ const e = Zt(t);
1367
+ return e ? tl[e.id] ?? null : null;
1368
+ }
1369
+ function rl({ url: t, t: e, playing: n, seekN: r, title: s, onToggle: a }) {
1370
+ const o = w(e);
1366
1371
  o.current = e;
1367
- const [l, c] = z(!1), u = typeof window < "u" ? window.location.hostname : "localhost", d = ze(() => aa(t, { t: o.current, play: n, host: u }), [t, n, r, u]);
1368
- return d ? /* @__PURE__ */ m("div", { className: "txyt vsp-follow", style: l ? { background: "#000" } : void 0, children: [
1372
+ const [l, c] = j(!1), u = typeof window < "u" ? window.location.hostname : "localhost", d = ze(() => aa(t, { t: o.current, play: n, host: u }), [t, n, r, u]), [M, f] = j(!1), g = w(!1);
1373
+ return O(() => {
1374
+ const h = nl(t);
1375
+ if (!h) return;
1376
+ g.current = !1, f(!1);
1377
+ const y = (N) => {
1378
+ try {
1379
+ h.test(new URL(N.origin).hostname) && (g.current = !0);
1380
+ } catch {
1381
+ }
1382
+ };
1383
+ window.addEventListener("message", y);
1384
+ const T = window.setTimeout(() => {
1385
+ g.current || f(!0);
1386
+ }, 8e3);
1387
+ return () => {
1388
+ window.removeEventListener("message", y), window.clearTimeout(T);
1389
+ };
1390
+ }, [t]), !d || M ? null : /* @__PURE__ */ m("div", { className: "txyt vsp-follow", style: l ? { background: "#000" } : void 0, children: [
1369
1391
  /* @__PURE__ */ i(
1370
1392
  "iframe",
1371
1393
  {
@@ -1383,10 +1405,10 @@ function tl({ url: t, t: e, playing: n, seekN: r, title: s, onToggle: a }) {
1383
1405
  ),
1384
1406
  !n && /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: a, style: { cursor: a ? "pointer" : "default" } }),
1385
1407
  l && /* @__PURE__ */ i("div", { className: `txyt__paused${n ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(xt, { size: 44 }) }) })
1386
- ] }) : null;
1408
+ ] });
1387
1409
  }
1388
1410
  let Dn = null;
1389
- function nl() {
1411
+ function sl() {
1390
1412
  return Dn || (Dn = new Promise((t) => {
1391
1413
  const e = window;
1392
1414
  if (e.FB) {
@@ -1402,11 +1424,11 @@ function nl() {
1402
1424
  r.src = "https://connect.facebook.net/en_US/sdk.js", r.async = !0, r.crossOrigin = "anonymous", r.onerror = () => t(null), document.body.appendChild(r);
1403
1425
  }), Dn);
1404
1426
  }
1405
- let rl = 0;
1406
- function sl({ url: t, t: e, playing: n, seekN: r, onToggle: s }) {
1407
- const a = k(null), o = k(null), l = k(e);
1427
+ let il = 0;
1428
+ function al({ url: t, t: e, playing: n, seekN: r, onToggle: s }) {
1429
+ const a = w(null), o = w(null), l = w(e);
1408
1430
  l.current = e;
1409
- const [c, u] = z(!1), [d] = z(() => `vsp-fb-${++rl}`);
1431
+ const [c, u] = j(!1), [d] = j(() => `vsp-fb-${++il}`);
1410
1432
  return O(() => {
1411
1433
  let M = !0;
1412
1434
  const f = a.current;
@@ -1425,7 +1447,7 @@ function sl({ url: t, t: e, playing: n, seekN: r, onToggle: s }) {
1425
1447
  u(!0);
1426
1448
  }
1427
1449
  };
1428
- return nl().then((T) => {
1450
+ return sl().then((T) => {
1429
1451
  !M || !T || (h = T, T.Event.subscribe("xfbml.ready", y), T.XFBML.parse(f));
1430
1452
  }), () => {
1431
1453
  M = !1, o.current = null, u(!1);
@@ -1466,18 +1488,18 @@ function sl({ url: t, t: e, playing: n, seekN: r, onToggle: s }) {
1466
1488
  ] });
1467
1489
  }
1468
1490
  let An = null;
1469
- function il() {
1491
+ function ol() {
1470
1492
  return An || (An = new Promise((t) => {
1471
1493
  const e = document.createElement("script");
1472
1494
  e.src = "https://fast.wistia.net/assets/external/E-v1.js", e.async = !0, e.onload = () => t(), e.onerror = () => t(), document.head.appendChild(e);
1473
1495
  }), An);
1474
1496
  }
1475
- function al({ id: t, t: e, playing: n, seekN: r, onToggle: s }) {
1476
- const a = k(null), o = k(e);
1497
+ function ll({ id: t, t: e, playing: n, seekN: r, onToggle: s }) {
1498
+ const a = w(null), o = w(e);
1477
1499
  o.current = e;
1478
- const l = k(n);
1500
+ const l = w(n);
1479
1501
  l.current = n;
1480
- const [c, u] = z(!1);
1502
+ const [c, u] = j(!1);
1481
1503
  O(() => {
1482
1504
  let M = !0;
1483
1505
  const f = window;
@@ -1493,7 +1515,7 @@ function al({ id: t, t: e, playing: n, seekN: r, onToggle: s }) {
1493
1515
  u(!0);
1494
1516
  }
1495
1517
  }
1496
- }), il(), () => {
1518
+ }), ol(), () => {
1497
1519
  M = !1, a.current = null, u(!1);
1498
1520
  };
1499
1521
  }, [t]), O(() => {
@@ -1529,7 +1551,7 @@ function al({ id: t, t: e, playing: n, seekN: r, onToggle: s }) {
1529
1551
  ] });
1530
1552
  }
1531
1553
  let En = null;
1532
- function ol() {
1554
+ function cl() {
1533
1555
  return En || (En = new Promise((t) => {
1534
1556
  const e = window;
1535
1557
  if (e.VidyardV4) {
@@ -1545,17 +1567,17 @@ function ol() {
1545
1567
  }, n.onerror = () => t(null), document.head.appendChild(n);
1546
1568
  }), En);
1547
1569
  }
1548
- function ll({ uuid: t, t: e, playing: n, seekN: r, onToggle: s }) {
1549
- const a = k(null), o = k(null), l = k(e);
1570
+ function ul({ uuid: t, t: e, playing: n, seekN: r, onToggle: s }) {
1571
+ const a = w(null), o = w(null), l = w(e);
1550
1572
  l.current = e;
1551
- const c = k(n);
1573
+ const c = w(n);
1552
1574
  c.current = n;
1553
- const [u, d] = z(!1);
1575
+ const [u, d] = j(!1);
1554
1576
  return O(() => {
1555
1577
  let M = !0;
1556
1578
  const f = a.current;
1557
1579
  if (f)
1558
- return f.innerHTML = "", ol().then((g) => {
1580
+ return f.innerHTML = "", cl().then((g) => {
1559
1581
  if (!(!M || !g))
1560
1582
  return g.renderPlayer({ uuid: t, container: f, type: "inline", autoplay: 0, muted: 1, controls: 0 }).then((h) => {
1561
1583
  if (M) {
@@ -1601,7 +1623,7 @@ function ll({ uuid: t, t: e, playing: n, seekN: r, onToggle: s }) {
1601
1623
  u && /* @__PURE__ */ i("div", { className: `txyt__paused${n ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(xt, { size: 44 }) }) })
1602
1624
  ] });
1603
1625
  }
1604
- async function cl(t) {
1626
+ async function dl(t) {
1605
1627
  try {
1606
1628
  const e = await fetch(`https://www.loom.com/api/campaigns/sessions/${t}/raw-url`, { method: "POST" });
1607
1629
  if (!e.ok || e.status === 204) return null;
@@ -1611,17 +1633,17 @@ async function cl(t) {
1611
1633
  return null;
1612
1634
  }
1613
1635
  }
1614
- function ul(t) {
1636
+ function hl(t) {
1615
1637
  const e = t.includes("?") ? t.slice(t.indexOf("?") + 1) : "";
1616
1638
  return (n, r) => {
1617
1639
  e && !r.includes("Signature=") && n.open("GET", r + (r.includes("?") ? "&" : "?") + e, !0);
1618
1640
  };
1619
1641
  }
1620
- function dl(t) {
1642
+ function Ml(t) {
1621
1643
  return (e, n) => {
1622
1644
  let r = !0, s = null;
1623
1645
  return (async () => {
1624
- const a = await cl(t);
1646
+ const a = await dl(t);
1625
1647
  if (!r) return;
1626
1648
  if (!a) {
1627
1649
  n();
@@ -1634,7 +1656,7 @@ function dl(t) {
1634
1656
  n();
1635
1657
  return;
1636
1658
  }
1637
- const c = new l({ xhrSetup: ul(a), capLevelToPlayerSize: !0, startLevel: 0, maxBufferLength: 20 });
1659
+ const c = new l({ xhrSetup: hl(a), capLevelToPlayerSize: !0, startLevel: 0, maxBufferLength: 20 });
1638
1660
  c.on(l.Events.ERROR, (u, d) => {
1639
1661
  d.fatal && (c.destroy(), n());
1640
1662
  }), c.loadSource(a), c.attachMedia(e), s = () => c.destroy();
@@ -1644,8 +1666,8 @@ function dl(t) {
1644
1666
  };
1645
1667
  }
1646
1668
  const cn = /* @__PURE__ */ new Map();
1647
- function hl(t) {
1648
- const [e, n] = z(() => t ? cn.get(t) ?? null : null);
1669
+ function fl(t) {
1670
+ const [e, n] = j(() => t ? cn.get(t) ?? null : null);
1649
1671
  return O(() => {
1650
1672
  if (!t) {
1651
1673
  n(null);
@@ -1666,11 +1688,11 @@ function hl(t) {
1666
1688
  };
1667
1689
  }, [t]), e;
1668
1690
  }
1669
- const Ml = /^[0-9a-f]{16,}$/i, Li = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1670
- function fl(t) {
1691
+ const gl = /^[0-9a-f]{16,}$/i, ki = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1692
+ function ml(t) {
1671
1693
  const e = (r) => {
1672
1694
  const s = r == null ? void 0 : r.trim();
1673
- return s && s !== t.id && !Li.test(s) && !Ml.test(s) ? s : null;
1695
+ return s && s !== t.id && !ki.test(s) && !gl.test(s) ? s : null;
1674
1696
  }, n = (() => {
1675
1697
  if (!t.url) return null;
1676
1698
  try {
@@ -1679,39 +1701,39 @@ function fl(t) {
1679
1701
  return null;
1680
1702
  }
1681
1703
  })();
1682
- return e(t.name) ?? e(t.sourceName) ?? e(t.ytTitle) ?? n ?? (Li.test(t.id) ? "VocalStack" : t.id);
1704
+ return e(t.name) ?? e(t.sourceName) ?? e(t.ytTitle) ?? n ?? (ki.test(t.id) ? "VocalStack" : t.id);
1683
1705
  }
1684
- const gl = 0.3;
1706
+ const pl = 0.3;
1685
1707
  function ji(t, e) {
1686
- t.muted = e.muted, Math.abs(t.currentTime - e.t) > gl && (t.currentTime = Math.max(0, e.t)), e.playing ? t.paused && Promise.resolve(t.play()).catch(() => {
1708
+ t.muted = e.muted, Math.abs(t.currentTime - e.t) > pl && (t.currentTime = Math.max(0, e.t)), e.playing ? t.paused && Promise.resolve(t.play()).catch(() => {
1687
1709
  }) : t.paused || t.pause();
1688
1710
  }
1689
- const Vn = "Remove background sound", ml = "Takes out everything that isn't speech: music, ambience and noise.";
1690
- function pl(t) {
1711
+ const Vn = "Remove background sound", yl = "Takes out everything that isn't speech: music, ambience and noise.";
1712
+ function Nl(t) {
1691
1713
  const e = Math.max(0, Math.floor(t)), n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), s = String(e % 60).padStart(2, "0");
1692
1714
  return n ? `${n}:${String(r).padStart(2, "0")}:${s}` : `${r}:${s}`;
1693
1715
  }
1694
- function yl(t, e, n = "transcription", r = 0) {
1695
- return e === "unavailable" ? `Not available for this ${n}` : e === "making" ? r > 0 ? `Separating the speech from the background… ready up to ${pl(r)}` : "Separating the speech from the background…" : ml;
1716
+ function Tl(t, e, n = "transcription", r = 0) {
1717
+ return e === "unavailable" ? `Not available for this ${n}` : e === "making" ? r > 0 ? `Separating the speech from the background… ready up to ${Nl(r)}` : "Separating the speech from the background…" : yl;
1696
1718
  }
1697
- function Nl(t, e) {
1719
+ function vl(t, e) {
1698
1720
  return { bed: e && !t, speech: !e && t };
1699
1721
  }
1700
- function Tl(t) {
1722
+ function wl(t) {
1701
1723
  const e = t.get("bg");
1702
1724
  return e === "off" || e === "remove";
1703
1725
  }
1704
- function vl(t, e) {
1726
+ function Ll(t, e) {
1705
1727
  e ? t.searchParams.set("bg", "remove") : t.searchParams.delete("bg");
1706
1728
  }
1707
- function wl(t, e) {
1729
+ function kl(t, e) {
1708
1730
  var r, s;
1709
1731
  if (t !== 503) return null;
1710
1732
  const n = (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.details) == null ? void 0 : s.retryAfterS;
1711
1733
  return typeof n == "number" && n > 0 ? Math.max(2, n) : 3;
1712
1734
  }
1713
- const kl = 0.05;
1714
- function Ll(t) {
1735
+ const jl = 0.05;
1736
+ function zl(t) {
1715
1737
  var r, s;
1716
1738
  const e = (s = (r = t == null ? void 0 : t.data) == null ? void 0 : r.details) == null ? void 0 : s.parts, n = [];
1717
1739
  if (Array.isArray(e))
@@ -1723,8 +1745,8 @@ function Ll(t) {
1723
1745
  }
1724
1746
  return { untilS: n.length ? n[n.length - 1].endS : 0, parts: n };
1725
1747
  }
1726
- function jl(t, e) {
1727
- if (!t.length || e < 0 || e >= t[t.length - 1].endS - kl) return -1;
1748
+ function Il(t, e) {
1749
+ if (!t.length || e < 0 || e >= t[t.length - 1].endS - jl) return -1;
1728
1750
  let n = 0, r = t.length - 1;
1729
1751
  for (; n < r; ) {
1730
1752
  const s = n + r + 1 >> 1;
@@ -1732,23 +1754,23 @@ function jl(t, e) {
1732
1754
  }
1733
1755
  return n;
1734
1756
  }
1735
- function zl(t, e, n, r) {
1757
+ function bl(t, e, n, r) {
1736
1758
  const s = t[e].startS, a = n[r] === s ? r : n[1 - r] === s ? 1 - r : r, o = [];
1737
1759
  n[a] !== s && o.push([a, e]);
1738
1760
  const l = 1 - a;
1739
1761
  return e + 1 < t.length && n[l] !== t[e + 1].startS && o.push([l, e + 1]), { play: a, load: o };
1740
1762
  }
1741
- async function Il(t) {
1763
+ async function Ol(t) {
1742
1764
  const e = await fetch(t, { redirect: "manual", credentials: "omit" });
1743
1765
  if (e.type === "opaqueredirect" || e.status >= 300 && e.status < 400 || e.ok) return { ready: !0 };
1744
1766
  const n = await e.json().catch(() => null);
1745
- return { ready: !1, retryS: wl(e.status, n), ...Ll(n) };
1767
+ return { ready: !1, retryS: kl(e.status, n), ...zl(n) };
1746
1768
  }
1747
1769
  function vr(t) {
1748
1770
  t && (t.pause(), t.removeAttribute("src"), t.load());
1749
1771
  }
1750
1772
  function oa(t, e) {
1751
- const [n, r] = z("off"), [s, a] = z([]), [o, l] = z(!1), c = k(null), u = k([null, null]), d = k([NaN, NaN]), M = k(0);
1773
+ const [n, r] = j("off"), [s, a] = j([]), [o, l] = j(!1), c = w(null), u = w([null, null]), d = w([NaN, NaN]), M = w(0);
1752
1774
  return O(() => {
1753
1775
  if (a([]), l(!1), !t) {
1754
1776
  r("off");
@@ -1757,7 +1779,7 @@ function oa(t, e) {
1757
1779
  let f = !1, g;
1758
1780
  r("making");
1759
1781
  const h = () => {
1760
- Il(t).then((y) => {
1782
+ Ol(t).then((y) => {
1761
1783
  if (!f) {
1762
1784
  if (y.ready) {
1763
1785
  const T = new Audio();
@@ -1789,12 +1811,12 @@ function oa(t, e) {
1789
1811
  f(), ji(c.current, e), l(!0);
1790
1812
  return;
1791
1813
  }
1792
- const g = n === "making" ? jl(s, e.t) : -1;
1814
+ const g = n === "making" ? Il(s, e.t) : -1;
1793
1815
  if (g < 0) {
1794
1816
  f(), l(!1);
1795
1817
  return;
1796
1818
  }
1797
- const h = zl(s, g, d.current, M.current);
1819
+ const h = bl(s, g, d.current, M.current);
1798
1820
  for (const [N, p] of h.load) {
1799
1821
  let b = u.current[N];
1800
1822
  b || (b = new Audio(), b.preload = "auto", u.current[N] = b), b.pause(), b.src = s[p].url, d.current[N] = s[p].startS;
@@ -1804,16 +1826,16 @@ function oa(t, e) {
1804
1826
  T && !T.paused && T.pause(), ji(y, { ...e, t: e.t - s[g].startS }), l(!e.playing || y.readyState >= 3);
1805
1827
  }, [n, s, e.t, e.playing, e.muted]), { state: n, on: o, untilS: n === "ready" ? 1 / 0 : s.length ? s[s.length - 1].endS : 0 };
1806
1828
  }
1807
- function bl(t, e) {
1829
+ function xl(t, e) {
1808
1830
  return oa(t, e).state;
1809
1831
  }
1810
- const Ol = 0.5, xl = 3;
1832
+ const Cl = 0.5, Sl = 3;
1811
1833
  function Hr(t, e) {
1812
1834
  let n = -1;
1813
1835
  for (let r = 0; r < t.length && t[r].start <= e + 0.02; r++) n = r;
1814
1836
  return n;
1815
1837
  }
1816
- function Cl(t, e, n) {
1838
+ function Dl(t, e, n) {
1817
1839
  const r = Hr(t, n);
1818
1840
  if (r < 0) return { kind: "none" };
1819
1841
  const s = t[r];
@@ -1831,14 +1853,14 @@ function Cl(t, e, n) {
1831
1853
  }
1832
1854
  return { kind: "done", sid: s.sid };
1833
1855
  }
1834
- function Sl(t, e, n) {
1856
+ function Al(t, e, n) {
1835
1857
  if (n == null) return !1;
1836
1858
  const r = Hr(t, e);
1837
1859
  if (r < 0) return !1;
1838
1860
  const s = t[r];
1839
1861
  return e >= s.end ? s.sid === n : r > 0 && t[r - 1].sid === n && e - s.start < 1.5;
1840
1862
  }
1841
- function Dl(t, e, n, r = xl) {
1863
+ function El(t, e, n, r = Sl) {
1842
1864
  const s = Math.max(0, Hr(t, n)), a = [];
1843
1865
  for (let o = s; o < t.length && o <= s + r; o++) {
1844
1866
  const l = (e.get(t[o].sid) ?? []).find((c) => c.part === 0);
@@ -1846,12 +1868,12 @@ function Dl(t, e, n, r = xl) {
1846
1868
  }
1847
1869
  return a;
1848
1870
  }
1849
- function Al(t) {
1871
+ function _l(t) {
1850
1872
  const e = ze(() => {
1851
1873
  const c = /* @__PURE__ */ new Map();
1852
1874
  for (const u of t.clips) c.set(u.sentenceId, [...c.get(u.sentenceId) ?? [], u]);
1853
1875
  return c;
1854
- }, [t.clips]), n = k(/* @__PURE__ */ new Map()), r = k(null), [s, a] = z({ missing: null, sid: null }), o = (c) => {
1876
+ }, [t.clips]), n = w(/* @__PURE__ */ new Map()), r = w(null), [s, a] = j({ missing: null, sid: null }), o = (c) => {
1855
1877
  let u = n.current.get(c);
1856
1878
  return u || (u = new Audio(), u.preload = "auto", u.src = c, n.current.set(c, u)), u;
1857
1879
  }, l = () => {
@@ -1867,9 +1889,9 @@ function Al(t) {
1867
1889
  l(), a((h) => h.missing == null && h.sid == null ? h : { missing: null, sid: null });
1868
1890
  return;
1869
1891
  }
1870
- const c = Cl(t.lines, e, t.t), u = c.kind === "missing" ? c.sid : null, d = c.kind === "none" ? null : c.sid;
1892
+ const c = Dl(t.lines, e, t.t), u = c.kind === "missing" ? c.sid : null, d = c.kind === "none" ? null : c.sid;
1871
1893
  a((h) => h.missing === u && h.sid === d ? h : { missing: u, sid: d });
1872
- const M = new Set(Dl(t.lines, e, t.t));
1894
+ const M = new Set(El(t.lines, e, t.t));
1873
1895
  for (const h of M) o(h);
1874
1896
  const f = r.current;
1875
1897
  f && M.add(f.src);
@@ -1879,12 +1901,12 @@ function Al(t) {
1879
1901
  return;
1880
1902
  }
1881
1903
  if (c.kind !== "play") {
1882
- if (f && !f.el.paused && !f.el.ended && Sl(t.lines, t.t, f.sid)) return;
1904
+ if (f && !f.el.paused && !f.el.ended && Al(t.lines, t.t, f.sid)) return;
1883
1905
  f && f.el.pause(), r.current = null;
1884
1906
  return;
1885
1907
  }
1886
1908
  if (f && f.src === c.src) {
1887
- if (f.el.muted = t.muted, !f.el.ended && Math.abs(f.el.currentTime - c.offset) > Ol)
1909
+ if (f.el.muted = t.muted, !f.el.ended && Math.abs(f.el.currentTime - c.offset) > Cl)
1888
1910
  try {
1889
1911
  f.el.currentTime = c.offset;
1890
1912
  } catch {
@@ -1905,7 +1927,7 @@ function Al(t) {
1905
1927
  }, [t.on, t.t, t.playing, t.muted, t.lines, e]), s;
1906
1928
  }
1907
1929
  const zi = ["play", "pause", "stop", "nexttrack", "previoustrack"];
1908
- function El(t, e) {
1930
+ function Yl(t, e) {
1909
1931
  var n, r;
1910
1932
  if (t === "play") {
1911
1933
  e.playing || e.toggle();
@@ -1921,12 +1943,12 @@ function El(t, e) {
1921
1943
  }
1922
1944
  (r = e.prev) == null || r.call(e);
1923
1945
  }
1924
- function _l(t, e) {
1946
+ function Ul(t, e) {
1925
1947
  for (const n of zi)
1926
1948
  try {
1927
1949
  t.setActionHandler(n, () => {
1928
1950
  const r = e();
1929
- r && El(n, r);
1951
+ r && Yl(n, r);
1930
1952
  });
1931
1953
  } catch {
1932
1954
  }
@@ -1938,14 +1960,14 @@ function _l(t, e) {
1938
1960
  }
1939
1961
  };
1940
1962
  }
1941
- function Yl(t, e) {
1942
- const n = k(t);
1963
+ function $l(t, e) {
1964
+ const n = w(t);
1943
1965
  n.current = t;
1944
1966
  const r = !!t;
1945
1967
  O(() => {
1946
1968
  const a = typeof navigator < "u" ? navigator.mediaSession : void 0;
1947
1969
  if (!(!a || !r))
1948
- return _l(a, () => n.current);
1970
+ return Ul(a, () => n.current);
1949
1971
  }, [r]);
1950
1972
  const s = !!(t != null && t.playing);
1951
1973
  O(() => {
@@ -1964,7 +1986,7 @@ function Ot(t) {
1964
1986
  const e = Math.max(0, Math.floor(t)), n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), s = e % 60, a = String(r).padStart(2, "0"), o = String(s).padStart(2, "0");
1965
1987
  return n > 0 ? `${n}:${a}:${o}` : `${a}:${o}`;
1966
1988
  }
1967
- function Xt() {
1989
+ function en() {
1968
1990
  return {
1969
1991
  segments: /* @__PURE__ */ new Map(),
1970
1992
  sentences: /* @__PURE__ */ new Map(),
@@ -1977,7 +1999,7 @@ function Xt() {
1977
1999
  spans: []
1978
2000
  };
1979
2001
  }
1980
- function Ul(t, e) {
2002
+ function Rl(t, e) {
1981
2003
  for (const r of t.spans) {
1982
2004
  const s = r.mediaEnd ?? 1 / 0;
1983
2005
  if (e < s || r.mediaEnd == null) return r.wallStart + Math.max(0, e - r.mediaStart);
@@ -1989,7 +2011,7 @@ function hn(t, e) {
1989
2011
  return (e ?? []).map((n, r) => ({ text: String(n.text ?? ""), prob: n.prob ?? null, start: n.start ?? 0, end: n.end ?? 0, alts: n.alts, ...n.script === !0 ? { script: !0 } : {}, ...n.script === !0 && typeof n.recognized == "string" ? { recognized: n.recognized } : {}, seq: t, idx: r }));
1990
2012
  }
1991
2013
  function wr(t, e) {
1992
- const n = e ?? Xt();
2014
+ const n = e ?? en();
1993
2015
  delete n.numbers, n.state = t.state, t.speakerLabels && (n.labels = t.speakerLabels), n.lastSeq = Math.max(n.lastSeq, t.lastSeq), n.spans = t.spans.map((r) => ({ wallStart: r.wallStart, wallEnd: r.wallEnd ?? null, mediaStart: r.mediaStart, mediaEnd: r.mediaEnd ?? null }));
1994
2016
  for (const r of t.segments) {
1995
2017
  const s = r.scriptPos;
@@ -2054,7 +2076,7 @@ function Ii(t, e) {
2054
2076
  const n = e ?? {};
2055
2077
  return !t || !Object.keys(t).length ? n : Object.keys(n).length ? { ...t, ...n } : t;
2056
2078
  }
2057
- function $l(t, e) {
2079
+ function Pl(t, e) {
2058
2080
  const n = e.tail;
2059
2081
  if (!n || !Array.isArray(n.words) || n.replaced !== t.length || n.words.length !== t.length) return !1;
2060
2082
  let r = !1;
@@ -2071,7 +2093,7 @@ function $l(t, e) {
2071
2093
  }
2072
2094
  return r;
2073
2095
  }
2074
- function Rl(t, e) {
2096
+ function Ql(t, e) {
2075
2097
  var n;
2076
2098
  switch (delete t.numbers, e.type) {
2077
2099
  case "transcript.committed": {
@@ -2112,7 +2134,7 @@ function Rl(t, e) {
2112
2134
  }
2113
2135
  case "transcript.amended": {
2114
2136
  const r = t.segments.get(e.seq);
2115
- if (r && r.corrected && $l(r.words, e)) {
2137
+ if (r && r.corrected && Pl(r.words, e)) {
2116
2138
  r.text = e.text, r.words = hn(e.seq, e.tail.words);
2117
2139
  break;
2118
2140
  }
@@ -2160,7 +2182,7 @@ function Rl(t, e) {
2160
2182
  seqs: r.seqs,
2161
2183
  speaker: r.speaker,
2162
2184
  start: r.start,
2163
- wallStart: Ul(t, r.start),
2185
+ wallStart: Rl(t, r.start),
2164
2186
  text: a ? s.text : r.text,
2165
2187
  status: r.status === "open" ? "open" : "closed",
2166
2188
  settled: !!r.settled,
@@ -2212,7 +2234,7 @@ function Rl(t, e) {
2212
2234
  }
2213
2235
  return typeof e.seq == "number" && (t.lastSeq = Math.max(t.lastSeq, e.seq)), t;
2214
2236
  }
2215
- function Pl(t) {
2237
+ function Vl(t) {
2216
2238
  const e = [], n = [...t.sentences.values()].sort((r, s) => r.start - s.start || (r.sentenceId ?? 0) - (s.sentenceId ?? 0));
2217
2239
  for (const r of n) {
2218
2240
  const s = r.seqs.map((l) => t.segments.get(l)).filter(Boolean), a = s.length === r.seqs.length || !r.text ? s.flatMap((l) => l.words) : [], o = s[s.length - 1];
@@ -2225,16 +2247,16 @@ function Pl(t) {
2225
2247
  catchup: s.some((l) => l.catchup),
2226
2248
  suppressed: r.suppressed || s.length > 0 && s.every((l) => l.suppressed),
2227
2249
  unclear: r.unclear || s.length > 0 && s.every((l) => l.unclear),
2228
- confidence: Ql(s),
2250
+ confidence: Bl(s),
2229
2251
  latencyS: o == null ? void 0 : o.latencyS,
2230
2252
  settled: r.settled || s.length > 0 && s.every((l) => l.settled),
2231
- translations: Object.keys(r.translations).length ? r.translations : Vl(s),
2253
+ translations: Object.keys(r.translations).length ? r.translations : Hl(s),
2232
2254
  speaker: r.speaker >= 0 ? r.speaker : (o == null ? void 0 : o.speaker) ?? -1
2233
2255
  });
2234
2256
  }
2235
2257
  return e.sort((r, s) => r.start - s.start), e;
2236
2258
  }
2237
- function Ql(t) {
2259
+ function Bl(t) {
2238
2260
  let e = 0, n = 0;
2239
2261
  for (const r of t) {
2240
2262
  if (r.confidence == null) continue;
@@ -2243,20 +2265,20 @@ function Ql(t) {
2243
2265
  }
2244
2266
  return n ? e / n : void 0;
2245
2267
  }
2246
- function Vl(t) {
2268
+ function Hl(t) {
2247
2269
  const e = {};
2248
2270
  for (const n of t) for (const [r, s] of Object.entries(n.translations)) e[r] = e[r] ? `${e[r]} ${s}` : s;
2249
2271
  return e;
2250
2272
  }
2251
- const Bl = 0.85, Hl = 0.75;
2252
- function Wl(t) {
2253
- return t == null ? "" : t < Hl ? "low" : t < Bl ? "mid" : "";
2273
+ const Wl = 0.85, Fl = 0.75;
2274
+ function Zl(t) {
2275
+ return t == null ? "" : t < Fl ? "low" : t < Wl ? "mid" : "";
2254
2276
  }
2255
2277
  const _n = ["a", "b", "c", "d", "e", "f", "g", "h"];
2256
- function Fl(t) {
2278
+ function Gl(t) {
2257
2279
  return _n[(t % _n.length + _n.length) % _n.length];
2258
2280
  }
2259
- function Zl(t) {
2281
+ function ql(t) {
2260
2282
  if (t.numbers) return t.numbers;
2261
2283
  const e = /* @__PURE__ */ new Map(), n = (a, o) => {
2262
2284
  if (a < 0) return;
@@ -2272,12 +2294,12 @@ function Zl(t) {
2272
2294
  }
2273
2295
  function Bn(t, e) {
2274
2296
  if (e < 0) return 0;
2275
- const n = Zl(t);
2297
+ const n = ql(t);
2276
2298
  return n.get(e) ?? n.size + 1 + e;
2277
2299
  }
2278
- const Gl = /^\s*speaker\s+\d+\s*$/i;
2300
+ const Kl = /^\s*speaker\s+\d+\s*$/i;
2279
2301
  function bi(t) {
2280
- return t && t.trim() && !Gl.test(t) ? t : void 0;
2302
+ return t && t.trim() && !Kl.test(t) ? t : void 0;
2281
2303
  }
2282
2304
  function la(t, e) {
2283
2305
  var n;
@@ -2291,7 +2313,7 @@ function ca(t, e) {
2291
2313
  const n = la(t, e);
2292
2314
  return n ? (n.split(" ").filter(Boolean).slice(0, 2).map((s) => s[0]).join("") || `S${Bn(t, e)}`).toUpperCase() : `S${Bn(t, e)}`;
2293
2315
  }
2294
- function ql(t) {
2316
+ function Jl(t) {
2295
2317
  if (t) {
2296
2318
  if (t.startsWith("#"))
2297
2319
  return { fg: t, soft: `color-mix(in srgb, ${t} 16%, transparent)` };
@@ -2300,10 +2322,10 @@ function ql(t) {
2300
2322
  }
2301
2323
  }
2302
2324
  function Fr(t, e) {
2303
- const n = t.speakerIds[e], r = ql(n == null ? void 0 : n.color);
2304
- return { fg: r == null ? void 0 : r.fg, soft: r == null ? void 0 : r.soft, lane: Fl(Bn(t, e) - 1), hasVoice: !!n };
2325
+ const n = t.speakerIds[e], r = Jl(n == null ? void 0 : n.color);
2326
+ return { fg: r == null ? void 0 : r.fg, soft: r == null ? void 0 : r.soft, lane: Gl(Bn(t, e) - 1), hasVoice: !!n };
2305
2327
  }
2306
- function Kl(t, e, n, r = !1) {
2328
+ function Xl(t, e, n, r = !1) {
2307
2329
  const s = n ? n.speakerLabels ?? "auto" : null, a = (r ? s : null) ?? t.labels ?? s ?? "on";
2308
2330
  if (a !== "auto") return a === "on";
2309
2331
  const o = /* @__PURE__ */ new Set();
@@ -2311,7 +2333,7 @@ function Kl(t, e, n, r = !1) {
2311
2333
  return !0;
2312
2334
  return !1;
2313
2335
  }
2314
- const Jl = /* @__PURE__ */ new Set([
2336
+ const ec = /* @__PURE__ */ new Set([
2315
2337
  "invalid_audio",
2316
2338
  "invalid_options",
2317
2339
  "invalid_token",
@@ -2343,7 +2365,7 @@ const Jl = /* @__PURE__ */ new Set([
2343
2365
  engine_lost: "The transcription engine stopped. Please try again.",
2344
2366
  capacity_exceeded: "Every transcription engine is busy right now. Please try again in a moment.",
2345
2367
  timeout: "That took too long. Please try again."
2346
- }, _r = ua.internal, kr = "Can't reach VocalStack. Check your connection.", Oi = {
2368
+ }, _r = ua.internal, Lr = "Can't reach VocalStack. Check your connection.", Oi = {
2347
2369
  NotAllowedError: "The browser blocked this. Allow it for this site, then try again.",
2348
2370
  NotSupportedError: "The audio couldn't be loaded. Try again in a moment.",
2349
2371
  AbortError: "It was cancelled."
@@ -2352,35 +2374,35 @@ function Ct(t) {
2352
2374
  const e = t, n = typeof (e == null ? void 0 : e.code) == "string" ? e.code : void 0, r = typeof (e == null ? void 0 : e.status) == "number" ? e.status : void 0, s = e == null ? void 0 : e.details;
2353
2375
  if (n || r && r >= 400) {
2354
2376
  const o = typeof (e == null ? void 0 : e.requestId) == "string" && e.requestId ? { requestId: e.requestId } : {};
2355
- return n && Jl.has(n) && typeof (e == null ? void 0 : e.message) == "string" ? { message: e.message, code: n, status: r, details: s, ...o } : n === "unavailable" && r === void 0 ? { message: kr, code: n, details: s, ...o } : r === 0 ? { message: typeof (e == null ? void 0 : e.message) == "string" ? e.message : kr, code: n, status: r, details: s, ...o } : { message: n && ua[n] || _r, code: n, status: r, details: s, ...o };
2377
+ return n && ec.has(n) && typeof (e == null ? void 0 : e.message) == "string" ? { message: e.message, code: n, status: r, details: s, ...o } : n === "unavailable" && r === void 0 ? { message: Lr, code: n, details: s, ...o } : r === 0 ? { message: typeof (e == null ? void 0 : e.message) == "string" ? e.message : Lr, code: n, status: r, details: s, ...o } : { message: n && ua[n] || _r, code: n, status: r, details: s, ...o };
2356
2378
  }
2357
2379
  const a = (e == null ? void 0 : e.name) ?? "";
2358
- return a === "TypeError" && /fetch|network|load failed/i.test(String((e == null ? void 0 : e.message) ?? "")) ? (typeof navigator < "u" && navigator.onLine !== !1 && Zi(t instanceof Error ? t : new Error(String(t))), { message: kr }) : Oi[a] ? { message: Oi[a] } : t instanceof Error && a === "Error" && !(t instanceof Hi) ? { message: t.message } : { message: _r };
2380
+ return a === "TypeError" && /fetch|network|load failed/i.test(String((e == null ? void 0 : e.message) ?? "")) ? (typeof navigator < "u" && navigator.onLine !== !1 && Zi(t instanceof Error ? t : new Error(String(t))), { message: Lr }) : Oi[a] ? { message: Oi[a] } : t instanceof Error && a === "Error" && !(t instanceof Hi) ? { message: t.message } : { message: _r };
2359
2381
  }
2360
2382
  const da = "https://api.vocalstack.com", Zr = Bi(null);
2361
- function Zt() {
2383
+ function Gt() {
2362
2384
  const t = ho(Zr);
2363
2385
  if (!t) throw new Error("VocalStack player hooks must be used inside <VocalStackPlayer> or <PlayerApiProvider>");
2364
2386
  return t;
2365
2387
  }
2366
- function Xl(t) {
2367
- return t.value ? /* @__PURE__ */ i(Zr.Provider, { value: t.value, children: t.children }) : /* @__PURE__ */ i(ec, { ...t });
2388
+ function tc(t) {
2389
+ return t.value ? /* @__PURE__ */ i(Zr.Provider, { value: t.value, children: t.children }) : /* @__PURE__ */ i(nc, { ...t });
2368
2390
  }
2369
- function ec({ children: t, ...e }) {
2391
+ function nc({ children: t, ...e }) {
2370
2392
  const n = ha(e);
2371
2393
  return /* @__PURE__ */ i(Zr.Provider, { value: n, children: t });
2372
2394
  }
2373
- const tc = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2374
- function nc(t) {
2375
- return tc.test(t);
2395
+ const rc = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2396
+ function sc(t) {
2397
+ return rc.test(t);
2376
2398
  }
2377
2399
  function ha(t) {
2378
- const e = t.listen ?? null, n = e ? null : t.listenerToken ?? null, r = !e && !n && !!t.token && (!t.id || nc(t.id)), s = (t.baseUrl ?? da).replace(/\/$/, ""), a = k(t.token);
2400
+ const e = t.listen ?? null, n = e ? null : t.listenerToken ?? null, r = !e && !n && !!t.token && (!t.id || sc(t.id)), s = (t.baseUrl ?? da).replace(/\/$/, ""), a = w(t.token);
2379
2401
  a.current = t.token;
2380
2402
  const o = !!t.token, l = ze(() => async () => {
2381
2403
  const f = a.current;
2382
2404
  return (typeof f == "function" ? await f() : f) || void 0;
2383
- }, []), [c, u] = z(() => {
2405
+ }, []), [c, u] = j(() => {
2384
2406
  const f = t.token, g = typeof f == "function" ? f() : f;
2385
2407
  return typeof g == "string" && g ? g : null;
2386
2408
  });
@@ -2401,10 +2423,10 @@ function ha(t) {
2401
2423
  return { client: M, origin: s, owner: r, shareCode: f, listen: null, bearer: l, cred: r ? { accessToken: c ?? void 0 } : { shareCode: f }, readAs: f ? { shareCode: f } : {} };
2402
2424
  }, [M, s, r, t.id, l, e, n, c]);
2403
2425
  }
2404
- function rc(t, e) {
2426
+ function ic(t, e) {
2405
2427
  return e ? { ...t, cred: { ...t.cred, media: e } } : t;
2406
2428
  }
2407
- async function sc(t, e) {
2429
+ async function ac(t, e) {
2408
2430
  if (t.listen) {
2409
2431
  const r = await t.client.recordings.get(t.listen.recordingId, t.readAs), s = r;
2410
2432
  return { key: e, code: null, transcriptionId: t.listen.transcriptionId, name: s.name ?? s.title ?? "", recording: r, job: s.job ?? (s.source ? { source: s.source } : null), allowDownload: !0, allowExport: !0, allowTranslate: !0, sharedBy: null };
@@ -2429,11 +2451,11 @@ async function sc(t, e) {
2429
2451
  sharedBy: n.sharedBy ?? null
2430
2452
  };
2431
2453
  }
2432
- function ic(t, e) {
2433
- const [n, r] = z(null), [s, a] = z(!1), [o, l] = z(null), [c, u] = z(0);
2454
+ function oc(t, e) {
2455
+ const [n, r] = j(null), [s, a] = j(!1), [o, l] = j(null), [c, u] = j(0);
2434
2456
  return O(() => {
2435
2457
  let d = !0;
2436
- return sc(t, e).then((M) => {
2458
+ return ac(t, e).then((M) => {
2437
2459
  d && (r(M), a(!1), l(null));
2438
2460
  }).catch((M) => {
2439
2461
  if (!d) return;
@@ -2444,8 +2466,8 @@ function ic(t, e) {
2444
2466
  };
2445
2467
  }, [t, e, c]), { source: n, gone: s, error: o, reload: () => u((d) => d + 1) };
2446
2468
  }
2447
- function ac(t, e) {
2448
- const [n, r] = z(null);
2469
+ function lc(t, e) {
2470
+ const [n, r] = j(null);
2449
2471
  return O(() => {
2450
2472
  if (!t.owner || !e) {
2451
2473
  r(null);
@@ -2477,18 +2499,18 @@ async function xi(t, e, n = {}) {
2477
2499
  const a = r.toString();
2478
2500
  return fetch(`${t.origin}${e}${a ? `${e.includes("?") ? "&" : "?"}${a}` : ""}`, { method: n.method ?? "GET", headers: s, body: n.body === void 0 ? void 0 : JSON.stringify(n.body) });
2479
2501
  }
2480
- const Lr = /* @__PURE__ */ new Map();
2502
+ const kr = /* @__PURE__ */ new Map();
2481
2503
  function Ma() {
2482
- const t = Zt(), [e, n] = z(Lr.get(t.origin) ?? null);
2504
+ const t = Gt(), [e, n] = j(kr.get(t.origin) ?? null);
2483
2505
  return O(() => {
2484
- Lr.has(t.origin) || t.client.languages.list().then((r) => {
2485
- Lr.set(t.origin, r), n(r);
2506
+ kr.has(t.origin) || t.client.languages.list().then((r) => {
2507
+ kr.set(t.origin, r), n(r);
2486
2508
  }).catch(() => {
2487
2509
  });
2488
2510
  }, [t]), e;
2489
2511
  }
2490
2512
  function fa(t, e) {
2491
- const [n, r] = z(null), [s, a] = z(null), [o, l] = z(0);
2513
+ const [n, r] = j(null), [s, a] = j(null), [o, l] = j(0);
2492
2514
  return O(() => {
2493
2515
  let c = !0;
2494
2516
  return t().then((u) => c && r(u)).catch((u) => c && a(Ct(u))), () => {
@@ -2496,27 +2518,27 @@ function fa(t, e) {
2496
2518
  };
2497
2519
  }, [...e, o]), { data: n, error: s, reload: () => l((c) => c + 1) };
2498
2520
  }
2499
- const oc = (t) => new Promise((e) => setTimeout(e, t)), lc = 2500, cc = 72;
2500
- function uc(t, e) {
2501
- const n = Zt(), r = k(n);
2521
+ const cc = (t) => new Promise((e) => setTimeout(e, t)), uc = 2500, dc = 72;
2522
+ function hc(t, e) {
2523
+ const n = Gt(), r = w(n);
2502
2524
  r.current = n;
2503
- const [s, a] = z(Xt), o = k(Xt()), l = k(null), c = k(e.lang ?? null), [u, d] = z(!1), [M, f] = z(null), [g, h] = z(!1), y = Je(() => {
2525
+ const [s, a] = j(en), o = w(en()), l = w(null), c = w(e.lang ?? null), [u, d] = j(!1), [M, f] = j(null), [g, h] = j(!1), y = Je(() => {
2504
2526
  const A = o.current;
2505
2527
  a({ ...A });
2506
- }, []), T = k(e);
2528
+ }, []), T = w(e);
2507
2529
  T.current = e, O(() => {
2508
2530
  if (!t) return;
2509
- let A = !0, w = 0;
2510
- o.current = Xt(), a(Xt()), h(!1);
2531
+ let A = !0, L = 0;
2532
+ o.current = en(), a(en()), h(!1);
2511
2533
  const _ = n.client;
2512
2534
  let x = o.current.state;
2513
2535
  const te = () => {
2514
- var j, ie;
2536
+ var z, ie;
2515
2537
  const K = o.current.state;
2516
- K !== x && (x = K, (ie = (j = T.current).onState) == null || ie.call(j, K));
2538
+ K !== x && (x = K, (ie = (z = T.current).onState) == null || ie.call(z, K));
2517
2539
  };
2518
2540
  return (async () => {
2519
- var K, j, ie, ne;
2541
+ var K, z, ie, ne;
2520
2542
  for (; A; ) {
2521
2543
  let Z = null;
2522
2544
  try {
@@ -2525,15 +2547,15 @@ function uc(t, e) {
2525
2547
  Z.close();
2526
2548
  return;
2527
2549
  }
2528
- w = 0, l.current = Z, c.current !== me && Z.setLanguage(c.current), d(!0), f(null), o.current = wr(Z.snapshot, o.current), y(), te();
2550
+ L = 0, l.current = Z, c.current !== me && Z.setLanguage(c.current), d(!0), f(null), o.current = wr(Z.snapshot, o.current), y(), te();
2529
2551
  for await (const le of Z) {
2530
2552
  if (!A) break;
2531
2553
  if (le.type === "snapshot")
2532
- o.current = wr(le.snapshot, le.reason === "gap" ? o.current : Xt()), y(), te();
2554
+ o.current = wr(le.snapshot, le.reason === "gap" ? o.current : en()), y(), te();
2533
2555
  else if (le.type === "frame") {
2534
- Rl(o.current, le.frame);
2556
+ Ql(o.current, le.frame);
2535
2557
  const Te = le.frame;
2536
- Te.type === "recording.state" && (x = o.current.state, (j = (K = T.current).onState) == null || j.call(K, Te.state, Te.reason)), (ne = (ie = T.current).onFrame) == null || ne.call(ie, Te), y();
2558
+ Te.type === "recording.state" && (x = o.current.state, (z = (K = T.current).onState) == null || z.call(K, Te.state, Te.reason)), (ne = (ie = T.current).onFrame) == null || ne.call(ie, Te), y();
2537
2559
  } else le.type === "closed" && d(!1);
2538
2560
  }
2539
2561
  } catch (me) {
@@ -2566,35 +2588,35 @@ function uc(t, e) {
2566
2588
  }
2567
2589
  const J = o.current.state;
2568
2590
  if (!A || J === "ended" || J === "finalized" || J === "processing") return;
2569
- w += 1, await oc(Math.min(15e3, 1e3 * 2 ** Math.min(w, 4)));
2591
+ L += 1, await cc(Math.min(15e3, 1e3 * 2 ** Math.min(L, 4)));
2570
2592
  }
2571
2593
  })(), () => {
2572
2594
  var K;
2573
2595
  A = !1, (K = l.current) == null || K.close(), l.current = null, d(!1);
2574
2596
  };
2575
2597
  }, [t, n, e.voice]);
2576
- const [N, p] = z(!1), [b, C] = z(null), D = k(0), [V, Y] = z(null), ee = Je((A) => {
2598
+ const [N, p] = j(!1), [b, C] = j(null), D = w(0), [V, Y] = j(null), ee = Je((A) => {
2577
2599
  var te;
2578
2600
  if (c.current = A, (te = l.current) == null || te.setLanguage(A), !t) return;
2579
- const w = r.current.client, _ = ++D.current;
2601
+ const L = r.current.client, _ = ++D.current;
2580
2602
  p(!0), C(null);
2581
- const x = (K) => w.recordings.transcript(t, { lang: A ?? void 0, ...r.current.readAs, asListener: !r.current.owner }).then((j) => {
2582
- _ === D.current && (o.current = wr(j, o.current), Y(A), y(), j.translationPending && K > 0 && window.setTimeout(() => {
2603
+ const x = (K) => L.recordings.transcript(t, { lang: A ?? void 0, ...r.current.readAs, asListener: !r.current.owner }).then((z) => {
2604
+ _ === D.current && (o.current = wr(z, o.current), Y(A), y(), z.translationPending && K > 0 && window.setTimeout(() => {
2583
2605
  _ === D.current && x(K - 1).catch(() => {
2584
2606
  });
2585
- }, lc));
2607
+ }, uc));
2586
2608
  });
2587
- x(cc).catch(() => {
2609
+ x(dc).catch(() => {
2588
2610
  _ === D.current && A && C(A);
2589
2611
  }).finally(() => {
2590
2612
  _ === D.current && p(!1);
2591
2613
  });
2592
- }, [y, t]), I = Je((A, w) => {
2614
+ }, [y, t]), I = Je((A, L) => {
2593
2615
  const _ = o.current;
2594
2616
  let x = !1;
2595
- for (const [te, K] of Object.entries(w)) {
2596
- const j = _.sentences.get(Number(te));
2597
- j && (j.translations = { ...j.translations, [A]: K }, x = !0);
2617
+ for (const [te, K] of Object.entries(L)) {
2618
+ const z = _.sentences.get(Number(te));
2619
+ z && (z.translations = { ...z.translations, [A]: K }, x = !0);
2598
2620
  }
2599
2621
  x && y();
2600
2622
  }, [y]), F = Je(() => f(null), []);
@@ -2632,14 +2654,14 @@ function jr(t) {
2632
2654
  return "queued";
2633
2655
  }
2634
2656
  }
2635
- function dc(t) {
2657
+ function Mc(t) {
2636
2658
  return t ? t.progress ? { state: t.state, processedS: t.progress.processedS, totalS: t.progress.totalS ?? null, segmentsDone: t.progress.segmentsDone, segmentsTotal: t.progress.segmentsTotal ?? null, pct: t.progress.pct, error: t.error ?? null } : t.state ? { state: t.state, processedS: 0, totalS: null, segmentsDone: 0, segmentsTotal: null, pct: 0, error: t.error ?? null } : null : null;
2637
2659
  }
2638
- const hc = (t, e) => {
2660
+ const fc = (t, e) => {
2639
2661
  const n = (t == null ? void 0 : t.segmentsDone) ?? e, r = Math.max(n, (t == null ? void 0 : t.segmentsTotal) ?? n);
2640
2662
  return `${n} / ${r} SEGMENTS`;
2641
2663
  };
2642
- function Mc(t, e) {
2664
+ function gc(t, e) {
2643
2665
  var s;
2644
2666
  const n = ((s = t == null ? void 0 : t.source) == null ? void 0 : s.durationS) ?? (e == null ? void 0 : e.totalS) ?? null, r = t == null ? void 0 : t.crop;
2645
2667
  if (r && (r.startS != null || r.endS != null)) {
@@ -2658,19 +2680,19 @@ function Gr(t) {
2658
2680
  const e = document.createElement("a");
2659
2681
  e.href = t, e.style.display = "none", document.body.appendChild(e), e.click(), e.remove();
2660
2682
  }
2661
- async function fc(t) {
2683
+ async function mc(t) {
2662
2684
  const e = await fetch(t, { redirect: "manual" });
2663
2685
  if (e.type !== "opaqueredirect" && !e.ok) throw await ma(e);
2664
2686
  Gr(t);
2665
2687
  }
2666
- async function gc(t, e, n, r = {}) {
2688
+ async function pc(t, e, n, r = {}) {
2667
2689
  var f, g;
2668
2690
  const s = await t.client.recordings.export(e, n, { lang: r.lang ?? void 0, ...t.readAs });
2669
2691
  if (!s.ok) throw await ma(s);
2670
2692
  const a = await s.blob(), o = s.headers.get("content-disposition") ?? "", l = (f = /filename\*=UTF-8''([^;]+)/i.exec(o)) == null ? void 0 : f[1], c = (g = /filename="([^"]+)"/i.exec(o)) == null ? void 0 : g[1], u = l ? decodeURIComponent(l) : c ?? `transcript.${n}`, d = URL.createObjectURL(a), M = document.createElement("a");
2671
2693
  M.href = d, M.download = u, M.style.display = "none", document.body.appendChild(M), M.click(), M.remove(), window.setTimeout(() => URL.revokeObjectURL(d), 6e4);
2672
2694
  }
2673
- async function mc(t, e) {
2695
+ async function yc(t, e) {
2674
2696
  const { recordingId: n, lang: r, voiceKey: s, cred: a } = e, o = async () => (await t.client.recordings.voice(n, r, t.readAs)).filter((M) => M.lang === r), l = (d) => Xi(d, s);
2675
2697
  let c = l(await o());
2676
2698
  (!c || c.state === "clips" || c.state === "failed") && await e.request();
@@ -2685,20 +2707,20 @@ async function mc(t, e) {
2685
2707
  const pa = (t) => {
2686
2708
  var e;
2687
2709
  return ((e = t == null ? void 0 : t.match(/(?:youtu\.be\/|[?&]v=|\/shorts\/|\/embed\/|\/live\/)([\w-]{11})/)) == null ? void 0 : e[1]) ?? null;
2688
- }, pc = (t) => `https://www.youtube-nocookie.com/embed/${t}?autoplay=1&mute=1&controls=0&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`, Si = 0.3, yc = 1.5;
2710
+ }, Nc = (t) => `https://www.youtube-nocookie.com/embed/${t}?autoplay=1&mute=1&controls=0&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`, Si = 0.3, Tc = 1.5;
2689
2711
  function ya(t, e, n) {
2690
2712
  var s;
2691
2713
  const r = (s = t.words[t.words.length - 1]) == null ? void 0 : s.end;
2692
2714
  return r != null && r > t.start ? r : t.end != null && t.end > t.start ? t.end : (e == null ? void 0 : e.start) ?? n;
2693
2715
  }
2694
- function Nc(t, e, n) {
2716
+ function vc(t, e, n) {
2695
2717
  var c, u;
2696
2718
  const r = t[e];
2697
2719
  if (!r) return !1;
2698
- const s = (((c = r.words[0]) == null ? void 0 : c.start) ?? r.start) - Si, a = t[e + 1], o = ya(r, a, r.start + 4) + yc, l = a ? Math.min(o, (((u = a.words[0]) == null ? void 0 : u.start) ?? a.start) - Si) : o;
2720
+ const s = (((c = r.words[0]) == null ? void 0 : c.start) ?? r.start) - Si, a = t[e + 1], o = ya(r, a, r.start + 4) + Tc, l = a ? Math.min(o, (((u = a.words[0]) == null ? void 0 : u.start) ?? a.start) - Si) : o;
2699
2721
  return n >= s && n < Math.max(l, s + 0.5);
2700
2722
  }
2701
- function Tc(t, e, n) {
2723
+ function wc(t, e, n) {
2702
2724
  const r = Math.max(0, n - e), s = t.map((l) => Math.max(1, [...l.replace(/[^\p{L}\p{N}]/gu, "")].length)), a = s.reduce((l, c) => l + c, 0) || 1;
2703
2725
  let o = e;
2704
2726
  return t.map((l, c) => {
@@ -2713,8 +2735,8 @@ function zr(t) {
2713
2735
  bottom: Math.min(parseFloat(e.paddingBottom) || 0, n)
2714
2736
  };
2715
2737
  }
2716
- function vc(t, e, n = 0) {
2717
- const r = k(() => {
2738
+ function Lc(t, e, n = 0) {
2739
+ const r = w(() => {
2718
2740
  });
2719
2741
  O(() => {
2720
2742
  r.current();
@@ -2776,13 +2798,13 @@ function vc(t, e, n = 0) {
2776
2798
  };
2777
2799
  }, []);
2778
2800
  }
2779
- function wc({ thumbRef: t }) {
2801
+ function kc({ thumbRef: t }) {
2780
2802
  return /* @__PURE__ */ i("div", { className: "feedbar", "aria-hidden": "true", children: /* @__PURE__ */ i("div", { ref: t, className: "feedbar__thumb" }) });
2781
2803
  }
2782
- function kc({ error: t, onClose: e }) {
2783
- const n = k(e);
2804
+ function jc({ error: t, onClose: e }) {
2805
+ const n = w(e);
2784
2806
  n.current = e;
2785
- const [r, s] = z(!1), [a, o] = z(!1), l = k();
2807
+ const [r, s] = j(!1), [a, o] = j(!1), l = w();
2786
2808
  if (O(() => {
2787
2809
  o(!1), s(!1), window.clearTimeout(l.current);
2788
2810
  }, [t]), O(() => () => window.clearTimeout(l.current), []), O(() => {
@@ -2815,7 +2837,7 @@ Request id: ${t.requestId}` : t.message;
2815
2837
  function Na({ color: t }) {
2816
2838
  return /* @__PURE__ */ i("span", { title: "Cloned voice", style: { flex: "none", display: "inline-flex" }, children: /* @__PURE__ */ i(oe, { d: X.voiceClone, size: 13, sw: 1.7, stroke: t }) });
2817
2839
  }
2818
- function wd({ chip: t, note: e, scrub: n, mute: r, voice: s, prev: a, play: o, next: l }) {
2840
+ function kd({ chip: t, note: e, scrub: n, mute: r, voice: s, prev: a, play: o, next: l }) {
2819
2841
  return /* @__PURE__ */ m("div", { className: "vs-tt", children: [
2820
2842
  /* @__PURE__ */ m("div", { className: "vs-tt__r1", children: [
2821
2843
  /* @__PURE__ */ i("div", { className: "vs-tt__chip", children: t }),
@@ -2832,8 +2854,8 @@ function wd({ chip: t, note: e, scrub: n, mute: r, voice: s, prev: a, play: o, n
2832
2854
  ] })
2833
2855
  ] });
2834
2856
  }
2835
- function Lc({ index: t, total: e, atLabel: n, durLabel: r, stepLabel: s, onSeek: a, onSeekFrac: o, onScrubStart: l, onScrubEnd: c, frac: u, glideMs: d = 260 }) {
2836
- const M = k(null), f = k(!1), [g, h] = z(null), y = Math.max(1, e), T = g ?? u, N = T != null ? Math.min(100, Math.max(0, T * 100)) : t / Math.max(1, y - 1) * 100, p = u != null && d > 0 && g == null ? `width ${d}ms linear, left ${d}ms linear` : "none", b = (D) => {
2857
+ function zc({ index: t, total: e, atLabel: n, durLabel: r, stepLabel: s, onSeek: a, onSeekFrac: o, onScrubStart: l, onScrubEnd: c, frac: u, glideMs: d = 260 }) {
2858
+ const M = w(null), f = w(!1), [g, h] = j(null), y = Math.max(1, e), T = g ?? u, N = T != null ? Math.min(100, Math.max(0, T * 100)) : t / Math.max(1, y - 1) * 100, p = u != null && d > 0 && g == null ? `width ${d}ms linear, left ${d}ms linear` : "none", b = (D) => {
2837
2859
  var I;
2838
2860
  const V = (I = M.current) == null ? void 0 : I.getBoundingClientRect();
2839
2861
  if (!V) return;
@@ -2876,7 +2898,7 @@ function Lc({ index: t, total: e, atLabel: n, durLabel: r, stepLabel: s, onSeek:
2876
2898
  ] })
2877
2899
  ] });
2878
2900
  }
2879
- function jc(t, e, n) {
2901
+ function Ic(t, e, n) {
2880
2902
  const r = new Set(t.seqs ?? t.words.map((l) => l.seq)), s = (e ?? []).filter((l) => !l.revertedAt && l.seq != null && r.has(l.seq) && (l.kind === "word" || l.kind === "line")), a = s.some((l) => l.kind === "line"), o = (l) => !!(n != null && n.has(`${l.seq}:${l.idx}`));
2881
2903
  return {
2882
2904
  script: a ? 0 : t.words.filter((l) => l.script && !o(l)).length,
@@ -2884,7 +2906,7 @@ function jc(t, e, n) {
2884
2906
  manualCount: a ? 0 : s.filter((l) => l.kind === "word").length
2885
2907
  };
2886
2908
  }
2887
- function zc({ f: t, desk: e, onOpen: n }) {
2909
+ function bc({ f: t, desk: e, onOpen: n }) {
2888
2910
  const r = (s, a, o) => /* @__PURE__ */ m("span", { role: "button", title: "Open this line in Fix", className: "badge badge--fix", style: { marginLeft: o ? "auto" : 0 }, onClick: (l) => {
2889
2911
  l.stopPropagation(), n == null || n();
2890
2912
  }, children: [
@@ -2897,8 +2919,8 @@ function zc({ f: t, desk: e, onOpen: n }) {
2897
2919
  t.manual && r(e ? "MANUAL FIX" : "MANUAL", t.manualCount, t.script === 0)
2898
2920
  ] });
2899
2921
  }
2900
- function Ic({ onOpen: t, alone: e }) {
2901
- const [n, r] = z(!1);
2922
+ function Oc({ onOpen: t, alone: e }) {
2923
+ const [n, r] = j(!1);
2902
2924
  return /* @__PURE__ */ m("span", { role: "button", title: "Fix this line", className: `badge badge--pen${n ? " is-over" : ""}`, style: { marginLeft: e ? "auto" : 0 }, onMouseEnter: () => r(!0), onMouseLeave: () => r(!1), onClick: (s) => {
2903
2925
  s.stopPropagation(), t();
2904
2926
  }, children: [
@@ -2906,8 +2928,8 @@ function Ic({ onOpen: t, alone: e }) {
2906
2928
  n && "FIX"
2907
2929
  ] });
2908
2930
  }
2909
- function bc(t, e, n, r) {
2910
- const s = Zt(), [a, o] = z([]), [l, c] = z(0), u = k(/* @__PURE__ */ new Set()), d = k(!1), M = ze(() => new Map(n.filter((g) => g.sentenceId != null).map((g) => [g.sentenceId, g])), [n]);
2931
+ function xc(t, e, n, r) {
2932
+ const s = Gt(), [a, o] = j([]), [l, c] = j(0), u = w(/* @__PURE__ */ new Set()), d = w(!1), M = ze(() => new Map(n.filter((g) => g.sentenceId != null).map((g) => [g.sentenceId, g])), [n]);
2911
2933
  O(() => {
2912
2934
  u.current = /* @__PURE__ */ new Set();
2913
2935
  }, [t, e]);
@@ -2933,13 +2955,13 @@ function bc(t, e, n, r) {
2933
2955
  }
2934
2956
  }, [t, e, a, l, M, r]), f;
2935
2957
  }
2936
- function Oc(t) {
2958
+ function Cc(t) {
2937
2959
  return t.live || t.auto ? "From this session" : t.cloned ? t.library === !1 ? "This transcription only" : "Saved in Voices" : "";
2938
2960
  }
2939
2961
  function un(t, e) {
2940
2962
  return t.cloned ? { rank: 0, head: e.vcSheet } : t.gender === "male" ? { rank: 1, head: e.vcMale.toUpperCase() } : t.gender === "female" ? { rank: 2, head: e.vcFemale.toUpperCase() } : { rank: 3, head: e.vcSynth };
2941
2963
  }
2942
- function xc(t, e) {
2964
+ function Sc(t, e) {
2943
2965
  const n = t.slice().sort((s, a) => un(s, e).rank - un(a, e).rank || s.name.localeCompare(a.name, void 0, { numeric: !0 })), r = {};
2944
2966
  for (const s of n) {
2945
2967
  const a = un(s, e).head;
@@ -2950,7 +2972,7 @@ function xc(t, e) {
2950
2972
  return { v: s, headOn: l, head: o, headCount: r[o], rule: l ? "0" : "1px solid var(--hair)" };
2951
2973
  });
2952
2974
  }
2953
- function Cc(t, e, n) {
2975
+ function Dc(t, e, n) {
2954
2976
  const r = /* @__PURE__ */ new Set();
2955
2977
  let s = !1;
2956
2978
  for (const o of t)
@@ -3000,7 +3022,7 @@ function Ei(t, e, n = !0) {
3000
3022
  }
3001
3023
  return a;
3002
3024
  }
3003
- function Sc({ roster: t, selected: e, onSelect: n, noClone: r, building: s, short: a, warn: o, sexOf: l, t: c }) {
3025
+ function Ac({ roster: t, selected: e, onSelect: n, noClone: r, building: s, short: a, warn: o, sexOf: l, t: c }) {
3004
3026
  const u = t.find((d) => d.key === e) ?? t[0] ?? null;
3005
3027
  return u ? /* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: 6, padding: "0 2px 9px", margin: "0 -2px" }, children: t.map((d) => {
3006
3028
  const M = d.key === u.key, f = d.key >= 0 ? (o == null ? void 0 : o(d)) ?? null : null, g = d.key >= 0 && !f && !!(s != null && s(d)), h = d.key >= 0 && !f && !g && r(d), y = d.key >= 0 && !f && !g && !h && !d.hasVoice && !!(a != null && a(d));
@@ -3032,8 +3054,8 @@ function Sc({ roster: t, selected: e, onSelect: n, noClone: r, building: s, shor
3032
3054
  );
3033
3055
  }) }) : null;
3034
3056
  }
3035
- function Dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s = null, dlId: a = null, onPick: o, onAdd: l, onUse: c, usedBy: u, foldKey: d, foldFor: M = null, problem: f, noClone: g = null, t: h }) {
3036
- const y = ze(() => xc(e, h), [e, h]), [T, N] = z({});
3057
+ function Ec({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s = null, dlId: a = null, onPick: o, onAdd: l, onUse: c, usedBy: u, foldKey: d, foldFor: M = null, problem: f, noClone: g = null, t: h }) {
3058
+ const y = ze(() => Sc(e, h), [e, h]), [T, N] = j({});
3037
3059
  O(() => {
3038
3060
  N({});
3039
3061
  }, [d, M]);
@@ -3062,7 +3084,7 @@ function Dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s =
3062
3084
  ] })
3063
3085
  ] }),
3064
3086
  y.map(({ v: D, headOn: V, head: Y, headCount: ee, rule: I }, F) => {
3065
- const A = Oc(D), w = a === D.id, _ = b(Y), x = (u == null ? void 0 : u(D)) ?? null;
3087
+ const A = Cc(D), L = a === D.id, _ = b(Y), x = (u == null ? void 0 : u(D)) ?? null;
3066
3088
  return /* @__PURE__ */ m(Mo, { children: [
3067
3089
  V && Y === h.vcSheet && /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", padding: "14px 2px 6px", borderTop: F === 0 && !g ? "0" : "1px solid var(--hair)", userSelect: "none" }, children: /* @__PURE__ */ i("span", { style: { font: "600 9px var(--vs-font-mono)", letterSpacing: ".13em", color: "var(--ink-62)" }, children: Y }) }),
3068
3090
  V && Y !== h.vcSheet && /* @__PURE__ */ m(
@@ -3092,8 +3114,8 @@ function Dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s =
3092
3114
  onClick: () => o(D),
3093
3115
  style: { width: "100%", textAlign: "left", font: "inherit", border: 0, borderTop: _ ? I : "0", display: "flex", alignItems: "center", gap: 11, padding: _ ? "11px 8px" : "0px 8px", margin: "0 -6px", borderRadius: 10, background: r === D.id ? "var(--brand-tint)" : "transparent", cursor: "pointer", opacity: _ ? 1 : 0, maxHeight: _ ? 120 : 0, overflow: "hidden", transition: "max-height 280ms cubic-bezier(.32,.72,0,1),padding 280ms cubic-bezier(.32,.72,0,1),opacity 200ms ease" },
3094
3116
  children: [
3095
- /* @__PURE__ */ i("span", { title: w ? "Downloading this voice" : void 0, style: { flex: "none", width: 32, height: 32, borderRadius: "50%", background: w ? "transparent" : D.cloned ? "var(--brand-soft)" : "var(--fill-06)", display: "flex", alignItems: "center", justifyContent: "center" }, children: w ? /* @__PURE__ */ i("span", { style: { width: 16, height: 16, borderRadius: "50%", border: "2px solid var(--fill-10)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite" } }) : s === D.id ? /* @__PURE__ */ m("span", { className: "vcplay", children: [
3096
- /* @__PURE__ */ i("span", { className: "vcplay__eq", children: /* @__PURE__ */ i(Ac, { height: 13, width: 2.5 }) }),
3117
+ /* @__PURE__ */ i("span", { title: L ? "Downloading this voice" : void 0, style: { flex: "none", width: 32, height: 32, borderRadius: "50%", background: L ? "transparent" : D.cloned ? "var(--brand-soft)" : "var(--fill-06)", display: "flex", alignItems: "center", justifyContent: "center" }, children: L ? /* @__PURE__ */ i("span", { style: { width: 16, height: 16, borderRadius: "50%", border: "2px solid var(--fill-10)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite" } }) : s === D.id ? /* @__PURE__ */ m("span", { className: "vcplay", children: [
3118
+ /* @__PURE__ */ i("span", { className: "vcplay__eq", children: /* @__PURE__ */ i(_c, { height: 13, width: 2.5 }) }),
3097
3119
  /* @__PURE__ */ i("span", { className: "vcplay__stop", children: /* @__PURE__ */ i(wo, { size: 11 }) })
3098
3120
  ] }) : /* @__PURE__ */ i(oe, { d: D.cloned ? X.voiceClone : D.gender === "female" ? X.venus : D.gender === "male" ? X.mars : X.mic, size: 15, sw: 1.6, style: { color: D.cloned ? "var(--brand)" : "var(--ink-55)" } }) }),
3099
3121
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
@@ -3122,7 +3144,7 @@ function Dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s =
3122
3144
  C && /* @__PURE__ */ i("div", { style: { position: "sticky", bottom: 0, zIndex: 3, marginTop: 6, padding: "11px 0 3px", animation: "vs-slide-up .18s ease-out" }, children: /* @__PURE__ */ i("button", { type: "button", className: "vcuse", title: "Apply this voice", onClick: () => r && c(r), children: /* @__PURE__ */ i("span", { children: h.vcUse }) }) })
3123
3145
  ] });
3124
3146
  }
3125
- function Ac({ height: t, width: e = 2 }) {
3147
+ function _c({ height: t, width: e = 2 }) {
3126
3148
  const n = { width: e, height: "100%", borderRadius: 1, background: "var(--brand)" };
3127
3149
  return /* @__PURE__ */ m("span", { style: { flex: "none", display: "flex", alignItems: "flex-end", gap: 2, height: t }, children: [
3128
3150
  /* @__PURE__ */ i("span", { style: { ...n, animation: "vs-eq .62s ease-in-out infinite" } }),
@@ -3130,16 +3152,16 @@ function Ac({ height: t, width: e = 2 }) {
3130
3152
  /* @__PURE__ */ i("span", { style: { ...n, animation: "vs-eq .62s ease-in-out .38s infinite" } })
3131
3153
  ] });
3132
3154
  }
3133
- const Ec = /* @__PURE__ */ m("span", { style: { display: "inline-flex", alignItems: "center", gap: 3 }, children: [
3155
+ const Yc = /* @__PURE__ */ m("span", { style: { display: "inline-flex", alignItems: "center", gap: 3 }, children: [
3134
3156
  /* @__PURE__ */ i(oe, { d: X.langAuto, size: 19, sw: 1.7, style: { color: "var(--ink-62)", display: "block" } }),
3135
3157
  /* @__PURE__ */ i(oe, { d: X.globe, size: 18, sw: 1.6, style: { color: "var(--ink-62)", display: "block" } })
3136
3158
  ] });
3137
3159
  function Ur(t, e) {
3138
3160
  const n = e ? t == null ? void 0 : t.languages.find((r) => r.code === e) : null;
3139
- return { flag: e ? (n == null ? void 0 : n.flag) ?? "🌐" : Ec, code: e ? e.toUpperCase() : "", label: (n == null ? void 0 : n.native) ?? "As spoken", name: (n == null ? void 0 : n.name) ?? "Original" };
3161
+ return { flag: e ? (n == null ? void 0 : n.flag) ?? "🌐" : Yc, code: e ? e.toUpperCase() : "", label: (n == null ? void 0 : n.native) ?? "As spoken", name: (n == null ? void 0 : n.name) ?? "Original" };
3140
3162
  }
3141
- function _c(t, e, n = 0, r) {
3142
- const s = (r == null ? void 0 : r.id) ?? null, a = (r == null ? void 0 : r.token) ?? null, o = (r == null ? void 0 : r.shareCode) ?? null, l = Zt(), { data: c } = fa(async () => {
3163
+ function Uc(t, e, n = 0, r) {
3164
+ const s = (r == null ? void 0 : r.id) ?? null, a = (r == null ? void 0 : r.token) ?? null, o = (r == null ? void 0 : r.shareCode) ?? null, l = Gt(), { data: c } = fa(async () => {
3143
3165
  if (!t || !e) return null;
3144
3166
  try {
3145
3167
  return await l.client.voices.available(t, { recording: s ?? void 0, shareCode: s ? o ?? void 0 : void 0, asOwner: l.owner });
@@ -3149,20 +3171,20 @@ function _c(t, e, n = 0, r) {
3149
3171
  }, [t, e, n, s, a, o]);
3150
3172
  return c;
3151
3173
  }
3152
- function Yc(t) {
3174
+ function $c(t) {
3153
3175
  return (/* @__PURE__ */ new Set([...Object.keys(t.speakers), ...Object.keys(t.speakerIds)])).size;
3154
3176
  }
3155
- function Uc({ recordingId: t, lang: e, ended: n, cred: r, pickedVoice: s, sentenceIds: a }) {
3156
- const o = Zt(), { data: l, reload: c } = fa(async () => {
3177
+ function Rc({ recordingId: t, lang: e, ended: n, cred: r, pickedVoice: s, sentenceIds: a }) {
3178
+ const o = Gt(), { data: l, reload: c } = fa(async () => {
3157
3179
  if (!t || !e) return null;
3158
3180
  const K = await o.client.recordings.voice(t, e, o.readAs).catch(() => []);
3159
- return { recordingId: t, lang: e, rows: K.filter((j) => j.lang === e) };
3181
+ return { recordingId: t, lang: e, rows: K.filter((z) => z.lang === e) };
3160
3182
  }, [t, e, o, n]), u = ze(
3161
3183
  () => l && l.lang === e && l.recordingId === t ? l.rows : [],
3162
3184
  [l, e, t]
3163
- ), d = ze(() => Xi(u, s), [u, s]), M = d ? d.voiceKey || null : s, [f, g] = z(null), [h, y] = z(null), T = k(/* @__PURE__ */ new Set()), N = `${t ?? ""}|${e ?? ""}|${M ?? ""}`, p = Je(async (K, j) => {
3185
+ ), d = ze(() => Xi(u, s), [u, s]), M = d ? d.voiceKey || null : s, [f, g] = j(null), [h, y] = j(null), T = w(/* @__PURE__ */ new Set()), N = `${t ?? ""}|${e ?? ""}|${M ?? ""}`, p = Je(async (K, z) => {
3164
3186
  if (!t || !e || !n) return;
3165
- const ie = j != null && j.size ? null : Ai(K), ne = j != null && j.size ? j : ie, Z = ne && ne.size ? Object.fromEntries([...ne].map(([Te, je]) => [String(Te), je])) : null, J = `${t}|${e}|${Z ? JSON.stringify(Z) : K ?? ""}`;
3187
+ const ie = z != null && z.size ? null : Ai(K), ne = z != null && z.size ? z : ie, Z = ne && ne.size ? Object.fromEntries([...ne].map(([Te, je]) => [String(Te), je])) : null, J = `${t}|${e}|${Z ? JSON.stringify(Z) : K ?? ""}`;
3166
3188
  if (T.current.has(J)) return;
3167
3189
  T.current.add(J), g(J), y(null);
3168
3190
  const me = { langs: [e] };
@@ -3177,40 +3199,40 @@ function Uc({ recordingId: t, lang: e, ended: n, cred: r, pickedVoice: s, senten
3177
3199
  c();
3178
3200
  }, [t, e, n, o, c]), b = Je(() => {
3179
3201
  const K = `${t ?? ""}|${e ?? ""}|`;
3180
- for (const j of [...T.current]) j.startsWith(K) && T.current.delete(j);
3202
+ for (const z of [...T.current]) z.startsWith(K) && T.current.delete(z);
3181
3203
  y(null);
3182
- }, [t, e]), C = !!d && (d.state === "queued" || d.state === "running") || f === N, D = (d == null ? void 0 : d.state) === "failed" ? d.error || "the render failed" : h, V = (a == null ? void 0 : a.join(",")) ?? "", [Y, ee] = z(null), I = ze(() => new Set((d == null ? void 0 : d.clips) ?? []), [d]), F = ze(() => n && V ? V.split(",").map(Number).filter((K) => !I.has(K)) : [], [n, V, I]), A = k(null);
3204
+ }, [t, e]), C = !!d && (d.state === "queued" || d.state === "running") || f === N, D = (d == null ? void 0 : d.state) === "failed" ? d.error || "the render failed" : h, V = (a == null ? void 0 : a.join(",")) ?? "", [Y, ee] = j(null), I = ze(() => new Set((d == null ? void 0 : d.clips) ?? []), [d]), F = ze(() => n && V ? V.split(",").map(Number).filter((K) => !I.has(K)) : [], [n, V, I]), A = w(null);
3183
3205
  O(() => {
3184
3206
  if (!n || !t || !e || !F.length) return;
3185
- const K = Y ?? F[0], j = F.find((me) => me >= K) ?? F[0], ie = `${t}|${e}|${M ?? ""}`, ne = A.current;
3186
- if (ne && ne.key === ie && Math.abs(ne.near - j) < 12 && Date.now() - ne.at < 6e4) return;
3187
- A.current = { key: ie, near: j, at: Date.now() };
3188
- const Z = Ai(M), J = { langs: [e], near: j };
3207
+ const K = Y ?? F[0], z = F.find((me) => me >= K) ?? F[0], ie = `${t}|${e}|${M ?? ""}`, ne = A.current;
3208
+ if (ne && ne.key === ie && Math.abs(ne.near - z) < 12 && Date.now() - ne.at < 6e4) return;
3209
+ A.current = { key: ie, near: z, at: Date.now() };
3210
+ const Z = Ai(M), J = { langs: [e], near: z };
3189
3211
  Z && Z.size ? J.voiceBySpeaker = Object.fromEntries([...Z].map(([me, le]) => [String(me), le])) : M && (J.voice = M), xi(o, `/v1/recordings/${t}/voice`, { method: "POST", body: J }).then((me) => {
3190
3212
  me.ok || (A.current = null);
3191
3213
  }).catch(() => {
3192
3214
  A.current = null;
3193
3215
  });
3194
3216
  }, [n, t, e, M, Y, F, o]);
3195
- const w = F.length > 0, _ = k({ n: -1, at: 0 });
3217
+ const L = F.length > 0, _ = w({ n: -1, at: 0 });
3196
3218
  O(() => {
3197
- if (!w) return;
3219
+ if (!L) return;
3198
3220
  const K = setInterval(() => {
3199
- const j = I.size;
3200
- j !== _.current.n && (_.current = { n: j, at: Date.now() }), !(Date.now() - _.current.at > 10 * 6e4) && c();
3221
+ const z = I.size;
3222
+ z !== _.current.n && (_.current = { n: z, at: Date.now() }), !(Date.now() - _.current.at > 10 * 6e4) && c();
3201
3223
  }, 3e3);
3202
3224
  return () => clearInterval(K);
3203
- }, [w, c, I]);
3225
+ }, [L, c, I]);
3204
3226
  const x = ze(() => {
3205
3227
  if (!t) return [];
3206
- const K = V ? V.split(",").map(Number).filter((ie) => !n || I.has(ie)) : void 0, j = d ?? (K != null && K.length && e ? { lang: e, voiceKey: s ?? "", clips: [], voice: null } : null);
3207
- return Uo(j, t, o.origin, r, K);
3228
+ const K = V ? V.split(",").map(Number).filter((ie) => !n || I.has(ie)) : void 0, z = d ?? (K != null && K.length && e ? { lang: e, voiceKey: s ?? "", clips: [], voice: null } : null);
3229
+ return Uo(z, t, o.origin, r, K);
3208
3230
  }, [d, t, o, r, V, e, s, n, I]), te = ze(() => new Set(F), [F]);
3209
3231
  return { listed: l, rows: u, track: d, renderVoiceId: M, rendering: C, failed: D, clips: x, requestRender: p, forget: b, reload: c, setNear: ee, missing: F.length, coming: te };
3210
3232
  }
3211
- const $c = { share: X.share, delay: X.tabGauge, video: X.video, source: X.tabSources, script: X.tabScript, fix: X.tabFix, ending: X.tabEnding, summary: X.tabSummary, export: X.tabExport, settings: X.tabSettings, sources: X.tabSources, recs: X.mic };
3233
+ const Pc = { share: X.share, delay: X.tabGauge, video: X.video, source: X.tabSources, script: X.tabScript, fix: X.tabFix, ending: X.tabEnding, summary: X.tabSummary, export: X.tabExport, settings: X.tabSettings, sources: X.tabSources, recs: X.mic };
3212
3234
  function Ta({ tabs: t, current: e, onPick: n, gap: r, fold: s = !0, side: a = !s }) {
3213
- const o = s && t.length <= 3, l = t.some((T) => T.key === e), [c, u] = z(null), d = k(null), [M, f] = z(0);
3235
+ const o = s && t.length <= 3, l = t.some((T) => T.key === e), [c, u] = j(null), d = w(null), [M, f] = j(0);
3214
3236
  O(() => {
3215
3237
  d.current && f(d.current.offsetWidth);
3216
3238
  }, [c == null ? void 0 : c.k]);
@@ -3237,7 +3259,7 @@ function Ta({ tabs: t, current: e, onPick: n, gap: r, fold: s = !0, side: a = !s
3237
3259
  }
3238
3260
  return /* @__PURE__ */ m("div", { role: "tablist", className: `tabbar tabbar--icons${s ? "" : " tabbar--desk"}`, "data-desk-tabs": a ? "" : void 0, "data-tab-n": a ? t.length : void 0, style: { marginBottom: r ? 12 : 0 }, onMouseLeave: h, children: [
3239
3261
  t.map((T) => {
3240
- const N = e === T.key, p = o || N, b = o ? "1 1 0" : N ? "1 1 auto" : s && !l ? "1 1 0" : "0 0 auto", C = T.icon ?? $c[T.key], D = () => {
3262
+ const N = e === T.key, p = o || N, b = o ? "1 1 0" : N ? "1 1 auto" : s && !l ? "1 1 0" : "0 0 auto", C = T.icon ?? Pc[T.key], D = () => {
3241
3263
  h(), n(s && N ? "none" : T.key);
3242
3264
  };
3243
3265
  return s ? /* @__PURE__ */ m("button", { type: "button", role: "tab", "aria-selected": N, title: T.label, className: `tabbar__tab${N ? " is-on" : ""}`, style: { flex: b }, onClick: D, children: [
@@ -3251,9 +3273,9 @@ function Ta({ tabs: t, current: e, onPick: n, gap: r, fold: s = !0, side: a = !s
3251
3273
  y
3252
3274
  ] });
3253
3275
  }
3254
- const Rc = "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3", Pc = "m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z";
3255
- function Qc({ audio: t, video: e, formats: n, onExport: r }) {
3256
- const [s, a] = z(null), [o, l] = z(null), c = k(void 0), u = k(!0);
3276
+ const Qc = "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3", Vc = "m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z";
3277
+ function Bc({ audio: t, video: e, formats: n, onExport: r }) {
3278
+ const [s, a] = j(null), [o, l] = j(null), c = w(void 0), u = w(!0);
3257
3279
  O(() => (u.current = !0, () => {
3258
3280
  u.current = !1, window.clearTimeout(c.current);
3259
3281
  }), []);
@@ -3281,11 +3303,11 @@ function Qc({ audio: t, video: e, formats: n, onExport: r }) {
3281
3303
  /* @__PURE__ */ i("span", { style: { fontSize: 13, fontWeight: 500, color: "var(--ink-96)", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: y.name }),
3282
3304
  /* @__PURE__ */ i("span", { style: { font: "500 9.5px var(--vs-font-mono)", color: "var(--ink-40)", letterSpacing: ".04em" }, children: y.meta })
3283
3305
  ] }),
3284
- /* @__PURE__ */ i(oe, { d: s === h ? X.check : Rc, size: 17, sw: 1.6, style: { flex: "none", color: s === h ? "var(--brand)" : "var(--ink-62)" } })
3306
+ /* @__PURE__ */ i(oe, { d: s === h ? X.check : Qc, size: 17, sw: 1.6, style: { flex: "none", color: s === h ? "var(--brand)" : "var(--ink-62)" } })
3285
3307
  ] })
3286
3308
  ] });
3287
3309
  return /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
3288
- t && g("audio", t, Pc, "DOWNLOAD AUDIO"),
3310
+ t && g("audio", t, Vc, "DOWNLOAD AUDIO"),
3289
3311
  e && g("video", e, X.video, "DOWNLOAD VIDEO"),
3290
3312
  n !== !1 && /* @__PURE__ */ m(xe, { children: [
3291
3313
  /* @__PURE__ */ i(Cr, { style: { letterSpacing: ".12em", color: "var(--ink-35)" }, children: "EXPORT AS" }),
@@ -3310,9 +3332,9 @@ function qr(t, e, n) {
3310
3332
  }
3311
3333
  r();
3312
3334
  }
3313
- function Vc(t, e, n) {
3314
- const [r, s] = z(null), a = t.state === "ready", o = `${e ?? ""}|${n ?? ""}|${a ? `${t.title}
3315
- ${t.summary}` : ""}`, l = Zt();
3335
+ function Hc(t, e, n) {
3336
+ const [r, s] = j(null), a = t.state === "ready", o = `${e ?? ""}|${n ?? ""}|${a ? `${t.title}
3337
+ ${t.summary}` : ""}`, l = Gt();
3316
3338
  return O(() => {
3317
3339
  if (!e || !n || !a) return;
3318
3340
  let c = !0;
@@ -3327,13 +3349,13 @@ ${t.summary}` : ""}`, l = Zt();
3327
3349
  };
3328
3350
  }, [o, l]), !n || !a ? t : (r == null ? void 0 : r.key) === o ? r.s : { state: "pending", retry: t.retry };
3329
3351
  }
3330
- function Bc(t) {
3352
+ function Wc(t) {
3331
3353
  return t != null && t.title && (t != null && t.summary) ? { state: "ready", title: t.title, summary: t.summary, retry: () => {
3332
3354
  } } : { state: "unavailable", retry: () => {
3333
3355
  } };
3334
3356
  }
3335
- function Hc({ s: t }) {
3336
- const [e, n] = z(!1), r = k(void 0);
3357
+ function Fc({ s: t }) {
3358
+ const [e, n] = j(!1), r = w(void 0);
3337
3359
  O(() => () => window.clearTimeout(r.current), []);
3338
3360
  const s = t.title ?? "", a = t.summary ?? "", o = () => {
3339
3361
  var c;
@@ -3349,7 +3371,7 @@ ${a}`).catch(() => {
3349
3371
  /* @__PURE__ */ m("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8, minHeight: 24 }, children: [
3350
3372
  /* @__PURE__ */ i(Cr, { style: { letterSpacing: ".12em", color: "var(--ink-35)" }, children: "SUMMARY" }),
3351
3373
  t.state === "ready" && /* @__PURE__ */ m("button", { type: "button", className: "sumcopy", title: "Copy title and summary", style: { color: e ? "var(--brand)" : "var(--ink-70)" }, onClick: o, children: [
3352
- /* @__PURE__ */ i(oe, { d: e ? X.check : Zc, size: 13, sw: 1.6 }),
3374
+ /* @__PURE__ */ i(oe, { d: e ? X.check : qc, size: 13, sw: 1.6 }),
3353
3375
  e ? "Copied" : "Copy"
3354
3376
  ] })
3355
3377
  ] }),
@@ -3362,16 +3384,16 @@ ${a}`).catch(() => {
3362
3384
  ] })
3363
3385
  ] });
3364
3386
  }
3365
- function Wc({ ytId: t, title: e, timeLabel: n, radius: r, style: s, large: a, children: o, picture: l }) {
3387
+ function Zc({ ytId: t, title: e, timeLabel: n, radius: r, style: s, large: a, children: o, picture: l }) {
3366
3388
  return /* @__PURE__ */ m("div", { className: "livevid", style: { ...r != null ? { borderRadius: r } : null, ...s }, children: [
3367
3389
  /* @__PURE__ */ i(oe, { d: "m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z", size: a ? 34 : 30, sw: 1.2 }),
3368
- l ?? /* @__PURE__ */ i("iframe", { src: pc(t), title: e, referrerPolicy: "strict-origin-when-cross-origin", allow: "autoplay; encrypted-media; picture-in-picture" }),
3390
+ l ?? /* @__PURE__ */ i("iframe", { src: Nc(t), title: e, referrerPolicy: "strict-origin-when-cross-origin", allow: "autoplay; encrypted-media; picture-in-picture" }),
3369
3391
  n && /* @__PURE__ */ i("span", { className: "livevid__t", style: a ? { bottom: 10, right: 10 } : void 0, children: n }),
3370
3392
  o
3371
3393
  ] });
3372
3394
  }
3373
- function Fc(t = !0, e) {
3374
- const n = k(null), r = e ?? n;
3395
+ function Gc(t = !0, e) {
3396
+ const n = w(null), r = e ?? n;
3375
3397
  return O(() => {
3376
3398
  const s = r.current;
3377
3399
  if (!s || !t) return;
@@ -3391,8 +3413,8 @@ function Fc(t = !0, e) {
3391
3413
  };
3392
3414
  }, [t]), r;
3393
3415
  }
3394
- const Zc = "M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75";
3395
- function Gc(t, e) {
3416
+ const qc = "M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75";
3417
+ function Kc(t, e) {
3396
3418
  const [n, r] = Ro(t), s = e.tabs.map((p) => p.key), a = e.tabbed !== !1, o = e.pinnable ?? s;
3397
3419
  let l = n;
3398
3420
  [...e.autoPin ?? []].reverse().forEach((p) => {
@@ -3431,8 +3453,8 @@ function Gc(t, e) {
3431
3453
  };
3432
3454
  return { id: t, tabbed: a && M.length > 1, cur: f, seq: d, pinnable: o, tabKeys: M, stripTabs: e.tabs.filter((p) => M.includes(p.key)), panel: N, pin: h, unpin: y };
3433
3455
  }
3434
- function qc({ col: t, order: e, render: n, grip: r, onPick: s, wrapClass: a }) {
3435
- return Kc(t), /* @__PURE__ */ m(xe, { children: [
3456
+ function Jc({ col: t, order: e, render: n, grip: r, onPick: s, wrapClass: a }) {
3457
+ return Xc(t), /* @__PURE__ */ m(xe, { children: [
3436
3458
  e.map((o) => {
3437
3459
  const l = t.panel(o);
3438
3460
  if (!l.show) return null;
@@ -3448,8 +3470,8 @@ function qc({ col: t, order: e, render: n, grip: r, onPick: s, wrapClass: a }) {
3448
3470
  }, fold: !1 }) })
3449
3471
  ] });
3450
3472
  }
3451
- function Kc(t) {
3452
- const e = k(t);
3473
+ function Xc(t) {
3474
+ const e = w(t);
3453
3475
  e.current = t;
3454
3476
  const n = t.id;
3455
3477
  O(() => {
@@ -3488,17 +3510,17 @@ function Kc(t) {
3488
3510
  const p = e.current, b = N.key, C = o(N), D = p.seq.includes(b), V = D || p.tabKeys.length > 1, Y = C && N.tabsSnap, ee = !Y || N.py < Y.top + Y.height / 2 ? V ? "pin" : null : "tabs";
3489
3511
  let I = null;
3490
3512
  if (ee === "pin") {
3491
- const A = p.seq.filter((_) => _ !== b).map((_) => N.snap[_]).filter(Boolean), w = N.grid ? A.filter((_) => _.bottom < N.py || _.top <= N.py && _.left + _.width / 2 < N.px).length : A.filter((_) => _.top + _.height / 2 < N.py).length;
3492
- D && p.seq.indexOf(b) === w || (I = { zone: ee, idx: w });
3513
+ const A = p.seq.filter((_) => _ !== b).map((_) => N.snap[_]).filter(Boolean), L = N.grid ? A.filter((_) => _.bottom < N.py || _.top <= N.py && _.left + _.width / 2 < N.px).length : A.filter((_) => _.top + _.height / 2 < N.py).length;
3514
+ D && p.seq.indexOf(b) === L || (I = { zone: ee, idx: L });
3493
3515
  } else ee === "tabs" && D && (I = { zone: ee });
3494
3516
  const F = I ? I.zone + (I.idx ?? "") : "";
3495
3517
  if (F !== N.sig) {
3496
- if (N.sig = F, N.target = I, N.orig.forEach(([A, w]) => {
3497
- A.style.order = w;
3518
+ if (N.sig = F, N.target = I, N.orig.forEach(([A, L]) => {
3519
+ A.style.order = L;
3498
3520
  }), (I == null ? void 0 : I.zone) === "pin") {
3499
- const A = p.seq.filter((w) => w !== b);
3500
- A.splice(I.idx, 0, b), A.forEach((w, _) => {
3501
- const x = N.col.querySelector(`[data-panel-key="${w}"]`);
3521
+ const A = p.seq.filter((L) => L !== b);
3522
+ A.splice(I.idx, 0, b), A.forEach((L, _) => {
3523
+ const x = N.col.querySelector(`[data-panel-key="${L}"]`);
3502
3524
  x && (x.style.order = String(_ + 1));
3503
3525
  });
3504
3526
  } else (I == null ? void 0 : I.zone) === "tabs" && (N.el.style.order = "998");
@@ -3549,9 +3571,9 @@ function Kc(t) {
3549
3571
  };
3550
3572
  }, [n]);
3551
3573
  }
3552
- function Jc({ id: t, className: e, gap: n, hidden: r, plain: s, children: a }) {
3553
- const [o, l] = Qo(t), c = k(null), u = k(null);
3554
- Xc(u), O(() => {
3574
+ function eu({ id: t, className: e, gap: n, hidden: r, plain: s, children: a }) {
3575
+ const [o, l] = Qo(t), c = w(null), u = w(null);
3576
+ tu(u), O(() => {
3555
3577
  document.documentElement.style.setProperty("--colw", `${o}px`);
3556
3578
  }, [o]);
3557
3579
  const d = (f) => {
@@ -3575,7 +3597,7 @@ function Jc({ id: t, className: e, gap: n, hidden: r, plain: s, children: a }) {
3575
3597
  /* @__PURE__ */ i("div", { ref: c, "data-tab-col": t, className: `${e} sidecol`, style: { flex: `0 0 ${o}px`, ...M }, children: s ? a : /* @__PURE__ */ i("div", { ref: u, "data-panel-grid": "", className: "panelgrid", children: a }) })
3576
3598
  ] });
3577
3599
  }
3578
- function Xc(t) {
3600
+ function tu(t) {
3579
3601
  O(() => {
3580
3602
  const e = t.current;
3581
3603
  if (!e) return;
@@ -3603,12 +3625,12 @@ function Xc(t) {
3603
3625
  };
3604
3626
  }, [t]);
3605
3627
  }
3606
- function eu(t) {
3628
+ function nu(t) {
3607
3629
  return /\bwas not captured\b/i.test(t ?? "");
3608
3630
  }
3609
- const tu = 1500, nu = 3e5;
3610
- function ru(t) {
3611
- const e = Zt(), [n, r] = z(null), [s, a] = z(null), [o, l] = z(null), [c, u] = z(null), d = k(null), M = k(null), f = k(null), g = k(0), h = Je(() => {
3631
+ const ru = 1500, su = 3e5;
3632
+ function iu(t) {
3633
+ const e = Gt(), [n, r] = j(null), [s, a] = j(null), [o, l] = j(null), [c, u] = j(null), d = w(null), M = w(null), f = w(null), g = w(0), h = Je(() => {
3612
3634
  f.current && (clearTimeout(f.current), f.current = null), d.current && (d.current.pause(), d.current.removeAttribute("src"), d.current.load(), d.current = null), M.current && (URL.revokeObjectURL(M.current), M.current = null);
3613
3635
  }, []), y = Je(() => {
3614
3636
  g.current += 1, h(), a(null), l(null);
@@ -3639,13 +3661,13 @@ function ru(t) {
3639
3661
  }
3640
3662
  if (g.current !== b) return;
3641
3663
  if (Y.status === 202 || Y.status === 503) {
3642
- if (Date.now() - D > nu) {
3664
+ if (Date.now() - D > su) {
3643
3665
  l(null), u({ message: "This voice is still being fetched. Try it again in a moment." });
3644
3666
  return;
3645
3667
  }
3646
3668
  l(p.id), f.current = setTimeout(() => {
3647
3669
  V();
3648
- }, tu);
3670
+ }, ru);
3649
3671
  return;
3650
3672
  }
3651
3673
  if (!Y.ok) {
@@ -3675,7 +3697,7 @@ const $r = 0.05, va = (t, e) => {
3675
3697
  for (let r = 0; r < t.length; r++) t[r].start <= e + 1e-6 && (n = r);
3676
3698
  return n;
3677
3699
  };
3678
- function su(t, e, n, r) {
3700
+ function au(t, e, n, r) {
3679
3701
  const s = Math.max(0, e), a = r > 0 && s >= r - $r, o = t.length && t[0].start <= s + 1e-6 ? va(t, s) : -1;
3680
3702
  return o < 0 ? { t: s, playing: n && !a, sentenceId: null, offset: 0, ended: a } : { t: s, playing: n && !a, sentenceId: t[o].sentenceId ?? null, offset: Math.max(0, s - t[o].start), ended: a };
3681
3703
  }
@@ -3693,17 +3715,17 @@ function Un(t, e, n) {
3693
3715
  const o = r > 0 && a >= r - $r && s < 0;
3694
3716
  return { t: a, playing: t.playing && !o, index: s >= 0 ? s : va(e, a) };
3695
3717
  }
3696
- function iu(t) {
3718
+ function ou(t) {
3697
3719
  return t.on ? t.want || t.relang ? "asked" : t.playing && (t.preparing || t.starting != null) ? "line" : null : null;
3698
3720
  }
3699
3721
  const _i = "Preparing the voice…";
3700
- function au(t) {
3722
+ function lu(t) {
3701
3723
  if (!t.lang) return null;
3702
3724
  const e = t.langName;
3703
3725
  return t.translateFailed === t.lang ? { kind: "translateFailed", lang: e } : t.voiceFailed ? { kind: "voiceFailed", lang: e } : t.translating ? { kind: "translating", lang: e } : t.starting != null ? { kind: "starting", lang: e, since: t.starting } : t.relang || t.slowLine ? { kind: "voice", lang: e, since: t.lineSince } : null;
3704
3726
  }
3705
3727
  function wa(t, e) {
3706
- const [n, r] = z(null), [s, a] = z(!1);
3728
+ const [n, r] = j(null), [s, a] = j(!1);
3707
3729
  return O(() => {
3708
3730
  if (!t) {
3709
3731
  r(null), a(!1);
@@ -3715,9 +3737,9 @@ function wa(t, e) {
3715
3737
  return () => clearTimeout(l);
3716
3738
  }, [t, e]), [s, n];
3717
3739
  }
3718
- const ou = (t) => `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
3719
- function lu({ state: t, line: e, onRetry: n, onOriginal: r }) {
3720
- const [s, a] = z(() => Date.now());
3740
+ const cu = (t) => `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
3741
+ function uu({ state: t, line: e, onRetry: n, onOriginal: r }) {
3742
+ const [s, a] = j(() => Date.now());
3721
3743
  O(() => {
3722
3744
  if (t.since == null) return;
3723
3745
  const d = setInterval(() => a(Date.now()), 1e3);
@@ -3749,7 +3771,7 @@ function lu({ state: t, line: e, onRetry: n, onOriginal: r }) {
3749
3771
  /* @__PURE__ */ m("div", { className: "pwait__head", children: [
3750
3772
  l ? /* @__PURE__ */ i("div", { className: "pwait__mark", "aria-hidden": "true", children: /* @__PURE__ */ i(oe, { d: X.warnCircle, size: 18, sw: 1.8 }) }) : /* @__PURE__ */ i("div", { className: "pwait__spin", "aria-hidden": "true" }),
3751
3773
  /* @__PURE__ */ i("div", { className: "pwait__t", children: c }),
3752
- !l && o != null && o >= 3 && /* @__PURE__ */ i("div", { className: "pwait__clock", "aria-label": `${o} seconds`, children: ou(o) })
3774
+ !l && o != null && o >= 3 && /* @__PURE__ */ i("div", { className: "pwait__clock", "aria-label": `${o} seconds`, children: cu(o) })
3753
3775
  ] }),
3754
3776
  /* @__PURE__ */ i("div", { className: "pwait__note", children: u }),
3755
3777
  !l && /* @__PURE__ */ i("div", { className: "pwait__bar", "aria-hidden": "true", children: /* @__PURE__ */ i("div", {}) }),
@@ -3762,12 +3784,12 @@ function lu({ state: t, line: e, onRetry: n, onOriginal: r }) {
3762
3784
  }
3763
3785
  );
3764
3786
  }
3765
- function ka(t, e, n) {
3787
+ function La(t, e, n) {
3766
3788
  var c;
3767
3789
  const r = t[e], s = n && r.translations[n] && r.language !== n ? r.translations[n] : null;
3768
3790
  if (!s && r.words.length) return r.words;
3769
3791
  const a = (s ?? r.text).split(/\s+/).filter(Boolean), o = ((c = r.words[0]) == null ? void 0 : c.start) ?? r.start, l = ya(r, t[e + 1], r.start + Math.max(2, a.length * 0.4));
3770
- return Tc(a, o, l).map((u, d) => ({ ...u, seq: r.seqs[0] ?? 0, idx: d }));
3792
+ return wc(a, o, l).map((u, d) => ({ ...u, seq: r.seqs[0] ?? 0, idx: d }));
3771
3793
  }
3772
3794
  function Yi(t, e, n) {
3773
3795
  if (!t.engaged || e !== t.idx || !n.length) return null;
@@ -3789,8 +3811,8 @@ function Ft(t, e, n) {
3789
3811
  const r = (s = t == null ? void 0 : t.words[t.words.length - 1]) == null ? void 0 : s.end;
3790
3812
  return r != null && r > e ? r : (t == null ? void 0 : t.end) != null && t.end > e ? t.end : n > e ? n : e + 4;
3791
3813
  }
3792
- function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd: o, endT: l, onGone: c, onKnown: u, lead: d, onTime: M, waiting: f = !1 }) {
3793
- const g = k(null), [h, y] = z(!1);
3814
+ function du({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd: o, endT: l, onGone: c, onKnown: u, lead: d, onTime: M, waiting: f = !1 }) {
3815
+ const g = w(null), [h, y] = j(!1);
3794
3816
  O(() => {
3795
3817
  if (!f) {
3796
3818
  y(!1);
@@ -3799,34 +3821,34 @@ function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3799
3821
  const W = setTimeout(() => y(!0), 300);
3800
3822
  return () => clearTimeout(W);
3801
3823
  }, [f]);
3802
- const T = r && !h, N = k(!1), [p, b] = z(!1), C = (W, Ne = []) => {
3803
- var G, Le;
3824
+ const T = r && !h, N = w(!1), [p, b] = j(!1), C = (W, Ne = []) => {
3825
+ var G, ke;
3804
3826
  if (!(N.current && (W === "pauseVideo" || W === "seekTo" || W === "setPlaybackRate")))
3805
3827
  try {
3806
- (Le = (G = g.current) == null ? void 0 : G.contentWindow) == null || Le.postMessage(JSON.stringify({ event: "command", func: W, args: Ne }), "*");
3828
+ (ke = (G = g.current) == null ? void 0 : G.contentWindow) == null || ke.postMessage(JSON.stringify({ event: "command", func: W, args: Ne }), "*");
3807
3829
  } catch {
3808
3830
  }
3809
- }, D = k(null), V = k(!1), Y = k(!1), ee = k(!1), I = k(a);
3831
+ }, D = w(null), V = w(!1), Y = w(!1), ee = w(!1), I = w(a);
3810
3832
  I.current = a;
3811
- const F = k(d);
3833
+ const F = w(d);
3812
3834
  F.current = d;
3813
- const A = k(o);
3835
+ const A = w(o);
3814
3836
  A.current = o;
3815
- const w = k(!1), _ = () => {
3837
+ const L = w(!1), _ = () => {
3816
3838
  var Ne, G;
3817
3839
  const W = Y.current || ee.current;
3818
3840
  if (W !== N.current)
3819
3841
  if (N.current = W, b(W), (Ne = A.current) == null || Ne.call(A, W), W) {
3820
3842
  if (C("playVideo"), F.current) return;
3821
- ve.current && I.current && (w.current = !0, I.current());
3822
- } else w.current && !F.current && (w.current = !1, ve.current || (G = I.current) == null || G.call(I));
3823
- }, x = k(n);
3843
+ ve.current && I.current && (L.current = !0, I.current());
3844
+ } else L.current && !F.current && (L.current = !1, ve.current || (G = I.current) == null || G.call(I));
3845
+ }, x = w(n);
3824
3846
  x.current = n;
3825
- const te = k(M);
3847
+ const te = w(M);
3826
3848
  te.current = M;
3827
- const K = k(null), j = k(null), [ie, ne] = z(!0), [Z, J] = z(!1), me = () => {
3849
+ const K = w(null), z = w(null), [ie, ne] = j(!0), [Z, J] = j(!1), me = () => {
3828
3850
  C("unloadModule", ["captions"]), C("unloadModule", ["cc"]);
3829
- }, le = k([]), Te = () => {
3851
+ }, le = w([]), Te = () => {
3830
3852
  me(), le.current.forEach(clearTimeout), le.current = [400, 1200, 2500, 5e3].map((W) => window.setTimeout(me, W));
3831
3853
  };
3832
3854
  O(() => () => le.current.forEach(clearTimeout), []);
@@ -3841,15 +3863,15 @@ function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3841
3863
  O(() => (d == null || d.bind(C), () => d == null ? void 0 : d.bind(null)), [!!d]), O(() => {
3842
3864
  !d && Z && C("mute");
3843
3865
  }, [!!d]);
3844
- const Se = k(null), we = k(l);
3866
+ const Se = w(null), we = w(l);
3845
3867
  we.current = l;
3846
- const ve = k(T);
3868
+ const ve = w(T);
3847
3869
  ve.current = T;
3848
- const Ee = k(!1), $e = k(c);
3870
+ const Ee = w(!1), $e = w(c);
3849
3871
  $e.current = c;
3850
- const De = k(u);
3872
+ const De = w(u);
3851
3873
  De.current = u;
3852
- const Q = k(!1), [H, E] = z(!1), S = (W) => {
3874
+ const Q = w(!1), [H, E] = j(!1), S = (W) => {
3853
3875
  const Ne = Se.current;
3854
3876
  return !!Ne && (W < Ne.start - 1 || W > Ne.end + 5);
3855
3877
  }, B = () => {
@@ -3866,8 +3888,8 @@ function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3866
3888
  return;
3867
3889
  }
3868
3890
  (ue = (Ae = G == null ? void 0 : G.info) == null ? void 0 : Ae.videoData) != null && ue.isLive && (V.current = !0);
3869
- const Le = (_e = G == null ? void 0 : G.info) == null ? void 0 : _e.duration;
3870
- typeof Le == "number" && Le > 0 && !V.current && (D.current == null ? D.current = Le : (Y.current = Math.abs(Le - D.current) > 1.5, _())), (G == null ? void 0 : G.event) === "onReady" && ((!F.current || F.current.muted) && C("mute"), Te(), (Ve = F.current) == null || Ve.onInfo({ ready: !0 })), typeof ((P = G == null ? void 0 : G.info) == null ? void 0 : P.playerState) == "number" && (G.info.playerState !== j.current && (G.info.playerState === 1 || G.info.playerState === 2) && Te(), j.current = G.info.playerState, ne(G.info.playerState !== 1 && G.info.playerState !== 3), (Me = F.current) == null || Me.onInfo({ state: G.info.playerState }));
3891
+ const ke = (_e = G == null ? void 0 : G.info) == null ? void 0 : _e.duration;
3892
+ typeof ke == "number" && ke > 0 && !V.current && (D.current == null ? D.current = ke : (Y.current = Math.abs(ke - D.current) > 1.5, _())), (G == null ? void 0 : G.event) === "onReady" && ((!F.current || F.current.muted) && C("mute"), Te(), (Ve = F.current) == null || Ve.onInfo({ ready: !0 })), typeof ((P = G == null ? void 0 : G.info) == null ? void 0 : P.playerState) == "number" && (G.info.playerState !== z.current && (G.info.playerState === 1 || G.info.playerState === 2) && Te(), z.current = G.info.playerState, ne(G.info.playerState !== 1 && G.info.playerState !== 3), (Me = F.current) == null || Me.onInfo({ state: G.info.playerState }));
3871
3893
  const Ie = (de = G == null ? void 0 : G.info) == null ? void 0 : de.progressState;
3872
3894
  if (Ie && typeof Ie.seekableStart == "number" && typeof Ie.seekableEnd == "number" && Ie.seekableEnd > Ie.seekableStart) {
3873
3895
  const be = Se.current == null;
@@ -3877,7 +3899,7 @@ function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3877
3899
  (ae = De.current) == null || ae.call(De, ye), ye && ((ge = $e.current) == null || ge.call($e));
3878
3900
  }
3879
3901
  }
3880
- typeof ((Ye = G == null ? void 0 : G.info) == null ? void 0 : Ye.currentTime) == "number" && (K.current = G.info.currentTime, (U = F.current) == null || U.onInfo({ t: G.info.currentTime }), !N.current && j.current === 1 && (($ = te.current) == null || $.call(te, G.info.currentTime))), ((q = G == null ? void 0 : G.info) == null ? void 0 : q.muted) === !1 && !F.current && C("mute"), typeof ((se = G == null ? void 0 : G.info) == null ? void 0 : se.muted) == "boolean" && ((he = F.current) == null || he.onInfo({ muted: G.info.muted }));
3902
+ typeof ((Ye = G == null ? void 0 : G.info) == null ? void 0 : Ye.currentTime) == "number" && (K.current = G.info.currentTime, (U = F.current) == null || U.onInfo({ t: G.info.currentTime }), !N.current && z.current === 1 && (($ = te.current) == null || $.call(te, G.info.currentTime))), ((q = G == null ? void 0 : G.info) == null ? void 0 : q.muted) === !1 && !F.current && C("mute"), typeof ((se = G == null ? void 0 : G.info) == null ? void 0 : se.muted) == "boolean" && ((he = F.current) == null || he.onInfo({ muted: G.info.muted }));
3881
3903
  };
3882
3904
  return window.addEventListener("message", W), () => window.removeEventListener("message", W);
3883
3905
  }, []), O(() => {
@@ -3900,8 +3922,8 @@ function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3900
3922
  if (!Z) return;
3901
3923
  let W = null, Ne = 0;
3902
3924
  const G = setInterval(() => {
3903
- const Le = K.current;
3904
- Ne = j.current === 1 && Le != null && W != null && Math.abs(Le - W) < 0.05 ? Ne + 1 : 0, W = Le;
3925
+ const ke = K.current;
3926
+ Ne = z.current === 1 && ke != null && W != null && Math.abs(ke - W) < 0.05 ? Ne + 1 : 0, W = ke;
3905
3927
  const Ie = Ne >= 3;
3906
3928
  Ie !== ee.current && (ee.current = Ie, _());
3907
3929
  }, 1e3);
@@ -3917,25 +3939,25 @@ function cu({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3917
3939
  ] })
3918
3940
  ] });
3919
3941
  }
3920
- const uu = /* @__PURE__ */ m(xe, { children: [
3942
+ const hu = /* @__PURE__ */ m(xe, { children: [
3921
3943
  /* @__PURE__ */ i("rect", { x: "6.5", y: "5", width: "3.75", height: "14", rx: "1.2" }),
3922
3944
  /* @__PURE__ */ i("rect", { x: "13.75", y: "5", width: "3.75", height: "14", rx: "1.2" })
3923
- ] }), du = /* @__PURE__ */ i("path", { d: "M7.5 5.6a1 1 0 0 1 1.52-.85l9.1 5.55a1 1 0 0 1 0 1.7l-9.1 5.55a1 1 0 0 1-1.52-.85V5.6Z" });
3924
- function hu({ player: t, size: e }) {
3945
+ ] }), Mu = /* @__PURE__ */ i("path", { d: "M7.5 5.6a1 1 0 0 1 1.52-.85l9.1 5.55a1 1 0 0 1 0 1.7l-9.1 5.55a1 1 0 0 1-1.52-.85V5.6Z" });
3946
+ function fu({ player: t, size: e }) {
3925
3947
  const n = t.muted ? "Unmute" : "Mute";
3926
3948
  return /* @__PURE__ */ i("button", { type: "button", className: `mutebtn${e < 36 ? " mutebtn--sm" : e > 36 ? " mutebtn--lg" : ""}`, "aria-label": n, title: n, "aria-pressed": t.muted, onClick: t.toggleMute, children: /* @__PURE__ */ i(oe, { d: t.muted ? X.volumeOff : X.volume, size: 17, sw: 1.6, style: { color: t.muted ? "var(--ink-38)" : "var(--ink-70)" } }) });
3927
3949
  }
3928
- function Mu() {
3929
- const [t, e] = z(""), n = k(null), r = Je((s) => {
3950
+ function gu() {
3951
+ const [t, e] = j(""), n = w(null), r = Je((s) => {
3930
3952
  clearTimeout(n.current), e(s), n.current = setTimeout(() => e(""), 3e3);
3931
3953
  }, []);
3932
3954
  return O(() => () => clearTimeout(n.current), []), [t, r];
3933
3955
  }
3934
- const fu = 0.2, gu = 140, mu = 320;
3935
- function pu(t, e) {
3936
- const n = k(t);
3956
+ const mu = 0.2, pu = 140, yu = 320;
3957
+ function Nu(t, e) {
3958
+ const n = w(t);
3937
3959
  n.current = t;
3938
- const r = k(0), s = k(1), a = Je((o, l) => {
3960
+ const r = w(0), s = w(1), a = Je((o, l) => {
3939
3961
  cancelAnimationFrame(r.current);
3940
3962
  const c = s.current, u = performance.now(), d = () => {
3941
3963
  const M = l > 0 ? Math.min(1, (performance.now() - u) / l) : 1;
@@ -3946,26 +3968,26 @@ function pu(t, e) {
3946
3968
  d();
3947
3969
  }, []);
3948
3970
  O(() => {
3949
- a(e ? fu : 1, e ? gu : mu);
3971
+ a(e ? mu : 1, e ? pu : yu);
3950
3972
  }, [e, a]), O(() => () => {
3951
3973
  cancelAnimationFrame(r.current), s.current = 1;
3952
3974
  for (const o of n.current) o.setVolume(1);
3953
3975
  }, []);
3954
3976
  }
3955
- function yu(t, e, n, r) {
3977
+ function Tu(t, e, n, r) {
3956
3978
  var De;
3957
- const s = k(null), a = k(!1), o = k(!1), [l, c] = z(null), [u, d] = z(!0), M = k(!0), f = k(!1), [g, h] = z(0), y = k(0);
3979
+ const s = w(null), a = w(!1), o = w(!1), [l, c] = j(null), [u, d] = j(!0), M = w(!0), f = w(!1), [g, h] = j(0), y = w(0);
3958
3980
  y.current = g;
3959
- const T = k({ t: 0, at: 0 }), N = k(n);
3981
+ const T = w({ t: 0, at: 0 }), N = w(n);
3960
3982
  N.current = n;
3961
- const p = k(r);
3983
+ const p = w(r);
3962
3984
  p.current = r;
3963
- const [b, C] = z(!1), D = k(!1), V = (Q) => {
3985
+ const [b, C] = j(!1), D = w(!1), V = (Q) => {
3964
3986
  D.current = Q, C(Q);
3965
3987
  }, Y = (Q, H) => {
3966
3988
  var E;
3967
3989
  return (E = s.current) == null ? void 0 : E.call(s, Q, H);
3968
- }, ee = l === 1 || l === 3, I = k(null), F = k(null), A = ze(() => ({
3990
+ }, ee = l === 1 || l === 3, I = w(null), F = w(null), A = ze(() => ({
3969
3991
  muted: !0,
3970
3992
  bind: (Q) => {
3971
3993
  s.current = Q, Q || (a.current = !1);
@@ -3994,15 +4016,15 @@ function yu(t, e, n, r) {
3994
4016
  }, [b, r, g]), O(() => {
3995
4017
  r == null && D.current && (V(!1), Y("playVideo"));
3996
4018
  }, [r]);
3997
- const w = t.length ? ((De = t[t.length - 1].words[t[t.length - 1].words.length - 1]) == null ? void 0 : De.end) ?? t[t.length - 1].start + 4 : 0, _ = e || w || 1, x = ze(() => {
4019
+ const L = t.length ? ((De = t[t.length - 1].words[t[t.length - 1].words.length - 1]) == null ? void 0 : De.end) ?? t[t.length - 1].start + 4 : 0, _ = e || L || 1, x = ze(() => {
3998
4020
  if (!t.length) return 0;
3999
4021
  let Q = 0;
4000
4022
  for (let H = 0; H < t.length; H++) t[H].start <= g + 0.05 && (Q = H);
4001
4023
  return Q;
4002
- }, [t, g]), [te, K] = z(0), j = (Q) => {
4024
+ }, [t, g]), [te, K] = j(0), z = (Q) => {
4003
4025
  const H = Math.max(0, p.current != null ? Math.min(Q, Math.max(0, p.current - 0.5)) : Q);
4004
4026
  Y("seekTo", [H + N.current, !0]), T.current = { t: H, at: performance.now() }, h(H), K((E) => E + 1);
4005
- }, ie = k(!1), ne = k(void 0), Z = (Q) => {
4027
+ }, ie = w(!1), ne = w(void 0), Z = (Q) => {
4006
4028
  window.clearTimeout(ne.current), ne.current = window.setTimeout(() => {
4007
4029
  !ie.current || Q <= 0 || I.current === 1 || I.current === 3 || (Y("playVideo"), Z(Q - 1));
4008
4030
  }, 1200);
@@ -4029,11 +4051,11 @@ function yu(t, e, n, r) {
4029
4051
  V(!1);
4030
4052
  return;
4031
4053
  }
4032
- g >= _ - 0.25 && j(0), J();
4054
+ g >= _ - 0.25 && z(0), J();
4033
4055
  }, Te = (Q) => {
4034
4056
  const H = t[Math.max(0, Math.min(t.length - 1, Q))];
4035
- H && j(H.start);
4036
- }, je = k(!1), Se = () => {
4057
+ H && z(H.start);
4058
+ }, je = w(!1), Se = () => {
4037
4059
  const Q = M.current || f.current;
4038
4060
  A.muted = Q, Y(Q ? "mute" : "unMute");
4039
4061
  }, we = (Q) => {
@@ -4068,13 +4090,13 @@ function yu(t, e, n, r) {
4068
4090
  I.current === 2 && !M.current && (we(!0), Y("playVideo"));
4069
4091
  }, 900);
4070
4092
  },
4071
- seekFrac: (Q) => j(Math.max(0, Math.min(1, Q)) * _),
4072
- seekWord: (Q) => j(Q.start),
4093
+ seekFrac: (Q) => z(Math.max(0, Math.min(1, Q)) * _),
4094
+ seekWord: (Q) => z(Q.start),
4073
4095
  playRow: (Q) => {
4074
4096
  Te(Q), ee || J();
4075
4097
  },
4076
4098
  stop: () => {
4077
- me(), j(0);
4099
+ me(), z(0);
4078
4100
  },
4079
4101
  engaged: ee || g > 0,
4080
4102
  prev: () => Te(x - 1),
@@ -4095,13 +4117,13 @@ function yu(t, e, n, r) {
4095
4117
  setVolume: (Q) => Y("setVolume", [Math.round(Q * 100)])
4096
4118
  }, lead: A, setVideoSound: ve };
4097
4119
  }
4098
- function Nu(t, e, n, r, s = 0, a = null) {
4120
+ function vu(t, e, n, r, s = 0, a = null) {
4099
4121
  var E;
4100
- const o = k(null), [l, c] = z(!1), [u, d] = z(0), [M, f] = z(!1), g = k(M);
4122
+ const o = w(null), [l, c] = j(!1), [u, d] = j(0), [M, f] = j(!1), g = w(M);
4101
4123
  g.current = M;
4102
- const h = k(!1), [y, T] = z(null), [N, p] = z(!1), b = k(s);
4124
+ const h = w(!1), [y, T] = j(null), [N, p] = j(!1), b = w(s);
4103
4125
  b.current = s;
4104
- const C = k(null), [D, V] = z(0);
4126
+ const C = w(null), [D, V] = j(0);
4105
4127
  O(() => {
4106
4128
  p(!1);
4107
4129
  const S = C.current;
@@ -4118,7 +4140,7 @@ function Nu(t, e, n, r, s = 0, a = null) {
4118
4140
  c(!1);
4119
4141
  const W = B.error, Ne = Ao(W, !1);
4120
4142
  Oo(t).then((G) => {
4121
- eu(G == null ? void 0 : G.message) || Gi(W), o.current === B && (T({ message: (G == null ? void 0 : G.message) ?? Ne }), G != null && G.permanent || (o.current = null));
4143
+ nu(G == null ? void 0 : G.message) || Gi(W), o.current === B && (T({ message: (G == null ? void 0 : G.message) ?? Ne }), G != null && G.permanent || (o.current = null));
4122
4144
  });
4123
4145
  }, o.current = B, () => {
4124
4146
  C.current = { t: Math.max(0, B.currentTime - ce), playing: !B.paused && !B.ended }, B.pause(), B.onplay = B.onpause = B.onended = B.onloadedmetadata = B.onerror = null, o.current = null;
@@ -4126,13 +4148,13 @@ function Nu(t, e, n, r, s = 0, a = null) {
4126
4148
  }, [t, D]), O(() => () => {
4127
4149
  C.current = null;
4128
4150
  }, []);
4129
- const Y = n.length ? ((E = n[n.length - 1].words[n[n.length - 1].words.length - 1]) == null ? void 0 : E.end) ?? n[n.length - 1].start + 4 : 0, ee = s > 0 || r != null && N && o.current != null && Number.isFinite(o.current.duration) && o.current.duration > r + 1, I = !ee && N && o.current && Number.isFinite(o.current.duration) && o.current.duration || r || Y || 1, F = k(I);
4151
+ const Y = n.length ? ((E = n[n.length - 1].words[n[n.length - 1].words.length - 1]) == null ? void 0 : E.end) ?? n[n.length - 1].start + 4 : 0, ee = s > 0 || r != null && N && o.current != null && Number.isFinite(o.current.duration) && o.current.duration > r + 1, I = !ee && N && o.current && Number.isFinite(o.current.duration) && o.current.duration || r || Y || 1, F = w(I);
4130
4152
  F.current = I;
4131
- const A = k(ee);
4153
+ const A = w(ee);
4132
4154
  A.current = ee;
4133
- const w = k(a);
4134
- w.current = a;
4135
- const [_, x] = z(!1), te = k(!1), K = (S) => {
4155
+ const L = w(a);
4156
+ L.current = a;
4157
+ const [_, x] = j(!1), te = w(!1), K = (S) => {
4136
4158
  te.current = S, x(S);
4137
4159
  };
4138
4160
  O(() => {
@@ -4154,7 +4176,7 @@ function Nu(t, e, n, r, s = 0, a = null) {
4154
4176
  ce.pause(), d(F.current);
4155
4177
  return;
4156
4178
  }
4157
- if (w.current != null && W >= w.current) {
4179
+ if (L.current != null && W >= L.current) {
4158
4180
  K(!0), ce.pause(), d(W);
4159
4181
  return;
4160
4182
  }
@@ -4164,13 +4186,13 @@ function Nu(t, e, n, r, s = 0, a = null) {
4164
4186
  };
4165
4187
  return S = requestAnimationFrame(B), () => cancelAnimationFrame(S);
4166
4188
  }, [l]);
4167
- const j = ze(() => {
4189
+ const z = ze(() => {
4168
4190
  if (!n.length) return 0;
4169
4191
  let S = 0;
4170
4192
  for (let B = 0; B < n.length; B++) n[B].start <= u + 0.05 && (S = B);
4171
4193
  return S;
4172
- }, [n, u]), [ie, ne] = z(0), Z = (S) => {
4173
- const B = w.current != null ? Math.min(S, Math.max(0, w.current - 0.5)) : S, ce = o.current;
4194
+ }, [n, u]), [ie, ne] = j(0), Z = (S) => {
4195
+ const B = L.current != null ? Math.min(S, Math.max(0, L.current - 0.5)) : S, ce = o.current;
4174
4196
  d(B), ce && (ce.currentTime = B + b.current), ne((W) => W + 1);
4175
4197
  }, J = (S) => {
4176
4198
  (S == null ? void 0 : S.name) !== "AbortError" && T(Ct(S));
@@ -4212,7 +4234,7 @@ function Nu(t, e, n, r, s = 0, a = null) {
4212
4234
  le(S);
4213
4235
  const B = o.current;
4214
4236
  B && B.paused && B.play().catch(J);
4215
- }, ve = k(!1), Ee = k(0), $e = () => {
4237
+ }, ve = w(!1), Ee = w(0), $e = () => {
4216
4238
  var S;
4217
4239
  l && ((S = o.current) == null || S.pause(), ve.current = !0);
4218
4240
  }, De = () => {
@@ -4241,7 +4263,7 @@ function Nu(t, e, n, r, s = 0, a = null) {
4241
4263
  },
4242
4264
  playing: l,
4243
4265
  t: u,
4244
- idx: j,
4266
+ idx: z,
4245
4267
  dur: I,
4246
4268
  muted: M,
4247
4269
  toggleMute: () => {
@@ -4266,8 +4288,8 @@ function Nu(t, e, n, r, s = 0, a = null) {
4266
4288
  Math.abs(B.currentTime - ce) <= 0.2 || (Ee.current = Date.now(), B.currentTime = ce);
4267
4289
  },
4268
4290
  engaged: l || u > 0,
4269
- prev: () => le(j - 1),
4270
- next: () => le(j + 1),
4291
+ prev: () => le(z - 1),
4292
+ next: () => le(z + 1),
4271
4293
  hold: $e,
4272
4294
  release: De,
4273
4295
  error: y,
@@ -4287,20 +4309,20 @@ function Nu(t, e, n, r, s = 0, a = null) {
4287
4309
  }
4288
4310
  };
4289
4311
  }
4290
- function Tu(t, e, n, r, s, a, o = !1, l) {
4291
- const c = k(/* @__PURE__ */ new Set());
4312
+ function wu(t, e, n, r, s, a, o = !1, l) {
4313
+ const c = w(/* @__PURE__ */ new Set());
4292
4314
  c.current = l ?? c.current;
4293
- const u = k(null), [d, M] = z(!1), [f, g] = z(0), [h, y] = z(0), [T, N] = z(!1), p = k(T);
4315
+ const u = w(null), [d, M] = j(!1), [f, g] = j(0), [h, y] = j(0), [T, N] = j(!1), p = w(T);
4294
4316
  p.current = T;
4295
- const [b, C] = z(null), [D, V] = z(null), [Y, ee] = z(null), [I, F] = z(null), A = k(I);
4317
+ const [b, C] = j(null), [D, V] = j(null), [Y, ee] = j(null), [I, F] = j(null), A = w(I);
4296
4318
  A.current = I;
4297
- const [w, _] = z(null), [x, te] = z(null), [K, j] = z(null), [ie, ne] = z(!1), Z = k(e);
4319
+ const [L, _] = j(null), [x, te] = j(null), [K, z] = j(null), [ie, ne] = j(!1), Z = w(e);
4298
4320
  Z.current = e;
4299
- const J = k(o), me = k([]);
4321
+ const J = w(o), me = w([]);
4300
4322
  J.current = o, u.current && (u.current.flow = o);
4301
- const le = k(null), Te = k(s);
4323
+ const le = w(null), Te = w(s);
4302
4324
  Te.current = s;
4303
- const je = k(a);
4325
+ const je = w(a);
4304
4326
  je.current = a;
4305
4327
  const Se = Je((U) => {
4306
4328
  U.finite = !0, U.coming = ($) => c.current.has($), U.readAhead = 6, U.readAheadS = 45, U.onWaiting = ($) => V($), U.onStarting = ($) => ee($), U.onSentence = ($) => {
@@ -4315,13 +4337,13 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4315
4337
  if (!be) return 0;
4316
4338
  const ye = A.current;
4317
4339
  if ($ == null) return ye && ye.sid === q ? Math.max(0, be.start - ye.t) : 0;
4318
- const ke = le.current;
4319
- return ke && Date.now() - ke.at < 2e3 ? Math.max(0, be.start - (ke.t + (Date.now() - ke.at) / 1e3 * U.rate)) : !he || be.start <= he.start ? 0 : Math.max(0, be.start - Ft(he, he.start, he.start + 4));
4340
+ const Le = le.current;
4341
+ return Le && Date.now() - Le.at < 2e3 ? Math.max(0, be.start - (Le.t + (Date.now() - Le.at) / 1e3 * U.rate)) : !he || be.start <= he.start ? 0 : Math.max(0, be.start - Ft(he, he.start, he.start + 4));
4320
4342
  }, U.flow = J.current, U.silentSpan = ($) => {
4321
4343
  var Pe;
4322
4344
  const q = Z.current, se = q.findIndex((ht) => ht.sentenceId === $), he = q[se];
4323
4345
  if (!he) return null;
4324
- const be = ((Pe = q[se + 1]) == null ? void 0 : Pe.start) ?? Ft(he, he.start, he.start + 4), ye = Math.max(0, be - he.start), ke = le.current, Oe = ke && Date.now() - ke.at < 2e3 ? ke.t + (Date.now() - ke.at) / 1e3 * (U.rate || 1) : he.start, He = Math.max(0, Math.min(ye, Oe - he.start));
4346
+ const be = ((Pe = q[se + 1]) == null ? void 0 : Pe.start) ?? Ft(he, he.start, he.start + 4), ye = Math.max(0, be - he.start), Le = le.current, Oe = Le && Date.now() - Le.at < 2e3 ? Le.t + (Date.now() - Le.at) / 1e3 * (U.rate || 1) : he.start, He = Math.max(0, Math.min(ye, Oe - he.start));
4325
4347
  return { fromS: He, ms: (ye - He) * 1e3 / (U.rate || 1) };
4326
4348
  }, U.speakable = ($) => {
4327
4349
  const q = Te.current;
@@ -4329,7 +4351,7 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4329
4351
  const se = Z.current.find((he) => he.sentenceId === $);
4330
4352
  return !se || !q.has(se.speaker);
4331
4353
  };
4332
- }, []), we = k(null), ve = k(null), Ee = k(null), [$e, De] = z(!1), Q = k(() => {
4354
+ }, []), we = w(null), ve = w(null), Ee = w(null), [$e, De] = j(!1), Q = w(() => {
4333
4355
  }), H = (U) => {
4334
4356
  if (Ee.current = U, De(!!(U != null && U.playing)), !U) return;
4335
4357
  const $ = Un(U, Z.current, Ie).index;
@@ -4357,19 +4379,19 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4357
4379
  var U;
4358
4380
  (U = u.current) == null || U.stop(), u.current = null, we.current = null;
4359
4381
  }, []);
4360
- const B = w != null || x != null;
4382
+ const B = L != null || x != null;
4361
4383
  O(() => {
4362
4384
  if (!d && !B) {
4363
4385
  _(null), te(null);
4364
4386
  return;
4365
4387
  }
4366
4388
  const U = () => {
4367
- var ye, ke;
4389
+ var ye, Le;
4368
4390
  const q = ((ye = u.current) == null ? void 0 : ye.resting()) ?? null;
4369
4391
  ne(!!(q != null && q.silent)), q != null && q.silent && A.current && (A.current = null, F(null)), te((Oe) => q == null ? null : Oe != null && Math.abs(Oe - q.s) < 0.05 ? Oe : q.s);
4370
4392
  const se = A.current;
4371
- q == null ? j(null) : se && se.sid === q.sentenceId && (j(se.t), A.current = null, F(null));
4372
- const he = ((ke = u.current) == null ? void 0 : ke.position()) ?? null, be = he && je.current ? je.current[String(he.sentenceId)] ?? null : null;
4393
+ q == null ? z(null) : se && se.sid === q.sentenceId && (z(se.t), A.current = null, F(null));
4394
+ const he = ((Le = u.current) == null ? void 0 : Le.position()) ?? null, be = he && je.current ? je.current[String(he.sentenceId)] ?? null : null;
4373
4395
  se && he && he.sentenceId === se.sid && he.t > 0.1 && F(null), _((Oe) => he ? Oe && Math.abs(Oe.t - he.t) < 0.05 && Oe.dur === he.dur && Oe.words === be ? Oe : { t: he.t, dur: he.dur, words: be } : Oe == null ? Oe : null);
4374
4396
  };
4375
4397
  U();
@@ -4383,7 +4405,7 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4383
4405
  }, Ne = (U, $) => {
4384
4406
  for (let q = U; q >= 0 && q < e.length; q += $) if (W(q)) return q;
4385
4407
  return null;
4386
- }, G = Math.max(0, Math.min(f, Math.max(0, e.length - 1))), Le = e.length ? e[e.length - 1].start + 4 : 0, Ie = n || Le || 1, Fe = k(!1), Ae = k(f);
4408
+ }, G = Math.max(0, Math.min(f, Math.max(0, e.length - 1))), ke = e.length ? e[e.length - 1].start + 4 : 0, Ie = n || ke || 1, Fe = w(!1), Ae = w(f);
4387
4409
  Ae.current = f;
4388
4410
  const ue = (U) => {
4389
4411
  var $, q, se;
@@ -4399,9 +4421,9 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4399
4421
  var he;
4400
4422
  const $ = e[U], q = ($ == null ? void 0 : $.start) ?? 0, se = ((he = e[U + 1]) == null ? void 0 : he.start) ?? Ft($, q, Ie);
4401
4423
  return { from: q, span: Math.max(0, se - q) };
4402
- }, Me = P(G), de = Math.max(0, Math.min(Me.span, Ft(e[G], Me.from, Me.from + 4) - Me.from)), ae = I ? I.t : o ? x != null && ie ? Me.from + Math.min(Me.span, x) : x != null ? K != null ? Math.min(Me.from, K + x) : Me.from + Math.min(Me.span, de + x) : w && w.dur > 0 ? Me.from + Math.min(de, w.t / w.dur * de) : Me.from : w && w.dur > 0 ? Me.from + Math.min(Me.span, w.t / w.dur * Me.span) : Me.from;
4424
+ }, Me = P(G), de = Math.max(0, Math.min(Me.span, Ft(e[G], Me.from, Me.from + 4) - Me.from)), ae = I ? I.t : o ? x != null && ie ? Me.from + Math.min(Me.span, x) : x != null ? K != null ? Math.min(Me.from, K + x) : Me.from + Math.min(Me.span, de + x) : L && L.dur > 0 ? Me.from + Math.min(de, L.t / L.dur * de) : Me.from : L && L.dur > 0 ? Me.from + Math.min(Me.span, L.t / L.dur * Me.span) : Me.from;
4403
4425
  O(() => {
4404
- ve.current = Ee.current ?? su(e, ae, d, Ie);
4426
+ ve.current = Ee.current ?? au(e, ae, d, Ie);
4405
4427
  });
4406
4428
  const ge = {
4407
4429
  playing: d || $e,
@@ -4411,11 +4433,11 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4411
4433
  muted: T,
4412
4434
  wordSync: !1,
4413
4435
  timed: o,
4414
- clipPos: I ? null : w,
4436
+ clipPos: I ? null : L,
4415
4437
  videoAt: (U) => {
4416
4438
  le.current = { t: U, at: Date.now() };
4417
4439
  },
4418
- engaged: d || w != null,
4440
+ engaged: d || L != null,
4419
4441
  has: t.length > 0,
4420
4442
  preparing: D != null || $e,
4421
4443
  silent: d && ie,
@@ -4471,8 +4493,8 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4471
4493
  A.current = gt, F(gt), _e(Ge);
4472
4494
  return;
4473
4495
  }
4474
- const be = (se == null ? void 0 : se.sentenceId) ?? null, { from: ye, span: ke } = P(q);
4475
- let Oe = ke > 0 ? Math.max(0, Math.min(1, ($ - ye) / ke)) : 0;
4496
+ const be = (se == null ? void 0 : se.sentenceId) ?? null, { from: ye, span: Le } = P(q);
4497
+ let Oe = Le > 0 ? Math.max(0, Math.min(1, ($ - ye) / Le)) : 0;
4476
4498
  const He = be != null ? (at = je.current) == null ? void 0 : at[String(be)] : void 0, Pe = He != null && He.length ? He[He.length - 1][1] : 0;
4477
4499
  if (se && He && He.length === se.words.length && Pe > 0) {
4478
4500
  let Ge = 0;
@@ -4483,11 +4505,11 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4483
4505
  be != null && ((Tt = u.current) == null || Tt.startWithin(be, Oe)), F(Oe > 0.01 ? { t: $, sid: be } : null), _e(q);
4484
4506
  },
4485
4507
  seekWord: a ? (U) => {
4486
- var he, be, ye, ke;
4508
+ var he, be, ye, Le;
4487
4509
  const $ = e[G];
4488
4510
  if (!$ || $.sentenceId == null) return;
4489
4511
  const q = $.words.findIndex((Oe) => Oe.seq === U.seq && Oe.idx === U.idx), se = q >= 0 ? (ye = (be = (he = je.current) == null ? void 0 : he[String($.sentenceId)]) == null ? void 0 : be[q]) == null ? void 0 : ye[0] : void 0;
4490
- se != null && ((ke = u.current) == null || ke.seekWithin(se));
4512
+ se != null && ((Le = u.current) == null || Le.seekWithin(se));
4491
4513
  } : void 0,
4492
4514
  playRow: (U) => {
4493
4515
  var q;
@@ -4536,31 +4558,31 @@ function Tu(t, e, n, r, s, a, o = !1, l) {
4536
4558
  (q = ge.seekFrac) == null || q.call(ge, $.t / Ie), $.playing && ue(Ae.current);
4537
4559
  }, ge;
4538
4560
  }
4539
- const vu = () => {
4540
- }, wu = "The language this recording is read aloud in.", ku = { title: "READ IN", note: "The transcript and its voice switch to this language." };
4541
- function Lu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, langs: o, srcLang: l, canTranslate: c, pickedLang: u, setPickedLang: d, side: M, hearOriginal: f = !1, timed: g = !1, stockVoices: h = !1, stickyPicker: y = !1, pickerBusy: T = null, voiceSheet: N, forcedVoice: p = null }) {
4561
+ const Lu = () => {
4562
+ }, ku = "The language this recording is read aloud in.", ju = { title: "READ IN", note: "The transcript and its voice switch to this language." };
4563
+ function zu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, langs: o, srcLang: l, canTranslate: c, pickedLang: u, setPickedLang: d, side: M, hearOriginal: f = !1, timed: g = !1, stockVoices: h = !1, stickyPicker: y = !1, pickerBusy: T = null, voiceSheet: N, forcedVoice: p = null }) {
4542
4564
  var yn, pt, Nn, ln;
4543
- const { onAddVoice: b, onPickVoice: C, onSelectSpeaker: D, noCloneFor: V, castNoClone: Y, castShort: ee, castBuilding: I, castWarn: F, badge: A, titleNode: w } = N ?? {}, _ = !!N, x = !!(N != null && N.pendingClones), [te, K] = na(), [j, ie] = z(null), [ne, Z] = z(!1), [J, me] = z(!1), [le, Te] = z(!1), [je, Se] = z(!1), we = u ?? l, ve = u === null, Ee = u != null || j != null, De = ((R) => !!R && !!(o != null && o.voice.includes(R)))(ve ? l : we) ? ve ? l : we : "en", Q = ru(De), H = (N == null ? void 0 : N.cloneOn) ?? !0, [E, S] = z(0), B = k(H);
4565
+ const { onAddVoice: b, onPickVoice: C, onSelectSpeaker: D, noCloneFor: V, castNoClone: Y, castShort: ee, castBuilding: I, castWarn: F, badge: A, titleNode: L } = N ?? {}, _ = !!N, x = !!(N != null && N.pendingClones), [te, K] = na(), [z, ie] = j(null), [ne, Z] = j(!1), [J, me] = j(!1), [le, Te] = j(!1), [je, Se] = j(!1), we = u ?? l, ve = u === null, Ee = u != null || z != null, De = ((R) => !!R && !!(o != null && o.voice.includes(R)))(ve ? l : we) ? ve ? l : we : "en", Q = iu(De), H = (N == null ? void 0 : N.cloneOn) ?? !0, [E, S] = j(0), B = w(H);
4544
4566
  O(() => {
4545
4567
  B.current !== H && (B.current = H, S((R) => R + 1));
4546
4568
  }, [H]);
4547
- const ce = _c(De, Ee || s || J, Yc(e) * 1e3 + E, { id: t ?? null, shareCode: a.shareCode ?? null }), W = ze(() => ((ce == null ? void 0 : ce.voices) ?? []).filter((R) => _ || !R.cloned || R.speaker != null), [ce, _]), Ne = W.length > 1, G = Ur(o, we), Le = ga(), Ie = ze(() => ra(o, "translation"), [o]), [Fe, Ae] = z(null), [ue] = z(() => /* @__PURE__ */ new Set()), [_e, Ve] = z({}), P = ze(() => Cc(n, e, Le.vcUnknownSpk), [n, e, Le]), Me = Ne && P.filter((R) => R.key >= 0).length > 1, de = Fe != null && P.some((R) => R.key === Fe) ? Fe : ((yn = P[0]) == null ? void 0 : yn.key) ?? null, ae = ze(() => {
4569
+ const ce = Uc(De, Ee || s || J, $c(e) * 1e3 + E, { id: t ?? null, shareCode: a.shareCode ?? null }), W = ze(() => ((ce == null ? void 0 : ce.voices) ?? []).filter((R) => _ || !R.cloned || R.speaker != null), [ce, _]), Ne = W.length > 1, G = Ur(o, we), ke = ga(), Ie = ze(() => ra(o, "translation"), [o]), [Fe, Ae] = j(null), [ue] = j(() => /* @__PURE__ */ new Set()), [_e, Ve] = j({}), P = ze(() => Dc(n, e, ke.vcUnknownSpk), [n, e, ke]), Me = Ne && P.filter((R) => R.key >= 0).length > 1, de = Fe != null && P.some((R) => R.key === Fe) ? Fe : ((yn = P[0]) == null ? void 0 : yn.key) ?? null, ae = ze(() => {
4548
4570
  const R = Ei(P, W, H);
4549
4571
  for (const [Ce, Qe] of Object.entries(_e[De ?? ""] ?? {})) R.set(Number(Ce), Qe);
4550
4572
  return R;
4551
4573
  }, [P, W, _e, De, H]), ge = Me && Object.keys(_e[De ?? ""] ?? {}).length > 0, Ye = ze(() => h && !ge ? Ei(P, W, !1) : null, [h, ge, P, W]), U = ze(() => ge ? Di(ae) || null : Ye && Di(Ye) || null, [ge, ae, Ye]), $ = ge ? ae : Ye, q = W.some((R) => R.cloned && R.consent !== "pending"), se = !!we && !!(o != null && o.voice.includes(we)), he = se && !f, be = ze(
4552
4574
  () => n.filter((R) => !R.suppressed && !R.unclear).map((R) => R.sentenceId).filter((R) => R != null),
4553
4575
  [n]
4554
- ), ye = Uc({ recordingId: t, lang: we, ended: s, cred: a, pickedVoice: p || (U ?? j), sentenceIds: s && he ? be : void 0 }), ke = W.find((R) => R.id === j) ?? W.find((R) => {
4576
+ ), ye = Rc({ recordingId: t, lang: we, ended: s, cred: a, pickedVoice: p || (U ?? z), sentenceIds: s && he ? be : void 0 }), Le = W.find((R) => R.id === z) ?? W.find((R) => {
4555
4577
  var Ce;
4556
4578
  return R.id === ((Ce = ye.track) == null ? void 0 : Ce.voice);
4557
- }) ?? W.find((R) => R.default) ?? W[0] ?? null, Oe = (ke == null ? void 0 : ke.id) ?? null;
4579
+ }) ?? W.find((R) => R.default) ?? W[0] ?? null, Oe = (Le == null ? void 0 : Le.id) ?? null;
4558
4580
  O(() => {
4559
4581
  if (!ye.rendering) return;
4560
4582
  const R = setInterval(ye.reload, 4e3);
4561
4583
  return () => clearInterval(R);
4562
4584
  }, [ye.rendering, ye.reload]);
4563
- const He = `${t ?? ""}|${we ?? ""}|${p || (U ?? j ?? ((pt = ye.track) == null ? void 0 : pt.voiceKey) ?? "default")}`, Pe = Tu(ye.clips, n, r, He, ue, (Nn = ye.track) == null ? void 0 : Nn.wordTimes, g, ye.coming);
4585
+ const He = `${t ?? ""}|${we ?? ""}|${p || (U ?? z ?? ((pt = ye.track) == null ? void 0 : pt.voiceKey) ?? "default")}`, Pe = wu(ye.clips, n, r, He, ue, (Nn = ye.track) == null ? void 0 : Nn.wordTimes, g, ye.coming);
4564
4586
  O(() => {
4565
4587
  var Ce;
4566
4588
  const R = (Ce = n[Pe.idx]) == null ? void 0 : Ce.sentenceId;
@@ -4614,12 +4636,12 @@ function Lu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4614
4636
  return;
4615
4637
  }
4616
4638
  ie(R);
4617
- }, v = ve ? { ...Ur(o, null), flag: /* @__PURE__ */ i(oe, { d: X.langAuto, size: 21, sw: 1.7, style: { color: "currentColor", display: "block" } }) } : G, Zn = c ? M ? /* @__PURE__ */ i("span", { className: "barchip", style: ct ? { background: "var(--brand-tint)", boxShadow: "0 0 0 1.5px var(--brand)" } : void 0, children: /* @__PURE__ */ i(Qn, { flag: v.flag, code: v.code, bordered: !1, onClick: rn, flagOnly: !0, label: v.label }) }) : /* @__PURE__ */ i(Qn, { flag: v.flag, code: v.code, bordered: !1, onClick: it, flagOnly: !0, label: v.label }) : null, Ut = X.voiceClone, $t = Ee && (!!ye.track || ht), Rt = at ? "var(--conf-low)" : $t || M && ot ? "var(--brand)" : "var(--ink-55)", Gt = iu({ on: Ee, want: je, relang: st, playing: Pe.playing, preparing: !!Pe.preparing, starting: Pe.starting }), [mn] = wa(Gt === "line", 400), qe = Gt === "asked" || Gt === "line" && mn, lt = ht || qe, sn = Gt === "asked" ? _i : Pe.preparing ? `Speaking this line in ${(ke == null ? void 0 : ke.name) ?? "this voice"}…` : ht ? `Preparing this recording in ${(ke == null ? void 0 : ke.name) ?? "this voice"} — it will play as soon as it is ready` : at ? `This voice could not be prepared: ${at}` : se ? Ne ? "Choose a voice" : ke ? ke.name : Le.vcNoVoice + G.label : `${Le.vcNoVoice}${G.label}`, vt = /* @__PURE__ */ i(Vo, { open: ne, onClose: Be, keepOpen: (!!M || y) && !le, value: ve ? null : we, onSelect: fn, languages: Ie, title: (M == null ? void 0 : M.title) ?? "SPOKEN LANGUAGE", note: (M == null ? void 0 : M.note) ?? wu, searchPlaceholder: Le.search, none: "Original", pinned: (ve ? l : we) ? [ve ? l : we] : [], recent: te, requireVoice: le, sticky: y, busy: T }), mt = ze(() => W.filter((R) => R.cloned && !R.auto), [W]), qt = (R) => R.voiceId ? mt.find((Ce) => Ce.id === `clone:${R.voiceId}`) ?? null : null, Mt = ze(() => P.filter((R) => R.key >= 0), [P]), an = ze(() => {
4639
+ }, v = ve ? { ...Ur(o, null), flag: /* @__PURE__ */ i(oe, { d: X.langAuto, size: 21, sw: 1.7, style: { color: "currentColor", display: "block" } }) } : G, Zn = c ? M ? /* @__PURE__ */ i("span", { className: "barchip", style: ct ? { background: "var(--brand-tint)", boxShadow: "0 0 0 1.5px var(--brand)" } : void 0, children: /* @__PURE__ */ i(Qn, { flag: v.flag, code: v.code, bordered: !1, onClick: rn, flagOnly: !0, label: v.label }) }) : /* @__PURE__ */ i(Qn, { flag: v.flag, code: v.code, bordered: !1, onClick: it, flagOnly: !0, label: v.label }) : null, Ut = X.voiceClone, $t = Ee && (!!ye.track || ht), Rt = at ? "var(--conf-low)" : $t || M && ot ? "var(--brand)" : "var(--ink-55)", qt = ou({ on: Ee, want: je, relang: st, playing: Pe.playing, preparing: !!Pe.preparing, starting: Pe.starting }), [mn] = wa(qt === "line", 400), qe = qt === "asked" || qt === "line" && mn, lt = ht || qe, sn = qt === "asked" ? _i : Pe.preparing ? `Speaking this line in ${(Le == null ? void 0 : Le.name) ?? "this voice"}…` : ht ? `Preparing this recording in ${(Le == null ? void 0 : Le.name) ?? "this voice"} — it will play as soon as it is ready` : at ? `This voice could not be prepared: ${at}` : se ? Ne ? "Choose a voice" : Le ? Le.name : ke.vcNoVoice + G.label : `${ke.vcNoVoice}${G.label}`, vt = /* @__PURE__ */ i(Vo, { open: ne, onClose: Be, keepOpen: (!!M || y) && !le, value: ve ? null : we, onSelect: fn, languages: Ie, title: (M == null ? void 0 : M.title) ?? "SPOKEN LANGUAGE", note: (M == null ? void 0 : M.note) ?? ku, searchPlaceholder: ke.search, none: "Original", pinned: (ve ? l : we) ? [ve ? l : we] : [], recent: te, requireVoice: le, sticky: y, busy: T }), mt = ze(() => W.filter((R) => R.cloned && !R.auto), [W]), Kt = (R) => R.voiceId ? mt.find((Ce) => Ce.id === `clone:${R.voiceId}`) ?? null : null, Mt = ze(() => P.filter((R) => R.key >= 0), [P]), an = ze(() => {
4618
4640
  const R = W.filter((Qe) => !Qe.cloned);
4619
4641
  if (!Me) return [...R, ...s && Mt.length === 1 ? mt.filter((Qe) => Qe.id === `clone:${Mt[0].voiceId}`) : []];
4620
4642
  const Ce = [];
4621
4643
  for (const Qe of Mt) {
4622
- if (qt(Qe)) continue;
4644
+ if (Kt(Qe)) continue;
4623
4645
  const Et = W.find((Vt) => Vt.cloned && Vt.auto && Vt.speaker === Qe.key);
4624
4646
  !Et || Et.ready === !1 || Et.consent === "pending" && !x || Ce.push({ id: Et.id, name: Qe.name, cloned: !0, default: !1, live: !0, auto: !0, gender: Qe.sex ?? Et.gender ?? null, speaker: Qe.key, consent: Et.consent ?? null });
4625
4647
  }
@@ -4627,18 +4649,18 @@ function Lu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4627
4649
  }, [W, mt, Me, Mt, x, s]), ut = Me ? Mt.find((R) => R.key === de) ?? null : null, on = (R) => {
4628
4650
  var Ce;
4629
4651
  return R ? ((Ce = W.find((Qe) => Qe.id === R)) == null ? void 0 : Ce.gender) ?? null : null;
4630
- }, St = ut ? ut.sex ?? on(ae.get(ut.key)) : null, Ze = ze(() => ut ? an.filter((R) => R.cloned ? R.live ? R.speaker === ut.key : R.id === `clone:${ut.voiceId}` : !0) : an, [an, ut, St, Mt]), Pt = (R) => W.find((Ce) => Ce.cloned && Ce.auto && Ce.speaker === R) ?? null, jt = { people: Mt, gvList: W, autoOf: Pt, savedFor: qt }, Qt = (A == null ? void 0 : A(jt)) ?? 0, tt = F ? Mt.map((R) => F(R, jt)).filter((R) => !!R) : [], pn = /* @__PURE__ */ m("button", { type: "button", className: "txvoice", "aria-label": "Voice", "aria-pressed": M ? ot : void 0, "aria-busy": lt || void 0, title: lt || at ? sn : void 0, style: { cursor: "pointer", background: $t || lt || M && ot ? "var(--brand-tint)" : "var(--fill-06)", boxShadow: M && ot ? "inset 0 0 0 1.5px var(--brand)" : void 0 }, onClick: M ? re : Yt, children: [
4652
+ }, St = ut ? ut.sex ?? on(ae.get(ut.key)) : null, Ze = ze(() => ut ? an.filter((R) => R.cloned ? R.live ? R.speaker === ut.key : R.id === `clone:${ut.voiceId}` : !0) : an, [an, ut, St, Mt]), Pt = (R) => W.find((Ce) => Ce.cloned && Ce.auto && Ce.speaker === R) ?? null, jt = { people: Mt, gvList: W, autoOf: Pt, savedFor: Kt }, Qt = (A == null ? void 0 : A(jt)) ?? 0, tt = F ? Mt.map((R) => F(R, jt)).filter((R) => !!R) : [], pn = /* @__PURE__ */ m("button", { type: "button", className: "txvoice", "aria-label": "Voice", "aria-pressed": M ? ot : void 0, "aria-busy": lt || void 0, title: lt || at ? sn : void 0, style: { cursor: "pointer", background: $t || lt || M && ot ? "var(--brand-tint)" : "var(--fill-06)", boxShadow: M && ot ? "inset 0 0 0 1.5px var(--brand)" : void 0 }, onClick: M ? re : Yt, children: [
4631
4653
  /* @__PURE__ */ i(oe, { d: Ut, size: 17, sw: 1.6, style: { color: Rt } }),
4632
4654
  lt && /* @__PURE__ */ i("span", { "aria-hidden": "true", style: { position: "absolute", inset: 0, boxSizing: "border-box", borderRadius: "50%", border: "2px solid var(--fill-12)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite", pointerEvents: "none" } }),
4633
4655
  tt.length > 0 ? /* @__PURE__ */ i("span", { className: "txvoice__warn", title: tt.join(" · "), children: "!" }) : !!Qt && /* @__PURE__ */ i("span", { className: "txvoice__n", title: `${Qt} speaker${Qt === 1 ? "" : "s"} can get a cloned voice`, children: Qt })
4634
- ] }), Dt = /* @__PURE__ */ i(nn, { open: J, onClose: Xe, title: Le.vcSheet, titleNode: w, doneLabel: Le.done, children: /* @__PURE__ */ i(
4635
- Dc,
4656
+ ] }), Dt = /* @__PURE__ */ i(nn, { open: J, onClose: Xe, title: ke.vcSheet, titleNode: L, doneLabel: ke.done, children: /* @__PURE__ */ i(
4657
+ Ec,
4636
4658
  {
4637
- t: Le,
4659
+ t: ke,
4638
4660
  cast: Me && /* @__PURE__ */ i(
4639
- Sc,
4661
+ Ac,
4640
4662
  {
4641
- t: Le,
4663
+ t: ke,
4642
4664
  roster: P,
4643
4665
  selected: de,
4644
4666
  onSelect: (R) => {
@@ -4647,7 +4669,7 @@ function Lu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4647
4669
  noClone: (R) => !!(Y != null && Y(R, jt)),
4648
4670
  short: (R) => !!(ee != null && ee(R, jt)),
4649
4671
  warn: (R) => (F == null ? void 0 : F(R, jt)) ?? null,
4650
- building: (R) => !qt(R) && (W.some((Ce) => Ce.cloned && Ce.speaker === R.key && Ce.ready === !1) || !!(I != null && I(R, jt))),
4672
+ building: (R) => !Kt(R) && (W.some((Ce) => Ce.cloned && Ce.speaker === R.key && Ce.ready === !1) || !!(I != null && I(R, jt))),
4651
4673
  sexOf: (R) => R.sex ?? on(ae.get(R.key))
4652
4674
  }
4653
4675
  ),
@@ -4711,7 +4733,7 @@ function Lu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4711
4733
  people: Mt,
4712
4734
  gvList: W,
4713
4735
  autoOf: Pt,
4714
- savedFor: qt,
4736
+ savedFor: Kt,
4715
4737
  closeVoices: Xe,
4716
4738
  setSheet: me,
4717
4739
  selectedSpeaker: ut,
@@ -4720,37 +4742,37 @@ function Lu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4720
4742
  armedId: Q.armId,
4721
4743
  resetCast: () => Ve((R) => ({ ...R, [De ?? ""]: {} })),
4722
4744
  readLang: typeof u == "string" && u !== l ? u : null,
4723
- readVoiceKey: p || (U ?? j ?? ((ln = ye.track) == null ? void 0 : ln.voiceKey) ?? ""),
4724
- pickedVoiceKey: U ?? j ?? null,
4725
- readVoiceName: (ke == null ? void 0 : ke.name) ?? null,
4745
+ readVoiceKey: p || (U ?? z ?? ((ln = ye.track) == null ? void 0 : ln.voiceKey) ?? ""),
4746
+ pickedVoiceKey: U ?? z ?? null,
4747
+ readVoiceName: (Le == null ? void 0 : Le.name) ?? null,
4726
4748
  canSpeak: se,
4727
- requestTrack: () => ye.requestRender(U ?? j, U ? $ : null),
4749
+ requestTrack: () => ye.requestRender(U ?? z, U ? $ : null),
4728
4750
  hasClone: q,
4729
4751
  clips: ye.clips,
4730
4752
  setNear: ye.setNear,
4731
4753
  closePicker: () => {
4732
4754
  ct && Be();
4733
4755
  },
4734
- langList: { value: ve ? null : we, onSelect: fn, languages: Ie, searchPlaceholder: Le.search, none: "Original", pinned: (ve ? l : we) ? [ve ? l : we] : [], recent: te }
4756
+ langList: { value: ve ? null : we, onSelect: fn, languages: Ie, searchPlaceholder: ke.search, none: "Original", pinned: (ve ? l : we) ? [ve ? l : we] : [], recent: te }
4735
4757
  };
4736
4758
  }
4737
- function ju({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a, onWord: o, onFix: l, fixMode: c, fixingId: u, marks: d = !0, fixBadges: M = !0, tail: f, tailFg: g, running: h, desk: y, feedRef: T, listener: N, showLabels: p, find: b, findOpen: C, lang: D, warm: V, onVisible: Y, wordHl: ee = !0 }) {
4738
- const { playing: I, engaged: F, t: A, idx: w, seekN: _, wordSync: x, clipPos: te } = n;
4739
- Fc(!0, T);
4740
- const K = k(null);
4741
- vc(T, K);
4742
- const [j, ie] = z(null), ne = (b ?? "").trim().toLowerCase(), [Z, J] = z(0), me = k(0), le = k(null), Te = k(w), je = (H) => {
4759
+ function Iu({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a, onWord: o, onFix: l, fixMode: c, fixingId: u, marks: d = !0, fixBadges: M = !0, tail: f, tailFg: g, running: h, desk: y, feedRef: T, listener: N, showLabels: p, find: b, findOpen: C, lang: D, warm: V, onVisible: Y, wordHl: ee = !0 }) {
4760
+ const { playing: I, engaged: F, t: A, idx: L, seekN: _, wordSync: x, clipPos: te } = n;
4761
+ Gc(!0, T);
4762
+ const K = w(null);
4763
+ Lc(T, K);
4764
+ const [z, ie] = j(null), ne = (b ?? "").trim().toLowerCase(), [Z, J] = j(0), me = w(0), le = w(null), Te = w(L), je = (H) => {
4743
4765
  var E;
4744
4766
  return ((E = T.current) == null ? void 0 : E.querySelector(`[data-tx-row="${H}"]`)) ?? null;
4745
- }, Se = k("");
4767
+ }, Se = w("");
4746
4768
  O(() => {
4747
4769
  const H = T.current;
4748
4770
  if (!H || !Y) return;
4749
4771
  const E = () => {
4750
4772
  const W = H.getBoundingClientRect(), Ne = [];
4751
- for (const Le of Array.from(H.querySelectorAll("[data-sentence]"))) {
4752
- const Ie = Le.getBoundingClientRect();
4753
- Ie.bottom > W.top && Ie.top < W.bottom && Ne.push(Number(Le.dataset.sentence));
4773
+ for (const ke of Array.from(H.querySelectorAll("[data-sentence]"))) {
4774
+ const Ie = ke.getBoundingClientRect();
4775
+ Ie.bottom > W.top && Ie.top < W.bottom && Ne.push(Number(ke.dataset.sentence));
4754
4776
  }
4755
4777
  const G = Ne.join(",");
4756
4778
  G !== Se.current && (Se.current = G, Y(Ne));
@@ -4777,7 +4799,7 @@ function ju({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4777
4799
  me.current = performance.now() + 420;
4778
4800
  const E = T.current, S = je(H);
4779
4801
  if (!E || !E.clientHeight || !S) return;
4780
- const B = S.getBoundingClientRect(), ce = E.getBoundingClientRect(), W = E.scrollHeight - E.clientHeight, Ne = E.scrollTop, G = zr(E), Le = Math.max(80, E.clientHeight - G.top - G.bottom), Ie = B.height > Le ? 8 : (Le - B.height) / 2, Fe = Math.max(0, Math.min(W, Ne + (B.top - ce.top) - G.top - Ie));
4802
+ const B = S.getBoundingClientRect(), ce = E.getBoundingClientRect(), W = E.scrollHeight - E.clientHeight, Ne = E.scrollTop, G = zr(E), ke = Math.max(80, E.clientHeight - G.top - G.bottom), Ie = B.height > ke ? 8 : (ke - B.height) / 2, Fe = Math.max(0, Math.min(W, Ne + (B.top - ce.top) - G.top - Ie));
4781
4803
  if (le.current && cancelAnimationFrame(le.current), Math.abs(Fe - Ne) < 2) {
4782
4804
  E.scrollTop = Fe, le.current = null;
4783
4805
  return;
@@ -4791,38 +4813,38 @@ function ju({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4791
4813
  O(() => () => {
4792
4814
  le.current && cancelAnimationFrame(le.current);
4793
4815
  }, []);
4794
- const $e = k(0);
4816
+ const $e = w(0);
4795
4817
  O(() => {
4796
4818
  if (!I) {
4797
- Te.current = w, $e.current = 0, J(0);
4819
+ Te.current = L, $e.current = 0, J(0);
4798
4820
  return;
4799
4821
  }
4800
4822
  const H = () => {
4801
- const S = w !== Te.current;
4802
- Te.current = w;
4803
- let B = performance.now() < me.current ? 0 : ve(w);
4804
- S && B && !$e.current && (we(w), B = 0), $e.current = B, J(B);
4823
+ const S = L !== Te.current;
4824
+ Te.current = L;
4825
+ let B = performance.now() < me.current ? 0 : ve(L);
4826
+ S && B && !$e.current && (we(L), B = 0), $e.current = B, J(B);
4805
4827
  };
4806
4828
  H();
4807
4829
  const E = setInterval(H, 200);
4808
4830
  return () => clearInterval(E);
4809
- }, [w, I]), O(() => {
4810
- _ && Ee(w);
4831
+ }, [L, I]), O(() => {
4832
+ _ && Ee(L);
4811
4833
  }, [_]);
4812
4834
  const De = () => {
4813
- Ee(w), $e.current = 0, J(0);
4835
+ Ee(L), $e.current = 0, J(0);
4814
4836
  }, Q = (H) => /* @__PURE__ */ i("div", { className: `txfollow txfollow--${H}`, children: /* @__PURE__ */ m("button", { type: "button", className: "txfollow__pill", title: "Jump to the line playing now", onClick: De, children: [
4815
4837
  /* @__PURE__ */ i(oe, { d: H === "up" ? "m4.5 15.75 7.5-7.5 7.5 7.5" : "m19.5 8.25-7.5 7.5-7.5-7.5", size: 15, sw: 2 }),
4816
4838
  "Now playing"
4817
4839
  ] }) });
4818
4840
  return /* @__PURE__ */ m("div", { ref: T, "data-tx-feed": "1", className: `txfeed${y ? " txfeed--desk" : ""}${C && !h ? " is-find" : ""}`, children: [
4819
- /* @__PURE__ */ i(wc, { thumbRef: K }),
4841
+ /* @__PURE__ */ i(kc, { thumbRef: K }),
4820
4842
  I && Z === -1 && Q("up"),
4821
4843
  e.map((H, E) => {
4822
4844
  var Me;
4823
- const S = I && E === w, B = F && E === w, ce = !!u && u === H.id, W = ne && !H.text.toLowerCase().includes(ne) && !(D && ((Me = H.translations[D]) != null && Me.toLowerCase().includes(ne))) ? 0.22 : !F || E <= w || ce ? 1 : 0.38, Ne = N ? () => n.playRow(E) : c && l ? () => {
4845
+ const S = I && E === L, B = F && E === L, ce = !!u && u === H.id, W = ne && !H.text.toLowerCase().includes(ne) && !(D && ((Me = H.translations[D]) != null && Me.toLowerCase().includes(ne))) ? 0.22 : !F || E <= L || ce ? 1 : 0.38, Ne = N ? () => n.playRow(E) : c && l ? () => {
4824
4846
  I && !S && n.seekRow(E), l(H);
4825
- } : I && S ? void 0 : () => n.playRow(E), G = N ? null : jc(H, s, r), Le = !!G && (G.script > 0 || G.manual), Ie = y && !!a && j === H.id && !!G && !Le, Fe = Wr(t, H.speaker), Ae = Fr(t, H.speaker), ue = Ae.lane, _e = D && H.translations[D] && H.language !== D ? H.translations[D] : null, Ve = ka(e, E, D), P = B && !x && te ? ea(Ve.map((de) => ({ t: de.text, sp: " " })), te) : null;
4847
+ } : I && S ? void 0 : () => n.playRow(E), G = N ? null : Ic(H, s, r), ke = !!G && (G.script > 0 || G.manual), Ie = y && !!a && z === H.id && !!G && !ke, Fe = Wr(t, H.speaker), Ae = Fr(t, H.speaker), ue = Ae.lane, _e = D && H.translations[D] && H.language !== D ? H.translations[D] : null, Ve = La(e, E, D), P = B && !x && te ? ea(Ve.map((de) => ({ t: de.text, sp: " " })), te) : null;
4826
4848
  return /* @__PURE__ */ m("div", { "data-tx-row": E, "data-sentence": H.sentenceId, className: `txline${V ? " txline--warm" : ""}${ce ? " txline--fixing" : ""}`, "aria-current": ce || void 0, style: { opacity: W }, onClick: Ne, onMouseEnter: y && a ? () => ie(H.id) : void 0, onMouseLeave: y && a ? () => ie(null) : void 0, children: [
4827
4849
  /* @__PURE__ */ m("div", { className: "txline__meta", children: [
4828
4850
  /* @__PURE__ */ i("span", { className: "txline__at", children: Ot(H.start) }),
@@ -4832,20 +4854,20 @@ function ju({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4832
4854
  Ae.hasVoice && /* @__PURE__ */ i(Na, { color: Ae.fg ?? `var(--lane-${ue})` })
4833
4855
  ] }),
4834
4856
  S && /* @__PURE__ */ i("span", { title: "Playing", style: { flex: "none", display: "inline-flex", alignItems: "center" }, children: /* @__PURE__ */ i(oe, { d: X.headphones, size: y ? 15 : 14, sw: 1.6, stroke: p && H.speaker >= 0 ? Ae.fg ?? `var(--lane-${ue})` : "var(--ink-45)" }) }),
4835
- G && M && /* @__PURE__ */ i(zc, { f: G, desk: y, onOpen: a ? () => a(H, !0) : void 0 }),
4836
- Ie && /* @__PURE__ */ i(Ic, { alone: !0, onOpen: () => a == null ? void 0 : a(H, !1) })
4857
+ G && M && /* @__PURE__ */ i(bc, { f: G, desk: y, onOpen: a ? () => a(H, !0) : void 0 }),
4858
+ Ie && /* @__PURE__ */ i(Oc, { alone: !0, onOpen: () => a == null ? void 0 : a(H, !1) })
4837
4859
  ] }),
4838
4860
  /* @__PURE__ */ i("div", { className: "txline__text", children: Ve.map((de, ae) => {
4839
- const ge = `${de.seq}:${de.idx}`, Ye = Wl(de.prob), U = B && ee, $ = U && (x ? A >= de.start && (A < de.end || ae === Ve.length - 1 || A < Ve[ae + 1].start) : ae === P), q = U && !$ && (x ? de.start > A : P != null && ae > P), se = !_e && !N && (!!(r != null && r.has(ge)) || !!de.script), he = !_e && !N && d && !!Ye && !se, be = he ? Ye === "low" ? "var(--conf-low-half)" : "var(--conf-mid-half)" : null, ye = se ? "var(--brand)" : q ? "var(--ink-40)" : be ?? "var(--ink-96)";
4861
+ const ge = `${de.seq}:${de.idx}`, Ye = Zl(de.prob), U = B && ee, $ = U && (x ? A >= de.start && (A < de.end || ae === Ve.length - 1 || A < Ve[ae + 1].start) : ae === P), q = U && !$ && (x ? de.start > A : P != null && ae > P), se = !_e && !N && (!!(r != null && r.has(ge)) || !!de.script), he = !_e && !N && d && !!Ye && !se, be = he ? Ye === "low" ? "var(--conf-low-half)" : "var(--conf-mid-half)" : null, ye = se ? "var(--brand)" : q ? "var(--ink-40)" : be ?? "var(--ink-96)";
4840
4862
  return /* @__PURE__ */ m("span", { children: [
4841
4863
  /* @__PURE__ */ i(
4842
4864
  "span",
4843
4865
  {
4844
4866
  className: "txw",
4845
4867
  title: o && !_e ? c ? "Correct this word" : S && I && n.seekWord ? "Play from this word" : "Play from this line" : S ? "" : "Play from this line",
4846
- onClick: o && !_e ? (ke) => {
4868
+ onClick: o && !_e ? (Le) => {
4847
4869
  var Oe;
4848
- if (ke.stopPropagation(), c) {
4870
+ if (Le.stopPropagation(), c) {
4849
4871
  o(H, de);
4850
4872
  return;
4851
4873
  }
@@ -4872,7 +4894,7 @@ function ju({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4872
4894
  I && Z === 1 && Q("down")
4873
4895
  ] });
4874
4896
  }
4875
- function zu({ open: t, q: e, onQ: n, onClose: r, hits: s, desk: a, inline: o, flash: l }) {
4897
+ function bu({ open: t, q: e, onQ: n, onClose: r, hits: s, desk: a, inline: o, flash: l }) {
4876
4898
  return /* @__PURE__ */ i("div", { className: o ? "searchbar searchbar--inline" : `searchbar searchbar--float${a ? " searchbar--desk" : ""}${t ? "" : " is-hidden"}`, children: /* @__PURE__ */ m("div", { children: [
4877
4899
  /* @__PURE__ */ i(oe, { d: X.search, size: 16, sw: 1.7, style: { color: "var(--ink-45)", flex: "none" } }),
4878
4900
  /* @__PURE__ */ i("input", { value: e, onChange: (c) => n(c.target.value), onKeyDown: (c) => {
@@ -4886,12 +4908,12 @@ function zu({ open: t, q: e, onQ: n, onClose: r, hits: s, desk: a, inline: o, fl
4886
4908
  e.trim() && /* @__PURE__ */ i("button", { type: "button", className: "searchbar__x", onClick: () => n(""), "aria-label": "Clear", title: "Clear", children: /* @__PURE__ */ i(oe, { d: X.close, size: 15, sw: 1.7 }) })
4887
4909
  ] }) });
4888
4910
  }
4889
- function Iu(t, e, n, r, s) {
4890
- const a = k(n);
4911
+ function Ou(t, e, n, r, s) {
4912
+ const a = w(n);
4891
4913
  a.current = n;
4892
- const o = k(r);
4914
+ const o = w(r);
4893
4915
  o.current = r;
4894
- const [l, c] = z(0), u = r.trim().toLowerCase();
4916
+ const [l, c] = j(0), u = r.trim().toLowerCase();
4895
4917
  return O(() => {
4896
4918
  c(u ? e.filter((d) => d.text.toLowerCase().includes(u)).length : 0);
4897
4919
  }, [e, u]), O(() => {
@@ -4916,7 +4938,7 @@ function Iu(t, e, n, r, s) {
4916
4938
  }, []), l;
4917
4939
  }
4918
4940
  const Mn = { formatBits: 0, perBlock: [-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28], blocks: [-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49] };
4919
- function La(t) {
4941
+ function ka(t) {
4920
4942
  let e = (16 * t + 128) * t + 64;
4921
4943
  if (t >= 2) {
4922
4944
  const n = Math.floor(t / 7) + 2;
@@ -4924,14 +4946,14 @@ function La(t) {
4924
4946
  }
4925
4947
  return e;
4926
4948
  }
4927
- const Ui = (t) => Math.floor(La(t) / 8) - Mn.perBlock[t] * Mn.blocks[t];
4949
+ const Ui = (t) => Math.floor(ka(t) / 8) - Mn.perBlock[t] * Mn.blocks[t];
4928
4950
  function Rr(t, e) {
4929
4951
  let n = 0;
4930
4952
  for (let r = 7; r >= 0; r--)
4931
4953
  n = n << 1 ^ (n >>> 7) * 285, n ^= (e >>> r & 1) * t;
4932
4954
  return n;
4933
4955
  }
4934
- function bu(t) {
4956
+ function xu(t) {
4935
4957
  const e = new Array(t).fill(0);
4936
4958
  e[t - 1] = 1;
4937
4959
  let n = 1;
@@ -4941,7 +4963,7 @@ function bu(t) {
4941
4963
  }
4942
4964
  return e;
4943
4965
  }
4944
- function Ou(t, e) {
4966
+ function Cu(t, e) {
4945
4967
  const n = new Array(e.length).fill(0);
4946
4968
  for (const r of t) {
4947
4969
  const s = r ^ n.shift();
@@ -4951,85 +4973,85 @@ function Ou(t, e) {
4951
4973
  }
4952
4974
  return n;
4953
4975
  }
4954
- function xu(t) {
4976
+ function Su(t) {
4955
4977
  if (t === 1) return [];
4956
4978
  const e = Math.floor(t / 7) + 2, n = t * 4 + 17, r = t === 32 ? 26 : Math.ceil((t * 4 + 4) / (e * 2 - 2)) * 2, s = [6];
4957
4979
  for (let a = n - 7; s.length < e; a -= r) s.splice(1, 0, a);
4958
4980
  return s;
4959
4981
  }
4960
- function Cu(t) {
4982
+ function Du(t) {
4961
4983
  const e = Array.from(new TextEncoder().encode(t));
4962
4984
  let n = 1;
4963
4985
  for (; n <= 40 && !(4 + (n <= 9 ? 8 : 16) + e.length * 8 <= Ui(n) * 8); n++)
4964
4986
  ;
4965
4987
  if (n > 40) throw new Error("Text too long for a QR code");
4966
- const r = n * 4 + 17, s = Ui(n) * 8, a = [], o = (w, _) => {
4967
- for (let x = _ - 1; x >= 0; x--) a.push(w >>> x & 1);
4988
+ const r = n * 4 + 17, s = Ui(n) * 8, a = [], o = (L, _) => {
4989
+ for (let x = _ - 1; x >= 0; x--) a.push(L >>> x & 1);
4968
4990
  };
4969
4991
  o(4, 4), o(e.length, n <= 9 ? 8 : 16);
4970
- for (const w of e) o(w, 8);
4992
+ for (const L of e) o(L, 8);
4971
4993
  for (o(0, Math.min(4, s - a.length)); a.length % 8; ) a.push(0);
4972
- for (let w = 236; a.length < s; w ^= 253) o(w, 8);
4994
+ for (let L = 236; a.length < s; L ^= 253) o(L, 8);
4973
4995
  const l = [];
4974
- for (let w = 0; w < a.length; w += 8) l.push(a.slice(w, w + 8).reduce((_, x) => _ << 1 | x, 0));
4975
- const c = Mn.blocks[n], u = Mn.perBlock[n], d = Math.floor(La(n) / 8), M = c - d % c, f = Math.floor(d / c), g = [], h = bu(u);
4976
- for (let w = 0, _ = 0; w < c; w++) {
4977
- const x = l.slice(_, _ + f - u + (w < M ? 0 : 1));
4996
+ for (let L = 0; L < a.length; L += 8) l.push(a.slice(L, L + 8).reduce((_, x) => _ << 1 | x, 0));
4997
+ const c = Mn.blocks[n], u = Mn.perBlock[n], d = Math.floor(ka(n) / 8), M = c - d % c, f = Math.floor(d / c), g = [], h = xu(u);
4998
+ for (let L = 0, _ = 0; L < c; L++) {
4999
+ const x = l.slice(_, _ + f - u + (L < M ? 0 : 1));
4978
5000
  _ += x.length;
4979
- const te = Ou(x, h);
4980
- w < M && x.push(0), g.push(x.concat(te));
5001
+ const te = Cu(x, h);
5002
+ L < M && x.push(0), g.push(x.concat(te));
4981
5003
  }
4982
5004
  const y = [];
4983
- for (let w = 0; w < g[0].length; w++) g.forEach((_, x) => {
4984
- (w !== f - u || x >= M) && y.push(_[w]);
5005
+ for (let L = 0; L < g[0].length; L++) g.forEach((_, x) => {
5006
+ (L !== f - u || x >= M) && y.push(_[L]);
4985
5007
  });
4986
- const T = Array.from({ length: r }, () => new Array(r).fill(!1)), N = Array.from({ length: r }, () => new Array(r).fill(!1)), p = (w, _, x) => {
4987
- T[_][w] = x, N[_][w] = !0;
5008
+ const T = Array.from({ length: r }, () => new Array(r).fill(!1)), N = Array.from({ length: r }, () => new Array(r).fill(!1)), p = (L, _, x) => {
5009
+ T[_][L] = x, N[_][L] = !0;
4988
5010
  };
4989
- for (let w = 0; w < r; w++)
4990
- p(6, w, w % 2 === 0), p(w, 6, w % 2 === 0);
4991
- const b = (w, _) => {
5011
+ for (let L = 0; L < r; L++)
5012
+ p(6, L, L % 2 === 0), p(L, 6, L % 2 === 0);
5013
+ const b = (L, _) => {
4992
5014
  for (let x = -4; x <= 4; x++) for (let te = -4; te <= 4; te++) {
4993
- const K = Math.max(Math.abs(te), Math.abs(x)), j = w + te, ie = _ + x;
4994
- j >= 0 && j < r && ie >= 0 && ie < r && p(j, ie, K !== 2 && K !== 4);
5015
+ const K = Math.max(Math.abs(te), Math.abs(x)), z = L + te, ie = _ + x;
5016
+ z >= 0 && z < r && ie >= 0 && ie < r && p(z, ie, K !== 2 && K !== 4);
4995
5017
  }
4996
5018
  };
4997
5019
  b(3, 3), b(r - 4, 3), b(3, r - 4);
4998
- const C = xu(n);
4999
- for (let w = 0; w < C.length; w++) for (let _ = 0; _ < C.length; _++)
5000
- if (!(w === 0 && _ === 0 || w === 0 && _ === C.length - 1 || w === C.length - 1 && _ === 0))
5001
- for (let x = -2; x <= 2; x++) for (let te = -2; te <= 2; te++) p(C[w] + te, C[_] + x, Math.max(Math.abs(te), Math.abs(x)) !== 1);
5002
- const D = (w) => {
5003
- const _ = Mn.formatBits << 3 | w;
5020
+ const C = Su(n);
5021
+ for (let L = 0; L < C.length; L++) for (let _ = 0; _ < C.length; _++)
5022
+ if (!(L === 0 && _ === 0 || L === 0 && _ === C.length - 1 || L === C.length - 1 && _ === 0))
5023
+ for (let x = -2; x <= 2; x++) for (let te = -2; te <= 2; te++) p(C[L] + te, C[_] + x, Math.max(Math.abs(te), Math.abs(x)) !== 1);
5024
+ const D = (L) => {
5025
+ const _ = Mn.formatBits << 3 | L;
5004
5026
  let x = _;
5005
- for (let j = 0; j < 10; j++) x = x << 1 ^ (x >>> 9) * 1335;
5006
- const te = (_ << 10 | x) ^ 21522, K = (j) => (te >>> j & 1) !== 0;
5007
- for (let j = 0; j <= 5; j++) p(8, j, K(j));
5027
+ for (let z = 0; z < 10; z++) x = x << 1 ^ (x >>> 9) * 1335;
5028
+ const te = (_ << 10 | x) ^ 21522, K = (z) => (te >>> z & 1) !== 0;
5029
+ for (let z = 0; z <= 5; z++) p(8, z, K(z));
5008
5030
  p(8, 7, K(6)), p(8, 8, K(7)), p(7, 8, K(8));
5009
- for (let j = 9; j < 15; j++) p(14 - j, 8, K(j));
5010
- for (let j = 0; j < 8; j++) p(r - 1 - j, 8, K(j));
5011
- for (let j = 8; j < 15; j++) p(8, r - 15 + j, K(j));
5031
+ for (let z = 9; z < 15; z++) p(14 - z, 8, K(z));
5032
+ for (let z = 0; z < 8; z++) p(r - 1 - z, 8, K(z));
5033
+ for (let z = 8; z < 15; z++) p(8, r - 15 + z, K(z));
5012
5034
  p(8, r - 8, !0);
5013
5035
  };
5014
5036
  if (D(0), n >= 7) {
5015
- let w = n;
5016
- for (let x = 0; x < 12; x++) w = w << 1 ^ (w >>> 11) * 7973;
5017
- const _ = n << 12 | w;
5037
+ let L = n;
5038
+ for (let x = 0; x < 12; x++) L = L << 1 ^ (L >>> 11) * 7973;
5039
+ const _ = n << 12 | L;
5018
5040
  for (let x = 0; x < 18; x++) {
5019
- const te = (_ >>> x & 1) !== 0, K = r - 11 + x % 3, j = Math.floor(x / 3);
5020
- p(K, j, te), p(j, K, te);
5041
+ const te = (_ >>> x & 1) !== 0, K = r - 11 + x % 3, z = Math.floor(x / 3);
5042
+ p(K, z, te), p(z, K, te);
5021
5043
  }
5022
5044
  }
5023
5045
  let V = 0;
5024
- for (let w = r - 1; w >= 1; w -= 2) {
5025
- w === 6 && (w = 5);
5046
+ for (let L = r - 1; L >= 1; L -= 2) {
5047
+ L === 6 && (L = 5);
5026
5048
  for (let _ = 0; _ < r; _++) for (let x = 0; x < 2; x++) {
5027
- const te = w - x, K = w + 1 & 2 ? _ : r - 1 - _;
5049
+ const te = L - x, K = L + 1 & 2 ? _ : r - 1 - _;
5028
5050
  !N[K][te] && V < y.length * 8 && (T[K][te] = (y[V >>> 3] >>> 7 - (V & 7) & 1) !== 0, V++);
5029
5051
  }
5030
5052
  }
5031
- const Y = (w, _, x) => {
5032
- switch (w) {
5053
+ const Y = (L, _, x) => {
5054
+ switch (L) {
5033
5055
  case 0:
5034
5056
  return (_ + x) % 2 === 0;
5035
5057
  case 1:
@@ -5047,10 +5069,10 @@ function Cu(t) {
5047
5069
  default:
5048
5070
  return ((_ + x) % 2 + _ * x % 3) % 2 === 0;
5049
5071
  }
5050
- }, ee = (w) => {
5051
- for (let _ = 0; _ < r; _++) for (let x = 0; x < r; x++) !N[_][x] && Y(w, x, _) && (T[_][x] = !T[_][x]);
5072
+ }, ee = (L) => {
5073
+ for (let _ = 0; _ < r; _++) for (let x = 0; x < r; x++) !N[_][x] && Y(L, x, _) && (T[_][x] = !T[_][x]);
5052
5074
  }, I = () => {
5053
- let w = 0;
5075
+ let L = 0;
5054
5076
  const _ = (ne) => {
5055
5077
  const Z = ne[1], J = Z > 0 && ne[2] === Z && ne[3] === Z * 3 && ne[4] === Z && ne[5] === Z;
5056
5078
  return (J && ne[0] >= Z * 4 && ne[6] >= Z ? 1 : 0) + (J && ne[6] >= Z * 4 && ne[0] >= Z ? 1 : 0);
@@ -5060,36 +5082,36 @@ function Cu(t) {
5060
5082
  let Z = !1, J = 0;
5061
5083
  const me = [0, 0, 0, 0, 0, 0, 0];
5062
5084
  for (let le = 0; le < r; le++)
5063
- ne(le) === Z ? (J++, J === 5 ? w += 3 : J > 5 && w++) : (x(me, J), Z || (w += _(me) * 40), Z = ne(le), J = 1);
5064
- w += te(me, Z, J) * 40;
5085
+ ne(le) === Z ? (J++, J === 5 ? L += 3 : J > 5 && L++) : (x(me, J), Z || (L += _(me) * 40), Z = ne(le), J = 1);
5086
+ L += te(me, Z, J) * 40;
5065
5087
  };
5066
5088
  for (let ne = 0; ne < r; ne++) K((Z) => T[ne][Z]);
5067
5089
  for (let ne = 0; ne < r; ne++) K((Z) => T[Z][ne]);
5068
5090
  for (let ne = 0; ne < r - 1; ne++) for (let Z = 0; Z < r - 1; Z++) {
5069
5091
  const J = T[ne][Z];
5070
- J === T[ne][Z + 1] && J === T[ne + 1][Z] && J === T[ne + 1][Z + 1] && (w += 3);
5092
+ J === T[ne][Z + 1] && J === T[ne + 1][Z] && J === T[ne + 1][Z + 1] && (L += 3);
5071
5093
  }
5072
- let j = 0;
5073
- for (const ne of T) for (const Z of ne) Z && j++;
5094
+ let z = 0;
5095
+ for (const ne of T) for (const Z of ne) Z && z++;
5074
5096
  const ie = r * r;
5075
- return w += (Math.ceil(Math.abs(j * 20 - ie * 10) / ie) - 1) * 10, w;
5097
+ return L += (Math.ceil(Math.abs(z * 20 - ie * 10) / ie) - 1) * 10, L;
5076
5098
  };
5077
5099
  let F = 0, A = 1 / 0;
5078
- for (let w = 0; w < 8; w++) {
5079
- ee(w), D(w);
5100
+ for (let L = 0; L < 8; L++) {
5101
+ ee(L), D(L);
5080
5102
  const _ = I();
5081
- _ < A && (A = _, F = w), ee(w);
5103
+ _ < A && (A = _, F = L), ee(L);
5082
5104
  }
5083
5105
  return ee(F), D(F), T;
5084
5106
  }
5085
- function Su(t) {
5086
- const e = Cu(t), n = e.length, r = 2;
5107
+ function Au(t) {
5108
+ const e = Du(t), n = e.length, r = 2;
5087
5109
  let s = "";
5088
5110
  for (let o = 0; o < n; o++) for (let l = 0; l < n; l++) e[o][l] && (s += `M${l} ${o}h1v1h-1z`);
5089
5111
  const a = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${-r} ${-r} ${n + r * 2} ${n + r * 2}" shape-rendering="crispEdges"><rect x="${-r}" y="${-r}" width="${n + r * 2}" height="${n + r * 2}" fill="#fff"/><path fill="#111" d="${s}"/></svg>`;
5090
5112
  return `data:image/svg+xml,${encodeURIComponent(a)}`;
5091
5113
  }
5092
- const ja = "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15", Du = "M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25";
5114
+ const ja = "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15", Eu = "M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25";
5093
5115
  function Ir() {
5094
5116
  const t = document;
5095
5117
  return t.fullscreenElement ?? t.webkitFullscreenElement ?? null;
@@ -5102,7 +5124,7 @@ function Ri() {
5102
5124
  const t = document;
5103
5125
  return !!(t.fullscreenEnabled || t.webkitFullscreenEnabled);
5104
5126
  }
5105
- function Au() {
5127
+ function _u() {
5106
5128
  var e;
5107
5129
  if (typeof document > "u" || !((e = window.matchMedia) != null && e.call(window, "(pointer: coarse)").matches)) return !1;
5108
5130
  const t = Kr ?? document.documentElement;
@@ -5123,8 +5145,8 @@ function $n(t) {
5123
5145
  } catch {
5124
5146
  }
5125
5147
  }
5126
- function Eu(t) {
5127
- const [e, n] = z(() => {
5148
+ function Yu(t) {
5149
+ const [e, n] = j(() => {
5128
5150
  var r;
5129
5151
  return typeof window < "u" && !!((r = window.matchMedia) != null && r.call(window, t).matches);
5130
5152
  });
@@ -5137,7 +5159,7 @@ function Eu(t) {
5137
5159
  }, [t]), e;
5138
5160
  }
5139
5161
  function Rn({ pos: t, interactive: e, axis: n = "x" }) {
5140
- const [r, s] = z(null), a = (c) => {
5162
+ const [r, s] = j(null), a = (c) => {
5141
5163
  const u = c.currentTarget.getBoundingClientRect(), d = n === "y" ? (c.clientY - u.top) / Math.max(1, u.height) : (c.clientX - u.left) / Math.max(1, u.width);
5142
5164
  return Math.min(1, Math.max(0, d));
5143
5165
  }, o = (c) => {
@@ -5175,8 +5197,8 @@ function Rn({ pos: t, interactive: e, axis: n = "x" }) {
5175
5197
  /* @__PURE__ */ i("span", { className: "gfull__t gfull__end", style: { color: t.live ? "#ec634d" : "rgba(234,236,250,.6)" }, children: t.endLabel })
5176
5198
  ] });
5177
5199
  }
5178
- function kd({ pos: t }) {
5179
- const [e, n] = z(null), r = (l) => {
5200
+ function jd({ pos: t }) {
5201
+ const [e, n] = j(null), r = (l) => {
5180
5202
  const c = l.currentTarget.getBoundingClientRect();
5181
5203
  return Math.min(1, Math.max(0, (l.clientX - c.left) / Math.max(1, c.width)));
5182
5204
  }, s = (l) => {
@@ -5229,7 +5251,7 @@ function Pn({ t, mini: e }) {
5229
5251
  disabled: !t.playable,
5230
5252
  style: { background: t.playable ? t.playing ? "rgba(238,240,248,.92)" : "var(--brand)" : "rgba(5,6,21,.42)", color: t.playable ? t.playing ? "#131326" : "var(--brand-ink)" : "rgba(234,236,250,.5)", cursor: t.playable ? "pointer" : "default" },
5231
5253
  onClick: t.onPlay,
5232
- children: t.busy ? /* @__PURE__ */ i("span", { className: "gfull__spin", "aria-hidden": "true" }) : t.playing ? /* @__PURE__ */ i(ko, { size: e ? 14 : 18 }) : /* @__PURE__ */ i(xt, { size: e ? 15 : 19 })
5254
+ children: t.busy ? /* @__PURE__ */ i("span", { className: "gfull__spin", "aria-hidden": "true" }) : t.playing ? /* @__PURE__ */ i(Lo, { size: e ? 14 : 18 }) : /* @__PURE__ */ i(xt, { size: e ? 15 : 19 })
5233
5255
  }
5234
5256
  ),
5235
5257
  /* @__PURE__ */ i("button", { type: "button", className: "gfull__step", "aria-label": "Next line", title: "Next line", style: { opacity: t.nextOn ? 1 : 0.3 }, onClick: t.onNext, children: /* @__PURE__ */ i(oe, { d: X.chevronRight, size: e ? 13 : 16, sw: e ? 1.8 : 1.9 }) })
@@ -5251,7 +5273,7 @@ function za({ v: t, size: e }) {
5251
5273
  t.busy && /* @__PURE__ */ i("span", { "aria-hidden": "true", style: { position: "absolute", inset: 0, boxSizing: "border-box", borderRadius: "50%", border: "2px solid var(--fill-12)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite", pointerEvents: "none" } })
5252
5274
  ] });
5253
5275
  }
5254
- function _u({ pos: t, transport: e, chip: n, voices: r, onShare: s, onFull: a, copied: o }) {
5276
+ function Uu({ pos: t, transport: e, chip: n, voices: r, onShare: s, onFull: a, copied: o }) {
5255
5277
  return /* @__PURE__ */ m("div", { className: "gmini", "data-theme": "dark", children: [
5256
5278
  /* @__PURE__ */ i("div", { className: "gmini__shade", "aria-hidden": "true" }),
5257
5279
  /* @__PURE__ */ i("div", { className: "gmini__top", children: /* @__PURE__ */ i(Pr, { live: t.live, mini: !0 }) }),
@@ -5271,20 +5293,20 @@ function _u({ pos: t, transport: e, chip: n, voices: r, onShare: s, onFull: a, c
5271
5293
  o
5272
5294
  ] });
5273
5295
  }
5274
- const Yu = { color: "rgba(255,255,255,.4)" };
5296
+ const $u = { color: "rgba(255,255,255,.4)" };
5275
5297
  function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title: s, desk: a, pos: o, sub: l, wait: c, pct: u, mute: d, cc: M, ad: f, chip: g, transport: h, picker: y, sheet: T, voices: N, voicesBtn: p, sheetOpen: b, onShare: C, onSettings: D, paused: V, copied: Y, onTouch: ee, onClose: I }) {
5276
- const [F, A] = z(() => !!Ir());
5298
+ const [F, A] = j(() => !!Ir());
5277
5299
  O(() => {
5278
5300
  const P = () => A(!!Ir());
5279
5301
  return document.addEventListener("fullscreenchange", P), document.addEventListener("webkitfullscreenchange", P), () => {
5280
5302
  document.removeEventListener("fullscreenchange", P), document.removeEventListener("webkitfullscreenchange", P);
5281
5303
  };
5282
5304
  }, []);
5283
- const w = k(I);
5284
- w.current = I;
5285
- const _ = k(h.playable ? h.onPlay : void 0);
5305
+ const L = w(I);
5306
+ L.current = I;
5307
+ const _ = w(h.playable ? h.onPlay : void 0);
5286
5308
  _.current = h.playable ? h.onPlay : void 0;
5287
- const [x, te] = z(!1), [K, j] = z(0), ie = k(!1);
5309
+ const [x, te] = j(!1), [K, z] = j(0), ie = w(!1);
5288
5310
  O(() => () => $n(!1), []), O(() => {
5289
5311
  if (!n) return;
5290
5312
  const P = [document.documentElement, document.body], Me = P.map((ge) => ge.style.background);
@@ -5298,7 +5320,7 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5298
5320
  }), de && ae && (de.content = ae);
5299
5321
  };
5300
5322
  }, []);
5301
- const ne = ze(() => n && Au(), [n]), [Z, J] = z(ne);
5323
+ const ne = ze(() => n && _u(), [n]), [Z, J] = j(ne);
5302
5324
  O(() => {
5303
5325
  if (!n) return;
5304
5326
  const P = [document.documentElement, document.body], Me = P.map((ge) => [ge.style.overflow, ge.style.overscrollBehavior]);
@@ -5317,11 +5339,11 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5317
5339
  window.removeEventListener("scroll", ae), de.remove(), document.documentElement.style.overscrollBehavior = Me[0][1], window.scrollTo(0, 0);
5318
5340
  };
5319
5341
  }, [ne, n]);
5320
- const me = k(b);
5342
+ const me = w(b);
5321
5343
  me.current = b, O(() => {
5322
5344
  const P = (ae) => ae instanceof HTMLElement && (ae.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(ae.tagName)), Me = (ae) => {
5323
5345
  var ge;
5324
- ae.key === "Escape" && !me.current && w.current && (ae.stopPropagation(), w.current()), ae.key === " " && !me.current && !P(ae.target) && (ae.preventDefault(), ae.stopPropagation(), ae.repeat || (ge = _.current) == null || ge.call(_)), (ae.key === "f" || ae.key === "F") && !ae.metaKey && !ae.ctrlKey && !ae.altKey && !me.current && !P(ae.target) && Ri() && (ae.preventDefault(), ae.repeat || $n(!Ir()));
5346
+ ae.key === "Escape" && !me.current && L.current && (ae.stopPropagation(), L.current()), ae.key === " " && !me.current && !P(ae.target) && (ae.preventDefault(), ae.stopPropagation(), ae.repeat || (ge = _.current) == null || ge.call(_)), (ae.key === "f" || ae.key === "F") && !ae.metaKey && !ae.ctrlKey && !ae.altKey && !me.current && !P(ae.target) && Ri() && (ae.preventDefault(), ae.repeat || $n(!Ir()));
5325
5347
  }, de = (ae) => {
5326
5348
  ae.key === " " && !me.current && !P(ae.target) && ae.preventDefault();
5327
5349
  };
@@ -5329,7 +5351,7 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5329
5351
  window.removeEventListener("keydown", Me, !0), window.removeEventListener("keyup", de, !0);
5330
5352
  };
5331
5353
  }, []);
5332
- const le = Eu("(orientation: landscape) and (max-height: 540px)"), Te = k(null), [je, Se] = z(null);
5354
+ const le = Yu("(orientation: landscape) and (max-height: 540px)"), Te = w(null), [je, Se] = j(null);
5333
5355
  tn(() => {
5334
5356
  const P = Te.current;
5335
5357
  if (!P || (Se(P.getBoundingClientRect().width), typeof ResizeObserver > "u")) return;
@@ -5342,13 +5364,13 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5342
5364
  const P = setTimeout(() => te(!0), 3e3);
5343
5365
  return () => clearTimeout(P);
5344
5366
  }, [h.playing, b, K]);
5345
- const $e = k(x);
5367
+ const $e = w(x);
5346
5368
  $e.current = x;
5347
- const De = k(0), Q = (P) => {
5369
+ const De = w(0), Q = (P) => {
5348
5370
  if (P.pointerType !== "mouse") return;
5349
5371
  const Me = Date.now();
5350
- !$e.current && Me - De.current < 1e3 || (De.current = Me, j((de) => de + 1));
5351
- }, H = !ve && le, E = k(null), S = l ? l.words.map((P) => P.dim ? 0 : 1).join("") + l.words.length + ":" + (l.cursor ?? "") : "";
5372
+ !$e.current && Me - De.current < 1e3 || (De.current = Me, z((de) => de + 1));
5373
+ }, H = !ve && le, E = w(null), S = l ? l.words.map((P) => P.dim ? 0 : 1).join("") + l.words.length + ":" + (l.cursor ?? "") : "";
5352
5374
  tn(() => {
5353
5375
  const P = E.current;
5354
5376
  if (!P) return;
@@ -5360,11 +5382,11 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5360
5382
  const U = (he) => Math.round((he.getBoundingClientRect().top - P.getBoundingClientRect().top + P.scrollTop) / ae), $ = Math.max(1, Math.round(P.clientHeight / ae)), q = Me ? de.length ? Math.floor(U(de[de.length - 1]) / $) * $ * ae : 0 : Ye, se = Math.max(0, Math.min(Ye, q));
5361
5383
  Math.abs(se - P.scrollTop) > 1 && (P.scrollTop = se);
5362
5384
  }, [S, H]);
5363
- const [B, ce] = z(!0), [W, Ne] = z(!1), G = k(void 0);
5385
+ const [B, ce] = j(!0), [W, Ne] = j(!1), G = w(void 0);
5364
5386
  O(() => () => window.clearTimeout(G.current), []);
5365
- const Le = V != null && V.share ? V.share.url(B && V.share.at >= 1 ? Math.floor(V.share.at) : null) : "", Ie = ze(() => ve && Le && !h.playing ? Su(Le) : "", [ve, Le, h.playing]), Fe = () => {
5387
+ const ke = V != null && V.share ? V.share.url(B && V.share.at >= 1 ? Math.floor(V.share.at) : null) : "", Ie = ze(() => ve && ke && !h.playing ? Au(ke) : "", [ve, ke, h.playing]), Fe = () => {
5366
5388
  var P;
5367
- (P = navigator.clipboard) == null || P.writeText(Le).then(() => {
5389
+ (P = navigator.clipboard) == null || P.writeText(ke).then(() => {
5368
5390
  Ne(!0), window.clearTimeout(G.current), G.current = window.setTimeout(() => Ne(!1), 1800);
5369
5391
  }, () => {
5370
5392
  });
@@ -5377,13 +5399,13 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5377
5399
  "Start at ",
5378
5400
  Ot(Math.floor(V.share.at))
5379
5401
  ] }),
5380
- /* @__PURE__ */ i("div", { className: "gfull__shareurl", children: /* @__PURE__ */ i("span", { children: Le.replace(/^https?:\/\//, "") }) }),
5402
+ /* @__PURE__ */ i("div", { className: "gfull__shareurl", children: /* @__PURE__ */ i("span", { children: ke.replace(/^https?:\/\//, "") }) }),
5381
5403
  /* @__PURE__ */ m("div", { className: "gfull__shareacts", children: [
5382
5404
  /* @__PURE__ */ m("button", { type: "button", className: "gfull__sharebtn gfull__sharebtn--main", onClick: Fe, children: [
5383
5405
  /* @__PURE__ */ i(oe, { d: W ? X.check : X.copy, size: 14, sw: 1.8 }),
5384
5406
  W ? "Copied" : "Copy link"
5385
5407
  ] }),
5386
- /* @__PURE__ */ m("button", { type: "button", className: "gfull__sharebtn", onClick: () => qr(Le, s), children: [
5408
+ /* @__PURE__ */ m("button", { type: "button", className: "gfull__sharebtn", onClick: () => qr(ke, s), children: [
5387
5409
  /* @__PURE__ */ i(oe, { d: X.share, size: 14, sw: 1.6 }),
5388
5410
  "Share"
5389
5411
  ] })
@@ -5392,7 +5414,7 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5392
5414
  ] }), ue = (P, Me, de, ae, ge, Ye = 0) => /* @__PURE__ */ i("button", { type: "button", className: "gfull__btn", title: P, "aria-label": P, onClick: ae, children: /* @__PURE__ */ i(oe, { d: Me, size: (ve ? 20 : Ee ? 15 : 18) + Ye, sw: de, style: ge }) }), _e = /* @__PURE__ */ m("div", { className: "gfull__acts", children: [
5393
5415
  p && /* @__PURE__ */ i(za, { v: p, size: ve ? 20 : Ee ? 15 : 18 }),
5394
5416
  C && ue("Share", X.share, 1.6, C),
5395
- Ri() && !e && ue(F ? "Exit full screen" : "Full screen", F ? Du : ja, 1.7, () => $n(!F)),
5417
+ Ri() && !e && ue(F ? "Exit full screen" : "Full screen", F ? Eu : ja, 1.7, () => $n(!F)),
5396
5418
  I && ue("Close player", X.close, 1.7, I)
5397
5419
  ] }), Ve = (d || M || D) && /* @__PURE__ */ m("div", { className: "gfull__top", children: [
5398
5420
  d && ue(d.muted ? "Unmute" : "Mute", d.muted ? X.volumeOff : X.volume, 1.6, d.onToggle),
@@ -5410,7 +5432,7 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5410
5432
  onPointerMove: Q,
5411
5433
  onPointerDownCapture: (P) => {
5412
5434
  var Me, de;
5413
- x && (ie.current = !0), j((ae) => ae + 1), (de = (Me = P.target).closest) != null && de.call(Me, '[aria-label="Exit full screen"], [aria-label="Full screen"], [aria-label="Close player"]') || ee();
5435
+ x && (ie.current = !0), z((ae) => ae + 1), (de = (Me = P.target).closest) != null && de.call(Me, '[aria-label="Exit full screen"], [aria-label="Full screen"], [aria-label="Close player"]') || ee();
5414
5436
  },
5415
5437
  onClickCapture: (P) => {
5416
5438
  ie.current && (ie.current = !1, P.stopPropagation(), P.preventDefault());
@@ -5457,7 +5479,7 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5457
5479
  ] }),
5458
5480
  " "
5459
5481
  ] }),
5460
- l.words.map((P, Me) => /* @__PURE__ */ m("span", { "data-said": P.dim ? void 0 : "", "data-at": l.cursor != null && Me <= l.cursor ? "" : void 0, style: P.dim ? Yu : void 0, children: [
5482
+ l.words.map((P, Me) => /* @__PURE__ */ m("span", { "data-said": P.dim ? void 0 : "", "data-at": l.cursor != null && Me <= l.cursor ? "" : void 0, style: P.dim ? $u : void 0, children: [
5461
5483
  P.t,
5462
5484
  P.sp
5463
5485
  ] }, Me))
@@ -5494,7 +5516,7 @@ function Ia({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5494
5516
  }
5495
5517
  );
5496
5518
  }
5497
- function Uu({ dark: t, back: e, home: n, live: r, title: s, badge: a, subline: o, onOptions: l, optionsActive: c }) {
5519
+ function Ru({ dark: t, back: e, home: n, live: r, title: s, badge: a, subline: o, onOptions: l, optionsActive: c }) {
5498
5520
  return /* @__PURE__ */ m("div", { className: "ghead", children: [
5499
5521
  e && /* @__PURE__ */ i("button", { type: "button", className: "ghead__back", "aria-label": "Back", title: "Back", onClick: e, children: /* @__PURE__ */ i(oe, { d: X.chevronLeft, size: 19, sw: 1.7 }) }),
5500
5522
  r && /* @__PURE__ */ i("span", { className: "mark", children: /* @__PURE__ */ i(Qr, { dark: t, size: 30 }) }),
@@ -5505,20 +5527,20 @@ function Uu({ dark: t, back: e, home: n, live: r, title: s, badge: a, subline: o
5505
5527
  ] }),
5506
5528
  o && /* @__PURE__ */ i("div", { className: "ghead__sub", children: o })
5507
5529
  ] }) }),
5508
- /* @__PURE__ */ i(Lo, { size: "sm", bordered: !1, variant: c ? "primary" : void 0, onClick: l, label: "Options", children: /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", width: "19", height: "19", fill: "currentColor", "aria-hidden": "true", children: [
5530
+ /* @__PURE__ */ i(ko, { size: "sm", bordered: !1, variant: c ? "primary" : void 0, onClick: l, label: "Options", children: /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", width: "19", height: "19", fill: "currentColor", "aria-hidden": "true", children: [
5509
5531
  /* @__PURE__ */ i("circle", { cx: "12", cy: "5.5", r: "1.85" }),
5510
5532
  /* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "1.85" }),
5511
5533
  /* @__PURE__ */ i("circle", { cx: "12", cy: "18.5", r: "1.85" })
5512
5534
  ] }) })
5513
5535
  ] });
5514
5536
  }
5515
- const $u = "m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z", Ru = (t, e = !1) => [{ value: "read", label: t.read, icon: /* @__PURE__ */ i(oe, { d: X.book, size: 17 }) }, { value: "listen", label: /* @__PURE__ */ i("span", { style: { display: "inline-block", minWidth: 52, textAlign: "center" }, children: e ? t.watch : t.listen }), icon: /* @__PURE__ */ i(oe, { d: e ? $u : X.headphones, size: 19, sw: 1.5 }) }], Jr = "https://app.vocalstack.com", Pu = "/connect/transcribe";
5516
- function Qu() {
5537
+ const Pu = "m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z", Qu = (t, e = !1) => [{ value: "read", label: t.read, icon: /* @__PURE__ */ i(oe, { d: X.book, size: 17 }) }, { value: "listen", label: /* @__PURE__ */ i("span", { style: { display: "inline-block", minWidth: 52, textAlign: "center" }, children: e ? t.watch : t.listen }), icon: /* @__PURE__ */ i(oe, { d: e ? Pu : X.headphones, size: 19, sw: 1.5 }) }], Jr = "https://app.vocalstack.com", Vu = "/connect/transcribe";
5538
+ function Bu() {
5517
5539
  const t = new Uint8Array(24);
5518
5540
  return crypto.getRandomValues(t), btoa(String.fromCharCode(...t)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
5519
5541
  }
5520
5542
  function ba(t, e, n) {
5521
- const r = new URL(t ?? Jr), s = Qu(), a = new URL(Pu, r);
5543
+ const r = new URL(t ?? Jr), s = Bu(), a = new URL(Vu, r);
5522
5544
  e.url && a.searchParams.set("url", e.url), e.transcription && a.searchParams.set("transcription", e.transcription), e.ask && a.searchParams.set("ask", "1"), e.connect && a.searchParams.set("connect", "1"), a.searchParams.set("origin", window.location.origin), a.searchParams.set("nonce", s);
5523
5545
  const o = 480, l = 640, c = Math.max(0, (window.screenX ?? 0) + ((window.outerWidth ?? o) - o) / 2), u = Math.max(0, (window.screenY ?? 0) + ((window.outerHeight ?? l) - l) / 2), d = window.open(a.toString(), "vocalstack-connect", `popup=yes,width=${o},height=${l},left=${Math.round(c)},top=${Math.round(u)}`);
5524
5546
  return d ? new Promise((M, f) => {
@@ -5558,45 +5580,45 @@ function ba(t, e, n) {
5558
5580
  }, 500);
5559
5581
  }) : Promise.reject(new Error("Your browser blocked the VocalStack window. Allow pop-ups for this site and try again."));
5560
5582
  }
5561
- async function Vu(t, e, n) {
5583
+ async function Hu(t, e, n) {
5562
5584
  const r = await ba(t, { url: e }, n);
5563
5585
  return r === "connected" ? null : r;
5564
5586
  }
5565
5587
  const Oa = "vsp.connected";
5566
- function Bu(t) {
5588
+ function Wu(t) {
5567
5589
  try {
5568
5590
  return localStorage.getItem(Oa) === new URL(t ?? Jr).origin;
5569
5591
  } catch {
5570
5592
  return !1;
5571
5593
  }
5572
5594
  }
5573
- function Hu(t) {
5595
+ function Fu(t) {
5574
5596
  try {
5575
5597
  localStorage.setItem(Oa, new URL(t ?? Jr).origin);
5576
5598
  } catch {
5577
5599
  }
5578
5600
  }
5579
- const Wu = {
5601
+ const Zu = {
5580
5602
  "signing-in": "Sign in to VocalStack in the window that opened…",
5581
5603
  consent: "Confirm in the VocalStack window…",
5582
5604
  looking: "Looking for your transcription of this video…",
5583
5605
  confirm: "Confirm in the VocalStack window…",
5584
5606
  checking: "Checking the link…",
5585
5607
  starting: "Starting the transcription…"
5586
- }, Fu = /^(https?:\/\/)?([\w-]+\.)+[a-z]{2,}(\/\S*)?$/i;
5587
- function Zu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5588
- const [s, a] = z(""), [o, l] = z(!1), [c, u] = z(null), [d, M] = z(null);
5608
+ }, Gu = /^(https?:\/\/)?([\w-]+\.)+[a-z]{2,}(\/\S*)?$/i;
5609
+ function qu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5610
+ const [s, a] = j(""), [o, l] = j(!1), [c, u] = j(null), [d, M] = j(null);
5589
5611
  O(() => {
5590
5612
  const y = (T) => {
5591
5613
  T.key === "Escape" && r();
5592
5614
  };
5593
5615
  return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
5594
5616
  }, [r]);
5595
- const f = s.trim(), g = Fu.test(f), h = async () => {
5617
+ const f = s.trim(), g = Gu.test(f), h = async () => {
5596
5618
  if (!(!g || o)) {
5597
5619
  l(!0), u(null);
5598
5620
  try {
5599
- const y = await Vu(t.appUrl, /^https?:\/\//i.test(f) ? f : `https://${f}`, M);
5621
+ const y = await Hu(t.appUrl, /^https?:\/\//i.test(f) ? f : `https://${f}`, M);
5600
5622
  y && e(y);
5601
5623
  } catch (y) {
5602
5624
  u(y instanceof Error ? y.message : "Something went wrong. Please try again.");
@@ -5620,7 +5642,7 @@ function Zu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5620
5642
  }, "aria-label": "Video link" }),
5621
5643
  /* @__PURE__ */ i("button", { type: "submit", className: "vsp-end__go", disabled: !g || o, children: o ? /* @__PURE__ */ i(ft, { size: 15, color: "#050507", track: "rgba(5,5,7,.2)" }) : "Transcribe" })
5622
5644
  ] }),
5623
- o && /* @__PURE__ */ i("div", { className: "vsp-end__note", role: "status", children: Wu[d ?? "checking"] }),
5645
+ o && /* @__PURE__ */ i("div", { className: "vsp-end__note", role: "status", children: Zu[d ?? "checking"] }),
5624
5646
  c && /* @__PURE__ */ i("div", { className: "vsp-end__err", role: "alert", children: c }),
5625
5647
  /* @__PURE__ */ m("div", { className: "vsp-end__foot", children: [
5626
5648
  /* @__PURE__ */ i("span", { children: "Uses your VocalStack account. You'll be asked to sign in if you're not." }),
@@ -5632,16 +5654,16 @@ function Zu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5632
5654
  ] }) });
5633
5655
  }
5634
5656
  function xa(t) {
5635
- const [e, n] = z(() => typeof window > "u" ? !0 : window.innerWidth >= 880);
5657
+ const [e, n] = j(() => typeof window > "u" ? !0 : window.innerWidth >= 880);
5636
5658
  return O(() => {
5637
5659
  if (t != null) return;
5638
5660
  const r = () => n(window.innerWidth >= 880);
5639
5661
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
5640
5662
  }, [t]), t ?? e;
5641
5663
  }
5642
- const Gu = { lang: null, subtitles: !0, speakerLabels: !1, wordHighlight: !0, translateAudio: !0, voices: "cloned", removeBackground: !1, muted: !1 };
5643
- function qu(t, e) {
5644
- const n = Ma(), [r, s] = na(), [a, o] = z(null), [l, c] = z("main"), u = Ur(n, t.lang), d = ze(() => ra(n, "translation"), [n]), M = (Y) => {
5664
+ const Ku = { lang: null, subtitles: !0, speakerLabels: !1, wordHighlight: !0, translateAudio: !0, voices: "cloned", removeBackground: !1, muted: !1 };
5665
+ function Ju(t, e) {
5666
+ const n = Ma(), [r, s] = na(), [a, o] = j(null), [l, c] = j("main"), u = Ur(n, t.lang), d = ze(() => ra(n, "translation"), [n]), M = (Y) => {
5645
5667
  e({ lang: Y }), s(Y);
5646
5668
  }, f = Br({ open: a === "lang" || a === "settings" && l === "lang", onClose: () => a === "lang" ? o(null) : c("main"), value: t.lang, onSelect: M, languages: d, none: "As spoken", pinned: t.lang ? [t.lang] : [], recent: r, keepOpen: !0 }), g = () => {
5647
5669
  o(null), c("main");
@@ -5663,13 +5685,13 @@ function qu(t, e) {
5663
5685
  /* @__PURE__ */ i("div", { style: { position: "sticky", top: 0, zIndex: 1, padding: "4px 14px 10px", background: "var(--vs-surface-raised)" }, children: f.search }),
5664
5686
  f.list
5665
5687
  ] }), D = l === "lang" ? C : l === "subs" ? /* @__PURE__ */ m("div", { style: p, children: [
5666
- b("Show subtitles", "Captions over the video", /* @__PURE__ */ i(Lt, { checked: t.subtitles, onChange: (Y) => e({ subtitles: Y }), label: "Show subtitles" })),
5667
- b("Show speaker labels", "Who is speaking, before each line", /* @__PURE__ */ i(Lt, { checked: t.speakerLabels, onChange: (Y) => e({ speakerLabels: Y }), label: "Show speaker labels" })),
5668
- b("Highlight words", "Follow each word as it is spoken", /* @__PURE__ */ i(Lt, { checked: t.wordHighlight, onChange: (Y) => e({ wordHighlight: Y }), label: "Highlight words" }))
5688
+ b("Show subtitles", "Captions over the video", /* @__PURE__ */ i(kt, { checked: t.subtitles, onChange: (Y) => e({ subtitles: Y }), label: "Show subtitles" })),
5689
+ b("Show speaker labels", "Who is speaking, before each line", /* @__PURE__ */ i(kt, { checked: t.speakerLabels, onChange: (Y) => e({ speakerLabels: Y }), label: "Show speaker labels" })),
5690
+ b("Highlight words", "Follow each word as it is spoken", /* @__PURE__ */ i(kt, { checked: t.wordHighlight, onChange: (Y) => e({ wordHighlight: Y }), label: "Highlight words" }))
5669
5691
  ] }) : l === "audio" ? /* @__PURE__ */ m("div", { style: p, children: [
5670
- b("Translate audio", t.lang ? "Hear the translation read aloud instead of the original speech" : "Pick a language to hear the translation read aloud", /* @__PURE__ */ i(Lt, { checked: t.translateAudio && !!t.lang, onChange: (Y) => e({ translateAudio: Y }), label: "Translate audio", disabled: !t.lang })),
5692
+ b("Translate audio", t.lang ? "Hear the translation read aloud instead of the original speech" : "Pick a language to hear the translation read aloud", /* @__PURE__ */ i(kt, { checked: t.translateAudio && !!t.lang, onChange: (Y) => e({ translateAudio: Y }), label: "Translate audio", disabled: !t.lang })),
5671
5693
  b("Voices", t.voices === "cloned" ? "Each speaker in their own cloned voice, where they agreed to it" : "Synthetic voices matched to each speaker", /* @__PURE__ */ i(Or, { value: t.voices, onChange: (Y) => e({ voices: Y }), size: "sm", options: [{ value: "synthetic", label: "Synthetic" }, { value: "cloned", label: "Cloned" }] })),
5672
- b(Vn, "Takes out everything that isn't speech: music, ambience and noise.", /* @__PURE__ */ i(Lt, { checked: t.removeBackground, onChange: (Y) => e({ removeBackground: Y }), label: Vn }))
5694
+ b(Vn, "Takes out everything that isn't speech: music, ambience and noise.", /* @__PURE__ */ i(kt, { checked: t.removeBackground, onChange: (Y) => e({ removeBackground: Y }), label: Vn }))
5673
5695
  ] }) : /* @__PURE__ */ m("div", { style: p, children: [
5674
5696
  /* @__PURE__ */ m("div", { className: "srow srow--tap", role: "button", onClick: () => c("lang"), children: [
5675
5697
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
@@ -5708,33 +5730,33 @@ function qu(t, e) {
5708
5730
  }
5709
5731
  };
5710
5732
  }
5711
- const kt = (t, e = "nonzero") => /* @__PURE__ */ i("path", { d: t, fill: "currentColor", fillRule: e }), Ht = (t) => /* @__PURE__ */ m(xe, { children: [
5733
+ const Lt = (t, e = "nonzero") => /* @__PURE__ */ i("path", { d: t, fill: "currentColor", fillRule: e }), Ht = (t) => /* @__PURE__ */ m(xe, { children: [
5712
5734
  /* @__PURE__ */ i("path", { d: "M6.5 2.75h7.25l4.75 4.75v12.25a1.5 1.5 0 0 1-1.5 1.5H6.5a1.5 1.5 0 0 1-1.5-1.5V4.25a1.5 1.5 0 0 1 1.5-1.5Z", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round" }),
5713
5735
  /* @__PURE__ */ i("path", { d: "M13.75 2.75V7.5h4.75", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round" }),
5714
5736
  /* @__PURE__ */ i("text", { x: "11.75", y: "17.4", textAnchor: "middle", fontSize: t.length > 3 ? 4.4 : 5.2, fontWeight: "800", fill: "currentColor", fontFamily: "inherit", letterSpacing: ".2", children: t })
5715
5737
  ] }), Pi = [
5716
- { name: "YouTube", tint: "#ff3b30", glyph: kt("M21.6 7.2a2.7 2.7 0 0 0-1.9-1.9C18 4.8 12 4.8 12 4.8s-6 0-7.7.5a2.7 2.7 0 0 0-1.9 1.9C2 8.9 2 12 2 12s0 3.1.4 4.8a2.7 2.7 0 0 0 1.9 1.9c1.7.5 7.7.5 7.7.5s6 0 7.7-.5a2.7 2.7 0 0 0 1.9-1.9c.4-1.7.4-4.8.4-4.8s0-3.1-.4-4.8ZM10 15.1V8.9l5.3 3.1L10 15.1Z", "evenodd") },
5738
+ { name: "YouTube", tint: "#ff3b30", glyph: Lt("M21.6 7.2a2.7 2.7 0 0 0-1.9-1.9C18 4.8 12 4.8 12 4.8s-6 0-7.7.5a2.7 2.7 0 0 0-1.9 1.9C2 8.9 2 12 2 12s0 3.1.4 4.8a2.7 2.7 0 0 0 1.9 1.9c1.7.5 7.7.5 7.7.5s6 0 7.7-.5a2.7 2.7 0 0 0 1.9-1.9c.4-1.7.4-4.8.4-4.8s0-3.1-.4-4.8ZM10 15.1V8.9l5.3 3.1L10 15.1Z", "evenodd") },
5717
5739
  { name: "MP3", tint: "#f78472", glyph: Ht("MP3") },
5718
- { name: "Vimeo", tint: "#1ab7ea", glyph: kt("M22 7.4c-.1 2-1.5 4.7-4.2 8.1-2.8 3.6-5.1 5.4-7 5.4-1.2 0-2.2-1.1-3-3.3L6.2 11.6C5.6 9.4 5 8.3 4.3 8.3c-.1 0-.6.3-1.4.9L2 8l2.7-2.4C5.9 4.6 6.8 4 7.4 4c1.4-.1 2.3.9 2.6 2.9.4 2.2.6 3.6.8 4.1.4 1.8.9 2.7 1.4 2.7.4 0 1-.6 1.8-1.9.8-1.2 1.2-2.2 1.3-2.8.1-1.1-.3-1.6-1.3-1.6-.5 0-.9.1-1.4.3.9-3 2.7-4.5 5.3-4.4 1.9.1 2.8 1.3 2.7 3.7Z") },
5740
+ { name: "Vimeo", tint: "#1ab7ea", glyph: Lt("M22 7.4c-.1 2-1.5 4.7-4.2 8.1-2.8 3.6-5.1 5.4-7 5.4-1.2 0-2.2-1.1-3-3.3L6.2 11.6C5.6 9.4 5 8.3 4.3 8.3c-.1 0-.6.3-1.4.9L2 8l2.7-2.4C5.9 4.6 6.8 4 7.4 4c1.4-.1 2.3.9 2.6 2.9.4 2.2.6 3.6.8 4.1.4 1.8.9 2.7 1.4 2.7.4 0 1-.6 1.8-1.9.8-1.2 1.2-2.2 1.3-2.8.1-1.1-.3-1.6-1.3-1.6-.5 0-.9.1-1.4.3.9-3 2.7-4.5 5.3-4.4 1.9.1 2.8 1.3 2.7 3.7Z") },
5719
5741
  { name: "Video", tint: "#55abe5", glyph: /* @__PURE__ */ m(xe, { children: [
5720
5742
  /* @__PURE__ */ i("rect", { x: "3", y: "5.5", width: "13", height: "13", rx: "2.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }),
5721
- kt("M16 10.2 21 7v10l-5-3.2v-3.6Z")
5743
+ Lt("M16 10.2 21 7v10l-5-3.2v-3.6Z")
5722
5744
  ] }) },
5723
- { name: "Twitch", tint: "#a970ff", glyph: kt("M5 2.5 3 6.5v13h4.5V22H10l2.5-2.5h3.8L21 14.8V2.5H5Zm14 11.4-2.9 2.9h-4.3L9.4 19.2v-2.4H6V4.5h13v9.4ZM15.2 7.4h1.9v5.2h-1.9V7.4Zm-5 0h1.9v5.2h-1.9V7.4Z", "evenodd") },
5745
+ { name: "Twitch", tint: "#a970ff", glyph: Lt("M5 2.5 3 6.5v13h4.5V22H10l2.5-2.5h3.8L21 14.8V2.5H5Zm14 11.4-2.9 2.9h-4.3L9.4 19.2v-2.4H6V4.5h13v9.4ZM15.2 7.4h1.9v5.2h-1.9V7.4Zm-5 0h1.9v5.2h-1.9V7.4Z", "evenodd") },
5724
5746
  { name: "WAV", tint: "#7ee0b4", glyph: Ht("WAV") },
5725
5747
  { name: "SoundCloud", tint: "#ff7a1a", glyph: /* @__PURE__ */ m(xe, { children: [
5726
- kt("M11 8.6a5 5 0 0 1 7.8 3.1 3 3 0 0 1-.3 6H11V8.6Z"),
5748
+ Lt("M11 8.6a5 5 0 0 1 7.8 3.1 3 3 0 0 1-.3 6H11V8.6Z"),
5727
5749
  /* @__PURE__ */ i("rect", { x: "8.6", y: "9.4", width: "1.3", height: "8.3", rx: ".65", fill: "currentColor" }),
5728
5750
  /* @__PURE__ */ i("rect", { x: "6.2", y: "10.6", width: "1.3", height: "7.1", rx: ".65", fill: "currentColor" }),
5729
5751
  /* @__PURE__ */ i("rect", { x: "3.8", y: "12.2", width: "1.3", height: "5.5", rx: ".65", fill: "currentColor" }),
5730
5752
  /* @__PURE__ */ i("rect", { x: "1.4", y: "13.8", width: "1.3", height: "3.9", rx: ".65", fill: "currentColor" })
5731
5753
  ] }) },
5732
5754
  { name: "MP4", tint: "#5b63d7", glyph: Ht("MP4") },
5733
- { name: "TikTok", tint: "#25f4ee", glyph: kt("M16.6 2.5c.3 2.3 1.7 3.8 3.9 4v2.7a6.8 6.8 0 0 1-3.9-1.3v6.5a5.7 5.7 0 1 1-5.7-5.7l.9.1v2.8a2.9 2.9 0 1 0 2 2.8V2.5h2.8Z") },
5755
+ { name: "TikTok", tint: "#25f4ee", glyph: Lt("M16.6 2.5c.3 2.3 1.7 3.8 3.9 4v2.7a6.8 6.8 0 0 1-3.9-1.3v6.5a5.7 5.7 0 1 1-5.7-5.7l.9.1v2.8a2.9 2.9 0 1 0 2 2.8V2.5h2.8Z") },
5734
5756
  { name: "Audio", tint: "#f7c948", glyph: /* @__PURE__ */ i("g", { fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: /* @__PURE__ */ i("path", { d: "M3 10.5v3M6.5 7.5v9M10 4.5v15M13.5 8v8M17 6v12M20.5 10v4" }) }) },
5735
- { name: "X", tint: "#e8eaf2", glyph: kt("M17.8 3h3.1l-6.7 7.7L22 21h-6.2l-4.8-6.3L5.5 21H2.4l7.2-8.2L2.1 3h6.3l4.4 5.8L17.8 3Zm-1.1 16.2h1.7L7.4 4.7H5.6l11.1 14.5Z") },
5757
+ { name: "X", tint: "#e8eaf2", glyph: Lt("M17.8 3h3.1l-6.7 7.7L22 21h-6.2l-4.8-6.3L5.5 21H2.4l7.2-8.2L2.1 3h6.3l4.4 5.8L17.8 3Zm-1.1 16.2h1.7L7.4 4.7H5.6l11.1 14.5Z") },
5736
5758
  { name: "MOV", tint: "#55abe5", glyph: Ht("MOV") },
5737
- { name: "Facebook", tint: "#3b82f6", glyph: kt("M13.9 21.5v-8h2.7l.4-3.1h-3.1V8.4c0-.9.3-1.5 1.6-1.5H17V4.1c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.4-4 4.1v2.3H7.9v3.1h2.7v8h3.3Z") },
5759
+ { name: "Facebook", tint: "#3b82f6", glyph: Lt("M13.9 21.5v-8h2.7l.4-3.1h-3.1V8.4c0-.9.3-1.5 1.6-1.5H17V4.1c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.4-4 4.1v2.3H7.9v3.1h2.7v8h3.3Z") },
5738
5760
  { name: "Podcast", tint: "#c46bff", glyph: /* @__PURE__ */ m("g", { fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", children: [
5739
5761
  /* @__PURE__ */ i("rect", { x: "9", y: "3", width: "6", height: "10.5", rx: "3" }),
5740
5762
  /* @__PURE__ */ i("path", { d: "M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21M8.5 21h7" })
@@ -5745,33 +5767,33 @@ const kt = (t, e = "nonzero") => /* @__PURE__ */ i("path", { d: t, fill: "curren
5745
5767
  /* @__PURE__ */ i("circle", { cx: "17.2", cy: "6.8", r: ".9", fill: "currentColor", stroke: "none" })
5746
5768
  ] }) },
5747
5769
  { name: "M4A", tint: "#f78472", glyph: Ht("M4A") },
5748
- { name: "Dailymotion", tint: "#4aa3ff", glyph: kt("M14.6 3.5h3.2V20h-3v-1.2a5.4 5.4 0 0 1-3.6 1.4c-3.3 0-5.9-2.7-5.9-6.1S7.9 8 11.2 8c1.3 0 2.5.4 3.4 1.2V3.5Zm-3.1 7.4a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4Z", "evenodd") },
5770
+ { name: "Dailymotion", tint: "#4aa3ff", glyph: Lt("M14.6 3.5h3.2V20h-3v-1.2a5.4 5.4 0 0 1-3.6 1.4c-3.3 0-5.9-2.7-5.9-6.1S7.9 8 11.2 8c1.3 0 2.5.4 3.4 1.2V3.5Zm-3.1 7.4a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4Z", "evenodd") },
5749
5771
  { name: "Radio", tint: "#7ee0b4", glyph: /* @__PURE__ */ m("g", { fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", children: [
5750
5772
  /* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "1.8", fill: "currentColor", stroke: "none" }),
5751
5773
  /* @__PURE__ */ i("path", { d: "M8.5 15.5a5 5 0 0 1 0-7M15.5 8.5a5 5 0 0 1 0 7M5.6 18.4a9 9 0 0 1 0-12.8M18.4 5.6a9 9 0 0 1 0 12.8" })
5752
5774
  ] }) },
5753
5775
  { name: "WEBM", tint: "#5b63d7", glyph: Ht("WEBM") },
5754
- { name: "Loom", tint: "#8f7bff", glyph: kt("M21 11h-5.2l4.5-2.6-1-1.7-4.5 2.6 2.6-4.5-1.7-1-2.6 4.5V3h-2v5.3L8.5 3.8l-1.7 1 2.6 4.5-4.5-2.6-1 1.7L8.2 11H3v2h5.2l-4.5 2.6 1 1.7 4.5-2.6-2.6 4.5 1.7 1 2.6-4.5V21h2v-5.2l2.6 4.5 1.7-1-2.6-4.5 4.5 2.6 1-1.7-4.5-2.6H21v-2Zm-9 3.4a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Z", "evenodd") },
5776
+ { name: "Loom", tint: "#8f7bff", glyph: Lt("M21 11h-5.2l4.5-2.6-1-1.7-4.5 2.6 2.6-4.5-1.7-1-2.6 4.5V3h-2v5.3L8.5 3.8l-1.7 1 2.6 4.5-4.5-2.6-1 1.7L8.2 11H3v2h5.2l-4.5 2.6 1 1.7 4.5-2.6-2.6 4.5 1.7 1 2.6-4.5V21h2v-5.2l2.6 4.5 1.7-1-2.6-4.5 4.5 2.6 1-1.7-4.5-2.6H21v-2Zm-9 3.4a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Z", "evenodd") },
5755
5777
  { name: "FLAC", tint: "#f7c948", glyph: Ht("FLAC") },
5756
5778
  { name: "Live", tint: "#ff5a5a", glyph: /* @__PURE__ */ m("g", { fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", children: [
5757
5779
  /* @__PURE__ */ i("rect", { x: "3", y: "6", width: "18", height: "12", rx: "3" }),
5758
5780
  /* @__PURE__ */ i("circle", { cx: "8", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" }),
5759
5781
  /* @__PURE__ */ i("path", { d: "M11.5 10h6M11.5 14h4" })
5760
5782
  ] }) }
5761
- ], Ku = 14, Ju = 4;
5762
- function Xu(t) {
5783
+ ], Xu = 14, ed = 4;
5784
+ function td(t) {
5763
5785
  const e = Pi.length, n = [];
5764
5786
  for (let r = 0; r < 11; r++) n.push(Pi[(r + t * 7) % e]);
5765
5787
  return n;
5766
5788
  }
5767
- function ed({ t }) {
5789
+ function nd({ t }) {
5768
5790
  return /* @__PURE__ */ m("span", { className: "vsp-prov__tile", style: { "--tint": t.tint }, children: [
5769
5791
  /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", "aria-hidden": "true", children: t.glyph }),
5770
5792
  /* @__PURE__ */ i("span", { className: "vsp-prov__name", children: t.name })
5771
5793
  ] });
5772
5794
  }
5773
- function td() {
5774
- const t = k(null), [e, n] = z(!0), [r, s] = z(() => typeof document > "u" || !document.hidden);
5795
+ function rd() {
5796
+ const t = w(null), [e, n] = j(!0), [r, s] = j(() => typeof document > "u" || !document.hidden);
5775
5797
  return O(() => {
5776
5798
  const a = () => s(!document.hidden);
5777
5799
  document.addEventListener("visibilitychange", a);
@@ -5780,9 +5802,9 @@ function td() {
5780
5802
  return o && typeof IntersectionObserver < "u" && (l = new IntersectionObserver(([c]) => n(c.isIntersecting)), l.observe(o)), () => {
5781
5803
  document.removeEventListener("visibilitychange", a), l == null || l.disconnect();
5782
5804
  };
5783
- }, []), /* @__PURE__ */ i("div", { ref: t, className: `vsp-prov${e && r ? "" : " vsp-prov--still"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("div", { className: "vsp-prov__plane", children: Array.from({ length: Ku }, (a, o) => {
5784
- const l = Xu(o);
5785
- return /* @__PURE__ */ i("div", { className: `vsp-prov__row${o % 2 ? " vsp-prov__row--rev" : ""}`, style: { animationDuration: `${80 + o * 11}s`, animationDelay: `-${o * 17}s` }, children: Array.from({ length: Ju }, (c, u) => l.map((d, M) => /* @__PURE__ */ i(ed, { t: d }, `${u}-${M}`))) }, o);
5805
+ }, []), /* @__PURE__ */ i("div", { ref: t, className: `vsp-prov${e && r ? "" : " vsp-prov--still"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("div", { className: "vsp-prov__plane", children: Array.from({ length: Xu }, (a, o) => {
5806
+ const l = td(o);
5807
+ return /* @__PURE__ */ i("div", { className: `vsp-prov__row${o % 2 ? " vsp-prov__row--rev" : ""}`, style: { animationDuration: `${80 + o * 11}s`, animationDelay: `-${o * 17}s` }, children: Array.from({ length: ed }, (c, u) => l.map((d, M) => /* @__PURE__ */ i(nd, { t: d }, `${u}-${M}`))) }, o);
5786
5808
  }) }) });
5787
5809
  }
5788
5810
  const Ca = {
@@ -5800,8 +5822,8 @@ function br(t) {
5800
5822
  return t;
5801
5823
  }
5802
5824
  }
5803
- function nd(t, e) {
5804
- const [n, r] = z(!1), [s, a] = z(null), [o, l] = z(null), [c, u] = z(() => Bu(t)), d = Je((g) => {
5825
+ function sd(t, e) {
5826
+ const [n, r] = j(!1), [s, a] = j(null), [o, l] = j(null), [c, u] = j(() => Wu(t)), d = Je((g) => {
5805
5827
  if (n) return;
5806
5828
  r(!0), l(null);
5807
5829
  let h;
@@ -5811,28 +5833,28 @@ function nd(t, e) {
5811
5833
  h = Promise.reject(y);
5812
5834
  }
5813
5835
  h.then((y) => {
5814
- y && (Hu(t), u(!0), y !== "connected" && e(y));
5836
+ y && (Fu(t), u(!0), y !== "connected" && e(y));
5815
5837
  }).catch((y) => l(y instanceof Error ? y.message : "Something went wrong. Please try again.")).finally(() => {
5816
5838
  r(!1), a(null);
5817
5839
  });
5818
5840
  }, [t, n, e]), M = Je(() => d({ connect: !0 }), [d]), f = Je((g, h) => d({ url: g, ask: h }), [d]);
5819
5841
  return { busy: n, status: s, err: o, connected: c, connect: M, start: f };
5820
5842
  }
5821
- function rd(t) {
5843
+ function id(t) {
5822
5844
  return /\.(mp4|webm|mov|m4v|ogv|mkv)(\?|#|$)/i.test(t);
5823
5845
  }
5824
- function sd({ poster: t, src: e }) {
5846
+ function ad({ poster: t, src: e }) {
5825
5847
  var s;
5826
- const n = e && ((s = en(e)) == null ? void 0 : s.id) === "youtube" ? pa(e) : null, r = t ?? (n ? `https://i.ytimg.com/vi/${n}/hqdefault.jpg` : null);
5827
- return r ? /* @__PURE__ */ i("div", { className: "vsp-idle__pic", style: { backgroundImage: `url(${r})` } }) : e && rd(e) ? /* @__PURE__ */ i("video", { className: "vsp-idle__pic vsp-idle__frame", src: `${e}#t=1`, muted: !0, playsInline: !0, preload: "metadata", "aria-hidden": "true" }) : /* @__PURE__ */ m(xe, { children: [
5848
+ const n = e && ((s = Zt(e)) == null ? void 0 : s.id) === "youtube" ? pa(e) : null, r = t ?? (n ? `https://i.ytimg.com/vi/${n}/hqdefault.jpg` : null);
5849
+ return r ? /* @__PURE__ */ i("div", { className: "vsp-idle__pic", style: { backgroundImage: `url(${r})` } }) : e && id(e) ? /* @__PURE__ */ i("video", { className: "vsp-idle__pic vsp-idle__frame", src: `${e}#t=1`, muted: !0, playsInline: !0, preload: "metadata", "aria-hidden": "true" }) : /* @__PURE__ */ m(xe, { children: [
5828
5850
  /* @__PURE__ */ i("div", { className: "vsp-idle__pic vsp-idle__pic--brand" }),
5829
- /* @__PURE__ */ i(td, {})
5851
+ /* @__PURE__ */ i(rd, {})
5830
5852
  ] });
5831
5853
  }
5832
- const id = { live: !1, atEdge: !1, edgeFrac: null, pct: 0, atLabel: "0:00", labelAt: () => "0:00", endLabel: "0:00", onSeek: () => {
5854
+ const od = { live: !1, atEdge: !1, edgeFrac: null, pct: 0, atLabel: "0:00", labelAt: () => "0:00", endLabel: "0:00", onSeek: () => {
5833
5855
  } };
5834
5856
  function Hn({ idle: t, poster: e, src: n, title: r, page: s, onAct: a, children: o }) {
5835
- const l = qu(t.prefs, t.set), c = xa(), u = k(null), [d, M] = z(!1);
5857
+ const l = Ju(t.prefs, t.set), c = xa(), u = w(null), [d, M] = j(!1);
5836
5858
  tn(() => {
5837
5859
  var T;
5838
5860
  const g = (T = u.current) == null ? void 0 : T.parentElement;
@@ -5846,7 +5868,7 @@ function Hn({ idle: t, poster: e, src: n, title: r, page: s, onAct: a, children:
5846
5868
  }, onNext: () => {
5847
5869
  }, playing: !1, playable: !0, playTitle: "Connect to play", onPlay: a };
5848
5870
  return /* @__PURE__ */ m("div", { ref: u, className: `vsp-idleroot${d ? " vsp-idleroot--small" : ""}`, children: [
5849
- /* @__PURE__ */ i(Ia, { page: s, picture: /* @__PURE__ */ i(sd, { poster: e, src: n }), title: r, desk: c, pos: id, sub: null, mute: { muted: t.prefs.muted, onToggle: () => t.set({ muted: !t.prefs.muted }) }, cc: { on: t.prefs.subtitles, onToggle: () => t.set({ subtitles: !t.prefs.subtitles }) }, chip: l.chip, transport: f, picker: l.sheets, sheet: null, voices: null, voicesBtn: null, sheetOpen: l.sheetOpen, onSettings: l.openSettings, onShare: () => qr(t.shareUrl ?? window.location.href, r), copied: null, onTouch: () => {
5871
+ /* @__PURE__ */ i(Ia, { page: s, picture: /* @__PURE__ */ i(ad, { poster: e, src: n }), title: r, desk: c, pos: od, sub: null, mute: { muted: t.prefs.muted, onToggle: () => t.set({ muted: !t.prefs.muted }) }, cc: { on: t.prefs.subtitles, onToggle: () => t.set({ subtitles: !t.prefs.subtitles }) }, chip: l.chip, transport: f, picker: l.sheets, sheet: null, voices: null, voicesBtn: null, sheetOpen: l.sheetOpen, onSettings: l.openSettings, onShare: () => qr(t.shareUrl ?? window.location.href, r), copied: null, onTouch: () => {
5850
5872
  } }),
5851
5873
  !l.sheetOpen && /* @__PURE__ */ i("div", { className: "vsp-idle", "data-theme": "dark", children: /* @__PURE__ */ i("div", { className: "vsp-idle__box", children: o }) })
5852
5874
  ] });
@@ -5861,7 +5883,7 @@ function Sa({ connect: t, onClick: e, label: n }) {
5861
5883
  t.err && /* @__PURE__ */ i("div", { className: "vsp-end__err", role: "alert", children: t.err })
5862
5884
  ] });
5863
5885
  }
5864
- function ad({ idle: t, src: e, ask: n, connect: r, page: s, poster: a = null, onClear: o }) {
5886
+ function ld({ idle: t, src: e, ask: n, connect: r, page: s, poster: a = null, onClear: o }) {
5865
5887
  const l = () => r.start(e, n);
5866
5888
  return /* @__PURE__ */ m(Hn, { idle: t, poster: a, src: e, title: br(e), page: s, onAct: l, children: [
5867
5889
  /* @__PURE__ */ i(Sa, { connect: r, onClick: l, label: r.connected ? "Play with VocalStack" : "Connect to VocalStack" }),
@@ -5869,8 +5891,8 @@ function ad({ idle: t, src: e, ask: n, connect: r, page: s, poster: a = null, on
5869
5891
  o && !r.busy && /* @__PURE__ */ i("button", { type: "button", className: "vsp-idle__other", onClick: o, children: "Choose another video" })
5870
5892
  ] });
5871
5893
  }
5872
- function od({ idle: t, connect: e, page: n, poster: r = null, onPick: s }) {
5873
- const [a, o] = z(""), l = k(null), c = k(null), u = a.trim(), d = Qi.test(u), M = () => {
5894
+ function cd({ idle: t, connect: e, page: n, poster: r = null, onPick: s }) {
5895
+ const [a, o] = j(""), l = w(null), c = w(null), u = a.trim(), d = Qi.test(u), M = () => {
5874
5896
  if (!d || e.busy) return;
5875
5897
  const h = /^https?:\/\//i.test(u) ? u : `https://${u}`;
5876
5898
  s(h), e.start(h, !1);
@@ -5905,7 +5927,7 @@ function od({ idle: t, connect: e, page: n, poster: r = null, onPick: s }) {
5905
5927
  e.err && /* @__PURE__ */ i("div", { className: "vsp-end__err", role: "alert", children: e.err })
5906
5928
  ] });
5907
5929
  }
5908
- function ld({ idle: t, message: e, onRetry: n, page: r }) {
5930
+ function ud({ idle: t, message: e, onRetry: n, page: r }) {
5909
5931
  return /* @__PURE__ */ m(Hn, { idle: t, poster: null, src: null, title: "VocalStack", page: r, onAct: n, children: [
5910
5932
  /* @__PURE__ */ m("div", { className: "vsp-idle__err", role: "alert", children: [
5911
5933
  /* @__PURE__ */ i(oe, { d: X.warn, size: 16, sw: 1.8 }),
@@ -5917,8 +5939,8 @@ function ld({ idle: t, message: e, onRetry: n, page: r }) {
5917
5939
  ] })
5918
5940
  ] });
5919
5941
  }
5920
- function cd(t, e, n) {
5921
- const [r, s] = z(t && e ? void 0 : null);
5942
+ function dd(t, e, n) {
5943
+ const [r, s] = j(t && e ? void 0 : null);
5922
5944
  return O(() => {
5923
5945
  if (!t) {
5924
5946
  s(null);
@@ -5944,8 +5966,8 @@ function cd(t, e, n) {
5944
5966
  };
5945
5967
  }, [t, e, n]), r;
5946
5968
  }
5947
- const ud = 100, Vi = (t) => t == null ? null : t ? "on" : "off";
5948
- function dd(t) {
5969
+ const hd = 100, Vi = (t) => t == null ? null : t ? "on" : "off";
5970
+ function Md(t) {
5949
5971
  const e = t.syncUrl && typeof window < "u" ? new URLSearchParams(window.location.search) : null, n = { ...t.initial ?? {}, ...t.settings ?? {} }, r = (a) => a === "on" || a === "off" ? a : null, s = Number(e == null ? void 0 : e.get("t"));
5950
5972
  return {
5951
5973
  lang: (e == null ? void 0 : e.get("lang")) || n.lang || null,
@@ -5954,74 +5976,74 @@ function dd(t) {
5954
5976
  cc: e != null && e.get("cc") ? e.get("cc") !== "off" : n.subtitles ?? !0,
5955
5977
  translateAudio: e != null && e.get("audio") ? e.get("audio") !== "original" : n.translateAudio ?? !0,
5956
5978
  clonedVoices: e != null && e.get("voices") ? e.get("voices") !== "stock" : (n.voices ?? "cloned") === "cloned",
5957
- removeBackground: e && e.get("bg") ? Tl(e) : n.removeBackground ?? !1,
5979
+ removeBackground: e && e.get("bg") ? wl(e) : n.removeBackground ?? !1,
5958
5980
  startAt: Number.isFinite(s) && s > 0 ? s : t.startAt ?? null
5959
5981
  };
5960
5982
  }
5961
- const Ld = fo(function(e, n) {
5983
+ const zd = fo(function(e, n) {
5962
5984
  var K;
5963
- const r = k(null);
5985
+ const r = w(null);
5964
5986
  go(n, () => ({
5965
- seek: (j) => {
5987
+ seek: (z) => {
5966
5988
  var ie;
5967
- return (ie = r.current) == null ? void 0 : ie.seek(j);
5989
+ return (ie = r.current) == null ? void 0 : ie.seek(z);
5968
5990
  },
5969
5991
  play: () => {
5970
- var j;
5971
- return (j = r.current) == null ? void 0 : j.play();
5992
+ var z;
5993
+ return (z = r.current) == null ? void 0 : z.play();
5972
5994
  },
5973
5995
  toggleMute: () => {
5974
- var j;
5975
- return (j = r.current) == null ? void 0 : j.toggleMute();
5996
+ var z;
5997
+ return (z = r.current) == null ? void 0 : z.toggleMute();
5976
5998
  },
5977
5999
  pause: () => {
5978
- var j;
5979
- return (j = r.current) == null ? void 0 : j.pause();
6000
+ var z;
6001
+ return (z = r.current) == null ? void 0 : z.pause();
5980
6002
  },
5981
6003
  toggle: () => {
5982
- var j;
5983
- return (j = r.current) == null ? void 0 : j.toggle();
6004
+ var z;
6005
+ return (z = r.current) == null ? void 0 : z.toggle();
5984
6006
  }
5985
6007
  }), []);
5986
- const [s, a] = z({ id: e.id ?? "", token: e.token });
6008
+ const [s, a] = j({ id: e.id ?? "", token: e.token });
5987
6009
  O(() => {
5988
6010
  a({ id: e.id ?? "", token: e.token });
5989
6011
  }, [e.id, e.token, e.src]);
5990
- const o = cd(e.src ?? null, e.token ?? null, e.baseUrl ?? null);
6012
+ const o = dd(e.src ?? null, e.token ?? null, e.baseUrl ?? null);
5991
6013
  O(() => {
5992
6014
  o != null && o.id && a({ id: o.id, token: e.token });
5993
6015
  }, [o == null ? void 0 : o.id]);
5994
- const [l, c] = z(null), [u, d] = z(() => ({ ...Gu, ...Object.fromEntries(Object.entries({ ...e.initial ?? {}, ...e.settings ?? {} }).filter(([, j]) => j !== void 0)) })), [M, f] = z({}), g = { prefs: u, set: (j) => {
5995
- d((ie) => ({ ...ie, ...j })), f((ie) => ({ ...ie, ...j }));
6016
+ const [l, c] = j(null), [u, d] = j(() => ({ ...Ku, ...Object.fromEntries(Object.entries({ ...e.initial ?? {}, ...e.settings ?? {} }).filter(([, z]) => z !== void 0)) })), [M, f] = j({}), g = { prefs: u, set: (z) => {
6017
+ d((ie) => ({ ...ie, ...z })), f((ie) => ({ ...ie, ...z }));
5996
6018
  }, shareUrl: (K = e.shareUrl) == null ? void 0 : K.call(e, null) }, { muted: h, ...y } = M;
5997
6019
  O(() => {
5998
6020
  c(null);
5999
6021
  }, [e.id, e.src]);
6000
- const T = e.src ?? l, N = !s.id && !!T && (l != null || o !== void 0), p = !s.id && !e.src && !l, b = ha({ id: s.id, token: s.token, baseUrl: e.baseUrl, listen: s.listen }), { source: C, gone: D, error: V, reload: Y } = ic(b, s.id), ee = ac(b, (C == null ? void 0 : C.recording.id) ?? null), I = ze(() => rc(b, ee), [b, ee]);
6022
+ const T = e.src ?? l, N = !s.id && !!T && (l != null || o !== void 0), p = !s.id && !e.src && !l, b = ha({ id: s.id, token: s.token, baseUrl: e.baseUrl, listen: s.listen }), { source: C, gone: D, error: V, reload: Y } = oc(b, s.id), ee = lc(b, (C == null ? void 0 : C.recording.id) ?? null), I = ze(() => ic(b, ee), [b, ee]);
6001
6023
  O(() => {
6002
- var j;
6003
- C && ((j = e.onSource) == null || j.call(e, C));
6024
+ var z;
6025
+ C && ((z = e.onSource) == null || z.call(e, C));
6004
6026
  }, [C]), O(() => {
6005
- var j;
6006
- V && ((j = e.onError) == null || j.call(e, V));
6027
+ var z;
6028
+ V && ((z = e.onError) == null || z.call(e, V));
6007
6029
  }, [V]);
6008
- const F = xa(e.desk), A = (e.layout ?? "embed") === "embed", w = e.appUrl ?? (e.endCard ? e.endCard.appUrl : void 0), _ = Je((j) => a({ id: j.transcriptionId, token: null, listen: { transcriptionId: j.transcriptionId, recordingId: j.recordingId, token: j.token } }), []), x = nd(w, _), te = k(null);
6009
- return O(() => ($i(A ? te.current : null), () => $i(null)), [A]), /* @__PURE__ */ i(Xl, { value: I, children: /* @__PURE__ */ i("div", { ref: te, className: `vsp${A ? " vsp--embed" : ""}${e.className ? ` ${e.className}` : ""}`, "data-theme": (e.mode ?? "video") === "video" || e.dark ? "dark" : "light", "data-mode": (e.mode ?? "video") === "video" ? "video" : "transcript", children: p ? /* @__PURE__ */ i(od, { idle: g, connect: x, page: !A, poster: e.poster ?? null, onPick: c }) : N ? /* @__PURE__ */ i(ad, { idle: g, src: T, ask: !l, connect: x, page: !A, poster: e.poster ?? null, onClear: l ? () => c(null) : void 0 }) : s.id ? V && !C ? /* @__PURE__ */ i(ld, { idle: g, message: V.message, onRetry: Y, page: !A }) : /* @__PURE__ */ i(hd, { ...e, initial: { ...e.initial ?? {}, ...y }, startMuted: h === !0, handle: r, id: s.id, api: I, shared: C, gone: D, loadError: V, reread: Y, desk: F, dark: (e.mode ?? "video") === "video" || !!e.dark, onStarted: (j) => a({ id: j.transcriptionId, token: null, listen: { transcriptionId: j.transcriptionId, recordingId: j.recordingId, token: j.token } }) }, s.id) : /* @__PURE__ */ i("div", { className: "vsp-gate", "data-theme": "dark", children: /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) }) }) });
6030
+ const F = xa(e.desk), A = (e.layout ?? "embed") === "embed", L = e.appUrl ?? (e.endCard ? e.endCard.appUrl : void 0), _ = Je((z) => a({ id: z.transcriptionId, token: null, listen: { transcriptionId: z.transcriptionId, recordingId: z.recordingId, token: z.token } }), []), x = sd(L, _), te = w(null);
6031
+ return O(() => ($i(A ? te.current : null), () => $i(null)), [A]), /* @__PURE__ */ i(tc, { value: I, children: /* @__PURE__ */ i("div", { ref: te, className: `vsp${A ? " vsp--embed" : ""}${e.className ? ` ${e.className}` : ""}`, "data-theme": (e.mode ?? "video") === "video" || e.dark ? "dark" : "light", "data-mode": (e.mode ?? "video") === "video" ? "video" : "transcript", children: p ? /* @__PURE__ */ i(cd, { idle: g, connect: x, page: !A, poster: e.poster ?? null, onPick: c }) : N ? /* @__PURE__ */ i(ld, { idle: g, src: T, ask: !l, connect: x, page: !A, poster: e.poster ?? null, onClear: l ? () => c(null) : void 0 }) : s.id ? V && !C ? /* @__PURE__ */ i(ud, { idle: g, message: V.message, onRetry: Y, page: !A }) : /* @__PURE__ */ i(fd, { ...e, initial: { ...e.initial ?? {}, ...y }, startMuted: h === !0, handle: r, id: s.id, api: I, shared: C, gone: D, loadError: V, reread: Y, desk: F, dark: (e.mode ?? "video") === "video" || !!e.dark, onStarted: (z) => a({ id: z.transcriptionId, token: null, listen: { transcriptionId: z.transcriptionId, recordingId: z.recordingId, token: z.token } }) }, s.id) : /* @__PURE__ */ i("div", { className: "vsp-gate", "data-theme": "dark", children: /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) }) }) });
6010
6032
  });
6011
- function hd(t) {
6033
+ function fd(t) {
6012
6034
  var xs, Cs, Ss, Ds, As, Es, _s, Ys, Us, $s, Rs, Ps, Qs, Vs, Bs, Hs, Ws, Fs, Zs, Gs, qs, Ks, Js, Xs, ei, ti, ni, ri, si, ii, ai, oi, li, ci, ui, di, hi, Mi, fi, gi, mi, pi, yi, Ni;
6013
- const { api: e, shared: n, gone: r, desk: s, dark: a } = t, o = t.id ?? "", l = ze(() => dd(t), []), u = (t.mode ?? "video") === "video", [d, M] = z(t.loadError);
6035
+ const { api: e, shared: n, gone: r, desk: s, dark: a } = t, o = t.id ?? "", l = ze(() => Md(t), []), u = (t.mode ?? "video") === "video", [d, M] = j(t.loadError);
6014
6036
  O(() => {
6015
6037
  t.loadError && M(t.loadError);
6016
6038
  }, [t.loadError]);
6017
- const [f, g] = z("none"), [h, y] = z(!1), [T, N] = z(""), [p, b] = Mu(), [C, D] = z(null), [V, Y] = z(u ? "listen" : "read"), [ee, I] = z(!1), F = k(null), A = k(/* @__PURE__ */ new Map()), [w, _] = z("main"), x = (L) => {
6039
+ const [f, g] = j("none"), [h, y] = j(!1), [T, N] = j(""), [p, b] = gu(), [C, D] = j(null), [V, Y] = j(u ? "listen" : "read"), [ee, I] = j(!1), F = w(null), A = w(/* @__PURE__ */ new Map()), [L, _] = j("main"), x = (k) => {
6018
6040
  const pe = document.querySelector(".vs-sheet--settings"), Re = pe == null ? void 0 : pe.parentElement;
6019
- pe && Re && w === "main" && L !== "main" && Re.style.setProperty("--vs-sheet-top", `${Math.round(pe.getBoundingClientRect().top - Re.getBoundingClientRect().top)}px`), _(L);
6041
+ pe && Re && L === "main" && k !== "main" && Re.style.setProperty("--vs-sheet-top", `${Math.round(pe.getBoundingClientRect().top - Re.getBoundingClientRect().top)}px`), _(k);
6020
6042
  };
6021
6043
  O(() => {
6022
6044
  ee || x("main");
6023
6045
  }, [ee]);
6024
- const [te, K] = z(u), j = (n == null ? void 0 : n.recording) ?? null, ie = (j == null ? void 0 : j.id) ?? null, [ne, Z] = z(l.lang), J = typeof ne == "string" ? ne : null, [me, le] = z(l.labels), [Te, je] = z(l.words), [Se, we] = z(l.cc), [ve, Ee] = z(l.translateAudio), [$e, De] = z(l.clonedVoices), [Q, H] = z(l.removeBackground), E = t.settings;
6046
+ const [te, K] = j(u), z = (n == null ? void 0 : n.recording) ?? null, ie = (z == null ? void 0 : z.id) ?? null, [ne, Z] = j(l.lang), J = typeof ne == "string" ? ne : null, [me, le] = j(l.labels), [Te, je] = j(l.words), [Se, we] = j(l.cc), [ve, Ee] = j(l.translateAudio), [$e, De] = j(l.clonedVoices), [Q, H] = j(l.removeBackground), E = t.settings;
6025
6047
  O(() => {
6026
6048
  (E == null ? void 0 : E.lang) !== void 0 && Z(E.lang);
6027
6049
  }, [E == null ? void 0 : E.lang]), O(() => {
@@ -6040,21 +6062,21 @@ function hd(t) {
6040
6062
  const S = { language: !0, subtitles: !0, audio: !0, export: !0, share: !0, fullscreen: !0, settings: !0, ...t.controls ?? {} }, B = u && !ve;
6041
6063
  O(() => {
6042
6064
  if (!t.syncUrl) return;
6043
- const L = new URL(window.location.href);
6044
- J ? L.searchParams.set("lang", J) : L.searchParams.delete("lang"), me ? L.searchParams.set("labels", me) : L.searchParams.delete("labels"), Te ? L.searchParams.set("words", Te) : L.searchParams.delete("words"), Se ? L.searchParams.delete("cc") : L.searchParams.set("cc", "off"), ve ? L.searchParams.delete("audio") : L.searchParams.set("audio", "original"), $e ? L.searchParams.delete("voices") : L.searchParams.set("voices", "stock"), vl(L, Q), L.href !== window.location.href && window.history.replaceState(window.history.state, "", L);
6065
+ const k = new URL(window.location.href);
6066
+ J ? k.searchParams.set("lang", J) : k.searchParams.delete("lang"), me ? k.searchParams.set("labels", me) : k.searchParams.delete("labels"), Te ? k.searchParams.set("words", Te) : k.searchParams.delete("words"), Se ? k.searchParams.delete("cc") : k.searchParams.set("cc", "off"), ve ? k.searchParams.delete("audio") : k.searchParams.set("audio", "original"), $e ? k.searchParams.delete("voices") : k.searchParams.set("voices", "stock"), Ll(k, Q), k.href !== window.location.href && window.history.replaceState(window.history.state, "", k);
6045
6067
  }, [J, me, Te, Se, ve, $e, Q]), O(() => {
6046
6068
  n && !n.allowTranslate && J && Z(null);
6047
6069
  }, [n, J]);
6048
- const { model: ce, error: W, clearError: Ne, setLanguage: G, mergeTranslations: Le, translating: Ie, translateFailed: Fe, shownLang: Ae } = uc(ie, {
6070
+ const { model: ce, error: W, clearError: Ne, setLanguage: G, mergeTranslations: ke, translating: Ie, translateFailed: Fe, shownLang: Ae } = hc(ie, {
6049
6071
  lang: null,
6050
- onFrame: (L) => {
6051
- L.type === "job.progress" && D({ state: L.state, processedS: L.processedS ?? 0, totalS: L.totalS ?? null, segmentsDone: L.segmentsDone ?? 0, segmentsTotal: L.segmentsTotal ?? null, pct: L.pct ?? 0, error: L.error ?? null });
6072
+ onFrame: (k) => {
6073
+ k.type === "job.progress" && D({ state: k.state, processedS: k.processedS ?? 0, totalS: k.totalS ?? null, segmentsDone: k.segmentsDone ?? 0, segmentsTotal: k.segmentsTotal ?? null, pct: k.pct ?? 0, error: k.error ?? null });
6052
6074
  }
6053
- }), ue = ze(() => Pl(ce).filter((L) => !L.suppressed), [ce]), _e = dc((n == null ? void 0 : n.job) ?? null), Ve = ["done", "failed", "stopped"].includes(jr((_e == null ? void 0 : _e.state) ?? ((xs = n == null ? void 0 : n.job) == null ? void 0 : xs.state))), P = Ve ? _e : C ?? _e, Me = !!C && !["done", "failed", "stopped"].includes(jr(C.state)), de = k(0);
6075
+ }), ue = ze(() => Vl(ce).filter((k) => !k.suppressed), [ce]), _e = Mc((n == null ? void 0 : n.job) ?? null), Ve = ["done", "failed", "stopped"].includes(jr((_e == null ? void 0 : _e.state) ?? ((xs = n == null ? void 0 : n.job) == null ? void 0 : xs.state))), P = Ve ? _e : C ?? _e, Me = !!C && !["done", "failed", "stopped"].includes(jr(C.state)), de = w(0);
6054
6076
  O(() => {
6055
6077
  !Ve || !Me || Date.now() - de.current < 1e4 || (de.current = Date.now(), t.reread());
6056
6078
  }, [Ve, Me, C == null ? void 0 : C.state, C == null ? void 0 : C.processedS, o]);
6057
- const ae = jr((P == null ? void 0 : P.state) ?? ((Cs = n == null ? void 0 : n.job) == null ? void 0 : Cs.state) ?? (e.listen ? (j == null ? void 0 : j.state) === "finalized" ? "done" : j != null && j.state ? "transcribing" : void 0 : void 0)), ge = !!ie && (ae === "transcribing" || ae === "queued"), Ye = u && !r && (!n || (ge || ae === "cropping") && ue.length === 0), U = ge ? (P == null ? void 0 : P.pct) ?? 0 : 100, $ = Mc(n == null ? void 0 : n.job, P) ?? (j == null ? void 0 : j.mediaDurationS) ?? null, q = ((Ss = ce.segments.values().next().value) == null ? void 0 : Ss.language) ?? (j == null ? void 0 : j.spokenLanguage) ?? null, se = n != null && n.sharedBy ? `Shared by ${n.sharedBy}` : "", he = ((Es = (As = (Ds = n == null ? void 0 : n.job) == null ? void 0 : Ds.source) == null ? void 0 : As.name) == null ? void 0 : Es.trim()) || null, be = n ? ((_s = n.name) == null ? void 0 : _s.trim()) || he : null, ye = !!((Ys = n == null ? void 0 : n.job) != null && Ys.hasAudio), ke = (Us = n == null ? void 0 : n.job) == null ? void 0 : Us.source, Oe = !ye && !!ke && (ke.kind !== "url" || ke.bytes != null) && (ae === "transcribing" || ae === "queued" || ae === "done"), He = ie && (n != null && n.allowDownload) && ye ? Co(e.origin, ie, e.cred) : null, Pe = !!ke && (ke.kind !== "url" || ke.bytes != null), ht = Md(He && Pe ? He : null), at = He && (!Pe || ht === "yes") ? He : He && ht === "unknown" ? null : ie && (n != null && n.allowDownload) && (Oe || ye && Pe) ? Sn(e.origin, ie, "source", e.cred) : null, Tt = ue[ue.length - 1], Ge = Tt ? (($s = Tt.words[Tt.words.length - 1]) == null ? void 0 : $s.end) ?? Tt.start : 0, st = u && ge ? Math.max(Ge, (P == null ? void 0 : P.processedS) ?? 0) : null, gt = Nu(at, (ye || Oe) && !!(n != null && n.allowDownload), ue, $, Oe ? ((Ps = (Rs = n == null ? void 0 : n.job) == null ? void 0 : Rs.crop) == null ? void 0 : Ps.startS) ?? 0 : 0, st), it = Jo((Qs = n == null ? void 0 : n.job) == null ? void 0 : Qs.source), Be = it && ((Vs = en(it)) == null ? void 0 : Vs.id) === "youtube" ? pa(it) : null, fn = hl(Be), Yt = yu(ue, $, ((Hs = (Bs = n == null ? void 0 : n.job) == null ? void 0 : Bs.crop) == null ? void 0 : Hs.startS) ?? 0, st), Xe = !!Be, ct = Xe ? Yt.player : gt, ot = Ma(), rn = k(null), re = Lu({ forcedVoice: t.voice ?? null, recordingId: ie, model: ce, rows: ue, lenS: $, ended: !!ie && !ge, cred: e.cred, langs: ot, srcLang: q, canTranslate: !!(n != null && n.allowTranslate), pickedLang: ne, setPickedLang: Z, side: s && !te ? ku : void 0, hearOriginal: B, timed: !!Be, stockVoices: u && !$e, stickyPicker: u, pickerBusy: rn.current }), gn = k(null);
6079
+ const ae = jr((P == null ? void 0 : P.state) ?? ((Cs = n == null ? void 0 : n.job) == null ? void 0 : Cs.state) ?? (e.listen ? (z == null ? void 0 : z.state) === "finalized" ? "done" : z != null && z.state ? "transcribing" : void 0 : void 0)), ge = !!ie && (ae === "transcribing" || ae === "queued"), Ye = u && !r && (!n || (ge || ae === "cropping") && ue.length === 0), U = ge ? (P == null ? void 0 : P.pct) ?? 0 : 100, $ = gc(n == null ? void 0 : n.job, P) ?? (z == null ? void 0 : z.mediaDurationS) ?? null, q = ((Ss = ce.segments.values().next().value) == null ? void 0 : Ss.language) ?? (z == null ? void 0 : z.spokenLanguage) ?? null, se = n != null && n.sharedBy ? `Shared by ${n.sharedBy}` : "", he = ((Es = (As = (Ds = n == null ? void 0 : n.job) == null ? void 0 : Ds.source) == null ? void 0 : As.name) == null ? void 0 : Es.trim()) || null, be = n ? ((_s = n.name) == null ? void 0 : _s.trim()) || he : null, ye = !!((Ys = n == null ? void 0 : n.job) != null && Ys.hasAudio), Le = (Us = n == null ? void 0 : n.job) == null ? void 0 : Us.source, Oe = !ye && !!Le && (Le.kind !== "url" || Le.bytes != null) && (ae === "transcribing" || ae === "queued" || ae === "done"), He = ie && (n != null && n.allowDownload) && ye ? Co(e.origin, ie, e.cred) : null, Pe = !!Le && (Le.kind !== "url" || Le.bytes != null), ht = gd(He && Pe ? He : null), at = He && (!Pe || ht === "yes") ? He : He && ht === "unknown" ? null : ie && (n != null && n.allowDownload) && (Oe || ye && Pe) ? Sn(e.origin, ie, "source", e.cred) : null, Tt = ue[ue.length - 1], Ge = Tt ? (($s = Tt.words[Tt.words.length - 1]) == null ? void 0 : $s.end) ?? Tt.start : 0, st = u && ge ? Math.max(Ge, (P == null ? void 0 : P.processedS) ?? 0) : null, gt = vu(at, (ye || Oe) && !!(n != null && n.allowDownload), ue, $, Oe ? ((Ps = (Rs = n == null ? void 0 : n.job) == null ? void 0 : Rs.crop) == null ? void 0 : Ps.startS) ?? 0 : 0, st), it = Jo((Qs = n == null ? void 0 : n.job) == null ? void 0 : Qs.source), Be = it && ((Vs = Zt(it)) == null ? void 0 : Vs.id) === "youtube" ? pa(it) : null, fn = fl(Be), Yt = Tu(ue, $, ((Hs = (Bs = n == null ? void 0 : n.job) == null ? void 0 : Bs.crop) == null ? void 0 : Hs.startS) ?? 0, st), Xe = !!Be, ct = Xe ? Yt.player : gt, ot = Ma(), rn = w(null), re = zu({ forcedVoice: t.voice ?? null, recordingId: ie, model: ce, rows: ue, lenS: $, ended: !!ie && !ge, cred: e.cred, langs: ot, srcLang: q, canTranslate: !!(n != null && n.allowTranslate), pickedLang: ne, setPickedLang: Z, side: s && !te ? ju : void 0, hearOriginal: B, timed: !!Be, stockVoices: u && !$e, stickyPicker: u, pickerBusy: rn.current }), gn = w(null);
6058
6080
  O(() => {
6059
6081
  !ie || gn.current === J || (gn.current = J, G(J));
6060
6082
  }, [J, ie]);
@@ -6066,65 +6088,65 @@ function hd(t) {
6066
6088
  }
6067
6089
  (re.on ? ct : re.player).pause();
6068
6090
  }, [re.on, Xe]);
6069
- const Zn = ze(() => ue.filter((L) => L.sentenceId != null).map((L, pe, Re) => {
6091
+ const Zn = ze(() => ue.filter((k) => k.sentenceId != null).map((k, pe, Re) => {
6070
6092
  var We;
6071
- return { sid: L.sentenceId, start: L.start, end: ((We = Re[pe + 1]) == null ? void 0 : We.start) ?? Ft(L, L.start, L.start + 4) };
6072
- }), [ue]), Ut = Al({ on: Xe && re.on, lines: Zn, clips: re.clips, t: v.t, playing: v.playing, muted: v.muted }), $t = !!J && (Ie || re.relang || re.on && Ut.missing != null);
6093
+ return { sid: k.sentenceId, start: k.start, end: ((We = Re[pe + 1]) == null ? void 0 : We.start) ?? Ft(k, k.start, k.start + 4) };
6094
+ }), [ue]), Ut = _l({ on: Xe && re.on, lines: Zn, clips: re.clips, t: v.t, playing: v.playing, muted: v.muted }), $t = !!J && (Ie || re.relang || re.on && Ut.missing != null);
6073
6095
  rn.current = $t ? J : null, O(() => {
6074
6096
  Xe && re.on && Ut.sid != null && re.setNear(Ut.sid);
6075
- }, [Ut.sid, Xe, re.on]), pu([ct, re.player], re.sampling);
6076
- const Rt = k(null);
6097
+ }, [Ut.sid, Xe, re.on]), Nu([ct, re.player], re.sampling);
6098
+ const Rt = w(null);
6077
6099
  O(() => {
6078
6100
  ge && !v.playing && Rt.current && (Rt.current.scrollTop = Rt.current.scrollHeight);
6079
6101
  }, [ge, ue.length]);
6080
- const Gt = Iu(Rt, ue, h, T, y), mn = /* @__PURE__ */ i(zu, { open: h, q: T, onQ: N, onClose: () => y(!1), hits: Gt, desk: s, inline: s }), qe = fl({ name: n == null ? void 0 : n.name, sourceName: (Fs = (Ws = n == null ? void 0 : n.job) == null ? void 0 : Ws.source) == null ? void 0 : Fs.name, ytTitle: fn, url: ((Gs = (Zs = n == null ? void 0 : n.job) == null ? void 0 : Zs.source) == null ? void 0 : Gs.kind) === "url" ? n.job.source.url : t.src ?? null, id: o }), lt = !!(n != null && n.allowDownload), sn = !!(n != null && n.allowExport), vt = re.readLang, mt = vt ? ((qs = ot == null ? void 0 : ot.languages.find((L) => L.code === vt)) == null ? void 0 : qs.name) ?? vt.toUpperCase() : null, qt = async () => {
6102
+ const qt = Ou(Rt, ue, h, T, y), mn = /* @__PURE__ */ i(bu, { open: h, q: T, onQ: N, onClose: () => y(!1), hits: qt, desk: s, inline: s }), qe = ml({ name: n == null ? void 0 : n.name, sourceName: (Fs = (Ws = n == null ? void 0 : n.job) == null ? void 0 : Ws.source) == null ? void 0 : Fs.name, ytTitle: fn, url: ((Gs = (Zs = n == null ? void 0 : n.job) == null ? void 0 : Zs.source) == null ? void 0 : Gs.kind) === "url" ? n.job.source.url : t.src ?? null, id: o }), lt = !!(n != null && n.allowDownload), sn = !!(n != null && n.allowExport), vt = re.readLang, mt = vt ? ((qs = ot == null ? void 0 : ot.languages.find((k) => k.code === vt)) == null ? void 0 : qs.name) ?? vt.toUpperCase() : null, Kt = async () => {
6081
6103
  if (ie)
6082
6104
  try {
6083
6105
  if (vt && re.canSpeak) {
6084
- b(`Preparing ${qe} in ${mt}${re.readVoiceName ? `, read by ${re.readVoiceName}` : ""} — the download starts when it is ready.`), await mc(e, { recordingId: ie, lang: vt, voiceKey: re.readVoiceKey, cred: e.cred, request: re.requestTrack }), b(`Downloading ${qe} in ${mt}.`);
6106
+ b(`Preparing ${qe} in ${mt}${re.readVoiceName ? `, read by ${re.readVoiceName}` : ""} — the download starts when it is ready.`), await yc(e, { recordingId: ie, lang: vt, voiceKey: re.readVoiceKey, cred: e.cred, request: re.requestTrack }), b(`Downloading ${qe} in ${mt}.`);
6085
6107
  return;
6086
6108
  }
6087
6109
  if (ye) {
6088
- b(`Preparing ${qe} as MP3 — the download starts when it is ready.`), await fc(Sn(e.origin, ie, "delivery", e.cred)), b(`Downloading ${qe}.`);
6110
+ b(`Preparing ${qe} as MP3 — the download starts when it is ready.`), await mc(Sn(e.origin, ie, "delivery", e.cred)), b(`Downloading ${qe}.`);
6089
6111
  return;
6090
6112
  }
6091
6113
  Gr(Sn(e.origin, ie, "source", e.cred)), b(`Downloading ${qe} — the full audio, since the transcript is still being written.`);
6092
- } catch (L) {
6093
- throw M(Ct(L)), L;
6114
+ } catch (k) {
6115
+ throw M(Ct(k)), k;
6094
6116
  }
6095
- }, Mt = (L) => {
6117
+ }, Mt = (k) => {
6096
6118
  if (!ie) return;
6097
- const pe = Yr.find((We) => We.key === L).name, Re = mt ? ` in ${mt}` : "";
6098
- return gc(e, ie, L, { lang: vt }).then(() => b(ge ? `${pe} exported${Re} for the first ${ue.length} segments — the rest is still transcribing.` : `${pe} exported${Re}.`)).catch((We) => {
6119
+ const pe = Yr.find((We) => We.key === k).name, Re = mt ? ` in ${mt}` : "";
6120
+ return pc(e, ie, k, { lang: vt }).then(() => b(ge ? `${pe} exported${Re} for the first ${ue.length} segments — the rest is still transcribing.` : `${pe} exported${Re}.`)).catch((We) => {
6099
6121
  throw M(Ct(We)), We;
6100
6122
  });
6101
- }, an = ge ? "MORE TO COME…" : "END OF TRANSCRIPT", ut = ge ? "var(--brand)" : "var(--ink-28)", on = hc(P, ue.length), St = v.has && (!re.relang || !!Be), Ze = k(v);
6123
+ }, an = ge ? "MORE TO COME…" : "END OF TRANSCRIPT", ut = ge ? "var(--brand)" : "var(--ink-28)", on = fc(P, ue.length), St = v.has && (!re.relang || !!Be), Ze = w(v);
6102
6124
  Ze.current = v;
6103
- const Pt = `${J ?? ""}|${re.on ? "voice" : "source"}`, jt = k({ key: Pt, idx: 0, t: 0, playing: !1, until: 0 });
6125
+ const Pt = `${J ?? ""}|${re.on ? "voice" : "source"}`, jt = w({ key: Pt, idx: 0, t: 0, playing: !1, until: 0 });
6104
6126
  O(() => {
6105
- const L = jt.current;
6106
- if (L.key !== Pt && (L.key = Pt, L.until = Date.now() + 15e3), !Xe) {
6107
- if (!L.until) {
6108
- L.idx = v.idx, L.t = v.t, L.playing = v.playing;
6127
+ const k = jt.current;
6128
+ if (k.key !== Pt && (k.key = Pt, k.until = Date.now() + 15e3), !Xe) {
6129
+ if (!k.until) {
6130
+ k.idx = v.idx, k.t = v.t, k.playing = v.playing;
6109
6131
  return;
6110
6132
  }
6111
- if (Date.now() > L.until) {
6112
- L.until = 0;
6133
+ if (Date.now() > k.until) {
6134
+ k.until = 0;
6113
6135
  return;
6114
6136
  }
6115
- !v.has || re.relang || (L.until = 0, Math.abs(v.t - L.t) > 0.5 && (v.seekFrac && v.dur > 0 ? v.seekFrac(L.t / v.dur) : v.seekRow(L.idx)), L.playing && !v.playing && V === "listen" && (tt.current = !0, v.toggle()));
6137
+ !v.has || re.relang || (k.until = 0, Math.abs(v.t - k.t) > 0.5 && (v.seekFrac && v.dur > 0 ? v.seekFrac(k.t / v.dur) : v.seekRow(k.idx)), k.playing && !v.playing && V === "listen" && (tt.current = !0, v.toggle()));
6116
6138
  }
6117
6139
  });
6118
- const Qt = k(!1), tt = k(!1);
6140
+ const Qt = w(!1), tt = w(!1);
6119
6141
  u && (qi.video = !0);
6120
- const [pn, Dt] = z(!1), [Gn, qn] = z(!1);
6142
+ const [pn, Dt] = j(!1), [Gn, qn] = j(!1);
6121
6143
  O(() => {
6122
6144
  if (!u || Qt.current || !St || !te || Ye || t.autoplay === !1) return;
6123
6145
  Qt.current = !0;
6124
- const L = (We) => {
6125
- Ze.current.playing || tt.current || (Ze.current.toggle(), We > 0 && setTimeout(() => L(We - 1), 1500));
6146
+ const k = (We) => {
6147
+ Ze.current.playing || tt.current || (Ze.current.toggle(), We > 0 && setTimeout(() => k(We - 1), 1500));
6126
6148
  }, pe = () => {
6127
- Ze.current.muted || Ze.current.toggleMute(), Dt(!0), L(3);
6149
+ Ze.current.muted || Ze.current.toggleMute(), Dt(!0), k(3);
6128
6150
  }, Re = Ze.current;
6129
6151
  if (!Re.autoplay || t.startMuted) {
6130
6152
  pe();
@@ -6134,7 +6156,7 @@ function hd(t) {
6134
6156
  We === !1 ? Dt(!0) : We == null && !tt.current && pe();
6135
6157
  });
6136
6158
  }, [u, St, te, Ye]);
6137
- const At = k(!1), Kn = () => {
6159
+ const At = w(!1), Kn = () => {
6138
6160
  pn && (Dt(!1), At.current = !0, setTimeout(() => {
6139
6161
  At.current = !1;
6140
6162
  }, 500), Ze.current.muted && Ze.current.toggleMute());
@@ -6150,41 +6172,41 @@ function hd(t) {
6150
6172
  return;
6151
6173
  }
6152
6174
  tt.current = !0, Ze.current.toggle();
6153
- }, Nn = (L) => /* @__PURE__ */ i(hu, { player: v, size: L }), ln = !!ie && !ge, [R, Ce] = z(!1);
6175
+ }, Nn = (k) => /* @__PURE__ */ i(fu, { player: v, size: k }), ln = !!ie && !ge, [R, Ce] = j(!1);
6154
6176
  O(() => {
6155
6177
  if (!Ie) {
6156
6178
  Ce(!1);
6157
6179
  return;
6158
6180
  }
6159
- const L = setTimeout(() => Ce(!0), 180);
6160
- return () => clearTimeout(L);
6181
+ const k = setTimeout(() => Ce(!0), 180);
6182
+ return () => clearTimeout(k);
6161
6183
  }, [Ie]);
6162
- const Qe = R ? Ae : J, Et = bc(ie, J, ue, Le), Vt = Vc(Bc(j), ie, re.readLang), Da = lt || sn, Aa = (((Js = (Ks = n == null ? void 0 : n.job) == null ? void 0 : Ks.crop) == null ? void 0 : Js.startS) ?? 0) + bt(v, ue), zt = V === "listen", Bt = zt && (!!Be || u), Ea = (L) => {
6163
- ct.pause(), re.player.pause(), Y(L), L === "read" && te && (dn(!1), K(!1));
6184
+ const Qe = R ? Ae : J, Et = xc(ie, J, ue, ke), Vt = Hc(Wc(z), ie, re.readLang), Da = lt || sn, Aa = (((Js = (Ks = n == null ? void 0 : n.job) == null ? void 0 : Ks.crop) == null ? void 0 : Js.startS) ?? 0) + bt(v, ue), zt = V === "listen", Bt = zt && (!!Be || u), Ea = (k) => {
6185
+ ct.pause(), re.player.pause(), Y(k), k === "read" && te && (dn(!1), K(!1));
6164
6186
  };
6165
6187
  O(() => {
6166
6188
  zt || (ct.playing && ct.pause(), re.player.playing && re.player.pause());
6167
6189
  }, [zt, ct.playing, re.player.playing]);
6168
- const Ue = re.barChip, Kt = ga(Ue.label), Xr = /* @__PURE__ */ i(Or, { value: V, onChange: Ea, bordered: !1, options: Ru(Kt, !!Be) }), Jt = [...ln ? [{ key: "summary", label: "Summary" }] : [], ...Da ? [{ key: "export", label: "Export" }] : []], es = (L) => /* @__PURE__ */ m(xe, { children: [
6169
- L === "summary" && ln && /* @__PURE__ */ i(Hc, { s: Vt }),
6170
- L === "export" && /* @__PURE__ */ i(Qc, { audio: lt ? { name: qe, meta: vt && re.canSpeak || ye ? `MP3${$ ? ` · ${Ot($)}` : ""}` : "ORIGINAL AUDIO", onClick: qt } : null, formats: sn, onExport: Mt })
6171
- ] }), _a = (L) => /* @__PURE__ */ i(Lc, { index: v.idx, total: Math.max(1, ue.length), frac: v.dur > 0 ? Math.min(1, v.t / v.dur) : 0, glideMs: v.wordSync ? 0 : 220, atLabel: Ot(v.t), durLabel: Ot(v.dur), stepLabel: L ? `${v.idx + 1} / ${ue.length}` : "", onSeek: re.relang ? vu : v.seekRow, onSeekFrac: re.relang ? void 0 : v.seekFrac, onScrubStart: v.hold, onScrubEnd: v.release }), ts = {
6190
+ const Ue = re.barChip, Jt = ga(Ue.label), Xr = /* @__PURE__ */ i(Or, { value: V, onChange: Ea, bordered: !1, options: Qu(Jt, !!Be) }), Xt = [...ln ? [{ key: "summary", label: "Summary" }] : [], ...Da ? [{ key: "export", label: "Export" }] : []], es = (k) => /* @__PURE__ */ m(xe, { children: [
6191
+ k === "summary" && ln && /* @__PURE__ */ i(Fc, { s: Vt }),
6192
+ k === "export" && /* @__PURE__ */ i(Bc, { audio: lt ? { name: qe, meta: vt && re.canSpeak || ye ? `MP3${$ ? ` · ${Ot($)}` : ""}` : "ORIGINAL AUDIO", onClick: Kt } : null, formats: sn, onExport: Mt })
6193
+ ] }), _a = (k) => /* @__PURE__ */ i(zc, { index: v.idx, total: Math.max(1, ue.length), frac: v.dur > 0 ? Math.min(1, v.t / v.dur) : 0, glideMs: v.wordSync ? 0 : 220, atLabel: Ot(v.t), durLabel: Ot(v.dur), stepLabel: k ? `${v.idx + 1} / ${ue.length}` : "", onSeek: re.relang ? Lu : v.seekRow, onSeekFrac: re.relang ? void 0 : v.seekFrac, onScrubStart: v.hold, onScrubEnd: v.release }), ts = {
6172
6194
  live: !1,
6173
6195
  atEdge: !1,
6174
6196
  edgeFrac: null,
6175
6197
  readyFrac: st != null && v.dur > 0 ? Math.min(1, st / v.dur) : null,
6176
6198
  pct: v.dur > 0 ? Math.min(100, Math.round(v.t / v.dur * 1e3) / 10) : 0,
6177
6199
  atLabel: Ot(v.t),
6178
- labelAt: (L) => Ot(L * v.dur),
6200
+ labelAt: (k) => Ot(k * v.dur),
6179
6201
  endLabel: Ot(v.dur),
6180
- onSeek: (L) => {
6202
+ onSeek: (k) => {
6181
6203
  var pe;
6182
- re.relang || (pe = v.seekFrac) == null || pe.call(v, L);
6204
+ re.relang || (pe = v.seekFrac) == null || pe.call(v, k);
6183
6205
  }
6184
- }, [Ya, Ua] = wa(re.on && !!v.preparing && v.playing, 1500), Jn = re.on && ((Xs = v.error) == null ? void 0 : Xs.code) === "voice_not_started", Xn = re.canSpeak && !re.error && !Jn, Tn = J ? ((ei = ot == null ? void 0 : ot.languages.find((L) => L.code === J)) == null ? void 0 : ei.name) ?? Ue.label : "", nt = te ? au({ lang: J, langName: Tn, translating: Ie && !!J, translateFailed: Fe, voiceFailed: Jn, relang: re.relang, starting: re.on ? v.starting : null, slowLine: Ya, lineSince: Ua }) : null, er = !!Be && !!nt && (nt.kind === "translating" || nt.kind === "voice" && re.relang), ns = !er || !nt ? null : nt.kind === "translating" ? `Translating into ${Tn || "the new language"}…` : `Preparing the ${Tn || "translated"} voice…`, yt = !er && ((nt == null ? void 0 : nt.kind) === "voice" || (nt == null ? void 0 : nt.kind) === "starting"), rs = Br({ ...re.langList, keepOpen: !0, open: w === "lang", onClose: () => x("main") }), ss = Nl(Q, re.on), $a = u && ss.bed && lt && ie && (!ge || at) ? vi(e.origin, ie, e.cred) : null, is = bl($a, { t: bt(v, ue), playing: v.playing && !yt && !(v.timed && v.preparing), muted: v.muted }), Ra = u && ss.speech && lt && ie && (!ge || at) ? vi(e.origin, ie, e.cred, "speech") : null, tr = oa(Ra, { t: bt(v, ue), playing: !re.on && v.playing, muted: v.muted }), nr = !re.on && tr.on;
6206
+ }, [Ya, Ua] = wa(re.on && !!v.preparing && v.playing, 1500), Jn = re.on && ((Xs = v.error) == null ? void 0 : Xs.code) === "voice_not_started", Xn = re.canSpeak && !re.error && !Jn, Tn = J ? ((ei = ot == null ? void 0 : ot.languages.find((k) => k.code === J)) == null ? void 0 : ei.name) ?? Ue.label : "", nt = te ? lu({ lang: J, langName: Tn, translating: Ie && !!J, translateFailed: Fe, voiceFailed: Jn, relang: re.relang, starting: re.on ? v.starting : null, slowLine: Ya, lineSince: Ua }) : null, er = !!Be && !!nt && (nt.kind === "translating" || nt.kind === "voice" && re.relang), ns = !er || !nt ? null : nt.kind === "translating" ? `Translating into ${Tn || "the new language"}…` : `Preparing the ${Tn || "translated"} voice…`, yt = !er && ((nt == null ? void 0 : nt.kind) === "voice" || (nt == null ? void 0 : nt.kind) === "starting"), rs = Br({ ...re.langList, keepOpen: !0, open: L === "lang", onClose: () => x("main") }), ss = vl(Q, re.on), $a = u && ss.bed && lt && ie && (!ge || at) ? vi(e.origin, ie, e.cred) : null, is = xl($a, { t: bt(v, ue), playing: v.playing && !yt && !(v.timed && v.preparing), muted: v.muted }), Ra = u && ss.speech && lt && ie && (!ge || at) ? vi(e.origin, ie, e.cred, "speech") : null, tr = oa(Ra, { t: bt(v, ue), playing: !re.on && v.playing, muted: v.muted }), nr = !re.on && tr.on;
6185
6207
  O(() => {
6186
- var L;
6187
- Yt.setVideoSound(!(Xe && (re.on || nr))), (L = gt.silence) == null || L.call(gt, !Xe && nr);
6208
+ var k;
6209
+ Yt.setVideoSound(!(Xe && (re.on || nr))), (k = gt.silence) == null || k.call(gt, !Xe && nr);
6188
6210
  }, [Xe, re.on, nr, at]);
6189
6211
  const rr = lt ? re.on ? is : tr.state : "unavailable", sr = ve && Xn && !!J, Pa = sr ? [`Translated${re.hasClone ? $e ? ", cloned voices" : ", synthetic voices" : ""}`, !Q && lt && is !== "unavailable" ? "with background sound" : null].filter(Boolean).join(" ") : Q && rr !== "unavailable" ? "Original speech, background removed" : "Original sound", Qa = () => {
6190
6212
  if ((nt == null ? void 0 : nt.kind) === "translateFailed") {
@@ -6193,31 +6215,31 @@ function hd(t) {
6193
6215
  }
6194
6216
  tt.current = !0, v.toggle();
6195
6217
  }, Va = () => {
6196
- const L = v.idx;
6197
- v.pause(), Z(null), tt.current = !0, ct.playRow(L);
6218
+ const k = v.idx;
6219
+ v.pause(), Z(null), tt.current = !0, ct.playRow(k);
6198
6220
  }, as = { prevOn: v.idx > 0, nextOn: v.idx < ue.length - 1, onPrev: v.prev, onNext: v.next, playing: v.playing, playable: St, playTitle: re.playTitle ?? (v.playing ? "Pause" : "Play"), onPlay: () => {
6199
6221
  tt.current = !0, v.toggle();
6200
6222
  }, busy: re.relang && !Be || yt };
6201
- Yl(St && zt ? { playing: v.playing, toggle: () => {
6223
+ $l(St && zt ? { playing: v.playing, toggle: () => {
6202
6224
  tt.current = !0, v.toggle();
6203
6225
  }, next: v.next, prev: v.prev } : null, be);
6204
- const ir = { background: "transparent", color: "#eef0f8", width: 74, justifyContent: "center", boxSizing: "border-box" }, ar = (L, pe) => !Ue.can || !S.language ? null : u ? /* @__PURE__ */ m("button", { type: "button", className: "gfull__btn", title: $t ? `${Ue.label ?? Ue.code}: still being prepared` : Ue.label ?? Ue.code, "aria-label": `Language: ${Ue.label ?? Ue.code}`, "aria-busy": $t || void 0, onClick: () => {
6226
+ const ir = { background: "transparent", color: "#eef0f8", width: 74, justifyContent: "center", boxSizing: "border-box" }, ar = (k, pe) => !Ue.can || !S.language ? null : u ? /* @__PURE__ */ m("button", { type: "button", className: "gfull__btn", title: $t ? `${Ue.label ?? Ue.code}: still being prepared` : Ue.label ?? Ue.code, "aria-label": `Language: ${Ue.label ?? Ue.code}`, "aria-busy": $t || void 0, onClick: () => {
6205
6227
  I(!1), Ue.onClick();
6206
6228
  }, style: { position: "relative" }, children: [
6207
6229
  /* @__PURE__ */ i("span", { style: { fontSize: pe === "sm" ? 17 : 21, lineHeight: 1 }, children: Ue.flag }),
6208
6230
  $t && /* @__PURE__ */ i("span", { style: { position: "absolute", right: 2, bottom: 2, display: "flex", borderRadius: 999, background: "rgba(5,6,21,.7)", padding: 1 }, children: /* @__PURE__ */ i(ft, { size: 11, color: "#eef0f8", track: "rgba(255,255,255,.25)" }) })
6209
- ] }) : /* @__PURE__ */ i(Qn, { flag: Ue.flag, code: Ue.code, label: Ue.label, bordered: !1, size: pe, onClick: Ue.onClick, style: L }), os = { on: !1, title: "Voices", onClick: () => {
6210
- }, busy: re.voiceWaiting || yt }, [Ba, Ha] = z(!1);
6231
+ ] }) : /* @__PURE__ */ i(Qn, { flag: Ue.flag, code: Ue.code, label: Ue.label, bordered: !1, size: pe, onClick: Ue.onClick, style: k }), os = { on: !1, title: "Voices", onClick: () => {
6232
+ }, busy: re.voiceWaiting || yt }, [Ba, Ha] = j(!1);
6211
6233
  O(() => {
6212
6234
  v.t > 0.3 && Ha(!0);
6213
6235
  }, [v.t]);
6214
- const Wa = !Be && u && ie && (n != null && n.allowDownload) && !ge && ((ti = n == null ? void 0 : n.job) == null ? void 0 : ti.hasVideo) !== !1 && ((ri = (ni = n == null ? void 0 : n.job) == null ? void 0 : ni.source) == null ? void 0 : ri.kind) !== "url" ? /* @__PURE__ */ i(ki, { src: Sn(e.origin, ie, "video", e.cred), t: bt(v, ue), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, ie) : null, dt = !Be && u && it && qo(it) ? it : null, vn = dt ? ia(dt) : null, ls = ze(() => vn ? dl(vn) : void 0, [vn]), or = dt && ((si = en(dt)) == null ? void 0 : si.id) === "facebook" ? dt : null, lr = dt && ((ii = en(dt)) == null ? void 0 : ii.id) === "wistia" ? Xo(dt) : null, cr = dt && ((ai = en(dt)) == null ? void 0 : ai.id) === "vidyard" ? el(dt) : null, Fa = cr ? /* @__PURE__ */ i(ll, { uuid: cr, t: bt(v, ue) + (((li = (oi = n == null ? void 0 : n.job) == null ? void 0 : oi.crop) == null ? void 0 : li.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, cr) : lr ? /* @__PURE__ */ i(al, { id: lr, t: bt(v, ue) + (((ui = (ci = n == null ? void 0 : n.job) == null ? void 0 : ci.crop) == null ? void 0 : ui.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, lr) : or ? /* @__PURE__ */ i(sl, { url: or, t: bt(v, ue) + (((hi = (di = n == null ? void 0 : n.job) == null ? void 0 : di.crop) == null ? void 0 : hi.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, or) : ls ? /* @__PURE__ */ i(ki, { setup: ls, seekOver: 1, t: bt(v, ue) + (((fi = (Mi = n == null ? void 0 : n.job) == null ? void 0 : Mi.crop) == null ? void 0 : fi.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, vn) : dt ? /* @__PURE__ */ i(tl, { url: dt, t: bt(v, ue) + (((mi = (gi = n == null ? void 0 : n.job) == null ? void 0 : gi.crop) == null ? void 0 : mi.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, title: qe, onToggle: v.has ? pt : void 0 }) : null, Za = v.has ? /* @__PURE__ */ m("div", { className: "txyt vsp-follow", children: [
6236
+ const Wa = !Be && u && ie && (n != null && n.allowDownload) && !ge && ((ti = n == null ? void 0 : n.job) == null ? void 0 : ti.hasVideo) !== !1 && ((ri = (ni = n == null ? void 0 : n.job) == null ? void 0 : ni.source) == null ? void 0 : ri.kind) !== "url" ? /* @__PURE__ */ i(Li, { src: Sn(e.origin, ie, "video", e.cred), t: bt(v, ue), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, ie) : null, dt = !Be && u && it && qo(it) ? it : null, vn = dt ? ia(dt) : null, ls = ze(() => vn ? Ml(vn) : void 0, [vn]), or = dt && ((si = Zt(dt)) == null ? void 0 : si.id) === "facebook" ? dt : null, lr = dt && ((ii = Zt(dt)) == null ? void 0 : ii.id) === "wistia" ? Xo(dt) : null, cr = dt && ((ai = Zt(dt)) == null ? void 0 : ai.id) === "vidyard" ? el(dt) : null, Fa = cr ? /* @__PURE__ */ i(ul, { uuid: cr, t: bt(v, ue) + (((li = (oi = n == null ? void 0 : n.job) == null ? void 0 : oi.crop) == null ? void 0 : li.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, cr) : lr ? /* @__PURE__ */ i(ll, { id: lr, t: bt(v, ue) + (((ui = (ci = n == null ? void 0 : n.job) == null ? void 0 : ci.crop) == null ? void 0 : ui.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, lr) : or ? /* @__PURE__ */ i(al, { url: or, t: bt(v, ue) + (((hi = (di = n == null ? void 0 : n.job) == null ? void 0 : di.crop) == null ? void 0 : hi.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, or) : ls ? /* @__PURE__ */ i(Li, { setup: ls, seekOver: 1, t: bt(v, ue) + (((fi = (Mi = n == null ? void 0 : n.job) == null ? void 0 : Mi.crop) == null ? void 0 : fi.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, onToggle: v.has ? pt : void 0 }, vn) : dt ? /* @__PURE__ */ i(rl, { url: dt, t: bt(v, ue) + (((mi = (gi = n == null ? void 0 : n.job) == null ? void 0 : gi.crop) == null ? void 0 : mi.startS) ?? 0), playing: v.playing && !yt, seekN: v.seekN, title: qe, onToggle: v.has ? pt : void 0 }) : null, Za = v.has ? /* @__PURE__ */ m("div", { className: "txyt vsp-follow", children: [
6215
6237
  /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: pt, style: { cursor: "pointer" } }),
6216
6238
  /* @__PURE__ */ i("div", { className: `txyt__paused${v.playing ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(xt, { size: 44 }) }) })
6217
6239
  ] }) : null, ur = ((yi = (pi = n == null ? void 0 : n.job) == null ? void 0 : pi.source) == null ? void 0 : yi.thumbnailUrl) ?? null, Ga = ur && /^https:\/\//.test(ur) ? /* @__PURE__ */ i("div", { className: "vsp-thumbpic", "aria-hidden": "true", style: { backgroundImage: `url(${JSON.stringify(ur)})` } }) : null, cs = Be ? /* @__PURE__ */ m(xe, { children: [
6218
- /* @__PURE__ */ i(cu, { ytId: Be, title: qe, t: Aa, playing: v.playing && !yt, waiting: re.on && !!v.timed && !!v.preparing, seekN: v.seekN, onTime: (L) => {
6240
+ /* @__PURE__ */ i(du, { ytId: Be, title: qe, t: Aa, playing: v.playing && !yt, waiting: re.on && !!v.timed && !!v.preparing, seekN: v.seekN, onTime: (k) => {
6219
6241
  var pe, Re, We;
6220
- return (We = v.videoAt) == null ? void 0 : We.call(v, L - (((Re = (pe = n == null ? void 0 : n.job) == null ? void 0 : pe.crop) == null ? void 0 : Re.startS) ?? 0));
6242
+ return (We = v.videoAt) == null ? void 0 : We.call(v, k - (((Re = (pe = n == null ? void 0 : n.job) == null ? void 0 : pe.crop) == null ? void 0 : Re.startS) ?? 0));
6221
6243
  }, onToggle: v.has ? pt : void 0, onAd: qn, lead: Xe ? Yt.lead : void 0 }),
6222
6244
  /* @__PURE__ */ m("div", { className: "vsp-poster", "aria-hidden": "true", style: { opacity: Ba ? 0 : 1 }, children: [
6223
6245
  /* @__PURE__ */ i("div", { className: "vsp-poster__img", style: { backgroundImage: `url(https://i.ytimg.com/vi/${Be}/hqdefault.jpg)` } }),
@@ -6229,46 +6251,46 @@ function hd(t) {
6229
6251
  Za,
6230
6252
  Fa,
6231
6253
  Wa
6232
- ] }) : null, us = Bt && Be && !te ? /* @__PURE__ */ i(Wc, { ytId: Be, title: qe, radius: 14, large: !0, style: s ? void 0 : { margin: "8px 20px 2px" }, picture: cs, children: /* @__PURE__ */ i(_u, { pos: ts, transport: as, chip: ar({ ...ir, width: 64, height: 28, minHeight: 28, padding: "0 8px" }, "sm"), voices: os, onFull: () => {
6254
+ ] }) : null, us = Bt && Be && !te ? /* @__PURE__ */ i(Zc, { ytId: Be, title: qe, radius: 14, large: !0, style: s ? void 0 : { margin: "8px 20px 2px" }, picture: cs, children: /* @__PURE__ */ i(Uu, { pos: ts, transport: as, chip: ar({ ...ir, width: 64, height: 28, minHeight: 28, padding: "0 8px" }, "sm"), voices: os, onFull: () => {
6233
6255
  dn(!0), K(!0);
6234
- }, copied: null }) }) : null, et = v.wordSync ? Nc(ue, v.idx, v.t) ? ue[v.idx] : void 0 : ue[v.idx];
6235
- for (const L of ue) for (const [pe, Re] of Object.entries(L.translations)) Re && A.current.set(`${L.sentenceId ?? L.start}|${pe}`, Re);
6236
- const ds = (L, pe) => L.translations[pe] || A.current.get(`${L.sentenceId ?? L.start}|${pe}`) || null, dr = (L, pe) => !L || !pe || L.language === pe || !!ds(L, pe), It = dr(et, J) ? J : dr(et, F.current) ? F.current : J;
6256
+ }, copied: null }) }) : null, et = v.wordSync ? vc(ue, v.idx, v.t) ? ue[v.idx] : void 0 : ue[v.idx];
6257
+ for (const k of ue) for (const [pe, Re] of Object.entries(k.translations)) Re && A.current.set(`${k.sentenceId ?? k.start}|${pe}`, Re);
6258
+ const ds = (k, pe) => k.translations[pe] || A.current.get(`${k.sentenceId ?? k.start}|${pe}`) || null, dr = (k, pe) => !k || !pe || k.language === pe || !!ds(k, pe), It = dr(et, J) ? J : dr(et, F.current) ? F.current : J;
6237
6259
  et && dr(et, It) && (F.current = It);
6238
- const hs = et && It && et.language !== It ? ds(et, It) : null, qa = et && hs && It && !et.translations[It] ? Object.assign([...ue], { [v.idx]: { ...et, translations: { ...et.translations, [It]: hs } } }) : ue, wn = et ? ka(qa, v.idx, It) : [], kn = Te ? Te === "on" : !u || re.on || !Qe || Qe === q, Ms = kn ? Yi(v, v.idx, wn) : null, fs = wn.map((L, pe) => ({ t: L.text, sp: pe < wn.length - 1 ? " " : "", dim: Ms != null && pe > Ms })), Ln = me ? me === "on" : u ? !1 : Kl(ce, ue, j == null ? void 0 : j.settings), gs = { lang: J, subtitles: Se, speakerLabels: Ln, wordHighlight: kn, translateAudio: ve, voices: $e ? "cloned" : "synthetic", removeBackground: Q }, Ka = JSON.stringify(gs), jn = k(t.onSettingsChange);
6260
+ const hs = et && It && et.language !== It ? ds(et, It) : null, qa = et && hs && It && !et.translations[It] ? Object.assign([...ue], { [v.idx]: { ...et, translations: { ...et.translations, [It]: hs } } }) : ue, wn = et ? La(qa, v.idx, It) : [], Ln = Te ? Te === "on" : !u || re.on || !Qe || Qe === q, Ms = Ln ? Yi(v, v.idx, wn) : null, fs = wn.map((k, pe) => ({ t: k.text, sp: pe < wn.length - 1 ? " " : "", dim: Ms != null && pe > Ms })), kn = me ? me === "on" : u ? !1 : Xl(ce, ue, z == null ? void 0 : z.settings), gs = { lang: J, subtitles: Se, speakerLabels: kn, wordHighlight: Ln, translateAudio: ve, voices: $e ? "cloned" : "synthetic", removeBackground: Q }, Ka = JSON.stringify(gs), jn = w(t.onSettingsChange);
6239
6261
  jn.current = t.onSettingsChange, O(() => {
6240
- var L;
6241
- (L = jn.current) == null || L.call(jn, gs);
6262
+ var k;
6263
+ (k = jn.current) == null || k.call(jn, gs);
6242
6264
  }, [Ka]);
6243
- const zn = et && et.speaker >= 0 && Ln ? Fr(ce, et.speaker) : null, [Ja, ms] = z(!1), [hr, ps] = z(null), [Xa, ys] = z(null), Mr = k(void 0);
6265
+ const zn = et && et.speaker >= 0 && kn ? Fr(ce, et.speaker) : null, [Ja, ms] = j(!1), [hr, ps] = j(null), [Xa, ys] = j(null), Mr = w(void 0);
6244
6266
  O(() => () => window.clearTimeout(Mr.current), []);
6245
- const fr = k(void 0);
6267
+ const fr = w(void 0);
6246
6268
  O(() => () => window.clearTimeout(fr.current), []);
6247
- const Ns = (L) => {
6248
- if (t.shareUrl) return t.shareUrl(L);
6269
+ const Ns = (k) => {
6270
+ if (t.shareUrl) return t.shareUrl(k);
6249
6271
  const pe = new URL(window.location.href);
6250
- return L != null && L > 0 ? pe.searchParams.set("t", String(L)) : pe.searchParams.delete("t"), pe.href;
6251
- }, In = k(l.startAt), gr = (L) => {
6272
+ return k != null && k > 0 ? pe.searchParams.set("t", String(k)) : pe.searchParams.delete("t"), pe.href;
6273
+ }, In = w(l.startAt), gr = (k) => {
6252
6274
  if (v.seekFrac && v.dur > 0) {
6253
- v.seekFrac(Math.min(1, L / v.dur));
6275
+ v.seekFrac(Math.min(1, k / v.dur));
6254
6276
  return;
6255
6277
  }
6256
6278
  let pe = 0;
6257
- for (let Re = 0; Re < ue.length; Re++) ue[Re].start <= L && (pe = Re);
6279
+ for (let Re = 0; Re < ue.length; Re++) ue[Re].start <= k && (pe = Re);
6258
6280
  v.seekRow(pe);
6259
- }, Ts = k(!1);
6281
+ }, Ts = w(!1);
6260
6282
  O(() => {
6261
- const L = In.current;
6262
- L == null || Ts.current || !v.has || ue.length === 0 || (Ts.current = !0, gr(L));
6283
+ const k = In.current;
6284
+ k == null || Ts.current || !v.has || ue.length === 0 || (Ts.current = !0, gr(k));
6263
6285
  }, [v.has, ue.length]), O(() => {
6264
- const L = In.current;
6265
- L == null || !v.playing || (In.current = null, Math.abs(v.t - L) > 2 && gr(L));
6286
+ const k = In.current;
6287
+ k == null || !v.playing || (In.current = null, Math.abs(v.t - k) > 2 && gr(k));
6266
6288
  }, [v.playing]);
6267
- const eo = (L) => {
6268
- tt.current = !0, In.current = null, gr(Math.max(0, L));
6289
+ const eo = (k) => {
6290
+ tt.current = !0, In.current = null, gr(Math.max(0, k));
6269
6291
  };
6270
6292
  t.handle.current = {
6271
- seek: (L) => eo(L),
6293
+ seek: (k) => eo(k),
6272
6294
  play: () => {
6273
6295
  tt.current = !0, zt && !Ze.current.playing && Ze.current.toggle();
6274
6296
  },
@@ -6284,28 +6306,28 @@ function hd(t) {
6284
6306
  }, O(() => () => {
6285
6307
  t.handle.current = null;
6286
6308
  }, []);
6287
- const vs = k(t.onPlayback);
6309
+ const vs = w(t.onPlayback);
6288
6310
  vs.current = t.onPlayback;
6289
- const ws = k(J);
6311
+ const ws = w(J);
6290
6312
  ws.current = J, O(() => {
6291
- let L = "";
6313
+ let k = "";
6292
6314
  const pe = () => {
6293
6315
  const We = vs.current;
6294
6316
  if (!We) return;
6295
6317
  const wt = Ze.current, Nt = { t: wt.t, dur: wt.dur, playing: wt.playing, idx: wt.idx, seekN: wt.seekN, lang: ws.current, muted: wt.muted }, Cn = `${Nt.t.toFixed(2)}|${Nt.dur}|${Nt.playing}|${Nt.idx}|${Nt.seekN}|${Nt.lang}|${Nt.muted}`;
6296
- Cn !== L && (L = Cn, We(Nt));
6318
+ Cn !== k && (k = Cn, We(Nt));
6297
6319
  };
6298
6320
  pe();
6299
- const Re = window.setInterval(pe, ud);
6321
+ const Re = window.setInterval(pe, hd);
6300
6322
  return () => window.clearInterval(Re);
6301
6323
  }, []);
6302
6324
  const to = () => t.onShare ? t.onShare() : qr(Ns(null), qe, () => {
6303
6325
  window.clearTimeout(fr.current), ms(!0), fr.current = window.setTimeout(() => ms(!1), 2200);
6304
- }), ks = (L, pe, Re) => {
6305
- const We = Yr.find((Cn) => Cn.key === L), wt = hr === L, Nt = Xa === L;
6326
+ }), Ls = (k, pe, Re) => {
6327
+ const We = Yr.find((Cn) => Cn.key === k), wt = hr === k, Nt = Xa === k;
6306
6328
  return /* @__PURE__ */ m("div", { className: "srow srow--tap", role: "button", "aria-busy": wt || void 0, style: hr && !wt ? { opacity: 0.45, pointerEvents: "none" } : void 0, onClick: () => {
6307
- hr || (ps(L), Promise.resolve().then(() => Mt(L)).then(() => {
6308
- ys(L), window.clearTimeout(Mr.current), Mr.current = window.setTimeout(() => ys(null), 1600);
6329
+ hr || (ps(k), Promise.resolve().then(() => Mt(k)).then(() => {
6330
+ ys(k), window.clearTimeout(Mr.current), Mr.current = window.setTimeout(() => ys(null), 1600);
6309
6331
  }).catch(() => {
6310
6332
  }).finally(() => ps(null)));
6311
6333
  }, children: [
@@ -6322,56 +6344,56 @@ function hd(t) {
6322
6344
  /* @__PURE__ */ i(oe, { d: X.chevronLeft, size: 18, sw: 1.8 }),
6323
6345
  "Back"
6324
6346
  ] })
6325
- ] }), bn = /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 17, sw: 1.6, style: { flex: "none", color: "var(--ink-45)" } }), ro = { main: "SETTINGS", lang: "LANGUAGE", subs: "SUBTITLES", audio: "AUDIO", export: "EXPORT" }[w], On = { display: "flex", flexDirection: "column", gap: 2, paddingBottom: 14 }, mr = u ? /* @__PURE__ */ i(nn, { open: ee, onClose: () => I(!1), title: ro, titleNode: w === "main" ? void 0 : no, doneLabel: Kt.done, kind: w === "main" ? "settings" : "settings vs-sheet--page", sticky: !0, children: /* @__PURE__ */ i(xr, { children: w === "lang" ? /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column" }, children: [
6347
+ ] }), bn = /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 17, sw: 1.6, style: { flex: "none", color: "var(--ink-45)" } }), ro = { main: "SETTINGS", lang: "LANGUAGE", subs: "SUBTITLES", audio: "AUDIO", export: "EXPORT" }[L], On = { display: "flex", flexDirection: "column", gap: 2, paddingBottom: 14 }, mr = u ? /* @__PURE__ */ i(nn, { open: ee, onClose: () => I(!1), title: ro, titleNode: L === "main" ? void 0 : no, doneLabel: Jt.done, kind: L === "main" ? "settings" : "settings vs-sheet--page", sticky: !0, children: /* @__PURE__ */ i(xr, { children: L === "lang" ? /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column" }, children: [
6326
6348
  /* @__PURE__ */ i("div", { style: { position: "sticky", top: 0, zIndex: 1, padding: "4px 14px 10px", background: "var(--vs-surface-raised)" }, children: rs.search }),
6327
6349
  rs.list
6328
- ] }) : w === "subs" ? /* @__PURE__ */ m("div", { style: On, children: [
6350
+ ] }) : L === "subs" ? /* @__PURE__ */ m("div", { style: On, children: [
6329
6351
  /* @__PURE__ */ m("div", { className: "srow", children: [
6330
6352
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6331
6353
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Show subtitles" }),
6332
6354
  /* @__PURE__ */ i("div", { className: "srow__s", children: "Captions over the video" })
6333
6355
  ] }),
6334
- /* @__PURE__ */ i(Lt, { checked: Se, onChange: we, label: "Show subtitles" })
6356
+ /* @__PURE__ */ i(kt, { checked: Se, onChange: we, label: "Show subtitles" })
6335
6357
  ] }),
6336
6358
  /* @__PURE__ */ m("div", { className: "srow", children: [
6337
6359
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6338
6360
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Show speaker labels" }),
6339
6361
  /* @__PURE__ */ i("div", { className: "srow__s", children: "Who is speaking, before each line" })
6340
6362
  ] }),
6341
- /* @__PURE__ */ i(Lt, { checked: Ln, onChange: (L) => le(L ? "on" : "off"), label: "Show speaker labels" })
6363
+ /* @__PURE__ */ i(kt, { checked: kn, onChange: (k) => le(k ? "on" : "off"), label: "Show speaker labels" })
6342
6364
  ] }),
6343
6365
  /* @__PURE__ */ m("div", { className: "srow", children: [
6344
6366
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6345
6367
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Highlight words" }),
6346
6368
  /* @__PURE__ */ i("div", { className: "srow__s", children: "Follow each word as it is spoken" })
6347
6369
  ] }),
6348
- /* @__PURE__ */ i(Lt, { checked: kn, onChange: (L) => je(L ? "on" : "off"), label: "Highlight words" })
6370
+ /* @__PURE__ */ i(kt, { checked: Ln, onChange: (k) => je(k ? "on" : "off"), label: "Highlight words" })
6349
6371
  ] })
6350
- ] }) : w === "audio" ? /* @__PURE__ */ m("div", { style: On, children: [
6372
+ ] }) : L === "audio" ? /* @__PURE__ */ m("div", { style: On, children: [
6351
6373
  /* @__PURE__ */ m("div", { className: "srow", children: [
6352
6374
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6353
6375
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Translate audio" }),
6354
6376
  /* @__PURE__ */ i("div", { className: "srow__s", children: J ? Xn ? "Hear the translation read aloud instead of the original speech" : re.canSpeak ? "Not available right now" : "Not available in this language" : "Pick a language to hear the translation read aloud" })
6355
6377
  ] }),
6356
- /* @__PURE__ */ i(Lt, { checked: sr, onChange: Ee, label: "Translate audio", disabled: !Xn || !J })
6378
+ /* @__PURE__ */ i(kt, { checked: sr, onChange: Ee, label: "Translate audio", disabled: !Xn || !J })
6357
6379
  ] }),
6358
6380
  sr && re.hasClone && /* @__PURE__ */ m("div", { className: "srow", children: [
6359
6381
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6360
6382
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Voices" }),
6361
6383
  /* @__PURE__ */ i("div", { className: "srow__s", children: $e ? "Each speaker in their own cloned voice" : "Synthetic voices matched to each speaker" })
6362
6384
  ] }),
6363
- /* @__PURE__ */ i(Or, { value: $e ? "clone" : "stock", onChange: (L) => De(L === "clone"), size: "sm", options: [{ value: "stock", label: "Synthetic" }, { value: "clone", label: "Cloned" }] })
6385
+ /* @__PURE__ */ i(Or, { value: $e ? "clone" : "stock", onChange: (k) => De(k === "clone"), size: "sm", options: [{ value: "stock", label: "Synthetic" }, { value: "clone", label: "Cloned" }] })
6364
6386
  ] }),
6365
6387
  /* @__PURE__ */ m("div", { className: "srow", children: [
6366
6388
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6367
6389
  /* @__PURE__ */ i("div", { className: "srow__t", children: Vn }),
6368
- /* @__PURE__ */ i("div", { className: "srow__s", children: yl(Q, rr, "video", re.on ? 0 : tr.untilS) })
6390
+ /* @__PURE__ */ i("div", { className: "srow__s", children: Tl(Q, rr, "video", re.on ? 0 : tr.untilS) })
6369
6391
  ] }),
6370
- /* @__PURE__ */ i(Lt, { checked: Q && lt, onChange: H, label: Vn, disabled: !lt || rr === "unavailable" && !Q })
6392
+ /* @__PURE__ */ i(kt, { checked: Q && lt, onChange: H, label: Vn, disabled: !lt || rr === "unavailable" && !Q })
6371
6393
  ] })
6372
- ] }) : w === "export" ? /* @__PURE__ */ m("div", { style: On, children: [
6373
- ks("srt", "Subtitles", "SRT / VTT caption cues, ready for a video editor or a player"),
6374
- ks("pdf", "PDF", "Formatted transcript in paragraphs, with timestamps and speaker labels")
6394
+ ] }) : L === "export" ? /* @__PURE__ */ m("div", { style: On, children: [
6395
+ Ls("srt", "Subtitles", "SRT / VTT caption cues, ready for a video editor or a player"),
6396
+ Ls("pdf", "PDF", "Formatted transcript in paragraphs, with timestamps and speaker labels")
6375
6397
  ] }) : /* @__PURE__ */ i("div", { style: On, children: [
6376
6398
  Ue.can && S.language && /* @__PURE__ */ m("div", { className: "srow srow--tap", role: "button", onClick: () => x("lang"), children: [
6377
6399
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
@@ -6405,14 +6427,14 @@ function hd(t) {
6405
6427
  ] }),
6406
6428
  bn
6407
6429
  ] }, "export")
6408
- ].filter(Boolean).flatMap((L, pe) => pe ? [/* @__PURE__ */ i("div", { className: "sdiv" }, `d${pe}`), L] : [L]) }) }) }) : /* @__PURE__ */ i(nn, { open: ee, onClose: () => I(!1), title: Kt.settings, doneLabel: Kt.done, drawer: s, children: /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6430
+ ].filter(Boolean).flatMap((k, pe) => pe ? [/* @__PURE__ */ i("div", { className: "sdiv" }, `d${pe}`), k] : [k]) }) }) }) : /* @__PURE__ */ i(nn, { open: ee, onClose: () => I(!1), title: Jt.settings, doneLabel: Jt.done, drawer: s, children: /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6409
6431
  Ue.can && /* @__PURE__ */ m(xe, { children: [
6410
6432
  /* @__PURE__ */ m("div", { className: "srow srow--tap", onClick: () => {
6411
6433
  I(!1), Ue.onClick();
6412
6434
  }, children: [
6413
6435
  /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
6414
- /* @__PURE__ */ i("div", { className: "srow__t", children: Kt.langLabel }),
6415
- /* @__PURE__ */ i("div", { className: "srow__s", children: Kt.langCount })
6436
+ /* @__PURE__ */ i("div", { className: "srow__t", children: Jt.langLabel }),
6437
+ /* @__PURE__ */ i("div", { className: "srow__s", children: Jt.langCount })
6416
6438
  ] }),
6417
6439
  /* @__PURE__ */ i("span", { style: { fontSize: 18, lineHeight: 1 }, children: Ue.flag }),
6418
6440
  re.original ? null : /* @__PURE__ */ i("span", { style: { fontSize: 14, fontWeight: 600, color: "var(--ink-96)" }, children: Ue.label }),
@@ -6430,10 +6452,10 @@ function hd(t) {
6430
6452
  desk: s,
6431
6453
  pos: ts,
6432
6454
  mute: { muted: v.muted, onToggle: yn },
6433
- cc: S.subtitles ? { on: Se, onToggle: () => we((L) => !L) } : void 0,
6455
+ cc: S.subtitles ? { on: Se, onToggle: () => we((k) => !k) } : void 0,
6434
6456
  noFull: !S.fullscreen,
6435
6457
  ad: Gn,
6436
- wait: nt && !er ? /* @__PURE__ */ i(lu, { state: nt, line: yt ? fs.map((L) => L.t + L.sp).join("") : null, onRetry: Qa, onOriginal: Va }) : v.edgeWait ? `Transcribing ${Math.round(U)}% — it plays on as more is written` : null,
6458
+ wait: nt && !er ? /* @__PURE__ */ i(uu, { state: nt, line: yt ? fs.map((k) => k.t + k.sp).join("") : null, onRetry: Qa, onOriginal: Va }) : v.edgeWait ? `Transcribing ${Math.round(U)}% — it plays on as more is written` : null,
6437
6459
  pct: ge ? Math.round(U) : null,
6438
6460
  sub: Se && et ? { who: zn ? Wr(ce, et.speaker) : null, color: zn ? zn.fg ?? `var(--lane-${zn.lane})` : "#fff", words: fs, cursor: Yi(v, v.idx, wn) } : null,
6439
6461
  chip: ar(s ? ir : { ...ir, width: 64, padding: "0 6px" }, s ? void 0 : "sm"),
@@ -6445,7 +6467,7 @@ function hd(t) {
6445
6467
  sheetOpen: re.sheetsOpen || ee,
6446
6468
  onShare: u && S.share ? to : void 0,
6447
6469
  onSettings: u && S.settings ? () => {
6448
- re.closePicker(), I((L) => !L);
6470
+ re.closePicker(), I((k) => !k);
6449
6471
  } : void 0,
6450
6472
  compact: !!t.compact,
6451
6473
  paused: { title: qe, summary: Vt.state === "ready" ? Vt.summary ?? null : null, share: S.share && (t.shareUrl || !t.onShare) ? { url: Ns, at: v.t } : null },
@@ -6473,7 +6495,7 @@ function hd(t) {
6473
6495
  O(() => {
6474
6496
  !u && te && !Bt && (dn(!1), K(!1));
6475
6497
  }, [u, te, Bt]);
6476
- const Ls = ge && /* @__PURE__ */ m("div", { className: `pubprog${s ? " pubprog--desk" : ""}${h ? " pubprog--find" : ""}`, children: [
6498
+ const ks = ge && /* @__PURE__ */ m("div", { className: `pubprog${s ? " pubprog--desk" : ""}${h ? " pubprog--find" : ""}`, children: [
6477
6499
  /* @__PURE__ */ m("div", { className: "pubprog__row", children: [
6478
6500
  /* @__PURE__ */ i("span", { className: "l", children: `TRANSCRIBING ${U}%` }),
6479
6501
  !s && /* @__PURE__ */ i("div", { style: { flex: 1 } }),
@@ -6481,20 +6503,20 @@ function hd(t) {
6481
6503
  /* @__PURE__ */ i("span", { className: "s", children: on })
6482
6504
  ] }),
6483
6505
  !s && /* @__PURE__ */ i("div", { className: "pubprog__bar", style: { marginTop: 8 }, children: /* @__PURE__ */ i("div", { style: { width: `${U}%` } }) })
6484
- ] }), pr = r && /* @__PURE__ */ i("div", { className: "hint", style: { padding: "30px 20px", textAlign: "center", fontSize: 13 }, children: "This link is no longer shared. Ask the person who sent it for a new one." }), js = /* @__PURE__ */ i(ju, { model: ce, rows: ue, player: zt ? v : { ...v, playRow: v.seekRow }, tail: an, tailFg: ut, running: ge, desk: s, feedRef: Rt, listener: !0, showLabels: Ln, find: T, findOpen: !s && h, lang: Qe, warm: R, onVisible: Et, wordHl: kn }), yr = /* @__PURE__ */ i(kc, { error: d ?? W ?? (Jn && te ? null : v.error) ?? re.error, onClose: () => {
6506
+ ] }), pr = r && /* @__PURE__ */ i("div", { className: "hint", style: { padding: "30px 20px", textAlign: "center", fontSize: 13 }, children: "This link is no longer shared. Ask the person who sent it for a new one." }), js = /* @__PURE__ */ i(Iu, { model: ce, rows: ue, player: zt ? v : { ...v, playRow: v.seekRow }, tail: an, tailFg: ut, running: ge, desk: s, feedRef: Rt, listener: !0, showLabels: kn, find: T, findOpen: !s && h, lang: Qe, warm: R, onVisible: Et, wordHl: Ln }), yr = /* @__PURE__ */ i(jc, { error: d ?? W ?? (Jn && te ? null : v.error) ?? re.error, onClose: () => {
6485
6507
  M(null), Ne(), v.clearError(), re.clearError();
6486
- } }), zs = [$ ? Ot($) : null, q ? q.toUpperCase() : null, se || "Read-only copy"].filter(Boolean).join(" · "), Is = (L) => /* @__PURE__ */ i("div", { className: "ctrans", children: re.noVoice ? re.noVoiceNote : /* @__PURE__ */ m(xe, { children: [
6508
+ } }), zs = [$ ? Ot($) : null, q ? q.toUpperCase() : null, se || "Read-only copy"].filter(Boolean).join(" · "), Is = (k) => /* @__PURE__ */ i("div", { className: "ctrans", children: re.noVoice ? re.noVoiceNote : /* @__PURE__ */ m(xe, { children: [
6487
6509
  /* @__PURE__ */ m("div", { className: "ctrans__row", children: [
6488
6510
  /* @__PURE__ */ i("span", { className: "ctrans__sp", "aria-hidden": "true" }),
6489
6511
  /* @__PURE__ */ m("div", { className: "ctrans__mid", children: [
6490
6512
  /* @__PURE__ */ i("button", { type: "button", className: "ctrans__step", "aria-label": "Previous segment", title: "Previous segment", style: { opacity: v.idx <= 0 ? 0.3 : 1 }, onClick: v.prev, children: /* @__PURE__ */ i(oe, { d: X.chevronLeft, size: 16, sw: 1.8 }) }),
6491
- /* @__PURE__ */ i("button", { type: "button", className: "ctrans__play", "aria-label": re.relang ? "Preparing audio" : v.playing ? "Pause" : "Play", title: re.relang ? "Preparing audio…" : re.playTitle ?? (v.playing ? "Pause" : "Play"), disabled: !St, onClick: v.toggle, children: re.relang ? /* @__PURE__ */ i("span", { className: "ctrans__spin" }) : /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: 16, height: 16, fill: "currentColor", "aria-hidden": "true", style: v.playing ? void 0 : { marginLeft: 2 }, children: v.playing ? uu : du }) }),
6513
+ /* @__PURE__ */ i("button", { type: "button", className: "ctrans__play", "aria-label": re.relang ? "Preparing audio" : v.playing ? "Pause" : "Play", title: re.relang ? "Preparing audio…" : re.playTitle ?? (v.playing ? "Pause" : "Play"), disabled: !St, onClick: v.toggle, children: re.relang ? /* @__PURE__ */ i("span", { className: "ctrans__spin" }) : /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: 16, height: 16, fill: "currentColor", "aria-hidden": "true", style: v.playing ? void 0 : { marginLeft: 2 }, children: v.playing ? hu : Mu }) }),
6492
6514
  /* @__PURE__ */ i("button", { type: "button", className: "ctrans__step", "aria-label": "Next segment", title: "Next segment", style: { opacity: v.idx >= ue.length - 1 ? 0.3 : 1 }, onClick: v.next, children: /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 16, sw: 1.8 }) })
6493
6515
  ] }),
6494
6516
  /* @__PURE__ */ i("span", { className: "ctrans__mute", children: Nn(36) })
6495
6517
  ] }),
6496
- /* @__PURE__ */ i("div", { className: "ctrans__scrub", children: _a(L) })
6497
- ] }) }), so = Gc("ga", { tabs: Jt, cur: f, pref: (Ni = Jt[0]) == null ? void 0 : Ni.key, onPick: g }), bs = Math.max(0, Math.min(100, Math.round(U))), io = Ye && /* @__PURE__ */ m("div", { className: "gfull gfull--hold", "data-theme": "dark", role: "status", "aria-live": "polite", children: [
6518
+ /* @__PURE__ */ i("div", { className: "ctrans__scrub", children: _a(k) })
6519
+ ] }) }), so = Kc("ga", { tabs: Xt, cur: f, pref: (Ni = Xt[0]) == null ? void 0 : Ni.key, onPick: g }), bs = Math.max(0, Math.min(100, Math.round(U))), io = Ye && /* @__PURE__ */ m("div", { className: "gfull gfull--hold", "data-theme": "dark", role: "status", "aria-live": "polite", children: [
6498
6520
  Be && /* @__PURE__ */ i("div", { className: "gfull__holdbg", style: { backgroundImage: `url(https://i.ytimg.com/vi/${Be}/hqdefault.jpg)` } }),
6499
6521
  /* @__PURE__ */ i("div", { className: "gfull__hold", children: n ? /* @__PURE__ */ m(xe, { children: [
6500
6522
  qe && /* @__PURE__ */ i("div", { className: "gfull__holdt", children: qe }),
@@ -6506,16 +6528,16 @@ function hd(t) {
6506
6528
  ] }),
6507
6529
  /* @__PURE__ */ i("div", { className: "gfull__holdn", children: "The video starts as soon as the first lines are transcribed." })
6508
6530
  ] }) : /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) })
6509
- ] }), Os = u && n && (ge || ae === "cropping") ? Math.max(0, Math.min(100, Math.round(U))) : null, xn = k(t.onProgress);
6531
+ ] }), Os = u && n && (ge || ae === "cropping") ? Math.max(0, Math.min(100, Math.round(U))) : null, xn = w(t.onProgress);
6510
6532
  xn.current = t.onProgress, O(() => {
6511
- var L;
6512
- (L = xn.current) == null || L.call(xn, Os);
6533
+ var k;
6534
+ (k = xn.current) == null || k.call(xn, Os);
6513
6535
  }, [Os]);
6514
- const [ao, Nr] = z(!1), Tr = !!_t && !Ye && (Xe ? !!v.ended : !v.playing && v.dur > 0 && v.t >= v.dur - 0.5);
6536
+ const [ao, Nr] = j(!1), Tr = !!_t && !Ye && (Xe ? !!v.ended : !v.playing && v.dur > 0 && v.t >= v.dur - 0.5);
6515
6537
  O(() => {
6516
6538
  Tr || Nr(!1);
6517
6539
  }, [Tr]);
6518
- const oo = t.endCard !== !1 && Tr && !ao && /* @__PURE__ */ i(Zu, { options: { appUrl: t.appUrl, ...t.endCard || {} }, onStarted: t.onStarted, onClose: () => Nr(!0), onReplay: () => {
6540
+ const oo = t.endCard !== !1 && Tr && !ao && /* @__PURE__ */ i(qu, { options: { appUrl: t.appUrl, ...t.endCard || {} }, onStarted: t.onStarted, onClose: () => Nr(!0), onReplay: () => {
6519
6541
  Nr(!0), tt.current = !0, v.seekFrac ? v.seekFrac(0) : v.seekRow(0), v.playing || v.toggle();
6520
6542
  } });
6521
6543
  if (u) return /* @__PURE__ */ m(xe, { children: [
@@ -6524,7 +6546,7 @@ function hd(t) {
6524
6546
  yr
6525
6547
  ] });
6526
6548
  if (s) {
6527
- const L = zt && !Bt && !r && /* @__PURE__ */ i("div", { className: "pubdeskctl", children: Is(!0) }), pe = !r && (Jt.length > 0 || Bt || !!re.sidePanel || !!L);
6549
+ const k = zt && !Bt && !r && /* @__PURE__ */ i("div", { className: "pubdeskctl", children: Is(!0) }), pe = !r && (Xt.length > 0 || Bt || !!re.sidePanel || !!k);
6528
6550
  return /* @__PURE__ */ m(xe, { children: [
6529
6551
  /* @__PURE__ */ i("div", { className: "dhead dhead--listener dhead--cols", children: /* @__PURE__ */ m("div", { className: "gcolhead", children: [
6530
6552
  /* @__PURE__ */ i("div", { className: "gcolhead__main", children: /* @__PURE__ */ m("div", { className: "gcolhead__col", children: [
@@ -6540,7 +6562,7 @@ function hd(t) {
6540
6562
  /* @__PURE__ */ m("div", { className: "listenerlive__main", children: [
6541
6563
  pr,
6542
6564
  !r && mn,
6543
- Ls,
6565
+ ks,
6544
6566
  p && /* @__PURE__ */ i("div", { className: "pubflash", children: p }),
6545
6567
  !r && /* @__PURE__ */ i("div", { className: "listenerlive__inner", style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column", marginTop: 6 }, children: js }),
6546
6568
  !r && /* @__PURE__ */ m("div", { className: "listenerlive__inner gdeskbar", "data-transport": "1", children: [
@@ -6548,10 +6570,10 @@ function hd(t) {
6548
6570
  Xr
6549
6571
  ] })
6550
6572
  ] }),
6551
- pe && /* @__PURE__ */ m(Jc, { id: "ga", className: "listenerside", gap: 20, plain: !0, children: [
6552
- !re.sidePanel && L,
6573
+ pe && /* @__PURE__ */ m(eu, { id: "ga", className: "listenerside", gap: 20, plain: !0, children: [
6574
+ !re.sidePanel && k,
6553
6575
  !re.sidePanel && us,
6554
- !re.sidePanel && Jt.length > 0 && /* @__PURE__ */ i("div", { "data-panel-grid": "", className: "listenerside__panels", children: /* @__PURE__ */ i(qc, { col: so, order: ["summary", "export"], onPick: g, grip: { summary: 40, export: 28 }, render: (Re) => /* @__PURE__ */ i(Ti, { panel: !0, children: es(Re) }) }) }),
6576
+ !re.sidePanel && Xt.length > 0 && /* @__PURE__ */ i("div", { "data-panel-grid": "", className: "listenerside__panels", children: /* @__PURE__ */ i(Jc, { col: so, order: ["summary", "export"], onPick: g, grip: { summary: 40, export: 28 }, render: (Re) => /* @__PURE__ */ i(Ti, { panel: !0, children: es(Re) }) }) }),
6555
6577
  re.sidePanel
6556
6578
  ] })
6557
6579
  ] }),
@@ -6561,14 +6583,14 @@ function hd(t) {
6561
6583
  yr
6562
6584
  ] });
6563
6585
  }
6564
- const lo = Jt.length > 0 && !h && /* @__PURE__ */ i("div", { className: "txwidget", children: /* @__PURE__ */ m(Ti, { panel: !0, children: [
6565
- /* @__PURE__ */ i(Ta, { tabs: Jt, current: f, onPick: g, gap: f !== "none" }),
6586
+ const lo = Xt.length > 0 && !h && /* @__PURE__ */ i("div", { className: "txwidget", children: /* @__PURE__ */ m(Ti, { panel: !0, children: [
6587
+ /* @__PURE__ */ i(Ta, { tabs: Xt, current: f, onPick: g, gap: f !== "none" }),
6566
6588
  f !== "none" && es(f)
6567
6589
  ] }) });
6568
6590
  return /* @__PURE__ */ m(xe, { children: [
6569
- /* @__PURE__ */ i(Uu, { dark: a, title: n ? qe : "", subline: n ? zs : "", onOptions: () => I(!0), optionsActive: ee }),
6591
+ /* @__PURE__ */ i(Ru, { dark: a, title: n ? qe : "", subline: n ? zs : "", onOptions: () => I(!0), optionsActive: ee }),
6570
6592
  pr,
6571
- Ls,
6593
+ ks,
6572
6594
  !r && lo,
6573
6595
  !r && us,
6574
6596
  !r && /* @__PURE__ */ m("div", { style: { position: "relative", flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
@@ -6589,8 +6611,8 @@ function hd(t) {
6589
6611
  yr
6590
6612
  ] });
6591
6613
  }
6592
- function Md(t) {
6593
- const [e, n] = z(null);
6614
+ function gd(t) {
6615
+ const [e, n] = j(null);
6594
6616
  return O(() => {
6595
6617
  if (!t || (e == null ? void 0 : e.url) === t && e.ok) return;
6596
6618
  let r = !0, s;
@@ -6604,62 +6626,64 @@ function Md(t) {
6604
6626
  };
6605
6627
  }, [t, (e == null ? void 0 : e.url) === t && (e == null ? void 0 : e.ok)]), !t || (e == null ? void 0 : e.url) !== t ? "unknown" : e.ok ? "yes" : "no";
6606
6628
  }
6607
- function jd({ site: t, size: e = 16, tinted: n = !1, style: r, className: s }) {
6629
+ function Id({ site: t, size: e = 16, tinted: n = !1, style: r, className: s }) {
6608
6630
  return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: e, height: e, "aria-hidden": "true", className: s, style: { flex: "none", display: "block", color: n ? t.color : void 0, ...r }, children: /* @__PURE__ */ i("path", { d: t.glyph, fill: "currentColor", fillRule: "evenodd" }) });
6609
6631
  }
6610
6632
  export {
6611
- Qc as ExportPanel,
6633
+ Bc as ExportPanel,
6612
6634
  Ia as FullVideo,
6613
- _u as MiniPlayer,
6614
- hu as MuteButton,
6615
- vu as NO_SEEK,
6616
- uu as PAUSE_D,
6617
- du as PLAY_D,
6618
- ku as PUB_SIDE,
6619
- kd as PanelSeek,
6620
- Xl as PlayerApiProvider,
6635
+ Uu as MiniPlayer,
6636
+ fu as MuteButton,
6637
+ Lu as NO_SEEK,
6638
+ hu as PAUSE_D,
6639
+ Mu as PLAY_D,
6640
+ ju as PUB_SIDE,
6641
+ jd as PanelSeek,
6642
+ tc as PlayerApiProvider,
6621
6643
  Vn as REMOVE_BG_LABEL,
6622
- ml as REMOVE_BG_NOTE,
6623
- Lc as ReplayScrub,
6644
+ yl as REMOVE_BG_NOTE,
6645
+ zc as ReplayScrub,
6624
6646
  sa as SITES,
6625
- jd as SiteIcon,
6626
- Sc as SpeakerCast,
6627
- Hc as SummaryPanel,
6628
- wd as Transport,
6629
- zu as TxFind,
6630
- ju as TxLines,
6631
- Ld as VocalStackPlayer,
6632
- Dc as VoiceSheetBody,
6633
- cu as YtFollow,
6634
- yl as bedNote,
6647
+ Id as SiteIcon,
6648
+ Ac as SpeakerCast,
6649
+ Fc as SummaryPanel,
6650
+ kd as Transport,
6651
+ bu as TxFind,
6652
+ Iu as TxLines,
6653
+ zd as VocalStackPlayer,
6654
+ Ec as VoiceSheetBody,
6655
+ du as YtFollow,
6656
+ Tl as bedNote,
6635
6657
  dn as browserFull,
6658
+ qo as hasEmbed,
6636
6659
  Ho as hostOfUrl,
6637
6660
  Ft as lineEnd,
6638
- ka as lineWords,
6661
+ La as lineWords,
6639
6662
  bt as pictureT,
6640
6663
  Un as placePosition,
6641
6664
  $n as realFull,
6642
- Td as setErrorReporter,
6665
+ wd as setErrorReporter,
6643
6666
  $i as setFullTarget,
6644
- vd as siteById,
6645
- en as siteOf,
6646
- su as snapPosition,
6667
+ Ld as siteById,
6668
+ Zt as siteOf,
6669
+ au as snapPosition,
6670
+ Jo as sourceVideoUrl,
6647
6671
  Yi as spokenWordOf,
6648
- Nl as trackPlan,
6672
+ vl as trackPlan,
6649
6673
  ha as useApi,
6650
- Uc as useArchiveVoice,
6651
- bl as useBackgroundBed,
6652
- pu as useDuck,
6653
- Iu as useFindPull,
6654
- Mu as useFlash,
6655
- Zt as usePlayerApi,
6674
+ Rc as useArchiveVoice,
6675
+ xl as useBackgroundBed,
6676
+ Nu as useDuck,
6677
+ Ou as useFindPull,
6678
+ gu as useFlash,
6679
+ Gt as usePlayerApi,
6656
6680
  oa as useSeparatedTrack,
6657
- Vc as useSummaryIn,
6658
- uc as useTranscript,
6659
- Nu as useTxPlayer,
6660
- Lu as useTxVoice,
6661
- bc as useViewportTranslation,
6662
- _c as useVoiceCatalogue,
6663
- yu as useYtLead
6681
+ Hc as useSummaryIn,
6682
+ hc as useTranscript,
6683
+ vu as useTxPlayer,
6684
+ zu as useTxVoice,
6685
+ xc as useViewportTranslation,
6686
+ Uc as useVoiceCatalogue,
6687
+ Tu as useYtLead
6664
6688
  };
6665
6689
  //# sourceMappingURL=index.js.map