@halibegic/react-video-player 0.0.37 → 0.0.38

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,32 +1,32 @@
1
- var Fn = Object.defineProperty, Mn = Object.defineProperties;
2
- var Nn = Object.getOwnPropertyDescriptors;
3
- var be = Object.getOwnPropertySymbols;
4
- var pt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
- var mt = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t) => {
1
+ var Mn = Object.defineProperty, Nn = Object.defineProperties;
2
+ var Vn = Object.getOwnPropertyDescriptors;
3
+ var Se = Object.getOwnPropertySymbols;
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) => {
6
6
  for (var n in t || (t = {}))
7
- pt.call(t, n) && mt(e, n, t[n]);
8
- if (be)
9
- for (var n of be(t))
10
- vt.call(t, n) && mt(e, n, t[n]);
7
+ vt.call(t, n) && pt(e, n, t[n]);
8
+ if (Se)
9
+ for (var n of Se(t))
10
+ yt.call(t, n) && pt(e, n, t[n]);
11
11
  return e;
12
- }, he = (e, t) => Mn(e, Nn(t));
12
+ }, he = (e, t) => Nn(e, Vn(t));
13
13
  var ne = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
- pt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && be)
18
- for (var o of be(e))
19
- t.indexOf(o) < 0 && vt.call(e, o) && (n[o] = e[o]);
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))
19
+ t.indexOf(o) < 0 && yt.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- import St, { useLayoutEffect as Vn, useEffect as N, useRef as O, useState as X, createContext as bt, useContext as Lt, useCallback as B, forwardRef as Me } from "react";
23
- import { create as Pt, useStore as jt } from "zustand";
24
- import An from "mitt";
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";
24
+ import On from "mitt";
25
25
  import re from "hls.js";
