@okam/stack-ui 1.44.0 → 1.44.3

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 (347) hide show
  1. package/CHANGELOG.md +82 -4
  2. package/components/Popover/interface.d.ts +3 -3
  3. package/components/TagGroup/interface.d.ts +2 -2
  4. package/index.d.ts +2 -0
  5. package/index149.js +1 -1
  6. package/index149.mjs +4 -4
  7. package/index155.js +1 -1
  8. package/index155.mjs +4 -4
  9. package/index157.js +1 -1
  10. package/index157.mjs +4 -4
  11. package/index158.js +1 -1
  12. package/index158.mjs +2 -2
  13. package/index159.js +1 -1
  14. package/index159.mjs +1 -1
  15. package/index160.js +1 -1
  16. package/index160.mjs +1 -1
  17. package/index161.js +1 -2
  18. package/index161.mjs +39 -12
  19. package/index162.js +1 -1
  20. package/index162.mjs +12 -38
  21. package/index163.js +2 -1
  22. package/index163.mjs +26 -11
  23. package/index164.js +2 -1
  24. package/index164.mjs +38 -13
  25. package/index165.js +1 -1
  26. package/index165.mjs +21 -38
  27. package/index166.js +1 -2
  28. package/index166.mjs +44 -24
  29. package/index167.js +1 -1
  30. package/index167.mjs +25 -22
  31. package/index168.js +1 -1
  32. package/index168.mjs +40 -45
  33. package/index169.js +2 -1
  34. package/index169.mjs +57 -25
  35. package/index170.js +1 -1
  36. package/index170.mjs +39 -41
  37. package/index171.js +1 -2
  38. package/index171.mjs +30 -57
  39. package/index172.js +2 -1
  40. package/index172.mjs +8 -38
  41. package/index173.js +2 -1
  42. package/index173.mjs +9 -30
  43. package/index174.js +1 -2
  44. package/index174.mjs +32 -9
  45. package/index175.js +1 -2
  46. package/index175.mjs +14 -9
  47. package/index176.js +1 -1
  48. package/index176.mjs +16 -31
  49. package/index177.js +1 -1
  50. package/index177.mjs +11 -15
  51. package/index178.js +2 -1
  52. package/index178.mjs +47 -16
  53. package/index179.js +1 -2
  54. package/index179.mjs +36 -46
  55. package/index180.js +1 -1
  56. package/index180.mjs +31 -36
  57. package/index181.js +1 -1
  58. package/index181.mjs +20 -31
  59. package/index182.js +1 -1
  60. package/index182.mjs +32 -18
  61. package/index183.js +1 -1
  62. package/index183.mjs +14 -36
  63. package/index185.js +1 -1
  64. package/index185.mjs +3 -3
  65. package/index186.js +1 -1
  66. package/index186.mjs +23 -23
  67. package/index188.js +1 -1
  68. package/index188.mjs +5 -2025
  69. package/index189.js +2 -1
  70. package/index189.mjs +48 -58
  71. package/index190.js +1 -1
  72. package/index190.mjs +2010 -174
  73. package/index191.js +1 -1
  74. package/index191.mjs +59 -5
  75. package/index192.js +1 -2
  76. package/index192.mjs +186 -47
  77. package/index193.js +1 -1
  78. package/index193.mjs +203 -11
  79. package/index194.js +1 -1
  80. package/index194.mjs +51 -190
  81. package/index195.js +1 -1
  82. package/index195.mjs +130 -51
  83. package/index196.js +1 -1
  84. package/index196.mjs +111 -130
  85. package/index197.js +1 -1
  86. package/index197.mjs +205 -105
  87. package/index198.js +1 -1
  88. package/index198.mjs +169 -203
  89. package/index199.js +1 -1
  90. package/index199.mjs +61 -182
  91. package/index2.mjs +35 -35
  92. package/index200.js +1 -1
  93. package/index200.mjs +270 -60
  94. package/index201.js +1 -1
  95. package/index201.mjs +89 -270
  96. package/index202.js +1 -1
  97. package/index202.mjs +182 -92
  98. package/index203.js +1 -1
  99. package/index203.mjs +78 -182
  100. package/index204.js +1 -1
  101. package/index204.mjs +49 -75
  102. package/index205.js +1 -1
  103. package/index205.mjs +117 -49
  104. package/index206.js +1 -1
  105. package/index206.mjs +108 -118
  106. package/index207.js +1 -1
  107. package/index207.mjs +112 -106
  108. package/index208.js +1 -1
  109. package/index208.mjs +63 -113
  110. package/index209.js +1 -1
  111. package/index209.mjs +108 -70
  112. package/index210.js +1 -1
  113. package/index210.mjs +50 -108
  114. package/index211.js +1 -1
  115. package/index211.mjs +75 -34
  116. package/index212.js +1 -1
  117. package/index212.mjs +48 -71
  118. package/index213.js +1 -1
  119. package/index213.mjs +43 -57
  120. package/index214.js +1 -1
  121. package/index214.mjs +86 -43
  122. package/index215.js +5 -1
  123. package/index215.mjs +62 -81
  124. package/index216.js +1 -5
  125. package/index216.mjs +11 -80
  126. package/index217.js +1 -1
  127. package/index217.mjs +119 -125
  128. package/index218.js +1 -1
  129. package/index218.mjs +129 -185
  130. package/index219.js +1 -1
  131. package/index219.mjs +72 -121
  132. package/index220.js +1 -1
  133. package/index220.mjs +12 -132
  134. package/index221.js +1 -1
  135. package/index221.mjs +89 -69
  136. package/index222.js +1 -1
  137. package/index222.mjs +104 -12
  138. package/index223.js +1 -1
  139. package/index223.mjs +4 -95
  140. package/index224.js +1 -1
  141. package/index224.mjs +3 -106
  142. package/index225.js +1 -1
  143. package/index225.mjs +125 -4
  144. package/index226.js +1 -1
  145. package/index226.mjs +29 -3
  146. package/index227.js +1 -1
  147. package/index227.mjs +39 -113
  148. package/index228.js +1 -1
  149. package/index228.mjs +34 -19
  150. package/index229.js +1 -1
  151. package/index229.mjs +26 -40
  152. package/index230.js +1 -1
  153. package/index230.mjs +98 -29
  154. package/index231.js +1 -1
  155. package/index231.mjs +68 -28
  156. package/index232.js +1 -1
  157. package/index232.mjs +78 -90
  158. package/index233.js +1 -1
  159. package/index233.mjs +98 -78
  160. package/index234.js +1 -1
  161. package/index234.mjs +125 -96
  162. package/index235.js +1 -1
  163. package/index235.mjs +191 -98
  164. package/index236.js +1 -1
  165. package/index236.mjs +4 -126
  166. package/index237.js +1 -1
  167. package/index237.mjs +20 -67
  168. package/index238.js +1 -7
  169. package/index238.mjs +39 -431
  170. package/index239.js +1 -1
  171. package/index239.mjs +4 -57
  172. package/index240.js +1 -1
  173. package/index240.mjs +24 -3
  174. package/index241.js +1 -1
  175. package/index241.mjs +12 -25
  176. package/index242.js +1 -1
  177. package/index242.mjs +4 -47
  178. package/index243.js +1 -1
  179. package/index243.mjs +14 -5
  180. package/index244.js +1 -1
  181. package/index244.mjs +40 -22
  182. package/index245.js +1 -1
  183. package/index245.mjs +57 -11
  184. package/index246.js +1 -1
  185. package/index246.mjs +43 -4
  186. package/index247.js +1 -1
  187. package/index247.mjs +31 -13
  188. package/index248.js +1 -1
  189. package/index248.mjs +31 -42
  190. package/index249.js +1 -1
  191. package/index249.mjs +13 -57
  192. package/index250.js +1 -1
  193. package/index250.mjs +10 -43
  194. package/index251.js +1 -1
  195. package/index251.mjs +28 -31
  196. package/index252.js +1 -1
  197. package/index252.mjs +14 -30
  198. package/index253.js +1 -1
  199. package/index253.mjs +9 -14
  200. package/index254.js +1 -1
  201. package/index254.mjs +6 -10
  202. package/index255.js +1 -1
  203. package/index255.mjs +5 -29
  204. package/index256.js +1 -1
  205. package/index256.mjs +7 -15
  206. package/index257.js +1 -1
  207. package/index257.mjs +29 -9
  208. package/index258.js +1 -1
  209. package/index258.mjs +17 -6
  210. package/index259.js +1 -1
  211. package/index259.mjs +44 -5
  212. package/index260.js +1 -1
  213. package/index260.mjs +8 -7
  214. package/index261.js +1 -1
  215. package/index261.mjs +13 -26
  216. package/index262.js +1 -1
  217. package/index262.mjs +3 -18
  218. package/index263.js +1 -1
  219. package/index263.mjs +18 -43
  220. package/index264.js +1 -1
  221. package/index264.mjs +33 -7
  222. package/index265.js +1 -1
  223. package/index265.mjs +22 -16
  224. package/index266.js +1 -1
  225. package/index266.mjs +10 -3
  226. package/index267.js +1 -1
  227. package/index267.mjs +2 -18
  228. package/index268.js +1 -1
  229. package/index268.mjs +36 -34
  230. package/index269.js +1 -1
  231. package/index269.mjs +5 -22
  232. package/index270.js +1 -1
  233. package/index270.mjs +28 -53
  234. package/index271.js +1 -1
  235. package/index271.mjs +6 -27
  236. package/index272.js +1 -1
  237. package/index272.mjs +9 -144
  238. package/index273.js +1 -1
  239. package/index273.mjs +127 -207
  240. package/index274.js +1 -1
  241. package/index274.mjs +43 -22
  242. package/index275.js +1 -1
  243. package/index275.mjs +226 -44
  244. package/index276.js +1 -1
  245. package/index276.mjs +121 -42
  246. package/index277.js +1 -6
  247. package/index277.mjs +64 -105
  248. package/index278.js +7 -1
  249. package/index278.mjs +440 -72
  250. package/index279.js +1 -1
  251. package/index279.mjs +56 -72
  252. package/index28.js +1 -1
  253. package/index28.mjs +38 -94
  254. package/index280.js +1 -1
  255. package/index280.mjs +54 -7
  256. package/index281.js +1 -1
  257. package/index281.mjs +27 -11
  258. package/index282.js +1 -1
  259. package/index282.mjs +31 -9
  260. package/index283.js +1 -1
  261. package/index283.mjs +136 -125
  262. package/index284.js +1 -1
  263. package/index284.mjs +209 -39
  264. package/index285.js +1 -1
  265. package/index285.mjs +19 -228
  266. package/index286.js +1 -1
  267. package/index286.mjs +46 -28
  268. package/index287.js +1 -1
  269. package/index287.mjs +45 -8
  270. package/index288.js +6 -1
  271. package/index288.mjs +113 -3
  272. package/index289.js +1 -1
  273. package/index289.mjs +72 -37
  274. package/index29.js +1 -1
  275. package/index29.mjs +2 -2
  276. package/index290.js +1 -1
  277. package/index290.mjs +74 -5
  278. package/index291.js +1 -1
  279. package/index291.mjs +7 -29
  280. package/index292.js +1 -1
  281. package/index292.mjs +11 -6
  282. package/index30.js +1 -1
  283. package/index30.mjs +1 -1
  284. package/index329.js +1 -1
  285. package/index329.mjs +17 -59
  286. package/index33.js +1 -1
  287. package/index33.mjs +2 -2
  288. package/index330.js +1 -1
  289. package/index330.mjs +30 -7
  290. package/index331.js +1 -1
  291. package/index331.mjs +63 -27
  292. package/index332.js +1 -1
  293. package/index332.mjs +15 -87
  294. package/index333.js +1 -1
  295. package/index333.mjs +48 -7
  296. package/index334.js +1 -1
  297. package/index334.mjs +7 -26
  298. package/index335.js +1 -1
  299. package/index335.mjs +26 -32
  300. package/index336.js +1 -1
  301. package/index336.mjs +87 -6
  302. package/index337.js +1 -1
  303. package/index337.mjs +9 -6
  304. package/index338.js +1 -1
  305. package/index338.mjs +23 -48
  306. package/index339.js +1 -1
  307. package/index339.mjs +32 -28
  308. package/index34.js +1 -1
  309. package/index34.mjs +3 -3
  310. package/index340.js +1 -1
  311. package/index340.mjs +6 -15
  312. package/index341.js +1 -1
  313. package/index341.mjs +6 -21
  314. package/index342.js +1 -1
  315. package/index342.mjs +28 -28
  316. package/index345.js +1 -1
  317. package/index345.mjs +1 -1
  318. package/index35.js +1 -1
  319. package/index35.mjs +1 -1
  320. package/index36.js +1 -1
  321. package/index36.mjs +2 -2
  322. package/index38.js +1 -1
  323. package/index38.mjs +3 -3
  324. package/index39.js +1 -1
  325. package/index39.mjs +3 -3
  326. package/index40.js +1 -1
  327. package/index40.mjs +3 -3
  328. package/index42.js +1 -1
  329. package/index42.mjs +1 -1
  330. package/index44.js +1 -1
  331. package/index44.mjs +2 -2
  332. package/index45.js +1 -1
  333. package/index45.mjs +1 -1
  334. package/index48.js +1 -1
  335. package/index48.mjs +2 -2
  336. package/index52.js +1 -1
  337. package/index52.mjs +1 -1
  338. package/index54.js +1 -1
  339. package/index54.mjs +3 -3
  340. package/index56.js +1 -1
  341. package/index56.mjs +2 -2
  342. package/index57.js +1 -1
  343. package/index57.mjs +1 -1
  344. package/index59.js +1 -1
  345. package/index59.mjs +2 -2
  346. package/logger.d.ts +2 -2
  347. package/package.json +2 -2
