@streamlayer/react 1.22.2 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +44 -40
  3. package/lib/cjs/analytics.js +1 -1
  4. package/lib/cjs/index-eShKGO10.js +5 -0
  5. package/lib/cjs/index.js +1 -1
  6. package/lib/cjs/index10.js +4 -1
  7. package/lib/cjs/index11.js +1 -4
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +1 -1
  10. package/lib/cjs/index14.js +1 -1
  11. package/lib/cjs/index15.js +5 -1
  12. package/lib/cjs/index2.js +1 -1
  13. package/lib/cjs/index4.js +1 -1
  14. package/lib/cjs/index7.js +1 -5
  15. package/lib/cjs/index8.js +1 -1
  16. package/lib/cjs/index9.js +1 -1
  17. package/lib/cjs/insight.js +1 -1
  18. package/lib/cjs/masters2.js +5 -5
  19. package/lib/cjs/notification.js +1 -1
  20. package/lib/cjs/pause-ad.js +1 -1
  21. package/lib/cjs/points.js +1 -1
  22. package/lib/cjs/storage.js +1 -1
  23. package/lib/cjs/useStreamLayerApp2.js +17 -17
  24. package/lib/classic/cjs/Question.js +1 -1
  25. package/lib/classic/cjs/advertisement.js +44 -40
  26. package/lib/classic/cjs/analytics.js +1 -1
  27. package/lib/classic/cjs/bet-pack.js +1 -1
  28. package/lib/classic/cjs/index-eShKGO10.js +5 -0
  29. package/lib/classic/cjs/index.js +1 -1
  30. package/lib/classic/cjs/index10.js +1 -1
  31. package/lib/classic/cjs/index11.js +1 -1
  32. package/lib/classic/cjs/index12.js +4 -1
  33. package/lib/classic/cjs/index2.js +2 -2
  34. package/lib/classic/cjs/index3.js +1 -1
  35. package/lib/classic/cjs/index4.js +1 -1
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index6.js +1 -5
  38. package/lib/classic/cjs/index7.js +1 -1
  39. package/lib/classic/cjs/index8.js +1 -1
  40. package/lib/classic/cjs/index9.js +1 -1
  41. package/lib/classic/cjs/insight.js +1 -1
  42. package/lib/classic/cjs/notification.js +1 -1
  43. package/lib/classic/cjs/notification2.js +1 -1
  44. package/lib/classic/cjs/pause-ad.js +1 -1
  45. package/lib/classic/cjs/points.js +1 -1
  46. package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
  47. package/lib/classic/es/Question.js +53 -53
  48. package/lib/classic/es/advertisement.js +15547 -10742
  49. package/lib/classic/es/analytics.js +74 -18
  50. package/lib/classic/es/bet-pack.js +4 -4
  51. package/lib/classic/es/index-eShKGO10.js +3757 -0
  52. package/lib/classic/es/index.js +1 -1
  53. package/lib/classic/es/index10.js +2295 -82
  54. package/lib/classic/es/index11.js +179 -2357
  55. package/lib/classic/es/index12.js +822 -170
  56. package/lib/classic/es/index2.js +13 -14
  57. package/lib/classic/es/index3.js +16 -61
  58. package/lib/classic/es/index4.js +282 -16
  59. package/lib/classic/es/index5.js +5 -283
  60. package/lib/classic/es/index6.js +9 -3756
  61. package/lib/classic/es/index7.js +62 -5
  62. package/lib/classic/es/index8.js +315 -7
  63. package/lib/classic/es/index9.js +81 -313
  64. package/lib/classic/es/insight.js +1 -1
  65. package/lib/classic/es/notification.js +1 -1
  66. package/lib/classic/es/notification2.js +476 -452
  67. package/lib/classic/es/pause-ad.js +174 -208
  68. package/lib/classic/es/points.js +4 -4
  69. package/lib/classic/es/useStreamLayerApp2.js +5062 -4028
  70. package/lib/dist/cjs/index-eShKGO10.js +5 -0
  71. package/lib/dist/cjs/masters.js +35 -35
  72. package/lib/dist/es/index-eShKGO10.js +3757 -0
  73. package/lib/dist/es/masters.js +9267 -8240
  74. package/lib/dist/index.d.ts +13 -1
  75. package/lib/dist/style.css +1 -1
  76. package/lib/es/Question.js +4 -4
  77. package/lib/es/advertisement.js +15547 -10742
  78. package/lib/es/analytics.js +74 -18
  79. package/lib/es/index-eShKGO10.js +3757 -0
  80. package/lib/es/index.js +1 -1
  81. package/lib/es/index10.js +804 -236
  82. package/lib/es/index11.js +170 -822
  83. package/lib/es/index12.js +302 -166
  84. package/lib/es/index13.js +81 -313
  85. package/lib/es/index14.js +2350 -82
  86. package/lib/es/index15.js +1229 -2330
  87. package/lib/es/index2.js +10 -11
  88. package/lib/es/index4.js +2 -2
  89. package/lib/es/index7.js +5 -3756
  90. package/lib/es/index8.js +9 -5
  91. package/lib/es/index9.js +263 -7
  92. package/lib/es/insight.js +1 -1
  93. package/lib/es/masters2.js +15 -16
  94. package/lib/es/notification.js +449 -425
  95. package/lib/es/pause-ad.js +174 -208
  96. package/lib/es/points.js +1 -1
  97. package/lib/es/storage.js +2 -2
  98. package/lib/es/useStreamLayerApp2.js +5062 -4028
  99. package/lib/style.css +1 -1
  100. package/package.json +17 -16
  101. package/lib/cjs/index-DSi8Qgfs.js +0 -1
  102. package/lib/cjs/index16.js +0 -5
  103. package/lib/cjs/vast-client.min.js +0 -1
  104. package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
  105. package/lib/classic/cjs/index13.js +0 -4
  106. package/lib/classic/cjs/vast-client.min.js +0 -1
  107. package/lib/classic/es/index-DSi8Qgfs.js +0 -65
  108. package/lib/classic/es/index13.js +0 -835
  109. package/lib/classic/es/vast-client.min.js +0 -1060
  110. package/lib/es/index-DSi8Qgfs.js +0 -65
  111. package/lib/es/index16.js +0 -1254
  112. package/lib/es/vast-client.min.js +0 -1060