26
- import * as Le from "@radix-ui/react-slider";
27
- import * as xe from "@radix-ui/react-popover";
28
- import * as Pe from "@radix-ui/react-scroll-area";
29
- function kt(e) {
26
+ import * as je from "@radix-ui/react-slider";
27
+ import * as Te from "@radix-ui/react-popover";
28
+ import * as Le from "@radix-ui/react-scroll-area";
29
+ function It(e) {
30
30
  var t = this.constructor;
31
31
  return this.then(
32
32
  function(n) {
@@ -41,7 +41,7 @@ function kt(e) {
41
41
  }
42
42
  );
43
43
  }
44
- function It(e) {
44
+ function Dt(e) {
45
45
  var t = this;
46
46
  return new t(function(n, o) {
47
47
  if (!(e && typeof e.length != "undefined"))
@@ -50,48 +50,48 @@ function It(e) {
50
50
  typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
51
51
  )
52
52
  );
53
- var s = Array.prototype.slice.call(e);
54
- if (s.length === 0) return n([]);
55
- var c = s.length;
56
- function u(l, d) {
53
+ var a = Array.prototype.slice.call(e);
54
+ if (a.length === 0) return n([]);
55
+ var l = a.length;
56
+ function u(c, d) {
57
57
  if (d && (typeof d == "object" || typeof d == "function")) {
58
58
  var g = d.then;
59
59
  if (typeof g == "function") {
60
60
  g.call(
61
61
  d,
62
62
  function(y) {
63
- u(l, y);
63
+ u(c, y);
64
64
  },
65
65
  function(y) {
66
- s[l] = { status: "rejected", reason: y }, --c === 0 && n(s);
66
+ a[c] = { status: "rejected", reason: y }, --l === 0 && n(a);
67
67
  }
68
68
  );
69
69
  return;
70
70
  }
71
71
  }
72
- s[l] = { status: "fulfilled", value: d }, --c === 0 && n(s);
72
+ a[c] = { status: "fulfilled", value: d }, --l === 0 && n(a);
73
73
  }
74
- for (var i = 0; i < s.length; i++)
75
- u(i, s[i]);
74
+ for (var i = 0; i < a.length; i++)
75
+ u(i, a[i]);
76
76
  });
77
77
  }
78
- function Dt(e, t) {
78
+ function Ft(e, t) {
79
79
  this.name = "AggregateError", this.errors = e, this.message = t || "";
80
80
  }
81
- Dt.prototype = Error.prototype;
82
- function Ft(e) {
81
+ Ft.prototype = Error.prototype;
82
+ function Mt(e) {
83
83
  var t = this;
84
84
  return new t(function(n, o) {
85
85
  if (!(e && typeof e.length != "undefined"))
86
86
  return o(new TypeError("Promise.any accepts an array"));
87
- var s = Array.prototype.slice.call(e);
88
- if (s.length === 0) return o();
89
- for (var c = [], u = 0; u < s.length; u++)
87
+ var a = Array.prototype.slice.call(e);
88
+ if (a.length === 0) return o();
89
+ for (var l = [], u = 0; u < a.length; u++)
90
90
  try {
91
- t.resolve(s[u]).then(n).catch(function(i) {
92
- c.push(i), c.length === s.length && o(
93
- new Dt(
94
- c,
91
+ t.resolve(a[u]).then(n).catch(function(i) {
92
+ l.push(i), l.length === a.length && o(
93
+ new Ft(
94
+ l,
95
95
  "All promises were rejected"
96
96
  )
97
97
  );
@@ -101,161 +101,161 @@ function Ft(e) {
101
101
  }
102
102
  });
103
103
  }
104
- var On = setTimeout;
105
- function Mt(e) {
104
+ var Hn = setTimeout;
105
+ function Nt(e) {
106
106
  return !!(e && typeof e.length != "undefined");
107
107
  }
108
- function Hn() {
108
+ function $n() {
109
109
  }
110
- function $n(e, t) {
110
+ function Un(e, t) {
111
111
  return function() {
112
112
  e.apply(t, arguments);
113
113
  };
114
114
  }
115
- function F(e) {
116
- if (!(this instanceof F))
115
+ function M(e) {
116
+ if (!(this instanceof M))
117
117
  throw new TypeError("Promises must be constructed via new");
118
118
  if (typeof e != "function") throw new TypeError("not a function");
119
- this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Vt(e, this);
119
+ this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], At(e, this);
120
120
  }
121
- function Nt(e, t) {
121
+ function Vt(e, t) {
122
122
  for (; e._state === 3; )
123
123
  e = e._value;
124
124
  if (e._state === 0) {
125
125
  e._deferreds.push(t);
126
126
  return;
127
127
  }
128
- e._handled = !0, F._immediateFn(function() {
128
+ e._handled = !0, M._immediateFn(function() {
129
129
  var n = e._state === 1 ? t.onFulfilled : t.onRejected;
130
130
  if (n === null) {
131
- (e._state === 1 ? We : Te)(t.promise, e._value);
131
+ (e._state === 1 ? Ke : _e)(t.promise, e._value);
132
132
  return;
133
133
  }
134
134
  var o;
135
135
  try {
136
136
  o = n(e._value);
137
- } catch (s) {
138
- Te(t.promise, s);
137
+ } catch (a) {
138
+ _e(t.promise, a);
139
139
  return;
140
140
  }
141
- We(t.promise, o);
141
+ Ke(t.promise, o);
142
142
  });
143
143
  }
144
- function We(e, t) {
144
+ function Ke(e, t) {
145
145
  try {
146
146
  if (t === e)
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 F) {
151
- e._state = 3, e._value = t, Ze(e);
150
+ if (t instanceof M) {
151
+ e._state = 3, e._value = t, Ye(e);
152
152
  return;
153
153
  } else if (typeof n == "function") {
154
- Vt($n(n, t), e);
154
+ At(Un(n, t), e);
155
155
  return;
156
156
  }
157
157
  }
158
- e._state = 1, e._value = t, Ze(e);
158
+ e._state = 1, e._value = t, Ye(e);
159
159
  } catch (o) {
160
- Te(e, o);
160
+ _e(e, o);
161
161
  }
162
162
  }
163
- function Te(e, t) {
164
- e._state = 2, e._value = t, Ze(e);
163
+ function _e(e, t) {
164
+ e._state = 2, e._value = t, Ye(e);
165
165
  }
166
- function Ze(e) {
167
- e._state === 2 && e._deferreds.length === 0 && F._immediateFn(function() {
168
- e._handled || F._unhandledRejectionFn(e._value);
166
+ function Ye(e) {
167
+ e._state === 2 && e._deferreds.length === 0 && M._immediateFn(function() {
168
+ e._handled || M._unhandledRejectionFn(e._value);
169
169
  });
170
170
  for (var t = 0, n = e._deferreds.length; t < n; t++)
171
- Nt(e, e._deferreds[t]);
171
+ Vt(e, e._deferreds[t]);
172
172
  e._deferreds = null;
173
173
  }
174
- function Un(e, t, n) {
174
+ function Bn(e, t, n) {
175
175
  this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
176
176
  }
177
- function Vt(e, t) {
177
+ function At(e, t) {
178
178
  var n = !1;
179
179
  try {
180
180
  e(
181
181
  function(o) {
182
- n || (n = !0, We(t, o));
182
+ n || (n = !0, Ke(t, o));
183
183
  },
184
184
  function(o) {
185
- n || (n = !0, Te(t, o));
185
+ n || (n = !0, _e(t, o));
186
186
  }
187
187
  );
188
188
  } catch (o) {
189
189
  if (n) return;
190
- n = !0, Te(t, o);
190
+ n = !0, _e(t, o);
191
191
  }
192
192
  }
193
- F.prototype.catch = function(e) {
193
+ M.prototype.catch = function(e) {
194
194
  return this.then(null, e);
195
195
  };
196
- F.prototype.then = function(e, t) {
197
- var n = new this.constructor(Hn);
198
- return Nt(this, new Un(e, t, n)), n;
196
+ M.prototype.then = function(e, t) {
197
+ var n = new this.constructor($n);
198
+ return Vt(this, new Bn(e, t, n)), n;
199
199
  };
200
- F.prototype.finally = kt;
201
- F.all = function(e) {
202
- return new F(function(t, n) {
203
- if (!Mt(e))
200
+ M.prototype.finally = It;
201
+ M.all = function(e) {
202
+ return new M(function(t, n) {
203
+ if (!Nt(e))
204
204
  return n(new TypeError("Promise.all accepts an array"));
205
205
  var o = Array.prototype.slice.call(e);
206
206
  if (o.length === 0) return t([]);
207
- var s = o.length;
208
- function c(i, l) {
207
+ var a = o.length;
208
+ function l(i, c) {
209
209
  try {
210
- if (l && (typeof l == "object" || typeof l == "function")) {
211
- var d = l.then;
210
+ if (c && (typeof c == "object" || typeof c == "function")) {
211
+ var d = c.then;
212
212
  if (typeof d == "function") {
213
213
  d.call(
214
- l,
214
+ c,
215
215
  function(g) {
216
- c(i, g);
216
+ l(i, g);
217
217
  },
218
218
  n
219
219
  );
220
220
  return;
221
221
  }
222
222
  }
223
- o[i] = l, --s === 0 && t(o);
223
+ o[i] = c, --a === 0 && t(o);
224
224
  } catch (g) {
225
225
  n(g);
226
226
  }
227
227
  }
228
228
  for (var u = 0; u < o.length; u++)
229
- c(u, o[u]);
229
+ l(u, o[u]);
230
230
  });
231
231
  };
232
- F.any = Ft;
233
- F.allSettled = It;
234
- F.resolve = function(e) {
235
- return e && typeof e == "object" && e.constructor === F ? e : new F(function(t) {
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) {
236
236
  t(e);
237
237
  });
238
238
  };
239
- F.reject = function(e) {
240
- return new F(function(t, n) {
239
+ M.reject = function(e) {
240
+ return new M(function(t, n) {
241
241
  n(e);
242
242
  });
243
243
  };
244
- F.race = function(e) {
245
- return new F(function(t, n) {
246
- if (!Mt(e))
244
+ M.race = function(e) {
245
+ return new M(function(t, n) {
246
+ if (!Nt(e))
247
247
  return n(new TypeError("Promise.race accepts an array"));
248
- for (var o = 0, s = e.length; o < s; o++)
249
- F.resolve(e[o]).then(t, n);
248
+ for (var o = 0, a = e.length; o < a; o++)
249
+ M.resolve(e[o]).then(t, n);
250
250
  });
251
251
  };
252
- F._immediateFn = // @ts-ignore
252
+ M._immediateFn = // @ts-ignore
253
253
  typeof setImmediate == "function" && function(e) {
254
254
  setImmediate(e);
255
255
  } || function(e) {
256
- On(e, 0);
256
+ Hn(e, 0);
257
257
  };
258
- F._unhandledRejectionFn = function(t) {
258
+ M._unhandledRejectionFn = function(t) {
259
259
  typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
260
260
  };
261
261
  var ae = (function() {
@@ -267,35 +267,35 @@ 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 = F : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = kt), ae.Promise.allSettled || (ae.Promise.allSettled = It), ae.Promise.any || (ae.Promise.any = Ft));
271
- var je = { exports: {} }, ge = {};
272
- var yt;
273
- function Bn() {
274
- if (yt) return ge;
275
- yt = 1;
276
- var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
277
- function u(i, l, d) {
278
- var g, y = {}, v = null, _ = null;
279
- d !== void 0 && (v = "" + d), l.key !== void 0 && (v = "" + l.key), l.ref !== void 0 && (_ = l.ref);
280
- for (g in l) o.call(l, g) && !c.hasOwnProperty(g) && (y[g] = l[g]);
281
- if (i && i.defaultProps) for (g in l = i.defaultProps, l) y[g] === void 0 && (y[g] = l[g]);
282
- return { $$typeof: t, type: i, key: v, ref: _, props: y, _owner: s.current };
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));
271
+ var Pe = { exports: {} }, ge = {};
272
+ var gt;
273
+ function zn() {
274
+ if (gt) return ge;
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 };
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 };
283
283
  }
284
284
  return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
285
285
  }
286
286
  var we = {};
287
- var gt;
288
- function zn() {
289
- return gt || (gt = 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"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = 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"), _ = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
291
- function L(r) {
287
+ var wt;
288
+ function qn() {
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) {
292
292
  if (r === null || typeof r != "object")
293
293
  return null;
294
- var h = j && r[j] || r[S];
294
+ var h = P && r[P] || r[b];
295
295
  return typeof h == "function" ? h : null;
296
296
  }
297
- var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
- function R(r) {
297
+ var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
+ function S(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];
@@ -304,37 +304,37 @@ function zn() {
304
304
  }
305
305
  function k(r, h, m) {
306
306
  {
307
- var w = M.ReactDebugCurrentFrame, C = w.getStackAddendum();
308
- C !== "" && (h += "%s", m = m.concat([C]));
309
- var b = m.map(function(E) {
310
- return String(E);
307
+ var w = N.ReactDebugCurrentFrame, R = w.getStackAddendum();
308
+ R !== "" && (h += "%s", m = m.concat([R]));
309
+ var j = m.map(function(C) {
310
+ return String(C);
311
311
  });
312
- b.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, b);
312
+ j.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, j);
313
313
  }
314
314
  }
315
- var T = !1, I = !1, p = !1, H = !1, G = !1, W;
316
- W = Symbol.for("react.module.reference");
317
- function V(r) {
318
- return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || G || r === s || r === d || r === g || H || r === _ || T || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === l || // This needs to include all possible module reference object
315
+ var _ = !1, I = !1, p = !1, $ = !1, G = !1, Z;
316
+ Z = Symbol.for("react.module.reference");
317
+ function O(r) {
318
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || 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
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 === W || r.getModuleId !== void 0));
322
+ r.$$typeof === Z || r.getModuleId !== void 0));
323
323
  }
324
324
  function D(r, h, m) {
325
325
  var w = r.displayName;
326
326
  if (w)
327
327
  return w;
328
- var C = h.displayName || h.name || "";
329
- return C !== "" ? m + "(" + C + ")" : m;
328
+ var R = h.displayName || h.name || "";
329
+ return R !== "" ? m + "(" + R + ")" : m;
330
330
  }
331
331
  function Q(r) {
332
332
  return r.displayName || "Context";
333
333
  }
334
- function Z(r) {
334
+ function K(r) {
335
335
  if (r == null)
336
336
  return null;
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")
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")
338
338
  return r.displayName || r.name || null;
339
339
  if (typeof r == "string")
340
340
  return r;
@@ -343,9 +343,9 @@ function zn() {
343
343
  return "Fragment";
344
344
  case n:
345
345
  return "Portal";
346
- case c:
346
+ case l:
347
347
  return "Profiler";
348
- case s:
348
+ case a:
349
349
  return "StrictMode";
350
350
  case d:
351
351
  return "Suspense";
@@ -360,34 +360,34 @@ function zn() {
360
360
  case u:
361
361
  var m = r;
362
362
  return Q(m._context) + ".Provider";
363
- case l:
363
+ case c:
364
364
  return D(r, r.render, "ForwardRef");
365
365
  case y:
366
366
  var w = r.displayName || null;
367
- return w !== null ? w : Z(r.type) || "Memo";
367
+ return w !== null ? w : K(r.type) || "Memo";
368
368
  case v: {
369
- var C = r, b = C._payload, E = C._init;
369
+ var R = r, j = R._payload, C = R._init;
370
370
  try {
371
- return Z(E(b));
372
- } catch (x) {
371
+ return K(C(j));
372
+ } catch (T) {
373
373
  return null;
374
374
  }
375
375
  }
376
376
  }
377
377
  return null;
378
378
  }
379
- var z = Object.assign, oe = 0, ue, te, q, ve, Ye, Xe, Ge;
380
- function Je() {
379
+ var q = Object.assign, oe = 0, ue, te, W, ve, Xe, Ge, Je;
380
+ function Qe() {
381
381
  }
382
- Je.__reactDisabledLog = !0;
383
- function an() {
382
+ Qe.__reactDisabledLog = !0;
383
+ function ln() {
384
384
  {
385
385
  if (oe === 0) {
386
- ue = console.log, te = console.info, q = console.warn, ve = console.error, Ye = console.group, Xe = console.groupCollapsed, Ge = console.groupEnd;
386
+ ue = console.log, te = console.info, W = 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,
390
- value: Je,
390
+ value: Qe,
391
391
  writable: !0
392
392
  };
393
393
  Object.defineProperties(console, {
@@ -403,7 +403,7 @@ function zn() {
403
403
  oe++;
404
404
  }
405
405
  }
406
- function ln() {
406
+ function cn() {
407
407
  {
408
408
  if (oe--, oe === 0) {
409
409
  var r = {
@@ -412,88 +412,88 @@ function zn() {
412
412
  writable: !0
413
413
  };
414
414
  Object.defineProperties(console, {
415
- log: z({}, r, {
415
+ log: q({}, r, {
416
416
  value: ue
417
417
  }),
418
- info: z({}, r, {
418
+ info: q({}, r, {
419
419
  value: te
420
420
  }),
421
- warn: z({}, r, {
422
- value: q
421
+ warn: q({}, r, {
422
+ value: W
423
423
  }),
424
- error: z({}, r, {
424
+ error: q({}, r, {
425
425
  value: ve
426
426
  }),
427
- group: z({}, r, {
428
- value: Ye
429
- }),
430
- groupCollapsed: z({}, r, {
427
+ group: q({}, r, {
431
428
  value: Xe
432
429
  }),
433
- groupEnd: z({}, r, {
430
+ groupCollapsed: q({}, r, {
434
431
  value: Ge
432
+ }),
433
+ groupEnd: q({}, r, {
434
+ value: Je
435
435
  })
436
436
  });
437
437
  }
438
- oe < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
438
+ oe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
439
439
  }
440
440
  }
441
- var Ve = M.ReactCurrentDispatcher, Ae;
442
- function Ee(r, h, m) {
441
+ var Oe = N.ReactCurrentDispatcher, He;
442
+ function Ce(r, h, m) {
443
443
  {
444
- if (Ae === void 0)
444
+ if (He === void 0)
445
445
  try {
446
446
  throw Error();
447
- } catch (C) {
448
- var w = C.stack.trim().match(/\n( *(at )?)/);
449
- Ae = w && w[1] || "";
447
+ } catch (R) {
448
+ var w = R.stack.trim().match(/\n( *(at )?)/);
449
+ He = w && w[1] || "";
450
450
  }
451
451
  return `
452
- ` + Ae + r;
452
+ ` + He + r;
453
453
  }
454
454
  }
455
- var Oe = !1, Ce;
455
+ var $e = !1, Ee;
456
456
  {
457
- var cn = typeof WeakMap == "function" ? WeakMap : Map;
458
- Ce = new cn();
457
+ var un = typeof WeakMap == "function" ? WeakMap : Map;
458
+ Ee = new un();
459
459
  }
460
- function Qe(r, h) {
461
- if (!r || Oe)
460
+ function et(r, h) {
461
+ if (!r || $e)
462
462
  return "";
463
463
  {
464
- var m = Ce.get(r);
464
+ var m = Ee.get(r);
465
465
  if (m !== void 0)
466
466
  return m;
467
467
  }
468
468
  var w;
469
- Oe = !0;
470
- var C = Error.prepareStackTrace;
469
+ $e = !0;
470
+ var R = Error.prepareStackTrace;
471
471
  Error.prepareStackTrace = void 0;
472
- var b;
473
- b = Ve.current, Ve.current = null, an();
472
+ var j;
473
+ j = Oe.current, Oe.current = null, ln();
474
474
  try {
475
475
  if (h) {
476
- var E = function() {
476
+ var C = function() {
477
477
  throw Error();
478
478
  };
479
- if (Object.defineProperty(E.prototype, "props", {
479
+ if (Object.defineProperty(C.prototype, "props", {
480
480
  set: function() {
481
481
  throw Error();
482
482
  }
483
483
  }), typeof Reflect == "object" && Reflect.construct) {
484
484
  try {
485
- Reflect.construct(E, []);
485
+ Reflect.construct(C, []);
486
486
  } catch (J) {
487
487
  w = J;
488
488
  }
489
- Reflect.construct(r, [], E);
489
+ Reflect.construct(r, [], C);
490
490
  } else {
491
491
  try {
492
- E.call();
492
+ C.call();
493
493
  } catch (J) {
494
494
  w = J;
495
495
  }
496
- r.call(E.prototype);
496
+ r.call(C.prototype);
497
497
  }
498
498
  } else {
499
499
  try {
@@ -505,33 +505,33 @@ function zn() {
505
505
  }
506
506
  } catch (J) {
507
507
  if (J && w && typeof J.stack == "string") {
508
- for (var x = J.stack.split(`
508
+ for (var T = J.stack.split(`
509
509
  `), Y = w.stack.split(`
510
- `), A = x.length - 1, $ = Y.length - 1; A >= 1 && $ >= 0 && x[A] !== Y[$]; )
511
- $--;
512
- for (; A >= 1 && $ >= 0; A--, $--)
513
- if (x[A] !== Y[$]) {
514
- if (A !== 1 || $ !== 1)
510
+ `), H = T.length - 1, U = Y.length - 1; H >= 1 && U >= 0 && T[H] !== Y[U]; )
511
+ U--;
512
+ for (; H >= 1 && U >= 0; H--, U--)
513
+ if (T[H] !== Y[U]) {
514
+ if (H !== 1 || U !== 1)
515
515
  do
516
- if (A--, $--, $ < 0 || x[A] !== Y[$]) {
516
+ if (H--, U--, U < 0 || T[H] !== Y[U]) {
517
517
  var ee = `
518
- ` + x[A].replace(" at new ", " at ");
519
- return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ce.set(r, ee), ee;
518
+ ` + T[H].replace(" at new ", " at ");
519
+ return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, ee), ee;
520
520
  }
521
- while (A >= 1 && $ >= 0);
521
+ while (H >= 1 && U >= 0);
522
522
  break;
523
523
  }
524
524
  }
525
525
  } finally {
526
- Oe = !1, Ve.current = b, ln(), Error.prepareStackTrace = C;
526
+ $e = !1, Oe.current = j, cn(), Error.prepareStackTrace = R;
527
527
  }
528
- var fe = r ? r.displayName || r.name : "", ce = fe ? Ee(fe) : "";
529
- return typeof r == "function" && Ce.set(r, ce), ce;
528
+ var fe = r ? r.displayName || r.name : "", ce = fe ? Ce(fe) : "";
529
+ return typeof r == "function" && Ee.set(r, ce), ce;
530
530
  }
531
- function un(r, h, m) {
532
- return Qe(r, !1);
531
+ function dn(r, h, m) {
532
+ return et(r, !1);
533
533
  }
534
- function dn(r) {
534
+ function fn(r) {
535
535
  var h = r.prototype;
536
536
  return !!(h && h.isReactComponent);
537
537
  }
@@ -539,89 +539,89 @@ function zn() {
539
539
  if (r == null)
540
540
  return "";
541
541
  if (typeof r == "function")
542
- return Qe(r, dn(r));
542
+ return et(r, fn(r));
543
543
  if (typeof r == "string")
544
- return Ee(r);
544
+ return Ce(r);
545
545
  switch (r) {
546
546
  case d:
547
- return Ee("Suspense");
547
+ return Ce("Suspense");
548
548
  case g:
549
- return Ee("SuspenseList");
549
+ return Ce("SuspenseList");
550
550
  }
551
551
  if (typeof r == "object")
552
552
  switch (r.$$typeof) {
553
- case l:
554
- return un(r.render);
553
+ case c:
554
+ return dn(r.render);
555
555
  case y:
556
556
  return Re(r.type, h, m);
557
557
  case v: {
558
- var w = r, C = w._payload, b = w._init;
558
+ var w = r, R = w._payload, j = w._init;
559
559
  try {
560
- return Re(b(C), h, m);
561
- } catch (E) {
560
+ return Re(j(R), h, m);
561
+ } catch (C) {
562
562
  }
563
563
  }
564
564
  }
565
565
  return "";
566
566
  }
567
- var ye = Object.prototype.hasOwnProperty, et = {}, tt = M.ReactDebugCurrentFrame;
568
- function Se(r) {
567
+ var ye = Object.prototype.hasOwnProperty, tt = {}, nt = N.ReactDebugCurrentFrame;
568
+ function be(r) {
569
569
  if (r) {
570
570
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
571
- tt.setExtraStackFrame(m);
571
+ nt.setExtraStackFrame(m);
572
572
  } else
573
- tt.setExtraStackFrame(null);
573
+ nt.setExtraStackFrame(null);
574
574
  }
575
- function fn(r, h, m, w, C) {
575
+ function hn(r, h, m, w, R) {
576
576
  {
577
- var b = Function.call.bind(ye);
578
- for (var E in r)
579
- if (b(r, E)) {
580
- var x = void 0;
577
+ var j = Function.call.bind(ye);
578
+ for (var C in r)
579
+ if (j(r, C)) {
580
+ var T = void 0;
581
581
  try {
582
- if (typeof r[E] != "function") {
583
- var Y = Error((w || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
582
+ if (typeof r[C] != "function") {
583
+ var Y = Error((w || "React class") + ": " + m + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
584
584
  throw Y.name = "Invariant Violation", Y;
585
585
  }
586
- x = r[E](h, E, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
587
- } catch (A) {
588
- x = A;
586
+ T = r[C](h, C, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
587
+ } catch (H) {
588
+ T = H;
589
589
  }
590
- x && !(x instanceof Error) && (Se(C), 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, E, typeof x), Se(null)), x instanceof Error && !(x.message in et) && (et[x.message] = !0, Se(C), R("Failed %s type: %s", m, x.message), Se(null));
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));
591
591
  }
592
592
  }
593
593
  }
594
- var hn = Array.isArray;
595
- function He(r) {
596
- return hn(r);
594
+ var mn = Array.isArray;
595
+ function Ue(r) {
596
+ return mn(r);
597
597
  }
598
- function mn(r) {
598
+ function pn(r) {
599
599
  {
600
600
  var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && r[Symbol.toStringTag] || r.constructor.name || "Object";
601
601
  return m;
602
602
  }
603
603
  }
604
- function pn(r) {
604
+ function vn(r) {
605
605
  try {
606
- return nt(r), !1;
606
+ return rt(r), !1;
607
607
  } catch (h) {
608
608
  return !0;
609
609
  }
610
610
  }
611
- function nt(r) {
611
+ function rt(r) {
612
612
  return "" + r;
613
613
  }
614
- function rt(r) {
615
- if (pn(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.", mn(r)), nt(r);
614
+ function ot(r) {
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);
617
617
  }
618
- var ot = M.ReactCurrentOwner, vn = {
618
+ var it = N.ReactCurrentOwner, yn = {
619
619
  key: !0,
620
620
  ref: !0,
621
621
  __self: !0,
622
622
  __source: !0
623
- }, it, st;
624
- function yn(r) {
623
+ }, st, at;
624
+ function gn(r) {
625
625
  if (ye.call(r, "ref")) {
626
626
  var h = Object.getOwnPropertyDescriptor(r, "ref").get;
627
627
  if (h && h.isReactWarning)
@@ -629,7 +629,7 @@ function zn() {
629
629
  }
630
630
  return r.ref !== void 0;
631
631
  }
632
- function gn(r) {
632
+ function wn(r) {
633
633
  if (ye.call(r, "key")) {
634
634
  var h = Object.getOwnPropertyDescriptor(r, "key").get;
635
635
  if (h && h.isReactWarning)
@@ -637,13 +637,13 @@ function zn() {
637
637
  }
638
638
  return r.key !== void 0;
639
639
  }
640
- function wn(r, h) {
641
- typeof r.ref == "string" && ot.current;
640
+ function _n(r, h) {
641
+ typeof r.ref == "string" && it.current;
642
642
  }
643
- function Tn(r, h) {
643
+ function xn(r, h) {
644
644
  {
645
645
  var m = function() {
646
- it || (it = !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));
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));
647
647
  };
648
648
  m.isReactWarning = !0, Object.defineProperty(r, "key", {
649
649
  get: m,
@@ -651,10 +651,10 @@ function zn() {
651
651
  });
652
652
  }
653
653
  }
654
- function _n(r, h) {
654
+ function Tn(r, h) {
655
655
  {
656
656
  var m = function() {
657
- st || (st = !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));
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));
658
658
  };
659
659
  m.isReactWarning = !0, Object.defineProperty(r, "ref", {
660
660
  get: m,
@@ -662,70 +662,70 @@ function zn() {
662
662
  });
663
663
  }
664
664
  }
665
- var xn = function(r, h, m, w, C, b, E) {
666
- var x = {
665
+ var Cn = function(r, h, m, w, R, j, C) {
666
+ var T = {
667
667
  // This tag allows us to uniquely identify this as a React Element
668
668
  $$typeof: t,
669
669
  // Built-in properties that belong on the element
670
670
  type: r,
671
671
  key: h,
672
672
  ref: m,
673
- props: E,
673
+ props: C,
674
674
  // Record the component responsible for creating this element.
675
- _owner: b
675
+ _owner: j
676
676
  };
677
- return x._store = {}, Object.defineProperty(x._store, "validated", {
677
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
678
678
  configurable: !1,
679
679
  enumerable: !1,
680
680
  writable: !0,
681
681
  value: !1
682
- }), Object.defineProperty(x, "_self", {
682
+ }), Object.defineProperty(T, "_self", {
683
683
  configurable: !1,
684
684
  enumerable: !1,
685
685
  writable: !1,
686
686
  value: w
687
- }), Object.defineProperty(x, "_source", {
687
+ }), Object.defineProperty(T, "_source", {
688
688
  configurable: !1,
689
689
  enumerable: !1,
690
690
  writable: !1,
691
- value: C
692
- }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
691
+ value: R
692
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
693
693
  };
694
- function En(r, h, m, w, C) {
694
+ function En(r, h, m, w, R) {
695
695
  {
696
- var b, E = {}, x = null, Y = null;
697
- m !== void 0 && (rt(m), x = "" + m), gn(h) && (rt(h.key), x = "" + h.key), yn(h) && (Y = h.ref, wn(h, C));
698
- for (b in h)
699
- ye.call(h, b) && !vn.hasOwnProperty(b) && (E[b] = h[b]);
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]);
700
700
  if (r && r.defaultProps) {
701
- var A = r.defaultProps;
702
- for (b in A)
703
- E[b] === void 0 && (E[b] = A[b]);
701
+ var H = r.defaultProps;
702
+ for (j in H)
703
+ C[j] === void 0 && (C[j] = H[j]);
704
704
  }
705
- if (x || Y) {
706
- var $ = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
- x && Tn(E, $), Y && _n(E, $);
705
+ if (T || Y) {
706
+ var U = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
+ T && xn(C, U), Y && Tn(C, U);
708
708
  }
709
- return xn(r, x, Y, C, w, ot.current, E);
709
+ return Cn(r, T, Y, R, w, it.current, C);
710
710
  }
711
711
  }
712
- var $e = M.ReactCurrentOwner, at = M.ReactDebugCurrentFrame;
712
+ var Be = N.ReactCurrentOwner, lt = N.ReactDebugCurrentFrame;
713
713
  function de(r) {
714
714
  if (r) {
715
715
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
716
- at.setExtraStackFrame(m);
716
+ lt.setExtraStackFrame(m);
717
717
  } else
718
- at.setExtraStackFrame(null);
718
+ lt.setExtraStackFrame(null);
719
719
  }
720
- var Ue;
721
- Ue = !1;
722
- function Be(r) {
720
+ var ze;
721
+ ze = !1;
722
+ function qe(r) {
723
723
  return typeof r == "object" && r !== null && r.$$typeof === t;
724
724
  }
725
- function lt() {
725
+ function ct() {
726
726
  {
727
- if ($e.current) {
728
- var r = Z($e.current.type);
727
+ if (Be.current) {
728
+ var r = K(Be.current.type);
729
729
  if (r)
730
730
  return `
731
731
 
@@ -734,13 +734,13 @@ Check the render method of \`` + r + "`.";
734
734
  return "";
735
735
  }
736
736
  }
737
- function Cn(r) {
737
+ function Rn(r) {
738
738
  return "";
739
739
  }
740
- var ct = {};
741
- function Rn(r) {
740
+ var ut = {};
741
+ function bn(r) {
742
742
  {
743
- var h = lt();
743
+ var h = ct();
744
744
  if (!h) {
745
745
  var m = typeof r == "string" ? r : r.displayName || r.name;
746
746
  m && (h = `
@@ -750,35 +750,35 @@ Check the top-level render call using <` + m + ">.");
750
750
  return h;
751
751
  }
752
752
  }
753
- function ut(r, h) {
753
+ function dt(r, h) {
754
754
  {
755
755
  if (!r._store || r._store.validated || r.key != null)
756
756
  return;
757
757
  r._store.validated = !0;
758
- var m = Rn(h);
759
- if (ct[m])
758
+ var m = bn(h);
759
+ if (ut[m])
760
760
  return;
761
- ct[m] = !0;
761
+ ut[m] = !0;
762
762
  var w = "";
763
- r && r._owner && r._owner !== $e.current && (w = " It was passed a child from " + Z(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);
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);
764
764
  }
765
765
  }
766
- function dt(r, h) {
766
+ function ft(r, h) {
767
767
  {
768
768
  if (typeof r != "object")
769
769
  return;
770
- if (He(r))
770
+ if (Ue(r))
771
771
  for (var m = 0; m < r.length; m++) {
772
772
  var w = r[m];
773
- Be(w) && ut(w, h);
773
+ qe(w) && dt(w, h);
774
774
  }
775
- else if (Be(r))
775
+ else if (qe(r))
776
776
  r._store && (r._store.validated = !0);
777
777
  else if (r) {
778
- var C = L(r);
779
- if (typeof C == "function" && C !== r.entries)
780
- for (var b = C.call(r), E; !(E = b.next()).done; )
781
- Be(E.value) && ut(E.value, h);
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);
782
782
  }
783
783
  }
784
784
  }
@@ -790,106 +790,106 @@ Check the top-level render call using <` + m + ">.");
790
790
  var m;
791
791
  if (typeof h == "function")
792
792
  m = h.propTypes;
793
- else if (typeof h == "object" && (h.$$typeof === l || // Note: Memo only checks outer props here.
793
+ else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
794
794
  // Inner props are checked in the reconciler.
795
795
  h.$$typeof === y))
796
796
  m = h.propTypes;
797
797
  else
798
798
  return;
799
799
  if (m) {
800
- var w = Z(h);
801
- fn(m, r.props, "prop", w, r);
802
- } else if (h.PropTypes !== void 0 && !Ue) {
803
- Ue = !0;
804
- var C = Z(h);
805
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
800
+ var w = K(h);
801
+ hn(m, r.props, "prop", w, r);
802
+ } else if (h.PropTypes !== void 0 && !ze) {
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");
806
806
  }
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.");
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.");
808
808
  }
809
809
  }
810
- function bn(r) {
810
+ function jn(r) {
811
811
  {
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), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
815
+ de(r), S("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), R("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
819
+ r.ref !== null && (de(r), S("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
820
820
  }
821
821
  }
822
- var ft = {};
823
- function ht(r, h, m, w, C, b) {
822
+ var ht = {};
823
+ function mt(r, h, m, w, R, j) {
824
824
  {
825
- var E = V(r);
826
- if (!E) {
827
- var x = "";
828
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
829
- var Y = Cn();
830
- Y ? x += Y : x += lt();
831
- var A;
832
- r === null ? A = "null" : He(r) ? A = "array" : r !== void 0 && r.$$typeof === t ? (A = "<" + (Z(r.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : A = 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", A, x);
825
+ var C = O(r);
826
+ if (!C) {
827
+ var T = "";
828
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
829
+ var Y = Rn();
830
+ Y ? T += Y : T += ct();
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);
833
833
  }
834
- var $ = En(r, h, m, C, b);
835
- if ($ == null)
836
- return $;
837
- if (E) {
834
+ var U = En(r, h, m, R, j);
835
+ if (U == null)
836
+ return U;
837
+ if (C) {
838
838
  var ee = h.children;
839
839
  if (ee !== void 0)
840
840
  if (w)
841
- if (He(ee)) {
841
+ if (Ue(ee)) {
842
842
  for (var fe = 0; fe < ee.length; fe++)
843
- dt(ee[fe], r);
843
+ ft(ee[fe], r);
844
844
  Object.freeze && Object.freeze(ee);
845
845
  } else
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.");
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.");
847
847
  else
848
- dt(ee, r);
848
+ ft(ee, r);
849
849
  }
850
850
  if (ye.call(h, "key")) {
851
- var ce = Z(r), J = Object.keys(h).filter(function(Dn) {
852
- return Dn !== "key";
853
- }), ze = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
- if (!ft[ce + ze]) {
855
- var In = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
856
- R(`A props object containing a "key" prop is being spread into JSX:
851
+ var ce = K(r), J = Object.keys(h).filter(function(Fn) {
852
+ return Fn !== "key";
853
+ }), We = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
+ if (!ht[ce + We]) {
855
+ var Dn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
856
+ S(`A props object containing a "key" prop is being spread into JSX:
857
857
  let props = %s;
858
858
  <%s {...props} />
859
859
  React keys must be passed directly to JSX without using spread:
860
860
  let props = %s;
861
- <%s key={someKey} {...props} />`, ze, ce, In, ce), ft[ce + ze] = !0;
861
+ <%s key={someKey} {...props} />`, We, ce, Dn, ce), ht[ce + We] = !0;
862
862
  }
863
863
  }
864
- return r === o ? bn($) : Sn($), $;
864
+ return r === o ? jn(U) : Sn(U), U;
865
865
  }
866
866
  }
867
867
  function Ln(r, h, m) {
868
- return ht(r, h, m, !0);
868
+ return mt(r, h, m, !0);
869
869
  }
870
870
  function Pn(r, h, m) {
871
- return ht(r, h, m, !1);
871
+ return mt(r, h, m, !1);
872
872
  }
873
- var jn = Pn, kn = Ln;
874
- we.Fragment = o, we.jsx = jn, we.jsxs = kn;
873
+ var kn = Pn, In = Ln;
874
+ we.Fragment = o, we.jsx = kn, we.jsxs = In;
875
875
  })()), we;
876
876
  }
877
- var wt;
878
- function qn() {
879
- return wt || (wt = 1, process.env.NODE_ENV === "production" ? je.exports = Bn() : je.exports = zn()), je.exports;
880
- }
881
- var a = qn();
882
- const Wn = "_playerNotice_lq5nz_1", Zn = "_playerNoticeTitle_lq5nz_17", Kn = "_playerNoticeText_lq5nz_26", Yn = "_playerNoticeLowZIndex_lq5nz_35", ie = {
883
- playerNotice: Wn,
884
- playerNoticeTitle: Zn,
885
- playerNoticeText: Kn,
886
- playerNoticeLowZIndex: Yn
887
- }, At = typeof window != "undefined" ? Vn : N;
888
- function Ke(e, t) {
889
- const n = O(e);
890
- At(() => {
877
+ var _t;
878
+ function Wn() {
879
+ return _t || (_t = 1, process.env.NODE_ENV === "production" ? Pe.exports = zn() : Pe.exports = qn()), Pe.exports;
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,
884
+ playerNoticeTitle: Kn,
885
+ playerNoticeText: Yn,
886
+ playerNoticeLowZIndex: Xn
887
+ }, Ot = typeof window != "undefined" ? An : F;
888
+ function Ve(e, t) {
889
+ const n = V(e);
890
+ Ot(() => {
891
891
  n.current = e;
892
- }, [e]), N(() => {
892
+ }, [e]), F(() => {
893
893
  if (t === null)
894
894
  return;
895
895
  const o = setInterval(() => {
@@ -900,29 +900,31 @@ function Ke(e, t) {
900
900
  };
901
901
  }, [t]);
902
902
  }
903
- function Xn(e) {
903
+ function Gn(e) {
904
904
  const [, t] = X(0);
905
- Ke(() => t((n) => n + 1), e);
905
+ Ve(() => t((n) => n + 1), e);
906
906
  }
907
- const Gn = () => Pt((e) => ({
907
+ const Jn = () => Pt((e) => ({
908
908
  delay: 0,
909
909
  startDate: null,
910
+ viewerCount: null,
910
911
  setDelay: (t) => e({ delay: t }),
911
- setStartDate: (t) => e({ startDate: t })
912
- })), Ot = bt(
912
+ setStartDate: (t) => e({ startDate: t }),
913
+ setViewerCount: (t) => e({ viewerCount: t })
914
+ })), Ht = jt(
913
915
  null
914
- ), Jn = ({ children: e }) => {
915
- const t = O(
916
+ ), Qn = ({ children: e }) => {
917
+ const t = V(
916
918
  null
917
919
  );
918
- return t.current || (t.current = Gn()), /* @__PURE__ */ a.jsx(Ot.Provider, { value: t.current, children: e });
919
- }, U = (e) => {
920
- const t = Lt(Ot);
920
+ return t.current || (t.current = Jn()), /* @__PURE__ */ s.jsx(Ht.Provider, { value: t.current, children: e });
921
+ }, A = (e) => {
922
+ const t = Lt(Ht);
921
923
  if (!t)
922
924
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
923
- return jt(t, e);
925
+ return kt(t, e);
924
926
  };
925
- function Qn(e, t, n) {
927
+ function er(e, t, n) {
926
928
  const o = {
927
929
  days: 86400,
928
930
  hours: 3600,
@@ -932,16 +934,16 @@ function Qn(e, t, n) {
932
934
  };
933
935
  return e * (o[t] / o[n]);
934
936
  }
935
- function er(e) {
936
- return Qn(e, "milliseconds", "seconds");
937
+ function tr(e) {
938
+ return er(e, "milliseconds", "seconds");
937
939
  }
938
- const _e = (e) => {
940
+ const xe = (e) => {
939
941
  if (isNaN(e) || e === 1 / 0) return "0:00";
940
- const t = (c) => (c < 10 ? "0" : "") + c, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), s = Math.floor(e % 60);
941
- return n === 0 ? `${o}:${t(s)}` : `${n}:${t(o)}:${t(s)}`;
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
+ return n === 0 ? `${o}:${t(a)}` : `${n}:${t(o)}:${t(a)}`;
942
944
  };
943
- function tr(e, t) {
944
- var n, o, s, c, u, i;
945
+ function nr(e, t) {
946
+ var n, o, a, l, u, i;
945
947
  if (typeof Intl != "undefined" && Intl.DateTimeFormat)
946
948
  try {
947
949
  const d = new Intl.DateTimeFormat("en-US", {
@@ -954,57 +956,57 @@ function tr(e, t) {
954
956
  second: "2-digit",
955
957
  hour12: !1
956
958
  }).formatToParts(e), g = parseInt(
957
- ((n = d.find((L) => L.type === "year")) == null ? void 0 : n.value) || "0",
959
+ ((n = d.find((E) => E.type === "year")) == null ? void 0 : n.value) || "0",
958
960
  10
959
961
  ), y = parseInt(
960
- ((o = d.find((L) => L.type === "month")) == null ? void 0 : o.value) || "0",
962
+ ((o = d.find((E) => E.type === "month")) == null ? void 0 : o.value) || "0",
961
963
  10
962
964
  ) - 1, v = parseInt(
963
- ((s = d.find((L) => L.type === "day")) == null ? void 0 : s.value) || "0",
965
+ ((a = d.find((E) => E.type === "day")) == null ? void 0 : a.value) || "0",
964
966
  10
965
- ), _ = parseInt(
966
- ((c = d.find((L) => L.type === "hour")) == null ? void 0 : c.value) || "0",
967
+ ), x = parseInt(
968
+ ((l = d.find((E) => E.type === "hour")) == null ? void 0 : l.value) || "0",
967
969
  10
968
- ), j = parseInt(
969
- ((u = d.find((L) => L.type === "minute")) == null ? void 0 : u.value) || "0",
970
+ ), P = parseInt(
971
+ ((u = d.find((E) => E.type === "minute")) == null ? void 0 : u.value) || "0",
970
972
  10
971
- ), S = parseInt(
972
- ((i = d.find((L) => L.type === "second")) == null ? void 0 : i.value) || "0",
973
+ ), b = parseInt(
974
+ ((i = d.find((E) => E.type === "second")) == null ? void 0 : i.value) || "0",
973
975
  10
974
976
  );
975
- return new Date(g, y, v, _, j, S);
976
- } catch (l) {
977
+ return new Date(g, y, v, x, P, b);
978
+ } catch (c) {
977
979
  return console.warn(
978
980
  `Failed to convert date to timezone ${t}, returning original date:`,
979
- l
981
+ c
980
982
  ), e;
981
983
  }
982
984
  return console.warn(
983
985
  "Intl.DateTimeFormat not available, timezone conversion may be inaccurate"
984
986
  ), e;
985
987
  }
986
- function Ht(e) {
988
+ function $t(e) {
987
989
  var n;
988
990
  const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
989
991
  return e.test(t);
990
992
  }
991
- const $t = Ht(/iPhone|iPad|iPod/i), nr = Ht(/Tizen/i);
992
- function rr() {
993
+ const Ut = $t(/iPhone|iPad|iPod/i), rr = $t(/Tizen/i);
994
+ function or() {
993
995
  const e = document;
994
996
  return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
995
997
  }
996
- function or(e) {
998
+ function ir(e) {
997
999
  e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
998
1000
  }
999
- function ir(e) {
1001
+ function sr(e) {
1000
1002
  e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
1001
1003
  }
1002
- function sr(e, t) {
1004
+ function ar(e, t) {
1003
1005
  return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
1004
1006
  e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
1005
1007
  };
1006
1008
  }
1007
- const ar = () => An(), lr = (e, t) => ({
1009
+ const lr = () => On(), cr = (e, t) => ({
1008
1010
  currentTime: 0,
1009
1011
  duration: 0,
1010
1012
  isEnded: !1,
@@ -1102,10 +1104,10 @@ const ar = () => An(), lr = (e, t) => ({
1102
1104
  const o = t().techRef.current;
1103
1105
  if (!o) return;
1104
1106
  t().eventEmitter.emit("error", n);
1105
- const s = o.error;
1106
- if (!s) return;
1107
- const c = `${s.code}`, u = s.message || "Unknown error occurred";
1108
- e({ error: { message: u, code: c, tech: "native" } });
1107
+ const a = o.error;
1108
+ if (!a) return;
1109
+ const l = `${a.code}`, u = a.message || "Unknown error occurred";
1110
+ e({ error: { message: u, code: l, tech: "native" } });
1109
1111
  },
1110
1112
  pause: () => {
1111
1113
  const n = t().techRef.current;
@@ -1116,7 +1118,7 @@ const ar = () => An(), lr = (e, t) => ({
1116
1118
  }));
1117
1119
  },
1118
1120
  getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
1119
- er(Date.now() - t().pauseTime).toFixed(0)
1121
+ tr(Date.now() - t().pauseTime).toFixed(0)
1120
1122
  ),
1121
1123
  play: () => {
1122
1124
  const n = t().techRef.current;
@@ -1163,11 +1165,11 @@ const ar = () => An(), lr = (e, t) => ({
1163
1165
  isLoading: !1
1164
1166
  });
1165
1167
  }
1166
- }), cr = (e, t) => ({
1168
+ }), ur = (e, t) => ({
1167
1169
  isIdle: !1,
1168
1170
  setIsIdle: (n) => e({ isIdle: n }),
1169
1171
  resetIdle: () => t().eventEmitter.emit("resetIdle")
1170
- }), ur = (e) => ({
1172
+ }), dr = (e) => ({
1171
1173
  idleLocks: /* @__PURE__ */ new Set(),
1172
1174
  addIdleLock: (t) => e((n) => ({
1173
1175
  idleLocks: new Set(n.idleLocks).add(t)
@@ -1176,77 +1178,77 @@ const ar = () => An(), lr = (e, t) => ({
1176
1178
  const o = new Set(n.idleLocks);
1177
1179
  return o.delete(t), { idleLocks: o };
1178
1180
  })
1179
- }), dr = (e, t) => ({
1181
+ }), fr = (e, t) => ({
1180
1182
  level: null,
1181
1183
  levels: null,
1182
1184
  setLevels: (n) => e({ levels: n }),
1183
1185
  setLevel: (n) => {
1184
1186
  n && t().eventEmitter.emit("qualityChange", { level: n }), e({ level: n });
1185
1187
  }
1186
- }), fr = (e, t) => ({
1188
+ }), hr = (e, t) => ({
1187
1189
  isFullscreen: !1,
1188
1190
  isFullscreenReady: !1,
1189
1191
  exitFullscreen: () => {
1190
- t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), ir(document), e({ isFullscreen: !1 });
1192
+ t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), sr(document), e({ isFullscreen: !1 });
1191
1193
  },
1192
1194
  requestFullscreen: () => {
1193
1195
  const n = t().techRef.current, o = t().containerRef.current;
1194
1196
  if (!n || !o) return;
1195
1197
  t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
1196
- const s = $t ? n : o;
1197
- s && or(s), e({ isFullscreen: !0 });
1198
+ const a = Ut ? n : o;
1199
+ a && ir(a), e({ isFullscreen: !0 });
1198
1200
  },
1199
1201
  setIsFullscreen: (n) => e({ isFullscreen: n }),
1200
1202
  setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
1201
- }), hr = (e) => ({
1203
+ }), mr = (e) => ({
1202
1204
  error: null,
1203
1205
  setError: (t) => e({ error: t })
1204
- }), mr = () => ({
1205
- eventEmitter: ar()
1206
- }), pr = (e) => () => P({}, e), vr = (e, t) => Pt()((...n) => P(P(P(P(P(P(P(P({}, lr(...n)), cr(...n)), ur(...n)), fr(...n)), dr(...n)), hr(...n)), mr(...n)), pr({
1206
+ }), pr = () => ({
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({
1207
1209
  techRef: e,
1208
1210
  containerRef: t
1209
- })(...n))), Ut = bt(null);
1210
- function yr({ children: e }) {
1211
- const t = O(null), n = O(null), o = O(null);
1212
- return t.current || (t.current = vr(n, o)), /* @__PURE__ */ a.jsx(Ut.Provider, { value: t.current, children: e });
1211
+ })(...n))), Bt = jt(null);
1212
+ function gr({ children: e }) {
1213
+ const t = V(null), n = V(null), o = V(null);
1214
+ return t.current || (t.current = yr(n, o)), /* @__PURE__ */ s.jsx(Bt.Provider, { value: t.current, children: e });
1213
1215
  }
1214
1216
  const f = (e) => {
1215
- const t = Lt(Ut);
1217
+ const t = Lt(Bt);
1216
1218
  if (!t)
1217
1219
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1218
- return jt(t, e);
1220
+ return kt(t, e);
1219
1221
  };
1220
- function gr(e) {
1222
+ function wr(e) {
1221
1223
  const t = e.split(`
1222
1224
  `);
1223
1225
  for (const n of t) {
1224
1226
  const o = n.trim();
1225
1227
  if (o.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
1226
- const s = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), c = new Date(s);
1227
- if (!isNaN(c.getTime()))
1228
- return tr(c, "Europe/Sarajevo");
1228
+ const a = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), l = new Date(a);
1229
+ if (!isNaN(l.getTime()))
1230
+ return nr(l, "Europe/Sarajevo");
1229
1231
  }
1230
1232
  }
1231
1233
  return null;
1232
1234
  }
1233
- function wr(e, t) {
1235
+ function _r(e, t) {
1234
1236
  const n = e.split(`
1235
1237
  `);
1236
1238
  let o = !1;
1237
- for (const s of n) {
1238
- const c = s.trim();
1239
- if (c.startsWith("#EXT-X-STREAM-INF:")) {
1239
+ for (const a of n) {
1240
+ const l = a.trim();
1241
+ if (l.startsWith("#EXT-X-STREAM-INF:")) {
1240
1242
  o = !0;
1241
1243
  continue;
1242
1244
  }
1243
- if (o && !c.startsWith("#")) {
1244
- if (c.startsWith("http"))
1245
- return c;
1245
+ if (o && !l.startsWith("#")) {
1246
+ if (l.startsWith("http"))
1247
+ return l;
1246
1248
  {
1247
1249
  const u = new URL(t);
1248
1250
  return new URL(
1249
- c,
1251
+ l,
1250
1252
  u.origin + u.pathname.substring(
1251
1253
  0,
1252
1254
  u.pathname.lastIndexOf("/")
@@ -1257,147 +1259,147 @@ function wr(e, t) {
1257
1259
  }
1258
1260
  return null;
1259
1261
  }
1260
- function Tr(e) {
1262
+ function xr(e) {
1261
1263
  return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
1262
1264
  }
1263
- async function _r(e) {
1265
+ async function Tr(e) {
1264
1266
  try {
1265
- const t = Tr(e);
1267
+ const t = xr(e);
1266
1268
  console.log("Converting to DVR URL:", t);
1267
1269
  const n = await fetch(t);
1268
1270
  if (!n.ok)
1269
1271
  throw new Error(
1270
1272
  `Failed to fetch master playlist: ${n.status} ${n.statusText}`
1271
1273
  );
1272
- const o = await n.text(), s = wr(
1274
+ const o = await n.text(), a = _r(
1273
1275
  o,
1274
1276
  t
1275
1277
  );
1276
- if (!s)
1278
+ if (!a)
1277
1279
  throw new Error("No chunklist URL found in master playlist");
1278
- console.log("Found chunklist URL:", s);
1279
- const c = await fetch(s);
1280
- if (!c.ok)
1280
+ console.log("Found chunklist URL:", a);
1281
+ const l = await fetch(a);
1282
+ if (!l.ok)
1281
1283
  throw new Error(
1282
- `Failed to fetch chunklist: ${c.status} ${c.statusText}`
1284
+ `Failed to fetch chunklist: ${l.status} ${l.statusText}`
1283
1285
  );
1284
- const u = await c.text(), i = gr(u);
1286
+ const u = await l.text(), i = wr(u);
1285
1287
  return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
1286
1288
  } catch (t) {
1287
1289
  return console.error("Error getting start time from HLS URL:", t), null;
1288
1290
  }
1289
1291
  }
1290
- function xr(n) {
1292
+ function Cr(n) {
1291
1293
  var o = n, { url: e } = o, t = ne(o, ["url"]);
1292
- const [s, c] = X(!0), u = U((d) => d.startDate), i = U((d) => d.setStartDate), l = B(async () => {
1293
- const d = await _r(e);
1294
+ const [a, l] = X(!0), u = A((d) => d.startDate), i = A((d) => d.setStartDate), c = z(async () => {
1295
+ const d = await Tr(e);
1294
1296
  d && i(d);
1295
1297
  }, [e, i]);
1296
- return N(() => {
1298
+ return F(() => {
1297
1299
  (async () => {
1298
- c(!0), await l(), c(!1);
1300
+ l(!0), await c(), l(!1);
1299
1301
  })();
1300
- }, [l]), Ke(l, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(Er, P({}, t));
1302
+ }, [c]), Ve(c, u ? null : 5e3), a ? null : /* @__PURE__ */ s.jsx(Er, L({}, t));
1301
1303
  }
1302
1304
  function Er({
1303
1305
  children: e,
1304
1306
  messages: t = {}
1305
1307
  }) {
1306
- var u, i, l;
1307
- const n = U((d) => d.startDate), o = f((d) => d.isStarted);
1308
- return Xn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ a.jsx(
1309
- Cr,
1308
+ var u, i, c;
1309
+ const n = A((d) => d.startDate), o = f((d) => d.isStarted);
1310
+ return Gn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ s.jsx(
1311
+ Rr,
1310
1312
  {
1311
1313
  startDate: n,
1312
1314
  title: (i = t == null ? void 0 : t.eventNotStarted) != null ? i : "Event has not started yet.",
1313
- message: (l = t == null ? void 0 : t.eventStartingSoon) != null ? l : "Starting in few seconds..."
1315
+ message: (c = t == null ? void 0 : t.eventStartingSoon) != null ? c : "Starting in few seconds..."
1314
1316
  }
1315
- ) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
1317
+ ) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
1316
1318
  }
1317
- function Cr({ startDate: e, title: t, message: n }) {
1318
- const o = e.getTime() - Date.now(), s = Math.floor(o / (1e3 * 60 * 60)), c = Math.floor(
1319
+ function Rr({ startDate: e, title: t, message: n }) {
1320
+ const o = e.getTime() - Date.now(), a = Math.floor(o / (1e3 * 60 * 60)), l = Math.floor(
1319
1321
  o % (1e3 * 60 * 60) / (1e3 * 60)
1320
1322
  );
1321
- return s || c ? /* @__PURE__ */ a.jsxs("div", { className: ie.playerNotice, children: [
1322
- /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
1323
- /* @__PURE__ */ a.jsxs("p", { className: ie.playerNoticeText, children: [
1323
+ return a || l ? /* @__PURE__ */ s.jsxs("div", { className: ie.playerNotice, children: [
1324
+ /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
1325
+ /* @__PURE__ */ s.jsxs("p", { className: ie.playerNoticeText, children: [
1324
1326
  "(",
1325
- s > 0 ? `${s}h ${c}m` : `${c}m`,
1327
+ a > 0 ? `${a}h ${l}m` : `${l}m`,
1326
1328
  ")"
1327
1329
  ] })
1328
- ] }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
1330
+ ] }) : /* @__PURE__ */ s.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
1329
1331
  }
1330
- function Bt({ callback: e }) {
1332
+ function zt({ callback: e }) {
1331
1333
  const t = f((n) => n.eventEmitter);
1332
- return N(() => {
1333
- const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), c = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (S) => e("volumeChange", S), l = (S) => e("fullscreenChange", S), d = (S) => e("qualityChange", S), g = (S) => e("loadedMetadata", S), y = () => e("loadStart", void 0), v = () => e("playing", void 0), _ = () => e("waiting", void 0), j = () => e("error", void 0);
1334
- return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", c), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", l), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", _), t.on("error", j), () => {
1335
- t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", c), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", l), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", _), t.off("error", j);
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);
1336
1338
  };
1337
1339
  }, [e, t]), null;
1338
1340
  }
1339
- const zt = (e, t = 0) => parseInt(
1341
+ const qt = (e, t = 0) => parseInt(
1340
1342
  Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
1341
- ), qt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Rr = (e, t) => Math.max(0, (t - e) / 1e3), Sr = (e, t = 0) => {
1342
- const o = t < 0 ? 0 : t, s = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], c = Math.floor(Math.log(e) / Math.log(1024));
1343
- return `${parseFloat((e / Math.pow(1024, c)).toFixed(o))}${s[c]}`;
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) => {
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
+ return `${parseFloat((e / Math.pow(1024, l)).toFixed(o))}${a[l]}`;
1344
1346
  };
1345
- function br({
1347
+ function jr({
1346
1348
  isAuto: e,
1347
1349
  level: t,
1348
1350
  levels: n
1349
1351
  }) {
1350
- const o = n.length, s = [];
1351
- return o > 1 && s.push({
1352
+ const o = n.length, a = [];
1353
+ return o > 1 && a.push({
1352
1354
  sid: "quality-level-auto",
1353
1355
  label: "Auto",
1354
1356
  value: -1,
1355
1357
  selected: e || t === -1
1356
- }), n.sort(function(c, u) {
1357
- const i = c.height || c.bitrate || 0, l = u.height || u.bitrate || 0;
1358
- return i === l ? 0 : i > l ? 1 : -1;
1359
- }), n.map((c) => {
1360
- const { bitrate: u, height: i, index: l } = c;
1361
- s.push({
1362
- sid: `quality-level-${l}`,
1358
+ }), n.sort(function(l, u) {
1359
+ const i = l.height || l.bitrate || 0, c = u.height || u.bitrate || 0;
1360
+ return i === c ? 0 : i > c ? 1 : -1;
1361
+ }), n.map((l) => {
1362
+ const { bitrate: u, height: i, index: c } = l;
1363
+ a.push({
1364
+ sid: `quality-level-${c}`,
1363
1365
  label: i ? `${i}p` : Sr(u),
1364
- value: l,
1365
- selected: o === 1 || !e && l === t
1366
+ value: c,
1367
+ selected: o === 1 || !e && c === t
1366
1368
  });
1367
- }), s;
1369
+ }), a;
1368
1370
  }
1369
1371
  function Lr({ callback: e }) {
1370
- const t = U((c) => c.delay), n = U((c) => c.startDate), o = n ? n.getTime() : 0, s = f((c) => c.eventEmitter);
1371
- return N(() => {
1372
- const c = () => e("timeUpdate", {
1373
- currentTime: qt(o, t),
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(() => {
1374
+ const l = () => e("timeUpdate", {
1375
+ currentTime: Wt(o, t),
1374
1376
  duration: -1
1375
1377
  });
1376
- return s.on("timeUpdate", c), () => {
1377
- s.off("timeUpdate", c);
1378
+ return a.on("timeUpdate", l), () => {
1379
+ a.off("timeUpdate", l);
1378
1380
  };
1379
- }, [e, s]), /* @__PURE__ */ a.jsx(Bt, { callback: e });
1381
+ }, [e, a]), /* @__PURE__ */ s.jsx(zt, { callback: e });
1380
1382
  }
1381
- function Wt() {
1382
- const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), s = f((i) => i.setVolume), c = f((i) => i.volume), u = B(
1383
+ function Zt() {
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(
1383
1385
  (i) => {
1384
- let l = !1;
1386
+ let c = !1;
1385
1387
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
1386
1388
  switch (i.code) {
1387
1389
  case "ArrowUp":
1388
- s(c + 10 < 100 ? c + 10 : 100), l = !0;
1390
+ a(l + 10 < 100 ? l + 10 : 100), c = !0;
1389
1391
  break;
1390
1392
  case "ArrowDown":
1391
- s(c - 10 > 0 ? c - 10 : 0), l = !0;
1393
+ a(l - 10 > 0 ? l - 10 : 0), c = !0;
1392
1394
  break;
1393
1395
  case "KeyM":
1394
- s(c === 0 ? 100 : 0), l = !0;
1396
+ a(l === 0 ? 100 : 0), c = !0;
1395
1397
  break;
1396
1398
  case "KeyF":
1397
- n && (t ? e() : o(), l = !0);
1399
+ n && (t ? e() : o(), c = !0);
1398
1400
  break;
1399
1401
  }
1400
- l && i.preventDefault();
1402
+ c && i.preventDefault();
1401
1403
  }
1402
1404
  },
1403
1405
  [
@@ -1405,75 +1407,75 @@ function Wt() {
1405
1407
  t,
1406
1408
  n,
1407
1409
  o,
1408
- s,
1409
- c
1410
+ a,
1411
+ l
1410
1412
  ]
1411
1413
  );
1412
- return N(() => (document.addEventListener("keydown", u), () => {
1414
+ return F(() => (document.addEventListener("keydown", u), () => {
1413
1415
  document.removeEventListener("keydown", u);
1414
1416
  }), [u]), null;
1415
1417
  }
1416
1418
  function Pr() {
1417
- const e = U((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), s = f((i) => i.play), c = U((i) => i.setDelay), u = B(
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(
1418
1420
  (i) => {
1419
- let l = !1;
1421
+ let c = !1;
1420
1422
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
1421
1423
  switch (i.code) {
1422
1424
  case "ArrowLeft":
1423
- c(e + 10), l = !0;
1425
+ l(e + 10), c = !0;
1424
1426
  break;
1425
1427
  case "ArrowRight":
1426
- c(e - 10 > 0 ? e - 10 : 0), l = !0;
1428
+ l(e - 10 > 0 ? e - 10 : 0), c = !0;
1427
1429
  break;
1428
1430
  case "Space":
1429
1431
  if (t)
1430
1432
  n();
1431
1433
  else {
1432
1434
  const d = o();
1433
- d && c(e + d), s();
1435
+ d && l(e + d), a();
1434
1436
  }
1435
- l = !0;
1437
+ c = !0;
1436
1438
  break;
1437
1439
  }
1438
- l && i.preventDefault();
1440
+ c && i.preventDefault();
1439
1441
  }
1440
1442
  },
1441
- [e, o, t, n, s, c]
1443
+ [e, o, t, n, a, l]
1442
1444
  );
1443
- return N(() => (document.addEventListener("keydown", u), () => {
1445
+ return F(() => (document.addEventListener("keydown", u), () => {
1444
1446
  document.removeEventListener("keydown", u);
1445
- }), [u]), /* @__PURE__ */ a.jsx(Wt, {});
1447
+ }), [u]), /* @__PURE__ */ s.jsx(Zt, {});
1446
1448
  }
1447
- function Zt({ children: e }) {
1448
- return /* @__PURE__ */ a.jsx(yr, { children: e });
1449
+ function Kt({ children: e }) {
1450
+ return /* @__PURE__ */ s.jsx(gr, { children: e });
1449
1451
  }
1450
- function jr({ children: e }) {
1451
- return /* @__PURE__ */ a.jsx(Jn, { children: /* @__PURE__ */ a.jsx(Zt, { children: e }) });
1452
+ function kr({ children: e }) {
1453
+ return /* @__PURE__ */ s.jsx(Qn, { children: /* @__PURE__ */ s.jsx(Kt, { children: e }) });
1452
1454
  }
1453
- function kr({ url: e, isLive: t, messages: n }) {
1454
- const o = O(null), s = f((T) => T.level), c = f((T) => T.levels), u = f((T) => T.setLevel), i = f((T) => T.setLevels), l = f((T) => T.techRef), d = f((T) => T.setError), g = O(0), y = O(null), v = 50, _ = 1e4, j = B(
1455
- (T) => {
1456
- if (o.current && (o.current.nextLevel = T, u(null), c)) {
1457
- const I = c.map((p) => he(P({}, p), {
1458
- selected: p.value === T
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 === _
1459
1461
  }));
1460
1462
  i(I);
1461
1463
  }
1462
1464
  },
1463
- [c, u, i, o]
1464
- ), S = B(() => {
1465
+ [l, u, i, o]
1466
+ ), b = z(() => {
1465
1467
  o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
1466
- }, [e]), L = B(() => {
1468
+ }, [e]), E = z(() => {
1467
1469
  if (!o.current) return;
1468
1470
  console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1469
- const T = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
1471
+ const _ = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
1470
1472
  i(
1471
- br({
1472
- levels: T.map((H, G) => {
1473
- const { bitrate: W, height: V, width: D } = H;
1473
+ jr({
1474
+ levels: _.map(($, G) => {
1475
+ const { bitrate: Z, height: O, width: D } = $;
1474
1476
  return {
1475
- bitrate: W,
1476
- height: V,
1477
+ bitrate: Z,
1478
+ height: O,
1477
1479
  index: G,
1478
1480
  width: D
1479
1481
  };
@@ -1482,11 +1484,11 @@ function kr({ url: e, isLive: t, messages: n }) {
1482
1484
  isAuto: p
1483
1485
  })
1484
1486
  );
1485
- }, [d, i]), M = B(
1487
+ }, [d, i]), N = z(
1486
1488
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1487
- (T, I) => {
1488
- var p, H;
1489
- if (console.error("[Player][HLS] ERROR", T, I), !!o.current && I.fatal)
1489
+ (_, I) => {
1490
+ var p, $;
1491
+ if (console.error("[Player][HLS] ERROR", _, I), !!o.current && I.fatal)
1490
1492
  switch (I.type) {
1491
1493
  case re.ErrorTypes.NETWORK_ERROR:
1492
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(() => {
@@ -1496,12 +1498,12 @@ function kr({ url: e, isLive: t, messages: n }) {
1496
1498
  } catch (G) {
1497
1499
  console.error("[Player][HLS] Retry failed:", G);
1498
1500
  }
1499
- }, _)), d({
1501
+ }, x)), d({
1500
1502
  message: (p = n == null ? void 0 : n.eventFinished) != null ? p : "Live event will be back shortly.",
1501
1503
  code: "LIVE_MANIFEST_LOAD_ERROR",
1502
1504
  tech: "hls"
1503
1505
  })) : (d({
1504
- message: (H = n == null ? void 0 : n.unableToPlay) != null ? H : "Unable to play the video. Please try again later.",
1506
+ message: ($ = n == null ? void 0 : n.unableToPlay) != null ? $ : "Unable to play the video. Please try again later.",
1505
1507
  code: "NETWORK_ERROR",
1506
1508
  tech: "hls"
1507
1509
  }), o.current.startLoad());
@@ -1512,122 +1514,156 @@ function kr({ url: e, isLive: t, messages: n }) {
1512
1514
  }
1513
1515
  },
1514
1516
  [t, e, d]
1515
- ), R = B(() => {
1516
- if (!l.current) return;
1517
- let T = {
1517
+ ), S = z(() => {
1518
+ if (!c.current) return;
1519
+ let _ = {
1518
1520
  startLevel: -1,
1519
1521
  maxBufferSize: 30 * 1024 * 1024
1520
1522
  // 30MB
1521
1523
  };
1522
- nr ? (T.backBufferLength = -1, T.enableWorker = !1) : t ? T.backBufferLength = 10 : T.backBufferLength = 60;
1524
+ rr ? (_.backBufferLength = -1, _.enableWorker = !1) : t ? _.backBufferLength = 10 : _.backBufferLength = 60;
1523
1525
  try {
1524
- console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(T)), console.log("[Player][HLS] Version", re.version), o.current = new re(T), o.current.attachMedia(l.current), o.current.on(re.Events.MEDIA_ATTACHED, S), o.current.on(re.Events.MANIFEST_LOADED, L), o.current.on(re.Events.ERROR, M);
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);
1525
1527
  } catch (I) {
1526
1528
  throw new Error(`Error initializing Hls: ${I}`);
1527
1529
  }
1528
1530
  }, [
1529
- L,
1530
- S,
1531
- M,
1531
+ E,
1532
+ b,
1533
+ N,
1532
1534
  t,
1533
- l,
1535
+ c,
1534
1536
  e
1535
- ]), k = B(() => {
1536
- o.current && (o.current.off(re.Events.MEDIA_ATTACHED, S), o.current.off(re.Events.MANIFEST_LOADED, L), o.current.off(re.Events.ERROR, M), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1537
- }, [L, S, M]);
1538
- return N(() => {
1539
- s !== null && j(s);
1540
- }, [s, j]), N(() => (re.isSupported() && R(), k), [k, R]), null;
1541
- }
1542
- const Ir = "_playerVideo_wc0sm_1", Dr = {
1543
- playerVideo: Ir
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;
1543
+ }
1544
+ const Dr = "_playerVideo_wc0sm_1", Fr = {
1545
+ playerVideo: Dr
1544
1546
  };
1545
- function Kt({
1547
+ function Yt({
1546
1548
  url: e,
1547
1549
  isLive: t,
1548
1550
  isMuted: n = !1,
1549
1551
  messages: o = {}
1550
1552
  }) {
1551
- const s = f((p) => p.handleDurationChange), c = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), l = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), _ = f((p) => p.handleTimeUpdate), j = f((p) => p.handleWaiting), S = f((p) => p.handleVolumeChange), L = f((p) => p.handleError), M = f((p) => p.techRef), R = O(null), k = () => t ? {
1552
- onTimeUpdate: T
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
1555
  } : {
1554
- onDurationChange: s,
1556
+ onDurationChange: a,
1555
1557
  onSeeked: y,
1556
1558
  onSeeking: v,
1557
- onTimeUpdate: T
1558
- }, T = () => {
1559
- (!R.current || Date.now() - R.current >= 1e3) && (_(), R.current = Date.now());
1559
+ onTimeUpdate: _
1560
+ }, _ = () => {
1561
+ (!S.current || Date.now() - S.current >= 1e3) && (x(), S.current = Date.now());
1560
1562
  }, I = k();
1561
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1562
- /* @__PURE__ */ a.jsx(kr, { isLive: t, url: e, messages: o }),
1563
- /* @__PURE__ */ a.jsx(
1563
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1564
+ /* @__PURE__ */ s.jsx(Ir, { isLive: t, url: e, messages: o }),
1565
+ /* @__PURE__ */ s.jsx(
1564
1566
  "video",
1565
- P({
1566
- ref: M,
1567
- className: Dr.playerVideo,
1567
+ L({
1568
+ ref: N,
1569
+ className: Fr.playerVideo,
1568
1570
  playsInline: !0,
1569
1571
  autoPlay: !0,
1570
1572
  controls: !1,
1571
1573
  muted: n,
1572
1574
  preload: "auto",
1573
1575
  crossOrigin: "anonymous",
1574
- onEnded: c,
1575
- onError: L,
1576
+ onEnded: l,
1577
+ onError: E,
1576
1578
  onLoadedMetadata: u,
1577
1579
  onLoadStart: i,
1578
- onPause: l,
1580
+ onPause: c,
1579
1581
  onPlay: d,
1580
1582
  onPlaying: g,
1581
- onWaiting: j,
1582
- onVolumeChange: S,
1583
+ onWaiting: P,
1584
+ onVolumeChange: b,
1583
1585
  tabIndex: -1
1584
1586
  }, I)
1585
1587
  )
1586
1588
  ] });
1587
1589
  }
1588
- function Fr({ url: e, messages: t = {} }) {
1589
- const [n, o] = X(null), s = U((u) => u.delay), c = B(async () => {
1590
+ function Mr({ url: e, messages: t = {} }) {
1591
+ const [n, o] = X(null), a = A((u) => u.delay), l = z(async () => {
1590
1592
  o(
1591
- s ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${s}.m3u8`) : e
1593
+ a ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${a}.m3u8`) : e
1592
1594
  );
1593
- }, [s, e]);
1594
- return N(() => {
1595
- c();
1596
- }, [c]), n ? /* @__PURE__ */ a.jsx(Kt, { url: n, isLive: !0, messages: t }) : null;
1595
+ }, [a, e]);
1596
+ return F(() => {
1597
+ l();
1598
+ }, [l]), n ? /* @__PURE__ */ s.jsx(Yt, { url: n, isLive: !0, messages: t }) : null;
1599
+ }
1600
+ function Nr({ url: e }) {
1601
+ const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
1602
+ try {
1603
+ return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
1604
+ } catch (u) {
1605
+ return console.error("Failed to extract URI from player URL:", u), null;
1606
+ }
1607
+ }, a = async () => {
1608
+ var c;
1609
+ const l = o(e);
1610
+ if (!l) {
1611
+ console.error("Could not extract URI from URL:", e);
1612
+ return;
1613
+ }
1614
+ n.current && n.current.abort(), n.current = new AbortController();
1615
+ const i = `https://${e.includes("staging") ? "stg" : "prd"}-fitnessanny.spectar.tv/analytics-api/v1/token-info/uri/${l}`;
1616
+ try {
1617
+ const d = await fetch(i, {
1618
+ signal: n.current.signal
1619
+ });
1620
+ if (!d.ok)
1621
+ throw new Error(`HTTP error! status: ${d.status}`);
1622
+ const y = (c = (await d.json()).count) != null ? c : 0;
1623
+ t(y);
1624
+ } catch (d) {
1625
+ if (d.name === "AbortError")
1626
+ return;
1627
+ console.error("Failed to fetch viewer count:", d), t(null);
1628
+ }
1629
+ };
1630
+ return F(() => (a(), () => {
1631
+ n.current && n.current.abort();
1632
+ }), [e]), Ve(a, 15e3), null;
1597
1633
  }
1598
- function Mr(e, {
1634
+ function Vr(e, {
1599
1635
  defaultValue: t = !1,
1600
1636
  initializeWithValue: n = !0
1601
1637
  } = {}) {
1602
- const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [s, c] = X(() => n ? o(e) : t);
1638
+ const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [a, l] = X(() => n ? o(e) : t);
1603
1639
  function u() {
1604
- c(o(e));
1640
+ l(o(e));
1605
1641
  }
1606
- return At(() => {
1642
+ return Ot(() => {
1607
1643
  if (typeof window == "undefined")
1608
1644
  return;
1609
1645
  const i = window.matchMedia(e);
1610
1646
  return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
1611
1647
  i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
1612
1648
  };
1613
- }, [e]), s;
1614
- }
1615
- const Nr = "_playbackButton_lgsgw_1", Vr = "_seekIndicator_lgsgw_23", Ar = "_seekIndicatorLeft_lgsgw_49", Or = "_seekIndicatorRight_lgsgw_53", Hr = "_seekIndicatorVisible_lgsgw_57", me = {
1616
- playbackButton: Nr,
1617
- seekIndicator: Vr,
1618
- seekIndicatorLeft: Ar,
1619
- seekIndicatorRight: Or,
1620
- seekIndicatorVisible: Hr
1621
- }, $r = 10;
1622
- function Yt(i) {
1623
- var l = i, {
1649
+ }, [e]), a;
1650
+ }
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;
1658
+ function Xt(i) {
1659
+ var c = i, {
1624
1660
  className: e,
1625
1661
  onClick: t,
1626
1662
  onForwardSeek: n,
1627
1663
  onBackwardSeek: o,
1628
- maxForwardTime: s,
1629
- maxBackwardTime: c
1630
- } = l, u = ne(l, [
1664
+ maxForwardTime: a,
1665
+ maxBackwardTime: l
1666
+ } = c, u = ne(c, [
1631
1667
  "className",
1632
1668
  "onClick",
1633
1669
  "onForwardSeek",
@@ -1635,220 +1671,220 @@ function Yt(i) {
1635
1671
  "maxForwardTime",
1636
1672
  "maxBackwardTime"
1637
1673
  ]);
1638
- return Mr("(min-width: 1024px)") ? /* @__PURE__ */ a.jsx(Ur, P({ className: e, onClick: t }, u)) : /* @__PURE__ */ a.jsx(
1639
- Br,
1640
- P({
1674
+ return Vr("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(zr, L({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
1675
+ qr,
1676
+ L({
1641
1677
  className: e,
1642
- maxForwardTime: s,
1643
- maxBackwardTime: c,
1678
+ maxForwardTime: a,
1679
+ maxBackwardTime: l,
1644
1680
  onForwardSeek: n,
1645
1681
  onBackwardSeek: o
1646
1682
  }, u)
1647
1683
  );
1648
1684
  }
1649
- function Ur(o) {
1650
- var s = o, { className: e, onClick: t } = s, n = ne(s, ["className", "onClick"]);
1651
- const c = O(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), l = f((_) => _.requestFullscreen), d = (_) => {
1652
- v() ? (y(), i ? u() : l()) : g(_);
1653
- }, g = (_) => {
1654
- c.current = window.setTimeout(() => {
1655
- t == null || t(_), y();
1685
+ function zr(o) {
1686
+ 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
+ l.current = window.setTimeout(() => {
1691
+ t == null || t(x), y();
1656
1692
  }, 200);
1657
1693
  }, y = () => {
1658
- c.current !== null && (window.clearTimeout(c.current), c.current = null);
1659
- }, v = () => c.current !== null;
1660
- return N(() => () => {
1694
+ l.current !== null && (window.clearTimeout(l.current), l.current = null);
1695
+ }, v = () => l.current !== null;
1696
+ return F(() => () => {
1661
1697
  y();
1662
- }, []), /* @__PURE__ */ a.jsx(
1698
+ }, []), /* @__PURE__ */ s.jsx(
1663
1699
  "button",
1664
- P({
1700
+ L({
1665
1701
  onClick: d,
1666
1702
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1667
1703
  "aria-label": "Player gestures"
1668
1704
  }, n)
1669
1705
  );
1670
1706
  }
1671
- function Br(u) {
1707
+ function qr(u) {
1672
1708
  var i = u, {
1673
1709
  className: e,
1674
1710
  maxForwardTime: t,
1675
1711
  maxBackwardTime: n,
1676
1712
  onForwardSeek: o,
1677
- onBackwardSeek: s
1678
- } = i, c = ne(i, [
1713
+ onBackwardSeek: a
1714
+ } = i, l = ne(i, [
1679
1715
  "className",
1680
1716
  "maxForwardTime",
1681
1717
  "maxBackwardTime",
1682
1718
  "onForwardSeek",
1683
1719
  "onBackwardSeek"
1684
1720
  ]);
1685
- const l = O(null), d = O({
1721
+ const c = V(null), d = V({
1686
1722
  single: null,
1687
1723
  indicator: null,
1688
1724
  accumulate: null
1689
- }), g = O(null), y = O(0), v = O(null), [_, j] = X({ visible: !1, direction: null, time: 0 }), S = f((p) => p.isIdle), L = f((p) => p.setIsIdle), M = f((p) => p.resetIdle), R = (p, H) => p < H / 2 ? "backward" : "forward", k = (p) => {
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) => {
1690
1726
  if (!g.current) return;
1691
- const H = p.changedTouches[0];
1692
- if (!H) return;
1693
- const G = Date.now(), W = g.current.getBoundingClientRect(), V = H.clientX - W.left, D = H.clientY - W.top;
1694
- if (V < 0 || V > W.width || D < 0 || D > W.height)
1727
+ const $ = p.changedTouches[0];
1728
+ 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)
1695
1731
  return;
1696
- const Q = l.current, Z = Q ? G - Q.time : 1 / 0, z = R(V, W.width), oe = v.current !== null && v.current === z && Q !== null && Z < 700 && Math.abs(V - Q.x) < 100;
1697
- if (Q !== null && v.current === null && Z < 300 && Math.abs(V - Q.x) < 50 || oe) {
1698
- p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), M(), (v.current === null || v.current !== z) && (y.current = 0, v.current = z);
1699
- const te = z === "backward" ? n : t;
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;
1700
1736
  y.current = Math.min(
1701
- y.current + $r,
1737
+ y.current + Br,
1702
1738
  te != null ? te : 1 / 0
1703
- ), T(z, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
1704
- const q = y.current;
1705
- q > 0 && (v.current === "backward" ? s == null || s(q) : o == null || o(q), M()), y.current = 0, v.current = null, l.current = null, I(), d.current.accumulate = null;
1706
- }, 500), l.current = { time: G, x: V };
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;
1742
+ }, 500), c.current = { time: G, x: O };
1707
1743
  } else {
1708
- l.current = { time: G, x: V }, d.current.single && window.clearTimeout(d.current.single);
1744
+ c.current = { time: G, x: O }, d.current.single && window.clearTimeout(d.current.single);
1709
1745
  const te = v.current !== null ? 700 : 350;
1710
1746
  d.current.single = window.setTimeout(() => {
1711
1747
  if (v.current === null) {
1712
1748
  d.current.single = null;
1713
- const q = S;
1714
- L(!q), q && M();
1749
+ const W = b;
1750
+ E(!W), W && N();
1715
1751
  }
1716
- l.current = null;
1752
+ c.current = null;
1717
1753
  }, te);
1718
1754
  }
1719
- }, T = (p, H) => {
1720
- H !== 0 && (j({ visible: !0, direction: p, time: H }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1755
+ }, _ = (p, $) => {
1756
+ $ !== 0 && (P({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1721
1757
  I();
1722
1758
  }, 700));
1723
1759
  }, I = () => {
1724
- j({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1760
+ P({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1725
1761
  };
1726
- return N(() => () => {
1762
+ return F(() => () => {
1727
1763
  d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
1728
- }, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1729
- /* @__PURE__ */ a.jsx(
1764
+ }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1765
+ /* @__PURE__ */ s.jsx(
1730
1766
  "button",
1731
- P({
1767
+ L({
1732
1768
  ref: g,
1733
1769
  onTouchEnd: k,
1734
1770
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1735
1771
  "aria-label": "Player gestures"
1736
- }, c)
1772
+ }, l)
1737
1773
  ),
1738
- _.visible && /* @__PURE__ */ a.jsxs(
1774
+ x.visible && /* @__PURE__ */ s.jsxs(
1739
1775
  "div",
1740
1776
  {
1741
- className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${_.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1777
+ className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${x.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1742
1778
  children: [
1743
- _.direction === "backward" ? "-" : "+",
1744
- _e(_.time)
1779
+ x.direction === "backward" ? "-" : "+",
1780
+ xe(x.time)
1745
1781
  ]
1746
1782
  }
1747
1783
  )
1748
1784
  ] });
1749
1785
  }
1750
- function zr() {
1751
- const e = f((l) => l.isPlaying), t = f((l) => l.pause), n = f((l) => l.getPauseTimeDiff), o = f((l) => l.play), s = U((l) => l.delay), c = U((l) => l.setDelay), u = U((l) => l.startDate), i = u ? u.getTime() : 0;
1752
- return /* @__PURE__ */ a.jsx(
1753
- Yt,
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;
1788
+ return /* @__PURE__ */ s.jsx(
1789
+ Xt,
1754
1790
  {
1755
1791
  onClick: () => {
1756
1792
  if (e)
1757
1793
  t();
1758
1794
  else {
1759
- const l = n();
1760
- l && c(s + l), o();
1795
+ const c = n();
1796
+ c && l(a + c), o();
1761
1797
  }
1762
1798
  },
1763
- onBackwardSeek: (l) => {
1764
- const d = s + l;
1765
- c(d);
1799
+ onBackwardSeek: (c) => {
1800
+ const d = a + c;
1801
+ l(d);
1766
1802
  },
1767
- onForwardSeek: (l) => {
1768
- const d = Math.max(0, s - l);
1769
- c(d);
1803
+ onForwardSeek: (c) => {
1804
+ const d = Math.max(0, a - c);
1805
+ l(d);
1770
1806
  },
1771
1807
  maxBackwardTime: Math.floor(i),
1772
- maxForwardTime: Math.floor(s)
1808
+ maxForwardTime: Math.floor(a)
1773
1809
  }
1774
1810
  );
1775
1811
  }
1776
- const qr = "_playerButton_izwqq_1", Wr = "_playerButtonCircle_izwqq_42", Tt = {
1777
- playerButton: qr,
1778
- playerButtonCircle: Wr
1779
- }, le = Me(
1780
- (s, o) => {
1781
- var c = s, { shape: e = "circle", className: t } = c, n = ne(c, ["shape", "className"]);
1782
- const u = e === "circle" ? Tt.playerButtonCircle : "", i = [Tt.playerButton, u, t].filter(Boolean).join(" ");
1783
- return /* @__PURE__ */ a.jsx("button", P({ ref: o, className: i }, n));
1812
+ const Zr = "_playerButton_izwqq_1", Kr = "_playerButtonCircle_izwqq_42", xt = {
1813
+ playerButton: Zr,
1814
+ playerButtonCircle: Kr
1815
+ }, le = Ne(
1816
+ (a, o) => {
1817
+ 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));
1784
1820
  }
1785
1821
  );
1786
1822
  le.displayName = "PlayerButton";
1787
- const Zr = "_liveIndicator_1jczn_1", Kr = "_liveIndicatorHasDelay_1jczn_9", Yr = "_liveIndicatorNoDelay_1jczn_13", ke = {
1788
- liveIndicator: Zr,
1789
- liveIndicatorHasDelay: Kr,
1790
- liveIndicatorNoDelay: Yr
1823
+ const Yr = "_liveIndicator_1jczn_1", Xr = "_liveIndicatorHasDelay_1jczn_9", Gr = "_liveIndicatorNoDelay_1jczn_13", ke = {
1824
+ liveIndicator: Yr,
1825
+ liveIndicatorHasDelay: Xr,
1826
+ liveIndicatorNoDelay: Gr
1791
1827
  };
1792
- function Xr(n) {
1828
+ function Jr(n) {
1793
1829
  var o = n, { message: e } = o, t = ne(o, ["message"]);
1794
- const s = U((l) => l.delay), c = U((l) => l.setDelay), u = () => {
1795
- s && c(0);
1796
- }, i = s ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
1797
- return /* @__PURE__ */ a.jsxs(le, he(P({ onClick: u, shape: "square" }, t), { children: [
1798
- /* @__PURE__ */ a.jsx("div", { className: i }),
1830
+ const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
1831
+ 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: [
1834
+ /* @__PURE__ */ s.jsx("div", { className: i }),
1799
1835
  e || "Live"
1800
1836
  ] }));
1801
1837
  }
1802
- function Xt() {
1803
- return /* @__PURE__ */ a.jsx(
1838
+ function Gt() {
1839
+ return /* @__PURE__ */ s.jsx(
1804
1840
  "svg",
1805
1841
  {
1806
1842
  xmlns: "http://www.w3.org/2000/svg",
1807
1843
  viewBox: "0 0 24 24",
1808
1844
  fill: "currentColor",
1809
- children: /* @__PURE__ */ a.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
1845
+ children: /* @__PURE__ */ s.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
1810
1846
  }
1811
1847
  );
1812
1848
  }
1813
- function Gt() {
1814
- return /* @__PURE__ */ a.jsx(
1849
+ function Jt() {
1850
+ return /* @__PURE__ */ s.jsx(
1815
1851
  "svg",
1816
1852
  {
1817
1853
  xmlns: "http://www.w3.org/2000/svg",
1818
1854
  viewBox: "0 0 24 24",
1819
1855
  fill: "currentColor",
1820
- children: /* @__PURE__ */ a.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
1856
+ children: /* @__PURE__ */ s.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
1821
1857
  }
1822
1858
  );
1823
1859
  }
1824
- function Gr() {
1825
- const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = U((i) => i.delay), c = U((i) => i.setDelay), u = () => {
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 = () => {
1826
1862
  if (e)
1827
1863
  t();
1828
1864
  else {
1829
1865
  const i = n();
1830
- i && c(s + i), o();
1866
+ i && l(a + i), o();
1831
1867
  }
1832
1868
  };
1833
- return /* @__PURE__ */ a.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
1834
- }
1835
- const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipContainerVisible_hwzgf_17", to = "_tipContainerHidden_hwzgf_22", no = "_tipContent_hwzgf_27", se = {
1836
- progressSlider: Jr,
1837
- tipContainer: Qr,
1838
- tipContainerVisible: eo,
1839
- tipContainerHidden: to,
1840
- tipContent: no
1841
- }, ro = "_sliderRoot_aeak6_1", oo = "_sliderTrack_aeak6_18", io = "_sliderRange_aeak6_28", so = "_sliderThumb_aeak6_37", Ie = {
1842
- sliderRoot: ro,
1843
- sliderTrack: oo,
1844
- sliderRange: io,
1845
- sliderThumb: so
1846
- }, Ne = Me((c, s) => {
1847
- var u = c, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
1848
- return /* @__PURE__ */ a.jsxs(
1849
- Le.Root,
1850
- he(P({
1851
- ref: s,
1869
+ return /* @__PURE__ */ s.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
1870
+ }
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
1882
+ }, Ae = Ne((l, a) => {
1883
+ var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
1884
+ return /* @__PURE__ */ s.jsxs(
1885
+ je.Root,
1886
+ he(L({
1887
+ ref: a,
1852
1888
  min: t,
1853
1889
  max: e,
1854
1890
  "aria-label": "Player progress",
@@ -1860,14 +1896,14 @@ const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipCo
1860
1896
  )
1861
1897
  }, o), {
1862
1898
  children: [
1863
- /* @__PURE__ */ a.jsx(Le.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ a.jsx(Le.Range, { className: Ie.sliderRange }) }),
1864
- /* @__PURE__ */ a.jsx(Le.Thumb, { className: Ie.sliderThumb })
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 })
1865
1901
  ]
1866
1902
  })
1867
1903
  );
1868
1904
  });
1869
- Ne.displayName = "PlayerSlider";
1870
- function Fe(e) {
1905
+ Ae.displayName = "PlayerSlider";
1906
+ function Me(e) {
1871
1907
  const t = e.getBoundingClientRect();
1872
1908
  return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
1873
1909
  left: t.left * 100,
@@ -1878,160 +1914,205 @@ function Fe(e) {
1878
1914
  height: t.height * 100
1879
1915
  } : t;
1880
1916
  }
1881
- const _t = "vod-player-progress-bar";
1882
- function ao() {
1883
- const e = O(null), t = O(null), [n, o] = X(0), [s, c] = X(0), [u, i] = X(!1), [l, d] = X(-1), [g, y] = X(-1), v = U((D) => D.delay), _ = U((D) => D.startDate), j = _ ? _.getTime() : 0, S = (/* @__PURE__ */ new Date()).getTime(), L = U((D) => D.setDelay), M = f((D) => D.isPlaying), R = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), T = B(() => {
1884
- o(qt(j, v)), c(Rr(j, S));
1885
- }, [v, S, j]), I = parseFloat(
1886
- (s ? (g !== -1 ? g : n) / s * 100 : 0).toFixed(1)
1917
+ 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)
1887
1923
  ), p = (D) => {
1888
- y(s * (D[0] / 100)), R(_t);
1889
- }, H = () => {
1924
+ y(a * (D[0] / 100)), S(Tt);
1925
+ }, $ = () => {
1890
1926
  if (g !== -1) {
1891
- const D = zt(j, g);
1892
- L(D), y(-1), k(_t);
1927
+ const D = qt(P, g);
1928
+ E(D), y(-1), k(Tt);
1893
1929
  }
1894
- }, G = () => i(!0), W = () => i(!1), V = B(
1930
+ }, G = () => i(!0), Z = () => i(!1), O = z(
1895
1931
  (D) => {
1896
- const Q = e.current, Z = t.current;
1897
- if (Q && Z) {
1898
- const z = Fe(Q), oe = Fe(Z), ue = (D.pageX || D.clientX) - z.left, te = ue / z.width;
1932
+ const Q = e.current, K = t.current;
1933
+ if (Q && K) {
1934
+ const q = Me(Q), oe = Me(K), ue = (D.pageX || D.clientX) - q.left, te = ue / q.width;
1899
1935
  if (te < 0) return;
1900
- let q = ue - oe.width / 2;
1901
- q < 0 && (q = 0), q > z.width - oe.width && (q = -1), Z.style.left = q > -1 ? `${q}px` : "auto", Z.style.right = q > -1 ? "auto" : "0px";
1902
- const ve = s - te * s;
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";
1938
+ const ve = a - te * a;
1903
1939
  d(ve > 0 ? ve : 0);
1904
1940
  }
1905
1941
  G();
1906
1942
  },
1907
- [s]
1943
+ [a]
1908
1944
  );
1909
- return Ke(() => T(), M ? 1e3 : null), N(() => {
1910
- T();
1911
- }, [T]), /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
1912
- /* @__PURE__ */ a.jsx(
1913
- Ne,
1945
+ return Ve(() => _(), N ? 1e3 : null), F(() => {
1946
+ _();
1947
+ }, [_]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
1948
+ /* @__PURE__ */ s.jsx(
1949
+ Ae,
1914
1950
  {
1915
1951
  ref: e,
1916
1952
  value: [I],
1917
- onPointerLeave: W,
1918
- onPointerDown: W,
1919
- onPointerMove: V,
1953
+ onPointerLeave: Z,
1954
+ onPointerDown: Z,
1955
+ onPointerMove: O,
1920
1956
  onValueChange: p,
1921
- onValueCommit: H,
1957
+ onValueCommit: $,
1922
1958
  step: 0.1
1923
1959
  }
1924
1960
  ),
1925
- /* @__PURE__ */ a.jsx(
1961
+ /* @__PURE__ */ s.jsx(
1926
1962
  "div",
1927
1963
  {
1928
1964
  ref: t,
1929
1965
  className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
1930
- children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: `-${_e(l)}` })
1966
+ children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${xe(c)}` })
1931
1967
  }
1932
1968
  )
1933
1969
  ] });
1934
1970
  }
1935
- function lo() {
1936
- return /* @__PURE__ */ a.jsx(
1971
+ function uo() {
1972
+ return /* @__PURE__ */ s.jsx(
1937
1973
  "svg",
1938
1974
  {
1939
1975
  xmlns: "http://www.w3.org/2000/svg",
1940
1976
  viewBox: "0 0 24 24",
1941
1977
  fill: "currentColor",
1942
- children: /* @__PURE__ */ a.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
1978
+ children: /* @__PURE__ */ s.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
1943
1979
  }
1944
1980
  );
1945
1981
  }
1946
- function co() {
1947
- const e = U((s) => s.startDate), t = U((s) => s.setDelay), n = e ? e.getTime() : 0, o = () => t(zt(n));
1948
- return /* @__PURE__ */ a.jsx(le, { onClick: o, children: /* @__PURE__ */ a.jsx(lo, {}) });
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, {}) });
1949
1985
  }
1950
- function Jt() {
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
1991
+ };
1992
+ function yo() {
1993
+ const e = A((t) => t.viewerCount);
1994
+ return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
1995
+ /* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
1996
+ /* @__PURE__ */ s.jsxs(
1997
+ "svg",
1998
+ {
1999
+ className: De.viewersIcon,
2000
+ width: "16",
2001
+ height: "16",
2002
+ viewBox: "0 0 16 16",
2003
+ fill: "none",
2004
+ xmlns: "http://www.w3.org/2000/svg",
2005
+ children: [
2006
+ /* @__PURE__ */ s.jsx(
2007
+ "path",
2008
+ {
2009
+ d: "M8 7C9.10457 7 10 6.10457 10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5C6 6.10457 6.89543 7 8 7Z",
2010
+ fill: "currentColor"
2011
+ }
2012
+ ),
2013
+ /* @__PURE__ */ s.jsx(
2014
+ "path",
2015
+ {
2016
+ d: "M8 8C5.79086 8 4 9.79086 4 12V13H12V12C12 9.79086 10.2091 8 8 8Z",
2017
+ fill: "currentColor"
2018
+ }
2019
+ )
2020
+ ]
2021
+ }
2022
+ ),
2023
+ /* @__PURE__ */ s.jsx("span", { className: De.viewersCount, children: e.toLocaleString() })
2024
+ ] }) : null;
2025
+ }
2026
+ function Qt() {
1951
2027
  const e = f((n) => n.error);
1952
2028
  if (!e) return null;
1953
2029
  const t = e.code === "LIVE_MANIFEST_LOAD_ERROR";
1954
- return /* @__PURE__ */ a.jsx(
2030
+ return /* @__PURE__ */ s.jsx(
1955
2031
  "div",
1956
2032
  {
1957
2033
  className: `${ie.playerNotice} ${t ? ie.playerNoticeLowZIndex : ""}`,
1958
- children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
2034
+ children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
1959
2035
  }
1960
2036
  );
1961
2037
  }
1962
- const uo = "_playerContainer_1fn8l_1", fo = "_controlsBottom_1fn8l_29", ho = "_controlsContainer_1fn8l_45", mo = "_controlsRow_1fn8l_61", po = "_controlsSection_1fn8l_68", vo = "_controlsSectionStart_1fn8l_78", yo = "_controlsSectionEnd_1fn8l_82", K = {
1963
- playerContainer: uo,
1964
- controlsBottom: fo,
1965
- controlsContainer: ho,
1966
- controlsRow: mo,
1967
- controlsSection: po,
1968
- controlsSectionStart: vo,
1969
- controlsSectionEnd: yo
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,
2041
+ controlsBottom: _o,
2042
+ controlsContainer: xo,
2043
+ controlsRow: To,
2044
+ controlsSection: Co,
2045
+ controlsSectionStart: Eo,
2046
+ controlsSectionEnd: Ro
1970
2047
  };
1971
- function go() {
1972
- return /* @__PURE__ */ a.jsx(
2048
+ function bo() {
2049
+ return /* @__PURE__ */ s.jsx(
1973
2050
  "svg",
1974
2051
  {
1975
2052
  xmlns: "http://www.w3.org/2000/svg",
1976
2053
  viewBox: "0 0 24 24",
1977
2054
  fill: "currentColor",
1978
- children: /* @__PURE__ */ a.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
2055
+ children: /* @__PURE__ */ s.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
1979
2056
  }
1980
2057
  );
1981
2058
  }
1982
- function wo() {
1983
- return /* @__PURE__ */ a.jsx(
2059
+ function So() {
2060
+ return /* @__PURE__ */ s.jsx(
1984
2061
  "svg",
1985
2062
  {
1986
2063
  xmlns: "http://www.w3.org/2000/svg",
1987
2064
  viewBox: "0 0 24 24",
1988
2065
  fill: "currentColor",
1989
- children: /* @__PURE__ */ a.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
2066
+ children: /* @__PURE__ */ s.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
1990
2067
  }
1991
2068
  );
1992
2069
  }
1993
- function Qt() {
1994
- const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), s = f((d) => d.setIsFullscreen), c = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = B(
2070
+ function en() {
2071
+ const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), a = f((d) => d.setIsFullscreen), l = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = z(
1995
2072
  (d) => {
1996
- d.stopPropagation(), s(rr());
2073
+ d.stopPropagation(), a(or());
1997
2074
  },
1998
- [s]
1999
- ), l = () => {
2075
+ [a]
2076
+ ), c = () => {
2000
2077
  n ? t() : o();
2001
2078
  };
2002
- return N(() => {
2003
- const d = $t ? u.current : e.current;
2079
+ return F(() => {
2080
+ const d = Ut ? u.current : e.current;
2004
2081
  if (d)
2005
- return sr(d, i);
2006
- }, [e, i, u]), N(() => {
2007
- c(!0);
2008
- }, [c]), /* @__PURE__ */ a.jsx(le, { onClick: l, children: n ? /* @__PURE__ */ a.jsx(wo, {}) : /* @__PURE__ */ a.jsx(go, {}) });
2009
- }
2010
- const To = "_idleCheckContainer_iz9tu_1", _o = "_idleCheckContainerIdle_iz9tu_10", xo = "_idleCheckContainerActive_iz9tu_15", qe = {
2011
- idleCheckContainer: To,
2012
- idleCheckContainerIdle: _o,
2013
- idleCheckContainerActive: xo
2014
- }, Eo = 5 * 1e3;
2015
- function en({ children: e }) {
2016
- const t = O(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), s = O(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), l = B(() => {
2017
- s.current !== null && (window.clearTimeout(s.current), s.current = null);
2018
- }, []), d = B(() => {
2019
- l(), s.current = window.setTimeout(() => o(!0), Eo);
2020
- }, [l]);
2021
- N(() => (o(!1), d(), () => {
2022
- l();
2023
- }), [l, d]), N(() => {
2082
+ return ar(d, i);
2083
+ }, [e, i, u]), F(() => {
2084
+ l(!0);
2085
+ }, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(So, {}) : /* @__PURE__ */ s.jsx(bo, {}) });
2086
+ }
2087
+ const jo = "_idleCheckContainer_iz9tu_1", Lo = "_idleCheckContainerIdle_iz9tu_10", Po = "_idleCheckContainerActive_iz9tu_15", Ze = {
2088
+ idleCheckContainer: jo,
2089
+ idleCheckContainerIdle: Lo,
2090
+ idleCheckContainerActive: Po
2091
+ }, ko = 5 * 1e3;
2092
+ 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(() => {
2094
+ a.current !== null && (window.clearTimeout(a.current), a.current = null);
2095
+ }, []), d = z(() => {
2096
+ c(), a.current = window.setTimeout(() => o(!0), ko);
2097
+ }, [c]);
2098
+ F(() => (o(!1), d(), () => {
2099
+ c();
2100
+ }), [c, d]), F(() => {
2024
2101
  const v = t.current;
2025
2102
  if (!v) return;
2026
- const _ = (S) => {
2027
- n && (S.stopPropagation(), o(!1), d());
2028
- }, j = () => {
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 = () => {
2029
2108
  n && o(!1), d();
2030
2109
  };
2031
- return v.addEventListener("click", _), v.addEventListener("mousemove", j), () => {
2032
- v.removeEventListener("click", _), v.removeEventListener("mousemove", j);
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);
2033
2114
  };
2034
- }, [t, n, o, d]), N(() => {
2115
+ }, [t, n, o, d]), F(() => {
2035
2116
  const v = () => {
2036
2117
  o(!1), d();
2037
2118
  };
@@ -2039,67 +2120,67 @@ function en({ children: e }) {
2039
2120
  i.off("resetIdle", v);
2040
2121
  };
2041
2122
  }, [i, o, d]);
2042
- const g = n && !u, y = `${qe.idleCheckContainer} ${g ? qe.idleCheckContainerIdle : qe.idleCheckContainerActive}`;
2043
- return /* @__PURE__ */ a.jsx("div", { ref: t, className: y, children: e });
2123
+ const g = n && !u, y = `${Ze.idleCheckContainer} ${g ? Ze.idleCheckContainerIdle : Ze.idleCheckContainerActive}`;
2124
+ return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
2044
2125
  }
2045
- const Co = "_spinner_oo4hi_10", Ro = {
2046
- spinner: Co
2126
+ const Io = "_spinner_oo4hi_10", Do = {
2127
+ spinner: Io
2047
2128
  };
2048
- function So(e) {
2049
- return /* @__PURE__ */ a.jsx("div", P({ className: Ro.spinner }, e));
2129
+ function Fo(e) {
2130
+ return /* @__PURE__ */ s.jsx("div", L({ className: Do.spinner }, e));
2050
2131
  }
2051
- function bo(e, t = 500) {
2132
+ function Mo(e, t = 500) {
2052
2133
  const [n, o] = X(e);
2053
- return N(() => {
2054
- const s = window.setTimeout(() => o(e), t);
2134
+ return F(() => {
2135
+ const a = window.setTimeout(() => o(e), t);
2055
2136
  return () => {
2056
- window.clearTimeout(s);
2137
+ window.clearTimeout(a);
2057
2138
  };
2058
2139
  }, [e, t]), n;
2059
2140
  }
2060
- const Lo = "_loadingContainer_v9v7r_1", Po = {
2061
- loadingContainer: Lo
2141
+ const No = "_loadingContainer_v9v7r_1", Vo = {
2142
+ loadingContainer: No
2062
2143
  };
2063
- function tn(n) {
2144
+ function nn(n) {
2064
2145
  var o = n, { style: e } = o, t = ne(o, ["style"]);
2065
- const s = f((u) => u.isLoading);
2066
- return bo(s, 100) ? /* @__PURE__ */ a.jsx("div", he(P({ className: Po.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(So, {}) })) : null;
2146
+ 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;
2067
2148
  }
2068
- function jo() {
2069
- return /* @__PURE__ */ a.jsx(
2149
+ function Ao() {
2150
+ return /* @__PURE__ */ s.jsx(
2070
2151
  "svg",
2071
2152
  {
2072
2153
  xmlns: "http://www.w3.org/2000/svg",
2073
2154
  viewBox: "0 0 24 24",
2074
2155
  fill: "currentColor",
2075
- children: /* @__PURE__ */ a.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
2156
+ children: /* @__PURE__ */ s.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
2076
2157
  }
2077
2158
  );
2078
2159
  }
2079
- function ko() {
2080
- return /* @__PURE__ */ a.jsx(
2160
+ function Oo() {
2161
+ return /* @__PURE__ */ s.jsx(
2081
2162
  "svg",
2082
2163
  {
2083
2164
  xmlns: "http://www.w3.org/2000/svg",
2084
2165
  viewBox: "0 0 24 24",
2085
2166
  fill: "currentColor",
2086
- children: /* @__PURE__ */ a.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
2167
+ children: /* @__PURE__ */ s.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
2087
2168
  }
2088
2169
  );
2089
2170
  }
2090
- const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo = "_scrollAreaRoot_11aiz_124", Mo = "_scrollAreaViewport_11aiz_132", No = "_scrollAreaScrollbar_11aiz_140", Vo = "_scrollAreaThumb_11aiz_167", pe = {
2091
- dropdownMenuContent: Io,
2092
- dropdownMenuItem: Do,
2093
- scrollAreaRoot: Fo,
2094
- scrollAreaViewport: Mo,
2095
- scrollAreaScrollbar: No,
2096
- scrollAreaThumb: Vo
2097
- }, Ao = xe.Root, Oo = xe.Trigger, Ho = xe.Portal, nn = Me((c, s) => {
2098
- var u = c, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
2099
- return /* @__PURE__ */ a.jsx(
2100
- xe.Content,
2101
- he(P({
2102
- ref: s,
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) => {
2179
+ var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
2180
+ return /* @__PURE__ */ s.jsx(
2181
+ Te.Content,
2182
+ he(L({
2183
+ ref: a,
2103
2184
  sideOffset: e,
2104
2185
  className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
2105
2186
  onOpenAutoFocus: (i) => {
@@ -2109,20 +2190,20 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
2109
2190
  i.preventDefault();
2110
2191
  }
2111
2192
  }, o), {
2112
- children: /* @__PURE__ */ a.jsxs(
2113
- Pe.Root,
2193
+ children: /* @__PURE__ */ s.jsxs(
2194
+ Le.Root,
2114
2195
  {
2115
2196
  className: pe.scrollAreaRoot,
2116
2197
  type: "always",
2117
2198
  scrollHideDelay: 0,
2118
2199
  children: [
2119
- /* @__PURE__ */ a.jsx(Pe.Viewport, { className: pe.scrollAreaViewport, children: n }),
2120
- /* @__PURE__ */ a.jsx(
2121
- Pe.Scrollbar,
2200
+ /* @__PURE__ */ s.jsx(Le.Viewport, { className: pe.scrollAreaViewport, children: n }),
2201
+ /* @__PURE__ */ s.jsx(
2202
+ Le.Scrollbar,
2122
2203
  {
2123
2204
  className: pe.scrollAreaScrollbar,
2124
2205
  orientation: "vertical",
2125
- children: /* @__PURE__ */ a.jsx(Pe.Thumb, { className: pe.scrollAreaThumb })
2206
+ children: /* @__PURE__ */ s.jsx(Le.Thumb, { className: pe.scrollAreaThumb })
2126
2207
  }
2127
2208
  )
2128
2209
  ]
@@ -2131,17 +2212,17 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
2131
2212
  })
2132
2213
  );
2133
2214
  });
2134
- nn.displayName = "PlayerMenuContent";
2135
- const rn = Me((s, o) => {
2136
- var c = s, { className: e, onClick: t } = c, n = ne(c, ["className", "onClick"]);
2137
- const u = (l) => {
2138
- t == null || t(l);
2139
- }, i = (l) => {
2140
- (l.key === "Enter" || l.key === " ") && (l.preventDefault(), t == null || t(l));
2215
+ rn.displayName = "PlayerMenuContent";
2216
+ const on = Ne((a, o) => {
2217
+ var l = a, { className: e, onClick: t } = l, n = ne(l, ["className", "onClick"]);
2218
+ const u = (c) => {
2219
+ t == null || t(c);
2220
+ }, i = (c) => {
2221
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), t == null || t(c));
2141
2222
  };
2142
- return /* @__PURE__ */ a.jsx(xe.Close, { asChild: !0, children: /* @__PURE__ */ a.jsx(
2223
+ return /* @__PURE__ */ s.jsx(Te.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
2143
2224
  "div",
2144
- P({
2225
+ L({
2145
2226
  ref: o,
2146
2227
  className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
2147
2228
  role: "menuitem",
@@ -2151,98 +2232,98 @@ const rn = Me((s, o) => {
2151
2232
  }, n)
2152
2233
  ) });
2153
2234
  });
2154
- rn.displayName = "PlayerMenuItem";
2155
- const xt = "settings";
2156
- function on() {
2157
- const [e, t] = X(!1), n = f((l) => l.containerRef), o = f((l) => l.addIdleLock), s = f((l) => l.removeIdleLock), c = f((l) => l.levels), u = f((l) => l.setLevel), i = B(
2158
- (l) => {
2159
- t(l), l ? o(xt) : s(xt);
2235
+ on.displayName = "PlayerMenuItem";
2236
+ const Ct = "settings";
2237
+ function sn() {
2238
+ const [e, t] = X(!1), n = f((c) => c.containerRef), o = f((c) => c.addIdleLock), a = f((c) => c.removeIdleLock), l = f((c) => c.levels), u = f((c) => c.setLevel), i = z(
2239
+ (c) => {
2240
+ t(c), c ? o(Ct) : a(Ct);
2160
2241
  },
2161
- [o, s]
2242
+ [o, a]
2162
2243
  );
2163
- return /* @__PURE__ */ a.jsxs(Ao, { open: e, onOpenChange: i, children: [
2164
- /* @__PURE__ */ a.jsx(Oo, { asChild: !0, children: /* @__PURE__ */ a.jsx(le, { children: /* @__PURE__ */ a.jsx(ko, {}) }) }),
2165
- /* @__PURE__ */ a.jsx(Ho, { container: n.current, children: /* @__PURE__ */ a.jsx(nn, { side: "top", align: "end", children: c == null ? void 0 : c.map((l) => /* @__PURE__ */ a.jsxs(
2166
- rn,
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(
2247
+ on,
2167
2248
  {
2168
- onClick: () => u(l.value),
2249
+ onClick: () => u(c.value),
2169
2250
  children: [
2170
- l.label,
2171
- l.selected && /* @__PURE__ */ a.jsx(jo, {})
2251
+ c.label,
2252
+ c.selected && /* @__PURE__ */ s.jsx(Ao, {})
2172
2253
  ]
2173
2254
  },
2174
- l.sid
2255
+ c.sid
2175
2256
  )) }) })
2176
2257
  ] });
2177
2258
  }
2178
- function $o() {
2179
- return /* @__PURE__ */ a.jsx(
2259
+ function Yo() {
2260
+ return /* @__PURE__ */ s.jsx(
2180
2261
  "svg",
2181
2262
  {
2182
2263
  xmlns: "http://www.w3.org/2000/svg",
2183
2264
  viewBox: "0 0 24 24",
2184
2265
  fill: "currentColor",
2185
- children: /* @__PURE__ */ a.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
2266
+ children: /* @__PURE__ */ s.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
2186
2267
  }
2187
2268
  );
2188
2269
  }
2189
- function Uo() {
2190
- return /* @__PURE__ */ a.jsx(
2270
+ function Xo() {
2271
+ return /* @__PURE__ */ s.jsx(
2191
2272
  "svg",
2192
2273
  {
2193
2274
  xmlns: "http://www.w3.org/2000/svg",
2194
2275
  viewBox: "0 0 24 24",
2195
2276
  fill: "currentColor",
2196
- children: /* @__PURE__ */ a.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
2277
+ children: /* @__PURE__ */ s.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
2197
2278
  }
2198
2279
  );
2199
2280
  }
2200
- function Bo() {
2201
- return /* @__PURE__ */ a.jsx(
2281
+ function Go() {
2282
+ return /* @__PURE__ */ s.jsx(
2202
2283
  "svg",
2203
2284
  {
2204
2285
  xmlns: "http://www.w3.org/2000/svg",
2205
2286
  viewBox: "0 0 24 24",
2206
2287
  fill: "currentColor",
2207
- children: /* @__PURE__ */ a.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
2288
+ children: /* @__PURE__ */ s.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
2208
2289
  }
2209
2290
  );
2210
2291
  }
2211
- const zo = "_volumeContainer_4d6jg_1", qo = "_volumeSlider_4d6jg_8", Et = {
2212
- volumeContainer: zo,
2213
- volumeSlider: qo
2214
- }, Ct = "volume";
2215
- function sn() {
2216
- const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), s = (i) => {
2217
- e(i[0]), n(Ct);
2218
- }, c = () => {
2219
- o(Ct);
2292
+ const Jo = "_volumeContainer_4d6jg_1", Qo = "_volumeSlider_4d6jg_8", Et = {
2293
+ volumeContainer: Jo,
2294
+ volumeSlider: Qo
2295
+ }, Rt = "volume";
2296
+ function an() {
2297
+ const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), a = (i) => {
2298
+ e(i[0]), n(Rt);
2299
+ }, l = () => {
2300
+ o(Rt);
2220
2301
  }, u = () => e(t ? 0 : 100);
2221
- return /* @__PURE__ */ a.jsxs("div", { className: Et.volumeContainer, children: [
2222
- /* @__PURE__ */ a.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx($o, {}) : /* @__PURE__ */ a.jsx(Uo, {}) : /* @__PURE__ */ a.jsx(Bo, {}) }),
2223
- /* @__PURE__ */ a.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ a.jsx(
2224
- Ne,
2302
+ 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, {}) }),
2304
+ /* @__PURE__ */ s.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ s.jsx(
2305
+ Ae,
2225
2306
  {
2226
2307
  value: [t],
2227
- onValueChange: s,
2228
- onValueCommit: c
2308
+ onValueChange: a,
2309
+ onValueCommit: l
2229
2310
  }
2230
2311
  ) })
2231
2312
  ] });
2232
2313
  }
2233
- function li(e) {
2234
- return /* @__PURE__ */ a.jsx(jr, { children: /* @__PURE__ */ a.jsx(Wo, P({}, e)) });
2314
+ function vi(e) {
2315
+ return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ei, L({}, e)) });
2235
2316
  }
2236
- function Wo({ url: e, messages: t, onEvent: n }) {
2237
- const o = f((s) => s.containerRef);
2238
- return /* @__PURE__ */ a.jsxs(
2317
+ function ei({ url: e, messages: t, onEvent: n }) {
2318
+ const o = f((a) => a.containerRef);
2319
+ return /* @__PURE__ */ s.jsxs(
2239
2320
  "div",
2240
2321
  {
2241
2322
  ref: o,
2242
- className: K.playerContainer,
2323
+ className: B.playerContainer,
2243
2324
  children: [
2244
- /* @__PURE__ */ a.jsxs(
2245
- xr,
2325
+ /* @__PURE__ */ s.jsxs(
2326
+ Cr,
2246
2327
  {
2247
2328
  url: e,
2248
2329
  messages: {
@@ -2250,8 +2331,8 @@ function Wo({ url: e, messages: t, onEvent: n }) {
2250
2331
  eventStartingSoon: t == null ? void 0 : t.eventStartingSoon
2251
2332
  },
2252
2333
  children: [
2253
- /* @__PURE__ */ a.jsx(
2254
- Fr,
2334
+ /* @__PURE__ */ s.jsx(
2335
+ Mr,
2255
2336
  {
2256
2337
  url: e,
2257
2338
  messages: {
@@ -2259,32 +2340,33 @@ function Wo({ url: e, messages: t, onEvent: n }) {
2259
2340
  }
2260
2341
  }
2261
2342
  ),
2262
- /* @__PURE__ */ a.jsx(Jt, {}),
2263
- /* @__PURE__ */ a.jsx(tn, {}),
2264
- /* @__PURE__ */ a.jsxs(en, { children: [
2265
- /* @__PURE__ */ a.jsx(zr, {}),
2266
- /* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
2267
- /* @__PURE__ */ a.jsx(ao, {}),
2268
- /* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
2269
- /* @__PURE__ */ a.jsxs(
2343
+ /* @__PURE__ */ s.jsx(Qt, {}),
2344
+ /* @__PURE__ */ s.jsx(nn, {}),
2345
+ /* @__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, {}) }) }) }),
2348
+ /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2349
+ /* @__PURE__ */ s.jsx(co, {}),
2350
+ /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2351
+ /* @__PURE__ */ s.jsxs(
2270
2352
  "div",
2271
2353
  {
2272
- className: `${K.controlsSection} ${K.controlsSectionStart}`,
2354
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2273
2355
  children: [
2274
- /* @__PURE__ */ a.jsx(Gr, {}),
2275
- /* @__PURE__ */ a.jsx(co, {}),
2276
- /* @__PURE__ */ a.jsx(sn, {})
2356
+ /* @__PURE__ */ s.jsx(Qr, {}),
2357
+ /* @__PURE__ */ s.jsx(fo, {}),
2358
+ /* @__PURE__ */ s.jsx(an, {})
2277
2359
  ]
2278
2360
  }
2279
2361
  ),
2280
- /* @__PURE__ */ a.jsxs(
2362
+ /* @__PURE__ */ s.jsxs(
2281
2363
  "div",
2282
2364
  {
2283
- className: `${K.controlsSection} ${K.controlsSectionEnd}`,
2365
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2284
2366
  children: [
2285
- /* @__PURE__ */ a.jsx(Xr, { message: t == null ? void 0 : t.live }),
2286
- /* @__PURE__ */ a.jsx(on, {}),
2287
- /* @__PURE__ */ a.jsx(Qt, {})
2367
+ /* @__PURE__ */ s.jsx(Jr, { message: t == null ? void 0 : t.live }),
2368
+ /* @__PURE__ */ s.jsx(sn, {}),
2369
+ /* @__PURE__ */ s.jsx(en, {})
2288
2370
  ]
2289
2371
  }
2290
2372
  )
@@ -2294,184 +2376,185 @@ function Wo({ url: e, messages: t, onEvent: n }) {
2294
2376
  ]
2295
2377
  }
2296
2378
  ),
2297
- /* @__PURE__ */ a.jsx(Pr, {}),
2298
- n && /* @__PURE__ */ a.jsx(Lr, { callback: n })
2379
+ /* @__PURE__ */ s.jsx(Pr, {}),
2380
+ /* @__PURE__ */ s.jsx(Nr, { url: e }),
2381
+ n && /* @__PURE__ */ s.jsx(Lr, { callback: n })
2299
2382
  ]
2300
2383
  }
2301
2384
  );
2302
2385
  }
2303
- function Zo() {
2304
- const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), s = f((u) => u.duration), c = f((u) => u.seek);
2305
- return /* @__PURE__ */ a.jsx(
2306
- Yt,
2386
+ function ti() {
2387
+ 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
+ return /* @__PURE__ */ s.jsx(
2389
+ Xt,
2307
2390
  {
2308
2391
  onClick: () => {
2309
2392
  e ? t() : n();
2310
2393
  },
2311
2394
  onBackwardSeek: (u) => {
2312
2395
  const i = Math.max(0, o - u);
2313
- c(i);
2396
+ l(i);
2314
2397
  },
2315
2398
  onForwardSeek: (u) => {
2316
- const i = Math.min(o + u, s);
2317
- c(i);
2399
+ const i = Math.min(o + u, a);
2400
+ l(i);
2318
2401
  },
2319
2402
  maxBackwardTime: Math.floor(o),
2320
- maxForwardTime: Math.floor(s - o)
2403
+ maxForwardTime: Math.floor(a - o)
2321
2404
  }
2322
2405
  );
2323
2406
  }
2324
- function Ko() {
2325
- const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), o = () => {
2407
+ function ni() {
2408
+ const e = f((a) => a.isPlaying), t = f((a) => a.pause), n = f((a) => a.play), o = () => {
2326
2409
  e ? t() : n();
2327
2410
  };
2328
- return /* @__PURE__ */ a.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
2329
- }
2330
- const Rt = "vod-player-progress-bar";
2331
- function Yo() {
2332
- const e = O(null), t = O(null), [n, o] = X(!1), [s, c] = X(-1), [u, i] = X(-1), l = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), _ = parseFloat(
2333
- (d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
2334
- ), j = (k) => {
2335
- i(d * (k[0] / 100)), y(Rt);
2336
- }, S = () => {
2337
- u !== -1 && (g(u), i(-1), v(Rt));
2338
- }, L = () => o(!0), M = () => o(!1), R = B(
2411
+ return /* @__PURE__ */ s.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
2412
+ }
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(
2416
+ (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(
2339
2422
  (k) => {
2340
- const T = e.current, I = t.current;
2341
- if (T && I) {
2342
- const p = Fe(T), H = Fe(I), G = (k.pageX || k.clientX) - p.left, W = G / p.width;
2343
- if (W < 0) return;
2344
- let V = G - H.width / 2;
2345
- V < 0 && (V = 0), V > p.width - H.width && (V = -1), I.style.left = V > -1 ? `${V}px` : "auto", I.style.right = V > -1 ? "auto" : "0px", c(W * d);
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;
2427
+ 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);
2346
2429
  }
2347
- L();
2430
+ E();
2348
2431
  },
2349
2432
  [d]
2350
2433
  );
2351
- return /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
2352
- /* @__PURE__ */ a.jsx(
2353
- Ne,
2434
+ return /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
2435
+ /* @__PURE__ */ s.jsx(
2436
+ Ae,
2354
2437
  {
2355
2438
  ref: e,
2356
- value: [_],
2357
- onPointerLeave: M,
2358
- onPointerDown: M,
2359
- onPointerMove: R,
2360
- onValueChange: j,
2361
- onValueCommit: S,
2439
+ value: [x],
2440
+ onPointerLeave: N,
2441
+ onPointerDown: N,
2442
+ onPointerMove: S,
2443
+ onValueChange: P,
2444
+ onValueCommit: b,
2362
2445
  step: 0.1
2363
2446
  }
2364
2447
  ),
2365
- /* @__PURE__ */ a.jsx(
2448
+ /* @__PURE__ */ s.jsx(
2366
2449
  "div",
2367
2450
  {
2368
2451
  ref: t,
2369
2452
  className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
2370
- children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: _e(s) })
2453
+ children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: xe(a) })
2371
2454
  }
2372
2455
  )
2373
2456
  ] });
2374
2457
  }
2375
- const Xo = "_remainingTimeContainer_1yyhb_1", Go = "_remainingTime_1yyhb_1", Jo = "_remainingSeparator_1yyhb_17", De = {
2376
- remainingTimeContainer: Xo,
2377
- remainingTime: Go,
2378
- remainingSeparator: Jo
2458
+ const oi = "_remainingTimeContainer_1yyhb_1", ii = "_remainingTime_1yyhb_1", si = "_remainingSeparator_1yyhb_17", Fe = {
2459
+ remainingTimeContainer: oi,
2460
+ remainingTime: ii,
2461
+ remainingSeparator: si
2379
2462
  };
2380
- function Qo() {
2463
+ function ai() {
2381
2464
  const e = f((n) => n.currentTime), t = f((n) => n.duration);
2382
- return /* @__PURE__ */ a.jsxs("div", { className: De.remainingTimeContainer, children: [
2383
- /* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(e) }),
2384
- /* @__PURE__ */ a.jsx("p", { className: De.remainingSeparator }),
2385
- /* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(t) })
2465
+ return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
2466
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(e) }),
2467
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingSeparator }),
2468
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(t) })
2386
2469
  ] });
2387
2470
  }
2388
- function ei({ callback: e }) {
2471
+ function li({ callback: e }) {
2389
2472
  const t = f((n) => n.eventEmitter);
2390
- return N(() => {
2473
+ return F(() => {
2391
2474
  const n = (o) => e("timeUpdate", o);
2392
2475
  return t.on("timeUpdate", n), () => {
2393
2476
  t.off("timeUpdate", n);
2394
2477
  };
2395
- }, [e, t]), /* @__PURE__ */ a.jsx(Bt, { callback: e });
2478
+ }, [e, t]), /* @__PURE__ */ s.jsx(zt, { callback: e });
2396
2479
  }
2397
- function ti() {
2398
- const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), s = f((i) => i.play), c = f((i) => i.seek), u = B(
2480
+ function ci() {
2481
+ 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(
2399
2482
  (i) => {
2400
- let l = !1;
2483
+ let c = !1;
2401
2484
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
2402
2485
  switch (i.code) {
2403
2486
  case "ArrowLeft":
2404
- c(e - 10 >= 0 ? e - 10 : 0), l = !0;
2487
+ l(e - 10 >= 0 ? e - 10 : 0), c = !0;
2405
2488
  break;
2406
2489
  case "ArrowRight":
2407
- c(e + 10 < t ? e + 10 : t), l = !0;
2490
+ l(e + 10 < t ? e + 10 : t), c = !0;
2408
2491
  break;
2409
2492
  case "Space":
2410
- n ? o() : s(), l = !0;
2493
+ n ? o() : a(), c = !0;
2411
2494
  break;
2412
2495
  }
2413
- l && i.preventDefault();
2496
+ c && i.preventDefault();
2414
2497
  }
2415
2498
  },
2416
- [e, t, n, o, s, c]
2499
+ [e, t, n, o, a, l]
2417
2500
  );
2418
- return N(() => (document.addEventListener("keydown", u), () => {
2501
+ return F(() => (document.addEventListener("keydown", u), () => {
2419
2502
  document.removeEventListener("keydown", u);
2420
- }), [u]), /* @__PURE__ */ a.jsx(Wt, {});
2503
+ }), [u]), /* @__PURE__ */ s.jsx(Zt, {});
2421
2504
  }
2422
- function ci(e) {
2423
- return /* @__PURE__ */ a.jsx(Zt, { children: /* @__PURE__ */ a.jsx(ni, P({}, e)) });
2505
+ function yi(e) {
2506
+ return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(ui, L({}, e)) });
2424
2507
  }
2425
- function ni({ url: e, messages: t, onEvent: n, startTime: o }) {
2426
- const s = f((u) => u.setStartTime), c = f((u) => u.containerRef);
2427
- return N(() => {
2428
- o && s(o);
2429
- }, [o, s]), /* @__PURE__ */ a.jsxs(
2508
+ function ui({ url: e, messages: t, onEvent: n, startTime: o }) {
2509
+ const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
2510
+ return F(() => {
2511
+ o && a(o);
2512
+ }, [o, a]), /* @__PURE__ */ s.jsxs(
2430
2513
  "div",
2431
2514
  {
2432
- ref: c,
2433
- className: K.playerContainer,
2515
+ ref: l,
2516
+ className: B.playerContainer,
2434
2517
  children: [
2435
- /* @__PURE__ */ a.jsx(Kt, { url: e, isLive: !1, messages: t }),
2436
- /* @__PURE__ */ a.jsx(Jt, {}),
2437
- /* @__PURE__ */ a.jsx(tn, {}),
2438
- /* @__PURE__ */ a.jsxs(en, { children: [
2439
- /* @__PURE__ */ a.jsx(Zo, {}),
2440
- /* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
2441
- /* @__PURE__ */ a.jsx(Yo, {}),
2442
- /* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
2443
- /* @__PURE__ */ a.jsxs(
2518
+ /* @__PURE__ */ s.jsx(Yt, { url: e, isLive: !1, messages: t }),
2519
+ /* @__PURE__ */ s.jsx(Qt, {}),
2520
+ /* @__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(
2444
2527
  "div",
2445
2528
  {
2446
- className: `${K.controlsSection} ${K.controlsSectionStart}`,
2529
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2447
2530
  children: [
2448
- /* @__PURE__ */ a.jsx(Ko, {}),
2449
- /* @__PURE__ */ a.jsx(sn, {}),
2450
- /* @__PURE__ */ a.jsx(Qo, {})
2531
+ /* @__PURE__ */ s.jsx(ni, {}),
2532
+ /* @__PURE__ */ s.jsx(an, {}),
2533
+ /* @__PURE__ */ s.jsx(ai, {})
2451
2534
  ]
2452
2535
  }
2453
2536
  ),
2454
- /* @__PURE__ */ a.jsxs(
2537
+ /* @__PURE__ */ s.jsxs(
2455
2538
  "div",
2456
2539
  {
2457
- className: `${K.controlsSection} ${K.controlsSectionEnd}`,
2540
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2458
2541
  children: [
2459
- /* @__PURE__ */ a.jsx(on, {}),
2460
- /* @__PURE__ */ a.jsx(Qt, {})
2542
+ /* @__PURE__ */ s.jsx(sn, {}),
2543
+ /* @__PURE__ */ s.jsx(en, {})
2461
2544
  ]
2462
2545
  }
2463
2546
  )
2464
2547
  ] })
2465
2548
  ] }) })
2466
2549
  ] }),
2467
- /* @__PURE__ */ a.jsx(ti, {}),
2468
- n && /* @__PURE__ */ a.jsx(ei, { callback: n })
2550
+ /* @__PURE__ */ s.jsx(ci, {}),
2551
+ n && /* @__PURE__ */ s.jsx(li, { callback: n })
2469
2552
  ]
2470
2553
  }
2471
2554
  );
2472
2555
  }
2473
2556
  export {
2474
- li as LivePlayer,
2475
- ci as VodPlayer
2557
+ vi as LivePlayer,
2558
+ yi as VodPlayer
2476
2559
  };
2477
2560
  //# sourceMappingURL=react-video-player.es.js.map