@streamlayer/react-ui 1.22.3 → 1.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2841 @@
1
+ import { jsx as He } from "react/jsx-runtime";
2
+ import { styled as W } from "@linaria/react";
3
+ import A, { forwardRef as ye, useState as X, useRef as R, useEffect as de, useLayoutEffect as je, createContext as Pe } from "react";
4
+ import { SvgIcon as We } from "./ui/icons/index.js";
5
+ function ge(t) {
6
+ return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
7
+ }
8
+ function me(t, e) {
9
+ t === void 0 && (t = {}), e === void 0 && (e = {});
10
+ const i = ["__proto__", "constructor", "prototype"];
11
+ Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
12
+ typeof t[s] > "u" ? t[s] = e[s] : ge(e[s]) && ge(t[s]) && Object.keys(e[s]).length > 0 && me(t[s], e[s]);
13
+ });
14
+ }
15
+ const Ce = {
16
+ body: {},
17
+ addEventListener() {
18
+ },
19
+ removeEventListener() {
20
+ },
21
+ activeElement: {
22
+ blur() {
23
+ },
24
+ nodeName: ""
25
+ },
26
+ querySelector() {
27
+ return null;
28
+ },
29
+ querySelectorAll() {
30
+ return [];
31
+ },
32
+ getElementById() {
33
+ return null;
34
+ },
35
+ createEvent() {
36
+ return {
37
+ initEvent() {
38
+ }
39
+ };
40
+ },
41
+ createElement() {
42
+ return {
43
+ children: [],
44
+ childNodes: [],
45
+ style: {},
46
+ setAttribute() {
47
+ },
48
+ getElementsByTagName() {
49
+ return [];
50
+ }
51
+ };
52
+ },
53
+ createElementNS() {
54
+ return {};
55
+ },
56
+ importNode() {
57
+ return null;
58
+ },
59
+ location: {
60
+ hash: "",
61
+ host: "",
62
+ hostname: "",
63
+ href: "",
64
+ origin: "",
65
+ pathname: "",
66
+ protocol: "",
67
+ search: ""
68
+ }
69
+ };
70
+ function q() {
71
+ const t = typeof document < "u" ? document : {};
72
+ return me(t, Ce), t;
73
+ }
74
+ const qe = {
75
+ document: Ce,
76
+ navigator: {
77
+ userAgent: ""
78
+ },
79
+ location: {
80
+ hash: "",
81
+ host: "",
82
+ hostname: "",
83
+ href: "",
84
+ origin: "",
85
+ pathname: "",
86
+ protocol: "",
87
+ search: ""
88
+ },
89
+ history: {
90
+ replaceState() {
91
+ },
92
+ pushState() {
93
+ },
94
+ go() {
95
+ },
96
+ back() {
97
+ }
98
+ },
99
+ CustomEvent: function() {
100
+ return this;
101
+ },
102
+ addEventListener() {
103
+ },
104
+ removeEventListener() {
105
+ },
106
+ getComputedStyle() {
107
+ return {
108
+ getPropertyValue() {
109
+ return "";
110
+ }
111
+ };
112
+ },
113
+ Image() {
114
+ },
115
+ Date() {
116
+ },
117
+ screen: {},
118
+ setTimeout() {
119
+ },
120
+ clearTimeout() {
121
+ },
122
+ matchMedia() {
123
+ return {};
124
+ },
125
+ requestAnimationFrame(t) {
126
+ return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
127
+ },
128
+ cancelAnimationFrame(t) {
129
+ typeof setTimeout > "u" || clearTimeout(t);
130
+ }
131
+ };
132
+ function V() {
133
+ const t = typeof window < "u" ? window : {};
134
+ return me(t, qe), t;
135
+ }
136
+ function Ye(t) {
137
+ return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
138
+ }
139
+ function Xe(t) {
140
+ const e = t;
141
+ Object.keys(e).forEach((i) => {
142
+ try {
143
+ e[i] = null;
144
+ } catch {
145
+ }
146
+ try {
147
+ delete e[i];
148
+ } catch {
149
+ }
150
+ });
151
+ }
152
+ function ce(t, e) {
153
+ return e === void 0 && (e = 0), setTimeout(t, e);
154
+ }
155
+ function J() {
156
+ return Date.now();
157
+ }
158
+ function Ke(t) {
159
+ const e = V();
160
+ let i;
161
+ return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
162
+ }
163
+ function Ue(t, e) {
164
+ e === void 0 && (e = "x");
165
+ const i = V();
166
+ let s, n, r;
167
+ const l = Ke(t);
168
+ return i.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((o) => o.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
169
+ }
170
+ function U(t) {
171
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
172
+ }
173
+ function Qe(t) {
174
+ return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
175
+ }
176
+ function D() {
177
+ const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
178
+ for (let i = 1; i < arguments.length; i += 1) {
179
+ const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
180
+ if (s != null && !Qe(s)) {
181
+ const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
182
+ for (let r = 0, l = n.length; r < l; r += 1) {
183
+ const o = n[r], a = Object.getOwnPropertyDescriptor(s, o);
184
+ a !== void 0 && a.enumerable && (U(t[o]) && U(s[o]) ? s[o].__swiper__ ? t[o] = s[o] : D(t[o], s[o]) : !U(t[o]) && U(s[o]) ? (t[o] = {}, s[o].__swiper__ ? t[o] = s[o] : D(t[o], s[o])) : t[o] = s[o]);
185
+ }
186
+ }
187
+ }
188
+ return t;
189
+ }
190
+ function Q(t, e, i) {
191
+ t.style.setProperty(e, i);
192
+ }
193
+ function Me(t) {
194
+ let {
195
+ swiper: e,
196
+ targetPosition: i,
197
+ side: s
198
+ } = t;
199
+ const n = V(), r = -e.translate;
200
+ let l = null, o;
201
+ const a = e.params.speed;
202
+ e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
203
+ const d = i > r ? "next" : "prev", c = (u, p) => d === "next" && u >= p || d === "prev" && u <= p, f = () => {
204
+ o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
205
+ const u = Math.max(Math.min((o - l) / a, 1), 0), p = 0.5 - Math.cos(u * Math.PI) / 2;
206
+ let m = r + p * (i - r);
207
+ if (c(m, i) && (m = i), e.wrapperEl.scrollTo({
208
+ [s]: m
209
+ }), c(m, i)) {
210
+ e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
211
+ e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
212
+ [s]: m
213
+ });
214
+ }), n.cancelAnimationFrame(e.cssModeFrameID);
215
+ return;
216
+ }
217
+ e.cssModeFrameID = n.requestAnimationFrame(f);
218
+ };
219
+ f();
220
+ }
221
+ function k(t, e) {
222
+ e === void 0 && (e = "");
223
+ const i = V(), s = [...t.children];
224
+ return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
225
+ }
226
+ function Ze(t, e) {
227
+ const i = [e];
228
+ for (; i.length > 0; ) {
229
+ const s = i.shift();
230
+ if (t === s)
231
+ return !0;
232
+ i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
233
+ }
234
+ }
235
+ function Je(t, e) {
236
+ const i = V();
237
+ let s = e.contains(t);
238
+ return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = Ze(t, e))), s;
239
+ }
240
+ function ee(t) {
241
+ try {
242
+ console.warn(t);
243
+ return;
244
+ } catch {
245
+ }
246
+ }
247
+ function fe(t, e) {
248
+ e === void 0 && (e = []);
249
+ const i = document.createElement(t);
250
+ return i.classList.add(...Array.isArray(e) ? e : Ye(e)), i;
251
+ }
252
+ function et(t, e) {
253
+ const i = [];
254
+ for (; t.previousElementSibling; ) {
255
+ const s = t.previousElementSibling;
256
+ e ? s.matches(e) && i.push(s) : i.push(s), t = s;
257
+ }
258
+ return i;
259
+ }
260
+ function tt(t, e) {
261
+ const i = [];
262
+ for (; t.nextElementSibling; ) {
263
+ const s = t.nextElementSibling;
264
+ e ? s.matches(e) && i.push(s) : i.push(s), t = s;
265
+ }
266
+ return i;
267
+ }
268
+ function H(t, e) {
269
+ return V().getComputedStyle(t, null).getPropertyValue(e);
270
+ }
271
+ function ve(t) {
272
+ let e = t, i;
273
+ if (e) {
274
+ for (i = 0; (e = e.previousSibling) !== null; )
275
+ e.nodeType === 1 && (i += 1);
276
+ return i;
277
+ }
278
+ }
279
+ function it(t, e) {
280
+ const i = [];
281
+ let s = t.parentElement;
282
+ for (; s; )
283
+ e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
284
+ return i;
285
+ }
286
+ function we(t, e, i) {
287
+ const s = V();
288
+ return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
289
+ }
290
+ function Oi(t) {
291
+ return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
292
+ }
293
+ let ie;
294
+ function st() {
295
+ const t = V(), e = q();
296
+ return {
297
+ smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
298
+ touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
299
+ };
300
+ }
301
+ function Ie() {
302
+ return ie || (ie = st()), ie;
303
+ }
304
+ let se;
305
+ function rt(t) {
306
+ let {
307
+ userAgent: e
308
+ } = t === void 0 ? {} : t;
309
+ const i = Ie(), s = V(), n = s.navigator.platform, r = e || s.navigator.userAgent, l = {
310
+ ios: !1,
311
+ android: !1
312
+ }, o = s.screen.width, a = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
313
+ let c = r.match(/(iPad).*OS\s([\d_]+)/);
314
+ const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), u = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), p = n === "Win32";
315
+ let m = n === "MacIntel";
316
+ const v = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
317
+ return !c && m && i.touch && v.indexOf(`${o}x${a}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), m = !1), d && !p && (l.os = "android", l.android = !0), (c || u || f) && (l.os = "ios", l.ios = !0), l;
318
+ }
319
+ function Oe(t) {
320
+ return t === void 0 && (t = {}), se || (se = rt(t)), se;
321
+ }
322
+ let re;
323
+ function nt() {
324
+ const t = V(), e = Oe();
325
+ let i = !1;
326
+ function s() {
327
+ const o = t.navigator.userAgent.toLowerCase();
328
+ return o.indexOf("safari") >= 0 && o.indexOf("chrome") < 0 && o.indexOf("android") < 0;
329
+ }
330
+ if (s()) {
331
+ const o = String(t.navigator.userAgent);
332
+ if (o.includes("Version/")) {
333
+ const [a, d] = o.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
334
+ i = a < 16 || a === 16 && d < 2;
335
+ }
336
+ }
337
+ const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = s(), l = r || n && e.ios;
338
+ return {
339
+ isSafari: i || r,
340
+ needPerspectiveFix: i,
341
+ need3dFix: l,
342
+ isWebView: n
343
+ };
344
+ }
345
+ function Le() {
346
+ return re || (re = nt()), re;
347
+ }
348
+ function ot(t) {
349
+ let {
350
+ swiper: e,
351
+ on: i,
352
+ emit: s
353
+ } = t;
354
+ const n = V();
355
+ let r = null, l = null;
356
+ const o = () => {
357
+ !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
358
+ }, a = () => {
359
+ !e || e.destroyed || !e.initialized || (r = new ResizeObserver((f) => {
360
+ l = n.requestAnimationFrame(() => {
361
+ const {
362
+ width: u,
363
+ height: p
364
+ } = e;
365
+ let m = u, v = p;
366
+ f.forEach((C) => {
367
+ let {
368
+ contentBoxSize: h,
369
+ contentRect: S,
370
+ target: g
371
+ } = C;
372
+ g && g !== e.el || (m = S ? S.width : (h[0] || h).inlineSize, v = S ? S.height : (h[0] || h).blockSize);
373
+ }), (m !== u || v !== p) && o();
374
+ });
375
+ }), r.observe(e.el));
376
+ }, d = () => {
377
+ l && n.cancelAnimationFrame(l), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
378
+ }, c = () => {
379
+ !e || e.destroyed || !e.initialized || s("orientationchange");
380
+ };
381
+ i("init", () => {
382
+ if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
383
+ a();
384
+ return;
385
+ }
386
+ n.addEventListener("resize", o), n.addEventListener("orientationchange", c);
387
+ }), i("destroy", () => {
388
+ d(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", c);
389
+ });
390
+ }
391
+ function lt(t) {
392
+ let {
393
+ swiper: e,
394
+ extendParams: i,
395
+ on: s,
396
+ emit: n
397
+ } = t;
398
+ const r = [], l = V(), o = function(c, f) {
399
+ f === void 0 && (f = {});
400
+ const u = l.MutationObserver || l.WebkitMutationObserver, p = new u((m) => {
401
+ if (e.__preventObserver__) return;
402
+ if (m.length === 1) {
403
+ n("observerUpdate", m[0]);
404
+ return;
405
+ }
406
+ const v = function() {
407
+ n("observerUpdate", m[0]);
408
+ };
409
+ l.requestAnimationFrame ? l.requestAnimationFrame(v) : l.setTimeout(v, 0);
410
+ });
411
+ p.observe(c, {
412
+ attributes: typeof f.attributes > "u" ? !0 : f.attributes,
413
+ childList: e.isElement || (typeof f.childList > "u" ? !0 : f).childList,
414
+ characterData: typeof f.characterData > "u" ? !0 : f.characterData
415
+ }), r.push(p);
416
+ }, a = () => {
417
+ if (e.params.observer) {
418
+ if (e.params.observeParents) {
419
+ const c = it(e.hostEl);
420
+ for (let f = 0; f < c.length; f += 1)
421
+ o(c[f]);
422
+ }
423
+ o(e.hostEl, {
424
+ childList: e.params.observeSlideChildren
425
+ }), o(e.wrapperEl, {
426
+ attributes: !1
427
+ });
428
+ }
429
+ }, d = () => {
430
+ r.forEach((c) => {
431
+ c.disconnect();
432
+ }), r.splice(0, r.length);
433
+ };
434
+ i({
435
+ observer: !1,
436
+ observeParents: !1,
437
+ observeSlideChildren: !1
438
+ }), s("init", a), s("destroy", d);
439
+ }
440
+ var at = {
441
+ on(t, e, i) {
442
+ const s = this;
443
+ if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
444
+ const n = i ? "unshift" : "push";
445
+ return t.split(" ").forEach((r) => {
446
+ s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](e);
447
+ }), s;
448
+ },
449
+ once(t, e, i) {
450
+ const s = this;
451
+ if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
452
+ function n() {
453
+ s.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
454
+ for (var r = arguments.length, l = new Array(r), o = 0; o < r; o++)
455
+ l[o] = arguments[o];
456
+ e.apply(s, l);
457
+ }
458
+ return n.__emitterProxy = e, s.on(t, n, i);
459
+ },
460
+ onAny(t, e) {
461
+ const i = this;
462
+ if (!i.eventsListeners || i.destroyed || typeof t != "function") return i;
463
+ const s = e ? "unshift" : "push";
464
+ return i.eventsAnyListeners.indexOf(t) < 0 && i.eventsAnyListeners[s](t), i;
465
+ },
466
+ offAny(t) {
467
+ const e = this;
468
+ if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners) return e;
469
+ const i = e.eventsAnyListeners.indexOf(t);
470
+ return i >= 0 && e.eventsAnyListeners.splice(i, 1), e;
471
+ },
472
+ off(t, e) {
473
+ const i = this;
474
+ return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
475
+ typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((n, r) => {
476
+ (n === e || n.__emitterProxy && n.__emitterProxy === e) && i.eventsListeners[s].splice(r, 1);
477
+ });
478
+ }), i;
479
+ },
480
+ emit() {
481
+ const t = this;
482
+ if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
483
+ let e, i, s;
484
+ for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++)
485
+ r[l] = arguments[l];
486
+ return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], i = r.slice(1, r.length), s = t) : (e = r[0].events, i = r[0].data, s = r[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((a) => {
487
+ t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((d) => {
488
+ d.apply(s, [a, ...i]);
489
+ }), t.eventsListeners && t.eventsListeners[a] && t.eventsListeners[a].forEach((d) => {
490
+ d.apply(s, i);
491
+ });
492
+ }), t;
493
+ }
494
+ };
495
+ function dt() {
496
+ const t = this;
497
+ let e, i;
498
+ const s = t.el;
499
+ typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(H(s, "padding-left") || 0, 10) - parseInt(H(s, "padding-right") || 0, 10), i = i - parseInt(H(s, "padding-top") || 0, 10) - parseInt(H(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
500
+ width: e,
501
+ height: i,
502
+ size: t.isHorizontal() ? e : i
503
+ }));
504
+ }
505
+ function ct() {
506
+ const t = this;
507
+ function e(w, x) {
508
+ return parseFloat(w.getPropertyValue(t.getDirectionLabel(x)) || 0);
509
+ }
510
+ const i = t.params, {
511
+ wrapperEl: s,
512
+ slidesEl: n,
513
+ size: r,
514
+ rtlTranslate: l,
515
+ wrongRTL: o
516
+ } = t, a = t.virtual && i.virtual.enabled, d = a ? t.virtual.slides.length : t.slides.length, c = k(n, `.${t.params.slideClass}, swiper-slide`), f = a ? t.virtual.slides.length : c.length;
517
+ let u = [];
518
+ const p = [], m = [];
519
+ let v = i.slidesOffsetBefore;
520
+ typeof v == "function" && (v = i.slidesOffsetBefore.call(t));
521
+ let C = i.slidesOffsetAfter;
522
+ typeof C == "function" && (C = i.slidesOffsetAfter.call(t));
523
+ const h = t.snapGrid.length, S = t.slidesGrid.length;
524
+ let g = i.spaceBetween, E = -v, b = 0, P = 0;
525
+ if (typeof r > "u")
526
+ return;
527
+ typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, c.forEach((w) => {
528
+ l ? w.style.marginLeft = "" : w.style.marginRight = "", w.style.marginBottom = "", w.style.marginTop = "";
529
+ }), i.centeredSlides && i.cssMode && (Q(s, "--swiper-centered-offset-before", ""), Q(s, "--swiper-centered-offset-after", ""));
530
+ const M = i.grid && i.grid.rows > 1 && t.grid;
531
+ M ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
532
+ let y;
533
+ const T = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((w) => typeof i.breakpoints[w].slidesPerView < "u").length > 0;
534
+ for (let w = 0; w < f; w += 1) {
535
+ y = 0;
536
+ let x;
537
+ if (c[w] && (x = c[w]), M && t.grid.updateSlide(w, x, c), !(c[w] && H(x, "display") === "none")) {
538
+ if (i.slidesPerView === "auto") {
539
+ T && (c[w].style[t.getDirectionLabel("width")] = "");
540
+ const I = getComputedStyle(x), z = x.style.transform, B = x.style.webkitTransform;
541
+ if (z && (x.style.transform = "none"), B && (x.style.webkitTransform = "none"), i.roundLengths)
542
+ y = t.isHorizontal() ? we(x, "width") : we(x, "height");
543
+ else {
544
+ const N = e(I, "width"), O = e(I, "padding-left"), _ = e(I, "padding-right"), G = e(I, "margin-left"), L = e(I, "margin-right"), F = I.getPropertyValue("box-sizing");
545
+ if (F && F === "border-box")
546
+ y = N + G + L;
547
+ else {
548
+ const {
549
+ clientWidth: $e,
550
+ offsetWidth: ke
551
+ } = x;
552
+ y = N + O + _ + G + L + (ke - $e);
553
+ }
554
+ }
555
+ z && (x.style.transform = z), B && (x.style.webkitTransform = B), i.roundLengths && (y = Math.floor(y));
556
+ } else
557
+ y = (r - (i.slidesPerView - 1) * g) / i.slidesPerView, i.roundLengths && (y = Math.floor(y)), c[w] && (c[w].style[t.getDirectionLabel("width")] = `${y}px`);
558
+ c[w] && (c[w].swiperSlideSize = y), m.push(y), i.centeredSlides ? (E = E + y / 2 + b / 2 + g, b === 0 && w !== 0 && (E = E - r / 2 - g), w === 0 && (E = E - r / 2 - g), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), P % i.slidesPerGroup === 0 && u.push(E), p.push(E)) : (i.roundLengths && (E = Math.floor(E)), (P - Math.min(t.params.slidesPerGroupSkip, P)) % t.params.slidesPerGroup === 0 && u.push(E), p.push(E), E = E + y + g), t.virtualSize += y + g, b = y, P += 1;
559
+ }
560
+ }
561
+ if (t.virtualSize = Math.max(t.virtualSize, r) + C, l && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + g}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + g}px`), M && t.grid.updateWrapperSize(y, u), !i.centeredSlides) {
562
+ const w = [];
563
+ for (let x = 0; x < u.length; x += 1) {
564
+ let I = u[x];
565
+ i.roundLengths && (I = Math.floor(I)), u[x] <= t.virtualSize - r && w.push(I);
566
+ }
567
+ u = w, Math.floor(t.virtualSize - r) - Math.floor(u[u.length - 1]) > 1 && u.push(t.virtualSize - r);
568
+ }
569
+ if (a && i.loop) {
570
+ const w = m[0] + g;
571
+ if (i.slidesPerGroup > 1) {
572
+ const x = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I = w * i.slidesPerGroup;
573
+ for (let z = 0; z < x; z += 1)
574
+ u.push(u[u.length - 1] + I);
575
+ }
576
+ for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
577
+ i.slidesPerGroup === 1 && u.push(u[u.length - 1] + w), p.push(p[p.length - 1] + w), t.virtualSize += w;
578
+ }
579
+ if (u.length === 0 && (u = [0]), g !== 0) {
580
+ const w = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
581
+ c.filter((x, I) => !i.cssMode || i.loop ? !0 : I !== c.length - 1).forEach((x) => {
582
+ x.style[w] = `${g}px`;
583
+ });
584
+ }
585
+ if (i.centeredSlides && i.centeredSlidesBounds) {
586
+ let w = 0;
587
+ m.forEach((I) => {
588
+ w += I + (g || 0);
589
+ }), w -= g;
590
+ const x = w > r ? w - r : 0;
591
+ u = u.map((I) => I <= 0 ? -v : I > x ? x + C : I);
592
+ }
593
+ if (i.centerInsufficientSlides) {
594
+ let w = 0;
595
+ m.forEach((I) => {
596
+ w += I + (g || 0);
597
+ }), w -= g;
598
+ const x = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
599
+ if (w + x < r) {
600
+ const I = (r - w - x) / 2;
601
+ u.forEach((z, B) => {
602
+ u[B] = z - I;
603
+ }), p.forEach((z, B) => {
604
+ p[B] = z + I;
605
+ });
606
+ }
607
+ }
608
+ if (Object.assign(t, {
609
+ slides: c,
610
+ snapGrid: u,
611
+ slidesGrid: p,
612
+ slidesSizesGrid: m
613
+ }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
614
+ Q(s, "--swiper-centered-offset-before", `${-u[0]}px`), Q(s, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
615
+ const w = -t.snapGrid[0], x = -t.slidesGrid[0];
616
+ t.snapGrid = t.snapGrid.map((I) => I + w), t.slidesGrid = t.slidesGrid.map((I) => I + x);
617
+ }
618
+ if (f !== d && t.emit("slidesLengthChange"), u.length !== h && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), p.length !== S && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !a && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
619
+ const w = `${i.containerModifierClass}backface-hidden`, x = t.el.classList.contains(w);
620
+ f <= i.maxBackfaceHiddenSlides ? x || t.el.classList.add(w) : x && t.el.classList.remove(w);
621
+ }
622
+ }
623
+ function ft(t) {
624
+ const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
625
+ let n = 0, r;
626
+ typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
627
+ const l = (o) => s ? e.slides[e.getSlideIndexByData(o)] : e.slides[o];
628
+ if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
629
+ if (e.params.centeredSlides)
630
+ (e.visibleSlides || []).forEach((o) => {
631
+ i.push(o);
632
+ });
633
+ else
634
+ for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
635
+ const o = e.activeIndex + r;
636
+ if (o > e.slides.length && !s) break;
637
+ i.push(l(o));
638
+ }
639
+ else
640
+ i.push(l(e.activeIndex));
641
+ for (r = 0; r < i.length; r += 1)
642
+ if (typeof i[r] < "u") {
643
+ const o = i[r].offsetHeight;
644
+ n = o > n ? o : n;
645
+ }
646
+ (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
647
+ }
648
+ function ut() {
649
+ const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
650
+ for (let s = 0; s < e.length; s += 1)
651
+ e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
652
+ }
653
+ const Se = (t, e, i) => {
654
+ e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
655
+ };
656
+ function pt(t) {
657
+ t === void 0 && (t = this && this.translate || 0);
658
+ const e = this, i = e.params, {
659
+ slides: s,
660
+ rtlTranslate: n,
661
+ snapGrid: r
662
+ } = e;
663
+ if (s.length === 0) return;
664
+ typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
665
+ let l = -t;
666
+ n && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
667
+ let o = i.spaceBetween;
668
+ typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * e.size : typeof o == "string" && (o = parseFloat(o));
669
+ for (let a = 0; a < s.length; a += 1) {
670
+ const d = s[a];
671
+ let c = d.swiperSlideOffset;
672
+ i.cssMode && i.centeredSlides && (c -= s[0].swiperSlideOffset);
673
+ const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + o), u = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + o), p = -(l - c), m = p + e.slidesSizesGrid[a], v = p >= 0 && p <= e.size - e.slidesSizesGrid[a], C = p >= 0 && p < e.size - 1 || m > 1 && m <= e.size || p <= 0 && m >= e.size;
674
+ C && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(a)), Se(d, C, i.slideVisibleClass), Se(d, v, i.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -u : u;
675
+ }
676
+ }
677
+ function mt(t) {
678
+ const e = this;
679
+ if (typeof t > "u") {
680
+ const c = e.rtlTranslate ? -1 : 1;
681
+ t = e && e.translate && e.translate * c || 0;
682
+ }
683
+ const i = e.params, s = e.maxTranslate() - e.minTranslate();
684
+ let {
685
+ progress: n,
686
+ isBeginning: r,
687
+ isEnd: l,
688
+ progressLoop: o
689
+ } = e;
690
+ const a = r, d = l;
691
+ if (s === 0)
692
+ n = 0, r = !0, l = !0;
693
+ else {
694
+ n = (t - e.minTranslate()) / s;
695
+ const c = Math.abs(t - e.minTranslate()) < 1, f = Math.abs(t - e.maxTranslate()) < 1;
696
+ r = c || n <= 0, l = f || n >= 1, c && (n = 0), f && (n = 1);
697
+ }
698
+ if (i.loop) {
699
+ const c = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), u = e.slidesGrid[c], p = e.slidesGrid[f], m = e.slidesGrid[e.slidesGrid.length - 1], v = Math.abs(t);
700
+ v >= u ? o = (v - u) / m : o = (v + m - p) / m, o > 1 && (o -= 1);
701
+ }
702
+ Object.assign(e, {
703
+ progress: n,
704
+ progressLoop: o,
705
+ isBeginning: r,
706
+ isEnd: l
707
+ }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !a && e.emit("reachBeginning toEdge"), l && !d && e.emit("reachEnd toEdge"), (a && !r || d && !l) && e.emit("fromEdge"), e.emit("progress", n);
708
+ }
709
+ const ne = (t, e, i) => {
710
+ e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
711
+ };
712
+ function ht() {
713
+ const t = this, {
714
+ slides: e,
715
+ params: i,
716
+ slidesEl: s,
717
+ activeIndex: n
718
+ } = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, o = (f) => k(s, `.${i.slideClass}${f}, swiper-slide${f}`)[0];
719
+ let a, d, c;
720
+ if (r)
721
+ if (i.loop) {
722
+ let f = n - t.virtual.slidesBefore;
723
+ f < 0 && (f = t.virtual.slides.length + f), f >= t.virtual.slides.length && (f -= t.virtual.slides.length), a = o(`[data-swiper-slide-index="${f}"]`);
724
+ } else
725
+ a = o(`[data-swiper-slide-index="${n}"]`);
726
+ else
727
+ l ? (a = e.find((f) => f.column === n), c = e.find((f) => f.column === n + 1), d = e.find((f) => f.column === n - 1)) : a = e[n];
728
+ a && (l || (c = tt(a, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d = et(a, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
729
+ ne(f, f === a, i.slideActiveClass), ne(f, f === c, i.slideNextClass), ne(f, f === d, i.slidePrevClass);
730
+ }), t.emitSlidesClasses();
731
+ }
732
+ const Z = (t, e) => {
733
+ if (!t || t.destroyed || !t.params) return;
734
+ const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
735
+ if (s) {
736
+ let n = s.querySelector(`.${t.params.lazyPreloaderClass}`);
737
+ !n && t.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
738
+ s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
739
+ })), n && n.remove();
740
+ }
741
+ }, oe = (t, e) => {
742
+ if (!t.slides[e]) return;
743
+ const i = t.slides[e].querySelector('[loading="lazy"]');
744
+ i && i.removeAttribute("loading");
745
+ }, ue = (t) => {
746
+ if (!t || t.destroyed || !t.params) return;
747
+ let e = t.params.lazyPreloadPrevNext;
748
+ const i = t.slides.length;
749
+ if (!i || !e || e < 0) return;
750
+ e = Math.min(e, i);
751
+ const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
752
+ if (t.params.grid && t.params.grid.rows > 1) {
753
+ const l = n, o = [l - e];
754
+ o.push(...Array.from({
755
+ length: e
756
+ }).map((a, d) => l + s + d)), t.slides.forEach((a, d) => {
757
+ o.includes(a.column) && oe(t, d);
758
+ });
759
+ return;
760
+ }
761
+ const r = n + s - 1;
762
+ if (t.params.rewind || t.params.loop)
763
+ for (let l = n - e; l <= r + e; l += 1) {
764
+ const o = (l % i + i) % i;
765
+ (o < n || o > r) && oe(t, o);
766
+ }
767
+ else
768
+ for (let l = Math.max(n - e, 0); l <= Math.min(r + e, i - 1); l += 1)
769
+ l !== n && (l > r || l < n) && oe(t, l);
770
+ };
771
+ function gt(t) {
772
+ const {
773
+ slidesGrid: e,
774
+ params: i
775
+ } = t, s = t.rtlTranslate ? t.translate : -t.translate;
776
+ let n;
777
+ for (let r = 0; r < e.length; r += 1)
778
+ typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
779
+ return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
780
+ }
781
+ function vt(t) {
782
+ const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
783
+ snapGrid: s,
784
+ params: n,
785
+ activeIndex: r,
786
+ realIndex: l,
787
+ snapIndex: o
788
+ } = e;
789
+ let a = t, d;
790
+ const c = (p) => {
791
+ let m = p - e.virtual.slidesBefore;
792
+ return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
793
+ };
794
+ if (typeof a > "u" && (a = gt(e)), s.indexOf(i) >= 0)
795
+ d = s.indexOf(i);
796
+ else {
797
+ const p = Math.min(n.slidesPerGroupSkip, a);
798
+ d = p + Math.floor((a - p) / n.slidesPerGroup);
799
+ }
800
+ if (d >= s.length && (d = s.length - 1), a === r && !e.params.loop) {
801
+ d !== o && (e.snapIndex = d, e.emit("snapIndexChange"));
802
+ return;
803
+ }
804
+ if (a === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
805
+ e.realIndex = c(a);
806
+ return;
807
+ }
808
+ const f = e.grid && n.grid && n.grid.rows > 1;
809
+ let u;
810
+ if (e.virtual && n.virtual.enabled && n.loop)
811
+ u = c(a);
812
+ else if (f) {
813
+ const p = e.slides.find((v) => v.column === a);
814
+ let m = parseInt(p.getAttribute("data-swiper-slide-index"), 10);
815
+ Number.isNaN(m) && (m = Math.max(e.slides.indexOf(p), 0)), u = Math.floor(m / n.grid.rows);
816
+ } else if (e.slides[a]) {
817
+ const p = e.slides[a].getAttribute("data-swiper-slide-index");
818
+ p ? u = parseInt(p, 10) : u = a;
819
+ } else
820
+ u = a;
821
+ Object.assign(e, {
822
+ previousSnapIndex: o,
823
+ snapIndex: d,
824
+ previousRealIndex: l,
825
+ realIndex: u,
826
+ previousIndex: r,
827
+ activeIndex: a
828
+ }), e.initialized && ue(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== u && e.emit("realIndexChange"), e.emit("slideChange"));
829
+ }
830
+ function wt(t, e) {
831
+ const i = this, s = i.params;
832
+ let n = t.closest(`.${s.slideClass}, swiper-slide`);
833
+ !n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
834
+ !n && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (n = o);
835
+ });
836
+ let r = !1, l;
837
+ if (n) {
838
+ for (let o = 0; o < i.slides.length; o += 1)
839
+ if (i.slides[o] === n) {
840
+ r = !0, l = o;
841
+ break;
842
+ }
843
+ }
844
+ if (n && r)
845
+ i.clickedSlide = n, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = l;
846
+ else {
847
+ i.clickedSlide = void 0, i.clickedIndex = void 0;
848
+ return;
849
+ }
850
+ s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
851
+ }
852
+ var St = {
853
+ updateSize: dt,
854
+ updateSlides: ct,
855
+ updateAutoHeight: ft,
856
+ updateSlidesOffset: ut,
857
+ updateSlidesProgress: pt,
858
+ updateProgress: mt,
859
+ updateSlidesClasses: ht,
860
+ updateActiveIndex: vt,
861
+ updateClickedSlide: wt
862
+ };
863
+ function Tt(t) {
864
+ t === void 0 && (t = this.isHorizontal() ? "x" : "y");
865
+ const e = this, {
866
+ params: i,
867
+ rtlTranslate: s,
868
+ translate: n,
869
+ wrapperEl: r
870
+ } = e;
871
+ if (i.virtualTranslate)
872
+ return s ? -n : n;
873
+ if (i.cssMode)
874
+ return n;
875
+ let l = Ue(r, t);
876
+ return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
877
+ }
878
+ function bt(t, e) {
879
+ const i = this, {
880
+ rtlTranslate: s,
881
+ params: n,
882
+ wrapperEl: r,
883
+ progress: l
884
+ } = i;
885
+ let o = 0, a = 0;
886
+ const d = 0;
887
+ i.isHorizontal() ? o = s ? -t : t : a = t, n.roundLengths && (o = Math.floor(o), a = Math.floor(a)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? o : a, n.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -o : -a : n.virtualTranslate || (i.isHorizontal() ? o -= i.cssOverflowAdjustment() : a -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${a}px, ${d}px)`);
888
+ let c;
889
+ const f = i.maxTranslate() - i.minTranslate();
890
+ f === 0 ? c = 0 : c = (t - i.minTranslate()) / f, c !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
891
+ }
892
+ function xt() {
893
+ return -this.snapGrid[0];
894
+ }
895
+ function Et() {
896
+ return -this.snapGrid[this.snapGrid.length - 1];
897
+ }
898
+ function yt(t, e, i, s, n) {
899
+ t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
900
+ const r = this, {
901
+ params: l,
902
+ wrapperEl: o
903
+ } = r;
904
+ if (r.animating && l.preventInteractionOnTransition)
905
+ return !1;
906
+ const a = r.minTranslate(), d = r.maxTranslate();
907
+ let c;
908
+ if (s && t > a ? c = a : s && t < d ? c = d : c = t, r.updateProgress(c), l.cssMode) {
909
+ const f = r.isHorizontal();
910
+ if (e === 0)
911
+ o[f ? "scrollLeft" : "scrollTop"] = -c;
912
+ else {
913
+ if (!r.support.smoothScroll)
914
+ return Me({
915
+ swiper: r,
916
+ targetPosition: -c,
917
+ side: f ? "left" : "top"
918
+ }), !0;
919
+ o.scrollTo({
920
+ [f ? "left" : "top"]: -c,
921
+ behavior: "smooth"
922
+ });
923
+ }
924
+ return !0;
925
+ }
926
+ return e === 0 ? (r.setTransition(0), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(u) {
927
+ !r || r.destroyed || u.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
928
+ }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
929
+ }
930
+ var Pt = {
931
+ getTranslate: Tt,
932
+ setTranslate: bt,
933
+ minTranslate: xt,
934
+ maxTranslate: Et,
935
+ translateTo: yt
936
+ };
937
+ function Ct(t, e) {
938
+ const i = this;
939
+ i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
940
+ }
941
+ function ze(t) {
942
+ let {
943
+ swiper: e,
944
+ runCallbacks: i,
945
+ direction: s,
946
+ step: n
947
+ } = t;
948
+ const {
949
+ activeIndex: r,
950
+ previousIndex: l
951
+ } = e;
952
+ let o = s;
953
+ if (o || (r > l ? o = "next" : r < l ? o = "prev" : o = "reset"), e.emit(`transition${n}`), i && r !== l) {
954
+ if (o === "reset") {
955
+ e.emit(`slideResetTransition${n}`);
956
+ return;
957
+ }
958
+ e.emit(`slideChangeTransition${n}`), o === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
959
+ }
960
+ }
961
+ function Mt(t, e) {
962
+ t === void 0 && (t = !0);
963
+ const i = this, {
964
+ params: s
965
+ } = i;
966
+ s.cssMode || (s.autoHeight && i.updateAutoHeight(), ze({
967
+ swiper: i,
968
+ runCallbacks: t,
969
+ direction: e,
970
+ step: "Start"
971
+ }));
972
+ }
973
+ function It(t, e) {
974
+ t === void 0 && (t = !0);
975
+ const i = this, {
976
+ params: s
977
+ } = i;
978
+ i.animating = !1, !s.cssMode && (i.setTransition(0), ze({
979
+ swiper: i,
980
+ runCallbacks: t,
981
+ direction: e,
982
+ step: "End"
983
+ }));
984
+ }
985
+ var Ot = {
986
+ setTransition: Ct,
987
+ transitionStart: Mt,
988
+ transitionEnd: It
989
+ };
990
+ function Lt(t, e, i, s, n) {
991
+ t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
992
+ const r = this;
993
+ let l = t;
994
+ l < 0 && (l = 0);
995
+ const {
996
+ params: o,
997
+ snapGrid: a,
998
+ slidesGrid: d,
999
+ previousIndex: c,
1000
+ activeIndex: f,
1001
+ rtlTranslate: u,
1002
+ wrapperEl: p,
1003
+ enabled: m
1004
+ } = r;
1005
+ if (!m && !s && !n || r.destroyed || r.animating && o.preventInteractionOnTransition)
1006
+ return !1;
1007
+ typeof e > "u" && (e = r.params.speed);
1008
+ const v = Math.min(r.params.slidesPerGroupSkip, l);
1009
+ let C = v + Math.floor((l - v) / r.params.slidesPerGroup);
1010
+ C >= a.length && (C = a.length - 1);
1011
+ const h = -a[C];
1012
+ if (o.normalizeSlideIndex)
1013
+ for (let M = 0; M < d.length; M += 1) {
1014
+ const y = -Math.floor(h * 100), T = Math.floor(d[M] * 100), w = Math.floor(d[M + 1] * 100);
1015
+ typeof d[M + 1] < "u" ? y >= T && y < w - (w - T) / 2 ? l = M : y >= T && y < w && (l = M + 1) : y >= T && (l = M);
1016
+ }
1017
+ if (r.initialized && l !== f && (!r.allowSlideNext && (u ? h > r.translate && h > r.minTranslate() : h < r.translate && h < r.minTranslate()) || !r.allowSlidePrev && h > r.translate && h > r.maxTranslate() && (f || 0) !== l))
1018
+ return !1;
1019
+ l !== (c || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(h);
1020
+ let S;
1021
+ l > f ? S = "next" : l < f ? S = "prev" : S = "reset";
1022
+ const g = r.virtual && r.params.virtual.enabled;
1023
+ if (!(g && n) && (u && -h === r.translate || !u && h === r.translate))
1024
+ return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(h), S !== "reset" && (r.transitionStart(i, S), r.transitionEnd(i, S)), !1;
1025
+ if (o.cssMode) {
1026
+ const M = r.isHorizontal(), y = u ? h : -h;
1027
+ if (e === 0)
1028
+ g && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), g && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1029
+ p[M ? "scrollLeft" : "scrollTop"] = y;
1030
+ })) : p[M ? "scrollLeft" : "scrollTop"] = y, g && requestAnimationFrame(() => {
1031
+ r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
1032
+ });
1033
+ else {
1034
+ if (!r.support.smoothScroll)
1035
+ return Me({
1036
+ swiper: r,
1037
+ targetPosition: y,
1038
+ side: M ? "left" : "top"
1039
+ }), !0;
1040
+ p.scrollTo({
1041
+ [M ? "left" : "top"]: y,
1042
+ behavior: "smooth"
1043
+ });
1044
+ }
1045
+ return !0;
1046
+ }
1047
+ const P = Le().isSafari;
1048
+ return g && !n && P && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(h), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, S), e === 0 ? r.transitionEnd(i, S) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(y) {
1049
+ !r || r.destroyed || y.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, S));
1050
+ }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
1051
+ }
1052
+ function zt(t, e, i, s) {
1053
+ t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1054
+ const n = this;
1055
+ if (n.destroyed) return;
1056
+ typeof e > "u" && (e = n.params.speed);
1057
+ const r = n.grid && n.params.grid && n.params.grid.rows > 1;
1058
+ let l = t;
1059
+ if (n.params.loop)
1060
+ if (n.virtual && n.params.virtual.enabled)
1061
+ l = l + n.virtual.slidesBefore;
1062
+ else {
1063
+ let o;
1064
+ if (r) {
1065
+ const u = l * n.params.grid.rows;
1066
+ o = n.slides.find((p) => p.getAttribute("data-swiper-slide-index") * 1 === u).column;
1067
+ } else
1068
+ o = n.getSlideIndexByData(l);
1069
+ const a = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
1070
+ centeredSlides: d
1071
+ } = n.params;
1072
+ let c = n.params.slidesPerView;
1073
+ c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
1074
+ let f = a - o < c;
1075
+ if (d && (f = f || o < Math.ceil(c / 2)), s && d && n.params.slidesPerView !== "auto" && !r && (f = !1), f) {
1076
+ const u = d ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1077
+ n.loopFix({
1078
+ direction: u,
1079
+ slideTo: !0,
1080
+ activeSlideIndex: u === "next" ? o + 1 : o - a + 1,
1081
+ slideRealIndex: u === "next" ? n.realIndex : void 0
1082
+ });
1083
+ }
1084
+ if (r) {
1085
+ const u = l * n.params.grid.rows;
1086
+ l = n.slides.find((p) => p.getAttribute("data-swiper-slide-index") * 1 === u).column;
1087
+ } else
1088
+ l = n.getSlideIndexByData(l);
1089
+ }
1090
+ return requestAnimationFrame(() => {
1091
+ n.slideTo(l, e, i, s);
1092
+ }), n;
1093
+ }
1094
+ function At(t, e, i) {
1095
+ e === void 0 && (e = !0);
1096
+ const s = this, {
1097
+ enabled: n,
1098
+ params: r,
1099
+ animating: l
1100
+ } = s;
1101
+ if (!n || s.destroyed) return s;
1102
+ typeof t > "u" && (t = s.params.speed);
1103
+ let o = r.slidesPerGroup;
1104
+ r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", !0), 1));
1105
+ const a = s.activeIndex < r.slidesPerGroupSkip ? 1 : o, d = s.virtual && r.virtual.enabled;
1106
+ if (r.loop) {
1107
+ if (l && !d && r.loopPreventsSliding) return !1;
1108
+ if (s.loopFix({
1109
+ direction: "next"
1110
+ }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
1111
+ return requestAnimationFrame(() => {
1112
+ s.slideTo(s.activeIndex + a, t, e, i);
1113
+ }), !0;
1114
+ }
1115
+ return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + a, t, e, i);
1116
+ }
1117
+ function _t(t, e, i) {
1118
+ e === void 0 && (e = !0);
1119
+ const s = this, {
1120
+ params: n,
1121
+ snapGrid: r,
1122
+ slidesGrid: l,
1123
+ rtlTranslate: o,
1124
+ enabled: a,
1125
+ animating: d
1126
+ } = s;
1127
+ if (!a || s.destroyed) return s;
1128
+ typeof t > "u" && (t = s.params.speed);
1129
+ const c = s.virtual && n.virtual.enabled;
1130
+ if (n.loop) {
1131
+ if (d && !c && n.loopPreventsSliding) return !1;
1132
+ s.loopFix({
1133
+ direction: "prev"
1134
+ }), s._clientLeft = s.wrapperEl.clientLeft;
1135
+ }
1136
+ const f = o ? s.translate : -s.translate;
1137
+ function u(S) {
1138
+ return S < 0 ? -Math.floor(Math.abs(S)) : Math.floor(S);
1139
+ }
1140
+ const p = u(f), m = r.map((S) => u(S)), v = n.freeMode && n.freeMode.enabled;
1141
+ let C = r[m.indexOf(p) - 1];
1142
+ if (typeof C > "u" && (n.cssMode || v)) {
1143
+ let S;
1144
+ r.forEach((g, E) => {
1145
+ p >= g && (S = E);
1146
+ }), typeof S < "u" && (C = v ? r[S] : r[S > 0 ? S - 1 : S]);
1147
+ }
1148
+ let h = 0;
1149
+ if (typeof C < "u" && (h = l.indexOf(C), h < 0 && (h = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (h = h - s.slidesPerViewDynamic("previous", !0) + 1, h = Math.max(h, 0))), n.rewind && s.isBeginning) {
1150
+ const S = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
1151
+ return s.slideTo(S, t, e, i);
1152
+ } else if (n.loop && s.activeIndex === 0 && n.cssMode)
1153
+ return requestAnimationFrame(() => {
1154
+ s.slideTo(h, t, e, i);
1155
+ }), !0;
1156
+ return s.slideTo(h, t, e, i);
1157
+ }
1158
+ function Gt(t, e, i) {
1159
+ e === void 0 && (e = !0);
1160
+ const s = this;
1161
+ if (!s.destroyed)
1162
+ return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
1163
+ }
1164
+ function Vt(t, e, i, s) {
1165
+ e === void 0 && (e = !0), s === void 0 && (s = 0.5);
1166
+ const n = this;
1167
+ if (n.destroyed) return;
1168
+ typeof t > "u" && (t = n.params.speed);
1169
+ let r = n.activeIndex;
1170
+ const l = Math.min(n.params.slidesPerGroupSkip, r), o = l + Math.floor((r - l) / n.params.slidesPerGroup), a = n.rtlTranslate ? n.translate : -n.translate;
1171
+ if (a >= n.snapGrid[o]) {
1172
+ const d = n.snapGrid[o], c = n.snapGrid[o + 1];
1173
+ a - d > (c - d) * s && (r += n.params.slidesPerGroup);
1174
+ } else {
1175
+ const d = n.snapGrid[o - 1], c = n.snapGrid[o];
1176
+ a - d <= (c - d) * s && (r -= n.params.slidesPerGroup);
1177
+ }
1178
+ return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
1179
+ }
1180
+ function Dt() {
1181
+ const t = this;
1182
+ if (t.destroyed) return;
1183
+ const {
1184
+ params: e,
1185
+ slidesEl: i
1186
+ } = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1187
+ let n = t.clickedIndex, r;
1188
+ const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
1189
+ if (e.loop) {
1190
+ if (t.animating) return;
1191
+ r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - s / 2 || n > t.slides.length - t.loopedSlides + s / 2 ? (t.loopFix(), n = t.getSlideIndex(k(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), ce(() => {
1192
+ t.slideTo(n);
1193
+ })) : t.slideTo(n) : n > t.slides.length - s ? (t.loopFix(), n = t.getSlideIndex(k(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), ce(() => {
1194
+ t.slideTo(n);
1195
+ })) : t.slideTo(n);
1196
+ } else
1197
+ t.slideTo(n);
1198
+ }
1199
+ var Bt = {
1200
+ slideTo: Lt,
1201
+ slideToLoop: zt,
1202
+ slideNext: At,
1203
+ slidePrev: _t,
1204
+ slideReset: Gt,
1205
+ slideToClosest: Vt,
1206
+ slideToClickedSlide: Dt
1207
+ };
1208
+ function Nt(t, e) {
1209
+ const i = this, {
1210
+ params: s,
1211
+ slidesEl: n
1212
+ } = i;
1213
+ if (!s.loop || i.virtual && i.params.virtual.enabled) return;
1214
+ const r = () => {
1215
+ k(n, `.${s.slideClass}, swiper-slide`).forEach((u, p) => {
1216
+ u.setAttribute("data-swiper-slide-index", p);
1217
+ });
1218
+ }, l = i.grid && s.grid && s.grid.rows > 1, o = s.slidesPerGroup * (l ? s.grid.rows : 1), a = i.slides.length % o !== 0, d = l && i.slides.length % s.grid.rows !== 0, c = (f) => {
1219
+ for (let u = 0; u < f; u += 1) {
1220
+ const p = i.isElement ? fe("swiper-slide", [s.slideBlankClass]) : fe("div", [s.slideClass, s.slideBlankClass]);
1221
+ i.slidesEl.append(p);
1222
+ }
1223
+ };
1224
+ if (a) {
1225
+ if (s.loopAddBlankSlides) {
1226
+ const f = o - i.slides.length % o;
1227
+ c(f), i.recalcSlides(), i.updateSlides();
1228
+ } else
1229
+ ee("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1230
+ r();
1231
+ } else if (d) {
1232
+ if (s.loopAddBlankSlides) {
1233
+ const f = s.grid.rows - i.slides.length % s.grid.rows;
1234
+ c(f), i.recalcSlides(), i.updateSlides();
1235
+ } else
1236
+ ee("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1237
+ r();
1238
+ } else
1239
+ r();
1240
+ i.loopFix({
1241
+ slideRealIndex: t,
1242
+ direction: s.centeredSlides ? void 0 : "next",
1243
+ initial: e
1244
+ });
1245
+ }
1246
+ function Ft(t) {
1247
+ let {
1248
+ slideRealIndex: e,
1249
+ slideTo: i = !0,
1250
+ direction: s,
1251
+ setTranslate: n,
1252
+ activeSlideIndex: r,
1253
+ initial: l,
1254
+ byController: o,
1255
+ byMousewheel: a
1256
+ } = t === void 0 ? {} : t;
1257
+ const d = this;
1258
+ if (!d.params.loop) return;
1259
+ d.emit("beforeLoopFix");
1260
+ const {
1261
+ slides: c,
1262
+ allowSlidePrev: f,
1263
+ allowSlideNext: u,
1264
+ slidesEl: p,
1265
+ params: m
1266
+ } = d, {
1267
+ centeredSlides: v,
1268
+ initialSlide: C
1269
+ } = m;
1270
+ if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && m.virtual.enabled) {
1271
+ i && (!m.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : m.centeredSlides && d.snapIndex < m.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = f, d.allowSlideNext = u, d.emit("loopFix");
1272
+ return;
1273
+ }
1274
+ let h = m.slidesPerView;
1275
+ h === "auto" ? h = d.slidesPerViewDynamic() : (h = Math.ceil(parseFloat(m.slidesPerView, 10)), v && h % 2 === 0 && (h = h + 1));
1276
+ const S = m.slidesPerGroupAuto ? h : m.slidesPerGroup;
1277
+ let g = S;
1278
+ g % S !== 0 && (g += S - g % S), g += m.loopAdditionalSlides, d.loopedSlides = g;
1279
+ const E = d.grid && m.grid && m.grid.rows > 1;
1280
+ c.length < h + g || d.params.effect === "cards" && c.length < h + g * 2 ? ee("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : E && m.grid.fill === "row" && ee("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1281
+ const b = [], P = [], M = E ? Math.ceil(c.length / m.grid.rows) : c.length, y = l && M - C < h && !v;
1282
+ let T = y ? C : d.activeIndex;
1283
+ typeof r > "u" ? r = d.getSlideIndex(c.find((O) => O.classList.contains(m.slideActiveClass))) : T = r;
1284
+ const w = s === "next" || !s, x = s === "prev" || !s;
1285
+ let I = 0, z = 0;
1286
+ const N = (E ? c[r].column : r) + (v && typeof n > "u" ? -h / 2 + 0.5 : 0);
1287
+ if (N < g) {
1288
+ I = Math.max(g - N, S);
1289
+ for (let O = 0; O < g - N; O += 1) {
1290
+ const _ = O - Math.floor(O / M) * M;
1291
+ if (E) {
1292
+ const G = M - _ - 1;
1293
+ for (let L = c.length - 1; L >= 0; L -= 1)
1294
+ c[L].column === G && b.push(L);
1295
+ } else
1296
+ b.push(M - _ - 1);
1297
+ }
1298
+ } else if (N + h > M - g) {
1299
+ z = Math.max(N - (M - g * 2), S), y && (z = Math.max(z, h - M + C + 1));
1300
+ for (let O = 0; O < z; O += 1) {
1301
+ const _ = O - Math.floor(O / M) * M;
1302
+ E ? c.forEach((G, L) => {
1303
+ G.column === _ && P.push(L);
1304
+ }) : P.push(_);
1305
+ }
1306
+ }
1307
+ if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
1308
+ d.__preventObserver__ = !1;
1309
+ }), d.params.effect === "cards" && c.length < h + g * 2 && (P.includes(r) && P.splice(P.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), x && b.forEach((O) => {
1310
+ c[O].swiperLoopMoveDOM = !0, p.prepend(c[O]), c[O].swiperLoopMoveDOM = !1;
1311
+ }), w && P.forEach((O) => {
1312
+ c[O].swiperLoopMoveDOM = !0, p.append(c[O]), c[O].swiperLoopMoveDOM = !1;
1313
+ }), d.recalcSlides(), m.slidesPerView === "auto" ? d.updateSlides() : E && (b.length > 0 && x || P.length > 0 && w) && d.slides.forEach((O, _) => {
1314
+ d.grid.updateSlide(_, O, d.slides);
1315
+ }), m.watchSlidesProgress && d.updateSlidesOffset(), i) {
1316
+ if (b.length > 0 && x) {
1317
+ if (typeof e > "u") {
1318
+ const O = d.slidesGrid[T], G = d.slidesGrid[T + I] - O;
1319
+ a ? d.setTranslate(d.translate - G) : (d.slideTo(T + Math.ceil(I), 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - G, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - G));
1320
+ } else if (n) {
1321
+ const O = E ? b.length / m.grid.rows : b.length;
1322
+ d.slideTo(d.activeIndex + O, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
1323
+ }
1324
+ } else if (P.length > 0 && w)
1325
+ if (typeof e > "u") {
1326
+ const O = d.slidesGrid[T], G = d.slidesGrid[T - z] - O;
1327
+ a ? d.setTranslate(d.translate - G) : (d.slideTo(T - z, 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - G, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - G));
1328
+ } else {
1329
+ const O = E ? P.length / m.grid.rows : P.length;
1330
+ d.slideTo(d.activeIndex - O, 0, !1, !0);
1331
+ }
1332
+ }
1333
+ if (d.allowSlidePrev = f, d.allowSlideNext = u, d.controller && d.controller.control && !o) {
1334
+ const O = {
1335
+ slideRealIndex: e,
1336
+ direction: s,
1337
+ setTranslate: n,
1338
+ activeSlideIndex: r,
1339
+ byController: !0
1340
+ };
1341
+ Array.isArray(d.controller.control) ? d.controller.control.forEach((_) => {
1342
+ !_.destroyed && _.params.loop && _.loopFix({
1343
+ ...O,
1344
+ slideTo: _.params.slidesPerView === m.slidesPerView ? i : !1
1345
+ });
1346
+ }) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
1347
+ ...O,
1348
+ slideTo: d.controller.control.params.slidesPerView === m.slidesPerView ? i : !1
1349
+ });
1350
+ }
1351
+ d.emit("loopFix");
1352
+ }
1353
+ function Rt() {
1354
+ const t = this, {
1355
+ params: e,
1356
+ slidesEl: i
1357
+ } = t;
1358
+ if (!e.loop || !i || t.virtual && t.params.virtual.enabled) return;
1359
+ t.recalcSlides();
1360
+ const s = [];
1361
+ t.slides.forEach((n) => {
1362
+ const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1363
+ s[r] = n;
1364
+ }), t.slides.forEach((n) => {
1365
+ n.removeAttribute("data-swiper-slide-index");
1366
+ }), s.forEach((n) => {
1367
+ i.append(n);
1368
+ }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1369
+ }
1370
+ var $t = {
1371
+ loopCreate: Nt,
1372
+ loopFix: Ft,
1373
+ loopDestroy: Rt
1374
+ };
1375
+ function kt(t) {
1376
+ const e = this;
1377
+ if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1378
+ const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
1379
+ e.isElement && (e.__preventObserver__ = !0), i.style.cursor = "move", i.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
1380
+ e.__preventObserver__ = !1;
1381
+ });
1382
+ }
1383
+ function Ht() {
1384
+ const t = this;
1385
+ t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1386
+ t.__preventObserver__ = !1;
1387
+ }));
1388
+ }
1389
+ var jt = {
1390
+ setGrabCursor: kt,
1391
+ unsetGrabCursor: Ht
1392
+ };
1393
+ function Wt(t, e) {
1394
+ e === void 0 && (e = this);
1395
+ function i(s) {
1396
+ if (!s || s === q() || s === V()) return null;
1397
+ s.assignedSlot && (s = s.assignedSlot);
1398
+ const n = s.closest(t);
1399
+ return !n && !s.getRootNode ? null : n || i(s.getRootNode().host);
1400
+ }
1401
+ return i(e);
1402
+ }
1403
+ function Te(t, e, i) {
1404
+ const s = V(), {
1405
+ params: n
1406
+ } = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1407
+ return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1408
+ }
1409
+ function qt(t) {
1410
+ const e = this, i = q();
1411
+ let s = t;
1412
+ s.originalEvent && (s = s.originalEvent);
1413
+ const n = e.touchEventsData;
1414
+ if (s.type === "pointerdown") {
1415
+ if (n.pointerId !== null && n.pointerId !== s.pointerId)
1416
+ return;
1417
+ n.pointerId = s.pointerId;
1418
+ } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
1419
+ if (s.type === "touchstart") {
1420
+ Te(e, s, s.targetTouches[0].pageX);
1421
+ return;
1422
+ }
1423
+ const {
1424
+ params: r,
1425
+ touches: l,
1426
+ enabled: o
1427
+ } = e;
1428
+ if (!o || !r.simulateTouch && s.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
1429
+ return;
1430
+ !e.animating && r.cssMode && r.loop && e.loopFix();
1431
+ let a = s.target;
1432
+ if (r.touchEventsTarget === "wrapper" && !Je(a, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1433
+ const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1434
+ d && s.target && s.target.shadowRoot && c && (a = c[0]);
1435
+ const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, u = !!(s.target && s.target.shadowRoot);
1436
+ if (r.noSwiping && (u ? Wt(f, a) : a.closest(f))) {
1437
+ e.allowClick = !0;
1438
+ return;
1439
+ }
1440
+ if (r.swipeHandler && !a.closest(r.swipeHandler))
1441
+ return;
1442
+ l.currentX = s.pageX, l.currentY = s.pageY;
1443
+ const p = l.currentX, m = l.currentY;
1444
+ if (!Te(e, s, p))
1445
+ return;
1446
+ Object.assign(n, {
1447
+ isTouched: !0,
1448
+ isMoved: !1,
1449
+ allowTouchCallbacks: !0,
1450
+ isScrolling: void 0,
1451
+ startMoving: void 0
1452
+ }), l.startX = p, l.startY = m, n.touchStartTime = J(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1453
+ let v = !0;
1454
+ a.matches(n.focusableElements) && (v = !1, a.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== a && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !a.matches(n.focusableElements)) && i.activeElement.blur();
1455
+ const C = v && e.allowTouchMove && r.touchStartPreventDefault;
1456
+ (r.touchStartForcePreventDefault || C) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1457
+ }
1458
+ function Yt(t) {
1459
+ const e = q(), i = this, s = i.touchEventsData, {
1460
+ params: n,
1461
+ touches: r,
1462
+ rtlTranslate: l,
1463
+ enabled: o
1464
+ } = i;
1465
+ if (!o || !n.simulateTouch && t.pointerType === "mouse") return;
1466
+ let a = t;
1467
+ if (a.originalEvent && (a = a.originalEvent), a.type === "pointermove" && (s.touchId !== null || a.pointerId !== s.pointerId))
1468
+ return;
1469
+ let d;
1470
+ if (a.type === "touchmove") {
1471
+ if (d = [...a.changedTouches].find((P) => P.identifier === s.touchId), !d || d.identifier !== s.touchId) return;
1472
+ } else
1473
+ d = a;
1474
+ if (!s.isTouched) {
1475
+ s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", a);
1476
+ return;
1477
+ }
1478
+ const c = d.pageX, f = d.pageY;
1479
+ if (a.preventedByNestedSwiper) {
1480
+ r.startX = c, r.startY = f;
1481
+ return;
1482
+ }
1483
+ if (!i.allowTouchMove) {
1484
+ a.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(r, {
1485
+ startX: c,
1486
+ startY: f,
1487
+ currentX: c,
1488
+ currentY: f
1489
+ }), s.touchStartTime = J());
1490
+ return;
1491
+ }
1492
+ if (n.touchReleaseOnEdges && !n.loop)
1493
+ if (i.isVertical()) {
1494
+ if (f < r.startY && i.translate <= i.maxTranslate() || f > r.startY && i.translate >= i.minTranslate()) {
1495
+ s.isTouched = !1, s.isMoved = !1;
1496
+ return;
1497
+ }
1498
+ } else {
1499
+ if (l && (c > r.startX && -i.translate <= i.maxTranslate() || c < r.startX && -i.translate >= i.minTranslate()))
1500
+ return;
1501
+ if (!l && (c < r.startX && i.translate <= i.maxTranslate() || c > r.startX && i.translate >= i.minTranslate()))
1502
+ return;
1503
+ }
1504
+ if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== a.target && a.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && a.target === e.activeElement && a.target.matches(s.focusableElements)) {
1505
+ s.isMoved = !0, i.allowClick = !1;
1506
+ return;
1507
+ }
1508
+ s.allowTouchCallbacks && i.emit("touchMove", a), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = f;
1509
+ const u = r.currentX - r.startX, p = r.currentY - r.startY;
1510
+ if (i.params.threshold && Math.sqrt(u ** 2 + p ** 2) < i.params.threshold) return;
1511
+ if (typeof s.isScrolling > "u") {
1512
+ let P;
1513
+ i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : u * u + p * p >= 25 && (P = Math.atan2(Math.abs(p), Math.abs(u)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? P > n.touchAngle : 90 - P > n.touchAngle);
1514
+ }
1515
+ if (s.isScrolling && i.emit("touchMoveOpposite", a), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || a.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1516
+ s.isTouched = !1;
1517
+ return;
1518
+ }
1519
+ if (!s.startMoving)
1520
+ return;
1521
+ i.allowClick = !1, !n.cssMode && a.cancelable && a.preventDefault(), n.touchMoveStopPropagation && !n.nested && a.stopPropagation();
1522
+ let m = i.isHorizontal() ? u : p, v = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1523
+ n.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), v = Math.abs(v) * (l ? 1 : -1)), r.diff = m, m *= n.touchRatio, l && (m = -m, v = -v);
1524
+ const C = i.touchesDirection;
1525
+ i.swipeDirection = m > 0 ? "prev" : "next", i.touchesDirection = v > 0 ? "prev" : "next";
1526
+ const h = i.params.loop && !n.cssMode, S = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1527
+ if (!s.isMoved) {
1528
+ if (h && S && i.loopFix({
1529
+ direction: i.swipeDirection
1530
+ }), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
1531
+ const P = new window.CustomEvent("transitionend", {
1532
+ bubbles: !0,
1533
+ cancelable: !0,
1534
+ detail: {
1535
+ bySwiperTouchMove: !0
1536
+ }
1537
+ });
1538
+ i.wrapperEl.dispatchEvent(P);
1539
+ }
1540
+ s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", a);
1541
+ }
1542
+ let g;
1543
+ if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && C !== i.touchesDirection && h && S && Math.abs(m) >= 1) {
1544
+ Object.assign(r, {
1545
+ startX: c,
1546
+ startY: f,
1547
+ currentX: c,
1548
+ currentY: f,
1549
+ startTranslate: s.currentTranslate
1550
+ }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1551
+ return;
1552
+ }
1553
+ i.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = m + s.startTranslate;
1554
+ let E = !0, b = n.resistanceRatio;
1555
+ if (n.touchReleaseOnEdges && (b = 0), m > 0 ? (h && S && !g && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
1556
+ direction: "prev",
1557
+ setTranslate: !0,
1558
+ activeSlideIndex: 0
1559
+ }), s.currentTranslate > i.minTranslate() && (E = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + m) ** b))) : m < 0 && (h && S && !g && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
1560
+ direction: "next",
1561
+ setTranslate: !0,
1562
+ activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1563
+ }), s.currentTranslate < i.maxTranslate() && (E = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - m) ** b))), E && (a.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1564
+ if (Math.abs(m) > n.threshold || s.allowThresholdMove) {
1565
+ if (!s.allowThresholdMove) {
1566
+ s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1567
+ return;
1568
+ }
1569
+ } else {
1570
+ s.currentTranslate = s.startTranslate;
1571
+ return;
1572
+ }
1573
+ !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && i.freeMode || n.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
1574
+ }
1575
+ function Xt(t) {
1576
+ const e = this, i = e.touchEventsData;
1577
+ let s = t;
1578
+ s.originalEvent && (s = s.originalEvent);
1579
+ let n;
1580
+ if (s.type === "touchend" || s.type === "touchcancel") {
1581
+ if (n = [...s.changedTouches].find((b) => b.identifier === i.touchId), !n || n.identifier !== i.touchId) return;
1582
+ } else {
1583
+ if (i.touchId !== null || s.pointerId !== i.pointerId) return;
1584
+ n = s;
1585
+ }
1586
+ if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (e.browser.isSafari || e.browser.isWebView)))
1587
+ return;
1588
+ i.pointerId = null, i.touchId = null;
1589
+ const {
1590
+ params: l,
1591
+ touches: o,
1592
+ rtlTranslate: a,
1593
+ slidesGrid: d,
1594
+ enabled: c
1595
+ } = e;
1596
+ if (!c || !l.simulateTouch && s.pointerType === "mouse") return;
1597
+ if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = !1, !i.isTouched) {
1598
+ i.isMoved && l.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
1599
+ return;
1600
+ }
1601
+ l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1602
+ const f = J(), u = f - i.touchStartTime;
1603
+ if (e.allowClick) {
1604
+ const b = s.path || s.composedPath && s.composedPath();
1605
+ e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), u < 300 && f - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
1606
+ }
1607
+ if (i.lastClickTime = J(), ce(() => {
1608
+ e.destroyed || (e.allowClick = !0);
1609
+ }), !i.isTouched || !i.isMoved || !e.swipeDirection || o.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
1610
+ i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1611
+ return;
1612
+ }
1613
+ i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1614
+ let p;
1615
+ if (l.followFinger ? p = a ? e.translate : -e.translate : p = -i.currentTranslate, l.cssMode)
1616
+ return;
1617
+ if (l.freeMode && l.freeMode.enabled) {
1618
+ e.freeMode.onTouchEnd({
1619
+ currentPos: p
1620
+ });
1621
+ return;
1622
+ }
1623
+ const m = p >= -e.maxTranslate() && !e.params.loop;
1624
+ let v = 0, C = e.slidesSizesGrid[0];
1625
+ for (let b = 0; b < d.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1626
+ const P = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1627
+ typeof d[b + P] < "u" ? (m || p >= d[b] && p < d[b + P]) && (v = b, C = d[b + P] - d[b]) : (m || p >= d[b]) && (v = b, C = d[d.length - 1] - d[d.length - 2]);
1628
+ }
1629
+ let h = null, S = null;
1630
+ l.rewind && (e.isBeginning ? S = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (h = 0));
1631
+ const g = (p - d[v]) / C, E = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1632
+ if (u > l.longSwipesMs) {
1633
+ if (!l.longSwipes) {
1634
+ e.slideTo(e.activeIndex);
1635
+ return;
1636
+ }
1637
+ e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? h : v + E) : e.slideTo(v)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(v + E) : S !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(S) : e.slideTo(v));
1638
+ } else {
1639
+ if (!l.shortSwipes) {
1640
+ e.slideTo(e.activeIndex);
1641
+ return;
1642
+ }
1643
+ e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v + E) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(h !== null ? h : v + E), e.swipeDirection === "prev" && e.slideTo(S !== null ? S : v));
1644
+ }
1645
+ }
1646
+ function be() {
1647
+ const t = this, {
1648
+ params: e,
1649
+ el: i
1650
+ } = t;
1651
+ if (i && i.offsetWidth === 0) return;
1652
+ e.breakpoints && t.setBreakpoint();
1653
+ const {
1654
+ allowSlideNext: s,
1655
+ allowSlidePrev: n,
1656
+ snapGrid: r
1657
+ } = t, l = t.virtual && t.params.virtual.enabled;
1658
+ t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
1659
+ const o = l && e.loop;
1660
+ (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !o ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !l ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
1661
+ t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1662
+ }, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
1663
+ }
1664
+ function Kt(t) {
1665
+ const e = this;
1666
+ e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1667
+ }
1668
+ function Ut() {
1669
+ const t = this, {
1670
+ wrapperEl: e,
1671
+ rtlTranslate: i,
1672
+ enabled: s
1673
+ } = t;
1674
+ if (!s) return;
1675
+ t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
1676
+ let n;
1677
+ const r = t.maxTranslate() - t.minTranslate();
1678
+ r === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / r, n !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1679
+ }
1680
+ function Qt(t) {
1681
+ const e = this;
1682
+ Z(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1683
+ }
1684
+ function Zt() {
1685
+ const t = this;
1686
+ t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1687
+ }
1688
+ const Ae = (t, e) => {
1689
+ const i = q(), {
1690
+ params: s,
1691
+ el: n,
1692
+ wrapperEl: r,
1693
+ device: l
1694
+ } = t, o = !!s.nested, a = e === "on" ? "addEventListener" : "removeEventListener", d = e;
1695
+ !n || typeof n == "string" || (i[a]("touchstart", t.onDocumentTouchStart, {
1696
+ passive: !1,
1697
+ capture: o
1698
+ }), n[a]("touchstart", t.onTouchStart, {
1699
+ passive: !1
1700
+ }), n[a]("pointerdown", t.onTouchStart, {
1701
+ passive: !1
1702
+ }), i[a]("touchmove", t.onTouchMove, {
1703
+ passive: !1,
1704
+ capture: o
1705
+ }), i[a]("pointermove", t.onTouchMove, {
1706
+ passive: !1,
1707
+ capture: o
1708
+ }), i[a]("touchend", t.onTouchEnd, {
1709
+ passive: !0
1710
+ }), i[a]("pointerup", t.onTouchEnd, {
1711
+ passive: !0
1712
+ }), i[a]("pointercancel", t.onTouchEnd, {
1713
+ passive: !0
1714
+ }), i[a]("touchcancel", t.onTouchEnd, {
1715
+ passive: !0
1716
+ }), i[a]("pointerout", t.onTouchEnd, {
1717
+ passive: !0
1718
+ }), i[a]("pointerleave", t.onTouchEnd, {
1719
+ passive: !0
1720
+ }), i[a]("contextmenu", t.onTouchEnd, {
1721
+ passive: !0
1722
+ }), (s.preventClicks || s.preventClicksPropagation) && n[a]("click", t.onClick, !0), s.cssMode && r[a]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", be, !0) : t[d]("observerUpdate", be, !0), n[a]("load", t.onLoad, {
1723
+ capture: !0
1724
+ }));
1725
+ };
1726
+ function Jt() {
1727
+ const t = this, {
1728
+ params: e
1729
+ } = t;
1730
+ t.onTouchStart = qt.bind(t), t.onTouchMove = Yt.bind(t), t.onTouchEnd = Xt.bind(t), t.onDocumentTouchStart = Zt.bind(t), e.cssMode && (t.onScroll = Ut.bind(t)), t.onClick = Kt.bind(t), t.onLoad = Qt.bind(t), Ae(t, "on");
1731
+ }
1732
+ function ei() {
1733
+ Ae(this, "off");
1734
+ }
1735
+ var ti = {
1736
+ attachEvents: Jt,
1737
+ detachEvents: ei
1738
+ };
1739
+ const xe = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1740
+ function ii() {
1741
+ const t = this, {
1742
+ realIndex: e,
1743
+ initialized: i,
1744
+ params: s,
1745
+ el: n
1746
+ } = t, r = s.breakpoints;
1747
+ if (!r || r && Object.keys(r).length === 0) return;
1748
+ const l = q(), o = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", a = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : l.querySelector(s.breakpointsBase), d = t.getBreakpoint(r, o, a);
1749
+ if (!d || t.currentBreakpoint === d) return;
1750
+ const f = (d in r ? r[d] : void 0) || t.originalParams, u = xe(t, s), p = xe(t, f), m = t.params.grabCursor, v = f.grabCursor, C = s.enabled;
1751
+ u && !p ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && p && (n.classList.add(`${s.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), m && !v ? t.unsetGrabCursor() : !m && v && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((P) => {
1752
+ if (typeof f[P] > "u") return;
1753
+ const M = s[P] && s[P].enabled, y = f[P] && f[P].enabled;
1754
+ M && !y && t[P].disable(), !M && y && t[P].enable();
1755
+ });
1756
+ const h = f.direction && f.direction !== s.direction, S = s.loop && (f.slidesPerView !== s.slidesPerView || h), g = s.loop;
1757
+ h && i && t.changeDirection(), D(t.params, f);
1758
+ const E = t.params.enabled, b = t.params.loop;
1759
+ Object.assign(t, {
1760
+ allowTouchMove: t.params.allowTouchMove,
1761
+ allowSlideNext: t.params.allowSlideNext,
1762
+ allowSlidePrev: t.params.allowSlidePrev
1763
+ }), C && !E ? t.disable() : !C && E && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (S ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !g && b ? (t.loopCreate(e), t.updateSlides()) : g && !b && t.loopDestroy()), t.emit("breakpoint", f);
1764
+ }
1765
+ function si(t, e, i) {
1766
+ if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
1767
+ let s = !1;
1768
+ const n = V(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((o) => {
1769
+ if (typeof o == "string" && o.indexOf("@") === 0) {
1770
+ const a = parseFloat(o.substr(1));
1771
+ return {
1772
+ value: r * a,
1773
+ point: o
1774
+ };
1775
+ }
1776
+ return {
1777
+ value: o,
1778
+ point: o
1779
+ };
1780
+ });
1781
+ l.sort((o, a) => parseInt(o.value, 10) - parseInt(a.value, 10));
1782
+ for (let o = 0; o < l.length; o += 1) {
1783
+ const {
1784
+ point: a,
1785
+ value: d
1786
+ } = l[o];
1787
+ e === "window" ? n.matchMedia(`(min-width: ${d}px)`).matches && (s = a) : d <= i.clientWidth && (s = a);
1788
+ }
1789
+ return s || "max";
1790
+ }
1791
+ var ri = {
1792
+ setBreakpoint: ii,
1793
+ getBreakpoint: si
1794
+ };
1795
+ function ni(t, e) {
1796
+ const i = [];
1797
+ return t.forEach((s) => {
1798
+ typeof s == "object" ? Object.keys(s).forEach((n) => {
1799
+ s[n] && i.push(e + n);
1800
+ }) : typeof s == "string" && i.push(e + s);
1801
+ }), i;
1802
+ }
1803
+ function oi() {
1804
+ const t = this, {
1805
+ classNames: e,
1806
+ params: i,
1807
+ rtl: s,
1808
+ el: n,
1809
+ device: r
1810
+ } = t, l = ni(["initialized", i.direction, {
1811
+ "free-mode": t.params.freeMode && i.freeMode.enabled
1812
+ }, {
1813
+ autoheight: i.autoHeight
1814
+ }, {
1815
+ rtl: s
1816
+ }, {
1817
+ grid: i.grid && i.grid.rows > 1
1818
+ }, {
1819
+ "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
1820
+ }, {
1821
+ android: r.android
1822
+ }, {
1823
+ ios: r.ios
1824
+ }, {
1825
+ "css-mode": i.cssMode
1826
+ }, {
1827
+ centered: i.cssMode && i.centeredSlides
1828
+ }, {
1829
+ "watch-progress": i.watchSlidesProgress
1830
+ }], i.containerModifierClass);
1831
+ e.push(...l), n.classList.add(...e), t.emitContainerClasses();
1832
+ }
1833
+ function li() {
1834
+ const t = this, {
1835
+ el: e,
1836
+ classNames: i
1837
+ } = t;
1838
+ !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
1839
+ }
1840
+ var ai = {
1841
+ addClasses: oi,
1842
+ removeClasses: li
1843
+ };
1844
+ function di() {
1845
+ const t = this, {
1846
+ isLocked: e,
1847
+ params: i
1848
+ } = t, {
1849
+ slidesOffsetBefore: s
1850
+ } = i;
1851
+ if (s) {
1852
+ const n = t.slides.length - 1, r = t.slidesGrid[n] + t.slidesSizesGrid[n] + s * 2;
1853
+ t.isLocked = t.size > r;
1854
+ } else
1855
+ t.isLocked = t.snapGrid.length === 1;
1856
+ i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
1857
+ }
1858
+ var ci = {
1859
+ checkOverflow: di
1860
+ }, pe = {
1861
+ init: !0,
1862
+ direction: "horizontal",
1863
+ oneWayMovement: !1,
1864
+ swiperElementNodeName: "SWIPER-CONTAINER",
1865
+ touchEventsTarget: "wrapper",
1866
+ initialSlide: 0,
1867
+ speed: 300,
1868
+ cssMode: !1,
1869
+ updateOnWindowResize: !0,
1870
+ resizeObserver: !0,
1871
+ nested: !1,
1872
+ createElements: !1,
1873
+ eventsPrefix: "swiper",
1874
+ enabled: !0,
1875
+ focusableElements: "input, select, option, textarea, button, video, label",
1876
+ // Overrides
1877
+ width: null,
1878
+ height: null,
1879
+ //
1880
+ preventInteractionOnTransition: !1,
1881
+ // ssr
1882
+ userAgent: null,
1883
+ url: null,
1884
+ // To support iOS's swipe-to-go-back gesture (when being used in-app).
1885
+ edgeSwipeDetection: !1,
1886
+ edgeSwipeThreshold: 20,
1887
+ // Autoheight
1888
+ autoHeight: !1,
1889
+ // Set wrapper width
1890
+ setWrapperSize: !1,
1891
+ // Virtual Translate
1892
+ virtualTranslate: !1,
1893
+ // Effects
1894
+ effect: "slide",
1895
+ // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1896
+ // Breakpoints
1897
+ breakpoints: void 0,
1898
+ breakpointsBase: "window",
1899
+ // Slides grid
1900
+ spaceBetween: 0,
1901
+ slidesPerView: 1,
1902
+ slidesPerGroup: 1,
1903
+ slidesPerGroupSkip: 0,
1904
+ slidesPerGroupAuto: !1,
1905
+ centeredSlides: !1,
1906
+ centeredSlidesBounds: !1,
1907
+ slidesOffsetBefore: 0,
1908
+ // in px
1909
+ slidesOffsetAfter: 0,
1910
+ // in px
1911
+ normalizeSlideIndex: !0,
1912
+ centerInsufficientSlides: !1,
1913
+ // Disable swiper and hide navigation when container not overflow
1914
+ watchOverflow: !0,
1915
+ // Round length
1916
+ roundLengths: !1,
1917
+ // Touches
1918
+ touchRatio: 1,
1919
+ touchAngle: 45,
1920
+ simulateTouch: !0,
1921
+ shortSwipes: !0,
1922
+ longSwipes: !0,
1923
+ longSwipesRatio: 0.5,
1924
+ longSwipesMs: 300,
1925
+ followFinger: !0,
1926
+ allowTouchMove: !0,
1927
+ threshold: 5,
1928
+ touchMoveStopPropagation: !1,
1929
+ touchStartPreventDefault: !0,
1930
+ touchStartForcePreventDefault: !1,
1931
+ touchReleaseOnEdges: !1,
1932
+ // Unique Navigation Elements
1933
+ uniqueNavElements: !0,
1934
+ // Resistance
1935
+ resistance: !0,
1936
+ resistanceRatio: 0.85,
1937
+ // Progress
1938
+ watchSlidesProgress: !1,
1939
+ // Cursor
1940
+ grabCursor: !1,
1941
+ // Clicks
1942
+ preventClicks: !0,
1943
+ preventClicksPropagation: !0,
1944
+ slideToClickedSlide: !1,
1945
+ // loop
1946
+ loop: !1,
1947
+ loopAddBlankSlides: !0,
1948
+ loopAdditionalSlides: 0,
1949
+ loopPreventsSliding: !0,
1950
+ // rewind
1951
+ rewind: !1,
1952
+ // Swiping/no swiping
1953
+ allowSlidePrev: !0,
1954
+ allowSlideNext: !0,
1955
+ swipeHandler: null,
1956
+ // '.swipe-handler',
1957
+ noSwiping: !0,
1958
+ noSwipingClass: "swiper-no-swiping",
1959
+ noSwipingSelector: null,
1960
+ // Passive Listeners
1961
+ passiveListeners: !0,
1962
+ maxBackfaceHiddenSlides: 10,
1963
+ // NS
1964
+ containerModifierClass: "swiper-",
1965
+ // NEW
1966
+ slideClass: "swiper-slide",
1967
+ slideBlankClass: "swiper-slide-blank",
1968
+ slideActiveClass: "swiper-slide-active",
1969
+ slideVisibleClass: "swiper-slide-visible",
1970
+ slideFullyVisibleClass: "swiper-slide-fully-visible",
1971
+ slideNextClass: "swiper-slide-next",
1972
+ slidePrevClass: "swiper-slide-prev",
1973
+ wrapperClass: "swiper-wrapper",
1974
+ lazyPreloaderClass: "swiper-lazy-preloader",
1975
+ lazyPreloadPrevNext: 0,
1976
+ // Callbacks
1977
+ runCallbacksOnInit: !0,
1978
+ // Internals
1979
+ _emitClasses: !1
1980
+ };
1981
+ function fi(t, e) {
1982
+ return function(s) {
1983
+ s === void 0 && (s = {});
1984
+ const n = Object.keys(s)[0], r = s[n];
1985
+ if (typeof r != "object" || r === null) {
1986
+ D(e, s);
1987
+ return;
1988
+ }
1989
+ if (t[n] === !0 && (t[n] = {
1990
+ enabled: !0
1991
+ }), n === "navigation" && t[n] && t[n].enabled && !t[n].prevEl && !t[n].nextEl && (t[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && t[n] && t[n].enabled && !t[n].el && (t[n].auto = !0), !(n in t && "enabled" in r)) {
1992
+ D(e, s);
1993
+ return;
1994
+ }
1995
+ typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = !0), t[n] || (t[n] = {
1996
+ enabled: !1
1997
+ }), D(e, s);
1998
+ };
1999
+ }
2000
+ const le = {
2001
+ eventsEmitter: at,
2002
+ update: St,
2003
+ translate: Pt,
2004
+ transition: Ot,
2005
+ slide: Bt,
2006
+ loop: $t,
2007
+ grabCursor: jt,
2008
+ events: ti,
2009
+ breakpoints: ri,
2010
+ checkOverflow: ci,
2011
+ classes: ai
2012
+ }, ae = {};
2013
+ let he = class $ {
2014
+ constructor() {
2015
+ let e, i;
2016
+ for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
2017
+ n[r] = arguments[r];
2018
+ n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = D({}, i), e && !i.el && (i.el = e);
2019
+ const l = q();
2020
+ if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
2021
+ const c = [];
2022
+ return l.querySelectorAll(i.el).forEach((f) => {
2023
+ const u = D({}, i, {
2024
+ el: f
2025
+ });
2026
+ c.push(new $(u));
2027
+ }), c;
2028
+ }
2029
+ const o = this;
2030
+ o.__swiper__ = !0, o.support = Ie(), o.device = Oe({
2031
+ userAgent: i.userAgent
2032
+ }), o.browser = Le(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
2033
+ const a = {};
2034
+ o.modules.forEach((c) => {
2035
+ c({
2036
+ params: i,
2037
+ swiper: o,
2038
+ extendParams: fi(i, a),
2039
+ on: o.on.bind(o),
2040
+ once: o.once.bind(o),
2041
+ off: o.off.bind(o),
2042
+ emit: o.emit.bind(o)
2043
+ });
2044
+ });
2045
+ const d = D({}, pe, a);
2046
+ return o.params = D({}, d, ae, i), o.originalParams = D({}, o.params), o.passedParams = D({}, i), o.params && o.params.on && Object.keys(o.params.on).forEach((c) => {
2047
+ o.on(c, o.params.on[c]);
2048
+ }), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
2049
+ enabled: o.params.enabled,
2050
+ el: e,
2051
+ // Classes
2052
+ classNames: [],
2053
+ // Slides
2054
+ slides: [],
2055
+ slidesGrid: [],
2056
+ snapGrid: [],
2057
+ slidesSizesGrid: [],
2058
+ // isDirection
2059
+ isHorizontal() {
2060
+ return o.params.direction === "horizontal";
2061
+ },
2062
+ isVertical() {
2063
+ return o.params.direction === "vertical";
2064
+ },
2065
+ // Indexes
2066
+ activeIndex: 0,
2067
+ realIndex: 0,
2068
+ //
2069
+ isBeginning: !0,
2070
+ isEnd: !1,
2071
+ // Props
2072
+ translate: 0,
2073
+ previousTranslate: 0,
2074
+ progress: 0,
2075
+ velocity: 0,
2076
+ animating: !1,
2077
+ cssOverflowAdjustment() {
2078
+ return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
2079
+ },
2080
+ // Locks
2081
+ allowSlideNext: o.params.allowSlideNext,
2082
+ allowSlidePrev: o.params.allowSlidePrev,
2083
+ // Touch Events
2084
+ touchEventsData: {
2085
+ isTouched: void 0,
2086
+ isMoved: void 0,
2087
+ allowTouchCallbacks: void 0,
2088
+ touchStartTime: void 0,
2089
+ isScrolling: void 0,
2090
+ currentTranslate: void 0,
2091
+ startTranslate: void 0,
2092
+ allowThresholdMove: void 0,
2093
+ // Form elements to match
2094
+ focusableElements: o.params.focusableElements,
2095
+ // Last click time
2096
+ lastClickTime: 0,
2097
+ clickTimeout: void 0,
2098
+ // Velocities
2099
+ velocities: [],
2100
+ allowMomentumBounce: void 0,
2101
+ startMoving: void 0,
2102
+ pointerId: null,
2103
+ touchId: null
2104
+ },
2105
+ // Clicks
2106
+ allowClick: !0,
2107
+ // Touches
2108
+ allowTouchMove: o.params.allowTouchMove,
2109
+ touches: {
2110
+ startX: 0,
2111
+ startY: 0,
2112
+ currentX: 0,
2113
+ currentY: 0,
2114
+ diff: 0
2115
+ },
2116
+ // Images
2117
+ imagesToLoad: [],
2118
+ imagesLoaded: 0
2119
+ }), o.emit("_swiper"), o.params.init && o.init(), o;
2120
+ }
2121
+ getDirectionLabel(e) {
2122
+ return this.isHorizontal() ? e : {
2123
+ width: "height",
2124
+ "margin-top": "margin-left",
2125
+ "margin-bottom ": "margin-right",
2126
+ "margin-left": "margin-top",
2127
+ "margin-right": "margin-bottom",
2128
+ "padding-left": "padding-top",
2129
+ "padding-right": "padding-bottom",
2130
+ marginRight: "marginBottom"
2131
+ }[e];
2132
+ }
2133
+ getSlideIndex(e) {
2134
+ const {
2135
+ slidesEl: i,
2136
+ params: s
2137
+ } = this, n = k(i, `.${s.slideClass}, swiper-slide`), r = ve(n[0]);
2138
+ return ve(e) - r;
2139
+ }
2140
+ getSlideIndexByData(e) {
2141
+ return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
2142
+ }
2143
+ recalcSlides() {
2144
+ const e = this, {
2145
+ slidesEl: i,
2146
+ params: s
2147
+ } = e;
2148
+ e.slides = k(i, `.${s.slideClass}, swiper-slide`);
2149
+ }
2150
+ enable() {
2151
+ const e = this;
2152
+ e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
2153
+ }
2154
+ disable() {
2155
+ const e = this;
2156
+ e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
2157
+ }
2158
+ setProgress(e, i) {
2159
+ const s = this;
2160
+ e = Math.min(Math.max(e, 0), 1);
2161
+ const n = s.minTranslate(), l = (s.maxTranslate() - n) * e + n;
2162
+ s.translateTo(l, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
2163
+ }
2164
+ emitContainerClasses() {
2165
+ const e = this;
2166
+ if (!e.params._emitClasses || !e.el) return;
2167
+ const i = e.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(e.params.containerModifierClass) === 0);
2168
+ e.emit("_containerClasses", i.join(" "));
2169
+ }
2170
+ getSlideClasses(e) {
2171
+ const i = this;
2172
+ return i.destroyed ? "" : e.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(i.params.slideClass) === 0).join(" ");
2173
+ }
2174
+ emitSlidesClasses() {
2175
+ const e = this;
2176
+ if (!e.params._emitClasses || !e.el) return;
2177
+ const i = [];
2178
+ e.slides.forEach((s) => {
2179
+ const n = e.getSlideClasses(s);
2180
+ i.push({
2181
+ slideEl: s,
2182
+ classNames: n
2183
+ }), e.emit("_slideClass", s, n);
2184
+ }), e.emit("_slideClasses", i);
2185
+ }
2186
+ slidesPerViewDynamic(e, i) {
2187
+ e === void 0 && (e = "current"), i === void 0 && (i = !1);
2188
+ const s = this, {
2189
+ params: n,
2190
+ slides: r,
2191
+ slidesGrid: l,
2192
+ slidesSizesGrid: o,
2193
+ size: a,
2194
+ activeIndex: d
2195
+ } = s;
2196
+ let c = 1;
2197
+ if (typeof n.slidesPerView == "number") return n.slidesPerView;
2198
+ if (n.centeredSlides) {
2199
+ let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, u;
2200
+ for (let p = d + 1; p < r.length; p += 1)
2201
+ r[p] && !u && (f += Math.ceil(r[p].swiperSlideSize), c += 1, f > a && (u = !0));
2202
+ for (let p = d - 1; p >= 0; p -= 1)
2203
+ r[p] && !u && (f += r[p].swiperSlideSize, c += 1, f > a && (u = !0));
2204
+ } else if (e === "current")
2205
+ for (let f = d + 1; f < r.length; f += 1)
2206
+ (i ? l[f] + o[f] - l[d] < a : l[f] - l[d] < a) && (c += 1);
2207
+ else
2208
+ for (let f = d - 1; f >= 0; f -= 1)
2209
+ l[d] - l[f] < a && (c += 1);
2210
+ return c;
2211
+ }
2212
+ update() {
2213
+ const e = this;
2214
+ if (!e || e.destroyed) return;
2215
+ const {
2216
+ snapGrid: i,
2217
+ params: s
2218
+ } = e;
2219
+ s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
2220
+ l.complete && Z(e, l);
2221
+ }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2222
+ function n() {
2223
+ const l = e.rtlTranslate ? e.translate * -1 : e.translate, o = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
2224
+ e.setTranslate(o), e.updateActiveIndex(), e.updateSlidesClasses();
2225
+ }
2226
+ let r;
2227
+ if (s.freeMode && s.freeMode.enabled && !s.cssMode)
2228
+ n(), s.autoHeight && e.updateAutoHeight();
2229
+ else {
2230
+ if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
2231
+ const l = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
2232
+ r = e.slideTo(l.length - 1, 0, !1, !0);
2233
+ } else
2234
+ r = e.slideTo(e.activeIndex, 0, !1, !0);
2235
+ r || n();
2236
+ }
2237
+ s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
2238
+ }
2239
+ changeDirection(e, i) {
2240
+ i === void 0 && (i = !0);
2241
+ const s = this, n = s.params.direction;
2242
+ return e || (e = n === "horizontal" ? "vertical" : "horizontal"), e === n || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((r) => {
2243
+ e === "vertical" ? r.style.width = "" : r.style.height = "";
2244
+ }), s.emit("changeDirection"), i && s.update()), s;
2245
+ }
2246
+ changeLanguageDirection(e) {
2247
+ const i = this;
2248
+ i.rtl && e === "rtl" || !i.rtl && e === "ltr" || (i.rtl = e === "rtl", i.rtlTranslate = i.params.direction === "horizontal" && i.rtl, i.rtl ? (i.el.classList.add(`${i.params.containerModifierClass}rtl`), i.el.dir = "rtl") : (i.el.classList.remove(`${i.params.containerModifierClass}rtl`), i.el.dir = "ltr"), i.update());
2249
+ }
2250
+ mount(e) {
2251
+ const i = this;
2252
+ if (i.mounted) return !0;
2253
+ let s = e || i.params.el;
2254
+ if (typeof s == "string" && (s = document.querySelector(s)), !s)
2255
+ return !1;
2256
+ s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
2257
+ const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2258
+ let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : k(s, n())[0];
2259
+ return !l && i.params.createElements && (l = fe("div", i.params.wrapperClass), s.append(l), k(s, `.${i.params.slideClass}`).forEach((o) => {
2260
+ l.append(o);
2261
+ })), Object.assign(i, {
2262
+ el: s,
2263
+ wrapperEl: l,
2264
+ slidesEl: i.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : l,
2265
+ hostEl: i.isElement ? s.parentNode.host : s,
2266
+ mounted: !0,
2267
+ // RTL
2268
+ rtl: s.dir.toLowerCase() === "rtl" || H(s, "direction") === "rtl",
2269
+ rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || H(s, "direction") === "rtl"),
2270
+ wrongRTL: H(l, "display") === "-webkit-box"
2271
+ }), !0;
2272
+ }
2273
+ init(e) {
2274
+ const i = this;
2275
+ if (i.initialized || i.mount(e) === !1) return i;
2276
+ i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, !1, !0) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, !1, !0), i.params.loop && i.loopCreate(void 0, !0), i.attachEvents();
2277
+ const n = [...i.el.querySelectorAll('[loading="lazy"]')];
2278
+ return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
2279
+ r.complete ? Z(i, r) : r.addEventListener("load", (l) => {
2280
+ Z(i, l.target);
2281
+ });
2282
+ }), ue(i), i.initialized = !0, ue(i), i.emit("init"), i.emit("afterInit"), i;
2283
+ }
2284
+ destroy(e, i) {
2285
+ e === void 0 && (e = !0), i === void 0 && (i = !0);
2286
+ const s = this, {
2287
+ params: n,
2288
+ el: r,
2289
+ wrapperEl: l,
2290
+ slides: o
2291
+ } = s;
2292
+ return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), n.loop && s.loopDestroy(), i && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), l && l.removeAttribute("style"), o && o.length && o.forEach((a) => {
2293
+ a.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
2294
+ })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((a) => {
2295
+ s.off(a);
2296
+ }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), Xe(s)), s.destroyed = !0), null;
2297
+ }
2298
+ static extendDefaults(e) {
2299
+ D(ae, e);
2300
+ }
2301
+ static get extendedDefaults() {
2302
+ return ae;
2303
+ }
2304
+ static get defaults() {
2305
+ return pe;
2306
+ }
2307
+ static installModule(e) {
2308
+ $.prototype.__modules__ || ($.prototype.__modules__ = []);
2309
+ const i = $.prototype.__modules__;
2310
+ typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
2311
+ }
2312
+ static use(e) {
2313
+ return Array.isArray(e) ? (e.forEach((i) => $.installModule(i)), $) : ($.installModule(e), $);
2314
+ }
2315
+ };
2316
+ Object.keys(le).forEach((t) => {
2317
+ Object.keys(le[t]).forEach((e) => {
2318
+ he.prototype[e] = le[t][e];
2319
+ });
2320
+ });
2321
+ he.use([ot, lt]);
2322
+ const _e = [
2323
+ "eventsPrefix",
2324
+ "injectStyles",
2325
+ "injectStylesUrls",
2326
+ "modules",
2327
+ "init",
2328
+ "_direction",
2329
+ "oneWayMovement",
2330
+ "swiperElementNodeName",
2331
+ "touchEventsTarget",
2332
+ "initialSlide",
2333
+ "_speed",
2334
+ "cssMode",
2335
+ "updateOnWindowResize",
2336
+ "resizeObserver",
2337
+ "nested",
2338
+ "focusableElements",
2339
+ "_enabled",
2340
+ "_width",
2341
+ "_height",
2342
+ "preventInteractionOnTransition",
2343
+ "userAgent",
2344
+ "url",
2345
+ "_edgeSwipeDetection",
2346
+ "_edgeSwipeThreshold",
2347
+ "_freeMode",
2348
+ "_autoHeight",
2349
+ "setWrapperSize",
2350
+ "virtualTranslate",
2351
+ "_effect",
2352
+ "breakpoints",
2353
+ "breakpointsBase",
2354
+ "_spaceBetween",
2355
+ "_slidesPerView",
2356
+ "maxBackfaceHiddenSlides",
2357
+ "_grid",
2358
+ "_slidesPerGroup",
2359
+ "_slidesPerGroupSkip",
2360
+ "_slidesPerGroupAuto",
2361
+ "_centeredSlides",
2362
+ "_centeredSlidesBounds",
2363
+ "_slidesOffsetBefore",
2364
+ "_slidesOffsetAfter",
2365
+ "normalizeSlideIndex",
2366
+ "_centerInsufficientSlides",
2367
+ "_watchOverflow",
2368
+ "roundLengths",
2369
+ "touchRatio",
2370
+ "touchAngle",
2371
+ "simulateTouch",
2372
+ "_shortSwipes",
2373
+ "_longSwipes",
2374
+ "longSwipesRatio",
2375
+ "longSwipesMs",
2376
+ "_followFinger",
2377
+ "allowTouchMove",
2378
+ "_threshold",
2379
+ "touchMoveStopPropagation",
2380
+ "touchStartPreventDefault",
2381
+ "touchStartForcePreventDefault",
2382
+ "touchReleaseOnEdges",
2383
+ "uniqueNavElements",
2384
+ "_resistance",
2385
+ "_resistanceRatio",
2386
+ "_watchSlidesProgress",
2387
+ "_grabCursor",
2388
+ "preventClicks",
2389
+ "preventClicksPropagation",
2390
+ "_slideToClickedSlide",
2391
+ "_loop",
2392
+ "loopAdditionalSlides",
2393
+ "loopAddBlankSlides",
2394
+ "loopPreventsSliding",
2395
+ "_rewind",
2396
+ "_allowSlidePrev",
2397
+ "_allowSlideNext",
2398
+ "_swipeHandler",
2399
+ "_noSwiping",
2400
+ "noSwipingClass",
2401
+ "noSwipingSelector",
2402
+ "passiveListeners",
2403
+ "containerModifierClass",
2404
+ "slideClass",
2405
+ "slideActiveClass",
2406
+ "slideVisibleClass",
2407
+ "slideFullyVisibleClass",
2408
+ "slideNextClass",
2409
+ "slidePrevClass",
2410
+ "slideBlankClass",
2411
+ "wrapperClass",
2412
+ "lazyPreloaderClass",
2413
+ "lazyPreloadPrevNext",
2414
+ "runCallbacksOnInit",
2415
+ "observer",
2416
+ "observeParents",
2417
+ "observeSlideChildren",
2418
+ // modules
2419
+ "a11y",
2420
+ "_autoplay",
2421
+ "_controller",
2422
+ "coverflowEffect",
2423
+ "cubeEffect",
2424
+ "fadeEffect",
2425
+ "flipEffect",
2426
+ "creativeEffect",
2427
+ "cardsEffect",
2428
+ "hashNavigation",
2429
+ "history",
2430
+ "keyboard",
2431
+ "mousewheel",
2432
+ "_navigation",
2433
+ "_pagination",
2434
+ "parallax",
2435
+ "_scrollbar",
2436
+ "_thumbs",
2437
+ "virtual",
2438
+ "zoom",
2439
+ "control"
2440
+ ];
2441
+ function j(t) {
2442
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
2443
+ }
2444
+ function Y(t, e) {
2445
+ const i = ["__proto__", "constructor", "prototype"];
2446
+ Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
2447
+ typeof t[s] > "u" ? t[s] = e[s] : j(e[s]) && j(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : Y(t[s], e[s]) : t[s] = e[s];
2448
+ });
2449
+ }
2450
+ function Ge(t) {
2451
+ return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
2452
+ }
2453
+ function Ve(t) {
2454
+ return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
2455
+ }
2456
+ function De(t) {
2457
+ return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
2458
+ }
2459
+ function Be(t) {
2460
+ t === void 0 && (t = "");
2461
+ const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
2462
+ return e.forEach((s) => {
2463
+ i.indexOf(s) < 0 && i.push(s);
2464
+ }), i.join(" ");
2465
+ }
2466
+ function ui(t) {
2467
+ return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2468
+ }
2469
+ function pi(t) {
2470
+ let {
2471
+ swiper: e,
2472
+ slides: i,
2473
+ passedParams: s,
2474
+ changedParams: n,
2475
+ nextEl: r,
2476
+ prevEl: l,
2477
+ scrollbarEl: o,
2478
+ paginationEl: a
2479
+ } = t;
2480
+ const d = n.filter((T) => T !== "children" && T !== "direction" && T !== "wrapperClass"), {
2481
+ params: c,
2482
+ pagination: f,
2483
+ navigation: u,
2484
+ scrollbar: p,
2485
+ virtual: m,
2486
+ thumbs: v
2487
+ } = e;
2488
+ let C, h, S, g, E, b, P, M;
2489
+ n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (C = !0), n.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (h = !0), n.includes("pagination") && s.pagination && (s.pagination.el || a) && (c.pagination || c.pagination === !1) && f && !f.el && (S = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (c.scrollbar || c.scrollbar === !1) && p && !p.el && (g = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (E = !0);
2490
+ const y = (T) => {
2491
+ e[T] && (e[T].destroy(), T === "navigation" ? (e.isElement && (e[T].prevEl.remove(), e[T].nextEl.remove()), c[T].prevEl = void 0, c[T].nextEl = void 0, e[T].prevEl = void 0, e[T].nextEl = void 0) : (e.isElement && e[T].el.remove(), c[T].el = void 0, e[T].el = void 0));
2492
+ };
2493
+ n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ? P = !0 : M = !0), d.forEach((T) => {
2494
+ if (j(c[T]) && j(s[T]))
2495
+ Object.assign(c[T], s[T]), (T === "navigation" || T === "pagination" || T === "scrollbar") && "enabled" in s[T] && !s[T].enabled && y(T);
2496
+ else {
2497
+ const w = s[T];
2498
+ (w === !0 || w === !1) && (T === "navigation" || T === "pagination" || T === "scrollbar") ? w === !1 && y(T) : c[T] = s[T];
2499
+ }
2500
+ }), d.includes("controller") && !h && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i && m && c.virtual.enabled ? (m.slides = i, m.update(!0)) : n.includes("virtual") && m && c.virtual.enabled && (i && (m.slides = i), m.update(!0)), n.includes("children") && i && c.loop && (M = !0), C && v.init() && v.update(!0), h && (e.controller.control = c.controller.control), S && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-pagination"), a.part.add("pagination"), e.el.appendChild(a)), a && (c.pagination.el = a), f.init(), f.render(), f.update()), g && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (c.scrollbar.el = o), p.init(), p.updateSize(), p.setTranslate()), E && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), r.innerHTML = e.hostEl.constructor.nextButtonSvg, r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), r && (c.navigation.nextEl = r), l && (c.navigation.prevEl = l), u.init(), u.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (b || M) && e.loopDestroy(), (P || M) && e.loopCreate(), e.update();
2501
+ }
2502
+ function mi(t, e) {
2503
+ t === void 0 && (t = {}), e === void 0 && (e = !0);
2504
+ const i = {
2505
+ on: {}
2506
+ }, s = {}, n = {};
2507
+ Y(i, pe), i._emitClasses = !0, i.init = !1;
2508
+ const r = {}, l = _e.map((a) => a.replace(/_/, "")), o = Object.assign({}, t);
2509
+ return Object.keys(o).forEach((a) => {
2510
+ typeof t[a] > "u" || (l.indexOf(a) >= 0 ? j(t[a]) ? (i[a] = {}, n[a] = {}, Y(i[a], t[a]), Y(n[a], t[a])) : (i[a] = t[a], n[a] = t[a]) : a.search(/on[A-Z]/) === 0 && typeof t[a] == "function" ? e ? s[`${a[2].toLowerCase()}${a.substr(3)}`] = t[a] : i.on[`${a[2].toLowerCase()}${a.substr(3)}`] = t[a] : r[a] = t[a]);
2511
+ }), ["navigation", "pagination", "scrollbar"].forEach((a) => {
2512
+ i[a] === !0 && (i[a] = {}), i[a] === !1 && delete i[a];
2513
+ }), {
2514
+ params: i,
2515
+ passedParams: n,
2516
+ rest: r,
2517
+ events: s
2518
+ };
2519
+ }
2520
+ function hi(t, e) {
2521
+ let {
2522
+ el: i,
2523
+ nextEl: s,
2524
+ prevEl: n,
2525
+ paginationEl: r,
2526
+ scrollbarEl: l,
2527
+ swiper: o
2528
+ } = t;
2529
+ Ge(e) && s && n && (o.params.navigation.nextEl = s, o.originalParams.navigation.nextEl = s, o.params.navigation.prevEl = n, o.originalParams.navigation.prevEl = n), Ve(e) && r && (o.params.pagination.el = r, o.originalParams.pagination.el = r), De(e) && l && (o.params.scrollbar.el = l, o.originalParams.scrollbar.el = l), o.init(i);
2530
+ }
2531
+ function gi(t, e, i, s, n) {
2532
+ const r = [];
2533
+ if (!e) return r;
2534
+ const l = (a) => {
2535
+ r.indexOf(a) < 0 && r.push(a);
2536
+ };
2537
+ if (i && s) {
2538
+ const a = s.map(n), d = i.map(n);
2539
+ a.join("") !== d.join("") && l("children"), s.length !== i.length && l("children");
2540
+ }
2541
+ return _e.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
2542
+ if (a in t && a in e)
2543
+ if (j(t[a]) && j(e[a])) {
2544
+ const d = Object.keys(t[a]), c = Object.keys(e[a]);
2545
+ d.length !== c.length ? l(a) : (d.forEach((f) => {
2546
+ t[a][f] !== e[a][f] && l(a);
2547
+ }), c.forEach((f) => {
2548
+ t[a][f] !== e[a][f] && l(a);
2549
+ }));
2550
+ } else t[a] !== e[a] && l(a);
2551
+ }), r;
2552
+ }
2553
+ const vi = (t) => {
2554
+ !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
2555
+ };
2556
+ function te() {
2557
+ return te = Object.assign ? Object.assign.bind() : function(t) {
2558
+ for (var e = 1; e < arguments.length; e++) {
2559
+ var i = arguments[e];
2560
+ for (var s in i)
2561
+ Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
2562
+ }
2563
+ return t;
2564
+ }, te.apply(this, arguments);
2565
+ }
2566
+ function Ne(t) {
2567
+ return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
2568
+ }
2569
+ function Fe(t) {
2570
+ const e = [];
2571
+ return A.Children.toArray(t).forEach((i) => {
2572
+ Ne(i) ? e.push(i) : i.props && i.props.children && Fe(i.props.children).forEach((s) => e.push(s));
2573
+ }), e;
2574
+ }
2575
+ function wi(t) {
2576
+ const e = [], i = {
2577
+ "container-start": [],
2578
+ "container-end": [],
2579
+ "wrapper-start": [],
2580
+ "wrapper-end": []
2581
+ };
2582
+ return A.Children.toArray(t).forEach((s) => {
2583
+ if (Ne(s))
2584
+ e.push(s);
2585
+ else if (s.props && s.props.slot && i[s.props.slot])
2586
+ i[s.props.slot].push(s);
2587
+ else if (s.props && s.props.children) {
2588
+ const n = Fe(s.props.children);
2589
+ n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
2590
+ } else
2591
+ i["container-end"].push(s);
2592
+ }), {
2593
+ slides: e,
2594
+ slots: i
2595
+ };
2596
+ }
2597
+ function Si(t, e, i) {
2598
+ if (!i) return null;
2599
+ const s = (c) => {
2600
+ let f = c;
2601
+ return c < 0 ? f = e.length + c : f >= e.length && (f = f - e.length), f;
2602
+ }, n = t.isHorizontal() ? {
2603
+ [t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
2604
+ } : {
2605
+ top: `${i.offset}px`
2606
+ }, {
2607
+ from: r,
2608
+ to: l
2609
+ } = i, o = t.params.loop ? -e.length : 0, a = t.params.loop ? e.length * 2 : e.length, d = [];
2610
+ for (let c = o; c < a; c += 1)
2611
+ c >= r && c <= l && d.push(e[s(c)]);
2612
+ return d.map((c, f) => /* @__PURE__ */ A.cloneElement(c, {
2613
+ swiper: t,
2614
+ style: n,
2615
+ key: c.props.virtualIndex || c.key || `slide-${f}`
2616
+ }));
2617
+ }
2618
+ function K(t, e) {
2619
+ return typeof window > "u" ? de(t, e) : je(t, e);
2620
+ }
2621
+ const Ee = /* @__PURE__ */ Pe(null), Ti = /* @__PURE__ */ Pe(null), Re = /* @__PURE__ */ ye(function(t, e) {
2622
+ let {
2623
+ className: i,
2624
+ tag: s = "div",
2625
+ wrapperTag: n = "div",
2626
+ children: r,
2627
+ onSwiper: l,
2628
+ ...o
2629
+ } = t === void 0 ? {} : t, a = !1;
2630
+ const [d, c] = X("swiper"), [f, u] = X(null), [p, m] = X(!1), v = R(!1), C = R(null), h = R(null), S = R(null), g = R(null), E = R(null), b = R(null), P = R(null), M = R(null), {
2631
+ params: y,
2632
+ passedParams: T,
2633
+ rest: w,
2634
+ events: x
2635
+ } = mi(o), {
2636
+ slides: I,
2637
+ slots: z
2638
+ } = wi(r), B = () => {
2639
+ m(!p);
2640
+ };
2641
+ Object.assign(y.on, {
2642
+ _containerClasses(L, F) {
2643
+ c(F);
2644
+ }
2645
+ });
2646
+ const N = () => {
2647
+ Object.assign(y.on, x), a = !0;
2648
+ const L = {
2649
+ ...y
2650
+ };
2651
+ if (delete L.wrapperClass, h.current = new he(L), h.current.virtual && h.current.params.virtual.enabled) {
2652
+ h.current.virtual.slides = I;
2653
+ const F = {
2654
+ cache: !1,
2655
+ slides: I,
2656
+ renderExternal: u,
2657
+ renderExternalUpdate: !1
2658
+ };
2659
+ Y(h.current.params.virtual, F), Y(h.current.originalParams.virtual, F);
2660
+ }
2661
+ };
2662
+ C.current || N(), h.current && h.current.on("_beforeBreakpoint", B);
2663
+ const O = () => {
2664
+ a || !x || !h.current || Object.keys(x).forEach((L) => {
2665
+ h.current.on(L, x[L]);
2666
+ });
2667
+ }, _ = () => {
2668
+ !x || !h.current || Object.keys(x).forEach((L) => {
2669
+ h.current.off(L, x[L]);
2670
+ });
2671
+ };
2672
+ de(() => () => {
2673
+ h.current && h.current.off("_beforeBreakpoint", B);
2674
+ }), de(() => {
2675
+ !v.current && h.current && (h.current.emitSlidesClasses(), v.current = !0);
2676
+ }), K(() => {
2677
+ if (e && (e.current = C.current), !!C.current)
2678
+ return h.current.destroyed && N(), hi({
2679
+ el: C.current,
2680
+ nextEl: E.current,
2681
+ prevEl: b.current,
2682
+ paginationEl: P.current,
2683
+ scrollbarEl: M.current,
2684
+ swiper: h.current
2685
+ }, y), l && !h.current.destroyed && l(h.current), () => {
2686
+ h.current && !h.current.destroyed && h.current.destroy(!0, !1);
2687
+ };
2688
+ }, []), K(() => {
2689
+ O();
2690
+ const L = gi(T, S.current, I, g.current, (F) => F.key);
2691
+ return S.current = T, g.current = I, L.length && h.current && !h.current.destroyed && pi({
2692
+ swiper: h.current,
2693
+ slides: I,
2694
+ passedParams: T,
2695
+ changedParams: L,
2696
+ nextEl: E.current,
2697
+ prevEl: b.current,
2698
+ scrollbarEl: M.current,
2699
+ paginationEl: P.current
2700
+ }), () => {
2701
+ _();
2702
+ };
2703
+ }), K(() => {
2704
+ vi(h.current);
2705
+ }, [f]);
2706
+ function G() {
2707
+ return y.virtual ? Si(h.current, I, f) : I.map((L, F) => /* @__PURE__ */ A.cloneElement(L, {
2708
+ swiper: h.current,
2709
+ swiperSlideIndex: F
2710
+ }));
2711
+ }
2712
+ return /* @__PURE__ */ A.createElement(s, te({
2713
+ ref: C,
2714
+ className: Be(`${d}${i ? ` ${i}` : ""}`)
2715
+ }, w), /* @__PURE__ */ A.createElement(Ti.Provider, {
2716
+ value: h.current
2717
+ }, z["container-start"], /* @__PURE__ */ A.createElement(n, {
2718
+ className: ui(y.wrapperClass)
2719
+ }, z["wrapper-start"], G(), z["wrapper-end"]), Ge(y) && /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement("div", {
2720
+ ref: b,
2721
+ className: "swiper-button-prev"
2722
+ }), /* @__PURE__ */ A.createElement("div", {
2723
+ ref: E,
2724
+ className: "swiper-button-next"
2725
+ })), De(y) && /* @__PURE__ */ A.createElement("div", {
2726
+ ref: M,
2727
+ className: "swiper-scrollbar"
2728
+ }), Ve(y) && /* @__PURE__ */ A.createElement("div", {
2729
+ ref: P,
2730
+ className: "swiper-pagination"
2731
+ }), z["container-end"]));
2732
+ });
2733
+ Re.displayName = "Swiper";
2734
+ const bi = /* @__PURE__ */ ye(function(t, e) {
2735
+ let {
2736
+ tag: i = "div",
2737
+ children: s,
2738
+ className: n = "",
2739
+ swiper: r,
2740
+ zoom: l,
2741
+ lazy: o,
2742
+ virtualIndex: a,
2743
+ swiperSlideIndex: d,
2744
+ ...c
2745
+ } = t === void 0 ? {} : t;
2746
+ const f = R(null), [u, p] = X("swiper-slide"), [m, v] = X(!1);
2747
+ function C(E, b, P) {
2748
+ b === f.current && p(P);
2749
+ }
2750
+ K(() => {
2751
+ if (typeof d < "u" && (f.current.swiperSlideIndex = d), e && (e.current = f.current), !(!f.current || !r)) {
2752
+ if (r.destroyed) {
2753
+ u !== "swiper-slide" && p("swiper-slide");
2754
+ return;
2755
+ }
2756
+ return r.on("_slideClass", C), () => {
2757
+ r && r.off("_slideClass", C);
2758
+ };
2759
+ }
2760
+ }), K(() => {
2761
+ r && f.current && !r.destroyed && p(r.getSlideClasses(f.current));
2762
+ }, [r]);
2763
+ const h = {
2764
+ isActive: u.indexOf("swiper-slide-active") >= 0,
2765
+ isVisible: u.indexOf("swiper-slide-visible") >= 0,
2766
+ isPrev: u.indexOf("swiper-slide-prev") >= 0,
2767
+ isNext: u.indexOf("swiper-slide-next") >= 0
2768
+ }, S = () => typeof s == "function" ? s(h) : s, g = () => {
2769
+ v(!0);
2770
+ };
2771
+ return /* @__PURE__ */ A.createElement(i, te({
2772
+ ref: f,
2773
+ className: Be(`${u}${n ? ` ${n}` : ""}`),
2774
+ "data-swiper-slide-index": a,
2775
+ onLoad: g
2776
+ }, c), l && /* @__PURE__ */ A.createElement(Ee.Provider, {
2777
+ value: h
2778
+ }, /* @__PURE__ */ A.createElement("div", {
2779
+ className: "swiper-zoom-container",
2780
+ "data-swiper-zoom": typeof l == "number" ? l : void 0
2781
+ }, S(), o && !m && /* @__PURE__ */ A.createElement("div", {
2782
+ className: "swiper-lazy-preloader"
2783
+ }))), !l && /* @__PURE__ */ A.createElement(Ee.Provider, {
2784
+ value: h
2785
+ }, S(), o && !m && /* @__PURE__ */ A.createElement("div", {
2786
+ className: "swiper-lazy-preloader"
2787
+ })));
2788
+ });
2789
+ bi.displayName = "SwiperSlide";
2790
+ const xi = () => Re, Li = /* @__PURE__ */ W(xi())({
2791
+ name: "Carousel",
2792
+ class: "c1f9jjsn",
2793
+ propsAsIs: !0
2794
+ }), zi = /* @__PURE__ */ W("div")({
2795
+ name: "ScreenWrap",
2796
+ class: "s25r51y",
2797
+ propsAsIs: !1
2798
+ }), Ei = () => We, yi = /* @__PURE__ */ W(Ei())({
2799
+ name: "SponsorIconI",
2800
+ class: "s1lvrmx8",
2801
+ propsAsIs: !0
2802
+ }), Ai = ({
2803
+ style: t,
2804
+ className: e
2805
+ }) => /* @__PURE__ */ He(yi, {
2806
+ className: e,
2807
+ style: t,
2808
+ name: "icon-masters-logo"
2809
+ }), _i = /* @__PURE__ */ W("div")({
2810
+ name: "ScreenTextBlock",
2811
+ class: "s11xps29",
2812
+ propsAsIs: !1
2813
+ }), Gi = /* @__PURE__ */ W("div")({
2814
+ name: "ScreenTitle",
2815
+ class: "s14qstuv",
2816
+ propsAsIs: !1
2817
+ }), Vi = /* @__PURE__ */ W("div")({
2818
+ name: "ScreenDescription",
2819
+ class: "s14mdh2e",
2820
+ propsAsIs: !1
2821
+ }), Di = /* @__PURE__ */ W("button")({
2822
+ name: "ScreenButton",
2823
+ class: "sqtjig9",
2824
+ propsAsIs: !1
2825
+ });
2826
+ export {
2827
+ Li as C,
2828
+ zi as S,
2829
+ _i as a,
2830
+ Gi as b,
2831
+ Vi as c,
2832
+ Di as d,
2833
+ Ai as e,
2834
+ k as f,
2835
+ fe as g,
2836
+ we as h,
2837
+ ve as i,
2838
+ it as j,
2839
+ bi as k,
2840
+ Oi as m
2841
+ };