@halibegic/react-video-player 0.0.38 → 0.0.40

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,12 +1,12 @@
1
1
  var Mn = Object.defineProperty, Nn = Object.defineProperties;
2
2
  var Vn = Object.getOwnPropertyDescriptors;
3
- var Se = Object.getOwnPropertySymbols;
3
+ var be = Object.getOwnPropertySymbols;
4
4
  var vt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
5
- var pt = (e, t, n) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, L = (e, t) => {
5
+ var pt = (e, t, n) => t in e ? Mn(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
- if (Se)
9
- for (var n of Se(t))
8
+ if (be)
9
+ for (var n of be(t))
10
10
  yt.call(t, n) && pt(e, n, t[n]);
11
11
  return e;
12
12
  }, he = (e, t) => Nn(e, Vn(t));
@@ -14,19 +14,19 @@ var ne = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
16
  vt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && Se)
18
- for (var o of Se(e))
17
+ if (e != null && be)
18
+ for (var o of be(e))
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 An, useEffect as F, useRef as V, useState as X, createContext as jt, useContext as Lt, useCallback as z, forwardRef as Ne } from "react";
23
- import { create as Pt, useStore as kt } from "zustand";
22
+ import bt, { useLayoutEffect as An, useEffect as A, useRef as N, useState as X, createContext as jt, useContext as Lt, useCallback as z, forwardRef as Ne } from "react";
23
+ import { create as Pt, useStore as It } from "zustand";
24
24
  import On 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 Le 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) {
@@ -55,9 +55,9 @@ function Dt(e) {
55
55
  var l = a.length;
56
56
  function u(c, d) {
57
57
  if (d && (typeof d == "object" || typeof d == "function")) {
58
- var g = d.then;
59
- if (typeof g == "function") {
60
- g.call(
58
+ var v = d.then;
59
+ if (typeof v == "function") {
60
+ v.call(
61
61
  d,
62
62
  function(y) {
63
63
  u(c, y);
@@ -112,8 +112,8 @@ function Un(e, t) {
112
112
  e.apply(t, arguments);
113
113
  };
114
114
  }
115
- function M(e) {
116
- if (!(this instanceof M))
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,17 +125,17 @@ function Vt(e, t) {
125
125
  e._deferreds.push(t);
126
126
  return;
127
127
  }
128
- e._handled = !0, M._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
- (e._state === 1 ? Ke : _e)(t.promise, e._value);
131
+ (e._state === 1 ? Ke : xe)(t.promise, e._value);
132
132
  return;
133
133
  }
134
134
  var o;
135
135
  try {
136
136
  o = n(e._value);
137
137
  } catch (a) {
138
- _e(t.promise, a);
138
+ xe(t.promise, a);
139
139
  return;
140
140
  }
141
141
  Ke(t.promise, o);
@@ -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 M) {
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") {
@@ -157,15 +157,15 @@ function Ke(e, t) {
157
157
  }
158
158
  e._state = 1, e._value = t, Ye(e);
159
159
  } catch (o) {
160
- _e(e, o);
160
+ xe(e, o);
161
161
  }
162
162
  }
163
- function _e(e, t) {
163
+ 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 && M._immediateFn(function() {
168
- e._handled || M._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]);
@@ -182,24 +182,24 @@ function At(e, t) {
182
182
  n || (n = !0, Ke(t, o));
183
183
  },
184
184
  function(o) {
185
- n || (n = !0, _e(t, o));
185
+ n || (n = !0, xe(t, o));
186
186
  }
187
187
  );
188
188
  } catch (o) {
189
189
  if (n) return;
190
- n = !0, _e(t, o);
190
+ n = !0, xe(t, o);
191
191
  }
192
192
  }
193
- M.prototype.catch = function(e) {
193
+ F.prototype.catch = function(e) {
194
194
  return this.then(null, e);
195
195
  };
196
- M.prototype.then = function(e, t) {
196
+ F.prototype.then = function(e, t) {
197
197
  var n = new this.constructor($n);
198
198
  return Vt(this, new Bn(e, t, n)), n;
199
199
  };
200
- M.prototype.finally = It;
201
- M.all = function(e) {
202
- return new M(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);
@@ -212,8 +212,8 @@ M.all = function(e) {
212
212
  if (typeof d == "function") {
213
213
  d.call(
214
214
  c,
215
- function(g) {
216
- l(i, g);
215
+ function(v) {
216
+ l(i, v);
217
217
  },
218
218
  n
219
219
  );
@@ -221,41 +221,41 @@ M.all = function(e) {
221
221
  }
222
222
  }
223
223
  o[i] = c, --a === 0 && t(o);
224
- } catch (g) {
225
- n(g);
224
+ } catch (v) {
225
+ n(v);
226
226
  }
227
227
  }
228
228
  for (var u = 0; u < o.length; u++)
229
229
  l(u, o[u]);
230
230
  });
231
231
  };
232
- M.any = Mt;
233
- M.allSettled = Dt;
234
- M.resolve = function(e) {
235
- return e && typeof e == "object" && e.constructor === M ? e : new M(function(t) {
232
+ F.any = Mt;
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
- M.reject = function(e) {
240
- return new M(function(t, n) {
239
+ F.reject = function(e) {
240
+ return new F(function(t, n) {
241
241
  n(e);
242
242
  });
243
243
  };
244
- M.race = function(e) {
245
- return new M(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
- M.resolve(e[o]).then(t, n);
249
+ F.resolve(e[o]).then(t, n);
250
250
  });
251
251
  };
252
- M._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
  Hn(e, 0);
257
257
  };
258
- M._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,66 +267,66 @@ 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 = M : (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 = Mt));
271
271
  var Pe = { exports: {} }, ge = {};
272
272
  var gt;
273
273
  function zn() {
274
274
  if (gt) return ge;
275
275
  gt = 1;
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 };
276
+ var e = bt, 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 g, y = {}, v = null, x = null;
279
- d !== void 0 && (v = "" + d), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (x = c.ref);
280
- for (g in c) o.call(c, g) && !l.hasOwnProperty(g) && (y[g] = c[g]);
281
- if (i && i.defaultProps) for (g in c = i.defaultProps, c) y[g] === void 0 && (y[g] = c[g]);
282
- return { $$typeof: t, type: i, key: v, ref: x, props: y, _owner: a.current };
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);
280
+ for (v in c) o.call(c, v) && !l.hasOwnProperty(v) && (y[v] = c[v]);
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 };
283
283
  }
284
284
  return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
285
285
  }
286
286
  var we = {};
287
287
  var wt;
288
- function qn() {
288
+ function Wn() {
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"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), P = Symbol.iterator, b = "@@iterator";
291
- function E(r) {
290
+ var e = bt, 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";
291
+ function b(r) {
292
292
  if (r === null || typeof r != "object")
293
293
  return null;
294
- var h = P && r[P] || r[b];
294
+ var h = D && r[D] || r[_];
295
295
  return typeof h == "function" ? h : null;
296
296
  }
297
- var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
- function S(r) {
297
+ var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
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
+ P("error", r, m);
303
303
  }
304
304
  }
305
- function k(r, h, m) {
305
+ function P(r, h, m) {
306
306
  {
307
- var w = N.ReactDebugCurrentFrame, R = w.getStackAddendum();
308
- R !== "" && (h += "%s", m = m.concat([R]));
309
- var j = m.map(function(C) {
307
+ var w = M.ReactDebugCurrentFrame, E = w.getStackAddendum();
308
+ E !== "" && (h += "%s", m = m.concat([E]));
309
+ var S = m.map(function(C) {
310
310
  return String(C);
311
311
  });
312
- j.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, j);
312
+ S.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, S);
313
313
  }
314
314
  }
315
- var _ = !1, I = !1, p = !1, $ = !1, G = !1, Z;
316
- Z = Symbol.for("react.module.reference");
315
+ var x = !1, I = !1, p = !1, $ = !1, G = !1, q;
316
+ q = Symbol.for("react.module.reference");
317
317
  function O(r) {
318
- return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || G || r === a || r === d || r === g || $ || r === x || _ || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
318
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || G || r === a || r === d || r === v || $ || r === L || x || I || 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 === Z || r.getModuleId !== void 0));
322
+ r.$$typeof === q || r.getModuleId !== void 0));
323
323
  }
324
- function D(r, h, m) {
324
+ function k(r, h, m) {
325
325
  var w = r.displayName;
326
326
  if (w)
327
327
  return w;
328
- var R = h.displayName || h.name || "";
329
- return R !== "" ? m + "(" + R + ")" : m;
328
+ var E = h.displayName || h.name || "";
329
+ return E !== "" ? m + "(" + E + ")" : m;
330
330
  }
331
331
  function Q(r) {
332
332
  return r.displayName || "Context";
@@ -334,7 +334,7 @@ function qn() {
334
334
  function K(r) {
335
335
  if (r == null)
336
336
  return null;
337
- if (typeof r.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
337
+ if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
338
338
  return r.displayName || r.name || null;
339
339
  if (typeof r == "string")
340
340
  return r;
@@ -349,7 +349,7 @@ function qn() {
349
349
  return "StrictMode";
350
350
  case d:
351
351
  return "Suspense";
352
- case g:
352
+ case v:
353
353
  return "SuspenseList";
354
354
  }
355
355
  if (typeof r == "object")
@@ -361,14 +361,14 @@ function qn() {
361
361
  var m = r;
362
362
  return Q(m._context) + ".Provider";
363
363
  case c:
364
- return D(r, r.render, "ForwardRef");
364
+ return k(r, r.render, "ForwardRef");
365
365
  case y:
366
366
  var w = r.displayName || null;
367
367
  return w !== null ? w : K(r.type) || "Memo";
368
- case v: {
369
- var R = r, j = R._payload, C = R._init;
368
+ case g: {
369
+ var E = r, S = E._payload, C = E._init;
370
370
  try {
371
- return K(C(j));
371
+ return K(C(S));
372
372
  } catch (T) {
373
373
  return null;
374
374
  }
@@ -376,14 +376,14 @@ function qn() {
376
376
  }
377
377
  return null;
378
378
  }
379
- var q = Object.assign, oe = 0, ue, te, W, ve, Xe, Ge, Je;
379
+ var W = Object.assign, oe = 0, ue, te, Z, ve, Xe, Ge, Je;
380
380
  function Qe() {
381
381
  }
382
382
  Qe.__reactDisabledLog = !0;
383
383
  function ln() {
384
384
  {
385
385
  if (oe === 0) {
386
- ue = console.log, te = console.info, W = console.warn, ve = console.error, Xe = console.group, Ge = console.groupCollapsed, Je = console.groupEnd;
386
+ ue = console.log, te = console.info, Z = console.warn, ve = console.error, Xe = console.group, Ge = console.groupCollapsed, Je = console.groupEnd;
387
387
  var r = {
388
388
  configurable: !0,
389
389
  enumerable: !0,
@@ -412,40 +412,40 @@ function qn() {
412
412
  writable: !0
413
413
  };
414
414
  Object.defineProperties(console, {
415
- log: q({}, r, {
415
+ log: W({}, r, {
416
416
  value: ue
417
417
  }),
418
- info: q({}, r, {
418
+ info: W({}, r, {
419
419
  value: te
420
420
  }),
421
- warn: q({}, r, {
422
- value: W
421
+ warn: W({}, r, {
422
+ value: Z
423
423
  }),
424
- error: q({}, r, {
424
+ error: W({}, r, {
425
425
  value: ve
426
426
  }),
427
- group: q({}, r, {
427
+ group: W({}, r, {
428
428
  value: Xe
429
429
  }),
430
- groupCollapsed: q({}, r, {
430
+ groupCollapsed: W({}, r, {
431
431
  value: Ge
432
432
  }),
433
- groupEnd: q({}, r, {
433
+ groupEnd: W({}, r, {
434
434
  value: Je
435
435
  })
436
436
  });
437
437
  }
438
- oe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
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 = N.ReactCurrentDispatcher, He;
441
+ var Oe = M.ReactCurrentDispatcher, He;
442
442
  function Ce(r, h, m) {
443
443
  {
444
444
  if (He === void 0)
445
445
  try {
446
446
  throw Error();
447
- } catch (R) {
448
- var w = R.stack.trim().match(/\n( *(at )?)/);
447
+ } catch (E) {
448
+ var w = E.stack.trim().match(/\n( *(at )?)/);
449
449
  He = w && w[1] || "";
450
450
  }
451
451
  return `
@@ -467,10 +467,10 @@ function qn() {
467
467
  }
468
468
  var w;
469
469
  $e = !0;
470
- var R = Error.prepareStackTrace;
470
+ var E = Error.prepareStackTrace;
471
471
  Error.prepareStackTrace = void 0;
472
- var j;
473
- j = Oe.current, Oe.current = null, ln();
472
+ var S;
473
+ S = Oe.current, Oe.current = null, ln();
474
474
  try {
475
475
  if (h) {
476
476
  var C = function() {
@@ -523,7 +523,7 @@ function qn() {
523
523
  }
524
524
  }
525
525
  } finally {
526
- $e = !1, Oe.current = j, cn(), Error.prepareStackTrace = R;
526
+ $e = !1, Oe.current = S, cn(), Error.prepareStackTrace = E;
527
527
  }
528
528
  var fe = r ? r.displayName || r.name : "", ce = fe ? Ce(fe) : "";
529
529
  return typeof r == "function" && Ee.set(r, ce), ce;
@@ -545,7 +545,7 @@ function qn() {
545
545
  switch (r) {
546
546
  case d:
547
547
  return Ce("Suspense");
548
- case g:
548
+ case v:
549
549
  return Ce("SuspenseList");
550
550
  }
551
551
  if (typeof r == "object")
@@ -554,29 +554,29 @@ function qn() {
554
554
  return dn(r.render);
555
555
  case y:
556
556
  return Re(r.type, h, m);
557
- case v: {
558
- var w = r, R = w._payload, j = w._init;
557
+ case g: {
558
+ var w = r, E = w._payload, S = w._init;
559
559
  try {
560
- return Re(j(R), h, m);
560
+ return Re(S(E), h, m);
561
561
  } catch (C) {
562
562
  }
563
563
  }
564
564
  }
565
565
  return "";
566
566
  }
567
- var ye = Object.prototype.hasOwnProperty, tt = {}, nt = N.ReactDebugCurrentFrame;
568
- function be(r) {
567
+ var ye = Object.prototype.hasOwnProperty, tt = {}, nt = M.ReactDebugCurrentFrame;
568
+ function Se(r) {
569
569
  if (r) {
570
570
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
571
571
  nt.setExtraStackFrame(m);
572
572
  } else
573
573
  nt.setExtraStackFrame(null);
574
574
  }
575
- function hn(r, h, m, w, R) {
575
+ function hn(r, h, m, w, E) {
576
576
  {
577
- var j = Function.call.bind(ye);
577
+ var S = Function.call.bind(ye);
578
578
  for (var C in r)
579
- if (j(r, C)) {
579
+ if (S(r, C)) {
580
580
  var T = void 0;
581
581
  try {
582
582
  if (typeof r[C] != "function") {
@@ -587,7 +587,7 @@ function qn() {
587
587
  } catch (H) {
588
588
  T = H;
589
589
  }
590
- T && !(T instanceof Error) && (be(R), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", m, C, typeof T), be(null)), T instanceof Error && !(T.message in tt) && (tt[T.message] = !0, be(R), S("Failed %s type: %s", m, T.message), be(null));
590
+ T && !(T instanceof Error) && (Se(E), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", m, C, typeof T), Se(null)), T instanceof Error && !(T.message in tt) && (tt[T.message] = !0, Se(E), R("Failed %s type: %s", m, T.message), Se(null));
591
591
  }
592
592
  }
593
593
  }
@@ -613,9 +613,9 @@ function qn() {
613
613
  }
614
614
  function ot(r) {
615
615
  if (vn(r))
616
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pn(r)), rt(r);
616
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pn(r)), rt(r);
617
617
  }
618
- var it = N.ReactCurrentOwner, yn = {
618
+ var it = M.ReactCurrentOwner, yn = {
619
619
  key: !0,
620
620
  ref: !0,
621
621
  __self: !0,
@@ -637,13 +637,13 @@ function qn() {
637
637
  }
638
638
  return r.key !== void 0;
639
639
  }
640
- function _n(r, h) {
640
+ function xn(r, h) {
641
641
  typeof r.ref == "string" && it.current;
642
642
  }
643
- function xn(r, h) {
643
+ function _n(r, h) {
644
644
  {
645
645
  var m = function() {
646
- st || (st = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
646
+ st || (st = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
647
647
  };
648
648
  m.isReactWarning = !0, Object.defineProperty(r, "key", {
649
649
  get: m,
@@ -654,7 +654,7 @@ function qn() {
654
654
  function Tn(r, h) {
655
655
  {
656
656
  var m = function() {
657
- at || (at = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
657
+ at || (at = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
658
658
  };
659
659
  m.isReactWarning = !0, Object.defineProperty(r, "ref", {
660
660
  get: m,
@@ -662,7 +662,7 @@ function qn() {
662
662
  });
663
663
  }
664
664
  }
665
- var Cn = function(r, h, m, w, R, j, C) {
665
+ var Cn = function(r, h, m, w, E, S, C) {
666
666
  var T = {
667
667
  // This tag allows us to uniquely identify this as a React Element
668
668
  $$typeof: t,
@@ -672,7 +672,7 @@ function qn() {
672
672
  ref: m,
673
673
  props: C,
674
674
  // Record the component responsible for creating this element.
675
- _owner: j
675
+ _owner: S
676
676
  };
677
677
  return T._store = {}, Object.defineProperty(T._store, "validated", {
678
678
  configurable: !1,
@@ -688,28 +688,28 @@ function qn() {
688
688
  configurable: !1,
689
689
  enumerable: !1,
690
690
  writable: !1,
691
- value: R
691
+ value: E
692
692
  }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
693
693
  };
694
- function En(r, h, m, w, R) {
694
+ function En(r, h, m, w, E) {
695
695
  {
696
- var j, C = {}, T = null, Y = null;
697
- m !== void 0 && (ot(m), T = "" + m), wn(h) && (ot(h.key), T = "" + h.key), gn(h) && (Y = h.ref, _n(h, R));
698
- for (j in h)
699
- ye.call(h, j) && !yn.hasOwnProperty(j) && (C[j] = h[j]);
696
+ var S, C = {}, T = null, Y = null;
697
+ m !== void 0 && (ot(m), T = "" + m), wn(h) && (ot(h.key), T = "" + h.key), gn(h) && (Y = h.ref, xn(h, E));
698
+ for (S in h)
699
+ ye.call(h, S) && !yn.hasOwnProperty(S) && (C[S] = h[S]);
700
700
  if (r && r.defaultProps) {
701
701
  var H = r.defaultProps;
702
- for (j in H)
703
- C[j] === void 0 && (C[j] = H[j]);
702
+ for (S in H)
703
+ C[S] === void 0 && (C[S] = H[S]);
704
704
  }
705
705
  if (T || Y) {
706
706
  var U = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
- T && xn(C, U), Y && Tn(C, U);
707
+ T && _n(C, U), Y && Tn(C, U);
708
708
  }
709
- return Cn(r, T, Y, R, w, it.current, C);
709
+ return Cn(r, T, Y, E, w, it.current, C);
710
710
  }
711
711
  }
712
- var Be = N.ReactCurrentOwner, lt = N.ReactDebugCurrentFrame;
712
+ var Be = M.ReactCurrentOwner, lt = M.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);
@@ -719,7 +719,7 @@ function qn() {
719
719
  }
720
720
  var ze;
721
721
  ze = !1;
722
- function qe(r) {
722
+ function We(r) {
723
723
  return typeof r == "object" && r !== null && r.$$typeof === t;
724
724
  }
725
725
  function ct() {
@@ -738,7 +738,7 @@ Check the render method of \`` + r + "`.";
738
738
  return "";
739
739
  }
740
740
  var ut = {};
741
- function bn(r) {
741
+ function Sn(r) {
742
742
  {
743
743
  var h = ct();
744
744
  if (!h) {
@@ -755,12 +755,12 @@ Check the top-level render call using <` + m + ">.");
755
755
  if (!r._store || r._store.validated || r.key != null)
756
756
  return;
757
757
  r._store.validated = !0;
758
- var m = bn(h);
758
+ var m = Sn(h);
759
759
  if (ut[m])
760
760
  return;
761
761
  ut[m] = !0;
762
762
  var w = "";
763
- r && r._owner && r._owner !== Be.current && (w = " It was passed a child from " + K(r._owner.type) + "."), de(r), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), de(null);
763
+ r && r._owner && r._owner !== Be.current && (w = " It was passed a child from " + K(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), de(null);
764
764
  }
765
765
  }
766
766
  function ft(r, h) {
@@ -770,19 +770,19 @@ Check the top-level render call using <` + m + ">.");
770
770
  if (Ue(r))
771
771
  for (var m = 0; m < r.length; m++) {
772
772
  var w = r[m];
773
- qe(w) && dt(w, h);
773
+ We(w) && dt(w, h);
774
774
  }
775
- else if (qe(r))
775
+ else if (We(r))
776
776
  r._store && (r._store.validated = !0);
777
777
  else if (r) {
778
- var R = E(r);
779
- if (typeof R == "function" && R !== r.entries)
780
- for (var j = R.call(r), C; !(C = j.next()).done; )
781
- qe(C.value) && dt(C.value, h);
778
+ var E = b(r);
779
+ if (typeof E == "function" && E !== r.entries)
780
+ for (var S = E.call(r), C; !(C = S.next()).done; )
781
+ We(C.value) && dt(C.value, h);
782
782
  }
783
783
  }
784
784
  }
785
- function Sn(r) {
785
+ function bn(r) {
786
786
  {
787
787
  var h = r.type;
788
788
  if (h == null || typeof h == "string")
@@ -801,10 +801,10 @@ Check the top-level render call using <` + m + ">.");
801
801
  hn(m, r.props, "prop", w, r);
802
802
  } else if (h.PropTypes !== void 0 && !ze) {
803
803
  ze = !0;
804
- var R = K(h);
805
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
804
+ var E = K(h);
805
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
806
806
  }
807
- typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
807
+ typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
808
808
  }
809
809
  }
810
810
  function jn(r) {
@@ -812,15 +812,15 @@ Check the top-level render call using <` + m + ">.");
812
812
  for (var h = Object.keys(r.props), m = 0; m < h.length; m++) {
813
813
  var w = h[m];
814
814
  if (w !== "children" && w !== "key") {
815
- de(r), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
815
+ de(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
816
816
  break;
817
817
  }
818
818
  }
819
- r.ref !== null && (de(r), S("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
819
+ r.ref !== null && (de(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
820
820
  }
821
821
  }
822
822
  var ht = {};
823
- function mt(r, h, m, w, R, j) {
823
+ function mt(r, h, m, w, E, S) {
824
824
  {
825
825
  var C = O(r);
826
826
  if (!C) {
@@ -829,9 +829,9 @@ Check the top-level render call using <` + m + ">.");
829
829
  var Y = Rn();
830
830
  Y ? T += Y : T += ct();
831
831
  var H;
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, S("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);
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 = En(r, h, m, R, j);
834
+ var U = En(r, h, m, E, S);
835
835
  if (U == null)
836
836
  return U;
837
837
  if (C) {
@@ -843,25 +843,25 @@ Check the top-level render call using <` + m + ">.");
843
843
  ft(ee[fe], r);
844
844
  Object.freeze && Object.freeze(ee);
845
845
  } else
846
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
846
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
847
847
  else
848
848
  ft(ee, r);
849
849
  }
850
850
  if (ye.call(h, "key")) {
851
851
  var ce = K(r), J = Object.keys(h).filter(function(Fn) {
852
852
  return Fn !== "key";
853
- }), We = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
- if (!ht[ce + We]) {
853
+ }), Ze = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
+ if (!ht[ce + Ze]) {
855
855
  var Dn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
856
- S(`A props object containing a "key" prop is being spread into JSX:
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} />`, We, ce, Dn, ce), ht[ce + We] = !0;
861
+ <%s key={someKey} {...props} />`, Ze, ce, Dn, ce), ht[ce + Ze] = !0;
862
862
  }
863
863
  }
864
- return r === o ? jn(U) : Sn(U), U;
864
+ return r === o ? jn(U) : bn(U), U;
865
865
  }
866
866
  }
867
867
  function Ln(r, h, m) {
@@ -870,26 +870,26 @@ React keys must be passed directly to JSX without using spread:
870
870
  function Pn(r, h, m) {
871
871
  return mt(r, h, m, !1);
872
872
  }
873
- var kn = Pn, In = Ln;
874
- we.Fragment = o, we.jsx = kn, we.jsxs = In;
873
+ var In = Pn, kn = Ln;
874
+ we.Fragment = o, we.jsx = In, we.jsxs = kn;
875
875
  })()), we;
876
876
  }
877
- var _t;
878
- function Wn() {
879
- return _t || (_t = 1, process.env.NODE_ENV === "production" ? Pe.exports = zn() : Pe.exports = qn()), Pe.exports;
877
+ var xt;
878
+ function Zn() {
879
+ return xt || (xt = 1, process.env.NODE_ENV === "production" ? Pe.exports = zn() : Pe.exports = Wn()), Pe.exports;
880
880
  }
881
- var s = Wn();
882
- const Zn = "_playerNotice_lq5nz_1", Kn = "_playerNoticeTitle_lq5nz_17", Yn = "_playerNoticeText_lq5nz_26", Xn = "_playerNoticeLowZIndex_lq5nz_35", ie = {
883
- playerNotice: Zn,
881
+ var s = Zn();
882
+ const qn = "_playerNotice_x3acc_1", Kn = "_playerNoticeTitle_x3acc_19", Yn = "_playerNoticeText_x3acc_28", Xn = "_playerNoticeLowZIndex_x3acc_37", ie = {
883
+ playerNotice: qn,
884
884
  playerNoticeTitle: Kn,
885
885
  playerNoticeText: Yn,
886
886
  playerNoticeLowZIndex: Xn
887
- }, Ot = typeof window != "undefined" ? An : F;
887
+ }, Ot = typeof window != "undefined" ? An : A;
888
888
  function Ve(e, t) {
889
- const n = V(e);
889
+ const n = N(e);
890
890
  Ot(() => {
891
891
  n.current = e;
892
- }, [e]), F(() => {
892
+ }, [e]), A(() => {
893
893
  if (t === null)
894
894
  return;
895
895
  const o = setInterval(() => {
@@ -914,15 +914,15 @@ const Jn = () => Pt((e) => ({
914
914
  })), Ht = jt(
915
915
  null
916
916
  ), Qn = ({ children: e }) => {
917
- const t = V(
917
+ const t = N(
918
918
  null
919
919
  );
920
920
  return t.current || (t.current = Jn()), /* @__PURE__ */ s.jsx(Ht.Provider, { value: t.current, children: e });
921
- }, A = (e) => {
921
+ }, V = (e) => {
922
922
  const t = Lt(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 er(e, t, n) {
928
928
  const o = {
@@ -937,7 +937,7 @@ function er(e, t, n) {
937
937
  function tr(e) {
938
938
  return er(e, "milliseconds", "seconds");
939
939
  }
940
- const xe = (e) => {
940
+ const _e = (e) => {
941
941
  if (isNaN(e) || e === 1 / 0) return "0:00";
942
942
  const t = (l) => (l < 10 ? "0" : "") + l, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), a = Math.floor(e % 60);
943
943
  return n === 0 ? `${o}:${t(a)}` : `${n}:${t(o)}:${t(a)}`;
@@ -955,26 +955,26 @@ function nr(e, t) {
955
955
  minute: "2-digit",
956
956
  second: "2-digit",
957
957
  hour12: !1
958
- }).formatToParts(e), g = parseInt(
959
- ((n = d.find((E) => E.type === "year")) == null ? void 0 : n.value) || "0",
958
+ }).formatToParts(e), v = parseInt(
959
+ ((n = d.find((b) => b.type === "year")) == null ? void 0 : n.value) || "0",
960
960
  10
961
961
  ), y = parseInt(
962
- ((o = d.find((E) => E.type === "month")) == null ? void 0 : o.value) || "0",
962
+ ((o = d.find((b) => b.type === "month")) == null ? void 0 : o.value) || "0",
963
963
  10
964
- ) - 1, v = parseInt(
965
- ((a = d.find((E) => E.type === "day")) == null ? void 0 : a.value) || "0",
964
+ ) - 1, g = parseInt(
965
+ ((a = d.find((b) => b.type === "day")) == null ? void 0 : a.value) || "0",
966
966
  10
967
- ), x = parseInt(
968
- ((l = d.find((E) => E.type === "hour")) == null ? void 0 : l.value) || "0",
967
+ ), L = parseInt(
968
+ ((l = d.find((b) => b.type === "hour")) == null ? void 0 : l.value) || "0",
969
969
  10
970
- ), P = parseInt(
971
- ((u = d.find((E) => E.type === "minute")) == null ? void 0 : u.value) || "0",
970
+ ), D = parseInt(
971
+ ((u = d.find((b) => b.type === "minute")) == null ? void 0 : u.value) || "0",
972
972
  10
973
- ), b = parseInt(
974
- ((i = d.find((E) => E.type === "second")) == null ? void 0 : i.value) || "0",
973
+ ), _ = parseInt(
974
+ ((i = d.find((b) => b.type === "second")) == null ? void 0 : i.value) || "0",
975
975
  10
976
976
  );
977
- return new Date(g, y, v, x, P, b);
977
+ return new Date(v, y, g, L, D, _);
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 lr = () => On(), cr = (e, t) => ({
1205
1205
  setError: (t) => e({ error: t })
1206
1206
  }), pr = () => ({
1207
1207
  eventEmitter: lr()
1208
- }), vr = (e) => () => L({}, e), yr = (e, t) => Pt()((...n) => L(L(L(L(L(L(L(L({}, cr(...n)), ur(...n)), dr(...n)), hr(...n)), fr(...n)), mr(...n)), pr(...n)), vr({
1208
+ }), vr = (e) => () => j({}, e), yr = (e, t) => Pt()((...n) => j(j(j(j(j(j(j(j({}, cr(...n)), ur(...n)), dr(...n)), hr(...n)), fr(...n)), mr(...n)), pr(...n)), vr({
1209
1209
  techRef: e,
1210
1210
  containerRef: t
1211
1211
  })(...n))), Bt = jt(null);
1212
1212
  function gr({ children: e }) {
1213
- const t = V(null), n = V(null), o = V(null);
1213
+ const t = N(null), n = N(null), o = N(null);
1214
1214
  return t.current || (t.current = yr(n, o)), /* @__PURE__ */ s.jsx(Bt.Provider, { value: t.current, children: e });
1215
1215
  }
1216
1216
  const f = (e) => {
1217
1217
  const t = Lt(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 wr(e) {
1223
1223
  const t = e.split(`
@@ -1232,7 +1232,7 @@ function wr(e) {
1232
1232
  }
1233
1233
  return null;
1234
1234
  }
1235
- function _r(e, t) {
1235
+ function xr(e, t) {
1236
1236
  const n = e.split(`
1237
1237
  `);
1238
1238
  let o = !1;
@@ -1259,19 +1259,19 @@ function _r(e, t) {
1259
1259
  }
1260
1260
  return null;
1261
1261
  }
1262
- function xr(e) {
1262
+ function _r(e) {
1263
1263
  return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
1264
1264
  }
1265
1265
  async function Tr(e) {
1266
1266
  try {
1267
- const t = xr(e);
1267
+ const t = _r(e);
1268
1268
  console.log("Converting to DVR URL:", t);
1269
1269
  const n = await fetch(t);
1270
1270
  if (!n.ok)
1271
1271
  throw new Error(
1272
1272
  `Failed to fetch master playlist: ${n.status} ${n.statusText}`
1273
1273
  );
1274
- const o = await n.text(), a = _r(
1274
+ const o = await n.text(), a = xr(
1275
1275
  o,
1276
1276
  t
1277
1277
  );
@@ -1291,22 +1291,22 @@ async function Tr(e) {
1291
1291
  }
1292
1292
  function Cr(n) {
1293
1293
  var o = n, { url: e } = o, t = ne(o, ["url"]);
1294
- const [a, l] = X(!0), u = A((d) => d.startDate), i = A((d) => d.setStartDate), c = z(async () => {
1294
+ const [a, l] = X(!0), u = V((d) => d.startDate), i = V((d) => d.setStartDate), c = z(async () => {
1295
1295
  const d = await Tr(e);
1296
1296
  d && i(d);
1297
1297
  }, [e, i]);
1298
- return F(() => {
1298
+ return A(() => {
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(Er, L({}, t));
1302
+ }, [c]), Ve(c, u ? null : 5e3), a ? null : /* @__PURE__ */ s.jsx(Er, j({}, t));
1303
1303
  }
1304
1304
  function Er({
1305
1305
  children: e,
1306
1306
  messages: t = {}
1307
1307
  }) {
1308
1308
  var u, i, c;
1309
- const n = A((d) => d.startDate), o = f((d) => d.isStarted);
1309
+ const n = V((d) => d.startDate), o = f((d) => d.isStarted);
1310
1310
  return Gn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ s.jsx(
1311
1311
  Rr,
1312
1312
  {
@@ -1331,16 +1331,16 @@ function Rr({ 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 = (b) => e("volumeChange", b), c = (b) => e("fullscreenChange", b), d = (b) => e("qualityChange", b), g = (b) => e("loadedMetadata", b), y = () => e("loadStart", void 0), v = () => e("playing", void 0), x = () => e("waiting", void 0), P = () => 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", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", x), t.on("error", P), () => {
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", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", x), t.off("error", P);
1334
+ return A(() => {
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);
1338
1338
  };
1339
1339
  }, [e, t]), null;
1340
1340
  }
1341
- const qt = (e, t = 0) => parseInt(
1341
+ const Wt = (e, t = 0) => parseInt(
1342
1342
  Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
1343
- ), Wt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), br = (e, t) => Math.max(0, (t - e) / 1e3), Sr = (e, t = 0) => {
1343
+ ), Zt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Sr = (e, t) => Math.max(0, (t - e) / 1e3), br = (e, t = 0) => {
1344
1344
  const o = t < 0 ? 0 : t, a = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], l = Math.floor(Math.log(e) / Math.log(1024));
1345
1345
  return `${parseFloat((e / Math.pow(1024, l)).toFixed(o))}${a[l]}`;
1346
1346
  };
@@ -1362,17 +1362,17 @@ function jr({
1362
1362
  const { bitrate: u, height: i, index: c } = l;
1363
1363
  a.push({
1364
1364
  sid: `quality-level-${c}`,
1365
- label: i ? `${i}p` : Sr(u),
1365
+ label: i ? `${i}p` : br(u),
1366
1366
  value: c,
1367
1367
  selected: o === 1 || !e && c === t
1368
1368
  });
1369
1369
  }), a;
1370
1370
  }
1371
1371
  function Lr({ callback: e }) {
1372
- const t = A((l) => l.delay), n = A((l) => l.startDate), o = n ? n.getTime() : 0, a = f((l) => l.eventEmitter);
1373
- return F(() => {
1372
+ const t = V((l) => l.delay), n = V((l) => l.startDate), o = n ? n.getTime() : 0, a = f((l) => l.eventEmitter);
1373
+ return A(() => {
1374
1374
  const l = () => e("timeUpdate", {
1375
- currentTime: Wt(o, t),
1375
+ currentTime: Zt(o, t),
1376
1376
  duration: -1
1377
1377
  });
1378
1378
  return a.on("timeUpdate", l), () => {
@@ -1380,7 +1380,7 @@ function Lr({ callback: e }) {
1380
1380
  };
1381
1381
  }, [e, a]), /* @__PURE__ */ s.jsx(zt, { callback: e });
1382
1382
  }
1383
- function Zt() {
1383
+ function qt() {
1384
1384
  const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), a = f((i) => i.setVolume), l = f((i) => i.volume), u = z(
1385
1385
  (i) => {
1386
1386
  let c = !1;
@@ -1411,12 +1411,12 @@ function Zt() {
1411
1411
  l
1412
1412
  ]
1413
1413
  );
1414
- return F(() => (document.addEventListener("keydown", u), () => {
1414
+ return A(() => (document.addEventListener("keydown", u), () => {
1415
1415
  document.removeEventListener("keydown", u);
1416
1416
  }), [u]), null;
1417
1417
  }
1418
1418
  function Pr() {
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 = z(
1419
+ const e = V((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), l = V((i) => i.setDelay), u = z(
1420
1420
  (i) => {
1421
1421
  let c = !1;
1422
1422
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
@@ -1442,63 +1442,63 @@ function Pr() {
1442
1442
  },
1443
1443
  [e, o, t, n, a, l]
1444
1444
  );
1445
- return F(() => (document.addEventListener("keydown", u), () => {
1445
+ return A(() => (document.addEventListener("keydown", u), () => {
1446
1446
  document.removeEventListener("keydown", u);
1447
- }), [u]), /* @__PURE__ */ s.jsx(Zt, {});
1447
+ }), [u]), /* @__PURE__ */ s.jsx(qt, {});
1448
1448
  }
1449
1449
  function Kt({ children: e }) {
1450
1450
  return /* @__PURE__ */ s.jsx(gr, { children: e });
1451
1451
  }
1452
- function kr({ children: e }) {
1452
+ function Ir({ children: e }) {
1453
1453
  return /* @__PURE__ */ s.jsx(Qn, { children: /* @__PURE__ */ s.jsx(Kt, { children: e }) });
1454
1454
  }
1455
- function Ir({ url: e, isLive: t, messages: n }) {
1456
- const o = V(null), a = f((_) => _.level), l = f((_) => _.levels), u = f((_) => _.setLevel), i = f((_) => _.setLevels), c = f((_) => _.techRef), d = f((_) => _.setError), g = V(0), y = V(null), v = 50, x = 1e4, P = z(
1457
- (_) => {
1458
- if (o.current && (o.current.nextLevel = _, u(null), l)) {
1459
- const I = l.map((p) => he(L({}, p), {
1460
- selected: p.value === _
1455
+ function kr({ url: e, isLive: t, messages: n }) {
1456
+ const o = N(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 = N(0), y = N(null), g = 50, L = 1e4, D = z(
1457
+ (x) => {
1458
+ if (o.current && (o.current.nextLevel = x, u(null), l)) {
1459
+ const I = l.map((p) => he(j({}, p), {
1460
+ selected: p.value === x
1461
1461
  }));
1462
1462
  i(I);
1463
1463
  }
1464
1464
  },
1465
1465
  [l, u, i, o]
1466
- ), b = z(() => {
1466
+ ), _ = z(() => {
1467
1467
  o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
1468
- }, [e]), E = z(() => {
1468
+ }, [e]), b = z(() => {
1469
1469
  if (!o.current) return;
1470
- console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1471
- const _ = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
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, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
1472
1472
  i(
1473
1473
  jr({
1474
- levels: _.map(($, G) => {
1475
- const { bitrate: Z, height: O, width: D } = $;
1474
+ levels: x.map(($, G) => {
1475
+ const { bitrate: q, height: O, width: k } = $;
1476
1476
  return {
1477
- bitrate: Z,
1477
+ bitrate: q,
1478
1478
  height: O,
1479
1479
  index: G,
1480
- width: D
1480
+ width: k
1481
1481
  };
1482
1482
  }),
1483
1483
  level: I,
1484
1484
  isAuto: p
1485
1485
  })
1486
1486
  );
1487
- }, [d, i]), N = z(
1487
+ }, [d, i]), M = z(
1488
1488
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1489
- (_, I) => {
1489
+ (x, I) => {
1490
1490
  var p, $;
1491
- if (console.error("[Player][HLS] ERROR", _, I), !!o.current && I.fatal)
1491
+ if (console.error("[Player][HLS] ERROR", x, I), !!o.current && I.fatal)
1492
1492
  switch (I.type) {
1493
1493
  case re.ErrorTypes.NETWORK_ERROR:
1494
- console.log("[Player][HLS] NETWORK_ERROR", I), t ? I.details === "manifestLoadError" && (g.current < v && (y.current && clearTimeout(y.current), g.current += 1, y.current = setTimeout(() => {
1494
+ console.log("[Player][HLS] NETWORK_ERROR", I), t ? I.details === "manifestLoadError" && (v.current < g && (y.current && clearTimeout(y.current), v.current += 1, y.current = setTimeout(() => {
1495
1495
  if (o.current)
1496
1496
  try {
1497
1497
  console.log("[Player][HLS] Retrying stream..."), o.current.loadSource(e);
1498
1498
  } catch (G) {
1499
1499
  console.error("[Player][HLS] Retry failed:", G);
1500
1500
  }
1501
- }, x)), d({
1501
+ }, L)), d({
1502
1502
  message: (p = n == null ? void 0 : n.eventFinished) != null ? p : "Live event will be back shortly.",
1503
1503
  code: "LIVE_MANIFEST_LOAD_ERROR",
1504
1504
  tech: "hls"
@@ -1514,32 +1514,32 @@ function Ir({ url: e, isLive: t, messages: n }) {
1514
1514
  }
1515
1515
  },
1516
1516
  [t, e, d]
1517
- ), S = z(() => {
1517
+ ), R = z(() => {
1518
1518
  if (!c.current) return;
1519
- let _ = {
1519
+ let x = {
1520
1520
  startLevel: -1,
1521
1521
  maxBufferSize: 30 * 1024 * 1024
1522
1522
  // 30MB
1523
1523
  };
1524
- rr ? (_.backBufferLength = -1, _.enableWorker = !1) : t ? _.backBufferLength = 10 : _.backBufferLength = 60;
1524
+ rr ? (x.backBufferLength = -1, x.enableWorker = !1) : t ? x.backBufferLength = 10 : x.backBufferLength = 60;
1525
1525
  try {
1526
- console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(_)), console.log("[Player][HLS] Version", re.version), o.current = new re(_), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED, b), o.current.on(re.Events.MANIFEST_LOADED, E), o.current.on(re.Events.ERROR, N);
1526
+ 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, b), o.current.on(re.Events.ERROR, M);
1527
1527
  } catch (I) {
1528
1528
  throw new Error(`Error initializing Hls: ${I}`);
1529
1529
  }
1530
1530
  }, [
1531
- E,
1532
1531
  b,
1533
- N,
1532
+ _,
1533
+ M,
1534
1534
  t,
1535
1535
  c,
1536
1536
  e
1537
- ]), k = z(() => {
1538
- o.current && (o.current.off(re.Events.MEDIA_ATTACHED, b), o.current.off(re.Events.MANIFEST_LOADED, E), o.current.off(re.Events.ERROR, N), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1539
- }, [E, b, N]);
1540
- return F(() => {
1541
- a !== null && P(a);
1542
- }, [a, P]), F(() => (re.isSupported() && S(), k), [k, S]), null;
1537
+ ]), P = z(() => {
1538
+ o.current && (o.current.off(re.Events.MEDIA_ATTACHED, _), o.current.off(re.Events.MANIFEST_LOADED, b), o.current.off(re.Events.ERROR, M), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), v.current = 0;
1539
+ }, [b, _, M]);
1540
+ return A(() => {
1541
+ a !== null && D(a);
1542
+ }, [a, D]), A(() => (re.isSupported() && R(), P), [P, R]), null;
1543
1543
  }
1544
1544
  const Dr = "_playerVideo_wc0sm_1", Fr = {
1545
1545
  playerVideo: Dr
@@ -1550,22 +1550,22 @@ function Yt({
1550
1550
  isMuted: n = !1,
1551
1551
  messages: o = {}
1552
1552
  }) {
1553
- 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), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), x = f((p) => p.handleTimeUpdate), P = f((p) => p.handleWaiting), b = f((p) => p.handleVolumeChange), E = f((p) => p.handleError), N = f((p) => p.techRef), S = V(null), k = () => t ? {
1554
- onTimeUpdate: _
1553
+ 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), b = f((p) => p.handleError), M = f((p) => p.techRef), R = N(null), P = () => t ? {
1554
+ onTimeUpdate: x
1555
1555
  } : {
1556
1556
  onDurationChange: a,
1557
1557
  onSeeked: y,
1558
- onSeeking: v,
1559
- onTimeUpdate: _
1560
- }, _ = () => {
1561
- (!S.current || Date.now() - S.current >= 1e3) && (x(), S.current = Date.now());
1562
- }, I = k();
1558
+ onSeeking: g,
1559
+ onTimeUpdate: x
1560
+ }, x = () => {
1561
+ (!R.current || Date.now() - R.current >= 1e3) && (L(), R.current = Date.now());
1562
+ }, I = P();
1563
1563
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1564
- /* @__PURE__ */ s.jsx(Ir, { isLive: t, url: e, messages: o }),
1564
+ /* @__PURE__ */ s.jsx(kr, { isLive: t, url: e, messages: o }),
1565
1565
  /* @__PURE__ */ s.jsx(
1566
1566
  "video",
1567
- L({
1568
- ref: N,
1567
+ j({
1568
+ ref: M,
1569
1569
  className: Fr.playerVideo,
1570
1570
  playsInline: !0,
1571
1571
  autoPlay: !0,
@@ -1574,31 +1574,34 @@ function Yt({
1574
1574
  preload: "auto",
1575
1575
  crossOrigin: "anonymous",
1576
1576
  onEnded: l,
1577
- onError: E,
1577
+ onError: b,
1578
1578
  onLoadedMetadata: u,
1579
1579
  onLoadStart: i,
1580
1580
  onPause: c,
1581
1581
  onPlay: d,
1582
- onPlaying: g,
1583
- onWaiting: P,
1584
- onVolumeChange: b,
1582
+ onPlaying: v,
1583
+ onWaiting: D,
1584
+ onVolumeChange: _,
1585
1585
  tabIndex: -1
1586
1586
  }, I)
1587
1587
  )
1588
1588
  ] });
1589
1589
  }
1590
1590
  function Mr({ url: e, messages: t = {} }) {
1591
- const [n, o] = X(null), a = A((u) => u.delay), l = z(async () => {
1591
+ const [n, o] = X(null), a = V((u) => u.delay), l = z(async () => {
1592
1592
  o(
1593
1593
  a ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${a}.m3u8`) : e
1594
1594
  );
1595
1595
  }, [a, e]);
1596
- return F(() => {
1596
+ return A(() => {
1597
1597
  l();
1598
1598
  }, [l]), n ? /* @__PURE__ */ s.jsx(Yt, { url: n, isLive: !0, messages: t }) : null;
1599
1599
  }
1600
1600
  function Nr({ url: e }) {
1601
- const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
1601
+ return f((n) => n.isStarted) ? /* @__PURE__ */ s.jsx(Vr, { url: e }) : null;
1602
+ }
1603
+ function Vr({ url: e }) {
1604
+ const t = V((l) => l.setViewerCount), n = N(null), o = (l) => {
1602
1605
  try {
1603
1606
  return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
1604
1607
  } catch (u) {
@@ -1627,11 +1630,11 @@ function Nr({ url: e }) {
1627
1630
  console.error("Failed to fetch viewer count:", d), t(null);
1628
1631
  }
1629
1632
  };
1630
- return F(() => (a(), () => {
1633
+ return A(() => (a(), () => {
1631
1634
  n.current && n.current.abort();
1632
1635
  }), [e]), Ve(a, 15e3), null;
1633
1636
  }
1634
- function Vr(e, {
1637
+ function Ar(e, {
1635
1638
  defaultValue: t = !1,
1636
1639
  initializeWithValue: n = !0
1637
1640
  } = {}) {
@@ -1648,13 +1651,13 @@ function Vr(e, {
1648
1651
  };
1649
1652
  }, [e]), a;
1650
1653
  }
1651
- const Ar = "_playbackButton_lgsgw_1", Or = "_seekIndicator_lgsgw_23", Hr = "_seekIndicatorLeft_lgsgw_49", $r = "_seekIndicatorRight_lgsgw_53", Ur = "_seekIndicatorVisible_lgsgw_57", me = {
1652
- playbackButton: Ar,
1653
- seekIndicator: Or,
1654
- seekIndicatorLeft: Hr,
1655
- seekIndicatorRight: $r,
1656
- seekIndicatorVisible: Ur
1657
- }, Br = 10;
1654
+ const Or = "_playbackButton_lgsgw_1", Hr = "_seekIndicator_lgsgw_23", $r = "_seekIndicatorLeft_lgsgw_49", Ur = "_seekIndicatorRight_lgsgw_53", Br = "_seekIndicatorVisible_lgsgw_57", me = {
1655
+ playbackButton: Or,
1656
+ seekIndicator: Hr,
1657
+ seekIndicatorLeft: $r,
1658
+ seekIndicatorRight: Ur,
1659
+ seekIndicatorVisible: Br
1660
+ }, zr = 10;
1658
1661
  function Xt(i) {
1659
1662
  var c = i, {
1660
1663
  className: e,
@@ -1671,9 +1674,9 @@ function Xt(i) {
1671
1674
  "maxForwardTime",
1672
1675
  "maxBackwardTime"
1673
1676
  ]);
1674
- return Vr("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(zr, L({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
1675
- qr,
1676
- L({
1677
+ return Ar("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(Wr, j({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
1678
+ Zr,
1679
+ j({
1677
1680
  className: e,
1678
1681
  maxForwardTime: a,
1679
1682
  maxBackwardTime: l,
@@ -1682,29 +1685,32 @@ function Xt(i) {
1682
1685
  }, u)
1683
1686
  );
1684
1687
  }
1685
- function zr(o) {
1688
+ function Wr(o) {
1686
1689
  var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
1687
- const l = V(null), u = f((x) => x.exitFullscreen), i = f((x) => x.isFullscreen), c = f((x) => x.requestFullscreen), d = (x) => {
1688
- v() ? (y(), i ? u() : c()) : g(x);
1689
- }, g = (x) => {
1690
+ const l = N(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), c = f((_) => _.requestFullscreen), d = f((_) => _.resetIdle), v = (_) => {
1691
+ L() ? (g(), i ? u() : c()) : y(_);
1692
+ }, y = (_) => {
1690
1693
  l.current = window.setTimeout(() => {
1691
- t == null || t(x), y();
1694
+ t == null || t(_), g();
1692
1695
  }, 200);
1693
- }, y = () => {
1696
+ }, g = () => {
1694
1697
  l.current !== null && (window.clearTimeout(l.current), l.current = null);
1695
- }, v = () => l.current !== null;
1696
- return F(() => () => {
1697
- y();
1698
+ }, L = () => l.current !== null, D = () => {
1699
+ d();
1700
+ };
1701
+ return A(() => () => {
1702
+ g();
1698
1703
  }, []), /* @__PURE__ */ s.jsx(
1699
1704
  "button",
1700
- L({
1701
- onClick: d,
1705
+ j({
1706
+ onClick: v,
1707
+ onMouseMove: D,
1702
1708
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1703
1709
  "aria-label": "Player gestures"
1704
1710
  }, n)
1705
1711
  );
1706
1712
  }
1707
- function qr(u) {
1713
+ function Zr(u) {
1708
1714
  var i = u, {
1709
1715
  className: e,
1710
1716
  maxForwardTime: t,
@@ -1718,73 +1724,73 @@ function qr(u) {
1718
1724
  "onForwardSeek",
1719
1725
  "onBackwardSeek"
1720
1726
  ]);
1721
- const c = V(null), d = V({
1727
+ const c = N(null), d = N({
1722
1728
  single: null,
1723
1729
  indicator: null,
1724
1730
  accumulate: null
1725
- }), g = V(null), y = V(0), v = V(null), [x, P] = X({ visible: !1, direction: null, time: 0 }), b = f((p) => p.isIdle), E = f((p) => p.setIsIdle), N = f((p) => p.resetIdle), S = (p, $) => p < $ / 2 ? "backward" : "forward", k = (p) => {
1726
- if (!g.current) return;
1731
+ }), v = N(null), y = N(0), g = N(null), [L, D] = X({ visible: !1, direction: null, time: 0 }), _ = f((p) => p.isIdle), b = f((p) => p.setIsIdle), M = f((p) => p.resetIdle), R = (p, $) => p < $ / 2 ? "backward" : "forward", P = (p) => {
1732
+ if (!v.current) return;
1727
1733
  const $ = p.changedTouches[0];
1728
1734
  if (!$) return;
1729
- const G = Date.now(), Z = g.current.getBoundingClientRect(), O = $.clientX - Z.left, D = $.clientY - Z.top;
1730
- if (O < 0 || O > Z.width || D < 0 || D > Z.height)
1735
+ const G = Date.now(), q = v.current.getBoundingClientRect(), O = $.clientX - q.left, k = $.clientY - q.top;
1736
+ if (O < 0 || O > q.width || k < 0 || k > q.height)
1731
1737
  return;
1732
- const Q = c.current, K = Q ? G - Q.time : 1 / 0, q = S(O, Z.width), oe = v.current !== null && v.current === q && Q !== null && K < 700 && Math.abs(O - Q.x) < 100;
1733
- if (Q !== null && v.current === null && K < 300 && Math.abs(O - Q.x) < 50 || oe) {
1734
- p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), N(), (v.current === null || v.current !== q) && (y.current = 0, v.current = q);
1735
- const te = q === "backward" ? n : t;
1738
+ const Q = c.current, K = Q ? G - Q.time : 1 / 0, W = R(O, q.width), oe = g.current !== null && g.current === W && Q !== null && K < 700 && Math.abs(O - Q.x) < 100;
1739
+ if (Q !== null && g.current === null && K < 300 && Math.abs(O - Q.x) < 50 || oe) {
1740
+ p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), M(), (g.current === null || g.current !== W) && (y.current = 0, g.current = W);
1741
+ const te = W === "backward" ? n : t;
1736
1742
  y.current = Math.min(
1737
- y.current + Br,
1743
+ y.current + zr,
1738
1744
  te != null ? te : 1 / 0
1739
- ), _(q, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
1740
- const W = y.current;
1741
- W > 0 && (v.current === "backward" ? a == null || a(W) : o == null || o(W), N()), y.current = 0, v.current = null, c.current = null, I(), d.current.accumulate = null;
1745
+ ), x(W, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
1746
+ const Z = y.current;
1747
+ Z > 0 && (g.current === "backward" ? a == null || a(Z) : o == null || o(Z), M()), y.current = 0, g.current = null, c.current = null, I(), d.current.accumulate = null;
1742
1748
  }, 500), c.current = { time: G, x: O };
1743
1749
  } else {
1744
1750
  c.current = { time: G, x: O }, d.current.single && window.clearTimeout(d.current.single);
1745
- const te = v.current !== null ? 700 : 350;
1751
+ const te = g.current !== null ? 700 : 350;
1746
1752
  d.current.single = window.setTimeout(() => {
1747
- if (v.current === null) {
1753
+ if (g.current === null) {
1748
1754
  d.current.single = null;
1749
- const W = b;
1750
- E(!W), W && N();
1755
+ const Z = _;
1756
+ b(!Z), Z && M();
1751
1757
  }
1752
1758
  c.current = null;
1753
1759
  }, te);
1754
1760
  }
1755
- }, _ = (p, $) => {
1756
- $ !== 0 && (P({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1761
+ }, x = (p, $) => {
1762
+ $ !== 0 && (D({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1757
1763
  I();
1758
1764
  }, 700));
1759
1765
  }, I = () => {
1760
- P({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1766
+ D({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1761
1767
  };
1762
- return F(() => () => {
1768
+ return A(() => () => {
1763
1769
  d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
1764
1770
  }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1765
1771
  /* @__PURE__ */ s.jsx(
1766
1772
  "button",
1767
- L({
1768
- ref: g,
1769
- onTouchEnd: k,
1773
+ j({
1774
+ ref: v,
1775
+ onTouchEnd: P,
1770
1776
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1771
1777
  "aria-label": "Player gestures"
1772
1778
  }, l)
1773
1779
  ),
1774
- x.visible && /* @__PURE__ */ s.jsxs(
1780
+ L.visible && /* @__PURE__ */ s.jsxs(
1775
1781
  "div",
1776
1782
  {
1777
- className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${x.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1783
+ className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${L.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1778
1784
  children: [
1779
- x.direction === "backward" ? "-" : "+",
1780
- xe(x.time)
1785
+ L.direction === "backward" ? "-" : "+",
1786
+ _e(L.time)
1781
1787
  ]
1782
1788
  }
1783
1789
  )
1784
1790
  ] });
1785
1791
  }
1786
- function Wr() {
1787
- 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;
1792
+ function qr() {
1793
+ const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), o = f((c) => c.play), a = V((c) => c.delay), l = V((c) => c.setDelay), u = V((c) => c.startDate), i = u ? u.getTime() : 0;
1788
1794
  return /* @__PURE__ */ s.jsx(
1789
1795
  Xt,
1790
1796
  {
@@ -1809,28 +1815,28 @@ function Wr() {
1809
1815
  }
1810
1816
  );
1811
1817
  }
1812
- const Zr = "_playerButton_izwqq_1", Kr = "_playerButtonCircle_izwqq_42", xt = {
1813
- playerButton: Zr,
1814
- playerButtonCircle: Kr
1818
+ const Kr = "_playerButton_izwqq_1", Yr = "_playerButtonCircle_izwqq_42", _t = {
1819
+ playerButton: Kr,
1820
+ playerButtonCircle: Yr
1815
1821
  }, le = Ne(
1816
1822
  (a, o) => {
1817
1823
  var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
1818
- const u = e === "circle" ? xt.playerButtonCircle : "", i = [xt.playerButton, u, t].filter(Boolean).join(" ");
1819
- return /* @__PURE__ */ s.jsx("button", L({ ref: o, className: i }, n));
1824
+ const u = e === "circle" ? _t.playerButtonCircle : "", i = [_t.playerButton, u, t].filter(Boolean).join(" ");
1825
+ return /* @__PURE__ */ s.jsx("button", j({ ref: o, className: i }, n));
1820
1826
  }
1821
1827
  );
1822
1828
  le.displayName = "PlayerButton";
1823
- const Yr = "_liveIndicator_1jczn_1", Xr = "_liveIndicatorHasDelay_1jczn_9", Gr = "_liveIndicatorNoDelay_1jczn_13", ke = {
1824
- liveIndicator: Yr,
1825
- liveIndicatorHasDelay: Xr,
1826
- liveIndicatorNoDelay: Gr
1829
+ const Xr = "_liveIndicator_1jczn_1", Gr = "_liveIndicatorHasDelay_1jczn_9", Jr = "_liveIndicatorNoDelay_1jczn_13", Ie = {
1830
+ liveIndicator: Xr,
1831
+ liveIndicatorHasDelay: Gr,
1832
+ liveIndicatorNoDelay: Jr
1827
1833
  };
1828
- function Jr(n) {
1834
+ function Qr(n) {
1829
1835
  var o = n, { message: e } = o, t = ne(o, ["message"]);
1830
- const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
1836
+ const a = V((c) => c.delay), l = V((c) => c.setDelay), u = () => {
1831
1837
  a && l(0);
1832
- }, i = a ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
1833
- return /* @__PURE__ */ s.jsxs(le, he(L({ onClick: u, shape: "square" }, t), { children: [
1838
+ }, i = a ? `${Ie.liveIndicator} ${Ie.liveIndicatorHasDelay}` : `${Ie.liveIndicator} ${Ie.liveIndicatorNoDelay}`;
1839
+ return /* @__PURE__ */ s.jsxs(le, he(j({ onClick: u, shape: "square" }, t), { children: [
1834
1840
  /* @__PURE__ */ s.jsx("div", { className: i }),
1835
1841
  e || "Live"
1836
1842
  ] }));
@@ -1857,8 +1863,8 @@ function Jt() {
1857
1863
  }
1858
1864
  );
1859
1865
  }
1860
- function Qr() {
1861
- 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 = () => {
1866
+ function eo() {
1867
+ const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), a = V((i) => i.delay), l = V((i) => i.setDelay), u = () => {
1862
1868
  if (e)
1863
1869
  t();
1864
1870
  else {
@@ -1868,27 +1874,27 @@ function Qr() {
1868
1874
  };
1869
1875
  return /* @__PURE__ */ s.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
1870
1876
  }
1871
- const eo = "_progressSlider_hwzgf_1", to = "_tipContainer_hwzgf_7", no = "_tipContainerVisible_hwzgf_17", ro = "_tipContainerHidden_hwzgf_22", oo = "_tipContent_hwzgf_27", se = {
1872
- progressSlider: eo,
1873
- tipContainer: to,
1874
- tipContainerVisible: no,
1875
- tipContainerHidden: ro,
1876
- tipContent: oo
1877
- }, io = "_sliderRoot_aeak6_1", so = "_sliderTrack_aeak6_18", ao = "_sliderRange_aeak6_28", lo = "_sliderThumb_aeak6_37", Ie = {
1878
- sliderRoot: io,
1879
- sliderTrack: so,
1880
- sliderRange: ao,
1881
- sliderThumb: lo
1877
+ const to = "_progressSlider_hwzgf_1", no = "_tipContainer_hwzgf_7", ro = "_tipContainerVisible_hwzgf_17", oo = "_tipContainerHidden_hwzgf_22", io = "_tipContent_hwzgf_27", se = {
1878
+ progressSlider: to,
1879
+ tipContainer: no,
1880
+ tipContainerVisible: ro,
1881
+ tipContainerHidden: oo,
1882
+ tipContent: io
1883
+ }, so = "_sliderRoot_aeak6_1", ao = "_sliderTrack_aeak6_18", lo = "_sliderRange_aeak6_28", co = "_sliderThumb_aeak6_37", ke = {
1884
+ sliderRoot: so,
1885
+ sliderTrack: ao,
1886
+ sliderRange: lo,
1887
+ sliderThumb: co
1882
1888
  }, Ae = Ne((l, a) => {
1883
1889
  var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
1884
1890
  return /* @__PURE__ */ s.jsxs(
1885
1891
  je.Root,
1886
- he(L({
1892
+ he(j({
1887
1893
  ref: a,
1888
1894
  min: t,
1889
1895
  max: e,
1890
1896
  "aria-label": "Player progress",
1891
- className: [Ie.sliderRoot, n].filter(Boolean).join(" "),
1897
+ className: [ke.sliderRoot, n].filter(Boolean).join(" "),
1892
1898
  onKeyDown: (i) => (
1893
1899
  // Prevent the slider from being controlled by the keyboard
1894
1900
  // when the slider is focused by a click
@@ -1896,8 +1902,8 @@ const eo = "_progressSlider_hwzgf_1", to = "_tipContainer_hwzgf_7", no = "_tipCo
1896
1902
  )
1897
1903
  }, o), {
1898
1904
  children: [
1899
- /* @__PURE__ */ s.jsx(je.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: Ie.sliderRange }) }),
1900
- /* @__PURE__ */ s.jsx(je.Thumb, { className: Ie.sliderThumb })
1905
+ /* @__PURE__ */ s.jsx(je.Track, { className: ke.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: ke.sliderRange }) }),
1906
+ /* @__PURE__ */ s.jsx(je.Thumb, { className: ke.sliderThumb })
1901
1907
  ]
1902
1908
  })
1903
1909
  );
@@ -1915,26 +1921,26 @@ function Me(e) {
1915
1921
  } : t;
1916
1922
  }
1917
1923
  const Tt = "vod-player-progress-bar";
1918
- function co() {
1919
- const e = V(null), t = V(null), [n, o] = X(0), [a, l] = X(0), [u, i] = X(!1), [c, d] = X(-1), [g, y] = X(-1), v = A((D) => D.delay), x = A((D) => D.startDate), P = x ? x.getTime() : 0, b = (/* @__PURE__ */ new Date()).getTime(), E = A((D) => D.setDelay), N = f((D) => D.isPlaying), S = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), _ = z(() => {
1920
- o(Wt(P, v)), l(br(P, b));
1921
- }, [v, b, P]), I = parseFloat(
1922
- (a ? (g !== -1 ? g : n) / a * 100 : 0).toFixed(1)
1923
- ), p = (D) => {
1924
- y(a * (D[0] / 100)), S(Tt);
1924
+ function uo() {
1925
+ const e = N(null), t = N(null), [n, o] = X(0), [a, l] = X(0), [u, i] = X(!1), [c, d] = X(-1), [v, y] = X(-1), g = V((k) => k.delay), L = V((k) => k.startDate), D = L ? L.getTime() : 0, _ = (/* @__PURE__ */ new Date()).getTime(), b = V((k) => k.setDelay), M = f((k) => k.isPlaying), R = f((k) => k.addIdleLock), P = f((k) => k.removeIdleLock), x = z(() => {
1926
+ o(Zt(D, g)), l(Sr(D, _));
1927
+ }, [g, _, D]), I = parseFloat(
1928
+ (a ? (v !== -1 ? v : n) / a * 100 : 0).toFixed(1)
1929
+ ), p = (k) => {
1930
+ y(a * (k[0] / 100)), R(Tt);
1925
1931
  }, $ = () => {
1926
- if (g !== -1) {
1927
- const D = qt(P, g);
1928
- E(D), y(-1), k(Tt);
1932
+ if (v !== -1) {
1933
+ const k = Wt(D, v);
1934
+ b(k), y(-1), P(Tt);
1929
1935
  }
1930
- }, G = () => i(!0), Z = () => i(!1), O = z(
1931
- (D) => {
1936
+ }, G = () => i(!0), q = () => i(!1), O = z(
1937
+ (k) => {
1932
1938
  const Q = e.current, K = t.current;
1933
1939
  if (Q && K) {
1934
- const q = Me(Q), oe = Me(K), ue = (D.pageX || D.clientX) - q.left, te = ue / q.width;
1940
+ const W = Me(Q), oe = Me(K), ue = (k.pageX || k.clientX) - W.left, te = ue / W.width;
1935
1941
  if (te < 0) return;
1936
- let W = ue - oe.width / 2;
1937
- W < 0 && (W = 0), W > q.width - oe.width && (W = -1), K.style.left = W > -1 ? `${W}px` : "auto", K.style.right = W > -1 ? "auto" : "0px";
1942
+ let Z = ue - oe.width / 2;
1943
+ Z < 0 && (Z = 0), Z > W.width - oe.width && (Z = -1), K.style.left = Z > -1 ? `${Z}px` : "auto", K.style.right = Z > -1 ? "auto" : "0px";
1938
1944
  const ve = a - te * a;
1939
1945
  d(ve > 0 ? ve : 0);
1940
1946
  }
@@ -1942,16 +1948,16 @@ function co() {
1942
1948
  },
1943
1949
  [a]
1944
1950
  );
1945
- return Ve(() => _(), N ? 1e3 : null), F(() => {
1946
- _();
1947
- }, [_]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
1951
+ return Ve(() => x(), M ? 1e3 : null), A(() => {
1952
+ x();
1953
+ }, [x]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
1948
1954
  /* @__PURE__ */ s.jsx(
1949
1955
  Ae,
1950
1956
  {
1951
1957
  ref: e,
1952
1958
  value: [I],
1953
- onPointerLeave: Z,
1954
- onPointerDown: Z,
1959
+ onPointerLeave: q,
1960
+ onPointerDown: q,
1955
1961
  onPointerMove: O,
1956
1962
  onValueChange: p,
1957
1963
  onValueCommit: $,
@@ -1963,12 +1969,12 @@ function co() {
1963
1969
  {
1964
1970
  ref: t,
1965
1971
  className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
1966
- children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${xe(c)}` })
1972
+ children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${_e(c)}` })
1967
1973
  }
1968
1974
  )
1969
1975
  ] });
1970
1976
  }
1971
- function uo() {
1977
+ function fo() {
1972
1978
  return /* @__PURE__ */ s.jsx(
1973
1979
  "svg",
1974
1980
  {
@@ -1979,18 +1985,18 @@ function uo() {
1979
1985
  }
1980
1986
  );
1981
1987
  }
1982
- function fo() {
1983
- const e = A((a) => a.startDate), t = A((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(qt(n));
1984
- return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(uo, {}) });
1985
- }
1986
- const ho = "_viewersContainer_bsl3f_1", mo = "_viewersIndicator_bsl3f_13", po = "_viewersIcon_bsl3f_21", vo = "_viewersCount_bsl3f_25", De = {
1987
- viewersContainer: ho,
1988
- viewersIndicator: mo,
1989
- viewersIcon: po,
1990
- viewersCount: vo
1988
+ function ho() {
1989
+ const e = V((a) => a.startDate), t = V((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(Wt(n));
1990
+ return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(fo, {}) });
1991
+ }
1992
+ const mo = "_viewersContainer_z1ihz_1", po = "_viewersIndicator_z1ihz_16", vo = "_viewersIcon_z1ihz_24", yo = "_viewersCount_z1ihz_28", De = {
1993
+ viewersContainer: mo,
1994
+ viewersIndicator: po,
1995
+ viewersIcon: vo,
1996
+ viewersCount: yo
1991
1997
  };
1992
- function yo() {
1993
- const e = A((t) => t.viewerCount);
1998
+ function go() {
1999
+ const e = V((t) => t.viewerCount);
1994
2000
  return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
1995
2001
  /* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
1996
2002
  /* @__PURE__ */ s.jsxs(
@@ -2035,15 +2041,15 @@ function Qt() {
2035
2041
  }
2036
2042
  );
2037
2043
  }
2038
- const go = "_playerContainer_146tx_1", wo = "_controlsTop_146tx_12", _o = "_controlsBottom_146tx_29", xo = "_controlsContainer_146tx_45", To = "_controlsRow_146tx_61", Co = "_controlsSection_146tx_68", Eo = "_controlsSectionStart_146tx_78", Ro = "_controlsSectionEnd_146tx_82", B = {
2039
- playerContainer: go,
2040
- controlsTop: wo,
2044
+ const wo = "_playerContainer_146tx_1", xo = "_controlsTop_146tx_12", _o = "_controlsBottom_146tx_29", To = "_controlsContainer_146tx_45", Co = "_controlsRow_146tx_61", Eo = "_controlsSection_146tx_68", Ro = "_controlsSectionStart_146tx_78", So = "_controlsSectionEnd_146tx_82", B = {
2045
+ playerContainer: wo,
2046
+ controlsTop: xo,
2041
2047
  controlsBottom: _o,
2042
- controlsContainer: xo,
2043
- controlsRow: To,
2044
- controlsSection: Co,
2045
- controlsSectionStart: Eo,
2046
- controlsSectionEnd: Ro
2048
+ controlsContainer: To,
2049
+ controlsRow: Co,
2050
+ controlsSection: Eo,
2051
+ controlsSectionStart: Ro,
2052
+ controlsSectionEnd: So
2047
2053
  };
2048
2054
  function bo() {
2049
2055
  return /* @__PURE__ */ s.jsx(
@@ -2056,7 +2062,7 @@ function bo() {
2056
2062
  }
2057
2063
  );
2058
2064
  }
2059
- function So() {
2065
+ function jo() {
2060
2066
  return /* @__PURE__ */ s.jsx(
2061
2067
  "svg",
2062
2068
  {
@@ -2076,77 +2082,62 @@ function en() {
2076
2082
  ), c = () => {
2077
2083
  n ? t() : o();
2078
2084
  };
2079
- return F(() => {
2085
+ return A(() => {
2080
2086
  const d = Ut ? u.current : e.current;
2081
2087
  if (d)
2082
2088
  return ar(d, i);
2083
- }, [e, i, u]), F(() => {
2089
+ }, [e, i, u]), A(() => {
2084
2090
  l(!0);
2085
- }, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(So, {}) : /* @__PURE__ */ s.jsx(bo, {}) });
2091
+ }, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(jo, {}) : /* @__PURE__ */ s.jsx(bo, {}) });
2086
2092
  }
2087
- const jo = "_idleCheckContainer_iz9tu_1", Lo = "_idleCheckContainerIdle_iz9tu_10", Po = "_idleCheckContainerActive_iz9tu_15", Ze = {
2088
- idleCheckContainer: jo,
2089
- idleCheckContainerIdle: Lo,
2090
- idleCheckContainerActive: Po
2093
+ const Lo = "_idleCheckContainer_crh2s_1", Po = "_idleCheckContainerIdle_crh2s_5", Io = "_idleCheckContainerActive_crh2s_11", qe = {
2094
+ idleCheckContainer: Lo,
2095
+ idleCheckContainerIdle: Po,
2096
+ idleCheckContainerActive: Io
2091
2097
  }, ko = 5 * 1e3;
2092
2098
  function tn({ children: e }) {
2093
- const t = V(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), a = V(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), c = z(() => {
2099
+ const t = N(null), n = f((g) => g.isIdle), o = f((g) => g.setIsIdle), a = N(null), u = f((g) => g.idleLocks).size, i = f((g) => g.eventEmitter), c = z(() => {
2094
2100
  a.current !== null && (window.clearTimeout(a.current), a.current = null);
2095
2101
  }, []), d = z(() => {
2096
2102
  c(), a.current = window.setTimeout(() => o(!0), ko);
2097
2103
  }, [c]);
2098
- F(() => (o(!1), d(), () => {
2104
+ A(() => (o(!1), d(), () => {
2099
2105
  c();
2100
- }), [c, d]), F(() => {
2101
- const v = t.current;
2102
- if (!v) return;
2103
- const x = (E) => {
2104
- n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
2105
- }, P = (E) => {
2106
- n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
2107
- }, b = () => {
2108
- n && o(!1), d();
2109
- };
2110
- return v.addEventListener("click", x), v.addEventListener("touchstart", P, {
2111
- passive: !1
2112
- }), v.addEventListener("mousemove", b), () => {
2113
- v.removeEventListener("click", x), v.removeEventListener("touchstart", P), v.removeEventListener("mousemove", b);
2114
- };
2115
- }, [t, n, o, d]), F(() => {
2116
- const v = () => {
2106
+ }), [c, d]), A(() => {
2107
+ const g = () => {
2117
2108
  o(!1), d();
2118
2109
  };
2119
- return i.on("resetIdle", v), () => {
2120
- i.off("resetIdle", v);
2110
+ return i.on("resetIdle", g), () => {
2111
+ i.off("resetIdle", g);
2121
2112
  };
2122
2113
  }, [i, o, d]);
2123
- const g = n && !u, y = `${Ze.idleCheckContainer} ${g ? Ze.idleCheckContainerIdle : Ze.idleCheckContainerActive}`;
2114
+ const v = n && !u, y = `${qe.idleCheckContainer} ${v ? qe.idleCheckContainerIdle : qe.idleCheckContainerActive}`;
2124
2115
  return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
2125
2116
  }
2126
- const Io = "_spinner_oo4hi_10", Do = {
2127
- spinner: Io
2117
+ const Do = "_spinner_oo4hi_10", Fo = {
2118
+ spinner: Do
2128
2119
  };
2129
- function Fo(e) {
2130
- return /* @__PURE__ */ s.jsx("div", L({ className: Do.spinner }, e));
2120
+ function Mo(e) {
2121
+ return /* @__PURE__ */ s.jsx("div", j({ className: Fo.spinner }, e));
2131
2122
  }
2132
- function Mo(e, t = 500) {
2123
+ function No(e, t = 500) {
2133
2124
  const [n, o] = X(e);
2134
- return F(() => {
2125
+ return A(() => {
2135
2126
  const a = window.setTimeout(() => o(e), t);
2136
2127
  return () => {
2137
2128
  window.clearTimeout(a);
2138
2129
  };
2139
2130
  }, [e, t]), n;
2140
2131
  }
2141
- const No = "_loadingContainer_v9v7r_1", Vo = {
2142
- loadingContainer: No
2132
+ const Vo = "_loadingContainer_v9v7r_1", Ao = {
2133
+ loadingContainer: Vo
2143
2134
  };
2144
2135
  function nn(n) {
2145
2136
  var o = n, { style: e } = o, t = ne(o, ["style"]);
2146
2137
  const a = f((u) => u.isLoading);
2147
- return Mo(a, 100) ? /* @__PURE__ */ s.jsx("div", he(L({ className: Vo.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(Fo, {}) })) : null;
2138
+ return No(a, 100) ? /* @__PURE__ */ s.jsx("div", he(j({ className: Ao.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(Mo, {}) })) : null;
2148
2139
  }
2149
- function Ao() {
2140
+ function Oo() {
2150
2141
  return /* @__PURE__ */ s.jsx(
2151
2142
  "svg",
2152
2143
  {
@@ -2157,7 +2148,7 @@ function Ao() {
2157
2148
  }
2158
2149
  );
2159
2150
  }
2160
- function Oo() {
2151
+ function Ho() {
2161
2152
  return /* @__PURE__ */ s.jsx(
2162
2153
  "svg",
2163
2154
  {
@@ -2168,18 +2159,18 @@ function Oo() {
2168
2159
  }
2169
2160
  );
2170
2161
  }
2171
- const Ho = "_dropdownMenuContent_b7j6b_1", $o = "_dropdownMenuItem_b7j6b_83", Uo = "_scrollAreaRoot_b7j6b_125", Bo = "_scrollAreaViewport_b7j6b_133", zo = "_scrollAreaScrollbar_b7j6b_141", qo = "_scrollAreaThumb_b7j6b_168", pe = {
2172
- dropdownMenuContent: Ho,
2173
- dropdownMenuItem: $o,
2174
- scrollAreaRoot: Uo,
2175
- scrollAreaViewport: Bo,
2176
- scrollAreaScrollbar: zo,
2177
- scrollAreaThumb: qo
2178
- }, Wo = Te.Root, Zo = Te.Trigger, Ko = Te.Portal, rn = Ne((l, a) => {
2162
+ const $o = "_dropdownMenuContent_b7j6b_1", Uo = "_dropdownMenuItem_b7j6b_83", Bo = "_scrollAreaRoot_b7j6b_125", zo = "_scrollAreaViewport_b7j6b_133", Wo = "_scrollAreaScrollbar_b7j6b_141", Zo = "_scrollAreaThumb_b7j6b_168", pe = {
2163
+ dropdownMenuContent: $o,
2164
+ dropdownMenuItem: Uo,
2165
+ scrollAreaRoot: Bo,
2166
+ scrollAreaViewport: zo,
2167
+ scrollAreaScrollbar: Wo,
2168
+ scrollAreaThumb: Zo
2169
+ }, qo = Te.Root, Ko = Te.Trigger, Yo = Te.Portal, rn = Ne((l, a) => {
2179
2170
  var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
2180
2171
  return /* @__PURE__ */ s.jsx(
2181
2172
  Te.Content,
2182
- he(L({
2173
+ he(j({
2183
2174
  ref: a,
2184
2175
  sideOffset: e,
2185
2176
  className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
@@ -2222,7 +2213,7 @@ const on = Ne((a, o) => {
2222
2213
  };
2223
2214
  return /* @__PURE__ */ s.jsx(Te.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
2224
2215
  "div",
2225
- L({
2216
+ j({
2226
2217
  ref: o,
2227
2218
  className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
2228
2219
  role: "menuitem",
@@ -2241,22 +2232,22 @@ function sn() {
2241
2232
  },
2242
2233
  [o, a]
2243
2234
  );
2244
- return /* @__PURE__ */ s.jsxs(Wo, { open: e, onOpenChange: i, children: [
2245
- /* @__PURE__ */ s.jsx(Zo, { asChild: !0, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(Oo, {}) }) }),
2246
- /* @__PURE__ */ s.jsx(Ko, { container: n.current, children: /* @__PURE__ */ s.jsx(rn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ s.jsxs(
2235
+ return /* @__PURE__ */ s.jsxs(qo, { open: e, onOpenChange: i, children: [
2236
+ /* @__PURE__ */ s.jsx(Ko, { asChild: !0, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(Ho, {}) }) }),
2237
+ /* @__PURE__ */ s.jsx(Yo, { container: n.current, children: /* @__PURE__ */ s.jsx(rn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ s.jsxs(
2247
2238
  on,
2248
2239
  {
2249
2240
  onClick: () => u(c.value),
2250
2241
  children: [
2251
2242
  c.label,
2252
- c.selected && /* @__PURE__ */ s.jsx(Ao, {})
2243
+ c.selected && /* @__PURE__ */ s.jsx(Oo, {})
2253
2244
  ]
2254
2245
  },
2255
2246
  c.sid
2256
2247
  )) }) })
2257
2248
  ] });
2258
2249
  }
2259
- function Yo() {
2250
+ function Xo() {
2260
2251
  return /* @__PURE__ */ s.jsx(
2261
2252
  "svg",
2262
2253
  {
@@ -2267,7 +2258,7 @@ function Yo() {
2267
2258
  }
2268
2259
  );
2269
2260
  }
2270
- function Xo() {
2261
+ function Go() {
2271
2262
  return /* @__PURE__ */ s.jsx(
2272
2263
  "svg",
2273
2264
  {
@@ -2278,7 +2269,7 @@ function Xo() {
2278
2269
  }
2279
2270
  );
2280
2271
  }
2281
- function Go() {
2272
+ function Jo() {
2282
2273
  return /* @__PURE__ */ s.jsx(
2283
2274
  "svg",
2284
2275
  {
@@ -2289,9 +2280,9 @@ function Go() {
2289
2280
  }
2290
2281
  );
2291
2282
  }
2292
- const Jo = "_volumeContainer_4d6jg_1", Qo = "_volumeSlider_4d6jg_8", Et = {
2293
- volumeContainer: Jo,
2294
- volumeSlider: Qo
2283
+ const Qo = "_volumeContainer_4d6jg_1", ei = "_volumeSlider_4d6jg_8", Et = {
2284
+ volumeContainer: Qo,
2285
+ volumeSlider: ei
2295
2286
  }, Rt = "volume";
2296
2287
  function an() {
2297
2288
  const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), a = (i) => {
@@ -2300,7 +2291,7 @@ function an() {
2300
2291
  o(Rt);
2301
2292
  }, u = () => e(t ? 0 : 100);
2302
2293
  return /* @__PURE__ */ s.jsxs("div", { className: Et.volumeContainer, children: [
2303
- /* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Yo, {}) : /* @__PURE__ */ s.jsx(Xo, {}) : /* @__PURE__ */ s.jsx(Go, {}) }),
2294
+ /* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Xo, {}) : /* @__PURE__ */ s.jsx(Go, {}) : /* @__PURE__ */ s.jsx(Jo, {}) }),
2304
2295
  /* @__PURE__ */ s.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ s.jsx(
2305
2296
  Ae,
2306
2297
  {
@@ -2311,10 +2302,10 @@ function an() {
2311
2302
  ) })
2312
2303
  ] });
2313
2304
  }
2314
- function vi(e) {
2315
- return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ei, L({}, e)) });
2305
+ function yi(e) {
2306
+ return /* @__PURE__ */ s.jsx(Ir, { children: /* @__PURE__ */ s.jsx(ti, j({}, e)) });
2316
2307
  }
2317
- function ei({ url: e, messages: t, onEvent: n }) {
2308
+ function ti({ url: e, messages: t, onEvent: n }) {
2318
2309
  const o = f((a) => a.containerRef);
2319
2310
  return /* @__PURE__ */ s.jsxs(
2320
2311
  "div",
@@ -2342,19 +2333,19 @@ function ei({ url: e, messages: t, onEvent: n }) {
2342
2333
  ),
2343
2334
  /* @__PURE__ */ s.jsx(Qt, {}),
2344
2335
  /* @__PURE__ */ s.jsx(nn, {}),
2336
+ /* @__PURE__ */ s.jsx(qr, {}),
2345
2337
  /* @__PURE__ */ s.jsxs(tn, { children: [
2346
- /* @__PURE__ */ s.jsx(Wr, {}),
2347
- /* @__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(yo, {}) }) }) }),
2338
+ /* @__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(go, {}) }) }) }),
2348
2339
  /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2349
- /* @__PURE__ */ s.jsx(co, {}),
2340
+ /* @__PURE__ */ s.jsx(uo, {}),
2350
2341
  /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2351
2342
  /* @__PURE__ */ s.jsxs(
2352
2343
  "div",
2353
2344
  {
2354
2345
  className: `${B.controlsSection} ${B.controlsSectionStart}`,
2355
2346
  children: [
2356
- /* @__PURE__ */ s.jsx(Qr, {}),
2357
- /* @__PURE__ */ s.jsx(fo, {}),
2347
+ /* @__PURE__ */ s.jsx(eo, {}),
2348
+ /* @__PURE__ */ s.jsx(ho, {}),
2358
2349
  /* @__PURE__ */ s.jsx(an, {})
2359
2350
  ]
2360
2351
  }
@@ -2364,7 +2355,7 @@ function ei({ url: e, messages: t, onEvent: n }) {
2364
2355
  {
2365
2356
  className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2366
2357
  children: [
2367
- /* @__PURE__ */ s.jsx(Jr, { message: t == null ? void 0 : t.live }),
2358
+ /* @__PURE__ */ s.jsx(Qr, { message: t == null ? void 0 : t.live }),
2368
2359
  /* @__PURE__ */ s.jsx(sn, {}),
2369
2360
  /* @__PURE__ */ s.jsx(en, {})
2370
2361
  ]
@@ -2383,7 +2374,7 @@ function ei({ url: e, messages: t, onEvent: n }) {
2383
2374
  }
2384
2375
  );
2385
2376
  }
2386
- function ti() {
2377
+ function ni() {
2387
2378
  const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), a = f((u) => u.duration), l = f((u) => u.seek);
2388
2379
  return /* @__PURE__ */ s.jsx(
2389
2380
  Xt,
@@ -2404,30 +2395,30 @@ function ti() {
2404
2395
  }
2405
2396
  );
2406
2397
  }
2407
- function ni() {
2398
+ function ri() {
2408
2399
  const e = f((a) => a.isPlaying), t = f((a) => a.pause), n = f((a) => a.play), o = () => {
2409
2400
  e ? t() : n();
2410
2401
  };
2411
2402
  return /* @__PURE__ */ s.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
2412
2403
  }
2413
- const bt = "vod-player-progress-bar";
2414
- function ri() {
2415
- const e = V(null), t = V(null), [n, o] = X(!1), [a, l] = X(-1), [u, i] = X(-1), c = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), x = parseFloat(
2404
+ const St = "vod-player-progress-bar";
2405
+ function oi() {
2406
+ const e = N(null), t = N(null), [n, o] = X(!1), [a, l] = X(-1), [u, i] = X(-1), c = f((P) => P.currentTime), d = f((P) => P.duration), v = f((P) => P.seek), y = f((P) => P.addIdleLock), g = f((P) => P.removeIdleLock), L = parseFloat(
2416
2407
  (d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
2417
- ), P = (k) => {
2418
- i(d * (k[0] / 100)), y(bt);
2419
- }, b = () => {
2420
- u !== -1 && (g(u), i(-1), v(bt));
2421
- }, E = () => o(!0), N = () => o(!1), S = z(
2422
- (k) => {
2423
- const _ = e.current, I = t.current;
2424
- if (_ && I) {
2425
- const p = Me(_), $ = Me(I), G = (k.pageX || k.clientX) - p.left, Z = G / p.width;
2426
- if (Z < 0) return;
2408
+ ), D = (P) => {
2409
+ i(d * (P[0] / 100)), y(St);
2410
+ }, _ = () => {
2411
+ u !== -1 && (v(u), i(-1), g(St));
2412
+ }, b = () => o(!0), M = () => o(!1), R = z(
2413
+ (P) => {
2414
+ const x = e.current, I = t.current;
2415
+ if (x && I) {
2416
+ const p = Me(x), $ = Me(I), G = (P.pageX || P.clientX) - p.left, q = G / p.width;
2417
+ if (q < 0) return;
2427
2418
  let O = G - $.width / 2;
2428
- O < 0 && (O = 0), O > p.width - $.width && (O = -1), I.style.left = O > -1 ? `${O}px` : "auto", I.style.right = O > -1 ? "auto" : "0px", l(Z * d);
2419
+ O < 0 && (O = 0), O > p.width - $.width && (O = -1), I.style.left = O > -1 ? `${O}px` : "auto", I.style.right = O > -1 ? "auto" : "0px", l(q * d);
2429
2420
  }
2430
- E();
2421
+ b();
2431
2422
  },
2432
2423
  [d]
2433
2424
  );
@@ -2436,12 +2427,12 @@ function ri() {
2436
2427
  Ae,
2437
2428
  {
2438
2429
  ref: e,
2439
- value: [x],
2440
- onPointerLeave: N,
2441
- onPointerDown: N,
2442
- onPointerMove: S,
2443
- onValueChange: P,
2444
- onValueCommit: b,
2430
+ value: [L],
2431
+ onPointerLeave: M,
2432
+ onPointerDown: M,
2433
+ onPointerMove: R,
2434
+ onValueChange: D,
2435
+ onValueCommit: _,
2445
2436
  step: 0.1
2446
2437
  }
2447
2438
  ),
@@ -2450,34 +2441,34 @@ function ri() {
2450
2441
  {
2451
2442
  ref: t,
2452
2443
  className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
2453
- children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: xe(a) })
2444
+ children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: _e(a) })
2454
2445
  }
2455
2446
  )
2456
2447
  ] });
2457
2448
  }
2458
- const oi = "_remainingTimeContainer_1yyhb_1", ii = "_remainingTime_1yyhb_1", si = "_remainingSeparator_1yyhb_17", Fe = {
2459
- remainingTimeContainer: oi,
2460
- remainingTime: ii,
2461
- remainingSeparator: si
2449
+ const ii = "_remainingTimeContainer_1yyhb_1", si = "_remainingTime_1yyhb_1", ai = "_remainingSeparator_1yyhb_17", Fe = {
2450
+ remainingTimeContainer: ii,
2451
+ remainingTime: si,
2452
+ remainingSeparator: ai
2462
2453
  };
2463
- function ai() {
2454
+ function li() {
2464
2455
  const e = f((n) => n.currentTime), t = f((n) => n.duration);
2465
2456
  return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
2466
- /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(e) }),
2457
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: _e(e) }),
2467
2458
  /* @__PURE__ */ s.jsx("p", { className: Fe.remainingSeparator }),
2468
- /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(t) })
2459
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: _e(t) })
2469
2460
  ] });
2470
2461
  }
2471
- function li({ callback: e }) {
2462
+ function ci({ callback: e }) {
2472
2463
  const t = f((n) => n.eventEmitter);
2473
- return F(() => {
2464
+ return A(() => {
2474
2465
  const n = (o) => e("timeUpdate", o);
2475
2466
  return t.on("timeUpdate", n), () => {
2476
2467
  t.off("timeUpdate", n);
2477
2468
  };
2478
2469
  }, [e, t]), /* @__PURE__ */ s.jsx(zt, { callback: e });
2479
2470
  }
2480
- function ci() {
2471
+ function ui() {
2481
2472
  const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), a = f((i) => i.play), l = f((i) => i.seek), u = z(
2482
2473
  (i) => {
2483
2474
  let c = !1;
@@ -2498,16 +2489,16 @@ function ci() {
2498
2489
  },
2499
2490
  [e, t, n, o, a, l]
2500
2491
  );
2501
- return F(() => (document.addEventListener("keydown", u), () => {
2492
+ return A(() => (document.addEventListener("keydown", u), () => {
2502
2493
  document.removeEventListener("keydown", u);
2503
- }), [u]), /* @__PURE__ */ s.jsx(Zt, {});
2494
+ }), [u]), /* @__PURE__ */ s.jsx(qt, {});
2504
2495
  }
2505
- function yi(e) {
2506
- return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(ui, L({}, e)) });
2496
+ function gi(e) {
2497
+ return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(di, j({}, e)) });
2507
2498
  }
2508
- function ui({ url: e, messages: t, onEvent: n, startTime: o }) {
2499
+ function di({ url: e, messages: t, onEvent: n, startTime: o }) {
2509
2500
  const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
2510
- return F(() => {
2501
+ return A(() => {
2511
2502
  o && a(o);
2512
2503
  }, [o, a]), /* @__PURE__ */ s.jsxs(
2513
2504
  "div",
@@ -2518,43 +2509,41 @@ function ui({ url: e, messages: t, onEvent: n, startTime: o }) {
2518
2509
  /* @__PURE__ */ s.jsx(Yt, { url: e, isLive: !1, messages: t }),
2519
2510
  /* @__PURE__ */ s.jsx(Qt, {}),
2520
2511
  /* @__PURE__ */ s.jsx(nn, {}),
2521
- /* @__PURE__ */ s.jsxs(tn, { children: [
2522
- /* @__PURE__ */ s.jsx(ti, {}),
2523
- /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2524
- /* @__PURE__ */ s.jsx(ri, {}),
2525
- /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2526
- /* @__PURE__ */ s.jsxs(
2527
- "div",
2528
- {
2529
- className: `${B.controlsSection} ${B.controlsSectionStart}`,
2530
- children: [
2531
- /* @__PURE__ */ s.jsx(ni, {}),
2532
- /* @__PURE__ */ s.jsx(an, {}),
2533
- /* @__PURE__ */ s.jsx(ai, {})
2534
- ]
2535
- }
2536
- ),
2537
- /* @__PURE__ */ s.jsxs(
2538
- "div",
2539
- {
2540
- className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2541
- children: [
2542
- /* @__PURE__ */ s.jsx(sn, {}),
2543
- /* @__PURE__ */ s.jsx(en, {})
2544
- ]
2545
- }
2546
- )
2547
- ] })
2548
- ] }) })
2549
- ] }),
2550
- /* @__PURE__ */ s.jsx(ci, {}),
2551
- n && /* @__PURE__ */ s.jsx(li, { callback: n })
2512
+ /* @__PURE__ */ s.jsx(ni, {}),
2513
+ /* @__PURE__ */ s.jsx(tn, { children: /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2514
+ /* @__PURE__ */ s.jsx(oi, {}),
2515
+ /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2516
+ /* @__PURE__ */ s.jsxs(
2517
+ "div",
2518
+ {
2519
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2520
+ children: [
2521
+ /* @__PURE__ */ s.jsx(ri, {}),
2522
+ /* @__PURE__ */ s.jsx(an, {}),
2523
+ /* @__PURE__ */ s.jsx(li, {})
2524
+ ]
2525
+ }
2526
+ ),
2527
+ /* @__PURE__ */ s.jsxs(
2528
+ "div",
2529
+ {
2530
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2531
+ children: [
2532
+ /* @__PURE__ */ s.jsx(sn, {}),
2533
+ /* @__PURE__ */ s.jsx(en, {})
2534
+ ]
2535
+ }
2536
+ )
2537
+ ] })
2538
+ ] }) }) }),
2539
+ /* @__PURE__ */ s.jsx(ui, {}),
2540
+ n && /* @__PURE__ */ s.jsx(ci, { callback: n })
2552
2541
  ]
2553
2542
  }
2554
2543
  );
2555
2544
  }
2556
2545
  export {
2557
- vi as LivePlayer,
2558
- yi as VodPlayer
2546
+ yi as LivePlayer,
2547
+ gi as VodPlayer
2559
2548
  };
2560
2549
  //# sourceMappingURL=react-video-player.es.js.map