@evercam/ui 0.0.55-beta.38 → 0.0.55-beta.39
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/README.md +2 -0
- package/dist/index.mjs +931 -817
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/EExpandableMenu.vue.d.ts +56 -0
- package/dist/src/index.d.ts +56 -1
- package/dist/src/mixins/inactivity-listener.d.ts +5 -6
- package/dist/style.css +1 -1
- package/dist/styles.css +8 -0
- package/dist/web-types.json +11 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ye from "vue";
|
|
2
2
|
import Te from "moment-timezone";
|
|
3
3
|
import * as I from "d3";
|
|
4
|
-
var W = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(W || {}),
|
|
5
|
-
const Ta =
|
|
4
|
+
var W = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(W || {}), pe = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(pe || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), Re = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(Re || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
|
|
5
|
+
const Ta = ye.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
8
8
|
text: {
|
|
@@ -11,7 +11,7 @@ const Ta = pe.extend({
|
|
|
11
11
|
},
|
|
12
12
|
color: {
|
|
13
13
|
type: String,
|
|
14
|
-
default:
|
|
14
|
+
default: pe.default
|
|
15
15
|
},
|
|
16
16
|
size: {
|
|
17
17
|
type: String,
|
|
@@ -21,12 +21,12 @@ const Ta = pe.extend({
|
|
|
21
21
|
data() {
|
|
22
22
|
return {
|
|
23
23
|
colors: {
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
24
|
+
[pe.error]: "e-bg-rose-500 e-text-white",
|
|
25
|
+
[pe.info]: "e-bg-cyan-500 e-text-white",
|
|
26
|
+
[pe.warning]: "e-bg-amber-500 e-text-white",
|
|
27
|
+
[pe.primary]: "e-bg-sky-500 e-text-white",
|
|
28
|
+
[pe.default]: "e-bg-slate-300 e-text-white",
|
|
29
|
+
[pe.success]: "e-bg-lime-500 e-text-white"
|
|
30
30
|
},
|
|
31
31
|
sizes: {
|
|
32
32
|
[W.dot]: "e-w-2 e-h-2",
|
|
@@ -40,7 +40,7 @@ const Ta = pe.extend({
|
|
|
40
40
|
},
|
|
41
41
|
computed: {
|
|
42
42
|
badgeClasses() {
|
|
43
|
-
const s = this.colors[this.color] || this.colors[
|
|
43
|
+
const s = this.colors[this.color] || this.colors[pe.default], e = this.sizes[this.size] || this.sizes[W.md];
|
|
44
44
|
return [
|
|
45
45
|
"e-flex e-items-center e-justify-center e-rounded-full",
|
|
46
46
|
s,
|
|
@@ -52,7 +52,7 @@ const Ta = pe.extend({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function fe(s, e, t, i, r, n, a, o) {
|
|
56
56
|
var l = typeof s == "function" ? s.options : s;
|
|
57
57
|
e && (l.render = e, l.staticRenderFns = t, l._compiled = !0), i && (l.functional = !0), n && (l._scopeId = "data-v-" + n);
|
|
58
58
|
var c;
|
|
@@ -84,7 +84,7 @@ function ye(s, e, t, i, r, n, a, o) {
|
|
|
84
84
|
var Ea = function() {
|
|
85
85
|
var e = this, t = e._self._c;
|
|
86
86
|
return t("span", { staticClass: "e-badge", class: e.badgeClasses }, [e.showText ? t("span", [e._v(e._s(e.text))]) : e._e()]);
|
|
87
|
-
}, Sa = [], ba = /* @__PURE__ */
|
|
87
|
+
}, Sa = [], ba = /* @__PURE__ */ fe(
|
|
88
88
|
Ta,
|
|
89
89
|
Ea,
|
|
90
90
|
Sa,
|
|
@@ -94,10 +94,10 @@ var Ea = function() {
|
|
|
94
94
|
null,
|
|
95
95
|
null
|
|
96
96
|
);
|
|
97
|
-
const
|
|
97
|
+
const $r = ba.exports, Aa = ye.extend({
|
|
98
98
|
name: "EAvatar",
|
|
99
99
|
components: {
|
|
100
|
-
Badge:
|
|
100
|
+
Badge: $r
|
|
101
101
|
},
|
|
102
102
|
props: {
|
|
103
103
|
size: {
|
|
@@ -110,7 +110,7 @@ const Nr = ba.exports, Aa = pe.extend({
|
|
|
110
110
|
},
|
|
111
111
|
badgeColor: {
|
|
112
112
|
type: String,
|
|
113
|
-
default:
|
|
113
|
+
default: pe.error
|
|
114
114
|
},
|
|
115
115
|
badgeText: {
|
|
116
116
|
type: String,
|
|
@@ -153,7 +153,7 @@ var La = function() {
|
|
|
153
153
|
}), e.showBadge ? t("div", { staticClass: "e-avatar__badge e-absolute e-top-0 e-right-0" }, [e._t("badge", function() {
|
|
154
154
|
return [t("Badge", { attrs: { text: e.badgeText, color: e.badgeColor, size: e.badgeSize } })];
|
|
155
155
|
})], 2) : e._e()], 2);
|
|
156
|
-
}, _a = [],
|
|
156
|
+
}, _a = [], Ca = /* @__PURE__ */ fe(
|
|
157
157
|
Aa,
|
|
158
158
|
La,
|
|
159
159
|
_a,
|
|
@@ -163,11 +163,11 @@ var La = function() {
|
|
|
163
163
|
null,
|
|
164
164
|
null
|
|
165
165
|
);
|
|
166
|
-
const
|
|
166
|
+
const Ra = Ca.exports;
|
|
167
167
|
function Da(s) {
|
|
168
168
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var Ur = {}, Gr = {}, ji = {};
|
|
171
171
|
(function(s) {
|
|
172
172
|
Object.defineProperty(s, "__esModule", {
|
|
173
173
|
value: !0
|
|
@@ -194,7 +194,7 @@ var Br = {}, $r = {}, ji = {};
|
|
|
194
194
|
return `calc(${t} * -1)`;
|
|
195
195
|
}
|
|
196
196
|
})(ji);
|
|
197
|
-
var
|
|
197
|
+
var Hr = {};
|
|
198
198
|
(function(s) {
|
|
199
199
|
Object.defineProperty(s, "__esModule", {
|
|
200
200
|
value: !0
|
|
@@ -381,8 +381,8 @@ var Ur = {};
|
|
|
381
381
|
"willChange",
|
|
382
382
|
"content"
|
|
383
383
|
];
|
|
384
|
-
})(
|
|
385
|
-
var
|
|
384
|
+
})(Hr);
|
|
385
|
+
var Vr = {};
|
|
386
386
|
(function(s) {
|
|
387
387
|
Object.defineProperty(s, "__esModule", {
|
|
388
388
|
value: !0
|
|
@@ -397,13 +397,13 @@ var Gr = {};
|
|
|
397
397
|
...new Set(i.filter((n) => t !== !1 && t[n] !== !1).concat(Object.keys(t).filter((n) => t[n] !== !1)))
|
|
398
398
|
];
|
|
399
399
|
}
|
|
400
|
-
})(
|
|
401
|
-
var qi = {}, Qt = {}, Xi = { exports: {} }, se = String,
|
|
400
|
+
})(Vr);
|
|
401
|
+
var qi = {}, Qt = {}, Xi = { exports: {} }, se = String, Kr = function() {
|
|
402
402
|
return { isColorSupported: !1, reset: se, bold: se, dim: se, italic: se, underline: se, inverse: se, hidden: se, strikethrough: se, black: se, red: se, green: se, yellow: se, blue: se, magenta: se, cyan: se, white: se, gray: se, bgBlack: se, bgRed: se, bgGreen: se, bgYellow: se, bgBlue: se, bgMagenta: se, bgCyan: se, bgWhite: se };
|
|
403
403
|
};
|
|
404
|
-
Xi.exports =
|
|
405
|
-
Xi.exports.createColors =
|
|
406
|
-
var
|
|
404
|
+
Xi.exports = Kr();
|
|
405
|
+
Xi.exports.createColors = Kr;
|
|
406
|
+
var zr = Xi.exports;
|
|
407
407
|
(function(s) {
|
|
408
408
|
Object.defineProperty(s, "__esModule", {
|
|
409
409
|
value: !0
|
|
@@ -423,7 +423,7 @@ var Vr = Xi.exports;
|
|
|
423
423
|
return o;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const t = /* @__PURE__ */ i(
|
|
426
|
+
const t = /* @__PURE__ */ i(zr);
|
|
427
427
|
function i(l) {
|
|
428
428
|
return l && l.__esModule ? l : {
|
|
429
429
|
default: l
|
|
@@ -813,7 +813,7 @@ var Vr = Xi.exports;
|
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
815
|
})(qi);
|
|
816
|
-
var
|
|
816
|
+
var Wr = {};
|
|
817
817
|
(function(s) {
|
|
818
818
|
Object.defineProperty(s, "__esModule", {
|
|
819
819
|
value: !0
|
|
@@ -836,8 +836,8 @@ var Kr = {};
|
|
|
836
836
|
}
|
|
837
837
|
return t;
|
|
838
838
|
}
|
|
839
|
-
})(
|
|
840
|
-
var
|
|
839
|
+
})(Wr);
|
|
840
|
+
var Yr = {};
|
|
841
841
|
(function(s) {
|
|
842
842
|
Object.defineProperty(s, "__esModule", {
|
|
843
843
|
value: !0
|
|
@@ -855,8 +855,8 @@ var zr = {};
|
|
|
855
855
|
throw new Error(`Path is invalid. Has unbalanced brackets: ${t}`);
|
|
856
856
|
return t.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
|
|
857
857
|
}
|
|
858
|
-
})(
|
|
859
|
-
var
|
|
858
|
+
})(Yr);
|
|
859
|
+
var jr = {}, Jt = {};
|
|
860
860
|
(function(s) {
|
|
861
861
|
Object.defineProperty(s, "__esModule", {
|
|
862
862
|
value: !0
|
|
@@ -879,7 +879,7 @@ var Wr = {}, Jt = {};
|
|
|
879
879
|
return u;
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
|
-
const t = /* @__PURE__ */ r(
|
|
882
|
+
const t = /* @__PURE__ */ r(zr), i = /* @__PURE__ */ r(Qt);
|
|
883
883
|
function r(h) {
|
|
884
884
|
return h && h.__esModule ? h : {
|
|
885
885
|
default: h
|
|
@@ -1082,8 +1082,8 @@ var Wr = {}, Jt = {};
|
|
|
1082
1082
|
}
|
|
1083
1083
|
return a;
|
|
1084
1084
|
}
|
|
1085
|
-
})(
|
|
1086
|
-
var
|
|
1085
|
+
})(jr);
|
|
1086
|
+
var qr = {};
|
|
1087
1087
|
(function(s) {
|
|
1088
1088
|
Object.defineProperty(s, "__esModule", {
|
|
1089
1089
|
value: !0
|
|
@@ -1099,8 +1099,8 @@ var Yr = {};
|
|
|
1099
1099
|
const i = Object.getPrototypeOf(t);
|
|
1100
1100
|
return i === null || i === Object.prototype;
|
|
1101
1101
|
}
|
|
1102
|
-
})(
|
|
1103
|
-
var
|
|
1102
|
+
})(qr);
|
|
1103
|
+
var Xr = {};
|
|
1104
1104
|
(function(s) {
|
|
1105
1105
|
Object.defineProperty(s, "__esModule", {
|
|
1106
1106
|
value: !0
|
|
@@ -1116,8 +1116,8 @@ var jr = {};
|
|
|
1116
1116
|
e(r)
|
|
1117
1117
|
])) : t;
|
|
1118
1118
|
}
|
|
1119
|
-
})(
|
|
1120
|
-
var
|
|
1119
|
+
})(Xr);
|
|
1120
|
+
var Zr = {}, Qr = {};
|
|
1121
1121
|
(function(s) {
|
|
1122
1122
|
Object.defineProperty(s, "__esModule", {
|
|
1123
1123
|
value: !0
|
|
@@ -1130,8 +1130,8 @@ var qr = {}, Xr = {};
|
|
|
1130
1130
|
function e(t) {
|
|
1131
1131
|
return t.replace(/\\,/g, "\\2c ");
|
|
1132
1132
|
}
|
|
1133
|
-
})(
|
|
1134
|
-
var Zi = {}, Qi = {},
|
|
1133
|
+
})(Qr);
|
|
1134
|
+
var Zi = {}, Qi = {}, Jr = {};
|
|
1135
1135
|
(function(s) {
|
|
1136
1136
|
Object.defineProperty(s, "__esModule", {
|
|
1137
1137
|
value: !0
|
|
@@ -1883,7 +1883,7 @@ var Zi = {}, Qi = {}, Zr = {};
|
|
|
1883
1883
|
50
|
|
1884
1884
|
]
|
|
1885
1885
|
};
|
|
1886
|
-
})(
|
|
1886
|
+
})(Jr);
|
|
1887
1887
|
(function(s) {
|
|
1888
1888
|
Object.defineProperty(s, "__esModule", {
|
|
1889
1889
|
value: !0
|
|
@@ -1903,7 +1903,7 @@ var Zi = {}, Qi = {}, Zr = {};
|
|
|
1903
1903
|
return f;
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
|
-
const t = /* @__PURE__ */ i(
|
|
1906
|
+
const t = /* @__PURE__ */ i(Jr);
|
|
1907
1907
|
function i(m) {
|
|
1908
1908
|
return m && m.__esModule ? m : {
|
|
1909
1909
|
default: m
|
|
@@ -1929,14 +1929,14 @@ var Zi = {}, Qi = {}, Zr = {};
|
|
|
1929
1929
|
mode: "rgb",
|
|
1930
1930
|
color: t.default[m].map((k) => k.toString())
|
|
1931
1931
|
};
|
|
1932
|
-
let T = m.replace(n, (k, _, B,
|
|
1932
|
+
let T = m.replace(n, (k, _, B, C, b) => [
|
|
1933
1933
|
"#",
|
|
1934
1934
|
_,
|
|
1935
1935
|
_,
|
|
1936
1936
|
B,
|
|
1937
1937
|
B,
|
|
1938
|
-
|
|
1939
|
-
|
|
1938
|
+
C,
|
|
1939
|
+
C,
|
|
1940
1940
|
b ? b + b : ""
|
|
1941
1941
|
].join("")).match(r);
|
|
1942
1942
|
if (T !== null)
|
|
@@ -2040,7 +2040,7 @@ var Zi = {}, Qi = {}, Zr = {};
|
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
2042
|
})(Zi);
|
|
2043
|
-
var Ji = {},
|
|
2043
|
+
var Ji = {}, en = {}, ei = {};
|
|
2044
2044
|
(function(s) {
|
|
2045
2045
|
Object.defineProperty(s, "__esModule", {
|
|
2046
2046
|
value: !0
|
|
@@ -2106,7 +2106,7 @@ var Ji = {}, Qr = {}, ei = {};
|
|
|
2106
2106
|
c.color
|
|
2107
2107
|
].filter(Boolean).join(" ") : c.raw).join(", ");
|
|
2108
2108
|
}
|
|
2109
|
-
})(
|
|
2109
|
+
})(en);
|
|
2110
2110
|
(function(s) {
|
|
2111
2111
|
Object.defineProperty(s, "__esModule", {
|
|
2112
2112
|
value: !0
|
|
@@ -2150,7 +2150,7 @@ var Ji = {}, Qr = {}, ei = {};
|
|
|
2150
2150
|
return _;
|
|
2151
2151
|
},
|
|
2152
2152
|
position: function() {
|
|
2153
|
-
return
|
|
2153
|
+
return C;
|
|
2154
2154
|
},
|
|
2155
2155
|
familyName: function() {
|
|
2156
2156
|
return b;
|
|
@@ -2165,7 +2165,7 @@ var Ji = {}, Qr = {}, ei = {};
|
|
|
2165
2165
|
return U;
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
|
-
const t = Qi, i =
|
|
2168
|
+
const t = Qi, i = en, r = ei;
|
|
2169
2169
|
let n = [
|
|
2170
2170
|
"min",
|
|
2171
2171
|
"max",
|
|
@@ -2282,7 +2282,7 @@ var Ji = {}, Qr = {}, ei = {};
|
|
|
2282
2282
|
"bottom",
|
|
2283
2283
|
"left"
|
|
2284
2284
|
]);
|
|
2285
|
-
function
|
|
2285
|
+
function C(F) {
|
|
2286
2286
|
let V = 0;
|
|
2287
2287
|
return (0, r.splitAtTopLevelOnly)(F, "_").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 Ji = {}, Qr = {}, ei = {};
|
|
|
2290
2290
|
let V = 0;
|
|
2291
2291
|
return (0, r.splitAtTopLevelOnly)(F, ",").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 R = /* @__PURE__ */ new Set([
|
|
2294
2294
|
"serif",
|
|
2295
2295
|
"sans-serif",
|
|
2296
2296
|
"monospace",
|
|
@@ -2306,7 +2306,7 @@ var Ji = {}, Qr = {}, ei = {};
|
|
|
2306
2306
|
"fangsong"
|
|
2307
2307
|
]);
|
|
2308
2308
|
function P(F) {
|
|
2309
|
-
return
|
|
2309
|
+
return R.has(F);
|
|
2310
2310
|
}
|
|
2311
2311
|
let w = /* @__PURE__ */ new Set([
|
|
2312
2312
|
"xx-small",
|
|
@@ -2329,7 +2329,7 @@ var Ji = {}, Qr = {}, ei = {};
|
|
|
2329
2329
|
return O.has(F);
|
|
2330
2330
|
}
|
|
2331
2331
|
})(Ji);
|
|
2332
|
-
var
|
|
2332
|
+
var tn = {};
|
|
2333
2333
|
(function(s) {
|
|
2334
2334
|
Object.defineProperty(s, "__esModule", {
|
|
2335
2335
|
value: !0
|
|
@@ -2350,16 +2350,16 @@ var Jr = {};
|
|
|
2350
2350
|
return o.length === 1 && n.includes(o[0]) ? !0 : o.length !== 1 && o.length !== 2 ? !1 : o.every((l) => (0, e.length)(l) || (0, e.percentage)(l) || l === "auto");
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
2353
|
-
})(
|
|
2353
|
+
})(tn);
|
|
2354
2354
|
(function(s) {
|
|
2355
2355
|
Object.defineProperty(s, "__esModule", {
|
|
2356
2356
|
value: !0
|
|
2357
2357
|
});
|
|
2358
|
-
function e(
|
|
2359
|
-
for (var
|
|
2360
|
-
Object.defineProperty(
|
|
2358
|
+
function e(C, b) {
|
|
2359
|
+
for (var R in b)
|
|
2360
|
+
Object.defineProperty(C, R, {
|
|
2361
2361
|
enumerable: !0,
|
|
2362
|
-
get: b[
|
|
2362
|
+
get: b[R]
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
e(s, {
|
|
@@ -2388,87 +2388,87 @@ var Jr = {};
|
|
|
2388
2388
|
return B;
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
|
-
const t = /* @__PURE__ */ l(
|
|
2392
|
-
function l(
|
|
2393
|
-
return
|
|
2394
|
-
default:
|
|
2391
|
+
const t = /* @__PURE__ */ l(Qr), i = Zi, r = Ji, n = /* @__PURE__ */ l(ji), a = tn, o = Jt;
|
|
2392
|
+
function l(C) {
|
|
2393
|
+
return C && C.__esModule ? C : {
|
|
2394
|
+
default: C
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function c(
|
|
2398
|
-
|
|
2399
|
-
|
|
2397
|
+
function c(C, b) {
|
|
2398
|
+
C.walkClasses((R) => {
|
|
2399
|
+
R.value = b(R.value), R.raws && R.raws.value && (R.raws.value = (0, t.default)(R.raws.value));
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
|
-
function u(
|
|
2403
|
-
if (!f(
|
|
2402
|
+
function u(C, b) {
|
|
2403
|
+
if (!f(C))
|
|
2404
2404
|
return;
|
|
2405
|
-
let
|
|
2406
|
-
if (b(
|
|
2407
|
-
return (0, r.normalize)(
|
|
2405
|
+
let R = C.slice(1, -1);
|
|
2406
|
+
if (b(R))
|
|
2407
|
+
return (0, r.normalize)(R);
|
|
2408
2408
|
}
|
|
2409
|
-
function h(
|
|
2410
|
-
let P = b[
|
|
2409
|
+
function h(C, b = {}, R) {
|
|
2410
|
+
let P = b[C];
|
|
2411
2411
|
if (P !== void 0)
|
|
2412
2412
|
return (0, n.default)(P);
|
|
2413
|
-
if (f(
|
|
2414
|
-
let w = u(
|
|
2413
|
+
if (f(C)) {
|
|
2414
|
+
let w = u(C, R);
|
|
2415
2415
|
return w === void 0 ? void 0 : (0, n.default)(w);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
function d(
|
|
2418
|
+
function d(C, b = {}, { validate: R = () => !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[C];
|
|
2421
|
+
return w !== void 0 ? w : b.supportsNegativeValues && C.startsWith("-") ? h(C.slice(1), b.values, R) : u(C, R);
|
|
2422
2422
|
}
|
|
2423
|
-
function f(
|
|
2424
|
-
return
|
|
2423
|
+
function f(C) {
|
|
2424
|
+
return C.startsWith("[") && C.endsWith("]");
|
|
2425
2425
|
}
|
|
2426
|
-
function m(
|
|
2427
|
-
let b =
|
|
2428
|
-
return b === -1 || b ===
|
|
2429
|
-
|
|
2426
|
+
function m(C) {
|
|
2427
|
+
let b = C.lastIndexOf("/");
|
|
2428
|
+
return b === -1 || b === C.length - 1 ? [
|
|
2429
|
+
C,
|
|
2430
2430
|
void 0
|
|
2431
|
-
] : f(
|
|
2432
|
-
|
|
2431
|
+
] : f(C) && !C.includes("]/[") ? [
|
|
2432
|
+
C,
|
|
2433
2433
|
void 0
|
|
2434
2434
|
] : [
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
C.slice(0, b),
|
|
2436
|
+
C.slice(b + 1)
|
|
2437
2437
|
];
|
|
2438
2438
|
}
|
|
2439
|
-
function g(
|
|
2440
|
-
if (typeof
|
|
2441
|
-
let b =
|
|
2442
|
-
return ({ opacityValue:
|
|
2439
|
+
function g(C) {
|
|
2440
|
+
if (typeof C == "string" && C.includes("<alpha-value>")) {
|
|
2441
|
+
let b = C;
|
|
2442
|
+
return ({ opacityValue: R = 1 }) => b.replace("<alpha-value>", R);
|
|
2443
2443
|
}
|
|
2444
|
-
return
|
|
2444
|
+
return C;
|
|
2445
2445
|
}
|
|
2446
|
-
function y(
|
|
2447
|
-
return (0, r.normalize)(
|
|
2446
|
+
function y(C) {
|
|
2447
|
+
return (0, r.normalize)(C.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function v(
|
|
2449
|
+
function v(C, b = {}, { tailwindConfig: R = {} } = {}) {
|
|
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[C]) !== 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[C]);
|
|
2454
2454
|
}
|
|
2455
|
-
let [$, O] = m(
|
|
2455
|
+
let [$, O] = m(C);
|
|
2456
2456
|
if (O !== void 0) {
|
|
2457
2457
|
var U, F, 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(O) ? (0, i.withAlphaValue)(M, y(O)) : ((F =
|
|
2459
|
+
return M === void 0 ? void 0 : (M = g(M), f(O) ? (0, i.withAlphaValue)(M, y(O)) : ((F = R.theme) === null || F === void 0 || (V = F.opacity) === null || V === void 0 ? void 0 : V[O]) === void 0 ? void 0 : (0, i.withAlphaValue)(M, R.theme.opacity[O]));
|
|
2460
2460
|
}
|
|
2461
|
-
return d(
|
|
2461
|
+
return d(C, b, {
|
|
2462
2462
|
validate: r.color
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
function T(
|
|
2466
|
-
var
|
|
2467
|
-
return (
|
|
2465
|
+
function T(C, b = {}) {
|
|
2466
|
+
var R;
|
|
2467
|
+
return (R = b.values) === null || R === void 0 ? void 0 : R[C];
|
|
2468
2468
|
}
|
|
2469
|
-
function x(
|
|
2470
|
-
return (b,
|
|
2471
|
-
validate:
|
|
2469
|
+
function x(C) {
|
|
2470
|
+
return (b, R) => d(b, R, {
|
|
2471
|
+
validate: C
|
|
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(C, b) {
|
|
2493
|
+
let R = C.indexOf(b);
|
|
2494
|
+
return R === -1 ? [
|
|
2495
2495
|
void 0,
|
|
2496
|
-
|
|
2496
|
+
C
|
|
2497
2497
|
] : [
|
|
2498
|
-
|
|
2499
|
-
|
|
2498
|
+
C.slice(0, R),
|
|
2499
|
+
C.slice(R + 1)
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
2502
|
-
function _(
|
|
2503
|
-
if (
|
|
2504
|
-
for (let { type: $ } of
|
|
2505
|
-
let O = L[$](b,
|
|
2502
|
+
function _(C, b, R, P) {
|
|
2503
|
+
if (R.values && b in R.values)
|
|
2504
|
+
for (let { type: $ } of C != null ? C : []) {
|
|
2505
|
+
let O = L[$](b, R, {
|
|
2506
2506
|
tailwindConfig: P
|
|
2507
2507
|
});
|
|
2508
2508
|
if (O !== void 0)
|
|
@@ -2520,25 +2520,25 @@ var Jr = {};
|
|
|
2520
2520
|
return [];
|
|
2521
2521
|
if (U.length > 0 && E.includes(O))
|
|
2522
2522
|
return [
|
|
2523
|
-
d(`[${U}]`,
|
|
2523
|
+
d(`[${U}]`, R),
|
|
2524
2524
|
O,
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let w = B(
|
|
2528
|
+
let w = B(C, b, R, P);
|
|
2529
2529
|
for (let $ of w)
|
|
2530
2530
|
return $;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
|
-
function* B(
|
|
2533
|
+
function* B(C, b, R, P) {
|
|
2534
2534
|
let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
|
|
2535
|
-
if (w &&
|
|
2535
|
+
if (w && R.modifiers != null && (R.modifiers === "any" || typeof R.modifiers == "object" && (O && f(O) || O in R.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof R.modifiers == "object") {
|
|
2536
2536
|
var F, V;
|
|
2537
|
-
let H = (V = (F =
|
|
2537
|
+
let H = (V = (F = R.modifiers) === null || F === void 0 ? void 0 : F[O]) !== null && V !== void 0 ? V : null;
|
|
2538
2538
|
H !== null ? O = H : f(O) && (O = y(O));
|
|
2539
2539
|
}
|
|
2540
|
-
for (let { type: H } of
|
|
2541
|
-
let M = L[H]($,
|
|
2540
|
+
for (let { type: H } of C != null ? C : []) {
|
|
2541
|
+
let M = L[H]($, R, {
|
|
2542
2542
|
tailwindConfig: P
|
|
2543
2543
|
});
|
|
2544
2544
|
M !== void 0 && (yield [
|
|
@@ -2548,8 +2548,8 @@ var Jr = {};
|
|
|
2548
2548
|
]);
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
})(
|
|
2552
|
-
var
|
|
2551
|
+
})(Zr);
|
|
2552
|
+
var sn = {};
|
|
2553
2553
|
(function(s) {
|
|
2554
2554
|
Object.defineProperty(s, "__esModule", {
|
|
2555
2555
|
value: !0
|
|
@@ -2562,17 +2562,17 @@ var en = {};
|
|
|
2562
2562
|
function e(t) {
|
|
2563
2563
|
return typeof t == "function" ? t({}) : t;
|
|
2564
2564
|
}
|
|
2565
|
-
})(
|
|
2565
|
+
})(sn);
|
|
2566
2566
|
(function(s) {
|
|
2567
2567
|
Object.defineProperty(s, "__esModule", {
|
|
2568
2568
|
value: !0
|
|
2569
2569
|
}), Object.defineProperty(s, "default", {
|
|
2570
2570
|
enumerable: !0,
|
|
2571
2571
|
get: function() {
|
|
2572
|
-
return
|
|
2572
|
+
return R;
|
|
2573
2573
|
}
|
|
2574
2574
|
});
|
|
2575
|
-
const e = /* @__PURE__ */ f(ji), t = /* @__PURE__ */ f(
|
|
2575
|
+
const e = /* @__PURE__ */ f(ji), t = /* @__PURE__ */ f(Hr), i = /* @__PURE__ */ f(Vr), r = /* @__PURE__ */ f(qi), n = Wr, a = Yr, o = jr, l = /* @__PURE__ */ f(qr), c = Xr, u = Zr, h = Zi, d = /* @__PURE__ */ f(sn);
|
|
2576
2576
|
function f(P) {
|
|
2577
2577
|
return P && P.__esModule ? P : {
|
|
2578
2578
|
default: P
|
|
@@ -2696,7 +2696,7 @@ var en = {};
|
|
|
2696
2696
|
});
|
|
2697
2697
|
}), w;
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function C(P) {
|
|
2700
2700
|
return [
|
|
2701
2701
|
...P
|
|
2702
2702
|
].reduceRight(($, O) => m(O) ? O({
|
|
@@ -2711,7 +2711,7 @@ var en = {};
|
|
|
2711
2711
|
...O
|
|
2712
2712
|
], []);
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function R(P) {
|
|
2715
2715
|
let w = [
|
|
2716
2716
|
...B(P),
|
|
2717
2717
|
{
|
|
@@ -2723,12 +2723,12 @@ var en = {};
|
|
|
2723
2723
|
var $, O;
|
|
2724
2724
|
return (0, o.normalizeConfig)((0, n.defaults)({
|
|
2725
2725
|
theme: _(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
|
|
2726
|
-
corePlugins:
|
|
2726
|
+
corePlugins: C(w.map((U) => U.corePlugins)),
|
|
2727
2727
|
plugins: b(P.map((U) => (O = U == null ? void 0 : U.plugins) !== null && O !== void 0 ? O : []))
|
|
2728
2728
|
}, ...w));
|
|
2729
2729
|
}
|
|
2730
|
-
})(
|
|
2731
|
-
var
|
|
2730
|
+
})(Gr);
|
|
2731
|
+
var rn = {}, Ia = {
|
|
2732
2732
|
content: [],
|
|
2733
2733
|
presets: [],
|
|
2734
2734
|
darkMode: "media",
|
|
@@ -3765,7 +3765,7 @@ var tn = {}, Ia = {
|
|
|
3765
3765
|
...o
|
|
3766
3766
|
];
|
|
3767
3767
|
}
|
|
3768
|
-
})(
|
|
3768
|
+
})(rn);
|
|
3769
3769
|
(function(s) {
|
|
3770
3770
|
Object.defineProperty(s, "__esModule", {
|
|
3771
3771
|
value: !0
|
|
@@ -3775,7 +3775,7 @@ var tn = {}, Ia = {
|
|
|
3775
3775
|
return r;
|
|
3776
3776
|
}
|
|
3777
3777
|
});
|
|
3778
|
-
const e = /* @__PURE__ */ i(
|
|
3778
|
+
const e = /* @__PURE__ */ i(Gr), t = /* @__PURE__ */ i(rn);
|
|
3779
3779
|
function i(n) {
|
|
3780
3780
|
return n && n.__esModule ? n : {
|
|
3781
3781
|
default: n
|
|
@@ -3788,8 +3788,8 @@ var tn = {}, Ia = {
|
|
|
3788
3788
|
...a
|
|
3789
3789
|
]);
|
|
3790
3790
|
}
|
|
3791
|
-
})(
|
|
3792
|
-
let ri =
|
|
3791
|
+
})(Ur);
|
|
3792
|
+
let ri = Ur;
|
|
3793
3793
|
var wa = (ri.__esModule ? ri : { default: ri }).default;
|
|
3794
3794
|
const ka = /* @__PURE__ */ Da(wa);
|
|
3795
3795
|
let ni = qi;
|
|
@@ -3874,6 +3874,12 @@ const Pa = {
|
|
|
3874
3874
|
},
|
|
3875
3875
|
blur: {
|
|
3876
3876
|
"video-poster": "32px"
|
|
3877
|
+
},
|
|
3878
|
+
transitionProperty: {
|
|
3879
|
+
"opacity-transform": "opacity, transform"
|
|
3880
|
+
},
|
|
3881
|
+
transitionDuration: {
|
|
3882
|
+
600: "600ms"
|
|
3877
3883
|
}
|
|
3878
3884
|
},
|
|
3879
3885
|
fontSize: {
|
|
@@ -3928,14 +3934,14 @@ const Pa = {
|
|
|
3928
3934
|
pattern: /e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/
|
|
3929
3935
|
}
|
|
3930
3936
|
]
|
|
3931
|
-
},
|
|
3937
|
+
}, nn = ka(Fa), Ma = nn.theme.fontSize, Na = nn.theme.colors, Pd = [
|
|
3932
3938
|
W.dot,
|
|
3933
3939
|
W.xs,
|
|
3934
3940
|
W.sm,
|
|
3935
3941
|
W.md,
|
|
3936
3942
|
W.lg,
|
|
3937
3943
|
W.xl
|
|
3938
|
-
],
|
|
3944
|
+
], Od = [
|
|
3939
3945
|
W.xs,
|
|
3940
3946
|
W.sm,
|
|
3941
3947
|
W.md,
|
|
@@ -3957,14 +3963,14 @@ const Pa = {
|
|
|
3957
3963
|
W["7xl"],
|
|
3958
3964
|
W["8xl"],
|
|
3959
3965
|
W["9xl"]
|
|
3960
|
-
],
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
],
|
|
3966
|
+
], Fd = [W.sm, W.md, W.base, W.lg], Md = [
|
|
3967
|
+
pe.warning,
|
|
3968
|
+
pe.error,
|
|
3969
|
+
pe.info,
|
|
3970
|
+
pe.success,
|
|
3971
|
+
pe.primary,
|
|
3972
|
+
pe.default
|
|
3973
|
+
], Nd = [
|
|
3968
3974
|
"play",
|
|
3969
3975
|
"pause",
|
|
3970
3976
|
"ended",
|
|
@@ -3975,7 +3981,7 @@ const Pa = {
|
|
|
3975
3981
|
"canplay",
|
|
3976
3982
|
"canplaythrough",
|
|
3977
3983
|
"statechanged"
|
|
3978
|
-
], $a =
|
|
3984
|
+
], $a = ye.extend({
|
|
3979
3985
|
name: "EIcon",
|
|
3980
3986
|
props: {
|
|
3981
3987
|
icon: {
|
|
@@ -3984,7 +3990,7 @@ const Pa = {
|
|
|
3984
3990
|
},
|
|
3985
3991
|
color: {
|
|
3986
3992
|
type: String,
|
|
3987
|
-
default:
|
|
3993
|
+
default: pe.default
|
|
3988
3994
|
},
|
|
3989
3995
|
size: {
|
|
3990
3996
|
type: String,
|
|
@@ -4013,7 +4019,7 @@ const Pa = {
|
|
|
4013
4019
|
var Ua = function() {
|
|
4014
4020
|
var e = this, t = e._self._c;
|
|
4015
4021
|
return t("div", { staticClass: "e-icon" }, [t("i", { class: e.iconClasses })]);
|
|
4016
|
-
}, Ga = [], Ha = /* @__PURE__ */
|
|
4022
|
+
}, Ga = [], Ha = /* @__PURE__ */ fe(
|
|
4017
4023
|
$a,
|
|
4018
4024
|
Ua,
|
|
4019
4025
|
Ga,
|
|
@@ -4023,7 +4029,7 @@ var Ua = function() {
|
|
|
4023
4029
|
null,
|
|
4024
4030
|
null
|
|
4025
4031
|
);
|
|
4026
|
-
const
|
|
4032
|
+
const an = Ha.exports, Va = ye.extend({
|
|
4027
4033
|
name: "ESpinner",
|
|
4028
4034
|
props: {
|
|
4029
4035
|
dark: {
|
|
@@ -4091,7 +4097,7 @@ var Ka = function() {
|
|
|
4091
4097
|
"e-spinner--dark": e.dark,
|
|
4092
4098
|
"e-spinner--grey": !e.color
|
|
4093
4099
|
}, style: { opacity: e.opacity }, attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1629.32 1608.86", width: e.computedSize, height: e.computedSize } }, [t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(0), attrs: { d: "m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(1), attrs: { d: "m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(2), attrs: { d: "m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(3), attrs: { d: "m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(4), attrs: { d: "m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(5), attrs: { d: "m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(6), attrs: { d: "m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(7), attrs: { d: "m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(8), attrs: { d: "m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(9), attrs: { d: "m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02" } })]);
|
|
4094
|
-
}, za = [], Wa = /* @__PURE__ */
|
|
4100
|
+
}, za = [], Wa = /* @__PURE__ */ fe(
|
|
4095
4101
|
Va,
|
|
4096
4102
|
Ka,
|
|
4097
4103
|
za,
|
|
@@ -4101,7 +4107,7 @@ var Ka = function() {
|
|
|
4101
4107
|
null,
|
|
4102
4108
|
null
|
|
4103
4109
|
);
|
|
4104
|
-
const
|
|
4110
|
+
const on = Wa.exports, Ya = ye.extend({
|
|
4105
4111
|
props: {
|
|
4106
4112
|
align: {
|
|
4107
4113
|
type: String,
|
|
@@ -4164,7 +4170,7 @@ const nn = Wa.exports, Ya = pe.extend({
|
|
|
4164
4170
|
var ja = function() {
|
|
4165
4171
|
var e = this, t = e._self._c;
|
|
4166
4172
|
return e._self._setupProxy, t("div", { staticClass: "e-row e-flex e-flex-wrap", class: e.rowClasses }, [e._t("default")], 2);
|
|
4167
|
-
}, qa = [], Xa = /* @__PURE__ */
|
|
4173
|
+
}, qa = [], Xa = /* @__PURE__ */ fe(
|
|
4168
4174
|
Ya,
|
|
4169
4175
|
ja,
|
|
4170
4176
|
qa,
|
|
@@ -4174,7 +4180,7 @@ var ja = function() {
|
|
|
4174
4180
|
null,
|
|
4175
4181
|
null
|
|
4176
4182
|
);
|
|
4177
|
-
const Za = Xa.exports, Qa =
|
|
4183
|
+
const Za = Xa.exports, Qa = ye.extend({
|
|
4178
4184
|
props: {
|
|
4179
4185
|
alignSelf: {
|
|
4180
4186
|
type: String,
|
|
@@ -4281,7 +4287,7 @@ const Za = Xa.exports, Qa = pe.extend({
|
|
|
4281
4287
|
var Ja = function() {
|
|
4282
4288
|
var e = this, t = e._self._c;
|
|
4283
4289
|
return t("div", { staticClass: "e-col", class: e.colClasses }, [e._t("default")], 2);
|
|
4284
|
-
}, eo = [], to = /* @__PURE__ */
|
|
4290
|
+
}, eo = [], to = /* @__PURE__ */ fe(
|
|
4285
4291
|
Qa,
|
|
4286
4292
|
Ja,
|
|
4287
4293
|
eo,
|
|
@@ -4295,7 +4301,7 @@ const io = to.exports;
|
|
|
4295
4301
|
function so(s) {
|
|
4296
4302
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
4297
4303
|
}
|
|
4298
|
-
var
|
|
4304
|
+
var ln = { exports: {} };
|
|
4299
4305
|
(function(s, e) {
|
|
4300
4306
|
(function(t) {
|
|
4301
4307
|
var i = /^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/, r = /^(?=([^\/?#]*))\1([^]*)$/, n = /(?:\/|^)\.(?=\/)/g, a = /(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g, o = {
|
|
@@ -4370,9 +4376,9 @@ var an = { exports: {} };
|
|
|
4370
4376
|
};
|
|
4371
4377
|
s.exports = o;
|
|
4372
4378
|
})();
|
|
4373
|
-
})(
|
|
4374
|
-
var es =
|
|
4375
|
-
function
|
|
4379
|
+
})(ln);
|
|
4380
|
+
var es = ln.exports;
|
|
4381
|
+
function Es(s, e) {
|
|
4376
4382
|
var t = Object.keys(s);
|
|
4377
4383
|
if (Object.getOwnPropertySymbols) {
|
|
4378
4384
|
var i = Object.getOwnPropertySymbols(s);
|
|
@@ -4385,9 +4391,9 @@ function xs(s, e) {
|
|
|
4385
4391
|
function de(s) {
|
|
4386
4392
|
for (var e = 1; e < arguments.length; e++) {
|
|
4387
4393
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4388
|
-
e % 2 ?
|
|
4394
|
+
e % 2 ? Es(Object(t), !0).forEach(function(i) {
|
|
4389
4395
|
ao(s, i, t[i]);
|
|
4390
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) :
|
|
4396
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Es(Object(t)).forEach(function(i) {
|
|
4391
4397
|
Object.defineProperty(s, i, Object.getOwnPropertyDescriptor(t, i));
|
|
4392
4398
|
});
|
|
4393
4399
|
}
|
|
@@ -4478,7 +4484,7 @@ function ho(s, e) {
|
|
|
4478
4484
|
} else
|
|
4479
4485
|
yt = ki;
|
|
4480
4486
|
}
|
|
4481
|
-
const S = yt, fo = /^(\d+)x(\d+)$/,
|
|
4487
|
+
const S = yt, fo = /^(\d+)x(\d+)$/, Ss = /(.+?)=(".*?"|.*?)(?:,|$)/g;
|
|
4482
4488
|
class ne {
|
|
4483
4489
|
constructor(e) {
|
|
4484
4490
|
typeof e == "string" && (e = ne.parseAttrList(e)), oe(this, e);
|
|
@@ -4529,7 +4535,7 @@ class ne {
|
|
|
4529
4535
|
static parseAttrList(e) {
|
|
4530
4536
|
let t;
|
|
4531
4537
|
const i = {}, r = '"';
|
|
4532
|
-
for (
|
|
4538
|
+
for (Ss.lastIndex = 0; (t = Ss.exec(e)) !== null; ) {
|
|
4533
4539
|
let n = t[2];
|
|
4534
4540
|
n.indexOf(r) === 0 && n.lastIndexOf(r) === n.length - 1 && (n = n.slice(1, -1));
|
|
4535
4541
|
const a = t[1].trim();
|
|
@@ -4544,7 +4550,7 @@ function mo(s) {
|
|
|
4544
4550
|
function go(s) {
|
|
4545
4551
|
return s === "SCTE35-OUT" || s === "SCTE35-IN";
|
|
4546
4552
|
}
|
|
4547
|
-
class
|
|
4553
|
+
class cn {
|
|
4548
4554
|
constructor(e, t) {
|
|
4549
4555
|
if (this.attr = void 0, this._startDate = void 0, this._endDate = void 0, this._badValueForSameId = void 0, t) {
|
|
4550
4556
|
const i = t.attr;
|
|
@@ -4615,7 +4621,7 @@ var te = {
|
|
|
4615
4621
|
VIDEO: "video",
|
|
4616
4622
|
AUDIOVIDEO: "audiovideo"
|
|
4617
4623
|
};
|
|
4618
|
-
class
|
|
4624
|
+
class un {
|
|
4619
4625
|
constructor(e) {
|
|
4620
4626
|
this._byteRange = null, this._url = null, this.baseurl = void 0, this.relurl = void 0, this.elementaryStreams = {
|
|
4621
4627
|
[te.AUDIO]: null,
|
|
@@ -4647,7 +4653,7 @@ class ln {
|
|
|
4647
4653
|
this._url = e;
|
|
4648
4654
|
}
|
|
4649
4655
|
}
|
|
4650
|
-
class ai extends
|
|
4656
|
+
class ai extends un {
|
|
4651
4657
|
constructor(e, t) {
|
|
4652
4658
|
super(t), this._decryptdata = null, this.rawProgramDateTime = null, this.programDateTime = null, this.tagList = [], this.duration = 0, this.sn = 0, this.levelkeys = void 0, this.type = void 0, this.loader = null, this.keyLoader = null, this.level = -1, this.cc = 0, this.startPTS = void 0, this.endPTS = void 0, this.startDTS = void 0, this.endDTS = void 0, this.start = 0, this.deltaPTS = void 0, this.maxStartPTS = void 0, this.minEndPTS = void 0, this.stats = new ti(), this.data = void 0, this.bitrateTest = !1, this.title = null, this.initSegment = null, this.endList = void 0, this.gap = void 0, this.urlId = 0, this.type = e;
|
|
4653
4659
|
}
|
|
@@ -4722,7 +4728,7 @@ class ai extends ln {
|
|
|
4722
4728
|
e[te.AUDIO] = null, e[te.VIDEO] = null, e[te.AUDIOVIDEO] = null;
|
|
4723
4729
|
}
|
|
4724
4730
|
}
|
|
4725
|
-
class po extends
|
|
4731
|
+
class po extends un {
|
|
4726
4732
|
constructor(e, t, i, r, n) {
|
|
4727
4733
|
super(i), this.fragOffset = 0, this.duration = 0, this.gap = !1, this.independent = !1, this.relurl = void 0, this.fragment = void 0, this.index = void 0, this.stats = new ti(), this.duration = e.decimalFloatingPoint("DURATION"), this.gap = e.bool("GAP"), this.independent = e.bool("INDEPENDENT"), this.relurl = e.enumeratedString("URI"), this.fragment = t, this.index = r;
|
|
4728
4734
|
const a = e.enumeratedString("BYTERANGE");
|
|
@@ -4828,7 +4834,7 @@ var re = {
|
|
|
4828
4834
|
PLAYREADY: "com.microsoft.playready",
|
|
4829
4835
|
WIDEVINE: "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"
|
|
4830
4836
|
};
|
|
4831
|
-
function
|
|
4837
|
+
function bs(s) {
|
|
4832
4838
|
switch (s) {
|
|
4833
4839
|
case Se.FAIRPLAY:
|
|
4834
4840
|
return re.FAIRPLAY;
|
|
@@ -4840,14 +4846,14 @@ function Es(s) {
|
|
|
4840
4846
|
return re.CLEARKEY;
|
|
4841
4847
|
}
|
|
4842
4848
|
}
|
|
4843
|
-
var
|
|
4849
|
+
var hn = {
|
|
4844
4850
|
WIDEVINE: "edef8ba979d64acea3c827dcd51d21ed"
|
|
4845
4851
|
};
|
|
4846
4852
|
function So(s) {
|
|
4847
|
-
if (s ===
|
|
4853
|
+
if (s === hn.WIDEVINE)
|
|
4848
4854
|
return re.WIDEVINE;
|
|
4849
4855
|
}
|
|
4850
|
-
function
|
|
4856
|
+
function As(s) {
|
|
4851
4857
|
switch (s) {
|
|
4852
4858
|
case re.FAIRPLAY:
|
|
4853
4859
|
return Se.FAIRPLAY;
|
|
@@ -4866,7 +4872,7 @@ function oi(s) {
|
|
|
4866
4872
|
} = s, i = e ? [re.FAIRPLAY, re.WIDEVINE, re.PLAYREADY, re.CLEARKEY].filter((r) => !!e[r]) : [];
|
|
4867
4873
|
return !i[re.WIDEVINE] && t && i.push(re.WIDEVINE), i;
|
|
4868
4874
|
}
|
|
4869
|
-
const
|
|
4875
|
+
const dn = function(s) {
|
|
4870
4876
|
return lt != null && (s = lt.navigator) != null && s.requestMediaKeySystemAccess ? self.navigator.requestMediaKeySystemAccess.bind(self.navigator) : null;
|
|
4871
4877
|
}();
|
|
4872
4878
|
function bo(s, e, t, i) {
|
|
@@ -4908,13 +4914,13 @@ function Ao(s, e, t, i) {
|
|
|
4908
4914
|
function Qe(s, e, t) {
|
|
4909
4915
|
return Uint8Array.prototype.slice ? s.slice(e, t) : new Uint8Array(Array.prototype.slice.call(s, e, t));
|
|
4910
4916
|
}
|
|
4911
|
-
const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128,
|
|
4917
|
+
const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, fn = (s, e) => e + 10 <= s.length && s[e] === 51 && s[e + 1] === 68 && s[e + 2] === 73 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, xt = (s, e) => {
|
|
4912
4918
|
const t = e;
|
|
4913
4919
|
let i = 0;
|
|
4914
4920
|
for (; is(s, e); ) {
|
|
4915
4921
|
i += 10;
|
|
4916
4922
|
const r = ii(s, e + 6);
|
|
4917
|
-
i += r,
|
|
4923
|
+
i += r, fn(s, e + 10) && (i += 10), e += i;
|
|
4918
4924
|
}
|
|
4919
4925
|
if (i > 0)
|
|
4920
4926
|
return s.subarray(t, t + i);
|
|
@@ -4922,20 +4928,20 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4922
4928
|
let t = 0;
|
|
4923
4929
|
return t = (s[e] & 127) << 21, t |= (s[e + 1] & 127) << 14, t |= (s[e + 2] & 127) << 7, t |= s[e + 3] & 127, t;
|
|
4924
4930
|
}, Lo = (s, e) => is(s, e) && ii(s, e + 6) + 10 <= s.length - e, ss = (s) => {
|
|
4925
|
-
const e =
|
|
4931
|
+
const e = gn(s);
|
|
4926
4932
|
for (let t = 0; t < e.length; t++) {
|
|
4927
4933
|
const i = e[t];
|
|
4928
|
-
if (
|
|
4934
|
+
if (mn(i))
|
|
4929
4935
|
return wo(i);
|
|
4930
4936
|
}
|
|
4931
|
-
},
|
|
4937
|
+
}, mn = (s) => s && s.key === "PRIV" && s.info === "com.apple.streaming.transportStreamTimestamp", _o = (s) => {
|
|
4932
4938
|
const e = String.fromCharCode(s[0], s[1], s[2], s[3]), t = ii(s, 4), i = 10;
|
|
4933
4939
|
return {
|
|
4934
4940
|
type: e,
|
|
4935
4941
|
size: t,
|
|
4936
4942
|
data: s.subarray(i, i + t)
|
|
4937
4943
|
};
|
|
4938
|
-
},
|
|
4944
|
+
}, gn = (s) => {
|
|
4939
4945
|
let e = 0;
|
|
4940
4946
|
const t = [];
|
|
4941
4947
|
for (; is(s, e); ) {
|
|
@@ -4943,13 +4949,13 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4943
4949
|
e += 10;
|
|
4944
4950
|
const r = e + i;
|
|
4945
4951
|
for (; e + 8 < r; ) {
|
|
4946
|
-
const n = _o(s.subarray(e)), a =
|
|
4952
|
+
const n = _o(s.subarray(e)), a = Co(n);
|
|
4947
4953
|
a && t.push(a), e += n.size + 10;
|
|
4948
4954
|
}
|
|
4949
|
-
|
|
4955
|
+
fn(s, e) && (e += 10);
|
|
4950
4956
|
}
|
|
4951
4957
|
return t;
|
|
4952
|
-
},
|
|
4958
|
+
}, Co = (s) => s.type === "PRIV" ? Ro(s) : s.type[0] === "W" ? Io(s) : Do(s), Ro = (s) => {
|
|
4953
4959
|
if (s.size < 2)
|
|
4954
4960
|
return;
|
|
4955
4961
|
const e = Be(s.data, !0), t = new Uint8Array(s.data.subarray(e.length + 1));
|
|
@@ -5055,7 +5061,7 @@ const Pe = {
|
|
|
5055
5061
|
}
|
|
5056
5062
|
return e;
|
|
5057
5063
|
}
|
|
5058
|
-
}, Gt = Math.pow(2, 32) - 1, Po = [].push,
|
|
5064
|
+
}, Gt = Math.pow(2, 32) - 1, Po = [].push, pn = {
|
|
5059
5065
|
video: 1,
|
|
5060
5066
|
audio: 2,
|
|
5061
5067
|
id3: 3,
|
|
@@ -5064,19 +5070,19 @@ const Pe = {
|
|
|
5064
5070
|
function le(s) {
|
|
5065
5071
|
return String.fromCharCode.apply(null, s);
|
|
5066
5072
|
}
|
|
5067
|
-
function
|
|
5073
|
+
function yn(s, e) {
|
|
5068
5074
|
const t = s[e] << 8 | s[e + 1];
|
|
5069
5075
|
return t < 0 ? 65536 + t : t;
|
|
5070
5076
|
}
|
|
5071
5077
|
function Y(s, e) {
|
|
5072
|
-
const t =
|
|
5078
|
+
const t = vn(s, e);
|
|
5073
5079
|
return t < 0 ? 4294967296 + t : t;
|
|
5074
5080
|
}
|
|
5075
|
-
function
|
|
5081
|
+
function Ls(s, e) {
|
|
5076
5082
|
let t = Y(s, e);
|
|
5077
5083
|
return t *= Math.pow(2, 32), t += Y(s, e + 4), t;
|
|
5078
5084
|
}
|
|
5079
|
-
function
|
|
5085
|
+
function vn(s, e) {
|
|
5080
5086
|
return s[e] << 24 | s[e + 1] << 16 | s[e + 2] << 8 | s[e + 3];
|
|
5081
5087
|
}
|
|
5082
5088
|
function ci(s, e, t) {
|
|
@@ -5116,9 +5122,9 @@ function Fo(s) {
|
|
|
5116
5122
|
const r = Y(s, i);
|
|
5117
5123
|
i += 4;
|
|
5118
5124
|
let n = 0, a = 0;
|
|
5119
|
-
t === 0 ? (n = Y(s, i), a = Y(s, i + 4), i += 8) : (n =
|
|
5125
|
+
t === 0 ? (n = Y(s, i), a = Y(s, i + 4), i += 8) : (n = Ls(s, i), a = Ls(s, i + 8), i += 16), i += 2;
|
|
5120
5126
|
let o = s.length + a;
|
|
5121
|
-
const l =
|
|
5127
|
+
const l = yn(s, i);
|
|
5122
5128
|
i += 2;
|
|
5123
5129
|
for (let c = 0; c < l; c++) {
|
|
5124
5130
|
let u = i;
|
|
@@ -5147,7 +5153,7 @@ function Fo(s) {
|
|
|
5147
5153
|
references: e
|
|
5148
5154
|
};
|
|
5149
5155
|
}
|
|
5150
|
-
function
|
|
5156
|
+
function xn(s) {
|
|
5151
5157
|
const e = [], t = X(s, ["moov", "trak"]);
|
|
5152
5158
|
for (let r = 0; r < t.length; r++) {
|
|
5153
5159
|
const n = t[r], a = X(n, ["tkhd"])[0];
|
|
@@ -5292,7 +5298,7 @@ function No(s, e) {
|
|
|
5292
5298
|
l || (o = X(a, ["encv"])), o.forEach((c) => {
|
|
5293
5299
|
const u = l ? c.subarray(28) : c.subarray(78);
|
|
5294
5300
|
X(u, ["sinf"]).forEach((d) => {
|
|
5295
|
-
const f =
|
|
5301
|
+
const f = Tn(d);
|
|
5296
5302
|
if (f) {
|
|
5297
5303
|
const m = f.subarray(8, 24);
|
|
5298
5304
|
m.some((g) => g !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${Pe.hexDump(m)} -> ${Pe.hexDump(t)}`), f.set(t, 8));
|
|
@@ -5301,7 +5307,7 @@ function No(s, e) {
|
|
|
5301
5307
|
});
|
|
5302
5308
|
}), s;
|
|
5303
5309
|
}
|
|
5304
|
-
function
|
|
5310
|
+
function Tn(s) {
|
|
5305
5311
|
const e = X(s, ["schm"])[0];
|
|
5306
5312
|
if (e) {
|
|
5307
5313
|
const t = le(e.subarray(4, 8));
|
|
@@ -5413,11 +5419,11 @@ function Ho(s) {
|
|
|
5413
5419
|
const i = t[t.length - 1];
|
|
5414
5420
|
return e.valid = Qe(s, 0, i.byteOffset - 8), e.remainder = Qe(s, i.byteOffset - 8), e;
|
|
5415
5421
|
}
|
|
5416
|
-
function
|
|
5422
|
+
function Ce(s, e) {
|
|
5417
5423
|
const t = new Uint8Array(s.length + e.length);
|
|
5418
5424
|
return t.set(s), t.set(e, s.length), t;
|
|
5419
5425
|
}
|
|
5420
|
-
function
|
|
5426
|
+
function _s(s, e) {
|
|
5421
5427
|
const t = [], i = e.samples, r = e.timescale, n = e.id;
|
|
5422
5428
|
let a = !1;
|
|
5423
5429
|
return X(i, ["moof"]).map((l) => {
|
|
@@ -5436,7 +5442,7 @@ function As(s, e) {
|
|
|
5436
5442
|
const k = (g & 32) !== 0;
|
|
5437
5443
|
let _ = 8;
|
|
5438
5444
|
m === n && (y && (_ += 8), v && (_ += 4), T && (x = Y(f, _), _ += 4), L && (E = Y(f, _), _ += 4), k && (_ += 4), e.type === "video" && (a = Vo(e.codec)), X(h, ["trun"]).map((B) => {
|
|
5439
|
-
const
|
|
5445
|
+
const C = B[0], b = Y(B, 0) & 16777215, R = (b & 1) !== 0;
|
|
5440
5446
|
let P = 0;
|
|
5441
5447
|
const w = (b & 4) !== 0, $ = (b & 256) !== 0;
|
|
5442
5448
|
let O = 0;
|
|
@@ -5446,18 +5452,18 @@ function As(s, e) {
|
|
|
5446
5452
|
let M = 0;
|
|
5447
5453
|
const Q = Y(B, 4);
|
|
5448
5454
|
let Z = 8;
|
|
5449
|
-
|
|
5455
|
+
R && (P = Y(B, Z), Z += 4), w && (Z += 4);
|
|
5450
5456
|
let ee = P + c;
|
|
5451
5457
|
for (let ae = 0; ae < Q; ae++) {
|
|
5452
|
-
if ($ ? (O = Y(B, Z), Z += 4) : O = x, U ? (F = Y(B, Z), Z += 4) : F = E, V && (Z += 4), H && (
|
|
5458
|
+
if ($ ? (O = Y(B, Z), Z += 4) : O = x, U ? (F = Y(B, Z), Z += 4) : F = E, V && (Z += 4), H && (C === 0 ? M = Y(B, Z) : M = vn(B, Z), Z += 4), e.type === te.VIDEO) {
|
|
5453
5459
|
let ce = 0;
|
|
5454
5460
|
for (; ce < F; ) {
|
|
5455
|
-
const
|
|
5461
|
+
const me = Y(i, ee);
|
|
5456
5462
|
if (ee += 4, Ko(a, i[ee])) {
|
|
5457
|
-
const Ae = i.subarray(ee, ee +
|
|
5458
|
-
|
|
5463
|
+
const Ae = i.subarray(ee, ee + me);
|
|
5464
|
+
En(Ae, a ? 2 : 1, s + M / r, t);
|
|
5459
5465
|
}
|
|
5460
|
-
ee +=
|
|
5466
|
+
ee += me, ce += me + 4;
|
|
5461
5467
|
}
|
|
5462
5468
|
}
|
|
5463
5469
|
s += O / r;
|
|
@@ -5481,8 +5487,8 @@ function Ko(s, e) {
|
|
|
5481
5487
|
} else
|
|
5482
5488
|
return (e & 31) === 6;
|
|
5483
5489
|
}
|
|
5484
|
-
function
|
|
5485
|
-
const r =
|
|
5490
|
+
function En(s, e, t, i) {
|
|
5491
|
+
const r = Sn(s);
|
|
5486
5492
|
let n = 0;
|
|
5487
5493
|
n += e;
|
|
5488
5494
|
let a = 0, o = 0, l = 0;
|
|
@@ -5509,7 +5515,7 @@ function xn(s, e, t, i) {
|
|
|
5509
5515
|
}
|
|
5510
5516
|
if (a === 4) {
|
|
5511
5517
|
if (r[u++] === 181) {
|
|
5512
|
-
const d =
|
|
5518
|
+
const d = yn(r, u);
|
|
5513
5519
|
if (u += 2, d === 49) {
|
|
5514
5520
|
const f = Y(r, u);
|
|
5515
5521
|
if (u += 4, f === 1195456820) {
|
|
@@ -5550,7 +5556,7 @@ function xn(s, e, t, i) {
|
|
|
5550
5556
|
}
|
|
5551
5557
|
}
|
|
5552
5558
|
}
|
|
5553
|
-
function
|
|
5559
|
+
function Sn(s) {
|
|
5554
5560
|
const e = s.byteLength, t = [];
|
|
5555
5561
|
let i = 1;
|
|
5556
5562
|
for (; i < e - 2; )
|
|
@@ -5741,9 +5747,9 @@ function qo(s) {
|
|
|
5741
5747
|
e[t] = s >> 8 * (15 - t) & 255;
|
|
5742
5748
|
return e;
|
|
5743
5749
|
}
|
|
5744
|
-
const
|
|
5745
|
-
function
|
|
5746
|
-
return
|
|
5750
|
+
const bn = /\{\$([a-zA-Z0-9-_]+)\}/g;
|
|
5751
|
+
function Cs(s) {
|
|
5752
|
+
return bn.test(s);
|
|
5747
5753
|
}
|
|
5748
5754
|
function Ee(s, e, t) {
|
|
5749
5755
|
if (s.variableList !== null || s.hasVariableRefs)
|
|
@@ -5755,14 +5761,14 @@ function Ee(s, e, t) {
|
|
|
5755
5761
|
function Oi(s, e) {
|
|
5756
5762
|
if (s.variableList !== null || s.hasVariableRefs) {
|
|
5757
5763
|
const t = s.variableList;
|
|
5758
|
-
return e.replace(
|
|
5764
|
+
return e.replace(bn, (i) => {
|
|
5759
5765
|
const r = i.substring(2, i.length - 1), n = t == null ? void 0 : t[r];
|
|
5760
5766
|
return n === void 0 ? (s.playlistParsingError || (s.playlistParsingError = new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)), i) : n;
|
|
5761
5767
|
});
|
|
5762
5768
|
}
|
|
5763
5769
|
return e;
|
|
5764
5770
|
}
|
|
5765
|
-
function
|
|
5771
|
+
function Rs(s, e, t) {
|
|
5766
5772
|
let i = s.variableList;
|
|
5767
5773
|
i || (s.variableList = i = {});
|
|
5768
5774
|
let r, n;
|
|
@@ -5875,9 +5881,9 @@ function Zo(s, e) {
|
|
|
5875
5881
|
return !!t && !!t[s.slice(0, 4)];
|
|
5876
5882
|
}
|
|
5877
5883
|
function hi(s, e, t = !0) {
|
|
5878
|
-
return !s.split(",").some((i) => !
|
|
5884
|
+
return !s.split(",").some((i) => !An(i, e, t));
|
|
5879
5885
|
}
|
|
5880
|
-
function
|
|
5886
|
+
function An(s, e, t = !0) {
|
|
5881
5887
|
var i;
|
|
5882
5888
|
const r = dt(t);
|
|
5883
5889
|
return (i = r == null ? void 0 : r.isTypeSupported(Et(s, e))) != null ? i : !1;
|
|
@@ -5885,7 +5891,7 @@ function Sn(s, e, t = !0) {
|
|
|
5885
5891
|
function Et(s, e) {
|
|
5886
5892
|
return `${e}/mp4;codecs="${s}"`;
|
|
5887
5893
|
}
|
|
5888
|
-
function
|
|
5894
|
+
function Ds(s) {
|
|
5889
5895
|
if (s) {
|
|
5890
5896
|
const e = s.substring(0, 4);
|
|
5891
5897
|
return Ht.video[e];
|
|
@@ -5907,7 +5913,7 @@ function Qo(s, e = !0) {
|
|
|
5907
5913
|
opus: ["opus", "Opus"]
|
|
5908
5914
|
}[s];
|
|
5909
5915
|
for (let i = 0; i < t.length; i++)
|
|
5910
|
-
if (
|
|
5916
|
+
if (An(t[i], "audio", e))
|
|
5911
5917
|
return di[s] = t[i], t[i];
|
|
5912
5918
|
return s;
|
|
5913
5919
|
}
|
|
@@ -5915,7 +5921,7 @@ const Jo = /flac|opus/i;
|
|
|
5915
5921
|
function Kt(s, e = !0) {
|
|
5916
5922
|
return s.replace(Jo, (t) => Qo(t.toLowerCase(), e));
|
|
5917
5923
|
}
|
|
5918
|
-
function
|
|
5924
|
+
function Is(s, e) {
|
|
5919
5925
|
return s && s !== "mp4a" ? s : e;
|
|
5920
5926
|
}
|
|
5921
5927
|
function el(s) {
|
|
@@ -5926,7 +5932,7 @@ function el(s) {
|
|
|
5926
5932
|
}
|
|
5927
5933
|
return s;
|
|
5928
5934
|
}
|
|
5929
|
-
const
|
|
5935
|
+
const ws = /#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g, ks = /#EXT-X-MEDIA:(.*)/g, tl = /^#EXT(?:INF|-X-TARGETDURATION):/m, Ps = new RegExp([
|
|
5930
5936
|
/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,
|
|
5931
5937
|
// duration (#EXTINF:<duration>,<title>), group 1 => duration, group 2 => title
|
|
5932
5938
|
/(?!#) *(\S[\S ]*)/.source,
|
|
@@ -5955,7 +5961,7 @@ class Me {
|
|
|
5955
5961
|
return tl.test(e);
|
|
5956
5962
|
}
|
|
5957
5963
|
static parseMasterPlaylist(e, t) {
|
|
5958
|
-
const i =
|
|
5964
|
+
const i = Cs(e), r = {
|
|
5959
5965
|
contentSteering: null,
|
|
5960
5966
|
levels: [],
|
|
5961
5967
|
playlistParsingError: null,
|
|
@@ -5965,9 +5971,9 @@ class Me {
|
|
|
5965
5971
|
variableList: null,
|
|
5966
5972
|
hasVariableRefs: i
|
|
5967
5973
|
}, n = [];
|
|
5968
|
-
|
|
5974
|
+
ws.lastIndex = 0;
|
|
5969
5975
|
let a;
|
|
5970
|
-
for (; (a =
|
|
5976
|
+
for (; (a = ws.exec(e)) != null; )
|
|
5971
5977
|
if (a[1]) {
|
|
5972
5978
|
var o;
|
|
5973
5979
|
const c = new ne(a[1]);
|
|
@@ -5990,14 +5996,14 @@ class Me {
|
|
|
5990
5996
|
break;
|
|
5991
5997
|
}
|
|
5992
5998
|
case "SESSION-KEY": {
|
|
5993
|
-
const h =
|
|
5999
|
+
const h = Os(u, t, r);
|
|
5994
6000
|
h.encrypted && h.isSupported() ? (r.sessionKeys === null && (r.sessionKeys = []), r.sessionKeys.push(h)) : S.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${u}"`);
|
|
5995
6001
|
break;
|
|
5996
6002
|
}
|
|
5997
6003
|
case "DEFINE": {
|
|
5998
6004
|
{
|
|
5999
6005
|
const h = new ne(u);
|
|
6000
|
-
Ee(r, h, ["NAME", "VALUE", "QUERYPARAM"]),
|
|
6006
|
+
Ee(r, h, ["NAME", "VALUE", "QUERYPARAM"]), Rs(r, h, t);
|
|
6001
6007
|
}
|
|
6002
6008
|
break;
|
|
6003
6009
|
}
|
|
@@ -6010,7 +6016,7 @@ class Me {
|
|
|
6010
6016
|
break;
|
|
6011
6017
|
}
|
|
6012
6018
|
case "START": {
|
|
6013
|
-
r.startTimeOffset =
|
|
6019
|
+
r.startTimeOffset = Fs(u);
|
|
6014
6020
|
break;
|
|
6015
6021
|
}
|
|
6016
6022
|
}
|
|
@@ -6032,7 +6038,7 @@ class Me {
|
|
|
6032
6038
|
"CLOSED-CAPTIONS": []
|
|
6033
6039
|
};
|
|
6034
6040
|
let l = 0;
|
|
6035
|
-
for (
|
|
6041
|
+
for (ks.lastIndex = 0; (r = ks.exec(e)) !== null; ) {
|
|
6036
6042
|
const c = new ne(r[1]), u = c.TYPE;
|
|
6037
6043
|
if (u) {
|
|
6038
6044
|
const h = o[u], d = n[u] || [];
|
|
@@ -6052,7 +6058,7 @@ class Me {
|
|
|
6052
6058
|
};
|
|
6053
6059
|
if (m && (T.assocLang = m), g && (T.channels = g), y && (T.characteristics = y), v && (T.instreamId = v), h != null && h.length) {
|
|
6054
6060
|
const x = Me.findGroup(h, T.groupId) || h[0];
|
|
6055
|
-
|
|
6061
|
+
Ms(T, x, "audioCodec"), Ms(T, x, "textCodec");
|
|
6056
6062
|
}
|
|
6057
6063
|
d.push(T);
|
|
6058
6064
|
}
|
|
@@ -6062,18 +6068,18 @@ class Me {
|
|
|
6062
6068
|
static parseLevelPlaylist(e, t, i, r, n, a) {
|
|
6063
6069
|
const o = new vo(t), l = o.fragments;
|
|
6064
6070
|
let c = null, u = 0, h = 0, d = 0, f = 0, m = null, g = new ai(r, t), y, v, T, x = -1, L = !1, E = null;
|
|
6065
|
-
for (
|
|
6071
|
+
for (Ps.lastIndex = 0, o.m3u8 = e, o.hasVariableRefs = Cs(e); (y = Ps.exec(e)) !== null; ) {
|
|
6066
6072
|
L && (L = !1, g = new ai(r, t), g.start = d, 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(
|
|
6073
|
+
const C = y[1];
|
|
6074
|
+
if (C) {
|
|
6075
|
+
g.duration = parseFloat(C);
|
|
6070
6076
|
const b = (" " + y[2]).slice(1);
|
|
6071
|
-
g.title = b || null, g.tagList.push(b ? ["INF",
|
|
6077
|
+
g.title = b || null, g.tagList.push(b ? ["INF", C, b] : ["INF", C]);
|
|
6072
6078
|
} else if (y[3]) {
|
|
6073
6079
|
if (z(g.duration)) {
|
|
6074
|
-
g.start = d, T &&
|
|
6080
|
+
g.start = d, T && $s(g, T, o), g.sn = u, g.level = i, g.cc = f, l.push(g);
|
|
6075
6081
|
const b = (" " + y[3]).slice(1);
|
|
6076
|
-
g.relurl = Oi(o, b),
|
|
6082
|
+
g.relurl = Oi(o, b), Ns(g, m), m = g, d += g.duration, u++, h = 0, L = !0;
|
|
6077
6083
|
}
|
|
6078
6084
|
} else if (y[4]) {
|
|
6079
6085
|
const b = (" " + y[4]).slice(1);
|
|
@@ -6087,16 +6093,16 @@ class Me {
|
|
|
6087
6093
|
}
|
|
6088
6094
|
for (v = 1; v < y.length && typeof y[v] == "undefined"; v++)
|
|
6089
6095
|
;
|
|
6090
|
-
const b = (" " + y[v]).slice(1),
|
|
6096
|
+
const b = (" " + y[v]).slice(1), R = (" " + y[v + 1]).slice(1), P = y[v + 2] ? (" " + y[v + 2]).slice(1) : "";
|
|
6091
6097
|
switch (b) {
|
|
6092
6098
|
case "PLAYLIST-TYPE":
|
|
6093
|
-
o.type =
|
|
6099
|
+
o.type = R.toUpperCase();
|
|
6094
6100
|
break;
|
|
6095
6101
|
case "MEDIA-SEQUENCE":
|
|
6096
|
-
u = o.startSN = parseInt(
|
|
6102
|
+
u = o.startSN = parseInt(R);
|
|
6097
6103
|
break;
|
|
6098
6104
|
case "SKIP": {
|
|
6099
|
-
const w = new ne(
|
|
6105
|
+
const w = new ne(R);
|
|
6100
6106
|
Ee(o, w, ["RECENTLY-REMOVED-DATERANGES"]);
|
|
6101
6107
|
const $ = w.decimalInteger("SKIPPED-SEGMENTS");
|
|
6102
6108
|
if (z($)) {
|
|
@@ -6110,10 +6116,10 @@ class Me {
|
|
|
6110
6116
|
break;
|
|
6111
6117
|
}
|
|
6112
6118
|
case "TARGETDURATION":
|
|
6113
|
-
o.targetduration = Math.max(parseInt(
|
|
6119
|
+
o.targetduration = Math.max(parseInt(R), 1);
|
|
6114
6120
|
break;
|
|
6115
6121
|
case "VERSION":
|
|
6116
|
-
o.version = parseInt(
|
|
6122
|
+
o.version = parseInt(R);
|
|
6117
6123
|
break;
|
|
6118
6124
|
case "INDEPENDENT-SEGMENTS":
|
|
6119
6125
|
case "EXTM3U":
|
|
@@ -6122,7 +6128,7 @@ class Me {
|
|
|
6122
6128
|
o.live = !1;
|
|
6123
6129
|
break;
|
|
6124
6130
|
case "#":
|
|
6125
|
-
(
|
|
6131
|
+
(R || P) && g.tagList.push(P ? [R, P] : [R]);
|
|
6126
6132
|
break;
|
|
6127
6133
|
case "DISCONTINUITY":
|
|
6128
6134
|
f++, g.tagList.push(["DIS"]);
|
|
@@ -6131,27 +6137,27 @@ class Me {
|
|
|
6131
6137
|
g.gap = !0, g.tagList.push([b]);
|
|
6132
6138
|
break;
|
|
6133
6139
|
case "BITRATE":
|
|
6134
|
-
g.tagList.push([b,
|
|
6140
|
+
g.tagList.push([b, R]);
|
|
6135
6141
|
break;
|
|
6136
6142
|
case "DATERANGE": {
|
|
6137
|
-
const w = new ne(
|
|
6143
|
+
const w = new ne(R);
|
|
6138
6144
|
Ee(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), Ee(o, w, w.clientAttrs);
|
|
6139
|
-
const $ = new
|
|
6140
|
-
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${
|
|
6145
|
+
const $ = new cn(w, o.dateRanges[w.ID]);
|
|
6146
|
+
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${R}"`), g.tagList.push(["EXT-X-DATERANGE", R]);
|
|
6141
6147
|
break;
|
|
6142
6148
|
}
|
|
6143
6149
|
case "DEFINE": {
|
|
6144
6150
|
{
|
|
6145
|
-
const w = new ne(
|
|
6146
|
-
Ee(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? Xo(o, w, a) :
|
|
6151
|
+
const w = new ne(R);
|
|
6152
|
+
Ee(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? Xo(o, w, a) : Rs(o, w, t);
|
|
6147
6153
|
}
|
|
6148
6154
|
break;
|
|
6149
6155
|
}
|
|
6150
6156
|
case "DISCONTINUITY-SEQUENCE":
|
|
6151
|
-
f = parseInt(
|
|
6157
|
+
f = parseInt(R);
|
|
6152
6158
|
break;
|
|
6153
6159
|
case "KEY": {
|
|
6154
|
-
const w =
|
|
6160
|
+
const w = Os(R, t, o);
|
|
6155
6161
|
if (w.isSupported()) {
|
|
6156
6162
|
if (w.method === "NONE") {
|
|
6157
6163
|
T = void 0;
|
|
@@ -6159,17 +6165,17 @@ class Me {
|
|
|
6159
6165
|
}
|
|
6160
6166
|
T || (T = {}), T[w.keyFormat] && (T = oe({}, T)), T[w.keyFormat] = w;
|
|
6161
6167
|
} else
|
|
6162
|
-
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${
|
|
6168
|
+
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${R}"`);
|
|
6163
6169
|
break;
|
|
6164
6170
|
}
|
|
6165
6171
|
case "START":
|
|
6166
|
-
o.startTimeOffset =
|
|
6172
|
+
o.startTimeOffset = Fs(R);
|
|
6167
6173
|
break;
|
|
6168
6174
|
case "MAP": {
|
|
6169
|
-
const w = new ne(
|
|
6175
|
+
const w = new ne(R);
|
|
6170
6176
|
if (Ee(o, w, ["BYTERANGE", "URI"]), g.duration) {
|
|
6171
6177
|
const $ = new ai(r, t);
|
|
6172
|
-
|
|
6178
|
+
Bs($, w, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
|
|
6173
6179
|
} else {
|
|
6174
6180
|
const $ = g.byteRangeEndOffset;
|
|
6175
6181
|
if ($) {
|
|
@@ -6177,36 +6183,36 @@ class Me {
|
|
|
6177
6183
|
E = `${$ - O}@${O}`;
|
|
6178
6184
|
} else
|
|
6179
6185
|
E = null;
|
|
6180
|
-
|
|
6186
|
+
Bs(g, w, i, T), c = g, L = !0;
|
|
6181
6187
|
}
|
|
6182
6188
|
break;
|
|
6183
6189
|
}
|
|
6184
6190
|
case "SERVER-CONTROL": {
|
|
6185
|
-
const w = new ne(
|
|
6191
|
+
const w = new ne(R);
|
|
6186
6192
|
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
6193
|
break;
|
|
6188
6194
|
}
|
|
6189
6195
|
case "PART-INF": {
|
|
6190
|
-
const w = new ne(
|
|
6196
|
+
const w = new ne(R);
|
|
6191
6197
|
o.partTarget = w.decimalFloatingPoint("PART-TARGET");
|
|
6192
6198
|
break;
|
|
6193
6199
|
}
|
|
6194
6200
|
case "PART": {
|
|
6195
6201
|
let w = o.partList;
|
|
6196
6202
|
w || (w = o.partList = []);
|
|
6197
|
-
const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(
|
|
6203
|
+
const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(R);
|
|
6198
6204
|
Ee(o, U, ["BYTERANGE", "URI"]);
|
|
6199
6205
|
const F = new po(U, g, t, O, $);
|
|
6200
6206
|
w.push(F), g.duration += F.duration;
|
|
6201
6207
|
break;
|
|
6202
6208
|
}
|
|
6203
6209
|
case "PRELOAD-HINT": {
|
|
6204
|
-
const w = new ne(
|
|
6210
|
+
const w = new ne(R);
|
|
6205
6211
|
Ee(o, w, ["URI"]), o.preloadHint = w;
|
|
6206
6212
|
break;
|
|
6207
6213
|
}
|
|
6208
6214
|
case "RENDITION-REPORT": {
|
|
6209
|
-
const w = new ne(
|
|
6215
|
+
const w = new ne(R);
|
|
6210
6216
|
Ee(o, w, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(w);
|
|
6211
6217
|
break;
|
|
6212
6218
|
}
|
|
@@ -6216,18 +6222,18 @@ class Me {
|
|
|
6216
6222
|
}
|
|
6217
6223
|
}
|
|
6218
6224
|
}
|
|
6219
|
-
m && !m.relurl ? (l.pop(), d -= m.duration, o.partList && (o.fragmentHint = m)) : o.partList && (
|
|
6225
|
+
m && !m.relurl ? (l.pop(), d -= m.duration, o.partList && (o.fragmentHint = m)) : o.partList && (Ns(g, m), g.cc = f, o.fragmentHint = g, T && $s(g, T, o));
|
|
6220
6226
|
const k = l.length, _ = l[0], B = l[k - 1];
|
|
6221
6227
|
if (d += o.skippedSegments * o.targetduration, d > 0 && k && B) {
|
|
6222
6228
|
o.averagetargetduration = d / k;
|
|
6223
|
-
const
|
|
6224
|
-
o.endSN =
|
|
6229
|
+
const C = B.sn;
|
|
6230
|
+
o.endSN = C !== "initSegment" ? C : 0, o.live || (B.endList = !0), _ && (o.startCC = _.cc);
|
|
6225
6231
|
} else
|
|
6226
6232
|
o.endSN = 0, o.startCC = 0;
|
|
6227
6233
|
return o.fragmentHint && (d += o.fragmentHint.duration), o.totalduration = d, o.endCC = f, x > 0 && rl(l, x), o;
|
|
6228
6234
|
}
|
|
6229
6235
|
}
|
|
6230
|
-
function
|
|
6236
|
+
function Os(s, e, t) {
|
|
6231
6237
|
var i, r;
|
|
6232
6238
|
const n = new ne(s);
|
|
6233
6239
|
Ee(t, n, ["KEYFORMAT", "KEYFORMATVERSIONS", "URI", "IV", "URI"]);
|
|
@@ -6236,7 +6242,7 @@ function ks(s, e, t) {
|
|
|
6236
6242
|
const h = o ? Me.resolve(o, e) : "", d = (c || "1").split("/").map(Number).filter(Number.isFinite);
|
|
6237
6243
|
return new Tt(a, h, u, d, l);
|
|
6238
6244
|
}
|
|
6239
|
-
function
|
|
6245
|
+
function Fs(s) {
|
|
6240
6246
|
const t = new ne(s).decimalFloatingPoint("TIME-OFFSET");
|
|
6241
6247
|
return z(t) ? t : null;
|
|
6242
6248
|
}
|
|
@@ -6247,7 +6253,7 @@ function sl(s, e) {
|
|
|
6247
6253
|
r.length && (e[`${i}Codec`] = r.join(","), t = t.filter((n) => r.indexOf(n) === -1));
|
|
6248
6254
|
}), e.unknownCodecs = t;
|
|
6249
6255
|
}
|
|
6250
|
-
function
|
|
6256
|
+
function Ms(s, e, t) {
|
|
6251
6257
|
const i = e[t];
|
|
6252
6258
|
i && (s[t] = i);
|
|
6253
6259
|
}
|
|
@@ -6260,13 +6266,13 @@ function rl(s, e) {
|
|
|
6260
6266
|
r.programDateTime = t.programDateTime - r.duration * 1e3, t = r;
|
|
6261
6267
|
}
|
|
6262
6268
|
}
|
|
6263
|
-
function
|
|
6269
|
+
function Ns(s, e) {
|
|
6264
6270
|
s.rawProgramDateTime ? s.programDateTime = Date.parse(s.rawProgramDateTime) : e != null && e.programDateTime && (s.programDateTime = e.endProgramDateTime), z(s.programDateTime) || (s.programDateTime = null, s.rawProgramDateTime = null);
|
|
6265
6271
|
}
|
|
6266
|
-
function
|
|
6272
|
+
function Bs(s, e, t, i) {
|
|
6267
6273
|
s.relurl = e.URI, e.BYTERANGE && s.setByteRange(e.BYTERANGE), s.level = t, s.sn = "initSegment", i && (s.levelkeys = i), s.initSegment = null;
|
|
6268
6274
|
}
|
|
6269
|
-
function
|
|
6275
|
+
function $s(s, e, t) {
|
|
6270
6276
|
s.levelkeys = e;
|
|
6271
6277
|
const {
|
|
6272
6278
|
encryptedFragments: i
|
|
@@ -6283,7 +6289,7 @@ var J = {
|
|
|
6283
6289
|
AUDIO: "audio",
|
|
6284
6290
|
SUBTITLE: "subtitle"
|
|
6285
6291
|
};
|
|
6286
|
-
function
|
|
6292
|
+
function Us(s) {
|
|
6287
6293
|
const {
|
|
6288
6294
|
type: e
|
|
6289
6295
|
} = s;
|
|
@@ -6517,7 +6523,7 @@ class nl {
|
|
|
6517
6523
|
id: o,
|
|
6518
6524
|
level: l,
|
|
6519
6525
|
type: c
|
|
6520
|
-
} = i, u = fi(e, i), h = 0, d = z(l) ? l : z(o) ? o : 0, f =
|
|
6526
|
+
} = i, u = fi(e, i), h = 0, d = z(l) ? l : z(o) ? o : 0, f = Us(i), m = Me.parseLevelPlaylist(e.data, u, d, f, h, this.variableList);
|
|
6521
6527
|
if (c === J.MANIFEST) {
|
|
6522
6528
|
const g = {
|
|
6523
6529
|
attrs: new ne({}),
|
|
@@ -6605,7 +6611,7 @@ class nl {
|
|
|
6605
6611
|
id: u,
|
|
6606
6612
|
groupId: h,
|
|
6607
6613
|
deliveryDirectives: d
|
|
6608
|
-
} = r, f = fi(t, r), m =
|
|
6614
|
+
} = r, f = fi(t, r), m = Us(r), g = typeof r.level == "number" && m === j.MAIN ? c : void 0;
|
|
6609
6615
|
if (!e.fragments.length) {
|
|
6610
6616
|
const v = new Error("No Segments found in Playlist");
|
|
6611
6617
|
o.trigger(p.ERROR, {
|
|
@@ -6678,7 +6684,7 @@ class nl {
|
|
|
6678
6684
|
}
|
|
6679
6685
|
}
|
|
6680
6686
|
}
|
|
6681
|
-
function
|
|
6687
|
+
function Ln(s, e) {
|
|
6682
6688
|
let t;
|
|
6683
6689
|
try {
|
|
6684
6690
|
t = new Event("addtrack");
|
|
@@ -6687,7 +6693,7 @@ function bn(s, e) {
|
|
|
6687
6693
|
}
|
|
6688
6694
|
t.track = s, e.dispatchEvent(t);
|
|
6689
6695
|
}
|
|
6690
|
-
function
|
|
6696
|
+
function _n(s, e) {
|
|
6691
6697
|
const t = s.mode;
|
|
6692
6698
|
if (t === "disabled" && (s.mode = "hidden"), s.cues && !s.cues.getCueById(e.id))
|
|
6693
6699
|
try {
|
|
@@ -6768,7 +6774,7 @@ function Mi() {
|
|
|
6768
6774
|
if (typeof self != "undefined")
|
|
6769
6775
|
return self.VTTCue || self.TextTrackCue;
|
|
6770
6776
|
}
|
|
6771
|
-
function
|
|
6777
|
+
function Gs(s, e, t, i, r) {
|
|
6772
6778
|
let n = new s(e, t, "");
|
|
6773
6779
|
try {
|
|
6774
6780
|
n.value = i, r && (n.type = r);
|
|
@@ -6832,7 +6838,7 @@ class ul {
|
|
|
6832
6838
|
for (let t = 0; t < e.length; t++) {
|
|
6833
6839
|
const i = e[t];
|
|
6834
6840
|
if (i.kind === "metadata" && i.label === "id3")
|
|
6835
|
-
return
|
|
6841
|
+
return Ln(i, this.media), i;
|
|
6836
6842
|
}
|
|
6837
6843
|
return this.media.addTextTrack("metadata", "id3");
|
|
6838
6844
|
}
|
|
@@ -6860,16 +6866,16 @@ class ul {
|
|
|
6860
6866
|
const l = n[o].type;
|
|
6861
6867
|
if (l === we.emsg && !i || !r)
|
|
6862
6868
|
continue;
|
|
6863
|
-
const c =
|
|
6869
|
+
const c = gn(n[o].data);
|
|
6864
6870
|
if (c) {
|
|
6865
6871
|
const u = n[o].pts;
|
|
6866
6872
|
let h = u + n[o].duration;
|
|
6867
6873
|
h > At && (h = At), h - u <= 0 && (h = u + ll);
|
|
6868
6874
|
for (let f = 0; f < c.length; f++) {
|
|
6869
6875
|
const m = c[f];
|
|
6870
|
-
if (!
|
|
6876
|
+
if (!mn(m)) {
|
|
6871
6877
|
this.updateId3CueEnds(u, l);
|
|
6872
|
-
const g =
|
|
6878
|
+
const g = Gs(a, u, h, m, l);
|
|
6873
6879
|
g && this.id3Track.addCue(g);
|
|
6874
6880
|
}
|
|
6875
6881
|
}
|
|
@@ -6960,7 +6966,7 @@ class ul {
|
|
|
6960
6966
|
else if (c) {
|
|
6961
6967
|
let _ = d.attr[E];
|
|
6962
6968
|
go(E) && (_ = cl(_));
|
|
6963
|
-
const B =
|
|
6969
|
+
const B = Gs(c, f, v, {
|
|
6964
6970
|
key: E,
|
|
6965
6971
|
data: _
|
|
6966
6972
|
}, we.dateRange);
|
|
@@ -7128,7 +7134,7 @@ function ml(s, e) {
|
|
|
7128
7134
|
} = s, n = e !== void 0 ? e - r : 0;
|
|
7129
7135
|
return t && n < t ? i ? vt.v2 : vt.Yes : vt.No;
|
|
7130
7136
|
}
|
|
7131
|
-
class
|
|
7137
|
+
class Hs {
|
|
7132
7138
|
constructor(e, t, i) {
|
|
7133
7139
|
this.msn = void 0, this.part = void 0, this.skip = void 0, this.msn = e, this.part = t, this.skip = i;
|
|
7134
7140
|
}
|
|
@@ -7166,10 +7172,10 @@ class ct {
|
|
|
7166
7172
|
return this.url[0] || "";
|
|
7167
7173
|
}
|
|
7168
7174
|
hasAudioGroup(e) {
|
|
7169
|
-
return
|
|
7175
|
+
return Vs(this._audioGroups, e);
|
|
7170
7176
|
}
|
|
7171
7177
|
hasSubtitleGroup(e) {
|
|
7172
|
-
return
|
|
7178
|
+
return Vs(this._subtitleGroups, e);
|
|
7173
7179
|
}
|
|
7174
7180
|
get audioGroups() {
|
|
7175
7181
|
return this._audioGroups;
|
|
@@ -7211,7 +7217,7 @@ class ct {
|
|
|
7211
7217
|
addFallback() {
|
|
7212
7218
|
}
|
|
7213
7219
|
}
|
|
7214
|
-
function
|
|
7220
|
+
function Vs(s, e) {
|
|
7215
7221
|
return !e || !s ? !1 : s.indexOf(e) !== -1;
|
|
7216
7222
|
}
|
|
7217
7223
|
function gi(s, e) {
|
|
@@ -7222,7 +7228,7 @@ function gi(s, e) {
|
|
|
7222
7228
|
} else
|
|
7223
7229
|
e.sn > s.sn ? s.cc === e.cc && s.minEndPTS ? e.start = s.start + (s.minEndPTS - s.start) : e.start = s.start + s.duration : e.start = Math.max(s.start - e.duration, 0);
|
|
7224
7230
|
}
|
|
7225
|
-
function
|
|
7231
|
+
function Cn(s, e, t, i, r, n) {
|
|
7226
7232
|
i - t <= 0 && (S.warn("Fragment should have a positive duration", e), i = t + e.duration, n = r + e.duration);
|
|
7227
7233
|
let o = t, l = i;
|
|
7228
7234
|
const c = e.startPTS, u = e.endPTS;
|
|
@@ -7276,7 +7282,7 @@ function gl(s, e) {
|
|
|
7276
7282
|
}
|
|
7277
7283
|
e.skippedSegments && (e.startCC = e.fragments[0].cc), yl(s.partList, e.partList, (l, c) => {
|
|
7278
7284
|
c.elementaryStreams = l.elementaryStreams, c.stats = l.stats;
|
|
7279
|
-
}), n ?
|
|
7285
|
+
}), n ? Cn(e, n, n.startPTS, n.endPTS, n.startDTS, n.endDTS) : Rn(s, e), a.length && (e.totalduration = e.edge - a[0].start), e.driftStartTime = s.driftStartTime, e.driftStart = s.driftStart;
|
|
7280
7286
|
const o = e.advancedDateTime;
|
|
7281
7287
|
if (e.advanced && o) {
|
|
7282
7288
|
const l = e.edge;
|
|
@@ -7289,7 +7295,7 @@ function pl(s, e, t) {
|
|
|
7289
7295
|
return t && t.forEach((r) => {
|
|
7290
7296
|
delete i[r];
|
|
7291
7297
|
}), Object.keys(e).forEach((r) => {
|
|
7292
|
-
const n = new
|
|
7298
|
+
const n = new cn(e[r].attr, i[r]);
|
|
7293
7299
|
n.isValid ? i[r] = n : S.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`);
|
|
7294
7300
|
}), i;
|
|
7295
7301
|
}
|
|
@@ -7310,7 +7316,7 @@ function vl(s, e, t) {
|
|
|
7310
7316
|
i && !h && c < i && (h = e.fragments[c] = u), u && h && t(u, h);
|
|
7311
7317
|
}
|
|
7312
7318
|
}
|
|
7313
|
-
function
|
|
7319
|
+
function Rn(s, e) {
|
|
7314
7320
|
const t = e.startSN + e.skippedSegments - s.startSN, i = s.fragments;
|
|
7315
7321
|
t < 0 || t >= i.length || Bi(e, i[t].start);
|
|
7316
7322
|
}
|
|
@@ -7341,11 +7347,11 @@ function Tl(s, e, t) {
|
|
|
7341
7347
|
let r = i.fragments[e - i.startSN];
|
|
7342
7348
|
return r || (r = i.fragmentHint, r && r.sn === e) ? r : e < i.startSN && t && t.sn === e ? t : null;
|
|
7343
7349
|
}
|
|
7344
|
-
function
|
|
7350
|
+
function Ks(s, e, t) {
|
|
7345
7351
|
var i;
|
|
7346
|
-
return s != null && s.details ?
|
|
7352
|
+
return s != null && s.details ? Dn((i = s.details) == null ? void 0 : i.partList, e, t) : null;
|
|
7347
7353
|
}
|
|
7348
|
-
function
|
|
7354
|
+
function Dn(s, e, t) {
|
|
7349
7355
|
if (s)
|
|
7350
7356
|
for (let i = s.length; i--; ) {
|
|
7351
7357
|
const r = s[i];
|
|
@@ -7354,7 +7360,7 @@ function Rn(s, e, t) {
|
|
|
7354
7360
|
}
|
|
7355
7361
|
return null;
|
|
7356
7362
|
}
|
|
7357
|
-
function
|
|
7363
|
+
function In(s) {
|
|
7358
7364
|
s.forEach((e, t) => {
|
|
7359
7365
|
const {
|
|
7360
7366
|
details: i
|
|
@@ -7374,7 +7380,7 @@ function Wt(s) {
|
|
|
7374
7380
|
}
|
|
7375
7381
|
return !1;
|
|
7376
7382
|
}
|
|
7377
|
-
function
|
|
7383
|
+
function zs(s, e) {
|
|
7378
7384
|
const t = Wt(e);
|
|
7379
7385
|
return s.default[`${t ? "timeout" : "error"}Retry`];
|
|
7380
7386
|
}
|
|
@@ -7382,7 +7388,7 @@ function rs(s, e) {
|
|
|
7382
7388
|
const t = s.backoff === "linear" ? 1 : Math.pow(2, e);
|
|
7383
7389
|
return Math.min(t * s.retryDelayMs, s.maxRetryDelayMs);
|
|
7384
7390
|
}
|
|
7385
|
-
function
|
|
7391
|
+
function Ws(s) {
|
|
7386
7392
|
return de(de({}, s), {
|
|
7387
7393
|
errorRetry: null,
|
|
7388
7394
|
timeoutRetry: null
|
|
@@ -7397,7 +7403,7 @@ function Yt(s, e, t, i) {
|
|
|
7397
7403
|
function El(s) {
|
|
7398
7404
|
return s === 0 && navigator.onLine === !1 || !!s && (s < 400 || s > 499);
|
|
7399
7405
|
}
|
|
7400
|
-
const
|
|
7406
|
+
const wn = {
|
|
7401
7407
|
/**
|
|
7402
7408
|
* Searches for an item in an array which matches a certain condition.
|
|
7403
7409
|
* This requires the condition to only match one item in the array,
|
|
@@ -7455,7 +7461,7 @@ function jt(s, e, t = 0, i = 0) {
|
|
|
7455
7461
|
t === 0 && e[0].start === 0 && (r = e[0]);
|
|
7456
7462
|
if (r && (!s || s.level === r.level) && $i(t, i, r) === 0)
|
|
7457
7463
|
return r;
|
|
7458
|
-
const n =
|
|
7464
|
+
const n = wn.search(e, $i.bind(null, t, i));
|
|
7459
7465
|
return n && (n !== s || !r) ? n : r;
|
|
7460
7466
|
}
|
|
7461
7467
|
function $i(s = 0, e = 0, t) {
|
|
@@ -7469,9 +7475,9 @@ function bl(s, e, t) {
|
|
|
7469
7475
|
return (t.endProgramDateTime || 0) - i > s;
|
|
7470
7476
|
}
|
|
7471
7477
|
function Al(s, e) {
|
|
7472
|
-
return
|
|
7478
|
+
return wn.search(s, (t) => t.cc < e ? 1 : t.cc > e ? -1 : 0);
|
|
7473
7479
|
}
|
|
7474
|
-
var
|
|
7480
|
+
var ge = {
|
|
7475
7481
|
DoNothing: 0,
|
|
7476
7482
|
SendEndCallback: 1,
|
|
7477
7483
|
SendAlternateToPenaltyBox: 2,
|
|
@@ -7528,14 +7534,14 @@ class Ll {
|
|
|
7528
7534
|
case D.FRAG_PARSING_ERROR:
|
|
7529
7535
|
if ((i = t.frag) != null && i.gap) {
|
|
7530
7536
|
t.errorAction = {
|
|
7531
|
-
action:
|
|
7537
|
+
action: ge.DoNothing,
|
|
7532
7538
|
flags: De.None
|
|
7533
7539
|
};
|
|
7534
7540
|
return;
|
|
7535
7541
|
}
|
|
7536
7542
|
case D.FRAG_GAP:
|
|
7537
7543
|
case D.FRAG_DECRYPT_ERROR: {
|
|
7538
|
-
t.errorAction = this.getFragRetryOrSwitchAction(t), t.errorAction.action =
|
|
7544
|
+
t.errorAction = this.getFragRetryOrSwitchAction(t), t.errorAction.action = ge.SendAlternateToPenaltyBox;
|
|
7539
7545
|
return;
|
|
7540
7546
|
}
|
|
7541
7547
|
case D.LEVEL_EMPTY_ERROR:
|
|
@@ -7557,7 +7563,7 @@ class Ll {
|
|
|
7557
7563
|
if (a) {
|
|
7558
7564
|
const c = n.levels[n.loadLevel];
|
|
7559
7565
|
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 =
|
|
7566
|
+
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = ge.SendAlternateToPenaltyBox, t.errorAction.flags = De.MoveAllAlternatesMatchingHost;
|
|
7561
7567
|
return;
|
|
7562
7568
|
}
|
|
7563
7569
|
}
|
|
@@ -7566,7 +7572,7 @@ class Ll {
|
|
|
7566
7572
|
{
|
|
7567
7573
|
const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
|
|
7568
7574
|
u ? t.errorAction = {
|
|
7569
|
-
action:
|
|
7575
|
+
action: ge.SendAlternateToPenaltyBox,
|
|
7570
7576
|
flags: De.MoveAllAlternatesMatchingHDCP,
|
|
7571
7577
|
hdcpLevel: u
|
|
7572
7578
|
} : this.keySystemError(t);
|
|
@@ -7585,7 +7591,7 @@ class Ll {
|
|
|
7585
7591
|
case D.BUFFER_SEEK_OVER_HOLE:
|
|
7586
7592
|
case D.BUFFER_NUDGE_ON_STALL:
|
|
7587
7593
|
t.errorAction = {
|
|
7588
|
-
action:
|
|
7594
|
+
action: ge.DoNothing,
|
|
7589
7595
|
flags: De.None
|
|
7590
7596
|
};
|
|
7591
7597
|
return;
|
|
@@ -7597,10 +7603,10 @@ class Ll {
|
|
|
7597
7603
|
e.levelRetry = !1, e.errorAction = this.getLevelSwitchAction(e, t);
|
|
7598
7604
|
}
|
|
7599
7605
|
getPlaylistRetryOrSwitchAction(e, t) {
|
|
7600
|
-
const i = this.hls, r =
|
|
7606
|
+
const i = this.hls, r = zs(i.config.playlistLoadPolicy, e), n = this.playlistError++;
|
|
7601
7607
|
if (Yt(r, n, Wt(e), e.response))
|
|
7602
7608
|
return {
|
|
7603
|
-
action:
|
|
7609
|
+
action: ge.RetryRequest,
|
|
7604
7610
|
flags: De.None,
|
|
7605
7611
|
retryConfig: r,
|
|
7606
7612
|
retryCount: n
|
|
@@ -7612,10 +7618,10 @@ class Ll {
|
|
|
7612
7618
|
const t = this.hls, i = this.getVariantLevelIndex(e.frag), r = t.levels[i], {
|
|
7613
7619
|
fragLoadPolicy: n,
|
|
7614
7620
|
keyLoadPolicy: a
|
|
7615
|
-
} = t.config, o =
|
|
7621
|
+
} = t.config, o = zs(e.details.startsWith("key") ? a : n, e), l = t.levels.reduce((u, h) => u + h.fragmentError, 0);
|
|
7616
7622
|
if (r && (e.details !== D.FRAG_GAP && r.fragmentError++, Yt(o, l, Wt(e), e.response)))
|
|
7617
7623
|
return {
|
|
7618
|
-
action:
|
|
7624
|
+
action: ge.RetryRequest,
|
|
7619
7625
|
flags: De.None,
|
|
7620
7626
|
retryConfig: o,
|
|
7621
7627
|
retryCount: l
|
|
@@ -7654,16 +7660,16 @@ class Ll {
|
|
|
7654
7660
|
var o, l;
|
|
7655
7661
|
const B = h[_];
|
|
7656
7662
|
if (c === D.FRAG_GAP && e.frag) {
|
|
7657
|
-
const
|
|
7658
|
-
if (
|
|
7659
|
-
const b = jt(e.frag,
|
|
7663
|
+
const C = h[_].details;
|
|
7664
|
+
if (C) {
|
|
7665
|
+
const b = jt(e.frag, C.fragments, e.frag.start);
|
|
7660
7666
|
if (b != null && b.gap)
|
|
7661
7667
|
continue;
|
|
7662
7668
|
}
|
|
7663
7669
|
} else {
|
|
7664
7670
|
if (L === J.AUDIO_TRACK && B.hasAudioGroup(E) || L === J.SUBTITLE_TRACK && B.hasSubtitleGroup(E))
|
|
7665
7671
|
continue;
|
|
7666
|
-
if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((
|
|
7672
|
+
if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((C) => B.hasAudioGroup(C)) || g === j.SUBTITLE && (l = r.subtitleGroups) != null && l.some((C) => B.hasSubtitleGroup(C)) || v && r.audioCodec === B.audioCodec || !v && r.audioCodec !== B.audioCodec || x && r.codecSet === B.codecSet)
|
|
7667
7673
|
continue;
|
|
7668
7674
|
}
|
|
7669
7675
|
u = _;
|
|
@@ -7672,22 +7678,22 @@ class Ll {
|
|
|
7672
7678
|
}
|
|
7673
7679
|
if (u > -1 && i.loadLevel !== u)
|
|
7674
7680
|
return e.levelRetry = !0, this.playlistError = 0, {
|
|
7675
|
-
action:
|
|
7681
|
+
action: ge.SendAlternateToPenaltyBox,
|
|
7676
7682
|
flags: De.None,
|
|
7677
7683
|
nextAutoLevel: u
|
|
7678
7684
|
};
|
|
7679
7685
|
}
|
|
7680
7686
|
return {
|
|
7681
|
-
action:
|
|
7687
|
+
action: ge.SendAlternateToPenaltyBox,
|
|
7682
7688
|
flags: De.MoveAllAlternatesMatchingHost
|
|
7683
7689
|
};
|
|
7684
7690
|
}
|
|
7685
7691
|
onErrorOut(e, t) {
|
|
7686
7692
|
var i;
|
|
7687
7693
|
switch ((i = t.errorAction) == null ? void 0 : i.action) {
|
|
7688
|
-
case
|
|
7694
|
+
case ge.DoNothing:
|
|
7689
7695
|
break;
|
|
7690
|
-
case
|
|
7696
|
+
case ge.SendAlternateToPenaltyBox:
|
|
7691
7697
|
this.sendAlternateToPenaltyBox(t), !t.errorAction.resolved && t.details !== D.FRAG_GAP ? t.fatal = !0 : /MediaSource readyState: ended/.test(t.error.message) && (this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`), this.hls.recoverMediaError());
|
|
7692
7698
|
break;
|
|
7693
7699
|
}
|
|
@@ -7760,7 +7766,7 @@ class ns {
|
|
|
7760
7766
|
const l = Math.min(t.age - t.partTarget, t.targetduration);
|
|
7761
7767
|
o >= 0 && l > t.partTarget && (o += 1);
|
|
7762
7768
|
}
|
|
7763
|
-
return new
|
|
7769
|
+
return new Hs(a, o >= 0 ? o : void 0, vt.No);
|
|
7764
7770
|
}
|
|
7765
7771
|
}
|
|
7766
7772
|
}
|
|
@@ -7786,19 +7792,19 @@ class ns {
|
|
|
7786
7792
|
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
7793
|
L ? (c = E ? T + 1 : v, u = E ? k : x + 1) : c = T + 1;
|
|
7788
7794
|
const _ = r.age, B = _ + r.ageHeader;
|
|
7789
|
-
let
|
|
7790
|
-
if (
|
|
7791
|
-
if (i &&
|
|
7792
|
-
this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${
|
|
7795
|
+
let C = Math.min(B - r.partTarget, r.targetduration * 1.5);
|
|
7796
|
+
if (C > 0) {
|
|
7797
|
+
if (i && C > i.tuneInGoal)
|
|
7798
|
+
this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${C} with playlist age: ${r.age}`), C = 0;
|
|
7793
7799
|
else {
|
|
7794
|
-
const b = Math.floor(
|
|
7800
|
+
const b = Math.floor(C / r.targetduration);
|
|
7795
7801
|
if (c += b, u !== void 0) {
|
|
7796
|
-
const
|
|
7797
|
-
u +=
|
|
7802
|
+
const R = Math.round(C % r.targetduration / r.partTarget);
|
|
7803
|
+
u += R;
|
|
7798
7804
|
}
|
|
7799
|
-
this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${_.toFixed(2)}s goal: ${
|
|
7805
|
+
this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${_.toFixed(2)}s goal: ${C} skip sn ${b} to part ${u}`);
|
|
7800
7806
|
}
|
|
7801
|
-
r.tuneInGoal =
|
|
7807
|
+
r.tuneInGoal = C;
|
|
7802
7808
|
}
|
|
7803
7809
|
if (l = this.getDeliveryDirectives(r, t.deliveryDirectives, c, u), y || !E) {
|
|
7804
7810
|
this.loadPlaylist(l);
|
|
@@ -7815,14 +7821,14 @@ class ns {
|
|
|
7815
7821
|
}
|
|
7816
7822
|
getDeliveryDirectives(e, t, i, r) {
|
|
7817
7823
|
let n = ml(e, i);
|
|
7818
|
-
return t != null && t.skip && e.deltaUpdateFailed && (i = t.msn, r = t.part, n = vt.No), new
|
|
7824
|
+
return t != null && t.skip && e.deltaUpdateFailed && (i = t.msn, r = t.part, n = vt.No), new Hs(i, r, n);
|
|
7819
7825
|
}
|
|
7820
7826
|
checkRetry(e) {
|
|
7821
7827
|
const t = e.details, i = Wt(e), r = e.errorAction, {
|
|
7822
7828
|
action: n,
|
|
7823
7829
|
retryCount: a = 0,
|
|
7824
7830
|
retryConfig: o
|
|
7825
|
-
} = r || {}, l = !!r && !!o && (n ===
|
|
7831
|
+
} = r || {}, l = !!r && !!o && (n === ge.RetryRequest || !r.resolved && n === ge.SendAlternateToPenaltyBox);
|
|
7826
7832
|
if (l) {
|
|
7827
7833
|
var c;
|
|
7828
7834
|
if (this.requestScheduled = -1, a >= o.maxNumRetry)
|
|
@@ -7892,7 +7898,7 @@ class _l {
|
|
|
7892
7898
|
destroy() {
|
|
7893
7899
|
}
|
|
7894
7900
|
}
|
|
7895
|
-
const
|
|
7901
|
+
const kn = {
|
|
7896
7902
|
supported: !0,
|
|
7897
7903
|
configurations: [],
|
|
7898
7904
|
decodingInfoResults: [{
|
|
@@ -7900,8 +7906,8 @@ const In = {
|
|
|
7900
7906
|
powerEfficient: !0,
|
|
7901
7907
|
smooth: !0
|
|
7902
7908
|
}]
|
|
7903
|
-
},
|
|
7904
|
-
function
|
|
7909
|
+
}, Ys = {};
|
|
7910
|
+
function Cl(s, e, t, i, r, n) {
|
|
7905
7911
|
const a = s.audioCodec ? s.audioGroups : null, o = n == null ? void 0 : n.audioCodec, l = n == null ? void 0 : n.channels, c = l ? parseInt(l) : o ? 1 / 0 : 2;
|
|
7906
7912
|
let u = null;
|
|
7907
7913
|
if (a != null && a.length)
|
|
@@ -7924,10 +7930,10 @@ function Rl(s, e, t, i, r, n) {
|
|
|
7924
7930
|
}
|
|
7925
7931
|
return s.videoCodec !== void 0 && (s.width > 1920 && s.height > 1088 || s.height > 1920 && s.width > 1088 || s.frameRate > Math.max(i, 30) || s.videoRange !== "SDR" && s.videoRange !== t || s.bitrate > Math.max(r, 8e6)) || !!u && z(c) && Object.keys(u).some((h) => parseInt(h) > c);
|
|
7926
7932
|
}
|
|
7927
|
-
function
|
|
7933
|
+
function Rl(s, e, t) {
|
|
7928
7934
|
const i = s.videoCodec, r = s.audioCodec;
|
|
7929
7935
|
if (!i || !r || !t)
|
|
7930
|
-
return Promise.resolve(
|
|
7936
|
+
return Promise.resolve(kn);
|
|
7931
7937
|
const n = {
|
|
7932
7938
|
width: s.width,
|
|
7933
7939
|
height: s.height,
|
|
@@ -7960,7 +7966,7 @@ function Cl(s, e, t) {
|
|
|
7960
7966
|
}));
|
|
7961
7967
|
}), Promise.all(o.map((l) => {
|
|
7962
7968
|
const c = Dl(l);
|
|
7963
|
-
return
|
|
7969
|
+
return Ys[c] || (Ys[c] = t.decodingInfo(l));
|
|
7964
7970
|
})).then((l) => ({
|
|
7965
7971
|
supported: !l.some((c) => !c.supported),
|
|
7966
7972
|
configurations: o,
|
|
@@ -8134,18 +8140,18 @@ function Ml(s, e, t, i, r) {
|
|
|
8134
8140
|
return (d[g] || (d[g] = [])).push(m), d;
|
|
8135
8141
|
}, {})[n.uri];
|
|
8136
8142
|
o.length > 1 && (i = Math.max.apply(Math, o));
|
|
8137
|
-
const l = n.videoRange, c = n.frameRate, u = n.codecSet.substring(0, 4), h =
|
|
8143
|
+
const l = n.videoRange, c = n.frameRate, u = n.codecSet.substring(0, 4), h = js(e, i, (d) => {
|
|
8138
8144
|
if (d.videoRange !== l || d.frameRate !== c || d.codecSet.substring(0, 4) !== u)
|
|
8139
8145
|
return !1;
|
|
8140
8146
|
const f = d.audioGroups, m = t.filter((g) => !f || f.indexOf(g.groupId) !== -1);
|
|
8141
8147
|
return Ne(s, m, r) > -1;
|
|
8142
8148
|
});
|
|
8143
|
-
return h > -1 ? h :
|
|
8149
|
+
return h > -1 ? h : js(e, i, (d) => {
|
|
8144
8150
|
const f = d.audioGroups, m = t.filter((g) => !f || f.indexOf(g.groupId) !== -1);
|
|
8145
8151
|
return Ne(s, m, r) > -1;
|
|
8146
8152
|
});
|
|
8147
8153
|
}
|
|
8148
|
-
function
|
|
8154
|
+
function js(s, e, t) {
|
|
8149
8155
|
for (let i = e; i; i--)
|
|
8150
8156
|
if (t(s[i]))
|
|
8151
8157
|
return i;
|
|
@@ -8186,17 +8192,17 @@ class Nl {
|
|
|
8186
8192
|
const _ = v ? l.loaded * 1e3 / k : 0, B = _ ? (E - l.loaded) / _ : E * 8 / T + f / 1e3;
|
|
8187
8193
|
if (B <= g)
|
|
8188
8194
|
return;
|
|
8189
|
-
const
|
|
8190
|
-
let b = Number.POSITIVE_INFINITY,
|
|
8191
|
-
for (
|
|
8192
|
-
const w = x[
|
|
8193
|
-
if (b = this.getTimeToLoadFrag(f / 1e3,
|
|
8195
|
+
const C = _ ? _ * 8 : T;
|
|
8196
|
+
let b = Number.POSITIVE_INFINITY, R;
|
|
8197
|
+
for (R = t.level - 1; R > h; R--) {
|
|
8198
|
+
const w = x[R].maxBitrate;
|
|
8199
|
+
if (b = this.getTimeToLoadFrag(f / 1e3, C, c * w, !x[R].details), b < g)
|
|
8194
8200
|
break;
|
|
8195
8201
|
}
|
|
8196
8202
|
if (b >= B || b > c * 10)
|
|
8197
8203
|
return;
|
|
8198
|
-
r.nextLoadLevel = r.nextAutoLevel =
|
|
8199
|
-
const P = x[
|
|
8204
|
+
r.nextLoadLevel = r.nextAutoLevel = R, v ? this.bwEstimator.sample(u - Math.min(f, y), l.loaded) : this.bwEstimator.sampleTTFB(u);
|
|
8205
|
+
const P = x[R].maxBitrate;
|
|
8200
8206
|
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
8207
|
Time to underbuffer: ${g.toFixed(3)} s
|
|
8202
8208
|
Estimated load time for current fragment: ${B.toFixed(3)} s
|
|
@@ -8204,7 +8210,7 @@ class Nl {
|
|
|
8204
8210
|
TTFB estimate: ${y | 0} ms
|
|
8205
8211
|
Current BW estimate: ${z(T) ? T | 0 : "Unknown"} bps
|
|
8206
8212
|
New BW estimate: ${this.getBwEstimate() | 0} bps
|
|
8207
|
-
Switching to level ${
|
|
8213
|
+
Switching to level ${R} @ ${P | 0} bps`), r.trigger(p.FRAG_LOAD_EMERGENCY_ABORTED, {
|
|
8208
8214
|
frag: t,
|
|
8209
8215
|
part: i,
|
|
8210
8216
|
stats: l
|
|
@@ -8413,12 +8419,12 @@ class Nl {
|
|
|
8413
8419
|
let E, k = "SDR", _ = (T == null ? void 0 : T.frameRate) || 0;
|
|
8414
8420
|
const {
|
|
8415
8421
|
audioPreference: B,
|
|
8416
|
-
videoPreference:
|
|
8422
|
+
videoPreference: C
|
|
8417
8423
|
} = v, b = this.audioTracksByGroup || (this.audioTracksByGroup = Pl(g));
|
|
8418
8424
|
if (L) {
|
|
8419
8425
|
if (this.firstSelection !== -1)
|
|
8420
8426
|
return this.firstSelection;
|
|
8421
|
-
const O = this.codecTiers || (this.codecTiers = Ol(m, b, t, i)), U = kl(O, k, e, B,
|
|
8427
|
+
const O = this.codecTiers || (this.codecTiers = Ol(m, b, t, i)), U = kl(O, k, e, B, C), {
|
|
8422
8428
|
codecSet: F,
|
|
8423
8429
|
videoRanges: V,
|
|
8424
8430
|
minFramerate: H,
|
|
@@ -8428,7 +8434,7 @@ class Nl {
|
|
|
8428
8434
|
E = F, k = Q ? V[V.length - 1] : V[0], _ = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
|
|
8429
8435
|
} else
|
|
8430
8436
|
E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
|
|
8431
|
-
const
|
|
8437
|
+
const R = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
|
|
8432
8438
|
for (let O = i; O >= t; O--) {
|
|
8433
8439
|
var $;
|
|
8434
8440
|
const U = m[O], F = O > h;
|
|
@@ -8436,22 +8442,22 @@ class Nl {
|
|
|
8436
8442
|
continue;
|
|
8437
8443
|
if (v.useMediaCapabilities && !U.supportedResult && !U.supportedPromise) {
|
|
8438
8444
|
const ae = navigator.mediaCapabilities;
|
|
8439
|
-
typeof (ae == null ? void 0 : ae.decodingInfo) == "function" &&
|
|
8445
|
+
typeof (ae == null ? void 0 : ae.decodingInfo) == "function" && Cl(U, b, k, _, e, B) ? (U.supportedPromise = Rl(U, b, ae), U.supportedPromise.then((ce) => {
|
|
8440
8446
|
if (!this.hls)
|
|
8441
8447
|
return;
|
|
8442
8448
|
U.supportedResult = ce;
|
|
8443
|
-
const
|
|
8444
|
-
ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${Ae} ${JSON.stringify(ce)}`) : ce.supported || (S.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Ae} ${JSON.stringify(ce)}`), Ae > -1 &&
|
|
8445
|
-
})) : U.supportedResult =
|
|
8449
|
+
const me = this.hls.levels, Ae = me.indexOf(U);
|
|
8450
|
+
ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${Ae} ${JSON.stringify(ce)}`) : ce.supported || (S.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Ae} ${JSON.stringify(ce)}`), Ae > -1 && me.length > 1 && (S.log(`[abr] Removing unsupported level ${Ae}`), this.hls.removeLevel(Ae)));
|
|
8451
|
+
})) : U.supportedResult = kn;
|
|
8446
8452
|
}
|
|
8447
8453
|
if (E && U.codecSet !== E || k && U.videoRange !== k || F && _ > U.frameRate || !F && _ > 0 && _ < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
|
|
8448
8454
|
w.push(O);
|
|
8449
8455
|
continue;
|
|
8450
8456
|
}
|
|
8451
|
-
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) ||
|
|
8457
|
+
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) || R;
|
|
8452
8458
|
let M;
|
|
8453
8459
|
F ? M = o * e : M = a * e;
|
|
8454
|
-
const Q =
|
|
8460
|
+
const Q = R && r >= R * 2 && n === 0 ? m[O].averageBitrate : m[O].maxBitrate, Z = this.getTimeToLoadFrag(P, M, Q * H, V === void 0);
|
|
8455
8461
|
if (
|
|
8456
8462
|
// if adjusted bw is greater than level bitrate AND
|
|
8457
8463
|
M >= Q && // no level change, or new level has no error history
|
|
@@ -8913,25 +8919,25 @@ function Hl(s, e) {
|
|
|
8913
8919
|
}
|
|
8914
8920
|
return r;
|
|
8915
8921
|
}
|
|
8916
|
-
function
|
|
8922
|
+
function qs(s, e) {
|
|
8917
8923
|
if (s) {
|
|
8918
8924
|
const t = s.start + e;
|
|
8919
8925
|
s.start = s.startPTS = t, s.endPTS = t + s.duration;
|
|
8920
8926
|
}
|
|
8921
8927
|
}
|
|
8922
|
-
function
|
|
8928
|
+
function Pn(s, e) {
|
|
8923
8929
|
const t = e.fragments;
|
|
8924
8930
|
for (let i = 0, r = t.length; i < r; i++)
|
|
8925
|
-
|
|
8926
|
-
e.fragmentHint &&
|
|
8931
|
+
qs(t[i], s);
|
|
8932
|
+
e.fragmentHint && qs(e.fragmentHint, s), e.alignedSliding = !0;
|
|
8927
8933
|
}
|
|
8928
8934
|
function Vl(s, e, t) {
|
|
8929
|
-
e && (Kl(s, t, e), !t.alignedSliding && e && qt(t, e), !t.alignedSliding && e && !t.skippedSegments &&
|
|
8935
|
+
e && (Kl(s, t, e), !t.alignedSliding && e && qt(t, e), !t.alignedSliding && e && !t.skippedSegments && Rn(e, t));
|
|
8930
8936
|
}
|
|
8931
8937
|
function Kl(s, e, t) {
|
|
8932
8938
|
if (Gl(s, t, e)) {
|
|
8933
8939
|
const i = Hl(t, e);
|
|
8934
|
-
i && z(i.start) && (S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),
|
|
8940
|
+
i && z(i.start) && (S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`), Pn(i.start, e));
|
|
8935
8941
|
}
|
|
8936
8942
|
}
|
|
8937
8943
|
function qt(s, e) {
|
|
@@ -8947,9 +8953,9 @@ function qt(s, e) {
|
|
|
8947
8953
|
if (!o || !l)
|
|
8948
8954
|
return;
|
|
8949
8955
|
const c = (l - o) / 1e3 - (n.start - r.start);
|
|
8950
|
-
|
|
8956
|
+
Pn(c, s);
|
|
8951
8957
|
}
|
|
8952
|
-
const
|
|
8958
|
+
const Xs = Math.pow(2, 17);
|
|
8953
8959
|
class zl {
|
|
8954
8960
|
constructor(e) {
|
|
8955
8961
|
this.config = void 0, this.loader = null, this.partLoadTimeout = -1, this.config = e;
|
|
@@ -8976,17 +8982,17 @@ class zl {
|
|
|
8976
8982
|
return new Promise((o, l) => {
|
|
8977
8983
|
if (this.loader && this.loader.destroy(), e.gap)
|
|
8978
8984
|
if (e.tagList.some((f) => f[0] === "GAP")) {
|
|
8979
|
-
l(
|
|
8985
|
+
l(Qs(e));
|
|
8980
8986
|
return;
|
|
8981
8987
|
} else
|
|
8982
8988
|
e.gap = !1;
|
|
8983
|
-
const c = this.loader = e.loader = n ? new n(r) : new a(r), u =
|
|
8989
|
+
const c = this.loader = e.loader = n ? new n(r) : new a(r), u = Zs(e), h = Ws(r.fragLoadPolicy.default), d = {
|
|
8984
8990
|
loadPolicy: h,
|
|
8985
8991
|
timeout: h.maxLoadTimeMs,
|
|
8986
8992
|
maxRetry: 0,
|
|
8987
8993
|
retryDelay: 0,
|
|
8988
8994
|
maxRetryDelay: 0,
|
|
8989
|
-
highWaterMark: e.sn === "initSegment" ? 1 / 0 :
|
|
8995
|
+
highWaterMark: e.sn === "initSegment" ? 1 / 0 : Xs
|
|
8990
8996
|
};
|
|
8991
8997
|
e.stats = c.stats, c.load(u, d, {
|
|
8992
8998
|
onSuccess: (f, m, g, y) => {
|
|
@@ -9052,16 +9058,16 @@ class zl {
|
|
|
9052
9058
|
const r = this.config, n = r.fLoader, a = r.loader;
|
|
9053
9059
|
return new Promise((o, l) => {
|
|
9054
9060
|
if (this.loader && this.loader.destroy(), e.gap || t.gap) {
|
|
9055
|
-
l(
|
|
9061
|
+
l(Qs(e, t));
|
|
9056
9062
|
return;
|
|
9057
9063
|
}
|
|
9058
|
-
const c = this.loader = e.loader = n ? new n(r) : new a(r), u =
|
|
9064
|
+
const c = this.loader = e.loader = n ? new n(r) : new a(r), u = Zs(e, t), h = Ws(r.fragLoadPolicy.default), d = {
|
|
9059
9065
|
loadPolicy: h,
|
|
9060
9066
|
timeout: h.maxLoadTimeMs,
|
|
9061
9067
|
maxRetry: 0,
|
|
9062
9068
|
retryDelay: 0,
|
|
9063
9069
|
maxRetryDelay: 0,
|
|
9064
|
-
highWaterMark:
|
|
9070
|
+
highWaterMark: Xs
|
|
9065
9071
|
};
|
|
9066
9072
|
t.stats = c.stats, c.load(u, d, {
|
|
9067
9073
|
onSuccess: (f, m, g, y) => {
|
|
@@ -9131,7 +9137,7 @@ class zl {
|
|
|
9131
9137
|
e.loader = null, this.loader === t && (self.clearTimeout(this.partLoadTimeout), this.loader = null), t.destroy();
|
|
9132
9138
|
}
|
|
9133
9139
|
}
|
|
9134
|
-
function
|
|
9140
|
+
function Zs(s, e = null) {
|
|
9135
9141
|
const t = e || s, i = {
|
|
9136
9142
|
frag: s,
|
|
9137
9143
|
part: e,
|
|
@@ -9152,7 +9158,7 @@ function qs(s, e = null) {
|
|
|
9152
9158
|
}
|
|
9153
9159
|
return i;
|
|
9154
9160
|
}
|
|
9155
|
-
function
|
|
9161
|
+
function Qs(s, e) {
|
|
9156
9162
|
const t = new Error(`GAP ${s.gap ? "tag" : "attribute"} found`), i = {
|
|
9157
9163
|
type: q.MEDIA_ERROR,
|
|
9158
9164
|
details: D.FRAG_GAP,
|
|
@@ -9250,12 +9256,12 @@ class ql {
|
|
|
9250
9256
|
const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], h = o[3], d = this.uint8ArrayToUint32Array_(i);
|
|
9251
9257
|
let f = d[0], m = d[1], g = d[2], y = d[3];
|
|
9252
9258
|
const v = new Int32Array(e), T = new Int32Array(v.length);
|
|
9253
|
-
let x, L, E, k, _, B,
|
|
9259
|
+
let x, L, E, k, _, B, C, b, R, P, w, $, O, U;
|
|
9254
9260
|
const F = this.networkToHostOrderSwap;
|
|
9255
9261
|
for (; t < v.length; ) {
|
|
9256
|
-
for (
|
|
9257
|
-
x = l[_ >>> 24] ^ c[B >> 16 & 255] ^ u[
|
|
9258
|
-
x = a[_ >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[
|
|
9262
|
+
for (R = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), _ = R ^ n[0], B = $ ^ n[1], C = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
|
|
9263
|
+
x = l[_ >>> 24] ^ c[B >> 16 & 255] ^ u[C >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[C >> 16 & 255] ^ u[b >> 8 & 255] ^ h[_ & 255] ^ n[O + 1], E = l[C >>> 24] ^ c[b >> 16 & 255] ^ u[_ >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[_ >> 16 & 255] ^ u[B >> 8 & 255] ^ h[C & 255] ^ n[O + 3], _ = x, B = L, C = E, b = k, O = O + 4;
|
|
9264
|
+
x = a[_ >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[_ & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[_ >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[_ >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = R, m = P, g = w, y = $, t = t + 4;
|
|
9259
9265
|
}
|
|
9260
9266
|
return T.buffer;
|
|
9261
9267
|
}
|
|
@@ -9307,7 +9313,7 @@ class os {
|
|
|
9307
9313
|
currentResult: n,
|
|
9308
9314
|
remainderData: a
|
|
9309
9315
|
} = this;
|
|
9310
|
-
this.logOnce("JS AES decrypt"), a && (e =
|
|
9316
|
+
this.logOnce("JS AES decrypt"), a && (e = Ce(a, e), this.remainderData = null);
|
|
9311
9317
|
const o = this.getValidChunk(e);
|
|
9312
9318
|
if (!o.length)
|
|
9313
9319
|
return null;
|
|
@@ -9630,7 +9636,7 @@ class ls extends Bl {
|
|
|
9630
9636
|
l[h.index] = d;
|
|
9631
9637
|
const f = d.part;
|
|
9632
9638
|
this.hls.trigger(p.FRAG_LOADED, d);
|
|
9633
|
-
const m =
|
|
9639
|
+
const m = Ks(i, e.sn, h.index + 1) || Dn(c, e.sn, h.index + 1);
|
|
9634
9640
|
if (m)
|
|
9635
9641
|
u(m);
|
|
9636
9642
|
else
|
|
@@ -9682,7 +9688,7 @@ class ls extends Bl {
|
|
|
9682
9688
|
} = e;
|
|
9683
9689
|
if (!(t != null && t[r]))
|
|
9684
9690
|
return this.warn(`Levels object was unset while buffering fragment ${n} of level ${r}. The current chunk will not be buffered.`), null;
|
|
9685
|
-
const o = t[r], l = a > -1 ?
|
|
9691
|
+
const o = t[r], l = a > -1 ? Ks(o, n, a) : null, c = l ? l.fragment : Tl(o, n, i);
|
|
9686
9692
|
return c ? (i && i !== c && (c.stats = i.stats), {
|
|
9687
9693
|
frag: c,
|
|
9688
9694
|
part: l,
|
|
@@ -9698,7 +9704,7 @@ class ls extends Bl {
|
|
|
9698
9704
|
data2: l
|
|
9699
9705
|
} = e;
|
|
9700
9706
|
let c = o;
|
|
9701
|
-
if (o && l && (c =
|
|
9707
|
+
if (o && l && (c = Ce(o, l)), !((a = c) != null && a.length))
|
|
9702
9708
|
return;
|
|
9703
9709
|
const u = {
|
|
9704
9710
|
type: e.type,
|
|
@@ -9938,19 +9944,19 @@ class ls extends Bl {
|
|
|
9938
9944
|
retryCount: l = 0,
|
|
9939
9945
|
retryConfig: c
|
|
9940
9946
|
} = a || {};
|
|
9941
|
-
if (a && o ===
|
|
9947
|
+
if (a && o === ge.RetryRequest && c) {
|
|
9942
9948
|
this.resetStartWhenNotLoaded(this.levelLastLoaded);
|
|
9943
9949
|
const u = rs(c, l);
|
|
9944
9950
|
this.warn(`Fragment ${i.sn} of ${e} ${i.level} errored with ${t.details}, retrying loading ${l + 1}/${c.maxNumRetry} in ${u}ms`), a.resolved = !0, this.retryDate = self.performance.now() + u, this.state = N.FRAG_LOADING_WAITING_RETRY;
|
|
9945
9951
|
} else if (c && a)
|
|
9946
9952
|
if (this.resetFragmentErrors(e), l < c.maxNumRetry)
|
|
9947
|
-
!n && o !==
|
|
9953
|
+
!n && o !== ge.RemoveAlternatePermanently && (a.resolved = !0);
|
|
9948
9954
|
else {
|
|
9949
9955
|
S.warn(`${t.details} reached or exceeded max retry (${l})`);
|
|
9950
9956
|
return;
|
|
9951
9957
|
}
|
|
9952
9958
|
else
|
|
9953
|
-
(a == null ? void 0 : a.action) ===
|
|
9959
|
+
(a == null ? void 0 : a.action) === ge.SendAlternateToPenaltyBox ? this.state = N.WAITING_LEVEL : this.state = N.ERROR;
|
|
9954
9960
|
this.tickImmediate();
|
|
9955
9961
|
}
|
|
9956
9962
|
reduceLengthAndFlushBuffer(e) {
|
|
@@ -10000,7 +10006,7 @@ class ls extends Bl {
|
|
|
10000
10006
|
const h = u.endPTS - u.startPTS;
|
|
10001
10007
|
if (h <= 0)
|
|
10002
10008
|
return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${h})`), l || !1;
|
|
10003
|
-
const d = r ? 0 :
|
|
10009
|
+
const d = r ? 0 : Cn(a, e, u.startPTS, u.endPTS, u.startDTS, u.endDTS);
|
|
10004
10010
|
return this.hls.trigger(p.LEVEL_PTS_UPDATED, {
|
|
10005
10011
|
details: a,
|
|
10006
10012
|
level: i,
|
|
@@ -10044,7 +10050,7 @@ class ls extends Bl {
|
|
|
10044
10050
|
return this._state;
|
|
10045
10051
|
}
|
|
10046
10052
|
}
|
|
10047
|
-
class
|
|
10053
|
+
class On {
|
|
10048
10054
|
constructor() {
|
|
10049
10055
|
this.chunks = [], this.dataLength = 0;
|
|
10050
10056
|
}
|
|
@@ -10134,7 +10140,7 @@ class cs {
|
|
|
10134
10140
|
}
|
|
10135
10141
|
// feed incoming data to the front of the parsing pipeline
|
|
10136
10142
|
demux(e, t) {
|
|
10137
|
-
this.cachedData && (e =
|
|
10143
|
+
this.cachedData && (e = Ce(this.cachedData, e), this.cachedData = null);
|
|
10138
10144
|
let i = xt(e, 0), r = i ? i.length : 0, n;
|
|
10139
10145
|
const a = this._audioTrack, o = this._id3Track, l = i ? ss(i) : void 0, c = e.length;
|
|
10140
10146
|
for ((this.basePTS === null || this.frameIndex === 0 && z(l)) && (this.basePTS = ic(l, t, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), i && i.length > 0 && o.samples.push({
|
|
@@ -10157,7 +10163,7 @@ class cs {
|
|
|
10157
10163
|
}), r += i.length, n = r) : r++;
|
|
10158
10164
|
if (r === c && n !== c) {
|
|
10159
10165
|
const u = Qe(e, n);
|
|
10160
|
-
this.cachedData ? this.cachedData =
|
|
10166
|
+
this.cachedData ? this.cachedData = Ce(this.cachedData, u) : this.cachedData = u;
|
|
10161
10167
|
}
|
|
10162
10168
|
}
|
|
10163
10169
|
return {
|
|
@@ -10212,10 +10218,10 @@ function sc(s, e, t, i) {
|
|
|
10212
10218
|
manifestCodec: c
|
|
10213
10219
|
};
|
|
10214
10220
|
}
|
|
10215
|
-
function
|
|
10221
|
+
function Fn(s, e) {
|
|
10216
10222
|
return s[e] === 255 && (s[e + 1] & 246) === 240;
|
|
10217
10223
|
}
|
|
10218
|
-
function
|
|
10224
|
+
function Mn(s, e) {
|
|
10219
10225
|
return s[e + 1] & 1 ? 7 : 9;
|
|
10220
10226
|
}
|
|
10221
10227
|
function us(s, e) {
|
|
@@ -10225,14 +10231,14 @@ function rc(s, e) {
|
|
|
10225
10231
|
return e + 5 < s.length;
|
|
10226
10232
|
}
|
|
10227
10233
|
function Xt(s, e) {
|
|
10228
|
-
return e + 1 < s.length &&
|
|
10234
|
+
return e + 1 < s.length && Fn(s, e);
|
|
10229
10235
|
}
|
|
10230
10236
|
function nc(s, e) {
|
|
10231
|
-
return rc(s, e) &&
|
|
10237
|
+
return rc(s, e) && Fn(s, e) && us(s, e) <= s.length - e;
|
|
10232
10238
|
}
|
|
10233
10239
|
function ac(s, e) {
|
|
10234
10240
|
if (Xt(s, e)) {
|
|
10235
|
-
const t =
|
|
10241
|
+
const t = Mn(s, e);
|
|
10236
10242
|
if (e + t >= s.length)
|
|
10237
10243
|
return !1;
|
|
10238
10244
|
const i = us(s, e);
|
|
@@ -10243,7 +10249,7 @@ function ac(s, e) {
|
|
|
10243
10249
|
}
|
|
10244
10250
|
return !1;
|
|
10245
10251
|
}
|
|
10246
|
-
function
|
|
10252
|
+
function Nn(s, e, t, i, r) {
|
|
10247
10253
|
if (!s.samplerate) {
|
|
10248
10254
|
const n = sc(e, t, i, r);
|
|
10249
10255
|
if (!n)
|
|
@@ -10251,11 +10257,11 @@ function Fn(s, e, t, i, r) {
|
|
|
10251
10257
|
s.config = n.config, s.samplerate = n.samplerate, s.channelCount = n.channelCount, s.codec = n.codec, s.manifestCodec = n.manifestCodec, S.log(`parsed codec:${s.codec}, rate:${n.samplerate}, channels:${n.channelCount}`);
|
|
10252
10258
|
}
|
|
10253
10259
|
}
|
|
10254
|
-
function
|
|
10260
|
+
function Bn(s) {
|
|
10255
10261
|
return 1024 * 9e4 / s;
|
|
10256
10262
|
}
|
|
10257
10263
|
function oc(s, e) {
|
|
10258
|
-
const t =
|
|
10264
|
+
const t = Mn(s, e);
|
|
10259
10265
|
if (e + t <= s.length) {
|
|
10260
10266
|
const i = us(s, e) - t;
|
|
10261
10267
|
if (i > 0)
|
|
@@ -10265,8 +10271,8 @@ function oc(s, e) {
|
|
|
10265
10271
|
};
|
|
10266
10272
|
}
|
|
10267
10273
|
}
|
|
10268
|
-
function
|
|
10269
|
-
const n =
|
|
10274
|
+
function $n(s, e, t, i, r) {
|
|
10275
|
+
const n = Bn(s.samplerate), a = i + r * n, o = oc(e, t);
|
|
10270
10276
|
let l;
|
|
10271
10277
|
if (o) {
|
|
10272
10278
|
const {
|
|
@@ -10294,7 +10300,7 @@ function Nn(s, e, t, i, r) {
|
|
|
10294
10300
|
missing: -1
|
|
10295
10301
|
};
|
|
10296
10302
|
}
|
|
10297
|
-
let
|
|
10303
|
+
let Ct = null;
|
|
10298
10304
|
const lc = [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], cc = [44100, 48e3, 32e3, 22050, 24e3, 16e3, 11025, 12e3, 8e3], uc = [
|
|
10299
10305
|
// MPEG 2.5
|
|
10300
10306
|
[
|
|
@@ -10350,10 +10356,10 @@ const lc = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 3
|
|
|
10350
10356
|
4
|
|
10351
10357
|
// Layer1
|
|
10352
10358
|
];
|
|
10353
|
-
function
|
|
10359
|
+
function Un(s, e, t, i, r) {
|
|
10354
10360
|
if (t + 24 > e.length)
|
|
10355
10361
|
return;
|
|
10356
|
-
const n =
|
|
10362
|
+
const n = Gn(e, t);
|
|
10357
10363
|
if (n && t + n.frameLength <= e.length) {
|
|
10358
10364
|
const a = n.samplesPerFrame * 9e4 / n.sampleRate, o = i + r * a, l = {
|
|
10359
10365
|
unit: e.subarray(t, t + n.frameLength),
|
|
@@ -10367,15 +10373,15 @@ function Bn(s, e, t, i, r) {
|
|
|
10367
10373
|
};
|
|
10368
10374
|
}
|
|
10369
10375
|
}
|
|
10370
|
-
function
|
|
10376
|
+
function Gn(s, e) {
|
|
10371
10377
|
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
10378
|
if (t !== 1 && r !== 0 && r !== 15 && n !== 3) {
|
|
10373
10379
|
const a = s[e + 2] >> 1 & 1, o = s[e + 3] >> 6, l = t === 3 ? 3 - i : i === 3 ? 3 : 4, c = lc[l * 14 + r - 1] * 1e3, h = cc[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + n], d = o === 3 ? 1 : 2, f = uc[t][i], m = hc[i], g = f * 8 * m, y = Math.floor(f * c / h + a) * m;
|
|
10374
|
-
if (
|
|
10380
|
+
if (Ct === null) {
|
|
10375
10381
|
const x = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
|
|
10376
|
-
|
|
10382
|
+
Ct = x ? parseInt(x[1]) : 0;
|
|
10377
10383
|
}
|
|
10378
|
-
return !!
|
|
10384
|
+
return !!Ct && Ct <= 87 && i === 2 && c >= 224e3 && o === 0 && (s[e + 3] = s[e + 3] | 128), {
|
|
10379
10385
|
sampleRate: h,
|
|
10380
10386
|
channelCount: d,
|
|
10381
10387
|
frameLength: y,
|
|
@@ -10386,19 +10392,19 @@ function $n(s, e) {
|
|
|
10386
10392
|
function hs(s, e) {
|
|
10387
10393
|
return s[e] === 255 && (s[e + 1] & 224) === 224 && (s[e + 1] & 6) !== 0;
|
|
10388
10394
|
}
|
|
10389
|
-
function
|
|
10395
|
+
function Hn(s, e) {
|
|
10390
10396
|
return e + 1 < s.length && hs(s, e);
|
|
10391
10397
|
}
|
|
10392
10398
|
function dc(s, e) {
|
|
10393
10399
|
return hs(s, e) && 4 <= s.length - e;
|
|
10394
10400
|
}
|
|
10395
|
-
function
|
|
10401
|
+
function Vn(s, e) {
|
|
10396
10402
|
if (e + 1 < s.length && hs(s, e)) {
|
|
10397
|
-
const i =
|
|
10403
|
+
const i = Gn(s, e);
|
|
10398
10404
|
let r = 4;
|
|
10399
10405
|
i != null && i.frameLength && (r = i.frameLength);
|
|
10400
10406
|
const n = e + r;
|
|
10401
|
-
return n === s.length ||
|
|
10407
|
+
return n === s.length || Hn(s, n);
|
|
10402
10408
|
}
|
|
10403
10409
|
return !1;
|
|
10404
10410
|
}
|
|
@@ -10427,7 +10433,7 @@ class fc extends cs {
|
|
|
10427
10433
|
return !1;
|
|
10428
10434
|
const t = xt(e, 0);
|
|
10429
10435
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
10430
|
-
if (
|
|
10436
|
+
if (Vn(e, i))
|
|
10431
10437
|
return !1;
|
|
10432
10438
|
for (let r = e.length; i < r; i++)
|
|
10433
10439
|
if (ac(e, i))
|
|
@@ -10438,8 +10444,8 @@ class fc extends cs {
|
|
|
10438
10444
|
return nc(e, t);
|
|
10439
10445
|
}
|
|
10440
10446
|
appendFrame(e, t, i) {
|
|
10441
|
-
|
|
10442
|
-
const r =
|
|
10447
|
+
Nn(e, this.observer, t, i, e.manifestCodec);
|
|
10448
|
+
const r = $n(e, t, i, this.basePTS, this.frameIndex);
|
|
10443
10449
|
if (r && r.missing === 0)
|
|
10444
10450
|
return r;
|
|
10445
10451
|
}
|
|
@@ -10455,7 +10461,7 @@ class gc {
|
|
|
10455
10461
|
const n = this.videoTrack = Fe("video", 1), a = this.audioTrack = Fe("audio", 1), o = this.txtTrack = Fe("text", 1);
|
|
10456
10462
|
if (this.id3Track = Fe("id3", 1), this.timeOffset = 0, !(e != null && e.byteLength))
|
|
10457
10463
|
return;
|
|
10458
|
-
const l =
|
|
10464
|
+
const l = xn(e);
|
|
10459
10465
|
if (l.video) {
|
|
10460
10466
|
const {
|
|
10461
10467
|
id: c,
|
|
@@ -10472,7 +10478,7 @@ class gc {
|
|
|
10472
10478
|
} = l.audio;
|
|
10473
10479
|
a.id = c, a.timescale = u, a.codec = h;
|
|
10474
10480
|
}
|
|
10475
|
-
o.id =
|
|
10481
|
+
o.id = pn.text, n.sampleDuration = 0, n.duration = a.duration = r;
|
|
10476
10482
|
}
|
|
10477
10483
|
resetContiguity() {
|
|
10478
10484
|
this.remainderData = null;
|
|
@@ -10485,13 +10491,13 @@ class gc {
|
|
|
10485
10491
|
let i = e;
|
|
10486
10492
|
const r = this.videoTrack, n = this.txtTrack;
|
|
10487
10493
|
if (this.config.progressive) {
|
|
10488
|
-
this.remainderData && (i =
|
|
10494
|
+
this.remainderData && (i = Ce(this.remainderData, e));
|
|
10489
10495
|
const o = Ho(i);
|
|
10490
10496
|
this.remainderData = o.remainder, r.samples = o.valid || new Uint8Array();
|
|
10491
10497
|
} else
|
|
10492
10498
|
r.samples = i;
|
|
10493
10499
|
const a = this.extractID3Track(r, t);
|
|
10494
|
-
return n.samples =
|
|
10500
|
+
return n.samples = _s(t, r), {
|
|
10495
10501
|
videoTrack: r,
|
|
10496
10502
|
audioTrack: this.audioTrack,
|
|
10497
10503
|
id3Track: a,
|
|
@@ -10502,7 +10508,7 @@ class gc {
|
|
|
10502
10508
|
const e = this.timeOffset, t = this.videoTrack, i = this.txtTrack;
|
|
10503
10509
|
t.samples = this.remainderData || new Uint8Array(), this.remainderData = null;
|
|
10504
10510
|
const r = this.extractID3Track(t, this.timeOffset);
|
|
10505
|
-
return i.samples =
|
|
10511
|
+
return i.samples = _s(e, t), {
|
|
10506
10512
|
videoTrack: t,
|
|
10507
10513
|
audioTrack: Fe(),
|
|
10508
10514
|
id3Track: r,
|
|
@@ -10539,7 +10545,7 @@ class gc {
|
|
|
10539
10545
|
destroy() {
|
|
10540
10546
|
}
|
|
10541
10547
|
}
|
|
10542
|
-
const
|
|
10548
|
+
const Kn = (s, e) => {
|
|
10543
10549
|
let t = 0, i = 5;
|
|
10544
10550
|
e += i;
|
|
10545
10551
|
const r = new Uint32Array(1), n = new Uint32Array(1), a = new Uint8Array(1);
|
|
@@ -10573,7 +10579,7 @@ class pc extends cs {
|
|
|
10573
10579
|
return t + 64 < e.length;
|
|
10574
10580
|
}
|
|
10575
10581
|
appendFrame(e, t, i) {
|
|
10576
|
-
const r =
|
|
10582
|
+
const r = zn(e, t, i, this.basePTS, this.frameIndex);
|
|
10577
10583
|
if (r !== -1)
|
|
10578
10584
|
return {
|
|
10579
10585
|
sample: e.samples[e.samples.length - 1],
|
|
@@ -10589,10 +10595,10 @@ class pc extends cs {
|
|
|
10589
10595
|
return !1;
|
|
10590
10596
|
const i = t.length;
|
|
10591
10597
|
return e[i] === 11 && e[i + 1] === 119 && ss(t) !== void 0 && // check the bsid to confirm ac-3
|
|
10592
|
-
|
|
10598
|
+
Kn(e, i) < 16;
|
|
10593
10599
|
}
|
|
10594
10600
|
}
|
|
10595
|
-
function
|
|
10601
|
+
function zn(s, e, t, i, r) {
|
|
10596
10602
|
if (t + 8 > e.length || e[t] !== 11 || e[t + 1] !== 119)
|
|
10597
10603
|
return -1;
|
|
10598
10604
|
const n = e[t + 4] >> 6;
|
|
@@ -10651,7 +10657,7 @@ class yc {
|
|
|
10651
10657
|
e.debug.length && S.log(e.pts + "/" + e.dts + ":" + e.debug);
|
|
10652
10658
|
}
|
|
10653
10659
|
}
|
|
10654
|
-
class
|
|
10660
|
+
class Js {
|
|
10655
10661
|
constructor(e) {
|
|
10656
10662
|
this.data = void 0, this.bytesAvailable = void 0, this.word = void 0, this.bitsAvailable = void 0, this.data = e, this.bytesAvailable = e.byteLength, this.word = 0, this.bitsAvailable = 0;
|
|
10657
10663
|
}
|
|
@@ -10841,7 +10847,7 @@ class vc extends yc {
|
|
|
10841
10847
|
l = !0;
|
|
10842
10848
|
const y = u.data;
|
|
10843
10849
|
if (c && y.length > 4) {
|
|
10844
|
-
const v = new
|
|
10850
|
+
const v = new Js(y).readSliceType();
|
|
10845
10851
|
(v === 2 || v === 4 || v === 7 || v === 9) && (g = !0);
|
|
10846
10852
|
}
|
|
10847
10853
|
if (g) {
|
|
@@ -10855,13 +10861,13 @@ class vc extends yc {
|
|
|
10855
10861
|
l = !0, (h = o) != null && h.frame && !o.key && (this.pushAccessUnit(o, e), o = this.VideoSample = null), o || (o = this.VideoSample = this.createVideoSample(!0, i.pts, i.dts, "")), o.key = !0, o.frame = !0;
|
|
10856
10862
|
break;
|
|
10857
10863
|
case 6: {
|
|
10858
|
-
l = !0,
|
|
10864
|
+
l = !0, En(u.data, 1, i.pts, t.samples);
|
|
10859
10865
|
break;
|
|
10860
10866
|
}
|
|
10861
10867
|
case 7: {
|
|
10862
10868
|
var f, m;
|
|
10863
10869
|
l = !0, c = !0;
|
|
10864
|
-
const g = u.data, v = new
|
|
10870
|
+
const g = u.data, v = new Js(g).readSPS();
|
|
10865
10871
|
if (!e.sps || e.width !== v.width || e.height !== v.height || ((f = e.pixelRatio) == null ? void 0 : f[0]) !== v.pixelRatio[0] || ((m = e.pixelRatio) == null ? void 0 : m[1]) !== v.pixelRatio[1]) {
|
|
10866
10872
|
e.width = v.width, e.height = v.height, e.pixelRatio = v.pixelRatio, e.sps = [g], e.duration = n;
|
|
10867
10873
|
const T = g.subarray(1, 4);
|
|
@@ -10915,7 +10921,7 @@ class vc extends yc {
|
|
|
10915
10921
|
a.push(f);
|
|
10916
10922
|
} else {
|
|
10917
10923
|
const f = this.getLastNalUnit(e.samples);
|
|
10918
|
-
f && (n && o <= 4 - n && f.state && (f.data = f.data.subarray(0, f.data.byteLength - n)), c > 0 && (f.data =
|
|
10924
|
+
f && (n && o <= 4 - n && f.state && (f.data = f.data.subarray(0, f.data.byteLength - n)), c > 0 && (f.data = Ce(f.data, t.subarray(0, c)), f.state = 0));
|
|
10919
10925
|
}
|
|
10920
10926
|
o < i ? (u = t[o] & 31, h = o, d = u, r = 0) : r = -1;
|
|
10921
10927
|
} else
|
|
@@ -10931,7 +10937,7 @@ class vc extends yc {
|
|
|
10931
10937
|
}
|
|
10932
10938
|
if (a.length === 0) {
|
|
10933
10939
|
const f = this.getLastNalUnit(e.samples);
|
|
10934
|
-
f && (f.data =
|
|
10940
|
+
f && (f.data = Ce(f.data, t));
|
|
10935
10941
|
}
|
|
10936
10942
|
return e.naluState = r, a;
|
|
10937
10943
|
}
|
|
@@ -10982,7 +10988,7 @@ class xc {
|
|
|
10982
10988
|
return e;
|
|
10983
10989
|
}
|
|
10984
10990
|
decryptAvcSample(e, t, i, r, n) {
|
|
10985
|
-
const a =
|
|
10991
|
+
const a = Sn(n.data), o = this.getAvcEncryptedData(a);
|
|
10986
10992
|
this.decryptBuffer(o.buffer).then((l) => {
|
|
10987
10993
|
n.data = this.getAvcDecryptedUnit(a, l), this.decrypter.isSync() || this.decryptAvcSamples(e, t, i + 1, r);
|
|
10988
10994
|
});
|
|
@@ -11038,7 +11044,7 @@ class We {
|
|
|
11038
11044
|
return {
|
|
11039
11045
|
container: e === "video" || e === "audio" ? "video/mp2t" : void 0,
|
|
11040
11046
|
type: e,
|
|
11041
|
-
id:
|
|
11047
|
+
id: pn[e],
|
|
11042
11048
|
pid: -1,
|
|
11043
11049
|
inputTimeScale: 9e4,
|
|
11044
11050
|
sequenceNumber: 0,
|
|
@@ -11069,7 +11075,7 @@ class We {
|
|
|
11069
11075
|
let n;
|
|
11070
11076
|
const a = this._videoTrack, o = this._audioTrack, l = this._id3Track, c = this._txtTrack;
|
|
11071
11077
|
let u = a.pid, h = a.pesData, d = o.pid, f = l.pid, m = o.pesData, g = l.pesData, y = null, v = this.pmtParsed, T = this._pmtId, x = e.length;
|
|
11072
|
-
if (this.remainderData && (e =
|
|
11078
|
+
if (this.remainderData && (e = Ce(this.remainderData, e), x = e.length, this.remainderData = null), x < ue && !r)
|
|
11073
11079
|
return this.remainderData = e, {
|
|
11074
11080
|
audioTrack: o,
|
|
11075
11081
|
videoTrack: a,
|
|
@@ -11081,19 +11087,19 @@ class We {
|
|
|
11081
11087
|
let E = 0;
|
|
11082
11088
|
for (let _ = L; _ < x; _ += ue)
|
|
11083
11089
|
if (e[_] === 71) {
|
|
11084
|
-
const B = !!(e[_ + 1] & 64),
|
|
11085
|
-
let
|
|
11090
|
+
const B = !!(e[_ + 1] & 64), C = Ui(e, _), b = (e[_ + 3] & 48) >> 4;
|
|
11091
|
+
let R;
|
|
11086
11092
|
if (b > 1) {
|
|
11087
|
-
if (
|
|
11093
|
+
if (R = _ + 5 + e[_ + 4], R === _ + ue)
|
|
11088
11094
|
continue;
|
|
11089
11095
|
} else
|
|
11090
|
-
|
|
11091
|
-
switch (
|
|
11096
|
+
R = _ + 4;
|
|
11097
|
+
switch (C) {
|
|
11092
11098
|
case u:
|
|
11093
11099
|
B && (h && (n = it(h)) && this.videoParser.parseAVCPES(a, c, n, !1, this._duration), h = {
|
|
11094
11100
|
data: [],
|
|
11095
11101
|
size: 0
|
|
11096
|
-
}), h && (h.data.push(e.subarray(
|
|
11102
|
+
}), h && (h.data.push(e.subarray(R, _ + ue)), h.size += _ + ue - R);
|
|
11097
11103
|
break;
|
|
11098
11104
|
case d:
|
|
11099
11105
|
if (B) {
|
|
@@ -11114,20 +11120,20 @@ class We {
|
|
|
11114
11120
|
size: 0
|
|
11115
11121
|
};
|
|
11116
11122
|
}
|
|
11117
|
-
m && (m.data.push(e.subarray(
|
|
11123
|
+
m && (m.data.push(e.subarray(R, _ + ue)), m.size += _ + ue - R);
|
|
11118
11124
|
break;
|
|
11119
11125
|
case f:
|
|
11120
11126
|
B && (g && (n = it(g)) && this.parseID3PES(l, n), g = {
|
|
11121
11127
|
data: [],
|
|
11122
11128
|
size: 0
|
|
11123
|
-
}), g && (g.data.push(e.subarray(
|
|
11129
|
+
}), g && (g.data.push(e.subarray(R, _ + ue)), g.size += _ + ue - R);
|
|
11124
11130
|
break;
|
|
11125
11131
|
case 0:
|
|
11126
|
-
B && (
|
|
11132
|
+
B && (R += e[R] + 1), T = this._pmtId = Tc(e, R);
|
|
11127
11133
|
break;
|
|
11128
11134
|
case T: {
|
|
11129
|
-
B && (
|
|
11130
|
-
const P = Ec(e,
|
|
11135
|
+
B && (R += e[R] + 1);
|
|
11136
|
+
const P = Ec(e, R, this.typeSupported, i);
|
|
11131
11137
|
u = P.videoPid, u > 0 && (a.pid = u, a.segmentCodec = P.segmentVideoCodec), d = P.audioPid, d > 0 && (o.pid = d, o.segmentCodec = P.segmentAudioCodec), f = P.id3Pid, f > 0 && (l.pid = f), y !== null && !v && (S.warn(`MPEG-TS PMT found at ${_} after unknown PID '${y}'. Backtracking to sync byte @${L} to parse all TS packets.`), y = null, _ = L - 188), v = this.pmtParsed = !0;
|
|
11132
11138
|
break;
|
|
11133
11139
|
}
|
|
@@ -11135,7 +11141,7 @@ class We {
|
|
|
11135
11141
|
case 8191:
|
|
11136
11142
|
break;
|
|
11137
11143
|
default:
|
|
11138
|
-
y =
|
|
11144
|
+
y = C;
|
|
11139
11145
|
break;
|
|
11140
11146
|
}
|
|
11141
11147
|
} else
|
|
@@ -11227,7 +11233,7 @@ class We {
|
|
|
11227
11233
|
this.aacOverFlow = null;
|
|
11228
11234
|
const h = r.missing, d = r.sample.unit.byteLength;
|
|
11229
11235
|
if (h === -1)
|
|
11230
|
-
n =
|
|
11236
|
+
n = Ce(r.sample.unit, n);
|
|
11231
11237
|
else {
|
|
11232
11238
|
const f = d - h;
|
|
11233
11239
|
r.sample.unit.set(n.subarray(0, h), f), e.samples.push(r.sample), i = r.missing;
|
|
@@ -11251,12 +11257,12 @@ class We {
|
|
|
11251
11257
|
}), !d)
|
|
11252
11258
|
return;
|
|
11253
11259
|
}
|
|
11254
|
-
|
|
11260
|
+
Nn(e, this.observer, n, a, this.audioCodec);
|
|
11255
11261
|
let l;
|
|
11256
11262
|
if (t.pts !== void 0)
|
|
11257
11263
|
l = t.pts;
|
|
11258
11264
|
else if (r) {
|
|
11259
|
-
const h =
|
|
11265
|
+
const h = Bn(e.samplerate);
|
|
11260
11266
|
l = r.sample.pts + h;
|
|
11261
11267
|
} else {
|
|
11262
11268
|
S.warn("[tsdemuxer]: AAC PES unknown PTS");
|
|
@@ -11264,7 +11270,7 @@ class We {
|
|
|
11264
11270
|
}
|
|
11265
11271
|
let c = 0, u;
|
|
11266
11272
|
for (; a < o; )
|
|
11267
|
-
if (u =
|
|
11273
|
+
if (u = $n(e, n, a, l, c), a += u.length, u.missing) {
|
|
11268
11274
|
this.aacOverFlow = u;
|
|
11269
11275
|
break;
|
|
11270
11276
|
} else
|
|
@@ -11280,8 +11286,8 @@ class We {
|
|
|
11280
11286
|
return;
|
|
11281
11287
|
}
|
|
11282
11288
|
for (; a < r; )
|
|
11283
|
-
if (
|
|
11284
|
-
const l =
|
|
11289
|
+
if (Hn(i, a)) {
|
|
11290
|
+
const l = Un(e, i, a, o, n);
|
|
11285
11291
|
if (l)
|
|
11286
11292
|
a += l.length, n++;
|
|
11287
11293
|
else
|
|
@@ -11298,7 +11304,7 @@ class We {
|
|
|
11298
11304
|
}
|
|
11299
11305
|
const n = i.length;
|
|
11300
11306
|
let a = 0, o = 0, l;
|
|
11301
|
-
for (; o < n && (l =
|
|
11307
|
+
for (; o < n && (l = zn(e, i, o, r, a++)) > 0; )
|
|
11302
11308
|
o += l;
|
|
11303
11309
|
}
|
|
11304
11310
|
}
|
|
@@ -11397,7 +11403,7 @@ function it(s) {
|
|
|
11397
11403
|
if (!s || s.size === 0)
|
|
11398
11404
|
return null;
|
|
11399
11405
|
for (; o[0].length < 19 && o.length > 1; )
|
|
11400
|
-
o[0] =
|
|
11406
|
+
o[0] = Ce(o[0], o[1]), o.splice(1, 1);
|
|
11401
11407
|
if (t = o[0], (t[0] << 16) + (t[1] << 8) + t[2] === 1) {
|
|
11402
11408
|
if (i = (t[4] << 8) + t[5], i && i > s.size - 6)
|
|
11403
11409
|
return null;
|
|
@@ -11458,10 +11464,10 @@ class Sc extends cs {
|
|
|
11458
11464
|
const t = xt(e, 0);
|
|
11459
11465
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
11460
11466
|
if (t && e[i] === 11 && e[i + 1] === 119 && ss(t) !== void 0 && // check the bsid to confirm ac-3 or ec-3 (not mp3)
|
|
11461
|
-
|
|
11467
|
+
Kn(e, i) <= 16)
|
|
11462
11468
|
return !1;
|
|
11463
11469
|
for (let r = e.length; i < r; i++)
|
|
11464
|
-
if (
|
|
11470
|
+
if (Vn(e, i))
|
|
11465
11471
|
return S.log("MPEG Audio sync word found !"), !0;
|
|
11466
11472
|
return !1;
|
|
11467
11473
|
}
|
|
@@ -11470,10 +11476,10 @@ class Sc extends cs {
|
|
|
11470
11476
|
}
|
|
11471
11477
|
appendFrame(e, t, i) {
|
|
11472
11478
|
if (this.basePTS !== null)
|
|
11473
|
-
return
|
|
11479
|
+
return Un(e, t, i, this.basePTS, this.frameIndex);
|
|
11474
11480
|
}
|
|
11475
11481
|
}
|
|
11476
|
-
class
|
|
11482
|
+
class er {
|
|
11477
11483
|
static getSilentFrame(e, t) {
|
|
11478
11484
|
switch (e) {
|
|
11479
11485
|
case "mp4a.40.2":
|
|
@@ -12489,7 +12495,7 @@ class A {
|
|
|
12489
12495
|
static initSegment(e) {
|
|
12490
12496
|
A.types || A.init();
|
|
12491
12497
|
const t = A.moov(e);
|
|
12492
|
-
return
|
|
12498
|
+
return Ce(A.FTYP, t);
|
|
12493
12499
|
}
|
|
12494
12500
|
}
|
|
12495
12501
|
A.types = void 0;
|
|
@@ -12503,7 +12509,7 @@ A.SMHD = void 0;
|
|
|
12503
12509
|
A.STSD = void 0;
|
|
12504
12510
|
A.FTYP = void 0;
|
|
12505
12511
|
A.DINF = void 0;
|
|
12506
|
-
const
|
|
12512
|
+
const Wn = 9e4;
|
|
12507
12513
|
function ds(s, e, t = 1, i = !1) {
|
|
12508
12514
|
const r = s * e * t;
|
|
12509
12515
|
return i ? Math.round(r) : r;
|
|
@@ -12512,12 +12518,12 @@ function bc(s, e, t = 1, i = !1) {
|
|
|
12512
12518
|
return ds(s, e, 1 / t, i);
|
|
12513
12519
|
}
|
|
12514
12520
|
function mt(s, e = !1) {
|
|
12515
|
-
return ds(s, 1e3, 1 /
|
|
12521
|
+
return ds(s, 1e3, 1 / Wn, e);
|
|
12516
12522
|
}
|
|
12517
12523
|
function Ac(s, e = 1) {
|
|
12518
|
-
return ds(s,
|
|
12524
|
+
return ds(s, Wn, 1 / e);
|
|
12519
12525
|
}
|
|
12520
|
-
const Lc = 10 * 1e3,
|
|
12526
|
+
const Lc = 10 * 1e3, tr = 1024, _c = 1152, Cc = 1536;
|
|
12521
12527
|
let st = null, yi = null;
|
|
12522
12528
|
class Mt {
|
|
12523
12529
|
constructor(e, t, i, r = "") {
|
|
@@ -12555,14 +12561,14 @@ class Mt {
|
|
|
12555
12561
|
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
12562
|
if ((!v || L) && (!T || E) || this.ISGenerated || o) {
|
|
12557
12563
|
if (this.ISGenerated) {
|
|
12558
|
-
var _, B,
|
|
12564
|
+
var _, B, C, b;
|
|
12559
12565
|
const $ = this.videoTrackConfig;
|
|
12560
|
-
$ && (t.width !== $.width || t.height !== $.height || ((_ = t.pixelRatio) == null ? void 0 : _[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((
|
|
12566
|
+
$ && (t.width !== $.width || t.height !== $.height || ((_ = t.pixelRatio) == null ? void 0 : _[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((C = t.pixelRatio) == null ? void 0 : C[1]) !== ((b = $.pixelRatio) == null ? void 0 : b[1])) && this.resetInitSegment();
|
|
12561
12567
|
} else
|
|
12562
12568
|
h = this.generateIS(e, t, n, a);
|
|
12563
|
-
const
|
|
12569
|
+
const R = this.isVideoContiguous;
|
|
12564
12570
|
let P = -1, w;
|
|
12565
|
-
if (E && (P =
|
|
12571
|
+
if (E && (P = Rc(t.samples), !R && this.config.forceKeyFrameOnDiscontinuity))
|
|
12566
12572
|
if (m = !0, P > 0) {
|
|
12567
12573
|
S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
|
|
12568
12574
|
const $ = this.getVideoStartPts(t.samples);
|
|
@@ -12577,14 +12583,14 @@ class Mt {
|
|
|
12577
12583
|
if (L) {
|
|
12578
12584
|
if (e.samplerate || (S.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"), h = this.generateIS(e, t, n, a)), u = this.remuxAudio(e, g, this.isAudioContiguous, a, T || E || l === j.AUDIO ? y : void 0), E) {
|
|
12579
12585
|
const $ = u ? u.endPTS - u.startPTS : 0;
|
|
12580
|
-
t.inputTimeScale || (S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), h = this.generateIS(e, t, n, a)), c = this.remuxVideo(t, y,
|
|
12586
|
+
t.inputTimeScale || (S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), h = this.generateIS(e, t, n, a)), c = this.remuxVideo(t, y, R, $);
|
|
12581
12587
|
}
|
|
12582
12588
|
} else
|
|
12583
|
-
E && (c = this.remuxVideo(t, y,
|
|
12589
|
+
E && (c = this.remuxVideo(t, y, R, 0));
|
|
12584
12590
|
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
|
|
12585
12591
|
}
|
|
12586
12592
|
}
|
|
12587
|
-
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f =
|
|
12593
|
+
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f = Yn(i, n, this._initPTS, this._initDTS)), r.samples.length && (d = jn(r, n, this._initPTS))), {
|
|
12588
12594
|
audio: u,
|
|
12589
12595
|
video: c,
|
|
12590
12596
|
initSegment: h,
|
|
@@ -12691,9 +12697,9 @@ class Mt {
|
|
|
12691
12697
|
}
|
|
12692
12698
|
m = a[l - 1].dts;
|
|
12693
12699
|
const B = k + 4 * E + 8;
|
|
12694
|
-
let
|
|
12700
|
+
let C;
|
|
12695
12701
|
try {
|
|
12696
|
-
|
|
12702
|
+
C = new Uint8Array(B);
|
|
12697
12703
|
} catch (H) {
|
|
12698
12704
|
this.observer.emit(p.ERROR, p.ERROR, {
|
|
12699
12705
|
type: q.MUX_ERROR,
|
|
@@ -12705,29 +12711,29 @@ class Mt {
|
|
|
12705
12711
|
});
|
|
12706
12712
|
return;
|
|
12707
12713
|
}
|
|
12708
|
-
const b = new DataView(
|
|
12709
|
-
b.setUint32(0, B),
|
|
12710
|
-
let
|
|
12714
|
+
const b = new DataView(C.buffer);
|
|
12715
|
+
b.setUint32(0, B), C.set(A.types.mdat, 4);
|
|
12716
|
+
let R = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
|
|
12711
12717
|
for (let H = 0; H < l; H++) {
|
|
12712
12718
|
const M = a[H], Q = M.units;
|
|
12713
12719
|
let Z = 0;
|
|
12714
|
-
for (let ce = 0,
|
|
12720
|
+
for (let ce = 0, me = Q.length; ce < me; ce++) {
|
|
12715
12721
|
const Ae = Q[ce], ft = Ae.data, si = Ae.data.byteLength;
|
|
12716
|
-
b.setUint32(h, si), h += 4,
|
|
12722
|
+
b.setUint32(h, si), h += 4, C.set(ft, h), h += si, Z += 4 + si;
|
|
12717
12723
|
}
|
|
12718
12724
|
let ee;
|
|
12719
12725
|
if (H < l - 1)
|
|
12720
12726
|
d = a[H + 1].dts - M.dts, ee = a[H + 1].pts - M.pts;
|
|
12721
12727
|
else {
|
|
12722
|
-
const ce = this.config,
|
|
12728
|
+
const ce = this.config, me = H > 0 ? M.dts - a[H - 1].dts : L;
|
|
12723
12729
|
if (ee = H > 0 ? M.pts - a[H - 1].pts : L, ce.stretchShortVideoTrack && this.nextAudioPts !== null) {
|
|
12724
12730
|
const Ae = Math.floor(ce.maxBufferHole * n), ft = (r ? g + r * n : this.nextAudioPts) - M.pts;
|
|
12725
|
-
ft > Ae ? (d = ft -
|
|
12731
|
+
ft > Ae ? (d = ft - me, d < 0 ? d = me : R = !0, S.log(`[mp4-remuxer]: It is approximately ${ft / 90} ms to the next segment; using duration ${d / 90} ms for the last video frame.`)) : d = me;
|
|
12726
12732
|
} else
|
|
12727
|
-
d =
|
|
12733
|
+
d = me;
|
|
12728
12734
|
}
|
|
12729
12735
|
const ae = Math.round(M.pts - M.dts);
|
|
12730
|
-
P = Math.min(P, d), $ = Math.max($, d), w = Math.min(w, ee), O = Math.max(O, ee), o.push(new
|
|
12736
|
+
P = Math.min(P, d), $ = Math.max($, d), w = Math.min(w, ee), O = Math.max(O, ee), o.push(new ir(M.key, d, Z, ae));
|
|
12731
12737
|
}
|
|
12732
12738
|
if (o.length) {
|
|
12733
12739
|
if (st) {
|
|
@@ -12749,12 +12755,12 @@ class Mt {
|
|
|
12749
12755
|
}
|
|
12750
12756
|
}
|
|
12751
12757
|
}
|
|
12752
|
-
d =
|
|
12758
|
+
d = R || !d ? L : d, this.nextAvcDts = u = m + d, this.videoSampleDuration = d, this.isVideoContiguous = !0;
|
|
12753
12759
|
const U = A.moof(e.sequenceNumber++, f, oe({}, e, {
|
|
12754
12760
|
samples: o
|
|
12755
12761
|
})), F = "video", V = {
|
|
12756
12762
|
data1: U,
|
|
12757
|
-
data2:
|
|
12763
|
+
data2: C,
|
|
12758
12764
|
startPTS: g / n,
|
|
12759
12765
|
endPTS: (y + d) / n,
|
|
12760
12766
|
startDTS: f / n,
|
|
@@ -12772,9 +12778,9 @@ class Mt {
|
|
|
12772
12778
|
case "mp3":
|
|
12773
12779
|
return _c;
|
|
12774
12780
|
case "ac3":
|
|
12775
|
-
return
|
|
12781
|
+
return Cc;
|
|
12776
12782
|
default:
|
|
12777
|
-
return
|
|
12783
|
+
return tr;
|
|
12778
12784
|
}
|
|
12779
12785
|
}
|
|
12780
12786
|
remuxAudio(e, t, i, r, n) {
|
|
@@ -12799,9 +12805,9 @@ class Mt {
|
|
|
12799
12805
|
V = M - ee * u, V < 0 && (ee--, V += u), F === 0 && (this.nextAudioPts = v = V), S.warn(`[mp4-remuxer]: Injecting ${ee} audio frame @ ${(V / a).toFixed(3)}s due to ${Math.round(1e3 * Q / a)} ms gap.`);
|
|
12800
12806
|
for (let ae = 0; ae < ee; ae++) {
|
|
12801
12807
|
const ce = Math.max(V, 0);
|
|
12802
|
-
let
|
|
12803
|
-
|
|
12804
|
-
unit:
|
|
12808
|
+
let me = er.getSilentFrame(e.manifestCodec || e.codec, e.channelCount);
|
|
12809
|
+
me || (S.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."), me = H.unit.subarray()), g.splice(F, 0, {
|
|
12810
|
+
unit: me,
|
|
12805
12811
|
pts: ce
|
|
12806
12812
|
}), V += u, F++;
|
|
12807
12813
|
}
|
|
@@ -12838,19 +12844,19 @@ class Mt {
|
|
|
12838
12844
|
return;
|
|
12839
12845
|
k.set(H, y);
|
|
12840
12846
|
const Q = H.byteLength;
|
|
12841
|
-
y += Q, f.push(new
|
|
12847
|
+
y += Q, f.push(new ir(!0, c, Q, 0)), E = M;
|
|
12842
12848
|
}
|
|
12843
|
-
const
|
|
12844
|
-
if (!
|
|
12849
|
+
const C = f.length;
|
|
12850
|
+
if (!C)
|
|
12845
12851
|
return;
|
|
12846
12852
|
const b = f[f.length - 1];
|
|
12847
12853
|
this.nextAudioPts = v = E + l * b.duration;
|
|
12848
|
-
const
|
|
12854
|
+
const R = d ? new Uint8Array(0) : A.moof(e.sequenceNumber++, L / l, oe({}, e, {
|
|
12849
12855
|
samples: f
|
|
12850
12856
|
}));
|
|
12851
12857
|
e.samples = [];
|
|
12852
12858
|
const P = L / a, w = v / a, O = {
|
|
12853
|
-
data1:
|
|
12859
|
+
data1: R,
|
|
12854
12860
|
data2: k,
|
|
12855
12861
|
startPTS: P,
|
|
12856
12862
|
endPTS: w,
|
|
@@ -12859,12 +12865,12 @@ class Mt {
|
|
|
12859
12865
|
type: "audio",
|
|
12860
12866
|
hasAudio: !0,
|
|
12861
12867
|
hasVideo: !1,
|
|
12862
|
-
nb:
|
|
12868
|
+
nb: C
|
|
12863
12869
|
};
|
|
12864
12870
|
return this.isAudioContiguous = !0, O;
|
|
12865
12871
|
}
|
|
12866
12872
|
remuxEmptyAudio(e, t, i, r) {
|
|
12867
|
-
const n = e.inputTimeScale, a = e.samplerate ? e.samplerate : n, o = n / a, l = this.nextAudioPts, c = this._initDTS, u = c.baseTime * 9e4 / c.timescale, h = (l !== null ? l : r.startDTS * n) + u, d = r.endDTS * n + u, f = o *
|
|
12873
|
+
const n = e.inputTimeScale, a = e.samplerate ? e.samplerate : n, o = n / a, l = this.nextAudioPts, c = this._initDTS, u = c.baseTime * 9e4 / c.timescale, h = (l !== null ? l : r.startDTS * n) + u, d = r.endDTS * n + u, f = o * tr, m = Math.ceil((d - h) / f), g = er.getSilentFrame(e.manifestCodec || e.codec, e.channelCount);
|
|
12868
12874
|
if (S.warn("[mp4-remuxer]: remux empty Audio"), !g) {
|
|
12869
12875
|
S.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");
|
|
12870
12876
|
return;
|
|
@@ -12889,13 +12895,13 @@ function _e(s, e) {
|
|
|
12889
12895
|
s += t;
|
|
12890
12896
|
return s;
|
|
12891
12897
|
}
|
|
12892
|
-
function
|
|
12898
|
+
function Rc(s) {
|
|
12893
12899
|
for (let e = 0; e < s.length; e++)
|
|
12894
12900
|
if (s[e].key)
|
|
12895
12901
|
return e;
|
|
12896
12902
|
return -1;
|
|
12897
12903
|
}
|
|
12898
|
-
function
|
|
12904
|
+
function Yn(s, e, t, i) {
|
|
12899
12905
|
const r = s.samples.length;
|
|
12900
12906
|
if (!r)
|
|
12901
12907
|
return;
|
|
@@ -12909,7 +12915,7 @@ function zn(s, e, t, i) {
|
|
|
12909
12915
|
samples: a
|
|
12910
12916
|
};
|
|
12911
12917
|
}
|
|
12912
|
-
function
|
|
12918
|
+
function jn(s, e, t) {
|
|
12913
12919
|
const i = s.samples.length;
|
|
12914
12920
|
if (!i)
|
|
12915
12921
|
return;
|
|
@@ -12924,7 +12930,7 @@ function Wn(s, e, t) {
|
|
|
12924
12930
|
samples: n
|
|
12925
12931
|
};
|
|
12926
12932
|
}
|
|
12927
|
-
class
|
|
12933
|
+
class ir {
|
|
12928
12934
|
constructor(e, t, i, r) {
|
|
12929
12935
|
this.size = void 0, this.duration = void 0, this.cts = void 0, this.flags = void 0, this.duration = t, this.size = i, this.cts = r, this.flags = {
|
|
12930
12936
|
isLeading: 0,
|
|
@@ -12960,8 +12966,8 @@ class Dc {
|
|
|
12960
12966
|
this.initTracks = void 0, this.initData = void 0;
|
|
12961
12967
|
return;
|
|
12962
12968
|
}
|
|
12963
|
-
const r = this.initData =
|
|
12964
|
-
r.audio && (t =
|
|
12969
|
+
const r = this.initData = xn(e);
|
|
12970
|
+
r.audio && (t = sr(r.audio, te.AUDIO)), r.video && (i = sr(r.video, te.VIDEO));
|
|
12965
12971
|
const n = {};
|
|
12966
12972
|
r.audio && r.video ? n.audiovideo = {
|
|
12967
12973
|
container: "video/mp4",
|
|
@@ -13027,7 +13033,7 @@ class Dc {
|
|
|
13027
13033
|
nb: 1,
|
|
13028
13034
|
dropped: 0
|
|
13029
13035
|
};
|
|
13030
|
-
return h.audio = _.type === "audio" ? _ : void 0, h.video = _.type !== "audio" ? _ : void 0, h.initSegment = f, h.id3 =
|
|
13036
|
+
return h.audio = _.type === "audio" ? _ : void 0, h.video = _.type !== "audio" ? _ : void 0, h.initSegment = f, h.id3 = Yn(i, n, c, c), r.samples.length && (h.text = jn(r, n, c)), h;
|
|
13031
13037
|
}
|
|
13032
13038
|
}
|
|
13033
13039
|
function Ic(s, e, t, i) {
|
|
@@ -13036,7 +13042,7 @@ function Ic(s, e, t, i) {
|
|
|
13036
13042
|
const r = Math.max(i, 1), n = e - s.baseTime / s.timescale;
|
|
13037
13043
|
return Math.abs(n - t) > r;
|
|
13038
13044
|
}
|
|
13039
|
-
function
|
|
13045
|
+
function sr(s, e) {
|
|
13040
13046
|
const t = s == null ? void 0 : s.codec;
|
|
13041
13047
|
if (t && t.length > 4)
|
|
13042
13048
|
return t;
|
|
@@ -13073,7 +13079,7 @@ Nt.splice(2, 0, {
|
|
|
13073
13079
|
demux: pc,
|
|
13074
13080
|
remux: Mt
|
|
13075
13081
|
});
|
|
13076
|
-
class
|
|
13082
|
+
class rr {
|
|
13077
13083
|
constructor(e, t, i, r, n) {
|
|
13078
13084
|
this.async = !1, this.observer = void 0, this.typeSupported = void 0, this.config = void 0, this.vendor = void 0, this.id = void 0, this.demuxer = void 0, this.remuxer = void 0, this.decrypter = void 0, this.probe = void 0, this.decryptionPromise = null, this.transmuxConfig = void 0, this.currentTransmuxState = void 0, this.observer = e, this.typeSupported = t, this.config = i, this.vendor = r, this.id = n;
|
|
13079
13085
|
}
|
|
@@ -13106,13 +13112,13 @@ class ir {
|
|
|
13106
13112
|
if (L && L.method === "AES-128") {
|
|
13107
13113
|
const B = this.getDecrypter();
|
|
13108
13114
|
if (B.isSync()) {
|
|
13109
|
-
let
|
|
13110
|
-
if (i.part > -1 && (
|
|
13115
|
+
let C = B.softwareDecrypt(a, L.key.buffer, L.iv.buffer);
|
|
13116
|
+
if (i.part > -1 && (C = B.flush()), !C)
|
|
13111
13117
|
return n.executeEnd = Ke(), vi(i);
|
|
13112
|
-
a = new Uint8Array(
|
|
13118
|
+
a = new Uint8Array(C);
|
|
13113
13119
|
} else
|
|
13114
|
-
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((
|
|
13115
|
-
const b = this.push(
|
|
13120
|
+
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((C) => {
|
|
13121
|
+
const b = this.push(C, null, i);
|
|
13116
13122
|
return this.decryptionPromise = null, b;
|
|
13117
13123
|
}), this.decryptionPromise;
|
|
13118
13124
|
}
|
|
@@ -13271,7 +13277,7 @@ class Pc {
|
|
|
13271
13277
|
this.discontinuity = void 0, this.contiguous = void 0, this.accurateTimeOffset = void 0, this.trackSwitch = void 0, this.timeOffset = void 0, this.initSegmentChange = void 0, this.discontinuity = e, this.contiguous = t, this.accurateTimeOffset = i, this.trackSwitch = r, this.timeOffset = n, this.initSegmentChange = a;
|
|
13272
13278
|
}
|
|
13273
13279
|
}
|
|
13274
|
-
var
|
|
13280
|
+
var qn = { exports: {} };
|
|
13275
13281
|
(function(s) {
|
|
13276
13282
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
13277
13283
|
function i() {
|
|
@@ -13381,9 +13387,9 @@ var Yn = { exports: {} };
|
|
|
13381
13387
|
var u;
|
|
13382
13388
|
return c ? (u = t ? t + c : c, this._events[u] && a(this, u)) : (this._events = new i(), this._eventsCount = 0), this;
|
|
13383
13389
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = t, o.EventEmitter = o, s.exports = o;
|
|
13384
|
-
})(
|
|
13385
|
-
var Oc =
|
|
13386
|
-
class
|
|
13390
|
+
})(qn);
|
|
13391
|
+
var Oc = qn.exports, fs = /* @__PURE__ */ so(Oc);
|
|
13392
|
+
class Xn {
|
|
13387
13393
|
constructor(e, t, i, r) {
|
|
13388
13394
|
this.error = null, this.hls = void 0, this.id = void 0, this.observer = void 0, this.frag = null, this.part = null, this.useWorker = void 0, this.workerContext = null, this.onwmsg = void 0, this.transmuxer = null, this.onTransmuxComplete = void 0, this.onFlush = void 0;
|
|
13389
13395
|
const n = e.config;
|
|
@@ -13422,11 +13428,11 @@ class jn {
|
|
|
13422
13428
|
config: JSON.stringify(n)
|
|
13423
13429
|
});
|
|
13424
13430
|
} catch (h) {
|
|
13425
|
-
S.warn(`Error setting up "${t}" Web Worker, fallback to inline`, h), this.resetWorker(), this.error = null, this.transmuxer = new
|
|
13431
|
+
S.warn(`Error setting up "${t}" Web Worker, fallback to inline`, h), this.resetWorker(), this.error = null, this.transmuxer = new rr(this.observer, l, n, c, t);
|
|
13426
13432
|
}
|
|
13427
13433
|
return;
|
|
13428
13434
|
}
|
|
13429
|
-
this.transmuxer = new
|
|
13435
|
+
this.transmuxer = new rr(this.observer, l, n, c, t);
|
|
13430
13436
|
}
|
|
13431
13437
|
resetWorker() {
|
|
13432
13438
|
if (this.workerContext) {
|
|
@@ -13454,7 +13460,7 @@ class jn {
|
|
|
13454
13460
|
transmuxer: f
|
|
13455
13461
|
} = 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)), _ = self.performance.now();
|
|
13456
13462
|
(T || x || n.stats.parsing.start === 0) && (n.stats.parsing.start = _), a && (L || !k) && (a.stats.parsing.start = _);
|
|
13457
|
-
const B = !(y && ((h = n.initSegment) == null ? void 0 : h.url) === ((d = y.initSegment) == null ? void 0 : d.url)),
|
|
13463
|
+
const B = !(y && ((h = n.initSegment) == null ? void 0 : h.url) === ((d = y.initSegment) == null ? void 0 : d.url)), C = new Pc(v, k, l, T, m, B);
|
|
13458
13464
|
if (!k || v || B) {
|
|
13459
13465
|
S.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id}
|
|
13460
13466
|
discontinuity: ${v}
|
|
@@ -13472,14 +13478,14 @@ class jn {
|
|
|
13472
13478
|
data: e,
|
|
13473
13479
|
decryptdata: g,
|
|
13474
13480
|
chunkMeta: c,
|
|
13475
|
-
state:
|
|
13481
|
+
state: C
|
|
13476
13482
|
}, e instanceof ArrayBuffer ? [e] : []);
|
|
13477
13483
|
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(
|
|
13484
|
+
const b = f.push(e, g, c, C);
|
|
13485
|
+
Bt(b) ? (f.async = !0, b.then((R) => {
|
|
13486
|
+
this.handleTransmuxComplete(R);
|
|
13487
|
+
}).catch((R) => {
|
|
13488
|
+
this.transmuxerError(R, c, "transmuxer-interface push error");
|
|
13483
13489
|
})) : (f.async = !1, this.handleTransmuxComplete(b));
|
|
13484
13490
|
}
|
|
13485
13491
|
}
|
|
@@ -13557,7 +13563,7 @@ class jn {
|
|
|
13557
13563
|
e.chunkMeta.transmuxing.end = self.performance.now(), this.onTransmuxComplete(e);
|
|
13558
13564
|
}
|
|
13559
13565
|
}
|
|
13560
|
-
function
|
|
13566
|
+
function Zn(s, e) {
|
|
13561
13567
|
if (s.length !== e.length)
|
|
13562
13568
|
return !1;
|
|
13563
13569
|
for (let t = 0; t < s.length; t++)
|
|
@@ -13572,7 +13578,7 @@ function ut(s, e, t) {
|
|
|
13572
13578
|
function Gi(s, e) {
|
|
13573
13579
|
return e.label.toLowerCase() === s.name.toLowerCase() && (!e.language || e.language.toLowerCase() === (s.lang || "").toLowerCase());
|
|
13574
13580
|
}
|
|
13575
|
-
const
|
|
13581
|
+
const nr = 100;
|
|
13576
13582
|
class Fc extends ls {
|
|
13577
13583
|
constructor(e, t, i) {
|
|
13578
13584
|
super(e, t, i, "[audio-stream-controller]", j.AUDIO), this.videoBuffer = null, this.videoTrackCC = -1, this.waitingVideoCC = -1, this.bufferedTrack = null, this.switchingTrack = null, this.trackId = -1, this.waitingData = null, this.mainDetails = null, this.flushing = !1, this.bufferFlushed = !1, this.cachedTrackLoadedData = null, this._registerListeners();
|
|
@@ -13613,7 +13619,7 @@ class Fc extends ls {
|
|
|
13613
13619
|
return;
|
|
13614
13620
|
}
|
|
13615
13621
|
const t = this.lastCurrentTime;
|
|
13616
|
-
this.stopLoad(), this.setInterval(
|
|
13622
|
+
this.stopLoad(), this.setInterval(nr), t > 0 && e === -1 ? (this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`), e = t, this.state = N.IDLE) : (this.loadedmetadata = !1, this.state = N.WAITING_TRACK), this.nextLoadPosition = this.startPosition = this.lastCurrentTime = e, this.tick();
|
|
13617
13623
|
}
|
|
13618
13624
|
doTick() {
|
|
13619
13625
|
switch (this.state) {
|
|
@@ -13757,7 +13763,7 @@ class Fc extends ls {
|
|
|
13757
13763
|
const {
|
|
13758
13764
|
fragCurrent: r
|
|
13759
13765
|
} = this;
|
|
13760
|
-
r && (r.abortRequests(), this.removeUnbufferedFrags(r.start)), this.resetLoadingState(), i ? this.setInterval(
|
|
13766
|
+
r && (r.abortRequests(), this.removeUnbufferedFrags(r.start)), this.resetLoadingState(), i ? this.setInterval(nr) : this.resetTransmuxer(), i ? (this.switchingTrack = t, this.state = N.IDLE, this.flushAudioIfNeeded(t)) : (this.switchingTrack = null, this.bufferedTrack = t, this.state = N.STOPPED), this.tick();
|
|
13761
13767
|
}
|
|
13762
13768
|
onManifestLoading() {
|
|
13763
13769
|
this.fragmentTracker.removeAllFragments(), this.startPosition = this.lastCurrentTime = 0, this.bufferFlushed = this.flushing = !1, this.levels = this.mainDetails = this.waitingData = this.bufferedTrack = this.cachedTrackLoadedData = this.switchingTrack = null, this.startFragRequested = !1, this.trackId = this.videoTrackCC = this.waitingVideoCC = -1;
|
|
@@ -13825,7 +13831,7 @@ class Fc extends ls {
|
|
|
13825
13831
|
}
|
|
13826
13832
|
const h = a.defaultAudioCodec || c.audioCodec || "mp4a.40.2";
|
|
13827
13833
|
let d = this.transmuxer;
|
|
13828
|
-
d || (d = this.transmuxer = new
|
|
13834
|
+
d || (d = this.transmuxer = new Xn(this.hls, j.AUDIO, this._handleTransmuxComplete.bind(this), this._handleTransmuxerFlush.bind(this)));
|
|
13829
13835
|
const f = this.initPTS[i.cc], m = (t = i.initSegment) == null ? void 0 : t.data;
|
|
13830
13836
|
if (f !== void 0) {
|
|
13831
13837
|
const y = r ? r.index : -1, v = y !== -1, T = new as(i.level, i.sn, i.stats.chunkCount, n.byteLength, y, v);
|
|
@@ -13837,7 +13843,7 @@ class Fc extends ls {
|
|
|
13837
13843
|
} = this.waitingData = this.waitingData || {
|
|
13838
13844
|
frag: i,
|
|
13839
13845
|
part: r,
|
|
13840
|
-
cache: new
|
|
13846
|
+
cache: new On(),
|
|
13841
13847
|
complete: !1
|
|
13842
13848
|
};
|
|
13843
13849
|
g.push(new Uint8Array(n)), this.waitingVideoCC = this.videoTrackCC, this.state = N.WAITING_INIT_PTS;
|
|
@@ -14261,7 +14267,7 @@ class Mc extends ns {
|
|
|
14261
14267
|
}
|
|
14262
14268
|
}
|
|
14263
14269
|
}
|
|
14264
|
-
const
|
|
14270
|
+
const ar = 500;
|
|
14265
14271
|
class Nc extends ls {
|
|
14266
14272
|
constructor(e, t, i) {
|
|
14267
14273
|
super(e, t, i, "[subtitle-stream-controller]", j.SUBTITLE), this.currentTrackId = -1, this.tracksBuffered = [], this.mainDetails = null, this._registerListeners();
|
|
@@ -14282,7 +14288,7 @@ class Nc extends ls {
|
|
|
14282
14288
|
e.off(p.MEDIA_ATTACHED, this.onMediaAttached, this), e.off(p.MEDIA_DETACHING, this.onMediaDetaching, this), e.off(p.MANIFEST_LOADING, this.onManifestLoading, this), e.off(p.LEVEL_LOADED, this.onLevelLoaded, this), e.off(p.ERROR, this.onError, this), e.off(p.SUBTITLE_TRACKS_UPDATED, this.onSubtitleTracksUpdated, this), e.off(p.SUBTITLE_TRACK_SWITCH, this.onSubtitleTrackSwitch, this), e.off(p.SUBTITLE_TRACK_LOADED, this.onSubtitleTrackLoaded, this), e.off(p.SUBTITLE_FRAG_PROCESSED, this.onSubtitleFragProcessed, this), e.off(p.BUFFER_FLUSHING, this.onBufferFlushing, this), e.off(p.FRAG_BUFFERED, this.onFragBuffered, this);
|
|
14283
14289
|
}
|
|
14284
14290
|
startLoad(e) {
|
|
14285
|
-
this.stopLoad(), this.state = N.IDLE, this.setInterval(
|
|
14291
|
+
this.stopLoad(), this.state = N.IDLE, this.setInterval(ar), this.nextLoadPosition = this.startPosition = this.lastCurrentTime = e, this.tick();
|
|
14286
14292
|
}
|
|
14287
14293
|
onManifestLoading() {
|
|
14288
14294
|
this.mainDetails = null, this.fragmentTracker.removeAllFragments();
|
|
@@ -14354,7 +14360,7 @@ class Nc extends ls {
|
|
|
14354
14360
|
onSubtitleTracksUpdated(e, {
|
|
14355
14361
|
subtitleTracks: t
|
|
14356
14362
|
}) {
|
|
14357
|
-
if (this.levels &&
|
|
14363
|
+
if (this.levels && Zn(this.levels, t)) {
|
|
14358
14364
|
this.levels = t.map((i) => new ct(i));
|
|
14359
14365
|
return;
|
|
14360
14366
|
}
|
|
@@ -14370,7 +14376,7 @@ class Nc extends ls {
|
|
|
14370
14376
|
return;
|
|
14371
14377
|
}
|
|
14372
14378
|
const r = this.levels[this.currentTrackId];
|
|
14373
|
-
r != null && r.details ? this.mediaBuffer = this.mediaBufferTimeRanges : this.mediaBuffer = null, r && this.setInterval(
|
|
14379
|
+
r != null && r.details ? this.mediaBuffer = this.mediaBufferTimeRanges : this.mediaBuffer = null, r && this.setInterval(ar);
|
|
14374
14380
|
}
|
|
14375
14381
|
// Got a new set of subtitle fragments.
|
|
14376
14382
|
onSubtitleTrackLoaded(e, t) {
|
|
@@ -14827,7 +14833,7 @@ class Uc {
|
|
|
14827
14833
|
return this.queues[e][0];
|
|
14828
14834
|
}
|
|
14829
14835
|
}
|
|
14830
|
-
const
|
|
14836
|
+
const or = /(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;
|
|
14831
14837
|
class Gc {
|
|
14832
14838
|
constructor(e) {
|
|
14833
14839
|
this.details = null, this._objectUrl = null, this.operationQueue = void 0, this.listeners = void 0, this.hls = void 0, this.bufferCodecEventsExpected = 0, this._bufferCodecEventsTotal = 0, this.media = null, this.mediaSource = null, this.lastMpegAudioChunk = null, this.appendSource = void 0, this.appendErrors = {
|
|
@@ -14908,7 +14914,7 @@ class Gc {
|
|
|
14908
14914
|
try {
|
|
14909
14915
|
i.removeAttribute("src");
|
|
14910
14916
|
const l = self.ManagedMediaSource;
|
|
14911
|
-
i.disableRemotePlayback = i.disableRemotePlayback || l && a instanceof l,
|
|
14917
|
+
i.disableRemotePlayback = i.disableRemotePlayback || l && a instanceof l, lr(i), Hc(i, o), i.load();
|
|
14912
14918
|
} catch {
|
|
14913
14919
|
i.src = o;
|
|
14914
14920
|
}
|
|
@@ -14930,7 +14936,7 @@ class Gc {
|
|
|
14930
14936
|
} catch (r) {
|
|
14931
14937
|
this.warn(`onMediaDetaching: ${r.message} while calling endOfStream`);
|
|
14932
14938
|
}
|
|
14933
|
-
this.onBufferReset(), t.removeEventListener("sourceopen", this._onMediaSourceOpen), t.removeEventListener("sourceended", this._onMediaSourceEnded), t.removeEventListener("sourceclose", this._onMediaSourceClose), t.removeEventListener("startstreaming", this._onStartStreaming), t.removeEventListener("endstreaming", this._onEndStreaming), e && (e.removeEventListener("emptied", this._onMediaEmptied), i && self.URL.revokeObjectURL(i), this.mediaSrc === i ? (e.removeAttribute("src"), this.appendSource &&
|
|
14939
|
+
this.onBufferReset(), t.removeEventListener("sourceopen", this._onMediaSourceOpen), t.removeEventListener("sourceended", this._onMediaSourceEnded), t.removeEventListener("sourceclose", this._onMediaSourceClose), t.removeEventListener("startstreaming", this._onStartStreaming), t.removeEventListener("endstreaming", this._onEndStreaming), e && (e.removeEventListener("emptied", this._onMediaEmptied), i && self.URL.revokeObjectURL(i), this.mediaSrc === i ? (e.removeAttribute("src"), this.appendSource && lr(e), e.load()) : this.warn("media|source.src was changed by a third party - skip cleanup")), this.mediaSource = null, this.media = null, this._objectUrl = null, this.bufferCodecEventsExpected = this._bufferCodecEventsTotal, this.pendingTracks = {}, this.tracks = {};
|
|
14934
14940
|
}
|
|
14935
14941
|
this.hls.trigger(p.MEDIA_DETACHED, void 0);
|
|
14936
14942
|
}
|
|
@@ -14963,9 +14969,9 @@ class Gc {
|
|
|
14963
14969
|
levelCodec: h,
|
|
14964
14970
|
container: d,
|
|
14965
14971
|
metadata: f
|
|
14966
|
-
} = t[a], m =
|
|
14967
|
-
let y =
|
|
14968
|
-
const v = (o = y) == null ? void 0 : o.replace(
|
|
14972
|
+
} = t[a], m = Is(l.codec, l.levelCodec), g = m == null ? void 0 : m.replace(or, "$1");
|
|
14973
|
+
let y = Is(u, h);
|
|
14974
|
+
const v = (o = y) == null ? void 0 : o.replace(or, "$1");
|
|
14969
14975
|
if (y && g !== v) {
|
|
14970
14976
|
a.slice(0, 5) === "audio" && (y = Kt(y, this.hls.config.preferManagedMediaSource));
|
|
14971
14977
|
const T = `${d};codecs=${y}`;
|
|
@@ -15407,7 +15413,7 @@ class Gc {
|
|
|
15407
15413
|
});
|
|
15408
15414
|
}
|
|
15409
15415
|
}
|
|
15410
|
-
function
|
|
15416
|
+
function lr(s) {
|
|
15411
15417
|
const e = s.querySelectorAll("source");
|
|
15412
15418
|
[].slice.call(e).forEach((t) => {
|
|
15413
15419
|
s.removeChild(t);
|
|
@@ -15417,7 +15423,7 @@ function Hc(s, e) {
|
|
|
15417
15423
|
const t = self.document.createElement("source");
|
|
15418
15424
|
t.type = "video/mp4", t.src = e, s.appendChild(t);
|
|
15419
15425
|
}
|
|
15420
|
-
const
|
|
15426
|
+
const cr = {
|
|
15421
15427
|
42: 225,
|
|
15422
15428
|
// lowercase a, acute accent
|
|
15423
15429
|
92: 233,
|
|
@@ -15605,9 +15611,9 @@ const or = {
|
|
|
15605
15611
|
// Box drawings heavy up and right
|
|
15606
15612
|
207: 9499
|
|
15607
15613
|
// Box drawings heavy up and left
|
|
15608
|
-
},
|
|
15614
|
+
}, Qn = function(e) {
|
|
15609
15615
|
let t = e;
|
|
15610
|
-
return
|
|
15616
|
+
return cr.hasOwnProperty(e) && (t = cr[e]), String.fromCharCode(t);
|
|
15611
15617
|
}, Ie = 15, Ge = 100, Vc = {
|
|
15612
15618
|
17: 1,
|
|
15613
15619
|
18: 3,
|
|
@@ -15660,7 +15666,7 @@ const qe = function(e) {
|
|
|
15660
15666
|
t.push(e[i].toString(16));
|
|
15661
15667
|
return t;
|
|
15662
15668
|
};
|
|
15663
|
-
class
|
|
15669
|
+
class Jn {
|
|
15664
15670
|
constructor() {
|
|
15665
15671
|
this.foreground = "white", this.underline = !1, this.italics = !1, this.background = "black", this.flash = !1;
|
|
15666
15672
|
}
|
|
@@ -15689,7 +15695,7 @@ class Zn {
|
|
|
15689
15695
|
}
|
|
15690
15696
|
class qc {
|
|
15691
15697
|
constructor() {
|
|
15692
|
-
this.uchar = " ", this.penState = new
|
|
15698
|
+
this.uchar = " ", this.penState = new Jn();
|
|
15693
15699
|
}
|
|
15694
15700
|
reset() {
|
|
15695
15701
|
this.uchar = " ", this.penState.reset();
|
|
@@ -15712,7 +15718,7 @@ class qc {
|
|
|
15712
15718
|
}
|
|
15713
15719
|
class Xc {
|
|
15714
15720
|
constructor(e) {
|
|
15715
|
-
this.chars = [], this.pos = 0, this.currPenState = new
|
|
15721
|
+
this.chars = [], this.pos = 0, this.currPenState = new Jn(), this.cueStartTime = null, this.logger = void 0;
|
|
15716
15722
|
for (let t = 0; t < Ge; t++)
|
|
15717
15723
|
this.chars.push(new qc());
|
|
15718
15724
|
this.logger = e;
|
|
@@ -15760,7 +15766,7 @@ class Xc {
|
|
|
15760
15766
|
}
|
|
15761
15767
|
insertChar(e) {
|
|
15762
15768
|
e >= 144 && this.backSpace();
|
|
15763
|
-
const t =
|
|
15769
|
+
const t = Qn(e);
|
|
15764
15770
|
if (this.pos >= Ge) {
|
|
15765
15771
|
this.logger.log(0, () => "Cannot insert " + e.toString(16) + " (" + t + ") at position " + this.pos + ". Skipping it!");
|
|
15766
15772
|
return;
|
|
@@ -15911,7 +15917,7 @@ class xi {
|
|
|
15911
15917
|
return this.rows;
|
|
15912
15918
|
}
|
|
15913
15919
|
}
|
|
15914
|
-
class
|
|
15920
|
+
class ur {
|
|
15915
15921
|
constructor(e, t, i) {
|
|
15916
15922
|
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[Ie - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
|
|
15917
15923
|
}
|
|
@@ -16008,11 +16014,11 @@ class lr {
|
|
|
16008
16014
|
this.outputFilter && (this.displayedMemory.isEmpty() || (this.outputFilter.newCue && this.outputFilter.newCue(this.cueStartTime, e, this.displayedMemory), this.cueStartTime = e));
|
|
16009
16015
|
}
|
|
16010
16016
|
}
|
|
16011
|
-
class
|
|
16017
|
+
class hr {
|
|
16012
16018
|
constructor(e, t, i) {
|
|
16013
|
-
this.channels = void 0, this.currentChannel = 0, this.cmdHistory =
|
|
16019
|
+
this.channels = void 0, this.currentChannel = 0, this.cmdHistory = fr(), this.logger = void 0;
|
|
16014
16020
|
const r = this.logger = new jc();
|
|
16015
|
-
this.channels = [null, new
|
|
16021
|
+
this.channels = [null, new ur(e, t, r), new ur(e + 1, i, r)];
|
|
16016
16022
|
}
|
|
16017
16023
|
getHandler(e) {
|
|
16018
16024
|
return this.channels[e].getHandler();
|
|
@@ -16045,7 +16051,7 @@ class cr {
|
|
|
16045
16051
|
} = this, r = (e === 20 || e === 28 || e === 21 || e === 29) && t >= 32 && t <= 47, n = (e === 23 || e === 31) && t >= 33 && t <= 35;
|
|
16046
16052
|
if (!(r || n))
|
|
16047
16053
|
return !1;
|
|
16048
|
-
if (
|
|
16054
|
+
if (dr(e, t, i))
|
|
16049
16055
|
return rt(null, null, i), this.logger.log(3, "Repeated command (" + qe([e, t]) + ") is dropped"), !0;
|
|
16050
16056
|
const a = e === 20 || e === 21 || e === 23 ? 1 : 2, o = this.channels[a];
|
|
16051
16057
|
return e === 20 || e === 21 || e === 28 || e === 29 ? t === 32 ? o.ccRCL() : t === 33 ? o.ccBS() : t === 34 ? o.ccAOF() : t === 35 ? o.ccAON() : t === 36 ? o.ccDER() : t === 37 ? o.ccRU(2) : t === 38 ? o.ccRU(3) : t === 39 ? o.ccRU(4) : t === 40 ? o.ccFON() : t === 41 ? o.ccRDC() : t === 42 ? o.ccTR() : t === 43 ? o.ccRTD() : t === 44 ? o.ccEDM() : t === 45 ? o.ccCR() : t === 46 ? o.ccENM() : t === 47 && o.ccEOC() : o.ccTO(t - 32), rt(e, t, i), this.currentChannel = a, !0;
|
|
@@ -16072,7 +16078,7 @@ class cr {
|
|
|
16072
16078
|
const r = this.cmdHistory, n = (e >= 17 && e <= 23 || e >= 25 && e <= 31) && t >= 64 && t <= 127, a = (e === 16 || e === 24) && t >= 64 && t <= 95;
|
|
16073
16079
|
if (!(n || a))
|
|
16074
16080
|
return !1;
|
|
16075
|
-
if (
|
|
16081
|
+
if (dr(e, t, r))
|
|
16076
16082
|
return rt(null, null, r), !0;
|
|
16077
16083
|
const o = e <= 23 ? 1 : 2;
|
|
16078
16084
|
t >= 64 && t <= 95 ? i = o === 1 ? Vc[e] : zc[e] : i = o === 1 ? Kc[e] : Wc[e];
|
|
@@ -16102,7 +16108,7 @@ class cr {
|
|
|
16102
16108
|
let i, r = null, n = null;
|
|
16103
16109
|
if (e >= 25 ? (i = 2, n = e - 8) : (i = 1, n = e), n >= 17 && n <= 19) {
|
|
16104
16110
|
let a;
|
|
16105
|
-
n === 17 ? a = t + 80 : n === 18 ? a = t + 112 : a = t + 144, this.logger.log(2, "Special char '" +
|
|
16111
|
+
n === 17 ? a = t + 80 : n === 18 ? a = t + 112 : a = t + 144, this.logger.log(2, "Special char '" + Qn(a) + "' in channel " + i), r = [a];
|
|
16106
16112
|
} else
|
|
16107
16113
|
e >= 32 && e <= 127 && (r = t === 0 ? [e] : [e, t]);
|
|
16108
16114
|
if (r) {
|
|
@@ -16133,7 +16139,7 @@ class cr {
|
|
|
16133
16139
|
const t = this.channels[e];
|
|
16134
16140
|
t && t.reset();
|
|
16135
16141
|
}
|
|
16136
|
-
this.cmdHistory =
|
|
16142
|
+
this.cmdHistory = fr();
|
|
16137
16143
|
}
|
|
16138
16144
|
/**
|
|
16139
16145
|
* Trigger the generation of a cue, and the start of a new one if displayScreens are not empty.
|
|
@@ -16148,16 +16154,16 @@ class cr {
|
|
|
16148
16154
|
function rt(s, e, t) {
|
|
16149
16155
|
t.a = s, t.b = e;
|
|
16150
16156
|
}
|
|
16151
|
-
function
|
|
16157
|
+
function dr(s, e, t) {
|
|
16152
16158
|
return t.a === s && t.b === e;
|
|
16153
16159
|
}
|
|
16154
|
-
function
|
|
16160
|
+
function fr() {
|
|
16155
16161
|
return {
|
|
16156
16162
|
a: null,
|
|
16157
16163
|
b: null
|
|
16158
16164
|
};
|
|
16159
16165
|
}
|
|
16160
|
-
class
|
|
16166
|
+
class Rt {
|
|
16161
16167
|
constructor(e, t) {
|
|
16162
16168
|
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
16169
|
}
|
|
@@ -16201,7 +16207,7 @@ var ms = function() {
|
|
|
16201
16207
|
enumerable: !0
|
|
16202
16208
|
};
|
|
16203
16209
|
u.hasBeenReset = !1;
|
|
16204
|
-
let d = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, _ = "middle", B = 50,
|
|
16210
|
+
let d = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, _ = "middle", B = 50, C = "middle";
|
|
16205
16211
|
Object.defineProperty(u, "id", n({}, h, {
|
|
16206
16212
|
get: function() {
|
|
16207
16213
|
return d;
|
|
@@ -16253,10 +16259,10 @@ var ms = function() {
|
|
|
16253
16259
|
return T;
|
|
16254
16260
|
},
|
|
16255
16261
|
set: function(b) {
|
|
16256
|
-
const
|
|
16257
|
-
if (
|
|
16262
|
+
const R = i(b);
|
|
16263
|
+
if (R === !1)
|
|
16258
16264
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16259
|
-
T =
|
|
16265
|
+
T = R, this.hasBeenReset = !0;
|
|
16260
16266
|
}
|
|
16261
16267
|
})), Object.defineProperty(u, "snapToLines", n({}, h, {
|
|
16262
16268
|
get: function() {
|
|
@@ -16279,10 +16285,10 @@ var ms = function() {
|
|
|
16279
16285
|
return E;
|
|
16280
16286
|
},
|
|
16281
16287
|
set: function(b) {
|
|
16282
|
-
const
|
|
16283
|
-
if (!
|
|
16288
|
+
const R = r(b);
|
|
16289
|
+
if (!R)
|
|
16284
16290
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16285
|
-
E =
|
|
16291
|
+
E = R, this.hasBeenReset = !0;
|
|
16286
16292
|
}
|
|
16287
16293
|
})), Object.defineProperty(u, "position", n({}, h, {
|
|
16288
16294
|
get: function() {
|
|
@@ -16298,10 +16304,10 @@ var ms = function() {
|
|
|
16298
16304
|
return _;
|
|
16299
16305
|
},
|
|
16300
16306
|
set: function(b) {
|
|
16301
|
-
const
|
|
16302
|
-
if (!
|
|
16307
|
+
const R = r(b);
|
|
16308
|
+
if (!R)
|
|
16303
16309
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16304
|
-
_ =
|
|
16310
|
+
_ = R, this.hasBeenReset = !0;
|
|
16305
16311
|
}
|
|
16306
16312
|
})), Object.defineProperty(u, "size", n({}, h, {
|
|
16307
16313
|
get: function() {
|
|
@@ -16314,13 +16320,13 @@ var ms = function() {
|
|
|
16314
16320
|
}
|
|
16315
16321
|
})), Object.defineProperty(u, "align", n({}, h, {
|
|
16316
16322
|
get: function() {
|
|
16317
|
-
return
|
|
16323
|
+
return C;
|
|
16318
16324
|
},
|
|
16319
16325
|
set: function(b) {
|
|
16320
|
-
const
|
|
16321
|
-
if (!
|
|
16326
|
+
const R = r(b);
|
|
16327
|
+
if (!R)
|
|
16322
16328
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16323
|
-
|
|
16329
|
+
C = R, this.hasBeenReset = !0;
|
|
16324
16330
|
}
|
|
16325
16331
|
})), u.displayState = void 0;
|
|
16326
16332
|
}
|
|
@@ -16338,7 +16344,7 @@ class Zc {
|
|
|
16338
16344
|
return decodeURIComponent(encodeURIComponent(e));
|
|
16339
16345
|
}
|
|
16340
16346
|
}
|
|
16341
|
-
function
|
|
16347
|
+
function ea(s) {
|
|
16342
16348
|
function e(i, r, n, a) {
|
|
16343
16349
|
return (i | 0) * 3600 + (r | 0) * 60 + (n | 0) + parseFloat(a || 0);
|
|
16344
16350
|
}
|
|
@@ -16387,7 +16393,7 @@ class Qc {
|
|
|
16387
16393
|
return !1;
|
|
16388
16394
|
}
|
|
16389
16395
|
}
|
|
16390
|
-
function
|
|
16396
|
+
function ta(s, e, t, i) {
|
|
16391
16397
|
const r = i ? s.split(i) : [s];
|
|
16392
16398
|
for (const n in r) {
|
|
16393
16399
|
if (typeof r[n] != "string")
|
|
@@ -16403,14 +16409,14 @@ const Hi = new ms(0, 0, ""), Dt = Hi.align === "middle" ? "middle" : "center";
|
|
|
16403
16409
|
function Jc(s, e, t) {
|
|
16404
16410
|
const i = s;
|
|
16405
16411
|
function r() {
|
|
16406
|
-
const o =
|
|
16412
|
+
const o = ea(s);
|
|
16407
16413
|
if (o === null)
|
|
16408
16414
|
throw new Error("Malformed timestamp: " + i);
|
|
16409
16415
|
return s = s.replace(/^[^\sa-zA-Z-]+/, ""), o;
|
|
16410
16416
|
}
|
|
16411
16417
|
function n(o, l) {
|
|
16412
16418
|
const c = new Qc();
|
|
16413
|
-
|
|
16419
|
+
ta(o, function(d, f) {
|
|
16414
16420
|
let m;
|
|
16415
16421
|
switch (d) {
|
|
16416
16422
|
case "region":
|
|
@@ -16449,7 +16455,7 @@ function Jc(s, e, t) {
|
|
|
16449
16455
|
throw new Error("Malformed time stamp (time stamps must be separated by '-->'): " + i);
|
|
16450
16456
|
s = s.slice(3), a(), e.endTime = r(), a(), n(s, e);
|
|
16451
16457
|
}
|
|
16452
|
-
function
|
|
16458
|
+
function ia(s) {
|
|
16453
16459
|
return s.replace(/<br(?: \/)?>/gi, `
|
|
16454
16460
|
`);
|
|
16455
16461
|
}
|
|
@@ -16464,7 +16470,7 @@ class eu {
|
|
|
16464
16470
|
}));
|
|
16465
16471
|
function i() {
|
|
16466
16472
|
let n = t.buffer, a = 0;
|
|
16467
|
-
for (n =
|
|
16473
|
+
for (n = ia(n); a < n.length && n[a] !== "\r" && n[a] !== `
|
|
16468
16474
|
`; )
|
|
16469
16475
|
++a;
|
|
16470
16476
|
const o = n.slice(0, a);
|
|
@@ -16472,7 +16478,7 @@ class eu {
|
|
|
16472
16478
|
` && ++a, t.buffer = n.slice(a), o;
|
|
16473
16479
|
}
|
|
16474
16480
|
function r(n) {
|
|
16475
|
-
|
|
16481
|
+
ta(n, function(a, o) {
|
|
16476
16482
|
}, /:/);
|
|
16477
16483
|
}
|
|
16478
16484
|
try {
|
|
@@ -16631,14 +16637,14 @@ function ru(s, e, t, i, r, n, a) {
|
|
|
16631
16637
|
`);
|
|
16632
16638
|
}), o.flush();
|
|
16633
16639
|
}
|
|
16634
|
-
const Si = "stpp.ttml.im1t",
|
|
16640
|
+
const Si = "stpp.ttml.im1t", sa = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, ra = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/, nu = {
|
|
16635
16641
|
left: "start",
|
|
16636
16642
|
center: "center",
|
|
16637
16643
|
right: "end",
|
|
16638
16644
|
start: "start",
|
|
16639
16645
|
end: "end"
|
|
16640
16646
|
};
|
|
16641
|
-
function
|
|
16647
|
+
function mr(s, e, t, i) {
|
|
16642
16648
|
const r = X(new Uint8Array(s), ["mdat"]);
|
|
16643
16649
|
if (r.length === 0) {
|
|
16644
16650
|
i(new Error("Could not parse IMSC1 mdat"));
|
|
@@ -16660,18 +16666,18 @@ function au(s, e) {
|
|
|
16660
16666
|
subFrameRate: 1,
|
|
16661
16667
|
frameRateMultiplier: 0,
|
|
16662
16668
|
tickRate: 0
|
|
16663
|
-
}, a = Object.keys(n).reduce((h, d) => (h[d] = r.getAttribute(`ttp:${d}`) || n[d], h), {}), o = r.getAttribute("xml:space") !== "preserve", l =
|
|
16669
|
+
}, a = Object.keys(n).reduce((h, d) => (h[d] = r.getAttribute(`ttp:${d}`) || n[d], h), {}), o = r.getAttribute("xml:space") !== "preserve", l = gr(bi(r, "styling", "style")), c = gr(bi(r, "layout", "region")), u = bi(r, "body", "[begin]");
|
|
16664
16670
|
return [].map.call(u, (h) => {
|
|
16665
|
-
const d =
|
|
16671
|
+
const d = na(h, o);
|
|
16666
16672
|
if (!d || !h.hasAttribute("begin"))
|
|
16667
16673
|
return null;
|
|
16668
16674
|
const f = Li(h.getAttribute("begin"), a), m = Li(h.getAttribute("dur"), a);
|
|
16669
16675
|
let g = Li(h.getAttribute("end"), a);
|
|
16670
16676
|
if (f === null)
|
|
16671
|
-
throw
|
|
16677
|
+
throw pr(h);
|
|
16672
16678
|
if (g === null) {
|
|
16673
16679
|
if (m === null)
|
|
16674
|
-
throw
|
|
16680
|
+
throw pr(h);
|
|
16675
16681
|
g = f + m;
|
|
16676
16682
|
}
|
|
16677
16683
|
const y = new ms(f - e, g - e, d);
|
|
@@ -16690,17 +16696,17 @@ function bi(s, e, t) {
|
|
|
16690
16696
|
const i = s.getElementsByTagName(e)[0];
|
|
16691
16697
|
return i ? [].slice.call(i.querySelectorAll(t)) : [];
|
|
16692
16698
|
}
|
|
16693
|
-
function
|
|
16699
|
+
function gr(s) {
|
|
16694
16700
|
return s.reduce((e, t) => {
|
|
16695
16701
|
const i = t.getAttribute("xml:id");
|
|
16696
16702
|
return i && (e[i] = t), e;
|
|
16697
16703
|
}, {});
|
|
16698
16704
|
}
|
|
16699
|
-
function
|
|
16705
|
+
function na(s, e) {
|
|
16700
16706
|
return [].slice.call(s.childNodes).reduce((t, i, r) => {
|
|
16701
16707
|
var n;
|
|
16702
16708
|
return i.nodeName === "br" && r ? t + `
|
|
16703
|
-
` : (n = i.childNodes) != null && n.length ?
|
|
16709
|
+
` : (n = i.childNodes) != null && n.length ? na(i, e) : e ? t + i.textContent.trim().replace(/\s+/g, " ") : t + i.textContent;
|
|
16704
16710
|
}, "");
|
|
16705
16711
|
}
|
|
16706
16712
|
function ou(s, e, t) {
|
|
@@ -16728,21 +16734,21 @@ function ou(s, e, t) {
|
|
|
16728
16734
|
function Ai(s, e, t) {
|
|
16729
16735
|
return s && s.hasAttributeNS(e, t) ? s.getAttributeNS(e, t) : null;
|
|
16730
16736
|
}
|
|
16731
|
-
function
|
|
16737
|
+
function pr(s) {
|
|
16732
16738
|
return new Error(`Could not parse ttml timestamp ${s}`);
|
|
16733
16739
|
}
|
|
16734
16740
|
function Li(s, e) {
|
|
16735
16741
|
if (!s)
|
|
16736
16742
|
return null;
|
|
16737
|
-
let t =
|
|
16738
|
-
return t === null && (
|
|
16743
|
+
let t = ea(s);
|
|
16744
|
+
return t === null && (sa.test(s) ? t = lu(s, e) : ra.test(s) && (t = cu(s, e))), t;
|
|
16739
16745
|
}
|
|
16740
16746
|
function lu(s, e) {
|
|
16741
|
-
const t =
|
|
16747
|
+
const t = sa.exec(s), i = (t[4] | 0) + (t[5] | 0) / e.subFrameRate;
|
|
16742
16748
|
return (t[1] | 0) * 3600 + (t[2] | 0) * 60 + (t[3] | 0) + i / e.frameRate;
|
|
16743
16749
|
}
|
|
16744
16750
|
function cu(s, e) {
|
|
16745
|
-
const t =
|
|
16751
|
+
const t = ra.exec(s), i = Number(t[1]);
|
|
16746
16752
|
switch (t[2]) {
|
|
16747
16753
|
case "h":
|
|
16748
16754
|
return i * 3600;
|
|
@@ -16759,7 +16765,7 @@ function cu(s, e) {
|
|
|
16759
16765
|
}
|
|
16760
16766
|
class uu {
|
|
16761
16767
|
constructor(e) {
|
|
16762
|
-
this.hls = void 0, this.media = null, this.config = void 0, this.enabled = !0, this.Cues = void 0, this.textTracks = [], this.tracks = [], this.initPTS = [], this.unparsedVttFrags = [], this.captionsTracks = {}, this.nonNativeCaptionsTracks = {}, this.cea608Parser1 = void 0, this.cea608Parser2 = void 0, this.lastCc = -1, this.lastSn = -1, this.lastPartIndex = -1, this.prevCC = -1, this.vttCCs =
|
|
16768
|
+
this.hls = void 0, this.media = null, this.config = void 0, this.enabled = !0, this.Cues = void 0, this.textTracks = [], this.tracks = [], this.initPTS = [], this.unparsedVttFrags = [], this.captionsTracks = {}, this.nonNativeCaptionsTracks = {}, this.cea608Parser1 = void 0, this.cea608Parser2 = void 0, this.lastCc = -1, this.lastSn = -1, this.lastPartIndex = -1, this.prevCC = -1, this.vttCCs = vr(), this.captionsProperties = void 0, this.hls = e, this.config = e.config, this.Cues = e.config.cueHandler, this.captionsProperties = {
|
|
16763
16769
|
textTrack1: {
|
|
16764
16770
|
label: this.config.captionsTextTrack1Label,
|
|
16765
16771
|
languageCode: this.config.captionsTextTrack1LanguageCode
|
|
@@ -16786,8 +16792,8 @@ class uu {
|
|
|
16786
16792
|
}
|
|
16787
16793
|
initCea608Parsers() {
|
|
16788
16794
|
if (this.config.enableCEA708Captions && (!this.cea608Parser1 || !this.cea608Parser2)) {
|
|
16789
|
-
const e = new
|
|
16790
|
-
this.cea608Parser1 = new
|
|
16795
|
+
const e = new Rt(this, "textTrack1"), t = new Rt(this, "textTrack2"), i = new Rt(this, "textTrack3"), r = new Rt(this, "textTrack4");
|
|
16796
|
+
this.cea608Parser1 = new hr(1, e, t), this.cea608Parser2 = new hr(3, i, r);
|
|
16791
16797
|
}
|
|
16792
16798
|
}
|
|
16793
16799
|
addCues(e, t, i, r, n) {
|
|
@@ -16833,7 +16839,7 @@ class uu {
|
|
|
16833
16839
|
if (i)
|
|
16834
16840
|
for (let r = 0; r < i.textTracks.length; r++) {
|
|
16835
16841
|
const n = i.textTracks[r];
|
|
16836
|
-
if (
|
|
16842
|
+
if (yr(n, {
|
|
16837
16843
|
name: e,
|
|
16838
16844
|
lang: t,
|
|
16839
16845
|
attrs: {}
|
|
@@ -16857,7 +16863,7 @@ class uu {
|
|
|
16857
16863
|
languageCode: a
|
|
16858
16864
|
} = t[e], o = this.getExistingTrack(n, a);
|
|
16859
16865
|
if (o)
|
|
16860
|
-
i[e] = o, nt(i[e]),
|
|
16866
|
+
i[e] = o, nt(i[e]), Ln(i[e], r);
|
|
16861
16867
|
else {
|
|
16862
16868
|
const l = this.createTextTrack("captions", n, a);
|
|
16863
16869
|
l && (l[e] = !0, i[e] = l);
|
|
@@ -16897,7 +16903,7 @@ class uu {
|
|
|
16897
16903
|
}), this.nonNativeCaptionsTracks = {};
|
|
16898
16904
|
}
|
|
16899
16905
|
onManifestLoading() {
|
|
16900
|
-
this.lastCc = -1, this.lastSn = -1, this.lastPartIndex = -1, this.prevCC = -1, this.vttCCs =
|
|
16906
|
+
this.lastCc = -1, this.lastSn = -1, this.lastPartIndex = -1, this.prevCC = -1, this.vttCCs = vr(), this._cleanTracks(), this.tracks = [], this.captionsTracks = {}, this.nonNativeCaptionsTracks = {}, this.textTracks = [], this.unparsedVttFrags = [], this.initPTS = [], this.cea608Parser1 && this.cea608Parser2 && (this.cea608Parser1.reset(), this.cea608Parser2.reset());
|
|
16901
16907
|
}
|
|
16902
16908
|
_cleanTracks() {
|
|
16903
16909
|
const {
|
|
@@ -16913,7 +16919,7 @@ class uu {
|
|
|
16913
16919
|
onSubtitleTracksUpdated(e, t) {
|
|
16914
16920
|
const i = t.subtitleTracks || [], r = i.some((n) => n.textCodec === Si);
|
|
16915
16921
|
if (this.config.enableWebVTT || r && this.config.enableIMSC1) {
|
|
16916
|
-
if (
|
|
16922
|
+
if (Zn(this.tracks, i)) {
|
|
16917
16923
|
this.tracks = i;
|
|
16918
16924
|
return;
|
|
16919
16925
|
}
|
|
@@ -16924,7 +16930,7 @@ class uu {
|
|
|
16924
16930
|
if (o) {
|
|
16925
16931
|
let h = null;
|
|
16926
16932
|
for (let d = 0; d < o.length; d++)
|
|
16927
|
-
if (o[d] &&
|
|
16933
|
+
if (o[d] && yr(o[d], l)) {
|
|
16928
16934
|
h = o[d], o[d] = null;
|
|
16929
16935
|
break;
|
|
16930
16936
|
}
|
|
@@ -16933,7 +16939,7 @@ class uu {
|
|
|
16933
16939
|
if (u)
|
|
16934
16940
|
nt(u);
|
|
16935
16941
|
else {
|
|
16936
|
-
const h =
|
|
16942
|
+
const h = aa(l);
|
|
16937
16943
|
u = this.createTextTrack(h, l.name, l.lang), u && (u.mode = "disabled");
|
|
16938
16944
|
}
|
|
16939
16945
|
u && this.textTracks.push(u);
|
|
@@ -17010,7 +17016,7 @@ class uu {
|
|
|
17010
17016
|
}
|
|
17011
17017
|
_parseIMSC1(e, t) {
|
|
17012
17018
|
const i = this.hls;
|
|
17013
|
-
|
|
17019
|
+
mr(t, this.initPTS[e.cc], (r) => {
|
|
17014
17020
|
this._appendCues(r, e.level), i.trigger(p.SUBTITLE_FRAG_PROCESSED, {
|
|
17015
17021
|
success: !0,
|
|
17016
17022
|
frag: e
|
|
@@ -17036,7 +17042,7 @@ class uu {
|
|
|
17036
17042
|
a.push(e);
|
|
17037
17043
|
return;
|
|
17038
17044
|
}
|
|
17039
|
-
const l = this.hls, c = (t = i.initSegment) != null && t.data ?
|
|
17045
|
+
const l = this.hls, c = (t = i.initSegment) != null && t.data ? Ce(i.initSegment.data, new Uint8Array(r)) : r;
|
|
17040
17046
|
ru(c, this.initPTS[i.cc], this.vttCCs, i.cc, i.start, (u) => {
|
|
17041
17047
|
this._appendCues(u, i.level), l.trigger(p.SUBTITLE_FRAG_PROCESSED, {
|
|
17042
17048
|
success: !0,
|
|
@@ -17053,7 +17059,7 @@ class uu {
|
|
|
17053
17059
|
}
|
|
17054
17060
|
_fallbackToIMSC1(e, t) {
|
|
17055
17061
|
const i = this.tracks[e.level];
|
|
17056
|
-
i.textCodec ||
|
|
17062
|
+
i.textCodec || mr(t, this.initPTS[e.cc], () => {
|
|
17057
17063
|
i.textCodec = Si, this._parseIMSC1(e, t);
|
|
17058
17064
|
}, () => {
|
|
17059
17065
|
i.textCodec = "wvtt";
|
|
@@ -17065,7 +17071,7 @@ class uu {
|
|
|
17065
17071
|
const r = this.textTracks[t];
|
|
17066
17072
|
if (!r || r.mode === "disabled")
|
|
17067
17073
|
return;
|
|
17068
|
-
e.forEach((n) =>
|
|
17074
|
+
e.forEach((n) => _n(r, n));
|
|
17069
17075
|
} else {
|
|
17070
17076
|
const r = this.tracks[t];
|
|
17071
17077
|
if (!r)
|
|
@@ -17147,16 +17153,16 @@ class uu {
|
|
|
17147
17153
|
return t;
|
|
17148
17154
|
}
|
|
17149
17155
|
}
|
|
17150
|
-
function
|
|
17156
|
+
function aa(s) {
|
|
17151
17157
|
return s.characteristics && /transcribes-spoken-dialog/gi.test(s.characteristics) && /describes-music-and-sound/gi.test(s.characteristics) ? "captions" : "subtitles";
|
|
17152
17158
|
}
|
|
17153
|
-
function
|
|
17154
|
-
return !!s && s.kind ===
|
|
17159
|
+
function yr(s, e) {
|
|
17160
|
+
return !!s && s.kind === aa(e) && Gi(e, s);
|
|
17155
17161
|
}
|
|
17156
17162
|
function hu(s, e, t, i) {
|
|
17157
17163
|
return Math.min(e, i) - Math.max(s, t);
|
|
17158
17164
|
}
|
|
17159
|
-
function
|
|
17165
|
+
function vr() {
|
|
17160
17166
|
return {
|
|
17161
17167
|
ccOffset: 0,
|
|
17162
17168
|
presentationOffset: 0,
|
|
@@ -17405,7 +17411,7 @@ class ot {
|
|
|
17405
17411
|
} = this.config;
|
|
17406
17412
|
if (typeof i != "function") {
|
|
17407
17413
|
let r = `Configured requestMediaKeySystemAccess is not a function ${i}`;
|
|
17408
|
-
return
|
|
17414
|
+
return dn === null && self.location.protocol === "http:" && (r = `navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`), Promise.reject(new Error(r));
|
|
17409
17415
|
}
|
|
17410
17416
|
return i(e, t);
|
|
17411
17417
|
}
|
|
@@ -17472,11 +17478,11 @@ class ot {
|
|
|
17472
17478
|
}
|
|
17473
17479
|
getKeyFormatPromise(e) {
|
|
17474
17480
|
return new Promise((t, i) => {
|
|
17475
|
-
const r = oi(this.config), n = e.map(
|
|
17481
|
+
const r = oi(this.config), n = e.map(bs).filter((a) => !!a && r.indexOf(a) !== -1);
|
|
17476
17482
|
return this.getKeySystemSelectionPromise(n).then(({
|
|
17477
17483
|
keySystem: a
|
|
17478
17484
|
}) => {
|
|
17479
|
-
const o =
|
|
17485
|
+
const o = As(a);
|
|
17480
17486
|
o ? t(o) : i(new Error(`Unable to find format for key-system "${a}"`));
|
|
17481
17487
|
}).catch(i);
|
|
17482
17488
|
});
|
|
@@ -17513,7 +17519,7 @@ class ot {
|
|
|
17513
17519
|
getKeySystemForKeyPromise(e) {
|
|
17514
17520
|
const t = this.getKeyIdString(e), i = this.keyIdToKeySessionPromise[t];
|
|
17515
17521
|
if (!i) {
|
|
17516
|
-
const r =
|
|
17522
|
+
const r = bs(e.keyFormat), n = r ? [r] : oi(this.config);
|
|
17517
17523
|
return this.attemptKeySystemAccess(n);
|
|
17518
17524
|
}
|
|
17519
17525
|
return i;
|
|
@@ -17540,7 +17546,7 @@ class ot {
|
|
|
17540
17546
|
if (t === "sinf" && this.config.drmSystems[re.FAIRPLAY]) {
|
|
17541
17547
|
const u = le(new Uint8Array(i));
|
|
17542
17548
|
try {
|
|
17543
|
-
const h = ts(JSON.parse(u).sinf), d =
|
|
17549
|
+
const h = ts(JSON.parse(u).sinf), d = Tn(new Uint8Array(h));
|
|
17544
17550
|
if (!d)
|
|
17545
17551
|
return;
|
|
17546
17552
|
r = d.subarray(8, 24), n = re.FAIRPLAY;
|
|
@@ -17552,7 +17558,7 @@ class ot {
|
|
|
17552
17558
|
const u = jo(i);
|
|
17553
17559
|
if (u === null)
|
|
17554
17560
|
return;
|
|
17555
|
-
u.version === 0 && u.systemId ===
|
|
17561
|
+
u.version === 0 && u.systemId === hn.WIDEVINE && u.data && (r = u.data.subarray(8, 24)), n = So(u.systemId);
|
|
17556
17562
|
}
|
|
17557
17563
|
if (!n || !r)
|
|
17558
17564
|
return;
|
|
@@ -17577,7 +17583,7 @@ class ot {
|
|
|
17577
17583
|
}) => {
|
|
17578
17584
|
var d;
|
|
17579
17585
|
this.throwIfDestroyed();
|
|
17580
|
-
const f = new Tt("ISO-23001-7", a, (d =
|
|
17586
|
+
const f = new Tt("ISO-23001-7", a, (d = As(u)) != null ? d : "");
|
|
17581
17587
|
return f.pssh = new Uint8Array(i), f.keyId = r, this.attemptSetMediaKeys(u, h).then(() => {
|
|
17582
17588
|
this.throwIfDestroyed();
|
|
17583
17589
|
const m = this.createMediaKeySessionContext({
|
|
@@ -17909,7 +17915,7 @@ class ht {
|
|
|
17909
17915
|
this.value = void 0, this.params = void 0, Array.isArray(e) && (e = e.map((i) => i instanceof ht ? i : new ht(i))), this.value = e, this.params = t;
|
|
17910
17916
|
}
|
|
17911
17917
|
}
|
|
17912
|
-
class
|
|
17918
|
+
class oa {
|
|
17913
17919
|
constructor(e) {
|
|
17914
17920
|
this.description = void 0, this.description = e;
|
|
17915
17921
|
}
|
|
@@ -17923,7 +17929,7 @@ function pu(s, e, t, i) {
|
|
|
17923
17929
|
cause: i
|
|
17924
17930
|
});
|
|
17925
17931
|
}
|
|
17926
|
-
const
|
|
17932
|
+
const xr = "Bare Item", yu = "Boolean", vu = "Byte Sequence", xu = "Decimal", Tu = "Integer";
|
|
17927
17933
|
function Eu(s) {
|
|
17928
17934
|
return s < -999999999999999 || 999999999999999 < s;
|
|
17929
17935
|
}
|
|
@@ -17939,22 +17945,22 @@ function Lu(s) {
|
|
|
17939
17945
|
function _u(s) {
|
|
17940
17946
|
return btoa(String.fromCharCode(...s));
|
|
17941
17947
|
}
|
|
17942
|
-
function
|
|
17948
|
+
function Cu(s) {
|
|
17943
17949
|
if (ArrayBuffer.isView(s) === !1)
|
|
17944
17950
|
throw $e(s, vu);
|
|
17945
17951
|
return `:${_u(s)}:`;
|
|
17946
17952
|
}
|
|
17947
|
-
function
|
|
17953
|
+
function la(s) {
|
|
17948
17954
|
if (Eu(s))
|
|
17949
17955
|
throw $e(s, Tu);
|
|
17950
17956
|
return s.toString();
|
|
17951
17957
|
}
|
|
17952
|
-
function
|
|
17953
|
-
return `@${
|
|
17958
|
+
function Ru(s) {
|
|
17959
|
+
return `@${la(s.getTime() / 1e3)}`;
|
|
17954
17960
|
}
|
|
17955
|
-
function
|
|
17961
|
+
function ca(s, e) {
|
|
17956
17962
|
if (s < 0)
|
|
17957
|
-
return -
|
|
17963
|
+
return -ca(-s, e);
|
|
17958
17964
|
const t = Math.pow(10, e);
|
|
17959
17965
|
if (Math.abs(s * t % 1 - 0.5) < Number.EPSILON) {
|
|
17960
17966
|
const r = Math.floor(s * t);
|
|
@@ -17963,7 +17969,7 @@ function oa(s, e) {
|
|
|
17963
17969
|
return Math.round(s * t) / t;
|
|
17964
17970
|
}
|
|
17965
17971
|
function Du(s) {
|
|
17966
|
-
const e =
|
|
17972
|
+
const e = ca(s, 3);
|
|
17967
17973
|
if (Math.floor(Math.abs(e)).toString().length > 12)
|
|
17968
17974
|
throw $e(s, xu);
|
|
17969
17975
|
const t = e.toString();
|
|
@@ -17978,7 +17984,7 @@ function wu(s) {
|
|
|
17978
17984
|
function ku(s) {
|
|
17979
17985
|
return s.description || s.toString().slice(7, -1);
|
|
17980
17986
|
}
|
|
17981
|
-
function
|
|
17987
|
+
function Tr(s) {
|
|
17982
17988
|
const e = ku(s);
|
|
17983
17989
|
if (/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e) === !1)
|
|
17984
17990
|
throw $e(e, bu);
|
|
@@ -17988,23 +17994,23 @@ function Ki(s) {
|
|
|
17988
17994
|
switch (typeof s) {
|
|
17989
17995
|
case "number":
|
|
17990
17996
|
if (!z(s))
|
|
17991
|
-
throw $e(s,
|
|
17992
|
-
return Number.isInteger(s) ?
|
|
17997
|
+
throw $e(s, xr);
|
|
17998
|
+
return Number.isInteger(s) ? la(s) : Du(s);
|
|
17993
17999
|
case "string":
|
|
17994
18000
|
return wu(s);
|
|
17995
18001
|
case "symbol":
|
|
17996
|
-
return
|
|
18002
|
+
return Tr(s);
|
|
17997
18003
|
case "boolean":
|
|
17998
18004
|
return Lu(s);
|
|
17999
18005
|
case "object":
|
|
18000
18006
|
if (s instanceof Date)
|
|
18001
|
-
return Cu(s);
|
|
18002
|
-
if (s instanceof Uint8Array)
|
|
18003
18007
|
return Ru(s);
|
|
18004
|
-
if (s instanceof
|
|
18005
|
-
return
|
|
18008
|
+
if (s instanceof Uint8Array)
|
|
18009
|
+
return Cu(s);
|
|
18010
|
+
if (s instanceof oa)
|
|
18011
|
+
return Tr(s);
|
|
18006
18012
|
default:
|
|
18007
|
-
throw $e(s,
|
|
18013
|
+
throw $e(s, xr);
|
|
18008
18014
|
}
|
|
18009
18015
|
}
|
|
18010
18016
|
function zi(s) {
|
|
@@ -18015,11 +18021,11 @@ function zi(s) {
|
|
|
18015
18021
|
function ys(s) {
|
|
18016
18022
|
return s == null ? "" : Object.entries(s).map(([e, t]) => t === !0 ? `;${zi(e)}` : `;${zi(e)}=${Ki(t)}`).join("");
|
|
18017
18023
|
}
|
|
18018
|
-
function
|
|
18024
|
+
function ua(s) {
|
|
18019
18025
|
return s instanceof ht ? `${Ki(s.value)}${ys(s.params)}` : Ki(s);
|
|
18020
18026
|
}
|
|
18021
18027
|
function Pu(s) {
|
|
18022
|
-
return `(${s.value.map(
|
|
18028
|
+
return `(${s.value.map(ua).join(" ")})${ys(s.params)}`;
|
|
18023
18029
|
}
|
|
18024
18030
|
function Ou(s, e = {
|
|
18025
18031
|
whitespace: !0
|
|
@@ -18030,7 +18036,7 @@ function Ou(s, e = {
|
|
|
18030
18036
|
return Array.from(t).map(([r, n]) => {
|
|
18031
18037
|
n instanceof ht || (n = new ht(n));
|
|
18032
18038
|
let a = zi(r);
|
|
18033
|
-
return n.value === !0 ? a += ys(n.params) : (a += "=", Array.isArray(n.value) ? a += Pu(n) : a +=
|
|
18039
|
+
return n.value === !0 ? a += ys(n.params) : (a += "=", Array.isArray(n.value) ? a += Pu(n) : a += ua(n)), a;
|
|
18034
18040
|
}).join(`,${i}`);
|
|
18035
18041
|
}
|
|
18036
18042
|
function Fu(s, e) {
|
|
@@ -18108,10 +18114,10 @@ function Hu(s, e) {
|
|
|
18108
18114
|
return;
|
|
18109
18115
|
let o = s[a];
|
|
18110
18116
|
const l = r[a];
|
|
18111
|
-
l && (o = l(o, e)), !(a === "v" && o === 1) && (a == "pr" && o === 1 || Nu(o) && (Mu(a) && typeof o == "string" && (o = new
|
|
18117
|
+
l && (o = l(o, e)), !(a === "v" && o === 1) && (a == "pr" && o === 1 || Nu(o) && (Mu(a) && typeof o == "string" && (o = new oa(o)), t[a] = o));
|
|
18112
18118
|
}), t;
|
|
18113
18119
|
}
|
|
18114
|
-
function
|
|
18120
|
+
function ha(s, e = {}) {
|
|
18115
18121
|
return s ? Fu(Hu(s, e), oe({
|
|
18116
18122
|
whitespace: !1
|
|
18117
18123
|
}, e)) : "";
|
|
@@ -18124,7 +18130,7 @@ function Vu(s, e = {}) {
|
|
|
18124
18130
|
const [c, u] = a, h = ((o = i.find((d) => d[1].includes(c))) == null ? void 0 : o[0]) || Ze.REQUEST;
|
|
18125
18131
|
return (l = n[h]) != null || (n[h] = {}), n[h][c] = u, n;
|
|
18126
18132
|
}, {});
|
|
18127
|
-
return Object.entries(r).reduce((n, [a, o]) => (n[a] =
|
|
18133
|
+
return Object.entries(r).reduce((n, [a, o]) => (n[a] = ha(o, e), n), {});
|
|
18128
18134
|
}
|
|
18129
18135
|
function Ku(s, e, t) {
|
|
18130
18136
|
return oe(s, Vu(e, t));
|
|
@@ -18133,16 +18139,16 @@ const zu = "CMCD";
|
|
|
18133
18139
|
function Wu(s, e = {}) {
|
|
18134
18140
|
if (!s)
|
|
18135
18141
|
return "";
|
|
18136
|
-
const t =
|
|
18142
|
+
const t = ha(s, e);
|
|
18137
18143
|
return `${zu}=${encodeURIComponent(t)}`;
|
|
18138
18144
|
}
|
|
18139
|
-
const
|
|
18145
|
+
const Er = /CMCD=[^&#]+/;
|
|
18140
18146
|
function Yu(s, e, t) {
|
|
18141
18147
|
const i = Wu(e, t);
|
|
18142
18148
|
if (!i)
|
|
18143
18149
|
return s;
|
|
18144
|
-
if (
|
|
18145
|
-
return s.replace(
|
|
18150
|
+
if (Er.test(s))
|
|
18151
|
+
return s.replace(Er, i);
|
|
18146
18152
|
const r = s.includes("?") ? "&" : "?";
|
|
18147
18153
|
return `${s}${r}${i}`;
|
|
18148
18154
|
}
|
|
@@ -18375,7 +18381,7 @@ class Xu {
|
|
|
18375
18381
|
const {
|
|
18376
18382
|
errorAction: i
|
|
18377
18383
|
} = t;
|
|
18378
|
-
if ((i == null ? void 0 : i.action) ===
|
|
18384
|
+
if ((i == null ? void 0 : i.action) === ge.SendAlternateToPenaltyBox && i.flags === De.MoveAllAlternatesMatchingHost) {
|
|
18379
18385
|
const r = this.levels;
|
|
18380
18386
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18381
18387
|
if (t.context) {
|
|
@@ -18416,7 +18422,7 @@ class Xu {
|
|
|
18416
18422
|
return;
|
|
18417
18423
|
const o = this.hls.nextLoadLevel, l = this.hls.levels[o];
|
|
18418
18424
|
if (t = this.getLevelsForPathway(a), t.length > 0) {
|
|
18419
|
-
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a,
|
|
18425
|
+
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a, In(t), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
18420
18426
|
levels: t
|
|
18421
18427
|
});
|
|
18422
18428
|
const c = this.hls.levels[o];
|
|
@@ -18450,7 +18456,7 @@ class Xu {
|
|
|
18450
18456
|
h["PATHWAY-ID"] = a;
|
|
18451
18457
|
const d = h.AUDIO && `${h.AUDIO}_clone_${a}`, f = h.SUBTITLES && `${h.SUBTITLES}_clone_${a}`;
|
|
18452
18458
|
d && (i[h.AUDIO] = d, h.AUDIO = d), f && (r[h.SUBTITLES] = f, h.SUBTITLES = f);
|
|
18453
|
-
const m =
|
|
18459
|
+
const m = da(u.uri, h["STABLE-VARIANT-ID"], "PER-VARIANT-URIS", l), g = new ct({
|
|
18454
18460
|
attrs: h,
|
|
18455
18461
|
audioCodec: u.audioCodec,
|
|
18456
18462
|
bitrate: u.bitrate,
|
|
@@ -18468,7 +18474,7 @@ class Xu {
|
|
|
18468
18474
|
g.addGroupId("text", `${u.subtitleGroups[y]}_clone_${a}`);
|
|
18469
18475
|
return g;
|
|
18470
18476
|
});
|
|
18471
|
-
t.push(...c),
|
|
18477
|
+
t.push(...c), Sr(this.audioTracks, i, l, a), Sr(this.subtitleTracks, r, l, a);
|
|
18472
18478
|
});
|
|
18473
18479
|
}
|
|
18474
18480
|
loadSteeringManifest(e) {
|
|
@@ -18557,16 +18563,16 @@ class Xu {
|
|
|
18557
18563
|
}, t);
|
|
18558
18564
|
}
|
|
18559
18565
|
}
|
|
18560
|
-
function
|
|
18566
|
+
function Sr(s, e, t, i) {
|
|
18561
18567
|
s && Object.keys(e).forEach((r) => {
|
|
18562
18568
|
const n = s.filter((a) => a.groupId === r).map((a) => {
|
|
18563
18569
|
const o = oe({}, a);
|
|
18564
|
-
return o.details = void 0, o.attrs = new ne(o.attrs), o.url = o.attrs.URI =
|
|
18570
|
+
return o.details = void 0, o.attrs = new ne(o.attrs), o.url = o.attrs.URI = da(a.url, a.attrs["STABLE-RENDITION-ID"], "PER-RENDITION-URIS", t), o.groupId = o.attrs["GROUP-ID"] = e[r], o.attrs["PATHWAY-ID"] = i, o;
|
|
18565
18571
|
});
|
|
18566
18572
|
s.push(...n);
|
|
18567
18573
|
});
|
|
18568
18574
|
}
|
|
18569
|
-
function
|
|
18575
|
+
function da(s, e, t, i) {
|
|
18570
18576
|
const {
|
|
18571
18577
|
HOST: r,
|
|
18572
18578
|
PARAMS: n,
|
|
@@ -18580,7 +18586,7 @@ function ua(s, e, t, i) {
|
|
|
18580
18586
|
}), l.href;
|
|
18581
18587
|
}
|
|
18582
18588
|
const Zu = /^age:\s*[\d.]+\s*$/im;
|
|
18583
|
-
class
|
|
18589
|
+
class fa {
|
|
18584
18590
|
constructor(e) {
|
|
18585
18591
|
this.xhrSetup = void 0, this.requestTimeout = void 0, this.retryTimeout = void 0, this.retryDelay = void 0, this.config = null, this.callbacks = null, this.context = null, this.loader = null, this.stats = void 0, this.xhrSetup = e && e.xhrSetup || null, this.stats = new ti(), this.retryDelay = 0;
|
|
18586
18592
|
}
|
|
@@ -18719,7 +18725,7 @@ function Qu() {
|
|
|
18719
18725
|
return !1;
|
|
18720
18726
|
}
|
|
18721
18727
|
const Ju = /(\d+)-(\d+)\/(\d+)/;
|
|
18722
|
-
class
|
|
18728
|
+
class br {
|
|
18723
18729
|
constructor(e) {
|
|
18724
18730
|
this.fetchSetup = void 0, this.requestTimeout = void 0, this.request = null, this.response = null, this.controller = void 0, this.context = null, this.config = null, this.callbacks = null, this.stats = void 0, this.loader = null, this.fetchSetup = e.fetchSetup || sh, this.controller = new self.AbortController(), this.stats = new ti();
|
|
18725
18731
|
}
|
|
@@ -18792,7 +18798,7 @@ class Er {
|
|
|
18792
18798
|
return this.response ? this.response.headers.get(e) : null;
|
|
18793
18799
|
}
|
|
18794
18800
|
loadProgressively(e, t, i, r = 0, n) {
|
|
18795
|
-
const a = new
|
|
18801
|
+
const a = new On(), o = e.body.getReader(), l = () => o.read().then((c) => {
|
|
18796
18802
|
if (c.done)
|
|
18797
18803
|
return a.dataLength && n(t, i, a.flush(), e), Promise.resolve(new ArrayBuffer(0));
|
|
18798
18804
|
const u = c.value, h = u.length;
|
|
@@ -18846,17 +18852,17 @@ const nh = /\s/, ah = {
|
|
|
18846
18852
|
for (let g = 0; g < n.chars.length; g++)
|
|
18847
18853
|
nh.test(n.chars[g].uchar) && o ? l++ : (c += n.chars[g].uchar, o = !1);
|
|
18848
18854
|
n.cueStartTime = e, e === t && (t += 1e-4), l >= 16 ? l-- : l++;
|
|
18849
|
-
const f =
|
|
18855
|
+
const f = ia(c.trim()), m = gs(e, t, f);
|
|
18850
18856
|
s != null && (h = s.cues) != null && h.getCueById(m) || (a = new u(e, t, f), a.id = m, a.line = d + 1, a.align = "left", a.position = 10 + Math.min(80, Math.floor(l * 8 / 32) * 10), r.push(a));
|
|
18851
18857
|
}
|
|
18852
|
-
return s && r.length && (r.sort((d, f) => d.line === "auto" || f.line === "auto" ? 0 : d.line > 8 && f.line > 8 ? f.line - d.line : d.line - f.line), r.forEach((d) =>
|
|
18858
|
+
return s && r.length && (r.sort((d, f) => d.line === "auto" || f.line === "auto" ? 0 : d.line > 8 && f.line > 8 ? f.line - d.line : d.line - f.line), r.forEach((d) => _n(s, d))), r;
|
|
18853
18859
|
}
|
|
18854
18860
|
}, oh = {
|
|
18855
18861
|
maxTimeToFirstByteMs: 8e3,
|
|
18856
18862
|
maxLoadTimeMs: 2e4,
|
|
18857
18863
|
timeoutRetry: null,
|
|
18858
18864
|
errorRetry: null
|
|
18859
|
-
},
|
|
18865
|
+
}, ma = de(de({
|
|
18860
18866
|
autoStartLoad: !0,
|
|
18861
18867
|
// used by stream-controller
|
|
18862
18868
|
startPosition: -1,
|
|
@@ -18926,7 +18932,7 @@ const nh = /\s/, ah = {
|
|
|
18926
18932
|
// used by fps-controller
|
|
18927
18933
|
appendErrorMaxRetry: 3,
|
|
18928
18934
|
// used by buffer-controller
|
|
18929
|
-
loader:
|
|
18935
|
+
loader: fa,
|
|
18930
18936
|
// loader: FetchLoader,
|
|
18931
18937
|
fLoader: void 0,
|
|
18932
18938
|
// used by fragment-loader
|
|
@@ -18981,7 +18987,7 @@ const nh = /\s/, ah = {
|
|
|
18981
18987
|
// used by eme-controller
|
|
18982
18988
|
drmSystemOptions: {},
|
|
18983
18989
|
// used by eme-controller
|
|
18984
|
-
requestMediaKeySystemAccessFunc:
|
|
18990
|
+
requestMediaKeySystemAccessFunc: dn,
|
|
18985
18991
|
// used by eme-controller
|
|
18986
18992
|
testBandwidth: !0,
|
|
18987
18993
|
progressive: !1,
|
|
@@ -19169,7 +19175,7 @@ function Wi(s) {
|
|
|
19169
19175
|
}
|
|
19170
19176
|
function uh(s) {
|
|
19171
19177
|
const e = s.loader;
|
|
19172
|
-
e !==
|
|
19178
|
+
e !== br && e !== fa ? (S.log("[config]: Custom loader detected, cannot enable progressive streaming"), s.progressive = !1) : Qu() && (s.loader = br, s.progressive = !0, s.enableSoftwareAES = !0, S.log("[config]: Progressive streaming enabled, using FetchLoader"));
|
|
19173
19179
|
}
|
|
19174
19180
|
let _i;
|
|
19175
19181
|
class hh extends ns {
|
|
@@ -19230,15 +19236,15 @@ class hh extends ns {
|
|
|
19230
19236
|
} = f, b = `${`${k || "."}-`}${u.bitrate}-${_}-${L}-${x}-${B}-${E}`;
|
|
19231
19237
|
if (n[b])
|
|
19232
19238
|
if (n[b].uri !== u.url && !u.attrs["PATHWAY-ID"]) {
|
|
19233
|
-
const
|
|
19234
|
-
u.attrs["PATHWAY-ID"] = new Array(
|
|
19239
|
+
const R = a[b] += 1;
|
|
19240
|
+
u.attrs["PATHWAY-ID"] = new Array(R + 1).join(".");
|
|
19235
19241
|
const P = new ct(u);
|
|
19236
19242
|
n[b] = P, r.push(P);
|
|
19237
19243
|
} else
|
|
19238
19244
|
n[b].addGroupId("audio", f.AUDIO), n[b].addGroupId("text", f.SUBTITLES);
|
|
19239
19245
|
else {
|
|
19240
|
-
const
|
|
19241
|
-
n[b] =
|
|
19246
|
+
const R = new ct(u);
|
|
19247
|
+
n[b] = R, a[b] = 1, r.push(R);
|
|
19242
19248
|
}
|
|
19243
19249
|
}), this.filterAndSortMediaOptions(r, t, o, l, c);
|
|
19244
19250
|
}
|
|
@@ -19270,9 +19276,9 @@ class hh extends ns {
|
|
|
19270
19276
|
const {
|
|
19271
19277
|
preferManagedMediaSource: m
|
|
19272
19278
|
} = this.hls.config;
|
|
19273
|
-
a = t.audioTracks.filter((g) => !g.audioCodec || hi(g.audioCodec, "audio", m)),
|
|
19279
|
+
a = t.audioTracks.filter((g) => !g.audioCodec || hi(g.audioCodec, "audio", m)), Ar(a);
|
|
19274
19280
|
}
|
|
19275
|
-
t.subtitles && (o = t.subtitles,
|
|
19281
|
+
t.subtitles && (o = t.subtitles, Ar(o));
|
|
19276
19282
|
const c = l.slice(0);
|
|
19277
19283
|
l.sort((m, g) => {
|
|
19278
19284
|
if (m.attrs["HDCP-LEVEL"] !== g.attrs["HDCP-LEVEL"])
|
|
@@ -19284,7 +19290,7 @@ class hh extends ns {
|
|
|
19284
19290
|
if (m.videoRange !== g.videoRange)
|
|
19285
19291
|
return zt.indexOf(m.videoRange) - zt.indexOf(g.videoRange);
|
|
19286
19292
|
if (m.videoCodec !== g.videoCodec) {
|
|
19287
|
-
const y =
|
|
19293
|
+
const y = Ds(m.videoCodec), v = Ds(g.videoCodec);
|
|
19288
19294
|
if (y !== v)
|
|
19289
19295
|
return v - y;
|
|
19290
19296
|
}
|
|
@@ -19311,7 +19317,7 @@ class hh extends ns {
|
|
|
19311
19317
|
const g = u.bitrate, y = this.hls.bandwidthEstimate;
|
|
19312
19318
|
if (this.log(`manifest loaded, ${l.length} level(s) found, first bitrate: ${g}`), ((h = this.hls.userConfig) == null ? void 0 : h.abrEwmaDefaultEstimate) === void 0) {
|
|
19313
19319
|
const v = Math.min(g, this.hls.config.abrEwmaDefaultEstimateMax);
|
|
19314
|
-
v > y && y ===
|
|
19320
|
+
v > y && y === ma.abrEwmaDefaultEstimate && (this.hls.bandwidthEstimate = v);
|
|
19315
19321
|
}
|
|
19316
19322
|
break;
|
|
19317
19323
|
}
|
|
@@ -19470,7 +19476,7 @@ class hh extends ns {
|
|
|
19470
19476
|
removeLevel(e) {
|
|
19471
19477
|
var t;
|
|
19472
19478
|
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
|
-
|
|
19479
|
+
In(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
19480
|
levels: i
|
|
19475
19481
|
});
|
|
19476
19482
|
}
|
|
@@ -19494,7 +19500,7 @@ class hh extends ns {
|
|
|
19494
19500
|
}));
|
|
19495
19501
|
}
|
|
19496
19502
|
}
|
|
19497
|
-
function
|
|
19503
|
+
function Ar(s) {
|
|
19498
19504
|
const e = {};
|
|
19499
19505
|
s.forEach((t) => {
|
|
19500
19506
|
const i = t.groupId || "";
|
|
@@ -19675,24 +19681,24 @@ class dh {
|
|
|
19675
19681
|
t.keyLoader === n && (t.keyLoader = null, i.loader = null), delete this.keyUriToKeyInfo[r], n && n.destroy();
|
|
19676
19682
|
}
|
|
19677
19683
|
}
|
|
19678
|
-
function
|
|
19684
|
+
function ga() {
|
|
19679
19685
|
return self.SourceBuffer || self.WebKitSourceBuffer;
|
|
19680
19686
|
}
|
|
19681
|
-
function
|
|
19687
|
+
function pa() {
|
|
19682
19688
|
if (!dt())
|
|
19683
19689
|
return !1;
|
|
19684
|
-
const e =
|
|
19690
|
+
const e = ga();
|
|
19685
19691
|
return !e || e.prototype && typeof e.prototype.appendBuffer == "function" && typeof e.prototype.remove == "function";
|
|
19686
19692
|
}
|
|
19687
19693
|
function fh() {
|
|
19688
|
-
if (!
|
|
19694
|
+
if (!pa())
|
|
19689
19695
|
return !1;
|
|
19690
19696
|
const s = dt();
|
|
19691
19697
|
return typeof (s == null ? void 0 : s.isTypeSupported) == "function" && (["avc1.42E01E,mp4a.40.2", "av01.0.01M.08", "vp09.00.50.08"].some((e) => s.isTypeSupported(Et(e, "video"))) || ["mp4a.40.2", "fLaC"].some((e) => s.isTypeSupported(Et(e, "audio"))));
|
|
19692
19698
|
}
|
|
19693
19699
|
function mh() {
|
|
19694
19700
|
var s;
|
|
19695
|
-
const e =
|
|
19701
|
+
const e = ga();
|
|
19696
19702
|
return typeof (e == null || (s = e.prototype) == null ? void 0 : s.changeType) == "function";
|
|
19697
19703
|
}
|
|
19698
19704
|
const gh = 250, Ut = 2, ph = 0.1, yh = 0.05;
|
|
@@ -20185,7 +20191,7 @@ class Th extends ls {
|
|
|
20185
20191
|
this.warn(`Dropping fragment ${i.sn} of level ${i.level} after level details were reset`), this.fragmentTracker.removeFragment(i);
|
|
20186
20192
|
return;
|
|
20187
20193
|
}
|
|
20188
|
-
const c = o.videoCodec, u = l.PTSKnown || !l.live, h = (t = i.initSegment) == null ? void 0 : t.data, d = this._getAudioCodec(o), f = this.transmuxer = this.transmuxer || new
|
|
20194
|
+
const c = o.videoCodec, u = l.PTSKnown || !l.live, h = (t = i.initSegment) == null ? void 0 : t.data, d = this._getAudioCodec(o), f = this.transmuxer = this.transmuxer || new Xn(this.hls, j.MAIN, this._handleTransmuxComplete.bind(this), this._handleTransmuxerFlush.bind(this)), m = r ? r.index : -1, g = m !== -1, y = new as(i.level, i.sn, i.stats.chunkCount, n.byteLength, m, g), v = this.initPTS[i.cc];
|
|
20189
20195
|
f.push(n, h, d, c, i, r, l.totalduration, u, y, v);
|
|
20190
20196
|
}
|
|
20191
20197
|
onAudioTrackSwitching(e, t) {
|
|
@@ -20410,8 +20416,8 @@ class Th extends ls {
|
|
|
20410
20416
|
endDTS: _
|
|
20411
20417
|
};
|
|
20412
20418
|
else if (h.firstKeyFrame && h.independent && a.id === 1 && !x && (this.couldBacktrack = !0), h.dropped && h.independent) {
|
|
20413
|
-
const B = this.getMainFwdBufferInfo(),
|
|
20414
|
-
if (!T &&
|
|
20419
|
+
const B = this.getMainFwdBufferInfo(), C = (B ? B.end : this.getLoadPosition()) + this.config.maxBufferHole, b = h.firstKeyFramePTS ? h.firstKeyFramePTS : L;
|
|
20420
|
+
if (!T && C < b - this.config.maxBufferHole && !x) {
|
|
20415
20421
|
this.backtrack(l);
|
|
20416
20422
|
return;
|
|
20417
20423
|
} else
|
|
@@ -20550,7 +20556,7 @@ class be {
|
|
|
20550
20556
|
* Check if the required MediaSource Extensions are available.
|
|
20551
20557
|
*/
|
|
20552
20558
|
static isMSESupported() {
|
|
20553
|
-
return
|
|
20559
|
+
return pa();
|
|
20554
20560
|
}
|
|
20555
20561
|
/**
|
|
20556
20562
|
* Check if MediaSource Extensions are available and isTypeSupported checks pass for any baseline codecs.
|
|
@@ -20577,7 +20583,7 @@ class be {
|
|
|
20577
20583
|
* Get the default configuration applied to new instances.
|
|
20578
20584
|
*/
|
|
20579
20585
|
static get DefaultConfig() {
|
|
20580
|
-
return be.defaultConfig ? be.defaultConfig :
|
|
20586
|
+
return be.defaultConfig ? be.defaultConfig : ma;
|
|
20581
20587
|
}
|
|
20582
20588
|
/**
|
|
20583
20589
|
* Replace the default configuration applied to new instances.
|
|
@@ -20609,8 +20615,8 @@ class be {
|
|
|
20609
20615
|
_ && E.push(new _(this, T, x)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
|
|
20610
20616
|
const B = t.subtitleStreamController;
|
|
20611
20617
|
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(hl, k), this.coreComponents = k, E.push(l);
|
|
20612
|
-
const
|
|
20613
|
-
typeof
|
|
20618
|
+
const C = l.onErrorOut;
|
|
20619
|
+
typeof C == "function" && this.on(p.ERROR, C, l);
|
|
20614
20620
|
}
|
|
20615
20621
|
createController(e, t) {
|
|
20616
20622
|
if (e) {
|
|
@@ -21119,12 +21125,12 @@ class be {
|
|
|
21119
21125
|
}
|
|
21120
21126
|
}
|
|
21121
21127
|
be.defaultConfig = void 0;
|
|
21122
|
-
function
|
|
21128
|
+
function ya() {
|
|
21123
21129
|
const s = document;
|
|
21124
21130
|
return !!(s.fullscreenElement || s.mozFullScreenElement || s.webkitFullscreenElement || s.msFullscreenElement);
|
|
21125
21131
|
}
|
|
21126
21132
|
function Eh(s) {
|
|
21127
|
-
if (
|
|
21133
|
+
if (ya())
|
|
21128
21134
|
return new Promise((t) => t(null));
|
|
21129
21135
|
const e = s;
|
|
21130
21136
|
if (e.requestFullscreen)
|
|
@@ -21137,7 +21143,7 @@ function Eh(s) {
|
|
|
21137
21143
|
return e == null ? void 0 : e.msRequestFullscreen();
|
|
21138
21144
|
}
|
|
21139
21145
|
function Sh() {
|
|
21140
|
-
if (!
|
|
21146
|
+
if (!ya())
|
|
21141
21147
|
return new Promise((e) => e(null));
|
|
21142
21148
|
const s = document;
|
|
21143
21149
|
if (s.exitFullscreen)
|
|
@@ -21304,7 +21310,7 @@ var Lh = function() {
|
|
|
21304
21310
|
"e-cursor-grab": e.isZoomed && !e.disabled,
|
|
21305
21311
|
"e-cursor-grabbing": e.isPanning && !e.disabled
|
|
21306
21312
|
}, on: { mousewheel: e.handleZoom, mousedown: e.handleMouseDown, mouseup: e.handleMouseUp, mouseleave: e.handleMouseLeave, mousemove: e.handleMouseMove, pointerdown: e.handlePointerDown, pointermove: e.handlePointerMove, pointerup: e.handlePointerUp, pointercancel: e.handlePointerUp, pointerout: e.handlePointerUp, pointerleave: e.handlePointerUp } }, [t("div", { ref: "content", staticClass: "e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative", style: e.contentStyle }, [e._t("default")], 2), e.withOverlay && !e.disabled ? t("div", { staticClass: "e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden" }, [e._t("overlay")], 2) : e._e()])]);
|
|
21307
|
-
}, _h = [],
|
|
21313
|
+
}, _h = [], Ch = /* @__PURE__ */ fe(
|
|
21308
21314
|
Ah,
|
|
21309
21315
|
Lh,
|
|
21310
21316
|
_h,
|
|
@@ -21314,9 +21320,9 @@ var Lh = function() {
|
|
|
21314
21320
|
null,
|
|
21315
21321
|
null
|
|
21316
21322
|
);
|
|
21317
|
-
const
|
|
21323
|
+
const va = Ch.exports, Ci = new Intl.NumberFormat(void 0, {
|
|
21318
21324
|
minimumIntegerDigits: 2
|
|
21319
|
-
}),
|
|
21325
|
+
}), Lr = [
|
|
21320
21326
|
"play",
|
|
21321
21327
|
"pause",
|
|
21322
21328
|
"ended",
|
|
@@ -21328,16 +21334,16 @@ const pa = Rh.exports, Ri = new Intl.NumberFormat(void 0, {
|
|
|
21328
21334
|
"canplaythrough",
|
|
21329
21335
|
"statechanged",
|
|
21330
21336
|
"error"
|
|
21331
|
-
],
|
|
21337
|
+
], Ri = (s) => {
|
|
21332
21338
|
const e = Math.floor(s % 60), t = Math.floor(s / 60) % 60, i = Math.floor(s / 3600);
|
|
21333
|
-
return i === 0 ? `${t}:${
|
|
21339
|
+
return i === 0 ? `${t}:${Ci.format(e)}` : `${i}:${Ci.format(
|
|
21334
21340
|
t
|
|
21335
|
-
)}:${
|
|
21336
|
-
},
|
|
21341
|
+
)}:${Ci.format(e)}`;
|
|
21342
|
+
}, Rh = {
|
|
21337
21343
|
name: "VideoPlayer",
|
|
21338
21344
|
components: {
|
|
21339
|
-
ESpinner:
|
|
21340
|
-
EZoomable:
|
|
21345
|
+
ESpinner: on,
|
|
21346
|
+
EZoomable: va
|
|
21341
21347
|
},
|
|
21342
21348
|
props: {
|
|
21343
21349
|
targetTimestamp: {
|
|
@@ -21525,7 +21531,7 @@ const pa = Rh.exports, Ri = new Intl.NumberFormat(void 0, {
|
|
|
21525
21531
|
},
|
|
21526
21532
|
bindEvents() {
|
|
21527
21533
|
const s = this.$refs.player;
|
|
21528
|
-
|
|
21534
|
+
Lr.forEach((e) => {
|
|
21529
21535
|
s.addEventListener(e, () => this.bindVideoEvent(e), !0);
|
|
21530
21536
|
});
|
|
21531
21537
|
},
|
|
@@ -21544,7 +21550,7 @@ const pa = Rh.exports, Ri = new Intl.NumberFormat(void 0, {
|
|
|
21544
21550
|
},
|
|
21545
21551
|
unbindEvents() {
|
|
21546
21552
|
const s = this.$refs.player;
|
|
21547
|
-
|
|
21553
|
+
Lr.forEach((e) => {
|
|
21548
21554
|
s.removeEventListener(
|
|
21549
21555
|
e,
|
|
21550
21556
|
() => this.bindVideoEvent(e),
|
|
@@ -21557,7 +21563,7 @@ const pa = Rh.exports, Ri = new Intl.NumberFormat(void 0, {
|
|
|
21557
21563
|
if (!e)
|
|
21558
21564
|
return;
|
|
21559
21565
|
const t = this.$refs.timelineContainer;
|
|
21560
|
-
s === "loadeddata" && (this.videoLength =
|
|
21566
|
+
s === "loadeddata" && (this.videoLength = Ri(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(
|
|
21561
21567
|
"--progress-position",
|
|
21562
21568
|
this.percentagePlayed.toString()
|
|
21563
21569
|
)), this.$emit(s, { event, player: e }));
|
|
@@ -21659,13 +21665,13 @@ const pa = Rh.exports, Ri = new Intl.NumberFormat(void 0, {
|
|
|
21659
21665
|
},
|
|
21660
21666
|
getDuration() {
|
|
21661
21667
|
const s = this.$refs.player;
|
|
21662
|
-
this.videoLength =
|
|
21668
|
+
this.videoLength = Ri(s.duration), this.videoDuration = s.duration;
|
|
21663
21669
|
},
|
|
21664
21670
|
handleTimeUpdate() {
|
|
21665
21671
|
const s = this.$refs.player, e = this.$refs.timelineContainer;
|
|
21666
21672
|
if (!s || !e)
|
|
21667
21673
|
return;
|
|
21668
|
-
this.currentTime =
|
|
21674
|
+
this.currentTime = Ri(s.currentTime), this.realtime = s.currentTime;
|
|
21669
21675
|
const t = Number(this.realtime) / Number(this.videoDuration);
|
|
21670
21676
|
e.style.setProperty(
|
|
21671
21677
|
"--progress-position",
|
|
@@ -21754,8 +21760,8 @@ var Dh = function() {
|
|
|
21754
21760
|
}, Ih = [function() {
|
|
21755
21761
|
var s = this, e = s._self._c;
|
|
21756
21762
|
return e("div", { staticClass: "timeline" }, [e("div", { staticClass: "thumb-indicator" })]);
|
|
21757
|
-
}], wh = /* @__PURE__ */
|
|
21758
|
-
|
|
21763
|
+
}], wh = /* @__PURE__ */ fe(
|
|
21764
|
+
Rh,
|
|
21759
21765
|
Dh,
|
|
21760
21766
|
Ih,
|
|
21761
21767
|
!1,
|
|
@@ -21771,12 +21777,12 @@ const kh = wh.exports, Zt = (s) => {
|
|
|
21771
21777
|
3: "rd"
|
|
21772
21778
|
}[e.charAt(1)] || "th";
|
|
21773
21779
|
return `${e}${i}`;
|
|
21774
|
-
},
|
|
21780
|
+
}, _r = (s) => new Date(
|
|
21775
21781
|
Date.UTC(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate() + 1)
|
|
21776
21782
|
).getUTCDate() === 1 ? "" : I.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(I.utcFormat("%H")(s)) ? "" : `${I.utcFormat("%H")(s)}h`, Ye = (s) => {
|
|
21777
21783
|
const e = I.utcFormat("%H:%M")(s);
|
|
21778
21784
|
return e === "00:00" ? "" : e;
|
|
21779
|
-
}, Di = (s) => I.utcFormat("%M:%S")(s),
|
|
21785
|
+
}, Di = (s) => I.utcFormat("%M:%S")(s), Cr = (s) => `${I.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
|
|
21780
21786
|
const e = Ye(s), t = Zt(s), i = I.utcFormat("%B")(s);
|
|
21781
21787
|
return e || `${i} ${t}`;
|
|
21782
21788
|
}, Ii = (s) => {
|
|
@@ -21788,7 +21794,7 @@ const kh = wh.exports, Zt = (s) => {
|
|
|
21788
21794
|
}, wi = (s) => (e) => {
|
|
21789
21795
|
const t = I.utcFormat("%M")(e);
|
|
21790
21796
|
return Number.parseInt(t) % s !== 0;
|
|
21791
|
-
},
|
|
21797
|
+
}, Rr = (s) => (e) => {
|
|
21792
21798
|
const t = I.utcFormat("%M")(e), i = I.utcFormat("%S")(e);
|
|
21793
21799
|
return Number.parseInt(t) % s !== 0 && Number.parseInt(i) === 0;
|
|
21794
21800
|
}, K = {
|
|
@@ -21818,18 +21824,18 @@ const kh = wh.exports, Zt = (s) => {
|
|
|
21818
21824
|
_300_years: 7200,
|
|
21819
21825
|
infinity: 1 / 0
|
|
21820
21826
|
};
|
|
21821
|
-
var
|
|
21827
|
+
var wr, kr, Pr, Or, Fr, Mr, Nr, Br;
|
|
21822
21828
|
const Ph = {
|
|
21823
21829
|
[kt.overview]: [
|
|
21824
21830
|
{
|
|
21825
21831
|
precision: K._30_seconds,
|
|
21826
21832
|
interval: I.utcMinute.every(2),
|
|
21827
|
-
format:
|
|
21833
|
+
format: Cr
|
|
21828
21834
|
},
|
|
21829
21835
|
{
|
|
21830
21836
|
precision: K._1_minute,
|
|
21831
21837
|
interval: I.utcMinute.every(5),
|
|
21832
|
-
format:
|
|
21838
|
+
format: Cr
|
|
21833
21839
|
},
|
|
21834
21840
|
{
|
|
21835
21841
|
precision: K._2_minutes,
|
|
@@ -21919,12 +21925,12 @@ const Ph = {
|
|
|
21919
21925
|
},
|
|
21920
21926
|
{
|
|
21921
21927
|
precision: K._20_seconds,
|
|
21922
|
-
interval: (
|
|
21928
|
+
interval: (wr = I.utcSecond.every(20)) == null ? void 0 : wr.filter(Rr(2)),
|
|
21923
21929
|
format: Di
|
|
21924
21930
|
},
|
|
21925
21931
|
{
|
|
21926
21932
|
precision: K._30_seconds,
|
|
21927
|
-
interval: (
|
|
21933
|
+
interval: (kr = I.utcSecond.every(30)) == null ? void 0 : kr.filter(Rr(2)),
|
|
21928
21934
|
format: Di
|
|
21929
21935
|
},
|
|
21930
21936
|
{
|
|
@@ -21934,22 +21940,22 @@ const Ph = {
|
|
|
21934
21940
|
},
|
|
21935
21941
|
{
|
|
21936
21942
|
precision: K._2_minutes,
|
|
21937
|
-
interval: (
|
|
21943
|
+
interval: (Pr = I.utcMinute.every(2)) == null ? void 0 : Pr.filter(wi(10)),
|
|
21938
21944
|
format: Ye
|
|
21939
21945
|
},
|
|
21940
21946
|
{
|
|
21941
21947
|
precision: K._5_minutes,
|
|
21942
|
-
interval: (
|
|
21948
|
+
interval: (Or = I.utcMinute.every(5)) == null ? void 0 : Or.filter(wi(20)),
|
|
21943
21949
|
format: Ye
|
|
21944
21950
|
},
|
|
21945
21951
|
{
|
|
21946
21952
|
precision: K._15_minutes,
|
|
21947
|
-
interval: (
|
|
21953
|
+
interval: (Fr = I.utcMinute.every(15)) == null ? void 0 : Fr.filter(pt(1)),
|
|
21948
21954
|
format: Ye
|
|
21949
21955
|
},
|
|
21950
21956
|
{
|
|
21951
21957
|
precision: K._30_minutes,
|
|
21952
|
-
interval: (
|
|
21958
|
+
interval: (Mr = I.utcMinute.every(30)) == null ? void 0 : Mr.filter(pt(2)),
|
|
21953
21959
|
format: Ye
|
|
21954
21960
|
},
|
|
21955
21961
|
{
|
|
@@ -21959,12 +21965,12 @@ const Ph = {
|
|
|
21959
21965
|
},
|
|
21960
21966
|
{
|
|
21961
21967
|
precision: K._2_hours,
|
|
21962
|
-
interval: (
|
|
21968
|
+
interval: (Nr = I.utcHour.every(2)) == null ? void 0 : Nr.filter(pt(6)),
|
|
21963
21969
|
format: gt
|
|
21964
21970
|
},
|
|
21965
21971
|
{
|
|
21966
21972
|
precision: K._3_hours,
|
|
21967
|
-
interval: (
|
|
21973
|
+
interval: (Br = I.utcHour.every(3)) == null ? void 0 : Br.filter(pt(12)),
|
|
21968
21974
|
format: gt
|
|
21969
21975
|
},
|
|
21970
21976
|
{
|
|
@@ -21980,12 +21986,12 @@ const Ph = {
|
|
|
21980
21986
|
{
|
|
21981
21987
|
precision: K._1_day,
|
|
21982
21988
|
interval: I.utcDay,
|
|
21983
|
-
format:
|
|
21989
|
+
format: _r
|
|
21984
21990
|
},
|
|
21985
21991
|
{
|
|
21986
21992
|
precision: K._2_days,
|
|
21987
21993
|
interval: I.utcDay.every(2),
|
|
21988
|
-
format:
|
|
21994
|
+
format: _r
|
|
21989
21995
|
},
|
|
21990
21996
|
{
|
|
21991
21997
|
precision: K._1_month,
|
|
@@ -22227,7 +22233,7 @@ const Ph = {
|
|
|
22227
22233
|
milestoneDotLine: "e-tl-milestone-dot-line",
|
|
22228
22234
|
milestoneDotDot: "e-tl-milestone-dot-dot",
|
|
22229
22235
|
milestoneDotHovered: "e-tl-milestone-dot--hovered"
|
|
22230
|
-
}, Fh =
|
|
22236
|
+
}, Fh = ye.extend({
|
|
22231
22237
|
name: "ETimeline",
|
|
22232
22238
|
directives: {
|
|
22233
22239
|
resizeObserver: vs
|
|
@@ -22412,7 +22418,7 @@ var Mh = function() {
|
|
|
22412
22418
|
}, style: e.styles, attrs: { tabindex: "0" }, on: { mouseover: (i) => e.onMilestoneMouseOver(i, e.milestone), mousemove: e.onMilestoneMouseMove, mouseleave: (i) => e.onMilestoneMouseLeave(i, e.milestone), click: (i) => e.onMilestoneClick(i, e.milestone) } }, [t("div", { class: e.milestoneClasses.milestoneContent, style: e.contentStyles }, [e._t("content", function() {
|
|
22413
22419
|
return [t("span", [e._v(" " + e._s(e.milestone.text) + " ")])];
|
|
22414
22420
|
})], 2), e.dot ? t("div", { class: e.milestoneClasses.milestoneDotContainer, style: e.dotContainerStyles }, [t("div", { class: e.milestoneClasses.milestoneDotLine, style: e.lineStyles }), t("div", { class: e.milestoneClasses.milestoneDotDot, style: e.dotStyles })]) : t("div", { class: e.milestoneClasses.milestoneLabel, style: e.labelStyles }, [e._t("label")], 2)]);
|
|
22415
|
-
}, Nh = [], Bh = /* @__PURE__ */
|
|
22421
|
+
}, Nh = [], Bh = /* @__PURE__ */ fe(
|
|
22416
22422
|
Fh,
|
|
22417
22423
|
Mh,
|
|
22418
22424
|
Nh,
|
|
@@ -22463,7 +22469,7 @@ const $h = Bh.exports, G = {
|
|
|
22463
22469
|
transparencyGradientLight: "transparency-gradient-light",
|
|
22464
22470
|
loadingGradient: "loading-gradient",
|
|
22465
22471
|
stripedPattern: "stripedPattern"
|
|
22466
|
-
}, Uh =
|
|
22472
|
+
}, Uh = ye.extend({
|
|
22467
22473
|
name: "ETimeline",
|
|
22468
22474
|
directives: {
|
|
22469
22475
|
resizeObserver: vs
|
|
@@ -22734,7 +22740,7 @@ const $h = Bh.exports, G = {
|
|
|
22734
22740
|
},
|
|
22735
22741
|
lineGraphGroups() {
|
|
22736
22742
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22737
|
-
(s, [e, t]) => t.chartType ===
|
|
22743
|
+
(s, [e, t]) => t.chartType === Re.lineGraph ? { ...s, [e]: t } : s,
|
|
22738
22744
|
{}
|
|
22739
22745
|
);
|
|
22740
22746
|
},
|
|
@@ -22746,7 +22752,7 @@ const $h = Bh.exports, G = {
|
|
|
22746
22752
|
},
|
|
22747
22753
|
barGroups() {
|
|
22748
22754
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22749
|
-
(s, [e, t]) => !t.chartType || [
|
|
22755
|
+
(s, [e, t]) => !t.chartType || [Re.bars, Re.dots].includes(
|
|
22750
22756
|
t.chartType
|
|
22751
22757
|
) ? { ...s, [e]: t } : s,
|
|
22752
22758
|
{}
|
|
@@ -22754,13 +22760,13 @@ const $h = Bh.exports, G = {
|
|
|
22754
22760
|
},
|
|
22755
22761
|
barChartGroups() {
|
|
22756
22762
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22757
|
-
(s, [e, t]) => t.chartType ===
|
|
22763
|
+
(s, [e, t]) => t.chartType === Re.barChart ? { ...s, [e]: t } : s,
|
|
22758
22764
|
{}
|
|
22759
22765
|
);
|
|
22760
22766
|
},
|
|
22761
22767
|
milestonesGroups() {
|
|
22762
22768
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22763
|
-
(s, [e, t]) => t.chartType ===
|
|
22769
|
+
(s, [e, t]) => t.chartType === Re.milestones ? { ...s, [e]: t } : s,
|
|
22764
22770
|
{}
|
|
22765
22771
|
);
|
|
22766
22772
|
},
|
|
@@ -22929,7 +22935,7 @@ const $h = Bh.exports, G = {
|
|
|
22929
22935
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
22930
22936
|
([t, i]) => {
|
|
22931
22937
|
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${He.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
22932
|
-
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [
|
|
22938
|
+
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [Re.lineGraph, Re.barChart].includes(
|
|
22933
22939
|
n
|
|
22934
22940
|
) && [
|
|
22935
22941
|
{
|
|
@@ -23538,8 +23544,8 @@ const $h = Bh.exports, G = {
|
|
|
23538
23544
|
} = e;
|
|
23539
23545
|
let m = this.getBarGroupYPosition(s, n);
|
|
23540
23546
|
const y = [
|
|
23541
|
-
|
|
23542
|
-
|
|
23547
|
+
Re.bars,
|
|
23548
|
+
Re.dots,
|
|
23543
23549
|
void 0
|
|
23544
23550
|
].includes(f) ? this.getBarGroupHeight(e) : d;
|
|
23545
23551
|
t && (m = this.getMilestoneGroupYPosition(s)), this.drawProgressIndicator({
|
|
@@ -23583,7 +23589,7 @@ const $h = Bh.exports, G = {
|
|
|
23583
23589
|
type: s,
|
|
23584
23590
|
eventsGroup: e,
|
|
23585
23591
|
bottom: e.bottom,
|
|
23586
|
-
dots: e.chartType ===
|
|
23592
|
+
dots: e.chartType === Re.dots,
|
|
23587
23593
|
dotsSize: e.dotsSize || 3
|
|
23588
23594
|
})
|
|
23589
23595
|
);
|
|
@@ -23931,7 +23937,7 @@ var Gh = function() {
|
|
|
23931
23937
|
return t("div", { key: r }, [t("strong", [e._v(e._s(i.type) + " Count")]), e._v(": " + e._s(i.count) + " ")]);
|
|
23932
23938
|
})], 2) : e.hoveredEvent ? t("div", [e.hoveredEvent.timestamp ? t("div", [t("strong", [e._v("Event time")]), e._v(": " + e._s(e.hoveredEvent.timestamp) + " ")]) : e._e(), e.hoveredEvent.startDate ? t("div", [t("strong", [e._v("From")]), e._v(":" + e._s(e.hoveredEvent.startDate) + " ")]) : e._e(), e.hoveredEvent.endDate ? t("div", [t("strong", [e._v("To")]), e._v(":" + e._s(e.hoveredEvent.endDate) + " ")]) : e._e()]) : e._e()]) : e._e()];
|
|
23933
23939
|
}, { event: e.hoveredEvent, counts: e.hoveredCounts, active: e.isHoveringEvent && !e.isInteractingWithCurtain, type: e.hoveredEventType })], 2)], 2);
|
|
23934
|
-
}, Hh = [], Vh = /* @__PURE__ */
|
|
23940
|
+
}, Hh = [], Vh = /* @__PURE__ */ fe(
|
|
23935
23941
|
Uh,
|
|
23936
23942
|
Gh,
|
|
23937
23943
|
Hh,
|
|
@@ -23998,7 +24004,7 @@ const Kh = Vh.exports, zh = {
|
|
|
23998
24004
|
var Wh = function() {
|
|
23999
24005
|
var e = this, t = e._self._c;
|
|
24000
24006
|
return t("div", { staticClass: "video-embed" }, [t("iframe", e._g(e._b({ attrs: { src: e.embedUrl, frameborder: "0", allowfullscreen: "", width: "100%", height: "100%", allow: "autoplay; fullscreen; picture-in-picture" } }, "iframe", e.iframeOptions, !1), e.iframeListeners))]);
|
|
24001
|
-
}, Yh = [], jh = /* @__PURE__ */
|
|
24007
|
+
}, Yh = [], jh = /* @__PURE__ */ fe(
|
|
24002
24008
|
zh,
|
|
24003
24009
|
Wh,
|
|
24004
24010
|
Yh,
|
|
@@ -24008,7 +24014,7 @@ var Wh = function() {
|
|
|
24008
24014
|
null,
|
|
24009
24015
|
null
|
|
24010
24016
|
);
|
|
24011
|
-
const qh = jh.exports, Xh =
|
|
24017
|
+
const qh = jh.exports, Xh = ye.extend({
|
|
24012
24018
|
name: "EHeatmapBar",
|
|
24013
24019
|
props: {
|
|
24014
24020
|
items: {
|
|
@@ -24075,7 +24081,7 @@ var Zh = function() {
|
|
|
24075
24081
|
"e-heatmap-bar__item__count--light": e.getColorIndex(n) <= 2
|
|
24076
24082
|
} }, [e._v(" " + e._s(n > 0 ? n : "") + " ")]) : e._e(), e.showNames ? t("span", { staticClass: "e-heatmap-bar__item__name e-text-xs e-text-black e-truncate" }, [e._v(" " + e._s(i) + " ")]) : e._e()]);
|
|
24077
24083
|
})], 2);
|
|
24078
|
-
}, Qh = [], Jh = /* @__PURE__ */
|
|
24084
|
+
}, Qh = [], Jh = /* @__PURE__ */ fe(
|
|
24079
24085
|
Xh,
|
|
24080
24086
|
Zh,
|
|
24081
24087
|
Qh,
|
|
@@ -24085,10 +24091,10 @@ var Zh = function() {
|
|
|
24085
24091
|
null,
|
|
24086
24092
|
null
|
|
24087
24093
|
);
|
|
24088
|
-
const
|
|
24094
|
+
const xa = Jh.exports, ed = ye.extend({
|
|
24089
24095
|
name: "EHoursHeatmap",
|
|
24090
24096
|
components: {
|
|
24091
|
-
EHeatmapBar:
|
|
24097
|
+
EHeatmapBar: xa
|
|
24092
24098
|
},
|
|
24093
24099
|
props: {
|
|
24094
24100
|
items: {
|
|
@@ -24148,7 +24154,7 @@ var td = function() {
|
|
|
24148
24154
|
return e._self._setupProxy, t("EHeatmapBar", e._g({ attrs: { items: e.heatmapBarItems, "selected-value": e.selectedHour, "show-names": e.showHours, colors: e.colors, label: e.label, dense: e.dense }, scopedSlots: e._u([{ key: "label", fn: function() {
|
|
24149
24155
|
return [e._t("label")];
|
|
24150
24156
|
}, proxy: !0 }], null, !0) }, e.$listeners));
|
|
24151
|
-
}, id = [], sd = /* @__PURE__ */
|
|
24157
|
+
}, id = [], sd = /* @__PURE__ */ fe(
|
|
24152
24158
|
ed,
|
|
24153
24159
|
td,
|
|
24154
24160
|
id,
|
|
@@ -24158,7 +24164,7 @@ var td = function() {
|
|
|
24158
24164
|
null,
|
|
24159
24165
|
null
|
|
24160
24166
|
);
|
|
24161
|
-
const rd = sd.exports, nd =
|
|
24167
|
+
const rd = sd.exports, nd = ye.extend({
|
|
24162
24168
|
name: "EReadMore",
|
|
24163
24169
|
props: {
|
|
24164
24170
|
content: {
|
|
@@ -24239,7 +24245,7 @@ const rd = sd.exports, nd = pe.extend({
|
|
|
24239
24245
|
var ad = function() {
|
|
24240
24246
|
var e = this, t = e._self._c;
|
|
24241
24247
|
return e._self._setupProxy, t("span", { staticClass: "e-read-more" }, [t("span", { staticClass: "e-read-more__content mr-1", style: { "white-space": e.showAllContent ? "initial" : "nowrap" } }, [e._v(" " + e._s(e.displayContent()) + " ")]), e.isHiddenArrayContent ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.computedMoreText) + " ")]) : e.isHiddenTextContent ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.expandText) + " ")]) : e._e(), e.isContentExpanded ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.collapseText) + " ")]) : e._e()]);
|
|
24242
|
-
}, od = [], ld = /* @__PURE__ */
|
|
24248
|
+
}, od = [], ld = /* @__PURE__ */ fe(
|
|
24243
24249
|
nd,
|
|
24244
24250
|
ad,
|
|
24245
24251
|
od,
|
|
@@ -24249,7 +24255,7 @@ var ad = function() {
|
|
|
24249
24255
|
null,
|
|
24250
24256
|
null
|
|
24251
24257
|
);
|
|
24252
|
-
const cd = ld.exports, ud =
|
|
24258
|
+
const cd = ld.exports, ud = ye.extend({
|
|
24253
24259
|
name: "ETruncatedDiv",
|
|
24254
24260
|
props: {
|
|
24255
24261
|
width: {
|
|
@@ -24274,7 +24280,7 @@ const cd = ld.exports, ud = pe.extend({
|
|
|
24274
24280
|
var hd = function() {
|
|
24275
24281
|
var e = this, t = e._self._c;
|
|
24276
24282
|
return t("div", e._g(e._b({ staticClass: "e-truncated-div e-truncate", style: e.containerStyle }, "div", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
|
|
24277
|
-
}, dd = [], fd = /* @__PURE__ */
|
|
24283
|
+
}, dd = [], fd = /* @__PURE__ */ fe(
|
|
24278
24284
|
ud,
|
|
24279
24285
|
hd,
|
|
24280
24286
|
dd,
|
|
@@ -24284,10 +24290,10 @@ var hd = function() {
|
|
|
24284
24290
|
null,
|
|
24285
24291
|
null
|
|
24286
24292
|
);
|
|
24287
|
-
const md = fd.exports, gd =
|
|
24293
|
+
const md = fd.exports, gd = ye.extend({
|
|
24288
24294
|
name: "ECompareSeparator",
|
|
24289
24295
|
components: {
|
|
24290
|
-
EIcon:
|
|
24296
|
+
EIcon: an
|
|
24291
24297
|
},
|
|
24292
24298
|
props: {
|
|
24293
24299
|
xOffset: {
|
|
@@ -24304,7 +24310,7 @@ const md = fd.exports, gd = pe.extend({
|
|
|
24304
24310
|
var pd = function() {
|
|
24305
24311
|
var e = this, t = e._self._c;
|
|
24306
24312
|
return e._self._setupProxy, t("div", { staticClass: "e-compare-separator" }, [t("div", { staticClass: "e-compare-separator__line", style: e.separatorStyle }), t("div", { staticClass: "e-compare-separator__icon e-flex e-justify-around e-items-center", style: e.separatorStyle }, [t("EIcon", { attrs: { icon: "caret-left", color: "e-text-white", size: "xl" } }), t("EIcon", { attrs: { icon: "caret-right", color: "e-text-white", size: "xl" } })], 1)]);
|
|
24307
|
-
}, yd = [], vd = /* @__PURE__ */
|
|
24313
|
+
}, yd = [], vd = /* @__PURE__ */ fe(
|
|
24308
24314
|
gd,
|
|
24309
24315
|
pd,
|
|
24310
24316
|
yd,
|
|
@@ -24314,7 +24320,152 @@ var pd = function() {
|
|
|
24314
24320
|
null,
|
|
24315
24321
|
null
|
|
24316
24322
|
);
|
|
24317
|
-
const xd = vd.exports,
|
|
24323
|
+
const xd = vd.exports, xs = ye.extend({
|
|
24324
|
+
data() {
|
|
24325
|
+
return { timeouts: [] };
|
|
24326
|
+
},
|
|
24327
|
+
beforeDestroy() {
|
|
24328
|
+
this.$clearTimeouts();
|
|
24329
|
+
},
|
|
24330
|
+
methods: {
|
|
24331
|
+
$setTimeout(s, e = 0) {
|
|
24332
|
+
const t = setTimeout(s, e);
|
|
24333
|
+
return this.timeouts = [...this.timeouts, t], t;
|
|
24334
|
+
},
|
|
24335
|
+
$clearTimeouts() {
|
|
24336
|
+
this.timeouts.forEach(clearTimeout);
|
|
24337
|
+
}
|
|
24338
|
+
}
|
|
24339
|
+
}), Ts = ye.extend({
|
|
24340
|
+
data() {
|
|
24341
|
+
return { eventListeners: [] };
|
|
24342
|
+
},
|
|
24343
|
+
beforeDestroy() {
|
|
24344
|
+
this.$removeEventListeners();
|
|
24345
|
+
},
|
|
24346
|
+
methods: {
|
|
24347
|
+
$addEventListener(s, e, t = window) {
|
|
24348
|
+
if (!(t instanceof HTMLElement || t instanceof Window)) {
|
|
24349
|
+
console.error(
|
|
24350
|
+
"$addEventListener: The target element is not an HTMLElement."
|
|
24351
|
+
), console.log("$addEventListener: got: ", t);
|
|
24352
|
+
return;
|
|
24353
|
+
}
|
|
24354
|
+
t.addEventListener(s, e), this.eventListeners = [...this.eventListeners, { element: t, event: s, cb: e }];
|
|
24355
|
+
},
|
|
24356
|
+
$removeEventListeners() {
|
|
24357
|
+
this.eventListeners.forEach(({ element: s, event: e, cb: t }) => {
|
|
24358
|
+
s == null || s.removeEventListener(e, t);
|
|
24359
|
+
}), this.eventListeners = [];
|
|
24360
|
+
}
|
|
24361
|
+
}
|
|
24362
|
+
}), Td = {
|
|
24363
|
+
name: "EExpandableMenu",
|
|
24364
|
+
mixins: [xs, Ts],
|
|
24365
|
+
props: {
|
|
24366
|
+
padding: {
|
|
24367
|
+
type: Number,
|
|
24368
|
+
default: 4
|
|
24369
|
+
},
|
|
24370
|
+
direction: {
|
|
24371
|
+
type: String,
|
|
24372
|
+
default: "top",
|
|
24373
|
+
validator: (s) => ["top", "right", "bottom", "left"].includes(s)
|
|
24374
|
+
},
|
|
24375
|
+
isMobile: {
|
|
24376
|
+
type: Boolean,
|
|
24377
|
+
default: !1
|
|
24378
|
+
}
|
|
24379
|
+
},
|
|
24380
|
+
data() {
|
|
24381
|
+
return {
|
|
24382
|
+
menu: !1,
|
|
24383
|
+
touched: !1,
|
|
24384
|
+
baseSize: {}
|
|
24385
|
+
};
|
|
24386
|
+
},
|
|
24387
|
+
computed: {
|
|
24388
|
+
row() {
|
|
24389
|
+
return ["right", "left"].includes(this.direction);
|
|
24390
|
+
},
|
|
24391
|
+
reverse() {
|
|
24392
|
+
return ["top", "left"].includes(this.direction);
|
|
24393
|
+
}
|
|
24394
|
+
},
|
|
24395
|
+
watch: {
|
|
24396
|
+
isMobile() {
|
|
24397
|
+
this.setButtonsPositions(this.menu);
|
|
24398
|
+
},
|
|
24399
|
+
direction() {
|
|
24400
|
+
this.setButtonsPositions(this.menu);
|
|
24401
|
+
}
|
|
24402
|
+
},
|
|
24403
|
+
mounted() {
|
|
24404
|
+
const s = this.$refs.activator, e = (s == null ? void 0 : s.getBoundingClientRect()) || {};
|
|
24405
|
+
this.baseSize = {
|
|
24406
|
+
width: `${e.width}px`,
|
|
24407
|
+
height: `${e.height}px`
|
|
24408
|
+
}, this.isMobile || this.$setTimeout(this.toggleMenu, 100), this.$addEventListener("resize", this.setButtonsPositions);
|
|
24409
|
+
},
|
|
24410
|
+
methods: {
|
|
24411
|
+
toggleMenu() {
|
|
24412
|
+
this.menu = !this.menu, this.setButtonsPositions(this.menu);
|
|
24413
|
+
},
|
|
24414
|
+
setButtonsPositions(s) {
|
|
24415
|
+
const e = this.$refs.menu, t = Array.from(e == null ? void 0 : e.children).filter(
|
|
24416
|
+
(h) => !h.classList.contains("v-tooltip")
|
|
24417
|
+
);
|
|
24418
|
+
if (!t || !t.length)
|
|
24419
|
+
return;
|
|
24420
|
+
const i = this.isMobile ? 30 : 40, r = Array.from(t), n = this.$refs.activator, a = n == null ? void 0 : n.getBoundingClientRect(), o = Math.min(
|
|
24421
|
+
a[this.row ? "width" : "height"],
|
|
24422
|
+
i
|
|
24423
|
+
), l = s ? o + this.padding : 0, c = this.row ? "X" : "Y";
|
|
24424
|
+
e.style.transform = `translate${c}(${(this.reverse ? -1 : 1) * l}px)`;
|
|
24425
|
+
let u = 0;
|
|
24426
|
+
r.forEach((h, d) => {
|
|
24427
|
+
h.getBoundingClientRect()[this.row ? "width" : "height"] > 40 ? u = Math.max(
|
|
24428
|
+
h.getBoundingClientRect()[this.row ? "width" : "height"],
|
|
24429
|
+
i
|
|
24430
|
+
) + this.padding : u = Math.min(
|
|
24431
|
+
h.getBoundingClientRect()[this.row ? "width" : "height"],
|
|
24432
|
+
i
|
|
24433
|
+
) + this.padding;
|
|
24434
|
+
const f = s ? u * d : 0;
|
|
24435
|
+
h.style.transform = `translate${c}(${(this.reverse ? -1 : 1) * f}px)`;
|
|
24436
|
+
});
|
|
24437
|
+
}
|
|
24438
|
+
}
|
|
24439
|
+
};
|
|
24440
|
+
var Ed = function() {
|
|
24441
|
+
var e = this, t = e._self._c;
|
|
24442
|
+
return t("div", { staticClass: "expandable-menu", class: {
|
|
24443
|
+
"expandable-menu--row": e.row,
|
|
24444
|
+
"expandable-menu--column": !e.row,
|
|
24445
|
+
"expandable-menu--reverse": e.reverse,
|
|
24446
|
+
"expandable-menu--open": e.menu,
|
|
24447
|
+
"expandable-menu--closed": !e.menu
|
|
24448
|
+
}, style: e.baseSize, on: { click: function(i) {
|
|
24449
|
+
e.touched = !0;
|
|
24450
|
+
}, mouseenter: function(i) {
|
|
24451
|
+
e.touched = !0;
|
|
24452
|
+
} } }, [t("div", { staticClass: "expandable-menu__container", style: e.baseSize }, [t("div", { ref: "activator", staticClass: "v-btn--no-active expandable-menu__activator", on: { click: e.toggleMenu } }, [e._t("activator")], 2), t("div", { ref: "menu", staticClass: "e-flex e-flex-col expandable-menu__menu", class: {
|
|
24453
|
+
"expandable-menu__menu--closed": !e.menu,
|
|
24454
|
+
"expandable-menu__menu--open": e.menu,
|
|
24455
|
+
"e-py-2": !e.row,
|
|
24456
|
+
"e-py-0": e.row
|
|
24457
|
+
}, attrs: { "data-test-id": "action-buttons-menu" } }, [e._t("default")], 2)])]);
|
|
24458
|
+
}, Sd = [], bd = /* @__PURE__ */ fe(
|
|
24459
|
+
Td,
|
|
24460
|
+
Ed,
|
|
24461
|
+
Sd,
|
|
24462
|
+
!1,
|
|
24463
|
+
null,
|
|
24464
|
+
null,
|
|
24465
|
+
null,
|
|
24466
|
+
null
|
|
24467
|
+
);
|
|
24468
|
+
const Ad = bd.exports, Ld = ye.extend({
|
|
24318
24469
|
name: "EToggleSwitch",
|
|
24319
24470
|
props: {
|
|
24320
24471
|
options: {
|
|
@@ -24397,7 +24548,7 @@ const xd = vd.exports, Td = pe.extend({
|
|
|
24397
24548
|
}
|
|
24398
24549
|
}
|
|
24399
24550
|
});
|
|
24400
|
-
var
|
|
24551
|
+
var _d = function() {
|
|
24401
24552
|
var e = this, t = e._self._c;
|
|
24402
24553
|
return t("div", { class: e.containerClasses }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: e.value, expression: "value" }], staticClass: "e-hidden", attrs: { id: "toggle", type: "checkbox" }, domProps: { checked: Array.isArray(e.value) ? e._i(e.value, null) > -1 : e.value }, on: { change: function(i) {
|
|
24403
24554
|
var r = e.value, n = i.target, a = !!n.checked;
|
|
@@ -24411,57 +24562,18 @@ var Ed = function() {
|
|
|
24411
24562
|
return e.handleClick(i.value);
|
|
24412
24563
|
} } }, [t("span", { class: e.textClasses }, [e._v(e._s(i.title))])]);
|
|
24413
24564
|
})], 2);
|
|
24414
|
-
},
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24565
|
+
}, Cd = [], Rd = /* @__PURE__ */ fe(
|
|
24566
|
+
Ld,
|
|
24567
|
+
_d,
|
|
24568
|
+
Cd,
|
|
24418
24569
|
!1,
|
|
24419
24570
|
null,
|
|
24420
24571
|
null,
|
|
24421
24572
|
null,
|
|
24422
24573
|
null
|
|
24423
24574
|
);
|
|
24424
|
-
const
|
|
24425
|
-
|
|
24426
|
-
return { eventListeners: [] };
|
|
24427
|
-
},
|
|
24428
|
-
beforeDestroy() {
|
|
24429
|
-
this.$removeEventListeners();
|
|
24430
|
-
},
|
|
24431
|
-
methods: {
|
|
24432
|
-
$addEventListener(s, e, t = window) {
|
|
24433
|
-
if (!(t instanceof HTMLElement || t instanceof Window)) {
|
|
24434
|
-
console.error(
|
|
24435
|
-
"$addEventListener: The target element is not an HTMLElement."
|
|
24436
|
-
), console.log("$addEventListener: got: ", t);
|
|
24437
|
-
return;
|
|
24438
|
-
}
|
|
24439
|
-
t.addEventListener(s, e), this.eventListeners = [...this.eventListeners, { element: t, event: s, cb: e }];
|
|
24440
|
-
},
|
|
24441
|
-
$removeEventListeners() {
|
|
24442
|
-
this.eventListeners.forEach(({ element: s, event: e, cb: t }) => {
|
|
24443
|
-
s == null || s.removeEventListener(e, t);
|
|
24444
|
-
}), this.eventListeners = [];
|
|
24445
|
-
}
|
|
24446
|
-
}
|
|
24447
|
-
}), xa = pe.extend({
|
|
24448
|
-
data() {
|
|
24449
|
-
return { timeouts: [] };
|
|
24450
|
-
},
|
|
24451
|
-
beforeDestroy() {
|
|
24452
|
-
this.$clearTimeouts();
|
|
24453
|
-
},
|
|
24454
|
-
methods: {
|
|
24455
|
-
$setTimeout(s, e = 0) {
|
|
24456
|
-
const t = setTimeout(s, e);
|
|
24457
|
-
return this.timeouts = [...this.timeouts, t], t;
|
|
24458
|
-
},
|
|
24459
|
-
$clearTimeouts() {
|
|
24460
|
-
this.timeouts.forEach(clearTimeout);
|
|
24461
|
-
}
|
|
24462
|
-
}
|
|
24463
|
-
}), Ld = pe.extend({
|
|
24464
|
-
mixins: [va, xa],
|
|
24575
|
+
const Dd = Rd.exports, Id = ye.extend({
|
|
24576
|
+
mixins: [Ts, xs],
|
|
24465
24577
|
beforeDestroy() {
|
|
24466
24578
|
this.$removeInactivityListeners();
|
|
24467
24579
|
},
|
|
@@ -24502,80 +24614,82 @@ const Ad = bd.exports, va = pe.extend({
|
|
|
24502
24614
|
this.$clearTimeouts();
|
|
24503
24615
|
}
|
|
24504
24616
|
}
|
|
24505
|
-
}),
|
|
24617
|
+
}), Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24506
24618
|
__proto__: null,
|
|
24507
|
-
eventListeners:
|
|
24508
|
-
inactivityListener:
|
|
24509
|
-
timeouts:
|
|
24510
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
24511
|
-
EAvatar:
|
|
24512
|
-
EBadge:
|
|
24513
|
-
EIcon:
|
|
24514
|
-
ESpinner:
|
|
24619
|
+
eventListeners: Ts,
|
|
24620
|
+
inactivityListener: Id,
|
|
24621
|
+
timeouts: xs
|
|
24622
|
+
}, Symbol.toStringTag, { value: "Module" })), Ir = {
|
|
24623
|
+
EAvatar: Ra,
|
|
24624
|
+
EBadge: $r,
|
|
24625
|
+
EIcon: an,
|
|
24626
|
+
ESpinner: on,
|
|
24515
24627
|
ERow: Za,
|
|
24516
24628
|
ECol: io,
|
|
24517
24629
|
EVideoPlayer: kh,
|
|
24518
24630
|
ETimeline: Kh,
|
|
24519
24631
|
EVideoEmbed: qh,
|
|
24520
|
-
EHeatmapBar:
|
|
24632
|
+
EHeatmapBar: xa,
|
|
24521
24633
|
EHoursHeatmap: rd,
|
|
24522
24634
|
EReadMore: cd,
|
|
24523
24635
|
ETruncatedDiv: md,
|
|
24524
24636
|
ECompareSeparator: xd,
|
|
24525
|
-
EToggleSwitch:
|
|
24526
|
-
EZoomable:
|
|
24527
|
-
|
|
24637
|
+
EToggleSwitch: Dd,
|
|
24638
|
+
EZoomable: va,
|
|
24639
|
+
EExpandableMenu: Ad
|
|
24640
|
+
}, Ud = {
|
|
24528
24641
|
install(s) {
|
|
24529
|
-
Object.keys(
|
|
24530
|
-
s.component(e,
|
|
24531
|
-
}), Object.keys(
|
|
24532
|
-
s.mixin(e,
|
|
24642
|
+
Object.keys(Ir).forEach((e) => {
|
|
24643
|
+
s.component(e, Ir[e]);
|
|
24644
|
+
}), Object.keys(Dr).forEach((e) => {
|
|
24645
|
+
s.mixin(e, Dr[e]);
|
|
24533
24646
|
}), Oh.forEach(({ name: e, definition: t }) => {
|
|
24534
24647
|
s.directive(e, t);
|
|
24535
24648
|
});
|
|
24536
24649
|
}
|
|
24537
24650
|
};
|
|
24538
24651
|
export {
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24652
|
+
Od as AvatarSizes,
|
|
24653
|
+
Md as BadgeColors,
|
|
24654
|
+
Pd as BadgeSizes,
|
|
24655
|
+
pe as BaseColor,
|
|
24543
24656
|
Na as Colors,
|
|
24544
24657
|
Oh as DirectivesMap,
|
|
24545
|
-
|
|
24546
|
-
|
|
24658
|
+
Ra as EAvatar,
|
|
24659
|
+
$r as EBadge,
|
|
24547
24660
|
io as ECol,
|
|
24548
24661
|
xd as ECompareSeparator,
|
|
24549
|
-
|
|
24662
|
+
Ad as EExpandableMenu,
|
|
24663
|
+
xa as EHeatmapBar,
|
|
24550
24664
|
rd as EHoursHeatmap,
|
|
24551
|
-
|
|
24665
|
+
an as EIcon,
|
|
24552
24666
|
cd as EReadMore,
|
|
24553
24667
|
Za as ERow,
|
|
24554
|
-
|
|
24668
|
+
on as ESpinner,
|
|
24555
24669
|
Kh as ETimeline,
|
|
24556
|
-
|
|
24670
|
+
Dd as EToggleSwitch,
|
|
24557
24671
|
md as ETruncatedDiv,
|
|
24558
|
-
|
|
24672
|
+
Nd as EVENTS,
|
|
24559
24673
|
qh as EVideoEmbed,
|
|
24560
24674
|
kh as EVideoPlayer,
|
|
24561
|
-
|
|
24675
|
+
va as EZoomable,
|
|
24562
24676
|
Ba as IconSizes,
|
|
24563
24677
|
vs as ResizeObserverDirective,
|
|
24564
24678
|
W as Size,
|
|
24565
24679
|
Ma as TextSizes,
|
|
24566
24680
|
kt as TimelineAxis,
|
|
24567
|
-
|
|
24681
|
+
Re as TimelineChartType,
|
|
24568
24682
|
Pt as TimelineIntervalChangeTrigger,
|
|
24569
|
-
|
|
24570
|
-
|
|
24683
|
+
Fd as ToggleSwitchSizes,
|
|
24684
|
+
Ir as components,
|
|
24571
24685
|
bh as debounce,
|
|
24572
|
-
|
|
24573
|
-
|
|
24686
|
+
Ud as default,
|
|
24687
|
+
Ts as eventListeners,
|
|
24574
24688
|
Sh as exitFullScreen,
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24689
|
+
nn as fullConfig,
|
|
24690
|
+
Id as inactivityListener,
|
|
24691
|
+
ya as isFullScreen,
|
|
24578
24692
|
Eh as makeFullScreen,
|
|
24579
|
-
|
|
24693
|
+
xs as timeouts
|
|
24580
24694
|
};
|
|
24581
24695
|
//# sourceMappingURL=index.mjs.map
|