swiper-3.4.2.min.js 116 KB

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