@beyondwords/player 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es.js +297 -297
- package/dist/es.js.map +1 -1
- package/dist/umd.js +49 -49
- package/dist/umd.js.map +1 -1
- package/package.json +1 -1
package/dist/es.js
CHANGED
|
@@ -2,7 +2,7 @@ var qu = Object.defineProperty, Yu = Object.defineProperties;
|
|
|
2
2
|
var Zu = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Fo = Object.getOwnPropertySymbols;
|
|
4
4
|
var zl = Object.prototype.hasOwnProperty, Ll = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Rs = (t, e, i) => e in t ? qu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i,
|
|
5
|
+
var Rs = (t, e, i) => e in t ? qu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Xt = (t, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
zl.call(e, i) && Rs(t, i, e[i]);
|
|
8
8
|
if (Fo)
|
|
@@ -45,10 +45,10 @@ var Ri = (t, e, i) => new Promise((n, o) => {
|
|
|
45
45
|
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(s, l);
|
|
46
46
|
a((i = i.apply(t, e)).next());
|
|
47
47
|
});
|
|
48
|
-
/*! version:"0.2.
|
|
48
|
+
/*! version:"0.2.14" */
|
|
49
49
|
function Q() {
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const Xu = (t) => t;
|
|
52
52
|
function Ku(t, e) {
|
|
53
53
|
for (const i in e)
|
|
54
54
|
t[i] = e[i];
|
|
@@ -66,7 +66,7 @@ function xl() {
|
|
|
66
66
|
function mt(t) {
|
|
67
67
|
t.forEach(fr);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Jn(t) {
|
|
70
70
|
return typeof t == "function";
|
|
71
71
|
}
|
|
72
72
|
function ke(t, e) {
|
|
@@ -130,7 +130,7 @@ function Nl(t) {
|
|
|
130
130
|
];
|
|
131
131
|
}
|
|
132
132
|
const hr = typeof window != "undefined";
|
|
133
|
-
let
|
|
133
|
+
let Ju = hr ? () => window.performance.now() : () => Date.now(), Ls = hr ? (t) => requestAnimationFrame(t) : Q;
|
|
134
134
|
const Zn = /* @__PURE__ */ new Set();
|
|
135
135
|
function _r(t) {
|
|
136
136
|
Zn.forEach((e) => {
|
|
@@ -298,7 +298,7 @@ function rc(t) {
|
|
|
298
298
|
yr().$$.on_destroy.push(t);
|
|
299
299
|
}
|
|
300
300
|
const Fn = [], se = [];
|
|
301
|
-
let
|
|
301
|
+
let Xn = [];
|
|
302
302
|
const nl = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
303
303
|
let ol = !1;
|
|
304
304
|
function br() {
|
|
@@ -308,7 +308,7 @@ function kr() {
|
|
|
308
308
|
return br(), vr;
|
|
309
309
|
}
|
|
310
310
|
function dt(t) {
|
|
311
|
-
|
|
311
|
+
Xn.push(t);
|
|
312
312
|
}
|
|
313
313
|
function ye(t) {
|
|
314
314
|
nl.push(t);
|
|
@@ -330,11 +330,11 @@ function d() {
|
|
|
330
330
|
}
|
|
331
331
|
for (fo(null), Fn.length = 0, xn = 0; se.length; )
|
|
332
332
|
se.pop()();
|
|
333
|
-
for (let e = 0; e <
|
|
334
|
-
const i =
|
|
333
|
+
for (let e = 0; e < Xn.length; e += 1) {
|
|
334
|
+
const i = Xn[e];
|
|
335
335
|
qs.has(i) || (qs.add(i), i());
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
Xn.length = 0;
|
|
338
338
|
} while (Fn.length);
|
|
339
339
|
for (; nl.length; )
|
|
340
340
|
nl.pop()();
|
|
@@ -349,7 +349,7 @@ function uc(t) {
|
|
|
349
349
|
}
|
|
350
350
|
function cc(t) {
|
|
351
351
|
const e = [], i = [];
|
|
352
|
-
|
|
352
|
+
Xn.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : i.push(n)), i.forEach((n) => n()), Xn = e;
|
|
353
353
|
}
|
|
354
354
|
let so;
|
|
355
355
|
function dc() {
|
|
@@ -411,11 +411,11 @@ function Fl(t, e, i, n) {
|
|
|
411
411
|
const {
|
|
412
412
|
delay: k = 0,
|
|
413
413
|
duration: w = 300,
|
|
414
|
-
easing: T =
|
|
414
|
+
easing: T = Xu,
|
|
415
415
|
tick: v = Q,
|
|
416
416
|
css: p
|
|
417
417
|
} = s || gc, z = {
|
|
418
|
-
start:
|
|
418
|
+
start: Ju() + k,
|
|
419
419
|
b: _
|
|
420
420
|
};
|
|
421
421
|
_ || (z.group = un, un.r += 1), "inert" in t && (_ ? c !== void 0 && (t.inert = c) : (c = /** @type {HTMLElement} */
|
|
@@ -441,7 +441,7 @@ function Fl(t, e, i, n) {
|
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
run(_) {
|
|
444
|
-
|
|
444
|
+
Jn(s) ? dc().then(() => {
|
|
445
445
|
s = s({ direction: _ ? "in" : "out" }), A(_);
|
|
446
446
|
}) : A(_);
|
|
447
447
|
},
|
|
@@ -465,17 +465,17 @@ function mc(t, e, i, n, o, s, l, a, r, u, c, g) {
|
|
|
465
465
|
k[t[_].key] = _;
|
|
466
466
|
const w = [], T = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), p = [];
|
|
467
467
|
for (_ = A; _--; ) {
|
|
468
|
-
const P = g(o, s, _),
|
|
469
|
-
let Y = l.get(
|
|
470
|
-
Y ? n && p.push(() => Y.p(P, e)) : (Y = u(
|
|
468
|
+
const P = g(o, s, _), X = i(P);
|
|
469
|
+
let Y = l.get(X);
|
|
470
|
+
Y ? n && p.push(() => Y.p(P, e)) : (Y = u(X, P), Y.c()), T.set(X, w[_] = Y), X in k && v.set(X, Math.abs(_ - k[X]));
|
|
471
471
|
}
|
|
472
472
|
const z = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Set();
|
|
473
473
|
function S(P) {
|
|
474
474
|
I(P, 1), P.m(a, c), l.set(P.key, P), c = P.first, A--;
|
|
475
475
|
}
|
|
476
476
|
for (; f && A; ) {
|
|
477
|
-
const P = w[A - 1],
|
|
478
|
-
P ===
|
|
477
|
+
const P = w[A - 1], X = t[f - 1], Y = P.key, N = X.key;
|
|
478
|
+
P === X ? (c = P.first, f--, A--) : T.has(N) ? !l.has(Y) || z.has(Y) ? S(P) : D.has(N) ? f-- : v.get(Y) > v.get(N) ? (D.add(Y), S(P)) : (z.add(N), f--) : (r(X, l), f--);
|
|
479
479
|
}
|
|
480
480
|
for (; f--; ) {
|
|
481
481
|
const P = t[f];
|
|
@@ -495,7 +495,7 @@ function fe(t) {
|
|
|
495
495
|
function ce(t, e, i) {
|
|
496
496
|
const { fragment: n, after_update: o } = t.$$;
|
|
497
497
|
n && n.m(e, i), dt(() => {
|
|
498
|
-
const s = t.$$.on_mount.map(fr).filter(
|
|
498
|
+
const s = t.$$.on_mount.map(fr).filter(Jn);
|
|
499
499
|
t.$$.on_destroy ? t.$$.on_destroy.push(...s) : mt(s), t.$$.on_mount = [];
|
|
500
500
|
}), o.forEach(dt);
|
|
501
501
|
}
|
|
@@ -575,7 +575,7 @@ class Te {
|
|
|
575
575
|
* @returns {() => void}
|
|
576
576
|
*/
|
|
577
577
|
$on(e, i) {
|
|
578
|
-
if (!
|
|
578
|
+
if (!Jn(i))
|
|
579
579
|
return Q;
|
|
580
580
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
581
581
|
return n.push(i), () => {
|
|
@@ -593,7 +593,7 @@ class Te {
|
|
|
593
593
|
}
|
|
594
594
|
const _c = "4";
|
|
595
595
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_c);
|
|
596
|
-
const Ac = "@beyondwords/player", mo = "0.2.
|
|
596
|
+
const Ac = "@beyondwords/player", mo = "0.2.14", Ti = (t, e) => {
|
|
597
597
|
t = [t].flat().join(`
|
|
598
598
|
`);
|
|
599
599
|
let i = `${Ac}:
|
|
@@ -668,7 +668,7 @@ const Il = ["user", "media", "browser", "media-session-api", "google-ima-sdk"],
|
|
|
668
668
|
}, be = (t) => {
|
|
669
669
|
Cc(t);
|
|
670
670
|
const e = rs(), i = (/* @__PURE__ */ new Date()).toISOString();
|
|
671
|
-
return
|
|
671
|
+
return Xt({ id: e, createdAt: i, status: "pending" }, t);
|
|
672
672
|
}, Wc = (t, e = {}) => {
|
|
673
673
|
let i;
|
|
674
674
|
try {
|
|
@@ -713,8 +713,8 @@ const Il = ["user", "media", "browser", "media-session-api", "google-ima-sdk"],
|
|
|
713
713
|
r: 2,
|
|
714
714
|
l: 1
|
|
715
715
|
}, Hl = {
|
|
716
|
-
nonPersonalizedDaisybit: "
|
|
717
|
-
personalizedDaisybit: "
|
|
716
|
+
nonPersonalizedDaisybit: "CQEXy8AQEXy8AAAAAAENDgCAAEIAAAAAAAAAg1NX_H__bW9r8X7_aft0eY1P9_j77sQxBhfJE-4F3LvW_JwXx2E5NF36tqoKmRoEu3ZBIUNlHJHUTVmwaogVryHsakWcoTNKJ6BkkFMRM2dYCF5vm4tjeQKY5_p_d3fx2D-t_dv839zzz8VHn3e5fue0-PCdU5-9Dfn9fRfb-9IP9_78v8v8_l_rk2_eT13_pcvr_D--f_87_XW-9_cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA.Ig1NX_H__bX9v-X7_6ft0eY1f9_j77sQxBhfJs-4F3LvW_JwX32E7NF36tq4KmRoEu3ZBIUNtHJnUTVmxaogVrzHsakWcoTNKJ-BkkHMRe2dYCF5vm4tjeQKZ5_p_d3f52T_9_dv-39zz39Vnv3e9fuf1-Pjde5_9H_v_fRfb-_If9_7-_8v8_t_rk2_eT1__9evv__--________9_8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAE",
|
|
717
|
+
personalizedDaisybit: "CQEXy8AQEXy8AAAAAAENDgCAAHIAAAAAAAAAg1NX_H__bW9r8X7_aft0eY1P9_j77sQxBhfJE-4F3LvW_JwXx2E5NF36tqoKmRoEu3ZBIUNlHJHUTVmwaogVryHsakWcoTNKJ6BkkFMRM2dYCF5vm4tjeQKY5_p_d3fx2D-t_dv839zzz8VHn3e5fue0-PCdU5-9Dfn9fRfb-9IP9_78v8v8_l_rk2_eT13_pcvr_D--f_87_XW-9_cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA.Ig1NX_H__bX9v-X7_6ft0eY1f9_j77sQxBhfJs-4F3LvW_JwX32E7NF36tq4KmRoEu3ZBIUNtHJnUTVmxaogVrzHsakWcoTNKJ-BkkHMRe2dYCF5vm4tjeQKZ5_p_d3f52T_9_dv-39zz39Vnv3e9fuf1-Pjde5_9H_v_fRfb-_If9_7-_8v8_t_rk2_eT1__9evv__--________9_8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAE"
|
|
718
718
|
}, Ec = (t, e, i, n, o, s, l, a, r, u, c, g) => {
|
|
719
719
|
const f = window.location.hostname === "localhost";
|
|
720
720
|
return zc(t) ? Lc(f, i, g) : Sr(t) ? jc(f, t, e, i, n, o, s, l, a, r, u, c) : {};
|
|
@@ -770,15 +770,15 @@ function Fc(t) {
|
|
|
770
770
|
}
|
|
771
771
|
function Uc(t, e, i) {
|
|
772
772
|
let n, o, { vastUrl: s } = e, { preloading: l } = e, { placement: a } = e, { advertConsent: r } = e, { maxImageSize: u } = e, { projectId: c } = e, { playlistId: g } = e, { contentId: f } = e, { contentLanguage: A } = e, { platform: _ } = e, { vendorIdentifier: k } = e, { bundleIdentifier: w } = e, { video: T } = e, { playbackState: v } = e, { duration: p } = e, { currentTime: z } = e, { onEvent: D = () => {
|
|
773
|
-
} } = e, S, P,
|
|
773
|
+
} } = e, S, P, X, Y, N, J, oe;
|
|
774
774
|
const le = () => {
|
|
775
|
-
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0), P = new google.ima.AdDisplayContainer(S, T),
|
|
775
|
+
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0), P = new google.ima.AdDisplayContainer(S, T), X = new google.ima.AdsLoader(P), X.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, $, !1), X.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C, !1), Y = new google.ima.AdsRequest(), Y.adTagUrl = o, Y.linearAdSlotWidth = T.clientWidth, Y.linearAdSlotHeight = T.clientHeight, X.requestAds(Y);
|
|
776
776
|
}, $ = (j) => {
|
|
777
777
|
const me = new google.ima.AdsRenderingSettings();
|
|
778
778
|
me.enablePreloading = !0, i(20, N = j.getAdsManager(T, me)), N.addEventListener(google.ima.AdEvent.Type.STARTED, re), N.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS, _e), N.addEventListener(google.ima.AdEvent.Type.CLICK, Ae), N.addEventListener(google.ima.AdEvent.Type.PAUSED, ae), N.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, b), N.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C);
|
|
779
779
|
}, te = () => {
|
|
780
|
-
if (!
|
|
781
|
-
|
|
780
|
+
if (!J) {
|
|
781
|
+
J = !0, T.pause(), T.load(), P.initialize();
|
|
782
782
|
try {
|
|
783
783
|
N.init(T.clientWidth, T.clientHeight, google.ima.ViewMode.NORMAL), N.start(), x(), Ve();
|
|
784
784
|
} catch (j) {
|
|
@@ -792,9 +792,9 @@ function Uc(t, e, i) {
|
|
|
792
792
|
const Ne = (pe = j.getAd().getCompanionAds(0, 0, me)[0]) == null ? void 0 : pe.data;
|
|
793
793
|
if (!Ne)
|
|
794
794
|
return;
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
const Me = (Ye =
|
|
795
|
+
const Xe = document.createElement("div");
|
|
796
|
+
Xe.innerHTML = Ne.content;
|
|
797
|
+
const Me = (Ye = Xe.firstChild) == null ? void 0 : Ye.getAttribute("href"), Qe = Ne.resourceValue;
|
|
798
798
|
D(be({
|
|
799
799
|
type: "CompanionAdvertChanged",
|
|
800
800
|
description: "The companion advert associated with the VAST advert changed.",
|
|
@@ -863,8 +863,8 @@ function Uc(t, e, i) {
|
|
|
863
863
|
const j = document.createTreeWalker(S);
|
|
864
864
|
let me;
|
|
865
865
|
for (; me = j.nextNode(); ) {
|
|
866
|
-
const Ee = /;(?!([^()]*\([^()]*\))*[^()]*\))/,
|
|
867
|
-
me.style.cssText =
|
|
866
|
+
const Ee = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Xe = me.style.cssText.split(Ee).filter((Me) => Me).map((Me) => Me.includes("!important") ? Me : `${Me} !important`);
|
|
867
|
+
me.style.cssText = Xe.join(";");
|
|
868
868
|
}
|
|
869
869
|
}, Ve = () => {
|
|
870
870
|
S && (i(5, z = Le()), N.resize(T.clientWidth, T.clientHeight, google.ima.ViewMode.NORMAL), requestAnimationFrame(Ve));
|
|
@@ -1059,7 +1059,7 @@ const Yl = (t, e) => {
|
|
|
1059
1059
|
}, qc = (t, e, i) => {
|
|
1060
1060
|
if (!t)
|
|
1061
1061
|
return [];
|
|
1062
|
-
const n = (t.audio || []).map((r) => $i(
|
|
1062
|
+
const n = (t.audio || []).map((r) => $i(Xt({}, r), { format: "audio" })), o = (t.video || []).map((r) => $i(Xt({}, r), { format: "video" })), s = Yl(n, Zl), l = Yl(o, Zl), a = e ? [...l, ...s] : s;
|
|
1063
1063
|
if (i && Yc() || e && Zc()) {
|
|
1064
1064
|
const r = a.filter((c) => !c.url.endsWith(".m3u8")), u = a.filter((c) => c.url.endsWith(".m3u8"));
|
|
1065
1065
|
return [...r, ...u];
|
|
@@ -1078,7 +1078,7 @@ const Yl = (t, e) => {
|
|
|
1078
1078
|
return i && !n ? -1 : !i && n ? 1 : 0;
|
|
1079
1079
|
};
|
|
1080
1080
|
let Kn;
|
|
1081
|
-
const
|
|
1081
|
+
const Xc = (t, e) => Ri(void 0, null, function* () {
|
|
1082
1082
|
return wr(t, e) && (yield Kc()), Kn;
|
|
1083
1083
|
}), wr = (t, e) => !(!(t && e) || !((t == null ? void 0 : t.contentType) === "application/x-mpegURL") || (e == null ? void 0 : e.canPlayType("application/vnd.apple.mpegurl")) || !(Kn ? Kn.isSupported() : !0)), Kc = () => Ri(void 0, null, function* () {
|
|
1084
1084
|
Kn || (Kn || (Kn = (yield import("././././././hls.light.min.js")).default), Kn || (Kn = window.Hls));
|
|
@@ -1112,7 +1112,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
1112
1112
|
manifestLoadPolicy: i,
|
|
1113
1113
|
steeringManifestLoadPolicy: i
|
|
1114
1114
|
};
|
|
1115
|
-
},
|
|
1115
|
+
}, Jc = (t, e, i, n, o, s, l) => {
|
|
1116
1116
|
var c, g;
|
|
1117
1117
|
if (window.disableMediaLoad || ((c = n == null ? void 0 : n.detachMedia) == null || c.call(n), (g = n == null ? void 0 : n.destroy) == null || g.call(n), n = null, !e || !t))
|
|
1118
1118
|
return;
|
|
@@ -1120,7 +1120,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
1120
1120
|
if (wr(t, e)) {
|
|
1121
1121
|
if (!i)
|
|
1122
1122
|
return "pending";
|
|
1123
|
-
n = new i(
|
|
1123
|
+
n = new i(Xt({
|
|
1124
1124
|
enableWorker: !1,
|
|
1125
1125
|
// Don't use web workers since it's not our website.
|
|
1126
1126
|
autoStartLoad: !1,
|
|
@@ -1140,7 +1140,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
t.startLoad(e), t.loadMediaCalled = !0;
|
|
1142
1142
|
}
|
|
1143
|
-
}, _o = 1e-5,
|
|
1143
|
+
}, _o = 1e-5, Xl = (t, e = 0, i) => t && e > 0 ? `#t=${e}` : i === "video" && Qc() ? `#t=${_o}` : "", Qc = () => {
|
|
1144
1144
|
var e, i;
|
|
1145
1145
|
const t = ((i = (e = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : e.toLowerCase) == null ? void 0 : i.call(e)) || "";
|
|
1146
1146
|
return t.includes("safari") && !t.includes("chrome");
|
|
@@ -1902,7 +1902,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
1902
1902
|
maximizeVideo: "Maximize video",
|
|
1903
1903
|
changePlaybackRate: "Change playback rate",
|
|
1904
1904
|
downloadAudio: "Download audio"
|
|
1905
|
-
},
|
|
1905
|
+
}, Xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1906
1906
|
__proto__: null,
|
|
1907
1907
|
default: Zd
|
|
1908
1908
|
}, Symbol.toStringTag, { value: "Module" })), Kd = {
|
|
@@ -1935,7 +1935,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
1935
1935
|
}, Gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1936
1936
|
__proto__: null,
|
|
1937
1937
|
default: Kd
|
|
1938
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1938
|
+
}, Symbol.toStringTag, { value: "Module" })), Jd = {
|
|
1939
1939
|
isDefaultForLanguage: !0,
|
|
1940
1940
|
listenToThisArticle: "Makinig sa artikulong ito",
|
|
1941
1941
|
videoInWidget: "Video is playing in widget",
|
|
@@ -1964,7 +1964,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
1964
1964
|
downloadAudio: "Download audio"
|
|
1965
1965
|
}, Qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1966
1966
|
__proto__: null,
|
|
1967
|
-
default:
|
|
1967
|
+
default: Jd
|
|
1968
1968
|
}, Symbol.toStringTag, { value: "Module" })), $d = {
|
|
1969
1969
|
isDefaultForLanguage: !0,
|
|
1970
1970
|
listenToThisArticle: "Écoutez cet article",
|
|
@@ -2627,7 +2627,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
2627
2627
|
default: Rg
|
|
2628
2628
|
}, Symbol.toStringTag, { value: "Module" })), Ug = {
|
|
2629
2629
|
isDefaultForLanguage: !0,
|
|
2630
|
-
listenToThisArticle: "
|
|
2630
|
+
listenToThisArticle: "기사를 들어보세요.",
|
|
2631
2631
|
videoInWidget: "Video is playing in widget",
|
|
2632
2632
|
// These translations are used by aria-label.
|
|
2633
2633
|
playAudio: "Play audio",
|
|
@@ -2712,7 +2712,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
2712
2712
|
maximizeVideo: "Maximize video",
|
|
2713
2713
|
changePlaybackRate: "Change playback rate",
|
|
2714
2714
|
downloadAudio: "Download audio"
|
|
2715
|
-
},
|
|
2715
|
+
}, Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2716
2716
|
__proto__: null,
|
|
2717
2717
|
default: Zg
|
|
2718
2718
|
}, Symbol.toStringTag, { value: "Module" })), Kg = {
|
|
@@ -2745,7 +2745,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
2745
2745
|
}, Gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2746
2746
|
__proto__: null,
|
|
2747
2747
|
default: Kg
|
|
2748
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2748
|
+
}, Symbol.toStringTag, { value: "Module" })), Jg = {
|
|
2749
2749
|
isDefaultForLanguage: !0,
|
|
2750
2750
|
listenToThisArticle: "Yoká lisolo oyo",
|
|
2751
2751
|
videoInWidget: "Video is playing in widget",
|
|
@@ -2774,7 +2774,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
2774
2774
|
downloadAudio: "Download audio"
|
|
2775
2775
|
}, Qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2776
2776
|
__proto__: null,
|
|
2777
|
-
default:
|
|
2777
|
+
default: Jg
|
|
2778
2778
|
}, Symbol.toStringTag, { value: "Module" })), $g = {
|
|
2779
2779
|
isDefaultForLanguage: !0,
|
|
2780
2780
|
listenToThisArticle: "ຟັງບົດຄວາມນີ້",
|
|
@@ -3495,7 +3495,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
3495
3495
|
}, Zf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3496
3496
|
__proto__: null,
|
|
3497
3497
|
default: Yf
|
|
3498
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3498
|
+
}, Symbol.toStringTag, { value: "Module" })), Xf = {
|
|
3499
3499
|
isDefaultForLanguage: !0,
|
|
3500
3500
|
listenToThisArticle: "Прослушать эту статью",
|
|
3501
3501
|
videoInWidget: "Video is playing in widget",
|
|
@@ -3524,7 +3524,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
3524
3524
|
downloadAudio: "Download audio"
|
|
3525
3525
|
}, Kf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3526
3526
|
__proto__: null,
|
|
3527
|
-
default:
|
|
3527
|
+
default: Xf
|
|
3528
3528
|
}, Symbol.toStringTag, { value: "Module" })), Gf = {
|
|
3529
3529
|
isDefaultForLanguage: !0,
|
|
3530
3530
|
listenToThisArticle: "Umva iyi ngingo",
|
|
@@ -3552,7 +3552,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
3552
3552
|
maximizeVideo: "Maximize video",
|
|
3553
3553
|
changePlaybackRate: "Change playback rate",
|
|
3554
3554
|
downloadAudio: "Download audio"
|
|
3555
|
-
},
|
|
3555
|
+
}, Jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3556
3556
|
__proto__: null,
|
|
3557
3557
|
default: Gf
|
|
3558
3558
|
}, Symbol.toStringTag, { value: "Module" })), Qf = {
|
|
@@ -4303,7 +4303,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
4303
4303
|
}, Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4304
4304
|
__proto__: null,
|
|
4305
4305
|
default: Y1
|
|
4306
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4306
|
+
}, Symbol.toStringTag, { value: "Module" })), X1 = {
|
|
4307
4307
|
listenToThisArticle: "聽這篇文章",
|
|
4308
4308
|
videoInWidget: "Video is playing in widget",
|
|
4309
4309
|
playAudio: "Play audio",
|
|
@@ -4331,7 +4331,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
4331
4331
|
downloadAudio: "Download audio"
|
|
4332
4332
|
}, K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4333
4333
|
__proto__: null,
|
|
4334
|
-
default:
|
|
4334
|
+
default: X1
|
|
4335
4335
|
}, Symbol.toStringTag, { value: "Module" })), G1 = {
|
|
4336
4336
|
isDefaultForLanguage: !0,
|
|
4337
4337
|
listenToThisArticle: "听这篇文章",
|
|
@@ -4359,7 +4359,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
4359
4359
|
maximizeVideo: "Maximize video",
|
|
4360
4360
|
changePlaybackRate: "Change playback rate",
|
|
4361
4361
|
downloadAudio: "Download audio"
|
|
4362
|
-
},
|
|
4362
|
+
}, J1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4363
4363
|
__proto__: null,
|
|
4364
4364
|
default: G1
|
|
4365
4365
|
}, Symbol.toStringTag, { value: "Module" })), Q1 = {
|
|
@@ -4421,7 +4421,7 @@ const Jc = (t, e) => Ri(void 0, null, function* () {
|
|
|
4421
4421
|
`The locale '${n}' is missing the translation key '${s}'.`,
|
|
4422
4422
|
`Please set '${s}: "something"' in src/translations/${n}.ts`
|
|
4423
4423
|
]);
|
|
4424
|
-
}, sm = /* @__PURE__ */ Object.assign({ "../translations/af.ts": ed, "../translations/ak.ts": id, "../translations/am.ts": od, "../translations/ar.ts": ld, "../translations/as.ts": rd, "../translations/az.ts": cd, "../translations/be.ts": gd, "../translations/bg.ts": md, "../translations/bm.ts": _d, "../translations/bn.ts": yd, "../translations/bs.ts": bd, "../translations/ca.ts": pd, "../translations/ckb.ts": wd, "../translations/cs.ts": Pd, "../translations/cy.ts": Id, "../translations/da.ts": Bd, "../translations/de.ts": Od, "../translations/ee.ts": Ed, "../translations/el.ts": Ld, "../translations/en.ts": xd, "../translations/eo.ts": Nd, "../translations/es.ts": Fd, "../translations/et.ts": Hd, "../translations/eu.ts": Yd, "../translations/fa.ts":
|
|
4424
|
+
}, sm = /* @__PURE__ */ Object.assign({ "../translations/af.ts": ed, "../translations/ak.ts": id, "../translations/am.ts": od, "../translations/ar.ts": ld, "../translations/as.ts": rd, "../translations/az.ts": cd, "../translations/be.ts": gd, "../translations/bg.ts": md, "../translations/bm.ts": _d, "../translations/bn.ts": yd, "../translations/bs.ts": bd, "../translations/ca.ts": pd, "../translations/ckb.ts": wd, "../translations/cs.ts": Pd, "../translations/cy.ts": Id, "../translations/da.ts": Bd, "../translations/de.ts": Od, "../translations/ee.ts": Ed, "../translations/el.ts": Ld, "../translations/en.ts": xd, "../translations/eo.ts": Nd, "../translations/es.ts": Fd, "../translations/et.ts": Hd, "../translations/eu.ts": Yd, "../translations/fa.ts": Xd, "../translations/fi.ts": Gd, "../translations/fil.ts": Qd, "../translations/fr.ts": eg, "../translations/ga.ts": ig, "../translations/gd.ts": og, "../translations/gl.ts": lg, "../translations/gu.ts": rg, "../translations/ha.ts": cg, "../translations/haw.ts": gg, "../translations/he.ts": mg, "../translations/hi.ts": _g, "../translations/hr.ts": yg, "../translations/hu.ts": bg, "../translations/hy.ts": pg, "../translations/id.ts": wg, "../translations/ig.ts": Pg, "../translations/is.ts": Ig, "../translations/it.ts": Bg, "../translations/iw.ts": Og, "../translations/ja.ts": Eg, "../translations/ka.ts": Lg, "../translations/kk.ts": xg, "../translations/km.ts": Ng, "../translations/kn.ts": Fg, "../translations/ko.ts": Hg, "../translations/ky.ts": Yg, "../translations/lb.ts": Xg, "../translations/lg.ts": Gg, "../translations/ln.ts": Qg, "../translations/lo.ts": ef, "../translations/lt.ts": nf, "../translations/lv.ts": sf, "../translations/mg.ts": af, "../translations/mk.ts": uf, "../translations/ml.ts": df, "../translations/mn.ts": ff, "../translations/mr.ts": hf, "../translations/ms.ts": Af, "../translations/mt.ts": vf, "../translations/my.ts": kf, "../translations/nb.ts": Sf, "../translations/ne.ts": Tf, "../translations/nl.ts": Cf, "../translations/nn.ts": Vf, "../translations/no.ts": Wf, "../translations/om.ts": Mf, "../translations/or.ts": zf, "../translations/pa.ts": jf, "../translations/pl.ts": Df, "../translations/ps.ts": Rf, "../translations/pt.ts": Uf, "../translations/qu.ts": qf, "../translations/ro.ts": Zf, "../translations/ru.ts": Kf, "../translations/rw.ts": Jf, "../translations/si.ts": $f, "../translations/sk.ts": t1, "../translations/sl.ts": n1, "../translations/sn.ts": s1, "../translations/so.ts": a1, "../translations/sq.ts": u1, "../translations/sr.ts": d1, "../translations/sv.ts": f1, "../translations/sw.ts": h1, "../translations/ta.ts": A1, "../translations/te.ts": v1, "../translations/tg.ts": k1, "../translations/th.ts": S1, "../translations/ti.ts": T1, "../translations/tr.ts": C1, "../translations/tt.ts": V1, "../translations/ug.ts": W1, "../translations/uk.ts": M1, "../translations/ur.ts": z1, "../translations/uz.ts": j1, "../translations/vi.ts": D1, "../translations/yi.ts": R1, "../translations/yo.ts": U1, "../translations/zh-HK.ts": q1, "../translations/zh-MO.ts": Z1, "../translations/zh-TW.ts": K1, "../translations/zh.ts": J1, "../translations/zu.ts": $1 }), Ir = Object.entries(sm).map(([t, e]) => [em(t), e.default]), al = Object.fromEntries(Ir.filter(([t, e]) => t.includes("-"))), rl = Object.fromEntries(Ir.filter(([t, e]) => e.isDefaultForLanguage).map(([t, e]) => [t.split("-")[0], e]));
|
|
4425
4425
|
tm(al, rl);
|
|
4426
4426
|
const Pt = (t, { locale: e } = {}) => {
|
|
4427
4427
|
const i = lm(e);
|
|
@@ -4659,8 +4659,8 @@ function Am() {
|
|
|
4659
4659
|
var p = this.words, z = v.words, D = this.sigBytes, S = v.sigBytes;
|
|
4660
4660
|
if (this.clamp(), D % 4)
|
|
4661
4661
|
for (var P = 0; P < S; P++) {
|
|
4662
|
-
var
|
|
4663
|
-
p[D + P >>> 2] |=
|
|
4662
|
+
var X = z[P >>> 2] >>> 24 - P % 4 * 8 & 255;
|
|
4663
|
+
p[D + P >>> 2] |= X << 24 - (D + P) % 4 * 8;
|
|
4664
4664
|
}
|
|
4665
4665
|
else
|
|
4666
4666
|
for (var Y = 0; Y < S; Y += 4)
|
|
@@ -4863,15 +4863,15 @@ function Am() {
|
|
|
4863
4863
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
4864
4864
|
*/
|
|
4865
4865
|
_process: function(v) {
|
|
4866
|
-
var p, z = this._data, D = z.words, S = z.sigBytes, P = this.blockSize,
|
|
4866
|
+
var p, z = this._data, D = z.words, S = z.sigBytes, P = this.blockSize, X = P * 4, Y = S / X;
|
|
4867
4867
|
v ? Y = n.ceil(Y) : Y = n.max((Y | 0) - this._minBufferSize, 0);
|
|
4868
|
-
var N = Y * P,
|
|
4868
|
+
var N = Y * P, J = n.min(N * 4, S);
|
|
4869
4869
|
if (N) {
|
|
4870
4870
|
for (var oe = 0; oe < N; oe += P)
|
|
4871
4871
|
this._doProcessBlock(D, oe);
|
|
4872
|
-
p = D.splice(0, N), z.sigBytes -=
|
|
4872
|
+
p = D.splice(0, N), z.sigBytes -= J;
|
|
4873
4873
|
}
|
|
4874
|
-
return new g.init(p,
|
|
4874
|
+
return new g.init(p, J);
|
|
4875
4875
|
},
|
|
4876
4876
|
/**
|
|
4877
4877
|
* Creates a copy of this object.
|
|
@@ -5018,8 +5018,8 @@ function Am() {
|
|
|
5018
5018
|
var v = w + T, p = k[v];
|
|
5019
5019
|
k[v] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360;
|
|
5020
5020
|
}
|
|
5021
|
-
var z = this._hash.words, D = k[w + 0], S = k[w + 1], P = k[w + 2],
|
|
5022
|
-
b = g(b, C, F, x, D, 7, u[0]), x = g(x, b, C, F, S, 12, u[1]), F = g(F, x, b, C, P, 17, u[2]), C = g(C, F, x, b,
|
|
5021
|
+
var z = this._hash.words, D = k[w + 0], S = k[w + 1], P = k[w + 2], X = k[w + 3], Y = k[w + 4], N = k[w + 5], J = k[w + 6], oe = k[w + 7], le = k[w + 8], $ = k[w + 9], te = k[w + 10], re = k[w + 11], _e = k[w + 12], ue = k[w + 13], Ae = k[w + 14], ae = k[w + 15], b = z[0], C = z[1], F = z[2], x = z[3];
|
|
5022
|
+
b = g(b, C, F, x, D, 7, u[0]), x = g(x, b, C, F, S, 12, u[1]), F = g(F, x, b, C, P, 17, u[2]), C = g(C, F, x, b, X, 22, u[3]), b = g(b, C, F, x, Y, 7, u[4]), x = g(x, b, C, F, N, 12, u[5]), F = g(F, x, b, C, J, 17, u[6]), C = g(C, F, x, b, oe, 22, u[7]), b = g(b, C, F, x, le, 7, u[8]), x = g(x, b, C, F, $, 12, u[9]), F = g(F, x, b, C, te, 17, u[10]), C = g(C, F, x, b, re, 22, u[11]), b = g(b, C, F, x, _e, 7, u[12]), x = g(x, b, C, F, ue, 12, u[13]), F = g(F, x, b, C, Ae, 17, u[14]), C = g(C, F, x, b, ae, 22, u[15]), b = f(b, C, F, x, S, 5, u[16]), x = f(x, b, C, F, J, 9, u[17]), F = f(F, x, b, C, re, 14, u[18]), C = f(C, F, x, b, D, 20, u[19]), b = f(b, C, F, x, N, 5, u[20]), x = f(x, b, C, F, te, 9, u[21]), F = f(F, x, b, C, ae, 14, u[22]), C = f(C, F, x, b, Y, 20, u[23]), b = f(b, C, F, x, $, 5, u[24]), x = f(x, b, C, F, Ae, 9, u[25]), F = f(F, x, b, C, X, 14, u[26]), C = f(C, F, x, b, le, 20, u[27]), b = f(b, C, F, x, ue, 5, u[28]), x = f(x, b, C, F, P, 9, u[29]), F = f(F, x, b, C, oe, 14, u[30]), C = f(C, F, x, b, _e, 20, u[31]), b = A(b, C, F, x, N, 4, u[32]), x = A(x, b, C, F, le, 11, u[33]), F = A(F, x, b, C, re, 16, u[34]), C = A(C, F, x, b, Ae, 23, u[35]), b = A(b, C, F, x, S, 4, u[36]), x = A(x, b, C, F, Y, 11, u[37]), F = A(F, x, b, C, oe, 16, u[38]), C = A(C, F, x, b, te, 23, u[39]), b = A(b, C, F, x, ue, 4, u[40]), x = A(x, b, C, F, D, 11, u[41]), F = A(F, x, b, C, X, 16, u[42]), C = A(C, F, x, b, J, 23, u[43]), b = A(b, C, F, x, $, 4, u[44]), x = A(x, b, C, F, _e, 11, u[45]), F = A(F, x, b, C, ae, 16, u[46]), C = A(C, F, x, b, P, 23, u[47]), b = _(b, C, F, x, D, 6, u[48]), x = _(x, b, C, F, oe, 10, u[49]), F = _(F, x, b, C, Ae, 15, u[50]), C = _(C, F, x, b, N, 21, u[51]), b = _(b, C, F, x, _e, 6, u[52]), x = _(x, b, C, F, X, 10, u[53]), F = _(F, x, b, C, te, 15, u[54]), C = _(C, F, x, b, S, 21, u[55]), b = _(b, C, F, x, le, 6, u[56]), x = _(x, b, C, F, ae, 10, u[57]), F = _(F, x, b, C, J, 15, u[58]), C = _(C, F, x, b, ue, 21, u[59]), b = _(b, C, F, x, Y, 6, u[60]), x = _(x, b, C, F, re, 10, u[61]), F = _(F, x, b, C, P, 15, u[62]), C = _(C, F, x, b, $, 21, u[63]), z[0] = z[0] + b | 0, z[1] = z[1] + C | 0, z[2] = z[2] + F | 0, z[3] = z[3] + x | 0;
|
|
5023
5023
|
},
|
|
5024
5024
|
_doFinalize: function() {
|
|
5025
5025
|
var k = this._data, w = k.words, T = this._nDataBytes * 8, v = k.sigBytes * 8;
|
|
@@ -5027,8 +5027,8 @@ function Am() {
|
|
|
5027
5027
|
var p = n.floor(T / 4294967296), z = T;
|
|
5028
5028
|
w[(v + 64 >>> 9 << 4) + 15] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360, w[(v + 64 >>> 9 << 4) + 14] = (z << 8 | z >>> 24) & 16711935 | (z << 24 | z >>> 8) & 4278255360, k.sigBytes = (w.length + 1) * 4, this._process();
|
|
5029
5029
|
for (var D = this._hash, S = D.words, P = 0; P < 4; P++) {
|
|
5030
|
-
var
|
|
5031
|
-
S[P] = (
|
|
5030
|
+
var X = S[P];
|
|
5031
|
+
S[P] = (X << 8 | X >>> 24) & 16711935 | (X << 24 | X >>> 8) & 4278255360;
|
|
5032
5032
|
}
|
|
5033
5033
|
return D;
|
|
5034
5034
|
},
|
|
@@ -5074,9 +5074,9 @@ const vm = /* @__PURE__ */ dm(ym), bm = (t, e) => {
|
|
|
5074
5074
|
const e = BeyondWords.Player.instances(), i = [...e.entries()], n = i.map(([l, a]) => ({ p: l, player: a })), o = km(i);
|
|
5075
5075
|
let s = t;
|
|
5076
5076
|
for (; s && !ul(s) && !(o.size === 0 || cl(s)); )
|
|
5077
|
-
|
|
5077
|
+
Xs(pm, s, e, n, o), Xs(Sm, s, e, n, o), s = s.parentNode;
|
|
5078
5078
|
for (s = t; s && !ul(s) && !(o.size === 0 || cl(s)); )
|
|
5079
|
-
|
|
5079
|
+
Xs(wm, s, e, n, o), s = s.parentNode;
|
|
5080
5080
|
return Tm(n), Pm(n), n;
|
|
5081
5081
|
}, km = (t) => {
|
|
5082
5082
|
const e = /* @__PURE__ */ new Set();
|
|
@@ -5088,9 +5088,9 @@ const vm = /* @__PURE__ */ dm(ym), bm = (t, e) => {
|
|
|
5088
5088
|
return e;
|
|
5089
5089
|
}, ul = (t) => t === document || t === document.body || t === document.head, cl = (t) => {
|
|
5090
5090
|
const e = t.nodeName.toLowerCase();
|
|
5091
|
-
if (e === "a" || t.onclick || t.onmousedown || e === "img" || e === "audio" || e === "input" || e === "textarea" || t.isContentEditable)
|
|
5091
|
+
if (e === "a" || t.onclick || t.onmousedown || e === "img" || e === "audio" || e === "input" || e === "textarea" || t.isContentEditable || !!t.closest(".beyondwords-player"))
|
|
5092
5092
|
return !0;
|
|
5093
|
-
},
|
|
5093
|
+
}, Xs = (t, e, i, n, o) => {
|
|
5094
5094
|
if (o.size === 0)
|
|
5095
5095
|
return;
|
|
5096
5096
|
const s = t(e);
|
|
@@ -5141,7 +5141,7 @@ const vm = /* @__PURE__ */ dm(ym), bm = (t, e) => {
|
|
|
5141
5141
|
}, Tm = (t) => {
|
|
5142
5142
|
const e = t.filter((i) => i.segment);
|
|
5143
5143
|
e.sort((i, n) => {
|
|
5144
|
-
const o =
|
|
5144
|
+
const o = Jl[i.player.playbackState] || 0, s = Jl[n.player.playbackState] || 0;
|
|
5145
5145
|
if (o > s)
|
|
5146
5146
|
return -1;
|
|
5147
5147
|
if (o < s)
|
|
@@ -5151,7 +5151,7 @@ const vm = /* @__PURE__ */ dm(ym), bm = (t, e) => {
|
|
|
5151
5151
|
});
|
|
5152
5152
|
for (const [i, n] of e.entries())
|
|
5153
5153
|
n.precedence = i;
|
|
5154
|
-
},
|
|
5154
|
+
}, Jl = { playing: 2, paused: 1, stopped: 0 }, Pm = (t) => {
|
|
5155
5155
|
for (const { player: e, segment: i, segmentElement: n } of t) {
|
|
5156
5156
|
if (!n)
|
|
5157
5157
|
continue;
|
|
@@ -5331,7 +5331,7 @@ function ta(t) {
|
|
|
5331
5331
|
return {
|
|
5332
5332
|
c() {
|
|
5333
5333
|
e = y("source"), Di(e.src, i = `${/*url*/
|
|
5334
|
-
t[88]}${
|
|
5334
|
+
t[88]}${Xl(
|
|
5335
5335
|
/*isFirstLoad*/
|
|
5336
5336
|
t[23],
|
|
5337
5337
|
/*initialTime*/
|
|
@@ -5355,7 +5355,7 @@ function ta(t) {
|
|
|
5355
5355
|
p(l, a) {
|
|
5356
5356
|
t = l, a[0] & /*sources, isFirstLoad*/
|
|
5357
5357
|
9437184 && !Di(e.src, i = `${/*url*/
|
|
5358
|
-
t[88]}${
|
|
5358
|
+
t[88]}${Xl(
|
|
5359
5359
|
/*isFirstLoad*/
|
|
5360
5360
|
t[23],
|
|
5361
5361
|
/*initialTime*/
|
|
@@ -5712,7 +5712,7 @@ function Om(t) {
|
|
|
5712
5712
|
}
|
|
5713
5713
|
const la = ({ url: t }) => t;
|
|
5714
5714
|
function Mm(t, e, i) {
|
|
5715
|
-
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, { content: P } = e, { contentIndex:
|
|
5715
|
+
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, { content: P } = e, { contentIndex: X } = e, { contentVariant: Y } = e, { introOrOutro: N } = e, { activeAdvert: J } = e, { preloadAdvert: oe } = e, { advertConsent: le } = e, { maxImageSize: $ } = e, { projectId: te } = e, { playlistId: re } = e, { contentId: _e } = e, { contentLanguage: ue } = e, { platform: Ae } = e, { vendorIdentifier: ae } = e, { bundleIdentifier: b } = e, { playbackState: C } = e, { duration: F } = e, { currentTime: x } = e, { playbackRate: Ve } = e, { prevPercentage: Le } = e, { showUserInterface: Ke } = e, { videoBehindWidget: j } = e, { videoBehindStatic: me } = e, { videoMightBeShown: Ee } = e, { widgetPosition: Ne } = e, { widgetWidth: Xe } = e, { widgetMargin: Me } = e, { widgetTarget: Qe } = e, { onEvent: pe = () => {
|
|
5716
5716
|
} } = e, { metadataLoaded: Ye } = e, { video: Pe = void 0 } = e, jt, Oe, je, ze = 0, at = 0, xt = x, Re, ht;
|
|
5717
5717
|
const He = (H) => i(19, ze = H), et = () => Ee, tt = () => u.some((H) => H.format === "video"), gt = () => {
|
|
5718
5718
|
var H;
|
|
@@ -5783,7 +5783,7 @@ function Mm(t, e, i) {
|
|
|
5783
5783
|
description: "The media's current segment was updated.",
|
|
5784
5784
|
initiatedBy: "media",
|
|
5785
5785
|
segment: H,
|
|
5786
|
-
contentIndex:
|
|
5786
|
+
contentIndex: X,
|
|
5787
5787
|
segmentIndex: S,
|
|
5788
5788
|
segmentElement: bt,
|
|
5789
5789
|
precedence: 0
|
|
@@ -5852,7 +5852,7 @@ function Mm(t, e, i) {
|
|
|
5852
5852
|
Pe = H, i(2, Pe);
|
|
5853
5853
|
});
|
|
5854
5854
|
}
|
|
5855
|
-
function
|
|
5855
|
+
function Je() {
|
|
5856
5856
|
F = this.duration, i(3, F);
|
|
5857
5857
|
}
|
|
5858
5858
|
function vt() {
|
|
@@ -5871,7 +5871,7 @@ function Mm(t, e, i) {
|
|
|
5871
5871
|
x = H, i(1, x), i(19, ze);
|
|
5872
5872
|
}
|
|
5873
5873
|
return t.$$set = (H) => {
|
|
5874
|
-
"content" in H && i(5, P = H.content), "contentIndex" in H && i(45,
|
|
5874
|
+
"content" in H && i(5, P = H.content), "contentIndex" in H && i(45, X = H.contentIndex), "contentVariant" in H && i(46, Y = H.contentVariant), "introOrOutro" in H && i(47, N = H.introOrOutro), "activeAdvert" in H && i(48, J = H.activeAdvert), "preloadAdvert" in H && i(49, oe = H.preloadAdvert), "advertConsent" in H && i(6, le = H.advertConsent), "maxImageSize" in H && i(7, $ = H.maxImageSize), "projectId" in H && i(8, te = H.projectId), "playlistId" in H && i(9, re = H.playlistId), "contentId" in H && i(10, _e = H.contentId), "contentLanguage" in H && i(11, ue = H.contentLanguage), "platform" in H && i(12, Ae = H.platform), "vendorIdentifier" in H && i(13, ae = H.vendorIdentifier), "bundleIdentifier" in H && i(14, b = H.bundleIdentifier), "playbackState" in H && i(0, C = H.playbackState), "duration" in H && i(3, F = H.duration), "currentTime" in H && i(1, x = H.currentTime), "playbackRate" in H && i(4, Ve = H.playbackRate), "prevPercentage" in H && i(44, Le = H.prevPercentage), "showUserInterface" in H && i(15, Ke = H.showUserInterface), "videoBehindWidget" in H && i(50, j = H.videoBehindWidget), "videoBehindStatic" in H && i(16, me = H.videoBehindStatic), "videoMightBeShown" in H && i(51, Ee = H.videoMightBeShown), "widgetPosition" in H && i(52, Ne = H.widgetPosition), "widgetWidth" in H && i(53, Xe = H.widgetWidth), "widgetMargin" in H && i(54, Me = H.widgetMargin), "widgetTarget" in H && i(55, Qe = H.widgetTarget), "onEvent" in H && i(17, pe = H.onEvent), "metadataLoaded" in H && i(43, Ye = H.metadataLoaded), "video" in H && i(2, Pe = H.video);
|
|
5875
5875
|
}, t.$$.update = () => {
|
|
5876
5876
|
t.$$.dirty[0] & /*content, videoBehindStatic*/
|
|
5877
5877
|
65568 | t.$$.dirty[1] & /*videoBehindWidget*/
|
|
@@ -5879,34 +5879,34 @@ function Mm(t, e, i) {
|
|
|
5879
5879
|
64 && n && import("./././././././././style.js"), t.$$.dirty[0] & /*time*/
|
|
5880
5880
|
524288 && i(1, x = ze), t.$$.dirty[0] & /*currentTime*/
|
|
5881
5881
|
2 | t.$$.dirty[1] & /*activeAdvert*/
|
|
5882
|
-
131072 && !
|
|
5882
|
+
131072 && !J && kr().then(() => He(x)), t.$$.dirty[0] & /*content*/
|
|
5883
5883
|
32 | t.$$.dirty[1] & /*contentIndex*/
|
|
5884
|
-
16384 && i(67, o = P[
|
|
5884
|
+
16384 && i(67, o = P[X]), t.$$.dirty[2] & /*contentItem*/
|
|
5885
5885
|
32 && i(60, s = (o == null ? void 0 : o.segments) || []), t.$$.dirty[1] & /*contentIndex, introOrOutro, activeAdvert, loadCount*/
|
|
5886
5886
|
67321856 && i(57, at += 1), t.$$.dirty[1] & /*loadCount*/
|
|
5887
5887
|
67108864 && i(23, l = at === 1), t.$$.dirty[0] & /*isFirstLoad*/
|
|
5888
5888
|
8388608 && i(66, a = l && xt), t.$$.dirty[1] & /*introOrOutro*/
|
|
5889
5889
|
65536 && i(61, r = N), t.$$.dirty[1] & /*introOrOutro, activeAdvert*/
|
|
5890
|
-
196608 && !N && i(61, r =
|
|
5890
|
+
196608 && !N && i(61, r = J), t.$$.dirty[1] & /*introOrOutro, activeAdvert, contentVariant*/
|
|
5891
5891
|
229376 | t.$$.dirty[2] & /*contentItem*/
|
|
5892
|
-
32 && !N && !
|
|
5892
|
+
32 && !N && !J && Y === "article" && i(61, r = o), t.$$.dirty[1] & /*introOrOutro, activeAdvert, contentVariant*/
|
|
5893
5893
|
229376 | t.$$.dirty[2] & /*contentItem*/
|
|
5894
|
-
32 && !N && !
|
|
5894
|
+
32 && !N && !J && Y === "summary" && i(61, r = o == null ? void 0 : o.summarization), t.$$.dirty[0] & /*playbackState, currentTime*/
|
|
5895
5895
|
3 && i(62, D = C !== "playing" && x <= _o), t.$$.dirty[1] & /*videoMightBeShown, loadedMedia, mediaObject*/
|
|
5896
5896
|
1209008128 | t.$$.dirty[2] & /*atTheStart*/
|
|
5897
|
-
1 && Ee && (Re == null ? void 0 : Re.format) === "audio" && tt() && D && (i(61, r), i(47, N), i(48,
|
|
5897
|
+
1 && Ee && (Re == null ? void 0 : Re.format) === "audio" && tt() && D && (i(61, r), i(47, N), i(48, J), i(46, Y), i(67, o), i(51, Ee), i(58, Re), i(62, D), i(5, P), i(45, X), i(0, C), i(1, x), i(19, ze)), t.$$.dirty[1] & /*mediaObject*/
|
|
5898
5898
|
1073741824 | t.$$.dirty[2] & /*startPosition*/
|
|
5899
5899
|
16 && i(20, u = qc(r, et(), a)), t.$$.dirty[0] & /*sources*/
|
|
5900
5900
|
1048576 && i(43, Ye = !1), t.$$.dirty[0] & /*sources*/
|
|
5901
5901
|
1048576 && i(44, Le = 0), t.$$.dirty[0] & /*sources, video*/
|
|
5902
|
-
1048580 &&
|
|
5902
|
+
1048580 && Xc(u[0], Pe).then((H) => i(56, jt = H)), t.$$.dirty[0] & /*sources, video, hls*/
|
|
5903
5903
|
1310724 | t.$$.dirty[1] & /*Hls*/
|
|
5904
|
-
33554432 && i(18, Oe =
|
|
5904
|
+
33554432 && i(18, Oe = Jc(u[0], Pe, jt, Oe, kt, ut, gt)), t.$$.dirty[0] & /*playbackState, hls*/
|
|
5905
5905
|
262145 | t.$$.dirty[2] & /*startPosition*/
|
|
5906
5906
|
16 && (C === "playing" || et()) && Pr(Oe, a), t.$$.dirty[1] & /*activeAdvert*/
|
|
5907
|
-
131072 && i(21, c =
|
|
5908
|
-
131072 && i(30, g =
|
|
5909
|
-
131072 && i(29, f =
|
|
5907
|
+
131072 && i(21, c = J == null ? void 0 : J.vastUrl), t.$$.dirty[1] & /*activeAdvert*/
|
|
5908
|
+
131072 && i(30, g = J == null ? void 0 : J.placement), t.$$.dirty[1] & /*activeAdvert*/
|
|
5909
|
+
131072 && i(29, f = J == null ? void 0 : J.clickThroughUrl), t.$$.dirty[1] & /*preloadAdvert*/
|
|
5910
5910
|
262144 && i(28, A = oe == null ? void 0 : oe.vastUrl), t.$$.dirty[0] & /*vastUrl*/
|
|
5911
5911
|
2097152 | t.$$.dirty[1] & /*metadataLoaded*/
|
|
5912
5912
|
4096 && i(65, _ = !c && (Ye || am())), t.$$.dirty[0] & /*playbackState*/
|
|
@@ -5920,10 +5920,10 @@ function Mm(t, e, i) {
|
|
|
5920
5920
|
2097152 && i(26, p = w && Ne !== "auto" ? `fixed-${Ne}` : ""), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
|
|
5921
5921
|
4194304 | t.$$.dirty[1] & /*widgetWidth, widgetMargin*/
|
|
5922
5922
|
12582912 | t.$$.dirty[2] & /*marginWidth*/
|
|
5923
|
-
2 && i(25, z = w ? `width: ${
|
|
5923
|
+
2 && i(25, z = w ? `width: ${Xe}; --margin: ${Me}; --margin-width: ${v}` : ""), t.$$.dirty[0] & /*currentTime*/
|
|
5924
5924
|
2 | t.$$.dirty[1] & /*introOrOutro, activeAdvert, segments, contentVariant*/
|
|
5925
5925
|
537100288 | t.$$.dirty[2] & /*atTheStart*/
|
|
5926
|
-
1 && i(59, S = N ||
|
|
5926
|
+
1 && i(59, S = N || J || D ? -1 : Bl(s, x, Y)), t.$$.dirty[1] & /*segmentIndex*/
|
|
5927
5927
|
268435456 && Vt(), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
|
|
5928
5928
|
4194304 && w && _t(), t.$$.dirty[0] & /*sources, vastUrl*/
|
|
5929
5929
|
3145728 | t.$$.dirty[1] & /*mediaObject*/
|
|
@@ -5974,15 +5974,15 @@ function Mm(t, e, i) {
|
|
|
5974
5974
|
st,
|
|
5975
5975
|
Ye,
|
|
5976
5976
|
Le,
|
|
5977
|
-
|
|
5977
|
+
X,
|
|
5978
5978
|
Y,
|
|
5979
5979
|
N,
|
|
5980
|
-
|
|
5980
|
+
J,
|
|
5981
5981
|
oe,
|
|
5982
5982
|
j,
|
|
5983
5983
|
Ee,
|
|
5984
5984
|
Ne,
|
|
5985
|
-
|
|
5985
|
+
Xe,
|
|
5986
5986
|
Me,
|
|
5987
5987
|
Qe,
|
|
5988
5988
|
jt,
|
|
@@ -5999,7 +5999,7 @@ function Mm(t, e, i) {
|
|
|
5999
5999
|
o,
|
|
6000
6000
|
n,
|
|
6001
6001
|
yt,
|
|
6002
|
-
|
|
6002
|
+
Je,
|
|
6003
6003
|
vt,
|
|
6004
6004
|
lt,
|
|
6005
6005
|
Ze,
|
|
@@ -6410,7 +6410,7 @@ function Ym(t) {
|
|
|
6410
6410
|
if (!e && !i)
|
|
6411
6411
|
return Er;
|
|
6412
6412
|
var n = Gn(t).getComputedStyle(t), o = Hm(n), s = o.left + o.right, l = o.top + o.bottom, a = ds(n.width), r = ds(n.height);
|
|
6413
|
-
if (n.boxSizing === "border-box" && (Math.round(a + s) !== e && (a -= aa(n, "left", "right") + s), Math.round(r + l) !== i && (r -= aa(n, "top", "bottom") + l)), !
|
|
6413
|
+
if (n.boxSizing === "border-box" && (Math.round(a + s) !== e && (a -= aa(n, "left", "right") + s), Math.round(r + l) !== i && (r -= aa(n, "top", "bottom") + l)), !Xm(t)) {
|
|
6414
6414
|
var u = Math.round(a + s) - e, c = Math.round(r + l) - i;
|
|
6415
6415
|
Math.abs(u) !== 1 && (a -= u), Math.abs(c) !== 1 && (r -= c);
|
|
6416
6416
|
}
|
|
@@ -6423,7 +6423,7 @@ var Zm = /* @__PURE__ */ function() {
|
|
|
6423
6423
|
return t instanceof Gn(t).SVGElement && typeof t.getBBox == "function";
|
|
6424
6424
|
};
|
|
6425
6425
|
}();
|
|
6426
|
-
function
|
|
6426
|
+
function Xm(t) {
|
|
6427
6427
|
return t === Gn(t).document.documentElement;
|
|
6428
6428
|
}
|
|
6429
6429
|
function Km(t) {
|
|
@@ -6445,7 +6445,7 @@ function Gm(t) {
|
|
|
6445
6445
|
function xs(t, e, i, n) {
|
|
6446
6446
|
return { x: t, y: e, width: i, height: n };
|
|
6447
6447
|
}
|
|
6448
|
-
var
|
|
6448
|
+
var Jm = (
|
|
6449
6449
|
/** @class */
|
|
6450
6450
|
function() {
|
|
6451
6451
|
function t(e) {
|
|
@@ -6483,7 +6483,7 @@ var Xm = (
|
|
|
6483
6483
|
if (!(e instanceof Gn(e).Element))
|
|
6484
6484
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
6485
6485
|
var i = this.observations_;
|
|
6486
|
-
i.has(e) || (i.set(e, new
|
|
6486
|
+
i.has(e) || (i.set(e, new Jm(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
6487
6487
|
}
|
|
6488
6488
|
}, t.prototype.unobserve = function(e) {
|
|
6489
6489
|
if (!arguments.length)
|
|
@@ -7471,7 +7471,7 @@ function Hh(t, e, i) {
|
|
|
7471
7471
|
} } = e, g;
|
|
7472
7472
|
const f = () => {
|
|
7473
7473
|
let A, _, k;
|
|
7474
|
-
o ? (A = "PressedPrevSegment", _ = "The previous segment button was pressed.") : s ? (A = "PressedSeekBack", _ = "The seek backward button was pressed.", k = { seconds: n }) : l && (A = "PressedPrevTrack", _ = "The previous track button was pressed."), c(be(
|
|
7474
|
+
o ? (A = "PressedPrevSegment", _ = "The previous segment button was pressed.") : s ? (A = "PressedSeekBack", _ = "The seek backward button was pressed.", k = { seconds: n }) : l && (A = "PressedPrevTrack", _ = "The previous track button was pressed."), c(be(Xt({
|
|
7475
7475
|
type: A,
|
|
7476
7476
|
description: _,
|
|
7477
7477
|
initiatedBy: "user"
|
|
@@ -7529,7 +7529,7 @@ class qh extends Te {
|
|
|
7529
7529
|
}
|
|
7530
7530
|
}
|
|
7531
7531
|
const Gt = (t, e, i) => Ce(t, e, e === "style" ? Zh(i) : i), Yh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Zh = (t) => t.split(Yh).filter((e) => e).map((e) => e + " !important").join(";");
|
|
7532
|
-
function
|
|
7532
|
+
function Xh(t) {
|
|
7533
7533
|
let e, i, n, o, s, l;
|
|
7534
7534
|
return {
|
|
7535
7535
|
c() {
|
|
@@ -7592,7 +7592,7 @@ function Kh(t, e, i) {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
class Gh extends Te {
|
|
7594
7594
|
constructor(e) {
|
|
7595
|
-
super(), we(this, e, Kh,
|
|
7595
|
+
super(), we(this, e, Kh, Xh, ke, { scale: 0, color: 1, seconds: 2 });
|
|
7596
7596
|
}
|
|
7597
7597
|
get scale() {
|
|
7598
7598
|
return this.$$.ctx[0];
|
|
@@ -7613,7 +7613,7 @@ class Gh extends Te {
|
|
|
7613
7613
|
this.$$set({ seconds: e }), d();
|
|
7614
7614
|
}
|
|
7615
7615
|
}
|
|
7616
|
-
const qi = (t, e, i) => Ce(t, e, e === "style" ? Qh(i) : i),
|
|
7616
|
+
const qi = (t, e, i) => Ce(t, e, e === "style" ? Qh(i) : i), Jh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Qh = (t) => t.split(Jh).filter((e) => e).map((e) => e + " !important").join(";");
|
|
7617
7617
|
function $h(t) {
|
|
7618
7618
|
let e, i, n, o;
|
|
7619
7619
|
return {
|
|
@@ -7931,7 +7931,7 @@ function f2(t, e, i) {
|
|
|
7931
7931
|
} } = e, f;
|
|
7932
7932
|
const A = () => {
|
|
7933
7933
|
let _, k, w;
|
|
7934
|
-
s ? (_ = "PressedNextSegment", k = "The next segment button was pressed.") : l ? (_ = "PressedSeekAhead", k = "The seek ahead button was pressed.", w = { seconds: o }) : a && (_ = "PressedNextTrack", k = "The next track button was pressed."), g(be(
|
|
7934
|
+
s ? (_ = "PressedNextSegment", k = "The next segment button was pressed.") : l ? (_ = "PressedSeekAhead", k = "The seek ahead button was pressed.", w = { seconds: o }) : a && (_ = "PressedNextTrack", k = "The next track button was pressed."), g(be(Xt({
|
|
7935
7935
|
type: _,
|
|
7936
7936
|
description: k,
|
|
7937
7937
|
initiatedBy: "user"
|
|
@@ -8132,7 +8132,7 @@ class w2 extends Te {
|
|
|
8132
8132
|
this.$$set({ color: e }), d();
|
|
8133
8133
|
}
|
|
8134
8134
|
}
|
|
8135
|
-
const ua = (t, e, i) => Yt(t, e, i, 1),
|
|
8135
|
+
const ua = (t, e, i) => Yt(t, e, i, 1), Xo = (t, e, i) => Ce(t, e, e === "style" ? P2(i) : i), T2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, P2 = (t) => t.split(T2).filter((e) => e).map((e) => e + " !important").join(";");
|
|
8136
8136
|
function C2(t) {
|
|
8137
8137
|
let e, i;
|
|
8138
8138
|
return e = new v2({
|
|
@@ -8222,9 +8222,9 @@ function V2(t) {
|
|
|
8222
8222
|
}
|
|
8223
8223
|
return i = c(t), n = u[i] = r[i](t), {
|
|
8224
8224
|
c() {
|
|
8225
|
-
e = y("button"), n.c(),
|
|
8225
|
+
e = y("button"), n.c(), Xo(e, "type", "button"), Xo(e, "class", o = "playlist-button " + /*playerStyle*/
|
|
8226
8226
|
t[1] + " svelte-xhif6r"), ua(e, "outline-offset", 5 * /*scale*/
|
|
8227
|
-
t[2] + "px"),
|
|
8227
|
+
t[2] + "px"), Xo(e, "aria-label", Pt("togglePlaylist"));
|
|
8228
8228
|
},
|
|
8229
8229
|
m(g, f) {
|
|
8230
8230
|
E(g, e, f), u[i].m(e, null), s = !0, l || (a = [
|
|
@@ -8243,7 +8243,7 @@ function V2(t) {
|
|
|
8243
8243
|
u[A] = null;
|
|
8244
8244
|
}), Ue(), n = u[i], n ? n.p(g, f) : (n = u[i] = r[i](g), n.c()), I(n, 1), n.m(e, null)), (!s || f & /*playerStyle*/
|
|
8245
8245
|
2 && o !== (o = "playlist-button " + /*playerStyle*/
|
|
8246
|
-
g[1] + " svelte-xhif6r")) &&
|
|
8246
|
+
g[1] + " svelte-xhif6r")) && Xo(e, "class", o), (!s || f & /*scale*/
|
|
8247
8247
|
4) && ua(e, "outline-offset", 5 * /*scale*/
|
|
8248
8248
|
g[2] + "px");
|
|
8249
8249
|
},
|
|
@@ -8748,7 +8748,7 @@ class jr extends Te {
|
|
|
8748
8748
|
}
|
|
8749
8749
|
}
|
|
8750
8750
|
const Zi = (t, e, i) => Ce(t, e, e === "style" ? Z2(i) : i), Y2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Z2 = (t) => t.split(Y2).filter((e) => e).map((e) => e + " !important").join(";");
|
|
8751
|
-
function
|
|
8751
|
+
function X2(t) {
|
|
8752
8752
|
let e, i, n, o;
|
|
8753
8753
|
return {
|
|
8754
8754
|
c() {
|
|
@@ -8792,7 +8792,7 @@ function K2(t, e, i) {
|
|
|
8792
8792
|
}
|
|
8793
8793
|
class G2 extends Te {
|
|
8794
8794
|
constructor(e) {
|
|
8795
|
-
super(), we(this, e, K2,
|
|
8795
|
+
super(), we(this, e, K2, X2, ke, { scale: 0, color: 1 });
|
|
8796
8796
|
}
|
|
8797
8797
|
get scale() {
|
|
8798
8798
|
return this.$$.ctx[0];
|
|
@@ -8807,7 +8807,7 @@ class G2 extends Te {
|
|
|
8807
8807
|
this.$$set({ color: e }), d();
|
|
8808
8808
|
}
|
|
8809
8809
|
}
|
|
8810
|
-
const fa = (t, e, i) => Yt(t, e, i, 1), Gs = (t, e, i) => Ce(t, e, e === "style" ? Q2(i) : i),
|
|
8810
|
+
const fa = (t, e, i) => Yt(t, e, i, 1), Gs = (t, e, i) => Ce(t, e, e === "style" ? Q2(i) : i), J2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Q2 = (t) => t.split(J2).filter((e) => e).map((e) => e + " !important").join(";");
|
|
8811
8811
|
function $2(t) {
|
|
8812
8812
|
let e, i, n, o, s;
|
|
8813
8813
|
return i = new G2({
|
|
@@ -8895,35 +8895,35 @@ class t0 extends Te {
|
|
|
8895
8895
|
this.$$set({ onEvent: e }), d();
|
|
8896
8896
|
}
|
|
8897
8897
|
}
|
|
8898
|
-
const
|
|
8898
|
+
const Xi = (t, e, i) => Ce(t, e, e === "style" ? n0(i) : i), i0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, n0 = (t) => t.split(i0).filter((e) => e).map((e) => e + " !important").join(";");
|
|
8899
8899
|
function o0(t) {
|
|
8900
8900
|
let e, i, n, o;
|
|
8901
8901
|
return {
|
|
8902
8902
|
c() {
|
|
8903
|
-
e = Se("svg"), i = Se("path"),
|
|
8903
|
+
e = Se("svg"), i = Se("path"), Xi(
|
|
8904
8904
|
i,
|
|
8905
8905
|
"fill",
|
|
8906
8906
|
/*color*/
|
|
8907
8907
|
t[1]
|
|
8908
|
-
),
|
|
8909
|
-
t[0]),
|
|
8910
|
-
t[0]),
|
|
8908
|
+
), Xi(i, "d", "M1.66873 11.1188L0.881226 10.3313L5.21248 6.00001L0.881226 1.66876L1.66873 0.881256L5.99998 5.21251L10.3312 0.881256L11.1187 1.66876L6.78748 6.00001L11.1187 10.3313L10.3312 11.1188L5.99998 6.78751L1.66873 11.1188Z"), Xi(e, "width", n = 12 * /*scale*/
|
|
8909
|
+
t[0]), Xi(e, "height", o = 12 * /*scale*/
|
|
8910
|
+
t[0]), Xi(e, "viewBox", "0 0 12 12"), Xi(e, "fill", "none"), Xi(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
8911
8911
|
},
|
|
8912
8912
|
m(s, l) {
|
|
8913
8913
|
E(s, e, l), m(e, i);
|
|
8914
8914
|
},
|
|
8915
8915
|
p(s, [l]) {
|
|
8916
8916
|
l & /*color*/
|
|
8917
|
-
2 &&
|
|
8917
|
+
2 && Xi(
|
|
8918
8918
|
i,
|
|
8919
8919
|
"fill",
|
|
8920
8920
|
/*color*/
|
|
8921
8921
|
s[1]
|
|
8922
8922
|
), l & /*scale*/
|
|
8923
8923
|
1 && n !== (n = 12 * /*scale*/
|
|
8924
|
-
s[0]) &&
|
|
8924
|
+
s[0]) && Xi(e, "width", n), l & /*scale*/
|
|
8925
8925
|
1 && o !== (o = 12 * /*scale*/
|
|
8926
|
-
s[0]) &&
|
|
8926
|
+
s[0]) && Xi(e, "height", o);
|
|
8927
8927
|
},
|
|
8928
8928
|
i: Q,
|
|
8929
8929
|
o: Q,
|
|
@@ -8955,7 +8955,7 @@ class l0 extends Te {
|
|
|
8955
8955
|
this.$$set({ color: e }), d();
|
|
8956
8956
|
}
|
|
8957
8957
|
}
|
|
8958
|
-
const Go = (t, e, i) => Yt(t, e, i, 1),
|
|
8958
|
+
const Go = (t, e, i) => Yt(t, e, i, 1), Js = (t, e, i) => Ce(t, e, e === "style" ? r0(i) : i), a0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, r0 = (t) => t.split(a0).filter((e) => e).map((e) => e + " !important").join(";");
|
|
8959
8959
|
function u0(t) {
|
|
8960
8960
|
let e, i, n, o, s;
|
|
8961
8961
|
return i = new l0({
|
|
@@ -8971,13 +8971,13 @@ function u0(t) {
|
|
|
8971
8971
|
}
|
|
8972
8972
|
}), {
|
|
8973
8973
|
c() {
|
|
8974
|
-
e = y("button"), fe(i.$$.fragment),
|
|
8974
|
+
e = y("button"), fe(i.$$.fragment), Js(e, "type", "button"), Js(e, "class", "close-widget-button svelte-1bnl89m"), Go(
|
|
8975
8975
|
e,
|
|
8976
8976
|
"margin",
|
|
8977
8977
|
/*margin*/
|
|
8978
8978
|
t[2]
|
|
8979
8979
|
), Go(e, "outline-offset", 4.8 * /*scale*/
|
|
8980
|
-
t[0] + "px"),
|
|
8980
|
+
t[0] + "px"), Js(e, "aria-label", Pt("closeWidget"));
|
|
8981
8981
|
},
|
|
8982
8982
|
m(l, a) {
|
|
8983
8983
|
E(l, e, a), ce(i, e, null), n = !0, o || (s = [
|
|
@@ -9706,7 +9706,7 @@ class D0 extends Te {
|
|
|
9706
9706
|
this.$$set({ color2: e }), d();
|
|
9707
9707
|
}
|
|
9708
9708
|
}
|
|
9709
|
-
const ha = (t, e, i) => Yt(t, e, i, 1),
|
|
9709
|
+
const ha = (t, e, i) => Yt(t, e, i, 1), Jo = (t, e, i) => Ce(t, e, e === "style" ? R0(i) : i), N0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, R0 = (t) => t.split(N0).filter((e) => e).map((e) => e + " !important").join(";");
|
|
9710
9710
|
function F0(t) {
|
|
9711
9711
|
let e, i, n, o, s;
|
|
9712
9712
|
return i = new D0({ props: { scale: (
|
|
@@ -9714,8 +9714,8 @@ function F0(t) {
|
|
|
9714
9714
|
t[0]
|
|
9715
9715
|
) } }), {
|
|
9716
9716
|
c() {
|
|
9717
|
-
e = y("a"), fe(i.$$.fragment),
|
|
9718
|
-
t[0] + "px"),
|
|
9717
|
+
e = y("a"), fe(i.$$.fragment), Jo(e, "class", "beyondwords svelte-vl0esb"), Jo(e, "href", "https://beyondwords.io/"), Jo(e, "target", "_blank"), ha(e, "outline-offset", 6.4 * /*scale*/
|
|
9718
|
+
t[0] + "px"), Jo(e, "aria-label", Pt("visitBeyondWords")), ne(
|
|
9719
9719
|
e,
|
|
9720
9720
|
"visible",
|
|
9721
9721
|
/*visible*/
|
|
@@ -9869,7 +9869,7 @@ function Z0(t, e, i) {
|
|
|
9869
9869
|
"href" in r && i(0, n = r.href), "scale" in r && i(1, o = r.scale), "color" in r && i(2, s = r.color), "onEvent" in r && i(4, l = r.onEvent);
|
|
9870
9870
|
}, [n, o, s, a, l];
|
|
9871
9871
|
}
|
|
9872
|
-
class
|
|
9872
|
+
class X0 extends Te {
|
|
9873
9873
|
constructor(e) {
|
|
9874
9874
|
super(), we(this, e, Z0, Y0, ke, { href: 0, scale: 1, color: 2, onEvent: 4 });
|
|
9875
9875
|
}
|
|
@@ -9899,7 +9899,7 @@ class J0 extends Te {
|
|
|
9899
9899
|
}
|
|
9900
9900
|
}
|
|
9901
9901
|
const Oi = (t, e, i) => Yt(t, e, i, 1), yi = (t, e, i) => Ce(t, e, e === "style" ? G0(i) : i), K0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, G0 = (t) => t.split(K0).filter((e) => e).map((e) => e + " !important").join(";");
|
|
9902
|
-
function
|
|
9902
|
+
function J0(t) {
|
|
9903
9903
|
let e, i;
|
|
9904
9904
|
return {
|
|
9905
9905
|
c() {
|
|
@@ -10051,7 +10051,7 @@ function $0(t) {
|
|
|
10051
10051
|
function i(s, l) {
|
|
10052
10052
|
return (
|
|
10053
10053
|
/*href*/
|
|
10054
|
-
s[1] ? Q0 :
|
|
10054
|
+
s[1] ? Q0 : J0
|
|
10055
10055
|
);
|
|
10056
10056
|
}
|
|
10057
10057
|
let n = i(t), o = n(t);
|
|
@@ -10492,7 +10492,7 @@ function g_(t) {
|
|
|
10492
10492
|
t[12]
|
|
10493
10493
|
),
|
|
10494
10494
|
Z(e, "keydown", function() {
|
|
10495
|
-
|
|
10495
|
+
Jn(gs(
|
|
10496
10496
|
/*onEvent*/
|
|
10497
10497
|
t[5],
|
|
10498
10498
|
"Bar",
|
|
@@ -10612,24 +10612,24 @@ function f_(t, e, i) {
|
|
|
10612
10612
|
})));
|
|
10613
10613
|
}, S = (N) => {
|
|
10614
10614
|
var te, re;
|
|
10615
|
-
const
|
|
10615
|
+
const J = N.clientX || ((re = (te = N.touches) == null ? void 0 : te[0]) == null ? void 0 : re.clientX) || 0, { x: oe, width: le } = A.getBoundingClientRect(), $ = (J - oe) / le;
|
|
10616
10616
|
return Math.max(0, Math.min(1, $));
|
|
10617
10617
|
}, P = (N) => {
|
|
10618
|
-
const
|
|
10619
|
-
if (
|
|
10618
|
+
const J = Math.floor(N);
|
|
10619
|
+
if (J === 0)
|
|
10620
10620
|
return Pt("secondsPlural").replace("{n}", 0);
|
|
10621
|
-
const oe = Math.floor(
|
|
10622
|
-
return [
|
|
10623
|
-
},
|
|
10621
|
+
const oe = Math.floor(J / 60), le = J % 60;
|
|
10622
|
+
return [X(oe, "minutes"), X(le, "seconds")].filter(($) => $).join(" ");
|
|
10623
|
+
}, X = (N, J) => {
|
|
10624
10624
|
if (N === 0)
|
|
10625
10625
|
return;
|
|
10626
|
-
const oe = N === 1 ? `${
|
|
10626
|
+
const oe = N === 1 ? `${J}Singular` : `${J}Plural`;
|
|
10627
10627
|
return Pt(oe).replace("{n}", N);
|
|
10628
10628
|
};
|
|
10629
10629
|
Bo(() => {
|
|
10630
|
-
const N = addEventListener("mouseup", D),
|
|
10630
|
+
const N = addEventListener("mouseup", D), J = addEventListener("mousemove", z), oe = addEventListener("touchend", D), le = addEventListener("touchmove", z);
|
|
10631
10631
|
return () => {
|
|
10632
|
-
removeEventListener("mouseup", N), removeEventListener("mousemove",
|
|
10632
|
+
removeEventListener("mouseup", N), removeEventListener("mousemove", J), removeEventListener("touchend", oe), removeEventListener("touchmove", le);
|
|
10633
10633
|
};
|
|
10634
10634
|
});
|
|
10635
10635
|
function Y(N) {
|
|
@@ -10827,7 +10827,7 @@ function y_(t) {
|
|
|
10827
10827
|
},
|
|
10828
10828
|
m(g, f) {
|
|
10829
10829
|
E(g, e, f), m(e, i), m(i, n), m(e, s), c && c.m(e, null), l = !0, a || (r = Z(e, "keydown", function() {
|
|
10830
|
-
|
|
10830
|
+
Jn(gs(
|
|
10831
10831
|
/*onEvent*/
|
|
10832
10832
|
t[3],
|
|
10833
10833
|
"Circle"
|
|
@@ -11677,49 +11677,49 @@ class Z_ extends Te {
|
|
|
11677
11677
|
this.$$set({ color: e }), d();
|
|
11678
11678
|
}
|
|
11679
11679
|
}
|
|
11680
|
-
const
|
|
11680
|
+
const Jt = (t, e, i) => Ce(t, e, e === "style" ? K_(i) : i), X_ = /;(?!([^()]*\([^()]*\))*[^()]*\))/, K_ = (t) => t.split(X_).filter((e) => e).map((e) => e + " !important").join(";");
|
|
11681
11681
|
function G_(t) {
|
|
11682
11682
|
let e, i, n, o, s, l;
|
|
11683
11683
|
return {
|
|
11684
11684
|
c() {
|
|
11685
|
-
e = Se("svg"), i = Se("rect"), n = Se("path"),
|
|
11685
|
+
e = Se("svg"), i = Se("rect"), n = Se("path"), Jt(
|
|
11686
11686
|
i,
|
|
11687
11687
|
"fill",
|
|
11688
11688
|
/*fill*/
|
|
11689
11689
|
t[3]
|
|
11690
|
-
),
|
|
11690
|
+
), Jt(i, "width", "100%"), Jt(i, "height", "100%"), Jt(
|
|
11691
11691
|
n,
|
|
11692
11692
|
"fill",
|
|
11693
11693
|
/*color*/
|
|
11694
11694
|
t[2]
|
|
11695
|
-
),
|
|
11696
|
-
t[1] + ")"),
|
|
11697
|
-
t[0]),
|
|
11698
|
-
t[0]),
|
|
11695
|
+
), Jt(n, "transform", o = "scale(" + /*zoom*/
|
|
11696
|
+
t[1] + ")"), Jt(n, "transform-origin", "50% 50%"), Jt(n, "d", "M0 6.99996V11C0 11.55 0.45 12 1 12H4L7.29 15.29C7.92 15.92 9 15.47 9 14.58V3.40996C9 2.51996 7.92 2.06996 7.29 2.69996L4 5.99996H1C0.45 5.99996 0 6.44996 0 6.99996ZM13.5 8.99996C13.5 7.22996 12.48 5.70996 11 4.96996V13.02C12.48 12.29 13.5 10.77 13.5 8.99996ZM11 1.44996V1.64996C11 2.02996 11.25 2.35996 11.6 2.49996C14.18 3.52996 16 6.05996 16 8.99996C16 11.94 14.18 14.47 11.6 15.5C11.24 15.64 11 15.97 11 16.35V16.55C11 17.18 11.63 17.62 12.21 17.4C15.6 16.11 18 12.84 18 8.99996C18 5.15996 15.6 1.88996 12.21 0.599963C11.63 0.369963 11 0.819963 11 1.44996V1.44996Z"), Jt(e, "width", s = 18 * /*scale*/
|
|
11697
|
+
t[0]), Jt(e, "height", l = 18 * /*scale*/
|
|
11698
|
+
t[0]), Jt(e, "viewBox", "0 0 18 18"), Jt(e, "fill", "none"), Jt(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
11699
11699
|
},
|
|
11700
11700
|
m(a, r) {
|
|
11701
11701
|
E(a, e, r), m(e, i), m(e, n);
|
|
11702
11702
|
},
|
|
11703
11703
|
p(a, [r]) {
|
|
11704
11704
|
r & /*fill*/
|
|
11705
|
-
8 &&
|
|
11705
|
+
8 && Jt(
|
|
11706
11706
|
i,
|
|
11707
11707
|
"fill",
|
|
11708
11708
|
/*fill*/
|
|
11709
11709
|
a[3]
|
|
11710
11710
|
), r & /*color*/
|
|
11711
|
-
4 &&
|
|
11711
|
+
4 && Jt(
|
|
11712
11712
|
n,
|
|
11713
11713
|
"fill",
|
|
11714
11714
|
/*color*/
|
|
11715
11715
|
a[2]
|
|
11716
11716
|
), r & /*zoom*/
|
|
11717
11717
|
2 && o !== (o = "scale(" + /*zoom*/
|
|
11718
|
-
a[1] + ")") &&
|
|
11718
|
+
a[1] + ")") && Jt(n, "transform", o), r & /*scale*/
|
|
11719
11719
|
1 && s !== (s = 18 * /*scale*/
|
|
11720
|
-
a[0]) &&
|
|
11720
|
+
a[0]) && Jt(e, "width", s), r & /*scale*/
|
|
11721
11721
|
1 && l !== (l = 18 * /*scale*/
|
|
11722
|
-
a[0]) &&
|
|
11722
|
+
a[0]) && Jt(e, "height", l);
|
|
11723
11723
|
},
|
|
11724
11724
|
i: Q,
|
|
11725
11725
|
o: Q,
|
|
@@ -11728,7 +11728,7 @@ function G_(t) {
|
|
|
11728
11728
|
}
|
|
11729
11729
|
};
|
|
11730
11730
|
}
|
|
11731
|
-
function
|
|
11731
|
+
function J_(t, e, i) {
|
|
11732
11732
|
let { scale: n = 1 } = e, { zoom: o = 1 } = e, { color: s = "#323232" } = e, { fill: l = "transparent" } = e;
|
|
11733
11733
|
return t.$$set = (a) => {
|
|
11734
11734
|
"scale" in a && i(0, n = a.scale), "zoom" in a && i(1, o = a.zoom), "color" in a && i(2, s = a.color), "fill" in a && i(3, l = a.fill);
|
|
@@ -11736,7 +11736,7 @@ function X_(t, e, i) {
|
|
|
11736
11736
|
}
|
|
11737
11737
|
class Ur extends Te {
|
|
11738
11738
|
constructor(e) {
|
|
11739
|
-
super(), we(this, e,
|
|
11739
|
+
super(), we(this, e, J_, G_, ke, { scale: 0, zoom: 1, color: 2, fill: 3 });
|
|
11740
11740
|
}
|
|
11741
11741
|
get scale() {
|
|
11742
11742
|
return this.$$.ctx[0];
|
|
@@ -11898,7 +11898,7 @@ function Aa(t) {
|
|
|
11898
11898
|
function P(Y) {
|
|
11899
11899
|
t[18](Y);
|
|
11900
11900
|
}
|
|
11901
|
-
let
|
|
11901
|
+
let X = {
|
|
11902
11902
|
onEvent: (
|
|
11903
11903
|
/*onEvent*/
|
|
11904
11904
|
t[8]
|
|
@@ -11930,8 +11930,8 @@ function Aa(t) {
|
|
|
11930
11930
|
};
|
|
11931
11931
|
return (
|
|
11932
11932
|
/*downloadIsVisible*/
|
|
11933
|
-
t[9] !== void 0 && (
|
|
11934
|
-
t[9]), _ = new jr({ props:
|
|
11933
|
+
t[9] !== void 0 && (X.isVisible = /*downloadIsVisible*/
|
|
11934
|
+
t[9]), _ = new jr({ props: X }), se.push(() => ve(_, "isVisible", P)), {
|
|
11935
11935
|
c() {
|
|
11936
11936
|
e = y("div"), i = y("button"), o.c(), s = G(), l = y("span"), fe(a.$$.fragment), r = G(), u = y("span"), fe(c.$$.fragment), f = G(), A = y("span"), fe(_.$$.fragment), w = G(), vi(l, "class", "title svelte-1hl1xir"), ne(
|
|
11937
11937
|
l,
|
|
@@ -11975,9 +11975,9 @@ function Aa(t) {
|
|
|
11975
11975
|
},
|
|
11976
11976
|
p(Y, N) {
|
|
11977
11977
|
t = Y;
|
|
11978
|
-
let
|
|
11979
|
-
n = S(t), n ===
|
|
11980
|
-
D[
|
|
11978
|
+
let J = n;
|
|
11979
|
+
n = S(t), n === J ? D[n].p(t, N) : (Fe(), L(D[J], 1, 1, () => {
|
|
11980
|
+
D[J] = null;
|
|
11981
11981
|
}), Ue(), o = D[n], o ? o.p(t, N) : (o = D[n] = z[n](t), o.c()), I(o, 1), o.m(i, s));
|
|
11982
11982
|
const oe = {};
|
|
11983
11983
|
N & /*content*/
|
|
@@ -12182,8 +12182,8 @@ function nA(t, e, i) {
|
|
|
12182
12182
|
P && P.focus();
|
|
12183
12183
|
}
|
|
12184
12184
|
}, z = (S) => {
|
|
12185
|
-
const P = S.target.parentNode,
|
|
12186
|
-
P.scrollTop =
|
|
12185
|
+
const P = S.target.parentNode, X = Math.round(P.scrollTop / 10) * 10;
|
|
12186
|
+
P.scrollTop = X;
|
|
12187
12187
|
};
|
|
12188
12188
|
function D(S) {
|
|
12189
12189
|
T = S, i(9, T);
|
|
@@ -12326,7 +12326,7 @@ function aA(t) {
|
|
|
12326
12326
|
t[2]
|
|
12327
12327
|
),
|
|
12328
12328
|
Z(e, "mousemove", function() {
|
|
12329
|
-
|
|
12329
|
+
Jn(
|
|
12330
12330
|
/*idleDelay*/
|
|
12331
12331
|
t[0] !== 1 / 0 && /*onMove*/
|
|
12332
12332
|
t[3]
|
|
@@ -13557,7 +13557,7 @@ function TA(t) {
|
|
|
13557
13557
|
}
|
|
13558
13558
|
function PA(t) {
|
|
13559
13559
|
let e, i;
|
|
13560
|
-
return e = new
|
|
13560
|
+
return e = new X0({
|
|
13561
13561
|
props: {
|
|
13562
13562
|
onEvent: (
|
|
13563
13563
|
/*onEvent*/
|
|
@@ -13933,7 +13933,7 @@ function BA(t) {
|
|
|
13933
13933
|
t[22] && /*videoPosterImage*/
|
|
13934
13934
|
(t[18] || !/*videoIsBehind*/
|
|
13935
13935
|
t[19]) && ka(t)
|
|
13936
|
-
),
|
|
13936
|
+
), X = (
|
|
13937
13937
|
/*largeImage*/
|
|
13938
13938
|
t[49] && /*isLarge*/
|
|
13939
13939
|
(t[64] || /*isScreen*/
|
|
@@ -13946,7 +13946,7 @@ function BA(t) {
|
|
|
13946
13946
|
function N(b) {
|
|
13947
13947
|
t[88](b);
|
|
13948
13948
|
}
|
|
13949
|
-
function
|
|
13949
|
+
function J(b) {
|
|
13950
13950
|
t[89](b);
|
|
13951
13951
|
}
|
|
13952
13952
|
function oe(b) {
|
|
@@ -13968,7 +13968,7 @@ function BA(t) {
|
|
|
13968
13968
|
t[1] !== void 0 && (le.relativeY = /*relativeY*/
|
|
13969
13969
|
t[1]), /*absoluteY*/
|
|
13970
13970
|
t[2] !== void 0 && (le.absoluteY = /*absoluteY*/
|
|
13971
|
-
t[2]), l = new hA({ props: le }), se.push(() => ve(l, "isVisible", N)), se.push(() => ve(l, "relativeY",
|
|
13971
|
+
t[2]), l = new hA({ props: le }), se.push(() => ve(l, "isVisible", N)), se.push(() => ve(l, "relativeY", J)), se.push(() => ve(l, "absoluteY", oe));
|
|
13972
13972
|
let $ = (
|
|
13973
13973
|
/*isStandard*/
|
|
13974
13974
|
((t[29] || /*isVideo*/
|
|
@@ -14061,13 +14061,13 @@ function BA(t) {
|
|
|
14061
14061
|
);
|
|
14062
14062
|
return {
|
|
14063
14063
|
c() {
|
|
14064
|
-
P && P.c(), e = G(), i = y("div"),
|
|
14064
|
+
P && P.c(), e = G(), i = y("div"), X && X.c(), n = G(), Y && Y.c(), o = G(), s = y("div"), fe(l.$$.fragment), c = G(), $ && $.c(), g = G(), te && te.c(), f = G(), re && re.c(), A = G(), fe(_.$$.fragment), k = G(), _e && _e.c(), w = G(), ue && ue.c(), T = G(), Ae && Ae.c(), v = G(), ae && ae.c(), Mi(s, "class", "controls svelte-k6qh1c"), Mi(i, "class", "main svelte-k6qh1c"), Mi(i, "role", "none"), Mi(i, "style", p = /*isVideo*/
|
|
14065
14065
|
t[22] ? "" : `background: ${/*activeBgColor*/
|
|
14066
14066
|
t[60]}`), ne(i, "no-image", !/*largeImage*/
|
|
14067
14067
|
t[49]);
|
|
14068
14068
|
},
|
|
14069
14069
|
m(b, C) {
|
|
14070
|
-
P && P.m(b, C), E(b, e, C), E(b, i, C),
|
|
14070
|
+
P && P.m(b, C), E(b, e, C), E(b, i, C), X && X.m(i, null), m(i, n), Y && Y.m(i, null), m(i, o), m(i, s), ce(l, s, null), m(s, c), $ && $.m(s, null), m(s, g), te && te.m(s, null), m(s, f), re && re.m(s, null), m(s, A), ce(_, s, null), m(s, k), _e && _e.m(s, null), m(s, w), ue && ue.m(s, null), m(s, T), Ae && Ae.m(s, null), m(i, v), ae && ae.m(i, null), z = !0, D || (S = [
|
|
14071
14071
|
Z(
|
|
14072
14072
|
i,
|
|
14073
14073
|
"mousedown",
|
|
@@ -14087,11 +14087,11 @@ function BA(t) {
|
|
|
14087
14087
|
}), Ue()), /*largeImage*/
|
|
14088
14088
|
b[49] && /*isLarge*/
|
|
14089
14089
|
(b[64] || /*isScreen*/
|
|
14090
|
-
b[27]) ?
|
|
14090
|
+
b[27]) ? X ? (X.p(b, C), C[0] & /*isScreen*/
|
|
14091
14091
|
134217728 | C[1] & /*largeImage*/
|
|
14092
14092
|
262144 | C[2] & /*isLarge*/
|
|
14093
|
-
4 && I(
|
|
14094
|
-
|
|
14093
|
+
4 && I(X, 1)) : (X = Sa(b), X.c(), I(X, 1), X.m(i, n)) : X && (Fe(), L(X, 1, 1, () => {
|
|
14094
|
+
X = null;
|
|
14095
14095
|
}), Ue()), /*isLarge*/
|
|
14096
14096
|
b[64] || /*isScreen*/
|
|
14097
14097
|
b[27] ? Y ? (Y.p(b, C), C[0] & /*isScreen*/
|
|
@@ -14201,13 +14201,13 @@ function BA(t) {
|
|
|
14201
14201
|
b[49]);
|
|
14202
14202
|
},
|
|
14203
14203
|
i(b) {
|
|
14204
|
-
z || (I(P), I(
|
|
14204
|
+
z || (I(P), I(X), I(Y), I(l.$$.fragment, b), I($), I(te), I(re), I(_.$$.fragment, b), I(_e), I(ue), I(Ae), I(ae), z = !0);
|
|
14205
14205
|
},
|
|
14206
14206
|
o(b) {
|
|
14207
|
-
L(P), L(
|
|
14207
|
+
L(P), L(X), L(Y), L(l.$$.fragment, b), L($), L(te), L(re), L(_.$$.fragment, b), L(_e), L(ue), L(Ae), L(ae), z = !1;
|
|
14208
14208
|
},
|
|
14209
14209
|
d(b) {
|
|
14210
|
-
b && (M(e), M(i)), P && P.d(b),
|
|
14210
|
+
b && (M(e), M(i)), P && P.d(b), X && X.d(), Y && Y.d(), de(l), $ && $.d(), te && te.d(), re && re.d(), de(_), _e && _e.d(), ue && ue.d(), Ae && Ae.d(), ae && ae.d(), D = !1, mt(S);
|
|
14211
14211
|
}
|
|
14212
14212
|
};
|
|
14213
14213
|
}
|
|
@@ -14478,10 +14478,10 @@ function WA(t) {
|
|
|
14478
14478
|
};
|
|
14479
14479
|
}
|
|
14480
14480
|
function OA(t, e, i) {
|
|
14481
|
-
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P,
|
|
14481
|
+
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P, X, Y, N, J, oe, le, $, te, re, _e, ue, Ae, ae, b, C, F, x, Ve, Le, Ke, j, me, Ee, Ne, Xe;
|
|
14482
14482
|
import("./././././././././style.js");
|
|
14483
14483
|
let { playerStyle: Me = "standard" } = e, { callToAction: Qe = void 0 } = e, { skipButtonStyle: pe = "auto" } = e, { playlistStyle: Ye = "auto-5-4" } = e, { playlistToggle: Pe = "auto" } = e, { downloadFormats: jt = [] } = e, { playerTitle: Oe = void 0 } = e, { fixedPosition: je = void 0 } = e, { fixedWidth: ze = "auto" } = e, { fixedMargin: at = "0" } = e, { content: xt = [] } = e, { contentIndex: Re = 0 } = e, { duration: ht = 0 } = e, { currentTime: He = 0 } = e, { playbackState: et = "stopped" } = e, { playbackRate: tt = 1 } = e, { playbackRates: gt = [] } = e, { activeAdvert: Ie = void 0 } = e, { persistentAdvert: _t = void 0 } = e, { companionAdvert: Ge = void 0 } = e, { textColor: Ct = "#111" } = e, { backgroundColor: it = "#f5f5f5" } = e, { iconColor: $e = "black" } = e, { videoTextColor: rt = "white" } = e, { videoBackgroundColor: ut = "black" } = e, { videoIconColor: It = "white" } = e, { logoIconEnabled: At = !0 } = e, { logoImagePosition: St = void 0 } = e, { maxImageSize: Vt = 0 } = e, { onEvent: nt = () => {
|
|
14484
|
-
} } = e, { videoPosterImage: ot = "" } = e, { videoIsBehind: Bt = !1 } = e, { isFullScreen: st = !1 } = e, { isVisible: kt = void 0 } = e, { relativeY: qe = void 0 } = e, { absoluteY: yt = void 0 } = e,
|
|
14484
|
+
} } = e, { videoPosterImage: ot = "" } = e, { videoIsBehind: Bt = !1 } = e, { isFullScreen: st = !1 } = e, { isVisible: kt = void 0 } = e, { relativeY: qe = void 0 } = e, { absoluteY: yt = void 0 } = e, Je, vt, lt, Ze;
|
|
14485
14485
|
const ft = () => {
|
|
14486
14486
|
Ze && clearTimeout(Ze), i(40, Ze = setTimeout(() => i(40, Ze = null), 500));
|
|
14487
14487
|
}, Mt = (B) => {
|
|
@@ -14495,7 +14495,7 @@ function OA(t, e, i) {
|
|
|
14495
14495
|
const B = new eh(([ti]) => {
|
|
14496
14496
|
i(20, vt = ti.contentRect.width);
|
|
14497
14497
|
});
|
|
14498
|
-
return B.observe(
|
|
14498
|
+
return B.observe(Je), () => B.unobserve(Je);
|
|
14499
14499
|
});
|
|
14500
14500
|
function H(B) {
|
|
14501
14501
|
kt = B, i(0, kt);
|
|
@@ -14511,7 +14511,7 @@ function OA(t, e, i) {
|
|
|
14511
14511
|
}
|
|
14512
14512
|
function W(B) {
|
|
14513
14513
|
se[B ? "unshift" : "push"](() => {
|
|
14514
|
-
|
|
14514
|
+
Je = B, i(39, Je);
|
|
14515
14515
|
});
|
|
14516
14516
|
}
|
|
14517
14517
|
return t.$$set = (B) => {
|
|
@@ -14551,13 +14551,13 @@ function OA(t, e, i) {
|
|
|
14551
14551
|
2 && i(35, S = n || a && je ? 0.8 : l && !f ? 2 : 1), t.$$.dirty[0] & /*isScreen, isVideo, isStopped*/
|
|
14552
14552
|
1212153856 | t.$$.dirty[1] & /*buttonScale*/
|
|
14553
14553
|
16 && i(57, P = S * (l ? 1.5 : a && u ? 1.6 : 1)), t.$$.dirty[0] & /*isVideo, fixedPosition*/
|
|
14554
|
-
4194560 && i(56,
|
|
14554
|
+
4194560 && i(56, X = a && !je ? 1.2 : 1), t.$$.dirty[0] & /*isScreen, isVideo*/
|
|
14555
14555
|
138412032 | t.$$.dirty[1] & /*isMobile*/
|
|
14556
14556
|
2 && i(55, Y = l && !f ? 3 : l ? 2 : a && !f ? 1.5 : 1), t.$$.dirty[0] & /*isScreen, isVideo*/
|
|
14557
14557
|
138412032 | t.$$.dirty[1] & /*isMobile*/
|
|
14558
14558
|
2 && i(54, N = l && !f ? 2.5 : l ? 1.75 : a && !f ? 2 : a ? 1.5 : 1), t.$$.dirty[0] & /*isScreen*/
|
|
14559
14559
|
134217728 | t.$$.dirty[1] & /*isMobile*/
|
|
14560
|
-
2 && i(53,
|
|
14560
|
+
2 && i(53, J = l && !f ? "12px 0" : l ? "4px 0" : "auto"), t.$$.dirty[0] & /*isSmall*/
|
|
14561
14561
|
33554432 | t.$$.dirty[2] & /*fixedWidth*/
|
|
14562
14562
|
128 && i(52, oe = ze === "auto" ? n ? "fit-content" : "" : ze), t.$$.dirty[0] & /*fixedPosition, isStandard*/
|
|
14563
14563
|
536871168 && i(86, le = je === "auto" ? o ? "center" : "right" : je), t.$$.dirty[0] & /*fixedPosition*/
|
|
@@ -14599,7 +14599,7 @@ function OA(t, e, i) {
|
|
|
14599
14599
|
33554432 | t.$$.dirty[2] & /*playlistToggle, isPlaylist, isFullScreen*/
|
|
14600
14600
|
3145792 && i(42, Ne = (Pe === "show" || Pe === "auto" && g) && !n && !st), t.$$.dirty[0] & /*playerStyle, positionClasses, controlsOrder*/
|
|
14601
14601
|
25165832 | t.$$.dirty[2] & /*playbackState*/
|
|
14602
|
-
256 && i(41,
|
|
14602
|
+
256 && i(41, Xe = `user-interface ${Me} ${et} ${$} ${ue}`), t.$$.dirty[0] & /*fixedPosition*/
|
|
14603
14603
|
256 && je && ft();
|
|
14604
14604
|
}, [
|
|
14605
14605
|
kt,
|
|
@@ -14641,9 +14641,9 @@ function OA(t, e, i) {
|
|
|
14641
14641
|
T,
|
|
14642
14642
|
w,
|
|
14643
14643
|
k,
|
|
14644
|
-
Xe,
|
|
14645
|
-
Ze,
|
|
14646
14644
|
Je,
|
|
14645
|
+
Ze,
|
|
14646
|
+
Xe,
|
|
14647
14647
|
Ne,
|
|
14648
14648
|
Ee,
|
|
14649
14649
|
j,
|
|
@@ -14655,10 +14655,10 @@ function OA(t, e, i) {
|
|
|
14655
14655
|
_e,
|
|
14656
14656
|
te,
|
|
14657
14657
|
oe,
|
|
14658
|
-
|
|
14658
|
+
J,
|
|
14659
14659
|
N,
|
|
14660
14660
|
Y,
|
|
14661
|
-
|
|
14661
|
+
X,
|
|
14662
14662
|
P,
|
|
14663
14663
|
D,
|
|
14664
14664
|
z,
|
|
@@ -15120,7 +15120,7 @@ function NA(t) {
|
|
|
15120
15120
|
};
|
|
15121
15121
|
}
|
|
15122
15122
|
function Na(t) {
|
|
15123
|
-
let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P,
|
|
15123
|
+
let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P, X, Y, N, J, oe, le, $, te, re, _e, ue, Ae, ae, b, C, F, x, Ve, Le, Ke, j, me, Ee, Ne, Xe, Me, Qe, pe, Ye, Pe, jt, Oe, je, ze, at, xt, Re, ht, He, et, tt, gt, Ie, _t, Ge, Ct, it, $e, rt, ut, It, At, St, Vt, nt, ot, Bt, st, kt, qe, yt, Je, vt, lt, Ze, ft, Mt, H, bt, ee, V, W, B, ti, ri, Cn, Wt, Pi, Ut, gi, Ht, fi, bi, Ft, ii, Ci, zi, ui, Dt, Ii, ni = $t(
|
|
15124
15124
|
/*content*/
|
|
15125
15125
|
t[43]
|
|
15126
15126
|
), wt = [];
|
|
@@ -15144,12 +15144,12 @@ function Na(t) {
|
|
|
15144
15144
|
`), c = y("input"), g = G(), f = y("div"), A = ie(`contentId:
|
|
15145
15145
|
`), _ = y("input"), k = G(), w = y("div"), T = ie(`playlistId:
|
|
15146
15146
|
`), v = y("input"), p = G(), z = y("div"), D = ie(`sourceId:
|
|
15147
|
-
`), S = y("input"), P = G(),
|
|
15148
|
-
`), N = y("input"),
|
|
15147
|
+
`), S = y("input"), P = G(), X = y("div"), Y = ie(`sourceUrl:
|
|
15148
|
+
`), N = y("input"), J = G(), oe = y("div"), le = ie(`showUserInterface:
|
|
15149
15149
|
`), $ = y("select"), te = y("option"), te.textContent = `${!1}`, re = y("option"), re.textContent = `${!0}`, _e = G(), ue = y("div"), Ae = ie(`videoTextColor:
|
|
15150
15150
|
`), ae = y("input"), b = G(), C = y("div"), F = ie(`videoIconColor:
|
|
15151
15151
|
`), x = y("input"), Ve = G(), Le = y("div"), Ke = ie(`mediaSession:
|
|
15152
|
-
`), j = y("select"), me = y("option"), me.textContent = "auto", Ee = y("option"), Ee.textContent = "override", Ne = y("option"), Ne.textContent = "none",
|
|
15152
|
+
`), j = y("select"), me = y("option"), me.textContent = "auto", Ee = y("option"), Ee.textContent = "override", Ne = y("option"), Ne.textContent = "none", Xe = G(), Me = y("div"), Qe = ie(`contentIndex:
|
|
15153
15153
|
`), pe = y("select");
|
|
15154
15154
|
for (let R = 0; R < wt.length; R += 1)
|
|
15155
15155
|
wt[R].c();
|
|
@@ -15166,12 +15166,12 @@ function Na(t) {
|
|
|
15166
15166
|
`), $e = y("input"), rt = G(), ut = y("div"), It = ie(`currentTime:
|
|
15167
15167
|
`), At = y("input"), St = G(), Vt = y("div"), nt = ie(`playbackRate:
|
|
15168
15168
|
`), ot = y("input"), Bt = G(), st = y("div"), kt = ie(`widgetTarget:
|
|
15169
|
-
`), qe = y("input"), yt = G(),
|
|
15169
|
+
`), qe = y("input"), yt = G(), Je = y("div"), vt = ie(`logoIconEnabled:
|
|
15170
15170
|
`), lt = y("select"), Ze = y("option"), Ze.textContent = `${!1}`, ft = y("option"), ft.textContent = `${!0}`, Mt = G(), H = y("div"), bt = ie(`advertConsent:
|
|
15171
15171
|
`), ee = y("select"), V = y("option"), V.textContent = "personalized", W = y("option"), W.textContent = "non-personalized", B = y("option"), B.textContent = "under-the-age-of-consent", ti = G(), ri = y("div"), Cn = ie(`analyticsConsent:
|
|
15172
15172
|
`), Wt = y("select"), Pi = y("option"), Pi.textContent = "allowed", Ut = y("option"), Ut.textContent = "without-local-storage", gi = y("option"), gi.textContent = "none", Ht = G(), fi = y("div"), bi = ie(`analyticsCustomUrl:
|
|
15173
15173
|
`), Ft = y("input"), ii = G(), Ci = y("div"), zi = ie(`analyticsTag:
|
|
15174
|
-
`), ui = y("input"), O(n, "class", "svelte-1a8td5m"), O(c, "tabindex", -1), O(c, "type", "text"), O(c, "class", "svelte-1a8td5m"), O(r, "class", "control svelte-1a8td5m"), O(_, "tabindex", -1), O(_, "type", "text"), O(_, "class", "svelte-1a8td5m"), O(f, "class", "control svelte-1a8td5m"), O(v, "tabindex", -1), O(v, "type", "text"), O(v, "class", "svelte-1a8td5m"), O(w, "class", "control svelte-1a8td5m"), O(S, "tabindex", -1), O(S, "type", "text"), O(S, "class", "svelte-1a8td5m"), O(z, "class", "control svelte-1a8td5m"), O(N, "tabindex", -1), O(N, "type", "text"), O(N, "class", "svelte-1a8td5m"), O(
|
|
15174
|
+
`), ui = y("input"), O(n, "class", "svelte-1a8td5m"), O(c, "tabindex", -1), O(c, "type", "text"), O(c, "class", "svelte-1a8td5m"), O(r, "class", "control svelte-1a8td5m"), O(_, "tabindex", -1), O(_, "type", "text"), O(_, "class", "svelte-1a8td5m"), O(f, "class", "control svelte-1a8td5m"), O(v, "tabindex", -1), O(v, "type", "text"), O(v, "class", "svelte-1a8td5m"), O(w, "class", "control svelte-1a8td5m"), O(S, "tabindex", -1), O(S, "type", "text"), O(S, "class", "svelte-1a8td5m"), O(z, "class", "control svelte-1a8td5m"), O(N, "tabindex", -1), O(N, "type", "text"), O(N, "class", "svelte-1a8td5m"), O(X, "class", "control svelte-1a8td5m"), te.__value = !1, q(te, te.__value), re.__value = !0, q(re, re.__value), O($, "tabindex", -1), O($, "class", "svelte-1a8td5m"), /*showUserInterface*/
|
|
15175
15175
|
t[5] === void 0 && dt(() => (
|
|
15176
15176
|
/*select0_change_handler_1*/
|
|
15177
15177
|
t[72].call($)
|
|
@@ -15199,7 +15199,7 @@ function Na(t) {
|
|
|
15199
15199
|
t[33] === void 0 && dt(() => (
|
|
15200
15200
|
/*select6_change_handler_1*/
|
|
15201
15201
|
t[84].call(lt)
|
|
15202
|
-
)), O(
|
|
15202
|
+
)), O(Je, "class", "control svelte-1a8td5m"), V.__value = "personalized", q(V, V.__value), W.__value = "non-personalized", q(W, W.__value), B.__value = "under-the-age-of-consent", q(B, B.__value), O(ee, "tabindex", -1), O(ee, "class", "svelte-1a8td5m"), /*advertConsent*/
|
|
15203
15203
|
t[38] === void 0 && dt(() => (
|
|
15204
15204
|
/*select7_change_handler_1*/
|
|
15205
15205
|
t[85].call(ee)
|
|
@@ -15226,11 +15226,11 @@ function Na(t) {
|
|
|
15226
15226
|
S,
|
|
15227
15227
|
/*sourceId*/
|
|
15228
15228
|
t[3]
|
|
15229
|
-
), E(R, P, K), E(R,
|
|
15229
|
+
), E(R, P, K), E(R, X, K), m(X, Y), m(X, N), q(
|
|
15230
15230
|
N,
|
|
15231
15231
|
/*sourceUrl*/
|
|
15232
15232
|
t[4]
|
|
15233
|
-
), E(R,
|
|
15233
|
+
), E(R, J, K), E(R, oe, K), m(oe, le), m(oe, $), m($, te), m($, re), We(
|
|
15234
15234
|
$,
|
|
15235
15235
|
/*showUserInterface*/
|
|
15236
15236
|
t[5],
|
|
@@ -15248,7 +15248,7 @@ function Na(t) {
|
|
|
15248
15248
|
/*mediaSession*/
|
|
15249
15249
|
t[12],
|
|
15250
15250
|
!0
|
|
15251
|
-
), E(R,
|
|
15251
|
+
), E(R, Xe, K), E(R, Me, K), m(Me, Qe), m(Me, pe);
|
|
15252
15252
|
for (let ge = 0; ge < wt.length; ge += 1)
|
|
15253
15253
|
wt[ge] && wt[ge].m(pe, null);
|
|
15254
15254
|
We(
|
|
@@ -15293,7 +15293,7 @@ function Na(t) {
|
|
|
15293
15293
|
qe,
|
|
15294
15294
|
/*widgetTarget*/
|
|
15295
15295
|
t[26]
|
|
15296
|
-
), E(R, yt, K), E(R,
|
|
15296
|
+
), E(R, yt, K), E(R, Je, K), m(Je, vt), m(Je, lt), m(lt, Ze), m(lt, ft), We(
|
|
15297
15297
|
lt,
|
|
15298
15298
|
/*logoIconEnabled*/
|
|
15299
15299
|
t[33],
|
|
@@ -15623,7 +15623,7 @@ function Na(t) {
|
|
|
15623
15623
|
);
|
|
15624
15624
|
},
|
|
15625
15625
|
d(R) {
|
|
15626
|
-
R && (M(e), M(i), M(n), M(o), M(s), M(l), M(a), M(r), M(g), M(f), M(k), M(w), M(p), M(z), M(P), M(
|
|
15626
|
+
R && (M(e), M(i), M(n), M(o), M(s), M(l), M(a), M(r), M(g), M(f), M(k), M(w), M(p), M(z), M(P), M(X), M(J), M(oe), M(_e), M(ue), M(b), M(C), M(Ve), M(Le), M(Xe), M(Me), M(Ye), M(Pe), M(ze), M(at), M(et), M(tt), M(Ge), M(Ct), M(rt), M(ut), M(St), M(Vt), M(Bt), M(st), M(yt), M(Je), M(Mt), M(H), M(ti), M(ri), M(Ht), M(fi), M(ii), M(Ci)), Pn(wt, R), Pn(Tt, R), Pn(pt, R), Dt = !1, mt(Ii);
|
|
15627
15627
|
}
|
|
15628
15628
|
};
|
|
15629
15629
|
}
|
|
@@ -15746,7 +15746,7 @@ function FA(t) {
|
|
|
15746
15746
|
};
|
|
15747
15747
|
}
|
|
15748
15748
|
function UA(t) {
|
|
15749
|
-
let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P,
|
|
15749
|
+
let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P, X, Y, N, J, oe, le, $, te, re, _e, ue, Ae, ae, b, C, F, x, Ve, Le, Ke, j, me, Ee, Ne, Xe, Me, Qe, pe, Ye, Pe, jt, Oe, je, ze, at, xt, Re, ht, He, et, tt, gt, Ie, _t, Ge, Ct, it, $e, rt, ut, It, At, St, Vt, nt, ot, Bt, st, kt, qe, yt, Je, vt, lt, Ze, ft, Mt, H, bt, ee, V, W, B, ti, ri, Cn, Wt, Pi, Ut, gi, Ht, fi, bi, Ft, ii, Ci, zi, ui, Dt, Ii, ni, wt, oi, Tt, Vi, pt, R, K, ge, Nt, Ni, cn, dn, Oo, In, Mo, ci, gn, fn, mn, hn, _n, Eo, Vn, zo, Li, Lo, io, jo, xo, Ji, no, Qi, oo, Do, An = $t(
|
|
15750
15750
|
/*adverts*/
|
|
15751
15751
|
t[45]
|
|
15752
15752
|
), Zt = [];
|
|
@@ -15771,10 +15771,10 @@ function UA(t) {
|
|
|
15771
15771
|
e = y("div"), i = y("div"), i.innerHTML = '<strong class="svelte-1a8td5m">Player settings:</strong> <a tabindex="-1" target="_blank" class="docs svelte-1a8td5m" href="https://github.com/beyondwords-io/player/blob/main/doc/player-settings.md">view docs</a>', n = G(), o = y("br"), s = G(), l = y("div"), a = ie(`playerStyle:
|
|
15772
15772
|
`), r = y("select"), u = y("option"), u.textContent = "small", c = y("option"), c.textContent = "standard", g = y("option"), g.textContent = "large", f = y("option"), f.textContent = "video", A = G(), _ = y("div"), k = ie(`playbackState:
|
|
15773
15773
|
`), w = y("select"), T = y("option"), T.textContent = "stopped", v = y("option"), v.textContent = "playing", p = y("option"), p.textContent = "paused", z = G(), D = y("div"), S = ie(`playerTitle:
|
|
15774
|
-
`), P = y("input"),
|
|
15775
|
-
`),
|
|
15774
|
+
`), P = y("input"), X = G(), Y = y("div"), N = ie(`callToAction:
|
|
15775
|
+
`), J = y("input"), oe = G(), le = y("div"), $ = ie(`skipButtonStyle:
|
|
15776
15776
|
`), te = y("select"), re = y("option"), re.textContent = "auto", _e = y("option"), _e.textContent = "segments", ue = y("option"), ue.textContent = "seconds", Ae = y("option"), Ae.textContent = "seconds-15", ae = y("option"), ae.textContent = "seconds-15-30", b = y("option"), b.textContent = "tracks", C = G(), F = y("div"), x = ie(`playlistStyle:
|
|
15777
|
-
`), Ve = y("select"), Le = y("option"), Le.textContent = "auto", Ke = y("option"), Ke.textContent = "show", j = y("option"), j.textContent = "show-3", me = y("option"), me.textContent = "show-999", Ee = y("option"), Ee.textContent = "hide", Ne = G(),
|
|
15777
|
+
`), Ve = y("select"), Le = y("option"), Le.textContent = "auto", Ke = y("option"), Ke.textContent = "show", j = y("option"), j.textContent = "show-3", me = y("option"), me.textContent = "show-999", Ee = y("option"), Ee.textContent = "hide", Ne = G(), Xe = y("div"), Me = ie(`playlistToggle:
|
|
15778
15778
|
`), Qe = y("select"), pe = y("option"), pe.textContent = "auto", Ye = y("option"), Ye.textContent = "show", Pe = y("option"), Pe.textContent = "hide", jt = G(), Oe = y("div"), je = ie(`advertIndex:
|
|
15779
15779
|
`), ze = y("select"), at = y("option"), at.textContent = "-1 (none)";
|
|
15780
15780
|
for (let he = 0; he < Zt.length; he += 1)
|
|
@@ -15782,7 +15782,7 @@ function UA(t) {
|
|
|
15782
15782
|
xt = G(), Re = y("div"), ht = ie(`widgetStyle:
|
|
15783
15783
|
`), He = y("select"), et = y("option"), et.textContent = "small", tt = y("option"), tt.textContent = "standard", gt = y("option"), gt.textContent = "large", Ie = y("option"), Ie.textContent = "video", _t = G(), Ge = y("div"), Ct = ie(`widgetPosition:
|
|
15784
15784
|
`), it = y("select"), $e = y("option"), $e.textContent = "auto", rt = y("option"), rt.textContent = "left", ut = y("option"), ut.textContent = "center", It = y("option"), It.textContent = "right", At = G(), St = y("div"), Vt = ie(`widgetWidth:
|
|
15785
|
-
`), nt = y("select"), ot = y("option"), ot.textContent = "auto", Bt = y("option"), Bt.textContent = "400px", st = y("option"), st.textContent = "30rem", kt = y("option"), kt.textContent = "fit-content", qe = y("option"), qe.textContent = "initial", yt = y("option"), yt.textContent = "0",
|
|
15785
|
+
`), nt = y("select"), ot = y("option"), ot.textContent = "auto", Bt = y("option"), Bt.textContent = "400px", st = y("option"), st.textContent = "30rem", kt = y("option"), kt.textContent = "fit-content", qe = y("option"), qe.textContent = "initial", yt = y("option"), yt.textContent = "0", Je = G(), vt = y("div"), lt = ie(`widgetMargin:
|
|
15786
15786
|
`), Ze = y("select"), ft = y("option"), ft.textContent = "16px", Mt = y("option"), Mt.textContent = "32px", H = y("option"), H.textContent = "32px 16px", bt = y("option"), bt.textContent = "10px 20px 30px 40px", ee = G(), V = y("div"), W = ie(`textColor:
|
|
15787
15787
|
`), B = y("input"), ti = G(), ri = y("div"), Cn = ie(`backgroundColor:
|
|
15788
15788
|
`), Wt = y("input"), Pi = G(), Ut = y("div"), gi = ie(`iconColor:
|
|
@@ -15794,7 +15794,7 @@ function UA(t) {
|
|
|
15794
15794
|
`), Li = y("select");
|
|
15795
15795
|
for (let he = 0; he < 12; he += 1)
|
|
15796
15796
|
Bn[he].c();
|
|
15797
|
-
Lo = G(), si && si.c(), io = G(), jo = y("br"), xo = G(),
|
|
15797
|
+
Lo = G(), si && si.c(), io = G(), jo = y("br"), xo = G(), Ji = y("div"), Bi.c(), no = G(), Qi = y("a"), Qi.textContent = "close", O(i, "class", "heading svelte-1a8td5m"), u.__value = "small", q(u, u.__value), c.__value = "standard", q(c, c.__value), g.__value = "large", q(g, g.__value), f.__value = "video", q(f, f.__value), O(r, "tabindex", -1), O(r, "class", "svelte-1a8td5m"), /*playerStyle*/
|
|
15798
15798
|
t[6] === void 0 && dt(() => (
|
|
15799
15799
|
/*select0_change_handler*/
|
|
15800
15800
|
t[47].call(r)
|
|
@@ -15802,7 +15802,7 @@ function UA(t) {
|
|
|
15802
15802
|
t[20] === void 0 && dt(() => (
|
|
15803
15803
|
/*select1_change_handler*/
|
|
15804
15804
|
t[48].call(w)
|
|
15805
|
-
)), O(_, "class", "control svelte-1a8td5m"), O(P, "tabindex", -1), O(P, "type", "text"), O(P, "class", "svelte-1a8td5m"), O(D, "class", "control svelte-1a8td5m"), O(
|
|
15805
|
+
)), O(_, "class", "control svelte-1a8td5m"), O(P, "tabindex", -1), O(P, "type", "text"), O(P, "class", "svelte-1a8td5m"), O(D, "class", "control svelte-1a8td5m"), O(J, "tabindex", -1), O(J, "type", "text"), O(J, "class", "svelte-1a8td5m"), O(Y, "class", "control svelte-1a8td5m"), re.__value = "auto", q(re, re.__value), _e.__value = "segments", q(_e, _e.__value), ue.__value = "seconds", q(ue, ue.__value), Ae.__value = "seconds-15", q(Ae, Ae.__value), ae.__value = "seconds-15-30", q(ae, ae.__value), b.__value = "tracks", q(b, b.__value), O(te, "tabindex", -1), O(te, "class", "svelte-1a8td5m"), /*skipButtonStyle*/
|
|
15806
15806
|
t[9] === void 0 && dt(() => (
|
|
15807
15807
|
/*select2_change_handler*/
|
|
15808
15808
|
t[51].call(te)
|
|
@@ -15814,7 +15814,7 @@ function UA(t) {
|
|
|
15814
15814
|
t[11] === void 0 && dt(() => (
|
|
15815
15815
|
/*select4_change_handler*/
|
|
15816
15816
|
t[53].call(Qe)
|
|
15817
|
-
)), O(
|
|
15817
|
+
)), O(Xe, "class", "control svelte-1a8td5m"), at.__value = -1, q(at, at.__value), O(ze, "tabindex", -1), O(ze, "class", "svelte-1a8td5m"), /*advertIndex*/
|
|
15818
15818
|
t[15] === void 0 && dt(() => (
|
|
15819
15819
|
/*select5_change_handler*/
|
|
15820
15820
|
t[54].call(ze)
|
|
@@ -15850,7 +15850,7 @@ function UA(t) {
|
|
|
15850
15850
|
t[37] === void 0 && dt(() => (
|
|
15851
15851
|
/*select13_change_handler*/
|
|
15852
15852
|
t[66].call(Li)
|
|
15853
|
-
)), O(Vn, "class", "control svelte-1a8td5m"), O(Qi, "class", "close svelte-1a8td5m"), O(Qi, "tabindex", -1), O(Qi, "href", "#_"), O(
|
|
15853
|
+
)), O(Vn, "class", "control svelte-1a8td5m"), O(Qi, "class", "close svelte-1a8td5m"), O(Qi, "tabindex", -1), O(Qi, "href", "#_"), O(Ji, "class", "settings-toggle svelte-1a8td5m"), O(e, "class", "control-panel");
|
|
15854
15854
|
},
|
|
15855
15855
|
m(he, ct) {
|
|
15856
15856
|
E(he, e, ct), m(e, i), m(e, n), m(e, o), m(e, s), m(e, l), m(l, a), m(l, r), m(r, u), m(r, c), m(r, g), m(r, f), We(
|
|
@@ -15867,8 +15867,8 @@ function UA(t) {
|
|
|
15867
15867
|
P,
|
|
15868
15868
|
/*playerTitle*/
|
|
15869
15869
|
t[7]
|
|
15870
|
-
), m(e,
|
|
15871
|
-
|
|
15870
|
+
), m(e, X), m(e, Y), m(Y, N), m(Y, J), q(
|
|
15871
|
+
J,
|
|
15872
15872
|
/*callToAction*/
|
|
15873
15873
|
t[8]
|
|
15874
15874
|
), m(e, oe), m(e, le), m(le, $), m(le, te), m(te, re), m(te, _e), m(te, ue), m(te, Ae), m(te, ae), m(te, b), We(
|
|
@@ -15881,7 +15881,7 @@ function UA(t) {
|
|
|
15881
15881
|
/*playlistStyle*/
|
|
15882
15882
|
t[10],
|
|
15883
15883
|
!0
|
|
15884
|
-
), m(e, Ne), m(e,
|
|
15884
|
+
), m(e, Ne), m(e, Xe), m(Xe, Me), m(Xe, Qe), m(Qe, pe), m(Qe, Ye), m(Qe, Pe), We(
|
|
15885
15885
|
Qe,
|
|
15886
15886
|
/*playlistToggle*/
|
|
15887
15887
|
t[11],
|
|
@@ -15909,7 +15909,7 @@ function UA(t) {
|
|
|
15909
15909
|
/*widgetWidth*/
|
|
15910
15910
|
t[24],
|
|
15911
15911
|
!0
|
|
15912
|
-
), m(e,
|
|
15912
|
+
), m(e, Je), m(e, vt), m(vt, lt), m(vt, Ze), m(Ze, ft), m(Ze, Mt), m(Ze, H), m(Ze, bt), We(
|
|
15913
15913
|
Ze,
|
|
15914
15914
|
/*widgetMargin*/
|
|
15915
15915
|
t[25],
|
|
@@ -15953,7 +15953,7 @@ function UA(t) {
|
|
|
15953
15953
|
/*segmentWidgetPosition*/
|
|
15954
15954
|
t[37],
|
|
15955
15955
|
!0
|
|
15956
|
-
), m(e, Lo), si && si.m(e, null), m(e, io), m(e, jo), m(e, xo), m(e,
|
|
15956
|
+
), m(e, Lo), si && si.m(e, null), m(e, io), m(e, jo), m(e, xo), m(e, Ji), Bi.m(Ji, null), m(Ji, no), m(Ji, Qi), oo || (Do = [
|
|
15957
15957
|
Z(
|
|
15958
15958
|
r,
|
|
15959
15959
|
"change",
|
|
@@ -15973,7 +15973,7 @@ function UA(t) {
|
|
|
15973
15973
|
t[49]
|
|
15974
15974
|
),
|
|
15975
15975
|
Z(
|
|
15976
|
-
|
|
15976
|
+
J,
|
|
15977
15977
|
"input",
|
|
15978
15978
|
/*input1_input_handler*/
|
|
15979
15979
|
t[50]
|
|
@@ -16100,9 +16100,9 @@ function UA(t) {
|
|
|
16100
16100
|
/*playerTitle*/
|
|
16101
16101
|
he[7]
|
|
16102
16102
|
), ct[0] & /*callToAction*/
|
|
16103
|
-
256 &&
|
|
16103
|
+
256 && J.value !== /*callToAction*/
|
|
16104
16104
|
he[8] && q(
|
|
16105
|
-
|
|
16105
|
+
J,
|
|
16106
16106
|
/*callToAction*/
|
|
16107
16107
|
he[8]
|
|
16108
16108
|
), ct[0] & /*skipButtonStyle*/
|
|
@@ -16205,7 +16205,7 @@ function UA(t) {
|
|
|
16205
16205
|
/*segmentWidgetPosition*/
|
|
16206
16206
|
he[37]
|
|
16207
16207
|
), /*showAdvancedSettings*/
|
|
16208
|
-
he[46] ? si ? si.p(he, ct) : (si = Na(he), si.c(), si.m(e, io)) : si && (si.d(1), si = null), jn === (jn = No(he)) && Bi ? Bi.p(he, ct) : (Bi.d(1), Bi = jn(he), Bi && (Bi.c(), Bi.m(
|
|
16208
|
+
he[46] ? si ? si.p(he, ct) : (si = Na(he), si.c(), si.m(e, io)) : si && (si.d(1), si = null), jn === (jn = No(he)) && Bi ? Bi.p(he, ct) : (Bi.d(1), Bi = jn(he), Bi && (Bi.c(), Bi.m(Ji, no)));
|
|
16209
16209
|
},
|
|
16210
16210
|
i: Q,
|
|
16211
16211
|
o: Q,
|
|
@@ -16216,12 +16216,12 @@ function UA(t) {
|
|
|
16216
16216
|
}
|
|
16217
16217
|
function HA(t, e, i) {
|
|
16218
16218
|
import("./././././././././style.js");
|
|
16219
|
-
let { controlPanel: n } = e, { projectId: o } = e, { contentId: s } = e, { playlistId: l } = e, { sourceId: a } = e, { sourceUrl: r } = e, { showUserInterface: u } = e, { playerStyle: c } = e, { playerTitle: g } = e, { callToAction: f } = e, { skipButtonStyle: A } = e, { playlistStyle: _ } = e, { playlistToggle: k } = e, { mediaSession: w } = e, { content: T } = e, { contentIndex: v } = e, { introsOutros: p } = e, { introsOutrosIndex: z } = e, { adverts: D } = e, { advertIndex: S } = e, { persistentAdImage: P } = e, { persistentIndex:
|
|
16219
|
+
let { controlPanel: n } = e, { projectId: o } = e, { contentId: s } = e, { playlistId: l } = e, { sourceId: a } = e, { sourceUrl: r } = e, { showUserInterface: u } = e, { playerStyle: c } = e, { playerTitle: g } = e, { callToAction: f } = e, { skipButtonStyle: A } = e, { playlistStyle: _ } = e, { playlistToggle: k } = e, { mediaSession: w } = e, { content: T } = e, { contentIndex: v } = e, { introsOutros: p } = e, { introsOutrosIndex: z } = e, { adverts: D } = e, { advertIndex: S } = e, { persistentAdImage: P } = e, { persistentIndex: X } = e, { duration: Y } = e, { currentTime: N } = e, { playbackState: J } = e, { playbackRate: oe } = e, { widgetStyle: le } = e, { widgetPosition: $ } = e, { widgetWidth: te } = e, { widgetMargin: re } = e, { widgetTarget: _e } = e, { textColor: ue } = e, { backgroundColor: Ae } = e, { iconColor: ae } = e, { highlightColor: b } = e, { videoTextColor: C } = e, { videoIconColor: F } = e, { logoIconEnabled: x } = e, { highlightSections: Ve } = e, { clickableSections: Le } = e, { segmentWidgetSections: Ke } = e, { segmentWidgetPosition: j } = e, { advertConsent: me } = e, { analyticsConsent: Ee } = e, { analyticsCustomUrl: Ne } = e, { analyticsTag: Xe } = e, Me = !1;
|
|
16220
16220
|
function Qe() {
|
|
16221
16221
|
c = Et(this), i(6, c);
|
|
16222
16222
|
}
|
|
16223
16223
|
function pe() {
|
|
16224
|
-
|
|
16224
|
+
J = Et(this), i(20, J);
|
|
16225
16225
|
}
|
|
16226
16226
|
function Ye() {
|
|
16227
16227
|
g = this.value, i(7, g);
|
|
@@ -16314,7 +16314,7 @@ function HA(t, e, i) {
|
|
|
16314
16314
|
P = Et(this), i(16, P);
|
|
16315
16315
|
}
|
|
16316
16316
|
function kt() {
|
|
16317
|
-
|
|
16317
|
+
X = Et(this), i(17, X);
|
|
16318
16318
|
}
|
|
16319
16319
|
function qe() {
|
|
16320
16320
|
Y = this.value, i(18, Y);
|
|
@@ -16322,7 +16322,7 @@ function HA(t, e, i) {
|
|
|
16322
16322
|
function yt() {
|
|
16323
16323
|
N = this.value, i(19, N);
|
|
16324
16324
|
}
|
|
16325
|
-
function
|
|
16325
|
+
function Je() {
|
|
16326
16326
|
oe = this.value, i(21, oe);
|
|
16327
16327
|
}
|
|
16328
16328
|
function vt() {
|
|
@@ -16341,11 +16341,11 @@ function HA(t, e, i) {
|
|
|
16341
16341
|
Ne = this.value, i(40, Ne);
|
|
16342
16342
|
}
|
|
16343
16343
|
function H() {
|
|
16344
|
-
|
|
16344
|
+
Xe = this.value, i(41, Xe);
|
|
16345
16345
|
}
|
|
16346
16346
|
const bt = () => i(46, Me = !1), ee = () => i(46, Me = !0), V = () => n.remove();
|
|
16347
16347
|
return t.$$set = (W) => {
|
|
16348
|
-
"controlPanel" in W && i(42, n = W.controlPanel), "projectId" in W && i(0, o = W.projectId), "contentId" in W && i(1, s = W.contentId), "playlistId" in W && i(2, l = W.playlistId), "sourceId" in W && i(3, a = W.sourceId), "sourceUrl" in W && i(4, r = W.sourceUrl), "showUserInterface" in W && i(5, u = W.showUserInterface), "playerStyle" in W && i(6, c = W.playerStyle), "playerTitle" in W && i(7, g = W.playerTitle), "callToAction" in W && i(8, f = W.callToAction), "skipButtonStyle" in W && i(9, A = W.skipButtonStyle), "playlistStyle" in W && i(10, _ = W.playlistStyle), "playlistToggle" in W && i(11, k = W.playlistToggle), "mediaSession" in W && i(12, w = W.mediaSession), "content" in W && i(43, T = W.content), "contentIndex" in W && i(13, v = W.contentIndex), "introsOutros" in W && i(44, p = W.introsOutros), "introsOutrosIndex" in W && i(14, z = W.introsOutrosIndex), "adverts" in W && i(45, D = W.adverts), "advertIndex" in W && i(15, S = W.advertIndex), "persistentAdImage" in W && i(16, P = W.persistentAdImage), "persistentIndex" in W && i(17,
|
|
16348
|
+
"controlPanel" in W && i(42, n = W.controlPanel), "projectId" in W && i(0, o = W.projectId), "contentId" in W && i(1, s = W.contentId), "playlistId" in W && i(2, l = W.playlistId), "sourceId" in W && i(3, a = W.sourceId), "sourceUrl" in W && i(4, r = W.sourceUrl), "showUserInterface" in W && i(5, u = W.showUserInterface), "playerStyle" in W && i(6, c = W.playerStyle), "playerTitle" in W && i(7, g = W.playerTitle), "callToAction" in W && i(8, f = W.callToAction), "skipButtonStyle" in W && i(9, A = W.skipButtonStyle), "playlistStyle" in W && i(10, _ = W.playlistStyle), "playlistToggle" in W && i(11, k = W.playlistToggle), "mediaSession" in W && i(12, w = W.mediaSession), "content" in W && i(43, T = W.content), "contentIndex" in W && i(13, v = W.contentIndex), "introsOutros" in W && i(44, p = W.introsOutros), "introsOutrosIndex" in W && i(14, z = W.introsOutrosIndex), "adverts" in W && i(45, D = W.adverts), "advertIndex" in W && i(15, S = W.advertIndex), "persistentAdImage" in W && i(16, P = W.persistentAdImage), "persistentIndex" in W && i(17, X = W.persistentIndex), "duration" in W && i(18, Y = W.duration), "currentTime" in W && i(19, N = W.currentTime), "playbackState" in W && i(20, J = W.playbackState), "playbackRate" in W && i(21, oe = W.playbackRate), "widgetStyle" in W && i(22, le = W.widgetStyle), "widgetPosition" in W && i(23, $ = W.widgetPosition), "widgetWidth" in W && i(24, te = W.widgetWidth), "widgetMargin" in W && i(25, re = W.widgetMargin), "widgetTarget" in W && i(26, _e = W.widgetTarget), "textColor" in W && i(27, ue = W.textColor), "backgroundColor" in W && i(28, Ae = W.backgroundColor), "iconColor" in W && i(29, ae = W.iconColor), "highlightColor" in W && i(30, b = W.highlightColor), "videoTextColor" in W && i(31, C = W.videoTextColor), "videoIconColor" in W && i(32, F = W.videoIconColor), "logoIconEnabled" in W && i(33, x = W.logoIconEnabled), "highlightSections" in W && i(34, Ve = W.highlightSections), "clickableSections" in W && i(35, Le = W.clickableSections), "segmentWidgetSections" in W && i(36, Ke = W.segmentWidgetSections), "segmentWidgetPosition" in W && i(37, j = W.segmentWidgetPosition), "advertConsent" in W && i(38, me = W.advertConsent), "analyticsConsent" in W && i(39, Ee = W.analyticsConsent), "analyticsCustomUrl" in W && i(40, Ne = W.analyticsCustomUrl), "analyticsTag" in W && i(41, Xe = W.analyticsTag);
|
|
16349
16349
|
}, [
|
|
16350
16350
|
o,
|
|
16351
16351
|
s,
|
|
@@ -16364,10 +16364,10 @@ function HA(t, e, i) {
|
|
|
16364
16364
|
z,
|
|
16365
16365
|
S,
|
|
16366
16366
|
P,
|
|
16367
|
-
|
|
16367
|
+
X,
|
|
16368
16368
|
Y,
|
|
16369
16369
|
N,
|
|
16370
|
-
|
|
16370
|
+
J,
|
|
16371
16371
|
oe,
|
|
16372
16372
|
le,
|
|
16373
16373
|
$,
|
|
@@ -16388,7 +16388,7 @@ function HA(t, e, i) {
|
|
|
16388
16388
|
me,
|
|
16389
16389
|
Ee,
|
|
16390
16390
|
Ne,
|
|
16391
|
-
|
|
16391
|
+
Xe,
|
|
16392
16392
|
n,
|
|
16393
16393
|
T,
|
|
16394
16394
|
p,
|
|
@@ -16429,7 +16429,7 @@ function HA(t, e, i) {
|
|
|
16429
16429
|
kt,
|
|
16430
16430
|
qe,
|
|
16431
16431
|
yt,
|
|
16432
|
-
|
|
16432
|
+
Je,
|
|
16433
16433
|
vt,
|
|
16434
16434
|
lt,
|
|
16435
16435
|
Ze,
|
|
@@ -16786,8 +16786,8 @@ const YA = (t, e, i) => {
|
|
|
16786
16786
|
});
|
|
16787
16787
|
}, ZA = (t, e, i, n, o) => () => {
|
|
16788
16788
|
const s = document.createElement("canvas"), l = s.getContext("2d");
|
|
16789
|
-
s.width = e, s.height = i, l.drawImage(t, 0, 0, e, i), s.toBlob(
|
|
16790
|
-
}, Yn = {},
|
|
16789
|
+
s.width = e, s.height = i, l.drawImage(t, 0, 0, e, i), s.toBlob(XA(t, e, i, n, o));
|
|
16790
|
+
}, Yn = {}, XA = (t, e, i, n, o) => (s) => {
|
|
16791
16791
|
var a;
|
|
16792
16792
|
s || o();
|
|
16793
16793
|
const l = URL.createObjectURL(s);
|
|
@@ -16798,7 +16798,7 @@ const YA = (t, e, i) => {
|
|
|
16798
16798
|
t = yield t;
|
|
16799
16799
|
const n = t.innerHTML;
|
|
16800
16800
|
return { src: `data:image/svg+xml,${encodeURIComponent(n)}`, sizes: `${e}x${i}`, type: "image/svg+xml" };
|
|
16801
|
-
}),
|
|
16801
|
+
}), JA = (t, e, i) => Yt(t, e, i, 1), QA = (t, e, i) => Ce(t, e, e === "style" ? e3(i) : i), $A = /;(?!([^()]*\([^()]*\))*[^()]*\))/, e3 = (t) => t.split($A).filter((e) => e).map((e) => e + " !important").join(";");
|
|
16802
16802
|
function Ha(t, e, i) {
|
|
16803
16803
|
const n = t.slice();
|
|
16804
16804
|
return n[41] = e[i], n[42] = e, n[43] = i, n;
|
|
@@ -16834,7 +16834,7 @@ function qa(t) {
|
|
|
16834
16834
|
);
|
|
16835
16835
|
return {
|
|
16836
16836
|
c() {
|
|
16837
|
-
e = y("div"), fe(i.$$.fragment), n = G(),
|
|
16837
|
+
e = y("div"), fe(i.$$.fragment), n = G(), JA(e, "display", "none");
|
|
16838
16838
|
},
|
|
16839
16839
|
m(r, u) {
|
|
16840
16840
|
E(r, e, u), ce(i, e, null), m(e, n), l(), s = !0;
|
|
@@ -16920,7 +16920,7 @@ function t3(t) {
|
|
|
16920
16920
|
};
|
|
16921
16921
|
}
|
|
16922
16922
|
function i3(t, e, i) {
|
|
16923
|
-
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P,
|
|
16923
|
+
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P, X;
|
|
16924
16924
|
const Y = [96, 128, 192, 256, 384, 512], N = [
|
|
16925
16925
|
"hangup",
|
|
16926
16926
|
"nextslide",
|
|
@@ -16937,7 +16937,7 @@ function i3(t, e, i) {
|
|
|
16937
16937
|
"togglecamera",
|
|
16938
16938
|
"togglemicrophone"
|
|
16939
16939
|
];
|
|
16940
|
-
let { content:
|
|
16940
|
+
let { content: J = [] } = e, { contentIndex: oe = 0 } = e, { activeAdvert: le = void 0 } = e, { persistentAdvert: $ = void 0 } = e, { companionAdvert: te = void 0 } = e, { duration: re = 0 } = e, { playbackState: _e = "stopped" } = e, { skipButtonStyle: ue = "auto" } = e, { backgroundColor: Ae = "#f5f5f5" } = e, { iconColor: ae = "black" } = e, { onEvent: b = () => {
|
|
16941
16941
|
} } = e, C = [], F = /* @__PURE__ */ new Set(), x = Y.map(() => {
|
|
16942
16942
|
}), Ve = Y.map(() => {
|
|
16943
16943
|
});
|
|
@@ -16948,14 +16948,14 @@ function i3(t, e, i) {
|
|
|
16948
16948
|
});
|
|
16949
16949
|
}
|
|
16950
16950
|
return t.$$set = (j) => {
|
|
16951
|
-
"content" in j && i(4,
|
|
16951
|
+
"content" in j && i(4, J = j.content), "contentIndex" in j && i(5, oe = j.contentIndex), "activeAdvert" in j && i(6, le = j.activeAdvert), "persistentAdvert" in j && i(7, $ = j.persistentAdvert), "companionAdvert" in j && i(8, te = j.companionAdvert), "duration" in j && i(9, re = j.duration), "playbackState" in j && i(10, _e = j.playbackState), "skipButtonStyle" in j && i(11, ue = j.skipButtonStyle), "backgroundColor" in j && i(12, Ae = j.backgroundColor), "iconColor" in j && i(13, ae = j.iconColor), "onEvent" in j && i(14, b = j.onEvent);
|
|
16952
16952
|
}, t.$$.update = () => {
|
|
16953
16953
|
t.$$.dirty[0] & /*playbackState*/
|
|
16954
16954
|
1024 && i(34, n = _e === "stopped"), t.$$.dirty[0] & /*activeAdvert*/
|
|
16955
16955
|
64 | t.$$.dirty[1] & /*isStopped*/
|
|
16956
16956
|
8 && i(36, o = le && !n), t.$$.dirty[0] & /*content*/
|
|
16957
|
-
16 && i(37, s =
|
|
16958
|
-
48 && i(28, l =
|
|
16957
|
+
16 && i(37, s = J.length > 1), t.$$.dirty[0] & /*content, contentIndex*/
|
|
16958
|
+
48 && i(28, l = J[oe]), t.$$.dirty[0] & /*skipButtonStyle*/
|
|
16959
16959
|
2048 | t.$$.dirty[1] & /*isPlaylist*/
|
|
16960
16960
|
64 && i(20, a = ue === "auto" ? s ? "tracks" : "segments" : ue), t.$$.dirty[0] & /*skipStyle*/
|
|
16961
16961
|
1048576 && i(22, r = parseFloat(a.split("-")[1] || 10)), t.$$.dirty[0] & /*skipStyle, backwardsSeconds*/
|
|
@@ -16982,7 +16982,7 @@ function i3(t, e, i) {
|
|
|
16982
16982
|
3 && i(27, D = Promise.all([...v, ...p, ...z])), t.$$.dirty[0] & /*contentItem*/
|
|
16983
16983
|
268435456 && i(26, S = (l == null ? void 0 : l.title) || ""), t.$$.dirty[0] & /*artworks*/
|
|
16984
16984
|
134217728 && D.then((j) => i(15, C = j)).catch(Le), t.$$.dirty[0] & /*title, artist, album, artwork*/
|
|
16985
|
-
117473280 && (navigator.mediaSession.metadata = new MediaMetadata({ title: S, artist: P, album:
|
|
16985
|
+
117473280 && (navigator.mediaSession.metadata = new MediaMetadata({ title: S, artist: P, album: X, artwork: C })), t.$$.dirty[0] & /*onEvent*/
|
|
16986
16986
|
16384 && navigator.mediaSession.setActionHandler("play", () => {
|
|
16987
16987
|
b(be({
|
|
16988
16988
|
type: "PressedPlay",
|
|
@@ -17043,7 +17043,7 @@ function i3(t, e, i) {
|
|
|
17043
17043
|
initiatedBy: "media-session-api"
|
|
17044
17044
|
}));
|
|
17045
17045
|
} : null);
|
|
17046
|
-
}, i(25, P = ""), i(24,
|
|
17046
|
+
}, i(25, P = ""), i(24, X = ""), navigator.mediaSession.setByPlayer = !0, N.forEach((j) => {
|
|
17047
17047
|
try {
|
|
17048
17048
|
navigator.mediaSession.setActionHandler(j, null);
|
|
17049
17049
|
} catch (me) {
|
|
@@ -17053,7 +17053,7 @@ function i3(t, e, i) {
|
|
|
17053
17053
|
_,
|
|
17054
17054
|
A,
|
|
17055
17055
|
Y,
|
|
17056
|
-
|
|
17056
|
+
J,
|
|
17057
17057
|
oe,
|
|
17058
17058
|
le,
|
|
17059
17059
|
$,
|
|
@@ -17073,7 +17073,7 @@ function i3(t, e, i) {
|
|
|
17073
17073
|
c,
|
|
17074
17074
|
r,
|
|
17075
17075
|
f,
|
|
17076
|
-
|
|
17076
|
+
X,
|
|
17077
17077
|
P,
|
|
17078
17078
|
S,
|
|
17079
17079
|
D,
|
|
@@ -17243,13 +17243,13 @@ class r3 extends Te {
|
|
|
17243
17243
|
this.$$set({ analyticsTag: e }), d();
|
|
17244
17244
|
}
|
|
17245
17245
|
}
|
|
17246
|
-
const
|
|
17246
|
+
const Xa = (t, e, i) => Ce(t, e, e === "style" ? c3(i) : i), u3 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, c3 = (t) => t.split(u3).filter((e) => e).map((e) => e + " !important").join(";");
|
|
17247
17247
|
function Ka(t) {
|
|
17248
17248
|
let e, i;
|
|
17249
17249
|
return {
|
|
17250
17250
|
c() {
|
|
17251
17251
|
e = y("script"), e.async = !0, Di(e.src, i = "https://geo.ads.audio.thisisdax.com/bulk_sync.js?cb=" + /*cacheBuster*/
|
|
17252
|
-
t[0]) ||
|
|
17252
|
+
t[0]) || Xa(e, "src", i);
|
|
17253
17253
|
},
|
|
17254
17254
|
m(n, o) {
|
|
17255
17255
|
E(n, e, o);
|
|
@@ -17257,7 +17257,7 @@ function Ka(t) {
|
|
|
17257
17257
|
p(n, o) {
|
|
17258
17258
|
o & /*cacheBuster*/
|
|
17259
17259
|
1 && !Di(e.src, i = "https://geo.ads.audio.thisisdax.com/bulk_sync.js?cb=" + /*cacheBuster*/
|
|
17260
|
-
n[0]) &&
|
|
17260
|
+
n[0]) && Xa(e, "src", i);
|
|
17261
17261
|
},
|
|
17262
17262
|
d(n) {
|
|
17263
17263
|
n && M(e);
|
|
@@ -17380,8 +17380,8 @@ const hl = (t, e) => {
|
|
|
17380
17380
|
return;
|
|
17381
17381
|
const o = [...t.classList].filter((s) => !e.includes(s)).some((s) => s.startsWith("beyondwords-")) ? e.filter((s) => s !== "bwp") : e;
|
|
17382
17382
|
t.classList.remove(...o);
|
|
17383
|
-
}, Ga = (t, e, i) => ["beyondwords-widget", "bwp", `id-${t}`, `position-${e}`, `for-${i}-player`],
|
|
17384
|
-
var ko, vs,
|
|
17383
|
+
}, Ga = (t, e, i) => ["beyondwords-widget", "bwp", `id-${t}`, `position-${e}`, `for-${i}-player`], Ja = ["beyondwords-relative", "bwp"];
|
|
17384
|
+
var ko, vs, Xr, bs, Kr, ks, Gr;
|
|
17385
17385
|
const on = class on {
|
|
17386
17386
|
constructor(e) {
|
|
17387
17387
|
// Add the container next to the first DOM node that matches the segment's
|
|
@@ -17401,10 +17401,10 @@ const on = class on {
|
|
|
17401
17401
|
this.update(null, "none");
|
|
17402
17402
|
}
|
|
17403
17403
|
};
|
|
17404
|
-
ko = new WeakMap(), vs = new WeakSet(),
|
|
17404
|
+
ko = new WeakMap(), vs = new WeakSet(), Xr = function(e, i, n, o, s) {
|
|
17405
17405
|
var c;
|
|
17406
17406
|
const l = U(c = i, ks, Gr).call(c, n);
|
|
17407
|
-
["2-oclock", "3-oclock", "4-oclock", "8-oclock", "9-oclock", "10-oclock"].includes(o) && l.classList.add(...
|
|
17407
|
+
["2-oclock", "3-oclock", "4-oclock", "8-oclock", "9-oclock", "10-oclock"].includes(o) && l.classList.add(...Ja);
|
|
17408
17408
|
const r = document.createElement("div");
|
|
17409
17409
|
r.classList.add(...Ga(e, o, s)), ["11-oclock", "12-oclock", "1-oclock"].includes(o) ? l.insertBefore(r, l.firstChild) : l.appendChild(r), i.containers.push(r), i.onUpdate(i.containers);
|
|
17410
17410
|
}, bs = new WeakSet(), Kr = function(e, i, n, o, s) {
|
|
@@ -17413,7 +17413,7 @@ ko = new WeakMap(), vs = new WeakSet(), Jr = function(e, i, n, o, s) {
|
|
|
17413
17413
|
if (!l.every((c) => i.containers[a].classList.contains(c)))
|
|
17414
17414
|
continue;
|
|
17415
17415
|
const u = i.containers[a].parentNode;
|
|
17416
|
-
hl(u,
|
|
17416
|
+
hl(u, Ja), i.containers[a].remove(), i.containers.splice(a, 1), a -= 1;
|
|
17417
17417
|
}
|
|
17418
17418
|
i.onUpdate(i.containers);
|
|
17419
17419
|
}, ks = new WeakSet(), Gr = function(e) {
|
|
@@ -17425,10 +17425,10 @@ ko = new WeakMap(), vs = new WeakSet(), Jr = function(e, i, n, o, s) {
|
|
|
17425
17425
|
o = document.querySelectorAll(r);
|
|
17426
17426
|
}
|
|
17427
17427
|
return o.length > 0 ? o[0] : e.segmentElement;
|
|
17428
|
-
}, Be(on, vs), Be(on, bs), Be(on, ko, new Ml(U(on, vs,
|
|
17428
|
+
}, Be(on, vs), Be(on, bs), Be(on, ko, new Ml(U(on, vs, Xr), U(on, bs, Kr)));
|
|
17429
17429
|
let _l = on;
|
|
17430
17430
|
const Qa = (t) => ["beyondwords-highlight", "bwp", `id-${t}`];
|
|
17431
|
-
var po, ps,
|
|
17431
|
+
var po, ps, Jr, Ss, Qr, So, yl;
|
|
17432
17432
|
const sn = class sn {
|
|
17433
17433
|
constructor() {
|
|
17434
17434
|
// Highlight the segmentElement and all DOM nodes with the same marker. There
|
|
@@ -17443,7 +17443,7 @@ const sn = class sn {
|
|
|
17443
17443
|
a && ji(sn, po).addInterest(a, this, this, i, o), l && ji(sn, po).removeInterest(l, this), this[`prev${e}`] = a;
|
|
17444
17444
|
}
|
|
17445
17445
|
};
|
|
17446
|
-
po = new WeakMap(), ps = new WeakSet(),
|
|
17446
|
+
po = new WeakMap(), ps = new WeakSet(), Jr = function(e, i, n, o) {
|
|
17447
17447
|
var s;
|
|
17448
17448
|
for (const l of U(s = i, So, yl).call(s, n)) {
|
|
17449
17449
|
const a = document.createTreeWalker(l, NodeFilter.SHOW_TEXT, null, !1);
|
|
@@ -17473,7 +17473,7 @@ po = new WeakMap(), ps = new WeakSet(), Xr = function(e, i, n, o) {
|
|
|
17473
17473
|
i.add(r);
|
|
17474
17474
|
}
|
|
17475
17475
|
return i;
|
|
17476
|
-
}, Be(sn, ps), Be(sn, Ss), Be(sn, po, new Ml(U(sn, ps,
|
|
17476
|
+
}, Be(sn, ps), Be(sn, Ss), Be(sn, po, new Ml(U(sn, ps, Jr), U(sn, Ss, Qr)));
|
|
17477
17477
|
let Al = sn;
|
|
17478
17478
|
const h3 = () => be({
|
|
17479
17479
|
type: "IdentifiersChanged",
|
|
@@ -18412,8 +18412,8 @@ function nr(t) {
|
|
|
18412
18412
|
};
|
|
18413
18413
|
}
|
|
18414
18414
|
function I3(t) {
|
|
18415
|
-
let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P,
|
|
18416
|
-
function
|
|
18415
|
+
let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P, X, Y, N, J, oe, le, $, te, re, _e, ue, Ae, ae, b, C, F, x, Ve, Le, Ke, j, me, Ee, Ne;
|
|
18416
|
+
function Xe(V) {
|
|
18417
18417
|
t[131](V);
|
|
18418
18418
|
}
|
|
18419
18419
|
function Me(V) {
|
|
@@ -18524,7 +18524,7 @@ function I3(t) {
|
|
|
18524
18524
|
function yt(V) {
|
|
18525
18525
|
t[167](V);
|
|
18526
18526
|
}
|
|
18527
|
-
function
|
|
18527
|
+
function Je(V) {
|
|
18528
18528
|
t[168](V);
|
|
18529
18529
|
}
|
|
18530
18530
|
function vt(V) {
|
|
@@ -18653,7 +18653,7 @@ function I3(t) {
|
|
|
18653
18653
|
t[45] !== void 0 && (ee.analyticsCustomUrl = /*analyticsCustomUrl*/
|
|
18654
18654
|
t[45]), /*analyticsTag*/
|
|
18655
18655
|
t[46] !== void 0 && (ee.analyticsTag = /*analyticsTag*/
|
|
18656
|
-
t[46]), e = new qA({ props: ee }), se.push(() => ve(e, "controlPanel",
|
|
18656
|
+
t[46]), e = new qA({ props: ee }), se.push(() => ve(e, "controlPanel", Xe)), se.push(() => ve(e, "projectId", Me)), se.push(() => ve(e, "contentId", Qe)), se.push(() => ve(e, "playlistId", pe)), se.push(() => ve(e, "sourceId", Ye)), se.push(() => ve(e, "sourceUrl", Pe)), se.push(() => ve(e, "showUserInterface", jt)), se.push(() => ve(e, "playerStyle", Oe)), se.push(() => ve(e, "playerTitle", je)), se.push(() => ve(e, "callToAction", ze)), se.push(() => ve(e, "skipButtonStyle", at)), se.push(() => ve(e, "playlistStyle", xt)), se.push(() => ve(e, "playlistToggle", Re)), se.push(() => ve(e, "mediaSession", ht)), se.push(() => ve(e, "contentIndex", He)), se.push(() => ve(e, "introsOutrosIndex", et)), se.push(() => ve(e, "advertIndex", tt)), se.push(() => ve(e, "persistentAdImage", gt)), se.push(() => ve(e, "persistentIndex", Ie)), se.push(() => ve(e, "duration", _t)), se.push(() => ve(e, "currentTime", Ge)), se.push(() => ve(e, "playbackState", Ct)), se.push(() => ve(e, "playbackRate", it)), se.push(() => ve(e, "widgetStyle", $e)), se.push(() => ve(e, "widgetPosition", rt)), se.push(() => ve(e, "widgetWidth", ut)), se.push(() => ve(e, "widgetMargin", It)), se.push(() => ve(e, "widgetTarget", At)), se.push(() => ve(e, "textColor", St)), se.push(() => ve(e, "backgroundColor", Vt)), se.push(() => ve(e, "iconColor", nt)), se.push(() => ve(e, "highlightColor", ot)), se.push(() => ve(e, "videoTextColor", Bt)), se.push(() => ve(e, "videoIconColor", st)), se.push(() => ve(e, "logoIconEnabled", kt)), se.push(() => ve(e, "highlightSections", qe)), se.push(() => ve(e, "clickableSections", yt)), se.push(() => ve(e, "segmentWidgetSections", Je)), se.push(() => ve(e, "segmentWidgetPosition", vt)), se.push(() => ve(e, "currentSegment", lt)), se.push(() => ve(e, "hoveredSegment", Ze)), se.push(() => ve(e, "advertConsent", ft)), se.push(() => ve(e, "analyticsConsent", Mt)), se.push(() => ve(e, "analyticsCustomUrl", H)), se.push(() => ve(e, "analyticsTag", bt)), {
|
|
18657
18657
|
c() {
|
|
18658
18658
|
fe(e.$$.fragment);
|
|
18659
18659
|
},
|
|
@@ -18712,15 +18712,15 @@ function I3(t) {
|
|
|
18712
18712
|
2048 && (S = !0, B.currentTime = /*currentTime*/
|
|
18713
18713
|
V[11], ye(() => S = !1)), !P && W[0] & /*playbackState*/
|
|
18714
18714
|
4096 && (P = !0, B.playbackState = /*playbackState*/
|
|
18715
|
-
V[12], ye(() => P = !1)), !
|
|
18716
|
-
8 && (
|
|
18717
|
-
V[34], ye(() =>
|
|
18715
|
+
V[12], ye(() => P = !1)), !X && W[1] & /*playbackRate*/
|
|
18716
|
+
8 && (X = !0, B.playbackRate = /*playbackRate*/
|
|
18717
|
+
V[34], ye(() => X = !1)), !Y && W[0] & /*widgetStyle*/
|
|
18718
18718
|
8192 && (Y = !0, B.widgetStyle = /*widgetStyle*/
|
|
18719
18719
|
V[13], ye(() => Y = !1)), !N && W[1] & /*widgetPosition*/
|
|
18720
18720
|
16 && (N = !0, B.widgetPosition = /*widgetPosition*/
|
|
18721
|
-
V[35], ye(() => N = !1)), !
|
|
18722
|
-
32 && (
|
|
18723
|
-
V[36], ye(() =>
|
|
18721
|
+
V[35], ye(() => N = !1)), !J && W[1] & /*widgetWidth*/
|
|
18722
|
+
32 && (J = !0, B.widgetWidth = /*widgetWidth*/
|
|
18723
|
+
V[36], ye(() => J = !1)), !oe && W[1] & /*widgetMargin*/
|
|
18724
18724
|
64 && (oe = !0, B.widgetMargin = /*widgetMargin*/
|
|
18725
18725
|
V[37], ye(() => oe = !1)), !le && W[0] & /*widgetTarget*/
|
|
18726
18726
|
16384 && (le = !0, B.widgetTarget = /*widgetTarget*/
|
|
@@ -18942,8 +18942,8 @@ function V3(t) {
|
|
|
18942
18942
|
S[178]
|
|
18943
18943
|
);
|
|
18944
18944
|
for (let S = 0; S < w.length; S += 1) {
|
|
18945
|
-
let P = $a(t, w, S),
|
|
18946
|
-
l.set(
|
|
18945
|
+
let P = $a(t, w, S), X = T(P);
|
|
18946
|
+
l.set(X, s[S] = ir(X, P));
|
|
18947
18947
|
}
|
|
18948
18948
|
let v = (
|
|
18949
18949
|
/*controlPanel*/
|
|
@@ -18967,19 +18967,19 @@ function V3(t) {
|
|
|
18967
18967
|
},
|
|
18968
18968
|
m(S, P) {
|
|
18969
18969
|
ce(e, S, P), E(S, i, P), _ && _.m(S, P), E(S, n, P), k && k.m(S, P), E(S, o, P);
|
|
18970
|
-
for (let
|
|
18971
|
-
s[
|
|
18970
|
+
for (let X = 0; X < s.length; X += 1)
|
|
18971
|
+
s[X] && s[X].m(S, P);
|
|
18972
18972
|
E(S, a, P), v && v.m(S, P), E(S, r, P), p && p.m(S, P), E(S, u, P), z && z.m(S, P), E(S, c, P), D && D.m(S, P), E(S, g, P), ce(f, S, P), A = !0;
|
|
18973
18973
|
},
|
|
18974
18974
|
p(S, P) {
|
|
18975
|
-
const
|
|
18975
|
+
const X = {};
|
|
18976
18976
|
P[2] & /*videoRoot*/
|
|
18977
|
-
32768 && (
|
|
18977
|
+
32768 && (X.root = /*videoRoot*/
|
|
18978
18978
|
S[77]), P[0] & /*contentIndex, contentVariant, advertConsent, projectId, playlistId, showUserInterface, widgetTarget, playbackState, currentTime, metadataLoaded*/
|
|
18979
18979
|
54548645 | P[1] & /*content, platform, widgetPosition, widgetWidth, widgetMargin, mediaElement, duration, playbackRate, prevPercentage*/
|
|
18980
18980
|
1078526076 | P[2] & /*introOrOutro, preloadAdvert, activeAdvert, maxImageSize, contentItem, contentLanguage, vendorIdentifier, bundleIdentifier, videoBehindWidget, videoBehindStatic, videoMightBeShown*/
|
|
18981
18981
|
4787911 | P[5] & /*$$scope*/
|
|
18982
|
-
67108864 && (
|
|
18982
|
+
67108864 && (X.$$scope = { dirty: P, ctx: S }), e.$set(X), /*showStaticInterface*/
|
|
18983
18983
|
S[80] ? _ ? (_.p(S, P), P[2] & /*showStaticInterface*/
|
|
18984
18984
|
262144 && I(_, 1)) : (_ = er(S), _.c(), I(_, 1), _.m(n.parentNode, n)) : _ && (Fe(), L(_, 1, 1, () => {
|
|
18985
18985
|
_ = null;
|
|
@@ -19034,11 +19034,11 @@ function V3(t) {
|
|
|
19034
19034
|
};
|
|
19035
19035
|
}
|
|
19036
19036
|
function B3(t, e, i) {
|
|
19037
|
-
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P,
|
|
19037
|
+
let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, z, D, S, P, X, Y, N, J, oe, le, $, te, { playerApiUrl: re = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: _e = void 0 } = e, { contentId: ue = void 0 } = e, { playlistId: Ae = void 0 } = e, { sourceId: ae = void 0 } = e, { sourceUrl: b = void 0 } = e, { playlist: C = [] } = e, { loadContentAs: F = ["article"] } = e, { contentVariant: x = F[0] } = e, { clientSideEnabled: Ve = !1 } = e, { showUserInterface: Le = !0 } = e, { showBottomWidget: Ke = !1 } = e, { playerStyle: j = "standard" } = e, { playerTitle: me = void 0 } = e, { callToAction: Ee = void 0 } = e, { skipButtonStyle: Ne = "auto" } = e, { playlistStyle: Xe = "auto-5-4" } = e, { playlistToggle: Me = "auto" } = e, { downloadFormats: Qe = [] } = e, { mediaSession: pe = "auto" } = e, { content: Ye = [] } = e, { contentIndex: Pe = 0 } = e, { introsOutros: jt = [] } = e, { introsOutrosIndex: Oe = -1 } = e, { adverts: je = [] } = e, { advertIndex: ze = -1 } = e, { preloadAdvertIndex: at = -1 } = e, { minDurationForMidroll: xt = 2 * 60 } = e, { minTimeUntilEndForMidroll: Re = 10 } = e, { persistentAdImage: ht = !1 } = e, { persistentIndex: He = -1 } = e, { duration: et = 0 } = e, { currentTime: tt = 0 } = e, { playbackState: gt = "stopped" } = e, { playbackRate: Ie = 1 } = e, { playbackRates: _t = [0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 2, 2.5, 3] } = e, { widgetStyle: Ge = "standard" } = e, { widgetPosition: Ct = "auto" } = e, { widgetWidth: it = "auto" } = e, { widgetMargin: $e = "16px" } = e, { widgetTarget: rt = void 0 } = e, { textColor: ut = "#111" } = e, { backgroundColor: It = "#f5f5f5" } = e, { iconColor: At = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: St = "#eee" } = e, { videoTextColor: Vt = "white" } = e, { videoBackgroundColor: nt = "black" } = e, { videoIconColor: ot = "white" } = e, { logoIconEnabled: Bt = !0 } = e, { highlightSections: st = "all" } = e, { clickableSections: kt = "all" } = e, { segmentWidgetSections: qe = "body" } = e, { segmentWidgetPosition: yt = "7-oclock" } = e, { currentSegment: Je = void 0 } = e, { hoveredSegment: vt = void 0 } = e, { loadedMedia: lt = void 0 } = e, { previewToken: Ze = void 0 } = e, { advertConsent: ft = "personalized" } = e, { analyticsConsent: Mt = "allowed" } = e, { analyticsCustomUrl: H = void 0 } = e, { analyticsDeviceType: bt = "auto" } = e, { analyticsTag: ee = void 0 } = e, { captureErrors: V = !0 } = e, { onError: W = () => {
|
|
19038
19038
|
} } = e, { transitions: B = [] } = e, { controlPanel: ti = void 0 } = e;
|
|
19039
19039
|
const ri = (...h) => Ft.addEventListener(...h), Cn = (...h) => Ft.removeEventListener(...h);
|
|
19040
19040
|
let { initialProps: Wt = {} } = e, { showMediaSession: Pi = !1 } = e, { metadataLoaded: Ut = !1 } = e, { isFullScreen: gi = !1 } = e, { mediaElement: Ht = void 0 } = e, { userInterface: fi = void 0 } = e, { widgetInterface: bi = void 0 } = e, { controller: Ft = void 0 } = e, { logoImagePosition: ii = void 0 } = e, { analyticsUrl: Ci = void 0 } = e, { analyticsId: zi = void 0 } = e, { platform: ui = "web" } = e, { vendorIdentifier: Dt = void 0 } = e, { bundleIdentifier: Ii = void 0 } = e, { contentLanguage: ni = "en" } = e, { listenSessionId: wt = void 0 } = e, { sessionCreatedAt: oi = void 0 } = e, { companionAdvert: Tt = void 0 } = e, { isNewListen: Vi = !1 } = e, { prevPercentage: pt = 0 } = e, { segmentWidgets: R = [] } = e, { segmentContainers: K = new _l((h) => i(51, R = h)) } = e, { segmentClickables: ge = new ml() } = e, { segmentHighlights: Nt = new Al() } = e;
|
|
19041
|
-
const Ni = (h) => Ft.processEvent(
|
|
19041
|
+
const Ni = (h) => Ft.processEvent(Xt({ emittedFrom: D }, h)), cn = () => i(112, N = vt);
|
|
19042
19042
|
function dn(h) {
|
|
19043
19043
|
se[h ? "unshift" : "push"](() => {
|
|
19044
19044
|
Ht = h, i(47, Ht);
|
|
@@ -19072,7 +19072,7 @@ function B3(t, e, i) {
|
|
|
19072
19072
|
bi = h, i(49, bi);
|
|
19073
19073
|
});
|
|
19074
19074
|
}
|
|
19075
|
-
const _n = (h) => Ni($i(
|
|
19075
|
+
const _n = (h) => Ni($i(Xt({}, h), {
|
|
19076
19076
|
emittedFrom: "segment-widget",
|
|
19077
19077
|
widgetSegment: le,
|
|
19078
19078
|
widgetIsCurrent: $
|
|
@@ -19101,7 +19101,7 @@ function B3(t, e, i) {
|
|
|
19101
19101
|
function xo(h) {
|
|
19102
19102
|
j = h, i(6, j);
|
|
19103
19103
|
}
|
|
19104
|
-
function
|
|
19104
|
+
function Ji(h) {
|
|
19105
19105
|
me = h, i(26, me);
|
|
19106
19106
|
}
|
|
19107
19107
|
function no(h) {
|
|
@@ -19111,7 +19111,7 @@ function B3(t, e, i) {
|
|
|
19111
19111
|
Ne = h, i(28, Ne);
|
|
19112
19112
|
}
|
|
19113
19113
|
function oo(h) {
|
|
19114
|
-
|
|
19114
|
+
Xe = h, i(29, Xe);
|
|
19115
19115
|
}
|
|
19116
19116
|
function Do(h) {
|
|
19117
19117
|
Me = h, i(30, Me);
|
|
@@ -19195,7 +19195,7 @@ function B3(t, e, i) {
|
|
|
19195
19195
|
yt = h, i(19, yt);
|
|
19196
19196
|
}
|
|
19197
19197
|
function Du(h) {
|
|
19198
|
-
|
|
19198
|
+
Je = h, i(20, Je);
|
|
19199
19199
|
}
|
|
19200
19200
|
function Nu(h) {
|
|
19201
19201
|
vt = h, i(21, vt);
|
|
@@ -19213,7 +19213,7 @@ function B3(t, e, i) {
|
|
|
19213
19213
|
ee = h, i(46, ee);
|
|
19214
19214
|
}
|
|
19215
19215
|
return t.$$set = (h) => {
|
|
19216
|
-
"playerApiUrl" in h && i(85, re = h.playerApiUrl), "projectId" in h && i(0, _e = h.projectId), "contentId" in h && i(1, ue = h.contentId), "playlistId" in h && i(2, Ae = h.playlistId), "sourceId" in h && i(3, ae = h.sourceId), "sourceUrl" in h && i(4, b = h.sourceUrl), "playlist" in h && i(86, C = h.playlist), "loadContentAs" in h && i(87, F = h.loadContentAs), "contentVariant" in h && i(25, x = h.contentVariant), "clientSideEnabled" in h && i(88, Ve = h.clientSideEnabled), "showUserInterface" in h && i(5, Le = h.showUserInterface), "showBottomWidget" in h && i(89, Ke = h.showBottomWidget), "playerStyle" in h && i(6, j = h.playerStyle), "playerTitle" in h && i(26, me = h.playerTitle), "callToAction" in h && i(27, Ee = h.callToAction), "skipButtonStyle" in h && i(28, Ne = h.skipButtonStyle), "playlistStyle" in h && i(29,
|
|
19216
|
+
"playerApiUrl" in h && i(85, re = h.playerApiUrl), "projectId" in h && i(0, _e = h.projectId), "contentId" in h && i(1, ue = h.contentId), "playlistId" in h && i(2, Ae = h.playlistId), "sourceId" in h && i(3, ae = h.sourceId), "sourceUrl" in h && i(4, b = h.sourceUrl), "playlist" in h && i(86, C = h.playlist), "loadContentAs" in h && i(87, F = h.loadContentAs), "contentVariant" in h && i(25, x = h.contentVariant), "clientSideEnabled" in h && i(88, Ve = h.clientSideEnabled), "showUserInterface" in h && i(5, Le = h.showUserInterface), "showBottomWidget" in h && i(89, Ke = h.showBottomWidget), "playerStyle" in h && i(6, j = h.playerStyle), "playerTitle" in h && i(26, me = h.playerTitle), "callToAction" in h && i(27, Ee = h.callToAction), "skipButtonStyle" in h && i(28, Ne = h.skipButtonStyle), "playlistStyle" in h && i(29, Xe = h.playlistStyle), "playlistToggle" in h && i(30, Me = h.playlistToggle), "downloadFormats" in h && i(52, Qe = h.downloadFormats), "mediaSession" in h && i(31, pe = h.mediaSession), "content" in h && i(53, Ye = h.content), "contentIndex" in h && i(7, Pe = h.contentIndex), "introsOutros" in h && i(54, jt = h.introsOutros), "introsOutrosIndex" in h && i(8, Oe = h.introsOutrosIndex), "adverts" in h && i(55, je = h.adverts), "advertIndex" in h && i(9, ze = h.advertIndex), "preloadAdvertIndex" in h && i(90, at = h.preloadAdvertIndex), "minDurationForMidroll" in h && i(91, xt = h.minDurationForMidroll), "minTimeUntilEndForMidroll" in h && i(92, Re = h.minTimeUntilEndForMidroll), "persistentAdImage" in h && i(32, ht = h.persistentAdImage), "persistentIndex" in h && i(10, He = h.persistentIndex), "duration" in h && i(33, et = h.duration), "currentTime" in h && i(11, tt = h.currentTime), "playbackState" in h && i(12, gt = h.playbackState), "playbackRate" in h && i(34, Ie = h.playbackRate), "playbackRates" in h && i(56, _t = h.playbackRates), "widgetStyle" in h && i(13, Ge = h.widgetStyle), "widgetPosition" in h && i(35, Ct = h.widgetPosition), "widgetWidth" in h && i(36, it = h.widgetWidth), "widgetMargin" in h && i(37, $e = h.widgetMargin), "widgetTarget" in h && i(14, rt = h.widgetTarget), "textColor" in h && i(38, ut = h.textColor), "backgroundColor" in h && i(39, It = h.backgroundColor), "iconColor" in h && i(40, At = h.iconColor), "highlightColor" in h && i(15, St = h.highlightColor), "videoTextColor" in h && i(41, Vt = h.videoTextColor), "videoBackgroundColor" in h && i(57, nt = h.videoBackgroundColor), "videoIconColor" in h && i(42, ot = h.videoIconColor), "logoIconEnabled" in h && i(43, Bt = h.logoIconEnabled), "highlightSections" in h && i(16, st = h.highlightSections), "clickableSections" in h && i(17, kt = h.clickableSections), "segmentWidgetSections" in h && i(18, qe = h.segmentWidgetSections), "segmentWidgetPosition" in h && i(19, yt = h.segmentWidgetPosition), "currentSegment" in h && i(20, Je = h.currentSegment), "hoveredSegment" in h && i(21, vt = h.hoveredSegment), "loadedMedia" in h && i(93, lt = h.loadedMedia), "previewToken" in h && i(94, Ze = h.previewToken), "advertConsent" in h && i(22, ft = h.advertConsent), "analyticsConsent" in h && i(44, Mt = h.analyticsConsent), "analyticsCustomUrl" in h && i(45, H = h.analyticsCustomUrl), "analyticsDeviceType" in h && i(95, bt = h.analyticsDeviceType), "analyticsTag" in h && i(46, ee = h.analyticsTag), "captureErrors" in h && i(96, V = h.captureErrors), "onError" in h && i(97, W = h.onError), "transitions" in h && i(98, B = h.transitions), "controlPanel" in h && i(23, ti = h.controlPanel), "initialProps" in h && i(101, Wt = h.initialProps), "showMediaSession" in h && i(58, Pi = h.showMediaSession), "metadataLoaded" in h && i(24, Ut = h.metadataLoaded), "isFullScreen" in h && i(59, gi = h.isFullScreen), "mediaElement" in h && i(47, Ht = h.mediaElement), "userInterface" in h && i(48, fi = h.userInterface), "widgetInterface" in h && i(49, bi = h.widgetInterface), "controller" in h && i(102, Ft = h.controller), "logoImagePosition" in h && i(60, ii = h.logoImagePosition), "analyticsUrl" in h && i(103, Ci = h.analyticsUrl), "analyticsId" in h && i(104, zi = h.analyticsId), "platform" in h && i(61, ui = h.platform), "vendorIdentifier" in h && i(62, Dt = h.vendorIdentifier), "bundleIdentifier" in h && i(63, Ii = h.bundleIdentifier), "contentLanguage" in h && i(64, ni = h.contentLanguage), "listenSessionId" in h && i(105, wt = h.listenSessionId), "sessionCreatedAt" in h && i(106, oi = h.sessionCreatedAt), "companionAdvert" in h && i(65, Tt = h.companionAdvert), "isNewListen" in h && i(107, Vi = h.isNewListen), "prevPercentage" in h && i(50, pt = h.prevPercentage), "segmentWidgets" in h && i(51, R = h.segmentWidgets), "segmentContainers" in h && i(108, K = h.segmentContainers), "segmentClickables" in h && i(109, ge = h.segmentClickables), "segmentHighlights" in h && i(110, Nt = h.segmentHighlights);
|
|
19217
19217
|
}, t.$$.update = () => {
|
|
19218
19218
|
t.$$.dirty[0] & /*contentIndex*/
|
|
19219
19219
|
128 | t.$$.dirty[1] & /*content*/
|
|
@@ -19257,24 +19257,24 @@ function B3(t, e, i) {
|
|
|
19257
19257
|
2048 && i(77, P = p ? rt : null), t.$$.dirty[0] & /*metadataLoaded*/
|
|
19258
19258
|
16777216 | t.$$.dirty[2] & /*videoMightBeShown*/
|
|
19259
19259
|
1024 | t.$$.dirty[3] & /*isAudio*/
|
|
19260
|
-
8388608 && i(115,
|
|
19260
|
+
8388608 && i(115, X = u && S && Ut), t.$$.dirty[2] & /*activeAdvert, contentItem*/
|
|
19261
19261
|
640 | t.$$.dirty[3] & /*showVideoPoster, isAdvert*/
|
|
19262
|
-
6291456 && i(76, Y =
|
|
19262
|
+
6291456 && i(76, Y = X ? r && (s == null ? void 0 : s.imageUrl) || (n == null ? void 0 : n.imageUrl) : ""), t.$$.dirty[0] & /*projectId, contentId, playlistId, sourceId, sourceUrl*/
|
|
19263
19263
|
31 | t.$$.dirty[2] & /*playlist*/
|
|
19264
19264
|
16777216 | t.$$.dirty[3] & /*previewToken*/
|
|
19265
19265
|
2 && Ni(h3()), t.$$.dirty[2] & /*loadContentAs*/
|
|
19266
19266
|
33554432 && i(25, x = F[0]), t.$$.dirty[0] & /*hoveredSegment*/
|
|
19267
19267
|
2097152 | t.$$.dirty[3] & /*lastHovered*/
|
|
19268
19268
|
524288 && i(112, N = vt || N), t.$$.dirty[0] & /*currentSegment, segmentWidgetSections*/
|
|
19269
|
-
1310720 && i(111,
|
|
19269
|
+
1310720 && i(111, J = yo("current", Je, qe)), t.$$.dirty[0] & /*currentSegment*/
|
|
19270
19270
|
1048576 | t.$$.dirty[3] & /*currentAllowedInWidget*/
|
|
19271
|
-
262144 &&
|
|
19271
|
+
262144 && J && cn(), t.$$.dirty[0] & /*segmentWidgetSections*/
|
|
19272
19272
|
262144 | t.$$.dirty[3] & /*lastHovered*/
|
|
19273
19273
|
524288 && i(113, oe = yo("hovered", N, qe)), t.$$.dirty[0] & /*currentSegment*/
|
|
19274
19274
|
1048576 | t.$$.dirty[3] & /*hoveredAllowedInWidget, lastHovered, currentAllowedInWidget*/
|
|
19275
|
-
1835008 && i(67, le = oe && N ||
|
|
19275
|
+
1835008 && i(67, le = oe && N || J && Je), t.$$.dirty[0] & /*currentSegment*/
|
|
19276
19276
|
1048576 | t.$$.dirty[2] & /*widgetSegment*/
|
|
19277
|
-
32 && i(70, $ = (le == null ? void 0 : le.marker) === (
|
|
19277
|
+
32 && i(70, $ = (le == null ? void 0 : le.marker) === (Je == null ? void 0 : Je.marker)), t.$$.dirty[2] & /*widgetIsCurrent, activeAdvert, introOrOutro*/
|
|
19278
19278
|
448 && i(75, te = $ || s || o), t.$$.dirty[0] & /*segmentWidgetSections, segmentWidgetPosition, playerStyle*/
|
|
19279
19279
|
786496 | t.$$.dirty[2] & /*widgetSegment*/
|
|
19280
19280
|
32 | t.$$.dirty[3] & /*segmentContainers*/
|
|
@@ -19282,7 +19282,7 @@ function B3(t, e, i) {
|
|
|
19282
19282
|
2228224 | t.$$.dirty[3] & /*segmentClickables*/
|
|
19283
19283
|
65536 && ge.update(vt, kt), t.$$.dirty[0] & /*currentSegment, highlightSections, highlightColor*/
|
|
19284
19284
|
1146880 | t.$$.dirty[3] & /*segmentHighlights*/
|
|
19285
|
-
131072 && Nt.update("current",
|
|
19285
|
+
131072 && Nt.update("current", Je, st, St), t.$$.dirty[0] & /*hoveredSegment, highlightSections, highlightColor*/
|
|
19286
19286
|
2195456 | t.$$.dirty[3] & /*segmentHighlights*/
|
|
19287
19287
|
131072 && Nt.update("hovered", vt, st, St), t.$$.dirty[0] & /*currentTime*/
|
|
19288
19288
|
2048 | t.$$.dirty[3] & /*transitions, controller*/
|
|
@@ -19308,7 +19308,7 @@ function B3(t, e, i) {
|
|
|
19308
19308
|
kt,
|
|
19309
19309
|
qe,
|
|
19310
19310
|
yt,
|
|
19311
|
-
|
|
19311
|
+
Je,
|
|
19312
19312
|
vt,
|
|
19313
19313
|
ft,
|
|
19314
19314
|
ti,
|
|
@@ -19317,7 +19317,7 @@ function B3(t, e, i) {
|
|
|
19317
19317
|
me,
|
|
19318
19318
|
Ee,
|
|
19319
19319
|
Ne,
|
|
19320
|
-
|
|
19320
|
+
Xe,
|
|
19321
19321
|
Me,
|
|
19322
19322
|
pe,
|
|
19323
19323
|
ht,
|
|
@@ -19399,11 +19399,11 @@ function B3(t, e, i) {
|
|
|
19399
19399
|
K,
|
|
19400
19400
|
ge,
|
|
19401
19401
|
Nt,
|
|
19402
|
-
|
|
19402
|
+
J,
|
|
19403
19403
|
N,
|
|
19404
19404
|
oe,
|
|
19405
19405
|
r,
|
|
19406
|
-
|
|
19406
|
+
X,
|
|
19407
19407
|
u,
|
|
19408
19408
|
A,
|
|
19409
19409
|
k,
|
|
@@ -19427,7 +19427,7 @@ function B3(t, e, i) {
|
|
|
19427
19427
|
io,
|
|
19428
19428
|
jo,
|
|
19429
19429
|
xo,
|
|
19430
|
-
|
|
19430
|
+
Ji,
|
|
19431
19431
|
no,
|
|
19432
19432
|
Qi,
|
|
19433
19433
|
oo,
|
|
@@ -20127,7 +20127,7 @@ const iu = (i, ...n) => Ri(void 0, [i, ...n], function* (t, e = {}) {
|
|
|
20127
20127
|
const o = yield fetch(t, e).catch(() => {
|
|
20128
20128
|
}), s = yield o == null ? void 0 : o.json().catch(() => {
|
|
20129
20129
|
});
|
|
20130
|
-
return (o == null ? void 0 : o.status) !== 200 && Ti(`Failed to fetch ${t}`, $i(
|
|
20130
|
+
return (o == null ? void 0 : o.status) !== 200 && Ti(`Failed to fetch ${t}`, $i(Xt({}, e), {
|
|
20131
20131
|
responseStatus: o == null ? void 0 : o.status,
|
|
20132
20132
|
responseJson: s
|
|
20133
20133
|
})), s;
|
|
@@ -20350,17 +20350,17 @@ const kl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
|
|
|
20350
20350
|
for (const [p, z] of e.entries()) {
|
|
20351
20351
|
if (Z3(z) || ru(z) || !_.has(z.placement))
|
|
20352
20352
|
continue;
|
|
20353
|
-
const D =
|
|
20353
|
+
const D = X3[z.type] || 0;
|
|
20354
20354
|
if (D < w)
|
|
20355
20355
|
continue;
|
|
20356
20356
|
const S = n === p ? 1 / 0 : Math.random();
|
|
20357
20357
|
D === w && S < T || (k = p, w = D, T = S);
|
|
20358
20358
|
}
|
|
20359
20359
|
return k;
|
|
20360
|
-
},
|
|
20361
|
-
const r = e === 0, u = e === t.length - 1, c = t.length > 1, g = c && n && !r, f = t[e].segments, A = f[f.length - 1], _ = c ? null :
|
|
20360
|
+
}, X3 = { vast: 1, custom: 0 }, K3 = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o, minTimeUntilEndForMidroll: s, minDurationForMidroll: l, contentVariant: a }) => {
|
|
20361
|
+
const r = e === 0, u = e === t.length - 1, c = t.length > 1, g = c && n && !r, f = t[e].segments, A = f[f.length - 1], _ = c ? null : J3(f, l, a), k = f[_], w = k && i > k.startTime, T = A ? A.startTime + A.duration : 0, v = i > T - s, p = /* @__PURE__ */ new Set();
|
|
20362
20362
|
return n && p.add("pre-roll"), w && !v && p.add("mid-roll"), g && p.add("mid-roll"), o && u && p.add("post-roll"), g && p.add("post-roll"), p;
|
|
20363
|
-
}, G3 = 0.5,
|
|
20363
|
+
}, G3 = 0.5, J3 = (t, e, i) => {
|
|
20364
20364
|
const n = t[t.length - 1];
|
|
20365
20365
|
if (!n)
|
|
20366
20366
|
return;
|
|
@@ -20695,10 +20695,10 @@ class fy {
|
|
|
20695
20695
|
}
|
|
20696
20696
|
handleCurrentSegmentUpdated({ segment: e, contentIndex: i, segmentIndex: n, segmentElement: o }) {
|
|
20697
20697
|
var s;
|
|
20698
|
-
U(this, zn, co).call(this) ? this.player.currentSegment = $i(
|
|
20698
|
+
U(this, zn, co).call(this) ? this.player.currentSegment = $i(Xt({}, e), { contentIndex: i, segmentIndex: n, segmentElement: o }) : this.segmentPlayed || ((s = this.player.segmentContainers) == null || s.reset(), this.player.currentSegment = null);
|
|
20699
20699
|
}
|
|
20700
20700
|
handleHoveredSegmentUpdated({ segment: e, contentIndex: i, segmentIndex: n, segmentElement: o }) {
|
|
20701
|
-
e ? this.player.hoveredSegment = $i(
|
|
20701
|
+
e ? this.player.hoveredSegment = $i(Xt({}, e), { contentIndex: i, segmentIndex: n, segmentElement: o }) : this.player.hoveredSegment = null;
|
|
20702
20702
|
}
|
|
20703
20703
|
handlePressedSegment({ segment: e, contentIndex: i, segmentIndex: n, segmentElement: o }) {
|
|
20704
20704
|
if (!yo("hovered", e, this.player.clickableSections))
|
|
@@ -20707,7 +20707,7 @@ class fy {
|
|
|
20707
20707
|
U(this, an, Mn).call(this);
|
|
20708
20708
|
return;
|
|
20709
20709
|
}
|
|
20710
|
-
i !== this.player.contentIndex && U(this, rn, En).call(this, () => i), U(this, Po, wl).call(this,
|
|
20710
|
+
i !== this.player.contentIndex && U(this, rn, En).call(this, () => i), U(this, Po, wl).call(this, Xt({ contentIndex: i, segmentIndex: n, segmentElement: o }, e));
|
|
20711
20711
|
}
|
|
20712
20712
|
}
|
|
20713
20713
|
Ts = new WeakSet(), gu = function({ type: e }) {
|
|
@@ -20745,7 +20745,7 @@ Ts = new WeakSet(), gu = function({ type: e }) {
|
|
|
20745
20745
|
this.player.playbackState === "playing" && (this.player.playbackState = "paused");
|
|
20746
20746
|
}, Po = new WeakSet(), wl = function(s) {
|
|
20747
20747
|
var l = s, { contentIndex: e, segmentIndex: i, segmentElement: n } = l, o = Fs(l, ["contentIndex", "segmentIndex", "segmentElement"]);
|
|
20748
|
-
U(this, qt, li).call(this, () => o.startTime, e), this.player.currentSegment =
|
|
20748
|
+
U(this, qt, li).call(this, () => o.startTime, e), this.player.currentSegment = Xt({ contentIndex: e, segmentIndex: i, segmentElement: n }, o), this.player.playbackState = "playing", this.segmentPlayed = !0;
|
|
20749
20749
|
}, Ki = new WeakSet(), vn = function(e, { cycle: i } = {}) {
|
|
20750
20750
|
const n = this.player.playbackRates, o = n.length - 1, s = n.indexOf(this.player.playbackRate), l = e(s);
|
|
20751
20751
|
let a;
|
|
@@ -20967,7 +20967,7 @@ class il {
|
|
|
20967
20967
|
return O3(this.analyticsSink, e);
|
|
20968
20968
|
}
|
|
20969
20969
|
sendToGoogleAnalytics(e, i) {
|
|
20970
|
-
window.gtag("event", e, $i(
|
|
20970
|
+
window.gtag("event", e, $i(Xt({}, i), { send_to: this.analyticsSink }));
|
|
20971
20971
|
}
|
|
20972
20972
|
}
|
|
20973
20973
|
const zy = (t, e) => {
|
|
@@ -21064,8 +21064,8 @@ const Wi = class Wi extends W3 {
|
|
|
21064
21064
|
s.classList.add("beyondwords-player", "bwp"), Wi._styleLoaded || (s.style.display = "none");
|
|
21065
21065
|
const a = new fy(null, Wi);
|
|
21066
21066
|
a.addEventListener("<any>", (u) => zy(this, u));
|
|
21067
|
-
const r =
|
|
21068
|
-
super({ target: s, props: $i(
|
|
21067
|
+
const r = Xt({ showUserInterface: l }, i);
|
|
21068
|
+
super({ target: s, props: $i(Xt({ controller: a }, r), { initialProps: r }) }), a.player = this, ji(Wi, Tn).push(this);
|
|
21069
21069
|
}
|
|
21070
21070
|
static styleLoaded() {
|
|
21071
21071
|
Wi.instances().forEach((e) => e.target.style.removeProperty("display")), Wi._styleLoaded = !0;
|
|
@@ -21099,8 +21099,8 @@ Tn = new WeakMap(), Be(Wi, Tn, []);
|
|
|
21099
21099
|
let ms = Wi;
|
|
21100
21100
|
var gr;
|
|
21101
21101
|
typeof window != "undefined" && (window.BeyondWords || (window.BeyondWords = {}), (gr = window.BeyondWords).Player || (gr.Player = ms));
|
|
21102
|
-
const
|
|
21102
|
+
const Xy = { Player: ms };
|
|
21103
21103
|
export {
|
|
21104
|
-
|
|
21104
|
+
Xy as default
|
|
21105
21105
|
};
|
|
21106
21106
|
//# sourceMappingURL=es.js.map
|