package/index190.mjs CHANGED
@@ -1,191 +1,2027 @@
1
- const z = [
2
- "eventsPrefix",
3
- "injectStyles",
4
- "injectStylesUrls",
5
- "modules",
6
- "init",
7
- "_direction",
8
- "oneWayMovement",
9
- "swiperElementNodeName",
10
- "touchEventsTarget",
11
- "initialSlide",
12
- "_speed",
13
- "cssMode",
14
- "updateOnWindowResize",
15
- "resizeObserver",
16
- "nested",
17
- "focusableElements",
18
- "_enabled",
19
- "_width",
20
- "_height",
21
- "preventInteractionOnTransition",
22
- "userAgent",
23
- "url",
24
- "_edgeSwipeDetection",
25
- "_edgeSwipeThreshold",
26
- "_freeMode",
27
- "_autoHeight",
28
- "setWrapperSize",
29
- "virtualTranslate",
30
- "_effect",
31
- "breakpoints",
32
- "breakpointsBase",
33
- "_spaceBetween",
34
- "_slidesPerView",
35
- "maxBackfaceHiddenSlides",
36
- "_grid",
37
- "_slidesPerGroup",
38
- "_slidesPerGroupSkip",
39
- "_slidesPerGroupAuto",
40
- "_centeredSlides",
41
- "_centeredSlidesBounds",
42
- "_slidesOffsetBefore",
43
- "_slidesOffsetAfter",
44
- "normalizeSlideIndex",
45
- "_centerInsufficientSlides",
46
- "_watchOverflow",
47
- "roundLengths",
48
- "touchRatio",
49
- "touchAngle",
50
- "simulateTouch",
51
- "_shortSwipes",
52
- "_longSwipes",
53
- "longSwipesRatio",
54
- "longSwipesMs",
55
- "_followFinger",
56
- "allowTouchMove",
57
- "_threshold",
58
- "touchMoveStopPropagation",
59
- "touchStartPreventDefault",
60
- "touchStartForcePreventDefault",
61
- "touchReleaseOnEdges",
62
- "uniqueNavElements",
63
- "_resistance",
64
- "_resistanceRatio",
65
- "_watchSlidesProgress",
66
- "_grabCursor",
67
- "preventClicks",
68
- "preventClicksPropagation",
69
- "_slideToClickedSlide",
70
- "_loop",
71
- "loopAdditionalSlides",
72
- "loopAddBlankSlides",
73
- "loopPreventsSliding",
74
- "_rewind",
75
- "_allowSlidePrev",
76
- "_allowSlideNext",
77
- "_swipeHandler",
78
- "_noSwiping",
79
- "noSwipingClass",
80
- "noSwipingSelector",
81
- "passiveListeners",
82
- "containerModifierClass",
83
- "slideClass",
84
- "slideActiveClass",
85
- "slideVisibleClass",
86
- "slideFullyVisibleClass",
87
- "slideNextClass",
88
- "slidePrevClass",
89
- "slideBlankClass",
90
- "wrapperClass",
91
- "lazyPreloaderClass",
92
- "lazyPreloadPrevNext",
93
- "runCallbacksOnInit",
94
- "observer",
95
- "observeParents",
96
- "observeSlideChildren",
97
- // modules
98
- "a11y",
99
- "_autoplay",
100
- "_controller",
101
- "coverflowEffect",
102
- "cubeEffect",
103
- "fadeEffect",
104
- "flipEffect",
105
- "creativeEffect",
106
- "cardsEffect",
107
- "hashNavigation",
108
- "history",
109
- "keyboard",
110
- "mousewheel",
111
- "_navigation",
112
- "_pagination",
113
- "parallax",
114
- "_scrollbar",
115
- "_thumbs",
116
- "virtual",
117
- "zoom",
118
- "control"
119
- ];
120
- function b(t) {
121
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
122
- }
123
- function j(t, i) {
124
- const r = ["__proto__", "constructor", "prototype"];
125
- Object.keys(i).filter((e) => r.indexOf(e) < 0).forEach((e) => {
126
- typeof t[e] > "u" ? t[e] = i[e] : b(i[e]) && b(t[e]) && Object.keys(i[e]).length > 0 ? i[e].__swiper__ ? t[e] = i[e] : j(t[e], i[e]) : t[e] = i[e];
1
+ import { a as D, g as F } from "./index234.mjs";
2
+ import { w as A, u as R, e as G, n as K, t as de, j as ve, q as we, r as Se, s as N, p as V, f as ie, h as se, c as J, x as Te, v as xe, d as $, a as be } from "./index235.mjs";
3
+ let H;
4
+ function ye() {
5
+ const i = D(), t = F();
6
+ return {
7
+ smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
8
+ touch: !!("ontouchstart" in i || i.DocumentTouch && t instanceof i.DocumentTouch)
9
+ };
10
+ }
11
+ function ce() {
12
+ return H || (H = ye()), H;
13
+ }
14
+ let W;
15
+ function Ee(i) {
16
+ let {
17
+ userAgent: t
18
+ } = i === void 0 ? {} : i;
19
+ const e = ce(), s = D(), n = s.navigator.platform, r = t || s.navigator.userAgent, l = {
20
+ ios: !1,
21
+ android: !1
22
+ }, o = s.screen.width, a = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
23
+ let c = r.match(/(iPad).*OS\s([\d_]+)/);
24
+ const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), p = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), u = n === "Win32";
25
+ let h = n === "MacIntel";
26
+ const m = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
27
+ return !c && h && e.touch && m.indexOf(`${o}x${a}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), h = !1), d && !u && (l.os = "android", l.android = !0), (c || p || f) && (l.os = "ios", l.ios = !0), l;
28
+ }
29
+ function fe(i) {
30
+ return i === void 0 && (i = {}), W || (W = Ee(i)), W;
31
+ }
32
+ let Y;
33
+ function Pe() {
34
+ const i = D(), t = fe();
35
+ let e = !1;
36
+ function s() {
37
+ const o = i.navigator.userAgent.toLowerCase();
38
+ return o.indexOf("safari") >= 0 && o.indexOf("chrome") < 0 && o.indexOf("android") < 0;
39
+ }
40
+ if (s()) {
41
+ const o = String(i.navigator.userAgent);
42
+ if (o.includes("Version/")) {
43
+ const [a, d] = o.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
44
+ e = a < 16 || a === 16 && d < 2;
45
+ }
46
+ }
47
+ const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent), r = s(), l = r || n && t.ios;
48
+ return {
49
+ isSafari: e || r,
50
+ needPerspectiveFix: e,
51
+ need3dFix: l,
52
+ isWebView: n
53
+ };
54
+ }
55
+ function Me() {
56
+ return Y || (Y = Pe()), Y;
57
+ }
58
+ function Ie(i) {
59
+ let {
60
+ swiper: t,
61
+ on: e,
62
+ emit: s
63
+ } = i;
64
+ const n = D();
65
+ let r = null, l = null;
66
+ const o = () => {
67
+ !t || t.destroyed || !t.initialized || (s("beforeResize"), s("resize"));
68
+ }, a = () => {
69
+ !t || t.destroyed || !t.initialized || (r = new ResizeObserver((f) => {
70
+ l = n.requestAnimationFrame(() => {
71
+ const {
72
+ width: p,
73
+ height: u
74
+ } = t;
75
+ let h = p, m = u;
76
+ f.forEach((x) => {
77
+ let {
78
+ contentBoxSize: g,
79
+ contentRect: b,
80
+ target: w
81
+ } = x;
82
+ w && w !== t.el || (h = b ? b.width : (g[0] || g).inlineSize, m = b ? b.height : (g[0] || g).blockSize);
83
+ }), (h !== p || m !== u) && o();
84
+ });
85
+ }), r.observe(t.el));
86
+ }, d = () => {
87
+ l && n.cancelAnimationFrame(l), r && r.unobserve && t.el && (r.unobserve(t.el), r = null);
88
+ }, c = () => {
89
+ !t || t.destroyed || !t.initialized || s("orientationchange");
90
+ };
91
+ e("init", () => {
92
+ if (t.params.resizeObserver && typeof n.ResizeObserver < "u") {
93
+ a();
94
+ return;
95
+ }
96
+ n.addEventListener("resize", o), n.addEventListener("orientationchange", c);
97
+ }), e("destroy", () => {
98
+ d(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", c);
127
99
  });
128
100
  }
129
- function M(t) {
130
- return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
101
+ function Ce(i) {
102
+ let {
103
+ swiper: t,
104
+ extendParams: e,
105
+ on: s,
106
+ emit: n
107
+ } = i;
108
+ const r = [], l = D(), o = function(c, f) {
109
+ f === void 0 && (f = {});
110
+ const p = l.MutationObserver || l.WebkitMutationObserver, u = new p((h) => {
111
+ if (t.__preventObserver__) return;
112
+ if (h.length === 1) {
113
+ n("observerUpdate", h[0]);
114
+ return;
115
+ }
116
+ const m = function() {
117
+ n("observerUpdate", h[0]);
118
+ };
119
+ l.requestAnimationFrame ? l.requestAnimationFrame(m) : l.setTimeout(m, 0);
120
+ });
121
+ u.observe(c, {
122
+ attributes: typeof f.attributes > "u" ? !0 : f.attributes,
123
+ childList: t.isElement || (typeof f.childList > "u" ? !0 : f).childList,
124
+ characterData: typeof f.characterData > "u" ? !0 : f.characterData
125
+ }), r.push(u);
126
+ }, a = () => {
127
+ if (t.params.observer) {
128
+ if (t.params.observeParents) {
129
+ const c = be(t.hostEl);
130
+ for (let f = 0; f < c.length; f += 1)
131
+ o(c[f]);
132
+ }
133
+ o(t.hostEl, {
134
+ childList: t.params.observeSlideChildren
135
+ }), o(t.wrapperEl, {
136
+ attributes: !1
137
+ });
138
+ }
139
+ }, d = () => {
140
+ r.forEach((c) => {
141
+ c.disconnect();
142
+ }), r.splice(0, r.length);
143
+ };
144
+ e({
145
+ observer: !1,
146
+ observeParents: !1,
147
+ observeSlideChildren: !1
148
+ }), s("init", a), s("destroy", d);
149
+ }
150
+ var Le = {
151
+ on(i, t, e) {
152
+ const s = this;
153
+ if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
154
+ const n = e ? "unshift" : "push";
155
+ return i.split(" ").forEach((r) => {
156
+ s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](t);
157
+ }), s;
158
+ },
159
+ once(i, t, e) {
160
+ const s = this;
161
+ if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
162
+ function n() {
163
+ s.off(i, n), n.__emitterProxy && delete n.__emitterProxy;
164
+ for (var r = arguments.length, l = new Array(r), o = 0; o < r; o++)
165
+ l[o] = arguments[o];
166
+ t.apply(s, l);
167
+ }
168
+ return n.__emitterProxy = t, s.on(i, n, e);
169
+ },
170
+ onAny(i, t) {
171
+ const e = this;
172
+ if (!e.eventsListeners || e.destroyed || typeof i != "function") return e;
173
+ const s = t ? "unshift" : "push";
174
+ return e.eventsAnyListeners.indexOf(i) < 0 && e.eventsAnyListeners[s](i), e;
175
+ },
176
+ offAny(i) {
177
+ const t = this;
178
+ if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
179
+ const e = t.eventsAnyListeners.indexOf(i);
180
+ return e >= 0 && t.eventsAnyListeners.splice(e, 1), t;
181
+ },
182
+ off(i, t) {
183
+ const e = this;
184
+ return !e.eventsListeners || e.destroyed || !e.eventsListeners || i.split(" ").forEach((s) => {
185
+ typeof t > "u" ? e.eventsListeners[s] = [] : e.eventsListeners[s] && e.eventsListeners[s].forEach((n, r) => {
186
+ (n === t || n.__emitterProxy && n.__emitterProxy === t) && e.eventsListeners[s].splice(r, 1);
187
+ });
188
+ }), e;
189
+ },
190
+ emit() {
191
+ const i = this;
192
+ if (!i.eventsListeners || i.destroyed || !i.eventsListeners) return i;
193
+ let t, e, s;
194
+ for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++)
195
+ r[l] = arguments[l];
196
+ return typeof r[0] == "string" || Array.isArray(r[0]) ? (t = r[0], e = r.slice(1, r.length), s = i) : (t = r[0].events, e = r[0].data, s = r[0].context || i), e.unshift(s), (Array.isArray(t) ? t : t.split(" ")).forEach((a) => {
197
+ i.eventsAnyListeners && i.eventsAnyListeners.length && i.eventsAnyListeners.forEach((d) => {
198
+ d.apply(s, [a, ...e]);
199
+ }), i.eventsListeners && i.eventsListeners[a] && i.eventsListeners[a].forEach((d) => {
200
+ d.apply(s, e);
201
+ });
202
+ }), i;
203
+ }
204
+ };
205
+ function ze() {
206
+ const i = this;
207
+ let t, e;
208
+ const s = i.el;
209
+ typeof i.params.width < "u" && i.params.width !== null ? t = i.params.width : t = s.clientWidth, typeof i.params.height < "u" && i.params.height !== null ? e = i.params.height : e = s.clientHeight, !(t === 0 && i.isHorizontal() || e === 0 && i.isVertical()) && (t = t - parseInt(V(s, "padding-left") || 0, 10) - parseInt(V(s, "padding-right") || 0, 10), e = e - parseInt(V(s, "padding-top") || 0, 10) - parseInt(V(s, "padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(e) && (e = 0), Object.assign(i, {
210
+ width: t,
211
+ height: e,
212
+ size: i.isHorizontal() ? t : e
213
+ }));
131
214
  }
132
- function B(t) {
133
- return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
215
+ function Oe() {
216
+ const i = this;
217
+ function t(S, y) {
218
+ return parseFloat(S.getPropertyValue(i.getDirectionLabel(y)) || 0);
219
+ }
220
+ const e = i.params, {
221
+ wrapperEl: s,
222
+ slidesEl: n,
223
+ size: r,
224
+ rtlTranslate: l,
225
+ wrongRTL: o
226
+ } = i, a = i.virtual && e.virtual.enabled, d = a ? i.virtual.slides.length : i.slides.length, c = G(n, `.${i.params.slideClass}, swiper-slide`), f = a ? i.virtual.slides.length : c.length;
227
+ let p = [];
228
+ const u = [], h = [];
229
+ let m = e.slidesOffsetBefore;
230
+ typeof m == "function" && (m = e.slidesOffsetBefore.call(i));
231
+ let x = e.slidesOffsetAfter;
232
+ typeof x == "function" && (x = e.slidesOffsetAfter.call(i));
233
+ const g = i.snapGrid.length, b = i.slidesGrid.length;
234
+ let w = e.spaceBetween, E = -m, v = 0, M = 0;
235
+ if (typeof r > "u")
236
+ return;
237
+ typeof w == "string" && w.indexOf("%") >= 0 ? w = parseFloat(w.replace("%", "")) / 100 * r : typeof w == "string" && (w = parseFloat(w)), i.virtualSize = -w, c.forEach((S) => {
238
+ l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
239
+ }), e.centeredSlides && e.cssMode && (N(s, "--swiper-centered-offset-before", ""), N(s, "--swiper-centered-offset-after", ""));
240
+ const z = e.grid && e.grid.rows > 1 && i.grid;
241
+ z ? i.grid.initSlides(c) : i.grid && i.grid.unsetSlides();
242
+ let I;
243
+ const B = e.slidesPerView === "auto" && e.breakpoints && Object.keys(e.breakpoints).filter((S) => typeof e.breakpoints[S].slidesPerView < "u").length > 0;
244
+ for (let S = 0; S < f; S += 1) {
245
+ I = 0;
246
+ let y;
247
+ if (c[S] && (y = c[S]), z && i.grid.updateSlide(S, y, c), !(c[S] && V(y, "display") === "none")) {
248
+ if (e.slidesPerView === "auto") {
249
+ B && (c[S].style[i.getDirectionLabel("width")] = "");
250
+ const P = getComputedStyle(y), T = y.style.transform, C = y.style.webkitTransform;
251
+ if (T && (y.style.transform = "none"), C && (y.style.webkitTransform = "none"), e.roundLengths)
252
+ I = i.isHorizontal() ? ie(y, "width") : ie(y, "height");
253
+ else {
254
+ const L = t(P, "width"), k = t(P, "padding-left"), he = t(P, "padding-right"), Z = t(P, "margin-left"), ee = t(P, "margin-right"), te = P.getPropertyValue("box-sizing");
255
+ if (te && te === "border-box")
256
+ I = L + Z + ee;
257
+ else {
258
+ const {
259
+ clientWidth: me,
260
+ offsetWidth: ge
261
+ } = y;
262
+ I = L + k + he + Z + ee + (ge - me);
263
+ }
264
+ }
265
+ T && (y.style.transform = T), C && (y.style.webkitTransform = C), e.roundLengths && (I = Math.floor(I));
266
+ } else
267
+ I = (r - (e.slidesPerView - 1) * w) / e.slidesPerView, e.roundLengths && (I = Math.floor(I)), c[S] && (c[S].style[i.getDirectionLabel("width")] = `${I}px`);
268
+ c[S] && (c[S].swiperSlideSize = I), h.push(I), e.centeredSlides ? (E = E + I / 2 + v / 2 + w, v === 0 && S !== 0 && (E = E - r / 2 - w), S === 0 && (E = E - r / 2 - w), Math.abs(E) < 1 / 1e3 && (E = 0), e.roundLengths && (E = Math.floor(E)), M % e.slidesPerGroup === 0 && p.push(E), u.push(E)) : (e.roundLengths && (E = Math.floor(E)), (M - Math.min(i.params.slidesPerGroupSkip, M)) % i.params.slidesPerGroup === 0 && p.push(E), u.push(E), E = E + I + w), i.virtualSize += I + w, v = I, M += 1;
269
+ }
270
+ }
271
+ if (i.virtualSize = Math.max(i.virtualSize, r) + x, l && o && (e.effect === "slide" || e.effect === "coverflow") && (s.style.width = `${i.virtualSize + w}px`), e.setWrapperSize && (s.style[i.getDirectionLabel("width")] = `${i.virtualSize + w}px`), z && i.grid.updateWrapperSize(I, p), !e.centeredSlides) {
272
+ const S = [];
273
+ for (let y = 0; y < p.length; y += 1) {
274
+ let P = p[y];
275
+ e.roundLengths && (P = Math.floor(P)), p[y] <= i.virtualSize - r && S.push(P);
276
+ }
277
+ p = S, Math.floor(i.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(i.virtualSize - r);
278
+ }
279
+ if (a && e.loop) {
280
+ const S = h[0] + w;
281
+ if (e.slidesPerGroup > 1) {
282
+ const y = Math.ceil((i.virtual.slidesBefore + i.virtual.slidesAfter) / e.slidesPerGroup), P = S * e.slidesPerGroup;
283
+ for (let T = 0; T < y; T += 1)
284
+ p.push(p[p.length - 1] + P);
285
+ }
286
+ for (let y = 0; y < i.virtual.slidesBefore + i.virtual.slidesAfter; y += 1)
287
+ e.slidesPerGroup === 1 && p.push(p[p.length - 1] + S), u.push(u[u.length - 1] + S), i.virtualSize += S;
288
+ }
289
+ if (p.length === 0 && (p = [0]), w !== 0) {
290
+ const S = i.isHorizontal() && l ? "marginLeft" : i.getDirectionLabel("marginRight");
291
+ c.filter((y, P) => !e.cssMode || e.loop ? !0 : P !== c.length - 1).forEach((y) => {
292
+ y.style[S] = `${w}px`;
293
+ });
294
+ }
295
+ if (e.centeredSlides && e.centeredSlidesBounds) {
296
+ let S = 0;
297
+ h.forEach((P) => {
298
+ S += P + (w || 0);
299
+ }), S -= w;
300
+ const y = S > r ? S - r : 0;
301
+ p = p.map((P) => P <= 0 ? -m : P > y ? y + x : P);
302
+ }
303
+ if (e.centerInsufficientSlides) {
304
+ let S = 0;
305
+ h.forEach((P) => {
306
+ S += P + (w || 0);
307
+ }), S -= w;
308
+ const y = (e.slidesOffsetBefore || 0) + (e.slidesOffsetAfter || 0);
309
+ if (S + y < r) {
310
+ const P = (r - S - y) / 2;
311
+ p.forEach((T, C) => {
312
+ p[C] = T - P;
313
+ }), u.forEach((T, C) => {
314
+ u[C] = T + P;
315
+ });
316
+ }
317
+ }
318
+ if (Object.assign(i, {
319
+ slides: c,
320
+ snapGrid: p,
321
+ slidesGrid: u,
322
+ slidesSizesGrid: h
323
+ }), e.centeredSlides && e.cssMode && !e.centeredSlidesBounds) {
324
+ N(s, "--swiper-centered-offset-before", `${-p[0]}px`), N(s, "--swiper-centered-offset-after", `${i.size / 2 - h[h.length - 1] / 2}px`);
325
+ const S = -i.snapGrid[0], y = -i.slidesGrid[0];
326
+ i.snapGrid = i.snapGrid.map((P) => P + S), i.slidesGrid = i.slidesGrid.map((P) => P + y);
327
+ }
328
+ if (f !== d && i.emit("slidesLengthChange"), p.length !== g && (i.params.watchOverflow && i.checkOverflow(), i.emit("snapGridLengthChange")), u.length !== b && i.emit("slidesGridLengthChange"), e.watchSlidesProgress && i.updateSlidesOffset(), i.emit("slidesUpdated"), !a && !e.cssMode && (e.effect === "slide" || e.effect === "fade")) {
329
+ const S = `${e.containerModifierClass}backface-hidden`, y = i.el.classList.contains(S);
330
+ f <= e.maxBackfaceHiddenSlides ? y || i.el.classList.add(S) : y && i.el.classList.remove(S);
331
+ }
134
332
  }
135
- function I(t) {
136
- return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
333
+ function Ae(i) {
334
+ const t = this, e = [], s = t.virtual && t.params.virtual.enabled;
335
+ let n = 0, r;
336
+ typeof i == "number" ? t.setTransition(i) : i === !0 && t.setTransition(t.params.speed);
337
+ const l = (o) => s ? t.slides[t.getSlideIndexByData(o)] : t.slides[o];
338
+ if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1)
339
+ if (t.params.centeredSlides)
340
+ (t.visibleSlides || []).forEach((o) => {
341
+ e.push(o);
342
+ });
343
+ else
344
+ for (r = 0; r < Math.ceil(t.params.slidesPerView); r += 1) {
345
+ const o = t.activeIndex + r;
346
+ if (o > t.slides.length && !s) break;
347
+ e.push(l(o));
348
+ }
349
+ else
350
+ e.push(l(t.activeIndex));
351
+ for (r = 0; r < e.length; r += 1)
352
+ if (typeof e[r] < "u") {
353
+ const o = e[r].offsetHeight;
354
+ n = o > n ? o : n;
355
+ }
356
+ (n || n === 0) && (t.wrapperEl.style.height = `${n}px`);
137
357
  }
138
- function L(t) {
139
- t === void 0 && (t = "");
140
- const i = t.split(" ").map((e) => e.trim()).filter((e) => !!e), r = [];
141
- return i.forEach((e) => {
142
- r.indexOf(e) < 0 && r.push(e);
143
- }), r.join(" ");
358
+ function Ge() {
359
+ const i = this, t = i.slides, e = i.isElement ? i.isHorizontal() ? i.wrapperEl.offsetLeft : i.wrapperEl.offsetTop : 0;
360
+ for (let s = 0; s < t.length; s += 1)
361
+ t[s].swiperSlideOffset = (i.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop) - e - i.cssOverflowAdjustment();
144
362
  }
145
- function N(t) {
146
- return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
363
+ const re = (i, t, e) => {
364
+ t && !i.classList.contains(e) ? i.classList.add(e) : !t && i.classList.contains(e) && i.classList.remove(e);
365
+ };
366
+ function ke(i) {
367
+ i === void 0 && (i = this && this.translate || 0);
368
+ const t = this, e = t.params, {
369
+ slides: s,
370
+ rtlTranslate: n,
371
+ snapGrid: r
372
+ } = t;
373
+ if (s.length === 0) return;
374
+ typeof s[0].swiperSlideOffset > "u" && t.updateSlidesOffset();
375
+ let l = -i;
376
+ n && (l = i), t.visibleSlidesIndexes = [], t.visibleSlides = [];
377
+ let o = e.spaceBetween;
378
+ typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * t.size : typeof o == "string" && (o = parseFloat(o));
379
+ for (let a = 0; a < s.length; a += 1) {
380
+ const d = s[a];
381
+ let c = d.swiperSlideOffset;
382
+ e.cssMode && e.centeredSlides && (c -= s[0].swiperSlideOffset);
383
+ const f = (l + (e.centeredSlides ? t.minTranslate() : 0) - c) / (d.swiperSlideSize + o), p = (l - r[0] + (e.centeredSlides ? t.minTranslate() : 0) - c) / (d.swiperSlideSize + o), u = -(l - c), h = u + t.slidesSizesGrid[a], m = u >= 0 && u <= t.size - t.slidesSizesGrid[a], x = u >= 0 && u < t.size - 1 || h > 1 && h <= t.size || u <= 0 && h >= t.size;
384
+ x && (t.visibleSlides.push(d), t.visibleSlidesIndexes.push(a)), re(d, x, e.slideVisibleClass), re(d, m, e.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -p : p;
385
+ }
147
386
  }
148
- function A(t) {
387
+ function Ve(i) {
388
+ const t = this;
389
+ if (typeof i > "u") {
390
+ const c = t.rtlTranslate ? -1 : 1;
391
+ i = t && t.translate && t.translate * c || 0;
392
+ }
393
+ const e = t.params, s = t.maxTranslate() - t.minTranslate();
149
394
  let {
150
- swiper: i,
151
- slides: r,
152
- passedParams: e,
153
- changedParams: o,
154
- nextEl: s,
155
- prevEl: a,
156
- scrollbarEl: d,
157
- paginationEl: c
395
+ progress: n,
396
+ isBeginning: r,
397
+ isEnd: l,
398
+ progressLoop: o
158
399
  } = t;
159
- const h = o.filter((n) => n !== "children" && n !== "direction" && n !== "wrapperClass"), {
400
+ const a = r, d = l;
401
+ if (s === 0)
402
+ n = 0, r = !0, l = !0;
403
+ else {
404
+ n = (i - t.minTranslate()) / s;
405
+ const c = Math.abs(i - t.minTranslate()) < 1, f = Math.abs(i - t.maxTranslate()) < 1;
406
+ r = c || n <= 0, l = f || n >= 1, c && (n = 0), f && (n = 1);
407
+ }
408
+ if (e.loop) {
409
+ const c = t.getSlideIndexByData(0), f = t.getSlideIndexByData(t.slides.length - 1), p = t.slidesGrid[c], u = t.slidesGrid[f], h = t.slidesGrid[t.slidesGrid.length - 1], m = Math.abs(i);
410
+ m >= p ? o = (m - p) / h : o = (m + h - u) / h, o > 1 && (o -= 1);
411
+ }
412
+ Object.assign(t, {
413
+ progress: n,
414
+ progressLoop: o,
415
+ isBeginning: r,
416
+ isEnd: l
417
+ }), (e.watchSlidesProgress || e.centeredSlides && e.autoHeight) && t.updateSlidesProgress(i), r && !a && t.emit("reachBeginning toEdge"), l && !d && t.emit("reachEnd toEdge"), (a && !r || d && !l) && t.emit("fromEdge"), t.emit("progress", n);
418
+ }
419
+ const X = (i, t, e) => {
420
+ t && !i.classList.contains(e) ? i.classList.add(e) : !t && i.classList.contains(e) && i.classList.remove(e);
421
+ };
422
+ function De() {
423
+ const i = this, {
424
+ slides: t,
425
+ params: e,
426
+ slidesEl: s,
427
+ activeIndex: n
428
+ } = i, r = i.virtual && e.virtual.enabled, l = i.grid && e.grid && e.grid.rows > 1, o = (f) => G(s, `.${e.slideClass}${f}, swiper-slide${f}`)[0];
429
+ let a, d, c;
430
+ if (r)
431
+ if (e.loop) {
432
+ let f = n - i.virtual.slidesBefore;
433
+ f < 0 && (f = i.virtual.slides.length + f), f >= i.virtual.slides.length && (f -= i.virtual.slides.length), a = o(`[data-swiper-slide-index="${f}"]`);
434
+ } else
435
+ a = o(`[data-swiper-slide-index="${n}"]`);
436
+ else
437
+ l ? (a = t.filter((f) => f.column === n)[0], c = t.filter((f) => f.column === n + 1)[0], d = t.filter((f) => f.column === n - 1)[0]) : a = t[n];
438
+ a && (l || (c = we(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !c && (c = t[0]), d = Se(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !d === 0 && (d = t[t.length - 1]))), t.forEach((f) => {
439
+ X(f, f === a, e.slideActiveClass), X(f, f === c, e.slideNextClass), X(f, f === d, e.slidePrevClass);
440
+ }), i.emitSlidesClasses();
441
+ }
442
+ const _ = (i, t) => {
443
+ if (!i || i.destroyed || !i.params) return;
444
+ const e = () => i.isElement ? "swiper-slide" : `.${i.params.slideClass}`, s = t.closest(e());
445
+ if (s) {
446
+ let n = s.querySelector(`.${i.params.lazyPreloaderClass}`);
447
+ !n && i.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
448
+ s.shadowRoot && (n = s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`), n && n.remove());
449
+ })), n && n.remove();
450
+ }
451
+ }, j = (i, t) => {
452
+ if (!i.slides[t]) return;
453
+ const e = i.slides[t].querySelector('[loading="lazy"]');
454
+ e && e.removeAttribute("loading");
455
+ }, Q = (i) => {
456
+ if (!i || i.destroyed || !i.params) return;
457
+ let t = i.params.lazyPreloadPrevNext;
458
+ const e = i.slides.length;
459
+ if (!e || !t || t < 0) return;
460
+ t = Math.min(t, e);
461
+ const s = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(i.params.slidesPerView), n = i.activeIndex;
462
+ if (i.params.grid && i.params.grid.rows > 1) {
463
+ const l = n, o = [l - t];
464
+ o.push(...Array.from({
465
+ length: t
466
+ }).map((a, d) => l + s + d)), i.slides.forEach((a, d) => {
467
+ o.includes(a.column) && j(i, d);
468
+ });
469
+ return;
470
+ }
471
+ const r = n + s - 1;
472
+ if (i.params.rewind || i.params.loop)
473
+ for (let l = n - t; l <= r + t; l += 1) {
474
+ const o = (l % e + e) % e;
475
+ (o < n || o > r) && j(i, o);
476
+ }
477
+ else
478
+ for (let l = Math.max(n - t, 0); l <= Math.min(r + t, e - 1); l += 1)
479
+ l !== n && (l > r || l < n) && j(i, l);
480
+ };
481
+ function Be(i) {
482
+ const {
483
+ slidesGrid: t,
484
+ params: e
485
+ } = i, s = i.rtlTranslate ? i.translate : -i.translate;
486
+ let n;
487
+ for (let r = 0; r < t.length; r += 1)
488
+ typeof t[r + 1] < "u" ? s >= t[r] && s < t[r + 1] - (t[r + 1] - t[r]) / 2 ? n = r : s >= t[r] && s < t[r + 1] && (n = r + 1) : s >= t[r] && (n = r);
489
+ return e.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
490
+ }
491
+ function Fe(i) {
492
+ const t = this, e = t.rtlTranslate ? t.translate : -t.translate, {
493
+ snapGrid: s,
494
+ params: n,
495
+ activeIndex: r,
496
+ realIndex: l,
497
+ snapIndex: o
498
+ } = t;
499
+ let a = i, d;
500
+ const c = (u) => {
501
+ let h = u - t.virtual.slidesBefore;
502
+ return h < 0 && (h = t.virtual.slides.length + h), h >= t.virtual.slides.length && (h -= t.virtual.slides.length), h;
503
+ };
504
+ if (typeof a > "u" && (a = Be(t)), s.indexOf(e) >= 0)
505
+ d = s.indexOf(e);
506
+ else {
507
+ const u = Math.min(n.slidesPerGroupSkip, a);
508
+ d = u + Math.floor((a - u) / n.slidesPerGroup);
509
+ }
510
+ if (d >= s.length && (d = s.length - 1), a === r && !t.params.loop) {
511
+ d !== o && (t.snapIndex = d, t.emit("snapIndexChange"));
512
+ return;
513
+ }
514
+ if (a === r && t.params.loop && t.virtual && t.params.virtual.enabled) {
515
+ t.realIndex = c(a);
516
+ return;
517
+ }
518
+ const f = t.grid && n.grid && n.grid.rows > 1;
519
+ let p;
520
+ if (t.virtual && n.virtual.enabled && n.loop)
521
+ p = c(a);
522
+ else if (f) {
523
+ const u = t.slides.filter((m) => m.column === a)[0];
524
+ let h = parseInt(u.getAttribute("data-swiper-slide-index"), 10);
525
+ Number.isNaN(h) && (h = Math.max(t.slides.indexOf(u), 0)), p = Math.floor(h / n.grid.rows);
526
+ } else if (t.slides[a]) {
527
+ const u = t.slides[a].getAttribute("data-swiper-slide-index");
528
+ u ? p = parseInt(u, 10) : p = a;
529
+ } else
530
+ p = a;
531
+ Object.assign(t, {
532
+ previousSnapIndex: o,
533
+ snapIndex: d,
534
+ previousRealIndex: l,
535
+ realIndex: p,
536
+ previousIndex: r,
537
+ activeIndex: a
538
+ }), t.initialized && Q(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (l !== p && t.emit("realIndexChange"), t.emit("slideChange"));
539
+ }
540
+ function Ne(i, t) {
541
+ const e = this, s = e.params;
542
+ let n = i.closest(`.${s.slideClass}, swiper-slide`);
543
+ !n && e.isElement && t && t.length > 1 && t.includes(i) && [...t.slice(t.indexOf(i) + 1, t.length)].forEach((o) => {
544
+ !n && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (n = o);
545
+ });
546
+ let r = !1, l;
547
+ if (n) {
548
+ for (let o = 0; o < e.slides.length; o += 1)
549
+ if (e.slides[o] === n) {
550
+ r = !0, l = o;
551
+ break;
552
+ }
553
+ }
554
+ if (n && r)
555
+ e.clickedSlide = n, e.virtual && e.params.virtual.enabled ? e.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : e.clickedIndex = l;
556
+ else {
557
+ e.clickedSlide = void 0, e.clickedIndex = void 0;
558
+ return;
559
+ }
560
+ s.slideToClickedSlide && e.clickedIndex !== void 0 && e.clickedIndex !== e.activeIndex && e.slideToClickedSlide();
561
+ }
562
+ var _e = {
563
+ updateSize: ze,
564
+ updateSlides: Oe,
565
+ updateAutoHeight: Ae,
566
+ updateSlidesOffset: Ge,
567
+ updateSlidesProgress: ke,
568
+ updateProgress: Ve,
569
+ updateSlidesClasses: De,
570
+ updateActiveIndex: Fe,
571
+ updateClickedSlide: Ne
572
+ };
573
+ function Re(i) {
574
+ i === void 0 && (i = this.isHorizontal() ? "x" : "y");
575
+ const t = this, {
576
+ params: e,
577
+ rtlTranslate: s,
578
+ translate: n,
579
+ wrapperEl: r
580
+ } = t;
581
+ if (e.virtualTranslate)
582
+ return s ? -n : n;
583
+ if (e.cssMode)
584
+ return n;
585
+ let l = ve(r, i);
586
+ return l += t.cssOverflowAdjustment(), s && (l = -l), l || 0;
587
+ }
588
+ function $e(i, t) {
589
+ const e = this, {
590
+ rtlTranslate: s,
591
+ params: n,
592
+ wrapperEl: r,
593
+ progress: l
594
+ } = e;
595
+ let o = 0, a = 0;
596
+ const d = 0;
597
+ e.isHorizontal() ? o = s ? -i : i : a = i, n.roundLengths && (o = Math.floor(o), a = Math.floor(a)), e.previousTranslate = e.translate, e.translate = e.isHorizontal() ? o : a, n.cssMode ? r[e.isHorizontal() ? "scrollLeft" : "scrollTop"] = e.isHorizontal() ? -o : -a : n.virtualTranslate || (e.isHorizontal() ? o -= e.cssOverflowAdjustment() : a -= e.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${a}px, ${d}px)`);
598
+ let c;
599
+ const f = e.maxTranslate() - e.minTranslate();
600
+ f === 0 ? c = 0 : c = (i - e.minTranslate()) / f, c !== l && e.updateProgress(i), e.emit("setTranslate", e.translate, t);
601
+ }
602
+ function He() {
603
+ return -this.snapGrid[0];
604
+ }
605
+ function We() {
606
+ return -this.snapGrid[this.snapGrid.length - 1];
607
+ }
608
+ function Ye(i, t, e, s, n) {
609
+ i === void 0 && (i = 0), t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), s === void 0 && (s = !0);
610
+ const r = this, {
160
611
  params: l,
161
- pagination: p,
162
- navigation: f,
163
- scrollbar: v,
164
- virtual: u,
165
- thumbs: E
612
+ wrapperEl: o
613
+ } = r;
614
+ if (r.animating && l.preventInteractionOnTransition)
615
+ return !1;
616
+ const a = r.minTranslate(), d = r.maxTranslate();
617
+ let c;
618
+ if (s && i > a ? c = a : s && i < d ? c = d : c = i, r.updateProgress(c), l.cssMode) {
619
+ const f = r.isHorizontal();
620
+ if (t === 0)
621
+ o[f ? "scrollLeft" : "scrollTop"] = -c;
622
+ else {
623
+ if (!r.support.smoothScroll)
624
+ return de({
625
+ swiper: r,
626
+ targetPosition: -c,
627
+ side: f ? "left" : "top"
628
+ }), !0;
629
+ o.scrollTo({
630
+ [f ? "left" : "top"]: -c,
631
+ behavior: "smooth"
632
+ });
633
+ }
634
+ return !0;
635
+ }
636
+ return t === 0 ? (r.setTransition(0), r.setTranslate(c), e && (r.emit("beforeTransitionStart", t, n), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(c), e && (r.emit("beforeTransitionStart", t, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(p) {
637
+ !r || r.destroyed || p.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, e && r.emit("transitionEnd"));
638
+ }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
639
+ }
640
+ var Xe = {
641
+ getTranslate: Re,
642
+ setTranslate: $e,
643
+ minTranslate: He,
644
+ maxTranslate: We,
645
+ translateTo: Ye
646
+ };
647
+ function je(i, t) {
648
+ const e = this;
649
+ e.params.cssMode || (e.wrapperEl.style.transitionDuration = `${i}ms`, e.wrapperEl.style.transitionDelay = i === 0 ? "0ms" : ""), e.emit("setTransition", i, t);
650
+ }
651
+ function ue(i) {
652
+ let {
653
+ swiper: t,
654
+ runCallbacks: e,
655
+ direction: s,
656
+ step: n
166
657
  } = i;
167
- let S, _, x, C, P, m, O, g;
168
- o.includes("thumbs") && e.thumbs && e.thumbs.swiper && !e.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (S = !0), o.includes("controller") && e.controller && e.controller.control && l.controller && !l.controller.control && (_ = !0), o.includes("pagination") && e.pagination && (e.pagination.el || c) && (l.pagination || l.pagination === !1) && p && !p.el && (x = !0), o.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || d) && (l.scrollbar || l.scrollbar === !1) && v && !v.el && (C = !0), o.includes("navigation") && e.navigation && (e.navigation.prevEl || a) && (e.navigation.nextEl || s) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (P = !0);
169
- const T = (n) => {
170
- i[n] && (i[n].destroy(), n === "navigation" ? (i.isElement && (i[n].prevEl.remove(), i[n].nextEl.remove()), l[n].prevEl = void 0, l[n].nextEl = void 0, i[n].prevEl = void 0, i[n].nextEl = void 0) : (i.isElement && i[n].el.remove(), l[n].el = void 0, i[n].el = void 0));
658
+ const {
659
+ activeIndex: r,
660
+ previousIndex: l
661
+ } = t;
662
+ let o = s;
663
+ if (o || (r > l ? o = "next" : r < l ? o = "prev" : o = "reset"), t.emit(`transition${n}`), e && r !== l) {
664
+ if (o === "reset") {
665
+ t.emit(`slideResetTransition${n}`);
666
+ return;
667
+ }
668
+ t.emit(`slideChangeTransition${n}`), o === "next" ? t.emit(`slideNextTransition${n}`) : t.emit(`slidePrevTransition${n}`);
669
+ }
670
+ }
671
+ function qe(i, t) {
672
+ i === void 0 && (i = !0);
673
+ const e = this, {
674
+ params: s
675
+ } = e;
676
+ s.cssMode || (s.autoHeight && e.updateAutoHeight(), ue({
677
+ swiper: e,
678
+ runCallbacks: i,
679
+ direction: t,
680
+ step: "Start"
681
+ }));
682
+ }
683
+ function Ue(i, t) {
684
+ i === void 0 && (i = !0);
685
+ const e = this, {
686
+ params: s
687
+ } = e;
688
+ e.animating = !1, !s.cssMode && (e.setTransition(0), ue({
689
+ swiper: e,
690
+ runCallbacks: i,
691
+ direction: t,
692
+ step: "End"
693
+ }));
694
+ }
695
+ var Ke = {
696
+ setTransition: je,
697
+ transitionStart: qe,
698
+ transitionEnd: Ue
699
+ };
700
+ function Je(i, t, e, s, n) {
701
+ i === void 0 && (i = 0), e === void 0 && (e = !0), typeof i == "string" && (i = parseInt(i, 10));
702
+ const r = this;
703
+ let l = i;
704
+ l < 0 && (l = 0);
705
+ const {
706
+ params: o,
707
+ snapGrid: a,
708
+ slidesGrid: d,
709
+ previousIndex: c,
710
+ activeIndex: f,
711
+ rtlTranslate: p,
712
+ wrapperEl: u,
713
+ enabled: h
714
+ } = r;
715
+ if (!h && !s && !n || r.destroyed || r.animating && o.preventInteractionOnTransition)
716
+ return !1;
717
+ typeof t > "u" && (t = r.params.speed);
718
+ const m = Math.min(r.params.slidesPerGroupSkip, l);
719
+ let x = m + Math.floor((l - m) / r.params.slidesPerGroup);
720
+ x >= a.length && (x = a.length - 1);
721
+ const g = -a[x];
722
+ if (o.normalizeSlideIndex)
723
+ for (let v = 0; v < d.length; v += 1) {
724
+ const M = -Math.floor(g * 100), z = Math.floor(d[v] * 100), I = Math.floor(d[v + 1] * 100);
725
+ typeof d[v + 1] < "u" ? M >= z && M < I - (I - z) / 2 ? l = v : M >= z && M < I && (l = v + 1) : M >= z && (l = v);
726
+ }
727
+ if (r.initialized && l !== f && (!r.allowSlideNext && (p ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (f || 0) !== l))
728
+ return !1;
729
+ l !== (c || 0) && e && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
730
+ let b;
731
+ l > f ? b = "next" : l < f ? b = "prev" : b = "reset";
732
+ const w = r.virtual && r.params.virtual.enabled;
733
+ if (!(w && n) && (p && -g === r.translate || !p && g === r.translate))
734
+ return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(g), b !== "reset" && (r.transitionStart(e, b), r.transitionEnd(e, b)), !1;
735
+ if (o.cssMode) {
736
+ const v = r.isHorizontal(), M = p ? g : -g;
737
+ if (t === 0)
738
+ w && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), w && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
739
+ u[v ? "scrollLeft" : "scrollTop"] = M;
740
+ })) : u[v ? "scrollLeft" : "scrollTop"] = M, w && requestAnimationFrame(() => {
741
+ r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
742
+ });
743
+ else {
744
+ if (!r.support.smoothScroll)
745
+ return de({
746
+ swiper: r,
747
+ targetPosition: M,
748
+ side: v ? "left" : "top"
749
+ }), !0;
750
+ u.scrollTo({
751
+ [v ? "left" : "top"]: M,
752
+ behavior: "smooth"
753
+ });
754
+ }
755
+ return !0;
756
+ }
757
+ return r.setTransition(t), r.setTranslate(g), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(e, b), t === 0 ? r.transitionEnd(e, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(M) {
758
+ !r || r.destroyed || M.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(e, b));
759
+ }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
760
+ }
761
+ function Qe(i, t, e, s) {
762
+ i === void 0 && (i = 0), e === void 0 && (e = !0), typeof i == "string" && (i = parseInt(i, 10));
763
+ const n = this;
764
+ if (n.destroyed) return;
765
+ typeof t > "u" && (t = n.params.speed);
766
+ const r = n.grid && n.params.grid && n.params.grid.rows > 1;
767
+ let l = i;
768
+ if (n.params.loop)
769
+ if (n.virtual && n.params.virtual.enabled)
770
+ l = l + n.virtual.slidesBefore;
771
+ else {
772
+ let o;
773
+ if (r) {
774
+ const p = l * n.params.grid.rows;
775
+ o = n.slides.filter((u) => u.getAttribute("data-swiper-slide-index") * 1 === p)[0].column;
776
+ } else
777
+ o = n.getSlideIndexByData(l);
778
+ const a = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
779
+ centeredSlides: d
780
+ } = n.params;
781
+ let c = n.params.slidesPerView;
782
+ c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
783
+ let f = a - o < c;
784
+ if (d && (f = f || o < Math.ceil(c / 2)), s && d && n.params.slidesPerView !== "auto" && !r && (f = !1), f) {
785
+ const p = d ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
786
+ n.loopFix({
787
+ direction: p,
788
+ slideTo: !0,
789
+ activeSlideIndex: p === "next" ? o + 1 : o - a + 1,
790
+ slideRealIndex: p === "next" ? n.realIndex : void 0
791
+ });
792
+ }
793
+ if (r) {
794
+ const p = l * n.params.grid.rows;
795
+ l = n.slides.filter((u) => u.getAttribute("data-swiper-slide-index") * 1 === p)[0].column;
796
+ } else
797
+ l = n.getSlideIndexByData(l);
798
+ }
799
+ return requestAnimationFrame(() => {
800
+ n.slideTo(l, t, e, s);
801
+ }), n;
802
+ }
803
+ function Ze(i, t, e) {
804
+ t === void 0 && (t = !0);
805
+ const s = this, {
806
+ enabled: n,
807
+ params: r,
808
+ animating: l
809
+ } = s;
810
+ if (!n || s.destroyed) return s;
811
+ typeof i > "u" && (i = s.params.speed);
812
+ let o = r.slidesPerGroup;
813
+ r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", !0), 1));
814
+ const a = s.activeIndex < r.slidesPerGroupSkip ? 1 : o, d = s.virtual && r.virtual.enabled;
815
+ if (r.loop) {
816
+ if (l && !d && r.loopPreventsSliding) return !1;
817
+ if (s.loopFix({
818
+ direction: "next"
819
+ }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
820
+ return requestAnimationFrame(() => {
821
+ s.slideTo(s.activeIndex + a, i, t, e);
822
+ }), !0;
823
+ }
824
+ return r.rewind && s.isEnd ? s.slideTo(0, i, t, e) : s.slideTo(s.activeIndex + a, i, t, e);
825
+ }
826
+ function et(i, t, e) {
827
+ t === void 0 && (t = !0);
828
+ const s = this, {
829
+ params: n,
830
+ snapGrid: r,
831
+ slidesGrid: l,
832
+ rtlTranslate: o,
833
+ enabled: a,
834
+ animating: d
835
+ } = s;
836
+ if (!a || s.destroyed) return s;
837
+ typeof i > "u" && (i = s.params.speed);
838
+ const c = s.virtual && n.virtual.enabled;
839
+ if (n.loop) {
840
+ if (d && !c && n.loopPreventsSliding) return !1;
841
+ s.loopFix({
842
+ direction: "prev"
843
+ }), s._clientLeft = s.wrapperEl.clientLeft;
844
+ }
845
+ const f = o ? s.translate : -s.translate;
846
+ function p(g) {
847
+ return g < 0 ? -Math.floor(Math.abs(g)) : Math.floor(g);
848
+ }
849
+ const u = p(f), h = r.map((g) => p(g));
850
+ let m = r[h.indexOf(u) - 1];
851
+ if (typeof m > "u" && n.cssMode) {
852
+ let g;
853
+ r.forEach((b, w) => {
854
+ u >= b && (g = w);
855
+ }), typeof g < "u" && (m = r[g > 0 ? g - 1 : g]);
856
+ }
857
+ let x = 0;
858
+ if (typeof m < "u" && (x = l.indexOf(m), x < 0 && (x = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (x = x - s.slidesPerViewDynamic("previous", !0) + 1, x = Math.max(x, 0))), n.rewind && s.isBeginning) {
859
+ const g = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
860
+ return s.slideTo(g, i, t, e);
861
+ } else if (n.loop && s.activeIndex === 0 && n.cssMode)
862
+ return requestAnimationFrame(() => {
863
+ s.slideTo(x, i, t, e);
864
+ }), !0;
865
+ return s.slideTo(x, i, t, e);
866
+ }
867
+ function tt(i, t, e) {
868
+ t === void 0 && (t = !0);
869
+ const s = this;
870
+ if (!s.destroyed)
871
+ return typeof i > "u" && (i = s.params.speed), s.slideTo(s.activeIndex, i, t, e);
872
+ }
873
+ function it(i, t, e, s) {
874
+ t === void 0 && (t = !0), s === void 0 && (s = 0.5);
875
+ const n = this;
876
+ if (n.destroyed) return;
877
+ typeof i > "u" && (i = n.params.speed);
878
+ let r = n.activeIndex;
879
+ const l = Math.min(n.params.slidesPerGroupSkip, r), o = l + Math.floor((r - l) / n.params.slidesPerGroup), a = n.rtlTranslate ? n.translate : -n.translate;
880
+ if (a >= n.snapGrid[o]) {
881
+ const d = n.snapGrid[o], c = n.snapGrid[o + 1];
882
+ a - d > (c - d) * s && (r += n.params.slidesPerGroup);
883
+ } else {
884
+ const d = n.snapGrid[o - 1], c = n.snapGrid[o];
885
+ a - d <= (c - d) * s && (r -= n.params.slidesPerGroup);
886
+ }
887
+ return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, i, t, e);
888
+ }
889
+ function st() {
890
+ const i = this;
891
+ if (i.destroyed) return;
892
+ const {
893
+ params: t,
894
+ slidesEl: e
895
+ } = i, s = t.slidesPerView === "auto" ? i.slidesPerViewDynamic() : t.slidesPerView;
896
+ let n = i.clickedIndex, r;
897
+ const l = i.isElement ? "swiper-slide" : `.${t.slideClass}`;
898
+ if (t.loop) {
899
+ if (i.animating) return;
900
+ r = parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? n < i.loopedSlides - s / 2 || n > i.slides.length - i.loopedSlides + s / 2 ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
901
+ i.slideTo(n);
902
+ })) : i.slideTo(n) : n > i.slides.length - s ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
903
+ i.slideTo(n);
904
+ })) : i.slideTo(n);
905
+ } else
906
+ i.slideTo(n);
907
+ }
908
+ var rt = {
909
+ slideTo: Je,
910
+ slideToLoop: Qe,
911
+ slideNext: Ze,
912
+ slidePrev: et,
913
+ slideReset: tt,
914
+ slideToClosest: it,
915
+ slideToClickedSlide: st
916
+ };
917
+ function nt(i) {
918
+ const t = this, {
919
+ params: e,
920
+ slidesEl: s
921
+ } = t;
922
+ if (!e.loop || t.virtual && t.params.virtual.enabled) return;
923
+ const n = () => {
924
+ G(s, `.${e.slideClass}, swiper-slide`).forEach((f, p) => {
925
+ f.setAttribute("data-swiper-slide-index", p);
926
+ });
927
+ }, r = t.grid && e.grid && e.grid.rows > 1, l = e.slidesPerGroup * (r ? e.grid.rows : 1), o = t.slides.length % l !== 0, a = r && t.slides.length % e.grid.rows !== 0, d = (c) => {
928
+ for (let f = 0; f < c; f += 1) {
929
+ const p = t.isElement ? J("swiper-slide", [e.slideBlankClass]) : J("div", [e.slideClass, e.slideBlankClass]);
930
+ t.slidesEl.append(p);
931
+ }
932
+ };
933
+ if (o) {
934
+ if (e.loopAddBlankSlides) {
935
+ const c = l - t.slides.length % l;
936
+ d(c), t.recalcSlides(), t.updateSlides();
937
+ } else
938
+ R("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
939
+ n();
940
+ } else if (a) {
941
+ if (e.loopAddBlankSlides) {
942
+ const c = e.grid.rows - t.slides.length % e.grid.rows;
943
+ d(c), t.recalcSlides(), t.updateSlides();
944
+ } else
945
+ R("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
946
+ n();
947
+ } else
948
+ n();
949
+ t.loopFix({
950
+ slideRealIndex: i,
951
+ direction: e.centeredSlides ? void 0 : "next"
952
+ });
953
+ }
954
+ function at(i) {
955
+ let {
956
+ slideRealIndex: t,
957
+ slideTo: e = !0,
958
+ direction: s,
959
+ setTranslate: n,
960
+ activeSlideIndex: r,
961
+ byController: l,
962
+ byMousewheel: o
963
+ } = i === void 0 ? {} : i;
964
+ const a = this;
965
+ if (!a.params.loop) return;
966
+ a.emit("beforeLoopFix");
967
+ const {
968
+ slides: d,
969
+ allowSlidePrev: c,
970
+ allowSlideNext: f,
971
+ slidesEl: p,
972
+ params: u
973
+ } = a, {
974
+ centeredSlides: h
975
+ } = u;
976
+ if (a.allowSlidePrev = !0, a.allowSlideNext = !0, a.virtual && u.virtual.enabled) {
977
+ e && (!u.centeredSlides && a.snapIndex === 0 ? a.slideTo(a.virtual.slides.length, 0, !1, !0) : u.centeredSlides && a.snapIndex < u.slidesPerView ? a.slideTo(a.virtual.slides.length + a.snapIndex, 0, !1, !0) : a.snapIndex === a.snapGrid.length - 1 && a.slideTo(a.virtual.slidesBefore, 0, !1, !0)), a.allowSlidePrev = c, a.allowSlideNext = f, a.emit("loopFix");
978
+ return;
979
+ }
980
+ let m = u.slidesPerView;
981
+ m === "auto" ? m = a.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(u.slidesPerView, 10)), h && m % 2 === 0 && (m = m + 1));
982
+ const x = u.slidesPerGroupAuto ? m : u.slidesPerGroup;
983
+ let g = x;
984
+ g % x !== 0 && (g += x - g % x), g += u.loopAdditionalSlides, a.loopedSlides = g;
985
+ const b = a.grid && u.grid && u.grid.rows > 1;
986
+ d.length < m + g ? R("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : b && u.grid.fill === "row" && R("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
987
+ const w = [], E = [];
988
+ let v = a.activeIndex;
989
+ typeof r > "u" ? r = a.getSlideIndex(d.filter((T) => T.classList.contains(u.slideActiveClass))[0]) : v = r;
990
+ const M = s === "next" || !s, z = s === "prev" || !s;
991
+ let I = 0, B = 0;
992
+ const S = b ? Math.ceil(d.length / u.grid.rows) : d.length, P = (b ? d[r].column : r) + (h && typeof n > "u" ? -m / 2 + 0.5 : 0);
993
+ if (P < g) {
994
+ I = Math.max(g - P, x);
995
+ for (let T = 0; T < g - P; T += 1) {
996
+ const C = T - Math.floor(T / S) * S;
997
+ if (b) {
998
+ const L = S - C - 1;
999
+ for (let k = d.length - 1; k >= 0; k -= 1)
1000
+ d[k].column === L && w.push(k);
1001
+ } else
1002
+ w.push(S - C - 1);
1003
+ }
1004
+ } else if (P + m > S - g) {
1005
+ B = Math.max(P - (S - g * 2), x);
1006
+ for (let T = 0; T < B; T += 1) {
1007
+ const C = T - Math.floor(T / S) * S;
1008
+ b ? d.forEach((L, k) => {
1009
+ L.column === C && E.push(k);
1010
+ }) : E.push(C);
1011
+ }
1012
+ }
1013
+ if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
1014
+ a.__preventObserver__ = !1;
1015
+ }), z && w.forEach((T) => {
1016
+ d[T].swiperLoopMoveDOM = !0, p.prepend(d[T]), d[T].swiperLoopMoveDOM = !1;
1017
+ }), M && E.forEach((T) => {
1018
+ d[T].swiperLoopMoveDOM = !0, p.append(d[T]), d[T].swiperLoopMoveDOM = !1;
1019
+ }), a.recalcSlides(), u.slidesPerView === "auto" ? a.updateSlides() : b && (w.length > 0 && z || E.length > 0 && M) && a.slides.forEach((T, C) => {
1020
+ a.grid.updateSlide(C, T, a.slides);
1021
+ }), u.watchSlidesProgress && a.updateSlidesOffset(), e) {
1022
+ if (w.length > 0 && z) {
1023
+ if (typeof t > "u") {
1024
+ const T = a.slidesGrid[v], L = a.slidesGrid[v + I] - T;
1025
+ o ? a.setTranslate(a.translate - L) : (a.slideTo(v + Math.ceil(I), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1026
+ } else if (n) {
1027
+ const T = b ? w.length / u.grid.rows : w.length;
1028
+ a.slideTo(a.activeIndex + T, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
1029
+ }
1030
+ } else if (E.length > 0 && M)
1031
+ if (typeof t > "u") {
1032
+ const T = a.slidesGrid[v], L = a.slidesGrid[v - B] - T;
1033
+ o ? a.setTranslate(a.translate - L) : (a.slideTo(v - B, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1034
+ } else {
1035
+ const T = b ? E.length / u.grid.rows : E.length;
1036
+ a.slideTo(a.activeIndex - T, 0, !1, !0);
1037
+ }
1038
+ }
1039
+ if (a.allowSlidePrev = c, a.allowSlideNext = f, a.controller && a.controller.control && !l) {
1040
+ const T = {
1041
+ slideRealIndex: t,
1042
+ direction: s,
1043
+ setTranslate: n,
1044
+ activeSlideIndex: r,
1045
+ byController: !0
1046
+ };
1047
+ Array.isArray(a.controller.control) ? a.controller.control.forEach((C) => {
1048
+ !C.destroyed && C.params.loop && C.loopFix({
1049
+ ...T,
1050
+ slideTo: C.params.slidesPerView === u.slidesPerView ? e : !1
1051
+ });
1052
+ }) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
1053
+ ...T,
1054
+ slideTo: a.controller.control.params.slidesPerView === u.slidesPerView ? e : !1
1055
+ });
1056
+ }
1057
+ a.emit("loopFix");
1058
+ }
1059
+ function lt() {
1060
+ const i = this, {
1061
+ params: t,
1062
+ slidesEl: e
1063
+ } = i;
1064
+ if (!t.loop || i.virtual && i.params.virtual.enabled) return;
1065
+ i.recalcSlides();
1066
+ const s = [];
1067
+ i.slides.forEach((n) => {
1068
+ const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1069
+ s[r] = n;
1070
+ }), i.slides.forEach((n) => {
1071
+ n.removeAttribute("data-swiper-slide-index");
1072
+ }), s.forEach((n) => {
1073
+ e.append(n);
1074
+ }), i.recalcSlides(), i.slideTo(i.realIndex, 0);
1075
+ }
1076
+ var ot = {
1077
+ loopCreate: nt,
1078
+ loopFix: at,
1079
+ loopDestroy: lt
1080
+ };
1081
+ function dt(i) {
1082
+ const t = this;
1083
+ if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
1084
+ const e = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
1085
+ t.isElement && (t.__preventObserver__ = !0), e.style.cursor = "move", e.style.cursor = i ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
1086
+ t.__preventObserver__ = !1;
1087
+ });
1088
+ }
1089
+ function ct() {
1090
+ const i = this;
1091
+ i.params.watchOverflow && i.isLocked || i.params.cssMode || (i.isElement && (i.__preventObserver__ = !0), i[i.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", i.isElement && requestAnimationFrame(() => {
1092
+ i.__preventObserver__ = !1;
1093
+ }));
1094
+ }
1095
+ var ft = {
1096
+ setGrabCursor: dt,
1097
+ unsetGrabCursor: ct
1098
+ };
1099
+ function ut(i, t) {
1100
+ t === void 0 && (t = this);
1101
+ function e(s) {
1102
+ if (!s || s === F() || s === D()) return null;
1103
+ s.assignedSlot && (s = s.assignedSlot);
1104
+ const n = s.closest(i);
1105
+ return !n && !s.getRootNode ? null : n || e(s.getRootNode().host);
1106
+ }
1107
+ return e(t);
1108
+ }
1109
+ function ne(i, t, e) {
1110
+ const s = D(), {
1111
+ params: n
1112
+ } = i, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1113
+ return r && (e <= l || e >= s.innerWidth - l) ? r === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
1114
+ }
1115
+ function pt(i) {
1116
+ const t = this, e = F();
1117
+ let s = i;
1118
+ s.originalEvent && (s = s.originalEvent);
1119
+ const n = t.touchEventsData;
1120
+ if (s.type === "pointerdown") {
1121
+ if (n.pointerId !== null && n.pointerId !== s.pointerId)
1122
+ return;
1123
+ n.pointerId = s.pointerId;
1124
+ } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
1125
+ if (s.type === "touchstart") {
1126
+ ne(t, s, s.targetTouches[0].pageX);
1127
+ return;
1128
+ }
1129
+ const {
1130
+ params: r,
1131
+ touches: l,
1132
+ enabled: o
1133
+ } = t;
1134
+ if (!o || !r.simulateTouch && s.pointerType === "mouse" || t.animating && r.preventInteractionOnTransition)
1135
+ return;
1136
+ !t.animating && r.cssMode && r.loop && t.loopFix();
1137
+ let a = s.target;
1138
+ if (r.touchEventsTarget === "wrapper" && !xe(a, t.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1139
+ const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1140
+ d && s.target && s.target.shadowRoot && c && (a = c[0]);
1141
+ const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
1142
+ if (r.noSwiping && (p ? ut(f, a) : a.closest(f))) {
1143
+ t.allowClick = !0;
1144
+ return;
1145
+ }
1146
+ if (r.swipeHandler && !a.closest(r.swipeHandler))
1147
+ return;
1148
+ l.currentX = s.pageX, l.currentY = s.pageY;
1149
+ const u = l.currentX, h = l.currentY;
1150
+ if (!ne(t, s, u))
1151
+ return;
1152
+ Object.assign(n, {
1153
+ isTouched: !0,
1154
+ isMoved: !1,
1155
+ allowTouchCallbacks: !0,
1156
+ isScrolling: void 0,
1157
+ startMoving: void 0
1158
+ }), l.startX = u, l.startY = h, n.touchStartTime = $(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1159
+ let m = !0;
1160
+ a.matches(n.focusableElements) && (m = !1, a.nodeName === "SELECT" && (n.isTouched = !1)), e.activeElement && e.activeElement.matches(n.focusableElements) && e.activeElement !== a && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !a.matches(n.focusableElements)) && e.activeElement.blur();
1161
+ const x = m && t.allowTouchMove && r.touchStartPreventDefault;
1162
+ (r.touchStartForcePreventDefault || x) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && t.freeMode && t.animating && !r.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", s);
1163
+ }
1164
+ function ht(i) {
1165
+ const t = F(), e = this, s = e.touchEventsData, {
1166
+ params: n,
1167
+ touches: r,
1168
+ rtlTranslate: l,
1169
+ enabled: o
1170
+ } = e;
1171
+ if (!o || !n.simulateTouch && i.pointerType === "mouse") return;
1172
+ let a = i;
1173
+ if (a.originalEvent && (a = a.originalEvent), a.type === "pointermove" && (s.touchId !== null || a.pointerId !== s.pointerId))
1174
+ return;
1175
+ let d;
1176
+ if (a.type === "touchmove") {
1177
+ if (d = [...a.changedTouches].filter((v) => v.identifier === s.touchId)[0], !d || d.identifier !== s.touchId) return;
1178
+ } else
1179
+ d = a;
1180
+ if (!s.isTouched) {
1181
+ s.startMoving && s.isScrolling && e.emit("touchMoveOpposite", a);
1182
+ return;
1183
+ }
1184
+ const c = d.pageX, f = d.pageY;
1185
+ if (a.preventedByNestedSwiper) {
1186
+ r.startX = c, r.startY = f;
1187
+ return;
1188
+ }
1189
+ if (!e.allowTouchMove) {
1190
+ a.target.matches(s.focusableElements) || (e.allowClick = !1), s.isTouched && (Object.assign(r, {
1191
+ startX: c,
1192
+ startY: f,
1193
+ currentX: c,
1194
+ currentY: f
1195
+ }), s.touchStartTime = $());
1196
+ return;
1197
+ }
1198
+ if (n.touchReleaseOnEdges && !n.loop) {
1199
+ if (e.isVertical()) {
1200
+ if (f < r.startY && e.translate <= e.maxTranslate() || f > r.startY && e.translate >= e.minTranslate()) {
1201
+ s.isTouched = !1, s.isMoved = !1;
1202
+ return;
1203
+ }
1204
+ } else if (c < r.startX && e.translate <= e.maxTranslate() || c > r.startX && e.translate >= e.minTranslate())
1205
+ return;
1206
+ }
1207
+ if (t.activeElement && t.activeElement.matches(s.focusableElements) && t.activeElement !== a.target && a.pointerType !== "mouse" && t.activeElement.blur(), t.activeElement && a.target === t.activeElement && a.target.matches(s.focusableElements)) {
1208
+ s.isMoved = !0, e.allowClick = !1;
1209
+ return;
1210
+ }
1211
+ s.allowTouchCallbacks && e.emit("touchMove", a), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = f;
1212
+ const p = r.currentX - r.startX, u = r.currentY - r.startY;
1213
+ if (e.params.threshold && Math.sqrt(p ** 2 + u ** 2) < e.params.threshold) return;
1214
+ if (typeof s.isScrolling > "u") {
1215
+ let v;
1216
+ e.isHorizontal() && r.currentY === r.startY || e.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : p * p + u * u >= 25 && (v = Math.atan2(Math.abs(u), Math.abs(p)) * 180 / Math.PI, s.isScrolling = e.isHorizontal() ? v > n.touchAngle : 90 - v > n.touchAngle);
1217
+ }
1218
+ if (s.isScrolling && e.emit("touchMoveOpposite", a), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || a.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1219
+ s.isTouched = !1;
1220
+ return;
1221
+ }
1222
+ if (!s.startMoving)
1223
+ return;
1224
+ e.allowClick = !1, !n.cssMode && a.cancelable && a.preventDefault(), n.touchMoveStopPropagation && !n.nested && a.stopPropagation();
1225
+ let h = e.isHorizontal() ? p : u, m = e.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1226
+ n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), m = Math.abs(m) * (l ? 1 : -1)), r.diff = h, h *= n.touchRatio, l && (h = -h, m = -m);
1227
+ const x = e.touchesDirection;
1228
+ e.swipeDirection = h > 0 ? "prev" : "next", e.touchesDirection = m > 0 ? "prev" : "next";
1229
+ const g = e.params.loop && !n.cssMode, b = e.touchesDirection === "next" && e.allowSlideNext || e.touchesDirection === "prev" && e.allowSlidePrev;
1230
+ if (!s.isMoved) {
1231
+ if (g && b && e.loopFix({
1232
+ direction: e.swipeDirection
1233
+ }), s.startTranslate = e.getTranslate(), e.setTransition(0), e.animating) {
1234
+ const v = new window.CustomEvent("transitionend", {
1235
+ bubbles: !0,
1236
+ cancelable: !0,
1237
+ detail: {
1238
+ bySwiperTouchMove: !0
1239
+ }
1240
+ });
1241
+ e.wrapperEl.dispatchEvent(v);
1242
+ }
1243
+ s.allowMomentumBounce = !1, n.grabCursor && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!0), e.emit("sliderFirstMove", a);
1244
+ }
1245
+ if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && x !== e.touchesDirection && g && b && Math.abs(h) >= 1) {
1246
+ Object.assign(r, {
1247
+ startX: c,
1248
+ startY: f,
1249
+ currentX: c,
1250
+ currentY: f,
1251
+ startTranslate: s.currentTranslate
1252
+ }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1253
+ return;
1254
+ }
1255
+ e.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = h + s.startTranslate;
1256
+ let w = !0, E = n.resistanceRatio;
1257
+ if (n.touchReleaseOnEdges && (E = 0), h > 0 ? (g && b && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? e.minTranslate() - e.slidesSizesGrid[e.activeIndex + 1] - (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.activeIndex + 1] + e.params.spaceBetween : 0) - e.params.spaceBetween : e.minTranslate()) && e.loopFix({
1258
+ direction: "prev",
1259
+ setTranslate: !0,
1260
+ activeSlideIndex: 0
1261
+ }), s.currentTranslate > e.minTranslate() && (w = !1, n.resistance && (s.currentTranslate = e.minTranslate() - 1 + (-e.minTranslate() + s.startTranslate + h) ** E))) : h < 0 && (g && b && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? e.maxTranslate() + e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween + (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween : 0) : e.maxTranslate()) && e.loopFix({
1262
+ direction: "next",
1263
+ setTranslate: !0,
1264
+ activeSlideIndex: e.slides.length - (n.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1265
+ }), s.currentTranslate < e.maxTranslate() && (w = !1, n.resistance && (s.currentTranslate = e.maxTranslate() + 1 - (e.maxTranslate() - s.startTranslate - h) ** E))), w && (a.preventedByNestedSwiper = !0), !e.allowSlideNext && e.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && e.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && !e.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1266
+ if (Math.abs(h) > n.threshold || s.allowThresholdMove) {
1267
+ if (!s.allowThresholdMove) {
1268
+ s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = e.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1269
+ return;
1270
+ }
1271
+ } else {
1272
+ s.currentTranslate = s.startTranslate;
1273
+ return;
1274
+ }
1275
+ !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && e.freeMode || n.watchSlidesProgress) && (e.updateActiveIndex(), e.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && e.freeMode && e.freeMode.onTouchMove(), e.updateProgress(s.currentTranslate), e.setTranslate(s.currentTranslate));
1276
+ }
1277
+ function mt(i) {
1278
+ const t = this, e = t.touchEventsData;
1279
+ let s = i;
1280
+ s.originalEvent && (s = s.originalEvent);
1281
+ let n;
1282
+ if (s.type === "touchend" || s.type === "touchcancel") {
1283
+ if (n = [...s.changedTouches].filter((v) => v.identifier === e.touchId)[0], !n || n.identifier !== e.touchId) return;
1284
+ } else {
1285
+ if (e.touchId !== null || s.pointerId !== e.pointerId) return;
1286
+ n = s;
1287
+ }
1288
+ if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (t.browser.isSafari || t.browser.isWebView)))
1289
+ return;
1290
+ e.pointerId = null, e.touchId = null;
1291
+ const {
1292
+ params: l,
1293
+ touches: o,
1294
+ rtlTranslate: a,
1295
+ slidesGrid: d,
1296
+ enabled: c
1297
+ } = t;
1298
+ if (!c || !l.simulateTouch && s.pointerType === "mouse") return;
1299
+ if (e.allowTouchCallbacks && t.emit("touchEnd", s), e.allowTouchCallbacks = !1, !e.isTouched) {
1300
+ e.isMoved && l.grabCursor && t.setGrabCursor(!1), e.isMoved = !1, e.startMoving = !1;
1301
+ return;
1302
+ }
1303
+ l.grabCursor && e.isMoved && e.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
1304
+ const f = $(), p = f - e.touchStartTime;
1305
+ if (t.allowClick) {
1306
+ const v = s.path || s.composedPath && s.composedPath();
1307
+ t.updateClickedSlide(v && v[0] || s.target, v), t.emit("tap click", s), p < 300 && f - e.lastClickTime < 300 && t.emit("doubleTap doubleClick", s);
1308
+ }
1309
+ if (e.lastClickTime = $(), K(() => {
1310
+ t.destroyed || (t.allowClick = !0);
1311
+ }), !e.isTouched || !e.isMoved || !t.swipeDirection || o.diff === 0 && !e.loopSwapReset || e.currentTranslate === e.startTranslate && !e.loopSwapReset) {
1312
+ e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
1313
+ return;
1314
+ }
1315
+ e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
1316
+ let u;
1317
+ if (l.followFinger ? u = a ? t.translate : -t.translate : u = -e.currentTranslate, l.cssMode)
1318
+ return;
1319
+ if (l.freeMode && l.freeMode.enabled) {
1320
+ t.freeMode.onTouchEnd({
1321
+ currentPos: u
1322
+ });
1323
+ return;
1324
+ }
1325
+ const h = u >= -t.maxTranslate() && !t.params.loop;
1326
+ let m = 0, x = t.slidesSizesGrid[0];
1327
+ for (let v = 0; v < d.length; v += v < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1328
+ const M = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1329
+ typeof d[v + M] < "u" ? (h || u >= d[v] && u < d[v + M]) && (m = v, x = d[v + M] - d[v]) : (h || u >= d[v]) && (m = v, x = d[d.length - 1] - d[d.length - 2]);
1330
+ }
1331
+ let g = null, b = null;
1332
+ l.rewind && (t.isBeginning ? b = l.virtual && l.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (g = 0));
1333
+ const w = (u - d[m]) / x, E = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1334
+ if (p > l.longSwipesMs) {
1335
+ if (!l.longSwipes) {
1336
+ t.slideTo(t.activeIndex);
1337
+ return;
1338
+ }
1339
+ t.swipeDirection === "next" && (w >= l.longSwipesRatio ? t.slideTo(l.rewind && t.isEnd ? g : m + E) : t.slideTo(m)), t.swipeDirection === "prev" && (w > 1 - l.longSwipesRatio ? t.slideTo(m + E) : b !== null && w < 0 && Math.abs(w) > l.longSwipesRatio ? t.slideTo(b) : t.slideTo(m));
1340
+ } else {
1341
+ if (!l.shortSwipes) {
1342
+ t.slideTo(t.activeIndex);
1343
+ return;
1344
+ }
1345
+ t.navigation && (s.target === t.navigation.nextEl || s.target === t.navigation.prevEl) ? s.target === t.navigation.nextEl ? t.slideTo(m + E) : t.slideTo(m) : (t.swipeDirection === "next" && t.slideTo(g !== null ? g : m + E), t.swipeDirection === "prev" && t.slideTo(b !== null ? b : m));
1346
+ }
1347
+ }
1348
+ function ae() {
1349
+ const i = this, {
1350
+ params: t,
1351
+ el: e
1352
+ } = i;
1353
+ if (e && e.offsetWidth === 0) return;
1354
+ t.breakpoints && i.setBreakpoint();
1355
+ const {
1356
+ allowSlideNext: s,
1357
+ allowSlidePrev: n,
1358
+ snapGrid: r
1359
+ } = i, l = i.virtual && i.params.virtual.enabled;
1360
+ i.allowSlideNext = !0, i.allowSlidePrev = !0, i.updateSize(), i.updateSlides(), i.updateSlidesClasses();
1361
+ const o = l && t.loop;
1362
+ (t.slidesPerView === "auto" || t.slidesPerView > 1) && i.isEnd && !i.isBeginning && !i.params.centeredSlides && !o ? i.slideTo(i.slides.length - 1, 0, !1, !0) : i.params.loop && !l ? i.slideToLoop(i.realIndex, 0, !1, !0) : i.slideTo(i.activeIndex, 0, !1, !0), i.autoplay && i.autoplay.running && i.autoplay.paused && (clearTimeout(i.autoplay.resizeTimeout), i.autoplay.resizeTimeout = setTimeout(() => {
1363
+ i.autoplay && i.autoplay.running && i.autoplay.paused && i.autoplay.resume();
1364
+ }, 500)), i.allowSlidePrev = n, i.allowSlideNext = s, i.params.watchOverflow && r !== i.snapGrid && i.checkOverflow();
1365
+ }
1366
+ function gt(i) {
1367
+ const t = this;
1368
+ t.enabled && (t.allowClick || (t.params.preventClicks && i.preventDefault(), t.params.preventClicksPropagation && t.animating && (i.stopPropagation(), i.stopImmediatePropagation())));
1369
+ }
1370
+ function vt() {
1371
+ const i = this, {
1372
+ wrapperEl: t,
1373
+ rtlTranslate: e,
1374
+ enabled: s
1375
+ } = i;
1376
+ if (!s) return;
1377
+ i.previousTranslate = i.translate, i.isHorizontal() ? i.translate = -t.scrollLeft : i.translate = -t.scrollTop, i.translate === 0 && (i.translate = 0), i.updateActiveIndex(), i.updateSlidesClasses();
1378
+ let n;
1379
+ const r = i.maxTranslate() - i.minTranslate();
1380
+ r === 0 ? n = 0 : n = (i.translate - i.minTranslate()) / r, n !== i.progress && i.updateProgress(e ? -i.translate : i.translate), i.emit("setTranslate", i.translate, !1);
1381
+ }
1382
+ function wt(i) {
1383
+ const t = this;
1384
+ _(t, i.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update();
1385
+ }
1386
+ function St() {
1387
+ const i = this;
1388
+ i.documentTouchHandlerProceeded || (i.documentTouchHandlerProceeded = !0, i.params.touchReleaseOnEdges && (i.el.style.touchAction = "auto"));
1389
+ }
1390
+ const pe = (i, t) => {
1391
+ const e = F(), {
1392
+ params: s,
1393
+ el: n,
1394
+ wrapperEl: r,
1395
+ device: l
1396
+ } = i, o = !!s.nested, a = t === "on" ? "addEventListener" : "removeEventListener", d = t;
1397
+ !n || typeof n == "string" || (e[a]("touchstart", i.onDocumentTouchStart, {
1398
+ passive: !1,
1399
+ capture: o
1400
+ }), n[a]("touchstart", i.onTouchStart, {
1401
+ passive: !1
1402
+ }), n[a]("pointerdown", i.onTouchStart, {
1403
+ passive: !1
1404
+ }), e[a]("touchmove", i.onTouchMove, {
1405
+ passive: !1,
1406
+ capture: o
1407
+ }), e[a]("pointermove", i.onTouchMove, {
1408
+ passive: !1,
1409
+ capture: o
1410
+ }), e[a]("touchend", i.onTouchEnd, {
1411
+ passive: !0
1412
+ }), e[a]("pointerup", i.onTouchEnd, {
1413
+ passive: !0
1414
+ }), e[a]("pointercancel", i.onTouchEnd, {
1415
+ passive: !0
1416
+ }), e[a]("touchcancel", i.onTouchEnd, {
1417
+ passive: !0
1418
+ }), e[a]("pointerout", i.onTouchEnd, {
1419
+ passive: !0
1420
+ }), e[a]("pointerleave", i.onTouchEnd, {
1421
+ passive: !0
1422
+ }), e[a]("contextmenu", i.onTouchEnd, {
1423
+ passive: !0
1424
+ }), (s.preventClicks || s.preventClicksPropagation) && n[a]("click", i.onClick, !0), s.cssMode && r[a]("scroll", i.onScroll), s.updateOnWindowResize ? i[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", ae, !0) : i[d]("observerUpdate", ae, !0), n[a]("load", i.onLoad, {
1425
+ capture: !0
1426
+ }));
1427
+ };
1428
+ function Tt() {
1429
+ const i = this, {
1430
+ params: t
1431
+ } = i;
1432
+ i.onTouchStart = pt.bind(i), i.onTouchMove = ht.bind(i), i.onTouchEnd = mt.bind(i), i.onDocumentTouchStart = St.bind(i), t.cssMode && (i.onScroll = vt.bind(i)), i.onClick = gt.bind(i), i.onLoad = wt.bind(i), pe(i, "on");
1433
+ }
1434
+ function xt() {
1435
+ pe(this, "off");
1436
+ }
1437
+ var bt = {
1438
+ attachEvents: Tt,
1439
+ detachEvents: xt
1440
+ };
1441
+ const le = (i, t) => i.grid && t.grid && t.grid.rows > 1;
1442
+ function yt() {
1443
+ const i = this, {
1444
+ realIndex: t,
1445
+ initialized: e,
1446
+ params: s,
1447
+ el: n
1448
+ } = i, r = s.breakpoints;
1449
+ if (!r || r && Object.keys(r).length === 0) return;
1450
+ const l = i.getBreakpoint(r, i.params.breakpointsBase, i.el);
1451
+ if (!l || i.currentBreakpoint === l) return;
1452
+ const a = (l in r ? r[l] : void 0) || i.originalParams, d = le(i, s), c = le(i, a), f = i.params.grabCursor, p = a.grabCursor, u = s.enabled;
1453
+ d && !c ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), i.emitContainerClasses()) : !d && c && (n.classList.add(`${s.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), i.emitContainerClasses()), f && !p ? i.unsetGrabCursor() : !f && p && i.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((w) => {
1454
+ if (typeof a[w] > "u") return;
1455
+ const E = s[w] && s[w].enabled, v = a[w] && a[w].enabled;
1456
+ E && !v && i[w].disable(), !E && v && i[w].enable();
1457
+ });
1458
+ const h = a.direction && a.direction !== s.direction, m = s.loop && (a.slidesPerView !== s.slidesPerView || h), x = s.loop;
1459
+ h && e && i.changeDirection(), A(i.params, a);
1460
+ const g = i.params.enabled, b = i.params.loop;
1461
+ Object.assign(i, {
1462
+ allowTouchMove: i.params.allowTouchMove,
1463
+ allowSlideNext: i.params.allowSlideNext,
1464
+ allowSlidePrev: i.params.allowSlidePrev
1465
+ }), u && !g ? i.disable() : !u && g && i.enable(), i.currentBreakpoint = l, i.emit("_beforeBreakpoint", a), e && (m ? (i.loopDestroy(), i.loopCreate(t), i.updateSlides()) : !x && b ? (i.loopCreate(t), i.updateSlides()) : x && !b && i.loopDestroy()), i.emit("breakpoint", a);
1466
+ }
1467
+ function Et(i, t, e) {
1468
+ if (t === void 0 && (t = "window"), !i || t === "container" && !e) return;
1469
+ let s = !1;
1470
+ const n = D(), r = t === "window" ? n.innerHeight : e.clientHeight, l = Object.keys(i).map((o) => {
1471
+ if (typeof o == "string" && o.indexOf("@") === 0) {
1472
+ const a = parseFloat(o.substr(1));
1473
+ return {
1474
+ value: r * a,
1475
+ point: o
1476
+ };
1477
+ }
1478
+ return {
1479
+ value: o,
1480
+ point: o
1481
+ };
1482
+ });
1483
+ l.sort((o, a) => parseInt(o.value, 10) - parseInt(a.value, 10));
1484
+ for (let o = 0; o < l.length; o += 1) {
1485
+ const {
1486
+ point: a,
1487
+ value: d
1488
+ } = l[o];
1489
+ t === "window" ? n.matchMedia(`(min-width: ${d}px)`).matches && (s = a) : d <= e.clientWidth && (s = a);
1490
+ }
1491
+ return s || "max";
1492
+ }
1493
+ var Pt = {
1494
+ setBreakpoint: yt,
1495
+ getBreakpoint: Et
1496
+ };
1497
+ function Mt(i, t) {
1498
+ const e = [];
1499
+ return i.forEach((s) => {
1500
+ typeof s == "object" ? Object.keys(s).forEach((n) => {
1501
+ s[n] && e.push(t + n);
1502
+ }) : typeof s == "string" && e.push(t + s);
1503
+ }), e;
1504
+ }
1505
+ function It() {
1506
+ const i = this, {
1507
+ classNames: t,
1508
+ params: e,
1509
+ rtl: s,
1510
+ el: n,
1511
+ device: r
1512
+ } = i, l = Mt(["initialized", e.direction, {
1513
+ "free-mode": i.params.freeMode && e.freeMode.enabled
1514
+ }, {
1515
+ autoheight: e.autoHeight
1516
+ }, {
1517
+ rtl: s
1518
+ }, {
1519
+ grid: e.grid && e.grid.rows > 1
1520
+ }, {
1521
+ "grid-column": e.grid && e.grid.rows > 1 && e.grid.fill === "column"
1522
+ }, {
1523
+ android: r.android
1524
+ }, {
1525
+ ios: r.ios
1526
+ }, {
1527
+ "css-mode": e.cssMode
1528
+ }, {
1529
+ centered: e.cssMode && e.centeredSlides
1530
+ }, {
1531
+ "watch-progress": e.watchSlidesProgress
1532
+ }], e.containerModifierClass);
1533
+ t.push(...l), n.classList.add(...t), i.emitContainerClasses();
1534
+ }
1535
+ function Ct() {
1536
+ const i = this, {
1537
+ el: t,
1538
+ classNames: e
1539
+ } = i;
1540
+ !t || typeof t == "string" || (t.classList.remove(...e), i.emitContainerClasses());
1541
+ }
1542
+ var Lt = {
1543
+ addClasses: It,
1544
+ removeClasses: Ct
1545
+ };
1546
+ function zt() {
1547
+ const i = this, {
1548
+ isLocked: t,
1549
+ params: e
1550
+ } = i, {
1551
+ slidesOffsetBefore: s
1552
+ } = e;
1553
+ if (s) {
1554
+ const n = i.slides.length - 1, r = i.slidesGrid[n] + i.slidesSizesGrid[n] + s * 2;
1555
+ i.isLocked = i.size > r;
1556
+ } else
1557
+ i.isLocked = i.snapGrid.length === 1;
1558
+ e.allowSlideNext === !0 && (i.allowSlideNext = !i.isLocked), e.allowSlidePrev === !0 && (i.allowSlidePrev = !i.isLocked), t && t !== i.isLocked && (i.isEnd = !1), t !== i.isLocked && i.emit(i.isLocked ? "lock" : "unlock");
1559
+ }
1560
+ var Ot = {
1561
+ checkOverflow: zt
1562
+ }, oe = {
1563
+ init: !0,
1564
+ direction: "horizontal",
1565
+ oneWayMovement: !1,
1566
+ swiperElementNodeName: "SWIPER-CONTAINER",
1567
+ touchEventsTarget: "wrapper",
1568
+ initialSlide: 0,
1569
+ speed: 300,
1570
+ cssMode: !1,
1571
+ updateOnWindowResize: !0,
1572
+ resizeObserver: !0,
1573
+ nested: !1,
1574
+ createElements: !1,
1575
+ eventsPrefix: "swiper",
1576
+ enabled: !0,
1577
+ focusableElements: "input, select, option, textarea, button, video, label",
1578
+ // Overrides
1579
+ width: null,
1580
+ height: null,
1581
+ //
1582
+ preventInteractionOnTransition: !1,
1583
+ // ssr
1584
+ userAgent: null,
1585
+ url: null,
1586
+ // To support iOS's swipe-to-go-back gesture (when being used in-app).
1587
+ edgeSwipeDetection: !1,
1588
+ edgeSwipeThreshold: 20,
1589
+ // Autoheight
1590
+ autoHeight: !1,
1591
+ // Set wrapper width
1592
+ setWrapperSize: !1,
1593
+ // Virtual Translate
1594
+ virtualTranslate: !1,
1595
+ // Effects
1596
+ effect: "slide",
1597
+ // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1598
+ // Breakpoints
1599
+ breakpoints: void 0,
1600
+ breakpointsBase: "window",
1601
+ // Slides grid
1602
+ spaceBetween: 0,
1603
+ slidesPerView: 1,
1604
+ slidesPerGroup: 1,
1605
+ slidesPerGroupSkip: 0,
1606
+ slidesPerGroupAuto: !1,
1607
+ centeredSlides: !1,
1608
+ centeredSlidesBounds: !1,
1609
+ slidesOffsetBefore: 0,
1610
+ // in px
1611
+ slidesOffsetAfter: 0,
1612
+ // in px
1613
+ normalizeSlideIndex: !0,
1614
+ centerInsufficientSlides: !1,
1615
+ // Disable swiper and hide navigation when container not overflow
1616
+ watchOverflow: !0,
1617
+ // Round length
1618
+ roundLengths: !1,
1619
+ // Touches
1620
+ touchRatio: 1,
1621
+ touchAngle: 45,
1622
+ simulateTouch: !0,
1623
+ shortSwipes: !0,
1624
+ longSwipes: !0,
1625
+ longSwipesRatio: 0.5,
1626
+ longSwipesMs: 300,
1627
+ followFinger: !0,
1628
+ allowTouchMove: !0,
1629
+ threshold: 5,
1630
+ touchMoveStopPropagation: !1,
1631
+ touchStartPreventDefault: !0,
1632
+ touchStartForcePreventDefault: !1,
1633
+ touchReleaseOnEdges: !1,
1634
+ // Unique Navigation Elements
1635
+ uniqueNavElements: !0,
1636
+ // Resistance
1637
+ resistance: !0,
1638
+ resistanceRatio: 0.85,
1639
+ // Progress
1640
+ watchSlidesProgress: !1,
1641
+ // Cursor
1642
+ grabCursor: !1,
1643
+ // Clicks
1644
+ preventClicks: !0,
1645
+ preventClicksPropagation: !0,
1646
+ slideToClickedSlide: !1,
1647
+ // loop
1648
+ loop: !1,
1649
+ loopAddBlankSlides: !0,
1650
+ loopAdditionalSlides: 0,
1651
+ loopPreventsSliding: !0,
1652
+ // rewind
1653
+ rewind: !1,
1654
+ // Swiping/no swiping
1655
+ allowSlidePrev: !0,
1656
+ allowSlideNext: !0,
1657
+ swipeHandler: null,
1658
+ // '.swipe-handler',
1659
+ noSwiping: !0,
1660
+ noSwipingClass: "swiper-no-swiping",
1661
+ noSwipingSelector: null,
1662
+ // Passive Listeners
1663
+ passiveListeners: !0,
1664
+ maxBackfaceHiddenSlides: 10,
1665
+ // NS
1666
+ containerModifierClass: "swiper-",
1667
+ // NEW
1668
+ slideClass: "swiper-slide",
1669
+ slideBlankClass: "swiper-slide-blank",
1670
+ slideActiveClass: "swiper-slide-active",
1671
+ slideVisibleClass: "swiper-slide-visible",
1672
+ slideFullyVisibleClass: "swiper-slide-fully-visible",
1673
+ slideNextClass: "swiper-slide-next",
1674
+ slidePrevClass: "swiper-slide-prev",
1675
+ wrapperClass: "swiper-wrapper",
1676
+ lazyPreloaderClass: "swiper-lazy-preloader",
1677
+ lazyPreloadPrevNext: 0,
1678
+ // Callbacks
1679
+ runCallbacksOnInit: !0,
1680
+ // Internals
1681
+ _emitClasses: !1
1682
+ };
1683
+ function At(i, t) {
1684
+ return function(s) {
1685
+ s === void 0 && (s = {});
1686
+ const n = Object.keys(s)[0], r = s[n];
1687
+ if (typeof r != "object" || r === null) {
1688
+ A(t, s);
1689
+ return;
1690
+ }
1691
+ if (i[n] === !0 && (i[n] = {
1692
+ enabled: !0
1693
+ }), n === "navigation" && i[n] && i[n].enabled && !i[n].prevEl && !i[n].nextEl && (i[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && i[n] && i[n].enabled && !i[n].el && (i[n].auto = !0), !(n in i && "enabled" in r)) {
1694
+ A(t, s);
1695
+ return;
1696
+ }
1697
+ typeof i[n] == "object" && !("enabled" in i[n]) && (i[n].enabled = !0), i[n] || (i[n] = {
1698
+ enabled: !1
1699
+ }), A(t, s);
171
1700
  };
172
- o.includes("loop") && i.isElement && (l.loop && !e.loop ? m = !0 : !l.loop && e.loop ? O = !0 : g = !0), h.forEach((n) => {
173
- if (b(l[n]) && b(e[n]))
174
- Object.assign(l[n], e[n]), (n === "navigation" || n === "pagination" || n === "scrollbar") && "enabled" in e[n] && !e[n].enabled && T(n);
1701
+ }
1702
+ const q = {
1703
+ eventsEmitter: Le,
1704
+ update: _e,
1705
+ translate: Xe,
1706
+ transition: Ke,
1707
+ slide: rt,
1708
+ loop: ot,
1709
+ grabCursor: ft,
1710
+ events: bt,
1711
+ breakpoints: Pt,
1712
+ checkOverflow: Ot,
1713
+ classes: Lt
1714
+ }, U = {};
1715
+ class O {
1716
+ constructor() {
1717
+ let t, e;
1718
+ for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
1719
+ n[r] = arguments[r];
1720
+ n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? e = n[0] : [t, e] = n, e || (e = {}), e = A({}, e), t && !e.el && (e.el = t);
1721
+ const l = F();
1722
+ if (e.el && typeof e.el == "string" && l.querySelectorAll(e.el).length > 1) {
1723
+ const c = [];
1724
+ return l.querySelectorAll(e.el).forEach((f) => {
1725
+ const p = A({}, e, {
1726
+ el: f
1727
+ });
1728
+ c.push(new O(p));
1729
+ }), c;
1730
+ }
1731
+ const o = this;
1732
+ o.__swiper__ = !0, o.support = ce(), o.device = fe({
1733
+ userAgent: e.userAgent
1734
+ }), o.browser = Me(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], e.modules && Array.isArray(e.modules) && o.modules.push(...e.modules);
1735
+ const a = {};
1736
+ o.modules.forEach((c) => {
1737
+ c({
1738
+ params: e,
1739
+ swiper: o,
1740
+ extendParams: At(e, a),
1741
+ on: o.on.bind(o),
1742
+ once: o.once.bind(o),
1743
+ off: o.off.bind(o),
1744
+ emit: o.emit.bind(o)
1745
+ });
1746
+ });
1747
+ const d = A({}, oe, a);
1748
+ return o.params = A({}, d, U, e), o.originalParams = A({}, o.params), o.passedParams = A({}, e), o.params && o.params.on && Object.keys(o.params.on).forEach((c) => {
1749
+ o.on(c, o.params.on[c]);
1750
+ }), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
1751
+ enabled: o.params.enabled,
1752
+ el: t,
1753
+ // Classes
1754
+ classNames: [],
1755
+ // Slides
1756
+ slides: [],
1757
+ slidesGrid: [],
1758
+ snapGrid: [],
1759
+ slidesSizesGrid: [],
1760
+ // isDirection
1761
+ isHorizontal() {
1762
+ return o.params.direction === "horizontal";
1763
+ },
1764
+ isVertical() {
1765
+ return o.params.direction === "vertical";
1766
+ },
1767
+ // Indexes
1768
+ activeIndex: 0,
1769
+ realIndex: 0,
1770
+ //
1771
+ isBeginning: !0,
1772
+ isEnd: !1,
1773
+ // Props
1774
+ translate: 0,
1775
+ previousTranslate: 0,
1776
+ progress: 0,
1777
+ velocity: 0,
1778
+ animating: !1,
1779
+ cssOverflowAdjustment() {
1780
+ return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
1781
+ },
1782
+ // Locks
1783
+ allowSlideNext: o.params.allowSlideNext,
1784
+ allowSlidePrev: o.params.allowSlidePrev,
1785
+ // Touch Events
1786
+ touchEventsData: {
1787
+ isTouched: void 0,
1788
+ isMoved: void 0,
1789
+ allowTouchCallbacks: void 0,
1790
+ touchStartTime: void 0,
1791
+ isScrolling: void 0,
1792
+ currentTranslate: void 0,
1793
+ startTranslate: void 0,
1794
+ allowThresholdMove: void 0,
1795
+ // Form elements to match
1796
+ focusableElements: o.params.focusableElements,
1797
+ // Last click time
1798
+ lastClickTime: 0,
1799
+ clickTimeout: void 0,
1800
+ // Velocities
1801
+ velocities: [],
1802
+ allowMomentumBounce: void 0,
1803
+ startMoving: void 0,
1804
+ pointerId: null,
1805
+ touchId: null
1806
+ },
1807
+ // Clicks
1808
+ allowClick: !0,
1809
+ // Touches
1810
+ allowTouchMove: o.params.allowTouchMove,
1811
+ touches: {
1812
+ startX: 0,
1813
+ startY: 0,
1814
+ currentX: 0,
1815
+ currentY: 0,
1816
+ diff: 0
1817
+ },
1818
+ // Images
1819
+ imagesToLoad: [],
1820
+ imagesLoaded: 0
1821
+ }), o.emit("_swiper"), o.params.init && o.init(), o;
1822
+ }
1823
+ getDirectionLabel(t) {
1824
+ return this.isHorizontal() ? t : {
1825
+ width: "height",
1826
+ "margin-top": "margin-left",
1827
+ "margin-bottom ": "margin-right",
1828
+ "margin-left": "margin-top",
1829
+ "margin-right": "margin-bottom",
1830
+ "padding-left": "padding-top",
1831
+ "padding-right": "padding-bottom",
1832
+ marginRight: "marginBottom"
1833
+ }[t];
1834
+ }
1835
+ getSlideIndex(t) {
1836
+ const {
1837
+ slidesEl: e,
1838
+ params: s
1839
+ } = this, n = G(e, `.${s.slideClass}, swiper-slide`), r = se(n[0]);
1840
+ return se(t) - r;
1841
+ }
1842
+ getSlideIndexByData(t) {
1843
+ return this.getSlideIndex(this.slides.filter((e) => e.getAttribute("data-swiper-slide-index") * 1 === t)[0]);
1844
+ }
1845
+ recalcSlides() {
1846
+ const t = this, {
1847
+ slidesEl: e,
1848
+ params: s
1849
+ } = t;
1850
+ t.slides = G(e, `.${s.slideClass}, swiper-slide`);
1851
+ }
1852
+ enable() {
1853
+ const t = this;
1854
+ t.enabled || (t.enabled = !0, t.params.grabCursor && t.setGrabCursor(), t.emit("enable"));
1855
+ }
1856
+ disable() {
1857
+ const t = this;
1858
+ t.enabled && (t.enabled = !1, t.params.grabCursor && t.unsetGrabCursor(), t.emit("disable"));
1859
+ }
1860
+ setProgress(t, e) {
1861
+ const s = this;
1862
+ t = Math.min(Math.max(t, 0), 1);
1863
+ const n = s.minTranslate(), l = (s.maxTranslate() - n) * t + n;
1864
+ s.translateTo(l, typeof e > "u" ? 0 : e), s.updateActiveIndex(), s.updateSlidesClasses();
1865
+ }
1866
+ emitContainerClasses() {
1867
+ const t = this;
1868
+ if (!t.params._emitClasses || !t.el) return;
1869
+ const e = t.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(t.params.containerModifierClass) === 0);
1870
+ t.emit("_containerClasses", e.join(" "));
1871
+ }
1872
+ getSlideClasses(t) {
1873
+ const e = this;
1874
+ return e.destroyed ? "" : t.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(e.params.slideClass) === 0).join(" ");
1875
+ }
1876
+ emitSlidesClasses() {
1877
+ const t = this;
1878
+ if (!t.params._emitClasses || !t.el) return;
1879
+ const e = [];
1880
+ t.slides.forEach((s) => {
1881
+ const n = t.getSlideClasses(s);
1882
+ e.push({
1883
+ slideEl: s,
1884
+ classNames: n
1885
+ }), t.emit("_slideClass", s, n);
1886
+ }), t.emit("_slideClasses", e);
1887
+ }
1888
+ slidesPerViewDynamic(t, e) {
1889
+ t === void 0 && (t = "current"), e === void 0 && (e = !1);
1890
+ const s = this, {
1891
+ params: n,
1892
+ slides: r,
1893
+ slidesGrid: l,
1894
+ slidesSizesGrid: o,
1895
+ size: a,
1896
+ activeIndex: d
1897
+ } = s;
1898
+ let c = 1;
1899
+ if (typeof n.slidesPerView == "number") return n.slidesPerView;
1900
+ if (n.centeredSlides) {
1901
+ let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, p;
1902
+ for (let u = d + 1; u < r.length; u += 1)
1903
+ r[u] && !p && (f += Math.ceil(r[u].swiperSlideSize), c += 1, f > a && (p = !0));
1904
+ for (let u = d - 1; u >= 0; u -= 1)
1905
+ r[u] && !p && (f += r[u].swiperSlideSize, c += 1, f > a && (p = !0));
1906
+ } else if (t === "current")
1907
+ for (let f = d + 1; f < r.length; f += 1)
1908
+ (e ? l[f] + o[f] - l[d] < a : l[f] - l[d] < a) && (c += 1);
1909
+ else
1910
+ for (let f = d - 1; f >= 0; f -= 1)
1911
+ l[d] - l[f] < a && (c += 1);
1912
+ return c;
1913
+ }
1914
+ update() {
1915
+ const t = this;
1916
+ if (!t || t.destroyed) return;
1917
+ const {
1918
+ snapGrid: e,
1919
+ params: s
1920
+ } = t;
1921
+ s.breakpoints && t.setBreakpoint(), [...t.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
1922
+ l.complete && _(t, l);
1923
+ }), t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses();
1924
+ function n() {
1925
+ const l = t.rtlTranslate ? t.translate * -1 : t.translate, o = Math.min(Math.max(l, t.maxTranslate()), t.minTranslate());
1926
+ t.setTranslate(o), t.updateActiveIndex(), t.updateSlidesClasses();
1927
+ }
1928
+ let r;
1929
+ if (s.freeMode && s.freeMode.enabled && !s.cssMode)
1930
+ n(), s.autoHeight && t.updateAutoHeight();
175
1931
  else {
176
- const w = e[n];
177
- (w === !0 || w === !1) && (n === "navigation" || n === "pagination" || n === "scrollbar") ? w === !1 && T(n) : l[n] = e[n];
1932
+ if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && t.isEnd && !s.centeredSlides) {
1933
+ const l = t.virtual && s.virtual.enabled ? t.virtual.slides : t.slides;
1934
+ r = t.slideTo(l.length - 1, 0, !1, !0);
1935
+ } else
1936
+ r = t.slideTo(t.activeIndex, 0, !1, !0);
1937
+ r || n();
178
1938
  }
