@evercam/ui 0.0.55-beta.11 → 0.0.55-beta.13
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.
- package/dist/index.mjs +295 -291
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/EVideoPlayer.vue.d.ts +9 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/style.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1929,14 +1929,14 @@ var Qi = {}, Ji = {}, Zr = {};
|
|
|
1929
1929
|
mode: "rgb",
|
|
1930
1930
|
color: t.default[m].map((k) => k.toString())
|
|
1931
1931
|
};
|
|
1932
|
-
let T = m.replace(n, (k, C, B,
|
|
1932
|
+
let T = m.replace(n, (k, C, B, R, b) => [
|
|
1933
1933
|
"#",
|
|
1934
1934
|
C,
|
|
1935
1935
|
C,
|
|
1936
1936
|
B,
|
|
1937
1937
|
B,
|
|
1938
|
-
|
|
1939
|
-
|
|
1938
|
+
R,
|
|
1939
|
+
R,
|
|
1940
1940
|
b ? b + b : ""
|
|
1941
1941
|
].join("")).match(r);
|
|
1942
1942
|
if (T !== null)
|
|
@@ -2150,7 +2150,7 @@ var es = {}, Qr = {}, ei = {};
|
|
|
2150
2150
|
return C;
|
|
2151
2151
|
},
|
|
2152
2152
|
position: function() {
|
|
2153
|
-
return
|
|
2153
|
+
return R;
|
|
2154
2154
|
},
|
|
2155
2155
|
familyName: function() {
|
|
2156
2156
|
return b;
|
|
@@ -2282,7 +2282,7 @@ var es = {}, Qr = {}, ei = {};
|
|
|
2282
2282
|
"bottom",
|
|
2283
2283
|
"left"
|
|
2284
2284
|
]);
|
|
2285
|
-
function
|
|
2285
|
+
function R(O) {
|
|
2286
2286
|
let V = 0;
|
|
2287
2287
|
return (0, r.splitAtTopLevelOnly)(O, "_").every((M) => (M = c(M), M.startsWith("var(") ? !0 : B.has(M) || y(M) || f(M) ? (V++, !0) : !1)) ? V > 0 : !1;
|
|
2288
2288
|
}
|
|
@@ -2290,7 +2290,7 @@ var es = {}, Qr = {}, ei = {};
|
|
|
2290
2290
|
let V = 0;
|
|
2291
2291
|
return (0, r.splitAtTopLevelOnly)(O, ",").every((M) => (M = c(M), M.startsWith("var(") ? !0 : M.includes(" ") && !/(['"])([^"']+)\1/g.test(M) || /^\d/g.test(M) ? !1 : (V++, !0))) ? V > 0 : !1;
|
|
2292
2292
|
}
|
|
2293
|
-
let
|
|
2293
|
+
let _ = /* @__PURE__ */ new Set([
|
|
2294
2294
|
"serif",
|
|
2295
2295
|
"sans-serif",
|
|
2296
2296
|
"monospace",
|
|
@@ -2306,7 +2306,7 @@ var es = {}, Qr = {}, ei = {};
|
|
|
2306
2306
|
"fangsong"
|
|
2307
2307
|
]);
|
|
2308
2308
|
function P(O) {
|
|
2309
|
-
return
|
|
2309
|
+
return _.has(O);
|
|
2310
2310
|
}
|
|
2311
2311
|
let w = /* @__PURE__ */ new Set([
|
|
2312
2312
|
"xx-small",
|
|
@@ -2355,11 +2355,11 @@ var Jr = {};
|
|
|
2355
2355
|
Object.defineProperty(s, "__esModule", {
|
|
2356
2356
|
value: !0
|
|
2357
2357
|
});
|
|
2358
|
-
function e(
|
|
2359
|
-
for (var
|
|
2360
|
-
Object.defineProperty(
|
|
2358
|
+
function e(R, b) {
|
|
2359
|
+
for (var _ in b)
|
|
2360
|
+
Object.defineProperty(R, _, {
|
|
2361
2361
|
enumerable: !0,
|
|
2362
|
-
get: b[
|
|
2362
|
+
get: b[_]
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
e(s, {
|
|
@@ -2389,86 +2389,86 @@ var Jr = {};
|
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
2391
|
const t = /* @__PURE__ */ l(Xr), i = Qi, r = es, n = /* @__PURE__ */ l(qi), a = Jr, o = Jt;
|
|
2392
|
-
function l(
|
|
2393
|
-
return
|
|
2394
|
-
default:
|
|
2392
|
+
function l(R) {
|
|
2393
|
+
return R && R.__esModule ? R : {
|
|
2394
|
+
default: R
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function c(
|
|
2398
|
-
|
|
2399
|
-
|
|
2397
|
+
function c(R, b) {
|
|
2398
|
+
R.walkClasses((_) => {
|
|
2399
|
+
_.value = b(_.value), _.raws && _.raws.value && (_.raws.value = (0, t.default)(_.raws.value));
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
|
-
function u(
|
|
2403
|
-
if (!f(
|
|
2402
|
+
function u(R, b) {
|
|
2403
|
+
if (!f(R))
|
|
2404
2404
|
return;
|
|
2405
|
-
let
|
|
2406
|
-
if (b(
|
|
2407
|
-
return (0, r.normalize)(
|
|
2405
|
+
let _ = R.slice(1, -1);
|
|
2406
|
+
if (b(_))
|
|
2407
|
+
return (0, r.normalize)(_);
|
|
2408
2408
|
}
|
|
2409
|
-
function d(
|
|
2410
|
-
let P = b[
|
|
2409
|
+
function d(R, b = {}, _) {
|
|
2410
|
+
let P = b[R];
|
|
2411
2411
|
if (P !== void 0)
|
|
2412
2412
|
return (0, n.default)(P);
|
|
2413
|
-
if (f(
|
|
2414
|
-
let w = u(
|
|
2413
|
+
if (f(R)) {
|
|
2414
|
+
let w = u(R, _);
|
|
2415
2415
|
return w === void 0 ? void 0 : (0, n.default)(w);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
function h(
|
|
2418
|
+
function h(R, b = {}, { validate: _ = () => !0 } = {}) {
|
|
2419
2419
|
var P;
|
|
2420
|
-
let w = (P = b.values) === null || P === void 0 ? void 0 : P[
|
|
2421
|
-
return w !== void 0 ? w : b.supportsNegativeValues &&
|
|
2420
|
+
let w = (P = b.values) === null || P === void 0 ? void 0 : P[R];
|
|
2421
|
+
return w !== void 0 ? w : b.supportsNegativeValues && R.startsWith("-") ? d(R.slice(1), b.values, _) : u(R, _);
|
|
2422
2422
|
}
|
|
2423
|
-
function f(
|
|
2424
|
-
return
|
|
2423
|
+
function f(R) {
|
|
2424
|
+
return R.startsWith("[") && R.endsWith("]");
|
|
2425
2425
|
}
|
|
2426
|
-
function m(
|
|
2427
|
-
let b =
|
|
2428
|
-
return b === -1 || b ===
|
|
2429
|
-
|
|
2426
|
+
function m(R) {
|
|
2427
|
+
let b = R.lastIndexOf("/");
|
|
2428
|
+
return b === -1 || b === R.length - 1 ? [
|
|
2429
|
+
R,
|
|
2430
2430
|
void 0
|
|
2431
|
-
] : f(
|
|
2432
|
-
|
|
2431
|
+
] : f(R) && !R.includes("]/[") ? [
|
|
2432
|
+
R,
|
|
2433
2433
|
void 0
|
|
2434
2434
|
] : [
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
R.slice(0, b),
|
|
2436
|
+
R.slice(b + 1)
|
|
2437
2437
|
];
|
|
2438
2438
|
}
|
|
2439
|
-
function g(
|
|
2440
|
-
if (typeof
|
|
2441
|
-
let b =
|
|
2442
|
-
return ({ opacityValue:
|
|
2439
|
+
function g(R) {
|
|
2440
|
+
if (typeof R == "string" && R.includes("<alpha-value>")) {
|
|
2441
|
+
let b = R;
|
|
2442
|
+
return ({ opacityValue: _ = 1 }) => b.replace("<alpha-value>", _);
|
|
2443
2443
|
}
|
|
2444
|
-
return
|
|
2444
|
+
return R;
|
|
2445
2445
|
}
|
|
2446
|
-
function y(
|
|
2447
|
-
return (0, r.normalize)(
|
|
2446
|
+
function y(R) {
|
|
2447
|
+
return (0, r.normalize)(R.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function v(
|
|
2449
|
+
function v(R, b = {}, { tailwindConfig: _ = {} } = {}) {
|
|
2450
2450
|
var P;
|
|
2451
|
-
if (((P = b.values) === null || P === void 0 ? void 0 : P[
|
|
2451
|
+
if (((P = b.values) === null || P === void 0 ? void 0 : P[R]) !== void 0) {
|
|
2452
2452
|
var w;
|
|
2453
|
-
return g((w = b.values) === null || w === void 0 ? void 0 : w[
|
|
2453
|
+
return g((w = b.values) === null || w === void 0 ? void 0 : w[R]);
|
|
2454
2454
|
}
|
|
2455
|
-
let [$, F] = m(
|
|
2455
|
+
let [$, F] = m(R);
|
|
2456
2456
|
if (F !== void 0) {
|
|
2457
2457
|
var U, O, V, H;
|
|
2458
2458
|
let M = (H = (U = b.values) === null || U === void 0 ? void 0 : U[$]) !== null && H !== void 0 ? H : f($) ? $.slice(1, -1) : void 0;
|
|
2459
|
-
return M === void 0 ? void 0 : (M = g(M), f(F) ? (0, i.withAlphaValue)(M, y(F)) : ((O =
|
|
2459
|
+
return M === void 0 ? void 0 : (M = g(M), f(F) ? (0, i.withAlphaValue)(M, y(F)) : ((O = _.theme) === null || O === void 0 || (V = O.opacity) === null || V === void 0 ? void 0 : V[F]) === void 0 ? void 0 : (0, i.withAlphaValue)(M, _.theme.opacity[F]));
|
|
2460
2460
|
}
|
|
2461
|
-
return h(
|
|
2461
|
+
return h(R, b, {
|
|
2462
2462
|
validate: r.color
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
function T(
|
|
2466
|
-
var
|
|
2467
|
-
return (
|
|
2465
|
+
function T(R, b = {}) {
|
|
2466
|
+
var _;
|
|
2467
|
+
return (_ = b.values) === null || _ === void 0 ? void 0 : _[R];
|
|
2468
2468
|
}
|
|
2469
|
-
function x(
|
|
2470
|
-
return (b,
|
|
2471
|
-
validate:
|
|
2469
|
+
function x(R) {
|
|
2470
|
+
return (b, _) => h(b, _, {
|
|
2471
|
+
validate: R
|
|
2472
2472
|
});
|
|
2473
2473
|
}
|
|
2474
2474
|
let L = {
|
|
@@ -2489,20 +2489,20 @@ var Jr = {};
|
|
|
2489
2489
|
shadow: x(r.shadow),
|
|
2490
2490
|
size: x(a.backgroundSize)
|
|
2491
2491
|
}, E = Object.keys(L);
|
|
2492
|
-
function k(
|
|
2493
|
-
let
|
|
2494
|
-
return
|
|
2492
|
+
function k(R, b) {
|
|
2493
|
+
let _ = R.indexOf(b);
|
|
2494
|
+
return _ === -1 ? [
|
|
2495
2495
|
void 0,
|
|
2496
|
-
|
|
2496
|
+
R
|
|
2497
2497
|
] : [
|
|
2498
|
-
|
|
2499
|
-
|
|
2498
|
+
R.slice(0, _),
|
|
2499
|
+
R.slice(_ + 1)
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
2502
|
-
function C(
|
|
2503
|
-
if (
|
|
2504
|
-
for (let { type: $ } of
|
|
2505
|
-
let F = L[$](b,
|
|
2502
|
+
function C(R, b, _, P) {
|
|
2503
|
+
if (_.values && b in _.values)
|
|
2504
|
+
for (let { type: $ } of R != null ? R : []) {
|
|
2505
|
+
let F = L[$](b, _, {
|
|
2506
2506
|
tailwindConfig: P
|
|
2507
2507
|
});
|
|
2508
2508
|
if (F !== void 0)
|
|
@@ -2520,25 +2520,25 @@ var Jr = {};
|
|
|
2520
2520
|
return [];
|
|
2521
2521
|
if (U.length > 0 && E.includes(F))
|
|
2522
2522
|
return [
|
|
2523
|
-
h(`[${U}]`,
|
|
2523
|
+
h(`[${U}]`, _),
|
|
2524
2524
|
F,
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let w = B(
|
|
2528
|
+
let w = B(R, b, _, P);
|
|
2529
2529
|
for (let $ of w)
|
|
2530
2530
|
return $;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
|
-
function* B(
|
|
2533
|
+
function* B(R, b, _, P) {
|
|
2534
2534
|
let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, F] = m(b);
|
|
2535
|
-
if (w &&
|
|
2535
|
+
if (w && _.modifiers != null && (_.modifiers === "any" || typeof _.modifiers == "object" && (F && f(F) || F in _.modifiers)) || ($ = b, F = void 0), F !== void 0 && $ === "" && ($ = "DEFAULT"), F !== void 0 && typeof _.modifiers == "object") {
|
|
2536
2536
|
var O, V;
|
|
2537
|
-
let H = (V = (O =
|
|
2537
|
+
let H = (V = (O = _.modifiers) === null || O === void 0 ? void 0 : O[F]) !== null && V !== void 0 ? V : null;
|
|
2538
2538
|
H !== null ? F = H : f(F) && (F = y(F));
|
|
2539
2539
|
}
|
|
2540
|
-
for (let { type: H } of
|
|
2541
|
-
let M = L[H]($,
|
|
2540
|
+
for (let { type: H } of R != null ? R : []) {
|
|
2541
|
+
let M = L[H]($, _, {
|
|
2542
2542
|
tailwindConfig: P
|
|
2543
2543
|
});
|
|
2544
2544
|
M !== void 0 && (yield [
|
|
@@ -2569,7 +2569,7 @@ var en = {};
|
|
|
2569
2569
|
}), Object.defineProperty(s, "default", {
|
|
2570
2570
|
enumerable: !0,
|
|
2571
2571
|
get: function() {
|
|
2572
|
-
return
|
|
2572
|
+
return _;
|
|
2573
2573
|
}
|
|
2574
2574
|
});
|
|
2575
2575
|
const e = /* @__PURE__ */ f(qi), t = /* @__PURE__ */ f(Ur), i = /* @__PURE__ */ f(Gr), r = /* @__PURE__ */ f(Xi), n = Kr, a = zr, o = Wr, l = /* @__PURE__ */ f(Yr), c = jr, u = qr, d = Qi, h = /* @__PURE__ */ f(en);
|
|
@@ -2696,7 +2696,7 @@ var en = {};
|
|
|
2696
2696
|
});
|
|
2697
2697
|
}), w;
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function R(P) {
|
|
2700
2700
|
return [
|
|
2701
2701
|
...P
|
|
2702
2702
|
].reduceRight(($, F) => m(F) ? F({
|
|
@@ -2711,7 +2711,7 @@ var en = {};
|
|
|
2711
2711
|
...F
|
|
2712
2712
|
], []);
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function _(P) {
|
|
2715
2715
|
let w = [
|
|
2716
2716
|
...B(P),
|
|
2717
2717
|
{
|
|
@@ -2723,12 +2723,12 @@ var en = {};
|
|
|
2723
2723
|
var $, F;
|
|
2724
2724
|
return (0, o.normalizeConfig)((0, n.defaults)({
|
|
2725
2725
|
theme: C(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
|
|
2726
|
-
corePlugins:
|
|
2726
|
+
corePlugins: R(w.map((U) => U.corePlugins)),
|
|
2727
2727
|
plugins: b(P.map((U) => (F = U == null ? void 0 : U.plugins) !== null && F !== void 0 ? F : []))
|
|
2728
2728
|
}, ...w));
|
|
2729
2729
|
}
|
|
2730
2730
|
})($r);
|
|
2731
|
-
var tn = {},
|
|
2731
|
+
var tn = {}, Ra = {
|
|
2732
2732
|
content: [],
|
|
2733
2733
|
presets: [],
|
|
2734
2734
|
darkMode: "media",
|
|
@@ -3728,7 +3728,7 @@ var tn = {}, _a = {
|
|
|
3728
3728
|
return r;
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
|
-
const e = /* @__PURE__ */ i(
|
|
3731
|
+
const e = /* @__PURE__ */ i(Ra), t = Jt;
|
|
3732
3732
|
function i(n) {
|
|
3733
3733
|
return n && n.__esModule ? n : {
|
|
3734
3734
|
default: n
|
|
@@ -3790,8 +3790,8 @@ var tn = {}, _a = {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
})(Br);
|
|
3792
3792
|
let ri = Br;
|
|
3793
|
-
var
|
|
3794
|
-
const Da = /* @__PURE__ */ Ca(
|
|
3793
|
+
var _a = (ri.__esModule ? ri : { default: ri }).default;
|
|
3794
|
+
const Da = /* @__PURE__ */ Ca(_a);
|
|
3795
3795
|
let ni = Xi;
|
|
3796
3796
|
var Pe = (ni.__esModule ? ni : { default: ni }).default;
|
|
3797
3797
|
const Ia = {
|
|
@@ -3957,14 +3957,14 @@ const Ia = {
|
|
|
3957
3957
|
Y["7xl"],
|
|
3958
3958
|
Y["8xl"],
|
|
3959
3959
|
Y["9xl"]
|
|
3960
|
-
],
|
|
3960
|
+
], Rh = [
|
|
3961
3961
|
ge.warning,
|
|
3962
3962
|
ge.error,
|
|
3963
3963
|
ge.info,
|
|
3964
3964
|
ge.success,
|
|
3965
3965
|
ge.primary,
|
|
3966
3966
|
ge.default
|
|
3967
|
-
],
|
|
3967
|
+
], _h = [
|
|
3968
3968
|
"play",
|
|
3969
3969
|
"pause",
|
|
3970
3970
|
"ended",
|
|
@@ -4949,7 +4949,7 @@ const ss = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4949
4949
|
un(s, e) && (e += 10);
|
|
4950
4950
|
}
|
|
4951
4951
|
return t;
|
|
4952
|
-
}, Lo = (s) => s.type === "PRIV" ? Co(s) : s.type[0] === "W" ?
|
|
4952
|
+
}, Lo = (s) => s.type === "PRIV" ? Co(s) : s.type[0] === "W" ? _o(s) : Ro(s), Co = (s) => {
|
|
4953
4953
|
if (s.size < 2)
|
|
4954
4954
|
return;
|
|
4955
4955
|
const e = Ne(s.data, !0), t = new Uint8Array(s.data.subarray(e.length + 1));
|
|
@@ -4958,7 +4958,7 @@ const ss = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4958
4958
|
info: e,
|
|
4959
4959
|
data: t.buffer
|
|
4960
4960
|
};
|
|
4961
|
-
},
|
|
4961
|
+
}, Ro = (s) => {
|
|
4962
4962
|
if (s.size < 2)
|
|
4963
4963
|
return;
|
|
4964
4964
|
if (s.type === "TXXX") {
|
|
@@ -4977,7 +4977,7 @@ const ss = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4977
4977
|
key: s.type,
|
|
4978
4978
|
data: e
|
|
4979
4979
|
};
|
|
4980
|
-
},
|
|
4980
|
+
}, _o = (s) => {
|
|
4981
4981
|
if (s.type === "WXXX") {
|
|
4982
4982
|
if (s.size < 2)
|
|
4983
4983
|
return;
|
|
@@ -5436,7 +5436,7 @@ function Ls(s, e) {
|
|
|
5436
5436
|
const k = (g & 32) !== 0;
|
|
5437
5437
|
let C = 8;
|
|
5438
5438
|
m === n && (y && (C += 8), v && (C += 4), T && (x = W(f, C), C += 4), L && (E = W(f, C), C += 4), k && (C += 4), e.type === "video" && (a = Go(e.codec)), X(d, ["trun"]).map((B) => {
|
|
5439
|
-
const
|
|
5439
|
+
const R = B[0], b = W(B, 0) & 16777215, _ = (b & 1) !== 0;
|
|
5440
5440
|
let P = 0;
|
|
5441
5441
|
const w = (b & 4) !== 0, $ = (b & 256) !== 0;
|
|
5442
5442
|
let F = 0;
|
|
@@ -5446,10 +5446,10 @@ function Ls(s, e) {
|
|
|
5446
5446
|
let M = 0;
|
|
5447
5447
|
const Q = W(B, 4);
|
|
5448
5448
|
let Z = 8;
|
|
5449
|
-
|
|
5449
|
+
_ && (P = W(B, Z), Z += 4), w && (Z += 4);
|
|
5450
5450
|
let ee = P + c;
|
|
5451
5451
|
for (let ae = 0; ae < Q; ae++) {
|
|
5452
|
-
if ($ ? (F = W(B, Z), Z += 4) : F = x, U ? (O = W(B, Z), Z += 4) : O = E, V && (Z += 4), H && (
|
|
5452
|
+
if ($ ? (F = W(B, Z), Z += 4) : F = x, U ? (O = W(B, Z), Z += 4) : O = E, V && (Z += 4), H && (R === 0 ? M = W(B, Z) : M = gn(B, Z), Z += 4), e.type === te.VIDEO) {
|
|
5453
5453
|
let ce = 0;
|
|
5454
5454
|
for (; ce < O; ) {
|
|
5455
5455
|
const fe = W(i, ee);
|
|
@@ -5762,7 +5762,7 @@ function Oi(s, e) {
|
|
|
5762
5762
|
}
|
|
5763
5763
|
return e;
|
|
5764
5764
|
}
|
|
5765
|
-
function
|
|
5765
|
+
function Rs(s, e, t) {
|
|
5766
5766
|
let i = s.variableList;
|
|
5767
5767
|
i || (s.variableList = i = {});
|
|
5768
5768
|
let r, n;
|
|
@@ -5885,7 +5885,7 @@ function En(s, e, t = !0) {
|
|
|
5885
5885
|
function Et(s, e) {
|
|
5886
5886
|
return `${e}/mp4;codecs="${s}"`;
|
|
5887
5887
|
}
|
|
5888
|
-
function
|
|
5888
|
+
function _s(s) {
|
|
5889
5889
|
if (s) {
|
|
5890
5890
|
const e = s.substring(0, 4);
|
|
5891
5891
|
return Ht.video[e];
|
|
@@ -5997,7 +5997,7 @@ class Oe {
|
|
|
5997
5997
|
case "DEFINE": {
|
|
5998
5998
|
{
|
|
5999
5999
|
const d = new ne(u);
|
|
6000
|
-
Te(r, d, ["NAME", "VALUE", "QUERYPARAM"]),
|
|
6000
|
+
Te(r, d, ["NAME", "VALUE", "QUERYPARAM"]), Rs(r, d, t);
|
|
6001
6001
|
}
|
|
6002
6002
|
break;
|
|
6003
6003
|
}
|
|
@@ -6064,11 +6064,11 @@ class Oe {
|
|
|
6064
6064
|
let c = null, u = 0, d = 0, h = 0, f = 0, m = null, g = new ai(r, t), y, v, T, x = -1, L = !1, E = null;
|
|
6065
6065
|
for (ks.lastIndex = 0, o.m3u8 = e, o.hasVariableRefs = Cs(e); (y = ks.exec(e)) !== null; ) {
|
|
6066
6066
|
L && (L = !1, g = new ai(r, t), g.start = h, g.sn = u, g.cc = f, g.level = i, c && (g.initSegment = c, g.rawProgramDateTime = c.rawProgramDateTime, c.rawProgramDateTime = null, E && (g.setByteRange(E), E = null)));
|
|
6067
|
-
const
|
|
6068
|
-
if (
|
|
6069
|
-
g.duration = parseFloat(
|
|
6067
|
+
const R = y[1];
|
|
6068
|
+
if (R) {
|
|
6069
|
+
g.duration = parseFloat(R);
|
|
6070
6070
|
const b = (" " + y[2]).slice(1);
|
|
6071
|
-
g.title = b || null, g.tagList.push(b ? ["INF",
|
|
6071
|
+
g.title = b || null, g.tagList.push(b ? ["INF", R, b] : ["INF", R]);
|
|
6072
6072
|
} else if (y[3]) {
|
|
6073
6073
|
if (z(g.duration)) {
|
|
6074
6074
|
g.start = h, T && Bs(g, T, o), g.sn = u, g.level = i, g.cc = f, l.push(g);
|
|
@@ -6087,16 +6087,16 @@ class Oe {
|
|
|
6087
6087
|
}
|
|
6088
6088
|
for (v = 1; v < y.length && typeof y[v] == "undefined"; v++)
|
|
6089
6089
|
;
|
|
6090
|
-
const b = (" " + y[v]).slice(1),
|
|
6090
|
+
const b = (" " + y[v]).slice(1), _ = (" " + y[v + 1]).slice(1), P = y[v + 2] ? (" " + y[v + 2]).slice(1) : "";
|
|
6091
6091
|
switch (b) {
|
|
6092
6092
|
case "PLAYLIST-TYPE":
|
|
6093
|
-
o.type =
|
|
6093
|
+
o.type = _.toUpperCase();
|
|
6094
6094
|
break;
|
|
6095
6095
|
case "MEDIA-SEQUENCE":
|
|
6096
|
-
u = o.startSN = parseInt(
|
|
6096
|
+
u = o.startSN = parseInt(_);
|
|
6097
6097
|
break;
|
|
6098
6098
|
case "SKIP": {
|
|
6099
|
-
const w = new ne(
|
|
6099
|
+
const w = new ne(_);
|
|
6100
6100
|
Te(o, w, ["RECENTLY-REMOVED-DATERANGES"]);
|
|
6101
6101
|
const $ = w.decimalInteger("SKIPPED-SEGMENTS");
|
|
6102
6102
|
if (z($)) {
|
|
@@ -6110,10 +6110,10 @@ class Oe {
|
|
|
6110
6110
|
break;
|
|
6111
6111
|
}
|
|
6112
6112
|
case "TARGETDURATION":
|
|
6113
|
-
o.targetduration = Math.max(parseInt(
|
|
6113
|
+
o.targetduration = Math.max(parseInt(_), 1);
|
|
6114
6114
|
break;
|
|
6115
6115
|
case "VERSION":
|
|
6116
|
-
o.version = parseInt(
|
|
6116
|
+
o.version = parseInt(_);
|
|
6117
6117
|
break;
|
|
6118
6118
|
case "INDEPENDENT-SEGMENTS":
|
|
6119
6119
|
case "EXTM3U":
|
|
@@ -6122,7 +6122,7 @@ class Oe {
|
|
|
6122
6122
|
o.live = !1;
|
|
6123
6123
|
break;
|
|
6124
6124
|
case "#":
|
|
6125
|
-
(
|
|
6125
|
+
(_ || P) && g.tagList.push(P ? [_, P] : [_]);
|
|
6126
6126
|
break;
|
|
6127
6127
|
case "DISCONTINUITY":
|
|
6128
6128
|
f++, g.tagList.push(["DIS"]);
|
|
@@ -6131,27 +6131,27 @@ class Oe {
|
|
|
6131
6131
|
g.gap = !0, g.tagList.push([b]);
|
|
6132
6132
|
break;
|
|
6133
6133
|
case "BITRATE":
|
|
6134
|
-
g.tagList.push([b,
|
|
6134
|
+
g.tagList.push([b, _]);
|
|
6135
6135
|
break;
|
|
6136
6136
|
case "DATERANGE": {
|
|
6137
|
-
const w = new ne(
|
|
6137
|
+
const w = new ne(_);
|
|
6138
6138
|
Te(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), Te(o, w, w.clientAttrs);
|
|
6139
6139
|
const $ = new an(w, o.dateRanges[w.ID]);
|
|
6140
|
-
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${
|
|
6140
|
+
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${_}"`), g.tagList.push(["EXT-X-DATERANGE", _]);
|
|
6141
6141
|
break;
|
|
6142
6142
|
}
|
|
6143
6143
|
case "DEFINE": {
|
|
6144
6144
|
{
|
|
6145
|
-
const w = new ne(
|
|
6146
|
-
Te(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? jo(o, w, a) :
|
|
6145
|
+
const w = new ne(_);
|
|
6146
|
+
Te(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? jo(o, w, a) : Rs(o, w, t);
|
|
6147
6147
|
}
|
|
6148
6148
|
break;
|
|
6149
6149
|
}
|
|
6150
6150
|
case "DISCONTINUITY-SEQUENCE":
|
|
6151
|
-
f = parseInt(
|
|
6151
|
+
f = parseInt(_);
|
|
6152
6152
|
break;
|
|
6153
6153
|
case "KEY": {
|
|
6154
|
-
const w = Ps(
|
|
6154
|
+
const w = Ps(_, t, o);
|
|
6155
6155
|
if (w.isSupported()) {
|
|
6156
6156
|
if (w.method === "NONE") {
|
|
6157
6157
|
T = void 0;
|
|
@@ -6159,14 +6159,14 @@ class Oe {
|
|
|
6159
6159
|
}
|
|
6160
6160
|
T || (T = {}), T[w.keyFormat] && (T = oe({}, T)), T[w.keyFormat] = w;
|
|
6161
6161
|
} else
|
|
6162
|
-
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${
|
|
6162
|
+
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${_}"`);
|
|
6163
6163
|
break;
|
|
6164
6164
|
}
|
|
6165
6165
|
case "START":
|
|
6166
|
-
o.startTimeOffset = Fs(
|
|
6166
|
+
o.startTimeOffset = Fs(_);
|
|
6167
6167
|
break;
|
|
6168
6168
|
case "MAP": {
|
|
6169
|
-
const w = new ne(
|
|
6169
|
+
const w = new ne(_);
|
|
6170
6170
|
if (Te(o, w, ["BYTERANGE", "URI"]), g.duration) {
|
|
6171
6171
|
const $ = new ai(r, t);
|
|
6172
6172
|
Ns($, w, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
|
|
@@ -6182,31 +6182,31 @@ class Oe {
|
|
|
6182
6182
|
break;
|
|
6183
6183
|
}
|
|
6184
6184
|
case "SERVER-CONTROL": {
|
|
6185
|
-
const w = new ne(
|
|
6185
|
+
const w = new ne(_);
|
|
6186
6186
|
o.canBlockReload = w.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = w.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && w.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = w.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = w.optionalFloat("HOLD-BACK", 0);
|
|
6187
6187
|
break;
|
|
6188
6188
|
}
|
|
6189
6189
|
case "PART-INF": {
|
|
6190
|
-
const w = new ne(
|
|
6190
|
+
const w = new ne(_);
|
|
6191
6191
|
o.partTarget = w.decimalFloatingPoint("PART-TARGET");
|
|
6192
6192
|
break;
|
|
6193
6193
|
}
|
|
6194
6194
|
case "PART": {
|
|
6195
6195
|
let w = o.partList;
|
|
6196
6196
|
w || (w = o.partList = []);
|
|
6197
|
-
const $ = d > 0 ? w[w.length - 1] : void 0, F = d++, U = new ne(
|
|
6197
|
+
const $ = d > 0 ? w[w.length - 1] : void 0, F = d++, U = new ne(_);
|
|
6198
6198
|
Te(o, U, ["BYTERANGE", "URI"]);
|
|
6199
6199
|
const O = new mo(U, g, t, F, $);
|
|
6200
6200
|
w.push(O), g.duration += O.duration;
|
|
6201
6201
|
break;
|
|
6202
6202
|
}
|
|
6203
6203
|
case "PRELOAD-HINT": {
|
|
6204
|
-
const w = new ne(
|
|
6204
|
+
const w = new ne(_);
|
|
6205
6205
|
Te(o, w, ["URI"]), o.preloadHint = w;
|
|
6206
6206
|
break;
|
|
6207
6207
|
}
|
|
6208
6208
|
case "RENDITION-REPORT": {
|
|
6209
|
-
const w = new ne(
|
|
6209
|
+
const w = new ne(_);
|
|
6210
6210
|
Te(o, w, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(w);
|
|
6211
6211
|
break;
|
|
6212
6212
|
}
|
|
@@ -6220,8 +6220,8 @@ class Oe {
|
|
|
6220
6220
|
const k = l.length, C = l[0], B = l[k - 1];
|
|
6221
6221
|
if (h += o.skippedSegments * o.targetduration, h > 0 && k && B) {
|
|
6222
6222
|
o.averagetargetduration = h / k;
|
|
6223
|
-
const
|
|
6224
|
-
o.endSN =
|
|
6223
|
+
const R = B.sn;
|
|
6224
|
+
o.endSN = R !== "initSegment" ? R : 0, o.live || (B.endList = !0), C && (o.startCC = C.cc);
|
|
6225
6225
|
} else
|
|
6226
6226
|
o.endSN = 0, o.startCC = 0;
|
|
6227
6227
|
return o.fragmentHint && (h += o.fragmentHint.duration), o.totalduration = h, o.endCC = f, x > 0 && il(l, x), o;
|
|
@@ -7354,7 +7354,7 @@ function Cn(s, e, t) {
|
|
|
7354
7354
|
}
|
|
7355
7355
|
return null;
|
|
7356
7356
|
}
|
|
7357
|
-
function
|
|
7357
|
+
function Rn(s) {
|
|
7358
7358
|
s.forEach((e, t) => {
|
|
7359
7359
|
const {
|
|
7360
7360
|
details: i
|
|
@@ -7397,7 +7397,7 @@ function Yt(s, e, t, i) {
|
|
|
7397
7397
|
function xl(s) {
|
|
7398
7398
|
return s === 0 && navigator.onLine === !1 || !!s && (s < 400 || s > 499);
|
|
7399
7399
|
}
|
|
7400
|
-
const
|
|
7400
|
+
const _n = {
|
|
7401
7401
|
/**
|
|
7402
7402
|
* Searches for an item in an array which matches a certain condition.
|
|
7403
7403
|
* This requires the condition to only match one item in the array,
|
|
@@ -7455,7 +7455,7 @@ function jt(s, e, t = 0, i = 0) {
|
|
|
7455
7455
|
t === 0 && e[0].start === 0 && (r = e[0]);
|
|
7456
7456
|
if (r && (!s || s.level === r.level) && Ui(t, i, r) === 0)
|
|
7457
7457
|
return r;
|
|
7458
|
-
const n =
|
|
7458
|
+
const n = _n.search(e, Ui.bind(null, t, i));
|
|
7459
7459
|
return n && (n !== s || !r) ? n : r;
|
|
7460
7460
|
}
|
|
7461
7461
|
function Ui(s = 0, e = 0, t) {
|
|
@@ -7469,7 +7469,7 @@ function El(s, e, t) {
|
|
|
7469
7469
|
return (t.endProgramDateTime || 0) - i > s;
|
|
7470
7470
|
}
|
|
7471
7471
|
function Sl(s, e) {
|
|
7472
|
-
return
|
|
7472
|
+
return _n.search(s, (t) => t.cc < e ? 1 : t.cc > e ? -1 : 0);
|
|
7473
7473
|
}
|
|
7474
7474
|
var me = {
|
|
7475
7475
|
DoNothing: 0,
|
|
@@ -7478,7 +7478,7 @@ var me = {
|
|
|
7478
7478
|
RemoveAlternatePermanently: 3,
|
|
7479
7479
|
InsertDiscontinuity: 4,
|
|
7480
7480
|
RetryRequest: 5
|
|
7481
|
-
},
|
|
7481
|
+
}, Re = {
|
|
7482
7482
|
None: 0,
|
|
7483
7483
|
MoveAllAlternatesMatchingHost: 1,
|
|
7484
7484
|
MoveAllAlternatesMatchingHDCP: 2,
|
|
@@ -7529,7 +7529,7 @@ class bl {
|
|
|
7529
7529
|
if ((i = t.frag) != null && i.gap) {
|
|
7530
7530
|
t.errorAction = {
|
|
7531
7531
|
action: me.DoNothing,
|
|
7532
|
-
flags:
|
|
7532
|
+
flags: Re.None
|
|
7533
7533
|
};
|
|
7534
7534
|
return;
|
|
7535
7535
|
}
|
|
@@ -7557,7 +7557,7 @@ class bl {
|
|
|
7557
7557
|
if (a) {
|
|
7558
7558
|
const c = n.levels[n.loadLevel];
|
|
7559
7559
|
if (c && (a.type === J.AUDIO_TRACK && c.hasAudioGroup(a.groupId) || a.type === J.SUBTITLE_TRACK && c.hasSubtitleGroup(a.groupId))) {
|
|
7560
|
-
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags =
|
|
7560
|
+
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags = Re.MoveAllAlternatesMatchingHost;
|
|
7561
7561
|
return;
|
|
7562
7562
|
}
|
|
7563
7563
|
}
|
|
@@ -7567,7 +7567,7 @@ class bl {
|
|
|
7567
7567
|
const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
|
|
7568
7568
|
u ? t.errorAction = {
|
|
7569
7569
|
action: me.SendAlternateToPenaltyBox,
|
|
7570
|
-
flags:
|
|
7570
|
+
flags: Re.MoveAllAlternatesMatchingHDCP,
|
|
7571
7571
|
hdcpLevel: u
|
|
7572
7572
|
} : this.keySystemError(t);
|
|
7573
7573
|
}
|
|
@@ -7586,7 +7586,7 @@ class bl {
|
|
|
7586
7586
|
case D.BUFFER_NUDGE_ON_STALL:
|
|
7587
7587
|
t.errorAction = {
|
|
7588
7588
|
action: me.DoNothing,
|
|
7589
|
-
flags:
|
|
7589
|
+
flags: Re.None
|
|
7590
7590
|
};
|
|
7591
7591
|
return;
|
|
7592
7592
|
}
|
|
@@ -7601,7 +7601,7 @@ class bl {
|
|
|
7601
7601
|
if (Yt(r, n, Wt(e), e.response))
|
|
7602
7602
|
return {
|
|
7603
7603
|
action: me.RetryRequest,
|
|
7604
|
-
flags:
|
|
7604
|
+
flags: Re.None,
|
|
7605
7605
|
retryConfig: r,
|
|
7606
7606
|
retryCount: n
|
|
7607
7607
|
};
|
|
@@ -7616,7 +7616,7 @@ class bl {
|
|
|
7616
7616
|
if (r && (e.details !== D.FRAG_GAP && r.fragmentError++, Yt(o, l, Wt(e), e.response)))
|
|
7617
7617
|
return {
|
|
7618
7618
|
action: me.RetryRequest,
|
|
7619
|
-
flags:
|
|
7619
|
+
flags: Re.None,
|
|
7620
7620
|
retryConfig: o,
|
|
7621
7621
|
retryCount: l
|
|
7622
7622
|
};
|
|
@@ -7654,16 +7654,16 @@ class bl {
|
|
|
7654
7654
|
var o, l;
|
|
7655
7655
|
const B = d[C];
|
|
7656
7656
|
if (c === D.FRAG_GAP && e.frag) {
|
|
7657
|
-
const
|
|
7658
|
-
if (
|
|
7659
|
-
const b = jt(e.frag,
|
|
7657
|
+
const R = d[C].details;
|
|
7658
|
+
if (R) {
|
|
7659
|
+
const b = jt(e.frag, R.fragments, e.frag.start);
|
|
7660
7660
|
if (b != null && b.gap)
|
|
7661
7661
|
continue;
|
|
7662
7662
|
}
|
|
7663
7663
|
} else {
|
|
7664
7664
|
if (L === J.AUDIO_TRACK && B.hasAudioGroup(E) || L === J.SUBTITLE_TRACK && B.hasSubtitleGroup(E))
|
|
7665
7665
|
continue;
|
|
7666
|
-
if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((
|
|
7666
|
+
if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((R) => B.hasAudioGroup(R)) || g === j.SUBTITLE && (l = r.subtitleGroups) != null && l.some((R) => B.hasSubtitleGroup(R)) || v && r.audioCodec === B.audioCodec || !v && r.audioCodec !== B.audioCodec || x && r.codecSet === B.codecSet)
|
|
7667
7667
|
continue;
|
|
7668
7668
|
}
|
|
7669
7669
|
u = C;
|
|
@@ -7673,13 +7673,13 @@ class bl {
|
|
|
7673
7673
|
if (u > -1 && i.loadLevel !== u)
|
|
7674
7674
|
return e.levelRetry = !0, this.playlistError = 0, {
|
|
7675
7675
|
action: me.SendAlternateToPenaltyBox,
|
|
7676
|
-
flags:
|
|
7676
|
+
flags: Re.None,
|
|
7677
7677
|
nextAutoLevel: u
|
|
7678
7678
|
};
|
|
7679
7679
|
}
|
|
7680
7680
|
return {
|
|
7681
7681
|
action: me.SendAlternateToPenaltyBox,
|
|
7682
|
-
flags:
|
|
7682
|
+
flags: Re.MoveAllAlternatesMatchingHost
|
|
7683
7683
|
};
|
|
7684
7684
|
}
|
|
7685
7685
|
onErrorOut(e, t) {
|
|
@@ -7706,10 +7706,10 @@ class bl {
|
|
|
7706
7706
|
nextAutoLevel: a
|
|
7707
7707
|
} = i;
|
|
7708
7708
|
switch (r) {
|
|
7709
|
-
case
|
|
7709
|
+
case Re.None:
|
|
7710
7710
|
this.switchLevel(e, a);
|
|
7711
7711
|
break;
|
|
7712
|
-
case
|
|
7712
|
+
case Re.MoveAllAlternatesMatchingHDCP:
|
|
7713
7713
|
n && (t.maxHdcpLevel = Bi[Bi.indexOf(n) - 1], i.resolved = !0), this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);
|
|
7714
7714
|
break;
|
|
7715
7715
|
}
|
|
@@ -7786,19 +7786,19 @@ class as {
|
|
|
7786
7786
|
const y = this.hls.config.lowLatencyMode, v = r.lastPartSn, T = r.endSN, x = r.lastPartIndex, L = x !== -1, E = v === T, k = y ? 0 : x;
|
|
7787
7787
|
L ? (c = E ? T + 1 : v, u = E ? k : x + 1) : c = T + 1;
|
|
7788
7788
|
const C = r.age, B = C + r.ageHeader;
|
|
7789
|
-
let
|
|
7790
|
-
if (
|
|
7791
|
-
if (i &&
|
|
7792
|
-
this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${
|
|
7789
|
+
let R = Math.min(B - r.partTarget, r.targetduration * 1.5);
|
|
7790
|
+
if (R > 0) {
|
|
7791
|
+
if (i && R > i.tuneInGoal)
|
|
7792
|
+
this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${R} with playlist age: ${r.age}`), R = 0;
|
|
7793
7793
|
else {
|
|
7794
|
-
const b = Math.floor(
|
|
7794
|
+
const b = Math.floor(R / r.targetduration);
|
|
7795
7795
|
if (c += b, u !== void 0) {
|
|
7796
|
-
const
|
|
7797
|
-
u +=
|
|
7796
|
+
const _ = Math.round(R % r.targetduration / r.partTarget);
|
|
7797
|
+
u += _;
|
|
7798
7798
|
}
|
|
7799
|
-
this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${C.toFixed(2)}s goal: ${
|
|
7799
|
+
this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${C.toFixed(2)}s goal: ${R} skip sn ${b} to part ${u}`);
|
|
7800
7800
|
}
|
|
7801
|
-
r.tuneInGoal =
|
|
7801
|
+
r.tuneInGoal = R;
|
|
7802
7802
|
}
|
|
7803
7803
|
if (l = this.getDeliveryDirectives(r, t.deliveryDirectives, c, u), y || !E) {
|
|
7804
7804
|
this.loadPlaylist(l);
|
|
@@ -7959,7 +7959,7 @@ function Cl(s, e, t) {
|
|
|
7959
7959
|
}
|
|
7960
7960
|
}));
|
|
7961
7961
|
}), Promise.all(o.map((l) => {
|
|
7962
|
-
const c =
|
|
7962
|
+
const c = Rl(l);
|
|
7963
7963
|
return Ws[c] || (Ws[c] = t.decodingInfo(l));
|
|
7964
7964
|
})).then((l) => ({
|
|
7965
7965
|
supported: !l.some((c) => !c.supported),
|
|
@@ -7972,7 +7972,7 @@ function Cl(s, e, t) {
|
|
|
7972
7972
|
error: l
|
|
7973
7973
|
}));
|
|
7974
7974
|
}
|
|
7975
|
-
function
|
|
7975
|
+
function Rl(s) {
|
|
7976
7976
|
const {
|
|
7977
7977
|
audio: e,
|
|
7978
7978
|
video: t
|
|
@@ -7986,7 +7986,7 @@ function _l(s) {
|
|
|
7986
7986
|
}
|
|
7987
7987
|
return "";
|
|
7988
7988
|
}
|
|
7989
|
-
function
|
|
7989
|
+
function _l() {
|
|
7990
7990
|
if (typeof matchMedia == "function") {
|
|
7991
7991
|
const s = matchMedia("(dynamic-range: high)"), e = matchMedia("bad query");
|
|
7992
7992
|
if (s.media !== e.media)
|
|
@@ -7996,7 +7996,7 @@ function Rl() {
|
|
|
7996
7996
|
}
|
|
7997
7997
|
function Dl(s, e) {
|
|
7998
7998
|
let t = !1, i = [];
|
|
7999
|
-
return s && (t = s !== "SDR", i = [s]), e && (i = e.allowedVideoRanges || zt.slice(0), t = e.preferHDR !== void 0 ? e.preferHDR :
|
|
7999
|
+
return s && (t = s !== "SDR", i = [s]), e && (i = e.allowedVideoRanges || zt.slice(0), t = e.preferHDR !== void 0 ? e.preferHDR : _l(), t ? i = i.filter((r) => r !== "SDR") : i = ["SDR"]), {
|
|
8000
8000
|
preferHDR: t,
|
|
8001
8001
|
allowedVideoRanges: i
|
|
8002
8002
|
};
|
|
@@ -8186,17 +8186,17 @@ class Ol {
|
|
|
8186
8186
|
const C = v ? l.loaded * 1e3 / k : 0, B = C ? (E - l.loaded) / C : E * 8 / T + f / 1e3;
|
|
8187
8187
|
if (B <= g)
|
|
8188
8188
|
return;
|
|
8189
|
-
const
|
|
8190
|
-
let b = Number.POSITIVE_INFINITY,
|
|
8191
|
-
for (
|
|
8192
|
-
const w = x[
|
|
8193
|
-
if (b = this.getTimeToLoadFrag(f / 1e3,
|
|
8189
|
+
const R = C ? C * 8 : T;
|
|
8190
|
+
let b = Number.POSITIVE_INFINITY, _;
|
|
8191
|
+
for (_ = t.level - 1; _ > d; _--) {
|
|
8192
|
+
const w = x[_].maxBitrate;
|
|
8193
|
+
if (b = this.getTimeToLoadFrag(f / 1e3, R, c * w, !x[_].details), b < g)
|
|
8194
8194
|
break;
|
|
8195
8195
|
}
|
|
8196
8196
|
if (b >= B || b > c * 10)
|
|
8197
8197
|
return;
|
|
8198
|
-
r.nextLoadLevel = r.nextAutoLevel =
|
|
8199
|
-
const P = x[
|
|
8198
|
+
r.nextLoadLevel = r.nextAutoLevel = _, v ? this.bwEstimator.sample(u - Math.min(f, y), l.loaded) : this.bwEstimator.sampleTTFB(u);
|
|
8199
|
+
const P = x[_].maxBitrate;
|
|
8200
8200
|
this.getBwEstimate() * this.hls.config.abrBandWidthUpFactor > P && this.resetEstimator(P), this.clearTimer(), S.warn(`[abr] Fragment ${t.sn}${i ? " part " + i.index : ""} of level ${t.level} is loading too slowly;
|
|
8201
8201
|
Time to underbuffer: ${g.toFixed(3)} s
|
|
8202
8202
|
Estimated load time for current fragment: ${B.toFixed(3)} s
|
|
@@ -8204,7 +8204,7 @@ class Ol {
|
|
|
8204
8204
|
TTFB estimate: ${y | 0} ms
|
|
8205
8205
|
Current BW estimate: ${z(T) ? T | 0 : "Unknown"} bps
|
|
8206
8206
|
New BW estimate: ${this.getBwEstimate() | 0} bps
|
|
8207
|
-
Switching to level ${
|
|
8207
|
+
Switching to level ${_} @ ${P | 0} bps`), r.trigger(p.FRAG_LOAD_EMERGENCY_ABORTED, {
|
|
8208
8208
|
frag: t,
|
|
8209
8209
|
part: i,
|
|
8210
8210
|
stats: l
|
|
@@ -8413,12 +8413,12 @@ class Ol {
|
|
|
8413
8413
|
let E, k = "SDR", C = (T == null ? void 0 : T.frameRate) || 0;
|
|
8414
8414
|
const {
|
|
8415
8415
|
audioPreference: B,
|
|
8416
|
-
videoPreference:
|
|
8416
|
+
videoPreference: R
|
|
8417
8417
|
} = v, b = this.audioTracksByGroup || (this.audioTracksByGroup = wl(g));
|
|
8418
8418
|
if (L) {
|
|
8419
8419
|
if (this.firstSelection !== -1)
|
|
8420
8420
|
return this.firstSelection;
|
|
8421
|
-
const F = this.codecTiers || (this.codecTiers = kl(m, b, t, i)), U = Il(F, k, e, B,
|
|
8421
|
+
const F = this.codecTiers || (this.codecTiers = kl(m, b, t, i)), U = Il(F, k, e, B, R), {
|
|
8422
8422
|
codecSet: O,
|
|
8423
8423
|
videoRanges: V,
|
|
8424
8424
|
minFramerate: H,
|
|
@@ -8428,7 +8428,7 @@ class Ol {
|
|
|
8428
8428
|
E = O, k = Q ? V[V.length - 1] : V[0], C = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
|
|
8429
8429
|
} else
|
|
8430
8430
|
E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
|
|
8431
|
-
const
|
|
8431
|
+
const _ = f ? f.duration : h ? h.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
|
|
8432
8432
|
for (let F = i; F >= t; F--) {
|
|
8433
8433
|
var $;
|
|
8434
8434
|
const U = m[F], O = F > d;
|
|
@@ -8448,10 +8448,10 @@ class Ol {
|
|
|
8448
8448
|
w.push(F);
|
|
8449
8449
|
continue;
|
|
8450
8450
|
}
|
|
8451
|
-
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) ||
|
|
8451
|
+
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) || _;
|
|
8452
8452
|
let M;
|
|
8453
8453
|
O ? M = o * e : M = a * e;
|
|
8454
|
-
const Q =
|
|
8454
|
+
const Q = _ && r >= _ * 2 && n === 0 ? m[F].averageBitrate : m[F].maxBitrate, Z = this.getTimeToLoadFrag(P, M, Q * H, V === void 0);
|
|
8455
8455
|
if (
|
|
8456
8456
|
// if adjusted bw is greater than level bitrate AND
|
|
8457
8457
|
M >= Q && // no level change, or new level has no error history
|
|
@@ -9250,12 +9250,12 @@ class Yl {
|
|
|
9250
9250
|
const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], d = o[3], h = this.uint8ArrayToUint32Array_(i);
|
|
9251
9251
|
let f = h[0], m = h[1], g = h[2], y = h[3];
|
|
9252
9252
|
const v = new Int32Array(e), T = new Int32Array(v.length);
|
|
9253
|
-
let x, L, E, k, C, B,
|
|
9253
|
+
let x, L, E, k, C, B, R, b, _, P, w, $, F, U;
|
|
9254
9254
|
const O = this.networkToHostOrderSwap;
|
|
9255
9255
|
for (; t < v.length; ) {
|
|
9256
|
-
for (
|
|
9257
|
-
x = l[C >>> 24] ^ c[B >> 16 & 255] ^ u[
|
|
9258
|
-
x = a[C >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[
|
|
9256
|
+
for (_ = O(v[t]), P = O(v[t + 1]), w = O(v[t + 2]), $ = O(v[t + 3]), C = _ ^ n[0], B = $ ^ n[1], R = w ^ n[2], b = P ^ n[3], F = 4, U = 1; U < r; U++)
|
|
9257
|
+
x = l[C >>> 24] ^ c[B >> 16 & 255] ^ u[R >> 8 & 255] ^ d[b & 255] ^ n[F], L = l[B >>> 24] ^ c[R >> 16 & 255] ^ u[b >> 8 & 255] ^ d[C & 255] ^ n[F + 1], E = l[R >>> 24] ^ c[b >> 16 & 255] ^ u[C >> 8 & 255] ^ d[B & 255] ^ n[F + 2], k = l[b >>> 24] ^ c[C >> 16 & 255] ^ u[B >> 8 & 255] ^ d[R & 255] ^ n[F + 3], C = x, B = L, R = E, b = k, F = F + 4;
|
|
9258
|
+
x = a[C >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[b & 255] ^ n[F], L = a[B >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[C & 255] ^ n[F + 1], E = a[R >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[B & 255] ^ n[F + 2], k = a[b >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[R & 255] ^ n[F + 3], T[t] = O(x ^ f), T[t + 1] = O(k ^ m), T[t + 2] = O(E ^ g), T[t + 3] = O(L ^ y), f = _, m = P, g = w, y = $, t = t + 4;
|
|
9259
9259
|
}
|
|
9260
9260
|
return T.buffer;
|
|
9261
9261
|
}
|
|
@@ -10294,7 +10294,7 @@ function Mn(s, e, t, i, r) {
|
|
|
10294
10294
|
missing: -1
|
|
10295
10295
|
};
|
|
10296
10296
|
}
|
|
10297
|
-
let
|
|
10297
|
+
let Rt = null;
|
|
10298
10298
|
const ac = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160], oc = [44100, 48e3, 32e3, 22050, 24e3, 16e3, 11025, 12e3, 8e3], lc = [
|
|
10299
10299
|
// MPEG 2.5
|
|
10300
10300
|
[
|
|
@@ -10371,11 +10371,11 @@ function Bn(s, e) {
|
|
|
10371
10371
|
const t = s[e + 1] >> 3 & 3, i = s[e + 1] >> 1 & 3, r = s[e + 2] >> 4 & 15, n = s[e + 2] >> 2 & 3;
|
|
10372
10372
|
if (t !== 1 && r !== 0 && r !== 15 && n !== 3) {
|
|
10373
10373
|
const a = s[e + 2] >> 1 & 1, o = s[e + 3] >> 6, l = t === 3 ? 3 - i : i === 3 ? 3 : 4, c = ac[l * 14 + r - 1] * 1e3, d = oc[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + n], h = o === 3 ? 1 : 2, f = lc[t][i], m = cc[i], g = f * 8 * m, y = Math.floor(f * c / d + a) * m;
|
|
10374
|
-
if (
|
|
10374
|
+
if (Rt === null) {
|
|
10375
10375
|
const x = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
|
|
10376
|
-
|
|
10376
|
+
Rt = x ? parseInt(x[1]) : 0;
|
|
10377
10377
|
}
|
|
10378
|
-
return !!
|
|
10378
|
+
return !!Rt && Rt <= 87 && i === 2 && c >= 224e3 && o === 0 && (s[e + 3] = s[e + 3] | 128), {
|
|
10379
10379
|
sampleRate: d,
|
|
10380
10380
|
channelCount: h,
|
|
10381
10381
|
frameLength: y,
|
|
@@ -11081,19 +11081,19 @@ class ze {
|
|
|
11081
11081
|
let E = 0;
|
|
11082
11082
|
for (let C = L; C < x; C += ue)
|
|
11083
11083
|
if (e[C] === 71) {
|
|
11084
|
-
const B = !!(e[C + 1] & 64),
|
|
11085
|
-
let
|
|
11084
|
+
const B = !!(e[C + 1] & 64), R = Gi(e, C), b = (e[C + 3] & 48) >> 4;
|
|
11085
|
+
let _;
|
|
11086
11086
|
if (b > 1) {
|
|
11087
|
-
if (
|
|
11087
|
+
if (_ = C + 5 + e[C + 4], _ === C + ue)
|
|
11088
11088
|
continue;
|
|
11089
11089
|
} else
|
|
11090
|
-
|
|
11091
|
-
switch (
|
|
11090
|
+
_ = C + 4;
|
|
11091
|
+
switch (R) {
|
|
11092
11092
|
case u:
|
|
11093
11093
|
B && (d && (n = it(d)) && this.videoParser.parseAVCPES(a, c, n, !1, this._duration), d = {
|
|
11094
11094
|
data: [],
|
|
11095
11095
|
size: 0
|
|
11096
|
-
}), d && (d.data.push(e.subarray(
|
|
11096
|
+
}), d && (d.data.push(e.subarray(_, C + ue)), d.size += C + ue - _);
|
|
11097
11097
|
break;
|
|
11098
11098
|
case h:
|
|
11099
11099
|
if (B) {
|
|
@@ -11114,20 +11114,20 @@ class ze {
|
|
|
11114
11114
|
size: 0
|
|
11115
11115
|
};
|
|
11116
11116
|
}
|
|
11117
|
-
m && (m.data.push(e.subarray(
|
|
11117
|
+
m && (m.data.push(e.subarray(_, C + ue)), m.size += C + ue - _);
|
|
11118
11118
|
break;
|
|
11119
11119
|
case f:
|
|
11120
11120
|
B && (g && (n = it(g)) && this.parseID3PES(l, n), g = {
|
|
11121
11121
|
data: [],
|
|
11122
11122
|
size: 0
|
|
11123
|
-
}), g && (g.data.push(e.subarray(
|
|
11123
|
+
}), g && (g.data.push(e.subarray(_, C + ue)), g.size += C + ue - _);
|
|
11124
11124
|
break;
|
|
11125
11125
|
case 0:
|
|
11126
|
-
B && (
|
|
11126
|
+
B && (_ += e[_] + 1), T = this._pmtId = vc(e, _);
|
|
11127
11127
|
break;
|
|
11128
11128
|
case T: {
|
|
11129
|
-
B && (
|
|
11130
|
-
const P = xc(e,
|
|
11129
|
+
B && (_ += e[_] + 1);
|
|
11130
|
+
const P = xc(e, _, this.typeSupported, i);
|
|
11131
11131
|
u = P.videoPid, u > 0 && (a.pid = u, a.segmentCodec = P.segmentVideoCodec), h = P.audioPid, h > 0 && (o.pid = h, o.segmentCodec = P.segmentAudioCodec), f = P.id3Pid, f > 0 && (l.pid = f), y !== null && !v && (S.warn(`MPEG-TS PMT found at ${C} after unknown PID '${y}'. Backtracking to sync byte @${L} to parse all TS packets.`), y = null, C = L - 188), v = this.pmtParsed = !0;
|
|
11132
11132
|
break;
|
|
11133
11133
|
}
|
|
@@ -11135,7 +11135,7 @@ class ze {
|
|
|
11135
11135
|
case 8191:
|
|
11136
11136
|
break;
|
|
11137
11137
|
default:
|
|
11138
|
-
y =
|
|
11138
|
+
y = R;
|
|
11139
11139
|
break;
|
|
11140
11140
|
}
|
|
11141
11141
|
} else
|
|
@@ -12555,14 +12555,14 @@ class Mt {
|
|
|
12555
12555
|
const v = e.pid > -1, T = t.pid > -1, x = t.samples.length, L = e.samples.length > 0, E = o && x > 0 || x > 1;
|
|
12556
12556
|
if ((!v || L) && (!T || E) || this.ISGenerated || o) {
|
|
12557
12557
|
if (this.ISGenerated) {
|
|
12558
|
-
var C, B,
|
|
12558
|
+
var C, B, R, b;
|
|
12559
12559
|
const $ = this.videoTrackConfig;
|
|
12560
|
-
$ && (t.width !== $.width || t.height !== $.height || ((C = t.pixelRatio) == null ? void 0 : C[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((
|
|
12560
|
+
$ && (t.width !== $.width || t.height !== $.height || ((C = t.pixelRatio) == null ? void 0 : C[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((R = t.pixelRatio) == null ? void 0 : R[1]) !== ((b = $.pixelRatio) == null ? void 0 : b[1])) && this.resetInitSegment();
|
|
12561
12561
|
} else
|
|
12562
12562
|
d = this.generateIS(e, t, n, a);
|
|
12563
|
-
const
|
|
12563
|
+
const _ = this.isVideoContiguous;
|
|
12564
12564
|
let P = -1, w;
|
|
12565
|
-
if (E && (P = Cc(t.samples), !
|
|
12565
|
+
if (E && (P = Cc(t.samples), !_ && this.config.forceKeyFrameOnDiscontinuity))
|
|
12566
12566
|
if (m = !0, P > 0) {
|
|
12567
12567
|
S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
|
|
12568
12568
|
const $ = this.getVideoStartPts(t.samples);
|
|
@@ -12577,10 +12577,10 @@ class Mt {
|
|
|
12577
12577
|
if (L) {
|
|
12578
12578
|
if (e.samplerate || (S.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"), d = this.generateIS(e, t, n, a)), u = this.remuxAudio(e, g, this.isAudioContiguous, a, T || E || l === j.AUDIO ? y : void 0), E) {
|
|
12579
12579
|
const $ = u ? u.endPTS - u.startPTS : 0;
|
|
12580
|
-
t.inputTimeScale || (S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), d = this.generateIS(e, t, n, a)), c = this.remuxVideo(t, y,
|
|
12580
|
+
t.inputTimeScale || (S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), d = this.generateIS(e, t, n, a)), c = this.remuxVideo(t, y, _, $);
|
|
12581
12581
|
}
|
|
12582
12582
|
} else
|
|
12583
|
-
E && (c = this.remuxVideo(t, y,
|
|
12583
|
+
E && (c = this.remuxVideo(t, y, _, 0));
|
|
12584
12584
|
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
|
|
12585
12585
|
}
|
|
12586
12586
|
}
|
|
@@ -12691,9 +12691,9 @@ class Mt {
|
|
|
12691
12691
|
}
|
|
12692
12692
|
m = a[l - 1].dts;
|
|
12693
12693
|
const B = k + 4 * E + 8;
|
|
12694
|
-
let
|
|
12694
|
+
let R;
|
|
12695
12695
|
try {
|
|
12696
|
-
|
|
12696
|
+
R = new Uint8Array(B);
|
|
12697
12697
|
} catch (H) {
|
|
12698
12698
|
this.observer.emit(p.ERROR, p.ERROR, {
|
|
12699
12699
|
type: q.MUX_ERROR,
|
|
@@ -12705,15 +12705,15 @@ class Mt {
|
|
|
12705
12705
|
});
|
|
12706
12706
|
return;
|
|
12707
12707
|
}
|
|
12708
|
-
const b = new DataView(
|
|
12709
|
-
b.setUint32(0, B),
|
|
12710
|
-
let
|
|
12708
|
+
const b = new DataView(R.buffer);
|
|
12709
|
+
b.setUint32(0, B), R.set(A.types.mdat, 4);
|
|
12710
|
+
let _ = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, F = Number.NEGATIVE_INFINITY;
|
|
12711
12711
|
for (let H = 0; H < l; H++) {
|
|
12712
12712
|
const M = a[H], Q = M.units;
|
|
12713
12713
|
let Z = 0;
|
|
12714
12714
|
for (let ce = 0, fe = Q.length; ce < fe; ce++) {
|
|
12715
12715
|
const be = Q[ce], ft = be.data, si = be.data.byteLength;
|
|
12716
|
-
b.setUint32(d, si), d += 4,
|
|
12716
|
+
b.setUint32(d, si), d += 4, R.set(ft, d), d += si, Z += 4 + si;
|
|
12717
12717
|
}
|
|
12718
12718
|
let ee;
|
|
12719
12719
|
if (H < l - 1)
|
|
@@ -12722,7 +12722,7 @@ class Mt {
|
|
|
12722
12722
|
const ce = this.config, fe = H > 0 ? M.dts - a[H - 1].dts : L;
|
|
12723
12723
|
if (ee = H > 0 ? M.pts - a[H - 1].pts : L, ce.stretchShortVideoTrack && this.nextAudioPts !== null) {
|
|
12724
12724
|
const be = Math.floor(ce.maxBufferHole * n), ft = (r ? g + r * n : this.nextAudioPts) - M.pts;
|
|
12725
|
-
ft > be ? (h = ft - fe, h < 0 ? h = fe :
|
|
12725
|
+
ft > be ? (h = ft - fe, h < 0 ? h = fe : _ = !0, S.log(`[mp4-remuxer]: It is approximately ${ft / 90} ms to the next segment; using duration ${h / 90} ms for the last video frame.`)) : h = fe;
|
|
12726
12726
|
} else
|
|
12727
12727
|
h = fe;
|
|
12728
12728
|
}
|
|
@@ -12749,12 +12749,12 @@ class Mt {
|
|
|
12749
12749
|
}
|
|
12750
12750
|
}
|
|
12751
12751
|
}
|
|
12752
|
-
h =
|
|
12752
|
+
h = _ || !h ? L : h, this.nextAvcDts = u = m + h, this.videoSampleDuration = h, this.isVideoContiguous = !0;
|
|
12753
12753
|
const U = A.moof(e.sequenceNumber++, f, oe({}, e, {
|
|
12754
12754
|
samples: o
|
|
12755
12755
|
})), O = "video", V = {
|
|
12756
12756
|
data1: U,
|
|
12757
|
-
data2:
|
|
12757
|
+
data2: R,
|
|
12758
12758
|
startPTS: g / n,
|
|
12759
12759
|
endPTS: (y + h) / n,
|
|
12760
12760
|
startDTS: f / n,
|
|
@@ -12840,17 +12840,17 @@ class Mt {
|
|
|
12840
12840
|
const Q = H.byteLength;
|
|
12841
12841
|
y += Q, f.push(new tr(!0, c, Q, 0)), E = M;
|
|
12842
12842
|
}
|
|
12843
|
-
const
|
|
12844
|
-
if (!
|
|
12843
|
+
const R = f.length;
|
|
12844
|
+
if (!R)
|
|
12845
12845
|
return;
|
|
12846
12846
|
const b = f[f.length - 1];
|
|
12847
12847
|
this.nextAudioPts = v = E + l * b.duration;
|
|
12848
|
-
const
|
|
12848
|
+
const _ = h ? new Uint8Array(0) : A.moof(e.sequenceNumber++, L / l, oe({}, e, {
|
|
12849
12849
|
samples: f
|
|
12850
12850
|
}));
|
|
12851
12851
|
e.samples = [];
|
|
12852
12852
|
const P = L / a, w = v / a, F = {
|
|
12853
|
-
data1:
|
|
12853
|
+
data1: _,
|
|
12854
12854
|
data2: k,
|
|
12855
12855
|
startPTS: P,
|
|
12856
12856
|
endPTS: w,
|
|
@@ -12859,7 +12859,7 @@ class Mt {
|
|
|
12859
12859
|
type: "audio",
|
|
12860
12860
|
hasAudio: !0,
|
|
12861
12861
|
hasVideo: !1,
|
|
12862
|
-
nb:
|
|
12862
|
+
nb: R
|
|
12863
12863
|
};
|
|
12864
12864
|
return this.isAudioContiguous = !0, F;
|
|
12865
12865
|
}
|
|
@@ -12936,7 +12936,7 @@ class tr {
|
|
|
12936
12936
|
};
|
|
12937
12937
|
}
|
|
12938
12938
|
}
|
|
12939
|
-
class
|
|
12939
|
+
class Rc {
|
|
12940
12940
|
constructor() {
|
|
12941
12941
|
this.emitInitSegment = !1, this.audioCodec = void 0, this.videoCodec = void 0, this.initData = void 0, this.initPTS = null, this.initTracks = void 0, this.lastEndTime = null;
|
|
12942
12942
|
}
|
|
@@ -13006,7 +13006,7 @@ class _c {
|
|
|
13006
13006
|
return S.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."), d;
|
|
13007
13007
|
this.emitInitSegment && (f.tracks = this.initTracks, this.emitInitSegment = !1);
|
|
13008
13008
|
const g = No(h, m), y = Mo(m, h), v = y === null ? n : y;
|
|
13009
|
-
(
|
|
13009
|
+
(_c(c, v, n, g) || f.timescale !== c.timescale && a) && (f.initPTS = v - n, c && c.timescale === 1 && S.warn(`Adjusting initPTS by ${f.initPTS - c.baseTime}`), this.initPTS = c = {
|
|
13010
13010
|
baseTime: f.initPTS,
|
|
13011
13011
|
timescale: 1
|
|
13012
13012
|
});
|
|
@@ -13030,7 +13030,7 @@ class _c {
|
|
|
13030
13030
|
return d.audio = C.type === "audio" ? C : void 0, d.video = C.type !== "audio" ? C : void 0, d.initSegment = f, d.id3 = Kn(i, n, c, c), r.samples.length && (d.text = zn(r, n, c)), d;
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
13033
|
-
function
|
|
13033
|
+
function _c(s, e, t, i) {
|
|
13034
13034
|
if (s === null)
|
|
13035
13035
|
return !0;
|
|
13036
13036
|
const r = Math.max(i, 1), n = e - s.baseTime / s.timescale;
|
|
@@ -13058,7 +13058,7 @@ try {
|
|
|
13058
13058
|
}
|
|
13059
13059
|
const Nt = [{
|
|
13060
13060
|
demux: fc,
|
|
13061
|
-
remux:
|
|
13061
|
+
remux: Rc
|
|
13062
13062
|
}, {
|
|
13063
13063
|
demux: ze,
|
|
13064
13064
|
remux: Mt
|
|
@@ -13106,13 +13106,13 @@ class sr {
|
|
|
13106
13106
|
if (L && L.method === "AES-128") {
|
|
13107
13107
|
const B = this.getDecrypter();
|
|
13108
13108
|
if (B.isSync()) {
|
|
13109
|
-
let
|
|
13110
|
-
if (i.part > -1 && (
|
|
13109
|
+
let R = B.softwareDecrypt(a, L.key.buffer, L.iv.buffer);
|
|
13110
|
+
if (i.part > -1 && (R = B.flush()), !R)
|
|
13111
13111
|
return n.executeEnd = Ve(), vi(i);
|
|
13112
|
-
a = new Uint8Array(
|
|
13112
|
+
a = new Uint8Array(R);
|
|
13113
13113
|
} else
|
|
13114
|
-
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((
|
|
13115
|
-
const b = this.push(
|
|
13114
|
+
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((R) => {
|
|
13115
|
+
const b = this.push(R, null, i);
|
|
13116
13116
|
return this.decryptionPromise = null, b;
|
|
13117
13117
|
}), this.decryptionPromise;
|
|
13118
13118
|
}
|
|
@@ -13454,7 +13454,7 @@ class Yn {
|
|
|
13454
13454
|
transmuxer: f
|
|
13455
13455
|
} = this, m = a ? a.start : n.start, g = n.decryptdata, y = this.frag, v = !(y && n.cc === y.cc), T = !(y && c.level === y.level), x = y ? c.sn - y.sn : -1, L = this.part ? c.part - this.part.index : -1, E = x === 0 && c.id > 1 && c.id === (y == null ? void 0 : y.stats.chunkCount), k = !T && (x === 1 || x === 0 && (L === 1 || E && L <= 0)), C = self.performance.now();
|
|
13456
13456
|
(T || x || n.stats.parsing.start === 0) && (n.stats.parsing.start = C), a && (L || !k) && (a.stats.parsing.start = C);
|
|
13457
|
-
const B = !(y && ((d = n.initSegment) == null ? void 0 : d.url) === ((h = y.initSegment) == null ? void 0 : h.url)),
|
|
13457
|
+
const B = !(y && ((d = n.initSegment) == null ? void 0 : d.url) === ((h = y.initSegment) == null ? void 0 : h.url)), R = new wc(v, k, l, T, m, B);
|
|
13458
13458
|
if (!k || v || B) {
|
|
13459
13459
|
S.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id}
|
|
13460
13460
|
discontinuity: ${v}
|
|
@@ -13472,14 +13472,14 @@ class Yn {
|
|
|
13472
13472
|
data: e,
|
|
13473
13473
|
decryptdata: g,
|
|
13474
13474
|
chunkMeta: c,
|
|
13475
|
-
state:
|
|
13475
|
+
state: R
|
|
13476
13476
|
}, e instanceof ArrayBuffer ? [e] : []);
|
|
13477
13477
|
else if (f) {
|
|
13478
|
-
const b = f.push(e, g, c,
|
|
13479
|
-
Bt(b) ? (f.async = !0, b.then((
|
|
13480
|
-
this.handleTransmuxComplete(
|
|
13481
|
-
}).catch((
|
|
13482
|
-
this.transmuxerError(
|
|
13478
|
+
const b = f.push(e, g, c, R);
|
|
13479
|
+
Bt(b) ? (f.async = !0, b.then((_) => {
|
|
13480
|
+
this.handleTransmuxComplete(_);
|
|
13481
|
+
}).catch((_) => {
|
|
13482
|
+
this.transmuxerError(_, c, "transmuxer-interface push error");
|
|
13483
13483
|
})) : (f.async = !1, this.handleTransmuxComplete(b));
|
|
13484
13484
|
}
|
|
13485
13485
|
}
|
|
@@ -15608,7 +15608,7 @@ const lr = {
|
|
|
15608
15608
|
}, qn = function(e) {
|
|
15609
15609
|
let t = e;
|
|
15610
15610
|
return lr.hasOwnProperty(e) && (t = lr[e]), String.fromCharCode(t);
|
|
15611
|
-
},
|
|
15611
|
+
}, _e = 15, Ue = 100, Gc = {
|
|
15612
15612
|
17: 1,
|
|
15613
15613
|
18: 3,
|
|
15614
15614
|
21: 5,
|
|
@@ -15793,19 +15793,19 @@ class jc {
|
|
|
15793
15793
|
}
|
|
15794
15794
|
class xi {
|
|
15795
15795
|
constructor(e) {
|
|
15796
|
-
this.rows = [], this.currRow =
|
|
15797
|
-
for (let t = 0; t <
|
|
15796
|
+
this.rows = [], this.currRow = _e - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
|
|
15797
|
+
for (let t = 0; t < _e; t++)
|
|
15798
15798
|
this.rows.push(new jc(e));
|
|
15799
15799
|
this.logger = e;
|
|
15800
15800
|
}
|
|
15801
15801
|
reset() {
|
|
15802
|
-
for (let e = 0; e <
|
|
15802
|
+
for (let e = 0; e < _e; e++)
|
|
15803
15803
|
this.rows[e].clear();
|
|
15804
|
-
this.currRow =
|
|
15804
|
+
this.currRow = _e - 1;
|
|
15805
15805
|
}
|
|
15806
15806
|
equals(e) {
|
|
15807
15807
|
let t = !0;
|
|
15808
|
-
for (let i = 0; i <
|
|
15808
|
+
for (let i = 0; i < _e; i++)
|
|
15809
15809
|
if (!this.rows[i].equals(e.rows[i])) {
|
|
15810
15810
|
t = !1;
|
|
15811
15811
|
break;
|
|
@@ -15813,12 +15813,12 @@ class xi {
|
|
|
15813
15813
|
return t;
|
|
15814
15814
|
}
|
|
15815
15815
|
copy(e) {
|
|
15816
|
-
for (let t = 0; t <
|
|
15816
|
+
for (let t = 0; t < _e; t++)
|
|
15817
15817
|
this.rows[t].copy(e.rows[t]);
|
|
15818
15818
|
}
|
|
15819
15819
|
isEmpty() {
|
|
15820
15820
|
let e = !0;
|
|
15821
|
-
for (let t = 0; t <
|
|
15821
|
+
for (let t = 0; t < _e; t++)
|
|
15822
15822
|
if (!this.rows[t].isEmpty()) {
|
|
15823
15823
|
e = !1;
|
|
15824
15824
|
break;
|
|
@@ -15850,7 +15850,7 @@ class xi {
|
|
|
15850
15850
|
this.logger.log(2, () => "pacData = " + JSON.stringify(e));
|
|
15851
15851
|
let t = e.row - 1;
|
|
15852
15852
|
if (this.nrRollUpRows && t < this.nrRollUpRows - 1 && (t = this.nrRollUpRows - 1), this.nrRollUpRows && this.currRow !== t) {
|
|
15853
|
-
for (let o = 0; o <
|
|
15853
|
+
for (let o = 0; o < _e; o++)
|
|
15854
15854
|
this.rows[o].clear();
|
|
15855
15855
|
const n = this.currRow + 1 - this.nrRollUpRows, a = this.lastOutputScreen;
|
|
15856
15856
|
if (a) {
|
|
@@ -15900,7 +15900,7 @@ class xi {
|
|
|
15900
15900
|
e = e || !1;
|
|
15901
15901
|
const t = [];
|
|
15902
15902
|
let i = "", r = -1;
|
|
15903
|
-
for (let n = 0; n <
|
|
15903
|
+
for (let n = 0; n < _e; n++) {
|
|
15904
15904
|
const a = this.rows[n].getTextString();
|
|
15905
15905
|
a && (r = n + 1, e ? t.push("Row " + r + ": '" + a + "'") : t.push(a.trim()));
|
|
15906
15906
|
}
|
|
@@ -15913,10 +15913,10 @@ class xi {
|
|
|
15913
15913
|
}
|
|
15914
15914
|
class cr {
|
|
15915
15915
|
constructor(e, t, i) {
|
|
15916
|
-
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[
|
|
15916
|
+
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[_e - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
|
|
15917
15917
|
}
|
|
15918
15918
|
reset() {
|
|
15919
|
-
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[
|
|
15919
|
+
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[_e - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
|
|
15920
15920
|
}
|
|
15921
15921
|
getHandler() {
|
|
15922
15922
|
return this.outputFilter;
|
|
@@ -16157,7 +16157,7 @@ function hr() {
|
|
|
16157
16157
|
b: null
|
|
16158
16158
|
};
|
|
16159
16159
|
}
|
|
16160
|
-
class
|
|
16160
|
+
class _t {
|
|
16161
16161
|
constructor(e, t) {
|
|
16162
16162
|
this.timelineController = void 0, this.cueRanges = [], this.trackName = void 0, this.startTime = null, this.endTime = null, this.screen = null, this.timelineController = e, this.trackName = t;
|
|
16163
16163
|
}
|
|
@@ -16201,7 +16201,7 @@ var gs = function() {
|
|
|
16201
16201
|
enumerable: !0
|
|
16202
16202
|
};
|
|
16203
16203
|
u.hasBeenReset = !1;
|
|
16204
|
-
let h = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, C = "middle", B = 50,
|
|
16204
|
+
let h = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, C = "middle", B = 50, R = "middle";
|
|
16205
16205
|
Object.defineProperty(u, "id", n({}, d, {
|
|
16206
16206
|
get: function() {
|
|
16207
16207
|
return h;
|
|
@@ -16253,10 +16253,10 @@ var gs = function() {
|
|
|
16253
16253
|
return T;
|
|
16254
16254
|
},
|
|
16255
16255
|
set: function(b) {
|
|
16256
|
-
const
|
|
16257
|
-
if (
|
|
16256
|
+
const _ = i(b);
|
|
16257
|
+
if (_ === !1)
|
|
16258
16258
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16259
|
-
T =
|
|
16259
|
+
T = _, this.hasBeenReset = !0;
|
|
16260
16260
|
}
|
|
16261
16261
|
})), Object.defineProperty(u, "snapToLines", n({}, d, {
|
|
16262
16262
|
get: function() {
|
|
@@ -16279,10 +16279,10 @@ var gs = function() {
|
|
|
16279
16279
|
return E;
|
|
16280
16280
|
},
|
|
16281
16281
|
set: function(b) {
|
|
16282
|
-
const
|
|
16283
|
-
if (!
|
|
16282
|
+
const _ = r(b);
|
|
16283
|
+
if (!_)
|
|
16284
16284
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16285
|
-
E =
|
|
16285
|
+
E = _, this.hasBeenReset = !0;
|
|
16286
16286
|
}
|
|
16287
16287
|
})), Object.defineProperty(u, "position", n({}, d, {
|
|
16288
16288
|
get: function() {
|
|
@@ -16298,10 +16298,10 @@ var gs = function() {
|
|
|
16298
16298
|
return C;
|
|
16299
16299
|
},
|
|
16300
16300
|
set: function(b) {
|
|
16301
|
-
const
|
|
16302
|
-
if (!
|
|
16301
|
+
const _ = r(b);
|
|
16302
|
+
if (!_)
|
|
16303
16303
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16304
|
-
C =
|
|
16304
|
+
C = _, this.hasBeenReset = !0;
|
|
16305
16305
|
}
|
|
16306
16306
|
})), Object.defineProperty(u, "size", n({}, d, {
|
|
16307
16307
|
get: function() {
|
|
@@ -16314,13 +16314,13 @@ var gs = function() {
|
|
|
16314
16314
|
}
|
|
16315
16315
|
})), Object.defineProperty(u, "align", n({}, d, {
|
|
16316
16316
|
get: function() {
|
|
16317
|
-
return
|
|
16317
|
+
return R;
|
|
16318
16318
|
},
|
|
16319
16319
|
set: function(b) {
|
|
16320
|
-
const
|
|
16321
|
-
if (!
|
|
16320
|
+
const _ = r(b);
|
|
16321
|
+
if (!_)
|
|
16322
16322
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16323
|
-
|
|
16323
|
+
R = _, this.hasBeenReset = !0;
|
|
16324
16324
|
}
|
|
16325
16325
|
})), u.displayState = void 0;
|
|
16326
16326
|
}
|
|
@@ -16786,7 +16786,7 @@ class lu {
|
|
|
16786
16786
|
}
|
|
16787
16787
|
initCea608Parsers() {
|
|
16788
16788
|
if (this.config.enableCEA708Captions && (!this.cea608Parser1 || !this.cea608Parser2)) {
|
|
16789
|
-
const e = new
|
|
16789
|
+
const e = new _t(this, "textTrack1"), t = new _t(this, "textTrack2"), i = new _t(this, "textTrack3"), r = new _t(this, "textTrack4");
|
|
16790
16790
|
this.cea608Parser1 = new ur(1, e, t), this.cea608Parser2 = new ur(3, i, r);
|
|
16791
16791
|
}
|
|
16792
16792
|
}
|
|
@@ -17962,17 +17962,17 @@ function aa(s, e) {
|
|
|
17962
17962
|
} else
|
|
17963
17963
|
return Math.round(s * t) / t;
|
|
17964
17964
|
}
|
|
17965
|
-
function
|
|
17965
|
+
function Ru(s) {
|
|
17966
17966
|
const e = aa(s, 3);
|
|
17967
17967
|
if (Math.floor(Math.abs(e)).toString().length > 12)
|
|
17968
17968
|
throw Be(s, yu);
|
|
17969
17969
|
const t = e.toString();
|
|
17970
17970
|
return t.includes(".") ? t : `${t}.0`;
|
|
17971
17971
|
}
|
|
17972
|
-
const
|
|
17972
|
+
const _u = "String";
|
|
17973
17973
|
function Du(s) {
|
|
17974
17974
|
if (Tu.test(s))
|
|
17975
|
-
throw Be(s,
|
|
17975
|
+
throw Be(s, _u);
|
|
17976
17976
|
return `"${s.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
17977
17977
|
}
|
|
17978
17978
|
function Iu(s) {
|
|
@@ -17989,7 +17989,7 @@ function zi(s) {
|
|
|
17989
17989
|
case "number":
|
|
17990
17990
|
if (!z(s))
|
|
17991
17991
|
throw Be(s, vr);
|
|
17992
|
-
return Number.isInteger(s) ? na(s) :
|
|
17992
|
+
return Number.isInteger(s) ? na(s) : Ru(s);
|
|
17993
17993
|
case "string":
|
|
17994
17994
|
return Du(s);
|
|
17995
17995
|
case "symbol":
|
|
@@ -18375,7 +18375,7 @@ class ju {
|
|
|
18375
18375
|
const {
|
|
18376
18376
|
errorAction: i
|
|
18377
18377
|
} = t;
|
|
18378
|
-
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags ===
|
|
18378
|
+
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags === Re.MoveAllAlternatesMatchingHost) {
|
|
18379
18379
|
const r = this.levels;
|
|
18380
18380
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18381
18381
|
if (t.context) {
|
|
@@ -18416,7 +18416,7 @@ class ju {
|
|
|
18416
18416
|
return;
|
|
18417
18417
|
const o = this.hls.nextLoadLevel, l = this.hls.levels[o];
|
|
18418
18418
|
if (t = this.getLevelsForPathway(a), t.length > 0) {
|
|
18419
|
-
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a,
|
|
18419
|
+
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a, Rn(t), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
18420
18420
|
levels: t
|
|
18421
18421
|
});
|
|
18422
18422
|
const c = this.hls.levels[o];
|
|
@@ -19230,15 +19230,15 @@ class cd extends as {
|
|
|
19230
19230
|
} = f, b = `${`${k || "."}-`}${u.bitrate}-${C}-${L}-${x}-${B}-${E}`;
|
|
19231
19231
|
if (n[b])
|
|
19232
19232
|
if (n[b].uri !== u.url && !u.attrs["PATHWAY-ID"]) {
|
|
19233
|
-
const
|
|
19234
|
-
u.attrs["PATHWAY-ID"] = new Array(
|
|
19233
|
+
const _ = a[b] += 1;
|
|
19234
|
+
u.attrs["PATHWAY-ID"] = new Array(_ + 1).join(".");
|
|
19235
19235
|
const P = new ct(u);
|
|
19236
19236
|
n[b] = P, r.push(P);
|
|
19237
19237
|
} else
|
|
19238
19238
|
n[b].addGroupId("audio", f.AUDIO), n[b].addGroupId("text", f.SUBTITLES);
|
|
19239
19239
|
else {
|
|
19240
|
-
const
|
|
19241
|
-
n[b] =
|
|
19240
|
+
const _ = new ct(u);
|
|
19241
|
+
n[b] = _, a[b] = 1, r.push(_);
|
|
19242
19242
|
}
|
|
19243
19243
|
}), this.filterAndSortMediaOptions(r, t, o, l, c);
|
|
19244
19244
|
}
|
|
@@ -19284,7 +19284,7 @@ class cd extends as {
|
|
|
19284
19284
|
if (m.videoRange !== g.videoRange)
|
|
19285
19285
|
return zt.indexOf(m.videoRange) - zt.indexOf(g.videoRange);
|
|
19286
19286
|
if (m.videoCodec !== g.videoCodec) {
|
|
19287
|
-
const y =
|
|
19287
|
+
const y = _s(m.videoCodec), v = _s(g.videoCodec);
|
|
19288
19288
|
if (y !== v)
|
|
19289
19289
|
return v - y;
|
|
19290
19290
|
}
|
|
@@ -19470,7 +19470,7 @@ class cd extends as {
|
|
|
19470
19470
|
removeLevel(e) {
|
|
19471
19471
|
var t;
|
|
19472
19472
|
const i = this._levels.filter((r, n) => n !== e ? !0 : (this.steering && this.steering.removeLevel(r), r === this.currentLevel && (this.currentLevel = null, this.currentLevelIndex = -1, r.details && r.details.fragments.forEach((a) => a.level = -1)), !1));
|
|
19473
|
-
|
|
19473
|
+
Rn(i), this._levels = i, this.currentLevelIndex > -1 && (t = this.currentLevel) != null && t.details && (this.currentLevelIndex = this.currentLevel.details.fragments[0].level), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
19474
19474
|
levels: i
|
|
19475
19475
|
});
|
|
19476
19476
|
}
|
|
@@ -20410,8 +20410,8 @@ class vd extends cs {
|
|
|
20410
20410
|
endDTS: C
|
|
20411
20411
|
};
|
|
20412
20412
|
else if (d.firstKeyFrame && d.independent && a.id === 1 && !x && (this.couldBacktrack = !0), d.dropped && d.independent) {
|
|
20413
|
-
const B = this.getMainFwdBufferInfo(),
|
|
20414
|
-
if (!T &&
|
|
20413
|
+
const B = this.getMainFwdBufferInfo(), R = (B ? B.end : this.getLoadPosition()) + this.config.maxBufferHole, b = d.firstKeyFramePTS ? d.firstKeyFramePTS : L;
|
|
20414
|
+
if (!T && R < b - this.config.maxBufferHole && !x) {
|
|
20415
20415
|
this.backtrack(l);
|
|
20416
20416
|
return;
|
|
20417
20417
|
} else
|
|
@@ -20609,8 +20609,8 @@ class Se {
|
|
|
20609
20609
|
C && E.push(new C(this, T, x)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
|
|
20610
20610
|
const B = t.subtitleStreamController;
|
|
20611
20611
|
B && E.push(new B(this, T, x)), this.createController(t.timelineController, k), x.emeController = this.emeController = this.createController(t.emeController, k), this.cmcdController = this.createController(t.cmcdController, k), this.latencyController = this.createController(cl, k), this.coreComponents = k, E.push(l);
|
|
20612
|
-
const
|
|
20613
|
-
typeof
|
|
20612
|
+
const R = l.onErrorOut;
|
|
20613
|
+
typeof R == "function" && this.on(p.ERROR, R, l);
|
|
20614
20614
|
}
|
|
20615
20615
|
createController(e, t) {
|
|
20616
20616
|
if (e) {
|
|
@@ -21413,7 +21413,7 @@ const ga = Ld.exports, Cd = {
|
|
|
21413
21413
|
}
|
|
21414
21414
|
}
|
|
21415
21415
|
};
|
|
21416
|
-
var
|
|
21416
|
+
var Rd = function() {
|
|
21417
21417
|
var e = this, t = e._self._c;
|
|
21418
21418
|
return t("div", { staticClass: "e-relative e-flex e-items-center e-justify-between e-pt-2 e-pb-3" }, [t("div", { staticClass: "e-w-1/3" }, [t("EToggleSwitch", { attrs: { options: e.switchOptions, color: "primary", size: "sm" }, on: { input: (i) => e.recordingType = i } })], 1), t("div", { staticClass: "e-m-auto e-flex e-flex-1 e-justify-center e-items-center e-gap-6" }, [t("button", { staticClass: "e-select-none e-duration-200 e-cursor-pointer e-font-medium e-text-lg text-drop-shadow e-text-white hover:hover-filter-drop e-flex e-justify-center e-items-center e-align-middle", attrs: { text: "", icon: "" }, on: { click: function(i) {
|
|
21419
21419
|
return e.updateFrameIndex(-10);
|
|
@@ -21460,10 +21460,10 @@ var _d = function() {
|
|
|
21460
21460
|
"fa-expand": !e.isFullscreen,
|
|
21461
21461
|
"fa-compress": e.isFullscreen
|
|
21462
21462
|
}, on: { click: e.toggleFullscreen } })])]);
|
|
21463
|
-
},
|
|
21463
|
+
}, _d = [], Dd = /* @__PURE__ */ pe(
|
|
21464
21464
|
Cd,
|
|
21465
|
-
_d,
|
|
21466
21465
|
Rd,
|
|
21466
|
+
_d,
|
|
21467
21467
|
!1,
|
|
21468
21468
|
null,
|
|
21469
21469
|
null,
|
|
@@ -21995,7 +21995,7 @@ var Zd = function() {
|
|
|
21995
21995
|
null,
|
|
21996
21996
|
null
|
|
21997
21997
|
);
|
|
21998
|
-
const eh = Jd.exports,
|
|
21998
|
+
const eh = Jd.exports, Ri = new Intl.NumberFormat(void 0, {
|
|
21999
21999
|
minimumIntegerDigits: 2
|
|
22000
22000
|
}), Ar = [
|
|
22001
22001
|
"play",
|
|
@@ -22009,11 +22009,11 @@ const eh = Jd.exports, _i = new Intl.NumberFormat(void 0, {
|
|
|
22009
22009
|
"canplaythrough",
|
|
22010
22010
|
"statechanged",
|
|
22011
22011
|
"error"
|
|
22012
|
-
],
|
|
22012
|
+
], _i = (s) => {
|
|
22013
22013
|
const e = Math.floor(s % 60), t = Math.floor(s / 60) % 60, i = Math.floor(s / 3600);
|
|
22014
|
-
return i === 0 ? `${t}:${
|
|
22014
|
+
return i === 0 ? `${t}:${Ri.format(e)}` : `${i}:${Ri.format(
|
|
22015
22015
|
t
|
|
22016
|
-
)}:${
|
|
22016
|
+
)}:${Ri.format(e)}`;
|
|
22017
22017
|
}, th = {
|
|
22018
22018
|
name: "VideoPlayer",
|
|
22019
22019
|
components: {
|
|
@@ -22122,6 +22122,10 @@ const eh = Jd.exports, _i = new Intl.NumberFormat(void 0, {
|
|
|
22122
22122
|
disablePlayPauseAnimation: {
|
|
22123
22123
|
type: Boolean,
|
|
22124
22124
|
default: !1
|
|
22125
|
+
},
|
|
22126
|
+
isWebRtc: {
|
|
22127
|
+
type: Boolean,
|
|
22128
|
+
default: !1
|
|
22125
22129
|
}
|
|
22126
22130
|
},
|
|
22127
22131
|
data() {
|
|
@@ -22221,7 +22225,7 @@ const eh = Jd.exports, _i = new Intl.NumberFormat(void 0, {
|
|
|
22221
22225
|
this.pauseOnClick && this.togglePlay();
|
|
22222
22226
|
},
|
|
22223
22227
|
handle404Error() {
|
|
22224
|
-
this.isError = !0, this.isLoading = !1, this.playing = !1;
|
|
22228
|
+
this.isWebRtc || (this.isError = !0, this.isLoading = !1, this.playing = !1);
|
|
22225
22229
|
},
|
|
22226
22230
|
handleHlsError(s, e) {
|
|
22227
22231
|
var a;
|
|
@@ -22268,7 +22272,7 @@ const eh = Jd.exports, _i = new Intl.NumberFormat(void 0, {
|
|
|
22268
22272
|
if (!e)
|
|
22269
22273
|
return;
|
|
22270
22274
|
const t = this.$refs.timelineContainer;
|
|
22271
|
-
s === "loadeddata" && (this.videoLength =
|
|
22275
|
+
s === "loadeddata" && (this.videoLength = _i(e.duration)), t && (s === "timeupdate" && (this.percentagePlayed = (e == null ? void 0 : e.currentTime) / (e == null ? void 0 : e.duration) * 100, t == null || t.style.setProperty(
|
|
22272
22276
|
"--progress-position",
|
|
22273
22277
|
this.percentagePlayed.toString()
|
|
22274
22278
|
)), this.$emit(s, { event, player: e }));
|
|
@@ -22370,13 +22374,13 @@ const eh = Jd.exports, _i = new Intl.NumberFormat(void 0, {
|
|
|
22370
22374
|
},
|
|
22371
22375
|
getDuration() {
|
|
22372
22376
|
const s = this.$refs.player;
|
|
22373
|
-
this.videoLength =
|
|
22377
|
+
this.videoLength = _i(s.duration), this.videoDuration = s.duration;
|
|
22374
22378
|
},
|
|
22375
22379
|
handleTimeUpdate() {
|
|
22376
22380
|
const s = this.$refs.player, e = this.$refs.timelineContainer;
|
|
22377
22381
|
if (!s || !e)
|
|
22378
22382
|
return;
|
|
22379
|
-
this.currentTime =
|
|
22383
|
+
this.currentTime = _i(s.currentTime), this.realtime = s.currentTime;
|
|
22380
22384
|
const t = Number(this.realtime) / Number(this.videoDuration);
|
|
22381
22385
|
e.style.setProperty(
|
|
22382
22386
|
"--progress-position",
|
|
@@ -22445,11 +22449,11 @@ var ih = function() {
|
|
|
22445
22449
|
return [e._t("zoomable-overlay")];
|
|
22446
22450
|
}, proxy: !0 }], null, !0) }, [t("div", { staticClass: "e-w-full e-h-full e-relative" }, [e.blurBackground ? t("img", { staticClass: "e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster", attrs: { src: e.videoOptions.poster, alt: "background-image" }, on: { error: function(i) {
|
|
22447
22451
|
return e.$emit("poster-error", i);
|
|
22448
|
-
} } }) : e._e()]), t("video", e._g(e._b({ ref: "player", staticClass: "e-w-full e-h-full e-absolute e-inset-0 e-z-50", attrs: { controls: !1, preload: "auto" }, on: { ended: e.handleEnded, click: e.onContainerClick, loadedmetadata: e.getDuration, timeupdate: e.handleTimeUpdate, loadeddata: e.handleLoading } }, "video", e.videoOptions, !1), e.videoListeners), e._l(e.sourceItems, function(i) {
|
|
22452
|
+
} } }) : e._e()]), t("video", e._g(e._b({ ref: "player", staticClass: "e-w-full e-h-full e-absolute e-inset-0 e-z-50", attrs: { controls: !1, preload: "auto" }, on: { ended: e.handleEnded, click: e.onContainerClick, loadedmetadata: e.getDuration, timeupdate: e.handleTimeUpdate, loadeddata: e.handleLoading } }, "video", e.videoOptions, !1), e.videoListeners), [e.isWebRtc ? e._e() : e._l(e.sourceItems, function(i) {
|
|
22449
22453
|
return t("source", e._g({ key: i.src, attrs: { src: i.src, type: i.type }, on: { error: e.handle404Error } }, e.videoListeners));
|
|
22450
|
-
}),
|
|
22454
|
+
})], 2)]) : t("video", e._g(e._b({ ref: "player", staticClass: "e-w-full e-h-full", attrs: { controls: !1, preload: "auto" }, on: { ended: e.handleEnded, click: e.onContainerClick, loadedmetadata: e.getDuration, timeupdate: e.handleTimeUpdate, loadeddata: e.handleLoading } }, "video", e.videoOptions, !1), e.videoListeners), [e.isWebRtc ? e._e() : e._l(e.sourceItems, function(i) {
|
|
22451
22455
|
return t("source", e._g({ key: i.src, attrs: { src: i.src, type: i.type }, on: { error: e.handle404Error } }, e.videoListeners));
|
|
22452
|
-
}),
|
|
22456
|
+
})], 2), e.isLoading ? t("div", { staticClass: "spinner-container" }, [t("ESpinner", { attrs: { color: !e.isHls && !e.isWebRtc, size: e.isHls || e.isWebRtc ? "7xl" : "9xl", opacity: "0.6", dark: !0 } })], 1) : e._e(), e._t("default"), e.playPauseAnimation && !e.disablePlayPauseAnimation ? t("EVideoPlayerOverlayAnimation", { attrs: { "is-playing": e.isPlaying } }) : e._e(), e.isError ? t("div", { staticClass: "spinner-container e-gap-3" }, [t("i", { staticClass: "fa-solid fa-video-slash fa-2xl e-align-middle" }), t("span", [e._v("This video file cannot be played.")])]) : e._e(), e.isRecordings ? t("EVideoPlayerControls", { attrs: { "is-playing": e.playing, "is-live": e.isLive, "current-time": e.currentTime, "video-length": e.videoLength, "is-fullscreen": e.isFullscreen, frames: e.progressBarFrames, events: e.progressBarEvents, "frame-index": e.progressBarFrameIndex, "preloaded-frames": e.progressBarPreloadedFrames, "thumbnails-urls": e.thumbnailsUrls, timezone: e.timezone }, on: { "download-thumbnail": (i) => e.$emit("download-thumbnail", i), "toggle-play-pause": e.togglePlay, "toggle-fullscreen": e.toggleFullscreenMode, "timeline-update": e.handleTimelineUpdate, "enable-live-view": function(i) {
|
|
22453
22457
|
return e.$emit("enable-live-view");
|
|
22454
22458
|
}, "toggle-video-mode": (i) => e.$emit("toggle-video-mode", i), "frame-index-change": (i) => e.$emit("frame-index-change", i) } }) : t("div", { class: ["video-controls-container", e.withControls] }, [t("div", { staticClass: "controls" }, [t("button", { ref: "playPauseBtn", staticClass: "play-pause-btn fa-lg fa-solid", class: {
|
|
22455
22459
|
"fa-play": !e.playing,
|
|
@@ -22464,7 +22468,7 @@ var ih = function() {
|
|
|
22464
22468
|
sh,
|
|
22465
22469
|
!1,
|
|
22466
22470
|
null,
|
|
22467
|
-
"
|
|
22471
|
+
"207d017d",
|
|
22468
22472
|
null,
|
|
22469
22473
|
null
|
|
22470
22474
|
);
|
|
@@ -22492,7 +22496,7 @@ const nh = rh.exports, Zt = (s) => {
|
|
|
22492
22496
|
}, wi = (s) => (e) => {
|
|
22493
22497
|
const t = I.utcFormat("%M")(e);
|
|
22494
22498
|
return Number.parseInt(t) % s !== 0;
|
|
22495
|
-
},
|
|
22499
|
+
}, Rr = (s) => (e) => {
|
|
22496
22500
|
const t = I.utcFormat("%M")(e), i = I.utcFormat("%S")(e);
|
|
22497
22501
|
return Number.parseInt(t) % s !== 0 && Number.parseInt(i) === 0;
|
|
22498
22502
|
}, K = {
|
|
@@ -22623,12 +22627,12 @@ const ah = {
|
|
|
22623
22627
|
},
|
|
22624
22628
|
{
|
|
22625
22629
|
precision: K._20_seconds,
|
|
22626
|
-
interval: (Dr = I.utcSecond.every(20)) == null ? void 0 : Dr.filter(
|
|
22630
|
+
interval: (Dr = I.utcSecond.every(20)) == null ? void 0 : Dr.filter(Rr(2)),
|
|
22627
22631
|
format: Di
|
|
22628
22632
|
},
|
|
22629
22633
|
{
|
|
22630
22634
|
precision: K._30_seconds,
|
|
22631
|
-
interval: (Ir = I.utcSecond.every(30)) == null ? void 0 : Ir.filter(
|
|
22635
|
+
interval: (Ir = I.utcSecond.every(30)) == null ? void 0 : Ir.filter(Rr(2)),
|
|
22632
22636
|
format: Di
|
|
22633
22637
|
},
|
|
22634
22638
|
{
|
|
@@ -24644,7 +24648,7 @@ var xh = function() {
|
|
|
24644
24648
|
null,
|
|
24645
24649
|
null
|
|
24646
24650
|
);
|
|
24647
|
-
const Sh = Eh.exports,
|
|
24651
|
+
const Sh = Eh.exports, _r = {
|
|
24648
24652
|
EAvatar: La,
|
|
24649
24653
|
EBadge: Nr,
|
|
24650
24654
|
EIcon: Ua,
|
|
@@ -24658,8 +24662,8 @@ const Sh = Eh.exports, Rr = {
|
|
|
24658
24662
|
EZoomable: pa
|
|
24659
24663
|
}, wh = {
|
|
24660
24664
|
install(s) {
|
|
24661
|
-
Object.keys(
|
|
24662
|
-
s.component(e,
|
|
24665
|
+
Object.keys(_r).forEach((e) => {
|
|
24666
|
+
s.component(e, _r[e]);
|
|
24663
24667
|
}), oh.forEach(({ name: e, definition: t }) => {
|
|
24664
24668
|
s.directive(e, t);
|
|
24665
24669
|
});
|
|
@@ -24667,7 +24671,7 @@ const Sh = Eh.exports, Rr = {
|
|
|
24667
24671
|
};
|
|
24668
24672
|
export {
|
|
24669
24673
|
Ch as AvatarSizes,
|
|
24670
|
-
|
|
24674
|
+
Rh as BadgeColors,
|
|
24671
24675
|
Lh as BadgeSizes,
|
|
24672
24676
|
ge as BaseColor,
|
|
24673
24677
|
Fa as Colors,
|
|
@@ -24680,7 +24684,7 @@ export {
|
|
|
24680
24684
|
rn as ESpinner,
|
|
24681
24685
|
yh as ETimeline,
|
|
24682
24686
|
ga as EToggleSwitch,
|
|
24683
|
-
|
|
24687
|
+
_h as EVENTS,
|
|
24684
24688
|
Sh as EVideoEmbed,
|
|
24685
24689
|
nh as EVideoPlayer,
|
|
24686
24690
|
pa as EZoomable,
|
|
@@ -24692,7 +24696,7 @@ export {
|
|
|
24692
24696
|
kt as TimelineAxis,
|
|
24693
24697
|
Ge as TimelineChartType,
|
|
24694
24698
|
Pt as TimelineIntervalChangeTrigger,
|
|
24695
|
-
|
|
24699
|
+
_r as components,
|
|
24696
24700
|
Ed as debounce,
|
|
24697
24701
|
wh as default,
|
|
24698
24702
|
Td as exitFullScreen,
|