@beyondwords/player 0.0.0-beta22 → 0.0.0-beta23

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
@@ -550,7 +550,7 @@ class it {
550
550
  this.$$set && !A0(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
551
551
  }
552
552
  }
553
- const q0 = "@beyondwords/player", eu = "0.0.0-beta22", er = (t, e) => {
553
+ const q0 = "@beyondwords/player", eu = "0.0.0-beta23", er = (t, e) => {
554
554
  t = [t].flat().join(`
555
555
  `);
556
556
  let i = `${q0}:
@@ -26671,7 +26671,7 @@ const Ml = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
26671
26671
  return {
26672
26672
  id: g.id,
26673
26673
  title: g.title,
26674
- imageUrl: a && (((p = e.playlist) == null ? void 0 : p.image_url) || g.image_url || e.settings.image_url),
26674
+ imageUrl: a && (((p = e.playlist) == null ? void 0 : p.image_url) || e.settings.image_url || g.image_url),
26675
26675
  sourceId: g.source_id,
26676
26676
  sourceUrl: g.source_url,
26677
26677
  adsEnabled: g.ads_enabled,
@@ -29664,7 +29664,7 @@ function Nd(t, e) {
29664
29664
  if (!(e !== "event" && e !== "transaction"))
29665
29665
  return Array.isArray(t) ? t[1] : void 0;
29666
29666
  }
29667
- const vo = "7.53.1";
29667
+ const vo = "7.54.0";
29668
29668
  let Fd;
29669
29669
  class ca {
29670
29670
  constructor() {
@@ -29697,7 +29697,15 @@ class ca {
29697
29697
  }
29698
29698
  }
29699
29699
  ca.__initStatic();
29700
- const NE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
29700
+ const NE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/], FE = [
29701
+ /^.*healthcheck.*$/,
29702
+ /^.*healthy.*$/,
29703
+ /^.*live.*$/,
29704
+ /^.*ready.*$/,
29705
+ /^.*heartbeat.*$/,
29706
+ /^.*\/health$/,
29707
+ /^.*\/healthz$/
29708
+ ];
29701
29709
  class Ls {
29702
29710
  /**
29703
29711
  * @inheritDoc
@@ -29723,8 +29731,8 @@ class Ls {
29723
29731
  if (l) {
29724
29732
  const g = l.getIntegration(Ls);
29725
29733
  if (g) {
29726
- const p = l.getClient(), _ = p ? p.getOptions() : {}, T = FE(g._options, _);
29727
- return UE(a, T) ? null : a;
29734
+ const p = l.getClient(), _ = p ? p.getOptions() : {}, T = UE(g._options, _);
29735
+ return VE(a, T) ? null : a;
29728
29736
  }
29729
29737
  }
29730
29738
  return a;
@@ -29733,34 +29741,38 @@ class Ls {
29733
29741
  }
29734
29742
  }
29735
29743
  Ls.__initStatic();
29736
- function FE(t = {}, e = {}) {
29744
+ function UE(t = {}, e = {}) {
29737
29745
  return {
29738
29746
  allowUrls: [...t.allowUrls || [], ...e.allowUrls || []],
29739
29747
  denyUrls: [...t.denyUrls || [], ...e.denyUrls || []],
29740
29748
  ignoreErrors: [
29741
29749
  ...t.ignoreErrors || [],
29742
29750
  ...e.ignoreErrors || [],
29743
- ...NE
29751
+ ...t.disableErrorDefaults ? [] : NE
29752
+ ],
29753
+ ignoreTransactions: [
29754
+ ...t.ignoreTransactions || [],
29755
+ ...e.ignoreTransactions || [],
29756
+ ...t.disableTransactionDefaults ? [] : FE
29744
29757
  ],
29745
- ignoreTransactions: [...t.ignoreTransactions || [], ...e.ignoreTransactions || []],
29746
29758
  ignoreInternal: t.ignoreInternal !== void 0 ? t.ignoreInternal : !0
29747
29759
  };
29748
29760
  }
29749
- function UE(t, e) {
29750
- return e.ignoreInternal && HE(t) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(`Event dropped due to being internal Sentry Error.
29751
- Event: ${Bn(t)}`), !0) : VE(t, e.ignoreErrors) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29761
+ function VE(t, e) {
29762
+ return e.ignoreInternal && KE(t) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(`Event dropped due to being internal Sentry Error.
29763
+ Event: ${Bn(t)}`), !0) : WE(t, e.ignoreErrors) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29752
29764
  `Event dropped due to being matched by \`ignoreErrors\` option.
29753
29765
  Event: ${Bn(t)}`
29754
- ), !0) : WE(t, e.ignoreTransactions) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29766
+ ), !0) : jE(t, e.ignoreTransactions) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29755
29767
  `Event dropped due to being matched by \`ignoreTransactions\` option.
29756
29768
  Event: ${Bn(t)}`
29757
- ), !0) : jE(t, e.denyUrls) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29769
+ ), !0) : GE(t, e.denyUrls) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29758
29770
  `Event dropped due to being matched by \`denyUrls\` option.
29759
29771
  Event: ${Bn(
29760
29772
  t
29761
29773
  )}.
29762
29774
  Url: ${mo(t)}`
29763
- ), !0) : GE(t, e.allowUrls) ? !1 : ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29775
+ ), !0) : zE(t, e.allowUrls) ? !1 : ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
29764
29776
  `Event dropped due to not being matched by \`allowUrls\` option.
29765
29777
  Event: ${Bn(
29766
29778
  t
@@ -29768,28 +29780,28 @@ Event: ${Bn(
29768
29780
  Url: ${mo(t)}`
29769
29781
  ), !0);
29770
29782
  }
29771
- function VE(t, e) {
29772
- return t.type || !e || !e.length ? !1 : zE(t).some((i) => Uo(i, e));
29773
- }
29774
29783
  function WE(t, e) {
29784
+ return t.type || !e || !e.length ? !1 : HE(t).some((i) => Uo(i, e));
29785
+ }
29786
+ function jE(t, e) {
29775
29787
  if (t.type !== "transaction" || !e || !e.length)
29776
29788
  return !1;
29777
29789
  const i = t.transaction;
29778
29790
  return i ? Uo(i, e) : !1;
29779
29791
  }
