@streamlayer/react 1.23.2 → 1.24.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 (174) hide show
  1. package/lib/app/masters.d.ts +0 -1
  2. package/lib/cjs/Question.js +1 -1
  3. package/lib/cjs/advertisement.js +203 -28
  4. package/lib/cjs/analytics.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -1
  8. package/lib/cjs/gamification-feature.js +1 -1
  9. package/lib/cjs/gamification-feature2.js +1 -1
  10. package/lib/cjs/hooks-n9ax4LRT.js +1 -0
  11. package/lib/cjs/index-ByUNFvMk.js +5 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -1
  14. package/lib/cjs/index11.js +1 -3
  15. package/lib/cjs/index12.js +1 -1
  16. package/lib/cjs/index13.js +1 -3
  17. package/lib/cjs/index14.js +4 -1
  18. package/lib/cjs/index15.js +1 -1
  19. package/lib/cjs/index16.js +5 -3
  20. package/lib/cjs/index2.js +1 -1
  21. package/lib/cjs/index3.js +1 -1
  22. package/lib/cjs/index4.js +5 -3
  23. package/lib/cjs/index5.js +1 -1
  24. package/lib/cjs/index6.js +1 -1
  25. package/lib/cjs/index7.js +1 -1
  26. package/lib/cjs/index8.js +1 -1
  27. package/lib/cjs/index9.js +7 -1
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +8 -1
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/polymarket.js +14 -9
  35. package/lib/cjs/sl-types.js +1 -1
  36. package/lib/cjs/storage.js +1 -1
  37. package/lib/cjs/theme.js +1 -1
  38. package/lib/cjs/useStreamLayerApp.js +1 -1
  39. package/lib/cjs/useStreamLayerApp2.js +17 -3
  40. package/lib/cjs/utils.js +47 -1
  41. package/lib/classic/app/masters.d.ts +0 -1
  42. package/lib/classic/cjs/Question.js +1 -1
  43. package/lib/classic/cjs/advertisement.js +203 -28
  44. package/lib/classic/cjs/analytics.js +1 -1
  45. package/lib/classic/cjs/auth.js +1 -1
  46. package/lib/classic/cjs/bet-pack.js +5 -3
  47. package/lib/classic/cjs/feature.js +1 -1
  48. package/lib/classic/cjs/gamification-feature.js +1 -1
  49. package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
  50. package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
  51. package/lib/classic/cjs/index.js +1 -1
  52. package/lib/classic/cjs/index10.js +1 -1
  53. package/lib/classic/cjs/index11.js +1 -1
  54. package/lib/classic/cjs/index12.js +1 -1
  55. package/lib/classic/cjs/index13.js +4 -3
  56. package/lib/classic/cjs/index2.js +5 -3
  57. package/lib/classic/cjs/index3.js +1 -1
  58. package/lib/classic/cjs/index4.js +1 -1
  59. package/lib/classic/cjs/index5.js +1 -1
  60. package/lib/classic/cjs/index6.js +1 -1
  61. package/lib/classic/cjs/index7.js +7 -1
  62. package/lib/classic/cjs/index8.js +1 -1
  63. package/lib/classic/cjs/index9.js +1 -3
  64. package/lib/classic/cjs/insight.js +1 -1
  65. package/lib/classic/cjs/notification.js +1 -1
  66. package/lib/classic/cjs/notification2.js +1 -1
  67. package/lib/classic/cjs/pause-ad.js +1 -1
  68. package/lib/classic/cjs/points.js +1 -1
  69. package/lib/classic/cjs/polymarket.js +14 -9
  70. package/lib/classic/cjs/sl-types.js +1 -1
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
  73. package/lib/classic/cjs/utils.js +47 -1
  74. package/lib/classic/es/Question.js +258 -275
  75. package/lib/classic/es/advertisement.js +22128 -38694
  76. package/lib/classic/es/analytics.js +55 -57
  77. package/lib/classic/es/auth.js +8 -14
  78. package/lib/classic/es/bet-pack.js +2413 -2455
  79. package/lib/classic/es/feature.js +46 -95
  80. package/lib/classic/es/gamification-feature.js +2 -2
  81. package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
  82. package/lib/classic/es/index-ByUNFvMk.js +3775 -0
  83. package/lib/classic/es/index.js +13 -16
  84. package/lib/classic/es/index10.js +2587 -83
  85. package/lib/classic/es/index11.js +305 -3087
  86. package/lib/classic/es/index12.js +121 -124
  87. package/lib/classic/es/index13.js +559 -589
  88. package/lib/classic/es/index2.js +1755 -2114
  89. package/lib/classic/es/index3.js +13 -13
  90. package/lib/classic/es/index4.js +4 -283
  91. package/lib/classic/es/index5.js +5 -5
  92. package/lib/classic/es/index6.js +285 -10
  93. package/lib/classic/es/index7.js +179 -6
  94. package/lib/classic/es/index8.js +5 -10
  95. package/lib/classic/es/index9.js +8 -318
  96. package/lib/classic/es/insight.js +54 -61
  97. package/lib/classic/es/notification.js +5 -5
  98. package/lib/classic/es/notification2.js +730 -787
  99. package/lib/classic/es/pause-ad.js +168 -191
  100. package/lib/classic/es/points.js +47 -55
  101. package/lib/classic/es/polymarket.js +4058 -4289
  102. package/lib/classic/es/sl-types.js +128 -298
  103. package/lib/classic/es/useStreamLayerApp.js +2 -2
  104. package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
  105. package/lib/classic/es/utils.js +28 -28
  106. package/lib/classic/index.d.ts +0 -1
  107. package/lib/classic/source.css +110 -0
  108. package/lib/dist/cjs/gamification-feature.js +1 -1
  109. package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
  110. package/lib/dist/cjs/index.js +1 -1
  111. package/lib/dist/cjs/masters.js +69 -3
  112. package/lib/dist/es/gamification-feature.js +2 -2
  113. package/lib/dist/es/index-ByUNFvMk.js +3775 -0
  114. package/lib/dist/es/index.js +7 -10
  115. package/lib/dist/es/masters.js +16944 -19645
  116. package/lib/dist/index.d.ts +7 -17
  117. package/lib/dist/source.css +64 -0
  118. package/lib/es/Question.js +101 -105
  119. package/lib/es/advertisement.js +22128 -38694
  120. package/lib/es/analytics.js +55 -57
  121. package/lib/es/auth.js +8 -14
  122. package/lib/es/bet-pack.js +18 -29
  123. package/lib/es/feature.js +46 -95
  124. package/lib/es/gamification-feature.js +2 -2
  125. package/lib/es/gamification-feature2.js +2 -2
  126. package/lib/es/hooks-n9ax4LRT.js +97 -0
  127. package/lib/es/index-ByUNFvMk.js +3775 -0
  128. package/lib/es/index.js +13 -17
  129. package/lib/es/index10.js +8 -274
  130. package/lib/es/index11.js +172 -837
  131. package/lib/es/index12.js +2587 -183
  132. package/lib/es/index13.js +258 -314
  133. package/lib/es/index14.js +813 -81
  134. package/lib/es/index15.js +305 -3087
  135. package/lib/es/index16.js +803 -1005
  136. package/lib/es/index2.js +980 -1133
  137. package/lib/es/index3.js +4 -3
  138. package/lib/es/index4.js +2401 -2431
  139. package/lib/es/index5.js +13 -13
  140. package/lib/es/index6.js +5 -285
  141. package/lib/es/index7.js +7 -10
  142. package/lib/es/index8.js +283 -5
  143. package/lib/es/index9.js +180 -10
  144. package/lib/es/insight.js +54 -61
  145. package/lib/es/masters.js +5 -7
  146. package/lib/es/masters2.js +538 -708
  147. package/lib/es/notification.js +663 -719
  148. package/lib/es/pause-ad.js +168 -191
  149. package/lib/es/points.js +48 -56
  150. package/lib/es/polymarket.js +4058 -4289
  151. package/lib/es/sl-types.js +128 -317
  152. package/lib/es/storage.js +74 -75
  153. package/lib/es/theme.js +3 -190
  154. package/lib/es/useStreamLayerApp.js +2 -2
  155. package/lib/es/useStreamLayerApp2.js +9090 -11121
  156. package/lib/es/utils.js +28 -28
  157. package/lib/index.d.ts +0 -1
  158. package/lib/source.css +120 -0
  159. package/lib/style.css +1 -1
  160. package/package.json +21 -24
  161. package/lib/cjs/hooks-WfHlJH12.js +0 -1
  162. package/lib/cjs/index-eShKGO10.js +0 -1
  163. package/lib/cjs/style.css +0 -1
  164. package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
  165. package/lib/classic/cjs/index-eShKGO10.js +0 -1
  166. package/lib/classic/cjs/style.css +0 -1
  167. package/lib/classic/es/hooks-WfHlJH12.js +0 -98
  168. package/lib/classic/es/index-eShKGO10.js +0 -3757
  169. package/lib/classic/style.css +0 -1
  170. package/lib/dist/cjs/index-eShKGO10.js +0 -1
  171. package/lib/dist/es/index-eShKGO10.js +0 -3757
  172. package/lib/dist/style.css +0 -1
  173. package/lib/es/hooks-WfHlJH12.js +0 -98
  174. package/lib/es/index-eShKGO10.js +0 -3757