package/lib/es/index15.js CHANGED
@@ -1,2355 +1,1254 @@
1
- import bs from "react";
2
- var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function Sf(e) {
4
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
- }
6
- function Ef(e) {
7
- if (e.__esModule) return e;
8
- var r = e.default;
9
- if (typeof r == "function") {
10
- var t = function n() {
11
- return this instanceof n ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
1
+ import { atom as b2 } from "nanostores";
2
+ import { F as W } from "./index3.js";
3
+ import { useState as T, useEffect as V, useRef as Z, useCallback as N, Component as y2, createElement as T2, useMemo as H2 } from "react";
4
+ import { u as Y, s, A as K } from "./sl-types.js";
5
+ import { jsxs as r, jsx as e, Fragment as S } from "react/jsx-runtime";
6
+ import { i as z } from "./index8.js";
7
+ import { I as f2, s as V2, b as v2, e as k2 } from "./index11.js";
8
+ import { createPortal as D } from "react-dom";
9
+ import { u as z2 } from "./utils.js";
10
+ import { r as I2, S as x2, R as R2, D as F2 } from "./storage.js";
11
+ import { O as S2 } from "./index9.js";
12
+ import { w as M2, E as q2 } from "./index12.js";
13
+ import { g as E2, I as B2, d as N2, Q as k } from "./useStreamLayerApp2.js";
14
+ import { B as H } from "./index6.js";
15
+ import { d as Z2 } from "./index5.js";
16
+ import { f as O2 } from "./index10.js";
17
+ import { a as W2 } from "./analytics.js";
18
+ const oe = (i) => b2(i), le = (i) => {
19
+ const t = Y(i.getActiveFeature()), n = Y(i.streamStore()), [o, l] = T(null);
20
+ return V(() => {
21
+ const c = i.getFeatures();
22
+ if (!t)
23
+ l(null);
24
+ else
25
+ for (const [p, d] of c)
26
+ p === t ? (d.status.get() === W.Suspended && d.enable(), l(d)) : d.status.get() === W.Ready && d.disable();
27
+ return () => {
28
+ for (const [, p] of c)
29
+ p.status.get() === W.Ready && p.disable();
12
30
  };
13
- t.prototype = r.prototype;
14
- } else t = {};
15
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
16
- var a = Object.getOwnPropertyDescriptor(e, n);
17
- Object.defineProperty(t, n, a.get ? a : {
18
- enumerable: !0,
19
- get: function() {
20
- return e[n];
21
- }
22
- });
23
- }), t;
24
- }
25
- var Wi = { exports: {} }, He, Tn;
26
- function de() {
27
- if (Tn) return He;
28
- Tn = 1;
29
- function e(r) {
30
- var t = typeof r;
31
- return r != null && (t == "object" || t == "function");
32
- }
33
- return He = e, He;
34
- }
35
- var $e, An;
36
- function Yi() {
37
- if (An) return $e;
38
- An = 1;
39
- var e = typeof Re == "object" && Re && Re.Object === Object && Re;
40
- return $e = e, $e;
41
- }
42
- var Ge, On;
43
- function ie() {
44
- if (On) return Ge;
45
- On = 1;
46
- var e = Yi(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
47
- return Ge = t, Ge;
48
- }
49
- var ke, xn;
50
- function _s() {
51
- if (xn) return ke;
52
- xn = 1;
53
- var e = ie(), r = function() {
54
- return e.Date.now();
55
- };
56
- return ke = r, ke;
57
- }
58
- var Ue, Kn;
59
- function ms() {
60
- if (Kn) return Ue;
61
- Kn = 1;
62
- var e = /\s/;
63
- function r(t) {
64
- for (var n = t.length; n-- && e.test(t.charAt(n)); )
65
- ;
66
- return n;
67
- }
68
- return Ue = r, Ue;
69
- }
70
- var ze, Sn;
71
- function Cs() {
72
- if (Sn) return ze;
73
- Sn = 1;
74
- var e = ms(), r = /^\s+/;
75
- function t(n) {
76
- return n && n.slice(0, e(n) + 1).replace(r, "");
77
- }
78
- return ze = t, ze;
79
- }
80
- var We, En;
81
- function we() {
82
- if (En) return We;
83
- En = 1;
84
- var e = ie(), r = e.Symbol;
85
- return We = r, We;
86
- }
87
- var Ye, Pn;
88
- function Fs() {
89
- if (Pn) return Ye;
90
- Pn = 1;
91
- var e = we(), r = Object.prototype, t = r.hasOwnProperty, n = r.toString, a = e ? e.toStringTag : void 0;
92
- function i(o) {
93
- var u = t.call(o, a), v = o[a];
94
- try {
95
- o[a] = void 0;
96
- var h = !0;
97
- } catch {
98
- }
99
- var m = n.call(o);
100
- return h && (u ? o[a] = v : delete o[a]), m;
101
- }
102
- return Ye = i, Ye;
103
- }
104
- var Xe, Mn;
105
- function qs() {
106
- if (Mn) return Xe;
107
- Mn = 1;
108
- var e = Object.prototype, r = e.toString;
109
- function t(n) {
110
- return r.call(n);
111
- }
112
- return Xe = t, Xe;
113
- }
114
- var Je, In;
115
- function Te() {
116
- if (In) return Je;
117
- In = 1;
118
- var e = we(), r = Fs(), t = qs(), n = "[object Null]", a = "[object Undefined]", i = e ? e.toStringTag : void 0;
119
- function o(u) {
120
- return u == null ? u === void 0 ? a : n : i && i in Object(u) ? r(u) : t(u);
121
- }
122
- return Je = o, Je;
123
- }
124
- var Ze, Dn;
125
- function ve() {
126
- if (Dn) return Ze;
127
- Dn = 1;
128
- function e(r) {
129
- return r != null && typeof r == "object";
130
- }
131
- return Ze = e, Ze;
132
- }
133
- var Qe, Ln;
134
- function Ae() {
135
- if (Ln) return Qe;
136
- Ln = 1;
137
- var e = Te(), r = ve(), t = "[object Symbol]";
138
- function n(a) {
139
- return typeof a == "symbol" || r(a) && e(a) == t;
140
- }
141
- return Qe = n, Qe;
142
- }
143
- var Ve, Nn;
144
- function Rs() {
145
- if (Nn) return Ve;
146
- Nn = 1;
147
- var e = Cs(), r = de(), t = Ae(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, o = /^0o[0-7]+$/i, u = parseInt;
148
- function v(h) {
149
- if (typeof h == "number")
150
- return h;
151
- if (t(h))
152
- return n;
153
- if (r(h)) {
154
- var m = typeof h.valueOf == "function" ? h.valueOf() : h;
155
- h = r(m) ? m + "" : m;
156
- }
157
- if (typeof h != "string")
158
- return h === 0 ? h : +h;
159
- h = e(h);
160
- var _ = i.test(h);
161
- return _ || o.test(h) ? u(h.slice(2), _ ? 2 : 8) : a.test(h) ? n : +h;
162
- }
163
- return Ve = v, Ve;
164
- }
165
- var er, Bn;
166
- function Xi() {
167
- if (Bn) return er;
168
- Bn = 1;
169
- var e = de(), r = _s(), t = Rs(), n = "Expected a function", a = Math.max, i = Math.min;
170
- function o(u, v, h) {
171
- var m, _, I, P, N, K, b = 0, l = !1, g = !1, C = !0;
172
- if (typeof u != "function")
173
- throw new TypeError(n);
174
- v = t(v) || 0, e(h) && (l = !!h.leading, g = "maxWait" in h, I = g ? a(t(h.maxWait) || 0, v) : I, C = "trailing" in h ? !!h.trailing : C);
175
- function y(T) {
176
- var k = m, X = _;
177
- return m = _ = void 0, b = T, P = u.apply(X, k), P;
178
- }
179
- function S(T) {
180
- return b = T, N = setTimeout(L, v), l ? y(T) : P;
181
- }
182
- function O(T) {
183
- var k = T - K, X = T - b, te = v - k;
184
- return g ? i(te, I - X) : te;
185
- }
186
- function q(T) {
187
- var k = T - K, X = T - b;
188
- return K === void 0 || k >= v || k < 0 || g && X >= I;
189
- }
190
- function L() {
191
- var T = r();
192
- if (q(T))
193
- return R(T);
194
- N = setTimeout(L, O(T));
195
- }
196
- function R(T) {
197
- return N = void 0, C && m ? y(T) : (m = _ = void 0, P);
198
- }
199
- function x() {
200
- N !== void 0 && clearTimeout(N), b = 0, m = K = _ = N = void 0;
201
- }
202
- function E() {
203
- return N === void 0 ? P : R(r());
204
- }
205
- function $() {
206
- var T = r(), k = q(T);
207
- if (m = arguments, _ = this, K = T, k) {
208
- if (N === void 0)
209
- return S(K);
210
- if (g)
211
- return clearTimeout(N), N = setTimeout(L, v), y(K);
212
- }
213
- return N === void 0 && (N = setTimeout(L, v)), P;
214
- }
215
- return $.cancel = x, $.flush = E, $;
216
- }
217
- return er = o, er;
218
- }
219
- var rr, jn;
220
- function Ji() {
221
- if (jn) return rr;
222
- jn = 1;
223
- var e = Te(), r = de(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
224
- function o(u) {
225
- if (!r(u))
226
- return !1;
227
- var v = e(u);
228
- return v == n || v == a || v == t || v == i;
229
- }
230
- return rr = o, rr;
231
- }
232
- var ws = ie(), Ts = ws["__core-js_shared__"], As = Ts, tr = As, Hn = function() {
233
- var e = /[^.]+$/.exec(tr && tr.keys && tr.keys.IE_PROTO || "");
234
- return e ? "Symbol(src)_1." + e : "";
235
- }();
236
- function Os(e) {
237
- return !!Hn && Hn in e;
238
- }
239
- var xs = Os, Ks = Function.prototype, Ss = Ks.toString;
240
- function Es(e) {
241
- if (e != null) {
242
- try {
243
- return Ss.call(e);
244
- } catch {
245
- }
246
- try {
247
- return e + "";
248
- } catch {
249
- }
250
- }
251
- return "";
252
- }
253
- var Zi = Es, Ps = Ji(), Ms = xs, Is = de(), Ds = Zi, Ls = /[\\^$.*+?()[\]{}|]/g, Ns = /^\[object .+?Constructor\]$/, Bs = Function.prototype, js = Object.prototype, Hs = Bs.toString, $s = js.hasOwnProperty, Gs = RegExp(
254
- "^" + Hs.call($s).replace(Ls, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
255
- );
256
- function ks(e) {
257
- if (!Is(e) || Ms(e))
258
- return !1;
259
- var r = Ps(e) ? Gs : Ns;
260
- return r.test(Ds(e));
261
- }
262
- var Us = ks;
263
- function zs(e, r) {
264
- return e == null ? void 0 : e[r];
265
- }
266
- var Ws = zs, Ys = Us, Xs = Ws;
267
- function Js(e, r) {
268
- var t = Xs(e, r);
269
- return Ys(t) ? t : void 0;
270
- }
271
- var he = Js, nr, $n;
272
- function Ie() {
273
- if ($n) return nr;
274
- $n = 1;
275
- var e = he, r = e(Object, "create");
276
- return nr = r, nr;
277
- }
278
- var ar, Gn;
279
- function Zs() {
280
- if (Gn) return ar;
281
- Gn = 1;
282
- var e = Ie();
283
- function r() {
284
- this.__data__ = e ? e(null) : {}, this.size = 0;
285
- }
286
- return ar = r, ar;
287
- }
288
- var ir, kn;
289
- function Qs() {
290
- if (kn) return ir;
291
- kn = 1;
292
- function e(r) {
293
- var t = this.has(r) && delete this.__data__[r];
294
- return this.size -= t ? 1 : 0, t;
295
- }
296
- return ir = e, ir;
297
- }
298
- var sr, Un;
299
- function Vs() {
300
- if (Un) return sr;
301
- Un = 1;
302
- var e = Ie(), r = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty;
303
- function a(i) {
304
- var o = this.__data__;
305
- if (e) {
306
- var u = o[i];
307
- return u === r ? void 0 : u;
308
- }
309
- return n.call(o, i) ? o[i] : void 0;
310
- }
311
- return sr = a, sr;
312
- }
313
- var or, zn;
314
- function eo() {
315
- if (zn) return or;
316
- zn = 1;
317
- var e = Ie(), r = Object.prototype, t = r.hasOwnProperty;
318
- function n(a) {
319
- var i = this.__data__;
320
- return e ? i[a] !== void 0 : t.call(i, a);
321
- }
322
- return or = n, or;
323
- }
324
- var ur, Wn;
325
- function ro() {
326
- if (Wn) return ur;
327
- Wn = 1;
328
- var e = Ie(), r = "__lodash_hash_undefined__";
329
- function t(n, a) {
330
- var i = this.__data__;
331
- return this.size += this.has(n) ? 0 : 1, i[n] = e && a === void 0 ? r : a, this;
332
- }
333
- return ur = t, ur;
334
- }
335
- var cr, Yn;
336
- function to() {
337
- if (Yn) return cr;
338
- Yn = 1;
339
- var e = Zs(), r = Qs(), t = Vs(), n = eo(), a = ro();
340
- function i(o) {
341
- var u = -1, v = o == null ? 0 : o.length;
342
- for (this.clear(); ++u < v; ) {
343
- var h = o[u];
344
- this.set(h[0], h[1]);
345
- }
346
- }
347
- return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, cr = i, cr;
348
- }
349
- function no() {
350
- this.__data__ = [], this.size = 0;
351
- }
352
- var ao = no, fr, Xn;
353
- function un() {
354
- if (Xn) return fr;
355
- Xn = 1;
356
- function e(r, t) {
357
- return r === t || r !== r && t !== t;
358
- }
359
- return fr = e, fr;
360
- }
361
- var io = un();
362
- function so(e, r) {
363
- for (var t = e.length; t--; )
364
- if (io(e[t][0], r))
365
- return t;
366
- return -1;
367
- }
368
- var De = so, oo = De, uo = Array.prototype, co = uo.splice;
369
- function fo(e) {
370
- var r = this.__data__, t = oo(r, e);
371
- if (t < 0)
372
- return !1;
373
- var n = r.length - 1;
374
- return t == n ? r.pop() : co.call(r, t, 1), --this.size, !0;
375
- }
376
- var lo = fo, ho = De;
377
- function vo(e) {
378
- var r = this.__data__, t = ho(r, e);
379
- return t < 0 ? void 0 : r[t][1];
380
- }
381
- var po = vo, yo = De;
382
- function go(e) {
383
- return yo(this.__data__, e) > -1;
384
- }
385
- var bo = go, _o = De;
386
- function mo(e, r) {
387
- var t = this.__data__, n = _o(t, e);
388
- return n < 0 ? (++this.size, t.push([e, r])) : t[n][1] = r, this;
389
- }
390
- var Co = mo, Fo = ao, qo = lo, Ro = po, wo = bo, To = Co;
391
- function pe(e) {
392
- var r = -1, t = e == null ? 0 : e.length;
393
- for (this.clear(); ++r < t; ) {
394
- var n = e[r];
395
- this.set(n[0], n[1]);
396
- }
397
- }
398
- pe.prototype.clear = Fo;
399
- pe.prototype.delete = qo;
400
- pe.prototype.get = Ro;
401
- pe.prototype.has = wo;
402
- pe.prototype.set = To;
403
- var Le = pe, Ao = he, Oo = ie(), xo = Ao(Oo, "Map"), cn = xo, lr, Jn;
404
- function Ko() {
405
- if (Jn) return lr;
406
- Jn = 1;
407
- var e = to(), r = Le, t = cn;
408
- function n() {
409
- this.size = 0, this.__data__ = {
410
- hash: new e(),
411
- map: new (t || r)(),
412
- string: new e()
31
+ }, [t, i, n]), [t, o];
32
+ }, j2 = /* @__PURE__ */ s("div")({
33
+ name: "Container",
34
+ class: "c1zy8a",
35
+ propsAsIs: !1
36
+ }), G2 = /* @__PURE__ */ s("div")({
37
+ name: "Title",
38
+ class: "t1vih9p5",
39
+ propsAsIs: !1
40
+ }), D2 = /* @__PURE__ */ s("div")({
41
+ name: "Indicator",
42
+ class: "i1fbnvpb",
43
+ propsAsIs: !1
44
+ }), J = ({ indicator: i, title: t }) => /* @__PURE__ */ r(j2, { children: [
45
+ /* @__PURE__ */ e(G2, { children: t }),
46
+ /* @__PURE__ */ e(D2, { children: i })
47
+ ] }), P2 = /* @__PURE__ */ s("div")({
48
+ name: "Container",
49
+ class: "ctmhwyc",
50
+ propsAsIs: !1
51
+ }), U2 = /* @__PURE__ */ s("div")({
52
+ name: "Indicator",
53
+ class: "i1jri200",
54
+ propsAsIs: !1
55
+ }), Q2 = /* @__PURE__ */ s("div")({
56
+ name: "Title",
57
+ class: "t8s05oq",
58
+ propsAsIs: !1
59
+ }), q = ({ indicator: i, title: t }) => /* @__PURE__ */ r(P2, { children: [
60
+ /* @__PURE__ */ e(U2, { children: i }),
61
+ /* @__PURE__ */ e(Q2, { children: t })
62
+ ] }), Y2 = /* @__PURE__ */ s("div")({
63
+ name: "Container",
64
+ class: "c1yrpn9o",
65
+ propsAsIs: !1
66
+ }), K2 = /* @__PURE__ */ s("div")({
67
+ name: "TopInfo",
68
+ class: "t17fwahh",
69
+ propsAsIs: !1
70
+ }), J2 = /* @__PURE__ */ s("div")({
71
+ name: "BottomInfo",
72
+ class: "by6w7e9",
73
+ propsAsIs: !1
74
+ }), X2 = /* @__PURE__ */ s("div")({
75
+ name: "User",
76
+ class: "u1g7arbm",
77
+ propsAsIs: !1
78
+ }), e0 = /* @__PURE__ */ s("img")({
79
+ name: "Avatar",
80
+ class: "a1ldeata",
81
+ propsAsIs: !1
82
+ }), s0 = /* @__PURE__ */ s("div")({
83
+ name: "UserInfo",
84
+ class: "u10d4koz",
85
+ propsAsIs: !1
86
+ }), t0 = /* @__PURE__ */ s("div")({
87
+ name: "UserName",
88
+ class: "u1q6roj0",
89
+ propsAsIs: !1
90
+ }), i0 = /* @__PURE__ */ s("div")({
91
+ name: "UserRating",
92
+ class: "ui0m425",
93
+ propsAsIs: !1
94
+ }), n0 = /* @__PURE__ */ s("img")({
95
+ name: "TrophyIcon",
96
+ class: "t1el3mrn",
97
+ propsAsIs: !1
98
+ }), r0 = /* @__PURE__ */ s("div")({
99
+ name: "RtsContainer",
100
+ class: "r2vgnxv",
101
+ propsAsIs: !1
102
+ }), a0 = /* @__PURE__ */ s("div")({
103
+ name: "RtsDivider",
104
+ class: "roqn06j",
105
+ propsAsIs: !1
106
+ }), o0 = /* @__PURE__ */ s("div")({
107
+ name: "Rts",
108
+ class: "r15adx7c",
109
+ propsAsIs: !1
110
+ }), X = /* @__PURE__ */ s("div")({
111
+ name: "RtsIndicator",
112
+ class: "rv59lta",
113
+ propsAsIs: !1
114
+ }), e2 = /* @__PURE__ */ s("div")({
115
+ name: "RtsLabel",
116
+ class: "r55lotb",
117
+ propsAsIs: !1
118
+ }), l0 = /* @__PURE__ */ s("div")({
119
+ name: "Divider",
120
+ class: "d1knfgqt",
121
+ propsAsIs: !1
122
+ }), c0 = /* @__PURE__ */ s("div")({
123
+ name: "Ranks",
124
+ class: "r1mqo824",
125
+ propsAsIs: !1
126
+ }), d0 = /* @__PURE__ */ s("div")({
127
+ name: "Statistics",
128
+ class: "sxareh6",
129
+ propsAsIs: !1
130
+ }), p0 = /* @__PURE__ */ s("div")({
131
+ name: "AvatarPlaceholder",
132
+ class: "amcu48h",
133
+ propsAsIs: !1
134
+ }), h0 = /* @__PURE__ */ s("button")({
135
+ name: "UserAccountBtn",
136
+ class: "u32nfkp",
137
+ propsAsIs: !1
138
+ }), C0 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e", ce = ({
139
+ loading: i,
140
+ hideFriendsRank: t,
141
+ avatar: n,
142
+ name: o,
143
+ points: l,
144
+ friendsRank: c,
145
+ rank: p,
146
+ streak: d,
147
+ correct: C,
148
+ incorrect: I,
149
+ inTop: _,
150
+ successRate: L
151
+ }) => /* @__PURE__ */ r(Y2, { "data-loading": i, children: [
152
+ /* @__PURE__ */ e(K2, { children: /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ r(X2, { children: [
153
+ /* @__PURE__ */ r(h0, { children: [
154
+ n && /* @__PURE__ */ e(e0, { alt: "avatar", src: n }),
155
+ !n && /* @__PURE__ */ e(p0, { children: f2(o || "") })
156
+ ] }),
157
+ /* @__PURE__ */ r(s0, { children: [
158
+ /* @__PURE__ */ e(t0, { children: o }),
159
+ /* @__PURE__ */ r(i0, { children: [
160
+ /* @__PURE__ */ r(r0, { children: [
161
+ /* @__PURE__ */ r(o0, { children: [
162
+ /* @__PURE__ */ e(n0, { alt: "rank-icon", src: C0 }),
163
+ /* @__PURE__ */ r(X, { children: [
164
+ V2(l),
165
+ /* @__PURE__ */ e(e2, { children: "PTS" })
166
+ ] })
167
+ ] }),
168
+ t && /* @__PURE__ */ r(X, { children: [
169
+ /* @__PURE__ */ e(a0, {}),
170
+ p || 0,
171
+ /* @__PURE__ */ e(e2, { children: "global rank" })
172
+ ] })
173
+ ] }),
174
+ !t && /* @__PURE__ */ r(S, { children: [
175
+ /* @__PURE__ */ e(l0, {}),
176
+ /* @__PURE__ */ r("div", { children: [
177
+ "TOP ",
178
+ _ || 0,
179
+ "%"
180
+ ] })
181
+ ] })
182
+ ] })
183
+ ] })
184
+ ] }) }) }),
185
+ /* @__PURE__ */ r(J2, { children: [
186
+ !t && /* @__PURE__ */ r(c0, { children: [
187
+ /* @__PURE__ */ e(z, { loading: i, style: { width: "100%" }, children: /* @__PURE__ */ e(J, { indicator: c || 0, title: "Friends rank" }) }),
188
+ /* @__PURE__ */ e(z, { loading: i, style: { width: "100%" }, children: /* @__PURE__ */ e(J, { indicator: p || 0, title: "Global rank" }) })
189
+ ] }),
190
+ /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ r(d0, { children: [
191
+ /* @__PURE__ */ e(q, { indicator: d || 0, title: "Win streak" }),
192
+ /* @__PURE__ */ e(q, { indicator: C || 0, title: "Correct" }),
193
+ /* @__PURE__ */ e(q, { indicator: I || 0, title: "Incorrect" }),
194
+ /* @__PURE__ */ e(q, { indicator: `${L || 0}%`, title: "Succ. rate" })
195
+ ] }) })
196
+ ] })
197
+ ] }), m0 = /* @__PURE__ */ s("div")({
198
+ name: "StaticContainer",
199
+ class: "svm502q",
200
+ propsAsIs: !1
201
+ }), u0 = `
202
+ .sl-pill-button {
203
+ display: none !important;
204
+ }
205
+ `, A2 = () => window.innerWidth >= K.md && window.innerWidth < K.lg ? 76 : 53, s2 = (i) => {
206
+ var t;
207
+ const n = A2();
208
+ return Math.round((((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) - n) <= 0;
209
+ }, de = ({
210
+ children: i,
211
+ container: t,
212
+ useContainer: n,
213
+ staticStyles: o
214
+ }) => {
215
+ const [l] = T(() => s2(t)), [c, p] = T(!1);
216
+ return V(() => {
217
+ if (!t.current || !l)
218
+ return p(!0), () => {
219
+ };
220
+ const d = window.scrollY;
221
+ return p(!0), () => {
222
+ s2(t) && window.scrollTo({
223
+ top: d,
224
+ behavior: "instant"
225
+ });
413
226
  };
414
- }
415
- return lr = n, lr;
416
- }
417
- var dr, Zn;
418
- function So() {
419
- if (Zn) return dr;
420
- Zn = 1;
421
- function e(r) {
422
- var t = typeof r;
423
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? r !== "__proto__" : r === null;
424
- }
425
- return dr = e, dr;
426
- }
427
- var hr, Qn;
428
- function Ne() {
429
- if (Qn) return hr;
430
- Qn = 1;
431
- var e = So();
432
- function r(t, n) {
433
- var a = t.__data__;
434
- return e(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
435
- }
436
- return hr = r, hr;
437
- }
438
- var vr, Vn;
439
- function Eo() {
440
- if (Vn) return vr;
441
- Vn = 1;
442
- var e = Ne();
443
- function r(t) {
444
- var n = e(this, t).delete(t);
445
- return this.size -= n ? 1 : 0, n;
446
- }
447
- return vr = r, vr;
448
- }
449
- var pr, ea;
450
- function Po() {
451
- if (ea) return pr;
452
- ea = 1;
453
- var e = Ne();
454
- function r(t) {
455
- return e(this, t).get(t);
456
- }
457
- return pr = r, pr;
458
- }
459
- var yr, ra;
460
- function Mo() {
461
- if (ra) return yr;
462
- ra = 1;
463
- var e = Ne();
464
- function r(t) {
465
- return e(this, t).has(t);
466
- }
467
- return yr = r, yr;
468
- }
469
- var gr, ta;
470
- function Io() {
471
- if (ta) return gr;
472
- ta = 1;
473
- var e = Ne();
474
- function r(t, n) {
475
- var a = e(this, t), i = a.size;
476
- return a.set(t, n), this.size += a.size == i ? 0 : 1, this;
477
- }
478
- return gr = r, gr;
479
- }
480
- var br, na;
481
- function fn() {
482
- if (na) return br;
483
- na = 1;
484
- var e = Ko(), r = Eo(), t = Po(), n = Mo(), a = Io();
485
- function i(o) {
486
- var u = -1, v = o == null ? 0 : o.length;
487
- for (this.clear(); ++u < v; ) {
488
- var h = o[u];
489
- this.set(h[0], h[1]);
227
+ }, []), V(() => {
228
+ if (c && t.current && l) {
229
+ const d = A2();
230
+ window.scrollTo({
231
+ top: t.current.offsetTop - d,
232
+ behavior: "instant"
233
+ });
490
234
  }
491
- }
492
- return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, br = i, br;
493
- }
494
- var _r, aa;
495
- function Do() {
496
- if (aa) return _r;
497
- aa = 1;
498
- var e = "__lodash_hash_undefined__";
499
- function r(t) {
500
- return this.__data__.set(t, e), this;
501
- }
502
- return _r = r, _r;
503
- }
504
- var mr, ia;
505
- function Lo() {
506
- if (ia) return mr;
507
- ia = 1;
508
- function e(r) {
509
- return this.__data__.has(r);
510
- }
511
- return mr = e, mr;
512
- }
513
- var Cr, sa;
514
- function Qi() {
515
- if (sa) return Cr;
516
- sa = 1;
517
- var e = fn(), r = Do(), t = Lo();
518
- function n(a) {
519
- var i = -1, o = a == null ? 0 : a.length;
520
- for (this.__data__ = new e(); ++i < o; )
521
- this.add(a[i]);
522
- }
523
- return n.prototype.add = n.prototype.push = r, n.prototype.has = t, Cr = n, Cr;
524
- }
525
- var Fr, oa;
526
- function No() {
527
- if (oa) return Fr;
528
- oa = 1;
529
- function e(r, t, n, a) {
530
- for (var i = r.length, o = n + (a ? 1 : -1); a ? o-- : ++o < i; )
531
- if (t(r[o], o, r))
532
- return o;
533
- return -1;
534
- }
535
- return Fr = e, Fr;
536
- }
537
- var qr, ua;
538
- function Bo() {
539
- if (ua) return qr;
540
- ua = 1;
541
- function e(r) {
542
- return r !== r;
543
- }
544
- return qr = e, qr;
545
- }
546
- var Rr, ca;
547
- function jo() {
548
- if (ca) return Rr;
549
- ca = 1;
550
- function e(r, t, n) {
551
- for (var a = n - 1, i = r.length; ++a < i; )
552
- if (r[a] === t)
553
- return a;
554
- return -1;
555
- }
556
- return Rr = e, Rr;
557
- }
558
- var wr, fa;
559
- function Ho() {
560
- if (fa) return wr;
561
- fa = 1;
562
- var e = No(), r = Bo(), t = jo();
563
- function n(a, i, o) {
564
- return i === i ? t(a, i, o) : e(a, r, o);
565
- }
566
- return wr = n, wr;
567
- }
568
- var Tr, la;
569
- function $o() {
570
- if (la) return Tr;
571
- la = 1;
572
- var e = Ho();
573
- function r(t, n) {
574
- var a = t == null ? 0 : t.length;
575
- return !!a && e(t, n, 0) > -1;
576
- }
577
- return Tr = r, Tr;
578
- }
579
- var Ar, da;
580
- function Go() {
581
- if (da) return Ar;
582
- da = 1;
583
- function e(r, t, n) {
584
- for (var a = -1, i = r == null ? 0 : r.length; ++a < i; )
585
- if (n(t, r[a]))
586
- return !0;
587
- return !1;
588
- }
589
- return Ar = e, Ar;
590
- }
591
- function ko(e, r) {
592
- for (var t = -1, n = e == null ? 0 : e.length, a = Array(n); ++t < n; )
593
- a[t] = r(e[t], t, e);
594
- return a;
595
- }
596
- var ln = ko, Or, ha;
597
- function dn() {
598
- if (ha) return Or;
599
- ha = 1;
600
- function e(r) {
601
- return function(t) {
602
- return r(t);
603
- };
604
- }
605
- return Or = e, Or;
606
- }
607
- var xr, va;
608
- function Vi() {
609
- if (va) return xr;
610
- va = 1;
611
- function e(r, t) {
612
- return r.has(t);
613
- }
614
- return xr = e, xr;
615
- }
616
- var Kr, pa;
617
- function Uo() {
618
- if (pa) return Kr;
619
- pa = 1;
620
- var e = Qi(), r = $o(), t = Go(), n = ln, a = dn(), i = Vi(), o = 200;
621
- function u(v, h, m, _) {
622
- var I = -1, P = r, N = !0, K = v.length, b = [], l = h.length;
623
- if (!K)
624
- return b;
625
- m && (h = n(h, a(m))), _ ? (P = t, N = !1) : h.length >= o && (P = i, N = !1, h = new e(h));
626
- e:
627
- for (; ++I < K; ) {
628
- var g = v[I], C = m == null ? g : m(g);
629
- if (g = _ || g !== 0 ? g : 0, N && C === C) {
630
- for (var y = l; y--; )
631
- if (h[y] === C)
632
- continue e;
633
- b.push(g);
634
- } else P(h, C, _) || b.push(g);
235
+ }, [c]), !t.current || !c ? null : n ? D(/* @__PURE__ */ r(m0, {
236
+ className: "StaticContainer",
237
+ children: [i, /* @__PURE__ */ e("style", {
238
+ children: z2
239
+ }), /* @__PURE__ */ e("style", {
240
+ children: u0
241
+ })]
242
+ }), t.current, "modal-node") : D(/* @__PURE__ */ r(S, {
243
+ children: [i, /* @__PURE__ */ e("style", {
244
+ children: o
245
+ })]
246
+ }), t.current, "modal-node");
247
+ }, g0 = /* @__PURE__ */ s("button")({
248
+ name: "Container",
249
+ class: "cpjnajb",
250
+ propsAsIs: !1
251
+ }), f0 = /* @__PURE__ */ s("div")({
252
+ name: "Content",
253
+ class: "c4m6kaz",
254
+ propsAsIs: !1
255
+ }), v0 = /* @__PURE__ */ s("span")({
256
+ name: "Title",
257
+ class: "t1h8t9cc",
258
+ propsAsIs: !1
259
+ }), I0 = () => /* @__PURE__ */ e(g0, { children: /* @__PURE__ */ r(f0, { children: [
260
+ /* @__PURE__ */ e(H, { name: "iconCopySuccess" }),
261
+ /* @__PURE__ */ e(v0, { children: "Link Copied to Clipboard" })
262
+ ] }) }), A0 = (i) => {
263
+ const t = Z(), [n, o] = T(null), l = N(
264
+ async (c) => {
265
+ var p;
266
+ if (c && (p = navigator == null ? void 0 : navigator.clipboard) != null && p.writeText) {
267
+ t.current && (clearTimeout(t.current), o(null));
268
+ try {
269
+ await navigator.clipboard.writeText(c), i.current && (o(D(/* @__PURE__ */ e(I0, {}), i.current)), t.current = setTimeout(() => {
270
+ o(null);
271
+ }, 1e3));
272
+ } catch (d) {
273
+ console.error("Unable to copy to clipboard", d);
274
+ }
635
275
  }
636
- return b;
637
- }
638
- return Kr = u, Kr;
639
- }
640
- var Sr, ya;
641
- function es() {
642
- if (ya) return Sr;
643
- ya = 1;
644
- function e(r, t) {
645
- for (var n = -1, a = t.length, i = r.length; ++n < a; )
646
- r[i + n] = t[n];
647
- return r;
648
- }
649
- return Sr = e, Sr;
650
- }
651
- var Er, ga;
652
- function zo() {
653
- if (ga) return Er;
654
- ga = 1;
655
- var e = Te(), r = ve(), t = "[object Arguments]";
656
- function n(a) {
657
- return r(a) && e(a) == t;
658
- }
659
- return Er = n, Er;
660
- }
661
- var Pr, ba;
662
- function hn() {
663
- if (ba) return Pr;
664
- ba = 1;
665
- var e = zo(), r = ve(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, i = e(/* @__PURE__ */ function() {
666
- return arguments;
667
- }()) ? e : function(o) {
668
- return r(o) && n.call(o, "callee") && !a.call(o, "callee");
669
- };
670
- return Pr = i, Pr;
671
- }
672
- var Mr, _a;
673
- function re() {
674
- if (_a) return Mr;
675
- _a = 1;
676
- var e = Array.isArray;
677
- return Mr = e, Mr;
678
- }
679
- var Ir, ma;
680
- function Wo() {
681
- if (ma) return Ir;
682
- ma = 1;
683
- var e = we(), r = hn(), t = re(), n = e ? e.isConcatSpreadable : void 0;
684
- function a(i) {
685
- return t(i) || r(i) || !!(n && i && i[n]);
686
- }
687
- return Ir = a, Ir;
688
- }
689
- var Dr, Ca;
690
- function rs() {
691
- if (Ca) return Dr;
692
- Ca = 1;
693
- var e = es(), r = Wo();
694
- function t(n, a, i, o, u) {
695
- var v = -1, h = n.length;
696
- for (i || (i = r), u || (u = []); ++v < h; ) {
697
- var m = n[v];
698
- a > 0 && i(m) ? a > 1 ? t(m, a - 1, i, o, u) : e(u, m) : o || (u[u.length] = m);
699
- }
700
- return u;
701
- }
702
- return Dr = t, Dr;
703
- }
704
- var Lr, Fa;
705
- function Oe() {
706
- if (Fa) return Lr;
707
- Fa = 1;
708
- function e(r) {
709
- return r;
710
- }
711
- return Lr = e, Lr;
712
- }
713
- var Nr, qa;
714
- function Yo() {
715
- if (qa) return Nr;
716
- qa = 1;
717
- function e(r, t, n) {
718
- switch (n.length) {
719
- case 0:
720
- return r.call(t);
721
- case 1:
722
- return r.call(t, n[0]);
723
- case 2:
724
- return r.call(t, n[0], n[1]);
725
- case 3:
726
- return r.call(t, n[0], n[1], n[2]);
727
- }
728
- return r.apply(t, n);
729
- }
730
- return Nr = e, Nr;
731
- }
732
- var Br, Ra;
733
- function Xo() {
734
- if (Ra) return Br;
735
- Ra = 1;
736
- var e = Yo(), r = Math.max;
737
- function t(n, a, i) {
738
- return a = r(a === void 0 ? n.length - 1 : a, 0), function() {
739
- for (var o = arguments, u = -1, v = r(o.length - a, 0), h = Array(v); ++u < v; )
740
- h[u] = o[a + u];
741
- u = -1;
742
- for (var m = Array(a + 1); ++u < a; )
743
- m[u] = o[u];
744
- return m[a] = i(h), e(n, this, m);
745
- };
746
- }
747
- return Br = t, Br;
748
- }
749
- var jr, wa;
750
- function Jo() {
751
- if (wa) return jr;
752
- wa = 1;
753
- function e(r) {
754
- return function() {
755
- return r;
756
- };
757
- }
758
- return jr = e, jr;
759
- }
760
- var Hr, Ta;
761
- function Zo() {
762
- if (Ta) return Hr;
763
- Ta = 1;
764
- var e = he, r = function() {
765
- try {
766
- var t = e(Object, "defineProperty");
767
- return t({}, "", {}), t;
768
- } catch {
769
- }
770
- }();
771
- return Hr = r, Hr;
772
- }
773
- var $r, Aa;
774
- function Qo() {
775
- if (Aa) return $r;
776
- Aa = 1;
777
- var e = Jo(), r = Zo(), t = Oe(), n = r ? function(a, i) {
778
- return r(a, "toString", {
779
- configurable: !0,
780
- enumerable: !1,
781
- value: e(i),
782
- writable: !0
783
- });
784
- } : t;
785
- return $r = n, $r;
786
- }
787
- var Gr, Oa;
788
- function Vo() {
789
- if (Oa) return Gr;
790
- Oa = 1;
791
- var e = 800, r = 16, t = Date.now;
792
- function n(a) {
793
- var i = 0, o = 0;
794
- return function() {
795
- var u = t(), v = r - (u - o);
796
- if (o = u, v > 0) {
797
- if (++i >= e)
798
- return arguments[0];
799
- } else
800
- i = 0;
801
- return a.apply(void 0, arguments);
276
+ },
277
+ [i]
278
+ );
279
+ return V(() => () => {
280
+ clearTimeout(t.current);
281
+ }, []), [l, n];
282
+ };
283
+ let b;
284
+ typeof window < "u" ? b = window : typeof self < "u" ? b = self : b = E2;
285
+ let P = null, U = null;
286
+ const t2 = 20, j = b.clearTimeout, i2 = b.setTimeout, G = b.cancelAnimationFrame || b.mozCancelAnimationFrame || b.webkitCancelAnimationFrame, n2 = b.requestAnimationFrame || b.mozRequestAnimationFrame || b.webkitRequestAnimationFrame;
287
+ G == null || n2 == null ? (P = j, U = function(t) {
288
+ return i2(t, t2);
289
+ }) : (P = function([t, n]) {
290
+ G(t), j(n);
291
+ }, U = function(t) {
292
+ const n = n2(function() {
293
+ j(o), t();
294
+ }), o = i2(function() {
295
+ G(n), t();
296
+ }, t2);
297
+ return [n, o];
298
+ });
299
+ function L0(i) {
300
+ let t, n, o, l, c, p, d;
301
+ const C = typeof document < "u" && document.attachEvent;
302
+ if (!C) {
303
+ p = function(u) {
304
+ const m = u.__resizeTriggers__, $ = m.firstElementChild, A = m.lastElementChild, y = $.firstElementChild;
305
+ A.scrollLeft = A.scrollWidth, A.scrollTop = A.scrollHeight, y.style.width = $.offsetWidth + 1 + "px", y.style.height = $.offsetHeight + 1 + "px", $.scrollLeft = $.scrollWidth, $.scrollTop = $.scrollHeight;
306
+ }, c = function(u) {
307
+ return u.offsetWidth !== u.__resizeLast__.width || u.offsetHeight !== u.__resizeLast__.height;
308
+ }, d = function(u) {
309
+ if (u.target.className && typeof u.target.className.indexOf == "function" && u.target.className.indexOf("contract-trigger") < 0 && u.target.className.indexOf("expand-trigger") < 0)
310
+ return;
311
+ const m = this;
312
+ p(this), this.__resizeRAF__ && P(this.__resizeRAF__), this.__resizeRAF__ = U(function() {
313
+ c(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(y) {
314
+ y.call(m, u);
315
+ }));
316
+ });
802
317
  };
803
- }
804
- return Gr = n, Gr;
805
- }
806
- var kr, xa;
807
- function eu() {
808
- if (xa) return kr;
809
- xa = 1;
810
- var e = Qo(), r = Vo(), t = r(e);
811
- return kr = t, kr;
812
- }
813
- var Ur, Ka;
814
- function ts() {
815
- if (Ka) return Ur;
816
- Ka = 1;
817
- var e = Oe(), r = Xo(), t = eu();
818
- function n(a, i) {
819
- return t(r(a, i, e), a + "");
820
- }
821
- return Ur = n, Ur;
822
- }
823
- var zr, Sa;
824
- function vn() {
825
- if (Sa) return zr;
826
- Sa = 1;
827
- var e = 9007199254740991;
828
- function r(t) {
829
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= e;
830
- }
831
- return zr = r, zr;
832
- }
833
- var Wr, Ea;
834
- function xe() {
835
- if (Ea) return Wr;
836
- Ea = 1;
837
- var e = Ji(), r = vn();
838
- function t(n) {
839
- return n != null && r(n.length) && !e(n);
840
- }
841
- return Wr = t, Wr;
842
- }
843
- var Yr, Pa;
844
- function ru() {
845
- if (Pa) return Yr;
846
- Pa = 1;
847
- var e = xe(), r = ve();
848
- function t(n) {
849
- return r(n) && e(n);
850
- }
851
- return Yr = t, Yr;
852
- }
853
- var Xr, Ma;
854
- function tu() {
855
- if (Ma) return Xr;
856
- Ma = 1;
857
- var e = Uo(), r = rs(), t = ts(), n = ru(), a = t(function(i, o) {
858
- return n(i) ? e(i, r(o, 1, n, !0)) : [];
859
- });
860
- return Xr = a, Xr;
861
- }
862
- var Jr, Ia;
863
- function ns() {
864
- if (Ia) return Jr;
865
- Ia = 1;
866
- function e(r, t) {
867
- for (var n = -1, a = r == null ? 0 : r.length, i = 0, o = []; ++n < a; ) {
868
- var u = r[n];
869
- t(u, n, r) && (o[i++] = u);
870
- }
871
- return o;
872
- }
873
- return Jr = e, Jr;
874
- }
875
- var Zr, Da;
876
- function nu() {
877
- if (Da) return Zr;
878
- Da = 1;
879
- function e(r) {
880
- return function(t, n, a) {
881
- for (var i = -1, o = Object(t), u = a(t), v = u.length; v--; ) {
882
- var h = u[r ? v : ++i];
883
- if (n(o[h], h, o) === !1)
884
- break;
318
+ let a = !1, h = "";
319
+ o = "animationstart";
320
+ const g = "Webkit Moz O ms".split(" ");
321
+ let f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
322
+ {
323
+ const u = document.createElement("fakeelement");
324
+ if (u.style.animationName !== void 0 && (a = !0), a === !1) {
325
+ for (let m = 0; m < g.length; m++)
326
+ if (u.style[g[m] + "AnimationName"] !== void 0) {
327
+ v = g[m], h = "-" + v.toLowerCase() + "-", o = f[m], a = !0;
328
+ break;
329
+ }
885
330
  }
886
- return t;
887
- };
888
- }
889
- return Zr = e, Zr;
890
- }
891
- var Qr, La;
892
- function au() {
893
- if (La) return Qr;
894
- La = 1;
895
- var e = nu(), r = e();
896
- return Qr = r, Qr;
897
- }
898
- var Vr, Na;
899
- function iu() {
900
- if (Na) return Vr;
901
- Na = 1;
902
- function e(r, t) {
903
- for (var n = -1, a = Array(r); ++n < r; )
904
- a[n] = t(n);
905
- return a;
906
- }
907
- return Vr = e, Vr;
908
- }
909
- var Pe = { exports: {} };
910
- function su() {
911
- return !1;
912
- }
913
- var ou = su;
914
- Pe.exports;
915
- (function(e, r) {
916
- var t = ie(), n = ou, a = r && !r.nodeType && r, i = a && !0 && e && !e.nodeType && e, o = i && i.exports === a, u = o ? t.Buffer : void 0, v = u ? u.isBuffer : void 0, h = v || n;
917
- e.exports = h;
918
- })(Pe, Pe.exports);
919
- var as = Pe.exports, et, Ba;
920
- function pn() {
921
- if (Ba) return et;
922
- Ba = 1;
923
- var e = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
924
- function t(n, a) {
925
- var i = typeof n;
926
- return a = a ?? e, !!a && (i == "number" || i != "symbol" && r.test(n)) && n > -1 && n % 1 == 0 && n < a;
927
- }
928
- return et = t, et;
929
- }
930
- var rt, ja;
931
- function uu() {
932
- if (ja) return rt;
933
- ja = 1;
934
- var e = Te(), r = vn(), t = ve(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", o = "[object Date]", u = "[object Error]", v = "[object Function]", h = "[object Map]", m = "[object Number]", _ = "[object Object]", I = "[object RegExp]", P = "[object Set]", N = "[object String]", K = "[object WeakMap]", b = "[object ArrayBuffer]", l = "[object DataView]", g = "[object Float32Array]", C = "[object Float64Array]", y = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]", q = "[object Uint8Array]", L = "[object Uint8ClampedArray]", R = "[object Uint16Array]", x = "[object Uint32Array]", E = {};
935
- E[g] = E[C] = E[y] = E[S] = E[O] = E[q] = E[L] = E[R] = E[x] = !0, E[n] = E[a] = E[b] = E[i] = E[l] = E[o] = E[u] = E[v] = E[h] = E[m] = E[_] = E[I] = E[P] = E[N] = E[K] = !1;
936
- function $(T) {
937
- return t(T) && r(T.length) && !!E[e(T)];
938
- }
939
- return rt = $, rt;
940
- }
941
- var Me = { exports: {} };
942
- Me.exports;
943
- (function(e, r) {
944
- var t = Yi(), n = r && !r.nodeType && r, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, o = i && t.process, u = function() {
945
- try {
946
- var v = a && a.require && a.require("util").types;
947
- return v || o && o.binding && o.binding("util");
948
- } catch {
949
331
  }
950
- }();
951
- e.exports = u;
952
- })(Me, Me.exports);
953
- var cu = Me.exports, tt, Ha;
954
- function is() {
955
- if (Ha) return tt;
956
- Ha = 1;
957
- var e = uu(), r = dn(), t = cu, n = t && t.isTypedArray, a = n ? r(n) : e;
958
- return tt = a, tt;
959
- }
960
- var nt, $a;
961
- function fu() {
962
- if ($a) return nt;
963
- $a = 1;
964
- var e = iu(), r = hn(), t = re(), n = as, a = pn(), i = is(), o = Object.prototype, u = o.hasOwnProperty;
965
- function v(h, m) {
966
- var _ = t(h), I = !_ && r(h), P = !_ && !I && n(h), N = !_ && !I && !P && i(h), K = _ || I || P || N, b = K ? e(h.length, String) : [], l = b.length;
967
- for (var g in h)
968
- (m || u.call(h, g)) && !(K && // Safari 9 has enumerable `arguments.length` in strict mode.
969
- (g == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
970
- P && (g == "offset" || g == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
971
- N && (g == "buffer" || g == "byteLength" || g == "byteOffset") || // Skip index properties.
972
- a(g, l))) && b.push(g);
973
- return b;
332
+ n = "resizeanim", t = "@" + h + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", l = h + "animation: 1ms " + n + "; ";
974
333
  }
975
- return nt = v, nt;
976
- }
977
- var lu = Object.prototype;
978
- function du(e) {
979
- var r = e && e.constructor, t = typeof r == "function" && r.prototype || lu;
980
- return e === t;
981
- }
982
- var hu = du;
983
- function vu(e, r) {
984
- return function(t) {
985
- return e(r(t));
334
+ const I = function(a) {
335
+ if (!a.getElementById("detectElementResize")) {
336
+ const h = (t || "") + ".resize-triggers { " + (l || "") + '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%; }', g = a.head || a.getElementsByTagName("head")[0], f = a.createElement("style");
337
+ f.id = "detectElementResize", f.type = "text/css", i != null && f.setAttribute("nonce", i), f.styleSheet ? f.styleSheet.cssText = h : f.appendChild(a.createTextNode(h)), g.appendChild(f);
338
+ }
986
339
  };
987
- }
988
- var pu = vu, at, Ga;
989
- function yu() {
990
- if (Ga) return at;
991
- Ga = 1;
992
- var e = pu, r = e(Object.keys, Object);
993
- return at = r, at;
994
- }
995
- var it, ka;
996
- function gu() {
997
- if (ka) return it;
998
- ka = 1;
999
- var e = hu, r = yu(), t = Object.prototype, n = t.hasOwnProperty;
1000
- function a(i) {
1001
- if (!e(i))
1002
- return r(i);
1003
- var o = [];
1004
- for (var u in Object(i))
1005
- n.call(i, u) && u != "constructor" && o.push(u);
1006
- return o;
1007
- }
1008
- return it = a, it;
1009
- }
1010
- var st, Ua;
1011
- function yn() {
1012
- if (Ua) return st;
1013
- Ua = 1;
1014
- var e = fu(), r = gu(), t = xe();
1015
- function n(a) {
1016
- return t(a) ? e(a) : r(a);
1017
- }
1018
- return st = n, st;
1019
- }
1020
- var ot, za;
1021
- function gn() {
1022
- if (za) return ot;
1023
- za = 1;
1024
- var e = au(), r = yn();
1025
- function t(n, a) {
1026
- return n && e(n, a, r);
1027
- }
1028
- return ot = t, ot;
1029
- }
1030
- var ut, Wa;
1031
- function bu() {
1032
- if (Wa) return ut;
1033
- Wa = 1;
1034
- var e = xe();
1035
- function r(t, n) {
1036
- return function(a, i) {
1037
- if (a == null)
1038
- return a;
1039
- if (!e(a))
1040
- return t(a, i);
1041
- for (var o = a.length, u = n ? o : -1, v = Object(a); (n ? u-- : ++u < o) && i(v[u], u, v) !== !1; )
1042
- ;
1043
- return a;
1044
- };
1045
- }
1046
- return ut = r, ut;
1047
- }
1048
- var ct, Ya;
1049
- function bn() {
1050
- if (Ya) return ct;
1051
- Ya = 1;
1052
- var e = gn(), r = bu(), t = r(e);
1053
- return ct = t, ct;
1054
- }
1055
- var ft, Xa;
1056
- function _u() {
1057
- if (Xa) return ft;
1058
- Xa = 1;
1059
- var e = bn();
1060
- function r(t, n) {
1061
- var a = [];
1062
- return e(t, function(i, o, u) {
1063
- n(i, o, u) && a.push(i);
1064
- }), a;
1065
- }
1066
- return ft = r, ft;
1067
- }
1068
- var mu = Le;
1069
- function Cu() {
1070
- this.__data__ = new mu(), this.size = 0;
1071
- }
1072
- var Fu = Cu;
1073
- function qu(e) {
1074
- var r = this.__data__, t = r.delete(e);
1075
- return this.size = r.size, t;
1076
- }
1077
- var Ru = qu;
1078
- function wu(e) {
1079
- return this.__data__.get(e);
1080
- }
1081
- var Tu = wu;
1082
- function Au(e) {
1083
- return this.__data__.has(e);
1084
- }
1085
- var Ou = Au, xu = Le, Ku = cn, Su = fn(), Eu = 200;
1086
- function Pu(e, r) {
1087
- var t = this.__data__;
1088
- if (t instanceof xu) {
1089
- var n = t.__data__;
1090
- if (!Ku || n.length < Eu - 1)
1091
- return n.push([e, r]), this.size = ++t.size, this;
1092
- t = this.__data__ = new Su(n);
1093
- }
1094
- return t.set(e, r), this.size = t.size, this;
1095
- }
1096
- var Mu = Pu, Iu = Le, Du = Fu, Lu = Ru, Nu = Tu, Bu = Ou, ju = Mu;
1097
- function ye(e) {
1098
- var r = this.__data__ = new Iu(e);
1099
- this.size = r.size;
1100
- }
1101
- ye.prototype.clear = Du;
1102
- ye.prototype.delete = Lu;
1103
- ye.prototype.get = Nu;
1104
- ye.prototype.has = Bu;
1105
- ye.prototype.set = ju;
1106
- var ss = ye, lt, Ja;
1107
- function Hu() {
1108
- if (Ja) return lt;
1109
- Ja = 1;
1110
- function e(r, t) {
1111
- for (var n = -1, a = r == null ? 0 : r.length; ++n < a; )
1112
- if (t(r[n], n, r))
1113
- return !0;
1114
- return !1;
1115
- }
1116
- return lt = e, lt;
1117
- }
1118
- var dt, Za;
1119
- function os() {
1120
- if (Za) return dt;
1121
- Za = 1;
1122
- var e = Qi(), r = Hu(), t = Vi(), n = 1, a = 2;
1123
- function i(o, u, v, h, m, _) {
1124
- var I = v & n, P = o.length, N = u.length;
1125
- if (P != N && !(I && N > P))
1126
- return !1;
1127
- var K = _.get(o), b = _.get(u);
1128
- if (K && b)
1129
- return K == u && b == o;
1130
- var l = -1, g = !0, C = v & a ? new e() : void 0;
1131
- for (_.set(o, u), _.set(u, o); ++l < P; ) {
1132
- var y = o[l], S = u[l];
1133
- if (h)
1134
- var O = I ? h(S, y, l, u, o, _) : h(y, S, l, o, u, _);
1135
- if (O !== void 0) {
1136
- if (O)
1137
- continue;
1138
- g = !1;
1139
- break;
1140
- }
1141
- if (C) {
1142
- if (!r(u, function(q, L) {
1143
- if (!t(C, L) && (y === q || m(y, q, v, h, _)))
1144
- return C.push(L);
1145
- })) {
1146
- g = !1;
1147
- break;
340
+ return {
341
+ addResizeListener: function(a, h) {
342
+ if (C)
343
+ a.attachEvent("onresize", h);
344
+ else {
345
+ if (!a.__resizeTriggers__) {
346
+ const g = a.ownerDocument, f = b.getComputedStyle(a);
347
+ f && f.position === "static" && (a.style.position = "relative"), I(g), a.__resizeLast__ = {}, a.__resizeListeners__ = [], (a.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
348
+ const v = g.createElement("div");
349
+ v.className = "expand-trigger", v.appendChild(g.createElement("div"));
350
+ const u = g.createElement("div");
351
+ u.className = "contract-trigger", a.__resizeTriggers__.appendChild(v), a.__resizeTriggers__.appendChild(u), a.appendChild(a.__resizeTriggers__), p(a), a.addEventListener("scroll", d, !0), o && (a.__resizeTriggers__.__animationListener__ = function($) {
352
+ $.animationName === n && p(a);
353
+ }, a.__resizeTriggers__.addEventListener(o, a.__resizeTriggers__.__animationListener__));
1148
354
  }
1149
- } else if (!(y === S || m(y, S, v, h, _))) {
1150
- g = !1;
1151
- break;
1152
- }
1153
- }
1154
- return _.delete(o), _.delete(u), g;
1155
- }
1156
- return dt = i, dt;
1157
- }
1158
- var $u = ie(), Gu = $u.Uint8Array, ku = Gu, ht, Qa;
1159
- function Uu() {
1160
- if (Qa) return ht;
1161
- Qa = 1;
1162
- function e(r) {
1163
- var t = -1, n = Array(r.size);
1164
- return r.forEach(function(a, i) {
1165
- n[++t] = [i, a];
1166
- }), n;
1167
- }
1168
- return ht = e, ht;
1169
- }
1170
- function zu(e) {
1171
- var r = -1, t = Array(e.size);
1172
- return e.forEach(function(n) {
1173
- t[++r] = n;
1174
- }), t;
1175
- }
1176
- var Wu = zu, vt, Va;
1177
- function Yu() {
1178
- if (Va) return vt;
1179
- Va = 1;
1180
- var e = we(), r = ku, t = un(), n = os(), a = Uu(), i = Wu, o = 1, u = 2, v = "[object Boolean]", h = "[object Date]", m = "[object Error]", _ = "[object Map]", I = "[object Number]", P = "[object RegExp]", N = "[object Set]", K = "[object String]", b = "[object Symbol]", l = "[object ArrayBuffer]", g = "[object DataView]", C = e ? e.prototype : void 0, y = C ? C.valueOf : void 0;
1181
- function S(O, q, L, R, x, E, $) {
1182
- switch (L) {
1183
- case g:
1184
- if (O.byteLength != q.byteLength || O.byteOffset != q.byteOffset)
1185
- return !1;
1186
- O = O.buffer, q = q.buffer;
1187
- case l:
1188
- return !(O.byteLength != q.byteLength || !E(new r(O), new r(q)));
1189
- case v:
1190
- case h:
1191
- case I:
1192
- return t(+O, +q);
1193
- case m:
1194
- return O.name == q.name && O.message == q.message;
1195
- case P:
1196
- case K:
1197
- return O == q + "";
1198
- case _:
1199
- var T = a;
1200
- case N:
1201
- var k = R & o;
1202
- if (T || (T = i), O.size != q.size && !k)
1203
- return !1;
1204
- var X = $.get(O);
1205
- if (X)
1206
- return X == q;
1207
- R |= u, $.set(O, q);
1208
- var te = n(T(O), T(q), R, x, E, $);
1209
- return $.delete(O), te;
1210
- case b:
1211
- if (y)
1212
- return y.call(O) == y.call(q);
1213
- }
1214
- return !1;
1215
- }
1216
- return vt = S, vt;
1217
- }
1218
- var Xu = es(), Ju = re();
1219
- function Zu(e, r, t) {
1220
- var n = r(e);
1221
- return Ju(e) ? n : Xu(n, t(e));
1222
- }
1223
- var Qu = Zu;
1224
- function Vu() {
1225
- return [];
1226
- }
1227
- var ec = Vu, rc = ns(), tc = ec, nc = Object.prototype, ac = nc.propertyIsEnumerable, ei = Object.getOwnPropertySymbols, ic = ei ? function(e) {
1228
- return e == null ? [] : (e = Object(e), rc(ei(e), function(r) {
1229
- return ac.call(e, r);
1230
- }));
1231
- } : tc, sc = ic, oc = Qu, uc = sc, cc = yn();
1232
- function fc(e) {
1233
- return oc(e, cc, uc);
1234
- }
1235
- var lc = fc, pt, ri;
1236
- function dc() {
1237
- if (ri) return pt;
1238
- ri = 1;
1239
- var e = lc, r = 1, t = Object.prototype, n = t.hasOwnProperty;
1240
- function a(i, o, u, v, h, m) {
1241
- var _ = u & r, I = e(i), P = I.length, N = e(o), K = N.length;
1242
- if (P != K && !_)
1243
- return !1;
1244
- for (var b = P; b--; ) {
1245
- var l = I[b];
1246
- if (!(_ ? l in o : n.call(o, l)))
1247
- return !1;
1248
- }
1249
- var g = m.get(i), C = m.get(o);
1250
- if (g && C)
1251
- return g == o && C == i;
1252
- var y = !0;
1253
- m.set(i, o), m.set(o, i);
1254
- for (var S = _; ++b < P; ) {
1255
- l = I[b];
1256
- var O = i[l], q = o[l];
1257
- if (v)
1258
- var L = _ ? v(q, O, l, o, i, m) : v(O, q, l, i, o, m);
1259
- if (!(L === void 0 ? O === q || h(O, q, u, v, m) : L)) {
1260
- y = !1;
1261
- break;
1262
- }
1263
- S || (S = l == "constructor");
1264
- }
1265
- if (y && !S) {
1266
- var R = i.constructor, x = o.constructor;
1267
- R != x && "constructor" in i && "constructor" in o && !(typeof R == "function" && R instanceof R && typeof x == "function" && x instanceof x) && (y = !1);
1268
- }
1269
- return m.delete(i), m.delete(o), y;
1270
- }
1271
- return pt = a, pt;
1272
- }
1273
- var hc = he, vc = ie(), pc = hc(vc, "DataView"), yc = pc, gc = he, bc = ie(), _c = gc(bc, "Promise"), mc = _c, Cc = he, Fc = ie(), qc = Cc(Fc, "Set"), Rc = qc, wc = he, Tc = ie(), Ac = wc(Tc, "WeakMap"), Oc = Ac, tn = yc, nn = cn, an = mc, sn = Rc, on = Oc, us = Te(), ge = Zi, ti = "[object Map]", xc = "[object Object]", ni = "[object Promise]", ai = "[object Set]", ii = "[object WeakMap]", si = "[object DataView]", Kc = ge(tn), Sc = ge(nn), Ec = ge(an), Pc = ge(sn), Mc = ge(on), le = us;
1274
- (tn && le(new tn(new ArrayBuffer(1))) != si || nn && le(new nn()) != ti || an && le(an.resolve()) != ni || sn && le(new sn()) != ai || on && le(new on()) != ii) && (le = function(e) {
1275
- var r = us(e), t = r == xc ? e.constructor : void 0, n = t ? ge(t) : "";
1276
- if (n)
1277
- switch (n) {
1278
- case Kc:
1279
- return si;
1280
- case Sc:
1281
- return ti;
1282
- case Ec:
1283
- return ni;
1284
- case Pc:
1285
- return ai;
1286
- case Mc:
1287
- return ii;
1288
- }
1289
- return r;
1290
- });
1291
- var Ic = le, yt, oi;
1292
- function Dc() {
1293
- if (oi) return yt;
1294
- oi = 1;
1295
- var e = ss, r = os(), t = Yu(), n = dc(), a = Ic, i = re(), o = as, u = is(), v = 1, h = "[object Arguments]", m = "[object Array]", _ = "[object Object]", I = Object.prototype, P = I.hasOwnProperty;
1296
- function N(K, b, l, g, C, y) {
1297
- var S = i(K), O = i(b), q = S ? m : a(K), L = O ? m : a(b);
1298
- q = q == h ? _ : q, L = L == h ? _ : L;
1299
- var R = q == _, x = L == _, E = q == L;
1300
- if (E && o(K)) {
1301
- if (!o(b))
1302
- return !1;
1303
- S = !0, R = !1;
1304
- }
1305
- if (E && !R)
1306
- return y || (y = new e()), S || u(K) ? r(K, b, l, g, C, y) : t(K, b, q, l, g, C, y);
1307
- if (!(l & v)) {
1308
- var $ = R && P.call(K, "__wrapped__"), T = x && P.call(b, "__wrapped__");
1309
- if ($ || T) {
1310
- var k = $ ? K.value() : K, X = T ? b.value() : b;
1311
- return y || (y = new e()), C(k, X, l, g, y);
355
+ a.__resizeListeners__.push(h);
1312
356
  }
1313
- }
1314
- return E ? (y || (y = new e()), n(K, b, l, g, C, y)) : !1;
1315
- }
1316
- return yt = N, yt;
1317
- }
1318
- var gt, ui;
1319
- function cs() {
1320
- if (ui) return gt;
1321
- ui = 1;
1322
- var e = Dc(), r = ve();
1323
- function t(n, a, i, o, u) {
1324
- return n === a ? !0 : n == null || a == null || !r(n) && !r(a) ? n !== n && a !== a : e(n, a, i, o, t, u);
1325
- }
1326
- return gt = t, gt;
1327
- }
1328
- var bt, ci;
1329
- function Lc() {
1330
- if (ci) return bt;
1331
- ci = 1;
1332
- var e = ss, r = cs(), t = 1, n = 2;
1333
- function a(i, o, u, v) {
1334
- var h = u.length, m = h, _ = !v;
1335
- if (i == null)
1336
- return !m;
1337
- for (i = Object(i); h--; ) {
1338
- var I = u[h];
1339
- if (_ && I[2] ? I[1] !== i[I[0]] : !(I[0] in i))
1340
- return !1;
1341
- }
1342
- for (; ++h < m; ) {
1343
- I = u[h];
1344
- var P = I[0], N = i[P], K = I[1];
1345
- if (_ && I[2]) {
1346
- if (N === void 0 && !(P in i))
1347
- return !1;
1348
- } else {
1349
- var b = new e();
1350
- if (v)
1351
- var l = v(N, K, P, i, o, b);
1352
- if (!(l === void 0 ? r(K, N, t | n, v, b) : l))
1353
- return !1;
357
+ },
358
+ removeResizeListener: function(a, h) {
359
+ if (C)
360
+ a.detachEvent("onresize", h);
361
+ else if (a.__resizeListeners__.splice(a.__resizeListeners__.indexOf(h), 1), !a.__resizeListeners__.length) {
362
+ a.removeEventListener("scroll", d, !0), a.__resizeTriggers__.__animationListener__ && (a.__resizeTriggers__.removeEventListener(o, a.__resizeTriggers__.__animationListener__), a.__resizeTriggers__.__animationListener__ = null);
363
+ try {
364
+ a.__resizeTriggers__ = !a.removeChild(a.__resizeTriggers__);
365
+ } catch {
366
+ }
1354
367
  }
1355
368
  }
1356
- return !0;
1357
- }
1358
- return bt = a, bt;
1359
- }
1360
- var _t, fi;
1361
- function fs() {
1362
- if (fi) return _t;
1363
- fi = 1;
1364
- var e = de();
1365
- function r(t) {
1366
- return t === t && !e(t);
1367
- }
1368
- return _t = r, _t;
1369
- }
1370
- var mt, li;
1371
- function Nc() {
1372
- if (li) return mt;
1373
- li = 1;
1374
- var e = fs(), r = yn();
1375
- function t(n) {
1376
- for (var a = r(n), i = a.length; i--; ) {
1377
- var o = a[i], u = n[o];
1378
- a[i] = [o, u, e(u)];
1379
- }
1380
- return a;
1381
- }
1382
- return mt = t, mt;
1383
- }
1384
- var Ct, di;
1385
- function ls() {
1386
- if (di) return Ct;
1387
- di = 1;
1388
- function e(r, t) {
1389
- return function(n) {
1390
- return n == null ? !1 : n[r] === t && (t !== void 0 || r in Object(n));
1391
- };
1392
- }
1393
- return Ct = e, Ct;
1394
- }
1395
- var Ft, hi;
1396
- function Bc() {
1397
- if (hi) return Ft;
1398
- hi = 1;
1399
- var e = Lc(), r = Nc(), t = ls();
1400
- function n(a) {
1401
- var i = r(a);
1402
- return i.length == 1 && i[0][2] ? t(i[0][0], i[0][1]) : function(o) {
1403
- return o === a || e(o, a, i);
1404
- };
1405
- }
1406
- return Ft = n, Ft;
1407
- }
1408
- var qt, vi;
1409
- function _n() {
1410
- if (vi) return qt;
1411
- vi = 1;
1412
- var e = re(), r = Ae(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
1413
- function a(i, o) {
1414
- if (e(i))
1415
- return !1;
1416
- var u = typeof i;
1417
- return u == "number" || u == "symbol" || u == "boolean" || i == null || r(i) ? !0 : n.test(i) || !t.test(i) || o != null && i in Object(o);
1418
- }
1419
- return qt = a, qt;
1420
- }
1421
- var ds = fn(), jc = "Expected a function";
1422
- function mn(e, r) {
1423
- if (typeof e != "function" || r != null && typeof r != "function")
1424
- throw new TypeError(jc);
1425
- var t = function() {
1426
- var n = arguments, a = r ? r.apply(this, n) : n[0], i = t.cache;
1427
- if (i.has(a))
1428
- return i.get(a);
1429
- var o = e.apply(this, n);
1430
- return t.cache = i.set(a, o) || i, o;
1431
369
  };
1432
- return t.cache = new (mn.Cache || ds)(), t;
1433
- }
1434
- mn.Cache = ds;
1435
- var Hc = mn, $c = Hc, Gc = 500;
1436
- function kc(e) {
1437
- var r = $c(e, function(n) {
1438
- return t.size === Gc && t.clear(), n;
1439
- }), t = r.cache;
1440
- return r;
1441
- }
1442
- var Uc = kc, zc = Uc, Wc = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Yc = /\\(\\)?/g, Xc = zc(function(e) {
1443
- var r = [];
1444
- return e.charCodeAt(0) === 46 && r.push(""), e.replace(Wc, function(t, n, a, i) {
1445
- r.push(a ? i.replace(Yc, "$1") : n || t);
1446
- }), r;
1447
- }), Jc = Xc, Rt, pi;
1448
- function Zc() {
1449
- if (pi) return Rt;
1450
- pi = 1;
1451
- var e = we(), r = ln, t = re(), n = Ae(), a = 1 / 0, i = e ? e.prototype : void 0, o = i ? i.toString : void 0;
1452
- function u(v) {
1453
- if (typeof v == "string")
1454
- return v;
1455
- if (t(v))
1456
- return r(v, u) + "";
1457
- if (n(v))
1458
- return o ? o.call(v) : "";
1459
- var h = v + "";
1460
- return h == "0" && 1 / v == -a ? "-0" : h;
1461
- }
1462
- return Rt = u, Rt;
1463
- }
1464
- var wt, yi;
1465
- function hs() {
1466
- if (yi) return wt;
1467
- yi = 1;
1468
- var e = Zc();
1469
- function r(t) {
1470
- return t == null ? "" : e(t);
1471
- }
1472
- return wt = r, wt;
1473
- }
1474
- var Qc = re(), Vc = _n(), ef = Jc, rf = hs();
1475
- function tf(e, r) {
1476
- return Qc(e) ? e : Vc(e, r) ? [e] : ef(rf(e));
1477
- }
1478
- var vs = tf, Tt, gi;
1479
- function Be() {
1480
- if (gi) return Tt;
1481
- gi = 1;
1482
- var e = Ae(), r = 1 / 0;
1483
- function t(n) {
1484
- if (typeof n == "string" || e(n))
1485
- return n;
1486
- var a = n + "";
1487
- return a == "0" && 1 / n == -r ? "-0" : a;
1488
- }
1489
- return Tt = t, Tt;
1490
- }
1491
- var At, bi;
1492
- function Cn() {
1493
- if (bi) return At;
1494
- bi = 1;
1495
- var e = vs, r = Be();
1496
- function t(n, a) {
1497
- a = e(a, n);
1498
- for (var i = 0, o = a.length; n != null && i < o; )
1499
- n = n[r(a[i++])];
1500
- return i && i == o ? n : void 0;
1501
- }
1502
- return At = t, At;
1503
370
  }
1504
- var Ot, _i;
1505
- function nf() {
1506
- if (_i) return Ot;
1507
- _i = 1;
1508
- var e = Cn();
1509
- function r(t, n, a) {
1510
- var i = t == null ? void 0 : e(t, n);
1511
- return i === void 0 ? a : i;
1512
- }
1513
- return Ot = r, Ot;
1514
- }
1515
- var xt, mi;
1516
- function af() {
1517
- if (mi) return xt;
1518
- mi = 1;
1519
- function e(r, t) {
1520
- return r != null && t in Object(r);
1521
- }
1522
- return xt = e, xt;
1523
- }
1524
- var Kt, Ci;
1525
- function sf() {
1526
- if (Ci) return Kt;
1527
- Ci = 1;
1528
- var e = vs, r = hn(), t = re(), n = pn(), a = vn(), i = Be();
1529
- function o(u, v, h) {
1530
- v = e(v, u);
1531
- for (var m = -1, _ = v.length, I = !1; ++m < _; ) {
1532
- var P = i(v[m]);
1533
- if (!(I = u != null && h(u, P)))
1534
- break;
1535
- u = u[P];
1536
- }
1537
- return I || ++m != _ ? I : (_ = u == null ? 0 : u.length, !!_ && a(_) && n(P, _) && (t(u) || r(u)));
1538
- }
1539
- return Kt = o, Kt;
1540
- }
1541
- var St, Fi;
1542
- function of() {
1543
- if (Fi) return St;
1544
- Fi = 1;
1545
- var e = af(), r = sf();
1546
- function t(n, a) {
1547
- return n != null && r(n, a, e);
1548
- }
1549
- return St = t, St;
1550
- }
1551
- var Et, qi;
1552
- function uf() {
1553
- if (qi) return Et;
1554
- qi = 1;
1555
- var e = cs(), r = nf(), t = of(), n = _n(), a = fs(), i = ls(), o = Be(), u = 1, v = 2;
1556
- function h(m, _) {
1557
- return n(m) && a(_) ? i(o(m), _) : function(I) {
1558
- var P = r(I, m);
1559
- return P === void 0 && P === _ ? t(I, m) : e(_, P, u | v);
1560
- };
1561
- }
1562
- return Et = h, Et;
1563
- }
1564
- var Pt, Ri;
1565
- function cf() {
1566
- if (Ri) return Pt;
1567
- Ri = 1;
1568
- function e(r) {
1569
- return function(t) {
1570
- return t == null ? void 0 : t[r];
1571
- };
1572
- }
1573
- return Pt = e, Pt;
1574
- }
1575
- var Mt, wi;
1576
- function ff() {
1577
- if (wi) return Mt;
1578
- wi = 1;
1579
- var e = Cn();
1580
- function r(t) {
1581
- return function(n) {
1582
- return e(n, t);
371
+ class _0 extends y2 {
372
+ constructor(...t) {
373
+ super(...t), this.state = {
374
+ height: this.props.defaultHeight || 0,
375
+ scaledHeight: this.props.defaultHeight || 0,
376
+ scaledWidth: this.props.defaultWidth || 0,
377
+ width: this.props.defaultWidth || 0
378
+ }, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
379
+ this._timeoutId = null;
380
+ const {
381
+ disableHeight: n,
382
+ disableWidth: o,
383
+ onResize: l
384
+ } = this.props;
385
+ if (this._parentNode) {
386
+ const c = window.getComputedStyle(this._parentNode) || {}, p = parseFloat(c.paddingLeft || "0"), d = parseFloat(c.paddingRight || "0"), C = parseFloat(c.paddingTop || "0"), I = parseFloat(c.paddingBottom || "0"), _ = this._parentNode.getBoundingClientRect(), L = _.height - C - I, a = _.width - p - d, h = this._parentNode.offsetHeight - C - I, g = this._parentNode.offsetWidth - p - d;
387
+ (!n && (this.state.height !== h || this.state.scaledHeight !== L) || !o && (this.state.width !== g || this.state.scaledWidth !== a)) && (this.setState({
388
+ height: h,
389
+ width: g,
390
+ scaledHeight: L,
391
+ scaledWidth: a
392
+ }), typeof l == "function" && l({
393
+ height: h,
394
+ scaledHeight: L,
395
+ scaledWidth: a,
396
+ width: g
397
+ }));
398
+ }
399
+ }, this._setRef = (n) => {
400
+ this._autoSizer = n;
1583
401
  };
1584
402
  }
1585
- return Mt = r, Mt;
1586
- }
1587
- var It, Ti;
1588
- function lf() {
1589
- if (Ti) return It;
1590
- Ti = 1;
1591
- var e = cf(), r = ff(), t = _n(), n = Be();
1592
- function a(i) {
1593
- return t(i) ? e(n(i)) : r(i);
1594
- }
1595
- return It = a, It;
1596
- }
1597
- var Dt, Ai;
1598
- function Fn() {
1599
- if (Ai) return Dt;
1600
- Ai = 1;
1601
- var e = Bc(), r = uf(), t = Oe(), n = re(), a = lf();
1602
- function i(o) {
1603
- return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? r(o[0], o[1]) : e(o) : a(o);
1604
- }
1605
- return Dt = i, Dt;
1606
- }
1607
- var Lt, Oi;
1608
- function df() {
1609
- if (Oi) return Lt;
1610
- Oi = 1;
1611
- var e = ns(), r = _u(), t = Fn(), n = re();
1612
- function a(i, o) {
1613
- var u = n(i) ? e : r;
1614
- return u(i, t(o, 3));
1615
- }
1616
- return Lt = a, Lt;
1617
- }
1618
- var Nt, xi;
1619
- function hf() {
1620
- if (xi) return Nt;
1621
- xi = 1;
1622
- function e(r, t, n) {
1623
- var a;
1624
- return n(r, function(i, o, u) {
1625
- if (t(i, o, u))
1626
- return a = o, !1;
1627
- }), a;
1628
- }
1629
- return Nt = e, Nt;
1630
- }
1631
- var Bt, Ki;
1632
- function vf() {
1633
- if (Ki) return Bt;
1634
- Ki = 1;
1635
- var e = hf(), r = gn(), t = Fn();
1636
- function n(a, i) {
1637
- return e(a, t(i, 3), r);
1638
- }
1639
- return Bt = n, Bt;
1640
- }
1641
- var jt, Si;
1642
- function pf() {
1643
- if (Si) return jt;
1644
- Si = 1;
1645
- function e(r) {
1646
- return r && r.length ? r[0] : void 0;
1647
- }
1648
- return jt = e, jt;
1649
- }
1650
- var Ht, Ei;
1651
- function yf() {
1652
- return Ei || (Ei = 1, Ht = pf()), Ht;
1653
- }
1654
- var $t, Pi;
1655
- function gf() {
1656
- if (Pi) return $t;
1657
- Pi = 1;
1658
- function e(r, t) {
1659
- for (var n = -1, a = r == null ? 0 : r.length; ++n < a && t(r[n], n, r) !== !1; )
1660
- ;
1661
- return r;
1662
- }
1663
- return $t = e, $t;
1664
- }
1665
- var Gt, Mi;
1666
- function ps() {
1667
- if (Mi) return Gt;
1668
- Mi = 1;
1669
- var e = Oe();
1670
- function r(t) {
1671
- return typeof t == "function" ? t : e;
1672
- }
1673
- return Gt = r, Gt;
1674
- }
1675
- var kt, Ii;
1676
- function bf() {
1677
- if (Ii) return kt;
1678
- Ii = 1;
1679
- var e = gf(), r = bn(), t = ps(), n = re();
1680
- function a(i, o) {
1681
- var u = n(i) ? e : r;
1682
- return u(i, t(o));
1683
- }
1684
- return kt = a, kt;
1685
- }
1686
- var Ut, Di;
1687
- function _f() {
1688
- if (Di) return Ut;
1689
- Di = 1;
1690
- var e = gn(), r = ps();
1691
- function t(n, a) {
1692
- return n && e(n, r(a));
1693
- }
1694
- return Ut = t, Ut;
1695
- }
1696
- var zt, Li;
1697
- function mf() {
1698
- if (Li) return zt;
1699
- Li = 1;
1700
- function e() {
1701
- }
1702
- return zt = e, zt;
1703
- }
1704
- var Wt, Ni;
1705
- function Cf() {
1706
- if (Ni) return Wt;
1707
- Ni = 1;
1708
- var e = bn(), r = xe();
1709
- function t(n, a) {
1710
- var i = -1, o = r(n) ? Array(n.length) : [];
1711
- return e(n, function(u, v, h) {
1712
- o[++i] = a(u, v, h);
1713
- }), o;
1714
- }
1715
- return Wt = t, Wt;
1716
- }
1717
- var Yt, Bi;
1718
- function Ff() {
1719
- if (Bi) return Yt;
1720
- Bi = 1;
1721
- function e(r, t) {
1722
- var n = r.length;
1723
- for (r.sort(t); n--; )
1724
- r[n] = r[n].value;
1725
- return r;
1726
- }
1727
- return Yt = e, Yt;
1728
- }
1729
- var Xt, ji;
1730
- function qf() {
1731
- if (ji) return Xt;
1732
- ji = 1;
1733
- var e = Ae();
1734
- function r(t, n) {
1735
- if (t !== n) {
1736
- var a = t !== void 0, i = t === null, o = t === t, u = e(t), v = n !== void 0, h = n === null, m = n === n, _ = e(n);
1737
- if (!h && !_ && !u && t > n || u && v && m && !h && !_ || i && v && m || !a && m || !o)
1738
- return 1;
1739
- if (!i && !u && !_ && t < n || _ && a && o && !i && !u || h && a && o || !v && o || !m)
1740
- return -1;
403
+ componentDidMount() {
404
+ const {
405
+ nonce: t
406
+ } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
407
+ if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
408
+ this._parentNode = n;
409
+ const o = n.ownerDocument.defaultView.ResizeObserver;
410
+ o != null ? (this._resizeObserver = new o(() => {
411
+ this._timeoutId = setTimeout(this._onResize, 0);
412
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = L0(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1741
413
  }
1742
- return 0;
1743
414
  }
1744
- return Xt = r, Xt;
1745
- }
1746
- var Jt, Hi;
1747
- function Rf() {
1748
- if (Hi) return Jt;
1749
- Hi = 1;
1750
- var e = qf();
1751
- function r(t, n, a) {
1752
- for (var i = -1, o = t.criteria, u = n.criteria, v = o.length, h = a.length; ++i < v; ) {
1753
- var m = e(o[i], u[i]);
1754
- if (m) {
1755
- if (i >= h)
1756
- return m;
1757
- var _ = a[i];
1758
- return m * (_ == "desc" ? -1 : 1);
1759
- }
415
+ componentWillUnmount() {
416
+ this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && this._resizeObserver.disconnect());
417
+ }
418
+ render() {
419
+ const {
420
+ children: t,
421
+ defaultHeight: n,
422
+ defaultWidth: o,
423
+ disableHeight: l = !1,
424
+ disableWidth: c = !1,
425
+ doNotBailOutOnEmptyChildren: p = !1,
426
+ nonce: d,
427
+ onResize: C,
428
+ style: I = {},
429
+ tagName: _ = "div",
430
+ ...L
431
+ } = this.props, {
432
+ height: a,
433
+ scaledHeight: h,
434
+ scaledWidth: g,
435
+ width: f
436
+ } = this.state, v = {
437
+ overflow: "visible"
438
+ }, u = {};
439
+ let m = !1;
440
+ return l || (a === 0 && (m = !0), v.height = 0, u.height = a, u.scaledHeight = h), c || (f === 0 && (m = !0), v.width = 0, u.width = f, u.scaledWidth = g), p && (m = !1), T2(_, {
441
+ ref: this._setRef,
442
+ style: {
443
+ ...v,
444
+ ...I
445
+ },
446
+ ...L
447
+ }, !m && t(u));
448
+ }
449
+ }
450
+ const w0 = /* @__PURE__ */ s("div")({
451
+ name: "Container",
452
+ class: "c1itm4k7",
453
+ propsAsIs: !1
454
+ }), $0 = /* @__PURE__ */ s("div")({
455
+ name: "IconContainer",
456
+ class: "i1w4fsni",
457
+ propsAsIs: !1
458
+ }), b0 = () => H, y0 = /* @__PURE__ */ s(b0())({
459
+ name: "InviteGameIcon",
460
+ class: "i19m85r1",
461
+ propsAsIs: !0
462
+ }), T0 = /* @__PURE__ */ s("div")({
463
+ name: "Content",
464
+ class: "c1mbu204",
465
+ propsAsIs: !1
466
+ }), H0 = /* @__PURE__ */ s("div")({
467
+ name: "Heading",
468
+ class: "h1amdqtv",
469
+ propsAsIs: !1
470
+ }), V0 = /* @__PURE__ */ s("div")({
471
+ name: "Subtext",
472
+ class: "s1lhlj9j",
473
+ propsAsIs: !1
474
+ }), k0 = /* @__PURE__ */ s("div")({
475
+ name: "LinkContainer",
476
+ class: "l1wot35e",
477
+ propsAsIs: !1
478
+ }), z0 = /* @__PURE__ */ s("div")({
479
+ name: "LinkInfo",
480
+ class: "l1jdw39q",
481
+ propsAsIs: !1
482
+ }), x0 = /* @__PURE__ */ s("span")({
483
+ name: "LinkTitle",
484
+ class: "l1cr5mk",
485
+ propsAsIs: !1
486
+ }), R0 = /* @__PURE__ */ s("span")({
487
+ name: "LinkAddress",
488
+ class: "lvi87q4",
489
+ propsAsIs: !1
490
+ }), F0 = () => H, S0 = /* @__PURE__ */ s(F0())({
491
+ name: "LinkIcon",
492
+ class: "l1pqlvw3",
493
+ propsAsIs: !0
494
+ }), M0 = ({
495
+ inviteLink: i,
496
+ inviteCardTitle: t,
497
+ inviteCardSubtext: n,
498
+ primaryColor: o,
499
+ className: l
500
+ }) => {
501
+ const c = Z(null), [p, d] = A0(c), [C] = W2({
502
+ type: "invitation",
503
+ action: "sent",
504
+ payload: {
505
+ from: B2.MENU
1760
506
  }
1761
- return t.index - n.index;
1762
- }
1763
- return Jt = r, Jt;
1764
- }
1765
- var Zt, $i;
1766
- function wf() {
1767
- if ($i) return Zt;
1768
- $i = 1;
1769
- var e = ln, r = Cn(), t = Fn(), n = Cf(), a = Ff(), i = dn(), o = Rf(), u = Oe(), v = re();
1770
- function h(m, _, I) {
1771
- _.length ? _ = e(_, function(K) {
1772
- return v(K) ? function(b) {
1773
- return r(b, K.length === 1 ? K[0] : K);
1774
- } : K;
1775
- }) : _ = [u];
1776
- var P = -1;
1777
- _ = e(_, i(t));
1778
- var N = n(m, function(K, b, l) {
1779
- var g = e(_, function(C) {
1780
- return C(K);
1781
- });
1782
- return { criteria: g, index: ++P, value: K };
1783
- });
1784
- return a(N, function(K, b) {
1785
- return o(K, b, I);
1786
- });
1787
- }
1788
- return Zt = h, Zt;
1789
- }
1790
- var Qt, Gi;
1791
- function Tf() {
1792
- if (Gi) return Qt;
1793
- Gi = 1;
1794
- var e = un(), r = xe(), t = pn(), n = de();
1795
- function a(i, o, u) {
1796
- if (!n(u))
1797
- return !1;
1798
- var v = typeof o;
1799
- return (v == "number" ? r(u) && t(o, u.length) : v == "string" && o in u) ? e(u[o], i) : !1;
1800
- }
1801
- return Qt = a, Qt;
1802
- }
1803
- var Vt, ki;
1804
- function Af() {
1805
- if (ki) return Vt;
1806
- ki = 1;
1807
- var e = rs(), r = wf(), t = ts(), n = Tf(), a = t(function(i, o) {
1808
- if (i == null)
1809
- return [];
1810
- var u = o.length;
1811
- return u > 1 && n(i, o[0], o[1]) ? o = [] : u > 2 && n(o[0], o[1], o[2]) && (o = [o[0]]), r(i, e(o, 1), []);
1812
507
  });
1813
- return Vt = a, Vt;
1814
- }
1815
- var en, Ui;
1816
- function Of() {
1817
- if (Ui) return en;
1818
- Ui = 1;
1819
- var e = Xi(), r = de(), t = "Expected a function";
1820
- function n(a, i, o) {
1821
- var u = !0, v = !0;
1822
- if (typeof a != "function")
1823
- throw new TypeError(t);
1824
- return r(o) && (u = "leading" in o ? !!o.leading : u, v = "trailing" in o ? !!o.trailing : v), e(a, i, {
1825
- leading: u,
1826
- maxWait: i,
1827
- trailing: v
1828
- });
1829
- }
1830
- return en = n, en;
1831
- }
1832
- var rn, zi;
1833
- function xf() {
1834
- if (zi) return rn;
1835
- zi = 1;
1836
- var e = hs(), r = 0;
1837
- function t(n) {
1838
- var a = ++r;
1839
- return e(n) + a;
1840
- }
1841
- return rn = t, rn;
1842
- }
1843
- (function(e, r) {
1844
- (function(t, n) {
1845
- e.exports = n(Xi(), tu(), df(), vf(), yf(), bf(), _f(), mf(), Af(), Of(), xf(), bs);
1846
- })(Re, function(t, n, a, i, o, u, v, h, m, _, I, P) {
1847
- return function() {
1848
- var N = { 654: function(b, l, g) {
1849
- var C, y = this && this.__assign || function() {
1850
- return y = Object.assign || function(p) {
1851
- for (var s, c = 1, f = arguments.length; c < f; c++) for (var d in s = arguments[c]) Object.prototype.hasOwnProperty.call(s, d) && (p[d] = s[d]);
1852
- return p;
1853
- }, y.apply(this, arguments);
1854
- }, S = this && this.__createBinding || (Object.create ? function(p, s, c, f) {
1855
- f === void 0 && (f = c);
1856
- var d = Object.getOwnPropertyDescriptor(s, c);
1857
- d && !("get" in d ? !s.__esModule : d.writable || d.configurable) || (d = { enumerable: !0, get: function() {
1858
- return s[c];
1859
- } }), Object.defineProperty(p, f, d);
1860
- } : function(p, s, c, f) {
1861
- f === void 0 && (f = c), p[f] = s[c];
1862
- }), O = this && this.__setModuleDefault || (Object.create ? function(p, s) {
1863
- Object.defineProperty(p, "default", { enumerable: !0, value: s });
1864
- } : function(p, s) {
1865
- p.default = s;
1866
- }), q = this && this.__importStar || function(p) {
1867
- if (p && p.__esModule) return p;
1868
- var s = {};
1869
- if (p != null) for (var c in p) c !== "default" && Object.prototype.hasOwnProperty.call(p, c) && S(s, p, c);
1870
- return O(s, p), s;
1871
- }, L = this && this.__spreadArray || function(p, s, c) {
1872
- if (c || arguments.length === 2) for (var f, d = 0, F = s.length; d < F; d++) !f && d in s || (f || (f = Array.prototype.slice.call(s, 0, d)), f[d] = s[d]);
1873
- return p.concat(f || Array.prototype.slice.call(s));
1874
- }, R = this && this.__importDefault || function(p) {
1875
- return p && p.__esModule ? p : { default: p };
1876
- };
1877
- Object.defineProperty(l, "__esModule", { value: !0 }), l.updateRtl = l.doesFocusableExist = l.getCurrentFocusKey = l.updateAllLayouts = l.resume = l.pause = l.navigateByDirection = l.setFocus = l.setKeyMap = l.destroy = l.setThrottle = l.init = l.SpatialNavigation = l.ROOT_FOCUS_KEY = void 0;
1878
- var x = R(g(150)), E = R(g(117)), $ = R(g(747)), T = R(g(23)), k = R(g(842)), X = R(g(682)), te = R(g(784)), be = R(g(432)), je = R(g(67)), Ke = R(g(35)), Q = R(g(119)), _e = q(g(964)), oe = "left", ue = "right", ce = "up", ne = "down", me = "enter", Ce = ((C = {}).left = [37, "ArrowLeft"], C.up = [38, "ArrowUp"], C.right = [39, "ArrowRight"], C.down = [40, "ArrowDown"], C.enter = [13, "Enter"], C);
1879
- l.ROOT_FOCUS_KEY = "SN:ROOT";
1880
- var Fe = ["#0FF", "#FF0", "#F0F"], Se = { leading: !0, trailing: !1 }, Ee = function() {
1881
- function p() {
1882
- this.focusableComponents = {}, this.focusKey = null, this.parentsHavingFocusedChild = [], this.domNodeFocusOptions = {}, this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.useGetBoundingClientRect = !1, this.shouldFocusDOMNode = !1, this.shouldUseNativeEvents = !1, this.writingDirection = Q.default.LTR, this.pressedKeys = {}, this.paused = !1, this.keyDownEventListener = null, this.keyUpEventListener = null, this.keyMap = Ce, this.pause = this.pause.bind(this), this.resume = this.resume.bind(this), this.setFocus = this.setFocus.bind(this), this.updateAllLayouts = this.updateAllLayouts.bind(this), this.navigateByDirection = this.navigateByDirection.bind(this), this.init = this.init.bind(this), this.setThrottle = this.setThrottle.bind(this), this.destroy = this.destroy.bind(this), this.setKeyMap = this.setKeyMap.bind(this), this.getCurrentFocusKey = this.getCurrentFocusKey.bind(this), this.doesFocusableExist = this.doesFocusableExist.bind(this), this.updateRtl = this.updateRtl.bind(this), this.setFocusDebounced = (0, x.default)(this.setFocus, 300, { leading: !1, trailing: !0 }), this.debug = !1, this.visualDebugger = null, this.logIndex = 0, this.distanceCalculationMethod = "corners";
1883
- }
1884
- return p.getCutoffCoordinate = function(s, c, f, d, F) {
1885
- var w = s ? d.top : F === Q.default.LTR ? d.left : d.right, A = s ? d.bottom : F === Q.default.LTR ? d.right : d.left;
1886
- return c ? f ? w : A : f ? A : w;
1887
- }, p.getRefCorners = function(s, c, f) {
1888
- var d = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
1889
- switch (s) {
1890
- case ce:
1891
- var F = c ? f.bottom : f.top;
1892
- d.a = { x: f.left, y: F }, d.b = { x: f.right, y: F };
1893
- break;
1894
- case ne:
1895
- F = c ? f.top : f.bottom, d.a = { x: f.left, y: F }, d.b = { x: f.right, y: F };
1896
- break;
1897
- case oe:
1898
- var w = c ? f.right : f.left;
1899
- d.a = { x: w, y: f.top }, d.b = { x: w, y: f.bottom };
1900
- break;
1901
- case ue:
1902
- w = c ? f.left : f.right, d.a = { x: w, y: f.top }, d.b = { x: w, y: f.bottom };
1903
- }
1904
- return d;
1905
- }, p.isAdjacentSlice = function(s, c, f) {
1906
- var d = s.a, F = s.b, w = c.a, A = c.b, M = f ? "x" : "y", G = d[M], H = F[M], j = w[M], B = A[M], D = 0.2 * (H - G);
1907
- return Math.max(0, Math.min(H, B) - Math.max(G, j)) >= D;
1908
- }, p.getPrimaryAxisDistance = function(s, c, f) {
1909
- var d = s.a, F = c.a, w = f ? "y" : "x";
1910
- return Math.abs(F[w] - d[w]);
1911
- }, p.getSecondaryAxisDistance = function(s, c, f, d, F) {
1912
- if (F) return F(s, c, f, d);
1913
- var w = s.a, A = s.b, M = c.a, G = c.b, H = f ? "x" : "y", j = w[H], B = A[H], D = M[H], Y = G[H];
1914
- if (d === "center") {
1915
- var z = (j + B) / 2, J = (D + Y) / 2;
1916
- return Math.abs(z - J);
1917
- }
1918
- if (d === "edges") {
1919
- var se = Math.min(j, B), U = Math.min(D, Y), V = Math.max(j, B), fe = Math.max(D, Y), ae = Math.abs(se - U), ee = Math.abs(V - fe);
1920
- return Math.min(ae, ee);
1921
- }
1922
- var qe = [Math.abs(D - j), Math.abs(D - B), Math.abs(Y - j), Math.abs(Y - B)];
1923
- return Math.min.apply(Math, qe);
1924
- }, p.prototype.sortSiblingsByPriority = function(s, c, f, d) {
1925
- var F = this, w = f === ne || f === ce, A = p.getRefCorners(f, !1, c);
1926
- return (0, be.default)(s, function(M) {
1927
- var G = p.getRefCorners(f, !0, M.layout), H = p.isAdjacentSlice(A, G, w), j = H ? p.getPrimaryAxisDistance : p.getSecondaryAxisDistance, B = H ? p.getSecondaryAxisDistance : p.getPrimaryAxisDistance, D = j(A, G, w, F.distanceCalculationMethod, F.customDistanceCalculationFunction), Y = B(A, G, w, F.distanceCalculationMethod, F.customDistanceCalculationFunction), z = 5 * D + Y, J = (z + 1) / (H ? 5 : 1);
1928
- return F.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(M.focusKey, " relative to ").concat(d, " is"), D, Y, z), F.log("smartNavigate", "priority for ".concat(M.focusKey, " relative to ").concat(d, " is"), J), F.visualDebugger && (F.visualDebugger.drawPoint(G.a.x, G.a.y, "yellow", 6), F.visualDebugger.drawPoint(G.b.x, G.b.y, "yellow", 6)), J;
1929
- });
1930
- }, p.prototype.init = function(s) {
1931
- var c = this, f = s === void 0 ? {} : s, d = f.debug, F = d !== void 0 && d, w = f.visualDebug, A = w !== void 0 && w, M = f.nativeMode, G = M !== void 0 && M, H = f.throttle, j = H === void 0 ? 0 : H, B = f.throttleKeypresses, D = B !== void 0 && B, Y = f.useGetBoundingClientRect, z = Y !== void 0 && Y, J = f.shouldFocusDOMNode, se = J !== void 0 && J, U = f.domNodeFocusOptions, V = U === void 0 ? {} : U, fe = f.shouldUseNativeEvents, ae = fe !== void 0 && fe, ee = f.rtl, qe = ee !== void 0 && ee, W = f.distanceCalculationMethod, Z = W === void 0 ? "corners" : W, qn = f.customDistanceCalculationFunction, ys = qn === void 0 ? void 0 : qn;
1932
- if (!this.enabled && (this.domNodeFocusOptions = V, this.enabled = !0, this.nativeMode = G, this.throttleKeypresses = D, this.useGetBoundingClientRect = z, this.shouldFocusDOMNode = se && !G, this.shouldUseNativeEvents = ae, this.writingDirection = qe ? Q.default.RTL : Q.default.LTR, this.distanceCalculationMethod = Z, this.customDistanceCalculationFunction = ys, this.debug = F, !this.nativeMode && (Number.isInteger(j) && j > 0 && (this.throttle = j), this.bindEventHandlers(), A))) {
1933
- this.visualDebugger = new Ke.default(this.writingDirection);
1934
- var Rn = function() {
1935
- requestAnimationFrame(function() {
1936
- c.visualDebugger.clearLayouts(), (0, te.default)(c.focusableComponents, function(wn, gs) {
1937
- c.visualDebugger.drawLayout(wn.layout, gs, wn.parentFocusKey);
1938
- }), Rn();
1939
- });
1940
- };
1941
- Rn();
1942
- }
1943
- }, p.prototype.setThrottle = function(s) {
1944
- var c = s === void 0 ? {} : s, f = c.throttle, d = f === void 0 ? 0 : f, F = c.throttleKeypresses, w = F !== void 0 && F;
1945
- this.throttleKeypresses = w, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(d) && (this.throttle = d), this.bindEventHandlers());
1946
- }, p.prototype.destroy = function() {
1947
- this.enabled && (this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.focusKey = null, this.parentsHavingFocusedChild = [], this.focusableComponents = {}, this.paused = !1, this.keyMap = Ce, this.unbindEventHandlers());
1948
- }, p.prototype.getEventType = function(s) {
1949
- return (0, T.default)(this.getKeyMap(), function(c) {
1950
- return c.includes(s);
1951
- });
1952
- }, p.getKeyCode = function(s) {
1953
- return s.keyCode || s.code || s.key;
1954
- }, p.prototype.bindEventHandlers = function() {
1955
- var s = this;
1956
- typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(c) {
1957
- if (s.paused !== !0) {
1958
- s.debug && (s.logIndex += 1);
1959
- var f = p.getKeyCode(c), d = s.getEventType(f);
1960
- if (d) {
1961
- s.pressedKeys[d] = s.pressedKeys[d] ? s.pressedKeys[d] + 1 : 1, s.shouldUseNativeEvents || (c.preventDefault(), c.stopPropagation());
1962
- var F = { pressedKeys: s.pressedKeys };
1963
- if (d === me && s.focusKey) s.onEnterPress(F);
1964
- else {
1965
- var w = s.onArrowPress(d, F) === !1;
1966
- if (s.visualDebugger && s.visualDebugger.clear(), w) s.log("keyDownEventListener", "default navigation prevented");
1967
- else {
1968
- var A = (0, T.default)(s.getKeyMap(), function(M) {
1969
- return M.includes(f);
1970
- });
1971
- s.smartNavigate(A, null, { event: c });
1972
- }
1973
- }
1974
- }
1975
- }
1976
- }, this.throttle && (this.keyDownEventListenerThrottled = (0, je.default)(this.keyDownEventListener.bind(this), this.throttle, Se)), this.keyUpEventListener = function(c) {
1977
- var f = p.getKeyCode(c), d = s.getEventType(f);
1978
- delete s.pressedKeys[d], s.throttle && !s.throttleKeypresses && s.keyDownEventListenerThrottled.cancel(), d === me && s.focusKey && s.onEnterRelease(), !s.focusKey || d !== oe && d !== ue && d !== ce && d !== ne || s.onArrowRelease(d);
1979
- }, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
1980
- }, p.prototype.unbindEventHandlers = function() {
1981
- if (typeof window < "u" && window.removeEventListener) {
1982
- window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
1983
- var s = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
1984
- window.removeEventListener("keydown", s), this.keyDownEventListener = null;
1985
- }
1986
- }, p.prototype.onEnterPress = function(s) {
1987
- var c = this.focusableComponents[this.focusKey];
1988
- c ? c.focusable ? c.onEnterPress && c.onEnterPress(s) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
1989
- }, p.prototype.onEnterRelease = function() {
1990
- var s = this.focusableComponents[this.focusKey];
1991
- s ? s.focusable ? s.onEnterRelease && s.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
1992
- }, p.prototype.onArrowPress = function(s, c) {
1993
- var f = this.focusableComponents[this.focusKey];
1994
- if (f) return f && f.onArrowPress && f.onArrowPress(s, c);
1995
- this.log("onArrowPress", "noComponent");
1996
- }, p.prototype.onArrowRelease = function(s) {
1997
- var c = this.focusableComponents[this.focusKey];
1998
- c ? c.focusable ? c.onArrowRelease && c.onArrowRelease(s) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
1999
- }, p.prototype.navigateByDirection = function(s, c) {
2000
- if (this.paused !== !0 && this.enabled && !this.nativeMode) {
2001
- var f = [ne, ce, oe, ue];
2002
- f.includes(s) ? (this.log("navigateByDirection", "direction", s), this.smartNavigate(s, null, c)) : this.log("navigateByDirection", "Invalid direction. You passed: `".concat(s, "`, but you can use only these: "), f);
2003
- }
2004
- }, p.prototype.smartNavigate = function(s, c, f) {
2005
- var d = this;
2006
- if (!this.nativeMode) {
2007
- var F = s === ne || s === ce, w = s === ne || (this.writingDirection === Q.default.LTR ? s === ue : s === oe);
2008
- this.log("smartNavigate", "direction", s), this.log("smartNavigate", "fromParentFocusKey", c), this.log("smartNavigate", "this.focusKey", this.focusKey), c || (0, te.default)(this.focusableComponents, function(U) {
2009
- U.layoutUpdated = !1;
2010
- });
2011
- var A = this.focusableComponents[c || this.focusKey];
2012
- if (c || A) {
2013
- if (this.log("smartNavigate", "currentComponent", A ? A.focusKey : void 0, A ? A.node : void 0, A), A) {
2014
- this.updateLayout(A.focusKey);
2015
- var M = A.parentFocusKey, G = A.focusKey, H = A.layout, j = p.getCutoffCoordinate(F, w, !1, H, this.writingDirection), B = (0, $.default)(this.focusableComponents, function(U) {
2016
- if (U.parentFocusKey === M && U.focusable) {
2017
- d.updateLayout(U.focusKey);
2018
- var V = p.getCutoffCoordinate(F, w, !0, U.layout, d.writingDirection);
2019
- return F || d.writingDirection === Q.default.LTR ? w ? V >= j : V <= j : w ? V <= j : V >= j;
2020
- }
2021
- return !1;
2022
- });
2023
- if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", j), this.log("smartNavigate", "siblings", "".concat(B.length, " elements:"), B.map(function(U) {
2024
- return U.focusKey;
2025
- }).join(", "), B.map(function(U) {
2026
- return U.node;
2027
- }), B.map(function(U) {
2028
- return U;
2029
- }))), this.visualDebugger) {
2030
- var D = p.getRefCorners(s, !1, H);
2031
- this.visualDebugger.drawPoint(D.a.x, D.a.y), this.visualDebugger.drawPoint(D.b.x, D.b.y);
2032
- }
2033
- var Y = this.sortSiblingsByPriority(B, H, s, G), z = (0, k.default)(Y);
2034
- if (this.log("smartNavigate", "nextComponent", z ? z.focusKey : void 0, z ? z.node : void 0, z), z) this.setFocus(z.focusKey, f);
2035
- else {
2036
- var J = this.focusableComponents[M], se = J != null && J.isFocusBoundary ? J.focusBoundaryDirections || [s] : [];
2037
- J && se.includes(s) || this.smartNavigate(s, M, f);
2038
- }
2039
- }
2040
- } else this.setFocus(this.getForcedFocusKey());
2041
- }
2042
- }, p.prototype.saveLastFocusedChildKey = function(s, c) {
2043
- s && (this.log("saveLastFocusedChildKey", "".concat(s.focusKey, " lastFocusedChildKey set"), c), s.lastFocusedChildKey = c);
2044
- }, p.prototype.log = function(s, c) {
2045
- for (var f = [], d = 2; d < arguments.length; d++) f[d - 2] = arguments[d];
2046
- this.debug && console.log.apply(console, L(["%c".concat(s, "%c").concat(c), "background: ".concat(Fe[this.logIndex % Fe.length], "; color: black; padding: 1px 5px;"), "background: #333; color: #BADA55; padding: 1px 5px;"], f, !1));
2047
- }, p.prototype.getCurrentFocusKey = function() {
2048
- return this.focusKey;
2049
- }, p.prototype.getForcedFocusKey = function() {
2050
- var s, c = (0, $.default)(this.focusableComponents, function(d) {
2051
- return d.focusable && d.forceFocus;
2052
- }), f = this.sortSiblingsByPriority(c, { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: null }, "down", l.ROOT_FOCUS_KEY);
2053
- return (s = (0, k.default)(f)) === null || s === void 0 ? void 0 : s.focusKey;
2054
- }, p.prototype.getNextFocusKey = function(s) {
2055
- var c = this, f = this.focusableComponents[s];
2056
- if (!f || this.nativeMode) return s;
2057
- var d = (0, $.default)(this.focusableComponents, function(M) {
2058
- return M.parentFocusKey === s && M.focusable;
2059
- });
2060
- if (d.length > 0) {
2061
- var F = f.lastFocusedChildKey, w = f.preferredChildFocusKey;
2062
- if (this.log("getNextFocusKey", "lastFocusedChildKey is", F), this.log("getNextFocusKey", "preferredChildFocusKey is", w), F && f.saveLastFocusedChild && this.isParticipatingFocusableComponent(F)) return this.log("getNextFocusKey", "lastFocusedChildKey will be focused", F), this.getNextFocusKey(F);
2063
- if (w && this.isParticipatingFocusableComponent(w)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", w), this.getNextFocusKey(w);
2064
- d.forEach(function(M) {
2065
- return c.updateLayout(M.focusKey);
2066
- });
2067
- var A = function(M, G) {
2068
- var H = G === Q.default.LTR ? function(B) {
2069
- var D = B.layout;
2070
- return Math.abs(D.left) + Math.abs(D.top);
2071
- } : function(B) {
2072
- var D = B.layout;
2073
- return Math.abs(window.innerWidth - D.right) + Math.abs(D.top);
2074
- }, j = (0, be.default)(M, H);
2075
- return (0, k.default)(j);
2076
- }(d, this.writingDirection).focusKey;
2077
- return this.log("getNextFocusKey", "childKey will be focused", A), this.getNextFocusKey(A);
2078
- }
2079
- return this.log("getNextFocusKey", "targetFocusKey", s), s;
2080
- }, p.prototype.addFocusable = function(s) {
2081
- var c = s.focusKey, f = s.node, d = s.parentFocusKey, F = s.onEnterPress, w = s.onEnterRelease, A = s.onArrowPress, M = s.onArrowRelease, G = s.onFocus, H = s.onBlur, j = s.saveLastFocusedChild, B = s.trackChildren, D = s.onUpdateFocus, Y = s.onUpdateHasFocusedChild, z = s.preferredChildFocusKey, J = s.autoRestoreFocus, se = s.forceFocus, U = s.focusable, V = s.isFocusBoundary, fe = s.focusBoundaryDirections;
2082
- if (this.focusableComponents[c] = { focusKey: c, node: f, parentFocusKey: d, onEnterPress: F, onEnterRelease: w, onArrowPress: A, onArrowRelease: M, onFocus: G, onBlur: H, onUpdateFocus: D, onUpdateHasFocusedChild: Y, saveLastFocusedChild: j, trackChildren: B, preferredChildFocusKey: z, focusable: U, isFocusBoundary: V, focusBoundaryDirections: fe, autoRestoreFocus: J, forceFocus: se, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: f }, layoutUpdated: !1 }, f || console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ', this.focusableComponents[c]), !this.nativeMode) {
2083
- this.updateLayout(c), this.log("addFocusable", "Component added: ", this.focusableComponents[c]), c === this.focusKey && this.setFocus(z || c);
2084
- for (var ae = this.focusableComponents[this.focusKey]; ae; ) {
2085
- if (ae.parentFocusKey === c) {
2086
- this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
2087
- break;
2088
- }
2089
- ae = this.focusableComponents[ae.parentFocusKey];
2090
- }
2091
- }
2092
- }, p.prototype.removeFocusable = function(s) {
2093
- var c = s.focusKey, f = this.focusableComponents[c];
2094
- if (f) {
2095
- var d = f.parentFocusKey;
2096
- (0, f.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", f), delete this.focusableComponents[c];
2097
- var F = this.parentsHavingFocusedChild.includes(c);
2098
- this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter(function(M) {
2099
- return M !== c;
2100
- });
2101
- var w = this.focusableComponents[d], A = c === this.focusKey;
2102
- if (w && w.lastFocusedChildKey === c && (w.lastFocusedChildKey = null), this.nativeMode) return;
2103
- (A || F) && w && w.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", A ? "Leaf component" : "Container component", "Auto restoring focus to: ", d), this.setFocusDebounced(d));
2104
- }
2105
- }, p.prototype.getNodeLayoutByFocusKey = function(s) {
2106
- var c = this.focusableComponents[s];
2107
- return c ? (this.updateLayout(c.focusKey), c.layout) : null;
2108
- }, p.prototype.setCurrentFocusedKey = function(s, c) {
2109
- var f, d, F, w;
2110
- if (this.isFocusableComponent(this.focusKey) && s !== this.focusKey) {
2111
- var A = this.focusableComponents[this.focusKey];
2112
- A.onUpdateFocus(!1), A.onBlur(this.getNodeLayoutByFocusKey(this.focusKey), c), (d = (f = A.node) === null || f === void 0 ? void 0 : f.removeAttribute) === null || d === void 0 || d.call(f, "data-focused"), this.log("setCurrentFocusedKey", "onBlur", A);
2113
- }
2114
- if (this.focusKey = s, this.isFocusableComponent(this.focusKey)) {
2115
- var M = this.focusableComponents[this.focusKey];
2116
- this.shouldFocusDOMNode && M.node && M.node.focus(this.domNodeFocusOptions), (w = (F = M.node) === null || F === void 0 ? void 0 : F.setAttribute) === null || w === void 0 || w.call(F, "data-focused", "true"), M.onUpdateFocus(!0), M.onFocus(this.getNodeLayoutByFocusKey(this.focusKey), c), this.log("setCurrentFocusedKey", "onFocus", M);
2117
- }
2118
- }, p.prototype.updateParentsHasFocusedChild = function(s, c) {
2119
- for (var f = this, d = [], F = this.focusableComponents[s]; F; ) {
2120
- var w = F.parentFocusKey, A = this.focusableComponents[w];
2121
- if (A) {
2122
- var M = A.focusKey;
2123
- d.push(M);
2124
- }
2125
- F = A;
2126
- }
2127
- var G = (0, E.default)(this.parentsHavingFocusedChild, d), H = (0, E.default)(d, this.parentsHavingFocusedChild);
2128
- (0, X.default)(G, function(j) {
2129
- var B = f.focusableComponents[j];
2130
- B && B.trackChildren && B.onUpdateHasFocusedChild(!1), f.onIntermediateNodeBecameBlurred(j, c);
2131
- }), (0, X.default)(H, function(j) {
2132
- var B = f.focusableComponents[j];
2133
- B && B.trackChildren && B.onUpdateHasFocusedChild(!0), f.onIntermediateNodeBecameFocused(j, c);
2134
- }), this.parentsHavingFocusedChild = d;
2135
- }, p.prototype.updateParentsLastFocusedChild = function(s) {
2136
- for (var c = this.focusableComponents[s]; c; ) {
2137
- var f = c.parentFocusKey, d = this.focusableComponents[f];
2138
- d && this.saveLastFocusedChildKey(d, c.focusKey), c = d;
2139
- }
2140
- }, p.prototype.getKeyMap = function() {
2141
- return this.keyMap;
2142
- }, p.prototype.setKeyMap = function(s) {
2143
- this.keyMap = y(y({}, this.getKeyMap()), function(c) {
2144
- var f = {};
2145
- return Object.entries(c).forEach(function(d) {
2146
- var F = d[0], w = d[1];
2147
- f[F] = Array.isArray(w) ? w : [w];
2148
- }), f;
2149
- }(s));
2150
- }, p.prototype.isFocusableComponent = function(s) {
2151
- return !!this.focusableComponents[s];
2152
- }, p.prototype.isParticipatingFocusableComponent = function(s) {
2153
- return this.isFocusableComponent(s) && this.focusableComponents[s].focusable;
2154
- }, p.prototype.onIntermediateNodeBecameFocused = function(s, c) {
2155
- this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s), c);
2156
- }, p.prototype.onIntermediateNodeBecameBlurred = function(s, c) {
2157
- this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s), c);
2158
- }, p.prototype.pause = function() {
2159
- this.paused = !0;
2160
- }, p.prototype.resume = function() {
2161
- this.paused = !1;
2162
- }, p.prototype.setFocus = function(s, c) {
2163
- if (c === void 0 && (c = {}), this.setFocusDebounced.cancel(), this.enabled) {
2164
- this.log("setFocus", "focusKey", s), s && s !== l.ROOT_FOCUS_KEY || (s = this.getForcedFocusKey());
2165
- var f = this.getNextFocusKey(s);
2166
- this.log("setFocus", "newFocusKey", f), this.setCurrentFocusedKey(f, c), this.updateParentsHasFocusedChild(f, c), this.updateParentsLastFocusedChild(f);
2167
- }
2168
- }, p.prototype.updateAllLayouts = function() {
2169
- var s = this;
2170
- this.enabled && !this.nativeMode && (0, te.default)(this.focusableComponents, function(c, f) {
2171
- s.updateLayout(f);
2172
- });
2173
- }, p.prototype.updateLayout = function(s) {
2174
- var c = this.focusableComponents[s];
2175
- if (c && !this.nativeMode && !c.layoutUpdated) {
2176
- var f = c.node, d = this.useGetBoundingClientRect ? (0, _e.getBoundingClientRect)(f) : (0, _e.default)(f);
2177
- c.layout = y(y({}, d), { node: f });
2178
- }
2179
- }, p.prototype.updateFocusable = function(s, c) {
2180
- var f = c.node, d = c.preferredChildFocusKey, F = c.focusable, w = c.isFocusBoundary, A = c.focusBoundaryDirections, M = c.onEnterPress, G = c.onEnterRelease, H = c.onArrowPress, j = c.onFocus, B = c.onBlur;
2181
- if (!this.nativeMode) {
2182
- var D = this.focusableComponents[s];
2183
- D && (D.preferredChildFocusKey = d, D.focusable = F, D.isFocusBoundary = w, D.focusBoundaryDirections = A, D.onEnterPress = M, D.onEnterRelease = G, D.onArrowPress = H, D.onFocus = j, D.onBlur = B, f && (D.node = f));
508
+ return /* @__PURE__ */ r(w0, { className: l, children: [
509
+ /* @__PURE__ */ e($0, { style: { backgroundColor: o }, children: /* @__PURE__ */ e(y0, { name: "invite-game-icon" }) }),
510
+ /* @__PURE__ */ r(T0, { children: [
511
+ /* @__PURE__ */ e(H0, { children: t || "" }),
512
+ /* @__PURE__ */ e(V0, { children: n || "" })
513
+ ] }),
514
+ i && /* @__PURE__ */ r(k0, { ref: c, "data-a": "intr", onClick: C(() => p(i)), children: [
515
+ /* @__PURE__ */ r(z0, { children: [
516
+ /* @__PURE__ */ e(x0, { children: "Invite link" }),
517
+ /* @__PURE__ */ e(R0, { children: i })
518
+ ] }),
519
+ /* @__PURE__ */ e(S0, { name: "icon-copy" })
520
+ ] }),
521
+ d
522
+ ] });
523
+ }, q0 = () => I2, E0 = /* @__PURE__ */ s(q0())({
524
+ name: "Container",
525
+ class: "cll3md7",
526
+ propsAsIs: !0
527
+ }), B0 = () => x2, N0 = /* @__PURE__ */ s(B0())({
528
+ name: "ActionBtn",
529
+ class: "a10g1iik",
530
+ propsAsIs: !0
531
+ }), Z0 = ({ questionId: i, ...t }) => /* @__PURE__ */ r(E0, { "data-a": "intr", "data-name": i, children: [
532
+ /* @__PURE__ */ e(S2, { questionId: i, ...t }),
533
+ /* @__PURE__ */ e(N0, { "data-a": "intr", "data-name": i, children: "View Insight" })
534
+ ] }), O0 = () => I2, W0 = /* @__PURE__ */ s(O0())({
535
+ name: "Container",
536
+ class: "cl56x6b",
537
+ propsAsIs: !0
538
+ }), j0 = /* @__PURE__ */ s("button")({
539
+ name: "ActionButton",
540
+ class: "a11pzf92",
541
+ propsAsIs: !1
542
+ }), G0 = /* @__PURE__ */ s("blockquote")({
543
+ name: "Quote",
544
+ class: "q1hbaleq",
545
+ propsAsIs: !1
546
+ }), D0 = ({ ...i }) => /* @__PURE__ */ r(W0, { "data-a": "intr", "data-name": i.tweetId, children: [
547
+ i.title && /* @__PURE__ */ e(G0, { children: i.title }),
548
+ /* @__PURE__ */ e(v2, { ...i }),
549
+ /* @__PURE__ */ e(j0, { "data-a": "intr", "data-name": i.tweetId, children: "View Insight" })
550
+ ] }), r2 = /* @__PURE__ */ s("div")({
551
+ name: "QuestionsContainer",
552
+ class: "qvghv3l",
553
+ propsAsIs: !1
554
+ }), pe = ({ questions: i, openQuestion: t, controlVideo: n }) => i ? /* @__PURE__ */ e(r2, { "data-a": "intr", onClick: (l) => {
555
+ const c = l.target.getAttribute("data-name");
556
+ c && (M2(), t(c, { openedFrom: "list" }));
557
+ }, children: i == null ? void 0 : i.map((l) => {
558
+ var c, p, d;
559
+ if (l.type === "question" && ((c = l.attributes) == null ? void 0 : c.attributes.case) === "question") {
560
+ const C = l.attributes.attributes.value;
561
+ return /* @__PURE__ */ e(R2, { ...C }, C.questionId);
562
+ }
563
+ if (l.type === "insight" && ((p = l.attributes) == null ? void 0 : p.attributes.case) === "insight") {
564
+ const C = l.attributes.attributes.value;
565
+ return /* @__PURE__ */ e(Z0, { controlVideo: n, ...C }, C.questionId);
566
+ }
567
+ if (l.type === "tweet" && ((d = l.attributes) == null ? void 0 : d.attributes.case) === "tweet") {
568
+ const C = l.attributes.attributes.value, I = l.attributes.id;
569
+ return /* @__PURE__ */ e(D0, { controlVideo: n, ...C, tweetId: I }, I);
570
+ }
571
+ return null;
572
+ }) }) : /* @__PURE__ */ e(r2, { children: Array.from({ length: 5 }).map((l, c) => /* @__PURE__ */ e(F2, {}, c)) }), P0 = /* @__PURE__ */ s("div")({
573
+ name: "InsightContainer",
574
+ class: "i1pqqgpo",
575
+ propsAsIs: !1
576
+ }), U0 = /* @__PURE__ */ s("img")({
577
+ name: "Image",
578
+ class: "igj7luu",
579
+ propsAsIs: !1
580
+ }), Q0 = /* @__PURE__ */ s("div")({
581
+ name: "ImageContainer",
582
+ class: "i1qne9g6",
583
+ propsAsIs: !1
584
+ }), Y0 = /* @__PURE__ */ s("div")({
585
+ name: "InsightContent",
586
+ class: "itpr98r",
587
+ propsAsIs: !1
588
+ }), K0 = /* @__PURE__ */ s("h3")({
589
+ name: "Title",
590
+ class: "t17iaqp8",
591
+ propsAsIs: !1
592
+ }), J0 = /* @__PURE__ */ s("div")({
593
+ name: "Description",
594
+ class: "d16t3y7s",
595
+ propsAsIs: !1
596
+ }), X0 = /* @__PURE__ */ s("button")({
597
+ name: "ActionBtn",
598
+ class: "a12495er",
599
+ propsAsIs: !1
600
+ }), e1 = ({ video: i, image: t, imageMode: n, heading: o, body: l, action: c, controlVideo: p }) => /* @__PURE__ */ r(P0, { children: [
601
+ (i == null ? void 0 : i.url) && /* @__PURE__ */ e(q2, { source: i.url, poster: i.thumbnailUrl, controlVideo: p }),
602
+ t && !(i != null && i.url) && /* @__PURE__ */ e(Q0, { "data-rounded": n === N2.ROUNDED, children: /* @__PURE__ */ e(U0, { src: t, alt: o }) }),
603
+ /* @__PURE__ */ r(Y0, { children: [
604
+ /* @__PURE__ */ e(K0, { children: o }),
605
+ /* @__PURE__ */ e(J0, { children: l }),
606
+ c && /* @__PURE__ */ e(X0, { onClick: c, children: "View Insight" })
607
+ ] })
608
+ ] }), s1 = /* @__PURE__ */ s("div")({
609
+ name: "Container",
610
+ class: "c1eptrjd",
611
+ propsAsIs: !1
612
+ }), t1 = /* @__PURE__ */ s("div")({
613
+ name: "CloseIconWrap",
614
+ class: "crylm65",
615
+ propsAsIs: !1
616
+ }), i1 = () => H, n1 = /* @__PURE__ */ s(i1())({
617
+ name: "CloseIcon",
618
+ class: "c9mrcz7",
619
+ propsAsIs: !0
620
+ }), r1 = /* @__PURE__ */ s("div")({
621
+ name: "Header",
622
+ class: "hw3lzv4",
623
+ propsAsIs: !1
624
+ }), a1 = () => H, o1 = /* @__PURE__ */ s(a1())({
625
+ name: "TypeIcon",
626
+ class: "t1rrb3kf",
627
+ propsAsIs: !0
628
+ }), l1 = /* @__PURE__ */ s("span")({
629
+ name: "TypeName",
630
+ class: "t1ydnjov",
631
+ propsAsIs: !1
632
+ }), c1 = /* @__PURE__ */ s("div")({
633
+ name: "Question",
634
+ class: "qlf90cl",
635
+ propsAsIs: !1
636
+ }), d1 = /* @__PURE__ */ s("button")({
637
+ name: "AnswerButton",
638
+ class: "a1e0nhcl",
639
+ propsAsIs: !1
640
+ }), p1 = /* @__PURE__ */ s("div")({
641
+ name: "Container",
642
+ class: "c1t4f0x4",
643
+ propsAsIs: !1
644
+ }), h1 = /* @__PURE__ */ s("button")({
645
+ name: "ActionBtn",
646
+ class: "a16w1nl6",
647
+ propsAsIs: !1
648
+ }), C1 = /* @__PURE__ */ s("div")({
649
+ name: "QuoteWrap",
650
+ class: "q14u54rf",
651
+ propsAsIs: !1
652
+ }), m1 = /* @__PURE__ */ s("blockquote")({
653
+ name: "Quote",
654
+ class: "q1hxm6zo",
655
+ propsAsIs: !1
656
+ }), u1 = ({ action: i, ...t }) => /* @__PURE__ */ r(p1, { children: [
657
+ t.title && /* @__PURE__ */ e(C1, { children: /* @__PURE__ */ e(m1, { children: t.title }) }),
658
+ /* @__PURE__ */ e(v2, { ...t }),
659
+ i && /* @__PURE__ */ e(h1, { onClick: i, children: "View Insight" })
660
+ ] }), he = ({
661
+ close: i,
662
+ action: t,
663
+ controlVideo: n,
664
+ data: { questionType: o, question: l, insight: c, tweet: p }
665
+ }) => {
666
+ const d = k2[o];
667
+ return d ? /* @__PURE__ */ r(s1, { onClick: t, style: o === k.TWEET ? { paddingTop: "12px" } : {}, children: [
668
+ /* @__PURE__ */ e(
669
+ t1,
670
+ {
671
+ "data-a": "intr",
672
+ onClick: (C) => {
673
+ C.stopPropagation(), i && i(C);
674
+ },
675
+ children: /* @__PURE__ */ e(n1, { name: "icon-cross" })
676
+ }
677
+ ),
678
+ o !== k.TWEET && /* @__PURE__ */ r(r1, { children: [
679
+ /* @__PURE__ */ e(
680
+ o1,
681
+ {
682
+ "data-type-trivia": o === k.TRIVIA,
683
+ "data-type-poll": o === k.POLL,
684
+ name: d.iconName
685
+ }
686
+ ),
687
+ /* @__PURE__ */ e(l1, { children: d.label })
688
+ ] }),
689
+ o === k.FACTOID && c && /* @__PURE__ */ e(e1, { ...c, action: t, controlVideo: n }),
690
+ o === k.TWEET && p && /* @__PURE__ */ e(u1, { ...p, action: t, controlVideo: n }),
691
+ o !== k.FACTOID && o !== k.TWEET && /* @__PURE__ */ r(S, { children: [
692
+ /* @__PURE__ */ e(c1, { children: l == null ? void 0 : l.title }),
693
+ /* @__PURE__ */ e(d1, { children: "Answer" })
694
+ ] })
695
+ ] }) : null;
696
+ }, R = /* @__PURE__ */ s("div")({
697
+ name: "BGWrap",
698
+ class: "b1dqe0sz",
699
+ propsAsIs: !1
700
+ }), w = /* @__PURE__ */ s("div")({
701
+ name: "BGLineBase",
702
+ class: "b1v6w7ni",
703
+ propsAsIs: !1
704
+ }), g1 = () => w, f1 = /* @__PURE__ */ s(g1())({
705
+ name: "BGOneLineOne",
706
+ class: "b2nqb1p",
707
+ propsAsIs: !0
708
+ }), v1 = () => w, I1 = /* @__PURE__ */ s(v1())({
709
+ name: "BGOneLineTwo",
710
+ class: "b1xxgmbk",
711
+ propsAsIs: !0
712
+ }), A1 = () => w, L1 = /* @__PURE__ */ s(A1())({
713
+ name: "BGOneLineThree",
714
+ class: "b63lwcb",
715
+ propsAsIs: !0
716
+ }), _1 = () => w, a2 = /* @__PURE__ */ s(_1())({
717
+ name: "BGTwoLineOne",
718
+ class: "b2iah4",
719
+ propsAsIs: !0
720
+ }), w1 = () => w, o2 = /* @__PURE__ */ s(w1())({
721
+ name: "BGTwoLineTwo",
722
+ class: "b1xezvf6",
723
+ propsAsIs: !0
724
+ }), $1 = () => w, l2 = /* @__PURE__ */ s($1())({
725
+ name: "BGTwoLineThree",
726
+ class: "b1jz1hg0",
727
+ propsAsIs: !0
728
+ }), b1 = () => w, c2 = /* @__PURE__ */ s(b1())({
729
+ name: "BGThreeLineOne",
730
+ class: "b18ho1tk",
731
+ propsAsIs: !0
732
+ }), y1 = () => w, d2 = /* @__PURE__ */ s(y1())({
733
+ name: "BGThreeLineTwo",
734
+ class: "b14uvjfm",
735
+ propsAsIs: !0
736
+ }), T1 = () => w, p2 = /* @__PURE__ */ s(T1())({
737
+ name: "BGThreeLineThree",
738
+ class: "b11c3ns7",
739
+ propsAsIs: !0
740
+ }), H1 = () => w, h2 = /* @__PURE__ */ s(H1())({
741
+ name: "BGThreeLineFour",
742
+ class: "b1bqhhet",
743
+ propsAsIs: !0
744
+ }), V1 = () => w, k1 = /* @__PURE__ */ s(V1())({
745
+ name: "BGFourLineOne",
746
+ class: "b1xyzi7o",
747
+ propsAsIs: !0
748
+ }), z1 = () => w, x1 = /* @__PURE__ */ s(z1())({
749
+ name: "BGFourLineTwo",
750
+ class: "byo0rup",
751
+ propsAsIs: !0
752
+ }), R1 = () => w, F1 = /* @__PURE__ */ s(R1())({
753
+ name: "BGFourLineThree",
754
+ class: "b1oyiqgv",
755
+ propsAsIs: !0
756
+ }), S1 = () => w, M1 = /* @__PURE__ */ s(S1())({
757
+ name: "BGFourLineFour",
758
+ class: "bx3ddqw",
759
+ propsAsIs: !0
760
+ }), q1 = ({ step: i, correct: t }) => /* @__PURE__ */ r(S, { children: [
761
+ /* @__PURE__ */ r(R, { "data-active": i === 1, "data-first-screen": "true", children: [
762
+ /* @__PURE__ */ e(f1, {}),
763
+ /* @__PURE__ */ e(I1, {}),
764
+ /* @__PURE__ */ e(L1, {})
765
+ ] }),
766
+ /* @__PURE__ */ r(R, { "data-active": i === 2, children: [
767
+ /* @__PURE__ */ e(a2, {}),
768
+ /* @__PURE__ */ e(o2, {}),
769
+ /* @__PURE__ */ e(l2, {})
770
+ ] }),
771
+ /* @__PURE__ */ r(R, { "data-active": i === 3, children: [
772
+ /* @__PURE__ */ e(a2, {}),
773
+ /* @__PURE__ */ e(o2, {}),
774
+ /* @__PURE__ */ e(l2, {})
775
+ ] }),
776
+ t ? /* @__PURE__ */ r(S, { children: [
777
+ /* @__PURE__ */ r(R, { "data-active": i === 4, "data-correct": "true", children: [
778
+ /* @__PURE__ */ e(c2, {}),
779
+ /* @__PURE__ */ e(d2, {}),
780
+ /* @__PURE__ */ e(p2, {}),
781
+ /* @__PURE__ */ e(h2, {})
782
+ ] }),
783
+ /* @__PURE__ */ r(R, { "data-active": i === 5, "data-correct": "true", children: [
784
+ /* @__PURE__ */ e(c2, {}),
785
+ /* @__PURE__ */ e(d2, {}),
786
+ /* @__PURE__ */ e(p2, {}),
787
+ /* @__PURE__ */ e(h2, {})
788
+ ] })
789
+ ] }) : /* @__PURE__ */ r(R, { "data-active": i === 4, "data-correct": "false", children: [
790
+ /* @__PURE__ */ e(k1, {}),
791
+ /* @__PURE__ */ e(x1, {}),
792
+ /* @__PURE__ */ e(F1, {}),
793
+ /* @__PURE__ */ e(M1, {})
794
+ ] })
795
+ ] }), E1 = 118, B1 = () => O2, N1 = /* @__PURE__ */ s(B1())({
796
+ name: "Container",
797
+ class: "c10131zw",
798
+ propsAsIs: !0
799
+ }), Z1 = /* @__PURE__ */ s("div")({
800
+ name: "InnerContainer",
801
+ class: "ir6k2eo",
802
+ propsAsIs: !1
803
+ }), x = /* @__PURE__ */ s("div")({
804
+ name: "Content",
805
+ class: "c1hwoq9l",
806
+ propsAsIs: !1
807
+ }), M = /* @__PURE__ */ s("div")({
808
+ name: "Title",
809
+ class: "t4ujo4g",
810
+ propsAsIs: !1
811
+ }), O1 = () => M, W1 = /* @__PURE__ */ s(O1())({
812
+ name: "PointsTitle",
813
+ class: "p1pjil1h",
814
+ propsAsIs: !0
815
+ }), E = /* @__PURE__ */ s("div")({
816
+ name: "Subtitle",
817
+ class: "s1iorwr9",
818
+ propsAsIs: !1
819
+ }), C2 = /* @__PURE__ */ s("div")({
820
+ name: "SubtitleFG",
821
+ class: "s51sv9d",
822
+ propsAsIs: !1
823
+ }), B = /* @__PURE__ */ s("div")({
824
+ name: "AnswerText",
825
+ class: "a1lbk2ye",
826
+ propsAsIs: !1
827
+ }), j1 = () => H, L2 = /* @__PURE__ */ s(j1())({
828
+ name: "FeedbackIcon",
829
+ class: "frcvk3t",
830
+ propsAsIs: !0
831
+ }), G1 = () => L2, m2 = /* @__PURE__ */ s(G1())({
832
+ name: "FeedbackIconCorrect",
833
+ class: "f33p82r",
834
+ propsAsIs: !0
835
+ }), D1 = () => L2, P1 = /* @__PURE__ */ s(D1())({
836
+ name: "FeedbackIconIncorrect",
837
+ class: "f12r9net",
838
+ propsAsIs: !0
839
+ }), u2 = /* @__PURE__ */ s("div")({
840
+ name: "CloseIconWrap",
841
+ class: "c1fw6699",
842
+ propsAsIs: !1
843
+ }), U1 = () => H, g2 = /* @__PURE__ */ s(U1())({
844
+ name: "CloseIcon",
845
+ class: "c115o126",
846
+ propsAsIs: !0
847
+ }), Q1 = "data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e", Y1 = "data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", K1 = (i, t, n) => i === t ? "translateY(0px)" : i > t ? `translateY(${n}px)` : "translateY(-100%)", Ce = ({ close: i, votedAnswer: t, mastersApp: n, correct: o, correctAnswerTitle: l, questionTitle: c, saveHeight: p, style: d, hiding: C }) => {
848
+ const [I, _] = T(1), L = Z({});
849
+ V(() => {
850
+ const f = setInterval(() => {
851
+ _((v) => o && v > 4 || !o && v > 3 ? v : ++v);
852
+ }, 3e3);
853
+ return () => clearInterval(f);
854
+ }, [o]), V(() => {
855
+ var f, v;
856
+ L.current[I] && p(((v = (f = L.current[I]) == null ? void 0 : f.getBoundingClientRect()) == null ? void 0 : v.height) || E1);
857
+ }, [I, p]);
858
+ const a = (f) => (v) => {
859
+ L.current && (L.current[f] = v);
860
+ }, h = (f) => ({ transform: K1(f, I, d.height) }), g = { ...d };
861
+ return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ e(N1, { style: d.height ? g : { ...d, paddingTop: 0, paddingBottom: 0 }, hiding: C, children: /* @__PURE__ */ r(
862
+ Z1,
863
+ {
864
+ style: {
865
+ height: d.height,
866
+ minHeight: d.height,
867
+ backgroundColor: I > 3 ? o ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
868
+ },
869
+ children: [
870
+ /* @__PURE__ */ e(q1, { step: I, correct: o }),
871
+ n && /* @__PURE__ */ r(x, { ref: a(1), style: h(1), children: [
872
+ /* @__PURE__ */ e("img", { alt: "sponsor-logo", src: Q1 }),
873
+ /* @__PURE__ */ e(C2, { children: "Featured Groups +" })
874
+ ] }),
875
+ !n && /* @__PURE__ */ e(x, { ref: a(1), style: h(1), children: /* @__PURE__ */ e("img", { alt: "sponsor-logo", src: Y1 }) }),
876
+ /* @__PURE__ */ r(x, { ref: a(2), style: h(2), children: [
877
+ /* @__PURE__ */ e(M, { children: "Prediction results are in!" }),
878
+ n && /* @__PURE__ */ e(C2, { children: "Featured Groups +" })
879
+ ] }),
880
+ /* @__PURE__ */ r(x, { ref: a(3), style: h(3), children: [
881
+ /* @__PURE__ */ e(M, { children: c }),
882
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(B, { children: [
883
+ /* @__PURE__ */ e("span", { children: "Your Pick:" }),
884
+ " ",
885
+ t == null ? void 0 : t.title
886
+ ] }) })
887
+ ] }),
888
+ o ? /* @__PURE__ */ r(S, { children: [
889
+ /* @__PURE__ */ r(
890
+ x,
891
+ {
892
+ ref: a(4),
893
+ style: { ...h(4), color: "var(--color-sdk-prediction-result-success-text)" },
894
+ children: [
895
+ /* @__PURE__ */ r(M, { children: [
896
+ "Congratulations!",
897
+ /* @__PURE__ */ e("br", {}),
898
+ "You answered correctly."
899
+ ] }),
900
+ /* @__PURE__ */ r(E, { children: [
901
+ /* @__PURE__ */ e(m2, { name: "selected" }),
902
+ /* @__PURE__ */ r(B, { children: [
903
+ /* @__PURE__ */ e("span", { children: "Your Pick:" }),
904
+ " ",
905
+ t == null ? void 0 : t.title
906
+ ] })
907
+ ] })
908
+ ]
2184
909
  }
2185
- }, p.prototype.isNativeMode = function() {
2186
- return this.nativeMode;
2187
- }, p.prototype.doesFocusableExist = function(s) {
2188
- return !!this.focusableComponents[s];
2189
- }, p.prototype.updateRtl = function(s) {
2190
- this.writingDirection = s ? Q.default.RTL : Q.default.LTR;
2191
- }, p;
2192
- }();
2193
- l.SpatialNavigation = new Ee(), l.init = l.SpatialNavigation.init, l.setThrottle = l.SpatialNavigation.setThrottle, l.destroy = l.SpatialNavigation.destroy, l.setKeyMap = l.SpatialNavigation.setKeyMap, l.setFocus = l.SpatialNavigation.setFocus, l.navigateByDirection = l.SpatialNavigation.navigateByDirection, l.pause = l.SpatialNavigation.pause, l.resume = l.SpatialNavigation.resume, l.updateAllLayouts = l.SpatialNavigation.updateAllLayouts, l.getCurrentFocusKey = l.SpatialNavigation.getCurrentFocusKey, l.doesFocusableExist = l.SpatialNavigation.doesFocusableExist, l.updateRtl = l.SpatialNavigation.updateRtl;
2194
- }, 35: function(b, l, g) {
2195
- var C = this && this.__importDefault || function(R) {
2196
- return R && R.__esModule ? R : { default: R };
2197
- };
2198
- Object.defineProperty(l, "__esModule", { value: !0 });
2199
- var y = C(g(119)), S = typeof window < "u" && window.document, O = S ? window.innerWidth : 0, q = S ? window.innerHeight : 0, L = function() {
2200
- function R(x) {
2201
- S && (this.debugCtx = R.createCanvas("sn-debug", "1010", x), this.layoutsCtx = R.createCanvas("sn-layouts", "1000", x), this.writingDirection = x);
2202
- }
2203
- return R.createCanvas = function(x, E, $) {
2204
- var T = document.querySelector("#".concat(x)) || document.createElement("canvas");
2205
- T.setAttribute("id", x), T.setAttribute("dir", $ === y.default.LTR ? "ltr" : "rtl");
2206
- var k = T.getContext("2d");
2207
- return T.style.zIndex = E, T.style.position = "fixed", T.style.top = "0", T.style.left = "0", document.body.appendChild(T), T.width = O, T.height = q, k;
2208
- }, R.prototype.clear = function() {
2209
- S && this.debugCtx.clearRect(0, 0, O, q);
2210
- }, R.prototype.clearLayouts = function() {
2211
- S && this.layoutsCtx.clearRect(0, 0, O, q);
2212
- }, R.prototype.drawLayout = function(x, E, $) {
2213
- if (S) {
2214
- this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(x.left, x.top, x.width, x.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
2215
- var T = this.writingDirection === y.default.LTR ? "left" : "right", k = x[T];
2216
- this.layoutsCtx.fillText(E, k, x.top + 10), this.layoutsCtx.fillText($, k, x.top + 25), this.layoutsCtx.fillText("".concat(T, ": ").concat(k), k, x.top + 40), this.layoutsCtx.fillText("top: ".concat(x.top), k, x.top + 55);
910
+ ),
911
+ /* @__PURE__ */ r(
912
+ x,
913
+ {
914
+ ref: a(5),
915
+ style: { ...h(5), color: "var(--color-sdk-prediction-result-success-text)" },
916
+ children: [
917
+ /* @__PURE__ */ e(W1, { children: I === 5 && /* @__PURE__ */ e(Z2, { delay: 0.5, prefix: "+", suffix: " points", value: t == null ? void 0 : t.points }) }),
918
+ /* @__PURE__ */ r(E, { children: [
919
+ /* @__PURE__ */ e(m2, { name: "selected" }),
920
+ /* @__PURE__ */ r(B, { children: [
921
+ /* @__PURE__ */ e("span", { children: "Your Pick:" }),
922
+ " ",
923
+ t == null ? void 0 : t.title
924
+ ] })
925
+ ] }),
926
+ /* @__PURE__ */ e(u2, { "data-a": "intr", onClick: i, children: /* @__PURE__ */ e(g2, { name: "icon-cross" }) })
927
+ ]
2217
928
  }
2218
- }, R.prototype.drawPoint = function(x, E, $, T) {
2219
- $ === void 0 && ($ = "blue"), T === void 0 && (T = 10), S && (this.debugCtx.strokeStyle = $, this.debugCtx.lineWidth = 3, this.debugCtx.strokeRect(x - T / 2, E - T / 2, T, T));
2220
- }, R;
2221
- }();
2222
- l.default = L;
2223
- }, 119: function(b, l) {
2224
- var g;
2225
- Object.defineProperty(l, "__esModule", { value: !0 }), function(C) {
2226
- C[C.LTR = 0] = "LTR", C[C.RTL = 1] = "RTL";
2227
- }(g || (g = {})), l.default = g;
2228
- }, 607: function(b, l, g) {
2229
- var C = this && this.__createBinding || (Object.create ? function(S, O, q, L) {
2230
- L === void 0 && (L = q);
2231
- var R = Object.getOwnPropertyDescriptor(O, q);
2232
- R && !("get" in R ? !O.__esModule : R.writable || R.configurable) || (R = { enumerable: !0, get: function() {
2233
- return O[q];
2234
- } }), Object.defineProperty(S, L, R);
2235
- } : function(S, O, q, L) {
2236
- L === void 0 && (L = q), S[L] = O[q];
2237
- }), y = this && this.__exportStar || function(S, O) {
2238
- for (var q in S) q === "default" || Object.prototype.hasOwnProperty.call(O, q) || C(O, S, q);
2239
- };
2240
- Object.defineProperty(l, "__esModule", { value: !0 }), y(g(79), l), y(g(445), l), y(g(654), l);
2241
- }, 964: function(b, l) {
2242
- Object.defineProperty(l, "__esModule", { value: !0 }), l.getBoundingClientRect = void 0;
2243
- var g = function(C) {
2244
- for (var y = C.offsetParent, S = C.offsetHeight, O = C.offsetWidth, q = C.offsetLeft, L = C.offsetTop; y && y.nodeType === 1; ) q += y.offsetLeft - y.scrollLeft, L += y.offsetTop - y.scrollTop, y = y.offsetParent;
2245
- return { height: S, left: q, top: L, width: O };
2246
- };
2247
- l.default = function(C) {
2248
- var y = C && C.parentElement;
2249
- if (C && y) {
2250
- var S = g(y), O = g(C), q = O.height, L = O.left, R = O.top, x = O.width;
2251
- return { x: L - S.left, y: R - S.top, width: x, height: q, left: L, top: R, get right() {
2252
- return this.left + this.width;
2253
- }, get bottom() {
2254
- return this.top + this.height;
2255
- } };
2256
- }
2257
- return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2258
- }, l.getBoundingClientRect = function(C) {
2259
- if (C && C.getBoundingClientRect) {
2260
- var y = C.getBoundingClientRect();
2261
- return { x: y.x, y: y.y, width: y.width, height: y.height, left: y.left, top: y.top, get right() {
2262
- return this.left + this.width;
2263
- }, get bottom() {
2264
- return this.top + this.height;
2265
- } };
2266
- }
2267
- return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2268
- };
2269
- }, 445: function(b, l, g) {
2270
- Object.defineProperty(l, "__esModule", { value: !0 }), l.useFocusContext = l.FocusContext = void 0;
2271
- var C = g(156), y = g(654);
2272
- l.FocusContext = (0, C.createContext)(y.ROOT_FOCUS_KEY), l.FocusContext.displayName = "FocusContext", l.useFocusContext = function() {
2273
- return (0, C.useContext)(l.FocusContext);
2274
- };
2275
- }, 79: function(b, l, g) {
2276
- var C = this && this.__importDefault || function(R) {
2277
- return R && R.__esModule ? R : { default: R };
2278
- };
2279
- Object.defineProperty(l, "__esModule", { value: !0 }), l.useFocusable = void 0;
2280
- var y = g(156), S = C(g(604)), O = C(g(461)), q = g(654), L = g(445);
2281
- l.useFocusable = function(R) {
2282
- var x = R === void 0 ? {} : R, E = x.focusable, $ = E === void 0 || E, T = x.saveLastFocusedChild, k = T === void 0 || T, X = x.trackChildren, te = X !== void 0 && X, be = x.autoRestoreFocus, je = be === void 0 || be, Ke = x.forceFocus, Q = Ke !== void 0 && Ke, _e = x.isFocusBoundary, oe = _e !== void 0 && _e, ue = x.focusBoundaryDirections, ce = x.focusKey, ne = x.preferredChildFocusKey, me = x.onEnterPress, Ce = me === void 0 ? S.default : me, Fe = x.onEnterRelease, Se = Fe === void 0 ? S.default : Fe, Ee = x.onArrowPress, p = Ee === void 0 ? function() {
2283
- return !0;
2284
- } : Ee, s = x.onArrowRelease, c = s === void 0 ? S.default : s, f = x.onFocus, d = f === void 0 ? S.default : f, F = x.onBlur, w = F === void 0 ? S.default : F, A = x.extraProps, M = (0, y.useCallback)(function(W) {
2285
- Ce(A, W);
2286
- }, [Ce, A]), G = (0, y.useCallback)(function() {
2287
- Se(A);
2288
- }, [Se, A]), H = (0, y.useCallback)(function(W, Z) {
2289
- return p(W, A, Z);
2290
- }, [A, p]), j = (0, y.useCallback)(function(W) {
2291
- c(W, A);
2292
- }, [c, A]), B = (0, y.useCallback)(function(W, Z) {
2293
- d(W, A, Z);
2294
- }, [A, d]), D = (0, y.useCallback)(function(W, Z) {
2295
- w(W, A, Z);
2296
- }, [A, w]), Y = (0, y.useRef)(null), z = (0, y.useState)(!1), J = z[0], se = z[1], U = (0, y.useState)(!1), V = U[0], fe = U[1], ae = (0, L.useFocusContext)(), ee = (0, y.useMemo)(function() {
2297
- return ce || (0, O.default)("sn:focusable-item-");
2298
- }, [ce]), qe = (0, y.useCallback)(function(W) {
2299
- W === void 0 && (W = {}), q.SpatialNavigation.setFocus(ee, W);
2300
- }, [ee]);
2301
- return (0, y.useEffect)(function() {
2302
- var W = Y.current;
2303
- return q.SpatialNavigation.addFocusable({ focusKey: ee, node: W, parentFocusKey: ae, preferredChildFocusKey: ne, onEnterPress: M, onEnterRelease: G, onArrowPress: H, onArrowRelease: j, onFocus: B, onBlur: D, onUpdateFocus: function(Z) {
2304
- return Z === void 0 && (Z = !1), se(Z);
2305
- }, onUpdateHasFocusedChild: function(Z) {
2306
- return Z === void 0 && (Z = !1), fe(Z);
2307
- }, saveLastFocusedChild: k, trackChildren: te, isFocusBoundary: oe, focusBoundaryDirections: ue, autoRestoreFocus: je, forceFocus: Q, focusable: $ }), function() {
2308
- q.SpatialNavigation.removeFocusable({ focusKey: ee });
2309
- };
2310
- }, []), (0, y.useEffect)(function() {
2311
- var W = Y.current;
2312
- q.SpatialNavigation.updateFocusable(ee, { node: W, preferredChildFocusKey: ne, focusable: $, isFocusBoundary: oe, focusBoundaryDirections: ue, onEnterPress: M, onEnterRelease: G, onArrowPress: H, onArrowRelease: j, onFocus: B, onBlur: D });
2313
- }, [ee, ne, $, oe, ue, M, G, H, j, B, D]), { ref: Y, focusSelf: qe, focused: J, hasFocusedChild: V, focusKey: ee };
2314
- };
2315
- }, 150: function(b) {
2316
- b.exports = t;
2317
- }, 117: function(b) {
2318
- b.exports = n;
2319
- }, 747: function(b) {
2320
- b.exports = a;
2321
- }, 23: function(b) {
2322
- b.exports = i;
2323
- }, 842: function(b) {
2324
- b.exports = o;
2325
- }, 682: function(b) {
2326
- b.exports = u;
2327
- }, 784: function(b) {
2328
- b.exports = v;
2329
- }, 604: function(b) {
2330
- b.exports = h;
2331
- }, 432: function(b) {
2332
- b.exports = m;
2333
- }, 67: function(b) {
2334
- b.exports = _;
2335
- }, 461: function(b) {
2336
- b.exports = I;
2337
- }, 156: function(b) {
2338
- b.exports = P;
2339
- } }, K = {};
2340
- return function b(l) {
2341
- var g = K[l];
2342
- if (g !== void 0) return g.exports;
2343
- var C = K[l] = { exports: {} };
2344
- return N[l].call(C.exports, C, C.exports, b), C.exports;
2345
- }(607);
2346
- }();
2347
- });
2348
- })(Wi);
2349
- var Pf = Wi.exports;
929
+ )
930
+ ] }) : /* @__PURE__ */ r(x, { ref: a(4), style: h(4), children: [
931
+ /* @__PURE__ */ r(M, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
932
+ "Better luck next time!",
933
+ /* @__PURE__ */ e("br", {}),
934
+ "Correct: ",
935
+ l,
936
+ "."
937
+ ] }),
938
+ /* @__PURE__ */ r(E, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
939
+ /* @__PURE__ */ e(P1, { name: "circleClose" }),
940
+ /* @__PURE__ */ r(B, { children: [
941
+ /* @__PURE__ */ e("span", { children: "Your Pick:" }),
942
+ " ",
943
+ t == null ? void 0 : t.title
944
+ ] })
945
+ ] }),
946
+ /* @__PURE__ */ e(u2, { "data-a": "intr", onClick: i, children: /* @__PURE__ */ e(g2, { name: "icon-cross" }) })
947
+ ] })
948
+ ]
949
+ }
950
+ ) });
951
+ }, me = (i) => {
952
+ const [t, n] = T(!1), [o, l] = T(!1), c = Z(null), p = N(() => {
953
+ l(!0), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
954
+ l(!1);
955
+ }, 1e3);
956
+ }, []), d = N(async (C) => {
957
+ n(!0);
958
+ const I = C.map(
959
+ (_) => new Promise((L, a) => {
960
+ const h = new Image();
961
+ h.onload = () => L(_), h.onerror = () => a(), h.src = _;
962
+ })
963
+ );
964
+ await Promise.allSettled(I), n(!1);
965
+ }, []);
966
+ return V(() => {
967
+ i && (p(), d(i));
968
+ }, [i, p, d]), { loading: t, throttled: o };
969
+ }, J1 = /* @__PURE__ */ s("div")({
970
+ name: "Container",
971
+ class: "cl51m2q",
972
+ propsAsIs: !1
973
+ }), X1 = /* @__PURE__ */ s("img")({
974
+ name: "Avatar",
975
+ class: "a2yhhhr",
976
+ propsAsIs: !1
977
+ }), e3 = /* @__PURE__ */ s("div")({
978
+ name: "AvatarPlaceholder",
979
+ class: "a1dtxxlr",
980
+ propsAsIs: !1
981
+ }), s3 = /* @__PURE__ */ s("div")({
982
+ name: "Content",
983
+ class: "c12clm3w",
984
+ propsAsIs: !1
985
+ }), t3 = /* @__PURE__ */ s("span")({
986
+ name: "Name",
987
+ class: "n14lctn7",
988
+ propsAsIs: !1
989
+ }), i3 = ({ avatar: i, name: t }) => /* @__PURE__ */ r(J1, { children: [
990
+ i && /* @__PURE__ */ e(X1, { src: i }),
991
+ !i && /* @__PURE__ */ e(e3, { children: f2(t || "") }),
992
+ /* @__PURE__ */ r(s3, { children: [
993
+ /* @__PURE__ */ r(t3, { children: [
994
+ t,
995
+ " "
996
+ ] }),
997
+ "is waiting for you!"
998
+ ] })
999
+ ] }), n3 = /* @__PURE__ */ s("div")({
1000
+ name: "Container",
1001
+ class: "c1htq1lb",
1002
+ propsAsIs: !1
1003
+ }), r3 = /* @__PURE__ */ s("div")({
1004
+ name: "Graphic",
1005
+ class: "gjyzpp7",
1006
+ propsAsIs: !1
1007
+ }), a3 = /* @__PURE__ */ s("img")({
1008
+ name: "GraphicImage",
1009
+ class: "g16mldgz",
1010
+ propsAsIs: !1
1011
+ }), o3 = /* @__PURE__ */ s("div")({
1012
+ name: "Headline",
1013
+ class: "h69js65",
1014
+ propsAsIs: !1
1015
+ }), l3 = /* @__PURE__ */ s("div")({
1016
+ name: "TaglineContainer",
1017
+ class: "tmm7qmo",
1018
+ propsAsIs: !1
1019
+ }), c3 = /* @__PURE__ */ s("div")({
1020
+ name: "Tagline",
1021
+ class: "t17knuw2",
1022
+ propsAsIs: !1
1023
+ }), d3 = /* @__PURE__ */ s("div")({
1024
+ name: "Content",
1025
+ class: "c1b74psg",
1026
+ propsAsIs: !1
1027
+ }), p3 = /* @__PURE__ */ s("div")({
1028
+ name: "StepsContainer",
1029
+ class: "s1y99ug7",
1030
+ propsAsIs: !1
1031
+ }), h3 = /* @__PURE__ */ s("span")({
1032
+ name: "StepIndicator",
1033
+ class: "sgf3v5n",
1034
+ propsAsIs: !1
1035
+ }), C3 = /* @__PURE__ */ s("div")({
1036
+ name: "InvitingUserWrap",
1037
+ class: "i1sj6gn8",
1038
+ propsAsIs: !1
1039
+ }), m3 = ({
1040
+ loading: i,
1041
+ steps: t,
1042
+ currentStep: n,
1043
+ inviterName: o
1044
+ }) => {
1045
+ const { headline: l, tagline: c } = t[n];
1046
+ return /* @__PURE__ */ r(n3, { children: [
1047
+ c && /* @__PURE__ */ e(l3, { children: /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ e(c3, { children: c }) }) }),
1048
+ /* @__PURE__ */ r(d3, { "data-welcome-screen": n === 0, children: [
1049
+ /* @__PURE__ */ e(r3, { children: /* @__PURE__ */ e(z, { loading: i, children: t.map(({ graphicSrc: p }, d) => /* @__PURE__ */ e(a3, { src: p, "data-active": n === d })) }) }),
1050
+ l && /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ e(o3, { children: l }) })
1051
+ ] }),
1052
+ o && n === 0 && /* @__PURE__ */ e(C3, { children: /* @__PURE__ */ e(i3, { name: o }) }),
1053
+ /* @__PURE__ */ e(p3, { style: i ? { visibility: "hidden" } : {}, children: Array.from({ length: t.length }).map((p, d) => /* @__PURE__ */ e(h3, { "data-active": n === d }, d)) })
1054
+ ] });
1055
+ }, u3 = /* @__PURE__ */ s("div")({
1056
+ name: "Container",
1057
+ class: "cm0bev",
1058
+ propsAsIs: !1
1059
+ }), g3 = /* @__PURE__ */ s("div")({
1060
+ name: "Content",
1061
+ class: "ce7x737",
1062
+ propsAsIs: !1
1063
+ }), f3 = /* @__PURE__ */ s("div")({
1064
+ name: "Title",
1065
+ class: "tc2tor6",
1066
+ propsAsIs: !1
1067
+ }), v3 = /* @__PURE__ */ s("div")({
1068
+ name: "RulesList",
1069
+ class: "r1k5klql",
1070
+ propsAsIs: !1
1071
+ }), I3 = /* @__PURE__ */ s("div")({
1072
+ name: "RulesItem",
1073
+ class: "r1tf3ft2",
1074
+ propsAsIs: !1
1075
+ }), A3 = /* @__PURE__ */ s("div")({
1076
+ name: "RuleIcon",
1077
+ class: "rwpvg1k",
1078
+ propsAsIs: !1
1079
+ }), L3 = /* @__PURE__ */ s("div")({
1080
+ name: "RuleText",
1081
+ class: "rbxiag0",
1082
+ propsAsIs: !1
1083
+ }), _3 = /* @__PURE__ */ s("button")({
1084
+ name: "TermsButton",
1085
+ class: "t6cyrry",
1086
+ propsAsIs: !1
1087
+ }), w3 = ({
1088
+ rules: i,
1089
+ rulesTitle: t,
1090
+ termsText: n,
1091
+ primaryColor: o,
1092
+ openTerms: l
1093
+ }) => /* @__PURE__ */ r(u3, { children: [
1094
+ /* @__PURE__ */ r(g3, { children: [
1095
+ /* @__PURE__ */ e(f3, { children: t }),
1096
+ /* @__PURE__ */ e(v3, { children: i == null ? void 0 : i.map(({ label: c, icon: p }, d) => /* @__PURE__ */ r(I3, { children: [
1097
+ p && /* @__PURE__ */ e(A3, { style: { backgroundColor: o }, children: /* @__PURE__ */ e(H, { name: p, "data-icon": p }) }),
1098
+ /* @__PURE__ */ e(L3, { children: c })
1099
+ ] }, d)) })
1100
+ ] }),
1101
+ n && /* @__PURE__ */ e(_3, { "data-a": "intr", onClick: l, children: "See Terms and Conditions" })
1102
+ ] }), $3 = /* @__PURE__ */ s("div")({
1103
+ name: "Container",
1104
+ class: "cj0g35h",
1105
+ propsAsIs: !1
1106
+ }), b3 = /* @__PURE__ */ s("div")({
1107
+ name: "Content",
1108
+ class: "c1xkhrbn",
1109
+ propsAsIs: !1
1110
+ }), y3 = /* @__PURE__ */ s("div")({
1111
+ name: "Title",
1112
+ class: "tifzb8b",
1113
+ propsAsIs: !1
1114
+ }), T3 = /* @__PURE__ */ s("div")({
1115
+ name: "ScrollingText",
1116
+ class: "stduw5c",
1117
+ propsAsIs: !1
1118
+ }), H3 = ({ termsTitle: i, termsText: t }) => /* @__PURE__ */ e($3, { children: /* @__PURE__ */ r(b3, { children: [
1119
+ /* @__PURE__ */ e(y3, { children: i }),
1120
+ /* @__PURE__ */ e(T3, { children: t })
1121
+ ] }) }), V3 = /* @__PURE__ */ s("button")({
1122
+ name: "SButton",
1123
+ class: "s1nve60q",
1124
+ propsAsIs: !1
1125
+ }), k3 = /* @__PURE__ */ s("span")({
1126
+ name: "ButtonLabel",
1127
+ class: "b1xoswwx",
1128
+ propsAsIs: !1
1129
+ }), z3 = ({ disabled: i, variant: t = "primary", onClick: n, children: o, ...l }) => /* @__PURE__ */ e(V3, { "data-a": "intr", onClick: n, disabled: i, "data-variant": t, ...l, children: /* @__PURE__ */ e(k3, { children: o }) }), x3 = /* @__PURE__ */ s("div")({
1130
+ name: "Container",
1131
+ class: "c18uddbs",
1132
+ propsAsIs: !1
1133
+ }), R3 = /* @__PURE__ */ s("div")({
1134
+ name: "Content",
1135
+ class: "cvcfjf6",
1136
+ propsAsIs: !1
1137
+ }), F3 = /* @__PURE__ */ s("div")({
1138
+ name: "OnboardingHeader",
1139
+ class: "o1ie27lw",
1140
+ propsAsIs: !1
1141
+ }), S3 = /* @__PURE__ */ s("button")({
1142
+ name: "CloseBtn",
1143
+ class: "c15cjkwi",
1144
+ propsAsIs: !1
1145
+ }), M3 = () => H, q3 = /* @__PURE__ */ s(M3())({
1146
+ name: "IconClose",
1147
+ class: "i1mavjt2",
1148
+ propsAsIs: !0
1149
+ }), E3 = /* @__PURE__ */ s("div")({
1150
+ name: "OnboardingFooter",
1151
+ class: "o1x0dyzv",
1152
+ propsAsIs: !1
1153
+ }), B3 = () => z3, N3 = /* @__PURE__ */ s(B3())({
1154
+ name: "OnboardingActionBtn",
1155
+ class: "o1jfi9c3",
1156
+ propsAsIs: !0
1157
+ }), F = {
1158
+ steps: !1,
1159
+ rules: !1,
1160
+ inviteCard: !1
1161
+ }, ue = ({
1162
+ gamification: i,
1163
+ steps: t,
1164
+ rules: n,
1165
+ rulesBtnLabel: o,
1166
+ rulesTitle: l,
1167
+ termsTitle: c,
1168
+ termsText: p,
1169
+ primaryColor: d,
1170
+ inviteLink: C,
1171
+ inviteCardTitle: I,
1172
+ inviteCardSubtext: _,
1173
+ inviteCardBtnLabel: L,
1174
+ loading: a,
1175
+ inviterName: h,
1176
+ sdk: g,
1177
+ onClose: f
1178
+ }) => {
1179
+ const [v, u] = T(0), [m, $] = T(!1), [A, y] = T(F);
1180
+ V(() => {
1181
+ t != null && t.length ? y({ ...F, steps: !0 }) : n != null && n.length ? y({ ...F, rules: !0 }) : y({ ...F, inviteCard: !0 });
1182
+ }, []);
1183
+ const _2 = H2(() => A.steps && v === 0 ? "Continue" : A.rules ? m || !o ? "Got it" : o : A.inviteCard ? L || "Play Now" : "Next", [A, v, m, o, L]), w2 = N(() => {
1184
+ t != null && t.length && v < t.length - 1 ? u((O) => ++O) : n != null && n.length && A.steps ? y({ ...F, rules: !0 }) : A.rules && y({ ...F, inviteCard: !0 });
1185
+ }, [v, t == null ? void 0 : t.length, n == null ? void 0 : n.length, A, u, y]), $2 = async () => {
1186
+ A.inviteCard ? await i.onboardingStatus.submitInplay() : A.rules && m ? $(!1) : w2();
1187
+ };
1188
+ return V(() => {
1189
+ !a && h && g.inviteDisplayed();
1190
+ }, [a, h, g]), /* @__PURE__ */ e(_0, { children: ({ width: O, height: Q }) => /* @__PURE__ */ r(x3, { style: { width: O, height: Q, maxHeight: Q }, children: [
1191
+ /* @__PURE__ */ e(F3, { children: /* @__PURE__ */ e(S3, { "data-a": "intr", onClick: f, children: /* @__PURE__ */ e(q3, { name: "icon-close-btn-gray" }) }) }),
1192
+ /* @__PURE__ */ r(R3, { children: [
1193
+ A.steps && (t == null ? void 0 : t.length) && /* @__PURE__ */ e(
1194
+ m3,
1195
+ {
1196
+ loading: a,
1197
+ steps: t,
1198
+ currentStep: v,
1199
+ inviterName: h
1200
+ }
1201
+ ),
1202
+ A.rules && !m && /* @__PURE__ */ e(
1203
+ w3,
1204
+ {
1205
+ rules: n,
1206
+ rulesTitle: l,
1207
+ termsText: p,
1208
+ primaryColor: d,
1209
+ openTerms: () => $(!0)
1210
+ }
1211
+ ),
1212
+ A.rules && m && /* @__PURE__ */ e(H3, { termsTitle: c, termsText: p }),
1213
+ A.inviteCard && /* @__PURE__ */ e(
1214
+ M0,
1215
+ {
1216
+ inviteLink: C,
1217
+ inviteCardTitle: I,
1218
+ inviteCardSubtext: _,
1219
+ primaryColor: d
1220
+ }
1221
+ )
1222
+ ] }),
1223
+ /* @__PURE__ */ e(E3, { children: /* @__PURE__ */ e(z, { loading: a, style: { width: "100%" }, children: /* @__PURE__ */ e(N3, { "data-a": "intr", onClick: $2, children: _2 }) }) })
1224
+ ] }) });
1225
+ }, Z3 = /* @__PURE__ */ s("button")({
1226
+ name: "Container",
1227
+ class: "crkmfw1",
1228
+ propsAsIs: !1
1229
+ }), O3 = /* @__PURE__ */ s("div")({
1230
+ name: "Content",
1231
+ class: "c11awpy4",
1232
+ propsAsIs: !1
1233
+ }), W3 = /* @__PURE__ */ s("span")({
1234
+ name: "Title",
1235
+ class: "t154z7mh",
1236
+ propsAsIs: !1
1237
+ }), ge = ({ title: i, onClick: t, className: n, style: o }) => /* @__PURE__ */ e(Z3, { "data-a": "intr", onClick: t, className: n, style: o, children: /* @__PURE__ */ r(O3, { "data-a": "intr", children: [
1238
+ /* @__PURE__ */ e(H, { "data-a": "intr", name: "iconUp" }),
1239
+ i && /* @__PURE__ */ e(W3, { "data-a": "intr", children: i })
1240
+ ] }) });
2350
1241
  export {
2351
- Ef as a,
2352
- Re as c,
2353
- Pf as d,
2354
- Sf as g
1242
+ Ce as D,
1243
+ me as I,
1244
+ M0 as M,
1245
+ de as T,
1246
+ A0 as a,
1247
+ oe as c,
1248
+ ge as f,
1249
+ pe as k,
1250
+ le as p,
1251
+ ue as t,
1252
+ he as w,
1253
+ ce as z
2355
1254
  };