@halibegic/react-video-player 0.0.48 → 0.0.49
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.
|
@@ -24,7 +24,7 @@ import { create as Lt, useStore as It } from "zustand";
|
|
|
24
24
|
import Hn from "mitt";
|
|
25
25
|
import re from "hls.js";
|
|
26
26
|
import * as je from "@radix-ui/react-slider";
|
|
27
|
-
import * as
|
|
27
|
+
import * as _e from "@radix-ui/react-popover";
|
|
28
28
|
import * as Pe from "@radix-ui/react-scroll-area";
|
|
29
29
|
function kt(e) {
|
|
30
30
|
var t = this.constructor;
|
|
@@ -75,11 +75,11 @@ function Dt(e) {
|
|
|
75
75
|
u(i, a[i]);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Mt(e, t) {
|
|
79
79
|
this.name = "AggregateError", this.errors = e, this.message = t || "";
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
function
|
|
81
|
+
Mt.prototype = Error.prototype;
|
|
82
|
+
function Ft(e) {
|
|
83
83
|
var t = this;
|
|
84
84
|
return new t(function(n, o) {
|
|
85
85
|
if (!(e && typeof e.length != "undefined"))
|
|
@@ -90,7 +90,7 @@ function Mt(e) {
|
|
|
90
90
|
try {
|
|
91
91
|
t.resolve(a[u]).then(n).catch(function(i) {
|
|
92
92
|
l.push(i), l.length === a.length && o(
|
|
93
|
-
new
|
|
93
|
+
new Mt(
|
|
94
94
|
l,
|
|
95
95
|
"All promises were rejected"
|
|
96
96
|
)
|
|
@@ -112,8 +112,8 @@ function Bn(e, t) {
|
|
|
112
112
|
e.apply(t, arguments);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
function
|
|
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,7 +125,7 @@ function Nt(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
131
|
(e._state === 1 ? Ke : xe)(t.promise, e._value);
|
|
@@ -147,7 +147,7 @@ function Ke(e, t) {
|
|
|
147
147
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
148
148
|
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
149
149
|
var n = t.then;
|
|
150
|
-
if (t instanceof
|
|
150
|
+
if (t instanceof F) {
|
|
151
151
|
e._state = 3, e._value = t, Ye(e);
|
|
152
152
|
return;
|
|
153
153
|
} else if (typeof n == "function") {
|
|
@@ -164,8 +164,8 @@ function xe(e, t) {
|
|
|
164
164
|
e._state = 2, e._value = t, Ye(e);
|
|
165
165
|
}
|
|
166
166
|
function Ye(e) {
|
|
167
|
-
e._state === 2 && e._deferreds.length === 0 &&
|
|
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
|
Nt(e, e._deferreds[t]);
|
|
@@ -190,16 +190,16 @@ function At(e, t) {
|
|
|
190
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(Un);
|
|
198
198
|
return Nt(this, new zn(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 (!Vt(e))
|
|
204
204
|
return n(new TypeError("Promise.all accepts an array"));
|
|
205
205
|
var o = Array.prototype.slice.call(e);
|
|
@@ -229,33 +229,33 @@ M.all = function(e) {
|
|
|
229
229
|
l(u, o[u]);
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return e && typeof e == "object" && e.constructor ===
|
|
232
|
+
F.any = Ft;
|
|
233
|
+
F.allSettled = Dt;
|
|
234
|
+
F.resolve = function(e) {
|
|
235
|
+
return e && typeof e == "object" && e.constructor === F ? e : new F(function(t) {
|
|
236
236
|
t(e);
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
|
-
|
|
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 (!Vt(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
|
$n(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 = Ft));
|
|
271
271
|
var Le = { exports: {} }, ge = {};
|
|
272
272
|
var gt;
|
|
273
273
|
function Wn() {
|
|
@@ -287,11 +287,11 @@ var we = {};
|
|
|
287
287
|
var wt;
|
|
288
288
|
function Zn() {
|
|
289
289
|
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
290
|
-
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), k = Symbol.iterator,
|
|
290
|
+
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), k = Symbol.iterator, T = "@@iterator";
|
|
291
291
|
function S(r) {
|
|
292
292
|
if (r === null || typeof r != "object")
|
|
293
293
|
return null;
|
|
294
|
-
var h = k && r[k] || r[
|
|
294
|
+
var h = k && r[k] || r[T];
|
|
295
295
|
return typeof h == "function" ? h : null;
|
|
296
296
|
}
|
|
297
297
|
var V = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -312,10 +312,10 @@ function Zn() {
|
|
|
312
312
|
b.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, b);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
var x = !1,
|
|
315
|
+
var x = !1, M = !1, p = !1, U = !1, Y = !1, z;
|
|
316
316
|
z = Symbol.for("react.module.reference");
|
|
317
317
|
function O(r) {
|
|
318
|
-
return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || Y || r === a || r === d || r === v || U || r === P || x ||
|
|
318
|
+
return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || Y || r === a || r === d || r === v || U || r === P || x || M || p || typeof r == "object" && r !== null && (r.$$typeof === g || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
|
|
319
319
|
// types supported by any Flight configuration anywhere since
|
|
320
320
|
// we don't know which Flight build this will end up being used
|
|
321
321
|
// with.
|
|
@@ -369,7 +369,7 @@ function Zn() {
|
|
|
369
369
|
var E = r, b = E._payload, C = E._init;
|
|
370
370
|
try {
|
|
371
371
|
return K(C(b));
|
|
372
|
-
} catch (
|
|
372
|
+
} catch (_) {
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -505,17 +505,17 @@ function Zn() {
|
|
|
505
505
|
}
|
|
506
506
|
} catch (J) {
|
|
507
507
|
if (J && w && typeof J.stack == "string") {
|
|
508
|
-
for (var
|
|
508
|
+
for (var _ = J.stack.split(`
|
|
509
509
|
`), X = w.stack.split(`
|
|
510
|
-
`), H =
|
|
510
|
+
`), H = _.length - 1, $ = X.length - 1; H >= 1 && $ >= 0 && _[H] !== X[$]; )
|
|
511
511
|
$--;
|
|
512
512
|
for (; H >= 1 && $ >= 0; H--, $--)
|
|
513
|
-
if (
|
|
513
|
+
if (_[H] !== X[$]) {
|
|
514
514
|
if (H !== 1 || $ !== 1)
|
|
515
515
|
do
|
|
516
|
-
if (H--, $--, $ < 0 ||
|
|
516
|
+
if (H--, $--, $ < 0 || _[H] !== X[$]) {
|
|
517
517
|
var ee = `
|
|
518
|
-
` +
|
|
518
|
+
` + _[H].replace(" at new ", " at ");
|
|
519
519
|
return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, ee), ee;
|
|
520
520
|
}
|
|
521
521
|
while (H >= 1 && $ >= 0);
|
|
@@ -577,17 +577,17 @@ function Zn() {
|
|
|
577
577
|
var b = Function.call.bind(ye);
|
|
578
578
|
for (var C in r)
|
|
579
579
|
if (b(r, C)) {
|
|
580
|
-
var
|
|
580
|
+
var _ = void 0;
|
|
581
581
|
try {
|
|
582
582
|
if (typeof r[C] != "function") {
|
|
583
583
|
var X = 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 X.name = "Invariant Violation", X;
|
|
585
585
|
}
|
|
586
|
-
|
|
586
|
+
_ = r[C](h, C, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
587
587
|
} catch (H) {
|
|
588
|
-
|
|
588
|
+
_ = H;
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
_ && !(_ 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 _), be(null)), _ instanceof Error && !(_.message in tt) && (tt[_.message] = !0, be(E), R("Failed %s type: %s", m, _.message), be(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
@@ -637,10 +637,10 @@ function Zn() {
|
|
|
637
637
|
}
|
|
638
638
|
return r.key !== void 0;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Tn(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
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));
|
|
@@ -663,7 +663,7 @@ function Zn() {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
var En = function(r, h, m, w, E, b, C) {
|
|
666
|
-
var
|
|
666
|
+
var _ = {
|
|
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
|
|
@@ -674,27 +674,27 @@ function Zn() {
|
|
|
674
674
|
// Record the component responsible for creating this element.
|
|
675
675
|
_owner: b
|
|
676
676
|
};
|
|
677
|
-
return
|
|
677
|
+
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
678
678
|
configurable: !1,
|
|
679
679
|
enumerable: !1,
|
|
680
680
|
writable: !0,
|
|
681
681
|
value: !1
|
|
682
|
-
}), Object.defineProperty(
|
|
682
|
+
}), Object.defineProperty(_, "_self", {
|
|
683
683
|
configurable: !1,
|
|
684
684
|
enumerable: !1,
|
|
685
685
|
writable: !1,
|
|
686
686
|
value: w
|
|
687
|
-
}), Object.defineProperty(
|
|
687
|
+
}), Object.defineProperty(_, "_source", {
|
|
688
688
|
configurable: !1,
|
|
689
689
|
enumerable: !1,
|
|
690
690
|
writable: !1,
|
|
691
691
|
value: E
|
|
692
|
-
}), Object.freeze && (Object.freeze(
|
|
692
|
+
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
693
693
|
};
|
|
694
694
|
function Rn(r, h, m, w, E) {
|
|
695
695
|
{
|
|
696
|
-
var b, C = {},
|
|
697
|
-
m !== void 0 && (ot(m),
|
|
696
|
+
var b, C = {}, _ = null, X = null;
|
|
697
|
+
m !== void 0 && (ot(m), _ = "" + m), xn(h) && (ot(h.key), _ = "" + h.key), wn(h) && (X = h.ref, Tn(h, E));
|
|
698
698
|
for (b in h)
|
|
699
699
|
ye.call(h, b) && !gn.hasOwnProperty(b) && (C[b] = h[b]);
|
|
700
700
|
if (r && r.defaultProps) {
|
|
@@ -702,11 +702,11 @@ function Zn() {
|
|
|
702
702
|
for (b in H)
|
|
703
703
|
C[b] === void 0 && (C[b] = H[b]);
|
|
704
704
|
}
|
|
705
|
-
if (
|
|
705
|
+
if (_ || X) {
|
|
706
706
|
var $ = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
707
|
-
|
|
707
|
+
_ && _n(C, $), X && Cn(C, $);
|
|
708
708
|
}
|
|
709
|
-
return En(r,
|
|
709
|
+
return En(r, _, X, E, w, it.current, C);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
var Be = V.ReactCurrentOwner, lt = V.ReactDebugCurrentFrame;
|
|
@@ -824,12 +824,12 @@ Check the top-level render call using <` + m + ">.");
|
|
|
824
824
|
{
|
|
825
825
|
var C = O(r);
|
|
826
826
|
if (!C) {
|
|
827
|
-
var
|
|
828
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (
|
|
827
|
+
var _ = "";
|
|
828
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (_ += " 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
829
|
var X = bn();
|
|
830
|
-
X ?
|
|
830
|
+
X ? _ += X : _ += 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") + " />",
|
|
832
|
+
r === null ? H = "null" : Ue(r) ? H = "array" : r !== void 0 && r.$$typeof === t ? (H = "<" + (K(r.type) || "Unknown") + " />", _ = " 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, _);
|
|
833
833
|
}
|
|
834
834
|
var $ = Rn(r, h, m, E, b);
|
|
835
835
|
if ($ == null)
|
|
@@ -848,17 +848,17 @@ Check the top-level render call using <` + m + ">.");
|
|
|
848
848
|
ft(ee, r);
|
|
849
849
|
}
|
|
850
850
|
if (ye.call(h, "key")) {
|
|
851
|
-
var ce = K(r), J = Object.keys(h).filter(function(
|
|
852
|
-
return
|
|
851
|
+
var ce = K(r), J = Object.keys(h).filter(function(Fn) {
|
|
852
|
+
return Fn !== "key";
|
|
853
853
|
}), Ze = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
854
854
|
if (!ht[ce + Ze]) {
|
|
855
|
-
var
|
|
855
|
+
var Mn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
856
856
|
R(`A props object containing a "key" prop is being spread into JSX:
|
|
857
857
|
let props = %s;
|
|
858
858
|
<%s {...props} />
|
|
859
859
|
React keys must be passed directly to JSX without using spread:
|
|
860
860
|
let props = %s;
|
|
861
|
-
<%s key={someKey} {...props} />`, Ze, ce,
|
|
861
|
+
<%s key={someKey} {...props} />`, Ze, ce, Mn, ce), ht[ce + Ze] = !0;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
return r === o ? Pn($) : jn($), $;
|
|
@@ -937,7 +937,7 @@ function tr(e, t, n) {
|
|
|
937
937
|
function nr(e) {
|
|
938
938
|
return tr(e, "milliseconds", "seconds");
|
|
939
939
|
}
|
|
940
|
-
const
|
|
940
|
+
const Te = (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)}`;
|
|
@@ -970,11 +970,11 @@ function rr(e, t) {
|
|
|
970
970
|
), k = parseInt(
|
|
971
971
|
((u = d.find((S) => S.type === "minute")) == null ? void 0 : u.value) || "0",
|
|
972
972
|
10
|
|
973
|
-
),
|
|
973
|
+
), T = parseInt(
|
|
974
974
|
((i = d.find((S) => S.type === "second")) == null ? void 0 : i.value) || "0",
|
|
975
975
|
10
|
|
976
976
|
);
|
|
977
|
-
return new Date(v, y, g, P, k,
|
|
977
|
+
return new Date(v, y, g, P, k, T);
|
|
978
978
|
} catch (c) {
|
|
979
979
|
return console.warn(
|
|
980
980
|
`Failed to convert date to timezone ${t}, returning original date:`,
|
|
@@ -1232,7 +1232,7 @@ function xr(e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
return null;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function Tr(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 Cr(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 = Tr(
|
|
1275
1275
|
o,
|
|
1276
1276
|
t
|
|
1277
1277
|
);
|
|
@@ -1332,7 +1332,7 @@ function br({ startDate: e, title: t, message: n }) {
|
|
|
1332
1332
|
function zt({ callback: e }) {
|
|
1333
1333
|
const t = f((n) => n.eventEmitter);
|
|
1334
1334
|
return D(() => {
|
|
1335
|
-
const n = () => e("play", void 0), o = () => e("pause", void 0), a = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (
|
|
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 = (T) => e("volumeChange", T), c = (T) => e("fullscreenChange", T), d = (T) => e("qualityChange", T), v = (T) => e("loadedMetadata", T), y = () => e("loadStart", void 0), g = () => e("playing", void 0), P = () => e("waiting", void 0), k = () => e("error", void 0);
|
|
1336
1336
|
return t.on("play", n), t.on("pause", o), t.on("ended", a), t.on("seeking", l), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", c), t.on("qualityChange", d), t.on("loadedMetadata", v), t.on("loadStart", y), t.on("playing", g), t.on("waiting", P), t.on("error", k), () => {
|
|
1337
1337
|
t.off("play", n), t.off("pause", o), t.off("ended", a), t.off("seeking", l), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", c), t.off("qualityChange", d), t.off("loadedMetadata", v), t.off("loadStart", y), t.off("playing", g), t.off("waiting", P), t.off("error", k);
|
|
1338
1338
|
};
|
|
@@ -1456,19 +1456,19 @@ function Dr({ url: e, isLive: t, messages: n }) {
|
|
|
1456
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, P = 1e4, k = W(
|
|
1457
1457
|
(x) => {
|
|
1458
1458
|
if (o.current && (o.current.nextLevel = x, u(null), l)) {
|
|
1459
|
-
const
|
|
1459
|
+
const M = l.map((p) => he(j({}, p), {
|
|
1460
1460
|
selected: p.value === x
|
|
1461
1461
|
}));
|
|
1462
|
-
i(
|
|
1462
|
+
i(M);
|
|
1463
1463
|
}
|
|
1464
1464
|
},
|
|
1465
1465
|
[l, u, i, o]
|
|
1466
|
-
),
|
|
1466
|
+
), T = W(() => {
|
|
1467
1467
|
o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
|
|
1468
1468
|
}, [e]), S = W(() => {
|
|
1469
1469
|
if (!o.current) return;
|
|
1470
1470
|
console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), v.current = 0;
|
|
1471
|
-
const x = o.current.levels,
|
|
1471
|
+
const x = o.current.levels, M = o.current.currentLevel, p = o.current.autoLevelEnabled;
|
|
1472
1472
|
i(
|
|
1473
1473
|
Pr({
|
|
1474
1474
|
levels: x.map((U, Y) => {
|
|
@@ -1480,19 +1480,19 @@ function Dr({ url: e, isLive: t, messages: n }) {
|
|
|
1480
1480
|
width: I
|
|
1481
1481
|
};
|
|
1482
1482
|
}),
|
|
1483
|
-
level:
|
|
1483
|
+
level: M,
|
|
1484
1484
|
isAuto: p
|
|
1485
1485
|
})
|
|
1486
1486
|
);
|
|
1487
1487
|
}, [d, i]), V = W(
|
|
1488
1488
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1489
|
-
(x,
|
|
1489
|
+
(x, M) => {
|
|
1490
1490
|
var p;
|
|
1491
|
-
if (o.current &&
|
|
1492
|
-
switch (
|
|
1491
|
+
if (o.current && M.fatal)
|
|
1492
|
+
switch (M.type) {
|
|
1493
1493
|
case re.ErrorTypes.NETWORK_ERROR:
|
|
1494
1494
|
let U = (p = n == null ? void 0 : n.unableToPlay) != null ? p : "Unable to play the video. Please try again later.", Y = "NETWORK_ERROR";
|
|
1495
|
-
console.log("[Player][HLS] NETWORK_ERROR",
|
|
1495
|
+
console.log("[Player][HLS] NETWORK_ERROR", M), t ? (v.current < g && (y.current && clearTimeout(y.current), v.current += 1, y.current = setTimeout(() => {
|
|
1496
1496
|
if (o.current)
|
|
1497
1497
|
try {
|
|
1498
1498
|
console.log("[Player][HLS] Retrying stream..."), o.current.loadSource(e);
|
|
@@ -1516,26 +1516,26 @@ function Dr({ url: e, isLive: t, messages: n }) {
|
|
|
1516
1516
|
};
|
|
1517
1517
|
or ? (x.backBufferLength = -1, x.enableWorker = !1) : t ? x.backBufferLength = 10 : x.backBufferLength = 60;
|
|
1518
1518
|
try {
|
|
1519
|
-
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(x)), console.log("[Player][HLS] Version", re.version), o.current = new re(x), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED,
|
|
1520
|
-
} catch (
|
|
1521
|
-
throw new Error(`Error initializing Hls: ${
|
|
1519
|
+
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(x)), console.log("[Player][HLS] Version", re.version), o.current = new re(x), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED, T), o.current.on(re.Events.MANIFEST_LOADED, S), o.current.on(re.Events.ERROR, V);
|
|
1520
|
+
} catch (M) {
|
|
1521
|
+
throw new Error(`Error initializing Hls: ${M}`);
|
|
1522
1522
|
}
|
|
1523
1523
|
}, [
|
|
1524
1524
|
S,
|
|
1525
|
-
|
|
1525
|
+
T,
|
|
1526
1526
|
V,
|
|
1527
1527
|
t,
|
|
1528
1528
|
c,
|
|
1529
1529
|
e
|
|
1530
1530
|
]), L = W(() => {
|
|
1531
|
-
o.current && (o.current.off(re.Events.MEDIA_ATTACHED,
|
|
1532
|
-
}, [S,
|
|
1531
|
+
o.current && (o.current.off(re.Events.MEDIA_ATTACHED, T), o.current.off(re.Events.MANIFEST_LOADED, S), o.current.off(re.Events.ERROR, V), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), v.current = 0;
|
|
1532
|
+
}, [S, T, V]);
|
|
1533
1533
|
return D(() => {
|
|
1534
1534
|
a !== null && k(a);
|
|
1535
1535
|
}, [a, k]), D(() => (re.isSupported() && R(), L), [L, R]), null;
|
|
1536
1536
|
}
|
|
1537
|
-
const
|
|
1538
|
-
playerVideo:
|
|
1537
|
+
const Mr = "_playerVideo_wc0sm_1", Fr = {
|
|
1538
|
+
playerVideo: Mr
|
|
1539
1539
|
};
|
|
1540
1540
|
function Yt({
|
|
1541
1541
|
url: e,
|
|
@@ -1543,7 +1543,7 @@ function Yt({
|
|
|
1543
1543
|
isMuted: n = !1,
|
|
1544
1544
|
messages: o = {}
|
|
1545
1545
|
}) {
|
|
1546
|
-
const a = f((p) => p.handleDurationChange), l = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), c = f((p) => p.handlePause), d = f((p) => p.handlePlay), v = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), g = f((p) => p.handleSeeking), P = f((p) => p.handleTimeUpdate), k = f((p) => p.handleWaiting),
|
|
1546
|
+
const a = f((p) => p.handleDurationChange), l = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), c = f((p) => p.handlePause), d = f((p) => p.handlePlay), v = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), g = f((p) => p.handleSeeking), P = f((p) => p.handleTimeUpdate), k = f((p) => p.handleWaiting), T = f((p) => p.handleVolumeChange), S = f((p) => p.handleError), V = f((p) => p.techRef), R = N(null), L = () => t ? {
|
|
1547
1547
|
onTimeUpdate: x
|
|
1548
1548
|
} : {
|
|
1549
1549
|
onDurationChange: a,
|
|
@@ -1552,14 +1552,14 @@ function Yt({
|
|
|
1552
1552
|
onTimeUpdate: x
|
|
1553
1553
|
}, x = () => {
|
|
1554
1554
|
(!R.current || Date.now() - R.current >= 1e3) && (P(), R.current = Date.now());
|
|
1555
|
-
},
|
|
1555
|
+
}, M = L();
|
|
1556
1556
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1557
1557
|
/* @__PURE__ */ s.jsx(Dr, { isLive: t, url: e, messages: o }),
|
|
1558
1558
|
/* @__PURE__ */ s.jsx(
|
|
1559
1559
|
"video",
|
|
1560
1560
|
j({
|
|
1561
1561
|
ref: V,
|
|
1562
|
-
className:
|
|
1562
|
+
className: Fr.playerVideo,
|
|
1563
1563
|
playsInline: !0,
|
|
1564
1564
|
autoPlay: !0,
|
|
1565
1565
|
controls: !1,
|
|
@@ -1574,9 +1574,9 @@ function Yt({
|
|
|
1574
1574
|
onPlay: d,
|
|
1575
1575
|
onPlaying: v,
|
|
1576
1576
|
onWaiting: k,
|
|
1577
|
-
onVolumeChange:
|
|
1577
|
+
onVolumeChange: T,
|
|
1578
1578
|
tabIndex: -1
|
|
1579
|
-
},
|
|
1579
|
+
}, M)
|
|
1580
1580
|
)
|
|
1581
1581
|
] });
|
|
1582
1582
|
}
|
|
@@ -1667,7 +1667,7 @@ function Xt(i) {
|
|
|
1667
1667
|
"maxForwardTime",
|
|
1668
1668
|
"maxBackwardTime"
|
|
1669
1669
|
]);
|
|
1670
|
-
return Or("(
|
|
1670
|
+
return Or("(pointer: coarse)") ? /* @__PURE__ */ s.jsx(
|
|
1671
1671
|
qr,
|
|
1672
1672
|
j({
|
|
1673
1673
|
className: e,
|
|
@@ -1676,15 +1676,15 @@ function Xt(i) {
|
|
|
1676
1676
|
onForwardSeek: n,
|
|
1677
1677
|
onBackwardSeek: o
|
|
1678
1678
|
}, u)
|
|
1679
|
-
);
|
|
1679
|
+
) : /* @__PURE__ */ s.jsx(Zr, j({ className: e, onClick: t }, u));
|
|
1680
1680
|
}
|
|
1681
1681
|
function Zr(o) {
|
|
1682
1682
|
var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
|
|
1683
|
-
const l = N(null), u = f((
|
|
1684
|
-
P() ? (g(), i ? u() : c()) : y(
|
|
1685
|
-
}, y = (
|
|
1683
|
+
const l = N(null), u = f((T) => T.exitFullscreen), i = f((T) => T.isFullscreen), c = f((T) => T.requestFullscreen), d = f((T) => T.resetIdle), v = (T) => {
|
|
1684
|
+
P() ? (g(), i ? u() : c()) : y(T);
|
|
1685
|
+
}, y = (T) => {
|
|
1686
1686
|
l.current = window.setTimeout(() => {
|
|
1687
|
-
t == null || t(
|
|
1687
|
+
t == null || t(T), g();
|
|
1688
1688
|
}, 200);
|
|
1689
1689
|
}, g = () => {
|
|
1690
1690
|
l.current !== null && (window.clearTimeout(l.current), l.current = null);
|
|
@@ -1697,7 +1697,7 @@ function Zr(o) {
|
|
|
1697
1697
|
"button",
|
|
1698
1698
|
j({
|
|
1699
1699
|
onClick: v,
|
|
1700
|
-
|
|
1700
|
+
onMouseMove: k,
|
|
1701
1701
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1702
1702
|
"aria-label": "Player gestures"
|
|
1703
1703
|
}, n)
|
|
@@ -1721,7 +1721,7 @@ function qr(u) {
|
|
|
1721
1721
|
single: null,
|
|
1722
1722
|
indicator: null,
|
|
1723
1723
|
accumulate: null
|
|
1724
|
-
}), v = N(null), y = N(0), g = N(null), [P, k] = G({ visible: !1, direction: null, time: 0 }),
|
|
1724
|
+
}), v = N(null), y = N(0), g = N(null), [P, k] = G({ visible: !1, direction: null, time: 0 }), T = f((p) => p.isIdle), S = f((p) => p.setIsIdle), V = f((p) => p.resetIdle), R = (p, U) => p < U / 2 ? "backward" : "forward", L = (p) => {
|
|
1725
1725
|
if (!v.current) return;
|
|
1726
1726
|
const U = p.changedTouches[0];
|
|
1727
1727
|
if (!U) return;
|
|
@@ -1737,7 +1737,7 @@ function qr(u) {
|
|
|
1737
1737
|
te != null ? te : 1 / 0
|
|
1738
1738
|
), x(Z, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1739
1739
|
const q = y.current;
|
|
1740
|
-
q > 0 && (g.current === "backward" ? a == null || a(q) : o == null || o(q), V()), y.current = 0, g.current = null, c.current = null,
|
|
1740
|
+
q > 0 && (g.current === "backward" ? a == null || a(q) : o == null || o(q), V()), y.current = 0, g.current = null, c.current = null, M(), d.current.accumulate = null;
|
|
1741
1741
|
}, 500), c.current = { time: Y, x: O };
|
|
1742
1742
|
} else {
|
|
1743
1743
|
c.current = { time: Y, x: O }, d.current.single && window.clearTimeout(d.current.single);
|
|
@@ -1745,7 +1745,7 @@ function qr(u) {
|
|
|
1745
1745
|
d.current.single = window.setTimeout(() => {
|
|
1746
1746
|
if (g.current === null) {
|
|
1747
1747
|
d.current.single = null;
|
|
1748
|
-
const q =
|
|
1748
|
+
const q = T;
|
|
1749
1749
|
S(!q), q && V();
|
|
1750
1750
|
}
|
|
1751
1751
|
c.current = null;
|
|
@@ -1753,9 +1753,9 @@ function qr(u) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}, x = (p, U) => {
|
|
1755
1755
|
U !== 0 && (k({ visible: !0, direction: p, time: U }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
|
|
1756
|
-
|
|
1756
|
+
M();
|
|
1757
1757
|
}, 700));
|
|
1758
|
-
},
|
|
1758
|
+
}, M = () => {
|
|
1759
1759
|
k({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
|
|
1760
1760
|
};
|
|
1761
1761
|
return D(() => () => {
|
|
@@ -1776,7 +1776,7 @@ function qr(u) {
|
|
|
1776
1776
|
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${P.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
|
|
1777
1777
|
children: [
|
|
1778
1778
|
P.direction === "backward" ? "-" : "+",
|
|
1779
|
-
|
|
1779
|
+
Te(P.time)
|
|
1780
1780
|
]
|
|
1781
1781
|
}
|
|
1782
1782
|
)
|
|
@@ -1808,13 +1808,13 @@ function Kr() {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
);
|
|
1810
1810
|
}
|
|
1811
|
-
const Yr = "_playerButton_izwqq_1", Xr = "_playerButtonCircle_izwqq_42",
|
|
1811
|
+
const Yr = "_playerButton_izwqq_1", Xr = "_playerButtonCircle_izwqq_42", Tt = {
|
|
1812
1812
|
playerButton: Yr,
|
|
1813
1813
|
playerButtonCircle: Xr
|
|
1814
1814
|
}, le = Ve(
|
|
1815
1815
|
(a, o) => {
|
|
1816
1816
|
var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
|
|
1817
|
-
const u = e === "circle" ?
|
|
1817
|
+
const u = e === "circle" ? Tt.playerButtonCircle : "", i = [Tt.playerButton, u, t].filter(Boolean).join(" ");
|
|
1818
1818
|
return /* @__PURE__ */ s.jsx("button", j({ ref: o, className: i }, n));
|
|
1819
1819
|
}
|
|
1820
1820
|
);
|
|
@@ -1902,7 +1902,7 @@ const no = "_progressSlider_hwzgf_1", ro = "_tipContainer_hwzgf_7", oo = "_tipCo
|
|
|
1902
1902
|
);
|
|
1903
1903
|
});
|
|
1904
1904
|
Ae.displayName = "PlayerSlider";
|
|
1905
|
-
function
|
|
1905
|
+
function Fe(e) {
|
|
1906
1906
|
const t = e.getBoundingClientRect();
|
|
1907
1907
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
1908
1908
|
left: t.left * 100,
|
|
@@ -1913,24 +1913,24 @@ function Me(e) {
|
|
|
1913
1913
|
height: t.height * 100
|
|
1914
1914
|
} : t;
|
|
1915
1915
|
}
|
|
1916
|
-
const
|
|
1916
|
+
const _t = "vod-player-progress-bar";
|
|
1917
1917
|
function fo() {
|
|
1918
|
-
const e = N(null), t = N(null), [n, o] = G(0), [a, l] = G(0), [u, i] = G(!1), [c, d] = G(-1), [v, y] = G(-1), g = A((I) => I.delay), P = A((I) => I.startDate), k = P ? P.getTime() : 0,
|
|
1919
|
-
o(Zt(k, g)), l(Sr(k,
|
|
1920
|
-
}, [g,
|
|
1918
|
+
const e = N(null), t = N(null), [n, o] = G(0), [a, l] = G(0), [u, i] = G(!1), [c, d] = G(-1), [v, y] = G(-1), g = A((I) => I.delay), P = A((I) => I.startDate), k = P ? P.getTime() : 0, T = (/* @__PURE__ */ new Date()).getTime(), S = A((I) => I.setDelay), V = f((I) => I.isPlaying), R = f((I) => I.addIdleLock), L = f((I) => I.removeIdleLock), x = W(() => {
|
|
1919
|
+
o(Zt(k, g)), l(Sr(k, T));
|
|
1920
|
+
}, [g, T, k]), M = parseFloat(
|
|
1921
1921
|
(a ? (v !== -1 ? v : n) / a * 100 : 0).toFixed(1)
|
|
1922
1922
|
), p = (I) => {
|
|
1923
|
-
y(a * (I[0] / 100)), R(
|
|
1923
|
+
y(a * (I[0] / 100)), R(_t);
|
|
1924
1924
|
}, U = () => {
|
|
1925
1925
|
if (v !== -1) {
|
|
1926
1926
|
const I = Wt(k, v);
|
|
1927
|
-
S(I), y(-1), L(
|
|
1927
|
+
S(I), y(-1), L(_t);
|
|
1928
1928
|
}
|
|
1929
1929
|
}, Y = () => i(!0), z = () => i(!1), O = W(
|
|
1930
1930
|
(I) => {
|
|
1931
1931
|
const Q = e.current, K = t.current;
|
|
1932
1932
|
if (Q && K) {
|
|
1933
|
-
const Z =
|
|
1933
|
+
const Z = Fe(Q), oe = Fe(K), ue = (I.pageX || I.clientX) - Z.left, te = ue / Z.width;
|
|
1934
1934
|
if (te < 0) return;
|
|
1935
1935
|
let q = ue - oe.width / 2;
|
|
1936
1936
|
q < 0 && (q = 0), q > Z.width - oe.width && (q = -1), K.style.left = q > -1 ? `${q}px` : "auto", K.style.right = q > -1 ? "auto" : "0px";
|
|
@@ -1948,7 +1948,7 @@ function fo() {
|
|
|
1948
1948
|
Ae,
|
|
1949
1949
|
{
|
|
1950
1950
|
ref: e,
|
|
1951
|
-
value: [
|
|
1951
|
+
value: [M],
|
|
1952
1952
|
onPointerLeave: z,
|
|
1953
1953
|
onPointerDown: z,
|
|
1954
1954
|
onPointerMove: O,
|
|
@@ -1962,7 +1962,7 @@ function fo() {
|
|
|
1962
1962
|
{
|
|
1963
1963
|
ref: t,
|
|
1964
1964
|
className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
1965
|
-
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${
|
|
1965
|
+
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${Te(c)}` })
|
|
1966
1966
|
}
|
|
1967
1967
|
)
|
|
1968
1968
|
] });
|
|
@@ -2034,10 +2034,10 @@ function Qt() {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
);
|
|
2036
2036
|
}
|
|
2037
|
-
const xo = "_playerContainer_146tx_1",
|
|
2037
|
+
const xo = "_playerContainer_146tx_1", To = "_controlsTop_146tx_12", _o = "_controlsBottom_146tx_29", Co = "_controlsContainer_146tx_45", Eo = "_controlsRow_146tx_61", Ro = "_controlsSection_146tx_68", bo = "_controlsSectionStart_146tx_78", So = "_controlsSectionEnd_146tx_82", B = {
|
|
2038
2038
|
playerContainer: xo,
|
|
2039
|
-
controlsTop:
|
|
2040
|
-
controlsBottom:
|
|
2039
|
+
controlsTop: To,
|
|
2040
|
+
controlsBottom: _o,
|
|
2041
2041
|
controlsContainer: Co,
|
|
2042
2042
|
controlsRow: Eo,
|
|
2043
2043
|
controlsSection: Ro,
|
|
@@ -2107,11 +2107,11 @@ function tn({ children: e }) {
|
|
|
2107
2107
|
const v = n && !u, y = `${qe.idleCheckContainer} ${v ? qe.idleCheckContainerIdle : qe.idleCheckContainerActive}`;
|
|
2108
2108
|
return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
|
|
2109
2109
|
}
|
|
2110
|
-
const
|
|
2111
|
-
spinner:
|
|
2110
|
+
const Mo = "_spinner_oo4hi_10", Fo = {
|
|
2111
|
+
spinner: Mo
|
|
2112
2112
|
};
|
|
2113
2113
|
function Vo(e) {
|
|
2114
|
-
return /* @__PURE__ */ s.jsx("div", j({ className:
|
|
2114
|
+
return /* @__PURE__ */ s.jsx("div", j({ className: Fo.spinner }, e));
|
|
2115
2115
|
}
|
|
2116
2116
|
function No(e, t = 500) {
|
|
2117
2117
|
const [n, o] = G(e);
|
|
@@ -2159,10 +2159,10 @@ const Uo = "_dropdownMenuContent_b7j6b_1", Bo = "_dropdownMenuItem_b7j6b_83", zo
|
|
|
2159
2159
|
scrollAreaViewport: Wo,
|
|
2160
2160
|
scrollAreaScrollbar: Zo,
|
|
2161
2161
|
scrollAreaThumb: qo
|
|
2162
|
-
}, Ko =
|
|
2162
|
+
}, Ko = _e.Root, Yo = _e.Trigger, Xo = _e.Portal, rn = Ve((l, a) => {
|
|
2163
2163
|
var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
|
|
2164
2164
|
return /* @__PURE__ */ s.jsx(
|
|
2165
|
-
|
|
2165
|
+
_e.Content,
|
|
2166
2166
|
he(j({
|
|
2167
2167
|
ref: a,
|
|
2168
2168
|
sideOffset: e,
|
|
@@ -2204,7 +2204,7 @@ const on = Ve((a, o) => {
|
|
|
2204
2204
|
}, i = (c) => {
|
|
2205
2205
|
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), t == null || t(c));
|
|
2206
2206
|
};
|
|
2207
|
-
return /* @__PURE__ */ s.jsx(
|
|
2207
|
+
return /* @__PURE__ */ s.jsx(_e.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
2208
2208
|
"div",
|
|
2209
2209
|
j({
|
|
2210
2210
|
ref: o,
|
|
@@ -2295,7 +2295,7 @@ function an() {
|
|
|
2295
2295
|
) })
|
|
2296
2296
|
] });
|
|
2297
2297
|
}
|
|
2298
|
-
const ni = "0.0.
|
|
2298
|
+
const ni = "0.0.49", ln = {
|
|
2299
2299
|
version: ni
|
|
2300
2300
|
};
|
|
2301
2301
|
function wi(e) {
|
|
@@ -2407,16 +2407,16 @@ function si() {
|
|
|
2407
2407
|
(d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
|
|
2408
2408
|
), k = (L) => {
|
|
2409
2409
|
i(d * (L[0] / 100)), y(bt);
|
|
2410
|
-
},
|
|
2410
|
+
}, T = () => {
|
|
2411
2411
|
u !== -1 && (v(u), i(-1), g(bt));
|
|
2412
2412
|
}, S = () => o(!0), V = () => o(!1), R = W(
|
|
2413
2413
|
(L) => {
|
|
2414
|
-
const x = e.current,
|
|
2415
|
-
if (x &&
|
|
2416
|
-
const p =
|
|
2414
|
+
const x = e.current, M = t.current;
|
|
2415
|
+
if (x && M) {
|
|
2416
|
+
const p = Fe(x), U = Fe(M), Y = (L.pageX || L.clientX) - p.left, z = Y / p.width;
|
|
2417
2417
|
if (z < 0) return;
|
|
2418
2418
|
let O = Y - U.width / 2;
|
|
2419
|
-
O < 0 && (O = 0), O > p.width - U.width && (O = -1),
|
|
2419
|
+
O < 0 && (O = 0), O > p.width - U.width && (O = -1), M.style.left = O > -1 ? `${O}px` : "auto", M.style.right = O > -1 ? "auto" : "0px", l(z * d);
|
|
2420
2420
|
}
|
|
2421
2421
|
S();
|
|
2422
2422
|
},
|
|
@@ -2432,7 +2432,7 @@ function si() {
|
|
|
2432
2432
|
onPointerDown: V,
|
|
2433
2433
|
onPointerMove: R,
|
|
2434
2434
|
onValueChange: k,
|
|
2435
|
-
onValueCommit:
|
|
2435
|
+
onValueCommit: T,
|
|
2436
2436
|
step: 0.1
|
|
2437
2437
|
}
|
|
2438
2438
|
),
|
|
@@ -2441,22 +2441,22 @@ function si() {
|
|
|
2441
2441
|
{
|
|
2442
2442
|
ref: t,
|
|
2443
2443
|
className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
2444
|
-
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children:
|
|
2444
|
+
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: Te(a) })
|
|
2445
2445
|
}
|
|
2446
2446
|
)
|
|
2447
2447
|
] });
|
|
2448
2448
|
}
|
|
2449
|
-
const ai = "_remainingTimeContainer_1yyhb_1", li = "_remainingTime_1yyhb_1", ci = "_remainingSeparator_1yyhb_17",
|
|
2449
|
+
const ai = "_remainingTimeContainer_1yyhb_1", li = "_remainingTime_1yyhb_1", ci = "_remainingSeparator_1yyhb_17", Me = {
|
|
2450
2450
|
remainingTimeContainer: ai,
|
|
2451
2451
|
remainingTime: li,
|
|
2452
2452
|
remainingSeparator: ci
|
|
2453
2453
|
};
|
|
2454
2454
|
function ui() {
|
|
2455
2455
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2456
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
2457
|
-
/* @__PURE__ */ s.jsx("p", { className:
|
|
2458
|
-
/* @__PURE__ */ s.jsx("p", { className:
|
|
2459
|
-
/* @__PURE__ */ s.jsx("p", { className:
|
|
2456
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Me.remainingTimeContainer, children: [
|
|
2457
|
+
/* @__PURE__ */ s.jsx("p", { className: Me.remainingTime, children: Te(e) }),
|
|
2458
|
+
/* @__PURE__ */ s.jsx("p", { className: Me.remainingSeparator }),
|
|
2459
|
+
/* @__PURE__ */ s.jsx("p", { className: Me.remainingTime, children: Te(t) })
|
|
2460
2460
|
] });
|
|
2461
2461
|
}
|
|
2462
2462
|
function di({ callback: e }) {
|