@streamlayer/react 1.24.6 → 1.24.8-pre.11da316

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.
Files changed (167) hide show
  1. package/lib/app/advertisement.d.ts +5 -0
  2. package/lib/cjs/advertisement.js +19657 -203
  3. package/lib/cjs/auth.js +4459 -1
  4. package/lib/cjs/bet-pack.js +15728 -1
  5. package/lib/cjs/index.js +19469 -1
  6. package/lib/cjs/insight.js +13571 -1
  7. package/lib/cjs/masters.js +20735 -1
  8. package/lib/cjs/notification.js +13118 -1
  9. package/lib/cjs/package.json +1 -0
  10. package/lib/cjs/pause-ad.js +8390 -1
  11. package/lib/cjs/points.js +7220 -1
  12. package/lib/cjs/polyfills.js +69 -0
  13. package/lib/cjs/polymarket.js +16395 -14
  14. package/lib/cjs/style.css +1 -0
  15. package/lib/cjs/useStreamLayerApp.js +4705 -1
  16. package/lib/dist/cjs/index.js +20735 -1
  17. package/lib/dist/es/index.js +20708 -10
  18. package/lib/dist/es/polyfills.js +92 -0
  19. package/lib/es/Question.js +75 -72
  20. package/lib/es/advertisement.js +9223 -8168
  21. package/lib/es/analytics.js +35 -31
  22. package/lib/es/auth.js +1 -1
  23. package/lib/es/bet-pack.js +1 -1
  24. package/lib/es/feature.js +60 -56
  25. package/lib/{classic/es/hooks-n9ax4LRT.js → es/hooks-42q2i9Iw.js} +25 -23
  26. package/lib/{dist/es/index-CfSdnrfA.js → es/index-sWgEw6jy.js} +1 -1
  27. package/lib/es/index.js +1 -1
  28. package/lib/es/index10.js +181 -7
  29. package/lib/es/index11.js +371 -181
  30. package/lib/es/index12.js +116 -128
  31. package/lib/es/index13.js +101 -97
  32. package/lib/es/index14.js +14 -14
  33. package/lib/es/index15.js +384 -414
  34. package/lib/es/index16.js +380 -382
  35. package/lib/es/index2.js +53 -56
  36. package/lib/es/index3.js +34 -4
  37. package/lib/es/index4.js +2 -2
  38. package/lib/es/index5.js +272 -16
  39. package/lib/es/index6.js +1 -1
  40. package/lib/es/index8.js +8 -282
  41. package/lib/es/index9.js +133 -75
  42. package/lib/es/insight.js +2 -2
  43. package/lib/es/masters.js +1 -1
  44. package/lib/es/masters2.js +34 -35
  45. package/lib/es/notification.js +28 -28
  46. package/lib/es/pause-ad.js +20 -20
  47. package/lib/es/points.js +9 -9
  48. package/lib/es/polymarket.js +38 -38
  49. package/lib/es/storage.js +19 -19
  50. package/lib/es/style.css +1 -0
  51. package/lib/es/useStreamLayerApp.js +1 -1
  52. package/lib/es/useStreamLayerApp2.js +6756 -5470
  53. package/lib/es/utils.js +86 -41
  54. package/lib/source.css +1 -120
  55. package/package.json +99 -83
  56. package/lib/cjs/Question.js +0 -1
  57. package/lib/cjs/analytics.js +0 -1
  58. package/lib/cjs/feature.js +0 -1
  59. package/lib/cjs/gamification-feature.js +0 -1
  60. package/lib/cjs/gamification-feature2.js +0 -1
  61. package/lib/cjs/hooks-n9ax4LRT.js +0 -1
  62. package/lib/cjs/index-CfSdnrfA.js +0 -5
  63. package/lib/cjs/index10.js +0 -1
  64. package/lib/cjs/index11.js +0 -1
  65. package/lib/cjs/index12.js +0 -1
  66. package/lib/cjs/index13.js +0 -4
  67. package/lib/cjs/index14.js +0 -1
  68. package/lib/cjs/index15.js +0 -1
  69. package/lib/cjs/index16.js +0 -5
  70. package/lib/cjs/index2.js +0 -1
  71. package/lib/cjs/index3.js +0 -1
  72. package/lib/cjs/index4.js +0 -5
  73. package/lib/cjs/index5.js +0 -1
  74. package/lib/cjs/index6.js +0 -1
  75. package/lib/cjs/index7.js +0 -1
  76. package/lib/cjs/index8.js +0 -1
  77. package/lib/cjs/index9.js +0 -7
  78. package/lib/cjs/masters2.js +0 -8
  79. package/lib/cjs/storage.js +0 -1
  80. package/lib/cjs/theme.js +0 -1
  81. package/lib/cjs/useStreamLayerApp2.js +0 -17
  82. package/lib/cjs/utils.js +0 -47
  83. package/lib/classic/app/advertisement.d.ts +0 -19
  84. package/lib/classic/app/app.d.ts +0 -23
  85. package/lib/classic/app/auth.d.ts +0 -4
  86. package/lib/classic/app/bet-pack.d.ts +0 -10
  87. package/lib/classic/app/insight.d.ts +0 -13
  88. package/lib/classic/app/masters.d.ts +0 -19
  89. package/lib/classic/app/notification.d.ts +0 -5
  90. package/lib/classic/app/pause-ad.d.ts +0 -27
  91. package/lib/classic/app/points.d.ts +0 -3
  92. package/lib/classic/app/polymarket.d.ts +0 -7
  93. package/lib/classic/app/useStreamLayerApp.d.ts +0 -1
  94. package/lib/classic/cjs/Question.js +0 -1
  95. package/lib/classic/cjs/advertisement.js +0 -203
  96. package/lib/classic/cjs/analytics.js +0 -1
  97. package/lib/classic/cjs/auth.js +0 -1
  98. package/lib/classic/cjs/bet-pack.js +0 -5
  99. package/lib/classic/cjs/feature.js +0 -1
  100. package/lib/classic/cjs/gamification-feature.js +0 -1
  101. package/lib/classic/cjs/hooks-n9ax4LRT.js +0 -1
  102. package/lib/classic/cjs/index-CfSdnrfA.js +0 -5
  103. package/lib/classic/cjs/index.js +0 -1
  104. package/lib/classic/cjs/index10.js +0 -1
  105. package/lib/classic/cjs/index11.js +0 -1
  106. package/lib/classic/cjs/index12.js +0 -1
  107. package/lib/classic/cjs/index13.js +0 -4
  108. package/lib/classic/cjs/index2.js +0 -5
  109. package/lib/classic/cjs/index3.js +0 -1
  110. package/lib/classic/cjs/index4.js +0 -1
  111. package/lib/classic/cjs/index5.js +0 -1
  112. package/lib/classic/cjs/index6.js +0 -1
  113. package/lib/classic/cjs/index7.js +0 -7
  114. package/lib/classic/cjs/index8.js +0 -1
  115. package/lib/classic/cjs/index9.js +0 -1
  116. package/lib/classic/cjs/insight.js +0 -1
  117. package/lib/classic/cjs/notification.js +0 -1
  118. package/lib/classic/cjs/notification2.js +0 -1
  119. package/lib/classic/cjs/pause-ad.js +0 -1
  120. package/lib/classic/cjs/points.js +0 -1
  121. package/lib/classic/cjs/polymarket.js +0 -14
  122. package/lib/classic/cjs/useStreamLayerApp.js +0 -1
  123. package/lib/classic/cjs/useStreamLayerApp2.js +0 -17
  124. package/lib/classic/cjs/utils.js +0 -47
  125. package/lib/classic/es/Question.js +0 -503
  126. package/lib/classic/es/advertisement.js +0 -38792
  127. package/lib/classic/es/analytics.js +0 -84
  128. package/lib/classic/es/auth.js +0 -11
  129. package/lib/classic/es/bet-pack.js +0 -3418
  130. package/lib/classic/es/feature.js +0 -210
  131. package/lib/classic/es/gamification-feature.js +0 -4
  132. package/lib/classic/es/index-CfSdnrfA.js +0 -3775
  133. package/lib/classic/es/index.js +0 -15
  134. package/lib/classic/es/index10.js +0 -321
  135. package/lib/classic/es/index11.js +0 -2592
  136. package/lib/classic/es/index12.js +0 -185
  137. package/lib/classic/es/index13.js +0 -820
  138. package/lib/classic/es/index2.js +0 -2605
  139. package/lib/classic/es/index3.js +0 -19
  140. package/lib/classic/es/index4.js +0 -6
  141. package/lib/classic/es/index5.js +0 -4
  142. package/lib/classic/es/index6.js +0 -285
  143. package/lib/classic/es/index7.js +0 -181
  144. package/lib/classic/es/index8.js +0 -7
  145. package/lib/classic/es/index9.js +0 -11
  146. package/lib/classic/es/insight.js +0 -79
  147. package/lib/classic/es/notification.js +0 -9
  148. package/lib/classic/es/notification2.js +0 -1126
  149. package/lib/classic/es/pause-ad.js +0 -232
  150. package/lib/classic/es/points.js +0 -76
  151. package/lib/classic/es/polymarket.js +0 -6617
  152. package/lib/classic/es/useStreamLayerApp.js +0 -4
  153. package/lib/classic/es/useStreamLayerApp2.js +0 -11627
  154. package/lib/classic/es/utils.js +0 -76
  155. package/lib/classic/index.d.ts +0 -6
  156. package/lib/classic/masters.d.ts +0 -8
  157. package/lib/classic/source.css +0 -110
  158. package/lib/dist/cjs/gamification-feature.js +0 -1
  159. package/lib/dist/cjs/index-CfSdnrfA.js +0 -5
  160. package/lib/dist/cjs/masters.js +0 -69
  161. package/lib/dist/es/gamification-feature.js +0 -4
  162. package/lib/dist/es/masters.js +0 -22387
  163. package/lib/dist/index.d.ts +0 -1357
  164. package/lib/dist/source.css +0 -64
  165. package/lib/es/hooks-n9ax4LRT.js +0 -97
  166. package/lib/es/index-CfSdnrfA.js +0 -3775
  167. package/lib/style.css +0 -1
