@streamlayer/react 1.22.3 → 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 -2339
  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 -17
  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
@@ -1,2343 +1,183 @@
1
- import vs from "react";
2
- var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function Pf(e) {
4
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
- }
6
- function Mf(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);
12
- };
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 ki = { exports: {} }, He, Rn;
26
- function de() {
27
- if (Rn) return He;
28
- Rn = 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, wn;
36
- function Ui() {
37
- if (wn) return $e;
38
- wn = 1;
39
- var e = typeof Re == "object" && Re && Re.Object === Object && Re;
40
- return $e = e, $e;
41
- }
42
- var ke, Tn;
43
- function ie() {
44
- if (Tn) return ke;
45
- Tn = 1;
46
- var e = Ui(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
47
- return ke = t, ke;
48
- }
49
- var Ue, An;
50
- function ps() {
51
- if (An) return Ue;
52
- An = 1;
53
- var e = ie(), r = function() {
54
- return e.Date.now();
55
- };
56
- return Ue = r, Ue;
57
- }
58
- var Ge, On;
59
- function ys() {
60
- if (On) return Ge;
61
- On = 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 Ge = r, Ge;
69
- }
70
- var ze, xn;
71
- function gs() {
72
- if (xn) return ze;
73
- xn = 1;
74
- var e = ys(), 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, Kn;
81
- function we() {
82
- if (Kn) return We;
83
- Kn = 1;
84
- var e = ie(), r = e.Symbol;
85
- return We = r, We;
86
- }
87
- var Ye, Sn;
88
- function bs() {
89
- if (Sn) return Ye;
90
- Sn = 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, En;
105
- function _s() {
106
- if (En) return Xe;
107
- En = 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, Pn;
115
- function Te() {
116
- if (Pn) return Je;
117
- Pn = 1;
118
- var e = we(), r = bs(), t = _s(), 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, Mn;
125
- function ve() {
126
- if (Mn) return Ze;
127
- Mn = 1;
128
- function e(r) {
129
- return r != null && typeof r == "object";
130
- }
131
- return Ze = e, Ze;
132
- }
133
- var Qe, In;
134
- function Ae() {
135
- if (In) return Qe;
136
- In = 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, Dn;
144
- function ms() {
145
- if (Dn) return Ve;
146
- Dn = 1;
147
- var e = gs(), 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, Ln;
166
- function Gi() {
167
- if (Ln) return er;
168
- Ln = 1;
169
- var e = de(), r = ps(), t = ms(), 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 U = m, X = _;
177
- return m = _ = void 0, b = T, P = u.apply(X, U), 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 U = T - K, X = T - b, te = v - U;
184
- return g ? i(te, I - X) : te;
185
- }
186
- function q(T) {
187
- var U = T - K, X = T - b;
188
- return K === void 0 || U >= v || U < 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(), U = q(T);
207
- if (m = arguments, _ = this, K = T, U) {
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, Nn;
220
- function zi() {
221
- if (Nn) return rr;
222
- Nn = 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 Cs = ie(), Fs = Cs["__core-js_shared__"], qs = Fs, tr = qs, Bn = function() {
233
- var e = /[^.]+$/.exec(tr && tr.keys && tr.keys.IE_PROTO || "");
234
- return e ? "Symbol(src)_1." + e : "";
235
- }();
236
- function Rs(e) {
237
- return !!Bn && Bn in e;
238
- }
239
- var ws = Rs, Ts = Function.prototype, As = Ts.toString;
240
- function Os(e) {
241
- if (e != null) {
242
- try {
243
- return As.call(e);
244
- } catch {
245
- }
246
- try {
247
- return e + "";
248
- } catch {
249
- }
250
- }
251
- return "";
252
- }
253
- var Wi = Os, xs = zi(), Ks = ws, Ss = de(), Es = Wi, Ps = /[\\^$.*+?()[\]{}|]/g, Ms = /^\[object .+?Constructor\]$/, Is = Function.prototype, Ds = Object.prototype, Ls = Is.toString, Ns = Ds.hasOwnProperty, Bs = RegExp(
254
- "^" + Ls.call(Ns).replace(Ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
255
- );
256
- function js(e) {
257
- if (!Ss(e) || Ks(e))
258
- return !1;
259
- var r = xs(e) ? Bs : Ms;
260
- return r.test(Es(e));
261
- }
262
- var Hs = js;
263
- function $s(e, r) {
264
- return e == null ? void 0 : e[r];
265
- }
266
- var ks = $s, Us = Hs, Gs = ks;
267
- function zs(e, r) {
268
- var t = Gs(e, r);
269
- return Us(t) ? t : void 0;
270
- }
271
- var he = zs, nr, jn;
272
- function Ie() {
273
- if (jn) return nr;
274
- jn = 1;
275
- var e = he, r = e(Object, "create");
276
- return nr = r, nr;
277
- }
278
- var ar, Hn;
279
- function Ws() {
280
- if (Hn) return ar;
281
- Hn = 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, $n;
289
- function Ys() {
290
- if ($n) return ir;
291
- $n = 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, kn;
299
- function Xs() {
300
- if (kn) return sr;
301
- kn = 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, Un;
314
- function Js() {
315
- if (Un) return or;
316
- Un = 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, Gn;
325
- function Zs() {
326
- if (Gn) return ur;
327
- Gn = 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, zn;
336
- function Qs() {
337
- if (zn) return cr;
338
- zn = 1;
339
- var e = Ws(), r = Ys(), t = Xs(), n = Js(), a = Zs();
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 Vs() {
350
- this.__data__ = [], this.size = 0;
351
- }
352
- var eo = Vs, fr, Wn;
353
- function sn() {
354
- if (Wn) return fr;
355
- Wn = 1;
356
- function e(r, t) {
357
- return r === t || r !== r && t !== t;
358
- }
359
- return fr = e, fr;
360
- }
361
- var ro = sn();
362
- function to(e, r) {
363
- for (var t = e.length; t--; )
364
- if (ro(e[t][0], r))
365
- return t;
366
- return -1;
367
- }
368
- var De = to, no = De, ao = Array.prototype, io = ao.splice;
369
- function so(e) {
370
- var r = this.__data__, t = no(r, e);
371
- if (t < 0)
372
- return !1;
373
- var n = r.length - 1;
374
- return t == n ? r.pop() : io.call(r, t, 1), --this.size, !0;
375
- }
376
- var oo = so, uo = De;
377
- function co(e) {
378
- var r = this.__data__, t = uo(r, e);
379
- return t < 0 ? void 0 : r[t][1];
380
- }
381
- var fo = co, lo = De;
382
- function ho(e) {
383
- return lo(this.__data__, e) > -1;
384
- }
385
- var vo = ho, po = De;
386
- function yo(e, r) {
387
- var t = this.__data__, n = po(t, e);
388
- return n < 0 ? (++this.size, t.push([e, r])) : t[n][1] = r, this;
389
- }
390
- var go = yo, bo = eo, _o = oo, mo = fo, Co = vo, Fo = go;
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 = bo;
399
- pe.prototype.delete = _o;
400
- pe.prototype.get = mo;
401
- pe.prototype.has = Co;
402
- pe.prototype.set = Fo;
403
- var Le = pe, qo = he, Ro = ie(), wo = qo(Ro, "Map"), on = wo, lr, Yn;
404
- function To() {
405
- if (Yn) return lr;
406
- Yn = 1;
407
- var e = Qs(), r = Le, t = on;
408
- function n() {
409
- this.size = 0, this.__data__ = {
410
- hash: new e(),
411
- map: new (t || r)(),
412
- string: new e()
413
- };
414
- }
415
- return lr = n, lr;
416
- }
417
- var dr, Xn;
418
- function Ao() {
419
- if (Xn) return dr;
420
- Xn = 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, Jn;
428
- function Ne() {
429
- if (Jn) return hr;
430
- Jn = 1;
431
- var e = Ao();
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, Zn;
439
- function Oo() {
440
- if (Zn) return vr;
441
- Zn = 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, Qn;
450
- function xo() {
451
- if (Qn) return pr;
452
- Qn = 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, Vn;
460
- function Ko() {
461
- if (Vn) return yr;
462
- Vn = 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, ea;
470
- function So() {
471
- if (ea) return gr;
472
- ea = 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, ra;
481
- function un() {
482
- if (ra) return br;
483
- ra = 1;
484
- var e = To(), r = Oo(), t = xo(), n = Ko(), a = So();
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]);
490
- }
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, ta;
495
- function Eo() {
496
- if (ta) return _r;
497
- ta = 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, na;
505
- function Po() {
506
- if (na) return mr;
507
- na = 1;
508
- function e(r) {
509
- return this.__data__.has(r);
510
- }
511
- return mr = e, mr;
512
- }
513
- var Cr, aa;
514
- function Yi() {
515
- if (aa) return Cr;
516
- aa = 1;
517
- var e = un(), r = Eo(), t = Po();
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, ia;
526
- function Mo() {
527
- if (ia) return Fr;
528
- ia = 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, sa;
538
- function Io() {
539
- if (sa) return qr;
540
- sa = 1;
541
- function e(r) {
542
- return r !== r;
543
- }
544
- return qr = e, qr;
545
- }
546
- var Rr, oa;
547
- function Do() {
548
- if (oa) return Rr;
549
- oa = 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, ua;
559
- function Lo() {
560
- if (ua) return wr;
561
- ua = 1;
562
- var e = Mo(), r = Io(), t = Do();
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, ca;
569
- function No() {
570
- if (ca) return Tr;
571
- ca = 1;
572
- var e = Lo();
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, fa;
580
- function Bo() {
581
- if (fa) return Ar;
582
- fa = 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 jo(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 cn = jo, Or, la;
597
- function fn() {
598
- if (la) return Or;
599
- la = 1;
600
- function e(r) {
601
- return function(t) {
602
- return r(t);
603
- };
604
- }
605
- return Or = e, Or;
606
- }
607
- var xr, da;
608
- function Xi() {
609
- if (da) return xr;
610
- da = 1;
611
- function e(r, t) {
612
- return r.has(t);
613
- }
614
- return xr = e, xr;
615
- }
616
- var Kr, ha;
617
- function Ho() {
618
- if (ha) return Kr;
619
- ha = 1;
620
- var e = Yi(), r = No(), t = Bo(), n = cn, a = fn(), i = Xi(), 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);
635
- }
636
- return b;
637
- }
638
- return Kr = u, Kr;
639
- }
640
- var Sr, va;
641
- function Ji() {
642
- if (va) return Sr;
643
- va = 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, pa;
652
- function $o() {
653
- if (pa) return Er;
654
- pa = 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, ya;
662
- function ln() {
663
- if (ya) return Pr;
664
- ya = 1;
665
- var e = $o(), 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, ga;
673
- function re() {
674
- if (ga) return Mr;
675
- ga = 1;
676
- var e = Array.isArray;
677
- return Mr = e, Mr;
678
- }
679
- var Ir, ba;
680
- function ko() {
681
- if (ba) return Ir;
682
- ba = 1;
683
- var e = we(), r = ln(), 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, _a;
690
- function Zi() {
691
- if (_a) return Dr;
692
- _a = 1;
693
- var e = Ji(), r = ko();
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, ma;
705
- function Oe() {
706
- if (ma) return Lr;
707
- ma = 1;
708
- function e(r) {
709
- return r;
710
- }
711
- return Lr = e, Lr;
712
- }
713
- var Nr, Ca;
714
- function Uo() {
715
- if (Ca) return Nr;
716
- Ca = 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, Fa;
733
- function Go() {
734
- if (Fa) return Br;
735
- Fa = 1;
736
- var e = Uo(), 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, qa;
750
- function zo() {
751
- if (qa) return jr;
752
- qa = 1;
753
- function e(r) {
754
- return function() {
755
- return r;
756
- };
757
- }
758
- return jr = e, jr;
759
- }
760
- var Hr, Ra;
761
- function Wo() {
762
- if (Ra) return Hr;
763
- Ra = 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, wa;
774
- function Yo() {
775
- if (wa) return $r;
776
- wa = 1;
777
- var e = zo(), r = Wo(), 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 kr, Ta;
788
- function Xo() {
789
- if (Ta) return kr;
790
- Ta = 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);
802
- };
803
- }
804
- return kr = n, kr;
805
- }
806
- var Ur, Aa;
807
- function Jo() {
808
- if (Aa) return Ur;
809
- Aa = 1;
810
- var e = Yo(), r = Xo(), t = r(e);
811
- return Ur = t, Ur;
812
- }
813
- var Gr, Oa;
814
- function Qi() {
815
- if (Oa) return Gr;
816
- Oa = 1;
817
- var e = Oe(), r = Go(), t = Jo();
818
- function n(a, i) {
819
- return t(r(a, i, e), a + "");
820
- }
821
- return Gr = n, Gr;
822
- }
823
- var zr, xa;
824
- function dn() {
825
- if (xa) return zr;
826
- xa = 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, Ka;
834
- function xe() {
835
- if (Ka) return Wr;
836
- Ka = 1;
837
- var e = zi(), r = dn();
838
- function t(n) {
839
- return n != null && r(n.length) && !e(n);
840
- }
841
- return Wr = t, Wr;
842
- }
843
- var Yr, Sa;
844
- function Zo() {
845
- if (Sa) return Yr;
846
- Sa = 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, Ea;
854
- function Qo() {
855
- if (Ea) return Xr;
856
- Ea = 1;
857
- var e = Ho(), r = Zi(), t = Qi(), n = Zo(), 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, Pa;
863
- function Vi() {
864
- if (Pa) return Jr;
865
- Pa = 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, Ma;
876
- function Vo() {
877
- if (Ma) return Zr;
878
- Ma = 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;
885
- }
886
- return t;
887
- };
888
- }
889
- return Zr = e, Zr;
890
- }
891
- var Qr, Ia;
892
- function eu() {
893
- if (Ia) return Qr;
894
- Ia = 1;
895
- var e = Vo(), r = e();
896
- return Qr = r, Qr;
897
- }
898
- var Vr, Da;
899
- function ru() {
900
- if (Da) return Vr;
901
- Da = 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 tu() {
911
- return !1;
912
- }
913
- var nu = tu;
914
- Pe.exports;
915
- (function(e, r) {
916
- var t = ie(), n = nu, 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 es = Pe.exports, et, La;
920
- function hn() {
921
- if (La) return et;
922
- La = 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, Na;
931
- function au() {
932
- if (Na) return rt;
933
- Na = 1;
934
- var e = Te(), r = dn(), 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 = Ui(), 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
- }
950
- }();
951
- e.exports = u;
952
- })(Me, Me.exports);
953
- var iu = Me.exports, tt, Ba;
954
- function rs() {
955
- if (Ba) return tt;
956
- Ba = 1;
957
- var e = au(), r = fn(), t = iu, n = t && t.isTypedArray, a = n ? r(n) : e;
958
- return tt = a, tt;
959
- }
960
- var nt, ja;
961
- function su() {
962
- if (ja) return nt;
963
- ja = 1;
964
- var e = ru(), r = ln(), t = re(), n = es, a = hn(), i = rs(), 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;
974
- }
975
- return nt = v, nt;
976
- }
977
- var ou = Object.prototype;
978
- function uu(e) {
979
- var r = e && e.constructor, t = typeof r == "function" && r.prototype || ou;
980
- return e === t;
981
- }
982
- var cu = uu;
983
- function fu(e, r) {
984
- return function(t) {
985
- return e(r(t));
986
- };
987
- }
988
- var lu = fu, at, Ha;
989
- function du() {
990
- if (Ha) return at;
991
- Ha = 1;
992
- var e = lu, r = e(Object.keys, Object);
993
- return at = r, at;
994
- }
995
- var it, $a;
996
- function hu() {
997
- if ($a) return it;
998
- $a = 1;
999
- var e = cu, r = du(), 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, ka;
1011
- function vn() {
1012
- if (ka) return st;
1013
- ka = 1;
1014
- var e = su(), r = hu(), t = xe();
1015
- function n(a) {
1016
- return t(a) ? e(a) : r(a);
1017
- }
1018
- return st = n, st;
1019
- }
1020
- var ot, Ua;
1021
- function pn() {
1022
- if (Ua) return ot;
1023
- Ua = 1;
1024
- var e = eu(), r = vn();
1025
- function t(n, a) {
1026
- return n && e(n, a, r);
1027
- }
1028
- return ot = t, ot;
1029
- }
1030
- var ut, Ga;
1031
- function vu() {
1032
- if (Ga) return ut;
1033
- Ga = 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, za;
1049
- function yn() {
1050
- if (za) return ct;
1051
- za = 1;
1052
- var e = pn(), r = vu(), t = r(e);
1053
- return ct = t, ct;
1054
- }
1055
- var ft, Wa;
1056
- function pu() {
1057
- if (Wa) return ft;
1058
- Wa = 1;
1059
- var e = yn();
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 yu = Le;
1069
- function gu() {
1070
- this.__data__ = new yu(), this.size = 0;
1071
- }
1072
- var bu = gu;
1073
- function _u(e) {
1074
- var r = this.__data__, t = r.delete(e);
1075
- return this.size = r.size, t;
1076
- }
1077
- var mu = _u;
1078
- function Cu(e) {
1079
- return this.__data__.get(e);
1080
- }
1081
- var Fu = Cu;
1082
- function qu(e) {
1083
- return this.__data__.has(e);
1084
- }
1085
- var Ru = qu, wu = Le, Tu = on, Au = un(), Ou = 200;
1086
- function xu(e, r) {
1087
- var t = this.__data__;
1088
- if (t instanceof wu) {
1089
- var n = t.__data__;
1090
- if (!Tu || n.length < Ou - 1)
1091
- return n.push([e, r]), this.size = ++t.size, this;
1092
- t = this.__data__ = new Au(n);
1093
- }
1094
- return t.set(e, r), this.size = t.size, this;
1095
- }
1096
- var Ku = xu, Su = Le, Eu = bu, Pu = mu, Mu = Fu, Iu = Ru, Du = Ku;
1097
- function ye(e) {
1098
- var r = this.__data__ = new Su(e);
1099
- this.size = r.size;
1100
- }
1101
- ye.prototype.clear = Eu;
1102
- ye.prototype.delete = Pu;
1103
- ye.prototype.get = Mu;
1104
- ye.prototype.has = Iu;
1105
- ye.prototype.set = Du;
1106
- var ts = ye, lt, Ya;
1107
- function Lu() {
1108
- if (Ya) return lt;
1109
- Ya = 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, Xa;
1119
- function ns() {
1120
- if (Xa) return dt;
1121
- Xa = 1;
1122
- var e = Yi(), r = Lu(), t = Xi(), 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;
1
+ import { s } from "./sl-types.js";
2
+ import { Q as n } from "./useStreamLayerApp2.js";
3
+ import { jsxs as a, jsx as i, Fragment as O } from "react/jsx-runtime";
4
+ import { memo as b, useMemo as x } from "react";
5
+ import { E as C } from "./index8.js";
6
+ import { B as H } from "./index4.js";
7
+ const ae = {
8
+ [n.TWEET]: { label: "Insight", iconName: "icon-insight" },
9
+ [n.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
10
+ [n.UNSET]: void 0,
11
+ [n.FACTOID]: { label: "Insight", iconName: "icon-insight" },
12
+ [n.POLL]: { label: "Poll", iconName: "icon-poll" },
13
+ [n.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
14
+ [n.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
15
+ }, ne = {
16
+ [n.TWEET]: "Learn more",
17
+ [n.FACTOID]: "Learn more",
18
+ [n.POLL]: "Answer",
19
+ [n.TRIVIA]: "Answer",
20
+ [n.PREDICTION]: "Answer",
21
+ [n.PROMOTION]: "",
22
+ [n.UNSET]: ""
23
+ }, le = (t) => t.split(/\s+/).map((l) => l[0]).join("").toUpperCase(), oe = (t) => t ? t.toLocaleString("en-US") : "0", P = (t) => {
24
+ const l = new Date(t);
25
+ if (!l)
26
+ return "";
27
+ const m = /* @__PURE__ */ new Date(), o = Math.floor(m.getTime() - l.getTime());
28
+ return o < 6e4 ? `${Math.floor(o / 1e3)}s` : o < 36e5 ? `${Math.floor(o / 6e4)}m` : o < 864e5 ? `${Math.floor(o / 36e5)}h` : l.getFullYear() === m.getFullYear() ? `${l.toLocaleDateString("en-US", {
29
+ month: "short",
30
+ day: "numeric"
31
+ })}` : `${l.toLocaleDateString("en-US", {
32
+ month: "2-digit",
33
+ day: "2-digit",
34
+ year: "2-digit"
35
+ })}`;
36
+ }, M = /* @__PURE__ */ s("div")({
37
+ name: "Container",
38
+ class: "cjq447q",
39
+ propsAsIs: !1
40
+ }), R = /* @__PURE__ */ s("div")({
41
+ name: "ImageContainer",
42
+ class: "i14egogb",
43
+ propsAsIs: !1
44
+ }), F = /* @__PURE__ */ s("img")({
45
+ name: "Image",
46
+ class: "i2g9g4l",
47
+ propsAsIs: !1
48
+ }), j = () => H, V = /* @__PURE__ */ s(j())({
49
+ name: "TwitterIcon",
50
+ class: "t1c454nm",
51
+ propsAsIs: !0
52
+ }), _ = /* @__PURE__ */ s("div")({
53
+ name: "Details",
54
+ class: "d11nigc3",
55
+ propsAsIs: !1
56
+ }), z = /* @__PURE__ */ s("div")({
57
+ name: "Name",
58
+ class: "nrxa4k8",
59
+ propsAsIs: !1
60
+ }), B = /* @__PURE__ */ s("div")({
61
+ name: "UserNameAndDate",
62
+ class: "u1p051g3",
63
+ propsAsIs: !1
64
+ }), k = ({ image: t, name: l, userName: m, verified: o, createdTweet: p }) => {
65
+ const r = p && P(p);
66
+ return /* @__PURE__ */ a(M, { children: [
67
+ t && /* @__PURE__ */ a(R, { children: [
68
+ /* @__PURE__ */ i(F, { className: "SL_AccountImage", src: t }),
69
+ /* @__PURE__ */ i(V, { name: "twitter" })
70
+ ] }),
71
+ /* @__PURE__ */ a(_, { children: [
72
+ l && /* @__PURE__ */ a(z, { className: "SL_TweetAccountName", children: [
73
+ l,
74
+ " ",
75
+ o && /* @__PURE__ */ i(H, { name: "icon-twitter-verified" })
76
+ ] }),
77
+ m && /* @__PURE__ */ a(B, { className: "SL_TweetAccountUserName", children: [
78
+ "@",
79
+ m,
80
+ " ",
81
+ r && `・ ${r}`
82
+ ] })
83
+ ] })
84
+ ] });
85
+ }, q = /* @__PURE__ */ s("div")({
86
+ name: "Container",
87
+ class: "c1kzqw87",
88
+ propsAsIs: !1
89
+ }), Q = /* @__PURE__ */ s("div")({
90
+ name: "Details",
91
+ class: "d9r1hf9",
92
+ propsAsIs: !1
93
+ }), W = /* @__PURE__ */ s("div")({
94
+ name: "Body",
95
+ class: "bezygt5",
96
+ propsAsIs: !1
97
+ }), d = /* @__PURE__ */ s("div")({
98
+ name: "ImagesContainer",
99
+ class: "i1y8f7ym",
100
+ propsAsIs: !1
101
+ }), v = /* @__PURE__ */ s("div")({
102
+ name: "ImagesBlock",
103
+ class: "i18gwonx",
104
+ propsAsIs: !1
105
+ }), L = /* @__PURE__ */ s("img")({
106
+ name: "Image",
107
+ class: "i3g0xjd",
108
+ propsAsIs: !1
109
+ }), Y = () => L, c = /* @__PURE__ */ s(Y())({
110
+ name: "ImageFullSize",
111
+ class: "io8rt7p",
112
+ propsAsIs: !0
113
+ }), G = () => L, I = /* @__PURE__ */ s(G())({
114
+ name: "ImageHalfSize",
115
+ class: "i4hn3ox",
116
+ propsAsIs: !0
117
+ }), J = new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"), K = (t) => t == null ? void 0 : t.replace(J, ""), re = b(
118
+ ({ image: t, body: l, muted: m, account: o, accountVerified: p, tweet: r, isDetail: h, controlVideo: S }) => {
119
+ var A, f, T, N, U;
120
+ const e = (f = (A = r == null ? void 0 : r.meta) == null ? void 0 : A.extendedEntities) == null ? void 0 : f.media, g = e == null ? void 0 : e.find(({ type: u }) => u === "photo"), $ = x(() => {
121
+ var u, w, D, y;
122
+ return (y = (D = (w = (u = e == null ? void 0 : e[0]) == null ? void 0 : u.videoInfo) == null ? void 0 : w.variants) == null ? void 0 : D.findLast(({ contentType: E }) => E === "video/mp4")) == null ? void 0 : y.url;
123
+ }, [e]);
124
+ return /* @__PURE__ */ a(q, { children: [
125
+ /* @__PURE__ */ a(Q, { children: [
126
+ /* @__PURE__ */ i(
127
+ k,
128
+ {
129
+ image: t,
130
+ name: (T = r == null ? void 0 : r.meta) == null ? void 0 : T.accountName,
131
+ userName: o,
132
+ verified: p,
133
+ createdTweet: r == null ? void 0 : r.date
134
+ }
135
+ ),
136
+ /* @__PURE__ */ i(W, { children: K(l) }),
137
+ !h && g && /* @__PURE__ */ i(d, { children: /* @__PURE__ */ i(c, { src: e == null ? void 0 : e[0].mediaUrlHttps }) }),
138
+ h && g && /* @__PURE__ */ a(O, { children: [
139
+ (e == null ? void 0 : e.length) === 1 && /* @__PURE__ */ i(d, { children: /* @__PURE__ */ i(c, { src: e[0].mediaUrlHttps }) }),
140
+ (e == null ? void 0 : e.length) === 2 && /* @__PURE__ */ a(d, { children: [
141
+ /* @__PURE__ */ i(I, { src: e[0].mediaUrlHttps }),
142
+ /* @__PURE__ */ i(I, { src: e[1].mediaUrlHttps })
143
+ ] }),
144
+ (e == null ? void 0 : e.length) === 3 && /* @__PURE__ */ a(d, { children: [
145
+ /* @__PURE__ */ i(I, { src: e[0].mediaUrlHttps }),
146
+ /* @__PURE__ */ a(v, { children: [
147
+ /* @__PURE__ */ i(c, { src: e[1].mediaUrlHttps }),
148
+ /* @__PURE__ */ i(c, { src: e[2].mediaUrlHttps })
149
+ ] })
150
+ ] }),
151
+ (e == null ? void 0 : e.length) === 4 && /* @__PURE__ */ a(d, { children: [
152
+ /* @__PURE__ */ a(v, { children: [
153
+ /* @__PURE__ */ i(c, { src: e[0].mediaUrlHttps }),
154
+ /* @__PURE__ */ i(c, { src: e[1].mediaUrlHttps })
155
+ ] }),
156
+ /* @__PURE__ */ a(v, { children: [
157
+ /* @__PURE__ */ i(c, { src: e[2].mediaUrlHttps }),
158
+ /* @__PURE__ */ i(c, { src: e[3].mediaUrlHttps })
159
+ ] })
160
+ ] })
161
+ ] })
162
+ ] }),
163
+ !g && (((N = e == null ? void 0 : e[0]) == null ? void 0 : N.type) === "video" || ((U = e == null ? void 0 : e[0]) == null ? void 0 : U.type) === "animated_gif") && $ && /* @__PURE__ */ i(
164
+ C,
165
+ {
166
+ muted: m,
167
+ source: $,
168
+ poster: e[0].mediaUrlHttps,
169
+ controlVideo: S
1148
170
  }
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 Nu = ie(), Bu = Nu.Uint8Array, ju = Bu, ht, Ja;
1159
- function Hu() {
1160
- if (Ja) return ht;
1161
- Ja = 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 $u(e) {
1171
- var r = -1, t = Array(e.size);
1172
- return e.forEach(function(n) {
1173
- t[++r] = n;
1174
- }), t;
1175
- }
1176
- var ku = $u, vt, Za;
1177
- function Uu() {
1178
- if (Za) return vt;
1179
- Za = 1;
1180
- var e = we(), r = ju, t = sn(), n = ns(), a = Hu(), i = ku, 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 U = R & o;
1202
- if (T || (T = i), O.size != q.size && !U)
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 Gu = Ji(), zu = re();
1219
- function Wu(e, r, t) {
1220
- var n = r(e);
1221
- return zu(e) ? n : Gu(n, t(e));
1222
- }
1223
- var Yu = Wu;
1224
- function Xu() {
1225
- return [];
1226
- }
1227
- var Ju = Xu, Zu = Vi(), Qu = Ju, Vu = Object.prototype, ec = Vu.propertyIsEnumerable, Qa = Object.getOwnPropertySymbols, rc = Qa ? function(e) {
1228
- return e == null ? [] : (e = Object(e), Zu(Qa(e), function(r) {
1229
- return ec.call(e, r);
1230
- }));
1231
- } : Qu, tc = rc, nc = Yu, ac = tc, ic = vn();
1232
- function sc(e) {
1233
- return nc(e, ic, ac);
1234
- }
1235
- var oc = sc, pt, Va;
1236
- function uc() {
1237
- if (Va) return pt;
1238
- Va = 1;
1239
- var e = oc, 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 cc = he, fc = ie(), lc = cc(fc, "DataView"), dc = lc, hc = he, vc = ie(), pc = hc(vc, "Promise"), yc = pc, gc = he, bc = ie(), _c = gc(bc, "Set"), mc = _c, Cc = he, Fc = ie(), qc = Cc(Fc, "WeakMap"), Rc = qc, en = dc, rn = on, tn = yc, nn = mc, an = Rc, as = Te(), ge = Wi, ei = "[object Map]", wc = "[object Object]", ri = "[object Promise]", ti = "[object Set]", ni = "[object WeakMap]", ai = "[object DataView]", Tc = ge(en), Ac = ge(rn), Oc = ge(tn), xc = ge(nn), Kc = ge(an), le = as;
1274
- (en && le(new en(new ArrayBuffer(1))) != ai || rn && le(new rn()) != ei || tn && le(tn.resolve()) != ri || nn && le(new nn()) != ti || an && le(new an()) != ni) && (le = function(e) {
1275
- var r = as(e), t = r == wc ? e.constructor : void 0, n = t ? ge(t) : "";
1276
- if (n)
1277
- switch (n) {
1278
- case Tc:
1279
- return ai;
1280
- case Ac:
1281
- return ei;
1282
- case Oc:
1283
- return ri;
1284
- case xc:
1285
- return ti;
1286
- case Kc:
1287
- return ni;
1288
- }
1289
- return r;
1290
- });
1291
- var Sc = le, yt, ii;
1292
- function Ec() {
1293
- if (ii) return yt;
1294
- ii = 1;
1295
- var e = ts, r = ns(), t = Uu(), n = uc(), a = Sc, i = re(), o = es, u = rs(), 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 U = $ ? K.value() : K, X = T ? b.value() : b;
1311
- return y || (y = new e()), C(U, X, l, g, y);
1312
- }
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, si;
1319
- function is() {
1320
- if (si) return gt;
1321
- si = 1;
1322
- var e = Ec(), 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, oi;
1329
- function Pc() {
1330
- if (oi) return bt;
1331
- oi = 1;
1332
- var e = ts, r = is(), 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;
1354
- }
1355
- }
1356
- return !0;
1357
- }
1358
- return bt = a, bt;
1359
- }
1360
- var _t, ui;
1361
- function ss() {
1362
- if (ui) return _t;
1363
- ui = 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, ci;
1371
- function Mc() {
1372
- if (ci) return mt;
1373
- ci = 1;
1374
- var e = ss(), r = vn();
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, fi;
1385
- function os() {
1386
- if (fi) return Ct;
1387
- fi = 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, li;
1396
- function Ic() {
1397
- if (li) return Ft;
1398
- li = 1;
1399
- var e = Pc(), r = Mc(), t = os();
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, di;
1409
- function gn() {
1410
- if (di) return qt;
1411
- di = 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 us = un(), Dc = "Expected a function";
1422
- function bn(e, r) {
1423
- if (typeof e != "function" || r != null && typeof r != "function")
1424
- throw new TypeError(Dc);
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
- };
1432
- return t.cache = new (bn.Cache || us)(), t;
1433
- }
1434
- bn.Cache = us;
1435
- var Lc = bn, Nc = Lc, Bc = 500;
1436
- function jc(e) {
1437
- var r = Nc(e, function(n) {
1438
- return t.size === Bc && t.clear(), n;
1439
- }), t = r.cache;
1440
- return r;
1441
- }
1442
- var Hc = jc, $c = Hc, kc = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Uc = /\\(\\)?/g, Gc = $c(function(e) {
1443
- var r = [];
1444
- return e.charCodeAt(0) === 46 && r.push(""), e.replace(kc, function(t, n, a, i) {
1445
- r.push(a ? i.replace(Uc, "$1") : n || t);
1446
- }), r;
1447
- }), zc = Gc, Rt, hi;
1448
- function Wc() {
1449
- if (hi) return Rt;
1450
- hi = 1;
1451
- var e = we(), r = cn, 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, vi;
1465
- function cs() {
1466
- if (vi) return wt;
1467
- vi = 1;
1468
- var e = Wc();
1469
- function r(t) {
1470
- return t == null ? "" : e(t);
1471
- }
1472
- return wt = r, wt;
1473
- }
1474
- var Yc = re(), Xc = gn(), Jc = zc, Zc = cs();
1475
- function Qc(e, r) {
1476
- return Yc(e) ? e : Xc(e, r) ? [e] : Jc(Zc(e));
1477
- }
1478
- var fs = Qc, Vc = Ae(), ef = 1 / 0;
1479
- function rf(e) {
1480
- if (typeof e == "string" || Vc(e))
1481
- return e;
1482
- var r = e + "";
1483
- return r == "0" && 1 / e == -ef ? "-0" : r;
1484
- }
1485
- var Be = rf, tf = fs, nf = Be;
1486
- function af(e, r) {
1487
- r = tf(r, e);
1488
- for (var t = 0, n = r.length; e != null && t < n; )
1489
- e = e[nf(r[t++])];
1490
- return t && t == n ? e : void 0;
1491
- }
1492
- var _n = af, Tt, pi;
1493
- function sf() {
1494
- if (pi) return Tt;
1495
- pi = 1;
1496
- var e = _n;
1497
- function r(t, n, a) {
1498
- var i = t == null ? void 0 : e(t, n);
1499
- return i === void 0 ? a : i;
1500
- }
1501
- return Tt = r, Tt;
1502
- }
1503
- var At, yi;
1504
- function of() {
1505
- if (yi) return At;
1506
- yi = 1;
1507
- function e(r, t) {
1508
- return r != null && t in Object(r);
1509
- }
1510
- return At = e, At;
1511
- }
1512
- var Ot, gi;
1513
- function uf() {
1514
- if (gi) return Ot;
1515
- gi = 1;
1516
- var e = fs, r = ln(), t = re(), n = hn(), a = dn(), i = Be;
1517
- function o(u, v, h) {
1518
- v = e(v, u);
1519
- for (var m = -1, _ = v.length, I = !1; ++m < _; ) {
1520
- var P = i(v[m]);
1521
- if (!(I = u != null && h(u, P)))
1522
- break;
1523
- u = u[P];
1524
- }
1525
- return I || ++m != _ ? I : (_ = u == null ? 0 : u.length, !!_ && a(_) && n(P, _) && (t(u) || r(u)));
171
+ )
172
+ ] });
1526
173
  }
1527
- return Ot = o, Ot;
1528
- }
1529
- var xt, bi;
1530
- function cf() {
1531
- if (bi) return xt;
1532
- bi = 1;
1533
- var e = of(), r = uf();
1534
- function t(n, a) {
1535
- return n != null && r(n, a, e);
1536
- }
1537
- return xt = t, xt;
1538
- }
1539
- var Kt, _i;
1540
- function ff() {
1541
- if (_i) return Kt;
1542
- _i = 1;
1543
- var e = is(), r = sf(), t = cf(), n = gn(), a = ss(), i = os(), o = Be, u = 1, v = 2;
1544
- function h(m, _) {
1545
- return n(m) && a(_) ? i(o(m), _) : function(I) {
1546
- var P = r(I, m);
1547
- return P === void 0 && P === _ ? t(I, m) : e(_, P, u | v);
1548
- };
1549
- }
1550
- return Kt = h, Kt;
1551
- }
1552
- var St, mi;
1553
- function lf() {
1554
- if (mi) return St;
1555
- mi = 1;
1556
- function e(r) {
1557
- return function(t) {
1558
- return t == null ? void 0 : t[r];
1559
- };
1560
- }
1561
- return St = e, St;
1562
- }
1563
- var Et, Ci;
1564
- function df() {
1565
- if (Ci) return Et;
1566
- Ci = 1;
1567
- var e = _n;
1568
- function r(t) {
1569
- return function(n) {
1570
- return e(n, t);
1571
- };
1572
- }
1573
- return Et = r, Et;
1574
- }
1575
- var Pt, Fi;
1576
- function hf() {
1577
- if (Fi) return Pt;
1578
- Fi = 1;
1579
- var e = lf(), r = df(), t = gn(), n = Be;
1580
- function a(i) {
1581
- return t(i) ? e(n(i)) : r(i);
1582
- }
1583
- return Pt = a, Pt;
1584
- }
1585
- var Mt, qi;
1586
- function mn() {
1587
- if (qi) return Mt;
1588
- qi = 1;
1589
- var e = Ic(), r = ff(), t = Oe(), n = re(), a = hf();
1590
- function i(o) {
1591
- return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? r(o[0], o[1]) : e(o) : a(o);
1592
- }
1593
- return Mt = i, Mt;
1594
- }
1595
- var It, Ri;
1596
- function vf() {
1597
- if (Ri) return It;
1598
- Ri = 1;
1599
- var e = Vi(), r = pu(), t = mn(), n = re();
1600
- function a(i, o) {
1601
- var u = n(i) ? e : r;
1602
- return u(i, t(o, 3));
1603
- }
1604
- return It = a, It;
1605
- }
1606
- var Dt, wi;
1607
- function pf() {
1608
- if (wi) return Dt;
1609
- wi = 1;
1610
- function e(r, t, n) {
1611
- var a;
1612
- return n(r, function(i, o, u) {
1613
- if (t(i, o, u))
1614
- return a = o, !1;
1615
- }), a;
1616
- }
1617
- return Dt = e, Dt;
1618
- }
1619
- var Lt, Ti;
1620
- function yf() {
1621
- if (Ti) return Lt;
1622
- Ti = 1;
1623
- var e = pf(), r = pn(), t = mn();
1624
- function n(a, i) {
1625
- return e(a, t(i, 3), r);
1626
- }
1627
- return Lt = n, Lt;
1628
- }
1629
- var Nt, Ai;
1630
- function gf() {
1631
- if (Ai) return Nt;
1632
- Ai = 1;
1633
- function e(r) {
1634
- return r && r.length ? r[0] : void 0;
1635
- }
1636
- return Nt = e, Nt;
1637
- }
1638
- var Bt, Oi;
1639
- function bf() {
1640
- return Oi || (Oi = 1, Bt = gf()), Bt;
1641
- }
1642
- var jt, xi;
1643
- function _f() {
1644
- if (xi) return jt;
1645
- xi = 1;
1646
- function e(r, t) {
1647
- for (var n = -1, a = r == null ? 0 : r.length; ++n < a && t(r[n], n, r) !== !1; )
1648
- ;
1649
- return r;
1650
- }
1651
- return jt = e, jt;
1652
- }
1653
- var Ht, Ki;
1654
- function ls() {
1655
- if (Ki) return Ht;
1656
- Ki = 1;
1657
- var e = Oe();
1658
- function r(t) {
1659
- return typeof t == "function" ? t : e;
1660
- }
1661
- return Ht = r, Ht;
1662
- }
1663
- var $t, Si;
1664
- function mf() {
1665
- if (Si) return $t;
1666
- Si = 1;
1667
- var e = _f(), r = yn(), t = ls(), n = re();
1668
- function a(i, o) {
1669
- var u = n(i) ? e : r;
1670
- return u(i, t(o));
1671
- }
1672
- return $t = a, $t;
1673
- }
1674
- var kt, Ei;
1675
- function Cf() {
1676
- if (Ei) return kt;
1677
- Ei = 1;
1678
- var e = pn(), r = ls();
1679
- function t(n, a) {
1680
- return n && e(n, r(a));
1681
- }
1682
- return kt = t, kt;
1683
- }
1684
- var Ut, Pi;
1685
- function Ff() {
1686
- if (Pi) return Ut;
1687
- Pi = 1;
1688
- function e() {
1689
- }
1690
- return Ut = e, Ut;
1691
- }
1692
- var Gt, Mi;
1693
- function qf() {
1694
- if (Mi) return Gt;
1695
- Mi = 1;
1696
- var e = yn(), r = xe();
1697
- function t(n, a) {
1698
- var i = -1, o = r(n) ? Array(n.length) : [];
1699
- return e(n, function(u, v, h) {
1700
- o[++i] = a(u, v, h);
1701
- }), o;
1702
- }
1703
- return Gt = t, Gt;
1704
- }
1705
- var zt, Ii;
1706
- function Rf() {
1707
- if (Ii) return zt;
1708
- Ii = 1;
1709
- function e(r, t) {
1710
- var n = r.length;
1711
- for (r.sort(t); n--; )
1712
- r[n] = r[n].value;
1713
- return r;
1714
- }
1715
- return zt = e, zt;
1716
- }
1717
- var Wt, Di;
1718
- function wf() {
1719
- if (Di) return Wt;
1720
- Di = 1;
1721
- var e = Ae();
1722
- function r(t, n) {
1723
- if (t !== n) {
1724
- 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);
1725
- if (!h && !_ && !u && t > n || u && v && m && !h && !_ || i && v && m || !a && m || !o)
1726
- return 1;
1727
- if (!i && !u && !_ && t < n || _ && a && o && !i && !u || h && a && o || !v && o || !m)
1728
- return -1;
1729
- }
1730
- return 0;
1731
- }
1732
- return Wt = r, Wt;
1733
- }
1734
- var Yt, Li;
1735
- function Tf() {
1736
- if (Li) return Yt;
1737
- Li = 1;
1738
- var e = wf();
1739
- function r(t, n, a) {
1740
- for (var i = -1, o = t.criteria, u = n.criteria, v = o.length, h = a.length; ++i < v; ) {
1741
- var m = e(o[i], u[i]);
1742
- if (m) {
1743
- if (i >= h)
1744
- return m;
1745
- var _ = a[i];
1746
- return m * (_ == "desc" ? -1 : 1);
1747
- }
1748
- }
1749
- return t.index - n.index;
1750
- }
1751
- return Yt = r, Yt;
1752
- }
1753
- var Xt, Ni;
1754
- function Af() {
1755
- if (Ni) return Xt;
1756
- Ni = 1;
1757
- var e = cn, r = _n, t = mn(), n = qf(), a = Rf(), i = fn(), o = Tf(), u = Oe(), v = re();
1758
- function h(m, _, I) {
1759
- _.length ? _ = e(_, function(K) {
1760
- return v(K) ? function(b) {
1761
- return r(b, K.length === 1 ? K[0] : K);
1762
- } : K;
1763
- }) : _ = [u];
1764
- var P = -1;
1765
- _ = e(_, i(t));
1766
- var N = n(m, function(K, b, l) {
1767
- var g = e(_, function(C) {
1768
- return C(K);
1769
- });
1770
- return { criteria: g, index: ++P, value: K };
1771
- });
1772
- return a(N, function(K, b) {
1773
- return o(K, b, I);
1774
- });
1775
- }
1776
- return Xt = h, Xt;
1777
- }
1778
- var Jt, Bi;
1779
- function Of() {
1780
- if (Bi) return Jt;
1781
- Bi = 1;
1782
- var e = sn(), r = xe(), t = hn(), n = de();
1783
- function a(i, o, u) {
1784
- if (!n(u))
1785
- return !1;
1786
- var v = typeof o;
1787
- return (v == "number" ? r(u) && t(o, u.length) : v == "string" && o in u) ? e(u[o], i) : !1;
1788
- }
1789
- return Jt = a, Jt;
1790
- }
1791
- var Zt, ji;
1792
- function xf() {
1793
- if (ji) return Zt;
1794
- ji = 1;
1795
- var e = Zi(), r = Af(), t = Qi(), n = Of(), a = t(function(i, o) {
1796
- if (i == null)
1797
- return [];
1798
- var u = o.length;
1799
- 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), []);
1800
- });
1801
- return Zt = a, Zt;
1802
- }
1803
- var Qt, Hi;
1804
- function Kf() {
1805
- if (Hi) return Qt;
1806
- Hi = 1;
1807
- var e = Gi(), r = de(), t = "Expected a function";
1808
- function n(a, i, o) {
1809
- var u = !0, v = !0;
1810
- if (typeof a != "function")
1811
- throw new TypeError(t);
1812
- return r(o) && (u = "leading" in o ? !!o.leading : u, v = "trailing" in o ? !!o.trailing : v), e(a, i, {
1813
- leading: u,
1814
- maxWait: i,
1815
- trailing: v
1816
- });
1817
- }
1818
- return Qt = n, Qt;
1819
- }
1820
- var Vt, $i;
1821
- function Sf() {
1822
- if ($i) return Vt;
1823
- $i = 1;
1824
- var e = cs(), r = 0;
1825
- function t(n) {
1826
- var a = ++r;
1827
- return e(n) + a;
1828
- }
1829
- return Vt = t, Vt;
1830
- }
1831
- (function(e, r) {
1832
- (function(t, n) {
1833
- e.exports = n(Gi(), Qo(), vf(), yf(), bf(), mf(), Cf(), Ff(), xf(), Kf(), Sf(), vs);
1834
- })(Re, function(t, n, a, i, o, u, v, h, m, _, I, P) {
1835
- return function() {
1836
- var N = { 654: function(b, l, g) {
1837
- var C, y = this && this.__assign || function() {
1838
- return y = Object.assign || function(p) {
1839
- 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]);
1840
- return p;
1841
- }, y.apply(this, arguments);
1842
- }, S = this && this.__createBinding || (Object.create ? function(p, s, c, f) {
1843
- f === void 0 && (f = c);
1844
- var d = Object.getOwnPropertyDescriptor(s, c);
1845
- d && !("get" in d ? !s.__esModule : d.writable || d.configurable) || (d = { enumerable: !0, get: function() {
1846
- return s[c];
1847
- } }), Object.defineProperty(p, f, d);
1848
- } : function(p, s, c, f) {
1849
- f === void 0 && (f = c), p[f] = s[c];
1850
- }), O = this && this.__setModuleDefault || (Object.create ? function(p, s) {
1851
- Object.defineProperty(p, "default", { enumerable: !0, value: s });
1852
- } : function(p, s) {
1853
- p.default = s;
1854
- }), q = this && this.__importStar || function(p) {
1855
- if (p && p.__esModule) return p;
1856
- var s = {};
1857
- if (p != null) for (var c in p) c !== "default" && Object.prototype.hasOwnProperty.call(p, c) && S(s, p, c);
1858
- return O(s, p), s;
1859
- }, L = this && this.__spreadArray || function(p, s, c) {
1860
- 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]);
1861
- return p.concat(f || Array.prototype.slice.call(s));
1862
- }, R = this && this.__importDefault || function(p) {
1863
- return p && p.__esModule ? p : { default: p };
1864
- };
1865
- 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;
1866
- var x = R(g(150)), E = R(g(117)), $ = R(g(747)), T = R(g(23)), U = 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);
1867
- l.ROOT_FOCUS_KEY = "SN:ROOT";
1868
- var Fe = ["#0FF", "#FF0", "#F0F"], Se = { leading: !0, trailing: !1 }, Ee = function() {
1869
- function p() {
1870
- 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";
1871
- }
1872
- return p.getCutoffCoordinate = function(s, c, f, d, F) {
1873
- 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;
1874
- return c ? f ? w : A : f ? A : w;
1875
- }, p.getRefCorners = function(s, c, f) {
1876
- var d = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
1877
- switch (s) {
1878
- case ce:
1879
- var F = c ? f.bottom : f.top;
1880
- d.a = { x: f.left, y: F }, d.b = { x: f.right, y: F };
1881
- break;
1882
- case ne:
1883
- F = c ? f.top : f.bottom, d.a = { x: f.left, y: F }, d.b = { x: f.right, y: F };
1884
- break;
1885
- case oe:
1886
- var w = c ? f.right : f.left;
1887
- d.a = { x: w, y: f.top }, d.b = { x: w, y: f.bottom };
1888
- break;
1889
- case ue:
1890
- w = c ? f.left : f.right, d.a = { x: w, y: f.top }, d.b = { x: w, y: f.bottom };
1891
- }
1892
- return d;
1893
- }, p.isAdjacentSlice = function(s, c, f) {
1894
- var d = s.a, F = s.b, w = c.a, A = c.b, M = f ? "x" : "y", k = d[M], H = F[M], j = w[M], B = A[M], D = 0.2 * (H - k);
1895
- return Math.max(0, Math.min(H, B) - Math.max(k, j)) >= D;
1896
- }, p.getPrimaryAxisDistance = function(s, c, f) {
1897
- var d = s.a, F = c.a, w = f ? "y" : "x";
1898
- return Math.abs(F[w] - d[w]);
1899
- }, p.getSecondaryAxisDistance = function(s, c, f, d, F) {
1900
- if (F) return F(s, c, f, d);
1901
- var w = s.a, A = s.b, M = c.a, k = c.b, H = f ? "x" : "y", j = w[H], B = A[H], D = M[H], Y = k[H];
1902
- if (d === "center") {
1903
- var z = (j + B) / 2, J = (D + Y) / 2;
1904
- return Math.abs(z - J);
1905
- }
1906
- if (d === "edges") {
1907
- var se = Math.min(j, B), G = Math.min(D, Y), V = Math.max(j, B), fe = Math.max(D, Y), ae = Math.abs(se - G), ee = Math.abs(V - fe);
1908
- return Math.min(ae, ee);
1909
- }
1910
- var qe = [Math.abs(D - j), Math.abs(D - B), Math.abs(Y - j), Math.abs(Y - B)];
1911
- return Math.min.apply(Math, qe);
1912
- }, p.prototype.sortSiblingsByPriority = function(s, c, f, d) {
1913
- var F = this, w = f === ne || f === ce, A = p.getRefCorners(f, !1, c);
1914
- return (0, be.default)(s, function(M) {
1915
- var k = p.getRefCorners(f, !0, M.layout), H = p.isAdjacentSlice(A, k, w), j = H ? p.getPrimaryAxisDistance : p.getSecondaryAxisDistance, B = H ? p.getSecondaryAxisDistance : p.getPrimaryAxisDistance, D = j(A, k, w, F.distanceCalculationMethod, F.customDistanceCalculationFunction), Y = B(A, k, w, F.distanceCalculationMethod, F.customDistanceCalculationFunction), z = 5 * D + Y, J = (z + 1) / (H ? 5 : 1);
1916
- 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(k.a.x, k.a.y, "yellow", 6), F.visualDebugger.drawPoint(k.b.x, k.b.y, "yellow", 6)), J;
1917
- });
1918
- }, p.prototype.init = function(s) {
1919
- 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, k = 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, G = f.domNodeFocusOptions, V = G === void 0 ? {} : G, 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, Cn = f.customDistanceCalculationFunction, ds = Cn === void 0 ? void 0 : Cn;
1920
- if (!this.enabled && (this.domNodeFocusOptions = V, this.enabled = !0, this.nativeMode = k, this.throttleKeypresses = D, this.useGetBoundingClientRect = z, this.shouldFocusDOMNode = se && !k, this.shouldUseNativeEvents = ae, this.writingDirection = qe ? Q.default.RTL : Q.default.LTR, this.distanceCalculationMethod = Z, this.customDistanceCalculationFunction = ds, this.debug = F, !this.nativeMode && (Number.isInteger(j) && j > 0 && (this.throttle = j), this.bindEventHandlers(), A))) {
1921
- this.visualDebugger = new Ke.default(this.writingDirection);
1922
- var Fn = function() {
1923
- requestAnimationFrame(function() {
1924
- c.visualDebugger.clearLayouts(), (0, te.default)(c.focusableComponents, function(qn, hs) {
1925
- c.visualDebugger.drawLayout(qn.layout, hs, qn.parentFocusKey);
1926
- }), Fn();
1927
- });
1928
- };
1929
- Fn();
1930
- }
1931
- }, p.prototype.setThrottle = function(s) {
1932
- var c = s === void 0 ? {} : s, f = c.throttle, d = f === void 0 ? 0 : f, F = c.throttleKeypresses, w = F !== void 0 && F;
1933
- this.throttleKeypresses = w, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(d) && (this.throttle = d), this.bindEventHandlers());
1934
- }, p.prototype.destroy = function() {
1935
- 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());
1936
- }, p.prototype.getEventType = function(s) {
1937
- return (0, T.default)(this.getKeyMap(), function(c) {
1938
- return c.includes(s);
1939
- });
1940
- }, p.getKeyCode = function(s) {
1941
- return s.keyCode || s.code || s.key;
1942
- }, p.prototype.bindEventHandlers = function() {
1943
- var s = this;
1944
- typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(c) {
1945
- if (s.paused !== !0) {
1946
- s.debug && (s.logIndex += 1);
1947
- var f = p.getKeyCode(c), d = s.getEventType(f);
1948
- if (d) {
1949
- s.pressedKeys[d] = s.pressedKeys[d] ? s.pressedKeys[d] + 1 : 1, s.shouldUseNativeEvents || (c.preventDefault(), c.stopPropagation());
1950
- var F = { pressedKeys: s.pressedKeys };
1951
- if (d === me && s.focusKey) s.onEnterPress(F);
1952
- else {
1953
- var w = s.onArrowPress(d, F) === !1;
1954
- if (s.visualDebugger && s.visualDebugger.clear(), w) s.log("keyDownEventListener", "default navigation prevented");
1955
- else {
1956
- var A = (0, T.default)(s.getKeyMap(), function(M) {
1957
- return M.includes(f);
1958
- });
1959
- s.smartNavigate(A, null, { event: c });
1960
- }
1961
- }
1962
- }
1963
- }
1964
- }, this.throttle && (this.keyDownEventListenerThrottled = (0, je.default)(this.keyDownEventListener.bind(this), this.throttle, Se)), this.keyUpEventListener = function(c) {
1965
- var f = p.getKeyCode(c), d = s.getEventType(f);
1966
- 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);
1967
- }, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
1968
- }, p.prototype.unbindEventHandlers = function() {
1969
- if (typeof window < "u" && window.removeEventListener) {
1970
- window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
1971
- var s = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
1972
- window.removeEventListener("keydown", s), this.keyDownEventListener = null;
1973
- }
1974
- }, p.prototype.onEnterPress = function(s) {
1975
- var c = this.focusableComponents[this.focusKey];
1976
- c ? c.focusable ? c.onEnterPress && c.onEnterPress(s) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
1977
- }, p.prototype.onEnterRelease = function() {
1978
- var s = this.focusableComponents[this.focusKey];
1979
- s ? s.focusable ? s.onEnterRelease && s.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
1980
- }, p.prototype.onArrowPress = function(s, c) {
1981
- var f = this.focusableComponents[this.focusKey];
1982
- if (f) return f && f.onArrowPress && f.onArrowPress(s, c);
1983
- this.log("onArrowPress", "noComponent");
1984
- }, p.prototype.onArrowRelease = function(s) {
1985
- var c = this.focusableComponents[this.focusKey];
1986
- c ? c.focusable ? c.onArrowRelease && c.onArrowRelease(s) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
1987
- }, p.prototype.navigateByDirection = function(s, c) {
1988
- if (this.paused !== !0 && this.enabled && !this.nativeMode) {
1989
- var f = [ne, ce, oe, ue];
1990
- 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);
1991
- }
1992
- }, p.prototype.smartNavigate = function(s, c, f) {
1993
- var d = this;
1994
- if (!this.nativeMode) {
1995
- var F = s === ne || s === ce, w = s === ne || (this.writingDirection === Q.default.LTR ? s === ue : s === oe);
1996
- this.log("smartNavigate", "direction", s), this.log("smartNavigate", "fromParentFocusKey", c), this.log("smartNavigate", "this.focusKey", this.focusKey), c || (0, te.default)(this.focusableComponents, function(G) {
1997
- G.layoutUpdated = !1;
1998
- });
1999
- var A = this.focusableComponents[c || this.focusKey];
2000
- if (c || A) {
2001
- if (this.log("smartNavigate", "currentComponent", A ? A.focusKey : void 0, A ? A.node : void 0, A), A) {
2002
- this.updateLayout(A.focusKey);
2003
- var M = A.parentFocusKey, k = A.focusKey, H = A.layout, j = p.getCutoffCoordinate(F, w, !1, H, this.writingDirection), B = (0, $.default)(this.focusableComponents, function(G) {
2004
- if (G.parentFocusKey === M && G.focusable) {
2005
- d.updateLayout(G.focusKey);
2006
- var V = p.getCutoffCoordinate(F, w, !0, G.layout, d.writingDirection);
2007
- return F || d.writingDirection === Q.default.LTR ? w ? V >= j : V <= j : w ? V <= j : V >= j;
2008
- }
2009
- return !1;
2010
- });
2011
- if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", j), this.log("smartNavigate", "siblings", "".concat(B.length, " elements:"), B.map(function(G) {
2012
- return G.focusKey;
2013
- }).join(", "), B.map(function(G) {
2014
- return G.node;
2015
- }), B.map(function(G) {
2016
- return G;
2017
- }))), this.visualDebugger) {
2018
- var D = p.getRefCorners(s, !1, H);
2019
- this.visualDebugger.drawPoint(D.a.x, D.a.y), this.visualDebugger.drawPoint(D.b.x, D.b.y);
2020
- }
2021
- var Y = this.sortSiblingsByPriority(B, H, s, k), z = (0, U.default)(Y);
2022
- if (this.log("smartNavigate", "nextComponent", z ? z.focusKey : void 0, z ? z.node : void 0, z), z) this.setFocus(z.focusKey, f);
2023
- else {
2024
- var J = this.focusableComponents[M], se = J != null && J.isFocusBoundary ? J.focusBoundaryDirections || [s] : [];
2025
- J && se.includes(s) || this.smartNavigate(s, M, f);
2026
- }
2027
- }
2028
- } else this.setFocus(this.getForcedFocusKey());
2029
- }
2030
- }, p.prototype.saveLastFocusedChildKey = function(s, c) {
2031
- s && (this.log("saveLastFocusedChildKey", "".concat(s.focusKey, " lastFocusedChildKey set"), c), s.lastFocusedChildKey = c);
2032
- }, p.prototype.log = function(s, c) {
2033
- for (var f = [], d = 2; d < arguments.length; d++) f[d - 2] = arguments[d];
2034
- 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));
2035
- }, p.prototype.getCurrentFocusKey = function() {
2036
- return this.focusKey;
2037
- }, p.prototype.getForcedFocusKey = function() {
2038
- var s, c = (0, $.default)(this.focusableComponents, function(d) {
2039
- return d.focusable && d.forceFocus;
2040
- }), 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);
2041
- return (s = (0, U.default)(f)) === null || s === void 0 ? void 0 : s.focusKey;
2042
- }, p.prototype.getNextFocusKey = function(s) {
2043
- var c = this, f = this.focusableComponents[s];
2044
- if (!f || this.nativeMode) return s;
2045
- var d = (0, $.default)(this.focusableComponents, function(M) {
2046
- return M.parentFocusKey === s && M.focusable;
2047
- });
2048
- if (d.length > 0) {
2049
- var F = f.lastFocusedChildKey, w = f.preferredChildFocusKey;
2050
- 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);
2051
- if (w && this.isParticipatingFocusableComponent(w)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", w), this.getNextFocusKey(w);
2052
- d.forEach(function(M) {
2053
- return c.updateLayout(M.focusKey);
2054
- });
2055
- var A = function(M, k) {
2056
- var H = k === Q.default.LTR ? function(B) {
2057
- var D = B.layout;
2058
- return Math.abs(D.left) + Math.abs(D.top);
2059
- } : function(B) {
2060
- var D = B.layout;
2061
- return Math.abs(window.innerWidth - D.right) + Math.abs(D.top);
2062
- }, j = (0, be.default)(M, H);
2063
- return (0, U.default)(j);
2064
- }(d, this.writingDirection).focusKey;
2065
- return this.log("getNextFocusKey", "childKey will be focused", A), this.getNextFocusKey(A);
2066
- }
2067
- return this.log("getNextFocusKey", "targetFocusKey", s), s;
2068
- }, p.prototype.addFocusable = function(s) {
2069
- var c = s.focusKey, f = s.node, d = s.parentFocusKey, F = s.onEnterPress, w = s.onEnterRelease, A = s.onArrowPress, M = s.onArrowRelease, k = 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, G = s.focusable, V = s.isFocusBoundary, fe = s.focusBoundaryDirections;
2070
- if (this.focusableComponents[c] = { focusKey: c, node: f, parentFocusKey: d, onEnterPress: F, onEnterRelease: w, onArrowPress: A, onArrowRelease: M, onFocus: k, onBlur: H, onUpdateFocus: D, onUpdateHasFocusedChild: Y, saveLastFocusedChild: j, trackChildren: B, preferredChildFocusKey: z, focusable: G, 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) {
2071
- this.updateLayout(c), this.log("addFocusable", "Component added: ", this.focusableComponents[c]), c === this.focusKey && this.setFocus(z || c);
2072
- for (var ae = this.focusableComponents[this.focusKey]; ae; ) {
2073
- if (ae.parentFocusKey === c) {
2074
- this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
2075
- break;
2076
- }
2077
- ae = this.focusableComponents[ae.parentFocusKey];
2078
- }
2079
- }
2080
- }, p.prototype.removeFocusable = function(s) {
2081
- var c = s.focusKey, f = this.focusableComponents[c];
2082
- if (f) {
2083
- var d = f.parentFocusKey;
2084
- (0, f.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", f), delete this.focusableComponents[c];
2085
- var F = this.parentsHavingFocusedChild.includes(c);
2086
- this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter(function(M) {
2087
- return M !== c;
2088
- });
2089
- var w = this.focusableComponents[d], A = c === this.focusKey;
2090
- if (w && w.lastFocusedChildKey === c && (w.lastFocusedChildKey = null), this.nativeMode) return;
2091
- (A || F) && w && w.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", A ? "Leaf component" : "Container component", "Auto restoring focus to: ", d), this.setFocusDebounced(d));
2092
- }
2093
- }, p.prototype.getNodeLayoutByFocusKey = function(s) {
2094
- var c = this.focusableComponents[s];
2095
- return c ? (this.updateLayout(c.focusKey), c.layout) : null;
2096
- }, p.prototype.setCurrentFocusedKey = function(s, c) {
2097
- var f, d, F, w;
2098
- if (this.isFocusableComponent(this.focusKey) && s !== this.focusKey) {
2099
- var A = this.focusableComponents[this.focusKey];
2100
- 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);
2101
- }
2102
- if (this.focusKey = s, this.isFocusableComponent(this.focusKey)) {
2103
- var M = this.focusableComponents[this.focusKey];
2104
- 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);
2105
- }
2106
- }, p.prototype.updateParentsHasFocusedChild = function(s, c) {
2107
- for (var f = this, d = [], F = this.focusableComponents[s]; F; ) {
2108
- var w = F.parentFocusKey, A = this.focusableComponents[w];
2109
- if (A) {
2110
- var M = A.focusKey;
2111
- d.push(M);
2112
- }
2113
- F = A;
2114
- }
2115
- var k = (0, E.default)(this.parentsHavingFocusedChild, d), H = (0, E.default)(d, this.parentsHavingFocusedChild);
2116
- (0, X.default)(k, function(j) {
2117
- var B = f.focusableComponents[j];
2118
- B && B.trackChildren && B.onUpdateHasFocusedChild(!1), f.onIntermediateNodeBecameBlurred(j, c);
2119
- }), (0, X.default)(H, function(j) {
2120
- var B = f.focusableComponents[j];
2121
- B && B.trackChildren && B.onUpdateHasFocusedChild(!0), f.onIntermediateNodeBecameFocused(j, c);
2122
- }), this.parentsHavingFocusedChild = d;
2123
- }, p.prototype.updateParentsLastFocusedChild = function(s) {
2124
- for (var c = this.focusableComponents[s]; c; ) {
2125
- var f = c.parentFocusKey, d = this.focusableComponents[f];
2126
- d && this.saveLastFocusedChildKey(d, c.focusKey), c = d;
2127
- }
2128
- }, p.prototype.getKeyMap = function() {
2129
- return this.keyMap;
2130
- }, p.prototype.setKeyMap = function(s) {
2131
- this.keyMap = y(y({}, this.getKeyMap()), function(c) {
2132
- var f = {};
2133
- return Object.entries(c).forEach(function(d) {
2134
- var F = d[0], w = d[1];
2135
- f[F] = Array.isArray(w) ? w : [w];
2136
- }), f;
2137
- }(s));
2138
- }, p.prototype.isFocusableComponent = function(s) {
2139
- return !!this.focusableComponents[s];
2140
- }, p.prototype.isParticipatingFocusableComponent = function(s) {
2141
- return this.isFocusableComponent(s) && this.focusableComponents[s].focusable;
2142
- }, p.prototype.onIntermediateNodeBecameFocused = function(s, c) {
2143
- this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s), c);
2144
- }, p.prototype.onIntermediateNodeBecameBlurred = function(s, c) {
2145
- this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s), c);
2146
- }, p.prototype.pause = function() {
2147
- this.paused = !0;
2148
- }, p.prototype.resume = function() {
2149
- this.paused = !1;
2150
- }, p.prototype.setFocus = function(s, c) {
2151
- if (c === void 0 && (c = {}), this.setFocusDebounced.cancel(), this.enabled) {
2152
- this.log("setFocus", "focusKey", s), s && s !== l.ROOT_FOCUS_KEY || (s = this.getForcedFocusKey());
2153
- var f = this.getNextFocusKey(s);
2154
- this.log("setFocus", "newFocusKey", f), this.setCurrentFocusedKey(f, c), this.updateParentsHasFocusedChild(f, c), this.updateParentsLastFocusedChild(f);
2155
- }
2156
- }, p.prototype.updateAllLayouts = function() {
2157
- var s = this;
2158
- this.enabled && !this.nativeMode && (0, te.default)(this.focusableComponents, function(c, f) {
2159
- s.updateLayout(f);
2160
- });
2161
- }, p.prototype.updateLayout = function(s) {
2162
- var c = this.focusableComponents[s];
2163
- if (c && !this.nativeMode && !c.layoutUpdated) {
2164
- var f = c.node, d = this.useGetBoundingClientRect ? (0, _e.getBoundingClientRect)(f) : (0, _e.default)(f);
2165
- c.layout = y(y({}, d), { node: f });
2166
- }
2167
- }, p.prototype.updateFocusable = function(s, c) {
2168
- var f = c.node, d = c.preferredChildFocusKey, F = c.focusable, w = c.isFocusBoundary, A = c.focusBoundaryDirections, M = c.onEnterPress, k = c.onEnterRelease, H = c.onArrowPress, j = c.onFocus, B = c.onBlur;
2169
- if (!this.nativeMode) {
2170
- var D = this.focusableComponents[s];
2171
- D && (D.preferredChildFocusKey = d, D.focusable = F, D.isFocusBoundary = w, D.focusBoundaryDirections = A, D.onEnterPress = M, D.onEnterRelease = k, D.onArrowPress = H, D.onFocus = j, D.onBlur = B, f && (D.node = f));
2172
- }
2173
- }, p.prototype.isNativeMode = function() {
2174
- return this.nativeMode;
2175
- }, p.prototype.doesFocusableExist = function(s) {
2176
- return !!this.focusableComponents[s];
2177
- }, p.prototype.updateRtl = function(s) {
2178
- this.writingDirection = s ? Q.default.RTL : Q.default.LTR;
2179
- }, p;
2180
- }();
2181
- 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;
2182
- }, 35: function(b, l, g) {
2183
- var C = this && this.__importDefault || function(R) {
2184
- return R && R.__esModule ? R : { default: R };
2185
- };
2186
- Object.defineProperty(l, "__esModule", { value: !0 });
2187
- var y = C(g(119)), S = typeof window < "u" && window.document, O = S ? window.innerWidth : 0, q = S ? window.innerHeight : 0, L = function() {
2188
- function R(x) {
2189
- S && (this.debugCtx = R.createCanvas("sn-debug", "1010", x), this.layoutsCtx = R.createCanvas("sn-layouts", "1000", x), this.writingDirection = x);
2190
- }
2191
- return R.createCanvas = function(x, E, $) {
2192
- var T = document.querySelector("#".concat(x)) || document.createElement("canvas");
2193
- T.setAttribute("id", x), T.setAttribute("dir", $ === y.default.LTR ? "ltr" : "rtl");
2194
- var U = T.getContext("2d");
2195
- 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, U;
2196
- }, R.prototype.clear = function() {
2197
- S && this.debugCtx.clearRect(0, 0, O, q);
2198
- }, R.prototype.clearLayouts = function() {
2199
- S && this.layoutsCtx.clearRect(0, 0, O, q);
2200
- }, R.prototype.drawLayout = function(x, E, $) {
2201
- if (S) {
2202
- this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(x.left, x.top, x.width, x.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
2203
- var T = this.writingDirection === y.default.LTR ? "left" : "right", U = x[T];
2204
- this.layoutsCtx.fillText(E, U, x.top + 10), this.layoutsCtx.fillText($, U, x.top + 25), this.layoutsCtx.fillText("".concat(T, ": ").concat(U), U, x.top + 40), this.layoutsCtx.fillText("top: ".concat(x.top), U, x.top + 55);
2205
- }
2206
- }, R.prototype.drawPoint = function(x, E, $, T) {
2207
- $ === 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));
2208
- }, R;
2209
- }();
2210
- l.default = L;
2211
- }, 119: function(b, l) {
2212
- var g;
2213
- Object.defineProperty(l, "__esModule", { value: !0 }), function(C) {
2214
- C[C.LTR = 0] = "LTR", C[C.RTL = 1] = "RTL";
2215
- }(g || (g = {})), l.default = g;
2216
- }, 607: function(b, l, g) {
2217
- var C = this && this.__createBinding || (Object.create ? function(S, O, q, L) {
2218
- L === void 0 && (L = q);
2219
- var R = Object.getOwnPropertyDescriptor(O, q);
2220
- R && !("get" in R ? !O.__esModule : R.writable || R.configurable) || (R = { enumerable: !0, get: function() {
2221
- return O[q];
2222
- } }), Object.defineProperty(S, L, R);
2223
- } : function(S, O, q, L) {
2224
- L === void 0 && (L = q), S[L] = O[q];
2225
- }), y = this && this.__exportStar || function(S, O) {
2226
- for (var q in S) q === "default" || Object.prototype.hasOwnProperty.call(O, q) || C(O, S, q);
2227
- };
2228
- Object.defineProperty(l, "__esModule", { value: !0 }), y(g(79), l), y(g(445), l), y(g(654), l);
2229
- }, 964: function(b, l) {
2230
- Object.defineProperty(l, "__esModule", { value: !0 }), l.getBoundingClientRect = void 0;
2231
- var g = function(C) {
2232
- 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;
2233
- return { height: S, left: q, top: L, width: O };
2234
- };
2235
- l.default = function(C) {
2236
- var y = C && C.parentElement;
2237
- if (C && y) {
2238
- var S = g(y), O = g(C), q = O.height, L = O.left, R = O.top, x = O.width;
2239
- return { x: L - S.left, y: R - S.top, width: x, height: q, left: L, top: R, get right() {
2240
- return this.left + this.width;
2241
- }, get bottom() {
2242
- return this.top + this.height;
2243
- } };
2244
- }
2245
- return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2246
- }, l.getBoundingClientRect = function(C) {
2247
- if (C && C.getBoundingClientRect) {
2248
- var y = C.getBoundingClientRect();
2249
- return { x: y.x, y: y.y, width: y.width, height: y.height, left: y.left, top: y.top, get right() {
2250
- return this.left + this.width;
2251
- }, get bottom() {
2252
- return this.top + this.height;
2253
- } };
2254
- }
2255
- return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2256
- };
2257
- }, 445: function(b, l, g) {
2258
- Object.defineProperty(l, "__esModule", { value: !0 }), l.useFocusContext = l.FocusContext = void 0;
2259
- var C = g(156), y = g(654);
2260
- l.FocusContext = (0, C.createContext)(y.ROOT_FOCUS_KEY), l.FocusContext.displayName = "FocusContext", l.useFocusContext = function() {
2261
- return (0, C.useContext)(l.FocusContext);
2262
- };
2263
- }, 79: function(b, l, g) {
2264
- var C = this && this.__importDefault || function(R) {
2265
- return R && R.__esModule ? R : { default: R };
2266
- };
2267
- Object.defineProperty(l, "__esModule", { value: !0 }), l.useFocusable = void 0;
2268
- var y = g(156), S = C(g(604)), O = C(g(461)), q = g(654), L = g(445);
2269
- l.useFocusable = function(R) {
2270
- var x = R === void 0 ? {} : R, E = x.focusable, $ = E === void 0 || E, T = x.saveLastFocusedChild, U = 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() {
2271
- return !0;
2272
- } : 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) {
2273
- Ce(A, W);
2274
- }, [Ce, A]), k = (0, y.useCallback)(function() {
2275
- Se(A);
2276
- }, [Se, A]), H = (0, y.useCallback)(function(W, Z) {
2277
- return p(W, A, Z);
2278
- }, [A, p]), j = (0, y.useCallback)(function(W) {
2279
- c(W, A);
2280
- }, [c, A]), B = (0, y.useCallback)(function(W, Z) {
2281
- d(W, A, Z);
2282
- }, [A, d]), D = (0, y.useCallback)(function(W, Z) {
2283
- w(W, A, Z);
2284
- }, [A, w]), Y = (0, y.useRef)(null), z = (0, y.useState)(!1), J = z[0], se = z[1], G = (0, y.useState)(!1), V = G[0], fe = G[1], ae = (0, L.useFocusContext)(), ee = (0, y.useMemo)(function() {
2285
- return ce || (0, O.default)("sn:focusable-item-");
2286
- }, [ce]), qe = (0, y.useCallback)(function(W) {
2287
- W === void 0 && (W = {}), q.SpatialNavigation.setFocus(ee, W);
2288
- }, [ee]);
2289
- return (0, y.useEffect)(function() {
2290
- var W = Y.current;
2291
- return q.SpatialNavigation.addFocusable({ focusKey: ee, node: W, parentFocusKey: ae, preferredChildFocusKey: ne, onEnterPress: M, onEnterRelease: k, onArrowPress: H, onArrowRelease: j, onFocus: B, onBlur: D, onUpdateFocus: function(Z) {
2292
- return Z === void 0 && (Z = !1), se(Z);
2293
- }, onUpdateHasFocusedChild: function(Z) {
2294
- return Z === void 0 && (Z = !1), fe(Z);
2295
- }, saveLastFocusedChild: U, trackChildren: te, isFocusBoundary: oe, focusBoundaryDirections: ue, autoRestoreFocus: je, forceFocus: Q, focusable: $ }), function() {
2296
- q.SpatialNavigation.removeFocusable({ focusKey: ee });
2297
- };
2298
- }, []), (0, y.useEffect)(function() {
2299
- var W = Y.current;
2300
- q.SpatialNavigation.updateFocusable(ee, { node: W, preferredChildFocusKey: ne, focusable: $, isFocusBoundary: oe, focusBoundaryDirections: ue, onEnterPress: M, onEnterRelease: k, onArrowPress: H, onArrowRelease: j, onFocus: B, onBlur: D });
2301
- }, [ee, ne, $, oe, ue, M, k, H, j, B, D]), { ref: Y, focusSelf: qe, focused: J, hasFocusedChild: V, focusKey: ee };
2302
- };
2303
- }, 150: function(b) {
2304
- b.exports = t;
2305
- }, 117: function(b) {
2306
- b.exports = n;
2307
- }, 747: function(b) {
2308
- b.exports = a;
2309
- }, 23: function(b) {
2310
- b.exports = i;
2311
- }, 842: function(b) {
2312
- b.exports = o;
2313
- }, 682: function(b) {
2314
- b.exports = u;
2315
- }, 784: function(b) {
2316
- b.exports = v;
2317
- }, 604: function(b) {
2318
- b.exports = h;
2319
- }, 432: function(b) {
2320
- b.exports = m;
2321
- }, 67: function(b) {
2322
- b.exports = _;
2323
- }, 461: function(b) {
2324
- b.exports = I;
2325
- }, 156: function(b) {
2326
- b.exports = P;
2327
- } }, K = {};
2328
- return function b(l) {
2329
- var g = K[l];
2330
- if (g !== void 0) return g.exports;
2331
- var C = K[l] = { exports: {} };
2332
- return N[l].call(C.exports, C, C.exports, b), C.exports;
2333
- }(607);
2334
- }();
2335
- });
2336
- })(ki);
2337
- var If = ki.exports;
174
+ );
2338
175
  export {
2339
- Mf as a,
2340
- Re as c,
2341
- If as d,
2342
- Pf as g
176
+ k as D,
177
+ le as I,
178
+ K as a,
179
+ re as b,
180
+ ae as e,
181
+ ne as o,
182
+ oe as s
2343
183
  };