@streamlayer/react 0.31.4 → 0.31.5

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.
@@ -1,122 +1,122 @@
1
1
  import { jsx as c, jsxs as I, Fragment as me } from "react/jsx-runtime";
2
- import { d as Ke, S as Mt, a as qt, b as jt, s as Gt } from "./index2.js";
3
- import { lazy as Wt, useMemo as Ne, Suspense as Ht, useRef as dt, useState as K, useEffect as he, Component as Yt, createElement as Vt, useCallback as pt, useContext as Qt } from "react";
4
- import { FeatureType as Re, QuestionType as D } from "@streamlayer/sdk-web-types";
2
+ import { d as Qe, S as Pt, a as Mt, b as qt, s as jt } from "./index2.js";
3
+ import { lazy as Gt, useMemo as Le, Suspense as Wt, useRef as ht, useState as V, useEffect as he, Component as Ht, createElement as Yt, useCallback as pt, useContext as Vt } from "react";
4
+ import { FeatureType as Ne, QuestionType as D } from "@streamlayer/sdk-web-types";
5
5
  import { useStore as Z } from "@nanostores/react";
6
- import { FeatureStatus as pe } from "@streamlayer/sdk-web-interfaces";
7
- import { s as h, n as z, c as Kt } from "./index4.js";
8
- import { NotificationType as ye } from "@streamlayer/sdk-web-notifications";
9
- import { Player as Xt } from "@lottiefiles/react-lottie-player";
10
- const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
11
- const m = Z(s.status), g = Z(o.sdkStore.slStreamId);
12
- return g != null && g.loading ? /* @__PURE__ */ c("div", { className: d, children: "event is loading..." }) : g != null && g.data ? m !== pe.Ready ? /* @__PURE__ */ c("div", { className: d, children: "wait feature..." }) : l : /* @__PURE__ */ c("div", { className: d, children: "event is forbidden..." });
13
- }, Zt = Wt(() => import("./gamification-feature.js")), er = ({
6
+ import { FeatureStatus as de } from "@streamlayer/sdk-web-interfaces";
7
+ import { s as h, n as z, c as Qt } from "./index4.js";
8
+ import { NotificationType as we } from "@streamlayer/sdk-web-notifications";
9
+ import { Player as Kt } from "@lottiefiles/react-lottie-player";
10
+ const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
11
+ const m = Z(s.status), g = Z(n.sdkStore.slStreamId);
12
+ return g != null && g.loading ? /* @__PURE__ */ c("div", { className: d, children: "event is loading..." }) : g != null && g.data ? m !== de.Ready ? /* @__PURE__ */ c("div", { className: d, children: "wait feature..." }) : l : /* @__PURE__ */ c("div", { className: d, children: "event is forbidden..." });
13
+ }, Jt = Gt(() => import("./gamification-feature.js")), Zt = ({
14
14
  sdk: s,
15
- feature: o,
15
+ feature: n,
16
16
  className: l
17
17
  }) => {
18
- const d = Ne(() => o && o.featureConfig.get().type === Re.GAMES ? /* @__PURE__ */ c(Jt, { className: l, sdk: s, feature: o, children: /* @__PURE__ */ c(Zt, { className: l, gamification: o, sdk: s }) }) : null, [s, o, l]);
18
+ const d = Le(() => n && n.featureConfig.get().type === Ne.GAMES ? /* @__PURE__ */ c(Xt, { className: l, sdk: s, feature: n, children: /* @__PURE__ */ c(Jt, { className: l, gamification: n, sdk: s }) }) : null, [s, n, l]);
19
19
  return /* @__PURE__ */ c(
20
- Ht,
20
+ Wt,
21
21
  {
22
22
  fallback: /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
23
23
  children: d
24
24
  }
25
25
  );
26
- }, tr = /* @__PURE__ */ h("button")({
26
+ }, er = /* @__PURE__ */ h("button")({
27
27
  name: "SButton",
28
28
  class: "sxxa0c",
29
29
  propsAsIs: !1
30
- }), rr = /* @__PURE__ */ h("span")({
30
+ }), tr = /* @__PURE__ */ h("span")({
31
31
  name: "ButtonIcon",
32
32
  class: "b193dcyu",
33
33
  propsAsIs: !1
34
- }), ir = /* @__PURE__ */ h("span")({
34
+ }), rr = /* @__PURE__ */ h("span")({
35
35
  name: "ButtonLabel",
36
36
  class: "b40tuix",
37
37
  propsAsIs: !1
38
- }), Ue = ({ disabled: s, active: o, onClick: l, label: d, icon: m }) => /* @__PURE__ */ c(tr, { onClick: l, disabled: s, "data-selected": o, children: /* @__PURE__ */ I(me, { children: [
39
- m && /* @__PURE__ */ c(rr, { children: m }),
40
- /* @__PURE__ */ c(ir, { children: d })
41
- ] }) }), nr = () => z, sr = /* @__PURE__ */ h(nr())({
38
+ }), Re = ({ disabled: s, active: n, onClick: l, label: d, icon: m }) => /* @__PURE__ */ c(er, { onClick: l, disabled: s, "data-selected": n, children: /* @__PURE__ */ I(me, { children: [
39
+ m && /* @__PURE__ */ c(tr, { children: m }),
40
+ /* @__PURE__ */ c(rr, { children: d })
41
+ ] }) }), ir = () => z, nr = /* @__PURE__ */ h(ir())({
42
42
  name: "ButtonIcon",
43
43
  class: "b1whzxvd",
44
44
  propsAsIs: !0
45
- }), ce = "channels", or = (s) => {
46
- var o;
47
- return /* @__PURE__ */ c(Ue, {
45
+ }), ce = "channels", sr = (s) => {
46
+ var n;
47
+ return /* @__PURE__ */ c(Re, {
48
48
  ...s,
49
49
  id: "channels",
50
50
  label: "Channels",
51
- icon: /* @__PURE__ */ c(sr, {
51
+ icon: /* @__PURE__ */ c(nr, {
52
52
  name: "icon-btn-channels",
53
- "data-selected": (o = s.active) == null ? void 0 : o.toString()
53
+ "data-selected": (n = s.active) == null ? void 0 : n.toString()
54
54
  })
55
55
  });
56
- }, ar = () => z, lr = /* @__PURE__ */ h(ar())({
56
+ }, or = () => z, ar = /* @__PURE__ */ h(or())({
57
57
  name: "ButtonIcon",
58
58
  class: "b11des7c",
59
59
  propsAsIs: !0
60
- }), ee = "featuredGroups", cr = (s) => {
61
- var o;
62
- return /* @__PURE__ */ c(Ue, {
60
+ }), ee = "featuredGroups", lr = (s) => {
61
+ var n;
62
+ return /* @__PURE__ */ c(Re, {
63
63
  ...s,
64
64
  label: "FG+",
65
65
  id: "featuredGroups",
66
- icon: /* @__PURE__ */ c(lr, {
66
+ icon: /* @__PURE__ */ c(ar, {
67
67
  name: "icon-btn-feature-groups",
68
- "data-selected": (o = s.active) == null ? void 0 : o.toString()
68
+ "data-selected": (n = s.active) == null ? void 0 : n.toString()
69
69
  })
70
70
  });
71
- }, ur = () => z, hr = /* @__PURE__ */ h(ur())({
71
+ }, cr = () => z, ur = /* @__PURE__ */ h(cr())({
72
72
  name: "ButtonIcon",
73
73
  class: "b180jd7l",
74
74
  propsAsIs: !0
75
- }), Ae = "leaderboard", dr = (s) => {
76
- var o;
77
- return /* @__PURE__ */ c(Ue, {
75
+ }), Ae = "leaderboard", hr = (s) => {
76
+ var n;
77
+ return /* @__PURE__ */ c(Re, {
78
78
  ...s,
79
79
  label: "Leader Board",
80
80
  id: "leaderboard",
81
- icon: /* @__PURE__ */ c(hr, {
81
+ icon: /* @__PURE__ */ c(ur, {
82
82
  name: "icon-btn-leaderboard",
83
- "data-selected": (o = s.active) == null ? void 0 : o.toString()
83
+ "data-selected": (n = s.active) == null ? void 0 : n.toString()
84
84
  })
85
85
  });
86
86
  }, pr = /* @__PURE__ */ h("div")({
87
87
  name: "Buttons",
88
88
  class: "b6tbwuy",
89
89
  propsAsIs: !1
90
- }), fr = ({
90
+ }), dr = ({
91
91
  children: s,
92
- className: o
92
+ className: n
93
93
  }) => /* @__PURE__ */ c(pr, {
94
- className: o,
94
+ className: n,
95
95
  children: s
96
- }), mr = () => fr, gr = /* @__PURE__ */ h(mr())({
96
+ }), fr = () => dr, mr = /* @__PURE__ */ h(fr())({
97
97
  name: "Navigation",
98
98
  class: "n19lpak2",
99
99
  propsAsIs: !0
100
- }), yr = ({ activeOverlay: s, setActiveOverlay: o, sdkReady: l, className: d }) => /* @__PURE__ */ I(gr, { className: d, children: [
101
- /* @__PURE__ */ c(or, { active: s === ce, onClick: () => o(ce) }),
100
+ }), gr = ({ activeOverlay: s, setActiveOverlay: n, sdkReady: l, className: d }) => /* @__PURE__ */ I(mr, { className: d, children: [
101
+ /* @__PURE__ */ c(sr, { active: s === ce, onClick: () => n(ce) }),
102
102
  /* @__PURE__ */ c(
103
- cr,
103
+ lr,
104
104
  {
105
105
  active: s === ee,
106
106
  disabled: !l,
107
107
  onClick: () => {
108
- o(ee);
108
+ n(ee);
109
109
  }
110
110
  }
111
111
  ),
112
112
  /* @__PURE__ */ c(
113
- dr,
113
+ hr,
114
114
  {
115
115
  active: s === Ae,
116
- onClick: () => o(Ae)
116
+ onClick: () => n(Ae)
117
117
  }
118
118
  )
119
- ] }), wr = {
119
+ ] }), yr = {
120
120
  [D.TWEET]: { label: "Insight", iconName: "icon-insight" },
121
121
  [D.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
122
122
  [D.UNSET]: void 0,
@@ -124,80 +124,80 @@ const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
124
124
  [D.POLL]: { label: "Poll", iconName: "icon-poll" },
125
125
  [D.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
126
126
  [D.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
127
- }, Ir = /* @__PURE__ */ h("div")({
127
+ }, wr = /* @__PURE__ */ h("div")({
128
128
  name: "Container",
129
129
  class: "c1bgb86j",
130
130
  propsAsIs: !1
131
- }), Ar = /* @__PURE__ */ h("video")({
131
+ }), Ir = /* @__PURE__ */ h("video")({
132
132
  name: "Player",
133
133
  class: "p6703cq",
134
134
  propsAsIs: !1
135
- }), xr = /* @__PURE__ */ h("img")({
135
+ }), Ar = /* @__PURE__ */ h("img")({
136
136
  name: "Poster",
137
137
  class: "p12ow7zo",
138
138
  propsAsIs: !1
139
- }), br = /* @__PURE__ */ h("div")({
139
+ }), xr = /* @__PURE__ */ h("div")({
140
140
  name: "Control",
141
141
  class: "cdpal9o",
142
142
  propsAsIs: !1
143
- }), Er = ({ poster: s, source: o }) => {
144
- const l = dt(null), [d, m] = K(!1), [g, f] = K(!0);
145
- return /* @__PURE__ */ I(Ir, { onClick: () => {
146
- const n = l == null ? void 0 : l.current;
147
- n && m((w) => w ? (n.pause(), !1) : (n.play(), f(!1), !0));
143
+ }), br = ({ poster: s, source: n }) => {
144
+ const l = ht(null), [d, m] = V(!1), [g, f] = V(!0);
145
+ return /* @__PURE__ */ I(wr, { onClick: () => {
146
+ const o = l == null ? void 0 : l.current;
147
+ o && m((w) => w ? (o.pause(), !1) : (o.play(), f(!1), !0));
148
148
  }, children: [
149
149
  /* @__PURE__ */ c(
150
- Ar,
150
+ Ir,
151
151
  {
152
152
  ref: l,
153
- src: o,
153
+ src: n,
154
154
  onEnded: () => {
155
- var n;
156
- (n = l == null ? void 0 : l.current) == null || n.load(), m(!1), f(!0);
155
+ var o;
156
+ (o = l == null ? void 0 : l.current) == null || o.load(), m(!1), f(!0);
157
157
  },
158
158
  style: { visibility: g ? "hidden" : "visible" }
159
159
  }
160
160
  ),
161
- /* @__PURE__ */ c(xr, { src: s, style: { visibility: g ? "visible" : "hidden" } }),
162
- /* @__PURE__ */ c(br, { children: !d && /* @__PURE__ */ c(z, { name: "icon-play" }) })
161
+ /* @__PURE__ */ c(Ar, { src: s, style: { visibility: g ? "visible" : "hidden" } }),
162
+ /* @__PURE__ */ c(xr, { children: !d && /* @__PURE__ */ c(z, { name: "icon-play" }) })
163
163
  ] });
164
- }, Br = /* @__PURE__ */ h("div")({
164
+ }, Er = /* @__PURE__ */ h("div")({
165
165
  name: "InsightContainer",
166
166
  class: "i1pqqgpo",
167
167
  propsAsIs: !1
168
- }), vr = /* @__PURE__ */ h("img")({
168
+ }), Br = /* @__PURE__ */ h("img")({
169
169
  name: "Image",
170
170
  class: "igj7luu",
171
171
  propsAsIs: !1
172
- }), _r = /* @__PURE__ */ h("div")({
172
+ }), vr = /* @__PURE__ */ h("div")({
173
173
  name: "InsightContent",
174
174
  class: "i1qne9g6",
175
175
  propsAsIs: !1
176
- }), Cr = /* @__PURE__ */ h("h3")({
176
+ }), _r = /* @__PURE__ */ h("h3")({
177
177
  name: "Title",
178
178
  class: "ttpr98r",
179
179
  propsAsIs: !1
180
- }), Tr = /* @__PURE__ */ h("div")({
180
+ }), Cr = /* @__PURE__ */ h("div")({
181
181
  name: "Description",
182
182
  class: "d17iaqp8",
183
183
  propsAsIs: !1
184
- }), Fr = /* @__PURE__ */ h("button")({
184
+ }), Tr = /* @__PURE__ */ h("button")({
185
185
  name: "ActionBtn",
186
186
  class: "a16t3y7s",
187
187
  propsAsIs: !1
188
- }), $r = ({
188
+ }), Fr = ({
189
189
  video: s,
190
- image: o,
190
+ image: n,
191
191
  heading: l,
192
192
  body: d,
193
193
  action: m
194
- }) => /* @__PURE__ */ I(Br, { children: [
195
- (s == null ? void 0 : s.url) && /* @__PURE__ */ c(Er, { source: s.url, poster: s.thumbnailUrl }),
196
- o && /* @__PURE__ */ c(vr, { src: o }),
197
- /* @__PURE__ */ I(_r, { children: [
198
- /* @__PURE__ */ c(Cr, { children: l }),
199
- /* @__PURE__ */ c(Tr, { children: d }),
200
- m && /* @__PURE__ */ c(Fr, { onClick: m, children: "View Insight" })
194
+ }) => /* @__PURE__ */ I(Er, { children: [
195
+ (s == null ? void 0 : s.url) && /* @__PURE__ */ c(br, { source: s.url, poster: s.thumbnailUrl }),
196
+ n && /* @__PURE__ */ c(Br, { src: n }),
197
+ /* @__PURE__ */ I(vr, { children: [
198
+ /* @__PURE__ */ c(_r, { children: l }),
199
+ /* @__PURE__ */ c(Cr, { children: d }),
200
+ m && /* @__PURE__ */ c(Tr, { onClick: m, children: "View Insight" })
201
201
  ] })
202
202
  ] }), ne = /* @__PURE__ */ h("div")({
203
203
  name: "BGWrap",
@@ -207,102 +207,102 @@ const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
207
207
  name: "BGLineBase",
208
208
  class: "b1v6w7ni",
209
209
  propsAsIs: !1
210
- }), kr = () => P, Sr = /* @__PURE__ */ h(kr())({
210
+ }), $r = () => P, kr = /* @__PURE__ */ h($r())({
211
211
  name: "BGOneLineOne",
212
212
  class: "b2nqb1p",
213
213
  propsAsIs: !0
214
- }), Lr = () => P, Nr = /* @__PURE__ */ h(Lr())({
214
+ }), Sr = () => P, Lr = /* @__PURE__ */ h(Sr())({
215
215
  name: "BGOneLineTwo",
216
216
  class: "b1xxgmbk",
217
217
  propsAsIs: !0
218
- }), Rr = () => P, Ur = /* @__PURE__ */ h(Rr())({
218
+ }), Nr = () => P, Rr = /* @__PURE__ */ h(Nr())({
219
219
  name: "BGOneLineThree",
220
220
  class: "b63lwcb",
221
221
  propsAsIs: !0
222
- }), zr = () => P, Xe = /* @__PURE__ */ h(zr())({
222
+ }), Ur = () => P, Ke = /* @__PURE__ */ h(Ur())({
223
223
  name: "BGTwoLineOne",
224
224
  class: "b2iah4",
225
225
  propsAsIs: !0
226
- }), Or = () => P, Je = /* @__PURE__ */ h(Or())({
226
+ }), zr = () => P, Xe = /* @__PURE__ */ h(zr())({
227
227
  name: "BGTwoLineTwo",
228
228
  class: "b1xezvf6",
229
229
  propsAsIs: !0
230
- }), Dr = () => P, Ze = /* @__PURE__ */ h(Dr())({
230
+ }), Or = () => P, Je = /* @__PURE__ */ h(Or())({
231
231
  name: "BGTwoLineThree",
232
232
  class: "b1jz1hg0",
233
233
  propsAsIs: !0
234
- }), Pr = () => P, et = /* @__PURE__ */ h(Pr())({
234
+ }), Dr = () => P, Ze = /* @__PURE__ */ h(Dr())({
235
235
  name: "BGThreeLineOne",
236
236
  class: "b18ho1tk",
237
237
  propsAsIs: !0
238
- }), Mr = () => P, tt = /* @__PURE__ */ h(Mr())({
238
+ }), Pr = () => P, et = /* @__PURE__ */ h(Pr())({
239
239
  name: "BGThreeLineTwo",
240
240
  class: "b14uvjfm",
241
241
  propsAsIs: !0
242
- }), qr = () => P, rt = /* @__PURE__ */ h(qr())({
242
+ }), Mr = () => P, tt = /* @__PURE__ */ h(Mr())({
243
243
  name: "BGThreeLineThree",
244
244
  class: "b11c3ns7",
245
245
  propsAsIs: !0
246
- }), jr = () => P, it = /* @__PURE__ */ h(jr())({
246
+ }), qr = () => P, rt = /* @__PURE__ */ h(qr())({
247
247
  name: "BGThreeLineFour",
248
248
  class: "b1bqhhet",
249
249
  propsAsIs: !0
250
- }), Gr = () => P, Wr = /* @__PURE__ */ h(Gr())({
250
+ }), jr = () => P, Gr = /* @__PURE__ */ h(jr())({
251
251
  name: "BGFourLineOne",
252
252
  class: "b1xyzi7o",
253
253
  propsAsIs: !0
254
- }), Hr = () => P, Yr = /* @__PURE__ */ h(Hr())({
254
+ }), Wr = () => P, Hr = /* @__PURE__ */ h(Wr())({
255
255
  name: "BGFourLineTwo",
256
256
  class: "byo0rup",
257
257
  propsAsIs: !0
258
- }), Vr = () => P, Qr = /* @__PURE__ */ h(Vr())({
258
+ }), Yr = () => P, Vr = /* @__PURE__ */ h(Yr())({
259
259
  name: "BGFourLineThree",
260
260
  class: "b1oyiqgv",
261
261
  propsAsIs: !0
262
- }), Kr = () => P, Xr = /* @__PURE__ */ h(Kr())({
262
+ }), Qr = () => P, Kr = /* @__PURE__ */ h(Qr())({
263
263
  name: "BGFourLineFour",
264
264
  class: "bx3ddqw",
265
265
  propsAsIs: !0
266
- }), Jr = ({ step: s, correct: o }) => /* @__PURE__ */ I(me, { children: [
266
+ }), Xr = ({ step: s, correct: n }) => /* @__PURE__ */ I(me, { children: [
267
267
  /* @__PURE__ */ I(ne, { "data-active": s === 1, "data-first-screen": "true", children: [
268
- /* @__PURE__ */ c(Sr, {}),
269
- /* @__PURE__ */ c(Nr, {}),
270
- /* @__PURE__ */ c(Ur, {})
268
+ /* @__PURE__ */ c(kr, {}),
269
+ /* @__PURE__ */ c(Lr, {}),
270
+ /* @__PURE__ */ c(Rr, {})
271
271
  ] }),
272
272
  /* @__PURE__ */ I(ne, { "data-active": s === 2, children: [
273
+ /* @__PURE__ */ c(Ke, {}),
273
274
  /* @__PURE__ */ c(Xe, {}),
274
- /* @__PURE__ */ c(Je, {}),
275
- /* @__PURE__ */ c(Ze, {})
275
+ /* @__PURE__ */ c(Je, {})
276
276
  ] }),
277
277
  /* @__PURE__ */ I(ne, { "data-active": s === 3, children: [
278
+ /* @__PURE__ */ c(Ke, {}),
278
279
  /* @__PURE__ */ c(Xe, {}),
279
- /* @__PURE__ */ c(Je, {}),
280
- /* @__PURE__ */ c(Ze, {})
280
+ /* @__PURE__ */ c(Je, {})
281
281
  ] }),
282
- o ? /* @__PURE__ */ I(me, { children: [
282
+ n ? /* @__PURE__ */ I(me, { children: [
283
283
  /* @__PURE__ */ I(ne, { "data-active": s === 4, "data-correct": "false", children: [
284
+ /* @__PURE__ */ c(Ze, {}),
284
285
  /* @__PURE__ */ c(et, {}),
285
286
  /* @__PURE__ */ c(tt, {}),
286
- /* @__PURE__ */ c(rt, {}),
287
- /* @__PURE__ */ c(it, {})
287
+ /* @__PURE__ */ c(rt, {})
288
288
  ] }),
289
289
  /* @__PURE__ */ I(ne, { "data-active": s === 5, "data-correct": "false", "data-last-screen": "true", children: [
290
+ /* @__PURE__ */ c(Ze, {}),
290
291
  /* @__PURE__ */ c(et, {}),
291
292
  /* @__PURE__ */ c(tt, {}),
292
- /* @__PURE__ */ c(rt, {}),
293
- /* @__PURE__ */ c(it, {})
293
+ /* @__PURE__ */ c(rt, {})
294
294
  ] })
295
295
  ] }) : /* @__PURE__ */ I(ne, { "data-active": s === 4, "data-correct": "false", "data-last-screen": "true", children: [
296
- /* @__PURE__ */ c(Wr, {}),
297
- /* @__PURE__ */ c(Yr, {}),
298
- /* @__PURE__ */ c(Qr, {}),
299
- /* @__PURE__ */ c(Xr, {})
296
+ /* @__PURE__ */ c(Gr, {}),
297
+ /* @__PURE__ */ c(Hr, {}),
298
+ /* @__PURE__ */ c(Vr, {}),
299
+ /* @__PURE__ */ c(Kr, {})
300
300
  ] })
301
- ] }), Zr = /* @__PURE__ */ h("div")({
301
+ ] }), Jr = /* @__PURE__ */ h("div")({
302
302
  name: "Container",
303
303
  class: "c10131zw",
304
304
  propsAsIs: !1
305
- }), ei = /* @__PURE__ */ h("div")({
305
+ }), Zr = /* @__PURE__ */ h("div")({
306
306
  name: "AnimateContent",
307
307
  class: "ar6k2eo",
308
308
  propsAsIs: !1
@@ -318,54 +318,54 @@ const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
318
318
  name: "Subtitle",
319
319
  class: "s1pjil1h",
320
320
  propsAsIs: !1
321
- }), ti = () => fe, nt = /* @__PURE__ */ h(ti())({
321
+ }), ei = () => fe, it = /* @__PURE__ */ h(ei())({
322
322
  name: "SubtitleFG",
323
323
  class: "s1iorwr9",
324
324
  propsAsIs: !0
325
- }), we = /* @__PURE__ */ h("div")({
325
+ }), ye = /* @__PURE__ */ h("div")({
326
326
  name: "AnswerText",
327
327
  class: "a51sv9d",
328
328
  propsAsIs: !1
329
- }), ri = () => z, ve = /* @__PURE__ */ h(ri())({
329
+ }), ti = () => z, ve = /* @__PURE__ */ h(ti())({
330
330
  name: "FeedbackIcon",
331
331
  class: "f1lbk2ye",
332
332
  propsAsIs: !0
333
- }), st = /* @__PURE__ */ h("button")({
333
+ }), nt = /* @__PURE__ */ h("button")({
334
334
  name: "CloseButton",
335
335
  class: "crcvk3t",
336
336
  propsAsIs: !1
337
- }), ii = () => z, ot = /* @__PURE__ */ h(ii())({
337
+ }), ri = () => z, st = /* @__PURE__ */ h(ri())({
338
338
  name: "CloseIcon",
339
339
  class: "c33p82r",
340
340
  propsAsIs: !0
341
- }), ni = ({
341
+ }), ii = ({
342
342
  close: s,
343
- votedAnswer: o,
343
+ votedAnswer: n,
344
344
  correct: l,
345
345
  correctAnswerTitle: d
346
346
  }) => {
347
- const [m, g] = K(1);
347
+ const [m, g] = V(1);
348
348
  return he(() => {
349
349
  const f = setInterval(() => {
350
- g((n) => l && n > 4 || !l && n > 3 ? n : ++n);
350
+ g((o) => l && o > 4 || !l && o > 3 ? o : ++o);
351
351
  }, 6e3);
352
352
  return () => clearInterval(f);
353
- }, [l]), /* @__PURE__ */ I(Zr, { "data-bg-color-white": m > 3, children: [
354
- /* @__PURE__ */ c(Jr, { step: m, correct: l }),
355
- /* @__PURE__ */ I(ei, { "data-active-number": m, children: [
353
+ }, [l]), /* @__PURE__ */ I(Jr, { "data-bg-color-white": m > 3, children: [
354
+ /* @__PURE__ */ c(Xr, { step: m, correct: l }),
355
+ /* @__PURE__ */ I(Zr, { "data-active-number": m, children: [
356
356
  /* @__PURE__ */ I(se, { children: [
357
357
  /* @__PURE__ */ c(oe, { children: "Master" }),
358
- /* @__PURE__ */ c(nt, { children: "FEATURED GROUPS +" })
358
+ /* @__PURE__ */ c(it, { children: "FEATURED GROUPS +" })
359
359
  ] }),
360
360
  /* @__PURE__ */ I(se, { children: [
361
361
  /* @__PURE__ */ c(oe, { children: "Prediction results are in!" }),
362
- /* @__PURE__ */ c(nt, { children: "FEATURED GROUPS +" })
362
+ /* @__PURE__ */ c(it, { children: "FEATURED GROUPS +" })
363
363
  ] }),
364
364
  /* @__PURE__ */ I(se, { children: [
365
365
  /* @__PURE__ */ c(oe, { children: "Who holds the most birdies in golf?" }),
366
366
  /* @__PURE__ */ I(fe, { children: [
367
367
  "Your Pick: ",
368
- /* @__PURE__ */ c(we, { children: o == null ? void 0 : o.title })
368
+ /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
369
369
  ] })
370
370
  ] }),
371
371
  l ? /* @__PURE__ */ I(me, { children: [
@@ -374,24 +374,24 @@ const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
374
374
  /* @__PURE__ */ I(fe, { children: [
375
375
  /* @__PURE__ */ c(ve, { name: "selected" }),
376
376
  "Your Pick: ",
377
- /* @__PURE__ */ c(we, { children: o == null ? void 0 : o.title })
377
+ /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
378
378
  ] })
379
379
  ] }),
380
380
  /* @__PURE__ */ I(se, { "data-color-green": "true", children: [
381
- /* @__PURE__ */ c(st, { onClick: s, children: /* @__PURE__ */ c(ot, { name: "icon-cross" }) }),
381
+ /* @__PURE__ */ c(nt, { onClick: s, children: /* @__PURE__ */ c(st, { name: "icon-cross" }) }),
382
382
  /* @__PURE__ */ I(oe, { children: [
383
383
  "+",
384
- o == null ? void 0 : o.points,
384
+ n == null ? void 0 : n.points,
385
385
  " points"
386
386
  ] }),
387
387
  /* @__PURE__ */ I(fe, { children: [
388
388
  /* @__PURE__ */ c(ve, { name: "selected" }),
389
389
  "Your Pick: ",
390
- /* @__PURE__ */ c(we, { children: o == null ? void 0 : o.title })
390
+ /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
391
391
  ] })
392
392
  ] })
393
393
  ] }) : /* @__PURE__ */ I(se, { children: [
394
- /* @__PURE__ */ c(st, { onClick: s, children: /* @__PURE__ */ c(ot, { name: "icon-cross" }) }),
394
+ /* @__PURE__ */ c(nt, { onClick: s, children: /* @__PURE__ */ c(st, { name: "icon-cross" }) }),
395
395
  /* @__PURE__ */ I(oe, { "data-incorrect": "true", children: [
396
396
  "Better luck next time! Correct: ",
397
397
  d,
@@ -400,32 +400,32 @@ const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
400
400
  /* @__PURE__ */ I(fe, { "data-incorrect": "true", children: [
401
401
  /* @__PURE__ */ c(ve, { name: "circleClose" }),
402
402
  "Your Pick: ",
403
- /* @__PURE__ */ c(we, { children: o == null ? void 0 : o.title })
403
+ /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
404
404
  ] })
405
405
  ] })
406
406
  ] })
407
407
  ] });
408
- }, si = /* @__PURE__ */ h("div")({
408
+ }, ni = /* @__PURE__ */ h("div")({
409
409
  name: "Container",
410
410
  class: "c1eptrjd",
411
411
  propsAsIs: !1
412
- }), oi = /* @__PURE__ */ h("div")({
412
+ }), si = /* @__PURE__ */ h("div")({
413
413
  name: "CloseIconWrap",
414
414
  class: "crylm65",
415
415
  propsAsIs: !1
416
- }), ai = () => z, li = /* @__PURE__ */ h(ai())({
416
+ }), oi = () => z, ai = /* @__PURE__ */ h(oi())({
417
417
  name: "CloseIcon",
418
418
  class: "c9mrcz7",
419
419
  propsAsIs: !0
420
- }), ci = /* @__PURE__ */ h("div")({
420
+ }), li = /* @__PURE__ */ h("div")({
421
421
  name: "Header",
422
422
  class: "hw3lzv4",
423
423
  propsAsIs: !1
424
- }), ui = () => z, hi = /* @__PURE__ */ h(ui())({
424
+ }), ci = () => z, ui = /* @__PURE__ */ h(ci())({
425
425
  name: "TypeIcon",
426
426
  class: "t1rrb3kf",
427
427
  propsAsIs: !0
428
- }), di = /* @__PURE__ */ h("span")({
428
+ }), hi = /* @__PURE__ */ h("span")({
429
429
  name: "TypeName",
430
430
  class: "t1ydnjov",
431
431
  propsAsIs: !1
@@ -433,171 +433,171 @@ const Jt = ({ feature: s, sdk: o, children: l, className: d }) => {
433
433
  name: "Question",
434
434
  class: "qlf90cl",
435
435
  propsAsIs: !1
436
- }), fi = /* @__PURE__ */ h("button")({
436
+ }), di = /* @__PURE__ */ h("button")({
437
437
  name: "AnswerButton",
438
438
  class: "a1e0nhcl",
439
439
  propsAsIs: !1
440
- }), mi = /* @__PURE__ */ h("div")({
440
+ }), fi = /* @__PURE__ */ h("div")({
441
441
  name: "Container",
442
442
  class: "cjq447q",
443
443
  propsAsIs: !1
444
- }), gi = /* @__PURE__ */ h("div")({
444
+ }), mi = /* @__PURE__ */ h("div")({
445
445
  name: "ImageContainer",
446
446
  class: "i14egogb",
447
447
  propsAsIs: !1
448
- }), yi = /* @__PURE__ */ h("img")({
448
+ }), gi = /* @__PURE__ */ h("img")({
449
449
  name: "Image",
450
450
  class: "i2g9g4l",
451
451
  propsAsIs: !1
452
- }), wi = /* @__PURE__ */ h("div")({
452
+ }), yi = /* @__PURE__ */ h("div")({
453
453
  name: "Details",
454
454
  class: "d1c454nm",
455
455
  propsAsIs: !1
456
- }), Ii = /* @__PURE__ */ h("div")({
456
+ }), wi = /* @__PURE__ */ h("div")({
457
457
  name: "Name",
458
458
  class: "n11nigc3",
459
459
  propsAsIs: !1
460
- }), Ai = /* @__PURE__ */ h("div")({
460
+ }), Ii = /* @__PURE__ */ h("div")({
461
461
  name: "UserName",
462
462
  class: "urxa4k8",
463
463
  propsAsIs: !1
464
- }), xi = ({ image: s, name: o, userName: l, verified: d }) => /* @__PURE__ */ I(mi, { children: [
465
- /* @__PURE__ */ c(gi, { children: /* @__PURE__ */ c(yi, { src: s }) }),
466
- /* @__PURE__ */ I(wi, { children: [
467
- /* @__PURE__ */ I(Ii, { children: [
468
- o,
464
+ }), Ai = ({ image: s, name: n, userName: l, verified: d }) => /* @__PURE__ */ I(fi, { children: [
465
+ /* @__PURE__ */ c(mi, { children: /* @__PURE__ */ c(gi, { src: s }) }),
466
+ /* @__PURE__ */ I(yi, { children: [
467
+ /* @__PURE__ */ I(wi, { children: [
468
+ n,
469
469
  " ",
470
470
  d && /* @__PURE__ */ c(z, { name: "icon-twitter-verified" })
471
471
  ] }),
472
- /* @__PURE__ */ c(Ai, { children: l })
472
+ /* @__PURE__ */ c(Ii, { children: l })
473
473
  ] })
474
- ] }), bi = /* @__PURE__ */ h("div")({
474
+ ] }), xi = /* @__PURE__ */ h("div")({
475
475
  name: "Container",
476
476
  class: "c1t4f0x4",
477
477
  propsAsIs: !1
478
- }), Ei = /* @__PURE__ */ h("button")({
478
+ }), bi = /* @__PURE__ */ h("button")({
479
479
  name: "ActionBtn",
480
480
  class: "a16w1nl6",
481
481
  propsAsIs: !1
482
- }), Bi = /* @__PURE__ */ h("div")({
482
+ }), Ei = /* @__PURE__ */ h("div")({
483
483
  name: "Body",
484
484
  class: "b14u54rf",
485
485
  propsAsIs: !1
486
- }), vi = /* @__PURE__ */ h("img")({
486
+ }), Bi = /* @__PURE__ */ h("img")({
487
487
  name: "Image",
488
488
  class: "i1hxm6zo",
489
489
  propsAsIs: !1
490
- }), _i = /* @__PURE__ */ h("div")({
490
+ }), vi = /* @__PURE__ */ h("div")({
491
491
  name: "Details",
492
492
  class: "d1s19yop",
493
493
  propsAsIs: !1
494
- }), Ci = /* @__PURE__ */ h("div")({
494
+ }), _i = /* @__PURE__ */ h("div")({
495
495
  name: "QuoteWrap",
496
496
  class: "q1qyx94r",
497
497
  propsAsIs: !1
498
- }), Ti = /* @__PURE__ */ h("blockquote")({
498
+ }), Ci = /* @__PURE__ */ h("blockquote")({
499
499
  name: "Quote",
500
500
  class: "qs97clu",
501
501
  propsAsIs: !1
502
- }), Fi = ({
502
+ }), Ti = ({
503
503
  account: s,
504
- body: o,
504
+ body: n,
505
505
  image: l,
506
506
  title: d,
507
507
  action: m
508
- }) => /* @__PURE__ */ I(bi, { children: [
509
- /* @__PURE__ */ c(Ci, { children: /* @__PURE__ */ c(Ti, { children: d }) }),
510
- /* @__PURE__ */ I(_i, { children: [
511
- /* @__PURE__ */ c(xi, { ...s }),
512
- /* @__PURE__ */ c(Bi, { children: o }),
513
- l && /* @__PURE__ */ c(vi, { src: l })
508
+ }) => /* @__PURE__ */ I(xi, { children: [
509
+ /* @__PURE__ */ c(_i, { children: /* @__PURE__ */ c(Ci, { children: d }) }),
510
+ /* @__PURE__ */ I(vi, { children: [
511
+ /* @__PURE__ */ c(Ai, { ...s }),
512
+ /* @__PURE__ */ c(Ei, { children: n }),
513
+ l && /* @__PURE__ */ c(Bi, { src: l })
514
514
  ] }),
515
- m && /* @__PURE__ */ c(Ei, { onClick: m, children: "View Tweet" })
516
- ] }), at = ({
515
+ m && /* @__PURE__ */ c(bi, { onClick: m, children: "View Tweet" })
516
+ ] }), ot = ({
517
517
  close: s,
518
- action: o,
518
+ action: n,
519
519
  data: { questionType: l, question: d, insight: m, tweet: g }
520
520
  }) => {
521
- const f = wr[l];
522
- return f ? d != null && d.predictionResult ? /* @__PURE__ */ c(ni, { close: s, ...d }) : /* @__PURE__ */ I(si, { children: [
523
- /* @__PURE__ */ c(oi, { onClick: s, children: /* @__PURE__ */ c(li, { name: "icon-cross" }) }),
524
- l !== D.TWEET && /* @__PURE__ */ I(ci, { children: [
521
+ const f = yr[l];
522
+ return f ? d != null && d.predictionResult ? /* @__PURE__ */ c(ii, { close: s, ...d }) : /* @__PURE__ */ I(ni, { children: [
523
+ /* @__PURE__ */ c(si, { onClick: s, children: /* @__PURE__ */ c(ai, { name: "icon-cross" }) }),
524
+ l !== D.TWEET && /* @__PURE__ */ I(li, { children: [
525
525
  /* @__PURE__ */ c(
526
- hi,
526
+ ui,
527
527
  {
528
528
  "data-type-trivia": l === D.TRIVIA,
529
529
  "data-type-poll": l === D.POLL,
530
530
  name: f.iconName
531
531
  }
532
532
  ),
533
- /* @__PURE__ */ c(di, { children: f.label })
533
+ /* @__PURE__ */ c(hi, { children: f.label })
534
534
  ] }),
535
- l === D.FACTOID && /* @__PURE__ */ c($r, { ...m, action: o }),
535
+ l === D.FACTOID && /* @__PURE__ */ c(Fr, { ...m, action: n }),
536
536
  l === D.TWEET && // ToDo: connect with real Api data
537
537
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
538
538
  // @ts-ignore
539
- /* @__PURE__ */ c(Fi, { ...g, action: o }),
539
+ /* @__PURE__ */ c(Ti, { ...g, action: n }),
540
540
  l !== D.FACTOID && l !== D.TWEET && /* @__PURE__ */ I(me, { children: [
541
541
  /* @__PURE__ */ c(pi, { children: d == null ? void 0 : d.title }),
542
- /* @__PURE__ */ c(fi, { onClick: o, children: "Answer" })
542
+ /* @__PURE__ */ c(di, { onClick: n, children: "Answer" })
543
543
  ] })
544
544
  ] }) : null;
545
545
  };
546
- var ft = {}, mt = {}, xe = {};
547
- xe.byteLength = Si;
548
- xe.toByteArray = Ni;
549
- xe.fromByteArray = zi;
550
- var Y = [], q = [], $i = typeof Uint8Array < "u" ? Uint8Array : Array, _e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
551
- for (var ae = 0, ki = _e.length; ae < ki; ++ae)
546
+ var dt = {}, ft = {}, xe = {};
547
+ xe.byteLength = ki;
548
+ xe.toByteArray = Li;
549
+ xe.fromByteArray = Ui;
550
+ var Y = [], q = [], Fi = typeof Uint8Array < "u" ? Uint8Array : Array, _e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
551
+ for (var ae = 0, $i = _e.length; ae < $i; ++ae)
552
552
  Y[ae] = _e[ae], q[_e.charCodeAt(ae)] = ae;
553
553
  q["-".charCodeAt(0)] = 62;
554
554
  q["_".charCodeAt(0)] = 63;
555
- function gt(s) {
556
- var o = s.length;
557
- if (o % 4 > 0)
555
+ function mt(s) {
556
+ var n = s.length;
557
+ if (n % 4 > 0)
558
558
  throw new Error("Invalid string. Length must be a multiple of 4");
559
559
  var l = s.indexOf("=");
560
- l === -1 && (l = o);
561
- var d = l === o ? 0 : 4 - l % 4;
560
+ l === -1 && (l = n);
561
+ var d = l === n ? 0 : 4 - l % 4;
562
562
  return [l, d];
563
563
  }
564
- function Si(s) {
565
- var o = gt(s), l = o[0], d = o[1];
564
+ function ki(s) {
565
+ var n = mt(s), l = n[0], d = n[1];
566
566
  return (l + d) * 3 / 4 - d;
567
567
  }
568
- function Li(s, o, l) {
569
- return (o + l) * 3 / 4 - l;
568
+ function Si(s, n, l) {
569
+ return (n + l) * 3 / 4 - l;
570
570
  }
571
- function Ni(s) {
572
- var o, l = gt(s), d = l[0], m = l[1], g = new $i(Li(s, d, m)), f = 0, n = m > 0 ? d - 4 : d, w;
573
- for (w = 0; w < n; w += 4)
574
- o = q[s.charCodeAt(w)] << 18 | q[s.charCodeAt(w + 1)] << 12 | q[s.charCodeAt(w + 2)] << 6 | q[s.charCodeAt(w + 3)], g[f++] = o >> 16 & 255, g[f++] = o >> 8 & 255, g[f++] = o & 255;
575
- return m === 2 && (o = q[s.charCodeAt(w)] << 2 | q[s.charCodeAt(w + 1)] >> 4, g[f++] = o & 255), m === 1 && (o = q[s.charCodeAt(w)] << 10 | q[s.charCodeAt(w + 1)] << 4 | q[s.charCodeAt(w + 2)] >> 2, g[f++] = o >> 8 & 255, g[f++] = o & 255), g;
571
+ function Li(s) {
572
+ var n, l = mt(s), d = l[0], m = l[1], g = new Fi(Si(s, d, m)), f = 0, o = m > 0 ? d - 4 : d, w;
573
+ for (w = 0; w < o; w += 4)
574
+ n = q[s.charCodeAt(w)] << 18 | q[s.charCodeAt(w + 1)] << 12 | q[s.charCodeAt(w + 2)] << 6 | q[s.charCodeAt(w + 3)], g[f++] = n >> 16 & 255, g[f++] = n >> 8 & 255, g[f++] = n & 255;
575
+ return m === 2 && (n = q[s.charCodeAt(w)] << 2 | q[s.charCodeAt(w + 1)] >> 4, g[f++] = n & 255), m === 1 && (n = q[s.charCodeAt(w)] << 10 | q[s.charCodeAt(w + 1)] << 4 | q[s.charCodeAt(w + 2)] >> 2, g[f++] = n >> 8 & 255, g[f++] = n & 255), g;
576
576
  }
577
- function Ri(s) {
577
+ function Ni(s) {
578
578
  return Y[s >> 18 & 63] + Y[s >> 12 & 63] + Y[s >> 6 & 63] + Y[s & 63];
579
579
  }
580
- function Ui(s, o, l) {
581
- for (var d, m = [], g = o; g < l; g += 3)
582
- d = (s[g] << 16 & 16711680) + (s[g + 1] << 8 & 65280) + (s[g + 2] & 255), m.push(Ri(d));
580
+ function Ri(s, n, l) {
581
+ for (var d, m = [], g = n; g < l; g += 3)
582
+ d = (s[g] << 16 & 16711680) + (s[g + 1] << 8 & 65280) + (s[g + 2] & 255), m.push(Ni(d));
583
583
  return m.join("");
584
584
  }
585
- function zi(s) {
586
- for (var o, l = s.length, d = l % 3, m = [], g = 16383, f = 0, n = l - d; f < n; f += g)
587
- m.push(Ui(s, f, f + g > n ? n : f + g));
588
- return d === 1 ? (o = s[l - 1], m.push(
589
- Y[o >> 2] + Y[o << 4 & 63] + "=="
590
- )) : d === 2 && (o = (s[l - 2] << 8) + s[l - 1], m.push(
591
- Y[o >> 10] + Y[o >> 4 & 63] + Y[o << 2 & 63] + "="
585
+ function Ui(s) {
586
+ for (var n, l = s.length, d = l % 3, m = [], g = 16383, f = 0, o = l - d; f < o; f += g)
587
+ m.push(Ri(s, f, f + g > o ? o : f + g));
588
+ return d === 1 ? (n = s[l - 1], m.push(
589
+ Y[n >> 2] + Y[n << 4 & 63] + "=="
590
+ )) : d === 2 && (n = (s[l - 2] << 8) + s[l - 1], m.push(
591
+ Y[n >> 10] + Y[n >> 4 & 63] + Y[n << 2 & 63] + "="
592
592
  )), m.join("");
593
593
  }
594
- var ze = {};
594
+ var Ue = {};
595
595
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
596
- ze.read = function(s, o, l, d, m) {
597
- var g, f, n = m * 8 - d - 1, w = (1 << n) - 1, v = w >> 1, E = -7, C = l ? m - 1 : 0, y = l ? -1 : 1, A = s[o + C];
598
- for (C += y, g = A & (1 << -E) - 1, A >>= -E, E += n; E > 0; g = g * 256 + s[o + C], C += y, E -= 8)
596
+ Ue.read = function(s, n, l, d, m) {
597
+ var g, f, o = m * 8 - d - 1, w = (1 << o) - 1, v = w >> 1, E = -7, C = l ? m - 1 : 0, y = l ? -1 : 1, A = s[n + C];
598
+ for (C += y, g = A & (1 << -E) - 1, A >>= -E, E += o; E > 0; g = g * 256 + s[n + C], C += y, E -= 8)
599
599
  ;
600
- for (f = g & (1 << -E) - 1, g >>= -E, E += d; E > 0; f = f * 256 + s[o + C], C += y, E -= 8)
600
+ for (f = g & (1 << -E) - 1, g >>= -E, E += d; E > 0; f = f * 256 + s[n + C], C += y, E -= 8)
601
601
  ;
602
602
  if (g === 0)
603
603
  g = 1 - v;
@@ -608,11 +608,11 @@ ze.read = function(s, o, l, d, m) {
608
608
  }
609
609
  return (A ? -1 : 1) * f * Math.pow(2, g - d);
610
610
  };
611
- ze.write = function(s, o, l, d, m, g) {
612
- var f, n, w, v = g * 8 - m - 1, E = (1 << v) - 1, C = E >> 1, y = m === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, A = d ? 0 : g - 1, x = d ? 1 : -1, B = o < 0 || o === 0 && 1 / o < 0 ? 1 : 0;
613
- for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (n = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (w = Math.pow(2, -f)) < 1 && (f--, w *= 2), f + C >= 1 ? o += y / w : o += y * Math.pow(2, 1 - C), o * w >= 2 && (f++, w /= 2), f + C >= E ? (n = 0, f = E) : f + C >= 1 ? (n = (o * w - 1) * Math.pow(2, m), f = f + C) : (n = o * Math.pow(2, C - 1) * Math.pow(2, m), f = 0)); m >= 8; s[l + A] = n & 255, A += x, n /= 256, m -= 8)
611
+ Ue.write = function(s, n, l, d, m, g) {
612
+ var f, o, w, v = g * 8 - m - 1, E = (1 << v) - 1, C = E >> 1, y = m === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, A = d ? 0 : g - 1, x = d ? 1 : -1, B = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
613
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, f = E) : (f = Math.floor(Math.log(n) / Math.LN2), n * (w = Math.pow(2, -f)) < 1 && (f--, w *= 2), f + C >= 1 ? n += y / w : n += y * Math.pow(2, 1 - C), n * w >= 2 && (f++, w /= 2), f + C >= E ? (o = 0, f = E) : f + C >= 1 ? (o = (n * w - 1) * Math.pow(2, m), f = f + C) : (o = n * Math.pow(2, C - 1) * Math.pow(2, m), f = 0)); m >= 8; s[l + A] = o & 255, A += x, o /= 256, m -= 8)
614
614
  ;
615
- for (f = f << m | n, v += m; v > 0; s[l + A] = f & 255, A += x, f /= 256, v -= 8)
615
+ for (f = f << m | o, v += m; v > 0; s[l + A] = f & 255, A += x, f /= 256, v -= 8)
616
616
  ;
617
617
  s[l + A - x] |= B * 128;
618
618
  };
@@ -623,10 +623,10 @@ ze.write = function(s, o, l, d, m, g) {
623
623
  * @license MIT
624
624
  */
625
625
  (function(s) {
626
- const o = xe, l = ze, d = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
627
- s.Buffer = n, s.SlowBuffer = F, s.INSPECT_MAX_BYTES = 50;
626
+ const n = xe, l = Ue, d = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
627
+ s.Buffer = o, s.SlowBuffer = F, s.INSPECT_MAX_BYTES = 50;
628
628
  const m = 2147483647;
629
- s.kMaxLength = m, n.TYPED_ARRAY_SUPPORT = g(), !n.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
629
+ s.kMaxLength = m, o.TYPED_ARRAY_SUPPORT = g(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
630
630
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
631
631
  );
632
632
  function g() {
@@ -639,16 +639,16 @@ ze.write = function(s, o, l, d, m, g) {
639
639
  return !1;
640
640
  }
641
641
  }
642
- Object.defineProperty(n.prototype, "parent", {
642
+ Object.defineProperty(o.prototype, "parent", {
643
643
  enumerable: !0,
644
644
  get: function() {
645
- if (n.isBuffer(this))
645
+ if (o.isBuffer(this))
646
646
  return this.buffer;
647
647
  }
648
- }), Object.defineProperty(n.prototype, "offset", {
648
+ }), Object.defineProperty(o.prototype, "offset", {
649
649
  enumerable: !0,
650
650
  get: function() {
651
- if (n.isBuffer(this))
651
+ if (o.isBuffer(this))
652
652
  return this.byteOffset;
653
653
  }
654
654
  });
@@ -656,9 +656,9 @@ ze.write = function(s, o, l, d, m, g) {
656
656
  if (r > m)
657
657
  throw new RangeError('The value "' + r + '" is invalid for option "size"');
658
658
  const e = new Uint8Array(r);
659
- return Object.setPrototypeOf(e, n.prototype), e;
659
+ return Object.setPrototypeOf(e, o.prototype), e;
660
660
  }
661
- function n(r, e, t) {
661
+ function o(r, e, t) {
662
662
  if (typeof r == "number") {
663
663
  if (typeof e == "string")
664
664
  throw new TypeError(
@@ -668,7 +668,7 @@ ze.write = function(s, o, l, d, m, g) {
668
668
  }
669
669
  return w(r, e, t);
670
670
  }
671
- n.poolSize = 8192;
671
+ o.poolSize = 8192;
672
672
  function w(r, e, t) {
673
673
  if (typeof r == "string")
674
674
  return y(r, e);
@@ -686,19 +686,19 @@ ze.write = function(s, o, l, d, m, g) {
686
686
  );
687
687
  const i = r.valueOf && r.valueOf();
688
688
  if (i != null && i !== r)
689
- return n.from(i, e, t);
689
+ return o.from(i, e, t);
690
690
  const a = N(r);
691
691
  if (a)
692
692
  return a;
693
693
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof r[Symbol.toPrimitive] == "function")
694
- return n.from(r[Symbol.toPrimitive]("string"), e, t);
694
+ return o.from(r[Symbol.toPrimitive]("string"), e, t);
695
695
  throw new TypeError(
696
696
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof r
697
697
  );
698
698
  }
699
- n.from = function(r, e, t) {
699
+ o.from = function(r, e, t) {
700
700
  return w(r, e, t);
701
- }, Object.setPrototypeOf(n.prototype, Uint8Array.prototype), Object.setPrototypeOf(n, Uint8Array);
701
+ }, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
702
702
  function v(r) {
703
703
  if (typeof r != "number")
704
704
  throw new TypeError('"size" argument must be of type number');
@@ -708,19 +708,19 @@ ze.write = function(s, o, l, d, m, g) {
708
708
  function E(r, e, t) {
709
709
  return v(r), r <= 0 ? f(r) : e !== void 0 ? typeof t == "string" ? f(r).fill(e, t) : f(r).fill(e) : f(r);
710
710
  }
711
- n.alloc = function(r, e, t) {
711
+ o.alloc = function(r, e, t) {
712
712
  return E(r, e, t);
713
713
  };
714
714
  function C(r) {
715
715
  return v(r), f(r < 0 ? 0 : _(r) | 0);
716
716
  }
717
- n.allocUnsafe = function(r) {
717
+ o.allocUnsafe = function(r) {
718
718
  return C(r);
719
- }, n.allocUnsafeSlow = function(r) {
719
+ }, o.allocUnsafeSlow = function(r) {
720
720
  return C(r);
721
721
  };
722
722
  function y(r, e) {
723
- if ((typeof e != "string" || e === "") && (e = "utf8"), !n.isEncoding(e))
723
+ if ((typeof e != "string" || e === "") && (e = "utf8"), !o.isEncoding(e))
724
724
  throw new TypeError("Unknown encoding: " + e);
725
725
  const t = U(r, e) | 0;
726
726
  let i = f(t);
@@ -746,10 +746,10 @@ ze.write = function(s, o, l, d, m, g) {
746
746
  if (r.byteLength < e + (t || 0))
747
747
  throw new RangeError('"length" is outside of buffer bounds');
748
748
  let i;
749
- return e === void 0 && t === void 0 ? i = new Uint8Array(r) : t === void 0 ? i = new Uint8Array(r, e) : i = new Uint8Array(r, e, t), Object.setPrototypeOf(i, n.prototype), i;
749
+ return e === void 0 && t === void 0 ? i = new Uint8Array(r) : t === void 0 ? i = new Uint8Array(r, e) : i = new Uint8Array(r, e, t), Object.setPrototypeOf(i, o.prototype), i;
750
750
  }
751
751
  function N(r) {
752
- if (n.isBuffer(r)) {
752
+ if (o.isBuffer(r)) {
753
753
  const e = _(r.length) | 0, t = f(e);
754
754
  return t.length === 0 || r.copy(t, 0, 0, e), t;
755
755
  }
@@ -764,12 +764,12 @@ ze.write = function(s, o, l, d, m, g) {
764
764
  return r | 0;
765
765
  }
766
766
  function F(r) {
767
- return +r != r && (r = 0), n.alloc(+r);
767
+ return +r != r && (r = 0), o.alloc(+r);
768
768
  }
769
- n.isBuffer = function(e) {
770
- return e != null && e._isBuffer === !0 && e !== n.prototype;
771
- }, n.compare = function(e, t) {
772
- if (G(e, Uint8Array) && (e = n.from(e, e.offset, e.byteLength)), G(t, Uint8Array) && (t = n.from(t, t.offset, t.byteLength)), !n.isBuffer(e) || !n.isBuffer(t))
769
+ o.isBuffer = function(e) {
770
+ return e != null && e._isBuffer === !0 && e !== o.prototype;
771
+ }, o.compare = function(e, t) {
772
+ if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), G(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(e) || !o.isBuffer(t))
773
773
  throw new TypeError(
774
774
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
775
775
  );
@@ -782,7 +782,7 @@ ze.write = function(s, o, l, d, m, g) {
782
782
  break;
783
783
  }
784
784
  return i < a ? -1 : a < i ? 1 : 0;
785
- }, n.isEncoding = function(e) {
785
+ }, o.isEncoding = function(e) {
786
786
  switch (String(e).toLowerCase()) {
787
787
  case "hex":
788
788
  case "utf8":
@@ -799,26 +799,26 @@ ze.write = function(s, o, l, d, m, g) {
799
799
  default:
800
800
  return !1;
801
801
  }
802
- }, n.concat = function(e, t) {
802
+ }, o.concat = function(e, t) {
803
803
  if (!Array.isArray(e))
804
804
  throw new TypeError('"list" argument must be an Array of Buffers');
805
805
  if (e.length === 0)
806
- return n.alloc(0);
806
+ return o.alloc(0);
807
807
  let i;
808
808
  if (t === void 0)
809
809
  for (t = 0, i = 0; i < e.length; ++i)
810
810
  t += e[i].length;
811
- const a = n.allocUnsafe(t);
811
+ const a = o.allocUnsafe(t);
812
812
  let u = 0;
813
813
  for (i = 0; i < e.length; ++i) {
814
814
  let p = e[i];
815
815
  if (G(p, Uint8Array))
816
- u + p.length > a.length ? (n.isBuffer(p) || (p = n.from(p)), p.copy(a, u)) : Uint8Array.prototype.set.call(
816
+ u + p.length > a.length ? (o.isBuffer(p) || (p = o.from(p)), p.copy(a, u)) : Uint8Array.prototype.set.call(
817
817
  a,
818
818
  p,
819
819
  u
820
820
  );
821
- else if (n.isBuffer(p))
821
+ else if (o.isBuffer(p))
822
822
  p.copy(a, u);
823
823
  else
824
824
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -827,7 +827,7 @@ ze.write = function(s, o, l, d, m, g) {
827
827
  return a;
828
828
  };
829
829
  function U(r, e) {
830
- if (n.isBuffer(r))
830
+ if (o.isBuffer(r))
831
831
  return r.length;
832
832
  if (ArrayBuffer.isView(r) || G(r, ArrayBuffer))
833
833
  return r.byteLength;
@@ -856,82 +856,82 @@ ze.write = function(s, o, l, d, m, g) {
856
856
  case "hex":
857
857
  return t >>> 1;
858
858
  case "base64":
859
- return Qe(r).length;
859
+ return Ve(r).length;
860
860
  default:
861
861
  if (a)
862
862
  return i ? -1 : Ee(r).length;
863
863
  e = ("" + e).toLowerCase(), a = !0;
864
864
  }
865
865
  }
866
- n.byteLength = U;
867
- function V(r, e, t) {
866
+ o.byteLength = U;
867
+ function Q(r, e, t) {
868
868
  let i = !1;
869
869
  if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
870
870
  return "";
871
871
  for (r || (r = "utf8"); ; )
872
872
  switch (r) {
873
873
  case "hex":
874
- return St(this, e, t);
874
+ return kt(this, e, t);
875
875
  case "utf8":
876
876
  case "utf-8":
877
- return Pe(this, e, t);
877
+ return De(this, e, t);
878
878
  case "ascii":
879
- return $t(this, e, t);
879
+ return Ft(this, e, t);
880
880
  case "latin1":
881
881
  case "binary":
882
- return kt(this, e, t);
882
+ return $t(this, e, t);
883
883
  case "base64":
884
- return Tt(this, e, t);
884
+ return Ct(this, e, t);
885
885
  case "ucs2":
886
886
  case "ucs-2":
887
887
  case "utf16le":
888
888
  case "utf-16le":
889
- return Lt(this, e, t);
889
+ return St(this, e, t);
890
890
  default:
891
891
  if (i)
892
892
  throw new TypeError("Unknown encoding: " + r);
893
893
  r = (r + "").toLowerCase(), i = !0;
894
894
  }
895
895
  }
896
- n.prototype._isBuffer = !0;
896
+ o.prototype._isBuffer = !0;
897
897
  function M(r, e, t) {
898
898
  const i = r[e];
899
899
  r[e] = r[t], r[t] = i;
900
900
  }
901
- n.prototype.swap16 = function() {
901
+ o.prototype.swap16 = function() {
902
902
  const e = this.length;
903
903
  if (e % 2 !== 0)
904
904
  throw new RangeError("Buffer size must be a multiple of 16-bits");
905
905
  for (let t = 0; t < e; t += 2)
906
906
  M(this, t, t + 1);
907
907
  return this;
908
- }, n.prototype.swap32 = function() {
908
+ }, o.prototype.swap32 = function() {
909
909
  const e = this.length;
910
910
  if (e % 4 !== 0)
911
911
  throw new RangeError("Buffer size must be a multiple of 32-bits");
912
912
  for (let t = 0; t < e; t += 4)
913
913
  M(this, t, t + 3), M(this, t + 1, t + 2);
914
914
  return this;
915
- }, n.prototype.swap64 = function() {
915
+ }, o.prototype.swap64 = function() {
916
916
  const e = this.length;
917
917
  if (e % 8 !== 0)
918
918
  throw new RangeError("Buffer size must be a multiple of 64-bits");
919
919
  for (let t = 0; t < e; t += 8)
920
920
  M(this, t, t + 7), M(this, t + 1, t + 6), M(this, t + 2, t + 5), M(this, t + 3, t + 4);
921
921
  return this;
922
- }, n.prototype.toString = function() {
922
+ }, o.prototype.toString = function() {
923
923
  const e = this.length;
924
- return e === 0 ? "" : arguments.length === 0 ? Pe(this, 0, e) : V.apply(this, arguments);
925
- }, n.prototype.toLocaleString = n.prototype.toString, n.prototype.equals = function(e) {
926
- if (!n.isBuffer(e))
924
+ return e === 0 ? "" : arguments.length === 0 ? De(this, 0, e) : Q.apply(this, arguments);
925
+ }, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(e) {
926
+ if (!o.isBuffer(e))
927
927
  throw new TypeError("Argument must be a Buffer");
928
- return this === e ? !0 : n.compare(this, e) === 0;
929
- }, n.prototype.inspect = function() {
928
+ return this === e ? !0 : o.compare(this, e) === 0;
929
+ }, o.prototype.inspect = function() {
930
930
  let e = "";
931
931
  const t = s.INSPECT_MAX_BYTES;
932
932
  return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
933
- }, d && (n.prototype[d] = n.prototype.inspect), n.prototype.compare = function(e, t, i, a, u) {
934
- if (G(e, Uint8Array) && (e = n.from(e, e.offset, e.byteLength)), !n.isBuffer(e))
933
+ }, d && (o.prototype[d] = o.prototype.inspect), o.prototype.compare = function(e, t, i, a, u) {
934
+ if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
935
935
  throw new TypeError(
936
936
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
937
937
  );
@@ -954,7 +954,7 @@ ze.write = function(s, o, l, d, m, g) {
954
954
  }
955
955
  return p < b ? -1 : b < p ? 1 : 0;
956
956
  };
957
- function Oe(r, e, t, i, a) {
957
+ function ze(r, e, t, i, a) {
958
958
  if (r.length === 0)
959
959
  return -1;
960
960
  if (typeof t == "string" ? (i = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, Be(t) && (t = a ? 0 : r.length - 1), t < 0 && (t = r.length + t), t >= r.length) {
@@ -966,13 +966,13 @@ ze.write = function(s, o, l, d, m, g) {
966
966
  t = 0;
967
967
  else
968
968
  return -1;
969
- if (typeof e == "string" && (e = n.from(e, i)), n.isBuffer(e))
970
- return e.length === 0 ? -1 : De(r, e, t, i, a);
969
+ if (typeof e == "string" && (e = o.from(e, i)), o.isBuffer(e))
970
+ return e.length === 0 ? -1 : Oe(r, e, t, i, a);
971
971
  if (typeof e == "number")
972
- return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? a ? Uint8Array.prototype.indexOf.call(r, e, t) : Uint8Array.prototype.lastIndexOf.call(r, e, t) : De(r, [e], t, i, a);
972
+ return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? a ? Uint8Array.prototype.indexOf.call(r, e, t) : Uint8Array.prototype.lastIndexOf.call(r, e, t) : Oe(r, [e], t, i, a);
973
973
  throw new TypeError("val must be string, number or Buffer");
974
974
  }
975
- function De(r, e, t, i, a) {
975
+ function Oe(r, e, t, i, a) {
976
976
  let u = 1, p = r.length, b = e.length;
977
977
  if (i !== void 0 && (i = String(i).toLowerCase(), i === "ucs2" || i === "ucs-2" || i === "utf16le" || i === "utf-16le")) {
978
978
  if (r.length < 2 || e.length < 2)
@@ -1004,14 +1004,14 @@ ze.write = function(s, o, l, d, m, g) {
1004
1004
  }
1005
1005
  return -1;
1006
1006
  }
1007
- n.prototype.includes = function(e, t, i) {
1007
+ o.prototype.includes = function(e, t, i) {
1008
1008
  return this.indexOf(e, t, i) !== -1;
1009
- }, n.prototype.indexOf = function(e, t, i) {
1010
- return Oe(this, e, t, i, !0);
1011
- }, n.prototype.lastIndexOf = function(e, t, i) {
1012
- return Oe(this, e, t, i, !1);
1009
+ }, o.prototype.indexOf = function(e, t, i) {
1010
+ return ze(this, e, t, i, !0);
1011
+ }, o.prototype.lastIndexOf = function(e, t, i) {
1012
+ return ze(this, e, t, i, !1);
1013
1013
  };
1014
- function Et(r, e, t, i) {
1014
+ function bt(r, e, t, i) {
1015
1015
  t = Number(t) || 0;
1016
1016
  const a = r.length - t;
1017
1017
  i ? (i = Number(i), i > a && (i = a)) : i = a;
@@ -1026,19 +1026,19 @@ ze.write = function(s, o, l, d, m, g) {
1026
1026
  }
1027
1027
  return p;
1028
1028
  }
1029
- function Bt(r, e, t, i) {
1029
+ function Et(r, e, t, i) {
1030
1030
  return ge(Ee(e, r.length - t), r, t, i);
1031
1031
  }
1032
+ function Bt(r, e, t, i) {
1033
+ return ge(Ut(e), r, t, i);
1034
+ }
1032
1035
  function vt(r, e, t, i) {
1033
- return ge(zt(e), r, t, i);
1036
+ return ge(Ve(e), r, t, i);
1034
1037
  }
1035
1038
  function _t(r, e, t, i) {
1036
- return ge(Qe(e), r, t, i);
1039
+ return ge(zt(e, r.length - t), r, t, i);
1037
1040
  }
1038
- function Ct(r, e, t, i) {
1039
- return ge(Ot(e, r.length - t), r, t, i);
1040
- }
1041
- n.prototype.write = function(e, t, i, a) {
1041
+ o.prototype.write = function(e, t, i, a) {
1042
1042
  if (t === void 0)
1043
1043
  a = "utf8", i = this.length, t = 0;
1044
1044
  else if (i === void 0 && typeof t == "string")
@@ -1057,36 +1057,36 @@ ze.write = function(s, o, l, d, m, g) {
1057
1057
  for (; ; )
1058
1058
  switch (a) {
1059
1059
  case "hex":
1060
- return Et(this, e, t, i);
1060
+ return bt(this, e, t, i);
1061
1061
  case "utf8":
1062
1062
  case "utf-8":
1063
- return Bt(this, e, t, i);
1063
+ return Et(this, e, t, i);
1064
1064
  case "ascii":
1065
1065
  case "latin1":
1066
1066
  case "binary":
1067
- return vt(this, e, t, i);
1067
+ return Bt(this, e, t, i);
1068
1068
  case "base64":
1069
- return _t(this, e, t, i);
1069
+ return vt(this, e, t, i);
1070
1070
  case "ucs2":
1071
1071
  case "ucs-2":
1072
1072
  case "utf16le":
1073
1073
  case "utf-16le":
1074
- return Ct(this, e, t, i);
1074
+ return _t(this, e, t, i);
1075
1075
  default:
1076
1076
  if (p)
1077
1077
  throw new TypeError("Unknown encoding: " + a);
1078
1078
  a = ("" + a).toLowerCase(), p = !0;
1079
1079
  }
1080
- }, n.prototype.toJSON = function() {
1080
+ }, o.prototype.toJSON = function() {
1081
1081
  return {
1082
1082
  type: "Buffer",
1083
1083
  data: Array.prototype.slice.call(this._arr || this, 0)
1084
1084
  };
1085
1085
  };
1086
- function Tt(r, e, t) {
1087
- return e === 0 && t === r.length ? o.fromByteArray(r) : o.fromByteArray(r.slice(e, t));
1086
+ function Ct(r, e, t) {
1087
+ return e === 0 && t === r.length ? n.fromByteArray(r) : n.fromByteArray(r.slice(e, t));
1088
1088
  }
1089
- function Pe(r, e, t) {
1089
+ function De(r, e, t) {
1090
1090
  t = Math.min(r.length, t);
1091
1091
  const i = [];
1092
1092
  let a = e;
@@ -1111,55 +1111,55 @@ ze.write = function(s, o, l, d, m, g) {
1111
1111
  }
1112
1112
  p === null ? (p = 65533, b = 1) : p > 65535 && (p -= 65536, i.push(p >>> 10 & 1023 | 55296), p = 56320 | p & 1023), i.push(p), a += b;
1113
1113
  }
1114
- return Ft(i);
1114
+ return Tt(i);
1115
1115
  }
1116
- const Me = 4096;
1117
- function Ft(r) {
1116
+ const Pe = 4096;
1117
+ function Tt(r) {
1118
1118
  const e = r.length;
1119
- if (e <= Me)
1119
+ if (e <= Pe)
1120
1120
  return String.fromCharCode.apply(String, r);
1121
1121
  let t = "", i = 0;
1122
1122
  for (; i < e; )
1123
1123
  t += String.fromCharCode.apply(
1124
1124
  String,
1125
- r.slice(i, i += Me)
1125
+ r.slice(i, i += Pe)
1126
1126
  );
1127
1127
  return t;
1128
1128
  }
1129
- function $t(r, e, t) {
1129
+ function Ft(r, e, t) {
1130
1130
  let i = "";
1131
1131
  t = Math.min(r.length, t);
1132
1132
  for (let a = e; a < t; ++a)
1133
1133
  i += String.fromCharCode(r[a] & 127);
1134
1134
  return i;
1135
1135
  }
1136
- function kt(r, e, t) {
1136
+ function $t(r, e, t) {
1137
1137
  let i = "";
1138
1138
  t = Math.min(r.length, t);
1139
1139
  for (let a = e; a < t; ++a)
1140
1140
  i += String.fromCharCode(r[a]);
1141
1141
  return i;
1142
1142
  }
1143
- function St(r, e, t) {
1143
+ function kt(r, e, t) {
1144
1144
  const i = r.length;
1145
1145
  (!e || e < 0) && (e = 0), (!t || t < 0 || t > i) && (t = i);
1146
1146
  let a = "";
1147
1147
  for (let u = e; u < t; ++u)
1148
- a += Dt[r[u]];
1148
+ a += Ot[r[u]];
1149
1149
  return a;
1150
1150
  }
1151
- function Lt(r, e, t) {
1151
+ function St(r, e, t) {
1152
1152
  const i = r.slice(e, t);
1153
1153
  let a = "";
1154
1154
  for (let u = 0; u < i.length - 1; u += 2)
1155
1155
  a += String.fromCharCode(i[u] + i[u + 1] * 256);
1156
1156
  return a;
1157
1157
  }
1158
- n.prototype.slice = function(e, t) {
1158
+ o.prototype.slice = function(e, t) {
1159
1159
  const i = this.length;
1160
1160
  e = ~~e, t = t === void 0 ? i : ~~t, e < 0 ? (e += i, e < 0 && (e = 0)) : e > i && (e = i), t < 0 ? (t += i, t < 0 && (t = 0)) : t > i && (t = i), t < e && (t = e);
1161
1161
  const a = this.subarray(e, t);
1162
- return Object.setPrototypeOf(a, n.prototype), a;
1162
+ return Object.setPrototypeOf(a, o.prototype), a;
1163
1163
  };
1164
1164
  function R(r, e, t) {
1165
1165
  if (r % 1 !== 0 || r < 0)
@@ -1167,97 +1167,97 @@ ze.write = function(s, o, l, d, m, g) {
1167
1167
  if (r + e > t)
1168
1168
  throw new RangeError("Trying to access beyond buffer length");
1169
1169
  }
1170
- n.prototype.readUintLE = n.prototype.readUIntLE = function(e, t, i) {
1170
+ o.prototype.readUintLE = o.prototype.readUIntLE = function(e, t, i) {
1171
1171
  e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1172
1172
  let a = this[e], u = 1, p = 0;
1173
1173
  for (; ++p < t && (u *= 256); )
1174
1174
  a += this[e + p] * u;
1175
1175
  return a;
1176
- }, n.prototype.readUintBE = n.prototype.readUIntBE = function(e, t, i) {
1176
+ }, o.prototype.readUintBE = o.prototype.readUIntBE = function(e, t, i) {
1177
1177
  e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1178
1178
  let a = this[e + --t], u = 1;
1179
1179
  for (; t > 0 && (u *= 256); )
1180
1180
  a += this[e + --t] * u;
1181
1181
  return a;
1182
- }, n.prototype.readUint8 = n.prototype.readUInt8 = function(e, t) {
1182
+ }, o.prototype.readUint8 = o.prototype.readUInt8 = function(e, t) {
1183
1183
  return e = e >>> 0, t || R(e, 1, this.length), this[e];
1184
- }, n.prototype.readUint16LE = n.prototype.readUInt16LE = function(e, t) {
1184
+ }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(e, t) {
1185
1185
  return e = e >>> 0, t || R(e, 2, this.length), this[e] | this[e + 1] << 8;
1186
- }, n.prototype.readUint16BE = n.prototype.readUInt16BE = function(e, t) {
1186
+ }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(e, t) {
1187
1187
  return e = e >>> 0, t || R(e, 2, this.length), this[e] << 8 | this[e + 1];
1188
- }, n.prototype.readUint32LE = n.prototype.readUInt32LE = function(e, t) {
1188
+ }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(e, t) {
1189
1189
  return e = e >>> 0, t || R(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
1190
- }, n.prototype.readUint32BE = n.prototype.readUInt32BE = function(e, t) {
1190
+ }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(e, t) {
1191
1191
  return e = e >>> 0, t || R(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
1192
- }, n.prototype.readBigUInt64LE = J(function(e) {
1192
+ }, o.prototype.readBigUInt64LE = J(function(e) {
1193
1193
  e = e >>> 0, ie(e, "offset");
1194
1194
  const t = this[e], i = this[e + 7];
1195
- (t === void 0 || i === void 0) && de(e, this.length - 8);
1195
+ (t === void 0 || i === void 0) && pe(e, this.length - 8);
1196
1196
  const a = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, u = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + i * 2 ** 24;
1197
1197
  return BigInt(a) + (BigInt(u) << BigInt(32));
1198
- }), n.prototype.readBigUInt64BE = J(function(e) {
1198
+ }), o.prototype.readBigUInt64BE = J(function(e) {
1199
1199
  e = e >>> 0, ie(e, "offset");
1200
1200
  const t = this[e], i = this[e + 7];
1201
- (t === void 0 || i === void 0) && de(e, this.length - 8);
1201
+ (t === void 0 || i === void 0) && pe(e, this.length - 8);
1202
1202
  const a = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], u = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i;
1203
1203
  return (BigInt(a) << BigInt(32)) + BigInt(u);
1204
- }), n.prototype.readIntLE = function(e, t, i) {
1204
+ }), o.prototype.readIntLE = function(e, t, i) {
1205
1205
  e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1206
1206
  let a = this[e], u = 1, p = 0;
1207
1207
  for (; ++p < t && (u *= 256); )
1208
1208
  a += this[e + p] * u;
1209
1209
  return u *= 128, a >= u && (a -= Math.pow(2, 8 * t)), a;
1210
- }, n.prototype.readIntBE = function(e, t, i) {
1210
+ }, o.prototype.readIntBE = function(e, t, i) {
1211
1211
  e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1212
1212
  let a = t, u = 1, p = this[e + --a];
1213
1213
  for (; a > 0 && (u *= 256); )
1214
1214
  p += this[e + --a] * u;
1215
1215
  return u *= 128, p >= u && (p -= Math.pow(2, 8 * t)), p;
1216
- }, n.prototype.readInt8 = function(e, t) {
1216
+ }, o.prototype.readInt8 = function(e, t) {
1217
1217
  return e = e >>> 0, t || R(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
1218
- }, n.prototype.readInt16LE = function(e, t) {
1218
+ }, o.prototype.readInt16LE = function(e, t) {
1219
1219
  e = e >>> 0, t || R(e, 2, this.length);
1220
1220
  const i = this[e] | this[e + 1] << 8;
1221
1221
  return i & 32768 ? i | 4294901760 : i;
1222
- }, n.prototype.readInt16BE = function(e, t) {
1222
+ }, o.prototype.readInt16BE = function(e, t) {
1223
1223
  e = e >>> 0, t || R(e, 2, this.length);
1224
1224
  const i = this[e + 1] | this[e] << 8;
1225
1225
  return i & 32768 ? i | 4294901760 : i;
1226
- }, n.prototype.readInt32LE = function(e, t) {
1226
+ }, o.prototype.readInt32LE = function(e, t) {
1227
1227
  return e = e >>> 0, t || R(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
1228
- }, n.prototype.readInt32BE = function(e, t) {
1228
+ }, o.prototype.readInt32BE = function(e, t) {
1229
1229
  return e = e >>> 0, t || R(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
1230
- }, n.prototype.readBigInt64LE = J(function(e) {
1230
+ }, o.prototype.readBigInt64LE = J(function(e) {
1231
1231
  e = e >>> 0, ie(e, "offset");
1232
1232
  const t = this[e], i = this[e + 7];
1233
- (t === void 0 || i === void 0) && de(e, this.length - 8);
1233
+ (t === void 0 || i === void 0) && pe(e, this.length - 8);
1234
1234
  const a = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (i << 24);
1235
1235
  return (BigInt(a) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
1236
- }), n.prototype.readBigInt64BE = J(function(e) {
1236
+ }), o.prototype.readBigInt64BE = J(function(e) {
1237
1237
  e = e >>> 0, ie(e, "offset");
1238
1238
  const t = this[e], i = this[e + 7];
1239
- (t === void 0 || i === void 0) && de(e, this.length - 8);
1239
+ (t === void 0 || i === void 0) && pe(e, this.length - 8);
1240
1240
  const a = (t << 24) + // Overflow
1241
1241
  this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
1242
1242
  return (BigInt(a) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i);
1243
- }), n.prototype.readFloatLE = function(e, t) {
1243
+ }), o.prototype.readFloatLE = function(e, t) {
1244
1244
  return e = e >>> 0, t || R(e, 4, this.length), l.read(this, e, !0, 23, 4);
1245
- }, n.prototype.readFloatBE = function(e, t) {
1245
+ }, o.prototype.readFloatBE = function(e, t) {
1246
1246
  return e = e >>> 0, t || R(e, 4, this.length), l.read(this, e, !1, 23, 4);
1247
- }, n.prototype.readDoubleLE = function(e, t) {
1247
+ }, o.prototype.readDoubleLE = function(e, t) {
1248
1248
  return e = e >>> 0, t || R(e, 8, this.length), l.read(this, e, !0, 52, 8);
1249
- }, n.prototype.readDoubleBE = function(e, t) {
1249
+ }, o.prototype.readDoubleBE = function(e, t) {
1250
1250
  return e = e >>> 0, t || R(e, 8, this.length), l.read(this, e, !1, 52, 8);
1251
1251
  };
1252
1252
  function O(r, e, t, i, a, u) {
1253
- if (!n.isBuffer(r))
1253
+ if (!o.isBuffer(r))
1254
1254
  throw new TypeError('"buffer" argument must be a Buffer instance');
1255
1255
  if (e > a || e < u)
1256
1256
  throw new RangeError('"value" argument is out of bounds');
1257
1257
  if (t + i > r.length)
1258
1258
  throw new RangeError("Index out of range");
1259
1259
  }
1260
- n.prototype.writeUintLE = n.prototype.writeUIntLE = function(e, t, i, a) {
1260
+ o.prototype.writeUintLE = o.prototype.writeUIntLE = function(e, t, i, a) {
1261
1261
  if (e = +e, t = t >>> 0, i = i >>> 0, !a) {
1262
1262
  const b = Math.pow(2, 8 * i) - 1;
1263
1263
  O(this, e, t, i, b, 0);
@@ -1266,7 +1266,7 @@ ze.write = function(s, o, l, d, m, g) {
1266
1266
  for (this[t] = e & 255; ++p < i && (u *= 256); )
1267
1267
  this[t + p] = e / u & 255;
1268
1268
  return t + i;
1269
- }, n.prototype.writeUintBE = n.prototype.writeUIntBE = function(e, t, i, a) {
1269
+ }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(e, t, i, a) {
1270
1270
  if (e = +e, t = t >>> 0, i = i >>> 0, !a) {
1271
1271
  const b = Math.pow(2, 8 * i) - 1;
1272
1272
  O(this, e, t, i, b, 0);
@@ -1275,36 +1275,36 @@ ze.write = function(s, o, l, d, m, g) {
1275
1275
  for (this[t + u] = e & 255; --u >= 0 && (p *= 256); )
1276
1276
  this[t + u] = e / p & 255;
1277
1277
  return t + i;
1278
- }, n.prototype.writeUint8 = n.prototype.writeUInt8 = function(e, t, i) {
1278
+ }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(e, t, i) {
1279
1279
  return e = +e, t = t >>> 0, i || O(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
1280
- }, n.prototype.writeUint16LE = n.prototype.writeUInt16LE = function(e, t, i) {
1280
+ }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(e, t, i) {
1281
1281
  return e = +e, t = t >>> 0, i || O(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
1282
- }, n.prototype.writeUint16BE = n.prototype.writeUInt16BE = function(e, t, i) {
1282
+ }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(e, t, i) {
1283
1283
  return e = +e, t = t >>> 0, i || O(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
1284
- }, n.prototype.writeUint32LE = n.prototype.writeUInt32LE = function(e, t, i) {
1284
+ }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(e, t, i) {
1285
1285
  return e = +e, t = t >>> 0, i || O(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
1286
- }, n.prototype.writeUint32BE = n.prototype.writeUInt32BE = function(e, t, i) {
1286
+ }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(e, t, i) {
1287
1287
  return e = +e, t = t >>> 0, i || O(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
1288
1288
  };
1289
- function qe(r, e, t, i, a) {
1290
- Ve(e, i, a, r, t, 7);
1289
+ function Me(r, e, t, i, a) {
1290
+ Ye(e, i, a, r, t, 7);
1291
1291
  let u = Number(e & BigInt(4294967295));
1292
1292
  r[t++] = u, u = u >> 8, r[t++] = u, u = u >> 8, r[t++] = u, u = u >> 8, r[t++] = u;
1293
1293
  let p = Number(e >> BigInt(32) & BigInt(4294967295));
1294
1294
  return r[t++] = p, p = p >> 8, r[t++] = p, p = p >> 8, r[t++] = p, p = p >> 8, r[t++] = p, t;
1295
1295
  }
1296
- function je(r, e, t, i, a) {
1297
- Ve(e, i, a, r, t, 7);
1296
+ function qe(r, e, t, i, a) {
1297
+ Ye(e, i, a, r, t, 7);
1298
1298
  let u = Number(e & BigInt(4294967295));
1299
1299
  r[t + 7] = u, u = u >> 8, r[t + 6] = u, u = u >> 8, r[t + 5] = u, u = u >> 8, r[t + 4] = u;
1300
1300
  let p = Number(e >> BigInt(32) & BigInt(4294967295));
1301
1301
  return r[t + 3] = p, p = p >> 8, r[t + 2] = p, p = p >> 8, r[t + 1] = p, p = p >> 8, r[t] = p, t + 8;
1302
1302
  }
1303
- n.prototype.writeBigUInt64LE = J(function(e, t = 0) {
1303
+ o.prototype.writeBigUInt64LE = J(function(e, t = 0) {
1304
+ return Me(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
1305
+ }), o.prototype.writeBigUInt64BE = J(function(e, t = 0) {
1304
1306
  return qe(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
1305
- }), n.prototype.writeBigUInt64BE = J(function(e, t = 0) {
1306
- return je(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
1307
- }), n.prototype.writeIntLE = function(e, t, i, a) {
1307
+ }), o.prototype.writeIntLE = function(e, t, i, a) {
1308
1308
  if (e = +e, t = t >>> 0, !a) {
1309
1309
  const k = Math.pow(2, 8 * i - 1);
1310
1310
  O(this, e, t, i, k - 1, -k);
@@ -1313,7 +1313,7 @@ ze.write = function(s, o, l, d, m, g) {
1313
1313
  for (this[t] = e & 255; ++u < i && (p *= 256); )
1314
1314
  e < 0 && b === 0 && this[t + u - 1] !== 0 && (b = 1), this[t + u] = (e / p >> 0) - b & 255;
1315
1315
  return t + i;
1316
- }, n.prototype.writeIntBE = function(e, t, i, a) {
1316
+ }, o.prototype.writeIntBE = function(e, t, i, a) {
1317
1317
  if (e = +e, t = t >>> 0, !a) {
1318
1318
  const k = Math.pow(2, 8 * i - 1);
1319
1319
  O(this, e, t, i, k - 1, -k);
@@ -1322,44 +1322,44 @@ ze.write = function(s, o, l, d, m, g) {
1322
1322
  for (this[t + u] = e & 255; --u >= 0 && (p *= 256); )
1323
1323
  e < 0 && b === 0 && this[t + u + 1] !== 0 && (b = 1), this[t + u] = (e / p >> 0) - b & 255;
1324
1324
  return t + i;
1325
- }, n.prototype.writeInt8 = function(e, t, i) {
1325
+ }, o.prototype.writeInt8 = function(e, t, i) {
1326
1326
  return e = +e, t = t >>> 0, i || O(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
1327
- }, n.prototype.writeInt16LE = function(e, t, i) {
1327
+ }, o.prototype.writeInt16LE = function(e, t, i) {
1328
1328
  return e = +e, t = t >>> 0, i || O(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
1329
- }, n.prototype.writeInt16BE = function(e, t, i) {
1329
+ }, o.prototype.writeInt16BE = function(e, t, i) {
1330
1330
  return e = +e, t = t >>> 0, i || O(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
1331
- }, n.prototype.writeInt32LE = function(e, t, i) {
1331
+ }, o.prototype.writeInt32LE = function(e, t, i) {
1332
1332
  return e = +e, t = t >>> 0, i || O(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
1333
- }, n.prototype.writeInt32BE = function(e, t, i) {
1333
+ }, o.prototype.writeInt32BE = function(e, t, i) {
1334
1334
  return e = +e, t = t >>> 0, i || O(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
1335
- }, n.prototype.writeBigInt64LE = J(function(e, t = 0) {
1335
+ }, o.prototype.writeBigInt64LE = J(function(e, t = 0) {
1336
+ return Me(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1337
+ }), o.prototype.writeBigInt64BE = J(function(e, t = 0) {
1336
1338
  return qe(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1337
- }), n.prototype.writeBigInt64BE = J(function(e, t = 0) {
1338
- return je(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1339
1339
  });
1340
- function Ge(r, e, t, i, a, u) {
1340
+ function je(r, e, t, i, a, u) {
1341
1341
  if (t + i > r.length)
1342
1342
  throw new RangeError("Index out of range");
1343
1343
  if (t < 0)
1344
1344
  throw new RangeError("Index out of range");
1345
1345
  }
1346
+ function Ge(r, e, t, i, a) {
1347
+ return e = +e, t = t >>> 0, a || je(r, e, t, 4), l.write(r, e, t, i, 23, 4), t + 4;
1348
+ }
1349
+ o.prototype.writeFloatLE = function(e, t, i) {
1350
+ return Ge(this, e, t, !0, i);
1351
+ }, o.prototype.writeFloatBE = function(e, t, i) {
1352
+ return Ge(this, e, t, !1, i);
1353
+ };
1346
1354
  function We(r, e, t, i, a) {
1347
- return e = +e, t = t >>> 0, a || Ge(r, e, t, 4), l.write(r, e, t, i, 23, 4), t + 4;
1355
+ return e = +e, t = t >>> 0, a || je(r, e, t, 8), l.write(r, e, t, i, 52, 8), t + 8;
1348
1356
  }
1349
- n.prototype.writeFloatLE = function(e, t, i) {
1357
+ o.prototype.writeDoubleLE = function(e, t, i) {
1350
1358
  return We(this, e, t, !0, i);
1351
- }, n.prototype.writeFloatBE = function(e, t, i) {
1359
+ }, o.prototype.writeDoubleBE = function(e, t, i) {
1352
1360
  return We(this, e, t, !1, i);
1353
- };
1354
- function He(r, e, t, i, a) {
1355
- return e = +e, t = t >>> 0, a || Ge(r, e, t, 8), l.write(r, e, t, i, 52, 8), t + 8;
1356
- }
1357
- n.prototype.writeDoubleLE = function(e, t, i) {
1358
- return He(this, e, t, !0, i);
1359
- }, n.prototype.writeDoubleBE = function(e, t, i) {
1360
- return He(this, e, t, !1, i);
1361
- }, n.prototype.copy = function(e, t, i, a) {
1362
- if (!n.isBuffer(e))
1361
+ }, o.prototype.copy = function(e, t, i, a) {
1362
+ if (!o.isBuffer(e))
1363
1363
  throw new TypeError("argument should be a Buffer");
1364
1364
  if (i || (i = 0), !a && a !== 0 && (a = this.length), t >= e.length && (t = e.length), t || (t = 0), a > 0 && a < i && (a = i), a === i || e.length === 0 || this.length === 0)
1365
1365
  return 0;
@@ -1376,11 +1376,11 @@ ze.write = function(s, o, l, d, m, g) {
1376
1376
  this.subarray(i, a),
1377
1377
  t
1378
1378
  ), u;
1379
- }, n.prototype.fill = function(e, t, i, a) {
1379
+ }, o.prototype.fill = function(e, t, i, a) {
1380
1380
  if (typeof e == "string") {
1381
1381
  if (typeof t == "string" ? (a = t, t = 0, i = this.length) : typeof i == "string" && (a = i, i = this.length), a !== void 0 && typeof a != "string")
1382
1382
  throw new TypeError("encoding must be a string");
1383
- if (typeof a == "string" && !n.isEncoding(a))
1383
+ if (typeof a == "string" && !o.isEncoding(a))
1384
1384
  throw new TypeError("Unknown encoding: " + a);
1385
1385
  if (e.length === 1) {
1386
1386
  const p = e.charCodeAt(0);
@@ -1398,7 +1398,7 @@ ze.write = function(s, o, l, d, m, g) {
1398
1398
  for (u = t; u < i; ++u)
1399
1399
  this[u] = e;
1400
1400
  else {
1401
- const p = n.isBuffer(e) ? e : n.from(e, a), b = p.length;
1401
+ const p = o.isBuffer(e) ? e : o.from(e, a), b = p.length;
1402
1402
  if (b === 0)
1403
1403
  throw new TypeError('The value "' + e + '" is invalid for argument "value"');
1404
1404
  for (u = 0; u < i - t; ++u)
@@ -1448,42 +1448,42 @@ ze.write = function(s, o, l, d, m, g) {
1448
1448
  "ERR_OUT_OF_RANGE",
1449
1449
  function(r, e, t) {
1450
1450
  let i = `The value of "${r}" is out of range.`, a = t;
1451
- return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? a = Ye(String(t)) : typeof t == "bigint" && (a = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (a = Ye(a)), a += "n"), i += ` It must be ${e}. Received ${a}`, i;
1451
+ return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? a = He(String(t)) : typeof t == "bigint" && (a = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (a = He(a)), a += "n"), i += ` It must be ${e}. Received ${a}`, i;
1452
1452
  },
1453
1453
  RangeError
1454
1454
  );
1455
- function Ye(r) {
1455
+ function He(r) {
1456
1456
  let e = "", t = r.length;
1457
1457
  const i = r[0] === "-" ? 1 : 0;
1458
1458
  for (; t >= i + 4; t -= 3)
1459
1459
  e = `_${r.slice(t - 3, t)}${e}`;
1460
1460
  return `${r.slice(0, t)}${e}`;
1461
1461
  }
1462
- function Nt(r, e, t) {
1463
- ie(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && de(e, r.length - (t + 1));
1462
+ function Lt(r, e, t) {
1463
+ ie(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && pe(e, r.length - (t + 1));
1464
1464
  }
1465
- function Ve(r, e, t, i, a, u) {
1465
+ function Ye(r, e, t, i, a, u) {
1466
1466
  if (r > t || r < e) {
1467
1467
  const p = typeof e == "bigint" ? "n" : "";
1468
1468
  let b;
1469
1469
  throw u > 3 ? e === 0 || e === BigInt(0) ? b = `>= 0${p} and < 2${p} ** ${(u + 1) * 8}${p}` : b = `>= -(2${p} ** ${(u + 1) * 8 - 1}${p}) and < 2 ** ${(u + 1) * 8 - 1}${p}` : b = `>= ${e}${p} and <= ${t}${p}`, new re.ERR_OUT_OF_RANGE("value", b, r);
1470
1470
  }
1471
- Nt(i, a, u);
1471
+ Lt(i, a, u);
1472
1472
  }
1473
1473
  function ie(r, e) {
1474
1474
  if (typeof r != "number")
1475
1475
  throw new re.ERR_INVALID_ARG_TYPE(e, "number", r);
1476
1476
  }
1477
- function de(r, e, t) {
1477
+ function pe(r, e, t) {
1478
1478
  throw Math.floor(r) !== r ? (ie(r, t), new re.ERR_OUT_OF_RANGE(t || "offset", "an integer", r)) : e < 0 ? new re.ERR_BUFFER_OUT_OF_BOUNDS() : new re.ERR_OUT_OF_RANGE(
1479
1479
  t || "offset",
1480
1480
  `>= ${t ? 1 : 0} and <= ${e}`,
1481
1481
  r
1482
1482
  );
1483
1483
  }
1484
- const Rt = /[^+/0-9A-Za-z-_]/g;
1485
- function Ut(r) {
1486
- if (r = r.split("=")[0], r = r.trim().replace(Rt, ""), r.length < 2)
1484
+ const Nt = /[^+/0-9A-Za-z-_]/g;
1485
+ function Rt(r) {
1486
+ if (r = r.split("=")[0], r = r.trim().replace(Nt, ""), r.length < 2)
1487
1487
  return "";
1488
1488
  for (; r.length % 4 !== 0; )
1489
1489
  r = r + "=";
@@ -1548,21 +1548,21 @@ ze.write = function(s, o, l, d, m, g) {
1548
1548
  }
1549
1549
  return u;
1550
1550
  }
1551
- function zt(r) {
1551
+ function Ut(r) {
1552
1552
  const e = [];
1553
1553
  for (let t = 0; t < r.length; ++t)
1554
1554
  e.push(r.charCodeAt(t) & 255);
1555
1555
  return e;
1556
1556
  }
1557
- function Ot(r, e) {
1557
+ function zt(r, e) {
1558
1558
  let t, i, a;
1559
1559
  const u = [];
1560
1560
  for (let p = 0; p < r.length && !((e -= 2) < 0); ++p)
1561
1561
  t = r.charCodeAt(p), i = t >> 8, a = t % 256, u.push(a), u.push(i);
1562
1562
  return u;
1563
1563
  }
1564
- function Qe(r) {
1565
- return o.toByteArray(Ut(r));
1564
+ function Ve(r) {
1565
+ return n.toByteArray(Rt(r));
1566
1566
  }
1567
1567
  function ge(r, e, t, i) {
1568
1568
  let a;
@@ -1576,7 +1576,7 @@ ze.write = function(s, o, l, d, m, g) {
1576
1576
  function Be(r) {
1577
1577
  return r !== r;
1578
1578
  }
1579
- const Dt = function() {
1579
+ const Ot = function() {
1580
1580
  const r = "0123456789abcdef", e = new Array(256);
1581
1581
  for (let t = 0; t < 16; ++t) {
1582
1582
  const i = t * 16;
@@ -1586,35 +1586,35 @@ ze.write = function(s, o, l, d, m, g) {
1586
1586
  return e;
1587
1587
  }();
1588
1588
  function J(r) {
1589
- return typeof BigInt > "u" ? Pt : r;
1589
+ return typeof BigInt > "u" ? Dt : r;
1590
1590
  }
1591
- function Pt() {
1591
+ function Dt() {
1592
1592
  throw new Error("BigInt not supported");
1593
1593
  }
1594
- })(mt);
1595
- var yt = { exports: {} }, L = yt.exports = {}, W, H;
1596
- function $e() {
1594
+ })(ft);
1595
+ var gt = { exports: {} }, L = gt.exports = {}, W, H;
1596
+ function Fe() {
1597
1597
  throw new Error("setTimeout has not been defined");
1598
1598
  }
1599
- function ke() {
1599
+ function $e() {
1600
1600
  throw new Error("clearTimeout has not been defined");
1601
1601
  }
1602
1602
  (function() {
1603
1603
  try {
1604
- typeof setTimeout == "function" ? W = setTimeout : W = $e;
1604
+ typeof setTimeout == "function" ? W = setTimeout : W = Fe;
1605
1605
  } catch {
1606
- W = $e;
1606
+ W = Fe;
1607
1607
  }
1608
1608
  try {
1609
- typeof clearTimeout == "function" ? H = clearTimeout : H = ke;
1609
+ typeof clearTimeout == "function" ? H = clearTimeout : H = $e;
1610
1610
  } catch {
1611
- H = ke;
1611
+ H = $e;
1612
1612
  }
1613
1613
  })();
1614
- function wt(s) {
1614
+ function yt(s) {
1615
1615
  if (W === setTimeout)
1616
1616
  return setTimeout(s, 0);
1617
- if ((W === $e || !W) && setTimeout)
1617
+ if ((W === Fe || !W) && setTimeout)
1618
1618
  return W = setTimeout, setTimeout(s, 0);
1619
1619
  try {
1620
1620
  return W(s, 0);
@@ -1626,10 +1626,10 @@ function wt(s) {
1626
1626
  }
1627
1627
  }
1628
1628
  }
1629
- function Oi(s) {
1629
+ function zi(s) {
1630
1630
  if (H === clearTimeout)
1631
1631
  return clearTimeout(s);
1632
- if ((H === ke || !H) && clearTimeout)
1632
+ if ((H === $e || !H) && clearTimeout)
1633
1633
  return H = clearTimeout, clearTimeout(s);
1634
1634
  try {
1635
1635
  return H(s);
@@ -1641,33 +1641,33 @@ function Oi(s) {
1641
1641
  }
1642
1642
  }
1643
1643
  }
1644
- var Q = [], ue = !1, te, Ie = -1;
1645
- function Di() {
1646
- !ue || !te || (ue = !1, te.length ? Q = te.concat(Q) : Ie = -1, Q.length && It());
1644
+ var K = [], ue = !1, te, Ie = -1;
1645
+ function Oi() {
1646
+ !ue || !te || (ue = !1, te.length ? K = te.concat(K) : Ie = -1, K.length && wt());
1647
1647
  }
1648
- function It() {
1648
+ function wt() {
1649
1649
  if (!ue) {
1650
- var s = wt(Di);
1650
+ var s = yt(Oi);
1651
1651
  ue = !0;
1652
- for (var o = Q.length; o; ) {
1653
- for (te = Q, Q = []; ++Ie < o; )
1652
+ for (var n = K.length; n; ) {
1653
+ for (te = K, K = []; ++Ie < n; )
1654
1654
  te && te[Ie].run();
1655
- Ie = -1, o = Q.length;
1655
+ Ie = -1, n = K.length;
1656
1656
  }
1657
- te = null, ue = !1, Oi(s);
1657
+ te = null, ue = !1, zi(s);
1658
1658
  }
1659
1659
  }
1660
1660
  L.nextTick = function(s) {
1661
- var o = new Array(arguments.length - 1);
1661
+ var n = new Array(arguments.length - 1);
1662
1662
  if (arguments.length > 1)
1663
1663
  for (var l = 1; l < arguments.length; l++)
1664
- o[l - 1] = arguments[l];
1665
- Q.push(new At(s, o)), Q.length === 1 && !ue && wt(It);
1664
+ n[l - 1] = arguments[l];
1665
+ K.push(new It(s, n)), K.length === 1 && !ue && yt(wt);
1666
1666
  };
1667
- function At(s, o) {
1668
- this.fun = s, this.array = o;
1667
+ function It(s, n) {
1668
+ this.fun = s, this.array = n;
1669
1669
  }
1670
- At.prototype.run = function() {
1670
+ It.prototype.run = function() {
1671
1671
  this.fun.apply(null, this.array);
1672
1672
  };
1673
1673
  L.title = "browser";
@@ -1702,42 +1702,42 @@ L.chdir = function(s) {
1702
1702
  L.umask = function() {
1703
1703
  return 0;
1704
1704
  };
1705
- var Pi = yt.exports;
1705
+ var Di = gt.exports;
1706
1706
  (function(s) {
1707
1707
  Object.defineProperty(s, Symbol.toStringTag, { value: "Module" });
1708
- const o = mt, l = Pi, d = (f) => f && f.__esModule ? f : { default: f }, m = d(l), g = globalThis || void 0 || self;
1709
- Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => o.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => m.default }), s.global = g;
1710
- })(ft);
1708
+ const n = ft, l = Di, d = (f) => f && f.__esModule ? f : { default: f }, m = d(l), g = globalThis || void 0 || self;
1709
+ Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => m.default }), s.global = g;
1710
+ })(dt);
1711
1711
  let j;
1712
- typeof window < "u" ? j = window : typeof self < "u" ? j = self : j = ft.global;
1713
- let Se = null, Le = null;
1714
- const lt = 20, Ce = j.clearTimeout, ct = j.setTimeout, Te = j.cancelAnimationFrame || j.mozCancelAnimationFrame || j.webkitCancelAnimationFrame, ut = j.requestAnimationFrame || j.mozRequestAnimationFrame || j.webkitRequestAnimationFrame;
1715
- Te == null || ut == null ? (Se = Ce, Le = function(o) {
1716
- return ct(o, lt);
1717
- }) : (Se = function([o, l]) {
1718
- Te(o), Ce(l);
1719
- }, Le = function(o) {
1720
- const l = ut(function() {
1721
- Ce(d), o();
1722
- }), d = ct(function() {
1723
- Te(l), o();
1724
- }, lt);
1712
+ typeof window < "u" ? j = window : typeof self < "u" ? j = self : j = dt.global;
1713
+ let ke = null, Se = null;
1714
+ const at = 20, Ce = j.clearTimeout, lt = j.setTimeout, Te = j.cancelAnimationFrame || j.mozCancelAnimationFrame || j.webkitCancelAnimationFrame, ct = j.requestAnimationFrame || j.mozRequestAnimationFrame || j.webkitRequestAnimationFrame;
1715
+ Te == null || ct == null ? (ke = Ce, Se = function(n) {
1716
+ return lt(n, at);
1717
+ }) : (ke = function([n, l]) {
1718
+ Te(n), Ce(l);
1719
+ }, Se = function(n) {
1720
+ const l = ct(function() {
1721
+ Ce(d), n();
1722
+ }), d = lt(function() {
1723
+ Te(l), n();
1724
+ }, at);
1725
1725
  return [l, d];
1726
1726
  });
1727
- function Mi(s) {
1728
- let o, l, d, m, g, f, n;
1727
+ function Pi(s) {
1728
+ let n, l, d, m, g, f, o;
1729
1729
  const w = typeof document < "u" && document.attachEvent;
1730
1730
  if (!w) {
1731
1731
  f = function(_) {
1732
- const F = _.__resizeTriggers__, U = F.firstElementChild, V = F.lastElementChild, M = U.firstElementChild;
1733
- V.scrollLeft = V.scrollWidth, V.scrollTop = V.scrollHeight, M.style.width = U.offsetWidth + 1 + "px", M.style.height = U.offsetHeight + 1 + "px", U.scrollLeft = U.scrollWidth, U.scrollTop = U.scrollHeight;
1732
+ const F = _.__resizeTriggers__, U = F.firstElementChild, Q = F.lastElementChild, M = U.firstElementChild;
1733
+ Q.scrollLeft = Q.scrollWidth, Q.scrollTop = Q.scrollHeight, M.style.width = U.offsetWidth + 1 + "px", M.style.height = U.offsetHeight + 1 + "px", U.scrollLeft = U.scrollWidth, U.scrollTop = U.scrollHeight;
1734
1734
  }, g = function(_) {
1735
1735
  return _.offsetWidth !== _.__resizeLast__.width || _.offsetHeight !== _.__resizeLast__.height;
1736
- }, n = function(_) {
1736
+ }, o = function(_) {
1737
1737
  if (_.target.className && typeof _.target.className.indexOf == "function" && _.target.className.indexOf("contract-trigger") < 0 && _.target.className.indexOf("expand-trigger") < 0)
1738
1738
  return;
1739
1739
  const F = this;
1740
- f(this), this.__resizeRAF__ && Se(this.__resizeRAF__), this.__resizeRAF__ = Le(function() {
1740
+ f(this), this.__resizeRAF__ && ke(this.__resizeRAF__), this.__resizeRAF__ = Se(function() {
1741
1741
  g(F) && (F.__resizeLast__.width = F.offsetWidth, F.__resizeLast__.height = F.offsetHeight, F.__resizeListeners__.forEach(function(M) {
1742
1742
  M.call(F, _);
1743
1743
  }));
@@ -1757,11 +1757,11 @@ function Mi(s) {
1757
1757
  }
1758
1758
  }
1759
1759
  }
1760
- l = "resizeanim", o = "@" + A + "keyframes " + l + " { from { opacity: 0; } to { opacity: 0; } } ", m = A + "animation: 1ms " + l + "; ";
1760
+ l = "resizeanim", n = "@" + A + "keyframes " + l + " { from { opacity: 0; } to { opacity: 0; } } ", m = A + "animation: 1ms " + l + "; ";
1761
1761
  }
1762
1762
  const v = function(y) {
1763
1763
  if (!y.getElementById("detectElementResize")) {
1764
- const A = (o || "") + ".resize-triggers { " + (m || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', x = y.head || y.getElementsByTagName("head")[0], B = y.createElement("style");
1764
+ const A = (n || "") + ".resize-triggers { " + (m || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', x = y.head || y.getElementsByTagName("head")[0], B = y.createElement("style");
1765
1765
  B.id = "detectElementResize", B.type = "text/css", s != null && B.setAttribute("nonce", s), B.styleSheet ? B.styleSheet.cssText = A : B.appendChild(y.createTextNode(A)), x.appendChild(B);
1766
1766
  }
1767
1767
  };
@@ -1776,7 +1776,7 @@ function Mi(s) {
1776
1776
  const N = x.createElement("div");
1777
1777
  N.className = "expand-trigger", N.appendChild(x.createElement("div"));
1778
1778
  const _ = x.createElement("div");
1779
- _.className = "contract-trigger", y.__resizeTriggers__.appendChild(N), y.__resizeTriggers__.appendChild(_), y.appendChild(y.__resizeTriggers__), f(y), y.addEventListener("scroll", n, !0), d && (y.__resizeTriggers__.__animationListener__ = function(U) {
1779
+ _.className = "contract-trigger", y.__resizeTriggers__.appendChild(N), y.__resizeTriggers__.appendChild(_), y.appendChild(y.__resizeTriggers__), f(y), y.addEventListener("scroll", o, !0), d && (y.__resizeTriggers__.__animationListener__ = function(U) {
1780
1780
  U.animationName === l && f(y);
1781
1781
  }, y.__resizeTriggers__.addEventListener(d, y.__resizeTriggers__.__animationListener__));
1782
1782
  }
@@ -1787,7 +1787,7 @@ function Mi(s) {
1787
1787
  if (w)
1788
1788
  y.detachEvent("onresize", A);
1789
1789
  else if (y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(A), 1), !y.__resizeListeners__.length) {
1790
- y.removeEventListener("scroll", n, !0), y.__resizeTriggers__.__animationListener__ && (y.__resizeTriggers__.removeEventListener(d, y.__resizeTriggers__.__animationListener__), y.__resizeTriggers__.__animationListener__ = null);
1790
+ y.removeEventListener("scroll", o, !0), y.__resizeTriggers__.__animationListener__ && (y.__resizeTriggers__.removeEventListener(d, y.__resizeTriggers__.__animationListener__), y.__resizeTriggers__.__animationListener__ = null);
1791
1791
  try {
1792
1792
  y.__resizeTriggers__ = !y.removeChild(y.__resizeTriggers__);
1793
1793
  } catch {
@@ -1796,9 +1796,9 @@ function Mi(s) {
1796
1796
  }
1797
1797
  };
1798
1798
  }
1799
- class xt extends Yt {
1800
- constructor(...o) {
1801
- super(...o), this.state = {
1799
+ class At extends Ht {
1800
+ constructor(...n) {
1801
+ super(...n), this.state = {
1802
1802
  height: this.props.defaultHeight || 0,
1803
1803
  scaledHeight: this.props.defaultHeight || 0,
1804
1804
  scaledWidth: this.props.defaultWidth || 0,
@@ -1811,8 +1811,8 @@ class xt extends Yt {
1811
1811
  onResize: m
1812
1812
  } = this.props;
1813
1813
  if (this._parentNode) {
1814
- var g, f, n, w;
1815
- const v = window.getComputedStyle(this._parentNode) || {}, E = parseFloat((g = v.paddingLeft) !== null && g !== void 0 ? g : "0"), C = parseFloat((f = v.paddingRight) !== null && f !== void 0 ? f : "0"), y = parseFloat((n = v.paddingTop) !== null && n !== void 0 ? n : "0"), A = parseFloat((w = v.paddingBottom) !== null && w !== void 0 ? w : "0"), x = this._parentNode.getBoundingClientRect(), B = x.height - y - A, N = x.width - E - C, _ = this._parentNode.offsetHeight - y - A, F = this._parentNode.offsetWidth - E - C;
1814
+ var g, f, o, w;
1815
+ const v = window.getComputedStyle(this._parentNode) || {}, E = parseFloat((g = v.paddingLeft) !== null && g !== void 0 ? g : "0"), C = parseFloat((f = v.paddingRight) !== null && f !== void 0 ? f : "0"), y = parseFloat((o = v.paddingTop) !== null && o !== void 0 ? o : "0"), A = parseFloat((w = v.paddingBottom) !== null && w !== void 0 ? w : "0"), x = this._parentNode.getBoundingClientRect(), B = x.height - y - A, N = x.width - E - C, _ = this._parentNode.offsetHeight - y - A, F = this._parentNode.offsetWidth - E - C;
1816
1816
  (!l && (this.state.height !== _ || this.state.scaledHeight !== B) || !d && (this.state.width !== F || this.state.scaledWidth !== N)) && (this.setState({
1817
1817
  height: _,
1818
1818
  width: F,
@@ -1831,24 +1831,24 @@ class xt extends Yt {
1831
1831
  }
1832
1832
  componentDidMount() {
1833
1833
  const {
1834
- nonce: o
1834
+ nonce: n
1835
1835
  } = this.props;
1836
1836
  this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._parentNode != null && (typeof ResizeObserver < "u" ? (this._resizeObserver = new ResizeObserver(() => {
1837
1837
  this._timeoutId = setTimeout(this._onResize, 0);
1838
- }), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Mi(o), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
1838
+ }), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Pi(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
1839
1839
  }
1840
1840
  componentWillUnmount() {
1841
1841
  this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && (this._resizeObserver.observe(this._parentNode), this._resizeObserver.disconnect()));
1842
1842
  }
1843
1843
  render() {
1844
1844
  const {
1845
- children: o,
1845
+ children: n,
1846
1846
  defaultHeight: l,
1847
1847
  defaultWidth: d,
1848
1848
  disableHeight: m = !1,
1849
1849
  disableWidth: g = !1,
1850
1850
  nonce: f,
1851
- onResize: n,
1851
+ onResize: o,
1852
1852
  style: w = {},
1853
1853
  tagName: v = "div",
1854
1854
  ...E
@@ -1861,22 +1861,22 @@ class xt extends Yt {
1861
1861
  overflow: "visible"
1862
1862
  }, N = {};
1863
1863
  let _ = !1;
1864
- return m || (C === 0 && (_ = !0), B.height = 0, N.height = C, N.scaledHeight = y), g || (x === 0 && (_ = !0), B.width = 0, N.width = x, N.scaledWidth = A), Vt(v, {
1864
+ return m || (C === 0 && (_ = !0), B.height = 0, N.height = C, N.scaledHeight = y), g || (x === 0 && (_ = !0), B.width = 0, N.width = x, N.scaledWidth = A), Yt(v, {
1865
1865
  ref: this._setRef,
1866
1866
  style: {
1867
1867
  ...B,
1868
1868
  ...w
1869
1869
  },
1870
1870
  ...E
1871
- }, !_ && o(N));
1871
+ }, !_ && n(N));
1872
1872
  }
1873
1873
  }
1874
- const qi = ({
1874
+ const Mi = ({
1875
1875
  src: s,
1876
- className: o,
1876
+ className: n,
1877
1877
  style: l
1878
- }) => /* @__PURE__ */ c(xt, { className: o, style: l, children: ({ height: d, width: m }) => /* @__PURE__ */ c(
1879
- Xt,
1878
+ }) => /* @__PURE__ */ c(At, { className: n, style: l, children: ({ height: d, width: m }) => /* @__PURE__ */ c(
1879
+ Kt,
1880
1880
  {
1881
1881
  autoplay: !0,
1882
1882
  loop: !1,
@@ -1884,111 +1884,111 @@ const qi = ({
1884
1884
  src: `https://url-proxy.streamlayer.io?${s}`,
1885
1885
  style: { height: d, width: m }
1886
1886
  }
1887
- ) }), ji = /* @__PURE__ */ h("div")({
1887
+ ) }), qi = /* @__PURE__ */ h("div")({
1888
1888
  name: "Container",
1889
1889
  class: "c1htq1lb",
1890
1890
  propsAsIs: !1
1891
- }), Gi = /* @__PURE__ */ h("div")({
1891
+ }), ji = /* @__PURE__ */ h("div")({
1892
1892
  name: "Content",
1893
1893
  class: "cjyzpp7",
1894
1894
  propsAsIs: !1
1895
- }), Wi = /* @__PURE__ */ h("div")({
1895
+ }), Gi = /* @__PURE__ */ h("div")({
1896
1896
  name: "Graphic",
1897
1897
  class: "g16mldgz",
1898
1898
  propsAsIs: !1
1899
- }), Hi = /* @__PURE__ */ h("div")({
1899
+ }), Wi = /* @__PURE__ */ h("div")({
1900
1900
  name: "Headline",
1901
1901
  class: "h69js65",
1902
1902
  propsAsIs: !1
1903
- }), Yi = /* @__PURE__ */ h("div")({
1903
+ }), Hi = /* @__PURE__ */ h("div")({
1904
1904
  name: "StepsContainer",
1905
1905
  class: "smm7qmo",
1906
1906
  propsAsIs: !1
1907
- }), Vi = /* @__PURE__ */ h("span")({
1907
+ }), Yi = /* @__PURE__ */ h("span")({
1908
1908
  name: "StepIndicator",
1909
1909
  class: "s17knuw2",
1910
1910
  propsAsIs: !1
1911
- }), Qi = ({
1911
+ }), Vi = ({
1912
1912
  graphicSrc: s,
1913
- headline: o,
1913
+ headline: n,
1914
1914
  stepsCount: l,
1915
1915
  currentStep: d
1916
- }) => /* @__PURE__ */ I(ji, { children: [
1917
- /* @__PURE__ */ I(Gi, { children: [
1918
- /* @__PURE__ */ c(Wi, { children: /* @__PURE__ */ c(qi, { src: s }) }),
1919
- o && /* @__PURE__ */ c(Hi, { children: o })
1916
+ }) => /* @__PURE__ */ I(qi, { children: [
1917
+ /* @__PURE__ */ I(ji, { children: [
1918
+ /* @__PURE__ */ c(Gi, { children: /* @__PURE__ */ c(Mi, { src: s }) }),
1919
+ n && /* @__PURE__ */ c(Wi, { children: n })
1920
1920
  ] }),
1921
- /* @__PURE__ */ c(Yi, { children: Array.from({ length: l }).map((m, g) => /* @__PURE__ */ c(Vi, { "data-active": d === g }, g)) })
1922
- ] }), Ki = /* @__PURE__ */ h("div")({
1921
+ /* @__PURE__ */ c(Hi, { children: Array.from({ length: l }).map((m, g) => /* @__PURE__ */ c(Yi, { "data-active": d === g }, g)) })
1922
+ ] }), Qi = /* @__PURE__ */ h("div")({
1923
1923
  name: "Container",
1924
1924
  class: "c1itm4k7",
1925
1925
  propsAsIs: !1
1926
- }), Xi = /* @__PURE__ */ h("div")({
1926
+ }), Ki = /* @__PURE__ */ h("div")({
1927
1927
  name: "IconContainer",
1928
1928
  class: "i1w4fsni",
1929
1929
  propsAsIs: !1
1930
- }), Ji = () => z, Zi = /* @__PURE__ */ h(Ji())({
1930
+ }), Xi = () => z, Ji = /* @__PURE__ */ h(Xi())({
1931
1931
  name: "InviteGameIcon",
1932
1932
  class: "i19m85r1",
1933
1933
  propsAsIs: !0
1934
- }), en = /* @__PURE__ */ h("div")({
1934
+ }), Zi = /* @__PURE__ */ h("div")({
1935
1935
  name: "Content",
1936
1936
  class: "c1mbu204",
1937
1937
  propsAsIs: !1
1938
- }), tn = /* @__PURE__ */ h("div")({
1938
+ }), en = /* @__PURE__ */ h("div")({
1939
1939
  name: "Heading",
1940
1940
  class: "h1amdqtv",
1941
1941
  propsAsIs: !1
1942
- }), rn = /* @__PURE__ */ h("div")({
1942
+ }), tn = /* @__PURE__ */ h("div")({
1943
1943
  name: "Subtext",
1944
1944
  class: "s1lhlj9j",
1945
1945
  propsAsIs: !1
1946
- }), nn = /* @__PURE__ */ h("div")({
1946
+ }), rn = /* @__PURE__ */ h("div")({
1947
1947
  name: "LinkContainer",
1948
1948
  class: "l1wot35e",
1949
1949
  propsAsIs: !1
1950
- }), sn = /* @__PURE__ */ h("div")({
1950
+ }), nn = /* @__PURE__ */ h("div")({
1951
1951
  name: "LinkInfo",
1952
1952
  class: "l1jdw39q",
1953
1953
  propsAsIs: !1
1954
- }), on = /* @__PURE__ */ h("span")({
1954
+ }), sn = /* @__PURE__ */ h("span")({
1955
1955
  name: "LinkTitle",
1956
1956
  class: "l1cr5mk",
1957
1957
  propsAsIs: !1
1958
- }), an = /* @__PURE__ */ h("span")({
1958
+ }), on = /* @__PURE__ */ h("span")({
1959
1959
  name: "LinkAddress",
1960
1960
  class: "lvi87q4",
1961
1961
  propsAsIs: !1
1962
- }), ln = () => z, cn = /* @__PURE__ */ h(ln())({
1962
+ }), an = () => z, ln = /* @__PURE__ */ h(an())({
1963
1963
  name: "LinkIcon",
1964
1964
  class: "l1pqlvw3",
1965
1965
  propsAsIs: !0
1966
- }), un = /* @__PURE__ */ h("div")({
1966
+ }), cn = /* @__PURE__ */ h("div")({
1967
1967
  name: "SocialLinksContainer",
1968
1968
  class: "s1n7kzeh",
1969
1969
  propsAsIs: !1
1970
- }), hn = /* @__PURE__ */ h("a")({
1970
+ }), un = /* @__PURE__ */ h("a")({
1971
1971
  name: "SocialLink",
1972
1972
  class: "s2m9o9y",
1973
1973
  propsAsIs: !1
1974
- }), dn = /* @__PURE__ */ h("span")({
1974
+ }), hn = /* @__PURE__ */ h("span")({
1975
1975
  name: "SocialLinkLabel",
1976
1976
  class: "sewjbbn",
1977
1977
  propsAsIs: !1
1978
1978
  }), pn = ({
1979
1979
  inviteLink: s,
1980
- socialLinks: o,
1980
+ socialLinks: n,
1981
1981
  inviteCardTitle: l,
1982
1982
  inviteCardSubtext: d,
1983
1983
  primaryColor: m,
1984
1984
  className: g
1985
- }) => /* @__PURE__ */ I(Ki, { className: g, children: [
1986
- /* @__PURE__ */ c(Xi, { style: { backgroundColor: m }, children: /* @__PURE__ */ c(Zi, { name: "invite-game-icon" }) }),
1987
- /* @__PURE__ */ I(en, { children: [
1988
- /* @__PURE__ */ c(tn, { children: l || "" }),
1989
- /* @__PURE__ */ c(rn, { children: d || "" })
1985
+ }) => /* @__PURE__ */ I(Qi, { className: g, children: [
1986
+ /* @__PURE__ */ c(Ki, { style: { backgroundColor: m }, children: /* @__PURE__ */ c(Ji, { name: "invite-game-icon" }) }),
1987
+ /* @__PURE__ */ I(Zi, { children: [
1988
+ /* @__PURE__ */ c(en, { children: l || "" }),
1989
+ /* @__PURE__ */ c(tn, { children: d || "" })
1990
1990
  ] }),
1991
- s && /* @__PURE__ */ I(nn, { onClick: async () => {
1991
+ s && /* @__PURE__ */ I(rn, { onClick: async () => {
1992
1992
  if (s)
1993
1993
  try {
1994
1994
  await navigator.clipboard.writeText(s);
@@ -1996,90 +1996,90 @@ const qi = ({
1996
1996
  console.error("Unable to copy to clipboard", f);
1997
1997
  }
1998
1998
  }, children: [
1999
- /* @__PURE__ */ I(sn, { children: [
2000
- /* @__PURE__ */ c(on, { children: "Invite link" }),
2001
- /* @__PURE__ */ c(an, { children: s })
1999
+ /* @__PURE__ */ I(nn, { children: [
2000
+ /* @__PURE__ */ c(sn, { children: "Invite link" }),
2001
+ /* @__PURE__ */ c(on, { children: s })
2002
2002
  ] }),
2003
- /* @__PURE__ */ c(cn, { name: "icon-copy" })
2003
+ /* @__PURE__ */ c(ln, { name: "icon-copy" })
2004
2004
  ] }),
2005
- o && o.length > 0 && /* @__PURE__ */ c(un, { children: o.map(({ icon: f, link: n, label: w }) => /* @__PURE__ */ I(hn, { href: n, target: "_blank", children: [
2005
+ n && n.length > 0 && /* @__PURE__ */ c(cn, { children: n.map(({ icon: f, link: o, label: w }) => /* @__PURE__ */ I(un, { href: o, target: "_blank", children: [
2006
2006
  /* @__PURE__ */ c(z, { name: f }),
2007
- /* @__PURE__ */ c(dn, { children: w })
2008
- ] }, n)) })
2009
- ] }), fn = /* @__PURE__ */ h("div")({
2007
+ /* @__PURE__ */ c(hn, { children: w })
2008
+ ] }, o)) })
2009
+ ] }), dn = /* @__PURE__ */ h("div")({
2010
2010
  name: "Container",
2011
2011
  class: "cm0bev",
2012
2012
  propsAsIs: !1
2013
- }), mn = /* @__PURE__ */ h("div")({
2013
+ }), fn = /* @__PURE__ */ h("div")({
2014
2014
  name: "Content",
2015
2015
  class: "ce7x737",
2016
2016
  propsAsIs: !1
2017
- }), gn = /* @__PURE__ */ h("div")({
2017
+ }), mn = /* @__PURE__ */ h("div")({
2018
2018
  name: "Title",
2019
2019
  class: "tc2tor6",
2020
2020
  propsAsIs: !1
2021
- }), yn = /* @__PURE__ */ h("div")({
2021
+ }), gn = /* @__PURE__ */ h("div")({
2022
2022
  name: "RulesList",
2023
2023
  class: "r1k5klql",
2024
2024
  propsAsIs: !1
2025
- }), wn = /* @__PURE__ */ h("div")({
2025
+ }), yn = /* @__PURE__ */ h("div")({
2026
2026
  name: "RulesItem",
2027
2027
  class: "r1tf3ft2",
2028
2028
  propsAsIs: !1
2029
- }), In = /* @__PURE__ */ h("div")({
2029
+ }), wn = /* @__PURE__ */ h("div")({
2030
2030
  name: "RuleIcon",
2031
2031
  class: "rwpvg1k",
2032
2032
  propsAsIs: !1
2033
- }), An = /* @__PURE__ */ h("div")({
2033
+ }), In = /* @__PURE__ */ h("div")({
2034
2034
  name: "RuleText",
2035
2035
  class: "rbxiag0",
2036
2036
  propsAsIs: !1
2037
- }), xn = /* @__PURE__ */ h("button")({
2037
+ }), An = /* @__PURE__ */ h("button")({
2038
2038
  name: "TermsButton",
2039
2039
  class: "t6cyrry",
2040
2040
  propsAsIs: !1
2041
- }), bn = ({ rules: s, rulesTitle: o, primaryColor: l }) => /* @__PURE__ */ I(fn, { children: [
2042
- /* @__PURE__ */ I(mn, { children: [
2043
- /* @__PURE__ */ c(gn, { children: o }),
2044
- /* @__PURE__ */ c(yn, { children: s == null ? void 0 : s.map(({ label: d, icon: m }, g) => /* @__PURE__ */ I(wn, { children: [
2045
- m && /* @__PURE__ */ c(In, { style: { backgroundColor: l }, children: /* @__PURE__ */ c(z, { name: m, "data-icon": m }) }),
2046
- /* @__PURE__ */ c(An, { children: d })
2041
+ }), xn = ({ rules: s, rulesTitle: n, primaryColor: l }) => /* @__PURE__ */ I(dn, { children: [
2042
+ /* @__PURE__ */ I(fn, { children: [
2043
+ /* @__PURE__ */ c(mn, { children: n }),
2044
+ /* @__PURE__ */ c(gn, { children: s == null ? void 0 : s.map(({ label: d, icon: m }, g) => /* @__PURE__ */ I(yn, { children: [
2045
+ m && /* @__PURE__ */ c(wn, { style: { backgroundColor: l }, children: /* @__PURE__ */ c(z, { name: m, "data-icon": m }) }),
2046
+ /* @__PURE__ */ c(In, { children: d })
2047
2047
  ] }, g)) })
2048
2048
  ] }),
2049
- /* @__PURE__ */ c(xn, { children: "See Terms and Conditions" })
2050
- ] }), En = /* @__PURE__ */ h("button")({
2049
+ /* @__PURE__ */ c(An, { children: "See Terms and Conditions" })
2050
+ ] }), bn = /* @__PURE__ */ h("button")({
2051
2051
  name: "SButton",
2052
2052
  class: "s1nve60q",
2053
2053
  propsAsIs: !1
2054
- }), Bn = /* @__PURE__ */ h("span")({
2054
+ }), En = /* @__PURE__ */ h("span")({
2055
2055
  name: "ButtonLabel",
2056
2056
  class: "b1xoswwx",
2057
2057
  propsAsIs: !1
2058
- }), vn = ({ disabled: s, variant: o = "primary", onClick: l, children: d, ...m }) => /* @__PURE__ */ c(En, { onClick: l, disabled: s, "data-variant": o, ...m, children: /* @__PURE__ */ c(Bn, { children: d }) }), _n = /* @__PURE__ */ h("div")({
2058
+ }), Bn = ({ disabled: s, variant: n = "primary", onClick: l, children: d, ...m }) => /* @__PURE__ */ c(bn, { onClick: l, disabled: s, "data-variant": n, ...m, children: /* @__PURE__ */ c(En, { children: d }) }), vn = /* @__PURE__ */ h("div")({
2059
2059
  name: "Container",
2060
2060
  class: "c18uddbs",
2061
2061
  propsAsIs: !1
2062
- }), Cn = /* @__PURE__ */ h("div")({
2062
+ }), _n = /* @__PURE__ */ h("div")({
2063
2063
  name: "Content",
2064
2064
  class: "cvcfjf6",
2065
2065
  propsAsIs: !1
2066
- }), Tn = /* @__PURE__ */ h("div")({
2066
+ }), Cn = /* @__PURE__ */ h("div")({
2067
2067
  name: "OnboardingHeader",
2068
2068
  class: "o1ie27lw",
2069
2069
  propsAsIs: !1
2070
- }), Fn = /* @__PURE__ */ h("button")({
2070
+ }), Tn = /* @__PURE__ */ h("button")({
2071
2071
  name: "CloseBtn",
2072
2072
  class: "c15cjkwi",
2073
2073
  propsAsIs: !1
2074
- }), $n = () => z, kn = /* @__PURE__ */ h($n())({
2074
+ }), Fn = () => z, $n = /* @__PURE__ */ h(Fn())({
2075
2075
  name: "IconClose",
2076
2076
  class: "i1mavjt2",
2077
2077
  propsAsIs: !0
2078
- }), Sn = /* @__PURE__ */ h("div")({
2078
+ }), kn = /* @__PURE__ */ h("div")({
2079
2079
  name: "OnboardingFooter",
2080
2080
  class: "o1x0dyzv",
2081
2081
  propsAsIs: !1
2082
- }), Ln = () => vn, Nn = /* @__PURE__ */ h(Ln())({
2082
+ }), Sn = () => Bn, Ln = /* @__PURE__ */ h(Sn())({
2083
2083
  name: "OnboardingActionBtn",
2084
2084
  class: "o1jfi9c3",
2085
2085
  propsAsIs: !0
@@ -2087,34 +2087,34 @@ const qi = ({
2087
2087
  steps: !1,
2088
2088
  rules: !1,
2089
2089
  inviteCard: !1
2090
- }, Rn = ({
2090
+ }, Nn = ({
2091
2091
  gamification: s,
2092
- steps: o,
2092
+ steps: n,
2093
2093
  rules: l,
2094
2094
  rulesBtnLabel: d,
2095
2095
  rulesTitle: m,
2096
2096
  primaryColor: g,
2097
2097
  inviteLink: f,
2098
- socialLinks: n,
2098
+ socialLinks: o,
2099
2099
  inviteCardTitle: w,
2100
2100
  inviteCardSubtext: v,
2101
2101
  inviteCardBtnLabel: E,
2102
2102
  onClose: C
2103
2103
  }) => {
2104
- const [y, A] = K(0), [x, B] = K(le);
2104
+ const [y, A] = V(0), [x, B] = V(le);
2105
2105
  he(() => {
2106
- o != null && o.length ? B({ ...le, steps: !0 }) : l != null && l.length ? B({ ...le, rules: !0 }) : B({ ...le, inviteCard: !0 });
2106
+ n != null && n.length ? B({ ...le, steps: !0 }) : l != null && l.length ? B({ ...le, rules: !0 }) : B({ ...le, inviteCard: !0 });
2107
2107
  }, []);
2108
- const N = Ne(() => x.steps && y === 0 ? "Continue" : x.rules ? d || "Got it" : x.inviteCard ? E || "Play Now" : "Next", [x, y, d, E]), _ = pt(() => {
2109
- o != null && o.length && y < o.length - 1 ? A((U) => ++U) : l != null && l.length && x.steps ? B({ ...le, rules: !0 }) : x.rules && B({ ...le, inviteCard: !0 });
2110
- }, [y, o == null ? void 0 : o.length, l == null ? void 0 : l.length, x, A, B]), F = async () => {
2108
+ const N = Le(() => x.steps && y === 0 ? "Continue" : x.rules ? d || "Got it" : x.inviteCard ? E || "Play Now" : "Next", [x, y, d, E]), _ = pt(() => {
2109
+ n != null && n.length && y < n.length - 1 ? A((U) => ++U) : l != null && l.length && x.steps ? B({ ...le, rules: !0 }) : x.rules && B({ ...le, inviteCard: !0 });
2110
+ }, [y, n == null ? void 0 : n.length, l == null ? void 0 : l.length, x, A, B]), F = async () => {
2111
2111
  await s.onboardingStatus.submitInplay();
2112
2112
  };
2113
- return /* @__PURE__ */ c(xt, { children: ({ width: U, height: V }) => /* @__PURE__ */ I(_n, { style: { width: U, height: V }, children: [
2114
- /* @__PURE__ */ c(Tn, { children: /* @__PURE__ */ c(Fn, { onClick: C, children: /* @__PURE__ */ c(kn, { name: "icon-close-btn-gray" }) }) }),
2115
- /* @__PURE__ */ I(Cn, { children: [
2116
- x.steps && (o == null ? void 0 : o.length) && /* @__PURE__ */ c(Qi, { stepsCount: o.length, currentStep: y, ...o[y] }),
2117
- x.rules && /* @__PURE__ */ c(bn, { rules: l, rulesTitle: m, primaryColor: g }),
2113
+ return /* @__PURE__ */ c(At, { children: ({ width: U, height: Q }) => /* @__PURE__ */ I(vn, { style: { width: U, height: Q }, children: [
2114
+ /* @__PURE__ */ c(Cn, { children: /* @__PURE__ */ c(Tn, { onClick: C, children: /* @__PURE__ */ c($n, { name: "icon-close-btn-gray" }) }) }),
2115
+ /* @__PURE__ */ I(_n, { children: [
2116
+ x.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ c(Vi, { stepsCount: n.length, currentStep: y, ...n[y] }),
2117
+ x.rules && /* @__PURE__ */ c(xn, { rules: l, rulesTitle: m, primaryColor: g }),
2118
2118
  x.inviteCard && /* @__PURE__ */ c(
2119
2119
  pn,
2120
2120
  {
@@ -2122,92 +2122,92 @@ const qi = ({
2122
2122
  inviteCardTitle: w,
2123
2123
  inviteCardSubtext: v,
2124
2124
  primaryColor: g,
2125
- socialLinks: n
2125
+ socialLinks: o
2126
2126
  }
2127
2127
  )
2128
2128
  ] }),
2129
- /* @__PURE__ */ c(Sn, { children: /* @__PURE__ */ c(Nn, { onClick: x.inviteCard ? F : _, children: N }) })
2129
+ /* @__PURE__ */ c(kn, { children: /* @__PURE__ */ c(Ln, { onClick: x.inviteCard ? F : _, children: N }) })
2130
2130
  ] }) });
2131
- }, Un = /* @__PURE__ */ h("div")({
2131
+ }, Rn = /* @__PURE__ */ h("div")({
2132
2132
  name: "Container",
2133
2133
  class: "c1pgyo67",
2134
2134
  propsAsIs: !1
2135
- }), zn = "hx17qu6", bt = ({
2135
+ }), Un = "hx17qu6", xt = ({
2136
2136
  children: s,
2137
- style: o,
2137
+ style: n,
2138
2138
  className: l,
2139
2139
  hiding: d
2140
- }) => /* @__PURE__ */ c(Un, {
2141
- style: o,
2142
- className: Kt(l, d && zn),
2140
+ }) => /* @__PURE__ */ c(Rn, {
2141
+ style: n,
2142
+ className: Qt(l, d && Un),
2143
2143
  children: s
2144
- }), On = /* @__PURE__ */ h("div")({
2144
+ }), zn = /* @__PURE__ */ h("div")({
2145
2145
  name: "Container",
2146
2146
  class: "cocfo2g",
2147
2147
  propsAsIs: !1
2148
- }), Dn = /* @__PURE__ */ h("div")({
2148
+ }), On = /* @__PURE__ */ h("div")({
2149
2149
  name: "CloseIconWrap",
2150
2150
  class: "c1pdhxdk",
2151
2151
  propsAsIs: !1
2152
- }), Pn = () => z, Mn = /* @__PURE__ */ h(Pn())({
2152
+ }), Dn = () => z, Pn = /* @__PURE__ */ h(Dn())({
2153
2153
  name: "CloseIcon",
2154
2154
  class: "c1funj3r",
2155
2155
  propsAsIs: !0
2156
- }), qn = /* @__PURE__ */ h("div")({
2156
+ }), Mn = /* @__PURE__ */ h("div")({
2157
2157
  name: "Title",
2158
2158
  class: "t1okg06y",
2159
2159
  propsAsIs: !1
2160
- }), jn = /* @__PURE__ */ h("img")({
2160
+ }), qn = /* @__PURE__ */ h("img")({
2161
2161
  name: "SponsorLogo",
2162
2162
  class: "sb1n923",
2163
2163
  propsAsIs: !1
2164
- }), Gn = /* @__PURE__ */ h("div")({
2164
+ }), jn = /* @__PURE__ */ h("div")({
2165
2165
  name: "PresentsTitle",
2166
2166
  class: "p1stllxd",
2167
2167
  propsAsIs: !1
2168
- }), Wn = /* @__PURE__ */ h("div")({
2168
+ }), Gn = /* @__PURE__ */ h("div")({
2169
2169
  name: "Subtitle",
2170
2170
  class: "s13kvdzw",
2171
2171
  propsAsIs: !1
2172
- }), Hn = /* @__PURE__ */ h("div")({
2172
+ }), Wn = /* @__PURE__ */ h("div")({
2173
2173
  name: "Description",
2174
2174
  class: "dfvmv3t",
2175
2175
  propsAsIs: !1
2176
- }), Yn = /* @__PURE__ */ h("button")({
2176
+ }), Hn = /* @__PURE__ */ h("button")({
2177
2177
  name: "ActionButton",
2178
2178
  class: "ay8e3j9",
2179
2179
  propsAsIs: !1
2180
- }), Vn = ({ close: s, action: o, onboarding: l }) => {
2181
- var d, m, g, f, n, w, v, E;
2182
- return /* @__PURE__ */ I(On, { children: [
2183
- /* @__PURE__ */ c(Dn, { onClick: s, children: /* @__PURE__ */ c(Mn, { name: "icon-cross" }) }),
2184
- ((m = (d = l == null ? void 0 : l.titleCard) == null ? void 0 : d.media) == null ? void 0 : m.sponsorLogo) && /* @__PURE__ */ I(qn, { children: [
2185
- /* @__PURE__ */ c(jn, { alt: "sponsor-logo", src: (f = (g = l == null ? void 0 : l.titleCard) == null ? void 0 : g.media) == null ? void 0 : f.sponsorLogo }),
2186
- /* @__PURE__ */ c(Gn, { children: "PRESENTS" })
2180
+ }), Yn = ({ close: s, action: n, onboarding: l }) => {
2181
+ var d, m, g, f, o, w, v, E;
2182
+ return /* @__PURE__ */ I(zn, { children: [
2183
+ /* @__PURE__ */ c(On, { onClick: s, children: /* @__PURE__ */ c(Pn, { name: "icon-cross" }) }),
2184
+ ((m = (d = l == null ? void 0 : l.titleCard) == null ? void 0 : d.media) == null ? void 0 : m.sponsorLogo) && /* @__PURE__ */ I(Mn, { children: [
2185
+ /* @__PURE__ */ c(qn, { alt: "sponsor-logo", src: (f = (g = l == null ? void 0 : l.titleCard) == null ? void 0 : g.media) == null ? void 0 : f.sponsorLogo }),
2186
+ /* @__PURE__ */ c(jn, { children: "PRESENTS" })
2187
2187
  ] }),
2188
- ((n = l == null ? void 0 : l.titleCard) == null ? void 0 : n.title) && /* @__PURE__ */ c(Wn, { children: (w = l == null ? void 0 : l.titleCard) == null ? void 0 : w.title }),
2189
- ((v = l == null ? void 0 : l.titleCard) == null ? void 0 : v.subtitle) && /* @__PURE__ */ c(Hn, { children: (E = l == null ? void 0 : l.titleCard) == null ? void 0 : E.subtitle }),
2190
- /* @__PURE__ */ c(Yn, { onClick: o, children: "Play Now" })
2188
+ ((o = l == null ? void 0 : l.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ c(Gn, { children: (w = l == null ? void 0 : l.titleCard) == null ? void 0 : w.title }),
2189
+ ((v = l == null ? void 0 : l.titleCard) == null ? void 0 : v.subtitle) && /* @__PURE__ */ c(Wn, { children: (E = l == null ? void 0 : l.titleCard) == null ? void 0 : E.subtitle }),
2190
+ /* @__PURE__ */ c(Hn, { onClick: n, children: "Play Now" })
2191
2191
  ] });
2192
- }, Qn = () => bt, Kn = /* @__PURE__ */ h(Qn())({
2192
+ }, Vn = () => xt, Qn = /* @__PURE__ */ h(Vn())({
2193
2193
  name: "OnboardingContainer",
2194
2194
  class: "o9squag",
2195
2195
  propsAsIs: !0
2196
- }), Xn = ({
2196
+ }), Kn = ({
2197
2197
  hiding: s,
2198
- deepLink: o,
2198
+ deepLink: n,
2199
2199
  onboardingOpts: l,
2200
2200
  setOpened: d,
2201
2201
  notification: m,
2202
2202
  gamification: g
2203
2203
  }) => {
2204
- var f, n, w, v, E, C;
2204
+ var f, o, w, v, E, C;
2205
2205
  const {
2206
2206
  data: y
2207
- } = Z(o.$store);
2208
- return /* @__PURE__ */ c(Kn, {
2207
+ } = Z(n.$store);
2208
+ return /* @__PURE__ */ c(Qn, {
2209
2209
  hiding: s,
2210
- children: /* @__PURE__ */ c(Rn, {
2210
+ children: /* @__PURE__ */ c(Nn, {
2211
2211
  rules: [{
2212
2212
  label: "Answer as many questions as you like.",
2213
2213
  icon: "icon-btn-feature-groups"
@@ -2219,7 +2219,7 @@ const qi = ({
2219
2219
  icon: "icon-trophy"
2220
2220
  }],
2221
2221
  rulesBtnLabel: (f = l.rules) == null ? void 0 : f.buttonLabel,
2222
- rulesTitle: (n = l.rules) == null ? void 0 : n.heading,
2222
+ rulesTitle: (o = l.rules) == null ? void 0 : o.heading,
2223
2223
  steps: [{
2224
2224
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_01.json",
2225
2225
  headline: "Welcome to the Featured Groups +"
@@ -2257,79 +2257,66 @@ const qi = ({
2257
2257
  gamification: g
2258
2258
  })
2259
2259
  });
2260
- }, Jn = ({
2260
+ }, Xn = ({
2261
2261
  sdk: s,
2262
- hiding: o,
2263
- notification: l,
2264
- NotificationContainer: d
2262
+ notification: n
2265
2263
  }) => {
2266
- const [m, g] = K(!1), f = s.getFeature(Re.GAMES), n = l.data.onboarding;
2267
- return m && f && n ? /* @__PURE__ */ c(Xn, {
2268
- notification: l,
2269
- setOpened: g,
2270
- gamification: f,
2271
- onboardingOpts: n,
2272
- deepLink: f.deepLink
2273
- }) : /* @__PURE__ */ c(d, {
2274
- hiding: o,
2275
- children: /* @__PURE__ */ c("div", {
2276
- children: /* @__PURE__ */ c(Vn, {
2277
- close: l.close,
2278
- action: () => g(!0),
2279
- onboarding: n
2280
- })
2264
+ const [l, d] = V(!1), m = s.getFeature(Ne.GAMES), g = n.data.onboarding;
2265
+ return l && m && g ? /* @__PURE__ */ c(Kn, {
2266
+ notification: n,
2267
+ setOpened: d,
2268
+ gamification: m,
2269
+ onboardingOpts: g,
2270
+ deepLink: m.deepLink
2271
+ }) : /* @__PURE__ */ c("div", {
2272
+ children: /* @__PURE__ */ c(Yn, {
2273
+ close: n.close,
2274
+ action: () => d(!0),
2275
+ onboarding: g
2281
2276
  })
2282
2277
  });
2283
- }, Zn = () => bt, Fe = /* @__PURE__ */ h(Zn())({
2278
+ }, Jn = () => xt, Zn = /* @__PURE__ */ h(Jn())({
2284
2279
  name: "Container",
2285
2280
  class: "ctckejh",
2286
2281
  propsAsIs: !0
2287
- }), es = ({ sdk: s }) => {
2288
- const o = s.getNotificationsStore(), l = Z(o), d = Ne(() => {
2282
+ }), es = ({ sdk: s, notification: n }) => n.type === we.QUESTION ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(ot, { ...n }) }) : n.type === we.QUESTION_RESOLVED ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(ot, { ...n }) }) : n.type === we.ONBOARDING ? /* @__PURE__ */ c(Xn, { sdk: s, notification: n, hiding: n.hiding }) : null, ts = ({ sdk: s }) => {
2283
+ const [n] = V(s.getNotificationsStore()), l = Z(n), d = Le(() => {
2289
2284
  if (!(l != null && l.size))
2290
2285
  return null;
2291
2286
  for (const m of l.values())
2292
- if (m.type === ye.ONBOARDING)
2287
+ if (m.type === we.ONBOARDING)
2293
2288
  return m;
2294
2289
  return l.values().next().value;
2295
2290
  }, [l]);
2296
- return (d == null ? void 0 : d.type) === ye.QUESTION ? /* @__PURE__ */ c(Fe, { hiding: d.hiding, children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(at, { ...d }) }) }) : (d == null ? void 0 : d.type) === ye.QUESTION_RESOLVED ? /* @__PURE__ */ c(Fe, { hiding: d.hiding, children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(at, { ...d }) }) }) : (d == null ? void 0 : d.type) === ye.ONBOARDING ? /* @__PURE__ */ c(
2297
- Jn,
2298
- {
2299
- NotificationContainer: Fe,
2300
- sdk: s,
2301
- notification: d,
2302
- hiding: d.hiding
2303
- }
2304
- ) : null;
2305
- }, ts = /* @__PURE__ */ h("div")({
2291
+ return d ? /* @__PURE__ */ c(Zn, { hiding: d.hiding, children: /* @__PURE__ */ c(es, { sdk: s, notification: d }) }) : null;
2292
+ }, rs = /* @__PURE__ */ h("div")({
2306
2293
  name: "SDKContainer",
2307
2294
  class: "stu11h7",
2308
2295
  propsAsIs: !1
2309
- }), ht = /* @__PURE__ */ h("div")({
2296
+ }), ut = /* @__PURE__ */ h("div")({
2310
2297
  name: "SDKScrollContainer",
2311
2298
  class: "s1ucohr1",
2312
2299
  propsAsIs: !1
2313
- }), rs = /* @__PURE__ */ h("div")({
2300
+ }), is = /* @__PURE__ */ h("div")({
2314
2301
  name: "SDKContentContainer",
2315
2302
  class: "s1el4wvm",
2316
2303
  propsAsIs: !1
2317
- }), is = () => rs, ws = /* @__PURE__ */ h(is())({
2304
+ }), ns = () => is, Is = /* @__PURE__ */ h(ns())({
2318
2305
  name: "SDKWhiteContainer",
2319
2306
  class: "s1oe3036",
2320
2307
  propsAsIs: !0
2321
- }), ns = (s) => {
2322
- const o = dt(""), [l, d] = K(!1), m = Z(s.status), g = Z(s.userId()), f = m === "ready", [n, w] = K(ee), v = pt(
2308
+ }), ss = (s) => {
2309
+ const n = ht(""), [l, d] = V(!1), m = Z(s.status), g = Z(s.userId()), f = m === "ready", [o, w] = V(ee), v = pt(
2323
2310
  (y, A) => {
2324
- w(A), A === ee ? (y && s.createEventSession(y), s.openFeature(Re.GAMES)) : s.closeFeature();
2311
+ w(A), A === ee ? (y && s.createEventSession(y), s.openFeature(Ne.GAMES)) : s.closeFeature();
2325
2312
  },
2326
2313
  [s]
2327
2314
  );
2328
2315
  he(() => {
2329
- !f && n === ee && (w(ce), s.closeFeature());
2330
- }, [f, n, s]);
2316
+ !f && o === ee && (w(ce), s.closeFeature());
2317
+ }, [f, o, s]);
2331
2318
  const E = (y) => {
2332
- o.current = y, s.initializeApp().then(({ enabled: A, err: x }) => {
2319
+ n.current = y, s.initializeApp().then(({ enabled: A, err: x }) => {
2333
2320
  if (d(!0), x) {
2334
2321
  v(y, ce);
2335
2322
  return;
@@ -2353,93 +2340,93 @@ const qi = ({
2353
2340
  f && (w(ce), s.disableApp());
2354
2341
  return;
2355
2342
  }
2356
- g && o.current && l && s.initializeApp().then(() => {
2357
- s.createEventSession(o.current);
2343
+ g && n.current && l && s.initializeApp().then(() => {
2344
+ s.createEventSession(n.current);
2358
2345
  });
2359
2346
  }, [g]), {
2360
2347
  sdkEnabled: l,
2361
2348
  sdkReady: f,
2362
- activeOverlay: n,
2349
+ activeOverlay: o,
2363
2350
  activateAndLoadOverlay: v,
2364
2351
  enableSdk: E,
2365
2352
  disableSdk: C,
2366
2353
  isLogged: !!g
2367
2354
  };
2368
- }, ss = (s) => {
2369
- const o = Z(s.getActiveFeature()), l = Z(s.streamStore()), [d, m] = K(null);
2355
+ }, os = (s) => {
2356
+ const n = Z(s.getActiveFeature()), l = Z(s.streamStore()), [d, m] = V(null);
2370
2357
  return he(() => {
2371
2358
  const g = s.getFeatures();
2372
- if (o)
2373
- for (const [f, n] of g)
2374
- f === o ? n.status.get() === pe.Suspended && (n.enable(), m(n)) : n.status.get() === pe.Ready && n.disable();
2359
+ if (n)
2360
+ for (const [f, o] of g)
2361
+ f === n ? o.status.get() === de.Suspended && (o.enable(), m(o)) : o.status.get() === de.Ready && o.disable();
2375
2362
  else {
2376
2363
  for (const [, f] of g)
2377
- f.status.get() === pe.Ready && f.disable();
2364
+ f.status.get() === de.Ready && f.disable();
2378
2365
  m(null);
2379
2366
  }
2380
2367
  return () => {
2381
2368
  for (const [, f] of g)
2382
- f.status.get() === pe.Ready && f.disable();
2369
+ f.status.get() === de.Ready && f.disable();
2383
2370
  };
2384
- }, [o, s, l]), [o, d];
2385
- }, os = ({ sdk: s, className: o }) => {
2386
- const [, l] = ss(s);
2387
- return /* @__PURE__ */ c(er, { className: o, feature: l, sdk: s });
2388
- }, as = ({ sdk: s, overlays: o, children: l }) => {
2389
- const { sdkEnabled: d, sdkReady: m, activeOverlay: g, activateAndLoadOverlay: f, enableSdk: n, disableSdk: w, isLogged: v } = ns(s);
2371
+ }, [n, s, l]), [n, d];
2372
+ }, as = ({ sdk: s, className: n }) => {
2373
+ const [, l] = os(s);
2374
+ return /* @__PURE__ */ c(Zt, { className: n, feature: l, sdk: s });
2375
+ }, ls = ({ sdk: s, overlays: n, children: l }) => {
2376
+ const { sdkEnabled: d, sdkReady: m, activeOverlay: g, activateAndLoadOverlay: f, enableSdk: o, disableSdk: w, isLogged: v } = ss(s);
2390
2377
  return he(() => {
2391
2378
  import("./gamification-feature.js");
2392
- }, []), /* @__PURE__ */ I(ts, { children: [
2379
+ }, []), /* @__PURE__ */ I(rs, { children: [
2393
2380
  d && /* @__PURE__ */ c(
2394
- yr,
2381
+ gr,
2395
2382
  {
2396
2383
  sdkReady: m,
2397
2384
  activeOverlay: g,
2398
- className: Ke,
2385
+ className: Qe,
2399
2386
  setActiveOverlay: (E) => f("", E)
2400
2387
  }
2401
2388
  ),
2402
- m && /* @__PURE__ */ c(es, { sdk: s }),
2389
+ m && /* @__PURE__ */ c(ts, { sdk: s }),
2403
2390
  /* @__PURE__ */ c(
2404
- ht,
2391
+ ut,
2405
2392
  {
2406
2393
  "data-nav": d.toString(),
2407
2394
  style: { display: !d || g === ce ? "block" : "none" },
2408
- children: l && l({ enableSdk: n, disableSdk: w })
2395
+ children: l && l({ enableSdk: o, disableSdk: w })
2409
2396
  }
2410
2397
  ),
2411
2398
  /* @__PURE__ */ c(
2412
- ht,
2399
+ ut,
2413
2400
  {
2414
2401
  "data-nav": d.toString(),
2415
2402
  style: { display: g === Ae ? "block" : "none" },
2416
- children: o && g === Ae && o[g]
2403
+ children: n && g === Ae && n[g]
2417
2404
  }
2418
2405
  ),
2419
- m && g === ee && /* @__PURE__ */ c(os, { className: Ke, sdk: s }),
2406
+ m && g === ee && /* @__PURE__ */ c(as, { className: Qe, sdk: s }),
2420
2407
  !v && /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
2421
2408
  ] });
2422
2409
  };
2423
- const Is = ({
2410
+ const As = ({
2424
2411
  sdkKey: s,
2425
- plugins: o,
2412
+ plugins: n,
2426
2413
  children: l,
2427
2414
  production: d = !0
2428
- }) => /* @__PURE__ */ c(Mt, { sdkKey: s, plugins: o, production: d, autoEnable: !1, children: l }), As = ({ children: s, overlays: o }) => {
2429
- const { sdk: l, status: d } = Qt(qt);
2430
- if (d === jt.UNSET)
2415
+ }) => /* @__PURE__ */ c(Pt, { sdkKey: s, plugins: n, production: d, autoEnable: !1, children: l }), xs = ({ children: s, overlays: n }) => {
2416
+ const { sdk: l, status: d } = Vt(Mt);
2417
+ if (d === qt.UNSET)
2431
2418
  throw new Error("Wrap app in `StreamLayerProvider`");
2432
- return l ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ c(Gt, { style: { height: "100%" }, children: /* @__PURE__ */ c(as, { sdk: l, overlays: o, children: s }) }) }) : s({});
2419
+ return l ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ c(jt, { style: { height: "100%" }, children: /* @__PURE__ */ c(ls, { sdk: l, overlays: n, children: s }) }) }) : s({});
2433
2420
  };
2434
2421
  export {
2435
- xt as A,
2436
- Is as M,
2422
+ At as A,
2423
+ As as M,
2437
2424
  pn as O,
2438
- ws as a,
2439
- As as b,
2440
- bt as d,
2441
- rs as n,
2442
- wr as o,
2443
- ht as r,
2444
- Er as w
2425
+ Is as a,
2426
+ xs as b,
2427
+ xt as d,
2428
+ is as n,
2429
+ yr as o,
2430
+ ut as r,
2431
+ br as w
2445
2432
  };