@marimo-team/islands 0.12.1-dev2 → 0.12.1-dev21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BUkHSSQ3.js → ConnectedDataExplorerComponent-DNQoDjFe.js} +8 -8
  2. package/dist/{VegaLite-D2gsHKuf.js → VegaLite-C61XFnJy.js} +2456 -2455
  3. package/dist/{_baseUniq-CGdEI3Nv.js → _baseUniq-BVJ8xAuG.js} +1 -1
  4. package/dist/{any-language-editor-CKyudq2-.js → any-language-editor-OJReD1ph.js} +176 -177
  5. package/dist/architectureDiagram-IEHRJDOE-C5szj5L-.js +4634 -0
  6. package/dist/assets/{save-worker-J2nVA3vw.js → save-worker-CYdkP5Ic.js} +5 -5
  7. package/dist/assets/{worker-6ypxTHEH.js → worker-CH7zxkMA.js} +5 -5
  8. package/dist/assets/{worker-0hM8VAjI.js → worker-DEw2ZetQ.js} +5 -5
  9. package/dist/{blockDiagram-ZHA2E4KO-BlCDChLH.js → blockDiagram-JOT3LUYC-6huJKNk4.js} +4 -4
  10. package/dist/{c4Diagram-6F5ED5ID-niLscHfK.js → c4Diagram-VJAJSXHY-DLdlB4_f.js} +2 -2
  11. package/dist/{channel-Bt8mGm9q.js → channel-C4MpN-FJ.js} +1 -1
  12. package/dist/{chunk-TMUBEWPD-CQLP9BEl.js → chunk-4BMEZGHF-CczBKfna.js} +1 -1
  13. package/dist/chunk-A2AXSNBT-BsMPztSQ.js +1372 -0
  14. package/dist/chunk-AEK57VVT-B6c3n8K2.js +1415 -0
  15. package/dist/{chunk-ASOPGD6M-DCxLLtgf.js → chunk-D6G4REZN-X8xBS5rG.js} +1 -1
  16. package/dist/{chunk-5HRBRIJM-DjjlC6eW.js → chunk-RZ5BOZE2-CUqnF2K6.js} +1 -1
  17. package/dist/{chunk-KFBOBJHC-DPkQurpv.js → chunk-XZIHB7SX-CSouwcyb.js} +1 -1
  18. package/dist/classDiagram-GIVACNV2-CG_R_HQh.js +16 -0
  19. package/dist/classDiagram-v2-COTLJTTW-CG_R_HQh.js +16 -0
  20. package/dist/{clike-BLr83cjT.js → clike-BUuHEmgZ.js} +19 -17
  21. package/dist/{clone-COI_V4qE.js → clone-DK3J-MiR.js} +1 -1
  22. package/dist/{dagre-4EVJKHTY-DPsWdzds.js → dagre-OKDRZEBW-D8zhCeNW.js} +46 -46
  23. package/dist/{data-editor-D2rMsHxb.js → data-editor-BHWBseKi.js} +27 -22
  24. package/dist/diagram-SSKATNLV-pHZ4gvQ1.js +221 -0
  25. package/dist/{diagram-QW4FP2JN-D4dzrYii.js → diagram-VNBRO52H-D5_43LWo.js} +28 -28
  26. package/dist/{dockerfile-CFG_IPGn.js → dockerfile-DIy8NleC.js} +1 -1
  27. package/dist/erDiagram-Q7BY3M3F-CqUXZyK-.js +841 -0
  28. package/dist/{factor-DJHfQ4a1.js → factor-DDOC7X6P.js} +1 -1
  29. package/dist/flowDiagram-4HSFHLVR-DwhP_PW-.js +1622 -0
  30. package/dist/ganttDiagram-APWFNJXF-Coo7g8mK.js +1681 -0
  31. package/dist/{gitGraphDiagram-NRZ2UAAF-CO9Yfk-1.js → gitGraphDiagram-7IBYFJ6S-CJM5LDZc.js} +55 -55
  32. package/dist/{graph-j21MX5m5.js → graph-DXseY-wc.js} +3 -3
  33. package/dist/{groovy-CdgvOO23.js → groovy-DZeT_VM-.js} +1 -1
  34. package/dist/{index-DwhNQhNY.js → index-B-lvhTmE.js} +1 -1
  35. package/dist/{index-CZoype9l.js → index-B4nMPVvH.js} +1 -1
  36. package/dist/{index-C-FP0asF.js → index-BJcH72DF.js} +1 -1
  37. package/dist/{index-DATq7mzH.js → index-BUjAylGO.js} +1 -1
  38. package/dist/{index-CNYIP8n0.js → index-BeNQgFqm.js} +1 -1
  39. package/dist/{index-CqtUFj8g.js → index-BfQvDHaW.js} +1 -1
  40. package/dist/{index-D83p58Zi.js → index-BnGDaicg.js} +1 -1
  41. package/dist/{index-CxqVUOhW.js → index-C2ispfH7.js} +1 -1
  42. package/dist/{index-Cr0IVnKP.js → index-C31uOHRg.js} +3 -3
  43. package/dist/{index-4YXC3aOd.js → index-CwJWNsd3.js} +1 -1
  44. package/dist/{index-Wlh2yRsy.js → index-DC3Cnx5t.js} +1 -1
  45. package/dist/{index-_v--1fvH.js → index-DCcdmTNw.js} +1 -1
  46. package/dist/{index-Ec1JnxMr.js → index-DMfwuBgb.js} +1 -1
  47. package/dist/{index-VZAogpU3.js → index-DWPlo8vh.js} +1 -1
  48. package/dist/{index-B8argTgS.js → index-DYFTJIXf.js} +1 -1
  49. package/dist/{infoDiagram-A4XQUW5V-D6HtVB0K.js → infoDiagram-PH2N3AL5-CAFARnGi.js} +5 -5
  50. package/dist/{journeyDiagram-G5WM74LC-DMj7UaUs.js → journeyDiagram-U35MCT3I-CxCG-gu9.js} +34 -35
  51. package/dist/{kanban-definition-QRCXZQQD-C9sAvwvv.js → kanban-definition-NDS4AKOZ-DXWk4fBs.js} +26 -25
  52. package/dist/{layout-DnpJ8ssh.js → layout-DCbiAC-B.js} +4 -4
  53. package/dist/{linear-C7S_zUSg.js → linear-C-BjrWtA.js} +1 -1
  54. package/dist/{main-jjvPwD9F.js → main-VRYALaFR.js} +31084 -30575
  55. package/dist/main.js +1 -1
  56. package/dist/mermaid-3srgUkji.js +11991 -0
  57. package/dist/{min-DNi_26db.js → min-C6jNU-8q.js} +2 -2
  58. package/dist/{mindmap-definition-GWI6TPTV-Bbg64FAI.js → mindmap-definition-ALO5MXBD-ItSGCYxS.js} +3 -2
  59. package/dist/{nsis-BtA0qkjU.js → nsis-fePjrhq7.js} +1 -1
  60. package/dist/{pascal-ixanSKUz.js → pascal-De0D6mP7.js} +1 -1
  61. package/dist/{pieDiagram-YF2LJOPJ-Cr3o9epk.js → pieDiagram-IB7DONF6-DvX9YZO3.js} +38 -38
  62. package/dist/{quadrantDiagram-OS5C2QUG-CTdokV-X.js → quadrantDiagram-7GDLP6J5-BbXv1kiZ.js} +2 -2
  63. package/dist/{gitGraph-YCYPL57B-C6vjpJLv.js → radar-MK3ICKWK-Chc5umY2.js} +3259 -2897
  64. package/dist/{react-plotly-D7fFNQUF.js → react-plotly--Re2eJt2.js} +1 -1
  65. package/dist/requirementDiagram-KVF5MWMF-0r_3Jc_R.js +851 -0
  66. package/dist/{sankeyDiagram-Y46BX6SQ-CtGs7dt9.js → sankeyDiagram-QLVOVGJD-eycVAOR9.js} +152 -149
  67. package/dist/sequenceDiagram-X6HHIX6F-DQpYFs9_.js +2281 -0
  68. package/dist/{simple-mode-HGTvdazT.js → simple-mode-B0dvCdAA.js} +15 -14
  69. package/dist/slides-component-BM71y3QA.js +3782 -0
  70. package/dist/{stateDiagram-MAYHULR4-HCOwrhPJ.js → stateDiagram-DGXRK772--5awulBB.js} +41 -39
  71. package/dist/stateDiagram-v2-YXO3MK2T-CrxS4RqA.js +16 -0
  72. package/dist/style.css +1 -1
  73. package/dist/{time-Cf454IRV.js → time-aNhcx3m7.js} +2 -2
  74. package/dist/{timeline-definition-U7ZMHBDA-AcXJneLr.js → timeline-definition-BDJGKUSR-D5qQYaXU.js} +25 -25
  75. package/dist/{vega-component-DN01b8IT.js → vega-component-IC6ZSnx9.js} +2 -2
  76. package/dist/{xquery-xQxle02u.js → xquery-BUQdORAS.js} +72 -76
  77. package/dist/{xychartDiagram-6QU3TZC5-B3SwzwIL.js → xychartDiagram-VJFVF3MP-Ceb_sCs0.js} +11 -11
  78. package/package.json +25 -23
  79. package/dist/architectureDiagram-UYN6MBPD-C8FCwy4e.js +0 -4595
  80. package/dist/chunk-7U56Z5CX-D1T9hvBU.js +0 -1215
  81. package/dist/chunk-T2TOU4HS-DcM_xxju.js +0 -1303
  82. package/dist/classDiagram-LNE6IOMH-XbDq3sOW.js +0 -14
  83. package/dist/classDiagram-v2-MQ7JQ4JX-XbDq3sOW.js +0 -14
  84. package/dist/erDiagram-6RL3IURR-13ULGiOU.js +0 -938
  85. package/dist/flowDiagram-7ASYPVHJ-CMtLojGE.js +0 -1484
  86. package/dist/ganttDiagram-NTVNEXSI-Crv4rrPG.js +0 -1679
  87. package/dist/mermaid-BwpuxK20.js +0 -12937
  88. package/dist/requirementDiagram-MIRIMTAZ-Bz15K_7J.js +0 -769
  89. package/dist/sequenceDiagram-G6AWOVSC-D0hnYjDZ.js +0 -2274
  90. package/dist/slides-component-DM7nuuqG.js +0 -3776
  91. package/dist/stateDiagram-v2-4JROLMXI-Cj6uqksM.js +0 -14
  92. package/dist/stex-92raWT1r.js +0 -129
