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