swiper.min.js 144 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901
  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 (s, i) {
  18. function r(e) {
  19. return Math.floor(e)
  20. }
  21. function n() {
  22. var e = T.params.autoplay,
  23. a = T.slides.eq(T.activeIndex);
  24. a.attr("data-swiper-autoplay") && (e = a.attr("data-swiper-autoplay") || T.params.autoplay), T.autoplayTimeoutId = setTimeout(function () {
  25. T.params.loop ? (T.fixLoop(), T._slideNext(), T.emit("onAutoplay", T)) : T.isEnd ? i.autoplayStopOnLast ? T.stopAutoplay() : (T._slideTo(0), T.emit("onAutoplay", T)) : (T._slideNext(), T.emit("onAutoplay", T))
  26. }, e)
  27. }
  28. function o(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 i;
  34. return s.parents().each(function (e, a) {
  35. a === t && (i = t)
  36. }), i ? t : void 0
  37. }
  38. if (0 !== s.length) return s[0]
  39. }
  40. function l(e, a) {
  41. a = a || {};
  42. var t = window.MutationObserver || window.WebkitMutationObserver,
  43. s = new t(function (e) {
  44. e.forEach(function (e) {
  45. T.onResize(!0), T.emit("onObserverUpdate", T, 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. }), T.observers.push(s)
  53. }
  54. function p(e) {
  55. e.originalEvent && (e = e.originalEvent);
  56. var a = e.keyCode || e.charCode;
  57. if (!T.params.allowSwipeToNext && (T.isHorizontal() && 39 === a || !T.isHorizontal() && 40 === a)) return !1;
  58. if (!T.params.allowSwipeToPrev && (T.isHorizontal() && 37 === a || !T.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 (T.container.parents("." + T.params.slideClass).length > 0 && 0 === T.container.parents("." + T.params.slideActiveClass).length) return;
  63. var s = {
  64. left: window.pageXOffset,
  65. top: window.pageYOffset
  66. },
  67. i = window.innerWidth,
  68. r = window.innerHeight,
  69. n = T.container.offset();
  70. T.rtl && (n.left = n.left - T.container[0].scrollLeft);
  71. for (var o = [
  72. [n.left, n.top],
  73. [n.left + T.width, n.top],
  74. [n.left, n.top + T.height],
  75. [n.left + T.width, n.top + T.height]
  76. ], l = 0; l < o.length; l++) {
  77. var p = o[l];
  78. p[0] >= s.left && p[0] <= s.left + i && p[1] >= s.top && p[1] <= s.top + r && (t = !0)
  79. }
  80. if (!t) return
  81. }
  82. T.isHorizontal() ? (37 !== a && 39 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), (39 === a && !T.rtl || 37 === a && T.rtl) && T.slideNext(), (37 === a && !T.rtl || 39 === a && T.rtl) && T.slidePrev()) : (38 !== a && 40 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), 40 === a && T.slideNext(), 38 === a && T.slidePrev()), T.emit("onKeyPress", T, a)
  83. }
  84. }
  85. function d(e) {
  86. var a = 0,
  87. t = 0,
  88. s = 0,
  89. i = 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, i = 10 * t, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (s = e.deltaX), (s || i) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, i *= 40) : (s *= 800, i *= 800)), s && !a && (a = s < 1 ? -1 : 1), i && !t && (t = i < 1 ? -1 : 1), {
  91. spinX: a,
  92. spinY: t,
  93. pixelX: s,
  94. pixelY: i
  95. }
  96. }
  97. function u(e) {
  98. e.originalEvent && (e = e.originalEvent);
  99. var a = 0,
  100. t = T.rtl ? -1 : 1,
  101. s = d(e);
  102. if (T.params.mousewheelForceToAxis)
  103. if (T.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 (T.params.mousewheelInvert && (a = -a), T.params.freeMode) {
  113. var i = T.getWrapperTranslate() + a * T.params.mousewheelSensitivity,
  114. r = T.isBeginning,
  115. n = T.isEnd;
  116. if (i >= T.minTranslate() && (i = T.minTranslate()), i <= T.maxTranslate() && (i = T.maxTranslate()), T.setWrapperTransition(0), T.setWrapperTranslate(i), T.updateProgress(), T.updateActiveIndex(), (!r && T.isBeginning || !n && T.isEnd) && T.updateClasses(), T.params.freeModeSticky ? (clearTimeout(T.mousewheel.timeout), T.mousewheel.timeout = setTimeout(function () {
  117. T.slideReset()
  118. }, 300)) : T.params.lazyLoading && T.lazy && T.lazy.load(), T.emit("onScroll", T, e), T.params.autoplay && T.params.autoplayDisableOnInteraction && T.stopAutoplay(), 0 === i || i === T.maxTranslate()) return
  119. } else {
  120. if ((new window.Date).getTime() - T.mousewheel.lastScrollTime > 60)
  121. if (a < 0)
  122. if (T.isEnd && !T.params.loop || T.animating) {
  123. if (T.params.mousewheelReleaseOnEdges) return !0
  124. } else T.slideNext(), T.emit("onScroll", T, e);
  125. else if (T.isBeginning && !T.params.loop || T.animating) {
  126. if (T.params.mousewheelReleaseOnEdges) return !0
  127. } else T.slidePrev(), T.emit("onScroll", T, e);
  128. T.mousewheel.lastScrollTime = (new window.Date).getTime()
  129. }
  130. return e.preventDefault ? e.preventDefault() : e.returnValue = !1, !1
  131. }
  132. }
  133. function c(a, t) {
  134. a = e(a);
  135. var s, i, r, n = T.rtl ? -1 : 1;
  136. s = a.attr("data-swiper-parallax") || "0", i = a.attr("data-swiper-parallax-x"), r = a.attr("data-swiper-parallax-y"), i || r ? (i = i || "0", r = r || "0") : T.isHorizontal() ? (i = s, r = "0") : (r = s, i = "0"), i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t * n + "%" : i * t * n + "px", r = r.indexOf("%") >= 0 ? parseInt(r, 10) * t + "%" : r * t + "px", a.transform("translate3d(" + i + ", " + r + ",0px)")
  137. }
  138. function m(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(s, i);
  142. var h = {
  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 = i && i.virtualTranslate;
  303. i = i || {};
  304. var f = {};
  305. for (var v in i)
  306. if ("object" != typeof i[v] || null === i[v] || (i[v].nodeType || i[v] === window || i[v] === document || void 0 !== t && i[v] instanceof t || "undefined" != typeof jQuery && i[v] instanceof jQuery)) f[v] = i[v];
  307. else {
  308. f[v] = {};
  309. for (var w in i[v]) f[v][w] = i[v][w]
  310. } for (var y in h)
  311. if (void 0 === i[y]) i[y] = h[y];
  312. else if ("object" == typeof i[y])
  313. for (var x in h[y]) void 0 === i[y][x] && (i[y][x] = h[y][x]);
  314. var T = this;
  315. if (T.params = i, T.originalParams = f, T.classNames = [], void 0 !== e && void 0 !== t && (e = t), (void 0 !== e || (e = void 0 === t ? window.Dom7 || window.Zepto || window.jQuery : t)) && (T.$ = e, T.currentBreakpoint = void 0, T.getActiveBreakpoint = function () {
  316. if (!T.params.breakpoints) return !1;
  317. var e, a = !1,
  318. t = [];
  319. for (e in T.params.breakpoints) T.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. }, T.setBreakpoint = function () {
  326. var e = T.getActiveBreakpoint();
  327. if (e && T.currentBreakpoint !== e) {
  328. var a = e in T.params.breakpoints ? T.params.breakpoints[e] : T.originalParams,
  329. t = T.params.loop && a.slidesPerView !== T.params.slidesPerView;
  330. for (var s in a) T.params[s] = a[s];
  331. T.currentBreakpoint = e, t && T.destroyLoop && T.reLoop(!0)
  332. }
  333. }, T.params.breakpoints && T.setBreakpoint(), T.container = e(s), 0 !== T.container.length)) {
  334. if (T.container.length > 1) {
  335. var b = [];
  336. return T.container.each(function () {
  337. b.push(new a(this, i))
  338. }), b
  339. }
  340. T.container[0].swiper = T, T.container.data("swiper", T), T.classNames.push(T.params.containerModifierClass + T.params.direction), T.params.freeMode && T.classNames.push(T.params.containerModifierClass + "free-mode"), T.support.flexbox || (T.classNames.push(T.params.containerModifierClass + "no-flexbox"), T.params.slidesPerColumn = 1), T.params.autoHeight && T.classNames.push(T.params.containerModifierClass + "autoheight"), (T.params.parallax || T.params.watchSlidesVisibility) && (T.params.watchSlidesProgress = !0), T.params.touchReleaseOnEdges && (T.params.resistanceRatio = 0), ["cube", "coverflow", "flip"].indexOf(T.params.effect) >= 0 && (T.support.transforms3d ? (T.params.watchSlidesProgress = !0, T.classNames.push(T.params.containerModifierClass + "3d")) : T.params.effect = "slide"), "slide" !== T.params.effect && T.classNames.push(T.params.containerModifierClass + T.params.effect), "cube" === T.params.effect && (T.params.resistanceRatio = 0, T.params.slidesPerView = 1, T.params.slidesPerColumn = 1, T.params.slidesPerGroup = 1, T.params.centeredSlides = !1, T.params.spaceBetween = 0, T.params.virtualTranslate = !0), "fade" !== T.params.effect && "flip" !== T.params.effect || (T.params.slidesPerView = 1, T.params.slidesPerColumn = 1, T.params.slidesPerGroup = 1, T.params.watchSlidesProgress = !0, T.params.spaceBetween = 0, void 0 === g && (T.params.virtualTranslate = !0)), T.params.grabCursor && T.support.touch && (T.params.grabCursor = !1), T.wrapper = T.container.children("." + T.params.wrapperClass), T.params.pagination && (T.paginationContainer = e(T.params.pagination), T.params.uniqueNavElements && "string" == typeof T.params.pagination && T.paginationContainer.length > 1 && 1 === T.container.find(T.params.pagination).length && (T.paginationContainer = T.container.find(T.params.pagination)), "bullets" === T.params.paginationType && T.params.paginationClickable ? T.paginationContainer.addClass(T.params.paginationModifierClass + "clickable") : T.params.paginationClickable = !1, T.paginationContainer.addClass(T.params.paginationModifierClass + T.params.paginationType)), (T.params.nextButton || T.params.prevButton) && (T.params.nextButton && (T.nextButton = e(T.params.nextButton), T.params.uniqueNavElements && "string" == typeof T.params.nextButton && T.nextButton.length > 1 && 1 === T.container.find(T.params.nextButton).length && (T.nextButton = T.container.find(T.params.nextButton))), T.params.prevButton && (T.prevButton = e(T.params.prevButton), T.params.uniqueNavElements && "string" == typeof T.params.prevButton && T.prevButton.length > 1 && 1 === T.container.find(T.params.prevButton).length && (T.prevButton = T.container.find(T.params.prevButton)))), T.isHorizontal = function () {
  341. return "horizontal" === T.params.direction
  342. }, T.rtl = T.isHorizontal() && ("rtl" === T.container[0].dir.toLowerCase() || "rtl" === T.container.css("direction")), T.rtl && T.classNames.push(T.params.containerModifierClass + "rtl"), T.rtl && (T.wrongRTL = "-webkit-box" === T.wrapper.css("display")), T.params.slidesPerColumn > 1 && T.classNames.push(T.params.containerModifierClass + "multirow"), T.device.android && T.classNames.push(T.params.containerModifierClass + "android"), T.container.addClass(T.classNames.join(" ")), T.translate = 0, T.progress = 0, T.velocity = 0, T.lockSwipeToNext = function () {
  343. T.params.allowSwipeToNext = !1, T.params.allowSwipeToPrev === !1 && T.params.grabCursor && T.unsetGrabCursor()
  344. }, T.lockSwipeToPrev = function () {
  345. T.params.allowSwipeToPrev = !1, T.params.allowSwipeToNext === !1 && T.params.grabCursor && T.unsetGrabCursor()
  346. }, T.lockSwipes = function () {
  347. T.params.allowSwipeToNext = T.params.allowSwipeToPrev = !1, T.params.grabCursor && T.unsetGrabCursor()
  348. }, T.unlockSwipeToNext = function () {
  349. T.params.allowSwipeToNext = !0, T.params.allowSwipeToPrev === !0 && T.params.grabCursor && T.setGrabCursor()
  350. }, T.unlockSwipeToPrev = function () {
  351. T.params.allowSwipeToPrev = !0, T.params.allowSwipeToNext === !0 && T.params.grabCursor && T.setGrabCursor()
  352. }, T.unlockSwipes = function () {
  353. T.params.allowSwipeToNext = T.params.allowSwipeToPrev = !0, T.params.grabCursor && T.setGrabCursor()
  354. }, T.setGrabCursor = function (e) {
  355. T.container[0].style.cursor = "move", T.container[0].style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", T.container[0].style.cursor = e ? "-moz-grabbin" : "-moz-grab", T.container[0].style.cursor = e ? "grabbing" : "grab"
  356. }, T.unsetGrabCursor = function () {
  357. T.container[0].style.cursor = ""
  358. }, T.params.grabCursor && T.setGrabCursor(), T.imagesToLoad = [], T.imagesLoaded = 0, T.loadImage = function (e, a, t, s, i, r) {
  359. function n() {
  360. r && r()
  361. }
  362. var o;
  363. e.complete && i ? 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. }, T.preloadImages = function () {
  365. function e() {
  366. void 0 !== T && null !== T && T && (void 0 !== T.imagesLoaded && T.imagesLoaded++, T.imagesLoaded === T.imagesToLoad.length && (T.params.updateOnImagesReady && T.update(), T.emit("onImagesReady", T)))
  367. }
  368. T.imagesToLoad = T.container.find("img");
  369. for (var a = 0; a < T.imagesToLoad.length; a++) T.loadImage(T.imagesToLoad[a], T.imagesToLoad[a].currentSrc || T.imagesToLoad[a].getAttribute("src"), T.imagesToLoad[a].srcset || T.imagesToLoad[a].getAttribute("srcset"), T.imagesToLoad[a].sizes || T.imagesToLoad[a].getAttribute("sizes"), !0, e)
  370. }, T.autoplayTimeoutId = void 0, T.autoplaying = !1, T.autoplayPaused = !1, T.startAutoplay = function () {
  371. return void 0 === T.autoplayTimeoutId && (!!T.params.autoplay && (!T.autoplaying && (T.autoplaying = !0, T.emit("onAutoplayStart", T), void n())))
  372. }, T.stopAutoplay = function (e) {
  373. T.autoplayTimeoutId && (T.autoplayTimeoutId && clearTimeout(T.autoplayTimeoutId), T.autoplaying = !1, T.autoplayTimeoutId = void 0, T.emit("onAutoplayStop", T))
  374. }, T.pauseAutoplay = function (e) {
  375. T.autoplayPaused || (T.autoplayTimeoutId && clearTimeout(T.autoplayTimeoutId), T.autoplayPaused = !0, 0 === e ? (T.autoplayPaused = !1, n()) : T.wrapper.transitionEnd(function () {
  376. T && (T.autoplayPaused = !1, T.autoplaying ? n() : T.stopAutoplay())
  377. }))
  378. }, T.minTranslate = function () {
  379. return -T.snapGrid[0]
  380. }, T.maxTranslate = function () {
  381. return -T.snapGrid[T.snapGrid.length - 1]
  382. }, T.updateAutoHeight = function () {
  383. var e, a = [],
  384. t = 0;
  385. if ("auto" !== T.params.slidesPerView && T.params.slidesPerView > 1)
  386. for (e = 0; e < Math.ceil(T.params.slidesPerView); e++) {
  387. var s = T.activeIndex + e;
  388. if (s > T.slides.length) break;
  389. a.push(T.slides.eq(s)[0])
  390. } else a.push(T.slides.eq(T.activeIndex)[0]);
  391. for (e = 0; e < a.length; e++)
  392. if (void 0 !== a[e]) {
  393. var i = a[e].offsetHeight;
  394. t = i > t ? i : t
  395. } t && T.wrapper.css("height", t + "px")
  396. }, T.updateContainerSize = function () {
  397. var e, a;
  398. e = void 0 !== T.params.width ? T.params.width : T.container[0].clientWidth, a = void 0 !== T.params.height ? T.params.height : T.container[0].clientHeight, 0 === e && T.isHorizontal() || 0 === a && !T.isHorizontal() || (e = e - parseInt(T.container.css("padding-left"), 10) - parseInt(T.container.css("padding-right"), 10), a = a - parseInt(T.container.css("padding-top"), 10) - parseInt(T.container.css("padding-bottom"), 10), T.width = e, T.height = a, T.size = T.isHorizontal() ? T.width : T.height)
  399. }, T.updateSlidesSize = function () {
  400. T.slides = T.wrapper.children("." + T.params.slideClass), T.snapGrid = [], T.slidesGrid = [], T.slidesSizesGrid = [];
  401. var e, a = T.params.spaceBetween,
  402. t = -T.params.slidesOffsetBefore,
  403. s = 0,
  404. i = 0;
  405. if (void 0 !== T.size) {
  406. "string" == typeof a && a.indexOf("%") >= 0 && (a = parseFloat(a.replace("%", "")) / 100 * T.size), T.virtualSize = -a, T.rtl ? T.slides.css({
  407. marginLeft: "",
  408. marginTop: ""
  409. }) : T.slides.css({
  410. marginRight: "",
  411. marginBottom: ""
  412. });
  413. var n;
  414. T.params.slidesPerColumn > 1 && (n = Math.floor(T.slides.length / T.params.slidesPerColumn) === T.slides.length / T.params.slidesPerColumn ? T.slides.length : Math.ceil(T.slides.length / T.params.slidesPerColumn) * T.params.slidesPerColumn, "auto" !== T.params.slidesPerView && "row" === T.params.slidesPerColumnFill && (n = Math.max(n, T.params.slidesPerView * T.params.slidesPerColumn)));
  415. var o, l = T.params.slidesPerColumn,
  416. p = n / l,
  417. d = p - (T.params.slidesPerColumn * p - T.slides.length);
  418. for (e = 0; e < T.slides.length; e++) {
  419. o = 0;
  420. var u = T.slides.eq(e);
  421. if (T.params.slidesPerColumn > 1) {
  422. var c, m, h;
  423. "column" === T.params.slidesPerColumnFill ? (m = Math.floor(e / l), h = e - m * l, (m > d || m === d && h === l - 1) && ++h >= l && (h = 0, m++), c = m + h * n / l, u.css({
  424. "-webkit-box-ordinal-group": c,
  425. "-moz-box-ordinal-group": c,
  426. "-ms-flex-order": c,
  427. "-webkit-order": c,
  428. order: c
  429. })) : (h = Math.floor(e / p), m = e - h * p), u.css("margin-" + (T.isHorizontal() ? "top" : "left"), 0 !== h && T.params.spaceBetween && T.params.spaceBetween + "px").attr("data-swiper-column", m).attr("data-swiper-row", h)
  430. }
  431. "none" !== u.css("display") && ("auto" === T.params.slidesPerView ? (o = T.isHorizontal() ? u.outerWidth(!0) : u.outerHeight(!0), T.params.roundLengths && (o = r(o))) : (o = (T.size - (T.params.slidesPerView - 1) * a) / T.params.slidesPerView, T.params.roundLengths && (o = r(o)), T.isHorizontal() ? T.slides[e].style.width = o + "px" : T.slides[e].style.height = o + "px"), T.slides[e].swiperSlideSize = o, T.slidesSizesGrid.push(o), T.params.centeredSlides ? (t = t + o / 2 + s / 2 + a, 0 === s && 0 !== e && (t = t - T.size / 2 - a), 0 === e && (t = t - T.size / 2 - a), Math.abs(t) < .001 && (t = 0), i % T.params.slidesPerGroup == 0 && T.snapGrid.push(t), T.slidesGrid.push(t)) : (i % T.params.slidesPerGroup == 0 && T.snapGrid.push(t), T.slidesGrid.push(t), t = t + o + a), T.virtualSize += o + a, s = o, i++)
  432. }
  433. T.virtualSize = Math.max(T.virtualSize, T.size) + T.params.slidesOffsetAfter;
  434. var g;
  435. if (T.rtl && T.wrongRTL && ("slide" === T.params.effect || "coverflow" === T.params.effect) && T.wrapper.css({
  436. width: T.virtualSize + T.params.spaceBetween + "px"
  437. }), T.support.flexbox && !T.params.setWrapperSize || (T.isHorizontal() ? T.wrapper.css({
  438. width: T.virtualSize + T.params.spaceBetween + "px"
  439. }) : T.wrapper.css({
  440. height: T.virtualSize + T.params.spaceBetween + "px"
  441. })), T.params.slidesPerColumn > 1 && (T.virtualSize = (o + T.params.spaceBetween) * n, T.virtualSize = Math.ceil(T.virtualSize / T.params.slidesPerColumn) - T.params.spaceBetween, T.isHorizontal() ? T.wrapper.css({
  442. width: T.virtualSize + T.params.spaceBetween + "px"
  443. }) : T.wrapper.css({
  444. height: T.virtualSize + T.params.spaceBetween + "px"
  445. }), T.params.centeredSlides)) {
  446. for (g = [], e = 0; e < T.snapGrid.length; e++) T.snapGrid[e] < T.virtualSize + T.snapGrid[0] && g.push(T.snapGrid[e]);
  447. T.snapGrid = g
  448. }
  449. if (!T.params.centeredSlides) {
  450. for (g = [], e = 0; e < T.snapGrid.length; e++) T.snapGrid[e] <= T.virtualSize - T.size && g.push(T.snapGrid[e]);
  451. T.snapGrid = g, Math.floor(T.virtualSize - T.size) - Math.floor(T.snapGrid[T.snapGrid.length - 1]) > 1 && T.snapGrid.push(T.virtualSize - T.size)
  452. }
  453. 0 === T.snapGrid.length && (T.snapGrid = [0]), 0 !== T.params.spaceBetween && (T.isHorizontal() ? T.rtl ? T.slides.css({
  454. marginLeft: a + "px"
  455. }) : T.slides.css({
  456. marginRight: a + "px"
  457. }) : T.slides.css({
  458. marginBottom: a + "px"
  459. })), T.params.watchSlidesProgress && T.updateSlidesOffset()
  460. }
  461. }, T.updateSlidesOffset = function () {
  462. for (var e = 0; e < T.slides.length; e++) T.slides[e].swiperSlideOffset = T.isHorizontal() ? T.slides[e].offsetLeft : T.slides[e].offsetTop
  463. }, T.currentSlidesPerView = function () {
  464. var e, a, t = 1;
  465. if (T.params.centeredSlides) {
  466. var s, i = T.slides[T.activeIndex].swiperSlideSize;
  467. for (e = T.activeIndex + 1; e < T.slides.length; e++) T.slides[e] && !s && (i += T.slides[e].swiperSlideSize, t++, i > T.size && (s = !0));
  468. for (a = T.activeIndex - 1; a >= 0; a--) T.slides[a] && !s && (i += T.slides[a].swiperSlideSize, t++, i > T.size && (s = !0))
  469. } else
  470. for (e = T.activeIndex + 1; e < T.slides.length; e++) T.slidesGrid[e] - T.slidesGrid[T.activeIndex] < T.size && t++;
  471. return t
  472. }, T.updateSlidesProgress = function (e) {
  473. if (void 0 === e && (e = T.translate || 0), 0 !== T.slides.length) {
  474. void 0 === T.slides[0].swiperSlideOffset && T.updateSlidesOffset();
  475. var a = -e;
  476. T.rtl && (a = e), T.slides.removeClass(T.params.slideVisibleClass);
  477. for (var t = 0; t < T.slides.length; t++) {
  478. var s = T.slides[t],
  479. i = (a + (T.params.centeredSlides ? T.minTranslate() : 0) - s.swiperSlideOffset) / (s.swiperSlideSize + T.params.spaceBetween);
  480. if (T.params.watchSlidesVisibility) {
  481. var r = -(a - s.swiperSlideOffset),
  482. n = r + T.slidesSizesGrid[t];
  483. (r >= 0 && r < T.size || n > 0 && n <= T.size || r <= 0 && n >= T.size) && T.slides.eq(t).addClass(T.params.slideVisibleClass)
  484. }
  485. s.progress = T.rtl ? -i : i
  486. }
  487. }
  488. }, T.updateProgress = function (e) {
  489. void 0 === e && (e = T.translate || 0);
  490. var a = T.maxTranslate() - T.minTranslate(),
  491. t = T.isBeginning,
  492. s = T.isEnd;
  493. 0 === a ? (T.progress = 0, T.isBeginning = T.isEnd = !0) : (T.progress = (e - T.minTranslate()) / a, T.isBeginning = T.progress <= 0, T.isEnd = T.progress >= 1), T.isBeginning && !t && T.emit("onReachBeginning", T), T.isEnd && !s && T.emit("onReachEnd", T), T.params.watchSlidesProgress && T.updateSlidesProgress(e), T.emit("onProgress", T, T.progress)
  494. }, T.updateActiveIndex = function () {
  495. var e, a, t, s = T.rtl ? T.translate : -T.translate;
  496. for (a = 0; a < T.slidesGrid.length; a++) void 0 !== T.slidesGrid[a + 1] ? s >= T.slidesGrid[a] && s < T.slidesGrid[a + 1] - (T.slidesGrid[a + 1] - T.slidesGrid[a]) / 2 ? e = a : s >= T.slidesGrid[a] && s < T.slidesGrid[a + 1] && (e = a + 1) : s >= T.slidesGrid[a] && (e = a);
  497. T.params.normalizeSlideIndex && (e < 0 || void 0 === e) && (e = 0), t = Math.floor(e / T.params.slidesPerGroup), t >= T.snapGrid.length && (t = T.snapGrid.length - 1), e !== T.activeIndex && (T.snapIndex = t, T.previousIndex = T.activeIndex, T.activeIndex = e, T.updateClasses(), T.updateRealIndex())
  498. }, T.updateRealIndex = function () {
  499. T.realIndex = parseInt(T.slides.eq(T.activeIndex).attr("data-swiper-slide-index") || T.activeIndex, 10)
  500. }, T.updateClasses = function () {
  501. T.slides.removeClass(T.params.slideActiveClass + " " + T.params.slideNextClass + " " + T.params.slidePrevClass + " " + T.params.slideDuplicateActiveClass + " " + T.params.slideDuplicateNextClass + " " + T.params.slideDuplicatePrevClass);
  502. var a = T.slides.eq(T.activeIndex);
  503. a.addClass(T.params.slideActiveClass), i.loop && (a.hasClass(T.params.slideDuplicateClass) ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + T.realIndex + '"]').addClass(T.params.slideDuplicateActiveClass) : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + T.realIndex + '"]').addClass(T.params.slideDuplicateActiveClass));
  504. var t = a.next("." + T.params.slideClass).addClass(T.params.slideNextClass);
  505. T.params.loop && 0 === t.length && (t = T.slides.eq(0), t.addClass(T.params.slideNextClass));
  506. var s = a.prev("." + T.params.slideClass).addClass(T.params.slidePrevClass);
  507. if (T.params.loop && 0 === s.length && (s = T.slides.eq(-1), s.addClass(T.params.slidePrevClass)), i.loop && (t.hasClass(T.params.slideDuplicateClass) ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicateNextClass) : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicateNextClass), s.hasClass(T.params.slideDuplicateClass) ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + s.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicatePrevClass) : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + s.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicatePrevClass)), T.paginationContainer && T.paginationContainer.length > 0) {
  508. var r, n = T.params.loop ? Math.ceil((T.slides.length - 2 * T.loopedSlides) / T.params.slidesPerGroup) : T.snapGrid.length;
  509. if (T.params.loop ? (r = Math.ceil((T.activeIndex - T.loopedSlides) / T.params.slidesPerGroup), r > T.slides.length - 1 - 2 * T.loopedSlides && (r -= T.slides.length - 2 * T.loopedSlides), r > n - 1 && (r -= n), r < 0 && "bullets" !== T.params.paginationType && (r = n + r)) : r = void 0 !== T.snapIndex ? T.snapIndex : T.activeIndex || 0, "bullets" === T.params.paginationType && T.bullets && T.bullets.length > 0 && (T.bullets.removeClass(T.params.bulletActiveClass), T.paginationContainer.length > 1 ? T.bullets.each(function () {
  510. e(this).index() === r && e(this).addClass(T.params.bulletActiveClass)
  511. }) : T.bullets.eq(r).addClass(T.params.bulletActiveClass)), "fraction" === T.params.paginationType && (T.paginationContainer.find("." + T.params.paginationCurrentClass).text(r + 1), T.paginationContainer.find("." + T.params.paginationTotalClass).text(n)), "progress" === T.params.paginationType) {
  512. var o = (r + 1) / n,
  513. l = o,
  514. p = 1;
  515. T.isHorizontal() || (p = o, l = 1), T.paginationContainer.find("." + T.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX(" + l + ") scaleY(" + p + ")").transition(T.params.speed)
  516. }
  517. "custom" === T.params.paginationType && T.params.paginationCustomRender && (T.paginationContainer.html(T.params.paginationCustomRender(T, r + 1, n)), T.emit("onPaginationRendered", T, T.paginationContainer[0]))
  518. }
  519. T.params.loop || (T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.isBeginning ? (T.prevButton.addClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.disable(T.prevButton)) : (T.prevButton.removeClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.enable(T.prevButton))), T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.isEnd ? (T.nextButton.addClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.disable(T.nextButton)) : (T.nextButton.removeClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.enable(T.nextButton))))
  520. }, T.updatePagination = function () {
  521. if (T.params.pagination && T.paginationContainer && T.paginationContainer.length > 0) {
  522. var e = "";
  523. if ("bullets" === T.params.paginationType) {
  524. for (var a = T.params.loop ? Math.ceil((T.slides.length - 2 * T.loopedSlides) / T.params.slidesPerGroup) : T.snapGrid.length, t = 0; t < a; t++) e += T.params.paginationBulletRender ? T.params.paginationBulletRender(T, t, T.params.bulletClass) : "<" + T.params.paginationElement + ' class="' + T.params.bulletClass + '"></' + T.params.paginationElement + ">";
  525. T.paginationContainer.html(e), T.bullets = T.paginationContainer.find("." + T.params.bulletClass), T.params.paginationClickable && T.params.a11y && T.a11y && T.a11y.initPagination()
  526. }
  527. "fraction" === T.params.paginationType && (e = T.params.paginationFractionRender ? T.params.paginationFractionRender(T, T.params.paginationCurrentClass, T.params.paginationTotalClass) : '<span class="' + T.params.paginationCurrentClass + '"></span> / <span class="' + T.params.paginationTotalClass + '"></span>', T.paginationContainer.html(e)), "progress" === T.params.paginationType && (e = T.params.paginationProgressRender ? T.params.paginationProgressRender(T, T.params.paginationProgressbarClass) : '<span class="' + T.params.paginationProgressbarClass + '"></span>', T.paginationContainer.html(e)), "custom" !== T.params.paginationType && T.emit("onPaginationRendered", T, T.paginationContainer[0])
  528. }
  529. }, T.update = function (e) {
  530. function a() {
  531. T.rtl, T.translate;
  532. t = Math.min(Math.max(T.translate, T.maxTranslate()), T.minTranslate()), T.setWrapperTranslate(t), T.updateActiveIndex(), T.updateClasses()
  533. }
  534. if (T) {
  535. T.updateContainerSize(), T.updateSlidesSize(), T.updateProgress(), T.updatePagination(), T.updateClasses(), T.params.scrollbar && T.scrollbar && T.scrollbar.set();
  536. var t;
  537. if (e) {
  538. T.controller && T.controller.spline && (T.controller.spline = void 0), T.params.freeMode ? (a(), T.params.autoHeight && T.updateAutoHeight()) : (("auto" === T.params.slidesPerView || T.params.slidesPerView > 1) && T.isEnd && !T.params.centeredSlides ? T.slideTo(T.slides.length - 1, 0, !1, !0) : T.slideTo(T.activeIndex, 0, !1, !0)) || a()
  539. } else T.params.autoHeight && T.updateAutoHeight()
  540. }
  541. }, T.onResize = function (e) {
  542. T.params.onBeforeResize && T.params.onBeforeResize(T), T.params.breakpoints && T.setBreakpoint();
  543. var a = T.params.allowSwipeToPrev,
  544. t = T.params.allowSwipeToNext;
  545. T.params.allowSwipeToPrev = T.params.allowSwipeToNext = !0, T.updateContainerSize(), T.updateSlidesSize(), ("auto" === T.params.slidesPerView || T.params.freeMode || e) && T.updatePagination(), T.params.scrollbar && T.scrollbar && T.scrollbar.set(), T.controller && T.controller.spline && (T.controller.spline = void 0);
  546. var s = !1;
  547. if (T.params.freeMode) {
  548. var i = Math.min(Math.max(T.translate, T.maxTranslate()), T.minTranslate());
  549. T.setWrapperTranslate(i), T.updateActiveIndex(), T.updateClasses(), T.params.autoHeight && T.updateAutoHeight()
  550. } else T.updateClasses(), s = ("auto" === T.params.slidesPerView || T.params.slidesPerView > 1) && T.isEnd && !T.params.centeredSlides ? T.slideTo(T.slides.length - 1, 0, !1, !0) : T.slideTo(T.activeIndex, 0, !1, !0);
  551. T.params.lazyLoading && !s && T.lazy && T.lazy.load(), T.params.allowSwipeToPrev = a, T.params.allowSwipeToNext = t, T.params.onAfterResize && T.params.onAfterResize(T)
  552. }, T.touchEventsDesktop = {
  553. start: "mousedown",
  554. move: "mousemove",
  555. end: "mouseup"
  556. }, window.navigator.pointerEnabled ? T.touchEventsDesktop = {
  557. start: "pointerdown",
  558. move: "pointermove",
  559. end: "pointerup"
  560. } : window.navigator.msPointerEnabled && (T.touchEventsDesktop = {
  561. start: "MSPointerDown",
  562. move: "MSPointerMove",
  563. end: "MSPointerUp"
  564. }), T.touchEvents = {
  565. start: T.support.touch || !T.params.simulateTouch ? "touchstart" : T.touchEventsDesktop.start,
  566. move: T.support.touch || !T.params.simulateTouch ? "touchmove" : T.touchEventsDesktop.move,
  567. end: T.support.touch || !T.params.simulateTouch ? "touchend" : T.touchEventsDesktop.end
  568. }, (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === T.params.touchEventsTarget ? T.container : T.wrapper).addClass("swiper-wp8-" + T.params.direction), T.initEvents = function (e) {
  569. var a = e ? "off" : "on",
  570. t = e ? "removeEventListener" : "addEventListener",
  571. s = "container" === T.params.touchEventsTarget ? T.container[0] : T.wrapper[0],
  572. r = T.support.touch ? s : document,
  573. n = !!T.params.nested;
  574. if (T.browser.ie) s[t](T.touchEvents.start, T.onTouchStart, !1), r[t](T.touchEvents.move, T.onTouchMove, n), r[t](T.touchEvents.end, T.onTouchEnd, !1);
  575. else {
  576. if (T.support.touch) {
  577. var o = !("touchstart" !== T.touchEvents.start || !T.support.passiveListener || !T.params.passiveListeners) && {
  578. passive: !0,
  579. capture: !1
  580. };
  581. s[t](T.touchEvents.start, T.onTouchStart, o), s[t](T.touchEvents.move, T.onTouchMove, n), s[t](T.touchEvents.end, T.onTouchEnd, o)
  582. }(i.simulateTouch && !T.device.ios && !T.device.android || i.simulateTouch && !T.support.touch && T.device.ios) && (s[t]("mousedown", T.onTouchStart, !1), document[t]("mousemove", T.onTouchMove, n), document[t]("mouseup", T.onTouchEnd, !1))
  583. }
  584. window[t]("resize", T.onResize), T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.nextButton[a]("click", T.onClickNext), T.params.a11y && T.a11y && T.nextButton[a]("keydown", T.a11y.onEnterKey)), T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.prevButton[a]("click", T.onClickPrev), T.params.a11y && T.a11y && T.prevButton[a]("keydown", T.a11y.onEnterKey)), T.params.pagination && T.params.paginationClickable && (T.paginationContainer[a]("click", "." + T.params.bulletClass, T.onClickIndex), T.params.a11y && T.a11y && T.paginationContainer[a]("keydown", "." + T.params.bulletClass, T.a11y.onEnterKey)), (T.params.preventClicks || T.params.preventClicksPropagation) && s[t]("click", T.preventClicks, !0)
  585. }, T.attachEvents = function () {
  586. T.initEvents()
  587. }, T.detachEvents = function () {
  588. T.initEvents(!0)
  589. }, T.allowClick = !0, T.preventClicks = function (e) {
  590. T.allowClick || (T.params.preventClicks && e.preventDefault(), T.params.preventClicksPropagation && T.animating && (e.stopPropagation(), e.stopImmediatePropagation()))
  591. }, T.onClickNext = function (e) {
  592. e.preventDefault(), T.isEnd && !T.params.loop || T.slideNext()
  593. }, T.onClickPrev = function (e) {
  594. e.preventDefault(), T.isBeginning && !T.params.loop || T.slidePrev()
  595. }, T.onClickIndex = function (a) {
  596. a.preventDefault();
  597. var t = e(this).index() * T.params.slidesPerGroup;
  598. T.params.loop && (t += T.loopedSlides), T.slideTo(t)
  599. },
  600. T.updateClickedSlide = function (a) {
  601. var t = o(a, "." + T.params.slideClass),
  602. s = !1;
  603. if (t)
  604. for (var i = 0; i < T.slides.length; i++) T.slides[i] === t && (s = !0);
  605. if (!t || !s) return T.clickedSlide = void 0, void(T.clickedIndex = void 0);
  606. if (T.clickedSlide = t, T.clickedIndex = e(t).index(), T.params.slideToClickedSlide && void 0 !== T.clickedIndex && T.clickedIndex !== T.activeIndex) {
  607. var r, n = T.clickedIndex,
  608. l = "auto" === T.params.slidesPerView ? T.currentSlidesPerView() : T.params.slidesPerView;
  609. if (T.params.loop) {
  610. if (T.animating) return;
  611. r = parseInt(e(T.clickedSlide).attr("data-swiper-slide-index"), 10), T.params.centeredSlides ? n < T.loopedSlides - l / 2 || n > T.slides.length - T.loopedSlides + l / 2 ? (T.fixLoop(), n = T.wrapper.children("." + T.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + T.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function () {
  612. T.slideTo(n)
  613. }, 0)) : T.slideTo(n) : n > T.slides.length - l ? (T.fixLoop(), n = T.wrapper.children("." + T.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + T.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function () {
  614. T.slideTo(n)
  615. }, 0)) : T.slideTo(n)
  616. } else T.slideTo(n)
  617. }
  618. };
  619. var S, C, z, M, E, P, I, k, L, D, B = "input, select, textarea, button, video",
  620. H = Date.now(),
  621. G = [];
  622. T.animating = !1, T.touches = {
  623. startX: 0,
  624. startY: 0,
  625. currentX: 0,
  626. currentY: 0,
  627. diff: 0
  628. };
  629. var X, A;
  630. T.onTouchStart = function (a) {
  631. if (a.originalEvent && (a = a.originalEvent), (X = "touchstart" === a.type) || !("which" in a) || 3 !== a.which) {
  632. if (T.params.noSwiping && o(a, "." + T.params.noSwipingClass)) return void(T.allowClick = !0);
  633. if (!T.params.swipeHandler || o(a, T.params.swipeHandler)) {
  634. var t = T.touches.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX,
  635. s = T.touches.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY;
  636. if (!(T.device.ios && T.params.iOSEdgeSwipeDetection && t <= T.params.iOSEdgeSwipeThreshold)) {
  637. if (S = !0, C = !1, z = !0, E = void 0, A = void 0, T.touches.startX = t, T.touches.startY = s, M = Date.now(), T.allowClick = !0, T.updateContainerSize(), T.swipeDirection = void 0, T.params.threshold > 0 && (k = !1), "touchstart" !== a.type) {
  638. var i = !0;
  639. e(a.target).is(B) && (i = !1), document.activeElement && e(document.activeElement).is(B) && document.activeElement.blur(), i && a.preventDefault()
  640. }
  641. T.emit("onTouchStart", T, a)
  642. }
  643. }
  644. }
  645. }, T.onTouchMove = function (a) {
  646. if (a.originalEvent && (a = a.originalEvent), !X || "mousemove" !== a.type) {
  647. if (a.preventedByNestedSwiper) return T.touches.startX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, void(T.touches.startY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY);
  648. if (T.params.onlyExternal) return T.allowClick = !1, void(S && (T.touches.startX = T.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, T.touches.startY = T.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, M = Date.now()));
  649. if (X && T.params.touchReleaseOnEdges && !T.params.loop)
  650. if (T.isHorizontal()) {
  651. if (T.touches.currentX < T.touches.startX && T.translate <= T.maxTranslate() || T.touches.currentX > T.touches.startX && T.translate >= T.minTranslate()) return
  652. } else if (T.touches.currentY < T.touches.startY && T.translate <= T.maxTranslate() || T.touches.currentY > T.touches.startY && T.translate >= T.minTranslate()) return;
  653. if (X && document.activeElement && a.target === document.activeElement && e(a.target).is(B)) return C = !0, void(T.allowClick = !1);
  654. if (z && T.emit("onTouchMove", T, a), !(a.targetTouches && a.targetTouches.length > 1)) {
  655. if (T.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, T.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, void 0 === E) {
  656. var t;
  657. T.isHorizontal() && T.touches.currentY === T.touches.startY || !T.isHorizontal() && T.touches.currentX === T.touches.startX ? E = !1 : (t = 180 * Math.atan2(Math.abs(T.touches.currentY - T.touches.startY), Math.abs(T.touches.currentX - T.touches.startX)) / Math.PI, E = T.isHorizontal() ? t > T.params.touchAngle : 90 - t > T.params.touchAngle)
  658. }
  659. if (E && T.emit("onTouchMoveOpposite", T, a), void 0 === A && (T.touches.currentX === T.touches.startX && T.touches.currentY === T.touches.startY || (A = !0)), S) {
  660. if (E) return void(S = !1);
  661. if (A) {
  662. T.allowClick = !1, T.emit("onSliderMove", T, a), a.preventDefault(), T.params.touchMoveStopPropagation && !T.params.nested && a.stopPropagation(), C || (i.loop && T.fixLoop(), I = T.getWrapperTranslate(), T.setWrapperTransition(0), T.animating && T.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), T.params.autoplay && T.autoplaying && (T.params.autoplayDisableOnInteraction ? T.stopAutoplay() : T.pauseAutoplay()), D = !1, !T.params.grabCursor || T.params.allowSwipeToNext !== !0 && T.params.allowSwipeToPrev !== !0 || T.setGrabCursor(!0)), C = !0;
  663. var s = T.touches.diff = T.isHorizontal() ? T.touches.currentX - T.touches.startX : T.touches.currentY - T.touches.startY;
  664. s *= T.params.touchRatio, T.rtl && (s = -s), T.swipeDirection = s > 0 ? "prev" : "next", P = s + I;
  665. var r = !0;
  666. if (s > 0 && P > T.minTranslate() ? (r = !1, T.params.resistance && (P = T.minTranslate() - 1 + Math.pow(-T.minTranslate() + I + s, T.params.resistanceRatio))) : s < 0 && P < T.maxTranslate() && (r = !1, T.params.resistance && (P = T.maxTranslate() + 1 - Math.pow(T.maxTranslate() - I - s, T.params.resistanceRatio))), r && (a.preventedByNestedSwiper = !0), !T.params.allowSwipeToNext && "next" === T.swipeDirection && P < I && (P = I), !T.params.allowSwipeToPrev && "prev" === T.swipeDirection && P > I && (P = I), T.params.threshold > 0) {
  667. if (!(Math.abs(s) > T.params.threshold || k)) return void(P = I);
  668. if (!k) return k = !0, T.touches.startX = T.touches.currentX, T.touches.startY = T.touches.currentY, P = I, void(T.touches.diff = T.isHorizontal() ? T.touches.currentX - T.touches.startX : T.touches.currentY - T.touches.startY)
  669. }
  670. T.params.followFinger && ((T.params.freeMode || T.params.watchSlidesProgress) && T.updateActiveIndex(), T.params.freeMode && (0 === G.length && G.push({
  671. position: T.touches[T.isHorizontal() ? "startX" : "startY"],
  672. time: M
  673. }), G.push({
  674. position: T.touches[T.isHorizontal() ? "currentX" : "currentY"],
  675. time: (new window.Date).getTime()
  676. })), T.updateProgress(P), T.setWrapperTranslate(P))
  677. }
  678. }
  679. }
  680. }
  681. }, T.onTouchEnd = function (a) {
  682. if (a.originalEvent && (a = a.originalEvent), z && T.emit("onTouchEnd", T, a), z = !1, S) {
  683. T.params.grabCursor && C && S && (T.params.allowSwipeToNext === !0 || T.params.allowSwipeToPrev === !0) && T.setGrabCursor(!1);
  684. var t = Date.now(),
  685. s = t - M;
  686. if (T.allowClick && (T.updateClickedSlide(a), T.emit("onTap", T, a), s < 300 && t - H > 300 && (L && clearTimeout(L), L = setTimeout(function () {
  687. T && (T.params.paginationHide && T.paginationContainer.length > 0 && !e(a.target).hasClass(T.params.bulletClass) && T.paginationContainer.toggleClass(T.params.paginationHiddenClass), T.emit("onClick", T, a))
  688. }, 300)), s < 300 && t - H < 300 && (L && clearTimeout(L), T.emit("onDoubleTap", T, a))), H = Date.now(), setTimeout(function () {
  689. T && (T.allowClick = !0)
  690. }, 0), !S || !C || !T.swipeDirection || 0 === T.touches.diff || P === I) return void(S = C = !1);
  691. S = C = !1;
  692. var i;
  693. if (i = T.params.followFinger ? T.rtl ? T.translate : -T.translate : -P, T.params.freeMode) {
  694. if (i < -T.minTranslate()) return void T.slideTo(T.activeIndex);
  695. if (i > -T.maxTranslate()) return void(T.slides.length < T.snapGrid.length ? T.slideTo(T.snapGrid.length - 1) : T.slideTo(T.slides.length - 1));
  696. if (T.params.freeModeMomentum) {
  697. if (G.length > 1) {
  698. var r = G.pop(),
  699. n = G.pop(),
  700. o = r.position - n.position,
  701. l = r.time - n.time;
  702. T.velocity = o / l, T.velocity = T.velocity / 2, Math.abs(T.velocity) < T.params.freeModeMinimumVelocity && (T.velocity = 0), (l > 150 || (new window.Date).getTime() - r.time > 300) && (T.velocity = 0)
  703. } else T.velocity = 0;
  704. T.velocity = T.velocity * T.params.freeModeMomentumVelocityRatio, G.length = 0;
  705. var p = 1e3 * T.params.freeModeMomentumRatio,
  706. d = T.velocity * p,
  707. u = T.translate + d;
  708. T.rtl && (u = -u);
  709. var c, m = !1,
  710. h = 20 * Math.abs(T.velocity) * T.params.freeModeMomentumBounceRatio;
  711. if (u < T.maxTranslate()) T.params.freeModeMomentumBounce ? (u + T.maxTranslate() < -h && (u = T.maxTranslate() - h), c = T.maxTranslate(), m = !0, D = !0) : u = T.maxTranslate();
  712. else if (u > T.minTranslate()) T.params.freeModeMomentumBounce ? (u - T.minTranslate() > h && (u = T.minTranslate() + h), c = T.minTranslate(), m = !0, D = !0) : u = T.minTranslate();
  713. else if (T.params.freeModeSticky) {
  714. var g, f = 0;
  715. for (f = 0; f < T.snapGrid.length; f += 1)
  716. if (T.snapGrid[f] > -u) {
  717. g = f;
  718. break
  719. } u = Math.abs(T.snapGrid[g] - u) < Math.abs(T.snapGrid[g - 1] - u) || "next" === T.swipeDirection ? T.snapGrid[g] : T.snapGrid[g - 1], T.rtl || (u = -u)
  720. }
  721. if (0 !== T.velocity) p = T.rtl ? Math.abs((-u - T.translate) / T.velocity) : Math.abs((u - T.translate) / T.velocity);
  722. else if (T.params.freeModeSticky) return void T.slideReset();
  723. T.params.freeModeMomentumBounce && m ? (T.updateProgress(c), T.setWrapperTransition(p), T.setWrapperTranslate(u), T.onTransitionStart(), T.animating = !0, T.wrapper.transitionEnd(function () {
  724. T && D && (T.emit("onMomentumBounce", T), T.setWrapperTransition(T.params.speed), T.setWrapperTranslate(c), T.wrapper.transitionEnd(function () {
  725. T && T.onTransitionEnd()
  726. }))
  727. })) : T.velocity ? (T.updateProgress(u), T.setWrapperTransition(p), T.setWrapperTranslate(u), T.onTransitionStart(), T.animating || (T.animating = !0, T.wrapper.transitionEnd(function () {
  728. T && T.onTransitionEnd()
  729. }))) : T.updateProgress(u), T.updateActiveIndex()
  730. }
  731. return void((!T.params.freeModeMomentum || s >= T.params.longSwipesMs) && (T.updateProgress(), T.updateActiveIndex()))
  732. }
  733. var v, w = 0,
  734. y = T.slidesSizesGrid[0];
  735. for (v = 0; v < T.slidesGrid.length; v += T.params.slidesPerGroup) void 0 !== T.slidesGrid[v + T.params.slidesPerGroup] ? i >= T.slidesGrid[v] && i < T.slidesGrid[v + T.params.slidesPerGroup] && (w = v, y = T.slidesGrid[v + T.params.slidesPerGroup] - T.slidesGrid[v]) : i >= T.slidesGrid[v] && (w = v, y = T.slidesGrid[T.slidesGrid.length - 1] - T.slidesGrid[T.slidesGrid.length - 2]);
  736. var x = (i - T.slidesGrid[w]) / y;
  737. if (s > T.params.longSwipesMs) {
  738. if (!T.params.longSwipes) return void T.slideTo(T.activeIndex);
  739. "next" === T.swipeDirection && (x >= T.params.longSwipesRatio ? T.slideTo(w + T.params.slidesPerGroup) : T.slideTo(w)), "prev" === T.swipeDirection && (x > 1 - T.params.longSwipesRatio ? T.slideTo(w + T.params.slidesPerGroup) : T.slideTo(w))
  740. } else {
  741. if (!T.params.shortSwipes) return void T.slideTo(T.activeIndex);
  742. "next" === T.swipeDirection && T.slideTo(w + T.params.slidesPerGroup), "prev" === T.swipeDirection && T.slideTo(w)
  743. }
  744. }
  745. }, T._slideTo = function (e, a) {
  746. return T.slideTo(e, a, !0, !0)
  747. }, T.slideTo = function (e, a, t, s) {
  748. void 0 === t && (t = !0), void 0 === e && (e = 0), e < 0 && (e = 0), T.snapIndex = Math.floor(e / T.params.slidesPerGroup), T.snapIndex >= T.snapGrid.length && (T.snapIndex = T.snapGrid.length - 1);
  749. var i = -T.snapGrid[T.snapIndex];
  750. if (T.params.autoplay && T.autoplaying && (s || !T.params.autoplayDisableOnInteraction ? T.pauseAutoplay(a) : T.stopAutoplay()), T.updateProgress(i), T.params.normalizeSlideIndex)
  751. for (var r = 0; r < T.slidesGrid.length; r++) - Math.floor(100 * i) >= Math.floor(100 * T.slidesGrid[r]) && (e = r);
  752. return !(!T.params.allowSwipeToNext && i < T.translate && i < T.minTranslate()) && (!(!T.params.allowSwipeToPrev && i > T.translate && i > T.maxTranslate() && (T.activeIndex || 0) !== e) && (void 0 === a && (a = T.params.speed), T.previousIndex = T.activeIndex || 0, T.activeIndex = e, T.updateRealIndex(), T.rtl && -i === T.translate || !T.rtl && i === T.translate ? (T.params.autoHeight && T.updateAutoHeight(), T.updateClasses(), "slide" !== T.params.effect && T.setWrapperTranslate(i), !1) : (T.updateClasses(), T.onTransitionStart(t), 0 === a || T.browser.lteIE9 ? (T.setWrapperTranslate(i), T.setWrapperTransition(0), T.onTransitionEnd(t)) : (T.setWrapperTranslate(i), T.setWrapperTransition(a), T.animating || (T.animating = !0, T.wrapper.transitionEnd(function () {
  753. T && T.onTransitionEnd(t)
  754. }))), !0)))
  755. }, T.onTransitionStart = function (e) {
  756. void 0 === e && (e = !0), T.params.autoHeight && T.updateAutoHeight(), T.lazy && T.lazy.onTransitionStart(), e && (T.emit("onTransitionStart", T), T.activeIndex !== T.previousIndex && (T.emit("onSlideChangeStart", T), T.activeIndex > T.previousIndex ? T.emit("onSlideNextStart", T) : T.emit("onSlidePrevStart", T)))
  757. }, T.onTransitionEnd = function (e) {
  758. T.animating = !1, T.setWrapperTransition(0), void 0 === e && (e = !0), T.lazy && T.lazy.onTransitionEnd(), e && (T.emit("onTransitionEnd", T), T.activeIndex !== T.previousIndex && (T.emit("onSlideChangeEnd", T), T.activeIndex > T.previousIndex ? T.emit("onSlideNextEnd", T) : T.emit("onSlidePrevEnd", T))), T.params.history && T.history && T.history.setHistory(T.params.history, T.activeIndex), T.params.hashnav && T.hashnav && T.hashnav.setHash()
  759. }, T.slideNext = function (e, a, t) {
  760. if (T.params.loop) {
  761. if (T.animating) return !1;
  762. T.fixLoop();
  763. T.container[0].clientLeft;
  764. return T.slideTo(T.activeIndex + T.params.slidesPerGroup, a, e, t)
  765. }
  766. return T.slideTo(T.activeIndex + T.params.slidesPerGroup, a, e, t)
  767. }, T._slideNext = function (e) {
  768. return T.slideNext(!0, e, !0)
  769. }, T.slidePrev = function (e, a, t) {
  770. if (T.params.loop) {
  771. if (T.animating) return !1;
  772. T.fixLoop();
  773. T.container[0].clientLeft;
  774. return T.slideTo(T.activeIndex - 1, a, e, t)
  775. }
  776. return T.slideTo(T.activeIndex - 1, a, e, t)
  777. }, T._slidePrev = function (e) {
  778. return T.slidePrev(!0, e, !0)
  779. }, T.slideReset = function (e, a, t) {
  780. return T.slideTo(T.activeIndex, a, e)
  781. }, T.disableTouchControl = function () {
  782. return T.params.onlyExternal = !0, !0
  783. }, T.enableTouchControl = function () {
  784. return T.params.onlyExternal = !1, !0
  785. }, T.setWrapperTransition = function (e, a) {
  786. T.wrapper.transition(e), "slide" !== T.params.effect && T.effects[T.params.effect] && T.effects[T.params.effect].setTransition(e), T.params.parallax && T.parallax && T.parallax.setTransition(e), T.params.scrollbar && T.scrollbar && T.scrollbar.setTransition(e), T.params.control && T.controller && T.controller.setTransition(e, a), T.emit("onSetTransition", T, e)
  787. }, T.setWrapperTranslate = function (e, a, t) {
  788. var s = 0,
  789. i = 0;
  790. T.isHorizontal() ? s = T.rtl ? -e : e : i = e, T.params.roundLengths && (s = r(s), i = r(i)), T.params.virtualTranslate || (T.support.transforms3d ? T.wrapper.transform("translate3d(" + s + "px, " + i + "px, 0px)") : T.wrapper.transform("translate(" + s + "px, " + i + "px)")), T.translate = T.isHorizontal() ? s : i;
  791. var n, o = T.maxTranslate() - T.minTranslate();
  792. n = 0 === o ? 0 : (e - T.minTranslate()) / o, n !== T.progress && T.updateProgress(e), a && T.updateActiveIndex(), "slide" !== T.params.effect && T.effects[T.params.effect] && T.effects[T.params.effect].setTranslate(T.translate), T.params.parallax && T.parallax && T.parallax.setTranslate(T.translate), T.params.scrollbar && T.scrollbar && T.scrollbar.setTranslate(T.translate), T.params.control && T.controller && T.controller.setTranslate(T.translate, t), T.emit("onSetTranslate", T, T.translate)
  793. }, T.getTranslate = function (e, a) {
  794. var t, s, i, r;
  795. return void 0 === a && (a = "x"), T.params.virtualTranslate ? T.rtl ? -T.translate : T.translate : (i = window.getComputedStyle(e, null), window.WebKitCSSMatrix ? (s = i.transform || i.webkitTransform, s.split(",").length > 6 && (s = s.split(", ").map(function (e) {
  796. return e.replace(",", ".")
  797. }).join(", ")), r = new window.WebKitCSSMatrix("none" === s ? "" : s)) : (r = i.MozTransform || i.OTransform || i.MsTransform || i.msTransform || i.transform || i.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), t = r.toString().split(",")), "x" === a && (s = window.WebKitCSSMatrix ? r.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (s = window.WebKitCSSMatrix ? r.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), T.rtl && s && (s = -s), s || 0)
  798. }, T.getWrapperTranslate = function (e) {
  799. return void 0 === e && (e = T.isHorizontal() ? "x" : "y"), T.getTranslate(T.wrapper[0], e)
  800. }, T.observers = [], T.initObservers = function () {
  801. if (T.params.observeParents)
  802. for (var e = T.container.parents(), a = 0; a < e.length; a++) l(e[a]);
  803. l(T.container[0], {
  804. childList: !1
  805. }), l(T.wrapper[0], {
  806. attributes: !1
  807. })
  808. }, T.disconnectObservers = function () {
  809. for (var e = 0; e < T.observers.length; e++) T.observers[e].disconnect();
  810. T.observers = []
  811. }, T.createLoop = function () {
  812. T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass).remove();
  813. var a = T.wrapper.children("." + T.params.slideClass);
  814. "auto" !== T.params.slidesPerView || T.params.loopedSlides || (T.params.loopedSlides = a.length), T.loopedSlides = parseInt(T.params.loopedSlides || T.params.slidesPerView, 10), T.loopedSlides = T.loopedSlides + T.params.loopAdditionalSlides, T.loopedSlides > a.length && (T.loopedSlides = a.length);
  815. var t, s = [],
  816. i = [];
  817. for (a.each(function (t, r) {
  818. var n = e(this);
  819. t < T.loopedSlides && i.push(r), t < a.length && t >= a.length - T.loopedSlides && s.push(r), n.attr("data-swiper-slide-index", t)
  820. }), t = 0; t < i.length; t++) T.wrapper.append(e(i[t].cloneNode(!0)).addClass(T.params.slideDuplicateClass));
  821. for (t = s.length - 1; t >= 0; t--) T.wrapper.prepend(e(s[t].cloneNode(!0)).addClass(T.params.slideDuplicateClass))
  822. }, T.destroyLoop = function () {
  823. T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass).remove(), T.slides.removeAttr("data-swiper-slide-index")
  824. }, T.reLoop = function (e) {
  825. var a = T.activeIndex - T.loopedSlides;
  826. T.destroyLoop(), T.createLoop(), T.updateSlidesSize(), e && T.slideTo(a + T.loopedSlides, 0, !1)
  827. }, T.fixLoop = function () {
  828. var e;
  829. T.activeIndex < T.loopedSlides ? (e = T.slides.length - 3 * T.loopedSlides + T.activeIndex, e += T.loopedSlides, T.slideTo(e, 0, !1, !0)) : ("auto" === T.params.slidesPerView && T.activeIndex >= 2 * T.loopedSlides || T.activeIndex > T.slides.length - 2 * T.params.slidesPerView) && (e = -T.slides.length + T.activeIndex + T.loopedSlides, e += T.loopedSlides, T.slideTo(e, 0, !1, !0))
  830. }, T.appendSlide = function (e) {
  831. if (T.params.loop && T.destroyLoop(), "object" == typeof e && e.length)
  832. for (var a = 0; a < e.length; a++) e[a] && T.wrapper.append(e[a]);
  833. else T.wrapper.append(e);
  834. T.params.loop && T.createLoop(), T.params.observer && T.support.observer || T.update(!0)
  835. }, T.prependSlide = function (e) {
  836. T.params.loop && T.destroyLoop();
  837. var a = T.activeIndex + 1;
  838. if ("object" == typeof e && e.length) {
  839. for (var t = 0; t < e.length; t++) e[t] && T.wrapper.prepend(e[t]);
  840. a = T.activeIndex + e.length
  841. } else T.wrapper.prepend(e);
  842. T.params.loop && T.createLoop(), T.params.observer && T.support.observer || T.update(!0), T.slideTo(a, 0, !1)
  843. }, T.removeSlide = function (e) {
  844. T.params.loop && (T.destroyLoop(), T.slides = T.wrapper.children("." + T.params.slideClass));
  845. var a, t = T.activeIndex;
  846. if ("object" == typeof e && e.length) {
  847. for (var s = 0; s < e.length; s++) a = e[s], T.slides[a] && T.slides.eq(a).remove(), a < t && t--;
  848. t = Math.max(t, 0)
  849. } else a = e, T.slides[a] && T.slides.eq(a).remove(), a < t && t--, t = Math.max(t, 0);
  850. T.params.loop && T.createLoop(), T.params.observer && T.support.observer || T.update(!0), T.params.loop ? T.slideTo(t + T.loopedSlides, 0, !1) : T.slideTo(t, 0, !1)
  851. }, T.removeAllSlides = function () {
  852. for (var e = [], a = 0; a < T.slides.length; a++) e.push(a);
  853. T.removeSlide(e)
  854. }, T.effects = {
  855. fade: {
  856. setTranslate: function () {
  857. for (var e = 0; e < T.slides.length; e++) {
  858. var a = T.slides.eq(e),
  859. t = a[0].swiperSlideOffset,
  860. s = -t;
  861. T.params.virtualTranslate || (s -= T.translate);
  862. var i = 0;
  863. T.isHorizontal() || (i = s, s = 0);
  864. var r = T.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0);
  865. a.css({
  866. opacity: r
  867. }).transform("translate3d(" + s + "px, " + i + "px, 0px)")
  868. }
  869. },
  870. setTransition: function (e) {
  871. if (T.slides.transition(e), T.params.virtualTranslate && 0 !== e) {
  872. var a = !1;
  873. T.slides.transitionEnd(function () {
  874. if (!a && T) {
  875. a = !0, T.animating = !1;
  876. for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], t = 0; t < e.length; t++) T.wrapper.trigger(e[t])
  877. }
  878. })
  879. }
  880. }
  881. },
  882. flip: {
  883. setTranslate: function () {
  884. for (var a = 0; a < T.slides.length; a++) {
  885. var t = T.slides.eq(a),
  886. s = t[0].progress;
  887. T.params.flip.limitRotation && (s = Math.max(Math.min(t[0].progress, 1), -1));
  888. var i = t[0].swiperSlideOffset,
  889. r = -180 * s,
  890. n = r,
  891. o = 0,
  892. l = -i,
  893. p = 0;
  894. if (T.isHorizontal() ? T.rtl && (n = -n) : (p = l, l = 0, o = -n, n = 0), t[0].style.zIndex = -Math.abs(Math.round(s)) + T.slides.length, T.params.flip.slideShadows) {
  895. var d = T.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"),
  896. u = T.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom");
  897. 0 === d.length && (d = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>'), t.append(d)), 0 === u.length && (u = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>'), t.append(u)), d.length && (d[0].style.opacity = Math.max(-s, 0)), u.length && (u[0].style.opacity = Math.max(s, 0))
  898. }
  899. t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)")
  900. }
  901. },
  902. setTransition: function (a) {
  903. if (T.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a), T.params.virtualTranslate && 0 !== a) {
  904. var t = !1;
  905. T.slides.eq(T.activeIndex).transitionEnd(function () {
  906. if (!t && T && e(this).hasClass(T.params.slideActiveClass)) {
  907. t = !0, T.animating = !1;
  908. for (var a = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], s = 0; s < a.length; s++) T.wrapper.trigger(a[s])
  909. }
  910. })
  911. }
  912. }
  913. },
  914. cube: {
  915. setTranslate: function () {
  916. var a, t = 0;
  917. T.params.cube.shadow && (T.isHorizontal() ? (a = T.wrapper.find(".swiper-cube-shadow"), 0 === a.length && (a = e('<div class="swiper-cube-shadow"></div>'), T.wrapper.append(a)), a.css({
  918. height: T.width + "px"
  919. })) : (a = T.container.find(".swiper-cube-shadow"), 0 === a.length && (a = e('<div class="swiper-cube-shadow"></div>'), T.container.append(a))));
  920. for (var s = 0; s < T.slides.length; s++) {
  921. var i = T.slides.eq(s),
  922. r = 90 * s,
  923. n = Math.floor(r / 360);
  924. T.rtl && (r = -r, n = Math.floor(-r / 360));
  925. var o = Math.max(Math.min(i[0].progress, 1), -1),
  926. l = 0,
  927. p = 0,
  928. d = 0;
  929. s % 4 == 0 ? (l = 4 * -n * T.size, d = 0) : (s - 1) % 4 == 0 ? (l = 0, d = 4 * -n * T.size) : (s - 2) % 4 == 0 ? (l = T.size + 4 * n * T.size, d = T.size) : (s - 3) % 4 == 0 && (l = -T.size, d = 3 * T.size + 4 * T.size * n), T.rtl && (l = -l), T.isHorizontal() || (p = l, l = 0);
  930. var u = "rotateX(" + (T.isHorizontal() ? 0 : -r) + "deg) rotateY(" + (T.isHorizontal() ? r : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)";
  931. if (o <= 1 && o > -1 && (t = 90 * s + 90 * o, T.rtl && (t = 90 * -s - 90 * o)), i.transform(u), T.params.cube.slideShadows) {
  932. var c = T.isHorizontal() ? i.find(".swiper-slide-shadow-left") : i.find(".swiper-slide-shadow-top"),
  933. m = T.isHorizontal() ? i.find(".swiper-slide-shadow-right") : i.find(".swiper-slide-shadow-bottom");
  934. 0 === c.length && (c = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>'), i.append(c)), 0 === m.length && (m = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>'), i.append(m)), c.length && (c[0].style.opacity = Math.max(-o, 0)), m.length && (m[0].style.opacity = Math.max(o, 0))
  935. }
  936. }
  937. if (T.wrapper.css({
  938. "-webkit-transform-origin": "50% 50% -" + T.size / 2 + "px",
  939. "-moz-transform-origin": "50% 50% -" + T.size / 2 + "px",
  940. "-ms-transform-origin": "50% 50% -" + T.size / 2 + "px",
  941. "transform-origin": "50% 50% -" + T.size / 2 + "px"
  942. }), T.params.cube.shadow)
  943. if (T.isHorizontal()) a.transform("translate3d(0px, " + (T.width / 2 + T.params.cube.shadowOffset) + "px, " + -T.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + T.params.cube.shadowScale + ")");
  944. else {
  945. var h = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90),
  946. g = 1.5 - (Math.sin(2 * h * Math.PI / 360) / 2 + Math.cos(2 * h * Math.PI / 360) / 2),
  947. f = T.params.cube.shadowScale,
  948. v = T.params.cube.shadowScale / g,
  949. w = T.params.cube.shadowOffset;
  950. a.transform("scale3d(" + f + ", 1, " + v + ") translate3d(0px, " + (T.height / 2 + w) + "px, " + -T.height / 2 / v + "px) rotateX(-90deg)")
  951. } var y = T.isSafari || T.isUiWebView ? -T.size / 2 : 0;
  952. T.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (T.isHorizontal() ? 0 : t) + "deg) rotateY(" + (T.isHorizontal() ? -t : 0) + "deg)")
  953. },
  954. setTransition: function (e) {
  955. T.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), T.params.cube.shadow && !T.isHorizontal() && T.container.find(".swiper-cube-shadow").transition(e)
  956. }
  957. },
  958. coverflow: {
  959. setTranslate: function () {
  960. for (var a = T.translate, t = T.isHorizontal() ? -a + T.width / 2 : -a + T.height / 2, s = T.isHorizontal() ? T.params.coverflow.rotate : -T.params.coverflow.rotate, i = T.params.coverflow.depth, r = 0, n = T.slides.length; r < n; r++) {
  961. var o = T.slides.eq(r),
  962. l = T.slidesSizesGrid[r],
  963. p = o[0].swiperSlideOffset,
  964. d = (t - p - l / 2) / l * T.params.coverflow.modifier,
  965. u = T.isHorizontal() ? s * d : 0,
  966. c = T.isHorizontal() ? 0 : s * d,
  967. m = -i * Math.abs(d),
  968. h = T.isHorizontal() ? 0 : T.params.coverflow.stretch * d,
  969. g = T.isHorizontal() ? T.params.coverflow.stretch * d : 0;
  970. Math.abs(g) < .001 && (g = 0), Math.abs(h) < .001 && (h = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0), Math.abs(c) < .001 && (c = 0);
  971. var f = "translate3d(" + g + "px," + h + "px," + m + "px) rotateX(" + c + "deg) rotateY(" + u + "deg)";
  972. if (o.transform(f), o[0].style.zIndex = 1 - Math.abs(Math.round(d)), T.params.coverflow.slideShadows) {
  973. var v = T.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"),
  974. w = T.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom");
  975. 0 === v.length && (v = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>'), o.append(v)), 0 === w.length && (w = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>'), o.append(w)), v.length && (v[0].style.opacity = d > 0 ? d : 0), w.length && (w[0].style.opacity = -d > 0 ? -d : 0)
  976. }
  977. }
  978. if (T.browser.ie) {
  979. T.wrapper[0].style.perspectiveOrigin = t + "px 50%"
  980. }
  981. },
  982. setTransition: function (e) {
  983. T.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)
  984. }
  985. }
  986. }, T.lazy = {
  987. initialImageLoaded: !1,
  988. loadImageInSlide: function (a, t) {
  989. if (void 0 !== a && (void 0 === t && (t = !0), 0 !== T.slides.length)) {
  990. var s = T.slides.eq(a),
  991. i = s.find("." + T.params.lazyLoadingClass + ":not(." + T.params.lazyStatusLoadedClass + "):not(." + T.params.lazyStatusLoadingClass + ")");
  992. !s.hasClass(T.params.lazyLoadingClass) || s.hasClass(T.params.lazyStatusLoadedClass) || s.hasClass(T.params.lazyStatusLoadingClass) || (i = i.add(s[0])), 0 !== i.length && i.each(function () {
  993. var a = e(this);
  994. a.addClass(T.params.lazyStatusLoadingClass);
  995. var i = a.attr("data-background"),
  996. r = a.attr("data-src"),
  997. n = a.attr("data-srcset"),
  998. o = a.attr("data-sizes");
  999. T.loadImage(a[0], r || i, n, o, !1, function () {
  1000. if (void 0 !== T && null !== T && T) {
  1001. if (i ? (a.css("background-image", 'url("' + i + '")'), a.removeAttr("data-background")) : (n && (a.attr("srcset", n), a.removeAttr("data-srcset")), o && (a.attr("sizes", o), a.removeAttr("data-sizes")), r && (a.attr("src", r), a.removeAttr("data-src"))), a.addClass(T.params.lazyStatusLoadedClass).removeClass(T.params.lazyStatusLoadingClass), s.find("." + T.params.lazyPreloaderClass + ", ." + T.params.preloaderClass).remove(), T.params.loop && t) {
  1002. var e = s.attr("data-swiper-slide-index");
  1003. if (s.hasClass(T.params.slideDuplicateClass)) {
  1004. var l = T.wrapper.children('[data-swiper-slide-index="' + e + '"]:not(.' + T.params.slideDuplicateClass + ")");
  1005. T.lazy.loadImageInSlide(l.index(), !1)
  1006. } else {
  1007. var p = T.wrapper.children("." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]');
  1008. T.lazy.loadImageInSlide(p.index(), !1)
  1009. }
  1010. }
  1011. T.emit("onLazyImageReady", T, s[0], a[0])
  1012. }
  1013. }), T.emit("onLazyImageLoad", T, s[0], a[0])
  1014. })
  1015. }
  1016. },
  1017. load: function () {
  1018. var a, t = T.params.slidesPerView;
  1019. if ("auto" === t && (t = 0), T.lazy.initialImageLoaded || (T.lazy.initialImageLoaded = !0), T.params.watchSlidesVisibility) T.wrapper.children("." + T.params.slideVisibleClass).each(function () {
  1020. T.lazy.loadImageInSlide(e(this).index())
  1021. });
  1022. else if (t > 1)
  1023. for (a = T.activeIndex; a < T.activeIndex + t; a++) T.slides[a] && T.lazy.loadImageInSlide(a);
  1024. else T.lazy.loadImageInSlide(T.activeIndex);
  1025. if (T.params.lazyLoadingInPrevNext)
  1026. if (t > 1 || T.params.lazyLoadingInPrevNextAmount && T.params.lazyLoadingInPrevNextAmount > 1) {
  1027. var s = T.params.lazyLoadingInPrevNextAmount,
  1028. i = t,
  1029. r = Math.min(T.activeIndex + i + Math.max(s, i), T.slides.length),
  1030. n = Math.max(T.activeIndex - Math.max(i, s), 0);
  1031. for (a = T.activeIndex + t; a < r; a++) T.slides[a] && T.lazy.loadImageInSlide(a);
  1032. for (a = n; a < T.activeIndex; a++) T.slides[a] && T.lazy.loadImageInSlide(a)
  1033. } else {
  1034. var o = T.wrapper.children("." + T.params.slideNextClass);
  1035. o.length > 0 && T.lazy.loadImageInSlide(o.index());
  1036. var l = T.wrapper.children("." + T.params.slidePrevClass);
  1037. l.length > 0 && T.lazy.loadImageInSlide(l.index())
  1038. }
  1039. },
  1040. onTransitionStart: function () {
  1041. T.params.lazyLoading && (T.params.lazyLoadingOnTransitionStart || !T.params.lazyLoadingOnTransitionStart && !T.lazy.initialImageLoaded) && T.lazy.load()
  1042. },
  1043. onTransitionEnd: function () {
  1044. T.params.lazyLoading && !T.params.lazyLoadingOnTransitionStart && T.lazy.load()
  1045. }
  1046. }, T.scrollbar = {
  1047. isTouched: !1,
  1048. setDragPosition: function (e) {
  1049. var a = T.scrollbar,
  1050. t = T.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,
  1051. s = t - a.track.offset()[T.isHorizontal() ? "left" : "top"] - a.dragSize / 2,
  1052. i = -T.minTranslate() * a.moveDivider,
  1053. r = -T.maxTranslate() * a.moveDivider;
  1054. s < i ? s = i : s > r && (s = r), s = -s / a.moveDivider, T.updateProgress(s), T.setWrapperTranslate(s, !0)
  1055. },
  1056. dragStart: function (e) {
  1057. var a = T.scrollbar;
  1058. a.isTouched = !0, e.preventDefault(), e.stopPropagation(), a.setDragPosition(e), clearTimeout(a.dragTimeout), a.track.transition(0), T.params.scrollbarHide && a.track.css("opacity", 1), T.wrapper.transition(100), a.drag.transition(100), T.emit("onScrollbarDragStart", T)
  1059. },
  1060. dragMove: function (e) {
  1061. var a = T.scrollbar;
  1062. a.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), T.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), T.emit("onScrollbarDragMove", T))
  1063. },
  1064. dragEnd: function (e) {
  1065. var a = T.scrollbar;
  1066. a.isTouched && (a.isTouched = !1, T.params.scrollbarHide && (clearTimeout(a.dragTimeout), a.dragTimeout = setTimeout(function () {
  1067. a.track.css("opacity", 0), a.track.transition(400)
  1068. }, 1e3)), T.emit("onScrollbarDragEnd", T), T.params.scrollbarSnapOnRelease && T.slideReset())
  1069. },
  1070. draggableEvents: function () {
  1071. return T.params.simulateTouch !== !1 || T.support.touch ? T.touchEvents : T.touchEventsDesktop
  1072. }(),
  1073. enableDraggable: function () {
  1074. var a = T.scrollbar,
  1075. t = T.support.touch ? a.track : document;
  1076. 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)
  1077. },
  1078. disableDraggable: function () {
  1079. var a = T.scrollbar,
  1080. t = T.support.touch ? a.track : document;
  1081. 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)
  1082. },
  1083. set: function () {
  1084. if (T.params.scrollbar) {
  1085. var a = T.scrollbar;
  1086. a.track = e(T.params.scrollbar), T.params.uniqueNavElements && "string" == typeof T.params.scrollbar && a.track.length > 1 && 1 === T.container.find(T.params.scrollbar).length && (a.track = T.container.find(T.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 = T.isHorizontal() ? a.track[0].offsetWidth : a.track[0].offsetHeight, a.divider = T.size / T.virtualSize, a.moveDivider = a.divider * (a.trackSize / T.size), a.dragSize = a.trackSize * a.divider, T.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 = "", T.params.scrollbarHide && (a.track[0].style.opacity = 0)
  1087. }
  1088. },
  1089. setTranslate: function () {
  1090. if (T.params.scrollbar) {
  1091. var e, a = T.scrollbar,
  1092. t = (T.translate, a.dragSize);
  1093. e = (a.trackSize - a.dragSize) * T.progress, T.rtl && T.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), T.isHorizontal() ? (T.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), a.drag[0].style.width = t + "px") : (T.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), a.drag[0].style.height = t + "px"), T.params.scrollbarHide && (clearTimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = setTimeout(function () {
  1094. a.track[0].style.opacity = 0, a.track.transition(400)
  1095. }, 1e3))
  1096. }
  1097. },
  1098. setTransition: function (e) {
  1099. T.params.scrollbar && T.scrollbar.drag.transition(e)
  1100. }
  1101. }, T.controller = {
  1102. LinearSpline: function (e, a) {
  1103. var t = function () {
  1104. var e, a, t;
  1105. return function (s, i) {
  1106. for (a = -1, e = s.length; e - a > 1;) s[t = e + a >> 1] <= i ? a = t : e = t;
  1107. return e
  1108. }
  1109. }();
  1110. this.x = e, this.y = a, this.lastIndex = e.length - 1;
  1111. var s, i;
  1112. this.x.length;
  1113. this.interpolate = function (e) {
  1114. return e ? (i = t(this.x, e), s = i - 1, (e - this.x[s]) * (this.y[i] - this.y[s]) / (this.x[i] - this.x[s]) + this.y[s]) : 0
  1115. }
  1116. },
  1117. getInterpolateFunction: function (e) {
  1118. T.controller.spline || (T.controller.spline = T.params.loop ? new T.controller.LinearSpline(T.slidesGrid, e.slidesGrid) : new T.controller.LinearSpline(T.snapGrid, e.snapGrid))
  1119. },
  1120. setTranslate: function (e, t) {
  1121. function s(a) {
  1122. e = a.rtl && "horizontal" === a.params.direction ? -T.translate : T.translate, "slide" === T.params.controlBy && (T.controller.getInterpolateFunction(a), r = -T.controller.spline.interpolate(-e)), r && "container" !== T.params.controlBy || (i = (a.maxTranslate() - a.minTranslate()) / (T.maxTranslate() - T.minTranslate()), r = (e - T.minTranslate()) * i + a.minTranslate()), T.params.controlInverse && (r = a.maxTranslate() - r), a.updateProgress(r), a.setWrapperTranslate(r, !1, T), a.updateActiveIndex()
  1123. }
  1124. var i, r, n = T.params.control;
  1125. if (Array.isArray(n))
  1126. for (var o = 0; o < n.length; o++) n[o] !== t && n[o] instanceof a && s(n[o]);
  1127. else n instanceof a && t !== n && s(n)
  1128. },
  1129. setTransition: function (e, t) {
  1130. function s(a) {
  1131. a.setWrapperTransition(e, T), 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function () {
  1132. r && (a.params.loop && "slide" === T.params.controlBy && a.fixLoop(), a.onTransitionEnd())
  1133. }))
  1134. }
  1135. var i, r = T.params.control;
  1136. if (Array.isArray(r))
  1137. for (i = 0; i < r.length; i++) r[i] !== t && r[i] instanceof a && s(r[i]);
  1138. else r instanceof a && t !== r && s(r)
  1139. }
  1140. }, T.hashnav = {
  1141. onHashCange: function (e, a) {
  1142. var t = document.location.hash.replace("#", "");
  1143. t !== T.slides.eq(T.activeIndex).attr("data-hash") && T.slideTo(T.wrapper.children("." + T.params.slideClass + '[data-hash="' + t + '"]').index())
  1144. },
  1145. attachEvents: function (a) {
  1146. var t = a ? "off" : "on";
  1147. e(window)[t]("hashchange", T.hashnav.onHashCange)
  1148. },
  1149. setHash: function () {
  1150. if (T.hashnav.initialized && T.params.hashnav)
  1151. if (T.params.replaceState && window.history && window.history.replaceState) window.history.replaceState(null, null, "#" + T.slides.eq(T.activeIndex).attr("data-hash") || "");
  1152. else {
  1153. var e = T.slides.eq(T.activeIndex),
  1154. a = e.attr("data-hash") || e.attr("data-history");
  1155. document.location.hash = a || ""
  1156. }
  1157. },
  1158. init: function () {
  1159. if (T.params.hashnav && !T.params.history) {
  1160. T.hashnav.initialized = !0;
  1161. var e = document.location.hash.replace("#", "");
  1162. if (e)
  1163. for (var a = 0, t = T.slides.length; a < t; a++) {
  1164. var s = T.slides.eq(a),
  1165. i = s.attr("data-hash") || s.attr("data-history");
  1166. if (i === e && !s.hasClass(T.params.slideDuplicateClass)) {
  1167. var r = s.index();
  1168. T.slideTo(r, 0, T.params.runCallbacksOnInit, !0)
  1169. }
  1170. }
  1171. T.params.hashnavWatchState && T.hashnav.attachEvents()
  1172. }
  1173. },
  1174. destroy: function () {
  1175. T.params.hashnavWatchState && T.hashnav.attachEvents(!0)
  1176. }
  1177. }, T.history = {
  1178. init: function () {
  1179. if (T.params.history) {
  1180. if (!window.history || !window.history.pushState) return T.params.history = !1, void(T.params.hashnav = !0);
  1181. T.history.initialized = !0, this.paths = this.getPathValues(), (this.paths.key || this.paths.value) && (this.scrollToSlide(0, this.paths.value, T.params.runCallbacksOnInit), T.params.replaceState || window.addEventListener("popstate", this.setHistoryPopState))
  1182. }
  1183. },
  1184. setHistoryPopState: function () {
  1185. T.history.paths = T.history.getPathValues(), T.history.scrollToSlide(T.params.speed, T.history.paths.value, !1)
  1186. },
  1187. getPathValues: function () {
  1188. var e = window.location.pathname.slice(1).split("/"),
  1189. a = e.length;
  1190. return {
  1191. key: e[a - 2],
  1192. value: e[a - 1]
  1193. }
  1194. },
  1195. setHistory: function (e, a) {
  1196. if (T.history.initialized && T.params.history) {
  1197. var t = T.slides.eq(a),
  1198. s = this.slugify(t.attr("data-history"));
  1199. window.location.pathname.includes(e) || (s = e + "/" + s), T.params.replaceState ? window.history.replaceState(null, null, s) : window.history.pushState(null, null, s)
  1200. }
  1201. },
  1202. slugify: function (e) {
  1203. return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "")
  1204. },
  1205. scrollToSlide: function (e, a, t) {
  1206. if (a)
  1207. for (var s = 0, i = T.slides.length; s < i; s++) {
  1208. var r = T.slides.eq(s),
  1209. n = this.slugify(r.attr("data-history"));
  1210. if (n === a && !r.hasClass(T.params.slideDuplicateClass)) {
  1211. var o = r.index();
  1212. T.slideTo(o, e, t)
  1213. }
  1214. } else T.slideTo(0, e, t)
  1215. }
  1216. }, T.disableKeyboardControl = function () {
  1217. T.params.keyboardControl = !1, e(document).off("keydown", p)
  1218. }, T.enableKeyboardControl = function () {
  1219. T.params.keyboardControl = !0, e(document).on("keydown", p)
  1220. }, T.mousewheel = {
  1221. event: !1,
  1222. lastScrollTime: (new window.Date).getTime()
  1223. }, T.params.mousewheelControl && (T.mousewheel.event = navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function () {
  1224. var e = "onwheel" in document;
  1225. if (!e) {
  1226. var a = document.createElement("div");
  1227. a.setAttribute("onwheel", "return;"), e = "function" == typeof a.onwheel
  1228. }
  1229. return !e && document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0 && (e = document.implementation.hasFeature("Events.wheel", "3.0")), e
  1230. }() ? "wheel" : "mousewheel"), T.disableMousewheelControl = function () {
  1231. if (!T.mousewheel.event) return !1;
  1232. var a = T.container;
  1233. return "container" !== T.params.mousewheelEventsTarged && (a = e(T.params.mousewheelEventsTarged)), a.off(T.mousewheel.event, u), T.params.mousewheelControl = !1, !0
  1234. }, T.enableMousewheelControl = function () {
  1235. if (!T.mousewheel.event) return !1;
  1236. var a = T.container;
  1237. return "container" !== T.params.mousewheelEventsTarged && (a = e(T.params.mousewheelEventsTarged)), a.on(T.mousewheel.event, u), T.params.mousewheelControl = !0, !0
  1238. }, T.parallax = {
  1239. setTranslate: function () {
  1240. T.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () {
  1241. c(this, T.progress)
  1242. }), T.slides.each(function () {
  1243. var a = e(this);
  1244. a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () {
  1245. c(this, Math.min(Math.max(a[0].progress, -1), 1))
  1246. })
  1247. })
  1248. },
  1249. setTransition: function (a) {
  1250. void 0 === a && (a = T.params.speed), T.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () {
  1251. var t = e(this),
  1252. s = parseInt(t.attr("data-swiper-parallax-duration"), 10) || a;
  1253. 0 === a && (s = 0), t.transition(s)
  1254. })
  1255. }
  1256. }, T.zoom = {
  1257. scale: 1,
  1258. currentScale: 1,
  1259. isScaling: !1,
  1260. gesture: {
  1261. slide: void 0,
  1262. slideWidth: void 0,
  1263. slideHeight: void 0,
  1264. image: void 0,
  1265. imageWrap: void 0,
  1266. zoomMax: T.params.zoomMax
  1267. },
  1268. image: {
  1269. isTouched: void 0,
  1270. isMoved: void 0,
  1271. currentX: void 0,
  1272. currentY: void 0,
  1273. minX: void 0,
  1274. minY: void 0,
  1275. maxX: void 0,
  1276. maxY: void 0,
  1277. width: void 0,
  1278. height: void 0,
  1279. startX: void 0,
  1280. startY: void 0,
  1281. touchesStart: {},
  1282. touchesCurrent: {}
  1283. },
  1284. velocity: {
  1285. x: void 0,
  1286. y: void 0,
  1287. prevPositionX: void 0,
  1288. prevPositionY: void 0,
  1289. prevTime: void 0
  1290. },
  1291. getDistanceBetweenTouches: function (e) {
  1292. if (e.targetTouches.length < 2) return 1;
  1293. var a = e.targetTouches[0].pageX,
  1294. t = e.targetTouches[0].pageY,
  1295. s = e.targetTouches[1].pageX,
  1296. i = e.targetTouches[1].pageY;
  1297. return Math.sqrt(Math.pow(s - a, 2) + Math.pow(i - t, 2))
  1298. },
  1299. onGestureStart: function (a) {
  1300. var t = T.zoom;
  1301. if (!T.support.gestures) {
  1302. if ("touchstart" !== a.type || "touchstart" === a.type && a.targetTouches.length < 2) return;
  1303. t.gesture.scaleStart = t.getDistanceBetweenTouches(a)
  1304. }
  1305. if (!(t.gesture.slide && t.gesture.slide.length || (t.gesture.slide = e(this), 0 === t.gesture.slide.length && (t.gesture.slide = T.slides.eq(T.activeIndex)), t.gesture.image = t.gesture.slide.find("img, svg, canvas"), t.gesture.imageWrap = t.gesture.image.parent("." + T.params.zoomContainerClass), t.gesture.zoomMax = t.gesture.imageWrap.attr("data-swiper-zoom") || T.params.zoomMax, 0 !== t.gesture.imageWrap.length))) return void(t.gesture.image = void 0);
  1306. t.gesture.image.transition(0), t.isScaling = !0
  1307. },
  1308. onGestureChange: function (e) {
  1309. var a = T.zoom;
  1310. if (!T.support.gestures) {
  1311. if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return;
  1312. a.gesture.scaleMove = a.getDistanceBetweenTouches(e)
  1313. }
  1314. a.gesture.image && 0 !== a.gesture.image.length && (T.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 < T.params.zoomMin && (a.scale = T.params.zoomMin + 1 - Math.pow(T.params.zoomMin - a.scale + 1, .5)), a.gesture.image.transform("translate3d(0,0,0) scale(" + a.scale + ")"))
  1315. },
  1316. onGestureEnd: function (e) {
  1317. var a = T.zoom;
  1318. !T.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), T.params.zoomMin), a.gesture.image.transition(T.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))
  1319. },
  1320. onTouchStart: function (e, a) {
  1321. var t = e.zoom;
  1322. 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))
  1323. },
  1324. onTouchMove: function (e) {
  1325. var a = T.zoom;
  1326. if (a.gesture.image && 0 !== a.gesture.image.length && (T.allowClick = !1, a.image.isTouched && a.gesture.slide)) {
  1327. a.image.isMoved || (a.image.width = a.gesture.image[0].offsetWidth, a.image.height = a.gesture.image[0].offsetHeight, a.image.startX = T.getTranslate(a.gesture.imageWrap[0], "x") || 0, a.image.startY = T.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), T.rtl && (a.image.startX = -a.image.startX), T.rtl && (a.image.startY = -a.image.startY));
  1328. var t = a.image.width * a.scale,
  1329. s = a.image.height * a.scale;
  1330. if (!(t < a.gesture.slideWidth && s < a.gesture.slideHeight)) {
  1331. 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) {
  1332. if (T.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);
  1333. if (!T.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)
  1334. }
  1335. 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)")
  1336. }
  1337. }
  1338. },
  1339. onTouchEnd: function (e, a) {
  1340. var t = e.zoom;
  1341. if (t.gesture.image && 0 !== t.gesture.image.length) {
  1342. if (!t.image.isTouched || !t.image.isMoved) return t.image.isTouched = !1, void(t.image.isMoved = !1);
  1343. t.image.isTouched = !1, t.image.isMoved = !1;
  1344. var s = 300,
  1345. i = 300,
  1346. r = t.velocity.x * s,
  1347. n = t.image.currentX + r,
  1348. o = t.velocity.y * i,
  1349. l = t.image.currentY + o;
  1350. 0 !== t.velocity.x && (s = Math.abs((n - t.image.currentX) / t.velocity.x)), 0 !== t.velocity.y && (i = Math.abs((l - t.image.currentY) / t.velocity.y));
  1351. var p = Math.max(s, i);
  1352. t.image.currentX = n, t.image.currentY = l;
  1353. var d = t.image.width * t.scale,
  1354. u = t.image.height * t.scale;
  1355. 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 - u / 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)")
  1356. }
  1357. },
  1358. onTransitionEnd: function (e) {
  1359. var a = e.zoom;
  1360. 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)
  1361. },
  1362. toggleZoom: function (a, t) {
  1363. var s = a.zoom;
  1364. 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) {
  1365. var i, r, n, o, l, p, d, u, c, m, h, g, f, v, w, y, x, T;
  1366. void 0 === s.image.touchesStart.x && t ? (i = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, r = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (i = s.image.touchesStart.x, r = 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 - i, p = o + T / 2 - r, c = s.gesture.image[0].offsetWidth, m = s.gesture.image[0].offsetHeight, h = c * s.scale, g = m * s.scale, f = Math.min(x / 2 - h / 2, 0), v = Math.min(T / 2 - g / 2, 0), w = -f, y = -v, d = l * s.scale, u = p * s.scale, d < f && (d = f), d > w && (d = w), u < v && (u = v), u > y && (u = y)) : (d = 0, u = 0), s.gesture.imageWrap.transition(300).transform("translate3d(" + d + "px, " + u + "px,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(" + s.scale + ")"))
  1367. }
  1368. },
  1369. attachEvents: function (a) {
  1370. var t = a ? "off" : "on";
  1371. if (T.params.zoom) {
  1372. var s = (T.slides, !("touchstart" !== T.touchEvents.start || !T.support.passiveListener || !T.params.passiveListeners) && {
  1373. passive: !0,
  1374. capture: !1
  1375. });
  1376. T.support.gestures ? (T.slides[t]("gesturestart", T.zoom.onGestureStart, s), T.slides[t]("gesturechange", T.zoom.onGestureChange, s), T.slides[t]("gestureend", T.zoom.onGestureEnd, s)) : "touchstart" === T.touchEvents.start && (T.slides[t](T.touchEvents.start, T.zoom.onGestureStart, s), T.slides[t](T.touchEvents.move, T.zoom.onGestureChange, s), T.slides[t](T.touchEvents.end, T.zoom.onGestureEnd, s)), T[t]("touchStart", T.zoom.onTouchStart), T.slides.each(function (a, s) {
  1377. e(s).find("." + T.params.zoomContainerClass).length > 0 && e(s)[t](T.touchEvents.move, T.zoom.onTouchMove)
  1378. }), T[t]("touchEnd", T.zoom.onTouchEnd), T[t]("transitionEnd", T.zoom.onTransitionEnd), T.params.zoomToggle && T.on("doubleTap", T.zoom.toggleZoom)
  1379. }
  1380. },
  1381. init: function () {
  1382. T.zoom.attachEvents()
  1383. },
  1384. destroy: function () {
  1385. T.zoom.attachEvents(!0)
  1386. }
  1387. }, T._plugins = [];
  1388. for (var Y in T.plugins) {
  1389. var O = T.plugins[Y](T, T.params[Y]);
  1390. O && T._plugins.push(O)
  1391. }
  1392. return T.callPlugins = function (e) {
  1393. for (var a = 0; a < T._plugins.length; a++) e in T._plugins[a] && T._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5])
  1394. }, T.emitterEventListeners = {}, T.emit = function (e) {
  1395. T.params[e] && T.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
  1396. var a;
  1397. if (T.emitterEventListeners[e])
  1398. for (a = 0; a < T.emitterEventListeners[e].length; a++) T.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
  1399. T.callPlugins && T.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5])
  1400. }, T.on = function (e, a) {
  1401. return e = m(e), T.emitterEventListeners[e] || (T.emitterEventListeners[e] = []), T.emitterEventListeners[e].push(a), T
  1402. }, T.off = function (e, a) {
  1403. var t;
  1404. if (e = m(e), void 0 === a) return T.emitterEventListeners[e] = [], T;
  1405. if (T.emitterEventListeners[e] && 0 !== T.emitterEventListeners[e].length) {
  1406. for (t = 0; t < T.emitterEventListeners[e].length; t++) T.emitterEventListeners[e][t] === a && T.emitterEventListeners[e].splice(t, 1);
  1407. return T
  1408. }
  1409. }, T.once = function (e, a) {
  1410. e = m(e);
  1411. var t = function () {
  1412. a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), T.off(e, t)
  1413. };
  1414. return T.on(e, t), T
  1415. }, T.a11y = {
  1416. makeFocusable: function (e) {
  1417. return e.attr("tabIndex", "0"), e
  1418. },
  1419. addRole: function (e, a) {
  1420. return e.attr("role", a), e
  1421. },
  1422. addLabel: function (e, a) {
  1423. return e.attr("aria-label", a), e
  1424. },
  1425. disable: function (e) {
  1426. return e.attr("aria-disabled", !0), e
  1427. },
  1428. enable: function (e) {
  1429. return e.attr("aria-disabled", !1), e
  1430. },
  1431. onEnterKey: function (a) {
  1432. 13 === a.keyCode && (e(a.target).is(T.params.nextButton) ? (T.onClickNext(a), T.isEnd ? T.a11y.notify(T.params.lastSlideMessage) : T.a11y.notify(T.params.nextSlideMessage)) : e(a.target).is(T.params.prevButton) && (T.onClickPrev(a), T.isBeginning ? T.a11y.notify(T.params.firstSlideMessage) : T.a11y.notify(T.params.prevSlideMessage)), e(a.target).is("." + T.params.bulletClass) && e(a.target)[0].click())
  1433. },
  1434. liveRegion: e('<span class="' + T.params.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>'),
  1435. notify: function (e) {
  1436. var a = T.a11y.liveRegion;
  1437. 0 !== a.length && (a.html(""), a.html(e))
  1438. },
  1439. init: function () {
  1440. T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.a11y.makeFocusable(T.nextButton), T.a11y.addRole(T.nextButton, "button"), T.a11y.addLabel(T.nextButton, T.params.nextSlideMessage)), T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.a11y.makeFocusable(T.prevButton), T.a11y.addRole(T.prevButton, "button"), T.a11y.addLabel(T.prevButton, T.params.prevSlideMessage)), e(T.container).append(T.a11y.liveRegion)
  1441. },
  1442. initPagination: function () {
  1443. T.params.pagination && T.params.paginationClickable && T.bullets && T.bullets.length && T.bullets.each(function () {
  1444. var a = e(this);
  1445. T.a11y.makeFocusable(a), T.a11y.addRole(a, "button"), T.a11y.addLabel(a, T.params.paginationBulletMessage.replace(/{{index}}/, a.index() + 1))
  1446. })
  1447. },
  1448. destroy: function () {
  1449. T.a11y.liveRegion && T.a11y.liveRegion.length > 0 && T.a11y.liveRegion.remove()
  1450. }
  1451. }, T.init = function () {
  1452. T.params.loop && T.createLoop(), T.updateContainerSize(), T.updateSlidesSize(), T.updatePagination(), T.params.scrollbar && T.scrollbar && (T.scrollbar.set(), T.params.scrollbarDraggable && T.scrollbar.enableDraggable()), "slide" !== T.params.effect && T.effects[T.params.effect] && (T.params.loop || T.updateProgress(), T.effects[T.params.effect].setTranslate()), T.params.loop ? T.slideTo(T.params.initialSlide + T.loopedSlides, 0, T.params.runCallbacksOnInit) : (T.slideTo(T.params.initialSlide, 0, T.params.runCallbacksOnInit), 0 === T.params.initialSlide && (T.parallax && T.params.parallax && T.parallax.setTranslate(), T.lazy && T.params.lazyLoading && (T.lazy.load(), T.lazy.initialImageLoaded = !0))), T.attachEvents(), T.params.observer && T.support.observer && T.initObservers(), T.params.preloadImages && !T.params.lazyLoading && T.preloadImages(), T.params.zoom && T.zoom && T.zoom.init(), T.params.autoplay && T.startAutoplay(), T.params.keyboardControl && T.enableKeyboardControl && T.enableKeyboardControl(), T.params.mousewheelControl && T.enableMousewheelControl && T.enableMousewheelControl(), T.params.hashnavReplaceState && (T.params.replaceState = T.params.hashnavReplaceState), T.params.history && T.history && T.history.init(), T.params.hashnav && T.hashnav && T.hashnav.init(), T.params.a11y && T.a11y && T.a11y.init(), T.emit("onInit", T)
  1453. }, T.cleanupStyles = function () {
  1454. T.container.removeClass(T.classNames.join(" ")).removeAttr("style"), T.wrapper.removeAttr("style"), T.slides && T.slides.length && T.slides.removeClass([T.params.slideVisibleClass, T.params.slideActiveClass, T.params.slideNextClass, T.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), T.paginationContainer && T.paginationContainer.length && T.paginationContainer.removeClass(T.params.paginationHiddenClass), T.bullets && T.bullets.length && T.bullets.removeClass(T.params.bulletActiveClass), T.params.prevButton && e(T.params.prevButton).removeClass(T.params.buttonDisabledClass), T.params.nextButton && e(T.params.nextButton).removeClass(T.params.buttonDisabledClass), T.params.scrollbar && T.scrollbar && (T.scrollbar.track && T.scrollbar.track.length && T.scrollbar.track.removeAttr("style"), T.scrollbar.drag && T.scrollbar.drag.length && T.scrollbar.drag.removeAttr("style"))
  1455. }, T.destroy = function (e, a) {
  1456. T.detachEvents(), T.stopAutoplay(), T.params.scrollbar && T.scrollbar && T.params.scrollbarDraggable && T.scrollbar.disableDraggable(), T.params.loop && T.destroyLoop(), a && T.cleanupStyles(), T.disconnectObservers(), T.params.zoom && T.zoom && T.zoom.destroy(), T.params.keyboardControl && T.disableKeyboardControl && T.disableKeyboardControl(), T.params.mousewheelControl && T.disableMousewheelControl && T.disableMousewheelControl(), T.params.a11y && T.a11y && T.a11y.destroy(), T.params.history && !T.params.replaceState && window.removeEventListener("popstate", T.history.setHistoryPopState), T.params.hashnav && T.hashnav && T.hashnav.destroy(), T.emit("onDestroy"), e !== !1 && (T = null)
  1457. }, T.init(), T
  1458. }
  1459. };
  1460. a.prototype = {
  1461. isSafari: function () {
  1462. var e = window.navigator.userAgent.toLowerCase();
  1463. return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0
  1464. }(),
  1465. isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),
  1466. isArray: function (e) {
  1467. return "[object Array]" === Object.prototype.toString.apply(e)
  1468. },
  1469. browser: {
  1470. ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
  1471. ieTouch: window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1,
  1472. lteIE9: function () {
  1473. var e = document.createElement("div");
  1474. return e.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length
  1475. }()
  1476. },
  1477. device: function () {
  1478. var e = window.navigator.userAgent,
  1479. a = e.match(/(Android);?[\s\/]+([\d.]+)?/),
  1480. t = e.match(/(iPad).*OS\s([\d_]+)/),
  1481. s = e.match(/(iPod)(.*OS\s([\d_]+))?/),
  1482. i = !t && e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
  1483. return {
  1484. ios: t || i || s,
  1485. android: a
  1486. }
  1487. }(),
  1488. support: {
  1489. touch: window.Modernizr && Modernizr.touch === !0 || function () {
  1490. return !!("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch)
  1491. }(),
  1492. transforms3d: window.Modernizr && Modernizr.csstransforms3d === !0 || function () {
  1493. var e = document.createElement("div").style;
  1494. return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e
  1495. }(),
  1496. flexbox: function () {
  1497. 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++)
  1498. if (a[t] in e) return !0
  1499. }(),
  1500. observer: function () {
  1501. return "MutationObserver" in window || "WebkitMutationObserver" in window
  1502. }(),
  1503. passiveListener: function () {
  1504. var e = !1;
  1505. try {
  1506. var a = Object.defineProperty({}, "passive", {
  1507. get: function () {
  1508. e = !0
  1509. }
  1510. });
  1511. window.addEventListener("testPassiveListener", null, a)
  1512. } catch (e) {}
  1513. return e
  1514. }(),
  1515. gestures: function () {
  1516. return "ongesturestart" in window
  1517. }()
  1518. },
  1519. plugins: {}
  1520. };
  1521. for (var t = (function () {
  1522. var e = function (e) {
  1523. var a = this,
  1524. t = 0;
  1525. for (t = 0; t < e.length; t++) a[t] = e[t];
  1526. return a.length = e.length, this
  1527. },
  1528. a = function (a, t) {
  1529. var s = [],
  1530. i = 0;
  1531. if (a && !t && a instanceof e) return a;
  1532. if (a)
  1533. if ("string" == typeof a) {
  1534. var r, n, o = a.trim();
  1535. if (o.indexOf("<") >= 0 && o.indexOf(">") >= 0) {
  1536. var l = "div";
  1537. for (0 === o.indexOf("<li") && (l = "ul"), 0 === o.indexOf("<tr") && (l = "tbody"), 0 !== o.indexOf("<td") && 0 !== o.indexOf("<th") || (l = "tr"), 0 === o.indexOf("<tbody") && (l = "table"), 0 === o.indexOf("<option") && (l = "select"), n = document.createElement(l), n.innerHTML = a, i = 0; i < n.childNodes.length; i++) s.push(n.childNodes[i])
  1538. } else
  1539. for (r = t || "#" !== a[0] || a.match(/[ .<>:~]/) ? (t || document).querySelectorAll(a) : [document.getElementById(a.split("#")[1])], i = 0; i < r.length; i++) r[i] && s.push(r[i])
  1540. } else if (a.nodeType || a === window || a === document) s.push(a);
  1541. else if (a.length > 0 && a[0].nodeType)
  1542. for (i = 0; i < a.length; i++) s.push(a[i]);
  1543. return new e(s)
  1544. };
  1545. return e.prototype = {
  1546. addClass: function (e) {
  1547. if (void 0 === e) return this;
  1548. for (var a = e.split(" "), t = 0; t < a.length; t++)
  1549. for (var s = 0; s < this.length; s++) this[s].classList.add(a[t]);
  1550. return this
  1551. },
  1552. removeClass: function (e) {
  1553. for (var a = e.split(" "), t = 0; t < a.length; t++)
  1554. for (var s = 0; s < this.length; s++) this[s].classList.remove(a[t]);
  1555. return this
  1556. },
  1557. hasClass: function (e) {
  1558. return !!this[0] && this[0].classList.contains(e)
  1559. },
  1560. toggleClass: function (e) {
  1561. for (var a = e.split(" "), t = 0; t < a.length; t++)
  1562. for (var s = 0; s < this.length; s++) this[s].classList.toggle(a[t]);
  1563. return this
  1564. },
  1565. attr: function (e, a) {
  1566. if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0;
  1567. for (var t = 0; t < this.length; t++)
  1568. if (2 === arguments.length) this[t].setAttribute(e, a);
  1569. else
  1570. for (var s in e) this[t][s] = e[s], this[t].setAttribute(s, e[s]);
  1571. return this
  1572. },
  1573. removeAttr: function (e) {
  1574. for (var a = 0; a < this.length; a++) this[a].removeAttribute(e);
  1575. return this
  1576. },
  1577. data: function (e, a) {
  1578. if (void 0 !== a) {
  1579. for (var t = 0; t < this.length; t++) {
  1580. var s = this[t];
  1581. s.dom7ElementDataStorage || (s.dom7ElementDataStorage = {}), s.dom7ElementDataStorage[e] = a
  1582. }
  1583. return this
  1584. }
  1585. if (this[0]) {
  1586. var i = this[0].getAttribute("data-" + e);
  1587. return i ? i : this[0].dom7ElementDataStorage && e in this[0].dom7ElementDataStorage ? this[0].dom7ElementDataStorage[e] : void 0
  1588. }
  1589. },
  1590. transform: function (e) {
  1591. for (var a = 0; a < this.length; a++) {
  1592. var t = this[a].style;
  1593. t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e
  1594. }
  1595. return this
  1596. },
  1597. transition: function (e) {
  1598. "string" != typeof e && (e += "ms");
  1599. for (var a = 0; a < this.length; a++) {
  1600. var t = this[a].style;
  1601. t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e
  1602. }
  1603. return this
  1604. },
  1605. on: function (e, t, s, i) {
  1606. function r(e) {
  1607. var i = e.target;
  1608. if (a(i).is(t)) s.call(i, e);
  1609. else
  1610. for (var r = a(i).parents(), n = 0; n < r.length; n++) a(r[n]).is(t) && s.call(r[n], e)
  1611. }
  1612. var n, o, l = e.split(" ");
  1613. for (n = 0; n < this.length; n++)
  1614. if ("function" == typeof t || t === !1)
  1615. for ("function" == typeof t && (s = arguments[1], i = arguments[2] || !1), o = 0; o < l.length; o++) this[n].addEventListener(l[o], s, i);
  1616. else
  1617. for (o = 0; o < l.length; o++) this[n].dom7LiveListeners || (this[n].dom7LiveListeners = []), this[n].dom7LiveListeners.push({
  1618. listener: s,
  1619. liveListener: r
  1620. }), this[n].addEventListener(l[o], r, i);
  1621. return this
  1622. },
  1623. off: function (e, a, t, s) {
  1624. for (var i = e.split(" "), r = 0; r < i.length; r++)
  1625. for (var n = 0; n < this.length; n++)
  1626. if ("function" == typeof a || a === !1) "function" == typeof a && (t = arguments[1], s = arguments[2] || !1), this[n].removeEventListener(i[r], t, s);
  1627. else if (this[n].dom7LiveListeners)
  1628. for (var o = 0; o < this[n].dom7LiveListeners.length; o++) this[n].dom7LiveListeners[o].listener === t && this[n].removeEventListener(i[r], this[n].dom7LiveListeners[o].liveListener, s);
  1629. return this
  1630. },
  1631. once: function (e, a, t, s) {
  1632. function i(n) {
  1633. t(n), r.off(e, a, i, s)
  1634. }
  1635. var r = this;
  1636. "function" == typeof a && (a = !1, t = arguments[1], s = arguments[2]), r.on(e, a, i, s)
  1637. },
  1638. trigger: function (e, a) {
  1639. for (var t = 0; t < this.length; t++) {
  1640. var s;
  1641. try {
  1642. s = new window.CustomEvent(e, {
  1643. detail: a,
  1644. bubbles: !0,
  1645. cancelable: !0
  1646. })
  1647. } catch (t) {
  1648. s = document.createEvent("Event"), s.initEvent(e, !0, !0), s.detail = a
  1649. }
  1650. this[t].dispatchEvent(s)
  1651. }
  1652. return this
  1653. },
  1654. transitionEnd: function (e) {
  1655. function a(r) {
  1656. if (r.target === this)
  1657. for (e.call(this, r), t = 0; t < s.length; t++) i.off(s[t], a)
  1658. }
  1659. var t, s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"],
  1660. i = this;
  1661. if (e)
  1662. for (t = 0; t < s.length; t++) i.on(s[t], a);
  1663. return this
  1664. },
  1665. width: function () {
  1666. return this[0] === window ? window.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null
  1667. },
  1668. outerWidth: function (e) {
  1669. return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null
  1670. },
  1671. height: function () {
  1672. return this[0] === window ? window.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null
  1673. },
  1674. outerHeight: function (e) {
  1675. return this.length > 0 ? e ? this[0].offsetHeight + parseFloat(this.css("margin-top")) + parseFloat(this.css("margin-bottom")) : this[0].offsetHeight : null
  1676. },
  1677. offset: function () {
  1678. if (this.length > 0) {
  1679. var e = this[0],
  1680. a = e.getBoundingClientRect(),
  1681. t = document.body,
  1682. s = e.clientTop || t.clientTop || 0,
  1683. i = e.clientLeft || t.clientLeft || 0,
  1684. r = window.pageYOffset || e.scrollTop,
  1685. n = window.pageXOffset || e.scrollLeft;
  1686. return {
  1687. top: a.top + r - s,
  1688. left: a.left + n - i
  1689. }
  1690. }
  1691. return null
  1692. },
  1693. css: function (e, a) {
  1694. var t;
  1695. if (1 === arguments.length) {
  1696. if ("string" != typeof e) {
  1697. for (t = 0; t < this.length; t++)
  1698. for (var s in e) this[t].style[s] = e[s];
  1699. return this
  1700. }
  1701. if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(e)
  1702. }
  1703. if (2 === arguments.length && "string" == typeof e) {
  1704. for (t = 0; t < this.length; t++) this[t].style[e] = a;
  1705. return this
  1706. }
  1707. return this
  1708. },
  1709. each: function (e) {
  1710. for (var a = 0; a < this.length; a++) e.call(this[a], a, this[a]);
  1711. return this
  1712. },
  1713. html: function (e) {
  1714. if (void 0 === e) return this[0] ? this[0].innerHTML : void 0;
  1715. for (var a = 0; a < this.length; a++) this[a].innerHTML = e;
  1716. return this
  1717. },
  1718. text: function (e) {
  1719. if (void 0 === e) return this[0] ? this[0].textContent.trim() : null;
  1720. for (var a = 0; a < this.length; a++) this[a].textContent = e;
  1721. return this
  1722. },
  1723. is: function (t) {
  1724. if (!this[0]) return !1;
  1725. var s, i;
  1726. if ("string" == typeof t) {
  1727. var r = this[0];
  1728. if (r === document) return t === document;
  1729. if (r === window) return t === window;
  1730. if (r.matches) return r.matches(t);
  1731. if (r.webkitMatchesSelector) return r.webkitMatchesSelector(t);
  1732. if (r.mozMatchesSelector) return r.mozMatchesSelector(t);
  1733. if (r.msMatchesSelector) return r.msMatchesSelector(t);
  1734. for (s = a(t), i = 0; i < s.length; i++)
  1735. if (s[i] === this[0]) return !0;
  1736. return !1
  1737. }
  1738. if (t === document) return this[0] === document;
  1739. if (t === window) return this[0] === window;
  1740. if (t.nodeType || t instanceof e) {
  1741. for (s = t.nodeType ? [t] : t, i = 0; i < s.length; i++)
  1742. if (s[i] === this[0]) return !0;
  1743. return !1
  1744. }
  1745. return !1
  1746. },
  1747. index: function () {
  1748. if (this[0]) {
  1749. for (var e = this[0], a = 0; null !== (e = e.previousSibling);) 1 === e.nodeType && a++;
  1750. return a
  1751. }
  1752. },
  1753. eq: function (a) {
  1754. if (void 0 === a) return this;
  1755. var t, s = this.length;
  1756. return a > s - 1 ? new e([]) : a < 0 ? (t = s + a, new e(t < 0 ? [] : [this[t]])) : new e([this[a]])
  1757. },
  1758. append: function (a) {
  1759. var t, s;
  1760. for (t = 0; t < this.length; t++)
  1761. if ("string" == typeof a) {
  1762. var i = document.createElement("div");
  1763. for (i.innerHTML = a; i.firstChild;) this[t].appendChild(i.firstChild)
  1764. } else if (a instanceof e)
  1765. for (s = 0; s < a.length; s++) this[t].appendChild(a[s]);
  1766. else this[t].appendChild(a);
  1767. return this
  1768. },
  1769. prepend: function (a) {
  1770. var t, s;
  1771. for (t = 0; t < this.length; t++)
  1772. if ("string" == typeof a) {
  1773. var i = document.createElement("div");
  1774. for (i.innerHTML = a, s = i.childNodes.length - 1; s >= 0; s--) this[t].insertBefore(i.childNodes[s], this[t].childNodes[0])
  1775. } else if (a instanceof e)
  1776. for (s = 0; s < a.length; s++) this[t].insertBefore(a[s], this[t].childNodes[0]);
  1777. else this[t].insertBefore(a, this[t].childNodes[0]);
  1778. return this
  1779. },
  1780. insertBefore: function (e) {
  1781. for (var t = a(e), s = 0; s < this.length; s++)
  1782. if (1 === t.length) t[0].parentNode.insertBefore(this[s], t[0]);
  1783. else if (t.length > 1)
  1784. for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[s].cloneNode(!0), t[i])
  1785. },
  1786. insertAfter: function (e) {
  1787. for (var t = a(e), s = 0; s < this.length; s++)
  1788. if (1 === t.length) t[0].parentNode.insertBefore(this[s], t[0].nextSibling);
  1789. else if (t.length > 1)
  1790. for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[s].cloneNode(!0), t[i].nextSibling)
  1791. },
  1792. next: function (t) {
  1793. return new e(this.length > 0 ? t ? this[0].nextElementSibling && a(this[0].nextElementSibling).is(t) ? [this[0].nextElementSibling] : [] : this[0].nextElementSibling ? [this[0].nextElementSibling] : [] : [])
  1794. },
  1795. nextAll: function (t) {
  1796. var s = [],
  1797. i = this[0];
  1798. if (!i) return new e([]);
  1799. for (; i.nextElementSibling;) {
  1800. var r = i.nextElementSibling;
  1801. t ? a(r).is(t) && s.push(r) : s.push(r), i = r
  1802. }
  1803. return new e(s)
  1804. },
  1805. prev: function (t) {
  1806. return new e(this.length > 0 ? t ? this[0].previousElementSibling && a(this[0].previousElementSibling).is(t) ? [this[0].previousElementSibling] : [] : this[0].previousElementSibling ? [this[0].previousElementSibling] : [] : [])
  1807. },
  1808. prevAll: function (t) {
  1809. var s = [],
  1810. i = this[0];
  1811. if (!i) return new e([]);
  1812. for (; i.previousElementSibling;) {
  1813. var r = i.previousElementSibling;
  1814. t ? a(r).is(t) && s.push(r) : s.push(r), i = r
  1815. }
  1816. return new e(s)
  1817. },
  1818. parent: function (e) {
  1819. for (var t = [], s = 0; s < this.length; s++) e ? a(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode);
  1820. return a(a.unique(t))
  1821. },
  1822. parents: function (e) {
  1823. for (var t = [], s = 0; s < this.length; s++)
  1824. for (var i = this[s].parentNode; i;) e ? a(i).is(e) && t.push(i) : t.push(i), i = i.parentNode;
  1825. return a(a.unique(t))
  1826. },
  1827. find: function (a) {
  1828. for (var t = [], s = 0; s < this.length; s++)
  1829. for (var i = this[s].querySelectorAll(a), r = 0; r < i.length; r++) t.push(i[r]);
  1830. return new e(t)
  1831. },
  1832. children: function (t) {
  1833. for (var s = [], i = 0; i < this.length; i++)
  1834. for (var r = this[i].childNodes, n = 0; n < r.length; n++) t ? 1 === r[n].nodeType && a(r[n]).is(t) && s.push(r[n]) : 1 === r[n].nodeType && s.push(r[n]);
  1835. return new e(a.unique(s))
  1836. },
  1837. remove: function () {
  1838. for (var e = 0; e < this.length; e++) this[e].parentNode && this[e].parentNode.removeChild(this[e]);
  1839. return this
  1840. },
  1841. add: function () {
  1842. var e, t, s = this;
  1843. for (e = 0; e < arguments.length; e++) {
  1844. var i = a(arguments[e]);
  1845. for (t = 0; t < i.length; t++) s[s.length] = i[t], s.length++
  1846. }
  1847. return s
  1848. }
  1849. }, a.fn = e.prototype, a.unique = function (e) {
  1850. for (var a = [], t = 0; t < e.length; t++) a.indexOf(e[t]) === -1 && a.push(e[t]);
  1851. return a
  1852. }, a
  1853. }()), s = ["jQuery", "Zepto", "Dom7"], i = 0; i < s.length; i++) window[s[i]] && function (e) {
  1854. e.fn.swiper = function (t) {
  1855. var s;
  1856. return e(this).each(function () {
  1857. var e = new a(this, t);
  1858. s || (s = e)
  1859. }), s
  1860. }
  1861. }(window[s[i]]);
  1862. var r;
  1863. r = void 0 === t ? window.Dom7 || window.Zepto || window.jQuery : t, r && ("transitionEnd" in r.fn || (r.fn.transitionEnd = function (e) {
  1864. function a(r) {
  1865. if (r.target === this)
  1866. for (e.call(this, r), t = 0; t < s.length; t++) i.off(s[t], a)
  1867. }
  1868. var t, s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"],
  1869. i = this;
  1870. if (e)
  1871. for (t = 0; t < s.length; t++) i.on(s[t], a);
  1872. return this
  1873. }), "transform" in r.fn || (r.fn.transform = function (e) {
  1874. for (var a = 0; a < this.length; a++) {
  1875. var t = this[a].style;
  1876. t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e
  1877. }
  1878. return this
  1879. }), "transition" in r.fn || (r.fn.transition = function (e) {
  1880. "string" != typeof e && (e += "ms");
  1881. for (var a = 0; a < this.length; a++) {
  1882. var t = this[a].style;
  1883. t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e
  1884. }
  1885. return this
  1886. }), "outerWidth" in r.fn || (r.fn.outerWidth = function (e) {
  1887. return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null
  1888. })), window.Swiper = a
  1889. }(), "undefined" != typeof module ? module.exports = window.Swiper : "function" == typeof define && define.amd && define([], function () {
  1890. "use strict";
  1891. return window.Swiper
  1892. });
  1893. //# sourceMappingURL=maps/swiper.min.js.map