@vouchfor/embeds 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/{browser-06a0f9c0.js → browser-25a8d581.js} +2 -2
- package/dist/es/{browser-06a0f9c0.js.map → browser-25a8d581.js.map} +1 -1
- package/dist/es/embeds.js +1 -1
- package/dist/es/{index-a234952b.js → index-45b0c060.js} +951 -956
- package/dist/es/{index-a234952b.js.map → index-45b0c060.js.map} +1 -1
- package/dist/iife/dialog-embed/{browser-03872a5a.js → browser-e1c0fc69.js} +2 -2
- package/dist/iife/dialog-embed/{browser-03872a5a.js.map → browser-e1c0fc69.js.map} +1 -1
- package/dist/iife/dialog-embed/embed.iife.js +38 -38
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
- package/dist/iife/dialog-embed/embed.js +1 -1
- package/dist/iife/dialog-embed/{index-0caa60dd.js → index-aa6cdaeb.js} +1258 -1263
- package/dist/iife/dialog-embed/index-aa6cdaeb.js.map +1 -0
- package/dist/iife/embeds.iife.js +38 -38
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/{browser-a7c2424d.js → browser-eb42680e.js} +2 -2
- package/dist/iife/player-embed/{browser-a7c2424d.js.map → browser-eb42680e.js.map} +1 -1
- package/dist/iife/player-embed/embed.iife.js +34 -34
- package/dist/iife/player-embed/embed.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.js +1 -1
- package/dist/iife/player-embed/{index-e005869e.js → index-52048e3b.js} +596 -601
- package/dist/iife/player-embed/index-52048e3b.js.map +1 -0
- package/package.json +2 -2
- package/dist/iife/dialog-embed/index-0caa60dd.js.map +0 -1
- package/dist/iife/player-embed/index-e005869e.js.map +0 -1
@@ -10969,7 +10969,7 @@ const Ly = {
|
|
10969
10969
|
};
|
10970
10970
|
async function Iy() {
|
10971
10971
|
if (typeof window > "u") {
|
10972
|
-
const s = await import("./browser-
|
10972
|
+
const s = await import("./browser-eb42680e.js").then((t) => t.b);
|
10973
10973
|
return new s.Image();
|
10974
10974
|
}
|
10975
10975
|
return new Image();
|
@@ -11030,7 +11030,7 @@ async function wc({ element: s }, t, e) {
|
|
11030
11030
|
}
|
11031
11031
|
async function to() {
|
11032
11032
|
if (typeof window > "u") {
|
11033
|
-
const s = await import("./browser-
|
11033
|
+
const s = await import("./browser-eb42680e.js").then((e) => e.b), t = new s.Canvas();
|
11034
11034
|
return t.gpu = !1, t;
|
11035
11035
|
}
|
11036
11036
|
return document.createElement("canvas");
|
@@ -11075,15 +11075,10 @@ function Py(s) {
|
|
11075
11075
|
t = Object.getPrototypeOf(t);
|
11076
11076
|
return Object.getPrototypeOf(s) === t;
|
11077
11077
|
}
|
11078
|
-
|
11079
|
-
|
11080
|
-
|
11081
|
-
|
11082
|
-
let t = s;
|
11083
|
-
return t = t.replace(/\n/g, "\\n"), t = t.replace(/\r/g, "\\r"), t = t.replace(/"/g, '\\"'), `"${t}"`;
|
11084
|
-
}
|
11085
|
-
return Py(s) || Array.isArray(s) ? JSON.stringify(s) : s;
|
11086
|
-
});
|
11078
|
+
function Oy(s) {
|
11079
|
+
return s.replace(/\\/g, "\\\\").replace(/\//g, "\\/").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\f/g, "\\f").replace(/"/g, '\\"');
|
11080
|
+
}
|
11081
|
+
Mo.filters.define("parse", (s) => typeof s > "u" ? null : typeof s == "string" ? `"${Oy(s)}"` : Py(s) || Array.isArray(s) ? JSON.stringify(s) : s);
|
11087
11082
|
Mo.helpers.define(
|
11088
11083
|
"resolve-source",
|
11089
11084
|
Ds(
|
@@ -11214,15 +11209,15 @@ async function _n({ data: s, template: t, burnCaptions: e = !1, debug: i = !1 },
|
|
11214
11209
|
duration: P
|
11215
11210
|
};
|
11216
11211
|
}
|
11217
|
-
const Rc = "2",
|
11212
|
+
const Rc = "2", My = "@vouchfor/embeds", $y = "1.1.1", Ny = "MIT", Fy = "Aaron Williams", Uy = "dist/es/embeds.js", By = "dist/es/embeds.js", Gy = "module", Vy = "dist/es/src/index.d.ts", Hy = {
|
11218
11213
|
".": "./dist/es/embeds.js"
|
11219
|
-
},
|
11214
|
+
}, Wy = [
|
11220
11215
|
"dist",
|
11221
11216
|
"src"
|
11222
|
-
],
|
11217
|
+
], jy = {
|
11223
11218
|
tag: "latest",
|
11224
11219
|
access: "public"
|
11225
|
-
},
|
11220
|
+
}, Ky = {
|
11226
11221
|
build: "rm -rf dist && tsc && yarn build:self",
|
11227
11222
|
"build:deps": "yarn --cwd ../media-player build",
|
11228
11223
|
"build:self": "vite build --mode iife && vite build --mode es && node scripts/build.cjs",
|
@@ -11238,14 +11233,14 @@ const Rc = "2", Oy = "@vouchfor/embeds", My = "1.1.0", $y = "MIT", Ny = "Aaron W
|
|
11238
11233
|
prebuild: "yarn build:deps && yarn generate:manifest",
|
11239
11234
|
test: "rm -rf test/lib && yarn prebuild && vite build --mode test && web-test-runner",
|
11240
11235
|
"test:ci": "yarn test --config web-test-runner.ci.config.js"
|
11241
|
-
},
|
11236
|
+
}, zy = {
|
11242
11237
|
"@a11y/focus-trap": "^1.0.5",
|
11243
11238
|
"@lit/task": "^1.0.0",
|
11244
|
-
"@vouchfor/media-player": "^2.0.
|
11239
|
+
"@vouchfor/media-player": "^2.0.4",
|
11245
11240
|
uuid: "^9.0.1"
|
11246
|
-
}, zy = {
|
11247
|
-
lit: "^3.1.0"
|
11248
11241
|
}, Yy = {
|
11242
|
+
lit: "^3.1.0"
|
11243
|
+
}, Xy = {
|
11249
11244
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
11250
11245
|
"@open-wc/testing": "^3.2.0",
|
11251
11246
|
"@storybook/addon-essentials": "^7.4.5",
|
@@ -11279,32 +11274,32 @@ const Rc = "2", Oy = "@vouchfor/embeds", My = "1.1.0", $y = "MIT", Ny = "Aaron W
|
|
11279
11274
|
"vite-plugin-commonjs": "^0.10.0",
|
11280
11275
|
"vite-plugin-dts": "^3.6.0",
|
11281
11276
|
"web-component-analyzer": "^1.1.7"
|
11282
|
-
},
|
11283
|
-
name:
|
11284
|
-
version:
|
11285
|
-
license:
|
11286
|
-
author:
|
11287
|
-
main:
|
11288
|
-
module:
|
11289
|
-
type:
|
11290
|
-
types:
|
11291
|
-
exports:
|
11292
|
-
files:
|
11293
|
-
publishConfig:
|
11294
|
-
scripts:
|
11277
|
+
}, Zy = {
|
11278
|
+
name: My,
|
11279
|
+
version: $y,
|
11280
|
+
license: Ny,
|
11281
|
+
author: Fy,
|
11282
|
+
main: Uy,
|
11283
|
+
module: By,
|
11284
|
+
type: Gy,
|
11285
|
+
types: Vy,
|
11286
|
+
exports: Hy,
|
11287
|
+
files: Wy,
|
11288
|
+
publishConfig: jy,
|
11289
|
+
scripts: Ky,
|
11295
11290
|
"lint-staged": {
|
11296
11291
|
"**/*.{ts,tsx,js}": "eslint --fix --quiet",
|
11297
11292
|
"**/*.{md,json,yml}": "prettier --write"
|
11298
11293
|
},
|
11299
|
-
dependencies:
|
11300
|
-
peerDependencies:
|
11301
|
-
devDependencies:
|
11294
|
+
dependencies: zy,
|
11295
|
+
peerDependencies: Yy,
|
11296
|
+
devDependencies: Xy
|
11302
11297
|
};
|
11303
|
-
function
|
11298
|
+
function qy(s) {
|
11304
11299
|
const { publicApiUrl: t } = Oo(s), e = tn();
|
11305
11300
|
return navigator.sendBeacon(`${t}/api/visitor`, JSON.stringify({ visitorId: e })), e;
|
11306
11301
|
}
|
11307
|
-
function
|
11302
|
+
function Qy(s) {
|
11308
11303
|
var o, c, d, f, p, g, y, A, E, T, w, C;
|
11309
11304
|
if (typeof window > "u")
|
11310
11305
|
return {
|
@@ -11314,17 +11309,17 @@ function qy(s) {
|
|
11314
11309
|
};
|
11315
11310
|
let t = (c = (o = window.localStorage) == null ? void 0 : o.getItem) == null ? void 0 : c.call(o, "vouch-uid-visitor"), e = (f = (d = window.localStorage) == null ? void 0 : d.getItem) == null ? void 0 : f.call(d, "vouch-uid-client"), i = (g = (p = window.sessionStorage) == null ? void 0 : p.getItem) == null ? void 0 : g.call(p, "vouch-uid-tab");
|
11316
11311
|
const n = tn();
|
11317
|
-
return t || (t =
|
11312
|
+
return t || (t = qy(s), (A = (y = window.localStorage) == null ? void 0 : y.setItem) == null || A.call(y, "vouch-uid-visitor", t)), e || (e = tn(), (T = (E = window.localStorage) == null ? void 0 : E.setItem) == null || T.call(E, "vouch-uid-client", e)), i || (i = tn(), (C = (w = window.sessionStorage) == null ? void 0 : w.setItem) == null || C.call(w, "vouch-uid-tab", i)), {
|
11318
11313
|
client: e,
|
11319
11314
|
tab: i,
|
11320
11315
|
request: n,
|
11321
11316
|
visitor: t
|
11322
11317
|
};
|
11323
11318
|
}
|
11324
|
-
function
|
11319
|
+
function Jy(s, t) {
|
11325
11320
|
return s && "vouchId" in s ? s.vouchId : (t == null ? void 0 : t.id) ?? null;
|
11326
11321
|
}
|
11327
|
-
function
|
11322
|
+
function tb(s = "embedded_player") {
|
11328
11323
|
var n, o;
|
11329
11324
|
const [t, e] = ((o = (n = Intl.DateTimeFormat().resolvedOptions().timeZone) == null ? void 0 : n.split) == null ? void 0 : o.call(n, "/")) ?? [], i = {};
|
11330
11325
|
return [...new URLSearchParams(location.search).entries()].forEach(([c, d]) => {
|
@@ -11342,16 +11337,16 @@ function Jy(s = "embedded_player") {
|
|
11342
11337
|
referrer: document.referrer,
|
11343
11338
|
currentUrl: location.href,
|
11344
11339
|
embedType: "media-player-embed",
|
11345
|
-
embedVersion:
|
11340
|
+
embedVersion: Zy.version,
|
11346
11341
|
templateVersion: Rc,
|
11347
11342
|
...i
|
11348
11343
|
};
|
11349
11344
|
}
|
11350
11345
|
const Cu = 1;
|
11351
|
-
class
|
11346
|
+
class eb {
|
11352
11347
|
constructor(t) {
|
11353
11348
|
this._batchedEvents = [], this._hasPlayed = !1, this._hasLoaded = {}, this._answersViewed = {}, this._streamStartTime = {}, this._streamLatestTime = {}, this._currentlyPlayingVideo = null, this._createTrackingEvent = (e, i) => {
|
11354
|
-
const n =
|
11349
|
+
const n = Jy(i, this.host.vouch);
|
11355
11350
|
!n || this.host.disableTracking || this._batchedEvents.push({
|
11356
11351
|
event: e,
|
11357
11352
|
payload: {
|
@@ -11363,7 +11358,7 @@ class tb {
|
|
11363
11358
|
}, this._sendTrackingEvent = () => {
|
11364
11359
|
if (this._batchedEvents.length <= 0)
|
11365
11360
|
return;
|
11366
|
-
const { publicApiUrl: e } = Oo(this.host.env), { client: i, tab: n, request: o, visitor: c } =
|
11361
|
+
const { publicApiUrl: e } = Oo(this.host.env), { client: i, tab: n, request: o, visitor: c } = Qy(this.host.env);
|
11367
11362
|
navigator.sendBeacon(
|
11368
11363
|
`${e}/api/batchevents`,
|
11369
11364
|
JSON.stringify({
|
@@ -11375,7 +11370,7 @@ class tb {
|
|
11375
11370
|
"x-uid-tab": n,
|
11376
11371
|
"x-uid-request": o,
|
11377
11372
|
"x-uid-visitor": c,
|
11378
|
-
"x-reporting-metadata":
|
11373
|
+
"x-reporting-metadata": tb(this.host.trackingSource)
|
11379
11374
|
}
|
11380
11375
|
})
|
11381
11376
|
), this._batchedEvents = [];
|
@@ -11428,7 +11423,7 @@ class tb {
|
|
11428
11423
|
this._pageUnloading(), "onvisibilitychange" in document ? document.removeEventListener("visibilitychange", this._handleVisibilityChange) : window.removeEventListener("pagehide", this._handlePageHide), this.host.removeEventListener("vouch:loaded", this._handleVouchLoaded), (t = this.host.mediaPlayer) == null || t.removeEventListener("play", this._handlePlay), (e = this.host.mediaPlayer) == null || e.removeEventListener("video:play", this._handleVideoPlay), (i = this.host.mediaPlayer) == null || i.removeEventListener("video:pause", this._handleVideoPause), (n = this.host.mediaPlayer) == null || n.removeEventListener("video:timeupdate", this._handleVideoTimeUpdate);
|
11429
11424
|
}
|
11430
11425
|
}
|
11431
|
-
const
|
11426
|
+
const ib = (s) => {
|
11432
11427
|
class t extends s {
|
11433
11428
|
constructor() {
|
11434
11429
|
super(...arguments), this._mediaPlayerRef = Oi();
|
@@ -11564,7 +11559,7 @@ const Je = Fn(class extends Oa {
|
|
11564
11559
|
* Copyright 2018 Google LLC
|
11565
11560
|
* SPDX-License-Identifier: BSD-3-Clause
|
11566
11561
|
*/
|
11567
|
-
const Of = "important",
|
11562
|
+
const Of = "important", rb = " !" + Of, rh = Fn(class extends Oa {
|
11568
11563
|
constructor(s) {
|
11569
11564
|
var t;
|
11570
11565
|
if (super(s), s.type !== Nn.ATTRIBUTE || s.name !== "style" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
@@ -11586,14 +11581,14 @@ const Of = "important", ib = " !" + Of, rh = Fn(class extends Oa {
|
|
11586
11581
|
const n = t[i];
|
11587
11582
|
if (n != null) {
|
11588
11583
|
this.ut.add(i);
|
11589
|
-
const o = typeof n == "string" && n.endsWith(
|
11584
|
+
const o = typeof n == "string" && n.endsWith(rb);
|
11590
11585
|
i.includes("-") || o ? e.setProperty(i, o ? n.slice(0, -11) : n, o ? Of : "") : e[i] = n;
|
11591
11586
|
}
|
11592
11587
|
}
|
11593
11588
|
return Ps;
|
11594
11589
|
}
|
11595
11590
|
});
|
11596
|
-
var
|
11591
|
+
var sb = wa;
|
11597
11592
|
wa.flatten = wa;
|
11598
11593
|
wa.unflatten = Nf;
|
11599
11594
|
function Mf(s) {
|
@@ -11660,7 +11655,7 @@ function Nf(s, t) {
|
|
11660
11655
|
T[A] = Nf(s[g], t);
|
11661
11656
|
}), o;
|
11662
11657
|
}
|
11663
|
-
const
|
11658
|
+
const nb = /* @__PURE__ */ Af(sb);
|
11664
11659
|
/**
|
11665
11660
|
* @license
|
11666
11661
|
* Copyright 2017 Google LLC
|
@@ -11731,11 +11726,11 @@ const Iu = (s, t, e) => {
|
|
11731
11726
|
return this.dt = c, pv(s, f), Ps;
|
11732
11727
|
}
|
11733
11728
|
});
|
11734
|
-
var Qi = "top", vr = "bottom", yr = "right", Ji = "left", sh = "auto", Ma = [Qi, vr, yr, Ji], Dn = "start", Sa = "end",
|
11729
|
+
var Qi = "top", vr = "bottom", yr = "right", Ji = "left", sh = "auto", Ma = [Qi, vr, yr, Ji], Dn = "start", Sa = "end", ab = "clippingParents", Uf = "viewport", ra = "popper", ob = "reference", xu = /* @__PURE__ */ Ma.reduce(function(s, t) {
|
11735
11730
|
return s.concat([t + "-" + Dn, t + "-" + Sa]);
|
11736
11731
|
}, []), Bf = /* @__PURE__ */ [].concat(Ma, [sh]).reduce(function(s, t) {
|
11737
11732
|
return s.concat([t, t + "-" + Dn, t + "-" + Sa]);
|
11738
|
-
}, []),
|
11733
|
+
}, []), lb = "beforeRead", cb = "read", hb = "afterRead", db = "beforeMain", ub = "main", fb = "afterMain", pb = "beforeWrite", gb = "write", mb = "afterWrite", vb = [lb, cb, hb, db, ub, fb, pb, gb, mb];
|
11739
11734
|
function jr(s) {
|
11740
11735
|
return s ? (s.nodeName || "").toLowerCase() : null;
|
11741
11736
|
}
|
@@ -11762,7 +11757,7 @@ function nh(s) {
|
|
11762
11757
|
var t = ar(s).ShadowRoot;
|
11763
11758
|
return s instanceof t || s instanceof ShadowRoot;
|
11764
11759
|
}
|
11765
|
-
function
|
11760
|
+
function yb(s) {
|
11766
11761
|
var t = s.state;
|
11767
11762
|
Object.keys(t.elements).forEach(function(e) {
|
11768
11763
|
var i = t.styles[e] || {}, n = t.attributes[e] || {}, o = t.elements[e];
|
@@ -11772,7 +11767,7 @@ function vb(s) {
|
|
11772
11767
|
}));
|
11773
11768
|
});
|
11774
11769
|
}
|
11775
|
-
function
|
11770
|
+
function bb(s) {
|
11776
11771
|
var t = s.state, e = {
|
11777
11772
|
popper: {
|
11778
11773
|
position: t.options.strategy,
|
@@ -11800,8 +11795,8 @@ const Gf = {
|
|
11800
11795
|
name: "applyStyles",
|
11801
11796
|
enabled: !0,
|
11802
11797
|
phase: "write",
|
11803
|
-
fn:
|
11804
|
-
effect:
|
11798
|
+
fn: yb,
|
11799
|
+
effect: bb,
|
11805
11800
|
requires: ["computeStyles"]
|
11806
11801
|
};
|
11807
11802
|
function Hr(s) {
|
@@ -11859,7 +11854,7 @@ function Hf(s, t) {
|
|
11859
11854
|
function os(s) {
|
11860
11855
|
return ar(s).getComputedStyle(s);
|
11861
11856
|
}
|
11862
|
-
function
|
11857
|
+
function Ab(s) {
|
11863
11858
|
return ["table", "td", "th"].indexOf(jr(s)) >= 0;
|
11864
11859
|
}
|
11865
11860
|
function Fs(s) {
|
@@ -11884,7 +11879,7 @@ function Du(s) {
|
|
11884
11879
|
return !mr(s) || // https://github.com/popperjs/popper-core/issues/837
|
11885
11880
|
os(s).position === "fixed" ? null : s.offsetParent;
|
11886
11881
|
}
|
11887
|
-
function
|
11882
|
+
function Eb(s) {
|
11888
11883
|
var t = /firefox/i.test(_c()), e = /Trident/i.test(_c());
|
11889
11884
|
if (e && mr(s)) {
|
11890
11885
|
var i = os(s);
|
@@ -11901,9 +11896,9 @@ function Ab(s) {
|
|
11901
11896
|
return null;
|
11902
11897
|
}
|
11903
11898
|
function $a(s) {
|
11904
|
-
for (var t = ar(s), e = Du(s); e &&
|
11899
|
+
for (var t = ar(s), e = Du(s); e && Ab(e) && os(e).position === "static"; )
|
11905
11900
|
e = Du(e);
|
11906
|
-
return e && (jr(e) === "html" || jr(e) === "body" && os(e).position === "static") ? t : e ||
|
11901
|
+
return e && (jr(e) === "html" || jr(e) === "body" && os(e).position === "static") ? t : e || Eb(s) || t;
|
11907
11902
|
}
|
11908
11903
|
function oh(s) {
|
11909
11904
|
return ["top", "bottom"].indexOf(s) >= 0 ? "x" : "y";
|
@@ -11911,7 +11906,7 @@ function oh(s) {
|
|
11911
11906
|
function ga(s, t, e) {
|
11912
11907
|
return en(s, Bo(t, e));
|
11913
11908
|
}
|
11914
|
-
function
|
11909
|
+
function Tb(s, t, e) {
|
11915
11910
|
var i = ga(s, t, e);
|
11916
11911
|
return i > e ? e : i;
|
11917
11912
|
}
|
@@ -11931,41 +11926,41 @@ function Kf(s, t) {
|
|
11931
11926
|
return e[i] = s, e;
|
11932
11927
|
}, {});
|
11933
11928
|
}
|
11934
|
-
var
|
11929
|
+
var kb = function(t, e) {
|
11935
11930
|
return t = typeof t == "function" ? t(Object.assign({}, e.rects, {
|
11936
11931
|
placement: e.placement
|
11937
11932
|
})) : t, jf(typeof t != "number" ? t : Kf(t, Ma));
|
11938
11933
|
};
|
11939
|
-
function
|
11934
|
+
function wb(s) {
|
11940
11935
|
var t, e = s.state, i = s.name, n = s.options, o = e.elements.arrow, c = e.modifiersData.popperOffsets, d = Hr(e.placement), f = oh(d), p = [Ji, yr].indexOf(d) >= 0, g = p ? "height" : "width";
|
11941
11936
|
if (!(!o || !c)) {
|
11942
|
-
var y =
|
11937
|
+
var y = kb(n.padding, e), A = ah(o), E = f === "y" ? Qi : Ji, T = f === "y" ? vr : yr, w = e.rects.reference[g] + e.rects.reference[f] - c[f] - e.rects.popper[g], C = c[f] - e.rects.reference[f], P = $a(o), O = P ? f === "y" ? P.clientHeight || 0 : P.clientWidth || 0 : 0, B = w / 2 - C / 2, x = y[E], H = O - A[g] - y[T], F = O / 2 - A[g] / 2 + B, z = ga(x, F, H), tt = f;
|
11943
11938
|
e.modifiersData[i] = (t = {}, t[tt] = z, t.centerOffset = z - F, t);
|
11944
11939
|
}
|
11945
11940
|
}
|
11946
|
-
function
|
11941
|
+
function Sb(s) {
|
11947
11942
|
var t = s.state, e = s.options, i = e.element, n = i === void 0 ? "[data-popper-arrow]" : i;
|
11948
11943
|
n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || Hf(t.elements.popper, n) && (t.elements.arrow = n));
|
11949
11944
|
}
|
11950
|
-
const
|
11945
|
+
const Rb = {
|
11951
11946
|
name: "arrow",
|
11952
11947
|
enabled: !0,
|
11953
11948
|
phase: "main",
|
11954
|
-
fn:
|
11955
|
-
effect:
|
11949
|
+
fn: wb,
|
11950
|
+
effect: Sb,
|
11956
11951
|
requires: ["popperOffsets"],
|
11957
11952
|
requiresIfExists: ["preventOverflow"]
|
11958
11953
|
};
|
11959
11954
|
function Mn(s) {
|
11960
11955
|
return s.split("-")[1];
|
11961
11956
|
}
|
11962
|
-
var
|
11957
|
+
var _b = {
|
11963
11958
|
top: "auto",
|
11964
11959
|
right: "auto",
|
11965
11960
|
bottom: "auto",
|
11966
11961
|
left: "auto"
|
11967
11962
|
};
|
11968
|
-
function
|
11963
|
+
function Lb(s, t) {
|
11969
11964
|
var e = s.x, i = s.y, n = t.devicePixelRatio || 1;
|
11970
11965
|
return {
|
11971
11966
|
x: Pn(e * n) / n || 0,
|
@@ -12003,7 +11998,7 @@ function Pu(s) {
|
|
12003
11998
|
}
|
12004
11999
|
var kt = Object.assign({
|
12005
12000
|
position: d
|
12006
|
-
}, p &&
|
12001
|
+
}, p && _b), mt = g === !0 ? Lb({
|
12007
12002
|
x: E,
|
12008
12003
|
y: w
|
12009
12004
|
}, ar(e)) : {
|
@@ -12016,7 +12011,7 @@ function Pu(s) {
|
|
12016
12011
|
}
|
12017
12012
|
return Object.assign({}, kt, (t = {}, t[x] = O ? w + "px" : "", t[B] = P ? E + "px" : "", t.transform = "", t));
|
12018
12013
|
}
|
12019
|
-
function
|
12014
|
+
function Cb(s) {
|
12020
12015
|
var t = s.state, e = s.options, i = e.gpuAcceleration, n = i === void 0 ? !0 : i, o = e.adaptive, c = o === void 0 ? !0 : o, d = e.roundOffsets, f = d === void 0 ? !0 : d, p = {
|
12021
12016
|
placement: Hr(t.placement),
|
12022
12017
|
variation: Mn(t.placement),
|
@@ -12039,17 +12034,17 @@ function Lb(s) {
|
|
12039
12034
|
"data-popper-placement": t.placement
|
12040
12035
|
});
|
12041
12036
|
}
|
12042
|
-
const
|
12037
|
+
const Ib = {
|
12043
12038
|
name: "computeStyles",
|
12044
12039
|
enabled: !0,
|
12045
12040
|
phase: "beforeWrite",
|
12046
|
-
fn:
|
12041
|
+
fn: Cb,
|
12047
12042
|
data: {}
|
12048
12043
|
};
|
12049
12044
|
var io = {
|
12050
12045
|
passive: !0
|
12051
12046
|
};
|
12052
|
-
function
|
12047
|
+
function xb(s) {
|
12053
12048
|
var t = s.state, e = s.instance, i = s.options, n = i.scroll, o = n === void 0 ? !0 : n, c = i.resize, d = c === void 0 ? !0 : c, f = ar(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
12054
12049
|
return o && p.forEach(function(g) {
|
12055
12050
|
g.addEventListener("scroll", e.update, io);
|
@@ -12059,16 +12054,16 @@ function Ib(s) {
|
|
12059
12054
|
}), d && f.removeEventListener("resize", e.update, io);
|
12060
12055
|
};
|
12061
12056
|
}
|
12062
|
-
const
|
12057
|
+
const Db = {
|
12063
12058
|
name: "eventListeners",
|
12064
12059
|
enabled: !0,
|
12065
12060
|
phase: "write",
|
12066
12061
|
fn: function() {
|
12067
12062
|
},
|
12068
|
-
effect:
|
12063
|
+
effect: xb,
|
12069
12064
|
data: {}
|
12070
12065
|
};
|
12071
|
-
var
|
12066
|
+
var Pb = {
|
12072
12067
|
left: "right",
|
12073
12068
|
right: "left",
|
12074
12069
|
bottom: "top",
|
@@ -12076,16 +12071,16 @@ var Db = {
|
|
12076
12071
|
};
|
12077
12072
|
function Ro(s) {
|
12078
12073
|
return s.replace(/left|right|bottom|top/g, function(t) {
|
12079
|
-
return
|
12074
|
+
return Pb[t];
|
12080
12075
|
});
|
12081
12076
|
}
|
12082
|
-
var
|
12077
|
+
var Ob = {
|
12083
12078
|
start: "end",
|
12084
12079
|
end: "start"
|
12085
12080
|
};
|
12086
12081
|
function Ou(s) {
|
12087
12082
|
return s.replace(/start|end/g, function(t) {
|
12088
|
-
return
|
12083
|
+
return Ob[t];
|
12089
12084
|
});
|
12090
12085
|
}
|
12091
12086
|
function lh(s) {
|
@@ -12098,7 +12093,7 @@ function lh(s) {
|
|
12098
12093
|
function ch(s) {
|
12099
12094
|
return On(Fs(s)).left + lh(s).scrollLeft;
|
12100
12095
|
}
|
12101
|
-
function
|
12096
|
+
function Mb(s, t) {
|
12102
12097
|
var e = ar(s), i = Fs(s), n = e.visualViewport, o = i.clientWidth, c = i.clientHeight, d = 0, f = 0;
|
12103
12098
|
if (n) {
|
12104
12099
|
o = n.width, c = n.height;
|
@@ -12112,7 +12107,7 @@ function Ob(s, t) {
|
|
12112
12107
|
y: f
|
12113
12108
|
};
|
12114
12109
|
}
|
12115
|
-
function
|
12110
|
+
function $b(s) {
|
12116
12111
|
var t, e = Fs(s), i = lh(s), n = (t = s.ownerDocument) == null ? void 0 : t.body, o = en(e.scrollWidth, e.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), c = en(e.scrollHeight, e.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), d = -i.scrollLeft + ch(s), f = -i.scrollTop;
|
12117
12112
|
return os(n || e).direction === "rtl" && (d += en(e.clientWidth, n ? n.clientWidth : 0) - o), {
|
12118
12113
|
width: o,
|
@@ -12145,21 +12140,21 @@ function Lc(s) {
|
|
12145
12140
|
bottom: s.y + s.height
|
12146
12141
|
});
|
12147
12142
|
}
|
12148
|
-
function
|
12143
|
+
function Nb(s, t) {
|
12149
12144
|
var e = On(s, !1, t === "fixed");
|
12150
12145
|
return e.top = e.top + s.clientTop, e.left = e.left + s.clientLeft, e.bottom = e.top + s.clientHeight, e.right = e.left + s.clientWidth, e.width = s.clientWidth, e.height = s.clientHeight, e.x = e.left, e.y = e.top, e;
|
12151
12146
|
}
|
12152
12147
|
function Mu(s, t, e) {
|
12153
|
-
return t === Uf ? Lc(
|
12148
|
+
return t === Uf ? Lc(Mb(s, e)) : on(t) ? Nb(t, e) : Lc($b(Fs(s)));
|
12154
12149
|
}
|
12155
|
-
function
|
12150
|
+
function Fb(s) {
|
12156
12151
|
var t = ma(qo(s)), e = ["absolute", "fixed"].indexOf(os(s).position) >= 0, i = e && mr(s) ? $a(s) : s;
|
12157
12152
|
return on(i) ? t.filter(function(n) {
|
12158
12153
|
return on(n) && Hf(n, i) && jr(n) !== "body";
|
12159
12154
|
}) : [];
|
12160
12155
|
}
|
12161
|
-
function
|
12162
|
-
var n = t === "clippingParents" ?
|
12156
|
+
function Ub(s, t, e, i) {
|
12157
|
+
var n = t === "clippingParents" ? Fb(s) : [].concat(t), o = [].concat(n, [e]), c = o[0], d = o.reduce(function(f, p) {
|
12163
12158
|
var g = Mu(s, p, i);
|
12164
12159
|
return f.top = en(g.top, f.top), f.right = Bo(g.right, f.right), f.bottom = Bo(g.bottom, f.bottom), f.left = en(g.left, f.left), f;
|
12165
12160
|
}, Mu(s, c, i));
|
@@ -12214,7 +12209,7 @@ function Yf(s) {
|
|
12214
12209
|
}
|
12215
12210
|
function Ra(s, t) {
|
12216
12211
|
t === void 0 && (t = {});
|
12217
|
-
var e = t, i = e.placement, n = i === void 0 ? s.placement : i, o = e.strategy, c = o === void 0 ? s.strategy : o, d = e.boundary, f = d === void 0 ?
|
12212
|
+
var e = t, i = e.placement, n = i === void 0 ? s.placement : i, o = e.strategy, c = o === void 0 ? s.strategy : o, d = e.boundary, f = d === void 0 ? ab : d, p = e.rootBoundary, g = p === void 0 ? Uf : p, y = e.elementContext, A = y === void 0 ? ra : y, E = e.altBoundary, T = E === void 0 ? !1 : E, w = e.padding, C = w === void 0 ? 0 : w, P = jf(typeof C != "number" ? C : Kf(C, Ma)), O = A === ra ? ob : ra, B = s.rects.popper, x = s.elements[T ? O : A], H = Ub(on(x) ? x : x.contextElement || Fs(s.elements.popper), f, g, c), F = On(s.elements.reference), z = Yf({
|
12218
12213
|
reference: F,
|
12219
12214
|
element: B,
|
12220
12215
|
strategy: "absolute",
|
@@ -12234,7 +12229,7 @@ function Ra(s, t) {
|
|
12234
12229
|
}
|
12235
12230
|
return J;
|
12236
12231
|
}
|
12237
|
-
function
|
12232
|
+
function Bb(s, t) {
|
12238
12233
|
t === void 0 && (t = {});
|
12239
12234
|
var e = t, i = e.placement, n = e.boundary, o = e.rootBoundary, c = e.padding, d = e.flipVariations, f = e.allowedAutoPlacements, p = f === void 0 ? Bf : f, g = Mn(i), y = g ? d ? xu : xu.filter(function(T) {
|
12240
12235
|
return Mn(T) === g;
|
@@ -12254,17 +12249,17 @@ function Ub(s, t) {
|
|
12254
12249
|
return E[T] - E[w];
|
12255
12250
|
});
|
12256
12251
|
}
|
12257
|
-
function
|
12252
|
+
function Gb(s) {
|
12258
12253
|
if (Hr(s) === sh)
|
12259
12254
|
return [];
|
12260
12255
|
var t = Ro(s);
|
12261
12256
|
return [Ou(s), t, Ou(t)];
|
12262
12257
|
}
|
12263
|
-
function
|
12258
|
+
function Vb(s) {
|
12264
12259
|
var t = s.state, e = s.options, i = s.name;
|
12265
12260
|
if (!t.modifiersData[i]._skip) {
|
12266
|
-
for (var n = e.mainAxis, o = n === void 0 ? !0 : n, c = e.altAxis, d = c === void 0 ? !0 : c, f = e.fallbackPlacements, p = e.padding, g = e.boundary, y = e.rootBoundary, A = e.altBoundary, E = e.flipVariations, T = E === void 0 ? !0 : E, w = e.allowedAutoPlacements, C = t.options.placement, P = Hr(C), O = P === C, B = f || (O || !T ? [Ro(C)] :
|
12267
|
-
return Ft.concat(Hr(Wt) === sh ?
|
12261
|
+
for (var n = e.mainAxis, o = n === void 0 ? !0 : n, c = e.altAxis, d = c === void 0 ? !0 : c, f = e.fallbackPlacements, p = e.padding, g = e.boundary, y = e.rootBoundary, A = e.altBoundary, E = e.flipVariations, T = E === void 0 ? !0 : E, w = e.allowedAutoPlacements, C = t.options.placement, P = Hr(C), O = P === C, B = f || (O || !T ? [Ro(C)] : Gb(C)), x = [C].concat(B).reduce(function(Ft, Wt) {
|
12262
|
+
return Ft.concat(Hr(Wt) === sh ? Bb(t, {
|
12268
12263
|
placement: Wt,
|
12269
12264
|
boundary: g,
|
12270
12265
|
rootBoundary: y,
|
@@ -12309,11 +12304,11 @@ function Gb(s) {
|
|
12309
12304
|
t.placement !== at && (t.modifiersData[i]._skip = !0, t.placement = at, t.reset = !0);
|
12310
12305
|
}
|
12311
12306
|
}
|
12312
|
-
const
|
12307
|
+
const Hb = {
|
12313
12308
|
name: "flip",
|
12314
12309
|
enabled: !0,
|
12315
12310
|
phase: "main",
|
12316
|
-
fn:
|
12311
|
+
fn: Vb,
|
12317
12312
|
requiresIfExists: ["offset"],
|
12318
12313
|
data: {
|
12319
12314
|
_skip: !1
|
@@ -12335,7 +12330,7 @@ function Nu(s) {
|
|
12335
12330
|
return s[t] >= 0;
|
12336
12331
|
});
|
12337
12332
|
}
|
12338
|
-
function
|
12333
|
+
function Wb(s) {
|
12339
12334
|
var t = s.state, e = s.name, i = t.rects.reference, n = t.rects.popper, o = t.modifiersData.preventOverflow, c = Ra(t, {
|
12340
12335
|
elementContext: "reference"
|
12341
12336
|
}), d = Ra(t, {
|
@@ -12351,14 +12346,14 @@ function Hb(s) {
|
|
12351
12346
|
"data-popper-escaped": y
|
12352
12347
|
});
|
12353
12348
|
}
|
12354
|
-
const
|
12349
|
+
const jb = {
|
12355
12350
|
name: "hide",
|
12356
12351
|
enabled: !0,
|
12357
12352
|
phase: "main",
|
12358
12353
|
requiresIfExists: ["preventOverflow"],
|
12359
|
-
fn:
|
12354
|
+
fn: Wb
|
12360
12355
|
};
|
12361
|
-
function
|
12356
|
+
function Kb(s, t, e) {
|
12362
12357
|
var i = Hr(s), n = [Ji, Qi].indexOf(i) >= 0 ? -1 : 1, o = typeof e == "function" ? e(Object.assign({}, t, {
|
12363
12358
|
placement: s
|
12364
12359
|
})) : e, c = o[0], d = o[1];
|
@@ -12370,20 +12365,20 @@ function jb(s, t, e) {
|
|
12370
12365
|
y: d
|
12371
12366
|
};
|
12372
12367
|
}
|
12373
|
-
function
|
12368
|
+
function zb(s) {
|
12374
12369
|
var t = s.state, e = s.options, i = s.name, n = e.offset, o = n === void 0 ? [0, 0] : n, c = Bf.reduce(function(g, y) {
|
12375
|
-
return g[y] =
|
12370
|
+
return g[y] = Kb(y, t.rects, o), g;
|
12376
12371
|
}, {}), d = c[t.placement], f = d.x, p = d.y;
|
12377
12372
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += f, t.modifiersData.popperOffsets.y += p), t.modifiersData[i] = c;
|
12378
12373
|
}
|
12379
|
-
const
|
12374
|
+
const Yb = {
|
12380
12375
|
name: "offset",
|
12381
12376
|
enabled: !0,
|
12382
12377
|
phase: "main",
|
12383
12378
|
requires: ["popperOffsets"],
|
12384
|
-
fn:
|
12379
|
+
fn: zb
|
12385
12380
|
};
|
12386
|
-
function
|
12381
|
+
function Xb(s) {
|
12387
12382
|
var t = s.state, e = s.name;
|
12388
12383
|
t.modifiersData[e] = Yf({
|
12389
12384
|
reference: t.rects.reference,
|
@@ -12392,23 +12387,23 @@ function Yb(s) {
|
|
12392
12387
|
placement: t.placement
|
12393
12388
|
});
|
12394
12389
|
}
|
12395
|
-
const
|
12390
|
+
const Zb = {
|
12396
12391
|
name: "popperOffsets",
|
12397
12392
|
enabled: !0,
|
12398
12393
|
phase: "read",
|
12399
|
-
fn:
|
12394
|
+
fn: Xb,
|
12400
12395
|
data: {}
|
12401
12396
|
};
|
12402
|
-
function
|
12397
|
+
function qb(s) {
|
12403
12398
|
return s === "x" ? "y" : "x";
|
12404
12399
|
}
|
12405
|
-
function
|
12400
|
+
function Qb(s) {
|
12406
12401
|
var t = s.state, e = s.options, i = s.name, n = e.mainAxis, o = n === void 0 ? !0 : n, c = e.altAxis, d = c === void 0 ? !1 : c, f = e.boundary, p = e.rootBoundary, g = e.altBoundary, y = e.padding, A = e.tether, E = A === void 0 ? !0 : A, T = e.tetherOffset, w = T === void 0 ? 0 : T, C = Ra(t, {
|
12407
12402
|
boundary: f,
|
12408
12403
|
rootBoundary: p,
|
12409
12404
|
padding: y,
|
12410
12405
|
altBoundary: g
|
12411
|
-
}), P = Hr(t.placement), O = Mn(t.placement), B = !O, x = oh(P), H =
|
12406
|
+
}), P = Hr(t.placement), O = Mn(t.placement), B = !O, x = oh(P), H = qb(x), F = t.modifiersData.popperOffsets, z = t.rects.reference, tt = t.rects.popper, at = typeof w == "function" ? w(Object.assign({}, t.rects, {
|
12412
12407
|
placement: t.placement
|
12413
12408
|
})) : w, J = typeof at == "number" ? {
|
12414
12409
|
mainAxis: at,
|
@@ -12429,35 +12424,35 @@ function qb(s) {
|
|
12429
12424
|
F[x] = je, mt[x] = je - At;
|
12430
12425
|
}
|
12431
12426
|
if (d) {
|
12432
|
-
var $e, Ue = x === "x" ? Qi : Ji, Ee = x === "x" ? vr : yr, de = F[H], Ke = H === "y" ? "height" : "width", oe = de + C[Ue], Ne = de - C[Ee], Fe = [Qi, Ji].indexOf(P) !== -1, ci = ($e = kt == null ? void 0 : kt[H]) != null ? $e : 0, _e = Fe ? oe : de - z[Ke] - tt[Ke] - ci + J.altAxis, fi = Fe ? de + z[Ke] + tt[Ke] - ci - J.altAxis : Ne, br = E && Fe ?
|
12427
|
+
var $e, Ue = x === "x" ? Qi : Ji, Ee = x === "x" ? vr : yr, de = F[H], Ke = H === "y" ? "height" : "width", oe = de + C[Ue], Ne = de - C[Ee], Fe = [Qi, Ji].indexOf(P) !== -1, ci = ($e = kt == null ? void 0 : kt[H]) != null ? $e : 0, _e = Fe ? oe : de - z[Ke] - tt[Ke] - ci + J.altAxis, fi = Fe ? de + z[Ke] + tt[Ke] - ci - J.altAxis : Ne, br = E && Fe ? Tb(_e, de, fi) : ga(E ? _e : oe, de, E ? fi : Ne);
|
12433
12428
|
F[H] = br, mt[H] = br - de;
|
12434
12429
|
}
|
12435
12430
|
t.modifiersData[i] = mt;
|
12436
12431
|
}
|
12437
12432
|
}
|
12438
|
-
const
|
12433
|
+
const Jb = {
|
12439
12434
|
name: "preventOverflow",
|
12440
12435
|
enabled: !0,
|
12441
12436
|
phase: "main",
|
12442
|
-
fn:
|
12437
|
+
fn: Qb,
|
12443
12438
|
requiresIfExists: ["offset"]
|
12444
12439
|
};
|
12445
|
-
function
|
12440
|
+
function t4(s) {
|
12446
12441
|
return {
|
12447
12442
|
scrollLeft: s.scrollLeft,
|
12448
12443
|
scrollTop: s.scrollTop
|
12449
12444
|
};
|
12450
12445
|
}
|
12451
|
-
function t4(s) {
|
12452
|
-
return s === ar(s) || !mr(s) ? lh(s) : Jb(s);
|
12453
|
-
}
|
12454
12446
|
function e4(s) {
|
12447
|
+
return s === ar(s) || !mr(s) ? lh(s) : t4(s);
|
12448
|
+
}
|
12449
|
+
function i4(s) {
|
12455
12450
|
var t = s.getBoundingClientRect(), e = Pn(t.width) / s.offsetWidth || 1, i = Pn(t.height) / s.offsetHeight || 1;
|
12456
12451
|
return e !== 1 || i !== 1;
|
12457
12452
|
}
|
12458
|
-
function
|
12453
|
+
function r4(s, t, e) {
|
12459
12454
|
e === void 0 && (e = !1);
|
12460
|
-
var i = mr(t), n = mr(t) &&
|
12455
|
+
var i = mr(t), n = mr(t) && i4(t), o = Fs(t), c = On(s, n, e), d = {
|
12461
12456
|
scrollLeft: 0,
|
12462
12457
|
scrollTop: 0
|
12463
12458
|
}, f = {
|
@@ -12465,14 +12460,14 @@ function i4(s, t, e) {
|
|
12465
12460
|
y: 0
|
12466
12461
|
};
|
12467
12462
|
return (i || !i && !e) && ((jr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
12468
|
-
hh(o)) && (d =
|
12463
|
+
hh(o)) && (d = e4(t)), mr(t) ? (f = On(t, !0), f.x += t.clientLeft, f.y += t.clientTop) : o && (f.x = ch(o))), {
|
12469
12464
|
x: c.left + d.scrollLeft - f.x,
|
12470
12465
|
y: c.top + d.scrollTop - f.y,
|
12471
12466
|
width: c.width,
|
12472
12467
|
height: c.height
|
12473
12468
|
};
|
12474
12469
|
}
|
12475
|
-
function
|
12470
|
+
function s4(s) {
|
12476
12471
|
var t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Set(), i = [];
|
12477
12472
|
s.forEach(function(o) {
|
12478
12473
|
t.set(o.name, o);
|
@@ -12491,15 +12486,15 @@ function r4(s) {
|
|
12491
12486
|
e.has(o.name) || n(o);
|
12492
12487
|
}), i;
|
12493
12488
|
}
|
12494
|
-
function
|
12495
|
-
var t =
|
12496
|
-
return
|
12489
|
+
function n4(s) {
|
12490
|
+
var t = s4(s);
|
12491
|
+
return vb.reduce(function(e, i) {
|
12497
12492
|
return e.concat(t.filter(function(n) {
|
12498
12493
|
return n.phase === i;
|
12499
12494
|
}));
|
12500
12495
|
}, []);
|
12501
12496
|
}
|
12502
|
-
function
|
12497
|
+
function a4(s) {
|
12503
12498
|
var t;
|
12504
12499
|
return function() {
|
12505
12500
|
return t || (t = new Promise(function(e) {
|
@@ -12509,7 +12504,7 @@ function n4(s) {
|
|
12509
12504
|
})), t;
|
12510
12505
|
};
|
12511
12506
|
}
|
12512
|
-
function
|
12507
|
+
function o4(s) {
|
12513
12508
|
var t = s.reduce(function(e, i) {
|
12514
12509
|
var n = e[i.name];
|
12515
12510
|
return e[i.name] = n ? Object.assign({}, n, i, {
|
@@ -12533,7 +12528,7 @@ function Uu() {
|
|
12533
12528
|
return !(i && typeof i.getBoundingClientRect == "function");
|
12534
12529
|
});
|
12535
12530
|
}
|
12536
|
-
function
|
12531
|
+
function l4(s) {
|
12537
12532
|
s === void 0 && (s = {});
|
12538
12533
|
var t = s, e = t.defaultModifiers, i = e === void 0 ? [] : e, n = t.defaultOptions, o = n === void 0 ? Fu : n;
|
12539
12534
|
return function(d, f, p) {
|
@@ -12557,7 +12552,7 @@ function o4(s) {
|
|
12557
12552
|
reference: on(d) ? ma(d) : d.contextElement ? ma(d.contextElement) : [],
|
12558
12553
|
popper: ma(f)
|
12559
12554
|
};
|
12560
|
-
var B =
|
12555
|
+
var B = n4(o4([].concat(i, g.options.modifiers)));
|
12561
12556
|
return g.orderedModifiers = B.filter(function(x) {
|
12562
12557
|
return x.enabled;
|
12563
12558
|
}), T(), E.update();
|
@@ -12572,7 +12567,7 @@ function o4(s) {
|
|
12572
12567
|
var P = g.elements, O = P.reference, B = P.popper;
|
12573
12568
|
if (Uu(O, B)) {
|
12574
12569
|
g.rects = {
|
12575
|
-
reference:
|
12570
|
+
reference: r4(O, $a(B), g.options.strategy === "fixed"),
|
12576
12571
|
popper: ah(B)
|
12577
12572
|
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(J) {
|
12578
12573
|
return g.modifiersData[J.name] = Object.assign({}, J.data);
|
@@ -12595,7 +12590,7 @@ function o4(s) {
|
|
12595
12590
|
},
|
12596
12591
|
// Async and optimistically optimized update – it will not be executed if
|
12597
12592
|
// not necessary (debounced to run at most once-per-tick)
|
12598
|
-
update:
|
12593
|
+
update: a4(function() {
|
12599
12594
|
return new Promise(function(C) {
|
12600
12595
|
E.forceUpdate(), C(g);
|
12601
12596
|
});
|
@@ -12632,9 +12627,9 @@ function o4(s) {
|
|
12632
12627
|
return E;
|
12633
12628
|
};
|
12634
12629
|
}
|
12635
|
-
var
|
12636
|
-
defaultModifiers:
|
12637
|
-
}),
|
12630
|
+
var c4 = [Db, Zb, Ib, Gf, Yb, Hb, Jb, Rb, jb], h4 = /* @__PURE__ */ l4({
|
12631
|
+
defaultModifiers: c4
|
12632
|
+
}), d4 = "tippy-box", Xf = "tippy-content", u4 = "tippy-backdrop", Zf = "tippy-arrow", qf = "tippy-svg-arrow", Xs = {
|
12638
12633
|
passive: !0,
|
12639
12634
|
capture: !0
|
12640
12635
|
}, Qf = function() {
|
@@ -12664,7 +12659,7 @@ function Bu(s, t) {
|
|
12664
12659
|
}, t);
|
12665
12660
|
};
|
12666
12661
|
}
|
12667
|
-
function
|
12662
|
+
function f4(s) {
|
12668
12663
|
return s.split(/\s+/).filter(Boolean);
|
12669
12664
|
}
|
12670
12665
|
function Rn(s) {
|
@@ -12673,12 +12668,12 @@ function Rn(s) {
|
|
12673
12668
|
function Gu(s, t) {
|
12674
12669
|
s.indexOf(t) === -1 && s.push(t);
|
12675
12670
|
}
|
12676
|
-
function
|
12671
|
+
function p4(s) {
|
12677
12672
|
return s.filter(function(t, e) {
|
12678
12673
|
return s.indexOf(t) === e;
|
12679
12674
|
});
|
12680
12675
|
}
|
12681
|
-
function
|
12676
|
+
function g4(s) {
|
12682
12677
|
return s.split("-")[0];
|
12683
12678
|
}
|
12684
12679
|
function Go(s) {
|
@@ -12697,17 +12692,17 @@ function Qo(s) {
|
|
12697
12692
|
return dh(s, t);
|
12698
12693
|
});
|
12699
12694
|
}
|
12700
|
-
function
|
12695
|
+
function m4(s) {
|
12701
12696
|
return dh(s, "NodeList");
|
12702
12697
|
}
|
12703
|
-
function
|
12698
|
+
function v4(s) {
|
12704
12699
|
return dh(s, "MouseEvent");
|
12705
12700
|
}
|
12706
|
-
function
|
12701
|
+
function y4(s) {
|
12707
12702
|
return !!(s && s._tippy && s._tippy.reference === s);
|
12708
12703
|
}
|
12709
|
-
function
|
12710
|
-
return Qo(s) ? [s] :
|
12704
|
+
function b4(s) {
|
12705
|
+
return Qo(s) ? [s] : m4(s) ? Go(s) : Array.isArray(s) ? s : Go(document.querySelectorAll(s));
|
12711
12706
|
}
|
12712
12707
|
function Vl(s, t) {
|
12713
12708
|
s.forEach(function(e) {
|
@@ -12719,14 +12714,14 @@ function Hu(s, t) {
|
|
12719
12714
|
e && e.setAttribute("data-state", t);
|
12720
12715
|
});
|
12721
12716
|
}
|
12722
|
-
function
|
12717
|
+
function A4(s) {
|
12723
12718
|
var t, e = Rn(s), i = e[0];
|
12724
12719
|
return i != null && (t = i.ownerDocument) != null && t.body ? i.ownerDocument : document;
|
12725
12720
|
}
|
12726
|
-
function
|
12721
|
+
function E4(s, t) {
|
12727
12722
|
var e = t.clientX, i = t.clientY;
|
12728
12723
|
return s.every(function(n) {
|
12729
|
-
var o = n.popperRect, c = n.popperState, d = n.props, f = d.interactiveBorder, p =
|
12724
|
+
var o = n.popperRect, c = n.popperState, d = n.props, f = d.interactiveBorder, p = g4(c.placement), g = c.modifiersData.offset;
|
12730
12725
|
if (!g)
|
12731
12726
|
return !0;
|
12732
12727
|
var y = p === "bottom" ? g.top.y : 0, A = p === "top" ? g.bottom.y : 0, E = p === "right" ? g.left.x : 0, T = p === "left" ? g.right.x : 0, w = o.top - i + y > f, C = i - o.bottom - A > f, P = o.left - e + E > f, O = e - o.right - T > f;
|
@@ -12751,32 +12746,32 @@ function Wu(s, t) {
|
|
12751
12746
|
var Gr = {
|
12752
12747
|
isTouch: !1
|
12753
12748
|
}, ju = 0;
|
12754
|
-
function
|
12749
|
+
function T4() {
|
12755
12750
|
Gr.isTouch || (Gr.isTouch = !0, window.performance && document.addEventListener("mousemove", tp));
|
12756
12751
|
}
|
12757
12752
|
function tp() {
|
12758
12753
|
var s = performance.now();
|
12759
12754
|
s - ju < 20 && (Gr.isTouch = !1, document.removeEventListener("mousemove", tp)), ju = s;
|
12760
12755
|
}
|
12761
|
-
function
|
12756
|
+
function k4() {
|
12762
12757
|
var s = document.activeElement;
|
12763
|
-
if (
|
12758
|
+
if (y4(s)) {
|
12764
12759
|
var t = s._tippy;
|
12765
12760
|
s.blur && !t.state.isVisible && s.blur();
|
12766
12761
|
}
|
12767
12762
|
}
|
12768
|
-
function
|
12769
|
-
document.addEventListener("touchstart",
|
12763
|
+
function w4() {
|
12764
|
+
document.addEventListener("touchstart", T4, Xs), window.addEventListener("blur", k4);
|
12770
12765
|
}
|
12771
|
-
var
|
12766
|
+
var S4 = typeof window < "u" && typeof document < "u", R4 = S4 ? (
|
12772
12767
|
// @ts-ignore
|
12773
12768
|
!!window.msCrypto
|
12774
|
-
) : !1,
|
12769
|
+
) : !1, _4 = {
|
12775
12770
|
animateFill: !1,
|
12776
12771
|
followCursor: !1,
|
12777
12772
|
inlinePositioning: !1,
|
12778
12773
|
sticky: !1
|
12779
|
-
},
|
12774
|
+
}, L4 = {
|
12780
12775
|
allowHTML: !1,
|
12781
12776
|
animation: "fade",
|
12782
12777
|
arrow: !0,
|
@@ -12834,7 +12829,7 @@ var w4 = typeof window < "u" && typeof document < "u", S4 = w4 ? (
|
|
12834
12829
|
touch: !0,
|
12835
12830
|
trigger: "mouseenter focus",
|
12836
12831
|
triggerTarget: null
|
12837
|
-
},
|
12832
|
+
}, _4, L4), C4 = Object.keys(Lr), I4 = function(t) {
|
12838
12833
|
var e = Object.keys(t);
|
12839
12834
|
e.forEach(function(i) {
|
12840
12835
|
Lr[i] = t[i];
|
@@ -12851,10 +12846,10 @@ function ep(s) {
|
|
12851
12846
|
}, {});
|
12852
12847
|
return Object.assign({}, s, e);
|
12853
12848
|
}
|
12854
|
-
function
|
12849
|
+
function x4(s, t) {
|
12855
12850
|
var e = t ? Object.keys(ep(Object.assign({}, Lr, {
|
12856
12851
|
plugins: t
|
12857
|
-
}))) :
|
12852
|
+
}))) : C4, i = e.reduce(function(n, o) {
|
12858
12853
|
var c = (s.getAttribute("data-tippy-" + o) || "").trim();
|
12859
12854
|
if (!c)
|
12860
12855
|
return n;
|
@@ -12873,17 +12868,17 @@ function I4(s, t) {
|
|
12873
12868
|
function Ku(s, t) {
|
12874
12869
|
var e = Object.assign({}, t, {
|
12875
12870
|
content: Jf(t.content, [s])
|
12876
|
-
}, t.ignoreAttributes ? {} :
|
12871
|
+
}, t.ignoreAttributes ? {} : x4(s, t.plugins));
|
12877
12872
|
return e.aria = Object.assign({}, Lr.aria, e.aria), e.aria = {
|
12878
12873
|
expanded: e.aria.expanded === "auto" ? t.interactive : e.aria.expanded,
|
12879
12874
|
content: e.aria.content === "auto" ? t.interactive ? null : "describedby" : e.aria.content
|
12880
12875
|
}, e;
|
12881
12876
|
}
|
12882
|
-
var
|
12877
|
+
var D4 = function() {
|
12883
12878
|
return "innerHTML";
|
12884
12879
|
};
|
12885
12880
|
function Cc(s, t) {
|
12886
|
-
s[
|
12881
|
+
s[D4()] = t;
|
12887
12882
|
}
|
12888
12883
|
function zu(s) {
|
12889
12884
|
var t = va();
|
@@ -12903,13 +12898,13 @@ function Ic(s) {
|
|
12903
12898
|
return i.classList.contains(Zf) || i.classList.contains(qf);
|
12904
12899
|
}),
|
12905
12900
|
backdrop: e.find(function(i) {
|
12906
|
-
return i.classList.contains(
|
12901
|
+
return i.classList.contains(u4);
|
12907
12902
|
})
|
12908
12903
|
};
|
12909
12904
|
}
|
12910
12905
|
function ip(s) {
|
12911
12906
|
var t = va(), e = va();
|
12912
|
-
e.className =
|
12907
|
+
e.className = d4, e.setAttribute("data-state", "hidden"), e.setAttribute("tabindex", "-1");
|
12913
12908
|
var i = va();
|
12914
12909
|
i.className = Xf, i.setAttribute("data-state", "hidden"), Yu(i, s.props), t.appendChild(e), e.appendChild(i), n(s.props, s.props);
|
12915
12910
|
function n(o, c) {
|
@@ -12922,9 +12917,9 @@ function ip(s) {
|
|
12922
12917
|
};
|
12923
12918
|
}
|
12924
12919
|
ip.$$tippy = !0;
|
12925
|
-
var
|
12926
|
-
function
|
12927
|
-
var e = Ku(s, Object.assign({}, Lr, ep(Vu(t)))), i, n, o, c = !1, d = !1, f = !1, p = !1, g, y, A, E = [], T = Bu(Oe, e.interactiveDebounce), w, C =
|
12920
|
+
var P4 = 1, ro = [], Wl = [];
|
12921
|
+
function O4(s, t) {
|
12922
|
+
var e = Ku(s, Object.assign({}, Lr, ep(Vu(t)))), i, n, o, c = !1, d = !1, f = !1, p = !1, g, y, A, E = [], T = Bu(Oe, e.interactiveDebounce), w, C = P4++, P = null, O = p4(e.plugins), B = {
|
12928
12923
|
// Is the instance currently enabled?
|
12929
12924
|
isEnabled: !0,
|
12930
12925
|
// Is the tippy currently showing and not transitioning out?
|
@@ -12984,7 +12979,7 @@ function P4(s, t) {
|
|
12984
12979
|
}
|
12985
12980
|
function Vt() {
|
12986
12981
|
var dt = Ot().parentNode;
|
12987
|
-
return dt ?
|
12982
|
+
return dt ? A4(dt) : document;
|
12988
12983
|
}
|
12989
12984
|
function G() {
|
12990
12985
|
return Ic(F);
|
@@ -13096,14 +13091,14 @@ function P4(s, t) {
|
|
13096
13091
|
passive: !0
|
13097
13092
|
}), Re("touchend", Ut, {
|
13098
13093
|
passive: !0
|
13099
|
-
})),
|
13094
|
+
})), f4(x.props.trigger).forEach(function(dt) {
|
13100
13095
|
if (dt !== "manual")
|
13101
13096
|
switch (Re(dt, he), dt) {
|
13102
13097
|
case "mouseenter":
|
13103
13098
|
Re("mouseleave", Ut);
|
13104
13099
|
break;
|
13105
13100
|
case "focus":
|
13106
|
-
Re(
|
13101
|
+
Re(R4 ? "focusout" : "blur", je);
|
13107
13102
|
break;
|
13108
13103
|
case "focusin":
|
13109
13104
|
Re("focusout", je);
|
@@ -13121,7 +13116,7 @@ function P4(s, t) {
|
|
13121
13116
|
var Gt, Xt = !1;
|
13122
13117
|
if (!(!x.state.isEnabled || $e(dt) || d)) {
|
13123
13118
|
var ve = ((Gt = g) == null ? void 0 : Gt.type) === "focus";
|
13124
|
-
g = dt, w = dt.currentTarget, j(), !x.state.isVisible &&
|
13119
|
+
g = dt, w = dt.currentTarget, j(), !x.state.isVisible && v4(dt) && ro.forEach(function(se) {
|
13125
13120
|
return se(dt);
|
13126
13121
|
}), dt.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || c) && x.props.hideOnClick !== !1 && x.state.isVisible ? Xt = !0 : oe(dt), dt.type === "click" && (c = !Xt), Xt && !ve && Ne(dt);
|
13127
13122
|
}
|
@@ -13137,7 +13132,7 @@ function P4(s, t) {
|
|
13137
13132
|
props: e
|
13138
13133
|
} : null;
|
13139
13134
|
}).filter(Boolean);
|
13140
|
-
|
13135
|
+
E4(ve, dt) && (nt(), Ne(dt));
|
13141
13136
|
}
|
13142
13137
|
}
|
13143
13138
|
function Ut(dt) {
|
@@ -13207,7 +13202,7 @@ function P4(s, t) {
|
|
13207
13202
|
element: Li,
|
13208
13203
|
padding: 3
|
13209
13204
|
}
|
13210
|
-
}), lr.push.apply(lr, (Gt == null ? void 0 : Gt.modifiers) || []), x.popperInstance =
|
13205
|
+
}), lr.push.apply(lr, (Gt == null ? void 0 : Gt.modifiers) || []), x.popperInstance = h4(or, F, Object.assign({}, Gt, {
|
13211
13206
|
placement: Xt,
|
13212
13207
|
onFirstUpdate: A,
|
13213
13208
|
modifiers: lr
|
@@ -13319,17 +13314,17 @@ function P4(s, t) {
|
|
13319
13314
|
function dn(s, t) {
|
13320
13315
|
t === void 0 && (t = {});
|
13321
13316
|
var e = Lr.plugins.concat(t.plugins || []);
|
13322
|
-
|
13317
|
+
w4();
|
13323
13318
|
var i = Object.assign({}, t, {
|
13324
13319
|
plugins: e
|
13325
|
-
}), n =
|
13326
|
-
var f = d &&
|
13320
|
+
}), n = b4(s), o = n.reduce(function(c, d) {
|
13321
|
+
var f = d && O4(d, i);
|
13327
13322
|
return f && c.push(f), c;
|
13328
13323
|
}, []);
|
13329
13324
|
return Qo(s) ? o[0] : o;
|
13330
13325
|
}
|
13331
13326
|
dn.defaultProps = Lr;
|
13332
|
-
dn.setDefaultProps =
|
13327
|
+
dn.setDefaultProps = I4;
|
13333
13328
|
dn.currentInput = Gr;
|
13334
13329
|
Object.assign({}, Gf, {
|
13335
13330
|
effect: function(t) {
|
@@ -13356,8 +13351,8 @@ class ns extends Error {
|
|
13356
13351
|
super(), this.fatal = !1, this.message = t, this.fatal = e;
|
13357
13352
|
}
|
13358
13353
|
}
|
13359
|
-
const
|
13360
|
-
class
|
13354
|
+
const M4 = 5;
|
13355
|
+
class $4 {
|
13361
13356
|
constructor(t) {
|
13362
13357
|
this._caption = "", this._currentTime = 0, this._activeScenes = [], this._upcomingScenes = [], this._canvas = Oi(), this._controls = Oi(), this.host = t;
|
13363
13358
|
}
|
@@ -13373,7 +13368,7 @@ class M4 {
|
|
13373
13368
|
set currentTime(t) {
|
13374
13369
|
var e, i, n, o, c;
|
13375
13370
|
const d = Math.min(this.host.duration, Math.max(0, t));
|
13376
|
-
this._currentTime = d, this.activeScenes = ((e = this.host.scenes) == null ? void 0 : e.filter(({ start: g, duration: y }) => d >= g && d <= g + y)) ?? [], this._upcomingScenes = ((i = this.host.scenes) == null ? void 0 : i.filter(({ start: g }) => d >= g -
|
13371
|
+
this._currentTime = d, this.activeScenes = ((e = this.host.scenes) == null ? void 0 : e.filter(({ start: g, duration: y }) => d >= g && d <= g + y)) ?? [], this._upcomingScenes = ((i = this.host.scenes) == null ? void 0 : i.filter(({ start: g }) => d >= g - M4 && d < g)) ?? [], this.loadScenes(), this.syncVideoState(), (n = this._controls.value) == null || n.setAttribute("currentTime", d.toString());
|
13377
13372
|
const f = this.activeScenes[0], p = Pf((o = f == null ? void 0 : f.videoMeta) == null ? void 0 : o.captions);
|
13378
13373
|
this.caption = ((c = p.find(({ start: g, end: y }) => {
|
13379
13374
|
var A;
|
@@ -13452,7 +13447,7 @@ class M4 {
|
|
13452
13447
|
(t = e == null ? void 0 : e.getContext("2d")) == null || t.clearRect(0, 0, e.width, e.height);
|
13453
13448
|
}
|
13454
13449
|
}
|
13455
|
-
function
|
13450
|
+
function N4(s) {
|
13456
13451
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
13457
13452
|
}
|
13458
13453
|
var rp = { exports: {} };
|
@@ -13546,15 +13541,15 @@ function tr(s) {
|
|
13546
13541
|
for (var t = 1; t < arguments.length; t++) {
|
13547
13542
|
var e = arguments[t] != null ? arguments[t] : {};
|
13548
13543
|
t % 2 ? Xu(Object(e), !0).forEach(function(i) {
|
13549
|
-
|
13544
|
+
F4(s, i, e[i]);
|
13550
13545
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(e)) : Xu(Object(e)).forEach(function(i) {
|
13551
13546
|
Object.defineProperty(s, i, Object.getOwnPropertyDescriptor(e, i));
|
13552
13547
|
});
|
13553
13548
|
}
|
13554
13549
|
return s;
|
13555
13550
|
}
|
13556
|
-
function
|
13557
|
-
return t =
|
13551
|
+
function F4(s, t, e) {
|
13552
|
+
return t = B4(t), t in s ? Object.defineProperty(s, t, {
|
13558
13553
|
value: e,
|
13559
13554
|
enumerable: !0,
|
13560
13555
|
configurable: !0,
|
@@ -13571,7 +13566,7 @@ function di() {
|
|
13571
13566
|
return s;
|
13572
13567
|
}, di.apply(this, arguments);
|
13573
13568
|
}
|
13574
|
-
function
|
13569
|
+
function U4(s, t) {
|
13575
13570
|
if (typeof s != "object" || s === null)
|
13576
13571
|
return s;
|
13577
13572
|
var e = s[Symbol.toPrimitive];
|
@@ -13583,8 +13578,8 @@ function F4(s, t) {
|
|
13583
13578
|
}
|
13584
13579
|
return (t === "string" ? String : Number)(s);
|
13585
13580
|
}
|
13586
|
-
function
|
13587
|
-
var t =
|
13581
|
+
function B4(s) {
|
13582
|
+
var t = U4(s, "string");
|
13588
13583
|
return typeof t == "symbol" ? t : String(t);
|
13589
13584
|
}
|
13590
13585
|
const jt = Number.isFinite || function(s) {
|
@@ -13607,18 +13602,18 @@ const Zs = function() {
|
|
13607
13602
|
error: Zs
|
13608
13603
|
};
|
13609
13604
|
let ya = xc;
|
13610
|
-
function
|
13605
|
+
function G4(s) {
|
13611
13606
|
const t = self.console[s];
|
13612
13607
|
return t ? t.bind(self.console, `[${s}] >`) : Zs;
|
13613
13608
|
}
|
13614
|
-
function
|
13609
|
+
function V4(s, ...t) {
|
13615
13610
|
t.forEach(function(e) {
|
13616
|
-
ya[e] = s[e] ? s[e].bind(s) :
|
13611
|
+
ya[e] = s[e] ? s[e].bind(s) : G4(e);
|
13617
13612
|
});
|
13618
13613
|
}
|
13619
|
-
function
|
13614
|
+
function H4(s, t) {
|
13620
13615
|
if (self.console && s === !0 || typeof s == "object") {
|
13621
|
-
|
13616
|
+
V4(
|
13622
13617
|
s,
|
13623
13618
|
// Remove out from list here to hard-disable a log-level
|
13624
13619
|
// 'trace',
|
@@ -13636,7 +13631,7 @@ function V4(s, t) {
|
|
13636
13631
|
} else
|
13637
13632
|
ya = xc;
|
13638
13633
|
}
|
13639
|
-
const X = ya,
|
13634
|
+
const X = ya, W4 = /^(\d+)x(\d+)$/, Zu = /(.+?)=(".*?"|.*?)(?:,|$)/g;
|
13640
13635
|
class Qe {
|
13641
13636
|
constructor(t) {
|
13642
13637
|
typeof t == "string" && (t = Qe.parseAttrList(t));
|
@@ -13676,7 +13671,7 @@ class Qe {
|
|
13676
13671
|
return this[t] === "YES";
|
13677
13672
|
}
|
13678
13673
|
decimalResolution(t) {
|
13679
|
-
const e =
|
13674
|
+
const e = W4.exec(this[t]);
|
13680
13675
|
if (e !== null)
|
13681
13676
|
return {
|
13682
13677
|
width: parseInt(e[1], 10),
|
@@ -13695,10 +13690,10 @@ class Qe {
|
|
13695
13690
|
return i;
|
13696
13691
|
}
|
13697
13692
|
}
|
13698
|
-
function
|
13693
|
+
function j4(s) {
|
13699
13694
|
return s !== "ID" && s !== "CLASS" && s !== "START-DATE" && s !== "DURATION" && s !== "END-DATE" && s !== "END-ON-NEXT";
|
13700
13695
|
}
|
13701
|
-
function
|
13696
|
+
function K4(s) {
|
13702
13697
|
return s === "SCTE35-OUT" || s === "SCTE35-IN";
|
13703
13698
|
}
|
13704
13699
|
class sp {
|
@@ -13905,7 +13900,7 @@ class jl extends np {
|
|
13905
13900
|
t[Pe.AUDIO] = null, t[Pe.VIDEO] = null, t[Pe.AUDIOVIDEO] = null;
|
13906
13901
|
}
|
13907
13902
|
}
|
13908
|
-
class
|
13903
|
+
class z4 extends np {
|
13909
13904
|
constructor(t, e, i, n, o) {
|
13910
13905
|
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 Jo(), this.duration = t.decimalFloatingPoint("DURATION"), this.gap = t.bool("GAP"), this.independent = t.bool("INDEPENDENT"), this.relurl = t.enumeratedString("URI"), this.fragment = e, this.index = n;
|
13911
13906
|
const c = t.enumeratedString("BYTERANGE");
|
@@ -13924,8 +13919,8 @@ class K4 extends np {
|
|
13924
13919
|
return !!(t.audio || t.video || t.audiovideo);
|
13925
13920
|
}
|
13926
13921
|
}
|
13927
|
-
const
|
13928
|
-
class
|
13922
|
+
const Y4 = 10;
|
13923
|
+
class X4 {
|
13929
13924
|
// Manifest reload synchronization
|
13930
13925
|
constructor(t) {
|
13931
13926
|
this.PTSKnown = !1, this.alignedSliding = !1, this.averagetargetduration = void 0, this.endCC = 0, this.endSN = 0, this.fragments = void 0, this.fragmentHint = void 0, this.partList = null, this.dateRanges = void 0, this.live = !0, this.ageHeader = 0, this.advancedDateTime = void 0, this.updated = !0, this.advanced = !0, this.availabilityDelay = void 0, this.misses = 0, this.startCC = 0, this.startSN = 0, this.startTimeOffset = null, this.targetduration = 0, this.totalduration = 0, this.type = null, this.url = void 0, this.m3u8 = "", this.version = null, this.canBlockReload = !1, this.canSkipUntil = 0, this.canSkipDateRanges = !1, this.skippedSegments = 0, this.recentlyRemovedDateranges = void 0, this.partHoldBack = 0, this.holdBack = 0, this.partTarget = 0, this.preloadHint = void 0, this.renditionReports = void 0, this.tuneInGoal = 0, this.deltaUpdateFailed = void 0, this.driftStartTime = 0, this.driftEndTime = 0, this.driftStart = 0, this.driftEnd = 0, this.encryptedFragments = void 0, this.playlistParsingError = null, this.variableList = null, this.hasVariableRefs = !1, this.fragments = [], this.encryptedFragments = [], this.dateRanges = {}, this.url = t;
|
@@ -13942,7 +13937,7 @@ class Y4 {
|
|
13942
13937
|
return this.fragments.length ? jt(this.fragments[this.fragments.length - 1].programDateTime) : !1;
|
13943
13938
|
}
|
13944
13939
|
get levelTargetDuration() {
|
13945
|
-
return this.averagetargetduration || this.targetduration ||
|
13940
|
+
return this.averagetargetduration || this.targetduration || Y4;
|
13946
13941
|
}
|
13947
13942
|
get drift() {
|
13948
13943
|
const t = this.driftEndTime - this.driftStartTime;
|
@@ -13974,25 +13969,25 @@ class Y4 {
|
|
13974
13969
|
function fh(s) {
|
13975
13970
|
return Uint8Array.from(atob(s), (t) => t.charCodeAt(0));
|
13976
13971
|
}
|
13977
|
-
function
|
13972
|
+
function Z4(s) {
|
13978
13973
|
const t = ap(s).subarray(0, 16), e = new Uint8Array(16);
|
13979
13974
|
return e.set(t, 16 - t.length), e;
|
13980
13975
|
}
|
13981
|
-
function
|
13976
|
+
function q4(s) {
|
13982
13977
|
const t = function(e, i, n) {
|
13983
13978
|
const o = e[i];
|
13984
13979
|
e[i] = e[n], e[n] = o;
|
13985
13980
|
};
|
13986
13981
|
t(s, 0, 3), t(s, 1, 2), t(s, 4, 5), t(s, 6, 7);
|
13987
13982
|
}
|
13988
|
-
function
|
13983
|
+
function Q4(s) {
|
13989
13984
|
const t = s.split(":");
|
13990
13985
|
let e = null;
|
13991
13986
|
if (t[0] === "data" && t.length === 2) {
|
13992
13987
|
const i = t[1].split(";"), n = i[i.length - 1].split(",");
|
13993
13988
|
if (n.length === 2) {
|
13994
13989
|
const o = n[0] === "base64", c = n[1];
|
13995
|
-
o ? (i.splice(-1, 1), e = fh(c)) : e =
|
13990
|
+
o ? (i.splice(-1, 1), e = fh(c)) : e = Z4(c);
|
13996
13991
|
}
|
13997
13992
|
}
|
13998
13993
|
return e;
|
@@ -14026,7 +14021,7 @@ function qu(s) {
|
|
14026
14021
|
var op = {
|
14027
14022
|
WIDEVINE: "edef8ba979d64acea3c827dcd51d21ed"
|
14028
14023
|
};
|
14029
|
-
function
|
14024
|
+
function J4(s) {
|
14030
14025
|
if (s === op.WIDEVINE)
|
14031
14026
|
return ti.WIDEVINE;
|
14032
14027
|
}
|
@@ -14052,7 +14047,7 @@ function Kl(s) {
|
|
14052
14047
|
const lp = function() {
|
14053
14048
|
return typeof self < "u" && self.navigator && self.navigator.requestMediaKeySystemAccess ? self.navigator.requestMediaKeySystemAccess.bind(self.navigator) : null;
|
14054
14049
|
}();
|
14055
|
-
function
|
14050
|
+
function tA(s, t, e, i) {
|
14056
14051
|
let n;
|
14057
14052
|
switch (s) {
|
14058
14053
|
case ti.FAIRPLAY:
|
@@ -14068,9 +14063,9 @@ function J4(s, t, e, i) {
|
|
14068
14063
|
default:
|
14069
14064
|
throw new Error(`Unknown key-system: ${s}`);
|
14070
14065
|
}
|
14071
|
-
return
|
14066
|
+
return eA(n, t, e, i);
|
14072
14067
|
}
|
14073
|
-
function
|
14068
|
+
function eA(s, t, e, i) {
|
14074
14069
|
return [{
|
14075
14070
|
initDataTypes: s,
|
14076
14071
|
persistentState: i.persistentState || "not-allowed",
|
@@ -14104,14 +14099,14 @@ const ph = (s, t) => t + 10 <= s.length && s[t] === 73 && s[t + 1] === 68 && s[t
|
|
14104
14099
|
}, tl = (s, t) => {
|
14105
14100
|
let e = 0;
|
14106
14101
|
return e = (s[t] & 127) << 21, e |= (s[t + 1] & 127) << 14, e |= (s[t + 2] & 127) << 7, e |= s[t + 3] & 127, e;
|
14107
|
-
},
|
14102
|
+
}, iA = (s, t) => ph(s, t) && tl(s, t + 6) + 10 <= s.length - t, rA = (s) => {
|
14108
14103
|
const t = dp(s);
|
14109
14104
|
for (let e = 0; e < t.length; e++) {
|
14110
14105
|
const i = t[e];
|
14111
14106
|
if (hp(i))
|
14112
|
-
return
|
14107
|
+
return cA(i);
|
14113
14108
|
}
|
14114
|
-
}, hp = (s) => s && s.key === "PRIV" && s.info === "com.apple.streaming.transportStreamTimestamp",
|
14109
|
+
}, hp = (s) => s && s.key === "PRIV" && s.info === "com.apple.streaming.transportStreamTimestamp", sA = (s) => {
|
14115
14110
|
const t = String.fromCharCode(s[0], s[1], s[2], s[3]), e = tl(s, 4), i = 10;
|
14116
14111
|
return {
|
14117
14112
|
type: t,
|
@@ -14126,13 +14121,13 @@ const ph = (s, t) => t + 10 <= s.length && s[t] === 73 && s[t + 1] === 68 && s[t
|
|
14126
14121
|
t += 10;
|
14127
14122
|
const n = t + i;
|
14128
14123
|
for (; t + 8 < n; ) {
|
14129
|
-
const o =
|
14124
|
+
const o = sA(s.subarray(t)), c = nA(o);
|
14130
14125
|
c && e.push(c), t += o.size + 10;
|
14131
14126
|
}
|
14132
14127
|
cp(s, t) && (t += 10);
|
14133
14128
|
}
|
14134
14129
|
return e;
|
14135
|
-
},
|
14130
|
+
}, nA = (s) => s.type === "PRIV" ? aA(s) : s.type[0] === "W" ? lA(s) : oA(s), aA = (s) => {
|
14136
14131
|
if (s.size < 2)
|
14137
14132
|
return;
|
14138
14133
|
const t = Wr(s.data, !0), e = new Uint8Array(s.data.subarray(t.length + 1));
|
@@ -14141,7 +14136,7 @@ const ph = (s, t) => t + 10 <= s.length && s[t] === 73 && s[t + 1] === 68 && s[t
|
|
14141
14136
|
info: t,
|
14142
14137
|
data: e.buffer
|
14143
14138
|
};
|
14144
|
-
},
|
14139
|
+
}, oA = (s) => {
|
14145
14140
|
if (s.size < 2)
|
14146
14141
|
return;
|
14147
14142
|
if (s.type === "TXXX") {
|
@@ -14160,7 +14155,7 @@ const ph = (s, t) => t + 10 <= s.length && s[t] === 73 && s[t + 1] === 68 && s[t
|
|
14160
14155
|
key: s.type,
|
14161
14156
|
data: t
|
14162
14157
|
};
|
14163
|
-
},
|
14158
|
+
}, lA = (s) => {
|
14164
14159
|
if (s.type === "WXXX") {
|
14165
14160
|
if (s.size < 2)
|
14166
14161
|
return;
|
@@ -14179,14 +14174,14 @@ const ph = (s, t) => t + 10 <= s.length && s[t] === 73 && s[t + 1] === 68 && s[t
|
|
14179
14174
|
key: s.type,
|
14180
14175
|
data: t
|
14181
14176
|
};
|
14182
|
-
},
|
14177
|
+
}, cA = (s) => {
|
14183
14178
|
if (s.data.byteLength === 8) {
|
14184
14179
|
const t = new Uint8Array(s.data), e = t[3] & 1;
|
14185
14180
|
let i = (t[4] << 23) + (t[5] << 15) + (t[6] << 7) + t[7];
|
14186
14181
|
return i /= 45, e && (i += 4772185884e-2), Math.round(i);
|
14187
14182
|
}
|
14188
14183
|
}, Wr = (s, t = !1) => {
|
14189
|
-
const e =
|
14184
|
+
const e = hA();
|
14190
14185
|
if (e) {
|
14191
14186
|
const p = e.decode(s);
|
14192
14187
|
if (t) {
|
@@ -14224,7 +14219,7 @@ const ph = (s, t) => t + 10 <= s.length && s[t] === 73 && s[t + 1] === 68 && s[t
|
|
14224
14219
|
return d;
|
14225
14220
|
};
|
14226
14221
|
let zl;
|
14227
|
-
function
|
14222
|
+
function hA() {
|
14228
14223
|
return !zl && typeof self.TextDecoder < "u" && (zl = new self.TextDecoder("utf-8")), zl;
|
14229
14224
|
}
|
14230
14225
|
const Br = {
|
@@ -14236,7 +14231,7 @@ const Br = {
|
|
14236
14231
|
}
|
14237
14232
|
return t;
|
14238
14233
|
}
|
14239
|
-
}, Ho = Math.pow(2, 32) - 1,
|
14234
|
+
}, Ho = Math.pow(2, 32) - 1, dA = [].push, up = {
|
14240
14235
|
video: 1,
|
14241
14236
|
audio: 2,
|
14242
14237
|
id3: 3,
|
@@ -14271,13 +14266,13 @@ function Ae(s, t) {
|
|
14271
14266
|
e.push(s.subarray(n + 8, d));
|
14272
14267
|
else {
|
14273
14268
|
const f = Ae(s.subarray(n + 8, d), t.slice(1));
|
14274
|
-
f.length &&
|
14269
|
+
f.length && dA.apply(e, f);
|
14275
14270
|
}
|
14276
14271
|
n = d;
|
14277
14272
|
}
|
14278
14273
|
return e;
|
14279
14274
|
}
|
14280
|
-
function
|
14275
|
+
function uA(s) {
|
14281
14276
|
const t = [], e = s[0];
|
14282
14277
|
let i = 8;
|
14283
14278
|
const n = ee(s, i);
|
@@ -14353,7 +14348,7 @@ function gp(s) {
|
|
14353
14348
|
});
|
14354
14349
|
}), t;
|
14355
14350
|
}
|
14356
|
-
function
|
14351
|
+
function fA(s, t) {
|
14357
14352
|
if (!s || !t)
|
14358
14353
|
return s;
|
14359
14354
|
const e = t.keyId;
|
@@ -14382,7 +14377,7 @@ function mp(s) {
|
|
14382
14377
|
}
|
14383
14378
|
return X.error("[eme] missing 'schm' box"), null;
|
14384
14379
|
}
|
14385
|
-
function
|
14380
|
+
function pA(s, t) {
|
14386
14381
|
return Ae(t, ["moof", "traf"]).reduce((e, i) => {
|
14387
14382
|
const n = Ae(i, ["tfdt"])[0], o = n[0], c = Ae(i, ["tfhd"]).reduce((d, f) => {
|
14388
14383
|
const p = ee(f, 4), g = s[p];
|
@@ -14402,7 +14397,7 @@ function fA(s, t) {
|
|
14402
14397
|
return c !== null && isFinite(c) && (e === null || c < e) ? c : e;
|
14403
14398
|
}, null);
|
14404
14399
|
}
|
14405
|
-
function
|
14400
|
+
function gA(s, t) {
|
14406
14401
|
let e = 0, i = 0, n = 0;
|
14407
14402
|
const o = Ae(s, ["moof", "traf"]);
|
14408
14403
|
for (let c = 0; c < o.length; c++) {
|
@@ -14414,7 +14409,7 @@ function pA(s, t) {
|
|
14414
14409
|
A & 8 && (A & 2 ? E = ee(f, 12) : E = ee(f, 8));
|
14415
14410
|
const T = g.timescale || 9e4, w = Ae(d, ["trun"]);
|
14416
14411
|
for (let C = 0; C < w.length; C++) {
|
14417
|
-
if (e =
|
14412
|
+
if (e = mA(w[C]), !e && E) {
|
14418
14413
|
const P = ee(w[C], 4);
|
14419
14414
|
e = E * P;
|
14420
14415
|
}
|
@@ -14425,14 +14420,14 @@ function pA(s, t) {
|
|
14425
14420
|
let c = 0;
|
14426
14421
|
const d = Ae(s, ["sidx"]);
|
14427
14422
|
for (let f = 0; f < d.length; f++) {
|
14428
|
-
const p =
|
14423
|
+
const p = uA(d[f]);
|
14429
14424
|
p != null && p.references && (c += p.references.reduce((g, y) => g + y.info.duration || 0, 0));
|
14430
14425
|
}
|
14431
14426
|
return c;
|
14432
14427
|
}
|
14433
14428
|
return i || n;
|
14434
14429
|
}
|
14435
|
-
function
|
14430
|
+
function mA(s) {
|
14436
14431
|
const t = ee(s, 0);
|
14437
14432
|
let e = 8;
|
14438
14433
|
t & 1 && (e += 4), t & 4 && (e += 4);
|
@@ -14447,7 +14442,7 @@ function gA(s) {
|
|
14447
14442
|
}
|
14448
14443
|
return i;
|
14449
14444
|
}
|
14450
|
-
function
|
14445
|
+
function vA(s, t, e) {
|
14451
14446
|
Ae(t, ["moof", "traf"]).forEach((i) => {
|
14452
14447
|
Ae(i, ["tfhd"]).forEach((n) => {
|
14453
14448
|
const o = ee(n, 4), c = s[o];
|
@@ -14468,7 +14463,7 @@ function mA(s, t, e) {
|
|
14468
14463
|
});
|
14469
14464
|
});
|
14470
14465
|
}
|
14471
|
-
function
|
14466
|
+
function yA(s) {
|
14472
14467
|
const t = {
|
14473
14468
|
valid: null,
|
14474
14469
|
remainder: null
|
@@ -14503,7 +14498,7 @@ function Ju(s, t) {
|
|
14503
14498
|
let B = 0;
|
14504
14499
|
const x = (E & 32) !== 0;
|
14505
14500
|
let H = 8;
|
14506
|
-
A === o && (T && (H += 8), w && (H += 4), C && (P = ee(y, H), H += 4), O && (B = ee(y, H), H += 4), x && (H += 4), t.type === "video" && (c =
|
14501
|
+
A === o && (T && (H += 8), w && (H += 4), C && (P = ee(y, H), H += 4), O && (B = ee(y, H), H += 4), x && (H += 4), t.type === "video" && (c = bA(t.codec)), Ae(p, ["trun"]).map((F) => {
|
14507
14502
|
const z = F[0], tt = ee(F, 0) & 16777215, at = (tt & 1) !== 0;
|
14508
14503
|
let J = 0;
|
14509
14504
|
const kt = (tt & 4) !== 0, mt = (tt & 256) !== 0;
|
@@ -14521,7 +14516,7 @@ function Ju(s, t) {
|
|
14521
14516
|
let _t = 0;
|
14522
14517
|
for (; _t < G; ) {
|
14523
14518
|
const Ft = ee(i, nt);
|
14524
|
-
if (nt += 4,
|
14519
|
+
if (nt += 4, AA(c, i[nt])) {
|
14525
14520
|
const Wt = i.subarray(nt, nt + Ft);
|
14526
14521
|
vp(Wt, c ? 2 : 1, s + N / n, e);
|
14527
14522
|
}
|
@@ -14535,14 +14530,14 @@ function Ju(s, t) {
|
|
14535
14530
|
});
|
14536
14531
|
}), e;
|
14537
14532
|
}
|
14538
|
-
function
|
14533
|
+
function bA(s) {
|
14539
14534
|
if (!s)
|
14540
14535
|
return !1;
|
14541
14536
|
const t = s.indexOf("."), e = t < 0 ? s : s.substring(0, t);
|
14542
14537
|
return e === "hvc1" || e === "hev1" || // Dolby Vision
|
14543
14538
|
e === "dvh1" || e === "dvhe";
|
14544
14539
|
}
|
14545
|
-
function
|
14540
|
+
function AA(s, t) {
|
14546
14541
|
if (s) {
|
14547
14542
|
const e = t >> 1 & 63;
|
14548
14543
|
return e === 39 || e === 40;
|
@@ -14629,7 +14624,7 @@ function yp(s) {
|
|
14629
14624
|
c === e[0] && (c++, e.shift()), o[i] = s[c];
|
14630
14625
|
return o;
|
14631
14626
|
}
|
14632
|
-
function
|
14627
|
+
function EA(s) {
|
14633
14628
|
const t = s[0];
|
14634
14629
|
let e = "", i = "", n = 0, o = 0, c = 0, d = 0, f = 0, p = 0;
|
14635
14630
|
if (t === 0) {
|
@@ -14661,7 +14656,7 @@ function AA(s) {
|
|
14661
14656
|
payload: g
|
14662
14657
|
};
|
14663
14658
|
}
|
14664
|
-
function
|
14659
|
+
function TA(s, ...t) {
|
14665
14660
|
const e = t.length;
|
14666
14661
|
let i = 8, n = e;
|
14667
14662
|
for (; n--; )
|
@@ -14671,7 +14666,7 @@ function EA(s, ...t) {
|
|
14671
14666
|
o.set(t[n], i), i += t[n].byteLength;
|
14672
14667
|
return o;
|
14673
14668
|
}
|
14674
|
-
function
|
14669
|
+
function kA(s, t, e) {
|
14675
14670
|
if (s.byteLength !== 16)
|
14676
14671
|
throw new RangeError("Invalid system id");
|
14677
14672
|
let i, n;
|
@@ -14688,7 +14683,7 @@ function TA(s, t, e) {
|
|
14688
14683
|
let o;
|
14689
14684
|
i > 0 ? (o = new Uint8Array(4), t.length > 0 && new DataView(o.buffer).setUint32(0, t.length, !1)) : o = new Uint8Array();
|
14690
14685
|
const c = new Uint8Array(4);
|
14691
|
-
return e && e.byteLength > 0 && new DataView(c.buffer).setUint32(0, e.byteLength, !1),
|
14686
|
+
return e && e.byteLength > 0 && new DataView(c.buffer).setUint32(0, e.byteLength, !1), TA(
|
14692
14687
|
[112, 115, 115, 104],
|
14693
14688
|
new Uint8Array([
|
14694
14689
|
i,
|
@@ -14705,7 +14700,7 @@ function TA(s, t, e) {
|
|
14705
14700
|
e || new Uint8Array()
|
14706
14701
|
);
|
14707
14702
|
}
|
14708
|
-
function
|
14703
|
+
function wA(s) {
|
14709
14704
|
if (!(s instanceof ArrayBuffer) || s.byteLength < 32)
|
14710
14705
|
return null;
|
14711
14706
|
const t = {
|
@@ -14758,10 +14753,10 @@ class _a {
|
|
14758
14753
|
return null;
|
14759
14754
|
if (this.method === "AES-128" && this.uri && !this.iv) {
|
14760
14755
|
typeof t != "number" && (this.method === "AES-128" && !this.iv && X.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`), t = 0);
|
14761
|
-
const i =
|
14756
|
+
const i = SA(t);
|
14762
14757
|
return new _a(this.method, this.uri, "identity", this.keyFormatVersions, i);
|
14763
14758
|
}
|
14764
|
-
const e =
|
14759
|
+
const e = Q4(this.uri);
|
14765
14760
|
if (e)
|
14766
14761
|
switch (this.keyFormat) {
|
14767
14762
|
case qi.WIDEVINE:
|
@@ -14769,13 +14764,13 @@ class _a {
|
|
14769
14764
|
break;
|
14770
14765
|
case qi.PLAYREADY: {
|
14771
14766
|
const i = new Uint8Array([154, 4, 240, 121, 152, 64, 66, 134, 171, 146, 230, 91, 224, 136, 95, 149]);
|
14772
|
-
this.pssh =
|
14767
|
+
this.pssh = kA(i, null, e);
|
14773
14768
|
const n = new Uint16Array(e.buffer, e.byteOffset, e.byteLength / 2), o = String.fromCharCode.apply(null, Array.from(n)), c = o.substring(o.indexOf("<"), o.length), d = new DOMParser().parseFromString(c, "text/xml").getElementsByTagName("KID")[0];
|
14774
14769
|
if (d) {
|
14775
14770
|
const f = d.childNodes[0] ? d.childNodes[0].nodeValue : d.getAttribute("VALUE");
|
14776
14771
|
if (f) {
|
14777
14772
|
const p = fh(f).subarray(0, 16);
|
14778
|
-
|
14773
|
+
q4(p), this.keyId = p;
|
14779
14774
|
}
|
14780
14775
|
}
|
14781
14776
|
break;
|
@@ -14801,7 +14796,7 @@ class _a {
|
|
14801
14796
|
return this;
|
14802
14797
|
}
|
14803
14798
|
}
|
14804
|
-
function
|
14799
|
+
function SA(s) {
|
14805
14800
|
const t = new Uint8Array(16);
|
14806
14801
|
for (let e = 12; e < 16; e++)
|
14807
14802
|
t[e] = s >> 8 * (15 - e) & 255;
|
@@ -14847,7 +14842,7 @@ function e0(s, t, e) {
|
|
14847
14842
|
n = t.NAME, o = t.VALUE;
|
14848
14843
|
n in i ? s.playlistParsingError || (s.playlistParsingError = new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${n}"`)) : i[n] = o || "";
|
14849
14844
|
}
|
14850
|
-
function
|
14845
|
+
function RA(s, t, e) {
|
14851
14846
|
const i = t.IMPORT;
|
14852
14847
|
if (e && i in e) {
|
14853
14848
|
let n = s.variableList;
|
@@ -14859,7 +14854,7 @@ function el() {
|
|
14859
14854
|
if (!(typeof self > "u"))
|
14860
14855
|
return self.MediaSource || self.WebKitMediaSource;
|
14861
14856
|
}
|
14862
|
-
const
|
14857
|
+
const _A = {
|
14863
14858
|
audio: {
|
14864
14859
|
a3ds: !0,
|
14865
14860
|
"ac-3": !0,
|
@@ -14931,15 +14926,15 @@ const RA = {
|
|
14931
14926
|
wvtt: !0
|
14932
14927
|
}
|
14933
14928
|
}, i0 = el();
|
14934
|
-
function
|
14935
|
-
const e =
|
14929
|
+
function LA(s, t) {
|
14930
|
+
const e = _A[t];
|
14936
14931
|
return !!e && e[s.slice(0, 4)] === !0;
|
14937
14932
|
}
|
14938
14933
|
function Xl(s, t) {
|
14939
14934
|
var e;
|
14940
14935
|
return (e = i0 == null ? void 0 : i0.isTypeSupported(`${t || "video"}/mp4;codecs="${s}"`)) != null ? e : !1;
|
14941
14936
|
}
|
14942
|
-
const r0 = /#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, s0 = /#EXT-X-MEDIA:(.*)/g,
|
14937
|
+
const r0 = /#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, s0 = /#EXT-X-MEDIA:(.*)/g, CA = /^#EXT(?:INF|-X-TARGETDURATION):/m, n0 = new RegExp([
|
14943
14938
|
/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,
|
14944
14939
|
// duration (#EXTINF:<duration>,<title>), group 1 => duration, group 2 => title
|
14945
14940
|
/(?!#) *(\S[\S ]*)/.source,
|
@@ -14950,7 +14945,7 @@ const r0 = /#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT
|
|
14950
14945
|
// next segment's program date/time group 5 => the datetime spec
|
14951
14946
|
/#.*/.source
|
14952
14947
|
// All other non-segment oriented tags will match with all groups empty
|
14953
|
-
].join("|"), "g"),
|
14948
|
+
].join("|"), "g"), IA = new RegExp([/#(EXTM3U)/.source, /#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source, /#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source, /#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source, /(#)([^:]*):(.*)/.source, /(#)(.*)(?:.*)\r?\n?/.source].join("|"));
|
14954
14949
|
class _r {
|
14955
14950
|
static findGroup(t, e) {
|
14956
14951
|
for (let i = 0; i < t.length; i++) {
|
@@ -14973,7 +14968,7 @@ class _r {
|
|
14973
14968
|
});
|
14974
14969
|
}
|
14975
14970
|
static isMediaPlaylist(t) {
|
14976
|
-
return
|
14971
|
+
return CA.test(t);
|
14977
14972
|
}
|
14978
14973
|
static parseMasterPlaylist(t, e) {
|
14979
14974
|
const i = t0(t), n = {
|
@@ -14999,7 +14994,7 @@ class _r {
|
|
14999
14994
|
name: p.NAME,
|
15000
14995
|
url: _r.resolve(g, e)
|
15001
14996
|
}, A = p.decimalResolution("RESOLUTION");
|
15002
|
-
A && (y.width = A.width, y.height = A.height),
|
14997
|
+
A && (y.width = A.width, y.height = A.height), xA((p.CODECS || "").split(/[ ,]+/).filter((E) => E), y), y.videoCodec && y.videoCodec.indexOf("avc1") !== -1 && (y.videoCodec = _r.convertAVC1ToAVCOTI(y.videoCodec)), (d = y.unknownCodecs) != null && d.length || o.push(y), n.levels.push(y);
|
15003
14998
|
} else if (c[3]) {
|
15004
14999
|
const p = c[3], g = c[4];
|
15005
15000
|
switch (p) {
|
@@ -15082,7 +15077,7 @@ class _r {
|
|
15082
15077
|
return o;
|
15083
15078
|
}
|
15084
15079
|
static parseLevelPlaylist(t, e, i, n, o, c) {
|
15085
|
-
const d = new
|
15080
|
+
const d = new X4(e), f = d.fragments;
|
15086
15081
|
let p = null, g = 0, y = 0, A = 0, E = 0, T = null, w = new jl(n, e), C, P, O, B = -1, x = !1;
|
15087
15082
|
for (n0.lastIndex = 0, d.m3u8 = t, d.hasVariableRefs = t0(t); (C = n0.exec(t)) !== null; ) {
|
15088
15083
|
x && (x = !1, w = new jl(n, e), w.start = A, w.sn = g, w.cc = E, w.level = i, p && (w.initSegment = p, w.rawProgramDateTime = p.rawProgramDateTime, p.rawProgramDateTime = null));
|
@@ -15103,7 +15098,7 @@ class _r {
|
|
15103
15098
|
} else if (C[5])
|
15104
15099
|
w.rawProgramDateTime = (" " + C[5]).slice(1), w.tagList.push(["PROGRAM-DATE-TIME", w.rawProgramDateTime]), B === -1 && (B = f.length);
|
15105
15100
|
else {
|
15106
|
-
if (C = C[0].match(
|
15101
|
+
if (C = C[0].match(IA), !C) {
|
15107
15102
|
X.warn("No matches on slow regex match for level playlist!");
|
15108
15103
|
continue;
|
15109
15104
|
}
|
@@ -15164,7 +15159,7 @@ class _r {
|
|
15164
15159
|
case "DEFINE": {
|
15165
15160
|
{
|
15166
15161
|
const mt = new Qe(J);
|
15167
|
-
Zi(d, mt, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in mt ?
|
15162
|
+
Zi(d, mt, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in mt ? RA(d, mt, c) : e0(d, mt, e);
|
15168
15163
|
}
|
15169
15164
|
break;
|
15170
15165
|
}
|
@@ -15210,7 +15205,7 @@ class _r {
|
|
15210
15205
|
mt || (mt = d.partList = []);
|
15211
15206
|
const Ot = y > 0 ? mt[mt.length - 1] : void 0, Vt = y++, G = new Qe(J);
|
15212
15207
|
Zi(d, G, ["BYTERANGE", "URI"]);
|
15213
|
-
const q = new
|
15208
|
+
const q = new z4(G, w, e, Vt, Ot);
|
15214
15209
|
mt.push(q), w.duration += q.duration;
|
15215
15210
|
break;
|
15216
15211
|
}
|
@@ -15238,7 +15233,7 @@ class _r {
|
|
15238
15233
|
d.endSN = tt !== "initSegment" ? tt : 0, d.live || (z.endList = !0), F && (d.startCC = F.cc);
|
15239
15234
|
} else
|
15240
15235
|
d.endSN = 0, d.startCC = 0;
|
15241
|
-
return d.fragmentHint && (A += d.fragmentHint.duration), d.totalduration = A, d.endCC = E, B > 0 &&
|
15236
|
+
return d.fragmentHint && (A += d.fragmentHint.duration), d.totalduration = A, d.endCC = E, B > 0 && DA(f, B), d;
|
15242
15237
|
}
|
15243
15238
|
}
|
15244
15239
|
function a0(s, t, e) {
|
@@ -15254,9 +15249,9 @@ function o0(s) {
|
|
15254
15249
|
const t = new Qe(s).decimalFloatingPoint("TIME-OFFSET");
|
15255
15250
|
return jt(t) ? t : null;
|
15256
15251
|
}
|
15257
|
-
function
|
15252
|
+
function xA(s, t) {
|
15258
15253
|
["video", "audio", "text"].forEach((e) => {
|
15259
|
-
const i = s.filter((n) =>
|
15254
|
+
const i = s.filter((n) => LA(n, e));
|
15260
15255
|
if (i.length) {
|
15261
15256
|
const n = i.filter((o) => o.lastIndexOf("avc1", 0) === 0 || o.lastIndexOf("mp4a", 0) === 0);
|
15262
15257
|
t[`${e}Codec`] = n.length > 0 ? n[0] : i[0], s = s.filter((o) => i.indexOf(o) === -1);
|
@@ -15267,7 +15262,7 @@ function l0(s, t, e) {
|
|
15267
15262
|
const i = t[e];
|
15268
15263
|
i && (s[e] = i);
|
15269
15264
|
}
|
15270
|
-
function
|
15265
|
+
function DA(s, t) {
|
15271
15266
|
let e = s[t];
|
15272
15267
|
for (let i = t; i--; ) {
|
15273
15268
|
const n = s[i];
|
@@ -15316,7 +15311,7 @@ function Zl(s, t) {
|
|
15316
15311
|
let e = s.url;
|
15317
15312
|
return (e === void 0 || e.indexOf("data:") === 0) && (e = t.url), e;
|
15318
15313
|
}
|
15319
|
-
class
|
15314
|
+
class PA {
|
15320
15315
|
constructor(t) {
|
15321
15316
|
this.hls = void 0, this.loaders = /* @__PURE__ */ Object.create(null), this.variableList = null, this.hls = t, this.registerListeners();
|
15322
15317
|
}
|
@@ -15728,13 +15723,13 @@ function Ln(s) {
|
|
15728
15723
|
function Pc(s, t, e, i) {
|
15729
15724
|
const n = s.mode;
|
15730
15725
|
if (n === "disabled" && (s.mode = "hidden"), s.cues && s.cues.length > 0) {
|
15731
|
-
const o =
|
15726
|
+
const o = MA(s.cues, t, e);
|
15732
15727
|
for (let c = 0; c < o.length; c++)
|
15733
15728
|
(!i || i(o[c])) && s.removeCue(o[c]);
|
15734
15729
|
}
|
15735
15730
|
n === "disabled" && (s.mode = n);
|
15736
15731
|
}
|
15737
|
-
function
|
15732
|
+
function OA(s, t) {
|
15738
15733
|
if (t < s[0].startTime)
|
15739
15734
|
return 0;
|
15740
15735
|
const e = s.length - 1;
|
@@ -15752,8 +15747,8 @@ function PA(s, t) {
|
|
15752
15747
|
}
|
15753
15748
|
return s[i].startTime - t < t - s[n].startTime ? i : n;
|
15754
15749
|
}
|
15755
|
-
function
|
15756
|
-
const i = [], n =
|
15750
|
+
function MA(s, t, e) {
|
15751
|
+
const i = [], n = OA(s, t);
|
15757
15752
|
if (n > -1)
|
15758
15753
|
for (let o = n, c = s.length; o < c; o++) {
|
15759
15754
|
const d = s[o];
|
@@ -15769,7 +15764,7 @@ var Rr = {
|
|
15769
15764
|
dateRange: "com.apple.quicktime.HLS",
|
15770
15765
|
emsg: "https://aomedia.org/emsg/ID3"
|
15771
15766
|
};
|
15772
|
-
const
|
15767
|
+
const $A = 0.25;
|
15773
15768
|
function Oc() {
|
15774
15769
|
if (!(typeof self > "u"))
|
15775
15770
|
return self.WebKitDataCue || self.VTTCue || self.TextTrackCue;
|
@@ -15786,10 +15781,10 @@ const no = (() => {
|
|
15786
15781
|
function ql(s, t) {
|
15787
15782
|
return s.getTime() / 1e3 - t;
|
15788
15783
|
}
|
15789
|
-
function
|
15784
|
+
function NA(s) {
|
15790
15785
|
return Uint8Array.from(s.replace(/^0x/, "").replace(/([\da-fA-F]{2}) ?/g, "0x$1 ").replace(/ +$/, "").split(" ")).buffer;
|
15791
15786
|
}
|
15792
|
-
class
|
15787
|
+
class FA {
|
15793
15788
|
constructor(t) {
|
15794
15789
|
this.hls = void 0, this.id3Track = null, this.media = null, this.dateRangeCuesAppended = {}, this.hls = t, this._registerListeners();
|
15795
15790
|
}
|
@@ -15858,7 +15853,7 @@ class NA {
|
|
15858
15853
|
if (p) {
|
15859
15854
|
const g = o[d].pts;
|
15860
15855
|
let y = g + o[d].duration;
|
15861
|
-
y > no && (y = no), y - g <= 0 && (y = g +
|
15856
|
+
y > no && (y = no), y - g <= 0 && (y = g + $A);
|
15862
15857
|
for (let A = 0; A < p.length; A++) {
|
15863
15858
|
const E = p[A];
|
15864
15859
|
if (!hp(E)) {
|
@@ -15944,14 +15939,14 @@ class NA {
|
|
15944
15939
|
const B = Object.keys(A.attr);
|
15945
15940
|
for (let x = 0; x < B.length; x++) {
|
15946
15941
|
const H = B[x];
|
15947
|
-
if (!
|
15942
|
+
if (!j4(H))
|
15948
15943
|
continue;
|
15949
15944
|
let F = T[H];
|
15950
15945
|
if (F)
|
15951
15946
|
w && !E.durationKnown && (F.endTime = P);
|
15952
15947
|
else {
|
15953
15948
|
let z = A.attr[H];
|
15954
|
-
F = new p(C, P, ""),
|
15949
|
+
F = new p(C, P, ""), K4(H) && (z = NA(z)), F.value = {
|
15955
15950
|
key: H,
|
15956
15951
|
data: z
|
15957
15952
|
}, F.type = Rr.dateRange, F.id = y, this.id3Track.addCue(F), T[H] = F;
|
@@ -15965,7 +15960,7 @@ class NA {
|
|
15965
15960
|
}
|
15966
15961
|
}
|
15967
15962
|
}
|
15968
|
-
class
|
15963
|
+
class UA {
|
15969
15964
|
constructor(t) {
|
15970
15965
|
this.hls = void 0, this.config = void 0, this.media = null, this.levelDetails = null, this.currentTime = 0, this.stallCount = 0, this._latency = null, this.timeupdateHandler = () => this.timeupdate(), this.hls = t, this.config = t.config, this.registerListeners();
|
15971
15966
|
}
|
@@ -16103,7 +16098,7 @@ var ba = {
|
|
16103
16098
|
Yes: "YES",
|
16104
16099
|
v2: "v2"
|
16105
16100
|
};
|
16106
|
-
function
|
16101
|
+
function BA(s, t) {
|
16107
16102
|
const {
|
16108
16103
|
canSkipUntil: e,
|
16109
16104
|
canSkipDateRanges: i,
|
@@ -16184,7 +16179,7 @@ function Tp(s, t, e, i, n, o) {
|
|
16184
16179
|
Ql(T[A], T[A + 1]);
|
16185
16180
|
return s.fragmentHint && Ql(T[T.length - 1], s.fragmentHint), s.PTSKnown = s.alignedSliding = !0, g;
|
16186
16181
|
}
|
16187
|
-
function
|
16182
|
+
function GA(s, t) {
|
16188
16183
|
let e = null;
|
16189
16184
|
const i = s.fragments;
|
16190
16185
|
for (let f = i.length - 1; f >= 0; f--) {
|
@@ -16196,7 +16191,7 @@ function BA(s, t) {
|
|
16196
16191
|
}
|
16197
16192
|
s.fragmentHint && delete s.fragmentHint.endPTS;
|
16198
16193
|
let n = 0, o;
|
16199
|
-
if (
|
16194
|
+
if (WA(s, t, (f, p) => {
|
16200
16195
|
f.relurl && (n = f.cc - p.cc), jt(f.startPTS) && jt(f.endPTS) && (p.start = p.startPTS = f.startPTS, p.startDTS = f.startDTS, p.maxStartPTS = f.maxStartPTS, p.endPTS = f.endPTS, p.endDTS = f.endDTS, p.minEndPTS = f.minEndPTS, p.duration = f.endPTS - f.startPTS, p.duration && (o = p), t.PTSKnown = t.alignedSliding = !0), p.elementaryStreams = f.elementaryStreams, p.loader = f.loader, p.stats = f.stats, p.urlId = f.urlId, f.initSegment && (p.initSegment = f.initSegment, e = f.initSegment);
|
16201
16196
|
}), e && (t.fragmentHint ? t.fragments.concat(t.fragmentHint) : t.fragments).forEach((f) => {
|
16202
16197
|
var p;
|
@@ -16208,14 +16203,14 @@ function BA(s, t) {
|
|
16208
16203
|
t.fragments.shift();
|
16209
16204
|
t.startSN = t.fragments[0].sn, t.startCC = t.fragments[0].cc;
|
16210
16205
|
} else
|
16211
|
-
t.canSkipDateRanges && (t.dateRanges =
|
16206
|
+
t.canSkipDateRanges && (t.dateRanges = VA(s.dateRanges, t.dateRanges, t.recentlyRemovedDateranges));
|
16212
16207
|
const c = t.fragments;
|
16213
16208
|
if (n) {
|
16214
16209
|
X.warn("discontinuity sliding from playlist, take drift into account");
|
16215
16210
|
for (let f = 0; f < c.length; f++)
|
16216
16211
|
c[f].cc += n;
|
16217
16212
|
}
|
16218
|
-
t.skippedSegments && (t.startCC = t.fragments[0].cc),
|
16213
|
+
t.skippedSegments && (t.startCC = t.fragments[0].cc), HA(s.partList, t.partList, (f, p) => {
|
16219
16214
|
p.elementaryStreams = f.elementaryStreams, p.stats = f.stats;
|
16220
16215
|
}), o ? Tp(t, o, o.startPTS, o.endPTS, o.startDTS, o.endDTS) : kp(s, t), c.length && (t.totalduration = t.edge - c[0].start), t.driftStartTime = s.driftStartTime, t.driftStart = s.driftStart;
|
16221
16216
|
const d = t.advancedDateTime;
|
@@ -16225,7 +16220,7 @@ function BA(s, t) {
|
|
16225
16220
|
} else
|
16226
16221
|
t.driftEndTime = s.driftEndTime, t.driftEnd = s.driftEnd, t.advancedDateTime = s.advancedDateTime;
|
16227
16222
|
}
|
16228
|
-
function
|
16223
|
+
function VA(s, t, e) {
|
16229
16224
|
const i = di({}, s);
|
16230
16225
|
return e && e.forEach((n) => {
|
16231
16226
|
delete i[n];
|
@@ -16234,7 +16229,7 @@ function GA(s, t, e) {
|
|
16234
16229
|
o.isValid ? i[n] = o : X.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(t[n].attr)}"`);
|
16235
16230
|
}), i;
|
16236
16231
|
}
|
16237
|
-
function
|
16232
|
+
function HA(s, t, e) {
|
16238
16233
|
if (s && t) {
|
16239
16234
|
let i = 0;
|
16240
16235
|
for (let n = 0, o = s.length; n <= o; n++) {
|
@@ -16243,7 +16238,7 @@ function VA(s, t, e) {
|
|
16243
16238
|
}
|
16244
16239
|
}
|
16245
16240
|
}
|
16246
|
-
function
|
16241
|
+
function WA(s, t, e) {
|
16247
16242
|
const i = t.skippedSegments, n = Math.max(s.startSN, t.startSN) - t.startSN, o = (s.fragmentHint ? 1 : 0) + (i ? t.endSN : Math.min(s.endSN, t.endSN)) - t.startSN, c = t.startSN - s.startSN, d = t.fragmentHint ? t.fragments.concat(t.fragmentHint) : t.fragments, f = s.fragmentHint ? s.fragments.concat(s.fragmentHint) : s.fragments;
|
16248
16243
|
for (let p = n; p <= o; p++) {
|
16249
16244
|
const g = f[c + p];
|
@@ -16263,7 +16258,7 @@ function $c(s, t) {
|
|
16263
16258
|
s.fragmentHint && (s.fragmentHint.start += t);
|
16264
16259
|
}
|
16265
16260
|
}
|
16266
|
-
function
|
16261
|
+
function jA(s, t = 1 / 0) {
|
16267
16262
|
let e = 1e3 * s.targetduration;
|
16268
16263
|
if (s.updated) {
|
16269
16264
|
const i = s.fragments, n = 4;
|
@@ -16275,7 +16270,7 @@ function WA(s, t = 1 / 0) {
|
|
16275
16270
|
e /= 2;
|
16276
16271
|
return Math.round(e);
|
16277
16272
|
}
|
16278
|
-
function
|
16273
|
+
function KA(s, t, e) {
|
16279
16274
|
if (!(s != null && s.details))
|
16280
16275
|
return null;
|
16281
16276
|
const i = s.details;
|
@@ -16320,9 +16315,9 @@ function m0(s) {
|
|
16320
16315
|
});
|
16321
16316
|
}
|
16322
16317
|
function jo(s, t, e, i) {
|
16323
|
-
return !!s && t < s.maxNumRetry && (
|
16318
|
+
return !!s && t < s.maxNumRetry && (zA(i) || !!e);
|
16324
16319
|
}
|
16325
|
-
function
|
16320
|
+
function zA(s) {
|
16326
16321
|
return s === 0 && navigator.onLine === !1 || !!s && (s < 400 || s > 499);
|
16327
16322
|
}
|
16328
16323
|
const Sp = {
|
@@ -16356,7 +16351,7 @@ const Sp = {
|
|
16356
16351
|
return null;
|
16357
16352
|
}
|
16358
16353
|
};
|
16359
|
-
function
|
16354
|
+
function YA(s, t, e) {
|
16360
16355
|
if (t === null || !Array.isArray(s) || !s.length || !jt(t))
|
16361
16356
|
return null;
|
16362
16357
|
const i = s[0].programDateTime;
|
@@ -16368,7 +16363,7 @@ function zA(s, t, e) {
|
|
16368
16363
|
e = e || 0;
|
16369
16364
|
for (let o = 0; o < s.length; ++o) {
|
16370
16365
|
const c = s[o];
|
16371
|
-
if (
|
16366
|
+
if (XA(t, e, c))
|
16372
16367
|
return c;
|
16373
16368
|
}
|
16374
16369
|
return null;
|
@@ -16386,14 +16381,14 @@ function Nc(s = 0, t = 0, e) {
|
|
16386
16381
|
const i = Math.min(t, e.duration + (e.deltaPTS ? e.deltaPTS : 0));
|
16387
16382
|
return e.start + e.duration - i <= s ? 1 : e.start - i > s && e.start ? -1 : 0;
|
16388
16383
|
}
|
16389
|
-
function
|
16384
|
+
function XA(s, t, e) {
|
16390
16385
|
const i = Math.min(t, e.duration + (e.deltaPTS ? e.deltaPTS : 0)) * 1e3;
|
16391
16386
|
return (e.endProgramDateTime || 0) - i > s;
|
16392
16387
|
}
|
16393
|
-
function
|
16388
|
+
function ZA(s, t) {
|
16394
16389
|
return Sp.search(s, (e) => e.cc < t ? 1 : e.cc > t ? -1 : 0);
|
16395
16390
|
}
|
16396
|
-
const
|
16391
|
+
const qA = 3e5;
|
16397
16392
|
var Pi = {
|
16398
16393
|
DoNothing: 0,
|
16399
16394
|
SendEndCallback: 1,
|
@@ -16407,7 +16402,7 @@ var Pi = {
|
|
16407
16402
|
MoveAllAlternatesMatchingHDCP: 2,
|
16408
16403
|
SwitchToSDR: 4
|
16409
16404
|
};
|
16410
|
-
class
|
16405
|
+
class QA {
|
16411
16406
|
constructor(t) {
|
16412
16407
|
this.hls = void 0, this.playlistError = 0, this.penalizedRenditions = {}, this.log = void 0, this.warn = void 0, this.error = void 0, this.hls = t, this.log = X.log.bind(X, "[info]:"), this.warn = X.warn.bind(X, "[warning]:"), this.error = X.error.bind(X, "[error]:"), this.registerListeners();
|
16413
16408
|
}
|
@@ -16644,7 +16639,7 @@ class qA {
|
|
16644
16639
|
o.urlId === d && (!t.frag || o.details) && this.penalizeRendition(o, t);
|
16645
16640
|
for (let f = 1; f < c; f++) {
|
16646
16641
|
const p = (d + f) % c, g = i[p];
|
16647
|
-
if (!g ||
|
16642
|
+
if (!g || JA(g, t, i[d]))
|
16648
16643
|
return this.warn(`Switching to Redundant Stream ${p + 1}/${c}: "${o.url[p]}" after ${t.details}`), this.playlistError = 0, e.levels.forEach((y) => {
|
16649
16644
|
y.urlId = p;
|
16650
16645
|
}), e.nextLoadLevel = n, !0;
|
@@ -16662,8 +16657,8 @@ class qA {
|
|
16662
16657
|
n.lastErrorPerfMs = performance.now(), n.errors.push(e), n.details = t.details, i[t.urlId] = n;
|
16663
16658
|
}
|
16664
16659
|
}
|
16665
|
-
function
|
16666
|
-
if (performance.now() - s.lastErrorPerfMs >
|
16660
|
+
function JA(s, t, e) {
|
16661
|
+
if (performance.now() - s.lastErrorPerfMs > qA)
|
16667
16662
|
return !0;
|
16668
16663
|
const i = s.details;
|
16669
16664
|
if (t.details === pt.FRAG_GAP && i && t.frag) {
|
@@ -16738,7 +16733,7 @@ class mh {
|
|
16738
16733
|
stats: o
|
16739
16734
|
} = e, c = self.performance.now(), d = o.loading.first ? Math.max(0, c - o.loading.first) : 0;
|
16740
16735
|
if (n.advancedDateTime = Date.now() - d, n.live || i != null && i.live) {
|
16741
|
-
if (n.reloaded(i), i && this.log(`live playlist ${t} ${n.advanced ? "REFRESHED " + n.lastPartSn + "-" + n.lastPartIndex : n.updated ? "UPDATED" : "MISSED"}`), i && n.fragments.length > 0 &&
|
16736
|
+
if (n.reloaded(i), i && this.log(`live playlist ${t} ${n.advanced ? "REFRESHED " + n.lastPartSn + "-" + n.lastPartIndex : n.updated ? "UPDATED" : "MISSED"}`), i && n.fragments.length > 0 && GA(i, n), !this.canLoad || !n.live)
|
16742
16737
|
return;
|
16743
16738
|
let f, p, g;
|
16744
16739
|
if (n.canBlockReload && n.endSN && n.advanced) {
|
@@ -16765,7 +16760,7 @@ class mh {
|
|
16765
16760
|
}
|
16766
16761
|
} else
|
16767
16762
|
(n.canBlockReload || n.canSkipUntil) && (f = this.getDeliveryDirectives(n, e.deliveryDirectives, p, g));
|
16768
|
-
const y = this.hls.mainForwardBufferInfo, A = y ? y.end - y.len : 0, E = (n.edge - A) * 1e3, T =
|
16763
|
+
const y = this.hls.mainForwardBufferInfo, A = y ? y.end - y.len : 0, E = (n.edge - A) * 1e3, T = jA(n, E);
|
16769
16764
|
n.updated && c > this.requestScheduled + T && (this.requestScheduled = o.loading.start), p !== void 0 && n.canBlockReload ? this.requestScheduled = o.loading.first + T - (n.partTarget * 1e3 || 1e3) : this.requestScheduled === -1 || this.requestScheduled + T < c ? this.requestScheduled = c : this.requestScheduled - c <= 0 && (this.requestScheduled += T);
|
16770
16765
|
let w = this.requestScheduled - c;
|
16771
16766
|
w = Math.max(0, w), this.log(`reload live playlist ${t} in ${Math.round(w)} ms`), this.timer = self.setTimeout(() => this.loadPlaylist(f), w);
|
@@ -16773,7 +16768,7 @@ class mh {
|
|
16773
16768
|
this.clearTimer();
|
16774
16769
|
}
|
16775
16770
|
getDeliveryDirectives(t, e, i, n) {
|
16776
|
-
let o =
|
16771
|
+
let o = BA(t, i);
|
16777
16772
|
return e != null && e.skip && t.deltaUpdateFailed && (i = e.msn, n = e.part, o = ba.No), new f0(i, n, o);
|
16778
16773
|
}
|
16779
16774
|
checkRetry(t) {
|
@@ -16798,7 +16793,7 @@ class mh {
|
|
16798
16793
|
}
|
16799
16794
|
}
|
16800
16795
|
let Jl;
|
16801
|
-
class
|
16796
|
+
class tE extends mh {
|
16802
16797
|
constructor(t, e) {
|
16803
16798
|
super(t, "[level-controller]"), this._levels = [], this._firstLevel = -1, this._startLevel = void 0, this.currentLevel = null, this.currentLevelIndex = -1, this.manualLevelIndex = -1, this.steering = void 0, this.onParsedComplete = void 0, this.steering = e, this._registerListeners();
|
16804
16799
|
}
|
@@ -17070,7 +17065,7 @@ var yi = {
|
|
17070
17065
|
PARTIAL: "PARTIAL",
|
17071
17066
|
OK: "OK"
|
17072
17067
|
};
|
17073
|
-
class
|
17068
|
+
class eE {
|
17074
17069
|
constructor(t) {
|
17075
17070
|
this.activePartLists = /* @__PURE__ */ Object.create(null), this.endListFragments = /* @__PURE__ */ Object.create(null), this.fragments = /* @__PURE__ */ Object.create(null), this.timeRanges = /* @__PURE__ */ Object.create(null), this.bufferPadding = 0.2, this.hls = void 0, this.hasGaps = !1, this.hls = t, this._registerListeners();
|
17076
17071
|
}
|
@@ -17319,7 +17314,7 @@ function En(s) {
|
|
17319
17314
|
return `${s.type}_${s.level}_${s.urlId}_${s.sn}`;
|
17320
17315
|
}
|
17321
17316
|
const y0 = Math.pow(2, 17);
|
17322
|
-
class
|
17317
|
+
class iE {
|
17323
17318
|
constructor(t) {
|
17324
17319
|
this.config = void 0, this.loader = null, this.partLoadTimeout = -1, this.config = t;
|
17325
17320
|
}
|
@@ -17537,7 +17532,7 @@ class is extends Error {
|
|
17537
17532
|
super(t.error.message), this.data = void 0, this.data = t;
|
17538
17533
|
}
|
17539
17534
|
}
|
17540
|
-
class
|
17535
|
+
class rE {
|
17541
17536
|
constructor(t) {
|
17542
17537
|
this.config = void 0, this.keyUriToKeyInfo = {}, this.emeController = null, this.config = t;
|
17543
17538
|
}
|
@@ -17710,7 +17705,7 @@ class iE {
|
|
17710
17705
|
e.keyLoader === o && (e.keyLoader = null, i.loader = null), delete this.keyUriToKeyInfo[n], o && o.destroy();
|
17711
17706
|
}
|
17712
17707
|
}
|
17713
|
-
class
|
17708
|
+
class sE {
|
17714
17709
|
constructor() {
|
17715
17710
|
this._boundTick = void 0, this._tickTimer = null, this._tickInterval = null, this._tickCallCount = 0, this._boundTick = this.tick.bind(this);
|
17716
17711
|
}
|
@@ -17765,7 +17760,7 @@ class rE {
|
|
17765
17760
|
doTick() {
|
17766
17761
|
}
|
17767
17762
|
}
|
17768
|
-
const
|
17763
|
+
const nE = {
|
17769
17764
|
length: 0,
|
17770
17765
|
start: () => 0,
|
17771
17766
|
end: () => 0
|
@@ -17848,7 +17843,7 @@ class He {
|
|
17848
17843
|
try {
|
17849
17844
|
return t.buffered;
|
17850
17845
|
} catch (e) {
|
17851
|
-
return X.log("failed to get media.buffered", e),
|
17846
|
+
return X.log("failed to get media.buffered", e), nE;
|
17852
17847
|
}
|
17853
17848
|
}
|
17854
17849
|
}
|
@@ -17880,10 +17875,10 @@ function Rp(s, t) {
|
|
17880
17875
|
}
|
17881
17876
|
return e;
|
17882
17877
|
}
|
17883
|
-
function
|
17878
|
+
function aE(s, t, e) {
|
17884
17879
|
return !!(t.details && (e.endCC > e.startCC || s && s.cc < e.startCC));
|
17885
17880
|
}
|
17886
|
-
function
|
17881
|
+
function oE(s, t, e = 0) {
|
17887
17882
|
const i = s.fragments, n = t.fragments;
|
17888
17883
|
if (!n.length || !i.length) {
|
17889
17884
|
X.log("No fragments to align");
|
@@ -17908,16 +17903,16 @@ function yh(s, t) {
|
|
17908
17903
|
E0(e[i], s);
|
17909
17904
|
t.fragmentHint && E0(t.fragmentHint, s), t.alignedSliding = !0;
|
17910
17905
|
}
|
17911
|
-
function oE(s, t, e) {
|
17912
|
-
t && (lE(s, e, t), !e.alignedSliding && t.details && cE(e, t.details), !e.alignedSliding && t.details && !e.skippedSegments && kp(t.details, e));
|
17913
|
-
}
|
17914
17906
|
function lE(s, t, e) {
|
17915
|
-
|
17916
|
-
|
17907
|
+
t && (cE(s, e, t), !e.alignedSliding && t.details && hE(e, t.details), !e.alignedSliding && t.details && !e.skippedSegments && kp(t.details, e));
|
17908
|
+
}
|
17909
|
+
function cE(s, t, e) {
|
17910
|
+
if (aE(s, e, t)) {
|
17911
|
+
const i = oE(e.details, t);
|
17917
17912
|
i && jt(i.start) && (X.log(`Adjusting PTS using last level due to CC increase within current level ${t.url}`), yh(i.start, t));
|
17918
17913
|
}
|
17919
17914
|
}
|
17920
|
-
function
|
17915
|
+
function hE(s, t) {
|
17921
17916
|
if (!t.fragments.length || !s.hasProgramDateTime || !t.hasProgramDateTime)
|
17922
17917
|
return;
|
17923
17918
|
const e = t.fragments[0].programDateTime, i = s.fragments[0].programDateTime, n = (i - e) / 1e3 + t.fragments[0].start;
|
@@ -17935,7 +17930,7 @@ function _p(s, t) {
|
|
17935
17930
|
const p = (f - d) / 1e3 - (c.start - o.start);
|
17936
17931
|
yh(p, s);
|
17937
17932
|
}
|
17938
|
-
class
|
17933
|
+
class dE {
|
17939
17934
|
constructor(t, e) {
|
17940
17935
|
this.subtle = void 0, this.aesIV = void 0, this.subtle = t, this.aesIV = e;
|
17941
17936
|
}
|
@@ -17946,7 +17941,7 @@ class hE {
|
|
17946
17941
|
}, e, t);
|
17947
17942
|
}
|
17948
17943
|
}
|
17949
|
-
class
|
17944
|
+
class uE {
|
17950
17945
|
constructor(t, e) {
|
17951
17946
|
this.subtle = void 0, this.key = void 0, this.subtle = t, this.key = e;
|
17952
17947
|
}
|
@@ -17956,11 +17951,11 @@ class dE {
|
|
17956
17951
|
}, !1, ["encrypt", "decrypt"]);
|
17957
17952
|
}
|
17958
17953
|
}
|
17959
|
-
function
|
17954
|
+
function fE(s) {
|
17960
17955
|
const t = s.byteLength, e = t && new DataView(s.buffer).getUint8(t - 1);
|
17961
17956
|
return e ? rn(s, 0, t - e) : s;
|
17962
17957
|
}
|
17963
|
-
class
|
17958
|
+
class pE {
|
17964
17959
|
constructor() {
|
17965
17960
|
this.rcon = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], this.subMix = [new Uint32Array(256), new Uint32Array(256), new Uint32Array(256), new Uint32Array(256)], this.invSubMix = [new Uint32Array(256), new Uint32Array(256), new Uint32Array(256), new Uint32Array(256)], this.sBox = new Uint32Array(256), this.invSBox = new Uint32Array(256), this.key = new Uint32Array(0), this.ksRows = 0, this.keySize = 0, this.keySchedule = void 0, this.invKeySchedule = void 0, this.initTable();
|
17966
17961
|
}
|
@@ -18027,7 +18022,7 @@ class fE {
|
|
18027
18022
|
return O.buffer;
|
18028
18023
|
}
|
18029
18024
|
}
|
18030
|
-
const
|
18025
|
+
const gE = 16;
|
18031
18026
|
class bh {
|
18032
18027
|
constructor(t, {
|
18033
18028
|
removePKCS7Padding: e = !0
|
@@ -18054,7 +18049,7 @@ class bh {
|
|
18054
18049
|
if (!t || e)
|
18055
18050
|
return this.reset(), null;
|
18056
18051
|
const i = new Uint8Array(t);
|
18057
|
-
return this.reset(), this.removePKCS7Padding ?
|
18052
|
+
return this.reset(), this.removePKCS7Padding ? fE(i) : i;
|
18058
18053
|
}
|
18059
18054
|
reset() {
|
18060
18055
|
this.currentResult = null, this.currentIV = null, this.remainderData = null, this.softwareDecrypter && (this.softwareDecrypter = null);
|
@@ -18080,13 +18075,13 @@ class bh {
|
|
18080
18075
|
return null;
|
18081
18076
|
n && (i = n);
|
18082
18077
|
let f = this.softwareDecrypter;
|
18083
|
-
f || (f = this.softwareDecrypter = new
|
18078
|
+
f || (f = this.softwareDecrypter = new pE()), f.expandKey(e);
|
18084
18079
|
const p = o;
|
18085
18080
|
return this.currentResult = f.decrypt(d.buffer, 0, i), this.currentIV = rn(d, -16).buffer, p || null;
|
18086
18081
|
}
|
18087
18082
|
webCryptoDecrypt(t, e, i) {
|
18088
18083
|
const n = this.subtle;
|
18089
|
-
return (this.key !== e || !this.fastAesKey) && (this.key = e, this.fastAesKey = new
|
18084
|
+
return (this.key !== e || !this.fastAesKey) && (this.key = e, this.fastAesKey = new uE(n, e)), this.fastAesKey.expandKey().then((o) => n ? (this.logOnce("WebCrypto AES decrypt"), new dE(n, new Uint8Array(i)).decrypt(t.buffer, o)) : Promise.reject(new Error("web crypto not initialized"))).catch((o) => (X.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${o.name}: ${o.message}`), this.onWebCryptoError(t, e, i)));
|
18090
18085
|
}
|
18091
18086
|
onWebCryptoError(t, e, i) {
|
18092
18087
|
this.useSoftware = !0, this.logEnabled = !0, this.softwareDecrypt(t, e, i);
|
@@ -18097,14 +18092,14 @@ class bh {
|
|
18097
18092
|
}
|
18098
18093
|
getValidChunk(t) {
|
18099
18094
|
let e = t;
|
18100
|
-
const i = t.length - t.length %
|
18095
|
+
const i = t.length - t.length % gE;
|
18101
18096
|
return i !== t.length && (e = rn(t, 0, i), this.remainderData = rn(t, i)), e;
|
18102
18097
|
}
|
18103
18098
|
logOnce(t) {
|
18104
18099
|
this.logEnabled && (X.log(`[decrypter]: ${t}`), this.logEnabled = !1);
|
18105
18100
|
}
|
18106
18101
|
}
|
18107
|
-
const
|
18102
|
+
const mE = {
|
18108
18103
|
toString: function(s) {
|
18109
18104
|
let t = "";
|
18110
18105
|
const e = s.length;
|
@@ -18126,9 +18121,9 @@ const gE = {
|
|
18126
18121
|
WAITING_INIT_PTS: "WAITING_INIT_PTS",
|
18127
18122
|
WAITING_LEVEL: "WAITING_LEVEL"
|
18128
18123
|
};
|
18129
|
-
class Ah extends
|
18124
|
+
class Ah extends sE {
|
18130
18125
|
constructor(t, e, i, n, o) {
|
18131
|
-
super(), this.hls = void 0, this.fragPrevious = null, this.fragCurrent = null, this.fragmentTracker = void 0, this.transmuxer = null, this._state = wt.STOPPED, this.playlistType = void 0, this.media = null, this.mediaBuffer = null, this.config = void 0, this.bitrateTest = !1, this.lastCurrentTime = 0, this.nextLoadPosition = 0, this.startPosition = 0, this.startTimeOffset = null, this.loadedmetadata = !1, this.retryDate = 0, this.levels = null, this.fragmentLoader = void 0, this.keyLoader = void 0, this.levelLastLoaded = null, this.startFragRequested = !1, this.decrypter = void 0, this.initPTS = [], this.onvseeking = null, this.onvended = null, this.logPrefix = "", this.log = void 0, this.warn = void 0, this.playlistType = o, this.logPrefix = n, this.log = X.log.bind(X, `${n}:`), this.warn = X.warn.bind(X, `${n}:`), this.hls = t, this.fragmentLoader = new
|
18126
|
+
super(), this.hls = void 0, this.fragPrevious = null, this.fragCurrent = null, this.fragmentTracker = void 0, this.transmuxer = null, this._state = wt.STOPPED, this.playlistType = void 0, this.media = null, this.mediaBuffer = null, this.config = void 0, this.bitrateTest = !1, this.lastCurrentTime = 0, this.nextLoadPosition = 0, this.startPosition = 0, this.startTimeOffset = null, this.loadedmetadata = !1, this.retryDate = 0, this.levels = null, this.fragmentLoader = void 0, this.keyLoader = void 0, this.levelLastLoaded = null, this.startFragRequested = !1, this.decrypter = void 0, this.initPTS = [], this.onvseeking = null, this.onvended = null, this.logPrefix = "", this.log = void 0, this.warn = void 0, this.playlistType = o, this.logPrefix = n, this.log = X.log.bind(X, `${n}:`), this.warn = X.warn.bind(X, `${n}:`), this.hls = t, this.fragmentLoader = new iE(t.config), this.keyLoader = i, this.fragmentTracker = e, this.config = t.config, this.decrypter = new bh(t.config), t.on(R.MANIFEST_LOADED, this.onManifestLoaded, this);
|
18132
18127
|
}
|
18133
18128
|
doTick() {
|
18134
18129
|
this.onTickEnd();
|
@@ -18326,7 +18321,7 @@ class Ah extends rE {
|
|
18326
18321
|
fragBufferedComplete(t, e) {
|
18327
18322
|
var i, n, o, c;
|
18328
18323
|
const d = this.mediaBuffer ? this.mediaBuffer : this.media;
|
18329
|
-
this.log(`Buffered ${t.type} sn: ${t.sn}${e ? " part: " + e.index : ""} of ${this.playlistType === Jt.MAIN ? "level" : "track"} ${t.level} (frag:[${((i = t.startPTS) != null ? i : NaN).toFixed(3)}-${((n = t.endPTS) != null ? n : NaN).toFixed(3)}] > buffer:${d ?
|
18324
|
+
this.log(`Buffered ${t.type} sn: ${t.sn}${e ? " part: " + e.index : ""} of ${this.playlistType === Jt.MAIN ? "level" : "track"} ${t.level} (frag:[${((i = t.startPTS) != null ? i : NaN).toFixed(3)}-${((n = t.endPTS) != null ? n : NaN).toFixed(3)}] > buffer:${d ? mE.toString(He.getBuffered(d)) : "(detached)"})`), this.state = wt.IDLE, d && (!this.loadedmetadata && t.type == Jt.MAIN && d.buffered.length && ((o = this.fragCurrent) == null ? void 0 : o.sn) === ((c = this.fragPrevious) == null ? void 0 : c.sn) && (this.loadedmetadata = !0, this.seekToStartPos()), this.tick());
|
18330
18325
|
}
|
18331
18326
|
seekToStartPos() {
|
18332
18327
|
}
|
@@ -18443,7 +18438,7 @@ class Ah extends rE {
|
|
18443
18438
|
} = t;
|
18444
18439
|
if (!(e != null && e[n]))
|
18445
18440
|
return this.warn(`Levels object was unset while buffering fragment ${o} of level ${n}. The current chunk will not be buffered.`), null;
|
18446
|
-
const d = e[n], f = c > -1 ? p0(d, o, c) : null, p = f ? f.fragment :
|
18441
|
+
const d = e[n], f = c > -1 ? p0(d, o, c) : null, p = f ? f.fragment : KA(d, o, i);
|
18447
18442
|
return p ? (i && i !== p && (p.stats = i.stats), {
|
18448
18443
|
frag: p,
|
18449
18444
|
part: f,
|
@@ -18581,13 +18576,13 @@ class Ah extends rE {
|
|
18581
18576
|
const i = this.fragPrevious;
|
18582
18577
|
let n = null;
|
18583
18578
|
if (i) {
|
18584
|
-
if (t.hasProgramDateTime && (this.log(`Live playlist, switching playlist, load frag with same PDT: ${i.programDateTime}`), n =
|
18579
|
+
if (t.hasProgramDateTime && (this.log(`Live playlist, switching playlist, load frag with same PDT: ${i.programDateTime}`), n = YA(e, i.endProgramDateTime, this.config.maxFragLookUpTolerance)), !n) {
|
18585
18580
|
const o = i.sn + 1;
|
18586
18581
|
if (o >= t.startSN && o <= t.endSN) {
|
18587
18582
|
const c = e[o - t.startSN];
|
18588
18583
|
i.cc === c.cc && (n = c, this.log(`Live playlist, switching playlist, load frag with next SN: ${n.sn}`));
|
18589
18584
|
}
|
18590
|
-
n || (n =
|
18585
|
+
n || (n = ZA(e, i.cc), n && this.log(`Live playlist, switching playlist, load frag with same CC: ${n.sn}`));
|
18591
18586
|
}
|
18592
18587
|
} else {
|
18593
18588
|
const o = this.hls.liveSyncPosition;
|
@@ -18650,7 +18645,7 @@ class Ah extends rE {
|
|
18650
18645
|
return this.warn("No fragments in live playlist"), 0;
|
18651
18646
|
const f = t.fragments[0].start, p = !e, g = t.alignedSliding && jt(f);
|
18652
18647
|
if (p || !g && !f) {
|
18653
|
-
|
18648
|
+
lE(o, c, t);
|
18654
18649
|
const y = t.fragments[0].start;
|
18655
18650
|
return this.log(`Live playlist sliding: ${y.toFixed(2)} start-sn: ${e ? e.startSN : "na"}->${t.startSN} prev-sn: ${o ? o.sn : "na"} fragments: ${d}`), y;
|
18656
18651
|
}
|
@@ -18809,22 +18804,22 @@ class Ah extends rE {
|
|
18809
18804
|
function Lp() {
|
18810
18805
|
return self.SourceBuffer || self.WebKitSourceBuffer;
|
18811
18806
|
}
|
18812
|
-
function
|
18807
|
+
function vE() {
|
18813
18808
|
const s = el();
|
18814
18809
|
if (!s)
|
18815
18810
|
return !1;
|
18816
18811
|
const t = Lp(), e = s && typeof s.isTypeSupported == "function" && s.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'), i = !t || t.prototype && typeof t.prototype.appendBuffer == "function" && typeof t.prototype.remove == "function";
|
18817
18812
|
return !!e && !!i;
|
18818
18813
|
}
|
18819
|
-
function
|
18814
|
+
function yE() {
|
18820
18815
|
var s;
|
18821
18816
|
const t = Lp();
|
18822
18817
|
return typeof (t == null || (s = t.prototype) == null ? void 0 : s.changeType) == "function";
|
18823
18818
|
}
|
18824
|
-
function
|
18819
|
+
function bE() {
|
18825
18820
|
return typeof __HLS_WORKER_BUNDLE__ == "function";
|
18826
18821
|
}
|
18827
|
-
function
|
18822
|
+
function AE() {
|
18828
18823
|
const s = new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`], {
|
18829
18824
|
type: "text/javascript"
|
18830
18825
|
}), t = self.URL.createObjectURL(s);
|
@@ -18833,7 +18828,7 @@ function bE() {
|
|
18833
18828
|
objectURL: t
|
18834
18829
|
};
|
18835
18830
|
}
|
18836
|
-
function
|
18831
|
+
function EE(s) {
|
18837
18832
|
const t = new self.URL(s, self.location.href).href;
|
18838
18833
|
return {
|
18839
18834
|
worker: new self.Worker(t),
|
@@ -18881,8 +18876,8 @@ class Cp {
|
|
18881
18876
|
demux(t, e) {
|
18882
18877
|
this.cachedData && (t = ln(this.cachedData, t), this.cachedData = null);
|
18883
18878
|
let i = Vo(t, 0), n = i ? i.length : 0, o;
|
18884
|
-
const c = this._audioTrack, d = this._id3Track, f = i ?
|
18885
|
-
for ((this.basePTS === null || this.frameIndex === 0 && jt(f)) && (this.basePTS =
|
18879
|
+
const c = this._audioTrack, d = this._id3Track, f = i ? rA(i) : void 0, p = t.length;
|
18880
|
+
for ((this.basePTS === null || this.frameIndex === 0 && jt(f)) && (this.basePTS = TE(f, e, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), i && i.length > 0 && d.samples.push({
|
18886
18881
|
pts: this.lastPTS,
|
18887
18882
|
dts: this.lastPTS,
|
18888
18883
|
data: i,
|
@@ -18893,7 +18888,7 @@ class Cp {
|
|
18893
18888
|
const g = this.appendFrame(c, t, n);
|
18894
18889
|
g ? (this.frameIndex++, this.lastPTS = g.sample.pts, n += g.length, o = n) : n = p;
|
18895
18890
|
} else
|
18896
|
-
|
18891
|
+
iA(t, n) ? (i = Vo(t, n), d.samples.push({
|
18897
18892
|
pts: this.lastPTS,
|
18898
18893
|
dts: this.lastPTS,
|
18899
18894
|
data: i,
|
@@ -18927,13 +18922,13 @@ class Cp {
|
|
18927
18922
|
destroy() {
|
18928
18923
|
}
|
18929
18924
|
}
|
18930
|
-
const
|
18925
|
+
const TE = (s, t, e) => {
|
18931
18926
|
if (jt(s))
|
18932
18927
|
return s * 90;
|
18933
18928
|
const i = e ? e.baseTime * 9e4 / e.timescale : 0;
|
18934
18929
|
return t * 9e4 + i;
|
18935
18930
|
};
|
18936
|
-
function
|
18931
|
+
function kE(s, t, e, i) {
|
18937
18932
|
let n, o, c, d;
|
18938
18933
|
const f = navigator.userAgent.toLowerCase(), p = i, g = [96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350];
|
18939
18934
|
n = ((t[e + 2] & 192) >>> 6) + 1;
|
@@ -18964,16 +18959,16 @@ function xp(s, t) {
|
|
18964
18959
|
function Eh(s, t) {
|
18965
18960
|
return (s[t + 3] & 3) << 11 | s[t + 4] << 3 | (s[t + 5] & 224) >>> 5;
|
18966
18961
|
}
|
18967
|
-
function
|
18962
|
+
function wE(s, t) {
|
18968
18963
|
return t + 5 < s.length;
|
18969
18964
|
}
|
18970
18965
|
function zo(s, t) {
|
18971
18966
|
return t + 1 < s.length && Ip(s, t);
|
18972
18967
|
}
|
18973
|
-
function wE(s, t) {
|
18974
|
-
return kE(s, t) && Ip(s, t) && Eh(s, t) <= s.length - t;
|
18975
|
-
}
|
18976
18968
|
function SE(s, t) {
|
18969
|
+
return wE(s, t) && Ip(s, t) && Eh(s, t) <= s.length - t;
|
18970
|
+
}
|
18971
|
+
function RE(s, t) {
|
18977
18972
|
if (zo(s, t)) {
|
18978
18973
|
const e = xp(s, t);
|
18979
18974
|
if (t + e >= s.length)
|
@@ -18988,7 +18983,7 @@ function SE(s, t) {
|
|
18988
18983
|
}
|
18989
18984
|
function Dp(s, t, e, i, n) {
|
18990
18985
|
if (!s.samplerate) {
|
18991
|
-
const o =
|
18986
|
+
const o = kE(t, e, i, n);
|
18992
18987
|
if (!o)
|
18993
18988
|
return;
|
18994
18989
|
s.config = o.config, s.samplerate = o.samplerate, s.channelCount = o.channelCount, s.codec = o.codec, s.manifestCodec = o.manifestCodec, X.log(`parsed codec:${s.codec}, rate:${o.samplerate}, channels:${o.channelCount}`);
|
@@ -18997,7 +18992,7 @@ function Dp(s, t, e, i, n) {
|
|
18997
18992
|
function Pp(s) {
|
18998
18993
|
return 1024 * 9e4 / s;
|
18999
18994
|
}
|
19000
|
-
function
|
18995
|
+
function _E(s, t) {
|
19001
18996
|
const e = xp(s, t);
|
19002
18997
|
if (t + e <= s.length) {
|
19003
18998
|
const i = Eh(s, t) - e;
|
@@ -19009,7 +19004,7 @@ function RE(s, t) {
|
|
19009
19004
|
}
|
19010
19005
|
}
|
19011
19006
|
function Op(s, t, e, i, n) {
|
19012
|
-
const o = Pp(s.samplerate), c = i + n * o, d =
|
19007
|
+
const o = Pp(s.samplerate), c = i + n * o, d = _E(t, e);
|
19013
19008
|
let f;
|
19014
19009
|
if (d) {
|
19015
19010
|
const {
|
@@ -19037,7 +19032,7 @@ function Op(s, t, e, i, n) {
|
|
19037
19032
|
missing: -1
|
19038
19033
|
};
|
19039
19034
|
}
|
19040
|
-
class
|
19035
|
+
class LE extends Cp {
|
19041
19036
|
constructor(t, e) {
|
19042
19037
|
super(), this.observer = void 0, this.config = void 0, this.observer = t, this.config = e;
|
19043
19038
|
}
|
@@ -19062,12 +19057,12 @@ class _E extends Cp {
|
|
19062
19057
|
return !1;
|
19063
19058
|
let e = (Vo(t, 0) || []).length;
|
19064
19059
|
for (let i = t.length; e < i; e++)
|
19065
|
-
if (
|
19060
|
+
if (RE(t, e))
|
19066
19061
|
return X.log("ADTS sync word found !"), !0;
|
19067
19062
|
return !1;
|
19068
19063
|
}
|
19069
19064
|
canParse(t, e) {
|
19070
|
-
return
|
19065
|
+
return SE(t, e);
|
19071
19066
|
}
|
19072
19067
|
appendFrame(t, e, i) {
|
19073
19068
|
Dp(t, this.observer, e, i, t.manifestCodec);
|
@@ -19076,8 +19071,8 @@ class _E extends Cp {
|
|
19076
19071
|
return n;
|
19077
19072
|
}
|
19078
19073
|
}
|
19079
|
-
const
|
19080
|
-
class
|
19074
|
+
const CE = /\/emsg[-/]ID3/i;
|
19075
|
+
class IE {
|
19081
19076
|
constructor(t, e) {
|
19082
19077
|
this.remainderData = null, this.timeOffset = 0, this.config = void 0, this.videoTrack = void 0, this.audioTrack = void 0, this.id3Track = void 0, this.txtTrack = void 0, this.config = e;
|
19083
19078
|
}
|
@@ -19118,7 +19113,7 @@ class CE {
|
|
19118
19113
|
const n = this.videoTrack, o = this.txtTrack;
|
19119
19114
|
if (this.config.progressive) {
|
19120
19115
|
this.remainderData && (i = ln(this.remainderData, t));
|
19121
|
-
const d =
|
19116
|
+
const d = yA(i);
|
19122
19117
|
this.remainderData = d.remainder, n.samples = d.valid || new Uint8Array();
|
19123
19118
|
} else
|
19124
19119
|
n.samples = i;
|
@@ -19146,8 +19141,8 @@ class CE {
|
|
19146
19141
|
if (t.samples.length) {
|
19147
19142
|
const n = Ae(t.samples, ["emsg"]);
|
19148
19143
|
n && n.forEach((o) => {
|
19149
|
-
const c =
|
19150
|
-
if (
|
19144
|
+
const c = EA(o);
|
19145
|
+
if (CE.test(c.schemeIdUri)) {
|
19151
19146
|
const d = jt(c.presentationTime) ? c.presentationTime / c.timeScale : e + c.presentationTimeDelta / c.timeScale;
|
19152
19147
|
let f = c.eventDuration === 4294967295 ? Number.POSITIVE_INFINITY : c.eventDuration / c.timeScale;
|
19153
19148
|
f <= 1e-3 && (f = Number.POSITIVE_INFINITY);
|
@@ -19172,7 +19167,7 @@ class CE {
|
|
19172
19167
|
}
|
19173
19168
|
}
|
19174
19169
|
let lo = null;
|
19175
|
-
const
|
19170
|
+
const xE = [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], DE = [44100, 48e3, 32e3, 22050, 24e3, 16e3, 11025, 12e3, 8e3], PE = [
|
19176
19171
|
// MPEG 2.5
|
19177
19172
|
[
|
19178
19173
|
0,
|
@@ -19217,7 +19212,7 @@ const IE = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 3
|
|
19217
19212
|
12
|
19218
19213
|
// Layer1
|
19219
19214
|
]
|
19220
|
-
],
|
19215
|
+
], OE = [
|
19221
19216
|
0,
|
19222
19217
|
// Reserved
|
19223
19218
|
1,
|
@@ -19247,7 +19242,7 @@ function Mp(s, t, e, i, n) {
|
|
19247
19242
|
function $p(s, t) {
|
19248
19243
|
const e = s[t + 1] >> 3 & 3, i = s[t + 1] >> 1 & 3, n = s[t + 2] >> 4 & 15, o = s[t + 2] >> 2 & 3;
|
19249
19244
|
if (e !== 1 && n !== 0 && n !== 15 && o !== 3) {
|
19250
|
-
const c = s[t + 2] >> 1 & 1, d = s[t + 3] >> 6, f = e === 3 ? 3 - i : i === 3 ? 3 : 4, p =
|
19245
|
+
const c = s[t + 2] >> 1 & 1, d = s[t + 3] >> 6, f = e === 3 ? 3 - i : i === 3 ? 3 : 4, p = xE[f * 14 + n - 1] * 1e3, g = DE[(e === 3 ? 0 : e === 2 ? 1 : 2) * 3 + o], y = d === 3 ? 1 : 2, A = PE[e][i], E = OE[i], T = A * 8 * E, w = Math.floor(A * p / g + c) * E;
|
19251
19246
|
if (lo === null) {
|
19252
19247
|
const C = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
|
19253
19248
|
lo = C ? parseInt(C[1]) : 0;
|
@@ -19266,10 +19261,10 @@ function Th(s, t) {
|
|
19266
19261
|
function Np(s, t) {
|
19267
19262
|
return t + 1 < s.length && Th(s, t);
|
19268
19263
|
}
|
19269
|
-
function
|
19264
|
+
function ME(s, t) {
|
19270
19265
|
return Th(s, t) && 4 <= s.length - t;
|
19271
19266
|
}
|
19272
|
-
function
|
19267
|
+
function $E(s, t) {
|
19273
19268
|
if (t + 1 < s.length && Th(s, t)) {
|
19274
19269
|
const e = $p(s, t);
|
19275
19270
|
let i = 4;
|
@@ -19457,7 +19452,7 @@ class T0 {
|
|
19457
19452
|
return this.readUByte(), this.readUEG(), this.readUEG();
|
19458
19453
|
}
|
19459
19454
|
}
|
19460
|
-
class
|
19455
|
+
class NE {
|
19461
19456
|
constructor(t, e, i) {
|
19462
19457
|
this.keyData = void 0, this.decrypter = void 0, this.keyData = i, this.decrypter = new bh(e, {
|
19463
19458
|
removePKCS7Padding: !1
|
@@ -19641,11 +19636,11 @@ class Rs {
|
|
19641
19636
|
}), w && (w.data.push(t.subarray(kt, z + Di)), w.size += z + Di - kt);
|
19642
19637
|
break;
|
19643
19638
|
case 0:
|
19644
|
-
tt && (kt += t[kt] + 1), O = this._pmtId =
|
19639
|
+
tt && (kt += t[kt] + 1), O = this._pmtId = FE(t, kt);
|
19645
19640
|
break;
|
19646
19641
|
case O: {
|
19647
19642
|
tt && (kt += t[kt] + 1);
|
19648
|
-
const mt =
|
19643
|
+
const mt = UE(t, kt, this.typeSupported, i);
|
19649
19644
|
g = mt.avc, g > 0 && (c.pid = g), A = mt.audio, A > 0 && (d.pid = A, d.segmentCodec = mt.segmentCodec), E = mt.id3, E > 0 && (f.pid = E), C !== null && !P && (X.warn(`MPEG-TS PMT found at ${z} after unknown PID '${C}'. Backtracking to sync byte @${x} to parse all TS packets.`), C = null, z = x - 188), P = this.pmtParsed = !0;
|
19650
19645
|
break;
|
19651
19646
|
}
|
@@ -19713,7 +19708,7 @@ class Rs {
|
|
19713
19708
|
f && (p = Tn(f)) ? (this.parseID3PES(n, p), n.pesData = null) : n.pesData = f;
|
19714
19709
|
}
|
19715
19710
|
demuxSampleAes(t, e, i) {
|
19716
|
-
const n = this.demux(t, i, !0, !this.config.progressive), o = this.sampleAes = new
|
19711
|
+
const n = this.demux(t, i, !0, !this.config.progressive), o = this.sampleAes = new NE(this.observer, this.config, e);
|
19717
19712
|
return this.decrypt(n, o);
|
19718
19713
|
}
|
19719
19714
|
decrypt(t, e) {
|
@@ -19948,10 +19943,10 @@ function co(s, t, e, i) {
|
|
19948
19943
|
function Fc(s, t) {
|
19949
19944
|
return ((s[t + 1] & 31) << 8) + s[t + 2];
|
19950
19945
|
}
|
19951
|
-
function
|
19946
|
+
function FE(s, t) {
|
19952
19947
|
return (s[t + 10] & 31) << 8 | s[t + 11];
|
19953
19948
|
}
|
19954
|
-
function
|
19949
|
+
function UE(s, t, e, i) {
|
19955
19950
|
const n = {
|
19956
19951
|
audio: -1,
|
19957
19952
|
avc: -1,
|
@@ -20055,7 +20050,7 @@ function sa(s, t) {
|
|
20055
20050
|
}
|
20056
20051
|
s.debug.length && X.log(s.pts + "/" + s.dts + ":" + s.debug);
|
20057
20052
|
}
|
20058
|
-
class
|
20053
|
+
class BE extends Cp {
|
20059
20054
|
resetInitSegment(t, e, i, n) {
|
20060
20055
|
super.resetInitSegment(t, e, i, n), this._audioTrack = {
|
20061
20056
|
container: "audio/mpeg",
|
@@ -20076,12 +20071,12 @@ class UE extends Cp {
|
|
20076
20071
|
return !1;
|
20077
20072
|
let e = (Vo(t, 0) || []).length;
|
20078
20073
|
for (let i = t.length; e < i; e++)
|
20079
|
-
if (
|
20074
|
+
if ($E(t, e))
|
20080
20075
|
return X.log("MPEG Audio sync word found !"), !0;
|
20081
20076
|
return !1;
|
20082
20077
|
}
|
20083
20078
|
canParse(t, e) {
|
20084
|
-
return
|
20079
|
+
return ME(t, e);
|
20085
20080
|
}
|
20086
20081
|
appendFrame(t, e, i) {
|
20087
20082
|
if (this.basePTS !== null)
|
@@ -21153,16 +21148,16 @@ function kh(s, t, e = 1, i = !1) {
|
|
21153
21148
|
const n = s * t * e;
|
21154
21149
|
return i ? Math.round(n) : n;
|
21155
21150
|
}
|
21156
|
-
function
|
21151
|
+
function GE(s, t, e = 1, i = !1) {
|
21157
21152
|
return kh(s, t, 1 / e, i);
|
21158
21153
|
}
|
21159
21154
|
function na(s, t = !1) {
|
21160
21155
|
return kh(s, 1e3, 1 / Fp, t);
|
21161
21156
|
}
|
21162
|
-
function
|
21157
|
+
function VE(s, t = 1) {
|
21163
21158
|
return kh(s, Fp, 1 / t);
|
21164
21159
|
}
|
21165
|
-
const
|
21160
|
+
const HE = 10 * 1e3, w0 = 1024, WE = 1152;
|
21166
21161
|
let ho = null, tc = null;
|
21167
21162
|
class ec {
|
21168
21163
|
constructor(t, e, i, n = "") {
|
@@ -21201,7 +21196,7 @@ class ec {
|
|
21201
21196
|
this.ISGenerated || (y = this.generateIS(t, e, o, c));
|
21202
21197
|
const F = this.isVideoContiguous;
|
21203
21198
|
let z = -1, tt;
|
21204
|
-
if (H && (z =
|
21199
|
+
if (H && (z = jE(e.samples), !F && this.config.forceKeyFrameOnDiscontinuity))
|
21205
21200
|
if (T = !0, z > 0) {
|
21206
21201
|
X.warn(`[mp4-remuxer]: Dropped ${z} out of ${B} video samples due to a missing keyframe`);
|
21207
21202
|
const at = this.getVideoStartPts(e.samples);
|
@@ -21392,7 +21387,7 @@ class ec {
|
|
21392
21387
|
return t.samples = [], t.dropped = 0, At;
|
21393
21388
|
}
|
21394
21389
|
remuxAudio(t, e, i, n, o) {
|
21395
|
-
const c = t.inputTimeScale, d = t.samplerate ? t.samplerate : c, f = c / d, p = t.segmentCodec === "aac" ? w0 :
|
21390
|
+
const c = t.inputTimeScale, d = t.samplerate ? t.samplerate : c, f = c / d, p = t.segmentCodec === "aac" ? w0 : WE, g = p * f, y = this._initPTS, A = t.segmentCodec === "mp3" && this.typeSupported.mpeg, E = [], T = o !== void 0;
|
21396
21391
|
let w = t.samples, C = A ? 0 : 8, P = this.nextAudioPts || -1;
|
21397
21392
|
const O = e * c, B = y.baseTime * c / y.timescale;
|
21398
21393
|
if (this.isAudioContiguous = i = i || w.length && P > 0 && (n && Math.abs(O - P) < 9e3 || Math.abs(gr(w[0].pts - B, O) - P) < 20 * g), w.forEach(function(G) {
|
@@ -21408,7 +21403,7 @@ class ec {
|
|
21408
21403
|
const N = w[q], $ = N.pts, j = $ - At, nt = Math.abs(1e3 * j / c);
|
21409
21404
|
if (j <= -G * g && T)
|
21410
21405
|
q === 0 && (X.warn(`Audio frame @ ${($ / c).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3 * j / c)} ms.`), this.nextAudioPts = P = At = $);
|
21411
|
-
else if (j >= G * g && nt <
|
21406
|
+
else if (j >= G * g && nt < HE && T) {
|
21412
21407
|
let ct = Math.round(j / g);
|
21413
21408
|
At = $ - ct * g, At < 0 && (ct--, At += g), q === 0 && (this.nextAudioPts = P = At), X.warn(`[mp4-remuxer]: Injecting ${ct} audio frame @ ${(At / c).toFixed(3)}s due to ${Math.round(1e3 * j / c)} ms gap.`);
|
21414
21409
|
for (let _t = 0; _t < ct; _t++) {
|
@@ -21503,7 +21498,7 @@ function gr(s, t) {
|
|
21503
21498
|
s += e;
|
21504
21499
|
return s;
|
21505
21500
|
}
|
21506
|
-
function
|
21501
|
+
function jE(s) {
|
21507
21502
|
for (let t = 0; t < s.length; t++)
|
21508
21503
|
if (s[t].key)
|
21509
21504
|
return t;
|
@@ -21540,15 +21535,15 @@ function Bp(s, t, e) {
|
|
21540
21535
|
}
|
21541
21536
|
class S0 {
|
21542
21537
|
constructor(t, e, i, n) {
|
21543
|
-
this.size = void 0, this.duration = void 0, this.cts = void 0, this.flags = void 0, this.duration = e, this.size = i, this.cts = n, this.flags = new
|
21538
|
+
this.size = void 0, this.duration = void 0, this.cts = void 0, this.flags = void 0, this.duration = e, this.size = i, this.cts = n, this.flags = new KE(t);
|
21544
21539
|
}
|
21545
21540
|
}
|
21546
|
-
class
|
21541
|
+
class KE {
|
21547
21542
|
constructor(t) {
|
21548
21543
|
this.isLeading = 0, this.isDependedOn = 0, this.hasRedundancy = 0, this.degradPrio = 0, this.dependsOn = 1, this.isNonSync = 1, this.dependsOn = t ? 2 : 1, this.isNonSync = t ? 0 : 1;
|
21549
21544
|
}
|
21550
21545
|
}
|
21551
|
-
class
|
21546
|
+
class zE {
|
21552
21547
|
constructor() {
|
21553
21548
|
this.emitInitSegment = !1, this.audioCodec = void 0, this.videoCodec = void 0, this.initData = void 0, this.initPTS = null, this.initTracks = void 0, this.lastEndTime = null;
|
21554
21549
|
}
|
@@ -21561,7 +21556,7 @@ class KE {
|
|
21561
21556
|
this.lastEndTime = null;
|
21562
21557
|
}
|
21563
21558
|
resetInitSegment(t, e, i, n) {
|
21564
|
-
this.audioCodec = e, this.videoCodec = i, this.generateInitSegment(
|
21559
|
+
this.audioCodec = e, this.videoCodec = i, this.generateInitSegment(fA(t, n)), this.emitInitSegment = !0;
|
21565
21560
|
}
|
21566
21561
|
generateInitSegment(t) {
|
21567
21562
|
let {
|
@@ -21617,13 +21612,13 @@ class KE {
|
|
21617
21612
|
if ((d = T) != null && d.length || (this.generateInitSegment(A), T = this.initData), !((f = T) != null && f.length))
|
21618
21613
|
return X.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."), y;
|
21619
21614
|
this.emitInitSegment && (E.tracks = this.initTracks, this.emitInitSegment = !1);
|
21620
|
-
const w =
|
21621
|
-
(
|
21615
|
+
const w = gA(A, T), C = pA(T, A), P = C === null ? o : C;
|
21616
|
+
(YE(p, P, o, w) || E.timescale !== p.timescale && c) && (E.initPTS = P - o, p && p.timescale === 1 && X.warn(`Adjusting initPTS by ${E.initPTS - p.baseTime}`), this.initPTS = p = {
|
21622
21617
|
baseTime: E.initPTS,
|
21623
21618
|
timescale: 1
|
21624
21619
|
});
|
21625
21620
|
const O = t ? P - p.baseTime / p.timescale : g, B = O + w;
|
21626
|
-
|
21621
|
+
vA(T, A, p.baseTime / p.timescale), w > 0 ? this.lastEndTime = B : (X.warn("Duration parsed from mp4 should be greater than zero"), this.resetNextTimestamp());
|
21627
21622
|
const x = !!T.audio, H = !!T.video;
|
21628
21623
|
let F = "";
|
21629
21624
|
x && (F += "audio"), H && (F += "video");
|
@@ -21642,7 +21637,7 @@ class KE {
|
|
21642
21637
|
return y.audio = z.type === "audio" ? z : void 0, y.video = z.type !== "audio" ? z : void 0, y.initSegment = E, y.id3 = Up(i, o, p, p), n.samples.length && (y.text = Bp(n, o, p)), y;
|
21643
21638
|
}
|
21644
21639
|
}
|
21645
|
-
function
|
21640
|
+
function YE(s, t, e, i) {
|
21646
21641
|
if (s === null)
|
21647
21642
|
return !0;
|
21648
21643
|
const n = Math.max(i, 1), o = t - s.baseTime / s.timescale;
|
@@ -21659,16 +21654,16 @@ try {
|
|
21659
21654
|
X.debug("Unable to use Performance API on this environment"), rs = typeof self < "u" && self.Date.now;
|
21660
21655
|
}
|
21661
21656
|
const ic = [{
|
21662
|
-
demux:
|
21663
|
-
remux:
|
21657
|
+
demux: IE,
|
21658
|
+
remux: zE
|
21664
21659
|
}, {
|
21665
21660
|
demux: Rs,
|
21666
21661
|
remux: ec
|
21667
21662
|
}, {
|
21668
|
-
demux:
|
21663
|
+
demux: LE,
|
21669
21664
|
remux: ec
|
21670
21665
|
}, {
|
21671
|
-
demux:
|
21666
|
+
demux: BE,
|
21672
21667
|
remux: ec
|
21673
21668
|
}];
|
21674
21669
|
class _0 {
|
@@ -21700,7 +21695,7 @@ class _0 {
|
|
21700
21695
|
defaultInitPts: P,
|
21701
21696
|
duration: O,
|
21702
21697
|
initSegmentData: B
|
21703
|
-
} = f, x =
|
21698
|
+
} = f, x = XE(c, e);
|
21704
21699
|
if (x && x.method === "AES-128") {
|
21705
21700
|
const tt = this.getDecrypter();
|
21706
21701
|
if (tt.isSync()) {
|
@@ -21846,7 +21841,7 @@ class _0 {
|
|
21846
21841
|
return t || (t = this.decrypter = new bh(this.config)), t;
|
21847
21842
|
}
|
21848
21843
|
}
|
21849
|
-
function
|
21844
|
+
function XE(s, t) {
|
21850
21845
|
let e = null;
|
21851
21846
|
return s.byteLength > 0 && t != null && t.key != null && t.iv !== null && t.method != null && (e = t), e;
|
21852
21847
|
}
|
@@ -21857,12 +21852,12 @@ const rc = (s) => ({
|
|
21857
21852
|
function _o(s) {
|
21858
21853
|
return "then" in s && s.then instanceof Function;
|
21859
21854
|
}
|
21860
|
-
class
|
21855
|
+
class ZE {
|
21861
21856
|
constructor(t, e, i, n, o) {
|
21862
21857
|
this.audioCodec = void 0, this.videoCodec = void 0, this.initSegmentData = void 0, this.duration = void 0, this.defaultInitPts = void 0, this.audioCodec = t, this.videoCodec = e, this.initSegmentData = i, this.duration = n, this.defaultInitPts = o || null;
|
21863
21858
|
}
|
21864
21859
|
}
|
21865
|
-
class
|
21860
|
+
class qE {
|
21866
21861
|
constructor(t, e, i, n, o, c) {
|
21867
21862
|
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 = t, this.contiguous = e, this.accurateTimeOffset = i, this.trackSwitch = n, this.timeOffset = o, this.initSegmentChange = c;
|
21868
21863
|
}
|
@@ -21978,7 +21973,7 @@ var Gp = { exports: {} };
|
|
21978
21973
|
return f ? (p = e ? e + f : f, this._events[p] && c(this, p)) : (this._events = new i(), this._eventsCount = 0), this;
|
21979
21974
|
}, d.prototype.off = d.prototype.removeListener, d.prototype.addListener = d.prototype.on, d.prefixed = e, d.EventEmitter = d, s.exports = d;
|
21980
21975
|
})(Gp);
|
21981
|
-
var
|
21976
|
+
var QE = Gp.exports, wh = /* @__PURE__ */ N4(QE);
|
21982
21977
|
const sc = el() || {
|
21983
21978
|
isTypeSupported: () => !1
|
21984
21979
|
};
|
@@ -21996,9 +21991,9 @@ class Vp {
|
|
21996
21991
|
mpeg: sc.isTypeSupported("audio/mpeg"),
|
21997
21992
|
mp3: sc.isTypeSupported('audio/mp4; codecs="mp3"')
|
21998
21993
|
}, f = navigator.vendor;
|
21999
|
-
if (this.useWorker && typeof Worker < "u" && (o.workerPath ||
|
21994
|
+
if (this.useWorker && typeof Worker < "u" && (o.workerPath || bE())) {
|
22000
21995
|
try {
|
22001
|
-
o.workerPath ? (X.log(`loading Web Worker ${o.workerPath} for "${e}"`), this.workerContext =
|
21996
|
+
o.workerPath ? (X.log(`loading Web Worker ${o.workerPath} for "${e}"`), this.workerContext = EE(o.workerPath)) : (X.log(`injecting Web Worker for "${e}"`), this.workerContext = AE()), this.onwmsg = (g) => this.onWorkerMessage(g);
|
22002
21997
|
const {
|
22003
21998
|
worker: p
|
22004
21999
|
} = this.workerContext;
|
@@ -22051,7 +22046,7 @@ class Vp {
|
|
22051
22046
|
transmuxer: E
|
22052
22047
|
} = this, T = c ? c.start : o.start, w = o.decryptdata, C = this.frag, P = !(C && o.cc === C.cc), O = !(C && p.level === C.level), B = C ? p.sn - C.sn : -1, x = this.part ? p.part - this.part.index : -1, H = B === 0 && p.id > 1 && p.id === (C == null ? void 0 : C.stats.chunkCount), F = !O && (B === 1 || B === 0 && (x === 1 || H && x <= 0)), z = self.performance.now();
|
22053
22048
|
(O || B || o.stats.parsing.start === 0) && (o.stats.parsing.start = z), c && (x || !F) && (c.stats.parsing.start = z);
|
22054
|
-
const tt = !(C && ((y = o.initSegment) == null ? void 0 : y.url) === ((A = C.initSegment) == null ? void 0 : A.url)), at = new
|
22049
|
+
const tt = !(C && ((y = o.initSegment) == null ? void 0 : y.url) === ((A = C.initSegment) == null ? void 0 : A.url)), at = new qE(P, F, f, O, T, tt);
|
22055
22050
|
if (!F || P || tt) {
|
22056
22051
|
X.log(`[transmuxer-interface, ${o.type}]: Starting new transmux session for sn: ${p.sn} p: ${p.part} level: ${p.level} id: ${p.id}
|
22057
22052
|
discontinuity: ${P}
|
@@ -22060,7 +22055,7 @@ class Vp {
|
|
22060
22055
|
accurateTimeOffset: ${f}
|
22061
22056
|
timeOffset: ${T}
|
22062
22057
|
initSegmentChange: ${tt}`);
|
22063
|
-
const J = new
|
22058
|
+
const J = new ZE(i, n, e, d, g);
|
22064
22059
|
this.configureTransmuxer(J);
|
22065
22060
|
}
|
22066
22061
|
if (this.frag = o, this.part = c, this.workerContext)
|
@@ -22154,8 +22149,8 @@ class Vp {
|
|
22154
22149
|
t.chunkMeta.transmuxing.end = self.performance.now(), this.onTransmuxComplete(t);
|
22155
22150
|
}
|
22156
22151
|
}
|
22157
|
-
const
|
22158
|
-
class
|
22152
|
+
const JE = 250, nc = 2, tT = 0.1, eT = 0.05;
|
22153
|
+
class iT {
|
22159
22154
|
constructor(t, e, i, n) {
|
22160
22155
|
this.config = void 0, this.media = null, this.fragmentTracker = void 0, this.hls = void 0, this.nudgeRetry = 0, this.stallReported = !1, this.stalled = null, this.moved = !1, this.seeking = !1, this.config = t, this.media = e, this.fragmentTracker = i, this.hls = n;
|
22161
22156
|
}
|
@@ -22219,7 +22214,7 @@ class eT {
|
|
22219
22214
|
return;
|
22220
22215
|
}
|
22221
22216
|
const w = T - o;
|
22222
|
-
if (!d && w >=
|
22217
|
+
if (!d && w >= JE && (this._reportStall(g), !this.media))
|
22223
22218
|
return;
|
22224
22219
|
const C = He.bufferInfo(n, c, i.maxBufferHole);
|
22225
22220
|
this._tryFixBufferStall(C, w);
|
@@ -22308,7 +22303,7 @@ class eT {
|
|
22308
22303
|
}
|
22309
22304
|
}
|
22310
22305
|
}
|
22311
|
-
const y = Math.max(d +
|
22306
|
+
const y = Math.max(d + eT, o + tT);
|
22312
22307
|
if (X.warn(`skipping hole, adjusting currentTime from ${o} to ${y}`), this.moved = !0, this.stalled = null, n.currentTime = y, t && !t.gap) {
|
22313
22308
|
const A = new Error(`fragment loaded with buffer holes, seeking from ${o} to ${y}`);
|
22314
22309
|
i.trigger(R.ERROR, {
|
@@ -22358,8 +22353,8 @@ class eT {
|
|
22358
22353
|
}
|
22359
22354
|
}
|
22360
22355
|
}
|
22361
|
-
const
|
22362
|
-
class
|
22356
|
+
const rT = 100;
|
22357
|
+
class sT extends Ah {
|
22363
22358
|
constructor(t, e, i) {
|
22364
22359
|
super(t, e, i, "[stream-controller]", Jt.MAIN), this.audioCodecSwap = !1, this.gapController = null, this.level = -1, this._forceStartLoad = !1, this.altAudio = !1, this.audioOnly = !1, this.fragPlaying = null, this.onvplaying = null, this.onvseeked = null, this.fragLastKbps = 0, this.couldBacktrack = !1, this.backtrackFragment = null, this.audioCodecSwitch = !1, this.videoBuffer = null, this._registerListeners();
|
22365
22360
|
}
|
@@ -22384,7 +22379,7 @@ class rT extends Ah {
|
|
22384
22379
|
lastCurrentTime: e,
|
22385
22380
|
hls: i
|
22386
22381
|
} = this;
|
22387
|
-
if (this.stopLoad(), this.setInterval(
|
22382
|
+
if (this.stopLoad(), this.setInterval(rT), this.level = -1, !this.startFragRequested) {
|
22388
22383
|
let n = i.startLevel;
|
22389
22384
|
n === -1 && (i.config.testBandwidth && this.levels.length > 1 ? (n = 0, this.bitrateTest = !0) : n = i.nextAutoLevel), this.level = i.nextLoadLevel = n, this.loadedmetadata = !1;
|
22390
22385
|
}
|
@@ -22550,7 +22545,7 @@ class rT extends Ah {
|
|
22550
22545
|
onMediaAttached(t, e) {
|
22551
22546
|
super.onMediaAttached(t, e);
|
22552
22547
|
const i = e.media;
|
22553
|
-
this.onvplaying = this.onMediaPlaying.bind(this), this.onvseeked = this.onMediaSeeked.bind(this), i.addEventListener("playing", this.onvplaying), i.addEventListener("seeked", this.onvseeked), this.gapController = new
|
22548
|
+
this.onvplaying = this.onMediaPlaying.bind(this), this.onvseeked = this.onMediaSeeked.bind(this), i.addEventListener("playing", this.onvplaying), i.addEventListener("seeked", this.onvseeked), this.gapController = new iT(this.config, i, this.fragmentTracker, this.hls);
|
22554
22549
|
}
|
22555
22550
|
onMediaDetaching() {
|
22556
22551
|
const {
|
@@ -22578,7 +22573,7 @@ class rT extends Ah {
|
|
22578
22573
|
let i = !1, n = !1, o;
|
22579
22574
|
e.levels.forEach((c) => {
|
22580
22575
|
o = c.audioCodec, o && (o.indexOf("mp4a.40.2") !== -1 && (i = !0), o.indexOf("mp4a.40.5") !== -1 && (n = !0));
|
22581
|
-
}), this.audioCodecSwitch = i && n && !
|
22576
|
+
}), this.audioCodecSwitch = i && n && !yE(), this.audioCodecSwitch && this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"), this.levels = e.levels, this.startFragRequested = !1;
|
22582
22577
|
}
|
22583
22578
|
onLevelLoading(t, e) {
|
22584
22579
|
const {
|
@@ -23004,7 +22999,7 @@ class kn {
|
|
23004
22999
|
return this.estimate_;
|
23005
23000
|
}
|
23006
23001
|
}
|
23007
|
-
class
|
23002
|
+
class nT {
|
23008
23003
|
constructor(t, e, i, n = 100) {
|
23009
23004
|
this.defaultEstimate_ = void 0, this.minWeight_ = void 0, this.minDelayMs_ = void 0, this.slow_ = void 0, this.fast_ = void 0, this.defaultTTFB_ = void 0, this.ttfb_ = void 0, this.defaultEstimate_ = i, this.minWeight_ = 1e-3, this.minDelayMs_ = 50, this.slow_ = new kn(t), this.fast_ = new kn(e), this.defaultTTFB_ = n, this.ttfb_ = new kn(t);
|
23010
23005
|
}
|
@@ -23037,11 +23032,11 @@ class sT {
|
|
23037
23032
|
destroy() {
|
23038
23033
|
}
|
23039
23034
|
}
|
23040
|
-
class
|
23035
|
+
class aT {
|
23041
23036
|
constructor(t) {
|
23042
23037
|
this.hls = void 0, this.lastLevelLoadSec = 0, this.lastLoadedFragLevel = 0, this._nextAutoLevel = -1, this.timer = -1, this.onCheck = this._abandonRulesCheck.bind(this), this.fragCurrent = null, this.partCurrent = null, this.bitrateTestDelay = 0, this.bwEstimator = void 0, this.hls = t;
|
23043
23038
|
const e = t.config;
|
23044
|
-
this.bwEstimator = new
|
23039
|
+
this.bwEstimator = new nT(e.abrEwmaSlowVoD, e.abrEwmaFastVoD, e.abrEwmaDefaultEstimate), this.registerListeners();
|
23045
23040
|
}
|
23046
23041
|
registerListeners() {
|
23047
23042
|
const {
|
@@ -23259,7 +23254,7 @@ class Hp {
|
|
23259
23254
|
} = this;
|
23260
23255
|
let i;
|
23261
23256
|
if (t.length)
|
23262
|
-
t.length === 1 ? i = t[0] : i =
|
23257
|
+
t.length === 1 ? i = t[0] : i = oT(t, e);
|
23263
23258
|
else
|
23264
23259
|
return new Uint8Array(0);
|
23265
23260
|
return this.reset(), i;
|
@@ -23268,7 +23263,7 @@ class Hp {
|
|
23268
23263
|
this.chunks.length = 0, this.dataLength = 0;
|
23269
23264
|
}
|
23270
23265
|
}
|
23271
|
-
function
|
23266
|
+
function oT(s, t) {
|
23272
23267
|
const e = new Uint8Array(t);
|
23273
23268
|
let i = 0;
|
23274
23269
|
for (let n = 0; n < s.length; n++) {
|
@@ -23278,7 +23273,7 @@ function aT(s, t) {
|
|
23278
23273
|
return e;
|
23279
23274
|
}
|
23280
23275
|
const L0 = 100;
|
23281
|
-
class
|
23276
|
+
class lT extends Ah {
|
23282
23277
|
constructor(t, e, i) {
|
23283
23278
|
super(t, e, i, "[audio-stream-controller]", Jt.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.bufferFlushed = !1, this.cachedTrackLoadedData = null, this._registerListeners();
|
23284
23279
|
}
|
@@ -23717,7 +23712,7 @@ class oT extends Ah {
|
|
23717
23712
|
i && o && (o.CHANNELS !== c.CHANNELS || o.NAME !== c.NAME || o.LANGUAGE !== c.LANGUAGE) && (this.log("Switching audio track : flushing all audio"), super.flushMainBuffer(0, Number.POSITIVE_INFINITY, "audio")), this.bufferedTrack = t, this.switchingTrack = null, e.trigger(R.AUDIO_TRACK_SWITCHED, tr({}, t));
|
23718
23713
|
}
|
23719
23714
|
}
|
23720
|
-
class
|
23715
|
+
class cT extends mh {
|
23721
23716
|
constructor(t) {
|
23722
23717
|
super(t, "[audio-track-controller]"), this.tracks = [], this.groupId = null, this.tracksInGroup = [], this.trackId = -1, this.currentTrack = null, this.selectDefaultTrack = !0, this.registerListeners();
|
23723
23718
|
}
|
@@ -23855,16 +23850,16 @@ function Wp(s, t) {
|
|
23855
23850
|
if (s.length !== t.length)
|
23856
23851
|
return !1;
|
23857
23852
|
for (let e = 0; e < s.length; e++)
|
23858
|
-
if (!
|
23853
|
+
if (!hT(s[e].attrs, t[e].attrs))
|
23859
23854
|
return !1;
|
23860
23855
|
return !0;
|
23861
23856
|
}
|
23862
|
-
function
|
23857
|
+
function hT(s, t) {
|
23863
23858
|
const e = s["STABLE-RENDITION-ID"];
|
23864
23859
|
return e ? e === t["STABLE-RENDITION-ID"] : !["LANGUAGE", "NAME", "CHARACTERISTICS", "AUTOSELECT", "DEFAULT", "FORCED"].some((i) => s[i] !== t[i]);
|
23865
23860
|
}
|
23866
23861
|
const C0 = 500;
|
23867
|
-
class
|
23862
|
+
class dT extends Ah {
|
23868
23863
|
constructor(t, e, i) {
|
23869
23864
|
super(t, e, i, "[subtitle-stream-controller]", Jt.SUBTITLE), this.levels = [], this.currentTrackId = -1, this.tracksBuffered = [], this.mainDetails = null, this._registerListeners();
|
23870
23865
|
}
|
@@ -24075,10 +24070,10 @@ class hT extends Ah {
|
|
24075
24070
|
this.fragCurrent = t, t.sn === "initSegment" ? this._loadInitSegment(t, e) : (this.startFragRequested = !0, super.loadFragment(t, e, i));
|
24076
24071
|
}
|
24077
24072
|
get mediaBufferTimeRanges() {
|
24078
|
-
return new
|
24073
|
+
return new uT(this.tracksBuffered[this.currentTrackId] || []);
|
24079
24074
|
}
|
24080
24075
|
}
|
24081
|
-
class
|
24076
|
+
class uT {
|
24082
24077
|
constructor(t) {
|
24083
24078
|
this.buffered = void 0;
|
24084
24079
|
const e = (i, n, o) => {
|
@@ -24099,7 +24094,7 @@ class dT {
|
|
24099
24094
|
};
|
24100
24095
|
}
|
24101
24096
|
}
|
24102
|
-
class
|
24097
|
+
class fT extends mh {
|
24103
24098
|
constructor(t) {
|
24104
24099
|
super(t, "[subtitle-track-controller]"), this.media = null, this.tracks = [], this.groupId = null, this.tracksInGroup = [], this.trackId = -1, this.selectDefaultTrack = !0, this.queuedDefaultTrack = -1, this.trackChangeListener = () => this.onTextTracksChanged(), this.asyncPollTrackChange = () => this.pollTrackChange(0), this.useTextTrackPolling = !1, this.subtitlePollingInterval = -1, this._subtitleDisplay = !0, this.registerListeners();
|
24105
24100
|
}
|
@@ -24309,7 +24304,7 @@ function ac(s) {
|
|
24309
24304
|
}
|
24310
24305
|
return t;
|
24311
24306
|
}
|
24312
|
-
class
|
24307
|
+
class pT {
|
24313
24308
|
constructor(t) {
|
24314
24309
|
this.buffers = void 0, this.queues = {
|
24315
24310
|
video: [],
|
@@ -24361,7 +24356,7 @@ class fT {
|
|
24361
24356
|
}
|
24362
24357
|
}
|
24363
24358
|
const I0 = el(), x0 = /([ha]vc.)(?:\.[^.,]+)+/;
|
24364
|
-
class
|
24359
|
+
class gT {
|
24365
24360
|
// The level details used to determine duration, target-duration and live
|
24366
24361
|
// cache the self generated object url to detect hijack of video tag
|
24367
24362
|
// A queue of buffer operations which require the SourceBuffer to not be updating upon execution
|
@@ -24412,7 +24407,7 @@ class pT {
|
|
24412
24407
|
t.off(R.MEDIA_ATTACHING, this.onMediaAttaching, this), t.off(R.MEDIA_DETACHING, this.onMediaDetaching, this), t.off(R.MANIFEST_LOADING, this.onManifestLoading, this), t.off(R.MANIFEST_PARSED, this.onManifestParsed, this), t.off(R.BUFFER_RESET, this.onBufferReset, this), t.off(R.BUFFER_APPENDING, this.onBufferAppending, this), t.off(R.BUFFER_CODECS, this.onBufferCodecs, this), t.off(R.BUFFER_EOS, this.onBufferEos, this), t.off(R.BUFFER_FLUSHING, this.onBufferFlushing, this), t.off(R.LEVEL_UPDATED, this.onLevelUpdated, this), t.off(R.FRAG_PARSED, this.onFragParsed, this), t.off(R.FRAG_CHANGED, this.onFragChanged, this);
|
24413
24408
|
}
|
24414
24409
|
_initSourceBuffer() {
|
24415
|
-
this.sourceBuffer = {}, this.operationQueue = new
|
24410
|
+
this.sourceBuffer = {}, this.operationQueue = new pT(this.sourceBuffer), this.listeners = {
|
24416
24411
|
audio: [],
|
24417
24412
|
video: [],
|
24418
24413
|
audiovideo: []
|
@@ -25044,7 +25039,7 @@ const D0 = {
|
|
25044
25039
|
}, jp = function(s) {
|
25045
25040
|
let t = s;
|
25046
25041
|
return D0.hasOwnProperty(s) && (t = D0[s]), String.fromCharCode(t);
|
25047
|
-
}, Sr = 15, ts = 100,
|
25042
|
+
}, Sr = 15, ts = 100, mT = {
|
25048
25043
|
17: 1,
|
25049
25044
|
18: 3,
|
25050
25045
|
21: 5,
|
@@ -25053,7 +25048,7 @@ const D0 = {
|
|
25053
25048
|
16: 11,
|
25054
25049
|
19: 12,
|
25055
25050
|
20: 14
|
25056
|
-
},
|
25051
|
+
}, vT = {
|
25057
25052
|
17: 2,
|
25058
25053
|
18: 4,
|
25059
25054
|
21: 6,
|
@@ -25061,7 +25056,7 @@ const D0 = {
|
|
25061
25056
|
23: 10,
|
25062
25057
|
19: 13,
|
25063
25058
|
20: 15
|
25064
|
-
},
|
25059
|
+
}, yT = {
|
25065
25060
|
25: 1,
|
25066
25061
|
26: 3,
|
25067
25062
|
29: 5,
|
@@ -25070,7 +25065,7 @@ const D0 = {
|
|
25070
25065
|
24: 11,
|
25071
25066
|
27: 12,
|
25072
25067
|
28: 14
|
25073
|
-
},
|
25068
|
+
}, bT = {
|
25074
25069
|
25: 2,
|
25075
25070
|
26: 4,
|
25076
25071
|
29: 6,
|
@@ -25078,8 +25073,8 @@ const D0 = {
|
|
25078
25073
|
31: 10,
|
25079
25074
|
27: 13,
|
25080
25075
|
28: 15
|
25081
|
-
},
|
25082
|
-
class
|
25076
|
+
}, AT = ["white", "green", "blue", "cyan", "red", "yellow", "magenta", "black", "transparent"];
|
25077
|
+
class ET {
|
25083
25078
|
constructor() {
|
25084
25079
|
this.time = null, this.verboseLevel = 0;
|
25085
25080
|
}
|
@@ -25123,7 +25118,7 @@ class Kp {
|
|
25123
25118
|
return "color=" + this.foreground + ", underline=" + this.underline + ", italics=" + this.italics + ", background=" + this.background + ", flash=" + this.flash;
|
25124
25119
|
}
|
25125
25120
|
}
|
25126
|
-
class
|
25121
|
+
class TT {
|
25127
25122
|
constructor(t, e, i, n, o, c) {
|
25128
25123
|
this.uchar = void 0, this.penState = void 0, this.uchar = t || " ", this.penState = new Kp(e, i, n, o, c);
|
25129
25124
|
}
|
@@ -25146,11 +25141,11 @@ class ET {
|
|
25146
25141
|
return this.uchar === " " && this.penState.isDefault();
|
25147
25142
|
}
|
25148
25143
|
}
|
25149
|
-
class
|
25144
|
+
class kT {
|
25150
25145
|
constructor(t) {
|
25151
25146
|
this.chars = void 0, this.pos = void 0, this.currPenState = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chars = [];
|
25152
25147
|
for (let e = 0; e < ts; e++)
|
25153
|
-
this.chars.push(new
|
25148
|
+
this.chars.push(new TT());
|
25154
25149
|
this.logger = t, this.pos = 0, this.currPenState = new Kp();
|
25155
25150
|
}
|
25156
25151
|
equals(t) {
|
@@ -25234,7 +25229,7 @@ class oc {
|
|
25234
25229
|
constructor(t) {
|
25235
25230
|
this.rows = void 0, this.currRow = void 0, this.nrRollUpRows = void 0, this.lastOutputScreen = void 0, this.logger = void 0, this.rows = [];
|
25236
25231
|
for (let e = 0; e < Sr; e++)
|
25237
|
-
this.rows.push(new
|
25232
|
+
this.rows.push(new kT(t));
|
25238
25233
|
this.logger = t, this.currRow = Sr - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.reset();
|
25239
25234
|
}
|
25240
25235
|
reset() {
|
@@ -25450,7 +25445,7 @@ class P0 {
|
|
25450
25445
|
class O0 {
|
25451
25446
|
constructor(t, e, i) {
|
25452
25447
|
this.channels = void 0, this.currentChannel = 0, this.cmdHistory = void 0, this.logger = void 0;
|
25453
|
-
const n = new
|
25448
|
+
const n = new ET();
|
25454
25449
|
this.channels = [null, new P0(t, e, n), new P0(t + 1, i, n)], this.cmdHistory = $0(), this.logger = n;
|
25455
25450
|
}
|
25456
25451
|
getHandler(t) {
|
@@ -25514,7 +25509,7 @@ class O0 {
|
|
25514
25509
|
if (M0(t, e, n))
|
25515
25510
|
return wn(null, null, n), !0;
|
25516
25511
|
const d = t <= 23 ? 1 : 2;
|
25517
|
-
e >= 64 && e <= 95 ? i = d === 1 ?
|
25512
|
+
e >= 64 && e <= 95 ? i = d === 1 ? mT[t] : yT[t] : i = d === 1 ? vT[t] : bT[t];
|
25518
25513
|
const f = this.channels[d];
|
25519
25514
|
return f ? (f.setPAC(this.interpretPAC(i, e)), wn(t, e, n), this.currentChannel = d, !0) : !1;
|
25520
25515
|
}
|
@@ -25560,7 +25555,7 @@ class O0 {
|
|
25560
25555
|
return !1;
|
25561
25556
|
let o;
|
25562
25557
|
const c = {};
|
25563
|
-
t === 16 || t === 24 ? (o = Math.floor((e - 32) / 2), c.background =
|
25558
|
+
t === 16 || t === 24 ? (o = Math.floor((e - 32) / 2), c.background = AT[o], e % 2 === 1 && (c.background = c.background + "_semi")) : e === 45 ? c.background = "transparent" : (c.foreground = "black", e === 47 && (c.underline = !0));
|
25564
25559
|
const d = t <= 23 ? 1 : 2;
|
25565
25560
|
return this.channels[d].setBkgData(c), wn(t, e, this.cmdHistory), !0;
|
25566
25561
|
}
|
@@ -25767,7 +25762,7 @@ var Sh = function() {
|
|
25767
25762
|
return self.WebVTT.convertCueToDOMTree(self, this.text);
|
25768
25763
|
}, c;
|
25769
25764
|
}();
|
25770
|
-
class
|
25765
|
+
class wT {
|
25771
25766
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
25772
25767
|
decode(t, e) {
|
25773
25768
|
if (!t)
|
@@ -25784,7 +25779,7 @@ function zp(s) {
|
|
25784
25779
|
const e = s.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);
|
25785
25780
|
return e ? parseFloat(e[2]) > 59 ? t(e[2], e[3], 0, e[4]) : t(e[1], e[2], e[3], e[4]) : null;
|
25786
25781
|
}
|
25787
|
-
class
|
25782
|
+
class ST {
|
25788
25783
|
constructor() {
|
25789
25784
|
this.values = /* @__PURE__ */ Object.create(null);
|
25790
25785
|
}
|
@@ -25839,7 +25834,7 @@ function Yp(s, t, e, i) {
|
|
25839
25834
|
}
|
25840
25835
|
}
|
25841
25836
|
const Uc = new Sh(0, 0, ""), fo = Uc.align === "middle" ? "middle" : "center";
|
25842
|
-
function
|
25837
|
+
function RT(s, t, e) {
|
25843
25838
|
const i = s;
|
25844
25839
|
function n() {
|
25845
25840
|
const d = zp(s);
|
@@ -25848,7 +25843,7 @@ function ST(s, t, e) {
|
|
25848
25843
|
return s = s.replace(/^[^\sa-zA-Z-]+/, ""), d;
|
25849
25844
|
}
|
25850
25845
|
function o(d, f) {
|
25851
|
-
const p = new
|
25846
|
+
const p = new ST();
|
25852
25847
|
Yp(d, function(A, E) {
|
25853
25848
|
let T;
|
25854
25849
|
switch (A) {
|
@@ -25892,9 +25887,9 @@ function Xp(s) {
|
|
25892
25887
|
return s.replace(/<br(?: \/)?>/gi, `
|
25893
25888
|
`);
|
25894
25889
|
}
|
25895
|
-
class
|
25890
|
+
class _T {
|
25896
25891
|
constructor() {
|
25897
|
-
this.state = "INITIAL", this.buffer = "", this.decoder = new
|
25892
|
+
this.state = "INITIAL", this.buffer = "", this.decoder = new wT(), this.regionList = [], this.cue = null, this.oncue = void 0, this.onparsingerror = void 0, this.onflush = void 0;
|
25898
25893
|
}
|
25899
25894
|
parse(t) {
|
25900
25895
|
const e = this;
|
@@ -25953,7 +25948,7 @@ class RT {
|
|
25953
25948
|
continue;
|
25954
25949
|
}
|
25955
25950
|
try {
|
25956
|
-
|
25951
|
+
RT(o, e.cue, e.regionList);
|
25957
25952
|
} catch {
|
25958
25953
|
e.cue = null, e.state = "BADCUE";
|
25959
25954
|
continue;
|
@@ -25995,9 +25990,9 @@ class RT {
|
|
25995
25990
|
return t.onflush && t.onflush(), this;
|
25996
25991
|
}
|
25997
25992
|
}
|
25998
|
-
const
|
25993
|
+
const LT = /\r\n|\n\r|\n|\r/g, lc = function(s, t, e = 0) {
|
25999
25994
|
return s.slice(e, e + t.length) === t;
|
26000
|
-
},
|
25995
|
+
}, CT = function(s) {
|
26001
25996
|
let t = parseInt(s.slice(-3));
|
26002
25997
|
const e = parseInt(s.slice(-6, -4)), i = parseInt(s.slice(-9, -7)), n = s.length > 9 ? parseInt(s.substring(0, s.indexOf(":"))) : 0;
|
26003
25998
|
if (!jt(t) || !jt(e) || !jt(i) || !jt(n))
|
@@ -26012,7 +26007,7 @@ const _T = /\r\n|\n\r|\n|\r/g, lc = function(s, t, e = 0) {
|
|
26012
26007
|
function Rh(s, t, e) {
|
26013
26008
|
return cc(s.toString()) + cc(t.toString()) + cc(e);
|
26014
26009
|
}
|
26015
|
-
const
|
26010
|
+
const IT = function(s, t, e) {
|
26016
26011
|
let i = s[t], n = s[i.prevCC];
|
26017
26012
|
if (!n || !n.new && i.new) {
|
26018
26013
|
s.ccOffset = s.presentationOffset = i.start, i.new = !1;
|
@@ -26024,16 +26019,16 @@ const CT = function(s, t, e) {
|
|
26024
26019
|
}
|
26025
26020
|
s.presentationOffset = e;
|
26026
26021
|
};
|
26027
|
-
function
|
26028
|
-
const d = new
|
26022
|
+
function xT(s, t, e, i, n, o, c) {
|
26023
|
+
const d = new _T(), f = Wr(new Uint8Array(s)).trim().replace(LT, `
|
26029
26024
|
`).split(`
|
26030
|
-
`), p = [], g = t ?
|
26025
|
+
`), p = [], g = t ? VE(t.baseTime, t.timescale) : 0;
|
26031
26026
|
let y = "00:00.000", A = 0, E = 0, T, w = !0;
|
26032
26027
|
d.oncue = function(C) {
|
26033
26028
|
const P = e[i];
|
26034
26029
|
let O = e.ccOffset;
|
26035
26030
|
const B = (A - g) / 9e4;
|
26036
|
-
if (P != null && P.new && (E !== void 0 ? O = e.ccOffset = P.start :
|
26031
|
+
if (P != null && P.new && (E !== void 0 ? O = e.ccOffset = P.start : IT(e, i, B)), B) {
|
26037
26032
|
if (!t) {
|
26038
26033
|
T = new Error("Missing initPTS for VTT MPEGTS");
|
26039
26034
|
return;
|
@@ -26059,7 +26054,7 @@ function IT(s, t, e, i, n, o, c) {
|
|
26059
26054
|
lc(P, "LOCAL:") ? y = P.slice(6) : lc(P, "MPEGTS:") && (A = parseInt(P.slice(7)));
|
26060
26055
|
});
|
26061
26056
|
try {
|
26062
|
-
E =
|
26057
|
+
E = CT(y) / 1e3;
|
26063
26058
|
} catch (P) {
|
26064
26059
|
T = P;
|
26065
26060
|
}
|
@@ -26070,7 +26065,7 @@ function IT(s, t, e, i, n, o, c) {
|
|
26070
26065
|
`);
|
26071
26066
|
}), d.flush();
|
26072
26067
|
}
|
26073
|
-
const hc = "stpp.ttml.im1t", Zp = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, qp = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,
|
26068
|
+
const hc = "stpp.ttml.im1t", Zp = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, qp = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/, DT = {
|
26074
26069
|
left: "start",
|
26075
26070
|
center: "center",
|
26076
26071
|
right: "end",
|
@@ -26083,14 +26078,14 @@ function N0(s, t, e, i) {
|
|
26083
26078
|
i(new Error("Could not parse IMSC1 mdat"));
|
26084
26079
|
return;
|
26085
26080
|
}
|
26086
|
-
const o = n.map((d) => Wr(d)), c =
|
26081
|
+
const o = n.map((d) => Wr(d)), c = GE(t.baseTime, 1, t.timescale);
|
26087
26082
|
try {
|
26088
|
-
o.forEach((d) => e(
|
26083
|
+
o.forEach((d) => e(PT(d, c)));
|
26089
26084
|
} catch (d) {
|
26090
26085
|
i(d);
|
26091
26086
|
}
|
26092
26087
|
}
|
26093
|
-
function
|
26088
|
+
function PT(s, t) {
|
26094
26089
|
const e = new DOMParser().parseFromString(s, "text/xml").getElementsByTagName("tt")[0];
|
26095
26090
|
if (!e)
|
26096
26091
|
throw new Error("Invalid ttml");
|
@@ -26115,11 +26110,11 @@ function DT(s, t) {
|
|
26115
26110
|
}
|
26116
26111
|
const T = new Sh(y - t, E - t, g);
|
26117
26112
|
T.id = Rh(T.startTime, T.endTime, T.text);
|
26118
|
-
const w = d[p.getAttribute("region")], C = c[p.getAttribute("style")], P =
|
26113
|
+
const w = d[p.getAttribute("region")], C = c[p.getAttribute("style")], P = OT(w, C, c), {
|
26119
26114
|
textAlign: O
|
26120
26115
|
} = P;
|
26121
26116
|
if (O) {
|
26122
|
-
const B =
|
26117
|
+
const B = DT[O];
|
26123
26118
|
B && (T.lineAlign = B), T.align = O;
|
26124
26119
|
}
|
26125
26120
|
return di(T, P), T;
|
@@ -26142,7 +26137,7 @@ function Qp(s, t) {
|
|
26142
26137
|
` : (o = i.childNodes) != null && o.length ? Qp(i, t) : t ? e + i.textContent.trim().replace(/\s+/g, " ") : e + i.textContent;
|
26143
26138
|
}, "");
|
26144
26139
|
}
|
26145
|
-
function
|
26140
|
+
function OT(s, t, e) {
|
26146
26141
|
const i = "http://www.w3.org/ns/ttml#styling";
|
26147
26142
|
let n = null;
|
26148
26143
|
const o = [
|
@@ -26174,13 +26169,13 @@ function fc(s, t) {
|
|
26174
26169
|
if (!s)
|
26175
26170
|
return null;
|
26176
26171
|
let e = zp(s);
|
26177
|
-
return e === null && (Zp.test(s) ? e =
|
26172
|
+
return e === null && (Zp.test(s) ? e = MT(s, t) : qp.test(s) && (e = $T(s, t))), e;
|
26178
26173
|
}
|
26179
|
-
function
|
26174
|
+
function MT(s, t) {
|
26180
26175
|
const e = Zp.exec(s), i = (e[4] | 0) + (e[5] | 0) / t.subFrameRate;
|
26181
26176
|
return (e[1] | 0) * 3600 + (e[2] | 0) * 60 + (e[3] | 0) + i / t.frameRate;
|
26182
26177
|
}
|
26183
|
-
function
|
26178
|
+
function $T(s, t) {
|
26184
26179
|
const e = qp.exec(s), i = Number(e[1]);
|
26185
26180
|
switch (e[2]) {
|
26186
26181
|
case "h":
|
@@ -26196,7 +26191,7 @@ function MT(s, t) {
|
|
26196
26191
|
}
|
26197
26192
|
return i;
|
26198
26193
|
}
|
26199
|
-
class
|
26194
|
+
class NT {
|
26200
26195
|
constructor(t) {
|
26201
26196
|
if (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.lastSn = -1, this.lastPartIndex = -1, this.prevCC = -1, this.vttCCs = B0(), this.captionsProperties = void 0, this.hls = t, this.config = t.config, this.Cues = t.config.cueHandler, this.captionsProperties = {
|
26202
26197
|
textTrack1: {
|
@@ -26230,7 +26225,7 @@ class $T {
|
|
26230
26225
|
addCues(t, e, i, n, o) {
|
26231
26226
|
let c = !1;
|
26232
26227
|
for (let d = o.length; d--; ) {
|
26233
|
-
const f = o[d], p =
|
26228
|
+
const f = o[d], p = UT(f[0], f[1], e, i);
|
26234
26229
|
if (p >= 0 && (f[0] = Math.min(f[0], e), f[1] = Math.max(f[1], i), c = !0, p / (i - e) > 0.5))
|
26235
26230
|
return;
|
26236
26231
|
}
|
@@ -26357,7 +26352,7 @@ class $T {
|
|
26357
26352
|
if (o && d < o.length) {
|
26358
26353
|
let p = null;
|
26359
26354
|
for (let g = 0; g < o.length; g++)
|
26360
|
-
if (
|
26355
|
+
if (FT(o[g], c)) {
|
26361
26356
|
p = o[g];
|
26362
26357
|
break;
|
26363
26358
|
}
|
@@ -26470,7 +26465,7 @@ class $T {
|
|
26470
26465
|
return;
|
26471
26466
|
}
|
26472
26467
|
const f = this.hls, p = (e = i.initSegment) != null && e.data ? ln(i.initSegment.data, new Uint8Array(n)) : n;
|
26473
|
-
|
26468
|
+
xT(p, this.initPTS[i.cc], this.vttCCs, i.cc, i.start, (g) => {
|
26474
26469
|
this._appendCues(g, i.level), f.trigger(R.SUBTITLE_FRAG_PROCESSED, {
|
26475
26470
|
success: !0,
|
26476
26471
|
frag: i
|
@@ -26577,10 +26572,10 @@ class $T {
|
|
26577
26572
|
return e;
|
26578
26573
|
}
|
26579
26574
|
}
|
26580
|
-
function
|
26575
|
+
function FT(s, t) {
|
26581
26576
|
return !!s && s.label === t.name && !(s.textTrack1 || s.textTrack2);
|
26582
26577
|
}
|
26583
|
-
function
|
26578
|
+
function UT(s, t, e, i) {
|
26584
26579
|
return Math.min(t, i) - Math.max(s, e);
|
26585
26580
|
}
|
26586
26581
|
function B0() {
|
@@ -26710,7 +26705,7 @@ class _h {
|
|
26710
26705
|
return o;
|
26711
26706
|
}
|
26712
26707
|
}
|
26713
|
-
class
|
26708
|
+
class BT {
|
26714
26709
|
// stream controller must be provided as a dependency!
|
26715
26710
|
constructor(t) {
|
26716
26711
|
this.hls = void 0, this.isVideoPlaybackQualityAvailable = !1, this.timer = void 0, this.media = null, this.lastTime = void 0, this.lastDroppedFrames = 0, this.lastDecodedFrames = 0, this.streamController = void 0, this.hls = t, this.registerListeners();
|
@@ -26830,7 +26825,7 @@ class In {
|
|
26830
26825
|
return i(t, e);
|
26831
26826
|
}
|
26832
26827
|
getMediaKeysPromise(t, e, i) {
|
26833
|
-
const n =
|
26828
|
+
const n = tA(t, e, i, this.config.drmSystemOptions), o = this.keySystemAccessPromises[t];
|
26834
26829
|
let c = o == null ? void 0 : o.keySystemAccess;
|
26835
26830
|
if (!c) {
|
26836
26831
|
this.log(`Requesting encrypted media "${t}" key-system access with config: ${JSON.stringify(n)}`), c = this.requestMediaKeySystemAccess(t, n);
|
@@ -26969,10 +26964,10 @@ class In {
|
|
26969
26964
|
return;
|
26970
26965
|
}
|
26971
26966
|
} else {
|
26972
|
-
const g =
|
26967
|
+
const g = wA(i);
|
26973
26968
|
if (g === null)
|
26974
26969
|
return;
|
26975
|
-
g.version === 0 && g.systemId === op.WIDEVINE && g.data && (n = g.data.subarray(8, 24)), o =
|
26970
|
+
g.version === 0 && g.systemId === op.WIDEVINE && g.data && (n = g.data.subarray(8, 24)), o = J4(g.systemId);
|
26976
26971
|
}
|
26977
26972
|
if (!o || !n)
|
26978
26973
|
return;
|
@@ -27287,7 +27282,7 @@ class fr extends Error {
|
|
27287
27282
|
super(e), this.data = void 0, t.error || (t.error = new Error(e)), this.data = t, t.err = t.error;
|
27288
27283
|
}
|
27289
27284
|
}
|
27290
|
-
const
|
27285
|
+
const GT = 1;
|
27291
27286
|
var Xi = {
|
27292
27287
|
MANIFEST: "m",
|
27293
27288
|
AUDIO: "a",
|
@@ -27299,7 +27294,7 @@ var Xi = {
|
|
27299
27294
|
KEY: "k",
|
27300
27295
|
OTHER: "o"
|
27301
27296
|
};
|
27302
|
-
const
|
27297
|
+
const VT = "h";
|
27303
27298
|
class _s {
|
27304
27299
|
// eslint-disable-line no-restricted-globals
|
27305
27300
|
// eslint-disable-line no-restricted-globals
|
@@ -27360,8 +27355,8 @@ class _s {
|
|
27360
27355
|
createData() {
|
27361
27356
|
var t;
|
27362
27357
|
return {
|
27363
|
-
v:
|
27364
|
-
sf:
|
27358
|
+
v: GT,
|
27359
|
+
sf: VT,
|
27365
27360
|
sid: this.sid,
|
27366
27361
|
cid: this.cid,
|
27367
27362
|
pr: (t = this.media) == null ? void 0 : t.playbackRate,
|
@@ -27572,8 +27567,8 @@ class _s {
|
|
27572
27567
|
return `${t}${i}${e}`;
|
27573
27568
|
}
|
27574
27569
|
}
|
27575
|
-
const
|
27576
|
-
class
|
27570
|
+
const HT = 3e5;
|
27571
|
+
class WT {
|
27577
27572
|
constructor(t) {
|
27578
27573
|
this.hls = void 0, this.log = void 0, this.loader = null, this.uri = null, this.pathwayId = ".", this.pathwayPriority = null, this.timeToLoad = 300, this.reloadTimer = -1, this.updated = 0, this.started = !1, this.enabled = !0, this.levels = null, this.audioTracks = null, this.subtitleTracks = null, this.penalizedPathways = {}, this.hls = t, this.log = X.log.bind(X, "[content-steering]:"), this.registerListeners();
|
27579
27574
|
}
|
@@ -27642,7 +27637,7 @@ class HT {
|
|
27642
27637
|
let e;
|
27643
27638
|
const i = this.penalizedPathways, n = performance.now();
|
27644
27639
|
Object.keys(i).forEach((o) => {
|
27645
|
-
n - i[o] >
|
27640
|
+
n - i[o] > HT && delete i[o];
|
27646
27641
|
});
|
27647
27642
|
for (let o = 0; o < t.length; o++) {
|
27648
27643
|
const c = t[o];
|
@@ -27784,7 +27779,7 @@ function Jp(s, t, e, i) {
|
|
27784
27779
|
p && f.searchParams.set(p, o[p]);
|
27785
27780
|
}), f.href;
|
27786
27781
|
}
|
27787
|
-
const
|
27782
|
+
const jT = /^age:\s*[\d.]+\s*$/im;
|
27788
27783
|
class t2 {
|
27789
27784
|
constructor(t) {
|
27790
27785
|
this.xhrSetup = void 0, this.requestTimeout = void 0, this.retryTimeout = void 0, this.retryDelay = void 0, this.config = null, this.callbacks = null, this.context = void 0, this.loader = null, this.stats = void 0, this.xhrSetup = t && t.xhrSetup || null, this.stats = new Jo(), this.retryDelay = 0;
|
@@ -27897,7 +27892,7 @@ class t2 {
|
|
27897
27892
|
}
|
27898
27893
|
getCacheAge() {
|
27899
27894
|
let t = null;
|
27900
|
-
if (this.loader &&
|
27895
|
+
if (this.loader && jT.test(this.loader.getAllResponseHeaders())) {
|
27901
27896
|
const e = this.loader.getResponseHeader("age");
|
27902
27897
|
t = e ? parseFloat(e) : null;
|
27903
27898
|
}
|
@@ -27907,7 +27902,7 @@ class t2 {
|
|
27907
27902
|
return this.loader && new RegExp(`^${t}:\\s*[\\d.]+\\s*$`, "im").test(this.loader.getAllResponseHeaders()) ? this.loader.getResponseHeader(t) : null;
|
27908
27903
|
}
|
27909
27904
|
}
|
27910
|
-
function
|
27905
|
+
function KT() {
|
27911
27906
|
if (
|
27912
27907
|
// @ts-ignore
|
27913
27908
|
self.fetch && self.AbortController && self.ReadableStream && self.Request
|
@@ -27918,10 +27913,10 @@ function jT() {
|
|
27918
27913
|
}
|
27919
27914
|
return !1;
|
27920
27915
|
}
|
27921
|
-
const
|
27916
|
+
const zT = /(\d+)-(\d+)\/(\d+)/;
|
27922
27917
|
class V0 {
|
27923
27918
|
constructor(t) {
|
27924
|
-
this.fetchSetup = void 0, this.requestTimeout = void 0, this.request = void 0, this.response = void 0, this.controller = void 0, this.context = void 0, this.config = null, this.callbacks = null, this.stats = void 0, this.loader = null, this.fetchSetup = t.fetchSetup ||
|
27919
|
+
this.fetchSetup = void 0, this.requestTimeout = void 0, this.request = void 0, this.response = void 0, this.controller = void 0, this.context = void 0, this.config = null, this.callbacks = null, this.stats = void 0, this.loader = null, this.fetchSetup = t.fetchSetup || qT, this.controller = new self.AbortController(), this.stats = new Jo();
|
27925
27920
|
}
|
27926
27921
|
destroy() {
|
27927
27922
|
this.loader = this.callbacks = null, this.abortInternal();
|
@@ -27939,7 +27934,7 @@ class V0 {
|
|
27939
27934
|
if (n.loading.start)
|
27940
27935
|
throw new Error("Loader can only be used once.");
|
27941
27936
|
n.loading.start = self.performance.now();
|
27942
|
-
const o =
|
27937
|
+
const o = YT(t, this.controller.signal), c = i.onProgress, d = t.responseType === "arraybuffer", f = d ? "byteLength" : "length", {
|
27943
27938
|
maxTimeToFirstByteMs: p,
|
27944
27939
|
maxLoadTimeMs: g
|
27945
27940
|
} = e.loadPolicy;
|
@@ -27955,9 +27950,9 @@ class V0 {
|
|
27955
27950
|
status: E,
|
27956
27951
|
statusText: T
|
27957
27952
|
} = y;
|
27958
|
-
throw new
|
27953
|
+
throw new QT(T || "fetch, bad network response", E, y);
|
27959
27954
|
}
|
27960
|
-
return n.loading.first = A, n.total =
|
27955
|
+
return n.loading.first = A, n.total = ZT(y.headers) || n.total, c && jt(e.highWaterMark) ? this.loadProgressively(y, n, t, e.highWaterMark, c) : d ? y.arrayBuffer() : t.responseType === "json" ? y.json() : y.text();
|
27961
27956
|
}).then((y) => {
|
27962
27957
|
const {
|
27963
27958
|
response: A
|
@@ -28002,7 +27997,7 @@ class V0 {
|
|
28002
27997
|
return f();
|
28003
27998
|
}
|
28004
27999
|
}
|
28005
|
-
function
|
28000
|
+
function YT(s, t) {
|
28006
28001
|
const e = {
|
28007
28002
|
method: "GET",
|
28008
28003
|
mode: "cors",
|
@@ -28012,15 +28007,15 @@ function zT(s, t) {
|
|
28012
28007
|
};
|
28013
28008
|
return s.rangeEnd && e.headers.set("Range", "bytes=" + s.rangeStart + "-" + String(s.rangeEnd - 1)), e;
|
28014
28009
|
}
|
28015
|
-
function
|
28016
|
-
const t =
|
28010
|
+
function XT(s) {
|
28011
|
+
const t = zT.exec(s);
|
28017
28012
|
if (t)
|
28018
28013
|
return parseInt(t[2]) - parseInt(t[1]) + 1;
|
28019
28014
|
}
|
28020
|
-
function
|
28015
|
+
function ZT(s) {
|
28021
28016
|
const t = s.get("Content-Range");
|
28022
28017
|
if (t) {
|
28023
|
-
const i =
|
28018
|
+
const i = XT(t);
|
28024
28019
|
if (jt(i))
|
28025
28020
|
return i;
|
28026
28021
|
}
|
@@ -28028,15 +28023,15 @@ function XT(s) {
|
|
28028
28023
|
if (e)
|
28029
28024
|
return parseInt(e);
|
28030
28025
|
}
|
28031
|
-
function
|
28026
|
+
function qT(s, t) {
|
28032
28027
|
return new self.Request(s.url, t);
|
28033
28028
|
}
|
28034
|
-
class
|
28029
|
+
class QT extends Error {
|
28035
28030
|
constructor(t, e, i) {
|
28036
28031
|
super(t), this.code = void 0, this.details = void 0, this.code = e, this.details = i;
|
28037
28032
|
}
|
28038
28033
|
}
|
28039
|
-
const
|
28034
|
+
const JT = /\s/, t3 = {
|
28040
28035
|
newCue(s, t, e, i) {
|
28041
28036
|
const n = [];
|
28042
28037
|
let o, c, d, f, p;
|
@@ -28045,19 +28040,19 @@ const QT = /\s/, JT = {
|
|
28045
28040
|
if (o = i.rows[A], d = !0, f = 0, p = "", !o.isEmpty()) {
|
28046
28041
|
var y;
|
28047
28042
|
for (let w = 0; w < o.chars.length; w++)
|
28048
|
-
|
28043
|
+
JT.test(o.chars[w].uchar) && d ? f++ : (p += o.chars[w].uchar, d = !1);
|
28049
28044
|
o.cueStartTime = t, t === e && (e += 1e-4), f >= 16 ? f-- : f++;
|
28050
28045
|
const E = Xp(p.trim()), T = Rh(t, e, E);
|
28051
28046
|
s != null && (y = s.cues) != null && y.getCueById(T) || (c = new g(t, e, E), c.id = T, c.line = A + 1, c.align = "left", c.position = 10 + Math.min(80, Math.floor(f * 8 / 32) * 10), n.push(c));
|
28052
28047
|
}
|
28053
28048
|
return s && n.length && (n.sort((A, E) => A.line === "auto" || E.line === "auto" ? 0 : A.line > 8 && E.line > 8 ? E.line - A.line : A.line - E.line), n.forEach((A) => Ep(s, A))), n;
|
28054
28049
|
}
|
28055
|
-
},
|
28050
|
+
}, e3 = {
|
28056
28051
|
maxTimeToFirstByteMs: 8e3,
|
28057
28052
|
maxLoadTimeMs: 2e4,
|
28058
28053
|
timeoutRetry: null,
|
28059
28054
|
errorRetry: null
|
28060
|
-
},
|
28055
|
+
}, i3 = tr(tr({
|
28061
28056
|
autoStartLoad: !0,
|
28062
28057
|
// used by stream-controller
|
28063
28058
|
startPosition: -1,
|
@@ -28137,11 +28132,11 @@ const QT = /\s/, JT = {
|
|
28137
28132
|
// used by eme-controller
|
28138
28133
|
licenseResponseCallback: void 0,
|
28139
28134
|
// used by eme-controller
|
28140
|
-
abrController:
|
28141
|
-
bufferController:
|
28135
|
+
abrController: aT,
|
28136
|
+
bufferController: gT,
|
28142
28137
|
capLevelController: _h,
|
28143
|
-
errorController:
|
28144
|
-
fpsController:
|
28138
|
+
errorController: QA,
|
28139
|
+
fpsController: BT,
|
28145
28140
|
stretchShortVideoTrack: !1,
|
28146
28141
|
// used by mp4-remuxer
|
28147
28142
|
maxAudioFramesDrift: 1,
|
@@ -28188,7 +28183,7 @@ const QT = /\s/, JT = {
|
|
28188
28183
|
enableEmsgMetadataCues: !0,
|
28189
28184
|
enableID3MetadataCues: !0,
|
28190
28185
|
certLoadPolicy: {
|
28191
|
-
default:
|
28186
|
+
default: e3
|
28192
28187
|
},
|
28193
28188
|
keyLoadPolicy: {
|
28194
28189
|
default: {
|
@@ -28286,19 +28281,19 @@ const QT = /\s/, JT = {
|
|
28286
28281
|
fragLoadingMaxRetry: 6,
|
28287
28282
|
fragLoadingRetryDelay: 1e3,
|
28288
28283
|
fragLoadingMaxRetryTimeout: 64e3
|
28289
|
-
},
|
28290
|
-
subtitleStreamController:
|
28291
|
-
subtitleTrackController:
|
28292
|
-
timelineController:
|
28293
|
-
audioStreamController:
|
28294
|
-
audioTrackController:
|
28284
|
+
}, r3()), {}, {
|
28285
|
+
subtitleStreamController: dT,
|
28286
|
+
subtitleTrackController: fT,
|
28287
|
+
timelineController: NT,
|
28288
|
+
audioStreamController: lT,
|
28289
|
+
audioTrackController: cT,
|
28295
28290
|
emeController: In,
|
28296
28291
|
cmcdController: _s,
|
28297
|
-
contentSteeringController:
|
28292
|
+
contentSteeringController: WT
|
28298
28293
|
});
|
28299
|
-
function
|
28294
|
+
function r3() {
|
28300
28295
|
return {
|
28301
|
-
cueHandler:
|
28296
|
+
cueHandler: t3,
|
28302
28297
|
// used by timeline-controller
|
28303
28298
|
enableWebVTT: !0,
|
28304
28299
|
// used by timeline-controller
|
@@ -28325,7 +28320,7 @@ function i3() {
|
|
28325
28320
|
renderTextTracksNatively: !0
|
28326
28321
|
};
|
28327
28322
|
}
|
28328
|
-
function
|
28323
|
+
function s3(s, t) {
|
28329
28324
|
if ((t.liveSyncDurationCount || t.liveMaxLatencyDurationCount) && (t.liveSyncDuration || t.liveMaxLatencyDuration))
|
28330
28325
|
throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");
|
28331
28326
|
if (t.liveMaxLatencyDurationCount !== void 0 && (t.liveSyncDurationCount === void 0 || t.liveMaxLatencyDurationCount <= t.liveSyncDurationCount))
|
@@ -28363,9 +28358,9 @@ function r3(s, t) {
|
|
28363
28358
|
function Bc(s) {
|
28364
28359
|
return s && typeof s == "object" ? Array.isArray(s) ? s.map(Bc) : Object.keys(s).reduce((t, e) => (t[e] = Bc(s[e]), t), {}) : s;
|
28365
28360
|
}
|
28366
|
-
function
|
28361
|
+
function n3(s) {
|
28367
28362
|
const t = s.loader;
|
28368
|
-
t !== V0 && t !== t2 ? (X.log("[config]: Custom loader detected, cannot enable progressive streaming"), s.progressive = !1) :
|
28363
|
+
t !== V0 && t !== t2 ? (X.log("[config]: Custom loader detected, cannot enable progressive streaming"), s.progressive = !1) : KT() && (s.loader = V0, s.progressive = !0, s.enableSoftwareAES = !0, X.log("[config]: Progressive streaming enabled, using FetchLoader"));
|
28369
28364
|
}
|
28370
28365
|
class as {
|
28371
28366
|
/**
|
@@ -28384,7 +28379,7 @@ class as {
|
|
28384
28379
|
* Check if the required MediaSource Extensions are available.
|
28385
28380
|
*/
|
28386
28381
|
static isSupported() {
|
28387
|
-
return
|
28382
|
+
return vE();
|
28388
28383
|
}
|
28389
28384
|
static get Events() {
|
28390
28385
|
return R;
|
@@ -28399,7 +28394,7 @@ class as {
|
|
28399
28394
|
* Get the default configuration applied to new instances.
|
28400
28395
|
*/
|
28401
28396
|
static get DefaultConfig() {
|
28402
|
-
return as.defaultConfig ? as.defaultConfig :
|
28397
|
+
return as.defaultConfig ? as.defaultConfig : i3;
|
28403
28398
|
}
|
28404
28399
|
/**
|
28405
28400
|
* Replace the default configuration applied to new instances.
|
@@ -28412,16 +28407,16 @@ class as {
|
|
28412
28407
|
* @param userConfig - Configuration options applied over `Hls.DefaultConfig`
|
28413
28408
|
*/
|
28414
28409
|
constructor(t = {}) {
|
28415
|
-
this.config = void 0, this.userConfig = void 0, this.coreComponents = void 0, this.networkControllers = void 0, this._emitter = new wh(), this._autoLevelCapping = void 0, this._maxHdcpLevel = null, this.abrController = void 0, this.bufferController = void 0, this.capLevelController = void 0, this.latencyController = void 0, this.levelController = void 0, this.streamController = void 0, this.audioTrackController = void 0, this.subtitleTrackController = void 0, this.emeController = void 0, this.cmcdController = void 0, this._media = null, this.url = null,
|
28416
|
-
const e = this.config =
|
28417
|
-
this.userConfig = t, this._autoLevelCapping = -1, e.progressive &&
|
28410
|
+
this.config = void 0, this.userConfig = void 0, this.coreComponents = void 0, this.networkControllers = void 0, this._emitter = new wh(), this._autoLevelCapping = void 0, this._maxHdcpLevel = null, this.abrController = void 0, this.bufferController = void 0, this.capLevelController = void 0, this.latencyController = void 0, this.levelController = void 0, this.streamController = void 0, this.audioTrackController = void 0, this.subtitleTrackController = void 0, this.emeController = void 0, this.cmcdController = void 0, this._media = null, this.url = null, H4(t.debug || !1, "Hls instance");
|
28411
|
+
const e = this.config = s3(as.DefaultConfig, t);
|
28412
|
+
this.userConfig = t, this._autoLevelCapping = -1, e.progressive && n3(e);
|
28418
28413
|
const {
|
28419
28414
|
abrController: i,
|
28420
28415
|
bufferController: n,
|
28421
28416
|
capLevelController: o,
|
28422
28417
|
errorController: c,
|
28423
28418
|
fpsController: d
|
28424
|
-
} = e, f = new c(this), p = this.abrController = new i(this), g = this.bufferController = new n(this), y = this.capLevelController = new o(this), A = new d(this), E = new
|
28419
|
+
} = e, f = new c(this), p = this.abrController = new i(this), g = this.bufferController = new n(this), y = this.capLevelController = new o(this), A = new d(this), E = new PA(this), T = new FA(this), w = e.contentSteeringController, C = w ? new w(this) : null, P = this.levelController = new tE(this, C), O = new eE(this), B = new rE(this.config), x = this.streamController = new sT(this, O, B);
|
28425
28420
|
y.setStreamController(x), A.setStreamController(x);
|
28426
28421
|
const H = [E, P, x];
|
28427
28422
|
C && H.splice(1, 0, C), this.networkControllers = H;
|
@@ -28430,7 +28425,7 @@ class as {
|
|
28430
28425
|
const z = e.audioStreamController;
|
28431
28426
|
z && H.push(new z(this, O, B)), this.subtitleTrackController = this.createController(e.subtitleTrackController, H);
|
28432
28427
|
const tt = e.subtitleStreamController;
|
28433
|
-
tt && H.push(new tt(this, O, B)), this.createController(e.timelineController, F), B.emeController = this.emeController = this.createController(e.emeController, F), this.cmcdController = this.createController(e.cmcdController, F), this.latencyController = this.createController(
|
28428
|
+
tt && H.push(new tt(this, O, B)), this.createController(e.timelineController, F), B.emeController = this.emeController = this.createController(e.emeController, F), this.cmcdController = this.createController(e.cmcdController, F), this.latencyController = this.createController(UA, F), this.coreComponents = F, H.push(f);
|
28434
28429
|
const at = f.onErrorOut;
|
28435
28430
|
typeof at == "function" && this.on(R.ERROR, at, f);
|
28436
28431
|
}
|
@@ -28882,10 +28877,10 @@ class as {
|
|
28882
28877
|
}
|
28883
28878
|
}
|
28884
28879
|
as.defaultConfig = void 0;
|
28885
|
-
function
|
28880
|
+
function a3() {
|
28886
28881
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
28887
28882
|
}
|
28888
|
-
function
|
28883
|
+
function o3() {
|
28889
28884
|
return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
|
28890
28885
|
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
28891
28886
|
}
|
@@ -28894,7 +28889,7 @@ function Gc(s) {
|
|
28894
28889
|
return new Promise((c) => {
|
28895
28890
|
let d = null;
|
28896
28891
|
const f = document.createElement("video");
|
28897
|
-
if (f.playsInline = !0, f.muted = !0, f.loop = !1, n && !
|
28892
|
+
if (f.playsInline = !0, f.muted = !0, f.loop = !1, n && !a3() && as.isSupported()) {
|
28898
28893
|
let p = !1;
|
28899
28894
|
d = new as({
|
28900
28895
|
autoStartLoad: !0,
|
@@ -28954,7 +28949,7 @@ async function e2(s) {
|
|
28954
28949
|
};
|
28955
28950
|
}) : s.duration;
|
28956
28951
|
}
|
28957
|
-
const
|
28952
|
+
const l3 = Ds(
|
28958
28953
|
async function(s) {
|
28959
28954
|
return new FontFace(s.name, `url(${s.woff2 ?? s.url})`, {
|
28960
28955
|
style: s.style,
|
@@ -28965,7 +28960,7 @@ const o3 = Ds(
|
|
28965
28960
|
cacheKey: ([s]) => JSON.stringify(s)
|
28966
28961
|
}
|
28967
28962
|
);
|
28968
|
-
let
|
28963
|
+
let c3 = class {
|
28969
28964
|
constructor(s) {
|
28970
28965
|
this._hasPlayed = !1, this._memoKey = null, this._lastDeps = null, this._duration = 0, this._scenes = null, this._videos = {}, this._videoMeta = {}, this._videoState = {}, this._resolveVideo = Ds(
|
28971
28966
|
async (t) => {
|
@@ -29247,7 +29242,7 @@ let l3 = class {
|
|
29247
29242
|
buffered: p ? T : (A = this.videoState[E]) == null ? void 0 : A.buffered
|
29248
29243
|
}, f;
|
29249
29244
|
}, {})
|
29250
|
-
}, this.videoMeta = this.scenes.scenes.reduce((f, { video: p, videoMeta: g }) => (p && g && (f[p.key] = g), f), {}), (await Promise.all(this.scenes.fonts.map((f) =>
|
29245
|
+
}, this.videoMeta = this.scenes.scenes.reduce((f, { video: p, videoMeta: g }) => (p && g && (f[p.key] = g), f), {}), (await Promise.all(this.scenes.fonts.map((f) => l3(f)))).forEach((f) => {
|
29251
29246
|
document.fonts.add(f);
|
29252
29247
|
}), this.duration = this.scenes.duration, this.host.paused && this.host.reset(this.host.currentTime, !this.host.paused);
|
29253
29248
|
}
|
@@ -29321,10 +29316,10 @@ let l3 = class {
|
|
29321
29316
|
}), this.videos = {};
|
29322
29317
|
}
|
29323
29318
|
};
|
29324
|
-
function
|
29319
|
+
function h3(s) {
|
29325
29320
|
s.requestFullscreen ? s.requestFullscreen() : s.mozRequestFullScreen ? s.mozRequestFullScreen() : s.webkitRequestFullscreen ? s.webkitRequestFullscreen() : s.msRequestFullscreen && s.msRequestFullscreen();
|
29326
29321
|
}
|
29327
|
-
function
|
29322
|
+
function d3() {
|
29328
29323
|
document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen && document.webkitExitFullscreen();
|
29329
29324
|
}
|
29330
29325
|
const Lh = [
|
@@ -29339,11 +29334,11 @@ const Lh = [
|
|
29339
29334
|
"captions",
|
29340
29335
|
"fullscreen",
|
29341
29336
|
"preview"
|
29342
|
-
],
|
29337
|
+
], u3 = {
|
29343
29338
|
id: "captions",
|
29344
29339
|
event: "captions:click",
|
29345
29340
|
label: "Closed Captions"
|
29346
|
-
},
|
29341
|
+
}, f3 = {
|
29347
29342
|
id: "fullscreen",
|
29348
29343
|
event: "fullscreen:click",
|
29349
29344
|
label: "Full Screen"
|
@@ -29375,12 +29370,12 @@ const Lh = [
|
|
29375
29370
|
value: 2
|
29376
29371
|
}
|
29377
29372
|
]
|
29378
|
-
},
|
29373
|
+
}, p3 = {
|
29379
29374
|
id: "playbackRate",
|
29380
29375
|
label: "Playback playbackRate",
|
29381
29376
|
subItems: i2
|
29382
29377
|
};
|
29383
|
-
class
|
29378
|
+
class g3 extends yf {
|
29384
29379
|
constructor(t) {
|
29385
29380
|
if (super(t), this.element = null, this.observer = void 0, t.type !== Nn.ELEMENT)
|
29386
29381
|
throw new Error("Resize directive must be used in an Element expression");
|
@@ -29397,23 +29392,23 @@ class p3 extends yf {
|
|
29397
29392
|
return this.isConnected && !this.observer && (this.observer = new ResizeObserver(e), this.element = t.element, this.observer.observe(this.element)), Os;
|
29398
29393
|
}
|
29399
29394
|
}
|
29400
|
-
const Ch = Fn(
|
29395
|
+
const Ch = Fn(g3);
|
29401
29396
|
var H0 = Number.isNaN || function(s) {
|
29402
29397
|
return typeof s == "number" && s !== s;
|
29403
29398
|
};
|
29404
|
-
function
|
29399
|
+
function m3(s, t) {
|
29405
29400
|
return !!(s === t || H0(s) && H0(t));
|
29406
29401
|
}
|
29407
|
-
function
|
29402
|
+
function v3(s, t) {
|
29408
29403
|
if (s.length !== t.length)
|
29409
29404
|
return !1;
|
29410
29405
|
for (var e = 0; e < s.length; e++)
|
29411
|
-
if (!
|
29406
|
+
if (!m3(s[e], t[e]))
|
29412
29407
|
return !1;
|
29413
29408
|
return !0;
|
29414
29409
|
}
|
29415
|
-
function
|
29416
|
-
t === void 0 && (t =
|
29410
|
+
function y3(s, t) {
|
29411
|
+
t === void 0 && (t = v3);
|
29417
29412
|
var e = null;
|
29418
29413
|
function i() {
|
29419
29414
|
for (var n = [], o = 0; o < arguments.length; o++)
|
@@ -29431,7 +29426,7 @@ function v3(s, t) {
|
|
29431
29426
|
e = null;
|
29432
29427
|
}, i;
|
29433
29428
|
}
|
29434
|
-
const
|
29429
|
+
const b3 = y3(() => {
|
29435
29430
|
const s = new FontFace(
|
29436
29431
|
"Roobert",
|
29437
29432
|
"url(https://media-player-fonts.s3.ap-southeast-2.amazonaws.com/Roobert-Regular.woff2)",
|
@@ -29509,7 +29504,7 @@ const y3 = v3(() => {
|
|
29509
29504
|
"dark-800": "rgba(0, 0, 0, .8)",
|
29510
29505
|
"dark-900": "rgba(0, 0, 0, .9)",
|
29511
29506
|
"dark-1000": "#000"
|
29512
|
-
},
|
29507
|
+
}, A3 = {
|
29513
29508
|
colors: Fr,
|
29514
29509
|
space: {
|
29515
29510
|
xxs: ".25rem",
|
@@ -29592,18 +29587,18 @@ const y3 = v3(() => {
|
|
29592
29587
|
medium: "1rem",
|
29593
29588
|
large: "1.5rem"
|
29594
29589
|
}
|
29595
|
-
}, W0 =
|
29590
|
+
}, W0 = nb.flatten(A3, { delimiter: "-" }), E3 = Object.keys(W0).map((s) => Pa(`:host { --${s}: ${W0[s]}; }`)), T3 = (s) => {
|
29596
29591
|
class t extends s {
|
29597
29592
|
// Add fonts to parent document as long as they don't exist already
|
29598
29593
|
firstUpdated() {
|
29599
|
-
|
29594
|
+
b3().forEach(({ load: i, font: n }) => {
|
29600
29595
|
document.fonts.add(n), i && n.load();
|
29601
29596
|
});
|
29602
29597
|
}
|
29603
29598
|
}
|
29604
29599
|
return t.styles = [
|
29605
29600
|
(s == null ? void 0 : s.styles) ?? [],
|
29606
|
-
|
29601
|
+
E3,
|
29607
29602
|
wi`
|
29608
29603
|
:host {
|
29609
29604
|
font-family: var(--fontFamilies-sans);
|
@@ -29689,7 +29684,7 @@ const y3 = v3(() => {
|
|
29689
29684
|
}
|
29690
29685
|
`
|
29691
29686
|
], t;
|
29692
|
-
}, Ce =
|
29687
|
+
}, Ce = T3(Cn), k3 = (s, t) => (typeof window < "u" && (window.customElements.get(s) ?? window.customElements.define(s, t)), t), w3 = (s, t) => {
|
29693
29688
|
const { kind: e, elements: i } = t;
|
29694
29689
|
return {
|
29695
29690
|
kind: e,
|
@@ -29699,8 +29694,8 @@ const y3 = v3(() => {
|
|
29699
29694
|
typeof window < "u" && (window.customElements.get(s) ?? window.customElements.define(s, n));
|
29700
29695
|
}
|
29701
29696
|
};
|
29702
|
-
}, Vi = (s) => (t) => typeof t == "function" ?
|
29703
|
-
class
|
29697
|
+
}, Vi = (s) => (t) => typeof t == "function" ? k3(s, t) : w3(s, t);
|
29698
|
+
class S3 {
|
29704
29699
|
constructor(t) {
|
29705
29700
|
this._memoKey = null, this._lastDeps = null, this._scenes = null, this._video = null, this._handleSeeked = () => {
|
29706
29701
|
this.host._draw();
|
@@ -29827,10 +29822,10 @@ function Vc(s, t = {}) {
|
|
29827
29822
|
let d = i ? `${i}:${`${n}`.padStart(2, "0")}:${`${o}`.padStart(2, "0")}` : `${n}:${`${o}`.padStart(2, "0")}`;
|
29828
29823
|
return t.includeMs && (d += `:${`${c}`.padStart(3, "0")}`), d;
|
29829
29824
|
}
|
29830
|
-
var
|
29831
|
-
for (var n = i > 1 ? void 0 : i ?
|
29825
|
+
var R3 = Object.defineProperty, _3 = Object.getOwnPropertyDescriptor, Un = (s, t, e, i) => {
|
29826
|
+
for (var n = i > 1 ? void 0 : i ? _3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
29832
29827
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
29833
|
-
return i && n &&
|
29828
|
+
return i && n && R3(t, e, n), n;
|
29834
29829
|
};
|
29835
29830
|
let Ms = class extends Ce {
|
29836
29831
|
constructor() {
|
@@ -30135,10 +30130,10 @@ const K0 = {
|
|
30135
30130
|
/>
|
30136
30131
|
</svg>`
|
30137
30132
|
};
|
30138
|
-
var
|
30139
|
-
for (var n = i > 1 ? void 0 : i ?
|
30133
|
+
var L3 = Object.defineProperty, C3 = Object.getOwnPropertyDescriptor, r2 = (s, t, e, i) => {
|
30134
|
+
for (var n = i > 1 ? void 0 : i ? C3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30140
30135
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30141
|
-
return i && n &&
|
30136
|
+
return i && n && L3(t, e, n), n;
|
30142
30137
|
};
|
30143
30138
|
let Yo = class extends Ce {
|
30144
30139
|
render() {
|
@@ -30162,10 +30157,10 @@ r2([
|
|
30162
30157
|
Yo = r2([
|
30163
30158
|
Vi("vmp-icon")
|
30164
30159
|
], Yo);
|
30165
|
-
var
|
30166
|
-
for (var n = i > 1 ? void 0 : i ?
|
30160
|
+
var I3 = Object.defineProperty, x3 = Object.getOwnPropertyDescriptor, Bn = (s, t, e, i) => {
|
30161
|
+
for (var n = i > 1 ? void 0 : i ? x3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30167
30162
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30168
|
-
return i && n &&
|
30163
|
+
return i && n && I3(t, e, n), n;
|
30169
30164
|
};
|
30170
30165
|
let $s = class extends Ce {
|
30171
30166
|
constructor() {
|
@@ -30228,14 +30223,14 @@ Bn([
|
|
30228
30223
|
$s = Bn([
|
30229
30224
|
Vi("vmp-icon-button")
|
30230
30225
|
], $s);
|
30231
|
-
var
|
30232
|
-
for (var n = i > 1 ? void 0 : i ?
|
30226
|
+
var D3 = Object.defineProperty, P3 = Object.getOwnPropertyDescriptor, er = (s, t, e, i) => {
|
30227
|
+
for (var n = i > 1 ? void 0 : i ? P3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30233
30228
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30234
|
-
return i && n &&
|
30229
|
+
return i && n && D3(t, e, n), n;
|
30235
30230
|
};
|
30236
30231
|
let ls = class extends Ce {
|
30237
30232
|
constructor() {
|
30238
|
-
super(...arguments), this.disabled = !1, this.aspectRatio = 1, this.compilation = th, this._currentTime = 0, this._sceneController = new
|
30233
|
+
super(...arguments), this.disabled = !1, this.aspectRatio = 1, this.compilation = th, this._currentTime = 0, this._sceneController = new S3(this), this._canvasRef = Oi(), this._previewRef = Oi(), this._previewTimeRef = Oi(), this._handleScrubberMouseEnter = ({ detail: { x: s, y: t, elementLeft: e, elementRight: i } }) => {
|
30239
30234
|
var n, o;
|
30240
30235
|
if ((n = this._previewRef) != null && n.value) {
|
30241
30236
|
const c = this._previewRef.value.getBoundingClientRect(), d = (o = this._previewRef.value.getRootNode().host) == null ? void 0 : o.getBoundingClientRect();
|
@@ -30409,7 +30404,7 @@ er([
|
|
30409
30404
|
Ns = er([
|
30410
30405
|
Vi("vmp-video-preview")
|
30411
30406
|
], Ns);
|
30412
|
-
class
|
30407
|
+
class O3 extends Oa {
|
30413
30408
|
constructor(t) {
|
30414
30409
|
if (super(t), t.type !== Nn.ELEMENT)
|
30415
30410
|
throw new Error("Resize directive must be used in an Element expression");
|
@@ -30418,8 +30413,8 @@ class P3 extends Oa {
|
|
30418
30413
|
return e == null || e(t.element), Os;
|
30419
30414
|
}
|
30420
30415
|
}
|
30421
|
-
const z0 = Fn(
|
30422
|
-
class
|
30416
|
+
const z0 = Fn(O3);
|
30417
|
+
class M3 {
|
30423
30418
|
constructor(t) {
|
30424
30419
|
this.hiddenControls = [], this._measureRef = Oi(), this._prevControlsWidth = 0, this._hideables = {}, this._showables = {}, this._onResize = (e) => {
|
30425
30420
|
var i, n, o;
|
@@ -30465,10 +30460,10 @@ class O3 {
|
|
30465
30460
|
}
|
30466
30461
|
const Ih = `.tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translate(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translate(-5px)}
|
30467
30462
|
`;
|
30468
|
-
var
|
30469
|
-
for (var n = i > 1 ? void 0 : i ?
|
30463
|
+
var $3 = Object.defineProperty, N3 = Object.getOwnPropertyDescriptor, Na = (s, t, e, i) => {
|
30464
|
+
for (var n = i > 1 ? void 0 : i ? N3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30470
30465
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30471
|
-
return i && n &&
|
30466
|
+
return i && n && $3(t, e, n), n;
|
30472
30467
|
};
|
30473
30468
|
let cn = class extends Ce {
|
30474
30469
|
constructor() {
|
@@ -30548,10 +30543,10 @@ Na([
|
|
30548
30543
|
cn = Na([
|
30549
30544
|
Vi("vmp-text")
|
30550
30545
|
], cn);
|
30551
|
-
var
|
30552
|
-
for (var n = i > 1 ? void 0 : i ?
|
30546
|
+
var F3 = Object.defineProperty, U3 = Object.getOwnPropertyDescriptor, Fa = (s, t, e, i) => {
|
30547
|
+
for (var n = i > 1 ? void 0 : i ? U3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30553
30548
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30554
|
-
return i && n &&
|
30549
|
+
return i && n && F3(t, e, n), n;
|
30555
30550
|
};
|
30556
30551
|
let hn = class extends Ce {
|
30557
30552
|
constructor() {
|
@@ -30713,10 +30708,10 @@ Fa([
|
|
30713
30708
|
hn = Fa([
|
30714
30709
|
Vi("vmp-menu")
|
30715
30710
|
], hn);
|
30716
|
-
var
|
30717
|
-
for (var n = i > 1 ? void 0 : i ?
|
30711
|
+
var B3 = Object.defineProperty, G3 = Object.getOwnPropertyDescriptor, xh = (s, t, e, i) => {
|
30712
|
+
for (var n = i > 1 ? void 0 : i ? G3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30718
30713
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30719
|
-
return i && n &&
|
30714
|
+
return i && n && B3(t, e, n), n;
|
30720
30715
|
};
|
30721
30716
|
let Ia = class extends Ce {
|
30722
30717
|
constructor() {
|
@@ -30784,10 +30779,10 @@ xh([
|
|
30784
30779
|
Ia = xh([
|
30785
30780
|
Vi("vmp-tooltip")
|
30786
30781
|
], Ia);
|
30787
|
-
var
|
30788
|
-
for (var n = i > 1 ? void 0 : i ?
|
30782
|
+
var V3 = Object.defineProperty, H3 = Object.getOwnPropertyDescriptor, Dh = (s, t, e, i) => {
|
30783
|
+
for (var n = i > 1 ? void 0 : i ? H3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30789
30784
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30790
|
-
return i && n &&
|
30785
|
+
return i && n && V3(t, e, n), n;
|
30791
30786
|
};
|
30792
30787
|
let xa = class extends Ce {
|
30793
30788
|
constructor() {
|
@@ -30990,10 +30985,10 @@ Dh([
|
|
30990
30985
|
xa = Dh([
|
30991
30986
|
Vi("vmp-volume-button")
|
30992
30987
|
], xa);
|
30993
|
-
var
|
30994
|
-
for (var n = i > 1 ? void 0 : i ?
|
30988
|
+
var W3 = Object.defineProperty, j3 = Object.getOwnPropertyDescriptor, il = (s, t, e, i) => {
|
30989
|
+
for (var n = i > 1 ? void 0 : i ? j3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
30995
30990
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
30996
|
-
return i && n &&
|
30991
|
+
return i && n && W3(t, e, n), n;
|
30997
30992
|
};
|
30998
30993
|
let $n = class extends Ce {
|
30999
30994
|
constructor() {
|
@@ -31236,14 +31231,14 @@ il([
|
|
31236
31231
|
$n = il([
|
31237
31232
|
Vi("vmp-progress-scrubber")
|
31238
31233
|
], $n);
|
31239
|
-
var
|
31240
|
-
for (var n = i > 1 ? void 0 : i ?
|
31234
|
+
var K3 = Object.defineProperty, z3 = Object.getOwnPropertyDescriptor, _i = (s, t, e, i) => {
|
31235
|
+
for (var n = i > 1 ? void 0 : i ? z3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
31241
31236
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
31242
|
-
return i && n &&
|
31237
|
+
return i && n && K3(t, e, n), n;
|
31243
31238
|
};
|
31244
31239
|
let ui = class extends Ce {
|
31245
31240
|
constructor() {
|
31246
|
-
super(...arguments), this.resizeHider = new
|
31241
|
+
super(...arguments), this.resizeHider = new M3(this), this.playing = !1, this.volume = 1, this.muted = !1, this.currentTime = 0, this.duration = 0, this.level = -1, this.playbackRate = 1, this.buffer = [], this.levels = [], this.captions = !1, this.fullscreen = !1, this.controls = Lh, this.volumeMenuOpen = !1, this.levelsMenuOpen = !1, this.playbackRateMenuOpen = !1, this.settingsMenuOpen = !1;
|
31247
31242
|
}
|
31248
31243
|
_handleNavigateBackClick() {
|
31249
31244
|
this.dispatchEvent(new CustomEvent("navigate:back", { bubbles: !0, composed: !0 }));
|
@@ -31319,7 +31314,7 @@ let ui = class extends Ce {
|
|
31319
31314
|
}
|
31320
31315
|
), O = {
|
31321
31316
|
title: "Settings",
|
31322
|
-
items: [
|
31317
|
+
items: [u3, f3, w, p3].filter(
|
31323
31318
|
({ id: G }) => P.includes(G) && this.resizeHider.hiddenControls.includes(G)
|
31324
31319
|
)
|
31325
31320
|
}, B = (e = this.controls) == null ? void 0 : e.includes("progress"), x = (i = this.controls) == null ? void 0 : i.includes("navigation"), H = (n = this.controls) == null ? void 0 : n.includes("play"), F = (o = this.controls) == null ? void 0 : o.includes("volume"), z = (c = this.controls) == null ? void 0 : c.includes("current-time"), tt = (d = this.controls) == null ? void 0 : d.includes("duration"), at = (f = this.controls) == null ? void 0 : f.includes("levels"), J = (p = this.controls) == null ? void 0 : p.includes("speed"), kt = (g = this.controls) == null ? void 0 : g.includes("captions"), mt = (y = this.controls) == null ? void 0 : y.includes("fullscreen"), Ot = H || F || z || tt || at || J || kt || mt, Vt = [
|
@@ -31618,10 +31613,10 @@ _i([
|
|
31618
31613
|
ui = _i([
|
31619
31614
|
Vi("vmp-player-controls")
|
31620
31615
|
], ui);
|
31621
|
-
var
|
31622
|
-
for (var n = i > 1 ? void 0 : i ?
|
31616
|
+
var Y3 = Object.defineProperty, X3 = Object.getOwnPropertyDescriptor, Z3 = (s, t, e, i) => {
|
31617
|
+
for (var n = i > 1 ? void 0 : i ? X3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
31623
31618
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
31624
|
-
return i && n &&
|
31619
|
+
return i && n && Y3(t, e, n), n;
|
31625
31620
|
};
|
31626
31621
|
let Hc = class extends Ce {
|
31627
31622
|
render() {
|
@@ -31638,13 +31633,13 @@ Hc.styles = [
|
|
31638
31633
|
}
|
31639
31634
|
`
|
31640
31635
|
];
|
31641
|
-
Hc =
|
31636
|
+
Hc = Z3([
|
31642
31637
|
Vi("vmp-loading-spinner")
|
31643
31638
|
], Hc);
|
31644
|
-
var
|
31645
|
-
for (var n = i > 1 ? void 0 : i ?
|
31639
|
+
var q3 = Object.defineProperty, Q3 = Object.getOwnPropertyDescriptor, s2 = (s, t, e, i) => {
|
31640
|
+
for (var n = i > 1 ? void 0 : i ? Q3(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
31646
31641
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
31647
|
-
return i && n &&
|
31642
|
+
return i && n && q3(t, e, n), n;
|
31648
31643
|
};
|
31649
31644
|
let Xo = class extends Ce {
|
31650
31645
|
constructor() {
|
@@ -31687,12 +31682,12 @@ s2([
|
|
31687
31682
|
Xo = s2([
|
31688
31683
|
Vi("vmp-captions")
|
31689
31684
|
], Xo);
|
31690
|
-
var
|
31691
|
-
for (var n = i > 1 ? void 0 : i ?
|
31685
|
+
var J3 = Object.defineProperty, tk = Object.getOwnPropertyDescriptor, $i = (s, t, e, i) => {
|
31686
|
+
for (var n = i > 1 ? void 0 : i ? tk(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
31692
31687
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
31693
|
-
return i && n &&
|
31688
|
+
return i && n && J3(t, e, n), n;
|
31694
31689
|
};
|
31695
|
-
const
|
31690
|
+
const ek = 3e3;
|
31696
31691
|
let Ai = class extends Ce {
|
31697
31692
|
constructor() {
|
31698
31693
|
super(...arguments), this.loading = !1, this.playing = !1, this.volume = 1, this.muted = !1, this.currentTime = 0, this.duration = 0, this.levels = [], this.level = -1, this.playbackRate = 1, this.caption = "", this.buffer = [], this.captions = !1, this.fullscreen = !1, this.controls = Lh, this.showControls = !0, this._hasTouched = !1, this._playerControlsRef = Oi();
|
@@ -31700,7 +31695,7 @@ let Ai = class extends Ce {
|
|
31700
31695
|
_startHideControls() {
|
31701
31696
|
clearTimeout(this._controlHideTimeout), this._controlHideTimeout = setTimeout(() => {
|
31702
31697
|
this.showControls = !1, this._hasTouched = !1;
|
31703
|
-
},
|
31698
|
+
}, ek);
|
31704
31699
|
}
|
31705
31700
|
_immediateShowControls() {
|
31706
31701
|
this.showControls = !0, clearTimeout(this._controlHideTimeout);
|
@@ -31914,21 +31909,21 @@ $i([
|
|
31914
31909
|
Ai = $i([
|
31915
31910
|
Vi("vmp-player-overlay")
|
31916
31911
|
], Ai);
|
31917
|
-
var
|
31918
|
-
for (var n = i > 1 ? void 0 : i ?
|
31912
|
+
var ik = Object.defineProperty, rk = Object.getOwnPropertyDescriptor, oi = (s, t, e, i) => {
|
31913
|
+
for (var n = i > 1 ? void 0 : i ? rk(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
31919
31914
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
31920
|
-
return i && n &&
|
31915
|
+
return i && n && ik(t, e, n), n;
|
31921
31916
|
};
|
31922
|
-
const
|
31917
|
+
const sk = 1e3 / 60;
|
31923
31918
|
let ei = class extends Ce {
|
31924
31919
|
constructor() {
|
31925
|
-
super(...arguments), this.burnCaptions = !1, this.debug = !1, this.propAspectRatio = 0, this.preload = "auto", this.autoplay = !1, this.loading = !1, this.compilation = th, this._sceneController = new
|
31920
|
+
super(...arguments), this.burnCaptions = !1, this.debug = !1, this.propAspectRatio = 0, this.preload = "auto", this.autoplay = !1, this.loading = !1, this.compilation = th, this._sceneController = new c3(this), this._drawController = new $4(this), this._observer = null, this._wasPlaying = !1, this._manualMute = this.muted, this._seekerRAF = null, this._seekerTimeout = null, this._lastWaiting = !1, this._lastTimestamp = null, this._playerRef = Oi(), this._canvasRef = Oi(), this._pageHidden = document.visibilityState === "hidden", this._aspectRatio = this.propAspectRatio, this._processing = !1, this._waiting = !1, this._errors = [], this._seeking = !1, this._captions = !1, this._fullscreen = !1, this._initialised = null, this._paused = !0, this._playbackRate = 1, this._volume = null, this._muted = null, this._videoResolution = -1, this._handleContainerResize = () => {
|
31926
31921
|
var s;
|
31927
31922
|
(s = this.shadowRoot) != null && s.host && !this.propAspectRatio && (this._aspectRatio = this.shadowRoot.host.clientWidth / this.shadowRoot.host.clientHeight);
|
31928
31923
|
}, this._handleCanvasResize = () => {
|
31929
31924
|
this.draw();
|
31930
31925
|
}, this._loop = () => {
|
31931
|
-
this._endLoop(), this._pageHidden ? this._seekerTimeout = setTimeout(this._seeker,
|
31926
|
+
this._endLoop(), this._pageHidden ? this._seekerTimeout = setTimeout(this._seeker, sk) : this._seekerRAF = requestAnimationFrame(this._seeker);
|
31932
31927
|
}, this._endLoop = () => {
|
31933
31928
|
this._seekerRAF && cancelAnimationFrame(this._seekerRAF), this._seekerTimeout && clearTimeout(this._seekerTimeout), this._seekerRAF = null, this._seekerTimeout = null;
|
31934
31929
|
}, this._seeker = (s = performance.now()) => {
|
@@ -32083,7 +32078,7 @@ let ei = class extends Ce {
|
|
32083
32078
|
}
|
32084
32079
|
// This must be called in an event handler that occurs as a result of user action as the browser does not allow programmatic fullscreen
|
32085
32080
|
toggleFullscreen(s) {
|
32086
|
-
s ?? this.fullscreen ?
|
32081
|
+
s ?? this.fullscreen ? d3() : this._playerRef.value && h3(this._playerRef.value);
|
32087
32082
|
}
|
32088
32083
|
connectedCallback() {
|
32089
32084
|
var s;
|
@@ -32137,7 +32132,7 @@ let ei = class extends Ce {
|
|
32137
32132
|
// Don't show any controls when disabled because we haven't created the `videos` yet
|
32138
32133
|
// This means that if the user was to play the video then it would have to start muted because we can only unmute videos
|
32139
32134
|
// within user events for autoplay reasons
|
32140
|
-
c ? [] : (t = this.controls ?? Lh) == null ? void 0 : t.filter((O) => !(O === "fullscreen" &&
|
32135
|
+
c ? [] : (t = this.controls ?? Lh) == null ? void 0 : t.filter((O) => !(O === "fullscreen" && o3() || O === "navigation" && (!this.scenes || this.scenes.length <= 1)))
|
32141
32136
|
), y = !(g != null && g.includes("preview")), A = (((e = this.scenes) == null ? void 0 : e.length) ?? 0) - 1, E = ((i = this.scenes) == null ? void 0 : i.findIndex((O) => O === this._drawController.activeScenes[0])) ?? 0, T = (o = (n = this._drawController.activeScenes[0]) == null ? void 0 : n.video) == null ? void 0 : o.hls, w = this.loading || this.waiting || this.processing, C = !this.src && !this.data, P = !!this.errors.find((O) => O.fatal);
|
32142
32137
|
return te`
|
32143
32138
|
${this._renderStyles()}
|
@@ -32355,12 +32350,12 @@ oi([
|
|
32355
32350
|
ei = oi([
|
32356
32351
|
Vi("vmp-media-player")
|
32357
32352
|
], ei);
|
32358
|
-
var
|
32359
|
-
for (var n = i > 1 ? void 0 : i ?
|
32353
|
+
var nk = Object.defineProperty, ak = Object.getOwnPropertyDescriptor, Hi = (s, t, e, i) => {
|
32354
|
+
for (var n = i > 1 ? void 0 : i ? ak(t, e) : t, o = s.length - 1, c; o >= 0; o--)
|
32360
32355
|
(c = s[o]) && (n = (i ? c(t, e, n) : c(n)) || n);
|
32361
|
-
return i && n &&
|
32356
|
+
return i && n && nk(t, e, n), n;
|
32362
32357
|
};
|
32363
|
-
let Si = class extends
|
32358
|
+
let Si = class extends ib(Cn) {
|
32364
32359
|
constructor() {
|
32365
32360
|
super(...arguments), this.env = "prod", this.apiKey = "", this.disableTracking = !1, this.trackingSource = "embedded_player", this.preload = "auto", this.autoplay = !1, this.aspectRatio = 0, this.eventController = new Ev(this, [
|
32366
32361
|
"durationchange",
|
@@ -32388,7 +32383,7 @@ let Si = class extends eb(Cn) {
|
|
32388
32383
|
"video:timeupdate",
|
32389
32384
|
"video:ended",
|
32390
32385
|
"video:error"
|
32391
|
-
]), this._fetcherController = new Kv(this), this._trackingController = new
|
32386
|
+
]), this._fetcherController = new Kv(this), this._trackingController = new eb(this);
|
32392
32387
|
}
|
32393
32388
|
get fetching() {
|
32394
32389
|
return this._fetcherController.fetching;
|
@@ -32483,4 +32478,4 @@ export {
|
|
32483
32478
|
vc as c,
|
32484
32479
|
Af as g
|
32485
32480
|
};
|
32486
|
-
//# sourceMappingURL=index-
|
32481
|
+
//# sourceMappingURL=index-52048e3b.js.map
|