@halibegic/react-video-player 0.0.44 → 0.0.45

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.
@@ -2,7 +2,7 @@ var Nn = Object.defineProperty, Vn = Object.defineProperties;
2
2
  var An = Object.getOwnPropertyDescriptors;
3
3
  var Se = Object.getOwnPropertySymbols;
4
4
  var vt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
5
- var pt = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t) => {
5
+ var pt = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  vt.call(t, n) && pt(e, n, t[n]);
8
8
  if (Se)
@@ -19,14 +19,14 @@ var ne = (e, t) => {
19
19
  t.indexOf(o) < 0 && yt.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- import St, { useLayoutEffect as On, useEffect as F, useRef as A, useState as G, createContext as jt, useContext as Pt, useCallback as W, forwardRef as Ne } from "react";
23
- import { create as Lt, useStore as kt } from "zustand";
22
+ import St, { useLayoutEffect as On, useEffect as D, useRef as V, useState as G, createContext as jt, useContext as Pt, useCallback as W, forwardRef as Ne } from "react";
23
+ import { create as Lt, useStore as It } from "zustand";
24
24
  import Hn from "mitt";
25
25
  import re from "hls.js";
26
26
  import * as je from "@radix-ui/react-slider";
27
27
  import * as Te from "@radix-ui/react-popover";
28
28
  import * as Pe from "@radix-ui/react-scroll-area";
29
- function It(e) {
29
+ function kt(e) {
30
30
  var t = this.constructor;
31
31
  return this.then(
32
32
  function(n) {
@@ -75,11 +75,11 @@ function Dt(e) {
75
75
  u(i, a[i]);
76
76
  });
77
77
  }
78
- function Ft(e, t) {
78
+ function Mt(e, t) {
79
79
  this.name = "AggregateError", this.errors = e, this.message = t || "";
80
80
  }
81
- Ft.prototype = Error.prototype;
82
- function Mt(e) {
81
+ Mt.prototype = Error.prototype;
82
+ function Ft(e) {
83
83
  var t = this;
84
84
  return new t(function(n, o) {
85
85
  if (!(e && typeof e.length != "undefined"))
@@ -90,7 +90,7 @@ function Mt(e) {
90
90
  try {
91
91
  t.resolve(a[u]).then(n).catch(function(i) {
92
92
  l.push(i), l.length === a.length && o(
93
- new Ft(
93
+ new Mt(
94
94
  l,
95
95
  "All promises were rejected"
96
96
  )
@@ -112,8 +112,8 @@ function Bn(e, t) {
112
112
  e.apply(t, arguments);
113
113
  };
114
114
  }
115
- function N(e) {
116
- if (!(this instanceof N))
115
+ function F(e) {
116
+ if (!(this instanceof F))
117
117
  throw new TypeError("Promises must be constructed via new");
118
118
  if (typeof e != "function") throw new TypeError("not a function");
119
119
  this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], At(e, this);
@@ -125,7 +125,7 @@ function Vt(e, t) {
125
125
  e._deferreds.push(t);
126
126
  return;
127
127
  }
128
- e._handled = !0, N._immediateFn(function() {
128
+ e._handled = !0, F._immediateFn(function() {
129
129
  var n = e._state === 1 ? t.onFulfilled : t.onRejected;
130
130
  if (n === null) {
131
131
  (e._state === 1 ? Ke : xe)(t.promise, e._value);
@@ -147,7 +147,7 @@ function Ke(e, t) {
147
147
  throw new TypeError("A promise cannot be resolved with itself.");
148
148
  if (t && (typeof t == "object" || typeof t == "function")) {
149
149
  var n = t.then;
150
- if (t instanceof N) {
150
+ if (t instanceof F) {
151
151
  e._state = 3, e._value = t, Ye(e);
152
152
  return;
153
153
  } else if (typeof n == "function") {
@@ -164,8 +164,8 @@ function xe(e, t) {
164
164
  e._state = 2, e._value = t, Ye(e);
165
165
  }
166
166
  function Ye(e) {
167
- e._state === 2 && e._deferreds.length === 0 && N._immediateFn(function() {
168
- e._handled || N._unhandledRejectionFn(e._value);
167
+ e._state === 2 && e._deferreds.length === 0 && F._immediateFn(function() {
168
+ e._handled || F._unhandledRejectionFn(e._value);
169
169
  });
170
170
  for (var t = 0, n = e._deferreds.length; t < n; t++)
171
171
  Vt(e, e._deferreds[t]);
@@ -190,16 +190,16 @@ function At(e, t) {
190
190
  n = !0, xe(t, o);
191
191
  }
192
192
  }
193
- N.prototype.catch = function(e) {
193
+ F.prototype.catch = function(e) {
194
194
  return this.then(null, e);
195
195
  };
196
- N.prototype.then = function(e, t) {
196
+ F.prototype.then = function(e, t) {
197
197
  var n = new this.constructor(Un);
198
198
  return Vt(this, new zn(e, t, n)), n;
199
199
  };
200
- N.prototype.finally = It;
201
- N.all = function(e) {
202
- return new N(function(t, n) {
200
+ F.prototype.finally = kt;
201
+ F.all = function(e) {
202
+ return new F(function(t, n) {
203
203
  if (!Nt(e))
204
204
  return n(new TypeError("Promise.all accepts an array"));
205
205
  var o = Array.prototype.slice.call(e);
@@ -229,33 +229,33 @@ N.all = function(e) {
229
229
  l(u, o[u]);
230
230
  });
231
231
  };
232
- N.any = Mt;
233
- N.allSettled = Dt;
234
- N.resolve = function(e) {
235
- return e && typeof e == "object" && e.constructor === N ? e : new N(function(t) {
232
+ F.any = Ft;
233
+ F.allSettled = Dt;
234
+ F.resolve = function(e) {
235
+ return e && typeof e == "object" && e.constructor === F ? e : new F(function(t) {
236
236
  t(e);
237
237
  });
238
238
  };
239
- N.reject = function(e) {
240
- return new N(function(t, n) {
239
+ F.reject = function(e) {
240
+ return new F(function(t, n) {
241
241
  n(e);
242
242
  });
243
243
  };
244
- N.race = function(e) {
245
- return new N(function(t, n) {
244
+ F.race = function(e) {
245
+ return new F(function(t, n) {
246
246
  if (!Nt(e))
247
247
  return n(new TypeError("Promise.race accepts an array"));
248
248
  for (var o = 0, a = e.length; o < a; o++)
249
- N.resolve(e[o]).then(t, n);
249
+ F.resolve(e[o]).then(t, n);
250
250
  });
251
251
  };
252
- N._immediateFn = // @ts-ignore
252
+ F._immediateFn = // @ts-ignore
253
253
  typeof setImmediate == "function" && function(e) {
254
254
  setImmediate(e);
255
255
  } || function(e) {
256
256
  $n(e, 0);
257
257
  };
258
- N._unhandledRejectionFn = function(t) {
258
+ F._unhandledRejectionFn = function(t) {
259
259
  typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
260
260
  };
261
261
  var ae = (function() {
@@ -267,7 +267,7 @@ var ae = (function() {
267
267
  return global;
268
268
  throw new Error("unable to locate global object");
269
269
  })();
270
- typeof ae.Promise != "function" ? ae.Promise = N : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = It), ae.Promise.allSettled || (ae.Promise.allSettled = Dt), ae.Promise.any || (ae.Promise.any = Mt));
270
+ typeof ae.Promise != "function" ? ae.Promise = F : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = kt), ae.Promise.allSettled || (ae.Promise.allSettled = Dt), ae.Promise.any || (ae.Promise.any = Ft));
271
271
  var Le = { exports: {} }, ge = {};
272
272
  var gt;
273
273
  function Wn() {
@@ -275,11 +275,11 @@ function Wn() {
275
275
  gt = 1;
276
276
  var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
277
277
  function u(i, c, d) {
278
- var v, y = {}, g = null, L = null;
279
- d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (L = c.ref);
278
+ var v, y = {}, g = null, P = null;
279
+ d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (P = c.ref);
280
280
  for (v in c) o.call(c, v) && !l.hasOwnProperty(v) && (y[v] = c[v]);
281
281
  if (i && i.defaultProps) for (v in c = i.defaultProps, c) y[v] === void 0 && (y[v] = c[v]);
282
- return { $$typeof: t, type: i, key: g, ref: L, props: y, _owner: a.current };
282
+ return { $$typeof: t, type: i, key: g, ref: P, props: y, _owner: a.current };
283
283
  }
284
284
  return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
285
285
  }
@@ -287,24 +287,24 @@ var we = {};
287
287
  var wt;
288
288
  function Zn() {
289
289
  return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
290
- var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), D = Symbol.iterator, _ = "@@iterator";
290
+ var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), k = Symbol.iterator, _ = "@@iterator";
291
291
  function S(r) {
292
292
  if (r === null || typeof r != "object")
293
293
  return null;
294
- var h = D && r[D] || r[_];
294
+ var h = k && r[k] || r[_];
295
295
  return typeof h == "function" ? h : null;
296
296
  }
297
- var V = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
297
+ var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
298
  function R(r) {
299
299
  {
300
300
  for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
301
301
  m[w - 1] = arguments[w];
302
- k("error", r, m);
302
+ L("error", r, m);
303
303
  }
304
304
  }
305
- function k(r, h, m) {
305
+ function L(r, h, m) {
306
306
  {
307
- var w = V.ReactDebugCurrentFrame, E = w.getStackAddendum();
307
+ var w = N.ReactDebugCurrentFrame, E = w.getStackAddendum();
308
308
  E !== "" && (h += "%s", m = m.concat([E]));
309
309
  var b = m.map(function(C) {
310
310
  return String(C);
@@ -312,14 +312,14 @@ function Zn() {
312
312
  b.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, b);
313
313
  }
314
314
  }
315
- var x = !1, j = !1, p = !1, $ = !1, Y = !1, B;
316
- B = Symbol.for("react.module.reference");
317
- function M(r) {
318
- return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || Y || r === a || r === d || r === v || $ || r === L || x || j || p || typeof r == "object" && r !== null && (r.$$typeof === g || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
315
+ var x = !1, M = !1, p = !1, U = !1, Y = !1, z;
316
+ z = Symbol.for("react.module.reference");
317
+ function O(r) {
318
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || Y || r === a || r === d || r === v || U || r === P || x || M || p || typeof r == "object" && r !== null && (r.$$typeof === g || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
319
319
  // types supported by any Flight configuration anywhere since
320
320
  // we don't know which Flight build this will end up being used
321
321
  // with.
322
- r.$$typeof === B || r.getModuleId !== void 0));
322
+ r.$$typeof === z || r.getModuleId !== void 0));
323
323
  }
324
324
  function I(r, h, m) {
325
325
  var w = r.displayName;
@@ -438,7 +438,7 @@ function Zn() {
438
438
  oe < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
439
439
  }
440
440
  }
441
- var Oe = V.ReactCurrentDispatcher, He;
441
+ var Oe = N.ReactCurrentDispatcher, He;
442
442
  function Ce(r, h, m) {
443
443
  {
444
444
  if (He === void 0)
@@ -507,18 +507,18 @@ function Zn() {
507
507
  if (J && w && typeof J.stack == "string") {
508
508
  for (var T = J.stack.split(`
509
509
  `), X = w.stack.split(`
510
- `), H = T.length - 1, U = X.length - 1; H >= 1 && U >= 0 && T[H] !== X[U]; )
511
- U--;
512
- for (; H >= 1 && U >= 0; H--, U--)
513
- if (T[H] !== X[U]) {
514
- if (H !== 1 || U !== 1)
510
+ `), H = T.length - 1, $ = X.length - 1; H >= 1 && $ >= 0 && T[H] !== X[$]; )
511
+ $--;
512
+ for (; H >= 1 && $ >= 0; H--, $--)
513
+ if (T[H] !== X[$]) {
514
+ if (H !== 1 || $ !== 1)
515
515
  do
516
- if (H--, U--, U < 0 || T[H] !== X[U]) {
516
+ if (H--, $--, $ < 0 || T[H] !== X[$]) {
517
517
  var ee = `
518
518
  ` + T[H].replace(" at new ", " at ");
519
519
  return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, ee), ee;
520
520
  }
521
- while (H >= 1 && U >= 0);
521
+ while (H >= 1 && $ >= 0);
522
522
  break;
523
523
  }
524
524
  }
@@ -564,7 +564,7 @@ function Zn() {
564
564
  }
565
565
  return "";
566
566
  }
567
- var ye = Object.prototype.hasOwnProperty, tt = {}, nt = V.ReactDebugCurrentFrame;
567
+ var ye = Object.prototype.hasOwnProperty, tt = {}, nt = N.ReactDebugCurrentFrame;
568
568
  function be(r) {
569
569
  if (r) {
570
570
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
@@ -615,7 +615,7 @@ function Zn() {
615
615
  if (yn(r))
616
616
  return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vn(r)), rt(r);
617
617
  }
618
- var it = V.ReactCurrentOwner, gn = {
618
+ var it = N.ReactCurrentOwner, gn = {
619
619
  key: !0,
620
620
  ref: !0,
621
621
  __self: !0,
@@ -703,13 +703,13 @@ function Zn() {
703
703
  C[b] === void 0 && (C[b] = H[b]);
704
704
  }
705
705
  if (T || X) {
706
- var U = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
- T && Tn(C, U), X && Cn(C, U);
706
+ var $ = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
+ T && Tn(C, $), X && Cn(C, $);
708
708
  }
709
709
  return En(r, T, X, E, w, it.current, C);
710
710
  }
711
711
  }
712
- var Be = V.ReactCurrentOwner, lt = V.ReactDebugCurrentFrame;
712
+ var Be = N.ReactCurrentOwner, lt = N.ReactDebugCurrentFrame;
713
713
  function de(r) {
714
714
  if (r) {
715
715
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
@@ -822,7 +822,7 @@ Check the top-level render call using <` + m + ">.");
822
822
  var ht = {};
823
823
  function mt(r, h, m, w, E, b) {
824
824
  {
825
- var C = M(r);
825
+ var C = O(r);
826
826
  if (!C) {
827
827
  var T = "";
828
828
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -831,9 +831,9 @@ Check the top-level render call using <` + m + ">.");
831
831
  var H;
832
832
  r === null ? H = "null" : Ue(r) ? H = "array" : r !== void 0 && r.$$typeof === t ? (H = "<" + (K(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : H = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, T);
833
833
  }
834
- var U = Rn(r, h, m, E, b);
835
- if (U == null)
836
- return U;
834
+ var $ = Rn(r, h, m, E, b);
835
+ if ($ == null)
836
+ return $;
837
837
  if (C) {
838
838
  var ee = h.children;
839
839
  if (ee !== void 0)
@@ -848,30 +848,30 @@ Check the top-level render call using <` + m + ">.");
848
848
  ft(ee, r);
849
849
  }
850
850
  if (ye.call(h, "key")) {
851
- var ce = K(r), J = Object.keys(h).filter(function(Mn) {
852
- return Mn !== "key";
851
+ var ce = K(r), J = Object.keys(h).filter(function(Fn) {
852
+ return Fn !== "key";
853
853
  }), Ze = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
854
  if (!ht[ce + Ze]) {
855
- var Fn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
855
+ var Mn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
856
856
  R(`A props object containing a "key" prop is being spread into JSX:
857
857
  let props = %s;
858
858
  <%s {...props} />
859
859
  React keys must be passed directly to JSX without using spread:
860
860
  let props = %s;
861
- <%s key={someKey} {...props} />`, Ze, ce, Fn, ce), ht[ce + Ze] = !0;
861
+ <%s key={someKey} {...props} />`, Ze, ce, Mn, ce), ht[ce + Ze] = !0;
862
862
  }
863
863
  }
864
- return r === o ? Pn(U) : jn(U), U;
864
+ return r === o ? Pn($) : jn($), $;
865
865
  }
866
866
  }
867
867
  function Ln(r, h, m) {
868
868
  return mt(r, h, m, !0);
869
869
  }
870
- function kn(r, h, m) {
870
+ function In(r, h, m) {
871
871
  return mt(r, h, m, !1);
872
872
  }
873
- var In = kn, Dn = Ln;
874
- we.Fragment = o, we.jsx = In, we.jsxs = Dn;
873
+ var kn = In, Dn = Ln;
874
+ we.Fragment = o, we.jsx = kn, we.jsxs = Dn;
875
875
  })()), we;
876
876
  }
877
877
  var xt;
@@ -884,12 +884,12 @@ const Kn = "_playerNotice_x3acc_1", Yn = "_playerNoticeTitle_x3acc_19", Xn = "_p
884
884
  playerNoticeTitle: Yn,
885
885
  playerNoticeText: Xn,
886
886
  playerNoticeLowZIndex: Gn
887
- }, Ot = typeof window != "undefined" ? On : F;
887
+ }, Ot = typeof window != "undefined" ? On : D;
888
888
  function Ve(e, t) {
889
- const n = A(e);
889
+ const n = V(e);
890
890
  Ot(() => {
891
891
  n.current = e;
892
- }, [e]), F(() => {
892
+ }, [e]), D(() => {
893
893
  if (t === null)
894
894
  return;
895
895
  const o = setInterval(() => {
@@ -914,15 +914,15 @@ const Qn = () => Lt((e) => ({
914
914
  })), Ht = jt(
915
915
  null
916
916
  ), er = ({ children: e }) => {
917
- const t = A(
917
+ const t = V(
918
918
  null
919
919
  );
920
920
  return t.current || (t.current = Qn()), /* @__PURE__ */ s.jsx(Ht.Provider, { value: t.current, children: e });
921
- }, O = (e) => {
921
+ }, A = (e) => {
922
922
  const t = Pt(Ht);
923
923
  if (!t)
924
924
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
925
- return kt(t, e);
925
+ return It(t, e);
926
926
  };
927
927
  function tr(e, t, n) {
928
928
  const o = {
@@ -964,17 +964,17 @@ function rr(e, t) {
964
964
  ) - 1, g = parseInt(
965
965
  ((a = d.find((S) => S.type === "day")) == null ? void 0 : a.value) || "0",
966
966
  10
967
- ), L = parseInt(
967
+ ), P = parseInt(
968
968
  ((l = d.find((S) => S.type === "hour")) == null ? void 0 : l.value) || "0",
969
969
  10
970
- ), D = parseInt(
970
+ ), k = parseInt(
971
971
  ((u = d.find((S) => S.type === "minute")) == null ? void 0 : u.value) || "0",
972
972
  10
973
973
  ), _ = parseInt(
974
974
  ((i = d.find((S) => S.type === "second")) == null ? void 0 : i.value) || "0",
975
975
  10
976
976
  );
977
- return new Date(v, y, g, L, D, _);
977
+ return new Date(v, y, g, P, k, _);
978
978
  } catch (c) {
979
979
  return console.warn(
980
980
  `Failed to convert date to timezone ${t}, returning original date:`,
@@ -1205,19 +1205,19 @@ const cr = () => Hn(), ur = (e, t) => ({
1205
1205
  setError: (t) => e({ error: t })
1206
1206
  }), vr = () => ({
1207
1207
  eventEmitter: cr()
1208
- }), yr = (e) => () => P({}, e), gr = (e, t) => Lt()((...n) => P(P(P(P(P(P(P(P({}, ur(...n)), dr(...n)), fr(...n)), mr(...n)), hr(...n)), pr(...n)), vr(...n)), yr({
1208
+ }), yr = (e) => () => j({}, e), gr = (e, t) => Lt()((...n) => j(j(j(j(j(j(j(j({}, ur(...n)), dr(...n)), fr(...n)), mr(...n)), hr(...n)), pr(...n)), vr(...n)), yr({
1209
1209
  techRef: e,
1210
1210
  containerRef: t
1211
1211
  })(...n))), Bt = jt(null);
1212
1212
  function wr({ children: e }) {
1213
- const t = A(null), n = A(null), o = A(null);
1213
+ const t = V(null), n = V(null), o = V(null);
1214
1214
  return t.current || (t.current = gr(n, o)), /* @__PURE__ */ s.jsx(Bt.Provider, { value: t.current, children: e });
1215
1215
  }
1216
1216
  const f = (e) => {
1217
1217
  const t = Pt(Bt);
1218
1218
  if (!t)
1219
1219
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1220
- return kt(t, e);
1220
+ return It(t, e);
1221
1221
  };
1222
1222
  function xr(e) {
1223
1223
  const t = e.split(`
@@ -1291,22 +1291,22 @@ async function Cr(e) {
1291
1291
  }
1292
1292
  function Er(n) {
1293
1293
  var o = n, { url: e } = o, t = ne(o, ["url"]);
1294
- const [a, l] = G(!0), u = O((d) => d.startDate), i = O((d) => d.setStartDate), c = W(async () => {
1294
+ const [a, l] = G(!0), u = A((d) => d.startDate), i = A((d) => d.setStartDate), c = W(async () => {
1295
1295
  const d = await Cr(e);
1296
1296
  d && i(d);
1297
1297
  }, [e, i]);
1298
- return F(() => {
1298
+ return D(() => {
1299
1299
  (async () => {
1300
1300
  l(!0), await c(), l(!1);
1301
1301
  })();
1302
- }, [c]), Ve(c, u ? null : 5e3), a ? null : /* @__PURE__ */ s.jsx(Rr, P({}, t));
1302
+ }, [c]), Ve(c, u ? null : 5e3), a ? null : /* @__PURE__ */ s.jsx(Rr, j({}, t));
1303
1303
  }
1304
1304
  function Rr({
1305
1305
  children: e,
1306
1306
  messages: t = {}
1307
1307
  }) {
1308
1308
  var u, i, c;
1309
- const n = O((d) => d.startDate), o = f((d) => d.isStarted);
1309
+ const n = A((d) => d.startDate), o = f((d) => d.isStarted);
1310
1310
  return Jn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ s.jsx(
1311
1311
  br,
1312
1312
  {
@@ -1331,10 +1331,10 @@ function br({ startDate: e, title: t, message: n }) {
1331
1331
  }
1332
1332
  function zt({ callback: e }) {
1333
1333
  const t = f((n) => n.eventEmitter);
1334
- return F(() => {
1335
- const n = () => e("play", void 0), o = () => e("pause", void 0), a = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (_) => e("volumeChange", _), c = (_) => e("fullscreenChange", _), d = (_) => e("qualityChange", _), v = (_) => e("loadedMetadata", _), y = () => e("loadStart", void 0), g = () => e("playing", void 0), L = () => e("waiting", void 0), D = () => e("error", void 0);
1336
- return t.on("play", n), t.on("pause", o), t.on("ended", a), t.on("seeking", l), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", c), t.on("qualityChange", d), t.on("loadedMetadata", v), t.on("loadStart", y), t.on("playing", g), t.on("waiting", L), t.on("error", D), () => {
1337
- t.off("play", n), t.off("pause", o), t.off("ended", a), t.off("seeking", l), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", c), t.off("qualityChange", d), t.off("loadedMetadata", v), t.off("loadStart", y), t.off("playing", g), t.off("waiting", L), t.off("error", D);
1334
+ return D(() => {
1335
+ const n = () => e("play", void 0), o = () => e("pause", void 0), a = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (_) => e("volumeChange", _), c = (_) => e("fullscreenChange", _), d = (_) => e("qualityChange", _), v = (_) => e("loadedMetadata", _), y = () => e("loadStart", void 0), g = () => e("playing", void 0), P = () => e("waiting", void 0), k = () => e("error", void 0);
1336
+ return t.on("play", n), t.on("pause", o), t.on("ended", a), t.on("seeking", l), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", c), t.on("qualityChange", d), t.on("loadedMetadata", v), t.on("loadStart", y), t.on("playing", g), t.on("waiting", P), t.on("error", k), () => {
1337
+ t.off("play", n), t.off("pause", o), t.off("ended", a), t.off("seeking", l), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", c), t.off("qualityChange", d), t.off("loadedMetadata", v), t.off("loadStart", y), t.off("playing", g), t.off("waiting", P), t.off("error", k);
1338
1338
  };
1339
1339
  }, [e, t]), null;
1340
1340
  }
@@ -1369,8 +1369,8 @@ function Pr({
1369
1369
  }), a;
1370
1370
  }
1371
1371
  function Lr({ callback: e }) {
1372
- const t = O((l) => l.delay), n = O((l) => l.startDate), o = n ? n.getTime() : 0, a = f((l) => l.eventEmitter);
1373
- return F(() => {
1372
+ const t = A((l) => l.delay), n = A((l) => l.startDate), o = n ? n.getTime() : 0, a = f((l) => l.eventEmitter);
1373
+ return D(() => {
1374
1374
  const l = () => e("timeUpdate", {
1375
1375
  currentTime: Zt(o, t),
1376
1376
  duration: -1
@@ -1411,12 +1411,12 @@ function qt() {
1411
1411
  l
1412
1412
  ]
1413
1413
  );
1414
- return F(() => (document.addEventListener("keydown", u), () => {
1414
+ return D(() => (document.addEventListener("keydown", u), () => {
1415
1415
  document.removeEventListener("keydown", u);
1416
1416
  }), [u]), null;
1417
1417
  }
1418
- function kr() {
1419
- const e = O((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), l = O((i) => i.setDelay), u = W(
1418
+ function Ir() {
1419
+ const e = A((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), l = A((i) => i.setDelay), u = W(
1420
1420
  (i) => {
1421
1421
  let c = !1;
1422
1422
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
@@ -1442,24 +1442,24 @@ function kr() {
1442
1442
  },
1443
1443
  [e, o, t, n, a, l]
1444
1444
  );
1445
- return F(() => (document.addEventListener("keydown", u), () => {
1445
+ return D(() => (document.addEventListener("keydown", u), () => {
1446
1446
  document.removeEventListener("keydown", u);
1447
1447
  }), [u]), /* @__PURE__ */ s.jsx(qt, {});
1448
1448
  }
1449
1449
  function Kt({ children: e }) {
1450
1450
  return /* @__PURE__ */ s.jsx(wr, { children: e });
1451
1451
  }
1452
- function Ir({ children: e }) {
1452
+ function kr({ children: e }) {
1453
1453
  return /* @__PURE__ */ s.jsx(er, { children: /* @__PURE__ */ s.jsx(Kt, { children: e }) });
1454
1454
  }
1455
1455
  function Dr({ url: e, isLive: t, messages: n }) {
1456
- const o = A(null), a = f((x) => x.level), l = f((x) => x.levels), u = f((x) => x.setLevel), i = f((x) => x.setLevels), c = f((x) => x.techRef), d = f((x) => x.setError), v = A(0), y = A(null), g = 50, L = 1e4, D = W(
1456
+ const o = V(null), a = f((x) => x.level), l = f((x) => x.levels), u = f((x) => x.setLevel), i = f((x) => x.setLevels), c = f((x) => x.techRef), d = f((x) => x.setError), v = V(0), y = V(null), g = 50, P = 1e4, k = W(
1457
1457
  (x) => {
1458
1458
  if (o.current && (o.current.nextLevel = x, u(null), l)) {
1459
- const j = l.map((p) => he(P({}, p), {
1459
+ const M = l.map((p) => he(j({}, p), {
1460
1460
  selected: p.value === x
1461
1461
  }));
1462
- i(j);
1462
+ i(M);
1463
1463
  }
1464
1464
  },
1465
1465
  [l, u, i, o]
@@ -1468,42 +1468,38 @@ function Dr({ url: e, isLive: t, messages: n }) {
1468
1468
  }, [e]), S = W(() => {
1469
1469
  if (!o.current) return;
1470
1470
  console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), v.current = 0;
1471
- const x = o.current.levels, j = o.current.currentLevel, p = o.current.autoLevelEnabled;
1471
+ const x = o.current.levels, M = o.current.currentLevel, p = o.current.autoLevelEnabled;
1472
1472
  i(
1473
1473
  Pr({
1474
- levels: x.map(($, Y) => {
1475
- const { bitrate: B, height: M, width: I } = $;
1474
+ levels: x.map((U, Y) => {
1475
+ const { bitrate: z, height: O, width: I } = U;
1476
1476
  return {
1477
- bitrate: B,
1478
- height: M,
1477
+ bitrate: z,
1478
+ height: O,
1479
1479
  index: Y,
1480
1480
  width: I
1481
1481
  };
1482
1482
  }),
1483
- level: j,
1483
+ level: M,
1484
1484
  isAuto: p
1485
1485
  })
1486
1486
  );
1487
- }, [d, i]), V = W(
1487
+ }, [d, i]), N = W(
1488
1488
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1489
- (x, j) => {
1490
- var p, $;
1491
- if (o.current && j.fatal)
1492
- switch (j.type) {
1489
+ (x, M) => {
1490
+ var p;
1491
+ if (o.current && M.fatal)
1492
+ switch (M.type) {
1493
1493
  case re.ErrorTypes.NETWORK_ERROR:
1494
- let Y = (p = n == null ? void 0 : n.unableToPlay) != null ? p : "Unable to play the video. Please try again later.", B = "NETWORK_ERROR";
1495
- console.log("[Player][HLS] NETWORK_ERROR", j), t ? (
1496
- // Initial load failure
1497
- (j.details === "manifestLoadError" || j.details === "manifestParsingError" || // Level load failure during playback (e.g. OBS disconnect)
1498
- j.details === "levelLoadError") && (v.current < g && (y.current && clearTimeout(y.current), v.current += 1, y.current = setTimeout(() => {
1499
- if (o.current)
1500
- try {
1501
- console.log("[Player][HLS] Retrying stream..."), o.current.loadSource(e);
1502
- } catch (M) {
1503
- console.error("[Player][HLS] Retry failed:", M);
1504
- }
1505
- }, L)), Y = ($ = n == null ? void 0 : n.eventFinished) != null ? $ : "Live event will be back shortly.", B = "LIVE_MANIFEST_LOAD_ERROR")
1506
- ) : o.current.startLoad(), d({ message: Y, code: B, tech: "hls" });
1494
+ let U = (p = n == null ? void 0 : n.unableToPlay) != null ? p : "Unable to play the video. Please try again later.", Y = "NETWORK_ERROR";
1495
+ console.log("[Player][HLS] NETWORK_ERROR", M), t ? (v.current < g && (y.current && clearTimeout(y.current), v.current += 1, y.current = setTimeout(() => {
1496
+ if (o.current)
1497
+ try {
1498
+ console.log("[Player][HLS] Retrying stream..."), o.current.loadSource(e);
1499
+ } catch (z) {
1500
+ console.error("[Player][HLS] Retry failed:", z);
1501
+ }
1502
+ }, P)), Y = "LIVE_MANIFEST_LOAD_ERROR") : o.current.startLoad(), d({ message: U, code: Y, tech: "hls" });
1507
1503
  break;
1508
1504
  case re.ErrorTypes.MEDIA_ERROR:
1509
1505
  o.current.recoverMediaError();
@@ -1520,26 +1516,26 @@ function Dr({ url: e, isLive: t, messages: n }) {
1520
1516
  };
1521
1517
  or ? (x.backBufferLength = -1, x.enableWorker = !1) : t ? x.backBufferLength = 10 : x.backBufferLength = 60;
1522
1518
  try {
1523
- console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(x)), console.log("[Player][HLS] Version", re.version), o.current = new re(x), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED, _), o.current.on(re.Events.MANIFEST_LOADED, S), o.current.on(re.Events.ERROR, V);
1524
- } catch (j) {
1525
- throw new Error(`Error initializing Hls: ${j}`);
1519
+ console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(x)), console.log("[Player][HLS] Version", re.version), o.current = new re(x), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED, _), o.current.on(re.Events.MANIFEST_LOADED, S), o.current.on(re.Events.ERROR, N);
1520
+ } catch (M) {
1521
+ throw new Error(`Error initializing Hls: ${M}`);
1526
1522
  }
1527
1523
  }, [
1528
1524
  S,
1529
1525
  _,
1530
- V,
1526
+ N,
1531
1527
  t,
1532
1528
  c,
1533
1529
  e
1534
- ]), k = W(() => {
1535
- o.current && (o.current.off(re.Events.MEDIA_ATTACHED, _), o.current.off(re.Events.MANIFEST_LOADED, S), o.current.off(re.Events.ERROR, V), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), v.current = 0;
1536
- }, [S, _, V]);
1537
- return F(() => {
1538
- a !== null && D(a);
1539
- }, [a, D]), F(() => (re.isSupported() && R(), k), [k, R]), null;
1540
- }
1541
- const Fr = "_playerVideo_wc0sm_1", Mr = {
1542
- playerVideo: Fr
1530
+ ]), L = W(() => {
1531
+ o.current && (o.current.off(re.Events.MEDIA_ATTACHED, _), o.current.off(re.Events.MANIFEST_LOADED, S), o.current.off(re.Events.ERROR, N), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), v.current = 0;
1532
+ }, [S, _, N]);
1533
+ return D(() => {
1534
+ a !== null && k(a);
1535
+ }, [a, k]), D(() => (re.isSupported() && R(), L), [L, R]), null;
1536
+ }
1537
+ const Mr = "_playerVideo_wc0sm_1", Fr = {
1538
+ playerVideo: Mr
1543
1539
  };
1544
1540
  function Yt({
1545
1541
  url: e,
@@ -1547,7 +1543,7 @@ function Yt({
1547
1543
  isMuted: n = !1,
1548
1544
  messages: o = {}
1549
1545
  }) {
1550
- const a = f((p) => p.handleDurationChange), l = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), c = f((p) => p.handlePause), d = f((p) => p.handlePlay), v = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), g = f((p) => p.handleSeeking), L = f((p) => p.handleTimeUpdate), D = f((p) => p.handleWaiting), _ = f((p) => p.handleVolumeChange), S = f((p) => p.handleError), V = f((p) => p.techRef), R = A(null), k = () => t ? {
1546
+ const a = f((p) => p.handleDurationChange), l = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), c = f((p) => p.handlePause), d = f((p) => p.handlePlay), v = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), g = f((p) => p.handleSeeking), P = f((p) => p.handleTimeUpdate), k = f((p) => p.handleWaiting), _ = f((p) => p.handleVolumeChange), S = f((p) => p.handleError), N = f((p) => p.techRef), R = V(null), L = () => t ? {
1551
1547
  onTimeUpdate: x
1552
1548
  } : {
1553
1549
  onDurationChange: a,
@@ -1555,15 +1551,15 @@ function Yt({
1555
1551
  onSeeking: g,
1556
1552
  onTimeUpdate: x
1557
1553
  }, x = () => {
1558
- (!R.current || Date.now() - R.current >= 1e3) && (L(), R.current = Date.now());
1559
- }, j = k();
1554
+ (!R.current || Date.now() - R.current >= 1e3) && (P(), R.current = Date.now());
1555
+ }, M = L();
1560
1556
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1561
1557
  /* @__PURE__ */ s.jsx(Dr, { isLive: t, url: e, messages: o }),
1562
1558
  /* @__PURE__ */ s.jsx(
1563
1559
  "video",
1564
- P({
1565
- ref: V,
1566
- className: Mr.playerVideo,
1560
+ j({
1561
+ ref: N,
1562
+ className: Fr.playerVideo,
1567
1563
  playsInline: !0,
1568
1564
  autoPlay: !0,
1569
1565
  controls: !1,
@@ -1577,20 +1573,20 @@ function Yt({
1577
1573
  onPause: c,
1578
1574
  onPlay: d,
1579
1575
  onPlaying: v,
1580
- onWaiting: D,
1576
+ onWaiting: k,
1581
1577
  onVolumeChange: _,
1582
1578
  tabIndex: -1
1583
- }, j)
1579
+ }, M)
1584
1580
  )
1585
1581
  ] });
1586
1582
  }
1587
1583
  function Nr({ url: e, messages: t = {} }) {
1588
- const [n, o] = G(null), a = O((u) => u.delay), l = W(async () => {
1584
+ const [n, o] = G(null), a = A((u) => u.delay), l = W(async () => {
1589
1585
  o(
1590
1586
  a ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${a}.m3u8`) : e
1591
1587
  );
1592
1588
  }, [a, e]);
1593
- return F(() => {
1589
+ return D(() => {
1594
1590
  l();
1595
1591
  }, [l]), n ? /* @__PURE__ */ s.jsx(Yt, { url: n, isLive: !0, messages: t }) : null;
1596
1592
  }
@@ -1598,7 +1594,7 @@ function Vr({ url: e }) {
1598
1594
  return f((n) => n.isStarted) ? /* @__PURE__ */ s.jsx(Ar, { url: e }) : null;
1599
1595
  }
1600
1596
  function Ar({ url: e }) {
1601
- const t = O((l) => l.setViewerCount), n = A(null), o = (l) => {
1597
+ const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
1602
1598
  try {
1603
1599
  return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
1604
1600
  } catch (u) {
@@ -1627,7 +1623,7 @@ function Ar({ url: e }) {
1627
1623
  console.error("Failed to fetch viewer count:", d), t(null);
1628
1624
  }
1629
1625
  };
1630
- return F(() => (a(), () => {
1626
+ return D(() => (a(), () => {
1631
1627
  n.current && n.current.abort();
1632
1628
  }), [e]), Ve(a, 15e3), null;
1633
1629
  }
@@ -1671,9 +1667,9 @@ function Xt(i) {
1671
1667
  "maxForwardTime",
1672
1668
  "maxBackwardTime"
1673
1669
  ]);
1674
- return Or("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(Zr, P({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
1670
+ return Or("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(Zr, j({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
1675
1671
  qr,
1676
- P({
1672
+ j({
1677
1673
  className: e,
1678
1674
  maxForwardTime: a,
1679
1675
  maxBackwardTime: l,
@@ -1684,24 +1680,24 @@ function Xt(i) {
1684
1680
  }
1685
1681
  function Zr(o) {
1686
1682
  var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
1687
- const l = A(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), c = f((_) => _.requestFullscreen), d = f((_) => _.resetIdle), v = (_) => {
1688
- L() ? (g(), i ? u() : c()) : y(_);
1683
+ const l = V(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), c = f((_) => _.requestFullscreen), d = f((_) => _.resetIdle), v = (_) => {
1684
+ P() ? (g(), i ? u() : c()) : y(_);
1689
1685
  }, y = (_) => {
1690
1686
  l.current = window.setTimeout(() => {
1691
1687
  t == null || t(_), g();
1692
1688
  }, 200);
1693
1689
  }, g = () => {
1694
1690
  l.current !== null && (window.clearTimeout(l.current), l.current = null);
1695
- }, L = () => l.current !== null, D = () => {
1691
+ }, P = () => l.current !== null, k = () => {
1696
1692
  d();
1697
1693
  };
1698
- return F(() => () => {
1694
+ return D(() => () => {
1699
1695
  g();
1700
1696
  }, []), /* @__PURE__ */ s.jsx(
1701
1697
  "button",
1702
- P({
1698
+ j({
1703
1699
  onClick: v,
1704
- onMouseMove: D,
1700
+ onMouseMove: k,
1705
1701
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1706
1702
  "aria-label": "Player gestures"
1707
1703
  }, n)
@@ -1721,73 +1717,73 @@ function qr(u) {
1721
1717
  "onForwardSeek",
1722
1718
  "onBackwardSeek"
1723
1719
  ]);
1724
- const c = A(null), d = A({
1720
+ const c = V(null), d = V({
1725
1721
  single: null,
1726
1722
  indicator: null,
1727
1723
  accumulate: null
1728
- }), v = A(null), y = A(0), g = A(null), [L, D] = G({ visible: !1, direction: null, time: 0 }), _ = f((p) => p.isIdle), S = f((p) => p.setIsIdle), V = f((p) => p.resetIdle), R = (p, $) => p < $ / 2 ? "backward" : "forward", k = (p) => {
1724
+ }), v = V(null), y = V(0), g = V(null), [P, k] = G({ visible: !1, direction: null, time: 0 }), _ = f((p) => p.isIdle), S = f((p) => p.setIsIdle), N = f((p) => p.resetIdle), R = (p, U) => p < U / 2 ? "backward" : "forward", L = (p) => {
1729
1725
  if (!v.current) return;
1730
- const $ = p.changedTouches[0];
1731
- if (!$) return;
1732
- const Y = Date.now(), B = v.current.getBoundingClientRect(), M = $.clientX - B.left, I = $.clientY - B.top;
1733
- if (M < 0 || M > B.width || I < 0 || I > B.height)
1726
+ const U = p.changedTouches[0];
1727
+ if (!U) return;
1728
+ const Y = Date.now(), z = v.current.getBoundingClientRect(), O = U.clientX - z.left, I = U.clientY - z.top;
1729
+ if (O < 0 || O > z.width || I < 0 || I > z.height)
1734
1730
  return;
1735
- const Q = c.current, K = Q ? Y - Q.time : 1 / 0, Z = R(M, B.width), oe = g.current !== null && g.current === Z && Q !== null && K < 700 && Math.abs(M - Q.x) < 100;
1736
- if (Q !== null && g.current === null && K < 300 && Math.abs(M - Q.x) < 50 || oe) {
1737
- p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), V(), (g.current === null || g.current !== Z) && (y.current = 0, g.current = Z);
1731
+ const Q = c.current, K = Q ? Y - Q.time : 1 / 0, Z = R(O, z.width), oe = g.current !== null && g.current === Z && Q !== null && K < 700 && Math.abs(O - Q.x) < 100;
1732
+ if (Q !== null && g.current === null && K < 300 && Math.abs(O - Q.x) < 50 || oe) {
1733
+ p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), N(), (g.current === null || g.current !== Z) && (y.current = 0, g.current = Z);
1738
1734
  const te = Z === "backward" ? n : t;
1739
1735
  y.current = Math.min(
1740
1736
  y.current + Wr,
1741
1737
  te != null ? te : 1 / 0
1742
1738
  ), x(Z, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
1743
1739
  const q = y.current;
1744
- q > 0 && (g.current === "backward" ? a == null || a(q) : o == null || o(q), V()), y.current = 0, g.current = null, c.current = null, j(), d.current.accumulate = null;
1745
- }, 500), c.current = { time: Y, x: M };
1740
+ q > 0 && (g.current === "backward" ? a == null || a(q) : o == null || o(q), N()), y.current = 0, g.current = null, c.current = null, M(), d.current.accumulate = null;
1741
+ }, 500), c.current = { time: Y, x: O };
1746
1742
  } else {
1747
- c.current = { time: Y, x: M }, d.current.single && window.clearTimeout(d.current.single);
1743
+ c.current = { time: Y, x: O }, d.current.single && window.clearTimeout(d.current.single);
1748
1744
  const te = g.current !== null ? 700 : 350;
1749
1745
  d.current.single = window.setTimeout(() => {
1750
1746
  if (g.current === null) {
1751
1747
  d.current.single = null;
1752
1748
  const q = _;
1753
- S(!q), q && V();
1749
+ S(!q), q && N();
1754
1750
  }
1755
1751
  c.current = null;
1756
1752
  }, te);
1757
1753
  }
1758
- }, x = (p, $) => {
1759
- $ !== 0 && (D({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1760
- j();
1754
+ }, x = (p, U) => {
1755
+ U !== 0 && (k({ visible: !0, direction: p, time: U }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1756
+ M();
1761
1757
  }, 700));
1762
- }, j = () => {
1763
- D({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1758
+ }, M = () => {
1759
+ k({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1764
1760
  };
1765
- return F(() => () => {
1761
+ return D(() => () => {
1766
1762
  d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
1767
1763
  }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1768
1764
  /* @__PURE__ */ s.jsx(
1769
1765
  "button",
1770
- P({
1766
+ j({
1771
1767
  ref: v,
1772
- onTouchEnd: k,
1768
+ onTouchEnd: L,
1773
1769
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1774
1770
  "aria-label": "Player gestures"
1775
1771
  }, l)
1776
1772
  ),
1777
- L.visible && /* @__PURE__ */ s.jsxs(
1773
+ P.visible && /* @__PURE__ */ s.jsxs(
1778
1774
  "div",
1779
1775
  {
1780
- className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${L.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1776
+ className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${P.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1781
1777
  children: [
1782
- L.direction === "backward" ? "-" : "+",
1783
- _e(L.time)
1778
+ P.direction === "backward" ? "-" : "+",
1779
+ _e(P.time)
1784
1780
  ]
1785
1781
  }
1786
1782
  )
1787
1783
  ] });
1788
1784
  }
1789
1785
  function Kr() {
1790
- const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), o = f((c) => c.play), a = O((c) => c.delay), l = O((c) => c.setDelay), u = O((c) => c.startDate), i = u ? u.getTime() : 0;
1786
+ const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), o = f((c) => c.play), a = A((c) => c.delay), l = A((c) => c.setDelay), u = A((c) => c.startDate), i = u ? u.getTime() : 0;
1791
1787
  return /* @__PURE__ */ s.jsx(
1792
1788
  Xt,
1793
1789
  {
@@ -1819,21 +1815,21 @@ const Yr = "_playerButton_izwqq_1", Xr = "_playerButtonCircle_izwqq_42", _t = {
1819
1815
  (a, o) => {
1820
1816
  var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
1821
1817
  const u = e === "circle" ? _t.playerButtonCircle : "", i = [_t.playerButton, u, t].filter(Boolean).join(" ");
1822
- return /* @__PURE__ */ s.jsx("button", P({ ref: o, className: i }, n));
1818
+ return /* @__PURE__ */ s.jsx("button", j({ ref: o, className: i }, n));
1823
1819
  }
1824
1820
  );
1825
1821
  le.displayName = "PlayerButton";
1826
- const Gr = "_liveIndicator_1jczn_1", Jr = "_liveIndicatorHasDelay_1jczn_9", Qr = "_liveIndicatorNoDelay_1jczn_13", ke = {
1822
+ const Gr = "_liveIndicator_1jczn_1", Jr = "_liveIndicatorHasDelay_1jczn_9", Qr = "_liveIndicatorNoDelay_1jczn_13", Ie = {
1827
1823
  liveIndicator: Gr,
1828
1824
  liveIndicatorHasDelay: Jr,
1829
1825
  liveIndicatorNoDelay: Qr
1830
1826
  };
1831
1827
  function eo(n) {
1832
1828
  var o = n, { message: e } = o, t = ne(o, ["message"]);
1833
- const a = O((c) => c.delay), l = O((c) => c.setDelay), u = () => {
1829
+ const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
1834
1830
  a && l(0);
1835
- }, i = a ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
1836
- return /* @__PURE__ */ s.jsxs(le, he(P({ onClick: u, shape: "square" }, t), { children: [
1831
+ }, i = a ? `${Ie.liveIndicator} ${Ie.liveIndicatorHasDelay}` : `${Ie.liveIndicator} ${Ie.liveIndicatorNoDelay}`;
1832
+ return /* @__PURE__ */ s.jsxs(le, he(j({ onClick: u, shape: "square" }, t), { children: [
1837
1833
  /* @__PURE__ */ s.jsx("div", { className: i }),
1838
1834
  e || "Live"
1839
1835
  ] }));
@@ -1861,7 +1857,7 @@ function Jt() {
1861
1857
  );
1862
1858
  }
1863
1859
  function to() {
1864
- const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), a = O((i) => i.delay), l = O((i) => i.setDelay), u = () => {
1860
+ const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), a = A((i) => i.delay), l = A((i) => i.setDelay), u = () => {
1865
1861
  if (e)
1866
1862
  t();
1867
1863
  else {
@@ -1877,7 +1873,7 @@ const no = "_progressSlider_hwzgf_1", ro = "_tipContainer_hwzgf_7", oo = "_tipCo
1877
1873
  tipContainerVisible: oo,
1878
1874
  tipContainerHidden: io,
1879
1875
  tipContent: so
1880
- }, ao = "_sliderRoot_aeak6_1", lo = "_sliderTrack_aeak6_18", co = "_sliderRange_aeak6_28", uo = "_sliderThumb_aeak6_37", Ie = {
1876
+ }, ao = "_sliderRoot_aeak6_1", lo = "_sliderTrack_aeak6_18", co = "_sliderRange_aeak6_28", uo = "_sliderThumb_aeak6_37", ke = {
1881
1877
  sliderRoot: ao,
1882
1878
  sliderTrack: lo,
1883
1879
  sliderRange: co,
@@ -1886,12 +1882,12 @@ const no = "_progressSlider_hwzgf_1", ro = "_tipContainer_hwzgf_7", oo = "_tipCo
1886
1882
  var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
1887
1883
  return /* @__PURE__ */ s.jsxs(
1888
1884
  je.Root,
1889
- he(P({
1885
+ he(j({
1890
1886
  ref: a,
1891
1887
  min: t,
1892
1888
  max: e,
1893
1889
  "aria-label": "Player progress",
1894
- className: [Ie.sliderRoot, n].filter(Boolean).join(" "),
1890
+ className: [ke.sliderRoot, n].filter(Boolean).join(" "),
1895
1891
  onKeyDown: (i) => (
1896
1892
  // Prevent the slider from being controlled by the keyboard
1897
1893
  // when the slider is focused by a click
@@ -1899,14 +1895,14 @@ const no = "_progressSlider_hwzgf_1", ro = "_tipContainer_hwzgf_7", oo = "_tipCo
1899
1895
  )
1900
1896
  }, o), {
1901
1897
  children: [
1902
- /* @__PURE__ */ s.jsx(je.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: Ie.sliderRange }) }),
1903
- /* @__PURE__ */ s.jsx(je.Thumb, { className: Ie.sliderThumb })
1898
+ /* @__PURE__ */ s.jsx(je.Track, { className: ke.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: ke.sliderRange }) }),
1899
+ /* @__PURE__ */ s.jsx(je.Thumb, { className: ke.sliderThumb })
1904
1900
  ]
1905
1901
  })
1906
1902
  );
1907
1903
  });
1908
1904
  Ae.displayName = "PlayerSlider";
1909
- function Me(e) {
1905
+ function Fe(e) {
1910
1906
  const t = e.getBoundingClientRect();
1911
1907
  return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
1912
1908
  left: t.left * 100,
@@ -1919,22 +1915,22 @@ function Me(e) {
1919
1915
  }
1920
1916
  const Tt = "vod-player-progress-bar";
1921
1917
  function fo() {
1922
- const e = A(null), t = A(null), [n, o] = G(0), [a, l] = G(0), [u, i] = G(!1), [c, d] = G(-1), [v, y] = G(-1), g = O((I) => I.delay), L = O((I) => I.startDate), D = L ? L.getTime() : 0, _ = (/* @__PURE__ */ new Date()).getTime(), S = O((I) => I.setDelay), V = f((I) => I.isPlaying), R = f((I) => I.addIdleLock), k = f((I) => I.removeIdleLock), x = W(() => {
1923
- o(Zt(D, g)), l(Sr(D, _));
1924
- }, [g, _, D]), j = parseFloat(
1918
+ const e = V(null), t = V(null), [n, o] = G(0), [a, l] = G(0), [u, i] = G(!1), [c, d] = G(-1), [v, y] = G(-1), g = A((I) => I.delay), P = A((I) => I.startDate), k = P ? P.getTime() : 0, _ = (/* @__PURE__ */ new Date()).getTime(), S = A((I) => I.setDelay), N = f((I) => I.isPlaying), R = f((I) => I.addIdleLock), L = f((I) => I.removeIdleLock), x = W(() => {
1919
+ o(Zt(k, g)), l(Sr(k, _));
1920
+ }, [g, _, k]), M = parseFloat(
1925
1921
  (a ? (v !== -1 ? v : n) / a * 100 : 0).toFixed(1)
1926
1922
  ), p = (I) => {
1927
1923
  y(a * (I[0] / 100)), R(Tt);
1928
- }, $ = () => {
1924
+ }, U = () => {
1929
1925
  if (v !== -1) {
1930
- const I = Wt(D, v);
1931
- S(I), y(-1), k(Tt);
1926
+ const I = Wt(k, v);
1927
+ S(I), y(-1), L(Tt);
1932
1928
  }
1933
- }, Y = () => i(!0), B = () => i(!1), M = W(
1929
+ }, Y = () => i(!0), z = () => i(!1), O = W(
1934
1930
  (I) => {
1935
1931
  const Q = e.current, K = t.current;
1936
1932
  if (Q && K) {
1937
- const Z = Me(Q), oe = Me(K), ue = (I.pageX || I.clientX) - Z.left, te = ue / Z.width;
1933
+ const Z = Fe(Q), oe = Fe(K), ue = (I.pageX || I.clientX) - Z.left, te = ue / Z.width;
1938
1934
  if (te < 0) return;
1939
1935
  let q = ue - oe.width / 2;
1940
1936
  q < 0 && (q = 0), q > Z.width - oe.width && (q = -1), K.style.left = q > -1 ? `${q}px` : "auto", K.style.right = q > -1 ? "auto" : "0px";
@@ -1945,19 +1941,19 @@ function fo() {
1945
1941
  },
1946
1942
  [a]
1947
1943
  );
1948
- return Ve(() => x(), V ? 1e3 : null), F(() => {
1944
+ return Ve(() => x(), N ? 1e3 : null), D(() => {
1949
1945
  x();
1950
1946
  }, [x]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
1951
1947
  /* @__PURE__ */ s.jsx(
1952
1948
  Ae,
1953
1949
  {
1954
1950
  ref: e,
1955
- value: [j],
1956
- onPointerLeave: B,
1957
- onPointerDown: B,
1958
- onPointerMove: M,
1951
+ value: [M],
1952
+ onPointerLeave: z,
1953
+ onPointerDown: z,
1954
+ onPointerMove: O,
1959
1955
  onValueChange: p,
1960
- onValueCommit: $,
1956
+ onValueCommit: U,
1961
1957
  step: 0.1
1962
1958
  }
1963
1959
  ),
@@ -1983,7 +1979,7 @@ function ho() {
1983
1979
  );
1984
1980
  }
1985
1981
  function mo() {
1986
- const e = O((a) => a.startDate), t = O((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(Wt(n));
1982
+ const e = A((a) => a.startDate), t = A((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(Wt(n));
1987
1983
  return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(ho, {}) });
1988
1984
  }
1989
1985
  const po = "_viewersContainer_z1ihz_1", vo = "_viewersIndicator_z1ihz_16", yo = "_viewersIcon_z1ihz_24", go = "_viewersCount_z1ihz_28", De = {
@@ -1993,7 +1989,7 @@ const po = "_viewersContainer_z1ihz_1", vo = "_viewersIndicator_z1ihz_16", yo =
1993
1989
  viewersCount: go
1994
1990
  };
1995
1991
  function wo() {
1996
- const e = O((t) => t.viewerCount);
1992
+ const e = A((t) => t.viewerCount);
1997
1993
  return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
1998
1994
  /* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
1999
1995
  /* @__PURE__ */ s.jsxs(
@@ -2038,7 +2034,7 @@ function Qt() {
2038
2034
  }
2039
2035
  );
2040
2036
  }
2041
- const xo = "_playerContainer_146tx_1", _o = "_controlsTop_146tx_12", To = "_controlsBottom_146tx_29", Co = "_controlsContainer_146tx_45", Eo = "_controlsRow_146tx_61", Ro = "_controlsSection_146tx_68", bo = "_controlsSectionStart_146tx_78", So = "_controlsSectionEnd_146tx_82", z = {
2037
+ const xo = "_playerContainer_146tx_1", _o = "_controlsTop_146tx_12", To = "_controlsBottom_146tx_29", Co = "_controlsContainer_146tx_45", Eo = "_controlsRow_146tx_61", Ro = "_controlsSection_146tx_68", bo = "_controlsSectionStart_146tx_78", So = "_controlsSectionEnd_146tx_82", B = {
2042
2038
  playerContainer: xo,
2043
2039
  controlsTop: _o,
2044
2040
  controlsBottom: To,
@@ -2079,28 +2075,28 @@ function en() {
2079
2075
  ), c = () => {
2080
2076
  n ? t() : o();
2081
2077
  };
2082
- return F(() => {
2078
+ return D(() => {
2083
2079
  const d = Ut ? u.current : e.current;
2084
2080
  if (d)
2085
2081
  return lr(d, i);
2086
- }, [e, i, u]), F(() => {
2082
+ }, [e, i, u]), D(() => {
2087
2083
  l(!0);
2088
2084
  }, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(Po, {}) : /* @__PURE__ */ s.jsx(jo, {}) });
2089
2085
  }
2090
- const Lo = "_idleCheckContainer_crh2s_1", ko = "_idleCheckContainerIdle_crh2s_5", Io = "_idleCheckContainerActive_crh2s_11", qe = {
2086
+ const Lo = "_idleCheckContainer_crh2s_1", Io = "_idleCheckContainerIdle_crh2s_5", ko = "_idleCheckContainerActive_crh2s_11", qe = {
2091
2087
  idleCheckContainer: Lo,
2092
- idleCheckContainerIdle: ko,
2093
- idleCheckContainerActive: Io
2088
+ idleCheckContainerIdle: Io,
2089
+ idleCheckContainerActive: ko
2094
2090
  }, Do = 5 * 1e3;
2095
2091
  function tn({ children: e }) {
2096
- const t = A(null), n = f((g) => g.isIdle), o = f((g) => g.setIsIdle), a = A(null), u = f((g) => g.idleLocks).size, i = f((g) => g.eventEmitter), c = W(() => {
2092
+ const t = V(null), n = f((g) => g.isIdle), o = f((g) => g.setIsIdle), a = V(null), u = f((g) => g.idleLocks).size, i = f((g) => g.eventEmitter), c = W(() => {
2097
2093
  a.current !== null && (window.clearTimeout(a.current), a.current = null);
2098
2094
  }, []), d = W(() => {
2099
2095
  c(), a.current = window.setTimeout(() => o(!0), Do);
2100
2096
  }, [c]);
2101
- F(() => (o(!1), d(), () => {
2097
+ D(() => (o(!1), d(), () => {
2102
2098
  c();
2103
- }), [c, d]), F(() => {
2099
+ }), [c, d]), D(() => {
2104
2100
  const g = () => {
2105
2101
  o(!1), d();
2106
2102
  };
@@ -2111,15 +2107,15 @@ function tn({ children: e }) {
2111
2107
  const v = n && !u, y = `${qe.idleCheckContainer} ${v ? qe.idleCheckContainerIdle : qe.idleCheckContainerActive}`;
2112
2108
  return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
2113
2109
  }
2114
- const Fo = "_spinner_oo4hi_10", Mo = {
2115
- spinner: Fo
2110
+ const Mo = "_spinner_oo4hi_10", Fo = {
2111
+ spinner: Mo
2116
2112
  };
2117
2113
  function No(e) {
2118
- return /* @__PURE__ */ s.jsx("div", P({ className: Mo.spinner }, e));
2114
+ return /* @__PURE__ */ s.jsx("div", j({ className: Fo.spinner }, e));
2119
2115
  }
2120
2116
  function Vo(e, t = 500) {
2121
2117
  const [n, o] = G(e);
2122
- return F(() => {
2118
+ return D(() => {
2123
2119
  const a = window.setTimeout(() => o(e), t);
2124
2120
  return () => {
2125
2121
  window.clearTimeout(a);
@@ -2132,7 +2128,7 @@ const Ao = "_loadingContainer_v9v7r_1", Oo = {
2132
2128
  function nn(n) {
2133
2129
  var o = n, { style: e } = o, t = ne(o, ["style"]);
2134
2130
  const a = f((u) => u.isLoading);
2135
- return Vo(a, 100) ? /* @__PURE__ */ s.jsx("div", he(P({ className: Oo.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(No, {}) })) : null;
2131
+ return Vo(a, 100) ? /* @__PURE__ */ s.jsx("div", he(j({ className: Oo.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(No, {}) })) : null;
2136
2132
  }
2137
2133
  function Ho() {
2138
2134
  return /* @__PURE__ */ s.jsx(
@@ -2167,7 +2163,7 @@ const Uo = "_dropdownMenuContent_b7j6b_1", Bo = "_dropdownMenuItem_b7j6b_83", zo
2167
2163
  var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
2168
2164
  return /* @__PURE__ */ s.jsx(
2169
2165
  Te.Content,
2170
- he(P({
2166
+ he(j({
2171
2167
  ref: a,
2172
2168
  sideOffset: e,
2173
2169
  className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
@@ -2210,7 +2206,7 @@ const on = Ne((a, o) => {
2210
2206
  };
2211
2207
  return /* @__PURE__ */ s.jsx(Te.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
2212
2208
  "div",
2213
- P({
2209
+ j({
2214
2210
  ref: o,
2215
2211
  className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
2216
2212
  role: "menuitem",
@@ -2299,21 +2295,21 @@ function an() {
2299
2295
  ) })
2300
2296
  ] });
2301
2297
  }
2302
- const ni = "0.0.44", ln = {
2298
+ const ni = "0.0.45", ln = {
2303
2299
  version: ni
2304
2300
  };
2305
2301
  function wi(e) {
2306
- return /* @__PURE__ */ s.jsx(Ir, { children: /* @__PURE__ */ s.jsx(ri, P({}, e)) });
2302
+ return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ri, j({}, e)) });
2307
2303
  }
2308
2304
  function ri({ url: e, messages: t, onEvent: n }) {
2309
2305
  const o = f((a) => a.containerRef);
2310
- return F(() => {
2306
+ return D(() => {
2311
2307
  console.log(`[Player][Live] Version: ${ln.version}`);
2312
2308
  }, []), /* @__PURE__ */ s.jsxs(
2313
2309
  "div",
2314
2310
  {
2315
2311
  ref: o,
2316
- className: z.playerContainer,
2312
+ className: B.playerContainer,
2317
2313
  children: [
2318
2314
  /* @__PURE__ */ s.jsxs(
2319
2315
  Er,
@@ -2338,14 +2334,14 @@ function ri({ url: e, messages: t, onEvent: n }) {
2338
2334
  /* @__PURE__ */ s.jsx(nn, {}),
2339
2335
  /* @__PURE__ */ s.jsx(Kr, {}),
2340
2336
  /* @__PURE__ */ s.jsxs(tn, { children: [
2341
- /* @__PURE__ */ s.jsx("div", { className: z.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: z.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: z.controlsRow, children: /* @__PURE__ */ s.jsx(wo, {}) }) }) }),
2342
- /* @__PURE__ */ s.jsx("div", { className: z.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: z.controlsContainer, children: [
2337
+ /* @__PURE__ */ s.jsx("div", { className: B.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsRow, children: /* @__PURE__ */ s.jsx(wo, {}) }) }) }),
2338
+ /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2343
2339
  /* @__PURE__ */ s.jsx(fo, {}),
2344
- /* @__PURE__ */ s.jsxs("div", { className: z.controlsRow, children: [
2340
+ /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2345
2341
  /* @__PURE__ */ s.jsxs(
2346
2342
  "div",
2347
2343
  {
2348
- className: `${z.controlsSection} ${z.controlsSectionStart}`,
2344
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2349
2345
  children: [
2350
2346
  /* @__PURE__ */ s.jsx(to, {}),
2351
2347
  /* @__PURE__ */ s.jsx(mo, {}),
@@ -2356,7 +2352,7 @@ function ri({ url: e, messages: t, onEvent: n }) {
2356
2352
  /* @__PURE__ */ s.jsxs(
2357
2353
  "div",
2358
2354
  {
2359
- className: `${z.controlsSection} ${z.controlsSectionEnd}`,
2355
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2360
2356
  children: [
2361
2357
  /* @__PURE__ */ s.jsx(eo, { message: t == null ? void 0 : t.live }),
2362
2358
  /* @__PURE__ */ s.jsx(sn, {}),
@@ -2370,7 +2366,7 @@ function ri({ url: e, messages: t, onEvent: n }) {
2370
2366
  ]
2371
2367
  }
2372
2368
  ),
2373
- /* @__PURE__ */ s.jsx(kr, {}),
2369
+ /* @__PURE__ */ s.jsx(Ir, {}),
2374
2370
  /* @__PURE__ */ s.jsx(Vr, { url: e }),
2375
2371
  n && /* @__PURE__ */ s.jsx(Lr, { callback: n })
2376
2372
  ]
@@ -2406,20 +2402,20 @@ function ii() {
2406
2402
  }
2407
2403
  const bt = "vod-player-progress-bar";
2408
2404
  function si() {
2409
- const e = A(null), t = A(null), [n, o] = G(!1), [a, l] = G(-1), [u, i] = G(-1), c = f((k) => k.currentTime), d = f((k) => k.duration), v = f((k) => k.seek), y = f((k) => k.addIdleLock), g = f((k) => k.removeIdleLock), L = parseFloat(
2405
+ const e = V(null), t = V(null), [n, o] = G(!1), [a, l] = G(-1), [u, i] = G(-1), c = f((L) => L.currentTime), d = f((L) => L.duration), v = f((L) => L.seek), y = f((L) => L.addIdleLock), g = f((L) => L.removeIdleLock), P = parseFloat(
2410
2406
  (d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
2411
- ), D = (k) => {
2412
- i(d * (k[0] / 100)), y(bt);
2407
+ ), k = (L) => {
2408
+ i(d * (L[0] / 100)), y(bt);
2413
2409
  }, _ = () => {
2414
2410
  u !== -1 && (v(u), i(-1), g(bt));
2415
- }, S = () => o(!0), V = () => o(!1), R = W(
2416
- (k) => {
2417
- const x = e.current, j = t.current;
2418
- if (x && j) {
2419
- const p = Me(x), $ = Me(j), Y = (k.pageX || k.clientX) - p.left, B = Y / p.width;
2420
- if (B < 0) return;
2421
- let M = Y - $.width / 2;
2422
- M < 0 && (M = 0), M > p.width - $.width && (M = -1), j.style.left = M > -1 ? `${M}px` : "auto", j.style.right = M > -1 ? "auto" : "0px", l(B * d);
2411
+ }, S = () => o(!0), N = () => o(!1), R = W(
2412
+ (L) => {
2413
+ const x = e.current, M = t.current;
2414
+ if (x && M) {
2415
+ const p = Fe(x), U = Fe(M), Y = (L.pageX || L.clientX) - p.left, z = Y / p.width;
2416
+ if (z < 0) return;
2417
+ let O = Y - U.width / 2;
2418
+ O < 0 && (O = 0), O > p.width - U.width && (O = -1), M.style.left = O > -1 ? `${O}px` : "auto", M.style.right = O > -1 ? "auto" : "0px", l(z * d);
2423
2419
  }
2424
2420
  S();
2425
2421
  },
@@ -2430,11 +2426,11 @@ function si() {
2430
2426
  Ae,
2431
2427
  {
2432
2428
  ref: e,
2433
- value: [L],
2434
- onPointerLeave: V,
2435
- onPointerDown: V,
2429
+ value: [P],
2430
+ onPointerLeave: N,
2431
+ onPointerDown: N,
2436
2432
  onPointerMove: R,
2437
- onValueChange: D,
2433
+ onValueChange: k,
2438
2434
  onValueCommit: _,
2439
2435
  step: 0.1
2440
2436
  }
@@ -2449,22 +2445,22 @@ function si() {
2449
2445
  )
2450
2446
  ] });
2451
2447
  }
2452
- const ai = "_remainingTimeContainer_1yyhb_1", li = "_remainingTime_1yyhb_1", ci = "_remainingSeparator_1yyhb_17", Fe = {
2448
+ const ai = "_remainingTimeContainer_1yyhb_1", li = "_remainingTime_1yyhb_1", ci = "_remainingSeparator_1yyhb_17", Me = {
2453
2449
  remainingTimeContainer: ai,
2454
2450
  remainingTime: li,
2455
2451
  remainingSeparator: ci
2456
2452
  };
2457
2453
  function ui() {
2458
2454
  const e = f((n) => n.currentTime), t = f((n) => n.duration);
2459
- return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
2460
- /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: _e(e) }),
2461
- /* @__PURE__ */ s.jsx("p", { className: Fe.remainingSeparator }),
2462
- /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: _e(t) })
2455
+ return /* @__PURE__ */ s.jsxs("div", { className: Me.remainingTimeContainer, children: [
2456
+ /* @__PURE__ */ s.jsx("p", { className: Me.remainingTime, children: _e(e) }),
2457
+ /* @__PURE__ */ s.jsx("p", { className: Me.remainingSeparator }),
2458
+ /* @__PURE__ */ s.jsx("p", { className: Me.remainingTime, children: _e(t) })
2463
2459
  ] });
2464
2460
  }
2465
2461
  function di({ callback: e }) {
2466
2462
  const t = f((n) => n.eventEmitter);
2467
- return F(() => {
2463
+ return D(() => {
2468
2464
  const n = (o) => e("timeUpdate", o);
2469
2465
  return t.on("timeUpdate", n), () => {
2470
2466
  t.off("timeUpdate", n);
@@ -2492,36 +2488,36 @@ function fi() {
2492
2488
  },
2493
2489
  [e, t, n, o, a, l]
2494
2490
  );
2495
- return F(() => (document.addEventListener("keydown", u), () => {
2491
+ return D(() => (document.addEventListener("keydown", u), () => {
2496
2492
  document.removeEventListener("keydown", u);
2497
2493
  }), [u]), /* @__PURE__ */ s.jsx(qt, {});
2498
2494
  }
2499
2495
  function xi(e) {
2500
- return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(hi, P({}, e)) });
2496
+ return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(hi, j({}, e)) });
2501
2497
  }
2502
2498
  function hi({ url: e, messages: t, onEvent: n, startTime: o }) {
2503
2499
  const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
2504
- return F(() => {
2500
+ return D(() => {
2505
2501
  o && a(o);
2506
- }, [o, a]), F(() => {
2502
+ }, [o, a]), D(() => {
2507
2503
  console.log(`[Player][VOD] Version: ${ln.version}`);
2508
2504
  }, []), /* @__PURE__ */ s.jsxs(
2509
2505
  "div",
2510
2506
  {
2511
2507
  ref: l,
2512
- className: z.playerContainer,
2508
+ className: B.playerContainer,
2513
2509
  children: [
2514
2510
  /* @__PURE__ */ s.jsx(Yt, { url: e, isLive: !1, messages: t }),
2515
2511
  /* @__PURE__ */ s.jsx(Qt, {}),
2516
2512
  /* @__PURE__ */ s.jsx(nn, {}),
2517
2513
  /* @__PURE__ */ s.jsx(oi, {}),
2518
- /* @__PURE__ */ s.jsx(tn, { children: /* @__PURE__ */ s.jsx("div", { className: z.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: z.controlsContainer, children: [
2514
+ /* @__PURE__ */ s.jsx(tn, { children: /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2519
2515
  /* @__PURE__ */ s.jsx(si, {}),
2520
- /* @__PURE__ */ s.jsxs("div", { className: z.controlsRow, children: [
2516
+ /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2521
2517
  /* @__PURE__ */ s.jsxs(
2522
2518
  "div",
2523
2519
  {
2524
- className: `${z.controlsSection} ${z.controlsSectionStart}`,
2520
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2525
2521
  children: [
2526
2522
  /* @__PURE__ */ s.jsx(ii, {}),
2527
2523
  /* @__PURE__ */ s.jsx(an, {}),
@@ -2532,7 +2528,7 @@ function hi({ url: e, messages: t, onEvent: n, startTime: o }) {
2532
2528
  /* @__PURE__ */ s.jsxs(
2533
2529
  "div",
2534
2530
  {
2535
- className: `${z.controlsSection} ${z.controlsSectionEnd}`,
2531
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2536
2532
  children: [
2537
2533
  /* @__PURE__ */ s.jsx(sn, {}),
2538
2534
  /* @__PURE__ */ s.jsx(en, {})