@beyondwords/player 0.0.0-beta46 → 0.0.0-beta48

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 CHANGED
@@ -1,22 +1,22 @@
1
1
  var aa = Object.defineProperty, ua = Object.defineProperties;
2
2
  var ca = Object.getOwnPropertyDescriptors;
3
3
  var _s = Object.getOwnPropertySymbols;
4
- var Ko = Object.prototype.hasOwnProperty, Jo = Object.prototype.propertyIsEnumerable;
5
- var Zo = (t, e, i) => e in t ? aa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Ft = (t, e) => {
4
+ var Jo = Object.prototype.hasOwnProperty, Go = Object.prototype.propertyIsEnumerable;
5
+ var Ko = (t, e, i) => e in t ? aa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Ft = (t, e) => {
6
6
  for (var i in e || (e = {}))
7
- Ko.call(e, i) && Zo(t, i, e[i]);
7
+ Jo.call(e, i) && Ko(t, i, e[i]);
8
8
  if (_s)
9
9
  for (var i of _s(e))
10
- Jo.call(e, i) && Zo(t, i, e[i]);
10
+ Go.call(e, i) && Ko(t, i, e[i]);
11
11
  return t;
12
12
  }, ji = (t, e) => ua(t, ca(e));
13
13
  var ao = (t, e) => {
14
14
  var i = {};
15
15
  for (var n in t)
16
- Ko.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
16
+ Jo.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
17
17
  if (t != null && _s)
18
18
  for (var n of _s(t))
19
- e.indexOf(n) < 0 && Jo.call(t, n) && (i[n] = t[n]);
19
+ e.indexOf(n) < 0 && Go.call(t, n) && (i[n] = t[n]);
20
20
  return i;
21
21
  };
22
22
  var uo = (t, e, i) => {
@@ -27,7 +27,7 @@ var vi = (t, e, i) => (uo(t, e, "read from private field"), i ? i.call(t) : e.ge
27
27
  if (e.has(t))
28
28
  throw TypeError("Cannot add the same private member more than once");
29
29
  e instanceof WeakSet ? e.add(t) : e.set(t, i);
30
- }, Go = (t, e, i, n) => (uo(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i);
30
+ }, Xo = (t, e, i, n) => (uo(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i);
31
31
  var O = (t, e, i) => (uo(t, e, "access private method"), i);
32
32
  var si = (t, e, i) => new Promise((n, s) => {
33
33
  var o = (a) => {
@@ -53,14 +53,14 @@ function ga(t, e) {
53
53
  t[i] = e[i];
54
54
  return t;
55
55
  }
56
- function ur(t) {
56
+ function cr(t) {
57
57
  return t();
58
58
  }
59
- function Xo() {
59
+ function Qo() {
60
60
  return /* @__PURE__ */ Object.create(null);
61
61
  }
62
62
  function Ke(t) {
63
- t.forEach(ur);
63
+ t.forEach(cr);
64
64
  }
65
65
  function Mn(t) {
66
66
  return typeof t == "function";
@@ -77,11 +77,11 @@ function fa(t) {
77
77
  }
78
78
  function On(t, e, i, n) {
79
79
  if (t) {
80
- const s = cr(t, e, i, n);
80
+ const s = dr(t, e, i, n);
81
81
  return t[0](s);
82
82
  }
83
83
  }
84
- function cr(t, e, i, n) {
84
+ function dr(t, e, i, n) {
85
85
  return t[1] && n ? ga(i.ctx.slice(), t[1](n(e))) : i.ctx;
86
86
  }
87
87
  function zn(t, e, i, n) {
@@ -101,7 +101,7 @@ function zn(t, e, i, n) {
101
101
  }
102
102
  function En(t, e, i, n, s, o) {
103
103
  if (s) {
104
- const l = cr(e, i, n, o);
104
+ const l = dr(e, i, n, o);
105
105
  t.p(l, s);
106
106
  }
107
107
  }
@@ -114,24 +114,24 @@ function Ln(t) {
114
114
  }
115
115
  return -1;
116
116
  }
117
- function Qo(t) {
117
+ function $o(t) {
118
118
  return t == null ? "" : t;
119
119
  }
120
- function $o(t) {
120
+ function el(t) {
121
121
  const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
122
122
  return e ? [parseFloat(e[1]), e[2] || "px"] : [t, "px"];
123
123
  }
124
- const dr = typeof window != "undefined";
125
- let ha = dr ? () => window.performance.now() : () => Date.now(), lo = dr ? (t) => requestAnimationFrame(t) : X;
124
+ const gr = typeof window != "undefined";
125
+ let ha = gr ? () => window.performance.now() : () => Date.now(), lo = gr ? (t) => requestAnimationFrame(t) : X;
126
126
  const Wn = /* @__PURE__ */ new Set();
127
- function gr(t) {
127
+ function fr(t) {
128
128
  Wn.forEach((e) => {
129
129
  e.c(t) || (Wn.delete(e), e.f());
130
- }), Wn.size !== 0 && lo(gr);
130
+ }), Wn.size !== 0 && lo(fr);
131
131
  }
132
132
  function _a(t) {
133
133
  let e;
134
- return Wn.size === 0 && lo(gr), {
134
+ return Wn.size === 0 && lo(fr), {
135
135
  promise: new Promise((i) => {
136
136
  Wn.add(e = { c: t, f: i });
137
137
  }),
@@ -144,7 +144,7 @@ const ma = typeof window != "undefined" ? window : typeof globalThis != "undefin
144
144
  function g(t, e) {
145
145
  t.appendChild(e);
146
146
  }
147
- function fr(t) {
147
+ function hr(t) {
148
148
  if (!t)
149
149
  return document;
150
150
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
@@ -152,7 +152,7 @@ function fr(t) {
152
152
  }
153
153
  function ya(t) {
154
154
  const e = _("style");
155
- return va(fr(t), e), e.sheet;
155
+ return va(hr(t), e), e.sheet;
156
156
  }
157
157
  function va(t, e) {
158
158
  return g(t.head || t, e), e.sheet;
@@ -259,7 +259,7 @@ function Pa(t, e) {
259
259
  const i = { stylesheet: ya(e), rules: {} };
260
260
  return js.set(t, i), i;
261
261
  }
262
- function el(t, e, i, n, s, o, l, r = 0) {
262
+ function tl(t, e, i, n, s, o, l, r = 0) {
263
263
  const a = 16.666 / n;
264
264
  let c = `{
265
265
  `;
@@ -269,7 +269,7 @@ function el(t, e, i, n, s, o, l, r = 0) {
269
269
  `;
270
270
  }
271
271
  const u = c + `100% {${l(i, 1 - i)}}
272
- }`, h = `__svelte_${wa(u)}_${r}`, m = fr(t), { stylesheet: v, rules: y } = js.get(m) || Pa(m, t);
272
+ }`, h = `__svelte_${wa(u)}_${r}`, m = hr(t), { stylesheet: v, rules: y } = js.get(m) || Pa(m, t);
273
273
  y[h] || (y[h] = !0, v.insertRule(`@keyframes ${h} ${u}`, v.cssRules.length));
274
274
  const p = t.style.animation || "";
275
275
  return t.style.animation = `${p ? `${p}, ` : ""}${h} ${n}ms linear ${s}ms 1 both`, Ms += 1, h;
@@ -293,26 +293,26 @@ let Jn;
293
293
  function Zn(t) {
294
294
  Jn = t;
295
295
  }
296
- function hr() {
296
+ function _r() {
297
297
  if (!Jn)
298
298
  throw new Error("Function called outside component initialization");
299
299
  return Jn;
300
300
  }
301
301
  function Lo(t) {
302
- hr().$$.on_mount.push(t);
302
+ _r().$$.on_mount.push(t);
303
303
  }
304
304
  function Ca(t) {
305
- hr().$$.on_destroy.push(t);
305
+ _r().$$.on_destroy.push(t);
306
306
  }
307
307
  const Bn = [], ie = [];
308
308
  let jn = [];
309
- const po = [], _r = /* @__PURE__ */ Promise.resolve();
309
+ const po = [], mr = /* @__PURE__ */ Promise.resolve();
310
310
  let So = !1;
311
- function mr() {
312
- So || (So = !0, _r.then(d));
311
+ function yr() {
312
+ So || (So = !0, mr.then(d));
313
313
  }
314
314
  function Ba() {
315
- return mr(), _r;
315
+ return yr(), mr;
316
316
  }
317
317
  function Ue(t) {
318
318
  jn.push(t);
@@ -394,7 +394,7 @@ function j(t, e, i, n) {
394
394
  n && n();
395
395
  }
396
396
  const ja = { duration: 0 };
397
- function tl(t, e, i, n) {
397
+ function il(t, e, i, n) {
398
398
  const s = { direction: "both" };
399
399
  let o = e(t, i, s), l = n ? 0 : 1, r = null, a = null, c = null;
400
400
  function u() {
@@ -417,8 +417,8 @@ function tl(t, e, i, n) {
417
417
  start: ha() + y,
418
418
  b: v
419
419
  };
420
- v || (Z.group = qi, qi.r += 1), r || a ? a = Z : (M && (u(), c = el(t, l, v, p, y, b, M)), v && W(0, 1), r = h(Z, p), Ue(() => go(t, v, "start")), _a((J) => {
421
- if (a && J > a.start && (r = h(a, p), a = null, go(t, r.b, "start"), M && (u(), c = el(t, l, r.b, r.duration, 0, b, o.css))), r) {
420
+ v || (Z.group = qi, qi.r += 1), r || a ? a = Z : (M && (u(), c = tl(t, l, v, p, y, b, M)), v && W(0, 1), r = h(Z, p), Ue(() => go(t, v, "start")), _a((J) => {
421
+ if (a && J > a.start && (r = h(a, p), a = null, go(t, r.b, "start"), M && (u(), c = tl(t, l, r.b, r.duration, 0, b, o.css))), r) {
422
422
  if (J >= r.end)
423
423
  W(l = r.b, 1 - l), go(t, r.b, "end"), a || (r.b ? u() : --r.group.r || Ke(r.group.c)), r = null;
424
424
  else if (J >= r.start) {
@@ -482,7 +482,7 @@ function de(t) {
482
482
  function ae(t, e, i, n) {
483
483
  const { fragment: s, after_update: o } = t.$$;
484
484
  s && s.m(e, i), n || Ue(() => {
485
- const l = t.$$.on_mount.map(ur).filter(Mn);
485
+ const l = t.$$.on_mount.map(cr).filter(Mn);
486
486
  t.$$.on_destroy ? t.$$.on_destroy.push(...l) : Ke(l), t.$$.on_mount = [];
487
487
  }), o.forEach(Ue);
488
488
  }
@@ -491,7 +491,7 @@ function ue(t, e) {
491
491
  i.fragment !== null && (Va(i.after_update), Ke(i.on_destroy), i.fragment && i.fragment.d(e), i.on_destroy = i.fragment = null, i.ctx = []);
492
492
  }
493
493
  function za(t, e) {
494
- t.$$.dirty[0] === -1 && (Bn.push(t), mr(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
494
+ t.$$.dirty[0] === -1 && (Bn.push(t), yr(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
495
495
  }
496
496
  function ke(t, e, i, n, s, o, l, r = [-1]) {
497
497
  const a = Jn;
@@ -503,7 +503,7 @@ function ke(t, e, i, n, s, o, l, r = [-1]) {
503
503
  props: o,
504
504
  update: X,
505
505
  not_equal: s,
506
- bound: Xo(),
506
+ bound: Qo(),
507
507
  // lifecycle
508
508
  on_mount: [],
509
509
  on_destroy: [],
@@ -512,7 +512,7 @@ function ke(t, e, i, n, s, o, l, r = [-1]) {
512
512
  after_update: [],
513
513
  context: new Map(e.context || (a ? a.$$.context : [])),
514
514
  // everything else
515
- callbacks: Xo(),
515
+ callbacks: Qo(),
516
516
  dirty: r,
517
517
  skip_bound: !1,
518
518
  root: e.target || a.$$.root
@@ -549,7 +549,7 @@ class pe {
549
549
  this.$$set && !fa(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
550
550
  }
551
551
  }
552
- const Ea = "@beyondwords/player", yr = "0.0.0-beta46", Xt = (t, e) => {
552
+ const Ea = "@beyondwords/player", xo = "0.0.0-beta48", Xt = (t, e) => {
553
553
  t = [t].flat().join(`
554
554
  `);
555
555
  let i = `${Ea}:
@@ -585,12 +585,12 @@ for (let t = 0; t < 256; ++t)
585
585
  function Da(t, e = 0) {
586
586
  return (Nt[t[e + 0]] + Nt[t[e + 1]] + Nt[t[e + 2]] + Nt[t[e + 3]] + "-" + Nt[t[e + 4]] + Nt[t[e + 5]] + "-" + Nt[t[e + 6]] + Nt[t[e + 7]] + "-" + Nt[t[e + 8]] + Nt[t[e + 9]] + "-" + Nt[t[e + 10]] + Nt[t[e + 11]] + Nt[t[e + 12]] + Nt[t[e + 13]] + Nt[t[e + 14]] + Nt[t[e + 15]]).toLowerCase();
587
587
  }
588
- const Ra = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), il = {
588
+ const Ra = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nl = {
589
589
  randomUUID: Ra
590
590
  };
591
591
  function Os(t, e, i) {
592
- if (il.randomUUID && !e && !t)
593
- return il.randomUUID();
592
+ if (nl.randomUUID && !e && !t)
593
+ return nl.randomUUID();
594
594
  t = t || {};
595
595
  const n = t.random || (t.rng || xa)();
596
596
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
@@ -601,15 +601,15 @@ function Os(t, e, i) {
601
601
  }
602
602
  return Da(n);
603
603
  }
604
- const xo = ["user", "media", "browser", "media-session-api", "google-ima-sdk", "websocket"], vr = ["inline-player", "bottom-widget", "segment", "segment-widget"], Ua = ["handled", "ignored-due-to-advert", "ignored-due-to-scrubbing"], Fa = ["load", "play", "play_progress", "ad_link_click"], qa = ["phone", "tablet", "desktop"], Ha = ["content", "ad"], Ya = (t) => {
605
- Ie(t, "type", (e) => No(e)), Ie(t, "description", (e) => e.length > 0), Ie(t, "initiatedBy", (e) => xo.includes(e));
604
+ const No = ["user", "media", "browser", "media-session-api", "google-ima-sdk", "websocket"], vr = ["inline-player", "bottom-widget", "segment", "segment-widget"], Ua = ["handled", "ignored-due-to-advert", "ignored-due-to-scrubbing"], Fa = ["load", "play", "play_progress", "ad_link_click"], qa = ["phone", "tablet", "desktop"], Ha = ["content", "ad"], Ya = (t) => {
605
+ Ie(t, "type", (e) => Do(e)), Ie(t, "description", (e) => e.length > 0), Ie(t, "initiatedBy", (e) => No.includes(e));
606
606
  }, Za = (t) => {
607
- Ie(t, "type", (e) => No(e)), Ie(t, "description", (e) => e.length > 0), Ie(t, "initiatedBy", (e) => xo.includes(e)), Ie(t, "emittedFrom", (e) => vr.includes(e)), Ie(t, "id", (e) => Kn(e)), Ie(t, "createdAt", (e) => wo(e)), Ie(t, "status", (e) => e === "pending");
607
+ Ie(t, "type", (e) => Do(e)), Ie(t, "description", (e) => e.length > 0), Ie(t, "initiatedBy", (e) => No.includes(e)), Ie(t, "emittedFrom", (e) => vr.includes(e)), Ie(t, "id", (e) => Kn(e)), Ie(t, "createdAt", (e) => wo(e)), Ie(t, "status", (e) => e === "pending");
608
608
  }, Ka = (t) => {
609
- Ie(t, "type", (e) => No(e)), Ie(t, "description", (e) => e.length > 0), Ie(t, "initiatedBy", (e) => xo.includes(e)), Ie(t, "emittedFrom", (e) => vr.includes(e)), Ie(t, "id", (e) => Kn(e)), Ie(t, "createdAt", (e) => wo(e)), Ie(t, "status", (e) => Ua.includes(e)), Ie(t, "changedProps", (e) => typeof e == "object"), Ie(t, "processedAt", (e) => wo(e));
609
+ Ie(t, "type", (e) => Do(e)), Ie(t, "description", (e) => e.length > 0), Ie(t, "initiatedBy", (e) => No.includes(e)), Ie(t, "emittedFrom", (e) => vr.includes(e)), Ie(t, "id", (e) => Kn(e)), Ie(t, "createdAt", (e) => wo(e)), Ie(t, "status", (e) => Ua.includes(e)), Ie(t, "changedProps", (e) => typeof e == "object"), Ie(t, "processedAt", (e) => wo(e));
610
610
  }, Ja = (t) => {
611
611
  Ie(t, "event_type", (e) => Fa.includes(e)), Ie(t, "device_type", (e) => qa.includes(e)), Ie(t, "media_type", (e) => Ha.includes(e)), Ie(t, "content_id", (e) => !e || Kn(e)), Ie(t, "project_id", (e) => !e || e > 0), Ie(t, "analytics_id", (e) => !e || e > 0), Ie(t, "ad_id", (e) => !e || e > 0), Ie(t, "media_id", (e) => !e || e > 0), Ie(t, "local_storage_id", (e) => !e || Kn(e)), Ie(t, "listen_session_id", (e) => !e || Kn(e)), Ie(t, "session_created_at", (e) => e >= 0), Ie(t, "duration", (e) => e >= 0), Ie(t, "listen_length_percent", (e) => e >= 0 && e <= 100), Ie(t, "listen_length_seconds", (e) => e >= 0), Ie(t, "speed", (e) => e >= 0), Ie(t, "location", (e) => e.length > 0), Ie(t, "referrer", (e) => typeof e == "string"), Ie(t, "player_version", (e) => e.length > 0), Ie(t, "player_npm_version", (e) => e.length > 0);
612
- }, No = (t) => {
612
+ }, Do = (t) => {
613
613
  t = t || "<invalid>";
614
614
  const e = t[0] === t[0].toUpperCase(), i = t.match(/[^a-zA-Z]/);
615
615
  return e && !i;
@@ -644,12 +644,12 @@ const xo = ["user", "media", "browser", "media-session-api", "google-ima-sdk", "
644
644
  return !1;
645
645
  const e = window.innerHeight || document.documentElement.clientHeight, i = window.innerWidth || document.documentElement.clientWidth, { top: n, bottom: s, left: o, right: l } = t.getBoundingClientRect();
646
646
  return n < e && s > 0 && o < i && l > 0;
647
- }, nl = (t, e, i) => Pe(t, e, e === "style" ? $a(i) : i), Qa = /;(?!([^()]*\([^()]*\))*[^()]*\))/, $a = (t) => t.split(Qa).map((e) => e + " !important").join(";"), { document: eu } = ma;
647
+ }, sl = (t, e, i) => Pe(t, e, e === "style" ? $a(i) : i), Qa = /;(?!([^()]*\([^()]*\))*[^()]*\))/, $a = (t) => t.split(Qa).map((e) => e + " !important").join(";"), { document: eu } = ma;
648
648
  function tu(t) {
649
649
  let e, i, n, s, o, l;
650
650
  return {
651
651
  c() {
652
- e = _("script"), n = K(), s = _("div"), wn(e.src, i = "https://imasdk.googleapis.com/js/sdkloader/ima3.js") || nl(e, "src", i), nl(s, "class", "vast-container");
652
+ e = _("script"), n = K(), s = _("div"), wn(e.src, i = "https://imasdk.googleapis.com/js/sdkloader/ima3.js") || sl(e, "src", i), sl(s, "class", "vast-container");
653
653
  },
654
654
  m(r, a) {
655
655
  g(eu.head, e), V(r, n, a), V(r, s, a), t[12](s), o || (l = [
@@ -3494,7 +3494,7 @@ const St = (t, { locale: e } = {}) => {
3494
3494
  if (To[n])
3495
3495
  return To[n];
3496
3496
  }
3497
- }, Ht = (t) => t.currentTarget.blur(), Do = (t, e) => {
3497
+ }, Ht = (t) => t.currentTarget.blur(), Ro = (t, e) => {
3498
3498
  const i = t.findIndex((l) => l.startTime > e), n = i === -1, s = i - 1;
3499
3499
  return s === -1 ? 0 : n ? t.length - 1 : s;
3500
3500
  }, h1 = (t, e) => {
@@ -3506,11 +3506,11 @@ const St = (t, { locale: e } = {}) => {
3506
3506
  return i || console.warn("BeyondWords.Player: media was loaded but failed to set loadedMedia"), i;
3507
3507
  };
3508
3508
  const Dt = (t, e, i) => Pe(t, e, e === "style" ? m1(i) : i), _1 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, m1 = (t) => t.split(_1).map((e) => e + " !important").join(";");
3509
- function sl(t, e, i) {
3509
+ function ol(t, e, i) {
3510
3510
  const n = t.slice();
3511
3511
  return n[55] = e[i].url, n[56] = e[i].contentType, n[58] = i, n;
3512
3512
  }
3513
- function ol(t) {
3513
+ function ll(t) {
3514
3514
  let e, i, n, s, o;
3515
3515
  return {
3516
3516
  c() {
@@ -3543,7 +3543,7 @@ function ol(t) {
3543
3543
  }
3544
3544
  };
3545
3545
  }
3546
- function ll(t) {
3546
+ function rl(t) {
3547
3547
  let e, i, n, s, o;
3548
3548
  function l(u) {
3549
3549
  t[44](u);
@@ -3616,7 +3616,7 @@ function ll(t) {
3616
3616
  }
3617
3617
  );
3618
3618
  }
3619
- function rl(t) {
3619
+ function al(t) {
3620
3620
  let e, i, n, s;
3621
3621
  return {
3622
3622
  c() {
@@ -3650,16 +3650,16 @@ function y1(t) {
3650
3650
  t[10]
3651
3651
  ), v = [];
3652
3652
  for (let W = 0; W < m.length; W += 1)
3653
- v[W] = ol(sl(t, m, W));
3653
+ v[W] = ll(ol(t, m, W));
3654
3654
  function y() {
3655
3655
  cancelAnimationFrame(o), n.paused || (o = lo(y), s = !0), t[42].call(n);
3656
3656
  }
3657
3657
  let p = (
3658
3658
  /*vastUrl*/
3659
- t[11] && ll(t)
3659
+ t[11] && rl(t)
3660
3660
  ), b = (
3661
3661
  /*customUrl*/
3662
- t[15] && rl(t)
3662
+ t[15] && al(t)
3663
3663
  );
3664
3664
  return {
3665
3665
  c() {
@@ -3766,8 +3766,8 @@ function y1(t) {
3766
3766
  W[10];
3767
3767
  let Z;
3768
3768
  for (Z = 0; Z < m.length; Z += 1) {
3769
- const J = sl(W, m, Z);
3770
- v[Z] ? v[Z].p(J, M) : (v[Z] = ol(J), v[Z].c(), v[Z].m(n, null));
3769
+ const J = ol(W, m, Z);
3770
+ v[Z] ? v[Z].p(J, M) : (v[Z] = ll(J), v[Z].c(), v[Z].m(n, null));
3771
3771
  }
3772
3772
  for (; Z < v.length; Z += 1)
3773
3773
  v[Z].d(1);
@@ -3785,10 +3785,10 @@ function y1(t) {
3785
3785
  ) && (n.playbackRate = /*playbackRate*/
3786
3786
  W[4]), /*vastUrl*/
3787
3787
  W[11] ? p ? (p.p(W, M), M[0] & /*vastUrl*/
3788
- 2048 && T(p, 1)) : (p = ll(W), p.c(), T(p, 1), p.m(i, r)) : p && (xe(), j(p, 1, 1, () => {
3788
+ 2048 && T(p, 1)) : (p = rl(W), p.c(), T(p, 1), p.m(i, r)) : p && (xe(), j(p, 1, 1, () => {
3789
3789
  p = null;
3790
3790
  }), Ne()), /*customUrl*/
3791
- W[15] ? b ? b.p(W, M) : (b = rl(W), b.c(), b.m(i, null)) : b && (b.d(1), b = null), (!c || M[0] & /*position*/
3791
+ W[15] ? b ? b.p(W, M) : (b = al(W), b.c(), b.m(i, null)) : b && (b.d(1), b = null), (!c || M[0] & /*position*/
3792
3792
  16384 && a !== (a = "media-element " + /*position*/
3793
3793
  W[14] + " svelte-fdymel")) && Dt(e, "class", a), (!c || M[0] & /*style*/
3794
3794
  8192) && Dt(
@@ -3980,7 +3980,7 @@ function v1(t, e, i) {
3980
3980
  1 && i(13, m = G ? `width: ${ee}` : ""), t.$$.dirty[0] & /*playbackState, currentTime*/
3981
3981
  3 && i(36, v = J === "stopped" && x === 0), t.$$.dirty[0] & /*introOrOutro, activeAdvert, currentTime*/
3982
3982
  805306370 | t.$$.dirty[1] & /*atTheStart, segments*/
3983
- 48 && i(34, y = W || M || v ? -1 : Do(s, x)), t.$$.dirty[1] & /*segmentIndex*/
3983
+ 48 && i(34, y = W || M || v ? -1 : Ro(s, x)), t.$$.dirty[1] & /*segmentIndex*/
3984
3984
  8 && Le(), t.$$.dirty[0] & /*videoBehindWidget*/
3985
3985
  64 && G && Ae();
3986
3986
  }, [
@@ -4165,7 +4165,7 @@ function k1(t) {
4165
4165
  return e * e * e + 1;
4166
4166
  }
4167
4167
  function p1(t, { delay: e = 0, duration: i = 400, easing: n = k1, x: s = 0, y: o = 0, opacity: l = 0 } = {}) {
4168
- const r = getComputedStyle(t), a = +r.opacity, c = r.transform === "none" ? "" : r.transform, u = a * (1 - l), [h, m] = $o(s), [v, y] = $o(o);
4168
+ const r = getComputedStyle(t), a = +r.opacity, c = r.transform === "none" ? "" : r.transform, u = a * (1 - l), [h, m] = el(s), [v, y] = el(o);
4169
4169
  return {
4170
4170
  delay: e,
4171
4171
  duration: i,
@@ -4295,7 +4295,7 @@ class W1 extends pe {
4295
4295
  this.$$set({ color: e }), d();
4296
4296
  }
4297
4297
  }
4298
- const al = (t, e, i) => Rt(t, e, i, 1), An = (t, e, i) => Pe(t, e, e === "style" ? M1(i) : i), j1 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, M1 = (t) => t.split(j1).map((e) => e + " !important").join(";");
4298
+ const ul = (t, e, i) => Rt(t, e, i, 1), An = (t, e, i) => Pe(t, e, e === "style" ? M1(i) : i), j1 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, M1 = (t) => t.split(j1).map((e) => e + " !important").join(";");
4299
4299
  function O1(t) {
4300
4300
  let e, i;
4301
4301
  return e = new A1({
@@ -4390,7 +4390,7 @@ function E1(t) {
4390
4390
  "tabindex",
4391
4391
  /*tabindex*/
4392
4392
  t[1]
4393
- ), al(e, "outline-offset", 3.2 * /*scale*/
4393
+ ), ul(e, "outline-offset", 3.2 * /*scale*/
4394
4394
  t[2] + "px"), An(
4395
4395
  e,
4396
4396
  "aria-label",
@@ -4420,7 +4420,7 @@ function E1(t) {
4420
4420
  /*tabindex*/
4421
4421
  u[1]
4422
4422
  ), (!s || h & /*scale*/
4423
- 4) && al(e, "outline-offset", 3.2 * /*scale*/
4423
+ 4) && ul(e, "outline-offset", 3.2 * /*scale*/
4424
4424
  u[2] + "px"), (!s || h & /*ariaLabel*/
4425
4425
  16) && An(
4426
4426
  e,
@@ -5705,7 +5705,7 @@ class Yf extends pe {
5705
5705
  this.$$set({ color: e }), d();
5706
5706
  }
5707
5707
  }
5708
- const ul = (t, e, i) => Rt(t, e, i, 1), Ss = (t, e, i) => Pe(t, e, e === "style" ? Kf(i) : i), Zf = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Kf = (t) => t.split(Zf).map((e) => e + " !important").join(";");
5708
+ const cl = (t, e, i) => Rt(t, e, i, 1), Ss = (t, e, i) => Pe(t, e, e === "style" ? Kf(i) : i), Zf = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Kf = (t) => t.split(Zf).map((e) => e + " !important").join(";");
5709
5709
  function Jf(t) {
5710
5710
  let e, i;
5711
5711
  return e = new Rf({
@@ -5796,7 +5796,7 @@ function Xf(t) {
5796
5796
  return i = u(t), n = c[i] = a[i](t), {
5797
5797
  c() {
5798
5798
  e = _("button"), n.c(), Ss(e, "type", "button"), Ss(e, "class", s = "playlist-button " + /*playerStyle*/
5799
- t[1] + " svelte-xhif6r"), ul(e, "outline-offset", 5 * /*scale*/
5799
+ t[1] + " svelte-xhif6r"), cl(e, "outline-offset", 5 * /*scale*/
5800
5800
  t[2] + "px"), Ss(e, "aria-label", St("togglePlaylist"));
5801
5801
  },
5802
5802
  m(h, m) {
@@ -5817,7 +5817,7 @@ function Xf(t) {
5817
5817
  }), Ne(), n = c[i], n ? n.p(h, m) : (n = c[i] = a[i](h), n.c()), T(n, 1), n.m(e, null)), (!o || m & /*playerStyle*/
5818
5818
  2 && s !== (s = "playlist-button " + /*playerStyle*/
5819
5819
  h[1] + " svelte-xhif6r")) && Ss(e, "class", s), (!o || m & /*scale*/
5820
- 4) && ul(e, "outline-offset", 5 * /*scale*/
5820
+ 4) && cl(e, "outline-offset", 5 * /*scale*/
5821
5821
  h[2] + "px");
5822
5822
  },
5823
5823
  i(h) {
@@ -5886,7 +5886,7 @@ class $f extends pe {
5886
5886
  this.$$set({ onEvent: e }), d();
5887
5887
  }
5888
5888
  }
5889
- const cl = (t, e, i) => Rt(t, e, i, 1), dl = (t, e, i) => Pe(t, e, e === "style" ? th(i) : i), eh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, th = (t) => t.split(eh).map((e) => e + " !important").join(";");
5889
+ const dl = (t, e, i) => Rt(t, e, i, 1), gl = (t, e, i) => Pe(t, e, e === "style" ? th(i) : i), eh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, th = (t) => t.split(eh).map((e) => e + " !important").join(";");
5890
5890
  function ih(t) {
5891
5891
  let e, i, n;
5892
5892
  const s = (
@@ -5901,8 +5901,8 @@ function ih(t) {
5901
5901
  );
5902
5902
  return {
5903
5903
  c() {
5904
- e = _("div"), o && o.c(), dl(e, "class", i = "secondary-button " + /*playerStyle*/
5905
- t[0] + " svelte-ll9nv2"), cl(
5904
+ e = _("div"), o && o.c(), gl(e, "class", i = "secondary-button " + /*playerStyle*/
5905
+ t[0] + " svelte-ll9nv2"), dl(
5906
5906
  e,
5907
5907
  "--scale",
5908
5908
  /*scale*/
@@ -5943,8 +5943,8 @@ function ih(t) {
5943
5943
  null
5944
5944
  ), (!n || r & /*playerStyle*/
5945
5945
  1 && i !== (i = "secondary-button " + /*playerStyle*/
5946
- l[0] + " svelte-ll9nv2")) && dl(e, "class", i), (!n || r & /*scale*/
5947
- 8) && cl(
5946
+ l[0] + " svelte-ll9nv2")) && gl(e, "class", i), (!n || r & /*scale*/
5947
+ 8) && dl(
5948
5948
  e,
5949
5949
  "--scale",
5950
5950
  /*scale*/
@@ -6074,7 +6074,7 @@ class uh extends pe {
6074
6074
  this.$$set({ color: e }), d();
6075
6075
  }
6076
6076
  }
6077
- const gl = (t, e, i) => Rt(t, e, i, 1), fo = (t, e, i) => Pe(t, e, e === "style" ? dh(i) : i), ch = /;(?!([^()]*\([^()]*\))*[^()]*\))/, dh = (t) => t.split(ch).map((e) => e + " !important").join(";");
6077
+ const fl = (t, e, i) => Rt(t, e, i, 1), fo = (t, e, i) => Pe(t, e, e === "style" ? dh(i) : i), ch = /;(?!([^()]*\([^()]*\))*[^()]*\))/, dh = (t) => t.split(ch).map((e) => e + " !important").join(";");
6078
6078
  function gh(t) {
6079
6079
  let e, i, n, s, o;
6080
6080
  return i = new uh({
@@ -6090,7 +6090,7 @@ function gh(t) {
6090
6090
  }
6091
6091
  }), {
6092
6092
  c() {
6093
- e = _("button"), de(i.$$.fragment), fo(e, "type", "button"), fo(e, "class", "maximize-button svelte-fk321i"), gl(e, "outline-offset", 6.4 * /*scale*/
6093
+ e = _("button"), de(i.$$.fragment), fo(e, "type", "button"), fo(e, "class", "maximize-button svelte-fk321i"), fl(e, "outline-offset", 6.4 * /*scale*/
6094
6094
  t[0] + "px"), fo(e, "aria-label", St("maximizeVideo"));
6095
6095
  },
6096
6096
  m(l, r) {
@@ -6111,7 +6111,7 @@ function gh(t) {
6111
6111
  l[0]), r & /*color*/
6112
6112
  2 && (a.color = /*color*/
6113
6113
  l[1]), i.$set(a), (!n || r & /*scale*/
6114
- 1) && gl(e, "outline-offset", 6.4 * /*scale*/
6114
+ 1) && fl(e, "outline-offset", 6.4 * /*scale*/
6115
6115
  l[0] + "px");
6116
6116
  },
6117
6117
  i(l) {
@@ -6622,7 +6622,7 @@ class pr extends pe {
6622
6622
  this.$$set({ circular: e }), d();
6623
6623
  }
6624
6624
  }
6625
- const fl = (t, e, i) => Rt(t, e, i, 1), Cn = (t, e, i) => Pe(t, e, e === "style" ? Lh(i) : i), Eh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Lh = (t) => t.split(Eh).map((e) => e + " !important").join(";");
6625
+ const hl = (t, e, i) => Rt(t, e, i, 1), Cn = (t, e, i) => Pe(t, e, e === "style" ? Lh(i) : i), Eh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Lh = (t) => t.split(Eh).map((e) => e + " !important").join(";");
6626
6626
  function xh(t) {
6627
6627
  let e;
6628
6628
  return {
@@ -6662,7 +6662,7 @@ function Nh(t) {
6662
6662
  "href",
6663
6663
  /*href*/
6664
6664
  t[0]
6665
- ), Cn(e, "target", "_blank"), fl(e, "outline-offset", 3.2 * /*scale*/
6665
+ ), Cn(e, "target", "_blank"), hl(e, "outline-offset", 3.2 * /*scale*/
6666
6666
  t[1] + "px"), Cn(e, "aria-label", St("visitAdvert"));
6667
6667
  },
6668
6668
  m(r, a) {
@@ -6692,7 +6692,7 @@ function Nh(t) {
6692
6692
  /*href*/
6693
6693
  r[0]
6694
6694
  ), (!s || a & /*scale*/
6695
- 2) && fl(e, "outline-offset", 3.2 * /*scale*/
6695
+ 2) && hl(e, "outline-offset", 3.2 * /*scale*/
6696
6696
  r[1] + "px");
6697
6697
  },
6698
6698
  i(r) {
@@ -6878,7 +6878,7 @@ class Zh extends pe {
6878
6878
  this.$$set({ color2: e }), d();
6879
6879
  }
6880
6880
  }
6881
- const hl = (t, e, i) => Rt(t, e, i, 1), Ps = (t, e, i) => Pe(t, e, e === "style" ? Jh(i) : i), Kh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Jh = (t) => t.split(Kh).map((e) => e + " !important").join(";");
6881
+ const _l = (t, e, i) => Rt(t, e, i, 1), Ps = (t, e, i) => Pe(t, e, e === "style" ? Jh(i) : i), Kh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Jh = (t) => t.split(Kh).map((e) => e + " !important").join(";");
6882
6882
  function Gh(t) {
6883
6883
  let e, i, n, s, o;
6884
6884
  return i = new Zh({ props: { scale: (
@@ -6886,7 +6886,7 @@ function Gh(t) {
6886
6886
  t[0]
6887
6887
  ) } }), {
6888
6888
  c() {
6889
- e = _("a"), de(i.$$.fragment), Ps(e, "class", "beyondwords svelte-vl0esb"), Ps(e, "href", "https://beyondwords.io/"), Ps(e, "target", "_blank"), hl(e, "outline-offset", 6.4 * /*scale*/
6889
+ e = _("a"), de(i.$$.fragment), Ps(e, "class", "beyondwords svelte-vl0esb"), Ps(e, "href", "https://beyondwords.io/"), Ps(e, "target", "_blank"), _l(e, "outline-offset", 6.4 * /*scale*/
6890
6890
  t[0] + "px"), Ps(e, "aria-label", St("visitBeyondWords")), re(
6891
6891
  e,
6892
6892
  "visible",
@@ -6910,7 +6910,7 @@ function Gh(t) {
6910
6910
  r & /*scale*/
6911
6911
  1 && (a.scale = /*scale*/
6912
6912
  l[0]), i.$set(a), (!n || r & /*scale*/
6913
- 1) && hl(e, "outline-offset", 6.4 * /*scale*/
6913
+ 1) && _l(e, "outline-offset", 6.4 * /*scale*/
6914
6914
  l[0] + "px"), (!n || r & /*visible*/
6915
6915
  2) && re(
6916
6916
  e,
@@ -7453,7 +7453,7 @@ function m_(t, e, i) {
7453
7453
  n
7454
7454
  ];
7455
7455
  }
7456
- class Ro extends pe {
7456
+ class Uo extends pe {
7457
7457
  constructor(e) {
7458
7458
  super(), ke(this, e, m_, __, be, {
7459
7459
  title: 0,
@@ -8820,7 +8820,7 @@ class u0 extends pe {
8820
8820
  this.$$set({ color: e }), d();
8821
8821
  }
8822
8822
  }
8823
- const _l = (t, e, i) => Rt(t, e, i, 1), mo = (t, e, i) => Pe(t, e, e === "style" ? d0(i) : i), c0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, d0 = (t) => t.split(c0).map((e) => e + " !important").join(";");
8823
+ const ml = (t, e, i) => Rt(t, e, i, 1), mo = (t, e, i) => Pe(t, e, e === "style" ? d0(i) : i), c0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, d0 = (t) => t.split(c0).map((e) => e + " !important").join(";");
8824
8824
  function g0(t) {
8825
8825
  let e, i, n, s, o;
8826
8826
  return i = new u0({
@@ -8836,7 +8836,7 @@ function g0(t) {
8836
8836
  }
8837
8837
  }), {
8838
8838
  c() {
8839
- e = _("button"), de(i.$$.fragment), mo(e, "type", "button"), mo(e, "class", "download-button svelte-1r5l0am"), _l(e, "outline-offset", 4.8 * /*scale*/
8839
+ e = _("button"), de(i.$$.fragment), mo(e, "type", "button"), mo(e, "class", "download-button svelte-1r5l0am"), ml(e, "outline-offset", 4.8 * /*scale*/
8840
8840
  t[0] + "px"), mo(e, "aria-label", St("downloadAudio"));
8841
8841
  },
8842
8842
  m(l, r) {
@@ -8857,7 +8857,7 @@ function g0(t) {
8857
8857
  l[0]), r & /*color*/
8858
8858
  2 && (a.color = /*color*/
8859
8859
  l[1]), i.$set(a), (!n || r & /*scale*/
8860
- 1) && _l(e, "outline-offset", 4.8 * /*scale*/
8860
+ 1) && ml(e, "outline-offset", 4.8 * /*scale*/
8861
8861
  l[0] + "px");
8862
8862
  },
8863
8863
  i(l) {
@@ -8937,7 +8937,7 @@ class h0 extends pe {
8937
8937
  }
8938
8938
  }
8939
8939
  const on = (t, e, i) => Rt(t, e, i, 1), ri = (t, e, i) => Pe(t, e, e === "style" ? m0(i) : i), _0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, m0 = (t) => t.split(_0).map((e) => e + " !important").join(";");
8940
- function ml(t, e, i) {
8940
+ function yl(t, e, i) {
8941
8941
  const n = t.slice();
8942
8942
  n[18] = e[i].title, n[19] = e[i].duration, n[20] = e[i].audio, n[21] = e[i].video, n[25] = i;
8943
8943
  const s = (
@@ -9023,7 +9023,7 @@ function v0(t) {
9023
9023
  }
9024
9024
  };
9025
9025
  }
9026
- function yl(t) {
9026
+ function vl(t) {
9027
9027
  let e, i;
9028
9028
  return e = new h0({
9029
9029
  props: {
@@ -9078,7 +9078,7 @@ function yl(t) {
9078
9078
  }
9079
9079
  };
9080
9080
  }
9081
- function vl(t) {
9081
+ function bl(t) {
9082
9082
  let e, i, n, s, o, l, r, a, c, u, h, m, v, y, p, b;
9083
9083
  const W = [v0, y0], M = [];
9084
9084
  function Z(z, x) {
@@ -9088,7 +9088,7 @@ function vl(t) {
9088
9088
  z[5] ? 0 : 1
9089
9089
  );
9090
9090
  }
9091
- i = Z(t), n = M[i] = W[i](t), l = new Ro({
9091
+ i = Z(t), n = M[i] = W[i](t), l = new Uo({
9092
9092
  props: {
9093
9093
  title: (
9094
9094
  /*title*/
@@ -9116,7 +9116,7 @@ function vl(t) {
9116
9116
  let J = (
9117
9117
  /*audioIndex*/
9118
9118
  (t[22] !== -1 || /*videoIndex*/
9119
- t[23] !== -1) && yl(t)
9119
+ t[23] !== -1) && vl(t)
9120
9120
  );
9121
9121
  return h = new wr({
9122
9122
  props: {
@@ -9196,7 +9196,7 @@ function vl(t) {
9196
9196
  t[1]), l.$set(E), /*audioIndex*/
9197
9197
  t[22] !== -1 || /*videoIndex*/
9198
9198
  t[23] !== -1 ? J ? (J.p(t, x), x & /*content*/
9199
- 16 && T(J, 1)) : (J = yl(t), J.c(), T(J, 1), J.m(a, null)) : J && (xe(), j(J, 1, 1, () => {
9199
+ 16 && T(J, 1)) : (J = vl(t), J.c(), T(J, 1), J.m(a, null)) : J && (xe(), j(J, 1, 1, () => {
9200
9200
  J = null;
9201
9201
  }), Ne());
9202
9202
  const G = {};
@@ -9237,7 +9237,7 @@ function b0(t) {
9237
9237
  t[4]
9238
9238
  ), o = [];
9239
9239
  for (let r = 0; r < s.length; r += 1)
9240
- o[r] = vl(ml(t, s, r));
9240
+ o[r] = bl(yl(t, s, r));
9241
9241
  const l = (r) => j(o[r], 1, 1, () => {
9242
9242
  o[r] = null;
9243
9243
  });
@@ -9286,8 +9286,8 @@ function b0(t) {
9286
9286
  r[4];
9287
9287
  let c;
9288
9288
  for (c = 0; c < s.length; c += 1) {
9289
- const u = ml(r, s, c);
9290
- o[c] ? (o[c].p(u, a), T(o[c], 1)) : (o[c] = vl(u), o[c].c(), T(o[c], 1), o[c].m(i, null));
9289
+ const u = yl(r, s, c);
9290
+ o[c] ? (o[c].p(u, a), T(o[c], 1)) : (o[c] = bl(u), o[c].c(), T(o[c], 1), o[c].m(i, null));
9291
9291
  }
9292
9292
  for (xe(), c = s.length; c < o.length; c += 1)
9293
9293
  l(c);
@@ -9482,7 +9482,7 @@ class p0 extends pe {
9482
9482
  this.$$set({ onEvent: e }), d();
9483
9483
  }
9484
9484
  }
9485
- const bl = (t, e, i) => Pe(t, e, e === "style" ? w0(i) : i), S0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, w0 = (t) => t.split(S0).map((e) => e + " !important").join(";");
9485
+ const kl = (t, e, i) => Pe(t, e, e === "style" ? w0(i) : i), S0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, w0 = (t) => t.split(S0).map((e) => e + " !important").join(";");
9486
9486
  function P0(t) {
9487
9487
  let e, i, n, s;
9488
9488
  const o = (
@@ -9497,7 +9497,7 @@ function P0(t) {
9497
9497
  );
9498
9498
  return {
9499
9499
  c() {
9500
- e = _("div"), l && l.c(), bl(e, "class", "hoverable"), bl(e, "role", "none");
9500
+ e = _("div"), l && l.c(), kl(e, "class", "hoverable"), kl(e, "role", "none");
9501
9501
  },
9502
9502
  m(r, a) {
9503
9503
  V(r, e, a), l && l.m(e, null), i = !0, n || (s = [
@@ -9752,9 +9752,9 @@ const M0 = ({ playerStyle: t, width: e }) => t === "standard" && e < 380 || t ==
9752
9752
  t.requestFullscreen ? t.requestFullscreen() : t.webkitRequestFullscreen && t.webkitRequestFullscreen();
9753
9753
  }, x0 = () => {
9754
9754
  document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen && document.webkitExitFullscreen();
9755
- }, kl = () => document.fullscreenElement || document.webkitCurrentFullScreenElement;
9755
+ }, pl = () => document.fullscreenElement || document.webkitCurrentFullScreenElement;
9756
9756
  const Es = (t, e, i) => Rt(t, e, i, 1), an = (t, e, i) => Pe(t, e, e === "style" ? D0(i) : i), N0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, D0 = (t) => t.split(N0).map((e) => e + " !important").join(";");
9757
- function pl(t) {
9757
+ function Sl(t) {
9758
9758
  let e, i, n, s, o, l, r, a, c, u;
9759
9759
  function h(y) {
9760
9760
  t[72](y);
@@ -9776,11 +9776,11 @@ function pl(t) {
9776
9776
  t[18]), i = new A0({ props: m }), ie.push(() => _e(i, "isHovering", h));
9777
9777
  let v = (
9778
9778
  /*showPlaylist*/
9779
- t[37] && jl(t)
9779
+ t[37] && Ml(t)
9780
9780
  );
9781
9781
  return {
9782
9782
  c() {
9783
- e = _("div"), de(i.$$.fragment), s = K(), v && v.c(), an(e, "class", o = Qo(
9783
+ e = _("div"), de(i.$$.fragment), s = K(), v && v.c(), an(e, "class", o = $o(
9784
9784
  /*classes*/
9785
9785
  t[35]
9786
9786
  ) + " svelte-lvqfar"), Es(
@@ -9843,10 +9843,10 @@ function pl(t) {
9843
9843
  262144 && (n = !0, b.isHovering = /*isHovering*/
9844
9844
  y[18], he(() => n = !1)), i.$set(b), /*showPlaylist*/
9845
9845
  y[37] ? v ? (v.p(y, p), p[1] & /*showPlaylist*/
9846
- 64 && T(v, 1)) : (v = jl(y), v.c(), T(v, 1), v.m(e, null)) : v && (xe(), j(v, 1, 1, () => {
9846
+ 64 && T(v, 1)) : (v = Ml(y), v.c(), T(v, 1), v.m(e, null)) : v && (xe(), j(v, 1, 1, () => {
9847
9847
  v = null;
9848
9848
  }), Ne()), (!a || p[1] & /*classes*/
9849
- 16 && o !== (o = Qo(
9849
+ 16 && o !== (o = $o(
9850
9850
  /*classes*/
9851
9851
  y[35]
9852
9852
  ) + " svelte-lvqfar")) && an(e, "class", o), (!a || p[1] & /*widthStyle*/
@@ -9892,7 +9892,7 @@ function pl(t) {
9892
9892
  },
9893
9893
  i(y) {
9894
9894
  a || (T(i.$$.fragment, y), T(v), Ue(() => {
9895
- a && (r || (r = tl(
9895
+ a && (r || (r = il(
9896
9896
  e,
9897
9897
  /*flyWidget*/
9898
9898
  t[43],
@@ -9902,7 +9902,7 @@ function pl(t) {
9902
9902
  }), a = !0);
9903
9903
  },
9904
9904
  o(y) {
9905
- j(i.$$.fragment, y), j(v), r || (r = tl(
9905
+ j(i.$$.fragment, y), j(v), r || (r = il(
9906
9906
  e,
9907
9907
  /*flyWidget*/
9908
9908
  t[43],
@@ -9915,7 +9915,7 @@ function pl(t) {
9915
9915
  }
9916
9916
  };
9917
9917
  }
9918
- function Sl(t) {
9918
+ function wl(t) {
9919
9919
  let e;
9920
9920
  return {
9921
9921
  c() {
@@ -9929,7 +9929,7 @@ function Sl(t) {
9929
9929
  }
9930
9930
  };
9931
9931
  }
9932
- function wl(t) {
9932
+ function Pl(t) {
9933
9933
  let e, i;
9934
9934
  return e = new a_({
9935
9935
  props: {
@@ -9982,7 +9982,7 @@ function wl(t) {
9982
9982
  }
9983
9983
  };
9984
9984
  }
9985
- function Pl(t) {
9985
+ function Tl(t) {
9986
9986
  let e, i, n, s, o;
9987
9987
  return i = new Sr({
9988
9988
  props: {
@@ -10005,7 +10005,7 @@ function Pl(t) {
10005
10005
  t[51]
10006
10006
  )
10007
10007
  }
10008
- }), s = new Ro({
10008
+ }), s = new Uo({
10009
10009
  props: {
10010
10010
  title: (
10011
10011
  /*contentItem*/
@@ -10209,7 +10209,7 @@ function U0(t) {
10209
10209
  }
10210
10210
  };
10211
10211
  }
10212
- function Tl(t) {
10212
+ function Al(t) {
10213
10213
  let e, i;
10214
10214
  return e = new Sr({
10215
10215
  props: {
@@ -10270,7 +10270,7 @@ function Tl(t) {
10270
10270
  }
10271
10271
  };
10272
10272
  }
10273
- function Al(t) {
10273
+ function Cl(t) {
10274
10274
  let e, i, n, s, o, l;
10275
10275
  return e = new F1({
10276
10276
  props: {
@@ -10392,9 +10392,9 @@ function Al(t) {
10392
10392
  }
10393
10393
  };
10394
10394
  }
10395
- function Cl(t) {
10395
+ function Bl(t) {
10396
10396
  let e, i;
10397
- return e = new Ro({
10397
+ return e = new Uo({
10398
10398
  props: {
10399
10399
  title: (
10400
10400
  /*contentItem*/
@@ -10435,7 +10435,7 @@ function Cl(t) {
10435
10435
  }
10436
10436
  };
10437
10437
  }
10438
- function Bl(t) {
10438
+ function Il(t) {
10439
10439
  let e, i;
10440
10440
  return e = new p_({
10441
10441
  props: {
@@ -10492,7 +10492,7 @@ function Bl(t) {
10492
10492
  }
10493
10493
  };
10494
10494
  }
10495
- function Il(t) {
10495
+ function Vl(t) {
10496
10496
  let e, i, n, s;
10497
10497
  return e = new Ih({
10498
10498
  props: {
@@ -10623,7 +10623,7 @@ function Il(t) {
10623
10623
  }
10624
10624
  };
10625
10625
  }
10626
- function Vl(t) {
10626
+ function Wl(t) {
10627
10627
  let e, i;
10628
10628
  return e = new sh({
10629
10629
  props: {
@@ -10871,7 +10871,7 @@ function Y0(t) {
10871
10871
  }
10872
10872
  };
10873
10873
  }
10874
- function Wl(t) {
10874
+ function jl(t) {
10875
10875
  let e, i, n, s;
10876
10876
  const o = [K0, Z0], l = [];
10877
10877
  function r(a, c) {
@@ -11009,16 +11009,16 @@ function J0(t) {
11009
11009
  let e, i, n, s, o, l, r, a, c, u, h, m, v, y, p, b, W, M, Z, J, z, x = (
11010
11010
  /*isVideo*/
11011
11011
  t[19] && !/*videoIsBehind*/
11012
- t[16] && Sl()
11012
+ t[16] && wl()
11013
11013
  ), N = (
11014
11014
  /*largeImage*/
11015
11015
  t[42] && /*isLarge*/
11016
11016
  (t[54] || /*isScreen*/
11017
- t[24]) && wl(t)
11017
+ t[24]) && Pl(t)
11018
11018
  ), E = (
11019
11019
  /*isLarge*/
11020
11020
  (t[54] || /*isScreen*/
11021
- t[24]) && Pl(t)
11021
+ t[24]) && Tl(t)
11022
11022
  );
11023
11023
  function G(I) {
11024
11024
  t[69](I);
@@ -11050,20 +11050,20 @@ function J0(t) {
11050
11050
  /*isStandard*/
11051
11051
  (t[26] && /*isStopped*/
11052
11052
  t[27] || /*isSmall*/
11053
- t[22]) && Tl(t)
11053
+ t[22]) && Al(t)
11054
11054
  ), H = (!/*isSmall*/
11055
11055
  t[22] && !/*isStopped*/
11056
11056
  t[27] && !/*isAdvert*/
11057
11057
  t[25] || /*isScreen*/
11058
11058
  t[24] && /*isAdvert*/
11059
- t[25]) && Al(t), S = (
11059
+ t[25]) && Cl(t), S = (
11060
11060
  /*isStandard*/
11061
11061
  t[26] && /*fixedPosition*/
11062
11062
  t[8] && !/*isStopped*/
11063
11063
  t[27] && !/*isAdvert*/
11064
11064
  t[25] && /*width*/
11065
11065
  t[17] > 720 && /*controlsOrder*/
11066
- t[20] !== "left-to-right-but-swap-ends" && Cl(t)
11066
+ t[20] !== "left-to-right-but-swap-ends" && Bl(t)
11067
11067
  );
11068
11068
  y = new e0({
11069
11069
  props: {
@@ -11123,16 +11123,16 @@ function J0(t) {
11123
11123
  t[54] && !/*isMobile*/
11124
11124
  t[30] || /*isVideo*/
11125
11125
  t[19] && !/*isStopped*/
11126
- t[27]) && Bl(t)
11126
+ t[27]) && Il(t)
11127
11127
  ), U = (
11128
11128
  /*isAdvert*/
11129
11129
  t[25] && !/*forcedCollapsed*/
11130
- t[23] && Il(t)
11130
+ t[23] && Vl(t)
11131
11131
  ), ge = !/*isStopped*/
11132
- t[27] && Vl(t), se = (
11132
+ t[27] && Wl(t), se = (
11133
11133
  /*showCloseWidget*/
11134
11134
  (t[39] || /*showBeyondWords*/
11135
- t[38]) && Wl(t)
11135
+ t[38]) && jl(t)
11136
11136
  );
11137
11137
  return {
11138
11138
  c() {
@@ -11161,18 +11161,18 @@ function J0(t) {
11161
11161
  p(I, D) {
11162
11162
  /*isVideo*/
11163
11163
  I[19] && !/*videoIsBehind*/
11164
- I[16] ? x || (x = Sl(), x.c(), x.m(e.parentNode, e)) : x && (x.d(1), x = null), /*largeImage*/
11164
+ I[16] ? x || (x = wl(), x.c(), x.m(e.parentNode, e)) : x && (x.d(1), x = null), /*largeImage*/
11165
11165
  I[42] && /*isLarge*/
11166
11166
  (I[54] || /*isScreen*/
11167
11167
  I[24]) ? N ? (N.p(I, D), D[0] & /*isScreen*/
11168
11168
  16777216 | D[1] & /*largeImage, isLarge*/
11169
- 8390656 && T(N, 1)) : (N = wl(I), N.c(), T(N, 1), N.m(i, n)) : N && (xe(), j(N, 1, 1, () => {
11169
+ 8390656 && T(N, 1)) : (N = Pl(I), N.c(), T(N, 1), N.m(i, n)) : N && (xe(), j(N, 1, 1, () => {
11170
11170
  N = null;
11171
11171
  }), Ne()), /*isLarge*/
11172
11172
  I[54] || /*isScreen*/
11173
11173
  I[24] ? E ? (E.p(I, D), D[0] & /*isScreen*/
11174
11174
  16777216 | D[1] & /*isLarge*/
11175
- 8388608 && T(E, 1)) : (E = Pl(I), E.c(), T(E, 1), E.m(i, s)) : E && (xe(), j(E, 1, 1, () => {
11175
+ 8388608 && T(E, 1)) : (E = Tl(I), E.c(), T(E, 1), E.m(i, s)) : E && (xe(), j(E, 1, 1, () => {
11176
11176
  E = null;
11177
11177
  }), Ne());
11178
11178
  const Ae = {};
@@ -11193,7 +11193,7 @@ function J0(t) {
11193
11193
  I[26] && /*isStopped*/
11194
11194
  I[27] || /*isSmall*/
11195
11195
  I[22] ? q ? (q.p(I, D), D[0] & /*isStandard, isStopped, isSmall*/
11196
- 205520896 && T(q, 1)) : (q = Tl(I), q.c(), T(q, 1), q.m(o, h)) : q && (xe(), j(q, 1, 1, () => {
11196
+ 205520896 && T(q, 1)) : (q = Al(I), q.c(), T(q, 1), q.m(o, h)) : q && (xe(), j(q, 1, 1, () => {
11197
11197
  q = null;
11198
11198
  }), Ne()), !/*isSmall*/
11199
11199
  I[22] && !/*isStopped*/
@@ -11201,7 +11201,7 @@ function J0(t) {
11201
11201
  I[25] || /*isScreen*/
11202
11202
  I[24] && /*isAdvert*/
11203
11203
  I[25] ? H ? (H.p(I, D), D[0] & /*isSmall, isStopped, isAdvert, isScreen*/
11204
- 188743680 && T(H, 1)) : (H = Al(I), H.c(), T(H, 1), H.m(o, m)) : H && (xe(), j(H, 1, 1, () => {
11204
+ 188743680 && T(H, 1)) : (H = Cl(I), H.c(), T(H, 1), H.m(o, m)) : H && (xe(), j(H, 1, 1, () => {
11205
11205
  H = null;
11206
11206
  }), Ne()), /*isStandard*/
11207
11207
  I[26] && /*fixedPosition*/
@@ -11210,7 +11210,7 @@ function J0(t) {
11210
11210
  I[25] && /*width*/
11211
11211
  I[17] > 720 && /*controlsOrder*/
11212
11212
  I[20] !== "left-to-right-but-swap-ends" ? S ? (S.p(I, D), D[0] & /*isStandard, fixedPosition, isStopped, isAdvert, width, controlsOrder*/
11213
- 236060928 && T(S, 1)) : (S = Cl(I), S.c(), T(S, 1), S.m(o, v)) : S && (xe(), j(S, 1, 1, () => {
11213
+ 236060928 && T(S, 1)) : (S = Bl(I), S.c(), T(S, 1), S.m(o, v)) : S && (xe(), j(S, 1, 1, () => {
11214
11214
  S = null;
11215
11215
  }), Ne());
11216
11216
  const Se = {};
@@ -11250,21 +11250,21 @@ function J0(t) {
11250
11250
  I[19] && !/*isStopped*/
11251
11251
  I[27] ? P ? (P.p(I, D), D[0] & /*isStandard, isMobile, isStopped, isVideo*/
11252
11252
  1275592704 | D[1] & /*isLarge*/
11253
- 8388608 && T(P, 1)) : (P = Bl(I), P.c(), T(P, 1), P.m(o, b)) : P && (xe(), j(P, 1, 1, () => {
11253
+ 8388608 && T(P, 1)) : (P = Il(I), P.c(), T(P, 1), P.m(o, b)) : P && (xe(), j(P, 1, 1, () => {
11254
11254
  P = null;
11255
11255
  }), Ne()), /*isAdvert*/
11256
11256
  I[25] && !/*forcedCollapsed*/
11257
11257
  I[23] ? U ? (U.p(I, D), D[0] & /*isAdvert, forcedCollapsed*/
11258
- 41943040 && T(U, 1)) : (U = Il(I), U.c(), T(U, 1), U.m(o, W)) : U && (xe(), j(U, 1, 1, () => {
11258
+ 41943040 && T(U, 1)) : (U = Vl(I), U.c(), T(U, 1), U.m(o, W)) : U && (xe(), j(U, 1, 1, () => {
11259
11259
  U = null;
11260
11260
  }), Ne()), /*isStopped*/
11261
11261
  I[27] ? ge && (xe(), j(ge, 1, 1, () => {
11262
11262
  ge = null;
11263
11263
  }), Ne()) : ge ? (ge.p(I, D), D[0] & /*isStopped*/
11264
- 134217728 && T(ge, 1)) : (ge = Vl(I), ge.c(), T(ge, 1), ge.m(o, null)), /*showCloseWidget*/
11264
+ 134217728 && T(ge, 1)) : (ge = Wl(I), ge.c(), T(ge, 1), ge.m(o, null)), /*showCloseWidget*/
11265
11265
  I[39] || /*showBeyondWords*/
11266
11266
  I[38] ? se ? (se.p(I, D), D[1] & /*showCloseWidget, showBeyondWords*/
11267
- 384 && T(se, 1)) : (se = Wl(I), se.c(), T(se, 1), se.m(i, null)) : se && (xe(), j(se, 1, 1, () => {
11267
+ 384 && T(se, 1)) : (se = jl(I), se.c(), T(se, 1), se.m(i, null)) : se && (xe(), j(se, 1, 1, () => {
11268
11268
  se = null;
11269
11269
  }), Ne()), (!Z || D[0] & /*isVideo*/
11270
11270
  524288 | D[1] & /*activeBackgroundColor*/
@@ -11291,7 +11291,7 @@ function J0(t) {
11291
11291
  }
11292
11292
  };
11293
11293
  }
11294
- function jl(t) {
11294
+ function Ml(t) {
11295
11295
  let e, i;
11296
11296
  return e = new p0({
11297
11297
  props: {
@@ -11385,7 +11385,7 @@ function G0(t) {
11385
11385
  /*playerStyle*/
11386
11386
  t[3]
11387
11387
  ) && /*content*/
11388
- t[9].length > 0, i, n, s = e && pl(t);
11388
+ t[9].length > 0, i, n, s = e && Sl(t);
11389
11389
  return {
11390
11390
  c() {
11391
11391
  s && s.c(), i = Pn();
@@ -11400,7 +11400,7 @@ function G0(t) {
11400
11400
  o[3]
11401
11401
  ) && /*content*/
11402
11402
  o[9].length > 0), e ? s ? (s.p(o, l), l[0] & /*playerStyle, content*/
11403
- 520 && T(s, 1)) : (s = pl(o), s.c(), T(s, 1), s.m(i.parentNode, i)) : s && (xe(), j(s, 1, 1, () => {
11403
+ 520 && T(s, 1)) : (s = Sl(o), s.c(), T(s, 1), s.m(i.parentNode, i)) : s && (xe(), j(s, 1, 1, () => {
11404
11404
  s = null;
11405
11405
  }), Ne());
11406
11406
  },
@@ -11474,7 +11474,7 @@ function X0(t, e, i) {
11474
11474
  2 && i(49, Z = r ? "rgba(250, 250, 250, 0.8)" : W), t.$$.dirty[0] & /*isSmall, isVideo, fixedPosition, isScreen, isMobile*/
11475
11475
  1095237888 && i(31, J = n || r && Ve ? 0.8 : l && !m ? 2 : 1), t.$$.dirty[0] & /*isScreen, isVideo, isStopped*/
11476
11476
  151519232 | t.$$.dirty[1] & /*buttonScale*/
11477
- 1 && i(48, z = J * (l ? 1.5 : r && c ? 2 : 1)), t.$$.dirty[0] & /*isScreen, isMobile, isVideo*/
11477
+ 1 && i(48, z = J * (l ? 1.5 : r && c ? 1.6 : 1)), t.$$.dirty[0] & /*isScreen, isMobile, isVideo*/
11478
11478
  1091043328 && i(47, x = l && !m ? 3 : l ? 2 : r && !m ? 1.5 : 1), t.$$.dirty[0] & /*isScreen, isMobile, isVideo*/
11479
11479
  1091043328 && i(46, N = l && !m ? 2.5 : l ? 1.75 : r && !m ? 2 : r ? 1.5 : 1), t.$$.dirty[0] & /*isScreen, isMobile*/
11480
11480
  1090519040 && i(45, E = l && !m ? "12px 0" : l ? "4px 0" : "auto"), t.$$.dirty[0] & /*isSmall*/
@@ -11589,7 +11589,7 @@ function X0(t, e, i) {
11589
11589
  wt
11590
11590
  ];
11591
11591
  }
11592
- class Uo extends pe {
11592
+ class Fo extends pe {
11593
11593
  constructor(e) {
11594
11594
  super(), ke(
11595
11595
  this,
@@ -11855,7 +11855,7 @@ function im(t, e, i) {
11855
11855
  4 && ((c = n == null ? void 0 : n.classList) == null || c.add("beyondwords-widget", "bwp"));
11856
11856
  }, [r, l, n, o, s, a];
11857
11857
  }
11858
- class Fo extends pe {
11858
+ class qo extends pe {
11859
11859
  constructor(e) {
11860
11860
  super(), ke(this, e, im, tm, be, { root: 1 });
11861
11861
  }
@@ -11867,15 +11867,15 @@ class Fo extends pe {
11867
11867
  }
11868
11868
  }
11869
11869
  const C = (t, e, i) => Pe(t, e, e === "style" ? sm(i) : i), nm = /;(?!([^()]*\([^()]*\))*[^()]*\))/, sm = (t) => t.split(nm).map((e) => e + " !important").join(";");
11870
- function Ml(t, e, i) {
11870
+ function Ol(t, e, i) {
11871
11871
  const n = t.slice();
11872
11872
  return n[84] = e[i], n[86] = i, n;
11873
11873
  }
11874
- function Ol(t, e, i) {
11874
+ function zl(t, e, i) {
11875
11875
  const n = t.slice();
11876
11876
  return n[84] = e[i], n[86] = i, n;
11877
11877
  }
11878
- function zl(t, e, i) {
11878
+ function El(t, e, i) {
11879
11879
  const n = t.slice();
11880
11880
  return n[84] = e[i], n[86] = i, n;
11881
11881
  }
@@ -11883,11 +11883,11 @@ function om(t, e, i) {
11883
11883
  const n = t.slice();
11884
11884
  return n[89] = e[i], n;
11885
11885
  }
11886
- function El(t, e, i) {
11886
+ function Ll(t, e, i) {
11887
11887
  const n = t.slice();
11888
11888
  return n[84] = e[i], n[86] = i, n;
11889
11889
  }
11890
- function Ll(t) {
11890
+ function xl(t) {
11891
11891
  let e, i, n, s = (
11892
11892
  /*item*/
11893
11893
  t[84].placement + ""
@@ -11932,25 +11932,25 @@ function lm(t) {
11932
11932
  }
11933
11933
  };
11934
11934
  }
11935
- function xl(t) {
11935
+ function Nl(t) {
11936
11936
  let e, i, n, s, o, l, r, a, c, u, h, m, v, y, p, b, W, M, Z, J, z, x, N, E, G, le, ye, ee, q, H, S, P, U, ge, se, I, D, Ae, Se, De, me, Q, we, Ge, Le, ut, Fe, Ve, $e, We, et, Me, qe, He, tt, Be, je, R, ze, ct, _t, Ye, Ze, it, Xe, kt, nt, mt, st, ot, lt, Bt, dt, Vt, gt, wt, Y, Je, Re, Pt, Tt, jt, At, Ut, ne, w, A, te, ci, Mt, cn, ft, di, Qt, gi, Yt, fi, ki, $t, Zt, hi, pi, ei, It, _i, Kt = (
11937
11937
  /*content*/
11938
11938
  t[39]
11939
11939
  ), rt = [];
11940
11940
  for (let k = 0; k < Kt.length; k += 1)
11941
- rt[k] = Nl(zl(t, Kt, k));
11941
+ rt[k] = Dl(El(t, Kt, k));
11942
11942
  let Jt = (
11943
11943
  /*introsOutros*/
11944
11944
  t[40]
11945
11945
  ), at = [];
11946
11946
  for (let k = 0; k < Jt.length; k += 1)
11947
- at[k] = Dl(Ol(t, Jt, k));
11947
+ at[k] = Rl(zl(t, Jt, k));
11948
11948
  let mi = (
11949
11949
  /*adverts*/
11950
11950
  t[41]
11951
11951
  ), ht = [];
11952
11952
  for (let k = 0; k < mi.length; k += 1)
11953
- ht[k] = Rl(Ml(t, mi, k));
11953
+ ht[k] = Ul(Ol(t, mi, k));
11954
11954
  return {
11955
11955
  c() {
11956
11956
  e = _("br"), i = K(), n = _("strong"), n.textContent = "Advanced settings:", s = K(), o = _("br"), l = _("br"), r = K(), a = _("div"), c = $(`projectId:
@@ -12289,8 +12289,8 @@ function xl(t) {
12289
12289
  k[39];
12290
12290
  let oe;
12291
12291
  for (oe = 0; oe < Kt.length; oe += 1) {
12292
- const Ot = zl(k, Kt, oe);
12293
- rt[oe] ? rt[oe].p(Ot, F) : (rt[oe] = Nl(Ot), rt[oe].c(), rt[oe].m(we, null));
12292
+ const Ot = El(k, Kt, oe);
12293
+ rt[oe] ? rt[oe].p(Ot, F) : (rt[oe] = Dl(Ot), rt[oe].c(), rt[oe].m(we, null));
12294
12294
  }
12295
12295
  for (; oe < rt.length; oe += 1)
12296
12296
  rt[oe].d(1);
@@ -12307,8 +12307,8 @@ function xl(t) {
12307
12307
  k[40];
12308
12308
  let oe;
12309
12309
  for (oe = 0; oe < Jt.length; oe += 1) {
12310
- const Ot = Ol(k, Jt, oe);
12311
- at[oe] ? at[oe].p(Ot, F) : (at[oe] = Dl(Ot), at[oe].c(), at[oe].m(Fe, null));
12310
+ const Ot = zl(k, Jt, oe);
12311
+ at[oe] ? at[oe].p(Ot, F) : (at[oe] = Rl(Ot), at[oe].c(), at[oe].m(Fe, null));
12312
12312
  }
12313
12313
  for (; oe < at.length; oe += 1)
12314
12314
  at[oe].d(1);
@@ -12330,8 +12330,8 @@ function xl(t) {
12330
12330
  k[41];
12331
12331
  let oe;
12332
12332
  for (oe = 0; oe < mi.length; oe += 1) {
12333
- const Ot = Ml(k, mi, oe);
12334
- ht[oe] ? ht[oe].p(Ot, F) : (ht[oe] = Rl(Ot), ht[oe].c(), ht[oe].m(R, null));
12333
+ const Ot = Ol(k, mi, oe);
12334
+ ht[oe] ? ht[oe].p(Ot, F) : (ht[oe] = Ul(Ot), ht[oe].c(), ht[oe].m(R, null));
12335
12335
  }
12336
12336
  for (; oe < ht.length; oe += 1)
12337
12337
  ht[oe].d(1);
@@ -12400,7 +12400,7 @@ function xl(t) {
12400
12400
  }
12401
12401
  };
12402
12402
  }
12403
- function Nl(t) {
12403
+ function Dl(t) {
12404
12404
  let e, i, n, s = (
12405
12405
  /*item*/
12406
12406
  t[84].title + ""
@@ -12426,7 +12426,7 @@ function Nl(t) {
12426
12426
  }
12427
12427
  };
12428
12428
  }
12429
- function Dl(t) {
12429
+ function Rl(t) {
12430
12430
  let e, i, n, s = (
12431
12431
  /*item*/
12432
12432
  t[84].placement + ""
@@ -12452,7 +12452,7 @@ function Dl(t) {
12452
12452
  }
12453
12453
  };
12454
12454
  }
12455
- function Rl(t) {
12455
+ function Ul(t) {
12456
12456
  let e, i, n, s = (
12457
12457
  /*item*/
12458
12458
  t[84].placement + ""
@@ -12524,21 +12524,21 @@ function um(t) {
12524
12524
  t[41]
12525
12525
  ), zt = [];
12526
12526
  for (let ce = 0; ce < $i.length; ce += 1)
12527
- zt[ce] = Ll(El(t, $i, ce));
12527
+ zt[ce] = xl(Ll(t, $i, ce));
12528
12528
  let ro = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], fn = [];
12529
12529
  for (let ce = 0; ce < 12; ce += 1)
12530
12530
  fn[ce] = lm(om(t, ro, ce));
12531
12531
  let f = (
12532
12532
  /*showAdvancedSettings*/
12533
- t[42] && xl(t)
12533
+ t[42] && Nl(t)
12534
12534
  );
12535
- function Ho(ce, Qe) {
12535
+ function Yo(ce, Qe) {
12536
12536
  return (
12537
12537
  /*showAdvancedSettings*/
12538
12538
  ce[42] ? am : rm
12539
12539
  );
12540
12540
  }
12541
- let hs = Ho(t), Si = hs(t);
12541
+ let hs = Yo(t), Si = hs(t);
12542
12542
  return {
12543
12543
  c() {
12544
12544
  e = _("div"), i = _("div"), i.innerHTML = `<strong class="svelte-g76q0j">Player settings:</strong>
@@ -12879,8 +12879,8 @@ function um(t) {
12879
12879
  ce[41];
12880
12880
  let yt;
12881
12881
  for (yt = 0; yt < $i.length; yt += 1) {
12882
- const Yo = El(ce, $i, yt);
12883
- zt[yt] ? zt[yt].p(Yo, Qe) : (zt[yt] = Ll(Yo), zt[yt].c(), zt[yt].m(je, null));
12882
+ const Zo = Ll(ce, $i, yt);
12883
+ zt[yt] ? zt[yt].p(Zo, Qe) : (zt[yt] = xl(Zo), zt[yt].c(), zt[yt].m(je, null));
12884
12884
  }
12885
12885
  for (; yt < zt.length; yt += 1)
12886
12886
  zt[yt].d(1);
@@ -12951,7 +12951,7 @@ function um(t) {
12951
12951
  /*segmentWidgetPosition*/
12952
12952
  ce[34]
12953
12953
  ), /*showAdvancedSettings*/
12954
- ce[42] ? f ? f.p(ce, Qe) : (f = xl(ce), f.c(), f.m(e, xn)) : f && (f.d(1), f = null), hs === (hs = Ho(ce)) && Si ? Si.p(ce, Qe) : (Si.d(1), Si = hs(ce), Si && (Si.c(), Si.m(e, null)));
12954
+ ce[42] ? f ? f.p(ce, Qe) : (f = Nl(ce), f.c(), f.m(e, xn)) : f && (f.d(1), f = null), hs === (hs = Yo(ce)) && Si ? Si.p(ce, Qe) : (Si.d(1), Si = hs(ce), Si && (Si.c(), Si.m(e, null)));
12955
12955
  },
12956
12956
  i: X,
12957
12957
  o: X,
@@ -13500,11 +13500,11 @@ const gm = (t, e, i) => {
13500
13500
  const n = t.innerHTML;
13501
13501
  return { src: `data:image/svg+xml,${encodeURIComponent(n)}`, sizes: `${e}x${i}`, type: "image/svg+xml" };
13502
13502
  }), ym = (t, e, i) => Rt(t, e, i, 1), vm = (t, e, i) => Pe(t, e, e === "style" ? km(i) : i), bm = /;(?!([^()]*\([^()]*\))*[^()]*\))/, km = (t) => t.split(bm).map((e) => e + " !important").join(";");
13503
- function Ul(t, e, i) {
13503
+ function Fl(t, e, i) {
13504
13504
  const n = t.slice();
13505
13505
  return n[39] = e[i], n[40] = e, n[41] = i, n;
13506
13506
  }
13507
- function Fl(t) {
13507
+ function ql(t) {
13508
13508
  let e, i, n, s = (
13509
13509
  /*i*/
13510
13510
  t[41]
@@ -13568,7 +13568,7 @@ function pm(t) {
13568
13568
  t[3]
13569
13569
  ), s = [];
13570
13570
  for (let l = 0; l < n.length; l += 1)
13571
- s[l] = Fl(Ul(t, n, l));
13571
+ s[l] = ql(Fl(t, n, l));
13572
13572
  const o = (l) => j(s[l], 1, 1, () => {
13573
13573
  s[l] = null;
13574
13574
  });
@@ -13592,8 +13592,8 @@ function pm(t) {
13592
13592
  l[3];
13593
13593
  let a;
13594
13594
  for (a = 0; a < n.length; a += 1) {
13595
- const c = Ul(l, n, a);
13596
- s[a] ? (s[a].p(c, r), T(s[a], 1)) : (s[a] = Fl(c), s[a].c(), T(s[a], 1), s[a].m(e, null));
13595
+ const c = Fl(l, n, a);
13596
+ s[a] ? (s[a].p(c, r), T(s[a], 1)) : (s[a] = ql(c), s[a].c(), T(s[a], 1), s[a].m(e, null));
13597
13597
  }
13598
13598
  for (xe(), a = n.length; a < s.length; a += 1)
13599
13599
  o(a);
@@ -13871,15 +13871,15 @@ class wm extends pe {
13871
13871
  this.$$set({ onEvent: e }), d();
13872
13872
  }
13873
13873
  }
13874
- const ql = (t, e, i) => Pe(t, e, e === "style" ? Tm(i) : i), Pm = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Tm = (t) => t.split(Pm).map((e) => e + " !important").join(";");
13875
- function Hl(t) {
13874
+ const Hl = (t, e, i) => Pe(t, e, e === "style" ? Tm(i) : i), Pm = /;(?!([^()]*\([^()]*\))*[^()]*\))/, Tm = (t) => t.split(Pm).map((e) => e + " !important").join(";");
13875
+ function Yl(t) {
13876
13876
  let e, i, n, s;
13877
13877
  return {
13878
13878
  c() {
13879
13879
  e = _("script"), n = K(), s = _("script"), s.textContent = `window.dataLayer = window.dataLayer || [];
13880
13880
  function gtag() { dataLayer.push(arguments); }
13881
13881
  gtag("js", new Date());`, e.async = !0, wn(e.src, i = "https://www.googletagmanager.com/gtag/js?id=" + /*analyticsTag*/
13882
- t[0]) || ql(e, "src", i);
13882
+ t[0]) || Hl(e, "src", i);
13883
13883
  },
13884
13884
  m(o, l) {
13885
13885
  V(o, e, l), V(o, n, l), V(o, s, l);
@@ -13887,7 +13887,7 @@ function Hl(t) {
13887
13887
  p(o, l) {
13888
13888
  l & /*analyticsTag*/
13889
13889
  1 && !wn(e.src, i = "https://www.googletagmanager.com/gtag/js?id=" + /*analyticsTag*/
13890
- o[0]) && ql(e, "src", i);
13890
+ o[0]) && Hl(e, "src", i);
13891
13891
  },
13892
13892
  d(o) {
13893
13893
  o && B(e), o && B(n), o && B(s);
@@ -13896,7 +13896,7 @@ function Hl(t) {
13896
13896
  }
13897
13897
  function Am(t) {
13898
13898
  let e, i = !/*alreadyLoaded*/
13899
- t[1] && Hl(t);
13899
+ t[1] && Yl(t);
13900
13900
  return {
13901
13901
  c() {
13902
13902
  i && i.c(), e = Pn();
@@ -13906,7 +13906,7 @@ function Am(t) {
13906
13906
  },
13907
13907
  p(n, [s]) {
13908
13908
  /*alreadyLoaded*/
13909
- n[1] ? i && (i.d(1), i = null) : i ? i.p(n, s) : (i = Hl(n), i.c(), i.m(e.parentNode, e));
13909
+ n[1] ? i && (i.d(1), i = null) : i ? i.p(n, s) : (i = Yl(n), i.c(), i.m(e.parentNode, e));
13910
13910
  },
13911
13911
  i: X,
13912
13912
  o: X,
@@ -13938,7 +13938,7 @@ class Im extends pe {
13938
13938
  }
13939
13939
  }
13940
13940
  var Xn, Co, Ds, Tr;
13941
- class qo {
13941
+ class Ho {
13942
13942
  constructor(e, i) {
13943
13943
  // private
13944
13944
  Ce(this, Xn);
@@ -13975,7 +13975,7 @@ const Gn = (t, e, i) => {
13975
13975
  n || (n = "none"), s || (s = n);
13976
13976
  const o = t === "current" ? n : s;
13977
13977
  return o === "all" || o === "body" && (e == null ? void 0 : e.section) === "body";
13978
- }, un = "data-beyondwords-marker", Yl = (t) => ["beyondwords-highlight", "bwp", `marker-${t}`];
13978
+ }, un = "data-beyondwords-marker", Zl = (t) => ["beyondwords-highlight", "bwp", `marker-${t}`];
13979
13979
  var Qn, Rs, Ar, Us, Cr;
13980
13980
  const Ei = class Ei {
13981
13981
  update(e, i, n, s) {
@@ -13993,20 +13993,20 @@ Qn = new WeakMap(), Rs = new WeakSet(), Ar = function(e, i) {
13993
13993
  continue;
13994
13994
  l.parentNode.nodeName.toLowerCase() === "a" && (l = l.parentNode);
13995
13995
  const c = document.createElement("mark");
13996
- c.classList.add(...Yl(e)), c.style.background = i, l.parentNode.insertBefore(c, l), c.appendChild(l);
13996
+ c.classList.add(...Zl(e)), c.style.background = i, l.parentNode.insertBefore(c, l), c.appendChild(l);
13997
13997
  }
13998
13998
  }
13999
13999
  }, Us = new WeakSet(), Cr = function(e) {
14000
14000
  const i = document.querySelectorAll(`[${un}="${e}"]`);
14001
14001
  for (const n of i) {
14002
- const s = n.querySelectorAll(`mark.${Yl(e)}`);
14002
+ const s = n.querySelectorAll(`mark.${Zl(e)}`);
14003
14003
  for (const o of s)
14004
14004
  for (const l of o.childNodes)
14005
14005
  o.parentNode.insertBefore(l, o), o.remove();
14006
14006
  }
14007
- }, Ce(Ei, Rs), Ce(Ei, Us), Ce(Ei, Qn, new qo(O(Ei, Rs, Ar), O(Ei, Us, Cr)));
14007
+ }, Ce(Ei, Rs), Ce(Ei, Us), Ce(Ei, Qn, new Ho(O(Ei, Rs, Ar), O(Ei, Us, Cr)));
14008
14008
  let Bo = Ei;
14009
- const Zl = ["beyondwords-clickable", "bwp"];
14009
+ const Kl = ["beyondwords-clickable", "bwp"];
14010
14010
  var $n, Fs, Br, qs, Ir;
14011
14011
  const Li = class Li {
14012
14012
  update(e, i) {
@@ -14017,19 +14017,19 @@ const Li = class Li {
14017
14017
  $n = new WeakMap(), Fs = new WeakSet(), Br = function(e) {
14018
14018
  const i = document.querySelectorAll(`[${un}="${e}"]`);
14019
14019
  for (const n of i)
14020
- n.classList.add(...Zl);
14020
+ n.classList.add(...Kl);
14021
14021
  }, qs = new WeakSet(), Ir = function(e) {
14022
14022
  const i = document.querySelectorAll(`[${un}="${e}"]`);
14023
14023
  for (const n of i)
14024
- Vr(n, Zl);
14025
- }, Ce(Li, Fs), Ce(Li, qs), Ce(Li, $n, new qo(O(Li, Fs, Br), O(Li, qs, Ir)));
14024
+ Vr(n, Kl);
14025
+ }, Ce(Li, Fs), Ce(Li, qs), Ce(Li, $n, new Ho(O(Li, Fs, Br), O(Li, qs, Ir)));
14026
14026
  let Io = Li;
14027
14027
  const Vr = (t, e) => {
14028
14028
  if (!t)
14029
14029
  return;
14030
14030
  const s = [...t.classList].filter((o) => !e.includes(o)).some((o) => o.startsWith("beyondwords-")) ? e.filter((o) => o !== "bwp") : e;
14031
14031
  t.classList.remove(...s);
14032
- }, Kl = (t, e, i) => ["beyondwords-widget", "bwp", `marker-${t}`, `position-${e}`, `for-${i}-player`], Jl = ["beyondwords-relative", "bwp"];
14032
+ }, Jl = (t, e, i) => ["beyondwords-widget", "bwp", `marker-${t}`, `position-${e}`, `for-${i}-player`], Gl = ["beyondwords-relative", "bwp"];
14033
14033
  var es, Hs, Wr, Ys, jr;
14034
14034
  const xi = class xi {
14035
14035
  constructor(e) {
@@ -14045,17 +14045,17 @@ const xi = class xi {
14045
14045
  };
14046
14046
  es = new WeakMap(), Hs = new WeakSet(), Wr = function(e, i, n, s) {
14047
14047
  const o = document.querySelector(`[${un}="${e}"]`), l = document.createElement("div");
14048
- ["2-oclock", "3-oclock", "4-oclock", "8-oclock", "9-oclock", "10-oclock"].includes(n) && o.classList.add(...Jl), l.classList.add(...Kl(e, n, s)), ["11-oclock", "12-oclock", "1-oclock"].includes(n) ? o.insertBefore(l, o.firstChild) : o.appendChild(l), i.containers.push(l), i.onUpdate(i.containers);
14048
+ ["2-oclock", "3-oclock", "4-oclock", "8-oclock", "9-oclock", "10-oclock"].includes(n) && o.classList.add(...Gl), l.classList.add(...Jl(e, n, s)), ["11-oclock", "12-oclock", "1-oclock"].includes(n) ? o.insertBefore(l, o.firstChild) : o.appendChild(l), i.containers.push(l), i.onUpdate(i.containers);
14049
14049
  }, Ys = new WeakSet(), jr = function(e, i, n, s) {
14050
- const o = Kl(e, n, s);
14050
+ const o = Jl(e, n, s);
14051
14051
  for (let l = 0; l < i.containers.length; l += 1) {
14052
14052
  if (!o.every((c) => i.containers[l].classList.contains(c)))
14053
14053
  continue;
14054
14054
  const a = i.containers[l].parentNode;
14055
- Vr(a, Jl), i.containers[l].remove(), i.containers.splice(l, 1), l -= 1;
14055
+ Vr(a, Gl), i.containers[l].remove(), i.containers.splice(l, 1), l -= 1;
14056
14056
  }
14057
14057
  i.onUpdate(i.containers);
14058
- }, Ce(xi, Hs), Ce(xi, Ys), Ce(xi, es, new qo(O(xi, Hs, Wr), O(xi, Ys, jr)));
14058
+ }, Ce(xi, Hs), Ce(xi, Ys), Ce(xi, es, new Ho(O(xi, Hs, Wr), O(xi, Ys, jr)));
14059
14059
  let Vo = xi;
14060
14060
  const Vm = () => fe({
14061
14061
  type: "IdentifiersChanged",
@@ -14184,11 +14184,11 @@ const Er = [], Nm = (t, e, i) => si(void 0, null, function* () {
14184
14184
  const i = document.querySelectorAll(t);
14185
14185
  return i.length === 0 && Xt(`Failed to initialize ${e} because the target could not be found.`, { target: t, elements: i }), i.length > 1 && Xt(`Failed to initialize ${e} because the target is ambiguous. (${i.length} elements match)`, { target: t, elements: i }), i[0];
14186
14186
  };
14187
- function Gl(t, e, i) {
14187
+ function Xl(t, e, i) {
14188
14188
  const n = t.slice();
14189
14189
  return n[140] = e[i], n;
14190
14190
  }
14191
- function Xl(t) {
14191
+ function Ql(t) {
14192
14192
  let e, i, n = {
14193
14193
  onEvent: (
14194
14194
  /*onEvent*/
@@ -14275,7 +14275,7 @@ function Xl(t) {
14275
14275
  t[61]
14276
14276
  )
14277
14277
  };
14278
- return e = new Uo({ props: n }), t[93](e), {
14278
+ return e = new Fo({ props: n }), t[93](e), {
14279
14279
  c() {
14280
14280
  de(e.$$.fragment);
14281
14281
  },
@@ -14337,9 +14337,9 @@ function Xl(t) {
14337
14337
  }
14338
14338
  };
14339
14339
  }
14340
- function Ql(t) {
14340
+ function $l(t) {
14341
14341
  let e, i;
14342
- return e = new Fo({
14342
+ return e = new qo({
14343
14343
  props: {
14344
14344
  root: (
14345
14345
  /*widgetTarget*/
@@ -14464,7 +14464,7 @@ function Zm(t) {
14464
14464
  t[58]
14465
14465
  )
14466
14466
  };
14467
- return e = new Uo({ props: n }), t[94](e), {
14467
+ return e = new Fo({ props: n }), t[94](e), {
14468
14468
  c() {
14469
14469
  de(e.$$.fragment);
14470
14470
  },
@@ -14530,7 +14530,7 @@ function Zm(t) {
14530
14530
  }
14531
14531
  function Km(t) {
14532
14532
  let e, i;
14533
- return e = new Uo({
14533
+ return e = new Fo({
14534
14534
  props: {
14535
14535
  onEvent: (
14536
14536
  /*func*/
@@ -14644,9 +14644,9 @@ function Km(t) {
14644
14644
  }
14645
14645
  };
14646
14646
  }
14647
- function $l(t, e) {
14647
+ function er(t, e) {
14648
14648
  let i, n, s;
14649
- return n = new Fo({
14649
+ return n = new qo({
14650
14650
  props: {
14651
14651
  root: (
14652
14652
  /*root*/
@@ -14686,9 +14686,9 @@ function $l(t, e) {
14686
14686
  }
14687
14687
  };
14688
14688
  }
14689
- function er(t) {
14689
+ function tr(t) {
14690
14690
  let e, i;
14691
- return e = new Fo({
14691
+ return e = new qo({
14692
14692
  props: {
14693
14693
  root: (
14694
14694
  /*controlPanel*/
@@ -15057,7 +15057,7 @@ function Jm(t) {
15057
15057
  }
15058
15058
  );
15059
15059
  }
15060
- function tr(t) {
15060
+ function ir(t) {
15061
15061
  let e, i;
15062
15062
  return e = new wm({
15063
15063
  props: {
@@ -15142,7 +15142,7 @@ function tr(t) {
15142
15142
  }
15143
15143
  };
15144
15144
  }
15145
- function ir(t) {
15145
+ function nr(t) {
15146
15146
  let e, i;
15147
15147
  return e = new Bm({
15148
15148
  props: { analyticsTag: (
@@ -15245,11 +15245,11 @@ function Gm(t) {
15245
15245
  t[45]), e = new b1({ props: N }), t[87](e), ie.push(() => _e(e, "playbackState", M)), ie.push(() => _e(e, "duration", Z)), ie.push(() => _e(e, "currentTime", J)), ie.push(() => _e(e, "playbackRate", z)), ie.push(() => _e(e, "prevPercentage", x));
15246
15246
  let E = (
15247
15247
  /*showUserInterface*/
15248
- t[5] && Xl(t)
15248
+ t[5] && Ql(t)
15249
15249
  ), G = (
15250
15250
  /*showBottomWidget*/
15251
15251
  (t[51] || /*widgetTarget*/
15252
- t[13]) && Ql(t)
15252
+ t[13]) && $l(t)
15253
15253
  ), le = (
15254
15254
  /*segmentWidgets*/
15255
15255
  t[46]
@@ -15259,18 +15259,18 @@ function Gm(t) {
15259
15259
  S[140]
15260
15260
  );
15261
15261
  for (let S = 0; S < le.length; S += 1) {
15262
- let P = Gl(t, le, S), U = ye(P);
15263
- h.set(U, u[S] = $l(U, P));
15262
+ let P = Xl(t, le, S), U = ye(P);
15263
+ h.set(U, u[S] = er(U, P));
15264
15264
  }
15265
15265
  let ee = (
15266
15266
  /*controlPanel*/
15267
- t[21] && er(t)
15267
+ t[21] && tr(t)
15268
15268
  ), q = (
15269
15269
  /*showMediaSession*/
15270
- t[52] && tr(t)
15270
+ t[52] && ir(t)
15271
15271
  ), H = (
15272
15272
  /*analyticsTag*/
15273
- t[41] && ir(t)
15273
+ t[41] && nr(t)
15274
15274
  );
15275
15275
  return b = new Im({}), {
15276
15276
  c() {
@@ -15317,29 +15317,29 @@ function Gm(t) {
15317
15317
  16384 && (l = !0, U.prevPercentage = /*prevPercentage*/
15318
15318
  S[45], he(() => l = !1)), e.$set(U), /*showUserInterface*/
15319
15319
  S[5] ? E ? (E.p(S, P), P[0] & /*showUserInterface*/
15320
- 32 && T(E, 1)) : (E = Xl(S), E.c(), T(E, 1), E.m(a.parentNode, a)) : E && (xe(), j(E, 1, 1, () => {
15320
+ 32 && T(E, 1)) : (E = Ql(S), E.c(), T(E, 1), E.m(a.parentNode, a)) : E && (xe(), j(E, 1, 1, () => {
15321
15321
  E = null;
15322
15322
  }), Ne()), /*showBottomWidget*/
15323
15323
  S[51] || /*widgetTarget*/
15324
15324
  S[13] ? G ? (G.p(S, P), P[0] & /*widgetTarget*/
15325
15325
  8192 | P[1] & /*showBottomWidget*/
15326
- 1048576 && T(G, 1)) : (G = Ql(S), G.c(), T(G, 1), G.m(c.parentNode, c)) : G && (xe(), j(G, 1, 1, () => {
15326
+ 1048576 && T(G, 1)) : (G = $l(S), G.c(), T(G, 1), G.m(c.parentNode, c)) : G && (xe(), j(G, 1, 1, () => {
15327
15327
  G = null;
15328
15328
  }), Ne()), P[0] & /*contentIndex, duration, currentTime, playbackState*/
15329
15329
  1610614912 | P[1] & /*segmentWidgets, onEvent, widgetSegment, widgetIsCurrent, content, showRealTimeInWidget, activeAdvert, textColor, backgroundColor, iconColor*/
15330
15330
  650281016 | P[2] & /*persistentAdvert*/
15331
15331
  1 && (le = /*segmentWidgets*/
15332
- S[46], xe(), u = Oa(u, P, ye, 1, S, le, h, m.parentNode, Ma, $l, m, Gl), Ne()), /*controlPanel*/
15332
+ S[46], xe(), u = Oa(u, P, ye, 1, S, le, h, m.parentNode, Ma, er, m, Xl), Ne()), /*controlPanel*/
15333
15333
  S[21] ? ee ? (ee.p(S, P), P[0] & /*controlPanel*/
15334
- 2097152 && T(ee, 1)) : (ee = er(S), ee.c(), T(ee, 1), ee.m(v.parentNode, v)) : ee && (xe(), j(ee, 1, 1, () => {
15334
+ 2097152 && T(ee, 1)) : (ee = tr(S), ee.c(), T(ee, 1), ee.m(v.parentNode, v)) : ee && (xe(), j(ee, 1, 1, () => {
15335
15335
  ee = null;
15336
15336
  }), Ne()), /*showMediaSession*/
15337
15337
  S[52] ? q ? (q.p(S, P), P[1] & /*showMediaSession*/
15338
- 2097152 && T(q, 1)) : (q = tr(S), q.c(), T(q, 1), q.m(y.parentNode, y)) : q && (xe(), j(q, 1, 1, () => {
15338
+ 2097152 && T(q, 1)) : (q = ir(S), q.c(), T(q, 1), q.m(y.parentNode, y)) : q && (xe(), j(q, 1, 1, () => {
15339
15339
  q = null;
15340
15340
  }), Ne()), /*analyticsTag*/
15341
15341
  S[41] ? H ? (H.p(S, P), P[1] & /*analyticsTag*/
15342
- 1024 && T(H, 1)) : (H = ir(S), H.c(), T(H, 1), H.m(p.parentNode, p)) : H && (xe(), j(H, 1, 1, () => {
15342
+ 1024 && T(H, 1)) : (H = nr(S), H.c(), T(H, 1), H.m(p.parentNode, p)) : H && (xe(), j(H, 1, 1, () => {
15343
15343
  H = null;
15344
15344
  }), Ne());
15345
15345
  },
@@ -16269,7 +16269,7 @@ class $m {
16269
16269
  return kn(`${this.baseUrl}/by_identifiers/${encodeURIComponent(JSON.stringify(e))}`);
16270
16270
  }
16271
16271
  }
16272
- const jo = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.map(jo) : Object.fromEntries(Object.entries(t).map(([e, i]) => [e.replace(/([A-Z])/g, (n) => `_${n.toLowerCase()}`), jo(i)])), Lr = (t) => t === "dark" || t === "auto" && e2() ? "dark" : "light", e2 = () => window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches, nr = (t) => si(void 0, null, function* () {
16272
+ const jo = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.map(jo) : Object.fromEntries(Object.entries(t).map(([e, i]) => [e.replace(/([A-Z])/g, (n) => `_${n.toLowerCase()}`), jo(i)])), Lr = (t) => t === "dark" || t === "auto" && e2() ? "dark" : "light", e2 = () => window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches, sr = (t) => si(void 0, null, function* () {
16273
16273
  const e = new $m(t.playerApiUrl, t.projectId);
16274
16274
  if (!t.playerApiUrl || !t.projectId)
16275
16275
  return;
@@ -16326,12 +16326,14 @@ const jo = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
16326
16326
  audio: o.audio.map((r) => ({
16327
16327
  id: r.id,
16328
16328
  url: r.url,
16329
- contentType: r.content_type
16329
+ contentType: r.content_type,
16330
+ duration: r.duration ? r.duration / 1e3 : 0
16330
16331
  })),
16331
16332
  video: o.video.map((r) => ({
16332
16333
  id: r.id,
16333
16334
  url: r.url,
16334
- contentType: r.content_type
16335
+ contentType: r.content_type,
16336
+ duration: r.duration ? r.duration / 1e3 : 0
16335
16337
  })),
16336
16338
  segments: o.segments.map((r) => ({
16337
16339
  marker: r.marker,
@@ -16359,12 +16361,14 @@ const jo = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
16359
16361
  audio: l ? [] : (o.audio || o.media).map((c) => ({
16360
16362
  id: c.id,
16361
16363
  url: c.url,
16362
- contentType: c.content_type
16364
+ contentType: c.content_type,
16365
+ duration: c.duration ? c.duration / 1e3 : 0
16363
16366
  })),
16364
16367
  video: l ? [] : (o.video || []).map((c) => ({
16365
16368
  id: c.id,
16366
16369
  url: c.url,
16367
- contentType: c.content_type
16370
+ contentType: c.content_type,
16371
+ duration: c.duration ? c.duration / 1e3 : 0
16368
16372
  }))
16369
16373
  };
16370
16374
  }));
@@ -16429,7 +16433,7 @@ const jo = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
16429
16433
  const i = e.startTime + e.duration;
16430
16434
  if (i < h2)
16431
16435
  return;
16432
- const n = i / 2, s = Do(t, i / 2), r = t[s].startTime >= n - m2 ? s : s + 1;
16436
+ const n = i / 2, s = Ro(t, i / 2), r = t[s].startTime >= n - m2 ? s : s + 1;
16433
16437
  if (r !== t.length)
16434
16438
  return r;
16435
16439
  }, v2 = (t, e, i, n) => {
@@ -16679,7 +16683,7 @@ class M2 {
16679
16683
  this.player.playbackState = this.preScrubState, setTimeout(() => delete this.preScrubState, 500);
16680
16684
  }
16681
16685
  handleIdentifiersChanged() {
16682
- nr(this.player).then(() => {
16686
+ sr(this.player).then(() => {
16683
16687
  O(this, Fi, bn).call(this, { atTheStart: !0 }), O(this, Wi, sn).call(this, { atTheStart: !0 });
16684
16688
  });
16685
16689
  }
@@ -16718,10 +16722,10 @@ class M2 {
16718
16722
  console.warn(`BeyondWords.Player: ${e} playback error: ${i}`), O(this, bi, zi).call(this) || O(this, Di, mn).call(this) ? O(this, Fi, bn).call(this, { errored: !0 }) : O(this, ni, ui).call(this) ? O(this, Wi, sn).call(this, { errored: !0 }) : this.handlePlaybackEnded();
16719
16723
  }
16720
16724
  handlePressedMaximize() {
16721
- kl() ? x0() : L0(this.player.target);
16725
+ pl() ? x0() : L0(this.player.target);
16722
16726
  }
16723
16727
  handleFullScreenModeUpdated() {
16724
- const e = kl() === this.player.target, i = e ? "add" : "remove";
16728
+ const e = pl() === this.player.target, i = e ? "add" : "remove";
16725
16729
  this.player.isFullScreen = e, this.player.target.classList[i]("maximized");
16726
16730
  }
16727
16731
  handlePressedPlaylistItem({ index: e }) {
@@ -16741,7 +16745,7 @@ class M2 {
16741
16745
  e.playbackState = "paused", e.widgetStyle = "closed-by-user";
16742
16746
  }
16743
16747
  handleContentStatusChanged({ contentId: e, legacyId: i, sourceId: n, sourceUrl: s, contentStatus: o }) {
16744
- o === "processed" && this.player.playbackState === "stopped" && this.player.contentIndex === 0 && this.player.currentTime === 0 && O(this, so, ta).call(this, { contentId: e, legacyId: i, sourceId: n, sourceUrl: s }) && nr(this.player).then(() => {
16748
+ o === "processed" && this.player.playbackState === "stopped" && this.player.contentIndex === 0 && this.player.currentTime === 0 && O(this, so, ta).call(this, { contentId: e, legacyId: i, sourceId: n, sourceUrl: s }) && sr(this.player).then(() => {
16745
16749
  O(this, Fi, bn).call(this, { atTheStart: !0 }), O(this, Wi, sn).call(this, { atTheStart: !0 });
16746
16750
  });
16747
16751
  }
@@ -16798,7 +16802,7 @@ Ks = new WeakSet(), Hr = function({ type: e }) {
16798
16802
  let r;
16799
16803
  i ? r = l % n.length : r = Math.max(0, Math.min(s, l)), this.player.playbackRate = n[r] || 1;
16800
16804
  }, ns = new WeakSet(), zo = function(e) {
16801
- const i = this.player.content[this.player.contentIndex].segments, n = Do(i, this.player.currentTime), s = e(n);
16805
+ const i = this.player.content[this.player.contentIndex].segments, n = Ro(i, this.player.currentTime), s = e(n);
16802
16806
  O(this, bi, zi).call(this) && s >= 0 ? this.handlePlaybackEnded() : O(this, Di, mn).call(this) && s < 0 ? (O(this, Sn, Yn).call(this, -1), O(this, Wt, qt).call(this, () => {
16803
16807
  var o;
16804
16808
  return ((o = i[i.length - 1]) == null ? void 0 : o.startTime) || 0.01;
@@ -16932,12 +16936,12 @@ function H2(t) {
16932
16936
  column: e[4] ? +e[4] : null
16933
16937
  } : null;
16934
16938
  }
16935
- let sr = !1, yo, vo;
16939
+ let or = !1, yo, vo;
16936
16940
  const Y2 = ({ onError: t }) => {
16937
- if (!t || sr)
16941
+ if (!t || or)
16938
16942
  return;
16939
- sr = !0;
16940
- const e = or(new Error()), i = e == null ? void 0 : e.match(/setErrorHandler/);
16943
+ or = !0;
16944
+ const e = lr(new Error()), i = e == null ? void 0 : e.match(/setErrorHandler/);
16941
16945
  yo = window.onerror, vo = window.onunhandledrejection, window.onerror = (n, s, o, l, r) => {
16942
16946
  var h;
16943
16947
  const a = s === e, c = (h = r == null ? void 0 : r.message) == null ? void 0 : h.match(/request was interrupted/);
@@ -16946,14 +16950,14 @@ const Y2 = ({ onError: t }) => {
16946
16950
  yo && yo(n, s, o, l, r);
16947
16951
  }, window.onunhandledrejection = (n) => {
16948
16952
  var a;
16949
- const s = n.reason, o = or(s) === e, l = (a = s == null ? void 0 : s.message) == null ? void 0 : a.match(/request was interrupted/);
16953
+ const s = n.reason, o = lr(s) === e, l = (a = s == null ? void 0 : s.message) == null ? void 0 : a.match(/request was interrupted/);
16950
16954
  if ((i || o || l) && t(s)) {
16951
16955
  n.preventDefault();
16952
16956
  return;
16953
16957
  }
16954
16958
  vo && vo(n);
16955
16959
  };
16956
- }, or = (t) => {
16960
+ }, lr = (t) => {
16957
16961
  var e;
16958
16962
  return (e = na((t == null ? void 0 : t.stack) || "")[0]) == null ? void 0 : e.file;
16959
16963
  }, Z2 = () => {
@@ -16963,9 +16967,9 @@ const Y2 = ({ onError: t }) => {
16963
16967
  "For example, by initializing the player inside a useEffect hook in a React application."
16964
16968
  ]);
16965
16969
  };
16966
- let lr = !1;
16970
+ let rr = !1;
16967
16971
  const K2 = () => {
16968
- lr || (lr = !0, addEventListener("mousedown", J2), addEventListener("click", G2), addEventListener("mousemove", X2));
16972
+ rr || (rr = !0, addEventListener("mousedown", J2), addEventListener("click", G2), addEventListener("mousemove", X2));
16969
16973
  }, J2 = (t) => {
16970
16974
  la = t.pageX, ra = t.pageY;
16971
16975
  }, G2 = (t) => {
@@ -17084,7 +17088,7 @@ const e3 = (t, e) => {
17084
17088
  location: window.location.href,
17085
17089
  referrer: document.referrer,
17086
17090
  player_version: "1",
17087
- player_npm_version: yr
17091
+ player_npm_version: xo
17088
17092
  };
17089
17093
  }, n3 = ({ event_type: t, listen_length_percent: e }) => {
17090
17094
  const i = Math.floor(e / 10) * 10;
@@ -17115,13 +17119,18 @@ const e3 = (t, e) => {
17115
17119
  const e = t.prevPercentage + 10, i = t.currentTime / t.duration * 100;
17116
17120
  if (i >= e)
17117
17121
  return t.prevPercentage = Math.floor(i / 10) * 10, !0;
17118
- }, l3 = () => rr(499) ? "phone" : rr(999) ? "tablet" : "desktop", rr = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches, ko = (t) => {
17119
- var s;
17120
- const e = new Error(), i = (s = na(e.stack || "")[0]) == null ? void 0 : s.file;
17122
+ }, l3 = () => ar(499) ? "phone" : ar(999) ? "tablet" : "desktop", ar = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches, ko = (t) => {
17123
+ var o;
17124
+ const e = new Error(), i = (o = na(e.stack || "")[0]) == null ? void 0 : o.file;
17125
+ if (!i)
17126
+ return console.warn("BeyondWords.Player: unable to load dependencies"), "";
17121
17127
  if (!t)
17122
17128
  return i;
17123
- const n = i.split("/");
17124
- return n[n.length - 1] = t, n.join("/");
17129
+ const n = i.replaceAll("player@latest", `player@${xo}`);
17130
+ return r3(n, t);
17131
+ }, r3 = (t, e) => {
17132
+ const i = t.split("/");
17133
+ return i[i.length - 1] = e, i.join("/");
17125
17134
  };
17126
17135
  var ln;
17127
17136
  const Ni = class Ni extends Qm {
@@ -17136,7 +17145,7 @@ const Ni = class Ni extends Qm {
17136
17145
  super({ target: o, props: ji(Ft({ controller: r }, a), { initialProps: a }) }), r.player = this, vi(Ni, ln).push(this);
17137
17146
  }
17138
17147
  static get version() {
17139
- return yr;
17148
+ return xo;
17140
17149
  }
17141
17150
  static get scriptSrc() {
17142
17151
  return ko();
@@ -17154,7 +17163,7 @@ const Ni = class Ni extends Qm {
17154
17163
  vi(Ni, ln).forEach((e) => e.destroy());
17155
17164
  }
17156
17165
  destroy() {
17157
- this.$destroy(), Go(Ni, ln, vi(Ni, ln).filter((e) => e !== this));
17166
+ this.$destroy(), Xo(Ni, ln, vi(Ni, ln).filter((e) => e !== this));
17158
17167
  }
17159
17168
  get target() {
17160
17169
  return this.$$.root;
@@ -17171,10 +17180,10 @@ const Ni = class Ni extends Qm {
17171
17180
  };
17172
17181
  ln = new WeakMap(), Ce(Ni, ln, []);
17173
17182
  let Ns = Ni;
17174
- var ar;
17175
- typeof window != "undefined" && (window.BeyondWords || (window.BeyondWords = {}), (ar = window.BeyondWords).Player || (ar.Player = Ns));
17176
- const c3 = { Player: Ns };
17183
+ var ur;
17184
+ typeof window != "undefined" && (window.BeyondWords || (window.BeyondWords = {}), (ur = window.BeyondWords).Player || (ur.Player = Ns));
17185
+ const d3 = { Player: Ns };
17177
17186
  export {
17178
- c3 as default
17187
+ d3 as default
17179
17188
  };
17180
17189
  //# sourceMappingURL=es.js.map