@streamlayer/react 1.11.3-rc.5 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/advertisement.d.ts +18 -0
- package/lib/app/app.d.ts +19 -0
- package/lib/{auth.d.ts → app/auth.d.ts} +4 -13
- package/lib/app/bet-pack.d.ts +20 -0
- package/lib/app/event.d.ts +4 -0
- package/lib/app/insight.d.ts +13 -0
- package/lib/app/masters.d.ts +28 -0
- package/lib/app/notification.d.ts +5 -0
- package/lib/app/points.d.ts +3 -0
- package/lib/app/provider.d.ts +43 -0
- package/lib/app/useStreamLayerApp.d.ts +19 -0
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -0
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +5 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -0
- package/lib/cjs/masters2.js +9 -0
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +98 -85
- package/lib/cjs/useStreamLayerApp2.js +17 -15
- package/lib/classic/app/advertisement.d.ts +18 -0
- package/lib/classic/app/app.d.ts +19 -0
- package/lib/classic/{auth.d.ts → app/auth.d.ts} +4 -13
- package/lib/classic/app/bet-pack.d.ts +20 -0
- package/lib/classic/app/event.d.ts +4 -0
- package/lib/classic/app/insight.d.ts +13 -0
- package/lib/classic/app/masters.d.ts +28 -0
- package/lib/classic/app/notification.d.ts +5 -0
- package/lib/classic/app/points.d.ts +3 -0
- package/lib/classic/app/provider.d.ts +43 -0
- package/lib/classic/app/useStreamLayerApp.d.ts +19 -0
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +1 -0
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/gamification-feature2.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/masters.js +1 -0
- package/lib/classic/cjs/masters2.js +9 -0
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +98 -85
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -15
- package/lib/classic/es/advertisement.js +617 -717
- package/lib/classic/es/auth.js +2 -5
- package/lib/classic/es/bet-pack.js +14 -0
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/gamification-feature2.js +4 -0
- package/lib/classic/es/index.js +14 -11
- package/lib/classic/es/index2.js +2890 -0
- package/lib/classic/es/insight.js +33 -33
- package/lib/classic/es/masters.js +8 -0
- package/lib/classic/es/masters2.js +981 -0
- package/lib/classic/es/notification.js +378 -453
- package/lib/classic/es/points.js +39 -64
- package/lib/classic/es/provider.js +16443 -13824
- package/lib/classic/es/useStreamLayerApp2.js +8187 -4455
- package/lib/classic/index.d.ts +14 -218
- package/lib/classic/masters.d.ts +9 -0
- package/lib/classic/style.css +1 -455
- package/lib/dist/cjs/gamification-feature.js +1 -0
- package/lib/dist/cjs/gamification-feature2.js +1 -0
- package/lib/dist/cjs/index.js +1 -0
- package/lib/dist/cjs/masters.js +223 -0
- package/lib/dist/cjs/package.json +1 -0
- package/lib/dist/es/gamification-feature.js +4 -0
- package/lib/dist/es/gamification-feature2.js +123 -0
- package/lib/dist/es/index.js +11 -0
- package/lib/dist/es/masters.js +45904 -0
- package/lib/dist/es/package.json +1 -0
- package/lib/dist/style.css +1 -0
- package/lib/es/advertisement.js +617 -717
- package/lib/es/auth.js +2 -5
- package/lib/es/bet-pack.js +14 -0
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/gamification-feature2.js +4 -0
- package/lib/es/index.js +14 -11
- package/lib/es/index2.js +2890 -0
- package/lib/es/insight.js +33 -33
- package/lib/es/masters.js +8 -0
- package/lib/es/masters2.js +981 -0
- package/lib/es/notification.js +378 -453
- package/lib/es/points.js +39 -64
- package/lib/es/provider.js +16267 -13641
- package/lib/es/useStreamLayerApp2.js +8187 -4455
- package/lib/index.d.ts +14 -218
- package/lib/masters.d.ts +9 -0
- package/lib/style.css +1 -1
- package/package.json +57 -3
- package/lib/advertisement.d.ts +0 -146
- package/lib/classic/advertisement.d.ts +0 -146
- package/lib/classic/insight.d.ts +0 -136
- package/lib/classic/notification.d.ts +0 -120
- package/lib/classic/points.d.ts +0 -12
- package/lib/classic/useStreamLayerApp.d.ts +0 -167
- package/lib/insight.d.ts +0 -136
- package/lib/notification.d.ts +0 -120
- package/lib/points.d.ts +0 -12
- package/lib/useStreamLayerApp.d.ts +0 -167
package/lib/es/index2.js
ADDED
|
@@ -0,0 +1,2890 @@
|
|
|
1
|
+
import { jsxs as F, jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import X, { useRef as Fe, useMemo as xt, useEffect as qe, useCallback as Pe, useSyncExternalStore as gr, memo as mr, useState as Be } from "react";
|
|
3
|
+
import { s as z, E as ee, B as br, a3 as ue, a4 as Sr, a5 as wr, a6 as Or, a as at, c as st } from "./provider.js";
|
|
4
|
+
import { g as Le, S as _r } from "./useStreamLayerApp2.js";
|
|
5
|
+
const tt = /* @__PURE__ */ z("button")({
|
|
6
|
+
name: "ScreenButton",
|
|
7
|
+
class: "s1pdy82n",
|
|
8
|
+
propsAsIs: !1
|
|
9
|
+
}), jt = /* @__PURE__ */ z("div")({
|
|
10
|
+
name: "ScreenTitle",
|
|
11
|
+
class: "spc0iwi",
|
|
12
|
+
propsAsIs: !1
|
|
13
|
+
}), Lt = /* @__PURE__ */ z("div")({
|
|
14
|
+
name: "ScreenDescription",
|
|
15
|
+
class: "s18vssq2",
|
|
16
|
+
propsAsIs: !1
|
|
17
|
+
}), Pr = /* @__PURE__ */ z("div")({
|
|
18
|
+
name: "BetPackContainer",
|
|
19
|
+
class: "blelwov",
|
|
20
|
+
propsAsIs: !1
|
|
21
|
+
}), kr = /* @__PURE__ */ z("div")({
|
|
22
|
+
name: "EmergencyContainer",
|
|
23
|
+
class: "e1f9mu2m",
|
|
24
|
+
propsAsIs: !1
|
|
25
|
+
}), Tr = /* @__PURE__ */ z("div")({
|
|
26
|
+
name: "EmergencyScreenTitle",
|
|
27
|
+
class: "e1n10yo1",
|
|
28
|
+
propsAsIs: !1
|
|
29
|
+
}), Er = /* @__PURE__ */ z("div")({
|
|
30
|
+
name: "EmergencyScreenDescription",
|
|
31
|
+
class: "e1xecypc",
|
|
32
|
+
propsAsIs: !1
|
|
33
|
+
}), Cr = () => tt, xr = /* @__PURE__ */ z(Cr())({
|
|
34
|
+
name: "EmergencyScreenButton",
|
|
35
|
+
class: "e1k6zoyu",
|
|
36
|
+
propsAsIs: !0
|
|
37
|
+
}), Mt = ({ actionFn: r, description: e }) => /* @__PURE__ */ F(kr, { children: [
|
|
38
|
+
/* @__PURE__ */ _(Tr, { children: "Something went wrong." }),
|
|
39
|
+
/* @__PURE__ */ _(Er, { children: e }),
|
|
40
|
+
/* @__PURE__ */ _(xr, { onClick: r, children: "Try again" })
|
|
41
|
+
] }), jr = /* @__PURE__ */ z("div")({
|
|
42
|
+
name: "ScreenContainerBox",
|
|
43
|
+
class: "s28ooi9",
|
|
44
|
+
propsAsIs: !1
|
|
45
|
+
}), rt = ({ children: r, height: e }) => /* @__PURE__ */ _(jr, { style: { height: e }, children: /* @__PURE__ */ _("div", { children: r }) }), Lr = /* @__PURE__ */ z("div")({
|
|
46
|
+
name: "ScreenWrap",
|
|
47
|
+
class: "s8s3kc9",
|
|
48
|
+
propsAsIs: !1
|
|
49
|
+
}), Mr = () => ee, Rr = /* @__PURE__ */ z(Mr())({
|
|
50
|
+
name: "SponsorIcon",
|
|
51
|
+
class: "s1uswib2",
|
|
52
|
+
propsAsIs: !0
|
|
53
|
+
}), zr = /* @__PURE__ */ z("div")({
|
|
54
|
+
name: "EndScreenWrap",
|
|
55
|
+
class: "el0dbzn",
|
|
56
|
+
propsAsIs: !1
|
|
57
|
+
}), Ir = /* @__PURE__ */ z("div")({
|
|
58
|
+
name: "EndScreenMain",
|
|
59
|
+
class: "e11do4i1",
|
|
60
|
+
propsAsIs: !1
|
|
61
|
+
}), Ar = () => jt, Dr = /* @__PURE__ */ z(Ar())({
|
|
62
|
+
name: "EndScreenTitle",
|
|
63
|
+
class: "ef67yx9",
|
|
64
|
+
propsAsIs: !0
|
|
65
|
+
}), $r = () => Lt, Hr = /* @__PURE__ */ z($r())({
|
|
66
|
+
name: "EndScreenDescription",
|
|
67
|
+
class: "enw6fxs",
|
|
68
|
+
propsAsIs: !0
|
|
69
|
+
}), Nr = () => tt, Wr = /* @__PURE__ */ z(Nr())({
|
|
70
|
+
name: "EndScreenButton",
|
|
71
|
+
class: "euaws9b",
|
|
72
|
+
propsAsIs: !0
|
|
73
|
+
}), Fr = ({ height: r, onEvent: e }) => /* @__PURE__ */ _(rt, { height: r, children: /* @__PURE__ */ _(Lr, { children: /* @__PURE__ */ _(zr, { children: /* @__PURE__ */ F(Ir, { children: [
|
|
74
|
+
/* @__PURE__ */ _(Rr, { name: "icon-masters-logo" }),
|
|
75
|
+
/* @__PURE__ */ _(Dr, { children: "Great picks!" }),
|
|
76
|
+
/* @__PURE__ */ F(Hr, { children: [
|
|
77
|
+
"Stay in the Enhanced Stream for",
|
|
78
|
+
/* @__PURE__ */ _("br", {}),
|
|
79
|
+
"live results, predictions, trivia,",
|
|
80
|
+
/* @__PURE__ */ _("br", {}),
|
|
81
|
+
"polls, and match insights."
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ _(Wr, { onClick: () => e({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
84
|
+
] }) }) }) }, "end"), qr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3e%3cradialGradient%20id='a9'%20cx='.66'%20fx='.66'%20cy='.3125'%20fy='.3125'%20gradientTransform='scale(1.5)'%3e%3cstop%20offset='0'%20stop-color='%23FFFFFF'%3e%3c/stop%3e%3cstop%20offset='.3'%20stop-color='%23FFFFFF'%20stop-opacity='.9'%3e%3c/stop%3e%3cstop%20offset='.6'%20stop-color='%23FFFFFF'%20stop-opacity='.6'%3e%3c/stop%3e%3cstop%20offset='.8'%20stop-color='%23FFFFFF'%20stop-opacity='.3'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23FFFFFF'%20stop-opacity='0'%3e%3c/stop%3e%3c/radialGradient%3e%3ccircle%20transform-origin='center'%20fill='none'%20stroke='url(%23a9)'%20stroke-width='17'%20stroke-linecap='round'%20stroke-dasharray='200%201000'%20stroke-dashoffset='0'%20cx='100'%20cy='100'%20r='70'%3e%3canimateTransform%20type='rotate'%20attributeName='transform'%20calcMode='spline'%20dur='1.8'%20values='360;0'%20keyTimes='0;1'%20keySplines='0%200%201%201'%20repeatCount='indefinite'%3e%3c/animateTransform%3e%3c/circle%3e%3ccircle%20transform-origin='center'%20fill='none'%20opacity='.2'%20stroke='%23FFFFFF'%20stroke-width='17'%20stroke-linecap='round'%20cx='100'%20cy='100'%20r='70'%3e%3c/circle%3e%3c/svg%3e", Br = ({ height: r = "37px", width: e = "37px" }) => /* @__PURE__ */ _("div", { style: { height: r, width: e }, children: /* @__PURE__ */ _("img", { alt: "loader", src: qr }) }), Gr = /* @__PURE__ */ z("div")({
|
|
85
|
+
name: "Container",
|
|
86
|
+
class: "cv31tt7",
|
|
87
|
+
propsAsIs: !1
|
|
88
|
+
}), Rt = () => /* @__PURE__ */ _(Gr, {
|
|
89
|
+
children: /* @__PURE__ */ _(Br, {})
|
|
90
|
+
}), Ur = ({ question: r, vote: e }) => r ? /* @__PURE__ */ _(br, { close: () => {
|
|
91
|
+
}, openedQuestion: r, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, Qr = /* @__PURE__ */ z("div")({
|
|
92
|
+
name: "ScreenWrap",
|
|
93
|
+
class: "s991vvm",
|
|
94
|
+
propsAsIs: !1
|
|
95
|
+
}), Yr = () => ee, Xr = /* @__PURE__ */ z(Yr())({
|
|
96
|
+
name: "IconArrowRight",
|
|
97
|
+
class: "inbj36g",
|
|
98
|
+
propsAsIs: !0
|
|
99
|
+
}), Kr = () => ee, Vr = /* @__PURE__ */ z(Kr())({
|
|
100
|
+
name: "SponsorIcon",
|
|
101
|
+
class: "szrvgt",
|
|
102
|
+
propsAsIs: !0
|
|
103
|
+
}), Jr = /* @__PURE__ */ z("div")({
|
|
104
|
+
name: "StartScreenSponsor",
|
|
105
|
+
class: "swqs2ju",
|
|
106
|
+
propsAsIs: !1
|
|
107
|
+
}), Zr = () => jt, en = /* @__PURE__ */ z(Zr())({
|
|
108
|
+
name: "StartScreenTitle",
|
|
109
|
+
class: "s1oq8jlq",
|
|
110
|
+
propsAsIs: !0
|
|
111
|
+
}), tn = () => Lt, rn = /* @__PURE__ */ z(tn())({
|
|
112
|
+
name: "StartScreenDescription",
|
|
113
|
+
class: "se4nn9a",
|
|
114
|
+
propsAsIs: !0
|
|
115
|
+
}), nn = () => tt, on = /* @__PURE__ */ z(nn())({
|
|
116
|
+
name: "StartScreenButton",
|
|
117
|
+
class: "sofug8s",
|
|
118
|
+
propsAsIs: !0
|
|
119
|
+
}), an = ({ height: r, countQuestionsAvailable: e, sliderRef: n }) => /* @__PURE__ */ _(rt, { height: r, children: /* @__PURE__ */ F(Qr, { children: [
|
|
120
|
+
/* @__PURE__ */ _(Vr, { name: "icon-masters-logo" }),
|
|
121
|
+
/* @__PURE__ */ _(Jr, { children: "MASTERS PRESENTS" }),
|
|
122
|
+
/* @__PURE__ */ F(en, { children: [
|
|
123
|
+
"Tee time predictions:",
|
|
124
|
+
/* @__PURE__ */ _("br", {}),
|
|
125
|
+
"share your expertise"
|
|
126
|
+
] }),
|
|
127
|
+
/* @__PURE__ */ F(rn, { children: [
|
|
128
|
+
"Swipe to answer today’s",
|
|
129
|
+
/* @__PURE__ */ _("br", {}),
|
|
130
|
+
"question cards."
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ F(
|
|
133
|
+
on,
|
|
134
|
+
{
|
|
135
|
+
onClick: () => {
|
|
136
|
+
var i;
|
|
137
|
+
(i = n.current) == null || i.slickNext();
|
|
138
|
+
},
|
|
139
|
+
children: [
|
|
140
|
+
e ? `${e} questions available` : "See all questions",
|
|
141
|
+
/* @__PURE__ */ _(Xr, { name: "iconArrowRight" })
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
] }) }, "start");
|
|
146
|
+
var zt = {}, It = {}, ke = {}, At = {};
|
|
147
|
+
(function(r) {
|
|
148
|
+
Object.defineProperty(r, "__esModule", {
|
|
149
|
+
value: !0
|
|
150
|
+
}), r.default = void 0;
|
|
151
|
+
var e = {
|
|
152
|
+
animating: !1,
|
|
153
|
+
autoplaying: null,
|
|
154
|
+
currentDirection: 0,
|
|
155
|
+
currentLeft: null,
|
|
156
|
+
currentSlide: 0,
|
|
157
|
+
direction: 1,
|
|
158
|
+
dragging: !1,
|
|
159
|
+
edgeDragged: !1,
|
|
160
|
+
initialized: !1,
|
|
161
|
+
lazyLoadedList: [],
|
|
162
|
+
listHeight: null,
|
|
163
|
+
listWidth: null,
|
|
164
|
+
scrolling: !1,
|
|
165
|
+
slideCount: null,
|
|
166
|
+
slideHeight: null,
|
|
167
|
+
slideWidth: null,
|
|
168
|
+
swipeLeft: null,
|
|
169
|
+
swiped: !1,
|
|
170
|
+
// used by swipeEvent. differentites between touch and swipe.
|
|
171
|
+
swiping: !1,
|
|
172
|
+
touchObject: {
|
|
173
|
+
startX: 0,
|
|
174
|
+
startY: 0,
|
|
175
|
+
curX: 0,
|
|
176
|
+
curY: 0
|
|
177
|
+
},
|
|
178
|
+
trackStyle: {},
|
|
179
|
+
trackWidth: 0,
|
|
180
|
+
targetSlide: 0
|
|
181
|
+
};
|
|
182
|
+
r.default = e;
|
|
183
|
+
})(At);
|
|
184
|
+
var sn = "Expected a function", lt = NaN, ln = "[object Symbol]", un = /^\s+|\s+$/g, cn = /^[-+]0x[0-9a-f]+$/i, fn = /^0b[01]+$/i, dn = /^0o[0-7]+$/i, pn = parseInt, vn = typeof ue == "object" && ue && ue.Object === Object && ue, hn = typeof self == "object" && self && self.Object === Object && self, yn = vn || hn || Function("return this")(), gn = Object.prototype, mn = gn.toString, bn = Math.max, Sn = Math.min, Me = function() {
|
|
185
|
+
return yn.Date.now();
|
|
186
|
+
};
|
|
187
|
+
function wn(r, e, n) {
|
|
188
|
+
var i, t, a, o, s, l, u = 0, d = !1, c = !1, m = !0;
|
|
189
|
+
if (typeof r != "function")
|
|
190
|
+
throw new TypeError(sn);
|
|
191
|
+
e = ut(e) || 0, Ge(n) && (d = !!n.leading, c = "maxWait" in n, a = c ? bn(ut(n.maxWait) || 0, e) : a, m = "trailing" in n ? !!n.trailing : m);
|
|
192
|
+
function E(C) {
|
|
193
|
+
var A = i, W = t;
|
|
194
|
+
return i = t = void 0, u = C, o = r.apply(W, A), o;
|
|
195
|
+
}
|
|
196
|
+
function O(C) {
|
|
197
|
+
return u = C, s = setTimeout(y, e), d ? E(C) : o;
|
|
198
|
+
}
|
|
199
|
+
function g(C) {
|
|
200
|
+
var A = C - l, W = C - u, h = e - A;
|
|
201
|
+
return c ? Sn(h, a - W) : h;
|
|
202
|
+
}
|
|
203
|
+
function b(C) {
|
|
204
|
+
var A = C - l, W = C - u;
|
|
205
|
+
return l === void 0 || A >= e || A < 0 || c && W >= a;
|
|
206
|
+
}
|
|
207
|
+
function y() {
|
|
208
|
+
var C = Me();
|
|
209
|
+
if (b(C))
|
|
210
|
+
return p(C);
|
|
211
|
+
s = setTimeout(y, g(C));
|
|
212
|
+
}
|
|
213
|
+
function p(C) {
|
|
214
|
+
return s = void 0, m && i ? E(C) : (i = t = void 0, o);
|
|
215
|
+
}
|
|
216
|
+
function w() {
|
|
217
|
+
s !== void 0 && clearTimeout(s), u = 0, i = l = t = s = void 0;
|
|
218
|
+
}
|
|
219
|
+
function x() {
|
|
220
|
+
return s === void 0 ? o : p(Me());
|
|
221
|
+
}
|
|
222
|
+
function j() {
|
|
223
|
+
var C = Me(), A = b(C);
|
|
224
|
+
if (i = arguments, t = this, l = C, A) {
|
|
225
|
+
if (s === void 0)
|
|
226
|
+
return O(l);
|
|
227
|
+
if (c)
|
|
228
|
+
return s = setTimeout(y, e), E(l);
|
|
229
|
+
}
|
|
230
|
+
return s === void 0 && (s = setTimeout(y, e)), o;
|
|
231
|
+
}
|
|
232
|
+
return j.cancel = w, j.flush = x, j;
|
|
233
|
+
}
|
|
234
|
+
function Ge(r) {
|
|
235
|
+
var e = typeof r;
|
|
236
|
+
return !!r && (e == "object" || e == "function");
|
|
237
|
+
}
|
|
238
|
+
function On(r) {
|
|
239
|
+
return !!r && typeof r == "object";
|
|
240
|
+
}
|
|
241
|
+
function _n(r) {
|
|
242
|
+
return typeof r == "symbol" || On(r) && mn.call(r) == ln;
|
|
243
|
+
}
|
|
244
|
+
function ut(r) {
|
|
245
|
+
if (typeof r == "number")
|
|
246
|
+
return r;
|
|
247
|
+
if (_n(r))
|
|
248
|
+
return lt;
|
|
249
|
+
if (Ge(r)) {
|
|
250
|
+
var e = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
251
|
+
r = Ge(e) ? e + "" : e;
|
|
252
|
+
}
|
|
253
|
+
if (typeof r != "string")
|
|
254
|
+
return r === 0 ? r : +r;
|
|
255
|
+
r = r.replace(un, "");
|
|
256
|
+
var n = fn.test(r);
|
|
257
|
+
return n || dn.test(r) ? pn(r.slice(2), n ? 2 : 8) : cn.test(r) ? lt : +r;
|
|
258
|
+
}
|
|
259
|
+
var Pn = wn, Dt = { exports: {} };
|
|
260
|
+
/*!
|
|
261
|
+
Copyright (c) 2018 Jed Watson.
|
|
262
|
+
Licensed under the MIT License (MIT), see
|
|
263
|
+
http://jedwatson.github.io/classnames
|
|
264
|
+
*/
|
|
265
|
+
(function(r) {
|
|
266
|
+
(function() {
|
|
267
|
+
var e = {}.hasOwnProperty;
|
|
268
|
+
function n() {
|
|
269
|
+
for (var a = "", o = 0; o < arguments.length; o++) {
|
|
270
|
+
var s = arguments[o];
|
|
271
|
+
s && (a = t(a, i(s)));
|
|
272
|
+
}
|
|
273
|
+
return a;
|
|
274
|
+
}
|
|
275
|
+
function i(a) {
|
|
276
|
+
if (typeof a == "string" || typeof a == "number")
|
|
277
|
+
return a;
|
|
278
|
+
if (typeof a != "object")
|
|
279
|
+
return "";
|
|
280
|
+
if (Array.isArray(a))
|
|
281
|
+
return n.apply(null, a);
|
|
282
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
283
|
+
return a.toString();
|
|
284
|
+
var o = "";
|
|
285
|
+
for (var s in a)
|
|
286
|
+
e.call(a, s) && a[s] && (o = t(o, s));
|
|
287
|
+
return o;
|
|
288
|
+
}
|
|
289
|
+
function t(a, o) {
|
|
290
|
+
return o ? a ? a + " " + o : a + o : a;
|
|
291
|
+
}
|
|
292
|
+
r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
|
|
293
|
+
})();
|
|
294
|
+
})(Dt);
|
|
295
|
+
var Te = Dt.exports, f = {}, nt = {};
|
|
296
|
+
(function(r) {
|
|
297
|
+
Object.defineProperty(r, "__esModule", {
|
|
298
|
+
value: !0
|
|
299
|
+
}), r.default = void 0;
|
|
300
|
+
var e = n(X);
|
|
301
|
+
function n(t) {
|
|
302
|
+
return t && t.__esModule ? t : { default: t };
|
|
303
|
+
}
|
|
304
|
+
var i = {
|
|
305
|
+
accessibility: !0,
|
|
306
|
+
adaptiveHeight: !1,
|
|
307
|
+
afterChange: null,
|
|
308
|
+
appendDots: function(a) {
|
|
309
|
+
return /* @__PURE__ */ e.default.createElement("ul", {
|
|
310
|
+
style: {
|
|
311
|
+
display: "block"
|
|
312
|
+
}
|
|
313
|
+
}, a);
|
|
314
|
+
},
|
|
315
|
+
arrows: !0,
|
|
316
|
+
autoplay: !1,
|
|
317
|
+
autoplaySpeed: 3e3,
|
|
318
|
+
beforeChange: null,
|
|
319
|
+
centerMode: !1,
|
|
320
|
+
centerPadding: "50px",
|
|
321
|
+
className: "",
|
|
322
|
+
cssEase: "ease",
|
|
323
|
+
customPaging: function(a) {
|
|
324
|
+
return /* @__PURE__ */ e.default.createElement("button", null, a + 1);
|
|
325
|
+
},
|
|
326
|
+
dots: !1,
|
|
327
|
+
dotsClass: "slick-dots",
|
|
328
|
+
draggable: !0,
|
|
329
|
+
easing: "linear",
|
|
330
|
+
edgeFriction: 0.35,
|
|
331
|
+
fade: !1,
|
|
332
|
+
focusOnSelect: !1,
|
|
333
|
+
infinite: !0,
|
|
334
|
+
initialSlide: 0,
|
|
335
|
+
lazyLoad: null,
|
|
336
|
+
nextArrow: null,
|
|
337
|
+
onEdge: null,
|
|
338
|
+
onInit: null,
|
|
339
|
+
onLazyLoadError: null,
|
|
340
|
+
onReInit: null,
|
|
341
|
+
pauseOnDotsHover: !1,
|
|
342
|
+
pauseOnFocus: !1,
|
|
343
|
+
pauseOnHover: !0,
|
|
344
|
+
prevArrow: null,
|
|
345
|
+
responsive: null,
|
|
346
|
+
rows: 1,
|
|
347
|
+
rtl: !1,
|
|
348
|
+
slide: "div",
|
|
349
|
+
slidesPerRow: 1,
|
|
350
|
+
slidesToScroll: 1,
|
|
351
|
+
slidesToShow: 1,
|
|
352
|
+
speed: 500,
|
|
353
|
+
swipe: !0,
|
|
354
|
+
swipeEvent: null,
|
|
355
|
+
swipeToSlide: !1,
|
|
356
|
+
touchMove: !0,
|
|
357
|
+
touchThreshold: 5,
|
|
358
|
+
useCSS: !0,
|
|
359
|
+
useTransform: !0,
|
|
360
|
+
variableWidth: !1,
|
|
361
|
+
vertical: !1,
|
|
362
|
+
waitForAnimate: !0,
|
|
363
|
+
asNavFor: null,
|
|
364
|
+
unslick: !1
|
|
365
|
+
};
|
|
366
|
+
r.default = i;
|
|
367
|
+
})(nt);
|
|
368
|
+
Object.defineProperty(f, "__esModule", {
|
|
369
|
+
value: !0
|
|
370
|
+
});
|
|
371
|
+
f.checkSpecKeys = f.checkNavigable = f.changeSlide = f.canUseDOM = f.canGoNext = void 0;
|
|
372
|
+
f.clamp = Ht;
|
|
373
|
+
f.extractObject = void 0;
|
|
374
|
+
f.filterSettings = Hn;
|
|
375
|
+
f.validSettings = f.swipeStart = f.swipeMove = f.swipeEnd = f.slidesOnRight = f.slidesOnLeft = f.slideHandler = f.siblingDirection = f.safePreventDefault = f.lazyStartIndex = f.lazySlidesOnRight = f.lazySlidesOnLeft = f.lazyEndIndex = f.keyHandler = f.initializedState = f.getWidth = f.getTrackLeft = f.getTrackCSS = f.getTrackAnimateCSS = f.getTotalSlides = f.getSwipeDirection = f.getSlideCount = f.getRequiredLazySlides = f.getPreClones = f.getPostClones = f.getOnDemandLazySlides = f.getNavigableIndexes = f.getHeight = void 0;
|
|
376
|
+
var kn = $t(X), Tn = $t(nt);
|
|
377
|
+
function $t(r) {
|
|
378
|
+
return r && r.__esModule ? r : { default: r };
|
|
379
|
+
}
|
|
380
|
+
function se(r) {
|
|
381
|
+
"@babel/helpers - typeof";
|
|
382
|
+
return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
383
|
+
return typeof e;
|
|
384
|
+
} : function(e) {
|
|
385
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
386
|
+
}, se(r);
|
|
387
|
+
}
|
|
388
|
+
function ct(r, e) {
|
|
389
|
+
var n = Object.keys(r);
|
|
390
|
+
if (Object.getOwnPropertySymbols) {
|
|
391
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
392
|
+
e && (i = i.filter(function(t) {
|
|
393
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
394
|
+
})), n.push.apply(n, i);
|
|
395
|
+
}
|
|
396
|
+
return n;
|
|
397
|
+
}
|
|
398
|
+
function I(r) {
|
|
399
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
400
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
401
|
+
e % 2 ? ct(Object(n), !0).forEach(function(i) {
|
|
402
|
+
En(r, i, n[i]);
|
|
403
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : ct(Object(n)).forEach(function(i) {
|
|
404
|
+
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(n, i));
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
return r;
|
|
408
|
+
}
|
|
409
|
+
function En(r, e, n) {
|
|
410
|
+
return e = Cn(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
411
|
+
}
|
|
412
|
+
function Cn(r) {
|
|
413
|
+
var e = xn(r, "string");
|
|
414
|
+
return se(e) == "symbol" ? e : String(e);
|
|
415
|
+
}
|
|
416
|
+
function xn(r, e) {
|
|
417
|
+
if (se(r) != "object" || !r) return r;
|
|
418
|
+
var n = r[Symbol.toPrimitive];
|
|
419
|
+
if (n !== void 0) {
|
|
420
|
+
var i = n.call(r, e || "default");
|
|
421
|
+
if (se(i) != "object") return i;
|
|
422
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
423
|
+
}
|
|
424
|
+
return (e === "string" ? String : Number)(r);
|
|
425
|
+
}
|
|
426
|
+
function Ht(r, e, n) {
|
|
427
|
+
return Math.max(e, Math.min(r, n));
|
|
428
|
+
}
|
|
429
|
+
var J = f.safePreventDefault = function(e) {
|
|
430
|
+
var n = ["onTouchStart", "onTouchMove", "onWheel"];
|
|
431
|
+
n.includes(e._reactName) || e.preventDefault();
|
|
432
|
+
}, Nt = f.getOnDemandLazySlides = function(e) {
|
|
433
|
+
for (var n = [], i = Wt(e), t = Ft(e), a = i; a < t; a++)
|
|
434
|
+
e.lazyLoadedList.indexOf(a) < 0 && n.push(a);
|
|
435
|
+
return n;
|
|
436
|
+
};
|
|
437
|
+
f.getRequiredLazySlides = function(e) {
|
|
438
|
+
for (var n = [], i = Wt(e), t = Ft(e), a = i; a < t; a++)
|
|
439
|
+
n.push(a);
|
|
440
|
+
return n;
|
|
441
|
+
};
|
|
442
|
+
var Wt = f.lazyStartIndex = function(e) {
|
|
443
|
+
return e.currentSlide - jn(e);
|
|
444
|
+
}, Ft = f.lazyEndIndex = function(e) {
|
|
445
|
+
return e.currentSlide + Ln(e);
|
|
446
|
+
}, jn = f.lazySlidesOnLeft = function(e) {
|
|
447
|
+
return e.centerMode ? Math.floor(e.slidesToShow / 2) + (parseInt(e.centerPadding) > 0 ? 1 : 0) : 0;
|
|
448
|
+
}, Ln = f.lazySlidesOnRight = function(e) {
|
|
449
|
+
return e.centerMode ? Math.floor((e.slidesToShow - 1) / 2) + 1 + (parseInt(e.centerPadding) > 0 ? 1 : 0) : e.slidesToShow;
|
|
450
|
+
}, Ue = f.getWidth = function(e) {
|
|
451
|
+
return e && e.offsetWidth || 0;
|
|
452
|
+
}, qt = f.getHeight = function(e) {
|
|
453
|
+
return e && e.offsetHeight || 0;
|
|
454
|
+
}, Bt = f.getSwipeDirection = function(e) {
|
|
455
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i, t, a, o;
|
|
456
|
+
return i = e.startX - e.curX, t = e.startY - e.curY, a = Math.atan2(t, i), o = Math.round(a * 180 / Math.PI), o < 0 && (o = 360 - Math.abs(o)), o <= 45 && o >= 0 || o <= 360 && o >= 315 ? "left" : o >= 135 && o <= 225 ? "right" : n === !0 ? o >= 35 && o <= 135 ? "up" : "down" : "vertical";
|
|
457
|
+
}, Gt = f.canGoNext = function(e) {
|
|
458
|
+
var n = !0;
|
|
459
|
+
return e.infinite || (e.centerMode && e.currentSlide >= e.slideCount - 1 || e.slideCount <= e.slidesToShow || e.currentSlide >= e.slideCount - e.slidesToShow) && (n = !1), n;
|
|
460
|
+
};
|
|
461
|
+
f.extractObject = function(e, n) {
|
|
462
|
+
var i = {};
|
|
463
|
+
return n.forEach(function(t) {
|
|
464
|
+
return i[t] = e[t];
|
|
465
|
+
}), i;
|
|
466
|
+
};
|
|
467
|
+
f.initializedState = function(e) {
|
|
468
|
+
var n = kn.default.Children.count(e.children), i = e.listRef, t = Math.ceil(Ue(i)), a = e.trackRef && e.trackRef.node, o = Math.ceil(Ue(a)), s;
|
|
469
|
+
if (e.vertical)
|
|
470
|
+
s = t;
|
|
471
|
+
else {
|
|
472
|
+
var l = e.centerMode && parseInt(e.centerPadding) * 2;
|
|
473
|
+
typeof e.centerPadding == "string" && e.centerPadding.slice(-1) === "%" && (l *= t / 100), s = Math.ceil((t - l) / e.slidesToShow);
|
|
474
|
+
}
|
|
475
|
+
var u = i && qt(i.querySelector('[data-index="0"]')), d = u * e.slidesToShow, c = e.currentSlide === void 0 ? e.initialSlide : e.currentSlide;
|
|
476
|
+
e.rtl && e.currentSlide === void 0 && (c = n - 1 - e.initialSlide);
|
|
477
|
+
var m = e.lazyLoadedList || [], E = Nt(I(I({}, e), {}, {
|
|
478
|
+
currentSlide: c,
|
|
479
|
+
lazyLoadedList: m
|
|
480
|
+
}));
|
|
481
|
+
m = m.concat(E);
|
|
482
|
+
var O = {
|
|
483
|
+
slideCount: n,
|
|
484
|
+
slideWidth: s,
|
|
485
|
+
listWidth: t,
|
|
486
|
+
trackWidth: o,
|
|
487
|
+
currentSlide: c,
|
|
488
|
+
slideHeight: u,
|
|
489
|
+
listHeight: d,
|
|
490
|
+
lazyLoadedList: m
|
|
491
|
+
};
|
|
492
|
+
return e.autoplaying === null && e.autoplay && (O.autoplaying = "playing"), O;
|
|
493
|
+
};
|
|
494
|
+
f.slideHandler = function(e) {
|
|
495
|
+
var n = e.waitForAnimate, i = e.animating, t = e.fade, a = e.infinite, o = e.index, s = e.slideCount, l = e.lazyLoad, u = e.currentSlide, d = e.centerMode, c = e.slidesToScroll, m = e.slidesToShow, E = e.useCSS, O = e.lazyLoadedList;
|
|
496
|
+
if (n && i) return {};
|
|
497
|
+
var g = o, b, y, p, w = {}, x = {}, j = a ? o : Ht(o, 0, s - 1);
|
|
498
|
+
if (t) {
|
|
499
|
+
if (!a && (o < 0 || o >= s)) return {};
|
|
500
|
+
o < 0 ? g = o + s : o >= s && (g = o - s), l && O.indexOf(g) < 0 && (O = O.concat(g)), w = {
|
|
501
|
+
animating: !0,
|
|
502
|
+
currentSlide: g,
|
|
503
|
+
lazyLoadedList: O,
|
|
504
|
+
targetSlide: g
|
|
505
|
+
}, x = {
|
|
506
|
+
animating: !1,
|
|
507
|
+
targetSlide: g
|
|
508
|
+
};
|
|
509
|
+
} else
|
|
510
|
+
b = g, g < 0 ? (b = g + s, a ? s % c !== 0 && (b = s - s % c) : b = 0) : !Gt(e) && g > u ? g = b = u : d && g >= s ? (g = a ? s : s - 1, b = a ? 0 : s - 1) : g >= s && (b = g - s, a ? s % c !== 0 && (b = 0) : b = s - m), !a && g + m >= s && (b = s - m), y = ve(I(I({}, e), {}, {
|
|
511
|
+
slideIndex: g
|
|
512
|
+
})), p = ve(I(I({}, e), {}, {
|
|
513
|
+
slideIndex: b
|
|
514
|
+
})), a || (y === p && (g = b), y = p), l && (O = O.concat(Nt(I(I({}, e), {}, {
|
|
515
|
+
currentSlide: g
|
|
516
|
+
})))), E ? (w = {
|
|
517
|
+
animating: !0,
|
|
518
|
+
currentSlide: b,
|
|
519
|
+
trackStyle: Ut(I(I({}, e), {}, {
|
|
520
|
+
left: y
|
|
521
|
+
})),
|
|
522
|
+
lazyLoadedList: O,
|
|
523
|
+
targetSlide: j
|
|
524
|
+
}, x = {
|
|
525
|
+
animating: !1,
|
|
526
|
+
currentSlide: b,
|
|
527
|
+
trackStyle: pe(I(I({}, e), {}, {
|
|
528
|
+
left: p
|
|
529
|
+
})),
|
|
530
|
+
swipeLeft: null,
|
|
531
|
+
targetSlide: j
|
|
532
|
+
}) : w = {
|
|
533
|
+
currentSlide: b,
|
|
534
|
+
trackStyle: pe(I(I({}, e), {}, {
|
|
535
|
+
left: p
|
|
536
|
+
})),
|
|
537
|
+
lazyLoadedList: O,
|
|
538
|
+
targetSlide: j
|
|
539
|
+
};
|
|
540
|
+
return {
|
|
541
|
+
state: w,
|
|
542
|
+
nextState: x
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
f.changeSlide = function(e, n) {
|
|
546
|
+
var i, t, a, o, s, l = e.slidesToScroll, u = e.slidesToShow, d = e.slideCount, c = e.currentSlide, m = e.targetSlide, E = e.lazyLoad, O = e.infinite;
|
|
547
|
+
if (o = d % l !== 0, i = o ? 0 : (d - c) % l, n.message === "previous")
|
|
548
|
+
a = i === 0 ? l : u - i, s = c - a, E && !O && (t = c - a, s = t === -1 ? d - 1 : t), O || (s = m - l);
|
|
549
|
+
else if (n.message === "next")
|
|
550
|
+
a = i === 0 ? l : i, s = c + a, E && !O && (s = (c + l) % d + i), O || (s = m + l);
|
|
551
|
+
else if (n.message === "dots")
|
|
552
|
+
s = n.index * n.slidesToScroll;
|
|
553
|
+
else if (n.message === "children") {
|
|
554
|
+
if (s = n.index, O) {
|
|
555
|
+
var g = In(I(I({}, e), {}, {
|
|
556
|
+
targetSlide: s
|
|
557
|
+
}));
|
|
558
|
+
s > n.currentSlide && g === "left" ? s = s - d : s < n.currentSlide && g === "right" && (s = s + d);
|
|
559
|
+
}
|
|
560
|
+
} else n.message === "index" && (s = Number(n.index));
|
|
561
|
+
return s;
|
|
562
|
+
};
|
|
563
|
+
f.keyHandler = function(e, n, i) {
|
|
564
|
+
return e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !n ? "" : e.keyCode === 37 ? i ? "next" : "previous" : e.keyCode === 39 ? i ? "previous" : "next" : "";
|
|
565
|
+
};
|
|
566
|
+
f.swipeStart = function(e, n, i) {
|
|
567
|
+
return e.target.tagName === "IMG" && J(e), !n || !i && e.type.indexOf("mouse") !== -1 ? "" : {
|
|
568
|
+
dragging: !0,
|
|
569
|
+
touchObject: {
|
|
570
|
+
startX: e.touches ? e.touches[0].pageX : e.clientX,
|
|
571
|
+
startY: e.touches ? e.touches[0].pageY : e.clientY,
|
|
572
|
+
curX: e.touches ? e.touches[0].pageX : e.clientX,
|
|
573
|
+
curY: e.touches ? e.touches[0].pageY : e.clientY
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
f.swipeMove = function(e, n) {
|
|
578
|
+
var i = n.scrolling, t = n.animating, a = n.vertical, o = n.swipeToSlide, s = n.verticalSwiping, l = n.rtl, u = n.currentSlide, d = n.edgeFriction, c = n.edgeDragged, m = n.onEdge, E = n.swiped, O = n.swiping, g = n.slideCount, b = n.slidesToScroll, y = n.infinite, p = n.touchObject, w = n.swipeEvent, x = n.listHeight, j = n.listWidth;
|
|
579
|
+
if (!i) {
|
|
580
|
+
if (t) return J(e);
|
|
581
|
+
a && o && s && J(e);
|
|
582
|
+
var C, A = {}, W = ve(n);
|
|
583
|
+
p.curX = e.touches ? e.touches[0].pageX : e.clientX, p.curY = e.touches ? e.touches[0].pageY : e.clientY, p.swipeLength = Math.round(Math.sqrt(Math.pow(p.curX - p.startX, 2)));
|
|
584
|
+
var h = Math.round(Math.sqrt(Math.pow(p.curY - p.startY, 2)));
|
|
585
|
+
if (!s && !O && h > 10)
|
|
586
|
+
return {
|
|
587
|
+
scrolling: !0
|
|
588
|
+
};
|
|
589
|
+
s && (p.swipeLength = h);
|
|
590
|
+
var v = (l ? -1 : 1) * (p.curX > p.startX ? 1 : -1);
|
|
591
|
+
s && (v = p.curY > p.startY ? 1 : -1);
|
|
592
|
+
var L = Math.ceil(g / b), P = Bt(n.touchObject, s), k = p.swipeLength;
|
|
593
|
+
return y || (u === 0 && (P === "right" || P === "down") || u + 1 >= L && (P === "left" || P === "up") || !Gt(n) && (P === "left" || P === "up")) && (k = p.swipeLength * d, c === !1 && m && (m(P), A.edgeDragged = !0)), !E && w && (w(P), A.swiped = !0), a ? C = W + k * (x / j) * v : l ? C = W - k * v : C = W + k * v, s && (C = W + k * v), A = I(I({}, A), {}, {
|
|
594
|
+
touchObject: p,
|
|
595
|
+
swipeLeft: C,
|
|
596
|
+
trackStyle: pe(I(I({}, n), {}, {
|
|
597
|
+
left: C
|
|
598
|
+
}))
|
|
599
|
+
}), Math.abs(p.curX - p.startX) < Math.abs(p.curY - p.startY) * 0.8 || p.swipeLength > 10 && (A.swiping = !0, J(e)), A;
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
f.swipeEnd = function(e, n) {
|
|
603
|
+
var i = n.dragging, t = n.swipe, a = n.touchObject, o = n.listWidth, s = n.touchThreshold, l = n.verticalSwiping, u = n.listHeight, d = n.swipeToSlide, c = n.scrolling, m = n.onSwipe, E = n.targetSlide, O = n.currentSlide, g = n.infinite;
|
|
604
|
+
if (!i)
|
|
605
|
+
return t && J(e), {};
|
|
606
|
+
var b = l ? u / s : o / s, y = Bt(a, l), p = {
|
|
607
|
+
dragging: !1,
|
|
608
|
+
edgeDragged: !1,
|
|
609
|
+
scrolling: !1,
|
|
610
|
+
swiping: !1,
|
|
611
|
+
swiped: !1,
|
|
612
|
+
swipeLeft: null,
|
|
613
|
+
touchObject: {}
|
|
614
|
+
};
|
|
615
|
+
if (c || !a.swipeLength)
|
|
616
|
+
return p;
|
|
617
|
+
if (a.swipeLength > b) {
|
|
618
|
+
J(e), m && m(y);
|
|
619
|
+
var w, x, j = g ? O : E;
|
|
620
|
+
switch (y) {
|
|
621
|
+
case "left":
|
|
622
|
+
case "up":
|
|
623
|
+
x = j + dt(n), w = d ? ft(n, x) : x, p.currentDirection = 0;
|
|
624
|
+
break;
|
|
625
|
+
case "right":
|
|
626
|
+
case "down":
|
|
627
|
+
x = j - dt(n), w = d ? ft(n, x) : x, p.currentDirection = 1;
|
|
628
|
+
break;
|
|
629
|
+
default:
|
|
630
|
+
w = j;
|
|
631
|
+
}
|
|
632
|
+
p.triggerSlideHandler = w;
|
|
633
|
+
} else {
|
|
634
|
+
var C = ve(n);
|
|
635
|
+
p.trackStyle = Ut(I(I({}, n), {}, {
|
|
636
|
+
left: C
|
|
637
|
+
}));
|
|
638
|
+
}
|
|
639
|
+
return p;
|
|
640
|
+
};
|
|
641
|
+
var Mn = f.getNavigableIndexes = function(e) {
|
|
642
|
+
for (var n = e.infinite ? e.slideCount * 2 : e.slideCount, i = e.infinite ? e.slidesToShow * -1 : 0, t = e.infinite ? e.slidesToShow * -1 : 0, a = []; i < n; )
|
|
643
|
+
a.push(i), i = t + e.slidesToScroll, t += Math.min(e.slidesToScroll, e.slidesToShow);
|
|
644
|
+
return a;
|
|
645
|
+
}, ft = f.checkNavigable = function(e, n) {
|
|
646
|
+
var i = Mn(e), t = 0;
|
|
647
|
+
if (n > i[i.length - 1])
|
|
648
|
+
n = i[i.length - 1];
|
|
649
|
+
else
|
|
650
|
+
for (var a in i) {
|
|
651
|
+
if (n < i[a]) {
|
|
652
|
+
n = t;
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
t = i[a];
|
|
656
|
+
}
|
|
657
|
+
return n;
|
|
658
|
+
}, dt = f.getSlideCount = function(e) {
|
|
659
|
+
var n = e.centerMode ? e.slideWidth * Math.floor(e.slidesToShow / 2) : 0;
|
|
660
|
+
if (e.swipeToSlide) {
|
|
661
|
+
var i, t = e.listRef, a = t.querySelectorAll && t.querySelectorAll(".slick-slide") || [];
|
|
662
|
+
if (Array.from(a).every(function(l) {
|
|
663
|
+
if (e.vertical) {
|
|
664
|
+
if (l.offsetTop + qt(l) / 2 > e.swipeLeft * -1)
|
|
665
|
+
return i = l, !1;
|
|
666
|
+
} else if (l.offsetLeft - n + Ue(l) / 2 > e.swipeLeft * -1)
|
|
667
|
+
return i = l, !1;
|
|
668
|
+
return !0;
|
|
669
|
+
}), !i)
|
|
670
|
+
return 0;
|
|
671
|
+
var o = e.rtl === !0 ? e.slideCount - e.currentSlide : e.currentSlide, s = Math.abs(i.dataset.index - o) || 1;
|
|
672
|
+
return s;
|
|
673
|
+
} else
|
|
674
|
+
return e.slidesToScroll;
|
|
675
|
+
}, it = f.checkSpecKeys = function(e, n) {
|
|
676
|
+
return n.reduce(function(i, t) {
|
|
677
|
+
return i && e.hasOwnProperty(t);
|
|
678
|
+
}, !0) ? null : console.error("Keys Missing:", e);
|
|
679
|
+
}, pe = f.getTrackCSS = function(e) {
|
|
680
|
+
it(e, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
|
|
681
|
+
var n, i, t = e.slideCount + 2 * e.slidesToShow;
|
|
682
|
+
e.vertical ? i = t * e.slideHeight : n = zn(e) * e.slideWidth;
|
|
683
|
+
var a = {
|
|
684
|
+
opacity: 1,
|
|
685
|
+
transition: "",
|
|
686
|
+
WebkitTransition: ""
|
|
687
|
+
};
|
|
688
|
+
if (e.useTransform) {
|
|
689
|
+
var o = e.vertical ? "translate3d(0px, " + e.left + "px, 0px)" : "translate3d(" + e.left + "px, 0px, 0px)", s = e.vertical ? "translate3d(0px, " + e.left + "px, 0px)" : "translate3d(" + e.left + "px, 0px, 0px)", l = e.vertical ? "translateY(" + e.left + "px)" : "translateX(" + e.left + "px)";
|
|
690
|
+
a = I(I({}, a), {}, {
|
|
691
|
+
WebkitTransform: o,
|
|
692
|
+
transform: s,
|
|
693
|
+
msTransform: l
|
|
694
|
+
});
|
|
695
|
+
} else
|
|
696
|
+
e.vertical ? a.top = e.left : a.left = e.left;
|
|
697
|
+
return e.fade && (a = {
|
|
698
|
+
opacity: 1
|
|
699
|
+
}), n && (a.width = n), i && (a.height = i), window && !window.addEventListener && window.attachEvent && (e.vertical ? a.marginTop = e.left + "px" : a.marginLeft = e.left + "px"), a;
|
|
700
|
+
}, Ut = f.getTrackAnimateCSS = function(e) {
|
|
701
|
+
it(e, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
|
|
702
|
+
var n = pe(e);
|
|
703
|
+
return e.useTransform ? (n.WebkitTransition = "-webkit-transform " + e.speed + "ms " + e.cssEase, n.transition = "transform " + e.speed + "ms " + e.cssEase) : e.vertical ? n.transition = "top " + e.speed + "ms " + e.cssEase : n.transition = "left " + e.speed + "ms " + e.cssEase, n;
|
|
704
|
+
}, ve = f.getTrackLeft = function(e) {
|
|
705
|
+
if (e.unslick)
|
|
706
|
+
return 0;
|
|
707
|
+
it(e, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
|
|
708
|
+
var n = e.slideIndex, i = e.trackRef, t = e.infinite, a = e.centerMode, o = e.slideCount, s = e.slidesToShow, l = e.slidesToScroll, u = e.slideWidth, d = e.listWidth, c = e.variableWidth, m = e.slideHeight, E = e.fade, O = e.vertical, g = 0, b, y, p = 0;
|
|
709
|
+
if (E || e.slideCount === 1)
|
|
710
|
+
return 0;
|
|
711
|
+
var w = 0;
|
|
712
|
+
if (t ? (w = -de(e), o % l !== 0 && n + l > o && (w = -(n > o ? s - (n - o) : o % l)), a && (w += parseInt(s / 2))) : (o % l !== 0 && n + l > o && (w = s - o % l), a && (w = parseInt(s / 2))), g = w * u, p = w * m, O ? b = n * m * -1 + p : b = n * u * -1 + g, c === !0) {
|
|
713
|
+
var x, j = i && i.node;
|
|
714
|
+
if (x = n + de(e), y = j && j.childNodes[x], b = y ? y.offsetLeft * -1 : 0, a === !0) {
|
|
715
|
+
x = t ? n + de(e) : n, y = j && j.children[x], b = 0;
|
|
716
|
+
for (var C = 0; C < x; C++)
|
|
717
|
+
b -= j && j.children[C] && j.children[C].offsetWidth;
|
|
718
|
+
b -= parseInt(e.centerPadding), b += y && (d - y.offsetWidth) / 2;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
return b;
|
|
722
|
+
}, de = f.getPreClones = function(e) {
|
|
723
|
+
return e.unslick || !e.infinite ? 0 : e.variableWidth ? e.slideCount : e.slidesToShow + (e.centerMode ? 1 : 0);
|
|
724
|
+
}, Rn = f.getPostClones = function(e) {
|
|
725
|
+
return e.unslick || !e.infinite ? 0 : e.slideCount;
|
|
726
|
+
}, zn = f.getTotalSlides = function(e) {
|
|
727
|
+
return e.slideCount === 1 ? 1 : de(e) + e.slideCount + Rn(e);
|
|
728
|
+
}, In = f.siblingDirection = function(e) {
|
|
729
|
+
return e.targetSlide > e.currentSlide ? e.targetSlide > e.currentSlide + An(e) ? "left" : "right" : e.targetSlide < e.currentSlide - Dn(e) ? "right" : "left";
|
|
730
|
+
}, An = f.slidesOnRight = function(e) {
|
|
731
|
+
var n = e.slidesToShow, i = e.centerMode, t = e.rtl, a = e.centerPadding;
|
|
732
|
+
if (i) {
|
|
733
|
+
var o = (n - 1) / 2 + 1;
|
|
734
|
+
return parseInt(a) > 0 && (o += 1), t && n % 2 === 0 && (o += 1), o;
|
|
735
|
+
}
|
|
736
|
+
return t ? 0 : n - 1;
|
|
737
|
+
}, Dn = f.slidesOnLeft = function(e) {
|
|
738
|
+
var n = e.slidesToShow, i = e.centerMode, t = e.rtl, a = e.centerPadding;
|
|
739
|
+
if (i) {
|
|
740
|
+
var o = (n - 1) / 2 + 1;
|
|
741
|
+
return parseInt(a) > 0 && (o += 1), !t && n % 2 === 0 && (o += 1), o;
|
|
742
|
+
}
|
|
743
|
+
return t ? n - 1 : 0;
|
|
744
|
+
};
|
|
745
|
+
f.canUseDOM = function() {
|
|
746
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
747
|
+
};
|
|
748
|
+
var $n = f.validSettings = Object.keys(Tn.default);
|
|
749
|
+
function Hn(r) {
|
|
750
|
+
return $n.reduce(function(e, n) {
|
|
751
|
+
return r.hasOwnProperty(n) && (e[n] = r[n]), e;
|
|
752
|
+
}, {});
|
|
753
|
+
}
|
|
754
|
+
var Ee = {};
|
|
755
|
+
Object.defineProperty(Ee, "__esModule", {
|
|
756
|
+
value: !0
|
|
757
|
+
});
|
|
758
|
+
Ee.Track = void 0;
|
|
759
|
+
var G = Qt(X), Re = Qt(Te), ze = f;
|
|
760
|
+
function Qt(r) {
|
|
761
|
+
return r && r.__esModule ? r : { default: r };
|
|
762
|
+
}
|
|
763
|
+
function te(r) {
|
|
764
|
+
"@babel/helpers - typeof";
|
|
765
|
+
return te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
766
|
+
return typeof e;
|
|
767
|
+
} : function(e) {
|
|
768
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
769
|
+
}, te(r);
|
|
770
|
+
}
|
|
771
|
+
function Qe() {
|
|
772
|
+
return Qe = Object.assign ? Object.assign.bind() : function(r) {
|
|
773
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
774
|
+
var n = arguments[e];
|
|
775
|
+
for (var i in n)
|
|
776
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
777
|
+
}
|
|
778
|
+
return r;
|
|
779
|
+
}, Qe.apply(this, arguments);
|
|
780
|
+
}
|
|
781
|
+
function Nn(r, e) {
|
|
782
|
+
if (!(r instanceof e))
|
|
783
|
+
throw new TypeError("Cannot call a class as a function");
|
|
784
|
+
}
|
|
785
|
+
function Wn(r, e) {
|
|
786
|
+
for (var n = 0; n < e.length; n++) {
|
|
787
|
+
var i = e[n];
|
|
788
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(r, Xt(i.key), i);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
function Fn(r, e, n) {
|
|
792
|
+
return e && Wn(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
793
|
+
}
|
|
794
|
+
function qn(r, e) {
|
|
795
|
+
if (typeof e != "function" && e !== null)
|
|
796
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
797
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && Ye(r, e);
|
|
798
|
+
}
|
|
799
|
+
function Ye(r, e) {
|
|
800
|
+
return Ye = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, t) {
|
|
801
|
+
return i.__proto__ = t, i;
|
|
802
|
+
}, Ye(r, e);
|
|
803
|
+
}
|
|
804
|
+
function Bn(r) {
|
|
805
|
+
var e = Yt();
|
|
806
|
+
return function() {
|
|
807
|
+
var i = he(r), t;
|
|
808
|
+
if (e) {
|
|
809
|
+
var a = he(this).constructor;
|
|
810
|
+
t = Reflect.construct(i, arguments, a);
|
|
811
|
+
} else
|
|
812
|
+
t = i.apply(this, arguments);
|
|
813
|
+
return Gn(this, t);
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
function Gn(r, e) {
|
|
817
|
+
if (e && (te(e) === "object" || typeof e == "function"))
|
|
818
|
+
return e;
|
|
819
|
+
if (e !== void 0)
|
|
820
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
821
|
+
return Xe(r);
|
|
822
|
+
}
|
|
823
|
+
function Xe(r) {
|
|
824
|
+
if (r === void 0)
|
|
825
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
826
|
+
return r;
|
|
827
|
+
}
|
|
828
|
+
function Yt() {
|
|
829
|
+
try {
|
|
830
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
831
|
+
}));
|
|
832
|
+
} catch {
|
|
833
|
+
}
|
|
834
|
+
return (Yt = function() {
|
|
835
|
+
return !!r;
|
|
836
|
+
})();
|
|
837
|
+
}
|
|
838
|
+
function he(r) {
|
|
839
|
+
return he = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
840
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
841
|
+
}, he(r);
|
|
842
|
+
}
|
|
843
|
+
function pt(r, e) {
|
|
844
|
+
var n = Object.keys(r);
|
|
845
|
+
if (Object.getOwnPropertySymbols) {
|
|
846
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
847
|
+
e && (i = i.filter(function(t) {
|
|
848
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
849
|
+
})), n.push.apply(n, i);
|
|
850
|
+
}
|
|
851
|
+
return n;
|
|
852
|
+
}
|
|
853
|
+
function N(r) {
|
|
854
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
855
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
856
|
+
e % 2 ? pt(Object(n), !0).forEach(function(i) {
|
|
857
|
+
Ke(r, i, n[i]);
|
|
858
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : pt(Object(n)).forEach(function(i) {
|
|
859
|
+
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(n, i));
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
return r;
|
|
863
|
+
}
|
|
864
|
+
function Ke(r, e, n) {
|
|
865
|
+
return e = Xt(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
866
|
+
}
|
|
867
|
+
function Xt(r) {
|
|
868
|
+
var e = Un(r, "string");
|
|
869
|
+
return te(e) == "symbol" ? e : String(e);
|
|
870
|
+
}
|
|
871
|
+
function Un(r, e) {
|
|
872
|
+
if (te(r) != "object" || !r) return r;
|
|
873
|
+
var n = r[Symbol.toPrimitive];
|
|
874
|
+
if (n !== void 0) {
|
|
875
|
+
var i = n.call(r, e || "default");
|
|
876
|
+
if (te(i) != "object") return i;
|
|
877
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
878
|
+
}
|
|
879
|
+
return (e === "string" ? String : Number)(r);
|
|
880
|
+
}
|
|
881
|
+
var Ie = function(e) {
|
|
882
|
+
var n, i, t, a, o;
|
|
883
|
+
e.rtl ? o = e.slideCount - 1 - e.index : o = e.index, t = o < 0 || o >= e.slideCount, e.centerMode ? (a = Math.floor(e.slidesToShow / 2), i = (o - e.currentSlide) % e.slideCount === 0, o > e.currentSlide - a - 1 && o <= e.currentSlide + a && (n = !0)) : n = e.currentSlide <= o && o < e.currentSlide + e.slidesToShow;
|
|
884
|
+
var s;
|
|
885
|
+
e.targetSlide < 0 ? s = e.targetSlide + e.slideCount : e.targetSlide >= e.slideCount ? s = e.targetSlide - e.slideCount : s = e.targetSlide;
|
|
886
|
+
var l = o === s;
|
|
887
|
+
return {
|
|
888
|
+
"slick-slide": !0,
|
|
889
|
+
"slick-active": n,
|
|
890
|
+
"slick-center": i,
|
|
891
|
+
"slick-cloned": t,
|
|
892
|
+
"slick-current": l
|
|
893
|
+
// dubious in case of RTL
|
|
894
|
+
};
|
|
895
|
+
}, Qn = function(e) {
|
|
896
|
+
var n = {};
|
|
897
|
+
return (e.variableWidth === void 0 || e.variableWidth === !1) && (n.width = e.slideWidth), e.fade && (n.position = "relative", e.vertical ? n.top = -e.index * parseInt(e.slideHeight) : n.left = -e.index * parseInt(e.slideWidth), n.opacity = e.currentSlide === e.index ? 1 : 0, n.zIndex = e.currentSlide === e.index ? 999 : 998, e.useCSS && (n.transition = "opacity " + e.speed + "ms " + e.cssEase + ", visibility " + e.speed + "ms " + e.cssEase)), n;
|
|
898
|
+
}, Ae = function(e, n) {
|
|
899
|
+
return e.key || n;
|
|
900
|
+
}, Yn = function(e) {
|
|
901
|
+
var n, i = [], t = [], a = [], o = G.default.Children.count(e.children), s = (0, ze.lazyStartIndex)(e), l = (0, ze.lazyEndIndex)(e);
|
|
902
|
+
return G.default.Children.forEach(e.children, function(u, d) {
|
|
903
|
+
var c, m = {
|
|
904
|
+
message: "children",
|
|
905
|
+
index: d,
|
|
906
|
+
slidesToScroll: e.slidesToScroll,
|
|
907
|
+
currentSlide: e.currentSlide
|
|
908
|
+
};
|
|
909
|
+
!e.lazyLoad || e.lazyLoad && e.lazyLoadedList.indexOf(d) >= 0 ? c = u : c = /* @__PURE__ */ G.default.createElement("div", null);
|
|
910
|
+
var E = Qn(N(N({}, e), {}, {
|
|
911
|
+
index: d
|
|
912
|
+
})), O = c.props.className || "", g = Ie(N(N({}, e), {}, {
|
|
913
|
+
index: d
|
|
914
|
+
}));
|
|
915
|
+
if (i.push(/* @__PURE__ */ G.default.cloneElement(c, {
|
|
916
|
+
key: "original" + Ae(c, d),
|
|
917
|
+
"data-index": d,
|
|
918
|
+
className: (0, Re.default)(g, O),
|
|
919
|
+
tabIndex: "-1",
|
|
920
|
+
"aria-hidden": !g["slick-active"],
|
|
921
|
+
style: N(N({
|
|
922
|
+
outline: "none"
|
|
923
|
+
}, c.props.style || {}), E),
|
|
924
|
+
onClick: function(p) {
|
|
925
|
+
c.props && c.props.onClick && c.props.onClick(p), e.focusOnSelect && e.focusOnSelect(m);
|
|
926
|
+
}
|
|
927
|
+
})), e.infinite && e.fade === !1) {
|
|
928
|
+
var b = o - d;
|
|
929
|
+
b <= (0, ze.getPreClones)(e) && (n = -b, n >= s && (c = u), g = Ie(N(N({}, e), {}, {
|
|
930
|
+
index: n
|
|
931
|
+
})), t.push(/* @__PURE__ */ G.default.cloneElement(c, {
|
|
932
|
+
key: "precloned" + Ae(c, n),
|
|
933
|
+
"data-index": n,
|
|
934
|
+
tabIndex: "-1",
|
|
935
|
+
className: (0, Re.default)(g, O),
|
|
936
|
+
"aria-hidden": !g["slick-active"],
|
|
937
|
+
style: N(N({}, c.props.style || {}), E),
|
|
938
|
+
onClick: function(p) {
|
|
939
|
+
c.props && c.props.onClick && c.props.onClick(p), e.focusOnSelect && e.focusOnSelect(m);
|
|
940
|
+
}
|
|
941
|
+
}))), n = o + d, n < l && (c = u), g = Ie(N(N({}, e), {}, {
|
|
942
|
+
index: n
|
|
943
|
+
})), a.push(/* @__PURE__ */ G.default.cloneElement(c, {
|
|
944
|
+
key: "postcloned" + Ae(c, n),
|
|
945
|
+
"data-index": n,
|
|
946
|
+
tabIndex: "-1",
|
|
947
|
+
className: (0, Re.default)(g, O),
|
|
948
|
+
"aria-hidden": !g["slick-active"],
|
|
949
|
+
style: N(N({}, c.props.style || {}), E),
|
|
950
|
+
onClick: function(p) {
|
|
951
|
+
c.props && c.props.onClick && c.props.onClick(p), e.focusOnSelect && e.focusOnSelect(m);
|
|
952
|
+
}
|
|
953
|
+
}));
|
|
954
|
+
}
|
|
955
|
+
}), e.rtl ? t.concat(i, a).reverse() : t.concat(i, a);
|
|
956
|
+
};
|
|
957
|
+
Ee.Track = /* @__PURE__ */ function(r) {
|
|
958
|
+
qn(n, r);
|
|
959
|
+
var e = Bn(n);
|
|
960
|
+
function n() {
|
|
961
|
+
var i;
|
|
962
|
+
Nn(this, n);
|
|
963
|
+
for (var t = arguments.length, a = new Array(t), o = 0; o < t; o++)
|
|
964
|
+
a[o] = arguments[o];
|
|
965
|
+
return i = e.call.apply(e, [this].concat(a)), Ke(Xe(i), "node", null), Ke(Xe(i), "handleRef", function(s) {
|
|
966
|
+
i.node = s;
|
|
967
|
+
}), i;
|
|
968
|
+
}
|
|
969
|
+
return Fn(n, [{
|
|
970
|
+
key: "render",
|
|
971
|
+
value: function() {
|
|
972
|
+
var t = Yn(this.props), a = this.props, o = a.onMouseEnter, s = a.onMouseOver, l = a.onMouseLeave, u = {
|
|
973
|
+
onMouseEnter: o,
|
|
974
|
+
onMouseOver: s,
|
|
975
|
+
onMouseLeave: l
|
|
976
|
+
};
|
|
977
|
+
return /* @__PURE__ */ G.default.createElement("div", Qe({
|
|
978
|
+
ref: this.handleRef,
|
|
979
|
+
className: "slick-track",
|
|
980
|
+
style: this.props.trackStyle
|
|
981
|
+
}, u), t);
|
|
982
|
+
}
|
|
983
|
+
}]), n;
|
|
984
|
+
}(G.default.PureComponent);
|
|
985
|
+
var Ce = {};
|
|
986
|
+
function re(r) {
|
|
987
|
+
"@babel/helpers - typeof";
|
|
988
|
+
return re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
989
|
+
return typeof e;
|
|
990
|
+
} : function(e) {
|
|
991
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
992
|
+
}, re(r);
|
|
993
|
+
}
|
|
994
|
+
Object.defineProperty(Ce, "__esModule", {
|
|
995
|
+
value: !0
|
|
996
|
+
});
|
|
997
|
+
Ce.Dots = void 0;
|
|
998
|
+
var ce = Kt(X), Xn = Kt(Te), vt = f;
|
|
999
|
+
function Kt(r) {
|
|
1000
|
+
return r && r.__esModule ? r : { default: r };
|
|
1001
|
+
}
|
|
1002
|
+
function ht(r, e) {
|
|
1003
|
+
var n = Object.keys(r);
|
|
1004
|
+
if (Object.getOwnPropertySymbols) {
|
|
1005
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
1006
|
+
e && (i = i.filter(function(t) {
|
|
1007
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
1008
|
+
})), n.push.apply(n, i);
|
|
1009
|
+
}
|
|
1010
|
+
return n;
|
|
1011
|
+
}
|
|
1012
|
+
function Kn(r) {
|
|
1013
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1014
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
1015
|
+
e % 2 ? ht(Object(n), !0).forEach(function(i) {
|
|
1016
|
+
Vn(r, i, n[i]);
|
|
1017
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : ht(Object(n)).forEach(function(i) {
|
|
1018
|
+
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
return r;
|
|
1022
|
+
}
|
|
1023
|
+
function Vn(r, e, n) {
|
|
1024
|
+
return e = Vt(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
1025
|
+
}
|
|
1026
|
+
function Jn(r, e) {
|
|
1027
|
+
if (!(r instanceof e))
|
|
1028
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1029
|
+
}
|
|
1030
|
+
function Zn(r, e) {
|
|
1031
|
+
for (var n = 0; n < e.length; n++) {
|
|
1032
|
+
var i = e[n];
|
|
1033
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(r, Vt(i.key), i);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
function ei(r, e, n) {
|
|
1037
|
+
return e && Zn(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
1038
|
+
}
|
|
1039
|
+
function Vt(r) {
|
|
1040
|
+
var e = ti(r, "string");
|
|
1041
|
+
return re(e) == "symbol" ? e : String(e);
|
|
1042
|
+
}
|
|
1043
|
+
function ti(r, e) {
|
|
1044
|
+
if (re(r) != "object" || !r) return r;
|
|
1045
|
+
var n = r[Symbol.toPrimitive];
|
|
1046
|
+
if (n !== void 0) {
|
|
1047
|
+
var i = n.call(r, e || "default");
|
|
1048
|
+
if (re(i) != "object") return i;
|
|
1049
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1050
|
+
}
|
|
1051
|
+
return (e === "string" ? String : Number)(r);
|
|
1052
|
+
}
|
|
1053
|
+
function ri(r, e) {
|
|
1054
|
+
if (typeof e != "function" && e !== null)
|
|
1055
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1056
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && Ve(r, e);
|
|
1057
|
+
}
|
|
1058
|
+
function Ve(r, e) {
|
|
1059
|
+
return Ve = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, t) {
|
|
1060
|
+
return i.__proto__ = t, i;
|
|
1061
|
+
}, Ve(r, e);
|
|
1062
|
+
}
|
|
1063
|
+
function ni(r) {
|
|
1064
|
+
var e = Jt();
|
|
1065
|
+
return function() {
|
|
1066
|
+
var i = ye(r), t;
|
|
1067
|
+
if (e) {
|
|
1068
|
+
var a = ye(this).constructor;
|
|
1069
|
+
t = Reflect.construct(i, arguments, a);
|
|
1070
|
+
} else
|
|
1071
|
+
t = i.apply(this, arguments);
|
|
1072
|
+
return ii(this, t);
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
function ii(r, e) {
|
|
1076
|
+
if (e && (re(e) === "object" || typeof e == "function"))
|
|
1077
|
+
return e;
|
|
1078
|
+
if (e !== void 0)
|
|
1079
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1080
|
+
return oi(r);
|
|
1081
|
+
}
|
|
1082
|
+
function oi(r) {
|
|
1083
|
+
if (r === void 0)
|
|
1084
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1085
|
+
return r;
|
|
1086
|
+
}
|
|
1087
|
+
function Jt() {
|
|
1088
|
+
try {
|
|
1089
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1090
|
+
}));
|
|
1091
|
+
} catch {
|
|
1092
|
+
}
|
|
1093
|
+
return (Jt = function() {
|
|
1094
|
+
return !!r;
|
|
1095
|
+
})();
|
|
1096
|
+
}
|
|
1097
|
+
function ye(r) {
|
|
1098
|
+
return ye = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
1099
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1100
|
+
}, ye(r);
|
|
1101
|
+
}
|
|
1102
|
+
var ai = function(e) {
|
|
1103
|
+
var n;
|
|
1104
|
+
return e.infinite ? n = Math.ceil(e.slideCount / e.slidesToScroll) : n = Math.ceil((e.slideCount - e.slidesToShow) / e.slidesToScroll) + 1, n;
|
|
1105
|
+
};
|
|
1106
|
+
Ce.Dots = /* @__PURE__ */ function(r) {
|
|
1107
|
+
ri(n, r);
|
|
1108
|
+
var e = ni(n);
|
|
1109
|
+
function n() {
|
|
1110
|
+
return Jn(this, n), e.apply(this, arguments);
|
|
1111
|
+
}
|
|
1112
|
+
return ei(n, [{
|
|
1113
|
+
key: "clickHandler",
|
|
1114
|
+
value: function(t, a) {
|
|
1115
|
+
a.preventDefault(), this.props.clickHandler(t);
|
|
1116
|
+
}
|
|
1117
|
+
}, {
|
|
1118
|
+
key: "render",
|
|
1119
|
+
value: function() {
|
|
1120
|
+
for (var t = this.props, a = t.onMouseEnter, o = t.onMouseOver, s = t.onMouseLeave, l = t.infinite, u = t.slidesToScroll, d = t.slidesToShow, c = t.slideCount, m = t.currentSlide, E = ai({
|
|
1121
|
+
slideCount: c,
|
|
1122
|
+
slidesToScroll: u,
|
|
1123
|
+
slidesToShow: d,
|
|
1124
|
+
infinite: l
|
|
1125
|
+
}), O = {
|
|
1126
|
+
onMouseEnter: a,
|
|
1127
|
+
onMouseOver: o,
|
|
1128
|
+
onMouseLeave: s
|
|
1129
|
+
}, g = [], b = 0; b < E; b++) {
|
|
1130
|
+
var y = (b + 1) * u - 1, p = l ? y : (0, vt.clamp)(y, 0, c - 1), w = p - (u - 1), x = l ? w : (0, vt.clamp)(w, 0, c - 1), j = (0, Xn.default)({
|
|
1131
|
+
"slick-active": l ? m >= x && m <= p : m === x
|
|
1132
|
+
}), C = {
|
|
1133
|
+
message: "dots",
|
|
1134
|
+
index: b,
|
|
1135
|
+
slidesToScroll: u,
|
|
1136
|
+
currentSlide: m
|
|
1137
|
+
}, A = this.clickHandler.bind(this, C);
|
|
1138
|
+
g = g.concat(/* @__PURE__ */ ce.default.createElement("li", {
|
|
1139
|
+
key: b,
|
|
1140
|
+
className: j
|
|
1141
|
+
}, /* @__PURE__ */ ce.default.cloneElement(this.props.customPaging(b), {
|
|
1142
|
+
onClick: A
|
|
1143
|
+
})));
|
|
1144
|
+
}
|
|
1145
|
+
return /* @__PURE__ */ ce.default.cloneElement(this.props.appendDots(g), Kn({
|
|
1146
|
+
className: this.props.dotsClass
|
|
1147
|
+
}, O));
|
|
1148
|
+
}
|
|
1149
|
+
}]), n;
|
|
1150
|
+
}(ce.default.PureComponent);
|
|
1151
|
+
var ne = {};
|
|
1152
|
+
function ie(r) {
|
|
1153
|
+
"@babel/helpers - typeof";
|
|
1154
|
+
return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1155
|
+
return typeof e;
|
|
1156
|
+
} : function(e) {
|
|
1157
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1158
|
+
}, ie(r);
|
|
1159
|
+
}
|
|
1160
|
+
Object.defineProperty(ne, "__esModule", {
|
|
1161
|
+
value: !0
|
|
1162
|
+
});
|
|
1163
|
+
ne.PrevArrow = ne.NextArrow = void 0;
|
|
1164
|
+
var Z = er(X), Zt = er(Te), si = f;
|
|
1165
|
+
function er(r) {
|
|
1166
|
+
return r && r.__esModule ? r : { default: r };
|
|
1167
|
+
}
|
|
1168
|
+
function ge() {
|
|
1169
|
+
return ge = Object.assign ? Object.assign.bind() : function(r) {
|
|
1170
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1171
|
+
var n = arguments[e];
|
|
1172
|
+
for (var i in n)
|
|
1173
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1174
|
+
}
|
|
1175
|
+
return r;
|
|
1176
|
+
}, ge.apply(this, arguments);
|
|
1177
|
+
}
|
|
1178
|
+
function yt(r, e) {
|
|
1179
|
+
var n = Object.keys(r);
|
|
1180
|
+
if (Object.getOwnPropertySymbols) {
|
|
1181
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
1182
|
+
e && (i = i.filter(function(t) {
|
|
1183
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
1184
|
+
})), n.push.apply(n, i);
|
|
1185
|
+
}
|
|
1186
|
+
return n;
|
|
1187
|
+
}
|
|
1188
|
+
function me(r) {
|
|
1189
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1190
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
1191
|
+
e % 2 ? yt(Object(n), !0).forEach(function(i) {
|
|
1192
|
+
li(r, i, n[i]);
|
|
1193
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : yt(Object(n)).forEach(function(i) {
|
|
1194
|
+
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
return r;
|
|
1198
|
+
}
|
|
1199
|
+
function li(r, e, n) {
|
|
1200
|
+
return e = nr(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
1201
|
+
}
|
|
1202
|
+
function tr(r, e) {
|
|
1203
|
+
if (!(r instanceof e))
|
|
1204
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1205
|
+
}
|
|
1206
|
+
function ui(r, e) {
|
|
1207
|
+
for (var n = 0; n < e.length; n++) {
|
|
1208
|
+
var i = e[n];
|
|
1209
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(r, nr(i.key), i);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
function rr(r, e, n) {
|
|
1213
|
+
return e && ui(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
1214
|
+
}
|
|
1215
|
+
function nr(r) {
|
|
1216
|
+
var e = ci(r, "string");
|
|
1217
|
+
return ie(e) == "symbol" ? e : String(e);
|
|
1218
|
+
}
|
|
1219
|
+
function ci(r, e) {
|
|
1220
|
+
if (ie(r) != "object" || !r) return r;
|
|
1221
|
+
var n = r[Symbol.toPrimitive];
|
|
1222
|
+
if (n !== void 0) {
|
|
1223
|
+
var i = n.call(r, e || "default");
|
|
1224
|
+
if (ie(i) != "object") return i;
|
|
1225
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1226
|
+
}
|
|
1227
|
+
return (e === "string" ? String : Number)(r);
|
|
1228
|
+
}
|
|
1229
|
+
function ir(r, e) {
|
|
1230
|
+
if (typeof e != "function" && e !== null)
|
|
1231
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1232
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && Je(r, e);
|
|
1233
|
+
}
|
|
1234
|
+
function Je(r, e) {
|
|
1235
|
+
return Je = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, t) {
|
|
1236
|
+
return i.__proto__ = t, i;
|
|
1237
|
+
}, Je(r, e);
|
|
1238
|
+
}
|
|
1239
|
+
function or(r) {
|
|
1240
|
+
var e = ar();
|
|
1241
|
+
return function() {
|
|
1242
|
+
var i = be(r), t;
|
|
1243
|
+
if (e) {
|
|
1244
|
+
var a = be(this).constructor;
|
|
1245
|
+
t = Reflect.construct(i, arguments, a);
|
|
1246
|
+
} else
|
|
1247
|
+
t = i.apply(this, arguments);
|
|
1248
|
+
return fi(this, t);
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
function fi(r, e) {
|
|
1252
|
+
if (e && (ie(e) === "object" || typeof e == "function"))
|
|
1253
|
+
return e;
|
|
1254
|
+
if (e !== void 0)
|
|
1255
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1256
|
+
return di(r);
|
|
1257
|
+
}
|
|
1258
|
+
function di(r) {
|
|
1259
|
+
if (r === void 0)
|
|
1260
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1261
|
+
return r;
|
|
1262
|
+
}
|
|
1263
|
+
function ar() {
|
|
1264
|
+
try {
|
|
1265
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1266
|
+
}));
|
|
1267
|
+
} catch {
|
|
1268
|
+
}
|
|
1269
|
+
return (ar = function() {
|
|
1270
|
+
return !!r;
|
|
1271
|
+
})();
|
|
1272
|
+
}
|
|
1273
|
+
function be(r) {
|
|
1274
|
+
return be = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
1275
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1276
|
+
}, be(r);
|
|
1277
|
+
}
|
|
1278
|
+
ne.PrevArrow = /* @__PURE__ */ function(r) {
|
|
1279
|
+
ir(n, r);
|
|
1280
|
+
var e = or(n);
|
|
1281
|
+
function n() {
|
|
1282
|
+
return tr(this, n), e.apply(this, arguments);
|
|
1283
|
+
}
|
|
1284
|
+
return rr(n, [{
|
|
1285
|
+
key: "clickHandler",
|
|
1286
|
+
value: function(t, a) {
|
|
1287
|
+
a && a.preventDefault(), this.props.clickHandler(t, a);
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
key: "render",
|
|
1291
|
+
value: function() {
|
|
1292
|
+
var t = {
|
|
1293
|
+
"slick-arrow": !0,
|
|
1294
|
+
"slick-prev": !0
|
|
1295
|
+
}, a = this.clickHandler.bind(this, {
|
|
1296
|
+
message: "previous"
|
|
1297
|
+
});
|
|
1298
|
+
!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow) && (t["slick-disabled"] = !0, a = null);
|
|
1299
|
+
var o = {
|
|
1300
|
+
key: "0",
|
|
1301
|
+
"data-role": "none",
|
|
1302
|
+
className: (0, Zt.default)(t),
|
|
1303
|
+
style: {
|
|
1304
|
+
display: "block"
|
|
1305
|
+
},
|
|
1306
|
+
onClick: a
|
|
1307
|
+
}, s = {
|
|
1308
|
+
currentSlide: this.props.currentSlide,
|
|
1309
|
+
slideCount: this.props.slideCount
|
|
1310
|
+
}, l;
|
|
1311
|
+
return this.props.prevArrow ? l = /* @__PURE__ */ Z.default.cloneElement(this.props.prevArrow, me(me({}, o), s)) : l = /* @__PURE__ */ Z.default.createElement("button", ge({
|
|
1312
|
+
key: "0",
|
|
1313
|
+
type: "button"
|
|
1314
|
+
}, o), " ", "Previous"), l;
|
|
1315
|
+
}
|
|
1316
|
+
}]), n;
|
|
1317
|
+
}(Z.default.PureComponent);
|
|
1318
|
+
ne.NextArrow = /* @__PURE__ */ function(r) {
|
|
1319
|
+
ir(n, r);
|
|
1320
|
+
var e = or(n);
|
|
1321
|
+
function n() {
|
|
1322
|
+
return tr(this, n), e.apply(this, arguments);
|
|
1323
|
+
}
|
|
1324
|
+
return rr(n, [{
|
|
1325
|
+
key: "clickHandler",
|
|
1326
|
+
value: function(t, a) {
|
|
1327
|
+
a && a.preventDefault(), this.props.clickHandler(t, a);
|
|
1328
|
+
}
|
|
1329
|
+
}, {
|
|
1330
|
+
key: "render",
|
|
1331
|
+
value: function() {
|
|
1332
|
+
var t = {
|
|
1333
|
+
"slick-arrow": !0,
|
|
1334
|
+
"slick-next": !0
|
|
1335
|
+
}, a = this.clickHandler.bind(this, {
|
|
1336
|
+
message: "next"
|
|
1337
|
+
});
|
|
1338
|
+
(0, si.canGoNext)(this.props) || (t["slick-disabled"] = !0, a = null);
|
|
1339
|
+
var o = {
|
|
1340
|
+
key: "1",
|
|
1341
|
+
"data-role": "none",
|
|
1342
|
+
className: (0, Zt.default)(t),
|
|
1343
|
+
style: {
|
|
1344
|
+
display: "block"
|
|
1345
|
+
},
|
|
1346
|
+
onClick: a
|
|
1347
|
+
}, s = {
|
|
1348
|
+
currentSlide: this.props.currentSlide,
|
|
1349
|
+
slideCount: this.props.slideCount
|
|
1350
|
+
}, l;
|
|
1351
|
+
return this.props.nextArrow ? l = /* @__PURE__ */ Z.default.cloneElement(this.props.nextArrow, me(me({}, o), s)) : l = /* @__PURE__ */ Z.default.createElement("button", ge({
|
|
1352
|
+
key: "1",
|
|
1353
|
+
type: "button"
|
|
1354
|
+
}, o), " ", "Next"), l;
|
|
1355
|
+
}
|
|
1356
|
+
}]), n;
|
|
1357
|
+
}(Z.default.PureComponent);
|
|
1358
|
+
var sr = function() {
|
|
1359
|
+
if (typeof Map < "u")
|
|
1360
|
+
return Map;
|
|
1361
|
+
function r(e, n) {
|
|
1362
|
+
var i = -1;
|
|
1363
|
+
return e.some(function(t, a) {
|
|
1364
|
+
return t[0] === n ? (i = a, !0) : !1;
|
|
1365
|
+
}), i;
|
|
1366
|
+
}
|
|
1367
|
+
return (
|
|
1368
|
+
/** @class */
|
|
1369
|
+
function() {
|
|
1370
|
+
function e() {
|
|
1371
|
+
this.__entries__ = [];
|
|
1372
|
+
}
|
|
1373
|
+
return Object.defineProperty(e.prototype, "size", {
|
|
1374
|
+
/**
|
|
1375
|
+
* @returns {boolean}
|
|
1376
|
+
*/
|
|
1377
|
+
get: function() {
|
|
1378
|
+
return this.__entries__.length;
|
|
1379
|
+
},
|
|
1380
|
+
enumerable: !0,
|
|
1381
|
+
configurable: !0
|
|
1382
|
+
}), e.prototype.get = function(n) {
|
|
1383
|
+
var i = r(this.__entries__, n), t = this.__entries__[i];
|
|
1384
|
+
return t && t[1];
|
|
1385
|
+
}, e.prototype.set = function(n, i) {
|
|
1386
|
+
var t = r(this.__entries__, n);
|
|
1387
|
+
~t ? this.__entries__[t][1] = i : this.__entries__.push([n, i]);
|
|
1388
|
+
}, e.prototype.delete = function(n) {
|
|
1389
|
+
var i = this.__entries__, t = r(i, n);
|
|
1390
|
+
~t && i.splice(t, 1);
|
|
1391
|
+
}, e.prototype.has = function(n) {
|
|
1392
|
+
return !!~r(this.__entries__, n);
|
|
1393
|
+
}, e.prototype.clear = function() {
|
|
1394
|
+
this.__entries__.splice(0);
|
|
1395
|
+
}, e.prototype.forEach = function(n, i) {
|
|
1396
|
+
i === void 0 && (i = null);
|
|
1397
|
+
for (var t = 0, a = this.__entries__; t < a.length; t++) {
|
|
1398
|
+
var o = a[t];
|
|
1399
|
+
n.call(i, o[1], o[0]);
|
|
1400
|
+
}
|
|
1401
|
+
}, e;
|
|
1402
|
+
}()
|
|
1403
|
+
);
|
|
1404
|
+
}(), Ze = typeof window < "u" && typeof document < "u" && window.document === document, Se = function() {
|
|
1405
|
+
return typeof Le < "u" && Le.Math === Math ? Le : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1406
|
+
}(), pi = function() {
|
|
1407
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Se) : function(r) {
|
|
1408
|
+
return setTimeout(function() {
|
|
1409
|
+
return r(Date.now());
|
|
1410
|
+
}, 1e3 / 60);
|
|
1411
|
+
};
|
|
1412
|
+
}(), vi = 2;
|
|
1413
|
+
function hi(r, e) {
|
|
1414
|
+
var n = !1, i = !1, t = 0;
|
|
1415
|
+
function a() {
|
|
1416
|
+
n && (n = !1, r()), i && s();
|
|
1417
|
+
}
|
|
1418
|
+
function o() {
|
|
1419
|
+
pi(a);
|
|
1420
|
+
}
|
|
1421
|
+
function s() {
|
|
1422
|
+
var l = Date.now();
|
|
1423
|
+
if (n) {
|
|
1424
|
+
if (l - t < vi)
|
|
1425
|
+
return;
|
|
1426
|
+
i = !0;
|
|
1427
|
+
} else
|
|
1428
|
+
n = !0, i = !1, setTimeout(o, e);
|
|
1429
|
+
t = l;
|
|
1430
|
+
}
|
|
1431
|
+
return s;
|
|
1432
|
+
}
|
|
1433
|
+
var yi = 20, gi = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], mi = typeof MutationObserver < "u", bi = (
|
|
1434
|
+
/** @class */
|
|
1435
|
+
function() {
|
|
1436
|
+
function r() {
|
|
1437
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = hi(this.refresh.bind(this), yi);
|
|
1438
|
+
}
|
|
1439
|
+
return r.prototype.addObserver = function(e) {
|
|
1440
|
+
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
1441
|
+
}, r.prototype.removeObserver = function(e) {
|
|
1442
|
+
var n = this.observers_, i = n.indexOf(e);
|
|
1443
|
+
~i && n.splice(i, 1), !n.length && this.connected_ && this.disconnect_();
|
|
1444
|
+
}, r.prototype.refresh = function() {
|
|
1445
|
+
var e = this.updateObservers_();
|
|
1446
|
+
e && this.refresh();
|
|
1447
|
+
}, r.prototype.updateObservers_ = function() {
|
|
1448
|
+
var e = this.observers_.filter(function(n) {
|
|
1449
|
+
return n.gatherActive(), n.hasActive();
|
|
1450
|
+
});
|
|
1451
|
+
return e.forEach(function(n) {
|
|
1452
|
+
return n.broadcastActive();
|
|
1453
|
+
}), e.length > 0;
|
|
1454
|
+
}, r.prototype.connect_ = function() {
|
|
1455
|
+
!Ze || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), mi ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1456
|
+
attributes: !0,
|
|
1457
|
+
childList: !0,
|
|
1458
|
+
characterData: !0,
|
|
1459
|
+
subtree: !0
|
|
1460
|
+
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1461
|
+
}, r.prototype.disconnect_ = function() {
|
|
1462
|
+
!Ze || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1463
|
+
}, r.prototype.onTransitionEnd_ = function(e) {
|
|
1464
|
+
var n = e.propertyName, i = n === void 0 ? "" : n, t = gi.some(function(a) {
|
|
1465
|
+
return !!~i.indexOf(a);
|
|
1466
|
+
});
|
|
1467
|
+
t && this.refresh();
|
|
1468
|
+
}, r.getInstance = function() {
|
|
1469
|
+
return this.instance_ || (this.instance_ = new r()), this.instance_;
|
|
1470
|
+
}, r.instance_ = null, r;
|
|
1471
|
+
}()
|
|
1472
|
+
), lr = function(r, e) {
|
|
1473
|
+
for (var n = 0, i = Object.keys(e); n < i.length; n++) {
|
|
1474
|
+
var t = i[n];
|
|
1475
|
+
Object.defineProperty(r, t, {
|
|
1476
|
+
value: e[t],
|
|
1477
|
+
enumerable: !1,
|
|
1478
|
+
writable: !1,
|
|
1479
|
+
configurable: !0
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1482
|
+
return r;
|
|
1483
|
+
}, oe = function(r) {
|
|
1484
|
+
var e = r && r.ownerDocument && r.ownerDocument.defaultView;
|
|
1485
|
+
return e || Se;
|
|
1486
|
+
}, ur = xe(0, 0, 0, 0);
|
|
1487
|
+
function we(r) {
|
|
1488
|
+
return parseFloat(r) || 0;
|
|
1489
|
+
}
|
|
1490
|
+
function gt(r) {
|
|
1491
|
+
for (var e = [], n = 1; n < arguments.length; n++)
|
|
1492
|
+
e[n - 1] = arguments[n];
|
|
1493
|
+
return e.reduce(function(i, t) {
|
|
1494
|
+
var a = r["border-" + t + "-width"];
|
|
1495
|
+
return i + we(a);
|
|
1496
|
+
}, 0);
|
|
1497
|
+
}
|
|
1498
|
+
function Si(r) {
|
|
1499
|
+
for (var e = ["top", "right", "bottom", "left"], n = {}, i = 0, t = e; i < t.length; i++) {
|
|
1500
|
+
var a = t[i], o = r["padding-" + a];
|
|
1501
|
+
n[a] = we(o);
|
|
1502
|
+
}
|
|
1503
|
+
return n;
|
|
1504
|
+
}
|
|
1505
|
+
function wi(r) {
|
|
1506
|
+
var e = r.getBBox();
|
|
1507
|
+
return xe(0, 0, e.width, e.height);
|
|
1508
|
+
}
|
|
1509
|
+
function Oi(r) {
|
|
1510
|
+
var e = r.clientWidth, n = r.clientHeight;
|
|
1511
|
+
if (!e && !n)
|
|
1512
|
+
return ur;
|
|
1513
|
+
var i = oe(r).getComputedStyle(r), t = Si(i), a = t.left + t.right, o = t.top + t.bottom, s = we(i.width), l = we(i.height);
|
|
1514
|
+
if (i.boxSizing === "border-box" && (Math.round(s + a) !== e && (s -= gt(i, "left", "right") + a), Math.round(l + o) !== n && (l -= gt(i, "top", "bottom") + o)), !Pi(r)) {
|
|
1515
|
+
var u = Math.round(s + a) - e, d = Math.round(l + o) - n;
|
|
1516
|
+
Math.abs(u) !== 1 && (s -= u), Math.abs(d) !== 1 && (l -= d);
|
|
1517
|
+
}
|
|
1518
|
+
return xe(t.left, t.top, s, l);
|
|
1519
|
+
}
|
|
1520
|
+
var _i = /* @__PURE__ */ function() {
|
|
1521
|
+
return typeof SVGGraphicsElement < "u" ? function(r) {
|
|
1522
|
+
return r instanceof oe(r).SVGGraphicsElement;
|
|
1523
|
+
} : function(r) {
|
|
1524
|
+
return r instanceof oe(r).SVGElement && typeof r.getBBox == "function";
|
|
1525
|
+
};
|
|
1526
|
+
}();
|
|
1527
|
+
function Pi(r) {
|
|
1528
|
+
return r === oe(r).document.documentElement;
|
|
1529
|
+
}
|
|
1530
|
+
function ki(r) {
|
|
1531
|
+
return Ze ? _i(r) ? wi(r) : Oi(r) : ur;
|
|
1532
|
+
}
|
|
1533
|
+
function Ti(r) {
|
|
1534
|
+
var e = r.x, n = r.y, i = r.width, t = r.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, o = Object.create(a.prototype);
|
|
1535
|
+
return lr(o, {
|
|
1536
|
+
x: e,
|
|
1537
|
+
y: n,
|
|
1538
|
+
width: i,
|
|
1539
|
+
height: t,
|
|
1540
|
+
top: n,
|
|
1541
|
+
right: e + i,
|
|
1542
|
+
bottom: t + n,
|
|
1543
|
+
left: e
|
|
1544
|
+
}), o;
|
|
1545
|
+
}
|
|
1546
|
+
function xe(r, e, n, i) {
|
|
1547
|
+
return { x: r, y: e, width: n, height: i };
|
|
1548
|
+
}
|
|
1549
|
+
var Ei = (
|
|
1550
|
+
/** @class */
|
|
1551
|
+
function() {
|
|
1552
|
+
function r(e) {
|
|
1553
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = xe(0, 0, 0, 0), this.target = e;
|
|
1554
|
+
}
|
|
1555
|
+
return r.prototype.isActive = function() {
|
|
1556
|
+
var e = ki(this.target);
|
|
1557
|
+
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
1558
|
+
}, r.prototype.broadcastRect = function() {
|
|
1559
|
+
var e = this.contentRect_;
|
|
1560
|
+
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
1561
|
+
}, r;
|
|
1562
|
+
}()
|
|
1563
|
+
), Ci = (
|
|
1564
|
+
/** @class */
|
|
1565
|
+
/* @__PURE__ */ function() {
|
|
1566
|
+
function r(e, n) {
|
|
1567
|
+
var i = Ti(n);
|
|
1568
|
+
lr(this, { target: e, contentRect: i });
|
|
1569
|
+
}
|
|
1570
|
+
return r;
|
|
1571
|
+
}()
|
|
1572
|
+
), xi = (
|
|
1573
|
+
/** @class */
|
|
1574
|
+
function() {
|
|
1575
|
+
function r(e, n, i) {
|
|
1576
|
+
if (this.activeObservations_ = [], this.observations_ = new sr(), typeof e != "function")
|
|
1577
|
+
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
1578
|
+
this.callback_ = e, this.controller_ = n, this.callbackCtx_ = i;
|
|
1579
|
+
}
|
|
1580
|
+
return r.prototype.observe = function(e) {
|
|
1581
|
+
if (!arguments.length)
|
|
1582
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
1583
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1584
|
+
if (!(e instanceof oe(e).Element))
|
|
1585
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1586
|
+
var n = this.observations_;
|
|
1587
|
+
n.has(e) || (n.set(e, new Ei(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1588
|
+
}
|
|
1589
|
+
}, r.prototype.unobserve = function(e) {
|
|
1590
|
+
if (!arguments.length)
|
|
1591
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
1592
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1593
|
+
if (!(e instanceof oe(e).Element))
|
|
1594
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1595
|
+
var n = this.observations_;
|
|
1596
|
+
n.has(e) && (n.delete(e), n.size || this.controller_.removeObserver(this));
|
|
1597
|
+
}
|
|
1598
|
+
}, r.prototype.disconnect = function() {
|
|
1599
|
+
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
1600
|
+
}, r.prototype.gatherActive = function() {
|
|
1601
|
+
var e = this;
|
|
1602
|
+
this.clearActive(), this.observations_.forEach(function(n) {
|
|
1603
|
+
n.isActive() && e.activeObservations_.push(n);
|
|
1604
|
+
});
|
|
1605
|
+
}, r.prototype.broadcastActive = function() {
|
|
1606
|
+
if (this.hasActive()) {
|
|
1607
|
+
var e = this.callbackCtx_, n = this.activeObservations_.map(function(i) {
|
|
1608
|
+
return new Ci(i.target, i.broadcastRect());
|
|
1609
|
+
});
|
|
1610
|
+
this.callback_.call(e, n, e), this.clearActive();
|
|
1611
|
+
}
|
|
1612
|
+
}, r.prototype.clearActive = function() {
|
|
1613
|
+
this.activeObservations_.splice(0);
|
|
1614
|
+
}, r.prototype.hasActive = function() {
|
|
1615
|
+
return this.activeObservations_.length > 0;
|
|
1616
|
+
}, r;
|
|
1617
|
+
}()
|
|
1618
|
+
), cr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new sr(), fr = (
|
|
1619
|
+
/** @class */
|
|
1620
|
+
/* @__PURE__ */ function() {
|
|
1621
|
+
function r(e) {
|
|
1622
|
+
if (!(this instanceof r))
|
|
1623
|
+
throw new TypeError("Cannot call a class as a function.");
|
|
1624
|
+
if (!arguments.length)
|
|
1625
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
1626
|
+
var n = bi.getInstance(), i = new xi(e, n, this);
|
|
1627
|
+
cr.set(this, i);
|
|
1628
|
+
}
|
|
1629
|
+
return r;
|
|
1630
|
+
}()
|
|
1631
|
+
);
|
|
1632
|
+
[
|
|
1633
|
+
"observe",
|
|
1634
|
+
"unobserve",
|
|
1635
|
+
"disconnect"
|
|
1636
|
+
].forEach(function(r) {
|
|
1637
|
+
fr.prototype[r] = function() {
|
|
1638
|
+
var e;
|
|
1639
|
+
return (e = cr.get(this))[r].apply(e, arguments);
|
|
1640
|
+
};
|
|
1641
|
+
});
|
|
1642
|
+
var ji = function() {
|
|
1643
|
+
return typeof Se.ResizeObserver < "u" ? Se.ResizeObserver : fr;
|
|
1644
|
+
}();
|
|
1645
|
+
const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1646
|
+
__proto__: null,
|
|
1647
|
+
default: ji
|
|
1648
|
+
}, Symbol.toStringTag, { value: "Module" })), Mi = /* @__PURE__ */ Sr(Li);
|
|
1649
|
+
Object.defineProperty(ke, "__esModule", {
|
|
1650
|
+
value: !0
|
|
1651
|
+
});
|
|
1652
|
+
ke.InnerSlider = void 0;
|
|
1653
|
+
var H = le(X), Ri = le(At), zi = le(Pn), Ii = le(Te), D = f, Ai = Ee, Di = Ce, mt = ne, $i = le(Mi);
|
|
1654
|
+
function le(r) {
|
|
1655
|
+
return r && r.__esModule ? r : { default: r };
|
|
1656
|
+
}
|
|
1657
|
+
function Y(r) {
|
|
1658
|
+
"@babel/helpers - typeof";
|
|
1659
|
+
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1660
|
+
return typeof e;
|
|
1661
|
+
} : function(e) {
|
|
1662
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1663
|
+
}, Y(r);
|
|
1664
|
+
}
|
|
1665
|
+
function Oe() {
|
|
1666
|
+
return Oe = Object.assign ? Object.assign.bind() : function(r) {
|
|
1667
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1668
|
+
var n = arguments[e];
|
|
1669
|
+
for (var i in n)
|
|
1670
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1671
|
+
}
|
|
1672
|
+
return r;
|
|
1673
|
+
}, Oe.apply(this, arguments);
|
|
1674
|
+
}
|
|
1675
|
+
function Hi(r, e) {
|
|
1676
|
+
if (r == null) return {};
|
|
1677
|
+
var n = Ni(r, e), i, t;
|
|
1678
|
+
if (Object.getOwnPropertySymbols) {
|
|
1679
|
+
var a = Object.getOwnPropertySymbols(r);
|
|
1680
|
+
for (t = 0; t < a.length; t++)
|
|
1681
|
+
i = a[t], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(r, i) && (n[i] = r[i]);
|
|
1682
|
+
}
|
|
1683
|
+
return n;
|
|
1684
|
+
}
|
|
1685
|
+
function Ni(r, e) {
|
|
1686
|
+
if (r == null) return {};
|
|
1687
|
+
var n = {}, i = Object.keys(r), t, a;
|
|
1688
|
+
for (a = 0; a < i.length; a++)
|
|
1689
|
+
t = i[a], !(e.indexOf(t) >= 0) && (n[t] = r[t]);
|
|
1690
|
+
return n;
|
|
1691
|
+
}
|
|
1692
|
+
function bt(r, e) {
|
|
1693
|
+
var n = Object.keys(r);
|
|
1694
|
+
if (Object.getOwnPropertySymbols) {
|
|
1695
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
1696
|
+
e && (i = i.filter(function(t) {
|
|
1697
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
1698
|
+
})), n.push.apply(n, i);
|
|
1699
|
+
}
|
|
1700
|
+
return n;
|
|
1701
|
+
}
|
|
1702
|
+
function S(r) {
|
|
1703
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1704
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
1705
|
+
e % 2 ? bt(Object(n), !0).forEach(function(i) {
|
|
1706
|
+
R(r, i, n[i]);
|
|
1707
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : bt(Object(n)).forEach(function(i) {
|
|
1708
|
+
Object.defineProperty(r, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1709
|
+
});
|
|
1710
|
+
}
|
|
1711
|
+
return r;
|
|
1712
|
+
}
|
|
1713
|
+
function Wi(r, e) {
|
|
1714
|
+
if (!(r instanceof e))
|
|
1715
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1716
|
+
}
|
|
1717
|
+
function Fi(r, e) {
|
|
1718
|
+
for (var n = 0; n < e.length; n++) {
|
|
1719
|
+
var i = e[n];
|
|
1720
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(r, pr(i.key), i);
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
function qi(r, e, n) {
|
|
1724
|
+
return e && Fi(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
1725
|
+
}
|
|
1726
|
+
function Bi(r, e) {
|
|
1727
|
+
if (typeof e != "function" && e !== null)
|
|
1728
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1729
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && et(r, e);
|
|
1730
|
+
}
|
|
1731
|
+
function et(r, e) {
|
|
1732
|
+
return et = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, t) {
|
|
1733
|
+
return i.__proto__ = t, i;
|
|
1734
|
+
}, et(r, e);
|
|
1735
|
+
}
|
|
1736
|
+
function Gi(r) {
|
|
1737
|
+
var e = dr();
|
|
1738
|
+
return function() {
|
|
1739
|
+
var i = _e(r), t;
|
|
1740
|
+
if (e) {
|
|
1741
|
+
var a = _e(this).constructor;
|
|
1742
|
+
t = Reflect.construct(i, arguments, a);
|
|
1743
|
+
} else
|
|
1744
|
+
t = i.apply(this, arguments);
|
|
1745
|
+
return Ui(this, t);
|
|
1746
|
+
};
|
|
1747
|
+
}
|
|
1748
|
+
function Ui(r, e) {
|
|
1749
|
+
if (e && (Y(e) === "object" || typeof e == "function"))
|
|
1750
|
+
return e;
|
|
1751
|
+
if (e !== void 0)
|
|
1752
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1753
|
+
return M(r);
|
|
1754
|
+
}
|
|
1755
|
+
function M(r) {
|
|
1756
|
+
if (r === void 0)
|
|
1757
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1758
|
+
return r;
|
|
1759
|
+
}
|
|
1760
|
+
function dr() {
|
|
1761
|
+
try {
|
|
1762
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1763
|
+
}));
|
|
1764
|
+
} catch {
|
|
1765
|
+
}
|
|
1766
|
+
return (dr = function() {
|
|
1767
|
+
return !!r;
|
|
1768
|
+
})();
|
|
1769
|
+
}
|
|
1770
|
+
function _e(r) {
|
|
1771
|
+
return _e = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
1772
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1773
|
+
}, _e(r);
|
|
1774
|
+
}
|
|
1775
|
+
function R(r, e, n) {
|
|
1776
|
+
return e = pr(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
1777
|
+
}
|
|
1778
|
+
function pr(r) {
|
|
1779
|
+
var e = Qi(r, "string");
|
|
1780
|
+
return Y(e) == "symbol" ? e : String(e);
|
|
1781
|
+
}
|
|
1782
|
+
function Qi(r, e) {
|
|
1783
|
+
if (Y(r) != "object" || !r) return r;
|
|
1784
|
+
var n = r[Symbol.toPrimitive];
|
|
1785
|
+
if (n !== void 0) {
|
|
1786
|
+
var i = n.call(r, e || "default");
|
|
1787
|
+
if (Y(i) != "object") return i;
|
|
1788
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1789
|
+
}
|
|
1790
|
+
return (e === "string" ? String : Number)(r);
|
|
1791
|
+
}
|
|
1792
|
+
ke.InnerSlider = /* @__PURE__ */ function(r) {
|
|
1793
|
+
Bi(n, r);
|
|
1794
|
+
var e = Gi(n);
|
|
1795
|
+
function n(i) {
|
|
1796
|
+
var t;
|
|
1797
|
+
Wi(this, n), t = e.call(this, i), R(M(t), "listRefHandler", function(o) {
|
|
1798
|
+
return t.list = o;
|
|
1799
|
+
}), R(M(t), "trackRefHandler", function(o) {
|
|
1800
|
+
return t.track = o;
|
|
1801
|
+
}), R(M(t), "adaptHeight", function() {
|
|
1802
|
+
if (t.props.adaptiveHeight && t.list) {
|
|
1803
|
+
var o = t.list.querySelector('[data-index="'.concat(t.state.currentSlide, '"]'));
|
|
1804
|
+
t.list.style.height = (0, D.getHeight)(o) + "px";
|
|
1805
|
+
}
|
|
1806
|
+
}), R(M(t), "componentDidMount", function() {
|
|
1807
|
+
if (t.props.onInit && t.props.onInit(), t.props.lazyLoad) {
|
|
1808
|
+
var o = (0, D.getOnDemandLazySlides)(S(S({}, t.props), t.state));
|
|
1809
|
+
o.length > 0 && (t.setState(function(l) {
|
|
1810
|
+
return {
|
|
1811
|
+
lazyLoadedList: l.lazyLoadedList.concat(o)
|
|
1812
|
+
};
|
|
1813
|
+
}), t.props.onLazyLoad && t.props.onLazyLoad(o));
|
|
1814
|
+
}
|
|
1815
|
+
var s = S({
|
|
1816
|
+
listRef: t.list,
|
|
1817
|
+
trackRef: t.track
|
|
1818
|
+
}, t.props);
|
|
1819
|
+
t.updateState(s, !0, function() {
|
|
1820
|
+
t.adaptHeight(), t.props.autoplay && t.autoPlay("update");
|
|
1821
|
+
}), t.props.lazyLoad === "progressive" && (t.lazyLoadTimer = setInterval(t.progressiveLazyLoad, 1e3)), t.ro = new $i.default(function() {
|
|
1822
|
+
t.state.animating ? (t.onWindowResized(!1), t.callbackTimers.push(setTimeout(function() {
|
|
1823
|
+
return t.onWindowResized();
|
|
1824
|
+
}, t.props.speed))) : t.onWindowResized();
|
|
1825
|
+
}), t.ro.observe(t.list), document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function(l) {
|
|
1826
|
+
l.onfocus = t.props.pauseOnFocus ? t.onSlideFocus : null, l.onblur = t.props.pauseOnFocus ? t.onSlideBlur : null;
|
|
1827
|
+
}), window.addEventListener ? window.addEventListener("resize", t.onWindowResized) : window.attachEvent("onresize", t.onWindowResized);
|
|
1828
|
+
}), R(M(t), "componentWillUnmount", function() {
|
|
1829
|
+
t.animationEndCallback && clearTimeout(t.animationEndCallback), t.lazyLoadTimer && clearInterval(t.lazyLoadTimer), t.callbackTimers.length && (t.callbackTimers.forEach(function(o) {
|
|
1830
|
+
return clearTimeout(o);
|
|
1831
|
+
}), t.callbackTimers = []), window.addEventListener ? window.removeEventListener("resize", t.onWindowResized) : window.detachEvent("onresize", t.onWindowResized), t.autoplayTimer && clearInterval(t.autoplayTimer), t.ro.disconnect();
|
|
1832
|
+
}), R(M(t), "componentDidUpdate", function(o) {
|
|
1833
|
+
if (t.checkImagesLoad(), t.props.onReInit && t.props.onReInit(), t.props.lazyLoad) {
|
|
1834
|
+
var s = (0, D.getOnDemandLazySlides)(S(S({}, t.props), t.state));
|
|
1835
|
+
s.length > 0 && (t.setState(function(d) {
|
|
1836
|
+
return {
|
|
1837
|
+
lazyLoadedList: d.lazyLoadedList.concat(s)
|
|
1838
|
+
};
|
|
1839
|
+
}), t.props.onLazyLoad && t.props.onLazyLoad(s));
|
|
1840
|
+
}
|
|
1841
|
+
t.adaptHeight();
|
|
1842
|
+
var l = S(S({
|
|
1843
|
+
listRef: t.list,
|
|
1844
|
+
trackRef: t.track
|
|
1845
|
+
}, t.props), t.state), u = t.didPropsChange(o);
|
|
1846
|
+
u && t.updateState(l, u, function() {
|
|
1847
|
+
t.state.currentSlide >= H.default.Children.count(t.props.children) && t.changeSlide({
|
|
1848
|
+
message: "index",
|
|
1849
|
+
index: H.default.Children.count(t.props.children) - t.props.slidesToShow,
|
|
1850
|
+
currentSlide: t.state.currentSlide
|
|
1851
|
+
}), t.props.autoplay ? t.autoPlay("update") : t.pause("paused");
|
|
1852
|
+
});
|
|
1853
|
+
}), R(M(t), "onWindowResized", function(o) {
|
|
1854
|
+
t.debouncedResize && t.debouncedResize.cancel(), t.debouncedResize = (0, zi.default)(function() {
|
|
1855
|
+
return t.resizeWindow(o);
|
|
1856
|
+
}, 50), t.debouncedResize();
|
|
1857
|
+
}), R(M(t), "resizeWindow", function() {
|
|
1858
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, s = !!(t.track && t.track.node);
|
|
1859
|
+
if (s) {
|
|
1860
|
+
var l = S(S({
|
|
1861
|
+
listRef: t.list,
|
|
1862
|
+
trackRef: t.track
|
|
1863
|
+
}, t.props), t.state);
|
|
1864
|
+
t.updateState(l, o, function() {
|
|
1865
|
+
t.props.autoplay ? t.autoPlay("update") : t.pause("paused");
|
|
1866
|
+
}), t.setState({
|
|
1867
|
+
animating: !1
|
|
1868
|
+
}), clearTimeout(t.animationEndCallback), delete t.animationEndCallback;
|
|
1869
|
+
}
|
|
1870
|
+
}), R(M(t), "updateState", function(o, s, l) {
|
|
1871
|
+
var u = (0, D.initializedState)(o);
|
|
1872
|
+
o = S(S(S({}, o), u), {}, {
|
|
1873
|
+
slideIndex: u.currentSlide
|
|
1874
|
+
});
|
|
1875
|
+
var d = (0, D.getTrackLeft)(o);
|
|
1876
|
+
o = S(S({}, o), {}, {
|
|
1877
|
+
left: d
|
|
1878
|
+
});
|
|
1879
|
+
var c = (0, D.getTrackCSS)(o);
|
|
1880
|
+
(s || H.default.Children.count(t.props.children) !== H.default.Children.count(o.children)) && (u.trackStyle = c), t.setState(u, l);
|
|
1881
|
+
}), R(M(t), "ssrInit", function() {
|
|
1882
|
+
if (t.props.variableWidth) {
|
|
1883
|
+
var o = 0, s = 0, l = [], u = (0, D.getPreClones)(S(S(S({}, t.props), t.state), {}, {
|
|
1884
|
+
slideCount: t.props.children.length
|
|
1885
|
+
})), d = (0, D.getPostClones)(S(S(S({}, t.props), t.state), {}, {
|
|
1886
|
+
slideCount: t.props.children.length
|
|
1887
|
+
}));
|
|
1888
|
+
t.props.children.forEach(function(A) {
|
|
1889
|
+
l.push(A.props.style.width), o += A.props.style.width;
|
|
1890
|
+
});
|
|
1891
|
+
for (var c = 0; c < u; c++)
|
|
1892
|
+
s += l[l.length - 1 - c], o += l[l.length - 1 - c];
|
|
1893
|
+
for (var m = 0; m < d; m++)
|
|
1894
|
+
o += l[m];
|
|
1895
|
+
for (var E = 0; E < t.state.currentSlide; E++)
|
|
1896
|
+
s += l[E];
|
|
1897
|
+
var O = {
|
|
1898
|
+
width: o + "px",
|
|
1899
|
+
left: -s + "px"
|
|
1900
|
+
};
|
|
1901
|
+
if (t.props.centerMode) {
|
|
1902
|
+
var g = "".concat(l[t.state.currentSlide], "px");
|
|
1903
|
+
O.left = "calc(".concat(O.left, " + (100% - ").concat(g, ") / 2 ) ");
|
|
1904
|
+
}
|
|
1905
|
+
return {
|
|
1906
|
+
trackStyle: O
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
var b = H.default.Children.count(t.props.children), y = S(S(S({}, t.props), t.state), {}, {
|
|
1910
|
+
slideCount: b
|
|
1911
|
+
}), p = (0, D.getPreClones)(y) + (0, D.getPostClones)(y) + b, w = 100 / t.props.slidesToShow * p, x = 100 / p, j = -x * ((0, D.getPreClones)(y) + t.state.currentSlide) * w / 100;
|
|
1912
|
+
t.props.centerMode && (j += (100 - x * w / 100) / 2);
|
|
1913
|
+
var C = {
|
|
1914
|
+
width: w + "%",
|
|
1915
|
+
left: j + "%"
|
|
1916
|
+
};
|
|
1917
|
+
return {
|
|
1918
|
+
slideWidth: x + "%",
|
|
1919
|
+
trackStyle: C
|
|
1920
|
+
};
|
|
1921
|
+
}), R(M(t), "checkImagesLoad", function() {
|
|
1922
|
+
var o = t.list && t.list.querySelectorAll && t.list.querySelectorAll(".slick-slide img") || [], s = o.length, l = 0;
|
|
1923
|
+
Array.prototype.forEach.call(o, function(u) {
|
|
1924
|
+
var d = function() {
|
|
1925
|
+
return ++l && l >= s && t.onWindowResized();
|
|
1926
|
+
};
|
|
1927
|
+
if (!u.onclick)
|
|
1928
|
+
u.onclick = function() {
|
|
1929
|
+
return u.parentNode.focus();
|
|
1930
|
+
};
|
|
1931
|
+
else {
|
|
1932
|
+
var c = u.onclick;
|
|
1933
|
+
u.onclick = function(m) {
|
|
1934
|
+
c(m), u.parentNode.focus();
|
|
1935
|
+
};
|
|
1936
|
+
}
|
|
1937
|
+
u.onload || (t.props.lazyLoad ? u.onload = function() {
|
|
1938
|
+
t.adaptHeight(), t.callbackTimers.push(setTimeout(t.onWindowResized, t.props.speed));
|
|
1939
|
+
} : (u.onload = d, u.onerror = function() {
|
|
1940
|
+
d(), t.props.onLazyLoadError && t.props.onLazyLoadError();
|
|
1941
|
+
}));
|
|
1942
|
+
});
|
|
1943
|
+
}), R(M(t), "progressiveLazyLoad", function() {
|
|
1944
|
+
for (var o = [], s = S(S({}, t.props), t.state), l = t.state.currentSlide; l < t.state.slideCount + (0, D.getPostClones)(s); l++)
|
|
1945
|
+
if (t.state.lazyLoadedList.indexOf(l) < 0) {
|
|
1946
|
+
o.push(l);
|
|
1947
|
+
break;
|
|
1948
|
+
}
|
|
1949
|
+
for (var u = t.state.currentSlide - 1; u >= -(0, D.getPreClones)(s); u--)
|
|
1950
|
+
if (t.state.lazyLoadedList.indexOf(u) < 0) {
|
|
1951
|
+
o.push(u);
|
|
1952
|
+
break;
|
|
1953
|
+
}
|
|
1954
|
+
o.length > 0 ? (t.setState(function(d) {
|
|
1955
|
+
return {
|
|
1956
|
+
lazyLoadedList: d.lazyLoadedList.concat(o)
|
|
1957
|
+
};
|
|
1958
|
+
}), t.props.onLazyLoad && t.props.onLazyLoad(o)) : t.lazyLoadTimer && (clearInterval(t.lazyLoadTimer), delete t.lazyLoadTimer);
|
|
1959
|
+
}), R(M(t), "slideHandler", function(o) {
|
|
1960
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, l = t.props, u = l.asNavFor, d = l.beforeChange, c = l.onLazyLoad, m = l.speed, E = l.afterChange, O = t.state.currentSlide, g = (0, D.slideHandler)(S(S(S({
|
|
1961
|
+
index: o
|
|
1962
|
+
}, t.props), t.state), {}, {
|
|
1963
|
+
trackRef: t.track,
|
|
1964
|
+
useCSS: t.props.useCSS && !s
|
|
1965
|
+
})), b = g.state, y = g.nextState;
|
|
1966
|
+
if (b) {
|
|
1967
|
+
d && d(O, b.currentSlide);
|
|
1968
|
+
var p = b.lazyLoadedList.filter(function(w) {
|
|
1969
|
+
return t.state.lazyLoadedList.indexOf(w) < 0;
|
|
1970
|
+
});
|
|
1971
|
+
c && p.length > 0 && c(p), !t.props.waitForAnimate && t.animationEndCallback && (clearTimeout(t.animationEndCallback), E && E(O), delete t.animationEndCallback), t.setState(b, function() {
|
|
1972
|
+
u && t.asNavForIndex !== o && (t.asNavForIndex = o, u.innerSlider.slideHandler(o)), y && (t.animationEndCallback = setTimeout(function() {
|
|
1973
|
+
var w = y.animating, x = Hi(y, ["animating"]);
|
|
1974
|
+
t.setState(x, function() {
|
|
1975
|
+
t.callbackTimers.push(setTimeout(function() {
|
|
1976
|
+
return t.setState({
|
|
1977
|
+
animating: w
|
|
1978
|
+
});
|
|
1979
|
+
}, 10)), E && E(b.currentSlide), delete t.animationEndCallback;
|
|
1980
|
+
});
|
|
1981
|
+
}, m));
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
}), R(M(t), "changeSlide", function(o) {
|
|
1985
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, l = S(S({}, t.props), t.state), u = (0, D.changeSlide)(l, o);
|
|
1986
|
+
if (!(u !== 0 && !u) && (s === !0 ? t.slideHandler(u, s) : t.slideHandler(u), t.props.autoplay && t.autoPlay("update"), t.props.focusOnSelect)) {
|
|
1987
|
+
var d = t.list.querySelectorAll(".slick-current");
|
|
1988
|
+
d[0] && d[0].focus();
|
|
1989
|
+
}
|
|
1990
|
+
}), R(M(t), "clickHandler", function(o) {
|
|
1991
|
+
t.clickable === !1 && (o.stopPropagation(), o.preventDefault()), t.clickable = !0;
|
|
1992
|
+
}), R(M(t), "keyHandler", function(o) {
|
|
1993
|
+
var s = (0, D.keyHandler)(o, t.props.accessibility, t.props.rtl);
|
|
1994
|
+
s !== "" && t.changeSlide({
|
|
1995
|
+
message: s
|
|
1996
|
+
});
|
|
1997
|
+
}), R(M(t), "selectHandler", function(o) {
|
|
1998
|
+
t.changeSlide(o);
|
|
1999
|
+
}), R(M(t), "disableBodyScroll", function() {
|
|
2000
|
+
var o = function(l) {
|
|
2001
|
+
l = l || window.event, l.preventDefault && l.preventDefault(), l.returnValue = !1;
|
|
2002
|
+
};
|
|
2003
|
+
window.ontouchmove = o;
|
|
2004
|
+
}), R(M(t), "enableBodyScroll", function() {
|
|
2005
|
+
window.ontouchmove = null;
|
|
2006
|
+
}), R(M(t), "swipeStart", function(o) {
|
|
2007
|
+
t.props.verticalSwiping && t.disableBodyScroll();
|
|
2008
|
+
var s = (0, D.swipeStart)(o, t.props.swipe, t.props.draggable);
|
|
2009
|
+
s !== "" && t.setState(s);
|
|
2010
|
+
}), R(M(t), "swipeMove", function(o) {
|
|
2011
|
+
var s = (0, D.swipeMove)(o, S(S(S({}, t.props), t.state), {}, {
|
|
2012
|
+
trackRef: t.track,
|
|
2013
|
+
listRef: t.list,
|
|
2014
|
+
slideIndex: t.state.currentSlide
|
|
2015
|
+
}));
|
|
2016
|
+
s && (s.swiping && (t.clickable = !1), t.setState(s));
|
|
2017
|
+
}), R(M(t), "swipeEnd", function(o) {
|
|
2018
|
+
var s = (0, D.swipeEnd)(o, S(S(S({}, t.props), t.state), {}, {
|
|
2019
|
+
trackRef: t.track,
|
|
2020
|
+
listRef: t.list,
|
|
2021
|
+
slideIndex: t.state.currentSlide
|
|
2022
|
+
}));
|
|
2023
|
+
if (s) {
|
|
2024
|
+
var l = s.triggerSlideHandler;
|
|
2025
|
+
delete s.triggerSlideHandler, t.setState(s), l !== void 0 && (t.slideHandler(l), t.props.verticalSwiping && t.enableBodyScroll());
|
|
2026
|
+
}
|
|
2027
|
+
}), R(M(t), "touchEnd", function(o) {
|
|
2028
|
+
t.swipeEnd(o), t.clickable = !0;
|
|
2029
|
+
}), R(M(t), "slickPrev", function() {
|
|
2030
|
+
t.callbackTimers.push(setTimeout(function() {
|
|
2031
|
+
return t.changeSlide({
|
|
2032
|
+
message: "previous"
|
|
2033
|
+
});
|
|
2034
|
+
}, 0));
|
|
2035
|
+
}), R(M(t), "slickNext", function() {
|
|
2036
|
+
t.callbackTimers.push(setTimeout(function() {
|
|
2037
|
+
return t.changeSlide({
|
|
2038
|
+
message: "next"
|
|
2039
|
+
});
|
|
2040
|
+
}, 0));
|
|
2041
|
+
}), R(M(t), "slickGoTo", function(o) {
|
|
2042
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2043
|
+
if (o = Number(o), isNaN(o)) return "";
|
|
2044
|
+
t.callbackTimers.push(setTimeout(function() {
|
|
2045
|
+
return t.changeSlide({
|
|
2046
|
+
message: "index",
|
|
2047
|
+
index: o,
|
|
2048
|
+
currentSlide: t.state.currentSlide
|
|
2049
|
+
}, s);
|
|
2050
|
+
}, 0));
|
|
2051
|
+
}), R(M(t), "play", function() {
|
|
2052
|
+
var o;
|
|
2053
|
+
if (t.props.rtl)
|
|
2054
|
+
o = t.state.currentSlide - t.props.slidesToScroll;
|
|
2055
|
+
else if ((0, D.canGoNext)(S(S({}, t.props), t.state)))
|
|
2056
|
+
o = t.state.currentSlide + t.props.slidesToScroll;
|
|
2057
|
+
else
|
|
2058
|
+
return !1;
|
|
2059
|
+
t.slideHandler(o);
|
|
2060
|
+
}), R(M(t), "autoPlay", function(o) {
|
|
2061
|
+
t.autoplayTimer && clearInterval(t.autoplayTimer);
|
|
2062
|
+
var s = t.state.autoplaying;
|
|
2063
|
+
if (o === "update") {
|
|
2064
|
+
if (s === "hovered" || s === "focused" || s === "paused")
|
|
2065
|
+
return;
|
|
2066
|
+
} else if (o === "leave") {
|
|
2067
|
+
if (s === "paused" || s === "focused")
|
|
2068
|
+
return;
|
|
2069
|
+
} else if (o === "blur" && (s === "paused" || s === "hovered"))
|
|
2070
|
+
return;
|
|
2071
|
+
t.autoplayTimer = setInterval(t.play, t.props.autoplaySpeed + 50), t.setState({
|
|
2072
|
+
autoplaying: "playing"
|
|
2073
|
+
});
|
|
2074
|
+
}), R(M(t), "pause", function(o) {
|
|
2075
|
+
t.autoplayTimer && (clearInterval(t.autoplayTimer), t.autoplayTimer = null);
|
|
2076
|
+
var s = t.state.autoplaying;
|
|
2077
|
+
o === "paused" ? t.setState({
|
|
2078
|
+
autoplaying: "paused"
|
|
2079
|
+
}) : o === "focused" ? (s === "hovered" || s === "playing") && t.setState({
|
|
2080
|
+
autoplaying: "focused"
|
|
2081
|
+
}) : s === "playing" && t.setState({
|
|
2082
|
+
autoplaying: "hovered"
|
|
2083
|
+
});
|
|
2084
|
+
}), R(M(t), "onDotsOver", function() {
|
|
2085
|
+
return t.props.autoplay && t.pause("hovered");
|
|
2086
|
+
}), R(M(t), "onDotsLeave", function() {
|
|
2087
|
+
return t.props.autoplay && t.state.autoplaying === "hovered" && t.autoPlay("leave");
|
|
2088
|
+
}), R(M(t), "onTrackOver", function() {
|
|
2089
|
+
return t.props.autoplay && t.pause("hovered");
|
|
2090
|
+
}), R(M(t), "onTrackLeave", function() {
|
|
2091
|
+
return t.props.autoplay && t.state.autoplaying === "hovered" && t.autoPlay("leave");
|
|
2092
|
+
}), R(M(t), "onSlideFocus", function() {
|
|
2093
|
+
return t.props.autoplay && t.pause("focused");
|
|
2094
|
+
}), R(M(t), "onSlideBlur", function() {
|
|
2095
|
+
return t.props.autoplay && t.state.autoplaying === "focused" && t.autoPlay("blur");
|
|
2096
|
+
}), R(M(t), "render", function() {
|
|
2097
|
+
var o = (0, Ii.default)("slick-slider", t.props.className, {
|
|
2098
|
+
"slick-vertical": t.props.vertical,
|
|
2099
|
+
"slick-initialized": !0
|
|
2100
|
+
}), s = S(S({}, t.props), t.state), l = (0, D.extractObject)(s, ["fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", "targetSlide", "useCSS"]), u = t.props.pauseOnHover;
|
|
2101
|
+
l = S(S({}, l), {}, {
|
|
2102
|
+
onMouseEnter: u ? t.onTrackOver : null,
|
|
2103
|
+
onMouseLeave: u ? t.onTrackLeave : null,
|
|
2104
|
+
onMouseOver: u ? t.onTrackOver : null,
|
|
2105
|
+
focusOnSelect: t.props.focusOnSelect && t.clickable ? t.selectHandler : null
|
|
2106
|
+
});
|
|
2107
|
+
var d;
|
|
2108
|
+
if (t.props.dots === !0 && t.state.slideCount >= t.props.slidesToShow) {
|
|
2109
|
+
var c = (0, D.extractObject)(s, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "customPaging", "infinite", "appendDots"]), m = t.props.pauseOnDotsHover;
|
|
2110
|
+
c = S(S({}, c), {}, {
|
|
2111
|
+
clickHandler: t.changeSlide,
|
|
2112
|
+
onMouseEnter: m ? t.onDotsLeave : null,
|
|
2113
|
+
onMouseOver: m ? t.onDotsOver : null,
|
|
2114
|
+
onMouseLeave: m ? t.onDotsLeave : null
|
|
2115
|
+
}), d = /* @__PURE__ */ H.default.createElement(Di.Dots, c);
|
|
2116
|
+
}
|
|
2117
|
+
var E, O, g = (0, D.extractObject)(s, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2118
|
+
g.clickHandler = t.changeSlide, t.props.arrows && (E = /* @__PURE__ */ H.default.createElement(mt.PrevArrow, g), O = /* @__PURE__ */ H.default.createElement(mt.NextArrow, g));
|
|
2119
|
+
var b = null;
|
|
2120
|
+
t.props.vertical && (b = {
|
|
2121
|
+
height: t.state.listHeight
|
|
2122
|
+
});
|
|
2123
|
+
var y = null;
|
|
2124
|
+
t.props.vertical === !1 ? t.props.centerMode === !0 && (y = {
|
|
2125
|
+
padding: "0px " + t.props.centerPadding
|
|
2126
|
+
}) : t.props.centerMode === !0 && (y = {
|
|
2127
|
+
padding: t.props.centerPadding + " 0px"
|
|
2128
|
+
});
|
|
2129
|
+
var p = S(S({}, b), y), w = t.props.touchMove, x = {
|
|
2130
|
+
className: "slick-list",
|
|
2131
|
+
style: p,
|
|
2132
|
+
onClick: t.clickHandler,
|
|
2133
|
+
onMouseDown: w ? t.swipeStart : null,
|
|
2134
|
+
onMouseMove: t.state.dragging && w ? t.swipeMove : null,
|
|
2135
|
+
onMouseUp: w ? t.swipeEnd : null,
|
|
2136
|
+
onMouseLeave: t.state.dragging && w ? t.swipeEnd : null,
|
|
2137
|
+
onTouchStart: w ? t.swipeStart : null,
|
|
2138
|
+
onTouchMove: t.state.dragging && w ? t.swipeMove : null,
|
|
2139
|
+
onTouchEnd: w ? t.touchEnd : null,
|
|
2140
|
+
onTouchCancel: t.state.dragging && w ? t.swipeEnd : null,
|
|
2141
|
+
onKeyDown: t.props.accessibility ? t.keyHandler : null
|
|
2142
|
+
}, j = {
|
|
2143
|
+
className: o,
|
|
2144
|
+
dir: "ltr",
|
|
2145
|
+
style: t.props.style
|
|
2146
|
+
};
|
|
2147
|
+
return t.props.unslick && (x = {
|
|
2148
|
+
className: "slick-list"
|
|
2149
|
+
}, j = {
|
|
2150
|
+
className: o
|
|
2151
|
+
}), /* @__PURE__ */ H.default.createElement("div", j, t.props.unslick ? "" : E, /* @__PURE__ */ H.default.createElement("div", Oe({
|
|
2152
|
+
ref: t.listRefHandler
|
|
2153
|
+
}, x), /* @__PURE__ */ H.default.createElement(Ai.Track, Oe({
|
|
2154
|
+
ref: t.trackRefHandler
|
|
2155
|
+
}, l), t.props.children)), t.props.unslick ? "" : O, t.props.unslick ? "" : d);
|
|
2156
|
+
}), t.list = null, t.track = null, t.state = S(S({}, Ri.default), {}, {
|
|
2157
|
+
currentSlide: t.props.initialSlide,
|
|
2158
|
+
targetSlide: t.props.initialSlide ? t.props.initialSlide : 0,
|
|
2159
|
+
slideCount: H.default.Children.count(t.props.children)
|
|
2160
|
+
}), t.callbackTimers = [], t.clickable = !0, t.debouncedResize = null;
|
|
2161
|
+
var a = t.ssrInit();
|
|
2162
|
+
return t.state = S(S({}, t.state), a), t;
|
|
2163
|
+
}
|
|
2164
|
+
return qi(n, [{
|
|
2165
|
+
key: "didPropsChange",
|
|
2166
|
+
value: function(t) {
|
|
2167
|
+
for (var a = !1, o = 0, s = Object.keys(this.props); o < s.length; o++) {
|
|
2168
|
+
var l = s[o];
|
|
2169
|
+
if (!t.hasOwnProperty(l)) {
|
|
2170
|
+
a = !0;
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
if (!(Y(t[l]) === "object" || typeof t[l] == "function" || isNaN(t[l])) && t[l] !== this.props[l]) {
|
|
2174
|
+
a = !0;
|
|
2175
|
+
break;
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
return a || H.default.Children.count(this.props.children) !== H.default.Children.count(t.children);
|
|
2179
|
+
}
|
|
2180
|
+
}]), n;
|
|
2181
|
+
}(H.default.Component);
|
|
2182
|
+
var Yi = function(r) {
|
|
2183
|
+
return r.replace(/[A-Z]/g, function(e) {
|
|
2184
|
+
return "-" + e.toLowerCase();
|
|
2185
|
+
}).toLowerCase();
|
|
2186
|
+
}, Xi = Yi, Ki = Xi, Vi = function(r) {
|
|
2187
|
+
var e = /[height|width]$/;
|
|
2188
|
+
return e.test(r);
|
|
2189
|
+
}, St = function(r) {
|
|
2190
|
+
var e = "", n = Object.keys(r);
|
|
2191
|
+
return n.forEach(function(i, t) {
|
|
2192
|
+
var a = r[i];
|
|
2193
|
+
i = Ki(i), Vi(i) && typeof a == "number" && (a = a + "px"), a === !0 ? e += i : a === !1 ? e += "not " + i : e += "(" + i + ": " + a + ")", t < n.length - 1 && (e += " and ");
|
|
2194
|
+
}), e;
|
|
2195
|
+
}, Ji = function(r) {
|
|
2196
|
+
var e = "";
|
|
2197
|
+
return typeof r == "string" ? r : r instanceof Array ? (r.forEach(function(n, i) {
|
|
2198
|
+
e += St(n), i < r.length - 1 && (e += ", ");
|
|
2199
|
+
}), e) : St(r);
|
|
2200
|
+
}, Zi = Ji, De, wt;
|
|
2201
|
+
function eo() {
|
|
2202
|
+
if (wt) return De;
|
|
2203
|
+
wt = 1;
|
|
2204
|
+
function r(e) {
|
|
2205
|
+
this.options = e, !e.deferSetup && this.setup();
|
|
2206
|
+
}
|
|
2207
|
+
return r.prototype = {
|
|
2208
|
+
constructor: r,
|
|
2209
|
+
/**
|
|
2210
|
+
* coordinates setup of the handler
|
|
2211
|
+
*
|
|
2212
|
+
* @function
|
|
2213
|
+
*/
|
|
2214
|
+
setup: function() {
|
|
2215
|
+
this.options.setup && this.options.setup(), this.initialised = !0;
|
|
2216
|
+
},
|
|
2217
|
+
/**
|
|
2218
|
+
* coordinates setup and triggering of the handler
|
|
2219
|
+
*
|
|
2220
|
+
* @function
|
|
2221
|
+
*/
|
|
2222
|
+
on: function() {
|
|
2223
|
+
!this.initialised && this.setup(), this.options.match && this.options.match();
|
|
2224
|
+
},
|
|
2225
|
+
/**
|
|
2226
|
+
* coordinates the unmatch event for the handler
|
|
2227
|
+
*
|
|
2228
|
+
* @function
|
|
2229
|
+
*/
|
|
2230
|
+
off: function() {
|
|
2231
|
+
this.options.unmatch && this.options.unmatch();
|
|
2232
|
+
},
|
|
2233
|
+
/**
|
|
2234
|
+
* called when a handler is to be destroyed.
|
|
2235
|
+
* delegates to the destroy or unmatch callbacks, depending on availability.
|
|
2236
|
+
*
|
|
2237
|
+
* @function
|
|
2238
|
+
*/
|
|
2239
|
+
destroy: function() {
|
|
2240
|
+
this.options.destroy ? this.options.destroy() : this.off();
|
|
2241
|
+
},
|
|
2242
|
+
/**
|
|
2243
|
+
* determines equality by reference.
|
|
2244
|
+
* if object is supplied compare options, if function, compare match callback
|
|
2245
|
+
*
|
|
2246
|
+
* @function
|
|
2247
|
+
* @param {object || function} [target] the target for comparison
|
|
2248
|
+
*/
|
|
2249
|
+
equals: function(e) {
|
|
2250
|
+
return this.options === e || this.options.match === e;
|
|
2251
|
+
}
|
|
2252
|
+
}, De = r, De;
|
|
2253
|
+
}
|
|
2254
|
+
var $e, Ot;
|
|
2255
|
+
function vr() {
|
|
2256
|
+
if (Ot) return $e;
|
|
2257
|
+
Ot = 1;
|
|
2258
|
+
function r(i, t) {
|
|
2259
|
+
var a = 0, o = i.length, s;
|
|
2260
|
+
for (a; a < o && (s = t(i[a], a), s !== !1); a++)
|
|
2261
|
+
;
|
|
2262
|
+
}
|
|
2263
|
+
function e(i) {
|
|
2264
|
+
return Object.prototype.toString.apply(i) === "[object Array]";
|
|
2265
|
+
}
|
|
2266
|
+
function n(i) {
|
|
2267
|
+
return typeof i == "function";
|
|
2268
|
+
}
|
|
2269
|
+
return $e = {
|
|
2270
|
+
isFunction: n,
|
|
2271
|
+
isArray: e,
|
|
2272
|
+
each: r
|
|
2273
|
+
}, $e;
|
|
2274
|
+
}
|
|
2275
|
+
var He, _t;
|
|
2276
|
+
function to() {
|
|
2277
|
+
if (_t) return He;
|
|
2278
|
+
_t = 1;
|
|
2279
|
+
var r = eo(), e = vr().each;
|
|
2280
|
+
function n(i, t) {
|
|
2281
|
+
this.query = i, this.isUnconditional = t, this.handlers = [], this.mql = window.matchMedia(i);
|
|
2282
|
+
var a = this;
|
|
2283
|
+
this.listener = function(o) {
|
|
2284
|
+
a.mql = o.currentTarget || o, a.assess();
|
|
2285
|
+
}, this.mql.addListener(this.listener);
|
|
2286
|
+
}
|
|
2287
|
+
return n.prototype = {
|
|
2288
|
+
constuctor: n,
|
|
2289
|
+
/**
|
|
2290
|
+
* add a handler for this query, triggering if already active
|
|
2291
|
+
*
|
|
2292
|
+
* @param {object} handler
|
|
2293
|
+
* @param {function} handler.match callback for when query is activated
|
|
2294
|
+
* @param {function} [handler.unmatch] callback for when query is deactivated
|
|
2295
|
+
* @param {function} [handler.setup] callback for immediate execution when a query handler is registered
|
|
2296
|
+
* @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
|
|
2297
|
+
*/
|
|
2298
|
+
addHandler: function(i) {
|
|
2299
|
+
var t = new r(i);
|
|
2300
|
+
this.handlers.push(t), this.matches() && t.on();
|
|
2301
|
+
},
|
|
2302
|
+
/**
|
|
2303
|
+
* removes the given handler from the collection, and calls it's destroy methods
|
|
2304
|
+
*
|
|
2305
|
+
* @param {object || function} handler the handler to remove
|
|
2306
|
+
*/
|
|
2307
|
+
removeHandler: function(i) {
|
|
2308
|
+
var t = this.handlers;
|
|
2309
|
+
e(t, function(a, o) {
|
|
2310
|
+
if (a.equals(i))
|
|
2311
|
+
return a.destroy(), !t.splice(o, 1);
|
|
2312
|
+
});
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
* Determine whether the media query should be considered a match
|
|
2316
|
+
*
|
|
2317
|
+
* @return {Boolean} true if media query can be considered a match, false otherwise
|
|
2318
|
+
*/
|
|
2319
|
+
matches: function() {
|
|
2320
|
+
return this.mql.matches || this.isUnconditional;
|
|
2321
|
+
},
|
|
2322
|
+
/**
|
|
2323
|
+
* Clears all handlers and unbinds events
|
|
2324
|
+
*/
|
|
2325
|
+
clear: function() {
|
|
2326
|
+
e(this.handlers, function(i) {
|
|
2327
|
+
i.destroy();
|
|
2328
|
+
}), this.mql.removeListener(this.listener), this.handlers.length = 0;
|
|
2329
|
+
},
|
|
2330
|
+
/*
|
|
2331
|
+
* Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
|
|
2332
|
+
*/
|
|
2333
|
+
assess: function() {
|
|
2334
|
+
var i = this.matches() ? "on" : "off";
|
|
2335
|
+
e(this.handlers, function(t) {
|
|
2336
|
+
t[i]();
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
2339
|
+
}, He = n, He;
|
|
2340
|
+
}
|
|
2341
|
+
var Ne, Pt;
|
|
2342
|
+
function ro() {
|
|
2343
|
+
if (Pt) return Ne;
|
|
2344
|
+
Pt = 1;
|
|
2345
|
+
var r = to(), e = vr(), n = e.each, i = e.isFunction, t = e.isArray;
|
|
2346
|
+
function a() {
|
|
2347
|
+
if (!window.matchMedia)
|
|
2348
|
+
throw new Error("matchMedia not present, legacy browsers require a polyfill");
|
|
2349
|
+
this.queries = {}, this.browserIsIncapable = !window.matchMedia("only all").matches;
|
|
2350
|
+
}
|
|
2351
|
+
return a.prototype = {
|
|
2352
|
+
constructor: a,
|
|
2353
|
+
/**
|
|
2354
|
+
* Registers a handler for the given media query
|
|
2355
|
+
*
|
|
2356
|
+
* @param {string} q the media query
|
|
2357
|
+
* @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
|
|
2358
|
+
* @param {function} options.match fired when query matched
|
|
2359
|
+
* @param {function} [options.unmatch] fired when a query is no longer matched
|
|
2360
|
+
* @param {function} [options.setup] fired when handler first triggered
|
|
2361
|
+
* @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
|
|
2362
|
+
* @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
|
|
2363
|
+
*/
|
|
2364
|
+
register: function(o, s, l) {
|
|
2365
|
+
var u = this.queries, d = l && this.browserIsIncapable;
|
|
2366
|
+
return u[o] || (u[o] = new r(o, d)), i(s) && (s = { match: s }), t(s) || (s = [s]), n(s, function(c) {
|
|
2367
|
+
i(c) && (c = { match: c }), u[o].addHandler(c);
|
|
2368
|
+
}), this;
|
|
2369
|
+
},
|
|
2370
|
+
/**
|
|
2371
|
+
* unregisters a query and all it's handlers, or a specific handler for a query
|
|
2372
|
+
*
|
|
2373
|
+
* @param {string} q the media query to target
|
|
2374
|
+
* @param {object || function} [handler] specific handler to unregister
|
|
2375
|
+
*/
|
|
2376
|
+
unregister: function(o, s) {
|
|
2377
|
+
var l = this.queries[o];
|
|
2378
|
+
return l && (s ? l.removeHandler(s) : (l.clear(), delete this.queries[o])), this;
|
|
2379
|
+
}
|
|
2380
|
+
}, Ne = a, Ne;
|
|
2381
|
+
}
|
|
2382
|
+
var We, kt;
|
|
2383
|
+
function no() {
|
|
2384
|
+
if (kt) return We;
|
|
2385
|
+
kt = 1;
|
|
2386
|
+
var r = ro();
|
|
2387
|
+
return We = new r(), We;
|
|
2388
|
+
}
|
|
2389
|
+
(function(r) {
|
|
2390
|
+
Object.defineProperty(r, "__esModule", {
|
|
2391
|
+
value: !0
|
|
2392
|
+
}), r.default = void 0;
|
|
2393
|
+
var e = o(X), n = ke, i = o(Zi), t = o(nt), a = f;
|
|
2394
|
+
function o(h) {
|
|
2395
|
+
return h && h.__esModule ? h : { default: h };
|
|
2396
|
+
}
|
|
2397
|
+
function s(h) {
|
|
2398
|
+
"@babel/helpers - typeof";
|
|
2399
|
+
return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2400
|
+
return typeof v;
|
|
2401
|
+
} : function(v) {
|
|
2402
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2403
|
+
}, s(h);
|
|
2404
|
+
}
|
|
2405
|
+
function l() {
|
|
2406
|
+
return l = Object.assign ? Object.assign.bind() : function(h) {
|
|
2407
|
+
for (var v = 1; v < arguments.length; v++) {
|
|
2408
|
+
var L = arguments[v];
|
|
2409
|
+
for (var P in L)
|
|
2410
|
+
Object.prototype.hasOwnProperty.call(L, P) && (h[P] = L[P]);
|
|
2411
|
+
}
|
|
2412
|
+
return h;
|
|
2413
|
+
}, l.apply(this, arguments);
|
|
2414
|
+
}
|
|
2415
|
+
function u(h, v) {
|
|
2416
|
+
var L = Object.keys(h);
|
|
2417
|
+
if (Object.getOwnPropertySymbols) {
|
|
2418
|
+
var P = Object.getOwnPropertySymbols(h);
|
|
2419
|
+
v && (P = P.filter(function(k) {
|
|
2420
|
+
return Object.getOwnPropertyDescriptor(h, k).enumerable;
|
|
2421
|
+
})), L.push.apply(L, P);
|
|
2422
|
+
}
|
|
2423
|
+
return L;
|
|
2424
|
+
}
|
|
2425
|
+
function d(h) {
|
|
2426
|
+
for (var v = 1; v < arguments.length; v++) {
|
|
2427
|
+
var L = arguments[v] != null ? arguments[v] : {};
|
|
2428
|
+
v % 2 ? u(Object(L), !0).forEach(function(P) {
|
|
2429
|
+
j(h, P, L[P]);
|
|
2430
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(L)) : u(Object(L)).forEach(function(P) {
|
|
2431
|
+
Object.defineProperty(h, P, Object.getOwnPropertyDescriptor(L, P));
|
|
2432
|
+
});
|
|
2433
|
+
}
|
|
2434
|
+
return h;
|
|
2435
|
+
}
|
|
2436
|
+
function c(h, v) {
|
|
2437
|
+
if (!(h instanceof v))
|
|
2438
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2439
|
+
}
|
|
2440
|
+
function m(h, v) {
|
|
2441
|
+
for (var L = 0; L < v.length; L++) {
|
|
2442
|
+
var P = v[L];
|
|
2443
|
+
P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(h, C(P.key), P);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
function E(h, v, L) {
|
|
2447
|
+
return v && m(h.prototype, v), Object.defineProperty(h, "prototype", { writable: !1 }), h;
|
|
2448
|
+
}
|
|
2449
|
+
function O(h, v) {
|
|
2450
|
+
if (typeof v != "function" && v !== null)
|
|
2451
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
2452
|
+
h.prototype = Object.create(v && v.prototype, { constructor: { value: h, writable: !0, configurable: !0 } }), Object.defineProperty(h, "prototype", { writable: !1 }), v && g(h, v);
|
|
2453
|
+
}
|
|
2454
|
+
function g(h, v) {
|
|
2455
|
+
return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(P, k) {
|
|
2456
|
+
return P.__proto__ = k, P;
|
|
2457
|
+
}, g(h, v);
|
|
2458
|
+
}
|
|
2459
|
+
function b(h) {
|
|
2460
|
+
var v = w();
|
|
2461
|
+
return function() {
|
|
2462
|
+
var P = x(h), k;
|
|
2463
|
+
if (v) {
|
|
2464
|
+
var T = x(this).constructor;
|
|
2465
|
+
k = Reflect.construct(P, arguments, T);
|
|
2466
|
+
} else
|
|
2467
|
+
k = P.apply(this, arguments);
|
|
2468
|
+
return y(this, k);
|
|
2469
|
+
};
|
|
2470
|
+
}
|
|
2471
|
+
function y(h, v) {
|
|
2472
|
+
if (v && (s(v) === "object" || typeof v == "function"))
|
|
2473
|
+
return v;
|
|
2474
|
+
if (v !== void 0)
|
|
2475
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2476
|
+
return p(h);
|
|
2477
|
+
}
|
|
2478
|
+
function p(h) {
|
|
2479
|
+
if (h === void 0)
|
|
2480
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2481
|
+
return h;
|
|
2482
|
+
}
|
|
2483
|
+
function w() {
|
|
2484
|
+
try {
|
|
2485
|
+
var h = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2486
|
+
}));
|
|
2487
|
+
} catch {
|
|
2488
|
+
}
|
|
2489
|
+
return (w = function() {
|
|
2490
|
+
return !!h;
|
|
2491
|
+
})();
|
|
2492
|
+
}
|
|
2493
|
+
function x(h) {
|
|
2494
|
+
return x = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(L) {
|
|
2495
|
+
return L.__proto__ || Object.getPrototypeOf(L);
|
|
2496
|
+
}, x(h);
|
|
2497
|
+
}
|
|
2498
|
+
function j(h, v, L) {
|
|
2499
|
+
return v = C(v), v in h ? Object.defineProperty(h, v, { value: L, enumerable: !0, configurable: !0, writable: !0 }) : h[v] = L, h;
|
|
2500
|
+
}
|
|
2501
|
+
function C(h) {
|
|
2502
|
+
var v = A(h, "string");
|
|
2503
|
+
return s(v) == "symbol" ? v : String(v);
|
|
2504
|
+
}
|
|
2505
|
+
function A(h, v) {
|
|
2506
|
+
if (s(h) != "object" || !h) return h;
|
|
2507
|
+
var L = h[Symbol.toPrimitive];
|
|
2508
|
+
if (L !== void 0) {
|
|
2509
|
+
var P = L.call(h, v || "default");
|
|
2510
|
+
if (s(P) != "object") return P;
|
|
2511
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2512
|
+
}
|
|
2513
|
+
return (v === "string" ? String : Number)(h);
|
|
2514
|
+
}
|
|
2515
|
+
var W = (0, a.canUseDOM)() && no();
|
|
2516
|
+
r.default = /* @__PURE__ */ function(h) {
|
|
2517
|
+
O(L, h);
|
|
2518
|
+
var v = b(L);
|
|
2519
|
+
function L(P) {
|
|
2520
|
+
var k;
|
|
2521
|
+
return c(this, L), k = v.call(this, P), j(p(k), "innerSliderRefHandler", function(T) {
|
|
2522
|
+
return k.innerSlider = T;
|
|
2523
|
+
}), j(p(k), "slickPrev", function() {
|
|
2524
|
+
return k.innerSlider.slickPrev();
|
|
2525
|
+
}), j(p(k), "slickNext", function() {
|
|
2526
|
+
return k.innerSlider.slickNext();
|
|
2527
|
+
}), j(p(k), "slickGoTo", function(T) {
|
|
2528
|
+
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2529
|
+
return k.innerSlider.slickGoTo(T, U);
|
|
2530
|
+
}), j(p(k), "slickPause", function() {
|
|
2531
|
+
return k.innerSlider.pause("paused");
|
|
2532
|
+
}), j(p(k), "slickPlay", function() {
|
|
2533
|
+
return k.innerSlider.autoPlay("play");
|
|
2534
|
+
}), k.state = {
|
|
2535
|
+
breakpoint: null
|
|
2536
|
+
}, k._responsiveMediaHandlers = [], k;
|
|
2537
|
+
}
|
|
2538
|
+
return E(L, [{
|
|
2539
|
+
key: "media",
|
|
2540
|
+
value: function(k, T) {
|
|
2541
|
+
W.register(k, T), this._responsiveMediaHandlers.push({
|
|
2542
|
+
query: k,
|
|
2543
|
+
handler: T
|
|
2544
|
+
});
|
|
2545
|
+
}
|
|
2546
|
+
// handles responsive breakpoints
|
|
2547
|
+
}, {
|
|
2548
|
+
key: "componentDidMount",
|
|
2549
|
+
value: function() {
|
|
2550
|
+
var k = this;
|
|
2551
|
+
if (this.props.responsive) {
|
|
2552
|
+
var T = this.props.responsive.map(function($) {
|
|
2553
|
+
return $.breakpoint;
|
|
2554
|
+
});
|
|
2555
|
+
T.sort(function($, q) {
|
|
2556
|
+
return $ - q;
|
|
2557
|
+
}), T.forEach(function($, q) {
|
|
2558
|
+
var K;
|
|
2559
|
+
q === 0 ? K = (0, i.default)({
|
|
2560
|
+
minWidth: 0,
|
|
2561
|
+
maxWidth: $
|
|
2562
|
+
}) : K = (0, i.default)({
|
|
2563
|
+
minWidth: T[q - 1] + 1,
|
|
2564
|
+
maxWidth: $
|
|
2565
|
+
}), (0, a.canUseDOM)() && k.media(K, function() {
|
|
2566
|
+
k.setState({
|
|
2567
|
+
breakpoint: $
|
|
2568
|
+
});
|
|
2569
|
+
});
|
|
2570
|
+
});
|
|
2571
|
+
var U = (0, i.default)({
|
|
2572
|
+
minWidth: T.slice(-1)[0]
|
|
2573
|
+
});
|
|
2574
|
+
(0, a.canUseDOM)() && this.media(U, function() {
|
|
2575
|
+
k.setState({
|
|
2576
|
+
breakpoint: null
|
|
2577
|
+
});
|
|
2578
|
+
});
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
}, {
|
|
2582
|
+
key: "componentWillUnmount",
|
|
2583
|
+
value: function() {
|
|
2584
|
+
this._responsiveMediaHandlers.forEach(function(k) {
|
|
2585
|
+
W.unregister(k.query, k.handler);
|
|
2586
|
+
});
|
|
2587
|
+
}
|
|
2588
|
+
}, {
|
|
2589
|
+
key: "render",
|
|
2590
|
+
value: function() {
|
|
2591
|
+
var k = this, T, U;
|
|
2592
|
+
this.state.breakpoint ? (U = this.props.responsive.filter(function(ae) {
|
|
2593
|
+
return ae.breakpoint === k.state.breakpoint;
|
|
2594
|
+
}), T = U[0].settings === "unslick" ? "unslick" : d(d(d({}, t.default), this.props), U[0].settings)) : T = d(d({}, t.default), this.props), T.centerMode && (T.slidesToScroll > 1, T.slidesToScroll = 1), T.fade && (T.slidesToShow > 1, T.slidesToScroll > 1, T.slidesToShow = 1, T.slidesToScroll = 1);
|
|
2595
|
+
var $ = e.default.Children.toArray(this.props.children);
|
|
2596
|
+
$ = $.filter(function(ae) {
|
|
2597
|
+
return typeof ae == "string" ? !!ae.trim() : !!ae;
|
|
2598
|
+
}), T.variableWidth && (T.rows > 1 || T.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), T.variableWidth = !1);
|
|
2599
|
+
for (var q = [], K = null, B = 0; B < $.length; B += T.rows * T.slidesPerRow) {
|
|
2600
|
+
for (var je = [], V = B; V < B + T.rows * T.slidesPerRow; V += T.slidesPerRow) {
|
|
2601
|
+
for (var ot = [], Q = V; Q < V + T.slidesPerRow && (T.variableWidth && $[Q].props.style && (K = $[Q].props.style.width), !(Q >= $.length)); Q += 1)
|
|
2602
|
+
ot.push(/* @__PURE__ */ e.default.cloneElement($[Q], {
|
|
2603
|
+
key: 100 * B + 10 * V + Q,
|
|
2604
|
+
tabIndex: -1,
|
|
2605
|
+
style: {
|
|
2606
|
+
width: "".concat(100 / T.slidesPerRow, "%"),
|
|
2607
|
+
display: "inline-block"
|
|
2608
|
+
}
|
|
2609
|
+
}));
|
|
2610
|
+
je.push(/* @__PURE__ */ e.default.createElement("div", {
|
|
2611
|
+
key: 10 * B + V
|
|
2612
|
+
}, ot));
|
|
2613
|
+
}
|
|
2614
|
+
T.variableWidth ? q.push(/* @__PURE__ */ e.default.createElement("div", {
|
|
2615
|
+
key: B,
|
|
2616
|
+
style: {
|
|
2617
|
+
width: K
|
|
2618
|
+
}
|
|
2619
|
+
}, je)) : q.push(/* @__PURE__ */ e.default.createElement("div", {
|
|
2620
|
+
key: B
|
|
2621
|
+
}, je));
|
|
2622
|
+
}
|
|
2623
|
+
if (T === "unslick") {
|
|
2624
|
+
var yr = "regular slider " + (this.props.className || "");
|
|
2625
|
+
return /* @__PURE__ */ e.default.createElement("div", {
|
|
2626
|
+
className: yr
|
|
2627
|
+
}, $);
|
|
2628
|
+
} else q.length <= T.slidesToShow && !T.infinite && (T.unslick = !0);
|
|
2629
|
+
return /* @__PURE__ */ e.default.createElement(n.InnerSlider, l({
|
|
2630
|
+
style: this.props.style,
|
|
2631
|
+
ref: this.innerSliderRefHandler
|
|
2632
|
+
}, (0, a.filterSettings)(T)), q);
|
|
2633
|
+
}
|
|
2634
|
+
}]), L;
|
|
2635
|
+
}(e.default.Component);
|
|
2636
|
+
})(It);
|
|
2637
|
+
(function(r) {
|
|
2638
|
+
Object.defineProperty(r, "__esModule", {
|
|
2639
|
+
value: !0
|
|
2640
|
+
}), r.default = void 0;
|
|
2641
|
+
var e = n(It);
|
|
2642
|
+
function n(i) {
|
|
2643
|
+
return i && i.__esModule ? i : { default: i };
|
|
2644
|
+
}
|
|
2645
|
+
r.default = e.default;
|
|
2646
|
+
})(zt);
|
|
2647
|
+
const io = /* @__PURE__ */ wr(zt), oo = () => io, ao = /* @__PURE__ */ z(oo())({
|
|
2648
|
+
name: "Carousel",
|
|
2649
|
+
class: "c1f9jjsn",
|
|
2650
|
+
propsAsIs: !0
|
|
2651
|
+
}), so = /* @__PURE__ */ z("div")({
|
|
2652
|
+
name: "Dot",
|
|
2653
|
+
class: "d25r51y",
|
|
2654
|
+
propsAsIs: !1
|
|
2655
|
+
}), lo = /* @__PURE__ */ z("div")({
|
|
2656
|
+
name: "Dots",
|
|
2657
|
+
class: "d1lvrmx8",
|
|
2658
|
+
propsAsIs: !1
|
|
2659
|
+
}), Tt = {
|
|
2660
|
+
dots: !0,
|
|
2661
|
+
infinite: !1,
|
|
2662
|
+
arrows: !1,
|
|
2663
|
+
centerMode: !0,
|
|
2664
|
+
centerPadding: "19px",
|
|
2665
|
+
speed: 500,
|
|
2666
|
+
rows: 1,
|
|
2667
|
+
slidesToShow: 1,
|
|
2668
|
+
slidesToScroll: 1,
|
|
2669
|
+
appendDots: (r) => /* @__PURE__ */ F(lo, { children: [
|
|
2670
|
+
" ",
|
|
2671
|
+
r,
|
|
2672
|
+
" "
|
|
2673
|
+
] }),
|
|
2674
|
+
customPaging: (r) => /* @__PURE__ */ _(so, { children: /* @__PURE__ */ _("div", {}) }, r)
|
|
2675
|
+
};
|
|
2676
|
+
function uo(r, e, n) {
|
|
2677
|
+
let i = /* @__PURE__ */ new Set([...e, void 0]);
|
|
2678
|
+
return r.listen((t, a, o) => {
|
|
2679
|
+
i.has(o) && n(t, a, o);
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2682
|
+
function co(r, e = {}) {
|
|
2683
|
+
let n = Pe(
|
|
2684
|
+
(t) => e.keys ? uo(r, e.keys, t) : r.listen(t),
|
|
2685
|
+
[e.keys, r]
|
|
2686
|
+
), i = r.get.bind(r);
|
|
2687
|
+
return gr(n, i, i);
|
|
2688
|
+
}
|
|
2689
|
+
const fo = ({ gamification: r, autoplay: e, swipeable: n, changeHeightOnInit: i, height: t, onEvent: a, centerPadding: o }) => {
|
|
2690
|
+
const s = Fe(), l = Fe(null), { data: u, error: d, loading: c } = co(r.betPack.getStore()), { listOfQuestions: m, countQuestionsAvailable: E } = xt(() => {
|
|
2691
|
+
const y = u ? Object.values(u) : [];
|
|
2692
|
+
return {
|
|
2693
|
+
listOfQuestions: y,
|
|
2694
|
+
countQuestionsAvailable: y.filter(({ marketClosed: p }) => !p).length
|
|
2695
|
+
};
|
|
2696
|
+
}, [u]);
|
|
2697
|
+
qe(() => {
|
|
2698
|
+
!d && !c && u !== void 0 && a({
|
|
2699
|
+
type: "slBetPackReady",
|
|
2700
|
+
payload: {
|
|
2701
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2702
|
+
// @ts-expect-error
|
|
2703
|
+
next: () => {
|
|
2704
|
+
var y;
|
|
2705
|
+
return (y = l.current) == null ? void 0 : y.slickNext();
|
|
2706
|
+
},
|
|
2707
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2708
|
+
// @ts-expect-error
|
|
2709
|
+
prev: () => {
|
|
2710
|
+
var y;
|
|
2711
|
+
return (y = l.current) == null ? void 0 : y.slickPrev();
|
|
2712
|
+
},
|
|
2713
|
+
current: 0,
|
|
2714
|
+
canNext: !0,
|
|
2715
|
+
canPrev: !1
|
|
2716
|
+
}
|
|
2717
|
+
});
|
|
2718
|
+
}, [u, d, c, a]);
|
|
2719
|
+
const O = Pe(
|
|
2720
|
+
async (y, p) => {
|
|
2721
|
+
try {
|
|
2722
|
+
await r.betPackVote(y, p);
|
|
2723
|
+
} finally {
|
|
2724
|
+
s.current && clearTimeout(s.current), e && (s.current = setTimeout(() => {
|
|
2725
|
+
var w;
|
|
2726
|
+
(w = l.current) == null || w.slickNext();
|
|
2727
|
+
}, 2e3));
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
[r, l, e]
|
|
2731
|
+
);
|
|
2732
|
+
if (qe(() => () => {
|
|
2733
|
+
s.current && clearTimeout(s.current);
|
|
2734
|
+
}, []), c || u === void 0)
|
|
2735
|
+
return /* @__PURE__ */ _(Rt, {});
|
|
2736
|
+
if (d || u === null || !Object.keys(u).length)
|
|
2737
|
+
return /* @__PURE__ */ _(
|
|
2738
|
+
Mt,
|
|
2739
|
+
{
|
|
2740
|
+
actionFn: () => a({ type: "slHardRefresh" }),
|
|
2741
|
+
description: "It looks like we couldn't load the questions."
|
|
2742
|
+
}
|
|
2743
|
+
);
|
|
2744
|
+
const g = (y) => {
|
|
2745
|
+
var p;
|
|
2746
|
+
if (a({
|
|
2747
|
+
type: "slBetPackChangeCard",
|
|
2748
|
+
payload: {
|
|
2749
|
+
current: y,
|
|
2750
|
+
canNext: y < Object.keys(u).length + 1,
|
|
2751
|
+
canPrev: y >= 1
|
|
2752
|
+
}
|
|
2753
|
+
}), y !== 0 && y !== Object.keys(u).length + 1 && (p = m[y - 1]) != null && p.id) {
|
|
2754
|
+
r.openQuestion(m[y - 1].id);
|
|
2755
|
+
return;
|
|
2756
|
+
}
|
|
2757
|
+
r.closeQuestion();
|
|
2758
|
+
}, b = (y) => y ? /* @__PURE__ */ _(rt, { height: t, children: /* @__PURE__ */ _(Ur, { question: y, vote: O }) }, y.id) : null;
|
|
2759
|
+
return /* @__PURE__ */ F(
|
|
2760
|
+
ao,
|
|
2761
|
+
{
|
|
2762
|
+
...Tt,
|
|
2763
|
+
swipe: n,
|
|
2764
|
+
onInit: i,
|
|
2765
|
+
centerPadding: o || Tt.centerPadding,
|
|
2766
|
+
afterChange: g,
|
|
2767
|
+
beforeChange: () => {
|
|
2768
|
+
s.current && clearTimeout(s.current);
|
|
2769
|
+
},
|
|
2770
|
+
ref: l,
|
|
2771
|
+
children: [
|
|
2772
|
+
/* @__PURE__ */ _(an, { height: t, sliderRef: l, countQuestionsAvailable: E }),
|
|
2773
|
+
Object.values(u).map(b),
|
|
2774
|
+
/* @__PURE__ */ _(Fr, { onEvent: a, height: t })
|
|
2775
|
+
]
|
|
2776
|
+
}
|
|
2777
|
+
);
|
|
2778
|
+
}, fe = "slBetPackCb", po = Or("betPack-ui"), vo = (r, e = {}) => {
|
|
2779
|
+
var n, i;
|
|
2780
|
+
po.debug({ id: fe, type: r, ...e }), (n = window.top) == null || n.postMessage({ id: fe, type: r, ...e }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[fe] && window.webkit.messageHandlers[fe].postMessage({ type: r, ...e }), (i = window.slBetPackCb) != null && i.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: r, ...e, from: "base" }));
|
|
2781
|
+
}, ho = (r) => {
|
|
2782
|
+
vo(r.type);
|
|
2783
|
+
}, yo = /* @__PURE__ */ z("div")({
|
|
2784
|
+
name: "Container",
|
|
2785
|
+
class: "c1mj28sn",
|
|
2786
|
+
propsAsIs: !1
|
|
2787
|
+
}), go = /* @__PURE__ */ z("button")({
|
|
2788
|
+
name: "CloseButton",
|
|
2789
|
+
class: "coc9f01",
|
|
2790
|
+
propsAsIs: !1
|
|
2791
|
+
}), Et = "b590k5k", mo = () => ee, hr = /* @__PURE__ */ z(mo())({
|
|
2792
|
+
name: "IconArrowPrev",
|
|
2793
|
+
class: "i1tkem14",
|
|
2794
|
+
propsAsIs: !0
|
|
2795
|
+
}), bo = () => hr, So = /* @__PURE__ */ z(bo())({
|
|
2796
|
+
name: "IconArrowNext",
|
|
2797
|
+
class: "i175qlj5",
|
|
2798
|
+
propsAsIs: !0
|
|
2799
|
+
}), wo = /* @__PURE__ */ z("div")({
|
|
2800
|
+
name: "Header",
|
|
2801
|
+
class: "h1foi3kz",
|
|
2802
|
+
propsAsIs: !1
|
|
2803
|
+
}), Oo = /* @__PURE__ */ z("div")({
|
|
2804
|
+
name: "HeaderTitle",
|
|
2805
|
+
class: "hc2d48a",
|
|
2806
|
+
propsAsIs: !1
|
|
2807
|
+
}), _o = /* @__PURE__ */ z("div")({
|
|
2808
|
+
name: "Main",
|
|
2809
|
+
class: "mgfyjlp",
|
|
2810
|
+
propsAsIs: !1
|
|
2811
|
+
}), Po = /* @__PURE__ */ z("div")({
|
|
2812
|
+
name: "Footer",
|
|
2813
|
+
class: "f1vakhu9",
|
|
2814
|
+
propsAsIs: !1
|
|
2815
|
+
}), Ct = /* @__PURE__ */ z("button")({
|
|
2816
|
+
name: "SlideSwitchButton",
|
|
2817
|
+
class: "spp13y7",
|
|
2818
|
+
propsAsIs: !1
|
|
2819
|
+
}), jo = ({ sdk: r, onEvent: e, close: n, isMobile: i }) => {
|
|
2820
|
+
const [t, a] = Be(), [o, s] = Be(), l = Pe(
|
|
2821
|
+
(u) => {
|
|
2822
|
+
if (u.type === "slBetPackReady") {
|
|
2823
|
+
const { next: d, prev: c, current: m, canNext: E, canPrev: O } = u.payload || {};
|
|
2824
|
+
a({ next: d, prev: c }), s({ current: m, canNext: E, canPrev: O });
|
|
2825
|
+
}
|
|
2826
|
+
if (u.type === "slBetPackChangeCard") {
|
|
2827
|
+
const { current: d, canNext: c, canPrev: m } = u.payload || {};
|
|
2828
|
+
s({ current: d, canNext: c, canPrev: m });
|
|
2829
|
+
}
|
|
2830
|
+
e == null || e(u);
|
|
2831
|
+
},
|
|
2832
|
+
[e]
|
|
2833
|
+
);
|
|
2834
|
+
return /* @__PURE__ */ F(yo, { children: [
|
|
2835
|
+
/* @__PURE__ */ F(wo, { children: [
|
|
2836
|
+
/* @__PURE__ */ F(Oo, { children: [
|
|
2837
|
+
/* @__PURE__ */ _(ee, { name: "icon-trophy-bet-pack" }),
|
|
2838
|
+
"LiveMatch Experience",
|
|
2839
|
+
" "
|
|
2840
|
+
] }),
|
|
2841
|
+
/* @__PURE__ */ _(go, { onClick: n, children: /* @__PURE__ */ _(ee, { name: "icon-close-btn-gray" }) })
|
|
2842
|
+
] }),
|
|
2843
|
+
/* @__PURE__ */ _(_o, { children: /* @__PURE__ */ _(
|
|
2844
|
+
ko,
|
|
2845
|
+
{
|
|
2846
|
+
sdk: r,
|
|
2847
|
+
onEvent: l,
|
|
2848
|
+
swipeable: !!i,
|
|
2849
|
+
centerPadding: i ? "18px" : "50px",
|
|
2850
|
+
heightOffset: i ? 0 : 35
|
|
2851
|
+
}
|
|
2852
|
+
) }),
|
|
2853
|
+
!i && /* @__PURE__ */ F(Po, { children: [
|
|
2854
|
+
/* @__PURE__ */ _(Ct, { onClick: t == null ? void 0 : t.prev, disabled: !(o != null && o.canPrev), children: /* @__PURE__ */ _(hr, { name: "iconArrowPrev", className: st((o == null ? void 0 : o.canPrev) && Et) }) }),
|
|
2855
|
+
/* @__PURE__ */ _(Ct, { onClick: t == null ? void 0 : t.next, disabled: !(o != null && o.canNext), children: /* @__PURE__ */ _(So, { name: "iconArrowPrev", className: st((o == null ? void 0 : o.canNext) && Et) }) })
|
|
2856
|
+
] })
|
|
2857
|
+
] });
|
|
2858
|
+
}, ko = mr(({ sdk: r, swipeable: e = !0, heightOffset: n = 65, onEvent: i = ho, centerPadding: t }) => {
|
|
2859
|
+
const a = at(r.featuresList.getStore()), o = xt(() => r.getFeature(_r.GAMES), [a]), s = at(r.getUserStore()), l = Fe(null), [u, d] = Be(), c = Pe(() => {
|
|
2860
|
+
l.current && d(l.current.clientHeight);
|
|
2861
|
+
}, []);
|
|
2862
|
+
return qe(() => {
|
|
2863
|
+
const m = () => {
|
|
2864
|
+
l.current && d(l.current.clientHeight);
|
|
2865
|
+
};
|
|
2866
|
+
return window.addEventListener("resize", m), () => {
|
|
2867
|
+
window.removeEventListener("resize", m);
|
|
2868
|
+
};
|
|
2869
|
+
}, []), s.data ? o ? /* @__PURE__ */ _(Pr, { ref: l, children: /* @__PURE__ */ _(
|
|
2870
|
+
fo,
|
|
2871
|
+
{
|
|
2872
|
+
gamification: o,
|
|
2873
|
+
onEvent: i,
|
|
2874
|
+
swipeable: e,
|
|
2875
|
+
centerPadding: t,
|
|
2876
|
+
changeHeightOnInit: c,
|
|
2877
|
+
height: u ? u - n : void 0
|
|
2878
|
+
}
|
|
2879
|
+
) }) : /* @__PURE__ */ _("div", { children: "no gamification" }) : s.error && !s.loading ? /* @__PURE__ */ _(
|
|
2880
|
+
Mt,
|
|
2881
|
+
{
|
|
2882
|
+
actionFn: () => i({ type: "slHardRefresh" }),
|
|
2883
|
+
description: "You are not authorized to view this resource."
|
|
2884
|
+
}
|
|
2885
|
+
) : /* @__PURE__ */ _(Rt, {});
|
|
2886
|
+
});
|
|
2887
|
+
export {
|
|
2888
|
+
ko as Y,
|
|
2889
|
+
jo as r
|
|
2890
|
+
};
|