@evercam/ui 0.0.55-beta.28 → 0.0.55-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributes.json +7 -3
- package/dist/index.mjs +248 -245
- 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/{ECompareSeparator.vue.d.ts → ETruncatedDiv.vue.d.ts} +3 -2
- package/dist/src/index.d.ts +6 -7
- package/dist/style.css +1 -1
- package/dist/styles.css +4 -4
- package/dist/tags.json +3 -2
- package/dist/web-types.json +17 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import Ee from "vue";
|
|
|
2
2
|
import * as I from "d3";
|
|
3
3
|
import He from "moment-timezone";
|
|
4
4
|
var Y = /* @__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))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), 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
|
|
5
|
+
const ga = Ee.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
8
8
|
text: {
|
|
@@ -81,20 +81,20 @@ function Te(s, e, t, i, r, n, a, o) {
|
|
|
81
81
|
options: l
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var pa = 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
|
-
},
|
|
87
|
+
}, ya = [], va = /* @__PURE__ */ Te(
|
|
88
|
+
ga,
|
|
88
89
|
pa,
|
|
89
90
|
ya,
|
|
90
|
-
va,
|
|
91
91
|
!1,
|
|
92
92
|
null,
|
|
93
93
|
null,
|
|
94
94
|
null,
|
|
95
95
|
null
|
|
96
96
|
);
|
|
97
|
-
const Mr =
|
|
97
|
+
const Mr = va.exports, xa = Ee.extend({
|
|
98
98
|
name: "EAvatar",
|
|
99
99
|
components: {
|
|
100
100
|
Badge: Mr
|
|
@@ -146,25 +146,25 @@ const Mr = xa.exports, Ta = Ee.extend({
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
var
|
|
149
|
+
var Ta = function() {
|
|
150
150
|
var e = this, t = e._self._c;
|
|
151
151
|
return t("div", { staticClass: "e-avatar e-relative", class: e.avatarClasses }, [e._t("default", function() {
|
|
152
152
|
return [e.image ? t("img", { staticClass: "e-avatar__image e-w-full e-h-full e-object-cover e-rounded-full", attrs: { src: e.image } }) : e._e()];
|
|
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
|
-
},
|
|
156
|
+
}, Ea = [], Sa = /* @__PURE__ */ Te(
|
|
157
|
+
xa,
|
|
157
158
|
Ta,
|
|
158
159
|
Ea,
|
|
159
|
-
Sa,
|
|
160
160
|
!1,
|
|
161
161
|
null,
|
|
162
162
|
null,
|
|
163
163
|
null,
|
|
164
164
|
null
|
|
165
165
|
);
|
|
166
|
-
const
|
|
167
|
-
function
|
|
166
|
+
const ba = Sa.exports;
|
|
167
|
+
function Aa(s) {
|
|
168
168
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
169
169
|
}
|
|
170
170
|
var Nr = {}, Br = {}, ji = {};
|
|
@@ -2728,7 +2728,7 @@ var Jr = {};
|
|
|
2728
2728
|
}, ...w));
|
|
2729
2729
|
}
|
|
2730
2730
|
})(Br);
|
|
2731
|
-
var en = {},
|
|
2731
|
+
var en = {}, La = {
|
|
2732
2732
|
content: [],
|
|
2733
2733
|
presets: [],
|
|
2734
2734
|
darkMode: "media",
|
|
@@ -3728,7 +3728,7 @@ var en = {}, Ra = {
|
|
|
3728
3728
|
return r;
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
|
-
const e = /* @__PURE__ */ i(
|
|
3731
|
+
const e = /* @__PURE__ */ i(La), t = Jt;
|
|
3732
3732
|
function i(n) {
|
|
3733
3733
|
return n && n.__esModule ? n : {
|
|
3734
3734
|
default: n
|
|
@@ -3790,11 +3790,11 @@ var en = {}, Ra = {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
})(Nr);
|
|
3792
3792
|
let ri = Nr;
|
|
3793
|
-
var
|
|
3794
|
-
const
|
|
3793
|
+
var Ra = (ri.__esModule ? ri : { default: ri }).default;
|
|
3794
|
+
const Ca = /* @__PURE__ */ Aa(Ra);
|
|
3795
3795
|
let ni = qi;
|
|
3796
3796
|
var ke = (ni.__esModule ? ni : { default: ni }).default;
|
|
3797
|
-
const
|
|
3797
|
+
const _a = {
|
|
3798
3798
|
50: "#FCE3E4",
|
|
3799
3799
|
100: "#F9CDCE",
|
|
3800
3800
|
200: "#F39699",
|
|
@@ -3812,8 +3812,8 @@ const Da = {
|
|
|
3812
3812
|
info: ke.cyan,
|
|
3813
3813
|
success: ke.lime,
|
|
3814
3814
|
primary: ke.sky,
|
|
3815
|
-
brand:
|
|
3816
|
-
},
|
|
3815
|
+
brand: _a
|
|
3816
|
+
}, Da = {
|
|
3817
3817
|
...pe,
|
|
3818
3818
|
// Warning
|
|
3819
3819
|
warning: pe.warning[500],
|
|
@@ -3840,7 +3840,7 @@ const Da = {
|
|
|
3840
3840
|
onbackground: ke.slate[700],
|
|
3841
3841
|
surface: ke.slate[50],
|
|
3842
3842
|
background: ke.white
|
|
3843
|
-
},
|
|
3843
|
+
}, Ia = {
|
|
3844
3844
|
prefix: "e-",
|
|
3845
3845
|
corePlugins: {
|
|
3846
3846
|
preflight: !1
|
|
@@ -3848,7 +3848,7 @@ const Da = {
|
|
|
3848
3848
|
content: ["./src/**/*.{html,js,vue,ts}"],
|
|
3849
3849
|
theme: {
|
|
3850
3850
|
extend: {
|
|
3851
|
-
colors:
|
|
3851
|
+
colors: Da,
|
|
3852
3852
|
maxWidth: {
|
|
3853
3853
|
"1/12": "8.333333333%",
|
|
3854
3854
|
"2/12": "16.666666666%",
|
|
@@ -3916,7 +3916,7 @@ const Da = {
|
|
|
3916
3916
|
pattern: /e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/
|
|
3917
3917
|
}
|
|
3918
3918
|
]
|
|
3919
|
-
}, tn =
|
|
3919
|
+
}, tn = Ca(Ia), wa = tn.theme.fontSize, ka = tn.theme.colors, cd = [
|
|
3920
3920
|
Y.dot,
|
|
3921
3921
|
Y.xs,
|
|
3922
3922
|
Y.sm,
|
|
@@ -3930,7 +3930,7 @@ const Da = {
|
|
|
3930
3930
|
Y.lg,
|
|
3931
3931
|
Y.xl,
|
|
3932
3932
|
Y["2xl"]
|
|
3933
|
-
],
|
|
3933
|
+
], Pa = [
|
|
3934
3934
|
Y.xs,
|
|
3935
3935
|
Y.sm,
|
|
3936
3936
|
Y.md,
|
|
@@ -3963,7 +3963,7 @@ const Da = {
|
|
|
3963
3963
|
"canplay",
|
|
3964
3964
|
"canplaythrough",
|
|
3965
3965
|
"statechanged"
|
|
3966
|
-
],
|
|
3966
|
+
], Oa = Ee.extend({
|
|
3967
3967
|
name: "EIcon",
|
|
3968
3968
|
props: {
|
|
3969
3969
|
icon: {
|
|
@@ -3981,7 +3981,7 @@ const Da = {
|
|
|
3981
3981
|
},
|
|
3982
3982
|
computed: {
|
|
3983
3983
|
sizes() {
|
|
3984
|
-
return
|
|
3984
|
+
return Pa.reduce((s, e) => ({
|
|
3985
3985
|
...s,
|
|
3986
3986
|
[e]: `e-text-${e}`
|
|
3987
3987
|
}), {});
|
|
@@ -3998,20 +3998,20 @@ const Da = {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
});
|
|
4001
|
-
var
|
|
4001
|
+
var Fa = function() {
|
|
4002
4002
|
var e = this, t = e._self._c;
|
|
4003
4003
|
return t("div", { staticClass: "e-icon" }, [t("i", { class: e.iconClasses })]);
|
|
4004
|
-
},
|
|
4004
|
+
}, Ma = [], Na = /* @__PURE__ */ Te(
|
|
4005
|
+
Oa,
|
|
4005
4006
|
Fa,
|
|
4006
4007
|
Ma,
|
|
4007
|
-
Na,
|
|
4008
4008
|
!1,
|
|
4009
4009
|
null,
|
|
4010
4010
|
null,
|
|
4011
4011
|
null,
|
|
4012
4012
|
null
|
|
4013
4013
|
);
|
|
4014
|
-
const
|
|
4014
|
+
const Ba = Na.exports, $a = Ee.extend({
|
|
4015
4015
|
name: "ESpinner",
|
|
4016
4016
|
props: {
|
|
4017
4017
|
dark: {
|
|
@@ -4037,8 +4037,8 @@ const sn = Ba.exports, $a = Ee.extend({
|
|
|
4037
4037
|
},
|
|
4038
4038
|
data() {
|
|
4039
4039
|
return {
|
|
4040
|
-
sizes:
|
|
4041
|
-
colors:
|
|
4040
|
+
sizes: wa,
|
|
4041
|
+
colors: ka
|
|
4042
4042
|
};
|
|
4043
4043
|
},
|
|
4044
4044
|
computed: {
|
|
@@ -4089,7 +4089,7 @@ var Ua = function() {
|
|
|
4089
4089
|
null,
|
|
4090
4090
|
null
|
|
4091
4091
|
);
|
|
4092
|
-
const
|
|
4092
|
+
const sn = Ha.exports, Va = Ee.extend({
|
|
4093
4093
|
props: {
|
|
4094
4094
|
align: {
|
|
4095
4095
|
type: String,
|
|
@@ -4283,7 +4283,7 @@ const Qa = Za.exports;
|
|
|
4283
4283
|
function Ja(s) {
|
|
4284
4284
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
4285
4285
|
}
|
|
4286
|
-
var
|
|
4286
|
+
var rn = { exports: {} };
|
|
4287
4287
|
(function(s, e) {
|
|
4288
4288
|
(function(t) {
|
|
4289
4289
|
var i = /^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/, r = /^(?=([^\/?#]*))\1([^]*)$/, n = /(?:\/|^)\.(?=\/)/g, a = /(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g, o = {
|
|
@@ -4358,8 +4358,8 @@ var nn = { exports: {} };
|
|
|
4358
4358
|
};
|
|
4359
4359
|
s.exports = o;
|
|
4360
4360
|
})();
|
|
4361
|
-
})(
|
|
4362
|
-
var es =
|
|
4361
|
+
})(rn);
|
|
4362
|
+
var es = rn.exports;
|
|
4363
4363
|
function xs(s, e) {
|
|
4364
4364
|
var t = Object.keys(s);
|
|
4365
4365
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4532,7 +4532,7 @@ function co(s) {
|
|
|
4532
4532
|
function uo(s) {
|
|
4533
4533
|
return s === "SCTE35-OUT" || s === "SCTE35-IN";
|
|
4534
4534
|
}
|
|
4535
|
-
class
|
|
4535
|
+
class nn {
|
|
4536
4536
|
constructor(e, t) {
|
|
4537
4537
|
if (this.attr = void 0, this._startDate = void 0, this._endDate = void 0, this._badValueForSameId = void 0, t) {
|
|
4538
4538
|
const i = t.attr;
|
|
@@ -4603,7 +4603,7 @@ var te = {
|
|
|
4603
4603
|
VIDEO: "video",
|
|
4604
4604
|
AUDIOVIDEO: "audiovideo"
|
|
4605
4605
|
};
|
|
4606
|
-
class
|
|
4606
|
+
class an {
|
|
4607
4607
|
constructor(e) {
|
|
4608
4608
|
this._byteRange = null, this._url = null, this.baseurl = void 0, this.relurl = void 0, this.elementaryStreams = {
|
|
4609
4609
|
[te.AUDIO]: null,
|
|
@@ -4635,7 +4635,7 @@ class on {
|
|
|
4635
4635
|
this._url = e;
|
|
4636
4636
|
}
|
|
4637
4637
|
}
|
|
4638
|
-
class ai extends
|
|
4638
|
+
class ai extends an {
|
|
4639
4639
|
constructor(e, t) {
|
|
4640
4640
|
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;
|
|
4641
4641
|
}
|
|
@@ -4710,7 +4710,7 @@ class ai extends on {
|
|
|
4710
4710
|
e[te.AUDIO] = null, e[te.VIDEO] = null, e[te.AUDIOVIDEO] = null;
|
|
4711
4711
|
}
|
|
4712
4712
|
}
|
|
4713
|
-
class ho extends
|
|
4713
|
+
class ho extends an {
|
|
4714
4714
|
constructor(e, t, i, r, n) {
|
|
4715
4715
|
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;
|
|
4716
4716
|
const a = e.enumeratedString("BYTERANGE");
|
|
@@ -4828,11 +4828,11 @@ function Es(s) {
|
|
|
4828
4828
|
return re.CLEARKEY;
|
|
4829
4829
|
}
|
|
4830
4830
|
}
|
|
4831
|
-
var
|
|
4831
|
+
var on = {
|
|
4832
4832
|
WIDEVINE: "edef8ba979d64acea3c827dcd51d21ed"
|
|
4833
4833
|
};
|
|
4834
4834
|
function vo(s) {
|
|
4835
|
-
if (s ===
|
|
4835
|
+
if (s === on.WIDEVINE)
|
|
4836
4836
|
return re.WIDEVINE;
|
|
4837
4837
|
}
|
|
4838
4838
|
function Ss(s) {
|
|
@@ -4854,7 +4854,7 @@ function oi(s) {
|
|
|
4854
4854
|
} = s, i = e ? [re.FAIRPLAY, re.WIDEVINE, re.PLAYREADY, re.CLEARKEY].filter((r) => !!e[r]) : [];
|
|
4855
4855
|
return !i[re.WIDEVINE] && t && i.push(re.WIDEVINE), i;
|
|
4856
4856
|
}
|
|
4857
|
-
const
|
|
4857
|
+
const ln = function(s) {
|
|
4858
4858
|
return lt != null && (s = lt.navigator) != null && s.requestMediaKeySystemAccess ? self.navigator.requestMediaKeySystemAccess.bind(self.navigator) : null;
|
|
4859
4859
|
}();
|
|
4860
4860
|
function xo(s, e, t, i) {
|
|
@@ -4896,13 +4896,13 @@ function To(s, e, t, i) {
|
|
|
4896
4896
|
function Qe(s, e, t) {
|
|
4897
4897
|
return Uint8Array.prototype.slice ? s.slice(e, t) : new Uint8Array(Array.prototype.slice.call(s, e, t));
|
|
4898
4898
|
}
|
|
4899
|
-
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,
|
|
4899
|
+
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, cn = (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) => {
|
|
4900
4900
|
const t = e;
|
|
4901
4901
|
let i = 0;
|
|
4902
4902
|
for (; is(s, e); ) {
|
|
4903
4903
|
i += 10;
|
|
4904
4904
|
const r = ii(s, e + 6);
|
|
4905
|
-
i += r,
|
|
4905
|
+
i += r, cn(s, e + 10) && (i += 10), e += i;
|
|
4906
4906
|
}
|
|
4907
4907
|
if (i > 0)
|
|
4908
4908
|
return s.subarray(t, t + i);
|
|
@@ -4910,20 +4910,20 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4910
4910
|
let t = 0;
|
|
4911
4911
|
return t = (s[e] & 127) << 21, t |= (s[e + 1] & 127) << 14, t |= (s[e + 2] & 127) << 7, t |= s[e + 3] & 127, t;
|
|
4912
4912
|
}, Eo = (s, e) => is(s, e) && ii(s, e + 6) + 10 <= s.length - e, ss = (s) => {
|
|
4913
|
-
const e =
|
|
4913
|
+
const e = hn(s);
|
|
4914
4914
|
for (let t = 0; t < e.length; t++) {
|
|
4915
4915
|
const i = e[t];
|
|
4916
|
-
if (
|
|
4916
|
+
if (un(i))
|
|
4917
4917
|
return Co(i);
|
|
4918
4918
|
}
|
|
4919
|
-
},
|
|
4919
|
+
}, un = (s) => s && s.key === "PRIV" && s.info === "com.apple.streaming.transportStreamTimestamp", So = (s) => {
|
|
4920
4920
|
const e = String.fromCharCode(s[0], s[1], s[2], s[3]), t = ii(s, 4), i = 10;
|
|
4921
4921
|
return {
|
|
4922
4922
|
type: e,
|
|
4923
4923
|
size: t,
|
|
4924
4924
|
data: s.subarray(i, i + t)
|
|
4925
4925
|
};
|
|
4926
|
-
},
|
|
4926
|
+
}, hn = (s) => {
|
|
4927
4927
|
let e = 0;
|
|
4928
4928
|
const t = [];
|
|
4929
4929
|
for (; is(s, e); ) {
|
|
@@ -4934,7 +4934,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4934
4934
|
const n = So(s.subarray(e)), a = bo(n);
|
|
4935
4935
|
a && t.push(a), e += n.size + 10;
|
|
4936
4936
|
}
|
|
4937
|
-
|
|
4937
|
+
cn(s, e) && (e += 10);
|
|
4938
4938
|
}
|
|
4939
4939
|
return t;
|
|
4940
4940
|
}, bo = (s) => s.type === "PRIV" ? Ao(s) : s.type[0] === "W" ? Ro(s) : Lo(s), Ao = (s) => {
|
|
@@ -5043,7 +5043,7 @@ const we = {
|
|
|
5043
5043
|
}
|
|
5044
5044
|
return e;
|
|
5045
5045
|
}
|
|
5046
|
-
}, Gt = Math.pow(2, 32) - 1, Do = [].push,
|
|
5046
|
+
}, Gt = Math.pow(2, 32) - 1, Do = [].push, dn = {
|
|
5047
5047
|
video: 1,
|
|
5048
5048
|
audio: 2,
|
|
5049
5049
|
id3: 3,
|
|
@@ -5052,19 +5052,19 @@ const we = {
|
|
|
5052
5052
|
function le(s) {
|
|
5053
5053
|
return String.fromCharCode.apply(null, s);
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function fn(s, e) {
|
|
5056
5056
|
const t = s[e] << 8 | s[e + 1];
|
|
5057
5057
|
return t < 0 ? 65536 + t : t;
|
|
5058
5058
|
}
|
|
5059
5059
|
function z(s, e) {
|
|
5060
|
-
const t =
|
|
5060
|
+
const t = mn(s, e);
|
|
5061
5061
|
return t < 0 ? 4294967296 + t : t;
|
|
5062
5062
|
}
|
|
5063
5063
|
function bs(s, e) {
|
|
5064
5064
|
let t = z(s, e);
|
|
5065
5065
|
return t *= Math.pow(2, 32), t += z(s, e + 4), t;
|
|
5066
5066
|
}
|
|
5067
|
-
function
|
|
5067
|
+
function mn(s, e) {
|
|
5068
5068
|
return s[e] << 24 | s[e + 1] << 16 | s[e + 2] << 8 | s[e + 3];
|
|
5069
5069
|
}
|
|
5070
5070
|
function ci(s, e, t) {
|
|
@@ -5106,7 +5106,7 @@ function wo(s) {
|
|
|
5106
5106
|
let n = 0, a = 0;
|
|
5107
5107
|
t === 0 ? (n = z(s, i), a = z(s, i + 4), i += 8) : (n = bs(s, i), a = bs(s, i + 8), i += 16), i += 2;
|
|
5108
5108
|
let o = s.length + a;
|
|
5109
|
-
const l =
|
|
5109
|
+
const l = fn(s, i);
|
|
5110
5110
|
i += 2;
|
|
5111
5111
|
for (let c = 0; c < l; c++) {
|
|
5112
5112
|
let u = i;
|
|
@@ -5135,7 +5135,7 @@ function wo(s) {
|
|
|
5135
5135
|
references: e
|
|
5136
5136
|
};
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5138
|
+
function gn(s) {
|
|
5139
5139
|
const e = [], t = X(s, ["moov", "trak"]);
|
|
5140
5140
|
for (let r = 0; r < t.length; r++) {
|
|
5141
5141
|
const n = t[r], a = X(n, ["tkhd"])[0];
|
|
@@ -5280,7 +5280,7 @@ function Po(s, e) {
|
|
|
5280
5280
|
l || (o = X(a, ["encv"])), o.forEach((c) => {
|
|
5281
5281
|
const u = l ? c.subarray(28) : c.subarray(78);
|
|
5282
5282
|
X(u, ["sinf"]).forEach((d) => {
|
|
5283
|
-
const f =
|
|
5283
|
+
const f = pn(d);
|
|
5284
5284
|
if (f) {
|
|
5285
5285
|
const m = f.subarray(8, 24);
|
|
5286
5286
|
m.some((g) => g !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${we.hexDump(m)} -> ${we.hexDump(t)}`), f.set(t, 8));
|
|
@@ -5289,7 +5289,7 @@ function Po(s, e) {
|
|
|
5289
5289
|
});
|
|
5290
5290
|
}), s;
|
|
5291
5291
|
}
|
|
5292
|
-
function
|
|
5292
|
+
function pn(s) {
|
|
5293
5293
|
const e = X(s, ["schm"])[0];
|
|
5294
5294
|
if (e) {
|
|
5295
5295
|
const t = le(e.subarray(4, 8));
|
|
@@ -5437,13 +5437,13 @@ function As(s, e) {
|
|
|
5437
5437
|
_ && (P = z(B, Z), Z += 4), w && (Z += 4);
|
|
5438
5438
|
let ee = P + c;
|
|
5439
5439
|
for (let ae = 0; ae < Q; ae++) {
|
|
5440
|
-
if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (C === 0 ? M = z(B, Z) : M =
|
|
5440
|
+
if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (C === 0 ? M = z(B, Z) : M = mn(B, Z), Z += 4), e.type === te.VIDEO) {
|
|
5441
5441
|
let ce = 0;
|
|
5442
5442
|
for (; ce < F; ) {
|
|
5443
5443
|
const fe = z(i, ee);
|
|
5444
5444
|
if (ee += 4, Uo(a, i[ee])) {
|
|
5445
5445
|
const Se = i.subarray(ee, ee + fe);
|
|
5446
|
-
|
|
5446
|
+
yn(Se, a ? 2 : 1, s + M / r, t);
|
|
5447
5447
|
}
|
|
5448
5448
|
ee += fe, ce += fe + 4;
|
|
5449
5449
|
}
|
|
@@ -5469,8 +5469,8 @@ function Uo(s, e) {
|
|
|
5469
5469
|
} else
|
|
5470
5470
|
return (e & 31) === 6;
|
|
5471
5471
|
}
|
|
5472
|
-
function
|
|
5473
|
-
const r =
|
|
5472
|
+
function yn(s, e, t, i) {
|
|
5473
|
+
const r = vn(s);
|
|
5474
5474
|
let n = 0;
|
|
5475
5475
|
n += e;
|
|
5476
5476
|
let a = 0, o = 0, l = 0;
|
|
@@ -5497,7 +5497,7 @@ function vn(s, e, t, i) {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
if (a === 4) {
|
|
5499
5499
|
if (r[u++] === 181) {
|
|
5500
|
-
const d =
|
|
5500
|
+
const d = fn(r, u);
|
|
5501
5501
|
if (u += 2, d === 49) {
|
|
5502
5502
|
const f = z(r, u);
|
|
5503
5503
|
if (u += 4, f === 1195456820) {
|
|
@@ -5538,7 +5538,7 @@ function vn(s, e, t, i) {
|
|
|
5538
5538
|
}
|
|
5539
5539
|
}
|
|
5540
5540
|
}
|
|
5541
|
-
function
|
|
5541
|
+
function vn(s) {
|
|
5542
5542
|
const e = s.byteLength, t = [];
|
|
5543
5543
|
let i = 1;
|
|
5544
5544
|
for (; i < e - 2; )
|
|
@@ -5729,9 +5729,9 @@ function Wo(s) {
|
|
|
5729
5729
|
e[t] = s >> 8 * (15 - t) & 255;
|
|
5730
5730
|
return e;
|
|
5731
5731
|
}
|
|
5732
|
-
const
|
|
5732
|
+
const xn = /\{\$([a-zA-Z0-9-_]+)\}/g;
|
|
5733
5733
|
function Ls(s) {
|
|
5734
|
-
return
|
|
5734
|
+
return xn.test(s);
|
|
5735
5735
|
}
|
|
5736
5736
|
function ve(s, e, t) {
|
|
5737
5737
|
if (s.variableList !== null || s.hasVariableRefs)
|
|
@@ -5743,7 +5743,7 @@ function ve(s, e, t) {
|
|
|
5743
5743
|
function Oi(s, e) {
|
|
5744
5744
|
if (s.variableList !== null || s.hasVariableRefs) {
|
|
5745
5745
|
const t = s.variableList;
|
|
5746
|
-
return e.replace(
|
|
5746
|
+
return e.replace(xn, (i) => {
|
|
5747
5747
|
const r = i.substring(2, i.length - 1), n = t == null ? void 0 : t[r];
|
|
5748
5748
|
return n === void 0 ? (s.playlistParsingError || (s.playlistParsingError = new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)), i) : n;
|
|
5749
5749
|
});
|
|
@@ -5863,9 +5863,9 @@ function Yo(s, e) {
|
|
|
5863
5863
|
return !!t && !!t[s.slice(0, 4)];
|
|
5864
5864
|
}
|
|
5865
5865
|
function hi(s, e, t = !0) {
|
|
5866
|
-
return !s.split(",").some((i) => !
|
|
5866
|
+
return !s.split(",").some((i) => !Tn(i, e, t));
|
|
5867
5867
|
}
|
|
5868
|
-
function
|
|
5868
|
+
function Tn(s, e, t = !0) {
|
|
5869
5869
|
var i;
|
|
5870
5870
|
const r = dt(t);
|
|
5871
5871
|
return (i = r == null ? void 0 : r.isTypeSupported(Et(s, e))) != null ? i : !1;
|
|
@@ -5895,7 +5895,7 @@ function jo(s, e = !0) {
|
|
|
5895
5895
|
opus: ["opus", "Opus"]
|
|
5896
5896
|
}[s];
|
|
5897
5897
|
for (let i = 0; i < t.length; i++)
|
|
5898
|
-
if (
|
|
5898
|
+
if (Tn(t[i], "audio", e))
|
|
5899
5899
|
return di[s] = t[i], t[i];
|
|
5900
5900
|
return s;
|
|
5901
5901
|
}
|
|
@@ -6124,7 +6124,7 @@ class Oe {
|
|
|
6124
6124
|
case "DATERANGE": {
|
|
6125
6125
|
const w = new ne(_);
|
|
6126
6126
|
ve(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), ve(o, w, w.clientAttrs);
|
|
6127
|
-
const $ = new
|
|
6127
|
+
const $ = new nn(w, o.dateRanges[w.ID]);
|
|
6128
6128
|
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${_}"`), g.tagList.push(["EXT-X-DATERANGE", _]);
|
|
6129
6129
|
break;
|
|
6130
6130
|
}
|
|
@@ -6666,7 +6666,7 @@ class tl {
|
|
|
6666
6666
|
}
|
|
6667
6667
|
}
|
|
6668
6668
|
}
|
|
6669
|
-
function
|
|
6669
|
+
function En(s, e) {
|
|
6670
6670
|
let t;
|
|
6671
6671
|
try {
|
|
6672
6672
|
t = new Event("addtrack");
|
|
@@ -6675,7 +6675,7 @@ function Sn(s, e) {
|
|
|
6675
6675
|
}
|
|
6676
6676
|
t.track = s, e.dispatchEvent(t);
|
|
6677
6677
|
}
|
|
6678
|
-
function
|
|
6678
|
+
function Sn(s, e) {
|
|
6679
6679
|
const t = s.mode;
|
|
6680
6680
|
if (t === "disabled" && (s.mode = "hidden"), s.cues && !s.cues.getCueById(e.id))
|
|
6681
6681
|
try {
|
|
@@ -6820,7 +6820,7 @@ class al {
|
|
|
6820
6820
|
for (let t = 0; t < e.length; t++) {
|
|
6821
6821
|
const i = e[t];
|
|
6822
6822
|
if (i.kind === "metadata" && i.label === "id3")
|
|
6823
|
-
return
|
|
6823
|
+
return En(i, this.media), i;
|
|
6824
6824
|
}
|
|
6825
6825
|
return this.media.addTextTrack("metadata", "id3");
|
|
6826
6826
|
}
|
|
@@ -6848,14 +6848,14 @@ class al {
|
|
|
6848
6848
|
const l = n[o].type;
|
|
6849
6849
|
if (l === De.emsg && !i || !r)
|
|
6850
6850
|
continue;
|
|
6851
|
-
const c =
|
|
6851
|
+
const c = hn(n[o].data);
|
|
6852
6852
|
if (c) {
|
|
6853
6853
|
const u = n[o].pts;
|
|
6854
6854
|
let h = u + n[o].duration;
|
|
6855
6855
|
h > At && (h = At), h - u <= 0 && (h = u + rl);
|
|
6856
6856
|
for (let f = 0; f < c.length; f++) {
|
|
6857
6857
|
const m = c[f];
|
|
6858
|
-
if (!
|
|
6858
|
+
if (!un(m)) {
|
|
6859
6859
|
this.updateId3CueEnds(u, l);
|
|
6860
6860
|
const g = $s(a, u, h, m, l);
|
|
6861
6861
|
g && this.id3Track.addCue(g);
|
|
@@ -7210,7 +7210,7 @@ function gi(s, e) {
|
|
|
7210
7210
|
} else
|
|
7211
7211
|
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);
|
|
7212
7212
|
}
|
|
7213
|
-
function
|
|
7213
|
+
function bn(s, e, t, i, r, n) {
|
|
7214
7214
|
i - t <= 0 && (S.warn("Fragment should have a positive duration", e), i = t + e.duration, n = r + e.duration);
|
|
7215
7215
|
let o = t, l = i;
|
|
7216
7216
|
const c = e.startPTS, u = e.endPTS;
|
|
@@ -7264,7 +7264,7 @@ function hl(s, e) {
|
|
|
7264
7264
|
}
|
|
7265
7265
|
e.skippedSegments && (e.startCC = e.fragments[0].cc), fl(s.partList, e.partList, (l, c) => {
|
|
7266
7266
|
c.elementaryStreams = l.elementaryStreams, c.stats = l.stats;
|
|
7267
|
-
}), n ?
|
|
7267
|
+
}), n ? bn(e, n, n.startPTS, n.endPTS, n.startDTS, n.endDTS) : An(s, e), a.length && (e.totalduration = e.edge - a[0].start), e.driftStartTime = s.driftStartTime, e.driftStart = s.driftStart;
|
|
7268
7268
|
const o = e.advancedDateTime;
|
|
7269
7269
|
if (e.advanced && o) {
|
|
7270
7270
|
const l = e.edge;
|
|
@@ -7277,7 +7277,7 @@ function dl(s, e, t) {
|
|
|
7277
7277
|
return t && t.forEach((r) => {
|
|
7278
7278
|
delete i[r];
|
|
7279
7279
|
}), Object.keys(e).forEach((r) => {
|
|
7280
|
-
const n = new
|
|
7280
|
+
const n = new nn(e[r].attr, i[r]);
|
|
7281
7281
|
n.isValid ? i[r] = n : S.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`);
|
|
7282
7282
|
}), i;
|
|
7283
7283
|
}
|
|
@@ -7298,7 +7298,7 @@ function ml(s, e, t) {
|
|
|
7298
7298
|
i && !h && c < i && (h = e.fragments[c] = u), u && h && t(u, h);
|
|
7299
7299
|
}
|
|
7300
7300
|
}
|
|
7301
|
-
function
|
|
7301
|
+
function An(s, e) {
|
|
7302
7302
|
const t = e.startSN + e.skippedSegments - s.startSN, i = s.fragments;
|
|
7303
7303
|
t < 0 || t >= i.length || Bi(e, i[t].start);
|
|
7304
7304
|
}
|
|
@@ -7331,9 +7331,9 @@ function pl(s, e, t) {
|
|
|
7331
7331
|
}
|
|
7332
7332
|
function Hs(s, e, t) {
|
|
7333
7333
|
var i;
|
|
7334
|
-
return s != null && s.details ?
|
|
7334
|
+
return s != null && s.details ? Ln((i = s.details) == null ? void 0 : i.partList, e, t) : null;
|
|
7335
7335
|
}
|
|
7336
|
-
function
|
|
7336
|
+
function Ln(s, e, t) {
|
|
7337
7337
|
if (s)
|
|
7338
7338
|
for (let i = s.length; i--; ) {
|
|
7339
7339
|
const r = s[i];
|
|
@@ -7342,7 +7342,7 @@ function Rn(s, e, t) {
|
|
|
7342
7342
|
}
|
|
7343
7343
|
return null;
|
|
7344
7344
|
}
|
|
7345
|
-
function
|
|
7345
|
+
function Rn(s) {
|
|
7346
7346
|
s.forEach((e, t) => {
|
|
7347
7347
|
const {
|
|
7348
7348
|
details: i
|
|
@@ -7385,7 +7385,7 @@ function Yt(s, e, t, i) {
|
|
|
7385
7385
|
function yl(s) {
|
|
7386
7386
|
return s === 0 && navigator.onLine === !1 || !!s && (s < 400 || s > 499);
|
|
7387
7387
|
}
|
|
7388
|
-
const
|
|
7388
|
+
const Cn = {
|
|
7389
7389
|
/**
|
|
7390
7390
|
* Searches for an item in an array which matches a certain condition.
|
|
7391
7391
|
* This requires the condition to only match one item in the array,
|
|
@@ -7443,7 +7443,7 @@ function jt(s, e, t = 0, i = 0) {
|
|
|
7443
7443
|
t === 0 && e[0].start === 0 && (r = e[0]);
|
|
7444
7444
|
if (r && (!s || s.level === r.level) && $i(t, i, r) === 0)
|
|
7445
7445
|
return r;
|
|
7446
|
-
const n =
|
|
7446
|
+
const n = Cn.search(e, $i.bind(null, t, i));
|
|
7447
7447
|
return n && (n !== s || !r) ? n : r;
|
|
7448
7448
|
}
|
|
7449
7449
|
function $i(s = 0, e = 0, t) {
|
|
@@ -7457,7 +7457,7 @@ function xl(s, e, t) {
|
|
|
7457
7457
|
return (t.endProgramDateTime || 0) - i > s;
|
|
7458
7458
|
}
|
|
7459
7459
|
function Tl(s, e) {
|
|
7460
|
-
return
|
|
7460
|
+
return Cn.search(s, (t) => t.cc < e ? 1 : t.cc > e ? -1 : 0);
|
|
7461
7461
|
}
|
|
7462
7462
|
var me = {
|
|
7463
7463
|
DoNothing: 0,
|
|
@@ -7880,7 +7880,7 @@ class Sl {
|
|
|
7880
7880
|
destroy() {
|
|
7881
7881
|
}
|
|
7882
7882
|
}
|
|
7883
|
-
const
|
|
7883
|
+
const _n = {
|
|
7884
7884
|
supported: !0,
|
|
7885
7885
|
configurations: [],
|
|
7886
7886
|
decodingInfoResults: [{
|
|
@@ -7915,7 +7915,7 @@ function bl(s, e, t, i, r, n) {
|
|
|
7915
7915
|
function Al(s, e, t) {
|
|
7916
7916
|
const i = s.videoCodec, r = s.audioCodec;
|
|
7917
7917
|
if (!i || !r || !t)
|
|
7918
|
-
return Promise.resolve(
|
|
7918
|
+
return Promise.resolve(_n);
|
|
7919
7919
|
const n = {
|
|
7920
7920
|
width: s.width,
|
|
7921
7921
|
height: s.height,
|
|
@@ -8430,7 +8430,7 @@ class Pl {
|
|
|
8430
8430
|
U.supportedResult = ce;
|
|
8431
8431
|
const fe = this.hls.levels, Se = fe.indexOf(U);
|
|
8432
8432
|
ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${Se} ${JSON.stringify(ce)}`) : ce.supported || (S.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Se} ${JSON.stringify(ce)}`), Se > -1 && fe.length > 1 && (S.log(`[abr] Removing unsupported level ${Se}`), this.hls.removeLevel(Se)));
|
|
8433
|
-
})) : U.supportedResult =
|
|
8433
|
+
})) : U.supportedResult = _n;
|
|
8434
8434
|
}
|
|
8435
8435
|
if (E && U.codecSet !== E || k && U.videoRange !== k || F && R > U.frameRate || !F && R > 0 && R < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
|
|
8436
8436
|
w.push(O);
|
|
@@ -8907,19 +8907,19 @@ function Ys(s, e) {
|
|
|
8907
8907
|
s.start = s.startPTS = t, s.endPTS = t + s.duration;
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
|
-
function
|
|
8910
|
+
function Dn(s, e) {
|
|
8911
8911
|
const t = e.fragments;
|
|
8912
8912
|
for (let i = 0, r = t.length; i < r; i++)
|
|
8913
8913
|
Ys(t[i], s);
|
|
8914
8914
|
e.fragmentHint && Ys(e.fragmentHint, s), e.alignedSliding = !0;
|
|
8915
8915
|
}
|
|
8916
8916
|
function $l(s, e, t) {
|
|
8917
|
-
e && (Ul(s, t, e), !t.alignedSliding && e && qt(t, e), !t.alignedSliding && e && !t.skippedSegments &&
|
|
8917
|
+
e && (Ul(s, t, e), !t.alignedSliding && e && qt(t, e), !t.alignedSliding && e && !t.skippedSegments && An(e, t));
|
|
8918
8918
|
}
|
|
8919
8919
|
function Ul(s, e, t) {
|
|
8920
8920
|
if (Nl(s, t, e)) {
|
|
8921
8921
|
const i = Bl(t, e);
|
|
8922
|
-
i && W(i.start) && (S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),
|
|
8922
|
+
i && W(i.start) && (S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`), Dn(i.start, e));
|
|
8923
8923
|
}
|
|
8924
8924
|
}
|
|
8925
8925
|
function qt(s, e) {
|
|
@@ -8935,7 +8935,7 @@ function qt(s, e) {
|
|
|
8935
8935
|
if (!o || !l)
|
|
8936
8936
|
return;
|
|
8937
8937
|
const c = (l - o) / 1e3 - (n.start - r.start);
|
|
8938
|
-
|
|
8938
|
+
Dn(c, s);
|
|
8939
8939
|
}
|
|
8940
8940
|
const js = Math.pow(2, 17);
|
|
8941
8941
|
class Gl {
|
|
@@ -9618,7 +9618,7 @@ class ls extends Ol {
|
|
|
9618
9618
|
l[h.index] = d;
|
|
9619
9619
|
const f = d.part;
|
|
9620
9620
|
this.hls.trigger(p.FRAG_LOADED, d);
|
|
9621
|
-
const m = Hs(i, e.sn, h.index + 1) ||
|
|
9621
|
+
const m = Hs(i, e.sn, h.index + 1) || Ln(c, e.sn, h.index + 1);
|
|
9622
9622
|
if (m)
|
|
9623
9623
|
u(m);
|
|
9624
9624
|
else
|
|
@@ -9988,7 +9988,7 @@ class ls extends Ol {
|
|
|
9988
9988
|
const h = u.endPTS - u.startPTS;
|
|
9989
9989
|
if (h <= 0)
|
|
9990
9990
|
return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${h})`), l || !1;
|
|
9991
|
-
const d = r ? 0 :
|
|
9991
|
+
const d = r ? 0 : bn(a, e, u.startPTS, u.endPTS, u.startDTS, u.endDTS);
|
|
9992
9992
|
return this.hls.trigger(p.LEVEL_PTS_UPDATED, {
|
|
9993
9993
|
details: a,
|
|
9994
9994
|
level: i,
|
|
@@ -10032,7 +10032,7 @@ class ls extends Ol {
|
|
|
10032
10032
|
return this._state;
|
|
10033
10033
|
}
|
|
10034
10034
|
}
|
|
10035
|
-
class
|
|
10035
|
+
class In {
|
|
10036
10036
|
constructor() {
|
|
10037
10037
|
this.chunks = [], this.dataLength = 0;
|
|
10038
10038
|
}
|
|
@@ -10200,10 +10200,10 @@ function Jl(s, e, t, i) {
|
|
|
10200
10200
|
manifestCodec: c
|
|
10201
10201
|
};
|
|
10202
10202
|
}
|
|
10203
|
-
function
|
|
10203
|
+
function wn(s, e) {
|
|
10204
10204
|
return s[e] === 255 && (s[e + 1] & 246) === 240;
|
|
10205
10205
|
}
|
|
10206
|
-
function
|
|
10206
|
+
function kn(s, e) {
|
|
10207
10207
|
return s[e + 1] & 1 ? 7 : 9;
|
|
10208
10208
|
}
|
|
10209
10209
|
function us(s, e) {
|
|
@@ -10213,14 +10213,14 @@ function ec(s, e) {
|
|
|
10213
10213
|
return e + 5 < s.length;
|
|
10214
10214
|
}
|
|
10215
10215
|
function Xt(s, e) {
|
|
10216
|
-
return e + 1 < s.length &&
|
|
10216
|
+
return e + 1 < s.length && wn(s, e);
|
|
10217
10217
|
}
|
|
10218
10218
|
function tc(s, e) {
|
|
10219
|
-
return ec(s, e) &&
|
|
10219
|
+
return ec(s, e) && wn(s, e) && us(s, e) <= s.length - e;
|
|
10220
10220
|
}
|
|
10221
10221
|
function ic(s, e) {
|
|
10222
10222
|
if (Xt(s, e)) {
|
|
10223
|
-
const t =
|
|
10223
|
+
const t = kn(s, e);
|
|
10224
10224
|
if (e + t >= s.length)
|
|
10225
10225
|
return !1;
|
|
10226
10226
|
const i = us(s, e);
|
|
@@ -10231,7 +10231,7 @@ function ic(s, e) {
|
|
|
10231
10231
|
}
|
|
10232
10232
|
return !1;
|
|
10233
10233
|
}
|
|
10234
|
-
function
|
|
10234
|
+
function Pn(s, e, t, i, r) {
|
|
10235
10235
|
if (!s.samplerate) {
|
|
10236
10236
|
const n = Jl(e, t, i, r);
|
|
10237
10237
|
if (!n)
|
|
@@ -10239,11 +10239,11 @@ function On(s, e, t, i, r) {
|
|
|
10239
10239
|
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}`);
|
|
10240
10240
|
}
|
|
10241
10241
|
}
|
|
10242
|
-
function
|
|
10242
|
+
function On(s) {
|
|
10243
10243
|
return 1024 * 9e4 / s;
|
|
10244
10244
|
}
|
|
10245
10245
|
function sc(s, e) {
|
|
10246
|
-
const t =
|
|
10246
|
+
const t = kn(s, e);
|
|
10247
10247
|
if (e + t <= s.length) {
|
|
10248
10248
|
const i = us(s, e) - t;
|
|
10249
10249
|
if (i > 0)
|
|
@@ -10253,8 +10253,8 @@ function sc(s, e) {
|
|
|
10253
10253
|
};
|
|
10254
10254
|
}
|
|
10255
10255
|
}
|
|
10256
|
-
function
|
|
10257
|
-
const n =
|
|
10256
|
+
function Fn(s, e, t, i, r) {
|
|
10257
|
+
const n = On(s.samplerate), a = i + r * n, o = sc(e, t);
|
|
10258
10258
|
let l;
|
|
10259
10259
|
if (o) {
|
|
10260
10260
|
const {
|
|
@@ -10338,10 +10338,10 @@ const rc = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 3
|
|
|
10338
10338
|
4
|
|
10339
10339
|
// Layer1
|
|
10340
10340
|
];
|
|
10341
|
-
function
|
|
10341
|
+
function Mn(s, e, t, i, r) {
|
|
10342
10342
|
if (t + 24 > e.length)
|
|
10343
10343
|
return;
|
|
10344
|
-
const n =
|
|
10344
|
+
const n = Nn(e, t);
|
|
10345
10345
|
if (n && t + n.frameLength <= e.length) {
|
|
10346
10346
|
const a = n.samplesPerFrame * 9e4 / n.sampleRate, o = i + r * a, l = {
|
|
10347
10347
|
unit: e.subarray(t, t + n.frameLength),
|
|
@@ -10355,7 +10355,7 @@ function Nn(s, e, t, i, r) {
|
|
|
10355
10355
|
};
|
|
10356
10356
|
}
|
|
10357
10357
|
}
|
|
10358
|
-
function
|
|
10358
|
+
function Nn(s, e) {
|
|
10359
10359
|
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;
|
|
10360
10360
|
if (t !== 1 && r !== 0 && r !== 15 && n !== 3) {
|
|
10361
10361
|
const a = s[e + 2] >> 1 & 1, o = s[e + 3] >> 6, l = t === 3 ? 3 - i : i === 3 ? 3 : 4, c = rc[l * 14 + r - 1] * 1e3, h = nc[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + n], d = o === 3 ? 1 : 2, f = ac[t][i], m = oc[i], g = f * 8 * m, y = Math.floor(f * c / h + a) * m;
|
|
@@ -10374,19 +10374,19 @@ function Bn(s, e) {
|
|
|
10374
10374
|
function hs(s, e) {
|
|
10375
10375
|
return s[e] === 255 && (s[e + 1] & 224) === 224 && (s[e + 1] & 6) !== 0;
|
|
10376
10376
|
}
|
|
10377
|
-
function
|
|
10377
|
+
function Bn(s, e) {
|
|
10378
10378
|
return e + 1 < s.length && hs(s, e);
|
|
10379
10379
|
}
|
|
10380
10380
|
function lc(s, e) {
|
|
10381
10381
|
return hs(s, e) && 4 <= s.length - e;
|
|
10382
10382
|
}
|
|
10383
|
-
function
|
|
10383
|
+
function $n(s, e) {
|
|
10384
10384
|
if (e + 1 < s.length && hs(s, e)) {
|
|
10385
|
-
const i =
|
|
10385
|
+
const i = Nn(s, e);
|
|
10386
10386
|
let r = 4;
|
|
10387
10387
|
i != null && i.frameLength && (r = i.frameLength);
|
|
10388
10388
|
const n = e + r;
|
|
10389
|
-
return n === s.length ||
|
|
10389
|
+
return n === s.length || Bn(s, n);
|
|
10390
10390
|
}
|
|
10391
10391
|
return !1;
|
|
10392
10392
|
}
|
|
@@ -10415,7 +10415,7 @@ class cc extends cs {
|
|
|
10415
10415
|
return !1;
|
|
10416
10416
|
const t = xt(e, 0);
|
|
10417
10417
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
10418
|
-
if (
|
|
10418
|
+
if ($n(e, i))
|
|
10419
10419
|
return !1;
|
|
10420
10420
|
for (let r = e.length; i < r; i++)
|
|
10421
10421
|
if (ic(e, i))
|
|
@@ -10426,8 +10426,8 @@ class cc extends cs {
|
|
|
10426
10426
|
return tc(e, t);
|
|
10427
10427
|
}
|
|
10428
10428
|
appendFrame(e, t, i) {
|
|
10429
|
-
|
|
10430
|
-
const r =
|
|
10429
|
+
Pn(e, this.observer, t, i, e.manifestCodec);
|
|
10430
|
+
const r = Fn(e, t, i, this.basePTS, this.frameIndex);
|
|
10431
10431
|
if (r && r.missing === 0)
|
|
10432
10432
|
return r;
|
|
10433
10433
|
}
|
|
@@ -10443,7 +10443,7 @@ class hc {
|
|
|
10443
10443
|
const n = this.videoTrack = Pe("video", 1), a = this.audioTrack = Pe("audio", 1), o = this.txtTrack = Pe("text", 1);
|
|
10444
10444
|
if (this.id3Track = Pe("id3", 1), this.timeOffset = 0, !(e != null && e.byteLength))
|
|
10445
10445
|
return;
|
|
10446
|
-
const l =
|
|
10446
|
+
const l = gn(e);
|
|
10447
10447
|
if (l.video) {
|
|
10448
10448
|
const {
|
|
10449
10449
|
id: c,
|
|
@@ -10460,7 +10460,7 @@ class hc {
|
|
|
10460
10460
|
} = l.audio;
|
|
10461
10461
|
a.id = c, a.timescale = u, a.codec = h;
|
|
10462
10462
|
}
|
|
10463
|
-
o.id =
|
|
10463
|
+
o.id = dn.text, n.sampleDuration = 0, n.duration = a.duration = r;
|
|
10464
10464
|
}
|
|
10465
10465
|
resetContiguity() {
|
|
10466
10466
|
this.remainderData = null;
|
|
@@ -10527,7 +10527,7 @@ class hc {
|
|
|
10527
10527
|
destroy() {
|
|
10528
10528
|
}
|
|
10529
10529
|
}
|
|
10530
|
-
const
|
|
10530
|
+
const Un = (s, e) => {
|
|
10531
10531
|
let t = 0, i = 5;
|
|
10532
10532
|
e += i;
|
|
10533
10533
|
const r = new Uint32Array(1), n = new Uint32Array(1), a = new Uint8Array(1);
|
|
@@ -10561,7 +10561,7 @@ class dc extends cs {
|
|
|
10561
10561
|
return t + 64 < e.length;
|
|
10562
10562
|
}
|
|
10563
10563
|
appendFrame(e, t, i) {
|
|
10564
|
-
const r =
|
|
10564
|
+
const r = Gn(e, t, i, this.basePTS, this.frameIndex);
|
|
10565
10565
|
if (r !== -1)
|
|
10566
10566
|
return {
|
|
10567
10567
|
sample: e.samples[e.samples.length - 1],
|
|
@@ -10577,10 +10577,10 @@ class dc extends cs {
|
|
|
10577
10577
|
return !1;
|
|
10578
10578
|
const i = t.length;
|
|
10579
10579
|
return e[i] === 11 && e[i + 1] === 119 && ss(t) !== void 0 && // check the bsid to confirm ac-3
|
|
10580
|
-
|
|
10580
|
+
Un(e, i) < 16;
|
|
10581
10581
|
}
|
|
10582
10582
|
}
|
|
10583
|
-
function
|
|
10583
|
+
function Gn(s, e, t, i, r) {
|
|
10584
10584
|
if (t + 8 > e.length || e[t] !== 11 || e[t + 1] !== 119)
|
|
10585
10585
|
return -1;
|
|
10586
10586
|
const n = e[t + 4] >> 6;
|
|
@@ -10843,7 +10843,7 @@ class mc extends fc {
|
|
|
10843
10843
|
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;
|
|
10844
10844
|
break;
|
|
10845
10845
|
case 6: {
|
|
10846
|
-
l = !0,
|
|
10846
|
+
l = !0, yn(u.data, 1, i.pts, t.samples);
|
|
10847
10847
|
break;
|
|
10848
10848
|
}
|
|
10849
10849
|
case 7: {
|
|
@@ -10970,7 +10970,7 @@ class gc {
|
|
|
10970
10970
|
return e;
|
|
10971
10971
|
}
|
|
10972
10972
|
decryptAvcSample(e, t, i, r, n) {
|
|
10973
|
-
const a =
|
|
10973
|
+
const a = vn(n.data), o = this.getAvcEncryptedData(a);
|
|
10974
10974
|
this.decryptBuffer(o.buffer).then((l) => {
|
|
10975
10975
|
n.data = this.getAvcDecryptedUnit(a, l), this.decrypter.isSync() || this.decryptAvcSamples(e, t, i + 1, r);
|
|
10976
10976
|
});
|
|
@@ -11026,7 +11026,7 @@ class ze {
|
|
|
11026
11026
|
return {
|
|
11027
11027
|
container: e === "video" || e === "audio" ? "video/mp2t" : void 0,
|
|
11028
11028
|
type: e,
|
|
11029
|
-
id:
|
|
11029
|
+
id: dn[e],
|
|
11030
11030
|
pid: -1,
|
|
11031
11031
|
inputTimeScale: 9e4,
|
|
11032
11032
|
sequenceNumber: 0,
|
|
@@ -11239,12 +11239,12 @@ class ze {
|
|
|
11239
11239
|
}), !d)
|
|
11240
11240
|
return;
|
|
11241
11241
|
}
|
|
11242
|
-
|
|
11242
|
+
Pn(e, this.observer, n, a, this.audioCodec);
|
|
11243
11243
|
let l;
|
|
11244
11244
|
if (t.pts !== void 0)
|
|
11245
11245
|
l = t.pts;
|
|
11246
11246
|
else if (r) {
|
|
11247
|
-
const h =
|
|
11247
|
+
const h = On(e.samplerate);
|
|
11248
11248
|
l = r.sample.pts + h;
|
|
11249
11249
|
} else {
|
|
11250
11250
|
S.warn("[tsdemuxer]: AAC PES unknown PTS");
|
|
@@ -11252,7 +11252,7 @@ class ze {
|
|
|
11252
11252
|
}
|
|
11253
11253
|
let c = 0, u;
|
|
11254
11254
|
for (; a < o; )
|
|
11255
|
-
if (u =
|
|
11255
|
+
if (u = Fn(e, n, a, l, c), a += u.length, u.missing) {
|
|
11256
11256
|
this.aacOverFlow = u;
|
|
11257
11257
|
break;
|
|
11258
11258
|
} else
|
|
@@ -11268,8 +11268,8 @@ class ze {
|
|
|
11268
11268
|
return;
|
|
11269
11269
|
}
|
|
11270
11270
|
for (; a < r; )
|
|
11271
|
-
if (
|
|
11272
|
-
const l =
|
|
11271
|
+
if (Bn(i, a)) {
|
|
11272
|
+
const l = Mn(e, i, a, o, n);
|
|
11273
11273
|
if (l)
|
|
11274
11274
|
a += l.length, n++;
|
|
11275
11275
|
else
|
|
@@ -11286,7 +11286,7 @@ class ze {
|
|
|
11286
11286
|
}
|
|
11287
11287
|
const n = i.length;
|
|
11288
11288
|
let a = 0, o = 0, l;
|
|
11289
|
-
for (; o < n && (l =
|
|
11289
|
+
for (; o < n && (l = Gn(e, i, o, r, a++)) > 0; )
|
|
11290
11290
|
o += l;
|
|
11291
11291
|
}
|
|
11292
11292
|
}
|
|
@@ -11446,10 +11446,10 @@ class vc extends cs {
|
|
|
11446
11446
|
const t = xt(e, 0);
|
|
11447
11447
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
11448
11448
|
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)
|
|
11449
|
-
|
|
11449
|
+
Un(e, i) <= 16)
|
|
11450
11450
|
return !1;
|
|
11451
11451
|
for (let r = e.length; i < r; i++)
|
|
11452
|
-
if (
|
|
11452
|
+
if ($n(e, i))
|
|
11453
11453
|
return S.log("MPEG Audio sync word found !"), !0;
|
|
11454
11454
|
return !1;
|
|
11455
11455
|
}
|
|
@@ -11458,7 +11458,7 @@ class vc extends cs {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
appendFrame(e, t, i) {
|
|
11460
11460
|
if (this.basePTS !== null)
|
|
11461
|
-
return
|
|
11461
|
+
return Mn(e, t, i, this.basePTS, this.frameIndex);
|
|
11462
11462
|
}
|
|
11463
11463
|
}
|
|
11464
11464
|
class Qs {
|
|
@@ -12491,7 +12491,7 @@ A.SMHD = void 0;
|
|
|
12491
12491
|
A.STSD = void 0;
|
|
12492
12492
|
A.FTYP = void 0;
|
|
12493
12493
|
A.DINF = void 0;
|
|
12494
|
-
const
|
|
12494
|
+
const Hn = 9e4;
|
|
12495
12495
|
function ds(s, e, t = 1, i = !1) {
|
|
12496
12496
|
const r = s * e * t;
|
|
12497
12497
|
return i ? Math.round(r) : r;
|
|
@@ -12500,10 +12500,10 @@ function xc(s, e, t = 1, i = !1) {
|
|
|
12500
12500
|
return ds(s, e, 1 / t, i);
|
|
12501
12501
|
}
|
|
12502
12502
|
function mt(s, e = !1) {
|
|
12503
|
-
return ds(s, 1e3, 1 /
|
|
12503
|
+
return ds(s, 1e3, 1 / Hn, e);
|
|
12504
12504
|
}
|
|
12505
12505
|
function Tc(s, e = 1) {
|
|
12506
|
-
return ds(s,
|
|
12506
|
+
return ds(s, Hn, 1 / e);
|
|
12507
12507
|
}
|
|
12508
12508
|
const Ec = 10 * 1e3, Js = 1024, Sc = 1152, bc = 1536;
|
|
12509
12509
|
let st = null, yi = null;
|
|
@@ -12572,7 +12572,7 @@ class Mt {
|
|
|
12572
12572
|
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
|
|
12573
12573
|
}
|
|
12574
12574
|
}
|
|
12575
|
-
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f =
|
|
12575
|
+
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f = Vn(i, n, this._initPTS, this._initDTS)), r.samples.length && (d = Kn(r, n, this._initPTS))), {
|
|
12576
12576
|
audio: u,
|
|
12577
12577
|
video: c,
|
|
12578
12578
|
initSegment: h,
|
|
@@ -12883,7 +12883,7 @@ function Ac(s) {
|
|
|
12883
12883
|
return e;
|
|
12884
12884
|
return -1;
|
|
12885
12885
|
}
|
|
12886
|
-
function
|
|
12886
|
+
function Vn(s, e, t, i) {
|
|
12887
12887
|
const r = s.samples.length;
|
|
12888
12888
|
if (!r)
|
|
12889
12889
|
return;
|
|
@@ -12897,7 +12897,7 @@ function Kn(s, e, t, i) {
|
|
|
12897
12897
|
samples: a
|
|
12898
12898
|
};
|
|
12899
12899
|
}
|
|
12900
|
-
function
|
|
12900
|
+
function Kn(s, e, t) {
|
|
12901
12901
|
const i = s.samples.length;
|
|
12902
12902
|
if (!i)
|
|
12903
12903
|
return;
|
|
@@ -12948,7 +12948,7 @@ class Lc {
|
|
|
12948
12948
|
this.initTracks = void 0, this.initData = void 0;
|
|
12949
12949
|
return;
|
|
12950
12950
|
}
|
|
12951
|
-
const r = this.initData =
|
|
12951
|
+
const r = this.initData = gn(e);
|
|
12952
12952
|
r.audio && (t = tr(r.audio, te.AUDIO)), r.video && (i = tr(r.video, te.VIDEO));
|
|
12953
12953
|
const n = {};
|
|
12954
12954
|
r.audio && r.video ? n.audiovideo = {
|
|
@@ -13015,7 +13015,7 @@ class Lc {
|
|
|
13015
13015
|
nb: 1,
|
|
13016
13016
|
dropped: 0
|
|
13017
13017
|
};
|
|
13018
|
-
return h.audio = R.type === "audio" ? R : void 0, h.video = R.type !== "audio" ? R : void 0, h.initSegment = f, h.id3 =
|
|
13018
|
+
return h.audio = R.type === "audio" ? R : void 0, h.video = R.type !== "audio" ? R : void 0, h.initSegment = f, h.id3 = Vn(i, n, c, c), r.samples.length && (h.text = Kn(r, n, c)), h;
|
|
13019
13019
|
}
|
|
13020
13020
|
}
|
|
13021
13021
|
function Rc(s, e, t, i) {
|
|
@@ -13259,7 +13259,7 @@ class Dc {
|
|
|
13259
13259
|
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;
|
|
13260
13260
|
}
|
|
13261
13261
|
}
|
|
13262
|
-
var
|
|
13262
|
+
var Wn = { exports: {} };
|
|
13263
13263
|
(function(s) {
|
|
13264
13264
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
13265
13265
|
function i() {
|
|
@@ -13369,9 +13369,9 @@ var zn = { exports: {} };
|
|
|
13369
13369
|
var u;
|
|
13370
13370
|
return c ? (u = t ? t + c : c, this._events[u] && a(this, u)) : (this._events = new i(), this._eventsCount = 0), this;
|
|
13371
13371
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = t, o.EventEmitter = o, s.exports = o;
|
|
13372
|
-
})(
|
|
13373
|
-
var Ic =
|
|
13374
|
-
class
|
|
13372
|
+
})(Wn);
|
|
13373
|
+
var Ic = Wn.exports, fs = /* @__PURE__ */ Ja(Ic);
|
|
13374
|
+
class zn {
|
|
13375
13375
|
constructor(e, t, i, r) {
|
|
13376
13376
|
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;
|
|
13377
13377
|
const n = e.config;
|
|
@@ -13545,7 +13545,7 @@ class Yn {
|
|
|
13545
13545
|
e.chunkMeta.transmuxing.end = self.performance.now(), this.onTransmuxComplete(e);
|
|
13546
13546
|
}
|
|
13547
13547
|
}
|
|
13548
|
-
function
|
|
13548
|
+
function Yn(s, e) {
|
|
13549
13549
|
if (s.length !== e.length)
|
|
13550
13550
|
return !1;
|
|
13551
13551
|
for (let t = 0; t < s.length; t++)
|
|
@@ -13813,7 +13813,7 @@ class wc extends ls {
|
|
|
13813
13813
|
}
|
|
13814
13814
|
const h = a.defaultAudioCodec || c.audioCodec || "mp4a.40.2";
|
|
13815
13815
|
let d = this.transmuxer;
|
|
13816
|
-
d || (d = this.transmuxer = new
|
|
13816
|
+
d || (d = this.transmuxer = new zn(this.hls, j.AUDIO, this._handleTransmuxComplete.bind(this), this._handleTransmuxerFlush.bind(this)));
|
|
13817
13817
|
const f = this.initPTS[i.cc], m = (t = i.initSegment) == null ? void 0 : t.data;
|
|
13818
13818
|
if (f !== void 0) {
|
|
13819
13819
|
const y = r ? r.index : -1, v = y !== -1, T = new as(i.level, i.sn, i.stats.chunkCount, n.byteLength, y, v);
|
|
@@ -13825,7 +13825,7 @@ class wc extends ls {
|
|
|
13825
13825
|
} = this.waitingData = this.waitingData || {
|
|
13826
13826
|
frag: i,
|
|
13827
13827
|
part: r,
|
|
13828
|
-
cache: new
|
|
13828
|
+
cache: new In(),
|
|
13829
13829
|
complete: !1
|
|
13830
13830
|
};
|
|
13831
13831
|
g.push(new Uint8Array(n)), this.waitingVideoCC = this.videoTrackCC, this.state = N.WAITING_INIT_PTS;
|
|
@@ -14342,7 +14342,7 @@ class Pc extends ls {
|
|
|
14342
14342
|
onSubtitleTracksUpdated(e, {
|
|
14343
14343
|
subtitleTracks: t
|
|
14344
14344
|
}) {
|
|
14345
|
-
if (this.levels &&
|
|
14345
|
+
if (this.levels && Yn(this.levels, t)) {
|
|
14346
14346
|
this.levels = t.map((i) => new ct(i));
|
|
14347
14347
|
return;
|
|
14348
14348
|
}
|
|
@@ -15593,7 +15593,7 @@ const or = {
|
|
|
15593
15593
|
// Box drawings heavy up and right
|
|
15594
15594
|
207: 9499
|
|
15595
15595
|
// Box drawings heavy up and left
|
|
15596
|
-
},
|
|
15596
|
+
}, jn = function(e) {
|
|
15597
15597
|
let t = e;
|
|
15598
15598
|
return or.hasOwnProperty(e) && (t = or[e]), String.fromCharCode(t);
|
|
15599
15599
|
}, _e = 15, Ue = 100, $c = {
|
|
@@ -15648,7 +15648,7 @@ const qe = function(e) {
|
|
|
15648
15648
|
t.push(e[i].toString(16));
|
|
15649
15649
|
return t;
|
|
15650
15650
|
};
|
|
15651
|
-
class
|
|
15651
|
+
class qn {
|
|
15652
15652
|
constructor() {
|
|
15653
15653
|
this.foreground = "white", this.underline = !1, this.italics = !1, this.background = "black", this.flash = !1;
|
|
15654
15654
|
}
|
|
@@ -15677,7 +15677,7 @@ class Xn {
|
|
|
15677
15677
|
}
|
|
15678
15678
|
class Wc {
|
|
15679
15679
|
constructor() {
|
|
15680
|
-
this.uchar = " ", this.penState = new
|
|
15680
|
+
this.uchar = " ", this.penState = new qn();
|
|
15681
15681
|
}
|
|
15682
15682
|
reset() {
|
|
15683
15683
|
this.uchar = " ", this.penState.reset();
|
|
@@ -15700,7 +15700,7 @@ class Wc {
|
|
|
15700
15700
|
}
|
|
15701
15701
|
class zc {
|
|
15702
15702
|
constructor(e) {
|
|
15703
|
-
this.chars = [], this.pos = 0, this.currPenState = new
|
|
15703
|
+
this.chars = [], this.pos = 0, this.currPenState = new qn(), this.cueStartTime = null, this.logger = void 0;
|
|
15704
15704
|
for (let t = 0; t < Ue; t++)
|
|
15705
15705
|
this.chars.push(new Wc());
|
|
15706
15706
|
this.logger = e;
|
|
@@ -15748,7 +15748,7 @@ class zc {
|
|
|
15748
15748
|
}
|
|
15749
15749
|
insertChar(e) {
|
|
15750
15750
|
e >= 144 && this.backSpace();
|
|
15751
|
-
const t =
|
|
15751
|
+
const t = jn(e);
|
|
15752
15752
|
if (this.pos >= Ue) {
|
|
15753
15753
|
this.logger.log(0, () => "Cannot insert " + e.toString(16) + " (" + t + ") at position " + this.pos + ". Skipping it!");
|
|
15754
15754
|
return;
|
|
@@ -16090,7 +16090,7 @@ class cr {
|
|
|
16090
16090
|
let i, r = null, n = null;
|
|
16091
16091
|
if (e >= 25 ? (i = 2, n = e - 8) : (i = 1, n = e), n >= 17 && n <= 19) {
|
|
16092
16092
|
let a;
|
|
16093
|
-
n === 17 ? a = t + 80 : n === 18 ? a = t + 112 : a = t + 144, this.logger.log(2, "Special char '" +
|
|
16093
|
+
n === 17 ? a = t + 80 : n === 18 ? a = t + 112 : a = t + 144, this.logger.log(2, "Special char '" + jn(a) + "' in channel " + i), r = [a];
|
|
16094
16094
|
} else
|
|
16095
16095
|
e >= 32 && e <= 127 && (r = t === 0 ? [e] : [e, t]);
|
|
16096
16096
|
if (r) {
|
|
@@ -16326,7 +16326,7 @@ class Yc {
|
|
|
16326
16326
|
return decodeURIComponent(encodeURIComponent(e));
|
|
16327
16327
|
}
|
|
16328
16328
|
}
|
|
16329
|
-
function
|
|
16329
|
+
function Xn(s) {
|
|
16330
16330
|
function e(i, r, n, a) {
|
|
16331
16331
|
return (i | 0) * 3600 + (r | 0) * 60 + (n | 0) + parseFloat(a || 0);
|
|
16332
16332
|
}
|
|
@@ -16375,7 +16375,7 @@ class jc {
|
|
|
16375
16375
|
return !1;
|
|
16376
16376
|
}
|
|
16377
16377
|
}
|
|
16378
|
-
function
|
|
16378
|
+
function Zn(s, e, t, i) {
|
|
16379
16379
|
const r = i ? s.split(i) : [s];
|
|
16380
16380
|
for (const n in r) {
|
|
16381
16381
|
if (typeof r[n] != "string")
|
|
@@ -16391,14 +16391,14 @@ const Hi = new ms(0, 0, ""), Dt = Hi.align === "middle" ? "middle" : "center";
|
|
|
16391
16391
|
function qc(s, e, t) {
|
|
16392
16392
|
const i = s;
|
|
16393
16393
|
function r() {
|
|
16394
|
-
const o =
|
|
16394
|
+
const o = Xn(s);
|
|
16395
16395
|
if (o === null)
|
|
16396
16396
|
throw new Error("Malformed timestamp: " + i);
|
|
16397
16397
|
return s = s.replace(/^[^\sa-zA-Z-]+/, ""), o;
|
|
16398
16398
|
}
|
|
16399
16399
|
function n(o, l) {
|
|
16400
16400
|
const c = new jc();
|
|
16401
|
-
|
|
16401
|
+
Zn(o, function(d, f) {
|
|
16402
16402
|
let m;
|
|
16403
16403
|
switch (d) {
|
|
16404
16404
|
case "region":
|
|
@@ -16437,7 +16437,7 @@ function qc(s, e, t) {
|
|
|
16437
16437
|
throw new Error("Malformed time stamp (time stamps must be separated by '-->'): " + i);
|
|
16438
16438
|
s = s.slice(3), a(), e.endTime = r(), a(), n(s, e);
|
|
16439
16439
|
}
|
|
16440
|
-
function
|
|
16440
|
+
function Qn(s) {
|
|
16441
16441
|
return s.replace(/<br(?: \/)?>/gi, `
|
|
16442
16442
|
`);
|
|
16443
16443
|
}
|
|
@@ -16452,7 +16452,7 @@ class Xc {
|
|
|
16452
16452
|
}));
|
|
16453
16453
|
function i() {
|
|
16454
16454
|
let n = t.buffer, a = 0;
|
|
16455
|
-
for (n =
|
|
16455
|
+
for (n = Qn(n); a < n.length && n[a] !== "\r" && n[a] !== `
|
|
16456
16456
|
`; )
|
|
16457
16457
|
++a;
|
|
16458
16458
|
const o = n.slice(0, a);
|
|
@@ -16460,7 +16460,7 @@ class Xc {
|
|
|
16460
16460
|
` && ++a, t.buffer = n.slice(a), o;
|
|
16461
16461
|
}
|
|
16462
16462
|
function r(n) {
|
|
16463
|
-
|
|
16463
|
+
Zn(n, function(a, o) {
|
|
16464
16464
|
}, /:/);
|
|
16465
16465
|
}
|
|
16466
16466
|
try {
|
|
@@ -16619,7 +16619,7 @@ function eu(s, e, t, i, r, n, a) {
|
|
|
16619
16619
|
`);
|
|
16620
16620
|
}), o.flush();
|
|
16621
16621
|
}
|
|
16622
|
-
const Si = "stpp.ttml.im1t",
|
|
16622
|
+
const Si = "stpp.ttml.im1t", Jn = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, ea = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/, tu = {
|
|
16623
16623
|
left: "start",
|
|
16624
16624
|
center: "center",
|
|
16625
16625
|
right: "end",
|
|
@@ -16650,7 +16650,7 @@ function iu(s, e) {
|
|
|
16650
16650
|
tickRate: 0
|
|
16651
16651
|
}, a = Object.keys(n).reduce((h, d) => (h[d] = r.getAttribute(`ttp:${d}`) || n[d], h), {}), o = r.getAttribute("xml:space") !== "preserve", l = fr(bi(r, "styling", "style")), c = fr(bi(r, "layout", "region")), u = bi(r, "body", "[begin]");
|
|
16652
16652
|
return [].map.call(u, (h) => {
|
|
16653
|
-
const d =
|
|
16653
|
+
const d = ta(h, o);
|
|
16654
16654
|
if (!d || !h.hasAttribute("begin"))
|
|
16655
16655
|
return null;
|
|
16656
16656
|
const f = Li(h.getAttribute("begin"), a), m = Li(h.getAttribute("dur"), a);
|
|
@@ -16684,11 +16684,11 @@ function fr(s) {
|
|
|
16684
16684
|
return i && (e[i] = t), e;
|
|
16685
16685
|
}, {});
|
|
16686
16686
|
}
|
|
16687
|
-
function
|
|
16687
|
+
function ta(s, e) {
|
|
16688
16688
|
return [].slice.call(s.childNodes).reduce((t, i, r) => {
|
|
16689
16689
|
var n;
|
|
16690
16690
|
return i.nodeName === "br" && r ? t + `
|
|
16691
|
-
` : (n = i.childNodes) != null && n.length ?
|
|
16691
|
+
` : (n = i.childNodes) != null && n.length ? ta(i, e) : e ? t + i.textContent.trim().replace(/\s+/g, " ") : t + i.textContent;
|
|
16692
16692
|
}, "");
|
|
16693
16693
|
}
|
|
16694
16694
|
function su(s, e, t) {
|
|
@@ -16722,15 +16722,15 @@ function mr(s) {
|
|
|
16722
16722
|
function Li(s, e) {
|
|
16723
16723
|
if (!s)
|
|
16724
16724
|
return null;
|
|
16725
|
-
let t =
|
|
16726
|
-
return t === null && (
|
|
16725
|
+
let t = Xn(s);
|
|
16726
|
+
return t === null && (Jn.test(s) ? t = ru(s, e) : ea.test(s) && (t = nu(s, e))), t;
|
|
16727
16727
|
}
|
|
16728
16728
|
function ru(s, e) {
|
|
16729
|
-
const t =
|
|
16729
|
+
const t = Jn.exec(s), i = (t[4] | 0) + (t[5] | 0) / e.subFrameRate;
|
|
16730
16730
|
return (t[1] | 0) * 3600 + (t[2] | 0) * 60 + (t[3] | 0) + i / e.frameRate;
|
|
16731
16731
|
}
|
|
16732
16732
|
function nu(s, e) {
|
|
16733
|
-
const t =
|
|
16733
|
+
const t = ea.exec(s), i = Number(t[1]);
|
|
16734
16734
|
switch (t[2]) {
|
|
16735
16735
|
case "h":
|
|
16736
16736
|
return i * 3600;
|
|
@@ -16845,7 +16845,7 @@ class au {
|
|
|
16845
16845
|
languageCode: a
|
|
16846
16846
|
} = t[e], o = this.getExistingTrack(n, a);
|
|
16847
16847
|
if (o)
|
|
16848
|
-
i[e] = o, nt(i[e]),
|
|
16848
|
+
i[e] = o, nt(i[e]), En(i[e], r);
|
|
16849
16849
|
else {
|
|
16850
16850
|
const l = this.createTextTrack("captions", n, a);
|
|
16851
16851
|
l && (l[e] = !0, i[e] = l);
|
|
@@ -16901,7 +16901,7 @@ class au {
|
|
|
16901
16901
|
onSubtitleTracksUpdated(e, t) {
|
|
16902
16902
|
const i = t.subtitleTracks || [], r = i.some((n) => n.textCodec === Si);
|
|
16903
16903
|
if (this.config.enableWebVTT || r && this.config.enableIMSC1) {
|
|
16904
|
-
if (
|
|
16904
|
+
if (Yn(this.tracks, i)) {
|
|
16905
16905
|
this.tracks = i;
|
|
16906
16906
|
return;
|
|
16907
16907
|
}
|
|
@@ -16921,7 +16921,7 @@ class au {
|
|
|
16921
16921
|
if (u)
|
|
16922
16922
|
nt(u);
|
|
16923
16923
|
else {
|
|
16924
|
-
const h =
|
|
16924
|
+
const h = ia(l);
|
|
16925
16925
|
u = this.createTextTrack(h, l.name, l.lang), u && (u.mode = "disabled");
|
|
16926
16926
|
}
|
|
16927
16927
|
u && this.textTracks.push(u);
|
|
@@ -17053,7 +17053,7 @@ class au {
|
|
|
17053
17053
|
const r = this.textTracks[t];
|
|
17054
17054
|
if (!r || r.mode === "disabled")
|
|
17055
17055
|
return;
|
|
17056
|
-
e.forEach((n) =>
|
|
17056
|
+
e.forEach((n) => Sn(r, n));
|
|
17057
17057
|
} else {
|
|
17058
17058
|
const r = this.tracks[t];
|
|
17059
17059
|
if (!r)
|
|
@@ -17135,11 +17135,11 @@ class au {
|
|
|
17135
17135
|
return t;
|
|
17136
17136
|
}
|
|
17137
17137
|
}
|
|
17138
|
-
function
|
|
17138
|
+
function ia(s) {
|
|
17139
17139
|
return s.characteristics && /transcribes-spoken-dialog/gi.test(s.characteristics) && /describes-music-and-sound/gi.test(s.characteristics) ? "captions" : "subtitles";
|
|
17140
17140
|
}
|
|
17141
17141
|
function gr(s, e) {
|
|
17142
|
-
return !!s && s.kind ===
|
|
17142
|
+
return !!s && s.kind === ia(e) && Gi(e, s);
|
|
17143
17143
|
}
|
|
17144
17144
|
function ou(s, e, t, i) {
|
|
17145
17145
|
return Math.min(e, i) - Math.max(s, t);
|
|
@@ -17393,7 +17393,7 @@ class ot {
|
|
|
17393
17393
|
} = this.config;
|
|
17394
17394
|
if (typeof i != "function") {
|
|
17395
17395
|
let r = `Configured requestMediaKeySystemAccess is not a function ${i}`;
|
|
17396
|
-
return
|
|
17396
|
+
return ln === null && self.location.protocol === "http:" && (r = `navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`), Promise.reject(new Error(r));
|
|
17397
17397
|
}
|
|
17398
17398
|
return i(e, t);
|
|
17399
17399
|
}
|
|
@@ -17528,7 +17528,7 @@ class ot {
|
|
|
17528
17528
|
if (t === "sinf" && this.config.drmSystems[re.FAIRPLAY]) {
|
|
17529
17529
|
const u = le(new Uint8Array(i));
|
|
17530
17530
|
try {
|
|
17531
|
-
const h = ts(JSON.parse(u).sinf), d =
|
|
17531
|
+
const h = ts(JSON.parse(u).sinf), d = pn(new Uint8Array(h));
|
|
17532
17532
|
if (!d)
|
|
17533
17533
|
return;
|
|
17534
17534
|
r = d.subarray(8, 24), n = re.FAIRPLAY;
|
|
@@ -17540,7 +17540,7 @@ class ot {
|
|
|
17540
17540
|
const u = Ko(i);
|
|
17541
17541
|
if (u === null)
|
|
17542
17542
|
return;
|
|
17543
|
-
u.version === 0 && u.systemId ===
|
|
17543
|
+
u.version === 0 && u.systemId === on.WIDEVINE && u.data && (r = u.data.subarray(8, 24)), n = vo(u.systemId);
|
|
17544
17544
|
}
|
|
17545
17545
|
if (!n || !r)
|
|
17546
17546
|
return;
|
|
@@ -17897,7 +17897,7 @@ class ht {
|
|
|
17897
17897
|
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;
|
|
17898
17898
|
}
|
|
17899
17899
|
}
|
|
17900
|
-
class
|
|
17900
|
+
class sa {
|
|
17901
17901
|
constructor(e) {
|
|
17902
17902
|
this.description = void 0, this.description = e;
|
|
17903
17903
|
}
|
|
@@ -17932,17 +17932,17 @@ function bu(s) {
|
|
|
17932
17932
|
throw Be(s, mu);
|
|
17933
17933
|
return `:${Su(s)}:`;
|
|
17934
17934
|
}
|
|
17935
|
-
function
|
|
17935
|
+
function ra(s) {
|
|
17936
17936
|
if (yu(s))
|
|
17937
17937
|
throw Be(s, pu);
|
|
17938
17938
|
return s.toString();
|
|
17939
17939
|
}
|
|
17940
17940
|
function Au(s) {
|
|
17941
|
-
return `@${
|
|
17941
|
+
return `@${ra(s.getTime() / 1e3)}`;
|
|
17942
17942
|
}
|
|
17943
|
-
function
|
|
17943
|
+
function na(s, e) {
|
|
17944
17944
|
if (s < 0)
|
|
17945
|
-
return -
|
|
17945
|
+
return -na(-s, e);
|
|
17946
17946
|
const t = Math.pow(10, e);
|
|
17947
17947
|
if (Math.abs(s * t % 1 - 0.5) < Number.EPSILON) {
|
|
17948
17948
|
const r = Math.floor(s * t);
|
|
@@ -17951,7 +17951,7 @@ function aa(s, e) {
|
|
|
17951
17951
|
return Math.round(s * t) / t;
|
|
17952
17952
|
}
|
|
17953
17953
|
function Lu(s) {
|
|
17954
|
-
const e =
|
|
17954
|
+
const e = na(s, 3);
|
|
17955
17955
|
if (Math.floor(Math.abs(e)).toString().length > 12)
|
|
17956
17956
|
throw Be(s, gu);
|
|
17957
17957
|
const t = e.toString();
|
|
@@ -17977,7 +17977,7 @@ function Ki(s) {
|
|
|
17977
17977
|
case "number":
|
|
17978
17978
|
if (!W(s))
|
|
17979
17979
|
throw Be(s, yr);
|
|
17980
|
-
return Number.isInteger(s) ?
|
|
17980
|
+
return Number.isInteger(s) ? ra(s) : Lu(s);
|
|
17981
17981
|
case "string":
|
|
17982
17982
|
return Cu(s);
|
|
17983
17983
|
case "symbol":
|
|
@@ -17989,7 +17989,7 @@ function Ki(s) {
|
|
|
17989
17989
|
return Au(s);
|
|
17990
17990
|
if (s instanceof Uint8Array)
|
|
17991
17991
|
return bu(s);
|
|
17992
|
-
if (s instanceof
|
|
17992
|
+
if (s instanceof sa)
|
|
17993
17993
|
return vr(s);
|
|
17994
17994
|
default:
|
|
17995
17995
|
throw Be(s, yr);
|
|
@@ -18003,11 +18003,11 @@ function Wi(s) {
|
|
|
18003
18003
|
function ys(s) {
|
|
18004
18004
|
return s == null ? "" : Object.entries(s).map(([e, t]) => t === !0 ? `;${Wi(e)}` : `;${Wi(e)}=${Ki(t)}`).join("");
|
|
18005
18005
|
}
|
|
18006
|
-
function
|
|
18006
|
+
function aa(s) {
|
|
18007
18007
|
return s instanceof ht ? `${Ki(s.value)}${ys(s.params)}` : Ki(s);
|
|
18008
18008
|
}
|
|
18009
18009
|
function Du(s) {
|
|
18010
|
-
return `(${s.value.map(
|
|
18010
|
+
return `(${s.value.map(aa).join(" ")})${ys(s.params)}`;
|
|
18011
18011
|
}
|
|
18012
18012
|
function Iu(s, e = {
|
|
18013
18013
|
whitespace: !0
|
|
@@ -18018,7 +18018,7 @@ function Iu(s, e = {
|
|
|
18018
18018
|
return Array.from(t).map(([r, n]) => {
|
|
18019
18019
|
n instanceof ht || (n = new ht(n));
|
|
18020
18020
|
let a = Wi(r);
|
|
18021
|
-
return n.value === !0 ? a += ys(n.params) : (a += "=", Array.isArray(n.value) ? a += Du(n) : a +=
|
|
18021
|
+
return n.value === !0 ? a += ys(n.params) : (a += "=", Array.isArray(n.value) ? a += Du(n) : a += aa(n)), a;
|
|
18022
18022
|
}).join(`,${i}`);
|
|
18023
18023
|
}
|
|
18024
18024
|
function wu(s, e) {
|
|
@@ -18096,10 +18096,10 @@ function Bu(s, e) {
|
|
|
18096
18096
|
return;
|
|
18097
18097
|
let o = s[a];
|
|
18098
18098
|
const l = r[a];
|
|
18099
|
-
l && (o = l(o, e)), !(a === "v" && o === 1) && (a == "pr" && o === 1 || Pu(o) && (ku(a) && typeof o == "string" && (o = new
|
|
18099
|
+
l && (o = l(o, e)), !(a === "v" && o === 1) && (a == "pr" && o === 1 || Pu(o) && (ku(a) && typeof o == "string" && (o = new sa(o)), t[a] = o));
|
|
18100
18100
|
}), t;
|
|
18101
18101
|
}
|
|
18102
|
-
function
|
|
18102
|
+
function oa(s, e = {}) {
|
|
18103
18103
|
return s ? wu(Bu(s, e), oe({
|
|
18104
18104
|
whitespace: !1
|
|
18105
18105
|
}, e)) : "";
|
|
@@ -18112,7 +18112,7 @@ function $u(s, e = {}) {
|
|
|
18112
18112
|
const [c, u] = a, h = ((o = i.find((d) => d[1].includes(c))) == null ? void 0 : o[0]) || Ze.REQUEST;
|
|
18113
18113
|
return (l = n[h]) != null || (n[h] = {}), n[h][c] = u, n;
|
|
18114
18114
|
}, {});
|
|
18115
|
-
return Object.entries(r).reduce((n, [a, o]) => (n[a] =
|
|
18115
|
+
return Object.entries(r).reduce((n, [a, o]) => (n[a] = oa(o, e), n), {});
|
|
18116
18116
|
}
|
|
18117
18117
|
function Uu(s, e, t) {
|
|
18118
18118
|
return oe(s, $u(e, t));
|
|
@@ -18121,7 +18121,7 @@ const Gu = "CMCD";
|
|
|
18121
18121
|
function Hu(s, e = {}) {
|
|
18122
18122
|
if (!s)
|
|
18123
18123
|
return "";
|
|
18124
|
-
const t =
|
|
18124
|
+
const t = oa(s, e);
|
|
18125
18125
|
return `${Gu}=${encodeURIComponent(t)}`;
|
|
18126
18126
|
}
|
|
18127
18127
|
const xr = /CMCD=[^&#]+/;
|
|
@@ -18404,7 +18404,7 @@ class zu {
|
|
|
18404
18404
|
return;
|
|
18405
18405
|
const o = this.hls.nextLoadLevel, l = this.hls.levels[o];
|
|
18406
18406
|
if (t = this.getLevelsForPathway(a), t.length > 0) {
|
|
18407
|
-
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a,
|
|
18407
|
+
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a, Rn(t), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
18408
18408
|
levels: t
|
|
18409
18409
|
});
|
|
18410
18410
|
const c = this.hls.levels[o];
|
|
@@ -18438,7 +18438,7 @@ class zu {
|
|
|
18438
18438
|
h["PATHWAY-ID"] = a;
|
|
18439
18439
|
const d = h.AUDIO && `${h.AUDIO}_clone_${a}`, f = h.SUBTITLES && `${h.SUBTITLES}_clone_${a}`;
|
|
18440
18440
|
d && (i[h.AUDIO] = d, h.AUDIO = d), f && (r[h.SUBTITLES] = f, h.SUBTITLES = f);
|
|
18441
|
-
const m =
|
|
18441
|
+
const m = la(u.uri, h["STABLE-VARIANT-ID"], "PER-VARIANT-URIS", l), g = new ct({
|
|
18442
18442
|
attrs: h,
|
|
18443
18443
|
audioCodec: u.audioCodec,
|
|
18444
18444
|
bitrate: u.bitrate,
|
|
@@ -18549,12 +18549,12 @@ function Tr(s, e, t, i) {
|
|
|
18549
18549
|
s && Object.keys(e).forEach((r) => {
|
|
18550
18550
|
const n = s.filter((a) => a.groupId === r).map((a) => {
|
|
18551
18551
|
const o = oe({}, a);
|
|
18552
|
-
return o.details = void 0, o.attrs = new ne(o.attrs), o.url = o.attrs.URI =
|
|
18552
|
+
return o.details = void 0, o.attrs = new ne(o.attrs), o.url = o.attrs.URI = la(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;
|
|
18553
18553
|
});
|
|
18554
18554
|
s.push(...n);
|
|
18555
18555
|
});
|
|
18556
18556
|
}
|
|
18557
|
-
function
|
|
18557
|
+
function la(s, e, t, i) {
|
|
18558
18558
|
const {
|
|
18559
18559
|
HOST: r,
|
|
18560
18560
|
PARAMS: n,
|
|
@@ -18568,7 +18568,7 @@ function ca(s, e, t, i) {
|
|
|
18568
18568
|
}), l.href;
|
|
18569
18569
|
}
|
|
18570
18570
|
const Yu = /^age:\s*[\d.]+\s*$/im;
|
|
18571
|
-
class
|
|
18571
|
+
class ca {
|
|
18572
18572
|
constructor(e) {
|
|
18573
18573
|
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;
|
|
18574
18574
|
}
|
|
@@ -18780,7 +18780,7 @@ class Er {
|
|
|
18780
18780
|
return this.response ? this.response.headers.get(e) : null;
|
|
18781
18781
|
}
|
|
18782
18782
|
loadProgressively(e, t, i, r = 0, n) {
|
|
18783
|
-
const a = new
|
|
18783
|
+
const a = new In(), o = e.body.getReader(), l = () => o.read().then((c) => {
|
|
18784
18784
|
if (c.done)
|
|
18785
18785
|
return a.dataLength && n(t, i, a.flush(), e), Promise.resolve(new ArrayBuffer(0));
|
|
18786
18786
|
const u = c.value, h = u.length;
|
|
@@ -18834,17 +18834,17 @@ const th = /\s/, ih = {
|
|
|
18834
18834
|
for (let g = 0; g < n.chars.length; g++)
|
|
18835
18835
|
th.test(n.chars[g].uchar) && o ? l++ : (c += n.chars[g].uchar, o = !1);
|
|
18836
18836
|
n.cueStartTime = e, e === t && (t += 1e-4), l >= 16 ? l-- : l++;
|
|
18837
|
-
const f =
|
|
18837
|
+
const f = Qn(c.trim()), m = gs(e, t, f);
|
|
18838
18838
|
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));
|
|
18839
18839
|
}
|
|
18840
|
-
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) =>
|
|
18840
|
+
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) => Sn(s, d))), r;
|
|
18841
18841
|
}
|
|
18842
18842
|
}, sh = {
|
|
18843
18843
|
maxTimeToFirstByteMs: 8e3,
|
|
18844
18844
|
maxLoadTimeMs: 2e4,
|
|
18845
18845
|
timeoutRetry: null,
|
|
18846
18846
|
errorRetry: null
|
|
18847
|
-
},
|
|
18847
|
+
}, ua = de(de({
|
|
18848
18848
|
autoStartLoad: !0,
|
|
18849
18849
|
// used by stream-controller
|
|
18850
18850
|
startPosition: -1,
|
|
@@ -18914,7 +18914,7 @@ const th = /\s/, ih = {
|
|
|
18914
18914
|
// used by fps-controller
|
|
18915
18915
|
appendErrorMaxRetry: 3,
|
|
18916
18916
|
// used by buffer-controller
|
|
18917
|
-
loader:
|
|
18917
|
+
loader: ca,
|
|
18918
18918
|
// loader: FetchLoader,
|
|
18919
18919
|
fLoader: void 0,
|
|
18920
18920
|
// used by fragment-loader
|
|
@@ -18969,7 +18969,7 @@ const th = /\s/, ih = {
|
|
|
18969
18969
|
// used by eme-controller
|
|
18970
18970
|
drmSystemOptions: {},
|
|
18971
18971
|
// used by eme-controller
|
|
18972
|
-
requestMediaKeySystemAccessFunc:
|
|
18972
|
+
requestMediaKeySystemAccessFunc: ln,
|
|
18973
18973
|
// used by eme-controller
|
|
18974
18974
|
testBandwidth: !0,
|
|
18975
18975
|
progressive: !1,
|
|
@@ -19157,7 +19157,7 @@ function zi(s) {
|
|
|
19157
19157
|
}
|
|
19158
19158
|
function ah(s) {
|
|
19159
19159
|
const e = s.loader;
|
|
19160
|
-
e !== Er && e !==
|
|
19160
|
+
e !== Er && e !== ca ? (S.log("[config]: Custom loader detected, cannot enable progressive streaming"), s.progressive = !1) : ju() && (s.loader = Er, s.progressive = !0, s.enableSoftwareAES = !0, S.log("[config]: Progressive streaming enabled, using FetchLoader"));
|
|
19161
19161
|
}
|
|
19162
19162
|
let Ri;
|
|
19163
19163
|
class oh extends ns {
|
|
@@ -19299,7 +19299,7 @@ class oh extends ns {
|
|
|
19299
19299
|
const g = u.bitrate, y = this.hls.bandwidthEstimate;
|
|
19300
19300
|
if (this.log(`manifest loaded, ${l.length} level(s) found, first bitrate: ${g}`), ((h = this.hls.userConfig) == null ? void 0 : h.abrEwmaDefaultEstimate) === void 0) {
|
|
19301
19301
|
const v = Math.min(g, this.hls.config.abrEwmaDefaultEstimateMax);
|
|
19302
|
-
v > y && y ===
|
|
19302
|
+
v > y && y === ua.abrEwmaDefaultEstimate && (this.hls.bandwidthEstimate = v);
|
|
19303
19303
|
}
|
|
19304
19304
|
break;
|
|
19305
19305
|
}
|
|
@@ -19458,7 +19458,7 @@ class oh extends ns {
|
|
|
19458
19458
|
removeLevel(e) {
|
|
19459
19459
|
var t;
|
|
19460
19460
|
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));
|
|
19461
|
-
|
|
19461
|
+
Rn(i), this._levels = i, this.currentLevelIndex > -1 && (t = this.currentLevel) != null && t.details && (this.currentLevelIndex = this.currentLevel.details.fragments[0].level), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
19462
19462
|
levels: i
|
|
19463
19463
|
});
|
|
19464
19464
|
}
|
|
@@ -19663,24 +19663,24 @@ class lh {
|
|
|
19663
19663
|
t.keyLoader === n && (t.keyLoader = null, i.loader = null), delete this.keyUriToKeyInfo[r], n && n.destroy();
|
|
19664
19664
|
}
|
|
19665
19665
|
}
|
|
19666
|
-
function
|
|
19666
|
+
function ha() {
|
|
19667
19667
|
return self.SourceBuffer || self.WebKitSourceBuffer;
|
|
19668
19668
|
}
|
|
19669
|
-
function
|
|
19669
|
+
function da() {
|
|
19670
19670
|
if (!dt())
|
|
19671
19671
|
return !1;
|
|
19672
|
-
const e =
|
|
19672
|
+
const e = ha();
|
|
19673
19673
|
return !e || e.prototype && typeof e.prototype.appendBuffer == "function" && typeof e.prototype.remove == "function";
|
|
19674
19674
|
}
|
|
19675
19675
|
function ch() {
|
|
19676
|
-
if (!
|
|
19676
|
+
if (!da())
|
|
19677
19677
|
return !1;
|
|
19678
19678
|
const s = dt();
|
|
19679
19679
|
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"))));
|
|
19680
19680
|
}
|
|
19681
19681
|
function uh() {
|
|
19682
19682
|
var s;
|
|
19683
|
-
const e =
|
|
19683
|
+
const e = ha();
|
|
19684
19684
|
return typeof (e == null || (s = e.prototype) == null ? void 0 : s.changeType) == "function";
|
|
19685
19685
|
}
|
|
19686
19686
|
const hh = 250, Ut = 2, dh = 0.1, fh = 0.05;
|
|
@@ -20173,7 +20173,7 @@ class ph extends ls {
|
|
|
20173
20173
|
this.warn(`Dropping fragment ${i.sn} of level ${i.level} after level details were reset`), this.fragmentTracker.removeFragment(i);
|
|
20174
20174
|
return;
|
|
20175
20175
|
}
|
|
20176
|
-
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
|
|
20176
|
+
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 zn(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];
|
|
20177
20177
|
f.push(n, h, d, c, i, r, l.totalduration, u, y, v);
|
|
20178
20178
|
}
|
|
20179
20179
|
onAudioTrackSwitching(e, t) {
|
|
@@ -20538,7 +20538,7 @@ class Me {
|
|
|
20538
20538
|
* Check if the required MediaSource Extensions are available.
|
|
20539
20539
|
*/
|
|
20540
20540
|
static isMSESupported() {
|
|
20541
|
-
return
|
|
20541
|
+
return da();
|
|
20542
20542
|
}
|
|
20543
20543
|
/**
|
|
20544
20544
|
* Check if MediaSource Extensions are available and isTypeSupported checks pass for any baseline codecs.
|
|
@@ -20565,7 +20565,7 @@ class Me {
|
|
|
20565
20565
|
* Get the default configuration applied to new instances.
|
|
20566
20566
|
*/
|
|
20567
20567
|
static get DefaultConfig() {
|
|
20568
|
-
return Me.defaultConfig ? Me.defaultConfig :
|
|
20568
|
+
return Me.defaultConfig ? Me.defaultConfig : ua;
|
|
20569
20569
|
}
|
|
20570
20570
|
/**
|
|
20571
20571
|
* Replace the default configuration applied to new instances.
|
|
@@ -21107,12 +21107,12 @@ class Me {
|
|
|
21107
21107
|
}
|
|
21108
21108
|
}
|
|
21109
21109
|
Me.defaultConfig = void 0;
|
|
21110
|
-
function
|
|
21110
|
+
function fa() {
|
|
21111
21111
|
const s = document;
|
|
21112
21112
|
return !!(s.fullscreenElement || s.mozFullScreenElement || s.webkitFullscreenElement || s.msFullscreenElement);
|
|
21113
21113
|
}
|
|
21114
21114
|
function yh(s) {
|
|
21115
|
-
if (
|
|
21115
|
+
if (fa())
|
|
21116
21116
|
return new Promise((t) => t(null));
|
|
21117
21117
|
const e = s;
|
|
21118
21118
|
if (e.requestFullscreen)
|
|
@@ -21125,7 +21125,7 @@ function yh(s) {
|
|
|
21125
21125
|
return e == null ? void 0 : e.msRequestFullscreen();
|
|
21126
21126
|
}
|
|
21127
21127
|
function vh() {
|
|
21128
|
-
if (!
|
|
21128
|
+
if (!fa())
|
|
21129
21129
|
return new Promise((e) => e(null));
|
|
21130
21130
|
const s = document;
|
|
21131
21131
|
if (s.exitFullscreen)
|
|
@@ -21168,7 +21168,7 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21168
21168
|
}, Th = Ee.extend({
|
|
21169
21169
|
name: "VideoPlayer",
|
|
21170
21170
|
components: {
|
|
21171
|
-
ESpinner:
|
|
21171
|
+
ESpinner: sn
|
|
21172
21172
|
},
|
|
21173
21173
|
props: {
|
|
21174
21174
|
sources: {
|
|
@@ -23778,10 +23778,10 @@ var Vh = function() {
|
|
|
23778
23778
|
null,
|
|
23779
23779
|
null
|
|
23780
23780
|
);
|
|
23781
|
-
const
|
|
23781
|
+
const ma = Wh.exports, zh = Ee.extend({
|
|
23782
23782
|
name: "EHoursHeatmap",
|
|
23783
23783
|
components: {
|
|
23784
|
-
EHeatmapBar:
|
|
23784
|
+
EHeatmapBar: ma
|
|
23785
23785
|
},
|
|
23786
23786
|
props: {
|
|
23787
23787
|
items: {
|
|
@@ -23943,25 +23943,30 @@ var Qh = function() {
|
|
|
23943
23943
|
null
|
|
23944
23944
|
);
|
|
23945
23945
|
const td = ed.exports, id = Ee.extend({
|
|
23946
|
-
name: "
|
|
23947
|
-
components: {
|
|
23948
|
-
EIcon: sn
|
|
23949
|
-
},
|
|
23946
|
+
name: "ETruncatedDiv",
|
|
23950
23947
|
props: {
|
|
23951
|
-
|
|
23952
|
-
type: [
|
|
23953
|
-
|
|
23948
|
+
width: {
|
|
23949
|
+
type: [String, Number],
|
|
23950
|
+
required: !0
|
|
23951
|
+
},
|
|
23952
|
+
fixedWidth: {
|
|
23953
|
+
type: Boolean,
|
|
23954
|
+
default: !1
|
|
23954
23955
|
}
|
|
23955
23956
|
},
|
|
23956
23957
|
computed: {
|
|
23957
|
-
|
|
23958
|
-
|
|
23958
|
+
containerStyle() {
|
|
23959
|
+
let s = this.width;
|
|
23960
|
+
return typeof s == "number" && (s = `${this.width}px`), {
|
|
23961
|
+
maxWidth: s,
|
|
23962
|
+
...this.fixedWidth ? { width: s } : {}
|
|
23963
|
+
};
|
|
23959
23964
|
}
|
|
23960
23965
|
}
|
|
23961
23966
|
});
|
|
23962
23967
|
var sd = function() {
|
|
23963
23968
|
var e = this, t = e._self._c;
|
|
23964
|
-
return
|
|
23969
|
+
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);
|
|
23965
23970
|
}, rd = [], nd = /* @__PURE__ */ Te(
|
|
23966
23971
|
id,
|
|
23967
23972
|
sd,
|
|
@@ -23973,19 +23978,19 @@ var sd = function() {
|
|
|
23973
23978
|
null
|
|
23974
23979
|
);
|
|
23975
23980
|
const ad = nd.exports, Cr = {
|
|
23976
|
-
EAvatar:
|
|
23981
|
+
EAvatar: ba,
|
|
23977
23982
|
EBadge: Mr,
|
|
23978
|
-
EIcon:
|
|
23979
|
-
ESpinner:
|
|
23983
|
+
EIcon: Ba,
|
|
23984
|
+
ESpinner: sn,
|
|
23980
23985
|
ERow: Ya,
|
|
23981
23986
|
ECol: Qa,
|
|
23982
23987
|
EVideoPlayer: Ah,
|
|
23983
23988
|
ETimeline: Mh,
|
|
23984
23989
|
EVideoEmbed: Gh,
|
|
23985
|
-
EHeatmapBar:
|
|
23990
|
+
EHeatmapBar: ma,
|
|
23986
23991
|
EHoursHeatmap: Xh,
|
|
23987
23992
|
EReadMore: td,
|
|
23988
|
-
|
|
23993
|
+
ETruncatedDiv: ad
|
|
23989
23994
|
}, gd = {
|
|
23990
23995
|
install(s) {
|
|
23991
23996
|
Object.keys(Cr).forEach((e) => {
|
|
@@ -24000,26 +24005,24 @@ export {
|
|
|
24000
24005
|
hd as BadgeColors,
|
|
24001
24006
|
cd as BadgeSizes,
|
|
24002
24007
|
ge as BaseColor,
|
|
24003
|
-
|
|
24008
|
+
ka as Colors,
|
|
24004
24009
|
Rh as DirectivesMap,
|
|
24005
|
-
|
|
24010
|
+
ba as EAvatar,
|
|
24006
24011
|
Mr as EBadge,
|
|
24007
24012
|
Qa as ECol,
|
|
24008
|
-
|
|
24009
|
-
ga as EHeatmapBar,
|
|
24010
|
-
Xh as EHoursHeatmap,
|
|
24011
|
-
sn as EIcon,
|
|
24013
|
+
Ba as EIcon,
|
|
24012
24014
|
td as EReadMore,
|
|
24013
24015
|
Ya as ERow,
|
|
24014
|
-
|
|
24016
|
+
sn as ESpinner,
|
|
24015
24017
|
Mh as ETimeline,
|
|
24018
|
+
ad as ETruncatedDiv,
|
|
24016
24019
|
dd as EVENTS,
|
|
24017
24020
|
Gh as EVideoEmbed,
|
|
24018
24021
|
Ah as EVideoPlayer,
|
|
24019
|
-
|
|
24022
|
+
Pa as IconSizes,
|
|
24020
24023
|
vs as ResizeObserverDirective,
|
|
24021
24024
|
Y as Size,
|
|
24022
|
-
|
|
24025
|
+
wa as TextSizes,
|
|
24023
24026
|
kt as TimelineAxis,
|
|
24024
24027
|
Re as TimelineChartType,
|
|
24025
24028
|
Pt as TimelineIntervalChangeTrigger,
|
|
@@ -24028,7 +24031,7 @@ export {
|
|
|
24028
24031
|
gd as default,
|
|
24029
24032
|
vh as exitFullScreen,
|
|
24030
24033
|
tn as fullConfig,
|
|
24031
|
-
|
|
24034
|
+
fa as isFullScreen,
|
|
24032
24035
|
yh as makeFullScreen
|
|
24033
24036
|
};
|
|
24034
24037
|
//# sourceMappingURL=index.mjs.map
|