29780
- function jE(t, e) {
29792
+ function GE(t, e) {
29781
29793
  if (!e || !e.length)
29782
29794
  return !1;
29783
29795
  const i = mo(t);
29784
29796
  return i ? Uo(i, e) : !1;
29785
29797
  }
29786
- function GE(t, e) {
29798
+ function zE(t, e) {
29787
29799
  if (!e || !e.length)
29788
29800
  return !0;
29789
29801
  const i = mo(t);
29790
29802
  return i ? Uo(i, e) : !0;
29791
29803
  }
29792
- function zE(t) {
29804
+ function HE(t) {
29793
29805
  if (t.message)
29794
29806
  return [t.message];
29795
29807
  if (t.exception) {
@@ -29803,14 +29815,14 @@ function zE(t) {
29803
29815
  }
29804
29816
  return [];
29805
29817
  }
29806
- function HE(t) {
29818
+ function KE(t) {
29807
29819
  try {
29808
29820
  return t.exception.values[0].type === "SentryError";
29809
29821
  } catch (e) {
29810
29822
  }
29811
29823
  return !1;
29812
29824
  }
29813
- function KE(t = []) {
29825
+ function YE(t = []) {
29814
29826
  for (let e = t.length - 1; e >= 0; e--) {
29815
29827
  const i = t[e];
29816
29828
  if (i && i.filename !== "<anonymous>" && i.filename !== "[native code]")
@@ -29825,7 +29837,7 @@ function mo(t) {
29825
29837
  e = t.exception.values[0].stacktrace.frames;
29826
29838
  } catch (i) {
29827
29839
  }
29828
- return e ? KE(e) : null;
29840
+ return e ? YE(e) : null;
29829
29841
  } catch (e) {
29830
29842
  return (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.error(`Cannot extract url for event ${Bn(t)}`), null;
29831
29843
  }
@@ -29835,7 +29847,7 @@ let Jl = 0;
29835
29847
  function dh() {
29836
29848
  return Jl > 0;
29837
29849
  }
29838
- function YE() {
29850
+ function qE() {
29839
29851
  Jl++, setTimeout(() => {
29840
29852
  Jl--;
29841
29853
  });
@@ -29859,7 +29871,7 @@ function Ms(t, e = {}, i) {
29859
29871
  const l = a.map((g) => Ms(g, e));
29860
29872
  return t.apply(this, l);
29861
29873
  } catch (l) {
29862
- throw YE(), vE((g) => {
29874
+ throw qE(), vE((g) => {
29863
29875
  g.addEventProcessor((p) => (e.mechanism && (Kl(p, void 0, void 0), ua(p, e.mechanism)), p.extra = Qt(de({}, p.extra), {
29864
29876
  arguments: a
29865
29877
  }), p)), ah(l);
@@ -29885,11 +29897,11 @@ function Ms(t, e = {}, i) {
29885
29897
  function fh(t, e) {
29886
29898
  const i = gu(t, e), r = {
29887
29899
  type: e && e.name,
29888
- value: JE(e)
29900
+ value: QE(e)
29889
29901
  };
29890
29902
  return i.length && (r.stacktrace = { frames: i }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
29891
29903
  }
29892
- function qE(t, e, i, r) {
29904
+ function XE(t, e, i, r) {
29893
29905
  const l = Ii().getClient(), g = l && l.getOptions().normalizeDepth, p = {
29894
29906
  exception: {
29895
29907
  values: [
@@ -29917,32 +29929,32 @@ function xl(t, e) {
29917
29929
  };
29918
29930
  }
29919
29931
  function gu(t, e) {
29920
- const i = e.stacktrace || e.stack || "", r = ZE(e);
29932
+ const i = e.stacktrace || e.stack || "", r = JE(e);
29921
29933
  try {
29922
29934
  return t(i, r);
29923
29935
  } catch (a) {
29924
29936
  }
29925
29937
  return [];
29926
29938
  }
29927
- const XE = /Minified React error #\d+;/i;
29928
- function ZE(t) {
29939
+ const ZE = /Minified React error #\d+;/i;
29940
+ function JE(t) {
29929
29941
  if (t) {
29930
29942
  if (typeof t.framesToPop == "number")
29931
29943
  return t.framesToPop;
29932
- if (XE.test(t.message))
29944
+ if (ZE.test(t.message))
29933
29945
  return 1;
29934
29946
  }
29935
29947
  return 0;
29936
29948
  }
29937
- function JE(t) {
29949
+ function QE(t) {
29938
29950
  const e = t && t.message;
29939
29951
  return e ? e.error && typeof e.error.message == "string" ? e.error.message : e : "No error message";
29940
29952
  }
29941
- function QE(t, e, i, r) {
29953
+ function $E(t, e, i, r) {
29942
29954
  const a = i && i.syntheticException || void 0, l = vu(t, e, a, r);
29943
29955
  return ua(l), l.level = "error", i && i.event_id && (l.event_id = i.event_id), ss(l);
29944
29956
  }
29945
- function $E(t, e, i = "info", r, a) {
29957
+ function eA(t, e, i = "info", r, a) {
29946
29958
  const l = r && r.syntheticException || void 0, g = Ql(t, e, l, a);
29947
29959
  return g.level = i, r && r.event_id && (g.event_id = r.event_id), ss(g);
29948
29960
  }
@@ -29960,7 +29972,7 @@ function vu(t, e, i, r, a) {
29960
29972
  }
29961
29973
  return "code" in g && (l.tags = Qt(de({}, l.tags), { "DOMException.code": `${g.code}` })), l;
29962
29974
  }
29963
- return Uf(e) ? xl(t, e) : Os(e) || lu(e) ? (l = qE(t, e, i, a), ua(l, {
29975
+ return Uf(e) ? xl(t, e) : Os(e) || lu(e) ? (l = XE(t, e, i, a), ua(l, {
29964
29976
  synthetic: !0
29965
29977
  }), l) : (l = Ql(t, e, i, r), Kl(l, `${e}`, void 0), ua(l, {
29966
29978
  synthetic: !0
@@ -30018,7 +30030,7 @@ class da {
30018
30030
  * - History API
30019
30031
  */
30020
30032
  setupOnce() {
30021
- this.options.console && On("console", tA), this.options.dom && On("dom", eA(this.options.dom)), this.options.xhr && On("xhr", iA), this.options.fetch && On("fetch", rA), this.options.history && On("history", nA);
30033
+ this.options.console && On("console", iA), this.options.dom && On("dom", tA(this.options.dom)), this.options.xhr && On("xhr", rA), this.options.fetch && On("fetch", nA), this.options.history && On("history", sA);
30022
30034
  }
30023
30035
  /**
30024
30036
  * Adds a breadcrumb for Sentry events or transactions if this option is enabled.
@@ -30038,7 +30050,7 @@ class da {
30038
30050
  }
30039
30051
  }
30040
30052
  da.__initStatic();
30041
- function eA(t) {
30053
+ function tA(t) {
30042
30054
  function e(i) {
30043
30055
  let r, a = typeof t == "object" ? t.serializeAttribute : void 0, l = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
30044
30056
  l && l > io && ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
@@ -30046,7 +30058,7 @@ function eA(t) {
30046
30058
  ), l = io), typeof a == "string" && (a = [a]);
30047
30059
  try {
30048
30060
  const g = i.event;
30049
- r = sA(g) ? Wl(g.target, { keyAttrs: a, maxStringLength: l }) : Wl(g, { keyAttrs: a, maxStringLength: l });
30061
+ r = aA(g) ? Wl(g.target, { keyAttrs: a, maxStringLength: l }) : Wl(g, { keyAttrs: a, maxStringLength: l });
30050
30062
  } catch (g) {
30051
30063
  r = "<unknown>";
30052
30064
  }
@@ -30064,7 +30076,7 @@ function eA(t) {
30064
30076
  }
30065
30077
  return e;
30066
30078
  }
30067
- function tA(t) {
30079
+ function iA(t) {
30068
30080
  for (let i = 0; i < t.args.length; i++)
30069
30081
  if (t.args[i] === "ref=Ref<") {
30070
30082
  t.args[i + 1] = "viewRef";
@@ -30089,7 +30101,7 @@ function tA(t) {
30089
30101
  level: t.level
30090
30102
  });
30091
30103
  }
30092
- function iA(t) {
30104
+ function rA(t) {
30093
30105
  const { startTimestamp: e, endTimestamp: i } = t, r = t.xhr[$s];
30094
30106
  if (!e || !i || !r)
30095
30107
  return;
@@ -30112,7 +30124,7 @@ function iA(t) {
30112
30124
  T
30113
30125
  );
30114
30126
  }
30115
- function rA(t) {
30127
+ function nA(t) {
30116
30128
  const { startTimestamp: e, endTimestamp: i } = t;
30117
30129
  if (i && !(t.fetchData.url.match(/sentry_key/) && t.fetchData.method === "POST"))
30118
30130
  if (t.error) {
@@ -30150,7 +30162,7 @@ function rA(t) {
30150
30162
  );
30151
30163
  }
30152
30164
  }
30153
- function nA(t) {
30165
+ function sA(t) {
30154
30166
  let e = t.from, i = t.to;
30155
30167
  const r = El(Yt.location.href);
30156
30168
  let a = El(e);
@@ -30163,10 +30175,10 @@ function nA(t) {
30163
30175
  }
30164
30176
  });
30165
30177
  }
30166
- function sA(t) {
30178
+ function aA(t) {
30167
30179
  return t && !!t.target;
30168
30180
  }
30169
- function aA(t, {
30181
+ function oA(t, {
30170
30182
  metadata: e,
30171
30183
  tunnel: i,
30172
30184
  dsn: r
@@ -30179,15 +30191,15 @@ function aA(t, {
30179
30191
  name: e.sdk.name,
30180
30192
  version: e.sdk.version
30181
30193
  }
30182
- }), !!i && !!r && { dsn: Fo(r) }), l = oA(t);
30194
+ }), !!i && !!r && { dsn: Fo(r) }), l = lA(t);
30183
30195
  return Ta(a, [l]);
30184
30196
  }
30185
- function oA(t) {
30197
+ function lA(t) {
30186
30198
  return [{
30187
30199
  type: "user_report"
30188
30200
  }, t];
30189
30201
  }
30190
- class lA extends $n {
30202
+ class uA extends $n {
30191
30203
  /**
30192
30204
  * Creates a new Browser SDK instance.
30193
30205
  *
@@ -30212,13 +30224,13 @@ class lA extends $n {
30212
30224
  * @inheritDoc
30213
30225
  */
30214
30226
  eventFromException(e, i) {
30215
- return QE(this._options.stackParser, e, i, this._options.attachStacktrace);
30227
+ return $E(this._options.stackParser, e, i, this._options.attachStacktrace);
30216
30228
  }
30217
30229
  /**
30218
30230
  * @inheritDoc
30219
30231
  */
30220
30232
  eventFromMessage(e, i = "info", r) {
30221
- return $E(this._options.stackParser, e, i, r, this._options.attachStacktrace);
30233
+ return eA(this._options.stackParser, e, i, r, this._options.attachStacktrace);
30222
30234
  }
30223
30235
  /**
30224
30236
  * @inheritDoc
@@ -30235,7 +30247,7 @@ class lA extends $n {
30235
30247
  (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn("SDK not enabled, will not capture user feedback.");
30236
30248
  return;
30237
30249
  }
30238
- const i = aA(e, {
30250
+ const i = oA(e, {
30239
30251
  metadata: this.getSdkMetadata(),
30240
30252
  dsn: this.getDsn(),
30241
30253
  tunnel: this.getOptions().tunnel
@@ -30267,7 +30279,7 @@ class lA extends $n {
30267
30279
  }
30268
30280
  }
30269
30281
  let ea;
30270
- function uA() {
30282
+ function cA() {
30271
30283
  if (ea)
30272
30284
  return ea;
30273
30285
  if (zl(Yt.fetch))
@@ -30285,10 +30297,10 @@ function uA() {
30285
30297
  }
30286
30298
  return ea = e.bind(Yt);
30287
30299
  }
30288
- function cA() {
30300
+ function dA() {
30289
30301
  ea = void 0;
30290
30302
  }
30291
- function dA(t, e = uA()) {
30303
+ function fA(t, e = cA()) {
30292
30304
  let i = 0, r = 0;
30293
30305
  function a(l) {
30294
30306
  const g = l.body.length;
@@ -30320,18 +30332,18 @@ function dA(t, e = uA()) {
30320
30332
  }
30321
30333
  }));
30322
30334
  } catch (_) {
30323
- return cA(), i -= g, r--, go(_);
30335
+ return dA(), i -= g, r--, go(_);
30324
30336
  }
30325
30337
  }
30326
30338
  return ch(t, a);
30327
30339
  }
30328
- const fA = 4;
30329
- function hA(t) {
30340
+ const hA = 4;
30341
+ function gA(t) {
30330
30342
  function e(i) {
30331
30343
  return new $i((r, a) => {
30332
30344
  const l = new XMLHttpRequest();
30333
30345
  l.onerror = a, l.onreadystatechange = () => {
30334
- l.readyState === fA && r({
30346
+ l.readyState === hA && r({
30335
30347
  statusCode: l.status,
30336
30348
  headers: {
30337
30349
  "x-sentry-rate-limits": l.getResponseHeader("X-Sentry-Rate-Limits"),
@@ -30346,7 +30358,7 @@ function hA(t) {
30346
30358
  }
30347
30359
  return ch(t, e);
30348
30360
  }
30349
- const Go = "?", gA = 30, vA = 40, mA = 50;
30361
+ const Go = "?", vA = 30, mA = 40, pA = 50;
30350
30362
  function mu(t, e, i, r) {
30351
30363
  const a = {
30352
30364
  filename: t,
@@ -30356,30 +30368,30 @@ function mu(t, e, i, r) {
30356
30368
  };
30357
30369
  return i !== void 0 && (a.lineno = i), r !== void 0 && (a.colno = r), a;
30358
30370
  }
30359
- const pA = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, _A = /\((\S*)(?::(\d+))(?::(\d+))\)/, yA = (t) => {
30360
- const e = pA.exec(t);
30371
+ const _A = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, yA = /\((\S*)(?::(\d+))(?::(\d+))\)/, bA = (t) => {
30372
+ const e = _A.exec(t);
30361
30373
  if (e) {
30362
30374
  if (e[2] && e[2].indexOf("eval") === 0) {
30363
- const l = _A.exec(e[2]);
30375
+ const l = yA.exec(e[2]);
30364
30376
  l && (e[2] = l[1], e[3] = l[2], e[4] = l[3]);
30365
30377
  }
30366
30378
  const [r, a] = gh(e[1] || Go, e[2]);
30367
30379
  return mu(a, r, e[3] ? +e[3] : void 0, e[4] ? +e[4] : void 0);
30368
30380
  }
30369
- }, bA = [gA, yA], SA = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, TA = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, kA = (t) => {
30370
- const e = SA.exec(t);
30381
+ }, SA = [vA, bA], TA = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, kA = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, EA = (t) => {
30382
+ const e = TA.exec(t);
30371
30383
  if (e) {
30372
30384
  if (e[3] && e[3].indexOf(" > eval") > -1) {
30373
- const l = TA.exec(e[3]);
30385
+ const l = kA.exec(e[3]);
30374
30386
  l && (e[1] = e[1] || "eval", e[3] = l[1], e[4] = l[2], e[5] = "");
30375
30387
  }
30376
30388
  let r = e[3], a = e[1] || Go;
30377
30389
  return [a, r] = gh(a, r), mu(r, a, e[4] ? +e[4] : void 0, e[5] ? +e[5] : void 0);
30378
30390
  }
30379
- }, EA = [mA, kA], AA = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i, xA = (t) => {
30380
- const e = AA.exec(t);
30391
+ }, AA = [pA, EA], xA = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i, PA = (t) => {
30392
+ const e = xA.exec(t);
30381
30393
  return e ? mu(e[2], e[1] || Go, +e[3], e[4] ? +e[4] : void 0) : void 0;
30382
- }, PA = [vA, xA], wA = [bA, EA, PA], CA = Yf(...wA), gh = (t, e) => {
30394
+ }, wA = [mA, PA], CA = [SA, AA, wA], LA = Yf(...CA), gh = (t, e) => {
30383
30395
  const i = t.indexOf("safari-extension") !== -1, r = t.indexOf("safari-web-extension") !== -1;
30384
30396
  return i || r ? [
30385
30397
  t.indexOf("@") !== -1 ? t.split("@")[0] : Go,
@@ -30406,8 +30418,8 @@ class Fn {
30406
30418
  */
30407
30419
  __init2() {
30408
30420
  this._installFunc = {
30409
- onerror: LA,
30410
- onunhandledrejection: IA
30421
+ onerror: IA,
30422
+ onunhandledrejection: RA
30411
30423
  };
30412
30424
  }
30413
30425
  /** JSDoc */
@@ -30425,12 +30437,12 @@ class Fn {
30425
30437
  const e = this._options;
30426
30438
  for (const i in e) {
30427
30439
  const r = this._installFunc[i];
30428
- r && e[i] && (OA(i), r(), this._installFunc[i] = void 0);
30440
+ r && e[i] && (BA(i), r(), this._installFunc[i] = void 0);
30429
30441
  }
30430
30442
  }
30431
30443
  }
30432
30444
  Fn.__initStatic();
30433
- function LA() {
30445
+ function IA() {
30434
30446
  On(
30435
30447
  "error",
30436
30448
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -30441,7 +30453,7 @@ function LA() {
30441
30453
  const { msg: a, url: l, line: g, column: p, error: _ } = t;
30442
30454
  if (dh() || _ && _.__sentry_own_request__)
30443
30455
  return;
30444
- const T = _ === void 0 && ns(a) ? DA(a, l, g, p) : vh(
30456
+ const T = _ === void 0 && ns(a) ? OA(a, l, g, p) : vh(
30445
30457
  vu(i, _ || a, void 0, r, !1),
30446
30458
  l,
30447
30459
  g,
@@ -30451,7 +30463,7 @@ function LA() {
30451
30463
  }
30452
30464
  );
30453
30465
  }
30454
- function IA() {
30466
+ function RA() {
30455
30467
  On(
30456
30468
  "unhandledrejection",
30457
30469
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -30466,12 +30478,12 @@ function IA() {
30466
30478
  }
30467
30479
  if (dh() || a && a.__sentry_own_request__)
30468
30480
  return !0;
30469
- const l = Wf(a) ? RA(a) : vu(i, a, void 0, r, !0);
30481
+ const l = Wf(a) ? DA(a) : vu(i, a, void 0, r, !0);
30470
30482
  l.level = "error", mh(e, a, l, "onunhandledrejection");
30471
30483
  }
30472
30484
  );
30473
30485
  }
30474
- function RA(t) {
30486
+ function DA(t) {
30475
30487
  return {
30476
30488
  exception: {
30477
30489
  values: [
@@ -30484,7 +30496,7 @@ function RA(t) {
30484
30496
  }
30485
30497
  };
30486
30498
  }
30487
- function DA(t, e, i, r) {
30499
+ function OA(t, e, i, r) {
30488
30500
  const a = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
30489
30501
  let l = Vf(t) ? t.message : t, g = "Error";
30490
30502
  const p = l.match(a);
@@ -30509,7 +30521,7 @@ function vh(t, e, i, r) {
30509
30521
  lineno: k
30510
30522
  }), t;
30511
30523
  }
30512
- function OA(t) {
30524
+ function BA(t) {
30513
30525
  (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.log(`Global Handler attached: ${t}`);
30514
30526
  }
30515
30527
  function mh(t, e, i, r) {
@@ -30527,7 +30539,7 @@ function ph() {
30527
30539
  };
30528
30540
  return [t, i.stackParser, i.attachStacktrace];
30529
30541
  }
30530
- const BA = [
30542
+ const MA = [
30531
30543
  "EventTarget",
30532
30544
  "Window",
30533
30545
  "Node",
@@ -30589,9 +30601,9 @@ class fa {
30589
30601
  * and provide better metadata.
30590
30602
  */
30591
30603
  setupOnce() {
30592
- this._options.setTimeout && Hi(Yt, "setTimeout", Ud), this._options.setInterval && Hi(Yt, "setInterval", Ud), this._options.requestAnimationFrame && Hi(Yt, "requestAnimationFrame", MA), this._options.XMLHttpRequest && "XMLHttpRequest" in Yt && Hi(XMLHttpRequest.prototype, "send", NA);
30604
+ this._options.setTimeout && Hi(Yt, "setTimeout", Ud), this._options.setInterval && Hi(Yt, "setInterval", Ud), this._options.requestAnimationFrame && Hi(Yt, "requestAnimationFrame", NA), this._options.XMLHttpRequest && "XMLHttpRequest" in Yt && Hi(XMLHttpRequest.prototype, "send", FA);
30593
30605
  const e = this._options.eventTarget;
30594
- e && (Array.isArray(e) ? e : BA).forEach(FA);
30606
+ e && (Array.isArray(e) ? e : MA).forEach(UA);
30595
30607
  }
30596
30608
  }
30597
30609
  fa.__initStatic();
@@ -30607,7 +30619,7 @@ function Ud(t) {
30607
30619
  }), t.apply(this, e);
30608
30620
  };
30609
30621
  }
30610
- function MA(t) {
30622
+ function NA(t) {
30611
30623
  return function(e) {
30612
30624
  return t.apply(this, [
30613
30625
  Ms(e, {
@@ -30623,7 +30635,7 @@ function MA(t) {
30623
30635
  ]);
30624
30636
  };
30625
30637
  }
30626
- function NA(t) {
30638
+ function FA(t) {
30627
30639
  return function(...e) {
30628
30640
  const i = this;
30629
30641
  return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((a) => {
@@ -30643,7 +30655,7 @@ function NA(t) {
30643
30655
  }), t.apply(this, e);
30644
30656
  };
30645
30657
  }
30646
- function FA(t) {
30658
+ function UA(t) {
30647
30659
  const e = Yt, i = e[t] && e[t].prototype;
30648
30660
  !i || !i.hasOwnProperty || !i.hasOwnProperty("addEventListener") || (Hi(i, "addEventListener", function(r) {
30649
30661
  return function(a, l, g) {
@@ -30694,7 +30706,7 @@ function FA(t) {
30694
30706
  }
30695
30707
  ));
30696
30708
  }
30697
- const UA = "cause", VA = 5;
30709
+ const VA = "cause", WA = 5;
30698
30710
  class Is {
30699
30711
  /**
30700
30712
  * @inheritDoc
@@ -30718,7 +30730,7 @@ class Is {
30718
30730
  * @inheritDoc
30719
30731
  */
30720
30732
  constructor(e = {}) {
30721
- Is.prototype.__init.call(this), this._key = e.key || UA, this._limit = e.limit || VA;
30733
+ Is.prototype.__init.call(this), this._key = e.key || VA, this._limit = e.limit || WA;
30722
30734
  }
30723
30735
  /**
30724
30736
  * @inheritDoc
@@ -30727,12 +30739,12 @@ class Is {
30727
30739
  const e = Ii().getClient();
30728
30740
  e && Wo((i, r) => {
30729
30741
  const a = Ii().getIntegration(Is);
30730
- return a ? WA(e.getOptions().stackParser, a._key, a._limit, i, r) : i;
30742
+ return a ? jA(e.getOptions().stackParser, a._key, a._limit, i, r) : i;
30731
30743
  });
30732
30744
  }
30733
30745
  }
30734
30746
  Is.__initStatic();
30735
- function WA(t, e, i, r, a) {
30747
+ function jA(t, e, i, r, a) {
30736
30748
  if (!r.exception || !r.exception.values || !a || !Gs(a.originalException, Error))
30737
30749
  return r;
30738
30750
  const l = _h(t, i, a.originalException, e);
@@ -30805,7 +30817,7 @@ class Ds {
30805
30817
  const l = i().getIntegration(Ds);
30806
30818
  if (l) {
30807
30819
  try {
30808
- if (jA(a, l._previousEvent))
30820
+ if (GA(a, l._previousEvent))
30809
30821
  return (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn("Event dropped due to being a duplicate of previously captured event."), null;
30810
30822
  } catch (g) {
30811
30823
  return l._previousEvent = a;
@@ -30818,14 +30830,14 @@ class Ds {
30818
30830
  }
30819
30831
  }
30820
30832
  Ds.__initStatic();
30821
- function jA(t, e) {
30822
- return e ? !!(GA(t, e) || zA(t, e)) : !1;
30823
- }
30824
30833
  function GA(t, e) {
30834
+ return e ? !!(zA(t, e) || HA(t, e)) : !1;
30835
+ }
30836
+ function zA(t, e) {
30825
30837
  const i = t.message, r = e.message;
30826
30838
  return !(!i && !r || i && !r || !i && r || i !== r || !bh(t, e) || !yh(t, e));
30827
30839
  }
30828
- function zA(t, e) {
30840
+ function HA(t, e) {
30829
30841
  const i = Vd(e), r = Vd(t);
30830
30842
  return !(!i || !r || i.type !== r.type || i.value !== r.value || !bh(t, e) || !yh(t, e));
30831
30843
  }
@@ -30867,7 +30879,7 @@ function Wd(t) {
30867
30879
  return;
30868
30880
  }
30869
30881
  }
30870
- const HA = [
30882
+ const KA = [
30871
30883
  new Ls(),
30872
30884
  new ca(),
30873
30885
  new fa(),
@@ -30877,19 +30889,19 @@ const HA = [
30877
30889
  new Ds(),
30878
30890
  new Rs()
30879
30891
  ];
30880
- function KA(t = {}) {
30881
- t.defaultIntegrations === void 0 && (t.defaultIntegrations = HA), t.release === void 0 && (typeof __SENTRY_RELEASE__ == "string" && (t.release = __SENTRY_RELEASE__), Yt.SENTRY_RELEASE && Yt.SENTRY_RELEASE.id && (t.release = Yt.SENTRY_RELEASE.id)), t.autoSessionTracking === void 0 && (t.autoSessionTracking = !0), t.sendClientReports === void 0 && (t.sendClientReports = !0);
30892
+ function YA(t = {}) {
30893
+ t.defaultIntegrations === void 0 && (t.defaultIntegrations = KA), t.release === void 0 && (typeof __SENTRY_RELEASE__ == "string" && (t.release = __SENTRY_RELEASE__), Yt.SENTRY_RELEASE && Yt.SENTRY_RELEASE.id && (t.release = Yt.SENTRY_RELEASE.id)), t.autoSessionTracking === void 0 && (t.autoSessionTracking = !0), t.sendClientReports === void 0 && (t.sendClientReports = !0);
30882
30894
  const e = Qt(de({}, t), {
30883
- stackParser: b3(t.stackParser || CA),
30895
+ stackParser: b3(t.stackParser || LA),
30884
30896
  integrations: AE(t),
30885
- transport: t.transport || (qf() ? dA : hA)
30897
+ transport: t.transport || (qf() ? fA : gA)
30886
30898
  });
30887
- BE(lA, e), t.autoSessionTracking && YA();
30899
+ BE(uA, e), t.autoSessionTracking && qA();
30888
30900
  }
30889
30901
  function jd(t) {
30890
30902
  t.startSession({ ignoreDuration: !0 }), t.captureSession();
30891
30903
  }
30892
- function YA() {
30904
+ function qA() {
30893
30905
  if (typeof Yt.document == "undefined") {
30894
30906
  (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
30895
30907
  return;
@@ -30899,7 +30911,7 @@ function YA() {
30899
30911
  e === void 0 || e === i || jd(Ii());
30900
30912
  }));
30901
30913
  }
30902
- function qA(t) {
30914
+ function XA(t) {
30903
30915
  t._metadata = t._metadata || {}, t._metadata.sdk = t._metadata.sdk || {
30904
30916
  name: "sentry.javascript.svelte",
30905
30917
  packages: [
@@ -30909,33 +30921,33 @@ function qA(t) {
30909
30921
  }
30910
30922
  ],
30911
30923
  version: vo
30912
- }, KA(t), XA();
30924
+ }, YA(t), ZA();
30913
30925
  }
30914
- function XA() {
30926
+ function ZA() {
30915
30927
  let t;
30916
- const e = (i) => (t === void 0 && (t = ZA()), t && (i.modules = de({
30928
+ const e = (i) => (t === void 0 && (t = JA()), t && (i.modules = de({
30917
30929
  svelteKit: "latest"
30918
30930
  }, i.modules)), i);
30919
30931
  e.id = "svelteKitProcessor", Wo(e);
30920
30932
  }
30921
- function ZA() {
30933
+ function JA() {
30922
30934
  return c3("div#svelte-announcer") !== null;
30923
30935
  }
30924
30936
  var ka = "<unknown>";
30925
- function JA(t) {
30937
+ function QA(t) {
30926
30938
  var e = t.split(`
30927
30939
  `);
30928
30940
  return e.reduce(function(i, r) {
30929
- var a = e6(r) || i6(r) || s6(r) || u6(r) || o6(r);
30941
+ var a = t6(r) || r6(r) || a6(r) || c6(r) || l6(r);
30930
30942
  return a && i.push(a), i;
30931
30943
  }, []);
30932
30944
  }
30933
- var QA = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, $A = /\((\S*)(?::(\d+))(?::(\d+))\)/;
30934
- function e6(t) {
30935
- var e = QA.exec(t);
30945
+ var $A = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, e6 = /\((\S*)(?::(\d+))(?::(\d+))\)/;
30946
+ function t6(t) {
30947
+ var e = $A.exec(t);
30936
30948
  if (!e)
30937
30949
  return null;
30938
- var i = e[2] && e[2].indexOf("native") === 0, r = e[2] && e[2].indexOf("eval") === 0, a = $A.exec(e[2]);
30950
+ var i = e[2] && e[2].indexOf("native") === 0, r = e[2] && e[2].indexOf("eval") === 0, a = e6.exec(e[2]);
30939
30951
  return r && a != null && (e[2] = a[1], e[3] = a[2], e[4] = a[3]), {
30940
30952
  file: i ? null : e[2],
30941
30953
  methodName: e[1] || ka,
@@ -30944,9 +30956,9 @@ function e6(t) {
30944
30956
  column: e[4] ? +e[4] : null
30945
30957
  };
30946
30958
  }
30947
- var t6 = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
30948
- function i6(t) {
30949
- var e = t6.exec(t);
30959
+ var i6 = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
30960
+ function r6(t) {
30961
+ var e = i6.exec(t);
30950
30962
  return e ? {
30951
30963
  file: e[2],
30952
30964
  methodName: e[1] || ka,
@@ -30955,12 +30967,12 @@ function i6(t) {
30955
30967
  column: e[4] ? +e[4] : null
30956
30968
  } : null;
30957
30969
  }
30958
- var r6 = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, n6 = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
30959
- function s6(t) {
30960
- var e = r6.exec(t);
30970
+ var n6 = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, s6 = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
30971
+ function a6(t) {
30972
+ var e = n6.exec(t);
30961
30973
  if (!e)
30962
30974
  return null;
30963
- var i = e[3] && e[3].indexOf(" > eval") > -1, r = n6.exec(e[3]);
30975
+ var i = e[3] && e[3].indexOf(" > eval") > -1, r = s6.exec(e[3]);
30964
30976
  return i && r != null && (e[3] = r[1], e[4] = r[2], e[5] = null), {
30965
30977
  file: e[3],
30966
30978
  methodName: e[1] || ka,
@@ -30969,9 +30981,9 @@ function s6(t) {
30969
30981
  column: e[5] ? +e[5] : null
30970
30982
  };
30971
30983
  }
30972
- var a6 = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
30973
- function o6(t) {
30974
- var e = a6.exec(t);
30984
+ var o6 = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
30985
+ function l6(t) {
30986
+ var e = o6.exec(t);
30975
30987
  return e ? {
30976
30988
  file: e[3],
30977
30989
  methodName: e[1] || ka,
@@ -30980,9 +30992,9 @@ function o6(t) {
30980
30992
  column: e[5] ? +e[5] : null
30981
30993
  } : null;
30982
30994
  }
30983
- var l6 = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
30984
- function u6(t) {
30985
- var e = l6.exec(t);
30995
+ var u6 = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
30996
+ function c6(t) {
30997
+ var e = u6.exec(t);
30986
30998
  return e ? {
30987
30999
  file: e[2],
30988
31000
  methodName: e[1] || ka,
@@ -30992,12 +31004,12 @@ function u6(t) {
30992
31004
  } : null;
30993
31005
  }
30994
31006
  let Gd = !1;
30995
- const c6 = ({ captureErrors: t }) => {
31007
+ const d6 = ({ captureErrors: t }) => {
30996
31008
  if (!(t !== !1) || Gd)
30997
31009
  return;
30998
31010
  Gd = !0;
30999
31011
  const i = zd(new Error()), r = i == null ? void 0 : i.match(/initializeSentry/);
31000
- qA(Qt(de({}, i ? {} : { defaultIntegrations: !1 }), {
31012
+ XA(Qt(de({}, i ? {} : { defaultIntegrations: !1 }), {
31001
31013
  // See the message below.
31002
31014
  dsn: "https://ea2f0f2a070b4934994dc8543b8d16e1@o271781.ingest.sentry.io/4504853792882688",
31003
31015
  environment: r ? "development" : "production",
@@ -31006,7 +31018,7 @@ const c6 = ({ captureErrors: t }) => {
31006
31018
  var C;
31007
31019
  const _ = zd(g) === i, T = (C = g == null ? void 0 : g.message) == null ? void 0 : C.match(/request was interrupted/);
31008
31020
  if (r || _ || T)
31009
- return d6(l);
31021
+ return f6(l);
31010
31022
  }
31011
31023
  })), !i && ah(new Error([
31012
31024
  "Unable to determine the filename of the BeyondWords player script.",
@@ -31016,8 +31028,8 @@ const c6 = ({ captureErrors: t }) => {
31016
31028
  `)));
31017
31029
  }, zd = (t) => {
31018
31030
  var e;
31019
- return (e = JA((t == null ? void 0 : t.stack) || "")[0]) == null ? void 0 : e.file;
31020
- }, d6 = (t) => {
31031
+ return (e = QA((t == null ? void 0 : t.stack) || "")[0]) == null ? void 0 : e.file;
31032
+ }, f6 = (t) => {
31021
31033
  var i, r;
31022
31034
  const e = ((r = (i = window.BeyondWords) == null ? void 0 : i.Player) == null ? void 0 : r.instances()) || [];
31023
31035
  for (const [a, l] of e.entries()) {
@@ -31027,13 +31039,13 @@ const c6 = ({ captureErrors: t }) => {
31027
31039
  return t;
31028
31040
  };
31029
31041
  let Hd = !1;
31030
- const f6 = () => {
31031
- Hd || (Hd = !0, addEventListener("mousedown", h6), addEventListener("click", g6), addEventListener("mousemove", v6));
31032
- }, h6 = (t) => {
31033
- kh = t.pageX, Eh = t.pageY;
31042
+ const h6 = () => {
31043
+ Hd || (Hd = !0, addEventListener("mousedown", g6), addEventListener("click", v6), addEventListener("mousemove", m6));
31034
31044
  }, g6 = (t) => {
31045
+ kh = t.pageX, Eh = t.pageY;
31046
+ }, v6 = (t) => {
31035
31047
  var i;
31036
- if (t.defaultPrevented || m6(t) || t.button !== 0)
31048
+ if (t.defaultPrevented || p6(t) || t.button !== 0)
31037
31049
  return;
31038
31050
  const e = (i = Sh(t.target)) == null ? void 0 : i.getAttribute(Un);
31039
31051
  if (e)
@@ -31049,12 +31061,12 @@ const f6 = () => {
31049
31061
  segmentIndex: g
31050
31062
  }));
31051
31063
  }
31052
- }, v6 = (t) => {
31064
+ }, m6 = (t) => {
31053
31065
  var r;
31054
31066
  const e = document.elementFromPoint(t.clientX, t.clientY), i = (r = Sh(e)) == null ? void 0 : r.getAttribute(Un);
31055
31067
  for (const [a, l] of BeyondWords.Player.instances().entries()) {
31056
31068
  const { segment: g, contentIndex: p, segmentIndex: _ } = Th(l, i);
31057
- p6(a, p, _) && l.onEvent(rt({
31069
+ _6(a, p, _) && l.onEvent(rt({
31058
31070
  type: "HoveredSegmentUpdated",
31059
31071
  description: "The user hovered over a different segment in the article.",
31060
31072
  initiatedBy: "user",
@@ -31086,10 +31098,10 @@ const f6 = () => {
31086
31098
  return i;
31087
31099
  };
31088
31100
  let kh, Eh;
31089
- const m6 = (t) => {
31101
+ const p6 = (t) => {
31090
31102
  const e = t.pageX - kh, i = t.pageY - Eh;
31091
31103
  return Math.sqrt(e * e + i * i) > 5;
31092
- }, ro = {}, p6 = (t, e, i) => {
31104
+ }, ro = {}, _6 = (t, e, i) => {
31093
31105
  ro[t] || (ro[t] = {});
31094
31106
  const r = ro[t];
31095
31107
  return r.contentIndex === e && r.segmentIndex === i ? !1 : (r.contentIndex = e, r.segmentIndex = i, !0);
@@ -31105,22 +31117,22 @@ class Pl {
31105
31117
  window.gtag("event", e, Qt(de({}, i), { send_to: this.analyticsSink }));
31106
31118
  }
31107
31119
  }
31108
- const _6 = (t, e) => {
31109
- const i = y6(t, e.type);
31120
+ const y6 = (t, e) => {
31121
+ const i = b6(t, e.type);
31110
31122
  if (!i)
31111
31123
  return;
31112
- const r = b6(t, i);
31113
- ov(r), t.analyticsUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsUrl).sendToCustomAnalytics(r), t.analyticsCustomUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsCustomUrl).sendToCustomAnalytics(r), t.analyticsTag && new Pl(t.analyticsTag).sendToGoogleAnalytics(S6(r), r);
31114
- }, y6 = (t, e) => {
31124
+ const r = S6(t, i);
31125
+ ov(r), t.analyticsUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsUrl).sendToCustomAnalytics(r), t.analyticsCustomUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsCustomUrl).sendToCustomAnalytics(r), t.analyticsTag && new Pl(t.analyticsTag).sendToGoogleAnalytics(T6(r), r);
31126
+ }, b6 = (t, e) => {
31115
31127
  if (!t.listenSessionId && t.duration)
31116
31128
  return "load";
31117
31129
  if (e === "PlaybackPlaying" && (t.emitPlayEvent = "CurrentTimeUpdated"), e === t.emitPlayEvent)
31118
31130
  return t.emitPlayEvent = null, "play";
31119
- if (e === "CurrentTimeUpdated" && T6(t))
31131
+ if (e === "CurrentTimeUpdated" && k6(t))
31120
31132
  return "play_progress";
31121
31133
  if (e.startsWith("PressedAdvert"))
31122
31134
  return "ad_link_click";
31123
- }, b6 = (t, e) => {
31135
+ }, S6 = (t, e) => {
31124
31136
  var g, p, _;
31125
31137
  t.listenSessionId || (t.listenSessionId = lo()), t.sessionCreatedAt || (t.sessionCreatedAt = Date.now());
31126
31138
  const i = t.analyticsConsent === "without-local-storage";
@@ -31128,7 +31140,7 @@ const _6 = (t, e) => {
31128
31140
  const r = t.adverts[t.advertIndex], a = t.content[t.contentIndex], l = t.currentTime / t.duration * 100;
31129
31141
  return {
31130
31142
  event_type: e,
31131
- device_type: k6(),
31143
+ device_type: E6(),
31132
31144
  media_type: r ? "ad" : "content",
31133
31145
  project_id: t.projectId,
31134
31146
  content_id: a == null ? void 0 : a.id,
@@ -31148,7 +31160,7 @@ const _6 = (t, e) => {
31148
31160
  player_version: "1",
31149
31161
  player_npm_version: eu
31150
31162
  };
31151
- }, S6 = ({ event_type: t, listen_length_percent: e }) => {
31163
+ }, T6 = ({ event_type: t, listen_length_percent: e }) => {
31152
31164
  const i = Math.floor(e / 10) * 10;
31153
31165
  if (t === "load")
31154
31166
  return "Load";
@@ -31160,20 +31172,20 @@ const _6 = (t, e) => {
31160
31172
  return `${i}% listened`;
31161
31173
  if (t === "ad_link_click")
31162
31174
  return "Advert Click";
31163
- }, T6 = (t) => {
31175
+ }, k6 = (t) => {
31164
31176
  const e = t.prevPercentage + 10;
31165
31177
  if (t.currentTime / t.duration * 100 >= e)
31166
31178
  return t.prevPercentage = e, !0;
31167
- }, k6 = () => Kd(499) ? "phone" : Kd(999) ? "tablet" : "desktop", Kd = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches;
31179
+ }, E6 = () => Kd(499) ? "phone" : Kd(999) ? "tablet" : "desktop", Kd = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches;
31168
31180
  var Mn;
31169
31181
  const Dn = class extends b2 {
31170
31182
  constructor(r) {
31171
31183
  var a = r, { target: e } = a, i = hl(a, ["target"]);
31172
- t3(), c6(i), f6();
31184
+ t3(), d6(i), h6();
31173
31185
  const { newTarget: l, showUserInterface: g } = d2(e);
31174
31186
  l.classList.add("beyondwords-player", "bwp");
31175
31187
  const p = new e3(null, Dn);
31176
- p.addEventListener("<any>", (T) => _6(this, T));
31188
+ p.addEventListener("<any>", (T) => y6(this, T));
31177
31189
  const _ = de({ showUserInterface: g }, i);
31178
31190
  super({ target: l, props: Qt(de({ controller: p }, _), { initialProps: _ }) }), p.player = this, Ir(Dn, Mn).push(this);
31179
31191
  }
@@ -31206,8 +31218,8 @@ let sa = Dn;
31206
31218
  Mn = new WeakMap(), ht(sa, Mn, []);
31207
31219
  var Yd;
31208
31220
  typeof window != "undefined" && (window.BeyondWords || (window.BeyondWords = {}), (Yd = window.BeyondWords).Player || (Yd.Player = sa));
31209
- const P6 = { Player: sa };
31221
+ const w6 = { Player: sa };
31210
31222
  export {
31211
- P6 as default
31223
+ w6 as default
31212
31224
  };
31213
31225
  //# sourceMappingURL=es.js.map