@beyondwords/player 0.2.0 → 0.2.1
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 +384 -384
- package/dist/es.js.map +1 -1
- package/dist/umd.js +48 -48
- package/dist/umd.js.map +1 -1
- package/package.json +1 -1
package/dist/es.js
CHANGED
|
@@ -45,7 +45,7 @@ var Li = (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.1" */
|
|
49
49
|
function X() {
|
|
50
50
|
}
|
|
51
51
|
const Du = (t) => t;
|
|
@@ -166,7 +166,7 @@ function ir(t) {
|
|
|
166
166
|
) : t.ownerDocument;
|
|
167
167
|
}
|
|
168
168
|
function Hu(t) {
|
|
169
|
-
const e =
|
|
169
|
+
const e = k("style");
|
|
170
170
|
return e.textContent = "/* empty */", qu(ir(t), e), e.sheet;
|
|
171
171
|
}
|
|
172
172
|
function qu(t, e) {
|
|
@@ -186,7 +186,7 @@ function vn(t, e) {
|
|
|
186
186
|
for (let i = 0; i < t.length; i += 1)
|
|
187
187
|
t[i] && t[i].d(e);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function k(t) {
|
|
190
190
|
return document.createElement(t);
|
|
191
191
|
}
|
|
192
192
|
function Se(t) {
|
|
@@ -256,9 +256,9 @@ function Il(t, e, i, n, o, s, l, a = 0) {
|
|
|
256
256
|
const r = 16.666 / n;
|
|
257
257
|
let u = `{
|
|
258
258
|
`;
|
|
259
|
-
for (let
|
|
260
|
-
const T = e + (i - e) * s(
|
|
261
|
-
u +=
|
|
259
|
+
for (let p = 0; p <= 1; p += r) {
|
|
260
|
+
const T = e + (i - e) * s(p);
|
|
261
|
+
u += p * 100 + `%{${l(T, 1 - T)}}
|
|
262
262
|
`;
|
|
263
263
|
}
|
|
264
264
|
const d = u + `100% {${l(i, 1 - i)}}
|
|
@@ -393,14 +393,14 @@ function Bl(t, e, i, n) {
|
|
|
393
393
|
u && Ju(t, u);
|
|
394
394
|
}
|
|
395
395
|
function f(m, v) {
|
|
396
|
-
const
|
|
396
|
+
const p = (
|
|
397
397
|
/** @type {Program['d']} */
|
|
398
398
|
m.b - l
|
|
399
399
|
);
|
|
400
|
-
return v *= Math.abs(
|
|
400
|
+
return v *= Math.abs(p), {
|
|
401
401
|
a: l,
|
|
402
402
|
b: m.b,
|
|
403
|
-
d:
|
|
403
|
+
d: p,
|
|
404
404
|
duration: v,
|
|
405
405
|
start: m.start,
|
|
406
406
|
end: m.start + v,
|
|
@@ -410,17 +410,17 @@ function Bl(t, e, i, n) {
|
|
|
410
410
|
function _(m) {
|
|
411
411
|
const {
|
|
412
412
|
delay: v = 0,
|
|
413
|
-
duration:
|
|
413
|
+
duration: p = 300,
|
|
414
414
|
easing: T = Du,
|
|
415
|
-
tick:
|
|
415
|
+
tick: b = X,
|
|
416
416
|
css: S
|
|
417
417
|
} = s || ic, j = {
|
|
418
418
|
start: Ru() + v,
|
|
419
419
|
b: m
|
|
420
420
|
};
|
|
421
421
|
m || (j.group = sn, sn.r += 1), "inert" in t && (m ? d !== void 0 && (t.inert = d) : (d = /** @type {HTMLElement} */
|
|
422
|
-
t.inert, t.inert = !0)), a || r ? r = j : (S && (g(), u = Il(t, l, m,
|
|
423
|
-
if (r && L > r.start && (a = f(r,
|
|
422
|
+
t.inert, t.inert = !0)), a || r ? r = j : (S && (g(), u = Il(t, l, m, p, v, T, S)), m && b(0, 1), a = f(j, p), ft(() => js(t, m, "start")), Fu((L) => {
|
|
423
|
+
if (r && L > r.start && (a = f(r, p), r = null, js(t, a.b, "start"), S && (g(), u = Il(
|
|
424
424
|
t,
|
|
425
425
|
l,
|
|
426
426
|
a.b,
|
|
@@ -430,10 +430,10 @@ function Bl(t, e, i, n) {
|
|
|
430
430
|
s.css
|
|
431
431
|
))), a) {
|
|
432
432
|
if (L >= a.end)
|
|
433
|
-
|
|
433
|
+
b(l = a.b, 1 - l), js(t, a.b, "end"), r || (a.b ? g() : --a.group.r || mt(a.group.c)), a = null;
|
|
434
434
|
else if (L >= a.start) {
|
|
435
435
|
const w = L - a.start;
|
|
436
|
-
l = a.a + a.d * T(w / a.duration),
|
|
436
|
+
l = a.a + a.d * T(w / a.duration), b(l, 1 - l);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
return !!(a || r);
|
|
@@ -463,27 +463,27 @@ function oc(t, e, i, n, o, s, l, a, r, u, d, g) {
|
|
|
463
463
|
const v = {};
|
|
464
464
|
for (; m--; )
|
|
465
465
|
v[t[m].key] = m;
|
|
466
|
-
const
|
|
466
|
+
const p = [], T = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), S = [];
|
|
467
467
|
for (m = _; m--; ) {
|
|
468
468
|
const P = g(o, s, m), H = i(P);
|
|
469
469
|
let Z = l.get(H);
|
|
470
|
-
Z ? n && S.push(() => Z.p(P, e)) : (Z = u(H, P), Z.c()), T.set(H,
|
|
470
|
+
Z ? n && S.push(() => Z.p(P, e)) : (Z = u(H, P), Z.c()), T.set(H, p[m] = Z), H in v && b.set(H, Math.abs(m - v[H]));
|
|
471
471
|
}
|
|
472
472
|
const j = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
|
473
473
|
function w(P) {
|
|
474
474
|
I(P, 1), P.m(a, d), l.set(P.key, P), d = P.first, _--;
|
|
475
475
|
}
|
|
476
476
|
for (; f && _; ) {
|
|
477
|
-
const P =
|
|
478
|
-
P === H ? (d = P.first, f--, _--) : T.has(R) ? !l.has(Z) || j.has(Z) ? w(P) : L.has(R) ? f-- :
|
|
477
|
+
const P = p[_ - 1], H = t[f - 1], Z = P.key, R = H.key;
|
|
478
|
+
P === H ? (d = P.first, f--, _--) : T.has(R) ? !l.has(Z) || j.has(Z) ? w(P) : L.has(R) ? f-- : b.get(Z) > b.get(R) ? (L.add(Z), w(P)) : (j.add(R), f--) : (r(H, l), f--);
|
|
479
479
|
}
|
|
480
480
|
for (; f--; ) {
|
|
481
481
|
const P = t[f];
|
|
482
482
|
T.has(P.key) || r(P, l);
|
|
483
483
|
}
|
|
484
484
|
for (; _; )
|
|
485
|
-
w(
|
|
486
|
-
return mt(S),
|
|
485
|
+
w(p[_ - 1]);
|
|
486
|
+
return mt(S), p;
|
|
487
487
|
}
|
|
488
488
|
function be(t, e, i) {
|
|
489
489
|
const n = t.$$.props[e];
|
|
@@ -593,7 +593,7 @@ class Te {
|
|
|
593
593
|
}
|
|
594
594
|
const lc = "4";
|
|
595
595
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lc);
|
|
596
|
-
const ac = "@beyondwords/player", no = "0.2.
|
|
596
|
+
const ac = "@beyondwords/player", no = "0.2.1", Ii = (t, e) => {
|
|
597
597
|
t = [t].flat().join(`
|
|
598
598
|
`);
|
|
599
599
|
let i = `${ac}:
|
|
@@ -713,8 +713,8 @@ const hl = ["user", "media", "browser", "media-session-api", "google-ima-sdk"],
|
|
|
713
713
|
r: 2,
|
|
714
714
|
l: 1
|
|
715
715
|
}, Wl = {
|
|
716
|
-
nonPersonalizedDaisybit: "
|
|
717
|
-
personalizedDaisybit: "
|
|
716
|
+
nonPersonalizedDaisybit: "CP7Tt8AP7Tt8AAAAAAENDgCAAEIAAAAAAAAAg1NX_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: "CP7Tt8AP7Tt8AAAAAAENDgCAAHIAAAAAAAAAg1NX_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
|
}, wc = (t, e, i, n, o, s, l, a, r, u, d, g) => {
|
|
719
719
|
const f = window.location.hostname === "localhost";
|
|
720
720
|
return Tc(t) ? Pc(f, i, g) : rr(t) ? Cc(f, t, e, i, n, o, s, l, a, r, u, d) : {};
|
|
@@ -727,8 +727,8 @@ const hl = ["user", "media", "browser", "media-session-api", "google-ima-sdk"],
|
|
|
727
727
|
e != null && e.includes("cid=") || console.warn("BeyondWords.Player: The DAX VAST URL does not contain the 'cid' parameter."), window.daxListenerId && (f.dax_listenerid = window.daxListenerId), n === "personalized" ? f.gdpr_consent = Wl.personalizedDaisybit : f.gdpr_consent = Wl.nonPersonalizedDaisybit, f.att = 0, d && (f.idfv = d);
|
|
728
728
|
const _ = (v = (m = Gs(window.location.href)) == null ? void 0 : m.hostname) == null ? void 0 : v.replace(/^www./, "");
|
|
729
729
|
if (_ && !t && (f.u = _), f.adc_min = 1, f.adc_max = 1, i === "pre-roll" ? f.sd = 0 : i === "mid-roll" ? f.sd = -1 : i === "post-roll" && (f.sd = -2), f.delivery_type = "streaming", g && (f.bi = g), f.content_language = r.split(/[_-]/)[0], f.collectionid = s ? `project-${s}` : "no-project", f.showid = l ? `playlist-${l}` : "no-playlist", f.episodeid = a ? `content-${a}` : "no-content", f.explicit = !1, f.dax_player = "BeyondWords Player", f.dax_version = no, u === "ios" ? f.dax_platform = "iOS" : u === "android" ? f.dax_platform = "Android" : f.dax_platform = "web", f.isLoggedIn = !1, o > 0) {
|
|
730
|
-
const
|
|
731
|
-
f.comp_size = `${
|
|
730
|
+
const p = o * (window.devicePixelRatio || 1);
|
|
731
|
+
f.comp_size = `${p}x${p}`, f.is_comp_allowed = 1;
|
|
732
732
|
} else
|
|
733
733
|
f.is_comp_allowed = 0;
|
|
734
734
|
return f.cb = Math.floor(Math.random() * 1e10), f;
|
|
@@ -742,7 +742,7 @@ function Oc(t) {
|
|
|
742
742
|
let e, i, n, o, s, l;
|
|
743
743
|
return {
|
|
744
744
|
c() {
|
|
745
|
-
e =
|
|
745
|
+
e = k("script"), e.innerHTML = "", n = J(), o = k("div"), zi(e.src, i = "https://imasdk.googleapis.com/js/sdkloader/ima3.js") || Ol(e, "src", i), Ol(o, "class", "vast-container");
|
|
746
746
|
},
|
|
747
747
|
m(a, r) {
|
|
748
748
|
h(Wc.head, e), M(a, n, r), M(a, o, r), t[22](o), s || (l = [
|
|
@@ -769,7 +769,7 @@ function Oc(t) {
|
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
771
|
function Ec(t, e, i) {
|
|
772
|
-
let n, o, { vastUrl: s } = e, { preloading: l } = e, { placement: a } = e, { advertConsent: r } = e, { maxImageSize: u } = e, { projectId: d } = e, { playlistId: g } = e, { contentId: f } = e, { contentLanguage: _ } = e, { platform: m } = e, { vendorIdentifier: v } = e, { bundleIdentifier:
|
|
772
|
+
let n, o, { vastUrl: s } = e, { preloading: l } = e, { placement: a } = e, { advertConsent: r } = e, { maxImageSize: u } = e, { projectId: d } = e, { playlistId: g } = e, { contentId: f } = e, { contentLanguage: _ } = e, { platform: m } = e, { vendorIdentifier: v } = e, { bundleIdentifier: p } = e, { video: T } = e, { playbackState: b } = e, { duration: S } = e, { currentTime: j } = e, { onEvent: L = () => {
|
|
773
773
|
} } = e, w, P, H, Z, R, ae, ie;
|
|
774
774
|
const se = () => {
|
|
775
775
|
P = new google.ima.AdDisplayContainer(w, T), H = new google.ima.AdsLoader(P), H.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, Q, !1), H.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C, !1), Z = new google.ima.AdsRequest(), Z.adTagUrl = o, Z.linearAdSlotWidth = T.clientWidth, Z.linearAdSlotHeight = T.clientHeight, H.requestAds(Z);
|
|
@@ -822,7 +822,7 @@ function Ec(t, e, i) {
|
|
|
822
822
|
initiatedBy: "user"
|
|
823
823
|
}));
|
|
824
824
|
}, ne = () => {
|
|
825
|
-
|
|
825
|
+
b !== "paused" && (i(3, b = "paused"), L(ye({
|
|
826
826
|
type: "PlaybackPaused",
|
|
827
827
|
description: "The media became paused at its current playback time.",
|
|
828
828
|
initiatedBy: "google-ima-sdk"
|
|
@@ -871,7 +871,7 @@ function Ec(t, e, i) {
|
|
|
871
871
|
}, Me = () => {
|
|
872
872
|
if (!ie)
|
|
873
873
|
return 0;
|
|
874
|
-
if (
|
|
874
|
+
if (b === "playing") {
|
|
875
875
|
const D = (Date.now() - ie.updatedAt) / 1e3;
|
|
876
876
|
return ie.currentTime + D;
|
|
877
877
|
} else
|
|
@@ -883,18 +883,18 @@ function Ec(t, e, i) {
|
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
return t.$$set = (D) => {
|
|
886
|
-
"vastUrl" in D && i(6, s = D.vastUrl), "preloading" in D && i(7, l = D.preloading), "placement" in D && i(8, a = D.placement), "advertConsent" in D && i(9, r = D.advertConsent), "maxImageSize" in D && i(10, u = D.maxImageSize), "projectId" in D && i(11, d = D.projectId), "playlistId" in D && i(12, g = D.playlistId), "contentId" in D && i(13, f = D.contentId), "contentLanguage" in D && i(14, _ = D.contentLanguage), "platform" in D && i(15, m = D.platform), "vendorIdentifier" in D && i(16, v = D.vendorIdentifier), "bundleIdentifier" in D && i(17,
|
|
886
|
+
"vastUrl" in D && i(6, s = D.vastUrl), "preloading" in D && i(7, l = D.preloading), "placement" in D && i(8, a = D.placement), "advertConsent" in D && i(9, r = D.advertConsent), "maxImageSize" in D && i(10, u = D.maxImageSize), "projectId" in D && i(11, d = D.projectId), "playlistId" in D && i(12, g = D.playlistId), "contentId" in D && i(13, f = D.contentId), "contentLanguage" in D && i(14, _ = D.contentLanguage), "platform" in D && i(15, m = D.platform), "vendorIdentifier" in D && i(16, v = D.vendorIdentifier), "bundleIdentifier" in D && i(17, p = D.bundleIdentifier), "video" in D && i(18, T = D.video), "playbackState" in D && i(3, b = D.playbackState), "duration" in D && i(4, S = D.duration), "currentTime" in D && i(5, j = D.currentTime), "onEvent" in D && i(19, L = D.onEvent);
|
|
887
887
|
}, t.$$.update = () => {
|
|
888
888
|
t.$$.dirty[0] & /*vastUrl, placement, advertConsent, maxImageSize, projectId, playlistId, contentId, contentLanguage, platform, vendorIdentifier, bundleIdentifier, video*/
|
|
889
|
-
524096 && i(21, n = wc(s, a, r, u, d, g, f, _, m, v,
|
|
889
|
+
524096 && i(21, n = wc(s, a, r, u, d, g, f, _, m, v, p, Ic(T))), t.$$.dirty[0] & /*vastUrl, adParams*/
|
|
890
890
|
2097216 && (o = kc(s, n)), t.$$.dirty[0] & /*adsManager, preloading, playbackState*/
|
|
891
|
-
1048712 && R && !l &&
|
|
892
|
-
1048712 && !l && (
|
|
891
|
+
1048712 && R && !l && b === "playing" && $(), t.$$.dirty[0] & /*adsManager, preloading, playbackState*/
|
|
892
|
+
1048712 && !l && (b === "playing" ? R == null || R.resume() : R == null || R.pause());
|
|
893
893
|
}, [
|
|
894
894
|
w,
|
|
895
895
|
se,
|
|
896
896
|
F,
|
|
897
|
-
|
|
897
|
+
b,
|
|
898
898
|
S,
|
|
899
899
|
j,
|
|
900
900
|
s,
|
|
@@ -908,7 +908,7 @@ function Ec(t, e, i) {
|
|
|
908
908
|
_,
|
|
909
909
|
m,
|
|
910
910
|
v,
|
|
911
|
-
|
|
911
|
+
p,
|
|
912
912
|
T,
|
|
913
913
|
L,
|
|
914
914
|
R,
|
|
@@ -4488,28 +4488,28 @@ function sm() {
|
|
|
4488
4488
|
if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof $n != "undefined" && $n.crypto && (s = $n.crypto), !s && typeof tm == "function")
|
|
4489
4489
|
try {
|
|
4490
4490
|
s = om;
|
|
4491
|
-
} catch (
|
|
4491
|
+
} catch (b) {
|
|
4492
4492
|
}
|
|
4493
4493
|
var l = function() {
|
|
4494
4494
|
if (s) {
|
|
4495
4495
|
if (typeof s.getRandomValues == "function")
|
|
4496
4496
|
try {
|
|
4497
4497
|
return s.getRandomValues(new Uint32Array(1))[0];
|
|
4498
|
-
} catch (
|
|
4498
|
+
} catch (b) {
|
|
4499
4499
|
}
|
|
4500
4500
|
if (typeof s.randomBytes == "function")
|
|
4501
4501
|
try {
|
|
4502
4502
|
return s.randomBytes(4).readInt32LE();
|
|
4503
|
-
} catch (
|
|
4503
|
+
} catch (b) {
|
|
4504
4504
|
}
|
|
4505
4505
|
}
|
|
4506
4506
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
4507
4507
|
}, a = Object.create || /* @__PURE__ */ function() {
|
|
4508
|
-
function
|
|
4508
|
+
function b() {
|
|
4509
4509
|
}
|
|
4510
4510
|
return function(S) {
|
|
4511
4511
|
var j;
|
|
4512
|
-
return
|
|
4512
|
+
return b.prototype = S, j = new b(), b.prototype = null, j;
|
|
4513
4513
|
};
|
|
4514
4514
|
}(), r = {}, u = r.lib = {}, d = u.Base = /* @__PURE__ */ function() {
|
|
4515
4515
|
return {
|
|
@@ -4531,9 +4531,9 @@ function sm() {
|
|
|
4531
4531
|
* }
|
|
4532
4532
|
* });
|
|
4533
4533
|
*/
|
|
4534
|
-
extend: function(
|
|
4534
|
+
extend: function(b) {
|
|
4535
4535
|
var S = a(this);
|
|
4536
|
-
return
|
|
4536
|
+
return b && S.mixIn(b), (!S.hasOwnProperty("init") || this.init === S.init) && (S.init = function() {
|
|
4537
4537
|
S.$super.init.apply(this, arguments);
|
|
4538
4538
|
}), S.init.prototype = S, S.$super = this, S;
|
|
4539
4539
|
},
|
|
@@ -4550,8 +4550,8 @@ function sm() {
|
|
|
4550
4550
|
* var instance = MyType.create();
|
|
4551
4551
|
*/
|
|
4552
4552
|
create: function() {
|
|
4553
|
-
var
|
|
4554
|
-
return
|
|
4553
|
+
var b = this.extend();
|
|
4554
|
+
return b.init.apply(b, arguments), b;
|
|
4555
4555
|
},
|
|
4556
4556
|
/**
|
|
4557
4557
|
* Initializes a newly created object.
|
|
@@ -4578,10 +4578,10 @@ function sm() {
|
|
|
4578
4578
|
* field: 'value'
|
|
4579
4579
|
* });
|
|
4580
4580
|
*/
|
|
4581
|
-
mixIn: function(
|
|
4582
|
-
for (var S in
|
|
4583
|
-
|
|
4584
|
-
|
|
4581
|
+
mixIn: function(b) {
|
|
4582
|
+
for (var S in b)
|
|
4583
|
+
b.hasOwnProperty(S) && (this[S] = b[S]);
|
|
4584
|
+
b.hasOwnProperty("toString") && (this.toString = b.toString);
|
|
4585
4585
|
},
|
|
4586
4586
|
/**
|
|
4587
4587
|
* Creates a copy of this object.
|
|
@@ -4609,8 +4609,8 @@ function sm() {
|
|
|
4609
4609
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
4610
4610
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
4611
4611
|
*/
|
|
4612
|
-
init: function(
|
|
4613
|
-
|
|
4612
|
+
init: function(b, S) {
|
|
4613
|
+
b = this.words = b || [], S != o ? this.sigBytes = S : this.sigBytes = b.length * 4;
|
|
4614
4614
|
},
|
|
4615
4615
|
/**
|
|
4616
4616
|
* Converts this word array to a string.
|
|
@@ -4625,8 +4625,8 @@ function sm() {
|
|
|
4625
4625
|
* var string = wordArray.toString();
|
|
4626
4626
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
4627
4627
|
*/
|
|
4628
|
-
toString: function(
|
|
4629
|
-
return (
|
|
4628
|
+
toString: function(b) {
|
|
4629
|
+
return (b || _).stringify(this);
|
|
4630
4630
|
},
|
|
4631
4631
|
/**
|
|
4632
4632
|
* Concatenates a word array to this word array.
|
|
@@ -4639,8 +4639,8 @@ function sm() {
|
|
|
4639
4639
|
*
|
|
4640
4640
|
* wordArray1.concat(wordArray2);
|
|
4641
4641
|
*/
|
|
4642
|
-
concat: function(
|
|
4643
|
-
var S = this.words, j =
|
|
4642
|
+
concat: function(b) {
|
|
4643
|
+
var S = this.words, j = b.words, L = this.sigBytes, w = b.sigBytes;
|
|
4644
4644
|
if (this.clamp(), L % 4)
|
|
4645
4645
|
for (var P = 0; P < w; P++) {
|
|
4646
4646
|
var H = j[P >>> 2] >>> 24 - P % 4 * 8 & 255;
|
|
@@ -4659,8 +4659,8 @@ function sm() {
|
|
|
4659
4659
|
* wordArray.clamp();
|
|
4660
4660
|
*/
|
|
4661
4661
|
clamp: function() {
|
|
4662
|
-
var
|
|
4663
|
-
|
|
4662
|
+
var b = this.words, S = this.sigBytes;
|
|
4663
|
+
b[S >>> 2] &= 4294967295 << 32 - S % 4 * 8, b.length = n.ceil(S / 4);
|
|
4664
4664
|
},
|
|
4665
4665
|
/**
|
|
4666
4666
|
* Creates a copy of this word array.
|
|
@@ -4672,8 +4672,8 @@ function sm() {
|
|
|
4672
4672
|
* var clone = wordArray.clone();
|
|
4673
4673
|
*/
|
|
4674
4674
|
clone: function() {
|
|
4675
|
-
var
|
|
4676
|
-
return
|
|
4675
|
+
var b = d.clone.call(this);
|
|
4676
|
+
return b.words = this.words.slice(0), b;
|
|
4677
4677
|
},
|
|
4678
4678
|
/**
|
|
4679
4679
|
* Creates a word array filled with random bytes.
|
|
@@ -4688,10 +4688,10 @@ function sm() {
|
|
|
4688
4688
|
*
|
|
4689
4689
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
4690
4690
|
*/
|
|
4691
|
-
random: function(
|
|
4692
|
-
for (var S = [], j = 0; j <
|
|
4691
|
+
random: function(b) {
|
|
4692
|
+
for (var S = [], j = 0; j < b; j += 4)
|
|
4693
4693
|
S.push(l());
|
|
4694
|
-
return new g.init(S,
|
|
4694
|
+
return new g.init(S, b);
|
|
4695
4695
|
}
|
|
4696
4696
|
}), f = r.enc = {}, _ = f.Hex = {
|
|
4697
4697
|
/**
|
|
@@ -4707,8 +4707,8 @@ function sm() {
|
|
|
4707
4707
|
*
|
|
4708
4708
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
4709
4709
|
*/
|
|
4710
|
-
stringify: function(
|
|
4711
|
-
for (var S =
|
|
4710
|
+
stringify: function(b) {
|
|
4711
|
+
for (var S = b.words, j = b.sigBytes, L = [], w = 0; w < j; w++) {
|
|
4712
4712
|
var P = S[w >>> 2] >>> 24 - w % 4 * 8 & 255;
|
|
4713
4713
|
L.push((P >>> 4).toString(16)), L.push((P & 15).toString(16));
|
|
4714
4714
|
}
|
|
@@ -4727,9 +4727,9 @@ function sm() {
|
|
|
4727
4727
|
*
|
|
4728
4728
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
4729
4729
|
*/
|
|
4730
|
-
parse: function(
|
|
4731
|
-
for (var S =
|
|
4732
|
-
j[L >>> 3] |= parseInt(
|
|
4730
|
+
parse: function(b) {
|
|
4731
|
+
for (var S = b.length, j = [], L = 0; L < S; L += 2)
|
|
4732
|
+
j[L >>> 3] |= parseInt(b.substr(L, 2), 16) << 24 - L % 8 * 4;
|
|
4733
4733
|
return new g.init(j, S / 2);
|
|
4734
4734
|
}
|
|
4735
4735
|
}, m = f.Latin1 = {
|
|
@@ -4746,8 +4746,8 @@ function sm() {
|
|
|
4746
4746
|
*
|
|
4747
4747
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
4748
4748
|
*/
|
|
4749
|
-
stringify: function(
|
|
4750
|
-
for (var S =
|
|
4749
|
+
stringify: function(b) {
|
|
4750
|
+
for (var S = b.words, j = b.sigBytes, L = [], w = 0; w < j; w++) {
|
|
4751
4751
|
var P = S[w >>> 2] >>> 24 - w % 4 * 8 & 255;
|
|
4752
4752
|
L.push(String.fromCharCode(P));
|
|
4753
4753
|
}
|
|
@@ -4766,9 +4766,9 @@ function sm() {
|
|
|
4766
4766
|
*
|
|
4767
4767
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
4768
4768
|
*/
|
|
4769
|
-
parse: function(
|
|
4770
|
-
for (var S =
|
|
4771
|
-
j[L >>> 2] |= (
|
|
4769
|
+
parse: function(b) {
|
|
4770
|
+
for (var S = b.length, j = [], L = 0; L < S; L++)
|
|
4771
|
+
j[L >>> 2] |= (b.charCodeAt(L) & 255) << 24 - L % 4 * 8;
|
|
4772
4772
|
return new g.init(j, S);
|
|
4773
4773
|
}
|
|
4774
4774
|
}, v = f.Utf8 = {
|
|
@@ -4785,9 +4785,9 @@ function sm() {
|
|
|
4785
4785
|
*
|
|
4786
4786
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
4787
4787
|
*/
|
|
4788
|
-
stringify: function(
|
|
4788
|
+
stringify: function(b) {
|
|
4789
4789
|
try {
|
|
4790
|
-
return decodeURIComponent(escape(m.stringify(
|
|
4790
|
+
return decodeURIComponent(escape(m.stringify(b)));
|
|
4791
4791
|
} catch (S) {
|
|
4792
4792
|
throw new Error("Malformed UTF-8 data");
|
|
4793
4793
|
}
|
|
@@ -4805,10 +4805,10 @@ function sm() {
|
|
|
4805
4805
|
*
|
|
4806
4806
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
4807
4807
|
*/
|
|
4808
|
-
parse: function(
|
|
4809
|
-
return m.parse(unescape(encodeURIComponent(
|
|
4808
|
+
parse: function(b) {
|
|
4809
|
+
return m.parse(unescape(encodeURIComponent(b)));
|
|
4810
4810
|
}
|
|
4811
|
-
},
|
|
4811
|
+
}, p = u.BufferedBlockAlgorithm = d.extend({
|
|
4812
4812
|
/**
|
|
4813
4813
|
* Resets this block algorithm's data buffer to its initial state.
|
|
4814
4814
|
*
|
|
@@ -4829,8 +4829,8 @@ function sm() {
|
|
|
4829
4829
|
* bufferedBlockAlgorithm._append('data');
|
|
4830
4830
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
4831
4831
|
*/
|
|
4832
|
-
_append: function(
|
|
4833
|
-
typeof
|
|
4832
|
+
_append: function(b) {
|
|
4833
|
+
typeof b == "string" && (b = v.parse(b)), this._data.concat(b), this._nDataBytes += b.sigBytes;
|
|
4834
4834
|
},
|
|
4835
4835
|
/**
|
|
4836
4836
|
* Processes available data blocks.
|
|
@@ -4846,9 +4846,9 @@ function sm() {
|
|
|
4846
4846
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
4847
4847
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
4848
4848
|
*/
|
|
4849
|
-
_process: function(
|
|
4849
|
+
_process: function(b) {
|
|
4850
4850
|
var S, j = this._data, L = j.words, w = j.sigBytes, P = this.blockSize, H = P * 4, Z = w / H;
|
|
4851
|
-
|
|
4851
|
+
b ? Z = n.ceil(Z) : Z = n.max((Z | 0) - this._minBufferSize, 0);
|
|
4852
4852
|
var R = Z * P, ae = n.min(R * 4, w);
|
|
4853
4853
|
if (R) {
|
|
4854
4854
|
for (var ie = 0; ie < R; ie += P)
|
|
@@ -4867,12 +4867,12 @@ function sm() {
|
|
|
4867
4867
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
4868
4868
|
*/
|
|
4869
4869
|
clone: function() {
|
|
4870
|
-
var
|
|
4871
|
-
return
|
|
4870
|
+
var b = d.clone.call(this);
|
|
4871
|
+
return b._data = this._data.clone(), b;
|
|
4872
4872
|
},
|
|
4873
4873
|
_minBufferSize: 0
|
|
4874
4874
|
});
|
|
4875
|
-
u.Hasher =
|
|
4875
|
+
u.Hasher = p.extend({
|
|
4876
4876
|
/**
|
|
4877
4877
|
* Configuration options.
|
|
4878
4878
|
*/
|
|
@@ -4886,8 +4886,8 @@ function sm() {
|
|
|
4886
4886
|
*
|
|
4887
4887
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
4888
4888
|
*/
|
|
4889
|
-
init: function(
|
|
4890
|
-
this.cfg = this.cfg.extend(
|
|
4889
|
+
init: function(b) {
|
|
4890
|
+
this.cfg = this.cfg.extend(b), this.reset();
|
|
4891
4891
|
},
|
|
4892
4892
|
/**
|
|
4893
4893
|
* Resets this hasher to its initial state.
|
|
@@ -4897,7 +4897,7 @@ function sm() {
|
|
|
4897
4897
|
* hasher.reset();
|
|
4898
4898
|
*/
|
|
4899
4899
|
reset: function() {
|
|
4900
|
-
|
|
4900
|
+
p.reset.call(this), this._doReset();
|
|
4901
4901
|
},
|
|
4902
4902
|
/**
|
|
4903
4903
|
* Updates this hasher with a message.
|
|
@@ -4911,8 +4911,8 @@ function sm() {
|
|
|
4911
4911
|
* hasher.update('message');
|
|
4912
4912
|
* hasher.update(wordArray);
|
|
4913
4913
|
*/
|
|
4914
|
-
update: function(
|
|
4915
|
-
return this._append(
|
|
4914
|
+
update: function(b) {
|
|
4915
|
+
return this._append(b), this._process(), this;
|
|
4916
4916
|
},
|
|
4917
4917
|
/**
|
|
4918
4918
|
* Finalizes the hash computation.
|
|
@@ -4928,8 +4928,8 @@ function sm() {
|
|
|
4928
4928
|
* var hash = hasher.finalize('message');
|
|
4929
4929
|
* var hash = hasher.finalize(wordArray);
|
|
4930
4930
|
*/
|
|
4931
|
-
finalize: function(
|
|
4932
|
-
|
|
4931
|
+
finalize: function(b) {
|
|
4932
|
+
b && this._append(b);
|
|
4933
4933
|
var S = this._doFinalize();
|
|
4934
4934
|
return S;
|
|
4935
4935
|
},
|
|
@@ -4947,9 +4947,9 @@ function sm() {
|
|
|
4947
4947
|
*
|
|
4948
4948
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
4949
4949
|
*/
|
|
4950
|
-
_createHelper: function(
|
|
4950
|
+
_createHelper: function(b) {
|
|
4951
4951
|
return function(S, j) {
|
|
4952
|
-
return new
|
|
4952
|
+
return new b.init(j).finalize(S);
|
|
4953
4953
|
};
|
|
4954
4954
|
},
|
|
4955
4955
|
/**
|
|
@@ -4965,9 +4965,9 @@ function sm() {
|
|
|
4965
4965
|
*
|
|
4966
4966
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
4967
4967
|
*/
|
|
4968
|
-
_createHmacHelper: function(
|
|
4968
|
+
_createHmacHelper: function(b) {
|
|
4969
4969
|
return function(S, j) {
|
|
4970
|
-
return new T.HMAC.init(
|
|
4970
|
+
return new T.HMAC.init(b, j).finalize(S);
|
|
4971
4971
|
};
|
|
4972
4972
|
}
|
|
4973
4973
|
});
|
|
@@ -4997,19 +4997,19 @@ function sm() {
|
|
|
4997
4997
|
271733878
|
|
4998
4998
|
]);
|
|
4999
4999
|
},
|
|
5000
|
-
_doProcessBlock: function(v,
|
|
5000
|
+
_doProcessBlock: function(v, p) {
|
|
5001
5001
|
for (var T = 0; T < 16; T++) {
|
|
5002
|
-
var
|
|
5003
|
-
v[
|
|
5002
|
+
var b = p + T, S = v[b];
|
|
5003
|
+
v[b] = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360;
|
|
5004
5004
|
}
|
|
5005
|
-
var j = this._hash.words, L = v[
|
|
5005
|
+
var j = this._hash.words, L = v[p + 0], w = v[p + 1], P = v[p + 2], H = v[p + 3], Z = v[p + 4], R = v[p + 5], ae = v[p + 6], ie = v[p + 7], se = v[p + 8], Q = v[p + 9], $ = v[p + 10], re = v[p + 11], me = v[p + 12], ge = v[p + 13], ue = v[p + 14], ne = v[p + 15], y = j[0], C = j[1], F = j[2], x = j[3];
|
|
5006
5006
|
y = g(y, C, F, x, L, 7, u[0]), x = g(x, y, C, F, w, 12, u[1]), F = g(F, x, y, C, P, 17, u[2]), C = g(C, F, x, y, H, 22, u[3]), y = g(y, C, F, x, Z, 7, u[4]), x = g(x, y, C, F, R, 12, u[5]), F = g(F, x, y, C, ae, 17, u[6]), C = g(C, F, x, y, ie, 22, u[7]), y = g(y, C, F, x, se, 7, u[8]), x = g(x, y, C, F, Q, 12, u[9]), F = g(F, x, y, C, $, 17, u[10]), C = g(C, F, x, y, re, 22, u[11]), y = g(y, C, F, x, me, 7, u[12]), x = g(x, y, C, F, ge, 12, u[13]), F = g(F, x, y, C, ue, 17, u[14]), C = g(C, F, x, y, ne, 22, u[15]), y = f(y, C, F, x, w, 5, u[16]), x = f(x, y, C, F, ae, 9, u[17]), F = f(F, x, y, C, re, 14, u[18]), C = f(C, F, x, y, L, 20, u[19]), y = f(y, C, F, x, R, 5, u[20]), x = f(x, y, C, F, $, 9, u[21]), F = f(F, x, y, C, ne, 14, u[22]), C = f(C, F, x, y, Z, 20, u[23]), y = f(y, C, F, x, Q, 5, u[24]), x = f(x, y, C, F, ue, 9, u[25]), F = f(F, x, y, C, H, 14, u[26]), C = f(C, F, x, y, se, 20, u[27]), y = f(y, C, F, x, ge, 5, u[28]), x = f(x, y, C, F, P, 9, u[29]), F = f(F, x, y, C, ie, 14, u[30]), C = f(C, F, x, y, me, 20, u[31]), y = _(y, C, F, x, R, 4, u[32]), x = _(x, y, C, F, se, 11, u[33]), F = _(F, x, y, C, re, 16, u[34]), C = _(C, F, x, y, ue, 23, u[35]), y = _(y, C, F, x, w, 4, u[36]), x = _(x, y, C, F, Z, 11, u[37]), F = _(F, x, y, C, ie, 16, u[38]), C = _(C, F, x, y, $, 23, u[39]), y = _(y, C, F, x, ge, 4, u[40]), x = _(x, y, C, F, L, 11, u[41]), F = _(F, x, y, C, H, 16, u[42]), C = _(C, F, x, y, ae, 23, u[43]), y = _(y, C, F, x, Q, 4, u[44]), x = _(x, y, C, F, me, 11, u[45]), F = _(F, x, y, C, ne, 16, u[46]), C = _(C, F, x, y, P, 23, u[47]), y = m(y, C, F, x, L, 6, u[48]), x = m(x, y, C, F, ie, 10, u[49]), F = m(F, x, y, C, ue, 15, u[50]), C = m(C, F, x, y, R, 21, u[51]), y = m(y, C, F, x, me, 6, u[52]), x = m(x, y, C, F, H, 10, u[53]), F = m(F, x, y, C, $, 15, u[54]), C = m(C, F, x, y, w, 21, u[55]), y = m(y, C, F, x, se, 6, u[56]), x = m(x, y, C, F, ne, 10, u[57]), F = m(F, x, y, C, ae, 15, u[58]), C = m(C, F, x, y, ge, 21, u[59]), y = m(y, C, F, x, Z, 6, u[60]), x = m(x, y, C, F, re, 10, u[61]), F = m(F, x, y, C, P, 15, u[62]), C = m(C, F, x, y, Q, 21, u[63]), j[0] = j[0] + y | 0, j[1] = j[1] + C | 0, j[2] = j[2] + F | 0, j[3] = j[3] + x | 0;
|
|
5007
5007
|
},
|
|
5008
5008
|
_doFinalize: function() {
|
|
5009
|
-
var v = this._data,
|
|
5010
|
-
|
|
5009
|
+
var v = this._data, p = v.words, T = this._nDataBytes * 8, b = v.sigBytes * 8;
|
|
5010
|
+
p[b >>> 5] |= 128 << 24 - b % 32;
|
|
5011
5011
|
var S = n.floor(T / 4294967296), j = T;
|
|
5012
|
-
|
|
5012
|
+
p[(b + 64 >>> 9 << 4) + 15] = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, p[(b + 64 >>> 9 << 4) + 14] = (j << 8 | j >>> 24) & 16711935 | (j << 24 | j >>> 8) & 4278255360, v.sigBytes = (p.length + 1) * 4, this._process();
|
|
5013
5013
|
for (var L = this._hash, w = L.words, P = 0; P < 4; P++) {
|
|
5014
5014
|
var H = w[P];
|
|
5015
5015
|
w[P] = (H << 8 | H >>> 24) & 16711935 | (H << 24 | H >>> 8) & 4278255360;
|
|
@@ -5021,21 +5021,21 @@ function sm() {
|
|
|
5021
5021
|
return v._hash = this._hash.clone(), v;
|
|
5022
5022
|
}
|
|
5023
5023
|
});
|
|
5024
|
-
function g(v,
|
|
5025
|
-
var w = v + (
|
|
5026
|
-
return (w << j | w >>> 32 - j) +
|
|
5024
|
+
function g(v, p, T, b, S, j, L) {
|
|
5025
|
+
var w = v + (p & T | ~p & b) + S + L;
|
|
5026
|
+
return (w << j | w >>> 32 - j) + p;
|
|
5027
5027
|
}
|
|
5028
|
-
function f(v,
|
|
5029
|
-
var w = v + (
|
|
5030
|
-
return (w << j | w >>> 32 - j) +
|
|
5028
|
+
function f(v, p, T, b, S, j, L) {
|
|
5029
|
+
var w = v + (p & b | T & ~b) + S + L;
|
|
5030
|
+
return (w << j | w >>> 32 - j) + p;
|
|
5031
5031
|
}
|
|
5032
|
-
function _(v,
|
|
5033
|
-
var w = v + (
|
|
5034
|
-
return (w << j | w >>> 32 - j) +
|
|
5032
|
+
function _(v, p, T, b, S, j, L) {
|
|
5033
|
+
var w = v + (p ^ T ^ b) + S + L;
|
|
5034
|
+
return (w << j | w >>> 32 - j) + p;
|
|
5035
5035
|
}
|
|
5036
|
-
function m(v,
|
|
5037
|
-
var w = v + (T ^ (
|
|
5038
|
-
return (w << j | w >>> 32 - j) +
|
|
5036
|
+
function m(v, p, T, b, S, j, L) {
|
|
5037
|
+
var w = v + (T ^ (p | ~b)) + S + L;
|
|
5038
|
+
return (w << j | w >>> 32 - j) + p;
|
|
5039
5039
|
}
|
|
5040
5040
|
o.MD5 = a._createHelper(d), o.HmacMD5 = a._createHmacHelper(d);
|
|
5041
5041
|
}(Math), i.MD5;
|
|
@@ -5189,7 +5189,7 @@ function Nl(t) {
|
|
|
5189
5189
|
);
|
|
5190
5190
|
return {
|
|
5191
5191
|
c() {
|
|
5192
|
-
e =
|
|
5192
|
+
e = k("div"), i = k("div"), n = k("video"), f && f.c(), l = J(), m && m.c(), a = J(), v && v.c(), ti(n, "preload", "metadata"), n.playsInline = !0, ti(n, "disablepictureinpicture", ""), ti(n, "class", "svelte-1ywlrd6"), /*duration*/
|
|
5193
5193
|
t[3] === void 0 && ft(() => (
|
|
5194
5194
|
/*video_1_durationchange_handler*/
|
|
5195
5195
|
t[66].call(n)
|
|
@@ -5218,8 +5218,8 @@ function Nl(t) {
|
|
|
5218
5218
|
), ee(e, "headless", !/*showUserInterface*/
|
|
5219
5219
|
t[15]);
|
|
5220
5220
|
},
|
|
5221
|
-
m(
|
|
5222
|
-
M(
|
|
5221
|
+
m(p, T) {
|
|
5222
|
+
M(p, e, T), h(e, i), h(i, n), f && f.m(n, null), t[65](n), isNaN(
|
|
5223
5223
|
/*playbackRate*/
|
|
5224
5224
|
t[4]
|
|
5225
5225
|
) || (n.playbackRate = /*playbackRate*/
|
|
@@ -5299,63 +5299,63 @@ function Nl(t) {
|
|
|
5299
5299
|
)
|
|
5300
5300
|
], d = !0);
|
|
5301
5301
|
},
|
|
5302
|
-
p(
|
|
5302
|
+
p(p, T) {
|
|
5303
5303
|
/*hls*/
|
|
5304
|
-
|
|
5304
|
+
p[18] !== "pending" && !window.disableMediaLoad ? f ? f.p(p, T) : (f = Rl(p), f.c(), f.m(n, null)) : f && (f.d(1), f = null), !o && T[0] & /*time*/
|
|
5305
5305
|
524288 && !isNaN(
|
|
5306
5306
|
/*time*/
|
|
5307
|
-
|
|
5307
|
+
p[19]
|
|
5308
5308
|
) && (n.currentTime = /*time*/
|
|
5309
|
-
|
|
5309
|
+
p[19]), o = !1, T[0] & /*playbackRate*/
|
|
5310
5310
|
16 && !isNaN(
|
|
5311
5311
|
/*playbackRate*/
|
|
5312
|
-
|
|
5312
|
+
p[4]
|
|
5313
5313
|
) && (n.playbackRate = /*playbackRate*/
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
270532608 && I(m, 1)) : (m = Ul(
|
|
5314
|
+
p[4]), /*vastUrl*/
|
|
5315
|
+
p[21] || /*preloadVastUrl*/
|
|
5316
|
+
p[28] ? m ? (m.p(p, T), T[0] & /*vastUrl, preloadVastUrl*/
|
|
5317
|
+
270532608 && I(m, 1)) : (m = Ul(p), m.c(), I(m, 1), m.m(i, a)) : m && (De(), z(m, 1, 1, () => {
|
|
5318
5318
|
m = null;
|
|
5319
5319
|
}), xe()), /*customUrl*/
|
|
5320
|
-
|
|
5320
|
+
p[29] ? v ? v.p(p, T) : (v = ql(p), v.c(), v.m(i, null)) : v && (v.d(1), v = null), (!u || T[0] & /*position*/
|
|
5321
5321
|
67108864 && r !== (r = "media-element " + /*position*/
|
|
5322
|
-
|
|
5322
|
+
p[26] + " svelte-1ywlrd6")) && ti(e, "class", r), (!u || T[0] & /*style*/
|
|
5323
5323
|
33554432) && ti(
|
|
5324
5324
|
e,
|
|
5325
5325
|
"style",
|
|
5326
5326
|
/*style*/
|
|
5327
|
-
|
|
5327
|
+
p[25]
|
|
5328
5328
|
), (!u || T[0] & /*position, timeout*/
|
|
5329
5329
|
83886080) && ee(
|
|
5330
5330
|
e,
|
|
5331
5331
|
"animating",
|
|
5332
5332
|
/*timeout*/
|
|
5333
|
-
|
|
5333
|
+
p[24]
|
|
5334
5334
|
), (!u || T[0] & /*position, videoBehindStatic, videoBehindStaticWidget*/
|
|
5335
5335
|
201392128) && ee(
|
|
5336
5336
|
e,
|
|
5337
5337
|
"behind-static",
|
|
5338
5338
|
/*videoBehindStatic*/
|
|
5339
|
-
|
|
5340
|
-
|
|
5339
|
+
p[16] || /*videoBehindStaticWidget*/
|
|
5340
|
+
p[27]
|
|
5341
5341
|
), (!u || T[0] & /*position, videoBehindSlidingWidget*/
|
|
5342
5342
|
71303168) && ee(
|
|
5343
5343
|
e,
|
|
5344
5344
|
"behind-sliding-widget",
|
|
5345
5345
|
/*videoBehindSlidingWidget*/
|
|
5346
|
-
|
|
5346
|
+
p[22]
|
|
5347
5347
|
), (!u || T[0] & /*position, showUserInterface*/
|
|
5348
5348
|
67141632) && ee(e, "headless", !/*showUserInterface*/
|
|
5349
|
-
|
|
5349
|
+
p[15]);
|
|
5350
5350
|
},
|
|
5351
|
-
i(
|
|
5351
|
+
i(p) {
|
|
5352
5352
|
u || (I(m), u = !0);
|
|
5353
5353
|
},
|
|
5354
|
-
o(
|
|
5354
|
+
o(p) {
|
|
5355
5355
|
z(m), u = !1;
|
|
5356
5356
|
},
|
|
5357
|
-
d(
|
|
5358
|
-
|
|
5357
|
+
d(p) {
|
|
5358
|
+
p && V(e), f && f.d(), t[65](null), m && m.d(), v && v.d(), d = !1, mt(g);
|
|
5359
5359
|
}
|
|
5360
5360
|
};
|
|
5361
5361
|
}
|
|
@@ -5404,7 +5404,7 @@ function Fl(t) {
|
|
|
5404
5404
|
let e, i, n, o, s;
|
|
5405
5405
|
return {
|
|
5406
5406
|
c() {
|
|
5407
|
-
e =
|
|
5407
|
+
e = k("source"), zi(e.src, i = `${/*url*/
|
|
5408
5408
|
t[82]}${jl(
|
|
5409
5409
|
/*isFirstLoad*/
|
|
5410
5410
|
t[23],
|
|
@@ -5614,7 +5614,7 @@ function ql(t) {
|
|
|
5614
5614
|
let e, i, n, o;
|
|
5615
5615
|
return {
|
|
5616
5616
|
c() {
|
|
5617
|
-
e =
|
|
5617
|
+
e = k("a"), i = te(" "), ti(e, "class", "custom-advert-link svelte-1ywlrd6"), ti(
|
|
5618
5618
|
e,
|
|
5619
5619
|
"href",
|
|
5620
5620
|
/*customUrl*/
|
|
@@ -5669,7 +5669,7 @@ function bm(t) {
|
|
|
5669
5669
|
};
|
|
5670
5670
|
}
|
|
5671
5671
|
function km(t, e, i) {
|
|
5672
|
-
let n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
5672
|
+
let n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, { content: L } = e, { contentIndex: w } = e, { introOrOutro: P } = e, { activeAdvert: H } = e, { preloadAdvert: Z } = e, { advertConsent: R } = e, { maxImageSize: ae } = e, { projectId: ie } = e, { playlistId: se } = e, { contentId: Q } = e, { contentLanguage: $ } = e, { platform: re } = e, { vendorIdentifier: me } = e, { bundleIdentifier: ge } = e, { playbackState: ue } = e, { duration: ne } = e, { currentTime: y } = e, { playbackRate: C } = e, { prevPercentage: F } = e, { showUserInterface: x } = e, { videoBehindWidget: Ve } = e, { videoBehindStatic: Me } = e, { videoMightBeShown: Ne } = e, { widgetPosition: D } = e, { widgetWidth: he } = e, { widgetTarget: Be } = e, { onEvent: Oe = () => {
|
|
5673
5673
|
} } = e, { metadataLoaded: Ze } = e, { video: pe = void 0 } = e, Ue, Ie, tt, je = 0, ut = 0, He = y, Xe, Qe;
|
|
5674
5674
|
const ht = (q) => i(19, je = q), Bt = () => Ne, Ke = () => {
|
|
5675
5675
|
var q;
|
|
@@ -5859,15 +5859,15 @@ function km(t, e, i) {
|
|
|
5859
5859
|
1 | t.$$.dirty[1] & /*controlPlayback*/
|
|
5860
5860
|
1073741824 && m && (ue === "playing" ? Ke() : yt()), t.$$.dirty[1] & /*videoBehindWidget, widgetTarget*/
|
|
5861
5861
|
4456448 && i(27, v = Ve && Be), t.$$.dirty[1] & /*videoBehindWidget, widgetTarget*/
|
|
5862
|
-
4456448 && i(22,
|
|
5862
|
+
4456448 && i(22, p = Ve && !Be), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
|
|
5863
5863
|
4194304 | t.$$.dirty[1] & /*widgetPosition*/
|
|
5864
|
-
1048576 && i(26, T =
|
|
5864
|
+
1048576 && i(26, T = p && D !== "auto" ? `fixed-${D}` : ""), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
|
|
5865
5865
|
4194304 | t.$$.dirty[1] & /*widgetWidth*/
|
|
5866
|
-
2097152 && i(25,
|
|
5866
|
+
2097152 && i(25, b = p ? `width: ${he}` : ""), t.$$.dirty[0] & /*currentTime*/
|
|
5867
5867
|
2 | t.$$.dirty[1] & /*introOrOutro, activeAdvert, atTheStart, segments*/
|
|
5868
5868
|
402751488 && i(57, j = P || H || S ? -1 : _l(s, y)), t.$$.dirty[1] & /*segmentIndex*/
|
|
5869
5869
|
67108864 && wt(), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
|
|
5870
|
-
4194304 &&
|
|
5870
|
+
4194304 && p && Ce();
|
|
5871
5871
|
}, [
|
|
5872
5872
|
ue,
|
|
5873
5873
|
y,
|
|
@@ -5891,10 +5891,10 @@ function km(t, e, i) {
|
|
|
5891
5891
|
je,
|
|
5892
5892
|
u,
|
|
5893
5893
|
d,
|
|
5894
|
-
|
|
5894
|
+
p,
|
|
5895
5895
|
l,
|
|
5896
5896
|
tt,
|
|
5897
|
-
|
|
5897
|
+
b,
|
|
5898
5898
|
T,
|
|
5899
5899
|
v,
|
|
5900
5900
|
_,
|
|
@@ -6171,9 +6171,9 @@ function wm(t, { delay: e = 0, duration: i = 400, easing: n = Sm, x: o = 0, y: s
|
|
|
6171
6171
|
delay: e,
|
|
6172
6172
|
duration: i,
|
|
6173
6173
|
easing: n,
|
|
6174
|
-
css: (v,
|
|
6174
|
+
css: (v, p) => `
|
|
6175
6175
|
transform: ${u} translate(${(1 - v) * g}${f}, ${(1 - v) * _}${m});
|
|
6176
|
-
opacity: ${r - d *
|
|
6176
|
+
opacity: ${r - d * p}`
|
|
6177
6177
|
};
|
|
6178
6178
|
}
|
|
6179
6179
|
var mr = function() {
|
|
@@ -6673,7 +6673,7 @@ function nh(t) {
|
|
|
6673
6673
|
}
|
|
6674
6674
|
return i = u(t), n = r[i] = a[i](t), {
|
|
6675
6675
|
c() {
|
|
6676
|
-
e =
|
|
6676
|
+
e = k("button"), n.c(), Vn(e, "type", "button"), Vn(e, "class", "play-pause-button svelte-1dxzkq6"), Vn(
|
|
6677
6677
|
e,
|
|
6678
6678
|
"tabindex",
|
|
6679
6679
|
/*tabindex*/
|
|
@@ -6793,7 +6793,7 @@ function rh(t) {
|
|
|
6793
6793
|
let e, i, n, o, s, l, a;
|
|
6794
6794
|
return {
|
|
6795
6795
|
c() {
|
|
6796
|
-
e =
|
|
6796
|
+
e = k("div"), i = k("span"), n = te(
|
|
6797
6797
|
/*rate*/
|
|
6798
6798
|
t[0]
|
|
6799
6799
|
), o = te("x"), gn(
|
|
@@ -7347,7 +7347,7 @@ function Wh(t) {
|
|
|
7347
7347
|
}
|
|
7348
7348
|
return ~(i = u(t)) && (n = r[i] = a[i](t)), {
|
|
7349
7349
|
c() {
|
|
7350
|
-
e =
|
|
7350
|
+
e = k("button"), n && n.c(), Oo(e, "type", "button"), Oo(e, "class", "prev-button svelte-tawm7k"), Oo(
|
|
7351
7351
|
e,
|
|
7352
7352
|
"aria-label",
|
|
7353
7353
|
/*ariaLabel*/
|
|
@@ -7807,7 +7807,7 @@ function e0(t) {
|
|
|
7807
7807
|
}
|
|
7808
7808
|
return ~(i = u(t)) && (n = r[i] = a[i](t)), {
|
|
7809
7809
|
c() {
|
|
7810
|
-
e =
|
|
7810
|
+
e = k("button"), n && n.c(), Eo(e, "type", "button"), Eo(e, "class", "next-button svelte-1ukrri8"), Eo(
|
|
7811
7811
|
e,
|
|
7812
7812
|
"aria-label",
|
|
7813
7813
|
/*ariaLabel*/
|
|
@@ -7852,12 +7852,12 @@ function t0(t, e, i) {
|
|
|
7852
7852
|
let n, o, s, l, a, { style: r = "segments" } = e, { scale: u = 1 } = e, { color: d = "#323232" } = e, { onEvent: g = () => {
|
|
7853
7853
|
} } = e, f;
|
|
7854
7854
|
const _ = () => {
|
|
7855
|
-
let m, v,
|
|
7856
|
-
s ? (m = "PressedNextSegment", v = "The next segment button was pressed.") : l ? (m = "PressedSeekAhead", v = "The seek ahead button was pressed.",
|
|
7855
|
+
let m, v, p;
|
|
7856
|
+
s ? (m = "PressedNextSegment", v = "The next segment button was pressed.") : l ? (m = "PressedSeekAhead", v = "The seek ahead button was pressed.", p = { seconds: o }) : a && (m = "PressedNextTrack", v = "The next track button was pressed."), g(ye(Jt({
|
|
7857
7857
|
type: m,
|
|
7858
7858
|
description: v,
|
|
7859
7859
|
initiatedBy: "user"
|
|
7860
|
-
},
|
|
7860
|
+
}, p)));
|
|
7861
7861
|
};
|
|
7862
7862
|
return t.$$set = (m) => {
|
|
7863
7863
|
"style" in m && i(8, r = m.style), "scale" in m && i(0, u = m.scale), "color" in m && i(1, d = m.color), "onEvent" in m && i(9, g = m.onEvent);
|
|
@@ -8144,7 +8144,7 @@ function _0(t) {
|
|
|
8144
8144
|
}
|
|
8145
8145
|
return i = d(t), n = u[i] = r[i](t), {
|
|
8146
8146
|
c() {
|
|
8147
|
-
e =
|
|
8147
|
+
e = k("button"), n.c(), Mo(e, "type", "button"), Mo(e, "class", o = "playlist-button " + /*playerStyle*/
|
|
8148
8148
|
t[1] + " svelte-xhif6r"), Kl(e, "outline-offset", 5 * /*scale*/
|
|
8149
8149
|
t[2] + "px"), Mo(e, "aria-label", pt("togglePlaylist"));
|
|
8150
8150
|
},
|
|
@@ -8250,7 +8250,7 @@ function p0(t) {
|
|
|
8250
8250
|
);
|
|
8251
8251
|
return {
|
|
8252
8252
|
c() {
|
|
8253
|
-
e =
|
|
8253
|
+
e = k("div"), s && s.c(), Jl(e, "class", i = "secondary-buttons " + /*playerStyle*/
|
|
8254
8254
|
t[0] + " " + /*controlsOrder*/
|
|
8255
8255
|
t[5] + " svelte-1s4l1fa"), Gl(
|
|
8256
8256
|
e,
|
|
@@ -8475,7 +8475,7 @@ function Xl(t) {
|
|
|
8475
8475
|
}
|
|
8476
8476
|
}), {
|
|
8477
8477
|
c() {
|
|
8478
|
-
e =
|
|
8478
|
+
e = k("button"), fe(i.$$.fragment), Ds(e, "type", "button"), Ds(e, "class", "download-button svelte-1r5l0am"), jo(e, "outline-offset", 4.8 * /*scale*/
|
|
8479
8479
|
t[0] + "px"), jo(
|
|
8480
8480
|
e,
|
|
8481
8481
|
"padding",
|
|
@@ -8556,21 +8556,21 @@ function O0(t) {
|
|
|
8556
8556
|
function E0(t, e, i) {
|
|
8557
8557
|
let { downloadFormats: n } = e, { contentIndex: o } = e, { audio: s } = e, { video: l } = e, { scale: a = 1 } = e, { color: r = "#323232" } = e, { padding: u = 0 } = e, { isVisible: d } = e, { onEvent: g = () => {
|
|
8558
8558
|
} } = e;
|
|
8559
|
-
const f = (
|
|
8559
|
+
const f = (p, T, b) => {
|
|
8560
8560
|
var S, j;
|
|
8561
|
-
for (const L of
|
|
8561
|
+
for (const L of p) {
|
|
8562
8562
|
for (const [w, P] of (T || []).entries())
|
|
8563
8563
|
if ((S = P.url) != null && S.endsWith(`.${L}`))
|
|
8564
8564
|
return [w, -1];
|
|
8565
|
-
for (const [w, P] of (
|
|
8565
|
+
for (const [w, P] of (b || []).entries())
|
|
8566
8566
|
if ((j = P.url) != null && j.endsWith(`.${L}`))
|
|
8567
8567
|
return [-1, w];
|
|
8568
8568
|
}
|
|
8569
8569
|
return [-1, -1];
|
|
8570
8570
|
};
|
|
8571
8571
|
let _, m;
|
|
8572
|
-
const v = (
|
|
8573
|
-
|
|
8572
|
+
const v = (p) => {
|
|
8573
|
+
p.stopPropagation(), g(ye({
|
|
8574
8574
|
type: "PressedDownload",
|
|
8575
8575
|
description: "The download button next to a playlist item was pressed.",
|
|
8576
8576
|
initiatedBy: "user",
|
|
@@ -8579,8 +8579,8 @@ function E0(t, e, i) {
|
|
|
8579
8579
|
videoIndex: m
|
|
8580
8580
|
}));
|
|
8581
8581
|
};
|
|
8582
|
-
return t.$$set = (
|
|
8583
|
-
"downloadFormats" in
|
|
8582
|
+
return t.$$set = (p) => {
|
|
8583
|
+
"downloadFormats" in p && i(7, n = p.downloadFormats), "contentIndex" in p && i(8, o = p.contentIndex), "audio" in p && i(9, s = p.audio), "video" in p && i(10, l = p.video), "scale" in p && i(0, a = p.scale), "color" in p && i(1, r = p.color), "padding" in p && i(2, u = p.padding), "isVisible" in p && i(6, d = p.isVisible), "onEvent" in p && i(11, g = p.onEvent);
|
|
8584
8584
|
}, t.$$.update = () => {
|
|
8585
8585
|
t.$$.dirty & /*downloadFormats, audio, video*/
|
|
8586
8586
|
1664 && i(3, [_, m] = f(n, s, l), _, (i(4, m), i(7, n), i(9, s), i(10, l))), t.$$.dirty & /*audioIndex, videoIndex*/
|
|
@@ -8745,7 +8745,7 @@ function R0(t) {
|
|
|
8745
8745
|
}
|
|
8746
8746
|
}), {
|
|
8747
8747
|
c() {
|
|
8748
|
-
e =
|
|
8748
|
+
e = k("button"), fe(i.$$.fragment), xs(e, "type", "button"), xs(e, "class", "maximize-button svelte-fk321i"), Ql(e, "outline-offset", 6.4 * /*scale*/
|
|
8749
8749
|
t[0] + "px"), xs(e, "aria-label", pt("maximizeVideo"));
|
|
8750
8750
|
},
|
|
8751
8751
|
m(l, a) {
|
|
@@ -8893,7 +8893,7 @@ function X0(t) {
|
|
|
8893
8893
|
}
|
|
8894
8894
|
}), {
|
|
8895
8895
|
c() {
|
|
8896
|
-
e =
|
|
8896
|
+
e = k("button"), fe(i.$$.fragment), Ns(e, "type", "button"), Ns(e, "class", "close-widget-button svelte-1bnl89m"), zo(
|
|
8897
8897
|
e,
|
|
8898
8898
|
"margin",
|
|
8899
8899
|
/*margin*/
|
|
@@ -9052,7 +9052,7 @@ function aA(t) {
|
|
|
9052
9052
|
let e, i, n, o, s;
|
|
9053
9053
|
return {
|
|
9054
9054
|
c() {
|
|
9055
|
-
e =
|
|
9055
|
+
e = k("a"), i = te(
|
|
9056
9056
|
/*displayText*/
|
|
9057
9057
|
t[7]
|
|
9058
9058
|
), pn(e, "class", n = "advert-link " + /*playerStyle*/
|
|
@@ -9137,8 +9137,8 @@ function rA(t, e, i) {
|
|
|
9137
9137
|
initiatedBy: "user"
|
|
9138
9138
|
}));
|
|
9139
9139
|
};
|
|
9140
|
-
return t.$$set = (
|
|
9141
|
-
"href" in
|
|
9140
|
+
return t.$$set = (p) => {
|
|
9141
|
+
"href" in p && i(9, l = p.href), "scale" in p && i(10, a = p.scale), "color" in p && i(11, r = p.color), "playerStyle" in p && i(0, u = p.playerStyle), "controlsOrder" in p && i(1, d = p.controlsOrder), "largeImage" in p && i(2, g = p.largeImage), "isMobile" in p && i(3, f = p.isMobile), "endVisible" in p && i(4, _ = p.endVisible), "onEvent" in p && i(12, m = p.onEvent);
|
|
9142
9142
|
}, t.$$.update = () => {
|
|
9143
9143
|
t.$$.dirty & /*href*/
|
|
9144
9144
|
512 && i(5, n = br(l)), t.$$.dirty & /*hrefWithProtocol*/
|
|
@@ -9358,7 +9358,7 @@ function yA(t) {
|
|
|
9358
9358
|
let e;
|
|
9359
9359
|
return {
|
|
9360
9360
|
c() {
|
|
9361
|
-
e =
|
|
9361
|
+
e = k("div");
|
|
9362
9362
|
},
|
|
9363
9363
|
m(i, n) {
|
|
9364
9364
|
M(i, e, n);
|
|
@@ -9386,7 +9386,7 @@ function vA(t) {
|
|
|
9386
9386
|
}
|
|
9387
9387
|
}), {
|
|
9388
9388
|
c() {
|
|
9389
|
-
e =
|
|
9389
|
+
e = k("a"), fe(i.$$.fragment), Wn(e, "class", n = "advert-button " + /*playerStyle*/
|
|
9390
9390
|
t[2] + " " + /*controlsOrder*/
|
|
9391
9391
|
t[3] + " svelte-17nxso5"), Wn(
|
|
9392
9392
|
e,
|
|
@@ -9636,7 +9636,7 @@ function VA(t) {
|
|
|
9636
9636
|
t[0]
|
|
9637
9637
|
) } }), {
|
|
9638
9638
|
c() {
|
|
9639
|
-
e =
|
|
9639
|
+
e = k("a"), fe(i.$$.fragment), Lo(e, "class", "beyondwords svelte-vl0esb"), Lo(e, "href", "https://beyondwords.io/"), Lo(e, "target", "_blank"), ea(e, "outline-offset", 6.4 * /*scale*/
|
|
9640
9640
|
t[0] + "px"), Lo(e, "aria-label", pt("visitBeyondWords")), ee(
|
|
9641
9641
|
e,
|
|
9642
9642
|
"visible",
|
|
@@ -9734,7 +9734,7 @@ function MA(t) {
|
|
|
9734
9734
|
}
|
|
9735
9735
|
}), {
|
|
9736
9736
|
c() {
|
|
9737
|
-
e =
|
|
9737
|
+
e = k("a"), fe(i.$$.fragment), Jn(e, "class", "source-url-button svelte-1umb4uf"), Jn(
|
|
9738
9738
|
e,
|
|
9739
9739
|
"href",
|
|
9740
9740
|
/*href*/
|
|
@@ -9825,7 +9825,7 @@ function xA(t) {
|
|
|
9825
9825
|
let e, i;
|
|
9826
9826
|
return {
|
|
9827
9827
|
c() {
|
|
9828
|
-
e =
|
|
9828
|
+
e = k("img"), Ai(e, "class", "large-image svelte-lbzabl"), zi(e.src, i = /*src*/
|
|
9829
9829
|
t[0]) || Ai(e, "src", i), Ai(
|
|
9830
9830
|
e,
|
|
9831
9831
|
"alt",
|
|
@@ -9878,7 +9878,7 @@ function NA(t) {
|
|
|
9878
9878
|
let e, i, n, o, s;
|
|
9879
9879
|
return {
|
|
9880
9880
|
c() {
|
|
9881
|
-
e =
|
|
9881
|
+
e = k("a"), i = k("img"), zi(i.src, n = /*src*/
|
|
9882
9882
|
t[0]) || Ai(i, "src", n), Ai(
|
|
9883
9883
|
i,
|
|
9884
9884
|
"alt",
|
|
@@ -10058,7 +10058,7 @@ function YA(t) {
|
|
|
10058
10058
|
), n;
|
|
10059
10059
|
return {
|
|
10060
10060
|
c() {
|
|
10061
|
-
e =
|
|
10061
|
+
e = k("div"), Do(e, "class", n = "player-title " + /*playerStyle*/
|
|
10062
10062
|
t[1] + " svelte-xrh20u"), Do(
|
|
10063
10063
|
e,
|
|
10064
10064
|
"style",
|
|
@@ -10181,7 +10181,7 @@ function JA(t) {
|
|
|
10181
10181
|
);
|
|
10182
10182
|
return {
|
|
10183
10183
|
c() {
|
|
10184
|
-
e =
|
|
10184
|
+
e = k("div"), Rs(e, "class", "content-title svelte-mtaayt"), Rs(
|
|
10185
10185
|
e,
|
|
10186
10186
|
"style",
|
|
10187
10187
|
/*style*/
|
|
@@ -10354,7 +10354,7 @@ function e_(t) {
|
|
|
10354
10354
|
let e, i, n, o, s, l, a;
|
|
10355
10355
|
return {
|
|
10356
10356
|
c() {
|
|
10357
|
-
e =
|
|
10357
|
+
e = k("div"), i = k("div"), n = J(), o = k("div"), hi(i, "class", "background svelte-1ubgowb"), On(
|
|
10358
10358
|
i,
|
|
10359
10359
|
"background",
|
|
10360
10360
|
/*color*/
|
|
@@ -10501,11 +10501,11 @@ function e_(t) {
|
|
|
10501
10501
|
}
|
|
10502
10502
|
function t_(t, e, i) {
|
|
10503
10503
|
let n, o, s, l, { progress: a = 0 } = e, { duration: r = 0 } = e, { fullWidth: u = !1 } = e, { readonly: d = !1 } = e, { color: g = "#323232" } = e, { onEvent: f = () => {
|
|
10504
|
-
} } = e, _, m, v = !0,
|
|
10504
|
+
} } = e, _, m, v = !0, p = !0;
|
|
10505
10505
|
const T = () => {
|
|
10506
|
-
i(13, v = !0), i(14,
|
|
10507
|
-
},
|
|
10508
|
-
i(13, v = !0), i(14,
|
|
10506
|
+
i(13, v = !0), i(14, p = !0);
|
|
10507
|
+
}, b = () => {
|
|
10508
|
+
i(13, v = !0), i(14, p = !1);
|
|
10509
10509
|
}, S = (R) => {
|
|
10510
10510
|
i(8, m = !0), f(ye({
|
|
10511
10511
|
type: "PressedProgressBar",
|
|
@@ -10566,7 +10566,7 @@ function t_(t, e, i) {
|
|
|
10566
10566
|
8192 && setTimeout(() => i(13, v = !1), 0), t.$$.dirty & /*updateSticky, progress, stickyProgress*/
|
|
10567
10567
|
73729 && i(16, n = v ? Math.max(0, Math.min(a, 1)) : n), t.$$.dirty & /*stickyProgress, duration*/
|
|
10568
10568
|
65538 && i(6, o = n * r), t.$$.dirty & /*readFullTime, duration*/
|
|
10569
|
-
16386 && i(15, s =
|
|
10569
|
+
16386 && i(15, s = p ? `${pt("outOfTotalTime")} ${P(r)}` : ""), t.$$.dirty & /*stickySeconds, outOf*/
|
|
10570
10570
|
32832 && i(9, l = `${P(o)} ${s}`);
|
|
10571
10571
|
}, [
|
|
10572
10572
|
a,
|
|
@@ -10580,10 +10580,10 @@ function t_(t, e, i) {
|
|
|
10580
10580
|
m,
|
|
10581
10581
|
l,
|
|
10582
10582
|
T,
|
|
10583
|
-
|
|
10583
|
+
b,
|
|
10584
10584
|
S,
|
|
10585
10585
|
v,
|
|
10586
|
-
|
|
10586
|
+
p,
|
|
10587
10587
|
s,
|
|
10588
10588
|
n,
|
|
10589
10589
|
Z
|
|
@@ -10703,7 +10703,7 @@ function l_(t) {
|
|
|
10703
10703
|
);
|
|
10704
10704
|
return {
|
|
10705
10705
|
c() {
|
|
10706
|
-
e =
|
|
10706
|
+
e = k("div"), i = Se("svg"), n = Se("circle"), s = J(), d && d.c(), zt(n, "cx", "50%"), zt(n, "cy", "50%"), zt(
|
|
10707
10707
|
n,
|
|
10708
10708
|
"r",
|
|
10709
10709
|
/*radius*/
|
|
@@ -10877,10 +10877,10 @@ function a_(t) {
|
|
|
10877
10877
|
};
|
|
10878
10878
|
}
|
|
10879
10879
|
function r_(t, e, i) {
|
|
10880
|
-
let n, o, s, l, a, r, { $$slots: u = {}, $$scope: d } = e, { progress: g = 0 } = e, { enabled: f = !1 } = e, { bold: _ } = e, { scale: m = 1 } = e, { color: v = "#323232" } = e, { onEvent:
|
|
10880
|
+
let n, o, s, l, a, r, { $$slots: u = {}, $$scope: d } = e, { progress: g = 0 } = e, { enabled: f = !1 } = e, { bold: _ } = e, { scale: m = 1 } = e, { color: v = "#323232" } = e, { onEvent: p = () => {
|
|
10881
10881
|
} } = e;
|
|
10882
10882
|
return t.$$set = (T) => {
|
|
10883
|
-
"progress" in T && i(9, g = T.progress), "enabled" in T && i(0, f = T.enabled), "bold" in T && i(10, _ = T.bold), "scale" in T && i(1, m = T.scale), "color" in T && i(2, v = T.color), "onEvent" in T && i(3,
|
|
10883
|
+
"progress" in T && i(9, g = T.progress), "enabled" in T && i(0, f = T.enabled), "bold" in T && i(10, _ = T.bold), "scale" in T && i(1, m = T.scale), "color" in T && i(2, v = T.color), "onEvent" in T && i(3, p = T.onEvent), "$$scope" in T && i(12, d = T.$$scope);
|
|
10884
10884
|
}, t.$$.update = () => {
|
|
10885
10885
|
t.$$.dirty & /*scale, bold*/
|
|
10886
10886
|
1026 && i(6, n = m * (_ ? 2.5 : 1.667)), t.$$.dirty & /*scale, strokeWidth, bold*/
|
|
@@ -10893,7 +10893,7 @@ function r_(t, e, i) {
|
|
|
10893
10893
|
f,
|
|
10894
10894
|
m,
|
|
10895
10895
|
v,
|
|
10896
|
-
|
|
10896
|
+
p,
|
|
10897
10897
|
l,
|
|
10898
10898
|
o,
|
|
10899
10899
|
n,
|
|
@@ -10967,7 +10967,7 @@ function f_(t) {
|
|
|
10967
10967
|
) + "", s;
|
|
10968
10968
|
return {
|
|
10969
10969
|
c() {
|
|
10970
|
-
e =
|
|
10970
|
+
e = k("span"), i = te(
|
|
10971
10971
|
/*text*/
|
|
10972
10972
|
t[0]
|
|
10973
10973
|
), n = te(" • "), s = te(o), c_(e, "class", "countdown-time svelte-mmsohq"), No(e, "font-size", 10 * /*scale*/
|
|
@@ -11053,7 +11053,7 @@ function v_(t) {
|
|
|
11053
11053
|
let e, i, n;
|
|
11054
11054
|
return {
|
|
11055
11055
|
c() {
|
|
11056
|
-
e =
|
|
11056
|
+
e = k("div"), i = te(
|
|
11057
11057
|
/*minutes*/
|
|
11058
11058
|
t[3]
|
|
11059
11059
|
), n = te(" min"), A_(e, "class", "duration-in-mins svelte-121qsze"), Ro(e, "font-size", 10 * /*scale*/
|
|
@@ -11150,7 +11150,7 @@ function w_(t) {
|
|
|
11150
11150
|
) + "", l;
|
|
11151
11151
|
return {
|
|
11152
11152
|
c() {
|
|
11153
|
-
e =
|
|
11153
|
+
e = k("span"), n = te(i), o = te(" / "), l = te(s), k_(e, "class", "playback-time svelte-17necdw"), Fo(e, "font-size", 10 * /*scale*/
|
|
11154
11154
|
t[2] + "px"), Fo(
|
|
11155
11155
|
e,
|
|
11156
11156
|
"color",
|
|
@@ -11398,7 +11398,7 @@ function E_(t) {
|
|
|
11398
11398
|
}
|
|
11399
11399
|
return n = u(t), o = r[n] = a[n](t), {
|
|
11400
11400
|
c() {
|
|
11401
|
-
e =
|
|
11401
|
+
e = k("div"), i = k("div"), o.c(), Xn(i, "class", "inner svelte-1o6uvjn"), Xn(e, "class", s = "time-indicator " + /*playerStyle*/
|
|
11402
11402
|
t[2] + " " + /*positionClasses*/
|
|
11403
11403
|
t[3] + " svelte-1o6uvjn"), Xn(
|
|
11404
11404
|
e,
|
|
@@ -11487,9 +11487,9 @@ function E_(t) {
|
|
|
11487
11487
|
};
|
|
11488
11488
|
}
|
|
11489
11489
|
function M_(t, e, i) {
|
|
11490
|
-
let n, o, s, l, a, { duration: r = 0 } = e, { currentTime: u = 0 } = e, { playerStyle: d } = e, { positionClasses: g } = e, { isMobile: f } = e, { isAdvert: _ } = e, { isStopped: m } = e, { collapsed: v } = e, { largeImage:
|
|
11490
|
+
let n, o, s, l, a, { duration: r = 0 } = e, { currentTime: u = 0 } = e, { playerStyle: d } = e, { positionClasses: g } = e, { isMobile: f } = e, { isAdvert: _ } = e, { isStopped: m } = e, { collapsed: v } = e, { largeImage: p } = e, { showBeyondWords: T } = e, { color: b = "323232" } = e;
|
|
11491
11491
|
return t.$$set = (S) => {
|
|
11492
|
-
"duration" in S && i(0, r = S.duration), "currentTime" in S && i(1, u = S.currentTime), "playerStyle" in S && i(2, d = S.playerStyle), "positionClasses" in S && i(3, g = S.positionClasses), "isMobile" in S && i(4, f = S.isMobile), "isAdvert" in S && i(5, _ = S.isAdvert), "isStopped" in S && i(6, m = S.isStopped), "collapsed" in S && i(14, v = S.collapsed), "largeImage" in S && i(7,
|
|
11492
|
+
"duration" in S && i(0, r = S.duration), "currentTime" in S && i(1, u = S.currentTime), "playerStyle" in S && i(2, d = S.playerStyle), "positionClasses" in S && i(3, g = S.positionClasses), "isMobile" in S && i(4, f = S.isMobile), "isAdvert" in S && i(5, _ = S.isAdvert), "isStopped" in S && i(6, m = S.isStopped), "collapsed" in S && i(14, v = S.collapsed), "largeImage" in S && i(7, p = S.largeImage), "showBeyondWords" in S && i(8, T = S.showBeyondWords), "color" in S && i(9, b = S.color);
|
|
11493
11493
|
}, t.$$.update = () => {
|
|
11494
11494
|
t.$$.dirty & /*duration, currentTime*/
|
|
11495
11495
|
3 && i(13, n = Math.max(0, r - u)), t.$$.dirty & /*playerStyle*/
|
|
@@ -11505,9 +11505,9 @@ function M_(t, e, i) {
|
|
|
11505
11505
|
f,
|
|
11506
11506
|
_,
|
|
11507
11507
|
m,
|
|
11508
|
-
k,
|
|
11509
|
-
T,
|
|
11510
11508
|
p,
|
|
11509
|
+
T,
|
|
11510
|
+
b,
|
|
11511
11511
|
a,
|
|
11512
11512
|
l,
|
|
11513
11513
|
s,
|
|
@@ -11697,7 +11697,7 @@ function F_(t) {
|
|
|
11697
11697
|
), n;
|
|
11698
11698
|
return {
|
|
11699
11699
|
c() {
|
|
11700
|
-
e =
|
|
11700
|
+
e = k("span"), n = te(i), _i(e, "class", "number svelte-1hl1xir"), hn(
|
|
11701
11701
|
e,
|
|
11702
11702
|
"color",
|
|
11703
11703
|
/*textColor*/
|
|
@@ -11738,7 +11738,7 @@ function U_(t) {
|
|
|
11738
11738
|
}
|
|
11739
11739
|
}), {
|
|
11740
11740
|
c() {
|
|
11741
|
-
e =
|
|
11741
|
+
e = k("span"), fe(i.$$.fragment), _i(e, "class", "speaker svelte-1hl1xir");
|
|
11742
11742
|
},
|
|
11743
11743
|
m(o, s) {
|
|
11744
11744
|
M(o, e, s), ce(i, e, null), n = !0;
|
|
@@ -11763,7 +11763,7 @@ function U_(t) {
|
|
|
11763
11763
|
};
|
|
11764
11764
|
}
|
|
11765
11765
|
function ia(t) {
|
|
11766
|
-
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
11766
|
+
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S;
|
|
11767
11767
|
const j = [U_, F_], L = [];
|
|
11768
11768
|
function w(Z, R) {
|
|
11769
11769
|
return (
|
|
@@ -11855,7 +11855,7 @@ function ia(t) {
|
|
|
11855
11855
|
t[9] !== void 0 && (H.isVisible = /*downloadIsVisible*/
|
|
11856
11856
|
t[9]), m = new vr({ props: H }), oe.push(() => be(m, "isVisible", P)), {
|
|
11857
11857
|
c() {
|
|
11858
|
-
e =
|
|
11858
|
+
e = k("div"), i = k("button"), o.c(), s = J(), l = k("span"), fe(a.$$.fragment), r = J(), u = k("span"), fe(d.$$.fragment), f = J(), _ = k("span"), fe(m.$$.fragment), p = J(), _i(l, "class", "title svelte-1hl1xir"), ee(
|
|
11859
11859
|
l,
|
|
11860
11860
|
"download-is-visible",
|
|
11861
11861
|
/*downloadIsVisible*/
|
|
@@ -11870,7 +11870,7 @@ function ia(t) {
|
|
|
11870
11870
|
), _i(_, "class", "download svelte-1hl1xir"), _i(e, "class", "row svelte-1hl1xir");
|
|
11871
11871
|
},
|
|
11872
11872
|
m(Z, R) {
|
|
11873
|
-
M(Z, e, R), h(e, i), L[n].m(i, null), h(i, s), h(i, l), ce(a, l, null), h(i, r), h(i, u), ce(d, u, null), h(e, f), h(e, _), ce(m, _, null), h(e,
|
|
11873
|
+
M(Z, e, R), h(e, i), L[n].m(i, null), h(i, s), h(i, l), ce(a, l, null), h(i, r), h(i, u), ce(d, u, null), h(e, f), h(e, _), ce(m, _, null), h(e, p), T = !0, b || (S = [
|
|
11874
11874
|
K(
|
|
11875
11875
|
i,
|
|
11876
11876
|
"click",
|
|
@@ -11893,7 +11893,7 @@ function ia(t) {
|
|
|
11893
11893
|
t[15]
|
|
11894
11894
|
),
|
|
11895
11895
|
K(i, "mouseup", ri)
|
|
11896
|
-
],
|
|
11896
|
+
], b = !0);
|
|
11897
11897
|
},
|
|
11898
11898
|
p(Z, R) {
|
|
11899
11899
|
t = Z;
|
|
@@ -11964,7 +11964,7 @@ function ia(t) {
|
|
|
11964
11964
|
z(o), z(a.$$.fragment, Z), z(d.$$.fragment, Z), z(m.$$.fragment, Z), T = !1;
|
|
11965
11965
|
},
|
|
11966
11966
|
d(Z) {
|
|
11967
|
-
Z && V(e), L[n].d(), de(a), de(d), de(m),
|
|
11967
|
+
Z && V(e), L[n].d(), de(a), de(d), de(m), b = !1, mt(S);
|
|
11968
11968
|
}
|
|
11969
11969
|
}
|
|
11970
11970
|
);
|
|
@@ -11981,7 +11981,7 @@ function H_(t) {
|
|
|
11981
11981
|
});
|
|
11982
11982
|
return {
|
|
11983
11983
|
c() {
|
|
11984
|
-
e =
|
|
11984
|
+
e = k("div"), i = k("div");
|
|
11985
11985
|
for (let a = 0; a < s.length; a += 1)
|
|
11986
11986
|
s[a].c();
|
|
11987
11987
|
_i(i, "class", "scrollable svelte-1hl1xir"), _i(i, "tabindex", "-1"), _i(e, "class", "playlist svelte-1hl1xir"), hn(
|
|
@@ -12084,9 +12084,9 @@ function H_(t) {
|
|
|
12084
12084
|
};
|
|
12085
12085
|
}
|
|
12086
12086
|
function q_(t, e, i) {
|
|
12087
|
-
let n, o, s, l, { style: a = "auto" } = e, { downloadFormats: r = [] } = e, { larger: u = !1 } = e, { textColor: d = "#111" } = e, { backgroundColor: g = "#f5f5f5" } = e, { iconColor: f = "#000" } = e, { content: _ = [] } = e, { index: m = 0 } = e, { isMobile: v } = e, { onEvent:
|
|
12088
|
-
const
|
|
12089
|
-
|
|
12087
|
+
let n, o, s, l, { style: a = "auto" } = e, { downloadFormats: r = [] } = e, { larger: u = !1 } = e, { textColor: d = "#111" } = e, { backgroundColor: g = "#f5f5f5" } = e, { iconColor: f = "#000" } = e, { content: _ = [] } = e, { index: m = 0 } = e, { isMobile: v } = e, { onEvent: p } = e, T;
|
|
12088
|
+
const b = (w) => () => {
|
|
12089
|
+
p(ye({
|
|
12090
12090
|
type: "PressedPlaylistItem",
|
|
12091
12091
|
description: "A playlist item was pressed.",
|
|
12092
12092
|
initiatedBy: "user",
|
|
@@ -12111,7 +12111,7 @@ function q_(t, e, i) {
|
|
|
12111
12111
|
T = w, i(9, T);
|
|
12112
12112
|
}
|
|
12113
12113
|
return t.$$set = (w) => {
|
|
12114
|
-
"style" in w && i(16, a = w.style), "downloadFormats" in w && i(0, r = w.downloadFormats), "larger" in w && i(1, u = w.larger), "textColor" in w && i(2, d = w.textColor), "backgroundColor" in w && i(3, g = w.backgroundColor), "iconColor" in w && i(4, f = w.iconColor), "content" in w && i(5, _ = w.content), "index" in w && i(6, m = w.index), "isMobile" in w && i(7, v = w.isMobile), "onEvent" in w && i(8,
|
|
12114
|
+
"style" in w && i(16, a = w.style), "downloadFormats" in w && i(0, r = w.downloadFormats), "larger" in w && i(1, u = w.larger), "textColor" in w && i(2, d = w.textColor), "backgroundColor" in w && i(3, g = w.backgroundColor), "iconColor" in w && i(4, f = w.iconColor), "content" in w && i(5, _ = w.content), "index" in w && i(6, m = w.index), "isMobile" in w && i(7, v = w.isMobile), "onEvent" in w && i(8, p = w.onEvent);
|
|
12115
12115
|
}, t.$$.update = () => {
|
|
12116
12116
|
t.$$.dirty & /*style*/
|
|
12117
12117
|
65536 && i(17, n = a.split("-")), t.$$.dirty & /*parts*/
|
|
@@ -12127,12 +12127,12 @@ function q_(t, e, i) {
|
|
|
12127
12127
|
_,
|
|
12128
12128
|
m,
|
|
12129
12129
|
v,
|
|
12130
|
-
|
|
12130
|
+
p,
|
|
12131
12131
|
T,
|
|
12132
12132
|
l,
|
|
12133
12133
|
s,
|
|
12134
12134
|
o,
|
|
12135
|
-
|
|
12135
|
+
b,
|
|
12136
12136
|
S,
|
|
12137
12137
|
j,
|
|
12138
12138
|
a,
|
|
@@ -12231,7 +12231,7 @@ function G_(t) {
|
|
|
12231
12231
|
);
|
|
12232
12232
|
return {
|
|
12233
12233
|
c() {
|
|
12234
|
-
e =
|
|
12234
|
+
e = k("div"), l && l.c(), na(e, "class", "hoverable"), na(e, "role", "none");
|
|
12235
12235
|
},
|
|
12236
12236
|
m(a, r) {
|
|
12237
12237
|
M(a, e, r), l && l.m(e, null), i = !0, n || (o = [
|
|
@@ -12361,7 +12361,7 @@ function t2(t) {
|
|
|
12361
12361
|
);
|
|
12362
12362
|
return {
|
|
12363
12363
|
c() {
|
|
12364
|
-
e =
|
|
12364
|
+
e = k("div"), o && o.c(), Q_(e, "class", "visibility svelte-1exdg3");
|
|
12365
12365
|
},
|
|
12366
12366
|
m(s, l) {
|
|
12367
12367
|
M(s, e, l), o && o.m(e, null), t[8](e), i = !0;
|
|
@@ -12492,7 +12492,7 @@ function la(t) {
|
|
|
12492
12492
|
t[17] && aa(t);
|
|
12493
12493
|
return {
|
|
12494
12494
|
c() {
|
|
12495
|
-
e =
|
|
12495
|
+
e = k("div"), o && o.c(), Ci(e, "class", "video-placeholder svelte-1typsi4"), Ci(e, "style", i = /*videoPosterImage*/
|
|
12496
12496
|
t[17] ? `background-image: url(${/*videoPosterImage*/
|
|
12497
12497
|
t[17]})` : "");
|
|
12498
12498
|
},
|
|
@@ -12529,7 +12529,7 @@ function aa(t) {
|
|
|
12529
12529
|
) }
|
|
12530
12530
|
}), {
|
|
12531
12531
|
c() {
|
|
12532
|
-
fe(e.$$.fragment), i = J(), n =
|
|
12532
|
+
fe(e.$$.fragment), i = J(), n = k("span"), s = te(o), $o(
|
|
12533
12533
|
n,
|
|
12534
12534
|
"color",
|
|
12535
12535
|
/*activeTextColor*/
|
|
@@ -12670,7 +12670,7 @@ function ua(t) {
|
|
|
12670
12670
|
}
|
|
12671
12671
|
}), {
|
|
12672
12672
|
c() {
|
|
12673
|
-
e =
|
|
12673
|
+
e = k("div"), fe(i.$$.fragment), n = J(), fe(o.$$.fragment), Ci(e, "class", "summary svelte-1typsi4");
|
|
12674
12674
|
},
|
|
12675
12675
|
m(l, a) {
|
|
12676
12676
|
M(l, e, a), ce(i, e, null), h(e, n), ce(o, e, null), s = !0;
|
|
@@ -13691,7 +13691,7 @@ function ya(t) {
|
|
|
13691
13691
|
}
|
|
13692
13692
|
return ~(i = a(t)) && (n = l[i] = s[i](t)), {
|
|
13693
13693
|
c() {
|
|
13694
|
-
e =
|
|
13694
|
+
e = k("div"), n && n.c(), Ci(e, "class", "end svelte-1typsi4"), ee(
|
|
13695
13695
|
e,
|
|
13696
13696
|
"logo-image-right",
|
|
13697
13697
|
/*logoImagePosition*/
|
|
@@ -13842,7 +13842,7 @@ function _2(t) {
|
|
|
13842
13842
|
};
|
|
13843
13843
|
}
|
|
13844
13844
|
function y2(t) {
|
|
13845
|
-
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
13845
|
+
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P = (
|
|
13846
13846
|
/*isVideo*/
|
|
13847
13847
|
t[21] && /*videoPosterImage*/
|
|
13848
13848
|
(t[17] || !/*videoIsBehind*/
|
|
@@ -13974,13 +13974,13 @@ function y2(t) {
|
|
|
13974
13974
|
);
|
|
13975
13975
|
return {
|
|
13976
13976
|
c() {
|
|
13977
|
-
P && P.c(), e = J(), i =
|
|
13977
|
+
P && P.c(), e = J(), i = k("div"), H && H.c(), n = J(), Z && Z.c(), o = J(), s = k("div"), fe(l.$$.fragment), d = J(), Q && Q.c(), g = J(), $ && $.c(), f = J(), re && re.c(), _ = J(), fe(m.$$.fragment), v = J(), me && me.c(), p = J(), ge && ge.c(), T = J(), ue && ue.c(), b = J(), ne && ne.c(), Ci(s, "class", "controls svelte-1typsi4"), Ci(i, "class", "main svelte-1typsi4"), Ci(i, "role", "none"), Ci(i, "style", S = /*isVideo*/
|
|
13978
13978
|
t[21] ? "" : `background: ${/*activeBgColor*/
|
|
13979
13979
|
t[57]}`), ee(i, "no-image", !/*largeImage*/
|
|
13980
13980
|
t[48]);
|
|
13981
13981
|
},
|
|
13982
13982
|
m(y, C) {
|
|
13983
|
-
P && P.m(y, C), M(y, e, C), M(y, i, C), H && H.m(i, null), h(i, n), Z && Z.m(i, null), h(i, o), h(i, s), ce(l, s, null), h(s, d), Q && Q.m(s, null), h(s, g), $ && $.m(s, null), h(s, f), re && re.m(s, null), h(s, _), ce(m, s, null), h(s, v), me && me.m(s, null), h(s,
|
|
13983
|
+
P && P.m(y, C), M(y, e, C), M(y, i, C), H && H.m(i, null), h(i, n), Z && Z.m(i, null), h(i, o), h(i, s), ce(l, s, null), h(s, d), Q && Q.m(s, null), h(s, g), $ && $.m(s, null), h(s, f), re && re.m(s, null), h(s, _), ce(m, s, null), h(s, v), me && me.m(s, null), h(s, p), ge && ge.m(s, null), h(s, T), ue && ue.m(s, null), h(i, b), ne && ne.m(i, null), j = !0, L || (w = [
|
|
13984
13984
|
K(
|
|
13985
13985
|
i,
|
|
13986
13986
|
"mousedown",
|
|
@@ -14081,7 +14081,7 @@ function y2(t) {
|
|
|
14081
14081
|
y[21] && !/*isStopped*/
|
|
14082
14082
|
y[29] ? me ? (me.p(y, C), C[0] & /*isStandard, isStopped, isVideo*/
|
|
14083
14083
|
807403520 | C[1] & /*isMobile, isLarge*/
|
|
14084
|
-
1073741825 && I(me, 1)) : (me = fa(y), me.c(), I(me, 1), me.m(s,
|
|
14084
|
+
1073741825 && I(me, 1)) : (me = fa(y), me.c(), I(me, 1), me.m(s, p)) : me && (De(), z(me, 1, 1, () => {
|
|
14085
14085
|
me = null;
|
|
14086
14086
|
}), xe()), /*isAdvert*/
|
|
14087
14087
|
y[27] && !/*forcedCollapsed*/
|
|
@@ -14236,7 +14236,7 @@ function v2(t) {
|
|
|
14236
14236
|
);
|
|
14237
14237
|
return {
|
|
14238
14238
|
c() {
|
|
14239
|
-
e =
|
|
14239
|
+
e = k("div"), fe(i.$$.fragment), o = J(), f && f.c(), Ci(e, "class", s = Pl(
|
|
14240
14240
|
/*classes*/
|
|
14241
14241
|
t[40]
|
|
14242
14242
|
) + " svelte-1typsi4"), $o(
|
|
@@ -14364,7 +14364,7 @@ function v2(t) {
|
|
|
14364
14364
|
};
|
|
14365
14365
|
}
|
|
14366
14366
|
function b2(t, e, i) {
|
|
14367
|
-
let n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
14367
|
+
let n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P, H, Z, R, ae, ie, se, Q, $, re, me, ge, ue, ne, y, C, F, x, Ve, Me, Ne, D, he;
|
|
14368
14368
|
import("./././././././././style.js");
|
|
14369
14369
|
let { playerStyle: Be = "standard" } = e, { callToAction: Oe = void 0 } = e, { skipButtonStyle: Ze = "auto" } = e, { playlistStyle: pe = "auto-5-4" } = e, { playlistToggle: Ue = "auto" } = e, { downloadFormats: Ie = [] } = e, { playerTitle: tt = void 0 } = e, { fixedPosition: je = void 0 } = e, { fixedWidth: ut = "auto" } = e, { content: He = [] } = e, { contentIndex: Xe = 0 } = e, { duration: Qe = 0 } = e, { currentTime: ht = 0 } = e, { playbackState: Bt = "stopped" } = e, { playbackRate: Ke = 1 } = e, { playbackRates: yt = [] } = e, { activeAdvert: Ce = void 0 } = e, { persistentAdvert: Ge = void 0 } = e, { companionAdvert: qe = void 0 } = e, { textColor: Wt = "#111" } = e, { backgroundColor: Re = "#f5f5f5" } = e, { iconColor: St = "black" } = e, { videoTextColor: vt = "white" } = e, { videoBackgroundColor: ct = "black" } = e, { videoIconColor: it = "white" } = e, { logoIconEnabled: $e = !0 } = e, { logoImagePosition: wt = void 0 } = e, { maxImageSize: nt = 0 } = e, { onEvent: Tt = () => {
|
|
14370
14370
|
} } = e, { videoPosterImage: Pt = "" } = e, { videoIsBehind: Vt = !1 } = e, { isFullScreen: bt = !1 } = e, { isVisible: Ye = void 0 } = e, { relativeY: Je = void 0 } = e, { absoluteY: at = void 0 } = e, et, ot, Fe, dt;
|
|
@@ -14420,15 +14420,15 @@ function b2(t, e, i) {
|
|
|
14420
14420
|
134217728 | t.$$.dirty[2] & /*activeAdvert, textColor*/
|
|
14421
14421
|
576 && i(37, v = d && Ce.textColor || Wt), t.$$.dirty[0] & /*isAdvert*/
|
|
14422
14422
|
134217728 | t.$$.dirty[2] & /*activeAdvert, backgroundColor*/
|
|
14423
|
-
1088 && i(36,
|
|
14423
|
+
1088 && i(36, p = d && Ce.backgroundColor || Re), t.$$.dirty[0] & /*isAdvert*/
|
|
14424
14424
|
134217728 | t.$$.dirty[2] & /*activeAdvert, iconColor*/
|
|
14425
14425
|
2112 && i(35, T = d && Ce.iconColor || St), t.$$.dirty[0] & /*isVideo, isAdvert*/
|
|
14426
14426
|
136314880 | t.$$.dirty[1] & /*nonVideoTextColor*/
|
|
14427
14427
|
64 | t.$$.dirty[2] & /*activeAdvert, videoTextColor*/
|
|
14428
|
-
4160 && i(58,
|
|
14428
|
+
4160 && i(58, b = a ? d && Ce.videoTextColor || vt : v), t.$$.dirty[0] & /*isVideo, isAdvert*/
|
|
14429
14429
|
136314880 | t.$$.dirty[1] & /*nonVideoBgColor*/
|
|
14430
14430
|
32 | t.$$.dirty[2] & /*activeAdvert, videoBackgroundColor*/
|
|
14431
|
-
8256 && i(57, S = a ? d && Ce.videoBackgroundColor || ct :
|
|
14431
|
+
8256 && i(57, S = a ? d && Ce.videoBackgroundColor || ct : p), t.$$.dirty[0] & /*isVideo, isAdvert*/
|
|
14432
14432
|
136314880 | t.$$.dirty[1] & /*nonVideoIconColor*/
|
|
14433
14433
|
16 | t.$$.dirty[2] & /*activeAdvert, videoIconColor*/
|
|
14434
14434
|
16448 && i(56, j = a ? d && Ce.videoIconColor || it : T), t.$$.dirty[2] & /*skipButtonStyle, isPlaylist*/
|
|
@@ -14520,7 +14520,7 @@ function b2(t, e, i) {
|
|
|
14520
14520
|
_,
|
|
14521
14521
|
w,
|
|
14522
14522
|
T,
|
|
14523
|
-
|
|
14523
|
+
p,
|
|
14524
14524
|
v,
|
|
14525
14525
|
et,
|
|
14526
14526
|
dt,
|
|
@@ -14542,7 +14542,7 @@ function b2(t, e, i) {
|
|
|
14542
14542
|
L,
|
|
14543
14543
|
j,
|
|
14544
14544
|
S,
|
|
14545
|
-
|
|
14545
|
+
b,
|
|
14546
14546
|
m,
|
|
14547
14547
|
r,
|
|
14548
14548
|
s,
|
|
@@ -14850,7 +14850,7 @@ function S2(t) {
|
|
|
14850
14850
|
);
|
|
14851
14851
|
return {
|
|
14852
14852
|
c() {
|
|
14853
|
-
e =
|
|
14853
|
+
e = k("div"), s && s.c(), Fs(e, "class", "external-widget"), Fs(e, "style", i = /*root*/
|
|
14854
14854
|
t[0] ? "position: relative" : "");
|
|
14855
14855
|
},
|
|
14856
14856
|
m(l, a) {
|
|
@@ -14954,7 +14954,7 @@ function wa(t) {
|
|
|
14954
14954
|
), s, l;
|
|
14955
14955
|
return {
|
|
14956
14956
|
c() {
|
|
14957
|
-
e =
|
|
14957
|
+
e = k("option"), i = te(
|
|
14958
14958
|
/*i*/
|
|
14959
14959
|
t[90]
|
|
14960
14960
|
), n = te(" ("), s = te(o), l = te(")"), e.__value = /*i*/
|
|
@@ -14977,7 +14977,7 @@ function I2(t) {
|
|
|
14977
14977
|
let e;
|
|
14978
14978
|
return {
|
|
14979
14979
|
c() {
|
|
14980
|
-
e =
|
|
14980
|
+
e = k("option"), e.textContent = `${/*hour*/
|
|
14981
14981
|
t[93]}-oclock`, e.__value = /*hour*/
|
|
14982
14982
|
t[93] + "-oclock", Y(e, e.__value);
|
|
14983
14983
|
},
|
|
@@ -14991,7 +14991,7 @@ function I2(t) {
|
|
|
14991
14991
|
};
|
|
14992
14992
|
}
|
|
14993
14993
|
function Ta(t) {
|
|
14994
|
-
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
14994
|
+
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P, H, Z, R, ae, ie, se, Q, $, re, me, ge, ue, ne, y, C, F, x, Ve, Me, Ne, D, he, Be, Oe, Ze, pe, Ue, Ie, tt, je, ut, He, Xe, Qe, ht, Bt, Ke, yt, Ce, Ge, qe, Wt, Re, St, vt, ct, it, $e, wt, nt, Tt, Pt, Vt, bt, Ye, Je, at, et, ot, Fe, dt, q, rt, st, lt, Ae, B, O, W, jt, Nt, Vi, Rt, Zi, ui, Wi, At, ci, Yt, di, Ct, ni, Si, Dt, yi, oi, ln, Ft, Ki, xt, si = ii(
|
|
14995
14995
|
/*content*/
|
|
14996
14996
|
t[41]
|
|
14997
14997
|
), kt = [];
|
|
@@ -15011,38 +15011,38 @@ function Ta(t) {
|
|
|
15011
15011
|
Ot[N] = Ia(ba(t, Zt, N));
|
|
15012
15012
|
return {
|
|
15013
15013
|
c() {
|
|
15014
|
-
e =
|
|
15015
|
-
`), d =
|
|
15016
|
-
`), m =
|
|
15017
|
-
`),
|
|
15018
|
-
`), w =
|
|
15019
|
-
`), R =
|
|
15020
|
-
`), Q =
|
|
15021
|
-
`), ne =
|
|
15022
|
-
`), x =
|
|
15023
|
-
`), D =
|
|
15024
|
-
`), Ie =
|
|
15014
|
+
e = k("br"), i = J(), n = k("strong"), n.textContent = "Advanced settings:", o = J(), s = k("br"), l = k("br"), a = J(), r = k("div"), u = te(`projectId:
|
|
15015
|
+
`), d = k("input"), g = J(), f = k("div"), _ = te(`contentId:
|
|
15016
|
+
`), m = k("input"), v = J(), p = k("div"), T = te(`playlistId:
|
|
15017
|
+
`), b = k("input"), S = J(), j = k("div"), L = te(`sourceId:
|
|
15018
|
+
`), w = k("input"), P = J(), H = k("div"), Z = te(`sourceUrl:
|
|
15019
|
+
`), R = k("input"), ae = J(), ie = k("div"), se = te(`showUserInterface:
|
|
15020
|
+
`), Q = k("select"), $ = k("option"), $.textContent = `${!1}`, re = k("option"), re.textContent = `${!0}`, me = J(), ge = k("div"), ue = te(`videoTextColor:
|
|
15021
|
+
`), ne = k("input"), y = J(), C = k("div"), F = te(`videoIconColor:
|
|
15022
|
+
`), x = k("input"), Ve = J(), Me = k("div"), Ne = te(`mediaSession:
|
|
15023
|
+
`), D = k("select"), he = k("option"), he.textContent = "auto", Be = k("option"), Be.textContent = "override", Oe = k("option"), Oe.textContent = "none", Ze = J(), pe = k("div"), Ue = te(`contentIndex:
|
|
15024
|
+
`), Ie = k("select");
|
|
15025
15025
|
for (let N = 0; N < kt.length; N += 1)
|
|
15026
15026
|
kt[N].c();
|
|
15027
|
-
tt = J(), je =
|
|
15028
|
-
`), He =
|
|
15027
|
+
tt = J(), je = k("div"), ut = te(`introsOutrosIndex:
|
|
15028
|
+
`), He = k("select"), Xe = k("option"), Xe.textContent = "-1 (none)";
|
|
15029
15029
|
for (let N = 0; N < _t.length; N += 1)
|
|
15030
15030
|
_t[N].c();
|
|
15031
|
-
Qe = J(), ht =
|
|
15032
|
-
`), Ke =
|
|
15033
|
-
`), Re =
|
|
15031
|
+
Qe = J(), ht = k("div"), Bt = te(`persistentAdImage:
|
|
15032
|
+
`), Ke = k("select"), yt = k("option"), yt.textContent = `${!1}`, Ce = k("option"), Ce.textContent = `${!0}`, Ge = J(), qe = k("div"), Wt = te(`persistentIndex:
|
|
15033
|
+
`), Re = k("select"), St = k("option"), St.textContent = "-1 (none)";
|
|
15034
15034
|
for (let N = 0; N < Ot.length; N += 1)
|
|
15035
15035
|
Ot[N].c();
|
|
15036
|
-
vt = J(), ct =
|
|
15037
|
-
`), $e =
|
|
15038
|
-
`), Pt =
|
|
15039
|
-
`), Je =
|
|
15040
|
-
`), Fe =
|
|
15041
|
-
`), st =
|
|
15042
|
-
`), jt =
|
|
15043
|
-
`), At =
|
|
15044
|
-
`), Dt =
|
|
15045
|
-
`), Ft =
|
|
15036
|
+
vt = J(), ct = k("div"), it = te(`duration:
|
|
15037
|
+
`), $e = k("input"), wt = J(), nt = k("div"), Tt = te(`currentTime:
|
|
15038
|
+
`), Pt = k("input"), Vt = J(), bt = k("div"), Ye = te(`playbackRate:
|
|
15039
|
+
`), Je = k("input"), at = J(), et = k("div"), ot = te(`widgetTarget:
|
|
15040
|
+
`), Fe = k("input"), dt = J(), q = k("div"), rt = te(`logoIconEnabled:
|
|
15041
|
+
`), st = k("select"), lt = k("option"), lt.textContent = `${!1}`, Ae = k("option"), Ae.textContent = `${!0}`, B = J(), O = k("div"), W = te(`advertConsent:
|
|
15042
|
+
`), jt = k("select"), Nt = k("option"), Nt.textContent = "personalized", Vi = k("option"), Vi.textContent = "non-personalized", Rt = k("option"), Rt.textContent = "under-the-age-of-consent", Zi = J(), ui = k("div"), Wi = te(`analyticsConsent:
|
|
15043
|
+
`), At = k("select"), ci = k("option"), ci.textContent = "allowed", Yt = k("option"), Yt.textContent = "without-local-storage", di = k("option"), di.textContent = "none", Ct = J(), ni = k("div"), Si = te(`analyticsCustomUrl:
|
|
15044
|
+
`), Dt = k("input"), yi = J(), oi = k("div"), ln = te(`analyticsTag:
|
|
15045
|
+
`), Ft = k("input"), E(n, "class", "svelte-g76q0j"), E(d, "tabindex", -1), E(d, "type", "text"), E(d, "class", "svelte-g76q0j"), E(r, "class", "control svelte-g76q0j"), E(m, "tabindex", -1), E(m, "type", "text"), E(m, "class", "svelte-g76q0j"), E(f, "class", "control svelte-g76q0j"), E(b, "tabindex", -1), E(b, "type", "text"), E(b, "class", "svelte-g76q0j"), E(p, "class", "control svelte-g76q0j"), E(w, "tabindex", -1), E(w, "type", "text"), E(w, "class", "svelte-g76q0j"), E(j, "class", "control svelte-g76q0j"), E(R, "tabindex", -1), E(R, "type", "text"), E(R, "class", "svelte-g76q0j"), E(H, "class", "control svelte-g76q0j"), $.__value = !1, Y($, $.__value), re.__value = !0, Y(re, re.__value), E(Q, "tabindex", -1), E(Q, "class", "svelte-g76q0j"), /*showUserInterface*/
|
|
15046
15046
|
t[5] === void 0 && ft(() => (
|
|
15047
15047
|
/*select0_change_handler_1*/
|
|
15048
15048
|
t[69].call(Q)
|
|
@@ -15089,8 +15089,8 @@ function Ta(t) {
|
|
|
15089
15089
|
m,
|
|
15090
15090
|
/*contentId*/
|
|
15091
15091
|
t[1]
|
|
15092
|
-
), M(N, v, G), M(N,
|
|
15093
|
-
|
|
15092
|
+
), M(N, v, G), M(N, p, G), h(p, T), h(p, b), Y(
|
|
15093
|
+
b,
|
|
15094
15094
|
/*playlistId*/
|
|
15095
15095
|
t[2]
|
|
15096
15096
|
), M(N, S, G), M(N, j, G), h(j, L), h(j, w), Y(
|
|
@@ -15201,7 +15201,7 @@ function Ta(t) {
|
|
|
15201
15201
|
t[65]
|
|
15202
15202
|
),
|
|
15203
15203
|
K(
|
|
15204
|
-
|
|
15204
|
+
b,
|
|
15205
15205
|
"input",
|
|
15206
15206
|
/*input2_input_handler_1*/
|
|
15207
15207
|
t[66]
|
|
@@ -15336,9 +15336,9 @@ function Ta(t) {
|
|
|
15336
15336
|
/*contentId*/
|
|
15337
15337
|
N[1]
|
|
15338
15338
|
), G[0] & /*playlistId*/
|
|
15339
|
-
4 &&
|
|
15339
|
+
4 && b.value !== /*playlistId*/
|
|
15340
15340
|
N[2] && Y(
|
|
15341
|
-
|
|
15341
|
+
b,
|
|
15342
15342
|
/*playlistId*/
|
|
15343
15343
|
N[2]
|
|
15344
15344
|
), G[0] & /*sourceId*/
|
|
@@ -15494,7 +15494,7 @@ function Ta(t) {
|
|
|
15494
15494
|
);
|
|
15495
15495
|
},
|
|
15496
15496
|
d(N) {
|
|
15497
|
-
N && (V(e), V(i), V(n), V(o), V(s), V(l), V(a), V(r), V(g), V(f), V(v), V(
|
|
15497
|
+
N && (V(e), V(i), V(n), V(o), V(s), V(l), V(a), V(r), V(g), V(f), V(v), V(p), V(S), V(j), V(P), V(H), V(ae), V(ie), V(me), V(ge), V(y), V(C), V(Ve), V(Me), V(Ze), V(pe), V(tt), V(je), V(Qe), V(ht), V(Ge), V(qe), V(vt), V(ct), V(wt), V(nt), V(Vt), V(bt), V(at), V(et), V(dt), V(q), V(B), V(O), V(Zi), V(ui), V(Ct), V(ni), V(yi), V(oi)), vn(kt, N), vn(_t, N), vn(Ot, N), Ki = !1, mt(xt);
|
|
15498
15498
|
}
|
|
15499
15499
|
};
|
|
15500
15500
|
}
|
|
@@ -15505,7 +15505,7 @@ function Pa(t) {
|
|
|
15505
15505
|
), s, l;
|
|
15506
15506
|
return {
|
|
15507
15507
|
c() {
|
|
15508
|
-
e =
|
|
15508
|
+
e = k("option"), i = te(
|
|
15509
15509
|
/*i*/
|
|
15510
15510
|
t[90]
|
|
15511
15511
|
), n = te(" ("), s = te(o), l = te(")"), e.__value = /*i*/
|
|
@@ -15531,7 +15531,7 @@ function Ca(t) {
|
|
|
15531
15531
|
), s;
|
|
15532
15532
|
return {
|
|
15533
15533
|
c() {
|
|
15534
|
-
e =
|
|
15534
|
+
e = k("option"), i = te(
|
|
15535
15535
|
/*i*/
|
|
15536
15536
|
t[90]
|
|
15537
15537
|
), n = te(": "), s = te(o), e.__value = /*i*/
|
|
@@ -15557,7 +15557,7 @@ function Ia(t) {
|
|
|
15557
15557
|
), s;
|
|
15558
15558
|
return {
|
|
15559
15559
|
c() {
|
|
15560
|
-
e =
|
|
15560
|
+
e = k("option"), i = te(
|
|
15561
15561
|
/*i*/
|
|
15562
15562
|
t[90]
|
|
15563
15563
|
), n = te(": "), s = te(o), e.__value = /*i*/
|
|
@@ -15580,7 +15580,7 @@ function B2(t) {
|
|
|
15580
15580
|
let e, i, n;
|
|
15581
15581
|
return {
|
|
15582
15582
|
c() {
|
|
15583
|
-
e =
|
|
15583
|
+
e = k("a"), e.textContent = "show advanced settings", E(e, "tabindex", -1), E(e, "href", "#_"), E(e, "class", "svelte-g76q0j");
|
|
15584
15584
|
},
|
|
15585
15585
|
m(o, s) {
|
|
15586
15586
|
M(o, e, s), i || (n = K(
|
|
@@ -15600,7 +15600,7 @@ function V2(t) {
|
|
|
15600
15600
|
let e, i, n;
|
|
15601
15601
|
return {
|
|
15602
15602
|
c() {
|
|
15603
|
-
e =
|
|
15603
|
+
e = k("a"), e.textContent = "hide advanced settings", E(e, "tabindex", -1), E(e, "href", "#_"), E(e, "class", "svelte-g76q0j");
|
|
15604
15604
|
},
|
|
15605
15605
|
m(o, s) {
|
|
15606
15606
|
M(o, e, s), i || (n = K(
|
|
@@ -15617,7 +15617,7 @@ function V2(t) {
|
|
|
15617
15617
|
};
|
|
15618
15618
|
}
|
|
15619
15619
|
function W2(t) {
|
|
15620
|
-
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
15620
|
+
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P, H, Z, R, ae, ie, se, Q, $, re, me, ge, ue, ne, y, C, F, x, Ve, Me, Ne, D, he, Be, Oe, Ze, pe, Ue, Ie, tt, je, ut, He, Xe, Qe, ht, Bt, Ke, yt, Ce, Ge, qe, Wt, Re, St, vt, ct, it, $e, wt, nt, Tt, Pt, Vt, bt, Ye, Je, at, et, ot, Fe, dt, q, rt, st, lt, Ae, B, O, W, jt, Nt, Vi, Rt, Zi, ui, Wi, At, ci, Yt, di, Ct, ni, Si, Dt, yi, oi, ln, Ft, Ki, xt, si, kt, Ut, _t, Zt, Ot, N, G, le, Kt, an, rn, un, cn, bo, bn, ko, Oi, po, Zn, So, wo, Kn, To, dn = ii(
|
|
15621
15621
|
/*adverts*/
|
|
15622
15622
|
t[43]
|
|
15623
15623
|
), Gt = [];
|
|
@@ -15639,39 +15639,39 @@ function W2(t) {
|
|
|
15639
15639
|
let In = Po(t), wi = In(t);
|
|
15640
15640
|
return {
|
|
15641
15641
|
c() {
|
|
15642
|
-
e =
|
|
15643
|
-
`), r =
|
|
15644
|
-
`),
|
|
15645
|
-
`), P =
|
|
15646
|
-
`), ae =
|
|
15647
|
-
`), $ =
|
|
15648
|
-
`), Ve =
|
|
15649
|
-
`), Ue =
|
|
15650
|
-
`), Qe =
|
|
15642
|
+
e = k("div"), i = k("div"), i.innerHTML = '<strong class="svelte-g76q0j">Player settings:</strong> <a tabindex="-1" target="_blank" class="docs svelte-g76q0j" href="https://github.com/beyondwords-io/player/blob/main/doc/player-settings.md">view docs</a>', n = J(), o = k("br"), s = J(), l = k("div"), a = te(`playerStyle:
|
|
15643
|
+
`), r = k("select"), u = k("option"), u.textContent = "small", d = k("option"), d.textContent = "standard", g = k("option"), g.textContent = "large", f = k("option"), f.textContent = "video", _ = J(), m = k("div"), v = te(`playbackState:
|
|
15644
|
+
`), p = k("select"), T = k("option"), T.textContent = "stopped", b = k("option"), b.textContent = "playing", S = k("option"), S.textContent = "paused", j = J(), L = k("div"), w = te(`playerTitle:
|
|
15645
|
+
`), P = k("input"), H = J(), Z = k("div"), R = te(`callToAction:
|
|
15646
|
+
`), ae = k("input"), ie = J(), se = k("div"), Q = te(`skipButtonStyle:
|
|
15647
|
+
`), $ = k("select"), re = k("option"), re.textContent = "auto", me = k("option"), me.textContent = "segments", ge = k("option"), ge.textContent = "seconds", ue = k("option"), ue.textContent = "seconds-15", ne = k("option"), ne.textContent = "seconds-15-30", y = k("option"), y.textContent = "tracks", C = J(), F = k("div"), x = te(`playlistStyle:
|
|
15648
|
+
`), Ve = k("select"), Me = k("option"), Me.textContent = "auto", Ne = k("option"), Ne.textContent = "show", D = k("option"), D.textContent = "show-3", he = k("option"), he.textContent = "show-999", Be = k("option"), Be.textContent = "hide", Oe = J(), Ze = k("div"), pe = te(`playlistToggle:
|
|
15649
|
+
`), Ue = k("select"), Ie = k("option"), Ie.textContent = "auto", tt = k("option"), tt.textContent = "show", je = k("option"), je.textContent = "hide", ut = J(), He = k("div"), Xe = te(`advertIndex:
|
|
15650
|
+
`), Qe = k("select"), ht = k("option"), ht.textContent = "-1 (none)";
|
|
15651
15651
|
for (let _e = 0; _e < Gt.length; _e += 1)
|
|
15652
15652
|
Gt[_e].c();
|
|
15653
|
-
Bt = J(), Ke =
|
|
15654
|
-
`), Ce =
|
|
15655
|
-
`), it =
|
|
15656
|
-
`), Ye =
|
|
15657
|
-
`), lt =
|
|
15658
|
-
`), W =
|
|
15659
|
-
`), Rt =
|
|
15660
|
-
`), At =
|
|
15661
|
-
`), Ct =
|
|
15662
|
-
`), xt =
|
|
15663
|
-
`), le =
|
|
15664
|
-
`), Oi =
|
|
15653
|
+
Bt = J(), Ke = k("div"), yt = te(`widgetStyle:
|
|
15654
|
+
`), Ce = k("select"), Ge = k("option"), Ge.textContent = "small", qe = k("option"), qe.textContent = "standard", Wt = k("option"), Wt.textContent = "large", Re = k("option"), Re.textContent = "video", St = J(), vt = k("div"), ct = te(`widgetPosition:
|
|
15655
|
+
`), it = k("select"), $e = k("option"), $e.textContent = "auto", wt = k("option"), wt.textContent = "left", nt = k("option"), nt.textContent = "center", Tt = k("option"), Tt.textContent = "right", Pt = J(), Vt = k("div"), bt = te(`widgetWidth:
|
|
15656
|
+
`), Ye = k("select"), Je = k("option"), Je.textContent = "auto", at = k("option"), at.textContent = "400px", et = k("option"), et.textContent = "30rem", ot = k("option"), ot.textContent = "fit-content", Fe = k("option"), Fe.textContent = "initial", dt = k("option"), dt.textContent = "0", q = J(), rt = k("div"), st = te(`textColor:
|
|
15657
|
+
`), lt = k("input"), Ae = J(), B = k("div"), O = te(`backgroundColor:
|
|
15658
|
+
`), W = k("input"), jt = J(), Nt = k("div"), Vi = te(`iconColor:
|
|
15659
|
+
`), Rt = k("input"), Zi = J(), ui = k("div"), Wi = te(`highlightColor:
|
|
15660
|
+
`), At = k("input"), ci = J(), Yt = k("div"), di = te(`highlightSections:
|
|
15661
|
+
`), Ct = k("select"), ni = k("option"), ni.textContent = "all", Si = k("option"), Si.textContent = "body", Dt = k("option"), Dt.textContent = "none", yi = k("option"), yi.textContent = "all-none", oi = k("option"), oi.textContent = "none-all", ln = J(), Ft = k("div"), Ki = te(`clickableSections:
|
|
15662
|
+
`), xt = k("select"), si = k("option"), si.textContent = "all", kt = k("option"), kt.textContent = "body", Ut = k("option"), Ut.textContent = "none", _t = k("option"), _t.textContent = "all-none", Zt = k("option"), Zt.textContent = "none-all", Ot = J(), N = k("div"), G = te(`segmentWidgetSections:
|
|
15663
|
+
`), le = k("select"), Kt = k("option"), Kt.textContent = "all", an = k("option"), an.textContent = "body", rn = k("option"), rn.textContent = "none", un = k("option"), un.textContent = "all-none", cn = k("option"), cn.textContent = "none-all", bo = J(), bn = k("div"), ko = te(`segmentWidgetPosition:
|
|
15664
|
+
`), Oi = k("select");
|
|
15665
15665
|
for (let _e = 0; _e < 12; _e += 1)
|
|
15666
15666
|
kn[_e].c();
|
|
15667
|
-
po = J(), li && li.c(), Zn = J(), So =
|
|
15667
|
+
po = J(), li && li.c(), Zn = J(), So = k("br"), wo = J(), wi.c(), E(i, "class", "heading svelte-g76q0j"), u.__value = "small", Y(u, u.__value), d.__value = "standard", Y(d, d.__value), g.__value = "large", Y(g, g.__value), f.__value = "video", Y(f, f.__value), E(r, "tabindex", -1), E(r, "class", "svelte-g76q0j"), /*playerStyle*/
|
|
15668
15668
|
t[6] === void 0 && ft(() => (
|
|
15669
15669
|
/*select0_change_handler*/
|
|
15670
15670
|
t[45].call(r)
|
|
15671
|
-
)), E(l, "class", "control svelte-g76q0j"), T.__value = "stopped", Y(T, T.__value),
|
|
15671
|
+
)), E(l, "class", "control svelte-g76q0j"), T.__value = "stopped", Y(T, T.__value), b.__value = "playing", Y(b, b.__value), S.__value = "paused", Y(S, S.__value), E(p, "tabindex", -1), E(p, "class", "svelte-g76q0j"), /*playbackState*/
|
|
15672
15672
|
t[20] === void 0 && ft(() => (
|
|
15673
15673
|
/*select1_change_handler*/
|
|
15674
|
-
t[46].call(
|
|
15674
|
+
t[46].call(p)
|
|
15675
15675
|
)), E(m, "class", "control svelte-g76q0j"), E(P, "tabindex", -1), E(P, "type", "text"), E(P, "class", "svelte-g76q0j"), E(L, "class", "control svelte-g76q0j"), E(ae, "tabindex", -1), E(ae, "type", "text"), E(ae, "class", "svelte-g76q0j"), E(Z, "class", "control svelte-g76q0j"), re.__value = "auto", Y(re, re.__value), me.__value = "segments", Y(me, me.__value), ge.__value = "seconds", Y(ge, ge.__value), ue.__value = "seconds-15", Y(ue, ue.__value), ne.__value = "seconds-15-30", Y(ne, ne.__value), y.__value = "tracks", Y(y, y.__value), E($, "tabindex", -1), E($, "class", "svelte-g76q0j"), /*skipButtonStyle*/
|
|
15676
15676
|
t[9] === void 0 && ft(() => (
|
|
15677
15677
|
/*select2_change_handler*/
|
|
@@ -15724,8 +15724,8 @@ function W2(t) {
|
|
|
15724
15724
|
/*playerStyle*/
|
|
15725
15725
|
t[6],
|
|
15726
15726
|
!0
|
|
15727
|
-
), h(e, _), h(e, m), h(m, v), h(m,
|
|
15728
|
-
|
|
15727
|
+
), h(e, _), h(e, m), h(m, v), h(m, p), h(p, T), h(p, b), h(p, S), Ee(
|
|
15728
|
+
p,
|
|
15729
15729
|
/*playbackState*/
|
|
15730
15730
|
t[20],
|
|
15731
15731
|
!0
|
|
@@ -15822,7 +15822,7 @@ function W2(t) {
|
|
|
15822
15822
|
t[45]
|
|
15823
15823
|
),
|
|
15824
15824
|
K(
|
|
15825
|
-
|
|
15825
|
+
p,
|
|
15826
15826
|
"change",
|
|
15827
15827
|
/*select1_change_handler*/
|
|
15828
15828
|
t[46]
|
|
@@ -15939,7 +15939,7 @@ function W2(t) {
|
|
|
15939
15939
|
_e[6]
|
|
15940
15940
|
), gt[0] & /*playbackState*/
|
|
15941
15941
|
1048576 && Ee(
|
|
15942
|
-
|
|
15942
|
+
p,
|
|
15943
15943
|
/*playbackState*/
|
|
15944
15944
|
_e[20]
|
|
15945
15945
|
), gt[0] & /*playerTitle*/
|
|
@@ -16060,7 +16060,7 @@ function W2(t) {
|
|
|
16060
16060
|
}
|
|
16061
16061
|
function O2(t, e, i) {
|
|
16062
16062
|
import("./././././././././style.js");
|
|
16063
|
-
let { projectId: n } = e, { contentId: o } = e, { playlistId: s } = e, { sourceId: l } = e, { sourceUrl: a } = e, { showUserInterface: r } = e, { playerStyle: u } = e, { playerTitle: d } = e, { callToAction: g } = e, { skipButtonStyle: f } = e, { playlistStyle: _ } = e, { playlistToggle: m } = e, { mediaSession: v } = e, { content:
|
|
16063
|
+
let { projectId: n } = e, { contentId: o } = e, { playlistId: s } = e, { sourceId: l } = e, { sourceUrl: a } = e, { showUserInterface: r } = e, { playerStyle: u } = e, { playerTitle: d } = e, { callToAction: g } = e, { skipButtonStyle: f } = e, { playlistStyle: _ } = e, { playlistToggle: m } = e, { mediaSession: v } = e, { content: p } = e, { contentIndex: T } = e, { introsOutros: b } = e, { introsOutrosIndex: S } = e, { adverts: j } = e, { advertIndex: L } = e, { persistentAdImage: w } = e, { persistentIndex: P } = e, { duration: H } = e, { currentTime: Z } = e, { playbackState: R } = e, { playbackRate: ae } = e, { widgetStyle: ie } = e, { widgetPosition: se } = e, { widgetWidth: Q } = e, { widgetTarget: $ } = e, { textColor: re } = e, { backgroundColor: me } = e, { iconColor: ge } = e, { highlightColor: ue } = e, { videoTextColor: ne } = e, { videoIconColor: y } = e, { logoIconEnabled: C } = e, { highlightSections: F } = e, { clickableSections: x } = e, { segmentWidgetSections: Ve } = e, { segmentWidgetPosition: Me } = e, { advertConsent: Ne } = e, { analyticsConsent: D } = e, { analyticsCustomUrl: he } = e, { analyticsTag: Be } = e, Oe = !1;
|
|
16064
16064
|
function Ze() {
|
|
16065
16065
|
u = Et(this), i(6, u);
|
|
16066
16066
|
}
|
|
@@ -16186,7 +16186,7 @@ function O2(t, e, i) {
|
|
|
16186
16186
|
}
|
|
16187
16187
|
const Ae = () => i(44, Oe = !1), B = () => i(44, Oe = !0);
|
|
16188
16188
|
return t.$$set = (O) => {
|
|
16189
|
-
"projectId" in O && i(0, n = O.projectId), "contentId" in O && i(1, o = O.contentId), "playlistId" in O && i(2, s = O.playlistId), "sourceId" in O && i(3, l = O.sourceId), "sourceUrl" in O && i(4, a = O.sourceUrl), "showUserInterface" in O && i(5, r = O.showUserInterface), "playerStyle" in O && i(6, u = O.playerStyle), "playerTitle" in O && i(7, d = O.playerTitle), "callToAction" in O && i(8, g = O.callToAction), "skipButtonStyle" in O && i(9, f = O.skipButtonStyle), "playlistStyle" in O && i(10, _ = O.playlistStyle), "playlistToggle" in O && i(11, m = O.playlistToggle), "mediaSession" in O && i(12, v = O.mediaSession), "content" in O && i(41,
|
|
16189
|
+
"projectId" in O && i(0, n = O.projectId), "contentId" in O && i(1, o = O.contentId), "playlistId" in O && i(2, s = O.playlistId), "sourceId" in O && i(3, l = O.sourceId), "sourceUrl" in O && i(4, a = O.sourceUrl), "showUserInterface" in O && i(5, r = O.showUserInterface), "playerStyle" in O && i(6, u = O.playerStyle), "playerTitle" in O && i(7, d = O.playerTitle), "callToAction" in O && i(8, g = O.callToAction), "skipButtonStyle" in O && i(9, f = O.skipButtonStyle), "playlistStyle" in O && i(10, _ = O.playlistStyle), "playlistToggle" in O && i(11, m = O.playlistToggle), "mediaSession" in O && i(12, v = O.mediaSession), "content" in O && i(41, p = O.content), "contentIndex" in O && i(13, T = O.contentIndex), "introsOutros" in O && i(42, b = O.introsOutros), "introsOutrosIndex" in O && i(14, S = O.introsOutrosIndex), "adverts" in O && i(43, j = O.adverts), "advertIndex" in O && i(15, L = O.advertIndex), "persistentAdImage" in O && i(16, w = O.persistentAdImage), "persistentIndex" in O && i(17, P = O.persistentIndex), "duration" in O && i(18, H = O.duration), "currentTime" in O && i(19, Z = O.currentTime), "playbackState" in O && i(20, R = O.playbackState), "playbackRate" in O && i(21, ae = O.playbackRate), "widgetStyle" in O && i(22, ie = O.widgetStyle), "widgetPosition" in O && i(23, se = O.widgetPosition), "widgetWidth" in O && i(24, Q = O.widgetWidth), "widgetTarget" in O && i(25, $ = O.widgetTarget), "textColor" in O && i(26, re = O.textColor), "backgroundColor" in O && i(27, me = O.backgroundColor), "iconColor" in O && i(28, ge = O.iconColor), "highlightColor" in O && i(29, ue = O.highlightColor), "videoTextColor" in O && i(30, ne = O.videoTextColor), "videoIconColor" in O && i(31, y = O.videoIconColor), "logoIconEnabled" in O && i(32, C = O.logoIconEnabled), "highlightSections" in O && i(33, F = O.highlightSections), "clickableSections" in O && i(34, x = O.clickableSections), "segmentWidgetSections" in O && i(35, Ve = O.segmentWidgetSections), "segmentWidgetPosition" in O && i(36, Me = O.segmentWidgetPosition), "advertConsent" in O && i(37, Ne = O.advertConsent), "analyticsConsent" in O && i(38, D = O.analyticsConsent), "analyticsCustomUrl" in O && i(39, he = O.analyticsCustomUrl), "analyticsTag" in O && i(40, Be = O.analyticsTag);
|
|
16190
16190
|
}, [
|
|
16191
16191
|
n,
|
|
16192
16192
|
o,
|
|
@@ -16229,8 +16229,8 @@ function O2(t, e, i) {
|
|
|
16229
16229
|
D,
|
|
16230
16230
|
he,
|
|
16231
16231
|
Be,
|
|
16232
|
-
k,
|
|
16233
16232
|
p,
|
|
16233
|
+
b,
|
|
16234
16234
|
j,
|
|
16235
16235
|
Oe,
|
|
16236
16236
|
Ze,
|
|
@@ -16657,7 +16657,7 @@ function Va(t) {
|
|
|
16657
16657
|
);
|
|
16658
16658
|
return {
|
|
16659
16659
|
c() {
|
|
16660
|
-
e =
|
|
16660
|
+
e = k("div"), fe(i.$$.fragment), n = J(), x2(e, "display", "none");
|
|
16661
16661
|
},
|
|
16662
16662
|
m(r, u) {
|
|
16663
16663
|
M(r, e, u), ce(i, e, null), h(e, n), l(), s = !0;
|
|
@@ -16696,7 +16696,7 @@ function U2(t) {
|
|
|
16696
16696
|
});
|
|
16697
16697
|
return {
|
|
16698
16698
|
c() {
|
|
16699
|
-
e =
|
|
16699
|
+
e = k("div");
|
|
16700
16700
|
for (let l = 0; l < o.length; l += 1)
|
|
16701
16701
|
o[l].c();
|
|
16702
16702
|
N2(e, "class", "media-session");
|
|
@@ -16743,7 +16743,7 @@ function U2(t) {
|
|
|
16743
16743
|
};
|
|
16744
16744
|
}
|
|
16745
16745
|
function H2(t, e, i) {
|
|
16746
|
-
let n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
16746
|
+
let n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P, H;
|
|
16747
16747
|
const Z = [96, 128, 192, 256, 384, 512], R = [
|
|
16748
16748
|
"hangup",
|
|
16749
16749
|
"nextslide",
|
|
@@ -16795,14 +16795,14 @@ function H2(t, e, i) {
|
|
|
16795
16795
|
7 && i(17, Ve = Z.map((D, he) => lr().then(() => x[he]))), t.$$.dirty[0] & /*companionAdvert, activeAdvert*/
|
|
16796
16796
|
320 && i(35, v = ($ == null ? void 0 : $.imageUrl) || (se == null ? void 0 : se.imageUrl)), t.$$.dirty[0] & /*persistentAdvert, contentItem*/
|
|
16797
16797
|
268435584 | t.$$.dirty[1] & /*isAdvert, advertImageUrl, isStopped*/
|
|
16798
|
-
56 && i(33,
|
|
16798
|
+
56 && i(33, p = o && v || !n && (Q == null ? void 0 : Q.imageUrl) || (l == null ? void 0 : l.imageUrl)), t.$$.dirty[0] & /*failedUrls*/
|
|
16799
16799
|
65536 | t.$$.dirty[1] & /*imageUrl_*/
|
|
16800
|
-
4 && i(29, T = F.has(
|
|
16801
|
-
536870912 && i(32,
|
|
16800
|
+
4 && i(29, T = F.has(p) ? null : p), t.$$.dirty[0] & /*imageUrl*/
|
|
16801
|
+
536870912 && i(32, b = T ? Z.map((D) => M2(T, D, D)) : []), t.$$.dirty[0] & /*imageUrl*/
|
|
16802
16802
|
536870912 && i(31, S = T ? [{ src: T, sizes: "any" }] : []), t.$$.dirty[0] & /*imageUrl, renderedSvgs*/
|
|
16803
16803
|
537001984 && i(30, j = T ? [] : Z.map((D, he) => D2(Ve[he], D, D))), t.$$.dirty[0] & /*svgArtworks*/
|
|
16804
16804
|
1073741824 | t.$$.dirty[1] & /*pngArtworks, urlArtworks*/
|
|
16805
|
-
3 && i(27, L = Promise.all([...
|
|
16805
|
+
3 && i(27, L = Promise.all([...b, ...S, ...j])), t.$$.dirty[0] & /*contentItem*/
|
|
16806
16806
|
268435456 && i(26, w = (l == null ? void 0 : l.title) || ""), t.$$.dirty[0] & /*artworks*/
|
|
16807
16807
|
134217728 && L.then((D) => i(15, C = D)).catch(Me), t.$$.dirty[0] & /*title, artist, album, artwork*/
|
|
16808
16808
|
117473280 && (navigator.mediaSession.metadata = new MediaMetadata({ title: w, artist: P, album: H, artwork: C })), t.$$.dirty[0] & /*onEvent*/
|
|
@@ -16904,8 +16904,8 @@ function H2(t, e, i) {
|
|
|
16904
16904
|
T,
|
|
16905
16905
|
j,
|
|
16906
16906
|
S,
|
|
16907
|
+
b,
|
|
16907
16908
|
p,
|
|
16908
|
-
k,
|
|
16909
16909
|
n,
|
|
16910
16910
|
v,
|
|
16911
16911
|
o,
|
|
@@ -17010,7 +17010,7 @@ function Oa(t) {
|
|
|
17010
17010
|
let e, i, n, o;
|
|
17011
17011
|
return {
|
|
17012
17012
|
c() {
|
|
17013
|
-
e =
|
|
17013
|
+
e = k("script"), n = J(), o = k("script"), o.textContent = `window.dataLayer = window.dataLayer || [];
|
|
17014
17014
|
function gtag() { dataLayer.push(arguments); }
|
|
17015
17015
|
gtag("js", new Date());`, e.async = !0, zi(e.src, i = "https://www.googletagmanager.com/gtag/js?id=" + /*analyticsTag*/
|
|
17016
17016
|
t[0]) || Wa(e, "src", i);
|
|
@@ -17071,7 +17071,7 @@ function Ma(t) {
|
|
|
17071
17071
|
let e, i;
|
|
17072
17072
|
return {
|
|
17073
17073
|
c() {
|
|
17074
|
-
e =
|
|
17074
|
+
e = k("script"), e.async = !0, zi(e.src, i = "https://geo.ads.audio.thisisdax.com/bulk_sync.js?cb=" + /*cacheBuster*/
|
|
17075
17075
|
t[0]) || Ea(e, "src", i);
|
|
17076
17076
|
},
|
|
17077
17077
|
m(n, o) {
|
|
@@ -17353,7 +17353,7 @@ function Da(t, e, i) {
|
|
|
17353
17353
|
return n[173] = e[i], n;
|
|
17354
17354
|
}
|
|
17355
17355
|
function f3(t) {
|
|
17356
|
-
var
|
|
17356
|
+
var p;
|
|
17357
17357
|
let e, i, n, o, s, l, a, r;
|
|
17358
17358
|
function u(T) {
|
|
17359
17359
|
t[119](T);
|
|
@@ -17416,7 +17416,7 @@ function f3(t) {
|
|
|
17416
17416
|
),
|
|
17417
17417
|
contentId: (
|
|
17418
17418
|
/*contentItem*/
|
|
17419
|
-
(
|
|
17419
|
+
(p = t[69]) == null ? void 0 : p.id
|
|
17420
17420
|
),
|
|
17421
17421
|
contentLanguage: (
|
|
17422
17422
|
/*contentLanguage*/
|
|
@@ -17480,65 +17480,65 @@ function f3(t) {
|
|
|
17480
17480
|
c() {
|
|
17481
17481
|
fe(e.$$.fragment);
|
|
17482
17482
|
},
|
|
17483
|
-
m(T,
|
|
17484
|
-
ce(e, T,
|
|
17483
|
+
m(T, b) {
|
|
17484
|
+
ce(e, T, b), r = !0;
|
|
17485
17485
|
},
|
|
17486
|
-
p(T,
|
|
17486
|
+
p(T, b) {
|
|
17487
17487
|
var j;
|
|
17488
17488
|
const S = {};
|
|
17489
|
-
|
|
17489
|
+
b[1] & /*content*/
|
|
17490
17490
|
1048576 && (S.content = /*content*/
|
|
17491
|
-
T[51]),
|
|
17491
|
+
T[51]), b[0] & /*contentIndex*/
|
|
17492
17492
|
128 && (S.contentIndex = /*contentIndex*/
|
|
17493
|
-
T[7]),
|
|
17493
|
+
T[7]), b[2] & /*introOrOutro*/
|
|
17494
17494
|
16 && (S.introOrOutro = /*introOrOutro*/
|
|
17495
|
-
T[66]),
|
|
17495
|
+
T[66]), b[2] & /*preloadAdvert*/
|
|
17496
17496
|
1048576 && (S.preloadAdvert = /*preloadAdvert*/
|
|
17497
|
-
T[82]),
|
|
17497
|
+
T[82]), b[2] & /*activeAdvert*/
|
|
17498
17498
|
32 && (S.activeAdvert = /*activeAdvert*/
|
|
17499
|
-
T[67]),
|
|
17499
|
+
T[67]), b[0] & /*advertConsent*/
|
|
17500
17500
|
4194304 && (S.advertConsent = /*advertConsent*/
|
|
17501
|
-
T[22]),
|
|
17501
|
+
T[22]), b[2] & /*maxImageSize*/
|
|
17502
17502
|
131072 && (S.maxImageSize = /*maxImageSize*/
|
|
17503
|
-
T[79]),
|
|
17503
|
+
T[79]), b[0] & /*projectId*/
|
|
17504
17504
|
1 && (S.projectId = /*projectId*/
|
|
17505
|
-
T[0]),
|
|
17505
|
+
T[0]), b[0] & /*playlistId*/
|
|
17506
17506
|
4 && (S.playlistId = /*playlistId*/
|
|
17507
|
-
T[2]),
|
|
17507
|
+
T[2]), b[2] & /*contentItem*/
|
|
17508
17508
|
128 && (S.contentId = /*contentItem*/
|
|
17509
|
-
(j = T[69]) == null ? void 0 : j.id),
|
|
17509
|
+
(j = T[69]) == null ? void 0 : j.id), b[2] & /*contentLanguage*/
|
|
17510
17510
|
1 && (S.contentLanguage = /*contentLanguage*/
|
|
17511
|
-
T[62]),
|
|
17511
|
+
T[62]), b[1] & /*platform*/
|
|
17512
17512
|
268435456 && (S.platform = /*platform*/
|
|
17513
|
-
T[59]),
|
|
17513
|
+
T[59]), b[1] & /*vendorIdentifier*/
|
|
17514
17514
|
536870912 && (S.vendorIdentifier = /*vendorIdentifier*/
|
|
17515
|
-
T[60]),
|
|
17515
|
+
T[60]), b[1] & /*bundleIdentifier*/
|
|
17516
17516
|
1073741824 && (S.bundleIdentifier = /*bundleIdentifier*/
|
|
17517
|
-
T[61]),
|
|
17517
|
+
T[61]), b[0] & /*showUserInterface*/
|
|
17518
17518
|
32 && (S.showUserInterface = /*showUserInterface*/
|
|
17519
|
-
T[5]),
|
|
17519
|
+
T[5]), b[2] & /*videoBehindWidget*/
|
|
17520
17520
|
512 && (S.videoBehindWidget = /*videoBehindWidget*/
|
|
17521
|
-
T[71]),
|
|
17521
|
+
T[71]), b[2] & /*videoBehindStatic*/
|
|
17522
17522
|
16384 && (S.videoBehindStatic = /*videoBehindStatic*/
|
|
17523
|
-
T[76]),
|
|
17523
|
+
T[76]), b[2] & /*videoMightBeShown*/
|
|
17524
17524
|
256 && (S.videoMightBeShown = /*videoMightBeShown*/
|
|
17525
|
-
T[70]),
|
|
17525
|
+
T[70]), b[1] & /*widgetPosition*/
|
|
17526
17526
|
8 && (S.widgetPosition = /*widgetPosition*/
|
|
17527
|
-
T[34]),
|
|
17527
|
+
T[34]), b[1] & /*widgetWidth*/
|
|
17528
17528
|
16 && (S.widgetWidth = /*widgetWidth*/
|
|
17529
|
-
T[35]),
|
|
17529
|
+
T[35]), b[0] & /*widgetTarget*/
|
|
17530
17530
|
16384 && (S.widgetTarget = /*widgetTarget*/
|
|
17531
|
-
T[14]), !i &&
|
|
17531
|
+
T[14]), !i && b[0] & /*playbackState*/
|
|
17532
17532
|
4096 && (i = !0, S.playbackState = /*playbackState*/
|
|
17533
|
-
T[12], ve(() => i = !1)), !n &&
|
|
17533
|
+
T[12], ve(() => i = !1)), !n && b[1] & /*duration*/
|
|
17534
17534
|
2 && (n = !0, S.duration = /*duration*/
|
|
17535
|
-
T[32], ve(() => n = !1)), !o &&
|
|
17535
|
+
T[32], ve(() => n = !1)), !o && b[0] & /*currentTime*/
|
|
17536
17536
|
2048 && (o = !0, S.currentTime = /*currentTime*/
|
|
17537
|
-
T[11], ve(() => o = !1)), !s &&
|
|
17537
|
+
T[11], ve(() => o = !1)), !s && b[1] & /*playbackRate*/
|
|
17538
17538
|
4 && (s = !0, S.playbackRate = /*playbackRate*/
|
|
17539
|
-
T[33], ve(() => s = !1)), !l &&
|
|
17539
|
+
T[33], ve(() => s = !1)), !l && b[1] & /*prevPercentage*/
|
|
17540
17540
|
131072 && (l = !0, S.prevPercentage = /*prevPercentage*/
|
|
17541
|
-
T[48], ve(() => l = !1)), !a &&
|
|
17541
|
+
T[48], ve(() => l = !1)), !a && b[0] & /*metadataLoaded*/
|
|
17542
17542
|
16777216 && (a = !0, S.metadataLoaded = /*metadataLoaded*/
|
|
17543
17543
|
T[24], ve(() => a = !1)), e.$set(S);
|
|
17544
17544
|
},
|
|
@@ -18217,7 +18217,7 @@ function Fa(t) {
|
|
|
18217
18217
|
};
|
|
18218
18218
|
}
|
|
18219
18219
|
function A3(t) {
|
|
18220
|
-
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
18220
|
+
let e, i, n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P, H, Z, R, ae, ie, se, Q, $, re, me, ge, ue, ne, y, C, F, x, Ve, Me, Ne, D, he;
|
|
18221
18221
|
function Be(B) {
|
|
18222
18222
|
t[128](B);
|
|
18223
18223
|
}
|
|
@@ -18491,13 +18491,13 @@ function A3(t) {
|
|
|
18491
18491
|
1073741824 && (m = !0, W.mediaSession = /*mediaSession*/
|
|
18492
18492
|
B[30], ve(() => m = !1)), !v && O[0] & /*contentIndex*/
|
|
18493
18493
|
128 && (v = !0, W.contentIndex = /*contentIndex*/
|
|
18494
|
-
B[7], ve(() => v = !1)), !
|
|
18495
|
-
256 && (
|
|
18496
|
-
B[8], ve(() =>
|
|
18494
|
+
B[7], ve(() => v = !1)), !p && O[0] & /*introsOutrosIndex*/
|
|
18495
|
+
256 && (p = !0, W.introsOutrosIndex = /*introsOutrosIndex*/
|
|
18496
|
+
B[8], ve(() => p = !1)), !T && O[0] & /*advertIndex*/
|
|
18497
18497
|
512 && (T = !0, W.advertIndex = /*advertIndex*/
|
|
18498
|
-
B[9], ve(() => T = !1)), !
|
|
18499
|
-
1 && (
|
|
18500
|
-
B[31], ve(() =>
|
|
18498
|
+
B[9], ve(() => T = !1)), !b && O[1] & /*persistentAdImage*/
|
|
18499
|
+
1 && (b = !0, W.persistentAdImage = /*persistentAdImage*/
|
|
18500
|
+
B[31], ve(() => b = !1)), !S && O[0] & /*persistentIndex*/
|
|
18501
18501
|
1024 && (S = !0, W.persistentIndex = /*persistentIndex*/
|
|
18502
18502
|
B[10], ve(() => S = !1)), !j && O[1] & /*duration*/
|
|
18503
18503
|
2 && (j = !0, W.duration = /*duration*/
|
|
@@ -18724,7 +18724,7 @@ function _3(t) {
|
|
|
18724
18724
|
), v = (
|
|
18725
18725
|
/*showWidgetInterface*/
|
|
18726
18726
|
t[77] && Na(t)
|
|
18727
|
-
),
|
|
18727
|
+
), p = ii(
|
|
18728
18728
|
/*segmentWidgets*/
|
|
18729
18729
|
t[49]
|
|
18730
18730
|
);
|
|
@@ -18732,11 +18732,11 @@ function _3(t) {
|
|
|
18732
18732
|
/*root*/
|
|
18733
18733
|
w[173]
|
|
18734
18734
|
);
|
|
18735
|
-
for (let w = 0; w <
|
|
18736
|
-
let P = Da(t,
|
|
18735
|
+
for (let w = 0; w < p.length; w += 1) {
|
|
18736
|
+
let P = Da(t, p, w), H = T(P);
|
|
18737
18737
|
l.set(H, s[w] = Ra(H, P));
|
|
18738
18738
|
}
|
|
18739
|
-
let
|
|
18739
|
+
let b = (
|
|
18740
18740
|
/*controlPanel*/
|
|
18741
18741
|
t[23] && Fa(t)
|
|
18742
18742
|
), S = (
|
|
@@ -18754,13 +18754,13 @@ function _3(t) {
|
|
|
18754
18754
|
fe(e.$$.fragment), i = J(), m && m.c(), n = J(), v && v.c(), o = J();
|
|
18755
18755
|
for (let w = 0; w < s.length; w += 1)
|
|
18756
18756
|
s[w].c();
|
|
18757
|
-
a = J(),
|
|
18757
|
+
a = J(), b && b.c(), r = J(), S && S.c(), u = J(), j && j.c(), d = J(), L && L.c(), g = J(), fe(f.$$.fragment);
|
|
18758
18758
|
},
|
|
18759
18759
|
m(w, P) {
|
|
18760
18760
|
ce(e, w, P), M(w, i, P), m && m.m(w, P), M(w, n, P), v && v.m(w, P), M(w, o, P);
|
|
18761
18761
|
for (let H = 0; H < s.length; H += 1)
|
|
18762
18762
|
s[H] && s[H].m(w, P);
|
|
18763
|
-
M(w, a, P),
|
|
18763
|
+
M(w, a, P), b && b.m(w, P), M(w, r, P), S && S.m(w, P), M(w, u, P), j && j.m(w, P), M(w, d, P), L && L.m(w, P), M(w, g, P), ce(f, w, P), _ = !0;
|
|
18764
18764
|
},
|
|
18765
18765
|
p(w, P) {
|
|
18766
18766
|
const H = {};
|
|
@@ -18781,13 +18781,13 @@ function _3(t) {
|
|
|
18781
18781
|
}), xe()), P[0] & /*contentIndex, currentTime, playbackState*/
|
|
18782
18782
|
6272 | P[1] & /*segmentWidgets, content, duration, textColor, backgroundColor, iconColor, videoTextColor, videoBackgroundColor, videoIconColor*/
|
|
18783
18783
|
18088930 | P[2] & /*onEvent, widgetSegment, widgetIsCurrent, showRealTimeInWidget, activeAdvert, persistentAdvert, companionAdvert*/
|
|
18784
|
-
526446 && (
|
|
18784
|
+
526446 && (p = ii(
|
|
18785
18785
|
/*segmentWidgets*/
|
|
18786
18786
|
w[49]
|
|
18787
|
-
), De(), s = oc(s, P, T, 1, w,
|
|
18788
|
-
w[23] ?
|
|
18789
|
-
8388608 && I(
|
|
18790
|
-
|
|
18787
|
+
), De(), s = oc(s, P, T, 1, w, p, l, a.parentNode, nc, Ra, a, Da), xe()), /*controlPanel*/
|
|
18788
|
+
w[23] ? b ? (b.p(w, P), P[0] & /*controlPanel*/
|
|
18789
|
+
8388608 && I(b, 1)) : (b = Fa(w), b.c(), I(b, 1), b.m(r.parentNode, r)) : b && (De(), z(b, 1, 1, () => {
|
|
18790
|
+
b = null;
|
|
18791
18791
|
}), xe()), /*showMediaSession*/
|
|
18792
18792
|
w[56] ? S ? (S.p(w, P), P[1] & /*showMediaSession*/
|
|
18793
18793
|
33554432 && I(S, 1)) : (S = Ua(w), S.c(), I(S, 1), S.m(u.parentNode, u)) : S && (De(), z(S, 1, 1, () => {
|
|
@@ -18805,27 +18805,27 @@ function _3(t) {
|
|
|
18805
18805
|
i(w) {
|
|
18806
18806
|
if (!_) {
|
|
18807
18807
|
I(e.$$.fragment, w), I(m), I(v);
|
|
18808
|
-
for (let P = 0; P <
|
|
18808
|
+
for (let P = 0; P < p.length; P += 1)
|
|
18809
18809
|
I(s[P]);
|
|
18810
|
-
I(
|
|
18810
|
+
I(b), I(S), I(j), I(L), I(f.$$.fragment, w), _ = !0;
|
|
18811
18811
|
}
|
|
18812
18812
|
},
|
|
18813
18813
|
o(w) {
|
|
18814
18814
|
z(e.$$.fragment, w), z(m), z(v);
|
|
18815
18815
|
for (let P = 0; P < s.length; P += 1)
|
|
18816
18816
|
z(s[P]);
|
|
18817
|
-
z(
|
|
18817
|
+
z(b), z(S), z(j), z(L), z(f.$$.fragment, w), _ = !1;
|
|
18818
18818
|
},
|
|
18819
18819
|
d(w) {
|
|
18820
18820
|
w && (V(i), V(n), V(o), V(a), V(r), V(u), V(d), V(g)), de(e, w), m && m.d(w), v && v.d(w);
|
|
18821
18821
|
for (let P = 0; P < s.length; P += 1)
|
|
18822
18822
|
s[P].d(w);
|
|
18823
|
-
|
|
18823
|
+
b && b.d(w), S && S.d(w), j && j.d(w), L && L.d(w), de(f, w);
|
|
18824
18824
|
}
|
|
18825
18825
|
};
|
|
18826
18826
|
}
|
|
18827
18827
|
function y3(t, e, i) {
|
|
18828
|
-
let n, o, s, l, a, r, u, d, g, f, _, m, v,
|
|
18828
|
+
let n, o, s, l, a, r, u, d, g, f, _, m, v, p, T, b, S, j, L, w, P, H, Z, R, ae, ie, se, Q, $, { playerApiUrl: re = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: me = void 0 } = e, { contentId: ge = void 0 } = e, { playlistId: ue = void 0 } = e, { sourceId: ne = void 0 } = e, { sourceUrl: y = void 0 } = e, { playlist: C = [] } = e, { clientSideEnabled: F = !1 } = e, { showUserInterface: x = !0 } = e, { showBottomWidget: Ve = !1 } = e, { playerStyle: Me = "standard" } = e, { playerTitle: Ne = void 0 } = e, { callToAction: D = void 0 } = e, { skipButtonStyle: he = "auto" } = e, { playlistStyle: Be = "auto-5-4" } = e, { playlistToggle: Oe = "auto" } = e, { downloadFormats: Ze = [] } = e, { mediaSession: pe = "auto" } = e, { content: Ue = [] } = e, { contentIndex: Ie = 0 } = e, { introsOutros: tt = [] } = e, { introsOutrosIndex: je = -1 } = e, { adverts: ut = [] } = e, { advertIndex: He = -1 } = e, { preloadAdvertIndex: Xe = -1 } = e, { minDurationForMidroll: Qe = 2 * 60 } = e, { minTimeUntilEndForMidroll: ht = 10 } = e, { persistentAdImage: Bt = !1 } = e, { persistentIndex: Ke = -1 } = e, { duration: yt = 0 } = e, { currentTime: Ce = 0 } = e, { playbackState: Ge = "stopped" } = e, { playbackRate: qe = 1 } = e, { playbackRates: Wt = [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: Re = "standard" } = e, { widgetPosition: St = "auto" } = e, { widgetWidth: vt = "auto" } = e, { widgetTarget: ct = void 0 } = e, { textColor: it = "#111" } = e, { backgroundColor: $e = "#f5f5f5" } = e, { iconColor: wt = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: nt = "#eee" } = e, { videoTextColor: Tt = "white" } = e, { videoBackgroundColor: Pt = "black" } = e, { videoIconColor: Vt = "white" } = e, { logoIconEnabled: bt = !0 } = e, { highlightSections: Ye = "all" } = e, { clickableSections: Je = "all" } = e, { segmentWidgetSections: at = "body" } = e, { segmentWidgetPosition: et = "7-oclock" } = e, { currentSegment: ot = void 0 } = e, { hoveredSegment: Fe = void 0 } = e, { loadedMedia: dt = void 0 } = e, { previewToken: q = void 0 } = e, { advertConsent: rt = "personalized" } = e, { analyticsConsent: st = "allowed" } = e, { analyticsCustomUrl: lt = void 0 } = e, { analyticsDeviceType: Ae = "auto" } = e, { analyticsTag: B = void 0 } = e, { captureErrors: O = !0 } = e, { onError: W = () => {
|
|
18829
18829
|
} } = e, { transitions: jt = [] } = e, { controlPanel: Nt = void 0 } = e;
|
|
18830
18830
|
const Vi = (...A) => Ct.addEventListener(...A), Rt = (...A) => Ct.removeEventListener(...A);
|
|
18831
18831
|
let { initialProps: Zi = {} } = e, { showMediaSession: ui = !1 } = e, { metadataLoaded: Wi = !1 } = e, { isFullScreen: At = !1 } = e, { mediaElement: ci = void 0 } = e, { userInterface: Yt = void 0 } = e, { widgetInterface: di = void 0 } = e, { controller: Ct = void 0 } = e, { logoImagePosition: ni = void 0 } = e, { analyticsUrl: Si = void 0 } = e, { analyticsId: Dt = void 0 } = e, { platform: yi = "web" } = e, { vendorIdentifier: oi = void 0 } = e, { bundleIdentifier: ln = void 0 } = e, { contentLanguage: Ft = "en" } = e, { listenSessionId: Ki = void 0 } = e, { sessionCreatedAt: xt = void 0 } = e, { companionAdvert: si = void 0 } = e, { isNewListen: kt = !1 } = e, { prevPercentage: Ut = 0 } = e, { segmentWidgets: _t = [] } = e, { segmentContainers: Zt = new sl((A) => i(49, _t = A)) } = e, { segmentClickables: Ot = new nl() } = e, { segmentHighlights: N = new ll() } = e;
|
|
@@ -19024,13 +19024,13 @@ function y3(t, e, i) {
|
|
|
19024
19024
|
16777216 && i(114, _ = Ve || ct), t.$$.dirty[2] & /*interfaceStyle*/
|
|
19025
19025
|
1024 && i(116, m = f === "screen"), t.$$.dirty[2] & /*interfaceStyle*/
|
|
19026
19026
|
1024 && i(115, v = f === "large"), t.$$.dirty[3] & /*isScreen, isLarge*/
|
|
19027
|
-
12582912 && i(79,
|
|
19027
|
+
12582912 && i(79, p = m ? 120 : v ? 80 : 0), t.$$.dirty[0] & /*showUserInterface*/
|
|
19028
19028
|
32 | t.$$.dirty[1] & /*content*/
|
|
19029
19029
|
1048576 | t.$$.dirty[2] & /*interfaceStyle*/
|
|
19030
19030
|
1024 && i(78, T = x && ul(f) && Ue.length > 0), t.$$.dirty[0] & /*showUserInterface, widgetStyle*/
|
|
19031
19031
|
8224 | t.$$.dirty[1] & /*content*/
|
|
19032
19032
|
1048576 | t.$$.dirty[3] & /*showWidget*/
|
|
19033
|
-
2097152 && i(77,
|
|
19033
|
+
2097152 && i(77, b = x && _ && ul(Re) && Ue.length > 0), t.$$.dirty[0] & /*controlPanel*/
|
|
19034
19034
|
8388608 && i(23, Nt = rl(Nt, "control panel")), t.$$.dirty[0] & /*widgetStyle*/
|
|
19035
19035
|
8192 | t.$$.dirty[1] & /*isFullScreen*/
|
|
19036
19036
|
67108864 | t.$$.dirty[3] & /*showWidget*/
|
|
@@ -19148,9 +19148,9 @@ function y3(t, e, i) {
|
|
|
19148
19148
|
Z,
|
|
19149
19149
|
P,
|
|
19150
19150
|
j,
|
|
19151
|
-
|
|
19151
|
+
b,
|
|
19152
19152
|
T,
|
|
19153
|
-
|
|
19153
|
+
p,
|
|
19154
19154
|
g,
|
|
19155
19155
|
a,
|
|
19156
19156
|
l,
|
|
@@ -20081,20 +20081,20 @@ const cl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
|
|
|
20081
20081
|
if (!((T = o[s]) != null && T.adsEnabled) || t !== -1)
|
|
20082
20082
|
return -1;
|
|
20083
20083
|
const _ = z3({ content: o, contentIndex: s, currentTime: l, atTheStart: a, atTheEnd: r, minTimeUntilEndForMidroll: d, minDurationForMidroll: g });
|
|
20084
|
-
let m = -1, v = -1 / 0,
|
|
20085
|
-
for (const [
|
|
20084
|
+
let m = -1, v = -1 / 0, p = -1 / 0;
|
|
20085
|
+
for (const [b, S] of e.entries()) {
|
|
20086
20086
|
if (M3(S) || Hr(S) || !_.has(S.placement))
|
|
20087
20087
|
continue;
|
|
20088
20088
|
const j = j3[S.type] || 0;
|
|
20089
20089
|
if (j < v)
|
|
20090
20090
|
continue;
|
|
20091
|
-
const L = n ===
|
|
20092
|
-
j === v && L <
|
|
20091
|
+
const L = n === b ? 1 / 0 : Math.random();
|
|
20092
|
+
j === v && L < p || (m = b, v = j, p = L);
|
|
20093
20093
|
}
|
|
20094
20094
|
return m;
|
|
20095
20095
|
}, j3 = { vast: 1, custom: 0 }, z3 = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o, minTimeUntilEndForMidroll: s, minDurationForMidroll: l }) => {
|
|
20096
|
-
const a = e === 0, r = e === t.length - 1, u = t.length > 1, d = u && n && !a, g = t[e].segments, f = g[g.length - 1], _ = u ? null : D3(g, l), m = g[_], v = m && i > m.startTime,
|
|
20097
|
-
return n &&
|
|
20096
|
+
const a = e === 0, r = e === t.length - 1, u = t.length > 1, d = u && n && !a, g = t[e].segments, f = g[g.length - 1], _ = u ? null : D3(g, l), m = g[_], v = m && i > m.startTime, p = f ? f.startTime + f.duration : 0, T = i > p - s, b = /* @__PURE__ */ new Set();
|
|
20097
|
+
return n && b.add("pre-roll"), v && !T && b.add("mid-roll"), d && b.add("mid-roll"), o && r && b.add("post-roll"), d && b.add("post-roll"), b;
|
|
20098
20098
|
}, L3 = 0.5, D3 = (t, e) => {
|
|
20099
20099
|
const i = t[t.length - 1];
|
|
20100
20100
|
if (!i)
|
|
@@ -20147,11 +20147,11 @@ const cl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
|
|
|
20147
20147
|
for (const [m, v] of t.entries()) {
|
|
20148
20148
|
if (U3(v) || !d.has(v.placement))
|
|
20149
20149
|
continue;
|
|
20150
|
-
const
|
|
20151
|
-
if (
|
|
20150
|
+
const p = q3(v) ? 1 : 0;
|
|
20151
|
+
if (p < f)
|
|
20152
20152
|
continue;
|
|
20153
20153
|
const T = Math.random();
|
|
20154
|
-
|
|
20154
|
+
p === f && T < _ || (g = m, f = p, _ = T);
|
|
20155
20155
|
}
|
|
20156
20156
|
return g;
|
|
20157
20157
|
}, Z3 = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o }) => {
|
|
@@ -20501,15 +20501,15 @@ gs = new WeakSet(), Kr = function({ type: e }) {
|
|
|
20501
20501
|
const { content: o, introsOutros: s, currentTime: l } = this.player, a = typeof this.nextIntroOutro != "undefined" ? this.nextIntroOutro : this.player.introsOutrosIndex, r = typeof this.nextAdvert != "undefined" ? this.nextAdvert : this.player.advertIndex, u = typeof this.prevContent != "undefined" ? this.prevContent : this.player.contentIndex;
|
|
20502
20502
|
U(this, Cn, to).call(this, Y3({ introsOutros: s, introsOutrosIndex: a, advertIndex: r, content: o, contentIndex: u, currentTime: l, atTheStart: e, atTheEnd: i, errored: n }));
|
|
20503
20503
|
}, Yi = new WeakSet(), mn = function({ atTheStart: e, atTheEnd: i, wasIntro: n, errored: o, preloadingErrored: s } = {}) {
|
|
20504
|
-
var
|
|
20504
|
+
var p;
|
|
20505
20505
|
const { adverts: l, content: a, currentTime: r, minDurationForMidroll: u, minTimeUntilEndForMidroll: d } = this.player;
|
|
20506
20506
|
let g = typeof this.nextIntroOutro != "undefined" ? this.nextIntroOutro : this.player.introsOutrosIndex;
|
|
20507
20507
|
const f = typeof this.nextAdvert != "undefined" ? this.nextAdvert : this.player.advertIndex, _ = typeof this.prevContent != "undefined" ? this.prevContent : this.player.contentIndex;
|
|
20508
20508
|
if (n && (e = !0, i = !1, g = -1), U(this, _o, ml).call(this, Ya({ introsOutrosIndex: g, adverts: l, advertIndex: f, preloadAdvertIndex: this.player.preloadAdvertIndex, content: a, contentIndex: _, currentTime: r, atTheStart: e, atTheEnd: i, errored: o, minDurationForMidroll: u, minTimeUntilEndForMidroll: d })), U(this, ki, Mi).call(this))
|
|
20509
20509
|
this.player.preloadAdvertIndex = -1;
|
|
20510
20510
|
else {
|
|
20511
|
-
const
|
|
20512
|
-
|
|
20511
|
+
const T = Ya({ introsOutrosIndex: g, adverts: l, advertIndex: this.player.preloadAdvertIndex, content: a, contentIndex: _, currentTime: r + 5, atTheStart: e, atTheEnd: i, errored: s, minDurationForMidroll: u, minTimeUntilEndForMidroll: d }), b = (p = this.player.adverts) == null ? void 0 : p[T];
|
|
20512
|
+
b != null && b.vastUrl && ["mid-roll", "post-roll"].includes(b == null ? void 0 : b.placement) ? this.player.preloadAdvertIndex = T : this.player.preloadAdvertIndex = -1;
|
|
20513
20513
|
}
|
|
20514
20514
|
const m = this.player.persistentAdImage, v = this.player.persistentIndex;
|
|
20515
20515
|
this.player.persistentIndex = x3(m, v, f, l);
|