swiper-bundle.min.js 134 KB

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