@@ -0,0 +1,3782 @@
1
+ import { D as R, R as V, W as Et, bd as bt, K as Ke, J as he, M as xt } from "./main-VRYALaFR.js";
2
+ function Ze(t) {
3
+ return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
4
+ }
5
+ function je(t, e) {
6
+ t === void 0 && (t = {}), e === void 0 && (e = {});
7
+ const i = ["__proto__", "constructor", "prototype"];
8
+ Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
9
+ typeof t[s] > "u" ? t[s] = e[s] : Ze(e[s]) && Ze(t[s]) && Object.keys(e[s]).length > 0 && je(t[s], e[s]);
10
+ });
11
+ }
12
+ const st = {
13
+ body: {},
14
+ addEventListener() {
15
+ },
16
+ removeEventListener() {
17
+ },
18
+ activeElement: {
19
+ blur() {
20
+ },
21
+ nodeName: ""
22
+ },
23
+ querySelector() {
24
+ return null;
25
+ },
26
+ querySelectorAll() {
27
+ return [];
28
+ },
29
+ getElementById() {
30
+ return null;
31
+ },
32
+ createEvent() {
33
+ return {
34
+ initEvent() {
35
+ }
36
+ };
37
+ },
38
+ createElement() {
39
+ return {
40
+ children: [],
41
+ childNodes: [],
42
+ style: {},
43
+ setAttribute() {
44
+ },
45
+ getElementsByTagName() {
46
+ return [];
47
+ }
48
+ };
49
+ },
50
+ createElementNS() {
51
+ return {};
52
+ },
53
+ importNode() {
54
+ return null;
55
+ },
56
+ location: {
57
+ hash: "",
58
+ host: "",
59
+ hostname: "",
60
+ href: "",
61
+ origin: "",
62
+ pathname: "",
63
+ protocol: "",
64
+ search: ""
65
+ }
66
+ };
67
+ function Z() {
68
+ const t = typeof document < "u" ? document : {};
69
+ return je(t, st), t;
70
+ }
71
+ const yt = {
72
+ document: st,
73
+ navigator: {
74
+ userAgent: ""
75
+ },
76
+ location: {
77
+ hash: "",
78
+ host: "",
79
+ hostname: "",
80
+ href: "",
81
+ origin: "",
82
+ pathname: "",
83
+ protocol: "",
84
+ search: ""
85
+ },
86
+ history: {
87
+ replaceState() {
88
+ },
89
+ pushState() {
90
+ },
91
+ go() {
92
+ },
93
+ back() {
94
+ }
95
+ },
96
+ CustomEvent: function() {
97
+ return this;
98
+ },
99
+ addEventListener() {
100
+ },
101
+ removeEventListener() {
102
+ },
103
+ getComputedStyle() {
104
+ return {
105
+ getPropertyValue() {
106
+ return "";
107
+ }
108
+ };
109
+ },
110
+ Image() {
111
+ },
112
+ Date() {
113
+ },
114
+ screen: {},
115
+ setTimeout() {
116
+ },
117
+ clearTimeout() {
118
+ },
119
+ matchMedia() {
120
+ return {};
121
+ },
122
+ requestAnimationFrame(t) {
123
+ return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
124
+ },
125
+ cancelAnimationFrame(t) {
126
+ typeof setTimeout > "u" || clearTimeout(t);
127
+ }
128
+ };
129
+ function k() {
130
+ const t = typeof window < "u" ? window : {};
131
+ return je(t, yt), t;
132
+ }
133
+ function Tt(t) {
134
+ return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
135
+ }
136
+ function Ct(t) {
137
+ const e = t;
138
+ Object.keys(e).forEach((i) => {
139
+ try {
140
+ e[i] = null;
141
+ } catch {
142
+ }
143
+ try {
144
+ delete e[i];
145
+ } catch {
146
+ }
147
+ });
148
+ }
149
+ function Ve(t, e) {
150
+ return e === void 0 && (e = 0), setTimeout(t, e);
151
+ }
152
+ function Ce() {
153
+ return Date.now();
154
+ }
155
+ function Mt(t) {
156
+ const e = k();
157
+ let i;
158
+ return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
159
+ }
160
+ function We(t, e) {
161
+ e === void 0 && (e = "x");
162
+ const i = k();
163
+ let s, r, n;
164
+ const d = Mt(t);
165
+ return i.WebKitCSSMatrix ? (r = d.transform || d.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map((o) => o.replace(",", ".")).join(", ")), n = new i.WebKitCSSMatrix(r === "none" ? "" : r)) : (n = d.MozTransform || d.OTransform || d.MsTransform || d.msTransform || d.transform || d.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = n.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? r = n.m41 : s.length === 16 ? r = parseFloat(s[12]) : r = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? r = n.m42 : s.length === 16 ? r = parseFloat(s[13]) : r = parseFloat(s[5])), r || 0;
166
+ }
167
+ function ye(t) {
168
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
169
+ }
170
+ function Pt(t) {
171
+ return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
172
+ }
173
+ function j() {
174
+ const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
175
+ for (let i = 1; i < arguments.length; i += 1) {
176
+ const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
177
+ if (s != null && !Pt(s)) {
178
+ const r = Object.keys(Object(s)).filter((n) => e.indexOf(n) < 0);
179
+ for (let n = 0, d = r.length; n < d; n += 1) {
180
+ const o = r[n], c = Object.getOwnPropertyDescriptor(s, o);
181
+ c !== void 0 && c.enumerable && (ye(t[o]) && ye(s[o]) ? s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o]) : !ye(t[o]) && ye(s[o]) ? (t[o] = {}, s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o])) : t[o] = s[o]);
182
+ }
183
+ }
184
+ }
185
+ return t;
186
+ }
187
+ function ve(t, e, i) {
188
+ t.style.setProperty(e, i);
189
+ }
190
+ function nt(t) {
191
+ let {
192
+ swiper: e,
193
+ targetPosition: i,
194
+ side: s
195
+ } = t;
196
+ const r = k(), n = -e.translate;
197
+ let d = null, o;
198
+ const c = e.params.speed;
199
+ e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
200
+ const f = i > n ? "next" : "prev", u = (v, w) => f === "next" && v >= w || f === "prev" && v <= w, m = () => {
201
+ o = (/* @__PURE__ */ new Date()).getTime(), d === null && (d = o);
202
+ const v = Math.max(Math.min((o - d) / c, 1), 0), w = 0.5 - Math.cos(v * Math.PI) / 2;
203
+ let a = n + w * (i - n);
204
+ if (u(a, i) && (a = i), e.wrapperEl.scrollTo({
205
+ [s]: a
206
+ }), u(a, i)) {
207
+ e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
208
+ e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
209
+ [s]: a
210
+ });
211
+ }), r.cancelAnimationFrame(e.cssModeFrameID);
212
+ return;
213
+ }
214
+ e.cssModeFrameID = r.requestAnimationFrame(m);
215
+ };
216
+ m();
217
+ }
218
+ function q(t, e) {
219
+ e === void 0 && (e = "");
220
+ const i = k(), s = [...t.children];
221
+ return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((r) => r.matches(e)) : s;
222
+ }
223
+ function Lt(t, e) {
224
+ const i = [e];
225
+ for (; i.length > 0; ) {
226
+ const s = i.shift();
227
+ if (t === s)
228
+ return !0;
229
+ i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
230
+ }
231
+ }
232
+ function zt(t, e) {
233
+ const i = k();
234
+ let s = e.contains(t);
235
+ return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = Lt(t, e))), s;
236
+ }
237
+ function Me(t) {
238
+ try {
239
+ console.warn(t);
240
+ return;
241
+ } catch {
242
+ }
243
+ }
244
+ function fe(t, e) {
245
+ e === void 0 && (e = []);
246
+ const i = document.createElement(t);
247
+ return i.classList.add(...Array.isArray(e) ? e : Tt(e)), i;
248
+ }
249
+ function ke(t) {
250
+ const e = k(), i = Z(), s = t.getBoundingClientRect(), r = i.body, n = t.clientTop || r.clientTop || 0, d = t.clientLeft || r.clientLeft || 0, o = t === e ? e.scrollY : t.scrollTop, c = t === e ? e.scrollX : t.scrollLeft;
251
+ return {
252
+ top: s.top + o - n,
253
+ left: s.left + c - d
254
+ };
255
+ }
256
+ function It(t, e) {
257
+ const i = [];
258
+ for (; t.previousElementSibling; ) {
259
+ const s = t.previousElementSibling;
260
+ e ? s.matches(e) && i.push(s) : i.push(s), t = s;
261
+ }
262
+ return i;
263
+ }
264
+ function Ot(t, e) {
265
+ const i = [];
266
+ for (; t.nextElementSibling; ) {
267
+ const s = t.nextElementSibling;
268
+ e ? s.matches(e) && i.push(s) : i.push(s), t = s;
269
+ }
270
+ return i;
271
+ }
272
+ function ne(t, e) {
273
+ return k().getComputedStyle(t, null).getPropertyValue(e);
274
+ }
275
+ function Pe(t) {
276
+ let e = t, i;
277
+ if (e) {
278
+ for (i = 0; (e = e.previousSibling) !== null; )
279
+ e.nodeType === 1 && (i += 1);
280
+ return i;
281
+ }
282
+ }
283
+ function re(t, e) {
284
+ const i = [];
285
+ let s = t.parentElement;
286
+ for (; s; )
287
+ e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
288
+ return i;
289
+ }
290
+ function He(t, e, i) {
291
+ const s = k();
292
+ 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"));
293
+ }
294
+ function W(t) {
295
+ return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
296
+ }
297
+ let $e;
298
+ function At() {
299
+ const t = k(), e = Z();
300
+ return {
301
+ smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
302
+ touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
303
+ };
304
+ }
305
+ function rt() {
306
+ return $e || ($e = At()), $e;
307
+ }
308
+ let _e;
309
+ function Dt(t) {
310
+ let {
311
+ userAgent: e
312
+ } = t === void 0 ? {} : t;
313
+ const i = rt(), s = k(), r = s.navigator.platform, n = e || s.navigator.userAgent, d = {
314
+ ios: !1,
315
+ android: !1
316
+ }, o = s.screen.width, c = s.screen.height, f = n.match(/(Android);?[\s\/]+([\d.]+)?/);
317
+ let u = n.match(/(iPad).*OS\s([\d_]+)/);
318
+ const m = n.match(/(iPod)(.*OS\s([\d_]+))?/), v = !u && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), w = r === "Win32";
319
+ let a = r === "MacIntel";
320
+ const l = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
321
+ return !u && a && i.touch && l.indexOf(`${o}x${c}`) >= 0 && (u = n.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), a = !1), f && !w && (d.os = "android", d.android = !0), (u || v || m) && (d.os = "ios", d.ios = !0), d;
322
+ }
323
+ function at(t) {
324
+ return t === void 0 && (t = {}), _e || (_e = Dt(t)), _e;
325
+ }
326
+ let Ge;
327
+ function $t() {
328
+ const t = k(), e = at();
329
+ let i = !1;
330
+ function s() {
331
+ const o = t.navigator.userAgent.toLowerCase();
332
+ return o.indexOf("safari") >= 0 && o.indexOf("chrome") < 0 && o.indexOf("android") < 0;
333
+ }
334
+ if (s()) {
335
+ const o = String(t.navigator.userAgent);
336
+ if (o.includes("Version/")) {
337
+ const [c, f] = o.split("Version/")[1].split(" ")[0].split(".").map((u) => Number(u));
338
+ i = c < 16 || c === 16 && f < 2;
339
+ }
340
+ }
341
+ const r = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), n = s(), d = n || r && e.ios;
342
+ return {
343
+ isSafari: i || n,
344
+ needPerspectiveFix: i,
345
+ need3dFix: d,
346
+ isWebView: r
347
+ };
348
+ }
349
+ function lt() {
350
+ return Ge || (Ge = $t()), Ge;
351
+ }
352
+ function _t(t) {
353
+ let {
354
+ swiper: e,
355
+ on: i,
356
+ emit: s
357
+ } = t;
358
+ const r = k();
359
+ let n = null, d = null;
360
+ const o = () => {
361
+ !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
362
+ }, c = () => {
363
+ !e || e.destroyed || !e.initialized || (n = new ResizeObserver((m) => {
364
+ d = r.requestAnimationFrame(() => {
365
+ const {
366
+ width: v,
367
+ height: w
368
+ } = e;
369
+ let a = v, l = w;
370
+ m.forEach((S) => {
371
+ let {
372
+ contentBoxSize: g,
373
+ contentRect: p,
374
+ target: h
375
+ } = S;
376
+ h && h !== e.el || (a = p ? p.width : (g[0] || g).inlineSize, l = p ? p.height : (g[0] || g).blockSize);
377
+ }), (a !== v || l !== w) && o();
378
+ });
379
+ }), n.observe(e.el));
380
+ }, f = () => {
381
+ d && r.cancelAnimationFrame(d), n && n.unobserve && e.el && (n.unobserve(e.el), n = null);
382
+ }, u = () => {
383
+ !e || e.destroyed || !e.initialized || s("orientationchange");
384
+ };
385
+ i("init", () => {
386
+ if (e.params.resizeObserver && typeof r.ResizeObserver < "u") {
387
+ c();
388
+ return;
389
+ }
390
+ r.addEventListener("resize", o), r.addEventListener("orientationchange", u);
391
+ }), i("destroy", () => {
392
+ f(), r.removeEventListener("resize", o), r.removeEventListener("orientationchange", u);
393
+ });
394
+ }
395
+ function Gt(t) {
396
+ let {
397
+ swiper: e,
398
+ extendParams: i,
399
+ on: s,
400
+ emit: r
401
+ } = t;
402
+ const n = [], d = k(), o = function(u, m) {
403
+ m === void 0 && (m = {});
404
+ const v = d.MutationObserver || d.WebkitMutationObserver, w = new v((a) => {
405
+ if (e.__preventObserver__) return;
406
+ if (a.length === 1) {
407
+ r("observerUpdate", a[0]);
408
+ return;
409
+ }
410
+ const l = function() {
411
+ r("observerUpdate", a[0]);
412
+ };
413
+ d.requestAnimationFrame ? d.requestAnimationFrame(l) : d.setTimeout(l, 0);
414
+ });
415
+ w.observe(u, {
416
+ attributes: typeof m.attributes > "u" ? !0 : m.attributes,
417
+ childList: e.isElement || (typeof m.childList > "u" ? !0 : m).childList,
418
+ characterData: typeof m.characterData > "u" ? !0 : m.characterData
419
+ }), n.push(w);
420
+ }, c = () => {
421
+ if (e.params.observer) {
422
+ if (e.params.observeParents) {
423
+ const u = re(e.hostEl);
424
+ for (let m = 0; m < u.length; m += 1)
425
+ o(u[m]);
426
+ }
427
+ o(e.hostEl, {
428
+ childList: e.params.observeSlideChildren
429
+ }), o(e.wrapperEl, {
430
+ attributes: !1
431
+ });
432
+ }
433
+ }, f = () => {
434
+ n.forEach((u) => {
435
+ u.disconnect();
436
+ }), n.splice(0, n.length);
437
+ };
438
+ i({
439
+ observer: !1,
440
+ observeParents: !1,
441
+ observeSlideChildren: !1
442
+ }), s("init", c), s("destroy", f);
443
+ }
444
+ var Bt = {
445
+ on(t, e, i) {
446
+ const s = this;
447
+ if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
448
+ const r = i ? "unshift" : "push";
449
+ return t.split(" ").forEach((n) => {
450
+ s.eventsListeners[n] || (s.eventsListeners[n] = []), s.eventsListeners[n][r](e);
451
+ }), s;
452
+ },
453
+ once(t, e, i) {
454
+ const s = this;
455
+ if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
456
+ function r() {
457
+ s.off(t, r), r.__emitterProxy && delete r.__emitterProxy;
458
+ for (var n = arguments.length, d = new Array(n), o = 0; o < n; o++)
459
+ d[o] = arguments[o];
460
+ e.apply(s, d);
461
+ }
462
+ return r.__emitterProxy = e, s.on(t, r, i);
463
+ },
464
+ onAny(t, e) {
465
+ const i = this;
466
+ if (!i.eventsListeners || i.destroyed || typeof t != "function") return i;
467
+ const s = e ? "unshift" : "push";
468
+ return i.eventsAnyListeners.indexOf(t) < 0 && i.eventsAnyListeners[s](t), i;
469
+ },
470
+ offAny(t) {
471
+ const e = this;
472
+ if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners) return e;
473
+ const i = e.eventsAnyListeners.indexOf(t);
474
+ return i >= 0 && e.eventsAnyListeners.splice(i, 1), e;
475
+ },
476
+ off(t, e) {
477
+ const i = this;
478
+ return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
479
+ typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((r, n) => {
480
+ (r === e || r.__emitterProxy && r.__emitterProxy === e) && i.eventsListeners[s].splice(n, 1);
481
+ });
482
+ }), i;
483
+ },
484
+ emit() {
485
+ const t = this;
486
+ if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
487
+ let e, i, s;
488
+ for (var r = arguments.length, n = new Array(r), d = 0; d < r; d++)
489
+ n[d] = arguments[d];
490
+ return typeof n[0] == "string" || Array.isArray(n[0]) ? (e = n[0], i = n.slice(1, n.length), s = t) : (e = n[0].events, i = n[0].data, s = n[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((c) => {
491
+ t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((f) => {
492
+ f.apply(s, [c, ...i]);
493
+ }), t.eventsListeners && t.eventsListeners[c] && t.eventsListeners[c].forEach((f) => {
494
+ f.apply(s, i);
495
+ });
496
+ }), t;
497
+ }
498
+ };
499
+ function Yt() {
500
+ const t = this;
501
+ let e, i;
502
+ const s = t.el;
503
+ 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(ne(s, "padding-left") || 0, 10) - parseInt(ne(s, "padding-right") || 0, 10), i = i - parseInt(ne(s, "padding-top") || 0, 10) - parseInt(ne(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
504
+ width: e,
505
+ height: i,
506
+ size: t.isHorizontal() ? e : i
507
+ }));
508
+ }
509
+ function Xt() {
510
+ const t = this;
511
+ function e(T, P) {
512
+ return parseFloat(T.getPropertyValue(t.getDirectionLabel(P)) || 0);
513
+ }
514
+ const i = t.params, {
515
+ wrapperEl: s,
516
+ slidesEl: r,
517
+ size: n,
518
+ rtlTranslate: d,
519
+ wrongRTL: o
520
+ } = t, c = t.virtual && i.virtual.enabled, f = c ? t.virtual.slides.length : t.slides.length, u = q(r, `.${t.params.slideClass}, swiper-slide`), m = c ? t.virtual.slides.length : u.length;
521
+ let v = [];
522
+ const w = [], a = [];
523
+ let l = i.slidesOffsetBefore;
524
+ typeof l == "function" && (l = i.slidesOffsetBefore.call(t));
525
+ let S = i.slidesOffsetAfter;
526
+ typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
527
+ const g = t.snapGrid.length, p = t.slidesGrid.length;
528
+ let h = i.spaceBetween, E = -l, b = 0, L = 0;
529
+ if (typeof n > "u")
530
+ return;
531
+ typeof h == "string" && h.indexOf("%") >= 0 ? h = parseFloat(h.replace("%", "")) / 100 * n : typeof h == "string" && (h = parseFloat(h)), t.virtualSize = -h, u.forEach((T) => {
532
+ d ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.style.marginTop = "";
533
+ }), i.centeredSlides && i.cssMode && (ve(s, "--swiper-centered-offset-before", ""), ve(s, "--swiper-centered-offset-after", ""));
534
+ const I = i.grid && i.grid.rows > 1 && t.grid;
535
+ I ? t.grid.initSlides(u) : t.grid && t.grid.unsetSlides();
536
+ let z;
537
+ const y = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((T) => typeof i.breakpoints[T].slidesPerView < "u").length > 0;
538
+ for (let T = 0; T < m; T += 1) {
539
+ z = 0;
540
+ let P;
541
+ if (u[T] && (P = u[T]), I && t.grid.updateSlide(T, P, u), !(u[T] && ne(P, "display") === "none")) {
542
+ if (i.slidesPerView === "auto") {
543
+ y && (u[T].style[t.getDirectionLabel("width")] = "");
544
+ const O = getComputedStyle(P), D = P.style.transform, $ = P.style.webkitTransform;
545
+ if (D && (P.style.transform = "none"), $ && (P.style.webkitTransform = "none"), i.roundLengths)
546
+ z = t.isHorizontal() ? He(P, "width") : He(P, "height");
547
+ else {
548
+ const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"), H = O.getPropertyValue("box-sizing");
549
+ if (H && H === "border-box")
550
+ z = _ + X + G;
551
+ else {
552
+ const {
553
+ clientWidth: K,
554
+ offsetWidth: ee
555
+ } = P;
556
+ z = _ + A + Y + X + G + (ee - K);
557
+ }
558
+ }
559
+ D && (P.style.transform = D), $ && (P.style.webkitTransform = $), i.roundLengths && (z = Math.floor(z));
560
+ } else
561
+ z = (n - (i.slidesPerView - 1) * h) / i.slidesPerView, i.roundLengths && (z = Math.floor(z)), u[T] && (u[T].style[t.getDirectionLabel("width")] = `${z}px`);
562
+ u[T] && (u[T].swiperSlideSize = z), a.push(z), i.centeredSlides ? (E = E + z / 2 + b / 2 + h, b === 0 && T !== 0 && (E = E - n / 2 - h), T === 0 && (E = E - n / 2 - h), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), L % i.slidesPerGroup === 0 && v.push(E), w.push(E)) : (i.roundLengths && (E = Math.floor(E)), (L - Math.min(t.params.slidesPerGroupSkip, L)) % t.params.slidesPerGroup === 0 && v.push(E), w.push(E), E = E + z + h), t.virtualSize += z + h, b = z, L += 1;
563
+ }
564
+ }
565
+ if (t.virtualSize = Math.max(t.virtualSize, n) + S, d && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + h}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + h}px`), I && t.grid.updateWrapperSize(z, v), !i.centeredSlides) {
566
+ const T = [];
567
+ for (let P = 0; P < v.length; P += 1) {
568
+ let O = v[P];
569
+ i.roundLengths && (O = Math.floor(O)), v[P] <= t.virtualSize - n && T.push(O);
570
+ }
571
+ v = T, Math.floor(t.virtualSize - n) - Math.floor(v[v.length - 1]) > 1 && v.push(t.virtualSize - n);
572
+ }
573
+ if (c && i.loop) {
574
+ const T = a[0] + h;
575
+ if (i.slidesPerGroup > 1) {
576
+ const P = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), O = T * i.slidesPerGroup;
577
+ for (let D = 0; D < P; D += 1)
578
+ v.push(v[v.length - 1] + O);
579
+ }
580
+ for (let P = 0; P < t.virtual.slidesBefore + t.virtual.slidesAfter; P += 1)
581
+ i.slidesPerGroup === 1 && v.push(v[v.length - 1] + T), w.push(w[w.length - 1] + T), t.virtualSize += T;
582
+ }
583
+ if (v.length === 0 && (v = [0]), h !== 0) {
584
+ const T = t.isHorizontal() && d ? "marginLeft" : t.getDirectionLabel("marginRight");
585
+ u.filter((P, O) => !i.cssMode || i.loop ? !0 : O !== u.length - 1).forEach((P) => {
586
+ P.style[T] = `${h}px`;
587
+ });
588
+ }
589
+ if (i.centeredSlides && i.centeredSlidesBounds) {
590
+ let T = 0;
591
+ a.forEach((O) => {
592
+ T += O + (h || 0);
593
+ }), T -= h;
594
+ const P = T > n ? T - n : 0;
595
+ v = v.map((O) => O <= 0 ? -l : O > P ? P + S : O);
596
+ }
597
+ if (i.centerInsufficientSlides) {
598
+ let T = 0;
599
+ a.forEach((O) => {
600
+ T += O + (h || 0);
601
+ }), T -= h;
602
+ const P = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
603
+ if (T + P < n) {
604
+ const O = (n - T - P) / 2;
605
+ v.forEach((D, $) => {
606
+ v[$] = D - O;
607
+ }), w.forEach((D, $) => {
608
+ w[$] = D + O;
609
+ });
610
+ }
611
+ }
612
+ if (Object.assign(t, {
613
+ slides: u,
614
+ snapGrid: v,
615
+ slidesGrid: w,
616
+ slidesSizesGrid: a
617
+ }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
618
+ ve(s, "--swiper-centered-offset-before", `${-v[0]}px`), ve(s, "--swiper-centered-offset-after", `${t.size / 2 - a[a.length - 1] / 2}px`);
619
+ const T = -t.snapGrid[0], P = -t.slidesGrid[0];
620
+ t.snapGrid = t.snapGrid.map((O) => O + T), t.slidesGrid = t.slidesGrid.map((O) => O + P);
621
+ }
622
+ if (m !== f && t.emit("slidesLengthChange"), v.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), w.length !== p && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !c && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
623
+ const T = `${i.containerModifierClass}backface-hidden`, P = t.el.classList.contains(T);
624
+ m <= i.maxBackfaceHiddenSlides ? P || t.el.classList.add(T) : P && t.el.classList.remove(T);
625
+ }
626
+ }
627
+ function Rt(t) {
628
+ const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
629
+ let r = 0, n;
630
+ typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
631
+ const d = (o) => s ? e.slides[e.getSlideIndexByData(o)] : e.slides[o];
632
+ if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
633
+ if (e.params.centeredSlides)
634
+ (e.visibleSlides || []).forEach((o) => {
635
+ i.push(o);
636
+ });
637
+ else
638
+ for (n = 0; n < Math.ceil(e.params.slidesPerView); n += 1) {
639
+ const o = e.activeIndex + n;
640
+ if (o > e.slides.length && !s) break;
641
+ i.push(d(o));
642
+ }
643
+ else
644
+ i.push(d(e.activeIndex));
645
+ for (n = 0; n < i.length; n += 1)
646
+ if (typeof i[n] < "u") {
647
+ const o = i[n].offsetHeight;
648
+ r = o > r ? o : r;
649
+ }
650
+ (r || r === 0) && (e.wrapperEl.style.height = `${r}px`);
651
+ }
652
+ function Vt() {
653
+ const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
654
+ for (let s = 0; s < e.length; s += 1)
655
+ e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
656
+ }
657
+ const Je = (t, e, i) => {
658
+ e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
659
+ };
660
+ function Wt(t) {
661
+ t === void 0 && (t = this && this.translate || 0);
662
+ const e = this, i = e.params, {
663
+ slides: s,
664
+ rtlTranslate: r,
665
+ snapGrid: n
666
+ } = e;
667
+ if (s.length === 0) return;
668
+ typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
669
+ let d = -t;
670
+ r && (d = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
671
+ let o = i.spaceBetween;
672
+ typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * e.size : typeof o == "string" && (o = parseFloat(o));
673
+ for (let c = 0; c < s.length; c += 1) {
674
+ const f = s[c];
675
+ let u = f.swiperSlideOffset;
676
+ i.cssMode && i.centeredSlides && (u -= s[0].swiperSlideOffset);
677
+ const m = (d + (i.centeredSlides ? e.minTranslate() : 0) - u) / (f.swiperSlideSize + o), v = (d - n[0] + (i.centeredSlides ? e.minTranslate() : 0) - u) / (f.swiperSlideSize + o), w = -(d - u), a = w + e.slidesSizesGrid[c], l = w >= 0 && w <= e.size - e.slidesSizesGrid[c], S = w >= 0 && w < e.size - 1 || a > 1 && a <= e.size || w <= 0 && a >= e.size;
678
+ S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Je(f, S, i.slideVisibleClass), Je(f, l, i.slideFullyVisibleClass), f.progress = r ? -m : m, f.originalProgress = r ? -v : v;
679
+ }
680
+ }
681
+ function kt(t) {
682
+ const e = this;
683
+ if (typeof t > "u") {
684
+ const u = e.rtlTranslate ? -1 : 1;
685
+ t = e && e.translate && e.translate * u || 0;
686
+ }
687
+ const i = e.params, s = e.maxTranslate() - e.minTranslate();
688
+ let {
689
+ progress: r,
690
+ isBeginning: n,
691
+ isEnd: d,
692
+ progressLoop: o
693
+ } = e;
694
+ const c = n, f = d;
695
+ if (s === 0)
696
+ r = 0, n = !0, d = !0;
697
+ else {
698
+ r = (t - e.minTranslate()) / s;
699
+ const u = Math.abs(t - e.minTranslate()) < 1, m = Math.abs(t - e.maxTranslate()) < 1;
700
+ n = u || r <= 0, d = m || r >= 1, u && (r = 0), m && (r = 1);
701
+ }
702
+ if (i.loop) {
703
+ const u = e.getSlideIndexByData(0), m = e.getSlideIndexByData(e.slides.length - 1), v = e.slidesGrid[u], w = e.slidesGrid[m], a = e.slidesGrid[e.slidesGrid.length - 1], l = Math.abs(t);
704
+ l >= v ? o = (l - v) / a : o = (l + a - w) / a, o > 1 && (o -= 1);
705
+ }
706
+ Object.assign(e, {
707
+ progress: r,
708
+ progressLoop: o,
709
+ isBeginning: n,
710
+ isEnd: d
711
+ }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), n && !c && e.emit("reachBeginning toEdge"), d && !f && e.emit("reachEnd toEdge"), (c && !n || f && !d) && e.emit("fromEdge"), e.emit("progress", r);
712
+ }
713
+ const Be = (t, e, i) => {
714
+ e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
715
+ };
716
+ function Ht() {
717
+ const t = this, {
718
+ slides: e,
719
+ params: i,
720
+ slidesEl: s,
721
+ activeIndex: r
722
+ } = t, n = t.virtual && i.virtual.enabled, d = t.grid && i.grid && i.grid.rows > 1, o = (m) => q(s, `.${i.slideClass}${m}, swiper-slide${m}`)[0];
723
+ let c, f, u;
724
+ if (n)
725
+ if (i.loop) {
726
+ let m = r - t.virtual.slidesBefore;
727
+ m < 0 && (m = t.virtual.slides.length + m), m >= t.virtual.slides.length && (m -= t.virtual.slides.length), c = o(`[data-swiper-slide-index="${m}"]`);
728
+ } else
729
+ c = o(`[data-swiper-slide-index="${r}"]`);
730
+ else
731
+ d ? (c = e.find((m) => m.column === r), u = e.find((m) => m.column === r + 1), f = e.find((m) => m.column === r - 1)) : c = e[r];
732
+ c && (d || (u = Ot(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !u && (u = e[0]), f = It(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !f === 0 && (f = e[e.length - 1]))), e.forEach((m) => {
733
+ Be(m, m === c, i.slideActiveClass), Be(m, m === u, i.slideNextClass), Be(m, m === f, i.slidePrevClass);
734
+ }), t.emitSlidesClasses();
735
+ }
736
+ const Te = (t, e) => {
737
+ if (!t || t.destroyed || !t.params) return;
738
+ const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
739
+ if (s) {
740
+ let r = s.querySelector(`.${t.params.lazyPreloaderClass}`);
741
+ !r && t.isElement && (s.shadowRoot ? r = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
742
+ s.shadowRoot && (r = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), r && r.remove());
743
+ })), r && r.remove();
744
+ }
745
+ }, Ye = (t, e) => {
746
+ if (!t.slides[e]) return;
747
+ const i = t.slides[e].querySelector('[loading="lazy"]');
748
+ i && i.removeAttribute("loading");
749
+ }, Ne = (t) => {
750
+ if (!t || t.destroyed || !t.params) return;
751
+ let e = t.params.lazyPreloadPrevNext;
752
+ const i = t.slides.length;
753
+ if (!i || !e || e < 0) return;
754
+ e = Math.min(e, i);
755
+ const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), r = t.activeIndex;
756
+ if (t.params.grid && t.params.grid.rows > 1) {
757
+ const d = r, o = [d - e];
758
+ o.push(...Array.from({
759
+ length: e
760
+ }).map((c, f) => d + s + f)), t.slides.forEach((c, f) => {
761
+ o.includes(c.column) && Ye(t, f);
762
+ });
763
+ return;
764
+ }
765
+ const n = r + s - 1;
766
+ if (t.params.rewind || t.params.loop)
767
+ for (let d = r - e; d <= n + e; d += 1) {
768
+ const o = (d % i + i) % i;
769
+ (o < r || o > n) && Ye(t, o);
770
+ }
771
+ else
772
+ for (let d = Math.max(r - e, 0); d <= Math.min(n + e, i - 1); d += 1)
773
+ d !== r && (d > n || d < r) && Ye(t, d);
774
+ };
775
+ function Nt(t) {
776
+ const {
777
+ slidesGrid: e,
778
+ params: i
779
+ } = t, s = t.rtlTranslate ? t.translate : -t.translate;
780
+ let r;
781
+ for (let n = 0; n < e.length; n += 1)
782
+ typeof e[n + 1] < "u" ? s >= e[n] && s < e[n + 1] - (e[n + 1] - e[n]) / 2 ? r = n : s >= e[n] && s < e[n + 1] && (r = n + 1) : s >= e[n] && (r = n);
783
+ return i.normalizeSlideIndex && (r < 0 || typeof r > "u") && (r = 0), r;
784
+ }
785
+ function Ft(t) {
786
+ const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
787
+ snapGrid: s,
788
+ params: r,
789
+ activeIndex: n,
790
+ realIndex: d,
791
+ snapIndex: o
792
+ } = e;
793
+ let c = t, f;
794
+ const u = (w) => {
795
+ let a = w - e.virtual.slidesBefore;
796
+ return a < 0 && (a = e.virtual.slides.length + a), a >= e.virtual.slides.length && (a -= e.virtual.slides.length), a;
797
+ };
798
+ if (typeof c > "u" && (c = Nt(e)), s.indexOf(i) >= 0)
799
+ f = s.indexOf(i);
800
+ else {
801
+ const w = Math.min(r.slidesPerGroupSkip, c);
802
+ f = w + Math.floor((c - w) / r.slidesPerGroup);
803
+ }
804
+ if (f >= s.length && (f = s.length - 1), c === n && !e.params.loop) {
805
+ f !== o && (e.snapIndex = f, e.emit("snapIndexChange"));
806
+ return;
807
+ }
808
+ if (c === n && e.params.loop && e.virtual && e.params.virtual.enabled) {
809
+ e.realIndex = u(c);
810
+ return;
811
+ }
812
+ const m = e.grid && r.grid && r.grid.rows > 1;
813
+ let v;
814
+ if (e.virtual && r.virtual.enabled && r.loop)
815
+ v = u(c);
816
+ else if (m) {
817
+ const w = e.slides.find((l) => l.column === c);
818
+ let a = parseInt(w.getAttribute("data-swiper-slide-index"), 10);
819
+ Number.isNaN(a) && (a = Math.max(e.slides.indexOf(w), 0)), v = Math.floor(a / r.grid.rows);
820
+ } else if (e.slides[c]) {
821
+ const w = e.slides[c].getAttribute("data-swiper-slide-index");
822
+ w ? v = parseInt(w, 10) : v = c;
823
+ } else
824
+ v = c;
825
+ Object.assign(e, {
826
+ previousSnapIndex: o,
827
+ snapIndex: f,
828
+ previousRealIndex: d,
829
+ realIndex: v,
830
+ previousIndex: n,
831
+ activeIndex: c
832
+ }), e.initialized && Ne(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (d !== v && e.emit("realIndexChange"), e.emit("slideChange"));
833
+ }
834
+ function jt(t, e) {
835
+ const i = this, s = i.params;
836
+ let r = t.closest(`.${s.slideClass}, swiper-slide`);
837
+ !r && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
838
+ !r && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (r = o);
839
+ });
840
+ let n = !1, d;
841
+ if (r) {
842
+ for (let o = 0; o < i.slides.length; o += 1)
843
+ if (i.slides[o] === r) {
844
+ n = !0, d = o;
845
+ break;
846
+ }
847
+ }
848
+ if (r && n)
849
+ i.clickedSlide = r, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(r.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = d;
850
+ else {
851
+ i.clickedSlide = void 0, i.clickedIndex = void 0;
852
+ return;
853
+ }
854
+ s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
855
+ }
856
+ var qt = {
857
+ updateSize: Yt,
858
+ updateSlides: Xt,
859
+ updateAutoHeight: Rt,
860
+ updateSlidesOffset: Vt,
861
+ updateSlidesProgress: Wt,
862
+ updateProgress: kt,
863
+ updateSlidesClasses: Ht,
864
+ updateActiveIndex: Ft,
865
+ updateClickedSlide: jt
866
+ };
867
+ function Ut(t) {
868
+ t === void 0 && (t = this.isHorizontal() ? "x" : "y");
869
+ const e = this, {
870
+ params: i,
871
+ rtlTranslate: s,
872
+ translate: r,
873
+ wrapperEl: n
874
+ } = e;
875
+ if (i.virtualTranslate)
876
+ return s ? -r : r;
877
+ if (i.cssMode)
878
+ return r;
879
+ let d = We(n, t);
880
+ return d += e.cssOverflowAdjustment(), s && (d = -d), d || 0;
881
+ }
882
+ function Kt(t, e) {
883
+ const i = this, {
884
+ rtlTranslate: s,
885
+ params: r,
886
+ wrapperEl: n,
887
+ progress: d
888
+ } = i;
889
+ let o = 0, c = 0;
890
+ const f = 0;
891
+ i.isHorizontal() ? o = s ? -t : t : c = t, r.roundLengths && (o = Math.floor(o), c = Math.floor(c)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? o : c, r.cssMode ? n[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -o : -c : r.virtualTranslate || (i.isHorizontal() ? o -= i.cssOverflowAdjustment() : c -= i.cssOverflowAdjustment(), n.style.transform = `translate3d(${o}px, ${c}px, ${f}px)`);
892
+ let u;
893
+ const m = i.maxTranslate() - i.minTranslate();
894
+ m === 0 ? u = 0 : u = (t - i.minTranslate()) / m, u !== d && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
895
+ }
896
+ function Zt() {
897
+ return -this.snapGrid[0];
898
+ }
899
+ function Jt() {
900
+ return -this.snapGrid[this.snapGrid.length - 1];
901
+ }
902
+ function Qt(t, e, i, s, r) {
903
+ t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
904
+ const n = this, {
905
+ params: d,
906
+ wrapperEl: o
907
+ } = n;
908
+ if (n.animating && d.preventInteractionOnTransition)
909
+ return !1;
910
+ const c = n.minTranslate(), f = n.maxTranslate();
911
+ let u;
912
+ if (s && t > c ? u = c : s && t < f ? u = f : u = t, n.updateProgress(u), d.cssMode) {
913
+ const m = n.isHorizontal();
914
+ if (e === 0)
915
+ o[m ? "scrollLeft" : "scrollTop"] = -u;
916
+ else {
917
+ if (!n.support.smoothScroll)
918
+ return nt({
919
+ swiper: n,
920
+ targetPosition: -u,
921
+ side: m ? "left" : "top"
922
+ }), !0;
923
+ o.scrollTo({
924
+ [m ? "left" : "top"]: -u,
925
+ behavior: "smooth"
926
+ });
927
+ }
928
+ return !0;
929
+ }
930
+ return e === 0 ? (n.setTransition(0), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionEnd"))) : (n.setTransition(e), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function(v) {
931
+ !n || n.destroyed || v.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, n.animating = !1, i && n.emit("transitionEnd"));
932
+ }), n.wrapperEl.addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd))), !0;
933
+ }
934
+ var ei = {
935
+ getTranslate: Ut,
936
+ setTranslate: Kt,
937
+ minTranslate: Zt,
938
+ maxTranslate: Jt,
939
+ translateTo: Qt
940
+ };
941
+ function ti(t, e) {
942
+ const i = this;
943
+ i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
944
+ }
945
+ function ot(t) {
946
+ let {
947
+ swiper: e,
948
+ runCallbacks: i,
949
+ direction: s,
950
+ step: r
951
+ } = t;
952
+ const {
953
+ activeIndex: n,
954
+ previousIndex: d
955
+ } = e;
956
+ let o = s;
957
+ if (o || (n > d ? o = "next" : n < d ? o = "prev" : o = "reset"), e.emit(`transition${r}`), i && n !== d) {
958
+ if (o === "reset") {
959
+ e.emit(`slideResetTransition${r}`);
960
+ return;
961
+ }
962
+ e.emit(`slideChangeTransition${r}`), o === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`);
963
+ }
964
+ }
965
+ function ii(t, e) {
966
+ t === void 0 && (t = !0);
967
+ const i = this, {
968
+ params: s
969
+ } = i;
970
+ s.cssMode || (s.autoHeight && i.updateAutoHeight(), ot({
971
+ swiper: i,
972
+ runCallbacks: t,
973
+ direction: e,
974
+ step: "Start"
975
+ }));
976
+ }
977
+ function si(t, e) {
978
+ t === void 0 && (t = !0);
979
+ const i = this, {
980
+ params: s
981
+ } = i;
982
+ i.animating = !1, !s.cssMode && (i.setTransition(0), ot({
983
+ swiper: i,
984
+ runCallbacks: t,
985
+ direction: e,
986
+ step: "End"
987
+ }));
988
+ }
989
+ var ni = {
990
+ setTransition: ti,
991
+ transitionStart: ii,
992
+ transitionEnd: si
993
+ };
994
+ function ri(t, e, i, s, r) {
995
+ t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
996
+ const n = this;
997
+ let d = t;
998
+ d < 0 && (d = 0);
999
+ const {
1000
+ params: o,
1001
+ snapGrid: c,
1002
+ slidesGrid: f,
1003
+ previousIndex: u,
1004
+ activeIndex: m,
1005
+ rtlTranslate: v,
1006
+ wrapperEl: w,
1007
+ enabled: a
1008
+ } = n;
1009
+ if (!a && !s && !r || n.destroyed || n.animating && o.preventInteractionOnTransition)
1010
+ return !1;
1011
+ typeof e > "u" && (e = n.params.speed);
1012
+ const l = Math.min(n.params.slidesPerGroupSkip, d);
1013
+ let S = l + Math.floor((d - l) / n.params.slidesPerGroup);
1014
+ S >= c.length && (S = c.length - 1);
1015
+ const g = -c[S];
1016
+ if (o.normalizeSlideIndex)
1017
+ for (let I = 0; I < f.length; I += 1) {
1018
+ const z = -Math.floor(g * 100), y = Math.floor(f[I] * 100), T = Math.floor(f[I + 1] * 100);
1019
+ typeof f[I + 1] < "u" ? z >= y && z < T - (T - y) / 2 ? d = I : z >= y && z < T && (d = I + 1) : z >= y && (d = I);
1020
+ }
1021
+ if (n.initialized && d !== m && (!n.allowSlideNext && (v ? g > n.translate && g > n.minTranslate() : g < n.translate && g < n.minTranslate()) || !n.allowSlidePrev && g > n.translate && g > n.maxTranslate() && (m || 0) !== d))
1022
+ return !1;
1023
+ d !== (u || 0) && i && n.emit("beforeSlideChangeStart"), n.updateProgress(g);
1024
+ let p;
1025
+ d > m ? p = "next" : d < m ? p = "prev" : p = "reset";
1026
+ const h = n.virtual && n.params.virtual.enabled;
1027
+ if (!(h && r) && (v && -g === n.translate || !v && g === n.translate))
1028
+ return n.updateActiveIndex(d), o.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), o.effect !== "slide" && n.setTranslate(g), p !== "reset" && (n.transitionStart(i, p), n.transitionEnd(i, p)), !1;
1029
+ if (o.cssMode) {
1030
+ const I = n.isHorizontal(), z = v ? g : -g;
1031
+ if (e === 0)
1032
+ h && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = !0), h && !n._cssModeVirtualInitialSet && n.params.initialSlide > 0 ? (n._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1033
+ w[I ? "scrollLeft" : "scrollTop"] = z;
1034
+ })) : w[I ? "scrollLeft" : "scrollTop"] = z, h && requestAnimationFrame(() => {
1035
+ n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual = !1;
1036
+ });
1037
+ else {
1038
+ if (!n.support.smoothScroll)
1039
+ return nt({
1040
+ swiper: n,
1041
+ targetPosition: z,
1042
+ side: I ? "left" : "top"
1043
+ }), !0;
1044
+ w.scrollTo({
1045
+ [I ? "left" : "top"]: z,
1046
+ behavior: "smooth"
1047
+ });
1048
+ }
1049
+ return !0;
1050
+ }
1051
+ const L = lt().isSafari;
1052
+ return h && !r && L && n.isElement && n.virtual.update(!1, !1, d), n.setTransition(e), n.setTranslate(g), n.updateActiveIndex(d), n.updateSlidesClasses(), n.emit("beforeTransitionStart", e, s), n.transitionStart(i, p), e === 0 ? n.transitionEnd(i, p) : n.animating || (n.animating = !0, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(z) {
1053
+ !n || n.destroyed || z.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(i, p));
1054
+ }), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)), !0;
1055
+ }
1056
+ function ai(t, e, i, s) {
1057
+ t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1058
+ const r = this;
1059
+ if (r.destroyed) return;
1060
+ typeof e > "u" && (e = r.params.speed);
1061
+ const n = r.grid && r.params.grid && r.params.grid.rows > 1;
1062
+ let d = t;
1063
+ if (r.params.loop)
1064
+ if (r.virtual && r.params.virtual.enabled)
1065
+ d = d + r.virtual.slidesBefore;
1066
+ else {
1067
+ let o;
1068
+ if (n) {
1069
+ const v = d * r.params.grid.rows;
1070
+ o = r.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
1071
+ } else
1072
+ o = r.getSlideIndexByData(d);
1073
+ const c = n ? Math.ceil(r.slides.length / r.params.grid.rows) : r.slides.length, {
1074
+ centeredSlides: f
1075
+ } = r.params;
1076
+ let u = r.params.slidesPerView;
1077
+ u === "auto" ? u = r.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(r.params.slidesPerView, 10)), f && u % 2 === 0 && (u = u + 1));
1078
+ let m = c - o < u;
1079
+ if (f && (m = m || o < Math.ceil(u / 2)), s && f && r.params.slidesPerView !== "auto" && !n && (m = !1), m) {
1080
+ const v = f ? o < r.activeIndex ? "prev" : "next" : o - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev";
1081
+ r.loopFix({
1082
+ direction: v,
1083
+ slideTo: !0,
1084
+ activeSlideIndex: v === "next" ? o + 1 : o - c + 1,
1085
+ slideRealIndex: v === "next" ? r.realIndex : void 0
1086
+ });
1087
+ }
1088
+ if (n) {
1089
+ const v = d * r.params.grid.rows;
1090
+ d = r.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
1091
+ } else
1092
+ d = r.getSlideIndexByData(d);
1093
+ }
1094
+ return requestAnimationFrame(() => {
1095
+ r.slideTo(d, e, i, s);
1096
+ }), r;
1097
+ }
1098
+ function li(t, e, i) {
1099
+ e === void 0 && (e = !0);
1100
+ const s = this, {
1101
+ enabled: r,
1102
+ params: n,
1103
+ animating: d
1104
+ } = s;
1105
+ if (!r || s.destroyed) return s;
1106
+ typeof t > "u" && (t = s.params.speed);
1107
+ let o = n.slidesPerGroup;
1108
+ n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", !0), 1));
1109
+ const c = s.activeIndex < n.slidesPerGroupSkip ? 1 : o, f = s.virtual && n.virtual.enabled;
1110
+ if (n.loop) {
1111
+ if (d && !f && n.loopPreventsSliding) return !1;
1112
+ if (s.loopFix({
1113
+ direction: "next"
1114
+ }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && n.cssMode)
1115
+ return requestAnimationFrame(() => {
1116
+ s.slideTo(s.activeIndex + c, t, e, i);
1117
+ }), !0;
1118
+ }
1119
+ return n.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + c, t, e, i);
1120
+ }
1121
+ function oi(t, e, i) {
1122
+ e === void 0 && (e = !0);
1123
+ const s = this, {
1124
+ params: r,
1125
+ snapGrid: n,
1126
+ slidesGrid: d,
1127
+ rtlTranslate: o,
1128
+ enabled: c,
1129
+ animating: f
1130
+ } = s;
1131
+ if (!c || s.destroyed) return s;
1132
+ typeof t > "u" && (t = s.params.speed);
1133
+ const u = s.virtual && r.virtual.enabled;
1134
+ if (r.loop) {
1135
+ if (f && !u && r.loopPreventsSliding) return !1;
1136
+ s.loopFix({
1137
+ direction: "prev"
1138
+ }), s._clientLeft = s.wrapperEl.clientLeft;
1139
+ }
1140
+ const m = o ? s.translate : -s.translate;
1141
+ function v(p) {
1142
+ return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
1143
+ }
1144
+ const w = v(m), a = n.map((p) => v(p)), l = r.freeMode && r.freeMode.enabled;
1145
+ let S = n[a.indexOf(w) - 1];
1146
+ if (typeof S > "u" && (r.cssMode || l)) {
1147
+ let p;
1148
+ n.forEach((h, E) => {
1149
+ w >= h && (p = E);
1150
+ }), typeof p < "u" && (S = l ? n[p] : n[p > 0 ? p - 1 : p]);
1151
+ }
1152
+ let g = 0;
1153
+ if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1), r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", !0) + 1, g = Math.max(g, 0))), r.rewind && s.isBeginning) {
1154
+ const p = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
1155
+ return s.slideTo(p, t, e, i);
1156
+ } else if (r.loop && s.activeIndex === 0 && r.cssMode)
1157
+ return requestAnimationFrame(() => {
1158
+ s.slideTo(g, t, e, i);
1159
+ }), !0;
1160
+ return s.slideTo(g, t, e, i);
1161
+ }
1162
+ function di(t, e, i) {
1163
+ e === void 0 && (e = !0);
1164
+ const s = this;
1165
+ if (!s.destroyed)
1166
+ return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
1167
+ }
1168
+ function ci(t, e, i, s) {
1169
+ e === void 0 && (e = !0), s === void 0 && (s = 0.5);
1170
+ const r = this;
1171
+ if (r.destroyed) return;
1172
+ typeof t > "u" && (t = r.params.speed);
1173
+ let n = r.activeIndex;
1174
+ const d = Math.min(r.params.slidesPerGroupSkip, n), o = d + Math.floor((n - d) / r.params.slidesPerGroup), c = r.rtlTranslate ? r.translate : -r.translate;
1175
+ if (c >= r.snapGrid[o]) {
1176
+ const f = r.snapGrid[o], u = r.snapGrid[o + 1];
1177
+ c - f > (u - f) * s && (n += r.params.slidesPerGroup);
1178
+ } else {
1179
+ const f = r.snapGrid[o - 1], u = r.snapGrid[o];
1180
+ c - f <= (u - f) * s && (n -= r.params.slidesPerGroup);
1181
+ }
1182
+ return n = Math.max(n, 0), n = Math.min(n, r.slidesGrid.length - 1), r.slideTo(n, t, e, i);
1183
+ }
1184
+ function fi() {
1185
+ const t = this;
1186
+ if (t.destroyed) return;
1187
+ const {
1188
+ params: e,
1189
+ slidesEl: i
1190
+ } = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1191
+ let r = t.clickedIndex, n;
1192
+ const d = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
1193
+ if (e.loop) {
1194
+ if (t.animating) return;
1195
+ n = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? r < t.loopedSlides - s / 2 || r > t.slides.length - t.loopedSlides + s / 2 ? (t.loopFix(), r = t.getSlideIndex(q(i, `${d}[data-swiper-slide-index="${n}"]`)[0]), Ve(() => {
1196
+ t.slideTo(r);
1197
+ })) : t.slideTo(r) : r > t.slides.length - s ? (t.loopFix(), r = t.getSlideIndex(q(i, `${d}[data-swiper-slide-index="${n}"]`)[0]), Ve(() => {
1198
+ t.slideTo(r);
1199
+ })) : t.slideTo(r);
1200
+ } else
1201
+ t.slideTo(r);
1202
+ }
1203
+ var ui = {
1204
+ slideTo: ri,
1205
+ slideToLoop: ai,
1206
+ slideNext: li,
1207
+ slidePrev: oi,
1208
+ slideReset: di,
1209
+ slideToClosest: ci,
1210
+ slideToClickedSlide: fi
1211
+ };
1212
+ function pi(t, e) {
1213
+ const i = this, {
1214
+ params: s,
1215
+ slidesEl: r
1216
+ } = i;
1217
+ if (!s.loop || i.virtual && i.params.virtual.enabled) return;
1218
+ const n = () => {
1219
+ q(r, `.${s.slideClass}, swiper-slide`).forEach((v, w) => {
1220
+ v.setAttribute("data-swiper-slide-index", w);
1221
+ });
1222
+ }, d = i.grid && s.grid && s.grid.rows > 1, o = s.slidesPerGroup * (d ? s.grid.rows : 1), c = i.slides.length % o !== 0, f = d && i.slides.length % s.grid.rows !== 0, u = (m) => {
1223
+ for (let v = 0; v < m; v += 1) {
1224
+ const w = i.isElement ? fe("swiper-slide", [s.slideBlankClass]) : fe("div", [s.slideClass, s.slideBlankClass]);
1225
+ i.slidesEl.append(w);
1226
+ }
1227
+ };
1228
+ if (c) {
1229
+ if (s.loopAddBlankSlides) {
1230
+ const m = o - i.slides.length % o;
1231
+ u(m), i.recalcSlides(), i.updateSlides();
1232
+ } else
1233
+ Me("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)");
1234
+ n();
1235
+ } else if (f) {
1236
+ if (s.loopAddBlankSlides) {
1237
+ const m = s.grid.rows - i.slides.length % s.grid.rows;
1238
+ u(m), i.recalcSlides(), i.updateSlides();
1239
+ } else
1240
+ Me("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)");
1241
+ n();
1242
+ } else
1243
+ n();
1244
+ i.loopFix({
1245
+ slideRealIndex: t,
1246
+ direction: s.centeredSlides ? void 0 : "next",
1247
+ initial: e
1248
+ });
1249
+ }
1250
+ function mi(t) {
1251
+ let {
1252
+ slideRealIndex: e,
1253
+ slideTo: i = !0,
1254
+ direction: s,
1255
+ setTranslate: r,
1256
+ activeSlideIndex: n,
1257
+ initial: d,
1258
+ byController: o,
1259
+ byMousewheel: c
1260
+ } = t === void 0 ? {} : t;
1261
+ const f = this;
1262
+ if (!f.params.loop) return;
1263
+ f.emit("beforeLoopFix");
1264
+ const {
1265
+ slides: u,
1266
+ allowSlidePrev: m,
1267
+ allowSlideNext: v,
1268
+ slidesEl: w,
1269
+ params: a
1270
+ } = f, {
1271
+ centeredSlides: l,
1272
+ initialSlide: S
1273
+ } = a;
1274
+ if (f.allowSlidePrev = !0, f.allowSlideNext = !0, f.virtual && a.virtual.enabled) {
1275
+ i && (!a.centeredSlides && f.snapIndex === 0 ? f.slideTo(f.virtual.slides.length, 0, !1, !0) : a.centeredSlides && f.snapIndex < a.slidesPerView ? f.slideTo(f.virtual.slides.length + f.snapIndex, 0, !1, !0) : f.snapIndex === f.snapGrid.length - 1 && f.slideTo(f.virtual.slidesBefore, 0, !1, !0)), f.allowSlidePrev = m, f.allowSlideNext = v, f.emit("loopFix");
1276
+ return;
1277
+ }
1278
+ let g = a.slidesPerView;
1279
+ g === "auto" ? g = f.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(a.slidesPerView, 10)), l && g % 2 === 0 && (g = g + 1));
1280
+ const p = a.slidesPerGroupAuto ? g : a.slidesPerGroup;
1281
+ let h = p;
1282
+ h % p !== 0 && (h += p - h % p), h += a.loopAdditionalSlides, f.loopedSlides = h;
1283
+ const E = f.grid && a.grid && a.grid.rows > 1;
1284
+ u.length < g + h || f.params.effect === "cards" && u.length < g + h * 2 ? Me("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 && a.grid.fill === "row" && Me("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1285
+ const b = [], L = [], I = E ? Math.ceil(u.length / a.grid.rows) : u.length, z = d && I - S < g && !l;
1286
+ let y = z ? S : f.activeIndex;
1287
+ typeof n > "u" ? n = f.getSlideIndex(u.find((A) => A.classList.contains(a.slideActiveClass))) : y = n;
1288
+ const T = s === "next" || !s, P = s === "prev" || !s;
1289
+ let O = 0, D = 0;
1290
+ const _ = (E ? u[n].column : n) + (l && typeof r > "u" ? -g / 2 + 0.5 : 0);
1291
+ if (_ < h) {
1292
+ O = Math.max(h - _, p);
1293
+ for (let A = 0; A < h - _; A += 1) {
1294
+ const Y = A - Math.floor(A / I) * I;
1295
+ if (E) {
1296
+ const X = I - Y - 1;
1297
+ for (let G = u.length - 1; G >= 0; G -= 1)
1298
+ u[G].column === X && b.push(G);
1299
+ } else
1300
+ b.push(I - Y - 1);
1301
+ }
1302
+ } else if (_ + g > I - h) {
1303
+ D = Math.max(_ - (I - h * 2), p), z && (D = Math.max(D, g - I + S + 1));
1304
+ for (let A = 0; A < D; A += 1) {
1305
+ const Y = A - Math.floor(A / I) * I;
1306
+ E ? u.forEach((X, G) => {
1307
+ X.column === Y && L.push(G);
1308
+ }) : L.push(Y);
1309
+ }
1310
+ }
1311
+ if (f.__preventObserver__ = !0, requestAnimationFrame(() => {
1312
+ f.__preventObserver__ = !1;
1313
+ }), f.params.effect === "cards" && u.length < g + h * 2 && (L.includes(n) && L.splice(L.indexOf(n), 1), b.includes(n) && b.splice(b.indexOf(n), 1)), P && b.forEach((A) => {
1314
+ u[A].swiperLoopMoveDOM = !0, w.prepend(u[A]), u[A].swiperLoopMoveDOM = !1;
1315
+ }), T && L.forEach((A) => {
1316
+ u[A].swiperLoopMoveDOM = !0, w.append(u[A]), u[A].swiperLoopMoveDOM = !1;
1317
+ }), f.recalcSlides(), a.slidesPerView === "auto" ? f.updateSlides() : E && (b.length > 0 && P || L.length > 0 && T) && f.slides.forEach((A, Y) => {
1318
+ f.grid.updateSlide(Y, A, f.slides);
1319
+ }), a.watchSlidesProgress && f.updateSlidesOffset(), i) {
1320
+ if (b.length > 0 && P) {
1321
+ if (typeof e > "u") {
1322
+ const A = f.slidesGrid[y], X = f.slidesGrid[y + O] - A;
1323
+ c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0, !1, !0), r && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
1324
+ } else if (r) {
1325
+ const A = E ? b.length / a.grid.rows : b.length;
1326
+ f.slideTo(f.activeIndex + A, 0, !1, !0), f.touchEventsData.currentTranslate = f.translate;
1327
+ }
1328
+ } else if (L.length > 0 && T)
1329
+ if (typeof e > "u") {
1330
+ const A = f.slidesGrid[y], X = f.slidesGrid[y - D] - A;
1331
+ c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0, !1, !0), r && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
1332
+ } else {
1333
+ const A = E ? L.length / a.grid.rows : L.length;
1334
+ f.slideTo(f.activeIndex - A, 0, !1, !0);
1335
+ }
1336
+ }
1337
+ if (f.allowSlidePrev = m, f.allowSlideNext = v, f.controller && f.controller.control && !o) {
1338
+ const A = {
1339
+ slideRealIndex: e,
1340
+ direction: s,
1341
+ setTranslate: r,
1342
+ activeSlideIndex: n,
1343
+ byController: !0
1344
+ };
1345
+ Array.isArray(f.controller.control) ? f.controller.control.forEach((Y) => {
1346
+ !Y.destroyed && Y.params.loop && Y.loopFix({
1347
+ ...A,
1348
+ slideTo: Y.params.slidesPerView === a.slidesPerView ? i : !1
1349
+ });
1350
+ }) : f.controller.control instanceof f.constructor && f.controller.control.params.loop && f.controller.control.loopFix({
1351
+ ...A,
1352
+ slideTo: f.controller.control.params.slidesPerView === a.slidesPerView ? i : !1
1353
+ });
1354
+ }
1355
+ f.emit("loopFix");
1356
+ }
1357
+ function hi() {
1358
+ const t = this, {
1359
+ params: e,
1360
+ slidesEl: i
1361
+ } = t;
1362
+ if (!e.loop || !i || t.virtual && t.params.virtual.enabled) return;
1363
+ t.recalcSlides();
1364
+ const s = [];
1365
+ t.slides.forEach((r) => {
1366
+ const n = typeof r.swiperSlideIndex > "u" ? r.getAttribute("data-swiper-slide-index") * 1 : r.swiperSlideIndex;
1367
+ s[n] = r;
1368
+ }), t.slides.forEach((r) => {
1369
+ r.removeAttribute("data-swiper-slide-index");
1370
+ }), s.forEach((r) => {
1371
+ i.append(r);
1372
+ }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1373
+ }
1374
+ var gi = {
1375
+ loopCreate: pi,
1376
+ loopFix: mi,
1377
+ loopDestroy: hi
1378
+ };
1379
+ function vi(t) {
1380
+ const e = this;
1381
+ if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1382
+ const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
1383
+ e.isElement && (e.__preventObserver__ = !0), i.style.cursor = "move", i.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
1384
+ e.__preventObserver__ = !1;
1385
+ });
1386
+ }
1387
+ function wi() {
1388
+ const t = this;
1389
+ 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(() => {
1390
+ t.__preventObserver__ = !1;
1391
+ }));
1392
+ }
1393
+ var Si = {
1394
+ setGrabCursor: vi,
1395
+ unsetGrabCursor: wi
1396
+ };
1397
+ function Ei(t, e) {
1398
+ e === void 0 && (e = this);
1399
+ function i(s) {
1400
+ if (!s || s === Z() || s === k()) return null;
1401
+ s.assignedSlot && (s = s.assignedSlot);
1402
+ const r = s.closest(t);
1403
+ return !r && !s.getRootNode ? null : r || i(s.getRootNode().host);
1404
+ }
1405
+ return i(e);
1406
+ }
1407
+ function Qe(t, e, i) {
1408
+ const s = k(), {
1409
+ params: r
1410
+ } = t, n = r.edgeSwipeDetection, d = r.edgeSwipeThreshold;
1411
+ return n && (i <= d || i >= s.innerWidth - d) ? n === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1412
+ }
1413
+ function bi(t) {
1414
+ const e = this, i = Z();
1415
+ let s = t;
1416
+ s.originalEvent && (s = s.originalEvent);
1417
+ const r = e.touchEventsData;
1418
+ if (s.type === "pointerdown") {
1419
+ if (r.pointerId !== null && r.pointerId !== s.pointerId)
1420
+ return;
1421
+ r.pointerId = s.pointerId;
1422
+ } else s.type === "touchstart" && s.targetTouches.length === 1 && (r.touchId = s.targetTouches[0].identifier);
1423
+ if (s.type === "touchstart") {
1424
+ Qe(e, s, s.targetTouches[0].pageX);
1425
+ return;
1426
+ }
1427
+ const {
1428
+ params: n,
1429
+ touches: d,
1430
+ enabled: o
1431
+ } = e;
1432
+ if (!o || !n.simulateTouch && s.pointerType === "mouse" || e.animating && n.preventInteractionOnTransition)
1433
+ return;
1434
+ !e.animating && n.cssMode && n.loop && e.loopFix();
1435
+ let c = s.target;
1436
+ if (n.touchEventsTarget === "wrapper" && !zt(c, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || r.isTouched && r.isMoved) return;
1437
+ const f = !!n.noSwipingClass && n.noSwipingClass !== "", u = s.composedPath ? s.composedPath() : s.path;
1438
+ f && s.target && s.target.shadowRoot && u && (c = u[0]);
1439
+ const m = n.noSwipingSelector ? n.noSwipingSelector : `.${n.noSwipingClass}`, v = !!(s.target && s.target.shadowRoot);
1440
+ if (n.noSwiping && (v ? Ei(m, c) : c.closest(m))) {
1441
+ e.allowClick = !0;
1442
+ return;
1443
+ }
1444
+ if (n.swipeHandler && !c.closest(n.swipeHandler))
1445
+ return;
1446
+ d.currentX = s.pageX, d.currentY = s.pageY;
1447
+ const w = d.currentX, a = d.currentY;
1448
+ if (!Qe(e, s, w))
1449
+ return;
1450
+ Object.assign(r, {
1451
+ isTouched: !0,
1452
+ isMoved: !1,
1453
+ allowTouchCallbacks: !0,
1454
+ isScrolling: void 0,
1455
+ startMoving: void 0
1456
+ }), d.startX = w, d.startY = a, r.touchStartTime = Ce(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, n.threshold > 0 && (r.allowThresholdMove = !1);
1457
+ let l = !0;
1458
+ c.matches(r.focusableElements) && (l = !1, c.nodeName === "SELECT" && (r.isTouched = !1)), i.activeElement && i.activeElement.matches(r.focusableElements) && i.activeElement !== c && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !c.matches(r.focusableElements)) && i.activeElement.blur();
1459
+ const S = l && e.allowTouchMove && n.touchStartPreventDefault;
1460
+ (n.touchStartForcePreventDefault || S) && !c.isContentEditable && s.preventDefault(), n.freeMode && n.freeMode.enabled && e.freeMode && e.animating && !n.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1461
+ }
1462
+ function xi(t) {
1463
+ const e = Z(), i = this, s = i.touchEventsData, {
1464
+ params: r,
1465
+ touches: n,
1466
+ rtlTranslate: d,
1467
+ enabled: o
1468
+ } = i;
1469
+ if (!o || !r.simulateTouch && t.pointerType === "mouse") return;
1470
+ let c = t;
1471
+ if (c.originalEvent && (c = c.originalEvent), c.type === "pointermove" && (s.touchId !== null || c.pointerId !== s.pointerId))
1472
+ return;
1473
+ let f;
1474
+ if (c.type === "touchmove") {
1475
+ if (f = [...c.changedTouches].find((b) => b.identifier === s.touchId), !f || f.identifier !== s.touchId) return;
1476
+ } else
1477
+ f = c;
1478
+ if (!s.isTouched) {
1479
+ s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", c);
1480
+ return;
1481
+ }
1482
+ const u = f.pageX, m = f.pageY;
1483
+ if (c.preventedByNestedSwiper) {
1484
+ n.startX = u, n.startY = m;
1485
+ return;
1486
+ }
1487
+ if (!i.allowTouchMove) {
1488
+ c.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(n, {
1489
+ startX: u,
1490
+ startY: m,
1491
+ currentX: u,
1492
+ currentY: m
1493
+ }), s.touchStartTime = Ce());
1494
+ return;
1495
+ }
1496
+ if (r.touchReleaseOnEdges && !r.loop)
1497
+ if (i.isVertical()) {
1498
+ if (m < n.startY && i.translate <= i.maxTranslate() || m > n.startY && i.translate >= i.minTranslate()) {
1499
+ s.isTouched = !1, s.isMoved = !1;
1500
+ return;
1501
+ }
1502
+ } else {
1503
+ if (d && (u > n.startX && -i.translate <= i.maxTranslate() || u < n.startX && -i.translate >= i.minTranslate()))
1504
+ return;
1505
+ if (!d && (u < n.startX && i.translate <= i.maxTranslate() || u > n.startX && i.translate >= i.minTranslate()))
1506
+ return;
1507
+ }
1508
+ if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== c.target && c.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && c.target === e.activeElement && c.target.matches(s.focusableElements)) {
1509
+ s.isMoved = !0, i.allowClick = !1;
1510
+ return;
1511
+ }
1512
+ s.allowTouchCallbacks && i.emit("touchMove", c), n.previousX = n.currentX, n.previousY = n.currentY, n.currentX = u, n.currentY = m;
1513
+ const v = n.currentX - n.startX, w = n.currentY - n.startY;
1514
+ if (i.params.threshold && Math.sqrt(v ** 2 + w ** 2) < i.params.threshold) return;
1515
+ if (typeof s.isScrolling > "u") {
1516
+ let b;
1517
+ i.isHorizontal() && n.currentY === n.startY || i.isVertical() && n.currentX === n.startX ? s.isScrolling = !1 : v * v + w * w >= 25 && (b = Math.atan2(Math.abs(w), Math.abs(v)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? b > r.touchAngle : 90 - b > r.touchAngle);
1518
+ }
1519
+ if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (s.startMoving = !0), s.isScrolling || c.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1520
+ s.isTouched = !1;
1521
+ return;
1522
+ }
1523
+ if (!s.startMoving)
1524
+ return;
1525
+ i.allowClick = !1, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation();
1526
+ let a = i.isHorizontal() ? v : w, l = i.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY;
1527
+ r.oneWayMovement && (a = Math.abs(a) * (d ? 1 : -1), l = Math.abs(l) * (d ? 1 : -1)), n.diff = a, a *= r.touchRatio, d && (a = -a, l = -l);
1528
+ const S = i.touchesDirection;
1529
+ i.swipeDirection = a > 0 ? "prev" : "next", i.touchesDirection = l > 0 ? "prev" : "next";
1530
+ const g = i.params.loop && !r.cssMode, p = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1531
+ if (!s.isMoved) {
1532
+ if (g && p && i.loopFix({
1533
+ direction: i.swipeDirection
1534
+ }), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
1535
+ const b = new window.CustomEvent("transitionend", {
1536
+ bubbles: !0,
1537
+ cancelable: !0,
1538
+ detail: {
1539
+ bySwiperTouchMove: !0
1540
+ }
1541
+ });
1542
+ i.wrapperEl.dispatchEvent(b);
1543
+ }
1544
+ s.allowMomentumBounce = !1, r.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", c);
1545
+ }
1546
+ if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && g && p && Math.abs(a) >= 1) {
1547
+ Object.assign(n, {
1548
+ startX: u,
1549
+ startY: m,
1550
+ currentX: u,
1551
+ currentY: m,
1552
+ startTranslate: s.currentTranslate
1553
+ }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1554
+ return;
1555
+ }
1556
+ i.emit("sliderMove", c), s.isMoved = !0, s.currentTranslate = a + s.startTranslate;
1557
+ let h = !0, E = r.resistanceRatio;
1558
+ if (r.touchReleaseOnEdges && (E = 0), a > 0 ? (g && p && s.allowThresholdMove && s.currentTranslate > (r.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
1559
+ direction: "prev",
1560
+ setTranslate: !0,
1561
+ activeSlideIndex: 0
1562
+ }), s.currentTranslate > i.minTranslate() && (h = !1, r.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + a) ** E))) : a < 0 && (g && p && s.allowThresholdMove && s.currentTranslate < (r.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
1563
+ direction: "next",
1564
+ setTranslate: !0,
1565
+ activeSlideIndex: i.slides.length - (r.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10)))
1566
+ }), s.currentTranslate < i.maxTranslate() && (h = !1, r.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - a) ** E))), h && (c.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), r.threshold > 0)
1567
+ if (Math.abs(a) > r.threshold || s.allowThresholdMove) {
1568
+ if (!s.allowThresholdMove) {
1569
+ s.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, s.currentTranslate = s.startTranslate, n.diff = i.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY;
1570
+ return;
1571
+ }
1572
+ } else {
1573
+ s.currentTranslate = s.startTranslate;
1574
+ return;
1575
+ }
1576
+ !r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && i.freeMode || r.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
1577
+ }
1578
+ function yi(t) {
1579
+ const e = this, i = e.touchEventsData;
1580
+ let s = t;
1581
+ s.originalEvent && (s = s.originalEvent);
1582
+ let r;
1583
+ if (s.type === "touchend" || s.type === "touchcancel") {
1584
+ if (r = [...s.changedTouches].find((b) => b.identifier === i.touchId), !r || r.identifier !== i.touchId) return;
1585
+ } else {
1586
+ if (i.touchId !== null || s.pointerId !== i.pointerId) return;
1587
+ r = s;
1588
+ }
1589
+ if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (e.browser.isSafari || e.browser.isWebView)))
1590
+ return;
1591
+ i.pointerId = null, i.touchId = null;
1592
+ const {
1593
+ params: d,
1594
+ touches: o,
1595
+ rtlTranslate: c,
1596
+ slidesGrid: f,
1597
+ enabled: u
1598
+ } = e;
1599
+ if (!u || !d.simulateTouch && s.pointerType === "mouse") return;
1600
+ if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = !1, !i.isTouched) {
1601
+ i.isMoved && d.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
1602
+ return;
1603
+ }
1604
+ d.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1605
+ const m = Ce(), v = m - i.touchStartTime;
1606
+ if (e.allowClick) {
1607
+ const b = s.path || s.composedPath && s.composedPath();
1608
+ e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), v < 300 && m - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
1609
+ }
1610
+ if (i.lastClickTime = Ce(), Ve(() => {
1611
+ e.destroyed || (e.allowClick = !0);
1612
+ }), !i.isTouched || !i.isMoved || !e.swipeDirection || o.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
1613
+ i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1614
+ return;
1615
+ }
1616
+ i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1617
+ let w;
1618
+ if (d.followFinger ? w = c ? e.translate : -e.translate : w = -i.currentTranslate, d.cssMode)
1619
+ return;
1620
+ if (d.freeMode && d.freeMode.enabled) {
1621
+ e.freeMode.onTouchEnd({
1622
+ currentPos: w
1623
+ });
1624
+ return;
1625
+ }
1626
+ const a = w >= -e.maxTranslate() && !e.params.loop;
1627
+ let l = 0, S = e.slidesSizesGrid[0];
1628
+ for (let b = 0; b < f.length; b += b < d.slidesPerGroupSkip ? 1 : d.slidesPerGroup) {
1629
+ const L = b < d.slidesPerGroupSkip - 1 ? 1 : d.slidesPerGroup;
1630
+ typeof f[b + L] < "u" ? (a || w >= f[b] && w < f[b + L]) && (l = b, S = f[b + L] - f[b]) : (a || w >= f[b]) && (l = b, S = f[f.length - 1] - f[f.length - 2]);
1631
+ }
1632
+ let g = null, p = null;
1633
+ d.rewind && (e.isBeginning ? p = d.virtual && d.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (g = 0));
1634
+ const h = (w - f[l]) / S, E = l < d.slidesPerGroupSkip - 1 ? 1 : d.slidesPerGroup;
1635
+ if (v > d.longSwipesMs) {
1636
+ if (!d.longSwipes) {
1637
+ e.slideTo(e.activeIndex);
1638
+ return;
1639
+ }
1640
+ e.swipeDirection === "next" && (h >= d.longSwipesRatio ? e.slideTo(d.rewind && e.isEnd ? g : l + E) : e.slideTo(l)), e.swipeDirection === "prev" && (h > 1 - d.longSwipesRatio ? e.slideTo(l + E) : p !== null && h < 0 && Math.abs(h) > d.longSwipesRatio ? e.slideTo(p) : e.slideTo(l));
1641
+ } else {
1642
+ if (!d.shortSwipes) {
1643
+ e.slideTo(e.activeIndex);
1644
+ return;
1645
+ }
1646
+ e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(l + E) : e.slideTo(l) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : l + E), e.swipeDirection === "prev" && e.slideTo(p !== null ? p : l));
1647
+ }
1648
+ }
1649
+ function et() {
1650
+ const t = this, {
1651
+ params: e,
1652
+ el: i
1653
+ } = t;
1654
+ if (i && i.offsetWidth === 0) return;
1655
+ e.breakpoints && t.setBreakpoint();
1656
+ const {
1657
+ allowSlideNext: s,
1658
+ allowSlidePrev: r,
1659
+ snapGrid: n
1660
+ } = t, d = t.virtual && t.params.virtual.enabled;
1661
+ t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
1662
+ const o = d && e.loop;
1663
+ (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 && !d ? 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(() => {
1664
+ t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1665
+ }, 500)), t.allowSlidePrev = r, t.allowSlideNext = s, t.params.watchOverflow && n !== t.snapGrid && t.checkOverflow();
1666
+ }
1667
+ function Ti(t) {
1668
+ const e = this;
1669
+ e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1670
+ }
1671
+ function Ci() {
1672
+ const t = this, {
1673
+ wrapperEl: e,
1674
+ rtlTranslate: i,
1675
+ enabled: s
1676
+ } = t;
1677
+ if (!s) return;
1678
+ t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
1679
+ let r;
1680
+ const n = t.maxTranslate() - t.minTranslate();
1681
+ n === 0 ? r = 0 : r = (t.translate - t.minTranslate()) / n, r !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1682
+ }
1683
+ function Mi(t) {
1684
+ const e = this;
1685
+ Te(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1686
+ }
1687
+ function Pi() {
1688
+ const t = this;
1689
+ t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1690
+ }
1691
+ const dt = (t, e) => {
1692
+ const i = Z(), {
1693
+ params: s,
1694
+ el: r,
1695
+ wrapperEl: n,
1696
+ device: d
1697
+ } = t, o = !!s.nested, c = e === "on" ? "addEventListener" : "removeEventListener", f = e;
1698
+ !r || typeof r == "string" || (i[c]("touchstart", t.onDocumentTouchStart, {
1699
+ passive: !1,
1700
+ capture: o
1701
+ }), r[c]("touchstart", t.onTouchStart, {
1702
+ passive: !1
1703
+ }), r[c]("pointerdown", t.onTouchStart, {
1704
+ passive: !1
1705
+ }), i[c]("touchmove", t.onTouchMove, {
1706
+ passive: !1,
1707
+ capture: o
1708
+ }), i[c]("pointermove", t.onTouchMove, {
1709
+ passive: !1,
1710
+ capture: o
1711
+ }), i[c]("touchend", t.onTouchEnd, {
1712
+ passive: !0
1713
+ }), i[c]("pointerup", t.onTouchEnd, {
1714
+ passive: !0
1715
+ }), i[c]("pointercancel", t.onTouchEnd, {
1716
+ passive: !0
1717
+ }), i[c]("touchcancel", t.onTouchEnd, {
1718
+ passive: !0
1719
+ }), i[c]("pointerout", t.onTouchEnd, {
1720
+ passive: !0
1721
+ }), i[c]("pointerleave", t.onTouchEnd, {
1722
+ passive: !0
1723
+ }), i[c]("contextmenu", t.onTouchEnd, {
1724
+ passive: !0
1725
+ }), (s.preventClicks || s.preventClicksPropagation) && r[c]("click", t.onClick, !0), s.cssMode && n[c]("scroll", t.onScroll), s.updateOnWindowResize ? t[f](d.ios || d.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", et, !0) : t[f]("observerUpdate", et, !0), r[c]("load", t.onLoad, {
1726
+ capture: !0
1727
+ }));
1728
+ };
1729
+ function Li() {
1730
+ const t = this, {
1731
+ params: e
1732
+ } = t;
1733
+ t.onTouchStart = bi.bind(t), t.onTouchMove = xi.bind(t), t.onTouchEnd = yi.bind(t), t.onDocumentTouchStart = Pi.bind(t), e.cssMode && (t.onScroll = Ci.bind(t)), t.onClick = Ti.bind(t), t.onLoad = Mi.bind(t), dt(t, "on");
1734
+ }
1735
+ function zi() {
1736
+ dt(this, "off");
1737
+ }
1738
+ var Ii = {
1739
+ attachEvents: Li,
1740
+ detachEvents: zi
1741
+ };
1742
+ const tt = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1743
+ function Oi() {
1744
+ const t = this, {
1745
+ realIndex: e,
1746
+ initialized: i,
1747
+ params: s,
1748
+ el: r
1749
+ } = t, n = s.breakpoints;
1750
+ if (!n || n && Object.keys(n).length === 0) return;
1751
+ const d = Z(), o = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", c = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : d.querySelector(s.breakpointsBase), f = t.getBreakpoint(n, o, c);
1752
+ if (!f || t.currentBreakpoint === f) return;
1753
+ const m = (f in n ? n[f] : void 0) || t.originalParams, v = tt(t, s), w = tt(t, m), a = t.params.grabCursor, l = m.grabCursor, S = s.enabled;
1754
+ v && !w ? (r.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !v && w && (r.classList.add(`${s.containerModifierClass}grid`), (m.grid.fill && m.grid.fill === "column" || !m.grid.fill && s.grid.fill === "column") && r.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), a && !l ? t.unsetGrabCursor() : !a && l && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((L) => {
1755
+ if (typeof m[L] > "u") return;
1756
+ const I = s[L] && s[L].enabled, z = m[L] && m[L].enabled;
1757
+ I && !z && t[L].disable(), !I && z && t[L].enable();
1758
+ });
1759
+ const g = m.direction && m.direction !== s.direction, p = s.loop && (m.slidesPerView !== s.slidesPerView || g), h = s.loop;
1760
+ g && i && t.changeDirection(), j(t.params, m);
1761
+ const E = t.params.enabled, b = t.params.loop;
1762
+ Object.assign(t, {
1763
+ allowTouchMove: t.params.allowTouchMove,
1764
+ allowSlideNext: t.params.allowSlideNext,
1765
+ allowSlidePrev: t.params.allowSlidePrev
1766
+ }), S && !E ? t.disable() : !S && E && t.enable(), t.currentBreakpoint = f, t.emit("_beforeBreakpoint", m), i && (p ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !h && b ? (t.loopCreate(e), t.updateSlides()) : h && !b && t.loopDestroy()), t.emit("breakpoint", m);
1767
+ }
1768
+ function Ai(t, e, i) {
1769
+ if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
1770
+ let s = !1;
1771
+ const r = k(), n = e === "window" ? r.innerHeight : i.clientHeight, d = Object.keys(t).map((o) => {
1772
+ if (typeof o == "string" && o.indexOf("@") === 0) {
1773
+ const c = parseFloat(o.substr(1));
1774
+ return {
1775
+ value: n * c,
1776
+ point: o
1777
+ };
1778
+ }
1779
+ return {
1780
+ value: o,
1781
+ point: o
1782
+ };
1783
+ });
1784
+ d.sort((o, c) => parseInt(o.value, 10) - parseInt(c.value, 10));
1785
+ for (let o = 0; o < d.length; o += 1) {
1786
+ const {
1787
+ point: c,
1788
+ value: f
1789
+ } = d[o];
1790
+ e === "window" ? r.matchMedia(`(min-width: ${f}px)`).matches && (s = c) : f <= i.clientWidth && (s = c);
1791
+ }
1792
+ return s || "max";
1793
+ }
1794
+ var Di = {
1795
+ setBreakpoint: Oi,
1796
+ getBreakpoint: Ai
1797
+ };
1798
+ function $i(t, e) {
1799
+ const i = [];
1800
+ return t.forEach((s) => {
1801
+ typeof s == "object" ? Object.keys(s).forEach((r) => {
1802
+ s[r] && i.push(e + r);
1803
+ }) : typeof s == "string" && i.push(e + s);
1804
+ }), i;
1805
+ }
1806
+ function _i() {
1807
+ const t = this, {
1808
+ classNames: e,
1809
+ params: i,
1810
+ rtl: s,
1811
+ el: r,
1812
+ device: n
1813
+ } = t, d = $i(["initialized", i.direction, {
1814
+ "free-mode": t.params.freeMode && i.freeMode.enabled
1815
+ }, {
1816
+ autoheight: i.autoHeight
1817
+ }, {
1818
+ rtl: s
1819
+ }, {
1820
+ grid: i.grid && i.grid.rows > 1
1821
+ }, {
1822
+ "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
1823
+ }, {
1824
+ android: n.android
1825
+ }, {
1826
+ ios: n.ios
1827
+ }, {
1828
+ "css-mode": i.cssMode
1829
+ }, {
1830
+ centered: i.cssMode && i.centeredSlides
1831
+ }, {
1832
+ "watch-progress": i.watchSlidesProgress
1833
+ }], i.containerModifierClass);
1834
+ e.push(...d), r.classList.add(...e), t.emitContainerClasses();
1835
+ }
1836
+ function Gi() {
1837
+ const t = this, {
1838
+ el: e,
1839
+ classNames: i
1840
+ } = t;
1841
+ !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
1842
+ }
1843
+ var Bi = {
1844
+ addClasses: _i,
1845
+ removeClasses: Gi
1846
+ };
1847
+ function Yi() {
1848
+ const t = this, {
1849
+ isLocked: e,
1850
+ params: i
1851
+ } = t, {
1852
+ slidesOffsetBefore: s
1853
+ } = i;
1854
+ if (s) {
1855
+ const r = t.slides.length - 1, n = t.slidesGrid[r] + t.slidesSizesGrid[r] + s * 2;
1856
+ t.isLocked = t.size > n;
1857
+ } else
1858
+ t.isLocked = t.snapGrid.length === 1;
1859
+ 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");
1860
+ }
1861
+ var Xi = {
1862
+ checkOverflow: Yi
1863
+ }, Fe = {
1864
+ init: !0,
1865
+ direction: "horizontal",
1866
+ oneWayMovement: !1,
1867
+ swiperElementNodeName: "SWIPER-CONTAINER",
1868
+ touchEventsTarget: "wrapper",
1869
+ initialSlide: 0,
1870
+ speed: 300,
1871
+ cssMode: !1,
1872
+ updateOnWindowResize: !0,
1873
+ resizeObserver: !0,
1874
+ nested: !1,
1875
+ createElements: !1,
1876
+ eventsPrefix: "swiper",
1877
+ enabled: !0,
1878
+ focusableElements: "input, select, option, textarea, button, video, label",
1879
+ // Overrides
1880
+ width: null,
1881
+ height: null,
1882
+ //
1883
+ preventInteractionOnTransition: !1,
1884
+ // ssr
1885
+ userAgent: null,
1886
+ url: null,
1887
+ // To support iOS's swipe-to-go-back gesture (when being used in-app).
1888
+ edgeSwipeDetection: !1,
1889
+ edgeSwipeThreshold: 20,
1890
+ // Autoheight
1891
+ autoHeight: !1,
1892
+ // Set wrapper width
1893
+ setWrapperSize: !1,
1894
+ // Virtual Translate
1895
+ virtualTranslate: !1,
1896
+ // Effects
1897
+ effect: "slide",
1898
+ // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1899
+ // Breakpoints
1900
+ breakpoints: void 0,
1901
+ breakpointsBase: "window",
1902
+ // Slides grid
1903
+ spaceBetween: 0,
1904
+ slidesPerView: 1,
1905
+ slidesPerGroup: 1,
1906
+ slidesPerGroupSkip: 0,
1907
+ slidesPerGroupAuto: !1,
1908
+ centeredSlides: !1,
1909
+ centeredSlidesBounds: !1,
1910
+ slidesOffsetBefore: 0,
1911
+ // in px
1912
+ slidesOffsetAfter: 0,
1913
+ // in px
1914
+ normalizeSlideIndex: !0,
1915
+ centerInsufficientSlides: !1,
1916
+ // Disable swiper and hide navigation when container not overflow
1917
+ watchOverflow: !0,
1918
+ // Round length
1919
+ roundLengths: !1,
1920
+ // Touches
1921
+ touchRatio: 1,
1922
+ touchAngle: 45,
1923
+ simulateTouch: !0,
1924
+ shortSwipes: !0,
1925
+ longSwipes: !0,
1926
+ longSwipesRatio: 0.5,
1927
+ longSwipesMs: 300,
1928
+ followFinger: !0,
1929
+ allowTouchMove: !0,
1930
+ threshold: 5,
1931
+ touchMoveStopPropagation: !1,
1932
+ touchStartPreventDefault: !0,
1933
+ touchStartForcePreventDefault: !1,
1934
+ touchReleaseOnEdges: !1,
1935
+ // Unique Navigation Elements
1936
+ uniqueNavElements: !0,
1937
+ // Resistance
1938
+ resistance: !0,
1939
+ resistanceRatio: 0.85,
1940
+ // Progress
1941
+ watchSlidesProgress: !1,
1942
+ // Cursor
1943
+ grabCursor: !1,
1944
+ // Clicks
1945
+ preventClicks: !0,
1946
+ preventClicksPropagation: !0,
1947
+ slideToClickedSlide: !1,
1948
+ // loop
1949
+ loop: !1,
1950
+ loopAddBlankSlides: !0,
1951
+ loopAdditionalSlides: 0,
1952
+ loopPreventsSliding: !0,
1953
+ // rewind
1954
+ rewind: !1,
1955
+ // Swiping/no swiping
1956
+ allowSlidePrev: !0,
1957
+ allowSlideNext: !0,
1958
+ swipeHandler: null,
1959
+ // '.swipe-handler',
1960
+ noSwiping: !0,
1961
+ noSwipingClass: "swiper-no-swiping",
1962
+ noSwipingSelector: null,
1963
+ // Passive Listeners
1964
+ passiveListeners: !0,
1965
+ maxBackfaceHiddenSlides: 10,
1966
+ // NS
1967
+ containerModifierClass: "swiper-",
1968
+ // NEW
1969
+ slideClass: "swiper-slide",
1970
+ slideBlankClass: "swiper-slide-blank",
1971
+ slideActiveClass: "swiper-slide-active",
1972
+ slideVisibleClass: "swiper-slide-visible",
1973
+ slideFullyVisibleClass: "swiper-slide-fully-visible",
1974
+ slideNextClass: "swiper-slide-next",
1975
+ slidePrevClass: "swiper-slide-prev",
1976
+ wrapperClass: "swiper-wrapper",
1977
+ lazyPreloaderClass: "swiper-lazy-preloader",
1978
+ lazyPreloadPrevNext: 0,
1979
+ // Callbacks
1980
+ runCallbacksOnInit: !0,
1981
+ // Internals
1982
+ _emitClasses: !1
1983
+ };
1984
+ function Ri(t, e) {
1985
+ return function(s) {
1986
+ s === void 0 && (s = {});
1987
+ const r = Object.keys(s)[0], n = s[r];
1988
+ if (typeof n != "object" || n === null) {
1989
+ j(e, s);
1990
+ return;
1991
+ }
1992
+ if (t[r] === !0 && (t[r] = {
1993
+ enabled: !0
1994
+ }), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = !0), !(r in t && "enabled" in n)) {
1995
+ j(e, s);
1996
+ return;
1997
+ }
1998
+ typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = !0), t[r] || (t[r] = {
1999
+ enabled: !1
2000
+ }), j(e, s);
2001
+ };
2002
+ }
2003
+ const Xe = {
2004
+ eventsEmitter: Bt,
2005
+ update: qt,
2006
+ translate: ei,
2007
+ transition: ni,
2008
+ slide: ui,
2009
+ loop: gi,
2010
+ grabCursor: Si,
2011
+ events: Ii,
2012
+ breakpoints: Di,
2013
+ checkOverflow: Xi,
2014
+ classes: Bi
2015
+ }, Re = {};
2016
+ let qe = class Q {
2017
+ constructor() {
2018
+ let e, i;
2019
+ for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++)
2020
+ r[n] = arguments[n];
2021
+ r.length === 1 && r[0].constructor && Object.prototype.toString.call(r[0]).slice(8, -1) === "Object" ? i = r[0] : [e, i] = r, i || (i = {}), i = j({}, i), e && !i.el && (i.el = e);
2022
+ const d = Z();
2023
+ if (i.el && typeof i.el == "string" && d.querySelectorAll(i.el).length > 1) {
2024
+ const u = [];
2025
+ return d.querySelectorAll(i.el).forEach((m) => {
2026
+ const v = j({}, i, {
2027
+ el: m
2028
+ });
2029
+ u.push(new Q(v));
2030
+ }), u;
2031
+ }
2032
+ const o = this;
2033
+ o.__swiper__ = !0, o.support = rt(), o.device = at({
2034
+ userAgent: i.userAgent
2035
+ }), o.browser = lt(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
2036
+ const c = {};
2037
+ o.modules.forEach((u) => {
2038
+ u({
2039
+ params: i,
2040
+ swiper: o,
2041
+ extendParams: Ri(i, c),
2042
+ on: o.on.bind(o),
2043
+ once: o.once.bind(o),
2044
+ off: o.off.bind(o),
2045
+ emit: o.emit.bind(o)
2046
+ });
2047
+ });
2048
+ const f = j({}, Fe, c);
2049
+ return o.params = j({}, f, Re, i), o.originalParams = j({}, o.params), o.passedParams = j({}, i), o.params && o.params.on && Object.keys(o.params.on).forEach((u) => {
2050
+ o.on(u, o.params.on[u]);
2051
+ }), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
2052
+ enabled: o.params.enabled,
2053
+ el: e,
2054
+ // Classes
2055
+ classNames: [],
2056
+ // Slides
2057
+ slides: [],
2058
+ slidesGrid: [],
2059
+ snapGrid: [],
2060
+ slidesSizesGrid: [],
2061
+ // isDirection
2062
+ isHorizontal() {
2063
+ return o.params.direction === "horizontal";
2064
+ },
2065
+ isVertical() {
2066
+ return o.params.direction === "vertical";
2067
+ },
2068
+ // Indexes
2069
+ activeIndex: 0,
2070
+ realIndex: 0,
2071
+ //
2072
+ isBeginning: !0,
2073
+ isEnd: !1,
2074
+ // Props
2075
+ translate: 0,
2076
+ previousTranslate: 0,
2077
+ progress: 0,
2078
+ velocity: 0,
2079
+ animating: !1,
2080
+ cssOverflowAdjustment() {
2081
+ return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
2082
+ },
2083
+ // Locks
2084
+ allowSlideNext: o.params.allowSlideNext,
2085
+ allowSlidePrev: o.params.allowSlidePrev,
2086
+ // Touch Events
2087
+ touchEventsData: {
2088
+ isTouched: void 0,
2089
+ isMoved: void 0,
2090
+ allowTouchCallbacks: void 0,
2091
+ touchStartTime: void 0,
2092
+ isScrolling: void 0,
2093
+ currentTranslate: void 0,
2094
+ startTranslate: void 0,
2095
+ allowThresholdMove: void 0,
2096
+ // Form elements to match
2097
+ focusableElements: o.params.focusableElements,
2098
+ // Last click time
2099
+ lastClickTime: 0,
2100
+ clickTimeout: void 0,
2101
+ // Velocities
2102
+ velocities: [],
2103
+ allowMomentumBounce: void 0,
2104
+ startMoving: void 0,
2105
+ pointerId: null,
2106
+ touchId: null
2107
+ },
2108
+ // Clicks
2109
+ allowClick: !0,
2110
+ // Touches
2111
+ allowTouchMove: o.params.allowTouchMove,
2112
+ touches: {
2113
+ startX: 0,
2114
+ startY: 0,
2115
+ currentX: 0,
2116
+ currentY: 0,
2117
+ diff: 0
2118
+ },
2119
+ // Images
2120
+ imagesToLoad: [],
2121
+ imagesLoaded: 0
2122
+ }), o.emit("_swiper"), o.params.init && o.init(), o;
2123
+ }
2124
+ getDirectionLabel(e) {
2125
+ return this.isHorizontal() ? e : {
2126
+ width: "height",
2127
+ "margin-top": "margin-left",
2128
+ "margin-bottom ": "margin-right",
2129
+ "margin-left": "margin-top",
2130
+ "margin-right": "margin-bottom",
2131
+ "padding-left": "padding-top",
2132
+ "padding-right": "padding-bottom",
2133
+ marginRight: "marginBottom"
2134
+ }[e];
2135
+ }
2136
+ getSlideIndex(e) {
2137
+ const {
2138
+ slidesEl: i,
2139
+ params: s
2140
+ } = this, r = q(i, `.${s.slideClass}, swiper-slide`), n = Pe(r[0]);
2141
+ return Pe(e) - n;
2142
+ }
2143
+ getSlideIndexByData(e) {
2144
+ return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
2145
+ }
2146
+ recalcSlides() {
2147
+ const e = this, {
2148
+ slidesEl: i,
2149
+ params: s
2150
+ } = e;
2151
+ e.slides = q(i, `.${s.slideClass}, swiper-slide`);
2152
+ }
2153
+ enable() {
2154
+ const e = this;
2155
+ e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
2156
+ }
2157
+ disable() {
2158
+ const e = this;
2159
+ e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
2160
+ }
2161
+ setProgress(e, i) {
2162
+ const s = this;
2163
+ e = Math.min(Math.max(e, 0), 1);
2164
+ const r = s.minTranslate(), d = (s.maxTranslate() - r) * e + r;
2165
+ s.translateTo(d, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
2166
+ }
2167
+ emitContainerClasses() {
2168
+ const e = this;
2169
+ if (!e.params._emitClasses || !e.el) return;
2170
+ const i = e.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(e.params.containerModifierClass) === 0);
2171
+ e.emit("_containerClasses", i.join(" "));
2172
+ }
2173
+ getSlideClasses(e) {
2174
+ const i = this;
2175
+ return i.destroyed ? "" : e.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(i.params.slideClass) === 0).join(" ");
2176
+ }
2177
+ emitSlidesClasses() {
2178
+ const e = this;
2179
+ if (!e.params._emitClasses || !e.el) return;
2180
+ const i = [];
2181
+ e.slides.forEach((s) => {
2182
+ const r = e.getSlideClasses(s);
2183
+ i.push({
2184
+ slideEl: s,
2185
+ classNames: r
2186
+ }), e.emit("_slideClass", s, r);
2187
+ }), e.emit("_slideClasses", i);
2188
+ }
2189
+ slidesPerViewDynamic(e, i) {
2190
+ e === void 0 && (e = "current"), i === void 0 && (i = !1);
2191
+ const s = this, {
2192
+ params: r,
2193
+ slides: n,
2194
+ slidesGrid: d,
2195
+ slidesSizesGrid: o,
2196
+ size: c,
2197
+ activeIndex: f
2198
+ } = s;
2199
+ let u = 1;
2200
+ if (typeof r.slidesPerView == "number") return r.slidesPerView;
2201
+ if (r.centeredSlides) {
2202
+ let m = n[f] ? Math.ceil(n[f].swiperSlideSize) : 0, v;
2203
+ for (let w = f + 1; w < n.length; w += 1)
2204
+ n[w] && !v && (m += Math.ceil(n[w].swiperSlideSize), u += 1, m > c && (v = !0));
2205
+ for (let w = f - 1; w >= 0; w -= 1)
2206
+ n[w] && !v && (m += n[w].swiperSlideSize, u += 1, m > c && (v = !0));
2207
+ } else if (e === "current")
2208
+ for (let m = f + 1; m < n.length; m += 1)
2209
+ (i ? d[m] + o[m] - d[f] < c : d[m] - d[f] < c) && (u += 1);
2210
+ else
2211
+ for (let m = f - 1; m >= 0; m -= 1)
2212
+ d[f] - d[m] < c && (u += 1);
2213
+ return u;
2214
+ }
2215
+ update() {
2216
+ const e = this;
2217
+ if (!e || e.destroyed) return;
2218
+ const {
2219
+ snapGrid: i,
2220
+ params: s
2221
+ } = e;
2222
+ s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((d) => {
2223
+ d.complete && Te(e, d);
2224
+ }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2225
+ function r() {
2226
+ const d = e.rtlTranslate ? e.translate * -1 : e.translate, o = Math.min(Math.max(d, e.maxTranslate()), e.minTranslate());
2227
+ e.setTranslate(o), e.updateActiveIndex(), e.updateSlidesClasses();
2228
+ }
2229
+ let n;
2230
+ if (s.freeMode && s.freeMode.enabled && !s.cssMode)
2231
+ r(), s.autoHeight && e.updateAutoHeight();
2232
+ else {
2233
+ if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
2234
+ const d = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
2235
+ n = e.slideTo(d.length - 1, 0, !1, !0);
2236
+ } else
2237
+ n = e.slideTo(e.activeIndex, 0, !1, !0);
2238
+ n || r();
2239
+ }
2240
+ s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
2241
+ }
2242
+ changeDirection(e, i) {
2243
+ i === void 0 && (i = !0);
2244
+ const s = this, r = s.params.direction;
2245
+ return e || (e = r === "horizontal" ? "vertical" : "horizontal"), e === r || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${r}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((n) => {
2246
+ e === "vertical" ? n.style.width = "" : n.style.height = "";
2247
+ }), s.emit("changeDirection"), i && s.update()), s;
2248
+ }
2249
+ changeLanguageDirection(e) {
2250
+ const i = this;
2251
+ 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());
2252
+ }
2253
+ mount(e) {
2254
+ const i = this;
2255
+ if (i.mounted) return !0;
2256
+ let s = e || i.params.el;
2257
+ if (typeof s == "string" && (s = document.querySelector(s)), !s)
2258
+ return !1;
2259
+ s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
2260
+ const r = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2261
+ let d = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(r()) : q(s, r())[0];
2262
+ return !d && i.params.createElements && (d = fe("div", i.params.wrapperClass), s.append(d), q(s, `.${i.params.slideClass}`).forEach((o) => {
2263
+ d.append(o);
2264
+ })), Object.assign(i, {
2265
+ el: s,
2266
+ wrapperEl: d,
2267
+ slidesEl: i.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : d,
2268
+ hostEl: i.isElement ? s.parentNode.host : s,
2269
+ mounted: !0,
2270
+ // RTL
2271
+ rtl: s.dir.toLowerCase() === "rtl" || ne(s, "direction") === "rtl",
2272
+ rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || ne(s, "direction") === "rtl"),
2273
+ wrongRTL: ne(d, "display") === "-webkit-box"
2274
+ }), !0;
2275
+ }
2276
+ init(e) {
2277
+ const i = this;
2278
+ if (i.initialized || i.mount(e) === !1) return i;
2279
+ 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();
2280
+ const r = [...i.el.querySelectorAll('[loading="lazy"]')];
2281
+ return i.isElement && r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
2282
+ n.complete ? Te(i, n) : n.addEventListener("load", (d) => {
2283
+ Te(i, d.target);
2284
+ });
2285
+ }), Ne(i), i.initialized = !0, Ne(i), i.emit("init"), i.emit("afterInit"), i;
2286
+ }
2287
+ destroy(e, i) {
2288
+ e === void 0 && (e = !0), i === void 0 && (i = !0);
2289
+ const s = this, {
2290
+ params: r,
2291
+ el: n,
2292
+ wrapperEl: d,
2293
+ slides: o
2294
+ } = s;
2295
+ return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), r.loop && s.loopDestroy(), i && (s.removeClasses(), n && typeof n != "string" && n.removeAttribute("style"), d && d.removeAttribute("style"), o && o.length && o.forEach((c) => {
2296
+ c.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), c.removeAttribute("style"), c.removeAttribute("data-swiper-slide-index");
2297
+ })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((c) => {
2298
+ s.off(c);
2299
+ }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), Ct(s)), s.destroyed = !0), null;
2300
+ }
2301
+ static extendDefaults(e) {
2302
+ j(Re, e);
2303
+ }
2304
+ static get extendedDefaults() {
2305
+ return Re;
2306
+ }
2307
+ static get defaults() {
2308
+ return Fe;
2309
+ }
2310
+ static installModule(e) {
2311
+ Q.prototype.__modules__ || (Q.prototype.__modules__ = []);
2312
+ const i = Q.prototype.__modules__;
2313
+ typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
2314
+ }
2315
+ static use(e) {
2316
+ return Array.isArray(e) ? (e.forEach((i) => Q.installModule(i)), Q) : (Q.installModule(e), Q);
2317
+ }
2318
+ };
2319
+ Object.keys(Xe).forEach((t) => {
2320
+ Object.keys(Xe[t]).forEach((e) => {
2321
+ qe.prototype[e] = Xe[t][e];
2322
+ });
2323
+ });
2324
+ qe.use([_t, Gt]);
2325
+ const ct = [
2326
+ "eventsPrefix",
2327
+ "injectStyles",
2328
+ "injectStylesUrls",
2329
+ "modules",
2330
+ "init",
2331
+ "_direction",
2332
+ "oneWayMovement",
2333
+ "swiperElementNodeName",
2334
+ "touchEventsTarget",
2335
+ "initialSlide",
2336
+ "_speed",
2337
+ "cssMode",
2338
+ "updateOnWindowResize",
2339
+ "resizeObserver",
2340
+ "nested",
2341
+ "focusableElements",
2342
+ "_enabled",
2343
+ "_width",
2344
+ "_height",
2345
+ "preventInteractionOnTransition",
2346
+ "userAgent",
2347
+ "url",
2348
+ "_edgeSwipeDetection",
2349
+ "_edgeSwipeThreshold",
2350
+ "_freeMode",
2351
+ "_autoHeight",
2352
+ "setWrapperSize",
2353
+ "virtualTranslate",
2354
+ "_effect",
2355
+ "breakpoints",
2356
+ "breakpointsBase",
2357
+ "_spaceBetween",
2358
+ "_slidesPerView",
2359
+ "maxBackfaceHiddenSlides",
2360
+ "_grid",
2361
+ "_slidesPerGroup",
2362
+ "_slidesPerGroupSkip",
2363
+ "_slidesPerGroupAuto",
2364
+ "_centeredSlides",
2365
+ "_centeredSlidesBounds",
2366
+ "_slidesOffsetBefore",
2367
+ "_slidesOffsetAfter",
2368
+ "normalizeSlideIndex",
2369
+ "_centerInsufficientSlides",
2370
+ "_watchOverflow",
2371
+ "roundLengths",
2372
+ "touchRatio",
2373
+ "touchAngle",
2374
+ "simulateTouch",
2375
+ "_shortSwipes",
2376
+ "_longSwipes",
2377
+ "longSwipesRatio",
2378
+ "longSwipesMs",
2379
+ "_followFinger",
2380
+ "allowTouchMove",
2381
+ "_threshold",
2382
+ "touchMoveStopPropagation",
2383
+ "touchStartPreventDefault",
2384
+ "touchStartForcePreventDefault",
2385
+ "touchReleaseOnEdges",
2386
+ "uniqueNavElements",
2387
+ "_resistance",
2388
+ "_resistanceRatio",
2389
+ "_watchSlidesProgress",
2390
+ "_grabCursor",
2391
+ "preventClicks",
2392
+ "preventClicksPropagation",
2393
+ "_slideToClickedSlide",
2394
+ "_loop",
2395
+ "loopAdditionalSlides",
2396
+ "loopAddBlankSlides",
2397
+ "loopPreventsSliding",
2398
+ "_rewind",
2399
+ "_allowSlidePrev",
2400
+ "_allowSlideNext",
2401
+ "_swipeHandler",
2402
+ "_noSwiping",
2403
+ "noSwipingClass",
2404
+ "noSwipingSelector",
2405
+ "passiveListeners",
2406
+ "containerModifierClass",
2407
+ "slideClass",
2408
+ "slideActiveClass",
2409
+ "slideVisibleClass",
2410
+ "slideFullyVisibleClass",
2411
+ "slideNextClass",
2412
+ "slidePrevClass",
2413
+ "slideBlankClass",
2414
+ "wrapperClass",
2415
+ "lazyPreloaderClass",
2416
+ "lazyPreloadPrevNext",
2417
+ "runCallbacksOnInit",
2418
+ "observer",
2419
+ "observeParents",
2420
+ "observeSlideChildren",
2421
+ // modules
2422
+ "a11y",
2423
+ "_autoplay",
2424
+ "_controller",
2425
+ "coverflowEffect",
2426
+ "cubeEffect",
2427
+ "fadeEffect",
2428
+ "flipEffect",
2429
+ "creativeEffect",
2430
+ "cardsEffect",
2431
+ "hashNavigation",
2432
+ "history",
2433
+ "keyboard",
2434
+ "mousewheel",
2435
+ "_navigation",
2436
+ "_pagination",
2437
+ "parallax",
2438
+ "_scrollbar",
2439
+ "_thumbs",
2440
+ "virtual",
2441
+ "zoom",
2442
+ "control"
2443
+ ];
2444
+ function ae(t) {
2445
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
2446
+ }
2447
+ function ce(t, e) {
2448
+ const i = ["__proto__", "constructor", "prototype"];
2449
+ Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
2450
+ typeof t[s] > "u" ? t[s] = e[s] : ae(e[s]) && ae(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : ce(t[s], e[s]) : t[s] = e[s];
2451
+ });
2452
+ }
2453
+ function ft(t) {
2454
+ return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
2455
+ }
2456
+ function ut(t) {
2457
+ return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
2458
+ }
2459
+ function pt(t) {
2460
+ return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
2461
+ }
2462
+ function mt(t) {
2463
+ t === void 0 && (t = "");
2464
+ const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
2465
+ return e.forEach((s) => {
2466
+ i.indexOf(s) < 0 && i.push(s);
2467
+ }), i.join(" ");
2468
+ }
2469
+ function Vi(t) {
2470
+ return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2471
+ }
2472
+ function Wi(t) {
2473
+ let {
2474
+ swiper: e,
2475
+ slides: i,
2476
+ passedParams: s,
2477
+ changedParams: r,
2478
+ nextEl: n,
2479
+ prevEl: d,
2480
+ scrollbarEl: o,
2481
+ paginationEl: c
2482
+ } = t;
2483
+ const f = r.filter((y) => y !== "children" && y !== "direction" && y !== "wrapperClass"), {
2484
+ params: u,
2485
+ pagination: m,
2486
+ navigation: v,
2487
+ scrollbar: w,
2488
+ virtual: a,
2489
+ thumbs: l
2490
+ } = e;
2491
+ let S, g, p, h, E, b, L, I;
2492
+ r.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && u.thumbs && (!u.thumbs.swiper || u.thumbs.swiper.destroyed) && (S = !0), r.includes("controller") && s.controller && s.controller.control && u.controller && !u.controller.control && (g = !0), r.includes("pagination") && s.pagination && (s.pagination.el || c) && (u.pagination || u.pagination === !1) && m && !m.el && (p = !0), r.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (u.scrollbar || u.scrollbar === !1) && w && !w.el && (h = !0), r.includes("navigation") && s.navigation && (s.navigation.prevEl || d) && (s.navigation.nextEl || n) && (u.navigation || u.navigation === !1) && v && !v.prevEl && !v.nextEl && (E = !0);
2493
+ const z = (y) => {
2494
+ e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), u[y].prevEl = void 0, u[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), u[y].el = void 0, e[y].el = void 0));
2495
+ };
2496
+ r.includes("loop") && e.isElement && (u.loop && !s.loop ? b = !0 : !u.loop && s.loop ? L = !0 : I = !0), f.forEach((y) => {
2497
+ if (ae(u[y]) && ae(s[y]))
2498
+ Object.assign(u[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && z(y);
2499
+ else {
2500
+ const T = s[y];
2501
+ (T === !0 || T === !1) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === !1 && z(y) : u[y] = s[y];
2502
+ }
2503
+ }), f.includes("controller") && !g && e.controller && e.controller.control && u.controller && u.controller.control && (e.controller.control = u.controller.control), r.includes("children") && i && a && u.virtual.enabled ? (a.slides = i, a.update(!0)) : r.includes("virtual") && a && u.virtual.enabled && (i && (a.slides = i), a.update(!0)), r.includes("children") && i && u.loop && (I = !0), S && l.init() && l.update(!0), g && (e.controller.control = u.controller.control), p && (e.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), e.el.appendChild(c)), c && (u.pagination.el = c), m.init(), m.render(), m.update()), h && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (u.scrollbar.el = o), w.init(), w.updateSize(), w.setTranslate()), E && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), n.innerHTML = e.hostEl.constructor.nextButtonSvg, n.part.add("button-next"), e.el.appendChild(n)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), d.innerHTML = e.hostEl.constructor.prevButtonSvg, d.part.add("button-prev"), e.el.appendChild(d))), n && (u.navigation.nextEl = n), d && (u.navigation.prevEl = d), v.init(), v.update()), r.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), r.includes("direction") && e.changeDirection(s.direction, !1), (b || I) && e.loopDestroy(), (L || I) && e.loopCreate(), e.update();
2504
+ }
2505
+ function ki(t, e) {
2506
+ t === void 0 && (t = {}), e === void 0 && (e = !0);
2507
+ const i = {
2508
+ on: {}
2509
+ }, s = {}, r = {};
2510
+ ce(i, Fe), i._emitClasses = !0, i.init = !1;
2511
+ const n = {}, d = ct.map((c) => c.replace(/_/, "")), o = Object.assign({}, t);
2512
+ return Object.keys(o).forEach((c) => {
2513
+ typeof t[c] > "u" || (d.indexOf(c) >= 0 ? ae(t[c]) ? (i[c] = {}, r[c] = {}, ce(i[c], t[c]), ce(r[c], t[c])) : (i[c] = t[c], r[c] = t[c]) : c.search(/on[A-Z]/) === 0 && typeof t[c] == "function" ? e ? s[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : i.on[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : n[c] = t[c]);
2514
+ }), ["navigation", "pagination", "scrollbar"].forEach((c) => {
2515
+ i[c] === !0 && (i[c] = {}), i[c] === !1 && delete i[c];
2516
+ }), {
2517
+ params: i,
2518
+ passedParams: r,
2519
+ rest: n,
2520
+ events: s
2521
+ };
2522
+ }
2523
+ function Hi(t, e) {
2524
+ let {
2525
+ el: i,
2526
+ nextEl: s,
2527
+ prevEl: r,
2528
+ paginationEl: n,
2529
+ scrollbarEl: d,
2530
+ swiper: o
2531
+ } = t;
2532
+ ft(e) && s && r && (o.params.navigation.nextEl = s, o.originalParams.navigation.nextEl = s, o.params.navigation.prevEl = r, o.originalParams.navigation.prevEl = r), ut(e) && n && (o.params.pagination.el = n, o.originalParams.pagination.el = n), pt(e) && d && (o.params.scrollbar.el = d, o.originalParams.scrollbar.el = d), o.init(i);
2533
+ }
2534
+ function Ni(t, e, i, s, r) {
2535
+ const n = [];
2536
+ if (!e) return n;
2537
+ const d = (c) => {
2538
+ n.indexOf(c) < 0 && n.push(c);
2539
+ };
2540
+ if (i && s) {
2541
+ const c = s.map(r), f = i.map(r);
2542
+ c.join("") !== f.join("") && d("children"), s.length !== i.length && d("children");
2543
+ }
2544
+ return ct.filter((c) => c[0] === "_").map((c) => c.replace(/_/, "")).forEach((c) => {
2545
+ if (c in t && c in e)
2546
+ if (ae(t[c]) && ae(e[c])) {
2547
+ const f = Object.keys(t[c]), u = Object.keys(e[c]);
2548
+ f.length !== u.length ? d(c) : (f.forEach((m) => {
2549
+ t[c][m] !== e[c][m] && d(c);
2550
+ }), u.forEach((m) => {
2551
+ t[c][m] !== e[c][m] && d(c);
2552
+ }));
2553
+ } else t[c] !== e[c] && d(c);
2554
+ }), n;
2555
+ }
2556
+ const Fi = (t) => {
2557
+ !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());
2558
+ };
2559
+ function Le() {
2560
+ return Le = Object.assign ? Object.assign.bind() : function(t) {
2561
+ for (var e = 1; e < arguments.length; e++) {
2562
+ var i = arguments[e];
2563
+ for (var s in i)
2564
+ Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
2565
+ }
2566
+ return t;
2567
+ }, Le.apply(this, arguments);
2568
+ }
2569
+ function ht(t) {
2570
+ return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
2571
+ }
2572
+ function gt(t) {
2573
+ const e = [];
2574
+ return V.Children.toArray(t).forEach((i) => {
2575
+ ht(i) ? e.push(i) : i.props && i.props.children && gt(i.props.children).forEach((s) => e.push(s));
2576
+ }), e;
2577
+ }
2578
+ function ji(t) {
2579
+ const e = [], i = {
2580
+ "container-start": [],
2581
+ "container-end": [],
2582
+ "wrapper-start": [],
2583
+ "wrapper-end": []
2584
+ };
2585
+ return V.Children.toArray(t).forEach((s) => {
2586
+ if (ht(s))
2587
+ e.push(s);
2588
+ else if (s.props && s.props.slot && i[s.props.slot])
2589
+ i[s.props.slot].push(s);
2590
+ else if (s.props && s.props.children) {
2591
+ const r = gt(s.props.children);
2592
+ r.length > 0 ? r.forEach((n) => e.push(n)) : i["container-end"].push(s);
2593
+ } else
2594
+ i["container-end"].push(s);
2595
+ }), {
2596
+ slides: e,
2597
+ slots: i
2598
+ };
2599
+ }
2600
+ function qi(t, e, i) {
2601
+ if (!i) return null;
2602
+ const s = (u) => {
2603
+ let m = u;
2604
+ return u < 0 ? m = e.length + u : m >= e.length && (m = m - e.length), m;
2605
+ }, r = t.isHorizontal() ? {
2606
+ [t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
2607
+ } : {
2608
+ top: `${i.offset}px`
2609
+ }, {
2610
+ from: n,
2611
+ to: d
2612
+ } = i, o = t.params.loop ? -e.length : 0, c = t.params.loop ? e.length * 2 : e.length, f = [];
2613
+ for (let u = o; u < c; u += 1)
2614
+ u >= n && u <= d && f.push(e[s(u)]);
2615
+ return f.map((u, m) => /* @__PURE__ */ V.cloneElement(u, {
2616
+ swiper: t,
2617
+ style: r,
2618
+ key: u.props.virtualIndex || u.key || `slide-${m}`
2619
+ }));
2620
+ }
2621
+ function we(t, e) {
2622
+ return typeof window > "u" ? R.useEffect(t, e) : R.useLayoutEffect(t, e);
2623
+ }
2624
+ const it = /* @__PURE__ */ R.createContext(null), Ui = /* @__PURE__ */ R.createContext(null), vt = /* @__PURE__ */ R.forwardRef(function(t, e) {
2625
+ let {
2626
+ className: i,
2627
+ tag: s = "div",
2628
+ wrapperTag: r = "div",
2629
+ children: n,
2630
+ onSwiper: d,
2631
+ ...o
2632
+ } = t === void 0 ? {} : t, c = !1;
2633
+ const [f, u] = R.useState("swiper"), [m, v] = R.useState(null), [w, a] = R.useState(!1), l = R.useRef(!1), S = R.useRef(null), g = R.useRef(null), p = R.useRef(null), h = R.useRef(null), E = R.useRef(null), b = R.useRef(null), L = R.useRef(null), I = R.useRef(null), {
2634
+ params: z,
2635
+ passedParams: y,
2636
+ rest: T,
2637
+ events: P
2638
+ } = ki(o), {
2639
+ slides: O,
2640
+ slots: D
2641
+ } = ji(n), $ = () => {
2642
+ a(!w);
2643
+ };
2644
+ Object.assign(z.on, {
2645
+ _containerClasses(G, H) {
2646
+ u(H);
2647
+ }
2648
+ });
2649
+ const _ = () => {
2650
+ Object.assign(z.on, P), c = !0;
2651
+ const G = {
2652
+ ...z
2653
+ };
2654
+ if (delete G.wrapperClass, g.current = new qe(G), g.current.virtual && g.current.params.virtual.enabled) {
2655
+ g.current.virtual.slides = O;
2656
+ const H = {
2657
+ cache: !1,
2658
+ slides: O,
2659
+ renderExternal: v,
2660
+ renderExternalUpdate: !1
2661
+ };
2662
+ ce(g.current.params.virtual, H), ce(g.current.originalParams.virtual, H);
2663
+ }
2664
+ };
2665
+ S.current || _(), g.current && g.current.on("_beforeBreakpoint", $);
2666
+ const A = () => {
2667
+ c || !P || !g.current || Object.keys(P).forEach((G) => {
2668
+ g.current.on(G, P[G]);
2669
+ });
2670
+ }, Y = () => {
2671
+ !P || !g.current || Object.keys(P).forEach((G) => {
2672
+ g.current.off(G, P[G]);
2673
+ });
2674
+ };
2675
+ R.useEffect(() => () => {
2676
+ g.current && g.current.off("_beforeBreakpoint", $);
2677
+ }), R.useEffect(() => {
2678
+ !l.current && g.current && (g.current.emitSlidesClasses(), l.current = !0);
2679
+ }), we(() => {
2680
+ if (e && (e.current = S.current), !!S.current)
2681
+ return g.current.destroyed && _(), Hi({
2682
+ el: S.current,
2683
+ nextEl: E.current,
2684
+ prevEl: b.current,
2685
+ paginationEl: L.current,
2686
+ scrollbarEl: I.current,
2687
+ swiper: g.current
2688
+ }, z), d && !g.current.destroyed && d(g.current), () => {
2689
+ g.current && !g.current.destroyed && g.current.destroy(!0, !1);
2690
+ };
2691
+ }, []), we(() => {
2692
+ A();
2693
+ const G = Ni(y, p.current, O, h.current, (H) => H.key);
2694
+ return p.current = y, h.current = O, G.length && g.current && !g.current.destroyed && Wi({
2695
+ swiper: g.current,
2696
+ slides: O,
2697
+ passedParams: y,
2698
+ changedParams: G,
2699
+ nextEl: E.current,
2700
+ prevEl: b.current,
2701
+ scrollbarEl: I.current,
2702
+ paginationEl: L.current
2703
+ }), () => {
2704
+ Y();
2705
+ };
2706
+ }), we(() => {
2707
+ Fi(g.current);
2708
+ }, [m]);
2709
+ function X() {
2710
+ return z.virtual ? qi(g.current, O, m) : O.map((G, H) => /* @__PURE__ */ V.cloneElement(G, {
2711
+ swiper: g.current,
2712
+ swiperSlideIndex: H
2713
+ }));
2714
+ }
2715
+ return /* @__PURE__ */ V.createElement(s, Le({
2716
+ ref: S,
2717
+ className: mt(`${f}${i ? ` ${i}` : ""}`)
2718
+ }, T), /* @__PURE__ */ V.createElement(Ui.Provider, {
2719
+ value: g.current
2720
+ }, D["container-start"], /* @__PURE__ */ V.createElement(r, {
2721
+ className: Vi(z.wrapperClass)
2722
+ }, D["wrapper-start"], X(), D["wrapper-end"]), ft(z) && /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement("div", {
2723
+ ref: b,
2724
+ className: "swiper-button-prev"
2725
+ }), /* @__PURE__ */ V.createElement("div", {
2726
+ ref: E,
2727
+ className: "swiper-button-next"
2728
+ })), pt(z) && /* @__PURE__ */ V.createElement("div", {
2729
+ ref: I,
2730
+ className: "swiper-scrollbar"
2731
+ }), ut(z) && /* @__PURE__ */ V.createElement("div", {
2732
+ ref: L,
2733
+ className: "swiper-pagination"
2734
+ }), D["container-end"]));
2735
+ });
2736
+ vt.displayName = "Swiper";
2737
+ const wt = /* @__PURE__ */ R.forwardRef(function(t, e) {
2738
+ let {
2739
+ tag: i = "div",
2740
+ children: s,
2741
+ className: r = "",
2742
+ swiper: n,
2743
+ zoom: d,
2744
+ lazy: o,
2745
+ virtualIndex: c,
2746
+ swiperSlideIndex: f,
2747
+ ...u
2748
+ } = t === void 0 ? {} : t;
2749
+ const m = R.useRef(null), [v, w] = R.useState("swiper-slide"), [a, l] = R.useState(!1);
2750
+ function S(E, b, L) {
2751
+ b === m.current && w(L);
2752
+ }
2753
+ we(() => {
2754
+ if (typeof f < "u" && (m.current.swiperSlideIndex = f), e && (e.current = m.current), !(!m.current || !n)) {
2755
+ if (n.destroyed) {
2756
+ v !== "swiper-slide" && w("swiper-slide");
2757
+ return;
2758
+ }
2759
+ return n.on("_slideClass", S), () => {
2760
+ n && n.off("_slideClass", S);
2761
+ };
2762
+ }
2763
+ }), we(() => {
2764
+ n && m.current && !n.destroyed && w(n.getSlideClasses(m.current));
2765
+ }, [n]);
2766
+ const g = {
2767
+ isActive: v.indexOf("swiper-slide-active") >= 0,
2768
+ isVisible: v.indexOf("swiper-slide-visible") >= 0,
2769
+ isPrev: v.indexOf("swiper-slide-prev") >= 0,
2770
+ isNext: v.indexOf("swiper-slide-next") >= 0
2771
+ }, p = () => typeof s == "function" ? s(g) : s, h = () => {
2772
+ l(!0);
2773
+ };
2774
+ return /* @__PURE__ */ V.createElement(i, Le({
2775
+ ref: m,
2776
+ className: mt(`${v}${r ? ` ${r}` : ""}`),
2777
+ "data-swiper-slide-index": c,
2778
+ onLoad: h
2779
+ }, u), d && /* @__PURE__ */ V.createElement(it.Provider, {
2780
+ value: g
2781
+ }, /* @__PURE__ */ V.createElement("div", {
2782
+ className: "swiper-zoom-container",
2783
+ "data-swiper-zoom": typeof d == "number" ? d : void 0
2784
+ }, p(), o && !a && /* @__PURE__ */ V.createElement("div", {
2785
+ className: "swiper-lazy-preloader"
2786
+ }))), !d && /* @__PURE__ */ V.createElement(it.Provider, {
2787
+ value: g
2788
+ }, p(), o && !a && /* @__PURE__ */ V.createElement("div", {
2789
+ className: "swiper-lazy-preloader"
2790
+ })));
2791
+ });
2792
+ wt.displayName = "SwiperSlide";
2793
+ function Ki(t) {
2794
+ let {
2795
+ swiper: e,
2796
+ extendParams: i,
2797
+ on: s,
2798
+ emit: r
2799
+ } = t;
2800
+ i({
2801
+ virtual: {
2802
+ enabled: !1,
2803
+ slides: [],
2804
+ cache: !0,
2805
+ renderSlide: null,
2806
+ renderExternal: null,
2807
+ renderExternalUpdate: !0,
2808
+ addSlidesBefore: 0,
2809
+ addSlidesAfter: 0
2810
+ }
2811
+ });
2812
+ let n;
2813
+ const d = Z();
2814
+ e.virtual = {
2815
+ cache: {},
2816
+ from: void 0,
2817
+ to: void 0,
2818
+ slides: [],
2819
+ offset: 0,
2820
+ slidesGrid: []
2821
+ };
2822
+ const o = d.createElement("div");
2823
+ function c(a, l) {
2824
+ const S = e.params.virtual;
2825
+ if (S.cache && e.virtual.cache[l])
2826
+ return e.virtual.cache[l];
2827
+ let g;
2828
+ return S.renderSlide ? (g = S.renderSlide.call(e, a, l), typeof g == "string" && (o.innerHTML = g, g = o.children[0])) : e.isElement ? g = fe("swiper-slide") : g = fe("div", e.params.slideClass), g.setAttribute("data-swiper-slide-index", l), S.renderSlide || (g.innerHTML = a), S.cache && (e.virtual.cache[l] = g), g;
2829
+ }
2830
+ function f(a, l, S) {
2831
+ const {
2832
+ slidesPerView: g,
2833
+ slidesPerGroup: p,
2834
+ centeredSlides: h,
2835
+ loop: E,
2836
+ initialSlide: b
2837
+ } = e.params;
2838
+ if (l && !E && b > 0)
2839
+ return;
2840
+ const {
2841
+ addSlidesBefore: L,
2842
+ addSlidesAfter: I
2843
+ } = e.params.virtual, {
2844
+ from: z,
2845
+ to: y,
2846
+ slides: T,
2847
+ slidesGrid: P,
2848
+ offset: O
2849
+ } = e.virtual;
2850
+ e.params.cssMode || e.updateActiveIndex();
2851
+ const D = typeof S > "u" ? e.activeIndex || 0 : S;
2852
+ let $;
2853
+ e.rtlTranslate ? $ = "right" : $ = e.isHorizontal() ? "left" : "top";
2854
+ let _, A;
2855
+ h ? (_ = Math.floor(g / 2) + p + I, A = Math.floor(g / 2) + p + L) : (_ = g + (p - 1) + I, A = (E ? g : p) + L);
2856
+ let Y = D - A, X = D + _;
2857
+ E || (Y = Math.max(Y, 0), X = Math.min(X, T.length - 1));
2858
+ let G = (e.slidesGrid[Y] || 0) - (e.slidesGrid[0] || 0);
2859
+ E && D >= A ? (Y -= A, h || (G += e.slidesGrid[0])) : E && D < A && (Y = -A, h && (G += e.slidesGrid[0])), Object.assign(e.virtual, {
2860
+ from: Y,
2861
+ to: X,
2862
+ offset: G,
2863
+ slidesGrid: e.slidesGrid,
2864
+ slidesBefore: A,
2865
+ slidesAfter: _
2866
+ });
2867
+ function H() {
2868
+ e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), r("virtualUpdate");
2869
+ }
2870
+ if (z === Y && y === X && !a) {
2871
+ e.slidesGrid !== P && G !== O && e.slides.forEach((x) => {
2872
+ x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
2873
+ }), e.updateProgress(), r("virtualUpdate");
2874
+ return;
2875
+ }
2876
+ if (e.params.virtual.renderExternal) {
2877
+ e.params.virtual.renderExternal.call(e, {
2878
+ offset: G,
2879
+ from: Y,
2880
+ to: X,
2881
+ slides: function() {
2882
+ const M = [];
2883
+ for (let B = Y; B <= X; B += 1)
2884
+ M.push(T[B]);
2885
+ return M;
2886
+ }()
2887
+ }), e.params.virtual.renderExternalUpdate ? H() : r("virtualUpdate");
2888
+ return;
2889
+ }
2890
+ const K = [], ee = [], ue = (x) => {
2891
+ let M = x;
2892
+ return x < 0 ? M = T.length + x : M >= T.length && (M = M - T.length), M;
2893
+ };
2894
+ if (a)
2895
+ e.slides.filter((x) => x.matches(`.${e.params.slideClass}, swiper-slide`)).forEach((x) => {
2896
+ x.remove();
2897
+ });
2898
+ else
2899
+ for (let x = z; x <= y; x += 1)
2900
+ if (x < Y || x > X) {
2901
+ const M = ue(x);
2902
+ e.slides.filter((B) => B.matches(`.${e.params.slideClass}[data-swiper-slide-index="${M}"], swiper-slide[data-swiper-slide-index="${M}"]`)).forEach((B) => {
2903
+ B.remove();
2904
+ });
2905
+ }
2906
+ const Se = E ? -T.length : 0, C = E ? T.length * 2 : T.length;
2907
+ for (let x = Se; x < C; x += 1)
2908
+ if (x >= Y && x <= X) {
2909
+ const M = ue(x);
2910
+ typeof y > "u" || a ? ee.push(M) : (x > y && ee.push(M), x < z && K.push(M));
2911
+ }
2912
+ if (ee.forEach((x) => {
2913
+ e.slidesEl.append(c(T[x], x));
2914
+ }), E)
2915
+ for (let x = K.length - 1; x >= 0; x -= 1) {
2916
+ const M = K[x];
2917
+ e.slidesEl.prepend(c(T[M], M));
2918
+ }
2919
+ else
2920
+ K.sort((x, M) => M - x), K.forEach((x) => {
2921
+ e.slidesEl.prepend(c(T[x], x));
2922
+ });
2923
+ q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((x) => {
2924
+ x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
2925
+ }), H();
2926
+ }
2927
+ function u(a) {
2928
+ if (typeof a == "object" && "length" in a)
2929
+ for (let l = 0; l < a.length; l += 1)
2930
+ a[l] && e.virtual.slides.push(a[l]);
2931
+ else
2932
+ e.virtual.slides.push(a);
2933
+ f(!0);
2934
+ }
2935
+ function m(a) {
2936
+ const l = e.activeIndex;
2937
+ let S = l + 1, g = 1;
2938
+ if (Array.isArray(a)) {
2939
+ for (let p = 0; p < a.length; p += 1)
2940
+ a[p] && e.virtual.slides.unshift(a[p]);
2941
+ S = l + a.length, g = a.length;
2942
+ } else
2943
+ e.virtual.slides.unshift(a);
2944
+ if (e.params.virtual.cache) {
2945
+ const p = e.virtual.cache, h = {};
2946
+ Object.keys(p).forEach((E) => {
2947
+ const b = p[E], L = b.getAttribute("data-swiper-slide-index");
2948
+ L && b.setAttribute("data-swiper-slide-index", parseInt(L, 10) + g), h[parseInt(E, 10) + g] = b;
2949
+ }), e.virtual.cache = h;
2950
+ }
2951
+ f(!0), e.slideTo(S, 0);
2952
+ }
2953
+ function v(a) {
2954
+ if (typeof a > "u" || a === null) return;
2955
+ let l = e.activeIndex;
2956
+ if (Array.isArray(a))
2957
+ for (let S = a.length - 1; S >= 0; S -= 1)
2958
+ e.params.virtual.cache && (delete e.virtual.cache[a[S]], Object.keys(e.virtual.cache).forEach((g) => {
2959
+ g > a && (e.virtual.cache[g - 1] = e.virtual.cache[g], e.virtual.cache[g - 1].setAttribute("data-swiper-slide-index", g - 1), delete e.virtual.cache[g]);
2960
+ })), e.virtual.slides.splice(a[S], 1), a[S] < l && (l -= 1), l = Math.max(l, 0);
2961
+ else
2962
+ e.params.virtual.cache && (delete e.virtual.cache[a], Object.keys(e.virtual.cache).forEach((S) => {
2963
+ S > a && (e.virtual.cache[S - 1] = e.virtual.cache[S], e.virtual.cache[S - 1].setAttribute("data-swiper-slide-index", S - 1), delete e.virtual.cache[S]);
2964
+ })), e.virtual.slides.splice(a, 1), a < l && (l -= 1), l = Math.max(l, 0);
2965
+ f(!0), e.slideTo(l, 0);
2966
+ }
2967
+ function w() {
2968
+ e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), f(!0), e.slideTo(0, 0);
2969
+ }
2970
+ s("beforeInit", () => {
2971
+ if (!e.params.virtual.enabled) return;
2972
+ let a;
2973
+ if (typeof e.passedParams.virtual.slides > "u") {
2974
+ const l = [...e.slidesEl.children].filter((S) => S.matches(`.${e.params.slideClass}, swiper-slide`));
2975
+ l && l.length && (e.virtual.slides = [...l], a = !0, l.forEach((S, g) => {
2976
+ S.setAttribute("data-swiper-slide-index", g), e.virtual.cache[g] = S, S.remove();
2977
+ }));
2978
+ }
2979
+ a || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0, f(!1, !0);
2980
+ }), s("setTranslate", () => {
2981
+ e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(n), n = setTimeout(() => {
2982
+ f();
2983
+ }, 100)) : f());
2984
+ }), s("init update resize", () => {
2985
+ e.params.virtual.enabled && e.params.cssMode && ve(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`);
2986
+ }), Object.assign(e.virtual, {
2987
+ appendSlide: u,
2988
+ prependSlide: m,
2989
+ removeSlide: v,
2990
+ removeAllSlides: w,
2991
+ update: f
2992
+ });
2993
+ }
2994
+ function Zi(t) {
2995
+ let {
2996
+ swiper: e,
2997
+ extendParams: i,
2998
+ on: s,
2999
+ emit: r
3000
+ } = t;
3001
+ const n = Z(), d = k();
3002
+ e.keyboard = {
3003
+ enabled: !1
3004
+ }, i({
3005
+ keyboard: {
3006
+ enabled: !1,
3007
+ onlyInViewport: !0,
3008
+ pageUpDown: !0
3009
+ }
3010
+ });
3011
+ function o(u) {
3012
+ if (!e.enabled) return;
3013
+ const {
3014
+ rtlTranslate: m
3015
+ } = e;
3016
+ let v = u;
3017
+ v.originalEvent && (v = v.originalEvent);
3018
+ const w = v.keyCode || v.charCode, a = e.params.keyboard.pageUpDown, l = a && w === 33, S = a && w === 34, g = w === 37, p = w === 39, h = w === 38, E = w === 40;
3019
+ if (!e.allowSlideNext && (e.isHorizontal() && p || e.isVertical() && E || S) || !e.allowSlidePrev && (e.isHorizontal() && g || e.isVertical() && h || l))
3020
+ return !1;
3021
+ if (!(v.shiftKey || v.altKey || v.ctrlKey || v.metaKey) && !(n.activeElement && n.activeElement.nodeName && (n.activeElement.nodeName.toLowerCase() === "input" || n.activeElement.nodeName.toLowerCase() === "textarea"))) {
3022
+ if (e.params.keyboard.onlyInViewport && (l || S || g || p || h || E)) {
3023
+ let b = !1;
3024
+ if (re(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && re(e.el, `.${e.params.slideActiveClass}`).length === 0)
3025
+ return;
3026
+ const L = e.el, I = L.clientWidth, z = L.clientHeight, y = d.innerWidth, T = d.innerHeight, P = ke(L);
3027
+ m && (P.left -= L.scrollLeft);
3028
+ const O = [[P.left, P.top], [P.left + I, P.top], [P.left, P.top + z], [P.left + I, P.top + z]];
3029
+ for (let D = 0; D < O.length; D += 1) {
3030
+ const $ = O[D];
3031
+ if ($[0] >= 0 && $[0] <= y && $[1] >= 0 && $[1] <= T) {
3032
+ if ($[0] === 0 && $[1] === 0) continue;
3033
+ b = !0;
3034
+ }
3035
+ }
3036
+ if (!b) return;
3037
+ }
3038
+ e.isHorizontal() ? ((l || S || g || p) && (v.preventDefault ? v.preventDefault() : v.returnValue = !1), ((S || p) && !m || (l || g) && m) && e.slideNext(), ((l || g) && !m || (S || p) && m) && e.slidePrev()) : ((l || S || h || E) && (v.preventDefault ? v.preventDefault() : v.returnValue = !1), (S || E) && e.slideNext(), (l || h) && e.slidePrev()), r("keyPress", w);
3039
+ }
3040
+ }
3041
+ function c() {
3042
+ e.keyboard.enabled || (n.addEventListener("keydown", o), e.keyboard.enabled = !0);
3043
+ }
3044
+ function f() {
3045
+ e.keyboard.enabled && (n.removeEventListener("keydown", o), e.keyboard.enabled = !1);
3046
+ }
3047
+ s("init", () => {
3048
+ e.params.keyboard.enabled && c();
3049
+ }), s("destroy", () => {
3050
+ e.keyboard.enabled && f();
3051
+ }), Object.assign(e.keyboard, {
3052
+ enable: c,
3053
+ disable: f
3054
+ });
3055
+ }
3056
+ function St(t, e, i, s) {
3057
+ return t.params.createElements && Object.keys(s).forEach((r) => {
3058
+ if (!i[r] && i.auto === !0) {
3059
+ let n = q(t.el, `.${s[r]}`)[0];
3060
+ n || (n = fe("div", s[r]), n.className = s[r], t.el.append(n)), i[r] = n, e[r] = n;
3061
+ }
3062
+ }), i;
3063
+ }
3064
+ function Ji(t) {
3065
+ let {
3066
+ swiper: e,
3067
+ extendParams: i,
3068
+ on: s,
3069
+ emit: r
3070
+ } = t;
3071
+ i({
3072
+ navigation: {
3073
+ nextEl: null,
3074
+ prevEl: null,
3075
+ hideOnClick: !1,
3076
+ disabledClass: "swiper-button-disabled",
3077
+ hiddenClass: "swiper-button-hidden",
3078
+ lockClass: "swiper-button-lock",
3079
+ navigationDisabledClass: "swiper-navigation-disabled"
3080
+ }
3081
+ }), e.navigation = {
3082
+ nextEl: null,
3083
+ prevEl: null
3084
+ };
3085
+ function n(a) {
3086
+ let l;
3087
+ return a && typeof a == "string" && e.isElement && (l = e.el.querySelector(a) || e.hostEl.querySelector(a), l) ? l : (a && (typeof a == "string" && (l = [...document.querySelectorAll(a)]), e.params.uniqueNavElements && typeof a == "string" && l && l.length > 1 && e.el.querySelectorAll(a).length === 1 ? l = e.el.querySelector(a) : l && l.length === 1 && (l = l[0])), a && !l ? a : l);
3088
+ }
3089
+ function d(a, l) {
3090
+ const S = e.params.navigation;
3091
+ a = W(a), a.forEach((g) => {
3092
+ g && (g.classList[l ? "add" : "remove"](...S.disabledClass.split(" ")), g.tagName === "BUTTON" && (g.disabled = l), e.params.watchOverflow && e.enabled && g.classList[e.isLocked ? "add" : "remove"](S.lockClass));
3093
+ });
3094
+ }
3095
+ function o() {
3096
+ const {
3097
+ nextEl: a,
3098
+ prevEl: l
3099
+ } = e.navigation;
3100
+ if (e.params.loop) {
3101
+ d(l, !1), d(a, !1);
3102
+ return;
3103
+ }
3104
+ d(l, e.isBeginning && !e.params.rewind), d(a, e.isEnd && !e.params.rewind);
3105
+ }
3106
+ function c(a) {
3107
+ a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), r("navigationPrev"));
3108
+ }
3109
+ function f(a) {
3110
+ a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), r("navigationNext"));
3111
+ }
3112
+ function u() {
3113
+ const a = e.params.navigation;
3114
+ if (e.params.navigation = St(e, e.originalParams.navigation, e.params.navigation, {
3115
+ nextEl: "swiper-button-next",
3116
+ prevEl: "swiper-button-prev"
3117
+ }), !(a.nextEl || a.prevEl)) return;
3118
+ let l = n(a.nextEl), S = n(a.prevEl);
3119
+ Object.assign(e.navigation, {
3120
+ nextEl: l,
3121
+ prevEl: S
3122
+ }), l = W(l), S = W(S);
3123
+ const g = (p, h) => {
3124
+ p && p.addEventListener("click", h === "next" ? f : c), !e.enabled && p && p.classList.add(...a.lockClass.split(" "));
3125
+ };
3126
+ l.forEach((p) => g(p, "next")), S.forEach((p) => g(p, "prev"));
3127
+ }
3128
+ function m() {
3129
+ let {
3130
+ nextEl: a,
3131
+ prevEl: l
3132
+ } = e.navigation;
3133
+ a = W(a), l = W(l);
3134
+ const S = (g, p) => {
3135
+ g.removeEventListener("click", p === "next" ? f : c), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
3136
+ };
3137
+ a.forEach((g) => S(g, "next")), l.forEach((g) => S(g, "prev"));
3138
+ }
3139
+ s("init", () => {
3140
+ e.params.navigation.enabled === !1 ? w() : (u(), o());
3141
+ }), s("toEdge fromEdge lock unlock", () => {
3142
+ o();
3143
+ }), s("destroy", () => {
3144
+ m();
3145
+ }), s("enable disable", () => {
3146
+ let {
3147
+ nextEl: a,
3148
+ prevEl: l
3149
+ } = e.navigation;
3150
+ if (a = W(a), l = W(l), e.enabled) {
3151
+ o();
3152
+ return;
3153
+ }
3154
+ [...a, ...l].filter((S) => !!S).forEach((S) => S.classList.add(e.params.navigation.lockClass));
3155
+ }), s("click", (a, l) => {
3156
+ let {
3157
+ nextEl: S,
3158
+ prevEl: g
3159
+ } = e.navigation;
3160
+ S = W(S), g = W(g);
3161
+ const p = l.target;
3162
+ let h = g.includes(p) || S.includes(p);
3163
+ if (e.isElement && !h) {
3164
+ const E = l.path || l.composedPath && l.composedPath();
3165
+ E && (h = E.find((b) => S.includes(b) || g.includes(b)));
3166
+ }
3167
+ if (e.params.navigation.hideOnClick && !h) {
3168
+ if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === p || e.pagination.el.contains(p))) return;
3169
+ let E;
3170
+ S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), r(E === !0 ? "navigationShow" : "navigationHide"), [...S, ...g].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
3171
+ }
3172
+ });
3173
+ const v = () => {
3174
+ e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), o();
3175
+ }, w = () => {
3176
+ e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), m();
3177
+ };
3178
+ Object.assign(e.navigation, {
3179
+ enable: v,
3180
+ disable: w,
3181
+ update: o,
3182
+ init: u,
3183
+ destroy: m
3184
+ });
3185
+ }
3186
+ function ge(t) {
3187
+ return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
3188
+ }
3189
+ function Qi(t) {
3190
+ let {
3191
+ swiper: e,
3192
+ extendParams: i,
3193
+ on: s,
3194
+ emit: r
3195
+ } = t;
3196
+ const n = "swiper-pagination";
3197
+ i({
3198
+ pagination: {
3199
+ el: null,
3200
+ bulletElement: "span",
3201
+ clickable: !1,
3202
+ hideOnClick: !1,
3203
+ renderBullet: null,
3204
+ renderProgressbar: null,
3205
+ renderFraction: null,
3206
+ renderCustom: null,
3207
+ progressbarOpposite: !1,
3208
+ type: "bullets",
3209
+ // 'bullets' or 'progressbar' or 'fraction' or 'custom'
3210
+ dynamicBullets: !1,
3211
+ dynamicMainBullets: 1,
3212
+ formatFractionCurrent: (p) => p,
3213
+ formatFractionTotal: (p) => p,
3214
+ bulletClass: `${n}-bullet`,
3215
+ bulletActiveClass: `${n}-bullet-active`,
3216
+ modifierClass: `${n}-`,
3217
+ currentClass: `${n}-current`,
3218
+ totalClass: `${n}-total`,
3219
+ hiddenClass: `${n}-hidden`,
3220
+ progressbarFillClass: `${n}-progressbar-fill`,
3221
+ progressbarOppositeClass: `${n}-progressbar-opposite`,
3222
+ clickableClass: `${n}-clickable`,
3223
+ lockClass: `${n}-lock`,
3224
+ horizontalClass: `${n}-horizontal`,
3225
+ verticalClass: `${n}-vertical`,
3226
+ paginationDisabledClass: `${n}-disabled`
3227
+ }
3228
+ }), e.pagination = {
3229
+ el: null,
3230
+ bullets: []
3231
+ };
3232
+ let d, o = 0;
3233
+ function c() {
3234
+ return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
3235
+ }
3236
+ function f(p, h) {
3237
+ const {
3238
+ bulletActiveClass: E
3239
+ } = e.params.pagination;
3240
+ p && (p = p[`${h === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${E}-${h}`), p = p[`${h === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${E}-${h}-${h}`)));
3241
+ }
3242
+ function u(p, h, E) {
3243
+ if (p = p % E, h = h % E, h === p + 1)
3244
+ return "next";
3245
+ if (h === p - 1)
3246
+ return "previous";
3247
+ }
3248
+ function m(p) {
3249
+ const h = p.target.closest(ge(e.params.pagination.bulletClass));
3250
+ if (!h)
3251
+ return;
3252
+ p.preventDefault();
3253
+ const E = Pe(h) * e.params.slidesPerGroup;
3254
+ if (e.params.loop) {
3255
+ if (e.realIndex === E) return;
3256
+ const b = u(e.realIndex, E, e.slides.length);
3257
+ b === "next" ? e.slideNext() : b === "previous" ? e.slidePrev() : e.slideToLoop(E);
3258
+ } else
3259
+ e.slideTo(E);
3260
+ }
3261
+ function v() {
3262
+ const p = e.rtl, h = e.params.pagination;
3263
+ if (c()) return;
3264
+ let E = e.pagination.el;
3265
+ E = W(E);
3266
+ let b, L;
3267
+ const I = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, z = e.params.loop ? Math.ceil(I / e.params.slidesPerGroup) : e.snapGrid.length;
3268
+ if (e.params.loop ? (L = e.previousRealIndex || 0, b = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (b = e.snapIndex, L = e.previousSnapIndex) : (L = e.previousIndex || 0, b = e.activeIndex || 0), h.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
3269
+ const y = e.pagination.bullets;
3270
+ let T, P, O;
3271
+ if (h.dynamicBullets && (d = He(y[0], e.isHorizontal() ? "width" : "height"), E.forEach((D) => {
3272
+ D.style[e.isHorizontal() ? "width" : "height"] = `${d * (h.dynamicMainBullets + 4)}px`;
3273
+ }), h.dynamicMainBullets > 1 && L !== void 0 && (o += b - (L || 0), o > h.dynamicMainBullets - 1 ? o = h.dynamicMainBullets - 1 : o < 0 && (o = 0)), T = Math.max(b - o, 0), P = T + (Math.min(y.length, h.dynamicMainBullets) - 1), O = (P + T) / 2), y.forEach((D) => {
3274
+ const $ = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((_) => `${h.bulletActiveClass}${_}`)].map((_) => typeof _ == "string" && _.includes(" ") ? _.split(" ") : _).flat();
3275
+ D.classList.remove(...$);
3276
+ }), E.length > 1)
3277
+ y.forEach((D) => {
3278
+ const $ = Pe(D);
3279
+ $ === b ? D.classList.add(...h.bulletActiveClass.split(" ")) : e.isElement && D.setAttribute("part", "bullet"), h.dynamicBullets && ($ >= T && $ <= P && D.classList.add(...`${h.bulletActiveClass}-main`.split(" ")), $ === T && f(D, "prev"), $ === P && f(D, "next"));
3280
+ });
3281
+ else {
3282
+ const D = y[b];
3283
+ if (D && D.classList.add(...h.bulletActiveClass.split(" ")), e.isElement && y.forEach(($, _) => {
3284
+ $.setAttribute("part", _ === b ? "bullet-active" : "bullet");
3285
+ }), h.dynamicBullets) {
3286
+ const $ = y[T], _ = y[P];
3287
+ for (let A = T; A <= P; A += 1)
3288
+ y[A] && y[A].classList.add(...`${h.bulletActiveClass}-main`.split(" "));
3289
+ f($, "prev"), f(_, "next");
3290
+ }
3291
+ }
3292
+ if (h.dynamicBullets) {
3293
+ const D = Math.min(y.length, h.dynamicMainBullets + 4), $ = (d * D - d) / 2 - O * d, _ = p ? "right" : "left";
3294
+ y.forEach((A) => {
3295
+ A.style[e.isHorizontal() ? _ : "top"] = `${$}px`;
3296
+ });
3297
+ }
3298
+ }
3299
+ E.forEach((y, T) => {
3300
+ if (h.type === "fraction" && (y.querySelectorAll(ge(h.currentClass)).forEach((P) => {
3301
+ P.textContent = h.formatFractionCurrent(b + 1);
3302
+ }), y.querySelectorAll(ge(h.totalClass)).forEach((P) => {
3303
+ P.textContent = h.formatFractionTotal(z);
3304
+ })), h.type === "progressbar") {
3305
+ let P;
3306
+ h.progressbarOpposite ? P = e.isHorizontal() ? "vertical" : "horizontal" : P = e.isHorizontal() ? "horizontal" : "vertical";
3307
+ const O = (b + 1) / z;
3308
+ let D = 1, $ = 1;
3309
+ P === "horizontal" ? D = O : $ = O, y.querySelectorAll(ge(h.progressbarFillClass)).forEach((_) => {
3310
+ _.style.transform = `translate3d(0,0,0) scaleX(${D}) scaleY(${$})`, _.style.transitionDuration = `${e.params.speed}ms`;
3311
+ });
3312
+ }
3313
+ h.type === "custom" && h.renderCustom ? (y.innerHTML = h.renderCustom(e, b + 1, z), T === 0 && r("paginationRender", y)) : (T === 0 && r("paginationRender", y), r("paginationUpdate", y)), e.params.watchOverflow && e.enabled && y.classList[e.isLocked ? "add" : "remove"](h.lockClass);
3314
+ });
3315
+ }
3316
+ function w() {
3317
+ const p = e.params.pagination;
3318
+ if (c()) return;
3319
+ const h = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
3320
+ let E = e.pagination.el;
3321
+ E = W(E);
3322
+ let b = "";
3323
+ if (p.type === "bullets") {
3324
+ let L = e.params.loop ? Math.ceil(h / e.params.slidesPerGroup) : e.snapGrid.length;
3325
+ e.params.freeMode && e.params.freeMode.enabled && L > h && (L = h);
3326
+ for (let I = 0; I < L; I += 1)
3327
+ p.renderBullet ? b += p.renderBullet.call(e, I, p.bulletClass) : b += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
3328
+ }
3329
+ p.type === "fraction" && (p.renderFraction ? b = p.renderFraction.call(e, p.currentClass, p.totalClass) : b = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? b = p.renderProgressbar.call(e, p.progressbarFillClass) : b = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [], E.forEach((L) => {
3330
+ p.type !== "custom" && (L.innerHTML = b || ""), p.type === "bullets" && e.pagination.bullets.push(...L.querySelectorAll(ge(p.bulletClass)));
3331
+ }), p.type !== "custom" && r("paginationRender", E[0]);
3332
+ }
3333
+ function a() {
3334
+ e.params.pagination = St(e, e.originalParams.pagination, e.params.pagination, {
3335
+ el: "swiper-pagination"
3336
+ });
3337
+ const p = e.params.pagination;
3338
+ if (!p.el) return;
3339
+ let h;
3340
+ typeof p.el == "string" && e.isElement && (h = e.el.querySelector(p.el)), !h && typeof p.el == "string" && (h = [...document.querySelectorAll(p.el)]), h || (h = p.el), !(!h || h.length === 0) && (e.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(h) && h.length > 1 && (h = [...e.el.querySelectorAll(p.el)], h.length > 1 && (h = h.find((E) => re(E, ".swiper")[0] === e.el))), Array.isArray(h) && h.length === 1 && (h = h[0]), Object.assign(e.pagination, {
3341
+ el: h
3342
+ }), h = W(h), h.forEach((E) => {
3343
+ p.type === "bullets" && p.clickable && E.classList.add(...(p.clickableClass || "").split(" ")), E.classList.add(p.modifierClass + p.type), E.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (E.classList.add(`${p.modifierClass}${p.type}-dynamic`), o = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && E.classList.add(p.progressbarOppositeClass), p.clickable && E.addEventListener("click", m), e.enabled || E.classList.add(p.lockClass);
3344
+ }));
3345
+ }
3346
+ function l() {
3347
+ const p = e.params.pagination;
3348
+ if (c()) return;
3349
+ let h = e.pagination.el;
3350
+ h && (h = W(h), h.forEach((E) => {
3351
+ E.classList.remove(p.hiddenClass), E.classList.remove(p.modifierClass + p.type), E.classList.remove(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (E.classList.remove(...(p.clickableClass || "").split(" ")), E.removeEventListener("click", m));
3352
+ })), e.pagination.bullets && e.pagination.bullets.forEach((E) => E.classList.remove(...p.bulletActiveClass.split(" ")));
3353
+ }
3354
+ s("changeDirection", () => {
3355
+ if (!e.pagination || !e.pagination.el) return;
3356
+ const p = e.params.pagination;
3357
+ let {
3358
+ el: h
3359
+ } = e.pagination;
3360
+ h = W(h), h.forEach((E) => {
3361
+ E.classList.remove(p.horizontalClass, p.verticalClass), E.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
3362
+ });
3363
+ }), s("init", () => {
3364
+ e.params.pagination.enabled === !1 ? g() : (a(), w(), v());
3365
+ }), s("activeIndexChange", () => {
3366
+ typeof e.snapIndex > "u" && v();
3367
+ }), s("snapIndexChange", () => {
3368
+ v();
3369
+ }), s("snapGridLengthChange", () => {
3370
+ w(), v();
3371
+ }), s("destroy", () => {
3372
+ l();
3373
+ }), s("enable disable", () => {
3374
+ let {
3375
+ el: p
3376
+ } = e.pagination;
3377
+ p && (p = W(p), p.forEach((h) => h.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3378
+ }), s("lock unlock", () => {
3379
+ v();
3380
+ }), s("click", (p, h) => {
3381
+ const E = h.target, b = W(e.pagination.el);
3382
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && b && b.length > 0 && !E.classList.contains(e.params.pagination.bulletClass)) {
3383
+ if (e.navigation && (e.navigation.nextEl && E === e.navigation.nextEl || e.navigation.prevEl && E === e.navigation.prevEl)) return;
3384
+ const L = b[0].classList.contains(e.params.pagination.hiddenClass);
3385
+ r(L === !0 ? "paginationShow" : "paginationHide"), b.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
3386
+ }
3387
+ });
3388
+ const S = () => {
3389
+ e.el.classList.remove(e.params.pagination.paginationDisabledClass);
3390
+ let {
3391
+ el: p
3392
+ } = e.pagination;
3393
+ p && (p = W(p), p.forEach((h) => h.classList.remove(e.params.pagination.paginationDisabledClass))), a(), w(), v();
3394
+ }, g = () => {
3395
+ e.el.classList.add(e.params.pagination.paginationDisabledClass);
3396
+ let {
3397
+ el: p
3398
+ } = e.pagination;
3399
+ p && (p = W(p), p.forEach((h) => h.classList.add(e.params.pagination.paginationDisabledClass))), l();
3400
+ };
3401
+ Object.assign(e.pagination, {
3402
+ enable: S,
3403
+ disable: g,
3404
+ render: w,
3405
+ update: v,
3406
+ init: a,
3407
+ destroy: l
3408
+ });
3409
+ }
3410
+ function es(t) {
3411
+ let {
3412
+ swiper: e,
3413
+ extendParams: i,
3414
+ on: s,
3415
+ emit: r
3416
+ } = t;
3417
+ const n = k();
3418
+ i({
3419
+ zoom: {
3420
+ enabled: !1,
3421
+ limitToOriginalSize: !1,
3422
+ maxRatio: 3,
3423
+ minRatio: 1,
3424
+ panOnMouseMove: !1,
3425
+ toggle: !0,
3426
+ containerClass: "swiper-zoom-container",
3427
+ zoomedSlideClass: "swiper-slide-zoomed"
3428
+ }
3429
+ }), e.zoom = {
3430
+ enabled: !1
3431
+ };
3432
+ let d = 1, o = !1, c = !1, f = {
3433
+ x: 0,
3434
+ y: 0
3435
+ };
3436
+ const u = -3;
3437
+ let m, v;
3438
+ const w = [], a = {
3439
+ originX: 0,
3440
+ originY: 0,
3441
+ slideEl: void 0,
3442
+ slideWidth: void 0,
3443
+ slideHeight: void 0,
3444
+ imageEl: void 0,
3445
+ imageWrapEl: void 0,
3446
+ maxRatio: 3
3447
+ }, l = {
3448
+ isTouched: void 0,
3449
+ isMoved: void 0,
3450
+ currentX: void 0,
3451
+ currentY: void 0,
3452
+ minX: void 0,
3453
+ minY: void 0,
3454
+ maxX: void 0,
3455
+ maxY: void 0,
3456
+ width: void 0,
3457
+ height: void 0,
3458
+ startX: void 0,
3459
+ startY: void 0,
3460
+ touchesStart: {},
3461
+ touchesCurrent: {}
3462
+ }, S = {
3463
+ x: void 0,
3464
+ y: void 0,
3465
+ prevPositionX: void 0,
3466
+ prevPositionY: void 0,
3467
+ prevTime: void 0
3468
+ };
3469
+ let g = 1;
3470
+ Object.defineProperty(e.zoom, "scale", {
3471
+ get() {
3472
+ return g;
3473
+ },
3474
+ set(C) {
3475
+ if (g !== C) {
3476
+ const x = a.imageEl, M = a.slideEl;
3477
+ r("zoomChange", C, x, M);
3478
+ }
3479
+ g = C;
3480
+ }
3481
+ });
3482
+ function p() {
3483
+ if (w.length < 2) return 1;
3484
+ const C = w[0].pageX, x = w[0].pageY, M = w[1].pageX, B = w[1].pageY;
3485
+ return Math.sqrt((M - C) ** 2 + (B - x) ** 2);
3486
+ }
3487
+ function h() {
3488
+ const C = e.params.zoom, x = a.imageWrapEl.getAttribute("data-swiper-zoom") || C.maxRatio;
3489
+ if (C.limitToOriginalSize && a.imageEl && a.imageEl.naturalWidth) {
3490
+ const M = a.imageEl.naturalWidth / a.imageEl.offsetWidth;
3491
+ return Math.min(M, x);
3492
+ }
3493
+ return x;
3494
+ }
3495
+ function E() {
3496
+ if (w.length < 2) return {
3497
+ x: null,
3498
+ y: null
3499
+ };
3500
+ const C = a.imageEl.getBoundingClientRect();
3501
+ return [(w[0].pageX + (w[1].pageX - w[0].pageX) / 2 - C.x - n.scrollX) / d, (w[0].pageY + (w[1].pageY - w[0].pageY) / 2 - C.y - n.scrollY) / d];
3502
+ }
3503
+ function b() {
3504
+ return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
3505
+ }
3506
+ function L(C) {
3507
+ const x = b();
3508
+ return !!(C.target.matches(x) || e.slides.filter((M) => M.contains(C.target)).length > 0);
3509
+ }
3510
+ function I(C) {
3511
+ const x = `.${e.params.zoom.containerClass}`;
3512
+ return !!(C.target.matches(x) || [...e.hostEl.querySelectorAll(x)].filter((M) => M.contains(C.target)).length > 0);
3513
+ }
3514
+ function z(C) {
3515
+ if (C.pointerType === "mouse" && w.splice(0, w.length), !L(C)) return;
3516
+ const x = e.params.zoom;
3517
+ if (m = !1, v = !1, w.push(C), !(w.length < 2)) {
3518
+ if (m = !0, a.scaleStart = p(), !a.slideEl) {
3519
+ a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`), a.slideEl || (a.slideEl = e.slides[e.activeIndex]);
3520
+ let M = a.slideEl.querySelector(`.${x.containerClass}`);
3521
+ if (M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = re(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0, !a.imageWrapEl) {
3522
+ a.imageEl = void 0;
3523
+ return;
3524
+ }
3525
+ a.maxRatio = h();
3526
+ }
3527
+ if (a.imageEl) {
3528
+ const [M, B] = E();
3529
+ a.originX = M, a.originY = B, a.imageEl.style.transitionDuration = "0ms";
3530
+ }
3531
+ o = !0;
3532
+ }
3533
+ }
3534
+ function y(C) {
3535
+ if (!L(C)) return;
3536
+ const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
3537
+ B >= 0 && (w[B] = C), !(w.length < 2) && (v = !0, a.scaleMove = p(), a.imageEl && (M.scale = a.scaleMove / a.scaleStart * d, M.scale > a.maxRatio && (M.scale = a.maxRatio - 1 + (M.scale - a.maxRatio + 1) ** 0.5), M.scale < x.minRatio && (M.scale = x.minRatio + 1 - (x.minRatio - M.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`));
3538
+ }
3539
+ function T(C) {
3540
+ if (!L(C) || C.pointerType === "mouse" && C.type === "pointerout") return;
3541
+ const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
3542
+ B >= 0 && w.splice(B, 1), !(!m || !v) && (m = !1, v = !1, a.imageEl && (M.scale = Math.max(Math.min(M.scale, a.maxRatio), x.minRatio), a.imageEl.style.transitionDuration = `${e.params.speed}ms`, a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`, d = M.scale, o = !1, M.scale > 1 && a.slideEl ? a.slideEl.classList.add(`${x.zoomedSlideClass}`) : M.scale <= 1 && a.slideEl && a.slideEl.classList.remove(`${x.zoomedSlideClass}`), M.scale === 1 && (a.originX = 0, a.originY = 0, a.slideEl = void 0)));
3543
+ }
3544
+ let P;
3545
+ function O() {
3546
+ e.touchEventsData.preventTouchMoveFromPointerMove = !1;
3547
+ }
3548
+ function D() {
3549
+ clearTimeout(P), e.touchEventsData.preventTouchMoveFromPointerMove = !0, P = setTimeout(() => {
3550
+ e.destroyed || O();
3551
+ });
3552
+ }
3553
+ function $(C) {
3554
+ const x = e.device;
3555
+ if (!a.imageEl || l.isTouched) return;
3556
+ x.android && C.cancelable && C.preventDefault(), l.isTouched = !0;
3557
+ const M = w.length > 0 ? w[0] : C;
3558
+ l.touchesStart.x = M.pageX, l.touchesStart.y = M.pageY;
3559
+ }
3560
+ function _(C) {
3561
+ const M = C.pointerType === "mouse" && e.params.zoom.panOnMouseMove;
3562
+ if (!L(C) || !I(C))
3563
+ return;
3564
+ const B = e.zoom;
3565
+ if (!a.imageEl)
3566
+ return;
3567
+ if (!l.isTouched || !a.slideEl) {
3568
+ M && X(C);
3569
+ return;
3570
+ }
3571
+ if (M) {
3572
+ X(C);
3573
+ return;
3574
+ }
3575
+ l.isMoved || (l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, l.startX = We(a.imageWrapEl, "x") || 0, l.startY = We(a.imageWrapEl, "y") || 0, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight, a.imageWrapEl.style.transitionDuration = "0ms");
3576
+ const N = l.width * B.scale, te = l.height * B.scale;
3577
+ if (l.minX = Math.min(a.slideWidth / 2 - N / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = !1), !l.isMoved && !o) {
3578
+ if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
3579
+ l.isTouched = !1, O();
3580
+ return;
3581
+ }
3582
+ if (!e.isHorizontal() && (Math.floor(l.minY) === Math.floor(l.startY) && l.touchesCurrent.y < l.touchesStart.y || Math.floor(l.maxY) === Math.floor(l.startY) && l.touchesCurrent.y > l.touchesStart.y)) {
3583
+ l.isTouched = !1, O();
3584
+ return;
3585
+ }
3586
+ }
3587
+ C.cancelable && C.preventDefault(), C.stopPropagation(), D(), l.isMoved = !0;
3588
+ const J = (B.scale - d) / (a.maxRatio - e.params.zoom.minRatio), {
3589
+ originX: se,
3590
+ originY: F
3591
+ } = a;
3592
+ l.currentX = l.touchesCurrent.x - l.touchesStart.x + l.startX + J * (l.width - se * 2), l.currentY = l.touchesCurrent.y - l.touchesStart.y + l.startY + J * (l.height - F * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), S.prevPositionX || (S.prevPositionX = l.touchesCurrent.x), S.prevPositionY || (S.prevPositionY = l.touchesCurrent.y), S.prevTime || (S.prevTime = Date.now()), S.x = (l.touchesCurrent.x - S.prevPositionX) / (Date.now() - S.prevTime) / 2, S.y = (l.touchesCurrent.y - S.prevPositionY) / (Date.now() - S.prevTime) / 2, Math.abs(l.touchesCurrent.x - S.prevPositionX) < 2 && (S.x = 0), Math.abs(l.touchesCurrent.y - S.prevPositionY) < 2 && (S.y = 0), S.prevPositionX = l.touchesCurrent.x, S.prevPositionY = l.touchesCurrent.y, S.prevTime = Date.now(), a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
3593
+ }
3594
+ function A() {
3595
+ const C = e.zoom;
3596
+ if (w.length = 0, !a.imageEl) return;
3597
+ if (!l.isTouched || !l.isMoved) {
3598
+ l.isTouched = !1, l.isMoved = !1;
3599
+ return;
3600
+ }
3601
+ l.isTouched = !1, l.isMoved = !1;
3602
+ let x = 300, M = 300;
3603
+ const B = S.x * x, N = l.currentX + B, te = S.y * M, ie = l.currentY + te;
3604
+ S.x !== 0 && (x = Math.abs((N - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
3605
+ const J = Math.max(x, M);
3606
+ l.currentX = N, l.currentY = ie;
3607
+ const se = l.width * C.scale, F = l.height * C.scale;
3608
+ l.minX = Math.min(a.slideWidth / 2 - se / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - F / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), a.imageWrapEl.style.transitionDuration = `${J}ms`, a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
3609
+ }
3610
+ function Y() {
3611
+ const C = e.zoom;
3612
+ a.slideEl && e.activeIndex !== e.slides.indexOf(a.slideEl) && (a.imageEl && (a.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), a.imageWrapEl && (a.imageWrapEl.style.transform = "translate3d(0,0,0)"), a.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), C.scale = 1, d = 1, a.slideEl = void 0, a.imageEl = void 0, a.imageWrapEl = void 0, a.originX = 0, a.originY = 0);
3613
+ }
3614
+ function X(C) {
3615
+ if (d <= 1 || !a.imageWrapEl || !L(C) || !I(C)) return;
3616
+ const x = n.getComputedStyle(a.imageWrapEl).transform, M = new n.DOMMatrix(x);
3617
+ if (!c) {
3618
+ c = !0, f.x = C.clientX, f.y = C.clientY, l.startX = M.e, l.startY = M.f, l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight;
3619
+ return;
3620
+ }
3621
+ const B = (C.clientX - f.x) * u, N = (C.clientY - f.y) * u, te = l.width * d, ie = l.height * d, J = a.slideWidth, se = a.slideHeight, F = Math.min(J / 2 - te / 2, 0), U = -F, pe = Math.min(se / 2 - ie / 2, 0), Ee = -pe, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + N, Ee), pe);
3622
+ a.imageWrapEl.style.transitionDuration = "0ms", a.imageWrapEl.style.transform = `translate3d(${le}px, ${oe}px, 0)`, f.x = C.clientX, f.y = C.clientY, l.startX = le, l.startY = oe, l.currentX = le, l.currentY = oe;
3623
+ }
3624
+ function G(C) {
3625
+ const x = e.zoom, M = e.params.zoom;
3626
+ if (!a.slideEl) {
3627
+ C && C.target && (a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`)), a.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex]);
3628
+ let me = a.slideEl.querySelector(`.${M.containerClass}`);
3629
+ me && (me = me.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = me, me ? a.imageWrapEl = re(a.imageEl, `.${M.containerClass}`)[0] : a.imageWrapEl = void 0;
3630
+ }
3631
+ if (!a.imageEl || !a.imageWrapEl) return;
3632
+ e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), a.slideEl.classList.add(`${M.zoomedSlideClass}`);
3633
+ let B, N, te, ie, J, se, F, U, pe, Ee, le, oe, be, xe, ze, Ie, Oe, Ae;
3634
+ typeof l.touchesStart.x > "u" && C ? (B = C.pageX, N = C.pageY) : (B = l.touchesStart.x, N = l.touchesStart.y);
3635
+ const De = d, de = typeof C == "number" ? C : null;
3636
+ d === 1 && de && (B = void 0, N = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
3637
+ const Ue = h();
3638
+ x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (Oe = a.slideEl.offsetWidth, Ae = a.slideEl.offsetHeight, te = ke(a.slideEl).left + n.scrollX, ie = ke(a.slideEl).top + n.scrollY, J = te + Oe / 2 - B, se = ie + Ae / 2 - N, pe = a.imageEl.offsetWidth || a.imageEl.clientWidth, Ee = a.imageEl.offsetHeight || a.imageEl.clientHeight, le = pe * x.scale, oe = Ee * x.scale, be = Math.min(Oe / 2 - le / 2, 0), xe = Math.min(Ae / 2 - oe / 2, 0), ze = -be, Ie = -xe, De > 0 && de && typeof l.currentX == "number" && typeof l.currentY == "number" ? (F = l.currentX * x.scale / De, U = l.currentY * x.scale / De) : (F = J * x.scale, U = se * x.scale), F < be && (F = be), F > ze && (F = ze), U < xe && (U = xe), U > Ie && (U = Ie)) : (F = 0, U = 0), de && x.scale === 1 && (a.originX = 0, a.originY = 0), l.currentX = F, l.currentY = U, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`;
3639
+ }
3640
+ function H() {
3641
+ const C = e.zoom, x = e.params.zoom;
3642
+ if (!a.slideEl) {
3643
+ e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex];
3644
+ let M = a.slideEl.querySelector(`.${x.containerClass}`);
3645
+ M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = re(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0;
3646
+ }
3647
+ !a.imageEl || !a.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), C.scale = 1, d = 1, l.currentX = void 0, l.currentY = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = "translate3d(0,0,0)", a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = "translate3d(0,0,0) scale(1)", a.slideEl.classList.remove(`${x.zoomedSlideClass}`), a.slideEl = void 0, a.originX = 0, a.originY = 0, e.params.zoom.panOnMouseMove && (f = {
3648
+ x: 0,
3649
+ y: 0
3650
+ }, c && (c = !1, l.startX = 0, l.startY = 0)));
3651
+ }
3652
+ function K(C) {
3653
+ const x = e.zoom;
3654
+ x.scale && x.scale !== 1 ? H() : G(C);
3655
+ }
3656
+ function ee() {
3657
+ const C = e.params.passiveListeners ? {
3658
+ passive: !0,
3659
+ capture: !1
3660
+ } : !1, x = e.params.passiveListeners ? {
3661
+ passive: !1,
3662
+ capture: !0
3663
+ } : !0;
3664
+ return {
3665
+ passiveListener: C,
3666
+ activeListenerWithCapture: x
3667
+ };
3668
+ }
3669
+ function ue() {
3670
+ const C = e.zoom;
3671
+ if (C.enabled) return;
3672
+ C.enabled = !0;
3673
+ const {
3674
+ passiveListener: x,
3675
+ activeListenerWithCapture: M
3676
+ } = ee();
3677
+ e.wrapperEl.addEventListener("pointerdown", z, x), e.wrapperEl.addEventListener("pointermove", y, M), ["pointerup", "pointercancel", "pointerout"].forEach((B) => {
3678
+ e.wrapperEl.addEventListener(B, T, x);
3679
+ }), e.wrapperEl.addEventListener("pointermove", _, M);
3680
+ }
3681
+ function Se() {
3682
+ const C = e.zoom;
3683
+ if (!C.enabled) return;
3684
+ C.enabled = !1;
3685
+ const {
3686
+ passiveListener: x,
3687
+ activeListenerWithCapture: M
3688
+ } = ee();
3689
+ e.wrapperEl.removeEventListener("pointerdown", z, x), e.wrapperEl.removeEventListener("pointermove", y, M), ["pointerup", "pointercancel", "pointerout"].forEach((B) => {
3690
+ e.wrapperEl.removeEventListener(B, T, x);
3691
+ }), e.wrapperEl.removeEventListener("pointermove", _, M);
3692
+ }
3693
+ s("init", () => {
3694
+ e.params.zoom.enabled && ue();
3695
+ }), s("destroy", () => {
3696
+ Se();
3697
+ }), s("touchStart", (C, x) => {
3698
+ e.zoom.enabled && $(x);
3699
+ }), s("touchEnd", (C, x) => {
3700
+ e.zoom.enabled && A();
3701
+ }), s("doubleTap", (C, x) => {
3702
+ !e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && K(x);
3703
+ }), s("transitionEnd", () => {
3704
+ e.zoom.enabled && e.params.zoom.enabled && Y();
3705
+ }), s("slideChange", () => {
3706
+ e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && Y();
3707
+ }), Object.assign(e.zoom, {
3708
+ enable: ue,
3709
+ disable: Se,
3710
+ in: G,
3711
+ out: H,
3712
+ toggle: K
3713
+ });
3714
+ }
3715
+ const rs = (t) => {
3716
+ const e = Et.c(26), {
3717
+ className: i,
3718
+ children: s,
3719
+ height: r,
3720
+ forceKeyboardNavigation: n
3721
+ } = t, d = n === void 0 ? !1 : n, o = V.useRef(null), [c, f] = V.useState(!1);
3722
+ let u;
3723
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
3724
+ var y, T;
3725
+ document.fullscreenElement ? (y = o.current) == null || y.swiper.keyboard.enable() : (T = o.current) == null || T.swiper.keyboard.disable(), f(!!document.fullscreenElement);
3726
+ }, e[0] = u) : u = e[0], bt(document, "fullscreenchange", u);
3727
+ let m;
3728
+ e[1] !== c ? (m = [c], e[1] = c, e[2] = m) : m = e[2], R.useEffect(is, m);
3729
+ let v;
3730
+ e[3] !== i ? (v = Ke("relative w-full border rounded bg-background mo-slides-theme prose-slides", i), e[3] = i, e[4] = v) : v = e[4];
3731
+ const w = c ? "100%" : r || "550px";
3732
+ let a;
3733
+ e[5] !== w ? (a = {
3734
+ height: w
3735
+ }, e[5] = w, e[6] = a) : a = e[6];
3736
+ let l, S;
3737
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (l = [Ki, Zi, Qi, es, Ji], S = {
3738
+ maxRatio: 5
3739
+ }, e[7] = l, e[8] = S) : (l = e[7], S = e[8]);
3740
+ const g = c || d;
3741
+ let p;
3742
+ e[9] !== g ? (p = {
3743
+ enabled: g
3744
+ }, e[9] = g, e[10] = p) : p = e[10];
3745
+ let h;
3746
+ e[11] === Symbol.for("react.memo_cache_sentinel") ? (h = {
3747
+ clickable: !0
3748
+ }, e[11] = h) : h = e[11];
3749
+ let E;
3750
+ if (e[12] !== s || e[13] !== c) {
3751
+ let y;
3752
+ e[15] !== c ? (y = (T, P) => T == null ? null : /* @__PURE__ */ he.jsx(wt, { children: /* @__PURE__ */ he.jsx("div", { onKeyDown: ss, className: Ke("h-full w-full flex box-border overflow-y-auto overflow-x-hidden", c ? "p-20" : "p-6"), children: /* @__PURE__ */ he.jsx("div", { className: "m-auto max-w-full", children: T }) }) }, P), e[15] = c, e[16] = y) : y = e[16], E = V.Children.map(s, y), e[12] = s, e[13] = c, e[14] = E;
3753
+ } else
3754
+ E = e[14];
3755
+ let b;
3756
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (b = async () => {
3757
+ if (!o.current)
3758
+ return;
3759
+ const y = o.current;
3760
+ document.fullscreenElement ? (await document.exitFullscreen(), f(!1)) : (await y.requestFullscreen(), f(!0));
3761
+ }, e[17] = b) : b = e[17];
3762
+ const L = c ? "Exit Fullscreen" : "Fullscreen";
3763
+ let I;
3764
+ e[18] !== L ? (I = /* @__PURE__ */ he.jsx(xt, { variant: "link", size: "sm", "data-testid": "marimo-plugin-slides-fullscreen", onClick: b, className: "absolute bottom-0 right-0 z-10 mx-1 mb-0", children: L }), e[18] = L, e[19] = I) : I = e[19];
3765
+ let z;
3766
+ return e[20] !== p || e[21] !== E || e[22] !== I || e[23] !== v || e[24] !== a ? (z = /* @__PURE__ */ he.jsxs(vt, { ref: o, className: v, spaceBetween: 50, style: a, slidesPerView: 1, modules: l, zoom: S, simulateTouch: !1, keyboard: p, navigation: !0, pagination: h, virtual: !0, children: [
3767
+ E,
3768
+ I
3769
+ ] }), e[20] = p, e[21] = E, e[22] = I, e[23] = v, e[24] = a, e[25] = z) : z = e[25], z;
3770
+ };
3771
+ function ts() {
3772
+ window.dispatchEvent(new Event("resize"));
3773
+ }
3774
+ function is() {
3775
+ requestAnimationFrame(ts);
3776
+ }
3777
+ function ss(t) {
3778
+ t.target instanceof HTMLElement && t.target.tagName.toLocaleLowerCase().startsWith("marimo-") && t.stopPropagation();
3779
+ }
3780
+ export {
3781
+ rs as default
3782
+ };