179
- }), h.includes("controller") && !_ && i.controller && i.controller.control && l.controller && l.controller.control && (i.controller.control = l.controller.control), o.includes("children") && r && u && l.virtual.enabled ? (u.slides = r, u.update(!0)) : o.includes("virtual") && u && l.virtual.enabled && (r && (u.slides = r), u.update(!0)), o.includes("children") && r && l.loop && (g = !0), S && E.init() && E.update(!0), _ && (i.controller.control = l.controller.control), x && (i.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), i.el.appendChild(c)), c && (l.pagination.el = c), p.init(), p.render(), p.update()), C && (i.isElement && (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-scrollbar"), d.part.add("scrollbar"), i.el.appendChild(d)), d && (l.scrollbar.el = d), v.init(), v.updateSize(), v.setTranslate()), P && (i.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), s.innerHTML = i.hostEl.constructor.nextButtonSvg, s.part.add("button-next"), i.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), a.innerHTML = i.hostEl.constructor.prevButtonSvg, a.part.add("button-prev"), i.el.appendChild(a))), s && (l.navigation.nextEl = s), a && (l.navigation.prevEl = a), f.init(), f.update()), o.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), o.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), o.includes("direction") && i.changeDirection(e.direction, !1), (m || g) && i.loopDestroy(), (O || g) && i.loopCreate(), i.update();
1939
+ s.watchOverflow && e !== t.snapGrid && t.checkOverflow(), t.emit("update");
1940
+ }
1941
+ changeDirection(t, e) {
1942
+ e === void 0 && (e = !0);
1943
+ const s = this, n = s.params.direction;
1944
+ return t || (t = n === "horizontal" ? "vertical" : "horizontal"), t === n || t !== "horizontal" && t !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${t}`), s.emitContainerClasses(), s.params.direction = t, s.slides.forEach((r) => {
1945
+ t === "vertical" ? r.style.width = "" : r.style.height = "";
1946
+ }), s.emit("changeDirection"), e && s.update()), s;
1947
+ }
1948
+ changeLanguageDirection(t) {
1949
+ const e = this;
1950
+ e.rtl && t === "rtl" || !e.rtl && t === "ltr" || (e.rtl = t === "rtl", e.rtlTranslate = e.params.direction === "horizontal" && e.rtl, e.rtl ? (e.el.classList.add(`${e.params.containerModifierClass}rtl`), e.el.dir = "rtl") : (e.el.classList.remove(`${e.params.containerModifierClass}rtl`), e.el.dir = "ltr"), e.update());
1951
+ }
1952
+ mount(t) {
1953
+ const e = this;
1954
+ if (e.mounted) return !0;
1955
+ let s = t || e.params.el;
1956
+ if (typeof s == "string" && (s = document.querySelector(s)), !s)
1957
+ return !1;
1958
+ s.swiper = e, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === e.params.swiperElementNodeName.toUpperCase() && (e.isElement = !0);
1959
+ const n = () => `.${(e.params.wrapperClass || "").trim().split(" ").join(".")}`;
1960
+ let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : G(s, n())[0];
1961
+ return !l && e.params.createElements && (l = J("div", e.params.wrapperClass), s.append(l), G(s, `.${e.params.slideClass}`).forEach((o) => {
1962
+ l.append(o);
1963
+ })), Object.assign(e, {
1964
+ el: s,
1965
+ wrapperEl: l,
1966
+ slidesEl: e.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : l,
1967
+ hostEl: e.isElement ? s.parentNode.host : s,
1968
+ mounted: !0,
1969
+ // RTL
1970
+ rtl: s.dir.toLowerCase() === "rtl" || V(s, "direction") === "rtl",
1971
+ rtlTranslate: e.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || V(s, "direction") === "rtl"),
1972
+ wrongRTL: V(l, "display") === "-webkit-box"
1973
+ }), !0;
1974
+ }
1975
+ init(t) {
1976
+ const e = this;
1977
+ if (e.initialized || e.mount(t) === !1) return e;
1978
+ e.emit("beforeInit"), e.params.breakpoints && e.setBreakpoint(), e.addClasses(), e.updateSize(), e.updateSlides(), e.params.watchOverflow && e.checkOverflow(), e.params.grabCursor && e.enabled && e.setGrabCursor(), e.params.loop && e.virtual && e.params.virtual.enabled ? e.slideTo(e.params.initialSlide + e.virtual.slidesBefore, 0, e.params.runCallbacksOnInit, !1, !0) : e.slideTo(e.params.initialSlide, 0, e.params.runCallbacksOnInit, !1, !0), e.params.loop && e.loopCreate(), e.attachEvents();
1979
+ const n = [...e.el.querySelectorAll('[loading="lazy"]')];
1980
+ return e.isElement && n.push(...e.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
1981
+ r.complete ? _(e, r) : r.addEventListener("load", (l) => {
1982
+ _(e, l.target);
1983
+ });
1984
+ }), Q(e), e.initialized = !0, Q(e), e.emit("init"), e.emit("afterInit"), e;
1985
+ }
1986
+ destroy(t, e) {
1987
+ t === void 0 && (t = !0), e === void 0 && (e = !0);
1988
+ const s = this, {
1989
+ params: n,
1990
+ el: r,
1991
+ wrapperEl: l,
1992
+ slides: o
1993
+ } = s;
1994
+ return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), n.loop && s.loopDestroy(), e && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), l && l.removeAttribute("style"), o && o.length && o.forEach((a) => {
1995
+ a.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
1996
+ })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((a) => {
1997
+ s.off(a);
1998
+ }), t !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), Te(s)), s.destroyed = !0), null;
1999
+ }
2000
+ static extendDefaults(t) {
2001
+ A(U, t);
2002
+ }
2003
+ static get extendedDefaults() {
2004
+ return U;
2005
+ }
2006
+ static get defaults() {
2007
+ return oe;
2008
+ }
2009
+ static installModule(t) {
2010
+ O.prototype.__modules__ || (O.prototype.__modules__ = []);
2011
+ const e = O.prototype.__modules__;
2012
+ typeof t == "function" && e.indexOf(t) < 0 && e.push(t);
2013
+ }
2014
+ static use(t) {
2015
+ return Array.isArray(t) ? (t.forEach((e) => O.installModule(e)), O) : (O.installModule(t), O);
2016
+ }
180
2017
  }
2018
+ Object.keys(q).forEach((i) => {
2019
+ Object.keys(q[i]).forEach((t) => {
2020
+ O.prototype[t] = q[i][t];
2021
+ });
2022
+ });
2023
+ O.use([Ie, Ce]);
181
2024
  export {
182
- B as a,
183
- I as b,
184
- L as d,
185
- j as e,
186
- b as i,
187
- M as n,
188
- z as p,
189
- A as u,
190
- N as w
2025
+ O as S,
2026
+ oe as d
191
2027
  };