@ed.yakovich/component-library 0.0.13 → 0.0.15

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 (86) hide show
  1. package/dist/components/InfoBanner/index.js +1 -1
  2. package/dist/index-44540db3-BN5vFHKr.js +44 -0
  3. package/dist/index-4d46d9ca-BtyZMEt1.js +12 -0
  4. package/dist/index-D9BZSjMp.js +21158 -0
  5. package/dist/{index-0d8e0844-BJzWsYCM.js → index-ba31999b-V1s4iffq.js} +2490 -2442
  6. package/dist/{index.esm-322571ff-D1REhsOg.js → index.esm-a7c99373-DUoLYEEM.js} +1 -1
  7. package/dist/main.js +1 -1
  8. package/dist/prism-accordion.entry-D4g7wdXB.js +51 -0
  9. package/dist/prism-avatar_3.entry-C1H9bg9y.js +335 -0
  10. package/dist/prism-badge.entry-CWLalQsR.js +56 -0
  11. package/dist/prism-banner.entry-D1sce4tY.js +105 -0
  12. package/dist/prism-breadcrumb.entry-C282yHQl.js +33 -0
  13. package/dist/prism-button_3.entry-DIg1AEXF.js +240 -0
  14. package/dist/prism-card.entry-DaxGD-uX.js +152 -0
  15. package/dist/prism-carousel.entry-BGmaoDVM.js +3346 -0
  16. package/dist/prism-checkbox-group.entry-Dwa_mvjd.js +62 -0
  17. package/dist/prism-checkbox.entry-CZvx2AHI.js +116 -0
  18. package/dist/prism-data-table.entry-DACAS8BE.js +3591 -0
  19. package/dist/prism-datepicker.entry-CHUyjilE.js +279 -0
  20. package/dist/prism-dialog.entry-DdO9Kt32.js +73 -0
  21. package/dist/prism-drawer.entry-Dn0rvW9U.js +43 -0
  22. package/dist/{prism-form.entry-BJl2ma6x.js → prism-form.entry-C8VzGp6c.js} +11 -11
  23. package/dist/prism-header.entry-D0PypuC3.js +227 -0
  24. package/dist/prism-hero.entry-DQ8G7Jb_.js +23 -0
  25. package/dist/prism-image.entry-tx9Pc3k_.js +38 -0
  26. package/dist/prism-input-file.entry-CO-2LZxG.js +119 -0
  27. package/dist/prism-input-otp.entry-ZAxExI2D.js +79 -0
  28. package/dist/prism-input-text.entry-EXsN4rgi.js +278 -0
  29. package/dist/prism-input-textarea.entry-CRqY4mr9.js +145 -0
  30. package/dist/prism-input-time.entry-BJ9he6MX.js +85 -0
  31. package/dist/prism-layout.entry-ulDWjtj8.js +20 -0
  32. package/dist/prism-lineitem.entry-DJk6X6mR.js +47 -0
  33. package/dist/prism-modal.entry-C795YZic.js +95 -0
  34. package/dist/prism-pagination.entry-DYQieAu3.js +69 -0
  35. package/dist/prism-popover.entry-BgLcACZw.js +1114 -0
  36. package/dist/prism-progress.entry-Z21rpoTm.js +79 -0
  37. package/dist/prism-radio_2.entry-C0HPCb3G.js +159 -0
  38. package/dist/prism-select.entry-B_l-ab1d.js +286 -0
  39. package/dist/prism-switch.entry-OkC8X1bD.js +95 -0
  40. package/dist/prism-tab.entry-szftB_wL.js +20 -0
  41. package/dist/prism-tabs.entry-0UR3WF52.js +72 -0
  42. package/dist/prism-text.entry-BEAZ8xEV.js +28 -0
  43. package/dist/prism-treelist.entry-UX4FM4Bi.js +135 -0
  44. package/dist/prism-typeahead.entry-CwOiAFQE.js +1264 -0
  45. package/dist/purify-9647b094-0-ZyuBNz.js +572 -0
  46. package/package.json +2 -2
  47. package/dist/index-By9FNwDt.js +0 -29159
  48. package/dist/index-b30029d4-WVn-64c9.js +0 -12
  49. package/dist/index-e6818ded-r_t6ryaW.js +0 -57
  50. package/dist/prism-accordion.entry-Cx9R3pGR.js +0 -51
  51. package/dist/prism-avatar_2.entry-BYgG-lCw.js +0 -68
  52. package/dist/prism-badge.entry-7tkOjkOC.js +0 -58
  53. package/dist/prism-banner.entry-jfMhWTJ-.js +0 -82
  54. package/dist/prism-breadcrumb.entry-6BKiTFvg.js +0 -33
  55. package/dist/prism-button_2.entry-DnnPRWBp.js +0 -110
  56. package/dist/prism-card.entry-CkJQnJF8.js +0 -119
  57. package/dist/prism-carousel.entry-CjyHpSoz.js +0 -3111
  58. package/dist/prism-checkbox-group.entry-h68bFMNT.js +0 -62
  59. package/dist/prism-checkbox.entry-BnqA0ld6.js +0 -99
  60. package/dist/prism-data-table.entry-CRJbrNmp.js +0 -10475
  61. package/dist/prism-datepicker.entry-Xu0QUY2Q.js +0 -249
  62. package/dist/prism-grid.entry-DIdkZa73.js +0 -28
  63. package/dist/prism-header.entry-BZVXHBCx.js +0 -202
  64. package/dist/prism-hero.entry-D6vT9Cfs.js +0 -23
  65. package/dist/prism-icon_2.entry-u0DT931p.js +0 -118
  66. package/dist/prism-image.entry-Db2L08jh.js +0 -38
  67. package/dist/prism-input-file.entry-NMZff8Re.js +0 -119
  68. package/dist/prism-input-otp.entry-qFelMElv.js +0 -63
  69. package/dist/prism-input-text.entry-YbQ3NQuB.js +0 -228
  70. package/dist/prism-input-textarea.entry-Bz7ecyna.js +0 -140
  71. package/dist/prism-layout.entry-DVLlE1S8.js +0 -20
  72. package/dist/prism-lineitem.entry-BOUyDMlc.js +0 -44
  73. package/dist/prism-menu.entry-TqJabKKs.js +0 -231
  74. package/dist/prism-modal.entry-CiIsey_Y.js +0 -94
  75. package/dist/prism-pagination.entry-BZOMunz-.js +0 -60
  76. package/dist/prism-popover.entry-Bt1uXSV9.js +0 -1013
  77. package/dist/prism-popper.entry-Ck2qBmqM.js +0 -959
  78. package/dist/prism-progress.entry-DobqcGx4.js +0 -79
  79. package/dist/prism-radio-group.entry-DTVEUN2r.js +0 -66
  80. package/dist/prism-radio.entry-D0dGSQn2.js +0 -101
  81. package/dist/prism-select.entry-CRYklxK0.js +0 -230
  82. package/dist/prism-switch.entry-CINfgY_6.js +0 -95
  83. package/dist/prism-tab.entry-dV7AljQC.js +0 -20
  84. package/dist/prism-tabs.entry-DPc_2ypT.js +0 -70
  85. package/dist/prism-tooltip.entry-DZJ2tfFV.js +0 -52
  86. package/dist/prism-typeahead.entry-DDkmHo72.js +0 -1234
