@sgrsoft/vpe-react-sdk 0.2.10 → 0.2.11

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.
@@ -1,9 +1,9 @@
1
1
  var Mf = Object.defineProperty;
2
2
  var Pf = (e, t, n) => t in e ? Mf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Ce = (e, t, n) => Pf(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var Ie = (e, t, n) => Pf(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as h, Fragment as pe, jsxs as X } from "react/jsx-runtime";
5
5
  import * as Rr from "react";
6
- import hn, { createContext as Yt, useRef as j, createElement as is, useCallback as ee, useSyncExternalStore as Kl, useContext as _e, useEffect as B, useState as oe, isValidElement as rs, useLayoutEffect as Af, useId as os, useInsertionEffect as ss, useMemo as we, Children as Cf, Fragment as Lr, forwardRef as as, Component as If, cloneElement as Rf, useImperativeHandle as Lf } from "react";
6
+ import hn, { createContext as Yt, useRef as j, createElement as is, useCallback as ee, useSyncExternalStore as Kl, useContext as $e, useEffect as B, useState as oe, isValidElement as rs, useLayoutEffect as Af, useId as os, useInsertionEffect as ss, useMemo as Se, Children as Cf, Fragment as Lr, forwardRef as as, Component as If, cloneElement as Rf, useImperativeHandle as Lf } from "react";
7
7
  import Bf from "react-dom/client";
8
8
  const Wr = /* @__PURE__ */ new Map(), ql = Yt(null);
9
9
  let La = 0;
@@ -23,7 +23,7 @@ function Df({ scopeId: e, children: t }) {
23
23
  return is(ql.Provider, { value: i }, t);
24
24
  }
25
25
  function Vf() {
26
- return _e(ql);
26
+ return $e(ql);
27
27
  }
28
28
  function Cn(e, t) {
29
29
  const n = Vf(), i = n ? `${n}:${e}` : e, r = cs(i, t), o = (u) => (r.listeners.add(u), () => r.listeners.delete(u)), s = () => r.value, a = () => r.value, c = ee((u) => {
@@ -31,7 +31,7 @@ function Cn(e, t) {
31
31
  }, [r]);
32
32
  return [Kl(o, s, a), c];
33
33
  }
34
- function dt(e, t, n) {
34
+ function ft(e, t, n) {
35
35
  const i = e ? `${e}:${t}` : t, r = cs(i);
36
36
  r.value = typeof n == "function" ? n(r.value) : n, r.listeners.forEach((o) => o());
37
37
  }
@@ -103,7 +103,7 @@ function Uf({ scopeId: e, children: t }) {
103
103
  return is(Yl.Provider, { value: i }, t);
104
104
  }
105
105
  function Hf() {
106
- return _e(Yl);
106
+ return $e(Yl);
107
107
  }
108
108
  function Xl(e, t) {
109
109
  const n = Hf(), i = n ? `${n}:${e}` : e, r = zf(i, t), o = (u) => (r.listeners.add(u), () => r.listeners.delete(u)), s = () => r.value, a = () => r.value, c = ee((u) => {
@@ -147,7 +147,7 @@ const Of = "playerState", jf = {
147
147
  currentLevel: -1,
148
148
  isAutoLevel: !0
149
149
  };
150
- function Te() {
150
+ function Ee() {
151
151
  const [e, t] = Xl(Of, jf), n = ee(
152
152
  (i) => {
153
153
  t((r) => {
@@ -167,8 +167,8 @@ const Wf = "playerController", _f = {
167
167
  hls: null,
168
168
  dash: null
169
169
  };
170
- function He() {
171
- const [e, t] = Xl(Wf, _f), [n, i] = Te(), r = j(0), o = j(""), s = ee(
170
+ function je() {
171
+ const [e, t] = Xl(Wf, _f), [n, i] = Ee(), r = j(0), o = j(""), s = ee(
172
172
  (C) => {
173
173
  t((x) => ({ ...x, videoEl: C }));
174
174
  },
@@ -477,7 +477,7 @@ function Br(e, t, n = !1, i = !0, r = $f) {
477
477
  const Gf = 3, Kf = 3e3;
478
478
  function qf(e) {
479
479
  var d, f, m, p, g, b, v, k, w, M;
480
- const t = j(null), n = j(0), i = j(null), r = j(null), [o, s] = Te(), { setVideoElement: a, setHlsInstance: c } = He(), l = e.hlsLib, u = e.options;
480
+ const t = j(null), n = j(0), i = j(null), r = j(null), [o, s] = Ee(), { setVideoElement: a, setHlsInstance: c } = je(), l = e.hlsLib, u = e.options;
481
481
  return B(() => {
482
482
  var T, S, P, I;
483
483
  const y = t.current, E = (T = e == null ? void 0 : e.src) == null ? void 0 : T.file;
@@ -783,7 +783,7 @@ const Yf = 3, Xf = 3e3, Zf = (e) => {
783
783
  };
784
784
  function Qf(e) {
785
785
  var u, d, f, m, p, g, b, v, k;
786
- const t = j(null), n = j(0), i = j(null), [r, o] = Te(), { setVideoElement: s, setDashInstance: a } = He(), c = e.dashLib, l = e.options;
786
+ const t = j(null), n = j(0), i = j(null), [r, o] = Ee(), { setVideoElement: s, setDashInstance: a } = je(), c = e.dashLib, l = e.options;
787
787
  return B(() => {
788
788
  var V, W, O, K, $, ne, G, Z, te, ie, me;
789
789
  const w = t.current, M = (V = e == null ? void 0 : e.src) == null ? void 0 : V.file;
@@ -795,13 +795,13 @@ function Qf(e) {
795
795
  }
796
796
  a(y), typeof y.initialize == "function" ? y.initialize(w, M, !!(l != null && l.autostart)) : typeof y.attachView == "function" && typeof y.attachSource == "function" ? (y.attachView(w), y.attachSource(M)) : w.src = M;
797
797
  const E = typeof ((W = l == null ? void 0 : l.retry) == null ? void 0 : W.maxRetry) == "number" ? l.retry.maxRetry : Yf, T = typeof ((O = l == null ? void 0 : l.retry) == null ? void 0 : O.interval) == "number" ? l.retry.interval : Xf, S = () => {
798
- const se = (typeof y.getBitrateInfoListFor == "function" ? y.getBitrateInfoListFor("video") : []).map((he, Oe) => {
799
- var Ye;
798
+ const se = (typeof y.getBitrateInfoListFor == "function" ? y.getBitrateInfoListFor("video") : []).map((he, We) => {
799
+ var Xe;
800
800
  return {
801
- index: typeof (he == null ? void 0 : he.qualityIndex) == "number" ? he.qualityIndex : Oe,
801
+ index: typeof (he == null ? void 0 : he.qualityIndex) == "number" ? he.qualityIndex : We,
802
802
  width: he == null ? void 0 : he.width,
803
803
  height: he == null ? void 0 : he.height,
804
- bitrate: (Ye = he == null ? void 0 : he.bitrate) != null ? Ye : he == null ? void 0 : he.bandwidth,
804
+ bitrate: (Xe = he == null ? void 0 : he.bitrate) != null ? Xe : he == null ? void 0 : he.bandwidth,
805
805
  name: he == null ? void 0 : he.name
806
806
  };
807
807
  }), fe = typeof y.getQualityFor == "function" ? y.getQualityFor("video") : -1, ge = typeof y.getAutoSwitchQualityFor == "function" ? y.getAutoSwitchQualityFor("video") : !0;
@@ -815,8 +815,8 @@ function Qf(e) {
815
815
  const re = typeof y.getQualityFor == "function" ? y.getQualityFor("video") : -1, se = typeof y.getAutoSwitchQualityFor == "function" ? y.getAutoSwitchQualityFor("video") : !0;
816
816
  o({ currentLevel: re, isAutoLevel: se });
817
817
  }, N = (re, se) => {
818
- var ge, he, Oe;
819
- if ((Oe = (he = (ge = se == null ? void 0 : se.error) == null ? void 0 : ge.fatal) != null ? he : se == null ? void 0 : se.fatal) == null || Oe) {
818
+ var ge, he, We;
819
+ if ((We = (he = (ge = se == null ? void 0 : se.error) == null ? void 0 : ge.fatal) != null ? he : se == null ? void 0 : se.fatal) == null || We) {
820
820
  if (n.current < E) {
821
821
  n.current += 1, console.log(`DASH 에러 발생, ${n.current}회 재시도`), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
822
822
  if (i.current = null, typeof y.attachSource == "function") {
@@ -990,7 +990,7 @@ function Qf(e) {
990
990
  }
991
991
  function Jf(e) {
992
992
  var s, a, c, l, u, d, f, m, p;
993
- const t = j(null), [n, i] = Te(), { setVideoElement: r } = He(), o = e.options;
993
+ const t = j(null), [n, i] = Ee(), { setVideoElement: r } = je(), o = e.options;
994
994
  return B(() => {
995
995
  var v;
996
996
  const g = t.current, b = (v = e == null ? void 0 : e.src) == null ? void 0 : v.file;
@@ -1225,7 +1225,7 @@ const eh = "com.apple.fps", th = "com.apple.fps.1_0", nh = (e) => ["application/
1225
1225
  };
1226
1226
  function dh(e) {
1227
1227
  var f, m, p, g, b, v, k, w, M, y, E;
1228
- const t = j(null), n = j(null), i = j(!1), r = j(null), o = j(null), s = j([]), a = j(0), [c, l] = Te(), { setVideoElement: u } = He(), d = e.options;
1228
+ const t = j(null), n = j(null), i = j(!1), r = j(null), o = j(null), s = j([]), a = j(0), [c, l] = Ee(), { setVideoElement: u } = je(), d = e.options;
1229
1229
  return B(() => {
1230
1230
  var W, O, K;
1231
1231
  const T = t.current, S = (O = (W = e == null ? void 0 : e.src) == null ? void 0 : W.drm) == null ? void 0 : O[eh], P = (K = e == null ? void 0 : e.src) == null ? void 0 : K.file;
@@ -1275,15 +1275,15 @@ function dh(e) {
1275
1275
  throw new Error(`FairPlay license request failed (${ie.status})`);
1276
1276
  const me = (re = ie.headers.get("content-type")) != null ? re : "";
1277
1277
  if (me.includes("application/json") || me.includes("text")) {
1278
- const Oe = await ie.text();
1279
- let Ye = Oe.trim();
1278
+ const We = await ie.text();
1279
+ let Xe = We.trim();
1280
1280
  try {
1281
- const ke = JSON.parse(Oe);
1282
- Ye = (he = (ge = (fe = (se = ke == null ? void 0 : ke.ckc) != null ? se : ke == null ? void 0 : ke.license) != null ? fe : ke == null ? void 0 : ke.data) != null ? ge : ke == null ? void 0 : ke.body) != null ? he : "";
1283
- } catch (ke) {
1281
+ const Me = JSON.parse(We);
1282
+ Xe = (he = (ge = (fe = (se = Me == null ? void 0 : Me.ckc) != null ? se : Me == null ? void 0 : Me.license) != null ? fe : Me == null ? void 0 : Me.data) != null ? ge : Me == null ? void 0 : Me.body) != null ? he : "";
1283
+ } catch (Me) {
1284
1284
  }
1285
- if (Ye)
1286
- return $r(Ye).buffer;
1285
+ if (Xe)
1286
+ return $r(Xe).buffer;
1287
1287
  }
1288
1288
  return ie.arrayBuffer();
1289
1289
  }, L = ($) => {
@@ -1767,31 +1767,31 @@ function Ql({
1767
1767
  onError: o,
1768
1768
  seekingPreview: s = !0
1769
1769
  }) {
1770
- var Qt, Ct, It, pt, Ot, Jt;
1771
- const { isMobile: a } = Zl(), [c, l] = Te(), { seekTo: u } = He(), d = i, f = typeof (t == null ? void 0 : t.file) == "string" ? t.file.split("?")[0].toLowerCase() : "", m = f.endsWith(".mpd"), p = f.endsWith(".mp4"), [g, b] = oe(!1), [v, k] = oe(0), [w, M] = oe(0), [y, E] = oe(null), [T, S] = oe(null), [P, I] = oe(null), R = j(null), N = j(null), C = j(null), x = e || "#31ec2a", L = "5px", V = (Qt = c.duration) != null ? Qt : 0, W = V > 0 ? V : 0, O = W > 0 ? ((Ct = c.currentTime) != null ? Ct : 0) / W * 100 : 0, K = W > 0 ? ((It = c.buffered) != null ? It : 0) / W * 100 : 0, $ = !!c.isLive, ne = !!c.isDvr, G = $ && !ne, te = ($ && V > 0 ? Math.abs(V - ((pt = c.currentTime) != null ? pt : 0)) < 30 : !1) ? 100 : on(v), ie = y != null ? y : O, me = T != null ? T : ie, re = P != null ? P : ie, se = W > 0 ? W * (ie / 100) : 0, fe = y !== null, ge = (Ot = c.videoWidth) != null ? Ot : 0, he = (Jt = c.videoHeight) != null ? Jt : 0, Oe = ge > 0 && he > 0, Ye = Oe ? `${ge}/${he}` : "16/9", ke = Oe && ge > he ? "160px" : "55px", $e = ee((Re) => {
1770
+ var Qt, Ct, It, at, Ot, Jt;
1771
+ const { isMobile: a } = Zl(), [c, l] = Ee(), { seekTo: u } = je(), d = i, f = typeof (t == null ? void 0 : t.file) == "string" ? t.file.split("?")[0].toLowerCase() : "", m = f.endsWith(".mpd"), p = f.endsWith(".mp4"), [g, b] = oe(!1), [v, k] = oe(0), [w, M] = oe(0), [y, E] = oe(null), [T, S] = oe(null), [P, I] = oe(null), R = j(null), N = j(null), C = j(null), x = e || "#31ec2a", L = "5px", V = (Qt = c.duration) != null ? Qt : 0, W = V > 0 ? V : 0, O = W > 0 ? ((Ct = c.currentTime) != null ? Ct : 0) / W * 100 : 0, K = W > 0 ? ((It = c.buffered) != null ? It : 0) / W * 100 : 0, $ = !!c.isLive, ne = !!c.isDvr, G = $ && !ne, te = ($ && V > 0 ? Math.abs(V - ((at = c.currentTime) != null ? at : 0)) < 30 : !1) ? 100 : on(v), ie = y != null ? y : O, me = T != null ? T : ie, re = P != null ? P : ie, se = W > 0 ? W * (ie / 100) : 0, fe = y !== null, ge = (Ot = c.videoWidth) != null ? Ot : 0, he = (Jt = c.videoHeight) != null ? Jt : 0, We = ge > 0 && he > 0, Xe = We ? `${ge}/${he}` : "16/9", Me = We && ge > he ? "160px" : "55px", Ge = ee((Le) => {
1772
1772
  const ae = R.current;
1773
1773
  if (!ae) return null;
1774
1774
  const ve = ae.getBoundingClientRect();
1775
1775
  if (ve.width <= 0) return null;
1776
- const Ge = "clientX" in Re ? Re.clientX : 0;
1777
- return Math.min(Math.max(Ge - ve.left, 0), ve.width) / ve.width * 100;
1776
+ const Ke = "clientX" in Le ? Le.clientX : 0;
1777
+ return Math.min(Math.max(Ke - ve.left, 0), ve.width) / ve.width * 100;
1778
1778
  }, []), xt = ee(
1779
- (Re) => {
1779
+ (Le) => {
1780
1780
  var Ci, jn;
1781
1781
  const ae = R.current;
1782
1782
  if (!ae) return;
1783
1783
  const ve = ae.getBoundingClientRect();
1784
1784
  if (ve.width <= 0) return;
1785
- const Ge = (Wn) => {
1785
+ const Ke = (Wn) => {
1786
1786
  const _n = Wn > 0 ? Wn / 2 / ve.width * 100 : 0, $n = Math.max(0, Math.min(50, _n)), Gn = Math.max($n, 100 - $n);
1787
1787
  return { minPercent: $n, maxPercent: Gn };
1788
- }, nt = (jn = (Ci = N.current) == null ? void 0 : Ci.offsetWidth) != null ? jn : 0, gt = Ge(nt), yt = $e(Re);
1788
+ }, it = (jn = (Ci = N.current) == null ? void 0 : Ci.offsetWidth) != null ? jn : 0, gt = Ke(it), yt = Ge(Le);
1789
1789
  if (yt === null) return;
1790
1790
  E(on(yt));
1791
- const Fe = Math.max(gt.minPercent, Math.min(gt.maxPercent, yt));
1792
- I(Fe), S(Fe);
1791
+ const Ue = Math.max(gt.minPercent, Math.min(gt.maxPercent, yt));
1792
+ I(Ue), S(Ue);
1793
1793
  },
1794
- [$e]
1794
+ [Ge]
1795
1795
  ), Tt = ee(() => {
1796
1796
  E(null), S(null), I(null);
1797
1797
  }, []);
@@ -1853,12 +1853,12 @@ function Ql({
1853
1853
  className: "seekSliderThumbVideo",
1854
1854
  style: {
1855
1855
  position: "absolute",
1856
- aspectRatio: Ye,
1856
+ aspectRatio: Xe,
1857
1857
  backgroundColor: "#000",
1858
1858
  border: "1px solid rgba(205,205,205,0.25)",
1859
1859
  left: `${on(re)}%`,
1860
1860
  transform: "translateX(-50%)",
1861
- maxWidth: ke
1861
+ maxWidth: Me
1862
1862
  },
1863
1863
  ref: N,
1864
1864
  children: /* @__PURE__ */ h(pe, { children: m && d ? /* @__PURE__ */ h(
@@ -2019,29 +2019,29 @@ function Ql({
2019
2019
  min: 0,
2020
2020
  max: 100,
2021
2021
  value: te,
2022
- onPointerDown: (Re) => {
2022
+ onPointerDown: (Le) => {
2023
2023
  if ($) return;
2024
2024
  l({ isSeeked: !0 }), b(!0);
2025
- const ae = $e(Re);
2025
+ const ae = Ge(Le);
2026
2026
  ae !== null && k(on(ae));
2027
2027
  },
2028
2028
  onPointerUp: () => {
2029
2029
  if ($) return;
2030
2030
  b(!1);
2031
- const Re = W * (te / 100);
2032
- u(Re);
2031
+ const Le = W * (te / 100);
2032
+ u(Le);
2033
2033
  },
2034
- onChange: (Re) => {
2034
+ onChange: (Le) => {
2035
2035
  if ($) return;
2036
- const ae = Number(Re.currentTarget.value), ve = Number.isNaN(ae) ? 0 : ae;
2036
+ const ae = Number(Le.currentTarget.value), ve = Number.isNaN(ae) ? 0 : ae;
2037
2037
  k(on(ve));
2038
2038
  },
2039
- onKeyDown: (Re) => {
2040
- $ || (Re.key === "ArrowLeft" || Re.key === "ArrowRight") && b(!0);
2039
+ onKeyDown: (Le) => {
2040
+ $ || (Le.key === "ArrowLeft" || Le.key === "ArrowRight") && b(!0);
2041
2041
  },
2042
- onKeyUp: (Re) => {
2043
- if ($ || Re.key !== "ArrowLeft" && Re.key !== "ArrowRight") return;
2044
- const ae = Number(Re.currentTarget.value), ve = on(Number.isNaN(ae) ? 0 : ae);
2042
+ onKeyUp: (Le) => {
2043
+ if ($ || Le.key !== "ArrowLeft" && Le.key !== "ArrowRight") return;
2044
+ const ae = Number(Le.currentTarget.value), ve = on(Number.isNaN(ae) ? 0 : ae);
2045
2045
  k(ve), u(W * (ve / 100)), b(!1);
2046
2046
  },
2047
2047
  disabled: $ || W === 0
@@ -2280,11 +2280,11 @@ const nm = {
2280
2280
  BsFillBadgeHdFill: tm,
2281
2281
  BsFillBadge4kFill: em
2282
2282
  };
2283
- function Ee({ icon: e, ...t }) {
2283
+ function Pe({ icon: e, ...t }) {
2284
2284
  const n = nm[e];
2285
2285
  return n ? /* @__PURE__ */ h(n, { ...t }) : null;
2286
2286
  }
2287
- function Me({
2287
+ function Ae({
2288
2288
  override: e,
2289
2289
  fallbackIcon: t,
2290
2290
  style: n,
@@ -2303,9 +2303,9 @@ function Me({
2303
2303
  ...n
2304
2304
  }
2305
2305
  }
2306
- ) : rs(e) ? /* @__PURE__ */ h(pe, { children: e }) : /* @__PURE__ */ h(pe, { children: e }) : /* @__PURE__ */ h(Ee, { icon: t, style: n, ...i });
2306
+ ) : rs(e) ? /* @__PURE__ */ h(pe, { children: e }) : /* @__PURE__ */ h(pe, { children: e }) : /* @__PURE__ */ h(Pe, { icon: t, style: n, ...i });
2307
2307
  }
2308
- function tt(e) {
2308
+ function nt(e) {
2309
2309
  var n;
2310
2310
  const t = (n = e.noBg) != null ? n : !1;
2311
2311
  return /* @__PURE__ */ h(pe, { children: /* @__PURE__ */ h(
@@ -2321,7 +2321,7 @@ function tt(e) {
2321
2321
  }
2322
2322
  ) });
2323
2323
  }
2324
- const mt = {
2324
+ const pt = {
2325
2325
  background: "transparent",
2326
2326
  border: 0,
2327
2327
  padding: 0,
@@ -2412,11 +2412,11 @@ function cm({
2412
2412
  options: o
2413
2413
  }) {
2414
2414
  var l, u, d, f, m;
2415
- const [s] = Te(), { play: a, pause: c } = He();
2416
- return s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${r}`, children: [
2415
+ const [s] = Ee(), { play: a, pause: c } = je();
2416
+ return s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${r}`, children: [
2417
2417
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: s.isPlaying ? (l = i == null ? void 0 : i.pause) != null ? l : "일시정지" : (u = i == null ? void 0 : i.play) != null ? u : "재생" }) }),
2418
- /* @__PURE__ */ h("button", { type: "button", onClick: s.isPlaying ? c : a, style: mt, children: s.isEnded ? /* @__PURE__ */ h(
2419
- Me,
2418
+ /* @__PURE__ */ h("button", { type: "button", onClick: s.isPlaying ? c : a, style: pt, children: s.isEnded ? /* @__PURE__ */ h(
2419
+ Ae,
2420
2420
  {
2421
2421
  override: (d = o == null ? void 0 : o.icon) == null ? void 0 : d.replay,
2422
2422
  fallbackIcon: "MdRefresh",
@@ -2429,7 +2429,7 @@ function cm({
2429
2429
  }
2430
2430
  }
2431
2431
  ) : /* @__PURE__ */ h(pe, { children: s.isPlaying ? /* @__PURE__ */ h(
2432
- Me,
2432
+ Ae,
2433
2433
  {
2434
2434
  override: (f = o == null ? void 0 : o.icon) == null ? void 0 : f.pause,
2435
2435
  fallbackIcon: "MdPause",
@@ -2442,7 +2442,7 @@ function cm({
2442
2442
  }
2443
2443
  }
2444
2444
  ) : /* @__PURE__ */ h(
2445
- Me,
2445
+ Ae,
2446
2446
  {
2447
2447
  override: (m = o == null ? void 0 : o.icon) == null ? void 0 : m.play,
2448
2448
  fallbackIcon: "MdPlayArrow",
@@ -2498,7 +2498,7 @@ function um({
2498
2498
  options: u
2499
2499
  }) {
2500
2500
  var v, k, w, M, y, E, T, S, P;
2501
- const [d] = Te(), [f, m] = oe(0), { play: p, pause: g } = He();
2501
+ const [d] = Ee(), [f, m] = oe(0), { play: p, pause: g } = je();
2502
2502
  if (B(() => {
2503
2503
  r || m((I) => I + 1);
2504
2504
  }, [r, d.isPlaying]), d.isSeekOverlayVisible) return null;
@@ -2508,7 +2508,7 @@ function um({
2508
2508
  {
2509
2509
  className: `vpe-big-play-btn ${b ? "center-play-btn-anim" : ""}`,
2510
2510
  children: [
2511
- r && c > 1 && /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(tt, { children: /* @__PURE__ */ h(
2511
+ r && c > 1 && /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(nt, { children: /* @__PURE__ */ h(
2512
2512
  "button",
2513
2513
  {
2514
2514
  disabled: a === 0,
@@ -2518,7 +2518,7 @@ function um({
2518
2518
  l && s();
2519
2519
  },
2520
2520
  children: /* @__PURE__ */ h(
2521
- Me,
2521
+ Ae,
2522
2522
  {
2523
2523
  override: (v = u == null ? void 0 : u.icon) == null ? void 0 : v.prev,
2524
2524
  fallbackIcon: "MdSkipPrevious",
@@ -2533,7 +2533,7 @@ function um({
2533
2533
  )
2534
2534
  }
2535
2535
  ) }) }),
2536
- /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(tt, { children: /* @__PURE__ */ h(
2536
+ /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(nt, { children: /* @__PURE__ */ h(
2537
2537
  "button",
2538
2538
  {
2539
2539
  type: "button",
@@ -2542,7 +2542,7 @@ function um({
2542
2542
  (r || i) && (d.isPlaying ? g() : p());
2543
2543
  },
2544
2544
  children: d.isEnded ? /* @__PURE__ */ h(
2545
- Me,
2545
+ Ae,
2546
2546
  {
2547
2547
  override: (M = (k = u == null ? void 0 : u.icon) == null ? void 0 : k.replay) != null ? M : (w = u == null ? void 0 : u.icon) == null ? void 0 : w.bigPlay,
2548
2548
  fallbackIcon: "MdRefresh",
@@ -2555,7 +2555,7 @@ function um({
2555
2555
  }
2556
2556
  }
2557
2557
  ) : /* @__PURE__ */ h(pe, { children: d.isPlaying ? /* @__PURE__ */ h(
2558
- Me,
2558
+ Ae,
2559
2559
  {
2560
2560
  override: (y = u == null ? void 0 : u.icon) == null ? void 0 : y.pause,
2561
2561
  fallbackIcon: "MdPause",
@@ -2568,7 +2568,7 @@ function um({
2568
2568
  }
2569
2569
  }
2570
2570
  ) : /* @__PURE__ */ h(
2571
- Me,
2571
+ Ae,
2572
2572
  {
2573
2573
  override: (S = (E = u == null ? void 0 : u.icon) == null ? void 0 : E.bigPlay) != null ? S : (T = u == null ? void 0 : u.icon) == null ? void 0 : T.play,
2574
2574
  fallbackIcon: "MdPlayArrow",
@@ -2583,7 +2583,7 @@ function um({
2583
2583
  ) })
2584
2584
  }
2585
2585
  ) }) }),
2586
- r && c > 1 && /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(tt, { children: /* @__PURE__ */ h(
2586
+ r && c > 1 && /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(nt, { children: /* @__PURE__ */ h(
2587
2587
  "button",
2588
2588
  {
2589
2589
  type: "button",
@@ -2593,7 +2593,7 @@ function um({
2593
2593
  l && o();
2594
2594
  },
2595
2595
  children: /* @__PURE__ */ h(
2596
- Me,
2596
+ Ae,
2597
2597
  {
2598
2598
  override: (P = u == null ? void 0 : u.icon) == null ? void 0 : P.next,
2599
2599
  fallbackIcon: "MdSkipNext",
@@ -2615,7 +2615,7 @@ function um({
2615
2615
  }
2616
2616
  function dm({ color: e = "#ffffff" }) {
2617
2617
  var l, u, d, f, m;
2618
- const [t] = Te(), { seekTo: n } = He();
2618
+ const [t] = Ee(), { seekTo: n } = je();
2619
2619
  if (t.isSeekOverlayVisible) return null;
2620
2620
  const r = ((u = (l = t.bufferedEnd) != null ? l : t.buffered) != null ? u : 0) || t.duration || 0, o = !!t.isLive, a = o && r > 0 ? Math.abs(((d = t.currentTime) != null ? d : 0) - r) < 10 : o, c = () => {
2621
2621
  o && (!r || Number.isNaN(r) || n(Math.max(0, r - 0.1)));
@@ -2713,7 +2713,7 @@ function dm({ color: e = "#ffffff" }) {
2713
2713
  }
2714
2714
  function fm({ color: e = "#ffffff" }) {
2715
2715
  var n;
2716
- const [t] = Te();
2716
+ const [t] = Ee();
2717
2717
  return t.isSeekOverlayVisible ? null : /* @__PURE__ */ h(
2718
2718
  "div",
2719
2719
  {
@@ -2735,7 +2735,7 @@ function fm({ color: e = "#ffffff" }) {
2735
2735
  }
2736
2736
  function hm({ color: e = "#ffffff" }) {
2737
2737
  var n;
2738
- const [t] = Te();
2738
+ const [t] = Ee();
2739
2739
  return t.isSeekOverlayVisible ? null : /* @__PURE__ */ h(
2740
2740
  "div",
2741
2741
  {
@@ -2762,7 +2762,7 @@ function mm({
2762
2762
  pos: i = "left",
2763
2763
  options: r = {}
2764
2764
  }) {
2765
- const [o] = Te(), { seekTo: s } = He(), a = typeof (r == null ? void 0 : r.skipSeconds) == "number" ? r.skipSeconds : 10;
2765
+ const [o] = Ee(), { seekTo: s } = je(), a = typeof (r == null ? void 0 : r.skipSeconds) == "number" ? r.skipSeconds : 10;
2766
2766
  if (o.isSeekOverlayVisible) return null;
2767
2767
  const c = () => {
2768
2768
  var d;
@@ -2770,8 +2770,8 @@ function mm({
2770
2770
  const u = ((d = o.currentTime) != null ? d : 0) - a;
2771
2771
  s(Math.max(0, u));
2772
2772
  };
2773
- return /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h("button", { type: "button", onClick: c, style: mt, children: /* @__PURE__ */ h(
2774
- Ee,
2773
+ return /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h("button", { type: "button", onClick: c, style: pt, children: /* @__PURE__ */ h(
2774
+ Pe,
2775
2775
  {
2776
2776
  icon: "MdReplay10",
2777
2777
  style: {
@@ -2791,7 +2791,7 @@ function pm({
2791
2791
  pos: i = "left",
2792
2792
  options: r = {}
2793
2793
  }) {
2794
- const [o] = Te(), { seekTo: s } = He(), a = typeof (r == null ? void 0 : r.skipSeconds) == "number" ? r.skipSeconds : 10;
2794
+ const [o] = Ee(), { seekTo: s } = je(), a = typeof (r == null ? void 0 : r.skipSeconds) == "number" ? r.skipSeconds : 10;
2795
2795
  if (o.isSeekOverlayVisible) return null;
2796
2796
  const c = () => {
2797
2797
  var m, p;
@@ -2799,8 +2799,8 @@ function pm({
2799
2799
  const l = (m = o.currentTime) != null ? m : 0, u = (p = o.duration) != null ? p : 0, d = l + a, f = Number.isFinite(u) && u > 0 ? Math.min(d, u) : Math.max(0, d);
2800
2800
  s(f);
2801
2801
  };
2802
- return /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h("button", { type: "button", onClick: c, style: mt, children: /* @__PURE__ */ h(
2803
- Ee,
2802
+ return /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h("button", { type: "button", onClick: c, style: pt, children: /* @__PURE__ */ h(
2803
+ Pe,
2804
2804
  {
2805
2805
  icon: "MdForward10",
2806
2806
  style: {
@@ -2825,7 +2825,7 @@ function tu({
2825
2825
  options: a
2826
2826
  }) {
2827
2827
  var c;
2828
- return /* @__PURE__ */ h(pe, { children: o > 1 && /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h(
2828
+ return /* @__PURE__ */ h(pe, { children: o > 1 && /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h(
2829
2829
  "button",
2830
2830
  {
2831
2831
  type: "button",
@@ -2833,9 +2833,9 @@ function tu({
2833
2833
  onClick: () => {
2834
2834
  s();
2835
2835
  },
2836
- style: mt,
2836
+ style: pt,
2837
2837
  children: /* @__PURE__ */ h(
2838
- Me,
2838
+ Ae,
2839
2839
  {
2840
2840
  override: (c = a == null ? void 0 : a.icon) == null ? void 0 : c.prev,
2841
2841
  fallbackIcon: "MdSkipPrevious",
@@ -2863,17 +2863,17 @@ function nu({
2863
2863
  options: a
2864
2864
  }) {
2865
2865
  var c;
2866
- return /* @__PURE__ */ h(pe, { children: o > 1 && /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h(
2866
+ return /* @__PURE__ */ h(pe, { children: o > 1 && /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${i}`, children: /* @__PURE__ */ h(
2867
2867
  "button",
2868
2868
  {
2869
2869
  type: "button",
2870
- style: mt,
2870
+ style: pt,
2871
2871
  disabled: r === o - 1,
2872
2872
  onClick: () => {
2873
2873
  s();
2874
2874
  },
2875
2875
  children: /* @__PURE__ */ h(
2876
- Me,
2876
+ Ae,
2877
2877
  {
2878
2878
  override: (c = a == null ? void 0 : a.icon) == null ? void 0 : c.next,
2879
2879
  fallbackIcon: "MdSkipNext",
@@ -3009,7 +3009,7 @@ function vm({
3009
3009
  pos: o = "left"
3010
3010
  }) {
3011
3011
  var u, d, f, m;
3012
- const [s, a] = Te(), { toggleFullscreen: c } = He(), l = typeof navigator != "undefined" && /iPhone/.test(navigator.userAgent) && /Safari/.test(navigator.userAgent) && !/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);
3012
+ const [s, a] = Ee(), { toggleFullscreen: c } = je(), l = typeof navigator != "undefined" && /iPhone/.test(navigator.userAgent) && /Safari/.test(navigator.userAgent) && !/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);
3013
3013
  return B(() => {
3014
3014
  const p = () => {
3015
3015
  l && !i.iosFullscreenNativeMode || a({ isFullscreen: !!document.fullscreenElement });
@@ -3017,10 +3017,10 @@ function vm({
3017
3017
  return document.addEventListener("fullscreenchange", p), p(), () => {
3018
3018
  document.removeEventListener("fullscreenchange", p);
3019
3019
  };
3020
- }, [a]), s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${o}`, children: [
3020
+ }, [a]), s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${o}`, children: [
3021
3021
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: s.isFullscreen ? (u = r == null ? void 0 : r.fullOff) != null ? u : "전체화면 해제" : (d = r == null ? void 0 : r.fullOn) != null ? d : "전체화면" }) }),
3022
- /* @__PURE__ */ h("button", { type: "button", onClick: () => c(i), style: mt, children: s.isFullscreen ? /* @__PURE__ */ h(
3023
- Me,
3022
+ /* @__PURE__ */ h("button", { type: "button", onClick: () => c(i), style: pt, children: s.isFullscreen ? /* @__PURE__ */ h(
3023
+ Ae,
3024
3024
  {
3025
3025
  override: (f = i == null ? void 0 : i.icon) == null ? void 0 : f.fullscreenExit,
3026
3026
  fallbackIcon: "MdFullscreenExit",
@@ -3033,7 +3033,7 @@ function vm({
3033
3033
  }
3034
3034
  }
3035
3035
  ) : /* @__PURE__ */ h(
3036
- Me,
3036
+ Ae,
3037
3037
  {
3038
3038
  override: (m = i == null ? void 0 : i.icon) == null ? void 0 : m.fullscreen,
3039
3039
  fallbackIcon: "MdFullscreen",
@@ -3050,11 +3050,11 @@ function vm({
3050
3050
  }
3051
3051
  function bm({ size: e = "1.5rem", color: t = "#ffffff", text: n = {}, pos: i = "left", options: r }) {
3052
3052
  var a, c, l, u;
3053
- const [o] = Te(), { toggleSubtitle: s } = He();
3054
- return o.isSeekOverlayVisible ? null : /* @__PURE__ */ h(pe, { children: o.hasSubtitle && /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${i}`, children: [
3053
+ const [o] = Ee(), { toggleSubtitle: s } = je();
3054
+ return o.isSeekOverlayVisible ? null : /* @__PURE__ */ h(pe, { children: o.hasSubtitle && /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${i}`, children: [
3055
3055
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: o.isSubtitle ? (a = n == null ? void 0 : n.captionOff) != null ? a : "자막끄기" : (c = n == null ? void 0 : n.captionOn) != null ? c : "자막켜기" }) }),
3056
- /* @__PURE__ */ h("button", { type: "button", onClick: s, style: mt, children: o.isSubtitle ? /* @__PURE__ */ h(
3057
- Me,
3056
+ /* @__PURE__ */ h("button", { type: "button", onClick: s, style: pt, children: o.isSubtitle ? /* @__PURE__ */ h(
3057
+ Ae,
3058
3058
  {
3059
3059
  override: (l = r == null ? void 0 : r.icon) == null ? void 0 : l.subtitle,
3060
3060
  fallbackIcon: "MdSubtitles",
@@ -3066,7 +3066,7 @@ function bm({ size: e = "1.5rem", color: t = "#ffffff", text: n = {}, pos: i = "
3066
3066
  }
3067
3067
  }
3068
3068
  ) : /* @__PURE__ */ h(
3069
- Me,
3069
+ Ae,
3070
3070
  {
3071
3071
  override: (u = r == null ? void 0 : r.icon) == null ? void 0 : u.subtitleOff,
3072
3072
  fallbackIcon: "MdSubtitlesOff",
@@ -3089,13 +3089,13 @@ function wm({
3089
3089
  options: o
3090
3090
  }) {
3091
3091
  var d, f, m, p, g, b, v;
3092
- const [s] = Te(), { setVolume: a, toggleMute: c } = He(), l = (d = s.isVolume) != null ? d : 0, u = s.isMuted ? 0 : l;
3092
+ const [s] = Ee(), { setVolume: a, toggleMute: c } = je(), l = (d = s.isVolume) != null ? d : 0, u = s.isMuted ? 0 : l;
3093
3093
  return s.isSeekOverlayVisible ? null : /* @__PURE__ */ X("div", { className: "VolumeBtnWrap", children: [
3094
3094
  /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${r}`, children: [
3095
3095
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: s.isMuted ? (f = i == null ? void 0 : i.muteOff) != null ? f : "음소거 해제" : (m = i == null ? void 0 : i.muteOn) != null ? m : "음소거" }) }),
3096
- /* @__PURE__ */ h("button", { type: "button", onClick: c, style: mt, children: /* @__PURE__ */ X(pe, { children: [
3096
+ /* @__PURE__ */ h("button", { type: "button", onClick: c, style: pt, children: /* @__PURE__ */ X(pe, { children: [
3097
3097
  (l === 0 || s.isMuted) && /* @__PURE__ */ h(
3098
- Me,
3098
+ Ae,
3099
3099
  {
3100
3100
  override: (p = o == null ? void 0 : o.icon) == null ? void 0 : p.volumeMute,
3101
3101
  fallbackIcon: "MdVolumeOff",
@@ -3109,7 +3109,7 @@ function wm({
3109
3109
  }
3110
3110
  ),
3111
3111
  l > 0 && l <= 10 && !s.isMuted && /* @__PURE__ */ h(
3112
- Me,
3112
+ Ae,
3113
3113
  {
3114
3114
  override: (g = o == null ? void 0 : o.icon) == null ? void 0 : g.volumeMid,
3115
3115
  fallbackIcon: "MdVolumeMute",
@@ -3123,7 +3123,7 @@ function wm({
3123
3123
  }
3124
3124
  ),
3125
3125
  l >= 11 && l <= 50 && !s.isMuted && /* @__PURE__ */ h(
3126
- Me,
3126
+ Ae,
3127
3127
  {
3128
3128
  override: (b = o == null ? void 0 : o.icon) == null ? void 0 : b.volumeMid,
3129
3129
  fallbackIcon: "MdVolumeDownAlt",
@@ -3137,7 +3137,7 @@ function wm({
3137
3137
  }
3138
3138
  ),
3139
3139
  l >= 51 && !s.isMuted && /* @__PURE__ */ h(
3140
- Me,
3140
+ Ae,
3141
3141
  {
3142
3142
  override: (v = o == null ? void 0 : o.icon) == null ? void 0 : v.volumeFull,
3143
3143
  fallbackIcon: "MdVolumeUp",
@@ -3170,8 +3170,8 @@ function wm({
3170
3170
  }
3171
3171
  function Sm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "left", options: r }) {
3172
3172
  var u, d;
3173
- const [o, s] = Te(), { isMobile: a } = Zl(), c = o.isHd, l = o.is4k;
3174
- return o.isSeekOverlayVisible ? null : /* @__PURE__ */ h(pe, { children: /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${i}`, children: [
3173
+ const [o, s] = Ee(), { isMobile: a } = Zl(), c = o.isHd, l = o.is4k;
3174
+ return o.isSeekOverlayVisible ? null : /* @__PURE__ */ h(pe, { children: /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${i}`, children: [
3175
3175
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: (u = n == null ? void 0 : n.setting) != null ? u : "설정" }) }),
3176
3176
  /* @__PURE__ */ X(
3177
3177
  "button",
@@ -3180,7 +3180,7 @@ function Sm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "
3180
3180
  onClick: () => {
3181
3181
  s({ isSettingModal: !o.isSettingModal });
3182
3182
  },
3183
- style: mt,
3183
+ style: pt,
3184
3184
  children: [
3185
3185
  (c || l) && /* @__PURE__ */ h(
3186
3186
  "div",
@@ -3195,7 +3195,7 @@ function Sm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "
3195
3195
  borderRadius: "5px"
3196
3196
  },
3197
3197
  children: c && !l && !a && /* @__PURE__ */ h(
3198
- Ee,
3198
+ Pe,
3199
3199
  {
3200
3200
  icon: "BsFillBadgeHdFill",
3201
3201
  style: {
@@ -3206,7 +3206,7 @@ function Sm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "
3206
3206
  }
3207
3207
  }
3208
3208
  ) || l && !a && /* @__PURE__ */ h(
3209
- Ee,
3209
+ Pe,
3210
3210
  {
3211
3211
  icon: "BsFillBadge4kFill",
3212
3212
  style: {
@@ -3220,7 +3220,7 @@ function Sm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "
3220
3220
  }
3221
3221
  ),
3222
3222
  /* @__PURE__ */ h(
3223
- Me,
3223
+ Ae,
3224
3224
  {
3225
3225
  override: (d = r == null ? void 0 : r.icon) == null ? void 0 : d.setting,
3226
3226
  fallbackIcon: "MdSettings",
@@ -3239,8 +3239,8 @@ function Sm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "
3239
3239
  }
3240
3240
  function xm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "left", options: r }) {
3241
3241
  var l, u, d, f;
3242
- const { togglePictureInPicture: o } = He(), [s] = Te(), a = (u = (l = r == null ? void 0 : r.override) == null ? void 0 : l.pip) != null ? u : void 0, c = j(!1);
3243
- return s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(pe, { children: /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${i}`, children: [
3242
+ const { togglePictureInPicture: o } = je(), [s] = Ee(), a = (u = (l = r == null ? void 0 : r.override) == null ? void 0 : l.pip) != null ? u : void 0, c = j(!1);
3243
+ return s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(pe, { children: /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${i}`, children: [
3244
3244
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: (d = n == null ? void 0 : n.miniPlayer) != null ? d : "미니플레이어" }) }),
3245
3245
  /* @__PURE__ */ h(
3246
3246
  "button",
@@ -3254,9 +3254,9 @@ function xm({ color: e = "#ffffff", size: t = "1.5rem", text: n = {}, pos: i = "
3254
3254
  }
3255
3255
  o();
3256
3256
  },
3257
- style: mt,
3257
+ style: pt,
3258
3258
  children: /* @__PURE__ */ h(
3259
- Me,
3259
+ Ae,
3260
3260
  {
3261
3261
  override: (f = r == null ? void 0 : r.icon) == null ? void 0 : f.pip,
3262
3262
  fallbackIcon: "MdPictureInPictureAlt",
@@ -3281,12 +3281,12 @@ function ru({
3281
3281
  options: o
3282
3282
  }) {
3283
3283
  var l, u, d, f, m, p, g;
3284
- const [s] = Te(), { toggleMute: a } = He(), c = (l = s.isVolume) != null ? l : 0;
3285
- return s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${r}`, children: [
3284
+ const [s] = Ee(), { toggleMute: a } = je(), c = (l = s.isVolume) != null ? l : 0;
3285
+ return s.isSeekOverlayVisible ? null : /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ X("div", { className: `vpe-popover-wrap vp-${r}`, children: [
3286
3286
  /* @__PURE__ */ h("div", { className: "vpe-popver", children: /* @__PURE__ */ h("div", { className: "vpe-popver-text", children: s.isMuted ? (u = i == null ? void 0 : i.muteOff) != null ? u : "음소거 해제" : (d = i == null ? void 0 : i.muteOn) != null ? d : "음소거" }) }),
3287
- /* @__PURE__ */ h("button", { type: "button", onClick: a, style: mt, children: /* @__PURE__ */ X(pe, { children: [
3287
+ /* @__PURE__ */ h("button", { type: "button", onClick: a, style: pt, children: /* @__PURE__ */ X(pe, { children: [
3288
3288
  (c === 0 || s.isMuted) && /* @__PURE__ */ h(
3289
- Me,
3289
+ Ae,
3290
3290
  {
3291
3291
  override: (f = o == null ? void 0 : o.icon) == null ? void 0 : f.volumeMute,
3292
3292
  fallbackIcon: "MdVolumeOff",
@@ -3300,7 +3300,7 @@ function ru({
3300
3300
  }
3301
3301
  ),
3302
3302
  c >= 5 && c <= 10 && !s.isMuted && /* @__PURE__ */ h(
3303
- Me,
3303
+ Ae,
3304
3304
  {
3305
3305
  override: (m = o == null ? void 0 : o.icon) == null ? void 0 : m.volumeMid,
3306
3306
  fallbackIcon: "MdVolumeMute",
@@ -3314,7 +3314,7 @@ function ru({
3314
3314
  }
3315
3315
  ),
3316
3316
  c >= 11 && c <= 50 && !s.isMuted && /* @__PURE__ */ h(
3317
- Me,
3317
+ Ae,
3318
3318
  {
3319
3319
  override: (p = o == null ? void 0 : o.icon) == null ? void 0 : p.volumeMid,
3320
3320
  fallbackIcon: "MdVolumeDownAlt",
@@ -3328,7 +3328,7 @@ function ru({
3328
3328
  }
3329
3329
  ),
3330
3330
  c >= 51 && !s.isMuted && /* @__PURE__ */ h(
3331
- Me,
3331
+ Ae,
3332
3332
  {
3333
3333
  override: (g = o == null ? void 0 : o.icon) == null ? void 0 : g.volumeFull,
3334
3334
  fallbackIcon: "MdVolumeUp",
@@ -3359,16 +3359,16 @@ function Tm({ size: e = "1.5rem", color: t = "#ffffff", pos: n = "left" }) {
3359
3359
  console.log("share failed/canceled:", o);
3360
3360
  }
3361
3361
  };
3362
- return /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${n}`, children: /* @__PURE__ */ h(
3362
+ return /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ h("div", { className: `vpe-popover-wrap vp-${n}`, children: /* @__PURE__ */ h(
3363
3363
  "button",
3364
3364
  {
3365
3365
  type: "button",
3366
3366
  onClick: () => {
3367
3367
  i();
3368
3368
  },
3369
- style: mt,
3369
+ style: pt,
3370
3370
  children: /* @__PURE__ */ h(pe, { children: /* @__PURE__ */ h(
3371
- Ee,
3371
+ Pe,
3372
3372
  {
3373
3373
  icon: "IoMdShareAlt",
3374
3374
  style: {
@@ -3384,7 +3384,7 @@ function Tm({ size: e = "1.5rem", color: t = "#ffffff", pos: n = "left" }) {
3384
3384
  }
3385
3385
  function km(e) {
3386
3386
  var o;
3387
- const { useTouch: t, play: n } = He(), [i, r] = oe(!1);
3387
+ const { useTouch: t, play: n } = je(), [i, r] = oe(!1);
3388
3388
  return B(() => {
3389
3389
  const s = window.requestAnimationFrame(() => {
3390
3390
  r(!0);
@@ -3417,8 +3417,8 @@ function km(e) {
3417
3417
  style: {
3418
3418
  transform: "scale(1)"
3419
3419
  },
3420
- children: /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(tt, { noBg: !0, children: /* @__PURE__ */ h(
3421
- Ee,
3420
+ children: /* @__PURE__ */ h(li, { noPadding: !0, children: /* @__PURE__ */ h(nt, { noBg: !0, children: /* @__PURE__ */ h(
3421
+ Pe,
3422
3422
  {
3423
3423
  icon: "MdPlayArrow",
3424
3424
  style: {
@@ -3468,7 +3468,7 @@ function Em(e) {
3468
3468
  }, 500);
3469
3469
  return () => window.clearTimeout(u);
3470
3470
  }, []), /* @__PURE__ */ h("div", { style: c, children: /* @__PURE__ */ h("div", { ref: r, style: { width: "100%", height: "100%", position: "relative" }, children: /* @__PURE__ */ X("div", { style: l, className: "vpe-startTime-cardStyle", children: [
3471
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ee, { icon: "WiTime9", style: { fontSize: "2rem" } }) }),
3471
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Pe, { icon: "WiTime9", style: { fontSize: "2rem" } }) }),
3472
3472
  /* @__PURE__ */ X("div", { children: [
3473
3473
  /* @__PURE__ */ h("div", { children: i }),
3474
3474
  /* @__PURE__ */ h("div", { children: o })
@@ -3555,7 +3555,7 @@ function Pm(e) {
3555
3555
  ) }) }) : null;
3556
3556
  }
3557
3557
  function To(e) {
3558
- const [t] = Te(), [n, i] = oe(!1), { poster: r, options: o } = e, s = {
3558
+ const [t] = Ee(), [n, i] = oe(!1), { poster: r, options: o } = e, s = {
3559
3559
  display: "flex",
3560
3560
  justifyContent: "center",
3561
3561
  alignItems: "center",
@@ -3591,7 +3591,7 @@ function Am({
3591
3591
  executeDelayMs: n = 300,
3592
3592
  onSingleTap: i
3593
3593
  }) {
3594
- const { seekTo: r, videoEl: o } = He(), [, s] = Te(), [a, c] = oe(null), [l, u] = oe(null), d = j({ left: null, right: null }), f = j({
3594
+ const { seekTo: r, videoEl: o } = je(), [, s] = Ee(), [a, c] = oe(null), [l, u] = oe(null), d = j({ left: null, right: null }), f = j({
3595
3595
  left: Oa(),
3596
3596
  right: Oa()
3597
3597
  });
@@ -3681,7 +3681,7 @@ function Am({
3681
3681
  animation: "vpe-fade-in-right 180ms ease-out",
3682
3682
  opacity: 1
3683
3683
  },
3684
- children: /* @__PURE__ */ h(Ee, { icon: "MdArrowBackIosNew", style: { fontSize: "0.95rem" } })
3684
+ children: /* @__PURE__ */ h(Pe, { icon: "MdArrowBackIosNew", style: { fontSize: "0.95rem" } })
3685
3685
  },
3686
3686
  `left-arrow-${a}`
3687
3687
  ),
@@ -3715,7 +3715,7 @@ function Am({
3715
3715
  animation: "vpe-fade-in-left 180ms ease-out",
3716
3716
  opacity: 1
3717
3717
  },
3718
- children: /* @__PURE__ */ h(Ee, { icon: "MdArrowForwardIos", style: { fontSize: "0.95rem" } })
3718
+ children: /* @__PURE__ */ h(Pe, { icon: "MdArrowForwardIos", style: { fontSize: "0.95rem" } })
3719
3719
  },
3720
3720
  `right-arrow-${l}`
3721
3721
  )
@@ -3758,7 +3758,7 @@ function Am({
3758
3758
  }
3759
3759
  function Cm(e) {
3760
3760
  var w, M, y, E, T, S, P, I, R, N, C;
3761
- const [t, n] = Te(), { playBackRate: i, selectQualityLevel: r } = He(), { text: o } = e, s = (E = (y = (M = e.vtt) != null ? M : (w = e.src) == null ? void 0 : w.vtt) != null ? y : t.subtitleTracks) != null ? E : [], a = (T = t.currentLevel) != null ? T : -1, c = (S = t.levels) == null ? void 0 : S.find((x) => x.index === a), [l, u] = oe(null);
3761
+ const [t, n] = Ee(), { playBackRate: i, selectQualityLevel: r } = je(), { text: o } = e, s = (E = (y = (M = e.vtt) != null ? M : (w = e.src) == null ? void 0 : w.vtt) != null ? y : t.subtitleTracks) != null ? E : [], a = (T = t.currentLevel) != null ? T : -1, c = (S = t.levels) == null ? void 0 : S.find((x) => x.index === a), [l, u] = oe(null);
3762
3762
  B(() => {
3763
3763
  var L, V, W, O;
3764
3764
  const x = (O = (W = (V = (L = t.levels) == null ? void 0 : L.find((K) => K.index === t.currentLevel)) == null ? void 0 : V.height) != null ? W : c == null ? void 0 : c.height) != null ? O : null;
@@ -3793,7 +3793,7 @@ function Cm(e) {
3793
3793
  },
3794
3794
  children: [
3795
3795
  /* @__PURE__ */ h(
3796
- Ee,
3796
+ Pe,
3797
3797
  {
3798
3798
  icon: "MdArrowBackIosNew",
3799
3799
  style: { fontSize: "12px" },
@@ -3817,7 +3817,7 @@ function Cm(e) {
3817
3817
  onClick: () => {
3818
3818
  n({ isSettingModal: !1 });
3819
3819
  },
3820
- children: /* @__PURE__ */ h(Ee, { icon: "MdClose", size: 25, color: "#ffffff" })
3820
+ children: /* @__PURE__ */ h(Pe, { icon: "MdClose", size: 25, color: "#ffffff" })
3821
3821
  }
3822
3822
  ) })
3823
3823
  ] }),
@@ -3838,12 +3838,12 @@ function Cm(e) {
3838
3838
  k(1);
3839
3839
  },
3840
3840
  children: [
3841
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ee, { icon: "MdDisplaySettings", size: 25, color: "#ffffff" }) }),
3841
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Pe, { icon: "MdDisplaySettings", size: 25, color: "#ffffff" }) }),
3842
3842
  /* @__PURE__ */ h("div", { style: Dt, children: o.quality }),
3843
3843
  /* @__PURE__ */ X("div", { style: Gr, children: [
3844
3844
  /* @__PURE__ */ h("span", { style: Ni, children: d }),
3845
3845
  /* @__PURE__ */ h(
3846
- Ee,
3846
+ Pe,
3847
3847
  {
3848
3848
  icon: "MdArrowForwardIos",
3849
3849
  style: { fontSize: "12px" },
@@ -3864,7 +3864,7 @@ function Cm(e) {
3864
3864
  k(2);
3865
3865
  },
3866
3866
  children: [
3867
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ee, { icon: "MdSpeed", size: 25, color: "#ffffff" }) }),
3867
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Pe, { icon: "MdSpeed", size: 25, color: "#ffffff" }) }),
3868
3868
  /* @__PURE__ */ h("div", { style: Dt, children: o.playbackRate }),
3869
3869
  /* @__PURE__ */ X("div", { style: Gr, children: [
3870
3870
  /* @__PURE__ */ X("span", { style: Ni, children: [
@@ -3872,7 +3872,7 @@ function Cm(e) {
3872
3872
  "x"
3873
3873
  ] }),
3874
3874
  /* @__PURE__ */ h(
3875
- Ee,
3875
+ Pe,
3876
3876
  {
3877
3877
  icon: "MdArrowForwardIos",
3878
3878
  style: { fontSize: "12px" },
@@ -3893,12 +3893,12 @@ function Cm(e) {
3893
3893
  k(3);
3894
3894
  },
3895
3895
  children: [
3896
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ee, { icon: "MdSubtitles", size: 25, color: "#ffffff" }) }),
3896
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Pe, { icon: "MdSubtitles", size: 25, color: "#ffffff" }) }),
3897
3897
  /* @__PURE__ */ h("div", { style: Dt, children: o.captions }),
3898
3898
  /* @__PURE__ */ X("div", { style: Gr, children: [
3899
3899
  /* @__PURE__ */ h(pe, { children: t.isSubtitle ? /* @__PURE__ */ h(pe, { children: s.map((x, L) => /* @__PURE__ */ h("span", { children: t.subTitleIdx === L && /* @__PURE__ */ h("span", { style: Ni, children: x.label }) }, `${x.id}-${x.src}`)) }) : /* @__PURE__ */ h("span", { style: Ni, children: o.notUse }) }),
3900
3900
  /* @__PURE__ */ h(
3901
- Ee,
3901
+ Pe,
3902
3902
  {
3903
3903
  icon: "MdArrowForwardIos",
3904
3904
  style: { fontSize: "12px" },
@@ -3919,7 +3919,7 @@ function Cm(e) {
3919
3919
  x.onChange(!x.value);
3920
3920
  },
3921
3921
  children: [
3922
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ee, { icon: x.icon, size: 25, color: "#ffffff" }) }),
3922
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Pe, { icon: x.icon, size: 25, color: "#ffffff" }) }),
3923
3923
  /* @__PURE__ */ h("div", { style: Dt, children: x.label }),
3924
3924
  /* @__PURE__ */ h(
3925
3925
  "div",
@@ -3976,7 +3976,7 @@ function Cm(e) {
3976
3976
  },
3977
3977
  children: [
3978
3978
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(
3979
- Ee,
3979
+ Pe,
3980
3980
  {
3981
3981
  icon: "MdCheck",
3982
3982
  size: 15,
@@ -4004,7 +4004,7 @@ function Cm(e) {
4004
4004
  },
4005
4005
  children: [
4006
4006
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(
4007
- Ee,
4007
+ Pe,
4008
4008
  {
4009
4009
  icon: "MdCheck",
4010
4010
  size: 15,
@@ -4037,7 +4037,7 @@ function Cm(e) {
4037
4037
  },
4038
4038
  children: [
4039
4039
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(
4040
- Ee,
4040
+ Pe,
4041
4041
  {
4042
4042
  icon: "MdCheck",
4043
4043
  size: 15,
@@ -4072,7 +4072,7 @@ function Cm(e) {
4072
4072
  },
4073
4073
  children: [
4074
4074
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(
4075
- Ee,
4075
+ Pe,
4076
4076
  {
4077
4077
  icon: "MdCheck",
4078
4078
  size: 15,
@@ -4094,7 +4094,7 @@ function Cm(e) {
4094
4094
  },
4095
4095
  children: [
4096
4096
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(
4097
- Ee,
4097
+ Pe,
4098
4098
  {
4099
4099
  icon: "MdCheck",
4100
4100
  size: 15,
@@ -4840,7 +4840,7 @@ function ys(e) {
4840
4840
  let t;
4841
4841
  return () => (t === void 0 && (t = e()), t);
4842
4842
  }
4843
- const ht = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Vm = (e, t) => (n) => t(e(n)), ki = (...e) => e.reduce(Vm), gi = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
4843
+ const mt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Vm = (e, t) => (n) => t(e(n)), ki = (...e) => e.reduce(Vm), gi = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
4844
4844
  const i = t - e;
4845
4845
  return i === 0 ? 1 : (n - e) / i;
4846
4846
  };
@@ -4869,7 +4869,7 @@ class vs {
4869
4869
  this.subscriptions.length = 0;
4870
4870
  }
4871
4871
  }
4872
- const Ft = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ft = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
4872
+ const Ft = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ht = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
4873
4873
  function uu(e, t) {
4874
4874
  return t ? e * (1e3 / t) : 0;
4875
4875
  }
@@ -4883,12 +4883,12 @@ function zm(e, t, n, i, r) {
4883
4883
  }
4884
4884
  function Ei(e, t, n, i) {
4885
4885
  if (e === t && n === i)
4886
- return ht;
4886
+ return mt;
4887
4887
  const r = (o) => zm(o, 0, 1, e, n);
4888
4888
  return (o) => o === 0 || o === 1 ? o : du(r(o), t, i);
4889
4889
  }
4890
4890
  const fu = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, hu = (e) => (t) => 1 - e(1 - t), mu = /* @__PURE__ */ Ei(0.33, 1.53, 0.69, 0.99), bs = /* @__PURE__ */ hu(mu), pu = /* @__PURE__ */ fu(bs), gu = (e) => (e *= 2) < 1 ? 0.5 * bs(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), ws = (e) => 1 - Math.sin(Math.acos(e)), yu = hu(ws), vu = fu(ws), Um = /* @__PURE__ */ Ei(0.42, 0, 1, 1), Hm = /* @__PURE__ */ Ei(0, 0, 0.58, 1), bu = /* @__PURE__ */ Ei(0.42, 0, 0.58, 1), Om = (e) => Array.isArray(e) && typeof e[0] != "number", wu = (e) => Array.isArray(e) && typeof e[0] == "number", jm = {
4891
- linear: ht,
4891
+ linear: mt,
4892
4892
  easeIn: Um,
4893
4893
  easeInOut: bu,
4894
4894
  easeOut: Hm,
@@ -4984,13 +4984,13 @@ function Su(e, t) {
4984
4984
  s[Fi[M]].cancel(w);
4985
4985
  }, state: r, steps: s };
4986
4986
  }
4987
- const { schedule: Se, cancel: Gt, state: qe, steps: Kr } = /* @__PURE__ */ Su(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : ht, !0);
4987
+ const { schedule: xe, cancel: Gt, state: Ye, steps: Kr } = /* @__PURE__ */ Su(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : mt, !0);
4988
4988
  let Xi;
4989
4989
  function Gm() {
4990
4990
  Xi = void 0;
4991
4991
  }
4992
- const Je = {
4993
- now: () => (Xi === void 0 && Je.set(qe.isProcessing || Ut.useManualTiming ? qe.timestamp : performance.now()), Xi),
4992
+ const et = {
4993
+ now: () => (Xi === void 0 && et.set(Ye.isProcessing || Ut.useManualTiming ? Ye.timestamp : performance.now()), Xi),
4994
4994
  set: (e) => {
4995
4995
  Xi = e, queueMicrotask(Gm);
4996
4996
  }
@@ -5055,13 +5055,13 @@ const ko = {
5055
5055
  test: /* @__PURE__ */ Ts("hsl", "hue"),
5056
5056
  parse: /* @__PURE__ */ ku("hue", "saturation", "lightness"),
5057
5057
  transform: ({ hue: e, saturation: t, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(e) + ", " + Mt.transform(ui(t)) + ", " + Mt.transform(ui(n)) + ", " + ui(yi.transform(i)) + ")"
5058
- }, Ne = {
5058
+ }, ze = {
5059
5059
  test: (e) => dn.test(e) || ko.test(e) || En.test(e),
5060
5060
  parse: (e) => dn.test(e) ? dn.parse(e) : En.test(e) ? En.parse(e) : ko.parse(e),
5061
5061
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? dn.transform(e) : En.transform(e),
5062
5062
  getAnimatableNone: (e) => {
5063
- const t = Ne.parse(e);
5064
- return t.alpha = 0, Ne.transform(t);
5063
+ const t = ze.parse(e);
5064
+ return t.alpha = 0, ze.transform(t);
5065
5065
  }
5066
5066
  }, tp = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
5067
5067
  function np(e) {
@@ -5076,7 +5076,7 @@ function vi(e) {
5076
5076
  var: []
5077
5077
  }, r = [];
5078
5078
  let o = 0;
5079
- const a = t.replace(op, (c) => (Ne.test(c) ? (i.color.push(o), r.push(Mu), n.push(Ne.parse(c))) : c.startsWith(rp) ? (i.var.push(o), r.push(ip), n.push(c)) : (i.number.push(o), r.push(Eu), n.push(parseFloat(c))), ++o, Ka)).split(Ka);
5079
+ const a = t.replace(op, (c) => (ze.test(c) ? (i.color.push(o), r.push(Mu), n.push(ze.parse(c))) : c.startsWith(rp) ? (i.var.push(o), r.push(ip), n.push(c)) : (i.number.push(o), r.push(Eu), n.push(parseFloat(c))), ++o, Ka)).split(Ka);
5080
5080
  return { values: n, split: a, indexes: i, types: r };
5081
5081
  }
5082
5082
  function Pu(e) {
@@ -5089,12 +5089,12 @@ function Au(e) {
5089
5089
  for (let s = 0; s < i; s++)
5090
5090
  if (o += t[s], r[s] !== void 0) {
5091
5091
  const a = n[s];
5092
- a === Eu ? o += ui(r[s]) : a === Mu ? o += Ne.transform(r[s]) : o += r[s];
5092
+ a === Eu ? o += ui(r[s]) : a === Mu ? o += ze.transform(r[s]) : o += r[s];
5093
5093
  }
5094
5094
  return o;
5095
5095
  };
5096
5096
  }
5097
- const sp = (e) => typeof e == "number" ? 0 : Ne.test(e) ? Ne.getAnimatableNone(e) : e;
5097
+ const sp = (e) => typeof e == "number" ? 0 : ze.test(e) ? ze.getAnimatableNone(e) : e;
5098
5098
  function ap(e) {
5099
5099
  const t = Pu(e);
5100
5100
  return Au(e)(t.map(sp));
@@ -5127,7 +5127,7 @@ function cp({ hue: e, saturation: t, lightness: n, alpha: i }) {
5127
5127
  function sr(e, t) {
5128
5128
  return (n) => n > 0 ? t : e;
5129
5129
  }
5130
- const Ie = (e, t, n) => e + (t - e) * n, Xr = (e, t, n) => {
5130
+ const Re = (e, t, n) => e + (t - e) * n, Xr = (e, t, n) => {
5131
5131
  const i = e * e, r = n * (t * t - i) + i;
5132
5132
  return r < 0 ? 0 : Math.sqrt(r);
5133
5133
  }, lp = [ko, dn, En], up = (e) => lp.find((t) => t.test(e));
@@ -5143,16 +5143,16 @@ const Ya = (e, t) => {
5143
5143
  if (!n || !i)
5144
5144
  return sr(e, t);
5145
5145
  const r = { ...n };
5146
- return (o) => (r.red = Xr(n.red, i.red, o), r.green = Xr(n.green, i.green, o), r.blue = Xr(n.blue, i.blue, o), r.alpha = Ie(n.alpha, i.alpha, o), dn.transform(r));
5146
+ return (o) => (r.red = Xr(n.red, i.red, o), r.green = Xr(n.green, i.green, o), r.blue = Xr(n.blue, i.blue, o), r.alpha = Re(n.alpha, i.alpha, o), dn.transform(r));
5147
5147
  }, Eo = /* @__PURE__ */ new Set(["none", "hidden"]);
5148
5148
  function dp(e, t) {
5149
5149
  return Eo.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
5150
5150
  }
5151
5151
  function fp(e, t) {
5152
- return (n) => Ie(e, t, n);
5152
+ return (n) => Re(e, t, n);
5153
5153
  }
5154
5154
  function ks(e) {
5155
- return typeof e == "number" ? fp : typeof e == "string" ? Ss(e) ? sr : Ne.test(e) ? Ya : pp : Array.isArray(e) ? Cu : typeof e == "object" ? Ne.test(e) ? Ya : hp : sr;
5155
+ return typeof e == "number" ? fp : typeof e == "string" ? Ss(e) ? sr : ze.test(e) ? Ya : pp : Array.isArray(e) ? Cu : typeof e == "object" ? ze.test(e) ? Ya : hp : sr;
5156
5156
  }
5157
5157
  function Cu(e, t) {
5158
5158
  const n = [...e], i = n.length, r = e.map((o, s) => ks(o)(o, t[s]));
@@ -5186,18 +5186,18 @@ const pp = (e, t) => {
5186
5186
  return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? Eo.has(e) && !r.values.length || Eo.has(t) && !i.values.length ? dp(e, t) : ki(Cu(mp(i, r), r.values), n) : sr(e, t);
5187
5187
  };
5188
5188
  function Iu(e, t, n) {
5189
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Ie(e, t, n) : ks(e)(e, t);
5189
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Re(e, t, n) : ks(e)(e, t);
5190
5190
  }
5191
5191
  const gp = (e) => {
5192
5192
  const t = ({ timestamp: n }) => e(n);
5193
5193
  return {
5194
- start: (n = !0) => Se.update(t, n),
5194
+ start: (n = !0) => xe.update(t, n),
5195
5195
  stop: () => Gt(t),
5196
5196
  /**
5197
5197
  * If we're processing this frame we can use the
5198
5198
  * framelocked timestamp to keep things in sync.
5199
5199
  */
5200
- now: () => qe.isProcessing ? qe.timestamp : Je.now()
5200
+ now: () => Ye.isProcessing ? Ye.timestamp : et.now()
5201
5201
  };
5202
5202
  }, Ru = (e, t, n = 10) => {
5203
5203
  let i = "";
@@ -5219,7 +5219,7 @@ function yp(e, t = 100, n) {
5219
5219
  return {
5220
5220
  type: "keyframes",
5221
5221
  ease: (o) => i.next(r * o).value / t,
5222
- duration: /* @__PURE__ */ ft(r)
5222
+ duration: /* @__PURE__ */ ht(r)
5223
5223
  };
5224
5224
  }
5225
5225
  const vp = 5;
@@ -5227,7 +5227,7 @@ function Lu(e, t, n) {
5227
5227
  const i = Math.max(t - vp, 0);
5228
5228
  return uu(n - e(i), t - i);
5229
5229
  }
5230
- const Le = {
5230
+ const Be = {
5231
5231
  // Default spring physics
5232
5232
  stiffness: 100,
5233
5233
  damping: 10,
@@ -5256,9 +5256,9 @@ const Le = {
5256
5256
  minDamping: 0.05,
5257
5257
  maxDamping: 1
5258
5258
  }, Zr = 1e-3;
5259
- function bp({ duration: e = Le.duration, bounce: t = Le.bounce, velocity: n = Le.velocity, mass: i = Le.mass }) {
5259
+ function bp({ duration: e = Be.duration, bounce: t = Be.bounce, velocity: n = Be.velocity, mass: i = Be.mass }) {
5260
5260
  let r, o, s = 1 - t;
5261
- s = At(Le.minDamping, Le.maxDamping, s), e = At(Le.minDuration, Le.maxDuration, /* @__PURE__ */ ft(e)), s < 1 ? (r = (l) => {
5261
+ s = At(Be.minDamping, Be.maxDamping, s), e = At(Be.minDuration, Be.maxDuration, /* @__PURE__ */ ht(e)), s < 1 ? (r = (l) => {
5262
5262
  const u = l * s, d = u * e, f = u - n, m = Mo(l, s), p = Math.exp(-d);
5263
5263
  return Zr - f / m * p;
5264
5264
  }, o = (l) => {
@@ -5274,8 +5274,8 @@ function bp({ duration: e = Le.duration, bounce: t = Le.bounce, velocity: n = Le
5274
5274
  const a = 5 / e, c = Sp(r, o, a);
5275
5275
  if (e = /* @__PURE__ */ Ft(e), isNaN(c))
5276
5276
  return {
5277
- stiffness: Le.stiffness,
5278
- damping: Le.damping,
5277
+ stiffness: Be.stiffness,
5278
+ damping: Be.damping,
5279
5279
  duration: e
5280
5280
  };
5281
5281
  {
@@ -5303,10 +5303,10 @@ function Xa(e, t) {
5303
5303
  }
5304
5304
  function kp(e) {
5305
5305
  let t = {
5306
- velocity: Le.velocity,
5307
- stiffness: Le.stiffness,
5308
- damping: Le.damping,
5309
- mass: Le.mass,
5306
+ velocity: Be.velocity,
5307
+ stiffness: Be.stiffness,
5308
+ damping: Be.damping,
5309
+ mass: Be.mass,
5310
5310
  isResolvedFromDuration: !1,
5311
5311
  ...e
5312
5312
  };
@@ -5315,7 +5315,7 @@ function kp(e) {
5315
5315
  const n = e.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * At(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
5316
5316
  t = {
5317
5317
  ...t,
5318
- mass: Le.mass,
5318
+ mass: Be.mass,
5319
5319
  stiffness: r,
5320
5320
  damping: o
5321
5321
  };
@@ -5324,12 +5324,12 @@ function kp(e) {
5324
5324
  t = {
5325
5325
  ...t,
5326
5326
  ...n,
5327
- mass: Le.mass
5327
+ mass: Be.mass
5328
5328
  }, t.isResolvedFromDuration = !0;
5329
5329
  }
5330
5330
  return t;
5331
5331
  }
5332
- function cr(e = Le.visualDuration, t = Le.bounce) {
5332
+ function cr(e = Be.visualDuration, t = Be.bounce) {
5333
5333
  const n = typeof e != "object" ? {
5334
5334
  visualDuration: e,
5335
5335
  keyframes: [0, 1],
@@ -5338,9 +5338,9 @@ function cr(e = Le.visualDuration, t = Le.bounce) {
5338
5338
  let { restSpeed: i, restDelta: r } = n;
5339
5339
  const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: m } = kp({
5340
5340
  ...n,
5341
- velocity: -/* @__PURE__ */ ft(n.velocity || 0)
5342
- }), p = f || 0, g = l / (2 * Math.sqrt(c * u)), b = s - o, v = /* @__PURE__ */ ft(Math.sqrt(c / u)), k = Math.abs(b) < 5;
5343
- i || (i = k ? Le.restSpeed.granular : Le.restSpeed.default), r || (r = k ? Le.restDelta.granular : Le.restDelta.default);
5341
+ velocity: -/* @__PURE__ */ ht(n.velocity || 0)
5342
+ }), p = f || 0, g = l / (2 * Math.sqrt(c * u)), b = s - o, v = /* @__PURE__ */ ht(Math.sqrt(c / u)), k = Math.abs(b) < 5;
5343
+ i || (i = k ? Be.restSpeed.granular : Be.restSpeed.default), r || (r = k ? Be.restDelta.granular : Be.restDelta.default);
5344
5344
  let w;
5345
5345
  if (g < 1) {
5346
5346
  const y = Mo(v, g);
@@ -5421,7 +5421,7 @@ function Ep(e, t, n) {
5421
5421
  for (let s = 0; s < o; s++) {
5422
5422
  let a = r(e[s], e[s + 1]);
5423
5423
  if (t) {
5424
- const c = Array.isArray(t) ? t[s] || ht : t;
5424
+ const c = Array.isArray(t) ? t[s] || mt : t;
5425
5425
  a = ki(c, a);
5426
5426
  }
5427
5427
  i.push(a);
@@ -5452,7 +5452,7 @@ function Pp(e, t) {
5452
5452
  const n = e[e.length - 1];
5453
5453
  for (let i = 1; i <= t; i++) {
5454
5454
  const r = /* @__PURE__ */ gi(0, t, i);
5455
- e.push(Ie(n, 1, r));
5455
+ e.push(Re(n, 1, r));
5456
5456
  }
5457
5457
  }
5458
5458
  function Ap(e) {
@@ -5527,7 +5527,7 @@ class As extends Ps {
5527
5527
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
5528
5528
  var i, r;
5529
5529
  const { motionValue: n } = this.options;
5530
- n && n.updatedAt !== Je.now() && this.tick(Je.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), (r = (i = this.options).onStop) == null || r.call(i));
5530
+ n && n.updatedAt !== et.now() && this.tick(et.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), (r = (i = this.options).onStop) == null || r.call(i));
5531
5531
  }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
5532
5532
  }
5533
5533
  initAnimation() {
@@ -5580,14 +5580,14 @@ class As extends Ps {
5580
5580
  return this.finished.then(t, n);
5581
5581
  }
5582
5582
  get duration() {
5583
- return /* @__PURE__ */ ft(this.calculatedDuration);
5583
+ return /* @__PURE__ */ ht(this.calculatedDuration);
5584
5584
  }
5585
5585
  get iterationDuration() {
5586
5586
  const { delay: t = 0 } = this.options || {};
5587
- return this.duration + /* @__PURE__ */ ft(t);
5587
+ return this.duration + /* @__PURE__ */ ht(t);
5588
5588
  }
5589
5589
  get time() {
5590
- return /* @__PURE__ */ ft(this.currentTime);
5590
+ return /* @__PURE__ */ ht(this.currentTime);
5591
5591
  }
5592
5592
  set time(t) {
5593
5593
  var n;
@@ -5597,9 +5597,9 @@ class As extends Ps {
5597
5597
  return this.playbackSpeed;
5598
5598
  }
5599
5599
  set speed(t) {
5600
- this.updateTime(Je.now());
5600
+ this.updateTime(et.now());
5601
5601
  const n = this.playbackSpeed !== t;
5602
- this.playbackSpeed = t, n && (this.time = /* @__PURE__ */ ft(this.currentTime));
5602
+ this.playbackSpeed = t, n && (this.time = /* @__PURE__ */ ht(this.currentTime));
5603
5603
  }
5604
5604
  play() {
5605
5605
  var r, o;
@@ -5611,7 +5611,7 @@ class As extends Ps {
5611
5611
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n != null ? n : i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
5612
5612
  }
5613
5613
  pause() {
5614
- this.state = "paused", this.updateTime(Je.now()), this.holdTime = this.currentTime;
5614
+ this.state = "paused", this.updateTime(et.now()), this.holdTime = this.currentTime;
5615
5615
  }
5616
5616
  complete() {
5617
5617
  this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -5777,7 +5777,7 @@ class Cs {
5777
5777
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = i, this.motionValue = r, this.element = o, this.isAsync = s;
5778
5778
  }
5779
5779
  scheduleResolve() {
5780
- this.state = "scheduled", this.isAsync ? (mn.add(this), Lo || (Lo = !0, Se.read(Vu), Se.resolveKeyframes(Du))) : (this.readKeyframes(), this.complete());
5780
+ this.state = "scheduled", this.isAsync ? (mn.add(this), Lo || (Lo = !0, xe.read(Vu), xe.resolveKeyframes(Du))) : (this.readKeyframes(), this.complete());
5781
5781
  }
5782
5782
  readKeyframes() {
5783
5783
  const { unresolvedKeyframes: t, name: n, element: i, motionValue: r } = this;
@@ -5927,14 +5927,14 @@ class Xp extends Ps {
5927
5927
  get duration() {
5928
5928
  var n, i;
5929
5929
  const t = ((i = (n = this.animation.effect) == null ? void 0 : n.getComputedTiming) == null ? void 0 : i.call(n).duration) || 0;
5930
- return /* @__PURE__ */ ft(Number(t));
5930
+ return /* @__PURE__ */ ht(Number(t));
5931
5931
  }
5932
5932
  get iterationDuration() {
5933
5933
  const { delay: t = 0 } = this.options || {};
5934
- return this.duration + /* @__PURE__ */ ft(t);
5934
+ return this.duration + /* @__PURE__ */ ht(t);
5935
5935
  }
5936
5936
  get time() {
5937
- return /* @__PURE__ */ ft(Number(this.animation.currentTime) || 0);
5937
+ return /* @__PURE__ */ ht(Number(this.animation.currentTime) || 0);
5938
5938
  }
5939
5939
  set time(t) {
5940
5940
  this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Ft(t);
@@ -5964,7 +5964,7 @@ class Xp extends Ps {
5964
5964
  */
5965
5965
  attachTimeline({ timeline: t, observe: n }) {
5966
5966
  var i;
5967
- return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && $p() ? (this.animation.timeline = t, ht) : n(this);
5967
+ return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && $p() ? (this.animation.timeline = t, mt) : n(this);
5968
5968
  }
5969
5969
  }
5970
5970
  const Uu = {
@@ -6002,7 +6002,7 @@ class Jp extends Xp {
6002
6002
  const a = new As({
6003
6003
  ...s,
6004
6004
  autoplay: !1
6005
- }), c = Math.max(Qr, Je.now() - this.startTime), l = At(0, Qr, c - Qr);
6005
+ }), c = Math.max(Qr, et.now() - this.startTime), l = At(0, Qr, c - Qr);
6006
6006
  n.setWithVelocity(a.sample(Math.max(0, c - l)).value, a.sample(c).value, l), a.stop();
6007
6007
  }
6008
6008
  }
@@ -6056,7 +6056,7 @@ class s0 extends Ps {
6056
6056
  super(), this.stop = () => {
6057
6057
  var g, b;
6058
6058
  this._animation && (this._animation.stop(), (g = this.stopTimeline) == null || g.call(this)), (b = this.keyframeResolver) == null || b.cancel();
6059
- }, this.createdAt = Je.now();
6059
+ }, this.createdAt = et.now();
6060
6060
  const f = {
6061
6061
  autoplay: t,
6062
6062
  delay: n,
@@ -6075,7 +6075,7 @@ class s0 extends Ps {
6075
6075
  var b, v;
6076
6076
  this.keyframeResolver = void 0;
6077
6077
  const { name: o, type: s, velocity: a, delay: c, isHandoff: l, onUpdate: u } = i;
6078
- this.resolvedAt = Je.now(), t0(t, o, s, a) || ((Ut.instantAnimations || !c) && (u == null || u(Ms(t, i, n))), t[0] = t[t.length - 1], Vo(i), i.repeat = 0);
6078
+ this.resolvedAt = et.now(), t0(t, o, s, a) || ((Ut.instantAnimations || !c) && (u == null || u(Ms(t, i, n))), t[0] = t[t.length - 1], Vo(i), i.repeat = 0);
6079
6079
  const f = {
6080
6080
  startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > o0 ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
6081
6081
  finalKeyframe: n,
@@ -6087,7 +6087,7 @@ class s0 extends Ps {
6087
6087
  }) : new As(f);
6088
6088
  g.finished.then(() => {
6089
6089
  this.notifyFinished();
6090
- }).catch(ht), this.pendingTimeline && (this.stopTimeline = g.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = g;
6090
+ }).catch(mt), this.pendingTimeline && (this.stopTimeline = g.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = g;
6091
6091
  }
6092
6092
  get finished() {
6093
6093
  return this._animation ? this.animation.finished : this._finished;
@@ -6221,7 +6221,7 @@ const Rs = (e, t, n, i = {}, r, o) => (s) => {
6221
6221
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Vo(u), u.delay === 0 && (d = !0)), (Ut.instantAnimations || Ut.skipAnimations || r != null && r.shouldSkipAnimations) && (d = !0, Vo(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !o && t.get() !== void 0) {
6222
6222
  const f = p0(u.keyframes, a);
6223
6223
  if (f !== void 0) {
6224
- Se.update(() => {
6224
+ xe.update(() => {
6225
6225
  u.onUpdate(f), u.onComplete();
6226
6226
  });
6227
6227
  return;
@@ -6269,14 +6269,14 @@ class v0 {
6269
6269
  constructor(t, n = {}) {
6270
6270
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
6271
6271
  var o;
6272
- const r = Je.now();
6272
+ const r = et.now();
6273
6273
  if (this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && ((o = this.events.change) == null || o.notify(this.current), this.dependents))
6274
6274
  for (const s of this.dependents)
6275
6275
  s.dirty();
6276
6276
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
6277
6277
  }
6278
6278
  setCurrent(t) {
6279
- this.current = t, this.updatedAt = Je.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = y0(this.current));
6279
+ this.current = t, this.updatedAt = et.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = y0(this.current));
6280
6280
  }
6281
6281
  setPrevFrameValue(t = this.current) {
6282
6282
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -6328,7 +6328,7 @@ class v0 {
6328
6328
  this.events[t] || (this.events[t] = new vs());
6329
6329
  const i = this.events[t].add(n);
6330
6330
  return t === "change" ? () => {
6331
- i(), Se.read(() => {
6331
+ i(), xe.read(() => {
6332
6332
  this.events.change.getSize() || this.stop();
6333
6333
  });
6334
6334
  } : i;
@@ -6405,7 +6405,7 @@ class v0 {
6405
6405
  * @public
6406
6406
  */
6407
6407
  getVelocity() {
6408
- const t = Je.now();
6408
+ const t = et.now();
6409
6409
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > rc)
6410
6410
  return 0;
6411
6411
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, rc);
@@ -6480,9 +6480,9 @@ function S0(e, t) {
6480
6480
  b0(e, s, a);
6481
6481
  }
6482
6482
  }
6483
- const Ze = (e) => !!(e && e.getVelocity);
6483
+ const Qe = (e) => !!(e && e.getVelocity);
6484
6484
  function x0(e) {
6485
- return !!(Ze(e) && e.add);
6485
+ return !!(Qe(e) && e.add);
6486
6486
  }
6487
6487
  function Fo(e, t) {
6488
6488
  const n = e.getValue("willChange");
@@ -6524,7 +6524,7 @@ function $u(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
6524
6524
  if (window.MotionHandoffAnimation) {
6525
6525
  const M = _u(e);
6526
6526
  if (M) {
6527
- const y = window.MotionHandoffAnimation(M, f, Se);
6527
+ const y = window.MotionHandoffAnimation(M, f, xe);
6528
6528
  y !== null && (g.startTime = y, v = !0);
6529
6529
  }
6530
6530
  }
@@ -6535,7 +6535,7 @@ function $u(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
6535
6535
  w && l.push(w);
6536
6536
  }
6537
6537
  return s && Promise.all(l).then(() => {
6538
- Se.update(() => {
6538
+ xe.update(() => {
6539
6539
  s && S0(e, s);
6540
6540
  });
6541
6541
  }), l;
@@ -6698,17 +6698,17 @@ const R0 = /\b([a-z-]*)\(.*?\)/gu, Uo = {
6698
6698
  }, B0 = {
6699
6699
  ...Ds,
6700
6700
  // Color props
6701
- color: Ne,
6702
- backgroundColor: Ne,
6703
- outlineColor: Ne,
6704
- fill: Ne,
6705
- stroke: Ne,
6701
+ color: ze,
6702
+ backgroundColor: ze,
6703
+ outlineColor: ze,
6704
+ fill: ze,
6705
+ stroke: ze,
6706
6706
  // Border props
6707
- borderColor: Ne,
6708
- borderTopColor: Ne,
6709
- borderRightColor: Ne,
6710
- borderBottomColor: Ne,
6711
- borderLeftColor: Ne,
6707
+ borderColor: ze,
6708
+ borderTopColor: ze,
6709
+ borderRightColor: ze,
6710
+ borderBottomColor: ze,
6711
+ borderLeftColor: ze,
6712
6712
  filter: Uo,
6713
6713
  WebkitFilter: Uo
6714
6714
  }, qu = (e) => B0[e];
@@ -6909,7 +6909,7 @@ function ed(e) {
6909
6909
  function G0(e) {
6910
6910
  return ed(e) && e.tagName === "svg";
6911
6911
  }
6912
- const K0 = [...Ku, Ne, Kt], q0 = (e) => K0.find(Gu(e)), uc = () => ({
6912
+ const K0 = [...Ku, ze, Kt], q0 = (e) => K0.find(Gu(e)), uc = () => ({
6913
6913
  translate: 0,
6914
6914
  scale: 1,
6915
6915
  origin: 0,
@@ -6917,7 +6917,7 @@ const K0 = [...Ku, Ne, Kt], q0 = (e) => K0.find(Gu(e)), uc = () => ({
6917
6917
  }), Mn = () => ({
6918
6918
  x: uc(),
6919
6919
  y: uc()
6920
- }), dc = () => ({ min: 0, max: 0 }), ze = () => ({
6920
+ }), dc = () => ({ min: 0, max: 0 }), He = () => ({
6921
6921
  x: dc(),
6922
6922
  y: dc()
6923
6923
  }), Oo = { current: null }, td = { current: !1 }, Y0 = typeof window != "undefined";
@@ -6954,9 +6954,9 @@ function nd(e) {
6954
6954
  function Q0(e, t, n) {
6955
6955
  for (const i in t) {
6956
6956
  const r = t[i], o = n[i];
6957
- if (Ze(r))
6957
+ if (Qe(r))
6958
6958
  e.addValue(i, r);
6959
- else if (Ze(o))
6959
+ else if (Qe(o))
6960
6960
  e.addValue(i, Dn(r, { owner: e }));
6961
6961
  else if (o !== r)
6962
6962
  if (e.hasValue(i)) {
@@ -7002,15 +7002,15 @@ class eg {
7002
7002
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Cs, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
7003
7003
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
7004
7004
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
7005
- const m = Je.now();
7006
- this.renderScheduledAt < m && (this.renderScheduledAt = m, Se.render(this.render, !1, !0));
7005
+ const m = et.now();
7006
+ this.renderScheduledAt < m && (this.renderScheduledAt = m, xe.render(this.render, !1, !0));
7007
7007
  };
7008
7008
  const { latestValues: l, renderState: u } = a;
7009
7009
  this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = o, this.options = c, this.blockInitialAnimation = !!s, this.isControllingVariants = Nr(n), this.isVariantNode = nd(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
7010
7010
  const { willChange: d, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
7011
7011
  for (const m in f) {
7012
7012
  const p = f[m];
7013
- l[m] !== void 0 && Ze(p) && p.set(l[m]);
7013
+ l[m] !== void 0 && Qe(p) && p.set(l[m]);
7014
7014
  }
7015
7015
  }
7016
7016
  mount(t) {
@@ -7040,7 +7040,7 @@ class eg {
7040
7040
  const i = On.has(t);
7041
7041
  i && this.onBindTransform && this.onBindTransform();
7042
7042
  const r = n.on("change", (s) => {
7043
- this.latestValues[t] = s, this.props.onUpdate && Se.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
7043
+ this.latestValues[t] = s, this.props.onUpdate && xe.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
7044
7044
  });
7045
7045
  let o;
7046
7046
  typeof window != "undefined" && window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
@@ -7072,7 +7072,7 @@ class eg {
7072
7072
  * removed with a re-render to work.
7073
7073
  */
7074
7074
  measureViewportBox() {
7075
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ze();
7075
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : He();
7076
7076
  }
7077
7077
  getStaticValue(t) {
7078
7078
  return this.latestValues[t];
@@ -7158,7 +7158,7 @@ class eg {
7158
7158
  readValue(t, n) {
7159
7159
  var r;
7160
7160
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) != null ? r : this.readValueFromInstance(this.current, t, this.options);
7161
- return i != null && (typeof i == "string" && (au(i) || lu(i)) ? i = parseFloat(i) : !q0(i) && Kt.test(n) && (i = Yu(t, n)), this.setBaseTarget(t, Ze(i) ? i.get() : i)), Ze(i) ? i.get() : i;
7161
+ return i != null && (typeof i == "string" && (au(i) || lu(i)) ? i = parseFloat(i) : !q0(i) && Kt.test(n) && (i = Yu(t, n)), this.setBaseTarget(t, Qe(i) ? i.get() : i)), Qe(i) ? i.get() : i;
7162
7162
  }
7163
7163
  /**
7164
7164
  * Set the base target to later animate back to. This is currently
@@ -7182,7 +7182,7 @@ class eg {
7182
7182
  if (n && i !== void 0)
7183
7183
  return i;
7184
7184
  const r = this.getBaseTargetFromProps(this.props, t);
7185
- return r !== void 0 && !Ze(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
7185
+ return r !== void 0 && !Qe(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
7186
7186
  }
7187
7187
  on(t, n) {
7188
7188
  return this.events[t] || (this.events[t] = new vs()), this.events[t].add(n);
@@ -7211,7 +7211,7 @@ class rd extends eg {
7211
7211
  handleChildMotionValue() {
7212
7212
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
7213
7213
  const { children: t } = this.props;
7214
- Ze(t) && (this.childSubscription = t.on("change", (n) => {
7214
+ Qe(t) && (this.childSubscription = t.on("change", (n) => {
7215
7215
  this.current && (this.current.textContent = `${n}`);
7216
7216
  }));
7217
7217
  }
@@ -7292,7 +7292,7 @@ function Pn(e, t) {
7292
7292
  e.min = e.min + t, e.max = e.max + t;
7293
7293
  }
7294
7294
  function yc(e, t, n, i, r = 0.5) {
7295
- const o = Ie(e.min, e.max, r);
7295
+ const o = Re(e.min, e.max, r);
7296
7296
  Wo(e, t, n, o, i);
7297
7297
  }
7298
7298
  function An(e, t) {
@@ -7388,7 +7388,7 @@ const Qn = {
7388
7388
  return i;
7389
7389
  const o = Kt.createTransformer(e), s = typeof r[0] != "number" ? 1 : 0, a = n.x.scale * t.x, c = n.y.scale * t.y;
7390
7390
  r[0 + s] /= a, r[1 + s] /= c;
7391
- const l = Ie(a, c, 0.5);
7391
+ const l = Re(a, c, 0.5);
7392
7392
  return typeof r[2 + s] == "number" && (r[2 + s] /= l), typeof r[3 + s] == "number" && (r[3 + s] /= l), o(r);
7393
7393
  }
7394
7394
  }, _o = {
@@ -7416,7 +7416,7 @@ function Hs(e, t, n) {
7416
7416
  if (!i)
7417
7417
  return o;
7418
7418
  for (const a in i)
7419
- (Ze(i[a]) || r && Ze(r[a]) || ud(a, e) || ((s = n == null ? void 0 : n.getValue(a)) == null ? void 0 : s.liveStyle) !== void 0) && (o[a] = i[a]);
7419
+ (Qe(i[a]) || r && Qe(r[a]) || ud(a, e) || ((s = n == null ? void 0 : n.getValue(a)) == null ? void 0 : s.liveStyle) !== void 0) && (o[a] = i[a]);
7420
7420
  return o;
7421
7421
  }
7422
7422
  function lg(e) {
@@ -7518,7 +7518,7 @@ function pg(e, t, n, i) {
7518
7518
  function md(e, t, n) {
7519
7519
  const i = Hs(e, t, n);
7520
7520
  for (const r in e)
7521
- if (Ze(e[r]) || Ze(t[r])) {
7521
+ if (Qe(e[r]) || Qe(t[r])) {
7522
7522
  const o = Hn.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
7523
7523
  i[o] = e[r];
7524
7524
  }
@@ -7526,7 +7526,7 @@ function md(e, t, n) {
7526
7526
  }
7527
7527
  class gg extends rd {
7528
7528
  constructor() {
7529
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ze;
7529
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = He;
7530
7530
  }
7531
7531
  getBaseTargetFromProps(t, n) {
7532
7532
  return t[n];
@@ -7715,26 +7715,26 @@ function Sc(e, t) {
7715
7715
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
7716
7716
  }
7717
7717
  const yd = 1e-4, Tg = 1 - yd, kg = 1 + yd, vd = 0.01, Eg = 0 - vd, Mg = 0 + vd;
7718
- function et(e) {
7718
+ function tt(e) {
7719
7719
  return e.max - e.min;
7720
7720
  }
7721
7721
  function Pg(e, t, n) {
7722
7722
  return Math.abs(e - t) <= n;
7723
7723
  }
7724
7724
  function xc(e, t, n, i = 0.5) {
7725
- e.origin = i, e.originPoint = Ie(t.min, t.max, e.origin), e.scale = et(n) / et(t), e.translate = Ie(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Tg && e.scale <= kg || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Eg && e.translate <= Mg || isNaN(e.translate)) && (e.translate = 0);
7725
+ e.origin = i, e.originPoint = Re(t.min, t.max, e.origin), e.scale = tt(n) / tt(t), e.translate = Re(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Tg && e.scale <= kg || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Eg && e.translate <= Mg || isNaN(e.translate)) && (e.translate = 0);
7726
7726
  }
7727
7727
  function fi(e, t, n, i) {
7728
7728
  xc(e.x, t.x, n.x, i ? i.originX : void 0), xc(e.y, t.y, n.y, i ? i.originY : void 0);
7729
7729
  }
7730
7730
  function Tc(e, t, n) {
7731
- e.min = n.min + t.min, e.max = e.min + et(t);
7731
+ e.min = n.min + t.min, e.max = e.min + tt(t);
7732
7732
  }
7733
7733
  function Ag(e, t, n) {
7734
7734
  Tc(e.x, t.x, n.x), Tc(e.y, t.y, n.y);
7735
7735
  }
7736
7736
  function kc(e, t, n) {
7737
- e.min = t.min - n.min, e.max = e.min + et(t);
7737
+ e.min = t.min - n.min, e.max = e.min + tt(t);
7738
7738
  }
7739
7739
  function dr(e, t, n) {
7740
7740
  kc(e.x, t.x, n.x), kc(e.y, t.y, n.y);
@@ -7743,9 +7743,9 @@ function Ec(e, t, n, i, r) {
7743
7743
  return e -= t, e = ur(e, 1 / n, i), r !== void 0 && (e = ur(e, 1 / r, i)), e;
7744
7744
  }
7745
7745
  function Cg(e, t = 0, n = 1, i = 0.5, r, o = e, s = e) {
7746
- if (Mt.test(t) && (t = parseFloat(t), t = Ie(s.min, s.max, t / 100) - s.min), typeof t != "number")
7746
+ if (Mt.test(t) && (t = parseFloat(t), t = Re(s.min, s.max, t / 100) - s.min), typeof t != "number")
7747
7747
  return;
7748
- let a = Ie(o.min, o.max, i);
7748
+ let a = Re(o.min, o.max, i);
7749
7749
  e === o && (a -= t), e.min = Ec(e.min, t, n, a, r), e.max = Ec(e.max, t, n, a, r);
7750
7750
  }
7751
7751
  function Mc(e, t, [n, i, r], o, s) {
@@ -7774,12 +7774,12 @@ function wd(e, t) {
7774
7774
  return Ic(e.x, t.x) && Ic(e.y, t.y);
7775
7775
  }
7776
7776
  function Rc(e) {
7777
- return et(e.x) / et(e.y);
7777
+ return tt(e.x) / tt(e.y);
7778
7778
  }
7779
7779
  function Lc(e, t) {
7780
7780
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
7781
7781
  }
7782
- function ut(e) {
7782
+ function dt(e) {
7783
7783
  return [e("x"), e("y")];
7784
7784
  }
7785
7785
  function Bg(e, t, n) {
@@ -7795,25 +7795,25 @@ function Bg(e, t, n) {
7795
7795
  const Sd = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Dg = Sd.length, Bc = (e) => typeof e == "string" ? parseFloat(e) : e, Dc = (e) => typeof e == "number" || J.test(e);
7796
7796
  function Vg(e, t, n, i, r, o) {
7797
7797
  var s, a, c, l;
7798
- r ? (e.opacity = Ie(0, (s = n.opacity) != null ? s : 1, Ng(i)), e.opacityExit = Ie((a = t.opacity) != null ? a : 1, 0, Fg(i))) : o && (e.opacity = Ie((c = t.opacity) != null ? c : 1, (l = n.opacity) != null ? l : 1, i));
7798
+ r ? (e.opacity = Re(0, (s = n.opacity) != null ? s : 1, Ng(i)), e.opacityExit = Re((a = t.opacity) != null ? a : 1, 0, Fg(i))) : o && (e.opacity = Re((c = t.opacity) != null ? c : 1, (l = n.opacity) != null ? l : 1, i));
7799
7799
  for (let u = 0; u < Dg; u++) {
7800
7800
  const d = `border${Sd[u]}Radius`;
7801
7801
  let f = Vc(t, d), m = Vc(n, d);
7802
7802
  if (f === void 0 && m === void 0)
7803
7803
  continue;
7804
- f || (f = 0), m || (m = 0), f === 0 || m === 0 || Dc(f) === Dc(m) ? (e[d] = Math.max(Ie(Bc(f), Bc(m), i), 0), (Mt.test(m) || Mt.test(f)) && (e[d] += "%")) : e[d] = m;
7804
+ f || (f = 0), m || (m = 0), f === 0 || m === 0 || Dc(f) === Dc(m) ? (e[d] = Math.max(Re(Bc(f), Bc(m), i), 0), (Mt.test(m) || Mt.test(f)) && (e[d] += "%")) : e[d] = m;
7805
7805
  }
7806
- (t.rotate || n.rotate) && (e.rotate = Ie(t.rotate || 0, n.rotate || 0, i));
7806
+ (t.rotate || n.rotate) && (e.rotate = Re(t.rotate || 0, n.rotate || 0, i));
7807
7807
  }
7808
7808
  function Vc(e, t) {
7809
7809
  return e[t] !== void 0 ? e[t] : e.borderRadius;
7810
7810
  }
7811
- const Ng = /* @__PURE__ */ xd(0, 0.5, yu), Fg = /* @__PURE__ */ xd(0.5, 0.95, ht);
7811
+ const Ng = /* @__PURE__ */ xd(0, 0.5, yu), Fg = /* @__PURE__ */ xd(0.5, 0.95, mt);
7812
7812
  function xd(e, t, n) {
7813
7813
  return (i) => i < e ? 0 : i > t ? 1 : n(/* @__PURE__ */ gi(e, t, i));
7814
7814
  }
7815
7815
  function zg(e, t, n) {
7816
- const i = Ze(e) ? e : Dn(e);
7816
+ const i = Qe(e) ? e : Dn(e);
7817
7817
  return i.start(Rs("", i, t, n)), i.animation;
7818
7818
  }
7819
7819
  function wi(e, t, n, i = { passive: !0 }) {
@@ -7835,14 +7835,14 @@ class Hg {
7835
7835
  }
7836
7836
  }
7837
7837
  function Og(e, t) {
7838
- const n = Je.now(), i = ({ timestamp: r }) => {
7838
+ const n = et.now(), i = ({ timestamp: r }) => {
7839
7839
  const o = r - n;
7840
7840
  o >= t && (Gt(i), e(o - t));
7841
7841
  };
7842
- return Se.setup(i, !0), () => Gt(i);
7842
+ return xe.setup(i, !0), () => Gt(i);
7843
7843
  }
7844
7844
  function Qi(e) {
7845
- return Ze(e) ? e.get() : e;
7845
+ return Qe(e) ? e.get() : e;
7846
7846
  }
7847
7847
  class jg {
7848
7848
  constructor() {
@@ -7926,7 +7926,7 @@ function Td(e) {
7926
7926
  const n = _u(t);
7927
7927
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
7928
7928
  const { layout: r, layoutId: o } = e.options;
7929
- window.MotionCancelOptimisedAnimation(n, "transform", Se, !(r || o));
7929
+ window.MotionCancelOptimisedAnimation(n, "transform", xe, !(r || o));
7930
7930
  }
7931
7931
  const { parent: i } = e;
7932
7932
  i && !i.hasCheckedOptimisedAppear && Td(i);
@@ -7964,7 +7964,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
7964
7964
  if (l && !l.current && l.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || a) && (this.isLayoutDirty = !0), e) {
7965
7965
  let u, d = 0;
7966
7966
  const f = () => this.root.updateBlockedByResize = !1;
7967
- Se.read(() => {
7967
+ xe.read(() => {
7968
7968
  d = window.innerWidth;
7969
7969
  }), e(s, () => {
7970
7970
  const m = window.innerWidth;
@@ -8044,8 +8044,8 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8044
8044
  return;
8045
8045
  }
8046
8046
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Xg), this.nodes.forEach($g), this.nodes.forEach(Gg)) : this.nodes.forEach(Fc), this.clearAllSnapshots();
8047
- const a = Je.now();
8048
- qe.delta = At(0, 1e3 / 60, a - qe.timestamp), qe.timestamp = a, qe.isProcessing = !0, Kr.update.process(qe), Kr.preRender.process(qe), Kr.render.process(qe), qe.isProcessing = !1;
8047
+ const a = et.now();
8048
+ Ye.delta = At(0, 1e3 / 60, a - Ye.timestamp), Ye.timestamp = a, Ye.isProcessing = !0, Kr.update.process(Ye), Kr.preRender.process(Ye), Kr.render.process(Ye), Ye.isProcessing = !1;
8049
8049
  }
8050
8050
  didUpdate() {
8051
8051
  this.updateScheduled || (this.updateScheduled = !0, Vs.read(this.scheduleUpdate));
@@ -8054,10 +8054,10 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8054
8054
  this.nodes.forEach(Yg), this.sharedNodes.forEach(ey);
8055
8055
  }
8056
8056
  scheduleUpdateProjection() {
8057
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Se.preRender(this.updateProjection, !1, !0));
8057
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, xe.preRender(this.updateProjection, !1, !0));
8058
8058
  }
8059
8059
  scheduleCheckAfterUnmount() {
8060
- Se.postRender(() => {
8060
+ xe.postRender(() => {
8061
8061
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
8062
8062
  });
8063
8063
  }
@@ -8065,7 +8065,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8065
8065
  * Update measurements
8066
8066
  */
8067
8067
  updateSnapshot() {
8068
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !et(this.snapshot.measuredBox.x) && !et(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
8068
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !tt(this.snapshot.measuredBox.x) && !tt(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
8069
8069
  }
8070
8070
  updateLayout() {
8071
8071
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -8074,7 +8074,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8074
8074
  for (let c = 0; c < this.path.length; c++)
8075
8075
  this.path[c].updateScroll();
8076
8076
  const s = this.layout;
8077
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = ze(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
8077
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = He(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
8078
8078
  const { visualElement: a } = this.options;
8079
8079
  a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
8080
8080
  }
@@ -8112,7 +8112,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8112
8112
  var l;
8113
8113
  const { visualElement: s } = this.options;
8114
8114
  if (!s)
8115
- return ze();
8115
+ return He();
8116
8116
  const a = s.measureViewportBox();
8117
8117
  if (!(((l = this.scroll) == null ? void 0 : l.wasRoot) || this.path.some(oy))) {
8118
8118
  const { scroll: u } = this.root;
@@ -8122,7 +8122,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8122
8122
  }
8123
8123
  removeElementScroll(s) {
8124
8124
  var c;
8125
- const a = ze();
8125
+ const a = He();
8126
8126
  if (vt(a, s), (c = this.scroll) != null && c.wasRoot)
8127
8127
  return a;
8128
8128
  for (let l = 0; l < this.path.length; l++) {
@@ -8132,7 +8132,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8132
8132
  return a;
8133
8133
  }
8134
8134
  applyTransform(s, a = !1) {
8135
- const c = ze();
8135
+ const c = He();
8136
8136
  vt(c, s);
8137
8137
  for (let l = 0; l < this.path.length; l++) {
8138
8138
  const u = this.path[l];
@@ -8144,14 +8144,14 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8144
8144
  return cn(this.latestValues) && An(c, this.latestValues), c;
8145
8145
  }
8146
8146
  removeTransform(s) {
8147
- const a = ze();
8147
+ const a = He();
8148
8148
  vt(a, s);
8149
8149
  for (let c = 0; c < this.path.length; c++) {
8150
8150
  const l = this.path[c];
8151
8151
  if (!l.instance || !cn(l.latestValues))
8152
8152
  continue;
8153
8153
  jo(l.latestValues) && l.updateSnapshot();
8154
- const u = ze(), d = l.measurePageBox();
8154
+ const u = He(), d = l.measurePageBox();
8155
8155
  vt(u, d), Pc(a, l.latestValues, l.snapshot ? l.snapshot.layoutBox : void 0, u);
8156
8156
  }
8157
8157
  return cn(this.latestValues) && Pc(a, this.latestValues), a;
@@ -8170,7 +8170,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8170
8170
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
8171
8171
  }
8172
8172
  forceRelativeParentToResolveTarget() {
8173
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== qe.timestamp && this.relativeParent.resolveTargetDelta(!0);
8173
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Ye.timestamp && this.relativeParent.resolveTargetDelta(!0);
8174
8174
  }
8175
8175
  resolveTargetDelta(s = !1) {
8176
8176
  var m;
@@ -8182,9 +8182,9 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8182
8182
  const { layout: u, layoutId: d } = this.options;
8183
8183
  if (!this.layout || !(u || d))
8184
8184
  return;
8185
- this.resolvedRelativeTargetAt = qe.timestamp;
8185
+ this.resolvedRelativeTargetAt = Ye.timestamp;
8186
8186
  const f = this.getClosestProjectingParent();
8187
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ze(), this.targetWithTransforms = ze()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ag(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : vt(this.target, this.layout.layoutBox), ad(this.target, this.targetDelta)) : vt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
8187
+ f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = He(), this.targetWithTransforms = He()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ag(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : vt(this.target, this.layout.layoutBox), ad(this.target, this.targetDelta)) : vt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
8188
8188
  }
8189
8189
  getClosestProjectingParent() {
8190
8190
  if (!(!this.parent || jo(this.parent.latestValues) || sd(this.parent.latestValues)))
@@ -8194,7 +8194,7 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8194
8194
  return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
8195
8195
  }
8196
8196
  createRelativeTarget(s, a, c) {
8197
- this.relativeParent = s, this.linkedParentVersion = s.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ze(), this.relativeTargetOrigin = ze(), dr(this.relativeTargetOrigin, a, c), vt(this.relativeTarget, this.relativeTargetOrigin);
8197
+ this.relativeParent = s, this.linkedParentVersion = s.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = He(), this.relativeTargetOrigin = He(), dr(this.relativeTargetOrigin, a, c), vt(this.relativeTarget, this.relativeTargetOrigin);
8198
8198
  }
8199
8199
  removeRelativeTarget() {
8200
8200
  this.relativeParent = this.relativeTarget = void 0;
@@ -8203,14 +8203,14 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8203
8203
  var p;
8204
8204
  const s = this.getLead(), a = !!this.resumingFrom || this !== s;
8205
8205
  let c = !0;
8206
- if ((this.isProjectionDirty || (p = this.parent) != null && p.isProjectionDirty) && (c = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === qe.timestamp && (c = !1), c)
8206
+ if ((this.isProjectionDirty || (p = this.parent) != null && p.isProjectionDirty) && (c = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === Ye.timestamp && (c = !1), c)
8207
8207
  return;
8208
8208
  const { layout: l, layoutId: u } = this.options;
8209
8209
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(l || u))
8210
8210
  return;
8211
8211
  vt(this.layoutCorrected, this.layout.layoutBox);
8212
8212
  const d = this.treeScale.x, f = this.treeScale.y;
8213
- ig(this.layoutCorrected, this.treeScale, this.path, a), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = ze());
8213
+ ig(this.layoutCorrected, this.treeScale, this.path, a), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = He());
8214
8214
  const { target: m } = s;
8215
8215
  if (!m) {
8216
8216
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -8238,17 +8238,17 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8238
8238
  setAnimationOrigin(s, a = !1) {
8239
8239
  const c = this.snapshot, l = c ? c.latestValues : {}, u = { ...this.latestValues }, d = Mn();
8240
8240
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
8241
- const f = ze(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, g = m !== p, b = this.getStack(), v = !b || b.members.length <= 1, k = !!(g && !v && this.options.crossfade === !0 && !this.path.some(ny));
8241
+ const f = He(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, g = m !== p, b = this.getStack(), v = !b || b.members.length <= 1, k = !!(g && !v && this.options.crossfade === !0 && !this.path.some(ny));
8242
8242
  this.animationProgress = 0;
8243
8243
  let w;
8244
8244
  this.mixTargetDelta = (M) => {
8245
8245
  const y = M / 1e3;
8246
- Uc(d.x, s.x, y), Uc(d.y, s.y, y), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (dr(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ty(this.relativeTarget, this.relativeTargetOrigin, f, y), w && Lg(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = ze()), vt(w, this.relativeTarget)), g && (this.animationValues = u, Vg(u, l, this.latestValues, y, k, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
8246
+ Uc(d.x, s.x, y), Uc(d.y, s.y, y), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (dr(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ty(this.relativeTarget, this.relativeTargetOrigin, f, y), w && Lg(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = He()), vt(w, this.relativeTarget)), g && (this.animationValues = u, Vg(u, l, this.latestValues, y, k, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
8247
8247
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
8248
8248
  }
8249
8249
  startAnimation(s) {
8250
8250
  var a, c, l;
8251
- this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (l = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || l.stop(), this.pendingAnimation && (Gt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Se.update(() => {
8251
+ this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (l = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || l.stop(), this.pendingAnimation && (Gt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = xe.update(() => {
8252
8252
  Ji.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Dn(0)), this.currentAnimation = zg(this.motionValue, [0, 1e3], {
8253
8253
  ...s,
8254
8254
  velocity: 0,
@@ -8277,10 +8277,10 @@ function kd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
8277
8277
  let { targetWithTransforms: a, target: c, layout: l, latestValues: u } = s;
8278
8278
  if (!(!a || !c || !l)) {
8279
8279
  if (this !== s && this.layout && l && Ed(this.options.animationType, this.layout.layoutBox, l.layoutBox)) {
8280
- c = this.target || ze();
8281
- const d = et(this.layout.layoutBox.x);
8280
+ c = this.target || He();
8281
+ const d = tt(this.layout.layoutBox.x);
8282
8282
  c.x.min = s.target.x.min, c.x.max = c.x.min + d;
8283
- const f = et(this.layout.layoutBox.y);
8283
+ const f = tt(this.layout.layoutBox.y);
8284
8284
  c.y.min = s.target.y.min, c.y.max = c.y.min + f;
8285
8285
  }
8286
8286
  vt(a, c), An(a, u), fi(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
@@ -8396,11 +8396,11 @@ function Gg(e) {
8396
8396
  const t = ((n = e.resumeFrom) == null ? void 0 : n.snapshot) || e.snapshot;
8397
8397
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
8398
8398
  const { layoutBox: i, measuredBox: r } = e.layout, { animationType: o } = e.options, s = t.source !== e.layout.source;
8399
- o === "size" ? ut((d) => {
8400
- const f = s ? t.measuredBox[d] : t.layoutBox[d], m = et(f);
8399
+ o === "size" ? dt((d) => {
8400
+ const f = s ? t.measuredBox[d] : t.layoutBox[d], m = tt(f);
8401
8401
  f.min = i[d].min, f.max = f.min + m;
8402
- }) : Ed(o, t.layoutBox, i) && ut((d) => {
8403
- const f = s ? t.measuredBox[d] : t.layoutBox[d], m = et(i[d]);
8402
+ }) : Ed(o, t.layoutBox, i) && dt((d) => {
8403
+ const f = s ? t.measuredBox[d] : t.layoutBox[d], m = tt(i[d]);
8404
8404
  f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + m);
8405
8405
  });
8406
8406
  const a = Mn();
@@ -8414,9 +8414,9 @@ function Gg(e) {
8414
8414
  if (d && !d.resumeFrom) {
8415
8415
  const { snapshot: f, layout: m } = d;
8416
8416
  if (f && m) {
8417
- const p = ze();
8417
+ const p = He();
8418
8418
  dr(p, t.layoutBox, f.layoutBox);
8419
- const g = ze();
8419
+ const g = He();
8420
8420
  dr(g, i, m.layoutBox), wd(p, g) || (u = !0), d.options.layoutRoot && (e.relativeTarget = g, e.relativeTargetOrigin = p, e.relativeParent = d);
8421
8421
  }
8422
8422
  }
@@ -8470,10 +8470,10 @@ function ey(e) {
8470
8470
  e.removeLeadSnapshot();
8471
8471
  }
8472
8472
  function Uc(e, t, n) {
8473
- e.translate = Ie(t.translate, 0, n), e.scale = Ie(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
8473
+ e.translate = Re(t.translate, 0, n), e.scale = Re(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
8474
8474
  }
8475
8475
  function Hc(e, t, n, i) {
8476
- e.min = Ie(t.min, n.min, i), e.max = Ie(t.max, n.max, i);
8476
+ e.min = Re(t.min, n.min, i), e.max = Re(t.max, n.max, i);
8477
8477
  }
8478
8478
  function ty(e, t, n, i) {
8479
8479
  Hc(e.x, t.x, n.x, i), Hc(e.y, t.y, n.y, i);
@@ -8484,7 +8484,7 @@ function ny(e) {
8484
8484
  const iy = {
8485
8485
  duration: 0.45,
8486
8486
  ease: [0.4, 0, 0.1, 1]
8487
- }, Oc = (e) => typeof navigator != "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), jc = Oc("applewebkit/") && !Oc("chrome/") ? Math.round : ht;
8487
+ }, Oc = (e) => typeof navigator != "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), jc = Oc("applewebkit/") && !Oc("chrome/") ? Math.round : mt;
8488
8488
  function Wc(e) {
8489
8489
  e.min = jc(e.min), e.max = jc(e.max);
8490
8490
  }
@@ -8582,7 +8582,7 @@ function uy({ children: e, isPresent: t, anchorX: n, anchorY: i, root: r }) {
8582
8582
  left: 0,
8583
8583
  right: 0,
8584
8584
  bottom: 0
8585
- }), { nonce: c } = _e(Os), l = (f = (d = e.props) == null ? void 0 : d.ref) != null ? f : e == null ? void 0 : e.ref, u = cy(s, l);
8585
+ }), { nonce: c } = $e(Os), l = (f = (d = e.props) == null ? void 0 : d.ref) != null ? f : e == null ? void 0 : e.ref, u = cy(s, l);
8586
8586
  return ss(() => {
8587
8587
  const { width: m, height: p, top: g, left: b, right: v, bottom: k } = a.current;
8588
8588
  if (t || !s.current || !m || !p)
@@ -8607,7 +8607,7 @@ function uy({ children: e, isPresent: t, anchorX: n, anchorY: i, root: r }) {
8607
8607
  }
8608
8608
  const dy = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: o, mode: s, anchorX: a, anchorY: c, root: l }) => {
8609
8609
  const u = hs(fy), d = os();
8610
- let f = !0, m = we(() => (f = !1, {
8610
+ let f = !0, m = Se(() => (f = !1, {
8611
8611
  id: d,
8612
8612
  initial: t,
8613
8613
  isPresent: n,
@@ -8621,7 +8621,7 @@ const dy = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom:
8621
8621
  },
8622
8622
  register: (p) => (u.set(p, !1), () => u.delete(p))
8623
8623
  }), [n, u, i]);
8624
- return o && f && (m = { ...m }), we(() => {
8624
+ return o && f && (m = { ...m }), Se(() => {
8625
8625
  u.forEach((p, g) => u.set(g, !1));
8626
8626
  }, [n]), Rr.useEffect(() => {
8627
8627
  !n && !u.size && i && i();
@@ -8631,7 +8631,7 @@ function fy() {
8631
8631
  return /* @__PURE__ */ new Map();
8632
8632
  }
8633
8633
  function Pd(e = !0) {
8634
- const t = _e(Dr);
8634
+ const t = $e(Dr);
8635
8635
  if (t === null)
8636
8636
  return [!0, null];
8637
8637
  const { isPresent: n, onExitComplete: i, register: r } = t, o = os();
@@ -8650,7 +8650,7 @@ function $c(e) {
8650
8650
  }), t;
8651
8651
  }
8652
8652
  const $o = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1, anchorX: a = "left", anchorY: c = "top", root: l }) => {
8653
- const [u, d] = Pd(s), f = we(() => $c(e), [e]), m = s && !u ? [] : f.map(Ui), p = j(!0), g = j(f), b = hs(() => /* @__PURE__ */ new Map()), v = j(/* @__PURE__ */ new Set()), [k, w] = oe(f), [M, y] = oe(f);
8653
+ const [u, d] = Pd(s), f = Se(() => $c(e), [e]), m = s && !u ? [] : f.map(Ui), p = j(!0), g = j(f), b = hs(() => /* @__PURE__ */ new Map()), v = j(/* @__PURE__ */ new Set()), [k, w] = oe(f), [M, y] = oe(f);
8654
8654
  su(() => {
8655
8655
  p.current = !1, g.current = f;
8656
8656
  for (let S = 0; S < M.length; S++) {
@@ -8667,7 +8667,7 @@ const $o = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presen
8667
8667
  }
8668
8668
  return o === "wait" && E.length && (S = E), y($c(S)), w(f), null;
8669
8669
  }
8670
- const { forceRender: T } = _e(fs);
8670
+ const { forceRender: T } = $e(fs);
8671
8671
  return h(pe, { children: M.map((S) => {
8672
8672
  const P = Ui(S), I = s && !u ? !1 : f === M || m.includes(P), R = () => {
8673
8673
  if (v.current.has(P))
@@ -8788,8 +8788,8 @@ function vy(e, t) {
8788
8788
  return e.inherit !== !1 ? t : {};
8789
8789
  }
8790
8790
  function by(e) {
8791
- const { initial: t, animate: n } = vy(e, _e(Fr));
8792
- return we(() => ({ initial: t, animate: n }), [qc(t), qc(n)]);
8791
+ const { initial: t, animate: n } = vy(e, $e(Fr));
8792
+ return Se(() => ({ initial: t, animate: n }), [qc(t), qc(n)]);
8793
8793
  }
8794
8794
  function qc(e) {
8795
8795
  return Array.isArray(e) ? e.join(" ") : e;
@@ -8802,10 +8802,10 @@ const js = () => ({
8802
8802
  });
8803
8803
  function Rd(e, t, n) {
8804
8804
  for (const i in t)
8805
- !Ze(t[i]) && !ud(i, n) && (e[i] = t[i]);
8805
+ !Qe(t[i]) && !ud(i, n) && (e[i] = t[i]);
8806
8806
  }
8807
8807
  function wy({ transformTemplate: e }, t) {
8808
- return we(() => {
8808
+ return Se(() => {
8809
8809
  const n = js();
8810
8810
  return Us(n, t, e), Object.assign({}, n.vars, n.style);
8811
8811
  }, [t]);
@@ -8823,7 +8823,7 @@ const Ld = () => ({
8823
8823
  attrs: {}
8824
8824
  });
8825
8825
  function Ty(e, t, n, i) {
8826
- const r = we(() => {
8826
+ const r = Se(() => {
8827
8827
  const o = Ld();
8828
8828
  return dd(o, t, hd(i), e.transformTemplate, e.style), {
8829
8829
  ...o.attrs,
@@ -8884,7 +8884,7 @@ function Ws(e) {
8884
8884
  );
8885
8885
  }
8886
8886
  function Ey(e, t, n, { latestValues: i }, r, o = !1, s) {
8887
- const c = ((s != null ? s : Ws(e)) ? Ty : xy)(t, i, r, e), l = yy(t, typeof e == "string", o), u = e !== Lr ? { ...l, ...c, ref: n } : {}, { children: d } = t, f = we(() => Ze(d) ? d.get() : d, [d]);
8887
+ const c = ((s != null ? s : Ws(e)) ? Ty : xy)(t, i, r, e), l = yy(t, typeof e == "string", o), u = e !== Lr ? { ...l, ...c, ref: n } : {}, { children: d } = t, f = Se(() => Qe(d) ? d.get() : d, [d]);
8888
8888
  return is(e, {
8889
8889
  ...u,
8890
8890
  children: f
@@ -8928,7 +8928,7 @@ function Py(e, t, n, i) {
8928
8928
  return r;
8929
8929
  }
8930
8930
  const Bd = (e) => (t, n) => {
8931
- const i = _e(Fr), r = _e(Dr), o = () => My(e, t, i, r);
8931
+ const i = $e(Fr), r = $e(Dr), o = () => My(e, t, i, r);
8932
8932
  return n ? o() : hs(o);
8933
8933
  }, Ay = /* @__PURE__ */ Bd({
8934
8934
  scrapeMotionValuesFromProps: Hs,
@@ -8961,7 +8961,7 @@ function ai(e) {
8961
8961
  }
8962
8962
  function Ly(e, t, n, i, r, o) {
8963
8963
  var w, M;
8964
- const { visualElement: s } = _e(Fr), a = _e(Ad), c = _e(Dr), l = _e(Os), u = l.reducedMotion, d = l.skipAnimations, f = j(null), m = j(!1);
8964
+ const { visualElement: s } = $e(Fr), a = $e(Ad), c = $e(Dr), l = $e(Os), u = l.reducedMotion, d = l.skipAnimations, f = j(null), m = j(!1);
8965
8965
  i = i || a.renderer, !f.current && i && (f.current = i(e, {
8966
8966
  visualState: t,
8967
8967
  parent: s,
@@ -8972,7 +8972,7 @@ function Ly(e, t, n, i, r, o) {
8972
8972
  skipAnimations: d,
8973
8973
  isSVG: o
8974
8974
  }), m.current && f.current && (f.current.manuallyAnimateOnMount = !0));
8975
- const p = f.current, g = _e(Dd);
8975
+ const p = f.current, g = $e(Dd);
8976
8976
  p && !p.projection && r && (p.type === "html" || p.type === "svg") && By(f.current, n, r, g);
8977
8977
  const b = j(!1);
8978
8978
  ss(() => {
@@ -9020,7 +9020,7 @@ function ro(e, { forwardMotionProps: t = !1, type: n } = {}, i, r) {
9020
9020
  function a(d, f) {
9021
9021
  let m;
9022
9022
  const p = {
9023
- ..._e(Os),
9023
+ ...$e(Os),
9024
9024
  ...d,
9025
9025
  layoutId: Dy(d)
9026
9026
  }, { isStatic: g } = p, b = by(d), v = s(d, g);
@@ -9036,11 +9036,11 @@ function ro(e, { forwardMotionProps: t = !1, type: n } = {}, i, r) {
9036
9036
  return c[Iy] = e, c;
9037
9037
  }
9038
9038
  function Dy({ layoutId: e }) {
9039
- const t = _e(fs).id;
9039
+ const t = $e(fs).id;
9040
9040
  return t && e !== void 0 ? t + "-" + e : e;
9041
9041
  }
9042
9042
  function Vy(e, t) {
9043
- _e(Ad).strict;
9043
+ $e(Ad).strict;
9044
9044
  }
9045
9045
  function Ny(e) {
9046
9046
  const t = Cd(), { drag: n, layout: i } = t;
@@ -9160,12 +9160,12 @@ class Fd {
9160
9160
  const m = so(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, g = _y(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
9161
9161
  if (!p && !g)
9162
9162
  return;
9163
- const { point: b } = m, { timestamp: v } = qe;
9163
+ const { point: b } = m, { timestamp: v } = Ye;
9164
9164
  this.history.push({ ...b, timestamp: v });
9165
9165
  const { onStart: k, onMove: w } = this.handlers;
9166
9166
  p || (k && k(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, m);
9167
9167
  }, this.handlePointerMove = (m, p) => {
9168
- this.lastMoveEvent = m, this.lastMoveEventInfo = oo(p, this.transformPagePoint), Se.update(this.updatePoint, !0);
9168
+ this.lastMoveEvent = m, this.lastMoveEventInfo = oo(p, this.transformPagePoint), xe.update(this.updatePoint, !0);
9169
9169
  }, this.handlePointerUp = (m, p) => {
9170
9170
  this.end();
9171
9171
  const { onEnd: g, onSessionEnd: b, resumeAnimation: v } = this.handlers;
@@ -9176,7 +9176,7 @@ class Fd {
9176
9176
  }, !Ns(t))
9177
9177
  return;
9178
9178
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = s, this.contextWindow = r || window;
9179
- const c = Pi(t), l = oo(c, this.transformPagePoint), { point: u } = l, { timestamp: d } = qe;
9179
+ const c = Pi(t), l = oo(c, this.transformPagePoint), { point: u } = l, { timestamp: d } = Ye;
9180
9180
  this.history = [{ ...u, timestamp: d }];
9181
9181
  const { onSessionStart: f } = n;
9182
9182
  f && f(t, so(l, this.history)), this.removeListeners = ki(hi(this.contextWindow, "pointermove", this.handlePointerMove), hi(this.contextWindow, "pointerup", this.handlePointerUp), hi(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
@@ -9221,7 +9221,7 @@ class Fd {
9221
9221
  x: t.scrollLeft,
9222
9222
  y: t.scrollTop
9223
9223
  }, o = { x: r.x - n.x, y: r.y - n.y };
9224
- o.x === 0 && o.y === 0 || (i ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += o.x, this.lastMoveEventInfo.point.y += o.y) : this.history.length > 0 && (this.history[0].x -= o.x, this.history[0].y -= o.y), this.scrollPositions.set(t, r), Se.update(this.updatePoint, !0));
9224
+ o.x === 0 && o.y === 0 || (i ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += o.x, this.lastMoveEventInfo.point.y += o.y) : this.history.length > 0 && (this.history[0].x -= o.x, this.history[0].y -= o.y), this.scrollPositions.set(t, r), xe.update(this.updatePoint, !0));
9225
9225
  }
9226
9226
  updateHandlers(t) {
9227
9227
  this.handlers = t;
@@ -9259,7 +9259,7 @@ function Gy(e, t) {
9259
9259
  n--;
9260
9260
  if (!i)
9261
9261
  return { x: 0, y: 0 };
9262
- const o = /* @__PURE__ */ ft(r.timestamp - i.timestamp);
9262
+ const o = /* @__PURE__ */ ht(r.timestamp - i.timestamp);
9263
9263
  if (o === 0)
9264
9264
  return { x: 0, y: 0 };
9265
9265
  const s = {
@@ -9269,7 +9269,7 @@ function Gy(e, t) {
9269
9269
  return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
9270
9270
  }
9271
9271
  function Ky(e, { min: t, max: n }, i) {
9272
- return t !== void 0 && e < t ? e = i ? Ie(t, e, i.min) : Math.max(e, t) : n !== void 0 && e > n && (e = i ? Ie(n, e, i.max) : Math.min(e, n)), e;
9272
+ return t !== void 0 && e < t ? e = i ? Re(t, e, i.min) : Math.max(e, t) : n !== void 0 && e > n && (e = i ? Re(n, e, i.max) : Math.min(e, n)), e;
9273
9273
  }
9274
9274
  function Qc(e, t, n) {
9275
9275
  return {
@@ -9295,7 +9295,7 @@ function Yy(e, t) {
9295
9295
  }
9296
9296
  function Xy(e, t) {
9297
9297
  let n = 0.5;
9298
- const i = et(e), r = et(t);
9298
+ const i = tt(e), r = tt(t);
9299
9299
  return r > i ? n = /* @__PURE__ */ gi(t.min, t.max - i, e.min) : i > r && (n = /* @__PURE__ */ gi(e.min, e.max - r, t.min)), At(0, 1, n);
9300
9300
  }
9301
9301
  function Zy(e, t) {
@@ -9321,7 +9321,7 @@ function tl(e, t) {
9321
9321
  const Jy = /* @__PURE__ */ new WeakMap();
9322
9322
  class ev {
9323
9323
  constructor(t) {
9324
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ze(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
9324
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = He(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
9325
9325
  }
9326
9326
  start(t, { snapToCursor: n = !1, distanceThreshold: i } = {}) {
9327
9327
  const { presenceContext: r } = this.visualElement;
@@ -9334,17 +9334,17 @@ class ev {
9334
9334
  const { drag: m, dragPropagation: p, onDragStart: g } = this.getProps();
9335
9335
  if (m && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = z0(m), !this.openDragLock))
9336
9336
  return;
9337
- this.latestPointerEvent = d, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ut((v) => {
9337
+ this.latestPointerEvent = d, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), dt((v) => {
9338
9338
  let k = this.getAxisMotionValue(v).get() || 0;
9339
9339
  if (Mt.test(k)) {
9340
9340
  const { projection: w } = this.visualElement;
9341
9341
  if (w && w.layout) {
9342
9342
  const M = w.layout.layoutBox[v];
9343
- M && (k = et(M) * (parseFloat(k) / 100));
9343
+ M && (k = tt(M) * (parseFloat(k) / 100));
9344
9344
  }
9345
9345
  }
9346
9346
  this.originPoint[v] = k;
9347
- }), g && Se.update(() => g(d, f), !1, !0), Fo(this.visualElement, "transform");
9347
+ }), g && xe.update(() => g(d, f), !1, !0), Fo(this.visualElement, "transform");
9348
9348
  const { animationState: b } = this.visualElement;
9349
9349
  b && b.setActive("whileDrag", !0);
9350
9350
  }, a = (d, f) => {
@@ -9357,10 +9357,10 @@ class ev {
9357
9357
  this.currentDirection = tv(v), this.currentDirection !== null && g && g(this.currentDirection);
9358
9358
  return;
9359
9359
  }
9360
- this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), b && Se.update(() => b(d, f), !1, !0);
9360
+ this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), b && xe.update(() => b(d, f), !1, !0);
9361
9361
  }, c = (d, f) => {
9362
9362
  this.latestPointerEvent = d, this.latestPanInfo = f, this.stop(d, f), this.latestPointerEvent = null, this.latestPanInfo = null;
9363
- }, l = () => ut((d) => {
9363
+ }, l = () => dt((d) => {
9364
9364
  var f;
9365
9365
  return this.getAnimationState(d) === "paused" && ((f = this.getAxisMotionValue(d).animation) == null ? void 0 : f.play());
9366
9366
  }), { dragSnapToOrigin: u } = this.getProps();
@@ -9388,7 +9388,7 @@ class ev {
9388
9388
  const { velocity: s } = r;
9389
9389
  this.startAnimation(s);
9390
9390
  const { onDragEnd: a } = this.getProps();
9391
- a && Se.postRender(() => a(i, r));
9391
+ a && xe.postRender(() => a(i, r));
9392
9392
  }
9393
9393
  /**
9394
9394
  * @internal
@@ -9420,7 +9420,7 @@ class ev {
9420
9420
  resolveConstraints() {
9421
9421
  var o;
9422
9422
  const { dragConstraints: t, dragElastic: n } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (o = this.visualElement.projection) == null ? void 0 : o.layout, r = this.constraints;
9423
- t && ai(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = qy(i.layoutBox, t) : this.constraints = !1, this.elastic = Qy(n), r !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && ut((s) => {
9423
+ t && ai(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = qy(i.layoutBox, t) : this.constraints = !1, this.elastic = Qy(n), r !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && dt((s) => {
9424
9424
  this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Zy(i.layoutBox[s], this.constraints[s]));
9425
9425
  });
9426
9426
  }
@@ -9440,7 +9440,7 @@ class ev {
9440
9440
  return s;
9441
9441
  }
9442
9442
  startAnimation(t) {
9443
- const { drag: n, dragMomentum: i, dragElastic: r, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, l = ut((u) => {
9443
+ const { drag: n, dragMomentum: i, dragElastic: r, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, l = dt((u) => {
9444
9444
  if (!Hi(u, n, this.currentDirection))
9445
9445
  return;
9446
9446
  let d = c && c[u] || {};
@@ -9465,10 +9465,10 @@ class ev {
9465
9465
  return Fo(this.visualElement, t), i.start(Rs(t, i, 0, n, this.visualElement, !1));
9466
9466
  }
9467
9467
  stopAnimation() {
9468
- ut((t) => this.getAxisMotionValue(t).stop());
9468
+ dt((t) => this.getAxisMotionValue(t).stop());
9469
9469
  }
9470
9470
  pauseAnimation() {
9471
- ut((t) => {
9471
+ dt((t) => {
9472
9472
  var n;
9473
9473
  return (n = this.getAxisMotionValue(t).animation) == null ? void 0 : n.pause();
9474
9474
  });
@@ -9488,14 +9488,14 @@ class ev {
9488
9488
  return r || this.visualElement.getValue(t, (i.initial ? i.initial[t] : void 0) || 0);
9489
9489
  }
9490
9490
  snapToCursor(t) {
9491
- ut((n) => {
9491
+ dt((n) => {
9492
9492
  const { drag: i } = this.getProps();
9493
9493
  if (!Hi(n, i, this.currentDirection))
9494
9494
  return;
9495
9495
  const { projection: r } = this.visualElement, o = this.getAxisMotionValue(n);
9496
9496
  if (r && r.layout) {
9497
9497
  const { min: s, max: a } = r.layout.layoutBox[n], c = o.get() || 0;
9498
- o.set(t[n] - Ie(s, a, 0.5) + c);
9498
+ o.set(t[n] - Re(s, a, 0.5) + c);
9499
9499
  }
9500
9500
  });
9501
9501
  }
@@ -9512,7 +9512,7 @@ class ev {
9512
9512
  return;
9513
9513
  this.stopAnimation();
9514
9514
  const r = { x: 0, y: 0 };
9515
- ut((s) => {
9515
+ dt((s) => {
9516
9516
  const a = this.getAxisMotionValue(s);
9517
9517
  if (a && this.constraints !== !1) {
9518
9518
  const c = a.get();
@@ -9520,11 +9520,11 @@ class ev {
9520
9520
  }
9521
9521
  });
9522
9522
  const { transformTemplate: o } = this.visualElement.getProps();
9523
- this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), ut((s) => {
9523
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), dt((s) => {
9524
9524
  if (!Hi(s, t, null))
9525
9525
  return;
9526
9526
  const a = this.getAxisMotionValue(s), { min: c, max: l } = this.constraints[s];
9527
- a.set(Ie(c, l, r[s]));
9527
+ a.set(Re(c, l, r[s]));
9528
9528
  });
9529
9529
  }
9530
9530
  addListeners() {
@@ -9538,9 +9538,9 @@ class ev {
9538
9538
  const { dragConstraints: c } = this.getProps();
9539
9539
  ai(c) && c.current && (this.constraints = this.resolveRefConstraints());
9540
9540
  }, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
9541
- r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), Se.read(i);
9541
+ r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), xe.read(i);
9542
9542
  const s = wi(window, "resize", () => this.scalePositionWithinConstraints()), a = r.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: l }) => {
9543
- this.isDragging && l && (ut((u) => {
9543
+ this.isDragging && l && (dt((u) => {
9544
9544
  const d = this.getAxisMotionValue(u);
9545
9545
  d && (this.originPoint[u] += c[u].translate, d.set(d.get() + c[u].translate));
9546
9546
  }), this.visualElement.render());
@@ -9571,11 +9571,11 @@ function tv(e, t = 10) {
9571
9571
  }
9572
9572
  class nv extends Xt {
9573
9573
  constructor(t) {
9574
- super(t), this.removeGroupControls = ht, this.removeListeners = ht, this.controls = new ev(t);
9574
+ super(t), this.removeGroupControls = mt, this.removeListeners = mt, this.controls = new ev(t);
9575
9575
  }
9576
9576
  mount() {
9577
9577
  const { dragControls: t } = this.node.getProps();
9578
- t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || ht;
9578
+ t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || mt;
9579
9579
  }
9580
9580
  update() {
9581
9581
  const { dragControls: t } = this.node.getProps(), { dragControls: n } = this.node.prevProps || {};
@@ -9586,11 +9586,11 @@ class nv extends Xt {
9586
9586
  }
9587
9587
  }
9588
9588
  const ao = (e) => (t, n) => {
9589
- e && Se.update(() => e(t, n), !1, !0);
9589
+ e && xe.update(() => e(t, n), !1, !0);
9590
9590
  };
9591
9591
  class iv extends Xt {
9592
9592
  constructor() {
9593
- super(...arguments), this.removePointerDownListener = ht;
9593
+ super(...arguments), this.removePointerDownListener = mt;
9594
9594
  }
9595
9595
  onPointerDown(t) {
9596
9596
  this.session = new Fd(t, this.createPanHandlers(), {
@@ -9605,7 +9605,7 @@ class iv extends Xt {
9605
9605
  onStart: ao(n),
9606
9606
  onMove: ao(i),
9607
9607
  onEnd: (o, s) => {
9608
- delete this.session, r && Se.postRender(() => r(o, s));
9608
+ delete this.session, r && xe.postRender(() => r(o, s));
9609
9609
  }
9610
9610
  };
9611
9611
  }
@@ -9641,7 +9641,7 @@ class rv extends If {
9641
9641
  return s && (s.isPresent = o, t.layoutDependency !== n && s.setOptions({
9642
9642
  ...s.options,
9643
9643
  layoutDependency: n
9644
- }), co = !0, r || t.layoutDependency !== n || n === void 0 || t.isPresent !== o ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() || Se.postRender(() => {
9644
+ }), co = !0, r || t.layoutDependency !== n || n === void 0 || t.isPresent !== o ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() || xe.postRender(() => {
9645
9645
  const a = s.getStack();
9646
9646
  (!a || !a.members.length) && this.safeToRemove();
9647
9647
  }))), null;
@@ -9665,8 +9665,8 @@ class rv extends If {
9665
9665
  }
9666
9666
  }
9667
9667
  function Ud(e) {
9668
- const [t, n] = Pd(), i = _e(fs);
9669
- return h(rv, { ...e, layoutGroup: i, switchLayoutGroup: _e(Dd), isPresent: t, safeToRemove: n });
9668
+ const [t, n] = Pd(), i = $e(fs);
9669
+ return h(rv, { ...e, layoutGroup: i, switchLayoutGroup: $e(Dd), isPresent: t, safeToRemove: n });
9670
9670
  }
9671
9671
  const ov = {
9672
9672
  pan: {
@@ -9682,7 +9682,7 @@ function nl(e, t, n) {
9682
9682
  const { props: i } = e;
9683
9683
  e.animationState && i.whileHover && e.animationState.setActive("whileHover", n === "Start");
9684
9684
  const r = "onHover" + n, o = i[r];
9685
- o && Se.postRender(() => o(t, Pi(t)));
9685
+ o && xe.postRender(() => o(t, Pi(t)));
9686
9686
  }
9687
9687
  class sv extends Xt {
9688
9688
  mount() {
@@ -9720,7 +9720,7 @@ function il(e, t, n) {
9720
9720
  return;
9721
9721
  e.animationState && i.whileTap && e.animationState.setActive("whileTap", n === "Start");
9722
9722
  const r = "onTap" + (n === "End" ? "" : n), o = i[r];
9723
- o && Se.postRender(() => o(t, Pi(t)));
9723
+ o && xe.postRender(() => o(t, Pi(t)));
9724
9724
  }
9725
9725
  class cv extends Xt {
9726
9726
  mount() {
@@ -9882,7 +9882,7 @@ function Sv(e, t) {
9882
9882
  function xv(e) {
9883
9883
  _s.delete(e);
9884
9884
  }
9885
- function xe(e) {
9885
+ function ke(e) {
9886
9886
  return _s.get(e);
9887
9887
  }
9888
9888
  function Tv(e, t) {
@@ -10262,7 +10262,7 @@ function Fv({
10262
10262
  }
10263
10263
  const u = (m = c.breakpoint) != null ? m : Bv, d = window.matchMedia(`(max-width: ${u}px)`), f = () => s(d.matches || i);
10264
10264
  return f(), typeof d.addEventListener == "function" ? (d.addEventListener("change", f), () => d.removeEventListener("change", f)) : (d.addListener(f), () => d.removeListener(f));
10265
- }, [e, i]), { resolvedLayout: we(() => {
10265
+ }, [e, i]), { resolvedLayout: Se(() => {
10266
10266
  var g, b, v, k, w, M;
10267
10267
  const c = e != null ? e : Jn;
10268
10268
  if (al(c))
@@ -10381,8 +10381,8 @@ function Ov(e) {
10381
10381
  prevAction: y,
10382
10382
  onAction: E
10383
10383
  } = e;
10384
- return we(() => function(S, P) {
10385
- var R, N, C, x, L, V, W, O, K, $, ne, G, Z, te, ie, me, re, se, fe, ge, he, Oe, Ye, ke, $e, xt, Tt;
10384
+ return Se(() => function(S, P) {
10385
+ var R, N, C, x, L, V, W, O, K, $, ne, G, Z, te, ie, me, re, se, fe, ge, he, We, Xe, Me, Ge, xt, Tt;
10386
10386
  if (typeof S != "string")
10387
10387
  return rs(S) ? Rf(S, { pos: P }) : S;
10388
10388
  if (!Hv.has(S))
@@ -10484,7 +10484,7 @@ function Ov(e) {
10484
10484
  }
10485
10485
  ) : null;
10486
10486
  case "NextPrevBtn":
10487
- return (Oe = i == null ? void 0 : i.controlBtn) != null && Oe.play && (m != null ? m : 0) > 1 ? /* @__PURE__ */ h(
10487
+ return (We = i == null ? void 0 : i.controlBtn) != null && We.play && (m != null ? m : 0) > 1 ? /* @__PURE__ */ h(
10488
10488
  gm,
10489
10489
  {
10490
10490
  isMobile: t,
@@ -10498,7 +10498,7 @@ function Ov(e) {
10498
10498
  }
10499
10499
  ) : null;
10500
10500
  case "PrevBtn":
10501
- return (Ye = i == null ? void 0 : i.controlBtn) != null && Ye.play && (m != null ? m : 0) > 1 ? /* @__PURE__ */ h(
10501
+ return (Xe = i == null ? void 0 : i.controlBtn) != null && Xe.play && (m != null ? m : 0) > 1 ? /* @__PURE__ */ h(
10502
10502
  tu,
10503
10503
  {
10504
10504
  isMobile: t,
@@ -10511,7 +10511,7 @@ function Ov(e) {
10511
10511
  }
10512
10512
  ) : null;
10513
10513
  case "NextBtn":
10514
- return (ke = i == null ? void 0 : i.controlBtn) != null && ke.play && (m != null ? m : 0) > 1 ? /* @__PURE__ */ h(
10514
+ return (Me = i == null ? void 0 : i.controlBtn) != null && Me.play && (m != null ? m : 0) > 1 ? /* @__PURE__ */ h(
10515
10515
  nu,
10516
10516
  {
10517
10517
  isMobile: t,
@@ -10570,7 +10570,7 @@ function Ov(e) {
10570
10570
  }
10571
10571
  ) : null;
10572
10572
  case "SeekBar":
10573
- return ($e = i == null ? void 0 : i.controlBtn) != null && $e.progressBar && !b ? /* @__PURE__ */ h(
10573
+ return (Ge = i == null ? void 0 : i.controlBtn) != null && Ge.progressBar && !b ? /* @__PURE__ */ h(
10574
10574
  Ql,
10575
10575
  {
10576
10576
  src: o,
@@ -10666,12 +10666,12 @@ function ei(e, t, n) {
10666
10666
  });
10667
10667
  }
10668
10668
  function jv(e) {
10669
- var ie, me, re, se, fe, ge, he, Oe, Ye, ke, $e, xt, Tt, Qt, Ct, It, pt, Ot, Jt, Re;
10670
- const [t] = Cn("uiMode", null), [n] = Cn("playMode", null), [i] = Cn("isPremiere", !1), r = n === "live" ? !0 : n === "vod" ? !1 : null, o = j(!1), s = ((ie = e.options) == null ? void 0 : ie.controlActiveTime) || 3e3, [a, c] = Te(), { isMobile: l, isPortrait: u } = wv();
10669
+ var ie, me, re, se, fe, ge, he, We, Xe, Me, Ge, xt, Tt, Qt, Ct, It, at, Ot, Jt, Le;
10670
+ const [t] = Cn("uiMode", null), [n] = Cn("playMode", null), [i] = Cn("isPremiere", !1), r = n === "live" ? !0 : n === "vod" ? !1 : null, o = j(!1), s = ((ie = e.options) == null ? void 0 : ie.controlActiveTime) || 3e3, [a, c] = Ee(), { isMobile: l, isPortrait: u } = wv();
10671
10671
  B(() => {
10672
10672
  r !== null && a.isLive !== r && c({ isLive: r });
10673
10673
  }, [r, a.isLive, c]);
10674
- const d = He(), { togglePlay: f, useTouch: m } = d, { resolvedLayout: p } = Fv({
10674
+ const d = je(), { togglePlay: f, useTouch: m } = d, { resolvedLayout: p } = Fv({
10675
10675
  layout: e.layout,
10676
10676
  isFullscreen: !!a.isFullscreen,
10677
10677
  isLive: r != null ? r : !!a.isLive,
@@ -10713,7 +10713,7 @@ function jv(e) {
10713
10713
  }
10714
10714
  E(!1);
10715
10715
  }, [M]);
10716
- const V = we(() => ({ ...d, next: x, prev: L }), [d, x, L]);
10716
+ const V = Se(() => ({ ...d, next: x, prev: L }), [d, x, L]);
10717
10717
  B(() => {
10718
10718
  const ae = e.scopeId;
10719
10719
  if (ae)
@@ -10745,27 +10745,27 @@ function jv(e) {
10745
10745
  }, O = Ov(W), K = ee(() => {
10746
10746
  const ae = R.current, ve = N.current;
10747
10747
  if (!ae || !ve) return;
10748
- const Ge = ae.getBoundingClientRect(), nt = ve.getBoundingClientRect(), gt = Math.max(16, Math.round(Ge.bottom - nt.top + 8)), yt = Math.max(8, Math.round(Ge.right - nt.right + 8));
10749
- S((Fe) => Fe === gt ? Fe : gt), I((Fe) => Fe === yt ? Fe : yt);
10748
+ const Ke = ae.getBoundingClientRect(), it = ve.getBoundingClientRect(), gt = Math.max(16, Math.round(Ke.bottom - it.top + 8)), yt = Math.max(8, Math.round(Ke.right - it.right + 8));
10749
+ S((Ue) => Ue === gt ? Ue : gt), I((Ue) => Ue === yt ? Ue : yt);
10750
10750
  }, []), $ = () => {
10751
10751
  w.current || b();
10752
10752
  };
10753
10753
  B(() => {
10754
10754
  l && (o.current = !0);
10755
10755
  }, [l]);
10756
- const ne = we(() => {
10756
+ const ne = Se(() => {
10757
10757
  var yt;
10758
- const ae = [], ve = e.currentItem, Ge = e.skipSettings, nt = e.onSkipSettingChange;
10759
- if (!ve || !Ge || !nt || !ve.opening && !ve.ending) return ae;
10760
- const gt = (yt = e.t) != null ? yt : ((Fe) => Fe);
10758
+ const ae = [], ve = e.currentItem, Ke = e.skipSettings, it = e.onSkipSettingChange;
10759
+ if (!ve || !Ke || !it || !ve.opening && !ve.ending) return ae;
10760
+ const gt = (yt = e.t) != null ? yt : ((Ue) => Ue);
10761
10761
  return ae.push({
10762
10762
  key: "autoSkipOpeningEnding",
10763
10763
  icon: "MdSkipNext",
10764
10764
  label: gt("skip.autoSkipOpeningEnding"),
10765
10765
  type: "toggle",
10766
- value: Ge.autoSkipOpening || Ge.autoSkipEnding,
10767
- onChange: (Fe) => {
10768
- nt("autoSkipOpening", Fe), nt("autoSkipEnding", Fe);
10766
+ value: Ke.autoSkipOpening || Ke.autoSkipEnding,
10767
+ onChange: (Ue) => {
10768
+ it("autoSkipOpening", Ue), it("autoSkipEnding", Ue);
10769
10769
  }
10770
10770
  }), ae;
10771
10771
  }, [e.currentItem, e.skipSettings, e.onSkipSettingChange, e.t]), G = !zv(p), Z = (re = p.order) != null ? re : ["top", "upper", "center", "seekbar", "lower", "bottom"];
@@ -10779,7 +10779,7 @@ function jv(e) {
10779
10779
  };
10780
10780
  }, [a.initPlay, g, a.isEnded, p, K]);
10781
10781
  const te = () => {
10782
- var ae, ve, Ge, nt;
10782
+ var ae, ve, Ke, it;
10783
10783
  return G ? /* @__PURE__ */ h("div", { children: ((ve = (ae = e.options) == null ? void 0 : ae.controlBtn) == null ? void 0 : ve.progressBar) && /* @__PURE__ */ h(
10784
10784
  Ql,
10785
10785
  {
@@ -10787,8 +10787,8 @@ function jv(e) {
10787
10787
  hlsLib: e.hlsLib,
10788
10788
  dashLib: e.dashLib,
10789
10789
  options: e.options,
10790
- color: (Ge = e.options) == null ? void 0 : Ge.progressBarColor,
10791
- seekingPreview: ((nt = e.options) == null ? void 0 : nt.seekingPreview) && !e.isDrmPlayback
10790
+ color: (Ke = e.options) == null ? void 0 : Ke.progressBarColor,
10791
+ seekingPreview: ((it = e.options) == null ? void 0 : it.seekingPreview) && !e.isDrmPlayback
10792
10792
  }
10793
10793
  ) }) : null;
10794
10794
  };
@@ -10801,11 +10801,11 @@ function jv(e) {
10801
10801
  text: {
10802
10802
  setting: (fe = (se = e.t) == null ? void 0 : se.call(e, "common.setting")) != null ? fe : "세팅",
10803
10803
  auto: (he = (ge = e.t) == null ? void 0 : ge.call(e, "common.auto")) != null ? he : "자동",
10804
- notUse: (Ye = (Oe = e.t) == null ? void 0 : Oe.call(e, "common.notUse")) != null ? Ye : "사용안함",
10805
- quality: ($e = (ke = e.t) == null ? void 0 : ke.call(e, "settings.quality")) != null ? $e : "해상도",
10804
+ notUse: (Xe = (We = e.t) == null ? void 0 : We.call(e, "common.notUse")) != null ? Xe : "사용안함",
10805
+ quality: (Ge = (Me = e.t) == null ? void 0 : Me.call(e, "settings.quality")) != null ? Ge : "해상도",
10806
10806
  autoplay: (Tt = (xt = e.t) == null ? void 0 : xt.call(e, "settings.autoplay")) != null ? Tt : "자동재생",
10807
10807
  playbackRate: (Ct = (Qt = e.t) == null ? void 0 : Qt.call(e, "settings.playbackRate")) != null ? Ct : "재생 속도",
10808
- captions: (pt = (It = e.t) == null ? void 0 : It.call(e, "settings.captions")) != null ? pt : "자막"
10808
+ captions: (at = (It = e.t) == null ? void 0 : It.call(e, "settings.captions")) != null ? at : "자막"
10809
10809
  },
10810
10810
  vtt: (Ot = e.src) == null ? void 0 : Ot.vtt,
10811
10811
  options: e.options,
@@ -10947,7 +10947,7 @@ function jv(e) {
10947
10947
  ) : null)
10948
10948
  }
10949
10949
  ) }),
10950
- ((Re = e.skipState) == null ? void 0 : Re.visible) && e.onSkip && /* @__PURE__ */ h(
10950
+ ((Le = e.skipState) == null ? void 0 : Le.visible) && e.onSkip && /* @__PURE__ */ h(
10951
10951
  "div",
10952
10952
  {
10953
10953
  style: {
@@ -11183,12 +11183,12 @@ function Xo(e) {
11183
11183
  return Gd[i];
11184
11184
  }
11185
11185
  Xo();
11186
- var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11186
+ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", Ne = {
11187
11187
  FUNCTION: "function",
11188
11188
  OBJECT: "object",
11189
11189
  STRING: "string",
11190
11190
  UNDEFINED: "undefined"
11191
- }, ot = "browser", zt = "cpu", Pt = "device", St = "engine", st = "os", Nn = "result", z = "name", D = "type", H = "vendor", U = "version", Qe = "architecture", Ti = "major", F = "model", er = "console", de = "mobile", ye = "tablet", Ve = "smarttv", kt = "wearable", Oi = "xr", ci = "embedded", rb = "fetcher", bn = "inapp", Zs = "brands", ln = "formFactors", Qs = "fullVersionList", Fn = "platform", Js = "platformVersion", zr = "bitness", Zt = "sec-ch-ua", ob = Zt + "-full-version-list", sb = Zt + "-arch", ab = Zt + "-" + zr, cb = Zt + "-form-factors", lb = Zt + "-" + de, ub = Zt + "-" + F, Kd = Zt + "-" + Fn, db = Kd + "-version", qd = [Zs, Qs, de, F, Fn, Js, Qe, ln, zr], ji = "Amazon", wn = "Apple", dl = "ASUS", fl = "BlackBerry", an = "Google", hl = "Huawei", uo = "Lenovo", ml = "Honor", Wi = "LG", fo = "Microsoft", ho = "Motorola", pl = "Nvidia", gl = "OnePlus", mo = "OPPO", ti = "Samsung", yl = "Sharp", ni = "Sony", po = "Xiaomi", go = "Zebra", vl = "Chrome", bl = "Chromium", jt = "Chromecast", tr = "Edge", ii = "Firefox", Sn = "Opera", yo = "Facebook", wl = "Sogou", xn = "Mobile ", Tn = " Browser", Zo = "Windows", fb = typeof window !== De.UNDEFINED, rt = fb && window.navigator ? window.navigator : void 0, un = rt && rt.userAgentData ? rt.userAgentData : void 0, hb = function(e, t) {
11191
+ }, ot = "browser", zt = "cpu", Pt = "device", St = "engine", st = "os", Nn = "result", z = "name", D = "type", H = "vendor", U = "version", Je = "architecture", Ti = "major", F = "model", er = "console", de = "mobile", ye = "tablet", Fe = "smarttv", kt = "wearable", Oi = "xr", ci = "embedded", rb = "fetcher", bn = "inapp", Zs = "brands", ln = "formFactors", Qs = "fullVersionList", Fn = "platform", Js = "platformVersion", zr = "bitness", Zt = "sec-ch-ua", ob = Zt + "-full-version-list", sb = Zt + "-arch", ab = Zt + "-" + zr, cb = Zt + "-form-factors", lb = Zt + "-" + de, ub = Zt + "-" + F, Kd = Zt + "-" + Fn, db = Kd + "-version", qd = [Zs, Qs, de, F, Fn, Js, Je, ln, zr], ji = "Amazon", wn = "Apple", dl = "ASUS", fl = "BlackBerry", an = "Google", hl = "Huawei", uo = "Lenovo", ml = "Honor", Wi = "LG", fo = "Microsoft", ho = "Motorola", pl = "Nvidia", gl = "OnePlus", mo = "OPPO", ti = "Samsung", yl = "Sharp", ni = "Sony", po = "Xiaomi", go = "Zebra", vl = "Chrome", bl = "Chromium", jt = "Chromecast", tr = "Edge", ii = "Firefox", Sn = "Opera", yo = "Facebook", wl = "Sogou", xn = "Mobile ", Tn = " Browser", Zo = "Windows", fb = typeof window !== Ne.UNDEFINED, rt = fb && window.navigator ? window.navigator : void 0, un = rt && rt.userAgentData ? rt.userAgentData : void 0, hb = function(e, t) {
11192
11192
  var n = {}, i = t;
11193
11193
  if (!Tr(t)) {
11194
11194
  i = {};
@@ -11204,7 +11204,7 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11204
11204
  t[e[n].toUpperCase()] = e[n];
11205
11205
  return t;
11206
11206
  }, Qo = function(e, t) {
11207
- if (typeof e === De.OBJECT && e.length > 0) {
11207
+ if (typeof e === Ne.OBJECT && e.length > 0) {
11208
11208
  for (var n in e)
11209
11209
  if ($t(t) == $t(e[n])) return !0;
11210
11210
  return !1;
@@ -11214,7 +11214,7 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11214
11214
  for (var n in e)
11215
11215
  return /^(browser|cpu|device|engine|os)$/.test(n) || (t ? Tr(e[n]) : !1);
11216
11216
  }, Ai = function(e) {
11217
- return typeof e === De.STRING;
11217
+ return typeof e === Ne.STRING;
11218
11218
  }, vo = function(e) {
11219
11219
  if (e) {
11220
11220
  for (var t = [], n = zn(/\\?\"/g, e).split(","), i = 0; i < n.length; i++)
@@ -11233,7 +11233,7 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11233
11233
  for (var t in e)
11234
11234
  if (e.hasOwnProperty(t)) {
11235
11235
  var n = e[t];
11236
- typeof n == De.OBJECT && n.length == 2 ? this[n[0]] = n[1] : this[n] = void 0;
11236
+ typeof n == Ne.OBJECT && n.length == 2 ? this[n[0]] = n[1] : this[n] = void 0;
11237
11237
  }
11238
11238
  return this;
11239
11239
  }, zn = function(e, t) {
@@ -11241,7 +11241,7 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11241
11241
  }, ri = function(e) {
11242
11242
  return zn(/\\?\"/g, e);
11243
11243
  }, kr = function(e, t) {
11244
- return e = zn(/^\s\s*/, String(e)), typeof t === De.UNDEFINED ? e : e.substring(0, t);
11244
+ return e = zn(/^\s\s*/, String(e)), typeof t === Ne.UNDEFINED ? e : e.substring(0, t);
11245
11245
  }, es = function(e, t) {
11246
11246
  if (!(!e || !t))
11247
11247
  for (var n = 0, i, r, o, s, a, c; n < t.length && !a; ) {
@@ -11249,12 +11249,12 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11249
11249
  for (i = r = 0; i < l.length && !a && l[i]; )
11250
11250
  if (a = l[i++].exec(e), a)
11251
11251
  for (o = 0; o < u.length; o++)
11252
- c = a[++r], s = u[o], typeof s === De.OBJECT && s.length > 0 ? s.length === 2 ? typeof s[1] == De.FUNCTION ? this[s[0]] = s[1].call(this, c) : this[s[0]] = s[1] : s.length >= 3 && (typeof s[1] === De.FUNCTION && !(s[1].exec && s[1].test) ? s.length > 3 ? this[s[0]] = c ? s[1].apply(this, s.slice(2)) : void 0 : this[s[0]] = c ? s[1].call(this, c, s[2]) : void 0 : s.length == 3 ? this[s[0]] = c ? c.replace(s[1], s[2]) : void 0 : s.length == 4 ? this[s[0]] = c ? s[3].call(this, c.replace(s[1], s[2])) : void 0 : s.length > 4 && (this[s[0]] = c ? s[3].apply(this, [c.replace(s[1], s[2])].concat(s.slice(4))) : void 0)) : this[s] = c || void 0;
11252
+ c = a[++r], s = u[o], typeof s === Ne.OBJECT && s.length > 0 ? s.length === 2 ? typeof s[1] == Ne.FUNCTION ? this[s[0]] = s[1].call(this, c) : this[s[0]] = s[1] : s.length >= 3 && (typeof s[1] === Ne.FUNCTION && !(s[1].exec && s[1].test) ? s.length > 3 ? this[s[0]] = c ? s[1].apply(this, s.slice(2)) : void 0 : this[s[0]] = c ? s[1].call(this, c, s[2]) : void 0 : s.length == 3 ? this[s[0]] = c ? c.replace(s[1], s[2]) : void 0 : s.length == 4 ? this[s[0]] = c ? s[3].call(this, c.replace(s[1], s[2])) : void 0 : s.length > 4 && (this[s[0]] = c ? s[3].apply(this, [c.replace(s[1], s[2])].concat(s.slice(4))) : void 0)) : this[s] = c || void 0;
11253
11253
  n += 2;
11254
11254
  }
11255
11255
  }, wt = function(e, t) {
11256
11256
  for (var n in t)
11257
- if (typeof t[n] === De.OBJECT && t[n].length > 0) {
11257
+ if (typeof t[n] === Ne.OBJECT && t[n].length > 0) {
11258
11258
  for (var i = 0; i < t[n].length; i++)
11259
11259
  if (Qo(t[n][i], e))
11260
11260
  return n === ul ? void 0 : n;
@@ -11672,34 +11672,34 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11672
11672
  /\b((amd|x|x86[-_]?|wow|win)64)\b/i
11673
11673
  // AMD64 (x64)
11674
11674
  ],
11675
- [[Qe, "amd64"]],
11675
+ [[Je, "amd64"]],
11676
11676
  [
11677
11677
  /(ia32(?=;))/i,
11678
11678
  // IA32 (quicktime)
11679
11679
  /\b((i[346]|x)86)(pc)?\b/i
11680
11680
  // IA32 (x86)
11681
11681
  ],
11682
- [[Qe, "ia32"]],
11682
+ [[Je, "ia32"]],
11683
11683
  [
11684
11684
  /\b(aarch64|arm(v?[89]e?l?|_?64))\b/i
11685
11685
  // ARM64
11686
11686
  ],
11687
- [[Qe, "arm64"]],
11687
+ [[Je, "arm64"]],
11688
11688
  [
11689
11689
  /\b(arm(v[67])?ht?n?[fl]p?)\b/i
11690
11690
  // ARMHF
11691
11691
  ],
11692
- [[Qe, "armhf"]],
11692
+ [[Je, "armhf"]],
11693
11693
  [
11694
11694
  // PocketPC mistakenly identified as PowerPC
11695
11695
  /( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
11696
11696
  ],
11697
- [[Qe, "arm"]],
11697
+ [[Je, "arm"]],
11698
11698
  [
11699
11699
  / sun4\w[;\)]/i
11700
11700
  // SPARC
11701
11701
  ],
11702
- [[Qe, "sparc"]],
11702
+ [[Je, "sparc"]],
11703
11703
  [
11704
11704
  // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
11705
11705
  /\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,
@@ -11708,15 +11708,15 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
11708
11708
  /(?:osf1|[freopnt]{3,4}bsd) (alpha)/i
11709
11709
  // Alpha
11710
11710
  ],
11711
- [[Qe, /ower/, Vn, $t]],
11711
+ [[Je, /ower/, Vn, $t]],
11712
11712
  [
11713
11713
  /mc680.0/i
11714
11714
  ],
11715
- [[Qe, "68k"]],
11715
+ [[Je, "68k"]],
11716
11716
  [
11717
11717
  /winnt.+\[axp/i
11718
11718
  ],
11719
- [[Qe, "alpha"]]
11719
+ [[Je, "alpha"]]
11720
11720
  ],
11721
11721
  device: [
11722
11722
  [
@@ -12087,90 +12087,90 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
12087
12087
  /smart-tv.+(samsung)/i
12088
12088
  // Samsung
12089
12089
  ],
12090
- [H, [D, Ve]],
12090
+ [H, [D, Fe]],
12091
12091
  [
12092
12092
  /hbbtv.+maple;(\d+)/i
12093
12093
  ],
12094
- [[F, /^/, "SmartTV"], [H, ti], [D, Ve]],
12094
+ [[F, /^/, "SmartTV"], [H, ti], [D, Fe]],
12095
12095
  [
12096
12096
  /(vizio)(?: |.+model\/)(\w+-\w+)/i,
12097
12097
  // Vizio
12098
12098
  /tcast.+(lg)e?. ([-\w]+)/i
12099
12099
  // LG SmartTV
12100
12100
  ],
12101
- [H, F, [D, Ve]],
12101
+ [H, F, [D, Fe]],
12102
12102
  [
12103
12103
  /(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
12104
12104
  ],
12105
- [[H, Wi], [D, Ve]],
12105
+ [[H, Wi], [D, Fe]],
12106
12106
  [
12107
12107
  /(apple) ?tv/i
12108
12108
  // Apple TV
12109
12109
  ],
12110
- [H, [F, wn + " TV"], [D, Ve]],
12110
+ [H, [F, wn + " TV"], [D, Fe]],
12111
12111
  [
12112
12112
  /crkey.*devicetype\/chromecast/i
12113
12113
  // Google Chromecast Third Generation
12114
12114
  ],
12115
- [[F, jt + " Third Generation"], [H, an], [D, Ve]],
12115
+ [[F, jt + " Third Generation"], [H, an], [D, Fe]],
12116
12116
  [
12117
12117
  /crkey.*devicetype\/([^/]*)/i
12118
12118
  // Google Chromecast with specific device type
12119
12119
  ],
12120
- [[F, /^/, "Chromecast "], [H, an], [D, Ve]],
12120
+ [[F, /^/, "Chromecast "], [H, an], [D, Fe]],
12121
12121
  [
12122
12122
  /fuchsia.*crkey/i
12123
12123
  // Google Chromecast Nest Hub
12124
12124
  ],
12125
- [[F, jt + " Nest Hub"], [H, an], [D, Ve]],
12125
+ [[F, jt + " Nest Hub"], [H, an], [D, Fe]],
12126
12126
  [
12127
12127
  /crkey/i
12128
12128
  // Google Chromecast, Linux-based or unknown
12129
12129
  ],
12130
- [[F, jt], [H, an], [D, Ve]],
12130
+ [[F, jt], [H, an], [D, Fe]],
12131
12131
  [
12132
12132
  /(portaltv)/i
12133
12133
  // Facebook Portal TV
12134
12134
  ],
12135
- [F, [H, yo], [D, Ve]],
12135
+ [F, [H, yo], [D, Fe]],
12136
12136
  [
12137
12137
  /droid.+aft(\w+)( bui|\))/i
12138
12138
  // Fire TV
12139
12139
  ],
12140
- [F, [H, ji], [D, Ve]],
12140
+ [F, [H, ji], [D, Fe]],
12141
12141
  [
12142
12142
  /(shield \w+ tv)/i
12143
12143
  // Nvidia Shield TV
12144
12144
  ],
12145
- [F, [H, pl], [D, Ve]],
12145
+ [F, [H, pl], [D, Fe]],
12146
12146
  [
12147
12147
  /\(dtv[\);].+(aquos)/i,
12148
12148
  /(aquos-tv[\w ]+)\)/i
12149
12149
  // Sharp
12150
12150
  ],
12151
- [F, [H, yl], [D, Ve]],
12151
+ [F, [H, yl], [D, Fe]],
12152
12152
  [
12153
12153
  /(bravia[\w ]+)( bui|\))/i
12154
12154
  // Sony
12155
12155
  ],
12156
- [F, [H, ni], [D, Ve]],
12156
+ [F, [H, ni], [D, Fe]],
12157
12157
  [
12158
12158
  /(mi(tv|box)-?\w+) bui/i
12159
12159
  // Xiaomi
12160
12160
  ],
12161
- [F, [H, po], [D, Ve]],
12161
+ [F, [H, po], [D, Fe]],
12162
12162
  [
12163
12163
  /Hbbtv.*(technisat) (.*);/i
12164
12164
  // TechniSAT
12165
12165
  ],
12166
- [H, F, [D, Ve]],
12166
+ [H, F, [D, Fe]],
12167
12167
  [
12168
12168
  /\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
12169
12169
  // Roku
12170
12170
  /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
12171
12171
  // HbbTV devices
12172
12172
  ],
12173
- [[H, /.+\/(\w+)/, "$1", wt, { LG: "lge" }], [F, kr], [D, Ve]],
12173
+ [[H, /.+\/(\w+)/, "$1", wt, { LG: "lge" }], [F, kr], [D, Fe]],
12174
12174
  [
12175
12175
  ///////////////////
12176
12176
  // CONSOLES
@@ -12298,11 +12298,11 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
12298
12298
  /droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i
12299
12299
  // Unidentifiable SmartTV
12300
12300
  ],
12301
- [F, [D, Ve]],
12301
+ [F, [D, Fe]],
12302
12302
  [
12303
12303
  /\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i
12304
12304
  ],
12305
- [[D, Ve]],
12305
+ [[D, Fe]],
12306
12306
  [
12307
12307
  /droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i
12308
12308
  ],
@@ -12542,7 +12542,7 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
12542
12542
  var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
12543
12543
  return Nt.call(e.init, [
12544
12544
  [ot, [z, U, Ti, D]],
12545
- [zt, [Qe]],
12545
+ [zt, [Je]],
12546
12546
  [Pt, [D, F, H]],
12547
12547
  [St, [z, U]],
12548
12548
  [st, [z, U]]
@@ -12555,7 +12555,7 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
12555
12555
  [st, / ?os$/i]
12556
12556
  ]), Nt.call(e.toString, [
12557
12557
  [ot, [z, U]],
12558
- [zt, [Qe]],
12558
+ [zt, [Je]],
12559
12559
  [Pt, [H, F]],
12560
12560
  [St, [z, U]],
12561
12561
  [st, [z, U]]
@@ -12577,8 +12577,8 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
12577
12577
  var c = !1;
12578
12578
  for (var l in this)
12579
12579
  if (this.hasOwnProperty(l) && !Qo(i, l) && $t(r ? zn(r, this[l]) : this[l]) == $t(r ? zn(r, a) : a)) {
12580
- if (c = !0, a != De.UNDEFINED) break;
12581
- } else if (a == De.UNDEFINED && c) {
12580
+ if (c = !0, a != Ne.UNDEFINED) break;
12581
+ } else if (a == Ne.UNDEFINED && c) {
12582
12582
  c = !c;
12583
12583
  break;
12584
12584
  }
@@ -12586,8 +12586,8 @@ var nb = "2.0.9", ib = 500, ll = "user-agent", Vn = "", ul = "?", De = {
12586
12586
  }, s.prototype.toString = function() {
12587
12587
  var a = Vn;
12588
12588
  for (var c in o)
12589
- typeof this[o[c]] !== De.UNDEFINED && (a += (a ? " " : Vn) + this[o[c]]);
12590
- return a || De.UNDEFINED;
12589
+ typeof this[o[c]] !== Ne.UNDEFINED && (a += (a ? " " : Vn) + this[o[c]]);
12590
+ return a || Ne.UNDEFINED;
12591
12591
  }), s.prototype.then = function(a) {
12592
12592
  var c = this, l = function() {
12593
12593
  for (var d in c)
@@ -12612,13 +12612,13 @@ function Yd(e, t) {
12612
12612
  [F, ri(e[ub])],
12613
12613
  [Fn, ri(e[Kd])],
12614
12614
  [Js, ri(e[db])],
12615
- [Qe, ri(e[sb])],
12615
+ [Je, ri(e[sb])],
12616
12616
  [ln, vo(e[cb])],
12617
12617
  [zr, ri(e[ab])]
12618
12618
  ]);
12619
12619
  else
12620
12620
  for (var n in e)
12621
- this.hasOwnProperty(n) && typeof e[n] !== De.UNDEFINED && (this[n] = e[n]);
12621
+ this.hasOwnProperty(n) && typeof e[n] !== Ne.UNDEFINED && (this[n] = e[n]);
12622
12622
  }
12623
12623
  function qt(e, t, n, i) {
12624
12624
  return Nt.call(this, [
@@ -12642,10 +12642,10 @@ qt.prototype.detectFeature = function() {
12642
12642
  if (rt && rt.userAgent == this.ua)
12643
12643
  switch (this.itemType) {
12644
12644
  case ot:
12645
- rt.brave && typeof rt.brave.isBrave == De.FUNCTION && this.set(z, "Brave");
12645
+ rt.brave && typeof rt.brave.isBrave == Ne.FUNCTION && this.set(z, "Brave");
12646
12646
  break;
12647
12647
  case Pt:
12648
- !this.get(D) && un && un[de] && this.set(D, de), this.get(F) == "Macintosh" && rt && typeof rt.standalone !== De.UNDEFINED && rt.maxTouchPoints && rt.maxTouchPoints > 2 && this.set(F, "iPad").set(D, ye);
12648
+ !this.get(D) && un && un[de] && this.set(D, de), this.get(F) == "Macintosh" && rt && typeof rt.standalone !== Ne.UNDEFINED && rt.maxTouchPoints && rt.maxTouchPoints > 2 && this.set(F, "iPad").set(D, ye);
12649
12649
  break;
12650
12650
  case st:
12651
12651
  !this.get(z) && un && un[Fn] && this.set(z, un[Fn]);
@@ -12685,7 +12685,7 @@ qt.prototype.parseCH = function() {
12685
12685
  }
12686
12686
  break;
12687
12687
  case zt:
12688
- var a = e[Qe];
12688
+ var a = e[Je];
12689
12689
  a && (a && e[zr] == "64" && (a += "64"), es.call(this.data, a + ";", t));
12690
12690
  break;
12691
12691
  case Pt:
@@ -12720,8 +12720,8 @@ qt.prototype.parseCH = function() {
12720
12720
  return this;
12721
12721
  };
12722
12722
  function Ht(e, t, n) {
12723
- if (typeof e === De.OBJECT ? (Tr(e, !0) ? (typeof t === De.OBJECT && (n = t), t = e) : (n = e, t = void 0), e = void 0) : typeof e === De.STRING && !Tr(t, !0) && (n = t, t = void 0), n)
12724
- if (typeof n.append === De.FUNCTION) {
12723
+ if (typeof e === Ne.OBJECT ? (Tr(e, !0) ? (typeof t === Ne.OBJECT && (n = t), t = e) : (n = e, t = void 0), e = void 0) : typeof e === Ne.STRING && !Tr(t, !0) && (n = t, t = void 0), n)
12724
+ if (typeof n.append === Ne.FUNCTION) {
12725
12725
  var i = {};
12726
12726
  n.forEach(function(u, d) {
12727
12727
  i[String(d).toLowerCase()] = u;
@@ -12734,7 +12734,7 @@ function Ht(e, t, n) {
12734
12734
  }
12735
12735
  if (!(this instanceof Ht))
12736
12736
  return new Ht(e, t, n).getResult();
12737
- var s = typeof e === De.STRING ? e : (
12737
+ var s = typeof e === Ne.STRING ? e : (
12738
12738
  // Passed user-agent string
12739
12739
  n && n[ll] ? n[ll] : (
12740
12740
  // User-Agent from passed headers
@@ -12767,17 +12767,17 @@ function Ht(e, t, n) {
12767
12767
  }
12768
12768
  Ht.VERSION = nb;
12769
12769
  Ht.BROWSER = Ur([z, U, Ti, D]);
12770
- Ht.CPU = Ur([Qe]);
12771
- Ht.DEVICE = Ur([F, H, D, er, de, Ve, ye, kt, ci]);
12770
+ Ht.CPU = Ur([Je]);
12771
+ Ht.DEVICE = Ur([F, H, D, er, de, Fe, ye, kt, ci]);
12772
12772
  Ht.ENGINE = Ht.OS = Ur([z, U]);
12773
12773
  const kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12774
12774
  __proto__: null,
12775
12775
  UAParser: Ht
12776
- }, Symbol.toStringTag, { value: "Module" })), Ke = [];
12776
+ }, Symbol.toStringTag, { value: "Module" })), qe = [];
12777
12777
  for (let e = 0; e < 256; ++e)
12778
- Ke.push((e + 256).toString(16).slice(1));
12778
+ qe.push((e + 256).toString(16).slice(1));
12779
12779
  function gb(e, t = 0) {
12780
- return (Ke[e[t + 0]] + Ke[e[t + 1]] + Ke[e[t + 2]] + Ke[e[t + 3]] + "-" + Ke[e[t + 4]] + Ke[e[t + 5]] + "-" + Ke[e[t + 6]] + Ke[e[t + 7]] + "-" + Ke[e[t + 8]] + Ke[e[t + 9]] + "-" + Ke[e[t + 10]] + Ke[e[t + 11]] + Ke[e[t + 12]] + Ke[e[t + 13]] + Ke[e[t + 14]] + Ke[e[t + 15]]).toLowerCase();
12780
+ return (qe[e[t + 0]] + qe[e[t + 1]] + qe[e[t + 2]] + qe[e[t + 3]] + "-" + qe[e[t + 4]] + qe[e[t + 5]] + "-" + qe[e[t + 6]] + qe[e[t + 7]] + "-" + qe[e[t + 8]] + qe[e[t + 9]] + "-" + qe[e[t + 10]] + qe[e[t + 11]] + qe[e[t + 12]] + qe[e[t + 13]] + qe[e[t + 14]] + qe[e[t + 15]]).toLowerCase();
12781
12781
  }
12782
12782
  let bo;
12783
12783
  const yb = new Uint8Array(16);
@@ -12821,7 +12821,7 @@ function Zd(e, t) {
12821
12821
  i.push(i.shift());
12822
12822
  }
12823
12823
  })(Er, 623147);
12824
- const Qd = { AF: "Afghanistan", AX: A(414), AL: A(507), DZ: A(494), AS: A(417), AD: "Andorra", AO: "Angola", AI: A(518), AQ: A(558), AG: A(473), AR: A(437), AM: A(480), AW: A(531), AU: A(523), AT: A(457), AZ: "Azerbaijan", BS: "Bahamas", BH: A(444), BD: A(593), BB: A(485), BY: A(576), BE: A(463), BZ: A(489), BJ: "Benin", BM: "Bermuda", BT: A(424), BO: "Bolivia (Plurinational State of)", BQ: A(514), BA: "Bosnia and Herzegovina", BW: A(527), BV: "Bouvet Island", BR: A(428), IO: A(492), BN: A(585), BG: A(543), BF: A(519), BI: A(545), CV: A(569), KH: A(502), CM: A(584), CA: A(495), KY: A(496), CF: A(487), TD: "Chad", CL: "Chile", CN: A(439), CX: A(529), CC: A(544), CO: A(449), KM: "Comoros", CG: A(597), CD: A(532), CK: A(434), CR: A(586), CI: A(526), HR: A(573), CU: A(498), CW: A(413), CY: A(442), CZ: "Czech Republic", DK: A(582), DJ: A(501), DM: "Dominica", DO: "Dominican Republic", EC: "Ecuador", EG: A(472), SV: "El Salvador", GQ: A(466), ER: "Eritrea", EE: A(568), ET: "Ethiopia", FK: "Falkland Islands (Malvinas)", FO: "Faroe Islands", FJ: A(436), FI: A(482), FR: "France", GF: A(440), PF: "French Polynesia", TF: A(455), GA: "Gabon", GM: "Gambia", GE: A(505), DE: "Germany", GH: A(561), GI: A(427), GR: A(537), GL: "Greenland", GD: A(547), GP: A(491), GU: "Guam", GT: "Guatemala", GG: A(464), GN: "Guinea", GW: A(555), GY: A(432), HT: A(574), HM: A(577), VA: A(490), HN: "Honduras", HK: A(557), HU: A(423), IS: A(583), IN: A(450), ID: A(516), IR: A(438), IQ: A(461), IE: "Ireland", IM: "Isle of Man", IL: A(486), IT: "Italy", JM: A(592), JP: "Japan", JE: A(470), JO: A(587), KZ: A(488), KE: A(546), KI: A(474), KP: A(524), KR: A(552), KW: A(549), KG: A(416), LA: A(562), LV: A(601), LB: A(602), LS: A(565), LR: A(458), LY: A(509), LI: A(563), LT: A(575), LU: A(542), MO: A(581), MK: "Macedonia (the former Yugoslav Republic of)", MG: A(419), MW: A(453), MY: A(588), MV: A(422), ML: "Mali", MT: "Malta", MH: A(550), MQ: A(539), MR: A(595), MU: A(433), YT: A(559), MX: "Mexico", FM: A(578), MD: A(589), MC: "Monaco", MN: A(520), ME: A(469), MS: A(425), MA: A(566), MZ: A(503), MM: A(445), NA: "Namibia", NR: A(446), NP: A(535), NL: "Netherlands", NC: A(484), NZ: A(579), NI: A(460), NE: "Niger", NG: A(515), NU: A(540), NF: A(536), MP: A(420), NO: A(600), OM: A(510), PK: A(506), PW: A(554), PS: "Palestine, State of", PA: A(570), PG: A(594), PY: "Paraguay", PE: A(534), PH: "Philippines", PN: "Pitcairn", PL: A(591), PT: A(553), PR: A(459), QA: A(443), RE: A(556), RO: A(548), RU: "Russian Federation", RW: A(538), BL: A(564), SH: "Saint Helena, Ascension and Tristan da Cunha", KN: "Saint Kitts and Nevis", LC: A(462), MF: A(508), PM: A(426), VC: A(483), WS: A(454), SM: A(478), ST: A(571), SA: A(497), SN: A(448), RS: "Serbia", SC: "Seychelles", SL: "Sierra Leone", SG: A(471), SX: "Sint Maarten (Dutch part)", SK: "Slovakia", SI: "Slovenia", SB: A(512), SO: A(599), ZA: A(451), GS: A(521), SS: A(418), ES: A(431), LK: A(429), SD: A(452), SR: A(499), SJ: "Svalbard and Jan Mayen", SZ: "Swaziland", SE: "Sweden", CH: A(435), SY: "Syrian Arab Republic", TW: A(513), TJ: "Tajikistan", TZ: A(476), TH: A(447), TL: "Timor-Leste", TG: A(533), TK: A(580), TO: A(560), TT: A(477), TN: A(467), TR: A(551), TM: A(530), TC: A(517), TV: "Tuvalu", UG: "Uganda", UA: A(596), AE: A(525), GB: A(415), US: A(465), UM: "United States Minor Outlying Islands", UY: A(598), UZ: A(522), VU: A(590), VE: A(493), VN: A(412), VG: A(421), VI: A(479), WF: A(504), EH: A(481), YE: A(572), ZM: A(528), ZW: "Zimbabwe" }, Be = nf;
12824
+ const Qd = { AF: "Afghanistan", AX: A(414), AL: A(507), DZ: A(494), AS: A(417), AD: "Andorra", AO: "Angola", AI: A(518), AQ: A(558), AG: A(473), AR: A(437), AM: A(480), AW: A(531), AU: A(523), AT: A(457), AZ: "Azerbaijan", BS: "Bahamas", BH: A(444), BD: A(593), BB: A(485), BY: A(576), BE: A(463), BZ: A(489), BJ: "Benin", BM: "Bermuda", BT: A(424), BO: "Bolivia (Plurinational State of)", BQ: A(514), BA: "Bosnia and Herzegovina", BW: A(527), BV: "Bouvet Island", BR: A(428), IO: A(492), BN: A(585), BG: A(543), BF: A(519), BI: A(545), CV: A(569), KH: A(502), CM: A(584), CA: A(495), KY: A(496), CF: A(487), TD: "Chad", CL: "Chile", CN: A(439), CX: A(529), CC: A(544), CO: A(449), KM: "Comoros", CG: A(597), CD: A(532), CK: A(434), CR: A(586), CI: A(526), HR: A(573), CU: A(498), CW: A(413), CY: A(442), CZ: "Czech Republic", DK: A(582), DJ: A(501), DM: "Dominica", DO: "Dominican Republic", EC: "Ecuador", EG: A(472), SV: "El Salvador", GQ: A(466), ER: "Eritrea", EE: A(568), ET: "Ethiopia", FK: "Falkland Islands (Malvinas)", FO: "Faroe Islands", FJ: A(436), FI: A(482), FR: "France", GF: A(440), PF: "French Polynesia", TF: A(455), GA: "Gabon", GM: "Gambia", GE: A(505), DE: "Germany", GH: A(561), GI: A(427), GR: A(537), GL: "Greenland", GD: A(547), GP: A(491), GU: "Guam", GT: "Guatemala", GG: A(464), GN: "Guinea", GW: A(555), GY: A(432), HT: A(574), HM: A(577), VA: A(490), HN: "Honduras", HK: A(557), HU: A(423), IS: A(583), IN: A(450), ID: A(516), IR: A(438), IQ: A(461), IE: "Ireland", IM: "Isle of Man", IL: A(486), IT: "Italy", JM: A(592), JP: "Japan", JE: A(470), JO: A(587), KZ: A(488), KE: A(546), KI: A(474), KP: A(524), KR: A(552), KW: A(549), KG: A(416), LA: A(562), LV: A(601), LB: A(602), LS: A(565), LR: A(458), LY: A(509), LI: A(563), LT: A(575), LU: A(542), MO: A(581), MK: "Macedonia (the former Yugoslav Republic of)", MG: A(419), MW: A(453), MY: A(588), MV: A(422), ML: "Mali", MT: "Malta", MH: A(550), MQ: A(539), MR: A(595), MU: A(433), YT: A(559), MX: "Mexico", FM: A(578), MD: A(589), MC: "Monaco", MN: A(520), ME: A(469), MS: A(425), MA: A(566), MZ: A(503), MM: A(445), NA: "Namibia", NR: A(446), NP: A(535), NL: "Netherlands", NC: A(484), NZ: A(579), NI: A(460), NE: "Niger", NG: A(515), NU: A(540), NF: A(536), MP: A(420), NO: A(600), OM: A(510), PK: A(506), PW: A(554), PS: "Palestine, State of", PA: A(570), PG: A(594), PY: "Paraguay", PE: A(534), PH: "Philippines", PN: "Pitcairn", PL: A(591), PT: A(553), PR: A(459), QA: A(443), RE: A(556), RO: A(548), RU: "Russian Federation", RW: A(538), BL: A(564), SH: "Saint Helena, Ascension and Tristan da Cunha", KN: "Saint Kitts and Nevis", LC: A(462), MF: A(508), PM: A(426), VC: A(483), WS: A(454), SM: A(478), ST: A(571), SA: A(497), SN: A(448), RS: "Serbia", SC: "Seychelles", SL: "Sierra Leone", SG: A(471), SX: "Sint Maarten (Dutch part)", SK: "Slovakia", SI: "Slovenia", SB: A(512), SO: A(599), ZA: A(451), GS: A(521), SS: A(418), ES: A(431), LK: A(429), SD: A(452), SR: A(499), SJ: "Svalbard and Jan Mayen", SZ: "Swaziland", SE: "Sweden", CH: A(435), SY: "Syrian Arab Republic", TW: A(513), TJ: "Tajikistan", TZ: A(476), TH: A(447), TL: "Timor-Leste", TG: A(533), TK: A(580), TO: A(560), TT: A(477), TN: A(467), TR: A(551), TM: A(530), TC: A(517), TV: "Tuvalu", UG: "Uganda", UA: A(596), AE: A(525), GB: A(415), US: A(465), UM: "United States Minor Outlying Islands", UY: A(598), UZ: A(522), VU: A(590), VE: A(493), VN: A(412), VG: A(421), VI: A(479), WF: A(504), EH: A(481), YE: A(572), ZM: A(528), ZW: "Zimbabwe" }, Ve = nf;
12825
12825
  (function(e, t) {
12826
12826
  const n = nf, i = e();
12827
12827
  for (; ; )
@@ -12832,9 +12832,9 @@ const Qd = { AF: "Afghanistan", AX: A(414), AL: A(507), DZ: A(494), AS: A(417),
12832
12832
  i.push(i.shift());
12833
12833
  }
12834
12834
  })(Mr, 271873);
12835
- const ea = { gov: { prod: { log: Be(329), report: Be(382) }, beta: { log: Be(357), report: "https://log.beta-vpe.gov-ntruss.com/stats" } }, pub: { prod: { log: Be(310), report: Be(313) }, beta: { log: "https://papi.beta-vpe.naverncp.com/player/maSync", report: Be(351) } } };
12836
- let Ue = { video: {}, browser: {}, device: {}, connection: {}, screen: {}, player_version: Be(372), extra: { sessionId: null, playerType: "VPE React Native" }, log_type: Be(385), privacy: { cookie_enabled: !0 } }, Et = { platform: "pub", stage: Be(317), sync: !1, syncResult: {} };
12837
- const Sb = (/* @__PURE__ */ new Date())[Be(337)](), Jd = (e) => e;
12835
+ const ea = { gov: { prod: { log: Ve(329), report: Ve(382) }, beta: { log: Ve(357), report: "https://log.beta-vpe.gov-ntruss.com/stats" } }, pub: { prod: { log: Ve(310), report: Ve(313) }, beta: { log: "https://papi.beta-vpe.naverncp.com/player/maSync", report: Ve(351) } } };
12836
+ let Oe = { video: {}, browser: {}, device: {}, connection: {}, screen: {}, player_version: Ve(372), extra: { sessionId: null, playerType: "VPE React Native" }, log_type: Ve(385), privacy: { cookie_enabled: !0 } }, Et = { platform: "pub", stage: Ve(317), sync: !1, syncResult: {} };
12837
+ const Sb = (/* @__PURE__ */ new Date())[Ve(337)](), Jd = (e) => e;
12838
12838
  function $i() {
12839
12839
  return Xd();
12840
12840
  }
@@ -12842,7 +12842,7 @@ function Ml() {
12842
12842
  return Xd();
12843
12843
  }
12844
12844
  const ef = () => {
12845
- const e = Be, t = /* @__PURE__ */ new Date(), n = (s) => String(s)[e(380)](2, "0"), i = t.getFullYear() + "-" + n(t[e(312)]() + 1) + "-" + n(t[e(378)]()) + " " + n(t[e(322)]()) + ":" + n(t[e(315)]()) + ":" + n(t[e(347)]()), r = Math.floor(t[e(337)]() / 1e3), o = (/* @__PURE__ */ new Date())[e(337)]() - Sb;
12845
+ const e = Ve, t = /* @__PURE__ */ new Date(), n = (s) => String(s)[e(380)](2, "0"), i = t.getFullYear() + "-" + n(t[e(312)]() + 1) + "-" + n(t[e(378)]()) + " " + n(t[e(322)]()) + ":" + n(t[e(315)]()) + ":" + n(t[e(347)]()), r = Math.floor(t[e(337)]() / 1e3), o = (/* @__PURE__ */ new Date())[e(337)]() - Sb;
12846
12846
  return { logDate: i, logDateUnix: r, thisSec: o };
12847
12847
  };
12848
12848
  function Mr() {
@@ -12855,7 +12855,7 @@ function xb(e) {
12855
12855
  return typeof e == "object" && e !== null && !Array.isArray(e);
12856
12856
  }
12857
12857
  function tf(e, t) {
12858
- const n = Be;
12858
+ const n = Ve;
12859
12859
  Object[n(376)](t).forEach(([i, r]) => {
12860
12860
  const o = n;
12861
12861
  xb(r) ? (!e[i] && (e[i] = {}), Object[o(376)](r)[o(371)](([s, a]) => {
@@ -12864,19 +12864,19 @@ function tf(e, t) {
12864
12864
  });
12865
12865
  }
12866
12866
  function Tb(e) {
12867
- const t = Be;
12867
+ const t = Ve;
12868
12868
  return e[t(367)](t(346)) > -1 ? t(377) : e[t(367)](t(330)) > -1 ? t(316) : t(370);
12869
12869
  }
12870
12870
  function kb(e) {
12871
- const t = Be, n = [];
12871
+ const t = Ve, n = [];
12872
12872
  return e != null && e.r1 && n[t(324)](e.r1), e != null && e.r2 && n[t(324)](e.r2), e != null && e.r3 && n.push(e.r3), n[t(361)](" ");
12873
12873
  }
12874
12874
  function Eb(e) {
12875
12875
  var n, i;
12876
- const t = Be;
12876
+ const t = Ve;
12877
12877
  e[t(323)] === "1.0" && (e[t(323)] = 0), e[t(323)] === void 0 && (e[t(323)] = 0), [t(365), t(362), t(386), "seekedTime"][t(371)]((r) => {
12878
12878
  e[r] === void 0 && (e[r] = 0);
12879
- }), e[t(326)] === void 0 && ((n = Ue[t(366)]) != null && n[t(326)]) && (e.type = Ue.video[t(326)]), e[t(314)] === void 0 && ((i = Ue[t(366)]) != null && i.url) && (e[t(314)] = Ue[t(366)].url, e.videoFormat = Tb(e[t(314)]));
12879
+ }), e[t(326)] === void 0 && ((n = Oe[t(366)]) != null && n[t(326)]) && (e.type = Oe.video[t(326)]), e[t(314)] === void 0 && ((i = Oe[t(366)]) != null && i.url) && (e[t(314)] = Oe[t(366)].url, e.videoFormat = Tb(e[t(314)]));
12880
12880
  }
12881
12881
  function Mb(e) {
12882
12882
  return !!(e.UUID && e.TID && e.host);
@@ -12886,7 +12886,7 @@ function nf(e, t) {
12886
12886
  }
12887
12887
  function ta(e) {
12888
12888
  var n, i;
12889
- const t = Be;
12889
+ const t = Ve;
12890
12890
  try {
12891
12891
  const r = (n = Et[t(318)]) == null ? void 0 : n.geoLocation;
12892
12892
  r && (e[t(355)] = kb(r), e[t(309)] = r[t(344)] || "", e.ip = ((i = Et[t(318)]) == null ? void 0 : i.ip) || "", e[t(379)] = r.country || "");
@@ -12895,19 +12895,19 @@ function ta(e) {
12895
12895
  }
12896
12896
  const Pb = async (e) => {
12897
12897
  var o, s;
12898
- const t = Be;
12898
+ const t = Ve;
12899
12899
  if (!e) return;
12900
12900
  const { platform: n, stage: i } = Et, r = ea[n][i].log;
12901
12901
  try {
12902
12902
  const a = await fetch(r, { method: t(327), headers: { "Content-Type": "application/json" }, body: JSON.stringify({ access_key: e }) }), c = await a[t(332)]();
12903
12903
  Et[t(321)] = ((o = c[t(325)]) == null ? void 0 : o[t(321)]) || !1, Et[t(318)] = c[t(325)] || {};
12904
12904
  const { logDate: l, logDateUnix: u } = ef();
12905
- return Ue[t(354)][t(343)] = l, Ue[t(354)][t(338)] = u, (s = Et[t(318)]) != null && s[t(320)] && ta(Ue[t(354)]), c;
12905
+ return Oe[t(354)][t(343)] = l, Oe[t(354)][t(338)] = u, (s = Et[t(318)]) != null && s[t(320)] && ta(Oe[t(354)]), c;
12906
12906
  } catch (a) {
12907
12907
  return console[t(353)](t(384), a), null;
12908
12908
  }
12909
12909
  }, Ab = async (e) => {
12910
- const t = Be, { platform: n, stage: i } = Et, r = Jd(ea[n][i][t(363)]), o = { ...e };
12910
+ const t = Ve, { platform: n, stage: i } = Et, r = Jd(ea[n][i][t(363)]), o = { ...e };
12911
12911
  o.log_type = "vpe", ta(o[t(354)]);
12912
12912
  try {
12913
12913
  await fetch(r, { method: t(327), headers: { "Content-Type": t(334) }, body: JSON.stringify(o) });
@@ -12915,7 +12915,7 @@ const Pb = async (e) => {
12915
12915
  console[t(353)](t(331), s);
12916
12916
  }
12917
12917
  }, Cb = async (e) => {
12918
- const t = Be, { platform: n, stage: i } = Et, r = Jd(ea[n][i][t(363)]), o = JSON.parse(JSON.stringify(Ue));
12918
+ const t = Ve, { platform: n, stage: i } = Et, r = Jd(ea[n][i][t(363)]), o = JSON.parse(JSON.stringify(Oe));
12919
12919
  if (tf(o, e), o.log_type = "MA", ta(o[t(354)]), Eb(o[t(354)]), !!Mb(o[t(354)]))
12920
12920
  try {
12921
12921
  o.type != "timeupdate", await fetch(r, { method: t(327), headers: { "Content-Type": t(334) }, body: JSON[t(306)](o) });
@@ -12924,13 +12924,13 @@ const Pb = async (e) => {
12924
12924
  }
12925
12925
  };
12926
12926
  async function Ib(e, t, n, i, r) {
12927
- const o = Be;
12928
- Et[o(364)] = e, Et.stage = t, tf(Ue, n), i && (Ue[o(354)][o(305)] = i), r && (Ue.extra[o(374)] = r), Ue.extra[o(379)] ? Ue[o(342)].country = Qd[Ue[o(354)][o(379)]] || o(369) : Ue.browser[o(311)] = o(369);
12927
+ const o = Ve;
12928
+ Et[o(364)] = e, Et.stage = t, tf(Oe, n), i && (Oe[o(354)][o(305)] = i), r && (Oe.extra[o(374)] = r), Oe.extra[o(379)] ? Oe[o(342)].country = Qd[Oe[o(354)][o(379)]] || o(369) : Oe.browser[o(311)] = o(369);
12929
12929
  const { logDate: s, logDateUnix: a } = ef();
12930
- Ue[o(354)].logDate = s, Ue[o(354)][o(338)] = a, Ue[o(354)].created_at = a;
12930
+ Oe[o(354)].logDate = s, Oe[o(354)][o(338)] = a, Oe[o(354)].created_at = a;
12931
12931
  }
12932
12932
  async function Rb(e) {
12933
- const t = Be, n = JSON[t(356)](JSON.stringify(Ue));
12933
+ const t = Ve, n = JSON[t(356)](JSON.stringify(Oe));
12934
12934
  e[t(354)] && Object[t(359)](n[t(354)], e[t(354)]), n.video = e[t(366)], await Ab(n), console[t(349)](t(383));
12935
12935
  }
12936
12936
  const Pl = na;
@@ -12973,7 +12973,7 @@ function ia(e, t) {
12973
12973
  i.push(i.shift());
12974
12974
  }
12975
12975
  })(Ar, 645393);
12976
- const Al = "0p", Db = 59e3, Vb = 1, ce = { PLAYER_START: Q(378), STARTUP: Q(441), PLAY: "play", PAUSE: Q(405), PLAYING: Q(347), PAUSED: Q(405), SEEKING: Q(408), SEEKED: Q(435), WAITING: Q(393), WAITING_END: Q(380), CANPLAY: Q(398), ENDED: Q(440), NEXT_TRACK: Q(436), PREV_TRACK: Q(377), ERROR: Q(372), QUALITY_CHANGE: Q(394), REBUFFERING: Q(410), TIMEUPDATE: Q(321), TIMEUPDATE_FOCUS: Q(419), RATE_CHANGE: Q(389), FULLSCREEN_CHANGE: "fullscreenchange" };
12976
+ const Al = "0p", Db = 59e3, Vb = 1, le = { PLAYER_START: Q(378), STARTUP: Q(441), PLAY: "play", PAUSE: Q(405), PLAYING: Q(347), PAUSED: Q(405), SEEKING: Q(408), SEEKED: Q(435), WAITING: Q(393), WAITING_END: Q(380), CANPLAY: Q(398), ENDED: Q(440), NEXT_TRACK: Q(436), PREV_TRACK: Q(377), ERROR: Q(372), QUALITY_CHANGE: Q(394), REBUFFERING: Q(410), TIMEUPDATE: Q(321), TIMEUPDATE_FOCUS: Q(419), RATE_CHANGE: Q(389), FULLSCREEN_CHANGE: "fullscreenchange" };
12977
12977
  function Ar() {
12978
12978
  const e = ["handleTrackChange", "handlePlayerStart", "prevTime", "playing", "handleTimeUpdateFocus", "isPlaying", "code", "speedChangeCnt", "percent", "padStart", "ERROR", "handleSeeked", "contentId", "round", "PAUSE", "initializeReportData", "1896648FxHWuA", "getMonth", "quality", "isEnded", "handleStartup", "1668294mvhfNF", "stageData", "3784638Ttxkyc", "firstPlay", "playedTime", "floor", "object", "error", "1tCVHFK", "handleTimeUpdate", "4061496OLZfit", "handlePlay", "prevTrack", "player_start", "SEEKED", "waitingEnd", "report", "30RfaxCV", "TIMEUPDATE_FOCUS", "getMinutes", "getSeconds", "PLAYER_START", "firstError", "NEXT_TRACK", "ratechange", "vpe", "getDate", "prevAction", "waiting", "quality_change", "PAUSED", "FULLSCREEN_CHANGE", "handleRateChange", "canplay", "handleWaiting", "now", "prevUrl", "latest", "UUID", "url", "pause", "getHours", "getTime", "seeking", "ENDED", "rebuffering", "isSeeking", "initTimeupdate", "extra", "STARTUP", "contentDuration", "pauseCnt", "message", "playbackRate", "timeupdateFocus", "3FrDunF", "QUALITY_CHANGE", "handlePause", "Korea, Republic of", "dispatchEvent", "WAITING", "video", "handleQualityChange", "handleFullscreenChange", "state", "SEEKING", "handleError", "isPlainObject", "WAITING_END", "2936755yxHYAv", "seeked", "nextTrack", "prevQuality", "resetStateForNewTrack", "handleEnded", "ended", "startup", "reportData", "country", "timeupdate", "browser", "REBUFFERING", "currentTime", "firstPlaying", "E0000", "entries", "startTime", "PLAYING", "VPE", "1044461mluzzJ", "2561554RTyBSa", "lastPlaybackSpeed", "maSync", "CANPLAY", "seekCnt", "handleWaitingEnd", "handleCanplay", "sessionId", "fullscreenYn", "isBuffering", "PLAY", "7OcaxBq"];
12979
12979
  return Ar = function() {
@@ -12983,9 +12983,9 @@ function Ar() {
12983
12983
  var Bl, Dl;
12984
12984
  class Nb {
12985
12985
  constructor(t, n, i) {
12986
- Ce(this, Dl);
12987
- Ce(this, "stageData");
12988
- Ce(this, Bl);
12986
+ Ie(this, Dl);
12987
+ Ie(this, "stageData");
12988
+ Ie(this, Bl);
12989
12989
  const r = Q;
12990
12990
  this[r(366)] = { platform: t, stage: n, sync: !1, syncResult: {} }, this[r(442)] = { video: {}, browser: {}, device: {}, connection: {}, screen: {}, player_version: r(402), extra: { UUID: null, TID: null, sessionId: null, playerType: r(330), playAttempt: !1 }, log_type: r(390), privacy: { cookie_enabled: !0 } }, this.state = { prevAction: null, isPlaying: !1, isSeeking: !1, initTimeupdate: !1, isBuffering: !1, firstError: !1, isEnded: !1, firstPlay: !0, firstPlaying: !0, startTime: 0, prevTime: 0, startUpDuration: 0, prevUrl: "", prevQuality: Al, pauseCnt: 0, seekCnt: 0, speedChangeCnt: 0, lastPlaybackSpeed: 1, fullscreenYn: !1, contentId: null, contentDuration: 0 }, this[r(359)](i), this.stageData;
12991
12991
  }
@@ -13023,114 +13023,114 @@ class Nb {
13023
13023
  [Q(424)](t) {
13024
13024
  const n = Q, { type: i, data: r } = t, o = { url: (r == null ? void 0 : r[n(404)]) || this[n(429)].prevUrl, type: r == null ? void 0 : r.type, quality: (r == null ? void 0 : r[n(362)]) || this[n(429)].prevQuality, data: r };
13025
13025
  switch (i) {
13026
- case ce[n(386)]:
13026
+ case le[n(386)]:
13027
13027
  this[n(345)](o, r);
13028
13028
  break;
13029
- case ce[n(414)]:
13029
+ case le[n(414)]:
13030
13030
  this[n(364)](o, r);
13031
13031
  break;
13032
- case ce[n(342)]:
13032
+ case le[n(342)]:
13033
13033
  this[n(376)](o, r);
13034
13034
  break;
13035
- case ce[n(358)]:
13035
+ case le[n(358)]:
13036
13036
  this[n(422)](o, r);
13037
13037
  break;
13038
- case ce.TIMEUPDATE:
13038
+ case le.TIMEUPDATE:
13039
13039
  this[n(374)](o, r);
13040
13040
  break;
13041
- case ce[n(383)]:
13041
+ case le[n(383)]:
13042
13042
  this[n(348)](o, r);
13043
13043
  break;
13044
- case ce[n(430)]:
13044
+ case le[n(430)]:
13045
13045
  this.handleSeeking(o, r);
13046
13046
  break;
13047
- case ce[n(379)]:
13047
+ case le[n(379)]:
13048
13048
  this[n(355)](o, r);
13049
13049
  break;
13050
- case ce[n(425)]:
13050
+ case le[n(425)]:
13051
13051
  this.handleWaiting(o, r);
13052
13052
  break;
13053
- case ce[n(433)]:
13053
+ case le[n(433)]:
13054
13054
  this[n(337)](o, r);
13055
13055
  break;
13056
- case ce[n(335)]:
13056
+ case le[n(335)]:
13057
13057
  this[n(338)](o, r);
13058
13058
  break;
13059
- case ce.ENDED:
13059
+ case le.ENDED:
13060
13060
  this[n(439)](o, r);
13061
13061
  break;
13062
13062
  case "nextTrack":
13063
13063
  case n(377):
13064
13064
  this[n(344)](i, o, r);
13065
13065
  break;
13066
- case ce[n(354)]:
13066
+ case le[n(354)]:
13067
13067
  this[n(431)](o, r);
13068
13068
  break;
13069
- case ce[n(421)]:
13069
+ case le[n(421)]:
13070
13070
  this[n(427)](o, r);
13071
13071
  break;
13072
- case ce.RATE_CHANGE:
13072
+ case le.RATE_CHANGE:
13073
13073
  this[n(397)](o, r);
13074
13074
  break;
13075
- case ce[n(396)]:
13075
+ case le[n(396)]:
13076
13076
  this[n(428)](o, r);
13077
13077
  break;
13078
13078
  }
13079
13079
  }
13080
13080
  [Q(345)](t, n) {
13081
13081
  const i = Q;
13082
- !this[i(442)].extra[i(339)] && (this[i(442)][i(413)].sessionId = Ml(), this[i(442)][i(413)].TID = $i(), this[i(442)][i(413)][i(403)] = $i()), this.state.startTime = Date[i(400)](), this.state[i(346)] = this[i(429)][i(328)], this[i(381)](ce.PLAYER_START, { ...t, data: n });
13082
+ !this[i(442)].extra[i(339)] && (this[i(442)][i(413)].sessionId = Ml(), this[i(442)][i(413)].TID = $i(), this[i(442)][i(413)][i(403)] = $i()), this.state.startTime = Date[i(400)](), this.state[i(346)] = this[i(429)][i(328)], this[i(381)](le.PLAYER_START, { ...t, data: n });
13083
13083
  }
13084
13084
  [Q(364)](t, n) {
13085
13085
  const i = Q;
13086
- this[i(429)][i(325)] && (n != null && n.contentId && (this[i(429)][i(356)] = n.contentId), n != null && n.duration && (this[i(429)][i(415)] = Math[i(357)](n.duration * 1e3)), this[i(381)](ce[i(414)], { ...t, data: n }), this[i(429)].firstPlaying = !1);
13086
+ this[i(429)][i(325)] && (n != null && n.contentId && (this[i(429)][i(356)] = n.contentId), n != null && n.duration && (this[i(429)][i(415)] = Math[i(357)](n.duration * 1e3)), this[i(381)](le[i(414)], { ...t, data: n }), this[i(429)].firstPlaying = !1);
13087
13087
  }
13088
13088
  [Q(376)](t, n) {
13089
13089
  const i = Q;
13090
- this[i(429)].isPlaying || (this[i(442)][i(413)][i(369)] = n == null ? void 0 : n[i(369)], this[i(442)][i(413)].percent = n == null ? void 0 : n[i(352)], this[i(429)][i(349)] = !0, this[i(442)][i(413)].playAttempt = !0, this.state[i(368)] && (this[i(429)][i(368)] = !1), this[i(429)].prevAction === ce[i(395)] && this[i(381)](ce.PLAYING, { ...t, data: n }), this.state[i(392)] = ce[i(329)]);
13090
+ this[i(429)].isPlaying || (this[i(442)][i(413)][i(369)] = n == null ? void 0 : n[i(369)], this[i(442)][i(413)].percent = n == null ? void 0 : n[i(352)], this[i(429)][i(349)] = !0, this[i(442)][i(413)].playAttempt = !0, this.state[i(368)] && (this[i(429)][i(368)] = !1), this[i(429)].prevAction === le[i(395)] && this[i(381)](le.PLAYING, { ...t, data: n }), this.state[i(392)] = le[i(329)]);
13091
13091
  }
13092
13092
  handlePause(t, n) {
13093
13093
  const i = Q;
13094
- this.state[i(411)] || this[i(429)][i(341)] || !this[i(429)][i(349)] || (this[i(429)].pauseCnt++, this[i(429)][i(349)] = !1, this.report(ce[i(395)], { ...t, data: n }), this[i(429)][i(392)] = ce.PAUSED);
13094
+ this.state[i(411)] || this[i(429)][i(341)] || !this[i(429)][i(349)] || (this[i(429)].pauseCnt++, this[i(429)][i(349)] = !1, this.report(le[i(395)], { ...t, data: n }), this[i(429)][i(392)] = le.PAUSED);
13095
13095
  }
13096
13096
  [Q(374)](t, n) {
13097
13097
  const i = Q;
13098
- this[i(429)][i(349)] = !0, this[i(442)].extra.playAttempt = !0, !(this[i(442)][i(413)][i(324)] < Vb) && (this[i(429)].isPlaying && Date[i(400)]() - this[i(429)].prevTime > Db && this[i(381)](ce.PLAYING, { ...t, data: n }), this[i(429)][i(401)] = t[i(404)] || "", this.state[i(437)] = t[i(362)] || Al);
13098
+ this[i(429)][i(349)] = !0, this[i(442)].extra.playAttempt = !0, !(this[i(442)][i(413)][i(324)] < Vb) && (this[i(429)].isPlaying && Date[i(400)]() - this[i(429)].prevTime > Db && this[i(381)](le.PLAYING, { ...t, data: n }), this[i(429)][i(401)] = t[i(404)] || "", this.state[i(437)] = t[i(362)] || Al);
13099
13099
  }
13100
13100
  [Q(348)](t, n) {
13101
13101
  const i = Q;
13102
- this[i(442)][i(413)][i(324)] > 0 && (this[i(381)](ce[i(329)], { ...t, data: n }), this.state[i(412)] = !0);
13102
+ this[i(442)][i(413)][i(324)] > 0 && (this[i(381)](le[i(329)], { ...t, data: n }), this.state[i(412)] = !0);
13103
13103
  }
13104
13104
  handleSeeking(t, n) {
13105
13105
  const i = Q;
13106
- this[i(429)][i(411)] || (this[i(429)][i(336)]++, this[i(429)][i(411)] = !0, this.state.isPlaying ? this[i(381)](ce[i(329)], { ...t, data: n }) : this.state.prevAction === ce[i(395)] && this.report(ce[i(395)], { ...t, data: n }), this[i(429)][i(392)] = ce[i(430)]);
13106
+ this[i(429)][i(411)] || (this[i(429)][i(336)]++, this[i(429)][i(411)] = !0, this.state.isPlaying ? this[i(381)](le[i(329)], { ...t, data: n }) : this.state.prevAction === le[i(395)] && this.report(le[i(395)], { ...t, data: n }), this[i(429)][i(392)] = le[i(430)]);
13107
13107
  }
13108
13108
  [Q(355)](t, n) {
13109
13109
  const i = Q;
13110
- this[i(429)][i(411)] && (this[i(429)][i(411)] = !1, this[i(381)](ce[i(430)], { ...t, data: n }), this[i(429)][i(392)] = this[i(429)][i(349)] ? ce[i(329)] : ce[i(395)]);
13110
+ this[i(429)][i(411)] && (this[i(429)][i(411)] = !1, this[i(381)](le[i(430)], { ...t, data: n }), this[i(429)][i(392)] = this[i(429)][i(349)] ? le[i(329)] : le[i(395)]);
13111
13111
  }
13112
13112
  [Q(399)](t, n) {
13113
13113
  const i = Q;
13114
- this[i(429)][i(411)] || this[i(429)].isBuffering || (this[i(429)][i(341)] = !0, this[i(429)].isPlaying && this[i(381)](ce.PLAYING, { ...t, data: n }), this[i(429)][i(392)] = ce.REBUFFERING);
13114
+ this[i(429)][i(411)] || this[i(429)].isBuffering || (this[i(429)][i(341)] = !0, this[i(429)].isPlaying && this[i(381)](le.PLAYING, { ...t, data: n }), this[i(429)][i(392)] = le.REBUFFERING);
13115
13115
  }
13116
13116
  handleWaitingEnd(t, n) {
13117
13117
  const i = Q;
13118
- this[i(429)][i(411)] || this[i(429)].isBuffering || (this[i(429)][i(341)] = !0, this.state.isPlaying && this[i(381)](ce.PLAYING, { ...t, data: n }), this[i(429)][i(392)] = ce[i(323)]);
13118
+ this[i(429)][i(411)] || this[i(429)].isBuffering || (this[i(429)][i(341)] = !0, this.state.isPlaying && this[i(381)](le.PLAYING, { ...t, data: n }), this[i(429)][i(392)] = le[i(323)]);
13119
13119
  }
13120
13120
  handleCanplay(t, n) {
13121
13121
  const i = Q;
13122
- this[i(429)][i(341)] && (this.state[i(341)] = !1, this[i(381)](ce[i(323)], { ...t, data: n }), this.state[i(392)] = this.state[i(349)] ? ce[i(329)] : ce.PAUSED);
13122
+ this[i(429)][i(341)] && (this.state[i(341)] = !1, this[i(381)](le[i(323)], { ...t, data: n }), this.state[i(392)] = this.state[i(349)] ? le[i(329)] : le.PAUSED);
13123
13123
  }
13124
13124
  [Q(439)](t, n) {
13125
13125
  const i = Q;
13126
13126
  if (this[i(429)][i(363)]) return;
13127
- this[i(429)][i(363)] = !0, this[i(429)][i(349)] = !1, this[i(429)][i(392)] !== ce[i(395)] && this[i(381)](this[i(429)][i(392)] || ce[i(329)], { ...t, data: n });
13127
+ this[i(429)][i(363)] = !0, this[i(429)][i(349)] = !1, this[i(429)][i(392)] !== le[i(395)] && this[i(381)](this[i(429)][i(392)] || le[i(329)], { ...t, data: n });
13128
13128
  const r = ((n == null ? void 0 : n.currentTime) || 0) * 1e3, o = this.state[i(415)], s = o > 0 ? Math.round(r / o * 1e4) / 100 : 0, a = this[i(442)][i(413)].playedTime || 0, c = { ...t, data: { ...n, contentId: this[i(429)][i(356)], contentDuration: o, watchPercent: s, isCompleted: s >= 95, isBounce: a < 1e4, pauseCnt: this[i(429)].pauseCnt, seekCnt: this.state[i(336)], speedChangeCnt: this[i(429)][i(351)], lastPlaybackSpeed: this[i(429)][i(333)], fullscreenYn: this[i(429)][i(340)], dropOffPosition: Math[i(357)](r) } };
13129
- this.report(ce[i(409)], c);
13129
+ this.report(le[i(409)], c);
13130
13130
  }
13131
13131
  [Q(344)](t, n, i) {
13132
- const r = Q, o = t === "nextTrack" ? ce[r(388)] : ce.PREV_TRACK;
13133
- this.report(this[r(429)][r(392)] || ce[r(329)], { ...n, data: i }).then(() => {
13132
+ const r = Q, o = t === "nextTrack" ? le[r(388)] : le.PREV_TRACK;
13133
+ this.report(this[r(429)][r(392)] || le[r(329)], { ...n, data: i }).then(() => {
13134
13134
  this.report(o, { ...n, data: i }).then(() => {
13135
13135
  this[ia(438)]();
13136
13136
  });
@@ -13140,11 +13140,11 @@ class Nb {
13140
13140
  const i = Q;
13141
13141
  this.state[i(392)] && !this[i(429)][i(325)] && this[i(381)](this.state.prevAction, { ...t, data: n });
13142
13142
  const r = { errorCode: (n == null ? void 0 : n[i(350)]) || i(326), errorMessage: (n == null ? void 0 : n[i(417)]) || "Unknown Error" };
13143
- this[i(381)](ce[i(354)], { ...t, data: { ...n, ...r } }), this[i(429)][i(387)] = !0;
13143
+ this[i(381)](le[i(354)], { ...t, data: { ...n, ...r } }), this[i(429)][i(387)] = !0;
13144
13144
  }
13145
13145
  [Q(427)](t, n) {
13146
13146
  const i = Q;
13147
- this.state[i(392)] && !this[i(429)][i(411)] && !this.state[i(341)] && !this.state.firstPlaying && (this.state.isSeeking = !0, this[i(381)](this[i(429)][i(392)], { ...t, data: n }), this[i(429)][i(392)] = ce.SEEKING);
13147
+ this.state[i(392)] && !this[i(429)][i(411)] && !this.state[i(341)] && !this.state.firstPlaying && (this.state.isSeeking = !0, this[i(381)](this[i(429)][i(392)], { ...t, data: n }), this[i(429)][i(392)] = le.SEEKING);
13148
13148
  }
13149
13149
  [Q(397)](t, n) {
13150
13150
  const i = Q, r = (n == null ? void 0 : n[i(418)]) || 1;
@@ -13186,20 +13186,20 @@ const zb = (e) => {
13186
13186
  var Vl, Nl, Fl, zl, Ul, Hl, Ol, jl, Wl, _l, $l;
13187
13187
  class Ub {
13188
13188
  constructor({ accessKey: t, appId: n, platform: i, stage: r, isDev: o = !1, language: s }) {
13189
- Ce(this, $l, {});
13190
- Ce(this, _l, null);
13191
- Ce(this, "accessKey");
13192
- Ce(this, Wl);
13193
- Ce(this, jl);
13194
- Ce(this, Ol);
13195
- Ce(this, "isDev");
13196
- Ce(this, Hl, Xo());
13197
- Ce(this, Ul);
13198
- Ce(this, zl, null);
13199
- Ce(this, Fl, null);
13200
- Ce(this, Nl, null);
13201
- Ce(this, "hasFirstPlayReported", !1);
13202
- Ce(this, Vl, 0);
13189
+ Ie(this, $l, {});
13190
+ Ie(this, _l, null);
13191
+ Ie(this, "accessKey");
13192
+ Ie(this, Wl);
13193
+ Ie(this, jl);
13194
+ Ie(this, Ol);
13195
+ Ie(this, "isDev");
13196
+ Ie(this, Hl, Xo());
13197
+ Ie(this, Ul);
13198
+ Ie(this, zl, null);
13199
+ Ie(this, Fl, null);
13200
+ Ie(this, Nl, null);
13201
+ Ie(this, "hasFirstPlayReported", !1);
13202
+ Ie(this, Vl, 0);
13203
13203
  const a = ue;
13204
13204
  this.accessKey = t, this[a(330)] = n || location[a(384)], this[a(272)] = i, this[a(316)] = r, this.isDev = o, this[a(279)](s), this[a(243)] = { errorCode: null, errorMessage: null };
13205
13205
  }
@@ -13434,7 +13434,7 @@ function Wb({
13434
13434
  vpe: o,
13435
13435
  scopeId: s
13436
13436
  }) {
13437
- const [a] = Te(), c = j(null), l = j(null), u = j(!1), d = j(!1), f = ee(
13437
+ const [a] = Ee(), c = j(null), l = j(null), u = j(!1), d = j(!1), f = ee(
13438
13438
  (m, p, g) => {
13439
13439
  var E;
13440
13440
  const b = a != null ? a : {}, v = Ob(b, n, i), k = jb(b, n, i), w = (E = n == null ? void 0 : n[i]) == null ? void 0 : E.description;
@@ -13463,7 +13463,7 @@ function Wb({
13463
13463
  d.current || (d.current = !0, f("start"));
13464
13464
  }, [f]), B(() => {
13465
13465
  const m = a != null ? a : {}, p = c.current;
13466
- c.current = m, p && p !== m && (f("stateChange", void 0, p), p.isPlaying !== m.isPlaying && typeof m.isPlaying == "boolean" && f(m.isPlaying ? "play" : "pause", void 0, p), p.isFullscreen !== m.isFullscreen && typeof m.isFullscreen == "boolean" && f(m.isFullscreen ? "fullscreen" : "fullscreenExit", void 0, p), p.isLoading !== m.isLoading && typeof m.isLoading == "boolean" && f(m.isLoading ? "loadingStart" : "loadingEnd", void 0, p), p.isWaiting !== m.isWaiting && typeof m.isWaiting == "boolean" && f(m.isWaiting ? "bufferingStart" : "bufferingEnd", void 0, p));
13466
+ c.current = m, p && p !== m && (f("stateChange", void 0, p), p.isPlaying !== m.isPlaying && typeof m.isPlaying == "boolean" && f(m.isPlaying ? "play" : "pause", void 0, p), p.isFullscreen !== m.isFullscreen && typeof m.isFullscreen == "boolean" && (f(m.isFullscreen ? "fullscreen" : "fullscreenExit", void 0, p), f("fullscreenchange", { isFullscreen: m.isFullscreen }, p)), p.isLoading !== m.isLoading && typeof m.isLoading == "boolean" && f(m.isLoading ? "loadingStart" : "loadingEnd", void 0, p), p.isWaiting !== m.isWaiting && typeof m.isWaiting == "boolean" && f(m.isWaiting ? "bufferingStart" : "bufferingEnd", void 0, p));
13467
13467
  }, [a, f]), B(() => {
13468
13468
  !t || u.current || (u.current = !0, f("ready", { playlist: n }));
13469
13469
  }, [t, n.length, f]), B(() => {
@@ -13488,7 +13488,7 @@ function _b({
13488
13488
  onError: s
13489
13489
  }) {
13490
13490
  var S, P;
13491
- const [a, c] = oe(null), [l, u] = oe(!1), [d, f] = oe([]), [m, p] = oe(!1), g = we(() => {
13491
+ const [a, c] = oe(null), [l, u] = oe(!1), [d, f] = oe([]), [m, p] = oe(!1), g = Se(() => {
13492
13492
  if (!r) return {};
13493
13493
  const { layout: I, ...R } = r;
13494
13494
  return R;
@@ -13530,7 +13530,7 @@ function _b({
13530
13530
  var R, N;
13531
13531
  if (!o || !a || !l) return;
13532
13532
  const I = (N = (R = a == null ? void 0 : a.isPaidTier) == null ? void 0 : R.call(a)) != null ? N : !0;
13533
- dt(o, "isPaidTier", I);
13533
+ ft(o, "isPaidTier", I);
13534
13534
  }, [o, a, l]);
13535
13535
  const E = (P = (S = a == null ? void 0 : a.isPaidTier) == null ? void 0 : S.call(a)) != null ? P : !0;
13536
13536
  return {
@@ -13660,7 +13660,9 @@ const qb = [
13660
13660
  "adBreakEnd",
13661
13661
  "introSkip",
13662
13662
  "openingSkip",
13663
- "endingSkip"
13663
+ "endingSkip",
13664
+ "ratechange",
13665
+ "fullscreenchange"
13664
13666
  ], Yb = (e) => qb.includes(e), cf = (e) => {
13665
13667
  if (!e) return "";
13666
13668
  const t = e.toLowerCase();
@@ -13914,13 +13916,13 @@ function r1({
13914
13916
  vpe: r,
13915
13917
  scopeId: o
13916
13918
  }) {
13917
- const [s, a] = oe(!1), [c, l] = oe(null), u = j(!1), d = we(
13919
+ const [s, a] = oe(!1), [c, l] = oe(null), u = j(!1), d = Se(
13918
13920
  () => {
13919
13921
  var b, v, k, w;
13920
13922
  return (w = (k = (v = (b = e == null ? void 0 : e.startTime) != null ? b : t == null ? void 0 : t.startTime) != null ? v : e == null ? void 0 : e.setStartTime) != null ? k : t == null ? void 0 : t.setStartTime) != null ? w : null;
13921
13923
  },
13922
13924
  [e == null ? void 0 : e.startTime, t == null ? void 0 : t.startTime, e == null ? void 0 : e.setStartTime, t == null ? void 0 : t.setStartTime]
13923
- ), { startTimeText: f, timeInfoText: m, startTimeMs: p } = we(
13925
+ ), { startTimeText: f, timeInfoText: m, startTimeMs: p } = Se(
13924
13926
  () => n1(d),
13925
13927
  [d]
13926
13928
  );
@@ -13954,8 +13956,8 @@ function r1({
13954
13956
  a(!1), l(null);
13955
13957
  }, [p, m, r, n.duration]), B(() => {
13956
13958
  if (!o) return;
13957
- const b = xe(o), v = b == null ? void 0 : b.seekTo, k = n.duration, w = typeof k == "number" && Number.isFinite(k) && k > 0, M = !!(p && w && p + k * 1e3 > Date.now());
13958
- if (o && dt(o, "isPremiere", M), !p || s || !u.current || !w) return;
13959
+ const b = ke(o), v = b == null ? void 0 : b.seekTo, k = n.duration, w = typeof k == "number" && Number.isFinite(k) && k > 0, M = !!(p && w && p + k * 1e3 > Date.now());
13960
+ if (o && ft(o, "isPremiere", M), !p || s || !u.current || !w) return;
13959
13961
  const y = Math.max(0, Math.floor((Date.now() - p) / 1e3));
13960
13962
  if (y < k) {
13961
13963
  if (n.isLive === !0) return;
@@ -13972,7 +13974,7 @@ function r1({
13972
13974
  i,
13973
13975
  o
13974
13976
  ]);
13975
- const g = we(() => {
13977
+ const g = Se(() => {
13976
13978
  const b = n.duration, v = typeof b == "number" && Number.isFinite(b) && b > 0;
13977
13979
  return !!(p && v && p + b * 1e3 > Date.now());
13978
13980
  }, [p, n.duration]);
@@ -13993,7 +13995,7 @@ function o1({
13993
13995
  onError: o
13994
13996
  }) {
13995
13997
  var m;
13996
- const s = we(() => _v(e), [e]), a = we(() => $v(s), [s]), c = we(() => Gv(s), [s]), l = typeof globalThis.WebKitMediaKeys != "undefined", u = we(() => {
13998
+ const s = Se(() => _v(e), [e]), a = Se(() => $v(s), [s]), c = Se(() => Gv(s), [s]), l = typeof globalThis.WebKitMediaKeys != "undefined", u = Se(() => {
13997
13999
  var g;
13998
14000
  if (typeof document == "undefined") return !1;
13999
14001
  const p = document.createElement("video");
@@ -14009,7 +14011,7 @@ function o1({
14009
14011
  errorTitle: (v = g == null ? void 0 : g.errorMessage) == null ? void 0 : v.title
14010
14012
  });
14011
14013
  }, [r, s, o]);
14012
- const f = we(
14014
+ const f = Se(
14013
14015
  () => Wv(e, t == null ? void 0 : t.token),
14014
14016
  [e, t == null ? void 0 : t.token]
14015
14017
  );
@@ -14384,7 +14386,7 @@ function v1({
14384
14386
  }), m = j(!1), p = ee(
14385
14387
  (v) => {
14386
14388
  if (!t) return;
14387
- const k = xe(t), w = k == null ? void 0 : k.seekTo;
14389
+ const k = ke(t), w = k == null ? void 0 : k.seekTo;
14388
14390
  typeof w == "function" && (w(v), m.current = !0);
14389
14391
  },
14390
14392
  [t]
@@ -14525,39 +14527,39 @@ function qi(e, t) {
14525
14527
  }
14526
14528
  function A1(e) {
14527
14529
  var pa, ga, ya, va, ba, wa, Sa, xa, Ta, ka, Ea, Ma, Pa, Aa, Ca, Ia, Ra;
14528
- const { accessKey: t, platform: n = "pub", stage: i = "prod", isDev: r = !1, hls: o, dashjs: s, options: a, layout: c, scopeId: l } = e, [u, d] = Te(), { vpe: f, isInitialized: m, playerOptions: p, playlist: g, setPlaylist: b, isPaidTier: v, translate: k } = _b({
14530
+ const { accessKey: t, platform: n = "pub", stage: i = "prod", isDev: r = !1, hls: o, dashjs: s, options: a, layout: c, scopeId: l } = e, [u, d] = Ee(), { vpe: f, isInitialized: m, playerOptions: p, playlist: g, setPlaylist: b, isPaidTier: v, translate: k } = _b({
14529
14531
  accessKey: t,
14530
14532
  platform: n,
14531
14533
  stage: i,
14532
14534
  isDev: r,
14533
14535
  options: a,
14534
14536
  scopeId: l,
14535
- onError: (le) => fe(le)
14537
+ onError: (ce) => fe(ce)
14536
14538
  }), { pidx: w, setPidx: M, next: y, prev: E, isEndTimer: T, setIsEndTimer: S, isNextSec: P, currentItem: I, nextItem: R } = t1({
14537
14539
  playlist: g,
14538
14540
  scopeId: l
14539
14541
  });
14540
14542
  B(() => l ? (Rv(l, {
14541
- addNextSource: (We) => {
14542
- const Ae = Array.isArray(We) ? We : [We];
14543
- b((Xe) => {
14544
- const rn = [...Xe];
14545
- return rn.splice(w + 1, 0, ...Ae), rn;
14543
+ addNextSource: (Ce) => {
14544
+ const we = Array.isArray(Ce) ? Ce : [Ce];
14545
+ b((Ze) => {
14546
+ const rn = [...Ze];
14547
+ return rn.splice(w + 1, 0, ...we), rn;
14546
14548
  });
14547
14549
  },
14548
- addPrevSource: (We) => {
14549
- const Ae = Array.isArray(We) ? We : [We];
14550
- b((Xe) => {
14551
- const rn = [...Xe], Lt = Math.max(0, w);
14552
- return rn.splice(Lt, 0, ...Ae), rn;
14553
- }), M((Xe) => Xe + Ae.length);
14550
+ addPrevSource: (Ce) => {
14551
+ const we = Array.isArray(Ce) ? Ce : [Ce];
14552
+ b((Ze) => {
14553
+ const rn = [...Ze], Lt = Math.max(0, w);
14554
+ return rn.splice(Lt, 0, ...we), rn;
14555
+ }), M((Ze) => Ze + we.length);
14554
14556
  },
14555
14557
  getPlaylist: () => g,
14556
14558
  getCurrentIndex: () => w
14557
14559
  }), () => Lv(l)) : void 0, [l, w, g, b, M]);
14558
- const { settings: N, updateSetting: C } = m1(), x = we(() => qv(I), [I]), { videoType: L } = $b({ resolvedPlaylistItem: x }), V = j(null), W = ee((le) => {
14559
- var je;
14560
- (je = V.current) == null || je.call(V, le);
14560
+ const { settings: N, updateSetting: C } = m1(), x = Se(() => qv(I), [I]), { videoType: L } = $b({ resolvedPlaylistItem: x }), V = j(null), W = ee((ce) => {
14561
+ var De;
14562
+ (De = V.current) == null || De.call(V, ce);
14561
14563
  }, []), { emitEvent: O, emitVideoEvent: K, handleControlAction: $, setPlayerStateSnapshot: ne } = Qb({
14562
14564
  vpe: f,
14563
14565
  playerOptions: p,
@@ -14570,8 +14572,8 @@ function A1(e) {
14570
14572
  if (g.length > 1 && w < g.length - 1)
14571
14573
  S(!0), y(5);
14572
14574
  else if (p.loop && l) {
14573
- const le = xe(l), je = le == null ? void 0 : le.seekTo, Pe = le == null ? void 0 : le.play;
14574
- je && je(0), Pe && Pe();
14575
+ const ce = ke(l), De = ce == null ? void 0 : ce.seekTo, Te = ce == null ? void 0 : ce.play;
14576
+ De && De(0), Te && Te();
14575
14577
  }
14576
14578
  }
14577
14579
  }), {
@@ -14595,12 +14597,12 @@ function A1(e) {
14595
14597
  emitEvent: O,
14596
14598
  sourceFile: x == null ? void 0 : x.file,
14597
14599
  retry: a == null ? void 0 : a.retry
14598
- }), { controlBarRef: he } = Gb({ scopeId: l }), { layoutOverride: Oe } = e1({
14600
+ }), { controlBarRef: he } = Gb({ scopeId: l }), { layoutOverride: We } = e1({
14599
14601
  layout: c,
14600
14602
  options: a,
14601
14603
  vpe: f,
14602
14604
  isInitialized: m
14603
- }), { currentDrmConfig: Ye, shouldUseNativeHls: ke, currentPlaylistItemWithToken: $e } = o1({
14605
+ }), { currentDrmConfig: Xe, shouldUseNativeHls: Me, currentPlaylistItemWithToken: Ge } = o1({
14604
14606
  currentPlaylistItem: x,
14605
14607
  playerOptions: p,
14606
14608
  hlsLibrary: o != null ? o : globalThis.Hls,
@@ -14612,7 +14614,7 @@ function A1(e) {
14612
14614
  dashjs: s,
14613
14615
  videoType: L,
14614
14616
  vpe: f,
14615
- shouldUseNativeHls: ke,
14617
+ shouldUseNativeHls: Me,
14616
14618
  onError: fe
14617
14619
  }), { isStartTimePending: Qt, startTimeText: Ct, startTimeInfoText: It } = r1({
14618
14620
  playerOptions: p,
@@ -14621,33 +14623,33 @@ function A1(e) {
14621
14623
  setPlayerState: d,
14622
14624
  vpe: f,
14623
14625
  scopeId: l
14624
- }), pt = j(null), Ot = j(null), [Jt, Re] = oe(null), [ae, ve] = oe("idle"), Ge = !!((pa = a == null ? void 0 : a.ads) != null && pa.tagUrl && ((ga = a == null ? void 0 : a.ads) == null ? void 0 : ga.enabled) !== !1);
14626
+ }), at = j(null), Ot = j(null), [Jt, Le] = oe(null), [ae, ve] = oe("idle"), Ke = !!((pa = a == null ? void 0 : a.ads) != null && pa.tagUrl && ((ga = a == null ? void 0 : a.ads) == null ? void 0 : ga.enabled) !== !1);
14625
14627
  B(() => {
14626
- if (!Ge || !m || !l) return;
14627
- const je = setTimeout(() => {
14628
- const Pe = document.querySelector(".vpe-root-wrap");
14629
- if (!Pe) return;
14630
- const it = Pe.querySelectorAll("video");
14631
- for (const We of it)
14632
- if (!We.closest("[data-ad-container]")) {
14633
- Re(We);
14628
+ if (!Ke || !m || !l) return;
14629
+ const De = setTimeout(() => {
14630
+ const Te = document.querySelector(".vpe-root-wrap");
14631
+ if (!Te) return;
14632
+ const _e = Te.querySelectorAll("video");
14633
+ for (const Ce of _e)
14634
+ if (!Ce.closest("[data-ad-container]")) {
14635
+ Le(Ce);
14634
14636
  return;
14635
14637
  }
14636
14638
  }, 100);
14637
- return () => clearTimeout(je);
14638
- }, [Ge, m, l, L, $e]), a1({
14639
+ return () => clearTimeout(De);
14640
+ }, [Ke, m, l, L, Ge]), a1({
14639
14641
  ads: a == null ? void 0 : a.ads,
14640
14642
  adContainerRef: Ot,
14641
14643
  videoElement: Jt,
14642
14644
  emitEvent: O,
14643
14645
  onAdStateChange: ve
14644
14646
  });
14645
- const nt = ae === "playing" || ae === "loading", { isAdPlaying: gt, adContainerRef: yt } = d1({
14647
+ const it = ae === "playing" || ae === "loading", { isAdPlaying: gt, adContainerRef: yt } = d1({
14646
14648
  adOptions: a == null ? void 0 : a.namAds,
14647
- playerContainerRef: pt,
14649
+ playerContainerRef: at,
14648
14650
  isInitialized: m,
14649
14651
  emitEvent: O
14650
- }), Fe = nt || gt, [Ci, jn] = oe(!1), [Wn, _n] = oe(0), [$n, Gn] = oe("enter"), Hr = j(!1), [Ii, pf] = oe(!1), pn = j(null), Kn = j(null), qn = j(null), Yn = j(null), [Or, gf] = oe(!1), [en, Ri] = oe({
14652
+ }), Ue = it || gt, [Ci, jn] = oe(!1), [Wn, _n] = oe(0), [$n, Gn] = oe("enter"), Hr = j(!1), [Ii, pf] = oe(!1), pn = j(null), Kn = j(null), qn = j(null), Yn = j(null), [Or, gf] = oe(!1), [en, Ri] = oe({
14651
14653
  phase: "hidden",
14652
14654
  volume: 0
14653
14655
  }), gn = j(null), tn = j(null), Li = j(!0), [nn, oa] = oe(null), yn = j(null), sa = j({
@@ -14657,31 +14659,31 @@ function A1(e) {
14657
14659
  });
14658
14660
  B(() => {
14659
14661
  if (!l) return;
14660
- const le = p.ui;
14661
- if (!le || le === "all") {
14662
- dt(l, "uiMode", null);
14662
+ const ce = p.ui;
14663
+ if (!ce || ce === "all") {
14664
+ ft(l, "uiMode", null);
14663
14665
  return;
14664
14666
  }
14665
- (le === "pc" || le === "mobile" || le === "fullscreen") && dt(l, "uiMode", le);
14667
+ (ce === "pc" || ce === "mobile" || ce === "fullscreen") && ft(l, "uiMode", ce);
14666
14668
  }, [p.ui, l]), Dm(p), B(() => {
14667
- const le = (je) => {
14668
- pt.current && pt.current.contains(je.target) ? Li.current = !0 : Li.current = !1;
14669
+ const ce = (De) => {
14670
+ at.current && at.current.contains(De.target) ? Li.current = !0 : Li.current = !1;
14669
14671
  };
14670
- return document.addEventListener("mousedown", le), () => document.removeEventListener("mousedown", le);
14672
+ return document.addEventListener("mousedown", ce), () => document.removeEventListener("mousedown", ce);
14671
14673
  }, []), B(() => {
14672
14674
  if (!p.keyboardShortcut) return;
14673
- const le = 0.05, je = (Pe) => {
14674
- if (!Li.current || Pe.key !== "ArrowUp" && Pe.key !== "ArrowDown" || Pe.metaKey || Pe.ctrlKey || Pe.altKey) return;
14675
- const it = Pe.target;
14676
- if (it instanceof HTMLInputElement || it instanceof HTMLTextAreaElement || it instanceof HTMLSelectElement || it instanceof HTMLElement && it.isContentEditable) return;
14677
- Pe.preventDefault();
14678
- const We = pt.current;
14679
- if (!We) return;
14680
- const Ae = We.querySelector("video");
14681
- if (!(Ae instanceof HTMLVideoElement)) return;
14682
- let Xe;
14683
- Pe.key === "ArrowUp" ? Ae.muted ? (Ae.muted = !1, Xe = Math.max(0.2, Ae.volume), Ae.volume < 0.2 && (Ae.volume = 0.2, Xe = 0.2)) : (Xe = Math.min(1, Math.round((Ae.volume + le) * 100) / 100), Ae.volume = Xe) : (Xe = Math.max(0, Math.round((Ae.volume - le) * 100) / 100), Ae.volume = Xe, Xe === 0 && (Ae.muted = !0));
14684
- const rn = Math.round(Xe * 100);
14675
+ const ce = 0.05, De = (Te) => {
14676
+ if (!Li.current || Te.key !== "ArrowUp" && Te.key !== "ArrowDown" || Te.metaKey || Te.ctrlKey || Te.altKey) return;
14677
+ const _e = Te.target;
14678
+ if (_e instanceof HTMLInputElement || _e instanceof HTMLTextAreaElement || _e instanceof HTMLSelectElement || _e instanceof HTMLElement && _e.isContentEditable) return;
14679
+ Te.preventDefault();
14680
+ const Ce = at.current;
14681
+ if (!Ce) return;
14682
+ const we = Ce.querySelector("video");
14683
+ if (!(we instanceof HTMLVideoElement)) return;
14684
+ let Ze;
14685
+ Te.key === "ArrowUp" ? we.muted ? (we.muted = !1, Ze = Math.max(0.2, we.volume), we.volume < 0.2 && (we.volume = 0.2, Ze = 0.2)) : (Ze = Math.min(1, Math.round((we.volume + ce) * 100) / 100), we.volume = Ze) : (Ze = Math.max(0, Math.round((we.volume - ce) * 100) / 100), we.volume = Ze, Ze === 0 && (we.muted = !0));
14686
+ const rn = Math.round(Ze * 100);
14685
14687
  gn.current !== null && clearTimeout(gn.current), tn.current !== null && (clearTimeout(tn.current), tn.current = null), Ri({ phase: "entering", volume: rn }), requestAnimationFrame(() => {
14686
14688
  requestAnimationFrame(() => {
14687
14689
  Ri((Lt) => Lt.phase === "entering" ? { ...Lt, phase: "visible" } : Lt);
@@ -14692,77 +14694,92 @@ function A1(e) {
14692
14694
  }, 300);
14693
14695
  }, 1e3);
14694
14696
  };
14695
- return window.addEventListener("keydown", je), () => window.removeEventListener("keydown", je);
14697
+ return window.addEventListener("keydown", De), () => window.removeEventListener("keydown", De);
14696
14698
  }, [p.keyboardShortcut]), B(() => () => {
14697
14699
  gn.current !== null && clearTimeout(gn.current), tn.current !== null && clearTimeout(tn.current);
14698
14700
  }, []), B(() => {
14701
+ if (!m) return;
14702
+ const ce = at.current;
14703
+ if (!ce) return;
14704
+ const De = () => {
14705
+ const Ce = ce.querySelector("video");
14706
+ if (!(Ce instanceof HTMLVideoElement)) return;
14707
+ const we = () => {
14708
+ K("ratechange", { playbackRate: Ce.playbackRate });
14709
+ };
14710
+ return Ce.addEventListener("ratechange", we), () => Ce.removeEventListener("ratechange", we);
14711
+ }, Te = setTimeout(De, 200), _e = De();
14712
+ return () => {
14713
+ clearTimeout(Te), _e == null || _e();
14714
+ };
14715
+ }, [m, K]), B(() => {
14699
14716
  if (!p.keyboardShortcut) return;
14700
- const le = 10, je = (Pe) => {
14701
- if (!Li.current || Pe.key !== "ArrowLeft" && Pe.key !== "ArrowRight" || Pe.metaKey || Pe.ctrlKey || Pe.altKey) return;
14702
- const it = Pe.target;
14703
- if (it instanceof HTMLInputElement || it instanceof HTMLTextAreaElement || it instanceof HTMLSelectElement || it instanceof HTMLElement && it.isContentEditable) return;
14704
- const We = Pe.key === "ArrowLeft" ? "left" : "right", Ae = sa.current;
14705
- Ae.side === We ? Ae.value += le : (Ae.side = We, Ae.value = le);
14706
- const Xe = We === "left" ? -Ae.value : Ae.value;
14707
- oa({ side: We, value: Xe }), yn.current !== null && clearTimeout(yn.current), yn.current = window.setTimeout(() => {
14717
+ const ce = 10, De = (Te) => {
14718
+ if (!Li.current || Te.key !== "ArrowLeft" && Te.key !== "ArrowRight" || Te.metaKey || Te.ctrlKey || Te.altKey) return;
14719
+ const _e = Te.target;
14720
+ if (_e instanceof HTMLInputElement || _e instanceof HTMLTextAreaElement || _e instanceof HTMLSelectElement || _e instanceof HTMLElement && _e.isContentEditable) return;
14721
+ const Ce = Te.key === "ArrowLeft" ? "left" : "right", we = sa.current;
14722
+ we.side === Ce ? we.value += ce : (we.side = Ce, we.value = ce);
14723
+ const Ze = Ce === "left" ? -we.value : we.value;
14724
+ oa({ side: Ce, value: Ze }), yn.current !== null && clearTimeout(yn.current), yn.current = window.setTimeout(() => {
14708
14725
  oa(null), sa.current.value = 0, yn.current = null;
14709
14726
  }, 800);
14710
14727
  };
14711
- return window.addEventListener("keydown", je), () => window.removeEventListener("keydown", je);
14728
+ return window.addEventListener("keydown", De), () => window.removeEventListener("keydown", De);
14712
14729
  }, [p.keyboardShortcut]), B(() => () => {
14713
14730
  yn.current !== null && clearTimeout(yn.current);
14714
14731
  }, []), B(() => {
14715
- const le = () => {
14732
+ const ce = () => {
14716
14733
  gf(window.matchMedia("(max-width: 768px)").matches);
14717
14734
  };
14718
- return le(), window.addEventListener("resize", le), () => window.removeEventListener("resize", le);
14735
+ return ce(), window.addEventListener("resize", ce), () => window.removeEventListener("resize", ce);
14719
14736
  }, []);
14720
14737
  const aa = ee(() => {
14721
14738
  g.length <= 1 || u.isEnded && y(0);
14722
- }, [y, g.length, u.isEnded]), ca = u != null && u.initPlay && ((ya = u == null ? void 0 : u.currentTime) != null ? ya : 0) > 0 ? null : (ba = (va = a == null ? void 0 : a.playlist) == null ? void 0 : va[0]) == null ? void 0 : ba.poster, Rt = we(
14739
+ }, [y, g.length, u.isEnded]), ca = u != null && u.initPlay && ((ya = u == null ? void 0 : u.currentTime) != null ? ya : 0) > 0 ? null : (ba = (va = a == null ? void 0 : a.playlist) == null ? void 0 : va[0]) == null ? void 0 : ba.poster, Rt = Se(
14723
14740
  () => {
14724
- var le;
14725
- return (le = a == null ? void 0 : a.playlist) == null ? void 0 : le[w];
14741
+ var ce;
14742
+ return (ce = a == null ? void 0 : a.playlist) == null ? void 0 : ce[w];
14726
14743
  },
14727
14744
  [a == null ? void 0 : a.playlist, w]
14728
- ), at = x == null ? void 0 : x.description, ct = Rt == null ? void 0 : Rt.description, Bi = we(() => P1(p.lang), [p.lang]), yf = (xa = (Sa = (wa = x == null ? void 0 : x.ageRating) != null ? wa : Rt == null ? void 0 : Rt.ageRating) != null ? Sa : at == null ? void 0 : at.ageRating) != null ? xa : ct == null ? void 0 : ct.ageRating, vf = (Ta = at == null ? void 0 : at.title) != null ? Ta : ct == null ? void 0 : ct.title, la = (ka = at == null ? void 0 : at.profile_name) != null ? ka : ct == null ? void 0 : ct.profile_name, ua = (Pa = (Ma = (Ea = x == null ? void 0 : x.contentWarnings) != null ? Ea : Rt == null ? void 0 : Rt.contentWarnings) != null ? Ma : at == null ? void 0 : at.contentWarnings) != null ? Pa : ct == null ? void 0 : ct.contentWarnings, bf = v, wf = ((Aa = k("alternative.nextPlay")) != null ? Aa : "alternative.nextPlay").replace(
14745
+ ), ct = x == null ? void 0 : x.description, lt = Rt == null ? void 0 : Rt.description, Bi = Se(() => P1(p.lang), [p.lang]), yf = (xa = (Sa = (wa = x == null ? void 0 : x.ageRating) != null ? wa : Rt == null ? void 0 : Rt.ageRating) != null ? Sa : ct == null ? void 0 : ct.ageRating) != null ? xa : lt == null ? void 0 : lt.ageRating, vf = (Ta = ct == null ? void 0 : ct.title) != null ? Ta : lt == null ? void 0 : lt.title, la = (ka = ct == null ? void 0 : ct.profile_name) != null ? ka : lt == null ? void 0 : lt.profile_name, ua = (Pa = (Ma = (Ea = x == null ? void 0 : x.contentWarnings) != null ? Ea : Rt == null ? void 0 : Rt.contentWarnings) != null ? Ma : ct == null ? void 0 : ct.contentWarnings) != null ? Pa : lt == null ? void 0 : lt.contentWarnings, bf = v, wf = ((Aa = k("alternative.nextPlay")) != null ? Aa : "alternative.nextPlay").replace(
14729
14746
  "{timeTxt}",
14730
14747
  String(P)
14731
- ), lt = T1(yf), Di = lt ? b1[lt] : "", Xn = lt ? M1(k, lt) : "", Sf = qi(la, Bi), xf = E1((Ca = x == null ? void 0 : x.description) == null ? void 0 : Ca.created_at), da = [Sf, xf].filter(Boolean).join(" "), Tf = qi(vf, Bi), kf = qi(la, Bi), jr = R == null ? void 0 : R.description, fa = qi(jr == null ? void 0 : jr.title, Bi), ha = we(() => k1(ua), [ua]), ma = we(
14732
- () => ha.map((le) => x1[le]).filter(Boolean),
14748
+ ), ut = T1(yf), Di = ut ? b1[ut] : "", Xn = ut ? M1(k, ut) : "", Sf = qi(la, Bi), xf = E1((Ca = x == null ? void 0 : x.description) == null ? void 0 : Ca.created_at), da = [Sf, xf].filter(Boolean).join(" "), Tf = qi(vf, Bi), kf = qi(la, Bi), jr = R == null ? void 0 : R.description, fa = qi(jr == null ? void 0 : jr.title, Bi), ha = Se(() => k1(ua), [ua]), ma = Se(
14749
+ () => ha.map((ce) => x1[ce]).filter(Boolean),
14733
14750
  [ha]
14734
14751
  );
14735
14752
  B(() => () => {
14736
14753
  qn.current !== null && (window.clearTimeout(qn.current), qn.current = null), pn.current !== null && (window.clearTimeout(pn.current), pn.current = null), Kn.current !== null && (window.clearTimeout(Kn.current), Kn.current = null), Yn.current !== null && (window.clearTimeout(Yn.current), Yn.current = null);
14737
14754
  }, []), B(() => {
14738
- Hr.current || m && (!lt || !Di || !Xn || u.isPlaying && (pn.current !== null || Ii || (pn.current = window.setTimeout(() => {
14755
+ Hr.current || m && (!ut || !Di || !Xn || u.isPlaying && (pn.current !== null || Ii || (pn.current = window.setTimeout(() => {
14739
14756
  pf(!0), pn.current = null;
14740
14757
  }, 3e3))));
14741
14758
  }, [
14742
14759
  Ii,
14743
14760
  Di,
14744
- lt,
14761
+ ut,
14745
14762
  Xn,
14746
14763
  m,
14747
14764
  u.isPlaying
14748
14765
  ]), B(() => {
14749
- Hr.current || Ii && (Fe || !lt || !Di || !Xn || (Hr.current = !0, jn(!0), _n(0), Gn("enter"), Kn.current = window.setTimeout(() => {
14766
+ Hr.current || Ii && (Ue || !ut || !Di || !Xn || (Hr.current = !0, jn(!0), _n(0), Gn("enter"), Kn.current = window.setTimeout(() => {
14750
14767
  _n(1), Gn("visible"), Kn.current = null;
14751
14768
  }, 60), qn.current = window.setTimeout(() => {
14752
14769
  _n(0), Gn("exit"), qn.current = null;
14753
14770
  }, 4350), Yn.current = window.setTimeout(() => {
14754
14771
  jn(!1), Yn.current = null;
14755
14772
  }, 4600)));
14756
- }, [Ii, Di, lt, Xn, Fe]);
14773
+ }, [Ii, Di, ut, Xn, Ue]);
14757
14774
  const Ef = () => {
14758
- if (!$e)
14775
+ if (!Ge)
14759
14776
  return null;
14760
14777
  switch (L) {
14761
14778
  case "hls":
14762
- return ke ? /* @__PURE__ */ h(
14779
+ return Me ? /* @__PURE__ */ h(
14763
14780
  ph,
14764
14781
  {
14765
- src: $e,
14782
+ src: Ge,
14766
14783
  options: p,
14767
14784
  onError: ge,
14768
14785
  emitEvent: K
@@ -14770,7 +14787,7 @@ function A1(e) {
14770
14787
  ) : /* @__PURE__ */ h(
14771
14788
  fh,
14772
14789
  {
14773
- src: $e,
14790
+ src: Ge,
14774
14791
  hlsLib: xt,
14775
14792
  options: p,
14776
14793
  onError: ge,
@@ -14781,7 +14798,7 @@ function A1(e) {
14781
14798
  return /* @__PURE__ */ h(
14782
14799
  hh,
14783
14800
  {
14784
- src: $e,
14801
+ src: Ge,
14785
14802
  dashLib: Tt,
14786
14803
  options: p,
14787
14804
  onError: ge,
@@ -14792,7 +14809,7 @@ function A1(e) {
14792
14809
  return /* @__PURE__ */ h(
14793
14810
  mh,
14794
14811
  {
14795
- src: $e,
14812
+ src: Ge,
14796
14813
  options: p,
14797
14814
  onError: ge,
14798
14815
  emitEvent: K
@@ -14822,7 +14839,7 @@ function A1(e) {
14822
14839
  zIndex: 1
14823
14840
  },
14824
14841
  className: "vpe-root-wrap",
14825
- ref: pt,
14842
+ ref: at,
14826
14843
  tabIndex: -1,
14827
14844
  children: [
14828
14845
  /* @__PURE__ */ h("style", { children: `
@@ -14934,7 +14951,7 @@ function A1(e) {
14934
14951
  height: "100%"
14935
14952
  },
14936
14953
  children: [
14937
- Ge && /* @__PURE__ */ h(
14954
+ Ke && /* @__PURE__ */ h(
14938
14955
  "div",
14939
14956
  {
14940
14957
  style: {
@@ -14946,8 +14963,8 @@ function A1(e) {
14946
14963
  overflow: "hidden",
14947
14964
  zIndex: 5,
14948
14965
  border: "1px solid #000000",
14949
- display: Fe ? "block" : "none",
14950
- pointerEvents: Fe ? "auto" : "none",
14966
+ display: Ue ? "block" : "none",
14967
+ pointerEvents: Ue ? "auto" : "none",
14951
14968
  aspectRatio: (p == null ? void 0 : p.aspectRatio) || "16/9"
14952
14969
  },
14953
14970
  children: /* @__PURE__ */ h(
@@ -14992,7 +15009,7 @@ function A1(e) {
14992
15009
  }
14993
15010
  }
14994
15011
  ),
14995
- p.controls && !Fe && /* @__PURE__ */ h(
15012
+ p.controls && !Ue && /* @__PURE__ */ h(
14996
15013
  "div",
14997
15014
  {
14998
15015
  ref: he,
@@ -15010,7 +15027,7 @@ function A1(e) {
15010
15027
  children: /* @__PURE__ */ h(
15011
15028
  jv,
15012
15029
  {
15013
- src: $e,
15030
+ src: Ge,
15014
15031
  hlsLib: xt,
15015
15032
  dashLib: Tt,
15016
15033
  options: v ? p : {
@@ -15018,14 +15035,14 @@ function A1(e) {
15018
15035
  override: void 0
15019
15036
  },
15020
15037
  poster: x == null ? void 0 : x.poster,
15021
- layout: Oe,
15038
+ layout: We,
15022
15039
  scopeId: l,
15023
- isDrmPlayback: !!Ye,
15040
+ isDrmPlayback: !!Xe,
15024
15041
  next: y,
15025
15042
  prev: E,
15026
15043
  onAction: $,
15027
- onControlBarActiveChange: (le) => {
15028
- O(le ? "controlbarActive" : "controlbarDeactive");
15044
+ onControlBarActiveChange: (ce) => {
15045
+ O(ce ? "controlbarActive" : "controlbarDeactive");
15029
15046
  },
15030
15047
  pidx: w,
15031
15048
  playlistCnt: (g == null ? void 0 : g.length) || 0,
@@ -15089,7 +15106,7 @@ function A1(e) {
15089
15106
  children: [
15090
15107
  /* @__PURE__ */ X("div", { style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
15091
15108
  /* @__PURE__ */ X("div", { children: [
15092
- lt == "all" && /* @__PURE__ */ h(
15109
+ ut == "all" && /* @__PURE__ */ h(
15093
15110
  "div",
15094
15111
  {
15095
15112
  style: {
@@ -15107,7 +15124,7 @@ function A1(e) {
15107
15124
  children: "ALL"
15108
15125
  }
15109
15126
  ),
15110
- lt === "12" && /* @__PURE__ */ h(
15127
+ ut === "12" && /* @__PURE__ */ h(
15111
15128
  "div",
15112
15129
  {
15113
15130
  style: {
@@ -15125,7 +15142,7 @@ function A1(e) {
15125
15142
  children: "12"
15126
15143
  }
15127
15144
  ),
15128
- lt === "15" && /* @__PURE__ */ h(
15145
+ ut === "15" && /* @__PURE__ */ h(
15129
15146
  "div",
15130
15147
  {
15131
15148
  style: {
@@ -15143,7 +15160,7 @@ function A1(e) {
15143
15160
  children: "15"
15144
15161
  }
15145
15162
  ),
15146
- lt === "19" && /* @__PURE__ */ h(
15163
+ ut === "19" && /* @__PURE__ */ h(
15147
15164
  "div",
15148
15165
  {
15149
15166
  style: {
@@ -15195,10 +15212,10 @@ function A1(e) {
15195
15212
  gap: "8px",
15196
15213
  flexWrap: "wrap"
15197
15214
  },
15198
- children: ma.map((le, je) => /* @__PURE__ */ h(
15215
+ children: ma.map((ce, De) => /* @__PURE__ */ h(
15199
15216
  "img",
15200
15217
  {
15201
- src: le,
15218
+ src: ce,
15202
15219
  alt: "",
15203
15220
  "aria-hidden": "true",
15204
15221
  style: {
@@ -15208,7 +15225,7 @@ function A1(e) {
15208
15225
  display: "block"
15209
15226
  }
15210
15227
  },
15211
- `${le}-${je}`
15228
+ `${ce}-${De}`
15212
15229
  ))
15213
15230
  }
15214
15231
  )
@@ -15419,8 +15436,8 @@ function A1(e) {
15419
15436
  role: "button",
15420
15437
  tabIndex: 0,
15421
15438
  onClick: aa,
15422
- onTouchStart: (le) => {
15423
- le.preventDefault(), aa();
15439
+ onTouchStart: (ce) => {
15440
+ ce.preventDefault(), aa();
15424
15441
  }
15425
15442
  }
15426
15443
  ),
@@ -15497,50 +15514,50 @@ const C1 = /* @__PURE__ */ (() => {
15497
15514
  return () => (e += 1, `vpe-${e}`);
15498
15515
  })(), ra = as((e, t) => {
15499
15516
  var r;
15500
- const n = we(() => C1(), []), i = (r = e.scopeId) != null ? r : n;
15517
+ const n = Se(() => C1(), []), i = (r = e.scopeId) != null ? r : n;
15501
15518
  return Lf(
15502
15519
  t,
15503
15520
  () => ({
15504
15521
  play: () => {
15505
15522
  var s;
15506
- const o = xe(i);
15523
+ const o = ke(i);
15507
15524
  (s = o == null ? void 0 : o.play) == null || s.call(o);
15508
15525
  },
15509
15526
  pause: () => {
15510
15527
  var s;
15511
- const o = xe(i);
15528
+ const o = ke(i);
15512
15529
  (s = o == null ? void 0 : o.pause) == null || s.call(o);
15513
15530
  },
15514
15531
  mute: () => {
15515
- const o = xe(i), s = o == null ? void 0 : o.toggleMute;
15532
+ const o = ke(i), s = o == null ? void 0 : o.toggleMute;
15516
15533
  typeof s == "function" && s(!0);
15517
15534
  },
15518
15535
  prev: () => {
15519
- const o = xe(i), s = o == null ? void 0 : o.prev;
15536
+ const o = ke(i), s = o == null ? void 0 : o.prev;
15520
15537
  typeof s == "function" && s();
15521
15538
  },
15522
15539
  next: () => {
15523
- const o = xe(i), s = o == null ? void 0 : o.next;
15540
+ const o = ke(i), s = o == null ? void 0 : o.next;
15524
15541
  typeof s == "function" && s();
15525
15542
  },
15526
15543
  fullscreen: () => {
15527
- const o = xe(i), s = o == null ? void 0 : o.toggleFullscreen;
15544
+ const o = ke(i), s = o == null ? void 0 : o.toggleFullscreen;
15528
15545
  typeof s == "function" && s();
15529
15546
  },
15530
15547
  fullscreenOn: () => {
15531
- const o = xe(i), s = o == null ? void 0 : o.fullscreenOn;
15548
+ const o = ke(i), s = o == null ? void 0 : o.fullscreenOn;
15532
15549
  typeof s == "function" && s();
15533
15550
  },
15534
15551
  fullScreenOff: () => {
15535
- const o = xe(i), s = o == null ? void 0 : o.fullscreenOff;
15552
+ const o = ke(i), s = o == null ? void 0 : o.fullscreenOff;
15536
15553
  typeof s == "function" && s();
15537
15554
  },
15538
15555
  pip: () => {
15539
- const o = xe(i), s = o == null ? void 0 : o.togglePictureInPicture;
15556
+ const o = ke(i), s = o == null ? void 0 : o.togglePictureInPicture;
15540
15557
  typeof s == "function" && s();
15541
15558
  },
15542
15559
  volume: (o = 1) => {
15543
- const s = xe(i), a = s == null ? void 0 : s.setVolume;
15560
+ const s = ke(i), a = s == null ? void 0 : s.setVolume;
15544
15561
  typeof a == "function" && a(o * 100);
15545
15562
  },
15546
15563
  uiHidden: () => {
@@ -15552,7 +15569,7 @@ const C1 = /* @__PURE__ */ (() => {
15552
15569
  o && o.show();
15553
15570
  },
15554
15571
  currentTime: (o = 0) => {
15555
- const s = xe(i), a = s == null ? void 0 : s.seekTo;
15572
+ const s = ke(i), a = s == null ? void 0 : s.seekTo;
15556
15573
  typeof a == "function" && a(o);
15557
15574
  },
15558
15575
  controlBarActive: () => {
@@ -15564,23 +15581,23 @@ const C1 = /* @__PURE__ */ (() => {
15564
15581
  o && o();
15565
15582
  },
15566
15583
  layout: (o, s = !0) => {
15567
- ls(i, "isPaidTier") !== !1 && dt(i, "layoutOverride", (c) => {
15584
+ ls(i, "isPaidTier") !== !1 && ft(i, "layoutOverride", (c) => {
15568
15585
  if (!s) return o;
15569
15586
  const l = c != null ? c : e.layout;
15570
15587
  return ds(l, o);
15571
15588
  });
15572
15589
  },
15573
15590
  tokenChange: (o) => {
15574
- dt(i, "playerOptions", (s) => ({
15591
+ ft(i, "playerOptions", (s) => ({
15575
15592
  ...s != null ? s : {},
15576
15593
  token: o
15577
15594
  }));
15578
15595
  },
15579
15596
  changeUiMode: (o) => {
15580
- dt(i, "uiMode", o != null ? o : null);
15597
+ ft(i, "uiMode", o != null ? o : null);
15581
15598
  },
15582
15599
  changePlayMode: (o) => {
15583
- dt(i, "playMode", o != null ? o : null);
15600
+ ft(i, "playMode", o != null ? o : null);
15584
15601
  },
15585
15602
  addNextSource: (o) => {
15586
15603
  const s = mr(i);
@@ -15718,11 +15735,11 @@ function mf(e, t, n = {}) {
15718
15735
  }
15719
15736
  class Bn {
15720
15737
  constructor(t, n, i = {}) {
15721
- Ce(this, "destroy");
15722
- Ce(this, "container");
15723
- Ce(this, "render");
15724
- Ce(this, "scopeId");
15725
- Ce(this, "getLayout");
15738
+ Ie(this, "destroy");
15739
+ Ie(this, "container");
15740
+ Ie(this, "render");
15741
+ Ie(this, "scopeId");
15742
+ Ie(this, "getLayout");
15726
15743
  const r = mf(N1(t), n, i);
15727
15744
  this.destroy = r.destroy, this.container = r.container, this.render = r.render, this.scopeId = r.scopeId, this.getLayout = r.getLayout;
15728
15745
  }
@@ -15736,70 +15753,70 @@ class Bn {
15736
15753
  return Vt = t, Bn;
15737
15754
  }
15738
15755
  play() {
15739
- const t = xe(this.scopeId);
15756
+ const t = ke(this.scopeId);
15740
15757
  if (t != null && t.play) {
15741
15758
  t.play();
15742
15759
  return;
15743
15760
  }
15744
15761
  }
15745
15762
  pause() {
15746
- const t = xe(this.scopeId);
15763
+ const t = ke(this.scopeId);
15747
15764
  if (t != null && t.pause) {
15748
15765
  t.pause();
15749
15766
  return;
15750
15767
  }
15751
15768
  }
15752
15769
  mute() {
15753
- const t = xe(this.scopeId), n = t == null ? void 0 : t.toggleMute;
15770
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.toggleMute;
15754
15771
  if (typeof n == "function") {
15755
15772
  n(!0);
15756
15773
  return;
15757
15774
  }
15758
15775
  }
15759
15776
  prev() {
15760
- const t = xe(this.scopeId), n = t == null ? void 0 : t.prev;
15777
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.prev;
15761
15778
  if (typeof n == "function") {
15762
15779
  n();
15763
15780
  return;
15764
15781
  }
15765
15782
  }
15766
15783
  next() {
15767
- const t = xe(this.scopeId), n = t == null ? void 0 : t.next;
15784
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.next;
15768
15785
  if (typeof n == "function") {
15769
15786
  n();
15770
15787
  return;
15771
15788
  }
15772
15789
  }
15773
15790
  fullscreen() {
15774
- const t = xe(this.scopeId), n = t == null ? void 0 : t.toggleFullscreen;
15791
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.toggleFullscreen;
15775
15792
  if (typeof n == "function") {
15776
15793
  n();
15777
15794
  return;
15778
15795
  }
15779
15796
  }
15780
15797
  fullscreenOn() {
15781
- const t = xe(this.scopeId), n = t == null ? void 0 : t.fullscreenOn;
15798
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.fullscreenOn;
15782
15799
  if (typeof n == "function") {
15783
15800
  n();
15784
15801
  return;
15785
15802
  }
15786
15803
  }
15787
15804
  fullScreenOff() {
15788
- const t = xe(this.scopeId), n = t == null ? void 0 : t.fullscreenOff;
15805
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.fullscreenOff;
15789
15806
  if (typeof n == "function") {
15790
15807
  n();
15791
15808
  return;
15792
15809
  }
15793
15810
  }
15794
15811
  pip() {
15795
- const t = xe(this.scopeId), n = t == null ? void 0 : t.togglePictureInPicture;
15812
+ const t = ke(this.scopeId), n = t == null ? void 0 : t.togglePictureInPicture;
15796
15813
  if (typeof n == "function") {
15797
15814
  n();
15798
15815
  return;
15799
15816
  }
15800
15817
  }
15801
15818
  volume(t = 1) {
15802
- const n = xe(this.scopeId), i = n == null ? void 0 : n.setVolume;
15819
+ const n = ke(this.scopeId), i = n == null ? void 0 : n.setVolume;
15803
15820
  if (typeof i == "function") {
15804
15821
  i(t * 100);
15805
15822
  return;
@@ -15814,7 +15831,7 @@ class Bn {
15814
15831
  t && t.show();
15815
15832
  }
15816
15833
  currentTime(t = 0) {
15817
- const n = xe(this.scopeId), i = n == null ? void 0 : n.seekTo;
15834
+ const n = ke(this.scopeId), i = n == null ? void 0 : n.seekTo;
15818
15835
  if (typeof i == "function") {
15819
15836
  i(t);
15820
15837
  return;
@@ -15829,7 +15846,7 @@ class Bn {
15829
15846
  t && t();
15830
15847
  }
15831
15848
  tokenChange(t) {
15832
- this.render({ options: { token: t } }), dt(this.scopeId, "playerOptions", (n) => ({
15849
+ this.render({ options: { token: t } }), ft(this.scopeId, "playerOptions", (n) => ({
15833
15850
  ...n != null ? n : {},
15834
15851
  token: t
15835
15852
  }));
@@ -15838,16 +15855,16 @@ class Bn {
15838
15855
  if (!t || typeof t != "object") return this;
15839
15856
  this.render({ options: t });
15840
15857
  const { options: n } = ns(t);
15841
- return dt(this.scopeId, "playerOptions", (i) => ({
15858
+ return ft(this.scopeId, "playerOptions", (i) => ({
15842
15859
  ...i != null ? i : {},
15843
15860
  ...n
15844
15861
  })), this;
15845
15862
  }
15846
15863
  changeUiMode(t) {
15847
- return dt(this.scopeId, "uiMode", t != null ? t : null), this;
15864
+ return ft(this.scopeId, "uiMode", t != null ? t : null), this;
15848
15865
  }
15849
15866
  changePlayMode(t) {
15850
- return dt(this.scopeId, "playMode", t != null ? t : null), this;
15867
+ return ft(this.scopeId, "playMode", t != null ? t : null), this;
15851
15868
  }
15852
15869
  layout(t, n = !0) {
15853
15870
  if (ls(this.scopeId, "isPaidTier") === !1) return this;