@wikicasa-dev/components 2.1.2-alpha.4 → 2.1.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 (168) hide show
  1. package/dist/UIKit/AccessibleSelect.js +1 -1
  2. package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
  3. package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
  4. package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
  5. package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
  6. package/dist/UIKit/BaseAlert.js +2 -3
  7. package/dist/UIKit/BaseAutocomplete.js +1 -1
  8. package/dist/UIKit/BaseBadge.js +2 -3
  9. package/dist/UIKit/BaseBreadcrumb.js +1 -1
  10. package/dist/UIKit/BaseButton.js +1 -1
  11. package/dist/UIKit/BaseCard.js +36 -5
  12. package/dist/UIKit/BaseComplexToggle.js +105 -5
  13. package/dist/UIKit/BaseDropDown.js +1 -1
  14. package/dist/UIKit/BaseFloatingLabel.js +39 -5
  15. package/dist/UIKit/BaseIcon.js +25 -4
  16. package/dist/UIKit/BaseInput.js +210 -5
  17. package/dist/UIKit/BaseModal.js +2 -3
  18. package/dist/UIKit/BasePagination.js +1 -1
  19. package/dist/UIKit/BasePaper.js +9 -9
  20. package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
  21. package/dist/UIKit/BaseSlider.js +206 -5
  22. package/dist/UIKit/BaseSnackbar.js +80 -5
  23. package/dist/UIKit/BaseTextarea.js +126 -5
  24. package/dist/UIKit/BaseToggle.js +41 -5
  25. package/dist/UIKit/BaseTooltip.js +40 -5
  26. package/dist/UIKit/BaseUploadFile.js +1 -1
  27. package/dist/UIKit/Checkbox/CheckboxBtn.js +74 -5
  28. package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
  29. package/dist/UIKit/Radio/RadioButton.js +1 -1
  30. package/dist/UIKit/Radio/RadioGroup.js +1 -1
  31. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +20 -5
  32. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
  33. package/dist/UIKit/Slider/SimpleSlider.js +81 -5
  34. package/dist/UIKit/StaticSpinner.js +26 -5
  35. package/dist/UIKit/Tab/BaseTab.js +1 -1
  36. package/dist/UIKit/Tab/BaseTabList.js +1 -1
  37. package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
  38. package/dist/UIKit/Tab/BaseTabView.js +1 -1
  39. package/dist/assets/SwiperCarousel.css +1 -0
  40. package/dist/chart/DoughnutChart.js +1 -1
  41. package/dist/chart/LineChart.js +1 -1
  42. package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +246 -0
  43. package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js → chunks/ArrowIcon.Bq6Xr3uH.js} +3 -3
  44. package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +32 -0
  45. package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js → chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +8 -8
  46. package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js → chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +1 -1
  47. package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js → chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +21 -21
  48. package/dist/{packages/components/lib/UIKit/BaseAlert.vue.js → chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
  49. package/dist/{packages/components/lib/UIKit/BaseAutocomplete.vue.js → chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js} +74 -64
  50. package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +19 -0
  51. package/dist/{packages/components/lib/UIKit/BaseBreadcrumb.vue.js → chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +5 -5
  52. package/dist/{packages/components/lib/UIKit/BaseButton.vue.js → chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js} +6 -6
  53. package/dist/{packages/components/lib/UIKit/BaseDropDown.vue.js → chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js} +25 -25
  54. package/dist/{packages/components/lib/UIKit/BaseModal.vue.js → chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +61 -56
  55. package/dist/{packages/components/lib/UIKit/BasePagination.vue.js → chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +83 -71
  56. package/dist/{packages/components/lib/UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
  57. package/dist/{packages/components/lib/UIKit/Tab/BaseTabList.vue.js → chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +1 -1
  58. package/dist/{packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js → chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +1 -1
  59. package/dist/{packages/components/lib/UIKit/Tab/BaseTabView.vue.js → chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +17 -17
  60. package/dist/{packages/components/lib/UIKit/BaseUploadFile.vue.js → chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js} +2 -2
  61. package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +111 -0
  62. package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js → chunks/CloseIcon.BZ4U3aiI.js} +11 -11
  63. package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +27 -0
  64. package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js → chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +5 -5
  65. package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js → chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +4 -4
  66. package/dist/{packages/components/lib/chart/LineChart.vue.js → chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js} +2 -2
  67. package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
  68. package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
  69. package/dist/{packages/components/lib/UIKit/Radio/RadioButton.vue.js → chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +9 -9
  70. package/dist/{packages/components/lib/UIKit/Radio/RadioGroup.vue.js → chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
  71. package/dist/{packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js → chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +1 -1
  72. package/dist/{packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js → chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js} +8 -8
  73. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
  74. package/dist/chunks/polyline.tNTK3v2u.js +129 -0
  75. package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
  76. package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
  77. package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
  78. package/dist/components/carousel/SwiperCarousel.js +1593 -6
  79. package/dist/components/carousel/SwiperSlide.js +1 -1
  80. package/dist/index.js +85 -89
  81. package/package.json +1 -1
  82. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  83. package/dist/_virtual/polyline.js +0 -2
  84. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +0 -1
  85. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
  86. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +0 -1
  87. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +0 -1
  88. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
  89. package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +0 -1
  90. package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +0 -1
  91. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -9
  92. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -2
  93. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -40
  94. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
  95. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
  96. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -15
  97. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
  98. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  99. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -10
  100. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
  101. package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -41
  102. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +0 -22
  103. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +0 -34
  104. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +0 -12
  105. package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +0 -71
  106. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
  107. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
  108. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
  109. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
  110. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
  111. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
  112. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
  113. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
  114. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
  115. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
  116. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +0 -121
  117. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
  118. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
  119. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +0 -12
  120. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +0 -135
  121. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +0 -85
  122. package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
  123. package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
  124. package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
  125. package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
  126. package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
  127. package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
  128. package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
  129. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
  130. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -33
  131. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
  132. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
  133. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +0 -106
  134. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +0 -40
  135. package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
  136. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +0 -211
  137. package/dist/packages/components/lib/UIKit/BasePaper.vue.js +0 -7
  138. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +0 -207
  139. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
  140. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +0 -127
  141. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +0 -42
  142. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
  143. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +0 -75
  144. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
  145. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -21
  146. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
  147. package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +0 -27
  148. package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
  149. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +0 -247
  150. /package/dist/assets/{packages/components/lib/UIKit/BaseAlert.css → BaseAlert.css} +0 -0
  151. /package/dist/assets/{packages/components/lib/UIKit/BaseBadge.css → BaseBadge.css} +0 -0
  152. /package/dist/assets/{packages/components/lib/UIKit/BaseCard.css → BaseCard.css} +0 -0
  153. /package/dist/assets/{packages/components/lib/UIKit/BaseComplexToggle.css → BaseComplexToggle.css} +0 -0
  154. /package/dist/assets/{packages/components/lib/UIKit/BaseFloatingLabel.css → BaseFloatingLabel.css} +0 -0
  155. /package/dist/assets/{packages/components/lib/UIKit/BaseIcon.css → BaseIcon.css} +0 -0
  156. /package/dist/assets/{packages/components/lib/UIKit/BaseInput.css → BaseInput.css} +0 -0
  157. /package/dist/assets/{packages/components/lib/UIKit/BaseModal.css → BaseModal.css} +0 -0
  158. /package/dist/assets/{packages/components/lib/UIKit/BasePaper.css → BasePaper.css} +0 -0
  159. /package/dist/assets/{packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css → BaseShimmerLoader.css} +0 -0
  160. /package/dist/assets/{packages/components/lib/UIKit/BaseSlider.css → BaseSlider.css} +0 -0
  161. /package/dist/assets/{packages/components/lib/UIKit/BaseSnackbar.css → BaseSnackbar.css} +0 -0
  162. /package/dist/assets/{packages/components/lib/UIKit/BaseTextarea.css → BaseTextarea.css} +0 -0
  163. /package/dist/assets/{packages/components/lib/UIKit/BaseToggle.css → BaseToggle.css} +0 -0
  164. /package/dist/assets/{packages/components/lib/UIKit/BaseTooltip.css → BaseTooltip.css} +0 -0
  165. /package/dist/assets/{packages/components/lib/UIKit/Checkbox/CheckboxBtn.css → CheckboxBtn.css} +0 -0
  166. /package/dist/assets/{packages/components/lib/UIKit/Slider/SimpleSlider.css → SimpleSlider.css} +0 -0
  167. /package/dist/assets/{packages/components/lib/UIKit/StaticSpinner.css → StaticSpinner.css} +0 -0
  168. /package/dist/assets/{packages/components/src/tailwind.css → index.css} +0 -0
@@ -1,8 +1,1595 @@
1
- import o from "../../packages/components/lib/components/carousel/SwiperCarousel.vue.js";
2
- import '../../assets/packages/components/lib/components/carousel/SwiperCarousel2.css';import '../../assets/packages/components/lib/components/carousel/SwiperCarousel.css';/* empty css */
3
- /* empty css */
4
- import r from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d9606d10"]]);
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
+ }
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]);
14
+ });
15
+ }
16
+ const Be = {
17
+ body: {},
18
+ addEventListener() {
19
+ },
20
+ removeEventListener() {
21
+ },
22
+ activeElement: {
23
+ blur() {
24
+ },
25
+ nodeName: ""
26
+ },
27
+ querySelector() {
28
+ return null;
29
+ },
30
+ querySelectorAll() {
31
+ return [];
32
+ },
33
+ getElementById() {
34
+ return null;
35
+ },
36
+ createEvent() {
37
+ return {
38
+ initEvent() {
39
+ }
40
+ };
41
+ },
42
+ createElement() {
43
+ return {
44
+ children: [],
45
+ childNodes: [],
46
+ style: {},
47
+ setAttribute() {
48
+ },
49
+ getElementsByTagName() {
50
+ return [];
51
+ }
52
+ };
53
+ },
54
+ createElementNS() {
55
+ return {};
56
+ },
57
+ importNode() {
58
+ return null;
59
+ },
60
+ location: {
61
+ hash: "",
62
+ host: "",
63
+ hostname: "",
64
+ href: "",
65
+ origin: "",
66
+ pathname: "",
67
+ protocol: "",
68
+ search: ""
69
+ }
70
+ };
71
+ function ae() {
72
+ const s = typeof document < "u" ? document : {};
73
+ return Le(s, Be), s;
74
+ }
75
+ const Ke = {
76
+ document: Be,
77
+ navigator: {
78
+ userAgent: ""
79
+ },
80
+ location: {
81
+ hash: "",
82
+ host: "",
83
+ hostname: "",
84
+ href: "",
85
+ origin: "",
86
+ pathname: "",
87
+ protocol: "",
88
+ search: ""
89
+ },
90
+ history: {
91
+ replaceState() {
92
+ },
93
+ pushState() {
94
+ },
95
+ go() {
96
+ },
97
+ back() {
98
+ }
99
+ },
100
+ CustomEvent: function() {
101
+ return this;
102
+ },
103
+ addEventListener() {
104
+ },
105
+ removeEventListener() {
106
+ },
107
+ getComputedStyle() {
108
+ return {
109
+ getPropertyValue() {
110
+ return "";
111
+ }
112
+ };
113
+ },
114
+ Image() {
115
+ },
116
+ Date() {
117
+ },
118
+ screen: {},
119
+ setTimeout() {
120
+ },
121
+ clearTimeout() {
122
+ },
123
+ matchMedia() {
124
+ return {};
125
+ },
126
+ requestAnimationFrame(s) {
127
+ return typeof setTimeout > "u" ? (s(), null) : setTimeout(s, 0);
128
+ },
129
+ cancelAnimationFrame(s) {
130
+ typeof setTimeout > "u" || clearTimeout(s);
131
+ }
132
+ };
133
+ function ee() {
134
+ const s = typeof window < "u" ? window : {};
135
+ return Le(s, Ke), s;
136
+ }
137
+ function Ue(s) {
138
+ return s === void 0 && (s = ""), s.trim().split(" ").filter((e) => !!e.trim());
139
+ }
140
+ function Ze(s, e) {
141
+ return e === void 0 && (e = 0), setTimeout(s, e);
142
+ }
143
+ function Se() {
144
+ return Date.now();
145
+ }
146
+ function Je(s) {
147
+ const e = ee();
148
+ let C;
149
+ return e.getComputedStyle && (C = e.getComputedStyle(s, null)), !C && s.currentStyle && (C = s.currentStyle), C || (C = s.style), C;
150
+ }
151
+ function Ae(s, e) {
152
+ e === void 0 && (e = "x");
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;
157
+ }
158
+ function Qe(s) {
159
+ return typeof s == "object" && s !== null && s.constructor && Object.prototype.toString.call(s).slice(8, -1) === "Object";
160
+ }
161
+ function he(s, e) {
162
+ e === void 0 && (e = "");
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;
165
+ }
166
+ function _e(s, e) {
167
+ e === void 0 && (e = []);
168
+ const C = document.createElement(s);
169
+ return C.classList.add(...Array.isArray(e) ? e : Ue(e)), C;
170
+ }
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;
173
+ return {
174
+ top: l.top + $ - w,
175
+ left: l.left + S - T
176
+ };
177
+ }
178
+ function We(s) {
179
+ let e = s, C;
180
+ if (e) {
181
+ for (C = 0; (e = e.previousSibling) !== null; )
182
+ e.nodeType === 1 && (C += 1);
183
+ return C;
184
+ }
185
+ }
186
+ function se(s, e) {
187
+ const C = [];
188
+ let l = s.parentElement;
189
+ for (; l; )
190
+ e ? l.matches(e) && C.push(l) : C.push(l), l = l.parentElement;
191
+ return C;
192
+ }
193
+ function ge(s, e) {
194
+ function C(l) {
195
+ l.target === s && (e.call(s, l), s.removeEventListener("transitionend", C));
196
+ }
197
+ e && s.addEventListener("transitionend", C);
198
+ }
199
+ function et(s, e, C) {
200
+ const l = ee();
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"));
202
+ }
203
+ function A(s) {
204
+ return (Array.isArray(s) ? s : [s]).filter((e) => !!e);
205
+ }
206
+ function tt(s) {
207
+ let {
208
+ swiper: e,
209
+ extendParams: C,
210
+ on: l,
211
+ emit: m
212
+ } = s;
213
+ const w = ae(), T = ee();
214
+ e.keyboard = {
215
+ enabled: !1
216
+ }, C({
217
+ keyboard: {
218
+ enabled: !1,
219
+ onlyInViewport: !0,
220
+ pageUpDown: !0
221
+ }
222
+ });
223
+ function $(o) {
224
+ if (!e.enabled) return;
225
+ const {
226
+ rtlTranslate: v
227
+ } = e;
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))
232
+ return !1;
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)
237
+ return;
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]];
241
+ for (let P = 0; P < W.length; P += 1) {
242
+ const z = W[P];
243
+ if (z[0] >= 0 && z[0] <= b && z[1] >= 0 && z[1] <= X) {
244
+ if (z[0] === 0 && z[1] === 0) continue;
245
+ M = !0;
246
+ }
247
+ }
248
+ if (!M) return;
249
+ }
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);
251
+ }
252
+ }
253
+ function S() {
254
+ e.keyboard.enabled || (w.addEventListener("keydown", $), e.keyboard.enabled = !0);
255
+ }
256
+ function f() {
257
+ e.keyboard.enabled && (w.removeEventListener("keydown", $), e.keyboard.enabled = !1);
258
+ }
259
+ l("init", () => {
260
+ e.params.keyboard.enabled && S();
261
+ }), l("destroy", () => {
262
+ e.keyboard.enabled && f();
263
+ }), Object.assign(e.keyboard, {
264
+ enable: S,
265
+ disable: f
266
+ });
267
+ }
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;
273
+ }
274
+ }), C;
275
+ }
276
+ function it(s) {
277
+ let {
278
+ swiper: e,
279
+ extendParams: C,
280
+ on: l,
281
+ emit: m
282
+ } = s;
283
+ C({
284
+ navigation: {
285
+ nextEl: null,
286
+ prevEl: null,
287
+ hideOnClick: !1,
288
+ disabledClass: "swiper-button-disabled",
289
+ hiddenClass: "swiper-button-hidden",
290
+ lockClass: "swiper-button-lock",
291
+ navigationDisabledClass: "swiper-navigation-disabled"
292
+ }
293
+ }), e.navigation = {
294
+ nextEl: null,
295
+ prevEl: null
296
+ };
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);
300
+ }
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));
305
+ });
306
+ }
307
+ function $() {
308
+ const {
309
+ nextEl: i,
310
+ prevEl: t
311
+ } = e.navigation;
312
+ if (e.params.loop) {
313
+ T(t, !1), T(i, !1);
314
+ return;
315
+ }
316
+ T(t, e.isBeginning && !e.params.rewind), T(i, e.isEnd && !e.params.rewind);
317
+ }
318
+ function S(i) {
319
+ i.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), m("navigationPrev"));
320
+ }
321
+ function f(i) {
322
+ i.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), m("navigationNext"));
323
+ }
324
+ function o() {
325
+ const i = e.params.navigation;
326
+ if (e.params.navigation = He(e, e.originalParams.navigation, e.params.navigation, {
327
+ nextEl: "swiper-button-next",
328
+ prevEl: "swiper-button-prev"
329
+ }), !(i.nextEl || i.prevEl)) return;
330
+ let t = w(i.nextEl), r = w(i.prevEl);
331
+ Object.assign(e.navigation, {
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(" "));
337
+ };
338
+ t.forEach((n) => p(n, "next")), r.forEach((n) => p(n, "prev"));
339
+ }
340
+ function v() {
341
+ let {
342
+ nextEl: i,
343
+ prevEl: t
344
+ } = e.navigation;
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(" "));
348
+ };
349
+ i.forEach((p) => r(p, "next")), t.forEach((p) => r(p, "prev"));
350
+ }
351
+ l("init", () => {
352
+ e.params.navigation.enabled === !1 ? u() : (o(), $());
353
+ }), l("toEdge fromEdge lock unlock", () => {
354
+ $();
355
+ }), l("destroy", () => {
356
+ v();
357
+ }), l("enable disable", () => {
358
+ let {
359
+ nextEl: i,
360
+ prevEl: t
361
+ } = e.navigation;
362
+ if (i = A(i), t = A(t), e.enabled) {
363
+ $();
364
+ return;
365
+ }
366
+ [...i, ...t].filter((r) => !!r).forEach((r) => r.classList.add(e.params.navigation.lockClass));
367
+ }), l("click", (i, t) => {
368
+ let {
369
+ nextEl: r,
370
+ prevEl: p
371
+ } = e.navigation;
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)));
378
+ }
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));
383
+ }
384
+ });
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();
389
+ };
390
+ Object.assign(e.navigation, {
391
+ enable: d,
392
+ disable: u,
393
+ update: $,
394
+ init: o,
395
+ destroy: v
396
+ });
397
+ }
398
+ function ue(s) {
399
+ return s === void 0 && (s = ""), `.${s.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
400
+ }
401
+ function nt(s) {
402
+ let {
403
+ swiper: e,
404
+ extendParams: C,
405
+ on: l,
406
+ emit: m
407
+ } = s;
408
+ const w = "swiper-pagination";
409
+ C({
410
+ pagination: {
411
+ el: null,
412
+ bulletElement: "span",
413
+ clickable: !1,
414
+ hideOnClick: !1,
415
+ renderBullet: null,
416
+ renderProgressbar: null,
417
+ renderFraction: null,
418
+ renderCustom: null,
419
+ progressbarOpposite: !1,
420
+ type: "bullets",
421
+ // 'bullets' or 'progressbar' or 'fraction' or 'custom'
422
+ dynamicBullets: !1,
423
+ dynamicMainBullets: 1,
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`
439
+ }
440
+ }), e.pagination = {
441
+ el: null,
442
+ bullets: []
443
+ };
444
+ let T, $ = 0;
445
+ function S() {
446
+ return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
447
+ }
448
+ function f(n, a) {
449
+ const {
450
+ bulletActiveClass: h
451
+ } = e.params.pagination;
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}`)));
453
+ }
454
+ function o(n, a, h) {
455
+ if (n = n % h, a = a % h, a === n + 1)
456
+ return "next";
457
+ if (a === n - 1)
458
+ return "previous";
459
+ }
460
+ function v(n) {
461
+ const a = n.target.closest(ue(e.params.pagination.bulletClass));
462
+ if (!a)
463
+ return;
464
+ n.preventDefault();
465
+ const h = We(a) * e.params.slidesPerGroup;
466
+ if (e.params.loop) {
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);
470
+ } else
471
+ e.slideTo(h);
472
+ }
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();
487
+ P.classList.remove(...z);
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"));
492
+ });
493
+ else {
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");
502
+ }
503
+ }
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`;
508
+ });
509
+ }
510
+ }
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") {
517
+ let k;
518
+ a.progressbarOpposite ? k = e.isHorizontal() ? "vertical" : "horizontal" : k = e.isHorizontal() ? "horizontal" : "vertical";
519
+ const W = (M + 1) / x;
520
+ let P = 1, z = 1;
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`;
523
+ });
524
+ }
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);
526
+ });
527
+ }
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}>`;
540
+ }
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]);
544
+ }
545
+ function i() {
546
+ e.params.pagination = He(e, e.originalParams.pagination, e.params.pagination, {
547
+ el: "swiper-pagination"
548
+ });
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);
556
+ }));
557
+ }
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(" ")));
565
+ }
566
+ l("changeDirection", () => {
567
+ if (!e.pagination || !e.pagination.el) return;
568
+ const n = e.params.pagination;
569
+ let {
570
+ el: a
571
+ } = e.pagination;
572
+ a = A(a), a.forEach((h) => {
573
+ h.classList.remove(n.horizontalClass, n.verticalClass), h.classList.add(e.isHorizontal() ? n.horizontalClass : n.verticalClass);
574
+ });
575
+ }), l("init", () => {
576
+ e.params.pagination.enabled === !1 ? p() : (i(), u(), d());
577
+ }), l("activeIndexChange", () => {
578
+ typeof e.snapIndex > "u" && d();
579
+ }), l("snapIndexChange", () => {
580
+ d();
581
+ }), l("snapGridLengthChange", () => {
582
+ u(), d();
583
+ }), l("destroy", () => {
584
+ t();
585
+ }), l("enable disable", () => {
586
+ let {
587
+ el: n
588
+ } = e.pagination;
589
+ n && (n = A(n), n.forEach((a) => a.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
590
+ }), l("lock unlock", () => {
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));
598
+ }
599
+ });
600
+ const r = () => {
601
+ e.el.classList.remove(e.params.pagination.paginationDisabledClass);
602
+ let {
603
+ el: n
604
+ } = e.pagination;
605
+ n && (n = A(n), n.forEach((a) => a.classList.remove(e.params.pagination.paginationDisabledClass))), i(), u(), d();
606
+ }, p = () => {
607
+ e.el.classList.add(e.params.pagination.paginationDisabledClass);
608
+ let {
609
+ el: n
610
+ } = e.pagination;
611
+ n && (n = A(n), n.forEach((a) => a.classList.add(e.params.pagination.paginationDisabledClass))), t();
612
+ };
613
+ Object.assign(e.pagination, {
614
+ enable: r,
615
+ disable: p,
616
+ render: u,
617
+ update: d,
618
+ init: i,
619
+ destroy: t
620
+ });
621
+ }
622
+ function at(s) {
623
+ let {
624
+ swiper: e,
625
+ extendParams: C,
626
+ on: l,
627
+ emit: m
628
+ } = s;
629
+ const w = ee();
630
+ C({
631
+ zoom: {
632
+ enabled: !1,
633
+ limitToOriginalSize: !1,
634
+ maxRatio: 3,
635
+ minRatio: 1,
636
+ panOnMouseMove: !1,
637
+ toggle: !0,
638
+ containerClass: "swiper-zoom-container",
639
+ zoomedSlideClass: "swiper-slide-zoomed"
640
+ }
641
+ }), e.zoom = {
642
+ enabled: !1
643
+ };
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 = {
651
+ originX: 0,
652
+ originY: 0,
653
+ slideEl: void 0,
654
+ slideWidth: void 0,
655
+ slideHeight: void 0,
656
+ imageEl: void 0,
657
+ imageWrapEl: void 0,
658
+ maxRatio: 3
659
+ }, t = {
660
+ isTouched: void 0,
661
+ isMoved: void 0,
662
+ currentX: void 0,
663
+ currentY: void 0,
664
+ minX: void 0,
665
+ minY: void 0,
666
+ maxX: void 0,
667
+ maxY: void 0,
668
+ width: void 0,
669
+ height: void 0,
670
+ startX: void 0,
671
+ startY: void 0,
672
+ touchesStart: {},
673
+ touchesCurrent: {}
674
+ }, r = {
675
+ x: void 0,
676
+ y: void 0,
677
+ prevPositionX: void 0,
678
+ prevPositionY: void 0,
679
+ prevTime: void 0
680
+ };
681
+ let p = 1;
682
+ Object.defineProperty(e.zoom, "scale", {
683
+ get() {
684
+ return p;
685
+ },
686
+ set(c) {
687
+ if (p !== c) {
688
+ const E = i.imageEl, y = i.slideEl;
689
+ m("zoomChange", c, E, y);
690
+ }
691
+ p = c;
692
+ }
693
+ });
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);
698
+ }
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);
704
+ }
705
+ return E;
706
+ }
707
+ function h() {
708
+ if (u.length < 2) return {
709
+ x: null,
710
+ y: null
711
+ };
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];
714
+ }
715
+ function M() {
716
+ return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
717
+ }
718
+ function g(c) {
719
+ const E = M();
720
+ return !!(c.target.matches(E) || e.slides.filter((y) => y.contains(c.target)).length > 0);
721
+ }
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);
725
+ }
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) {
734
+ i.imageEl = void 0;
735
+ return;
736
+ }
737
+ i.maxRatio = a();
738
+ }
739
+ if (i.imageEl) {
740
+ const [y, O] = h();
741
+ i.originX = y, i.originY = O, i.imageEl.style.transitionDuration = "0ms";
742
+ }
743
+ $ = !0;
744
+ }
745
+ }
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})`));
750
+ }
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)));
755
+ }
756
+ let k;
757
+ function W() {
758
+ e.touchEventsData.preventTouchMoveFromPointerMove = !1;
759
+ }
760
+ function P() {
761
+ clearTimeout(k), e.touchEventsData.preventTouchMoveFromPointerMove = !0, k = setTimeout(() => {
762
+ e.destroyed || W();
763
+ });
764
+ }
765
+ function z(c) {
766
+ const E = e.device;
767
+ if (!i.imageEl || t.isTouched) return;
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;
771
+ }
772
+ function D(c) {
773
+ const y = c.pointerType === "mouse" && e.params.zoom.panOnMouseMove;
774
+ if (!g(c) || !L(c))
775
+ return;
776
+ const O = e.zoom;
777
+ if (!i.imageEl)
778
+ return;
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 && !$) {
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)) {
791
+ t.isTouched = !1, W();
792
+ return;
793
+ }
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)) {
795
+ t.isTouched = !1, W();
796
+ return;
797
+ }
798
+ }
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
803
+ } = i;
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)`;
805
+ }
806
+ function I() {
807
+ const c = e.zoom;
808
+ if (u.length = 0, !i.imageEl) return;
809
+ if (!t.isTouched || !t.isMoved) {
810
+ t.isTouched = !1, t.isMoved = !1;
811
+ return;
812
+ }
813
+ t.isTouched = !1, t.isMoved = !1;
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)`;
821
+ }
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;
835
+ }
836
+ function F(c) {
837
+ const E = e.zoom, y = e.params.zoom;
838
+ if (!i.slideEl) {
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;
842
+ }
843
+ if (!i.imageEl || !i.imageWrapEl) return;
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})`;
851
+ }
852
+ function R() {
853
+ const c = e.zoom, E = e.params.zoom;
854
+ if (!i.slideEl) {
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;
858
+ }
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)));
863
+ }
864
+ function K(c) {
865
+ const E = e.zoom;
866
+ E.scale && E.scale !== 1 ? R() : F(c);
867
+ }
868
+ function re() {
869
+ const c = e.params.passiveListeners ? {
870
+ passive: !0,
871
+ capture: !1
872
+ } : !1, E = e.params.passiveListeners ? {
873
+ passive: !1,
874
+ capture: !0
875
+ } : !0;
876
+ return {
877
+ passiveListener: c,
878
+ activeListenerWithCapture: E
879
+ };
880
+ }
881
+ function $e() {
882
+ const c = e.zoom;
883
+ if (c.enabled) return;
884
+ c.enabled = !0;
885
+ const {
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);
892
+ }
893
+ function Pe() {
894
+ const c = e.zoom;
895
+ if (!c.enabled) return;
896
+ c.enabled = !1;
897
+ const {
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);
904
+ }
905
+ l("init", () => {
906
+ e.params.zoom.enabled && $e();
907
+ }), l("destroy", () => {
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);
915
+ }), l("transitionEnd", () => {
916
+ e.zoom.enabled && e.params.zoom.enabled && ce();
917
+ }), l("slideChange", () => {
918
+ e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && ce();
919
+ }), Object.assign(e.zoom, {
920
+ enable: $e,
921
+ disable: Pe,
922
+ in: F,
923
+ out: R,
924
+ toggle: K
925
+ });
926
+ }
927
+ function st(s) {
928
+ let {
929
+ swiper: e,
930
+ extendParams: C,
931
+ on: l
932
+ } = s;
933
+ C({
934
+ controller: {
935
+ control: void 0,
936
+ inverse: !1,
937
+ by: "slide"
938
+ // or 'container'
939
+ }
940
+ }), e.controller = {
941
+ control: void 0
942
+ };
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;
950
+ };
951
+ }();
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;
956
+ }, this;
957
+ }
958
+ function w(f) {
959
+ e.controller.spline = e.params.loop ? new m(e.slidesGrid, f.slidesGrid) : new m(e.snapGrid, f.snapGrid);
960
+ }
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();
969
+ }
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);
974
+ }
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();
983
+ })));
984
+ }
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);
989
+ }
990
+ function S() {
991
+ e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
992
+ }
993
+ l("beforeInit", () => {
994
+ if (typeof window < "u" && // eslint-disable-line
995
+ (typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
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);
1002
+ };
1003
+ o.addEventListener(v, d);
1004
+ }
1005
+ });
1006
+ return;
1007
+ }
1008
+ e.controller.control = e.params.controller.control;
1009
+ }), l("update", () => {
1010
+ S();
1011
+ }), l("resize", () => {
1012
+ S();
1013
+ }), l("observerUpdate", () => {
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);
1019
+ }), Object.assign(e.controller, {
1020
+ setTranslate: T,
1021
+ setTransition: $
1022
+ });
1023
+ }
1024
+ function rt(s) {
1025
+ let {
1026
+ swiper: e,
1027
+ extendParams: C,
1028
+ on: l,
1029
+ emit: m,
1030
+ params: w
1031
+ } = s;
1032
+ e.autoplay = {
1033
+ running: !1,
1034
+ paused: !1,
1035
+ timeLeft: 0
1036
+ }, C({
1037
+ autoplay: {
1038
+ enabled: !1,
1039
+ delay: 3e3,
1040
+ waitForTransition: !0,
1041
+ disableOnInteraction: !1,
1042
+ stopOnLastSlide: !1,
1043
+ reverseDirection: !1,
1044
+ pauseOnMouseEnter: !1
1045
+ }
1046
+ });
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());
1050
+ }
1051
+ const h = () => {
1052
+ if (e.destroyed || !e.autoplay.running) return;
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();
1057
+ });
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) => {
1062
+ if (e.destroyed || !e.autoplay.running) return;
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();
1071
+ })));
1072
+ };
1073
+ return F > 0 ? (clearTimeout(T), T = setTimeout(() => {
1074
+ re();
1075
+ }, F)) : requestAnimationFrame(() => {
1076
+ re();
1077
+ }), F;
1078
+ }, L = () => {
1079
+ v = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, g(), m("autoplayStart");
1080
+ }, x = () => {
1081
+ e.autoplay.running = !1, clearTimeout(T), cancelAnimationFrame($), m("autoplayStop");
1082
+ }, b = (Y, F) => {
1083
+ if (e.destroyed || !e.autoplay.running) return;
1084
+ clearTimeout(T), Y || (p = !0);
1085
+ const R = () => {
1086
+ m("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", a) : X();
1087
+ };
1088
+ if (e.autoplay.paused = !0, F) {
1089
+ r && (o = e.params.autoplay.delay), r = !1, R();
1090
+ return;
1091
+ }
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"));
1095
+ }, k = () => {
1096
+ if (e.destroyed || !e.autoplay.running) return;
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());
1103
+ }, z = () => {
1104
+ e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", W), e.el.addEventListener("pointerleave", P));
1105
+ }, D = () => {
1106
+ e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", W), e.el.removeEventListener("pointerleave", P));
1107
+ }, I = () => {
1108
+ ae().addEventListener("visibilitychange", k);
1109
+ }, ce = () => {
1110
+ ae().removeEventListener("visibilitychange", k);
1111
+ };
1112
+ l("init", () => {
1113
+ e.params.autoplay.enabled && (z(), I(), L());
1114
+ }), l("destroy", () => {
1115
+ D(), ce(), e.autoplay.running && x();
1116
+ }), l("_freeModeStaticRelease", () => {
1117
+ (i || p) && X();
1118
+ }), l("_freeModeNoMomentumRelease", () => {
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());
1122
+ }), l("sliderFirstMove", () => {
1123
+ if (!(e.destroyed || !e.autoplay.running)) {
1124
+ if (e.params.autoplay.disableOnInteraction) {
1125
+ x();
1126
+ return;
1127
+ }
1128
+ u = !0, i = !1, p = !1, t = setTimeout(() => {
1129
+ p = !0, i = !0, b(!0);
1130
+ }, 200);
1131
+ }
1132
+ }), l("touchEnd", () => {
1133
+ if (!(e.destroyed || !e.autoplay.running || !u)) {
1134
+ if (clearTimeout(t), clearTimeout(T), e.params.autoplay.disableOnInteraction) {
1135
+ i = !1, u = !1;
1136
+ return;
1137
+ }
1138
+ i && e.params.cssMode && X(), i = !1, u = !1;
1139
+ }
1140
+ }), l("slideChange", () => {
1141
+ e.destroyed || !e.autoplay.running || (r = !0);
1142
+ }), Object.assign(e.autoplay, {
1143
+ start: L,
1144
+ stop: x,
1145
+ pause: b,
1146
+ resume: X
1147
+ });
1148
+ }
1149
+ function ot(s) {
1150
+ let {
1151
+ swiper: e,
1152
+ extendParams: C,
1153
+ on: l
1154
+ } = s;
1155
+ C({
1156
+ thumbs: {
1157
+ swiper: null,
1158
+ multipleActiveThumbs: !0,
1159
+ autoScrollOffset: 0,
1160
+ slideThumbActiveClass: "swiper-slide-thumb-active",
1161
+ thumbsContainerClass: "swiper-thumbs"
1162
+ }
1163
+ });
1164
+ let m = !1, w = !1;
1165
+ e.thumbs = {
1166
+ swiper: null
1167
+ };
1168
+ function 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);
1175
+ }
1176
+ function $() {
1177
+ const {
1178
+ thumbs: f
1179
+ } = e.params;
1180
+ if (m) return !1;
1181
+ m = !0;
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, {
1187
+ watchSlidesProgress: !0,
1188
+ slideToClickedSlide: !1
1189
+ }), Object.assign(e.thumbs.swiper.params, {
1190
+ watchSlidesProgress: !0,
1191
+ slideToClickedSlide: !1
1192
+ }), e.thumbs.swiper.update();
1193
+ } else if (Qe(f.swiper)) {
1194
+ const v = Object.assign({}, f.swiper);
1195
+ Object.assign(v, {
1196
+ watchSlidesProgress: !0,
1197
+ slideToClickedSlide: !1
1198
+ }), e.thumbs.swiper = new o(v), w = !0;
1199
+ }
1200
+ return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", T), !0;
1201
+ }
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);
1212
+ });
1213
+ else
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";
1223
+ } else
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));
1226
+ }
1227
+ }
1228
+ l("beforeInit", () => {
1229
+ const {
1230
+ thumbs: f
1231
+ } = e.params;
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();
1241
+ };
1242
+ u.addEventListener(i, t);
1243
+ }
1244
+ return u;
1245
+ }, d = () => {
1246
+ if (e.destroyed) return;
1247
+ v() || requestAnimationFrame(d);
1248
+ };
1249
+ requestAnimationFrame(d);
1250
+ } else
1251
+ $(), S(!0);
1252
+ }), l("slideChange update resize observerUpdate", () => {
1253
+ S();
1254
+ }), l("setTransition", (f, o) => {
1255
+ const v = e.thumbs.swiper;
1256
+ !v || v.destroyed || v.setTransition(o);
1257
+ }), l("beforeDestroy", () => {
1258
+ const f = e.thumbs.swiper;
1259
+ !f || f.destroyed || w && f.destroy();
1260
+ }), Object.assign(e.thumbs, {
1261
+ init: $,
1262
+ update: S
1263
+ });
1264
+ }
1265
+ function lt(s) {
1266
+ let {
1267
+ swiper: e,
1268
+ extendParams: C,
1269
+ emit: l,
1270
+ once: m
1271
+ } = s;
1272
+ C({
1273
+ freeMode: {
1274
+ enabled: !1,
1275
+ momentum: !0,
1276
+ momentumRatio: 1,
1277
+ momentumBounce: !0,
1278
+ momentumBounceRatio: 1,
1279
+ momentumVelocityRatio: 1,
1280
+ sticky: !1,
1281
+ minimumVelocity: 0.02
1282
+ }
1283
+ });
1284
+ function w() {
1285
+ if (e.params.cssMode) return;
1286
+ const S = e.getTranslate();
1287
+ e.setTranslate(S), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
1288
+ currentPos: e.rtl ? e.translate : -e.translate
1289
+ });
1290
+ }
1291
+ function T() {
1292
+ if (e.params.cssMode) return;
1293
+ const {
1294
+ touchEventsData: S,
1295
+ touches: f
1296
+ } = e;
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()
1303
+ });
1304
+ }
1305
+ function $(S) {
1306
+ let {
1307
+ currentPos: f
1308
+ } = S;
1309
+ if (e.params.cssMode) return;
1310
+ const {
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()) {
1318
+ e.slideTo(e.activeIndex);
1319
+ return;
1320
+ }
1321
+ if (f > -e.maxTranslate()) {
1322
+ e.slides.length < u.length ? e.slideTo(u.length - 1) : e.slideTo(e.slides.length - 1);
1323
+ return;
1324
+ }
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);
1329
+ } else
1330
+ e.velocity = 0;
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;
1338
+ let L;
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;
1348
+ break;
1349
+ }
1350
+ Math.abs(u[x] - a) < Math.abs(u[x - 1] - a) || e.swipeDirection === "next" ? a = u[x] : a = u[x - 1], a = -a;
1351
+ }
1352
+ if (L && m("transitionEnd", () => {
1353
+ e.loopFix();
1354
+ }), e.velocity !== 0) {
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;
1358
+ }
1359
+ } else if (o.freeMode.sticky) {
1360
+ e.slideToClosest();
1361
+ return;
1362
+ }
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, () => {
1366
+ !e || e.destroyed || e.transitionEnd();
1367
+ });
1368
+ }, 0));
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, () => {
1370
+ !e || e.destroyed || e.transitionEnd();
1371
+ }))) : e.updateProgress(a), e.updateActiveIndex(), e.updateSlidesClasses();
1372
+ } else if (o.freeMode.sticky) {
1373
+ e.slideToClosest();
1374
+ return;
1375
+ } else o.freeMode && l("_freeModeNoMomentumRelease");
1376
+ (!o.freeMode.momentum || r >= o.longSwipesMs) && (l("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
1377
+ }
1378
+ Object.assign(e, {
1379
+ freeMode: {
1380
+ onTouchStart: w,
1381
+ onTouchMove: T,
1382
+ onTouchEnd: $
1383
+ }
1384
+ });
1385
+ }
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({
1387
+ inheritAttrs: !1,
1388
+ __name: "SwiperCarousel",
1389
+ props: {
1390
+ id: {},
1391
+ swiperOptions: {},
1392
+ thumbSwiperOptions: {},
1393
+ lazyLoadImages: { type: Boolean, default: !0 },
1394
+ backgroundImage: { type: Boolean, default: !1 },
1395
+ images: { default: () => [] },
1396
+ artDirection: {},
1397
+ shiftFirstImage: { type: Boolean, default: !1 }
1398
+ },
1399
+ emits: ["moved", "click", "firstSlideLoaded"],
1400
+ setup(s, { expose: e, emit: C }) {
1401
+ const l = C, m = Fe({
1402
+ swiperParams: { modules: [at] },
1403
+ swiper: null,
1404
+ initCarousel: !1
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`);
1417
+ }
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;
1422
+ } else {
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`), "");
1425
+ }
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)
1432
+ return;
1433
+ const x = n[g + 1];
1434
+ x && !x.src && (x.src = x?.dataset.src || "", x.srcset = x?.dataset.srcset || "");
1435
+ };
1436
+ e({
1437
+ moveTo(g, L = 0, x = !0) {
1438
+ m.swiper?.slideTo(g, L, x);
1439
+ }
1440
+ });
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");
1444
+ });
1445
+ };
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 = {
1448
+ el: ".swiper-pagination",
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>
1451
+ /
1452
+ <span data-cy="swiper-pagination-total" class="${b}"></span>
1453
+ </div>`,
1454
+ ...typeof m.swiperParams.pagination == "boolean" ? {} : m.swiperParams.pagination
1455
+ }), d.value) {
1456
+ m.swiperParams.modules?.push(it);
1457
+ const x = {
1458
+ ...s.swiperOptions.navigation.nextEl ?? {
1459
+ nextEl: ".swiper-button-next"
1460
+ },
1461
+ ...s.swiperOptions.navigation.prevEl ?? {
1462
+ prevEl: ".swiper-button-prev"
1463
+ }
1464
+ };
1465
+ m.swiperParams.navigation = {
1466
+ ...typeof s.swiperOptions.navigation == "object" ? s.swiperOptions.navigation : {},
1467
+ ...x
1468
+ };
1469
+ }
1470
+ i.value && (m.swiperParams.modules?.push(rt), m.swiperParams.autoplay = s.swiperOptions.autoplay);
1471
+ const g = {
1472
+ ...m.swiperParams,
1473
+ on: {
1474
+ init: () => {
1475
+ T.value = !0;
1476
+ },
1477
+ slideChange: (x) => {
1478
+ a(x.activeIndex), l("moved", { activeIndex: x.activeIndex });
1479
+ }
1480
+ }
1481
+ };
1482
+ let L = null;
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 = {
1487
+ swiper: L
1488
+ }), g.lazyPreloadPrevNext = 1, m.swiper = new Oe(`#${S.value}`, g), w.value?.classList.remove("uikit-hidden");
1489
+ }), Ve(
1490
+ () => s.images,
1491
+ () => {
1492
+ ke(() => {
1493
+ m.swiper?.update();
1494
+ });
1495
+ }
1496
+ ), (g, L) => (j(), V("div", {
1497
+ id: `root-${S.value}`,
1498
+ ref_key: "root",
1499
+ ref: h,
1500
+ class: G(["swiper-carousel-root", g.$attrs["root-classes"]])
1501
+ }, [
1502
+ _("div", {
1503
+ id: S.value,
1504
+ "data-cy": g.$attrs["data-cy"],
1505
+ class: G(["swiper", g.$attrs["swiper-classes"]])
1506
+ }, [
1507
+ _("div", {
1508
+ ref_key: "swiperWrapper",
1509
+ ref: w,
1510
+ class: G(["swiper-wrapper", [
1511
+ g.$attrs["swiper-wrapper-classes"],
1512
+ t.value === "none" && "no-transition"
1513
+ ]]),
1514
+ onClick: L[0] || (L[0] = (x) => l("click"))
1515
+ }, [
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"]])
1520
+ }, [
1521
+ _("div", {
1522
+ class: G(["swiper-zoom-container", g.$attrs["swiper-zoom-container-classes"]])
1523
+ }, [
1524
+ g.backgroundImage ? me("", !0) : (j(), V("img", De({
1525
+ key: 0,
1526
+ ref_for: !0,
1527
+ ref: (X) => {
1528
+ n.push(X);
1529
+ },
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,
1536
+ itemprop: "image",
1537
+ width: x.width,
1538
+ height: x.height,
1539
+ onLoad: (X) => M(b)
1540
+ }), null, 16, dt))
1541
+ ], 2)
1542
+ ], 2))), 128)),
1543
+ Xe(g.$slots, "last_slide", {}, void 0, !0)
1544
+ ], !0)
1545
+ ], 2),
1546
+ u.value ? (j(), V("div", {
1547
+ key: 0,
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(() => {
1550
+ }, ["stop"]))
1551
+ }, null, 2)) : me("", !0),
1552
+ d.value ? (j(), V(Ce, { key: 1 }, [
1553
+ _("div", {
1554
+ class: "swiper-button-prev",
1555
+ "data-cy": "swiper-button-prev",
1556
+ onClick: L[2] || (L[2] = Te(() => {
1557
+ }, ["stop"]))
1558
+ }),
1559
+ _("div", {
1560
+ class: "swiper-button-next",
1561
+ "data-cy": "swiper-button-next",
1562
+ onClick: L[3] || (L[3] = Te(() => {
1563
+ }, ["stop"]))
1564
+ })
1565
+ ], 64)) : me("", !0)
1566
+ ], 10, ct),
1567
+ g.thumbSwiperOptions ? (j(), V("div", {
1568
+ key: 0,
1569
+ id: `thumb_${S.value}`,
1570
+ thumbsSlider: "",
1571
+ class: G(["swiper", g.$attrs["thumb-swiper-classes"]])
1572
+ }, [
1573
+ _("div", {
1574
+ class: G(["swiper-wrapper", g.$attrs["thumb-swiper-wrapper-classes"]])
1575
+ }, [
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"]])
1579
+ }, [
1580
+ _("img", De({
1581
+ class: g.$attrs["thumb-img-classes"],
1582
+ ref_for: !0
1583
+ }, p(x), {
1584
+ loading: b >= o.value ? "lazy" : void 0,
1585
+ alt: x.alt
1586
+ }), null, 16, ft)
1587
+ ], 2))), 128))
1588
+ ], 2)
1589
+ ], 10, pt)) : me("", !0)
1590
+ ], 10, ut));
1591
+ }
1592
+ }), bt = /* @__PURE__ */ Ge(mt, [["__scopeId", "data-v-211f4ba3"]]);
6
1593
  export {
7
- e as default
1594
+ bt as default
8
1595
  };