@@ -1,3111 +0,0 @@
1
- import { r as Te, h as $, H as Ee, g as Ce } from "./index-By9FNwDt.js";
2
- import { g as Me, a as pe } from "./index-e6818ded-r_t6ryaW.js";
3
- /*!
4
- * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
- */
6
- function ce(t) {
7
- return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
8
- }
9
- function oe(t, e) {
10
- t === void 0 && (t = {}), e === void 0 && (e = {}), Object.keys(e).forEach((i) => {
11
- typeof t[i] > "u" ? t[i] = e[i] : ce(e[i]) && ce(t[i]) && Object.keys(e[i]).length > 0 && oe(t[i], e[i]);
12
- });
13
- }
14
- const he = {
15
- body: {},
16
- addEventListener() {
17
- },
18
- removeEventListener() {
19
- },
20
- activeElement: {
21
- blur() {
22
- },
23
- nodeName: ""
24
- },
25
- querySelector() {
26
- return null;
27
- },
28
- querySelectorAll() {
29
- return [];
30
- },
31
- getElementById() {
32
- return null;
33
- },
34
- createEvent() {
35
- return {
36
- initEvent() {
37
- }
38
- };
39
- },
40
- createElement() {
41
- return {
42
- children: [],
43
- childNodes: [],
44
- style: {},
45
- setAttribute() {
46
- },
47
- getElementsByTagName() {
48
- return [];
49
- }
50
- };
51
- },
52
- createElementNS() {
53
- return {};
54
- },
55
- importNode() {
56
- return null;
57
- },
58
- location: {
59
- hash: "",
60
- host: "",
61
- hostname: "",
62
- href: "",
63
- origin: "",
64
- pathname: "",
65
- protocol: "",
66
- search: ""
67
- }
68
- };
69
- function _() {
70
- const t = typeof document < "u" ? document : {};
71
- return oe(t, he), t;
72
- }
73
- const Pe = {
74
- document: he,
75
- navigator: {
76
- userAgent: ""
77
- },
78
- location: {
79
- hash: "",
80
- host: "",
81
- hostname: "",
82
- href: "",
83
- origin: "",
84
- pathname: "",
85
- protocol: "",
86
- search: ""
87
- },
88
- history: {
89
- replaceState() {
90
- },
91
- pushState() {
92
- },
93
- go() {
94
- },
95
- back() {
96
- }
97
- },
98
- CustomEvent: function() {
99
- return this;
100
- },
101
- addEventListener() {
102
- },
103
- removeEventListener() {
104
- },
105
- getComputedStyle() {
106
- return {
107
- getPropertyValue() {
108
- return "";
109
- }
110
- };
111
- },
112
- Image() {
113
- },
114
- Date() {
115
- },
116
- screen: {},
117
- setTimeout() {
118
- },
119
- clearTimeout() {
120
- },
121
- matchMedia() {
122
- return {};
123
- },
124
- requestAnimationFrame(t) {
125
- return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
126
- },
127
- cancelAnimationFrame(t) {
128
- typeof setTimeout > "u" || clearTimeout(t);
129
- }
130
- };
131
- function G() {
132
- const t = typeof window < "u" ? window : {};
133
- return oe(t, Pe), t;
134
- }
135
- function Le(t) {
136
- const e = t;
137
- Object.keys(e).forEach((i) => {
138
- try {
139
- e[i] = null;
140
- } catch {
141
- }
142
- try {
143
- delete e[i];
144
- } catch {
145
- }
146
- });
147
- }
148
- function K(t, e) {
149
- return e === void 0 && (e = 0), setTimeout(t, e);
150
- }
151
- function Z() {
152
- return Date.now();
153
- }
154
- function ze(t) {
155
- const e = G();
156
- let i;
157
- return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
158
- }
159
- function ke(t, e) {
160
- e === void 0 && (e = "x");
161
- const i = G();
162
- let s, a, r;
163
- const o = ze(t);
164
- return i.WebKitCSSMatrix ? (a = o.transform || o.webkitTransform, a.split(",").length > 6 && (a = a.split(", ").map((l) => l.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(a === "none" ? "" : a)) : (r = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? a = r.m41 : s.length === 16 ? a = parseFloat(s[12]) : a = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? a = r.m42 : s.length === 16 ? a = parseFloat(s[13]) : a = parseFloat(s[5])), a || 0;
165
- }
166
- function X(t) {
167
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
168
- }
169
- function Ie(t) {
170
- return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
171
- }
172
- function F() {
173
- const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
174
- for (let i = 1; i < arguments.length; i += 1) {
175
- const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
176
- if (s != null && !Ie(s)) {
177
- const a = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
178
- for (let r = 0, o = a.length; r < o; r += 1) {
179
- const l = a[r], n = Object.getOwnPropertyDescriptor(s, l);
180
- n !== void 0 && n.enumerable && (X(t[l]) && X(s[l]) ? s[l].__swiper__ ? t[l] = s[l] : F(t[l], s[l]) : !X(t[l]) && X(s[l]) ? (t[l] = {}, s[l].__swiper__ ? t[l] = s[l] : F(t[l], s[l])) : t[l] = s[l]);
181
- }
182
- }
183
- }
184
- return t;
185
- }
186
- function Y(t, e, i) {
187
- t.style.setProperty(e, i);
188
- }
189
- function we(t) {
190
- let {
191
- swiper: e,
192
- targetPosition: i,
193
- side: s
194
- } = t;
195
- const a = G(), r = -e.translate;
196
- let o = null, l;
197
- const n = e.params.speed;
198
- e.wrapperEl.style.scrollSnapType = "none", a.cancelAnimationFrame(e.cssModeFrameID);
199
- const f = i > r ? "next" : "prev", g = (S, m) => f === "next" && S >= m || f === "prev" && S <= m, h = () => {
200
- l = (/* @__PURE__ */ new Date()).getTime(), o === null && (o = l);
201
- const S = Math.max(Math.min((l - o) / n, 1), 0), m = 0.5 - Math.cos(S * Math.PI) / 2;
202
- let b = r + m * (i - r);
203
- if (g(b, i) && (b = i), e.wrapperEl.scrollTo({
204
- [s]: b
205
- }), g(b, i)) {
206
- e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
207
- e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
208
- [s]: b
209
- });
210
- }), a.cancelAnimationFrame(e.cssModeFrameID);
211
- return;
212
- }
213
- e.cssModeFrameID = a.requestAnimationFrame(h);
214
- };
215
- h();
216
- }
217
- function R(t, e) {
218
- return e === void 0 && (e = ""), [...t.children].filter((i) => i.matches(e));
219
- }
220
- function J(t, e) {
221
- e === void 0 && (e = []);
222
- const i = document.createElement(t);
223
- return i.classList.add(...Array.isArray(e) ? e : [e]), i;
224
- }
225
- function Ae(t) {
226
- const e = G(), i = _(), s = t.getBoundingClientRect(), a = i.body, r = t.clientTop || a.clientTop || 0, o = t.clientLeft || a.clientLeft || 0, l = t === e ? e.scrollY : t.scrollTop, n = t === e ? e.scrollX : t.scrollLeft;
227
- return {
228
- top: s.top + l - r,
229
- left: s.left + n - o
230
- };
231
- }
232
- function Oe(t, e) {
233
- const i = [];
234
- for (; t.previousElementSibling; ) {
235
- const s = t.previousElementSibling;
236
- e ? s.matches(e) && i.push(s) : i.push(s), t = s;
237
- }
238
- return i;
239
- }
240
- function De(t, e) {
241
- const i = [];
242
- for (; t.nextElementSibling; ) {
243
- const s = t.nextElementSibling;
244
- e ? s.matches(e) && i.push(s) : i.push(s), t = s;
245
- }
246
- return i;
247
- }
248
- function q(t, e) {
249
- return G().getComputedStyle(t, null).getPropertyValue(e);
250
- }
251
- function W(t) {
252
- let e = t, i;
253
- if (e) {
254
- for (i = 0; (e = e.previousSibling) !== null; )
255
- e.nodeType === 1 && (i += 1);
256
- return i;
257
- }
258
- }
259
- function ve(t, e) {
260
- const i = [];
261
- let s = t.parentElement;
262
- for (; s; )
263
- e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
264
- return i;
265
- }
266
- function ne(t, e, i) {
267
- const s = G();
268
- 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"));
269
- }
270
- let ee;
271
- function Be() {
272
- const t = G(), e = _();
273
- return {
274
- smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
275
- touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
276
- };
277
- }
278
- function be() {
279
- return ee || (ee = Be()), ee;
280
- }
281
- let te;
282
- function $e(t) {
283
- let {
284
- userAgent: e
285
- } = t === void 0 ? {} : t;
286
- const i = be(), s = G(), a = s.navigator.platform, r = e || s.navigator.userAgent, o = {
287
- ios: !1,
288
- android: !1
289
- }, l = s.screen.width, n = s.screen.height, f = r.match(/(Android);?[\s\/]+([\d.]+)?/);
290
- let g = r.match(/(iPad).*OS\s([\d_]+)/);
291
- const h = r.match(/(iPod)(.*OS\s([\d_]+))?/), S = !g && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), m = a === "Win32";
292
- let b = a === "MacIntel";
293
- const u = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
294
- return !g && b && i.touch && u.indexOf(`${l}x${n}`) >= 0 && (g = r.match(/(Version)\/([\d.]+)/), g || (g = [0, 1, "13_0_0"]), b = !1), f && !m && (o.os = "android", o.android = !0), (g || S || h) && (o.os = "ios", o.ios = !0), o;
295
- }
296
- function Ge(t) {
297
- return t === void 0 && (t = {}), te || (te = $e(t)), te;
298
- }
299
- let ie;
300
- function Ve() {
301
- const t = G();
302
- let e = !1;
303
- function i() {
304
- const s = t.navigator.userAgent.toLowerCase();
305
- return s.indexOf("safari") >= 0 && s.indexOf("chrome") < 0 && s.indexOf("android") < 0;
306
- }
307
- if (i()) {
308
- const s = String(t.navigator.userAgent);
309
- if (s.includes("Version/")) {
310
- const [a, r] = s.split("Version/")[1].split(" ")[0].split(".").map((o) => Number(o));
311
- e = a < 16 || a === 16 && r < 2;
312
- }
313
- }
314
- return {
315
- isSafari: e || i(),
316
- needPerspectiveFix: e,
317
- isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)
318
- };
319
- }
320
- function Fe() {
321
- return ie || (ie = Ve()), ie;
322
- }
323
- function Ne(t) {
324
- let {
325
- swiper: e,
326
- on: i,
327
- emit: s
328
- } = t;
329
- const a = G();
330
- let r = null, o = null;
331
- const l = () => {
332
- !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
333
- }, n = () => {
334
- !e || e.destroyed || !e.initialized || (r = new ResizeObserver((h) => {
335
- o = a.requestAnimationFrame(() => {
336
- const {
337
- width: S,
338
- height: m
339
- } = e;
340
- let b = S, u = m;
341
- h.forEach((x) => {
342
- let {
343
- contentBoxSize: y,
344
- contentRect: d,
345
- target: p
346
- } = x;
347
- p && p !== e.el || (b = d ? d.width : (y[0] || y).inlineSize, u = d ? d.height : (y[0] || y).blockSize);
348
- }), (b !== S || u !== m) && l();
349
- });
350
- }), r.observe(e.el));
351
- }, f = () => {
352
- o && a.cancelAnimationFrame(o), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
353
- }, g = () => {
354
- !e || e.destroyed || !e.initialized || s("orientationchange");
355
- };
356
- i("init", () => {
357
- if (e.params.resizeObserver && typeof a.ResizeObserver < "u") {
358
- n();
359
- return;
360
- }
361
- a.addEventListener("resize", l), a.addEventListener("orientationchange", g);
362
- }), i("destroy", () => {
363
- f(), a.removeEventListener("resize", l), a.removeEventListener("orientationchange", g);
364
- });
365
- }
366
- function _e(t) {
367
- let {
368
- swiper: e,
369
- extendParams: i,
370
- on: s,
371
- emit: a
372
- } = t;
373
- const r = [], o = G(), l = function(g, h) {
374
- h === void 0 && (h = {});
375
- const S = o.MutationObserver || o.WebkitMutationObserver, m = new S((b) => {
376
- if (e.__preventObserver__) return;
377
- if (b.length === 1) {
378
- a("observerUpdate", b[0]);
379
- return;
380
- }
381
- const u = function() {
382
- a("observerUpdate", b[0]);
383
- };
384
- o.requestAnimationFrame ? o.requestAnimationFrame(u) : o.setTimeout(u, 0);
385
- });
386
- m.observe(g, {
387
- attributes: typeof h.attributes > "u" ? !0 : h.attributes,
388
- childList: typeof h.childList > "u" ? !0 : h.childList,
389
- characterData: typeof h.characterData > "u" ? !0 : h.characterData
390
- }), r.push(m);
391
- }, n = () => {
392
- if (e.params.observer) {
393
- if (e.params.observeParents) {
394
- const g = ve(e.hostEl);
395
- for (let h = 0; h < g.length; h += 1)
396
- l(g[h]);
397
- }
398
- l(e.hostEl, {
399
- childList: e.params.observeSlideChildren
400
- }), l(e.wrapperEl, {
401
- attributes: !1
402
- });
403
- }
404
- }, f = () => {
405
- r.forEach((g) => {
406
- g.disconnect();
407
- }), r.splice(0, r.length);
408
- };
409
- i({
410
- observer: !1,
411
- observeParents: !1,
412
- observeSlideChildren: !1
413
- }), s("init", n), s("destroy", f);
414
- }
415
- var He = {
416
- on(t, e, i) {
417
- const s = this;
418
- if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
419
- const a = i ? "unshift" : "push";
420
- return t.split(" ").forEach((r) => {
421
- s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][a](e);
422
- }), s;
423
- },
424
- once(t, e, i) {
425
- const s = this;
426
- if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
427
- function a() {
428
- s.off(t, a), a.__emitterProxy && delete a.__emitterProxy;
429
- for (var r = arguments.length, o = new Array(r), l = 0; l < r; l++)
430
- o[l] = arguments[l];
431
- e.apply(s, o);
432
- }
433
- return a.__emitterProxy = e, s.on(t, a, i);
434
- },
435
- onAny(t, e) {
436
- const i = this;
437
- if (!i.eventsListeners || i.destroyed || typeof t != "function") return i;
438
- const s = e ? "unshift" : "push";
439
- return i.eventsAnyListeners.indexOf(t) < 0 && i.eventsAnyListeners[s](t), i;
440
- },
441
- offAny(t) {
442
- const e = this;
443
- if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners) return e;
444
- const i = e.eventsAnyListeners.indexOf(t);
445
- return i >= 0 && e.eventsAnyListeners.splice(i, 1), e;
446
- },
447
- off(t, e) {
448
- const i = this;
449
- return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
450
- typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((a, r) => {
451
- (a === e || a.__emitterProxy && a.__emitterProxy === e) && i.eventsListeners[s].splice(r, 1);
452
- });
453
- }), i;
454
- },
455
- emit() {
456
- const t = this;
457
- if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
458
- let e, i, s;
459
- for (var a = arguments.length, r = new Array(a), o = 0; o < a; o++)
460
- r[o] = arguments[o];
461
- return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], i = r.slice(1, r.length), s = t) : (e = r[0].events, i = r[0].data, s = r[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((n) => {
462
- t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((f) => {
463
- f.apply(s, [n, ...i]);
464
- }), t.eventsListeners && t.eventsListeners[n] && t.eventsListeners[n].forEach((f) => {
465
- f.apply(s, i);
466
- });
467
- }), t;
468
- }
469
- };
470
- function Re() {
471
- const t = this;
472
- let e, i;
473
- const s = t.el;
474
- 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(q(s, "padding-left") || 0, 10) - parseInt(q(s, "padding-right") || 0, 10), i = i - parseInt(q(s, "padding-top") || 0, 10) - parseInt(q(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
475
- width: e,
476
- height: i,
477
- size: t.isHorizontal() ? e : i
478
- }));
479
- }
480
- function je() {
481
- const t = this;
482
- function e(C) {
483
- return t.isHorizontal() ? C : {
484
- width: "height",
485
- "margin-top": "margin-left",
486
- "margin-bottom ": "margin-right",
487
- "margin-left": "margin-top",
488
- "margin-right": "margin-bottom",
489
- "padding-left": "padding-top",
490
- "padding-right": "padding-bottom",
491
- marginRight: "marginBottom"
492
- }[C];
493
- }
494
- function i(C, T) {
495
- return parseFloat(C.getPropertyValue(e(T)) || 0);
496
- }
497
- const s = t.params, {
498
- wrapperEl: a,
499
- slidesEl: r,
500
- size: o,
501
- rtlTranslate: l,
502
- wrongRTL: n
503
- } = t, f = t.virtual && s.virtual.enabled, g = f ? t.virtual.slides.length : t.slides.length, h = R(r, `.${t.params.slideClass}, swiper-slide`), S = f ? t.virtual.slides.length : h.length;
504
- let m = [];
505
- const b = [], u = [];
506
- let x = s.slidesOffsetBefore;
507
- typeof x == "function" && (x = s.slidesOffsetBefore.call(t));
508
- let y = s.slidesOffsetAfter;
509
- typeof y == "function" && (y = s.slidesOffsetAfter.call(t));
510
- const d = t.snapGrid.length, p = t.slidesGrid.length;
511
- let v = s.spaceBetween, E = -x, k = 0, P = 0;
512
- if (typeof o > "u")
513
- return;
514
- typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * o : typeof v == "string" && (v = parseFloat(v)), t.virtualSize = -v, h.forEach((C) => {
515
- l ? C.style.marginLeft = "" : C.style.marginRight = "", C.style.marginBottom = "", C.style.marginTop = "";
516
- }), s.centeredSlides && s.cssMode && (Y(a, "--swiper-centered-offset-before", ""), Y(a, "--swiper-centered-offset-after", ""));
517
- const A = s.grid && s.grid.rows > 1 && t.grid;
518
- A && t.grid.initSlides(S);
519
- let z;
520
- const D = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((C) => typeof s.breakpoints[C].slidesPerView < "u").length > 0;
521
- for (let C = 0; C < S; C += 1) {
522
- z = 0;
523
- let T;
524
- if (h[C] && (T = h[C]), A && t.grid.updateSlide(C, T, S, e), !(h[C] && q(T, "display") === "none")) {
525
- if (s.slidesPerView === "auto") {
526
- D && (h[C].style[e("width")] = "");
527
- const M = getComputedStyle(T), c = T.style.transform, w = T.style.webkitTransform;
528
- if (c && (T.style.transform = "none"), w && (T.style.webkitTransform = "none"), s.roundLengths)
529
- z = t.isHorizontal() ? ne(T, "width") : ne(T, "height");
530
- else {
531
- const L = i(M, "width"), I = i(M, "padding-left"), B = i(M, "padding-right"), O = i(M, "margin-left"), V = i(M, "margin-right"), H = M.getPropertyValue("box-sizing");
532
- if (H && H === "border-box")
533
- z = L + O + V;
534
- else {
535
- const {
536
- clientWidth: Q,
537
- offsetWidth: Se
538
- } = T;
539
- z = L + I + B + O + V + (Se - Q);
540
- }
541
- }
542
- c && (T.style.transform = c), w && (T.style.webkitTransform = w), s.roundLengths && (z = Math.floor(z));
543
- } else
544
- z = (o - (s.slidesPerView - 1) * v) / s.slidesPerView, s.roundLengths && (z = Math.floor(z)), h[C] && (h[C].style[e("width")] = `${z}px`);
545
- h[C] && (h[C].swiperSlideSize = z), u.push(z), s.centeredSlides ? (E = E + z / 2 + k / 2 + v, k === 0 && C !== 0 && (E = E - o / 2 - v), C === 0 && (E = E - o / 2 - v), Math.abs(E) < 1 / 1e3 && (E = 0), s.roundLengths && (E = Math.floor(E)), P % s.slidesPerGroup === 0 && m.push(E), b.push(E)) : (s.roundLengths && (E = Math.floor(E)), (P - Math.min(t.params.slidesPerGroupSkip, P)) % t.params.slidesPerGroup === 0 && m.push(E), b.push(E), E = E + z + v), t.virtualSize += z + v, k = z, P += 1;
546
- }
547
- }
548
- if (t.virtualSize = Math.max(t.virtualSize, o) + y, l && n && (s.effect === "slide" || s.effect === "coverflow") && (a.style.width = `${t.virtualSize + v}px`), s.setWrapperSize && (a.style[e("width")] = `${t.virtualSize + v}px`), A && t.grid.updateWrapperSize(z, m, e), !s.centeredSlides) {
549
- const C = [];
550
- for (let T = 0; T < m.length; T += 1) {
551
- let M = m[T];
552
- s.roundLengths && (M = Math.floor(M)), m[T] <= t.virtualSize - o && C.push(M);
553
- }
554
- m = C, Math.floor(t.virtualSize - o) - Math.floor(m[m.length - 1]) > 1 && m.push(t.virtualSize - o);
555
- }
556
- if (f && s.loop) {
557
- const C = u[0] + v;
558
- if (s.slidesPerGroup > 1) {
559
- const T = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), M = C * s.slidesPerGroup;
560
- for (let c = 0; c < T; c += 1)
561
- m.push(m[m.length - 1] + M);
562
- }
563
- for (let T = 0; T < t.virtual.slidesBefore + t.virtual.slidesAfter; T += 1)
564
- s.slidesPerGroup === 1 && m.push(m[m.length - 1] + C), b.push(b[b.length - 1] + C), t.virtualSize += C;
565
- }
566
- if (m.length === 0 && (m = [0]), v !== 0) {
567
- const C = t.isHorizontal() && l ? "marginLeft" : e("marginRight");
568
- h.filter((T, M) => !s.cssMode || s.loop ? !0 : M !== h.length - 1).forEach((T) => {
569
- T.style[C] = `${v}px`;
570
- });
571
- }
572
- if (s.centeredSlides && s.centeredSlidesBounds) {
573
- let C = 0;
574
- u.forEach((M) => {
575
- C += M + (v || 0);
576
- }), C -= v;
577
- const T = C - o;
578
- m = m.map((M) => M <= 0 ? -x : M > T ? T + y : M);
579
- }
580
- if (s.centerInsufficientSlides) {
581
- let C = 0;
582
- if (u.forEach((T) => {
583
- C += T + (v || 0);
584
- }), C -= v, C < o) {
585
- const T = (o - C) / 2;
586
- m.forEach((M, c) => {
587
- m[c] = M - T;
588
- }), b.forEach((M, c) => {
589
- b[c] = M + T;
590
- });
591
- }
592
- }
593
- if (Object.assign(t, {
594
- slides: h,
595
- snapGrid: m,
596
- slidesGrid: b,
597
- slidesSizesGrid: u
598
- }), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
599
- Y(a, "--swiper-centered-offset-before", `${-m[0]}px`), Y(a, "--swiper-centered-offset-after", `${t.size / 2 - u[u.length - 1] / 2}px`);
600
- const C = -t.snapGrid[0], T = -t.slidesGrid[0];
601
- t.snapGrid = t.snapGrid.map((M) => M + C), t.slidesGrid = t.slidesGrid.map((M) => M + T);
602
- }
603
- if (S !== g && t.emit("slidesLengthChange"), m.length !== d && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), b.length !== p && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), !f && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
604
- const C = `${s.containerModifierClass}backface-hidden`, T = t.el.classList.contains(C);
605
- S <= s.maxBackfaceHiddenSlides ? T || t.el.classList.add(C) : T && t.el.classList.remove(C);
606
- }
607
- }
608
- function qe(t) {
609
- const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
610
- let a = 0, r;
611
- typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
612
- const o = (l) => s ? e.slides[e.getSlideIndexByData(l)] : e.slides[l];
613
- if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
614
- if (e.params.centeredSlides)
615
- (e.visibleSlides || []).forEach((l) => {
616
- i.push(l);
617
- });
618
- else
619
- for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
620
- const l = e.activeIndex + r;
621
- if (l > e.slides.length && !s) break;
622
- i.push(o(l));
623
- }
624
- else
625
- i.push(o(e.activeIndex));
626
- for (r = 0; r < i.length; r += 1)
627
- if (typeof i[r] < "u") {
628
- const l = i[r].offsetHeight;
629
- a = l > a ? l : a;
630
- }
631
- (a || a === 0) && (e.wrapperEl.style.height = `${a}px`);
632
- }
633
- function We() {
634
- const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
635
- for (let s = 0; s < e.length; s += 1)
636
- e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
637
- }
638
- function Xe(t) {
639
- t === void 0 && (t = this && this.translate || 0);
640
- const e = this, i = e.params, {
641
- slides: s,
642
- rtlTranslate: a,
643
- snapGrid: r
644
- } = e;
645
- if (s.length === 0) return;
646
- typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
647
- let o = -t;
648
- a && (o = t), s.forEach((n) => {
649
- n.classList.remove(i.slideVisibleClass);
650
- }), e.visibleSlidesIndexes = [], e.visibleSlides = [];
651
- let l = i.spaceBetween;
652
- typeof l == "string" && l.indexOf("%") >= 0 ? l = parseFloat(l.replace("%", "")) / 100 * e.size : typeof l == "string" && (l = parseFloat(l));
653
- for (let n = 0; n < s.length; n += 1) {
654
- const f = s[n];
655
- let g = f.swiperSlideOffset;
656
- i.cssMode && i.centeredSlides && (g -= s[0].swiperSlideOffset);
657
- const h = (o + (i.centeredSlides ? e.minTranslate() : 0) - g) / (f.swiperSlideSize + l), S = (o - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - g) / (f.swiperSlideSize + l), m = -(o - g), b = m + e.slidesSizesGrid[n];
658
- (m >= 0 && m < e.size - 1 || b > 1 && b <= e.size || m <= 0 && b >= e.size) && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(n), s[n].classList.add(i.slideVisibleClass)), f.progress = a ? -h : h, f.originalProgress = a ? -S : S;
659
- }
660
- }
661
- function Ye(t) {
662
- const e = this;
663
- if (typeof t > "u") {
664
- const g = e.rtlTranslate ? -1 : 1;
665
- t = e && e.translate && e.translate * g || 0;
666
- }
667
- const i = e.params, s = e.maxTranslate() - e.minTranslate();
668
- let {
669
- progress: a,
670
- isBeginning: r,
671
- isEnd: o,
672
- progressLoop: l
673
- } = e;
674
- const n = r, f = o;
675
- if (s === 0)
676
- a = 0, r = !0, o = !0;
677
- else {
678
- a = (t - e.minTranslate()) / s;
679
- const g = Math.abs(t - e.minTranslate()) < 1, h = Math.abs(t - e.maxTranslate()) < 1;
680
- r = g || a <= 0, o = h || a >= 1, g && (a = 0), h && (a = 1);
681
- }
682
- if (i.loop) {
683
- const g = e.getSlideIndexByData(0), h = e.getSlideIndexByData(e.slides.length - 1), S = e.slidesGrid[g], m = e.slidesGrid[h], b = e.slidesGrid[e.slidesGrid.length - 1], u = Math.abs(t);
684
- u >= S ? l = (u - S) / b : l = (u + b - m) / b, l > 1 && (l -= 1);
685
- }
686
- Object.assign(e, {
687
- progress: a,
688
- progressLoop: l,
689
- isBeginning: r,
690
- isEnd: o
691
- }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !n && e.emit("reachBeginning toEdge"), o && !f && e.emit("reachEnd toEdge"), (n && !r || f && !o) && e.emit("fromEdge"), e.emit("progress", a);
692
- }
693
- function Ue() {
694
- const t = this, {
695
- slides: e,
696
- params: i,
697
- slidesEl: s,
698
- activeIndex: a
699
- } = t, r = t.virtual && i.virtual.enabled, o = (n) => R(s, `.${i.slideClass}${n}, swiper-slide${n}`)[0];
700
- e.forEach((n) => {
701
- n.classList.remove(i.slideActiveClass, i.slideNextClass, i.slidePrevClass);
702
- });
703
- let l;
704
- if (r)
705
- if (i.loop) {
706
- let n = a - t.virtual.slidesBefore;
707
- n < 0 && (n = t.virtual.slides.length + n), n >= t.virtual.slides.length && (n -= t.virtual.slides.length), l = o(`[data-swiper-slide-index="${n}"]`);
708
- } else
709
- l = o(`[data-swiper-slide-index="${a}"]`);
710
- else
711
- l = e[a];
712
- if (l) {
713
- l.classList.add(i.slideActiveClass);
714
- let n = De(l, `.${i.slideClass}, swiper-slide`)[0];
715
- i.loop && !n && (n = e[0]), n && n.classList.add(i.slideNextClass);
716
- let f = Oe(l, `.${i.slideClass}, swiper-slide`)[0];
717
- i.loop && !f === 0 && (f = e[e.length - 1]), f && f.classList.add(i.slidePrevClass);
718
- }
719
- t.emitSlidesClasses();
720
- }
721
- const U = (t, e) => {
722
- if (!t || t.destroyed || !t.params) return;
723
- const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
724
- if (s) {
725
- let a = s.querySelector(`.${t.params.lazyPreloaderClass}`);
726
- !a && t.isElement && (s.shadowRoot ? a = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
727
- s.shadowRoot && (a = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), a && a.remove());
728
- })), a && a.remove();
729
- }
730
- }, se = (t, e) => {
731
- if (!t.slides[e]) return;
732
- const i = t.slides[e].querySelector('[loading="lazy"]');
733
- i && i.removeAttribute("loading");
734
- }, le = (t) => {
735
- if (!t || t.destroyed || !t.params) return;
736
- let e = t.params.lazyPreloadPrevNext;
737
- const i = t.slides.length;
738
- if (!i || !e || e < 0) return;
739
- e = Math.min(e, i);
740
- const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), a = t.activeIndex;
741
- if (t.params.grid && t.params.grid.rows > 1) {
742
- const o = a, l = [o - e];
743
- l.push(...Array.from({
744
- length: e
745
- }).map((n, f) => o + s + f)), t.slides.forEach((n, f) => {
746
- l.includes(n.column) && se(t, f);
747
- });
748
- return;
749
- }
750
- const r = a + s - 1;
751
- if (t.params.rewind || t.params.loop)
752
- for (let o = a - e; o <= r + e; o += 1) {
753
- const l = (o % i + i) % i;
754
- (l < a || l > r) && se(t, l);
755
- }
756
- else
757
- for (let o = Math.max(a - e, 0); o <= Math.min(r + e, i - 1); o += 1)
758
- o !== a && (o > r || o < a) && se(t, o);
759
- };
760
- function Ke(t) {
761
- const {
762
- slidesGrid: e,
763
- params: i
764
- } = t, s = t.rtlTranslate ? t.translate : -t.translate;
765
- let a;
766
- for (let r = 0; r < e.length; r += 1)
767
- typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? a = r : s >= e[r] && s < e[r + 1] && (a = r + 1) : s >= e[r] && (a = r);
768
- return i.normalizeSlideIndex && (a < 0 || typeof a > "u") && (a = 0), a;
769
- }
770
- function Ze(t) {
771
- const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
772
- snapGrid: s,
773
- params: a,
774
- activeIndex: r,
775
- realIndex: o,
776
- snapIndex: l
777
- } = e;
778
- let n = t, f;
779
- const g = (S) => {
780
- let m = S - e.virtual.slidesBefore;
781
- return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
782
- };
783
- if (typeof n > "u" && (n = Ke(e)), s.indexOf(i) >= 0)
784
- f = s.indexOf(i);
785
- else {
786
- const S = Math.min(a.slidesPerGroupSkip, n);
787
- f = S + Math.floor((n - S) / a.slidesPerGroup);
788
- }
789
- if (f >= s.length && (f = s.length - 1), n === r) {
790
- f !== l && (e.snapIndex = f, e.emit("snapIndexChange")), e.params.loop && e.virtual && e.params.virtual.enabled && (e.realIndex = g(n));
791
- return;
792
- }
793
- let h;
794
- e.virtual && a.virtual.enabled && a.loop ? h = g(n) : e.slides[n] ? h = parseInt(e.slides[n].getAttribute("data-swiper-slide-index") || n, 10) : h = n, Object.assign(e, {
795
- previousSnapIndex: l,
796
- snapIndex: f,
797
- previousRealIndex: o,
798
- realIndex: h,
799
- previousIndex: r,
800
- activeIndex: n
801
- }), e.initialized && le(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (o !== h && e.emit("realIndexChange"), e.emit("slideChange"));
802
- }
803
- function Je(t, e) {
804
- const i = this, s = i.params;
805
- let a = t.closest(`.${s.slideClass}, swiper-slide`);
806
- !a && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((l) => {
807
- !a && l.matches && l.matches(`.${s.slideClass}, swiper-slide`) && (a = l);
808
- });
809
- let r = !1, o;
810
- if (a) {
811
- for (let l = 0; l < i.slides.length; l += 1)
812
- if (i.slides[l] === a) {
813
- r = !0, o = l;
814
- break;
815
- }
816
- }
817
- if (a && r)
818
- i.clickedSlide = a, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(a.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = o;
819
- else {
820
- i.clickedSlide = void 0, i.clickedIndex = void 0;
821
- return;
822
- }
823
- s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
824
- }
825
- var Qe = {
826
- updateSize: Re,
827
- updateSlides: je,
828
- updateAutoHeight: qe,
829
- updateSlidesOffset: We,
830
- updateSlidesProgress: Xe,
831
- updateProgress: Ye,
832
- updateSlidesClasses: Ue,
833
- updateActiveIndex: Ze,
834
- updateClickedSlide: Je
835
- };
836
- function et(t) {
837
- t === void 0 && (t = this.isHorizontal() ? "x" : "y");
838
- const e = this, {
839
- params: i,
840
- rtlTranslate: s,
841
- translate: a,
842
- wrapperEl: r
843
- } = e;
844
- if (i.virtualTranslate)
845
- return s ? -a : a;
846
- if (i.cssMode)
847
- return a;
848
- let o = ke(r, t);
849
- return o += e.cssOverflowAdjustment(), s && (o = -o), o || 0;
850
- }
851
- function tt(t, e) {
852
- const i = this, {
853
- rtlTranslate: s,
854
- params: a,
855
- wrapperEl: r,
856
- progress: o
857
- } = i;
858
- let l = 0, n = 0;
859
- const f = 0;
860
- i.isHorizontal() ? l = s ? -t : t : n = t, a.roundLengths && (l = Math.floor(l), n = Math.floor(n)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? l : n, a.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -l : -n : a.virtualTranslate || (i.isHorizontal() ? l -= i.cssOverflowAdjustment() : n -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${l}px, ${n}px, ${f}px)`);
861
- let g;
862
- const h = i.maxTranslate() - i.minTranslate();
863
- h === 0 ? g = 0 : g = (t - i.minTranslate()) / h, g !== o && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
864
- }
865
- function it() {
866
- return -this.snapGrid[0];
867
- }
868
- function st() {
869
- return -this.snapGrid[this.snapGrid.length - 1];
870
- }
871
- function rt(t, e, i, s, a) {
872
- t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
873
- const r = this, {
874
- params: o,
875
- wrapperEl: l
876
- } = r;
877
- if (r.animating && o.preventInteractionOnTransition)
878
- return !1;
879
- const n = r.minTranslate(), f = r.maxTranslate();
880
- let g;
881
- if (s && t > n ? g = n : s && t < f ? g = f : g = t, r.updateProgress(g), o.cssMode) {
882
- const h = r.isHorizontal();
883
- if (e === 0)
884
- l[h ? "scrollLeft" : "scrollTop"] = -g;
885
- else {
886
- if (!r.support.smoothScroll)
887
- return we({
888
- swiper: r,
889
- targetPosition: -g,
890
- side: h ? "left" : "top"
891
- }), !0;
892
- l.scrollTo({
893
- [h ? "left" : "top"]: -g,
894
- behavior: "smooth"
895
- });
896
- }
897
- return !0;
898
- }
899
- return e === 0 ? (r.setTransition(0), r.setTranslate(g), i && (r.emit("beforeTransitionStart", e, a), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(g), i && (r.emit("beforeTransitionStart", e, a), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(S) {
900
- !r || r.destroyed || S.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, i && r.emit("transitionEnd"));
901
- }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
902
- }
903
- var at = {
904
- getTranslate: et,
905
- setTranslate: tt,
906
- minTranslate: it,
907
- maxTranslate: st,
908
- translateTo: rt
909
- };
910
- function nt(t, e) {
911
- const i = this;
912
- i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
913
- }
914
- function ye(t) {
915
- let {
916
- swiper: e,
917
- runCallbacks: i,
918
- direction: s,
919
- step: a
920
- } = t;
921
- const {
922
- activeIndex: r,
923
- previousIndex: o
924
- } = e;
925
- let l = s;
926
- if (l || (r > o ? l = "next" : r < o ? l = "prev" : l = "reset"), e.emit(`transition${a}`), i && r !== o) {
927
- if (l === "reset") {
928
- e.emit(`slideResetTransition${a}`);
929
- return;
930
- }
931
- e.emit(`slideChangeTransition${a}`), l === "next" ? e.emit(`slideNextTransition${a}`) : e.emit(`slidePrevTransition${a}`);
932
- }
933
- }
934
- function lt(t, e) {
935
- t === void 0 && (t = !0);
936
- const i = this, {
937
- params: s
938
- } = i;
939
- s.cssMode || (s.autoHeight && i.updateAutoHeight(), ye({
940
- swiper: i,
941
- runCallbacks: t,
942
- direction: e,
943
- step: "Start"
944
- }));
945
- }
946
- function ot(t, e) {
947
- t === void 0 && (t = !0);
948
- const i = this, {
949
- params: s
950
- } = i;
951
- i.animating = !1, !s.cssMode && (i.setTransition(0), ye({
952
- swiper: i,
953
- runCallbacks: t,
954
- direction: e,
955
- step: "End"
956
- }));
957
- }
958
- var dt = {
959
- setTransition: nt,
960
- transitionStart: lt,
961
- transitionEnd: ot
962
- };
963
- function pt(t, e, i, s, a) {
964
- t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
965
- const r = this;
966
- let o = t;
967
- o < 0 && (o = 0);
968
- const {
969
- params: l,
970
- snapGrid: n,
971
- slidesGrid: f,
972
- previousIndex: g,
973
- activeIndex: h,
974
- rtlTranslate: S,
975
- wrapperEl: m,
976
- enabled: b
977
- } = r;
978
- if (r.animating && l.preventInteractionOnTransition || !b && !s && !a)
979
- return !1;
980
- const u = Math.min(r.params.slidesPerGroupSkip, o);
981
- let x = u + Math.floor((o - u) / r.params.slidesPerGroup);
982
- x >= n.length && (x = n.length - 1);
983
- const y = -n[x];
984
- if (l.normalizeSlideIndex)
985
- for (let p = 0; p < f.length; p += 1) {
986
- const v = -Math.floor(y * 100), E = Math.floor(f[p] * 100), k = Math.floor(f[p + 1] * 100);
987
- typeof f[p + 1] < "u" ? v >= E && v < k - (k - E) / 2 ? o = p : v >= E && v < k && (o = p + 1) : v >= E && (o = p);
988
- }
989
- if (r.initialized && o !== h && (!r.allowSlideNext && (S ? y > r.translate && y > r.minTranslate() : y < r.translate && y < r.minTranslate()) || !r.allowSlidePrev && y > r.translate && y > r.maxTranslate() && (h || 0) !== o))
990
- return !1;
991
- o !== (g || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(y);
992
- let d;
993
- if (o > h ? d = "next" : o < h ? d = "prev" : d = "reset", S && -y === r.translate || !S && y === r.translate)
994
- return r.updateActiveIndex(o), l.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), l.effect !== "slide" && r.setTranslate(y), d !== "reset" && (r.transitionStart(i, d), r.transitionEnd(i, d)), !1;
995
- if (l.cssMode) {
996
- const p = r.isHorizontal(), v = S ? y : -y;
997
- if (e === 0) {
998
- const E = r.virtual && r.params.virtual.enabled;
999
- E && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), E && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1000
- m[p ? "scrollLeft" : "scrollTop"] = v;
1001
- })) : m[p ? "scrollLeft" : "scrollTop"] = v, E && requestAnimationFrame(() => {
1002
- r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
1003
- });
1004
- } else {
1005
- if (!r.support.smoothScroll)
1006
- return we({
1007
- swiper: r,
1008
- targetPosition: v,
1009
- side: p ? "left" : "top"
1010
- }), !0;
1011
- m.scrollTo({
1012
- [p ? "left" : "top"]: v,
1013
- behavior: "smooth"
1014
- });
1015
- }
1016
- return !0;
1017
- }
1018
- return r.setTransition(e), r.setTranslate(y), r.updateActiveIndex(o), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, d), e === 0 ? r.transitionEnd(i, d) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(v) {
1019
- !r || r.destroyed || v.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, d));
1020
- }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
1021
- }
1022
- function ct(t, e, i, s) {
1023
- t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1024
- const a = this;
1025
- let r = t;
1026
- return a.params.loop && (a.virtual && a.params.virtual.enabled ? r = r + a.virtual.slidesBefore : r = a.getSlideIndexByData(r)), a.slideTo(r, e, i, s);
1027
- }
1028
- function ft(t, e, i) {
1029
- t === void 0 && (t = this.params.speed), e === void 0 && (e = !0);
1030
- const s = this, {
1031
- enabled: a,
1032
- params: r,
1033
- animating: o
1034
- } = s;
1035
- if (!a) return s;
1036
- let l = r.slidesPerGroup;
1037
- r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (l = Math.max(s.slidesPerViewDynamic("current", !0), 1));
1038
- const n = s.activeIndex < r.slidesPerGroupSkip ? 1 : l, f = s.virtual && r.virtual.enabled;
1039
- if (r.loop) {
1040
- if (o && !f && r.loopPreventsSliding) return !1;
1041
- if (s.loopFix({
1042
- direction: "next"
1043
- }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
1044
- return requestAnimationFrame(() => {
1045
- s.slideTo(s.activeIndex + n, t, e, i);
1046
- }), !0;
1047
- }
1048
- return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + n, t, e, i);
1049
- }
1050
- function ut(t, e, i) {
1051
- t === void 0 && (t = this.params.speed), e === void 0 && (e = !0);
1052
- const s = this, {
1053
- params: a,
1054
- snapGrid: r,
1055
- slidesGrid: o,
1056
- rtlTranslate: l,
1057
- enabled: n,
1058
- animating: f
1059
- } = s;
1060
- if (!n) return s;
1061
- const g = s.virtual && a.virtual.enabled;
1062
- if (a.loop) {
1063
- if (f && !g && a.loopPreventsSliding) return !1;
1064
- s.loopFix({
1065
- direction: "prev"
1066
- }), s._clientLeft = s.wrapperEl.clientLeft;
1067
- }
1068
- const h = l ? s.translate : -s.translate;
1069
- function S(y) {
1070
- return y < 0 ? -Math.floor(Math.abs(y)) : Math.floor(y);
1071
- }
1072
- const m = S(h), b = r.map((y) => S(y));
1073
- let u = r[b.indexOf(m) - 1];
1074
- if (typeof u > "u" && a.cssMode) {
1075
- let y;
1076
- r.forEach((d, p) => {
1077
- m >= d && (y = p);
1078
- }), typeof y < "u" && (u = r[y > 0 ? y - 1 : y]);
1079
- }
1080
- let x = 0;
1081
- if (typeof u < "u" && (x = o.indexOf(u), x < 0 && (x = s.activeIndex - 1), a.slidesPerView === "auto" && a.slidesPerGroup === 1 && a.slidesPerGroupAuto && (x = x - s.slidesPerViewDynamic("previous", !0) + 1, x = Math.max(x, 0))), a.rewind && s.isBeginning) {
1082
- const y = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
1083
- return s.slideTo(y, t, e, i);
1084
- } else if (a.loop && s.activeIndex === 0 && a.cssMode)
1085
- return requestAnimationFrame(() => {
1086
- s.slideTo(x, t, e, i);
1087
- }), !0;
1088
- return s.slideTo(x, t, e, i);
1089
- }
1090
- function mt(t, e, i) {
1091
- t === void 0 && (t = this.params.speed), e === void 0 && (e = !0);
1092
- const s = this;
1093
- return s.slideTo(s.activeIndex, t, e, i);
1094
- }
1095
- function gt(t, e, i, s) {
1096
- t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), s === void 0 && (s = 0.5);
1097
- const a = this;
1098
- let r = a.activeIndex;
1099
- const o = Math.min(a.params.slidesPerGroupSkip, r), l = o + Math.floor((r - o) / a.params.slidesPerGroup), n = a.rtlTranslate ? a.translate : -a.translate;
1100
- if (n >= a.snapGrid[l]) {
1101
- const f = a.snapGrid[l], g = a.snapGrid[l + 1];
1102
- n - f > (g - f) * s && (r += a.params.slidesPerGroup);
1103
- } else {
1104
- const f = a.snapGrid[l - 1], g = a.snapGrid[l];
1105
- n - f <= (g - f) * s && (r -= a.params.slidesPerGroup);
1106
- }
1107
- return r = Math.max(r, 0), r = Math.min(r, a.slidesGrid.length - 1), a.slideTo(r, t, e, i);
1108
- }
1109
- function ht() {
1110
- const t = this, {
1111
- params: e,
1112
- slidesEl: i
1113
- } = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1114
- let a = t.clickedIndex, r;
1115
- const o = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
1116
- if (e.loop) {
1117
- if (t.animating) return;
1118
- r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? a < t.loopedSlides - s / 2 || a > t.slides.length - t.loopedSlides + s / 2 ? (t.loopFix(), a = t.getSlideIndex(R(i, `${o}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
1119
- t.slideTo(a);
1120
- })) : t.slideTo(a) : a > t.slides.length - s ? (t.loopFix(), a = t.getSlideIndex(R(i, `${o}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
1121
- t.slideTo(a);
1122
- })) : t.slideTo(a);
1123
- } else
1124
- t.slideTo(a);
1125
- }
1126
- var wt = {
1127
- slideTo: pt,
1128
- slideToLoop: ct,
1129
- slideNext: ft,
1130
- slidePrev: ut,
1131
- slideReset: mt,
1132
- slideToClosest: gt,
1133
- slideToClickedSlide: ht
1134
- };
1135
- function vt(t) {
1136
- const e = this, {
1137
- params: i,
1138
- slidesEl: s
1139
- } = e;
1140
- if (!i.loop || e.virtual && e.params.virtual.enabled) return;
1141
- R(s, `.${i.slideClass}, swiper-slide`).forEach((r, o) => {
1142
- r.setAttribute("data-swiper-slide-index", o);
1143
- }), e.loopFix({
1144
- slideRealIndex: t,
1145
- direction: i.centeredSlides ? void 0 : "next"
1146
- });
1147
- }
1148
- function bt(t) {
1149
- let {
1150
- slideRealIndex: e,
1151
- slideTo: i = !0,
1152
- direction: s,
1153
- setTranslate: a,
1154
- activeSlideIndex: r,
1155
- byController: o,
1156
- byMousewheel: l
1157
- } = t === void 0 ? {} : t;
1158
- const n = this;
1159
- if (!n.params.loop) return;
1160
- n.emit("beforeLoopFix");
1161
- const {
1162
- slides: f,
1163
- allowSlidePrev: g,
1164
- allowSlideNext: h,
1165
- slidesEl: S,
1166
- params: m
1167
- } = n;
1168
- if (n.allowSlidePrev = !0, n.allowSlideNext = !0, n.virtual && m.virtual.enabled) {
1169
- i && (!m.centeredSlides && n.snapIndex === 0 ? n.slideTo(n.virtual.slides.length, 0, !1, !0) : m.centeredSlides && n.snapIndex < m.slidesPerView ? n.slideTo(n.virtual.slides.length + n.snapIndex, 0, !1, !0) : n.snapIndex === n.snapGrid.length - 1 && n.slideTo(n.virtual.slidesBefore, 0, !1, !0)), n.allowSlidePrev = g, n.allowSlideNext = h, n.emit("loopFix");
1170
- return;
1171
- }
1172
- const b = m.slidesPerView === "auto" ? n.slidesPerViewDynamic() : Math.ceil(parseFloat(m.slidesPerView, 10));
1173
- let u = m.loopedSlides || b;
1174
- u % m.slidesPerGroup !== 0 && (u += m.slidesPerGroup - u % m.slidesPerGroup), n.loopedSlides = u;
1175
- const x = [], y = [];
1176
- let d = n.activeIndex;
1177
- typeof r > "u" ? r = n.getSlideIndex(n.slides.filter((P) => P.classList.contains(m.slideActiveClass))[0]) : d = r;
1178
- const p = s === "next" || !s, v = s === "prev" || !s;
1179
- let E = 0, k = 0;
1180
- if (r < u) {
1181
- E = Math.max(u - r, m.slidesPerGroup);
1182
- for (let P = 0; P < u - r; P += 1) {
1183
- const A = P - Math.floor(P / f.length) * f.length;
1184
- x.push(f.length - A - 1);
1185
- }
1186
- } else if (r > n.slides.length - u * 2) {
1187
- k = Math.max(r - (n.slides.length - u * 2), m.slidesPerGroup);
1188
- for (let P = 0; P < k; P += 1) {
1189
- const A = P - Math.floor(P / f.length) * f.length;
1190
- y.push(A);
1191
- }
1192
- }
1193
- if (v && x.forEach((P) => {
1194
- n.slides[P].swiperLoopMoveDOM = !0, S.prepend(n.slides[P]), n.slides[P].swiperLoopMoveDOM = !1;
1195
- }), p && y.forEach((P) => {
1196
- n.slides[P].swiperLoopMoveDOM = !0, S.append(n.slides[P]), n.slides[P].swiperLoopMoveDOM = !1;
1197
- }), n.recalcSlides(), m.slidesPerView === "auto" && n.updateSlides(), m.watchSlidesProgress && n.updateSlidesOffset(), i) {
1198
- if (x.length > 0 && v)
1199
- if (typeof e > "u") {
1200
- const P = n.slidesGrid[d], z = n.slidesGrid[d + E] - P;
1201
- l ? n.setTranslate(n.translate - z) : (n.slideTo(d + E, 0, !1, !0), a && (n.touches[n.isHorizontal() ? "startX" : "startY"] += z, n.touchEventsData.currentTranslate = n.translate));
1202
- } else
1203
- a && (n.slideToLoop(e, 0, !1, !0), n.touchEventsData.currentTranslate = n.translate);
1204
- else if (y.length > 0 && p)
1205
- if (typeof e > "u") {
1206
- const P = n.slidesGrid[d], z = n.slidesGrid[d - k] - P;
1207
- l ? n.setTranslate(n.translate - z) : (n.slideTo(d - k, 0, !1, !0), a && (n.touches[n.isHorizontal() ? "startX" : "startY"] += z, n.touchEventsData.currentTranslate = n.translate));
1208
- } else
1209
- n.slideToLoop(e, 0, !1, !0);
1210
- }
1211
- if (n.allowSlidePrev = g, n.allowSlideNext = h, n.controller && n.controller.control && !o) {
1212
- const P = {
1213
- slideRealIndex: e,
1214
- direction: s,
1215
- setTranslate: a,
1216
- activeSlideIndex: r,
1217
- byController: !0
1218
- };
1219
- Array.isArray(n.controller.control) ? n.controller.control.forEach((A) => {
1220
- !A.destroyed && A.params.loop && A.loopFix({
1221
- ...P,
1222
- slideTo: A.params.slidesPerView === m.slidesPerView ? i : !1
1223
- });
1224
- }) : n.controller.control instanceof n.constructor && n.controller.control.params.loop && n.controller.control.loopFix({
1225
- ...P,
1226
- slideTo: n.controller.control.params.slidesPerView === m.slidesPerView ? i : !1
1227
- });
1228
- }
1229
- n.emit("loopFix");
1230
- }
1231
- function yt() {
1232
- const t = this, {
1233
- params: e,
1234
- slidesEl: i
1235
- } = t;
1236
- if (!e.loop || t.virtual && t.params.virtual.enabled) return;
1237
- t.recalcSlides();
1238
- const s = [];
1239
- t.slides.forEach((a) => {
1240
- const r = typeof a.swiperSlideIndex > "u" ? a.getAttribute("data-swiper-slide-index") * 1 : a.swiperSlideIndex;
1241
- s[r] = a;
1242
- }), t.slides.forEach((a) => {
1243
- a.removeAttribute("data-swiper-slide-index");
1244
- }), s.forEach((a) => {
1245
- i.append(a);
1246
- }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1247
- }
1248
- var xt = {
1249
- loopCreate: vt,
1250
- loopFix: bt,
1251
- loopDestroy: yt
1252
- };
1253
- function St(t) {
1254
- const e = this;
1255
- if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1256
- const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
1257
- e.isElement && (e.__preventObserver__ = !0), i.style.cursor = "move", i.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
1258
- e.__preventObserver__ = !1;
1259
- });
1260
- }
1261
- function Tt() {
1262
- const t = this;
1263
- 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(() => {
1264
- t.__preventObserver__ = !1;
1265
- }));
1266
- }
1267
- var Et = {
1268
- setGrabCursor: St,
1269
- unsetGrabCursor: Tt
1270
- };
1271
- function Ct(t, e) {
1272
- e === void 0 && (e = this);
1273
- function i(s) {
1274
- if (!s || s === _() || s === G()) return null;
1275
- s.assignedSlot && (s = s.assignedSlot);
1276
- const a = s.closest(t);
1277
- return !a && !s.getRootNode ? null : a || i(s.getRootNode().host);
1278
- }
1279
- return i(e);
1280
- }
1281
- function Mt(t) {
1282
- const e = this, i = _(), s = G(), a = e.touchEventsData;
1283
- a.evCache.push(t);
1284
- const {
1285
- params: r,
1286
- touches: o,
1287
- enabled: l
1288
- } = e;
1289
- if (!l || !r.simulateTouch && t.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
1290
- return;
1291
- !e.animating && r.cssMode && r.loop && e.loopFix();
1292
- let n = t;
1293
- n.originalEvent && (n = n.originalEvent);
1294
- let f = n.target;
1295
- if (r.touchEventsTarget === "wrapper" && !e.wrapperEl.contains(f) || "which" in n && n.which === 3 || "button" in n && n.button > 0 || a.isTouched && a.isMoved) return;
1296
- const g = !!r.noSwipingClass && r.noSwipingClass !== "", h = t.composedPath ? t.composedPath() : t.path;
1297
- g && n.target && n.target.shadowRoot && h && (f = h[0]);
1298
- const S = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, m = !!(n.target && n.target.shadowRoot);
1299
- if (r.noSwiping && (m ? Ct(S, f) : f.closest(S))) {
1300
- e.allowClick = !0;
1301
- return;
1302
- }
1303
- if (r.swipeHandler && !f.closest(r.swipeHandler))
1304
- return;
1305
- o.currentX = n.pageX, o.currentY = n.pageY;
1306
- const b = o.currentX, u = o.currentY, x = r.edgeSwipeDetection || r.iOSEdgeSwipeDetection, y = r.edgeSwipeThreshold || r.iOSEdgeSwipeThreshold;
1307
- if (x && (b <= y || b >= s.innerWidth - y))
1308
- if (x === "prevent")
1309
- t.preventDefault();
1310
- else
1311
- return;
1312
- Object.assign(a, {
1313
- isTouched: !0,
1314
- isMoved: !1,
1315
- allowTouchCallbacks: !0,
1316
- isScrolling: void 0,
1317
- startMoving: void 0
1318
- }), o.startX = b, o.startY = u, a.touchStartTime = Z(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (a.allowThresholdMove = !1);
1319
- let d = !0;
1320
- f.matches(a.focusableElements) && (d = !1, f.nodeName === "SELECT" && (a.isTouched = !1)), i.activeElement && i.activeElement.matches(a.focusableElements) && i.activeElement !== f && i.activeElement.blur();
1321
- const p = d && e.allowTouchMove && r.touchStartPreventDefault;
1322
- (r.touchStartForcePreventDefault || p) && !f.isContentEditable && n.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", n);
1323
- }
1324
- function Pt(t) {
1325
- const e = _(), i = this, s = i.touchEventsData, {
1326
- params: a,
1327
- touches: r,
1328
- rtlTranslate: o,
1329
- enabled: l
1330
- } = i;
1331
- if (!l || !a.simulateTouch && t.pointerType === "mouse") return;
1332
- let n = t;
1333
- if (n.originalEvent && (n = n.originalEvent), !s.isTouched) {
1334
- s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", n);
1335
- return;
1336
- }
1337
- const f = s.evCache.findIndex((P) => P.pointerId === n.pointerId);
1338
- f >= 0 && (s.evCache[f] = n);
1339
- const g = s.evCache.length > 1 ? s.evCache[0] : n, h = g.pageX, S = g.pageY;
1340
- if (n.preventedByNestedSwiper) {
1341
- r.startX = h, r.startY = S;
1342
- return;
1343
- }
1344
- if (!i.allowTouchMove) {
1345
- n.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(r, {
1346
- startX: h,
1347
- startY: S,
1348
- prevX: i.touches.currentX,
1349
- prevY: i.touches.currentY,
1350
- currentX: h,
1351
- currentY: S
1352
- }), s.touchStartTime = Z());
1353
- return;
1354
- }
1355
- if (a.touchReleaseOnEdges && !a.loop) {
1356
- if (i.isVertical()) {
1357
- if (S < r.startY && i.translate <= i.maxTranslate() || S > r.startY && i.translate >= i.minTranslate()) {
1358
- s.isTouched = !1, s.isMoved = !1;
1359
- return;
1360
- }
1361
- } else if (h < r.startX && i.translate <= i.maxTranslate() || h > r.startX && i.translate >= i.minTranslate())
1362
- return;
1363
- }
1364
- if (e.activeElement && n.target === e.activeElement && n.target.matches(s.focusableElements)) {
1365
- s.isMoved = !0, i.allowClick = !1;
1366
- return;
1367
- }
1368
- if (s.allowTouchCallbacks && i.emit("touchMove", n), n.targetTouches && n.targetTouches.length > 1) return;
1369
- r.currentX = h, r.currentY = S;
1370
- const m = r.currentX - r.startX, b = r.currentY - r.startY;
1371
- if (i.params.threshold && Math.sqrt(m ** 2 + b ** 2) < i.params.threshold) return;
1372
- if (typeof s.isScrolling > "u") {
1373
- let P;
1374
- i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : m * m + b * b >= 25 && (P = Math.atan2(Math.abs(b), Math.abs(m)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? P > a.touchAngle : 90 - P > a.touchAngle);
1375
- }
1376
- if (s.isScrolling && i.emit("touchMoveOpposite", n), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || i.zoom && i.params.zoom && i.params.zoom.enabled && s.evCache.length > 1) {
1377
- s.isTouched = !1;
1378
- return;
1379
- }
1380
- if (!s.startMoving)
1381
- return;
1382
- i.allowClick = !1, !a.cssMode && n.cancelable && n.preventDefault(), a.touchMoveStopPropagation && !a.nested && n.stopPropagation();
1383
- let u = i.isHorizontal() ? m : b, x = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1384
- a.oneWayMovement && (u = Math.abs(u) * (o ? 1 : -1), x = Math.abs(x) * (o ? 1 : -1)), r.diff = u, u *= a.touchRatio, o && (u = -u, x = -x);
1385
- const y = i.touchesDirection;
1386
- i.swipeDirection = u > 0 ? "prev" : "next", i.touchesDirection = x > 0 ? "prev" : "next";
1387
- const d = i.params.loop && !a.cssMode, p = i.swipeDirection === "next" && i.allowSlideNext || i.swipeDirection === "prev" && i.allowSlidePrev;
1388
- if (!s.isMoved) {
1389
- if (d && p && i.loopFix({
1390
- direction: i.swipeDirection
1391
- }), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
1392
- const P = new window.CustomEvent("transitionend", {
1393
- bubbles: !0,
1394
- cancelable: !0
1395
- });
1396
- i.wrapperEl.dispatchEvent(P);
1397
- }
1398
- s.allowMomentumBounce = !1, a.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", n);
1399
- }
1400
- let v;
1401
- s.isMoved && y !== i.touchesDirection && d && p && Math.abs(u) >= 1 && (i.loopFix({
1402
- direction: i.swipeDirection,
1403
- setTranslate: !0
1404
- }), v = !0), i.emit("sliderMove", n), s.isMoved = !0, s.currentTranslate = u + s.startTranslate;
1405
- let E = !0, k = a.resistanceRatio;
1406
- if (a.touchReleaseOnEdges && (k = 0), u > 0 ? (d && p && !v && s.currentTranslate > (a.centeredSlides ? i.minTranslate() - i.size / 2 : i.minTranslate()) && i.loopFix({
1407
- direction: "prev",
1408
- setTranslate: !0,
1409
- activeSlideIndex: 0
1410
- }), s.currentTranslate > i.minTranslate() && (E = !1, a.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + u) ** k))) : u < 0 && (d && p && !v && s.currentTranslate < (a.centeredSlides ? i.maxTranslate() + i.size / 2 : i.maxTranslate()) && i.loopFix({
1411
- direction: "next",
1412
- setTranslate: !0,
1413
- activeSlideIndex: i.slides.length - (a.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(a.slidesPerView, 10)))
1414
- }), s.currentTranslate < i.maxTranslate() && (E = !1, a.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - u) ** k))), E && (n.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), a.threshold > 0)
1415
- if (Math.abs(u) > a.threshold || s.allowThresholdMove) {
1416
- if (!s.allowThresholdMove) {
1417
- s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1418
- return;
1419
- }
1420
- } else {
1421
- s.currentTranslate = s.startTranslate;
1422
- return;
1423
- }
1424
- !a.followFinger || a.cssMode || ((a.freeMode && a.freeMode.enabled && i.freeMode || a.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), a.freeMode && a.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
1425
- }
1426
- function Lt(t) {
1427
- const e = this, i = e.touchEventsData, s = i.evCache.findIndex((p) => p.pointerId === t.pointerId);
1428
- if (s >= 0 && i.evCache.splice(s, 1), ["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(t.type) && !(["pointercancel", "contextmenu"].includes(t.type) && (e.browser.isSafari || e.browser.isWebView)))
1429
- return;
1430
- const {
1431
- params: a,
1432
- touches: r,
1433
- rtlTranslate: o,
1434
- slidesGrid: l,
1435
- enabled: n
1436
- } = e;
1437
- if (!n || !a.simulateTouch && t.pointerType === "mouse") return;
1438
- let f = t;
1439
- if (f.originalEvent && (f = f.originalEvent), i.allowTouchCallbacks && e.emit("touchEnd", f), i.allowTouchCallbacks = !1, !i.isTouched) {
1440
- i.isMoved && a.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
1441
- return;
1442
- }
1443
- a.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1444
- const g = Z(), h = g - i.touchStartTime;
1445
- if (e.allowClick) {
1446
- const p = f.path || f.composedPath && f.composedPath();
1447
- e.updateClickedSlide(p && p[0] || f.target, p), e.emit("tap click", f), h < 300 && g - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", f);
1448
- }
1449
- if (i.lastClickTime = Z(), K(() => {
1450
- e.destroyed || (e.allowClick = !0);
1451
- }), !i.isTouched || !i.isMoved || !e.swipeDirection || r.diff === 0 || i.currentTranslate === i.startTranslate) {
1452
- i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1453
- return;
1454
- }
1455
- i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1456
- let S;
1457
- if (a.followFinger ? S = o ? e.translate : -e.translate : S = -i.currentTranslate, a.cssMode)
1458
- return;
1459
- if (a.freeMode && a.freeMode.enabled) {
1460
- e.freeMode.onTouchEnd({
1461
- currentPos: S
1462
- });
1463
- return;
1464
- }
1465
- let m = 0, b = e.slidesSizesGrid[0];
1466
- for (let p = 0; p < l.length; p += p < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) {
1467
- const v = p < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup;
1468
- typeof l[p + v] < "u" ? S >= l[p] && S < l[p + v] && (m = p, b = l[p + v] - l[p]) : S >= l[p] && (m = p, b = l[l.length - 1] - l[l.length - 2]);
1469
- }
1470
- let u = null, x = null;
1471
- a.rewind && (e.isBeginning ? x = a.virtual && a.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (u = 0));
1472
- const y = (S - l[m]) / b, d = m < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup;
1473
- if (h > a.longSwipesMs) {
1474
- if (!a.longSwipes) {
1475
- e.slideTo(e.activeIndex);
1476
- return;
1477
- }
1478
- e.swipeDirection === "next" && (y >= a.longSwipesRatio ? e.slideTo(a.rewind && e.isEnd ? u : m + d) : e.slideTo(m)), e.swipeDirection === "prev" && (y > 1 - a.longSwipesRatio ? e.slideTo(m + d) : x !== null && y < 0 && Math.abs(y) > a.longSwipesRatio ? e.slideTo(x) : e.slideTo(m));
1479
- } else {
1480
- if (!a.shortSwipes) {
1481
- e.slideTo(e.activeIndex);
1482
- return;
1483
- }
1484
- e.navigation && (f.target === e.navigation.nextEl || f.target === e.navigation.prevEl) ? f.target === e.navigation.nextEl ? e.slideTo(m + d) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(u !== null ? u : m + d), e.swipeDirection === "prev" && e.slideTo(x !== null ? x : m));
1485
- }
1486
- }
1487
- function fe() {
1488
- const t = this, {
1489
- params: e,
1490
- el: i
1491
- } = t;
1492
- if (i && i.offsetWidth === 0) return;
1493
- e.breakpoints && t.setBreakpoint();
1494
- const {
1495
- allowSlideNext: s,
1496
- allowSlidePrev: a,
1497
- snapGrid: r
1498
- } = t, o = t.virtual && t.params.virtual.enabled;
1499
- t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
1500
- const l = o && e.loop;
1501
- (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !l ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !o ? 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(() => {
1502
- t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1503
- }, 500)), t.allowSlidePrev = a, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
1504
- }
1505
- function zt(t) {
1506
- const e = this;
1507
- e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1508
- }
1509
- function kt() {
1510
- const t = this, {
1511
- wrapperEl: e,
1512
- rtlTranslate: i,
1513
- enabled: s
1514
- } = t;
1515
- if (!s) return;
1516
- t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
1517
- let a;
1518
- const r = t.maxTranslate() - t.minTranslate();
1519
- r === 0 ? a = 0 : a = (t.translate - t.minTranslate()) / r, a !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1520
- }
1521
- function It(t) {
1522
- const e = this;
1523
- U(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1524
- }
1525
- let ue = !1;
1526
- function At() {
1527
- }
1528
- const xe = (t, e) => {
1529
- const i = _(), {
1530
- params: s,
1531
- el: a,
1532
- wrapperEl: r,
1533
- device: o
1534
- } = t, l = !!s.nested, n = e === "on" ? "addEventListener" : "removeEventListener", f = e;
1535
- a[n]("pointerdown", t.onTouchStart, {
1536
- passive: !1
1537
- }), i[n]("pointermove", t.onTouchMove, {
1538
- passive: !1,
1539
- capture: l
1540
- }), i[n]("pointerup", t.onTouchEnd, {
1541
- passive: !0
1542
- }), i[n]("pointercancel", t.onTouchEnd, {
1543
- passive: !0
1544
- }), i[n]("pointerout", t.onTouchEnd, {
1545
- passive: !0
1546
- }), i[n]("pointerleave", t.onTouchEnd, {
1547
- passive: !0
1548
- }), i[n]("contextmenu", t.onTouchEnd, {
1549
- passive: !0
1550
- }), (s.preventClicks || s.preventClicksPropagation) && a[n]("click", t.onClick, !0), s.cssMode && r[n]("scroll", t.onScroll), s.updateOnWindowResize ? t[f](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", fe, !0) : t[f]("observerUpdate", fe, !0), a[n]("load", t.onLoad, {
1551
- capture: !0
1552
- });
1553
- };
1554
- function Ot() {
1555
- const t = this, e = _(), {
1556
- params: i
1557
- } = t;
1558
- t.onTouchStart = Mt.bind(t), t.onTouchMove = Pt.bind(t), t.onTouchEnd = Lt.bind(t), i.cssMode && (t.onScroll = kt.bind(t)), t.onClick = zt.bind(t), t.onLoad = It.bind(t), ue || (e.addEventListener("touchstart", At), ue = !0), xe(t, "on");
1559
- }
1560
- function Dt() {
1561
- xe(this, "off");
1562
- }
1563
- var Bt = {
1564
- attachEvents: Ot,
1565
- detachEvents: Dt
1566
- };
1567
- const me = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1568
- function $t() {
1569
- const t = this, {
1570
- realIndex: e,
1571
- initialized: i,
1572
- params: s,
1573
- el: a
1574
- } = t, r = s.breakpoints;
1575
- if (!r || r && Object.keys(r).length === 0) return;
1576
- const o = t.getBreakpoint(r, t.params.breakpointsBase, t.el);
1577
- if (!o || t.currentBreakpoint === o) return;
1578
- const n = (o in r ? r[o] : void 0) || t.originalParams, f = me(t, s), g = me(t, n), h = s.enabled;
1579
- f && !g ? (a.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !f && g && (a.classList.add(`${s.containerModifierClass}grid`), (n.grid.fill && n.grid.fill === "column" || !n.grid.fill && s.grid.fill === "column") && a.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), ["navigation", "pagination", "scrollbar"].forEach((y) => {
1580
- if (typeof n[y] > "u") return;
1581
- const d = s[y] && s[y].enabled, p = n[y] && n[y].enabled;
1582
- d && !p && t[y].disable(), !d && p && t[y].enable();
1583
- });
1584
- const S = n.direction && n.direction !== s.direction, m = s.loop && (n.slidesPerView !== s.slidesPerView || S), b = s.loop;
1585
- S && i && t.changeDirection(), F(t.params, n);
1586
- const u = t.params.enabled, x = t.params.loop;
1587
- Object.assign(t, {
1588
- allowTouchMove: t.params.allowTouchMove,
1589
- allowSlideNext: t.params.allowSlideNext,
1590
- allowSlidePrev: t.params.allowSlidePrev
1591
- }), h && !u ? t.disable() : !h && u && t.enable(), t.currentBreakpoint = o, t.emit("_beforeBreakpoint", n), i && (m ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !b && x ? (t.loopCreate(e), t.updateSlides()) : b && !x && t.loopDestroy()), t.emit("breakpoint", n);
1592
- }
1593
- function Gt(t, e, i) {
1594
- if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
1595
- let s = !1;
1596
- const a = G(), r = e === "window" ? a.innerHeight : i.clientHeight, o = Object.keys(t).map((l) => {
1597
- if (typeof l == "string" && l.indexOf("@") === 0) {
1598
- const n = parseFloat(l.substr(1));
1599
- return {
1600
- value: r * n,
1601
- point: l
1602
- };
1603
- }
1604
- return {
1605
- value: l,
1606
- point: l
1607
- };
1608
- });
1609
- o.sort((l, n) => parseInt(l.value, 10) - parseInt(n.value, 10));
1610
- for (let l = 0; l < o.length; l += 1) {
1611
- const {
1612
- point: n,
1613
- value: f
1614
- } = o[l];
1615
- e === "window" ? a.matchMedia(`(min-width: ${f}px)`).matches && (s = n) : f <= i.clientWidth && (s = n);
1616
- }
1617
- return s || "max";
1618
- }
1619
- var Vt = {
1620
- setBreakpoint: $t,
1621
- getBreakpoint: Gt
1622
- };
1623
- function Ft(t, e) {
1624
- const i = [];
1625
- return t.forEach((s) => {
1626
- typeof s == "object" ? Object.keys(s).forEach((a) => {
1627
- s[a] && i.push(e + a);
1628
- }) : typeof s == "string" && i.push(e + s);
1629
- }), i;
1630
- }
1631
- function Nt() {
1632
- const t = this, {
1633
- classNames: e,
1634
- params: i,
1635
- rtl: s,
1636
- el: a,
1637
- device: r
1638
- } = t, o = Ft(["initialized", i.direction, {
1639
- "free-mode": t.params.freeMode && i.freeMode.enabled
1640
- }, {
1641
- autoheight: i.autoHeight
1642
- }, {
1643
- rtl: s
1644
- }, {
1645
- grid: i.grid && i.grid.rows > 1
1646
- }, {
1647
- "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
1648
- }, {
1649
- android: r.android
1650
- }, {
1651
- ios: r.ios
1652
- }, {
1653
- "css-mode": i.cssMode
1654
- }, {
1655
- centered: i.cssMode && i.centeredSlides
1656
- }, {
1657
- "watch-progress": i.watchSlidesProgress
1658
- }], i.containerModifierClass);
1659
- e.push(...o), a.classList.add(...e), t.emitContainerClasses();
1660
- }
1661
- function _t() {
1662
- const t = this, {
1663
- el: e,
1664
- classNames: i
1665
- } = t;
1666
- e.classList.remove(...i), t.emitContainerClasses();
1667
- }
1668
- var Ht = {
1669
- addClasses: Nt,
1670
- removeClasses: _t
1671
- };
1672
- function Rt() {
1673
- const t = this, {
1674
- isLocked: e,
1675
- params: i
1676
- } = t, {
1677
- slidesOffsetBefore: s
1678
- } = i;
1679
- if (s) {
1680
- const a = t.slides.length - 1, r = t.slidesGrid[a] + t.slidesSizesGrid[a] + s * 2;
1681
- t.isLocked = t.size > r;
1682
- } else
1683
- t.isLocked = t.snapGrid.length === 1;
1684
- 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");
1685
- }
1686
- var jt = {
1687
- checkOverflow: Rt
1688
- }, ge = {
1689
- init: !0,
1690
- direction: "horizontal",
1691
- oneWayMovement: !1,
1692
- touchEventsTarget: "wrapper",
1693
- initialSlide: 0,
1694
- speed: 300,
1695
- cssMode: !1,
1696
- updateOnWindowResize: !0,
1697
- resizeObserver: !0,
1698
- nested: !1,
1699
- createElements: !1,
1700
- enabled: !0,
1701
- focusableElements: "input, select, option, textarea, button, video, label",
1702
- // Overrides
1703
- width: null,
1704
- height: null,
1705
- //
1706
- preventInteractionOnTransition: !1,
1707
- // ssr
1708
- userAgent: null,
1709
- url: null,
1710
- // To support iOS's swipe-to-go-back gesture (when being used in-app).
1711
- edgeSwipeDetection: !1,
1712
- edgeSwipeThreshold: 20,
1713
- // Autoheight
1714
- autoHeight: !1,
1715
- // Set wrapper width
1716
- setWrapperSize: !1,
1717
- // Virtual Translate
1718
- virtualTranslate: !1,
1719
- // Effects
1720
- effect: "slide",
1721
- // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1722
- // Breakpoints
1723
- breakpoints: void 0,
1724
- breakpointsBase: "window",
1725
- // Slides grid
1726
- spaceBetween: 0,
1727
- slidesPerView: 1,
1728
- slidesPerGroup: 1,
1729
- slidesPerGroupSkip: 0,
1730
- slidesPerGroupAuto: !1,
1731
- centeredSlides: !1,
1732
- centeredSlidesBounds: !1,
1733
- slidesOffsetBefore: 0,
1734
- // in px
1735
- slidesOffsetAfter: 0,
1736
- // in px
1737
- normalizeSlideIndex: !0,
1738
- centerInsufficientSlides: !1,
1739
- // Disable swiper and hide navigation when container not overflow
1740
- watchOverflow: !0,
1741
- // Round length
1742
- roundLengths: !1,
1743
- // Touches
1744
- touchRatio: 1,
1745
- touchAngle: 45,
1746
- simulateTouch: !0,
1747
- shortSwipes: !0,
1748
- longSwipes: !0,
1749
- longSwipesRatio: 0.5,
1750
- longSwipesMs: 300,
1751
- followFinger: !0,
1752
- allowTouchMove: !0,
1753
- threshold: 5,
1754
- touchMoveStopPropagation: !1,
1755
- touchStartPreventDefault: !0,
1756
- touchStartForcePreventDefault: !1,
1757
- touchReleaseOnEdges: !1,
1758
- // Unique Navigation Elements
1759
- uniqueNavElements: !0,
1760
- // Resistance
1761
- resistance: !0,
1762
- resistanceRatio: 0.85,
1763
- // Progress
1764
- watchSlidesProgress: !1,
1765
- // Cursor
1766
- grabCursor: !1,
1767
- // Clicks
1768
- preventClicks: !0,
1769
- preventClicksPropagation: !0,
1770
- slideToClickedSlide: !1,
1771
- // loop
1772
- loop: !1,
1773
- loopedSlides: null,
1774
- loopPreventsSliding: !0,
1775
- // rewind
1776
- rewind: !1,
1777
- // Swiping/no swiping
1778
- allowSlidePrev: !0,
1779
- allowSlideNext: !0,
1780
- swipeHandler: null,
1781
- // '.swipe-handler',
1782
- noSwiping: !0,
1783
- noSwipingClass: "swiper-no-swiping",
1784
- noSwipingSelector: null,
1785
- // Passive Listeners
1786
- passiveListeners: !0,
1787
- maxBackfaceHiddenSlides: 10,
1788
- // NS
1789
- containerModifierClass: "swiper-",
1790
- // NEW
1791
- slideClass: "swiper-slide",
1792
- slideActiveClass: "swiper-slide-active",
1793
- slideVisibleClass: "swiper-slide-visible",
1794
- slideNextClass: "swiper-slide-next",
1795
- slidePrevClass: "swiper-slide-prev",
1796
- wrapperClass: "swiper-wrapper",
1797
- lazyPreloaderClass: "swiper-lazy-preloader",
1798
- lazyPreloadPrevNext: 0,
1799
- // Callbacks
1800
- runCallbacksOnInit: !0,
1801
- // Internals
1802
- _emitClasses: !1
1803
- };
1804
- function qt(t, e) {
1805
- return function(s) {
1806
- s === void 0 && (s = {});
1807
- const a = Object.keys(s)[0], r = s[a];
1808
- if (typeof r != "object" || r === null) {
1809
- F(e, s);
1810
- return;
1811
- }
1812
- if (t[a] === !0 && (t[a] = {
1813
- enabled: !0
1814
- }), a === "navigation" && t[a] && t[a].enabled && !t[a].prevEl && !t[a].nextEl && (t[a].auto = !0), ["pagination", "scrollbar"].indexOf(a) >= 0 && t[a] && t[a].enabled && !t[a].el && (t[a].auto = !0), !(a in t && "enabled" in r)) {
1815
- F(e, s);
1816
- return;
1817
- }
1818
- typeof t[a] == "object" && !("enabled" in t[a]) && (t[a].enabled = !0), t[a] || (t[a] = {
1819
- enabled: !1
1820
- }), F(e, s);
1821
- };
1822
- }
1823
- const re = {
1824
- eventsEmitter: He,
1825
- update: Qe,
1826
- translate: at,
1827
- transition: dt,
1828
- slide: wt,
1829
- loop: xt,
1830
- grabCursor: Et,
1831
- events: Bt,
1832
- breakpoints: Vt,
1833
- checkOverflow: jt,
1834
- classes: Ht
1835
- }, ae = {};
1836
- class N {
1837
- constructor() {
1838
- let e, i;
1839
- for (var s = arguments.length, a = new Array(s), r = 0; r < s; r++)
1840
- a[r] = arguments[r];
1841
- a.length === 1 && a[0].constructor && Object.prototype.toString.call(a[0]).slice(8, -1) === "Object" ? i = a[0] : [e, i] = a, i || (i = {}), i = F({}, i), e && !i.el && (i.el = e);
1842
- const o = _();
1843
- if (i.el && typeof i.el == "string" && o.querySelectorAll(i.el).length > 1) {
1844
- const g = [];
1845
- return o.querySelectorAll(i.el).forEach((h) => {
1846
- const S = F({}, i, {
1847
- el: h
1848
- });
1849
- g.push(new N(S));
1850
- }), g;
1851
- }
1852
- const l = this;
1853
- l.__swiper__ = !0, l.support = be(), l.device = Ge({
1854
- userAgent: i.userAgent
1855
- }), l.browser = Fe(), l.eventsListeners = {}, l.eventsAnyListeners = [], l.modules = [...l.__modules__], i.modules && Array.isArray(i.modules) && l.modules.push(...i.modules);
1856
- const n = {};
1857
- l.modules.forEach((g) => {
1858
- g({
1859
- params: i,
1860
- swiper: l,
1861
- extendParams: qt(i, n),
1862
- on: l.on.bind(l),
1863
- once: l.once.bind(l),
1864
- off: l.off.bind(l),
1865
- emit: l.emit.bind(l)
1866
- });
1867
- });
1868
- const f = F({}, ge, n);
1869
- return l.params = F({}, f, ae, i), l.originalParams = F({}, l.params), l.passedParams = F({}, i), l.params && l.params.on && Object.keys(l.params.on).forEach((g) => {
1870
- l.on(g, l.params.on[g]);
1871
- }), l.params && l.params.onAny && l.onAny(l.params.onAny), Object.assign(l, {
1872
- enabled: l.params.enabled,
1873
- el: e,
1874
- // Classes
1875
- classNames: [],
1876
- // Slides
1877
- slides: [],
1878
- slidesGrid: [],
1879
- snapGrid: [],
1880
- slidesSizesGrid: [],
1881
- // isDirection
1882
- isHorizontal() {
1883
- return l.params.direction === "horizontal";
1884
- },
1885
- isVertical() {
1886
- return l.params.direction === "vertical";
1887
- },
1888
- // Indexes
1889
- activeIndex: 0,
1890
- realIndex: 0,
1891
- //
1892
- isBeginning: !0,
1893
- isEnd: !1,
1894
- // Props
1895
- translate: 0,
1896
- previousTranslate: 0,
1897
- progress: 0,
1898
- velocity: 0,
1899
- animating: !1,
1900
- cssOverflowAdjustment() {
1901
- return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
1902
- },
1903
- // Locks
1904
- allowSlideNext: l.params.allowSlideNext,
1905
- allowSlidePrev: l.params.allowSlidePrev,
1906
- // Touch Events
1907
- touchEventsData: {
1908
- isTouched: void 0,
1909
- isMoved: void 0,
1910
- allowTouchCallbacks: void 0,
1911
- touchStartTime: void 0,
1912
- isScrolling: void 0,
1913
- currentTranslate: void 0,
1914
- startTranslate: void 0,
1915
- allowThresholdMove: void 0,
1916
- // Form elements to match
1917
- focusableElements: l.params.focusableElements,
1918
- // Last click time
1919
- lastClickTime: 0,
1920
- clickTimeout: void 0,
1921
- // Velocities
1922
- velocities: [],
1923
- allowMomentumBounce: void 0,
1924
- startMoving: void 0,
1925
- evCache: []
1926
- },
1927
- // Clicks
1928
- allowClick: !0,
1929
- // Touches
1930
- allowTouchMove: l.params.allowTouchMove,
1931
- touches: {
1932
- startX: 0,
1933
- startY: 0,
1934
- currentX: 0,
1935
- currentY: 0,
1936
- diff: 0
1937
- },
1938
- // Images
1939
- imagesToLoad: [],
1940
- imagesLoaded: 0
1941
- }), l.emit("_swiper"), l.params.init && l.init(), l;
1942
- }
1943
- getSlideIndex(e) {
1944
- const {
1945
- slidesEl: i,
1946
- params: s
1947
- } = this, a = R(i, `.${s.slideClass}, swiper-slide`), r = W(a[0]);
1948
- return W(e) - r;
1949
- }
1950
- getSlideIndexByData(e) {
1951
- return this.getSlideIndex(this.slides.filter((i) => i.getAttribute("data-swiper-slide-index") * 1 === e)[0]);
1952
- }
1953
- recalcSlides() {
1954
- const e = this, {
1955
- slidesEl: i,
1956
- params: s
1957
- } = e;
1958
- e.slides = R(i, `.${s.slideClass}, swiper-slide`);
1959
- }
1960
- enable() {
1961
- const e = this;
1962
- e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
1963
- }
1964
- disable() {
1965
- const e = this;
1966
- e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
1967
- }
1968
- setProgress(e, i) {
1969
- const s = this;
1970
- e = Math.min(Math.max(e, 0), 1);
1971
- const a = s.minTranslate(), o = (s.maxTranslate() - a) * e + a;
1972
- s.translateTo(o, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
1973
- }
1974
- emitContainerClasses() {
1975
- const e = this;
1976
- if (!e.params._emitClasses || !e.el) return;
1977
- const i = e.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(e.params.containerModifierClass) === 0);
1978
- e.emit("_containerClasses", i.join(" "));
1979
- }
1980
- getSlideClasses(e) {
1981
- const i = this;
1982
- return i.destroyed ? "" : e.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(i.params.slideClass) === 0).join(" ");
1983
- }
1984
- emitSlidesClasses() {
1985
- const e = this;
1986
- if (!e.params._emitClasses || !e.el) return;
1987
- const i = [];
1988
- e.slides.forEach((s) => {
1989
- const a = e.getSlideClasses(s);
1990
- i.push({
1991
- slideEl: s,
1992
- classNames: a
1993
- }), e.emit("_slideClass", s, a);
1994
- }), e.emit("_slideClasses", i);
1995
- }
1996
- slidesPerViewDynamic(e, i) {
1997
- e === void 0 && (e = "current"), i === void 0 && (i = !1);
1998
- const s = this, {
1999
- params: a,
2000
- slides: r,
2001
- slidesGrid: o,
2002
- slidesSizesGrid: l,
2003
- size: n,
2004
- activeIndex: f
2005
- } = s;
2006
- let g = 1;
2007
- if (typeof a.slidesPerView == "number") return a.slidesPerView;
2008
- if (a.centeredSlides) {
2009
- let h = r[f] ? r[f].swiperSlideSize : 0, S;
2010
- for (let m = f + 1; m < r.length; m += 1)
2011
- r[m] && !S && (h += r[m].swiperSlideSize, g += 1, h > n && (S = !0));
2012
- for (let m = f - 1; m >= 0; m -= 1)
2013
- r[m] && !S && (h += r[m].swiperSlideSize, g += 1, h > n && (S = !0));
2014
- } else if (e === "current")
2015
- for (let h = f + 1; h < r.length; h += 1)
2016
- (i ? o[h] + l[h] - o[f] < n : o[h] - o[f] < n) && (g += 1);
2017
- else
2018
- for (let h = f - 1; h >= 0; h -= 1)
2019
- o[f] - o[h] < n && (g += 1);
2020
- return g;
2021
- }
2022
- update() {
2023
- const e = this;
2024
- if (!e || e.destroyed) return;
2025
- const {
2026
- snapGrid: i,
2027
- params: s
2028
- } = e;
2029
- s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((o) => {
2030
- o.complete && U(e, o);
2031
- }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2032
- function a() {
2033
- const o = e.rtlTranslate ? e.translate * -1 : e.translate, l = Math.min(Math.max(o, e.maxTranslate()), e.minTranslate());
2034
- e.setTranslate(l), e.updateActiveIndex(), e.updateSlidesClasses();
2035
- }
2036
- let r;
2037
- if (s.freeMode && s.freeMode.enabled && !s.cssMode)
2038
- a(), s.autoHeight && e.updateAutoHeight();
2039
- else {
2040
- if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
2041
- const o = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
2042
- r = e.slideTo(o.length - 1, 0, !1, !0);
2043
- } else
2044
- r = e.slideTo(e.activeIndex, 0, !1, !0);
2045
- r || a();
2046
- }
2047
- s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
2048
- }
2049
- changeDirection(e, i) {
2050
- i === void 0 && (i = !0);
2051
- const s = this, a = s.params.direction;
2052
- return e || (e = a === "horizontal" ? "vertical" : "horizontal"), e === a || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${a}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((r) => {
2053
- e === "vertical" ? r.style.width = "" : r.style.height = "";
2054
- }), s.emit("changeDirection"), i && s.update()), s;
2055
- }
2056
- changeLanguageDirection(e) {
2057
- const i = this;
2058
- 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());
2059
- }
2060
- mount(e) {
2061
- const i = this;
2062
- if (i.mounted) return !0;
2063
- let s = e || i.params.el;
2064
- if (typeof s == "string" && (s = document.querySelector(s)), !s)
2065
- return !1;
2066
- s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === "SWIPER-CONTAINER" && (i.isElement = !0);
2067
- const a = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2068
- let o = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(a()) : R(s, a())[0];
2069
- return !o && i.params.createElements && (o = J("div", i.params.wrapperClass), s.append(o), R(s, `.${i.params.slideClass}`).forEach((l) => {
2070
- o.append(l);
2071
- })), Object.assign(i, {
2072
- el: s,
2073
- wrapperEl: o,
2074
- slidesEl: i.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : o,
2075
- hostEl: i.isElement ? s.parentNode.host : s,
2076
- mounted: !0,
2077
- // RTL
2078
- rtl: s.dir.toLowerCase() === "rtl" || q(s, "direction") === "rtl",
2079
- rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || q(s, "direction") === "rtl"),
2080
- wrongRTL: q(o, "display") === "-webkit-box"
2081
- }), !0;
2082
- }
2083
- init(e) {
2084
- const i = this;
2085
- if (i.initialized || i.mount(e) === !1) return i;
2086
- 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(), i.attachEvents();
2087
- const a = [...i.el.querySelectorAll('[loading="lazy"]')];
2088
- return i.isElement && a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), a.forEach((r) => {
2089
- r.complete ? U(i, r) : r.addEventListener("load", (o) => {
2090
- U(i, o.target);
2091
- });
2092
- }), le(i), i.initialized = !0, le(i), i.emit("init"), i.emit("afterInit"), i;
2093
- }
2094
- destroy(e, i) {
2095
- e === void 0 && (e = !0), i === void 0 && (i = !0);
2096
- const s = this, {
2097
- params: a,
2098
- el: r,
2099
- wrapperEl: o,
2100
- slides: l
2101
- } = s;
2102
- return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), a.loop && s.loopDestroy(), i && (s.removeClasses(), r.removeAttribute("style"), o.removeAttribute("style"), l && l.length && l.forEach((n) => {
2103
- n.classList.remove(a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass), n.removeAttribute("style"), n.removeAttribute("data-swiper-slide-index");
2104
- })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((n) => {
2105
- s.off(n);
2106
- }), e !== !1 && (s.el.swiper = null, Le(s)), s.destroyed = !0), null;
2107
- }
2108
- static extendDefaults(e) {
2109
- F(ae, e);
2110
- }
2111
- static get extendedDefaults() {
2112
- return ae;
2113
- }
2114
- static get defaults() {
2115
- return ge;
2116
- }
2117
- static installModule(e) {
2118
- N.prototype.__modules__ || (N.prototype.__modules__ = []);
2119
- const i = N.prototype.__modules__;
2120
- typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
2121
- }
2122
- static use(e) {
2123
- return Array.isArray(e) ? (e.forEach((i) => N.installModule(i)), N) : (N.installModule(e), N);
2124
- }
2125
- }
2126
- Object.keys(re).forEach((t) => {
2127
- Object.keys(re[t]).forEach((e) => {
2128
- N.prototype[e] = re[t][e];
2129
- });
2130
- });
2131
- N.use([Ne, _e]);
2132
- function de(t, e, i, s) {
2133
- return t.params.createElements && Object.keys(s).forEach((a) => {
2134
- if (!i[a] && i.auto === !0) {
2135
- let r = R(t.el, `.${s[a]}`)[0];
2136
- r || (r = J("div", s[a]), r.className = s[a], t.el.append(r)), i[a] = r, e[a] = r;
2137
- }
2138
- }), i;
2139
- }
2140
- function Wt(t) {
2141
- let {
2142
- swiper: e,
2143
- extendParams: i,
2144
- on: s,
2145
- emit: a
2146
- } = t;
2147
- i({
2148
- navigation: {
2149
- nextEl: null,
2150
- prevEl: null,
2151
- hideOnClick: !1,
2152
- disabledClass: "swiper-button-disabled",
2153
- hiddenClass: "swiper-button-hidden",
2154
- lockClass: "swiper-button-lock",
2155
- navigationDisabledClass: "swiper-navigation-disabled"
2156
- }
2157
- }), e.navigation = {
2158
- nextEl: null,
2159
- prevEl: null
2160
- };
2161
- const r = (u) => (Array.isArray(u) ? u : [u]).filter((x) => !!x);
2162
- function o(u) {
2163
- let x;
2164
- return u && typeof u == "string" && e.isElement && (x = e.el.querySelector(u), x) ? x : (u && (typeof u == "string" && (x = [...document.querySelectorAll(u)]), e.params.uniqueNavElements && typeof u == "string" && x.length > 1 && e.el.querySelectorAll(u).length === 1 && (x = e.el.querySelector(u))), u && !x ? u : x);
2165
- }
2166
- function l(u, x) {
2167
- const y = e.params.navigation;
2168
- u = r(u), u.forEach((d) => {
2169
- d && (d.classList[x ? "add" : "remove"](...y.disabledClass.split(" ")), d.tagName === "BUTTON" && (d.disabled = x), e.params.watchOverflow && e.enabled && d.classList[e.isLocked ? "add" : "remove"](y.lockClass));
2170
- });
2171
- }
2172
- function n() {
2173
- const {
2174
- nextEl: u,
2175
- prevEl: x
2176
- } = e.navigation;
2177
- if (e.params.loop) {
2178
- l(x, !1), l(u, !1);
2179
- return;
2180
- }
2181
- l(x, e.isBeginning && !e.params.rewind), l(u, e.isEnd && !e.params.rewind);
2182
- }
2183
- function f(u) {
2184
- u.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), a("navigationPrev"));
2185
- }
2186
- function g(u) {
2187
- u.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), a("navigationNext"));
2188
- }
2189
- function h() {
2190
- const u = e.params.navigation;
2191
- if (e.params.navigation = de(e, e.originalParams.navigation, e.params.navigation, {
2192
- nextEl: "swiper-button-next",
2193
- prevEl: "swiper-button-prev"
2194
- }), !(u.nextEl || u.prevEl)) return;
2195
- let x = o(u.nextEl), y = o(u.prevEl);
2196
- Object.assign(e.navigation, {
2197
- nextEl: x,
2198
- prevEl: y
2199
- }), x = r(x), y = r(y);
2200
- const d = (p, v) => {
2201
- p && p.addEventListener("click", v === "next" ? g : f), !e.enabled && p && p.classList.add(...u.lockClass.split(" "));
2202
- };
2203
- x.forEach((p) => d(p, "next")), y.forEach((p) => d(p, "prev"));
2204
- }
2205
- function S() {
2206
- let {
2207
- nextEl: u,
2208
- prevEl: x
2209
- } = e.navigation;
2210
- u = r(u), x = r(x);
2211
- const y = (d, p) => {
2212
- d.removeEventListener("click", p === "next" ? g : f), d.classList.remove(...e.params.navigation.disabledClass.split(" "));
2213
- };
2214
- u.forEach((d) => y(d, "next")), x.forEach((d) => y(d, "prev"));
2215
- }
2216
- s("init", () => {
2217
- e.params.navigation.enabled === !1 ? b() : (h(), n());
2218
- }), s("toEdge fromEdge lock unlock", () => {
2219
- n();
2220
- }), s("destroy", () => {
2221
- S();
2222
- }), s("enable disable", () => {
2223
- let {
2224
- nextEl: u,
2225
- prevEl: x
2226
- } = e.navigation;
2227
- if (u = r(u), x = r(x), e.enabled) {
2228
- n();
2229
- return;
2230
- }
2231
- [...u, ...x].filter((y) => !!y).forEach((y) => y.classList.add(e.params.navigation.lockClass));
2232
- }), s("click", (u, x) => {
2233
- let {
2234
- nextEl: y,
2235
- prevEl: d
2236
- } = e.navigation;
2237
- y = r(y), d = r(d);
2238
- const p = x.target;
2239
- if (e.params.navigation.hideOnClick && !d.includes(p) && !y.includes(p)) {
2240
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === p || e.pagination.el.contains(p))) return;
2241
- let v;
2242
- y.length ? v = y[0].classList.contains(e.params.navigation.hiddenClass) : d.length && (v = d[0].classList.contains(e.params.navigation.hiddenClass)), a(v === !0 ? "navigationShow" : "navigationHide"), [...y, ...d].filter((E) => !!E).forEach((E) => E.classList.toggle(e.params.navigation.hiddenClass));
2243
- }
2244
- });
2245
- const m = () => {
2246
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), h(), n();
2247
- }, b = () => {
2248
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), S();
2249
- };
2250
- Object.assign(e.navigation, {
2251
- enable: m,
2252
- disable: b,
2253
- update: n,
2254
- init: h,
2255
- destroy: S
2256
- });
2257
- }
2258
- function j(t) {
2259
- return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
2260
- }
2261
- function Xt(t) {
2262
- let {
2263
- swiper: e,
2264
- extendParams: i,
2265
- on: s,
2266
- emit: a
2267
- } = t;
2268
- const r = "swiper-pagination";
2269
- i({
2270
- pagination: {
2271
- el: null,
2272
- bulletElement: "span",
2273
- clickable: !1,
2274
- hideOnClick: !1,
2275
- renderBullet: null,
2276
- renderProgressbar: null,
2277
- renderFraction: null,
2278
- renderCustom: null,
2279
- progressbarOpposite: !1,
2280
- type: "bullets",
2281
- // 'bullets' or 'progressbar' or 'fraction' or 'custom'
2282
- dynamicBullets: !1,
2283
- dynamicMainBullets: 1,
2284
- formatFractionCurrent: (d) => d,
2285
- formatFractionTotal: (d) => d,
2286
- bulletClass: `${r}-bullet`,
2287
- bulletActiveClass: `${r}-bullet-active`,
2288
- modifierClass: `${r}-`,
2289
- currentClass: `${r}-current`,
2290
- totalClass: `${r}-total`,
2291
- hiddenClass: `${r}-hidden`,
2292
- progressbarFillClass: `${r}-progressbar-fill`,
2293
- progressbarOppositeClass: `${r}-progressbar-opposite`,
2294
- clickableClass: `${r}-clickable`,
2295
- lockClass: `${r}-lock`,
2296
- horizontalClass: `${r}-horizontal`,
2297
- verticalClass: `${r}-vertical`,
2298
- paginationDisabledClass: `${r}-disabled`
2299
- }
2300
- }), e.pagination = {
2301
- el: null,
2302
- bullets: []
2303
- };
2304
- let o, l = 0;
2305
- const n = (d) => (Array.isArray(d) ? d : [d]).filter((p) => !!p);
2306
- function f() {
2307
- return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
2308
- }
2309
- function g(d, p) {
2310
- const {
2311
- bulletActiveClass: v
2312
- } = e.params.pagination;
2313
- d && (d = d[`${p === "prev" ? "previous" : "next"}ElementSibling`], d && (d.classList.add(`${v}-${p}`), d = d[`${p === "prev" ? "previous" : "next"}ElementSibling`], d && d.classList.add(`${v}-${p}-${p}`)));
2314
- }
2315
- function h(d) {
2316
- const p = d.target.closest(j(e.params.pagination.bulletClass));
2317
- if (!p)
2318
- return;
2319
- d.preventDefault();
2320
- const v = W(p) * e.params.slidesPerGroup;
2321
- if (e.params.loop) {
2322
- if (e.realIndex === v) return;
2323
- const E = e.realIndex, k = e.getSlideIndexByData(v), P = e.getSlideIndexByData(e.realIndex), A = (z) => {
2324
- const D = e.activeIndex;
2325
- e.loopFix({
2326
- direction: z,
2327
- activeSlideIndex: k,
2328
- slideTo: !1
2329
- });
2330
- const C = e.activeIndex;
2331
- D === C && e.slideToLoop(E, 0, !1, !0);
2332
- };
2333
- if (k > e.slides.length - e.loopedSlides)
2334
- A(k > P ? "next" : "prev");
2335
- else if (e.params.centeredSlides) {
2336
- const z = e.params.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(parseFloat(e.params.slidesPerView, 10));
2337
- k < Math.floor(z / 2) && A("prev");
2338
- }
2339
- e.slideToLoop(v);
2340
- } else
2341
- e.slideTo(v);
2342
- }
2343
- function S() {
2344
- const d = e.rtl, p = e.params.pagination;
2345
- if (f()) return;
2346
- let v = e.pagination.el;
2347
- v = n(v);
2348
- let E, k;
2349
- const P = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, A = e.params.loop ? Math.ceil(P / e.params.slidesPerGroup) : e.snapGrid.length;
2350
- if (e.params.loop ? (k = e.previousRealIndex || 0, E = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (E = e.snapIndex, k = e.previousSnapIndex) : (k = e.previousIndex || 0, E = e.activeIndex || 0), p.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
2351
- const z = e.pagination.bullets;
2352
- let D, C, T;
2353
- if (p.dynamicBullets && (o = ne(z[0], e.isHorizontal() ? "width" : "height"), v.forEach((M) => {
2354
- M.style[e.isHorizontal() ? "width" : "height"] = `${o * (p.dynamicMainBullets + 4)}px`;
2355
- }), p.dynamicMainBullets > 1 && k !== void 0 && (l += E - (k || 0), l > p.dynamicMainBullets - 1 ? l = p.dynamicMainBullets - 1 : l < 0 && (l = 0)), D = Math.max(E - l, 0), C = D + (Math.min(z.length, p.dynamicMainBullets) - 1), T = (C + D) / 2), z.forEach((M) => {
2356
- const c = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((w) => `${p.bulletActiveClass}${w}`)].map((w) => typeof w == "string" && w.includes(" ") ? w.split(" ") : w).flat();
2357
- M.classList.remove(...c);
2358
- }), v.length > 1)
2359
- z.forEach((M) => {
2360
- const c = W(M);
2361
- c === E ? M.classList.add(...p.bulletActiveClass.split(" ")) : e.isElement && M.setAttribute("part", "bullet"), p.dynamicBullets && (c >= D && c <= C && M.classList.add(...`${p.bulletActiveClass}-main`.split(" ")), c === D && g(M, "prev"), c === C && g(M, "next"));
2362
- });
2363
- else {
2364
- const M = z[E];
2365
- if (M && M.classList.add(...p.bulletActiveClass.split(" ")), e.isElement && z.forEach((c, w) => {
2366
- c.setAttribute("part", w === E ? "bullet-active" : "bullet");
2367
- }), p.dynamicBullets) {
2368
- const c = z[D], w = z[C];
2369
- for (let L = D; L <= C; L += 1)
2370
- z[L] && z[L].classList.add(...`${p.bulletActiveClass}-main`.split(" "));
2371
- g(c, "prev"), g(w, "next");
2372
- }
2373
- }
2374
- if (p.dynamicBullets) {
2375
- const M = Math.min(z.length, p.dynamicMainBullets + 4), c = (o * M - o) / 2 - T * o, w = d ? "right" : "left";
2376
- z.forEach((L) => {
2377
- L.style[e.isHorizontal() ? w : "top"] = `${c}px`;
2378
- });
2379
- }
2380
- }
2381
- v.forEach((z, D) => {
2382
- if (p.type === "fraction" && (z.querySelectorAll(j(p.currentClass)).forEach((C) => {
2383
- C.textContent = p.formatFractionCurrent(E + 1);
2384
- }), z.querySelectorAll(j(p.totalClass)).forEach((C) => {
2385
- C.textContent = p.formatFractionTotal(A);
2386
- })), p.type === "progressbar") {
2387
- let C;
2388
- p.progressbarOpposite ? C = e.isHorizontal() ? "vertical" : "horizontal" : C = e.isHorizontal() ? "horizontal" : "vertical";
2389
- const T = (E + 1) / A;
2390
- let M = 1, c = 1;
2391
- C === "horizontal" ? M = T : c = T, z.querySelectorAll(j(p.progressbarFillClass)).forEach((w) => {
2392
- w.style.transform = `translate3d(0,0,0) scaleX(${M}) scaleY(${c})`, w.style.transitionDuration = `${e.params.speed}ms`;
2393
- });
2394
- }
2395
- p.type === "custom" && p.renderCustom ? (z.innerHTML = p.renderCustom(e, E + 1, A), D === 0 && a("paginationRender", z)) : (D === 0 && a("paginationRender", z), a("paginationUpdate", z)), e.params.watchOverflow && e.enabled && z.classList[e.isLocked ? "add" : "remove"](p.lockClass);
2396
- });
2397
- }
2398
- function m() {
2399
- const d = e.params.pagination;
2400
- if (f()) return;
2401
- const p = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length;
2402
- let v = e.pagination.el;
2403
- v = n(v);
2404
- let E = "";
2405
- if (d.type === "bullets") {
2406
- let k = e.params.loop ? Math.ceil(p / e.params.slidesPerGroup) : e.snapGrid.length;
2407
- e.params.freeMode && e.params.freeMode.enabled && k > p && (k = p);
2408
- for (let P = 0; P < k; P += 1)
2409
- d.renderBullet ? E += d.renderBullet.call(e, P, d.bulletClass) : E += `<${d.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${d.bulletClass}"></${d.bulletElement}>`;
2410
- }
2411
- d.type === "fraction" && (d.renderFraction ? E = d.renderFraction.call(e, d.currentClass, d.totalClass) : E = `<span class="${d.currentClass}"></span> / <span class="${d.totalClass}"></span>`), d.type === "progressbar" && (d.renderProgressbar ? E = d.renderProgressbar.call(e, d.progressbarFillClass) : E = `<span class="${d.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((k) => {
2412
- d.type !== "custom" && (k.innerHTML = E || ""), d.type === "bullets" && e.pagination.bullets.push(...k.querySelectorAll(j(d.bulletClass)));
2413
- }), d.type !== "custom" && a("paginationRender", v[0]);
2414
- }
2415
- function b() {
2416
- e.params.pagination = de(e, e.originalParams.pagination, e.params.pagination, {
2417
- el: "swiper-pagination"
2418
- });
2419
- const d = e.params.pagination;
2420
- if (!d.el) return;
2421
- let p;
2422
- typeof d.el == "string" && e.isElement && (p = e.el.querySelector(d.el)), !p && typeof d.el == "string" && (p = [...document.querySelectorAll(d.el)]), p || (p = d.el), !(!p || p.length === 0) && (e.params.uniqueNavElements && typeof d.el == "string" && Array.isArray(p) && p.length > 1 && (p = [...e.el.querySelectorAll(d.el)], p.length > 1 && (p = p.filter((v) => ve(v, ".swiper")[0] === e.el)[0])), Array.isArray(p) && p.length === 1 && (p = p[0]), Object.assign(e.pagination, {
2423
- el: p
2424
- }), p = n(p), p.forEach((v) => {
2425
- d.type === "bullets" && d.clickable && v.classList.add(...(d.clickableClass || "").split(" ")), v.classList.add(d.modifierClass + d.type), v.classList.add(e.isHorizontal() ? d.horizontalClass : d.verticalClass), d.type === "bullets" && d.dynamicBullets && (v.classList.add(`${d.modifierClass}${d.type}-dynamic`), l = 0, d.dynamicMainBullets < 1 && (d.dynamicMainBullets = 1)), d.type === "progressbar" && d.progressbarOpposite && v.classList.add(d.progressbarOppositeClass), d.clickable && v.addEventListener("click", h), e.enabled || v.classList.add(d.lockClass);
2426
- }));
2427
- }
2428
- function u() {
2429
- const d = e.params.pagination;
2430
- if (f()) return;
2431
- let p = e.pagination.el;
2432
- p && (p = n(p), p.forEach((v) => {
2433
- v.classList.remove(d.hiddenClass), v.classList.remove(d.modifierClass + d.type), v.classList.remove(e.isHorizontal() ? d.horizontalClass : d.verticalClass), d.clickable && (v.classList.remove(...(d.clickableClass || "").split(" ")), v.removeEventListener("click", h));
2434
- })), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...d.bulletActiveClass.split(" ")));
2435
- }
2436
- s("changeDirection", () => {
2437
- if (!e.pagination || !e.pagination.el) return;
2438
- const d = e.params.pagination;
2439
- let {
2440
- el: p
2441
- } = e.pagination;
2442
- p = n(p), p.forEach((v) => {
2443
- v.classList.remove(d.horizontalClass, d.verticalClass), v.classList.add(e.isHorizontal() ? d.horizontalClass : d.verticalClass);
2444
- });
2445
- }), s("init", () => {
2446
- e.params.pagination.enabled === !1 ? y() : (b(), m(), S());
2447
- }), s("activeIndexChange", () => {
2448
- typeof e.snapIndex > "u" && S();
2449
- }), s("snapIndexChange", () => {
2450
- S();
2451
- }), s("snapGridLengthChange", () => {
2452
- m(), S();
2453
- }), s("destroy", () => {
2454
- u();
2455
- }), s("enable disable", () => {
2456
- let {
2457
- el: d
2458
- } = e.pagination;
2459
- d && (d = n(d), d.forEach((p) => p.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
2460
- }), s("lock unlock", () => {
2461
- S();
2462
- }), s("click", (d, p) => {
2463
- const v = p.target, E = n(e.pagination.el);
2464
- if (e.params.pagination.el && e.params.pagination.hideOnClick && E && E.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
2465
- if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
2466
- const k = E[0].classList.contains(e.params.pagination.hiddenClass);
2467
- a(k === !0 ? "paginationShow" : "paginationHide"), E.forEach((P) => P.classList.toggle(e.params.pagination.hiddenClass));
2468
- }
2469
- });
2470
- const x = () => {
2471
- e.el.classList.remove(e.params.pagination.paginationDisabledClass);
2472
- let {
2473
- el: d
2474
- } = e.pagination;
2475
- d && (d = n(d), d.forEach((p) => p.classList.remove(e.params.pagination.paginationDisabledClass))), b(), m(), S();
2476
- }, y = () => {
2477
- e.el.classList.add(e.params.pagination.paginationDisabledClass);
2478
- let {
2479
- el: d
2480
- } = e.pagination;
2481
- d && (d = n(d), d.forEach((p) => p.classList.add(e.params.pagination.paginationDisabledClass))), u();
2482
- };
2483
- Object.assign(e.pagination, {
2484
- enable: x,
2485
- disable: y,
2486
- render: m,
2487
- update: S,
2488
- init: b,
2489
- destroy: u
2490
- });
2491
- }
2492
- function Yt(t) {
2493
- let {
2494
- swiper: e,
2495
- extendParams: i,
2496
- on: s,
2497
- emit: a
2498
- } = t;
2499
- const r = _();
2500
- let o = !1, l = null, n = null, f, g, h, S;
2501
- i({
2502
- scrollbar: {
2503
- el: null,
2504
- dragSize: "auto",
2505
- hide: !1,
2506
- draggable: !1,
2507
- snapOnRelease: !0,
2508
- lockClass: "swiper-scrollbar-lock",
2509
- dragClass: "swiper-scrollbar-drag",
2510
- scrollbarDisabledClass: "swiper-scrollbar-disabled",
2511
- horizontalClass: "swiper-scrollbar-horizontal",
2512
- verticalClass: "swiper-scrollbar-vertical"
2513
- }
2514
- }), e.scrollbar = {
2515
- el: null,
2516
- dragEl: null
2517
- };
2518
- function m() {
2519
- if (!e.params.scrollbar.el || !e.scrollbar.el) return;
2520
- const {
2521
- scrollbar: T,
2522
- rtlTranslate: M
2523
- } = e, {
2524
- dragEl: c,
2525
- el: w
2526
- } = T, L = e.params.scrollbar, I = e.params.loop ? e.progressLoop : e.progress;
2527
- let B = g, O = (h - g) * I;
2528
- M ? (O = -O, O > 0 ? (B = g - O, O = 0) : -O + g > h && (B = h + O)) : O < 0 ? (B = g + O, O = 0) : O + g > h && (B = h - O), e.isHorizontal() ? (c.style.transform = `translate3d(${O}px, 0, 0)`, c.style.width = `${B}px`) : (c.style.transform = `translate3d(0px, ${O}px, 0)`, c.style.height = `${B}px`), L.hide && (clearTimeout(l), w.style.opacity = 1, l = setTimeout(() => {
2529
- w.style.opacity = 0, w.style.transitionDuration = "400ms";
2530
- }, 1e3));
2531
- }
2532
- function b(T) {
2533
- !e.params.scrollbar.el || !e.scrollbar.el || (e.scrollbar.dragEl.style.transitionDuration = `${T}ms`);
2534
- }
2535
- function u() {
2536
- if (!e.params.scrollbar.el || !e.scrollbar.el) return;
2537
- const {
2538
- scrollbar: T
2539
- } = e, {
2540
- dragEl: M,
2541
- el: c
2542
- } = T;
2543
- M.style.width = "", M.style.height = "", h = e.isHorizontal() ? c.offsetWidth : c.offsetHeight, S = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), e.params.scrollbar.dragSize === "auto" ? g = h * S : g = parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? M.style.width = `${g}px` : M.style.height = `${g}px`, S >= 1 ? c.style.display = "none" : c.style.display = "", e.params.scrollbar.hide && (c.style.opacity = 0), e.params.watchOverflow && e.enabled && T.el.classList[e.isLocked ? "add" : "remove"](e.params.scrollbar.lockClass);
2544
- }
2545
- function x(T) {
2546
- return e.isHorizontal() ? T.clientX : T.clientY;
2547
- }
2548
- function y(T) {
2549
- const {
2550
- scrollbar: M,
2551
- rtlTranslate: c
2552
- } = e, {
2553
- el: w
2554
- } = M;
2555
- let L;
2556
- L = (x(T) - Ae(w)[e.isHorizontal() ? "left" : "top"] - (f !== null ? f : g / 2)) / (h - g), L = Math.max(Math.min(L, 1), 0), c && (L = 1 - L);
2557
- const I = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * L;
2558
- e.updateProgress(I), e.setTranslate(I), e.updateActiveIndex(), e.updateSlidesClasses();
2559
- }
2560
- function d(T) {
2561
- const M = e.params.scrollbar, {
2562
- scrollbar: c,
2563
- wrapperEl: w
2564
- } = e, {
2565
- el: L,
2566
- dragEl: I
2567
- } = c;
2568
- o = !0, f = T.target === I ? x(T) - T.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, T.preventDefault(), T.stopPropagation(), w.style.transitionDuration = "100ms", I.style.transitionDuration = "100ms", y(T), clearTimeout(n), L.style.transitionDuration = "0ms", M.hide && (L.style.opacity = 1), e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "none"), a("scrollbarDragStart", T);
2569
- }
2570
- function p(T) {
2571
- const {
2572
- scrollbar: M,
2573
- wrapperEl: c
2574
- } = e, {
2575
- el: w,
2576
- dragEl: L
2577
- } = M;
2578
- o && (T.preventDefault ? T.preventDefault() : T.returnValue = !1, y(T), c.style.transitionDuration = "0ms", w.style.transitionDuration = "0ms", L.style.transitionDuration = "0ms", a("scrollbarDragMove", T));
2579
- }
2580
- function v(T) {
2581
- const M = e.params.scrollbar, {
2582
- scrollbar: c,
2583
- wrapperEl: w
2584
- } = e, {
2585
- el: L
2586
- } = c;
2587
- o && (o = !1, e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "", w.style.transitionDuration = ""), M.hide && (clearTimeout(n), n = K(() => {
2588
- L.style.opacity = 0, L.style.transitionDuration = "400ms";
2589
- }, 1e3)), a("scrollbarDragEnd", T), M.snapOnRelease && e.slideToClosest());
2590
- }
2591
- function E(T) {
2592
- const {
2593
- scrollbar: M,
2594
- params: c
2595
- } = e, w = M.el;
2596
- if (!w) return;
2597
- const L = w, I = c.passiveListeners ? {
2598
- passive: !1,
2599
- capture: !1
2600
- } : !1, B = c.passiveListeners ? {
2601
- passive: !0,
2602
- capture: !1
2603
- } : !1;
2604
- if (!L) return;
2605
- const O = T === "on" ? "addEventListener" : "removeEventListener";
2606
- L[O]("pointerdown", d, I), r[O]("pointermove", p, I), r[O]("pointerup", v, B);
2607
- }
2608
- function k() {
2609
- !e.params.scrollbar.el || !e.scrollbar.el || E("on");
2610
- }
2611
- function P() {
2612
- !e.params.scrollbar.el || !e.scrollbar.el || E("off");
2613
- }
2614
- function A() {
2615
- const {
2616
- scrollbar: T,
2617
- el: M
2618
- } = e;
2619
- e.params.scrollbar = de(e, e.originalParams.scrollbar, e.params.scrollbar, {
2620
- el: "swiper-scrollbar"
2621
- });
2622
- const c = e.params.scrollbar;
2623
- if (!c.el) return;
2624
- let w;
2625
- typeof c.el == "string" && e.isElement && (w = e.el.querySelector(c.el)), !w && typeof c.el == "string" ? w = r.querySelectorAll(c.el) : w || (w = c.el), e.params.uniqueNavElements && typeof c.el == "string" && w.length > 1 && M.querySelectorAll(c.el).length === 1 && (w = M.querySelector(c.el)), w.length > 0 && (w = w[0]), w.classList.add(e.isHorizontal() ? c.horizontalClass : c.verticalClass);
2626
- let L;
2627
- w && (L = w.querySelector(`.${e.params.scrollbar.dragClass}`), L || (L = J("div", e.params.scrollbar.dragClass), w.append(L))), Object.assign(T, {
2628
- el: w,
2629
- dragEl: L
2630
- }), c.draggable && k(), w && w.classList[e.enabled ? "remove" : "add"](e.params.scrollbar.lockClass);
2631
- }
2632
- function z() {
2633
- const T = e.params.scrollbar, M = e.scrollbar.el;
2634
- M && M.classList.remove(e.isHorizontal() ? T.horizontalClass : T.verticalClass), P();
2635
- }
2636
- s("init", () => {
2637
- e.params.scrollbar.enabled === !1 ? C() : (A(), u(), m());
2638
- }), s("update resize observerUpdate lock unlock", () => {
2639
- u();
2640
- }), s("setTranslate", () => {
2641
- m();
2642
- }), s("setTransition", (T, M) => {
2643
- b(M);
2644
- }), s("enable disable", () => {
2645
- const {
2646
- el: T
2647
- } = e.scrollbar;
2648
- T && T.classList[e.enabled ? "remove" : "add"](e.params.scrollbar.lockClass);
2649
- }), s("destroy", () => {
2650
- z();
2651
- });
2652
- const D = () => {
2653
- e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass), e.scrollbar.el && e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass), A(), u(), m();
2654
- }, C = () => {
2655
- e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass), e.scrollbar.el && e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass), z();
2656
- };
2657
- Object.assign(e.scrollbar, {
2658
- enable: D,
2659
- disable: C,
2660
- updateSize: u,
2661
- setTranslate: m,
2662
- init: A,
2663
- destroy: z
2664
- });
2665
- }
2666
- function Ut(t) {
2667
- let {
2668
- swiper: e,
2669
- extendParams: i,
2670
- on: s
2671
- } = t;
2672
- i({
2673
- a11y: {
2674
- enabled: !0,
2675
- notificationClass: "swiper-notification",
2676
- prevSlideMessage: "Previous slide",
2677
- nextSlideMessage: "Next slide",
2678
- firstSlideMessage: "This is the first slide",
2679
- lastSlideMessage: "This is the last slide",
2680
- paginationBulletMessage: "Go to slide {{index}}",
2681
- slideLabelMessage: "{{index}} / {{slidesLength}}",
2682
- containerMessage: null,
2683
- containerRoleDescriptionMessage: null,
2684
- itemRoleDescriptionMessage: null,
2685
- slideRole: "group",
2686
- id: null
2687
- }
2688
- }), e.a11y = {
2689
- clicked: !1
2690
- };
2691
- let a = null;
2692
- function r(c) {
2693
- const w = a;
2694
- w.length !== 0 && (w.innerHTML = "", w.innerHTML = c);
2695
- }
2696
- const o = (c) => (Array.isArray(c) ? c : [c]).filter((w) => !!w);
2697
- function l(c) {
2698
- const w = () => Math.round(16 * Math.random()).toString(16);
2699
- return "x".repeat(c).replace(/x/g, w);
2700
- }
2701
- function n(c) {
2702
- c = o(c), c.forEach((w) => {
2703
- w.setAttribute("tabIndex", "0");
2704
- });
2705
- }
2706
- function f(c) {
2707
- c = o(c), c.forEach((w) => {
2708
- w.setAttribute("tabIndex", "-1");
2709
- });
2710
- }
2711
- function g(c, w) {
2712
- c = o(c), c.forEach((L) => {
2713
- L.setAttribute("role", w);
2714
- });
2715
- }
2716
- function h(c, w) {
2717
- c = o(c), c.forEach((L) => {
2718
- L.setAttribute("aria-roledescription", w);
2719
- });
2720
- }
2721
- function S(c, w) {
2722
- c = o(c), c.forEach((L) => {
2723
- L.setAttribute("aria-controls", w);
2724
- });
2725
- }
2726
- function m(c, w) {
2727
- c = o(c), c.forEach((L) => {
2728
- L.setAttribute("aria-label", w);
2729
- });
2730
- }
2731
- function b(c, w) {
2732
- c = o(c), c.forEach((L) => {
2733
- L.setAttribute("id", w);
2734
- });
2735
- }
2736
- function u(c, w) {
2737
- c = o(c), c.forEach((L) => {
2738
- L.setAttribute("aria-live", w);
2739
- });
2740
- }
2741
- function x(c) {
2742
- c = o(c), c.forEach((w) => {
2743
- w.setAttribute("aria-disabled", !0);
2744
- });
2745
- }
2746
- function y(c) {
2747
- c = o(c), c.forEach((w) => {
2748
- w.setAttribute("aria-disabled", !1);
2749
- });
2750
- }
2751
- function d(c) {
2752
- if (c.keyCode !== 13 && c.keyCode !== 32) return;
2753
- const w = e.params.a11y, L = c.target;
2754
- e.pagination && e.pagination.el && (L === e.pagination.el || e.pagination.el.contains(c.target)) && !c.target.matches(j(e.params.pagination.bulletClass)) || (e.navigation && e.navigation.nextEl && L === e.navigation.nextEl && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? r(w.lastSlideMessage) : r(w.nextSlideMessage)), e.navigation && e.navigation.prevEl && L === e.navigation.prevEl && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? r(w.firstSlideMessage) : r(w.prevSlideMessage)), e.pagination && L.matches(j(e.params.pagination.bulletClass)) && L.click());
2755
- }
2756
- function p() {
2757
- if (e.params.loop || e.params.rewind || !e.navigation) return;
2758
- const {
2759
- nextEl: c,
2760
- prevEl: w
2761
- } = e.navigation;
2762
- w && (e.isBeginning ? (x(w), f(w)) : (y(w), n(w))), c && (e.isEnd ? (x(c), f(c)) : (y(c), n(c)));
2763
- }
2764
- function v() {
2765
- return e.pagination && e.pagination.bullets && e.pagination.bullets.length;
2766
- }
2767
- function E() {
2768
- return v() && e.params.pagination.clickable;
2769
- }
2770
- function k() {
2771
- const c = e.params.a11y;
2772
- v() && e.pagination.bullets.forEach((w) => {
2773
- e.params.pagination.clickable && (n(w), e.params.pagination.renderBullet || (g(w, "button"), m(w, c.paginationBulletMessage.replace(/\{\{index\}\}/, W(w) + 1)))), w.matches(j(e.params.pagination.bulletActiveClass)) ? w.setAttribute("aria-current", "true") : w.removeAttribute("aria-current");
2774
- });
2775
- }
2776
- const P = (c, w, L) => {
2777
- n(c), c.tagName !== "BUTTON" && (g(c, "button"), c.addEventListener("keydown", d)), m(c, L), S(c, w);
2778
- }, A = () => {
2779
- e.a11y.clicked = !0;
2780
- }, z = () => {
2781
- requestAnimationFrame(() => {
2782
- requestAnimationFrame(() => {
2783
- e.destroyed || (e.a11y.clicked = !1);
2784
- });
2785
- });
2786
- }, D = (c) => {
2787
- if (e.a11y.clicked) return;
2788
- const w = c.target.closest(`.${e.params.slideClass}, swiper-slide`);
2789
- if (!w || !e.slides.includes(w)) return;
2790
- const L = e.slides.indexOf(w) === e.activeIndex, I = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(w);
2791
- L || I || c.sourceCapabilities && c.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, e.slideTo(e.slides.indexOf(w), 0));
2792
- }, C = () => {
2793
- const c = e.params.a11y;
2794
- c.itemRoleDescriptionMessage && h(e.slides, c.itemRoleDescriptionMessage), c.slideRole && g(e.slides, c.slideRole);
2795
- const w = e.slides.length;
2796
- c.slideLabelMessage && e.slides.forEach((L, I) => {
2797
- const B = e.params.loop ? parseInt(L.getAttribute("data-swiper-slide-index"), 10) : I, O = c.slideLabelMessage.replace(/\{\{index\}\}/, B + 1).replace(/\{\{slidesLength\}\}/, w);
2798
- m(L, O);
2799
- });
2800
- }, T = () => {
2801
- const c = e.params.a11y;
2802
- e.el.append(a);
2803
- const w = e.el;
2804
- c.containerRoleDescriptionMessage && h(w, c.containerRoleDescriptionMessage), c.containerMessage && m(w, c.containerMessage);
2805
- const L = e.wrapperEl, I = c.id || L.getAttribute("id") || `swiper-wrapper-${l(16)}`, B = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
2806
- b(L, I), u(L, B), C();
2807
- let {
2808
- nextEl: O,
2809
- prevEl: V
2810
- } = e.navigation ? e.navigation : {};
2811
- O = o(O), V = o(V), O && O.forEach((H) => P(H, I, c.nextSlideMessage)), V && V.forEach((H) => P(H, I, c.prevSlideMessage)), E() && (Array.isArray(e.pagination.el) ? e.pagination.el : [e.pagination.el]).forEach((Q) => {
2812
- Q.addEventListener("keydown", d);
2813
- }), e.el.addEventListener("focus", D, !0), e.el.addEventListener("pointerdown", A, !0), e.el.addEventListener("pointerup", z, !0);
2814
- };
2815
- function M() {
2816
- a && a.remove();
2817
- let {
2818
- nextEl: c,
2819
- prevEl: w
2820
- } = e.navigation ? e.navigation : {};
2821
- c = o(c), w = o(w), c && c.forEach((L) => L.removeEventListener("keydown", d)), w && w.forEach((L) => L.removeEventListener("keydown", d)), E() && (Array.isArray(e.pagination.el) ? e.pagination.el : [e.pagination.el]).forEach((I) => {
2822
- I.removeEventListener("keydown", d);
2823
- }), e.el.removeEventListener("focus", D, !0), e.el.removeEventListener("pointerdown", A, !0), e.el.removeEventListener("pointerup", z, !0);
2824
- }
2825
- s("beforeInit", () => {
2826
- a = J("span", e.params.a11y.notificationClass), a.setAttribute("aria-live", "assertive"), a.setAttribute("aria-atomic", "true");
2827
- }), s("afterInit", () => {
2828
- e.params.a11y.enabled && T();
2829
- }), s("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
2830
- e.params.a11y.enabled && C();
2831
- }), s("fromEdge toEdge afterInit lock unlock", () => {
2832
- e.params.a11y.enabled && p();
2833
- }), s("paginationUpdate", () => {
2834
- e.params.a11y.enabled && k();
2835
- }), s("destroy", () => {
2836
- e.params.a11y.enabled && M();
2837
- });
2838
- }
2839
- function Kt(t) {
2840
- let {
2841
- swiper: e,
2842
- extendParams: i,
2843
- on: s,
2844
- emit: a,
2845
- params: r
2846
- } = t;
2847
- e.autoplay = {
2848
- running: !1,
2849
- paused: !1,
2850
- timeLeft: 0
2851
- }, i({
2852
- autoplay: {
2853
- enabled: !1,
2854
- delay: 3e3,
2855
- waitForTransition: !0,
2856
- disableOnInteraction: !0,
2857
- stopOnLastSlide: !1,
2858
- reverseDirection: !1,
2859
- pauseOnMouseEnter: !1
2860
- }
2861
- });
2862
- let o, l, n = r && r.autoplay ? r.autoplay.delay : 3e3, f = r && r.autoplay ? r.autoplay.delay : 3e3, g, h = (/* @__PURE__ */ new Date()).getTime, S, m, b, u, x, y;
2863
- function d(I) {
2864
- !e || e.destroyed || !e.wrapperEl || I.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", d), z());
2865
- }
2866
- const p = () => {
2867
- if (e.destroyed || !e.autoplay.running) return;
2868
- e.autoplay.paused ? S = !0 : S && (f = g, S = !1);
2869
- const I = e.autoplay.paused ? g : h + f - (/* @__PURE__ */ new Date()).getTime();
2870
- e.autoplay.timeLeft = I, a("autoplayTimeLeft", I, I / n), l = requestAnimationFrame(() => {
2871
- p();
2872
- });
2873
- }, v = () => {
2874
- let I;
2875
- return e.virtual && e.params.virtual.enabled ? I = e.slides.filter((O) => O.classList.contains("swiper-slide-active"))[0] : I = e.slides[e.activeIndex], I ? parseInt(I.getAttribute("data-swiper-autoplay"), 10) : void 0;
2876
- }, E = (I) => {
2877
- if (e.destroyed || !e.autoplay.running) return;
2878
- cancelAnimationFrame(l), p();
2879
- let B = typeof I > "u" ? e.params.autoplay.delay : I;
2880
- n = e.params.autoplay.delay, f = e.params.autoplay.delay;
2881
- const O = v();
2882
- !Number.isNaN(O) && O > 0 && typeof I > "u" && (B = O, n = O, f = O), g = B;
2883
- const V = e.params.speed, H = () => {
2884
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(V, !0, !0), a("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, V, !0, !0), a("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(V, !0, !0), a("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, V, !0, !0), a("autoplay")), e.params.cssMode && (h = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
2885
- E();
2886
- })));
2887
- };
2888
- return B > 0 ? (clearTimeout(o), o = setTimeout(() => {
2889
- H();
2890
- }, B)) : requestAnimationFrame(() => {
2891
- H();
2892
- }), B;
2893
- }, k = () => {
2894
- e.autoplay.running = !0, E(), a("autoplayStart");
2895
- }, P = () => {
2896
- e.autoplay.running = !1, clearTimeout(o), cancelAnimationFrame(l), a("autoplayStop");
2897
- }, A = (I, B) => {
2898
- if (e.destroyed || !e.autoplay.running) return;
2899
- clearTimeout(o), I || (y = !0);
2900
- const O = () => {
2901
- a("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", d) : z();
2902
- };
2903
- if (e.autoplay.paused = !0, B) {
2904
- x && (g = e.params.autoplay.delay), x = !1, O();
2905
- return;
2906
- }
2907
- g = (g || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - h), !(e.isEnd && g < 0 && !e.params.loop) && (g < 0 && (g = 0), O());
2908
- }, z = () => {
2909
- e.isEnd && g < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (h = (/* @__PURE__ */ new Date()).getTime(), y ? (y = !1, E(g)) : E(), e.autoplay.paused = !1, a("autoplayResume"));
2910
- }, D = () => {
2911
- if (e.destroyed || !e.autoplay.running) return;
2912
- const I = _();
2913
- I.visibilityState === "hidden" && (y = !0, A(!0)), I.visibilityState === "visible" && z();
2914
- }, C = (I) => {
2915
- I.pointerType === "mouse" && (y = !0, !(e.animating || e.autoplay.paused) && A(!0));
2916
- }, T = (I) => {
2917
- I.pointerType === "mouse" && e.autoplay.paused && z();
2918
- }, M = () => {
2919
- e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", C), e.el.addEventListener("pointerleave", T));
2920
- }, c = () => {
2921
- e.el.removeEventListener("pointerenter", C), e.el.removeEventListener("pointerleave", T);
2922
- }, w = () => {
2923
- _().addEventListener("visibilitychange", D);
2924
- }, L = () => {
2925
- _().removeEventListener("visibilitychange", D);
2926
- };
2927
- s("init", () => {
2928
- e.params.autoplay.enabled && (M(), w(), h = (/* @__PURE__ */ new Date()).getTime(), k());
2929
- }), s("destroy", () => {
2930
- c(), L(), e.autoplay.running && P();
2931
- }), s("beforeTransitionStart", (I, B, O) => {
2932
- e.destroyed || !e.autoplay.running || (O || !e.params.autoplay.disableOnInteraction ? A(!0, !0) : P());
2933
- }), s("sliderFirstMove", () => {
2934
- if (!(e.destroyed || !e.autoplay.running)) {
2935
- if (e.params.autoplay.disableOnInteraction) {
2936
- P();
2937
- return;
2938
- }
2939
- m = !0, b = !1, y = !1, u = setTimeout(() => {
2940
- y = !0, b = !0, A(!0);
2941
- }, 200);
2942
- }
2943
- }), s("touchEnd", () => {
2944
- if (!(e.destroyed || !e.autoplay.running || !m)) {
2945
- if (clearTimeout(u), clearTimeout(o), e.params.autoplay.disableOnInteraction) {
2946
- b = !1, m = !1;
2947
- return;
2948
- }
2949
- b && e.params.cssMode && z(), b = !1, m = !1;
2950
- }
2951
- }), s("slideChange", () => {
2952
- e.destroyed || !e.autoplay.running || (x = !0);
2953
- }), Object.assign(e.autoplay, {
2954
- start: k,
2955
- stop: P,
2956
- pause: A,
2957
- resume: z
2958
- });
2959
- }
2960
- function Zt(t) {
2961
- let {
2962
- swiper: e,
2963
- extendParams: i,
2964
- on: s
2965
- } = t;
2966
- i({
2967
- grid: {
2968
- rows: 1,
2969
- fill: "column"
2970
- }
2971
- });
2972
- let a, r, o, l;
2973
- const n = () => {
2974
- let b = e.params.spaceBetween;
2975
- return typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * e.size : typeof b == "string" && (b = parseFloat(b)), b;
2976
- }, f = (b) => {
2977
- const {
2978
- slidesPerView: u
2979
- } = e.params, {
2980
- rows: x,
2981
- fill: y
2982
- } = e.params.grid;
2983
- o = Math.floor(b / x), Math.floor(b / x) === b / x ? a = b : a = Math.ceil(b / x) * x, u !== "auto" && y === "row" && (a = Math.max(a, u * x)), r = a / x;
2984
- }, g = (b, u, x, y) => {
2985
- const {
2986
- slidesPerGroup: d
2987
- } = e.params, p = n(), {
2988
- rows: v,
2989
- fill: E
2990
- } = e.params.grid;
2991
- let k, P, A;
2992
- if (E === "row" && d > 1) {
2993
- const z = Math.floor(b / (d * v)), D = b - v * d * z, C = z === 0 ? d : Math.min(Math.ceil((x - z * v * d) / v), d);
2994
- A = Math.floor(D / C), P = D - A * C + z * d, k = P + A * a / v, u.style.order = k;
2995
- } else E === "column" ? (P = Math.floor(b / v), A = b - P * v, (P > o || P === o && A === v - 1) && (A += 1, A >= v && (A = 0, P += 1))) : (A = Math.floor(b / r), P = b - A * r);
2996
- u.row = A, u.column = P, u.style[y("margin-top")] = A !== 0 ? p && `${p}px` : "";
2997
- }, h = (b, u, x) => {
2998
- const {
2999
- centeredSlides: y,
3000
- roundLengths: d
3001
- } = e.params, p = n(), {
3002
- rows: v
3003
- } = e.params.grid;
3004
- if (e.virtualSize = (b + p) * a, e.virtualSize = Math.ceil(e.virtualSize / v) - p, e.wrapperEl.style[x("width")] = `${e.virtualSize + p}px`, y) {
3005
- const E = [];
3006
- for (let k = 0; k < u.length; k += 1) {
3007
- let P = u[k];
3008
- d && (P = Math.floor(P)), u[k] < e.virtualSize + u[0] && E.push(P);
3009
- }
3010
- u.splice(0, u.length), u.push(...E);
3011
- }
3012
- }, S = () => {
3013
- l = e.params.grid && e.params.grid.rows > 1;
3014
- }, m = () => {
3015
- const {
3016
- params: b,
3017
- el: u
3018
- } = e, x = b.grid && b.grid.rows > 1;
3019
- l && !x ? (u.classList.remove(`${b.containerModifierClass}grid`, `${b.containerModifierClass}grid-column`), o = 1, e.emitContainerClasses()) : !l && x && (u.classList.add(`${b.containerModifierClass}grid`), b.grid.fill === "column" && u.classList.add(`${b.containerModifierClass}grid-column`), e.emitContainerClasses()), l = x;
3020
- };
3021
- s("init", S), s("update", m), e.grid = {
3022
- initSlides: f,
3023
- updateSlide: g,
3024
- updateWrapperSize: h
3025
- };
3026
- }
3027
- const Jt = '.prism-carousel{--swiper-max-width:1536px;--tw-bg-opacity:1;max-width:var(--swiper-max-width)}.prism-carousel,.swiper-container{display:block;position:relative;width:100%}.swiper-container{height:100%;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;z-index:1}.swiper-controls{display:grid;grid-template-areas:". .";grid-template-columns:1fr -webkit-min-content;grid-template-columns:1fr min-content;grid-template-rows:1fr;padding-bottom:.75rem;padding-top:.75rem}.swiper-controls.swiper-direction-vertical{display:grid;grid-template-areas:"." ".";grid-template-columns:1fr;grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content;margin-bottom:0;margin-top:0;padding:.25rem}.swiper-controls.swiper-direction-vertical .swiper-controls-pagination{flex-direction:column}.swiper-controls:not(.swiper-direction-vertical) .next-button,.swiper-controls:not(.swiper-direction-vertical) .previous-button{margin-left:.25rem;margin-right:.25rem}.swiper-controls:not(.swiper-direction-horizontal) .next-button,.swiper-controls:not(.swiper-direction-horizontal) .previous-button{margin-bottom:.25rem;margin-top:.25rem}.swiper-controls:not(.swiper-direction-vertical).centered .next-button,.swiper-controls:not(.swiper-direction-vertical).centered .previous-button{position:absolute;top:calc(50% - var(--swiper-control-height))}.swiper-controls:not(.swiper-direction-vertical).centered .next-button{right:0}.swiper-controls:not(.swiper-direction-vertical).centered .previous-button{left:0}.swiper-controls prism-button>button.fill{--tw-shadow:0px 4px 8px -4px var(--shadow-color);--tw-shadow-colored:0px 4px 8px -4px var(--tw-shadow-color);border-radius:50%;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);padding:.75rem}.swiper-direction-vertical{display:flex}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.swiper-controls-pagination{align-items:center;display:flex;justify-content:center;z-index:10}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;height:unset;position:relative;transition-property:transform;width:100%}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-left:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-top:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";left:0;pointer-events:none;position:absolute;top:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}.swiper-button-lock{display:none}.swiper-pagination{text-align:center;transform:translateZ(0);transition:opacity .3s}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{align-items:center;display:flex;justify-content:center}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{display:inline-block;height:1.5rem;position:relative;width:1.5rem}.swiper-pagination-bullet:after{--tw-border-opacity:1;border-color:rgb(var(--border-color-stroke-theme1-base)/var(--tw-border-opacity));border-radius:50%;border-style:solid;border-width:1px;content:"";display:block;height:.75rem;margin:auto;transition:all .2s ease-in;transition-property:background-color,border-color,outline,outline-color,outline-size;width:.75rem}.swiper-pagination-bullet:hover:after{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-hover-shadow);background-color:rgb(var(--background-color-fill-theme1-hover)/var(--tw-bg-opacity))}button.swiper-pagination-bullet{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;margin:0;outline:none;padding:0}button.swiper-pagination-bullet:focus-visible:after{outline-color:var(--outline-color-theme1-focus,#3d1881);outline-offset:2px;outline-style:solid;outline-width:1px}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active:after{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-base-shadow);background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity));opacity:1}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:4px;left:0;top:0;width:100%}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:4px}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:rgba(0,0,0,.1);border-radius:10px;position:relative;touch-action:none}.swiper-horizontal>.swiper-scrollbar{bottom:3px;height:5px;left:1%;position:absolute;width:98%;z-index:50}.swiper-vertical>.swiper-scrollbar{height:98%;position:absolute;right:3px;top:1%;width:5px;z-index:50}.swiper-scrollbar-drag{background:rgba(0,0,0,.5);border-radius:10px;height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-height:100%;max-width:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{border-color:rgb(var(--border-color-stroke-theme1-base)/var(--tw-border-opacity));border-radius:50%;border-style:solid;border-top:solid transparent;border-width:4px;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}.swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{to{transform:rotate(1turn)}}.swiper .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-flow:column;flex-wrap:wrap}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transform-origin:center bottom}@media (prefers-reduced-motion){.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:none}.swiper-slide-visible .swiper-lazy-preloader{animation:none}.swiper-button-next,.swiper-button-prev,.swiper-pagination-bullet{transition:none}}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}', Qt = Jt;
3028
- var ei = function(t, e) {
3029
- var i = {};
3030
- for (var s in t)
3031
- Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (i[s] = t[s]);
3032
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
3033
- for (var a = 0, s = Object.getOwnPropertySymbols(t); a < s.length; a++)
3034
- e.indexOf(s[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, s[a]) && (i[s[a]] = t[s[a]]);
3035
- return i;
3036
- };
3037
- const ti = class {
3038
- constructor(t) {
3039
- Te(this, t), this.uid = Me(), this._slides = (e) => {
3040
- Array.from(e).forEach((i) => {
3041
- i.classList.add("swiper-slide");
3042
- });
3043
- }, this._slideModifications = (e, i) => {
3044
- e.getBoundingClientRect().x > this.el.getBoundingClientRect().width || e.getBoundingClientRect().x < 0 ? (e.setAttribute("aria-hidden", "true"), pe(e).forEach((s) => {
3045
- s.setAttribute("tabindex", "-1");
3046
- })) : (e.setAttribute("aria-hidden", "false"), pe(e).forEach((s) => {
3047
- s.removeAttribute("tabindex");
3048
- })), e.setAttribute("slide", i.toString());
3049
- }, this.a11yModifications = (e) => {
3050
- e.slides.map((a, r) => {
3051
- r = r + 1, this._slideModifications(a, r);
3052
- });
3053
- const i = [], s = `${this.label} showing slides: `;
3054
- Array.from(e.slides).filter((a) => a.getAttribute("aria-hidden") === "false").forEach((a) => {
3055
- i.push(a.getAttribute("slide") || ""), e.el.setAttribute("aria-label", s + i.join(" , "));
3056
- }), e.wrapperEl.removeAttribute("aria-live");
3057
- }, this._removeAttributes = (e, ...i) => i.forEach((s) => e.removeAttribute(s)), this._swiperSetup = (e) => {
3058
- this._removeAttributes(e.navigation.prevEl, "aria-label", "disabled", "tabindex", "role"), this._removeAttributes(e.navigation.nextEl, "aria-label", "disabled", "tabindex", "role"), e.isBeginning && e.navigation.prevEl.setAttribute("disabled", "true"), e.isEnd && e.navigation.nextEl.setAttribute("disabled", "true");
3059
- }, this._autoPlay = (e) => {
3060
- this.swiper.autoplay.running ? (this.swiper.autoplay.stop(), this.autoplaying = !1) : (this.swiper.autoplay.start(), this.autoplaying = !0);
3061
- }, this.prismId = `prism-carousel-${this.uid}`, this.label = "", this.options = { mousewheel: !0, keyboard: !0 }, this.controlDisplay = "ghost", this.controlTone = "neutral", this.controlLayout = "below", this.height = "100%", this.scrollbar = !0, this.autoplaying = !1, this.cssVarSwiperControlHeight = "";
3062
- }
3063
- componentWillRender() {
3064
- this.displayPauseButton = this.options.hasOwnProperty("autoplay"), this.swiperPreviousButton && this.swiperNextButton && (this._removeAttributes(this.swiperPreviousButton, "aria-label", "tabindex", "role"), this._removeAttributes(this.swiperNextButton, "aria-label", "tabindex", "role"));
3065
- }
3066
- componentDidRender() {
3067
- const t = this.options, { modules: e } = t, i = ei(t, ["modules"]), s = [Wt, Xt, Ut, Yt, Kt, Zt];
3068
- this.cssVarSwiperControlHeight = `${this.swiperControlBar.getBoundingClientRect().height}px`, this.swiperSlides && (this._slides(this.swiperSlides.children), this.swiperSlides.removeAttribute("aria-live"));
3069
- const a = {
3070
- scrollbar: {
3071
- el: this.swiperScrollbar,
3072
- hide: !0
3073
- }
3074
- };
3075
- this.swiper || (this.swiper = new N(this.swiperContainer, Object.assign(Object.assign(Object.assign(Object.assign({}, a), { breakpointsBase: "container" }), i), { initialSlide: 0, cssMode: !1, pagination: {
3076
- el: this.swiperPagination,
3077
- clickable: !0,
3078
- renderBullet: (r, o) => (r = r + 1, `<button role="button" aria-label="Go to slide ${r}" class="${o}"></button>`)
3079
- }, navigation: {
3080
- nextEl: this.swiperNextButton,
3081
- prevEl: this.swiperPreviousButton
3082
- }, a11y: {
3083
- slideLabelMessage: "{{index}} of {{slidesLength}}"
3084
- }, modules: [...e || [], ...s], on: {
3085
- init: (r) => {
3086
- this.a11yModifications(r), this._swiperSetup(r);
3087
- },
3088
- slideChangeTransitionEnd: (r) => {
3089
- this.a11yModifications(r), this._swiperSetup(r);
3090
- }
3091
- } })), this.autoplaying = this.swiper.autoplay.running);
3092
- }
3093
- /** Public Method for Accessing the SwiperJS Instance https://swiperjs.com/swiper-api#methods-and-properties */
3094
- async getInstance() {
3095
- return this.swiper;
3096
- }
3097
- render() {
3098
- return $(Ee, { key: "ac70366d3f6f0585b10a66ae247b9955699e0c60", style: { "--swiper-control-height": this.cssVarSwiperControlHeight }, class: { "prism-carousel": !0, "swiper-direction-vertical": this.options.direction === "vertical" } }, $("section", { key: "e463b3c90f50b517ddfccf8f2d7858f0903a41c1" }, $("slot", { key: "53a7ce7e6bf5da0a072149b34ad49effcaf74b52", name: "header" }), $("div", { key: "76d37075961148acbffcb99324b3881ec45ed5e0", style: { height: this.height }, ref: (t) => this.swiperContainer = t, class: { "swiper-container": !0 }, "aria-label": this.label, id: this.prismId }, $("div", { key: "06932008290e906e571f002c462970f3723b3757", ref: (t) => this.swiperSlides = t, class: "swiper-wrapper" }, $("slot", { key: "00de8320dd5d77d07979091c8b6b37839c982c60" })), $("div", { key: "8ec68ae993ab84cb90e2dcf2ce1bc56c5304f2a2", ref: (t) => this.swiperScrollbar = t, class: "swiper-scrollbar" })), $("div", { key: "820ed4355beae1231f75ad0ccc8cd4db8a8c554f", ref: (t) => this.swiperControlBar = t, class: {
3099
- "swiper-controls": !0,
3100
- "swiper-direction-vertical": this.options.direction === "vertical",
3101
- [this.controlLayout]: !0
3102
- } }, $("div", { key: "262da5106cc92d668e6219093f2dfc8c517895fe", class: "swiper-controls-pagination" }, $("prism-button", { key: "380de07f8c089f86a795778304a214da05f33cec", size: "xs", class: "previous-button", display: this.controlDisplay === "ghost" ? "ghost-icon" : this.controlDisplay, tone: this.controlTone, label: "Previous slide", ref: (t) => this.swiperPreviousButton = t }, $("prism-icon", { key: "5d889872838918e81a8ece2a15bafdff25ee833f", tone: "custom", name: this.options.direction === "vertical" ? "caret_up_button" : "caret_left_button" })), $("div", { key: "e0566139c0dd0ca0378961ec624940ff723f4aba", ref: (t) => this.swiperPagination = t, class: "swiper-pagination" }), $("prism-button", { key: "2da9f3871889a5fafba932c9853eeb885777bee8", size: "xs", class: "next-button", display: this.controlDisplay === "ghost" ? "ghost-icon" : this.controlDisplay, tone: this.controlTone, label: "Next slide", ref: (t) => this.swiperNextButton = t }, $("prism-icon", { key: "fb6033ccffe44b7cdb1ff76d96eebb003b92e0f8", tone: "custom", name: this.options.direction === "vertical" ? "caret_down_button" : "caret_right_button" }))), this.displayPauseButton && $("prism-button", { key: "9e407b622b637ea31d3ce13f80ad001a1ffbb5fb", onPrismPress: (t) => this._autoPlay(t), size: "xs", label: `${this.autoplaying ? "pause" : "play"} carousel`, display: "ghost-icon", tone: "theme1" }, $("prism-icon", { key: "3c30761b2da4650830cd9993e5ae5a9671d81365", tone: "theme1", name: this.autoplaying ? "pause" : "play" })))));
3103
- }
3104
- get el() {
3105
- return Ce(this);
3106
- }
3107
- };
3108
- ti.style = Qt;
3109
- export {
3110
- ti as prism_carousel
3111
- };