C端蜂鸟地图
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

1568 行
125 KiB

  1. /**
  2. * Swiper 3.4.2
  3. * Most modern mobile touch slider and framework with hardware accelerated transitions
  4. *
  5. * http://www.idangero.us/swiper/
  6. *
  7. * Copyright 2017, Vladimir Kharlampidi
  8. * The iDangero.us
  9. * http://www.idangero.us/
  10. *
  11. * Licensed under MIT
  12. *
  13. * Released on: March 10, 2017
  14. */
  15. ! function () {
  16. "use strict";
  17. var e, a = function (t, s) {
  18. function r(e) {
  19. return Math.floor(e)
  20. }
  21. function i() {
  22. var e = x.params.autoplay,
  23. a = x.slides.eq(x.activeIndex);
  24. a.attr("data-swiper-autoplay") && (e = a.attr("data-swiper-autoplay") || x.params.autoplay), x.autoplayTimeoutId = setTimeout(function () {
  25. x.params.loop ? (x.fixLoop(), x._slideNext(), x.emit("onAutoplay", x)) : x.isEnd ? s.autoplayStopOnLast ? x.stopAutoplay() : (x._slideTo(0), x.emit("onAutoplay", x)) : (x._slideNext(), x.emit("onAutoplay", x))
  26. }, e)
  27. }
  28. function n(a, t) {
  29. var s = e(a.target);
  30. if (!s.is(t))
  31. if ("string" == typeof t) s = s.parents(t);
  32. else if (t.nodeType) {
  33. var r;
  34. return s.parents().each(function (e, a) {
  35. a === t && (r = t)
  36. }), r ? t : void 0
  37. }
  38. if (0 !== s.length) return s[0]
  39. }
  40. function o(e, a) {
  41. a = a || {};
  42. var t = window.MutationObserver || window.WebkitMutationObserver,
  43. s = new t(function (e) {
  44. e.forEach(function (e) {
  45. x.onResize(!0), x.emit("onObserverUpdate", x, e)
  46. })
  47. });
  48. s.observe(e, {
  49. attributes: void 0 === a.attributes || a.attributes,
  50. childList: void 0 === a.childList || a.childList,
  51. characterData: void 0 === a.characterData || a.characterData
  52. }), x.observers.push(s)
  53. }
  54. function l(e) {
  55. e.originalEvent && (e = e.originalEvent);
  56. var a = e.keyCode || e.charCode;
  57. if (!x.params.allowSwipeToNext && (x.isHorizontal() && 39 === a || !x.isHorizontal() && 40 === a)) return !1;
  58. if (!x.params.allowSwipeToPrev && (x.isHorizontal() && 37 === a || !x.isHorizontal() && 38 === a)) return !1;
  59. if (!(e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase()))) {
  60. if (37 === a || 39 === a || 38 === a || 40 === a) {
  61. var t = !1;
  62. if (x.container.parents("." + x.params.slideClass).length > 0 && 0 === x.container.parents("." + x.params.slideActiveClass).length) return;
  63. var s = {
  64. left: window.pageXOffset,
  65. top: window.pageYOffset
  66. },
  67. r = window.innerWidth,
  68. i = window.innerHeight,
  69. n = x.container.offset();
  70. x.rtl && (n.left = n.left - x.container[0].scrollLeft);
  71. for (var o = [
  72. [n.left, n.top],
  73. [n.left + x.width, n.top],
  74. [n.left, n.top + x.height],
  75. [n.left + x.width, n.top + x.height]
  76. ], l = 0; l < o.length; l++) {
  77. var p = o[l];
  78. p[0] >= s.left && p[0] <= s.left + r && p[1] >= s.top && p[1] <= s.top + i && (t = !0)
  79. }
  80. if (!t) return
  81. }
  82. x.isHorizontal() ? (37 !== a && 39 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), (39 === a && !x.rtl || 37 === a && x.rtl) && x.slideNext(), (37 === a && !x.rtl || 39 === a && x.rtl) && x.slidePrev()) : (38 !== a && 40 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), 40 === a && x.slideNext(), 38 === a && x.slidePrev()), x.emit("onKeyPress", x, a)
  83. }
  84. }
  85. function p(e) {
  86. var a = 0,
  87. t = 0,
  88. s = 0,
  89. r = 0;
  90. return "detail" in e && (t = e.detail), "wheelDelta" in e && (t = -e.wheelDelta / 120), "wheelDeltaY" in e && (t = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (a = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (a = t, t = 0), s = 10 * a, r = 10 * t, "deltaY" in e && (r = e.deltaY), "deltaX" in e && (s = e.deltaX), (s || r) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, r *= 40) : (s *= 800, r *= 800)), s && !a && (a = s < 1 ? -1 : 1), r && !t && (t = r < 1 ? -1 : 1), {
  91. spinX: a,
  92. spinY: t,
  93. pixelX: s,
  94. pixelY: r
  95. }
  96. }
  97. function d(e) {
  98. e.originalEvent && (e = e.originalEvent);
  99. var a = 0,
  100. t = x.rtl ? -1 : 1,
  101. s = p(e);
  102. if (x.params.mousewheelForceToAxis)
  103. if (x.isHorizontal()) {
  104. if (!(Math.abs(s.pixelX) > Math.abs(s.pixelY))) return;
  105. a = s.pixelX * t
  106. } else {
  107. if (!(Math.abs(s.pixelY) > Math.abs(s.pixelX))) return;
  108. a = s.pixelY
  109. }
  110. else a = Math.abs(s.pixelX) > Math.abs(s.pixelY) ? -s.pixelX * t : -s.pixelY;
  111. if (0 !== a) {
  112. if (x.params.mousewheelInvert && (a = -a), x.params.freeMode) {
  113. var r = x.getWrapperTranslate() + a * x.params.mousewheelSensitivity,
  114. i = x.isBeginning,
  115. n = x.isEnd;
  116. if (r >= x.minTranslate() && (r = x.minTranslate()), r <= x.maxTranslate() && (r = x.maxTranslate()), x.setWrapperTransition(0), x.setWrapperTranslate(r), x.updateProgress(), x.updateActiveIndex(), (!i && x.isBeginning || !n && x.isEnd) && x.updateClasses(), x.params.freeModeSticky ? (clearTimeout(x.mousewheel.timeout), x.mousewheel.timeout = setTimeout(function () {
  117. x.slideReset()
  118. }, 300)) : x.params.lazyLoading && x.lazy && x.lazy.load(), x.emit("onScroll", x, e), x.params.autoplay && x.params.autoplayDisableOnInteraction && x.stopAutoplay(), 0 === r || r === x.maxTranslate()) return
  119. } else {
  120. if ((new window.Date).getTime() - x.mousewheel.lastScrollTime > 60)
  121. if (a < 0)
  122. if (x.isEnd && !x.params.loop || x.animating) {
  123. if (x.params.mousewheelReleaseOnEdges) return !0
  124. } else x.slideNext(), x.emit("onScroll", x, e);
  125. else if (x.isBeginning && !x.params.loop || x.animating) {
  126. if (x.params.mousewheelReleaseOnEdges) return !0
  127. } else x.slidePrev(), x.emit("onScroll", x, e);
  128. x.mousewheel.lastScrollTime = (new window.Date).getTime()
  129. }
  130. return e.preventDefault ? e.preventDefault() : e.returnValue = !1, !1
  131. }
  132. }
  133. function m(a, t) {
  134. a = e(a);
  135. var s, r, i, n = x.rtl ? -1 : 1;
  136. s = a.attr("data-swiper-parallax") || "0", r = a.attr("data-swiper-parallax-x"), i = a.attr("data-swiper-parallax-y"), r || i ? (r = r || "0", i = i || "0") : x.isHorizontal() ? (r = s, i = "0") : (i = s, r = "0"), r = r.indexOf("%") >= 0 ? parseInt(r, 10) * t * n + "%" : r * t * n + "px", i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t + "%" : i * t + "px", a.transform("translate3d(" + r + ", " + i + ",0px)")
  137. }
  138. function u(e) {
  139. return 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), e
  140. }
  141. if (!(this instanceof a)) return new a(t, s);
  142. var c = {
  143. direction: "horizontal",
  144. touchEventsTarget: "container",
  145. initialSlide: 0,
  146. speed: 300,
  147. autoplay: !1,
  148. autoplayDisableOnInteraction: !0,
  149. autoplayStopOnLast: !1,
  150. iOSEdgeSwipeDetection: !1,
  151. iOSEdgeSwipeThreshold: 20,
  152. freeMode: !1,
  153. freeModeMomentum: !0,
  154. freeModeMomentumRatio: 1,
  155. freeModeMomentumBounce: !0,
  156. freeModeMomentumBounceRatio: 1,
  157. freeModeMomentumVelocityRatio: 1,
  158. freeModeSticky: !1,
  159. freeModeMinimumVelocity: .02,
  160. autoHeight: !1,
  161. setWrapperSize: !1,
  162. virtualTranslate: !1,
  163. effect: "slide",
  164. coverflow: {
  165. rotate: 50,
  166. stretch: 0,
  167. depth: 100,
  168. modifier: 1,
  169. slideShadows: !0
  170. },
  171. flip: {
  172. slideShadows: !0,
  173. limitRotation: !0
  174. },
  175. cube: {
  176. slideShadows: !0,
  177. shadow: !0,
  178. shadowOffset: 20,
  179. shadowScale: .94
  180. },
  181. fade: {
  182. crossFade: !1
  183. },
  184. parallax: !1,
  185. zoom: !1,
  186. zoomMax: 3,
  187. zoomMin: 1,
  188. zoomToggle: !0,
  189. scrollbar: null,
  190. scrollbarHide: !0,
  191. scrollbarDraggable: !1,
  192. scrollbarSnapOnRelease: !1,
  193. keyboardControl: !1,
  194. mousewheelControl: !1,
  195. mousewheelReleaseOnEdges: !1,
  196. mousewheelInvert: !1,
  197. mousewheelForceToAxis: !1,
  198. mousewheelSensitivity: 1,
  199. mousewheelEventsTarged: "container",
  200. hashnav: !1,
  201. hashnavWatchState: !1,
  202. history: !1,
  203. replaceState: !1,
  204. breakpoints: void 0,
  205. spaceBetween: 0,
  206. slidesPerView: 1,
  207. slidesPerColumn: 1,
  208. slidesPerColumnFill: "column",
  209. slidesPerGroup: 1,
  210. centeredSlides: !1,
  211. slidesOffsetBefore: 0,
  212. slidesOffsetAfter: 0,
  213. roundLengths: !1,
  214. touchRatio: 1,
  215. touchAngle: 45,
  216. simulateTouch: !0,
  217. shortSwipes: !0,
  218. longSwipes: !0,
  219. longSwipesRatio: .5,
  220. longSwipesMs: 300,
  221. followFinger: !0,
  222. onlyExternal: !1,
  223. threshold: 0,
  224. touchMoveStopPropagation: !0,
  225. touchReleaseOnEdges: !1,
  226. uniqueNavElements: !0,
  227. pagination: null,
  228. paginationElement: "span",
  229. paginationClickable: !1,
  230. paginationHide: !1,
  231. paginationBulletRender: null,
  232. paginationProgressRender: null,
  233. paginationFractionRender: null,
  234. paginationCustomRender: null,
  235. paginationType: "bullets",
  236. resistance: !0,
  237. resistanceRatio: .85,
  238. nextButton: null,
  239. prevButton: null,
  240. watchSlidesProgress: !1,
  241. watchSlidesVisibility: !1,
  242. grabCursor: !1,
  243. preventClicks: !0,
  244. preventClicksPropagation: !0,
  245. slideToClickedSlide: !1,
  246. lazyLoading: !1,
  247. lazyLoadingInPrevNext: !1,
  248. lazyLoadingInPrevNextAmount: 1,
  249. lazyLoadingOnTransitionStart: !1,
  250. preloadImages: !0,
  251. updateOnImagesReady: !0,
  252. loop: !1,
  253. loopAdditionalSlides: 0,
  254. loopedSlides: null,
  255. control: void 0,
  256. controlInverse: !1,
  257. controlBy: "slide",
  258. normalizeSlideIndex: !0,
  259. allowSwipeToPrev: !0,
  260. allowSwipeToNext: !0,
  261. swipeHandler: null,
  262. noSwiping: !0,
  263. noSwipingClass: "swiper-no-swiping",
  264. passiveListeners: !0,
  265. containerModifierClass: "swiper-container-",
  266. slideClass: "swiper-slide",
  267. slideActiveClass: "swiper-slide-active",
  268. slideDuplicateActiveClass: "swiper-slide-duplicate-active",
  269. slideVisibleClass: "swiper-slide-visible",
  270. slideDuplicateClass: "swiper-slide-duplicate",
  271. slideNextClass: "swiper-slide-next",
  272. slideDuplicateNextClass: "swiper-slide-duplicate-next",
  273. slidePrevClass: "swiper-slide-prev",
  274. slideDuplicatePrevClass: "swiper-slide-duplicate-prev",
  275. wrapperClass: "swiper-wrapper",
  276. bulletClass: "swiper-pagination-bullet",
  277. bulletActiveClass: "swiper-pagination-bullet-active",
  278. buttonDisabledClass: "swiper-button-disabled",
  279. paginationCurrentClass: "swiper-pagination-current",
  280. paginationTotalClass: "swiper-pagination-total",
  281. paginationHiddenClass: "swiper-pagination-hidden",
  282. paginationProgressbarClass: "swiper-pagination-progressbar",
  283. paginationClickableClass: "swiper-pagination-clickable",
  284. paginationModifierClass: "swiper-pagination-",
  285. lazyLoadingClass: "swiper-lazy",
  286. lazyStatusLoadingClass: "swiper-lazy-loading",
  287. lazyStatusLoadedClass: "swiper-lazy-loaded",
  288. lazyPreloaderClass: "swiper-lazy-preloader",
  289. notificationClass: "swiper-notification",
  290. preloaderClass: "preloader",
  291. zoomContainerClass: "swiper-zoom-container",
  292. observer: !1,
  293. observeParents: !1,
  294. a11y: !1,
  295. prevSlideMessage: "Previous slide",
  296. nextSlideMessage: "Next slide",
  297. firstSlideMessage: "This is the first slide",
  298. lastSlideMessage: "This is the last slide",
  299. paginationBulletMessage: "Go to slide {{index}}",
  300. runCallbacksOnInit: !0
  301. },
  302. g = s && s.virtualTranslate;
  303. s = s || {};
  304. var h = {};
  305. for (var v in s)
  306. if ("object" != typeof s[v] || null === s[v] || (s[v].nodeType || s[v] === window || s[v] === document || "undefined" != typeof Dom7 && s[v] instanceof Dom7 || "undefined" != typeof jQuery && s[v] instanceof jQuery)) h[v] = s[v];
  307. else {
  308. h[v] = {};
  309. for (var f in s[v]) h[v][f] = s[v][f]
  310. } for (var w in c)
  311. if (void 0 === s[w]) s[w] = c[w];
  312. else if ("object" == typeof s[w])
  313. for (var y in c[w]) void 0 === s[w][y] && (s[w][y] = c[w][y]);
  314. var x = this;
  315. if (x.params = s, x.originalParams = h, x.classNames = [], void 0 !== e && "undefined" != typeof Dom7 && (e = Dom7), (void 0 !== e || (e = "undefined" == typeof Dom7 ? window.Dom7 || window.Zepto || window.jQuery : Dom7)) && (x.$ = e, x.currentBreakpoint = void 0, x.getActiveBreakpoint = function () {
  316. if (!x.params.breakpoints) return !1;
  317. var e, a = !1,
  318. t = [];
  319. for (e in x.params.breakpoints) x.params.breakpoints.hasOwnProperty(e) && t.push(e);
  320. t.sort(function (e, a) {
  321. return parseInt(e, 10) > parseInt(a, 10)
  322. });
  323. for (var s = 0; s < t.length; s++)(e = t[s]) >= window.innerWidth && !a && (a = e);
  324. return a || "max"
  325. }, x.setBreakpoint = function () {
  326. var e = x.getActiveBreakpoint();
  327. if (e && x.currentBreakpoint !== e) {
  328. var a = e in x.params.breakpoints ? x.params.breakpoints[e] : x.originalParams,
  329. t = x.params.loop && a.slidesPerView !== x.params.slidesPerView;
  330. for (var s in a) x.params[s] = a[s];
  331. x.currentBreakpoint = e, t && x.destroyLoop && x.reLoop(!0)
  332. }
  333. }, x.params.breakpoints && x.setBreakpoint(), x.container = e(t), 0 !== x.container.length)) {
  334. if (x.container.length > 1) {
  335. var T = [];
  336. return x.container.each(function () {
  337. T.push(new a(this, s))
  338. }), T
  339. }
  340. x.container[0].swiper = x, x.container.data("swiper", x), x.classNames.push(x.params.containerModifierClass + x.params.direction), x.params.freeMode && x.classNames.push(x.params.containerModifierClass + "free-mode"), x.support.flexbox || (x.classNames.push(x.params.containerModifierClass + "no-flexbox"), x.params.slidesPerColumn = 1), x.params.autoHeight && x.classNames.push(x.params.containerModifierClass + "autoheight"), (x.params.parallax || x.params.watchSlidesVisibility) && (x.params.watchSlidesProgress = !0), x.params.touchReleaseOnEdges && (x.params.resistanceRatio = 0), ["cube", "coverflow", "flip"].indexOf(x.params.effect) >= 0 && (x.support.transforms3d ? (x.params.watchSlidesProgress = !0, x.classNames.push(x.params.containerModifierClass + "3d")) : x.params.effect = "slide"), "slide" !== x.params.effect && x.classNames.push(x.params.containerModifierClass + x.params.effect), "cube" === x.params.effect && (x.params.resistanceRatio = 0, x.params.slidesPerView = 1, x.params.slidesPerColumn = 1, x.params.slidesPerGroup = 1, x.params.centeredSlides = !1, x.params.spaceBetween = 0, x.params.virtualTranslate = !0), "fade" !== x.params.effect && "flip" !== x.params.effect || (x.params.slidesPerView = 1, x.params.slidesPerColumn = 1, x.params.slidesPerGroup = 1, x.params.watchSlidesProgress = !0, x.params.spaceBetween = 0, void 0 === g && (x.params.virtualTranslate = !0)), x.params.grabCursor && x.support.touch && (x.params.grabCursor = !1), x.wrapper = x.container.children("." + x.params.wrapperClass), x.params.pagination && (x.paginationContainer = e(x.params.pagination), x.params.uniqueNavElements && "string" == typeof x.params.pagination && x.paginationContainer.length > 1 && 1 === x.container.find(x.params.pagination).length && (x.paginationContainer = x.container.find(x.params.pagination)), "bullets" === x.params.paginationType && x.params.paginationClickable ? x.paginationContainer.addClass(x.params.paginationModifierClass + "clickable") : x.params.paginationClickable = !1, x.paginationContainer.addClass(x.params.paginationModifierClass + x.params.paginationType)), (x.params.nextButton || x.params.prevButton) && (x.params.nextButton && (x.nextButton = e(x.params.nextButton), x.params.uniqueNavElements && "string" == typeof x.params.nextButton && x.nextButton.length > 1 && 1 === x.container.find(x.params.nextButton).length && (x.nextButton = x.container.find(x.params.nextButton))), x.params.prevButton && (x.prevButton = e(x.params.prevButton), x.params.uniqueNavElements && "string" == typeof x.params.prevButton && x.prevButton.length > 1 && 1 === x.container.find(x.params.prevButton).length && (x.prevButton = x.container.find(x.params.prevButton)))), x.isHorizontal = function () {
  341. return "horizontal" === x.params.direction
  342. }, x.rtl = x.isHorizontal() && ("rtl" === x.container[0].dir.toLowerCase() || "rtl" === x.container.css("direction")), x.rtl && x.classNames.push(x.params.containerModifierClass + "rtl"), x.rtl && (x.wrongRTL = "-webkit-box" === x.wrapper.css("display")), x.params.slidesPerColumn > 1 && x.classNames.push(x.params.containerModifierClass + "multirow"), x.device.android && x.classNames.push(x.params.containerModifierClass + "android"), x.container.addClass(x.classNames.join(" ")), x.translate = 0, x.progress = 0, x.velocity = 0, x.lockSwipeToNext = function () {
  343. x.params.allowSwipeToNext = !1, x.params.allowSwipeToPrev === !1 && x.params.grabCursor && x.unsetGrabCursor()
  344. }, x.lockSwipeToPrev = function () {
  345. x.params.allowSwipeToPrev = !1, x.params.allowSwipeToNext === !1 && x.params.grabCursor && x.unsetGrabCursor()
  346. }, x.lockSwipes = function () {
  347. x.params.allowSwipeToNext = x.params.allowSwipeToPrev = !1, x.params.grabCursor && x.unsetGrabCursor()
  348. }, x.unlockSwipeToNext = function () {
  349. x.params.allowSwipeToNext = !0, x.params.allowSwipeToPrev === !0 && x.params.grabCursor && x.setGrabCursor()
  350. }, x.unlockSwipeToPrev = function () {
  351. x.params.allowSwipeToPrev = !0, x.params.allowSwipeToNext === !0 && x.params.grabCursor && x.setGrabCursor()
  352. }, x.unlockSwipes = function () {
  353. x.params.allowSwipeToNext = x.params.allowSwipeToPrev = !0, x.params.grabCursor && x.setGrabCursor()
  354. }, x.setGrabCursor = function (e) {
  355. x.container[0].style.cursor = "move", x.container[0].style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", x.container[0].style.cursor = e ? "-moz-grabbin" : "-moz-grab", x.container[0].style.cursor = e ? "grabbing" : "grab"
  356. }, x.unsetGrabCursor = function () {
  357. x.container[0].style.cursor = ""
  358. }, x.params.grabCursor && x.setGrabCursor(), x.imagesToLoad = [], x.imagesLoaded = 0, x.loadImage = function (e, a, t, s, r, i) {
  359. function n() {
  360. i && i()
  361. }
  362. var o;
  363. e.complete && r ? n() : a ? (o = new window.Image, o.onload = n, o.onerror = n, s && (o.sizes = s), t && (o.srcset = t), a && (o.src = a)) : n()
  364. }, x.preloadImages = function () {
  365. function e() {
  366. void 0 !== x && null !== x && x && (void 0 !== x.imagesLoaded && x.imagesLoaded++, x.imagesLoaded === x.imagesToLoad.length && (x.params.updateOnImagesReady && x.update(), x.emit("onImagesReady", x)))
  367. }
  368. x.imagesToLoad = x.container.find("img");
  369. for (var a = 0; a < x.imagesToLoad.length; a++) x.loadImage(x.imagesToLoad[a], x.imagesToLoad[a].currentSrc || x.imagesToLoad[a].getAttribute("src"), x.imagesToLoad[a].srcset || x.imagesToLoad[a].getAttribute("srcset"), x.imagesToLoad[a].sizes || x.imagesToLoad[a].getAttribute("sizes"), !0, e)
  370. }, x.autoplayTimeoutId = void 0, x.autoplaying = !1, x.autoplayPaused = !1, x.startAutoplay = function () {
  371. return void 0 === x.autoplayTimeoutId && (!!x.params.autoplay && (!x.autoplaying && (x.autoplaying = !0, x.emit("onAutoplayStart", x), void i())))
  372. }, x.stopAutoplay = function (e) {
  373. x.autoplayTimeoutId && (x.autoplayTimeoutId && clearTimeout(x.autoplayTimeoutId), x.autoplaying = !1, x.autoplayTimeoutId = void 0, x.emit("onAutoplayStop", x))
  374. }, x.pauseAutoplay = function (e) {
  375. x.autoplayPaused || (x.autoplayTimeoutId && clearTimeout(x.autoplayTimeoutId), x.autoplayPaused = !0, 0 === e ? (x.autoplayPaused = !1, i()) : x.wrapper.transitionEnd(function () {
  376. x && (x.autoplayPaused = !1, x.autoplaying ? i() : x.stopAutoplay())
  377. }))
  378. }, x.minTranslate = function () {
  379. return -x.snapGrid[0]
  380. }, x.maxTranslate = function () {
  381. return -x.snapGrid[x.snapGrid.length - 1]
  382. }, x.updateAutoHeight = function () {
  383. var e, a = [],
  384. t = 0;
  385. if ("auto" !== x.params.slidesPerView && x.params.slidesPerView > 1)
  386. for (e = 0; e < Math.ceil(x.params.slidesPerView); e++) {
  387. var s = x.activeIndex + e;
  388. if (s > x.slides.length) break;
  389. a.push(x.slides.eq(s)[0])
  390. } else a.push(x.slides.eq(x.activeIndex)[0]);
  391. for (e = 0; e < a.length; e++)
  392. if (void 0 !== a[e]) {
  393. var r = a[e].offsetHeight;
  394. t = r > t ? r : t
  395. } t && x.wrapper.css("height", t + "px")
  396. }, x.updateContainerSize = function () {
  397. var e, a;
  398. e = void 0 !== x.params.width ? x.params.width : x.container[0].clientWidth, a = void 0 !== x.params.height ? x.params.height : x.container[0].clientHeight, 0 === e && x.isHorizontal() || 0 === a && !x.isHorizontal() || (e = e - parseInt(x.container.css("padding-left"), 10) - parseInt(x.container.css("padding-right"), 10), a = a - parseInt(x.container.css("padding-top"), 10) - parseInt(x.container.css("padding-bottom"), 10), x.width = e, x.height = a, x.size = x.isHorizontal() ? x.width : x.height)
  399. }, x.updateSlidesSize = function () {
  400. x.slides = x.wrapper.children("." + x.params.slideClass), x.snapGrid = [], x.slidesGrid = [], x.slidesSizesGrid = [];
  401. var e, a = x.params.spaceBetween,
  402. t = -x.params.slidesOffsetBefore,
  403. s = 0,
  404. i = 0;
  405. if (void 0 !== x.size) {
  406. "string" == typeof a && a.indexOf("%") >= 0 && (a = parseFloat(a.replace("%", "")) / 100 * x.size), x.virtualSize = -a, x.rtl ? x.slides.css({
  407. marginLeft: "",
  408. marginTop: ""
  409. }) : x.slides.css({
  410. marginRight: "",
  411. marginBottom: ""
  412. });
  413. var n;
  414. x.params.slidesPerColumn > 1 && (n = Math.floor(x.slides.length / x.params.slidesPerColumn) === x.slides.length / x.params.slidesPerColumn ? x.slides.length : Math.ceil(x.slides.length / x.params.slidesPerColumn) * x.params.slidesPerColumn, "auto" !== x.params.slidesPerView && "row" === x.params.slidesPerColumnFill && (n = Math.max(n, x.params.slidesPerView * x.params.slidesPerColumn)));
  415. var o, l = x.params.slidesPerColumn,
  416. p = n / l,
  417. d = p - (x.params.slidesPerColumn * p - x.slides.length);
  418. for (e = 0; e < x.slides.length; e++) {
  419. o = 0;
  420. var m = x.slides.eq(e);
  421. if (x.params.slidesPerColumn > 1) {
  422. var u, c, g;
  423. "column" === x.params.slidesPerColumnFill ? (c = Math.floor(e / l), g = e - c * l, (c > d || c === d && g === l - 1) && ++g >= l && (g = 0, c++), u = c + g * n / l, m.css({
  424. "-webkit-box-ordinal-group": u,
  425. "-moz-box-ordinal-group": u,
  426. "-ms-flex-order": u,
  427. "-webkit-order": u,
  428. order: u
  429. })) : (g = Math.floor(e / p), c = e - g * p), m.css("margin-" + (x.isHorizontal() ? "top" : "left"), 0 !== g && x.params.spaceBetween && x.params.spaceBetween + "px").attr("data-swiper-column", c).attr("data-swiper-row", g)
  430. }
  431. "none" !== m.css("display") && ("auto" === x.params.slidesPerView ? (o = x.isHorizontal() ? m.outerWidth(!0) : m.outerHeight(!0), x.params.roundLengths && (o = r(o))) : (o = (x.size - (x.params.slidesPerView - 1) * a) / x.params.slidesPerView, x.params.roundLengths && (o = r(o)), x.isHorizontal() ? x.slides[e].style.width = o + "px" : x.slides[e].style.height = o + "px"), x.slides[e].swiperSlideSize = o, x.slidesSizesGrid.push(o), x.params.centeredSlides ? (t = t + o / 2 + s / 2 + a, 0 === s && 0 !== e && (t = t - x.size / 2 - a), 0 === e && (t = t - x.size / 2 - a), Math.abs(t) < .001 && (t = 0), i % x.params.slidesPerGroup == 0 && x.snapGrid.push(t), x.slidesGrid.push(t)) : (i % x.params.slidesPerGroup == 0 && x.snapGrid.push(t), x.slidesGrid.push(t), t = t + o + a), x.virtualSize += o + a, s = o, i++)
  432. }
  433. x.virtualSize = Math.max(x.virtualSize, x.size) + x.params.slidesOffsetAfter;
  434. var h;
  435. if (x.rtl && x.wrongRTL && ("slide" === x.params.effect || "coverflow" === x.params.effect) && x.wrapper.css({
  436. width: x.virtualSize + x.params.spaceBetween + "px"
  437. }), x.support.flexbox && !x.params.setWrapperSize || (x.isHorizontal() ? x.wrapper.css({
  438. width: x.virtualSize + x.params.spaceBetween + "px"
  439. }) : x.wrapper.css({
  440. height: x.virtualSize + x.params.spaceBetween + "px"
  441. })), x.params.slidesPerColumn > 1 && (x.virtualSize = (o + x.params.spaceBetween) * n, x.virtualSize = Math.ceil(x.virtualSize / x.params.slidesPerColumn) - x.params.spaceBetween, x.isHorizontal() ? x.wrapper.css({
  442. width: x.virtualSize + x.params.spaceBetween + "px"
  443. }) : x.wrapper.css({
  444. height: x.virtualSize + x.params.spaceBetween + "px"
  445. }), x.params.centeredSlides)) {
  446. for (h = [], e = 0; e < x.snapGrid.length; e++) x.snapGrid[e] < x.virtualSize + x.snapGrid[0] && h.push(x.snapGrid[e]);
  447. x.snapGrid = h
  448. }
  449. if (!x.params.centeredSlides) {
  450. for (h = [], e = 0; e < x.snapGrid.length; e++) x.snapGrid[e] <= x.virtualSize - x.size && h.push(x.snapGrid[e]);
  451. x.snapGrid = h, Math.floor(x.virtualSize - x.size) - Math.floor(x.snapGrid[x.snapGrid.length - 1]) > 1 && x.snapGrid.push(x.virtualSize - x.size)
  452. }
  453. 0 === x.snapGrid.length && (x.snapGrid = [0]), 0 !== x.params.spaceBetween && (x.isHorizontal() ? x.rtl ? x.slides.css({
  454. marginLeft: a + "px"
  455. }) : x.slides.css({
  456. marginRight: a + "px"
  457. }) : x.slides.css({
  458. marginBottom: a + "px"
  459. })), x.params.watchSlidesProgress && x.updateSlidesOffset()
  460. }
  461. }, x.updateSlidesOffset = function () {
  462. for (var e = 0; e < x.slides.length; e++) x.slides[e].swiperSlideOffset = x.isHorizontal() ? x.slides[e].offsetLeft : x.slides[e].offsetTop
  463. }, x.currentSlidesPerView = function () {
  464. var e, a, t = 1;
  465. if (x.params.centeredSlides) {
  466. var s, r = x.slides[x.activeIndex].swiperSlideSize;
  467. for (e = x.activeIndex + 1; e < x.slides.length; e++) x.slides[e] && !s && (r += x.slides[e].swiperSlideSize, t++, r > x.size && (s = !0));
  468. for (a = x.activeIndex - 1; a >= 0; a--) x.slides[a] && !s && (r += x.slides[a].swiperSlideSize, t++, r > x.size && (s = !0))
  469. } else
  470. for (e = x.activeIndex + 1; e < x.slides.length; e++) x.slidesGrid[e] - x.slidesGrid[x.activeIndex] < x.size && t++;
  471. return t
  472. }, x.updateSlidesProgress = function (e) {
  473. if (void 0 === e && (e = x.translate || 0), 0 !== x.slides.length) {
  474. void 0 === x.slides[0].swiperSlideOffset && x.updateSlidesOffset();
  475. var a = -e;
  476. x.rtl && (a = e), x.slides.removeClass(x.params.slideVisibleClass);
  477. for (var t = 0; t < x.slides.length; t++) {
  478. var s = x.slides[t],
  479. r = (a + (x.params.centeredSlides ? x.minTranslate() : 0) - s.swiperSlideOffset) / (s.swiperSlideSize + x.params.spaceBetween);
  480. if (x.params.watchSlidesVisibility) {
  481. var i = -(a - s.swiperSlideOffset),
  482. n = i + x.slidesSizesGrid[t];
  483. (i >= 0 && i < x.size || n > 0 && n <= x.size || i <= 0 && n >= x.size) && x.slides.eq(t).addClass(x.params.slideVisibleClass)
  484. }
  485. s.progress = x.rtl ? -r : r
  486. }
  487. }
  488. }, x.updateProgress = function (e) {
  489. void 0 === e && (e = x.translate || 0);
  490. var a = x.maxTranslate() - x.minTranslate(),
  491. t = x.isBeginning,
  492. s = x.isEnd;
  493. 0 === a ? (x.progress = 0, x.isBeginning = x.isEnd = !0) : (x.progress = (e - x.minTranslate()) / a, x.isBeginning = x.progress <= 0, x.isEnd = x.progress >= 1), x.isBeginning && !t && x.emit("onReachBeginning", x), x.isEnd && !s && x.emit("onReachEnd", x), x.params.watchSlidesProgress && x.updateSlidesProgress(e), x.emit("onProgress", x, x.progress)
  494. }, x.updateActiveIndex = function () {
  495. var e, a, t, s = x.rtl ? x.translate : -x.translate;
  496. for (a = 0; a < x.slidesGrid.length; a++) void 0 !== x.slidesGrid[a + 1] ? s >= x.slidesGrid[a] && s < x.slidesGrid[a + 1] - (x.slidesGrid[a + 1] - x.slidesGrid[a]) / 2 ? e = a : s >= x.slidesGrid[a] && s < x.slidesGrid[a + 1] && (e = a + 1) : s >= x.slidesGrid[a] && (e = a);
  497. x.params.normalizeSlideIndex && (e < 0 || void 0 === e) && (e = 0), t = Math.floor(e / x.params.slidesPerGroup), t >= x.snapGrid.length && (t = x.snapGrid.length - 1), e !== x.activeIndex && (x.snapIndex = t, x.previousIndex = x.activeIndex, x.activeIndex = e, x.updateClasses(), x.updateRealIndex())
  498. }, x.updateRealIndex = function () {
  499. x.realIndex = parseInt(x.slides.eq(x.activeIndex).attr("data-swiper-slide-index") || x.activeIndex, 10)
  500. }, x.updateClasses = function () {
  501. x.slides.removeClass(x.params.slideActiveClass + " " + x.params.slideNextClass + " " + x.params.slidePrevClass + " " + x.params.slideDuplicateActiveClass + " " + x.params.slideDuplicateNextClass + " " + x.params.slideDuplicatePrevClass);
  502. var a = x.slides.eq(x.activeIndex);
  503. a.addClass(x.params.slideActiveClass), s.loop && (a.hasClass(x.params.slideDuplicateClass) ? x.wrapper.children("." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + x.realIndex + '"]').addClass(x.params.slideDuplicateActiveClass) : x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + x.realIndex + '"]').addClass(x.params.slideDuplicateActiveClass));
  504. var t = a.next("." + x.params.slideClass).addClass(x.params.slideNextClass);
  505. x.params.loop && 0 === t.length && (t = x.slides.eq(0), t.addClass(x.params.slideNextClass));
  506. var r = a.prev("." + x.params.slideClass).addClass(x.params.slidePrevClass);
  507. if (x.params.loop && 0 === r.length && (r = x.slides.eq(-1), r.addClass(x.params.slidePrevClass)), s.loop && (t.hasClass(x.params.slideDuplicateClass) ? x.wrapper.children("." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicateNextClass) : x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicateNextClass), r.hasClass(x.params.slideDuplicateClass) ? x.wrapper.children("." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + r.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicatePrevClass) : x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + r.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicatePrevClass)), x.paginationContainer && x.paginationContainer.length > 0) {
  508. var i, n = x.params.loop ? Math.ceil((x.slides.length - 2 * x.loopedSlides) / x.params.slidesPerGroup) : x.snapGrid.length;
  509. if (x.params.loop ? (i = Math.ceil((x.activeIndex - x.loopedSlides) / x.params.slidesPerGroup), i > x.slides.length - 1 - 2 * x.loopedSlides && (i -= x.slides.length - 2 * x.loopedSlides), i > n - 1 && (i -= n), i < 0 && "bullets" !== x.params.paginationType && (i = n + i)) : i = void 0 !== x.snapIndex ? x.snapIndex : x.activeIndex || 0, "bullets" === x.params.paginationType && x.bullets && x.bullets.length > 0 && (x.bullets.removeClass(x.params.bulletActiveClass), x.paginationContainer.length > 1 ? x.bullets.each(function () {
  510. e(this).index() === i && e(this).addClass(x.params.bulletActiveClass)
  511. }) : x.bullets.eq(i).addClass(x.params.bulletActiveClass)), "fraction" === x.params.paginationType && (x.paginationContainer.find("." + x.params.paginationCurrentClass).text(i + 1), x.paginationContainer.find("." + x.params.paginationTotalClass).text(n)), "progress" === x.params.paginationType) {
  512. var o = (i + 1) / n,
  513. l = o,
  514. p = 1;
  515. x.isHorizontal() || (p = o, l = 1), x.paginationContainer.find("." + x.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX(" + l + ") scaleY(" + p + ")").transition(x.params.speed)
  516. }
  517. "custom" === x.params.paginationType && x.params.paginationCustomRender && (x.paginationContainer.html(x.params.paginationCustomRender(x, i + 1, n)), x.emit("onPaginationRendered", x, x.paginationContainer[0]))
  518. }
  519. x.params.loop || (x.params.prevButton && x.prevButton && x.prevButton.length > 0 && (x.isBeginning ? (x.prevButton.addClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.disable(x.prevButton)) : (x.prevButton.removeClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.enable(x.prevButton))), x.params.nextButton && x.nextButton && x.nextButton.length > 0 && (x.isEnd ? (x.nextButton.addClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.disable(x.nextButton)) : (x.nextButton.removeClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.enable(x.nextButton))))
  520. }, x.updatePagination = function () {
  521. if (x.params.pagination && x.paginationContainer && x.paginationContainer.length > 0) {
  522. var e = "";
  523. if ("bullets" === x.params.paginationType) {
  524. for (var a = x.params.loop ? Math.ceil((x.slides.length - 2 * x.loopedSlides) / x.params.slidesPerGroup) : x.snapGrid.length, t = 0; t < a; t++) e += x.params.paginationBulletRender ? x.params.paginationBulletRender(x, t, x.params.bulletClass) : "<" + x.params.paginationElement + ' class="' + x.params.bulletClass + '"></' + x.params.paginationElement + ">";
  525. x.paginationContainer.html(e), x.bullets = x.paginationContainer.find("." + x.params.bulletClass), x.params.paginationClickable && x.params.a11y && x.a11y && x.a11y.initPagination()
  526. }
  527. "fraction" === x.params.paginationType && (e = x.params.paginationFractionRender ? x.params.paginationFractionRender(x, x.params.paginationCurrentClass, x.params.paginationTotalClass) : '<span class="' + x.params.paginationCurrentClass + '"></span> / <span class="' + x.params.paginationTotalClass + '"></span>', x.paginationContainer.html(e)), "progress" === x.params.paginationType && (e = x.params.paginationProgressRender ? x.params.paginationProgressRender(x, x.params.paginationProgressbarClass) : '<span class="' + x.params.paginationProgressbarClass + '"></span>', x.paginationContainer.html(e)), "custom" !== x.params.paginationType && x.emit("onPaginationRendered", x, x.paginationContainer[0])
  528. }
  529. }, x.update = function (e) {
  530. function a() {
  531. x.rtl, x.translate;
  532. t = Math.min(Math.max(x.translate, x.maxTranslate()), x.minTranslate()), x.setWrapperTranslate(t), x.updateActiveIndex(), x.updateClasses()
  533. }
  534. if (x) {
  535. x.updateContainerSize(), x.updateSlidesSize(), x.updateProgress(), x.updatePagination(), x.updateClasses(), x.params.scrollbar && x.scrollbar && x.scrollbar.set();
  536. var t;
  537. if (e) {
  538. x.controller && x.controller.spline && (x.controller.spline = void 0), x.params.freeMode ? (a(), x.params.autoHeight && x.updateAutoHeight()) : (("auto" === x.params.slidesPerView || x.params.slidesPerView > 1) && x.isEnd && !x.params.centeredSlides ? x.slideTo(x.slides.length - 1, 0, !1, !0) : x.slideTo(x.activeIndex, 0, !1, !0)) || a()
  539. } else x.params.autoHeight && x.updateAutoHeight()
  540. }
  541. }, x.onResize = function (e) {
  542. x.params.onBeforeResize && x.params.onBeforeResize(x), x.params.breakpoints && x.setBreakpoint();
  543. var a = x.params.allowSwipeToPrev,
  544. t = x.params.allowSwipeToNext;
  545. x.params.allowSwipeToPrev = x.params.allowSwipeToNext = !0, x.updateContainerSize(), x.updateSlidesSize(), ("auto" === x.params.slidesPerView || x.params.freeMode || e) && x.updatePagination(), x.params.scrollbar && x.scrollbar && x.scrollbar.set(), x.controller && x.controller.spline && (x.controller.spline = void 0);
  546. var s = !1;
  547. if (x.params.freeMode) {
  548. var r = Math.min(Math.max(x.translate, x.maxTranslate()), x.minTranslate());
  549. x.setWrapperTranslate(r), x.updateActiveIndex(), x.updateClasses(), x.params.autoHeight && x.updateAutoHeight()
  550. } else x.updateClasses(), s = ("auto" === x.params.slidesPerView || x.params.slidesPerView > 1) && x.isEnd && !x.params.centeredSlides ? x.slideTo(x.slides.length - 1, 0, !1, !0) : x.slideTo(x.activeIndex, 0, !1, !0);
  551. x.params.lazyLoading && !s && x.lazy && x.lazy.load(), x.params.allowSwipeToPrev = a, x.params.allowSwipeToNext = t, x.params.onAfterResize && x.params.onAfterResize(x)
  552. }, x.touchEventsDesktop = {
  553. start: "mousedown",
  554. move: "mousemove",
  555. end: "mouseup"
  556. }, window.navigator.pointerEnabled ? x.touchEventsDesktop = {
  557. start: "pointerdown",
  558. move: "pointermove",
  559. end: "pointerup"
  560. } : window.navigator.msPointerEnabled && (x.touchEventsDesktop = {
  561. start: "MSPointerDown",
  562. move: "MSPointerMove",
  563. end: "MSPointerUp"
  564. }), x.touchEvents = {
  565. start: x.support.touch || !x.params.simulateTouch ? "touchstart" : x.touchEventsDesktop.start,
  566. move: x.support.touch || !x.params.simulateTouch ? "touchmove" : x.touchEventsDesktop.move,
  567. end: x.support.touch || !x.params.simulateTouch ? "touchend" : x.touchEventsDesktop.end
  568. }, (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === x.params.touchEventsTarget ? x.container : x.wrapper).addClass("swiper-wp8-" + x.params.direction), x.initEvents = function (e) {
  569. var a = e ? "off" : "on",
  570. t = e ? "removeEventListener" : "addEventListener",
  571. r = "container" === x.params.touchEventsTarget ? x.container[0] : x.wrapper[0],
  572. i = x.support.touch ? r : document,
  573. n = !!x.params.nested;
  574. if (x.browser.ie) r[t](x.touchEvents.start, x.onTouchStart, !1), i[t](x.touchEvents.move, x.onTouchMove, n), i[t](x.touchEvents.end, x.onTouchEnd, !1);
  575. else {
  576. if (x.support.touch) {
  577. var o = !("touchstart" !== x.touchEvents.start || !x.support.passiveListener || !x.params.passiveListeners) && {
  578. passive: !0,
  579. capture: !1
  580. };
  581. r[t](x.touchEvents.start, x.onTouchStart, o), r[t](x.touchEvents.move, x.onTouchMove, n), r[t](x.touchEvents.end, x.onTouchEnd, o)
  582. }(s.simulateTouch && !x.device.ios && !x.device.android || s.simulateTouch && !x.support.touch && x.device.ios) && (r[t]("mousedown", x.onTouchStart, !1), document[t]("mousemove", x.onTouchMove, n), document[t]("mouseup", x.onTouchEnd, !1))
  583. }
  584. window[t]("resize", x.onResize), x.params.nextButton && x.nextButton && x.nextButton.length > 0 && (x.nextButton[a]("click", x.onClickNext), x.params.a11y && x.a11y && x.nextButton[a]("keydown", x.a11y.onEnterKey)), x.params.prevButton && x.prevButton && x.prevButton.length > 0 && (x.prevButton[a]("click", x.onClickPrev), x.params.a11y && x.a11y && x.prevButton[a]("keydown", x.a11y.onEnterKey)), x.params.pagination && x.params.paginationClickable && (x.paginationContainer[a]("click", "." + x.params.bulletClass, x.onClickIndex), x.params.a11y && x.a11y && x.paginationContainer[a]("keydown", "." + x.params.bulletClass, x.a11y.onEnterKey)), (x.params.preventClicks || x.params.preventClicksPropagation) && r[t]("click", x.preventClicks, !0)
  585. }, x.attachEvents = function () {
  586. x.initEvents()
  587. }, x.detachEvents = function () {
  588. x.initEvents(!0)
  589. }, x.allowClick = !0, x.preventClicks = function (e) {
  590. x.allowClick || (x.params.preventClicks && e.preventDefault(), x.params.preventClicksPropagation && x.animating && (e.stopPropagation(), e.stopImmediatePropagation()))
  591. }, x.onClickNext = function (e) {
  592. e.preventDefault(), x.isEnd && !x.params.loop || x.slideNext()
  593. }, x.onClickPrev = function (e) {
  594. e.preventDefault(), x.isBeginning && !x.params.loop || x.slidePrev()
  595. }, x.onClickIndex = function (a) {
  596. a.preventDefault();
  597. var t = e(this).index() * x.params.slidesPerGroup;
  598. x.params.loop && (t += x.loopedSlides), x.slideTo(t)
  599. }, x.updateClickedSlide = function (a) {
  600. var t = n(a, "." + x.params.slideClass),
  601. s = !1;
  602. if (t)
  603. for (var r = 0; r < x.slides.length; r++) x.slides[r] === t && (s = !0);
  604. if (!t || !s) return x.clickedSlide = void 0, void(x.clickedIndex = void 0);
  605. if (x.clickedSlide = t, x.clickedIndex = e(t).index(), x.params.slideToClickedSlide && void 0 !== x.clickedIndex && x.clickedIndex !== x.activeIndex) {
  606. var i, o = x.clickedIndex,
  607. l = "auto" === x.params.slidesPerView ? x.currentSlidesPerView() : x.params.slidesPerView;
  608. if (x.params.loop) {
  609. if (x.animating) return;
  610. i = parseInt(e(x.clickedSlide).attr("data-swiper-slide-index"), 10), x.params.centeredSlides ? o < x.loopedSlides - l / 2 || o > x.slides.length - x.loopedSlides + l / 2 ? (x.fixLoop(), o = x.wrapper.children("." + x.params.slideClass + '[data-swiper-slide-index="' + i + '"]:not(.' + x.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function () {
  611. x.slideTo(o)
  612. }, 0)) : x.slideTo(o) : o > x.slides.length - l ? (x.fixLoop(), o = x.wrapper.children("." + x.params.slideClass + '[data-swiper-slide-index="' + i + '"]:not(.' + x.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function () {
  613. x.slideTo(o)
  614. }, 0)) : x.slideTo(o)
  615. } else x.slideTo(o)
  616. }
  617. };
  618. var b, C, S, z, M, P, E, I, k, D, L = "input, select, textarea, button, video",
  619. B = Date.now(),
  620. H = [];
  621. x.animating = !1, x.touches = {
  622. startX: 0,
  623. startY: 0,
  624. currentX: 0,
  625. currentY: 0,
  626. diff: 0
  627. };
  628. var G, X;
  629. x.onTouchStart = function (a) {
  630. if (a.originalEvent && (a = a.originalEvent), (G = "touchstart" === a.type) || !("which" in a) || 3 !== a.which) {
  631. if (x.params.noSwiping && n(a, "." + x.params.noSwipingClass)) return void(x.allowClick = !0);
  632. if (!x.params.swipeHandler || n(a, x.params.swipeHandler)) {
  633. var t = x.touches.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX,
  634. s = x.touches.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY;
  635. if (!(x.device.ios && x.params.iOSEdgeSwipeDetection && t <= x.params.iOSEdgeSwipeThreshold)) {
  636. if (b = !0, C = !1, S = !0, M = void 0, X = void 0, x.touches.startX = t, x.touches.startY = s, z = Date.now(), x.allowClick = !0, x.updateContainerSize(), x.swipeDirection = void 0, x.params.threshold > 0 && (I = !1), "touchstart" !== a.type) {
  637. var r = !0;
  638. e(a.target).is(L) && (r = !1), document.activeElement && e(document.activeElement).is(L) && document.activeElement.blur(), r && a.preventDefault()
  639. }
  640. x.emit("onTouchStart", x, a)
  641. }
  642. }
  643. }
  644. }, x.onTouchMove = function (a) {
  645. if (a.originalEvent && (a = a.originalEvent), !G || "mousemove" !== a.type) {
  646. if (a.preventedByNestedSwiper) return x.touches.startX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, void(x.touches.startY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY);
  647. if (x.params.onlyExternal) return x.allowClick = !1, void(b && (x.touches.startX = x.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, x.touches.startY = x.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, z = Date.now()));
  648. if (G && x.params.touchReleaseOnEdges && !x.params.loop)
  649. if (x.isHorizontal()) {
  650. if (x.touches.currentX < x.touches.startX && x.translate <= x.maxTranslate() || x.touches.currentX > x.touches.startX && x.translate >= x.minTranslate()) return
  651. } else if (x.touches.currentY < x.touches.startY && x.translate <= x.maxTranslate() || x.touches.currentY > x.touches.startY && x.translate >= x.minTranslate()) return;
  652. if (G && document.activeElement && a.target === document.activeElement && e(a.target).is(L)) return C = !0, void(x.allowClick = !1);
  653. if (S && x.emit("onTouchMove", x, a), !(a.targetTouches && a.targetTouches.length > 1)) {
  654. if (x.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, x.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, void 0 === M) {
  655. var t;
  656. x.isHorizontal() && x.touches.currentY === x.touches.startY || !x.isHorizontal() && x.touches.currentX === x.touches.startX ? M = !1 : (t = 180 * Math.atan2(Math.abs(x.touches.currentY - x.touches.startY), Math.abs(x.touches.currentX - x.touches.startX)) / Math.PI, M = x.isHorizontal() ? t > x.params.touchAngle : 90 - t > x.params.touchAngle)
  657. }
  658. if (M && x.emit("onTouchMoveOpposite", x, a), void 0 === X && (x.touches.currentX === x.touches.startX && x.touches.currentY === x.touches.startY || (X = !0)), b) {
  659. if (M) return void(b = !1);
  660. if (X) {
  661. x.allowClick = !1, x.emit("onSliderMove", x, a), a.preventDefault(), x.params.touchMoveStopPropagation && !x.params.nested && a.stopPropagation(), C || (s.loop && x.fixLoop(), E = x.getWrapperTranslate(), x.setWrapperTransition(0), x.animating && x.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), x.params.autoplay && x.autoplaying && (x.params.autoplayDisableOnInteraction ? x.stopAutoplay() : x.pauseAutoplay()), D = !1, !x.params.grabCursor || x.params.allowSwipeToNext !== !0 && x.params.allowSwipeToPrev !== !0 || x.setGrabCursor(!0)), C = !0;
  662. var r = x.touches.diff = x.isHorizontal() ? x.touches.currentX - x.touches.startX : x.touches.currentY - x.touches.startY;
  663. r *= x.params.touchRatio, x.rtl && (r = -r), x.swipeDirection = r > 0 ? "prev" : "next", P = r + E;
  664. var i = !0;
  665. if (r > 0 && P > x.minTranslate() ? (i = !1, x.params.resistance && (P = x.minTranslate() - 1 + Math.pow(-x.minTranslate() + E + r, x.params.resistanceRatio))) : r < 0 && P < x.maxTranslate() && (i = !1, x.params.resistance && (P = x.maxTranslate() + 1 - Math.pow(x.maxTranslate() - E - r, x.params.resistanceRatio))), i && (a.preventedByNestedSwiper = !0), !x.params.allowSwipeToNext && "next" === x.swipeDirection && P < E && (P = E), !x.params.allowSwipeToPrev && "prev" === x.swipeDirection && P > E && (P = E), x.params.threshold > 0) {
  666. if (!(Math.abs(r) > x.params.threshold || I)) return void(P = E);
  667. if (!I) return I = !0, x.touches.startX = x.touches.currentX, x.touches.startY = x.touches.currentY, P = E, void(x.touches.diff = x.isHorizontal() ? x.touches.currentX - x.touches.startX : x.touches.currentY - x.touches.startY)
  668. }
  669. x.params.followFinger && ((x.params.freeMode || x.params.watchSlidesProgress) && x.updateActiveIndex(), x.params.freeMode && (0 === H.length && H.push({
  670. position: x.touches[x.isHorizontal() ? "startX" : "startY"],
  671. time: z
  672. }), H.push({
  673. position: x.touches[x.isHorizontal() ? "currentX" : "currentY"],
  674. time: (new window.Date).getTime()
  675. })), x.updateProgress(P), x.setWrapperTranslate(P))
  676. }
  677. }
  678. }
  679. }
  680. }, x.onTouchEnd = function (a) {
  681. if (a.originalEvent && (a = a.originalEvent), S && x.emit("onTouchEnd", x, a), S = !1, b) {
  682. x.params.grabCursor && C && b && (x.params.allowSwipeToNext === !0 || x.params.allowSwipeToPrev === !0) && x.setGrabCursor(!1);
  683. var t = Date.now(),
  684. s = t - z;
  685. if (x.allowClick && (x.updateClickedSlide(a), x.emit("onTap", x, a), s < 300 && t - B > 300 && (k && clearTimeout(k), k = setTimeout(function () {
  686. x && (x.params.paginationHide && x.paginationContainer.length > 0 && !e(a.target).hasClass(x.params.bulletClass) && x.paginationContainer.toggleClass(x.params.paginationHiddenClass), x.emit("onClick", x, a))
  687. }, 300)), s < 300 && t - B < 300 && (k && clearTimeout(k), x.emit("onDoubleTap", x, a))), B = Date.now(), setTimeout(function () {
  688. x && (x.allowClick = !0)
  689. }, 0), !b || !C || !x.swipeDirection || 0 === x.touches.diff || P === E) return void(b = C = !1);
  690. b = C = !1;
  691. var r;
  692. if (r = x.params.followFinger ? x.rtl ? x.translate : -x.translate : -P, x.params.freeMode) {
  693. if (r < -x.minTranslate()) return void x.slideTo(x.activeIndex);
  694. if (r > -x.maxTranslate()) return void(x.slides.length < x.snapGrid.length ? x.slideTo(x.snapGrid.length - 1) : x.slideTo(x.slides.length - 1));
  695. if (x.params.freeModeMomentum) {
  696. if (H.length > 1) {
  697. var i = H.pop(),
  698. n = H.pop(),
  699. o = i.position - n.position,
  700. l = i.time - n.time;
  701. x.velocity = o / l, x.velocity = x.velocity / 2, Math.abs(x.velocity) < x.params.freeModeMinimumVelocity && (x.velocity = 0), (l > 150 || (new window.Date).getTime() - i.time > 300) && (x.velocity = 0)
  702. } else x.velocity = 0;
  703. x.velocity = x.velocity * x.params.freeModeMomentumVelocityRatio, H.length = 0;
  704. var p = 1e3 * x.params.freeModeMomentumRatio,
  705. d = x.velocity * p,
  706. m = x.translate + d;
  707. x.rtl && (m = -m);
  708. var u, c = !1,
  709. g = 20 * Math.abs(x.velocity) * x.params.freeModeMomentumBounceRatio;
  710. if (m < x.maxTranslate()) x.params.freeModeMomentumBounce ? (m + x.maxTranslate() < -g && (m = x.maxTranslate() - g), u = x.maxTranslate(), c = !0, D = !0) : m = x.maxTranslate();
  711. else if (m > x.minTranslate()) x.params.freeModeMomentumBounce ? (m - x.minTranslate() > g && (m = x.minTranslate() + g), u = x.minTranslate(), c = !0, D = !0) : m = x.minTranslate();
  712. else if (x.params.freeModeSticky) {
  713. var h, v = 0;
  714. for (v = 0; v < x.snapGrid.length; v += 1)
  715. if (x.snapGrid[v] > -m) {
  716. h = v;
  717. break
  718. } m = Math.abs(x.snapGrid[h] - m) < Math.abs(x.snapGrid[h - 1] - m) || "next" === x.swipeDirection ? x.snapGrid[h] : x.snapGrid[h - 1], x.rtl || (m = -m)
  719. }
  720. if (0 !== x.velocity) p = x.rtl ? Math.abs((-m - x.translate) / x.velocity) : Math.abs((m - x.translate) / x.velocity);
  721. else if (x.params.freeModeSticky) return void x.slideReset();
  722. x.params.freeModeMomentumBounce && c ? (x.updateProgress(u), x.setWrapperTransition(p), x.setWrapperTranslate(m), x.onTransitionStart(), x.animating = !0, x.wrapper.transitionEnd(function () {
  723. x && D && (x.emit("onMomentumBounce", x), x.setWrapperTransition(x.params.speed), x.setWrapperTranslate(u), x.wrapper.transitionEnd(function () {
  724. x && x.onTransitionEnd()
  725. }))
  726. })) : x.velocity ? (x.updateProgress(m), x.setWrapperTransition(p), x.setWrapperTranslate(m), x.onTransitionStart(), x.animating || (x.animating = !0, x.wrapper.transitionEnd(function () {
  727. x && x.onTransitionEnd()
  728. }))) : x.updateProgress(m), x.updateActiveIndex()
  729. }
  730. return void((!x.params.freeModeMomentum || s >= x.params.longSwipesMs) && (x.updateProgress(), x.updateActiveIndex()))
  731. }
  732. var f, w = 0,
  733. y = x.slidesSizesGrid[0];
  734. for (f = 0; f < x.slidesGrid.length; f += x.params.slidesPerGroup) void 0 !== x.slidesGrid[f + x.params.slidesPerGroup] ? r >= x.slidesGrid[f] && r < x.slidesGrid[f + x.params.slidesPerGroup] && (w = f, y = x.slidesGrid[f + x.params.slidesPerGroup] - x.slidesGrid[f]) : r >= x.slidesGrid[f] && (w = f, y = x.slidesGrid[x.slidesGrid.length - 1] - x.slidesGrid[x.slidesGrid.length - 2]);
  735. var T = (r - x.slidesGrid[w]) / y;
  736. if (s > x.params.longSwipesMs) {
  737. if (!x.params.longSwipes) return void x.slideTo(x.activeIndex);
  738. "next" === x.swipeDirection && (T >= x.params.longSwipesRatio ? x.slideTo(w + x.params.slidesPerGroup) : x.slideTo(w)), "prev" === x.swipeDirection && (T > 1 - x.params.longSwipesRatio ? x.slideTo(w + x.params.slidesPerGroup) : x.slideTo(w))
  739. } else {
  740. if (!x.params.shortSwipes) return void x.slideTo(x.activeIndex);
  741. "next" === x.swipeDirection && x.slideTo(w + x.params.slidesPerGroup), "prev" === x.swipeDirection && x.slideTo(w)
  742. }
  743. }
  744. }, x._slideTo = function (e, a) {
  745. return x.slideTo(e, a, !0, !0)
  746. }, x.slideTo = function (e, a, t, s) {
  747. void 0 === t && (t = !0), void 0 === e && (e = 0), e < 0 && (e = 0), x.snapIndex = Math.floor(e / x.params.slidesPerGroup), x.snapIndex >= x.snapGrid.length && (x.snapIndex = x.snapGrid.length - 1);
  748. var r = -x.snapGrid[x.snapIndex];
  749. if (x.params.autoplay && x.autoplaying && (s || !x.params.autoplayDisableOnInteraction ? x.pauseAutoplay(a) : x.stopAutoplay()), x.updateProgress(r), x.params.normalizeSlideIndex)
  750. for (var i = 0; i < x.slidesGrid.length; i++) - Math.floor(100 * r) >= Math.floor(100 * x.slidesGrid[i]) && (e = i);
  751. return !(!x.params.allowSwipeToNext && r < x.translate && r < x.minTranslate()) && (!(!x.params.allowSwipeToPrev && r > x.translate && r > x.maxTranslate() && (x.activeIndex || 0) !== e) && (void 0 === a && (a = x.params.speed), x.previousIndex = x.activeIndex || 0, x.activeIndex = e, x.updateRealIndex(), x.rtl && -r === x.translate || !x.rtl && r === x.translate ? (x.params.autoHeight && x.updateAutoHeight(), x.updateClasses(), "slide" !== x.params.effect && x.setWrapperTranslate(r), !1) : (x.updateClasses(), x.onTransitionStart(t), 0 === a || x.browser.lteIE9 ? (x.setWrapperTranslate(r), x.setWrapperTransition(0), x.onTransitionEnd(t)) : (x.setWrapperTranslate(r), x.setWrapperTransition(a), x.animating || (x.animating = !0, x.wrapper.transitionEnd(function () {
  752. x && x.onTransitionEnd(t)
  753. }))), !0)))
  754. }, x.onTransitionStart = function (e) {
  755. void 0 === e && (e = !0), x.params.autoHeight && x.updateAutoHeight(), x.lazy && x.lazy.onTransitionStart(), e && (x.emit("onTransitionStart", x), x.activeIndex !== x.previousIndex && (x.emit("onSlideChangeStart", x), x.activeIndex > x.previousIndex ? x.emit("onSlideNextStart", x) : x.emit("onSlidePrevStart", x)))
  756. }, x.onTransitionEnd = function (e) {
  757. x.animating = !1, x.setWrapperTransition(0), void 0 === e && (e = !0), x.lazy && x.lazy.onTransitionEnd(), e && (x.emit("onTransitionEnd", x), x.activeIndex !== x.previousIndex && (x.emit("onSlideChangeEnd", x), x.activeIndex > x.previousIndex ? x.emit("onSlideNextEnd", x) : x.emit("onSlidePrevEnd", x))), x.params.history && x.history && x.history.setHistory(x.params.history, x.activeIndex), x.params.hashnav && x.hashnav && x.hashnav.setHash()
  758. }, x.slideNext = function (e, a, t) {
  759. if (x.params.loop) {
  760. if (x.animating) return !1;
  761. x.fixLoop();
  762. x.container[0].clientLeft;
  763. return x.slideTo(x.activeIndex + x.params.slidesPerGroup, a, e, t)
  764. }
  765. return x.slideTo(x.activeIndex + x.params.slidesPerGroup, a, e, t)
  766. }, x._slideNext = function (e) {
  767. return x.slideNext(!0, e, !0)
  768. }, x.slidePrev = function (e, a, t) {
  769. if (x.params.loop) {
  770. if (x.animating) return !1;
  771. x.fixLoop();
  772. x.container[0].clientLeft;
  773. return x.slideTo(x.activeIndex - 1, a, e, t)
  774. }
  775. return x.slideTo(x.activeIndex - 1, a, e, t)
  776. }, x._slidePrev = function (e) {
  777. return x.slidePrev(!0, e, !0)
  778. }, x.slideReset = function (e, a, t) {
  779. return x.slideTo(x.activeIndex, a, e)
  780. }, x.disableTouchControl = function () {
  781. return x.params.onlyExternal = !0, !0
  782. }, x.enableTouchControl = function () {
  783. return x.params.onlyExternal = !1, !0
  784. }, x.setWrapperTransition = function (e, a) {
  785. x.wrapper.transition(e), "slide" !== x.params.effect && x.effects[x.params.effect] && x.effects[x.params.effect].setTransition(e), x.params.parallax && x.parallax && x.parallax.setTransition(e), x.params.scrollbar && x.scrollbar && x.scrollbar.setTransition(e), x.params.control && x.controller && x.controller.setTransition(e, a), x.emit("onSetTransition", x, e)
  786. }, x.setWrapperTranslate = function (e, a, t) {
  787. var s = 0,
  788. i = 0;
  789. x.isHorizontal() ? s = x.rtl ? -e : e : i = e, x.params.roundLengths && (s = r(s), i = r(i)), x.params.virtualTranslate || (x.support.transforms3d ? x.wrapper.transform("translate3d(" + s + "px, " + i + "px, 0px)") : x.wrapper.transform("translate(" + s + "px, " + i + "px)")), x.translate = x.isHorizontal() ? s : i;
  790. var n, o = x.maxTranslate() - x.minTranslate();
  791. n = 0 === o ? 0 : (e - x.minTranslate()) / o, n !== x.progress && x.updateProgress(e), a && x.updateActiveIndex(), "slide" !== x.params.effect && x.effects[x.params.effect] && x.effects[x.params.effect].setTranslate(x.translate), x.params.parallax && x.parallax && x.parallax.setTranslate(x.translate), x.params.scrollbar && x.scrollbar && x.scrollbar.setTranslate(x.translate), x.params.control && x.controller && x.controller.setTranslate(x.translate, t), x.emit("onSetTranslate", x, x.translate)
  792. }, x.getTranslate = function (e, a) {
  793. var t, s, r, i;
  794. return void 0 === a && (a = "x"), x.params.virtualTranslate ? x.rtl ? -x.translate : x.translate : (r = window.getComputedStyle(e, null), window.WebKitCSSMatrix ? (s = r.transform || r.webkitTransform, s.split(",").length > 6 && (s = s.split(", ").map(function (e) {
  795. return e.replace(",", ".")
  796. }).join(", ")), i = new window.WebKitCSSMatrix("none" === s ? "" : s)) : (i = r.MozTransform || r.OTransform || r.MsTransform || r.msTransform || r.transform || r.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), t = i.toString().split(",")), "x" === a && (s = window.WebKitCSSMatrix ? i.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (s = window.WebKitCSSMatrix ? i.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), x.rtl && s && (s = -s), s || 0)
  797. }, x.getWrapperTranslate = function (e) {
  798. return void 0 === e && (e = x.isHorizontal() ? "x" : "y"), x.getTranslate(x.wrapper[0], e)
  799. }, x.observers = [], x.initObservers = function () {
  800. if (x.params.observeParents)
  801. for (var e = x.container.parents(), a = 0; a < e.length; a++) o(e[a]);
  802. o(x.container[0], {
  803. childList: !1
  804. }), o(x.wrapper[0], {
  805. attributes: !1
  806. })
  807. }, x.disconnectObservers = function () {
  808. for (var e = 0; e < x.observers.length; e++) x.observers[e].disconnect();
  809. x.observers = []
  810. }, x.createLoop = function () {
  811. x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass).remove();
  812. var a = x.wrapper.children("." + x.params.slideClass);
  813. "auto" !== x.params.slidesPerView || x.params.loopedSlides || (x.params.loopedSlides = a.length), x.loopedSlides = parseInt(x.params.loopedSlides || x.params.slidesPerView, 10), x.loopedSlides = x.loopedSlides + x.params.loopAdditionalSlides, x.loopedSlides > a.length && (x.loopedSlides = a.length);
  814. var t, s = [],
  815. r = [];
  816. for (a.each(function (t, i) {
  817. var n = e(this);
  818. t < x.loopedSlides && r.push(i), t < a.length && t >= a.length - x.loopedSlides && s.push(i), n.attr("data-swiper-slide-index", t)
  819. }), t = 0; t < r.length; t++) x.wrapper.append(e(r[t].cloneNode(!0)).addClass(x.params.slideDuplicateClass));
  820. for (t = s.length - 1; t >= 0; t--) x.wrapper.prepend(e(s[t].cloneNode(!0)).addClass(x.params.slideDuplicateClass))
  821. }, x.destroyLoop = function () {
  822. x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass).remove(), x.slides.removeAttr("data-swiper-slide-index")
  823. }, x.reLoop = function (e) {
  824. var a = x.activeIndex - x.loopedSlides;
  825. x.destroyLoop(), x.createLoop(), x.updateSlidesSize(), e && x.slideTo(a + x.loopedSlides, 0, !1)
  826. }, x.fixLoop = function () {
  827. var e;
  828. x.activeIndex < x.loopedSlides ? (e = x.slides.length - 3 * x.loopedSlides + x.activeIndex, e += x.loopedSlides, x.slideTo(e, 0, !1, !0)) : ("auto" === x.params.slidesPerView && x.activeIndex >= 2 * x.loopedSlides || x.activeIndex > x.slides.length - 2 * x.params.slidesPerView) && (e = -x.slides.length + x.activeIndex + x.loopedSlides, e += x.loopedSlides, x.slideTo(e, 0, !1, !0))
  829. }, x.appendSlide = function (e) {
  830. if (x.params.loop && x.destroyLoop(), "object" == typeof e && e.length)
  831. for (var a = 0; a < e.length; a++) e[a] && x.wrapper.append(e[a]);
  832. else x.wrapper.append(e);
  833. x.params.loop && x.createLoop(), x.params.observer && x.support.observer || x.update(!0)
  834. }, x.prependSlide = function (e) {
  835. x.params.loop && x.destroyLoop();
  836. var a = x.activeIndex + 1;
  837. if ("object" == typeof e && e.length) {
  838. for (var t = 0; t < e.length; t++) e[t] && x.wrapper.prepend(e[t]);
  839. a = x.activeIndex + e.length
  840. } else x.wrapper.prepend(e);
  841. x.params.loop && x.createLoop(), x.params.observer && x.support.observer || x.update(!0), x.slideTo(a, 0, !1)
  842. }, x.removeSlide = function (e) {
  843. x.params.loop && (x.destroyLoop(), x.slides = x.wrapper.children("." + x.params.slideClass));
  844. var a, t = x.activeIndex;
  845. if ("object" == typeof e && e.length) {
  846. for (var s = 0; s < e.length; s++) a = e[s], x.slides[a] && x.slides.eq(a).remove(), a < t && t--;
  847. t = Math.max(t, 0)
  848. } else a = e, x.slides[a] && x.slides.eq(a).remove(), a < t && t--, t = Math.max(t, 0);
  849. x.params.loop && x.createLoop(), x.params.observer && x.support.observer || x.update(!0), x.params.loop ? x.slideTo(t + x.loopedSlides, 0, !1) : x.slideTo(t, 0, !1)
  850. }, x.removeAllSlides = function () {
  851. for (var e = [], a = 0; a < x.slides.length; a++) e.push(a);
  852. x.removeSlide(e)
  853. }, x.effects = {
  854. fade: {
  855. setTranslate: function () {
  856. for (var e = 0; e < x.slides.length; e++) {
  857. var a = x.slides.eq(e),
  858. t = a[0].swiperSlideOffset,
  859. s = -t;
  860. x.params.virtualTranslate || (s -= x.translate);
  861. var r = 0;
  862. x.isHorizontal() || (r = s, s = 0);
  863. var i = x.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0);
  864. a.css({
  865. opacity: i
  866. }).transform("translate3d(" + s + "px, " + r + "px, 0px)")
  867. }
  868. },
  869. setTransition: function (e) {
  870. if (x.slides.transition(e), x.params.virtualTranslate && 0 !== e) {
  871. var a = !1;
  872. x.slides.transitionEnd(function () {
  873. if (!a && x) {
  874. a = !0, x.animating = !1;
  875. for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], t = 0; t < e.length; t++) x.wrapper.trigger(e[t])
  876. }
  877. })
  878. }
  879. }
  880. },
  881. flip: {
  882. setTranslate: function () {
  883. for (var a = 0; a < x.slides.length; a++) {
  884. var t = x.slides.eq(a),
  885. s = t[0].progress;
  886. x.params.flip.limitRotation && (s = Math.max(Math.min(t[0].progress, 1), -1));
  887. var r = t[0].swiperSlideOffset,
  888. i = -180 * s,
  889. n = i,
  890. o = 0,
  891. l = -r,
  892. p = 0;
  893. if (x.isHorizontal() ? x.rtl && (n = -n) : (p = l, l = 0, o = -n, n = 0), t[0].style.zIndex = -Math.abs(Math.round(s)) + x.slides.length, x.params.flip.slideShadows) {
  894. var d = x.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"),
  895. m = x.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom");
  896. 0 === d.length && (d = e('<div class="swiper-slide-shadow-' + (x.isHorizontal() ? "left" : "top") + '"></div>'), t.append(d)), 0 === m.length && (m = e('<div class="swiper-slide-shadow-' + (x.isHorizontal() ? "right" : "bottom") + '"></div>'), t.append(m)), d.length && (d[0].style.opacity = Math.max(-s, 0)), m.length && (m[0].style.opacity = Math.max(s, 0))
  897. }
  898. t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)")
  899. }
  900. },
  901. setTransition: function (a) {
  902. if (x.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a), x.params.virtualTranslate && 0 !== a) {
  903. var t = !1;
  904. x.slides.eq(x.activeIndex).transitionEnd(function () {
  905. if (!t && x && e(this).hasClass(x.params.slideActiveClass)) {
  906. t = !0, x.animating = !1;
  907. for (var a = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], s = 0; s < a.length; s++) x.wrapper.trigger(a[s])
  908. }
  909. })
  910. }
  911. }
  912. },
  913. cube: {
  914. setTranslate: function () {
  915. var a, t = 0;
  916. x.params.cube.shadow && (x.isHorizontal() ? (a = x.wrapper.find(".swiper-cube-shadow"), 0 === a.length && (a = e('<div class="swiper-cube-shadow"></div>'), x.wrapper.append(a)), a.css({
  917. height: x.width + "px"
  918. })) : (a = x.container.find(".swiper-cube-shadow"), 0 === a.length && (a = e('<div class="swiper-cube-shadow"></div>'), x.container.append(a))));
  919. for (var s = 0; s < x.slides.length; s++) {
  920. var r = x.slides.eq(s),
  921. i = 90 * s,
  922. n = Math.floor(i / 360);
  923. x.rtl && (i = -i, n = Math.floor(-i / 360));
  924. var o = Math.max(Math.min(r[0].progress, 1), -1),
  925. l = 0,
  926. p = 0,
  927. d = 0;
  928. s % 4 == 0 ? (l = 4 * -n * x.size, d = 0) : (s - 1) % 4 == 0 ? (l = 0, d = 4 * -n * x.size) : (s - 2) % 4 == 0 ? (l = x.size + 4 * n * x.size, d = x.size) : (s - 3) % 4 == 0 && (l = -x.size, d = 3 * x.size + 4 * x.size * n), x.rtl && (l = -l), x.isHorizontal() || (p = l, l = 0);
  929. var m = "rotateX(" + (x.isHorizontal() ? 0 : -i) + "deg) rotateY(" + (x.isHorizontal() ? i : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)";
  930. if (o <= 1 && o > -1 && (t = 90 * s + 90 * o, x.rtl && (t = 90 * -s - 90 * o)), r.transform(m), x.params.cube.slideShadows) {
  931. var u = x.isHorizontal() ? r.find(".swiper-slide-shadow-left") : r.find(".swiper-slide-shadow-top"),
  932. c = x.isHorizontal() ? r.find(".swiper-slide-shadow-right") : r.find(".swiper-slide-shadow-bottom");
  933. 0 === u.length && (u = e('<div class="swiper-slide-shadow-' + (x.isHorizontal() ? "left" : "top") + '"></div>'), r.append(u)), 0 === c.length && (c = e('<div class="swiper-slide-shadow-' + (x.isHorizontal() ? "right" : "bottom") + '"></div>'), r.append(c)), u.length && (u[0].style.opacity = Math.max(-o, 0)), c.length && (c[0].style.opacity = Math.max(o, 0))
  934. }
  935. }
  936. if (x.wrapper.css({
  937. "-webkit-transform-origin": "50% 50% -" + x.size / 2 + "px",
  938. "-moz-transform-origin": "50% 50% -" + x.size / 2 + "px",
  939. "-ms-transform-origin": "50% 50% -" + x.size / 2 + "px",
  940. "transform-origin": "50% 50% -" + x.size / 2 + "px"
  941. }), x.params.cube.shadow)
  942. if (x.isHorizontal()) a.transform("translate3d(0px, " + (x.width / 2 + x.params.cube.shadowOffset) + "px, " + -x.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + x.params.cube.shadowScale + ")");
  943. else {
  944. var g = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90),
  945. h = 1.5 - (Math.sin(2 * g * Math.PI / 360) / 2 + Math.cos(2 * g * Math.PI / 360) / 2),
  946. v = x.params.cube.shadowScale,
  947. f = x.params.cube.shadowScale / h,
  948. w = x.params.cube.shadowOffset;
  949. a.transform("scale3d(" + v + ", 1, " + f + ") translate3d(0px, " + (x.height / 2 + w) + "px, " + -x.height / 2 / f + "px) rotateX(-90deg)")
  950. } var y = x.isSafari || x.isUiWebView ? -x.size / 2 : 0;
  951. x.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (x.isHorizontal() ? 0 : t) + "deg) rotateY(" + (x.isHorizontal() ? -t : 0) + "deg)")
  952. },
  953. setTransition: function (e) {
  954. x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), x.params.cube.shadow && !x.isHorizontal() && x.container.find(".swiper-cube-shadow").transition(e)
  955. }
  956. },
  957. coverflow: {
  958. setTranslate: function () {
  959. for (var a = x.translate, t = x.isHorizontal() ? -a + x.width / 2 : -a + x.height / 2, s = x.isHorizontal() ? x.params.coverflow.rotate : -x.params.coverflow.rotate, r = x.params.coverflow.depth, i = 0, n = x.slides.length; i < n; i++) {
  960. var o = x.slides.eq(i),
  961. l = x.slidesSizesGrid[i],
  962. p = o[0].swiperSlideOffset,
  963. d = (t - p - l / 2) / l * x.params.coverflow.modifier,
  964. m = x.isHorizontal() ? s * d : 0,
  965. u = x.isHorizontal() ? 0 : s * d,
  966. c = -r * Math.abs(d),
  967. g = x.isHorizontal() ? 0 : x.params.coverflow.stretch * d,
  968. h = x.isHorizontal() ? x.params.coverflow.stretch * d : 0;
  969. Math.abs(h) < .001 && (h = 0), Math.abs(g) < .001 && (g = 0), Math.abs(c) < .001 && (c = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0);
  970. var v = "translate3d(" + h + "px," + g + "px," + c + "px) rotateX(" + u + "deg) rotateY(" + m + "deg)";
  971. if (o.transform(v), o[0].style.zIndex = 1 - Math.abs(Math.round(d)), x.params.coverflow.slideShadows) {
  972. var f = x.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"),
  973. w = x.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom");
  974. 0 === f.length && (f = e('<div class="swiper-slide-shadow-' + (x.isHorizontal() ? "left" : "top") + '"></div>'), o.append(f)), 0 === w.length && (w = e('<div class="swiper-slide-shadow-' + (x.isHorizontal() ? "right" : "bottom") + '"></div>'), o.append(w)), f.length && (f[0].style.opacity = d > 0 ? d : 0), w.length && (w[0].style.opacity = -d > 0 ? -d : 0)
  975. }
  976. }
  977. if (x.browser.ie) {
  978. x.wrapper[0].style.perspectiveOrigin = t + "px 50%"
  979. }
  980. },
  981. setTransition: function (e) {
  982. x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)
  983. }
  984. }
  985. }, x.lazy = {
  986. initialImageLoaded: !1,
  987. loadImageInSlide: function (a, t) {
  988. if (void 0 !== a && (void 0 === t && (t = !0), 0 !== x.slides.length)) {
  989. var s = x.slides.eq(a),
  990. r = s.find("." + x.params.lazyLoadingClass + ":not(." + x.params.lazyStatusLoadedClass + "):not(." + x.params.lazyStatusLoadingClass + ")");
  991. !s.hasClass(x.params.lazyLoadingClass) || s.hasClass(x.params.lazyStatusLoadedClass) || s.hasClass(x.params.lazyStatusLoadingClass) || (r = r.add(s[0])), 0 !== r.length && r.each(function () {
  992. var a = e(this);
  993. a.addClass(x.params.lazyStatusLoadingClass);
  994. var r = a.attr("data-background"),
  995. i = a.attr("data-src"),
  996. n = a.attr("data-srcset"),
  997. o = a.attr("data-sizes");
  998. x.loadImage(a[0], i || r, n, o, !1, function () {
  999. if (void 0 !== x && null !== x && x) {
  1000. if (r ? (a.css("background-image", 'url("' + r + '")'), a.removeAttr("data-background")) : (n && (a.attr("srcset", n), a.removeAttr("data-srcset")), o && (a.attr("sizes", o), a.removeAttr("data-sizes")), i && (a.attr("src", i), a.removeAttr("data-src"))), a.addClass(x.params.lazyStatusLoadedClass).removeClass(x.params.lazyStatusLoadingClass), s.find("." + x.params.lazyPreloaderClass + ", ." + x.params.preloaderClass).remove(), x.params.loop && t) {
  1001. var e = s.attr("data-swiper-slide-index");
  1002. if (s.hasClass(x.params.slideDuplicateClass)) {
  1003. var l = x.wrapper.children('[data-swiper-slide-index="' + e + '"]:not(.' + x.params.slideDuplicateClass + ")");
  1004. x.lazy.loadImageInSlide(l.index(), !1)
  1005. } else {
  1006. var p = x.wrapper.children("." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]');
  1007. x.lazy.loadImageInSlide(p.index(), !1)
  1008. }
  1009. }
  1010. x.emit("onLazyImageReady", x, s[0], a[0])
  1011. }
  1012. }), x.emit("onLazyImageLoad", x, s[0], a[0])
  1013. })
  1014. }
  1015. },
  1016. load: function () {
  1017. var a, t = x.params.slidesPerView;
  1018. if ("auto" === t && (t = 0), x.lazy.initialImageLoaded || (x.lazy.initialImageLoaded = !0), x.params.watchSlidesVisibility) x.wrapper.children("." + x.params.slideVisibleClass).each(function () {
  1019. x.lazy.loadImageInSlide(e(this).index())
  1020. });
  1021. else if (t > 1)
  1022. for (a = x.activeIndex; a < x.activeIndex + t; a++) x.slides[a] && x.lazy.loadImageInSlide(a);
  1023. else x.lazy.loadImageInSlide(x.activeIndex);
  1024. if (x.params.lazyLoadingInPrevNext)
  1025. if (t > 1 || x.params.lazyLoadingInPrevNextAmount && x.params.lazyLoadingInPrevNextAmount > 1) {
  1026. var s = x.params.lazyLoadingInPrevNextAmount,
  1027. r = t,
  1028. i = Math.min(x.activeIndex + r + Math.max(s, r), x.slides.length),
  1029. n = Math.max(x.activeIndex - Math.max(r, s), 0);
  1030. for (a = x.activeIndex + t; a < i; a++) x.slides[a] && x.lazy.loadImageInSlide(a);
  1031. for (a = n; a < x.activeIndex; a++) x.slides[a] && x.lazy.loadImageInSlide(a)
  1032. } else {
  1033. var o = x.wrapper.children("." + x.params.slideNextClass);
  1034. o.length > 0 && x.lazy.loadImageInSlide(o.index());
  1035. var l = x.wrapper.children("." + x.params.slidePrevClass);
  1036. l.length > 0 && x.lazy.loadImageInSlide(l.index())
  1037. }
  1038. },
  1039. onTransitionStart: function () {
  1040. x.params.lazyLoading && (x.params.lazyLoadingOnTransitionStart || !x.params.lazyLoadingOnTransitionStart && !x.lazy.initialImageLoaded) && x.lazy.load()
  1041. },
  1042. onTransitionEnd: function () {
  1043. x.params.lazyLoading && !x.params.lazyLoadingOnTransitionStart && x.lazy.load()
  1044. }
  1045. }, x.scrollbar = {
  1046. isTouched: !1,
  1047. setDragPosition: function (e) {
  1048. var a = x.scrollbar,
  1049. t = x.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX || e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY || e.clientY,
  1050. s = t - a.track.offset()[x.isHorizontal() ? "left" : "top"] - a.dragSize / 2,
  1051. r = -x.minTranslate() * a.moveDivider,
  1052. i = -x.maxTranslate() * a.moveDivider;
  1053. s < r ? s = r : s > i && (s = i), s = -s / a.moveDivider, x.updateProgress(s), x.setWrapperTranslate(s, !0)
  1054. },
  1055. dragStart: function (e) {
  1056. var a = x.scrollbar;
  1057. a.isTouched = !0, e.preventDefault(), e.stopPropagation(), a.setDragPosition(e), clearTimeout(a.dragTimeout), a.track.transition(0), x.params.scrollbarHide && a.track.css("opacity", 1), x.wrapper.transition(100), a.drag.transition(100), x.emit("onScrollbarDragStart", x)
  1058. },
  1059. dragMove: function (e) {
  1060. var a = x.scrollbar;
  1061. a.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), x.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), x.emit("onScrollbarDragMove", x))
  1062. },
  1063. dragEnd: function (e) {
  1064. var a = x.scrollbar;
  1065. a.isTouched && (a.isTouched = !1, x.params.scrollbarHide && (clearTimeout(a.dragTimeout), a.dragTimeout = setTimeout(function () {
  1066. a.track.css("opacity", 0), a.track.transition(400)
  1067. }, 1e3)), x.emit("onScrollbarDragEnd", x), x.params.scrollbarSnapOnRelease && x.slideReset())
  1068. },
  1069. draggableEvents: function () {
  1070. return x.params.simulateTouch !== !1 || x.support.touch ? x.touchEvents : x.touchEventsDesktop
  1071. }(),
  1072. enableDraggable: function () {
  1073. var a = x.scrollbar,
  1074. t = x.support.touch ? a.track : document;
  1075. e(a.track).on(a.draggableEvents.start, a.dragStart), e(t).on(a.draggableEvents.move, a.dragMove), e(t).on(a.draggableEvents.end, a.dragEnd)
  1076. },
  1077. disableDraggable: function () {
  1078. var a = x.scrollbar,
  1079. t = x.support.touch ? a.track : document;
  1080. e(a.track).off(a.draggableEvents.start, a.dragStart), e(t).off(a.draggableEvents.move, a.dragMove), e(t).off(a.draggableEvents.end, a.dragEnd)
  1081. },
  1082. set: function () {
  1083. if (x.params.scrollbar) {
  1084. var a = x.scrollbar;
  1085. a.track = e(x.params.scrollbar), x.params.uniqueNavElements && "string" == typeof x.params.scrollbar && a.track.length > 1 && 1 === x.container.find(x.params.scrollbar).length && (a.track = x.container.find(x.params.scrollbar)), a.drag = a.track.find(".swiper-scrollbar-drag"), 0 === a.drag.length && (a.drag = e('<div class="swiper-scrollbar-drag"></div>'), a.track.append(a.drag)), a.drag[0].style.width = "", a.drag[0].style.height = "", a.trackSize = x.isHorizontal() ? a.track[0].offsetWidth : a.track[0].offsetHeight, a.divider = x.size / x.virtualSize, a.moveDivider = a.divider * (a.trackSize / x.size), a.dragSize = a.trackSize * a.divider, x.isHorizontal() ? a.drag[0].style.width = a.dragSize + "px" : a.drag[0].style.height = a.dragSize + "px", a.divider >= 1 ? a.track[0].style.display = "none" : a.track[0].style.display = "", x.params.scrollbarHide && (a.track[0].style.opacity = 0)
  1086. }
  1087. },
  1088. setTranslate: function () {
  1089. if (x.params.scrollbar) {
  1090. var e, a = x.scrollbar,
  1091. t = (x.translate, a.dragSize);
  1092. e = (a.trackSize - a.dragSize) * x.progress, x.rtl && x.isHorizontal() ? (e = -e, e > 0 ? (t = a.dragSize - e, e = 0) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e)) : e < 0 ? (t = a.dragSize + e, e = 0) : e + a.dragSize > a.trackSize && (t = a.trackSize - e), x.isHorizontal() ? (x.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), a.drag[0].style.width = t + "px") : (x.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), a.drag[0].style.height = t + "px"), x.params.scrollbarHide && (clearTimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = setTimeout(function () {
  1093. a.track[0].style.opacity = 0, a.track.transition(400)
  1094. }, 1e3))
  1095. }
  1096. },
  1097. setTransition: function (e) {
  1098. x.params.scrollbar && x.scrollbar.drag.transition(e)
  1099. }
  1100. }, x.controller = {
  1101. LinearSpline: function (e, a) {
  1102. var t = function () {
  1103. var e, a, t;
  1104. return function (s, r) {
  1105. for (a = -1, e = s.length; e - a > 1;) s[t = e + a >> 1] <= r ? a = t : e = t;
  1106. return e
  1107. }
  1108. }();
  1109. this.x = e, this.y = a, this.lastIndex = e.length - 1;
  1110. var s, r;
  1111. this.x.length;
  1112. this.interpolate = function (e) {
  1113. return e ? (r = t(this.x, e), s = r - 1, (e - this.x[s]) * (this.y[r] - this.y[s]) / (this.x[r] - this.x[s]) + this.y[s]) : 0
  1114. }
  1115. },
  1116. getInterpolateFunction: function (e) {
  1117. x.controller.spline || (x.controller.spline = x.params.loop ? new x.controller.LinearSpline(x.slidesGrid, e.slidesGrid) : new x.controller.LinearSpline(x.snapGrid, e.snapGrid))
  1118. },
  1119. setTranslate: function (e, t) {
  1120. function s(a) {
  1121. e = a.rtl && "horizontal" === a.params.direction ? -x.translate : x.translate, "slide" === x.params.controlBy && (x.controller.getInterpolateFunction(a), i = -x.controller.spline.interpolate(-e)), i && "container" !== x.params.controlBy || (r = (a.maxTranslate() - a.minTranslate()) / (x.maxTranslate() - x.minTranslate()), i = (e - x.minTranslate()) * r + a.minTranslate()), x.params.controlInverse && (i = a.maxTranslate() - i), a.updateProgress(i), a.setWrapperTranslate(i, !1, x), a.updateActiveIndex()
  1122. }
  1123. var r, i, n = x.params.control;
  1124. if (Array.isArray(n))
  1125. for (var o = 0; o < n.length; o++) n[o] !== t && n[o] instanceof a && s(n[o]);
  1126. else n instanceof a && t !== n && s(n)
  1127. },
  1128. setTransition: function (e, t) {
  1129. function s(a) {
  1130. a.setWrapperTransition(e, x), 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function () {
  1131. i && (a.params.loop && "slide" === x.params.controlBy && a.fixLoop(), a.onTransitionEnd())
  1132. }))
  1133. }
  1134. var r, i = x.params.control;
  1135. if (Array.isArray(i))
  1136. for (r = 0; r < i.length; r++) i[r] !== t && i[r] instanceof a && s(i[r]);
  1137. else i instanceof a && t !== i && s(i)
  1138. }
  1139. }, x.hashnav = {
  1140. onHashCange: function (e, a) {
  1141. var t = document.location.hash.replace("#", "");
  1142. t !== x.slides.eq(x.activeIndex).attr("data-hash") && x.slideTo(x.wrapper.children("." + x.params.slideClass + '[data-hash="' + t + '"]').index())
  1143. },
  1144. attachEvents: function (a) {
  1145. var t = a ? "off" : "on";
  1146. e(window)[t]("hashchange", x.hashnav.onHashCange)
  1147. },
  1148. setHash: function () {
  1149. if (x.hashnav.initialized && x.params.hashnav)
  1150. if (x.params.replaceState && window.history && window.history.replaceState) window.history.replaceState(null, null, "#" + x.slides.eq(x.activeIndex).attr("data-hash") || "");
  1151. else {
  1152. var e = x.slides.eq(x.activeIndex),
  1153. a = e.attr("data-hash") || e.attr("data-history");
  1154. document.location.hash = a || ""
  1155. }
  1156. },
  1157. init: function () {
  1158. if (x.params.hashnav && !x.params.history) {
  1159. x.hashnav.initialized = !0;
  1160. var e = document.location.hash.replace("#", "");
  1161. if (e)
  1162. for (var a = 0, t = x.slides.length; a < t; a++) {
  1163. var s = x.slides.eq(a),
  1164. r = s.attr("data-hash") || s.attr("data-history");
  1165. if (r === e && !s.hasClass(x.params.slideDuplicateClass)) {
  1166. var i = s.index();
  1167. x.slideTo(i, 0, x.params.runCallbacksOnInit, !0)
  1168. }
  1169. }
  1170. x.params.hashnavWatchState && x.hashnav.attachEvents()
  1171. }
  1172. },
  1173. destroy: function () {
  1174. x.params.hashnavWatchState && x.hashnav.attachEvents(!0)
  1175. }
  1176. }, x.history = {
  1177. init: function () {
  1178. if (x.params.history) {
  1179. if (!window.history || !window.history.pushState) return x.params.history = !1, void(x.params.hashnav = !0);
  1180. x.history.initialized = !0, this.paths = this.getPathValues(), (this.paths.key || this.paths.value) && (this.scrollToSlide(0, this.paths.value, x.params.runCallbacksOnInit), x.params.replaceState || window.addEventListener("popstate", this.setHistoryPopState))
  1181. }
  1182. },
  1183. setHistoryPopState: function () {
  1184. x.history.paths = x.history.getPathValues(), x.history.scrollToSlide(x.params.speed, x.history.paths.value, !1)
  1185. },
  1186. getPathValues: function () {
  1187. var e = window.location.pathname.slice(1).split("/"),
  1188. a = e.length;
  1189. return {
  1190. key: e[a - 2],
  1191. value: e[a - 1]
  1192. }
  1193. },
  1194. setHistory: function (e, a) {
  1195. if (x.history.initialized && x.params.history) {
  1196. var t = x.slides.eq(a),
  1197. s = this.slugify(t.attr("data-history"));
  1198. window.location.pathname.includes(e) || (s = e + "/" + s), x.params.replaceState ? window.history.replaceState(null, null, s) : window.history.pushState(null, null, s)
  1199. }
  1200. },
  1201. slugify: function (e) {
  1202. return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "")
  1203. },
  1204. scrollToSlide: function (e, a, t) {
  1205. if (a)
  1206. for (var s = 0, r = x.slides.length; s < r; s++) {
  1207. var i = x.slides.eq(s),
  1208. n = this.slugify(i.attr("data-history"));
  1209. if (n === a && !i.hasClass(x.params.slideDuplicateClass)) {
  1210. var o = i.index();
  1211. x.slideTo(o, e, t)
  1212. }
  1213. } else x.slideTo(0, e, t)
  1214. }
  1215. }, x.disableKeyboardControl = function () {
  1216. x.params.keyboardControl = !1, e(document).off("keydown", l)
  1217. }, x.enableKeyboardControl = function () {
  1218. x.params.keyboardControl = !0, e(document).on("keydown", l)
  1219. }, x.mousewheel = {
  1220. event: !1,
  1221. lastScrollTime: (new window.Date).getTime()
  1222. }, x.params.mousewheelControl && (x.mousewheel.event = navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function () {
  1223. var e = "onwheel" in document;
  1224. if (!e) {
  1225. var a = document.createElement("div");
  1226. a.setAttribute("onwheel", "return;"), e = "function" == typeof a.onwheel
  1227. }
  1228. return !e && document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0 && (e = document.implementation.hasFeature("Events.wheel", "3.0")), e
  1229. }() ? "wheel" : "mousewheel"), x.disableMousewheelControl = function () {
  1230. if (!x.mousewheel.event) return !1;
  1231. var a = x.container;
  1232. return "container" !== x.params.mousewheelEventsTarged && (a = e(x.params.mousewheelEventsTarged)), a.off(x.mousewheel.event, d), x.params.mousewheelControl = !1, !0
  1233. }, x.enableMousewheelControl = function () {
  1234. if (!x.mousewheel.event) return !1;
  1235. var a = x.container;
  1236. return "container" !== x.params.mousewheelEventsTarged && (a = e(x.params.mousewheelEventsTarged)), a.on(x.mousewheel.event, d), x.params.mousewheelControl = !0, !0
  1237. }, x.parallax = {
  1238. setTranslate: function () {
  1239. x.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () {
  1240. m(this, x.progress)
  1241. }), x.slides.each(function () {
  1242. var a = e(this);
  1243. a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () {
  1244. m(this, Math.min(Math.max(a[0].progress, -1), 1))
  1245. })
  1246. })
  1247. },
  1248. setTransition: function (a) {
  1249. void 0 === a && (a = x.params.speed), x.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () {
  1250. var t = e(this),
  1251. s = parseInt(t.attr("data-swiper-parallax-duration"), 10) || a;
  1252. 0 === a && (s = 0), t.transition(s)
  1253. })
  1254. }
  1255. }, x.zoom = {
  1256. scale: 1,
  1257. currentScale: 1,
  1258. isScaling: !1,
  1259. gesture: {
  1260. slide: void 0,
  1261. slideWidth: void 0,
  1262. slideHeight: void 0,
  1263. image: void 0,
  1264. imageWrap: void 0,
  1265. zoomMax: x.params.zoomMax
  1266. },
  1267. image: {
  1268. isTouched: void 0,
  1269. isMoved: void 0,
  1270. currentX: void 0,
  1271. currentY: void 0,
  1272. minX: void 0,
  1273. minY: void 0,
  1274. maxX: void 0,
  1275. maxY: void 0,
  1276. width: void 0,
  1277. height: void 0,
  1278. startX: void 0,
  1279. startY: void 0,
  1280. touchesStart: {},
  1281. touchesCurrent: {}
  1282. },
  1283. velocity: {
  1284. x: void 0,
  1285. y: void 0,
  1286. prevPositionX: void 0,
  1287. prevPositionY: void 0,
  1288. prevTime: void 0
  1289. },
  1290. getDistanceBetweenTouches: function (e) {
  1291. if (e.targetTouches.length < 2) return 1;
  1292. var a = e.targetTouches[0].pageX,
  1293. t = e.targetTouches[0].pageY,
  1294. s = e.targetTouches[1].pageX,
  1295. r = e.targetTouches[1].pageY;
  1296. return Math.sqrt(Math.pow(s - a, 2) + Math.pow(r - t, 2))
  1297. },
  1298. onGestureStart: function (a) {
  1299. var t = x.zoom;
  1300. if (!x.support.gestures) {
  1301. if ("touchstart" !== a.type || "touchstart" === a.type && a.targetTouches.length < 2) return;
  1302. t.gesture.scaleStart = t.getDistanceBetweenTouches(a)
  1303. }
  1304. if (!(t.gesture.slide && t.gesture.slide.length || (t.gesture.slide = e(this), 0 === t.gesture.slide.length && (t.gesture.slide = x.slides.eq(x.activeIndex)), t.gesture.image = t.gesture.slide.find("img, svg, canvas"), t.gesture.imageWrap = t.gesture.image.parent("." + x.params.zoomContainerClass), t.gesture.zoomMax = t.gesture.imageWrap.attr("data-swiper-zoom") || x.params.zoomMax, 0 !== t.gesture.imageWrap.length))) return void(t.gesture.image = void 0);
  1305. t.gesture.image.transition(0), t.isScaling = !0
  1306. },
  1307. onGestureChange: function (e) {
  1308. var a = x.zoom;
  1309. if (!x.support.gestures) {
  1310. if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return;
  1311. a.gesture.scaleMove = a.getDistanceBetweenTouches(e)
  1312. }
  1313. a.gesture.image && 0 !== a.gesture.image.length && (x.support.gestures ? a.scale = e.scale * a.currentScale : a.scale = a.gesture.scaleMove / a.gesture.scaleStart * a.currentScale, a.scale > a.gesture.zoomMax && (a.scale = a.gesture.zoomMax - 1 + Math.pow(a.scale - a.gesture.zoomMax + 1, .5)), a.scale < x.params.zoomMin && (a.scale = x.params.zoomMin + 1 - Math.pow(x.params.zoomMin - a.scale + 1, .5)), a.gesture.image.transform("translate3d(0,0,0) scale(" + a.scale + ")"))
  1314. },
  1315. onGestureEnd: function (e) {
  1316. var a = x.zoom;
  1317. !x.support.gestures && ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2) || a.gesture.image && 0 !== a.gesture.image.length && (a.scale = Math.max(Math.min(a.scale, a.gesture.zoomMax), x.params.zoomMin), a.gesture.image.transition(x.params.speed).transform("translate3d(0,0,0) scale(" + a.scale + ")"), a.currentScale = a.scale, a.isScaling = !1, 1 === a.scale && (a.gesture.slide = void 0))
  1318. },
  1319. onTouchStart: function (e, a) {
  1320. var t = e.zoom;
  1321. t.gesture.image && 0 !== t.gesture.image.length && (t.image.isTouched || ("android" === e.device.os && a.preventDefault(), t.image.isTouched = !0, t.image.touchesStart.x = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX, t.image.touchesStart.y = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY))
  1322. },
  1323. onTouchMove: function (e) {
  1324. var a = x.zoom;
  1325. if (a.gesture.image && 0 !== a.gesture.image.length && (x.allowClick = !1, a.image.isTouched && a.gesture.slide)) {
  1326. a.image.isMoved || (a.image.width = a.gesture.image[0].offsetWidth, a.image.height = a.gesture.image[0].offsetHeight, a.image.startX = x.getTranslate(a.gesture.imageWrap[0], "x") || 0, a.image.startY = x.getTranslate(a.gesture.imageWrap[0], "y") || 0, a.gesture.slideWidth = a.gesture.slide[0].offsetWidth, a.gesture.slideHeight = a.gesture.slide[0].offsetHeight, a.gesture.imageWrap.transition(0), x.rtl && (a.image.startX = -a.image.startX), x.rtl && (a.image.startY = -a.image.startY));
  1327. var t = a.image.width * a.scale,
  1328. s = a.image.height * a.scale;
  1329. if (!(t < a.gesture.slideWidth && s < a.gesture.slideHeight)) {
  1330. if (a.image.minX = Math.min(a.gesture.slideWidth / 2 - t / 2, 0), a.image.maxX = -a.image.minX, a.image.minY = Math.min(a.gesture.slideHeight / 2 - s / 2, 0), a.image.maxY = -a.image.minY, a.image.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, a.image.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !a.image.isMoved && !a.isScaling) {
  1331. if (x.isHorizontal() && Math.floor(a.image.minX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x < a.image.touchesStart.x || Math.floor(a.image.maxX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x > a.image.touchesStart.x) return void(a.image.isTouched = !1);
  1332. if (!x.isHorizontal() && Math.floor(a.image.minY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y < a.image.touchesStart.y || Math.floor(a.image.maxY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y > a.image.touchesStart.y) return void(a.image.isTouched = !1)
  1333. }
  1334. e.preventDefault(), e.stopPropagation(), a.image.isMoved = !0, a.image.currentX = a.image.touchesCurrent.x - a.image.touchesStart.x + a.image.startX, a.image.currentY = a.image.touchesCurrent.y - a.image.touchesStart.y + a.image.startY, a.image.currentX < a.image.minX && (a.image.currentX = a.image.minX + 1 - Math.pow(a.image.minX - a.image.currentX + 1, .8)), a.image.currentX > a.image.maxX && (a.image.currentX = a.image.maxX - 1 + Math.pow(a.image.currentX - a.image.maxX + 1, .8)), a.image.currentY < a.image.minY && (a.image.currentY = a.image.minY + 1 - Math.pow(a.image.minY - a.image.currentY + 1, .8)), a.image.currentY > a.image.maxY && (a.image.currentY = a.image.maxY - 1 + Math.pow(a.image.currentY - a.image.maxY + 1, .8)), a.velocity.prevPositionX || (a.velocity.prevPositionX = a.image.touchesCurrent.x), a.velocity.prevPositionY || (a.velocity.prevPositionY = a.image.touchesCurrent.y), a.velocity.prevTime || (a.velocity.prevTime = Date.now()), a.velocity.x = (a.image.touchesCurrent.x - a.velocity.prevPositionX) / (Date.now() - a.velocity.prevTime) / 2, a.velocity.y = (a.image.touchesCurrent.y - a.velocity.prevPositionY) / (Date.now() - a.velocity.prevTime) / 2, Math.abs(a.image.touchesCurrent.x - a.velocity.prevPositionX) < 2 && (a.velocity.x = 0), Math.abs(a.image.touchesCurrent.y - a.velocity.prevPositionY) < 2 && (a.velocity.y = 0), a.velocity.prevPositionX = a.image.touchesCurrent.x, a.velocity.prevPositionY = a.image.touchesCurrent.y, a.velocity.prevTime = Date.now(), a.gesture.imageWrap.transform("translate3d(" + a.image.currentX + "px, " + a.image.currentY + "px,0)")
  1335. }
  1336. }
  1337. },
  1338. onTouchEnd: function (e, a) {
  1339. var t = e.zoom;
  1340. if (t.gesture.image && 0 !== t.gesture.image.length) {
  1341. if (!t.image.isTouched || !t.image.isMoved) return t.image.isTouched = !1, void(t.image.isMoved = !1);
  1342. t.image.isTouched = !1, t.image.isMoved = !1;
  1343. var s = 300,
  1344. r = 300,
  1345. i = t.velocity.x * s,
  1346. n = t.image.currentX + i,
  1347. o = t.velocity.y * r,
  1348. l = t.image.currentY + o;
  1349. 0 !== t.velocity.x && (s = Math.abs((n - t.image.currentX) / t.velocity.x)), 0 !== t.velocity.y && (r = Math.abs((l - t.image.currentY) / t.velocity.y));
  1350. var p = Math.max(s, r);
  1351. t.image.currentX = n, t.image.currentY = l;
  1352. var d = t.image.width * t.scale,
  1353. m = t.image.height * t.scale;
  1354. t.image.minX = Math.min(t.gesture.slideWidth / 2 - d / 2, 0), t.image.maxX = -t.image.minX, t.image.minY = Math.min(t.gesture.slideHeight / 2 - m / 2, 0), t.image.maxY = -t.image.minY, t.image.currentX = Math.max(Math.min(t.image.currentX, t.image.maxX), t.image.minX), t.image.currentY = Math.max(Math.min(t.image.currentY, t.image.maxY), t.image.minY), t.gesture.imageWrap.transition(p).transform("translate3d(" + t.image.currentX + "px, " + t.image.currentY + "px,0)")
  1355. }
  1356. },
  1357. onTransitionEnd: function (e) {
  1358. var a = e.zoom;
  1359. a.gesture.slide && e.previousIndex !== e.activeIndex && (a.gesture.image.transform("translate3d(0,0,0) scale(1)"), a.gesture.imageWrap.transform("translate3d(0,0,0)"), a.gesture.slide = a.gesture.image = a.gesture.imageWrap = void 0, a.scale = a.currentScale = 1)
  1360. },
  1361. toggleZoom: function (a, t) {
  1362. var s = a.zoom;
  1363. if (s.gesture.slide || (s.gesture.slide = a.clickedSlide ? e(a.clickedSlide) : a.slides.eq(a.activeIndex), s.gesture.image = s.gesture.slide.find("img, svg, canvas"), s.gesture.imageWrap = s.gesture.image.parent("." + a.params.zoomContainerClass)), s.gesture.image && 0 !== s.gesture.image.length) {
  1364. var r, i, n, o, l, p, d, m, u, c, g, h, v, f, w, y, x, T;
  1365. void 0 === s.image.touchesStart.x && t ? (r = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, i = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (r = s.image.touchesStart.x, i = s.image.touchesStart.y), s.scale && 1 !== s.scale ? (s.scale = s.currentScale = 1, s.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"), s.gesture.slide = void 0) : (s.scale = s.currentScale = s.gesture.imageWrap.attr("data-swiper-zoom") || a.params.zoomMax, t ? (x = s.gesture.slide[0].offsetWidth, T = s.gesture.slide[0].offsetHeight, n = s.gesture.slide.offset().left, o = s.gesture.slide.offset().top, l = n + x / 2 - r, p = o + T / 2 - i, u = s.gesture.image[0].offsetWidth, c = s.gesture.image[0].offsetHeight, g = u * s.scale, h = c * s.scale, v = Math.min(x / 2 - g / 2, 0), f = Math.min(T / 2 - h / 2, 0), w = -v, y = -f, d = l * s.scale, m = p * s.scale, d < v && (d = v), d > w && (d = w), m < f && (m = f), m > y && (m = y)) : (d = 0, m = 0), s.gesture.imageWrap.transition(300).transform("translate3d(" + d + "px, " + m + "px,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(" + s.scale + ")"))
  1366. }
  1367. },
  1368. attachEvents: function (a) {
  1369. var t = a ? "off" : "on";
  1370. if (x.params.zoom) {
  1371. var s = (x.slides, !("touchstart" !== x.touchEvents.start || !x.support.passiveListener || !x.params.passiveListeners) && {
  1372. passive: !0,
  1373. capture: !1
  1374. });
  1375. x.support.gestures ? (x.slides[t]("gesturestart", x.zoom.onGestureStart, s), x.slides[t]("gesturechange", x.zoom.onGestureChange, s), x.slides[t]("gestureend", x.zoom.onGestureEnd, s)) : "touchstart" === x.touchEvents.start && (x.slides[t](x.touchEvents.start, x.zoom.onGestureStart, s), x.slides[t](x.touchEvents.move, x.zoom.onGestureChange, s), x.slides[t](x.touchEvents.end, x.zoom.onGestureEnd, s)), x[t]("touchStart", x.zoom.onTouchStart), x.slides.each(function (a, s) {
  1376. e(s).find("." + x.params.zoomContainerClass).length > 0 && e(s)[t](x.touchEvents.move, x.zoom.onTouchMove)
  1377. }), x[t]("touchEnd", x.zoom.onTouchEnd), x[t]("transitionEnd", x.zoom.onTransitionEnd), x.params.zoomToggle && x.on("doubleTap", x.zoom.toggleZoom)
  1378. }
  1379. },
  1380. init: function () {
  1381. x.zoom.attachEvents()
  1382. },
  1383. destroy: function () {
  1384. x.zoom.attachEvents(!0)
  1385. }
  1386. }, x._plugins = [];
  1387. for (var Y in x.plugins) {
  1388. var A = x.plugins[Y](x, x.params[Y]);
  1389. A && x._plugins.push(A)
  1390. }
  1391. return x.callPlugins = function (e) {
  1392. for (var a = 0; a < x._plugins.length; a++) e in x._plugins[a] && x._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5])
  1393. }, x.emitterEventListeners = {}, x.emit = function (e) {
  1394. x.params[e] && x.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
  1395. var a;
  1396. if (x.emitterEventListeners[e])
  1397. for (a = 0; a < x.emitterEventListeners[e].length; a++) x.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
  1398. x.callPlugins && x.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5])
  1399. }, x.on = function (e, a) {
  1400. return e = u(e), x.emitterEventListeners[e] || (x.emitterEventListeners[e] = []), x.emitterEventListeners[e].push(a), x
  1401. }, x.off = function (e, a) {
  1402. var t;
  1403. if (e = u(e), void 0 === a) return x.emitterEventListeners[e] = [], x;
  1404. if (x.emitterEventListeners[e] && 0 !== x.emitterEventListeners[e].length) {
  1405. for (t = 0; t < x.emitterEventListeners[e].length; t++) x.emitterEventListeners[e][t] === a && x.emitterEventListeners[e].splice(t, 1);
  1406. return x
  1407. }
  1408. }, x.once = function (e, a) {
  1409. e = u(e);
  1410. var t = function () {
  1411. a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), x.off(e, t)
  1412. };
  1413. return x.on(e, t), x
  1414. }, x.a11y = {
  1415. makeFocusable: function (e) {
  1416. return e.attr("tabIndex", "0"), e
  1417. },
  1418. addRole: function (e, a) {
  1419. return e.attr("role", a), e
  1420. },
  1421. addLabel: function (e, a) {
  1422. return e.attr("aria-label", a), e
  1423. },
  1424. disable: function (e) {
  1425. return e.attr("aria-disabled", !0), e
  1426. },
  1427. enable: function (e) {
  1428. return e.attr("aria-disabled", !1), e
  1429. },
  1430. onEnterKey: function (a) {
  1431. 13 === a.keyCode && (e(a.target).is(x.params.nextButton) ? (x.onClickNext(a), x.isEnd ? x.a11y.notify(x.params.lastSlideMessage) : x.a11y.notify(x.params.nextSlideMessage)) : e(a.target).is(x.params.prevButton) && (x.onClickPrev(a), x.isBeginning ? x.a11y.notify(x.params.firstSlideMessage) : x.a11y.notify(x.params.prevSlideMessage)), e(a.target).is("." + x.params.bulletClass) && e(a.target)[0].click())
  1432. },
  1433. liveRegion: e('<span class="' + x.params.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>'),
  1434. notify: function (e) {
  1435. var a = x.a11y.liveRegion;
  1436. 0 !== a.length && (a.html(""), a.html(e))
  1437. },
  1438. init: function () {
  1439. x.params.nextButton && x.nextButton && x.nextButton.length > 0 && (x.a11y.makeFocusable(x.nextButton), x.a11y.addRole(x.nextButton, "button"), x.a11y.addLabel(x.nextButton, x.params.nextSlideMessage)), x.params.prevButton && x.prevButton && x.prevButton.length > 0 && (x.a11y.makeFocusable(x.prevButton), x.a11y.addRole(x.prevButton, "button"), x.a11y.addLabel(x.prevButton, x.params.prevSlideMessage)), e(x.container).append(x.a11y.liveRegion)
  1440. },
  1441. initPagination: function () {
  1442. x.params.pagination && x.params.paginationClickable && x.bullets && x.bullets.length && x.bullets.each(function () {
  1443. var a = e(this);
  1444. x.a11y.makeFocusable(a), x.a11y.addRole(a, "button"), x.a11y.addLabel(a, x.params.paginationBulletMessage.replace(/{{index}}/, a.index() + 1))
  1445. })
  1446. },
  1447. destroy: function () {
  1448. x.a11y.liveRegion && x.a11y.liveRegion.length > 0 && x.a11y.liveRegion.remove()
  1449. }
  1450. }, x.init = function () {
  1451. x.params.loop && x.createLoop(), x.updateContainerSize(), x.updateSlidesSize(), x.updatePagination(), x.params.scrollbar && x.scrollbar && (x.scrollbar.set(), x.params.scrollbarDraggable && x.scrollbar.enableDraggable()), "slide" !== x.params.effect && x.effects[x.params.effect] && (x.params.loop || x.updateProgress(), x.effects[x.params.effect].setTranslate()), x.params.loop ? x.slideTo(x.params.initialSlide + x.loopedSlides, 0, x.params.runCallbacksOnInit) : (x.slideTo(x.params.initialSlide, 0, x.params.runCallbacksOnInit), 0 === x.params.initialSlide && (x.parallax && x.params.parallax && x.parallax.setTranslate(), x.lazy && x.params.lazyLoading && (x.lazy.load(), x.lazy.initialImageLoaded = !0))), x.attachEvents(), x.params.observer && x.support.observer && x.initObservers(), x.params.preloadImages && !x.params.lazyLoading && x.preloadImages(), x.params.zoom && x.zoom && x.zoom.init(), x.params.autoplay && x.startAutoplay(), x.params.keyboardControl && x.enableKeyboardControl && x.enableKeyboardControl(), x.params.mousewheelControl && x.enableMousewheelControl && x.enableMousewheelControl(), x.params.hashnavReplaceState && (x.params.replaceState = x.params.hashnavReplaceState), x.params.history && x.history && x.history.init(), x.params.hashnav && x.hashnav && x.hashnav.init(), x.params.a11y && x.a11y && x.a11y.init(), x.emit("onInit", x)
  1452. }, x.cleanupStyles = function () {
  1453. x.container.removeClass(x.classNames.join(" ")).removeAttr("style"), x.wrapper.removeAttr("style"), x.slides && x.slides.length && x.slides.removeClass([x.params.slideVisibleClass, x.params.slideActiveClass, x.params.slideNextClass, x.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), x.paginationContainer && x.paginationContainer.length && x.paginationContainer.removeClass(x.params.paginationHiddenClass), x.bullets && x.bullets.length && x.bullets.removeClass(x.params.bulletActiveClass), x.params.prevButton && e(x.params.prevButton).removeClass(x.params.buttonDisabledClass), x.params.nextButton && e(x.params.nextButton).removeClass(x.params.buttonDisabledClass), x.params.scrollbar && x.scrollbar && (x.scrollbar.track && x.scrollbar.track.length && x.scrollbar.track.removeAttr("style"), x.scrollbar.drag && x.scrollbar.drag.length && x.scrollbar.drag.removeAttr("style"))
  1454. }, x.destroy = function (e, a) {
  1455. x.detachEvents(), x.stopAutoplay(), x.params.scrollbar && x.scrollbar && x.params.scrollbarDraggable && x.scrollbar.disableDraggable(), x.params.loop && x.destroyLoop(), a && x.cleanupStyles(), x.disconnectObservers(), x.params.zoom && x.zoom && x.zoom.destroy(), x.params.keyboardControl && x.disableKeyboardControl && x.disableKeyboardControl(), x.params.mousewheelControl && x.disableMousewheelControl && x.disableMousewheelControl(), x.params.a11y && x.a11y && x.a11y.destroy(), x.params.history && !x.params.replaceState && window.removeEventListener("popstate", x.history.setHistoryPopState), x.params.hashnav && x.hashnav && x.hashnav.destroy(), x.emit("onDestroy"), e !== !1 && (x = null)
  1456. }, x.init(), x
  1457. }
  1458. };
  1459. a.prototype = {
  1460. isSafari: function () {
  1461. var e = window.navigator.userAgent.toLowerCase();
  1462. return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0
  1463. }(),
  1464. isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),
  1465. isArray: function (e) {
  1466. return "[object Array]" === Object.prototype.toString.apply(e)
  1467. },
  1468. browser: {
  1469. ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
  1470. ieTouch: window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1,
  1471. lteIE9: function () {
  1472. var e = document.createElement("div");
  1473. return e.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length
  1474. }()
  1475. },
  1476. device: function () {
  1477. var e = window.navigator.userAgent,
  1478. a = e.match(/(Android);?[\s\/]+([\d.]+)?/),
  1479. t = e.match(/(iPad).*OS\s([\d_]+)/),
  1480. s = e.match(/(iPod)(.*OS\s([\d_]+))?/),
  1481. r = !t && e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
  1482. return {
  1483. ios: t || r || s,
  1484. android: a
  1485. }
  1486. }(),
  1487. support: {
  1488. touch: window.Modernizr && Modernizr.touch === !0 || function () {
  1489. return !!("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch)
  1490. }(),
  1491. transforms3d: window.Modernizr && Modernizr.csstransforms3d === !0 || function () {
  1492. var e = document.createElement("div").style;
  1493. return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e
  1494. }(),
  1495. flexbox: function () {
  1496. for (var e = document.createElement("div").style, a = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), t = 0; t < a.length; t++)
  1497. if (a[t] in e) return !0
  1498. }(),
  1499. observer: function () {
  1500. return "MutationObserver" in window || "WebkitMutationObserver" in window
  1501. }(),
  1502. passiveListener: function () {
  1503. var e = !1;
  1504. try {
  1505. var a = Object.defineProperty({}, "passive", {
  1506. get: function () {
  1507. e = !0
  1508. }
  1509. });
  1510. window.addEventListener("testPassiveListener", null, a)
  1511. } catch (e) {}
  1512. return e
  1513. }(),
  1514. gestures: function () {
  1515. return "ongesturestart" in window
  1516. }()
  1517. },
  1518. plugins: {}
  1519. };
  1520. for (var t = ["jQuery", "Zepto", "Dom7"], s = 0; s < t.length; s++) window[t[s]] && function (e) {
  1521. e.fn.swiper = function (t) {
  1522. var s;
  1523. return e(this).each(function () {
  1524. var e = new a(this, t);
  1525. s || (s = e)
  1526. }), s
  1527. }
  1528. }(window[t[s]]);
  1529. var r;
  1530. r = "undefined" == typeof Dom7 ? window.Dom7 || window.Zepto || window.jQuery : Dom7, r && ("transitionEnd" in r.fn || (r.fn.transitionEnd = function (e) {
  1531. function a(i) {
  1532. if (i.target === this)
  1533. for (e.call(this, i), t = 0; t < s.length; t++) r.off(s[t], a)
  1534. }
  1535. var t, s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"],
  1536. r = this;
  1537. if (e)
  1538. for (t = 0; t < s.length; t++) r.on(s[t], a);
  1539. return this
  1540. }), "transform" in r.fn || (r.fn.transform = function (e) {
  1541. for (var a = 0; a < this.length; a++) {
  1542. var t = this[a].style;
  1543. t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e
  1544. }
  1545. return this
  1546. }), "transition" in r.fn || (r.fn.transition = function (e) {
  1547. "string" != typeof e && (e += "ms");
  1548. for (var a = 0; a < this.length; a++) {
  1549. var t = this[a].style;
  1550. t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e
  1551. }
  1552. return this
  1553. }), "outerWidth" in r.fn || (r.fn.outerWidth = function (e) {
  1554. return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null
  1555. })), window.Swiper = a
  1556. }(), "undefined" != typeof module ? module.exports = window.Swiper : "function" == typeof define && define.amd && define([], function () {
  1557. "use strict";
  1558. return window.Swiper
  1559. });
  1560. //# sourceMappingURL=maps/swiper.jquery.min.js.map