@wikicasa-dev/components 2.0.53 → 2.0.54-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseAccordion.js +1 -1
  3. package/dist/BaseAccordionBtn.js +1 -1
  4. package/dist/BaseAccordionContent.js +1 -1
  5. package/dist/BaseAccordionItem.js +1 -1
  6. package/dist/BaseAlert.js +1 -1
  7. package/dist/BaseAutocomplete.js +1 -1
  8. package/dist/BaseBadge.js +1 -1
  9. package/dist/BaseBreadcrumb.js +1 -1
  10. package/dist/BaseButton.js +1 -1
  11. package/dist/BaseCard.js +2 -2
  12. package/dist/BaseComplexToggle.js +4 -4
  13. package/dist/BaseDropDown.js +1 -1
  14. package/dist/BaseFloatingLabel.js +3 -3
  15. package/dist/BaseIcon.js +4 -4
  16. package/dist/BaseInput.js +9 -9
  17. package/dist/BaseModal.js +1 -1
  18. package/dist/BasePagination.js +1 -1
  19. package/dist/BasePaper.js +2 -2
  20. package/dist/BaseShimmerLoader.js +2 -2
  21. package/dist/BaseSlider.js +2 -2
  22. package/dist/BaseSnackbar.js +3 -3
  23. package/dist/BaseTabList.js +1 -1
  24. package/dist/BaseTabPanel.js +1 -1
  25. package/dist/BaseTabView.js +1 -1
  26. package/dist/BaseTextarea.js +4 -4
  27. package/dist/BaseToggle.js +4 -4
  28. package/dist/BaseTooltip.js +3 -3
  29. package/dist/BaseUploadFile.js +1 -1
  30. package/dist/CheckboxBtn.js +5 -5
  31. package/dist/CheckboxGroup.js +1 -1
  32. package/dist/DoughnutChart.js +1 -1
  33. package/dist/IntersectionObservable.js +1 -1
  34. package/dist/IntersectionObserver.js +1 -1
  35. package/dist/LineChart.js +1 -1
  36. package/dist/RadioButton.js +1 -1
  37. package/dist/RadioGroup.js +1 -1
  38. package/dist/SelectItem.js +1 -1
  39. package/dist/ShimmerMultiLine.js +1 -1
  40. package/dist/SimpleSlider.js +2 -2
  41. package/dist/StaticSpinner.js +2 -2
  42. package/dist/SwiperCarousel.js +861 -829
  43. package/dist/SwiperSlide.js +2 -2
  44. package/dist/UIKit/AccessibleSelect.vue.d.ts +5 -10
  45. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -12
  46. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +12 -17
  47. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -14
  48. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +20 -33
  49. package/dist/UIKit/BaseAlert.vue.d.ts +7 -7
  50. package/dist/UIKit/BaseAutocomplete.vue.d.ts +4 -8
  51. package/dist/UIKit/BaseBadge.vue.d.ts +6 -6
  52. package/dist/UIKit/BaseBreadcrumb.vue.d.ts +8 -10
  53. package/dist/UIKit/BaseButton.vue.d.ts +17 -30
  54. package/dist/UIKit/BaseCard.vue.d.ts +12 -15
  55. package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
  56. package/dist/UIKit/BaseDropDown.vue.d.ts +9 -6
  57. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +5 -11
  58. package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
  59. package/dist/UIKit/BaseInput.vue.d.ts +10 -7
  60. package/dist/UIKit/BaseModal.vue.d.ts +25 -44
  61. package/dist/UIKit/BasePagination.vue.d.ts +5 -5
  62. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
  63. package/dist/UIKit/BaseSlider.vue.d.ts +10 -7
  64. package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
  65. package/dist/UIKit/BaseTextarea.vue.d.ts +7 -5
  66. package/dist/UIKit/BaseToggle.vue.d.ts +6 -5
  67. package/dist/UIKit/BaseTooltip.vue.d.ts +13 -20
  68. package/dist/UIKit/BaseUploadFile.vue.d.ts +13 -19
  69. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +18 -31
  70. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +23 -43
  71. package/dist/UIKit/Radio/RadioButton.vue.d.ts +7 -11
  72. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +8 -7
  73. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
  74. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +54 -8
  75. package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +7 -5
  76. package/dist/UIKit/StaticSpinner.vue.d.ts +3 -5
  77. package/dist/UIKit/Tab/BaseTab.vue.d.ts +8 -10
  78. package/dist/UIKit/Tab/BaseTabList.vue.d.ts +5 -7
  79. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
  80. package/dist/UIKit/Tab/BaseTabView.vue.d.ts +7 -5
  81. package/dist/chart/DoughnutChart.vue.d.ts +3 -5
  82. package/dist/chart/LineChart.vue.d.ts +4 -6
  83. package/dist/chart/composables/useChartjsModules.d.ts +1 -1
  84. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.tcyWuhKm.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js} +4 -4
  85. package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
  86. package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js} +2 -2
  87. package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
  88. package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
  89. package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
  90. package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
  91. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.B31Vyyn6.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.m9DVH1he.js} +9 -9
  92. package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
  93. package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +7 -7
  94. package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js} +4 -4
  95. package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CpbjEyOl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.CPpsFIZy.js} +9 -9
  96. package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.CeKWAwpg.js → BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +4 -4
  97. package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js → BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +20 -19
  98. package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +2 -2
  99. package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
  100. package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.DTPN9Rg-.js → BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +3 -3
  101. package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js} +1 -1
  102. package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.BC3hlJfx.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CDFRhya0.js} +5 -5
  103. package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
  104. package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js} +3 -3
  105. package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
  106. package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
  107. package/dist/chunks/{LineChart.vue_vue_type_script_setup_true_lang.iRZ_Q6nK.js → LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js} +3 -3
  108. package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
  109. package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
  110. package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
  111. package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +2 -2
  112. package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
  113. package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js} +3 -3
  114. package/dist/chunks/polyline.tNTK3v2u.js +129 -0
  115. package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
  116. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -9
  117. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -2
  118. package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -2
  119. package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
  120. package/dist/index.js +24 -24
  121. package/dist/useChartjsModules.js +24 -29
  122. package/package.json +6 -5
  123. package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
  124. package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
  125. package/dist/chunks/types-B0dZ7OiV.D29wNgoj.js +0 -3209
  126. package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
