@adstore/templates 2.7.0 → 2.7.2

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.
@@ -0,0 +1,2950 @@
1
+ var Uo = Object.defineProperty, Wo = Object.defineProperties;
2
+ var zo = Object.getOwnPropertyDescriptors;
3
+ var Re = Object.getOwnPropertySymbols;
4
+ var mt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
+ var gt = (e, t, o) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, f = (e, t) => {
6
+ for (var o in t || (t = {}))
7
+ mt.call(t, o) && gt(e, o, t[o]);
8
+ if (Re)
9
+ for (var o of Re(t))
10
+ vt.call(t, o) && gt(e, o, t[o]);
11
+ return e;
12
+ }, b = (e, t) => Wo(e, zo(t));
13
+ var Ye = (e, t) => {
14
+ var o = {};
15
+ for (var n in e)
16
+ mt.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
17
+ if (e != null && Re)
18
+ for (var n of Re(e))
19
+ t.indexOf(n) < 0 && vt.call(e, n) && (o[n] = e[n]);
20
+ return o;
21
+ };
22
+ var Ce = (e, t, o) => new Promise((n, r) => {
23
+ var i = (_) => {
24
+ try {
25
+ l(o.next(_));
26
+ } catch (c) {
27
+ r(c);
28
+ }
29
+ }, s = (_) => {
30
+ try {
31
+ l(o.throw(_));
32
+ } catch (c) {
33
+ r(c);
34
+ }
35
+ }, l = (_) => _.done ? n(_.value) : Promise.resolve(_.value).then(i, s);
36
+ l((o = o.apply(e, t)).next());
37
+ });
38
+ import { options as g, Component as Oe, createElement as yt, Fragment as bt, toChildArray as nt, createContext as Zo, render as Ko, cloneElement as Xo } from "preact";
39
+ var Me = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, rt = {}, Jo = {
40
+ get exports() {
41
+ return rt;
42
+ },
43
+ set exports(e) {
44
+ rt = e;
45
+ }
46
+ };
47
+ /*!
48
+ Copyright (c) 2018 Jed Watson.
49
+ Licensed under the MIT License (MIT), see
50
+ http://jedwatson.github.io/classnames
51
+ */
52
+ (function(e) {
53
+ (function() {
54
+ var t = {}.hasOwnProperty;
55
+ function o() {
56
+ for (var n = [], r = 0; r < arguments.length; r++) {
57
+ var i = arguments[r];
58
+ if (i) {
59
+ var s = typeof i;
60
+ if (s === "string" || s === "number")
61
+ n.push(i);
62
+ else if (Array.isArray(i)) {
63
+ if (i.length) {
64
+ var l = o.apply(null, i);
65
+ l && n.push(l);
66
+ }
67
+ } else if (s === "object") {
68
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
69
+ n.push(i.toString());
70
+ continue;
71
+ }
72
+ for (var _ in i)
73
+ t.call(i, _) && i[_] && n.push(_);
74
+ }
75
+ }
76
+ }
77
+ return n.join(" ");
78
+ }
79
+ e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
80
+ })();
81
+ })(Jo);
82
+ const L = rt;
83
+ var me, N, et, $t, ge = 0, io = [], Ve = [], kt = g.__b, xt = g.__r, Nt = g.diffed, Ct = g.__c, wt = g.unmount;
84
+ function Ae(e, t) {
85
+ g.__h && g.__h(N, e, ge || t), ge = 0;
86
+ var o = N.__H || (N.__H = { __: [], __h: [] });
87
+ return e >= o.__.length && o.__.push({ __V: Ve }), o.__[e];
88
+ }
89
+ function ne(e) {
90
+ return ge = 1, Qo(lo, e);
91
+ }
92
+ function Qo(e, t, o) {
93
+ var n = Ae(me++, 2);
94
+ if (n.t = e, !n.__c && (n.__ = [o ? o(t) : lo(void 0, t), function(l) {
95
+ var _ = n.__N ? n.__N[0] : n.__[0], c = n.t(_, l);
96
+ _ !== c && (n.__N = [c, n.__[1]], n.__c.setState({}));
97
+ }], n.__c = N, !N.u)) {
98
+ var r = function(l, _, c) {
99
+ if (!n.__c.__H)
100
+ return !0;
101
+ var d = n.__c.__H.__.filter(function(u) {
102
+ return u.__c;
103
+ });
104
+ if (d.every(function(u) {
105
+ return !u.__N;
106
+ }))
107
+ return !i || i.call(this, l, _, c);
108
+ var p = !1;
109
+ return d.forEach(function(u) {
110
+ if (u.__N) {
111
+ var h = u.__[0];
112
+ u.__ = u.__N, u.__N = void 0, h !== u.__[0] && (p = !0);
113
+ }
114
+ }), !(!p && n.__c.props === l) && (!i || i.call(this, l, _, c));
115
+ };
116
+ N.u = !0;
117
+ var i = N.shouldComponentUpdate, s = N.componentWillUpdate;
118
+ N.componentWillUpdate = function(l, _, c) {
119
+ if (this.__e) {
120
+ var d = i;
121
+ i = void 0, r(l, _, c), i = d;
122
+ }
123
+ s && s.call(this, l, _, c);
124
+ }, N.shouldComponentUpdate = r;
125
+ }
126
+ return n.__N || n.__;
127
+ }
128
+ function V(e, t) {
129
+ var o = Ae(me++, 3);
130
+ !g.__s && it(o.__H, t) && (o.__ = e, o.i = t, N.__H.__h.push(o));
131
+ }
132
+ function co(e, t) {
133
+ var o = Ae(me++, 4);
134
+ !g.__s && it(o.__H, t) && (o.__ = e, o.i = t, N.__h.push(o));
135
+ }
136
+ function F(e) {
137
+ return ge = 5, Ie(function() {
138
+ return { current: e };
139
+ }, []);
140
+ }
141
+ function Se(e, t, o) {
142
+ ge = 6, co(function() {
143
+ return typeof e == "function" ? (e(t()), function() {
144
+ return e(null);
145
+ }) : e ? (e.current = t(), function() {
146
+ return e.current = null;
147
+ }) : void 0;
148
+ }, o == null ? o : o.concat(e));
149
+ }
150
+ function Ie(e, t) {
151
+ var o = Ae(me++, 7);
152
+ return it(o.__H, t) ? (o.__V = e(), o.i = t, o.__h = e, o.__V) : o.__;
153
+ }
154
+ function Yo(e, t) {
155
+ return ge = 8, Ie(function() {
156
+ return e;
157
+ }, t);
158
+ }
159
+ function en(e) {
160
+ var t = N.context[e.__c], o = Ae(me++, 9);
161
+ return o.c = e, t ? (o.__ == null && (o.__ = !0, t.sub(N)), t.props.value) : e.__;
162
+ }
163
+ function tn() {
164
+ for (var e; e = io.shift(); )
165
+ if (e.__P && e.__H)
166
+ try {
167
+ e.__H.__h.forEach(Be), e.__H.__h.forEach(at), e.__H.__h = [];
168
+ } catch (t) {
169
+ e.__H.__h = [], g.__e(t, e.__v);
170
+ }
171
+ }
172
+ g.__b = function(e) {
173
+ N = null, kt && kt(e);
174
+ }, g.__r = function(e) {
175
+ xt && xt(e), me = 0;
176
+ var t = (N = e.__c).__H;
177
+ t && (et === N ? (t.__h = [], N.__h = [], t.__.forEach(function(o) {
178
+ o.__N && (o.__ = o.__N), o.__V = Ve, o.__N = o.i = void 0;
179
+ })) : (t.__h.forEach(Be), t.__h.forEach(at), t.__h = [])), et = N;
180
+ }, g.diffed = function(e) {
181
+ Nt && Nt(e);
182
+ var t = e.__c;
183
+ t && t.__H && (t.__H.__h.length && (io.push(t) !== 1 && $t === g.requestAnimationFrame || (($t = g.requestAnimationFrame) || on)(tn)), t.__H.__.forEach(function(o) {
184
+ o.i && (o.__H = o.i), o.__V !== Ve && (o.__ = o.__V), o.i = void 0, o.__V = Ve;
185
+ })), et = N = null;
186
+ }, g.__c = function(e, t) {
187
+ t.some(function(o) {
188
+ try {
189
+ o.__h.forEach(Be), o.__h = o.__h.filter(function(n) {
190
+ return !n.__ || at(n);
191
+ });
192
+ } catch (n) {
193
+ t.some(function(r) {
194
+ r.__h && (r.__h = []);
195
+ }), t = [], g.__e(n, o.__v);
196
+ }
197
+ }), Ct && Ct(e, t);
198
+ }, g.unmount = function(e) {
199
+ wt && wt(e);
200
+ var t, o = e.__c;
201
+ o && o.__H && (o.__H.__.forEach(function(n) {
202
+ try {
203
+ Be(n);
204
+ } catch (r) {
205
+ t = r;
206
+ }
207
+ }), o.__H = void 0, t && g.__e(t, o.__v));
208
+ };
209
+ var Tt = typeof requestAnimationFrame == "function";
210
+ function on(e) {
211
+ var t, o = function() {
212
+ clearTimeout(n), Tt && cancelAnimationFrame(t), setTimeout(e);
213
+ }, n = setTimeout(o, 100);
214
+ Tt && (t = requestAnimationFrame(o));
215
+ }
216
+ function Be(e) {
217
+ var t = N, o = e.__c;
218
+ typeof o == "function" && (e.__c = void 0, o()), N = t;
219
+ }
220
+ function at(e) {
221
+ var t = N;
222
+ e.__c = e.__(), N = t;
223
+ }
224
+ function it(e, t) {
225
+ return !e || e.length !== t.length || t.some(function(o, n) {
226
+ return o !== e[n];
227
+ });
228
+ }
229
+ function lo(e, t) {
230
+ return typeof t == "function" ? t(e) : t;
231
+ }
232
+ function _o(e, t) {
233
+ for (var o in t)
234
+ e[o] = t[o];
235
+ return e;
236
+ }
237
+ function Ot(e, t) {
238
+ for (var o in e)
239
+ if (o !== "__source" && !(o in t))
240
+ return !0;
241
+ for (var n in t)
242
+ if (n !== "__source" && e[n] !== t[n])
243
+ return !0;
244
+ return !1;
245
+ }
246
+ function jt(e) {
247
+ this.props = e;
248
+ }
249
+ (jt.prototype = new Oe()).isPureReactComponent = !0, jt.prototype.shouldComponentUpdate = function(e, t) {
250
+ return Ot(this.props, e) || Ot(this.state, t);
251
+ };
252
+ var Lt = g.__b;
253
+ g.__b = function(e) {
254
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Lt && Lt(e);
255
+ };
256
+ var nn = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
257
+ function se(e) {
258
+ function t(o) {
259
+ var n = _o({}, o);
260
+ return delete n.ref, e(n, o.ref || null);
261
+ }
262
+ return t.$$typeof = nn, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
263
+ }
264
+ var rn = g.__e;
265
+ g.__e = function(e, t, o, n) {
266
+ if (e.then) {
267
+ for (var r, i = t; i = i.__; )
268
+ if ((r = i.__c) && r.__c)
269
+ return t.__e == null && (t.__e = o.__e, t.__k = o.__k), r.__c(e, t);
270
+ }
271
+ rn(e, t, o, n);
272
+ };
273
+ var At = g.unmount;
274
+ function uo(e, t, o) {
275
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
276
+ typeof n.__c == "function" && n.__c();
277
+ }), e.__c.__H = null), (e = _o({}, e)).__c != null && (e.__c.__P === o && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
278
+ return uo(n, t, o);
279
+ })), e;
280
+ }
281
+ function po(e, t, o) {
282
+ return e && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
283
+ return po(n, t, o);
284
+ }), e.__c && e.__c.__P === t && (e.__e && o.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = o)), e;
285
+ }
286
+ function tt() {
287
+ this.__u = 0, this.t = null, this.__b = null;
288
+ }
289
+ function fo(e) {
290
+ var t = e.__.__c;
291
+ return t && t.__a && t.__a(e);
292
+ }
293
+ function Ee() {
294
+ this.u = null, this.o = null;
295
+ }
296
+ g.unmount = function(e) {
297
+ var t = e.__c;
298
+ t && t.__R && t.__R(), t && e.__h === !0 && (e.type = null), At && At(e);
299
+ }, (tt.prototype = new Oe()).__c = function(e, t) {
300
+ var o = t.__c, n = this;
301
+ n.t == null && (n.t = []), n.t.push(o);
302
+ var r = fo(n.__v), i = !1, s = function() {
303
+ i || (i = !0, o.__R = null, r ? r(l) : l());
304
+ };
305
+ o.__R = s;
306
+ var l = function() {
307
+ if (!--n.__u) {
308
+ if (n.state.__a) {
309
+ var c = n.state.__a;
310
+ n.__v.__k[0] = po(c, c.__c.__P, c.__c.__O);
311
+ }
312
+ var d;
313
+ for (n.setState({ __a: n.__b = null }); d = n.t.pop(); )
314
+ d.forceUpdate();
315
+ }
316
+ }, _ = t.__h === !0;
317
+ n.__u++ || _ || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(s, s);
318
+ }, tt.prototype.componentWillUnmount = function() {
319
+ this.t = [];
320
+ }, tt.prototype.render = function(e, t) {
321
+ if (this.__b) {
322
+ if (this.__v.__k) {
323
+ var o = document.createElement("div"), n = this.__v.__k[0].__c;
324
+ this.__v.__k[0] = uo(this.__b, o, n.__O = n.__P);
325
+ }
326
+ this.__b = null;
327
+ }
328
+ var r = t.__a && yt(bt, null, e.fallback);
329
+ return r && (r.__h = null), [yt(bt, null, t.__a ? null : e.children), r];
330
+ };
331
+ var St = function(e, t, o) {
332
+ if (++o[1] === o[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
333
+ for (o = e.u; o; ) {
334
+ for (; o.length > 3; )
335
+ o.pop()();
336
+ if (o[1] < o[0])
337
+ break;
338
+ e.u = o = o[2];
339
+ }
340
+ };
341
+ (Ee.prototype = new Oe()).__a = function(e) {
342
+ var t = this, o = fo(t.__v), n = t.o.get(e);
343
+ return n[0]++, function(r) {
344
+ var i = function() {
345
+ t.props.revealOrder ? (n.push(r), St(t, e, n)) : r();
346
+ };
347
+ o ? o(i) : i();
348
+ };
349
+ }, Ee.prototype.render = function(e) {
350
+ this.u = null, this.o = /* @__PURE__ */ new Map();
351
+ var t = nt(e.children);
352
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
353
+ for (var o = t.length; o--; )
354
+ this.o.set(t[o], this.u = [1, 0, this.u]);
355
+ return e.children;
356
+ }, Ee.prototype.componentDidUpdate = Ee.prototype.componentDidMount = function() {
357
+ var e = this;
358
+ this.o.forEach(function(t, o) {
359
+ St(e, o, t);
360
+ });
361
+ };
362
+ var an = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, sn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, cn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ln = /[A-Z0-9]/g, _n = typeof document != "undefined", dn = function(e) {
363
+ return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
364
+ };
365
+ Oe.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
366
+ Object.defineProperty(Oe.prototype, e, { configurable: !0, get: function() {
367
+ return this["UNSAFE_" + e];
368
+ }, set: function(t) {
369
+ Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
370
+ } });
371
+ });
372
+ var It = g.event;
373
+ function un() {
374
+ }
375
+ function pn() {
376
+ return this.cancelBubble;
377
+ }
378
+ function fn() {
379
+ return this.defaultPrevented;
380
+ }
381
+ g.event = function(e) {
382
+ return It && (e = It(e)), e.persist = un, e.isPropagationStopped = pn, e.isDefaultPrevented = fn, e.nativeEvent = e;
383
+ };
384
+ var hn = { enumerable: !1, configurable: !0, get: function() {
385
+ return this.class;
386
+ } }, Pt = g.vnode;
387
+ g.vnode = function(e) {
388
+ typeof e.type == "string" && function(t) {
389
+ var o = t.props, n = t.type, r = {};
390
+ for (var i in o) {
391
+ var s = o[i];
392
+ if (!(i === "value" && "defaultValue" in o && s == null || _n && i === "children" && n === "noscript" || i === "class" || i === "className")) {
393
+ var l = i.toLowerCase();
394
+ i === "defaultValue" && "value" in o && o.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || n !== "input" && n !== "textarea" || dn(o.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : cn.test(i) ? i = l : n.indexOf("-") === -1 && sn.test(i) ? i = i.replace(ln, "-$&").toLowerCase() : s === null && (s = void 0) : l = i = "oninput", l === "oninput" && r[i = l] && (i = "oninputCapture"), r[i] = s;
395
+ }
396
+ }
397
+ n == "select" && r.multiple && Array.isArray(r.value) && (r.value = nt(o.children).forEach(function(_) {
398
+ _.props.selected = r.value.indexOf(_.props.value) != -1;
399
+ })), n == "select" && r.defaultValue != null && (r.value = nt(o.children).forEach(function(_) {
400
+ _.props.selected = r.multiple ? r.defaultValue.indexOf(_.props.value) != -1 : r.defaultValue == _.props.value;
401
+ })), o.class && !o.className ? (r.class = o.class, Object.defineProperty(r, "className", hn)) : (o.className && !o.class || o.class && o.className) && (r.class = r.className = o.className), t.props = r;
402
+ }(e), e.$$typeof = an, Pt && Pt(e);
403
+ };
404
+ var Ht = g.__r;
405
+ g.__r = function(e) {
406
+ Ht && Ht(e), e.__c;
407
+ };
408
+ var Rt = g.diffed;
409
+ g.diffed = function(e) {
410
+ Rt && Rt(e);
411
+ var t = e.props, o = e.__e;
412
+ o != null && e.type === "textarea" && "value" in t && t.value !== o.value && (o.value = t.value == null ? "" : t.value);
413
+ };
414
+ function gn() {
415
+ this.__data__ = [], this.size = 0;
416
+ }
417
+ var mn = gn;
418
+ function vn(e, t) {
419
+ return e === t || e !== e && t !== t;
420
+ }
421
+ var We = vn, yn = We;
422
+ function bn(e, t) {
423
+ for (var o = e.length; o--; )
424
+ if (yn(e[o][0], t))
425
+ return o;
426
+ return -1;
427
+ }
428
+ var ze = bn, $n = ze, kn = Array.prototype, xn = kn.splice;
429
+ function Nn(e) {
430
+ var t = this.__data__, o = $n(t, e);
431
+ if (o < 0)
432
+ return !1;
433
+ var n = t.length - 1;
434
+ return o == n ? t.pop() : xn.call(t, o, 1), --this.size, !0;
435
+ }
436
+ var Cn = Nn, wn = ze;
437
+ function Tn(e) {
438
+ var t = this.__data__, o = wn(t, e);
439
+ return o < 0 ? void 0 : t[o][1];
440
+ }
441
+ var On = Tn, jn = ze;
442
+ function Ln(e) {
443
+ return jn(this.__data__, e) > -1;
444
+ }
445
+ var An = Ln, Sn = ze;
446
+ function In(e, t) {
447
+ var o = this.__data__, n = Sn(o, e);
448
+ return n < 0 ? (++this.size, o.push([e, t])) : o[n][1] = t, this;
449
+ }
450
+ var Pn = In, Hn = mn, Rn = Cn, Mn = On, En = An, Vn = Pn;
451
+ function ve(e) {
452
+ var t = -1, o = e == null ? 0 : e.length;
453
+ for (this.clear(); ++t < o; ) {
454
+ var n = e[t];
455
+ this.set(n[0], n[1]);
456
+ }
457
+ }
458
+ ve.prototype.clear = Hn;
459
+ ve.prototype.delete = Rn;
460
+ ve.prototype.get = Mn;
461
+ ve.prototype.has = En;
462
+ ve.prototype.set = Vn;
463
+ var Ze = ve, Bn = Ze;
464
+ function Fn() {
465
+ this.__data__ = new Bn(), this.size = 0;
466
+ }
467
+ var Dn = Fn;
468
+ function Gn(e) {
469
+ var t = this.__data__, o = t.delete(e);
470
+ return this.size = t.size, o;
471
+ }
472
+ var qn = Gn;
473
+ function Un(e) {
474
+ return this.__data__.get(e);
475
+ }
476
+ var Wn = Un;
477
+ function zn(e) {
478
+ return this.__data__.has(e);
479
+ }
480
+ var Zn = zn, Kn = typeof Me == "object" && Me && Me.Object === Object && Me, ho = Kn, Xn = ho, Jn = typeof self == "object" && self && self.Object === Object && self, Qn = Xn || Jn || Function("return this")(), ye = Qn, Yn = ye, er = Yn.Symbol, go = er, Mt = go, mo = Object.prototype, tr = mo.hasOwnProperty, or = mo.toString, we = Mt ? Mt.toStringTag : void 0;
481
+ function nr(e) {
482
+ var t = tr.call(e, we), o = e[we];
483
+ try {
484
+ e[we] = void 0;
485
+ var n = !0;
486
+ } catch (i) {
487
+ }
488
+ var r = or.call(e);
489
+ return n && (t ? e[we] = o : delete e[we]), r;
490
+ }
491
+ var rr = nr, ar = Object.prototype, sr = ar.toString;
492
+ function ir(e) {
493
+ return sr.call(e);
494
+ }
495
+ var cr = ir, Et = go, lr = rr, _r = cr, dr = "[object Null]", ur = "[object Undefined]", Vt = Et ? Et.toStringTag : void 0;
496
+ function pr(e) {
497
+ return e == null ? e === void 0 ? ur : dr : Vt && Vt in Object(e) ? lr(e) : _r(e);
498
+ }
499
+ var Ke = pr;
500
+ function fr(e) {
501
+ var t = typeof e;
502
+ return e != null && (t == "object" || t == "function");
503
+ }
504
+ var pe = fr, hr = Ke, gr = pe, mr = "[object AsyncFunction]", vr = "[object Function]", yr = "[object GeneratorFunction]", br = "[object Proxy]";
505
+ function $r(e) {
506
+ if (!gr(e))
507
+ return !1;
508
+ var t = hr(e);
509
+ return t == vr || t == yr || t == mr || t == br;
510
+ }
511
+ var ct = $r, kr = ye, xr = kr["__core-js_shared__"], Nr = xr, ot = Nr, Bt = function() {
512
+ var e = /[^.]+$/.exec(ot && ot.keys && ot.keys.IE_PROTO || "");
513
+ return e ? "Symbol(src)_1." + e : "";
514
+ }();
515
+ function Cr(e) {
516
+ return !!Bt && Bt in e;
517
+ }
518
+ var wr = Cr, Tr = Function.prototype, Or = Tr.toString;
519
+ function jr(e) {
520
+ if (e != null) {
521
+ try {
522
+ return Or.call(e);
523
+ } catch (t) {
524
+ }
525
+ try {
526
+ return e + "";
527
+ } catch (t) {
528
+ }
529
+ }
530
+ return "";
531
+ }
532
+ var Lr = jr, Ar = ct, Sr = wr, Ir = pe, Pr = Lr, Hr = /[\\^$.*+?()[\]{}|]/g, Rr = /^\[object .+?Constructor\]$/, Mr = Function.prototype, Er = Object.prototype, Vr = Mr.toString, Br = Er.hasOwnProperty, Fr = RegExp(
533
+ "^" + Vr.call(Br).replace(Hr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
534
+ );
535
+ function Dr(e) {
536
+ if (!Ir(e) || Sr(e))
537
+ return !1;
538
+ var t = Ar(e) ? Fr : Rr;
539
+ return t.test(Pr(e));
540
+ }
541
+ var Gr = Dr;
542
+ function qr(e, t) {
543
+ return e == null ? void 0 : e[t];
544
+ }
545
+ var Ur = qr, Wr = Gr, zr = Ur;
546
+ function Zr(e, t) {
547
+ var o = zr(e, t);
548
+ return Wr(o) ? o : void 0;
549
+ }
550
+ var lt = Zr, Kr = lt, Xr = ye, Jr = Kr(Xr, "Map"), vo = Jr, Qr = lt, Yr = Qr(Object, "create"), Xe = Yr, Ft = Xe;
551
+ function ea() {
552
+ this.__data__ = Ft ? Ft(null) : {}, this.size = 0;
553
+ }
554
+ var ta = ea;
555
+ function oa(e) {
556
+ var t = this.has(e) && delete this.__data__[e];
557
+ return this.size -= t ? 1 : 0, t;
558
+ }
559
+ var na = oa, ra = Xe, aa = "__lodash_hash_undefined__", sa = Object.prototype, ia = sa.hasOwnProperty;
560
+ function ca(e) {
561
+ var t = this.__data__;
562
+ if (ra) {
563
+ var o = t[e];
564
+ return o === aa ? void 0 : o;
565
+ }
566
+ return ia.call(t, e) ? t[e] : void 0;
567
+ }
568
+ var la = ca, _a = Xe, da = Object.prototype, ua = da.hasOwnProperty;
569
+ function pa(e) {
570
+ var t = this.__data__;
571
+ return _a ? t[e] !== void 0 : ua.call(t, e);
572
+ }
573
+ var fa = pa, ha = Xe, ga = "__lodash_hash_undefined__";
574
+ function ma(e, t) {
575
+ var o = this.__data__;
576
+ return this.size += this.has(e) ? 0 : 1, o[e] = ha && t === void 0 ? ga : t, this;
577
+ }
578
+ var va = ma, ya = ta, ba = na, $a = la, ka = fa, xa = va;
579
+ function be(e) {
580
+ var t = -1, o = e == null ? 0 : e.length;
581
+ for (this.clear(); ++t < o; ) {
582
+ var n = e[t];
583
+ this.set(n[0], n[1]);
584
+ }
585
+ }
586
+ be.prototype.clear = ya;
587
+ be.prototype.delete = ba;
588
+ be.prototype.get = $a;
589
+ be.prototype.has = ka;
590
+ be.prototype.set = xa;
591
+ var Na = be, Dt = Na, Ca = Ze, wa = vo;
592
+ function Ta() {
593
+ this.size = 0, this.__data__ = {
594
+ hash: new Dt(),
595
+ map: new (wa || Ca)(),
596
+ string: new Dt()
597
+ };
598
+ }
599
+ var Oa = Ta;
600
+ function ja(e) {
601
+ var t = typeof e;
602
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
603
+ }
604
+ var La = ja, Aa = La;
605
+ function Sa(e, t) {
606
+ var o = e.__data__;
607
+ return Aa(t) ? o[typeof t == "string" ? "string" : "hash"] : o.map;
608
+ }
609
+ var Je = Sa, Ia = Je;
610
+ function Pa(e) {
611
+ var t = Ia(this, e).delete(e);
612
+ return this.size -= t ? 1 : 0, t;
613
+ }
614
+ var Ha = Pa, Ra = Je;
615
+ function Ma(e) {
616
+ return Ra(this, e).get(e);
617
+ }
618
+ var Ea = Ma, Va = Je;
619
+ function Ba(e) {
620
+ return Va(this, e).has(e);
621
+ }
622
+ var Fa = Ba, Da = Je;
623
+ function Ga(e, t) {
624
+ var o = Da(this, e), n = o.size;
625
+ return o.set(e, t), this.size += o.size == n ? 0 : 1, this;
626
+ }
627
+ var qa = Ga, Ua = Oa, Wa = Ha, za = Ea, Za = Fa, Ka = qa;
628
+ function $e(e) {
629
+ var t = -1, o = e == null ? 0 : e.length;
630
+ for (this.clear(); ++t < o; ) {
631
+ var n = e[t];
632
+ this.set(n[0], n[1]);
633
+ }
634
+ }
635
+ $e.prototype.clear = Ua;
636
+ $e.prototype.delete = Wa;
637
+ $e.prototype.get = za;
638
+ $e.prototype.has = Za;
639
+ $e.prototype.set = Ka;
640
+ var Xa = $e, Ja = Ze, Qa = vo, Ya = Xa, es = 200;
641
+ function ts(e, t) {
642
+ var o = this.__data__;
643
+ if (o instanceof Ja) {
644
+ var n = o.__data__;
645
+ if (!Qa || n.length < es - 1)
646
+ return n.push([e, t]), this.size = ++o.size, this;
647
+ o = this.__data__ = new Ya(n);
648
+ }
649
+ return o.set(e, t), this.size = o.size, this;
650
+ }
651
+ var os = ts, ns = Ze, rs = Dn, as = qn, ss = Wn, is = Zn, cs = os;
652
+ function ke(e) {
653
+ var t = this.__data__ = new ns(e);
654
+ this.size = t.size;
655
+ }
656
+ ke.prototype.clear = rs;
657
+ ke.prototype.delete = as;
658
+ ke.prototype.get = ss;
659
+ ke.prototype.has = is;
660
+ ke.prototype.set = cs;
661
+ var ls = ke, _s = lt, ds = function() {
662
+ try {
663
+ var e = _s(Object, "defineProperty");
664
+ return e({}, "", {}), e;
665
+ } catch (t) {
666
+ }
667
+ }(), yo = ds, Gt = yo;
668
+ function us(e, t, o) {
669
+ t == "__proto__" && Gt ? Gt(e, t, {
670
+ configurable: !0,
671
+ enumerable: !0,
672
+ value: o,
673
+ writable: !0
674
+ }) : e[t] = o;
675
+ }
676
+ var _t = us, ps = _t, fs = We;
677
+ function hs(e, t, o) {
678
+ (o !== void 0 && !fs(e[t], o) || o === void 0 && !(t in e)) && ps(e, t, o);
679
+ }
680
+ var bo = hs;
681
+ function gs(e) {
682
+ return function(t, o, n) {
683
+ for (var r = -1, i = Object(t), s = n(t), l = s.length; l--; ) {
684
+ var _ = s[e ? l : ++r];
685
+ if (o(i[_], _, i) === !1)
686
+ break;
687
+ }
688
+ return t;
689
+ };
690
+ }
691
+ var ms = gs, vs = ms, ys = vs(), bs = ys, Fe = {}, $s = {
692
+ get exports() {
693
+ return Fe;
694
+ },
695
+ set exports(e) {
696
+ Fe = e;
697
+ }
698
+ };
699
+ (function(e, t) {
700
+ var o = ye, n = t && !t.nodeType && t, r = n && !0 && e && !e.nodeType && e, i = r && r.exports === n, s = i ? o.Buffer : void 0, l = s ? s.allocUnsafe : void 0;
701
+ function _(c, d) {
702
+ if (d)
703
+ return c.slice();
704
+ var p = c.length, u = l ? l(p) : new c.constructor(p);
705
+ return c.copy(u), u;
706
+ }
707
+ e.exports = _;
708
+ })($s, Fe);
709
+ var ks = ye, xs = ks.Uint8Array, Ns = xs, qt = Ns;
710
+ function Cs(e) {
711
+ var t = new e.constructor(e.byteLength);
712
+ return new qt(t).set(new qt(e)), t;
713
+ }
714
+ var ws = Cs, Ts = ws;
715
+ function Os(e, t) {
716
+ var o = t ? Ts(e.buffer) : e.buffer;
717
+ return new e.constructor(o, e.byteOffset, e.length);
718
+ }
719
+ var js = Os;
720
+ function Ls(e, t) {
721
+ var o = -1, n = e.length;
722
+ for (t || (t = Array(n)); ++o < n; )
723
+ t[o] = e[o];
724
+ return t;
725
+ }
726
+ var As = Ls, Ss = pe, Ut = Object.create, Is = function() {
727
+ function e() {
728
+ }
729
+ return function(t) {
730
+ if (!Ss(t))
731
+ return {};
732
+ if (Ut)
733
+ return Ut(t);
734
+ e.prototype = t;
735
+ var o = new e();
736
+ return e.prototype = void 0, o;
737
+ };
738
+ }(), Ps = Is;
739
+ function Hs(e, t) {
740
+ return function(o) {
741
+ return e(t(o));
742
+ };
743
+ }
744
+ var Rs = Hs, Ms = Rs, Es = Ms(Object.getPrototypeOf, Object), $o = Es, Vs = Object.prototype;
745
+ function Bs(e) {
746
+ var t = e && e.constructor, o = typeof t == "function" && t.prototype || Vs;
747
+ return e === o;
748
+ }
749
+ var ko = Bs, Fs = Ps, Ds = $o, Gs = ko;
750
+ function qs(e) {
751
+ return typeof e.constructor == "function" && !Gs(e) ? Fs(Ds(e)) : {};
752
+ }
753
+ var Us = qs;
754
+ function Ws(e) {
755
+ return e != null && typeof e == "object";
756
+ }
757
+ var Pe = Ws, zs = Ke, Zs = Pe, Ks = "[object Arguments]";
758
+ function Xs(e) {
759
+ return Zs(e) && zs(e) == Ks;
760
+ }
761
+ var Js = Xs, Wt = Js, Qs = Pe, xo = Object.prototype, Ys = xo.hasOwnProperty, ei = xo.propertyIsEnumerable, ti = Wt(function() {
762
+ return arguments;
763
+ }()) ? Wt : function(e) {
764
+ return Qs(e) && Ys.call(e, "callee") && !ei.call(e, "callee");
765
+ }, No = ti, oi = Array.isArray, Co = oi, ni = 9007199254740991;
766
+ function ri(e) {
767
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ni;
768
+ }
769
+ var wo = ri, ai = ct, si = wo;
770
+ function ii(e) {
771
+ return e != null && si(e.length) && !ai(e);
772
+ }
773
+ var dt = ii, ci = dt, li = Pe;
774
+ function _i(e) {
775
+ return li(e) && ci(e);
776
+ }
777
+ var di = _i, je = {}, ui = {
778
+ get exports() {
779
+ return je;
780
+ },
781
+ set exports(e) {
782
+ je = e;
783
+ }
784
+ };
785
+ function pi() {
786
+ return !1;
787
+ }
788
+ var fi = pi;
789
+ (function(e, t) {
790
+ var o = ye, n = fi, r = t && !t.nodeType && t, i = r && !0 && e && !e.nodeType && e, s = i && i.exports === r, l = s ? o.Buffer : void 0, _ = l ? l.isBuffer : void 0, c = _ || n;
791
+ e.exports = c;
792
+ })(ui, je);
793
+ var hi = Ke, gi = $o, mi = Pe, vi = "[object Object]", yi = Function.prototype, bi = Object.prototype, To = yi.toString, $i = bi.hasOwnProperty, ki = To.call(Object);
794
+ function xi(e) {
795
+ if (!mi(e) || hi(e) != vi)
796
+ return !1;
797
+ var t = gi(e);
798
+ if (t === null)
799
+ return !0;
800
+ var o = $i.call(t, "constructor") && t.constructor;
801
+ return typeof o == "function" && o instanceof o && To.call(o) == ki;
802
+ }
803
+ var Ni = xi, Ci = Ke, wi = wo, Ti = Pe, Oi = "[object Arguments]", ji = "[object Array]", Li = "[object Boolean]", Ai = "[object Date]", Si = "[object Error]", Ii = "[object Function]", Pi = "[object Map]", Hi = "[object Number]", Ri = "[object Object]", Mi = "[object RegExp]", Ei = "[object Set]", Vi = "[object String]", Bi = "[object WeakMap]", Fi = "[object ArrayBuffer]", Di = "[object DataView]", Gi = "[object Float32Array]", qi = "[object Float64Array]", Ui = "[object Int8Array]", Wi = "[object Int16Array]", zi = "[object Int32Array]", Zi = "[object Uint8Array]", Ki = "[object Uint8ClampedArray]", Xi = "[object Uint16Array]", Ji = "[object Uint32Array]", x = {};
804
+ x[Gi] = x[qi] = x[Ui] = x[Wi] = x[zi] = x[Zi] = x[Ki] = x[Xi] = x[Ji] = !0;
805
+ x[Oi] = x[ji] = x[Fi] = x[Li] = x[Di] = x[Ai] = x[Si] = x[Ii] = x[Pi] = x[Hi] = x[Ri] = x[Mi] = x[Ei] = x[Vi] = x[Bi] = !1;
806
+ function Qi(e) {
807
+ return Ti(e) && wi(e.length) && !!x[Ci(e)];
808
+ }
809
+ var Yi = Qi;
810
+ function ec(e) {
811
+ return function(t) {
812
+ return e(t);
813
+ };
814
+ }
815
+ var tc = ec, De = {}, oc = {
816
+ get exports() {
817
+ return De;
818
+ },
819
+ set exports(e) {
820
+ De = e;
821
+ }
822
+ };
823
+ (function(e, t) {
824
+ var o = ho, n = t && !t.nodeType && t, r = n && !0 && e && !e.nodeType && e, i = r && r.exports === n, s = i && o.process, l = function() {
825
+ try {
826
+ var _ = r && r.require && r.require("util").types;
827
+ return _ || s && s.binding && s.binding("util");
828
+ } catch (c) {
829
+ }
830
+ }();
831
+ e.exports = l;
832
+ })(oc, De);
833
+ var nc = Yi, rc = tc, zt = De, Zt = zt && zt.isTypedArray, ac = Zt ? rc(Zt) : nc, Oo = ac;
834
+ function sc(e, t) {
835
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
836
+ return e[t];
837
+ }
838
+ var jo = sc, ic = _t, cc = We, lc = Object.prototype, _c = lc.hasOwnProperty;
839
+ function dc(e, t, o) {
840
+ var n = e[t];
841
+ (!(_c.call(e, t) && cc(n, o)) || o === void 0 && !(t in e)) && ic(e, t, o);
842
+ }
843
+ var uc = dc, pc = uc, fc = _t;
844
+ function hc(e, t, o, n) {
845
+ var r = !o;
846
+ o || (o = {});
847
+ for (var i = -1, s = t.length; ++i < s; ) {
848
+ var l = t[i], _ = n ? n(o[l], e[l], l, o, e) : void 0;
849
+ _ === void 0 && (_ = e[l]), r ? fc(o, l, _) : pc(o, l, _);
850
+ }
851
+ return o;
852
+ }
853
+ var gc = hc;
854
+ function mc(e, t) {
855
+ for (var o = -1, n = Array(e); ++o < e; )
856
+ n[o] = t(o);
857
+ return n;
858
+ }
859
+ var vc = mc, yc = 9007199254740991, bc = /^(?:0|[1-9]\d*)$/;
860
+ function $c(e, t) {
861
+ var o = typeof e;
862
+ return t = t == null ? yc : t, !!t && (o == "number" || o != "symbol" && bc.test(e)) && e > -1 && e % 1 == 0 && e < t;
863
+ }
864
+ var Lo = $c, kc = vc, xc = No, Nc = Co, Cc = je, wc = Lo, Tc = Oo, Oc = Object.prototype, jc = Oc.hasOwnProperty;
865
+ function Lc(e, t) {
866
+ var o = Nc(e), n = !o && xc(e), r = !o && !n && Cc(e), i = !o && !n && !r && Tc(e), s = o || n || r || i, l = s ? kc(e.length, String) : [], _ = l.length;
867
+ for (var c in e)
868
+ (t || jc.call(e, c)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
869
+ (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
870
+ r && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
871
+ i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
872
+ wc(c, _))) && l.push(c);
873
+ return l;
874
+ }
875
+ var Ac = Lc;
876
+ function Sc(e) {
877
+ var t = [];
878
+ if (e != null)
879
+ for (var o in Object(e))
880
+ t.push(o);
881
+ return t;
882
+ }
883
+ var Ic = Sc, Pc = pe, Hc = ko, Rc = Ic, Mc = Object.prototype, Ec = Mc.hasOwnProperty;
884
+ function Vc(e) {
885
+ if (!Pc(e))
886
+ return Rc(e);
887
+ var t = Hc(e), o = [];
888
+ for (var n in e)
889
+ n == "constructor" && (t || !Ec.call(e, n)) || o.push(n);
890
+ return o;
891
+ }
892
+ var Bc = Vc, Fc = Ac, Dc = Bc, Gc = dt;
893
+ function qc(e) {
894
+ return Gc(e) ? Fc(e, !0) : Dc(e);
895
+ }
896
+ var Ao = qc, Uc = gc, Wc = Ao;
897
+ function zc(e) {
898
+ return Uc(e, Wc(e));
899
+ }
900
+ var Zc = zc, Kt = bo, Kc = Fe, Xc = js, Jc = As, Qc = Us, Xt = No, Jt = Co, Yc = di, el = je, tl = ct, ol = pe, nl = Ni, rl = Oo, Qt = jo, al = Zc;
901
+ function sl(e, t, o, n, r, i, s) {
902
+ var l = Qt(e, o), _ = Qt(t, o), c = s.get(_);
903
+ if (c) {
904
+ Kt(e, o, c);
905
+ return;
906
+ }
907
+ var d = i ? i(l, _, o + "", e, t, s) : void 0, p = d === void 0;
908
+ if (p) {
909
+ var u = Jt(_), h = !u && el(_), v = !u && !h && rl(_);
910
+ d = _, u || h || v ? Jt(l) ? d = l : Yc(l) ? d = Jc(l) : h ? (p = !1, d = Kc(_, !0)) : v ? (p = !1, d = Xc(_, !0)) : d = [] : nl(_) || Xt(_) ? (d = l, Xt(l) ? d = al(l) : (!ol(l) || tl(l)) && (d = Qc(_))) : p = !1;
911
+ }
912
+ p && (s.set(_, d), r(d, _, n, i, s), s.delete(_)), Kt(e, o, d);
913
+ }
914
+ var il = sl, cl = ls, ll = bo, _l = bs, dl = il, ul = pe, pl = Ao, fl = jo;
915
+ function So(e, t, o, n, r) {
916
+ e !== t && _l(t, function(i, s) {
917
+ if (r || (r = new cl()), ul(i))
918
+ dl(e, t, s, o, So, n, r);
919
+ else {
920
+ var l = n ? n(fl(e, s), i, s + "", e, t, r) : void 0;
921
+ l === void 0 && (l = i), ll(e, s, l);
922
+ }
923
+ }, pl);
924
+ }
925
+ var hl = So;
926
+ function gl(e) {
927
+ return e;
928
+ }
929
+ var Io = gl;
930
+ function ml(e, t, o) {
931
+ switch (o.length) {
932
+ case 0:
933
+ return e.call(t);
934
+ case 1:
935
+ return e.call(t, o[0]);
936
+ case 2:
937
+ return e.call(t, o[0], o[1]);
938
+ case 3:
939
+ return e.call(t, o[0], o[1], o[2]);
940
+ }
941
+ return e.apply(t, o);
942
+ }
943
+ var vl = ml, yl = vl, Yt = Math.max;
944
+ function bl(e, t, o) {
945
+ return t = Yt(t === void 0 ? e.length - 1 : t, 0), function() {
946
+ for (var n = arguments, r = -1, i = Yt(n.length - t, 0), s = Array(i); ++r < i; )
947
+ s[r] = n[t + r];
948
+ r = -1;
949
+ for (var l = Array(t + 1); ++r < t; )
950
+ l[r] = n[r];
951
+ return l[t] = o(s), yl(e, this, l);
952
+ };
953
+ }
954
+ var $l = bl;
955
+ function kl(e) {
956
+ return function() {
957
+ return e;
958
+ };
959
+ }
960
+ var xl = kl, Nl = xl, eo = yo, Cl = Io, wl = eo ? function(e, t) {
961
+ return eo(e, "toString", {
962
+ configurable: !0,
963
+ enumerable: !1,
964
+ value: Nl(t),
965
+ writable: !0
966
+ });
967
+ } : Cl, Tl = wl, Ol = 800, jl = 16, Ll = Date.now;
968
+ function Al(e) {
969
+ var t = 0, o = 0;
970
+ return function() {
971
+ var n = Ll(), r = jl - (n - o);
972
+ if (o = n, r > 0) {
973
+ if (++t >= Ol)
974
+ return arguments[0];
975
+ } else
976
+ t = 0;
977
+ return e.apply(void 0, arguments);
978
+ };
979
+ }
980
+ var Sl = Al, Il = Tl, Pl = Sl, Hl = Pl(Il), Rl = Hl, Ml = Io, El = $l, Vl = Rl;
981
+ function Bl(e, t) {
982
+ return Vl(El(e, t, Ml), e + "");
983
+ }
984
+ var Fl = Bl, Dl = We, Gl = dt, ql = Lo, Ul = pe;
985
+ function Wl(e, t, o) {
986
+ if (!Ul(o))
987
+ return !1;
988
+ var n = typeof t;
989
+ return (n == "number" ? Gl(o) && ql(t, o.length) : n == "string" && t in o) ? Dl(o[t], e) : !1;
990
+ }
991
+ var zl = Wl, Zl = Fl, Kl = zl;
992
+ function Xl(e) {
993
+ return Zl(function(t, o) {
994
+ var n = -1, r = o.length, i = r > 1 ? o[r - 1] : void 0, s = r > 2 ? o[2] : void 0;
995
+ for (i = e.length > 3 && typeof i == "function" ? (r--, i) : void 0, s && Kl(o[0], o[1], s) && (i = r < 3 ? void 0 : i, r = 1), t = Object(t); ++n < r; ) {
996
+ var l = o[n];
997
+ l && e(t, l, n, i);
998
+ }
999
+ return t;
1000
+ });
1001
+ }
1002
+ var Jl = Xl, Ql = hl, Yl = Jl;
1003
+ Yl(function(e, t, o) {
1004
+ Ql(e, t, o);
1005
+ });
1006
+ const ue = (e, t, o) => Array.isArray(e) ? e.map((n, r) => {
1007
+ const i = [o, r].filter(I).join(".");
1008
+ return ue(t(r, n, i), t, i);
1009
+ }) : typeof e == "object" && e ? Object.entries(e).reduce((n, [r, i]) => {
1010
+ const s = [o, r].filter(I).join(".");
1011
+ return n[r] = ue(t(r, i, s), t, s), n;
1012
+ }, {}) : e, e_ = (e) => {
1013
+ const t = document.getElementsByTagName("head")[0], o = document.createElement("link");
1014
+ Object.entries(e).forEach(([n, r]) => o.setAttribute(n, r)), t.appendChild(o);
1015
+ }, He = () => {
1016
+ let e = {};
1017
+ return {
1018
+ on: (s, l) => {
1019
+ s in e ? e[s].push(l) : e[s] = [l];
1020
+ },
1021
+ has: (s) => s in e,
1022
+ get: (s) => e[s],
1023
+ emit: (s, ...l) => s in e ? e[s].map((_) => _(...l)).filter(Boolean) : [],
1024
+ reset: () => e = {}
1025
+ };
1026
+ }, t_ = () => ({
1027
+ name: null,
1028
+ logo: null
1029
+ }), to = () => ({
1030
+ name: null,
1031
+ logo: null
1032
+ }), o_ = () => ({
1033
+ factor: null,
1034
+ type: null,
1035
+ outcome: null,
1036
+ value: null
1037
+ }), n_ = () => ({
1038
+ w1: null,
1039
+ x: null,
1040
+ w2: null
1041
+ }), r_ = () => ({
1042
+ w1: null,
1043
+ w2: null
1044
+ }), a_ = () => ({
1045
+ one_x_two: n_(),
1046
+ one_two: r_()
1047
+ }), Po = (e, t) => {
1048
+ var n;
1049
+ const o = {
1050
+ slug: (e == null ? void 0 : e.slug) || null,
1051
+ sportSlug: (e == null ? void 0 : e.sport_slug) || null,
1052
+ matchDate: (e == null ? void 0 : e.match_date) || null,
1053
+ teams: f({}, (e == null ? void 0 : e.teams) || {
1054
+ 0: to(),
1055
+ 1: to()
1056
+ }),
1057
+ league: (e == null ? void 0 : e.unique_tournament) || t_(),
1058
+ prediction: (e == null ? void 0 : e.prediction) || o_(),
1059
+ isNational: (n = e == null ? void 0 : e.is_national) != null ? n : null
1060
+ };
1061
+ if (t != null && t.markets) {
1062
+ const r = t.markets.reduce((i, s) => (i[s] = m(e || {}, `markets.${s}`, a_()[s || "one_two"]), i), {});
1063
+ Le(o, "markets", r);
1064
+ }
1065
+ return o;
1066
+ }, s_ = (e = 300, t) => new Promise((o) => setTimeout(() => o(t), e)), i_ = (e) => !e && e == null, I = (e) => !i_(e), oo = (e) => typeof e != "object" && typeof e != "function" || e === null, c_ = (e) => typeof e == "object" && !Array.isArray(e) && I(e), l_ = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, o) => (o ? "-" : "") + t.toLowerCase()), oe = (e, ...t) => t.reduce((o, n) => (o[n] = e[n], o), {});
1067
+ function re(e, ...t) {
1068
+ const o = f({}, e);
1069
+ return t.forEach((n) => {
1070
+ delete o[n];
1071
+ }), o;
1072
+ }
1073
+ const m = (e, t, o) => {
1074
+ if (!t)
1075
+ return;
1076
+ const r = (Array.isArray(t) ? t : t.match(/([^[.\]])+/g)).reduce((i, s) => i && i[s], e);
1077
+ return r === void 0 ? o : r;
1078
+ }, Le = (e, t, o) => {
1079
+ const n = Array.isArray(t) ? t : t.match(/([^[.\]])+/g);
1080
+ return n.reduce((r, i, s) => (r[i] === void 0 && (r[i] = {}), s === n.length - 1 && (r[i] = o), r[i]), e);
1081
+ }, __ = (e) => {
1082
+ const t = e.slice(1);
1083
+ return t.length === 3 && (e = "#" + t.split("").map((o) => `${o}${o}`).join("")), e;
1084
+ }, d_ = (e) => {
1085
+ const t = __(e), o = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
1086
+ return o ? {
1087
+ r: parseInt(o[1], 16),
1088
+ g: parseInt(o[2], 16),
1089
+ b: parseInt(o[3], 16)
1090
+ } : void 0;
1091
+ }, Ho = (...e) => e.map((t) => JSON.stringify(t)).every((t, o, n) => t === n[0]), zf = (e) => "id" in e && "root" in e, u_ = (e, t = 1) => e.replace(")", `, ${t})`).replace("rgb", "rgba"), Ro = (e, t, o) => ue(e, (n, r, i) => oo(r) || Array.isArray(r) && r.every(oo) ? o ? o(n, [r, m(t, i)], i) ? m(t, i, r) : r : m(t, i, r) : r), Zf = (e, t) => {
1092
+ try {
1093
+ ue(e, (o, n, r) => {
1094
+ if (t(o, n, r))
1095
+ throw {
1096
+ key: o,
1097
+ value: n,
1098
+ path: r
1099
+ };
1100
+ return n;
1101
+ });
1102
+ } catch (o) {
1103
+ return o;
1104
+ }
1105
+ }, Kf = (e, t) => {
1106
+ const o = [];
1107
+ return ue(e, (n, r, i) => (t(n, r, i, o) && o.push({
1108
+ key: n,
1109
+ value: r,
1110
+ path: i
1111
+ }), r)), o;
1112
+ }, Mo = ["desktop", "laptop", "tablet", "mobile"], p_ = {
1113
+ mobile: 320,
1114
+ tablet: 768,
1115
+ laptop: 1024,
1116
+ desktop: 1920
1117
+ }, f_ = "_root_1yxyd_1", h_ = "_icon_1yxyd_5", g_ = "_iconTarget_1yxyd_17", m_ = "_body_1yxyd_23", v_ = "_bodyOpen_1yxyd_31", y_ = "_simpleGift_in_1yxyd_1", b_ = "_close_1yxyd_44", $_ = "_arrow_1yxyd_58", k_ = "_container_1yxyd_69", x_ = "_inner_1yxyd_75", N_ = "_logo_1yxyd_82", C_ = "_text_1yxyd_89", w_ = "_button_1yxyd_96", T_ = "_buttonAnimated_1yxyd_105", O_ = "_increase_1yxyd_1", j_ = "_legalGap_1yxyd_109", L_ = "_legalOpen_1yxyd_113", A_ = "_legal_1yxyd_109", S_ = "_legalText_1yxyd_141", I_ = "_legalButton_1yxyd_159", P_ = "_fadein_1yxyd_1", H_ = "_pulse_1yxyd_1", R_ = "_gradient_1yxyd_1", M_ = "_wiggle_1yxyd_1", C = {
1118
+ root: f_,
1119
+ icon: h_,
1120
+ iconTarget: g_,
1121
+ body: m_,
1122
+ bodyOpen: v_,
1123
+ simpleGift_in: y_,
1124
+ close: b_,
1125
+ arrow: $_,
1126
+ container: k_,
1127
+ inner: x_,
1128
+ logo: N_,
1129
+ text: C_,
1130
+ button: w_,
1131
+ buttonAnimated: T_,
1132
+ increase: O_,
1133
+ legalGap: j_,
1134
+ legalOpen: L_,
1135
+ legal: A_,
1136
+ legalText: S_,
1137
+ legalButton: I_,
1138
+ fadein: P_,
1139
+ pulse: H_,
1140
+ gradient: R_,
1141
+ wiggle: M_
1142
+ };
1143
+ var E_ = 0;
1144
+ function a(e, t, o, n, r, i) {
1145
+ var s, l, _ = {};
1146
+ for (l in t)
1147
+ l == "ref" ? s = t[l] : _[l] = t[l];
1148
+ var c = { type: e, props: _, key: o, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --E_, __source: r, __self: i };
1149
+ if (typeof e == "function" && (s = e.defaultProps))
1150
+ for (l in s)
1151
+ _[l] === void 0 && (_[l] = s[l]);
1152
+ return g.vnode && g.vnode(c), c;
1153
+ }
1154
+ const Eo = Zo(), ie = ({
1155
+ children: e,
1156
+ value: t
1157
+ }) => a(Eo.Provider, {
1158
+ value: t,
1159
+ children: e
1160
+ }), ce = (e) => (s) => Ce(void 0, null, function* () {
1161
+ var l = s, {
1162
+ target: t,
1163
+ id: o,
1164
+ ref: n,
1165
+ state: r
1166
+ } = l, i = Ye(l, [
1167
+ "target",
1168
+ "id",
1169
+ "ref",
1170
+ "state"
1171
+ ]);
1172
+ if (!("ResizeObserver" in window)) {
1173
+ const _ = yield import("./resize-observer-15e7a1bf.js");
1174
+ window.ResizeObserver = _.ResizeObserver;
1175
+ }
1176
+ return Ko(a(ie, {
1177
+ value: r,
1178
+ children: Xo(e, f({
1179
+ ref: n,
1180
+ id: o
1181
+ }, i))
1182
+ }), t);
1183
+ }), P = () => en(Eo), V_ = (e = {}) => typeof e == "object" && I(e) && Mo.every((t) => t in e), B_ = (e, t) => e && ue(e, (o, n) => {
1184
+ if (V_(n)) {
1185
+ const r = n[t];
1186
+ return r && "parent" in r && I(r.parent) ? f(f({}, n[r.parent]), re(r, "parent")) : r;
1187
+ }
1188
+ return n;
1189
+ }), le = (e, t) => B_(e, t), fe = ({
1190
+ id: e,
1191
+ targetRef: t,
1192
+ parentKey: o = "device-container",
1193
+ breakpoints: n = p_
1194
+ }) => {
1195
+ const [r, i] = ne("desktop"), s = (l) => {
1196
+ var p;
1197
+ const _ = l.getBoundingClientRect().width || 0, c = Object.entries(f({}, n)).sort(([u, h], [v, y]) => h - y), d = ((p = c.find(([u, h], v) => {
1198
+ const [y, $] = c[v + 1] || [];
1199
+ return _ >= h && _ < $;
1200
+ })) == null ? void 0 : p[0]) || "desktop";
1201
+ i(d);
1202
+ };
1203
+ return co(() => {
1204
+ const l = t.current.closest(`[data-${o}='${e}']`) || document.body;
1205
+ l && (new ResizeObserver(() => s(l)).observe(l), s(l));
1206
+ }, []), r;
1207
+ }, no = (e) => console.warn(`[Adstore-templates Deprecated]: ${e}`), Ge = (e, t) => I(e) && !(typeof e == "number" ? e.toString() : e).includes(t) ? `${e}${t}` : e, F_ = (e) => e.startsWith("px_"), D_ = (e) => e.startsWith("percent_"), G_ = (e, t) => {
1208
+ let o = e, n = t;
1209
+ return F_(o) && (o = o.replace("px_", ""), n = Ge(t, "px")), D_(o) && (o = o.replace("percent_", ""), n = Ge(t, "%")), {
1210
+ key: o,
1211
+ value: n
1212
+ };
1213
+ }, q_ = "-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'", U_ = ["borderWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth", "minHeight", "minWidth", "maxWidth", "maxHeight", "fontSize", "height", "width", "letterSpacing", "fontSize", "left", "right", "top", "bottom", "marginTop", "marginBottom", "marginLeft", "marginRight", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"], Vo = (e) => {
1214
+ const t = Object.keys(e);
1215
+ return (t.includes("innerHTML") || t.includes("innerText")) && console.warn('Warning! InnerHTML and innerText is deprecated. Use "children" property.'), typeof e != "object" ? e : Object.entries(e).reduce((o, [n, r]) => {
1216
+ U_.includes(n) && (r = Ge(r, "px"));
1217
+ const {
1218
+ key: i,
1219
+ value: s
1220
+ } = G_(n, r);
1221
+ if (c_(s) && (o[i] = Vo(s)), o[i] = s, i === "hidden" && s)
1222
+ return o.display = "none", o;
1223
+ if (i === "innerHTML" && (o.innerHTML = I(s) ? `${s}` : ""), i === "innerText" && (o.innerText = I(s) ? `${s}` : ""), i === "children" && (o.children = typeof s == "string" ? I(s) ? `${s}` : "" : s), i.includes("borderWidth") && (o.borderStyle = "solid"), i === "corner" && (o.borderRadius = Ge(s, "px")), i === "backgroundFit" && (no("Property 'backgroundFit' is deprecated. Use 'objectFit' instead."), o.backgroundSize = s, o.objectFit = s), i === "backgroundImage" && I(s) && (o.backgroundImage = `url(${s})`, o.backgroundRepeat = "no-repeat", o.imageSource = s, no("Property 'backgroundImage' is deprecated. Use 'imageSource' instead.")), i === "backgroundColorOpacity" && I(o.backgroundColorOpacity) && I(o.backgroundColor)) {
1224
+ const l = d_(o.backgroundColor);
1225
+ l && (o.backgroundColor = u_(`rgb(${l.r}, ${l.g}, ${l.b})`, +o.backgroundColorOpacity / 100));
1226
+ }
1227
+ return i === "fontFamily" && /auto/i.test(s) && (o.fontFamily = q_), i === "isBold" && (o.fontWeight = s ? "bold" : "initial"), i === "isItalic" && (o.fontStyle = s ? "italic" : "initial"), i === "isThrough" && (o.textDecoration = s ? "line-through" : "initial"), o;
1228
+ }, e);
1229
+ }, W_ = (e) => typeof e == "object" && !Array.isArray(e) && "parent" in e, A = (e) => I(e) ? Object.entries(e).reduce((t, [o, n]) => (t[o] = W_(n) ? Vo(f({}, e[o])) : n, t), {}) : e, z_ = (e) => e in document.createElement("div").style || e.startsWith("--"), q = (r) => {
1230
+ var i = r, {
1231
+ children: e,
1232
+ typography: t,
1233
+ accentTypography: o
1234
+ } = i, n = Ye(i, [
1235
+ "children",
1236
+ "typography",
1237
+ "accentTypography"
1238
+ ]);
1239
+ var _;
1240
+ const s = Ie(() => {
1241
+ if (!o)
1242
+ return {};
1243
+ let c = "";
1244
+ return Object.entries(o).forEach(([d, p]) => {
1245
+ z_(d) && (c += `${l_(d)}: ${p}; `);
1246
+ }), c;
1247
+ }, [o]), l = (_ = e == null ? void 0 : e.replace(/script|\n/g, "")) == null ? void 0 : _.replace(/{{(.*?)}}/g, `<span style="${s}">$1</span>`);
1248
+ return a("div", b(f({}, n), {
1249
+ style: f(f({}, t), n.style || {}),
1250
+ dangerouslySetInnerHTML: {
1251
+ __html: l
1252
+ }
1253
+ }));
1254
+ }, Qe = () => {
1255
+ const [e, t] = ne(!1);
1256
+ return [e, () => t((o) => !o)];
1257
+ }, xe = () => a("svg", {
1258
+ xmlns: "http://www.w3.org/2000/svg",
1259
+ width: "100%",
1260
+ height: "100%",
1261
+ viewBox: "0 0 24 24",
1262
+ children: a("path", {
1263
+ d: "M17.659 4.929a1 1 0 1 1 1.414 1.414L13.416 12l5.657 5.657a1 1 0 0 1-1.415 1.414l-5.656-5.657-5.657 5.657a1 1 0 0 1-1.414-1.414L10.587 12 4.931 6.343A1 1 0 1 1 6.345 4.93l5.657 5.657 5.656-5.657Z",
1264
+ fill: "currentColor"
1265
+ })
1266
+ }), st = () => a("svg", {
1267
+ width: "16",
1268
+ height: "16",
1269
+ viewBox: "0 0 16 16",
1270
+ fill: "none",
1271
+ xmlns: "http://www.w3.org/2000/svg",
1272
+ children: a("path", {
1273
+ d: "M5.95312 2.15L7.04063 4H7H4.75C4.05937 4 3.5 3.44062 3.5 2.75C3.5 2.05938 4.05937 1.5 4.75 1.5H4.81875C5.28437 1.5 5.71875 1.74688 5.95312 2.15ZM2 2.75C2 3.2 2.10938 3.625 2.3 4H1C0.446875 4 0 4.44688 0 5V7C0 7.55312 0.446875 8 1 8H15C15.5531 8 16 7.55312 16 7V5C16 4.44688 15.5531 4 15 4H13.7C13.8906 3.625 14 3.2 14 2.75C14 1.23125 12.7688 0 11.25 0H11.1812C10.1844 0 9.25938 0.528125 8.75313 1.3875L8 2.67188L7.24687 1.39062C6.74062 0.528125 5.81562 0 4.81875 0H4.75C3.23125 0 2 1.23125 2 2.75ZM12.5 2.75C12.5 3.44062 11.9406 4 11.25 4H9H8.95938L10.0469 2.15C10.2844 1.74688 10.7156 1.5 11.1812 1.5H11.25C11.9406 1.5 12.5 2.05938 12.5 2.75ZM1 9V14.5C1 15.3281 1.67188 16 2.5 16H7V9H1ZM9 16H13.5C14.3281 16 15 15.3281 15 14.5V9H9V16Z",
1274
+ fill: "currentColor"
1275
+ })
1276
+ }), Z_ = (e) => ({
1277
+ fade: `${e.fade} 2s linear infinite`,
1278
+ pulse: `${e.pulse} .3s linear 0s infinite alternate forwards`,
1279
+ wiggle: `${e.wiggle} 2s linear infinite`,
1280
+ gradient: `${e.gradient} 3s ease infinite`
1281
+ }), Bo = (e, t) => {
1282
+ var d, p, u, h, v, y, $, D, U, H, R, M, E;
1283
+ const o = Z_(t), n = A(e), r = (d = n == null ? void 0 : n.icon) == null ? void 0 : d.hasIcon, i = {
1284
+ left: `${+(((p = e == null ? void 0 : e.container) == null ? void 0 : p.left) || 0) * -1 + 8}px`,
1285
+ backgroundColor: (u = n == null ? void 0 : n.container) == null ? void 0 : u.backgroundColor,
1286
+ borderTopWidth: (h = n == null ? void 0 : n.container) == null ? void 0 : h.borderWidth,
1287
+ borderTopColor: (v = n == null ? void 0 : n.container) == null ? void 0 : v.borderColor,
1288
+ borderTopStyle: "solid",
1289
+ borderLeftWidth: (y = n == null ? void 0 : n.container) == null ? void 0 : y.borderWidth,
1290
+ borderLeftColor: ($ = n == null ? void 0 : n.container) == null ? void 0 : $.borderColor,
1291
+ borderLeftStyle: "solid"
1292
+ }, s = {
1293
+ left: (D = n == null ? void 0 : n.container) == null ? void 0 : D.left
1294
+ }, l = (((U = n == null ? void 0 : n.icon) == null ? void 0 : U.animations) || []).map((k) => o[k]).join(", "), _ = I((H = n == null ? void 0 : n.icon) == null ? void 0 : H.gradientColor) && ((R = n == null ? void 0 : n.icon) != null && R.animations.includes("gradient")) ? {
1295
+ background: `linear-gradient(-90deg, ${(M = n.icon) == null ? void 0 : M.backgroundColor} 0%, ${(E = n == null ? void 0 : n.icon) == null ? void 0 : E.gradientColor} 100%) 0% 0% / 400% 400%`,
1296
+ backgroundSize: "400% 400%"
1297
+ } : n == null ? void 0 : n.icon, c = f(b(f({}, (n == null ? void 0 : n.icon) || {}), {
1298
+ animation: l
1299
+ }), _);
1300
+ return {
1301
+ hasIcon: r,
1302
+ arrowRules: i,
1303
+ bodyRules: s,
1304
+ iconRules: c
1305
+ };
1306
+ }, _e = (e) => {
1307
+ const t = /* @__PURE__ */ new Set([]);
1308
+ ue(e, (n, r) => (n === "fontFamily" && t.add(r), r));
1309
+ const o = Ie(() => Array.from(t.values()).filter((n) => !/auto/i.test(n)).map((n) => ({
1310
+ rel: "stylesheet",
1311
+ href: `https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`
1312
+ })), [t]);
1313
+ V(() => {
1314
+ o.forEach(e_);
1315
+ }, [o]);
1316
+ }, X = ["backgroundColor", "backgroundColorOpacity", "backgroundImage", "backgroundSize", "backgroundRepeat"], K_ = ["borderWidth", "borderColor", "borderStyle"], ro = ["imageSource", "objectFit"], qe = ["marginTop", "marginBottom", "marginLeft", "marginRight", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"], X_ = ({
1317
+ delay: e,
1318
+ openEmitter: t,
1319
+ autoOpenEmitter: o,
1320
+ closeEmitter: n,
1321
+ crossCloseEmitter: r,
1322
+ disableAutoOpen: i
1323
+ }) => {
1324
+ const [s, l] = ne(!1), _ = F(null), c = (u) => {
1325
+ clearTimeout(_.current), _.current = null;
1326
+ }, d = () => {
1327
+ c(_.current), l((u) => (u && n && n(), !u));
1328
+ }, p = () => {
1329
+ d(), r && r();
1330
+ };
1331
+ return V(() => {
1332
+ if (!i)
1333
+ return _.current = setTimeout(() => {
1334
+ l(!0), o && o();
1335
+ }, e || 1e3), () => c(_.current);
1336
+ }, [e, i]), V(() => {
1337
+ s && !_.current && t && t();
1338
+ }, [s]), {
1339
+ isOpen: s,
1340
+ toggle: d,
1341
+ onCrossClick: p
1342
+ };
1343
+ }, Fo = ({
1344
+ ref: e,
1345
+ openDelay: t,
1346
+ disableAutoOpen: o
1347
+ }) => {
1348
+ const n = F(He()), r = (u) => n.current.on("open", u), i = (u) => n.current.on("click", u), s = (u) => n.current.on("autoOpen", u), l = (u) => n.current.on("close", u), _ = (u) => n.current.on("crossClose", u), {
1349
+ isOpen: c,
1350
+ toggle: d,
1351
+ onCrossClick: p
1352
+ } = X_({
1353
+ delay: t,
1354
+ disableAutoOpen: o,
1355
+ openEmitter: () => n.current.emit("open"),
1356
+ autoOpenEmitter: () => n.current.emit("autoOpen"),
1357
+ closeEmitter: () => n.current.emit("close"),
1358
+ crossCloseEmitter: () => n.current.emit("crossClose")
1359
+ });
1360
+ return Se(e, () => ({
1361
+ toggle: d,
1362
+ onCrossClose: _,
1363
+ onOpen: r,
1364
+ onClick: i,
1365
+ onClose: l,
1366
+ onAutoOpen: s,
1367
+ resetListeners: n.current.reset
1368
+ })), V(() => n.current.reset, []), {
1369
+ isOpen: c,
1370
+ toggle: d,
1371
+ onCrossClick: p,
1372
+ click: (...u) => n.current.emit("click", ...u)
1373
+ };
1374
+ }, J_ = se(({
1375
+ id: e,
1376
+ disableAutoOpen: t
1377
+ }, o) => {
1378
+ var H, R, M, E, k, z, W, J, Z;
1379
+ const n = F(null), [r, i] = Qe(), s = P(), l = fe({
1380
+ targetRef: n,
1381
+ id: e
1382
+ }), _ = le(s, l), c = A(_), {
1383
+ hasIcon: d,
1384
+ iconRules: p,
1385
+ bodyRules: u,
1386
+ arrowRules: h
1387
+ } = Bo(_, {
1388
+ fade: C.fadein,
1389
+ pulse: C.pulse,
1390
+ wiggle: C.wiggle,
1391
+ gradient: C.gradient
1392
+ }), {
1393
+ isOpen: v,
1394
+ toggle: y,
1395
+ click: $,
1396
+ onCrossClick: D
1397
+ } = Fo({
1398
+ ref: o,
1399
+ openDelay: (H = _ == null ? void 0 : _.container) == null ? void 0 : H.delay,
1400
+ disableAutoOpen: t
1401
+ });
1402
+ _e(_);
1403
+ const U = r ? oe(c.container, ...K_) : {};
1404
+ return a("div", {
1405
+ className: L(C.root, {
1406
+ [C.legalOpen]: r
1407
+ }),
1408
+ ref: n,
1409
+ children: [a("div", {
1410
+ className: C.icon,
1411
+ style: p,
1412
+ onClick: y,
1413
+ children: d && a("div", {
1414
+ className: C.iconTarget,
1415
+ children: a(st, {})
1416
+ })
1417
+ }), a("div", {
1418
+ className: L(C.body, {
1419
+ [C.bodyOpen]: v
1420
+ }),
1421
+ style: u,
1422
+ children: [a("div", {
1423
+ className: C.arrow,
1424
+ style: h
1425
+ }), a("div", {
1426
+ className: C.close,
1427
+ style: he(c == null ? void 0 : c.close),
1428
+ onClick: D,
1429
+ children: a(xe, {})
1430
+ }), a("div", {
1431
+ className: C.container,
1432
+ style: c == null ? void 0 : c.container,
1433
+ children: [a("a", {
1434
+ href: (R = c == null ? void 0 : c.root) == null ? void 0 : R.offer,
1435
+ target: "_blank",
1436
+ rel: "nofollow noopener noreferrer",
1437
+ onClick: () => $(c.id) && y(),
1438
+ children: [a("div", {
1439
+ className: C.inner,
1440
+ children: [a("div", {
1441
+ className: C.logo,
1442
+ style: c == null ? void 0 : c.logo
1443
+ }), a(q, {
1444
+ className: C.text,
1445
+ style: c == null ? void 0 : c.text,
1446
+ typography: (M = c.text) == null ? void 0 : M.typography,
1447
+ accentTypography: (E = c.text) == null ? void 0 : E.accentTypography,
1448
+ children: (k = c == null ? void 0 : c.text) == null ? void 0 : k.children
1449
+ })]
1450
+ }), a("div", {
1451
+ className: L(C.button, {
1452
+ [C.buttonAnimated]: c == null ? void 0 : c.button.isAnimated
1453
+ }),
1454
+ style: c == null ? void 0 : c.button,
1455
+ children: (z = c == null ? void 0 : c.button) == null ? void 0 : z.children
1456
+ })]
1457
+ }), a("div", {
1458
+ className: C.legalGap
1459
+ }), a("div", {
1460
+ className: C.legal,
1461
+ style: f(f({}, c == null ? void 0 : c.legal), U),
1462
+ children: a("span", {
1463
+ className: C.legalText,
1464
+ children: a("span", {
1465
+ children: [a("span", {
1466
+ children: (W = c == null ? void 0 : c.legal) == null ? void 0 : W.children
1467
+ }), a("span", {
1468
+ className: C.legalButton,
1469
+ onClick: i,
1470
+ children: r ? (J = c == null ? void 0 : c.legal) == null ? void 0 : J.buttonOpenText : (Z = c == null ? void 0 : c.legal) == null ? void 0 : Z.buttonHideText
1471
+ })]
1472
+ })
1473
+ })
1474
+ })]
1475
+ })]
1476
+ })]
1477
+ });
1478
+ }), Xf = ce(a(J_, {})), Q_ = "_root_rhxh2_1", Y_ = "_icon_rhxh2_5", ed = "_iconTarget_rhxh2_17", td = "_body_rhxh2_23", od = "_desktop_rhxh2_30", nd = "_tablet_rhxh2_30", rd = "_laptop_rhxh2_30", ad = "_bodyOpen_rhxh2_34", sd = "_complexGift_in_rhxh2_1", id = "_arrow_rhxh2_47", cd = "_container_rhxh2_57", ld = "_promotion_rhxh2_62", _d = "_close_rhxh2_68", dd = "_head_rhxh2_80", ud = "_headIcon_rhxh2_86", pd = "_headTitle_rhxh2_92", fd = "_inner_rhxh2_99", hd = "_fadein_rhxh2_1", gd = "_pulse_rhxh2_1", md = "_gradient_rhxh2_1", vd = "_wiggle_rhxh2_1", w = {
1479
+ root: Q_,
1480
+ icon: Y_,
1481
+ iconTarget: ed,
1482
+ body: td,
1483
+ desktop: od,
1484
+ tablet: nd,
1485
+ laptop: rd,
1486
+ bodyOpen: ad,
1487
+ complexGift_in: sd,
1488
+ arrow: id,
1489
+ container: cd,
1490
+ promotion: ld,
1491
+ close: _d,
1492
+ head: dd,
1493
+ headIcon: ud,
1494
+ headTitle: pd,
1495
+ inner: fd,
1496
+ fadein: hd,
1497
+ pulse: gd,
1498
+ gradient: md,
1499
+ wiggle: vd
1500
+ }, yd = "_root_1y96a_1", bd = "_body_1y96a_30", $d = "_bodyInner_1y96a_38", kd = "_line_1y96a_43", xd = "_text_1y96a_53", Nd = "_button_1y96a_61", Cd = "_logo_1y96a_73", wd = "_variant2_1y96a_79", Td = "_buttonText_1y96a_83", Od = "_legal_1y96a_100", Q = {
1501
+ root: yd,
1502
+ body: bd,
1503
+ bodyInner: $d,
1504
+ line: kd,
1505
+ text: xd,
1506
+ button: Nd,
1507
+ logo: Cd,
1508
+ variant2: wd,
1509
+ buttonText: Td,
1510
+ legal: Od
1511
+ }, jd = ({
1512
+ onClick: e
1513
+ }) => {
1514
+ var n, r, i, s, l, _, c;
1515
+ const t = P(), o = A(t);
1516
+ return a("a", {
1517
+ href: (n = o.root) == null ? void 0 : n.offer,
1518
+ target: "_blank",
1519
+ rel: "nofollow noopener noreferrer",
1520
+ className: L(Q.root, {
1521
+ [Q.variant2]: ((r = o.root) == null ? void 0 : r.variant) === "variant2"
1522
+ }),
1523
+ style: o.root,
1524
+ onClick: () => e(o.id),
1525
+ children: [a("div", {
1526
+ className: Q.body,
1527
+ children: [a("div", {
1528
+ className: Q.line,
1529
+ style: o.line
1530
+ }), a("div", {
1531
+ className: Q.bodyInner,
1532
+ children: [a("div", {
1533
+ className: Q.logo,
1534
+ style: o.logo
1535
+ }), a("div", {
1536
+ className: Q.text,
1537
+ style: o.text,
1538
+ children: a(q, {
1539
+ typography: (i = o.text) == null ? void 0 : i.typography,
1540
+ accentTypography: (s = o.text) == null ? void 0 : s.accentTypography,
1541
+ children: (l = o.text) == null ? void 0 : l.children
1542
+ })
1543
+ })]
1544
+ }), a("div", {
1545
+ className: Q.button,
1546
+ style: o.button,
1547
+ children: [a("div", {
1548
+ className: Q.logo,
1549
+ style: o.logo
1550
+ }), a("div", {
1551
+ className: Q.buttonText,
1552
+ children: (_ = o.button) == null ? void 0 : _.children
1553
+ })]
1554
+ })]
1555
+ }), a("div", {
1556
+ className: Q.legal,
1557
+ style: o.legal,
1558
+ children: (c = o.legal) == null ? void 0 : c.children
1559
+ })]
1560
+ });
1561
+ }, Ld = se(({
1562
+ id: e,
1563
+ disableAutoOpen: t
1564
+ }, o) => {
1565
+ var H, R, M, E;
1566
+ const n = F(null), r = P(), i = fe({
1567
+ targetRef: n,
1568
+ id: e
1569
+ }), s = le(r, i), l = A(s), {
1570
+ isOpen: _,
1571
+ click: c,
1572
+ toggle: d,
1573
+ onCrossClick: p
1574
+ } = Fo({
1575
+ ref: o,
1576
+ openDelay: (H = s == null ? void 0 : s.container) == null ? void 0 : H.delay,
1577
+ disableAutoOpen: t
1578
+ });
1579
+ _e(s);
1580
+ const {
1581
+ hasIcon: u,
1582
+ iconRules: h,
1583
+ bodyRules: v,
1584
+ arrowRules: y
1585
+ } = Bo(s, {
1586
+ fade: w.fadein,
1587
+ pulse: w.pulse,
1588
+ wiggle: w.wiggle,
1589
+ gradient: w.gradient
1590
+ }), $ = (R = l == null ? void 0 : l.title) == null ? void 0 : R.hasIcon, D = oe(l == null ? void 0 : l.title, ...qe), U = re(l == null ? void 0 : l.title, ...qe);
1591
+ return a("div", {
1592
+ ref: n,
1593
+ className: L(w.root, {
1594
+ [w.desktop]: i === "desktop",
1595
+ [w.laptop]: i === "laptop",
1596
+ [w.tablet]: i === "tablet"
1597
+ }),
1598
+ children: [a("div", {
1599
+ className: w.icon,
1600
+ style: h,
1601
+ onClick: d,
1602
+ children: u && a("div", {
1603
+ className: w.iconTarget,
1604
+ children: a(st, {})
1605
+ })
1606
+ }), a("div", {
1607
+ className: L(w.body, {
1608
+ [w.bodyOpen]: _
1609
+ }),
1610
+ style: v,
1611
+ children: [a("div", {
1612
+ className: w.arrow,
1613
+ style: y
1614
+ }), a("div", {
1615
+ className: w.container,
1616
+ style: l.container,
1617
+ children: [a("div", {
1618
+ className: w.head,
1619
+ style: D,
1620
+ children: [$ && a("div", {
1621
+ className: w.headIcon,
1622
+ style: oe(l.title, "color"),
1623
+ children: a(st, {})
1624
+ }), a("div", {
1625
+ className: w.headTitle,
1626
+ style: U,
1627
+ children: (M = l.title) == null ? void 0 : M.children
1628
+ }), a("div", {
1629
+ className: w.close,
1630
+ style: he(l == null ? void 0 : l.close),
1631
+ onClick: p,
1632
+ children: a(xe, {})
1633
+ })]
1634
+ }), a("div", {
1635
+ className: w.inner,
1636
+ children: (l.children || []).map((k) => a(ie, {
1637
+ value: k,
1638
+ children: a(jd, {
1639
+ onClick: () => c() && d()
1640
+ })
1641
+ }))
1642
+ }), a("div", {
1643
+ className: w.promotion,
1644
+ style: l.promotion,
1645
+ children: (E = l.promotion) == null ? void 0 : E.children
1646
+ })]
1647
+ })]
1648
+ })]
1649
+ });
1650
+ }), Jf = ce(a(Ld, {})), Ad = "_root_18eb5_1", Sd = "_background_18eb5_11", Id = "_content_18eb5_19", Pd = "_desktop_18eb5_28", Hd = "_laptop_18eb5_28", Rd = "_wrapper_18eb5_33", Md = "_overlay_18eb5_37", Ed = "_close_18eb5_43", Vd = "_promotion_18eb5_56", Bd = "_body_18eb5_64", Fd = "_logo_18eb5_73", Dd = "_text_18eb5_79", Gd = "_button_18eb5_83", qd = "_legal_18eb5_98", G = {
1651
+ root: Ad,
1652
+ background: Sd,
1653
+ content: Id,
1654
+ desktop: Pd,
1655
+ laptop: Hd,
1656
+ wrapper: Rd,
1657
+ overlay: Md,
1658
+ close: Ed,
1659
+ promotion: Vd,
1660
+ body: Bd,
1661
+ logo: Fd,
1662
+ text: Dd,
1663
+ button: Gd,
1664
+ legal: qd
1665
+ }, de = (e) => e && {
1666
+ left: "flex-start",
1667
+ center: "center",
1668
+ right: "flex-end"
1669
+ }[e], Ud = "_root_mj8hr_1", Wd = {
1670
+ root: Ud
1671
+ }, zd = () => {
1672
+ var o, n, r;
1673
+ const e = P(), t = A(e);
1674
+ return a("div", {
1675
+ className: Wd.root,
1676
+ style: t.root,
1677
+ children: a(q, {
1678
+ typography: (o = t.root) == null ? void 0 : o.typography,
1679
+ accentTypography: (n = t.root) == null ? void 0 : n.accentTypography,
1680
+ children: (r = t == null ? void 0 : t.root) == null ? void 0 : r.children
1681
+ })
1682
+ });
1683
+ }, ut = (e, t = 0, o = !1) => {
1684
+ const n = F(He()), [r, i] = ne(!1), [s, l] = ne(), [_, c] = ne(o), d = ($) => n.current.on("visible", $), p = ($) => n.current.on("click", $), u = ($) => n.current.on("clickHide", $), h = () => Ce(void 0, null, function* () {
1685
+ yield s_(+t), i(!0);
1686
+ }), v = () => i(!1), y = () => {
1687
+ n.current.emit("clickHide"), v();
1688
+ };
1689
+ return V(() => {
1690
+ _ && n.current.emit("visible", r);
1691
+ }, [r, _]), Se(e, () => ({
1692
+ onVisible: d,
1693
+ onClick: p,
1694
+ onClickHide: u,
1695
+ show: h,
1696
+ hide: v,
1697
+ setApiHost: l,
1698
+ resetListeners: n.current.reset
1699
+ })), V(() => n.current.reset, []), {
1700
+ isReady: _,
1701
+ isOpen: r,
1702
+ apiHost: s,
1703
+ show: h,
1704
+ hide: v,
1705
+ clickHide: y,
1706
+ setIsReady: c,
1707
+ click: (...$) => {
1708
+ v(), n.current.emit("click", ...$);
1709
+ }
1710
+ };
1711
+ };
1712
+ function Zd(e) {
1713
+ return !(!e.complete || typeof e.naturalWidth != "undefined" && e.naturalWidth === 0);
1714
+ }
1715
+ const Kd = se(({
1716
+ id: e,
1717
+ className: t
1718
+ }, o) => {
1719
+ var R, M, E, k, z, W, J;
1720
+ const n = F(null), r = F(null), i = fe({
1721
+ targetRef: n,
1722
+ id: e
1723
+ }), s = P(), l = le(s, i);
1724
+ _e(l), Le(l, "button.percent_width", (R = l == null ? void 0 : l.button) == null ? void 0 : R.width), Le(l, "legal.percent_width", (M = l == null ? void 0 : l.legal) == null ? void 0 : M.width);
1725
+ const _ = A(l), c = m(_, "root.delay", 0), {
1726
+ isOpen: d,
1727
+ isReady: p,
1728
+ setIsReady: u,
1729
+ clickHide: h,
1730
+ click: v
1731
+ } = ut(o, c);
1732
+ V(() => {
1733
+ const Z = r.current;
1734
+ if (!Z)
1735
+ return;
1736
+ if (Zd(Z)) {
1737
+ u(!0);
1738
+ return;
1739
+ }
1740
+ const Ne = () => u(!0);
1741
+ return Z.addEventListener("load", Ne), () => {
1742
+ Z.removeEventListener("load", Ne);
1743
+ };
1744
+ }, [_]);
1745
+ const y = {
1746
+ alignItems: de((E = _.root) == null ? void 0 : E.align)
1747
+ }, $ = b(f({}, _ == null ? void 0 : _.button), {
1748
+ justifyContent: de((k = _.root) == null ? void 0 : k.textAlign)
1749
+ }), D = b(f({}, _ == null ? void 0 : _.legal), {
1750
+ justifyContent: de((z = _.root) == null ? void 0 : z.textAlign)
1751
+ }), U = re(_.root, ...ro, ...X), H = oe(_.root, ...ro);
1752
+ return a("div", {
1753
+ className: L(G.root, t, {
1754
+ [G.desktop]: i === "desktop",
1755
+ [G.tablet]: i === "tablet",
1756
+ [G.laptop]: i === "laptop"
1757
+ }),
1758
+ ref: n,
1759
+ style: {
1760
+ display: d && p ? "flex" : "none"
1761
+ },
1762
+ children: [a("div", {
1763
+ className: G.overlay,
1764
+ style: _.overlay,
1765
+ onClick: h
1766
+ }), a("div", {
1767
+ className: G.wrapper,
1768
+ children: [a("div", {
1769
+ className: G.close,
1770
+ style: he(_.close),
1771
+ onClick: h,
1772
+ children: a(xe, {})
1773
+ }), a(q, {
1774
+ className: G.promotion,
1775
+ style: _.promotion,
1776
+ children: (W = _.promotion) == null ? void 0 : W.children
1777
+ }), a("a", {
1778
+ href: (J = _.root) == null ? void 0 : J.offer,
1779
+ target: "_blank",
1780
+ rel: "nofollow noopener noreferrer",
1781
+ className: G.content,
1782
+ style: U,
1783
+ onClick: () => v(_.id),
1784
+ children: [a("img", {
1785
+ ref: r,
1786
+ className: G.background,
1787
+ src: H.imageSource,
1788
+ alt: "",
1789
+ style: H
1790
+ }), a("div", {
1791
+ className: G.body,
1792
+ style: y,
1793
+ children: [a("div", {
1794
+ className: G.logo,
1795
+ style: _.logo
1796
+ }), a("div", {
1797
+ className: G.text,
1798
+ children: ((_ == null ? void 0 : _.children) || []).map((Z) => a(ie, {
1799
+ value: Z,
1800
+ children: a(zd, {})
1801
+ }))
1802
+ }), a("div", {
1803
+ className: G.button,
1804
+ style: $,
1805
+ children: $ == null ? void 0 : $.children
1806
+ }), a("div", {
1807
+ className: G.legal,
1808
+ style: D,
1809
+ children: D == null ? void 0 : D.children
1810
+ })]
1811
+ })]
1812
+ })]
1813
+ })]
1814
+ });
1815
+ }), Qf = ce(a(Kd, {})), Xd = "_root_1vcxb_1", Jd = "_content_1vcxb_11", Qd = "_desktop_1vcxb_22", Yd = "_laptop_1vcxb_22", eu = "_overlay_1vcxb_27", tu = "_close_1vcxb_33", ou = "_promotion_1vcxb_46", nu = "_title_1vcxb_54", ru = "_wrapper_1vcxb_69", ae = {
1816
+ root: Xd,
1817
+ content: Jd,
1818
+ desktop: Qd,
1819
+ laptop: Yd,
1820
+ overlay: eu,
1821
+ close: tu,
1822
+ promotion: ou,
1823
+ title: nu,
1824
+ wrapper: ru
1825
+ }, au = "_root_1q0qc_1", su = "_desktop_1q0qc_9", iu = "_laptop_1q0qc_9", cu = "_header_1q0qc_14", lu = "_logo_1q0qc_25", _u = "_container_1q0qc_32", du = "_body_1q0qc_43", uu = "_logoWrapper_1q0qc_51", pu = "_text_1q0qc_64", fu = "_button_1q0qc_79", hu = "_legal_1q0qc_97", K = {
1826
+ root: au,
1827
+ desktop: su,
1828
+ laptop: iu,
1829
+ header: cu,
1830
+ logo: lu,
1831
+ container: _u,
1832
+ body: du,
1833
+ logoWrapper: uu,
1834
+ text: pu,
1835
+ button: fu,
1836
+ legal: hu
1837
+ }, gu = ({
1838
+ onClick: e
1839
+ }) => {
1840
+ var i, s, l, _, c, d;
1841
+ const t = P(), o = A(t), n = (t == null ? void 0 : t.device) || "desktop", r = oe(o.header, ...X);
1842
+ return a("a", {
1843
+ href: (i = o.root) == null ? void 0 : i.offer,
1844
+ target: "_blank",
1845
+ rel: "nofollow noopener noreferrer",
1846
+ className: L(K.root, {
1847
+ [K.desktop]: n === "desktop",
1848
+ [K.laptop]: n === "laptop"
1849
+ }),
1850
+ style: re(o.root, ...qe),
1851
+ onClick: () => e(o.id),
1852
+ children: [a("div", {
1853
+ className: K.header,
1854
+ style: o.header,
1855
+ children: a("div", {
1856
+ className: K.logo,
1857
+ style: o.logo
1858
+ })
1859
+ }), a("div", {
1860
+ className: K.container,
1861
+ style: oe(o.root, ...qe),
1862
+ children: [a("div", {
1863
+ className: K.body,
1864
+ children: [a("div", {
1865
+ className: K.logoWrapper,
1866
+ style: r,
1867
+ children: a("div", {
1868
+ className: K.logo,
1869
+ style: o.logo
1870
+ })
1871
+ }), a(q, {
1872
+ className: K.text,
1873
+ style: o.text,
1874
+ typography: (s = o.text) == null ? void 0 : s.typography,
1875
+ accentTypography: (l = o.text) == null ? void 0 : l.accentTypography,
1876
+ children: (_ = o.text) == null ? void 0 : _.children
1877
+ })]
1878
+ }), a("div", {
1879
+ children: [a(q, {
1880
+ className: K.button,
1881
+ style: o.button,
1882
+ children: (c = o.button) == null ? void 0 : c.children
1883
+ }), a(q, {
1884
+ className: K.legal,
1885
+ style: o.legal,
1886
+ children: (d = o.legal) == null ? void 0 : d.children
1887
+ })]
1888
+ })]
1889
+ })]
1890
+ });
1891
+ }, mu = se(({
1892
+ id: e
1893
+ }, t) => {
1894
+ var p, u;
1895
+ const o = F(null), n = fe({
1896
+ targetRef: o,
1897
+ id: e
1898
+ }), r = P(), i = le(r, n), s = A(i);
1899
+ _e(i);
1900
+ const l = m(s, "root.delay", 0), {
1901
+ isOpen: _,
1902
+ clickHide: c,
1903
+ click: d
1904
+ } = ut(t, l, !0);
1905
+ return a("div", {
1906
+ className: ae.root,
1907
+ style: {
1908
+ display: _ ? "flex" : "none"
1909
+ },
1910
+ children: [a("div", {
1911
+ className: ae.overlay,
1912
+ style: s.overlay,
1913
+ onClick: c
1914
+ }), a("div", {
1915
+ ref: o,
1916
+ className: L(ae.content, {
1917
+ [ae.desktop]: n === "desktop",
1918
+ [ae.laptop]: n === "laptop"
1919
+ }),
1920
+ style: s.root,
1921
+ children: [a("div", {
1922
+ className: ae.close,
1923
+ style: he(s.close),
1924
+ onClick: c,
1925
+ children: a(xe, {})
1926
+ }), a(q, {
1927
+ className: ae.promotion,
1928
+ style: s.promotion,
1929
+ children: (p = s.promotion) == null ? void 0 : p.children
1930
+ }), a(q, {
1931
+ className: ae.title,
1932
+ style: s.title,
1933
+ children: (u = s.title) == null ? void 0 : u.children
1934
+ }), a("div", {
1935
+ className: ae.wrapper,
1936
+ children: (s.children || []).map((h) => a(ie, {
1937
+ value: b(f({}, h), {
1938
+ device: n
1939
+ }),
1940
+ children: a(gu, {
1941
+ onClick: d
1942
+ })
1943
+ }))
1944
+ })]
1945
+ })]
1946
+ });
1947
+ }), Yf = ce(a(mu, {})), vu = "_root_tsejc_1", yu = "_content_tsejc_11", bu = "_close_tsejc_18", $u = "_promotion_tsejc_31", ku = "_overlay_tsejc_39", xu = "_body_tsejc_45", Nu = "_desktop_tsejc_53", Cu = "_laptop_tsejc_53", wu = "_tablet_tsejc_57", Tu = "_head_tsejc_62", Ou = "_title_tsejc_72", ju = "_logo_tsejc_85", Lu = "_wrapper_tsejc_92", Au = "_text_tsejc_99", Su = "_button_tsejc_107", Iu = "_buttonHead_tsejc_122", Pu = "_buttonTarget_tsejc_139", Hu = "_legal_tsejc_153", S = {
1948
+ root: vu,
1949
+ content: yu,
1950
+ close: bu,
1951
+ promotion: $u,
1952
+ overlay: ku,
1953
+ body: xu,
1954
+ desktop: Nu,
1955
+ laptop: Cu,
1956
+ tablet: wu,
1957
+ head: Tu,
1958
+ title: Ou,
1959
+ logo: ju,
1960
+ wrapper: Lu,
1961
+ text: Au,
1962
+ button: Su,
1963
+ buttonHead: Iu,
1964
+ buttonTarget: Pu,
1965
+ legal: Hu
1966
+ }, Ru = "_root_16jvv_1", Mu = "_left_16jvv_8", Eu = "_desktop_16jvv_15", Vu = "_laptop_16jvv_15", Bu = "_teams_16jvv_19", Fu = "_logo_16jvv_25", Du = "_league_16jvv_32", Gu = "_name_16jvv_37", qu = "_right_16jvv_43", Uu = "_odd_16jvv_54", Wu = "_oddLabel_16jvv_67", zu = "_oddValue_16jvv_76", Zu = "_team_16jvv_19", Ku = "_teamLogo_16jvv_100", Xu = "_teamName_16jvv_107", T = {
1967
+ root: Ru,
1968
+ left: Mu,
1969
+ desktop: Eu,
1970
+ laptop: Vu,
1971
+ teams: Bu,
1972
+ logo: Fu,
1973
+ league: Du,
1974
+ name: Gu,
1975
+ right: qu,
1976
+ odd: Uu,
1977
+ oddLabel: Wu,
1978
+ oddValue: zu,
1979
+ team: Zu,
1980
+ teamLogo: Ku,
1981
+ teamName: Xu
1982
+ }, Ju = () => {
1983
+ const e = P(), t = A(e), o = (e == null ? void 0 : e.device) || "desktop", n = b(f({}, t == null ? void 0 : t.teamALogo), {
1984
+ backgroundImage: m(t, "match.teams[0].logo")
1985
+ }), r = b(f({}, t == null ? void 0 : t.teamBLogo), {
1986
+ backgroundImage: m(t, "match.teams[1].logo")
1987
+ });
1988
+ return a("div", {
1989
+ className: L(T.root, {
1990
+ [T.desktop]: o === "desktop",
1991
+ [T.laptop]: o === "laptop"
1992
+ }),
1993
+ children: [a("div", {
1994
+ className: T.left,
1995
+ children: [a("div", {
1996
+ className: T.teams,
1997
+ children: [a("img", {
1998
+ className: T.logo,
1999
+ src: n.backgroundImage,
2000
+ style: n,
2001
+ alt: ""
2002
+ }), a("img", {
2003
+ className: T.logo,
2004
+ src: r.backgroundImage,
2005
+ style: r
2006
+ })]
2007
+ }), a("div", {
2008
+ className: T.body,
2009
+ children: [a("div", {
2010
+ className: T.league,
2011
+ style: t.league,
2012
+ children: m(t, "match.league.name")
2013
+ }), a("div", {
2014
+ className: T.name,
2015
+ style: t.teams,
2016
+ children: [m(t, "match.teams[0].name"), " — ", m(t, "match.teams[1].name")]
2017
+ })]
2018
+ })]
2019
+ }), a("div", {
2020
+ className: T.right,
2021
+ children: [a("div", {
2022
+ className: T.team,
2023
+ children: [a("img", {
2024
+ className: T.teamLogo,
2025
+ style: n,
2026
+ src: n.backgroundImage
2027
+ }), a("div", {
2028
+ className: T.teamName,
2029
+ style: t.teams,
2030
+ children: m(t, "match.teams[0].name")
2031
+ })]
2032
+ }), a("div", {
2033
+ className: T.odd,
2034
+ children: [a("div", {
2035
+ className: T.oddLabel,
2036
+ style: t.oddLabel,
2037
+ children: m(t, "match.prediction.value")
2038
+ }), a("div", {
2039
+ className: T.oddValue,
2040
+ style: t.oddValue,
2041
+ children: m(t, "match.prediction.factor")
2042
+ })]
2043
+ }), a("div", {
2044
+ className: T.team,
2045
+ children: [a("img", {
2046
+ className: T.teamLogo,
2047
+ style: r,
2048
+ src: r.backgroundImage
2049
+ }), a("div", {
2050
+ className: T.teamName,
2051
+ style: t.teams,
2052
+ children: m(t, "match.teams[1].name")
2053
+ })]
2054
+ })]
2055
+ })]
2056
+ });
2057
+ }, Do = (e, {
2058
+ pause: t,
2059
+ params: o,
2060
+ method: n,
2061
+ body: r
2062
+ }) => {
2063
+ const [i, s] = ne(), l = Ie(() => {
2064
+ let c = e;
2065
+ if (o) {
2066
+ const d = new URLSearchParams(c);
2067
+ Object.entries(o).forEach(([p, u]) => {
2068
+ d.append(p, u);
2069
+ }), c += d;
2070
+ }
2071
+ return c;
2072
+ }, [e, o]), _ = Yo(() => Ce(void 0, null, function* () {
2073
+ if (t)
2074
+ return;
2075
+ const c = yield fetch(l, {
2076
+ method: n || "GET",
2077
+ body: r ? JSON.stringify(r) : void 0,
2078
+ headers: {
2079
+ "Content-Type": "application/json"
2080
+ }
2081
+ }).then((d) => d.json());
2082
+ s(c.data);
2083
+ }), [l, t, n, r]);
2084
+ return V(() => {
2085
+ t || _();
2086
+ }, [l, t]), {
2087
+ data: i,
2088
+ execute: _
2089
+ };
2090
+ };
2091
+ function Go(e) {
2092
+ const t = F();
2093
+ return V(() => {
2094
+ t.current = e;
2095
+ }, [e]), t.current;
2096
+ }
2097
+ const Qu = (e, t) => {
2098
+ const o = (c) => {
2099
+ var d;
2100
+ return I(c == null ? void 0 : c.matchSlug) && ((d = c == null ? void 0 : c.matchSlug) == null ? void 0 : d.length) > 0;
2101
+ }, n = e.children || [], r = n.filter((c) => o(c.root.targetMatch)).map((c) => c.root.targetMatch), i = Go(r), {
2102
+ data: s,
2103
+ execute: l
2104
+ } = Do(`${t}/match-list`, {
2105
+ method: "POST",
2106
+ body: {
2107
+ matches: r.map((c) => ({
2108
+ slug: c.matchSlug,
2109
+ sport_slug: c.sportSlug,
2110
+ lang: c.langSlug,
2111
+ bookmaker_slug: c.bookmaker,
2112
+ offset: c.offset,
2113
+ markets: c.markets
2114
+ }))
2115
+ },
2116
+ pause: !t || r.length === 0
2117
+ });
2118
+ return V(() => {
2119
+ Ho(i, r) || l();
2120
+ }, [r]), n.map((c) => {
2121
+ const d = (s || []).find((h) => h.slug === c.root.targetMatch.matchSlug);
2122
+ if (!d)
2123
+ return;
2124
+ const p = Po(d), u = Ro(p, c.root.customMatch, (h, [v, y]) => I(y));
2125
+ return b(f({}, c), {
2126
+ match: u
2127
+ });
2128
+ }).filter(Boolean);
2129
+ }, Yu = se(({
2130
+ id: e
2131
+ }, t) => {
2132
+ var U, H, R, M, E, k, z, W, J, Z, Ne, pt, ft, ht;
2133
+ const o = F(null), n = fe({
2134
+ targetRef: o,
2135
+ id: e
2136
+ }), r = P(), i = le(r, n);
2137
+ Le(i, "buttonWrapper.percent_width", (U = i == null ? void 0 : i.buttonWrapper) == null ? void 0 : U.width), Le(i, "legal.percent_width", (H = i == null ? void 0 : i.legal) == null ? void 0 : H.width);
2138
+ const s = A(i);
2139
+ _e(i);
2140
+ const l = m(s, "root.delay", 0), {
2141
+ isOpen: _,
2142
+ apiHost: c,
2143
+ clickHide: d,
2144
+ click: p
2145
+ } = ut(t, l, !0), u = Qu(i, c), h = b(f({}, s.root), {
2146
+ alignItems: de((R = s.root) == null ? void 0 : R.align)
2147
+ }), v = b(f({}, s.content), {
2148
+ alignItems: de((M = s.root) == null ? void 0 : M.align)
2149
+ }), y = b(f({}, s.text), {
2150
+ textAlign: (E = s.root) == null ? void 0 : E.align
2151
+ }), $ = b(f({}, s == null ? void 0 : s.button), {
2152
+ justifyContent: de((k = s.root) == null ? void 0 : k.textAlign)
2153
+ }), D = b(f({}, s == null ? void 0 : s.legal), {
2154
+ justifyContent: de((z = s.root) == null ? void 0 : z.textAlign)
2155
+ });
2156
+ return a("div", {
2157
+ className: L(S.root, {
2158
+ [S.desktop]: n === "desktop",
2159
+ [S.laptop]: n === "laptop",
2160
+ [S.tablet]: n === "tablet"
2161
+ }),
2162
+ ref: o,
2163
+ style: {
2164
+ display: _ ? "flex" : "none"
2165
+ },
2166
+ children: [a("div", {
2167
+ className: S.overlay,
2168
+ style: s.overlay,
2169
+ onClick: d
2170
+ }), a("div", {
2171
+ className: S.content,
2172
+ children: [a("div", {
2173
+ className: S.close,
2174
+ style: he(s.close),
2175
+ onClick: d,
2176
+ children: a(xe, {})
2177
+ }), a(q, {
2178
+ className: S.promotion,
2179
+ style: s.promotion,
2180
+ children: (W = s.promotion) == null ? void 0 : W.children
2181
+ }), a("a", {
2182
+ ref: o,
2183
+ href: (J = s.root) == null ? void 0 : J.offer,
2184
+ target: "_blank",
2185
+ rel: "nofollow noopener noreferrer",
2186
+ onClick: () => p(s.id),
2187
+ children: a("div", {
2188
+ className: S.body,
2189
+ style: h,
2190
+ children: [a("div", {
2191
+ className: S.head,
2192
+ children: [a("div", {
2193
+ className: S.title,
2194
+ style: s.title,
2195
+ children: (Z = s.title) == null ? void 0 : Z.children
2196
+ }), a("div", {
2197
+ className: S.logo,
2198
+ style: s.logo
2199
+ })]
2200
+ }), a("div", {
2201
+ className: S.wrapper,
2202
+ style: v,
2203
+ children: (u || []).map((qo) => a(ie, {
2204
+ value: b(f({}, qo), {
2205
+ device: n
2206
+ }),
2207
+ children: a(Ju, {})
2208
+ }))
2209
+ }), a(q, {
2210
+ className: S.text,
2211
+ style: y,
2212
+ typography: y.typography,
2213
+ accentTypography: y.accentTypography,
2214
+ children: (Ne = s.text) == null ? void 0 : Ne.children
2215
+ }), a("div", {
2216
+ className: S.button,
2217
+ style: s.buttonWrapper,
2218
+ children: [a("div", {
2219
+ className: S.buttonHead,
2220
+ style: s.buttonHead,
2221
+ children: (pt = s.buttonHead) == null ? void 0 : pt.children
2222
+ }), a("div", {
2223
+ className: S.buttonTarget,
2224
+ style: $,
2225
+ children: (ft = s.button) == null ? void 0 : ft.children
2226
+ })]
2227
+ }), a(q, {
2228
+ className: S.legal,
2229
+ style: D,
2230
+ children: (ht = s.legal) == null ? void 0 : ht.children
2231
+ })]
2232
+ })
2233
+ })]
2234
+ })]
2235
+ });
2236
+ }), eh = ce(a(Yu, {})), ep = "_root_x31x3_1", tp = "_background_x31x3_18", op = "_body_x31x3_27", np = "_bookmaker_x31x3_36", rp = "_button_x31x3_43", ap = "_rowFirst_x31x3_57", sp = "_rowSecond_x31x3_63", ip = "_legal_x31x3_69", cp = "_legalText_x31x3_86", lp = "_legalOpen_x31x3_96", _p = "_legalButton_x31x3_101", Y = {
2237
+ root: ep,
2238
+ background: tp,
2239
+ body: op,
2240
+ bookmaker: np,
2241
+ button: rp,
2242
+ rowFirst: ap,
2243
+ rowSecond: sp,
2244
+ legal: ip,
2245
+ legalText: cp,
2246
+ legalOpen: lp,
2247
+ legalButton: _p
2248
+ }, dp = ({
2249
+ onClick: e
2250
+ }) => {
2251
+ var i, s, l, _, c, d, p, u;
2252
+ const t = P(), o = A(t), [n, r] = Qe();
2253
+ return a("div", {
2254
+ className: Y.root,
2255
+ style: re(o.root, ...X),
2256
+ children: [a("div", {
2257
+ className: Y.background,
2258
+ style: oe(o.root, ...X)
2259
+ }), a("a", {
2260
+ href: (i = o.root) == null ? void 0 : i.offer,
2261
+ target: "_blank",
2262
+ rel: "nofollow noopener noreferrer",
2263
+ className: Y.body,
2264
+ onClick: () => e(o.id),
2265
+ children: [a("div", {
2266
+ children: [a("div", {
2267
+ className: Y.rowFirst,
2268
+ style: o.rowFirst,
2269
+ children: (s = o.rowFirst) == null ? void 0 : s.children
2270
+ }), a("div", {
2271
+ className: Y.rowSecond,
2272
+ style: o.rowSecond,
2273
+ children: (l = o.rowSecond) == null ? void 0 : l.children
2274
+ }), a("div", {
2275
+ className: Y.bookmaker,
2276
+ style: o.bookmaker,
2277
+ children: (_ = o.bookmaker) == null ? void 0 : _.children
2278
+ })]
2279
+ }), a("div", {
2280
+ className: Y.button,
2281
+ style: o.button,
2282
+ children: (c = o.button) == null ? void 0 : c.children
2283
+ })]
2284
+ }), a("div", {
2285
+ className: L(Y.legal, {
2286
+ [Y.legalOpen]: n
2287
+ }),
2288
+ style: o.legalInfo,
2289
+ children: a("span", {
2290
+ className: Y.legalText,
2291
+ children: [a("span", {
2292
+ children: (d = o.legalInfo) == null ? void 0 : d.children
2293
+ }), a("span", {
2294
+ className: Y.legalButton,
2295
+ style: o.legalInfoButton,
2296
+ onClick: r,
2297
+ children: n ? (p = o.legalInfoButton) == null ? void 0 : p.openText : (u = o.legalInfoButton) == null ? void 0 : u.closeText
2298
+ })]
2299
+ })
2300
+ })]
2301
+ });
2302
+ }, up = (e) => {
2303
+ const t = F(He()), o = (n) => t.current.on("click", n);
2304
+ return Se(e, () => ({
2305
+ promoId: "ContentCards",
2306
+ onClick: o,
2307
+ resetListeners: t.current.reset
2308
+ })), V(() => t.current.reset, []), {
2309
+ click: (...n) => t.current.emit("click", ...n),
2310
+ onClick: o
2311
+ };
2312
+ }, pp = se((e, t) => {
2313
+ const o = F(null), n = P(), i = le(n, "mobile"), s = A(i);
2314
+ _e(i);
2315
+ const {
2316
+ click: l
2317
+ } = up(t);
2318
+ return a("div", {
2319
+ ref: o,
2320
+ children: ((s == null ? void 0 : s.children) || []).map((_) => a(ie, {
2321
+ value: _,
2322
+ children: a(dp, {
2323
+ onClick: l
2324
+ })
2325
+ }))
2326
+ });
2327
+ }), th = ce(a(pp, {})), fp = "_root_lymds_1", hp = "_desktop_lymds_13", gp = "_laptop_lymds_14", mp = "_promotion_lymds_18", vp = "_background_lymds_35", yp = "_close_lymds_44", bp = "_content_lymds_57", $p = "_variant2_lymds_70", kp = "_logo_lymds_74", xp = "_left_lymds_86", Np = "_center_lymds_99", Cp = "_slide_lymds_105", wp = "_slide_animated_default_lymds_119", Tp = "_right_lymds_129", Op = "_buttonWrapper_lymds_144", jp = "_button_lymds_144", Lp = "_button_animated_lymds_178", Ap = "_increase_lymds_1", O = {
2328
+ root: fp,
2329
+ desktop: hp,
2330
+ laptop: gp,
2331
+ promotion: mp,
2332
+ background: vp,
2333
+ close: yp,
2334
+ content: bp,
2335
+ variant2: $p,
2336
+ logo: kp,
2337
+ left: xp,
2338
+ center: Np,
2339
+ slide: Cp,
2340
+ slide_animated_default: wp,
2341
+ "fade-in-out": "_fade-in-out_lymds_1",
2342
+ "slide_animated_bottom-top": "_slide_animated_bottom-top_lymds_122",
2343
+ "fade-in-bottom-out-top": "_fade-in-bottom-out-top_lymds_1",
2344
+ "slide_animated_top-bottom": "_slide_animated_top-bottom_lymds_125",
2345
+ right: Tp,
2346
+ buttonWrapper: Op,
2347
+ button: jp,
2348
+ button_animated: Lp,
2349
+ increase: Ap,
2350
+ "fade-in-top-out-bottom": "_fade-in-top-out-bottom_lymds_1"
2351
+ }, Sp = "_root_1c4sr_1", Ip = "_desktop_1c4sr_11", ao = {
2352
+ root: Sp,
2353
+ desktop: Ip
2354
+ }, Pp = () => {
2355
+ var o, n, r;
2356
+ const e = P(), t = A(e);
2357
+ return a("div", {
2358
+ className: L(ao.root, {
2359
+ [ao.desktop]: (e == null ? void 0 : e.device) === "desktop"
2360
+ }),
2361
+ style: re(t.root, ...X),
2362
+ children: a(q, {
2363
+ accentTypography: (o = t.root) == null ? void 0 : o.accentTypography,
2364
+ typography: (n = t.root) == null ? void 0 : n.typography,
2365
+ children: (r = t.root) == null ? void 0 : r.children
2366
+ })
2367
+ });
2368
+ }, Hp = "_root_gohhp_1", Rp = "_title_gohhp_8", Mp = "_desktop_gohhp_13", Ep = "_laptop_gohhp_13", Vp = "_titleLabel_gohhp_17", Bp = "_tablet_gohhp_20", Fp = "_titleValue_gohhp_27", Dp = "_teamLogo_gohhp_38", Gp = "_teams_gohhp_49", qp = "_teamName_gohhp_57", Up = "_odds_gohhp_64", Wp = "_odd_gohhp_64", zp = "_oddX_gohhp_76", Zp = "_oddValue_gohhp_84", j = {
2369
+ root: Hp,
2370
+ title: Rp,
2371
+ desktop: Mp,
2372
+ laptop: Ep,
2373
+ titleLabel: Vp,
2374
+ tablet: Bp,
2375
+ titleValue: Fp,
2376
+ teamLogo: Dp,
2377
+ teams: Gp,
2378
+ teamName: qp,
2379
+ odds: Up,
2380
+ odd: Wp,
2381
+ oddX: zp,
2382
+ oddValue: Zp
2383
+ }, Ue = (e, t, o = 1, n = !1) => {
2384
+ var l;
2385
+ const [r, i] = [t[0], t[1] || t[0]].map((_) => _ * o), s = `w${r}-h${i}${n ? "-c" : ""}`;
2386
+ return (l = e == null ? void 0 : e.replace(/(\/(?:upload|user-avatars)\/[\w\d]+\/)origin(\/)/, `$1${s}$2`)) != null ? l : e;
2387
+ }, Kp = () => {
2388
+ var i, s;
2389
+ const e = P(), t = A(e), o = re(t.root, ...X), n = b(f({}, t.teamLogo), {
2390
+ backgroundImage: Ue(m(t, "match.teams[0].logo"), [120, 120]),
2391
+ backgroundColor: "transparent"
2392
+ }), r = b(f({}, t.teamLogo), {
2393
+ backgroundImage: Ue(m(t, "match.teams[1].logo"), [120, 120]),
2394
+ backgroundColor: "transparent"
2395
+ });
2396
+ return a("div", {
2397
+ className: L(j.root, {
2398
+ [j.desktop]: e.device === "desktop",
2399
+ [j.laptop]: e.device === "laptop",
2400
+ [j.tablet]: e.device === "tablet"
2401
+ }),
2402
+ style: o,
2403
+ children: [a("div", {
2404
+ className: j.title,
2405
+ children: [a("div", {
2406
+ className: j.titleLabel,
2407
+ style: t.titleLabel,
2408
+ children: (i = t.titleLabel) == null ? void 0 : i.children
2409
+ }), a("div", {
2410
+ className: j.titleValue,
2411
+ style: t.titleValue,
2412
+ children: (s = t.titleValue) == null ? void 0 : s.children
2413
+ })]
2414
+ }), a("div", {
2415
+ className: j.odds,
2416
+ children: [a("div", {
2417
+ className: j.odd,
2418
+ children: [a("img", {
2419
+ className: j.teamLogo,
2420
+ src: n.backgroundImage,
2421
+ style: n
2422
+ }), a("div", {
2423
+ className: j.oddValue,
2424
+ style: t.value,
2425
+ children: m(t, "match.markets.one_x_two.w1")
2426
+ })]
2427
+ }), a("div", {
2428
+ className: j.odd,
2429
+ children: [a("div", {
2430
+ className: j.oddX,
2431
+ style: t.coef,
2432
+ children: "X"
2433
+ }), a("div", {
2434
+ className: j.oddValue,
2435
+ style: t.value,
2436
+ children: m(t, "match.markets.one_x_two.x")
2437
+ })]
2438
+ }), a("div", {
2439
+ className: j.odd,
2440
+ children: [a("img", {
2441
+ className: j.teamLogo,
2442
+ src: r.backgroundImage,
2443
+ style: r
2444
+ }), a("div", {
2445
+ className: j.oddValue,
2446
+ style: t.value,
2447
+ children: m(t, "match.markets.one_x_two.w2")
2448
+ })]
2449
+ })]
2450
+ }), a("div", {
2451
+ className: j.teams,
2452
+ children: [a("div", {
2453
+ className: j.teamName,
2454
+ style: t.teamName,
2455
+ children: m(t, "match.teams[0].name")
2456
+ }), a("div", {
2457
+ className: j.teamName,
2458
+ style: t.teamName,
2459
+ children: m(t, "match.teams[1].name")
2460
+ })]
2461
+ })]
2462
+ });
2463
+ }, Xp = "_root_1bycs_1", Jp = "_title_1bycs_8", Qp = "_titleLabel_1bycs_13", Yp = "_tablet_1bycs_16", ef = "_desktop_1bycs_19", tf = "_laptop_1bycs_19", of = "_titleValue_1bycs_23", nf = "_team_1bycs_34", rf = "_teamLogo_1bycs_45", af = "_national_1bycs_56", sf = "_teamName_1bycs_77", cf = "_teamValue_1bycs_89", B = {
2464
+ root: Xp,
2465
+ title: Jp,
2466
+ titleLabel: Qp,
2467
+ tablet: Yp,
2468
+ desktop: ef,
2469
+ laptop: tf,
2470
+ titleValue: of,
2471
+ team: nf,
2472
+ teamLogo: rf,
2473
+ national: af,
2474
+ teamName: sf,
2475
+ teamValue: cf
2476
+ }, lf = () => {
2477
+ var r, i;
2478
+ const e = P(), t = A(e), o = b(f(f({}, oe(t.root, ...X)), t.teamLogo), {
2479
+ backgroundColor: "transparent",
2480
+ backgroundImage: Ue(m(t, "match.teams[0].logo"), [120, 120])
2481
+ }), n = b(f(f({}, oe(t.root, ...X)), t.teamLogo), {
2482
+ backgroundColor: "transparent",
2483
+ backgroundImage: Ue(m(t, "match.teams[1].logo"), [120, 120])
2484
+ });
2485
+ return a("div", {
2486
+ className: L(B.root, {
2487
+ [B.desktop]: (e == null ? void 0 : e.device) === "desktop",
2488
+ [B.laptop]: (e == null ? void 0 : e.device) === "laptop",
2489
+ [B.tablet]: (e == null ? void 0 : e.device) === "tablet",
2490
+ [B.national]: m(t, "match.isNational")
2491
+ }),
2492
+ style: re(t.root, ...X),
2493
+ children: [a("div", {
2494
+ className: B.title,
2495
+ children: [a("div", {
2496
+ className: B.titleLabel,
2497
+ style: t.titleLabel,
2498
+ children: (r = t.titleLabel) == null ? void 0 : r.children
2499
+ }), a("div", {
2500
+ className: B.titleValue,
2501
+ style: t.titleValue,
2502
+ children: (i = t.titleValue) == null ? void 0 : i.children
2503
+ })]
2504
+ }), a("div", {
2505
+ children: [a("div", {
2506
+ className: B.team,
2507
+ children: [a("img", {
2508
+ className: B.teamLogo,
2509
+ src: o.backgroundImage,
2510
+ style: o
2511
+ }), a("div", {
2512
+ className: B.teamName,
2513
+ style: t.teamName,
2514
+ children: m(t, "match.teams[0].name")
2515
+ }), a("div", {
2516
+ className: B.teamValue,
2517
+ style: t.value,
2518
+ children: m(t, "match.markets.one_two.w1")
2519
+ })]
2520
+ }), a("div", {
2521
+ className: B.team,
2522
+ children: [a("img", {
2523
+ className: B.teamLogo,
2524
+ src: n.backgroundImage,
2525
+ style: n
2526
+ }), a("div", {
2527
+ className: B.teamName,
2528
+ style: t.teamName,
2529
+ children: m(t, "match.teams[1].name")
2530
+ }), a("div", {
2531
+ className: B.teamValue,
2532
+ style: t.value,
2533
+ children: m(t, "match.markets.one_two.w2")
2534
+ })]
2535
+ })]
2536
+ })]
2537
+ });
2538
+ }, _f = (e = []) => {
2539
+ var i;
2540
+ const t = e.length, [o, n] = ne(0), r = (i = e[o || 0]) == null ? void 0 : i.animationDuration;
2541
+ return V(() => {
2542
+ const l = setTimeout(() => {
2543
+ n((_) => _ + 1 < t ? _ + 1 : 0);
2544
+ }, r);
2545
+ return () => clearTimeout(l);
2546
+ }, [n, t, r, o]), o;
2547
+ }, df = {
2548
+ matches: "one_x_two",
2549
+ matchesOneTwo: "one_two"
2550
+ }, so = (e) => [df[e]], uf = (e, t) => {
2551
+ const o = (c) => {
2552
+ var d;
2553
+ return I(c == null ? void 0 : c.matchSlug) && ((d = c == null ? void 0 : c.matchSlug) == null ? void 0 : d.length) > 0;
2554
+ }, n = (e == null ? void 0 : e.children) || [], r = n.filter((c) => o(c.root.targetMatch)).map((c) => b(f({}, c.root.targetMatch), {
2555
+ markets: so(c.name)
2556
+ })), i = Go(r), {
2557
+ data: s,
2558
+ execute: l
2559
+ } = Do(`${t}/match-list`, {
2560
+ method: "POST",
2561
+ body: {
2562
+ matches: r.map((c) => ({
2563
+ slug: c.matchSlug,
2564
+ sport_slug: c.sportSlug,
2565
+ lang: c.langSlug,
2566
+ bookmaker_slug: c.bookmaker,
2567
+ offset: c.offset,
2568
+ markets: c.markets
2569
+ }))
2570
+ },
2571
+ pause: !t || r.length === 0
2572
+ });
2573
+ return V(() => {
2574
+ Ho(i, r) || l();
2575
+ }, [r]), n.map((c) => {
2576
+ if ("targetMatch" in c.root) {
2577
+ const d = (s || []).find((v) => v.slug === c.root.targetMatch.matchSlug);
2578
+ if (!d)
2579
+ return;
2580
+ const p = so(c.name), u = Po(d, {
2581
+ markets: p
2582
+ }), h = Ro(u, c.root.customMatch, (v, [y, $]) => I($));
2583
+ return b(f({}, c), {
2584
+ match: h
2585
+ });
2586
+ }
2587
+ return c;
2588
+ }).filter(Boolean);
2589
+ }, pf = (e) => {
2590
+ const t = F(He()), [o, n] = ne(!1), [r, i] = ne(), s = (u) => t.current.on("visible", u), l = (u) => t.current.on("click", u), _ = (u) => t.current.on("clickHide", u), c = () => Ce(void 0, null, function* () {
2591
+ n(!0);
2592
+ }), d = () => n(!1), p = () => {
2593
+ t.current.emit("clickHide"), d();
2594
+ };
2595
+ return V(() => {
2596
+ t.current.emit("visible", o);
2597
+ }, [o]), Se(e, () => ({
2598
+ onVisible: s,
2599
+ onClick: l,
2600
+ onClickHide: _,
2601
+ show: c,
2602
+ hide: d,
2603
+ setApiHost: i,
2604
+ resetListeners: t.current.reset
2605
+ })), V(() => t.current.reset, []), {
2606
+ isOpen: o,
2607
+ apiHost: r,
2608
+ show: c,
2609
+ hide: d,
2610
+ clickHide: p,
2611
+ click: (...u) => {
2612
+ t.current.emit("click", ...u);
2613
+ }
2614
+ };
2615
+ }, ff = 3700, hf = se(({
2616
+ id: e
2617
+ }, t) => {
2618
+ var U, H, R, M, E;
2619
+ const o = F(null), n = P(), r = fe({
2620
+ id: e,
2621
+ targetRef: o
2622
+ }), i = le(n, r), s = A(i);
2623
+ _e(i);
2624
+ const {
2625
+ apiHost: l,
2626
+ isOpen: _,
2627
+ click: c,
2628
+ clickHide: d
2629
+ } = pf(t), p = uf(s, l), u = (k) => ({
2630
+ text: a(Pp, {}),
2631
+ matches: a(Kp, {}),
2632
+ matchesOneTwo: a(lf, {})
2633
+ })[k], h = p.filter(Boolean).map((k) => {
2634
+ var z, W;
2635
+ return b(f({}, k), {
2636
+ animationName: (z = k == null ? void 0 : k.root) == null ? void 0 : z.animationName,
2637
+ animationDuration: ((W = k == null ? void 0 : k.root) == null ? void 0 : W.animationDuration) || ff
2638
+ });
2639
+ }), v = _f(h), y = A(h[v] || {}), $ = re(s.root, ...X), D = (U = y == null ? void 0 : y.root) != null && U.hasCustomBackground ? oe((y == null ? void 0 : y.root) || {}, ...X) : oe(s.root, ...X);
2640
+ return a("div", {
2641
+ ref: o,
2642
+ className: L(O.root, {
2643
+ [O.desktop]: r === "desktop",
2644
+ [O.laptop]: r === "laptop",
2645
+ [O.tablet]: r === "tablet",
2646
+ [O.variant2]: ((H = s.root) == null ? void 0 : H.variant) === "variant2"
2647
+ }),
2648
+ style: b(f({}, $), {
2649
+ display: _ ? "block" : "none"
2650
+ }),
2651
+ children: [a("div", {
2652
+ className: O.close,
2653
+ style: he(s.close),
2654
+ onClick: d,
2655
+ children: a(xe, {})
2656
+ }), a("div", {
2657
+ className: O.promotion,
2658
+ style: s.promotion,
2659
+ children: (R = s.promotion) == null ? void 0 : R.children
2660
+ }), a("a", {
2661
+ href: (M = s.root) == null ? void 0 : M.offer,
2662
+ target: "_blank",
2663
+ rel: "nofollow noopener noreferrer",
2664
+ onClick: c,
2665
+ children: [a("div", {
2666
+ className: O.background,
2667
+ style: D
2668
+ }), a("div", {
2669
+ className: O.content,
2670
+ children: [a("div", {
2671
+ className: O.left,
2672
+ children: a("div", {
2673
+ className: O.logo,
2674
+ style: s.logo
2675
+ })
2676
+ }), a("div", {
2677
+ className: O.center,
2678
+ children: (h || []).map((k, z) => {
2679
+ var W, J;
2680
+ return a("div", {
2681
+ className: O.slide,
2682
+ style: {
2683
+ animationName: v === z ? O[((W = k.root) == null ? void 0 : W.animationName) || "fade-in-out"] : "none",
2684
+ animationDuration: `${(J = k.root) == null ? void 0 : J.animationDuration}ms`
2685
+ },
2686
+ children: a(ie, {
2687
+ value: b(f({}, k), {
2688
+ device: r
2689
+ }),
2690
+ children: u(k.name)
2691
+ })
2692
+ });
2693
+ })
2694
+ }), a("div", {
2695
+ className: O.right,
2696
+ children: [a("div", {
2697
+ className: O.logo,
2698
+ style: s.logo
2699
+ }), a("div", {
2700
+ className: O.buttonWrapper,
2701
+ children: a("div", {
2702
+ className: L(O.button, {
2703
+ [O.button_animated]: s.button.$animated
2704
+ }),
2705
+ style: s.button,
2706
+ children: [a("div", {
2707
+ className: O.logo,
2708
+ style: s.logo
2709
+ }), (E = s.button) == null ? void 0 : E.children]
2710
+ })
2711
+ })]
2712
+ })]
2713
+ })]
2714
+ })]
2715
+ });
2716
+ }), oh = ce(a(hf, {})), gf = "_content_c8kee_1", mf = "_desktop_c8kee_6", vf = "_laptop_c8kee_6", yf = "_tablet_c8kee_6", Te = {
2717
+ content: gf,
2718
+ desktop: mf,
2719
+ laptop: vf,
2720
+ tablet: yf
2721
+ }, bf = "_root_t1sch_1", $f = "_content_t1sch_8", kf = "_textContent_t1sch_15", xf = "_backgroundLine_t1sch_20", Nf = "_button_t1sch_26", Cf = "_link_t1sch_32", wf = "_legal_t1sch_38", Tf = "_legalText_t1sch_47", Of = "_open_t1sch_56", jf = "_legalMore_t1sch_61", ee = {
2722
+ root: bf,
2723
+ content: $f,
2724
+ textContent: kf,
2725
+ backgroundLine: xf,
2726
+ button: Nf,
2727
+ link: Cf,
2728
+ legal: wf,
2729
+ legalText: Tf,
2730
+ open: Of,
2731
+ legalMore: jf
2732
+ }, nh = (e, t, o, n, r = Mo) => {
2733
+ const i = f({}, e);
2734
+ return r.forEach((s) => {
2735
+ i[t] = b(f({}, i[t]), {
2736
+ [s]: b(f({}, i[t][s]), {
2737
+ [o]: typeof n == "function" ? n(m(i, `${t}.${s}.${o}`)) : n
2738
+ })
2739
+ });
2740
+ }), i;
2741
+ }, he = (e) => {
2742
+ const t = e == null ? void 0 : e.backgroundColor;
2743
+ if (!t)
2744
+ return e;
2745
+ const o = b(f({}, e), {
2746
+ color: t
2747
+ });
2748
+ return re(o, "backgroundColor");
2749
+ }, Lf = () => a("svg", {
2750
+ width: "81",
2751
+ height: "100%",
2752
+ viewBox: "0 0 81 76",
2753
+ fill: "none",
2754
+ xmlns: "http://www.w3.org/2000/svg",
2755
+ children: [a("path", {
2756
+ d: "M63.0344 7.99989L7.38354 67.5171L9.86897 69.8401L65.5198 10.3229L63.0344 7.99989Z",
2757
+ fill: "currentColor"
2758
+ }), a("path", {
2759
+ d: "M77.8771 -23.0001L22.2263 36.5171L24.7117 38.8401L80.3626 -20.6771L77.8771 -23.0001Z",
2760
+ fill: "#E3E3E3"
2761
+ }), a("path", {
2762
+ d: "M66.7199 20.9999L11.0691 80.5171L13.5545 82.8401L69.2053 23.3229L66.7199 20.9999Z",
2763
+ fill: "#E3E3E3"
2764
+ }), a("path", {
2765
+ d: "M55.808 20.5258L0.157227 80.043L2.64266 82.366L58.2935 22.8487L55.808 20.5258Z",
2766
+ fill: "currentColor"
2767
+ }), a("path", {
2768
+ d: "M70.6508 -10.4742L15 49.043L17.4854 51.366L73.1362 -8.15125L70.6508 -10.4742Z",
2769
+ fill: "#E3E3E3"
2770
+ }), a("path", {
2771
+ d: "M72.426 8.99995L61 21.2163L62.5379 22.6541L73.9638 10.4377L72.426 8.99995Z",
2772
+ fill: "#E3E3E3"
2773
+ })]
2774
+ }), Af = ({
2775
+ onClick: e
2776
+ }) => {
2777
+ var i, s, l, _, c, d, p, u, h;
2778
+ const t = P(), o = A(t), [n, r] = Qe();
2779
+ return a("div", {
2780
+ className: ee.root,
2781
+ style: o.root,
2782
+ children: [a("div", {
2783
+ className: ee.content,
2784
+ children: [a("div", {
2785
+ className: ee.textContent,
2786
+ children: [a(q, {
2787
+ className: ee.text,
2788
+ style: o.text,
2789
+ typography: (i = o.text) == null ? void 0 : i.typography,
2790
+ accentTypography: (s = o.text) == null ? void 0 : s.accentTypography,
2791
+ children: (l = o.text) == null ? void 0 : l.children
2792
+ }), a("div", {
2793
+ style: o.bookmaker,
2794
+ children: (_ = o.bookmaker) == null ? void 0 : _.children
2795
+ })]
2796
+ }), a("div", {
2797
+ className: ee.button,
2798
+ style: o.button,
2799
+ children: o.button.children
2800
+ }), a("div", {
2801
+ className: ee.backgroundLine,
2802
+ style: b(f({}, he(o.line)), {
2803
+ left: `calc(50% - ${(c = o.line) == null ? void 0 : c.left})`
2804
+ }),
2805
+ children: a(Lf, {})
2806
+ }), a("a", {
2807
+ className: ee.link,
2808
+ target: "_blank",
2809
+ href: (d = o.root) == null ? void 0 : d.offer,
2810
+ onClick: () => e(o.id),
2811
+ rel: "noreferrer"
2812
+ })]
2813
+ }), a("div", {
2814
+ className: L(ee.legal, {
2815
+ [ee.open]: n
2816
+ }),
2817
+ style: o.legalInfo,
2818
+ children: a("div", {
2819
+ className: ee.legalText,
2820
+ children: [(p = o.legalInfo) == null ? void 0 : p.children, a("span", {
2821
+ className: ee.legalMore,
2822
+ style: o.legalInfoButton,
2823
+ onClick: r,
2824
+ children: n ? (u = o.legalInfoButton) == null ? void 0 : u.openText : (h = o.legalInfoButton) == null ? void 0 : h.closeText
2825
+ })]
2826
+ })
2827
+ })]
2828
+ });
2829
+ }, Sf = "_root_ka6mq_1", If = "_content_ka6mq_8", Pf = "_backgroundLine_ka6mq_14", Hf = "_link_ka6mq_20", Rf = "_button_ka6mq_26", Mf = "_logo_ka6mq_31", Ef = "_legal_ka6mq_37", Vf = "_open_ka6mq_49", Bf = "_legalText_ka6mq_53", Ff = "_legalMore_ka6mq_66", te = {
2830
+ root: Sf,
2831
+ content: If,
2832
+ backgroundLine: Pf,
2833
+ link: Hf,
2834
+ button: Rf,
2835
+ logo: Mf,
2836
+ legal: Ef,
2837
+ open: Vf,
2838
+ legalText: Bf,
2839
+ legalMore: Ff
2840
+ }, Df = ({
2841
+ onClick: e
2842
+ }) => {
2843
+ var i, s, l, _, c, d, p, u;
2844
+ const t = P(), o = A(t), [n, r] = Qe();
2845
+ return a("div", {
2846
+ className: te.root,
2847
+ style: o.root,
2848
+ children: [a("div", {
2849
+ className: te.content,
2850
+ children: [a(q, {
2851
+ className: te.text,
2852
+ style: o.text,
2853
+ typography: (i = o.text) == null ? void 0 : i.typography,
2854
+ accentTypography: (s = o.text) == null ? void 0 : s.accentTypography,
2855
+ children: (l = o.text) == null ? void 0 : l.children
2856
+ }), a("div", {
2857
+ className: te.button,
2858
+ style: o.button,
2859
+ children: [a("div", {
2860
+ className: te.logo,
2861
+ style: o.logo
2862
+ }), o.button.children]
2863
+ }), a("a", {
2864
+ className: te.link,
2865
+ href: (_ = o.root) == null ? void 0 : _.offer
2866
+ })]
2867
+ }), a("a", {
2868
+ className: te.link,
2869
+ href: (c = o.root) == null ? void 0 : c.offer,
2870
+ target: "_blank",
2871
+ onClick: () => e(o.id),
2872
+ rel: "noreferrer"
2873
+ }), a("div", {
2874
+ className: L(te.legal, {
2875
+ [te.open]: n
2876
+ }),
2877
+ style: o.legalInfo,
2878
+ children: [a("div", {
2879
+ className: te.legalText,
2880
+ children: (d = o.legalInfo) == null ? void 0 : d.children
2881
+ }), a("div", {
2882
+ className: te.legalMore,
2883
+ style: o.legalInfoButton,
2884
+ onClick: r,
2885
+ children: n ? (p = o.legalInfoButton) == null ? void 0 : p.openText : (u = o.legalInfoButton) == null ? void 0 : u.closeText
2886
+ })]
2887
+ })]
2888
+ });
2889
+ }, Gf = (e) => {
2890
+ const t = F(He()), o = (r) => t.current.on("click", r), n = (r) => t.current.on("visible", r);
2891
+ return Se(e, () => ({
2892
+ promoId: "ContentCards",
2893
+ onClick: o,
2894
+ onVisible: n,
2895
+ resetListeners: t.current.reset
2896
+ })), V(() => {
2897
+ t.current.emit("visible");
2898
+ }, []), V(() => t.current.reset, []), {
2899
+ click: (...r) => t.current.emit("click", ...r),
2900
+ onClick: o
2901
+ };
2902
+ }, qf = se(({
2903
+ id: e
2904
+ }, t) => {
2905
+ const o = F(null), n = P(), r = fe({
2906
+ targetRef: o,
2907
+ id: e
2908
+ }), i = le(n, r), s = A(i);
2909
+ _e(i);
2910
+ const {
2911
+ click: l
2912
+ } = Gf(t), _ = (c) => ({
2913
+ cardVariant1: a(Af, {
2914
+ onClick: l
2915
+ }),
2916
+ cardVariant2: a(Df, {
2917
+ onClick: l
2918
+ })
2919
+ })[c];
2920
+ return a("div", {
2921
+ ref: o,
2922
+ className: L(Te.root, {
2923
+ [Te.desktop]: r === "desktop",
2924
+ [Te.laptop]: r === "laptop",
2925
+ [Te.tablet]: r === "tablet"
2926
+ }),
2927
+ children: a("div", {
2928
+ className: Te.content,
2929
+ children: ((s == null ? void 0 : s.children) || []).map((c) => a(ie, {
2930
+ value: c,
2931
+ children: _(c.name)
2932
+ }))
2933
+ })
2934
+ });
2935
+ }), rh = ce(a(qf, {}));
2936
+ export {
2937
+ th as BonusCard,
2938
+ Jf as ComplexGift,
2939
+ Yf as ComplexPopup,
2940
+ rh as ContentCards,
2941
+ eh as ExpressPopup,
2942
+ Xf as SimpleGift,
2943
+ Qf as SimplePopup,
2944
+ oh as WideCard,
2945
+ he as backgroundToColor,
2946
+ Kf as filterDeep,
2947
+ Zf as findDeep,
2948
+ zf as isValidTemplate,
2949
+ nh as modifyState
2950
+ };