@@ -1,88 +1,2592 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { d as distExports } from "./index11.js";
3
- import { useEffect, useState, useCallback } from "react";
4
- import { s as styled_default, N, I, O as O$2, S } from "./sl-types.js";
5
- import { CountdownCircleTimer } from "react-countdown-circle-timer";
6
- import { B as B1 } from "./index4.js";
7
- const a = (t) => {
8
- const { Component: e, options: n, customOptions: r, autoFocus: o, ...i } = t, u2 = distExports.useFocusable({
9
- ...n,
10
- ...r,
11
- onEnterPress: () => {
12
- var c;
13
- return (c = t.onClick) == null ? void 0 : c.call(t, { currentTarget: u2.ref.current, stopPropagation: () => {
14
- } });
1
+ import wu from "react";
2
+ var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function Dc(r) {
4
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5
+ }
6
+ function Lc(r) {
7
+ if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
8
+ var e = r.default;
9
+ if (typeof e == "function") {
10
+ var t = function n() {
11
+ var a = !1;
12
+ try {
13
+ a = this instanceof n;
14
+ } catch {
15
+ }
16
+ return a ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
17
+ };
18
+ t.prototype = e.prototype;
19
+ } else t = {};
20
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
21
+ var a = Object.getOwnPropertyDescriptor(r, n);
22
+ Object.defineProperty(t, n, a.get ? a : {
23
+ enumerable: !0,
24
+ get: function() {
25
+ return r[n];
26
+ }
27
+ });
28
+ }), t;
29
+ }
30
+ var Ke = { exports: {} }, Ne, ra;
31
+ function le() {
32
+ if (ra) return Ne;
33
+ ra = 1;
34
+ function r(e) {
35
+ var t = typeof e;
36
+ return e != null && (t == "object" || t == "function");
37
+ }
38
+ return Ne = r, Ne;
39
+ }
40
+ var Be, ta;
41
+ function nu() {
42
+ if (ta) return Be;
43
+ ta = 1;
44
+ var r = typeof Se == "object" && Se && Se.Object === Object && Se;
45
+ return Be = r, Be;
46
+ }
47
+ var je, na;
48
+ function ie() {
49
+ if (na) return je;
50
+ na = 1;
51
+ var r = nu(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")();
52
+ return je = t, je;
53
+ }
54
+ var ke, aa;
55
+ function Au() {
56
+ if (aa) return ke;
57
+ aa = 1;
58
+ var r = ie(), e = function() {
59
+ return r.Date.now();
60
+ };
61
+ return ke = e, ke;
62
+ }
63
+ var He, ia;
64
+ function Tu() {
65
+ if (ia) return He;
66
+ ia = 1;
67
+ var r = /\s/;
68
+ function e(t) {
69
+ for (var n = t.length; n-- && r.test(t.charAt(n)); )
70
+ ;
71
+ return n;
72
+ }
73
+ return He = e, He;
74
+ }
75
+ var Ge, sa;
76
+ function Ou() {
77
+ if (sa) return Ge;
78
+ sa = 1;
79
+ var r = Tu(), e = /^\s+/;
80
+ function t(n) {
81
+ return n && n.slice(0, r(n) + 1).replace(e, "");
82
+ }
83
+ return Ge = t, Ge;
84
+ }
85
+ var Ue, ua;
86
+ function Ce() {
87
+ if (ua) return Ue;
88
+ ua = 1;
89
+ var r = ie(), e = r.Symbol;
90
+ return Ue = e, Ue;
91
+ }
92
+ var ze, oa;
93
+ function xu() {
94
+ if (oa) return ze;
95
+ oa = 1;
96
+ var r = Ce(), e = Object.prototype, t = e.hasOwnProperty, n = e.toString, a = r ? r.toStringTag : void 0;
97
+ function i(s) {
98
+ var o = t.call(s, a), l = s[a];
99
+ try {
100
+ s[a] = void 0;
101
+ var h = !0;
102
+ } catch {
103
+ }
104
+ var m = n.call(s);
105
+ return h && (o ? s[a] = l : delete s[a]), m;
106
+ }
107
+ return ze = i, ze;
108
+ }
109
+ var We, ca;
110
+ function Su() {
111
+ if (ca) return We;
112
+ ca = 1;
113
+ var r = Object.prototype, e = r.toString;
114
+ function t(n) {
115
+ return e.call(n);
116
+ }
117
+ return We = t, We;
118
+ }
119
+ var $e, fa;
120
+ function Fe() {
121
+ if (fa) return $e;
122
+ fa = 1;
123
+ var r = Ce(), e = xu(), t = Su(), n = "[object Null]", a = "[object Undefined]", i = r ? r.toStringTag : void 0;
124
+ function s(o) {
125
+ return o == null ? o === void 0 ? a : n : i && i in Object(o) ? e(o) : t(o);
126
+ }
127
+ return $e = s, $e;
128
+ }
129
+ var Ye, la;
130
+ function he() {
131
+ if (la) return Ye;
132
+ la = 1;
133
+ function r(e) {
134
+ return e != null && typeof e == "object";
135
+ }
136
+ return Ye = r, Ye;
137
+ }
138
+ var Je, da;
139
+ function Re() {
140
+ if (da) return Je;
141
+ da = 1;
142
+ var r = Fe(), e = he(), t = "[object Symbol]";
143
+ function n(a) {
144
+ return typeof a == "symbol" || e(a) && r(a) == t;
145
+ }
146
+ return Je = n, Je;
147
+ }
148
+ var Xe, ha;
149
+ function Ku() {
150
+ if (ha) return Xe;
151
+ ha = 1;
152
+ var r = Ou(), e = le(), t = Re(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, o = parseInt;
153
+ function l(h) {
154
+ if (typeof h == "number")
155
+ return h;
156
+ if (t(h))
157
+ return n;
158
+ if (e(h)) {
159
+ var m = typeof h.valueOf == "function" ? h.valueOf() : h;
160
+ h = e(m) ? m + "" : m;
161
+ }
162
+ if (typeof h != "string")
163
+ return h === 0 ? h : +h;
164
+ h = r(h);
165
+ var _ = i.test(h);
166
+ return _ || s.test(h) ? o(h.slice(2), _ ? 2 : 8) : a.test(h) ? n : +h;
167
+ }
168
+ return Xe = l, Xe;
169
+ }
170
+ var Ze, va;
171
+ function au() {
172
+ if (va) return Ze;
173
+ va = 1;
174
+ var r = le(), e = Au(), t = Ku(), n = "Expected a function", a = Math.max, i = Math.min;
175
+ function s(o, l, h) {
176
+ var m, _, S, P, L, K, b = 0, d = !1, p = !1, q = !0;
177
+ if (typeof o != "function")
178
+ throw new TypeError(n);
179
+ l = t(l) || 0, r(h) && (d = !!h.leading, p = "maxWait" in h, S = p ? a(t(h.maxWait) || 0, l) : S, q = "trailing" in h ? !!h.trailing : q);
180
+ function g(A) {
181
+ var U = m, J = _;
182
+ return m = _ = void 0, b = A, P = o.apply(J, U), P;
183
+ }
184
+ function E(A) {
185
+ return b = A, L = setTimeout(N, l), d ? g(A) : P;
186
+ }
187
+ function O(A) {
188
+ var U = A - K, J = A - b, te = l - U;
189
+ return p ? i(te, S - J) : te;
190
+ }
191
+ function F(A) {
192
+ var U = A - K, J = A - b;
193
+ return K === void 0 || U >= l || U < 0 || p && J >= S;
194
+ }
195
+ function N() {
196
+ var A = e();
197
+ if (F(A))
198
+ return R(A);
199
+ L = setTimeout(N, O(A));
200
+ }
201
+ function R(A) {
202
+ return L = void 0, q && m ? g(A) : (m = _ = void 0, P);
203
+ }
204
+ function x() {
205
+ L !== void 0 && clearTimeout(L), b = 0, m = K = _ = L = void 0;
206
+ }
207
+ function M() {
208
+ return L === void 0 ? P : R(e());
209
+ }
210
+ function H() {
211
+ var A = e(), U = F(A);
212
+ if (m = arguments, _ = this, K = A, U) {
213
+ if (L === void 0)
214
+ return E(K);
215
+ if (p)
216
+ return clearTimeout(L), L = setTimeout(N, l), g(K);
217
+ }
218
+ return L === void 0 && (L = setTimeout(N, l)), P;
219
+ }
220
+ return H.cancel = x, H.flush = M, H;
221
+ }
222
+ return Ze = s, Ze;
223
+ }
224
+ var Qe, pa;
225
+ function iu() {
226
+ if (pa) return Qe;
227
+ pa = 1;
228
+ var r = Fe(), e = le(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
229
+ function s(o) {
230
+ if (!e(o))
231
+ return !1;
232
+ var l = r(o);
233
+ return l == n || l == a || l == t || l == i;
234
+ }
235
+ return Qe = s, Qe;
236
+ }
237
+ var Ve, ya;
238
+ function Pu() {
239
+ if (ya) return Ve;
240
+ ya = 1;
241
+ var r = ie(), e = r["__core-js_shared__"];
242
+ return Ve = e, Ve;
243
+ }
244
+ var er, ga;
245
+ function Eu() {
246
+ if (ga) return er;
247
+ ga = 1;
248
+ var r = Pu(), e = (function() {
249
+ var n = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || "");
250
+ return n ? "Symbol(src)_1." + n : "";
251
+ })();
252
+ function t(n) {
253
+ return !!e && e in n;
254
+ }
255
+ return er = t, er;
256
+ }
257
+ var rr, _a;
258
+ function su() {
259
+ if (_a) return rr;
260
+ _a = 1;
261
+ var r = Function.prototype, e = r.toString;
262
+ function t(n) {
263
+ if (n != null) {
264
+ try {
265
+ return e.call(n);
266
+ } catch {
267
+ }
268
+ try {
269
+ return n + "";
270
+ } catch {
271
+ }
272
+ }
273
+ return "";
274
+ }
275
+ return rr = t, rr;
276
+ }
277
+ var tr, ba;
278
+ function Mu() {
279
+ if (ba) return tr;
280
+ ba = 1;
281
+ var r = iu(), e = Eu(), t = le(), n = su(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, l = s.toString, h = o.hasOwnProperty, m = RegExp(
282
+ "^" + l.call(h).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
283
+ );
284
+ function _(S) {
285
+ if (!t(S) || e(S))
286
+ return !1;
287
+ var P = r(S) ? m : i;
288
+ return P.test(n(S));
289
+ }
290
+ return tr = _, tr;
291
+ }
292
+ var nr, ma;
293
+ function Iu() {
294
+ if (ma) return nr;
295
+ ma = 1;
296
+ function r(e, t) {
297
+ return e?.[t];
298
+ }
299
+ return nr = r, nr;
300
+ }
301
+ var ar, qa;
302
+ function de() {
303
+ if (qa) return ar;
304
+ qa = 1;
305
+ var r = Mu(), e = Iu();
306
+ function t(n, a) {
307
+ var i = e(n, a);
308
+ return r(i) ? i : void 0;
309
+ }
310
+ return ar = t, ar;
311
+ }
312
+ var ir, Ca;
313
+ function Pe() {
314
+ if (Ca) return ir;
315
+ Ca = 1;
316
+ var r = de(), e = r(Object, "create");
317
+ return ir = e, ir;
318
+ }
319
+ var sr, Fa;
320
+ function Du() {
321
+ if (Fa) return sr;
322
+ Fa = 1;
323
+ var r = Pe();
324
+ function e() {
325
+ this.__data__ = r ? r(null) : {}, this.size = 0;
326
+ }
327
+ return sr = e, sr;
328
+ }
329
+ var ur, Ra;
330
+ function Lu() {
331
+ if (Ra) return ur;
332
+ Ra = 1;
333
+ function r(e) {
334
+ var t = this.has(e) && delete this.__data__[e];
335
+ return this.size -= t ? 1 : 0, t;
336
+ }
337
+ return ur = r, ur;
338
+ }
339
+ var or, wa;
340
+ function Nu() {
341
+ if (wa) return or;
342
+ wa = 1;
343
+ var r = Pe(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty;
344
+ function a(i) {
345
+ var s = this.__data__;
346
+ if (r) {
347
+ var o = s[i];
348
+ return o === e ? void 0 : o;
349
+ }
350
+ return n.call(s, i) ? s[i] : void 0;
351
+ }
352
+ return or = a, or;
353
+ }
354
+ var cr, Aa;
355
+ function Bu() {
356
+ if (Aa) return cr;
357
+ Aa = 1;
358
+ var r = Pe(), e = Object.prototype, t = e.hasOwnProperty;
359
+ function n(a) {
360
+ var i = this.__data__;
361
+ return r ? i[a] !== void 0 : t.call(i, a);
362
+ }
363
+ return cr = n, cr;
364
+ }
365
+ var fr, Ta;
366
+ function ju() {
367
+ if (Ta) return fr;
368
+ Ta = 1;
369
+ var r = Pe(), e = "__lodash_hash_undefined__";
370
+ function t(n, a) {
371
+ var i = this.__data__;
372
+ return this.size += this.has(n) ? 0 : 1, i[n] = r && a === void 0 ? e : a, this;
373
+ }
374
+ return fr = t, fr;
375
+ }
376
+ var lr, Oa;
377
+ function ku() {
378
+ if (Oa) return lr;
379
+ Oa = 1;
380
+ var r = Du(), e = Lu(), t = Nu(), n = Bu(), a = ju();
381
+ function i(s) {
382
+ var o = -1, l = s == null ? 0 : s.length;
383
+ for (this.clear(); ++o < l; ) {
384
+ var h = s[o];
385
+ this.set(h[0], h[1]);
386
+ }
387
+ }
388
+ return i.prototype.clear = r, i.prototype.delete = e, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, lr = i, lr;
389
+ }
390
+ var dr, xa;
391
+ function Hu() {
392
+ if (xa) return dr;
393
+ xa = 1;
394
+ function r() {
395
+ this.__data__ = [], this.size = 0;
396
+ }
397
+ return dr = r, dr;
398
+ }
399
+ var hr, Sa;
400
+ function Nn() {
401
+ if (Sa) return hr;
402
+ Sa = 1;
403
+ function r(e, t) {
404
+ return e === t || e !== e && t !== t;
405
+ }
406
+ return hr = r, hr;
407
+ }
408
+ var vr, Ka;
409
+ function Ee() {
410
+ if (Ka) return vr;
411
+ Ka = 1;
412
+ var r = Nn();
413
+ function e(t, n) {
414
+ for (var a = t.length; a--; )
415
+ if (r(t[a][0], n))
416
+ return a;
417
+ return -1;
418
+ }
419
+ return vr = e, vr;
420
+ }
421
+ var pr, Pa;
422
+ function Gu() {
423
+ if (Pa) return pr;
424
+ Pa = 1;
425
+ var r = Ee(), e = Array.prototype, t = e.splice;
426
+ function n(a) {
427
+ var i = this.__data__, s = r(i, a);
428
+ if (s < 0)
429
+ return !1;
430
+ var o = i.length - 1;
431
+ return s == o ? i.pop() : t.call(i, s, 1), --this.size, !0;
432
+ }
433
+ return pr = n, pr;
434
+ }
435
+ var yr, Ea;
436
+ function Uu() {
437
+ if (Ea) return yr;
438
+ Ea = 1;
439
+ var r = Ee();
440
+ function e(t) {
441
+ var n = this.__data__, a = r(n, t);
442
+ return a < 0 ? void 0 : n[a][1];
443
+ }
444
+ return yr = e, yr;
445
+ }
446
+ var gr, Ma;
447
+ function zu() {
448
+ if (Ma) return gr;
449
+ Ma = 1;
450
+ var r = Ee();
451
+ function e(t) {
452
+ return r(this.__data__, t) > -1;
453
+ }
454
+ return gr = e, gr;
455
+ }
456
+ var _r, Ia;
457
+ function Wu() {
458
+ if (Ia) return _r;
459
+ Ia = 1;
460
+ var r = Ee();
461
+ function e(t, n) {
462
+ var a = this.__data__, i = r(a, t);
463
+ return i < 0 ? (++this.size, a.push([t, n])) : a[i][1] = n, this;
464
+ }
465
+ return _r = e, _r;
466
+ }
467
+ var br, Da;
468
+ function Me() {
469
+ if (Da) return br;
470
+ Da = 1;
471
+ var r = Hu(), e = Gu(), t = Uu(), n = zu(), a = Wu();
472
+ function i(s) {
473
+ var o = -1, l = s == null ? 0 : s.length;
474
+ for (this.clear(); ++o < l; ) {
475
+ var h = s[o];
476
+ this.set(h[0], h[1]);
15
477
  }
478
+ }
479
+ return i.prototype.clear = r, i.prototype.delete = e, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, br = i, br;
480
+ }
481
+ var mr, La;
482
+ function Bn() {
483
+ if (La) return mr;
484
+ La = 1;
485
+ var r = de(), e = ie(), t = r(e, "Map");
486
+ return mr = t, mr;
487
+ }
488
+ var qr, Na;
489
+ function $u() {
490
+ if (Na) return qr;
491
+ Na = 1;
492
+ var r = ku(), e = Me(), t = Bn();
493
+ function n() {
494
+ this.size = 0, this.__data__ = {
495
+ hash: new r(),
496
+ map: new (t || e)(),
497
+ string: new r()
498
+ };
499
+ }
500
+ return qr = n, qr;
501
+ }
502
+ var Cr, Ba;
503
+ function Yu() {
504
+ if (Ba) return Cr;
505
+ Ba = 1;
506
+ function r(e) {
507
+ var t = typeof e;
508
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
509
+ }
510
+ return Cr = r, Cr;
511
+ }
512
+ var Fr, ja;
513
+ function Ie() {
514
+ if (ja) return Fr;
515
+ ja = 1;
516
+ var r = Yu();
517
+ function e(t, n) {
518
+ var a = t.__data__;
519
+ return r(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
520
+ }
521
+ return Fr = e, Fr;
522
+ }
523
+ var Rr, ka;
524
+ function Ju() {
525
+ if (ka) return Rr;
526
+ ka = 1;
527
+ var r = Ie();
528
+ function e(t) {
529
+ var n = r(this, t).delete(t);
530
+ return this.size -= n ? 1 : 0, n;
531
+ }
532
+ return Rr = e, Rr;
533
+ }
534
+ var wr, Ha;
535
+ function Xu() {
536
+ if (Ha) return wr;
537
+ Ha = 1;
538
+ var r = Ie();
539
+ function e(t) {
540
+ return r(this, t).get(t);
541
+ }
542
+ return wr = e, wr;
543
+ }
544
+ var Ar, Ga;
545
+ function Zu() {
546
+ if (Ga) return Ar;
547
+ Ga = 1;
548
+ var r = Ie();
549
+ function e(t) {
550
+ return r(this, t).has(t);
551
+ }
552
+ return Ar = e, Ar;
553
+ }
554
+ var Tr, Ua;
555
+ function Qu() {
556
+ if (Ua) return Tr;
557
+ Ua = 1;
558
+ var r = Ie();
559
+ function e(t, n) {
560
+ var a = r(this, t), i = a.size;
561
+ return a.set(t, n), this.size += a.size == i ? 0 : 1, this;
562
+ }
563
+ return Tr = e, Tr;
564
+ }
565
+ var Or, za;
566
+ function jn() {
567
+ if (za) return Or;
568
+ za = 1;
569
+ var r = $u(), e = Ju(), t = Xu(), n = Zu(), a = Qu();
570
+ function i(s) {
571
+ var o = -1, l = s == null ? 0 : s.length;
572
+ for (this.clear(); ++o < l; ) {
573
+ var h = s[o];
574
+ this.set(h[0], h[1]);
575
+ }
576
+ }
577
+ return i.prototype.clear = r, i.prototype.delete = e, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, Or = i, Or;
578
+ }
579
+ var xr, Wa;
580
+ function Vu() {
581
+ if (Wa) return xr;
582
+ Wa = 1;
583
+ var r = "__lodash_hash_undefined__";
584
+ function e(t) {
585
+ return this.__data__.set(t, r), this;
586
+ }
587
+ return xr = e, xr;
588
+ }
589
+ var Sr, $a;
590
+ function eo() {
591
+ if ($a) return Sr;
592
+ $a = 1;
593
+ function r(e) {
594
+ return this.__data__.has(e);
595
+ }
596
+ return Sr = r, Sr;
597
+ }
598
+ var Kr, Ya;
599
+ function uu() {
600
+ if (Ya) return Kr;
601
+ Ya = 1;
602
+ var r = jn(), e = Vu(), t = eo();
603
+ function n(a) {
604
+ var i = -1, s = a == null ? 0 : a.length;
605
+ for (this.__data__ = new r(); ++i < s; )
606
+ this.add(a[i]);
607
+ }
608
+ return n.prototype.add = n.prototype.push = e, n.prototype.has = t, Kr = n, Kr;
609
+ }
610
+ var Pr, Ja;
611
+ function ro() {
612
+ if (Ja) return Pr;
613
+ Ja = 1;
614
+ function r(e, t, n, a) {
615
+ for (var i = e.length, s = n + (a ? 1 : -1); a ? s-- : ++s < i; )
616
+ if (t(e[s], s, e))
617
+ return s;
618
+ return -1;
619
+ }
620
+ return Pr = r, Pr;
621
+ }
622
+ var Er, Xa;
623
+ function to() {
624
+ if (Xa) return Er;
625
+ Xa = 1;
626
+ function r(e) {
627
+ return e !== e;
628
+ }
629
+ return Er = r, Er;
630
+ }
631
+ var Mr, Za;
632
+ function no() {
633
+ if (Za) return Mr;
634
+ Za = 1;
635
+ function r(e, t, n) {
636
+ for (var a = n - 1, i = e.length; ++a < i; )
637
+ if (e[a] === t)
638
+ return a;
639
+ return -1;
640
+ }
641
+ return Mr = r, Mr;
642
+ }
643
+ var Ir, Qa;
644
+ function ao() {
645
+ if (Qa) return Ir;
646
+ Qa = 1;
647
+ var r = ro(), e = to(), t = no();
648
+ function n(a, i, s) {
649
+ return i === i ? t(a, i, s) : r(a, e, s);
650
+ }
651
+ return Ir = n, Ir;
652
+ }
653
+ var Dr, Va;
654
+ function io() {
655
+ if (Va) return Dr;
656
+ Va = 1;
657
+ var r = ao();
658
+ function e(t, n) {
659
+ var a = t == null ? 0 : t.length;
660
+ return !!a && r(t, n, 0) > -1;
661
+ }
662
+ return Dr = e, Dr;
663
+ }
664
+ var Lr, ei;
665
+ function so() {
666
+ if (ei) return Lr;
667
+ ei = 1;
668
+ function r(e, t, n) {
669
+ for (var a = -1, i = e == null ? 0 : e.length; ++a < i; )
670
+ if (n(t, e[a]))
671
+ return !0;
672
+ return !1;
673
+ }
674
+ return Lr = r, Lr;
675
+ }
676
+ var Nr, ri;
677
+ function kn() {
678
+ if (ri) return Nr;
679
+ ri = 1;
680
+ function r(e, t) {
681
+ for (var n = -1, a = e == null ? 0 : e.length, i = Array(a); ++n < a; )
682
+ i[n] = t(e[n], n, e);
683
+ return i;
684
+ }
685
+ return Nr = r, Nr;
686
+ }
687
+ var Br, ti;
688
+ function Hn() {
689
+ if (ti) return Br;
690
+ ti = 1;
691
+ function r(e) {
692
+ return function(t) {
693
+ return e(t);
694
+ };
695
+ }
696
+ return Br = r, Br;
697
+ }
698
+ var jr, ni;
699
+ function ou() {
700
+ if (ni) return jr;
701
+ ni = 1;
702
+ function r(e, t) {
703
+ return e.has(t);
704
+ }
705
+ return jr = r, jr;
706
+ }
707
+ var kr, ai;
708
+ function uo() {
709
+ if (ai) return kr;
710
+ ai = 1;
711
+ var r = uu(), e = io(), t = so(), n = kn(), a = Hn(), i = ou(), s = 200;
712
+ function o(l, h, m, _) {
713
+ var S = -1, P = e, L = !0, K = l.length, b = [], d = h.length;
714
+ if (!K)
715
+ return b;
716
+ m && (h = n(h, a(m))), _ ? (P = t, L = !1) : h.length >= s && (P = i, L = !1, h = new r(h));
717
+ e:
718
+ for (; ++S < K; ) {
719
+ var p = l[S], q = m == null ? p : m(p);
720
+ if (p = _ || p !== 0 ? p : 0, L && q === q) {
721
+ for (var g = d; g--; )
722
+ if (h[g] === q)
723
+ continue e;
724
+ b.push(p);
725
+ } else P(h, q, _) || b.push(p);
726
+ }
727
+ return b;
728
+ }
729
+ return kr = o, kr;
730
+ }
731
+ var Hr, ii;
732
+ function cu() {
733
+ if (ii) return Hr;
734
+ ii = 1;
735
+ function r(e, t) {
736
+ for (var n = -1, a = t.length, i = e.length; ++n < a; )
737
+ e[i + n] = t[n];
738
+ return e;
739
+ }
740
+ return Hr = r, Hr;
741
+ }
742
+ var Gr, si;
743
+ function oo() {
744
+ if (si) return Gr;
745
+ si = 1;
746
+ var r = Fe(), e = he(), t = "[object Arguments]";
747
+ function n(a) {
748
+ return e(a) && r(a) == t;
749
+ }
750
+ return Gr = n, Gr;
751
+ }
752
+ var Ur, ui;
753
+ function Gn() {
754
+ if (ui) return Ur;
755
+ ui = 1;
756
+ var r = oo(), e = he(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, i = r(/* @__PURE__ */ (function() {
757
+ return arguments;
758
+ })()) ? r : function(s) {
759
+ return e(s) && n.call(s, "callee") && !a.call(s, "callee");
760
+ };
761
+ return Ur = i, Ur;
762
+ }
763
+ var zr, oi;
764
+ function re() {
765
+ if (oi) return zr;
766
+ oi = 1;
767
+ var r = Array.isArray;
768
+ return zr = r, zr;
769
+ }
770
+ var Wr, ci;
771
+ function co() {
772
+ if (ci) return Wr;
773
+ ci = 1;
774
+ var r = Ce(), e = Gn(), t = re(), n = r ? r.isConcatSpreadable : void 0;
775
+ function a(i) {
776
+ return t(i) || e(i) || !!(n && i && i[n]);
777
+ }
778
+ return Wr = a, Wr;
779
+ }
780
+ var $r, fi;
781
+ function fu() {
782
+ if (fi) return $r;
783
+ fi = 1;
784
+ var r = cu(), e = co();
785
+ function t(n, a, i, s, o) {
786
+ var l = -1, h = n.length;
787
+ for (i || (i = e), o || (o = []); ++l < h; ) {
788
+ var m = n[l];
789
+ a > 0 && i(m) ? a > 1 ? t(m, a - 1, i, s, o) : r(o, m) : s || (o[o.length] = m);
790
+ }
791
+ return o;
792
+ }
793
+ return $r = t, $r;
794
+ }
795
+ var Yr, li;
796
+ function we() {
797
+ if (li) return Yr;
798
+ li = 1;
799
+ function r(e) {
800
+ return e;
801
+ }
802
+ return Yr = r, Yr;
803
+ }
804
+ var Jr, di;
805
+ function fo() {
806
+ if (di) return Jr;
807
+ di = 1;
808
+ function r(e, t, n) {
809
+ switch (n.length) {
810
+ case 0:
811
+ return e.call(t);
812
+ case 1:
813
+ return e.call(t, n[0]);
814
+ case 2:
815
+ return e.call(t, n[0], n[1]);
816
+ case 3:
817
+ return e.call(t, n[0], n[1], n[2]);
818
+ }
819
+ return e.apply(t, n);
820
+ }
821
+ return Jr = r, Jr;
822
+ }
823
+ var Xr, hi;
824
+ function lo() {
825
+ if (hi) return Xr;
826
+ hi = 1;
827
+ var r = fo(), e = Math.max;
828
+ function t(n, a, i) {
829
+ return a = e(a === void 0 ? n.length - 1 : a, 0), function() {
830
+ for (var s = arguments, o = -1, l = e(s.length - a, 0), h = Array(l); ++o < l; )
831
+ h[o] = s[a + o];
832
+ o = -1;
833
+ for (var m = Array(a + 1); ++o < a; )
834
+ m[o] = s[o];
835
+ return m[a] = i(h), r(n, this, m);
836
+ };
837
+ }
838
+ return Xr = t, Xr;
839
+ }
840
+ var Zr, vi;
841
+ function ho() {
842
+ if (vi) return Zr;
843
+ vi = 1;
844
+ function r(e) {
845
+ return function() {
846
+ return e;
847
+ };
848
+ }
849
+ return Zr = r, Zr;
850
+ }
851
+ var Qr, pi;
852
+ function vo() {
853
+ if (pi) return Qr;
854
+ pi = 1;
855
+ var r = de(), e = (function() {
856
+ try {
857
+ var t = r(Object, "defineProperty");
858
+ return t({}, "", {}), t;
859
+ } catch {
860
+ }
861
+ })();
862
+ return Qr = e, Qr;
863
+ }
864
+ var Vr, yi;
865
+ function po() {
866
+ if (yi) return Vr;
867
+ yi = 1;
868
+ var r = ho(), e = vo(), t = we(), n = e ? function(a, i) {
869
+ return e(a, "toString", {
870
+ configurable: !0,
871
+ enumerable: !1,
872
+ value: r(i),
873
+ writable: !0
874
+ });
875
+ } : t;
876
+ return Vr = n, Vr;
877
+ }
878
+ var et, gi;
879
+ function yo() {
880
+ if (gi) return et;
881
+ gi = 1;
882
+ var r = 800, e = 16, t = Date.now;
883
+ function n(a) {
884
+ var i = 0, s = 0;
885
+ return function() {
886
+ var o = t(), l = e - (o - s);
887
+ if (s = o, l > 0) {
888
+ if (++i >= r)
889
+ return arguments[0];
890
+ } else
891
+ i = 0;
892
+ return a.apply(void 0, arguments);
893
+ };
894
+ }
895
+ return et = n, et;
896
+ }
897
+ var rt, _i;
898
+ function go() {
899
+ if (_i) return rt;
900
+ _i = 1;
901
+ var r = po(), e = yo(), t = e(r);
902
+ return rt = t, rt;
903
+ }
904
+ var tt, bi;
905
+ function lu() {
906
+ if (bi) return tt;
907
+ bi = 1;
908
+ var r = we(), e = lo(), t = go();
909
+ function n(a, i) {
910
+ return t(e(a, i, r), a + "");
911
+ }
912
+ return tt = n, tt;
913
+ }
914
+ var nt, mi;
915
+ function Un() {
916
+ if (mi) return nt;
917
+ mi = 1;
918
+ var r = 9007199254740991;
919
+ function e(t) {
920
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= r;
921
+ }
922
+ return nt = e, nt;
923
+ }
924
+ var at, qi;
925
+ function Ae() {
926
+ if (qi) return at;
927
+ qi = 1;
928
+ var r = iu(), e = Un();
929
+ function t(n) {
930
+ return n != null && e(n.length) && !r(n);
931
+ }
932
+ return at = t, at;
933
+ }
934
+ var it, Ci;
935
+ function _o() {
936
+ if (Ci) return it;
937
+ Ci = 1;
938
+ var r = Ae(), e = he();
939
+ function t(n) {
940
+ return e(n) && r(n);
941
+ }
942
+ return it = t, it;
943
+ }
944
+ var st, Fi;
945
+ function bo() {
946
+ if (Fi) return st;
947
+ Fi = 1;
948
+ var r = uo(), e = fu(), t = lu(), n = _o(), a = t(function(i, s) {
949
+ return n(i) ? r(i, e(s, 1, n, !0)) : [];
16
950
  });
17
- return useEffect(() => {
18
- o && u2.focusSelf();
19
- }, []), /* @__PURE__ */ jsx(e, { ...i, ...u2, "data-is-with-focus": "true" });
20
- };
21
- function O$1(t, e) {
22
- return ({ webos: n, options: r, ...o }) => n ? /* @__PURE__ */ jsx(a, { Component: t, options: e, customOptions: r, ...o }) : /* @__PURE__ */ jsx(t, { ...o });
23
- }
24
- const k = [10, 10, 1, 0], u = /* @__PURE__ */ styled_default("div")({
25
- name: "RemainingTimeCircle",
26
- class: "r165427",
27
- propsAsIs: false
28
- }), E = /* @__PURE__ */ styled_default("div")({
29
- name: "RemainingTime",
30
- class: "r17garf3",
31
- propsAsIs: false
32
- }), O = O$2, l = N, R = S, G = ({
33
- className: o,
34
- duration: e = 30,
35
- onTimerExpired: r,
36
- isPlaying: n = true
37
- }) => /* @__PURE__ */ jsx(CountdownCircleTimer, {
38
- isPlaying: n,
39
- strokeWidth: 0,
40
- duration: e,
41
- colors: l,
42
- size: 24,
43
- onComplete: r,
44
- children: ({
45
- remainingTime: i
46
- }) => /* @__PURE__ */ jsx(E, {
47
- className: o,
48
- children: e === 0 ? 0 : i
49
- })
50
- }), L = ({
51
- isPlaying: o = true,
52
- duration: e = 30,
53
- onTimerExpired: r
54
- }) => {
55
- const [n, t] = useState(e > 10 ? O : l), [i, C] = useState(2);
56
- useEffect(() => {
57
- e === 0 && (C(0), t(R));
58
- }, [e]);
59
- const p = ({
60
- remainingTime: c
61
- }) => /* @__PURE__ */ jsx(u, {
62
- children: e === 0 ? 0 : c
63
- }), h = useCallback(() => {
64
- r == null || r(), t(R);
65
- }, [r, t]), I$1 = useCallback((c) => {
66
- c === 10 && t(l);
67
- }, [t]);
68
- return /* @__PURE__ */ jsx(CountdownCircleTimer, {
69
- isPlaying: o,
70
- duration: e,
71
- colors: I,
72
- colorsTime: k,
73
- size: 32,
74
- strokeWidth: i,
75
- trailStrokeWidth: 2,
76
- trailColor: n,
77
- onComplete: h,
78
- onUpdate: I$1,
79
- children: p
951
+ return st = a, st;
952
+ }
953
+ var ut, Ri;
954
+ function du() {
955
+ if (Ri) return ut;
956
+ Ri = 1;
957
+ function r(e, t) {
958
+ for (var n = -1, a = e == null ? 0 : e.length, i = 0, s = []; ++n < a; ) {
959
+ var o = e[n];
960
+ t(o, n, e) && (s[i++] = o);
961
+ }
962
+ return s;
963
+ }
964
+ return ut = r, ut;
965
+ }
966
+ var ot, wi;
967
+ function mo() {
968
+ if (wi) return ot;
969
+ wi = 1;
970
+ function r(e) {
971
+ return function(t, n, a) {
972
+ for (var i = -1, s = Object(t), o = a(t), l = o.length; l--; ) {
973
+ var h = o[e ? l : ++i];
974
+ if (n(s[h], h, s) === !1)
975
+ break;
976
+ }
977
+ return t;
978
+ };
979
+ }
980
+ return ot = r, ot;
981
+ }
982
+ var ct, Ai;
983
+ function qo() {
984
+ if (Ai) return ct;
985
+ Ai = 1;
986
+ var r = mo(), e = r();
987
+ return ct = e, ct;
988
+ }
989
+ var ft, Ti;
990
+ function Co() {
991
+ if (Ti) return ft;
992
+ Ti = 1;
993
+ function r(e, t) {
994
+ for (var n = -1, a = Array(e); ++n < e; )
995
+ a[n] = t(n);
996
+ return a;
997
+ }
998
+ return ft = r, ft;
999
+ }
1000
+ var me = { exports: {} }, lt, Oi;
1001
+ function Fo() {
1002
+ if (Oi) return lt;
1003
+ Oi = 1;
1004
+ function r() {
1005
+ return !1;
1006
+ }
1007
+ return lt = r, lt;
1008
+ }
1009
+ me.exports;
1010
+ var xi;
1011
+ function hu() {
1012
+ return xi || (xi = 1, (function(r, e) {
1013
+ var t = ie(), n = Fo(), a = e && !e.nodeType && e, i = a && !0 && r && !r.nodeType && r, s = i && i.exports === a, o = s ? t.Buffer : void 0, l = o ? o.isBuffer : void 0, h = l || n;
1014
+ r.exports = h;
1015
+ })(me, me.exports)), me.exports;
1016
+ }
1017
+ var dt, Si;
1018
+ function zn() {
1019
+ if (Si) return dt;
1020
+ Si = 1;
1021
+ var r = 9007199254740991, e = /^(?:0|[1-9]\d*)$/;
1022
+ function t(n, a) {
1023
+ var i = typeof n;
1024
+ return a = a ?? r, !!a && (i == "number" || i != "symbol" && e.test(n)) && n > -1 && n % 1 == 0 && n < a;
1025
+ }
1026
+ return dt = t, dt;
1027
+ }
1028
+ var ht, Ki;
1029
+ function Ro() {
1030
+ if (Ki) return ht;
1031
+ Ki = 1;
1032
+ var r = Fe(), e = Un(), t = he(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", s = "[object Date]", o = "[object Error]", l = "[object Function]", h = "[object Map]", m = "[object Number]", _ = "[object Object]", S = "[object RegExp]", P = "[object Set]", L = "[object String]", K = "[object WeakMap]", b = "[object ArrayBuffer]", d = "[object DataView]", p = "[object Float32Array]", q = "[object Float64Array]", g = "[object Int8Array]", E = "[object Int16Array]", O = "[object Int32Array]", F = "[object Uint8Array]", N = "[object Uint8ClampedArray]", R = "[object Uint16Array]", x = "[object Uint32Array]", M = {};
1033
+ M[p] = M[q] = M[g] = M[E] = M[O] = M[F] = M[N] = M[R] = M[x] = !0, M[n] = M[a] = M[b] = M[i] = M[d] = M[s] = M[o] = M[l] = M[h] = M[m] = M[_] = M[S] = M[P] = M[L] = M[K] = !1;
1034
+ function H(A) {
1035
+ return t(A) && e(A.length) && !!M[r(A)];
1036
+ }
1037
+ return ht = H, ht;
1038
+ }
1039
+ var qe = { exports: {} };
1040
+ qe.exports;
1041
+ var Pi;
1042
+ function wo() {
1043
+ return Pi || (Pi = 1, (function(r, e) {
1044
+ var t = nu(), n = e && !e.nodeType && e, a = n && !0 && r && !r.nodeType && r, i = a && a.exports === n, s = i && t.process, o = (function() {
1045
+ try {
1046
+ var l = a && a.require && a.require("util").types;
1047
+ return l || s && s.binding && s.binding("util");
1048
+ } catch {
1049
+ }
1050
+ })();
1051
+ r.exports = o;
1052
+ })(qe, qe.exports)), qe.exports;
1053
+ }
1054
+ var vt, Ei;
1055
+ function vu() {
1056
+ if (Ei) return vt;
1057
+ Ei = 1;
1058
+ var r = Ro(), e = Hn(), t = wo(), n = t && t.isTypedArray, a = n ? e(n) : r;
1059
+ return vt = a, vt;
1060
+ }
1061
+ var pt, Mi;
1062
+ function Ao() {
1063
+ if (Mi) return pt;
1064
+ Mi = 1;
1065
+ var r = Co(), e = Gn(), t = re(), n = hu(), a = zn(), i = vu(), s = Object.prototype, o = s.hasOwnProperty;
1066
+ function l(h, m) {
1067
+ var _ = t(h), S = !_ && e(h), P = !_ && !S && n(h), L = !_ && !S && !P && i(h), K = _ || S || P || L, b = K ? r(h.length, String) : [], d = b.length;
1068
+ for (var p in h)
1069
+ (m || o.call(h, p)) && !(K && // Safari 9 has enumerable `arguments.length` in strict mode.
1070
+ (p == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1071
+ P && (p == "offset" || p == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1072
+ L && (p == "buffer" || p == "byteLength" || p == "byteOffset") || // Skip index properties.
1073
+ a(p, d))) && b.push(p);
1074
+ return b;
1075
+ }
1076
+ return pt = l, pt;
1077
+ }
1078
+ var yt, Ii;
1079
+ function To() {
1080
+ if (Ii) return yt;
1081
+ Ii = 1;
1082
+ var r = Object.prototype;
1083
+ function e(t) {
1084
+ var n = t && t.constructor, a = typeof n == "function" && n.prototype || r;
1085
+ return t === a;
1086
+ }
1087
+ return yt = e, yt;
1088
+ }
1089
+ var gt, Di;
1090
+ function Oo() {
1091
+ if (Di) return gt;
1092
+ Di = 1;
1093
+ function r(e, t) {
1094
+ return function(n) {
1095
+ return e(t(n));
1096
+ };
1097
+ }
1098
+ return gt = r, gt;
1099
+ }
1100
+ var _t, Li;
1101
+ function xo() {
1102
+ if (Li) return _t;
1103
+ Li = 1;
1104
+ var r = Oo(), e = r(Object.keys, Object);
1105
+ return _t = e, _t;
1106
+ }
1107
+ var bt, Ni;
1108
+ function So() {
1109
+ if (Ni) return bt;
1110
+ Ni = 1;
1111
+ var r = To(), e = xo(), t = Object.prototype, n = t.hasOwnProperty;
1112
+ function a(i) {
1113
+ if (!r(i))
1114
+ return e(i);
1115
+ var s = [];
1116
+ for (var o in Object(i))
1117
+ n.call(i, o) && o != "constructor" && s.push(o);
1118
+ return s;
1119
+ }
1120
+ return bt = a, bt;
1121
+ }
1122
+ var mt, Bi;
1123
+ function Wn() {
1124
+ if (Bi) return mt;
1125
+ Bi = 1;
1126
+ var r = Ao(), e = So(), t = Ae();
1127
+ function n(a) {
1128
+ return t(a) ? r(a) : e(a);
1129
+ }
1130
+ return mt = n, mt;
1131
+ }
1132
+ var qt, ji;
1133
+ function $n() {
1134
+ if (ji) return qt;
1135
+ ji = 1;
1136
+ var r = qo(), e = Wn();
1137
+ function t(n, a) {
1138
+ return n && r(n, a, e);
1139
+ }
1140
+ return qt = t, qt;
1141
+ }
1142
+ var Ct, ki;
1143
+ function Ko() {
1144
+ if (ki) return Ct;
1145
+ ki = 1;
1146
+ var r = Ae();
1147
+ function e(t, n) {
1148
+ return function(a, i) {
1149
+ if (a == null)
1150
+ return a;
1151
+ if (!r(a))
1152
+ return t(a, i);
1153
+ for (var s = a.length, o = n ? s : -1, l = Object(a); (n ? o-- : ++o < s) && i(l[o], o, l) !== !1; )
1154
+ ;
1155
+ return a;
1156
+ };
1157
+ }
1158
+ return Ct = e, Ct;
1159
+ }
1160
+ var Ft, Hi;
1161
+ function Yn() {
1162
+ if (Hi) return Ft;
1163
+ Hi = 1;
1164
+ var r = $n(), e = Ko(), t = e(r);
1165
+ return Ft = t, Ft;
1166
+ }
1167
+ var Rt, Gi;
1168
+ function Po() {
1169
+ if (Gi) return Rt;
1170
+ Gi = 1;
1171
+ var r = Yn();
1172
+ function e(t, n) {
1173
+ var a = [];
1174
+ return r(t, function(i, s, o) {
1175
+ n(i, s, o) && a.push(i);
1176
+ }), a;
1177
+ }
1178
+ return Rt = e, Rt;
1179
+ }
1180
+ var wt, Ui;
1181
+ function Eo() {
1182
+ if (Ui) return wt;
1183
+ Ui = 1;
1184
+ var r = Me();
1185
+ function e() {
1186
+ this.__data__ = new r(), this.size = 0;
1187
+ }
1188
+ return wt = e, wt;
1189
+ }
1190
+ var At, zi;
1191
+ function Mo() {
1192
+ if (zi) return At;
1193
+ zi = 1;
1194
+ function r(e) {
1195
+ var t = this.__data__, n = t.delete(e);
1196
+ return this.size = t.size, n;
1197
+ }
1198
+ return At = r, At;
1199
+ }
1200
+ var Tt, Wi;
1201
+ function Io() {
1202
+ if (Wi) return Tt;
1203
+ Wi = 1;
1204
+ function r(e) {
1205
+ return this.__data__.get(e);
1206
+ }
1207
+ return Tt = r, Tt;
1208
+ }
1209
+ var Ot, $i;
1210
+ function Do() {
1211
+ if ($i) return Ot;
1212
+ $i = 1;
1213
+ function r(e) {
1214
+ return this.__data__.has(e);
1215
+ }
1216
+ return Ot = r, Ot;
1217
+ }
1218
+ var xt, Yi;
1219
+ function Lo() {
1220
+ if (Yi) return xt;
1221
+ Yi = 1;
1222
+ var r = Me(), e = Bn(), t = jn(), n = 200;
1223
+ function a(i, s) {
1224
+ var o = this.__data__;
1225
+ if (o instanceof r) {
1226
+ var l = o.__data__;
1227
+ if (!e || l.length < n - 1)
1228
+ return l.push([i, s]), this.size = ++o.size, this;
1229
+ o = this.__data__ = new t(l);
1230
+ }
1231
+ return o.set(i, s), this.size = o.size, this;
1232
+ }
1233
+ return xt = a, xt;
1234
+ }
1235
+ var St, Ji;
1236
+ function pu() {
1237
+ if (Ji) return St;
1238
+ Ji = 1;
1239
+ var r = Me(), e = Eo(), t = Mo(), n = Io(), a = Do(), i = Lo();
1240
+ function s(o) {
1241
+ var l = this.__data__ = new r(o);
1242
+ this.size = l.size;
1243
+ }
1244
+ return s.prototype.clear = e, s.prototype.delete = t, s.prototype.get = n, s.prototype.has = a, s.prototype.set = i, St = s, St;
1245
+ }
1246
+ var Kt, Xi;
1247
+ function No() {
1248
+ if (Xi) return Kt;
1249
+ Xi = 1;
1250
+ function r(e, t) {
1251
+ for (var n = -1, a = e == null ? 0 : e.length; ++n < a; )
1252
+ if (t(e[n], n, e))
1253
+ return !0;
1254
+ return !1;
1255
+ }
1256
+ return Kt = r, Kt;
1257
+ }
1258
+ var Pt, Zi;
1259
+ function yu() {
1260
+ if (Zi) return Pt;
1261
+ Zi = 1;
1262
+ var r = uu(), e = No(), t = ou(), n = 1, a = 2;
1263
+ function i(s, o, l, h, m, _) {
1264
+ var S = l & n, P = s.length, L = o.length;
1265
+ if (P != L && !(S && L > P))
1266
+ return !1;
1267
+ var K = _.get(s), b = _.get(o);
1268
+ if (K && b)
1269
+ return K == o && b == s;
1270
+ var d = -1, p = !0, q = l & a ? new r() : void 0;
1271
+ for (_.set(s, o), _.set(o, s); ++d < P; ) {
1272
+ var g = s[d], E = o[d];
1273
+ if (h)
1274
+ var O = S ? h(E, g, d, o, s, _) : h(g, E, d, s, o, _);
1275
+ if (O !== void 0) {
1276
+ if (O)
1277
+ continue;
1278
+ p = !1;
1279
+ break;
1280
+ }
1281
+ if (q) {
1282
+ if (!e(o, function(F, N) {
1283
+ if (!t(q, N) && (g === F || m(g, F, l, h, _)))
1284
+ return q.push(N);
1285
+ })) {
1286
+ p = !1;
1287
+ break;
1288
+ }
1289
+ } else if (!(g === E || m(g, E, l, h, _))) {
1290
+ p = !1;
1291
+ break;
1292
+ }
1293
+ }
1294
+ return _.delete(s), _.delete(o), p;
1295
+ }
1296
+ return Pt = i, Pt;
1297
+ }
1298
+ var Et, Qi;
1299
+ function Bo() {
1300
+ if (Qi) return Et;
1301
+ Qi = 1;
1302
+ var r = ie(), e = r.Uint8Array;
1303
+ return Et = e, Et;
1304
+ }
1305
+ var Mt, Vi;
1306
+ function jo() {
1307
+ if (Vi) return Mt;
1308
+ Vi = 1;
1309
+ function r(e) {
1310
+ var t = -1, n = Array(e.size);
1311
+ return e.forEach(function(a, i) {
1312
+ n[++t] = [i, a];
1313
+ }), n;
1314
+ }
1315
+ return Mt = r, Mt;
1316
+ }
1317
+ var It, es;
1318
+ function ko() {
1319
+ if (es) return It;
1320
+ es = 1;
1321
+ function r(e) {
1322
+ var t = -1, n = Array(e.size);
1323
+ return e.forEach(function(a) {
1324
+ n[++t] = a;
1325
+ }), n;
1326
+ }
1327
+ return It = r, It;
1328
+ }
1329
+ var Dt, rs;
1330
+ function Ho() {
1331
+ if (rs) return Dt;
1332
+ rs = 1;
1333
+ var r = Ce(), e = Bo(), t = Nn(), n = yu(), a = jo(), i = ko(), s = 1, o = 2, l = "[object Boolean]", h = "[object Date]", m = "[object Error]", _ = "[object Map]", S = "[object Number]", P = "[object RegExp]", L = "[object Set]", K = "[object String]", b = "[object Symbol]", d = "[object ArrayBuffer]", p = "[object DataView]", q = r ? r.prototype : void 0, g = q ? q.valueOf : void 0;
1334
+ function E(O, F, N, R, x, M, H) {
1335
+ switch (N) {
1336
+ case p:
1337
+ if (O.byteLength != F.byteLength || O.byteOffset != F.byteOffset)
1338
+ return !1;
1339
+ O = O.buffer, F = F.buffer;
1340
+ case d:
1341
+ return !(O.byteLength != F.byteLength || !M(new e(O), new e(F)));
1342
+ case l:
1343
+ case h:
1344
+ case S:
1345
+ return t(+O, +F);
1346
+ case m:
1347
+ return O.name == F.name && O.message == F.message;
1348
+ case P:
1349
+ case K:
1350
+ return O == F + "";
1351
+ case _:
1352
+ var A = a;
1353
+ case L:
1354
+ var U = R & s;
1355
+ if (A || (A = i), O.size != F.size && !U)
1356
+ return !1;
1357
+ var J = H.get(O);
1358
+ if (J)
1359
+ return J == F;
1360
+ R |= o, H.set(O, F);
1361
+ var te = n(A(O), A(F), R, x, M, H);
1362
+ return H.delete(O), te;
1363
+ case b:
1364
+ if (g)
1365
+ return g.call(O) == g.call(F);
1366
+ }
1367
+ return !1;
1368
+ }
1369
+ return Dt = E, Dt;
1370
+ }
1371
+ var Lt, ts;
1372
+ function Go() {
1373
+ if (ts) return Lt;
1374
+ ts = 1;
1375
+ var r = cu(), e = re();
1376
+ function t(n, a, i) {
1377
+ var s = a(n);
1378
+ return e(n) ? s : r(s, i(n));
1379
+ }
1380
+ return Lt = t, Lt;
1381
+ }
1382
+ var Nt, ns;
1383
+ function Uo() {
1384
+ if (ns) return Nt;
1385
+ ns = 1;
1386
+ function r() {
1387
+ return [];
1388
+ }
1389
+ return Nt = r, Nt;
1390
+ }
1391
+ var Bt, as;
1392
+ function zo() {
1393
+ if (as) return Bt;
1394
+ as = 1;
1395
+ var r = du(), e = Uo(), t = Object.prototype, n = t.propertyIsEnumerable, a = Object.getOwnPropertySymbols, i = a ? function(s) {
1396
+ return s == null ? [] : (s = Object(s), r(a(s), function(o) {
1397
+ return n.call(s, o);
1398
+ }));
1399
+ } : e;
1400
+ return Bt = i, Bt;
1401
+ }
1402
+ var jt, is;
1403
+ function Wo() {
1404
+ if (is) return jt;
1405
+ is = 1;
1406
+ var r = Go(), e = zo(), t = Wn();
1407
+ function n(a) {
1408
+ return r(a, t, e);
1409
+ }
1410
+ return jt = n, jt;
1411
+ }
1412
+ var kt, ss;
1413
+ function $o() {
1414
+ if (ss) return kt;
1415
+ ss = 1;
1416
+ var r = Wo(), e = 1, t = Object.prototype, n = t.hasOwnProperty;
1417
+ function a(i, s, o, l, h, m) {
1418
+ var _ = o & e, S = r(i), P = S.length, L = r(s), K = L.length;
1419
+ if (P != K && !_)
1420
+ return !1;
1421
+ for (var b = P; b--; ) {
1422
+ var d = S[b];
1423
+ if (!(_ ? d in s : n.call(s, d)))
1424
+ return !1;
1425
+ }
1426
+ var p = m.get(i), q = m.get(s);
1427
+ if (p && q)
1428
+ return p == s && q == i;
1429
+ var g = !0;
1430
+ m.set(i, s), m.set(s, i);
1431
+ for (var E = _; ++b < P; ) {
1432
+ d = S[b];
1433
+ var O = i[d], F = s[d];
1434
+ if (l)
1435
+ var N = _ ? l(F, O, d, s, i, m) : l(O, F, d, i, s, m);
1436
+ if (!(N === void 0 ? O === F || h(O, F, o, l, m) : N)) {
1437
+ g = !1;
1438
+ break;
1439
+ }
1440
+ E || (E = d == "constructor");
1441
+ }
1442
+ if (g && !E) {
1443
+ var R = i.constructor, x = s.constructor;
1444
+ R != x && "constructor" in i && "constructor" in s && !(typeof R == "function" && R instanceof R && typeof x == "function" && x instanceof x) && (g = !1);
1445
+ }
1446
+ return m.delete(i), m.delete(s), g;
1447
+ }
1448
+ return kt = a, kt;
1449
+ }
1450
+ var Ht, us;
1451
+ function Yo() {
1452
+ if (us) return Ht;
1453
+ us = 1;
1454
+ var r = de(), e = ie(), t = r(e, "DataView");
1455
+ return Ht = t, Ht;
1456
+ }
1457
+ var Gt, os;
1458
+ function Jo() {
1459
+ if (os) return Gt;
1460
+ os = 1;
1461
+ var r = de(), e = ie(), t = r(e, "Promise");
1462
+ return Gt = t, Gt;
1463
+ }
1464
+ var Ut, cs;
1465
+ function Xo() {
1466
+ if (cs) return Ut;
1467
+ cs = 1;
1468
+ var r = de(), e = ie(), t = r(e, "Set");
1469
+ return Ut = t, Ut;
1470
+ }
1471
+ var zt, fs;
1472
+ function Zo() {
1473
+ if (fs) return zt;
1474
+ fs = 1;
1475
+ var r = de(), e = ie(), t = r(e, "WeakMap");
1476
+ return zt = t, zt;
1477
+ }
1478
+ var Wt, ls;
1479
+ function Qo() {
1480
+ if (ls) return Wt;
1481
+ ls = 1;
1482
+ var r = Yo(), e = Bn(), t = Jo(), n = Xo(), a = Zo(), i = Fe(), s = su(), o = "[object Map]", l = "[object Object]", h = "[object Promise]", m = "[object Set]", _ = "[object WeakMap]", S = "[object DataView]", P = s(r), L = s(e), K = s(t), b = s(n), d = s(a), p = i;
1483
+ return (r && p(new r(new ArrayBuffer(1))) != S || e && p(new e()) != o || t && p(t.resolve()) != h || n && p(new n()) != m || a && p(new a()) != _) && (p = function(q) {
1484
+ var g = i(q), E = g == l ? q.constructor : void 0, O = E ? s(E) : "";
1485
+ if (O)
1486
+ switch (O) {
1487
+ case P:
1488
+ return S;
1489
+ case L:
1490
+ return o;
1491
+ case K:
1492
+ return h;
1493
+ case b:
1494
+ return m;
1495
+ case d:
1496
+ return _;
1497
+ }
1498
+ return g;
1499
+ }), Wt = p, Wt;
1500
+ }
1501
+ var $t, ds;
1502
+ function Vo() {
1503
+ if (ds) return $t;
1504
+ ds = 1;
1505
+ var r = pu(), e = yu(), t = Ho(), n = $o(), a = Qo(), i = re(), s = hu(), o = vu(), l = 1, h = "[object Arguments]", m = "[object Array]", _ = "[object Object]", S = Object.prototype, P = S.hasOwnProperty;
1506
+ function L(K, b, d, p, q, g) {
1507
+ var E = i(K), O = i(b), F = E ? m : a(K), N = O ? m : a(b);
1508
+ F = F == h ? _ : F, N = N == h ? _ : N;
1509
+ var R = F == _, x = N == _, M = F == N;
1510
+ if (M && s(K)) {
1511
+ if (!s(b))
1512
+ return !1;
1513
+ E = !0, R = !1;
1514
+ }
1515
+ if (M && !R)
1516
+ return g || (g = new r()), E || o(K) ? e(K, b, d, p, q, g) : t(K, b, F, d, p, q, g);
1517
+ if (!(d & l)) {
1518
+ var H = R && P.call(K, "__wrapped__"), A = x && P.call(b, "__wrapped__");
1519
+ if (H || A) {
1520
+ var U = H ? K.value() : K, J = A ? b.value() : b;
1521
+ return g || (g = new r()), q(U, J, d, p, g);
1522
+ }
1523
+ }
1524
+ return M ? (g || (g = new r()), n(K, b, d, p, q, g)) : !1;
1525
+ }
1526
+ return $t = L, $t;
1527
+ }
1528
+ var Yt, hs;
1529
+ function gu() {
1530
+ if (hs) return Yt;
1531
+ hs = 1;
1532
+ var r = Vo(), e = he();
1533
+ function t(n, a, i, s, o) {
1534
+ return n === a ? !0 : n == null || a == null || !e(n) && !e(a) ? n !== n && a !== a : r(n, a, i, s, t, o);
1535
+ }
1536
+ return Yt = t, Yt;
1537
+ }
1538
+ var Jt, vs;
1539
+ function ec() {
1540
+ if (vs) return Jt;
1541
+ vs = 1;
1542
+ var r = pu(), e = gu(), t = 1, n = 2;
1543
+ function a(i, s, o, l) {
1544
+ var h = o.length, m = h, _ = !l;
1545
+ if (i == null)
1546
+ return !m;
1547
+ for (i = Object(i); h--; ) {
1548
+ var S = o[h];
1549
+ if (_ && S[2] ? S[1] !== i[S[0]] : !(S[0] in i))
1550
+ return !1;
1551
+ }
1552
+ for (; ++h < m; ) {
1553
+ S = o[h];
1554
+ var P = S[0], L = i[P], K = S[1];
1555
+ if (_ && S[2]) {
1556
+ if (L === void 0 && !(P in i))
1557
+ return !1;
1558
+ } else {
1559
+ var b = new r();
1560
+ if (l)
1561
+ var d = l(L, K, P, i, s, b);
1562
+ if (!(d === void 0 ? e(K, L, t | n, l, b) : d))
1563
+ return !1;
1564
+ }
1565
+ }
1566
+ return !0;
1567
+ }
1568
+ return Jt = a, Jt;
1569
+ }
1570
+ var Xt, ps;
1571
+ function _u() {
1572
+ if (ps) return Xt;
1573
+ ps = 1;
1574
+ var r = le();
1575
+ function e(t) {
1576
+ return t === t && !r(t);
1577
+ }
1578
+ return Xt = e, Xt;
1579
+ }
1580
+ var Zt, ys;
1581
+ function rc() {
1582
+ if (ys) return Zt;
1583
+ ys = 1;
1584
+ var r = _u(), e = Wn();
1585
+ function t(n) {
1586
+ for (var a = e(n), i = a.length; i--; ) {
1587
+ var s = a[i], o = n[s];
1588
+ a[i] = [s, o, r(o)];
1589
+ }
1590
+ return a;
1591
+ }
1592
+ return Zt = t, Zt;
1593
+ }
1594
+ var Qt, gs;
1595
+ function bu() {
1596
+ if (gs) return Qt;
1597
+ gs = 1;
1598
+ function r(e, t) {
1599
+ return function(n) {
1600
+ return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
1601
+ };
1602
+ }
1603
+ return Qt = r, Qt;
1604
+ }
1605
+ var Vt, _s;
1606
+ function tc() {
1607
+ if (_s) return Vt;
1608
+ _s = 1;
1609
+ var r = ec(), e = rc(), t = bu();
1610
+ function n(a) {
1611
+ var i = e(a);
1612
+ return i.length == 1 && i[0][2] ? t(i[0][0], i[0][1]) : function(s) {
1613
+ return s === a || r(s, a, i);
1614
+ };
1615
+ }
1616
+ return Vt = n, Vt;
1617
+ }
1618
+ var en, bs;
1619
+ function Jn() {
1620
+ if (bs) return en;
1621
+ bs = 1;
1622
+ var r = re(), e = Re(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
1623
+ function a(i, s) {
1624
+ if (r(i))
1625
+ return !1;
1626
+ var o = typeof i;
1627
+ return o == "number" || o == "symbol" || o == "boolean" || i == null || e(i) ? !0 : n.test(i) || !t.test(i) || s != null && i in Object(s);
1628
+ }
1629
+ return en = a, en;
1630
+ }
1631
+ var rn, ms;
1632
+ function nc() {
1633
+ if (ms) return rn;
1634
+ ms = 1;
1635
+ var r = jn(), e = "Expected a function";
1636
+ function t(n, a) {
1637
+ if (typeof n != "function" || a != null && typeof a != "function")
1638
+ throw new TypeError(e);
1639
+ var i = function() {
1640
+ var s = arguments, o = a ? a.apply(this, s) : s[0], l = i.cache;
1641
+ if (l.has(o))
1642
+ return l.get(o);
1643
+ var h = n.apply(this, s);
1644
+ return i.cache = l.set(o, h) || l, h;
1645
+ };
1646
+ return i.cache = new (t.Cache || r)(), i;
1647
+ }
1648
+ return t.Cache = r, rn = t, rn;
1649
+ }
1650
+ var tn, qs;
1651
+ function ac() {
1652
+ if (qs) return tn;
1653
+ qs = 1;
1654
+ var r = nc(), e = 500;
1655
+ function t(n) {
1656
+ var a = r(n, function(s) {
1657
+ return i.size === e && i.clear(), s;
1658
+ }), i = a.cache;
1659
+ return a;
1660
+ }
1661
+ return tn = t, tn;
1662
+ }
1663
+ var nn, Cs;
1664
+ function ic() {
1665
+ if (Cs) return nn;
1666
+ Cs = 1;
1667
+ var r = ac(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(a) {
1668
+ var i = [];
1669
+ return a.charCodeAt(0) === 46 && i.push(""), a.replace(e, function(s, o, l, h) {
1670
+ i.push(l ? h.replace(t, "$1") : o || s);
1671
+ }), i;
80
1672
  });
81
- };
82
- const d = ({ height: r = "37px", width: e = "37px" }) => /* @__PURE__ */ jsx("div", { style: { height: r, width: e }, children: /* @__PURE__ */ jsx(B1, { name: "loader" }) });
1673
+ return nn = n, nn;
1674
+ }
1675
+ var an, Fs;
1676
+ function sc() {
1677
+ if (Fs) return an;
1678
+ Fs = 1;
1679
+ var r = Ce(), e = kn(), t = re(), n = Re(), a = r ? r.prototype : void 0, i = a ? a.toString : void 0;
1680
+ function s(o) {
1681
+ if (typeof o == "string")
1682
+ return o;
1683
+ if (t(o))
1684
+ return e(o, s) + "";
1685
+ if (n(o))
1686
+ return i ? i.call(o) : "";
1687
+ var l = o + "";
1688
+ return l == "0" && 1 / o == -1 / 0 ? "-0" : l;
1689
+ }
1690
+ return an = s, an;
1691
+ }
1692
+ var sn, Rs;
1693
+ function mu() {
1694
+ if (Rs) return sn;
1695
+ Rs = 1;
1696
+ var r = sc();
1697
+ function e(t) {
1698
+ return t == null ? "" : r(t);
1699
+ }
1700
+ return sn = e, sn;
1701
+ }
1702
+ var un, ws;
1703
+ function qu() {
1704
+ if (ws) return un;
1705
+ ws = 1;
1706
+ var r = re(), e = Jn(), t = ic(), n = mu();
1707
+ function a(i, s) {
1708
+ return r(i) ? i : e(i, s) ? [i] : t(n(i));
1709
+ }
1710
+ return un = a, un;
1711
+ }
1712
+ var on, As;
1713
+ function De() {
1714
+ if (As) return on;
1715
+ As = 1;
1716
+ var r = Re();
1717
+ function e(t) {
1718
+ if (typeof t == "string" || r(t))
1719
+ return t;
1720
+ var n = t + "";
1721
+ return n == "0" && 1 / t == -1 / 0 ? "-0" : n;
1722
+ }
1723
+ return on = e, on;
1724
+ }
1725
+ var cn, Ts;
1726
+ function Xn() {
1727
+ if (Ts) return cn;
1728
+ Ts = 1;
1729
+ var r = qu(), e = De();
1730
+ function t(n, a) {
1731
+ a = r(a, n);
1732
+ for (var i = 0, s = a.length; n != null && i < s; )
1733
+ n = n[e(a[i++])];
1734
+ return i && i == s ? n : void 0;
1735
+ }
1736
+ return cn = t, cn;
1737
+ }
1738
+ var fn, Os;
1739
+ function uc() {
1740
+ if (Os) return fn;
1741
+ Os = 1;
1742
+ var r = Xn();
1743
+ function e(t, n, a) {
1744
+ var i = t == null ? void 0 : r(t, n);
1745
+ return i === void 0 ? a : i;
1746
+ }
1747
+ return fn = e, fn;
1748
+ }
1749
+ var ln, xs;
1750
+ function oc() {
1751
+ if (xs) return ln;
1752
+ xs = 1;
1753
+ function r(e, t) {
1754
+ return e != null && t in Object(e);
1755
+ }
1756
+ return ln = r, ln;
1757
+ }
1758
+ var dn, Ss;
1759
+ function cc() {
1760
+ if (Ss) return dn;
1761
+ Ss = 1;
1762
+ var r = qu(), e = Gn(), t = re(), n = zn(), a = Un(), i = De();
1763
+ function s(o, l, h) {
1764
+ l = r(l, o);
1765
+ for (var m = -1, _ = l.length, S = !1; ++m < _; ) {
1766
+ var P = i(l[m]);
1767
+ if (!(S = o != null && h(o, P)))
1768
+ break;
1769
+ o = o[P];
1770
+ }
1771
+ return S || ++m != _ ? S : (_ = o == null ? 0 : o.length, !!_ && a(_) && n(P, _) && (t(o) || e(o)));
1772
+ }
1773
+ return dn = s, dn;
1774
+ }
1775
+ var hn, Ks;
1776
+ function fc() {
1777
+ if (Ks) return hn;
1778
+ Ks = 1;
1779
+ var r = oc(), e = cc();
1780
+ function t(n, a) {
1781
+ return n != null && e(n, a, r);
1782
+ }
1783
+ return hn = t, hn;
1784
+ }
1785
+ var vn, Ps;
1786
+ function lc() {
1787
+ if (Ps) return vn;
1788
+ Ps = 1;
1789
+ var r = gu(), e = uc(), t = fc(), n = Jn(), a = _u(), i = bu(), s = De(), o = 1, l = 2;
1790
+ function h(m, _) {
1791
+ return n(m) && a(_) ? i(s(m), _) : function(S) {
1792
+ var P = e(S, m);
1793
+ return P === void 0 && P === _ ? t(S, m) : r(_, P, o | l);
1794
+ };
1795
+ }
1796
+ return vn = h, vn;
1797
+ }
1798
+ var pn, Es;
1799
+ function dc() {
1800
+ if (Es) return pn;
1801
+ Es = 1;
1802
+ function r(e) {
1803
+ return function(t) {
1804
+ return t?.[e];
1805
+ };
1806
+ }
1807
+ return pn = r, pn;
1808
+ }
1809
+ var yn, Ms;
1810
+ function hc() {
1811
+ if (Ms) return yn;
1812
+ Ms = 1;
1813
+ var r = Xn();
1814
+ function e(t) {
1815
+ return function(n) {
1816
+ return r(n, t);
1817
+ };
1818
+ }
1819
+ return yn = e, yn;
1820
+ }
1821
+ var gn, Is;
1822
+ function vc() {
1823
+ if (Is) return gn;
1824
+ Is = 1;
1825
+ var r = dc(), e = hc(), t = Jn(), n = De();
1826
+ function a(i) {
1827
+ return t(i) ? r(n(i)) : e(i);
1828
+ }
1829
+ return gn = a, gn;
1830
+ }
1831
+ var _n, Ds;
1832
+ function Zn() {
1833
+ if (Ds) return _n;
1834
+ Ds = 1;
1835
+ var r = tc(), e = lc(), t = we(), n = re(), a = vc();
1836
+ function i(s) {
1837
+ return typeof s == "function" ? s : s == null ? t : typeof s == "object" ? n(s) ? e(s[0], s[1]) : r(s) : a(s);
1838
+ }
1839
+ return _n = i, _n;
1840
+ }
1841
+ var bn, Ls;
1842
+ function pc() {
1843
+ if (Ls) return bn;
1844
+ Ls = 1;
1845
+ var r = du(), e = Po(), t = Zn(), n = re();
1846
+ function a(i, s) {
1847
+ var o = n(i) ? r : e;
1848
+ return o(i, t(s, 3));
1849
+ }
1850
+ return bn = a, bn;
1851
+ }
1852
+ var mn, Ns;
1853
+ function yc() {
1854
+ if (Ns) return mn;
1855
+ Ns = 1;
1856
+ function r(e, t, n) {
1857
+ var a;
1858
+ return n(e, function(i, s, o) {
1859
+ if (t(i, s, o))
1860
+ return a = s, !1;
1861
+ }), a;
1862
+ }
1863
+ return mn = r, mn;
1864
+ }
1865
+ var qn, Bs;
1866
+ function gc() {
1867
+ if (Bs) return qn;
1868
+ Bs = 1;
1869
+ var r = yc(), e = $n(), t = Zn();
1870
+ function n(a, i) {
1871
+ return r(a, t(i, 3), e);
1872
+ }
1873
+ return qn = n, qn;
1874
+ }
1875
+ var Cn, js;
1876
+ function _c() {
1877
+ if (js) return Cn;
1878
+ js = 1;
1879
+ function r(e) {
1880
+ return e && e.length ? e[0] : void 0;
1881
+ }
1882
+ return Cn = r, Cn;
1883
+ }
1884
+ var Fn, ks;
1885
+ function bc() {
1886
+ return ks || (ks = 1, Fn = _c()), Fn;
1887
+ }
1888
+ var Rn, Hs;
1889
+ function mc() {
1890
+ if (Hs) return Rn;
1891
+ Hs = 1;
1892
+ function r(e, t) {
1893
+ for (var n = -1, a = e == null ? 0 : e.length; ++n < a && t(e[n], n, e) !== !1; )
1894
+ ;
1895
+ return e;
1896
+ }
1897
+ return Rn = r, Rn;
1898
+ }
1899
+ var wn, Gs;
1900
+ function Cu() {
1901
+ if (Gs) return wn;
1902
+ Gs = 1;
1903
+ var r = we();
1904
+ function e(t) {
1905
+ return typeof t == "function" ? t : r;
1906
+ }
1907
+ return wn = e, wn;
1908
+ }
1909
+ var An, Us;
1910
+ function qc() {
1911
+ if (Us) return An;
1912
+ Us = 1;
1913
+ var r = mc(), e = Yn(), t = Cu(), n = re();
1914
+ function a(i, s) {
1915
+ var o = n(i) ? r : e;
1916
+ return o(i, t(s));
1917
+ }
1918
+ return An = a, An;
1919
+ }
1920
+ var Tn, zs;
1921
+ function Cc() {
1922
+ if (zs) return Tn;
1923
+ zs = 1;
1924
+ var r = $n(), e = Cu();
1925
+ function t(n, a) {
1926
+ return n && r(n, e(a));
1927
+ }
1928
+ return Tn = t, Tn;
1929
+ }
1930
+ var On, Ws;
1931
+ function Fc() {
1932
+ if (Ws) return On;
1933
+ Ws = 1;
1934
+ function r() {
1935
+ }
1936
+ return On = r, On;
1937
+ }
1938
+ var xn, $s;
1939
+ function Rc() {
1940
+ if ($s) return xn;
1941
+ $s = 1;
1942
+ var r = Yn(), e = Ae();
1943
+ function t(n, a) {
1944
+ var i = -1, s = e(n) ? Array(n.length) : [];
1945
+ return r(n, function(o, l, h) {
1946
+ s[++i] = a(o, l, h);
1947
+ }), s;
1948
+ }
1949
+ return xn = t, xn;
1950
+ }
1951
+ var Sn, Ys;
1952
+ function wc() {
1953
+ if (Ys) return Sn;
1954
+ Ys = 1;
1955
+ function r(e, t) {
1956
+ var n = e.length;
1957
+ for (e.sort(t); n--; )
1958
+ e[n] = e[n].value;
1959
+ return e;
1960
+ }
1961
+ return Sn = r, Sn;
1962
+ }
1963
+ var Kn, Js;
1964
+ function Ac() {
1965
+ if (Js) return Kn;
1966
+ Js = 1;
1967
+ var r = Re();
1968
+ function e(t, n) {
1969
+ if (t !== n) {
1970
+ var a = t !== void 0, i = t === null, s = t === t, o = r(t), l = n !== void 0, h = n === null, m = n === n, _ = r(n);
1971
+ if (!h && !_ && !o && t > n || o && l && m && !h && !_ || i && l && m || !a && m || !s)
1972
+ return 1;
1973
+ if (!i && !o && !_ && t < n || _ && a && s && !i && !o || h && a && s || !l && s || !m)
1974
+ return -1;
1975
+ }
1976
+ return 0;
1977
+ }
1978
+ return Kn = e, Kn;
1979
+ }
1980
+ var Pn, Xs;
1981
+ function Tc() {
1982
+ if (Xs) return Pn;
1983
+ Xs = 1;
1984
+ var r = Ac();
1985
+ function e(t, n, a) {
1986
+ for (var i = -1, s = t.criteria, o = n.criteria, l = s.length, h = a.length; ++i < l; ) {
1987
+ var m = r(s[i], o[i]);
1988
+ if (m) {
1989
+ if (i >= h)
1990
+ return m;
1991
+ var _ = a[i];
1992
+ return m * (_ == "desc" ? -1 : 1);
1993
+ }
1994
+ }
1995
+ return t.index - n.index;
1996
+ }
1997
+ return Pn = e, Pn;
1998
+ }
1999
+ var En, Zs;
2000
+ function Oc() {
2001
+ if (Zs) return En;
2002
+ Zs = 1;
2003
+ var r = kn(), e = Xn(), t = Zn(), n = Rc(), a = wc(), i = Hn(), s = Tc(), o = we(), l = re();
2004
+ function h(m, _, S) {
2005
+ _.length ? _ = r(_, function(K) {
2006
+ return l(K) ? function(b) {
2007
+ return e(b, K.length === 1 ? K[0] : K);
2008
+ } : K;
2009
+ }) : _ = [o];
2010
+ var P = -1;
2011
+ _ = r(_, i(t));
2012
+ var L = n(m, function(K, b, d) {
2013
+ var p = r(_, function(q) {
2014
+ return q(K);
2015
+ });
2016
+ return { criteria: p, index: ++P, value: K };
2017
+ });
2018
+ return a(L, function(K, b) {
2019
+ return s(K, b, S);
2020
+ });
2021
+ }
2022
+ return En = h, En;
2023
+ }
2024
+ var Mn, Qs;
2025
+ function xc() {
2026
+ if (Qs) return Mn;
2027
+ Qs = 1;
2028
+ var r = Nn(), e = Ae(), t = zn(), n = le();
2029
+ function a(i, s, o) {
2030
+ if (!n(o))
2031
+ return !1;
2032
+ var l = typeof s;
2033
+ return (l == "number" ? e(o) && t(s, o.length) : l == "string" && s in o) ? r(o[s], i) : !1;
2034
+ }
2035
+ return Mn = a, Mn;
2036
+ }
2037
+ var In, Vs;
2038
+ function Sc() {
2039
+ if (Vs) return In;
2040
+ Vs = 1;
2041
+ var r = fu(), e = Oc(), t = lu(), n = xc(), a = t(function(i, s) {
2042
+ if (i == null)
2043
+ return [];
2044
+ var o = s.length;
2045
+ return o > 1 && n(i, s[0], s[1]) ? s = [] : o > 2 && n(s[0], s[1], s[2]) && (s = [s[0]]), e(i, r(s, 1), []);
2046
+ });
2047
+ return In = a, In;
2048
+ }
2049
+ var Dn, eu;
2050
+ function Kc() {
2051
+ if (eu) return Dn;
2052
+ eu = 1;
2053
+ var r = au(), e = le(), t = "Expected a function";
2054
+ function n(a, i, s) {
2055
+ var o = !0, l = !0;
2056
+ if (typeof a != "function")
2057
+ throw new TypeError(t);
2058
+ return e(s) && (o = "leading" in s ? !!s.leading : o, l = "trailing" in s ? !!s.trailing : l), r(a, i, {
2059
+ leading: o,
2060
+ maxWait: i,
2061
+ trailing: l
2062
+ });
2063
+ }
2064
+ return Dn = n, Dn;
2065
+ }
2066
+ var Ln, ru;
2067
+ function Pc() {
2068
+ if (ru) return Ln;
2069
+ ru = 1;
2070
+ var r = mu(), e = 0;
2071
+ function t(n) {
2072
+ var a = ++e;
2073
+ return r(n) + a;
2074
+ }
2075
+ return Ln = t, Ln;
2076
+ }
2077
+ var Ec = Ke.exports, tu;
2078
+ function Mc() {
2079
+ return tu || (tu = 1, (function(r, e) {
2080
+ (function(t, n) {
2081
+ r.exports = n(au(), bo(), pc(), gc(), bc(), qc(), Cc(), Fc(), Sc(), Kc(), Pc(), wu);
2082
+ })(Ec, (function(t, n, a, i, s, o, l, h, m, _, S, P) {
2083
+ return (function() {
2084
+ var L = { 654: function(b, d, p) {
2085
+ var q, g = this && this.__assign || function() {
2086
+ return g = Object.assign || function(y) {
2087
+ for (var u, c = 1, f = arguments.length; c < f; c++) for (var v in u = arguments[c]) Object.prototype.hasOwnProperty.call(u, v) && (y[v] = u[v]);
2088
+ return y;
2089
+ }, g.apply(this, arguments);
2090
+ }, E = this && this.__createBinding || (Object.create ? function(y, u, c, f) {
2091
+ f === void 0 && (f = c);
2092
+ var v = Object.getOwnPropertyDescriptor(u, c);
2093
+ v && !("get" in v ? !u.__esModule : v.writable || v.configurable) || (v = { enumerable: !0, get: function() {
2094
+ return u[c];
2095
+ } }), Object.defineProperty(y, f, v);
2096
+ } : function(y, u, c, f) {
2097
+ f === void 0 && (f = c), y[f] = u[c];
2098
+ }), O = this && this.__setModuleDefault || (Object.create ? function(y, u) {
2099
+ Object.defineProperty(y, "default", { enumerable: !0, value: u });
2100
+ } : function(y, u) {
2101
+ y.default = u;
2102
+ }), F = this && this.__importStar || function(y) {
2103
+ if (y && y.__esModule) return y;
2104
+ var u = {};
2105
+ if (y != null) for (var c in y) c !== "default" && Object.prototype.hasOwnProperty.call(y, c) && E(u, y, c);
2106
+ return O(u, y), u;
2107
+ }, N = this && this.__spreadArray || function(y, u, c) {
2108
+ if (c || arguments.length === 2) for (var f, v = 0, C = u.length; v < C; v++) !f && v in u || (f || (f = Array.prototype.slice.call(u, 0, v)), f[v] = u[v]);
2109
+ return y.concat(f || Array.prototype.slice.call(u));
2110
+ }, R = this && this.__importDefault || function(y) {
2111
+ return y && y.__esModule ? y : { default: y };
2112
+ };
2113
+ Object.defineProperty(d, "__esModule", { value: !0 }), d.updateRtl = d.doesFocusableExist = d.getCurrentFocusKey = d.updateAllLayouts = d.resume = d.pause = d.navigateByDirection = d.setFocus = d.setKeyMap = d.destroy = d.setThrottle = d.init = d.SpatialNavigation = d.ROOT_FOCUS_KEY = void 0;
2114
+ var x = R(p(150)), M = R(p(117)), H = R(p(747)), A = R(p(23)), U = R(p(842)), J = R(p(682)), te = R(p(784)), ve = R(p(432)), Le = R(p(67)), Te = R(p(35)), Q = R(p(119)), pe = F(p(964)), ue = "left", oe = "right", ce = "up", ne = "down", ye = "enter", ge = ((q = {}).left = [37, "ArrowLeft"], q.up = [38, "ArrowUp"], q.right = [39, "ArrowRight"], q.down = [40, "ArrowDown"], q.enter = [13, "Enter"], q);
2115
+ d.ROOT_FOCUS_KEY = "SN:ROOT";
2116
+ var _e = ["#0FF", "#FF0", "#F0F"], Oe = { leading: !0, trailing: !1 }, xe = (function() {
2117
+ function y() {
2118
+ 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 = ge, 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";
2119
+ }
2120
+ return y.getCutoffCoordinate = function(u, c, f, v, C) {
2121
+ var w = u ? v.top : C === Q.default.LTR ? v.left : v.right, T = u ? v.bottom : C === Q.default.LTR ? v.right : v.left;
2122
+ return c ? f ? w : T : f ? T : w;
2123
+ }, y.getRefCorners = function(u, c, f) {
2124
+ var v = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
2125
+ switch (u) {
2126
+ case ce:
2127
+ var C = c ? f.bottom : f.top;
2128
+ v.a = { x: f.left, y: C }, v.b = { x: f.right, y: C };
2129
+ break;
2130
+ case ne:
2131
+ C = c ? f.top : f.bottom, v.a = { x: f.left, y: C }, v.b = { x: f.right, y: C };
2132
+ break;
2133
+ case ue:
2134
+ var w = c ? f.right : f.left;
2135
+ v.a = { x: w, y: f.top }, v.b = { x: w, y: f.bottom };
2136
+ break;
2137
+ case oe:
2138
+ w = c ? f.left : f.right, v.a = { x: w, y: f.top }, v.b = { x: w, y: f.bottom };
2139
+ }
2140
+ return v;
2141
+ }, y.isAdjacentSlice = function(u, c, f) {
2142
+ var v = u.a, C = u.b, w = c.a, T = c.b, I = f ? "x" : "y", G = v[I], k = C[I], j = w[I], B = T[I], D = 0.2 * (k - G);
2143
+ return Math.max(0, Math.min(k, B) - Math.max(G, j)) >= D;
2144
+ }, y.getPrimaryAxisDistance = function(u, c, f) {
2145
+ var v = u.a, C = c.a, w = f ? "y" : "x";
2146
+ return Math.abs(C[w] - v[w]);
2147
+ }, y.getSecondaryAxisDistance = function(u, c, f, v, C) {
2148
+ if (C) return C(u, c, f, v);
2149
+ var w = u.a, T = u.b, I = c.a, G = c.b, k = f ? "x" : "y", j = w[k], B = T[k], D = I[k], Y = G[k];
2150
+ if (v === "center") {
2151
+ var W = (j + B) / 2, X = (D + Y) / 2;
2152
+ return Math.abs(W - X);
2153
+ }
2154
+ if (v === "edges") {
2155
+ var se = Math.min(j, B), z = Math.min(D, Y), V = Math.max(j, B), fe = Math.max(D, Y), ae = Math.abs(se - z), ee = Math.abs(V - fe);
2156
+ return Math.min(ae, ee);
2157
+ }
2158
+ var be = [Math.abs(D - j), Math.abs(D - B), Math.abs(Y - j), Math.abs(Y - B)];
2159
+ return Math.min.apply(Math, be);
2160
+ }, y.prototype.sortSiblingsByPriority = function(u, c, f, v) {
2161
+ var C = this, w = f === ne || f === ce, T = y.getRefCorners(f, !1, c);
2162
+ return (0, ve.default)(u, (function(I) {
2163
+ var G = y.getRefCorners(f, !0, I.layout), k = y.isAdjacentSlice(T, G, w), j = k ? y.getPrimaryAxisDistance : y.getSecondaryAxisDistance, B = k ? y.getSecondaryAxisDistance : y.getPrimaryAxisDistance, D = j(T, G, w, C.distanceCalculationMethod, C.customDistanceCalculationFunction), Y = B(T, G, w, C.distanceCalculationMethod, C.customDistanceCalculationFunction), W = 5 * D + Y, X = (W + 1) / (k ? 5 : 1);
2164
+ return C.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(I.focusKey, " relative to ").concat(v, " is"), D, Y, W), C.log("smartNavigate", "priority for ".concat(I.focusKey, " relative to ").concat(v, " is"), X), C.visualDebugger && (C.visualDebugger.drawPoint(G.a.x, G.a.y, "yellow", 6), C.visualDebugger.drawPoint(G.b.x, G.b.y, "yellow", 6)), X;
2165
+ }));
2166
+ }, y.prototype.init = function(u) {
2167
+ var c = this, f = u === void 0 ? {} : u, v = f.debug, C = v !== void 0 && v, w = f.visualDebug, T = w !== void 0 && w, I = f.nativeMode, G = I !== void 0 && I, k = f.throttle, j = k === void 0 ? 0 : k, B = f.throttleKeypresses, D = B !== void 0 && B, Y = f.useGetBoundingClientRect, W = Y !== void 0 && Y, X = f.shouldFocusDOMNode, se = X !== void 0 && X, z = f.domNodeFocusOptions, V = z === void 0 ? {} : z, fe = f.shouldUseNativeEvents, ae = fe !== void 0 && fe, ee = f.rtl, be = ee !== void 0 && ee, $ = f.distanceCalculationMethod, Z = $ === void 0 ? "corners" : $, Qn = f.customDistanceCalculationFunction, Fu = Qn === void 0 ? void 0 : Qn;
2168
+ if (!this.enabled && (this.domNodeFocusOptions = V, this.enabled = !0, this.nativeMode = G, this.throttleKeypresses = D, this.useGetBoundingClientRect = W, this.shouldFocusDOMNode = se && !G, this.shouldUseNativeEvents = ae, this.writingDirection = be ? Q.default.RTL : Q.default.LTR, this.distanceCalculationMethod = Z, this.customDistanceCalculationFunction = Fu, this.debug = C, !this.nativeMode && (Number.isInteger(j) && j > 0 && (this.throttle = j), this.bindEventHandlers(), T))) {
2169
+ this.visualDebugger = new Te.default(this.writingDirection);
2170
+ var Vn = function() {
2171
+ requestAnimationFrame((function() {
2172
+ c.visualDebugger.clearLayouts(), (0, te.default)(c.focusableComponents, (function(ea, Ru) {
2173
+ c.visualDebugger.drawLayout(ea.layout, Ru, ea.parentFocusKey);
2174
+ })), Vn();
2175
+ }));
2176
+ };
2177
+ Vn();
2178
+ }
2179
+ }, y.prototype.setThrottle = function(u) {
2180
+ var c = u === void 0 ? {} : u, f = c.throttle, v = f === void 0 ? 0 : f, C = c.throttleKeypresses, w = C !== void 0 && C;
2181
+ this.throttleKeypresses = w, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(v) && (this.throttle = v), this.bindEventHandlers());
2182
+ }, y.prototype.destroy = function() {
2183
+ 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 = ge, this.unbindEventHandlers());
2184
+ }, y.prototype.getEventType = function(u) {
2185
+ return (0, A.default)(this.getKeyMap(), (function(c) {
2186
+ return c.includes(u);
2187
+ }));
2188
+ }, y.getKeyCode = function(u) {
2189
+ return u.keyCode || u.code || u.key;
2190
+ }, y.prototype.bindEventHandlers = function() {
2191
+ var u = this;
2192
+ typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(c) {
2193
+ if (u.paused !== !0) {
2194
+ u.debug && (u.logIndex += 1);
2195
+ var f = y.getKeyCode(c), v = u.getEventType(f);
2196
+ if (v) {
2197
+ u.pressedKeys[v] = u.pressedKeys[v] ? u.pressedKeys[v] + 1 : 1, u.shouldUseNativeEvents || (c.preventDefault(), c.stopPropagation());
2198
+ var C = { pressedKeys: u.pressedKeys };
2199
+ if (v === ye && u.focusKey) u.onEnterPress(C);
2200
+ else {
2201
+ var w = u.onArrowPress(v, C) === !1;
2202
+ if (u.visualDebugger && u.visualDebugger.clear(), w) u.log("keyDownEventListener", "default navigation prevented");
2203
+ else {
2204
+ var T = (0, A.default)(u.getKeyMap(), (function(I) {
2205
+ return I.includes(f);
2206
+ }));
2207
+ u.smartNavigate(T, null, { event: c });
2208
+ }
2209
+ }
2210
+ }
2211
+ }
2212
+ }, this.throttle && (this.keyDownEventListenerThrottled = (0, Le.default)(this.keyDownEventListener.bind(this), this.throttle, Oe)), this.keyUpEventListener = function(c) {
2213
+ var f = y.getKeyCode(c), v = u.getEventType(f);
2214
+ delete u.pressedKeys[v], u.throttle && !u.throttleKeypresses && u.keyDownEventListenerThrottled.cancel(), v === ye && u.focusKey && u.onEnterRelease(), !u.focusKey || v !== ue && v !== oe && v !== ce && v !== ne || u.onArrowRelease(v);
2215
+ }, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
2216
+ }, y.prototype.unbindEventHandlers = function() {
2217
+ if (typeof window < "u" && window.removeEventListener) {
2218
+ window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
2219
+ var u = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
2220
+ window.removeEventListener("keydown", u), this.keyDownEventListener = null;
2221
+ }
2222
+ }, y.prototype.onEnterPress = function(u) {
2223
+ var c = this.focusableComponents[this.focusKey];
2224
+ c ? c.focusable ? c.onEnterPress && c.onEnterPress(u) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
2225
+ }, y.prototype.onEnterRelease = function() {
2226
+ var u = this.focusableComponents[this.focusKey];
2227
+ u ? u.focusable ? u.onEnterRelease && u.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
2228
+ }, y.prototype.onArrowPress = function(u, c) {
2229
+ var f = this.focusableComponents[this.focusKey];
2230
+ if (f) return f && f.onArrowPress && f.onArrowPress(u, c);
2231
+ this.log("onArrowPress", "noComponent");
2232
+ }, y.prototype.onArrowRelease = function(u) {
2233
+ var c = this.focusableComponents[this.focusKey];
2234
+ c ? c.focusable ? c.onArrowRelease && c.onArrowRelease(u) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
2235
+ }, y.prototype.navigateByDirection = function(u, c) {
2236
+ if (this.paused !== !0 && this.enabled && !this.nativeMode) {
2237
+ var f = [ne, ce, ue, oe];
2238
+ f.includes(u) ? (this.log("navigateByDirection", "direction", u), this.smartNavigate(u, null, c)) : this.log("navigateByDirection", "Invalid direction. You passed: `".concat(u, "`, but you can use only these: "), f);
2239
+ }
2240
+ }, y.prototype.smartNavigate = function(u, c, f) {
2241
+ var v = this;
2242
+ if (!this.nativeMode) {
2243
+ var C = u === ne || u === ce, w = u === ne || (this.writingDirection === Q.default.LTR ? u === oe : u === ue);
2244
+ this.log("smartNavigate", "direction", u), this.log("smartNavigate", "fromParentFocusKey", c), this.log("smartNavigate", "this.focusKey", this.focusKey), c || (0, te.default)(this.focusableComponents, (function(z) {
2245
+ z.layoutUpdated = !1;
2246
+ }));
2247
+ var T = this.focusableComponents[c || this.focusKey];
2248
+ if (c || T) {
2249
+ if (this.log("smartNavigate", "currentComponent", T ? T.focusKey : void 0, T ? T.node : void 0, T), T) {
2250
+ this.updateLayout(T.focusKey);
2251
+ var I = T.parentFocusKey, G = T.focusKey, k = T.layout, j = y.getCutoffCoordinate(C, w, !1, k, this.writingDirection), B = (0, H.default)(this.focusableComponents, (function(z) {
2252
+ if (z.parentFocusKey === I && z.focusable) {
2253
+ v.updateLayout(z.focusKey);
2254
+ var V = y.getCutoffCoordinate(C, w, !0, z.layout, v.writingDirection);
2255
+ return C || v.writingDirection === Q.default.LTR ? w ? V >= j : V <= j : w ? V <= j : V >= j;
2256
+ }
2257
+ return !1;
2258
+ }));
2259
+ if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", j), this.log("smartNavigate", "siblings", "".concat(B.length, " elements:"), B.map((function(z) {
2260
+ return z.focusKey;
2261
+ })).join(", "), B.map((function(z) {
2262
+ return z.node;
2263
+ })), B.map((function(z) {
2264
+ return z;
2265
+ })))), this.visualDebugger) {
2266
+ var D = y.getRefCorners(u, !1, k);
2267
+ this.visualDebugger.drawPoint(D.a.x, D.a.y), this.visualDebugger.drawPoint(D.b.x, D.b.y);
2268
+ }
2269
+ var Y = this.sortSiblingsByPriority(B, k, u, G), W = (0, U.default)(Y);
2270
+ if (this.log("smartNavigate", "nextComponent", W ? W.focusKey : void 0, W ? W.node : void 0, W), W) this.setFocus(W.focusKey, f);
2271
+ else {
2272
+ var X = this.focusableComponents[I], se = X?.isFocusBoundary ? X.focusBoundaryDirections || [u] : [];
2273
+ X && se.includes(u) || this.smartNavigate(u, I, f);
2274
+ }
2275
+ }
2276
+ } else this.setFocus(this.getForcedFocusKey());
2277
+ }
2278
+ }, y.prototype.saveLastFocusedChildKey = function(u, c) {
2279
+ u && (this.log("saveLastFocusedChildKey", "".concat(u.focusKey, " lastFocusedChildKey set"), c), u.lastFocusedChildKey = c);
2280
+ }, y.prototype.log = function(u, c) {
2281
+ for (var f = [], v = 2; v < arguments.length; v++) f[v - 2] = arguments[v];
2282
+ this.debug && console.log.apply(console, N(["%c".concat(u, "%c").concat(c), "background: ".concat(_e[this.logIndex % _e.length], "; color: black; padding: 1px 5px;"), "background: #333; color: #BADA55; padding: 1px 5px;"], f, !1));
2283
+ }, y.prototype.getCurrentFocusKey = function() {
2284
+ return this.focusKey;
2285
+ }, y.prototype.getForcedFocusKey = function() {
2286
+ var u, c = (0, H.default)(this.focusableComponents, (function(v) {
2287
+ return v.focusable && v.forceFocus;
2288
+ })), f = this.sortSiblingsByPriority(c, { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: null }, "down", d.ROOT_FOCUS_KEY);
2289
+ return (u = (0, U.default)(f)) === null || u === void 0 ? void 0 : u.focusKey;
2290
+ }, y.prototype.getNextFocusKey = function(u) {
2291
+ var c = this, f = this.focusableComponents[u];
2292
+ if (!f || this.nativeMode) return u;
2293
+ var v = (0, H.default)(this.focusableComponents, (function(I) {
2294
+ return I.parentFocusKey === u && I.focusable;
2295
+ }));
2296
+ if (v.length > 0) {
2297
+ var C = f.lastFocusedChildKey, w = f.preferredChildFocusKey;
2298
+ if (this.log("getNextFocusKey", "lastFocusedChildKey is", C), this.log("getNextFocusKey", "preferredChildFocusKey is", w), C && f.saveLastFocusedChild && this.isParticipatingFocusableComponent(C)) return this.log("getNextFocusKey", "lastFocusedChildKey will be focused", C), this.getNextFocusKey(C);
2299
+ if (w && this.isParticipatingFocusableComponent(w)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", w), this.getNextFocusKey(w);
2300
+ v.forEach((function(I) {
2301
+ return c.updateLayout(I.focusKey);
2302
+ }));
2303
+ var T = (function(I, G) {
2304
+ var k = G === Q.default.LTR ? function(B) {
2305
+ var D = B.layout;
2306
+ return Math.abs(D.left) + Math.abs(D.top);
2307
+ } : function(B) {
2308
+ var D = B.layout;
2309
+ return Math.abs(window.innerWidth - D.right) + Math.abs(D.top);
2310
+ }, j = (0, ve.default)(I, k);
2311
+ return (0, U.default)(j);
2312
+ })(v, this.writingDirection).focusKey;
2313
+ return this.log("getNextFocusKey", "childKey will be focused", T), this.getNextFocusKey(T);
2314
+ }
2315
+ return this.log("getNextFocusKey", "targetFocusKey", u), u;
2316
+ }, y.prototype.addFocusable = function(u) {
2317
+ var c = u.focusKey, f = u.node, v = u.parentFocusKey, C = u.onEnterPress, w = u.onEnterRelease, T = u.onArrowPress, I = u.onArrowRelease, G = u.onFocus, k = u.onBlur, j = u.saveLastFocusedChild, B = u.trackChildren, D = u.onUpdateFocus, Y = u.onUpdateHasFocusedChild, W = u.preferredChildFocusKey, X = u.autoRestoreFocus, se = u.forceFocus, z = u.focusable, V = u.isFocusBoundary, fe = u.focusBoundaryDirections;
2318
+ if (this.focusableComponents[c] = { focusKey: c, node: f, parentFocusKey: v, onEnterPress: C, onEnterRelease: w, onArrowPress: T, onArrowRelease: I, onFocus: G, onBlur: k, onUpdateFocus: D, onUpdateHasFocusedChild: Y, saveLastFocusedChild: j, trackChildren: B, preferredChildFocusKey: W, focusable: z, isFocusBoundary: V, focusBoundaryDirections: fe, autoRestoreFocus: X, 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) {
2319
+ this.updateLayout(c), this.log("addFocusable", "Component added: ", this.focusableComponents[c]), c === this.focusKey && this.setFocus(W || c);
2320
+ for (var ae = this.focusableComponents[this.focusKey]; ae; ) {
2321
+ if (ae.parentFocusKey === c) {
2322
+ this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
2323
+ break;
2324
+ }
2325
+ ae = this.focusableComponents[ae.parentFocusKey];
2326
+ }
2327
+ }
2328
+ }, y.prototype.removeFocusable = function(u) {
2329
+ var c = u.focusKey, f = this.focusableComponents[c];
2330
+ if (f) {
2331
+ var v = f.parentFocusKey;
2332
+ (0, f.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", f), delete this.focusableComponents[c];
2333
+ var C = this.parentsHavingFocusedChild.includes(c);
2334
+ this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter((function(I) {
2335
+ return I !== c;
2336
+ }));
2337
+ var w = this.focusableComponents[v], T = c === this.focusKey;
2338
+ if (w && w.lastFocusedChildKey === c && (w.lastFocusedChildKey = null), this.nativeMode) return;
2339
+ (T || C) && w && w.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", T ? "Leaf component" : "Container component", "Auto restoring focus to: ", v), this.setFocusDebounced(v));
2340
+ }
2341
+ }, y.prototype.getNodeLayoutByFocusKey = function(u) {
2342
+ var c = this.focusableComponents[u];
2343
+ return c ? (this.updateLayout(c.focusKey), c.layout) : null;
2344
+ }, y.prototype.setCurrentFocusedKey = function(u, c) {
2345
+ var f, v, C, w;
2346
+ if (this.isFocusableComponent(this.focusKey) && u !== this.focusKey) {
2347
+ var T = this.focusableComponents[this.focusKey];
2348
+ T.onUpdateFocus(!1), T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey), c), (v = (f = T.node) === null || f === void 0 ? void 0 : f.removeAttribute) === null || v === void 0 || v.call(f, "data-focused"), this.log("setCurrentFocusedKey", "onBlur", T);
2349
+ }
2350
+ if (this.focusKey = u, this.isFocusableComponent(this.focusKey)) {
2351
+ var I = this.focusableComponents[this.focusKey];
2352
+ this.shouldFocusDOMNode && I.node && I.node.focus(this.domNodeFocusOptions), (w = (C = I.node) === null || C === void 0 ? void 0 : C.setAttribute) === null || w === void 0 || w.call(C, "data-focused", "true"), I.onUpdateFocus(!0), I.onFocus(this.getNodeLayoutByFocusKey(this.focusKey), c), this.log("setCurrentFocusedKey", "onFocus", I);
2353
+ }
2354
+ }, y.prototype.updateParentsHasFocusedChild = function(u, c) {
2355
+ for (var f = this, v = [], C = this.focusableComponents[u]; C; ) {
2356
+ var w = C.parentFocusKey, T = this.focusableComponents[w];
2357
+ if (T) {
2358
+ var I = T.focusKey;
2359
+ v.push(I);
2360
+ }
2361
+ C = T;
2362
+ }
2363
+ var G = (0, M.default)(this.parentsHavingFocusedChild, v), k = (0, M.default)(v, this.parentsHavingFocusedChild);
2364
+ (0, J.default)(G, (function(j) {
2365
+ var B = f.focusableComponents[j];
2366
+ B && B.trackChildren && B.onUpdateHasFocusedChild(!1), f.onIntermediateNodeBecameBlurred(j, c);
2367
+ })), (0, J.default)(k, (function(j) {
2368
+ var B = f.focusableComponents[j];
2369
+ B && B.trackChildren && B.onUpdateHasFocusedChild(!0), f.onIntermediateNodeBecameFocused(j, c);
2370
+ })), this.parentsHavingFocusedChild = v;
2371
+ }, y.prototype.updateParentsLastFocusedChild = function(u) {
2372
+ for (var c = this.focusableComponents[u]; c; ) {
2373
+ var f = c.parentFocusKey, v = this.focusableComponents[f];
2374
+ v && this.saveLastFocusedChildKey(v, c.focusKey), c = v;
2375
+ }
2376
+ }, y.prototype.getKeyMap = function() {
2377
+ return this.keyMap;
2378
+ }, y.prototype.setKeyMap = function(u) {
2379
+ this.keyMap = g(g({}, this.getKeyMap()), (function(c) {
2380
+ var f = {};
2381
+ return Object.entries(c).forEach((function(v) {
2382
+ var C = v[0], w = v[1];
2383
+ f[C] = Array.isArray(w) ? w : [w];
2384
+ })), f;
2385
+ })(u));
2386
+ }, y.prototype.isFocusableComponent = function(u) {
2387
+ return !!this.focusableComponents[u];
2388
+ }, y.prototype.isParticipatingFocusableComponent = function(u) {
2389
+ return this.isFocusableComponent(u) && this.focusableComponents[u].focusable;
2390
+ }, y.prototype.onIntermediateNodeBecameFocused = function(u, c) {
2391
+ this.isParticipatingFocusableComponent(u) && this.focusableComponents[u].onFocus(this.getNodeLayoutByFocusKey(u), c);
2392
+ }, y.prototype.onIntermediateNodeBecameBlurred = function(u, c) {
2393
+ this.isParticipatingFocusableComponent(u) && this.focusableComponents[u].onBlur(this.getNodeLayoutByFocusKey(u), c);
2394
+ }, y.prototype.pause = function() {
2395
+ this.paused = !0;
2396
+ }, y.prototype.resume = function() {
2397
+ this.paused = !1;
2398
+ }, y.prototype.setFocus = function(u, c) {
2399
+ if (c === void 0 && (c = {}), this.setFocusDebounced.cancel(), this.enabled) {
2400
+ this.log("setFocus", "focusKey", u), u && u !== d.ROOT_FOCUS_KEY || (u = this.getForcedFocusKey());
2401
+ var f = this.getNextFocusKey(u);
2402
+ this.log("setFocus", "newFocusKey", f), this.setCurrentFocusedKey(f, c), this.updateParentsHasFocusedChild(f, c), this.updateParentsLastFocusedChild(f);
2403
+ }
2404
+ }, y.prototype.updateAllLayouts = function() {
2405
+ var u = this;
2406
+ this.enabled && !this.nativeMode && (0, te.default)(this.focusableComponents, (function(c, f) {
2407
+ u.updateLayout(f);
2408
+ }));
2409
+ }, y.prototype.updateLayout = function(u) {
2410
+ var c = this.focusableComponents[u];
2411
+ if (c && !this.nativeMode && !c.layoutUpdated) {
2412
+ var f = c.node, v = this.useGetBoundingClientRect ? (0, pe.getBoundingClientRect)(f) : (0, pe.default)(f);
2413
+ c.layout = g(g({}, v), { node: f });
2414
+ }
2415
+ }, y.prototype.updateFocusable = function(u, c) {
2416
+ var f = c.node, v = c.preferredChildFocusKey, C = c.focusable, w = c.isFocusBoundary, T = c.focusBoundaryDirections, I = c.onEnterPress, G = c.onEnterRelease, k = c.onArrowPress, j = c.onFocus, B = c.onBlur;
2417
+ if (!this.nativeMode) {
2418
+ var D = this.focusableComponents[u];
2419
+ D && (D.preferredChildFocusKey = v, D.focusable = C, D.isFocusBoundary = w, D.focusBoundaryDirections = T, D.onEnterPress = I, D.onEnterRelease = G, D.onArrowPress = k, D.onFocus = j, D.onBlur = B, f && (D.node = f));
2420
+ }
2421
+ }, y.prototype.isNativeMode = function() {
2422
+ return this.nativeMode;
2423
+ }, y.prototype.doesFocusableExist = function(u) {
2424
+ return !!this.focusableComponents[u];
2425
+ }, y.prototype.updateRtl = function(u) {
2426
+ this.writingDirection = u ? Q.default.RTL : Q.default.LTR;
2427
+ }, y;
2428
+ })();
2429
+ d.SpatialNavigation = new xe(), d.init = d.SpatialNavigation.init, d.setThrottle = d.SpatialNavigation.setThrottle, d.destroy = d.SpatialNavigation.destroy, d.setKeyMap = d.SpatialNavigation.setKeyMap, d.setFocus = d.SpatialNavigation.setFocus, d.navigateByDirection = d.SpatialNavigation.navigateByDirection, d.pause = d.SpatialNavigation.pause, d.resume = d.SpatialNavigation.resume, d.updateAllLayouts = d.SpatialNavigation.updateAllLayouts, d.getCurrentFocusKey = d.SpatialNavigation.getCurrentFocusKey, d.doesFocusableExist = d.SpatialNavigation.doesFocusableExist, d.updateRtl = d.SpatialNavigation.updateRtl;
2430
+ }, 35: function(b, d, p) {
2431
+ var q = this && this.__importDefault || function(R) {
2432
+ return R && R.__esModule ? R : { default: R };
2433
+ };
2434
+ Object.defineProperty(d, "__esModule", { value: !0 });
2435
+ var g = q(p(119)), E = typeof window < "u" && window.document, O = E ? window.innerWidth : 0, F = E ? window.innerHeight : 0, N = (function() {
2436
+ function R(x) {
2437
+ E && (this.debugCtx = R.createCanvas("sn-debug", "1010", x), this.layoutsCtx = R.createCanvas("sn-layouts", "1000", x), this.writingDirection = x);
2438
+ }
2439
+ return R.createCanvas = function(x, M, H) {
2440
+ var A = document.querySelector("#".concat(x)) || document.createElement("canvas");
2441
+ A.setAttribute("id", x), A.setAttribute("dir", H === g.default.LTR ? "ltr" : "rtl");
2442
+ var U = A.getContext("2d");
2443
+ return A.style.zIndex = M, A.style.position = "fixed", A.style.top = "0", A.style.left = "0", document.body.appendChild(A), A.width = O, A.height = F, U;
2444
+ }, R.prototype.clear = function() {
2445
+ E && this.debugCtx.clearRect(0, 0, O, F);
2446
+ }, R.prototype.clearLayouts = function() {
2447
+ E && this.layoutsCtx.clearRect(0, 0, O, F);
2448
+ }, R.prototype.drawLayout = function(x, M, H) {
2449
+ if (E) {
2450
+ this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(x.left, x.top, x.width, x.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
2451
+ var A = this.writingDirection === g.default.LTR ? "left" : "right", U = x[A];
2452
+ this.layoutsCtx.fillText(M, U, x.top + 10), this.layoutsCtx.fillText(H, U, x.top + 25), this.layoutsCtx.fillText("".concat(A, ": ").concat(U), U, x.top + 40), this.layoutsCtx.fillText("top: ".concat(x.top), U, x.top + 55);
2453
+ }
2454
+ }, R.prototype.drawPoint = function(x, M, H, A) {
2455
+ H === void 0 && (H = "blue"), A === void 0 && (A = 10), E && (this.debugCtx.strokeStyle = H, this.debugCtx.lineWidth = 3, this.debugCtx.strokeRect(x - A / 2, M - A / 2, A, A));
2456
+ }, R;
2457
+ })();
2458
+ d.default = N;
2459
+ }, 119: function(b, d) {
2460
+ var p;
2461
+ Object.defineProperty(d, "__esModule", { value: !0 }), (function(q) {
2462
+ q[q.LTR = 0] = "LTR", q[q.RTL = 1] = "RTL";
2463
+ })(p || (p = {})), d.default = p;
2464
+ }, 607: function(b, d, p) {
2465
+ var q = this && this.__createBinding || (Object.create ? function(E, O, F, N) {
2466
+ N === void 0 && (N = F);
2467
+ var R = Object.getOwnPropertyDescriptor(O, F);
2468
+ R && !("get" in R ? !O.__esModule : R.writable || R.configurable) || (R = { enumerable: !0, get: function() {
2469
+ return O[F];
2470
+ } }), Object.defineProperty(E, N, R);
2471
+ } : function(E, O, F, N) {
2472
+ N === void 0 && (N = F), E[N] = O[F];
2473
+ }), g = this && this.__exportStar || function(E, O) {
2474
+ for (var F in E) F === "default" || Object.prototype.hasOwnProperty.call(O, F) || q(O, E, F);
2475
+ };
2476
+ Object.defineProperty(d, "__esModule", { value: !0 }), g(p(79), d), g(p(445), d), g(p(654), d);
2477
+ }, 964: function(b, d) {
2478
+ Object.defineProperty(d, "__esModule", { value: !0 }), d.getBoundingClientRect = void 0;
2479
+ var p = function(q) {
2480
+ for (var g = q.offsetParent, E = q.offsetHeight, O = q.offsetWidth, F = q.offsetLeft, N = q.offsetTop; g && g.nodeType === 1; ) F += g.offsetLeft - g.scrollLeft, N += g.offsetTop - g.scrollTop, g = g.offsetParent;
2481
+ return { height: E, left: F, top: N, width: O };
2482
+ };
2483
+ d.default = function(q) {
2484
+ var g = q && q.parentElement;
2485
+ if (q && g) {
2486
+ var E = p(g), O = p(q), F = O.height, N = O.left, R = O.top, x = O.width;
2487
+ return { x: N - E.left, y: R - E.top, width: x, height: F, left: N, top: R, get right() {
2488
+ return this.left + this.width;
2489
+ }, get bottom() {
2490
+ return this.top + this.height;
2491
+ } };
2492
+ }
2493
+ return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2494
+ }, d.getBoundingClientRect = function(q) {
2495
+ if (q && q.getBoundingClientRect) {
2496
+ var g = q.getBoundingClientRect();
2497
+ return { x: g.x, y: g.y, width: g.width, height: g.height, left: g.left, top: g.top, get right() {
2498
+ return this.left + this.width;
2499
+ }, get bottom() {
2500
+ return this.top + this.height;
2501
+ } };
2502
+ }
2503
+ return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2504
+ };
2505
+ }, 445: function(b, d, p) {
2506
+ Object.defineProperty(d, "__esModule", { value: !0 }), d.useFocusContext = d.FocusContext = void 0;
2507
+ var q = p(156), g = p(654);
2508
+ d.FocusContext = (0, q.createContext)(g.ROOT_FOCUS_KEY), d.FocusContext.displayName = "FocusContext", d.useFocusContext = function() {
2509
+ return (0, q.useContext)(d.FocusContext);
2510
+ };
2511
+ }, 79: function(b, d, p) {
2512
+ var q = this && this.__importDefault || function(R) {
2513
+ return R && R.__esModule ? R : { default: R };
2514
+ };
2515
+ Object.defineProperty(d, "__esModule", { value: !0 }), d.useFocusable = void 0;
2516
+ var g = p(156), E = q(p(604)), O = q(p(461)), F = p(654), N = p(445);
2517
+ d.useFocusable = function(R) {
2518
+ var x = R === void 0 ? {} : R, M = x.focusable, H = M === void 0 || M, A = x.saveLastFocusedChild, U = A === void 0 || A, J = x.trackChildren, te = J !== void 0 && J, ve = x.autoRestoreFocus, Le = ve === void 0 || ve, Te = x.forceFocus, Q = Te !== void 0 && Te, pe = x.isFocusBoundary, ue = pe !== void 0 && pe, oe = x.focusBoundaryDirections, ce = x.focusKey, ne = x.preferredChildFocusKey, ye = x.onEnterPress, ge = ye === void 0 ? E.default : ye, _e = x.onEnterRelease, Oe = _e === void 0 ? E.default : _e, xe = x.onArrowPress, y = xe === void 0 ? function() {
2519
+ return !0;
2520
+ } : xe, u = x.onArrowRelease, c = u === void 0 ? E.default : u, f = x.onFocus, v = f === void 0 ? E.default : f, C = x.onBlur, w = C === void 0 ? E.default : C, T = x.extraProps, I = (0, g.useCallback)((function($) {
2521
+ ge(T, $);
2522
+ }), [ge, T]), G = (0, g.useCallback)((function() {
2523
+ Oe(T);
2524
+ }), [Oe, T]), k = (0, g.useCallback)((function($, Z) {
2525
+ return y($, T, Z);
2526
+ }), [T, y]), j = (0, g.useCallback)((function($) {
2527
+ c($, T);
2528
+ }), [c, T]), B = (0, g.useCallback)((function($, Z) {
2529
+ v($, T, Z);
2530
+ }), [T, v]), D = (0, g.useCallback)((function($, Z) {
2531
+ w($, T, Z);
2532
+ }), [T, w]), Y = (0, g.useRef)(null), W = (0, g.useState)(!1), X = W[0], se = W[1], z = (0, g.useState)(!1), V = z[0], fe = z[1], ae = (0, N.useFocusContext)(), ee = (0, g.useMemo)((function() {
2533
+ return ce || (0, O.default)("sn:focusable-item-");
2534
+ }), [ce]), be = (0, g.useCallback)((function($) {
2535
+ $ === void 0 && ($ = {}), F.SpatialNavigation.setFocus(ee, $);
2536
+ }), [ee]);
2537
+ return (0, g.useEffect)((function() {
2538
+ var $ = Y.current;
2539
+ return F.SpatialNavigation.addFocusable({ focusKey: ee, node: $, parentFocusKey: ae, preferredChildFocusKey: ne, onEnterPress: I, onEnterRelease: G, onArrowPress: k, onArrowRelease: j, onFocus: B, onBlur: D, onUpdateFocus: function(Z) {
2540
+ return Z === void 0 && (Z = !1), se(Z);
2541
+ }, onUpdateHasFocusedChild: function(Z) {
2542
+ return Z === void 0 && (Z = !1), fe(Z);
2543
+ }, saveLastFocusedChild: U, trackChildren: te, isFocusBoundary: ue, focusBoundaryDirections: oe, autoRestoreFocus: Le, forceFocus: Q, focusable: H }), function() {
2544
+ F.SpatialNavigation.removeFocusable({ focusKey: ee });
2545
+ };
2546
+ }), []), (0, g.useEffect)((function() {
2547
+ var $ = Y.current;
2548
+ F.SpatialNavigation.updateFocusable(ee, { node: $, preferredChildFocusKey: ne, focusable: H, isFocusBoundary: ue, focusBoundaryDirections: oe, onEnterPress: I, onEnterRelease: G, onArrowPress: k, onArrowRelease: j, onFocus: B, onBlur: D });
2549
+ }), [ee, ne, H, ue, oe, I, G, k, j, B, D]), { ref: Y, focusSelf: be, focused: X, hasFocusedChild: V, focusKey: ee };
2550
+ };
2551
+ }, 150: function(b) {
2552
+ b.exports = t;
2553
+ }, 117: function(b) {
2554
+ b.exports = n;
2555
+ }, 747: function(b) {
2556
+ b.exports = a;
2557
+ }, 23: function(b) {
2558
+ b.exports = i;
2559
+ }, 842: function(b) {
2560
+ b.exports = s;
2561
+ }, 682: function(b) {
2562
+ b.exports = o;
2563
+ }, 784: function(b) {
2564
+ b.exports = l;
2565
+ }, 604: function(b) {
2566
+ b.exports = h;
2567
+ }, 432: function(b) {
2568
+ b.exports = m;
2569
+ }, 67: function(b) {
2570
+ b.exports = _;
2571
+ }, 461: function(b) {
2572
+ b.exports = S;
2573
+ }, 156: function(b) {
2574
+ b.exports = P;
2575
+ } }, K = {};
2576
+ return (function b(d) {
2577
+ var p = K[d];
2578
+ if (p !== void 0) return p.exports;
2579
+ var q = K[d] = { exports: {} };
2580
+ return L[d].call(q.exports, q, q.exports, b), q.exports;
2581
+ })(607);
2582
+ })();
2583
+ }));
2584
+ })(Ke)), Ke.exports;
2585
+ }
2586
+ var Nc = Mc();
83
2587
  export {
84
- G,
85
- L,
86
- O$1 as O,
87
- d
2588
+ Lc as a,
2589
+ Se as c,
2590
+ Nc as d,
2591
+ Dc as g
88
2592
  };