@@ -1,17 +1,19 @@
1
- import { defineComponent as Xe, reactive as Ye, ref as ge, useId as We, computed as j, onMounted as Be, watch as He, nextTick as Me, openBlock as N, createElementBlock as q, normalizeClass as V, createElementVNode as Z, renderSlot as Le, Fragment as he, renderList as $e, mergeProps as Pe, createCommentVNode as le, withModifiers as ve } from "vue";
2
- import { Swiper as ze } from "swiper";
3
- import "./chunks/types-B0dZ7OiV.D29wNgoj.js";
4
- import { i as Re } from "./chunks/ObjectUtils.BOUbloeg.js";
5
- import { _ as Fe } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
- import './assets/SwiperCarousel.css';function ke(r) {
7
- return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
1
+ import { defineComponent as Re, reactive as Fe, ref as xe, useId as Ne, computed as Q, onMounted as qe, watch as Ve, nextTick as ke, createElementBlock as V, openBlock as j, normalizeClass as G, createElementVNode as _, createCommentVNode as me, renderSlot as Xe, Fragment as Ce, renderList as Ye, mergeProps as De, withModifiers as Te } from "vue";
2
+ import { Swiper as Oe } from "swiper";
3
+ import "./chunks/polyline.tNTK3v2u.js";
4
+ import { l as je } from "./chunks/ObjectUtils.DwkJjVq1.js";
5
+ import { _ as Ge } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import './assets/SwiperCarousel.css';function Ie(s) {
7
+ return s !== null && typeof s == "object" && "constructor" in s && s.constructor === Object;
8
8
  }
9
- function be(r, e) {
10
- r === void 0 && (r = {}), e === void 0 && (e = {}), Object.keys(e).forEach((y) => {
11
- typeof r[y] > "u" ? r[y] = e[y] : ke(e[y]) && ke(r[y]) && Object.keys(e[y]).length > 0 && be(r[y], e[y]);
9
+ function Le(s, e) {
10
+ s === void 0 && (s = {}), e === void 0 && (e = {});
11
+ const C = ["__proto__", "constructor", "prototype"];
12
+ Object.keys(e).filter((l) => C.indexOf(l) < 0).forEach((l) => {
13
+ typeof s[l] > "u" ? s[l] = e[l] : Ie(e[l]) && Ie(s[l]) && Object.keys(e[l]).length > 0 && Le(s[l], e[l]);
12
14
  });
13
15
  }
14
- const Oe = {
16
+ const Be = {
15
17
  body: {},
16
18
  addEventListener() {
17
19
  },
@@ -66,12 +68,12 @@ const Oe = {
66
68
  search: ""
67
69
  }
68
70
  };
69
- function Q() {
70
- const r = typeof document < "u" ? document : {};
71
- return be(r, Oe), r;
71
+ function ae() {
72
+ const s = typeof document < "u" ? document : {};
73
+ return Le(s, Be), s;
72
74
  }
73
- const Ne = {
74
- document: Oe,
75
+ const Ke = {
76
+ document: Be,
75
77
  navigator: {
76
78
  userAgent: ""
77
79
  },
@@ -121,164 +123,164 @@ const Ne = {
121
123
  matchMedia() {
122
124
  return {};
123
125
  },
124
- requestAnimationFrame(r) {
125
- return typeof setTimeout > "u" ? (r(), null) : setTimeout(r, 0);
126
+ requestAnimationFrame(s) {
127
+ return typeof setTimeout > "u" ? (s(), null) : setTimeout(s, 0);
126
128
  },
127
- cancelAnimationFrame(r) {
128
- typeof setTimeout > "u" || clearTimeout(r);
129
+ cancelAnimationFrame(s) {
130
+ typeof setTimeout > "u" || clearTimeout(s);
129
131
  }
130
132
  };
131
133
  function ee() {
132
- const r = typeof window < "u" ? window : {};
133
- return be(r, Ne), r;
134
+ const s = typeof window < "u" ? window : {};
135
+ return Le(s, Ke), s;
134
136
  }
135
- function qe(r) {
136
- return r === void 0 && (r = ""), r.trim().split(" ").filter((e) => !!e.trim());
137
+ function Ue(s) {
138
+ return s === void 0 && (s = ""), s.trim().split(" ").filter((e) => !!e.trim());
137
139
  }
138
- function Ve(r, e) {
139
- return e === void 0 && (e = 0), setTimeout(r, e);
140
+ function Ze(s, e) {
141
+ return e === void 0 && (e = 0), setTimeout(s, e);
140
142
  }
141
- function ye() {
143
+ function Se() {
142
144
  return Date.now();
143
145
  }
144
- function je(r) {
146
+ function Je(s) {
145
147
  const e = ee();
146
- let y;
147
- return e.getComputedStyle && (y = e.getComputedStyle(r, null)), !y && r.currentStyle && (y = r.currentStyle), y || (y = r.style), y;
148
+ let C;
149
+ return e.getComputedStyle && (C = e.getComputedStyle(s, null)), !C && s.currentStyle && (C = s.currentStyle), C || (C = s.style), C;
148
150
  }
149
- function De(r, e) {
151
+ function Ae(s, e) {
150
152
  e === void 0 && (e = "x");
151
- const y = ee();
152
- let l, m, E;
153
- const T = je(r);
154
- return y.WebKitCSSMatrix ? (m = T.transform || T.webkitTransform, m.split(",").length > 6 && (m = m.split(", ").map(($) => $.replace(",", ".")).join(", ")), E = new y.WebKitCSSMatrix(m === "none" ? "" : m)) : (E = T.MozTransform || T.OTransform || T.MsTransform || T.msTransform || T.transform || T.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), l = E.toString().split(",")), e === "x" && (y.WebKitCSSMatrix ? m = E.m41 : l.length === 16 ? m = parseFloat(l[12]) : m = parseFloat(l[4])), e === "y" && (y.WebKitCSSMatrix ? m = E.m42 : l.length === 16 ? m = parseFloat(l[13]) : m = parseFloat(l[5])), m || 0;
153
+ const C = ee();
154
+ let l, m, w;
155
+ const T = Je(s);
156
+ return C.WebKitCSSMatrix ? (m = T.transform || T.webkitTransform, m.split(",").length > 6 && (m = m.split(", ").map(($) => $.replace(",", ".")).join(", ")), w = new C.WebKitCSSMatrix(m === "none" ? "" : m)) : (w = T.MozTransform || T.OTransform || T.MsTransform || T.msTransform || T.transform || T.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), l = w.toString().split(",")), e === "x" && (C.WebKitCSSMatrix ? m = w.m41 : l.length === 16 ? m = parseFloat(l[12]) : m = parseFloat(l[4])), e === "y" && (C.WebKitCSSMatrix ? m = w.m42 : l.length === 16 ? m = parseFloat(l[13]) : m = parseFloat(l[5])), m || 0;
155
157
  }
156
- function Ge(r) {
157
- return typeof r == "object" && r !== null && r.constructor && Object.prototype.toString.call(r).slice(8, -1) === "Object";
158
+ function Qe(s) {
159
+ return typeof s == "object" && s !== null && s.constructor && Object.prototype.toString.call(s).slice(8, -1) === "Object";
158
160
  }
159
- function ce(r, e) {
161
+ function he(s, e) {
160
162
  e === void 0 && (e = "");
161
- const y = [...r.children];
162
- return r instanceof HTMLSlotElement && y.push(...r.assignedElements()), e ? y.filter((l) => l.matches(e)) : y;
163
+ const C = ee(), l = [...s.children];
164
+ return C.HTMLSlotElement && s instanceof HTMLSlotElement && l.push(...s.assignedElements()), e ? l.filter((m) => m.matches(e)) : l;
163
165
  }
164
- function Ke(r, e) {
166
+ function _e(s, e) {
165
167
  e === void 0 && (e = []);
166
- const y = document.createElement(r);
167
- return y.classList.add(...Array.isArray(e) ? e : qe(e)), y;
168
+ const C = document.createElement(s);
169
+ return C.classList.add(...Array.isArray(e) ? e : Ue(e)), C;
168
170
  }
169
- function we(r) {
170
- const e = ee(), y = Q(), l = r.getBoundingClientRect(), m = y.body, E = r.clientTop || m.clientTop || 0, T = r.clientLeft || m.clientLeft || 0, $ = r === e ? e.scrollY : r.scrollTop, M = r === e ? e.scrollX : r.scrollLeft;
171
+ function Me(s) {
172
+ const e = ee(), C = ae(), l = s.getBoundingClientRect(), m = C.body, w = s.clientTop || m.clientTop || 0, T = s.clientLeft || m.clientLeft || 0, $ = s === e ? e.scrollY : s.scrollTop, S = s === e ? e.scrollX : s.scrollLeft;
171
173
  return {
172
- top: l.top + $ - E,
173
- left: l.left + M - T
174
+ top: l.top + $ - w,
175
+ left: l.left + S - T
174
176
  };
175
177
  }
176
- function Ie(r) {
177
- let e = r, y;
178
+ function We(s) {
179
+ let e = s, C;
178
180
  if (e) {
179
- for (y = 0; (e = e.previousSibling) !== null; )
180
- e.nodeType === 1 && (y += 1);
181
- return y;
181
+ for (C = 0; (e = e.previousSibling) !== null; )
182
+ e.nodeType === 1 && (C += 1);
183
+ return C;
182
184
  }
183
185
  }
184
- function _(r, e) {
185
- const y = [];
186
- let l = r.parentElement;
186
+ function se(s, e) {
187
+ const C = [];
188
+ let l = s.parentElement;
187
189
  for (; l; )
188
- e ? l.matches(e) && y.push(l) : y.push(l), l = l.parentElement;
189
- return y;
190
+ e ? l.matches(e) && C.push(l) : C.push(l), l = l.parentElement;
191
+ return C;
190
192
  }
191
- function ue(r, e) {
192
- function y(l) {
193
- l.target === r && (e.call(r, l), r.removeEventListener("transitionend", y));
193
+ function ge(s, e) {
194
+ function C(l) {
195
+ l.target === s && (e.call(s, l), s.removeEventListener("transitionend", C));
194
196
  }
195
- e && r.addEventListener("transitionend", y);
197
+ e && s.addEventListener("transitionend", C);
196
198
  }
197
- function Ue(r, e, y) {
199
+ function et(s, e, C) {
198
200
  const l = ee();
199
- return r[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(l.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(l.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
201
+ return s[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(l.getComputedStyle(s, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(l.getComputedStyle(s, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
200
202
  }
201
- function Y(r) {
202
- return (Array.isArray(r) ? r : [r]).filter((e) => !!e);
203
+ function A(s) {
204
+ return (Array.isArray(s) ? s : [s]).filter((e) => !!e);
203
205
  }
204
- function Ze(r) {
206
+ function tt(s) {
205
207
  let {
206
208
  swiper: e,
207
- extendParams: y,
209
+ extendParams: C,
208
210
  on: l,
209
211
  emit: m
210
- } = r;
211
- const E = Q(), T = ee();
212
+ } = s;
213
+ const w = ae(), T = ee();
212
214
  e.keyboard = {
213
215
  enabled: !1
214
- }, y({
216
+ }, C({
215
217
  keyboard: {
216
218
  enabled: !1,
217
219
  onlyInViewport: !0,
218
220
  pageUpDown: !0
219
221
  }
220
222
  });
221
- function $(s) {
223
+ function $(o) {
222
224
  if (!e.enabled) return;
223
225
  const {
224
- rtlTranslate: i
226
+ rtlTranslate: v
225
227
  } = e;
226
- let t = s;
227
- t.originalEvent && (t = t.originalEvent);
228
- const o = t.keyCode || t.charCode, c = e.params.keyboard.pageUpDown, u = c && o === 33, d = c && o === 34, f = o === 37, a = o === 39, n = o === 38, v = o === 40;
229
- if (!e.allowSlideNext && (e.isHorizontal() && a || e.isVertical() && v || d) || !e.allowSlidePrev && (e.isHorizontal() && f || e.isVertical() && n || u))
228
+ let d = o;
229
+ d.originalEvent && (d = d.originalEvent);
230
+ const u = d.keyCode || d.charCode, i = e.params.keyboard.pageUpDown, t = i && u === 33, r = i && u === 34, p = u === 37, n = u === 39, a = u === 38, h = u === 40;
231
+ if (!e.allowSlideNext && (e.isHorizontal() && n || e.isVertical() && h || r) || !e.allowSlidePrev && (e.isHorizontal() && p || e.isVertical() && a || t))
230
232
  return !1;
231
- if (!(t.shiftKey || t.altKey || t.ctrlKey || t.metaKey) && !(E.activeElement && E.activeElement.nodeName && (E.activeElement.nodeName.toLowerCase() === "input" || E.activeElement.nodeName.toLowerCase() === "textarea"))) {
232
- if (e.params.keyboard.onlyInViewport && (u || d || f || a || n || v)) {
233
- let S = !1;
234
- if (_(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && _(e.el, `.${e.params.slideActiveClass}`).length === 0)
233
+ if (!(d.shiftKey || d.altKey || d.ctrlKey || d.metaKey) && !(w.activeElement && w.activeElement.nodeName && (w.activeElement.nodeName.toLowerCase() === "input" || w.activeElement.nodeName.toLowerCase() === "textarea"))) {
234
+ if (e.params.keyboard.onlyInViewport && (t || r || p || n || a || h)) {
235
+ let M = !1;
236
+ if (se(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && se(e.el, `.${e.params.slideActiveClass}`).length === 0)
235
237
  return;
236
- const h = e.el, L = h.clientWidth, C = h.clientHeight, w = T.innerWidth, D = T.innerHeight, k = we(h);
237
- i && (k.left -= h.scrollLeft);
238
- const W = [[k.left, k.top], [k.left + L, k.top], [k.left, k.top + C], [k.left + L, k.top + C]];
238
+ const g = e.el, L = g.clientWidth, x = g.clientHeight, b = T.innerWidth, X = T.innerHeight, k = Me(g);
239
+ v && (k.left -= g.scrollLeft);
240
+ const W = [[k.left, k.top], [k.left + L, k.top], [k.left, k.top + x], [k.left + L, k.top + x]];
239
241
  for (let P = 0; P < W.length; P += 1) {
240
242
  const z = W[P];
241
- if (z[0] >= 0 && z[0] <= w && z[1] >= 0 && z[1] <= D) {
243
+ if (z[0] >= 0 && z[0] <= b && z[1] >= 0 && z[1] <= X) {
242
244
  if (z[0] === 0 && z[1] === 0) continue;
243
- S = !0;
245
+ M = !0;
244
246
  }
245
247
  }
246
- if (!S) return;
248
+ if (!M) return;
247
249
  }
248
- e.isHorizontal() ? ((u || d || f || a) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), ((d || a) && !i || (u || f) && i) && e.slideNext(), ((u || f) && !i || (d || a) && i) && e.slidePrev()) : ((u || d || n || v) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), (d || v) && e.slideNext(), (u || n) && e.slidePrev()), m("keyPress", o);
250
+ e.isHorizontal() ? ((t || r || p || n) && (d.preventDefault ? d.preventDefault() : d.returnValue = !1), ((r || n) && !v || (t || p) && v) && e.slideNext(), ((t || p) && !v || (r || n) && v) && e.slidePrev()) : ((t || r || a || h) && (d.preventDefault ? d.preventDefault() : d.returnValue = !1), (r || h) && e.slideNext(), (t || a) && e.slidePrev()), m("keyPress", u);
249
251
  }
250
252
  }
251
- function M() {
252
- e.keyboard.enabled || (E.addEventListener("keydown", $), e.keyboard.enabled = !0);
253
+ function S() {
254
+ e.keyboard.enabled || (w.addEventListener("keydown", $), e.keyboard.enabled = !0);
253
255
  }
254
- function g() {
255
- e.keyboard.enabled && (E.removeEventListener("keydown", $), e.keyboard.enabled = !1);
256
+ function f() {
257
+ e.keyboard.enabled && (w.removeEventListener("keydown", $), e.keyboard.enabled = !1);
256
258
  }
257
259
  l("init", () => {
258
- e.params.keyboard.enabled && M();
260
+ e.params.keyboard.enabled && S();
259
261
  }), l("destroy", () => {
260
- e.keyboard.enabled && g();
262
+ e.keyboard.enabled && f();
261
263
  }), Object.assign(e.keyboard, {
262
- enable: M,
263
- disable: g
264
+ enable: S,
265
+ disable: f
264
266
  });
265
267
  }
266
- function Ae(r, e, y, l) {
267
- return r.params.createElements && Object.keys(l).forEach((m) => {
268
- if (!y[m] && y.auto === !0) {
269
- let E = ce(r.el, `.${l[m]}`)[0];
270
- E || (E = Ke("div", l[m]), E.className = l[m], r.el.append(E)), y[m] = E, e[m] = E;
268
+ function He(s, e, C, l) {
269
+ return s.params.createElements && Object.keys(l).forEach((m) => {
270
+ if (!C[m] && C.auto === !0) {
271
+ let w = he(s.el, `.${l[m]}`)[0];
272
+ w || (w = _e("div", l[m]), w.className = l[m], s.el.append(w)), C[m] = w, e[m] = w;
271
273
  }
272
- }), y;
274
+ }), C;
273
275
  }
274
- function Je(r) {
276
+ function it(s) {
275
277
  let {
276
278
  swiper: e,
277
- extendParams: y,
279
+ extendParams: C,
278
280
  on: l,
279
281
  emit: m
280
- } = r;
281
- y({
282
+ } = s;
283
+ C({
282
284
  navigation: {
283
285
  nextEl: null,
284
286
  prevEl: null,
@@ -292,119 +294,119 @@ function Je(r) {
292
294
  nextEl: null,
293
295
  prevEl: null
294
296
  };
295
- function E(c) {
296
- let u;
297
- return c && typeof c == "string" && e.isElement && (u = e.el.querySelector(c) || e.hostEl.querySelector(c), u) ? u : (c && (typeof c == "string" && (u = [...document.querySelectorAll(c)]), e.params.uniqueNavElements && typeof c == "string" && u && u.length > 1 && e.el.querySelectorAll(c).length === 1 ? u = e.el.querySelector(c) : u && u.length === 1 && (u = u[0])), c && !u ? c : u);
297
+ function w(i) {
298
+ let t;
299
+ return i && typeof i == "string" && e.isElement && (t = e.el.querySelector(i) || e.hostEl.querySelector(i), t) ? t : (i && (typeof i == "string" && (t = [...document.querySelectorAll(i)]), e.params.uniqueNavElements && typeof i == "string" && t && t.length > 1 && e.el.querySelectorAll(i).length === 1 ? t = e.el.querySelector(i) : t && t.length === 1 && (t = t[0])), i && !t ? i : t);
298
300
  }
299
- function T(c, u) {
300
- const d = e.params.navigation;
301
- c = Y(c), c.forEach((f) => {
302
- f && (f.classList[u ? "add" : "remove"](...d.disabledClass.split(" ")), f.tagName === "BUTTON" && (f.disabled = u), e.params.watchOverflow && e.enabled && f.classList[e.isLocked ? "add" : "remove"](d.lockClass));
301
+ function T(i, t) {
302
+ const r = e.params.navigation;
303
+ i = A(i), i.forEach((p) => {
304
+ p && (p.classList[t ? "add" : "remove"](...r.disabledClass.split(" ")), p.tagName === "BUTTON" && (p.disabled = t), e.params.watchOverflow && e.enabled && p.classList[e.isLocked ? "add" : "remove"](r.lockClass));
303
305
  });
304
306
  }
305
307
  function $() {
306
308
  const {
307
- nextEl: c,
308
- prevEl: u
309
+ nextEl: i,
310
+ prevEl: t
309
311
  } = e.navigation;
310
312
  if (e.params.loop) {
311
- T(u, !1), T(c, !1);
313
+ T(t, !1), T(i, !1);
312
314
  return;
313
315
  }
314
- T(u, e.isBeginning && !e.params.rewind), T(c, e.isEnd && !e.params.rewind);
316
+ T(t, e.isBeginning && !e.params.rewind), T(i, e.isEnd && !e.params.rewind);
315
317
  }
316
- function M(c) {
317
- c.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), m("navigationPrev"));
318
+ function S(i) {
319
+ i.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), m("navigationPrev"));
318
320
  }
319
- function g(c) {
320
- c.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), m("navigationNext"));
321
+ function f(i) {
322
+ i.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), m("navigationNext"));
321
323
  }
322
- function s() {
323
- const c = e.params.navigation;
324
- if (e.params.navigation = Ae(e, e.originalParams.navigation, e.params.navigation, {
324
+ function o() {
325
+ const i = e.params.navigation;
326
+ if (e.params.navigation = He(e, e.originalParams.navigation, e.params.navigation, {
325
327
  nextEl: "swiper-button-next",
326
328
  prevEl: "swiper-button-prev"
327
- }), !(c.nextEl || c.prevEl)) return;
328
- let u = E(c.nextEl), d = E(c.prevEl);
329
+ }), !(i.nextEl || i.prevEl)) return;
330
+ let t = w(i.nextEl), r = w(i.prevEl);
329
331
  Object.assign(e.navigation, {
330
- nextEl: u,
331
- prevEl: d
332
- }), u = Y(u), d = Y(d);
333
- const f = (a, n) => {
334
- a && a.addEventListener("click", n === "next" ? g : M), !e.enabled && a && a.classList.add(...c.lockClass.split(" "));
332
+ nextEl: t,
333
+ prevEl: r
334
+ }), t = A(t), r = A(r);
335
+ const p = (n, a) => {
336
+ n && n.addEventListener("click", a === "next" ? f : S), !e.enabled && n && n.classList.add(...i.lockClass.split(" "));
335
337
  };
336
- u.forEach((a) => f(a, "next")), d.forEach((a) => f(a, "prev"));
338
+ t.forEach((n) => p(n, "next")), r.forEach((n) => p(n, "prev"));
337
339
  }
338
- function i() {
340
+ function v() {
339
341
  let {
340
- nextEl: c,
341
- prevEl: u
342
+ nextEl: i,
343
+ prevEl: t
342
344
  } = e.navigation;
343
- c = Y(c), u = Y(u);
344
- const d = (f, a) => {
345
- f.removeEventListener("click", a === "next" ? g : M), f.classList.remove(...e.params.navigation.disabledClass.split(" "));
345
+ i = A(i), t = A(t);
346
+ const r = (p, n) => {
347
+ p.removeEventListener("click", n === "next" ? f : S), p.classList.remove(...e.params.navigation.disabledClass.split(" "));
346
348
  };
347
- c.forEach((f) => d(f, "next")), u.forEach((f) => d(f, "prev"));
349
+ i.forEach((p) => r(p, "next")), t.forEach((p) => r(p, "prev"));
348
350
  }
349
351
  l("init", () => {
350
- e.params.navigation.enabled === !1 ? o() : (s(), $());
352
+ e.params.navigation.enabled === !1 ? u() : (o(), $());
351
353
  }), l("toEdge fromEdge lock unlock", () => {
352
354
  $();
353
355
  }), l("destroy", () => {
354
- i();
356
+ v();
355
357
  }), l("enable disable", () => {
356
358
  let {
357
- nextEl: c,
358
- prevEl: u
359
+ nextEl: i,
360
+ prevEl: t
359
361
  } = e.navigation;
360
- if (c = Y(c), u = Y(u), e.enabled) {
362
+ if (i = A(i), t = A(t), e.enabled) {
361
363
  $();
362
364
  return;
363
365
  }
364
- [...c, ...u].filter((d) => !!d).forEach((d) => d.classList.add(e.params.navigation.lockClass));
365
- }), l("click", (c, u) => {
366
+ [...i, ...t].filter((r) => !!r).forEach((r) => r.classList.add(e.params.navigation.lockClass));
367
+ }), l("click", (i, t) => {
366
368
  let {
367
- nextEl: d,
368
- prevEl: f
369
+ nextEl: r,
370
+ prevEl: p
369
371
  } = e.navigation;
370
- d = Y(d), f = Y(f);
371
- const a = u.target;
372
- let n = f.includes(a) || d.includes(a);
373
- if (e.isElement && !n) {
374
- const v = u.path || u.composedPath && u.composedPath();
375
- v && (n = v.find((S) => d.includes(S) || f.includes(S)));
372
+ r = A(r), p = A(p);
373
+ const n = t.target;
374
+ let a = p.includes(n) || r.includes(n);
375
+ if (e.isElement && !a) {
376
+ const h = t.path || t.composedPath && t.composedPath();
377
+ h && (a = h.find((M) => r.includes(M) || p.includes(M)));
376
378
  }
377
- if (e.params.navigation.hideOnClick && !n) {
378
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === a || e.pagination.el.contains(a))) return;
379
- let v;
380
- d.length ? v = d[0].classList.contains(e.params.navigation.hiddenClass) : f.length && (v = f[0].classList.contains(e.params.navigation.hiddenClass)), m(v === !0 ? "navigationShow" : "navigationHide"), [...d, ...f].filter((S) => !!S).forEach((S) => S.classList.toggle(e.params.navigation.hiddenClass));
379
+ if (e.params.navigation.hideOnClick && !a) {
380
+ if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === n || e.pagination.el.contains(n))) return;
381
+ let h;
382
+ r.length ? h = r[0].classList.contains(e.params.navigation.hiddenClass) : p.length && (h = p[0].classList.contains(e.params.navigation.hiddenClass)), m(h === !0 ? "navigationShow" : "navigationHide"), [...r, ...p].filter((M) => !!M).forEach((M) => M.classList.toggle(e.params.navigation.hiddenClass));
381
383
  }
382
384
  });
383
- const t = () => {
384
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), s(), $();
385
- }, o = () => {
386
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), i();
385
+ const d = () => {
386
+ e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), o(), $();
387
+ }, u = () => {
388
+ e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), v();
387
389
  };
388
390
  Object.assign(e.navigation, {
389
- enable: t,
390
- disable: o,
391
+ enable: d,
392
+ disable: u,
391
393
  update: $,
392
- init: s,
393
- destroy: i
394
+ init: o,
395
+ destroy: v
394
396
  });
395
397
  }
396
- function ae(r) {
397
- return r === void 0 && (r = ""), `.${r.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
398
+ function ue(s) {
399
+ return s === void 0 && (s = ""), `.${s.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
398
400
  }
399
- function Qe(r) {
401
+ function nt(s) {
400
402
  let {
401
403
  swiper: e,
402
- extendParams: y,
404
+ extendParams: C,
403
405
  on: l,
404
406
  emit: m
405
- } = r;
406
- const E = "swiper-pagination";
407
- y({
407
+ } = s;
408
+ const w = "swiper-pagination";
409
+ C({
408
410
  pagination: {
409
411
  el: null,
410
412
  bulletElement: "span",
@@ -419,218 +421,219 @@ function Qe(r) {
419
421
  // 'bullets' or 'progressbar' or 'fraction' or 'custom'
420
422
  dynamicBullets: !1,
421
423
  dynamicMainBullets: 1,
422
- formatFractionCurrent: (a) => a,
423
- formatFractionTotal: (a) => a,
424
- bulletClass: `${E}-bullet`,
425
- bulletActiveClass: `${E}-bullet-active`,
426
- modifierClass: `${E}-`,
427
- currentClass: `${E}-current`,
428
- totalClass: `${E}-total`,
429
- hiddenClass: `${E}-hidden`,
430
- progressbarFillClass: `${E}-progressbar-fill`,
431
- progressbarOppositeClass: `${E}-progressbar-opposite`,
432
- clickableClass: `${E}-clickable`,
433
- lockClass: `${E}-lock`,
434
- horizontalClass: `${E}-horizontal`,
435
- verticalClass: `${E}-vertical`,
436
- paginationDisabledClass: `${E}-disabled`
424
+ formatFractionCurrent: (n) => n,
425
+ formatFractionTotal: (n) => n,
426
+ bulletClass: `${w}-bullet`,
427
+ bulletActiveClass: `${w}-bullet-active`,
428
+ modifierClass: `${w}-`,
429
+ currentClass: `${w}-current`,
430
+ totalClass: `${w}-total`,
431
+ hiddenClass: `${w}-hidden`,
432
+ progressbarFillClass: `${w}-progressbar-fill`,
433
+ progressbarOppositeClass: `${w}-progressbar-opposite`,
434
+ clickableClass: `${w}-clickable`,
435
+ lockClass: `${w}-lock`,
436
+ horizontalClass: `${w}-horizontal`,
437
+ verticalClass: `${w}-vertical`,
438
+ paginationDisabledClass: `${w}-disabled`
437
439
  }
438
440
  }), e.pagination = {
439
441
  el: null,
440
442
  bullets: []
441
443
  };
442
444
  let T, $ = 0;
443
- function M() {
445
+ function S() {
444
446
  return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
445
447
  }
446
- function g(a, n) {
448
+ function f(n, a) {
447
449
  const {
448
- bulletActiveClass: v
450
+ bulletActiveClass: h
449
451
  } = e.params.pagination;
450
- a && (a = a[`${n === "prev" ? "previous" : "next"}ElementSibling`], a && (a.classList.add(`${v}-${n}`), a = a[`${n === "prev" ? "previous" : "next"}ElementSibling`], a && a.classList.add(`${v}-${n}-${n}`)));
452
+ n && (n = n[`${a === "prev" ? "previous" : "next"}ElementSibling`], n && (n.classList.add(`${h}-${a}`), n = n[`${a === "prev" ? "previous" : "next"}ElementSibling`], n && n.classList.add(`${h}-${a}-${a}`)));
451
453
  }
452
- function s(a, n, v) {
453
- if (a = a % v, n = n % v, n === a + 1)
454
+ function o(n, a, h) {
455
+ if (n = n % h, a = a % h, a === n + 1)
454
456
  return "next";
455
- if (n === a - 1)
457
+ if (a === n - 1)
456
458
  return "previous";
457
459
  }
458
- function i(a) {
459
- const n = a.target.closest(ae(e.params.pagination.bulletClass));
460
- if (!n)
460
+ function v(n) {
461
+ const a = n.target.closest(ue(e.params.pagination.bulletClass));
462
+ if (!a)
461
463
  return;
462
- a.preventDefault();
463
- const v = Ie(n) * e.params.slidesPerGroup;
464
+ n.preventDefault();
465
+ const h = We(a) * e.params.slidesPerGroup;
464
466
  if (e.params.loop) {
465
- if (e.realIndex === v) return;
466
- const S = s(e.realIndex, v, e.slides.length);
467
- S === "next" ? e.slideNext() : S === "previous" ? e.slidePrev() : e.slideToLoop(v);
467
+ if (e.realIndex === h) return;
468
+ const M = o(e.realIndex, h, e.slides.length);
469
+ M === "next" ? e.slideNext() : M === "previous" ? e.slidePrev() : e.slideToLoop(h);
468
470
  } else
469
- e.slideTo(v);
471
+ e.slideTo(h);
470
472
  }
471
- function t() {
472
- const a = e.rtl, n = e.params.pagination;
473
- if (M()) return;
474
- let v = e.pagination.el;
475
- v = Y(v);
476
- let S, h;
477
- const L = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, C = e.params.loop ? Math.ceil(L / e.params.slidesPerGroup) : e.snapGrid.length;
478
- if (e.params.loop ? (h = e.previousRealIndex || 0, S = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (S = e.snapIndex, h = e.previousSnapIndex) : (h = e.previousIndex || 0, S = e.activeIndex || 0), n.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
479
- const w = e.pagination.bullets;
480
- let D, k, W;
481
- if (n.dynamicBullets && (T = Ue(w[0], e.isHorizontal() ? "width" : "height"), v.forEach((P) => {
482
- P.style[e.isHorizontal() ? "width" : "height"] = `${T * (n.dynamicMainBullets + 4)}px`;
483
- }), n.dynamicMainBullets > 1 && h !== void 0 && ($ += S - (h || 0), $ > n.dynamicMainBullets - 1 ? $ = n.dynamicMainBullets - 1 : $ < 0 && ($ = 0)), D = Math.max(S - $, 0), k = D + (Math.min(w.length, n.dynamicMainBullets) - 1), W = (k + D) / 2), w.forEach((P) => {
484
- const z = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((O) => `${n.bulletActiveClass}${O}`)].map((O) => typeof O == "string" && O.includes(" ") ? O.split(" ") : O).flat();
473
+ function d() {
474
+ const n = e.rtl, a = e.params.pagination;
475
+ if (S()) return;
476
+ let h = e.pagination.el;
477
+ h = A(h);
478
+ let M, g;
479
+ const L = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, x = e.params.loop ? Math.ceil(L / e.params.slidesPerGroup) : e.snapGrid.length;
480
+ if (e.params.loop ? (g = e.previousRealIndex || 0, M = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (M = e.snapIndex, g = e.previousSnapIndex) : (g = e.previousIndex || 0, M = e.activeIndex || 0), a.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
481
+ const b = e.pagination.bullets;
482
+ let X, k, W;
483
+ if (a.dynamicBullets && (T = et(b[0], e.isHorizontal() ? "width" : "height"), h.forEach((P) => {
484
+ P.style[e.isHorizontal() ? "width" : "height"] = `${T * (a.dynamicMainBullets + 4)}px`;
485
+ }), a.dynamicMainBullets > 1 && g !== void 0 && ($ += M - (g || 0), $ > a.dynamicMainBullets - 1 ? $ = a.dynamicMainBullets - 1 : $ < 0 && ($ = 0)), X = Math.max(M - $, 0), k = X + (Math.min(b.length, a.dynamicMainBullets) - 1), W = (k + X) / 2), b.forEach((P) => {
486
+ const z = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((D) => `${a.bulletActiveClass}${D}`)].map((D) => typeof D == "string" && D.includes(" ") ? D.split(" ") : D).flat();
485
487
  P.classList.remove(...z);
486
- }), v.length > 1)
487
- w.forEach((P) => {
488
- const z = Ie(P);
489
- z === S ? P.classList.add(...n.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), n.dynamicBullets && (z >= D && z <= k && P.classList.add(...`${n.bulletActiveClass}-main`.split(" ")), z === D && g(P, "prev"), z === k && g(P, "next"));
488
+ }), h.length > 1)
489
+ b.forEach((P) => {
490
+ const z = We(P);
491
+ z === M ? P.classList.add(...a.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), a.dynamicBullets && (z >= X && z <= k && P.classList.add(...`${a.bulletActiveClass}-main`.split(" ")), z === X && f(P, "prev"), z === k && f(P, "next"));
490
492
  });
491
493
  else {
492
- const P = w[S];
493
- if (P && P.classList.add(...n.bulletActiveClass.split(" ")), e.isElement && w.forEach((z, O) => {
494
- z.setAttribute("part", O === S ? "bullet-active" : "bullet");
495
- }), n.dynamicBullets) {
496
- const z = w[D], O = w[k];
497
- for (let X = D; X <= k; X += 1)
498
- w[X] && w[X].classList.add(...`${n.bulletActiveClass}-main`.split(" "));
499
- g(z, "prev"), g(O, "next");
494
+ const P = b[M];
495
+ if (P && P.classList.add(...a.bulletActiveClass.split(" ")), e.isElement && b.forEach((z, D) => {
496
+ z.setAttribute("part", D === M ? "bullet-active" : "bullet");
497
+ }), a.dynamicBullets) {
498
+ const z = b[X], D = b[k];
499
+ for (let I = X; I <= k; I += 1)
500
+ b[I] && b[I].classList.add(...`${a.bulletActiveClass}-main`.split(" "));
501
+ f(z, "prev"), f(D, "next");
500
502
  }
501
503
  }
502
- if (n.dynamicBullets) {
503
- const P = Math.min(w.length, n.dynamicMainBullets + 4), z = (T * P - T) / 2 - W * T, O = a ? "right" : "left";
504
- w.forEach((X) => {
505
- X.style[e.isHorizontal() ? O : "top"] = `${z}px`;
504
+ if (a.dynamicBullets) {
505
+ const P = Math.min(b.length, a.dynamicMainBullets + 4), z = (T * P - T) / 2 - W * T, D = n ? "right" : "left";
506
+ b.forEach((I) => {
507
+ I.style[e.isHorizontal() ? D : "top"] = `${z}px`;
506
508
  });
507
509
  }
508
510
  }
509
- v.forEach((w, D) => {
510
- if (n.type === "fraction" && (w.querySelectorAll(ae(n.currentClass)).forEach((k) => {
511
- k.textContent = n.formatFractionCurrent(S + 1);
512
- }), w.querySelectorAll(ae(n.totalClass)).forEach((k) => {
513
- k.textContent = n.formatFractionTotal(C);
514
- })), n.type === "progressbar") {
511
+ h.forEach((b, X) => {
512
+ if (a.type === "fraction" && (b.querySelectorAll(ue(a.currentClass)).forEach((k) => {
513
+ k.textContent = a.formatFractionCurrent(M + 1);
514
+ }), b.querySelectorAll(ue(a.totalClass)).forEach((k) => {
515
+ k.textContent = a.formatFractionTotal(x);
516
+ })), a.type === "progressbar") {
515
517
  let k;
516
- n.progressbarOpposite ? k = e.isHorizontal() ? "vertical" : "horizontal" : k = e.isHorizontal() ? "horizontal" : "vertical";
517
- const W = (S + 1) / C;
518
+ a.progressbarOpposite ? k = e.isHorizontal() ? "vertical" : "horizontal" : k = e.isHorizontal() ? "horizontal" : "vertical";
519
+ const W = (M + 1) / x;
518
520
  let P = 1, z = 1;
519
- k === "horizontal" ? P = W : z = W, w.querySelectorAll(ae(n.progressbarFillClass)).forEach((O) => {
520
- O.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${z})`, O.style.transitionDuration = `${e.params.speed}ms`;
521
+ k === "horizontal" ? P = W : z = W, b.querySelectorAll(ue(a.progressbarFillClass)).forEach((D) => {
522
+ D.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${z})`, D.style.transitionDuration = `${e.params.speed}ms`;
521
523
  });
522
524
  }
523
- n.type === "custom" && n.renderCustom ? (w.innerHTML = n.renderCustom(e, S + 1, C), D === 0 && m("paginationRender", w)) : (D === 0 && m("paginationRender", w), m("paginationUpdate", w)), e.params.watchOverflow && e.enabled && w.classList[e.isLocked ? "add" : "remove"](n.lockClass);
525
+ a.type === "custom" && a.renderCustom ? (b.innerHTML = a.renderCustom(e, M + 1, x), X === 0 && m("paginationRender", b)) : (X === 0 && m("paginationRender", b), m("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](a.lockClass);
524
526
  });
525
527
  }
526
- function o() {
527
- const a = e.params.pagination;
528
- if (M()) return;
529
- const n = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
530
- let v = e.pagination.el;
531
- v = Y(v);
532
- let S = "";
533
- if (a.type === "bullets") {
534
- let h = e.params.loop ? Math.ceil(n / e.params.slidesPerGroup) : e.snapGrid.length;
535
- e.params.freeMode && e.params.freeMode.enabled && h > n && (h = n);
536
- for (let L = 0; L < h; L += 1)
537
- a.renderBullet ? S += a.renderBullet.call(e, L, a.bulletClass) : S += `<${a.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${a.bulletClass}"></${a.bulletElement}>`;
528
+ function u() {
529
+ const n = e.params.pagination;
530
+ if (S()) return;
531
+ const a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
532
+ let h = e.pagination.el;
533
+ h = A(h);
534
+ let M = "";
535
+ if (n.type === "bullets") {
536
+ let g = e.params.loop ? Math.ceil(a / e.params.slidesPerGroup) : e.snapGrid.length;
537
+ e.params.freeMode && e.params.freeMode.enabled && g > a && (g = a);
538
+ for (let L = 0; L < g; L += 1)
539
+ n.renderBullet ? M += n.renderBullet.call(e, L, n.bulletClass) : M += `<${n.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${n.bulletClass}"></${n.bulletElement}>`;
538
540
  }
539
- a.type === "fraction" && (a.renderFraction ? S = a.renderFraction.call(e, a.currentClass, a.totalClass) : S = `<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`), a.type === "progressbar" && (a.renderProgressbar ? S = a.renderProgressbar.call(e, a.progressbarFillClass) : S = `<span class="${a.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((h) => {
540
- a.type !== "custom" && (h.innerHTML = S || ""), a.type === "bullets" && e.pagination.bullets.push(...h.querySelectorAll(ae(a.bulletClass)));
541
- }), a.type !== "custom" && m("paginationRender", v[0]);
541
+ n.type === "fraction" && (n.renderFraction ? M = n.renderFraction.call(e, n.currentClass, n.totalClass) : M = `<span class="${n.currentClass}"></span> / <span class="${n.totalClass}"></span>`), n.type === "progressbar" && (n.renderProgressbar ? M = n.renderProgressbar.call(e, n.progressbarFillClass) : M = `<span class="${n.progressbarFillClass}"></span>`), e.pagination.bullets = [], h.forEach((g) => {
542
+ n.type !== "custom" && (g.innerHTML = M || ""), n.type === "bullets" && e.pagination.bullets.push(...g.querySelectorAll(ue(n.bulletClass)));
543
+ }), n.type !== "custom" && m("paginationRender", h[0]);
542
544
  }
543
- function c() {
544
- e.params.pagination = Ae(e, e.originalParams.pagination, e.params.pagination, {
545
+ function i() {
546
+ e.params.pagination = He(e, e.originalParams.pagination, e.params.pagination, {
545
547
  el: "swiper-pagination"
546
548
  });
547
- const a = e.params.pagination;
548
- if (!a.el) return;
549
- let n;
550
- typeof a.el == "string" && e.isElement && (n = e.el.querySelector(a.el)), !n && typeof a.el == "string" && (n = [...document.querySelectorAll(a.el)]), n || (n = a.el), !(!n || n.length === 0) && (e.params.uniqueNavElements && typeof a.el == "string" && Array.isArray(n) && n.length > 1 && (n = [...e.el.querySelectorAll(a.el)], n.length > 1 && (n = n.filter((v) => _(v, ".swiper")[0] === e.el)[0])), Array.isArray(n) && n.length === 1 && (n = n[0]), Object.assign(e.pagination, {
551
- el: n
552
- }), n = Y(n), n.forEach((v) => {
553
- a.type === "bullets" && a.clickable && v.classList.add(...(a.clickableClass || "").split(" ")), v.classList.add(a.modifierClass + a.type), v.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass), a.type === "bullets" && a.dynamicBullets && (v.classList.add(`${a.modifierClass}${a.type}-dynamic`), $ = 0, a.dynamicMainBullets < 1 && (a.dynamicMainBullets = 1)), a.type === "progressbar" && a.progressbarOpposite && v.classList.add(a.progressbarOppositeClass), a.clickable && v.addEventListener("click", i), e.enabled || v.classList.add(a.lockClass);
549
+ const n = e.params.pagination;
550
+ if (!n.el) return;
551
+ let a;
552
+ typeof n.el == "string" && e.isElement && (a = e.el.querySelector(n.el)), !a && typeof n.el == "string" && (a = [...document.querySelectorAll(n.el)]), a || (a = n.el), !(!a || a.length === 0) && (e.params.uniqueNavElements && typeof n.el == "string" && Array.isArray(a) && a.length > 1 && (a = [...e.el.querySelectorAll(n.el)], a.length > 1 && (a = a.find((h) => se(h, ".swiper")[0] === e.el))), Array.isArray(a) && a.length === 1 && (a = a[0]), Object.assign(e.pagination, {
553
+ el: a
554
+ }), a = A(a), a.forEach((h) => {
555
+ n.type === "bullets" && n.clickable && h.classList.add(...(n.clickableClass || "").split(" ")), h.classList.add(n.modifierClass + n.type), h.classList.add(e.isHorizontal() ? n.horizontalClass : n.verticalClass), n.type === "bullets" && n.dynamicBullets && (h.classList.add(`${n.modifierClass}${n.type}-dynamic`), $ = 0, n.dynamicMainBullets < 1 && (n.dynamicMainBullets = 1)), n.type === "progressbar" && n.progressbarOpposite && h.classList.add(n.progressbarOppositeClass), n.clickable && h.addEventListener("click", v), e.enabled || h.classList.add(n.lockClass);
554
556
  }));
555
557
  }
556
- function u() {
557
- const a = e.params.pagination;
558
- if (M()) return;
559
- let n = e.pagination.el;
560
- n && (n = Y(n), n.forEach((v) => {
561
- v.classList.remove(a.hiddenClass), v.classList.remove(a.modifierClass + a.type), v.classList.remove(e.isHorizontal() ? a.horizontalClass : a.verticalClass), a.clickable && (v.classList.remove(...(a.clickableClass || "").split(" ")), v.removeEventListener("click", i));
562
- })), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...a.bulletActiveClass.split(" ")));
558
+ function t() {
559
+ const n = e.params.pagination;
560
+ if (S()) return;
561
+ let a = e.pagination.el;
562
+ a && (a = A(a), a.forEach((h) => {
563
+ h.classList.remove(n.hiddenClass), h.classList.remove(n.modifierClass + n.type), h.classList.remove(e.isHorizontal() ? n.horizontalClass : n.verticalClass), n.clickable && (h.classList.remove(...(n.clickableClass || "").split(" ")), h.removeEventListener("click", v));
564
+ })), e.pagination.bullets && e.pagination.bullets.forEach((h) => h.classList.remove(...n.bulletActiveClass.split(" ")));
563
565
  }
564
566
  l("changeDirection", () => {
565
567
  if (!e.pagination || !e.pagination.el) return;
566
- const a = e.params.pagination;
568
+ const n = e.params.pagination;
567
569
  let {
568
- el: n
570
+ el: a
569
571
  } = e.pagination;
570
- n = Y(n), n.forEach((v) => {
571
- v.classList.remove(a.horizontalClass, a.verticalClass), v.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass);
572
+ a = A(a), a.forEach((h) => {
573
+ h.classList.remove(n.horizontalClass, n.verticalClass), h.classList.add(e.isHorizontal() ? n.horizontalClass : n.verticalClass);
572
574
  });
573
575
  }), l("init", () => {
574
- e.params.pagination.enabled === !1 ? f() : (c(), o(), t());
576
+ e.params.pagination.enabled === !1 ? p() : (i(), u(), d());
575
577
  }), l("activeIndexChange", () => {
576
- typeof e.snapIndex > "u" && t();
578
+ typeof e.snapIndex > "u" && d();
577
579
  }), l("snapIndexChange", () => {
578
- t();
580
+ d();
579
581
  }), l("snapGridLengthChange", () => {
580
- o(), t();
582
+ u(), d();
581
583
  }), l("destroy", () => {
582
- u();
584
+ t();
583
585
  }), l("enable disable", () => {
584
586
  let {
585
- el: a
587
+ el: n
586
588
  } = e.pagination;
587
- a && (a = Y(a), a.forEach((n) => n.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
589
+ n && (n = A(n), n.forEach((a) => a.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
588
590
  }), l("lock unlock", () => {
589
- t();
590
- }), l("click", (a, n) => {
591
- const v = n.target, S = Y(e.pagination.el);
592
- if (e.params.pagination.el && e.params.pagination.hideOnClick && S && S.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
593
- if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
594
- const h = S[0].classList.contains(e.params.pagination.hiddenClass);
595
- m(h === !0 ? "paginationShow" : "paginationHide"), S.forEach((L) => L.classList.toggle(e.params.pagination.hiddenClass));
591
+ d();
592
+ }), l("click", (n, a) => {
593
+ const h = a.target, M = A(e.pagination.el);
594
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && M && M.length > 0 && !h.classList.contains(e.params.pagination.bulletClass)) {
595
+ if (e.navigation && (e.navigation.nextEl && h === e.navigation.nextEl || e.navigation.prevEl && h === e.navigation.prevEl)) return;
596
+ const g = M[0].classList.contains(e.params.pagination.hiddenClass);
597
+ m(g === !0 ? "paginationShow" : "paginationHide"), M.forEach((L) => L.classList.toggle(e.params.pagination.hiddenClass));
596
598
  }
597
599
  });
598
- const d = () => {
600
+ const r = () => {
599
601
  e.el.classList.remove(e.params.pagination.paginationDisabledClass);
600
602
  let {
601
- el: a
603
+ el: n
602
604
  } = e.pagination;
603
- a && (a = Y(a), a.forEach((n) => n.classList.remove(e.params.pagination.paginationDisabledClass))), c(), o(), t();
604
- }, f = () => {
605
+ n && (n = A(n), n.forEach((a) => a.classList.remove(e.params.pagination.paginationDisabledClass))), i(), u(), d();
606
+ }, p = () => {
605
607
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
606
608
  let {
607
- el: a
609
+ el: n
608
610
  } = e.pagination;
609
- a && (a = Y(a), a.forEach((n) => n.classList.add(e.params.pagination.paginationDisabledClass))), u();
611
+ n && (n = A(n), n.forEach((a) => a.classList.add(e.params.pagination.paginationDisabledClass))), t();
610
612
  };
611
613
  Object.assign(e.pagination, {
612
- enable: d,
613
- disable: f,
614
- render: o,
615
- update: t,
616
- init: c,
617
- destroy: u
614
+ enable: r,
615
+ disable: p,
616
+ render: u,
617
+ update: d,
618
+ init: i,
619
+ destroy: t
618
620
  });
619
621
  }
620
- function _e(r) {
622
+ function at(s) {
621
623
  let {
622
624
  swiper: e,
623
- extendParams: y,
625
+ extendParams: C,
624
626
  on: l,
625
627
  emit: m
626
- } = r;
627
- const E = ee();
628
- y({
628
+ } = s;
629
+ const w = ee();
630
+ C({
629
631
  zoom: {
630
632
  enabled: !1,
631
633
  limitToOriginalSize: !1,
632
634
  maxRatio: 3,
633
635
  minRatio: 1,
636
+ panOnMouseMove: !1,
634
637
  toggle: !0,
635
638
  containerClass: "swiper-zoom-container",
636
639
  zoomedSlideClass: "swiper-slide-zoomed"
@@ -638,8 +641,13 @@ function _e(r) {
638
641
  }), e.zoom = {
639
642
  enabled: !1
640
643
  };
641
- let T = 1, $ = !1, M, g;
642
- const s = [], i = {
644
+ let T = 1, $ = !1, S = !1, f = {
645
+ x: 0,
646
+ y: 0
647
+ };
648
+ const o = -3;
649
+ let v, d;
650
+ const u = [], i = {
643
651
  originX: 0,
644
652
  originY: 0,
645
653
  slideEl: void 0,
@@ -663,244 +671,266 @@ function _e(r) {
663
671
  startY: void 0,
664
672
  touchesStart: {},
665
673
  touchesCurrent: {}
666
- }, o = {
674
+ }, r = {
667
675
  x: void 0,
668
676
  y: void 0,
669
677
  prevPositionX: void 0,
670
678
  prevPositionY: void 0,
671
679
  prevTime: void 0
672
680
  };
673
- let c = 1;
681
+ let p = 1;
674
682
  Object.defineProperty(e.zoom, "scale", {
675
683
  get() {
676
- return c;
684
+ return p;
677
685
  },
678
- set(p) {
679
- if (c !== p) {
680
- const b = i.imageEl, x = i.slideEl;
681
- m("zoomChange", p, b, x);
686
+ set(c) {
687
+ if (p !== c) {
688
+ const E = i.imageEl, y = i.slideEl;
689
+ m("zoomChange", c, E, y);
682
690
  }
683
- c = p;
691
+ p = c;
684
692
  }
685
693
  });
686
- function u() {
687
- if (s.length < 2) return 1;
688
- const p = s[0].pageX, b = s[0].pageY, x = s[1].pageX, A = s[1].pageY;
689
- return Math.sqrt((x - p) ** 2 + (A - b) ** 2);
694
+ function n() {
695
+ if (u.length < 2) return 1;
696
+ const c = u[0].pageX, E = u[0].pageY, y = u[1].pageX, O = u[1].pageY;
697
+ return Math.sqrt((y - c) ** 2 + (O - E) ** 2);
690
698
  }
691
- function d() {
692
- const p = e.params.zoom, b = i.imageWrapEl.getAttribute("data-swiper-zoom") || p.maxRatio;
693
- if (p.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
694
- const x = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
695
- return Math.min(x, b);
699
+ function a() {
700
+ const c = e.params.zoom, E = i.imageWrapEl.getAttribute("data-swiper-zoom") || c.maxRatio;
701
+ if (c.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
702
+ const y = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
703
+ return Math.min(y, E);
696
704
  }
697
- return b;
705
+ return E;
698
706
  }
699
- function f() {
700
- if (s.length < 2) return {
707
+ function h() {
708
+ if (u.length < 2) return {
701
709
  x: null,
702
710
  y: null
703
711
  };
704
- const p = i.imageEl.getBoundingClientRect();
705
- return [(s[0].pageX + (s[1].pageX - s[0].pageX) / 2 - p.x - E.scrollX) / T, (s[0].pageY + (s[1].pageY - s[0].pageY) / 2 - p.y - E.scrollY) / T];
712
+ const c = i.imageEl.getBoundingClientRect();
713
+ return [(u[0].pageX + (u[1].pageX - u[0].pageX) / 2 - c.x - w.scrollX) / T, (u[0].pageY + (u[1].pageY - u[0].pageY) / 2 - c.y - w.scrollY) / T];
706
714
  }
707
- function a() {
715
+ function M() {
708
716
  return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
709
717
  }
710
- function n(p) {
711
- const b = a();
712
- return !!(p.target.matches(b) || e.slides.filter((x) => x.contains(p.target)).length > 0);
718
+ function g(c) {
719
+ const E = M();
720
+ return !!(c.target.matches(E) || e.slides.filter((y) => y.contains(c.target)).length > 0);
713
721
  }
714
- function v(p) {
715
- const b = `.${e.params.zoom.containerClass}`;
716
- return !!(p.target.matches(b) || [...e.hostEl.querySelectorAll(b)].filter((x) => x.contains(p.target)).length > 0);
722
+ function L(c) {
723
+ const E = `.${e.params.zoom.containerClass}`;
724
+ return !!(c.target.matches(E) || [...e.hostEl.querySelectorAll(E)].filter((y) => y.contains(c.target)).length > 0);
717
725
  }
718
- function S(p) {
719
- if (p.pointerType === "mouse" && s.splice(0, s.length), !n(p)) return;
720
- const b = e.params.zoom;
721
- if (M = !1, g = !1, s.push(p), !(s.length < 2)) {
722
- if (M = !0, i.scaleStart = u(), !i.slideEl) {
723
- i.slideEl = p.target.closest(`.${e.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = e.slides[e.activeIndex]);
724
- let x = i.slideEl.querySelector(`.${b.containerClass}`);
725
- if (x && (x = x.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = x, x ? i.imageWrapEl = _(i.imageEl, `.${b.containerClass}`)[0] : i.imageWrapEl = void 0, !i.imageWrapEl) {
726
+ function x(c) {
727
+ if (c.pointerType === "mouse" && u.splice(0, u.length), !g(c)) return;
728
+ const E = e.params.zoom;
729
+ if (v = !1, d = !1, u.push(c), !(u.length < 2)) {
730
+ if (v = !0, i.scaleStart = n(), !i.slideEl) {
731
+ i.slideEl = c.target.closest(`.${e.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = e.slides[e.activeIndex]);
732
+ let y = i.slideEl.querySelector(`.${E.containerClass}`);
733
+ if (y && (y = y.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = y, y ? i.imageWrapEl = se(i.imageEl, `.${E.containerClass}`)[0] : i.imageWrapEl = void 0, !i.imageWrapEl) {
726
734
  i.imageEl = void 0;
727
735
  return;
728
736
  }
729
- i.maxRatio = d();
737
+ i.maxRatio = a();
730
738
  }
731
739
  if (i.imageEl) {
732
- const [x, A] = f();
733
- i.originX = x, i.originY = A, i.imageEl.style.transitionDuration = "0ms";
740
+ const [y, O] = h();
741
+ i.originX = y, i.originY = O, i.imageEl.style.transitionDuration = "0ms";
734
742
  }
735
743
  $ = !0;
736
744
  }
737
745
  }
738
- function h(p) {
739
- if (!n(p)) return;
740
- const b = e.params.zoom, x = e.zoom, A = s.findIndex((H) => H.pointerId === p.pointerId);
741
- A >= 0 && (s[A] = p), !(s.length < 2) && (g = !0, i.scaleMove = u(), i.imageEl && (x.scale = i.scaleMove / i.scaleStart * T, x.scale > i.maxRatio && (x.scale = i.maxRatio - 1 + (x.scale - i.maxRatio + 1) ** 0.5), x.scale < b.minRatio && (x.scale = b.minRatio + 1 - (b.minRatio - x.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`));
746
+ function b(c) {
747
+ if (!g(c)) return;
748
+ const E = e.params.zoom, y = e.zoom, O = u.findIndex((B) => B.pointerId === c.pointerId);
749
+ O >= 0 && (u[O] = c), !(u.length < 2) && (d = !0, i.scaleMove = n(), i.imageEl && (y.scale = i.scaleMove / i.scaleStart * T, y.scale > i.maxRatio && (y.scale = i.maxRatio - 1 + (y.scale - i.maxRatio + 1) ** 0.5), y.scale < E.minRatio && (y.scale = E.minRatio + 1 - (E.minRatio - y.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${y.scale})`));
742
750
  }
743
- function L(p) {
744
- if (!n(p) || p.pointerType === "mouse" && p.type === "pointerout") return;
745
- const b = e.params.zoom, x = e.zoom, A = s.findIndex((H) => H.pointerId === p.pointerId);
746
- A >= 0 && s.splice(A, 1), !(!M || !g) && (M = !1, g = !1, i.imageEl && (x.scale = Math.max(Math.min(x.scale, i.maxRatio), b.minRatio), i.imageEl.style.transitionDuration = `${e.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`, T = x.scale, $ = !1, x.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${b.zoomedSlideClass}`) : x.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${b.zoomedSlideClass}`), x.scale === 1 && (i.originX = 0, i.originY = 0, i.slideEl = void 0)));
751
+ function X(c) {
752
+ if (!g(c) || c.pointerType === "mouse" && c.type === "pointerout") return;
753
+ const E = e.params.zoom, y = e.zoom, O = u.findIndex((B) => B.pointerId === c.pointerId);
754
+ O >= 0 && u.splice(O, 1), !(!v || !d) && (v = !1, d = !1, i.imageEl && (y.scale = Math.max(Math.min(y.scale, i.maxRatio), E.minRatio), i.imageEl.style.transitionDuration = `${e.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${y.scale})`, T = y.scale, $ = !1, y.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${E.zoomedSlideClass}`) : y.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${E.zoomedSlideClass}`), y.scale === 1 && (i.originX = 0, i.originY = 0, i.slideEl = void 0)));
747
755
  }
748
- let C;
749
- function w() {
756
+ let k;
757
+ function W() {
750
758
  e.touchEventsData.preventTouchMoveFromPointerMove = !1;
751
759
  }
752
- function D() {
753
- clearTimeout(C), e.touchEventsData.preventTouchMoveFromPointerMove = !0, C = setTimeout(() => {
754
- e.destroyed || w();
760
+ function P() {
761
+ clearTimeout(k), e.touchEventsData.preventTouchMoveFromPointerMove = !0, k = setTimeout(() => {
762
+ e.destroyed || W();
755
763
  });
756
764
  }
757
- function k(p) {
758
- const b = e.device;
765
+ function z(c) {
766
+ const E = e.device;
759
767
  if (!i.imageEl || t.isTouched) return;
760
- b.android && p.cancelable && p.preventDefault(), t.isTouched = !0;
761
- const x = s.length > 0 ? s[0] : p;
762
- t.touchesStart.x = x.pageX, t.touchesStart.y = x.pageY;
768
+ E.android && c.cancelable && c.preventDefault(), t.isTouched = !0;
769
+ const y = u.length > 0 ? u[0] : c;
770
+ t.touchesStart.x = y.pageX, t.touchesStart.y = y.pageY;
763
771
  }
764
- function W(p) {
765
- if (!n(p) || !v(p))
772
+ function D(c) {
773
+ const y = c.pointerType === "mouse" && e.params.zoom.panOnMouseMove;
774
+ if (!g(c) || !L(c))
766
775
  return;
767
- const b = e.zoom;
768
- if (!i.imageEl || !t.isTouched || !i.slideEl)
776
+ const O = e.zoom;
777
+ if (!i.imageEl)
769
778
  return;
770
- t.isMoved || (t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, t.startX = De(i.imageWrapEl, "x") || 0, t.startY = De(i.imageWrapEl, "y") || 0, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight, i.imageWrapEl.style.transitionDuration = "0ms");
771
- const x = t.width * b.scale, A = t.height * b.scale;
772
- if (t.minX = Math.min(i.slideWidth / 2 - x / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - A / 2, 0), t.maxY = -t.minY, t.touchesCurrent.x = s.length > 0 ? s[0].pageX : p.pageX, t.touchesCurrent.y = s.length > 0 ? s[0].pageY : p.pageY, Math.max(Math.abs(t.touchesCurrent.x - t.touchesStart.x), Math.abs(t.touchesCurrent.y - t.touchesStart.y)) > 5 && (e.allowClick = !1), !t.isMoved && !$) {
779
+ if (!t.isTouched || !i.slideEl) {
780
+ y && Y(c);
781
+ return;
782
+ }
783
+ if (y) {
784
+ Y(c);
785
+ return;
786
+ }
787
+ t.isMoved || (t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, t.startX = Ae(i.imageWrapEl, "x") || 0, t.startY = Ae(i.imageWrapEl, "y") || 0, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight, i.imageWrapEl.style.transitionDuration = "0ms");
788
+ const B = t.width * O.scale, U = t.height * O.scale;
789
+ if (t.minX = Math.min(i.slideWidth / 2 - B / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - U / 2, 0), t.maxY = -t.minY, t.touchesCurrent.x = u.length > 0 ? u[0].pageX : c.pageX, t.touchesCurrent.y = u.length > 0 ? u[0].pageY : c.pageY, Math.max(Math.abs(t.touchesCurrent.x - t.touchesStart.x), Math.abs(t.touchesCurrent.y - t.touchesStart.y)) > 5 && (e.allowClick = !1), !t.isMoved && !$) {
773
790
  if (e.isHorizontal() && (Math.floor(t.minX) === Math.floor(t.startX) && t.touchesCurrent.x < t.touchesStart.x || Math.floor(t.maxX) === Math.floor(t.startX) && t.touchesCurrent.x > t.touchesStart.x)) {
774
- t.isTouched = !1, w();
791
+ t.isTouched = !1, W();
775
792
  return;
776
793
  }
777
794
  if (!e.isHorizontal() && (Math.floor(t.minY) === Math.floor(t.startY) && t.touchesCurrent.y < t.touchesStart.y || Math.floor(t.maxY) === Math.floor(t.startY) && t.touchesCurrent.y > t.touchesStart.y)) {
778
- t.isTouched = !1, w();
795
+ t.isTouched = !1, W();
779
796
  return;
780
797
  }
781
798
  }
782
- p.cancelable && p.preventDefault(), p.stopPropagation(), D(), t.isMoved = !0;
783
- const G = (b.scale - T) / (i.maxRatio - e.params.zoom.minRatio), {
784
- originX: K,
785
- originY: J
799
+ c.cancelable && c.preventDefault(), c.stopPropagation(), P(), t.isMoved = !0;
800
+ const q = (O.scale - T) / (i.maxRatio - e.params.zoom.minRatio), {
801
+ originX: J,
802
+ originY: H
786
803
  } = i;
787
- t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX + G * (t.width - K * 2), t.currentY = t.touchesCurrent.y - t.touchesStart.y + t.startY + G * (t.height - J * 2), t.currentX < t.minX && (t.currentX = t.minX + 1 - (t.minX - t.currentX + 1) ** 0.8), t.currentX > t.maxX && (t.currentX = t.maxX - 1 + (t.currentX - t.maxX + 1) ** 0.8), t.currentY < t.minY && (t.currentY = t.minY + 1 - (t.minY - t.currentY + 1) ** 0.8), t.currentY > t.maxY && (t.currentY = t.maxY - 1 + (t.currentY - t.maxY + 1) ** 0.8), o.prevPositionX || (o.prevPositionX = t.touchesCurrent.x), o.prevPositionY || (o.prevPositionY = t.touchesCurrent.y), o.prevTime || (o.prevTime = Date.now()), o.x = (t.touchesCurrent.x - o.prevPositionX) / (Date.now() - o.prevTime) / 2, o.y = (t.touchesCurrent.y - o.prevPositionY) / (Date.now() - o.prevTime) / 2, Math.abs(t.touchesCurrent.x - o.prevPositionX) < 2 && (o.x = 0), Math.abs(t.touchesCurrent.y - o.prevPositionY) < 2 && (o.y = 0), o.prevPositionX = t.touchesCurrent.x, o.prevPositionY = t.touchesCurrent.y, o.prevTime = Date.now(), i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
804
+ t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX + q * (t.width - J * 2), t.currentY = t.touchesCurrent.y - t.touchesStart.y + t.startY + q * (t.height - H * 2), t.currentX < t.minX && (t.currentX = t.minX + 1 - (t.minX - t.currentX + 1) ** 0.8), t.currentX > t.maxX && (t.currentX = t.maxX - 1 + (t.currentX - t.maxX + 1) ** 0.8), t.currentY < t.minY && (t.currentY = t.minY + 1 - (t.minY - t.currentY + 1) ** 0.8), t.currentY > t.maxY && (t.currentY = t.maxY - 1 + (t.currentY - t.maxY + 1) ** 0.8), r.prevPositionX || (r.prevPositionX = t.touchesCurrent.x), r.prevPositionY || (r.prevPositionY = t.touchesCurrent.y), r.prevTime || (r.prevTime = Date.now()), r.x = (t.touchesCurrent.x - r.prevPositionX) / (Date.now() - r.prevTime) / 2, r.y = (t.touchesCurrent.y - r.prevPositionY) / (Date.now() - r.prevTime) / 2, Math.abs(t.touchesCurrent.x - r.prevPositionX) < 2 && (r.x = 0), Math.abs(t.touchesCurrent.y - r.prevPositionY) < 2 && (r.y = 0), r.prevPositionX = t.touchesCurrent.x, r.prevPositionY = t.touchesCurrent.y, r.prevTime = Date.now(), i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
788
805
  }
789
- function P() {
790
- const p = e.zoom;
791
- if (!i.imageEl) return;
806
+ function I() {
807
+ const c = e.zoom;
808
+ if (u.length = 0, !i.imageEl) return;
792
809
  if (!t.isTouched || !t.isMoved) {
793
810
  t.isTouched = !1, t.isMoved = !1;
794
811
  return;
795
812
  }
796
813
  t.isTouched = !1, t.isMoved = !1;
797
- let b = 300, x = 300;
798
- const A = o.x * b, H = t.currentX + A, G = o.y * x, K = t.currentY + G;
799
- o.x !== 0 && (b = Math.abs((H - t.currentX) / o.x)), o.y !== 0 && (x = Math.abs((K - t.currentY) / o.y));
800
- const J = Math.max(b, x);
801
- t.currentX = H, t.currentY = K;
802
- const se = t.width * p.scale, F = t.height * p.scale;
803
- t.minX = Math.min(i.slideWidth / 2 - se / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - F / 2, 0), t.maxY = -t.minY, t.currentX = Math.max(Math.min(t.currentX, t.maxX), t.minX), t.currentY = Math.max(Math.min(t.currentY, t.maxY), t.minY), i.imageWrapEl.style.transitionDuration = `${J}ms`, i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
814
+ let E = 300, y = 300;
815
+ const O = r.x * E, B = t.currentX + O, U = r.y * y, Z = t.currentY + U;
816
+ r.x !== 0 && (E = Math.abs((B - t.currentX) / r.x)), r.y !== 0 && (y = Math.abs((Z - t.currentY) / r.y));
817
+ const q = Math.max(E, y);
818
+ t.currentX = B, t.currentY = Z;
819
+ const J = t.width * c.scale, H = t.height * c.scale;
820
+ t.minX = Math.min(i.slideWidth / 2 - J / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - H / 2, 0), t.maxY = -t.minY, t.currentX = Math.max(Math.min(t.currentX, t.maxX), t.minX), t.currentY = Math.max(Math.min(t.currentY, t.maxY), t.minY), i.imageWrapEl.style.transitionDuration = `${q}ms`, i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
804
821
  }
805
- function z() {
806
- const p = e.zoom;
807
- i.slideEl && e.activeIndex !== e.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), p.scale = 1, T = 1, i.slideEl = void 0, i.imageEl = void 0, i.imageWrapEl = void 0, i.originX = 0, i.originY = 0);
822
+ function ce() {
823
+ const c = e.zoom;
824
+ i.slideEl && e.activeIndex !== e.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), c.scale = 1, T = 1, i.slideEl = void 0, i.imageEl = void 0, i.imageWrapEl = void 0, i.originX = 0, i.originY = 0);
825
+ }
826
+ function Y(c) {
827
+ if (T <= 1 || !i.imageWrapEl || !g(c) || !L(c)) return;
828
+ const E = w.getComputedStyle(i.imageWrapEl).transform, y = new w.DOMMatrix(E);
829
+ if (!S) {
830
+ S = !0, f.x = c.clientX, f.y = c.clientY, t.startX = y.e, t.startY = y.f, t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight;
831
+ return;
832
+ }
833
+ const O = (c.clientX - f.x) * o, B = (c.clientY - f.y) * o, U = t.width * T, Z = t.height * T, q = i.slideWidth, J = i.slideHeight, H = Math.min(q / 2 - U / 2, 0), N = -H, oe = Math.min(J / 2 - Z / 2, 0), de = -oe, te = Math.max(Math.min(t.startX + O, N), H), ie = Math.max(Math.min(t.startY + B, de), oe);
834
+ i.imageWrapEl.style.transitionDuration = "0ms", i.imageWrapEl.style.transform = `translate3d(${te}px, ${ie}px, 0)`, f.x = c.clientX, f.y = c.clientY, t.startX = te, t.startY = ie, t.currentX = te, t.currentY = ie;
808
835
  }
809
- function O(p) {
810
- const b = e.zoom, x = e.params.zoom;
836
+ function F(c) {
837
+ const E = e.zoom, y = e.params.zoom;
811
838
  if (!i.slideEl) {
812
- p && p.target && (i.slideEl = p.target.closest(`.${e.params.slideClass}, swiper-slide`)), i.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = ce(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex]);
813
- let ie = i.slideEl.querySelector(`.${x.containerClass}`);
814
- ie && (ie = ie.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = ie, ie ? i.imageWrapEl = _(i.imageEl, `.${x.containerClass}`)[0] : i.imageWrapEl = void 0;
839
+ c && c.target && (i.slideEl = c.target.closest(`.${e.params.slideClass}, swiper-slide`)), i.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = he(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex]);
840
+ let le = i.slideEl.querySelector(`.${y.containerClass}`);
841
+ le && (le = le.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = le, le ? i.imageWrapEl = se(i.imageEl, `.${y.containerClass}`)[0] : i.imageWrapEl = void 0;
815
842
  }
816
843
  if (!i.imageEl || !i.imageWrapEl) return;
817
- e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${x.zoomedSlideClass}`);
818
- let A, H, G, K, J, se, F, U, Ee, Ce, xe, Te, re, oe, de, pe, fe, me;
819
- typeof t.touchesStart.x > "u" && p ? (A = p.pageX, H = p.pageY) : (A = t.touchesStart.x, H = t.touchesStart.y);
820
- const te = typeof p == "number" ? p : null;
821
- T === 1 && te && (A = void 0, H = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0);
822
- const Se = d();
823
- b.scale = te || Se, T = te || Se, p && !(T === 1 && te) ? (fe = i.slideEl.offsetWidth, me = i.slideEl.offsetHeight, G = we(i.slideEl).left + E.scrollX, K = we(i.slideEl).top + E.scrollY, J = G + fe / 2 - A, se = K + me / 2 - H, Ee = i.imageEl.offsetWidth || i.imageEl.clientWidth, Ce = i.imageEl.offsetHeight || i.imageEl.clientHeight, xe = Ee * b.scale, Te = Ce * b.scale, re = Math.min(fe / 2 - xe / 2, 0), oe = Math.min(me / 2 - Te / 2, 0), de = -re, pe = -oe, F = J * b.scale, U = se * b.scale, F < re && (F = re), F > de && (F = de), U < oe && (U = oe), U > pe && (U = pe)) : (F = 0, U = 0), te && b.scale === 1 && (i.originX = 0, i.originY = 0), i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = `translate3d(0,0,0) scale(${b.scale})`;
844
+ e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${y.zoomedSlideClass}`);
845
+ let O, B, U, Z, q, J, H, N, oe, de, te, ie, pe, fe, ve, ye, we, be;
846
+ typeof t.touchesStart.x > "u" && c ? (O = c.pageX, B = c.pageY) : (O = t.touchesStart.x, B = t.touchesStart.y);
847
+ const Ee = T, ne = typeof c == "number" ? c : null;
848
+ T === 1 && ne && (O = void 0, B = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0);
849
+ const ze = a();
850
+ E.scale = ne || ze, T = ne || ze, c && !(T === 1 && ne) ? (we = i.slideEl.offsetWidth, be = i.slideEl.offsetHeight, U = Me(i.slideEl).left + w.scrollX, Z = Me(i.slideEl).top + w.scrollY, q = U + we / 2 - O, J = Z + be / 2 - B, oe = i.imageEl.offsetWidth || i.imageEl.clientWidth, de = i.imageEl.offsetHeight || i.imageEl.clientHeight, te = oe * E.scale, ie = de * E.scale, pe = Math.min(we / 2 - te / 2, 0), fe = Math.min(be / 2 - ie / 2, 0), ve = -pe, ye = -fe, Ee > 0 && ne && typeof t.currentX == "number" && typeof t.currentY == "number" ? (H = t.currentX * E.scale / Ee, N = t.currentY * E.scale / Ee) : (H = q * E.scale, N = J * E.scale), H < pe && (H = pe), H > ve && (H = ve), N < fe && (N = fe), N > ye && (N = ye)) : (H = 0, N = 0), ne && E.scale === 1 && (i.originX = 0, i.originY = 0), t.currentX = H, t.currentY = N, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = `translate3d(${H}px, ${N}px,0)`, i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = `translate3d(0,0,0) scale(${E.scale})`;
824
851
  }
825
- function X() {
826
- const p = e.zoom, b = e.params.zoom;
852
+ function R() {
853
+ const c = e.zoom, E = e.params.zoom;
827
854
  if (!i.slideEl) {
828
- e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = ce(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex];
829
- let x = i.slideEl.querySelector(`.${b.containerClass}`);
830
- x && (x = x.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = x, x ? i.imageWrapEl = _(i.imageEl, `.${b.containerClass}`)[0] : i.imageWrapEl = void 0;
855
+ e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = he(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex];
856
+ let y = i.slideEl.querySelector(`.${E.containerClass}`);
857
+ y && (y = y.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = y, y ? i.imageWrapEl = se(i.imageEl, `.${E.containerClass}`)[0] : i.imageWrapEl = void 0;
831
858
  }
832
- !i.imageEl || !i.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), p.scale = 1, T = 1, t.touchesStart.x = void 0, t.touchesStart.y = void 0, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = "translate3d(0,0,0)", i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = "translate3d(0,0,0) scale(1)", i.slideEl.classList.remove(`${b.zoomedSlideClass}`), i.slideEl = void 0, i.originX = 0, i.originY = 0);
859
+ !i.imageEl || !i.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), c.scale = 1, T = 1, t.currentX = void 0, t.currentY = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = "translate3d(0,0,0)", i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = "translate3d(0,0,0) scale(1)", i.slideEl.classList.remove(`${E.zoomedSlideClass}`), i.slideEl = void 0, i.originX = 0, i.originY = 0, e.params.zoom.panOnMouseMove && (f = {
860
+ x: 0,
861
+ y: 0
862
+ }, S && (S = !1, t.startX = 0, t.startY = 0)));
833
863
  }
834
- function ne(p) {
835
- const b = e.zoom;
836
- b.scale && b.scale !== 1 ? X() : O(p);
864
+ function K(c) {
865
+ const E = e.zoom;
866
+ E.scale && E.scale !== 1 ? R() : F(c);
837
867
  }
838
- function I() {
839
- const p = e.params.passiveListeners ? {
868
+ function re() {
869
+ const c = e.params.passiveListeners ? {
840
870
  passive: !0,
841
871
  capture: !1
842
- } : !1, b = e.params.passiveListeners ? {
872
+ } : !1, E = e.params.passiveListeners ? {
843
873
  passive: !1,
844
874
  capture: !0
845
875
  } : !0;
846
876
  return {
847
- passiveListener: p,
848
- activeListenerWithCapture: b
877
+ passiveListener: c,
878
+ activeListenerWithCapture: E
849
879
  };
850
880
  }
851
- function R() {
852
- const p = e.zoom;
853
- if (p.enabled) return;
854
- p.enabled = !0;
881
+ function $e() {
882
+ const c = e.zoom;
883
+ if (c.enabled) return;
884
+ c.enabled = !0;
855
885
  const {
856
- passiveListener: b,
857
- activeListenerWithCapture: x
858
- } = I();
859
- e.wrapperEl.addEventListener("pointerdown", S, b), e.wrapperEl.addEventListener("pointermove", h, x), ["pointerup", "pointercancel", "pointerout"].forEach((A) => {
860
- e.wrapperEl.addEventListener(A, L, b);
861
- }), e.wrapperEl.addEventListener("pointermove", W, x);
886
+ passiveListener: E,
887
+ activeListenerWithCapture: y
888
+ } = re();
889
+ e.wrapperEl.addEventListener("pointerdown", x, E), e.wrapperEl.addEventListener("pointermove", b, y), ["pointerup", "pointercancel", "pointerout"].forEach((O) => {
890
+ e.wrapperEl.addEventListener(O, X, E);
891
+ }), e.wrapperEl.addEventListener("pointermove", D, y);
862
892
  }
863
- function B() {
864
- const p = e.zoom;
865
- if (!p.enabled) return;
866
- p.enabled = !1;
893
+ function Pe() {
894
+ const c = e.zoom;
895
+ if (!c.enabled) return;
896
+ c.enabled = !1;
867
897
  const {
868
- passiveListener: b,
869
- activeListenerWithCapture: x
870
- } = I();
871
- e.wrapperEl.removeEventListener("pointerdown", S, b), e.wrapperEl.removeEventListener("pointermove", h, x), ["pointerup", "pointercancel", "pointerout"].forEach((A) => {
872
- e.wrapperEl.removeEventListener(A, L, b);
873
- }), e.wrapperEl.removeEventListener("pointermove", W, x);
898
+ passiveListener: E,
899
+ activeListenerWithCapture: y
900
+ } = re();
901
+ e.wrapperEl.removeEventListener("pointerdown", x, E), e.wrapperEl.removeEventListener("pointermove", b, y), ["pointerup", "pointercancel", "pointerout"].forEach((O) => {
902
+ e.wrapperEl.removeEventListener(O, X, E);
903
+ }), e.wrapperEl.removeEventListener("pointermove", D, y);
874
904
  }
875
905
  l("init", () => {
876
- e.params.zoom.enabled && R();
906
+ e.params.zoom.enabled && $e();
877
907
  }), l("destroy", () => {
878
- B();
879
- }), l("touchStart", (p, b) => {
880
- e.zoom.enabled && k(b);
881
- }), l("touchEnd", (p, b) => {
882
- e.zoom.enabled && P();
883
- }), l("doubleTap", (p, b) => {
884
- !e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && ne(b);
908
+ Pe();
909
+ }), l("touchStart", (c, E) => {
910
+ e.zoom.enabled && z(E);
911
+ }), l("touchEnd", (c, E) => {
912
+ e.zoom.enabled && I();
913
+ }), l("doubleTap", (c, E) => {
914
+ !e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && K(E);
885
915
  }), l("transitionEnd", () => {
886
- e.zoom.enabled && e.params.zoom.enabled && z();
916
+ e.zoom.enabled && e.params.zoom.enabled && ce();
887
917
  }), l("slideChange", () => {
888
- e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && z();
918
+ e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && ce();
889
919
  }), Object.assign(e.zoom, {
890
- enable: R,
891
- disable: B,
892
- in: O,
893
- out: X,
894
- toggle: ne
920
+ enable: $e,
921
+ disable: Pe,
922
+ in: F,
923
+ out: R,
924
+ toggle: K
895
925
  });
896
926
  }
897
- function et(r) {
927
+ function st(s) {
898
928
  let {
899
929
  swiper: e,
900
- extendParams: y,
930
+ extendParams: C,
901
931
  on: l
902
- } = r;
903
- y({
932
+ } = s;
933
+ C({
904
934
  controller: {
905
935
  control: void 0,
906
936
  inverse: !1,
@@ -910,100 +940,100 @@ function et(r) {
910
940
  }), e.controller = {
911
941
  control: void 0
912
942
  };
913
- function m(g, s) {
914
- const i = /* @__PURE__ */ function() {
915
- let u, d, f;
916
- return (a, n) => {
917
- for (d = -1, u = a.length; u - d > 1; )
918
- f = u + d >> 1, a[f] <= n ? d = f : u = f;
919
- return u;
943
+ function m(f, o) {
944
+ const v = /* @__PURE__ */ function() {
945
+ let t, r, p;
946
+ return (n, a) => {
947
+ for (r = -1, t = n.length; t - r > 1; )
948
+ p = t + r >> 1, n[p] <= a ? r = p : t = p;
949
+ return t;
920
950
  };
921
951
  }();
922
- this.x = g, this.y = s, this.lastIndex = g.length - 1;
923
- let t, o;
924
- return this.interpolate = function(u) {
925
- return u ? (o = i(this.x, u), t = o - 1, (u - this.x[t]) * (this.y[o] - this.y[t]) / (this.x[o] - this.x[t]) + this.y[t]) : 0;
952
+ this.x = f, this.y = o, this.lastIndex = f.length - 1;
953
+ let d, u;
954
+ return this.interpolate = function(t) {
955
+ return t ? (u = v(this.x, t), d = u - 1, (t - this.x[d]) * (this.y[u] - this.y[d]) / (this.x[u] - this.x[d]) + this.y[d]) : 0;
926
956
  }, this;
927
957
  }
928
- function E(g) {
929
- e.controller.spline = e.params.loop ? new m(e.slidesGrid, g.slidesGrid) : new m(e.snapGrid, g.snapGrid);
958
+ function w(f) {
959
+ e.controller.spline = e.params.loop ? new m(e.slidesGrid, f.slidesGrid) : new m(e.snapGrid, f.snapGrid);
930
960
  }
931
- function T(g, s) {
932
- const i = e.controller.control;
933
- let t, o;
934
- const c = e.constructor;
935
- function u(d) {
936
- if (d.destroyed) return;
937
- const f = e.rtlTranslate ? -e.translate : e.translate;
938
- e.params.controller.by === "slide" && (E(d), o = -e.controller.spline.interpolate(-f)), (!o || e.params.controller.by === "container") && (t = (d.maxTranslate() - d.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(t) || !Number.isFinite(t)) && (t = 1), o = (f - e.minTranslate()) * t + d.minTranslate()), e.params.controller.inverse && (o = d.maxTranslate() - o), d.updateProgress(o), d.setTranslate(o, e), d.updateActiveIndex(), d.updateSlidesClasses();
961
+ function T(f, o) {
962
+ const v = e.controller.control;
963
+ let d, u;
964
+ const i = e.constructor;
965
+ function t(r) {
966
+ if (r.destroyed) return;
967
+ const p = e.rtlTranslate ? -e.translate : e.translate;
968
+ e.params.controller.by === "slide" && (w(r), u = -e.controller.spline.interpolate(-p)), (!u || e.params.controller.by === "container") && (d = (r.maxTranslate() - r.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(d) || !Number.isFinite(d)) && (d = 1), u = (p - e.minTranslate()) * d + r.minTranslate()), e.params.controller.inverse && (u = r.maxTranslate() - u), r.updateProgress(u), r.setTranslate(u, e), r.updateActiveIndex(), r.updateSlidesClasses();
939
969
  }
940
- if (Array.isArray(i))
941
- for (let d = 0; d < i.length; d += 1)
942
- i[d] !== s && i[d] instanceof c && u(i[d]);
943
- else i instanceof c && s !== i && u(i);
970
+ if (Array.isArray(v))
971
+ for (let r = 0; r < v.length; r += 1)
972
+ v[r] !== o && v[r] instanceof i && t(v[r]);
973
+ else v instanceof i && o !== v && t(v);
944
974
  }
945
- function $(g, s) {
946
- const i = e.constructor, t = e.controller.control;
947
- let o;
948
- function c(u) {
949
- u.destroyed || (u.setTransition(g, e), g !== 0 && (u.transitionStart(), u.params.autoHeight && Ve(() => {
950
- u.updateAutoHeight();
951
- }), ue(u.wrapperEl, () => {
952
- t && u.transitionEnd();
975
+ function $(f, o) {
976
+ const v = e.constructor, d = e.controller.control;
977
+ let u;
978
+ function i(t) {
979
+ t.destroyed || (t.setTransition(f, e), f !== 0 && (t.transitionStart(), t.params.autoHeight && Ze(() => {
980
+ t.updateAutoHeight();
981
+ }), ge(t.wrapperEl, () => {
982
+ d && t.transitionEnd();
953
983
  })));
954
984
  }
955
- if (Array.isArray(t))
956
- for (o = 0; o < t.length; o += 1)
957
- t[o] !== s && t[o] instanceof i && c(t[o]);
958
- else t instanceof i && s !== t && c(t);
985
+ if (Array.isArray(d))
986
+ for (u = 0; u < d.length; u += 1)
987
+ d[u] !== o && d[u] instanceof v && i(d[u]);
988
+ else d instanceof v && o !== d && i(d);
959
989
  }
960
- function M() {
990
+ function S() {
961
991
  e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
962
992
  }
963
993
  l("beforeInit", () => {
964
994
  if (typeof window < "u" && // eslint-disable-line
965
995
  (typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
966
- (typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((s) => {
967
- if (e.controller.control || (e.controller.control = []), s && s.swiper)
968
- e.controller.control.push(s.swiper);
969
- else if (s) {
970
- const i = `${e.params.eventsPrefix}init`, t = (o) => {
971
- e.controller.control.push(o.detail[0]), e.update(), s.removeEventListener(i, t);
996
+ (typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((o) => {
997
+ if (e.controller.control || (e.controller.control = []), o && o.swiper)
998
+ e.controller.control.push(o.swiper);
999
+ else if (o) {
1000
+ const v = `${e.params.eventsPrefix}init`, d = (u) => {
1001
+ e.controller.control.push(u.detail[0]), e.update(), o.removeEventListener(v, d);
972
1002
  };
973
- s.addEventListener(i, t);
1003
+ o.addEventListener(v, d);
974
1004
  }
975
1005
  });
976
1006
  return;
977
1007
  }
978
1008
  e.controller.control = e.params.controller.control;
979
1009
  }), l("update", () => {
980
- M();
1010
+ S();
981
1011
  }), l("resize", () => {
982
- M();
1012
+ S();
983
1013
  }), l("observerUpdate", () => {
984
- M();
985
- }), l("setTranslate", (g, s, i) => {
986
- !e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(s, i);
987
- }), l("setTransition", (g, s, i) => {
988
- !e.controller.control || e.controller.control.destroyed || e.controller.setTransition(s, i);
1014
+ S();
1015
+ }), l("setTranslate", (f, o, v) => {
1016
+ !e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(o, v);
1017
+ }), l("setTransition", (f, o, v) => {
1018
+ !e.controller.control || e.controller.control.destroyed || e.controller.setTransition(o, v);
989
1019
  }), Object.assign(e.controller, {
990
1020
  setTranslate: T,
991
1021
  setTransition: $
992
1022
  });
993
1023
  }
994
- function tt(r) {
1024
+ function rt(s) {
995
1025
  let {
996
1026
  swiper: e,
997
- extendParams: y,
1027
+ extendParams: C,
998
1028
  on: l,
999
1029
  emit: m,
1000
- params: E
1001
- } = r;
1030
+ params: w
1031
+ } = s;
1002
1032
  e.autoplay = {
1003
1033
  running: !1,
1004
1034
  paused: !1,
1005
1035
  timeLeft: 0
1006
- }, y({
1036
+ }, C({
1007
1037
  autoplay: {
1008
1038
  enabled: !1,
1009
1039
  delay: 3e3,
@@ -1014,115 +1044,115 @@ function tt(r) {
1014
1044
  pauseOnMouseEnter: !1
1015
1045
  }
1016
1046
  });
1017
- let T, $, M = E && E.autoplay ? E.autoplay.delay : 3e3, g = E && E.autoplay ? E.autoplay.delay : 3e3, s, i = (/* @__PURE__ */ new Date()).getTime(), t, o, c, u, d, f, a;
1018
- function n(I) {
1019
- !e || e.destroyed || !e.wrapperEl || I.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", n), !(a || I.detail && I.detail.bySwiperTouchMove) && D());
1047
+ let T, $, S = w && w.autoplay ? w.autoplay.delay : 3e3, f = w && w.autoplay ? w.autoplay.delay : 3e3, o, v = (/* @__PURE__ */ new Date()).getTime(), d, u, i, t, r, p, n;
1048
+ function a(Y) {
1049
+ !e || e.destroyed || !e.wrapperEl || Y.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", a), !(n || Y.detail && Y.detail.bySwiperTouchMove) && X());
1020
1050
  }
1021
- const v = () => {
1051
+ const h = () => {
1022
1052
  if (e.destroyed || !e.autoplay.running) return;
1023
- e.autoplay.paused ? t = !0 : t && (g = s, t = !1);
1024
- const I = e.autoplay.paused ? s : i + g - (/* @__PURE__ */ new Date()).getTime();
1025
- e.autoplay.timeLeft = I, m("autoplayTimeLeft", I, I / M), $ = requestAnimationFrame(() => {
1026
- v();
1053
+ e.autoplay.paused ? d = !0 : d && (f = o, d = !1);
1054
+ const Y = e.autoplay.paused ? o : v + f - (/* @__PURE__ */ new Date()).getTime();
1055
+ e.autoplay.timeLeft = Y, m("autoplayTimeLeft", Y, Y / S), $ = requestAnimationFrame(() => {
1056
+ h();
1027
1057
  });
1028
- }, S = () => {
1029
- let I;
1030
- return e.virtual && e.params.virtual.enabled ? I = e.slides.filter((B) => B.classList.contains("swiper-slide-active"))[0] : I = e.slides[e.activeIndex], I ? parseInt(I.getAttribute("data-swiper-autoplay"), 10) : void 0;
1031
- }, h = (I) => {
1058
+ }, M = () => {
1059
+ let Y;
1060
+ return e.virtual && e.params.virtual.enabled ? Y = e.slides.find((R) => R.classList.contains("swiper-slide-active")) : Y = e.slides[e.activeIndex], Y ? parseInt(Y.getAttribute("data-swiper-autoplay"), 10) : void 0;
1061
+ }, g = (Y) => {
1032
1062
  if (e.destroyed || !e.autoplay.running) return;
1033
- cancelAnimationFrame($), v();
1034
- let R = typeof I > "u" ? e.params.autoplay.delay : I;
1035
- M = e.params.autoplay.delay, g = e.params.autoplay.delay;
1036
- const B = S();
1037
- !Number.isNaN(B) && B > 0 && typeof I > "u" && (R = B, M = B, g = B), s = R;
1038
- const p = e.params.speed, b = () => {
1039
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(p, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, p, !0, !0), m("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(p, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, p, !0, !0), m("autoplay")), e.params.cssMode && (i = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
1040
- h();
1063
+ cancelAnimationFrame($), h();
1064
+ let F = typeof Y > "u" ? e.params.autoplay.delay : Y;
1065
+ S = e.params.autoplay.delay, f = e.params.autoplay.delay;
1066
+ const R = M();
1067
+ !Number.isNaN(R) && R > 0 && typeof Y > "u" && (F = R, S = R, f = R), o = F;
1068
+ const K = e.params.speed, re = () => {
1069
+ !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(K, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, K, !0, !0), m("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(K, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, K, !0, !0), m("autoplay")), e.params.cssMode && (v = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
1070
+ g();
1041
1071
  })));
1042
1072
  };
1043
- return R > 0 ? (clearTimeout(T), T = setTimeout(() => {
1044
- b();
1045
- }, R)) : requestAnimationFrame(() => {
1046
- b();
1047
- }), R;
1073
+ return F > 0 ? (clearTimeout(T), T = setTimeout(() => {
1074
+ re();
1075
+ }, F)) : requestAnimationFrame(() => {
1076
+ re();
1077
+ }), F;
1048
1078
  }, L = () => {
1049
- i = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, h(), m("autoplayStart");
1050
- }, C = () => {
1079
+ v = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, g(), m("autoplayStart");
1080
+ }, x = () => {
1051
1081
  e.autoplay.running = !1, clearTimeout(T), cancelAnimationFrame($), m("autoplayStop");
1052
- }, w = (I, R) => {
1082
+ }, b = (Y, F) => {
1053
1083
  if (e.destroyed || !e.autoplay.running) return;
1054
- clearTimeout(T), I || (f = !0);
1055
- const B = () => {
1056
- m("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", n) : D();
1084
+ clearTimeout(T), Y || (p = !0);
1085
+ const R = () => {
1086
+ m("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", a) : X();
1057
1087
  };
1058
- if (e.autoplay.paused = !0, R) {
1059
- d && (s = e.params.autoplay.delay), d = !1, B();
1088
+ if (e.autoplay.paused = !0, F) {
1089
+ r && (o = e.params.autoplay.delay), r = !1, R();
1060
1090
  return;
1061
1091
  }
1062
- s = (s || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - i), !(e.isEnd && s < 0 && !e.params.loop) && (s < 0 && (s = 0), B());
1063
- }, D = () => {
1064
- e.isEnd && s < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (i = (/* @__PURE__ */ new Date()).getTime(), f ? (f = !1, h(s)) : h(), e.autoplay.paused = !1, m("autoplayResume"));
1092
+ o = (o || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - v), !(e.isEnd && o < 0 && !e.params.loop) && (o < 0 && (o = 0), R());
1093
+ }, X = () => {
1094
+ e.isEnd && o < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (v = (/* @__PURE__ */ new Date()).getTime(), p ? (p = !1, g(o)) : g(), e.autoplay.paused = !1, m("autoplayResume"));
1065
1095
  }, k = () => {
1066
1096
  if (e.destroyed || !e.autoplay.running) return;
1067
- const I = Q();
1068
- I.visibilityState === "hidden" && (f = !0, w(!0)), I.visibilityState === "visible" && D();
1069
- }, W = (I) => {
1070
- I.pointerType === "mouse" && (f = !0, a = !0, !(e.animating || e.autoplay.paused) && w(!0));
1071
- }, P = (I) => {
1072
- I.pointerType === "mouse" && (a = !1, e.autoplay.paused && D());
1097
+ const Y = ae();
1098
+ Y.visibilityState === "hidden" && (p = !0, b(!0)), Y.visibilityState === "visible" && X();
1099
+ }, W = (Y) => {
1100
+ Y.pointerType === "mouse" && (p = !0, n = !0, !(e.animating || e.autoplay.paused) && b(!0));
1101
+ }, P = (Y) => {
1102
+ Y.pointerType === "mouse" && (n = !1, e.autoplay.paused && X());
1073
1103
  }, z = () => {
1074
1104
  e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", W), e.el.addEventListener("pointerleave", P));
1075
- }, O = () => {
1105
+ }, D = () => {
1076
1106
  e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", W), e.el.removeEventListener("pointerleave", P));
1077
- }, X = () => {
1078
- Q().addEventListener("visibilitychange", k);
1079
- }, ne = () => {
1080
- Q().removeEventListener("visibilitychange", k);
1107
+ }, I = () => {
1108
+ ae().addEventListener("visibilitychange", k);
1109
+ }, ce = () => {
1110
+ ae().removeEventListener("visibilitychange", k);
1081
1111
  };
1082
1112
  l("init", () => {
1083
- e.params.autoplay.enabled && (z(), X(), L());
1113
+ e.params.autoplay.enabled && (z(), I(), L());
1084
1114
  }), l("destroy", () => {
1085
- O(), ne(), e.autoplay.running && C();
1115
+ D(), ce(), e.autoplay.running && x();
1086
1116
  }), l("_freeModeStaticRelease", () => {
1087
- (c || f) && D();
1117
+ (i || p) && X();
1088
1118
  }), l("_freeModeNoMomentumRelease", () => {
1089
- e.params.autoplay.disableOnInteraction ? C() : w(!0, !0);
1090
- }), l("beforeTransitionStart", (I, R, B) => {
1091
- e.destroyed || !e.autoplay.running || (B || !e.params.autoplay.disableOnInteraction ? w(!0, !0) : C());
1119
+ e.params.autoplay.disableOnInteraction ? x() : b(!0, !0);
1120
+ }), l("beforeTransitionStart", (Y, F, R) => {
1121
+ e.destroyed || !e.autoplay.running || (R || !e.params.autoplay.disableOnInteraction ? b(!0, !0) : x());
1092
1122
  }), l("sliderFirstMove", () => {
1093
1123
  if (!(e.destroyed || !e.autoplay.running)) {
1094
1124
  if (e.params.autoplay.disableOnInteraction) {
1095
- C();
1125
+ x();
1096
1126
  return;
1097
1127
  }
1098
- o = !0, c = !1, f = !1, u = setTimeout(() => {
1099
- f = !0, c = !0, w(!0);
1128
+ u = !0, i = !1, p = !1, t = setTimeout(() => {
1129
+ p = !0, i = !0, b(!0);
1100
1130
  }, 200);
1101
1131
  }
1102
1132
  }), l("touchEnd", () => {
1103
- if (!(e.destroyed || !e.autoplay.running || !o)) {
1104
- if (clearTimeout(u), clearTimeout(T), e.params.autoplay.disableOnInteraction) {
1105
- c = !1, o = !1;
1133
+ if (!(e.destroyed || !e.autoplay.running || !u)) {
1134
+ if (clearTimeout(t), clearTimeout(T), e.params.autoplay.disableOnInteraction) {
1135
+ i = !1, u = !1;
1106
1136
  return;
1107
1137
  }
1108
- c && e.params.cssMode && D(), c = !1, o = !1;
1138
+ i && e.params.cssMode && X(), i = !1, u = !1;
1109
1139
  }
1110
1140
  }), l("slideChange", () => {
1111
- e.destroyed || !e.autoplay.running || (d = !0);
1141
+ e.destroyed || !e.autoplay.running || (r = !0);
1112
1142
  }), Object.assign(e.autoplay, {
1113
1143
  start: L,
1114
- stop: C,
1115
- pause: w,
1116
- resume: D
1144
+ stop: x,
1145
+ pause: b,
1146
+ resume: X
1117
1147
  });
1118
1148
  }
1119
- function it(r) {
1149
+ function ot(s) {
1120
1150
  let {
1121
1151
  swiper: e,
1122
- extendParams: y,
1152
+ extendParams: C,
1123
1153
  on: l
1124
- } = r;
1125
- y({
1154
+ } = s;
1155
+ C({
1126
1156
  thumbs: {
1127
1157
  swiper: null,
1128
1158
  multipleActiveThumbs: !0,
@@ -1131,113 +1161,115 @@ function it(r) {
1131
1161
  thumbsContainerClass: "swiper-thumbs"
1132
1162
  }
1133
1163
  });
1134
- let m = !1, E = !1;
1164
+ let m = !1, w = !1;
1135
1165
  e.thumbs = {
1136
1166
  swiper: null
1137
1167
  };
1138
1168
  function T() {
1139
- const g = e.thumbs.swiper;
1140
- if (!g || g.destroyed) return;
1141
- const s = g.clickedIndex, i = g.clickedSlide;
1142
- if (i && i.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof s > "u" || s === null) return;
1143
- let t;
1144
- g.params.loop ? t = parseInt(g.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : t = s, e.params.loop ? e.slideToLoop(t) : e.slideTo(t);
1169
+ const f = e.thumbs.swiper;
1170
+ if (!f || f.destroyed) return;
1171
+ const o = f.clickedIndex, v = f.clickedSlide;
1172
+ if (v && v.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof o > "u" || o === null) return;
1173
+ let d;
1174
+ f.params.loop ? d = parseInt(f.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : d = o, e.params.loop ? e.slideToLoop(d) : e.slideTo(d);
1145
1175
  }
1146
1176
  function $() {
1147
1177
  const {
1148
- thumbs: g
1178
+ thumbs: f
1149
1179
  } = e.params;
1150
1180
  if (m) return !1;
1151
1181
  m = !0;
1152
- const s = e.constructor;
1153
- if (g.swiper instanceof s)
1154
- e.thumbs.swiper = g.swiper, Object.assign(e.thumbs.swiper.originalParams, {
1182
+ const o = e.constructor;
1183
+ if (f.swiper instanceof o) {
1184
+ if (f.swiper.destroyed)
1185
+ return m = !1, !1;
1186
+ e.thumbs.swiper = f.swiper, Object.assign(e.thumbs.swiper.originalParams, {
1155
1187
  watchSlidesProgress: !0,
1156
1188
  slideToClickedSlide: !1
1157
1189
  }), Object.assign(e.thumbs.swiper.params, {
1158
1190
  watchSlidesProgress: !0,
1159
1191
  slideToClickedSlide: !1
1160
1192
  }), e.thumbs.swiper.update();
1161
- else if (Ge(g.swiper)) {
1162
- const i = Object.assign({}, g.swiper);
1163
- Object.assign(i, {
1193
+ } else if (Qe(f.swiper)) {
1194
+ const v = Object.assign({}, f.swiper);
1195
+ Object.assign(v, {
1164
1196
  watchSlidesProgress: !0,
1165
1197
  slideToClickedSlide: !1
1166
- }), e.thumbs.swiper = new s(i), E = !0;
1198
+ }), e.thumbs.swiper = new o(v), w = !0;
1167
1199
  }
1168
1200
  return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", T), !0;
1169
1201
  }
1170
- function M(g) {
1171
- const s = e.thumbs.swiper;
1172
- if (!s || s.destroyed) return;
1173
- const i = s.params.slidesPerView === "auto" ? s.slidesPerViewDynamic() : s.params.slidesPerView;
1174
- let t = 1;
1175
- const o = e.params.thumbs.slideThumbActiveClass;
1176
- if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (t = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (t = 1), t = Math.floor(t), s.slides.forEach((d) => d.classList.remove(o)), s.params.loop || s.params.virtual && s.params.virtual.enabled)
1177
- for (let d = 0; d < t; d += 1)
1178
- ce(s.slidesEl, `[data-swiper-slide-index="${e.realIndex + d}"]`).forEach((f) => {
1179
- f.classList.add(o);
1202
+ function S(f) {
1203
+ const o = e.thumbs.swiper;
1204
+ if (!o || o.destroyed) return;
1205
+ const v = o.params.slidesPerView === "auto" ? o.slidesPerViewDynamic() : o.params.slidesPerView;
1206
+ let d = 1;
1207
+ const u = e.params.thumbs.slideThumbActiveClass;
1208
+ if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (d = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (d = 1), d = Math.floor(d), o.slides.forEach((r) => r.classList.remove(u)), o.params.loop || o.params.virtual && o.params.virtual.enabled)
1209
+ for (let r = 0; r < d; r += 1)
1210
+ he(o.slidesEl, `[data-swiper-slide-index="${e.realIndex + r}"]`).forEach((p) => {
1211
+ p.classList.add(u);
1180
1212
  });
1181
1213
  else
1182
- for (let d = 0; d < t; d += 1)
1183
- s.slides[e.realIndex + d] && s.slides[e.realIndex + d].classList.add(o);
1184
- const c = e.params.thumbs.autoScrollOffset, u = c && !s.params.loop;
1185
- if (e.realIndex !== s.realIndex || u) {
1186
- const d = s.activeIndex;
1187
- let f, a;
1188
- if (s.params.loop) {
1189
- const n = s.slides.filter((v) => v.getAttribute("data-swiper-slide-index") === `${e.realIndex}`)[0];
1190
- f = s.slides.indexOf(n), a = e.activeIndex > e.previousIndex ? "next" : "prev";
1214
+ for (let r = 0; r < d; r += 1)
1215
+ o.slides[e.realIndex + r] && o.slides[e.realIndex + r].classList.add(u);
1216
+ const i = e.params.thumbs.autoScrollOffset, t = i && !o.params.loop;
1217
+ if (e.realIndex !== o.realIndex || t) {
1218
+ const r = o.activeIndex;
1219
+ let p, n;
1220
+ if (o.params.loop) {
1221
+ const a = o.slides.find((h) => h.getAttribute("data-swiper-slide-index") === `${e.realIndex}`);
1222
+ p = o.slides.indexOf(a), n = e.activeIndex > e.previousIndex ? "next" : "prev";
1191
1223
  } else
1192
- f = e.realIndex, a = f > e.previousIndex ? "next" : "prev";
1193
- u && (f += a === "next" ? c : -1 * c), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(f) < 0 && (s.params.centeredSlides ? f > d ? f = f - Math.floor(i / 2) + 1 : f = f + Math.floor(i / 2) - 1 : f > d && s.params.slidesPerGroup, s.slideTo(f, g ? 0 : void 0));
1224
+ p = e.realIndex, n = p > e.previousIndex ? "next" : "prev";
1225
+ t && (p += n === "next" ? i : -1 * i), o.visibleSlidesIndexes && o.visibleSlidesIndexes.indexOf(p) < 0 && (o.params.centeredSlides ? p > r ? p = p - Math.floor(v / 2) + 1 : p = p + Math.floor(v / 2) - 1 : p > r && o.params.slidesPerGroup, o.slideTo(p, f ? 0 : void 0));
1194
1226
  }
1195
1227
  }
1196
1228
  l("beforeInit", () => {
1197
1229
  const {
1198
- thumbs: g
1230
+ thumbs: f
1199
1231
  } = e.params;
1200
- if (!(!g || !g.swiper))
1201
- if (typeof g.swiper == "string" || g.swiper instanceof HTMLElement) {
1202
- const s = Q(), i = () => {
1203
- const o = typeof g.swiper == "string" ? s.querySelector(g.swiper) : g.swiper;
1204
- if (o && o.swiper)
1205
- g.swiper = o.swiper, $(), M(!0);
1206
- else if (o) {
1207
- const c = `${e.params.eventsPrefix}init`, u = (d) => {
1208
- g.swiper = d.detail[0], o.removeEventListener(c, u), $(), M(!0), g.swiper.update(), e.update();
1232
+ if (!(!f || !f.swiper))
1233
+ if (typeof f.swiper == "string" || f.swiper instanceof HTMLElement) {
1234
+ const o = ae(), v = () => {
1235
+ const u = typeof f.swiper == "string" ? o.querySelector(f.swiper) : f.swiper;
1236
+ if (u && u.swiper)
1237
+ f.swiper = u.swiper, $(), S(!0);
1238
+ else if (u) {
1239
+ const i = `${e.params.eventsPrefix}init`, t = (r) => {
1240
+ f.swiper = r.detail[0], u.removeEventListener(i, t), $(), S(!0), f.swiper.update(), e.update();
1209
1241
  };
1210
- o.addEventListener(c, u);
1242
+ u.addEventListener(i, t);
1211
1243
  }
1212
- return o;
1213
- }, t = () => {
1244
+ return u;
1245
+ }, d = () => {
1214
1246
  if (e.destroyed) return;
1215
- i() || requestAnimationFrame(t);
1247
+ v() || requestAnimationFrame(d);
1216
1248
  };
1217
- requestAnimationFrame(t);
1249
+ requestAnimationFrame(d);
1218
1250
  } else
1219
- $(), M(!0);
1251
+ $(), S(!0);
1220
1252
  }), l("slideChange update resize observerUpdate", () => {
1221
- M();
1222
- }), l("setTransition", (g, s) => {
1223
- const i = e.thumbs.swiper;
1224
- !i || i.destroyed || i.setTransition(s);
1253
+ S();
1254
+ }), l("setTransition", (f, o) => {
1255
+ const v = e.thumbs.swiper;
1256
+ !v || v.destroyed || v.setTransition(o);
1225
1257
  }), l("beforeDestroy", () => {
1226
- const g = e.thumbs.swiper;
1227
- !g || g.destroyed || E && g.destroy();
1258
+ const f = e.thumbs.swiper;
1259
+ !f || f.destroyed || w && f.destroy();
1228
1260
  }), Object.assign(e.thumbs, {
1229
1261
  init: $,
1230
- update: M
1262
+ update: S
1231
1263
  });
1232
1264
  }
1233
- function at(r) {
1265
+ function lt(s) {
1234
1266
  let {
1235
1267
  swiper: e,
1236
- extendParams: y,
1268
+ extendParams: C,
1237
1269
  emit: l,
1238
1270
  once: m
1239
- } = r;
1240
- y({
1271
+ } = s;
1272
+ C({
1241
1273
  freeMode: {
1242
1274
  enabled: !1,
1243
1275
  momentum: !0,
@@ -1249,109 +1281,109 @@ function at(r) {
1249
1281
  minimumVelocity: 0.02
1250
1282
  }
1251
1283
  });
1252
- function E() {
1284
+ function w() {
1253
1285
  if (e.params.cssMode) return;
1254
- const M = e.getTranslate();
1255
- e.setTranslate(M), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
1286
+ const S = e.getTranslate();
1287
+ e.setTranslate(S), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
1256
1288
  currentPos: e.rtl ? e.translate : -e.translate
1257
1289
  });
1258
1290
  }
1259
1291
  function T() {
1260
1292
  if (e.params.cssMode) return;
1261
1293
  const {
1262
- touchEventsData: M,
1263
- touches: g
1294
+ touchEventsData: S,
1295
+ touches: f
1264
1296
  } = e;
1265
- M.velocities.length === 0 && M.velocities.push({
1266
- position: g[e.isHorizontal() ? "startX" : "startY"],
1267
- time: M.touchStartTime
1268
- }), M.velocities.push({
1269
- position: g[e.isHorizontal() ? "currentX" : "currentY"],
1270
- time: ye()
1297
+ S.velocities.length === 0 && S.velocities.push({
1298
+ position: f[e.isHorizontal() ? "startX" : "startY"],
1299
+ time: S.touchStartTime
1300
+ }), S.velocities.push({
1301
+ position: f[e.isHorizontal() ? "currentX" : "currentY"],
1302
+ time: Se()
1271
1303
  });
1272
1304
  }
1273
- function $(M) {
1305
+ function $(S) {
1274
1306
  let {
1275
- currentPos: g
1276
- } = M;
1307
+ currentPos: f
1308
+ } = S;
1277
1309
  if (e.params.cssMode) return;
1278
1310
  const {
1279
- params: s,
1280
- wrapperEl: i,
1281
- rtlTranslate: t,
1282
- snapGrid: o,
1283
- touchEventsData: c
1284
- } = e, d = ye() - c.touchStartTime;
1285
- if (g < -e.minTranslate()) {
1311
+ params: o,
1312
+ wrapperEl: v,
1313
+ rtlTranslate: d,
1314
+ snapGrid: u,
1315
+ touchEventsData: i
1316
+ } = e, r = Se() - i.touchStartTime;
1317
+ if (f < -e.minTranslate()) {
1286
1318
  e.slideTo(e.activeIndex);
1287
1319
  return;
1288
1320
  }
1289
- if (g > -e.maxTranslate()) {
1290
- e.slides.length < o.length ? e.slideTo(o.length - 1) : e.slideTo(e.slides.length - 1);
1321
+ if (f > -e.maxTranslate()) {
1322
+ e.slides.length < u.length ? e.slideTo(u.length - 1) : e.slideTo(e.slides.length - 1);
1291
1323
  return;
1292
1324
  }
1293
- if (s.freeMode.momentum) {
1294
- if (c.velocities.length > 1) {
1295
- const C = c.velocities.pop(), w = c.velocities.pop(), D = C.position - w.position, k = C.time - w.time;
1296
- e.velocity = D / k, e.velocity /= 2, Math.abs(e.velocity) < s.freeMode.minimumVelocity && (e.velocity = 0), (k > 150 || ye() - C.time > 300) && (e.velocity = 0);
1325
+ if (o.freeMode.momentum) {
1326
+ if (i.velocities.length > 1) {
1327
+ const x = i.velocities.pop(), b = i.velocities.pop(), X = x.position - b.position, k = x.time - b.time;
1328
+ e.velocity = X / k, e.velocity /= 2, Math.abs(e.velocity) < o.freeMode.minimumVelocity && (e.velocity = 0), (k > 150 || Se() - x.time > 300) && (e.velocity = 0);
1297
1329
  } else
1298
1330
  e.velocity = 0;
1299
- e.velocity *= s.freeMode.momentumVelocityRatio, c.velocities.length = 0;
1300
- let f = 1e3 * s.freeMode.momentumRatio;
1301
- const a = e.velocity * f;
1302
- let n = e.translate + a;
1303
- t && (n = -n);
1304
- let v = !1, S;
1305
- const h = Math.abs(e.velocity) * 20 * s.freeMode.momentumBounceRatio;
1331
+ e.velocity *= o.freeMode.momentumVelocityRatio, i.velocities.length = 0;
1332
+ let p = 1e3 * o.freeMode.momentumRatio;
1333
+ const n = e.velocity * p;
1334
+ let a = e.translate + n;
1335
+ d && (a = -a);
1336
+ let h = !1, M;
1337
+ const g = Math.abs(e.velocity) * 20 * o.freeMode.momentumBounceRatio;
1306
1338
  let L;
1307
- if (n < e.maxTranslate())
1308
- s.freeMode.momentumBounce ? (n + e.maxTranslate() < -h && (n = e.maxTranslate() - h), S = e.maxTranslate(), v = !0, c.allowMomentumBounce = !0) : n = e.maxTranslate(), s.loop && s.centeredSlides && (L = !0);
1309
- else if (n > e.minTranslate())
1310
- s.freeMode.momentumBounce ? (n - e.minTranslate() > h && (n = e.minTranslate() + h), S = e.minTranslate(), v = !0, c.allowMomentumBounce = !0) : n = e.minTranslate(), s.loop && s.centeredSlides && (L = !0);
1311
- else if (s.freeMode.sticky) {
1312
- let C;
1313
- for (let w = 0; w < o.length; w += 1)
1314
- if (o[w] > -n) {
1315
- C = w;
1339
+ if (a < e.maxTranslate())
1340
+ o.freeMode.momentumBounce ? (a + e.maxTranslate() < -g && (a = e.maxTranslate() - g), M = e.maxTranslate(), h = !0, i.allowMomentumBounce = !0) : a = e.maxTranslate(), o.loop && o.centeredSlides && (L = !0);
1341
+ else if (a > e.minTranslate())
1342
+ o.freeMode.momentumBounce ? (a - e.minTranslate() > g && (a = e.minTranslate() + g), M = e.minTranslate(), h = !0, i.allowMomentumBounce = !0) : a = e.minTranslate(), o.loop && o.centeredSlides && (L = !0);
1343
+ else if (o.freeMode.sticky) {
1344
+ let x;
1345
+ for (let b = 0; b < u.length; b += 1)
1346
+ if (u[b] > -a) {
1347
+ x = b;
1316
1348
  break;
1317
1349
  }
1318
- Math.abs(o[C] - n) < Math.abs(o[C - 1] - n) || e.swipeDirection === "next" ? n = o[C] : n = o[C - 1], n = -n;
1350
+ Math.abs(u[x] - a) < Math.abs(u[x - 1] - a) || e.swipeDirection === "next" ? a = u[x] : a = u[x - 1], a = -a;
1319
1351
  }
1320
1352
  if (L && m("transitionEnd", () => {
1321
1353
  e.loopFix();
1322
1354
  }), e.velocity !== 0) {
1323
- if (t ? f = Math.abs((-n - e.translate) / e.velocity) : f = Math.abs((n - e.translate) / e.velocity), s.freeMode.sticky) {
1324
- const C = Math.abs((t ? -n : n) - e.translate), w = e.slidesSizesGrid[e.activeIndex];
1325
- C < w ? f = s.speed : C < 2 * w ? f = s.speed * 1.5 : f = s.speed * 2.5;
1355
+ if (d ? p = Math.abs((-a - e.translate) / e.velocity) : p = Math.abs((a - e.translate) / e.velocity), o.freeMode.sticky) {
1356
+ const x = Math.abs((d ? -a : a) - e.translate), b = e.slidesSizesGrid[e.activeIndex];
1357
+ x < b ? p = o.speed : x < 2 * b ? p = o.speed * 1.5 : p = o.speed * 2.5;
1326
1358
  }
1327
- } else if (s.freeMode.sticky) {
1359
+ } else if (o.freeMode.sticky) {
1328
1360
  e.slideToClosest();
1329
1361
  return;
1330
1362
  }
1331
- s.freeMode.momentumBounce && v ? (e.updateProgress(S), e.setTransition(f), e.setTranslate(n), e.transitionStart(!0, e.swipeDirection), e.animating = !0, ue(i, () => {
1332
- !e || e.destroyed || !c.allowMomentumBounce || (l("momentumBounce"), e.setTransition(s.speed), setTimeout(() => {
1333
- e.setTranslate(S), ue(i, () => {
1363
+ o.freeMode.momentumBounce && h ? (e.updateProgress(M), e.setTransition(p), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating = !0, ge(v, () => {
1364
+ !e || e.destroyed || !i.allowMomentumBounce || (l("momentumBounce"), e.setTransition(o.speed), setTimeout(() => {
1365
+ e.setTranslate(M), ge(v, () => {
1334
1366
  !e || e.destroyed || e.transitionEnd();
1335
1367
  });
1336
1368
  }, 0));
1337
- })) : e.velocity ? (l("_freeModeNoMomentumRelease"), e.updateProgress(n), e.setTransition(f), e.setTranslate(n), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, ue(i, () => {
1369
+ })) : e.velocity ? (l("_freeModeNoMomentumRelease"), e.updateProgress(a), e.setTransition(p), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, ge(v, () => {
1338
1370
  !e || e.destroyed || e.transitionEnd();
1339
- }))) : e.updateProgress(n), e.updateActiveIndex(), e.updateSlidesClasses();
1340
- } else if (s.freeMode.sticky) {
1371
+ }))) : e.updateProgress(a), e.updateActiveIndex(), e.updateSlidesClasses();
1372
+ } else if (o.freeMode.sticky) {
1341
1373
  e.slideToClosest();
1342
1374
  return;
1343
- } else s.freeMode && l("_freeModeNoMomentumRelease");
1344
- (!s.freeMode.momentum || d >= s.longSwipesMs) && (l("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
1375
+ } else o.freeMode && l("_freeModeNoMomentumRelease");
1376
+ (!o.freeMode.momentum || r >= o.longSwipesMs) && (l("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
1345
1377
  }
1346
1378
  Object.assign(e, {
1347
1379
  freeMode: {
1348
- onTouchStart: E,
1380
+ onTouchStart: w,
1349
1381
  onTouchMove: T,
1350
1382
  onTouchEnd: $
1351
1383
  }
1352
1384
  });
1353
1385
  }
1354
- const nt = ["id"], st = ["id", "data-cy"], rt = ["data-idx", "loading", "fetchpriority", "alt", "width", "height", "onLoad"], ot = ["id"], lt = ["loading", "alt"], ut = /* @__PURE__ */ Xe({
1386
+ const ut = ["id"], ct = ["id", "data-cy"], dt = ["data-idx", "loading", "fetchpriority", "alt", "width", "height", "onLoad"], pt = ["id"], ft = ["loading", "alt"], mt = /* @__PURE__ */ Re({
1355
1387
  inheritAttrs: !1,
1356
1388
  __name: "SwiperCarousel",
1357
1389
  props: {
@@ -1365,199 +1397,199 @@ const nt = ["id"], st = ["id", "data-cy"], rt = ["data-idx", "loading", "fetchpr
1365
1397
  shiftFirstImage: { type: Boolean, default: !1 }
1366
1398
  },
1367
1399
  emits: ["moved", "click", "firstSlideLoaded"],
1368
- setup(r, { expose: e, emit: y }) {
1369
- const l = y, m = Ye({
1370
- swiperParams: { modules: [_e] },
1400
+ setup(s, { expose: e, emit: C }) {
1401
+ const l = C, m = Fe({
1402
+ swiperParams: { modules: [at] },
1371
1403
  swiper: null,
1372
1404
  initCarousel: !1
1373
- }), E = ge(), T = ge(!1), $ = We(), M = j(() => r.id ?? $), g = j(() => r.swiperOptions?.slidesPerView || 1), s = j(() => r.thumbSwiperOptions?.slidesPerView || 1), i = j(() => !!r.swiperOptions?.keyboard), t = j(() => !!r.swiperOptions.navigation), o = j(() => !!r.swiperOptions.pagination), c = j(() => !!r.swiperOptions.autoplay), u = j(
1374
- () => r.swiperOptions?.effect || "slider"
1375
- ), d = () => {
1376
- r.swiperOptions && Re(r.swiperOptions, m.swiperParams);
1377
- }, f = (h, L = -1) => {
1378
- if (!h.images)
1379
- return { src: h.src || "" };
1380
- let C = "", w = "", D = "";
1381
- if (r.artDirection) {
1382
- for (const P in r.artDirection) {
1383
- const { mq: z, width: O } = r.artDirection[P];
1384
- O && (D += D ? `,${z} ${parseInt(O)}px` : `${z} ${parseInt(O)}px`);
1405
+ }), w = xe(), T = xe(!1), $ = Ne(), S = Q(() => s.id ?? $), f = Q(() => s.swiperOptions?.slidesPerView || 1), o = Q(() => s.thumbSwiperOptions?.slidesPerView || 1), v = Q(() => !!s.swiperOptions?.keyboard), d = Q(() => !!s.swiperOptions.navigation), u = Q(() => !!s.swiperOptions.pagination), i = Q(() => !!s.swiperOptions.autoplay), t = Q(
1406
+ () => s.swiperOptions?.effect || "slider"
1407
+ ), r = () => {
1408
+ s.swiperOptions && je(s.swiperOptions, m.swiperParams);
1409
+ }, p = (g, L = -1) => {
1410
+ if (!g.images)
1411
+ return { src: g.src || "" };
1412
+ let x = "", b = "", X = "";
1413
+ if (s.artDirection) {
1414
+ for (const P in s.artDirection) {
1415
+ const { mq: z, width: D } = s.artDirection[P];
1416
+ D && (X += X ? `,${z} ${parseInt(D)}px` : `${z} ${parseInt(D)}px`);
1385
1417
  }
1386
- w = h.images.reduce((P, z, O) => {
1387
- const X = Object.values(r.artDirection)[O];
1388
- return !X || !X.width || (P += P ? `, ${z.storagePath} ${X.width}` : `${z.storagePath} ${X.width}`), P;
1389
- }, ""), C = h.images[0].storagePath;
1418
+ b = g.images.reduce((P, z, D) => {
1419
+ const I = Object.values(s.artDirection)[D];
1420
+ return !I || !I.width || (P += P ? `, ${z.storagePath} ${I.width}` : `${z.storagePath} ${I.width}`), P;
1421
+ }, ""), x = g.images[0].storagePath;
1390
1422
  } else {
1391
- let P = h.images;
1392
- h.images.length > 3 ? P = h.images.slice(2, 5) : r.shiftFirstImage && (P[0] = P[1]), w = P.reduce((z, O, X) => (X === 0 && (C = `${O.storagePath}`), X > 0 && (z += ", "), `${z}${O.storagePath} ${X + 1}x`), "");
1423
+ let P = g.images;
1424
+ g.images.length > 3 ? P = g.images.slice(2, 5) : s.shiftFirstImage && (P[0] = P[1]), b = P.reduce((z, D, I) => (I === 0 && (x = `${D.storagePath}`), I > 0 && (z += ", "), `${z}${D.storagePath} ${I + 1}x`), "");
1393
1425
  }
1394
- const k = C, W = w;
1395
- return typeof g.value == "number" && L > g.value ? (C = "", w = "", { sizes: D, "data-src": k, "data-srcset": W }) : { src: C, srcset: w, sizes: D };
1396
- }, a = [], n = (h) => {
1397
- if (typeof g.value == "string") return;
1398
- const L = a[h];
1399
- if (L && !L.src && (L.src = L.dataset.src || "", L.srcset = L.dataset.srcset || ""), h < g.value || h + 1 >= (r.images ?? []).length)
1426
+ const k = x, W = b;
1427
+ return typeof f.value == "number" && L > f.value ? (x = "", b = "", { sizes: X, "data-src": k, "data-srcset": W }) : { src: x, srcset: b, sizes: X };
1428
+ }, n = [], a = (g) => {
1429
+ if (typeof f.value == "string") return;
1430
+ const L = n[g];
1431
+ if (L && !L.src && (L.src = L.dataset.src || "", L.srcset = L.dataset.srcset || ""), g < f.value || g + 1 >= (s.images ?? []).length)
1400
1432
  return;
1401
- const C = a[h + 1];
1402
- C && !C.src && (C.src = C?.dataset.src || "", C.srcset = C?.dataset.srcset || "");
1433
+ const x = n[g + 1];
1434
+ x && !x.src && (x.src = x?.dataset.src || "", x.srcset = x?.dataset.srcset || "");
1403
1435
  };
1404
1436
  e({
1405
- moveTo(h, L = 0, C = !0) {
1406
- m.swiper?.slideTo(h, L, C);
1437
+ moveTo(g, L = 0, x = !0) {
1438
+ m.swiper?.slideTo(g, L, x);
1407
1439
  }
1408
1440
  });
1409
- const v = ge(null), S = (h) => {
1410
- h === 0 && a && a[h] && Me(() => {
1411
- v.value?.setAttribute("data-first-slide-loaded", "true"), l("firstSlideLoaded");
1441
+ const h = xe(null), M = (g) => {
1442
+ g === 0 && n && n[g] && ke(() => {
1443
+ h.value?.setAttribute("data-first-slide-loaded", "true"), l("firstSlideLoaded");
1412
1444
  });
1413
1445
  };
1414
- return Be(async () => {
1415
- if (d(), i.value && (m.swiperParams.modules?.push(Ze), m.swiperParams.keyboard = r.swiperOptions.keyboard), o.value && (m.swiperParams.modules?.push(Qe), m.swiperParams.pagination = {
1446
+ return qe(async () => {
1447
+ if (r(), v.value && (m.swiperParams.modules?.push(tt), m.swiperParams.keyboard = s.swiperOptions.keyboard), u.value && (m.swiperParams.modules?.push(nt), m.swiperParams.pagination = {
1416
1448
  el: ".swiper-pagination",
1417
- renderFraction: (C, w) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
1418
- <span data-cy="swiper-pagination-current" class="${C}"></span>
1449
+ renderFraction: (x, b) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
1450
+ <span data-cy="swiper-pagination-current" class="${x}"></span>
1419
1451
  /
1420
- <span data-cy="swiper-pagination-total" class="${w}"></span>
1452
+ <span data-cy="swiper-pagination-total" class="${b}"></span>
1421
1453
  </div>`,
1422
1454
  ...typeof m.swiperParams.pagination == "boolean" ? {} : m.swiperParams.pagination
1423
- }), t.value) {
1424
- m.swiperParams.modules?.push(Je);
1425
- const C = {
1426
- ...r.swiperOptions.navigation.nextEl ?? {
1455
+ }), d.value) {
1456
+ m.swiperParams.modules?.push(it);
1457
+ const x = {
1458
+ ...s.swiperOptions.navigation.nextEl ?? {
1427
1459
  nextEl: ".swiper-button-next"
1428
1460
  },
1429
- ...r.swiperOptions.navigation.prevEl ?? {
1461
+ ...s.swiperOptions.navigation.prevEl ?? {
1430
1462
  prevEl: ".swiper-button-prev"
1431
1463
  }
1432
1464
  };
1433
1465
  m.swiperParams.navigation = {
1434
- ...typeof r.swiperOptions.navigation == "object" ? r.swiperOptions.navigation : {},
1435
- ...C
1466
+ ...typeof s.swiperOptions.navigation == "object" ? s.swiperOptions.navigation : {},
1467
+ ...x
1436
1468
  };
1437
1469
  }
1438
- c.value && (m.swiperParams.modules?.push(tt), m.swiperParams.autoplay = r.swiperOptions.autoplay);
1439
- const h = {
1470
+ i.value && (m.swiperParams.modules?.push(rt), m.swiperParams.autoplay = s.swiperOptions.autoplay);
1471
+ const g = {
1440
1472
  ...m.swiperParams,
1441
1473
  on: {
1442
1474
  init: () => {
1443
1475
  T.value = !0;
1444
1476
  },
1445
- slideChange: (C) => {
1446
- n(C.activeIndex), l("moved", { activeIndex: C.activeIndex });
1477
+ slideChange: (x) => {
1478
+ a(x.activeIndex), l("moved", { activeIndex: x.activeIndex });
1447
1479
  }
1448
1480
  }
1449
1481
  };
1450
1482
  let L = null;
1451
- r.thumbSwiperOptions && (m.swiperParams.modules?.push(it), m.swiperParams.modules?.push(et), L = new ze(`#thumb_${M.value}`, {
1452
- ...r.thumbSwiperOptions,
1453
- modules: [at]
1454
- }), h.thumbs = {
1483
+ s.thumbSwiperOptions && (m.swiperParams.modules?.push(ot), m.swiperParams.modules?.push(st), L = new Oe(`#thumb_${S.value}`, {
1484
+ ...s.thumbSwiperOptions,
1485
+ modules: [lt]
1486
+ }), g.thumbs = {
1455
1487
  swiper: L
1456
- }), h.lazyPreloadPrevNext = 1, m.swiper = new ze(`#${M.value}`, h), E.value?.classList.remove("uikit-hidden");
1457
- }), He(
1458
- () => r.images,
1488
+ }), g.lazyPreloadPrevNext = 1, m.swiper = new Oe(`#${S.value}`, g), w.value?.classList.remove("uikit-hidden");
1489
+ }), Ve(
1490
+ () => s.images,
1459
1491
  () => {
1460
- Me(() => {
1492
+ ke(() => {
1461
1493
  m.swiper?.update();
1462
1494
  });
1463
1495
  }
1464
- ), (h, L) => (N(), q("div", {
1465
- id: `root-${M.value}`,
1496
+ ), (g, L) => (j(), V("div", {
1497
+ id: `root-${S.value}`,
1466
1498
  ref_key: "root",
1467
- ref: v,
1468
- class: V(["swiper-carousel-root", h.$attrs["root-classes"]])
1499
+ ref: h,
1500
+ class: G(["swiper-carousel-root", g.$attrs["root-classes"]])
1469
1501
  }, [
1470
- Z("div", {
1471
- id: M.value,
1472
- "data-cy": h.$attrs["data-cy"],
1473
- class: V(["swiper", h.$attrs["swiper-classes"]])
1502
+ _("div", {
1503
+ id: S.value,
1504
+ "data-cy": g.$attrs["data-cy"],
1505
+ class: G(["swiper", g.$attrs["swiper-classes"]])
1474
1506
  }, [
1475
- Z("div", {
1507
+ _("div", {
1476
1508
  ref_key: "swiperWrapper",
1477
- ref: E,
1478
- class: V(["swiper-wrapper", [
1479
- h.$attrs["swiper-wrapper-classes"],
1480
- u.value === "none" && "no-transition"
1509
+ ref: w,
1510
+ class: G(["swiper-wrapper", [
1511
+ g.$attrs["swiper-wrapper-classes"],
1512
+ t.value === "none" && "no-transition"
1481
1513
  ]]),
1482
- onClick: L[0] || (L[0] = (C) => l("click"))
1514
+ onClick: L[0] || (L[0] = (x) => l("click"))
1483
1515
  }, [
1484
- Le(h.$slots, "default", {}, () => [
1485
- (N(!0), q(he, null, $e(h.images, (C, w) => (N(), q("div", {
1486
- key: `swiper_${M.value}_${w}`,
1487
- class: V(["swiper-slide", h.$attrs["swiper-slide-classes"]])
1516
+ Xe(g.$slots, "default", {}, () => [
1517
+ (j(!0), V(Ce, null, Ye(g.images, (x, b) => (j(), V("div", {
1518
+ key: `swiper_${S.value}_${b}`,
1519
+ class: G(["swiper-slide", g.$attrs["swiper-slide-classes"]])
1488
1520
  }, [
1489
- Z("div", {
1490
- class: V(["swiper-zoom-container", h.$attrs["swiper-zoom-container-classes"]])
1521
+ _("div", {
1522
+ class: G(["swiper-zoom-container", g.$attrs["swiper-zoom-container-classes"]])
1491
1523
  }, [
1492
- h.backgroundImage ? le("", !0) : (N(), q("img", Pe({
1524
+ g.backgroundImage ? me("", !0) : (j(), V("img", De({
1493
1525
  key: 0,
1494
1526
  ref_for: !0,
1495
- ref: (D) => {
1496
- a.push(D);
1527
+ ref: (X) => {
1528
+ n.push(X);
1497
1529
  },
1498
- class: ["disable-select", [h.$attrs["slide-img-classes"] || C.classes]],
1499
- "data-idx": `${M.value}-slide-img-${w}`
1500
- }, f(C, w), {
1501
- loading: h.lazyLoadImages || w >= g.value ? "lazy" : void 0,
1502
- fetchpriority: !h.lazyLoadImages && w === 0 ? "high" : "low",
1503
- alt: C.alt,
1530
+ class: ["disable-select", [g.$attrs["slide-img-classes"] || x.classes]],
1531
+ "data-idx": `${S.value}-slide-img-${b}`
1532
+ }, p(x, b), {
1533
+ loading: g.lazyLoadImages || b >= f.value ? "lazy" : void 0,
1534
+ fetchpriority: !g.lazyLoadImages && b === 0 ? "high" : "low",
1535
+ alt: x.alt,
1504
1536
  itemprop: "image",
1505
- width: C.width,
1506
- height: C.height,
1507
- onLoad: (D) => S(w)
1508
- }), null, 16, rt))
1537
+ width: x.width,
1538
+ height: x.height,
1539
+ onLoad: (X) => M(b)
1540
+ }), null, 16, dt))
1509
1541
  ], 2)
1510
1542
  ], 2))), 128)),
1511
- Le(h.$slots, "last_slide", {}, void 0, !0)
1543
+ Xe(g.$slots, "last_slide", {}, void 0, !0)
1512
1544
  ], !0)
1513
1545
  ], 2),
1514
- o.value ? (N(), q("div", {
1546
+ u.value ? (j(), V("div", {
1515
1547
  key: 0,
1516
- class: V([h.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
1517
- onClick: L[1] || (L[1] = ve(() => {
1548
+ class: G([g.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
1549
+ onClick: L[1] || (L[1] = Te(() => {
1518
1550
  }, ["stop"]))
1519
- }, null, 2)) : le("", !0),
1520
- t.value ? (N(), q(he, { key: 1 }, [
1521
- Z("div", {
1551
+ }, null, 2)) : me("", !0),
1552
+ d.value ? (j(), V(Ce, { key: 1 }, [
1553
+ _("div", {
1522
1554
  class: "swiper-button-prev",
1523
1555
  "data-cy": "swiper-button-prev",
1524
- onClick: L[2] || (L[2] = ve(() => {
1556
+ onClick: L[2] || (L[2] = Te(() => {
1525
1557
  }, ["stop"]))
1526
1558
  }),
1527
- Z("div", {
1559
+ _("div", {
1528
1560
  class: "swiper-button-next",
1529
1561
  "data-cy": "swiper-button-next",
1530
- onClick: L[3] || (L[3] = ve(() => {
1562
+ onClick: L[3] || (L[3] = Te(() => {
1531
1563
  }, ["stop"]))
1532
1564
  })
1533
- ], 64)) : le("", !0)
1534
- ], 10, st),
1535
- h.thumbSwiperOptions ? (N(), q("div", {
1565
+ ], 64)) : me("", !0)
1566
+ ], 10, ct),
1567
+ g.thumbSwiperOptions ? (j(), V("div", {
1536
1568
  key: 0,
1537
- id: `thumb_${M.value}`,
1569
+ id: `thumb_${S.value}`,
1538
1570
  thumbsSlider: "",
1539
- class: V(["swiper", h.$attrs["thumb-swiper-classes"]])
1571
+ class: G(["swiper", g.$attrs["thumb-swiper-classes"]])
1540
1572
  }, [
1541
- Z("div", {
1542
- class: V(["swiper-wrapper", h.$attrs["thumb-swiper-wrapper-classes"]])
1573
+ _("div", {
1574
+ class: G(["swiper-wrapper", g.$attrs["thumb-swiper-wrapper-classes"]])
1543
1575
  }, [
1544
- (N(!0), q(he, null, $e(h.images, (C, w) => (N(), q("div", {
1545
- key: `thumb_${M.value}_${w}`,
1546
- class: V(["swiper-slide", h.$attrs["thumb-img-wrapper-classes"]])
1576
+ (j(!0), V(Ce, null, Ye(g.images, (x, b) => (j(), V("div", {
1577
+ key: `thumb_${S.value}_${b}`,
1578
+ class: G(["swiper-slide", g.$attrs["thumb-img-wrapper-classes"]])
1547
1579
  }, [
1548
- Z("img", Pe({
1549
- class: h.$attrs["thumb-img-classes"],
1580
+ _("img", De({
1581
+ class: g.$attrs["thumb-img-classes"],
1550
1582
  ref_for: !0
1551
- }, f(C), {
1552
- loading: w >= s.value ? "lazy" : void 0,
1553
- alt: C.alt
1554
- }), null, 16, lt)
1583
+ }, p(x), {
1584
+ loading: b >= o.value ? "lazy" : void 0,
1585
+ alt: x.alt
1586
+ }), null, 16, ft)
1555
1587
  ], 2))), 128))
1556
1588
  ], 2)
1557
- ], 10, ot)) : le("", !0)
1558
- ], 10, nt));
1589
+ ], 10, pt)) : me("", !0)
1590
+ ], 10, ut));
1559
1591
  }
1560
- }), gt = /* @__PURE__ */ Fe(ut, [["__scopeId", "data-v-09ecb9f6"]]);
1592
+ }), bt = /* @__PURE__ */ Ge(mt, [["__scopeId", "data-v-09ecb9f6"]]);
1561
1593
  export {
1562
- gt as default
1594
+ bt as default
1563
1595
  };