@@ -1,16 +1,16 @@
1
1
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
2
  import { h as us } from "./index7.js";
3
- import { useState as I, useRef as Q, useEffect as $, useCallback as As, useMemo as fs } from "react";
3
+ import { useState as I, useRef as W, useEffect as $, useCallback as As, useMemo as fs } from "react";
4
4
  import { s as e, c as hs, u as Is, N as M } from "./feature.js";
5
5
  import { e as $s } from "./index3.js";
6
- import { x as W } from "./storage.js";
7
- import { D as vs, j as gs, e as K, o as ws } from "./index11.js";
8
- import { B as A } from "./index8.js";
9
- import { d, Q as f, a as G, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
6
+ import { x as _ } from "./storage.js";
7
+ import { D as vs, j as gs, e as K, o as ws } from "./index10.js";
8
+ import { M as A } from "./index5.js";
9
+ import { f as d, Q as f, b as G, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
10
10
  import { b as S } from "./index9.js";
11
11
  import { V as Ts, y as ys } from "./index14.js";
12
- import { p as Cs } from "./index5.js";
13
- import { Y as Ns, _ as ks, q as qs } from "./hooks-n9ax4LRT.js";
12
+ import { p as Cs } from "./index11.js";
13
+ import { w as Ns, q as ks, z as qs } from "./hooks-42q2i9Iw.js";
14
14
  const w = /* @__PURE__ */ e("div")({
15
15
  name: "Media",
16
16
  class: "m1bcvojl",
@@ -85,15 +85,15 @@ const w = /* @__PURE__ */ e("div")({
85
85
  name: "Button",
86
86
  class: "b14ivj5k",
87
87
  propsAsIs: !1
88
- }), Ys = () => A, _s = /* @__PURE__ */ e(Ys())({
88
+ }), Ys = () => A, Qs = /* @__PURE__ */ e(Ys())({
89
89
  name: "StyledChevronRight",
90
90
  class: "s1atci8n",
91
91
  propsAsIs: !0
92
- }), Qs = /* @__PURE__ */ e("div")({
92
+ }), Ws = /* @__PURE__ */ e("div")({
93
93
  name: "QuoteWrap",
94
94
  class: "q4w8jgs",
95
95
  propsAsIs: !1
96
- }), Ws = /* @__PURE__ */ e("blockquote")({
96
+ }), _s = /* @__PURE__ */ e("blockquote")({
97
97
  name: "Quote",
98
98
  class: "qaa0kez",
99
99
  propsAsIs: !1
@@ -106,7 +106,7 @@ const w = /* @__PURE__ */ e("div")({
106
106
  class: "ccvukea",
107
107
  propsAsIs: !1
108
108
  }), Xs = ({ image: n, tweet: o, account: i, accountVerified: a, body: r, title: t }) => /* @__PURE__ */ l(Gs, { children: [
109
- t && /* @__PURE__ */ s(Qs, { children: /* @__PURE__ */ s(Ws, { children: t }) }),
109
+ t && /* @__PURE__ */ s(Ws, { children: /* @__PURE__ */ s(_s, { children: t }) }),
110
110
  /* @__PURE__ */ s(
111
111
  vs,
112
112
  {
@@ -120,7 +120,7 @@ const w = /* @__PURE__ */ e("div")({
120
120
  /* @__PURE__ */ s(Ks, { children: gs(r) })
121
121
  ] }), Zs = ({ title: n, questionType: o, questionTypeData: i }) => /* @__PURE__ */ l(X, { children: [
122
122
  /* @__PURE__ */ s(
123
- W,
123
+ _,
124
124
  {
125
125
  questionTypeData: i,
126
126
  questionType: o,
@@ -142,7 +142,7 @@ const w = /* @__PURE__ */ e("div")({
142
142
  g && /* @__PURE__ */ s(j, { src: g, fromInsight: !0, withVideo: !!b }),
143
143
  o === f.TWEET ? /* @__PURE__ */ s(Hs, { tweet: r }) : /* @__PURE__ */ s(Zs, { questionTypeData: t, questionType: o, title: c }),
144
144
  /* @__PURE__ */ s(Fs, { name: "inapp-button", children: p || "Open" }),
145
- /* @__PURE__ */ s(_s, { name: "chevronRight" })
145
+ /* @__PURE__ */ s(Qs, { name: "chevronRight" })
146
146
  ] }) });
147
147
  }, se = () => ({
148
148
  color: n
@@ -310,7 +310,7 @@ const w = /* @__PURE__ */ e("div")({
310
310
  propsAsIs: !0
311
311
  }), Be = ({ title: n, questionType: o, questionTypeData: i, description: a, imageMode: r, webos: t }) => /* @__PURE__ */ l(Te, { imageMode: r, questionType: o, webos: t, children: [
312
312
  /* @__PURE__ */ s(
313
- W,
313
+ _,
314
314
  {
315
315
  questionTypeData: i,
316
316
  questionType: o,
@@ -344,7 +344,7 @@ const w = /* @__PURE__ */ e("div")({
344
344
  webos: p,
345
345
  className: c
346
346
  }) => {
347
- const [m, u] = I(!1), h = Q();
347
+ const [m, u] = I(!1), h = W();
348
348
  $(() => (a?.sponsorLogo && (u(!0), h.current = setTimeout(() => {
349
349
  u(!1);
350
350
  }, 5e3)), () => clearTimeout(h.current)), [a?.sponsorLogo]);
@@ -425,11 +425,11 @@ const w = /* @__PURE__ */ e("div")({
425
425
  name: "Icon",
426
426
  class: "i1vmpt6u",
427
427
  propsAsIs: !1
428
- }), _e = /* @__PURE__ */ e("div")({
428
+ }), Qe = /* @__PURE__ */ e("div")({
429
429
  name: "IconContainer",
430
430
  class: "i180665s",
431
431
  propsAsIs: !1
432
- }), Qe = () => A, We = /* @__PURE__ */ e(Qe())({
432
+ }), We = () => A, _e = /* @__PURE__ */ e(We())({
433
433
  name: "TitleIcon",
434
434
  class: "t16zzzei",
435
435
  propsAsIs: !0
@@ -465,7 +465,7 @@ const w = /* @__PURE__ */ e("div")({
465
465
  n?.(), i && i.markIstantOpen();
466
466
  },
467
467
  children: [
468
- /* @__PURE__ */ l(_e, { children: [
468
+ /* @__PURE__ */ l(Qe, { children: [
469
469
  /* @__PURE__ */ s(P, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
470
470
  /* @__PURE__ */ s(
471
471
  P,
@@ -477,7 +477,7 @@ const w = /* @__PURE__ */ e("div")({
477
477
  ] }),
478
478
  /* @__PURE__ */ l(Xe, { children: [
479
479
  /* @__PURE__ */ l(Ze, { children: [
480
- /* @__PURE__ */ s(We, { name: "icon-trophy-solid" }),
480
+ /* @__PURE__ */ s(_e, { name: "icon-trophy-solid" }),
481
481
  i?.titleCard?.title
482
482
  ] }),
483
483
  /* @__PURE__ */ l(He, { children: [
@@ -744,7 +744,7 @@ const w = /* @__PURE__ */ e("div")({
744
744
  name: "Body",
745
745
  class: "b1a21en",
746
746
  propsAsIs: !1
747
- }), _n = ({
747
+ }), Qn = ({
748
748
  step: n,
749
749
  children: o,
750
750
  state: i = "pending"
@@ -773,7 +773,7 @@ const w = /* @__PURE__ */ e("div")({
773
773
  }, n)
774
774
  })
775
775
  });
776
- }, Qn = /* @__PURE__ */ e("div")({
776
+ }, Wn = /* @__PURE__ */ e("div")({
777
777
  name: "Container",
778
778
  class: "c1nd5cu8",
779
779
  propsAsIs: !1
@@ -781,7 +781,7 @@ const w = /* @__PURE__ */ e("div")({
781
781
  name: "Line",
782
782
  class: "lgbipw0",
783
783
  propsAsIs: !1
784
- }), Wn = () => L, Kn = /* @__PURE__ */ e(Wn())({
784
+ }), _n = () => L, Kn = /* @__PURE__ */ e(_n())({
785
785
  name: "Line1",
786
786
  class: "l1anth16",
787
787
  propsAsIs: !0
@@ -793,7 +793,7 @@ const w = /* @__PURE__ */ e("div")({
793
793
  name: "Line3",
794
794
  class: "lhbflsp",
795
795
  propsAsIs: !0
796
- }), Jn = () => /* @__PURE__ */ l(Qn, {
796
+ }), Jn = () => /* @__PURE__ */ l(Wn, {
797
797
  children: [/* @__PURE__ */ s(Kn, {
798
798
  children: /* @__PURE__ */ s("div", {})
799
799
  }), /* @__PURE__ */ s(Xn, {
@@ -883,7 +883,7 @@ const w = /* @__PURE__ */ e("div")({
883
883
  name: "Body",
884
884
  class: "bqq1ix4",
885
885
  propsAsIs: !1
886
- }), _ = {
886
+ }), Q = {
887
887
  1: 3e3,
888
888
  2: 4e3,
889
889
  3: 4e3
@@ -891,8 +891,8 @@ const w = /* @__PURE__ */ e("div")({
891
891
  if ($(() => {
892
892
  if (i) {
893
893
  const u = setTimeout(() => {
894
- _[c + 1] && (r || c < 3) ? i(c + 1) : n?.();
895
- }, _[c]);
894
+ Q[c + 1] && (r || c < 3) ? i(c + 1) : n?.();
895
+ }, Q[c]);
896
896
  return () => {
897
897
  u && clearTimeout(u);
898
898
  };
@@ -904,7 +904,7 @@ const w = /* @__PURE__ */ e("div")({
904
904
  let m = "pending";
905
905
  return c === 3 && (m = r ? "correct" : "incorrect"), /* @__PURE__ */ s(F, { "data-a": "intr", onClick: () => o?.(), children: /* @__PURE__ */ l(Y, { children: [
906
906
  c !== 1 && /* @__PURE__ */ s(Jn, {}, c),
907
- /* @__PURE__ */ l(_n, { state: m, step: c, children: [
907
+ /* @__PURE__ */ l(Qn, { state: m, step: c, children: [
908
908
  c === 2 && /* @__PURE__ */ s(lo, { title: p || "unknown", answer: a?.title || "unknown" }),
909
909
  c === 3 && r && /* @__PURE__ */ s(uo, { answer: a?.title || "unknown" }),
910
910
  c === 3 && !r && /* @__PURE__ */ s(Ao, { title: t || "unknown", answer: a?.title || "unknown" })
@@ -956,7 +956,7 @@ const w = /* @__PURE__ */ e("div")({
956
956
  sponsorLogo: o,
957
957
  onClick: i
958
958
  }) => /* @__PURE__ */ s(go, { className: n, onClick: i, children: /* @__PURE__ */ s($o, { withoutPadding: !0, children: /* @__PURE__ */ s(cs, { src: o }) }) }), To = ({ className: n, ...o }) => {
959
- const [i, a] = I(!1), r = Q();
959
+ const [i, a] = I(!1), r = W();
960
960
  return $(() => (o?.inApp?.sponsorLogo && (a(!0), r.current = setTimeout(() => {
961
961
  a(!1);
962
962
  }, 5e3)), () => clearTimeout(r.current)), [o?.inApp?.sponsorLogo]), o?.inApp?.sponsorLogo && i ? /* @__PURE__ */ s(
@@ -1,31 +1,31 @@
1
1
  import { jsx as a, jsxs as B } from "react/jsx-runtime";
2
2
  import { h as F } from "./index7.js";
3
3
  import { useEffect as i, useState as _, useRef as g, useCallback as R, Component as M } from "react";
4
- import { s as h, c as w, u as j } from "./feature.js";
4
+ import { s as h, c as D, u as j } from "./feature.js";
5
5
  import { e as k } from "./index3.js";
6
6
  import { d as K } from "./index15.js";
7
- import { Y as V, _ as z } from "./hooks-n9ax4LRT.js";
8
- const G = /* @__PURE__ */ h("div")({
7
+ import { w as V, q } from "./hooks-42q2i9Iw.js";
8
+ const z = /* @__PURE__ */ h("div")({
9
9
  name: "PauseAdOverlay",
10
10
  class: "pw9gih8",
11
11
  propsAsIs: !1
12
- }), H = /* @__PURE__ */ h("div")({
12
+ }), G = /* @__PURE__ */ h("div")({
13
13
  name: "PauseAdContent",
14
14
  class: "p8lpomy",
15
15
  propsAsIs: !1
16
- }), O = /* @__PURE__ */ h("div")({
16
+ }), H = /* @__PURE__ */ h("div")({
17
17
  name: "PauseAdBottomLeft",
18
18
  class: "pv7u167",
19
19
  propsAsIs: !1
20
- }), Y = /* @__PURE__ */ h("button")({
20
+ }), O = /* @__PURE__ */ h("button")({
21
21
  name: "PauseAdPlayButton",
22
22
  class: "p1kh2yb0",
23
23
  propsAsIs: !1
24
- }), q = /* @__PURE__ */ h("div")({
24
+ }), J = /* @__PURE__ */ h("div")({
25
25
  name: "PauseAdSidebarGradient",
26
26
  class: "pl8f94x",
27
27
  propsAsIs: !1
28
- }), J = /* @__PURE__ */ h("div")({
28
+ }), Q = /* @__PURE__ */ h("div")({
29
29
  name: "PauseAdSidebar",
30
30
  class: "p1m6zmrt",
31
31
  propsAsIs: !1
@@ -33,7 +33,7 @@ const G = /* @__PURE__ */ h("div")({
33
33
  name: "ExternalAdContainer",
34
34
  class: "em3vwfa",
35
35
  propsAsIs: !1
36
- }), Q = ({
36
+ }), W = ({
37
37
  vastUrl: d,
38
38
  isDesktop: n,
39
39
  content: e
@@ -62,7 +62,7 @@ const G = /* @__PURE__ */ h("div")({
62
62
  rel: "noopener noreferrer",
63
63
  children: /* @__PURE__ */ a(U, { src: e.imageSrc })
64
64
  }
65
- ) : null), W = ({ isClosing: d, content: n, externalPauseAdStore: e, onPlay: l, onClose: u, vastUrl: c, options: v, isDesktop: r }) => {
65
+ ) : null), X = ({ isClosing: d, content: n, externalPauseAdStore: e, onPlay: l, onClose: u, vastUrl: c, options: v, isDesktop: r }) => {
66
66
  const m = v?.showPauseButton ?? !0, { ref: t, focusSelf: y } = K.useFocusable({
67
67
  focusKey: "sl-pause-ad-play",
68
68
  onEnterRelease: l,
@@ -85,9 +85,9 @@ const G = /* @__PURE__ */ h("div")({
85
85
  }
86
86
  };
87
87
  return window.addEventListener("keydown", b, { capture: !0 }), () => window.removeEventListener("keydown", b, { capture: !0 });
88
- }, [u]), /* @__PURE__ */ a(G, { className: w("SL_PauseAd", d && "pause-ad-closing"), children: /* @__PURE__ */ B(H, { children: [
89
- m && /* @__PURE__ */ a(O, { children: /* @__PURE__ */ a(
90
- Y,
88
+ }, [u]), /* @__PURE__ */ a(z, { className: D("SL_PauseAd", d && "pause-ad-closing"), children: /* @__PURE__ */ B(G, { children: [
89
+ m && /* @__PURE__ */ a(H, { children: /* @__PURE__ */ a(
90
+ O,
91
91
  {
92
92
  ref: t,
93
93
  onClick: l,
@@ -95,9 +95,9 @@ const G = /* @__PURE__ */ h("div")({
95
95
  "aria-label": "Resume playback"
96
96
  }
97
97
  ) }),
98
- /* @__PURE__ */ a(q, { className: w("SL_PauseAdSidebar", r && "SL_PauseAdSidebar--desktop"), children: /* @__PURE__ */ a(J, { className: w(r && "SL_PauseAdSidebar__content--desktop"), children: c && /* @__PURE__ */ a(Q, { content: n, isDesktop: r, vastUrl: c }) }) })
98
+ /* @__PURE__ */ a(J, { className: D("SL_PauseAdSidebar", r && "SL_PauseAdSidebar--desktop"), children: /* @__PURE__ */ a(Q, { className: D(r && "SL_PauseAdSidebar__content--desktop"), children: c && /* @__PURE__ */ a(W, { content: n, isDesktop: r, vastUrl: c }) }) })
99
99
  ] }) });
100
- }, X = ({ showPauseAd: d, vastUrls: n, sdk: e, onClose: l, onRender: u, options: c, isDesktop: v }) => {
100
+ }, Y = ({ showPauseAd: d, vastUrls: n, sdk: e, onClose: l, onRender: u, options: c, isDesktop: v }) => {
101
101
  const r = c?.pauseAdDelay ?? 0, m = c?.pauseAdRefetchInterval ?? 1e3 * 60 * 50, [t, y] = _(!1), [b, f] = _(!1), s = g(), P = n?.[0].url, A = g(P), S = g(""), I = g("");
102
102
  A.current = P;
103
103
  const [p, L] = e.advertisement.getExternalPauseAd(P, {
@@ -133,8 +133,8 @@ const G = /* @__PURE__ */ h("div")({
133
133
  } : {}
134
134
  });
135
135
  const T = () => {
136
- const E = p.get(), D = E.data;
137
- (!D || D?.url === A.current) && (!E.loading && D?.imageSrc ? (clearTimeout(s.current), f(!1), y(!0)) : E.loading && (s.current = setTimeout(() => {
136
+ const E = p.get(), w = E.data;
137
+ (!w || w?.url === A.current) && (!E.loading && w?.imageSrc ? (clearTimeout(s.current), f(!1), y(!0)) : E.loading && (s.current = setTimeout(() => {
138
138
  T();
139
139
  }, 200)));
140
140
  };
@@ -164,7 +164,7 @@ const G = /* @__PURE__ */ h("div")({
164
164
  }, [t, u]), i(() => () => {
165
165
  u?.({ rendered: !1 });
166
166
  }, [u]), !t || !x.data ? null : /* @__PURE__ */ a(
167
- W,
167
+ X,
168
168
  {
169
169
  onClose: C,
170
170
  isClosing: b,
@@ -185,7 +185,7 @@ const G = /* @__PURE__ */ h("div")({
185
185
  children: c,
186
186
  options: v
187
187
  }) => {
188
- const r = V(), m = z(), t = g();
188
+ const r = V(), m = q(), t = g();
189
189
  return i(() => r ? (e && (t.current = e, r.addVideoPlayerController(t.current)), () => {
190
190
  t.current && r.removeVideoPlayerController(t.current);
191
191
  }) : () => {
@@ -198,7 +198,7 @@ const G = /* @__PURE__ */ h("div")({
198
198
  children: [
199
199
  c,
200
200
  n && /* @__PURE__ */ a(
201
- X,
201
+ Y,
202
202
  {
203
203
  sdk: r,
204
204
  showPauseAd: d,
package/lib/es/points.js CHANGED
@@ -3,11 +3,11 @@ import { h as c } from "./index7.js";
3
3
  import { useState as u, useEffect as d } from "react";
4
4
  import { s as o, u as f, F as m } from "./feature.js";
5
5
  import { e as n } from "./index3.js";
6
- import { p as h } from "./index5.js";
6
+ import { p as h } from "./index11.js";
7
7
  import { m as y } from "./theme.js";
8
- import { B as S } from "./index8.js";
8
+ import { M as S } from "./index5.js";
9
9
  import { S as v } from "./useStreamLayerApp2.js";
10
- import { Y as g, _ as A } from "./hooks-n9ax4LRT.js";
10
+ import { w as g, q as A } from "./hooks-42q2i9Iw.js";
11
11
  const I = /* @__PURE__ */ o("div")({
12
12
  name: "PointsContainer",
13
13
  class: "psiob9b",
@@ -24,19 +24,19 @@ const I = /* @__PURE__ */ o("div")({
24
24
  name: "PointsBody",
25
25
  class: "p12n4f2h",
26
26
  propsAsIs: !1
27
- }), T = /* @__PURE__ */ o("div")({
27
+ }), M = /* @__PURE__ */ o("div")({
28
28
  name: "PointsTitle",
29
29
  class: "poqmx89",
30
30
  propsAsIs: !1
31
- }), x = /* @__PURE__ */ o("div")({
31
+ }), T = /* @__PURE__ */ o("div")({
32
32
  name: "PointsValue",
33
33
  class: "prj9b3v",
34
34
  propsAsIs: !1
35
- }), B = ({ points: s, onClick: e }) => /* @__PURE__ */ p(I, { className: y, onClick: e, children: [
35
+ }), x = ({ points: s, onClick: e }) => /* @__PURE__ */ p(I, { className: y, onClick: e, children: [
36
36
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { name: "icon-trophy-solid" }) }),
37
37
  /* @__PURE__ */ p(F, { children: [
38
- /* @__PURE__ */ t(T, { children: "Total points" }),
39
- /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(h, { value: s }) })
38
+ /* @__PURE__ */ t(M, { children: "Total points" }),
39
+ /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(h, { value: s }) })
40
40
  ] })
41
41
  ] }), C = ({ gamification: s }) => {
42
42
  const e = s.userSummary.$store, [a, l] = u(0);
@@ -47,7 +47,7 @@ const I = /* @__PURE__ */ o("div")({
47
47
  return () => {
48
48
  r();
49
49
  };
50
- }, [e]), /* @__PURE__ */ t(B, { points: a, onClick: () => {
50
+ }, [e]), /* @__PURE__ */ t(x, { points: a, onClick: () => {
51
51
  const r = s.status.get();
52
52
  r === m.Suspended ? (s.openFeature(), n.emit("app", {
53
53
  action: "open",
@@ -1,7 +1,7 @@
1
1
  import { jsxs as K, jsx as E } from "react/jsx-runtime";
2
2
  import { h as fs } from "./index7.js";
3
3
  import { s as k, u as js, c as Vs } from "./feature.js";
4
- import { q as ds, Y as ms, _ as ps } from "./hooks-n9ax4LRT.js";
4
+ import { z as ds, w as ms, q as ps } from "./hooks-42q2i9Iw.js";
5
5
  import { useRef as Ds, useEffect as Ks } from "react";
6
6
  import "./index6.js";
7
7
  function _(h) {
@@ -64,7 +64,7 @@ var Os = (
64
64
  function As(h) {
65
65
  return new Os(h);
66
66
  }
67
- var Ys = (
67
+ var Js = (
68
68
  /** @class */
69
69
  (function() {
70
70
  function h(t, i, s) {
@@ -196,8 +196,8 @@ var Ys = (
196
196
  }, h;
197
197
  })()
198
198
  );
199
- function Js(h, t) {
200
- return new Ys(h, t.transform, t.options);
199
+ function Ys(h, t) {
200
+ return new Js(h, t.transform, t.options);
201
201
  }
202
202
  function vi(h) {
203
203
  return h.ownerDocument.defaultView;
@@ -266,7 +266,7 @@ var Xs = (
266
266
  }), h;
267
267
  })()
268
268
  );
269
- function Y(h, t) {
269
+ function J(h, t) {
270
270
  var i = h.canvasElementClientSize;
271
271
  if (i.width === 0 || i.height === 0)
272
272
  return null;
@@ -278,7 +278,7 @@ function Y(h, t) {
278
278
  }
279
279
  const gs = { title: "", visible: !0, lastValueVisible: !0, priceLineVisible: !0, priceLineSource: 0, priceLineWidth: 1, priceLineColor: "", priceLineStyle: 2, baseLineVisible: !0, baseLineWidth: 1, baseLineColor: "#B2B5BE", baseLineStyle: 0, priceFormat: { type: "price", precision: 2, minMove: 0.01 } };
280
280
  var wi, ii;
281
- function J(h, t) {
281
+ function Y(h, t) {
282
282
  const i = { 0: [], 1: [h.lineWidth, h.lineWidth], 2: [2 * h.lineWidth, 2 * h.lineWidth], 3: [6 * h.lineWidth, 6 * h.lineWidth], 4: [h.lineWidth, 4 * h.lineWidth] }[t];
283
283
  h.setLineDash(i);
284
284
  }
@@ -509,11 +509,11 @@ class se extends st {
509
509
  const n = this.jt.Yt.It, r = this.jt.Kt.It;
510
510
  if (!n && !r) return;
511
511
  const o = Math.round(this.jt._t * s), l = Math.round(this.jt.ut * e);
512
- t.lineCap = "butt", n && o >= 0 && (t.lineWidth = Math.floor(this.jt.Yt.ct * s), t.strokeStyle = this.jt.Yt.R, t.fillStyle = this.jt.Yt.R, J(t, this.jt.Yt.Zt), (function(a, u, c, f) {
512
+ t.lineCap = "butt", n && o >= 0 && (t.lineWidth = Math.floor(this.jt.Yt.ct * s), t.strokeStyle = this.jt.Yt.R, t.fillStyle = this.jt.Yt.R, Y(t, this.jt.Yt.Zt), (function(a, u, c, f) {
513
513
  a.beginPath();
514
514
  const d = a.lineWidth % 2 ? 0.5 : 0;
515
515
  a.moveTo(u + d, c), a.lineTo(u + d, f), a.stroke();
516
- })(t, o, 0, i.height)), r && l >= 0 && (t.lineWidth = Math.floor(this.jt.Kt.ct * e), t.strokeStyle = this.jt.Kt.R, t.fillStyle = this.jt.Kt.R, J(t, this.jt.Kt.Zt), vs(t, l, 0, i.width));
516
+ })(t, o, 0, i.height)), r && l >= 0 && (t.lineWidth = Math.floor(this.jt.Kt.ct * e), t.strokeStyle = this.jt.Kt.R, t.fillStyle = this.jt.Kt.R, Y(t, this.jt.Kt.Zt), vs(t, l, 0, i.width));
517
517
  }
518
518
  }
519
519
  let ee = class {
@@ -1063,7 +1063,7 @@ class ce extends st {
1063
1063
  et({ context: t, bitmapSize: i, horizontalPixelRatio: s, verticalPixelRatio: e }) {
1064
1064
  if (this.jt === null || this.jt.It === !1) return;
1065
1065
  const n = Math.round(this.jt.ut * e);
1066
- n < 0 || n > i.height || (t.lineCap = "butt", t.strokeStyle = this.jt.R, t.lineWidth = Math.floor(this.jt.ct * s), J(t, this.jt.Zt), vs(t, n, 0, i.width));
1066
+ n < 0 || n > i.height || (t.lineCap = "butt", t.strokeStyle = this.jt.R, t.lineWidth = Math.floor(this.jt.ct * s), Y(t, this.jt.Zt), vs(t, n, 0, i.width));
1067
1067
  }
1068
1068
  }
1069
1069
  class ai {
@@ -1642,7 +1642,7 @@ function mt(h, t) {
1642
1642
  function Vt() {
1643
1643
  return new Ee();
1644
1644
  }
1645
- const Pt = { setLineStyle: J };
1645
+ const Pt = { setLineStyle: Y };
1646
1646
  class Ne {
1647
1647
  constructor(t) {
1648
1648
  this.Hh = t;
@@ -2164,7 +2164,7 @@ class Ke extends st {
2164
2164
  })(t, (() => {
2165
2165
  const r = p(this.jt);
2166
2166
  if (r.xl) {
2167
- t.strokeStyle = r.Cl, J(t, r.yl), t.beginPath();
2167
+ t.strokeStyle = r.Cl, Y(t, r.yl), t.beginPath();
2168
2168
  for (const o of r.kl) {
2169
2169
  const l = Math.round(o.Pl * s);
2170
2170
  t.moveTo(l, -n), t.lineTo(l, i.height + n);
@@ -2172,7 +2172,7 @@ class Ke extends st {
2172
2172
  t.stroke();
2173
2173
  }
2174
2174
  if (r.Tl) {
2175
- t.strokeStyle = r.Rl, J(t, r.Dl), t.beginPath();
2175
+ t.strokeStyle = r.Rl, Y(t, r.Dl), t.beginPath();
2176
2176
  for (const o of r.Il) {
2177
2177
  const l = Math.round(o.Pl * e);
2178
2178
  t.moveTo(-n, l), t.lineTo(i.width + n, l);
@@ -2210,7 +2210,7 @@ function H(h, t) {
2210
2210
  const i = 100 * (h - t) / t;
2211
2211
  return t < 0 ? -i : i;
2212
2212
  }
2213
- function Ye(h, t) {
2213
+ function Je(h, t) {
2214
2214
  const i = H(h.Ze(), t), s = H(h.Ge(), t);
2215
2215
  return new N(i, s);
2216
2216
  }
@@ -2218,7 +2218,7 @@ function ot(h, t) {
2218
2218
  const i = 100 * (h - t) / t + 100;
2219
2219
  return t < 0 ? -i : i;
2220
2220
  }
2221
- function Je(h, t) {
2221
+ function Ye(h, t) {
2222
2222
  const i = ot(h.Ze(), t), s = ot(h.Ge(), t);
2223
2223
  return new N(i, s);
2224
2224
  }
@@ -2251,7 +2251,7 @@ function At(h) {
2251
2251
  const i = Math.ceil(Math.abs(Math.log10(t))), s = Ot.Bl + i;
2252
2252
  return { Bl: s, El: 1 / Math.pow(10, s) };
2253
2253
  }
2254
- class Yt {
2254
+ class Jt {
2255
2255
  constructor(t, i) {
2256
2256
  if (this.Al = t, this.Ll = i, (function(s) {
2257
2257
  if (s < 0) return !1;
@@ -2290,7 +2290,7 @@ class ki {
2290
2290
  }
2291
2291
  Ol(t, i) {
2292
2292
  if (t < i) throw new Error("high < low");
2293
- const s = this.Ki.$t(), e = (t - i) * this.Hl() / s, n = new Yt(this.Al, [2, 2.5, 2]), r = new Yt(this.Al, [2, 2, 2.5]), o = new Yt(this.Al, [2.5, 2, 2]), l = [];
2293
+ const s = this.Ki.$t(), e = (t - i) * this.Hl() / s, n = new Jt(this.Al, [2, 2.5, 2]), r = new Jt(this.Al, [2, 2, 2.5]), o = new Jt(this.Al, [2.5, 2, 2]), l = [];
2294
2294
  return l.push(n.Ol(t, i, e), r.Ol(t, i, e), o.Ol(t, i, e)), (function(a) {
2295
2295
  if (a.length < 1) throw Error("array is empty");
2296
2296
  let u = a[0];
@@ -2656,10 +2656,10 @@ class $e {
2656
2656
  c = nt(c, this.So);
2657
2657
  break;
2658
2658
  case 2:
2659
- c = Ye(c, a.Wt);
2659
+ c = Je(c, a.Wt);
2660
2660
  break;
2661
2661
  case 3:
2662
- c = Je(c, a.Wt);
2662
+ c = Ye(c, a.Wt);
2663
2663
  }
2664
2664
  if (i = i === null ? c : i.Sn(p(c)), u !== null) {
2665
2665
  const f = u.rr();
@@ -3776,10 +3776,10 @@ class eh {
3776
3776
  function vt(h) {
3777
3777
  return 60 * h * 60 * 1e3;
3778
3778
  }
3779
- function Jt(h) {
3779
+ function Yt(h) {
3780
3780
  return 60 * h * 1e3;
3781
3781
  }
3782
- const wt = [{ _f: (Ki = 1, 1e3 * Ki), uf: 10 }, { _f: Jt(1), uf: 20 }, { _f: Jt(5), uf: 21 }, { _f: Jt(30), uf: 22 }, { _f: vt(1), uf: 30 }, { _f: vt(3), uf: 31 }, { _f: vt(6), uf: 32 }, { _f: vt(12), uf: 33 }];
3782
+ const wt = [{ _f: (Ki = 1, 1e3 * Ki), uf: 10 }, { _f: Yt(1), uf: 20 }, { _f: Yt(5), uf: 21 }, { _f: Yt(30), uf: 22 }, { _f: vt(1), uf: 30 }, { _f: vt(3), uf: 31 }, { _f: vt(6), uf: 32 }, { _f: vt(12), uf: 33 }];
3783
3783
  var Ki;
3784
3784
  function Oi(h, t) {
3785
3785
  if (h.getUTCFullYear() !== t.getUTCFullYear()) return 70;
@@ -3803,10 +3803,10 @@ function ui(h) {
3803
3803
  if (isNaN(t.getTime())) throw new Error(`Invalid date string=${h}, expected format=yyyy-mm-dd`);
3804
3804
  return { day: t.getUTCDate(), month: t.getUTCMonth() + 1, year: t.getUTCFullYear() };
3805
3805
  }
3806
- function Yi(h) {
3806
+ function Ji(h) {
3807
3807
  ct(h.time) && (h.time = ui(h.time));
3808
3808
  }
3809
- class Ji {
3809
+ class Yi {
3810
3810
  options() {
3811
3811
  return this.Ps;
3812
3812
  }
@@ -3815,8 +3815,8 @@ class Ji {
3815
3815
  }
3816
3816
  preprocessData(t) {
3817
3817
  Array.isArray(t) ? (function(i) {
3818
- i.forEach(Yi);
3819
- })(t) : Yi(t);
3818
+ i.forEach(Ji);
3819
+ })(t) : Ji(t);
3820
3820
  }
3821
3821
  createConverterToInternalObj(t) {
3822
3822
  return p((function(i) {
@@ -4270,7 +4270,7 @@ class oh {
4270
4270
  function $(h, t) {
4271
4271
  const i = p(h.ownerDocument).createElement("canvas");
4272
4272
  h.appendChild(i);
4273
- const s = Js(i, { options: { allowResizeObserver: !0 }, transform: (e, n) => ({ width: Math.max(e.width, n.width), height: Math.max(e.height, n.height) }) });
4273
+ const s = Ys(i, { options: { allowResizeObserver: !0 }, transform: (e, n) => ({ width: Math.max(e.width, n.width), height: Math.max(e.height, n.height) }) });
4274
4274
  return s.resizeCanvasElement(t), s;
4275
4275
  }
4276
4276
  function U(h) {
@@ -4384,13 +4384,13 @@ class Gi {
4384
4384
  const i = { colorSpace: this.yt.Gv().N().layout.colorSpace };
4385
4385
  if (t !== 1) {
4386
4386
  this.vm(), this.sm.applySuggestedBitmapSize();
4387
- const e = Y(this.sm, i);
4387
+ const e = J(this.sm, i);
4388
4388
  e !== null && (e.useBitmapCoordinateSpace(((n) => {
4389
4389
  this.wm(n), this.gm(n);
4390
4390
  })), this.yt.Mm(e, this.im), this.bm(e), this.yt.Mm(e, this.Qv), this.Sm(e));
4391
4391
  }
4392
4392
  this.nm.applySuggestedBitmapSize();
4393
- const s = Y(this.nm, i);
4393
+ const s = J(this.nm, i);
4394
4394
  s !== null && (s.useBitmapCoordinateSpace((({ context: e, bitmapSize: n }) => {
4395
4395
  e.clearRect(0, 0, n.width, n.height);
4396
4396
  })), this.xm(s), this.yt.Mm(s, this.tm));
@@ -4703,13 +4703,13 @@ class ci {
4703
4703
  const i = { colorSpace: this.Lv.N().layout.colorSpace };
4704
4704
  if (t !== 1) {
4705
4705
  this.sm.applySuggestedBitmapSize();
4706
- const e = Y(this.sm, i);
4706
+ const e = J(this.sm, i);
4707
4707
  e !== null && (e.useBitmapCoordinateSpace(((n) => {
4708
4708
  this.wm(n);
4709
4709
  })), this.Nm && (this.lw(e, lh), this.ow(e), this.lw(e, Hi), this.lw(e, Qi)));
4710
4710
  }
4711
4711
  this.nm.applySuggestedBitmapSize();
4712
- const s = Y(this.nm, i);
4712
+ const s = J(this.nm, i);
4713
4713
  s !== null && (s.useBitmapCoordinateSpace((({ context: e, bitmapSize: n }) => {
4714
4714
  e.clearRect(0, 0, n.width, n.height);
4715
4715
  })), this._w(s), this.lw(s, ah), this.lw(s, Qi));
@@ -4839,7 +4839,7 @@ class qi {
4839
4839
  pm(t) {
4840
4840
  if (t < 3 && !this.xt || this.Uv.width === 0 || this.Uv.height === 0) return;
4841
4841
  this.xt = !1, this.sm.applySuggestedBitmapSize();
4842
- const i = Y(this.sm, { colorSpace: this.Ps.layout.colorSpace });
4842
+ const i = J(this.sm, { colorSpace: this.Ps.layout.colorSpace });
4843
4843
  i !== null && i.useBitmapCoordinateSpace(((s) => {
4844
4844
  this.wm(s), this.gm(s);
4845
4845
  }));
@@ -4960,13 +4960,13 @@ class dh {
4960
4960
  const i = { colorSpace: this.Ps.colorSpace };
4961
4961
  if (t !== 1) {
4962
4962
  this.sm.applySuggestedBitmapSize();
4963
- const e = Y(this.sm, i);
4963
+ const e = J(this.sm, i);
4964
4964
  e !== null && (e.useBitmapCoordinateSpace(((n) => {
4965
4965
  this.wm(n), this.gm(n), this.Aw(e, fh);
4966
4966
  })), this.bm(e), this.Aw(e, uh)), this.Mw !== null && this.Mw.pm(t), this.bw !== null && this.bw.pm(t);
4967
4967
  }
4968
4968
  this.nm.applySuggestedBitmapSize();
4969
- const s = Y(this.nm, i);
4969
+ const s = J(this.nm, i);
4970
4970
  s !== null && (s.useBitmapCoordinateSpace((({ context: e, bitmapSize: n }) => {
4971
4971
  e.clearRect(0, 0, n.width, n.height);
4972
4972
  })), this.Lw([...this.Lv.Qt().tn(), this.Lv.Qt().gd()], s), this.Aw(s, ch));
@@ -5876,7 +5876,7 @@ class Ah {
5876
5876
  this.kM.v() && this.kM.p(t);
5877
5877
  }
5878
5878
  }
5879
- class Yh {
5879
+ class Jh {
5880
5880
  constructor(t, i, s) {
5881
5881
  this.EM = new S(), this.Nu = new S(), this.xw = new S(), this.ns = t, this.Jh = t.Et(), this.tg = i, this.Jh.Lc().i(this.AM.bind(this)), this.Jh.zc().i(this.LM.bind(this)), this.tg.Dw().i(this.zM.bind(this)), this.cu = s;
5882
5882
  }
@@ -5985,7 +5985,7 @@ function ls(h) {
5985
5985
  dt(i) && (t.handleScroll = { horzTouchDrag: i, vertTouchDrag: i, mouseWheel: i, pressedMouseMove: i });
5986
5986
  })(h), h;
5987
5987
  }
5988
- class Jh {
5988
+ class Yh {
5989
5989
  constructor(t, i, s) {
5990
5990
  this.OM = /* @__PURE__ */ new Map(), this.NM = /* @__PURE__ */ new Map(), this.FM = new S(), this.WM = new S(), this.HM = new S(), this.Xc = /* @__PURE__ */ new WeakMap(), this.UM = new Sh(i);
5991
5991
  const e = s === void 0 ? W(rs()) : R(W(rs()), ls(s));
@@ -5997,7 +5997,7 @@ class Jh {
5997
5997
  this.HM.v() && this.HM.p(this.qM(r()));
5998
5998
  }), this);
5999
5999
  const n = this.Yp.Qt();
6000
- this.jM = new Yh(n, this.Yp.rg(), this.$M);
6000
+ this.jM = new Jh(n, this.Yp.rg(), this.$M);
6001
6001
  }
6002
6002
  remove() {
6003
6003
  this.Yp.nw().u(this), this.Yp.ew().u(this), this.Yp.Md().u(this), this.jM.m(), this.Yp.m(), this.OM.clear(), this.NM.clear(), this.FM.m(), this.WM.m(), this.HM.m(), this.UM.m();
@@ -6147,11 +6147,11 @@ function $h(h) {
6147
6147
  return h;
6148
6148
  }
6149
6149
  function Uh(h, t, i) {
6150
- const s = $h(h), e = new Jh(s, t, i);
6150
+ const s = $h(h), e = new Yh(s, t, i);
6151
6151
  return t.setOptions(e.options()), e;
6152
6152
  }
6153
6153
  function Xh(h, t) {
6154
- return Uh(h, new Ji(), Ji.pf(t));
6154
+ return Uh(h, new Yi(), Yi.pf(t));
6155
6155
  }
6156
6156
  class Gh extends Is {
6157
6157
  constructor(t, i) {
@@ -6239,7 +6239,7 @@ class Zh extends st {
6239
6239
  const { ot: i, lt: s, ib: e, sb: n, ct: r, Zt: o, nb: l } = this.rt;
6240
6240
  if (s === null) return;
6241
6241
  const a = t.context;
6242
- a.lineCap = "butt", a.lineWidth = r * t.verticalPixelRatio, J(a, o), a.lineJoin = "round";
6242
+ a.lineCap = "butt", a.lineWidth = r * t.verticalPixelRatio, Y(a, o), a.lineJoin = "round";
6243
6243
  const u = this.eb.bind(this);
6244
6244
  n !== void 0 && Hh(t, i, n, s, e, u, qh), l && (function(c, f, d, m, w) {
6245
6245
  if (m.to - m.from <= 0) return;