;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;iarr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0&&arguments[0]!==undefined?arguments[0]:{};var src=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Object.keys(src).forEach(function(key){if(typeof target[key]==='undefined')target[key]=src[key];else if(isObject$2(src[key])&&isObject$2(target[key])&&Object.keys(src[key]).length>0){extend$2(target[key],src[key]);}});}var ssrDocument={body:{},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:''},querySelector:function querySelector(){return null;},querySelectorAll:function querySelectorAll(){return[];},getElementById:function getElementById(){return null;},createEvent:function createEvent(){return{initEvent:function initEvent(){}};},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[];}};},createElementNS:function createElementNS(){return{};},importNode:function importNode(){return null;},location:{hash:'',host:'',hostname:'',href:'',origin:'',pathname:'',protocol:'',search:''}};function getDocument(){var doc=typeof document!=='undefined'?document:{};extend$2(doc,ssrDocument);return doc;}var ssrWindow={document:ssrDocument,navigator:{userAgent:''},location:{hash:'',host:'',hostname:'',href:'',origin:'',pathname:'',protocol:'',search:''},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this;},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return'';}};},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{};},requestAnimationFrame:function requestAnimationFrame(callback){if(typeof setTimeout==='undefined'){callback();return null;}return setTimeout(callback,0);},cancelAnimationFrame:function cancelAnimationFrame(id){if(typeof setTimeout==='undefined'){return;}clearTimeout(id);}};function getWindow(){var win=typeof window!=='undefined'?window:{};extend$2(win,ssrWindow);return win;}/** * Dom7 4.0.4 * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API * https://framework7.io/docs/dom7.html * * Copyright 2022, Vladimir Kharlampidi * * Licensed under MIT * * Released on: January 11, 2022 */ /* eslint-disable no-proto */function makeReactive(obj){var proto=obj.__proto__;Object.defineProperty(obj,'__proto__',{get:function get(){return proto;},set:function set(value){proto.__proto__=value;}});}var Dom7=/*#__PURE__*/function(_Array){_inherits(Dom7,_Array);var _super=_createSuper(Dom7);function Dom7(items){var _this;_classCallCheck(this,Dom7);if(typeof items==='number'){_this=_super.call(this,items);}else{_this=_super.call.apply(_super,[this].concat(_toConsumableArray(items||[])));makeReactive(_assertThisInitialized(_this));}return _possibleConstructorReturn(_this);}return _createClass(Dom7);}(/*#__PURE__*/_wrapNativeSuper(Array));function arrayFlat(){var arr=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var res=[];arr.forEach(function(el){if(Array.isArray(el)){res.push.apply(res,_toConsumableArray(arrayFlat(el)));}else{res.push(el);}});return res;}function arrayFilter(arr,callback){return Array.prototype.filter.call(arr,callback);}function arrayUnique(arr){var uniqueArray=[];for(var i=0;i=0&&_html.indexOf('>')>=0){var toCreate='div';if(_html.indexOf('0;}).length>0;}function attr(attrs,value){if(arguments.length===1&&typeof attrs==='string'){// Get attr if(this[0])return this[0].getAttribute(attrs);return undefined;}// Set attrs for(var i=0;i=0;k-=1){var handler=handlers[k];if(listener&&handler.listener===listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1);}else if(listener&&handler.listener&&handler.listener.dom7proxy&&handler.listener.dom7proxy===listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1);}else if(!listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1);}}}}}return this;}function trigger(){var window=getWindow();for(var _len9=arguments.length,args=new Array(_len9),_key9=0;_key9<_len9;_key9++){args[_key9]=arguments[_key9];}var events=args[0].split(' ');var eventData=args[1];for(var i=0;i0;});el.dispatchEvent(evt);el.dom7EventData=[];delete el.dom7EventData;}}}return this;}function transitionEnd$1(callback){var dom=this;function fireCallBack(e){if(e.target!==this)return;callback.call(this,e);dom.off('transitionend',fireCallBack);}if(callback){dom.on('transitionend',fireCallBack);}return this;}function outerWidth(includeMargins){if(this.length>0){if(includeMargins){var _styles=this.styles();return this[0].offsetWidth+parseFloat(_styles.getPropertyValue('margin-right'))+parseFloat(_styles.getPropertyValue('margin-left'));}return this[0].offsetWidth;}return null;}function outerHeight(includeMargins){if(this.length>0){if(includeMargins){var _styles2=this.styles();return this[0].offsetHeight+parseFloat(_styles2.getPropertyValue('margin-top'))+parseFloat(_styles2.getPropertyValue('margin-bottom'));}return this[0].offsetHeight;}return null;}function offset(){if(this.length>0){var _window=getWindow();var _document=getDocument();var el=this[0];var box=el.getBoundingClientRect();var body=_document.body;var clientTop=el.clientTop||body.clientTop||0;var clientLeft=el.clientLeft||body.clientLeft||0;var scrollTop=el===_window?_window.scrollY:el.scrollTop;var scrollLeft=el===_window?_window.scrollX:el.scrollLeft;return{top:box.top+scrollTop-clientTop,left:box.left+scrollLeft-clientLeft};}return null;}function styles(){var window=getWindow();if(this[0])return window.getComputedStyle(this[0],null);return{};}function css(props,value){var window=getWindow();var i;if(arguments.length===1){if(typeof props==='string'){// .css('width') if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(props);}else{// .css({ width: '100px' }) for(i=0;ilength-1){return $([]);}if(index<0){var returnIndex=length+index;if(returnIndex<0)return $([]);return $([this[returnIndex]]);}return $([this[index]]);}function append(){var newChild;var document=getDocument();for(var k=0;k=0;j-=1){this[i].insertBefore(tempDiv.childNodes[j],this[i].childNodes[0]);}}else if(newChild instanceof Dom7){for(j=0;j0){if(selector){if(this[0].nextElementSibling&&$(this[0].nextElementSibling).is(selector)){return $([this[0].nextElementSibling]);}return $([]);}if(this[0].nextElementSibling)return $([this[0].nextElementSibling]);return $([]);}return $([]);}function nextAll(selector){var nextEls=[];var el=this[0];if(!el)return $([]);while(el.nextElementSibling){var _next=el.nextElementSibling;// eslint-disable-line if(selector){if($(_next).is(selector))nextEls.push(_next);}else nextEls.push(_next);el=_next;}return $(nextEls);}function prev(selector){if(this.length>0){var el=this[0];if(selector){if(el.previousElementSibling&&$(el.previousElementSibling).is(selector)){return $([el.previousElementSibling]);}return $([]);}if(el.previousElementSibling)return $([el.previousElementSibling]);return $([]);}return $([]);}function prevAll(selector){var prevEls=[];var el=this[0];if(!el)return $([]);while(el.previousElementSibling){var _prev=el.previousElementSibling;// eslint-disable-line if(selector){if($(_prev).is(selector))prevEls.push(_prev);}else prevEls.push(_prev);el=_prev;}return $(prevEls);}function parent(selector){var parents=[];// eslint-disable-line for(var i=0;i6){curTransform=curTransform.split(', ').map(function(a){return a.replace(',','.');}).join(', ');}// Some old versions of Webkit choke when 'none' is passed; pass // empty string instead in this case transformMatrix=new window.WebKitCSSMatrix(curTransform==='none'?'':curTransform);}else{transformMatrix=curStyle.MozTransform||curStyle.OTransform||curStyle.MsTransform||curStyle.msTransform||curStyle.transform||curStyle.getPropertyValue('transform').replace('translate(','matrix(1, 0, 0, 1,');matrix=transformMatrix.toString().split(',');}if(axis==='x'){// Latest Chrome and webkits Fix if(window.WebKitCSSMatrix)curTransform=transformMatrix.m41;// Crazy IE10 Matrix else if(matrix.length===16)curTransform=parseFloat(matrix[12]);// Normal Browsers else curTransform=parseFloat(matrix[4]);}if(axis==='y'){// Latest Chrome and webkits Fix if(window.WebKitCSSMatrix)curTransform=transformMatrix.m42;// Crazy IE10 Matrix else if(matrix.length===16)curTransform=parseFloat(matrix[13]);// Normal Browsers else curTransform=parseFloat(matrix[5]);}return curTransform||0;}function isObject$1(o){return _typeof(o)==='object'&&o!==null&&o.constructor&&Object.prototype.toString.call(o).slice(8,-1)==='Object';}function isNode(node){// eslint-disable-next-line if(typeof window!=='undefined'&&typeof window.HTMLElement!=='undefined'){return node instanceof HTMLElement;}return node&&(node.nodeType===1||node.nodeType===11);}function extend$1(){var to=Object(arguments.length<=0?undefined:arguments[0]);var noExtend=['__proto__','constructor','prototype'];for(var i=1;istartPosition?'next':'prev';var isOutOfBound=function isOutOfBound(current,target){return dir==='next'&¤t>=target||dir==='prev'&¤t<=target;};var animate=function animate(){time=new Date().getTime();if(startTime===null){startTime=time;}var progress=Math.max(Math.min((time-startTime)/duration,1),0);var easeProgress=0.5-Math.cos(progress*Math.PI)/2;var currentPosition=startPosition+easeProgress*(targetPosition-startPosition);if(isOutOfBound(currentPosition,targetPosition)){currentPosition=targetPosition;}swiper.wrapperEl.scrollTo(_defineProperty({},side,currentPosition));if(isOutOfBound(currentPosition,targetPosition)){swiper.wrapperEl.style.overflow='hidden';swiper.wrapperEl.style.scrollSnapType='';setTimeout(function(){swiper.wrapperEl.style.overflow='';swiper.wrapperEl.scrollTo(_defineProperty({},side,currentPosition));});window.cancelAnimationFrame(swiper.cssModeFrameID);return;}swiper.cssModeFrameID=window.requestAnimationFrame(animate);};animate();}var support;function calcSupport(){var window=getWindow();var document=getDocument();return{smoothScroll:document.documentElement&&'scrollBehavior'in document.documentElement.style,touch:!!('ontouchstart'in window||window.DocumentTouch&&document instanceof window.DocumentTouch),passiveListener:function checkPassiveListener(){var supportsPassive=false;try{var opts=Object.defineProperty({},'passive',{// eslint-disable-next-line get:function get(){supportsPassive=true;}});window.addEventListener('testPassiveListener',null,opts);}catch(e){// No support }return supportsPassive;}(),gestures:function checkGestures(){return'ongesturestart'in window;}()};}function getSupport(){if(!support){support=calcSupport();}return support;}var deviceCached;function calcDevice(_temp){var _ref3=_temp===void 0?{}:_temp,userAgent=_ref3.userAgent;var support=getSupport();var window=getWindow();var platform=window.navigator.platform;var ua=userAgent||window.navigator.userAgent;var device={ios:false,android:false};var screenWidth=window.screen.width;var screenHeight=window.screen.height;var android=ua.match(/(Android);?[\s\/]+([\d.]+)?/);// eslint-disable-line var ipad=ua.match(/(iPad).*OS\s([\d_]+)/);var ipod=ua.match(/(iPod)(.*OS\s([\d_]+))?/);var iphone=!ipad&&ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);var windows=platform==='Win32';var macos=platform==='MacIntel';// iPadOs 13 fix var iPadScreens=['1024x1366','1366x1024','834x1194','1194x834','834x1112','1112x834','768x1024','1024x768','820x1180','1180x820','810x1080','1080x810'];if(!ipad&&macos&&support.touch&&iPadScreens.indexOf("".concat(screenWidth,"x").concat(screenHeight))>=0){ipad=ua.match(/(Version)\/([\d.]+)/);if(!ipad)ipad=[0,1,'13_0_0'];macos=false;}// Android if(android&&!windows){device.os='android';device.android=true;}if(ipad||iphone||ipod){device.os='ios';device.ios=true;}// Export object return device;}function getDevice(overrides){if(overrides===void 0){overrides={};}if(!deviceCached){deviceCached=calcDevice(overrides);}return deviceCached;}var browser;function calcBrowser(){var window=getWindow();function isSafari(){var ua=window.navigator.userAgent.toLowerCase();return ua.indexOf('safari')>=0&&ua.indexOf('chrome')<0&&ua.indexOf('android')<0;}return{isSafari:isSafari(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)};}function getBrowser(){if(!browser){browser=calcBrowser();}return browser;}function Resize(_ref){var swiper=_ref.swiper,on=_ref.on,emit=_ref.emit;var window=getWindow();var observer=null;var animationFrame=null;var resizeHandler=function resizeHandler(){if(!swiper||swiper.destroyed||!swiper.initialized)return;emit('beforeResize');emit('resize');};var createObserver=function createObserver(){if(!swiper||swiper.destroyed||!swiper.initialized)return;observer=new ResizeObserver(function(entries){animationFrame=window.requestAnimationFrame(function(){var width=swiper.width,height=swiper.height;var newWidth=width;var newHeight=height;entries.forEach(function(_ref2){var contentBoxSize=_ref2.contentBoxSize,contentRect=_ref2.contentRect,target=_ref2.target;if(target&&target!==swiper.el)return;newWidth=contentRect?contentRect.width:(contentBoxSize[0]||contentBoxSize).inlineSize;newHeight=contentRect?contentRect.height:(contentBoxSize[0]||contentBoxSize).blockSize;});if(newWidth!==width||newHeight!==height){resizeHandler();}});});observer.observe(swiper.el);};var removeObserver=function removeObserver(){if(animationFrame){window.cancelAnimationFrame(animationFrame);}if(observer&&observer.unobserve&&swiper.el){observer.unobserve(swiper.el);observer=null;}};var orientationChangeHandler=function orientationChangeHandler(){if(!swiper||swiper.destroyed||!swiper.initialized)return;emit('orientationchange');};on('init',function(){if(swiper.params.resizeObserver&&typeof window.ResizeObserver!=='undefined'){createObserver();return;}window.addEventListener('resize',resizeHandler);window.addEventListener('orientationchange',orientationChangeHandler);});on('destroy',function(){removeObserver();window.removeEventListener('resize',resizeHandler);window.removeEventListener('orientationchange',orientationChangeHandler);});}function Observer(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit;var observers=[];var window=getWindow();var attach=function attach(target,options){if(options===void 0){options={};}var ObserverFunc=window.MutationObserver||window.WebkitMutationObserver;var observer=new ObserverFunc(function(mutations){// The observerUpdate event should only be triggered // once despite the number of mutations. Additional // triggers are redundant and are very costly if(mutations.length===1){emit('observerUpdate',mutations[0]);return;}var observerUpdate=function observerUpdate(){emit('observerUpdate',mutations[0]);};if(window.requestAnimationFrame){window.requestAnimationFrame(observerUpdate);}else{window.setTimeout(observerUpdate,0);}});observer.observe(target,{attributes:typeof options.attributes==='undefined'?true:options.attributes,childList:typeof options.childList==='undefined'?true:options.childList,characterData:typeof options.characterData==='undefined'?true:options.characterData});observers.push(observer);};var init=function init(){if(!swiper.params.observer)return;if(swiper.params.observeParents){var containerParents=swiper.$el.parents();for(var i=0;i=0){self.eventsAnyListeners.splice(index,1);}return self;},off:function off(events,handler){var self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsListeners)return self;events.split(' ').forEach(function(event){if(typeof handler==='undefined'){self.eventsListeners[event]=[];}else if(self.eventsListeners[event]){self.eventsListeners[event].forEach(function(eventHandler,index){if(eventHandler===handler||eventHandler.__emitterProxy&&eventHandler.__emitterProxy===handler){self.eventsListeners[event].splice(index,1);}});}});return self;},emit:function emit(){var self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsListeners)return self;var events;var data;var context;for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}if(typeof args[0]==='string'||Array.isArray(args[0])){events=args[0];data=args.slice(1,args.length);context=self;}else{events=args[0].events;data=args[0].data;context=args[0].context||self;}data.unshift(context);var eventsArray=Array.isArray(events)?events:events.split(' ');eventsArray.forEach(function(event){if(self.eventsAnyListeners&&self.eventsAnyListeners.length){self.eventsAnyListeners.forEach(function(eventHandler){eventHandler.apply(context,[event].concat(_toConsumableArray(data)));});}if(self.eventsListeners&&self.eventsListeners[event]){self.eventsListeners[event].forEach(function(eventHandler){eventHandler.apply(context,data);});}});return self;}};function updateSize(){var swiper=this;var width;var height;var $el=swiper.$el;if(typeof swiper.params.width!=='undefined'&&swiper.params.width!==null){width=swiper.params.width;}else{width=$el[0].clientWidth;}if(typeof swiper.params.height!=='undefined'&&swiper.params.height!==null){height=swiper.params.height;}else{height=$el[0].clientHeight;}if(width===0&&swiper.isHorizontal()||height===0&&swiper.isVertical()){return;}// Subtract paddings width=width-parseInt($el.css('padding-left')||0,10)-parseInt($el.css('padding-right')||0,10);height=height-parseInt($el.css('padding-top')||0,10)-parseInt($el.css('padding-bottom')||0,10);if(Number.isNaN(width))width=0;if(Number.isNaN(height))height=0;Object.assign(swiper,{width:width,height:height,size:swiper.isHorizontal()?width:height});}function updateSlides(){var swiper=this;function getDirectionLabel(property){if(swiper.isHorizontal()){return property;}// prettier-ignore return{'width':'height','margin-top':'margin-left','margin-bottom ':'margin-right','margin-left':'margin-top','margin-right':'margin-bottom','padding-left':'padding-top','padding-right':'padding-bottom','marginRight':'marginBottom'}[property];}function getDirectionPropertyValue(node,label){return parseFloat(node.getPropertyValue(getDirectionLabel(label))||0);}var params=swiper.params;var $wrapperEl=swiper.$wrapperEl,swiperSize=swiper.size,rtl=swiper.rtlTranslate,wrongRTL=swiper.wrongRTL;var isVirtual=swiper.virtual&¶ms.virtual.enabled;var previousSlidesLength=isVirtual?swiper.virtual.slides.length:swiper.slides.length;var slides=$wrapperEl.children(".".concat(swiper.params.slideClass));var slidesLength=isVirtual?swiper.virtual.slides.length:slides.length;var snapGrid=[];var slidesGrid=[];var slidesSizesGrid=[];var offsetBefore=params.slidesOffsetBefore;if(typeof offsetBefore==='function'){offsetBefore=params.slidesOffsetBefore.call(swiper);}var offsetAfter=params.slidesOffsetAfter;if(typeof offsetAfter==='function'){offsetAfter=params.slidesOffsetAfter.call(swiper);}var previousSnapGridLength=swiper.snapGrid.length;var previousSlidesGridLength=swiper.slidesGrid.length;var spaceBetween=params.spaceBetween;var slidePosition=-offsetBefore;var prevSlideSize=0;var index=0;if(typeof swiperSize==='undefined'){return;}if(typeof spaceBetween==='string'&&spaceBetween.indexOf('%')>=0){spaceBetween=parseFloat(spaceBetween.replace('%',''))/100*swiperSize;}swiper.virtualSize=-spaceBetween;// reset margins if(rtl)slides.css({marginLeft:'',marginBottom:'',marginTop:''});else slides.css({marginRight:'',marginBottom:'',marginTop:''});// reset cssMode offsets if(params.centeredSlides&¶ms.cssMode){setCSSProperty(swiper.wrapperEl,'--swiper-centered-offset-before','');setCSSProperty(swiper.wrapperEl,'--swiper-centered-offset-after','');}var gridEnabled=params.grid&¶ms.grid.rows>1&&swiper.grid;if(gridEnabled){swiper.grid.initSlides(slidesLength);}// Calc slides var slideSize;var shouldResetSlideSize=params.slidesPerView==='auto'&¶ms.breakpoints&&Object.keys(params.breakpoints).filter(function(key){return typeof params.breakpoints[key].slidesPerView!=='undefined';}).length>0;for(var i=0;i1){snapGrid.push(swiper.virtualSize-swiperSize);}}if(snapGrid.length===0)snapGrid=[0];if(params.spaceBetween!==0){var key=swiper.isHorizontal()&&rtl?'marginLeft':getDirectionLabel('marginRight');slides.filter(function(_,slideIndex){if(!params.cssMode)return true;if(slideIndex===slides.length-1){return false;}return true;}).css(_defineProperty({},key,"".concat(spaceBetween,"px")));}if(params.centeredSlides&¶ms.centeredSlidesBounds){var allSlidesSize=0;slidesSizesGrid.forEach(function(slideSizeValue){allSlidesSize+=slideSizeValue+(params.spaceBetween?params.spaceBetween:0);});allSlidesSize-=params.spaceBetween;var maxSnap=allSlidesSize-swiperSize;snapGrid=snapGrid.map(function(snap){if(snap<0)return-offsetBefore;if(snap>maxSnap)return maxSnap+offsetAfter;return snap;});}if(params.centerInsufficientSlides){var _allSlidesSize=0;slidesSizesGrid.forEach(function(slideSizeValue){_allSlidesSize+=slideSizeValue+(params.spaceBetween?params.spaceBetween:0);});_allSlidesSize-=params.spaceBetween;if(_allSlidesSize1){if(swiper.params.centeredSlides){(swiper.visibleSlides||$([])).each(function(slide){activeSlides.push(slide);});}else{for(i=0;iswiper.slides.length&&!isVirtual)break;activeSlides.push(getSlideByIndex(_index));}}}else{activeSlides.push(getSlideByIndex(swiper.activeIndex));}// Find new height from highest slide in view for(i=0;inewHeight?height:newHeight;}}// Update Height if(newHeight||newHeight===0)swiper.$wrapperEl.css('height',"".concat(newHeight,"px"));}function updateSlidesOffset(){var swiper=this;var slides=swiper.slides;for(var i=0;i=0&&slideBefore1&&slideAfter<=swiper.size||slideBefore<=0&&slideAfter>=swiper.size;if(isVisible){swiper.visibleSlides.push(_slide2);swiper.visibleSlidesIndexes.push(i);slides.eq(i).addClass(params.slideVisibleClass);}_slide2.progress=rtl?-slideProgress:slideProgress;_slide2.originalProgress=rtl?-originalSlideProgress:originalSlideProgress;}swiper.visibleSlides=$(swiper.visibleSlides);}function updateProgress(translate){var swiper=this;if(typeof translate==='undefined'){var multiplier=swiper.rtlTranslate?-1:1;// eslint-disable-next-line translate=swiper&&swiper.translate&&swiper.translate*multiplier||0;}var params=swiper.params;var translatesDiff=swiper.maxTranslate()-swiper.minTranslate();var progress=swiper.progress,isBeginning=swiper.isBeginning,isEnd=swiper.isEnd;var wasBeginning=isBeginning;var wasEnd=isEnd;if(translatesDiff===0){progress=0;isBeginning=true;isEnd=true;}else{progress=(translate-swiper.minTranslate())/translatesDiff;isBeginning=progress<=0;isEnd=progress>=1;}Object.assign(swiper,{progress:progress,isBeginning:isBeginning,isEnd:isEnd});if(params.watchSlidesProgress||params.centeredSlides&¶ms.autoHeight)swiper.updateSlidesProgress(translate);if(isBeginning&&!wasBeginning){swiper.emit('reachBeginning toEdge');}if(isEnd&&!wasEnd){swiper.emit('reachEnd toEdge');}if(wasBeginning&&!isBeginning||wasEnd&&!isEnd){swiper.emit('fromEdge');}swiper.emit('progress',progress);}function updateSlidesClasses(){var swiper=this;var slides=swiper.slides,params=swiper.params,$wrapperEl=swiper.$wrapperEl,activeIndex=swiper.activeIndex,realIndex=swiper.realIndex;var isVirtual=swiper.virtual&¶ms.virtual.enabled;slides.removeClass("".concat(params.slideActiveClass," ").concat(params.slideNextClass," ").concat(params.slidePrevClass," ").concat(params.slideDuplicateActiveClass," ").concat(params.slideDuplicateNextClass," ").concat(params.slideDuplicatePrevClass));var activeSlide;if(isVirtual){activeSlide=swiper.$wrapperEl.find(".".concat(params.slideClass,"[data-swiper-slide-index=\"").concat(activeIndex,"\"]"));}else{activeSlide=slides.eq(activeIndex);}// Active classes activeSlide.addClass(params.slideActiveClass);if(params.loop){// Duplicate to all looped slides if(activeSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(".".concat(params.slideClass,":not(.").concat(params.slideDuplicateClass,")[data-swiper-slide-index=\"").concat(realIndex,"\"]")).addClass(params.slideDuplicateActiveClass);}else{$wrapperEl.children(".".concat(params.slideClass,".").concat(params.slideDuplicateClass,"[data-swiper-slide-index=\"").concat(realIndex,"\"]")).addClass(params.slideDuplicateActiveClass);}}// Next Slide var nextSlide=activeSlide.nextAll(".".concat(params.slideClass)).eq(0).addClass(params.slideNextClass);if(params.loop&&nextSlide.length===0){nextSlide=slides.eq(0);nextSlide.addClass(params.slideNextClass);}// Prev Slide var prevSlide=activeSlide.prevAll(".".concat(params.slideClass)).eq(0).addClass(params.slidePrevClass);if(params.loop&&prevSlide.length===0){prevSlide=slides.eq(-1);prevSlide.addClass(params.slidePrevClass);}if(params.loop){// Duplicate to all looped slides if(nextSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(".".concat(params.slideClass,":not(.").concat(params.slideDuplicateClass,")[data-swiper-slide-index=\"").concat(nextSlide.attr('data-swiper-slide-index'),"\"]")).addClass(params.slideDuplicateNextClass);}else{$wrapperEl.children(".".concat(params.slideClass,".").concat(params.slideDuplicateClass,"[data-swiper-slide-index=\"").concat(nextSlide.attr('data-swiper-slide-index'),"\"]")).addClass(params.slideDuplicateNextClass);}if(prevSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(".".concat(params.slideClass,":not(.").concat(params.slideDuplicateClass,")[data-swiper-slide-index=\"").concat(prevSlide.attr('data-swiper-slide-index'),"\"]")).addClass(params.slideDuplicatePrevClass);}else{$wrapperEl.children(".".concat(params.slideClass,".").concat(params.slideDuplicateClass,"[data-swiper-slide-index=\"").concat(prevSlide.attr('data-swiper-slide-index'),"\"]")).addClass(params.slideDuplicatePrevClass);}}swiper.emitSlidesClasses();}function updateActiveIndex(newActiveIndex){var swiper=this;var translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;var slidesGrid=swiper.slidesGrid,snapGrid=swiper.snapGrid,params=swiper.params,previousIndex=swiper.activeIndex,previousRealIndex=swiper.realIndex,previousSnapIndex=swiper.snapIndex;var activeIndex=newActiveIndex;var snapIndex;if(typeof activeIndex==='undefined'){for(var i=0;i=slidesGrid[i]&&translate=slidesGrid[i]&&translate=slidesGrid[i]){activeIndex=i;}}// Normalize slideIndex if(params.normalizeSlideIndex){if(activeIndex<0||typeof activeIndex==='undefined')activeIndex=0;}}if(snapGrid.indexOf(translate)>=0){snapIndex=snapGrid.indexOf(translate);}else{var skip=Math.min(params.slidesPerGroupSkip,activeIndex);snapIndex=skip+Math.floor((activeIndex-skip)/params.slidesPerGroup);}if(snapIndex>=snapGrid.length)snapIndex=snapGrid.length-1;if(activeIndex===previousIndex){if(snapIndex!==previousSnapIndex){swiper.snapIndex=snapIndex;swiper.emit('snapIndexChange');}return;}// Get real index var realIndex=parseInt(swiper.slides.eq(activeIndex).attr('data-swiper-slide-index')||activeIndex,10);Object.assign(swiper,{snapIndex:snapIndex,realIndex:realIndex,previousIndex:previousIndex,activeIndex:activeIndex});swiper.emit('activeIndexChange');swiper.emit('snapIndexChange');if(previousRealIndex!==realIndex){swiper.emit('realIndexChange');}if(swiper.initialized||swiper.params.runCallbacksOnInit){swiper.emit('slideChange');}}function updateClickedSlide(e){var swiper=this;var params=swiper.params;var slide=$(e).closest(".".concat(params.slideClass))[0];var slideFound=false;var slideIndex;if(slide){for(var i=0;iminTranslate)newTranslate=minTranslate;else if(translateBounds&&translatepreviousIndex)dir='next';else if(activeIndex=snapGrid.length)snapIndex=snapGrid.length-1;if((activeIndex||params.initialSlide||0)===(previousIndex||0)&&runCallbacks){swiper.emit('beforeSlideChangeStart');}var translate=-snapGrid[snapIndex];// Update progress swiper.updateProgress(translate);// Normalize slideIndex if(params.normalizeSlideIndex){for(var i=0;i=normalizedGrid&&normalizedTranslate=normalizedGrid&&normalizedTranslate=normalizedGrid){slideIndex=i;}}}// Directions locks if(swiper.initialized&&slideIndex!==activeIndex){if(!swiper.allowSlideNext&&translateswiper.translate&&translate>swiper.maxTranslate()){if((activeIndex||0)!==slideIndex)return false;}}var direction;if(slideIndex>activeIndex)direction='next';else if(slideIndex=snap){// prevSnap = snap; prevSnapIndex=snapIndex;}});if(typeof prevSnapIndex!=='undefined'){prevSnap=snapGrid[prevSnapIndex>0?prevSnapIndex-1:prevSnapIndex];}}var prevIndex=0;if(typeof prevSnap!=='undefined'){prevIndex=slidesGrid.indexOf(prevSnap);if(prevIndex<0)prevIndex=swiper.activeIndex-1;if(params.slidesPerView==='auto'&¶ms.slidesPerGroup===1&¶ms.slidesPerGroupAuto){prevIndex=prevIndex-swiper.slidesPerViewDynamic('previous',true)+1;prevIndex=Math.max(prevIndex,0);}}if(params.rewind&&swiper.isBeginning){var lastIndex=swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1;return swiper.slideTo(lastIndex,speed,runCallbacks,internal);}return swiper.slideTo(prevIndex,speed,runCallbacks,internal);}/* eslint no-unused-vars: "off" */function slideReset(speed,runCallbacks,internal){if(speed===void 0){speed=this.params.speed;}if(runCallbacks===void 0){runCallbacks=true;}var swiper=this;return swiper.slideTo(swiper.activeIndex,speed,runCallbacks,internal);}/* eslint no-unused-vars: "off" */function slideToClosest(speed,runCallbacks,internal,threshold){if(speed===void 0){speed=this.params.speed;}if(runCallbacks===void 0){runCallbacks=true;}if(threshold===void 0){threshold=0.5;}var swiper=this;var index=swiper.activeIndex;var skip=Math.min(swiper.params.slidesPerGroupSkip,index);var snapIndex=skip+Math.floor((index-skip)/swiper.params.slidesPerGroup);var translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;if(translate>=swiper.snapGrid[snapIndex]){// The current translate is on or after the current snap index, so the choice // is between the current index and the one after it. var currentSnap=swiper.snapGrid[snapIndex];var nextSnap=swiper.snapGrid[snapIndex+1];if(translate-currentSnap>(nextSnap-currentSnap)*threshold){index+=swiper.params.slidesPerGroup;}}else{// The current translate is before the current snap index, so the choice // is between the current index and the one before it. var prevSnap=swiper.snapGrid[snapIndex-1];var _currentSnap=swiper.snapGrid[snapIndex];if(translate-prevSnap<=(_currentSnap-prevSnap)*threshold){index-=swiper.params.slidesPerGroup;}}index=Math.max(index,0);index=Math.min(index,swiper.slidesGrid.length-1);return swiper.slideTo(index,speed,runCallbacks,internal);}function slideToClickedSlide(){var swiper=this;var params=swiper.params,$wrapperEl=swiper.$wrapperEl;var slidesPerView=params.slidesPerView==='auto'?swiper.slidesPerViewDynamic():params.slidesPerView;var slideToIndex=swiper.clickedIndex;var realIndex;if(params.loop){if(swiper.animating)return;realIndex=parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'),10);if(params.centeredSlides){if(slideToIndexswiper.slides.length-swiper.loopedSlides+slidesPerView/2){swiper.loopFix();slideToIndex=$wrapperEl.children(".".concat(params.slideClass,"[data-swiper-slide-index=\"").concat(realIndex,"\"]:not(.").concat(params.slideDuplicateClass,")")).eq(0).index();nextTick(function(){swiper.slideTo(slideToIndex);});}else{swiper.slideTo(slideToIndex);}}else if(slideToIndex>swiper.slides.length-slidesPerView){swiper.loopFix();slideToIndex=$wrapperEl.children(".".concat(params.slideClass,"[data-swiper-slide-index=\"").concat(realIndex,"\"]:not(.").concat(params.slideDuplicateClass,")")).eq(0).index();nextTick(function(){swiper.slideTo(slideToIndex);});}else{swiper.slideTo(slideToIndex);}}else{swiper.slideTo(slideToIndex);}}var slide={slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide};function loopCreate(){var swiper=this;var document=getDocument();var params=swiper.params,$wrapperEl=swiper.$wrapperEl;// Remove duplicated slides var $selector=$wrapperEl.children().length>0?$($wrapperEl.children()[0].parentNode):$wrapperEl;$selector.children(".".concat(params.slideClass,".").concat(params.slideDuplicateClass)).remove();var slides=$selector.children(".".concat(params.slideClass));if(params.loopFillGroupWithBlank){var blankSlidesNum=params.slidesPerGroup-slides.length%params.slidesPerGroup;if(blankSlidesNum!==params.slidesPerGroup){for(var i=0;islides.length){swiper.loopedSlides=slides.length;}var prependSlides=[];var appendSlides=[];slides.each(function(el,index){var slide=$(el);if(index=slides.length-swiper.loopedSlides){prependSlides.push(el);}slide.attr('data-swiper-slide-index',index);});for(var _i2=0;_i2=0;_i3-=1){$selector.prepend($(prependSlides[_i3].cloneNode(true)).addClass(params.slideDuplicateClass));}}function loopFix(){var swiper=this;swiper.emit('beforeLoopFix');var activeIndex=swiper.activeIndex,slides=swiper.slides,loopedSlides=swiper.loopedSlides,allowSlidePrev=swiper.allowSlidePrev,allowSlideNext=swiper.allowSlideNext,snapGrid=swiper.snapGrid,rtl=swiper.rtlTranslate;var newIndex;swiper.allowSlidePrev=true;swiper.allowSlideNext=true;var snapTranslate=-snapGrid[activeIndex];var diff=snapTranslate-swiper.getTranslate();// Fix For Negative Oversliding if(activeIndex=slides.length-loopedSlides){// Fix For Positive Oversliding newIndex=-slides.length+activeIndex+loopedSlides;newIndex+=loopedSlides;var _slideChanged=swiper.slideTo(newIndex,0,false,true);if(_slideChanged&&diff!==0){swiper.setTranslate((rtl?-swiper.translate:swiper.translate)-diff);}}swiper.allowSlidePrev=allowSlidePrev;swiper.allowSlideNext=allowSlideNext;swiper.emit('loopFix');}function loopDestroy(){var swiper=this;var $wrapperEl=swiper.$wrapperEl,params=swiper.params,slides=swiper.slides;$wrapperEl.children(".".concat(params.slideClass,".").concat(params.slideDuplicateClass,",.").concat(params.slideClass,".").concat(params.slideBlankClass)).remove();slides.removeAttr('data-swiper-slide-index');}var loop={loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy};function setGrabCursor(moving){var swiper=this;if(swiper.support.touch||!swiper.params.simulateTouch||swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode)return;var el=swiper.params.touchEventsTarget==='container'?swiper.el:swiper.wrapperEl;el.style.cursor='move';el.style.cursor=moving?'grabbing':'grab';}function unsetGrabCursor(){var swiper=this;if(swiper.support.touch||swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode){return;}swiper[swiper.params.touchEventsTarget==='container'?'el':'wrapperEl'].style.cursor='';}var grabCursor={setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor};function closestElement(selector,base){if(base===void 0){base=this;}function __closestFrom(el){if(!el||el===getDocument()||el===getWindow())return null;if(el.assignedSlot)el=el.assignedSlot;var found=el.closest(selector);if(!found&&!el.getRootNode){return null;}return found||__closestFrom(el.getRootNode().host);}return __closestFrom(base);}function onTouchStart(event){var swiper=this;var document=getDocument();var window=getWindow();var data=swiper.touchEventsData;var params=swiper.params,touches=swiper.touches,enabled=swiper.enabled;if(!enabled)return;if(swiper.animating&¶ms.preventInteractionOnTransition){return;}if(!swiper.animating&¶ms.cssMode&¶ms.loop){swiper.loopFix();}var e=event;if(e.originalEvent)e=e.originalEvent;var $targetEl=$(e.target);if(params.touchEventsTarget==='wrapper'){if(!$targetEl.closest(swiper.wrapperEl).length)return;}data.isTouchEvent=e.type==='touchstart';if(!data.isTouchEvent&&'which'in e&&e.which===3)return;if(!data.isTouchEvent&&'button'in e&&e.button>0)return;if(data.isTouched&&data.isMoved)return;// change target el for shadow root component var swipingClassHasValue=!!params.noSwipingClass&¶ms.noSwipingClass!=='';if(swipingClassHasValue&&e.target&&e.target.shadowRoot&&event.path&&event.path[0]){$targetEl=$(event.path[0]);}var noSwipingSelector=params.noSwipingSelector?params.noSwipingSelector:".".concat(params.noSwipingClass);var isTargetShadow=!!(e.target&&e.target.shadowRoot);// use closestElement for shadow root element to get the actual closest for nested shadow root element if(params.noSwiping&&(isTargetShadow?closestElement(noSwipingSelector,$targetEl[0]):$targetEl.closest(noSwipingSelector)[0])){swiper.allowClick=true;return;}if(params.swipeHandler){if(!$targetEl.closest(params.swipeHandler)[0])return;}touches.currentX=e.type==='touchstart'?e.targetTouches[0].pageX:e.pageX;touches.currentY=e.type==='touchstart'?e.targetTouches[0].pageY:e.pageY;var startX=touches.currentX;var startY=touches.currentY;// Do NOT start if iOS edge swipe is detected. Otherwise iOS app cannot swipe-to-go-back anymore var edgeSwipeDetection=params.edgeSwipeDetection||params.iOSEdgeSwipeDetection;var edgeSwipeThreshold=params.edgeSwipeThreshold||params.iOSEdgeSwipeThreshold;if(edgeSwipeDetection&&(startX<=edgeSwipeThreshold||startX>=window.innerWidth-edgeSwipeThreshold)){if(edgeSwipeDetection==='prevent'){event.preventDefault();}else{return;}}Object.assign(data,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});touches.startX=startX;touches.startY=startY;data.touchStartTime=now();swiper.allowClick=true;swiper.updateSize();swiper.swipeDirection=undefined;if(params.threshold>0)data.allowThresholdMove=false;if(e.type!=='touchstart'){var preventDefault=true;if($targetEl.is(data.focusableElements)){preventDefault=false;if($targetEl[0].nodeName==='SELECT'){data.isTouched=false;}}if(document.activeElement&&$(document.activeElement).is(data.focusableElements)&&document.activeElement!==$targetEl[0]){document.activeElement.blur();}var shouldPreventDefault=preventDefault&&swiper.allowTouchMove&¶ms.touchStartPreventDefault;if((params.touchStartForcePreventDefault||shouldPreventDefault)&&!$targetEl[0].isContentEditable){e.preventDefault();}}if(swiper.params.freeMode&&swiper.params.freeMode.enabled&&swiper.freeMode&&swiper.animating&&!params.cssMode){swiper.freeMode.onTouchStart();}swiper.emit('touchStart',e);}function onTouchMove(event){var document=getDocument();var swiper=this;var data=swiper.touchEventsData;var params=swiper.params,touches=swiper.touches,rtl=swiper.rtlTranslate,enabled=swiper.enabled;if(!enabled)return;var e=event;if(e.originalEvent)e=e.originalEvent;if(!data.isTouched){if(data.startMoving&&data.isScrolling){swiper.emit('touchMoveOpposite',e);}return;}if(data.isTouchEvent&&e.type!=='touchmove')return;var targetTouch=e.type==='touchmove'&&e.targetTouches&&(e.targetTouches[0]||e.changedTouches[0]);var pageX=e.type==='touchmove'?targetTouch.pageX:e.pageX;var pageY=e.type==='touchmove'?targetTouch.pageY:e.pageY;if(e.preventedByNestedSwiper){touches.startX=pageX;touches.startY=pageY;return;}if(!swiper.allowTouchMove){if(!$(e.target).is(data.focusableElements)){swiper.allowClick=false;}if(data.isTouched){Object.assign(touches,{startX:pageX,startY:pageY,currentX:pageX,currentY:pageY});data.touchStartTime=now();}return;}if(data.isTouchEvent&¶ms.touchReleaseOnEdges&&!params.loop){if(swiper.isVertical()){// Vertical if(pageYtouches.startY&&swiper.translate>=swiper.minTranslate()){data.isTouched=false;data.isMoved=false;return;}}else if(pageXtouches.startX&&swiper.translate>=swiper.minTranslate()){return;}}if(data.isTouchEvent&&document.activeElement){if(e.target===document.activeElement&&$(e.target).is(data.focusableElements)){data.isMoved=true;swiper.allowClick=false;return;}}if(data.allowTouchCallbacks){swiper.emit('touchMove',e);}if(e.targetTouches&&e.targetTouches.length>1)return;touches.currentX=pageX;touches.currentY=pageY;var diffX=touches.currentX-touches.startX;var diffY=touches.currentY-touches.startY;if(swiper.params.threshold&&Math.sqrt(Math.pow(diffX,2)+Math.pow(diffY,2))=25){touchAngle=Math.atan2(Math.abs(diffY),Math.abs(diffX))*180/Math.PI;data.isScrolling=swiper.isHorizontal()?touchAngle>params.touchAngle:90-touchAngle>params.touchAngle;}}}if(data.isScrolling){swiper.emit('touchMoveOpposite',e);}if(typeof data.startMoving==='undefined'){if(touches.currentX!==touches.startX||touches.currentY!==touches.startY){data.startMoving=true;}}if(data.isScrolling){data.isTouched=false;return;}if(!data.startMoving){return;}swiper.allowClick=false;if(!params.cssMode&&e.cancelable){e.preventDefault();}if(params.touchMoveStopPropagation&&!params.nested){e.stopPropagation();}if(!data.isMoved){if(params.loop&&!params.cssMode){swiper.loopFix();}data.startTranslate=swiper.getTranslate();swiper.setTransition(0);if(swiper.animating){swiper.$wrapperEl.trigger('webkitTransitionEnd transitionend');}data.allowMomentumBounce=false;// Grab Cursor if(params.grabCursor&&(swiper.allowSlideNext===true||swiper.allowSlidePrev===true)){swiper.setGrabCursor(true);}swiper.emit('sliderFirstMove',e);}swiper.emit('sliderMove',e);data.isMoved=true;var diff=swiper.isHorizontal()?diffX:diffY;touches.diff=diff;diff*=params.touchRatio;if(rtl)diff=-diff;swiper.swipeDirection=diff>0?'prev':'next';data.currentTranslate=diff+data.startTranslate;var disableParentSwiper=true;var resistanceRatio=params.resistanceRatio;if(params.touchReleaseOnEdges){resistanceRatio=0;}if(diff>0&&data.currentTranslate>swiper.minTranslate()){disableParentSwiper=false;if(params.resistance)data.currentTranslate=swiper.minTranslate()-1+Math.pow(-swiper.minTranslate()+data.startTranslate+diff,resistanceRatio);}else if(diff<0&&data.currentTranslatedata.startTranslate){data.currentTranslate=data.startTranslate;}if(!swiper.allowSlidePrev&&!swiper.allowSlideNext){data.currentTranslate=data.startTranslate;}// Threshold if(params.threshold>0){if(Math.abs(diff)>params.threshold||data.allowThresholdMove){if(!data.allowThresholdMove){data.allowThresholdMove=true;touches.startX=touches.currentX;touches.startY=touches.currentY;data.currentTranslate=data.startTranslate;touches.diff=swiper.isHorizontal()?touches.currentX-touches.startX:touches.currentY-touches.startY;return;}}else{data.currentTranslate=data.startTranslate;return;}}if(!params.followFinger||params.cssMode)return;// Update active index in free mode if(params.freeMode&¶ms.freeMode.enabled&&swiper.freeMode||params.watchSlidesProgress){swiper.updateActiveIndex();swiper.updateSlidesClasses();}if(swiper.params.freeMode&¶ms.freeMode.enabled&&swiper.freeMode){swiper.freeMode.onTouchMove();}// Update progress swiper.updateProgress(data.currentTranslate);// Update translate swiper.setTranslate(data.currentTranslate);}function onTouchEnd(event){var swiper=this;var data=swiper.touchEventsData;var params=swiper.params,touches=swiper.touches,rtl=swiper.rtlTranslate,slidesGrid=swiper.slidesGrid,enabled=swiper.enabled;if(!enabled)return;var e=event;if(e.originalEvent)e=e.originalEvent;if(data.allowTouchCallbacks){swiper.emit('touchEnd',e);}data.allowTouchCallbacks=false;if(!data.isTouched){if(data.isMoved&¶ms.grabCursor){swiper.setGrabCursor(false);}data.isMoved=false;data.startMoving=false;return;}// Return Grab Cursor if(params.grabCursor&&data.isMoved&&data.isTouched&&(swiper.allowSlideNext===true||swiper.allowSlidePrev===true)){swiper.setGrabCursor(false);}// Time diff var touchEndTime=now();var timeDiff=touchEndTime-data.touchStartTime;// Tap, doubleTap, Click if(swiper.allowClick){var pathTree=e.path||e.composedPath&&e.composedPath();swiper.updateClickedSlide(pathTree&&pathTree[0]||e.target);swiper.emit('tap click',e);if(timeDiff<300&&touchEndTime-data.lastClickTime<300){swiper.emit('doubleTap doubleClick',e);}}data.lastClickTime=now();nextTick(function(){if(!swiper.destroyed)swiper.allowClick=true;});if(!data.isTouched||!data.isMoved||!swiper.swipeDirection||touches.diff===0||data.currentTranslate===data.startTranslate){data.isTouched=false;data.isMoved=false;data.startMoving=false;return;}data.isTouched=false;data.isMoved=false;data.startMoving=false;var currentPos;if(params.followFinger){currentPos=rtl?swiper.translate:-swiper.translate;}else{currentPos=-data.currentTranslate;}if(params.cssMode){return;}if(swiper.params.freeMode&¶ms.freeMode.enabled){swiper.freeMode.onTouchEnd({currentPos:currentPos});return;}// Find current slide var stopIndex=0;var groupSize=swiper.slidesSizesGrid[0];for(var i=0;i=slidesGrid[i]&¤tPos=slidesGrid[i]){stopIndex=i;groupSize=slidesGrid[slidesGrid.length-1]-slidesGrid[slidesGrid.length-2];}}var rewindFirstIndex=null;var rewindLastIndex=null;if(params.rewind){if(swiper.isBeginning){rewindLastIndex=swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1;}else if(swiper.isEnd){rewindFirstIndex=0;}}// Find current slide size var ratio=(currentPos-slidesGrid[stopIndex])/groupSize;var increment=stopIndexparams.longSwipesMs){// Long touches if(!params.longSwipes){swiper.slideTo(swiper.activeIndex);return;}if(swiper.swipeDirection==='next'){if(ratio>=params.longSwipesRatio)swiper.slideTo(params.rewind&&swiper.isEnd?rewindFirstIndex:stopIndex+increment);else swiper.slideTo(stopIndex);}if(swiper.swipeDirection==='prev'){if(ratio>1-params.longSwipesRatio){swiper.slideTo(stopIndex+increment);}else if(rewindLastIndex!==null&&ratio<0&&Math.abs(ratio)>params.longSwipesRatio){swiper.slideTo(rewindLastIndex);}else{swiper.slideTo(stopIndex);}}}else{// Short swipes if(!params.shortSwipes){swiper.slideTo(swiper.activeIndex);return;}var isNavButtonTarget=swiper.navigation&&(e.target===swiper.navigation.nextEl||e.target===swiper.navigation.prevEl);if(!isNavButtonTarget){if(swiper.swipeDirection==='next'){swiper.slideTo(rewindFirstIndex!==null?rewindFirstIndex:stopIndex+increment);}if(swiper.swipeDirection==='prev'){swiper.slideTo(rewindLastIndex!==null?rewindLastIndex:stopIndex);}}else if(e.target===swiper.navigation.nextEl){swiper.slideTo(stopIndex+increment);}else{swiper.slideTo(stopIndex);}}}function onResize(){var swiper=this;var params=swiper.params,el=swiper.el;if(el&&el.offsetWidth===0)return;// Breakpoints if(params.breakpoints){swiper.setBreakpoint();}// Save locks var allowSlideNext=swiper.allowSlideNext,allowSlidePrev=swiper.allowSlidePrev,snapGrid=swiper.snapGrid;// Disable locks on resize swiper.allowSlideNext=true;swiper.allowSlidePrev=true;swiper.updateSize();swiper.updateSlides();swiper.updateSlidesClasses();if((params.slidesPerView==='auto'||params.slidesPerView>1)&&swiper.isEnd&&!swiper.isBeginning&&!swiper.params.centeredSlides){swiper.slideTo(swiper.slides.length-1,0,false,true);}else{swiper.slideTo(swiper.activeIndex,0,false,true);}if(swiper.autoplay&&swiper.autoplay.running&&swiper.autoplay.paused){swiper.autoplay.run();}// Return locks after resize swiper.allowSlidePrev=allowSlidePrev;swiper.allowSlideNext=allowSlideNext;if(swiper.params.watchOverflow&&snapGrid!==swiper.snapGrid){swiper.checkOverflow();}}function onClick(e){var swiper=this;if(!swiper.enabled)return;if(!swiper.allowClick){if(swiper.params.preventClicks)e.preventDefault();if(swiper.params.preventClicksPropagation&&swiper.animating){e.stopPropagation();e.stopImmediatePropagation();}}}function onScroll(){var swiper=this;var wrapperEl=swiper.wrapperEl,rtlTranslate=swiper.rtlTranslate,enabled=swiper.enabled;if(!enabled)return;swiper.previousTranslate=swiper.translate;if(swiper.isHorizontal()){swiper.translate=-wrapperEl.scrollLeft;}else{swiper.translate=-wrapperEl.scrollTop;}// eslint-disable-next-line if(swiper.translate===0)swiper.translate=0;swiper.updateActiveIndex();swiper.updateSlidesClasses();var newProgress;var translatesDiff=swiper.maxTranslate()-swiper.minTranslate();if(translatesDiff===0){newProgress=0;}else{newProgress=(swiper.translate-swiper.minTranslate())/translatesDiff;}if(newProgress!==swiper.progress){swiper.updateProgress(rtlTranslate?-swiper.translate:swiper.translate);}swiper.emit('setTranslate',swiper.translate,false);}var dummyEventAttached=false;function dummyEventListener(){}var events=function events(swiper,method){var document=getDocument();var params=swiper.params,touchEvents=swiper.touchEvents,el=swiper.el,wrapperEl=swiper.wrapperEl,device=swiper.device,support=swiper.support;var capture=!!params.nested;var domMethod=method==='on'?'addEventListener':'removeEventListener';var swiperMethod=method;// Touch Events if(!support.touch){el[domMethod](touchEvents.start,swiper.onTouchStart,false);document[domMethod](touchEvents.move,swiper.onTouchMove,capture);document[domMethod](touchEvents.end,swiper.onTouchEnd,false);}else{var passiveListener=touchEvents.start==='touchstart'&&support.passiveListener&¶ms.passiveListeners?{passive:true,capture:false}:false;el[domMethod](touchEvents.start,swiper.onTouchStart,passiveListener);el[domMethod](touchEvents.move,swiper.onTouchMove,support.passiveListener?{passive:false,capture:capture}:capture);el[domMethod](touchEvents.end,swiper.onTouchEnd,passiveListener);if(touchEvents.cancel){el[domMethod](touchEvents.cancel,swiper.onTouchEnd,passiveListener);}}// Prevent Links Clicks if(params.preventClicks||params.preventClicksPropagation){el[domMethod]('click',swiper.onClick,true);}if(params.cssMode){wrapperEl[domMethod]('scroll',swiper.onScroll);}// Resize handler if(params.updateOnWindowResize){swiper[swiperMethod](device.ios||device.android?'resize orientationchange observerUpdate':'resize observerUpdate',onResize,true);}else{swiper[swiperMethod]('observerUpdate',onResize,true);}};function attachEvents(){var swiper=this;var document=getDocument();var params=swiper.params,support=swiper.support;swiper.onTouchStart=onTouchStart.bind(swiper);swiper.onTouchMove=onTouchMove.bind(swiper);swiper.onTouchEnd=onTouchEnd.bind(swiper);if(params.cssMode){swiper.onScroll=onScroll.bind(swiper);}swiper.onClick=onClick.bind(swiper);if(support.touch&&!dummyEventAttached){document.addEventListener('touchstart',dummyEventListener);dummyEventAttached=true;}events(swiper,'on');}function detachEvents(){var swiper=this;events(swiper,'off');}var events$1={attachEvents:attachEvents,detachEvents:detachEvents};var isGridEnabled=function isGridEnabled(swiper,params){return swiper.grid&¶ms.grid&¶ms.grid.rows>1;};function setBreakpoint(){var swiper=this;var activeIndex=swiper.activeIndex,initialized=swiper.initialized,_swiper$loopedSlides=swiper.loopedSlides,loopedSlides=_swiper$loopedSlides===void 0?0:_swiper$loopedSlides,params=swiper.params,$el=swiper.$el;var breakpoints=params.breakpoints;if(!breakpoints||breakpoints&&Object.keys(breakpoints).length===0)return;// Get breakpoint for window width and update parameters var breakpoint=swiper.getBreakpoint(breakpoints,swiper.params.breakpointsBase,swiper.el);if(!breakpoint||swiper.currentBreakpoint===breakpoint)return;var breakpointOnlyParams=breakpoint in breakpoints?breakpoints[breakpoint]:undefined;var breakpointParams=breakpointOnlyParams||swiper.originalParams;var wasMultiRow=isGridEnabled(swiper,params);var isMultiRow=isGridEnabled(swiper,breakpointParams);var wasEnabled=params.enabled;if(wasMultiRow&&!isMultiRow){$el.removeClass("".concat(params.containerModifierClass,"grid ").concat(params.containerModifierClass,"grid-column"));swiper.emitContainerClasses();}else if(!wasMultiRow&&isMultiRow){$el.addClass("".concat(params.containerModifierClass,"grid"));if(breakpointParams.grid.fill&&breakpointParams.grid.fill==='column'||!breakpointParams.grid.fill&¶ms.grid.fill==='column'){$el.addClass("".concat(params.containerModifierClass,"grid-column"));}swiper.emitContainerClasses();}// Toggle navigation, pagination, scrollbar ['navigation','pagination','scrollbar'].forEach(function(prop){var wasModuleEnabled=params[prop]&¶ms[prop].enabled;var isModuleEnabled=breakpointParams[prop]&&breakpointParams[prop].enabled;if(wasModuleEnabled&&!isModuleEnabled){swiper[prop].disable();}if(!wasModuleEnabled&&isModuleEnabled){swiper[prop].enable();}});var directionChanged=breakpointParams.direction&&breakpointParams.direction!==params.direction;var needsReLoop=params.loop&&(breakpointParams.slidesPerView!==params.slidesPerView||directionChanged);if(directionChanged&&initialized){swiper.changeDirection();}extend$1(swiper.params,breakpointParams);var isEnabled=swiper.params.enabled;Object.assign(swiper,{allowTouchMove:swiper.params.allowTouchMove,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev});if(wasEnabled&&!isEnabled){swiper.disable();}else if(!wasEnabled&&isEnabled){swiper.enable();}swiper.currentBreakpoint=breakpoint;swiper.emit('_beforeBreakpoint',breakpointParams);if(needsReLoop&&initialized){swiper.loopDestroy();swiper.loopCreate();swiper.updateSlides();swiper.slideTo(activeIndex-loopedSlides+swiper.loopedSlides,0,false);}swiper.emit('breakpoint',breakpointParams);}function getBreakpoint(breakpoints,base,containerEl){if(base===void 0){base='window';}if(!breakpoints||base==='container'&&!containerEl)return undefined;var breakpoint=false;var window=getWindow();var currentHeight=base==='window'?window.innerHeight:containerEl.clientHeight;var points=Object.keys(breakpoints).map(function(point){if(typeof point==='string'&&point.indexOf('@')===0){var minRatio=parseFloat(point.substr(1));var value=currentHeight*minRatio;return{value:value,point:point};}return{value:point,point:point};});points.sort(function(a,b){return parseInt(a.value,10)-parseInt(b.value,10);});for(var i=0;i1},{'grid-column':params.grid&¶ms.grid.rows>1&¶ms.grid.fill==='column'},{'android':device.android},{'ios':device.ios},{'css-mode':params.cssMode},{'centered':params.cssMode&¶ms.centeredSlides},{'watch-progress':params.watchSlidesProgress}],params.containerModifierClass);classNames.push.apply(classNames,_toConsumableArray(suffixes));$el.addClass(_toConsumableArray(classNames).join(' '));swiper.emitContainerClasses();}function removeClasses(){var swiper=this;var $el=swiper.$el,classNames=swiper.classNames;$el.removeClass(classNames.join(' '));swiper.emitContainerClasses();}var classes={addClasses:addClasses,removeClasses:removeClasses};function loadImage(imageEl,src,srcset,sizes,checkForComplete,callback){var window=getWindow();var image;function onReady(){if(callback)callback();}var isPicture=$(imageEl).parent('picture')[0];if(!isPicture&&(!imageEl.complete||!checkForComplete)){if(src){image=new window.Image();image.onload=onReady;image.onerror=onReady;if(sizes){image.sizes=sizes;}if(srcset){image.srcset=srcset;}if(src){image.src=src;}}else{onReady();}}else{// image already loaded... onReady();}}function preloadImages(){var swiper=this;swiper.imagesToLoad=swiper.$el.find('img');function onReady(){if(typeof swiper==='undefined'||swiper===null||!swiper||swiper.destroyed)return;if(swiper.imagesLoaded!==undefined)swiper.imagesLoaded+=1;if(swiper.imagesLoaded===swiper.imagesToLoad.length){if(swiper.params.updateOnImagesReady)swiper.update();swiper.emit('imagesReady');}}for(var i=0;ilastSlideRightEdge;}else{swiper.isLocked=swiper.snapGrid.length===1;}if(params.allowSlideNext===true){swiper.allowSlideNext=!swiper.isLocked;}if(params.allowSlidePrev===true){swiper.allowSlidePrev=!swiper.isLocked;}if(wasLocked&&wasLocked!==swiper.isLocked){swiper.isEnd=false;}if(wasLocked!==swiper.isLocked){swiper.emit(swiper.isLocked?'lock':'unlock');}}var checkOverflow$1={checkOverflow:checkOverflow};var defaults={init:true,direction:'horizontal',touchEventsTarget:'wrapper',initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:'input, select, option, textarea, button, video, label',// Overrides width:null,height:null,// preventInteractionOnTransition:false,// ssr userAgent:null,url:null,// To support iOS's swipe-to-go-back gesture (when being used in-app). edgeSwipeDetection:false,edgeSwipeThreshold:20,// Autoheight autoHeight:false,// Set wrapper width setWrapperSize:false,// Virtual Translate virtualTranslate:false,// Effects effect:'slide',// 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip' // Breakpoints breakpoints:undefined,breakpointsBase:'window',// Slides grid spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,// in px slidesOffsetAfter:0,// in px normalizeSlideIndex:true,centerInsufficientSlides:false,// Disable swiper and hide navigation when container not overflow watchOverflow:true,// Round length roundLengths:false,// Touches touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:0.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:0,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,// Unique Navigation Elements uniqueNavElements:true,// Resistance resistance:true,resistanceRatio:0.85,// Progress watchSlidesProgress:false,// Cursor grabCursor:false,// Clicks preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,// Images preloadImages:true,updateOnImagesReady:true,// loop loop:false,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:false,loopPreventsSlide:true,// rewind rewind:false,// Swiping/no swiping allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,// '.swipe-handler', noSwiping:true,noSwipingClass:'swiper-no-swiping',noSwipingSelector:null,// Passive Listeners passiveListeners:true,maxBackfaceHiddenSlides:10,// NS containerModifierClass:'swiper-',// NEW slideClass:'swiper-slide',slideBlankClass:'swiper-slide-invisible-blank',slideActiveClass:'swiper-slide-active',slideDuplicateActiveClass:'swiper-slide-duplicate-active',slideVisibleClass:'swiper-slide-visible',slideDuplicateClass:'swiper-slide-duplicate',slideNextClass:'swiper-slide-next',slideDuplicateNextClass:'swiper-slide-duplicate-next',slidePrevClass:'swiper-slide-prev',slideDuplicatePrevClass:'swiper-slide-duplicate-prev',wrapperClass:'swiper-wrapper',// Callbacks runCallbacksOnInit:true,// Internals _emitClasses:false};function moduleExtendParams(params,allModulesParams){return function extendParams(obj){if(obj===void 0){obj={};}var moduleParamName=Object.keys(obj)[0];var moduleParams=obj[moduleParamName];if(_typeof(moduleParams)!=='object'||moduleParams===null){extend$1(allModulesParams,obj);return;}if(['navigation','pagination','scrollbar'].indexOf(moduleParamName)>=0&¶ms[moduleParamName]===true){params[moduleParamName]={auto:true};}if(!(moduleParamName in params&&'enabled'in moduleParams)){extend$1(allModulesParams,obj);return;}if(params[moduleParamName]===true){params[moduleParamName]={enabled:true};}if(_typeof(params[moduleParamName])==='object'&&!('enabled'in params[moduleParamName])){params[moduleParamName].enabled=true;}if(!params[moduleParamName])params[moduleParamName]={enabled:false};extend$1(allModulesParams,obj);};}/* eslint no-param-reassign: "off" */var prototypes={eventsEmitter:eventsEmitter,update:update,translate:translate,transition:transition,slide:slide,loop:loop,grabCursor:grabCursor,events:events$1,breakpoints:breakpoints,checkOverflow:checkOverflow$1,classes:classes,images:images};var extendedDefaults={};var Swiper$1=/*#__PURE__*/function(){function Swiper$1(){_classCallCheck(this,Swiper$1);var el;var params;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}if(args.length===1&&args[0].constructor&&Object.prototype.toString.call(args[0]).slice(8,-1)==='Object'){params=args[0];}else{el=args[0];params=args[1];}if(!params)params={};params=extend$1({},params);if(el&&!params.el)params.el=el;if(params.el&&$(params.el).length>1){var swipers=[];$(params.el).each(function(containerEl){var newParams=extend$1({},params,{el:containerEl});swipers.push(new Swiper$1(newParams));});return swipers;}// Swiper Instance var swiper=this;swiper.__swiper__=true;swiper.support=getSupport();swiper.device=getDevice({userAgent:params.userAgent});swiper.browser=getBrowser();swiper.eventsListeners={};swiper.eventsAnyListeners=[];swiper.modules=_toConsumableArray(swiper.__modules__);if(params.modules&&Array.isArray(params.modules)){var _swiper$modules;(_swiper$modules=swiper.modules).push.apply(_swiper$modules,_toConsumableArray(params.modules));}var allModulesParams={};swiper.modules.forEach(function(mod){mod({swiper:swiper,extendParams:moduleExtendParams(params,allModulesParams),on:swiper.on.bind(swiper),once:swiper.once.bind(swiper),off:swiper.off.bind(swiper),emit:swiper.emit.bind(swiper)});});// Extend defaults with modules params var swiperParams=extend$1({},defaults,allModulesParams);// Extend defaults with passed params swiper.params=extend$1({},swiperParams,extendedDefaults,params);swiper.originalParams=extend$1({},swiper.params);swiper.passedParams=extend$1({},params);// add event listeners if(swiper.params&&swiper.params.on){Object.keys(swiper.params.on).forEach(function(eventName){swiper.on(eventName,swiper.params.on[eventName]);});}if(swiper.params&&swiper.params.onAny){swiper.onAny(swiper.params.onAny);}// Save Dom lib swiper.$=$;// Extend Swiper Object.assign(swiper,{enabled:swiper.params.enabled,el:el,// Classes classNames:[],// Slides slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],// isDirection isHorizontal:function isHorizontal(){return swiper.params.direction==='horizontal';},isVertical:function isVertical(){return swiper.params.direction==='vertical';},// Indexes activeIndex:0,realIndex:0,// isBeginning:true,isEnd:false,// Props translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,// Locks allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,// Touch Events touchEvents:function touchEvents(){var touch=['touchstart','touchmove','touchend','touchcancel'];var desktop=['pointerdown','pointermove','pointerup'];swiper.touchEventsTouch={start:touch[0],move:touch[1],end:touch[2],cancel:touch[3]};swiper.touchEventsDesktop={start:desktop[0],move:desktop[1],end:desktop[2]};return swiper.support.touch||!swiper.params.simulateTouch?swiper.touchEventsTouch:swiper.touchEventsDesktop;}(),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,// Form elements to match focusableElements:swiper.params.focusableElements,// Last click time lastClickTime:now(),clickTimeout:undefined,// Velocities velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined},// Clicks allowClick:true,// Touches allowTouchMove:swiper.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},// Images imagesToLoad:[],imagesLoaded:0});swiper.emit('_swiper');// Init if(swiper.params.init){swiper.init();}// Return app instance return swiper;}_createClass(Swiper$1,[{key:"enable",value:function enable(){var swiper=this;if(swiper.enabled)return;swiper.enabled=true;if(swiper.params.grabCursor){swiper.setGrabCursor();}swiper.emit('enable');}},{key:"disable",value:function disable(){var swiper=this;if(!swiper.enabled)return;swiper.enabled=false;if(swiper.params.grabCursor){swiper.unsetGrabCursor();}swiper.emit('disable');}},{key:"setProgress",value:function setProgress(progress,speed){var swiper=this;progress=Math.min(Math.max(progress,0),1);var min=swiper.minTranslate();var max=swiper.maxTranslate();var current=(max-min)*progress+min;swiper.translateTo(current,typeof speed==='undefined'?0:speed);swiper.updateActiveIndex();swiper.updateSlidesClasses();}},{key:"emitContainerClasses",value:function emitContainerClasses(){var swiper=this;if(!swiper.params._emitClasses||!swiper.el)return;var cls=swiper.el.className.split(' ').filter(function(className){return className.indexOf('swiper')===0||className.indexOf(swiper.params.containerModifierClass)===0;});swiper.emit('_containerClasses',cls.join(' '));}},{key:"getSlideClasses",value:function getSlideClasses(slideEl){var swiper=this;if(swiper.destroyed)return'';return slideEl.className.split(' ').filter(function(className){return className.indexOf('swiper-slide')===0||className.indexOf(swiper.params.slideClass)===0;}).join(' ');}},{key:"emitSlidesClasses",value:function emitSlidesClasses(){var swiper=this;if(!swiper.params._emitClasses||!swiper.el)return;var updates=[];swiper.slides.each(function(slideEl){var classNames=swiper.getSlideClasses(slideEl);updates.push({slideEl:slideEl,classNames:classNames});swiper.emit('_slideClass',slideEl,classNames);});swiper.emit('_slideClasses',updates);}},{key:"slidesPerViewDynamic",value:function slidesPerViewDynamic(view,exact){if(view===void 0){view='current';}if(exact===void 0){exact=false;}var swiper=this;var params=swiper.params,slides=swiper.slides,slidesGrid=swiper.slidesGrid,slidesSizesGrid=swiper.slidesSizesGrid,swiperSize=swiper.size,activeIndex=swiper.activeIndex;var spv=1;if(params.centeredSlides){var slideSize=slides[activeIndex].swiperSlideSize;var breakLoop;for(var i=activeIndex+1;iswiperSize)breakLoop=true;}}for(var _i4=activeIndex-1;_i4>=0;_i4-=1){if(slides[_i4]&&!breakLoop){slideSize+=slides[_i4].swiperSlideSize;spv+=1;if(slideSize>swiperSize)breakLoop=true;}}}else{// eslint-disable-next-line if(view==='current'){for(var _i5=activeIndex+1;_i5=0;_i6-=1){var _slideInView=slidesGrid[activeIndex]-slidesGrid[_i6]1)&&swiper.isEnd&&!swiper.params.centeredSlides){translated=swiper.slideTo(swiper.slides.length-1,0,false,true);}else{translated=swiper.slideTo(swiper.activeIndex,0,false,true);}if(!translated){setTranslate();}}if(params.watchOverflow&&snapGrid!==swiper.snapGrid){swiper.checkOverflow();}swiper.emit('update');}},{key:"changeDirection",value:function changeDirection(newDirection,needUpdate){if(needUpdate===void 0){needUpdate=true;}var swiper=this;var currentDirection=swiper.params.direction;if(!newDirection){// eslint-disable-next-line newDirection=currentDirection==='horizontal'?'vertical':'horizontal';}if(newDirection===currentDirection||newDirection!=='horizontal'&&newDirection!=='vertical'){return swiper;}swiper.$el.removeClass("".concat(swiper.params.containerModifierClass).concat(currentDirection)).addClass("".concat(swiper.params.containerModifierClass).concat(newDirection));swiper.emitContainerClasses();swiper.params.direction=newDirection;swiper.slides.each(function(slideEl){if(newDirection==='vertical'){slideEl.style.width='';}else{slideEl.style.height='';}});swiper.emit('changeDirection');if(needUpdate)swiper.update();return swiper;}},{key:"changeLanguageDirection",value:function changeLanguageDirection(direction){var swiper=this;if(swiper.rtl&&direction==='rtl'||!swiper.rtl&&direction==='ltr')return;swiper.rtl=direction==='rtl';swiper.rtlTranslate=swiper.params.direction==='horizontal'&&swiper.rtl;if(swiper.rtl){swiper.$el.addClass("".concat(swiper.params.containerModifierClass,"rtl"));swiper.el.dir='rtl';}else{swiper.$el.removeClass("".concat(swiper.params.containerModifierClass,"rtl"));swiper.el.dir='ltr';}swiper.update();}},{key:"mount",value:function mount(el){var swiper=this;if(swiper.mounted)return true;// Find el var $el=$(el||swiper.params.el);el=$el[0];if(!el){return false;}el.swiper=swiper;var getWrapperSelector=function getWrapperSelector(){return".".concat((swiper.params.wrapperClass||'').trim().split(' ').join('.'));};var getWrapper=function getWrapper(){if(el&&el.shadowRoot&&el.shadowRoot.querySelector){var res=$(el.shadowRoot.querySelector(getWrapperSelector()));// Children needs to return slot items res.children=function(options){return $el.children(options);};return res;}if(!$el.children){return $($el).children(getWrapperSelector());}return $el.children(getWrapperSelector());};// Find Wrapper var $wrapperEl=getWrapper();if($wrapperEl.length===0&&swiper.params.createElements){var _document2=getDocument();var wrapper=_document2.createElement('div');$wrapperEl=$(wrapper);wrapper.className=swiper.params.wrapperClass;$el.append(wrapper);$el.children(".".concat(swiper.params.slideClass)).each(function(slideEl){$wrapperEl.append(slideEl);});}Object.assign(swiper,{$el:$el,el:el,$wrapperEl:$wrapperEl,wrapperEl:$wrapperEl[0],mounted:true,// RTL rtl:el.dir.toLowerCase()==='rtl'||$el.css('direction')==='rtl',rtlTranslate:swiper.params.direction==='horizontal'&&(el.dir.toLowerCase()==='rtl'||$el.css('direction')==='rtl'),wrongRTL:$wrapperEl.css('display')==='-webkit-box'});return true;}},{key:"init",value:function init(el){var swiper=this;if(swiper.initialized)return swiper;var mounted=swiper.mount(el);if(mounted===false)return swiper;swiper.emit('beforeInit');// Set breakpoint if(swiper.params.breakpoints){swiper.setBreakpoint();}// Add Classes swiper.addClasses();// Create loop if(swiper.params.loop){swiper.loopCreate();}// Update size swiper.updateSize();// Update slides swiper.updateSlides();if(swiper.params.watchOverflow){swiper.checkOverflow();}// Set Grab Cursor if(swiper.params.grabCursor&&swiper.enabled){swiper.setGrabCursor();}if(swiper.params.preloadImages){swiper.preloadImages();}// Slide To Initial Slide if(swiper.params.loop){swiper.slideTo(swiper.params.initialSlide+swiper.loopedSlides,0,swiper.params.runCallbacksOnInit,false,true);}else{swiper.slideTo(swiper.params.initialSlide,0,swiper.params.runCallbacksOnInit,false,true);}// Attach events swiper.attachEvents();// Init Flag swiper.initialized=true;// Emit swiper.emit('init');swiper.emit('afterInit');return swiper;}},{key:"destroy",value:function destroy(deleteInstance,cleanStyles){if(deleteInstance===void 0){deleteInstance=true;}if(cleanStyles===void 0){cleanStyles=true;}var swiper=this;var params=swiper.params,$el=swiper.$el,$wrapperEl=swiper.$wrapperEl,slides=swiper.slides;if(typeof swiper.params==='undefined'||swiper.destroyed){return null;}swiper.emit('beforeDestroy');// Init Flag swiper.initialized=false;// Detach events swiper.detachEvents();// Destroy loop if(params.loop){swiper.loopDestroy();}// Cleanup styles if(cleanStyles){swiper.removeClasses();$el.removeAttr('style');$wrapperEl.removeAttr('style');if(slides&&slides.length){slides.removeClass([params.slideVisibleClass,params.slideActiveClass,params.slideNextClass,params.slidePrevClass].join(' ')).removeAttr('style').removeAttr('data-swiper-slide-index');}}swiper.emit('destroy');// Detach emitter events Object.keys(swiper.eventsListeners).forEach(function(eventName){swiper.off(eventName);});if(deleteInstance!==false){swiper.$el[0].swiper=null;deleteProps(swiper);}swiper.destroyed=true;return null;}}],[{key:"extendDefaults",value:function extendDefaults(newDefaults){extend$1(extendedDefaults,newDefaults);}},{key:"extendedDefaults",get:function get(){return extendedDefaults;}},{key:"defaults",get:function get(){return defaults;}},{key:"installModule",value:function installModule(mod){if(!Swiper$1.prototype.__modules__)Swiper$1.prototype.__modules__=[];var modules=Swiper$1.prototype.__modules__;if(typeof mod==='function'&&modules.indexOf(mod)<0){modules.push(mod);}}},{key:"use",value:function use(module){if(Array.isArray(module)){module.forEach(function(m){return Swiper$1.installModule(m);});return Swiper$1;}Swiper$1.installModule(module);return Swiper$1;}}]);return Swiper$1;}();Object.keys(prototypes).forEach(function(prototypeGroup){Object.keys(prototypes[prototypeGroup]).forEach(function(protoMethod){Swiper$1.prototype[protoMethod]=prototypes[prototypeGroup][protoMethod];});});Swiper$1.use([Resize,Observer]);function createElementIfNotDefined(swiper,originalParams,params,checkProps){var document=getDocument();if(swiper.params.createElements){Object.keys(checkProps).forEach(function(key){if(!params[key]&¶ms.auto===true){var element=swiper.$el.children(".".concat(checkProps[key]))[0];if(!element){element=document.createElement('div');element.className=checkProps[key];swiper.$el.append(element);}params[key]=element;originalParams[key]=element;}});}return params;}function Navigation(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit;extendParams({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:'swiper-button-disabled',hiddenClass:'swiper-button-hidden',lockClass:'swiper-button-lock',navigationDisabledClass:'swiper-navigation-disabled'}});swiper.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function getEl(el){var $el;if(el){$el=$(el);if(swiper.params.uniqueNavElements&&typeof el==='string'&&$el.length>1&&swiper.$el.find(el).length===1){$el=swiper.$el.find(el);}}return $el;}function toggleEl($el,disabled){var params=swiper.params.navigation;if($el&&$el.length>0){$el[disabled?'addClass':'removeClass'](params.disabledClass);if($el[0]&&$el[0].tagName==='BUTTON')$el[0].disabled=disabled;if(swiper.params.watchOverflow&&swiper.enabled){$el[swiper.isLocked?'addClass':'removeClass'](params.lockClass);}}}function update(){// Update Navigation Buttons if(swiper.params.loop)return;var _swiper$navigation=swiper.navigation,$nextEl=_swiper$navigation.$nextEl,$prevEl=_swiper$navigation.$prevEl;toggleEl($prevEl,swiper.isBeginning&&!swiper.params.rewind);toggleEl($nextEl,swiper.isEnd&&!swiper.params.rewind);}function onPrevClick(e){e.preventDefault();if(swiper.isBeginning&&!swiper.params.loop&&!swiper.params.rewind)return;swiper.slidePrev();emit('navigationPrev');}function onNextClick(e){e.preventDefault();if(swiper.isEnd&&!swiper.params.loop&&!swiper.params.rewind)return;swiper.slideNext();emit('navigationNext');}function init(){var params=swiper.params.navigation;swiper.params.navigation=createElementIfNotDefined(swiper,swiper.originalParams.navigation,swiper.params.navigation,{nextEl:'swiper-button-next',prevEl:'swiper-button-prev'});if(!(params.nextEl||params.prevEl))return;var $nextEl=getEl(params.nextEl);var $prevEl=getEl(params.prevEl);if($nextEl&&$nextEl.length>0){$nextEl.on('click',onNextClick);}if($prevEl&&$prevEl.length>0){$prevEl.on('click',onPrevClick);}Object.assign(swiper.navigation,{$nextEl:$nextEl,nextEl:$nextEl&&$nextEl[0],$prevEl:$prevEl,prevEl:$prevEl&&$prevEl[0]});if(!swiper.enabled){if($nextEl)$nextEl.addClass(params.lockClass);if($prevEl)$prevEl.addClass(params.lockClass);}}function destroy(){var _swiper$navigation2=swiper.navigation,$nextEl=_swiper$navigation2.$nextEl,$prevEl=_swiper$navigation2.$prevEl;if($nextEl&&$nextEl.length){$nextEl.off('click',onNextClick);$nextEl.removeClass(swiper.params.navigation.disabledClass);}if($prevEl&&$prevEl.length){$prevEl.off('click',onPrevClick);$prevEl.removeClass(swiper.params.navigation.disabledClass);}}on('init',function(){if(swiper.params.navigation.enabled===false){// eslint-disable-next-line disable();}else{init();update();}});on('toEdge fromEdge lock unlock',function(){update();});on('destroy',function(){destroy();});on('enable disable',function(){var _swiper$navigation3=swiper.navigation,$nextEl=_swiper$navigation3.$nextEl,$prevEl=_swiper$navigation3.$prevEl;if($nextEl){$nextEl[swiper.enabled?'removeClass':'addClass'](swiper.params.navigation.lockClass);}if($prevEl){$prevEl[swiper.enabled?'removeClass':'addClass'](swiper.params.navigation.lockClass);}});on('click',function(_s,e){var _swiper$navigation4=swiper.navigation,$nextEl=_swiper$navigation4.$nextEl,$prevEl=_swiper$navigation4.$prevEl;var targetEl=e.target;if(swiper.params.navigation.hideOnClick&&!$(targetEl).is($prevEl)&&!$(targetEl).is($nextEl)){if(swiper.pagination&&swiper.params.pagination&&swiper.params.pagination.clickable&&(swiper.pagination.el===targetEl||swiper.pagination.el.contains(targetEl)))return;var isHidden;if($nextEl){isHidden=$nextEl.hasClass(swiper.params.navigation.hiddenClass);}else if($prevEl){isHidden=$prevEl.hasClass(swiper.params.navigation.hiddenClass);}if(isHidden===true){emit('navigationShow');}else{emit('navigationHide');}if($nextEl){$nextEl.toggleClass(swiper.params.navigation.hiddenClass);}if($prevEl){$prevEl.toggleClass(swiper.params.navigation.hiddenClass);}}});var enable=function enable(){swiper.$el.removeClass(swiper.params.navigation.navigationDisabledClass);init();update();};var disable=function disable(){swiper.$el.addClass(swiper.params.navigation.navigationDisabledClass);destroy();};Object.assign(swiper.navigation,{enable:enable,disable:disable,update:update,init:init,destroy:destroy});}function classesToSelector(classes){if(classes===void 0){classes='';}return".".concat(classes.trim().replace(/([\.:!\/])/g,'\\$1')// eslint-disable-line .replace(/ /g,'.'));}function Pagination(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit;var pfx='swiper-pagination';extendParams({pagination:{el:null,bulletElement:'span',clickable:false,hideOnClick:false,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:false,type:'bullets',// 'bullets' or 'progressbar' or 'fraction' or 'custom' dynamicBullets:false,dynamicMainBullets:1,formatFractionCurrent:function formatFractionCurrent(number){return number;},formatFractionTotal:function formatFractionTotal(number){return number;},bulletClass:"".concat(pfx,"-bullet"),bulletActiveClass:"".concat(pfx,"-bullet-active"),modifierClass:"".concat(pfx,"-"),currentClass:"".concat(pfx,"-current"),totalClass:"".concat(pfx,"-total"),hiddenClass:"".concat(pfx,"-hidden"),progressbarFillClass:"".concat(pfx,"-progressbar-fill"),progressbarOppositeClass:"".concat(pfx,"-progressbar-opposite"),clickableClass:"".concat(pfx,"-clickable"),lockClass:"".concat(pfx,"-lock"),horizontalClass:"".concat(pfx,"-horizontal"),verticalClass:"".concat(pfx,"-vertical"),paginationDisabledClass:"".concat(pfx,"-disabled")}});swiper.pagination={el:null,$el:null,bullets:[]};var bulletSize;var dynamicBulletIndex=0;function isPaginationDisabled(){return!swiper.params.pagination.el||!swiper.pagination.el||!swiper.pagination.$el||swiper.pagination.$el.length===0;}function setSideBullets($bulletEl,position){var bulletActiveClass=swiper.params.pagination.bulletActiveClass;$bulletEl[position]().addClass("".concat(bulletActiveClass,"-").concat(position))[position]().addClass("".concat(bulletActiveClass,"-").concat(position,"-").concat(position));}function update(){// Render || Update Pagination bullets/items var rtl=swiper.rtl;var params=swiper.params.pagination;if(isPaginationDisabled())return;var slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length;var $el=swiper.pagination.$el;// Current/Total var current;var total=swiper.params.loop?Math.ceil((slidesLength-swiper.loopedSlides*2)/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.loop){current=Math.ceil((swiper.activeIndex-swiper.loopedSlides)/swiper.params.slidesPerGroup);if(current>slidesLength-1-swiper.loopedSlides*2){current-=slidesLength-swiper.loopedSlides*2;}if(current>total-1)current-=total;if(current<0&&swiper.params.paginationType!=='bullets')current=total+current;}else if(typeof swiper.snapIndex!=='undefined'){current=swiper.snapIndex;}else{current=swiper.activeIndex||0;}// Types if(params.type==='bullets'&&swiper.pagination.bullets&&swiper.pagination.bullets.length>0){var bullets=swiper.pagination.bullets;var firstIndex;var lastIndex;var midIndex;if(params.dynamicBullets){bulletSize=bullets.eq(0)[swiper.isHorizontal()?'outerWidth':'outerHeight'](true);$el.css(swiper.isHorizontal()?'width':'height',"".concat(bulletSize*(params.dynamicMainBullets+4),"px"));if(params.dynamicMainBullets>1&&swiper.previousIndex!==undefined){dynamicBulletIndex+=current-(swiper.previousIndex-swiper.loopedSlides||0);if(dynamicBulletIndex>params.dynamicMainBullets-1){dynamicBulletIndex=params.dynamicMainBullets-1;}else if(dynamicBulletIndex<0){dynamicBulletIndex=0;}}firstIndex=Math.max(current-dynamicBulletIndex,0);lastIndex=firstIndex+(Math.min(bullets.length,params.dynamicMainBullets)-1);midIndex=(lastIndex+firstIndex)/2;}bullets.removeClass(['','-next','-next-next','-prev','-prev-prev','-main'].map(function(suffix){return"".concat(params.bulletActiveClass).concat(suffix);}).join(' '));if($el.length>1){bullets.each(function(bullet){var $bullet=$(bullet);var bulletIndex=$bullet.index();if(bulletIndex===current){$bullet.addClass(params.bulletActiveClass);}if(params.dynamicBullets){if(bulletIndex>=firstIndex&&bulletIndex<=lastIndex){$bullet.addClass("".concat(params.bulletActiveClass,"-main"));}if(bulletIndex===firstIndex){setSideBullets($bullet,'prev');}if(bulletIndex===lastIndex){setSideBullets($bullet,'next');}}});}else{var $bullet=bullets.eq(current);var bulletIndex=$bullet.index();$bullet.addClass(params.bulletActiveClass);if(params.dynamicBullets){var $firstDisplayedBullet=bullets.eq(firstIndex);var $lastDisplayedBullet=bullets.eq(lastIndex);for(var i=firstIndex;i<=lastIndex;i+=1){bullets.eq(i).addClass("".concat(params.bulletActiveClass,"-main"));}if(swiper.params.loop){if(bulletIndex>=bullets.length){for(var _i7=params.dynamicMainBullets;_i7>=0;_i7-=1){bullets.eq(bullets.length-_i7).addClass("".concat(params.bulletActiveClass,"-main"));}bullets.eq(bullets.length-params.dynamicMainBullets-1).addClass("".concat(params.bulletActiveClass,"-prev"));}else{setSideBullets($firstDisplayedBullet,'prev');setSideBullets($lastDisplayedBullet,'next');}}else{setSideBullets($firstDisplayedBullet,'prev');setSideBullets($lastDisplayedBullet,'next');}}}if(params.dynamicBullets){var dynamicBulletsLength=Math.min(bullets.length,params.dynamicMainBullets+4);var bulletsOffset=(bulletSize*dynamicBulletsLength-bulletSize)/2-midIndex*bulletSize;var offsetProp=rtl?'right':'left';bullets.css(swiper.isHorizontal()?offsetProp:'top',"".concat(bulletsOffset,"px"));}}if(params.type==='fraction'){$el.find(classesToSelector(params.currentClass)).text(params.formatFractionCurrent(current+1));$el.find(classesToSelector(params.totalClass)).text(params.formatFractionTotal(total));}if(params.type==='progressbar'){var progressbarDirection;if(params.progressbarOpposite){progressbarDirection=swiper.isHorizontal()?'vertical':'horizontal';}else{progressbarDirection=swiper.isHorizontal()?'horizontal':'vertical';}var scale=(current+1)/total;var scaleX=1;var scaleY=1;if(progressbarDirection==='horizontal'){scaleX=scale;}else{scaleY=scale;}$el.find(classesToSelector(params.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(scaleX,") scaleY(").concat(scaleY,")")).transition(swiper.params.speed);}if(params.type==='custom'&¶ms.renderCustom){$el.html(params.renderCustom(swiper,current+1,total));emit('paginationRender',$el[0]);}else{emit('paginationUpdate',$el[0]);}if(swiper.params.watchOverflow&&swiper.enabled){$el[swiper.isLocked?'addClass':'removeClass'](params.lockClass);}}function render(){// Render Container var params=swiper.params.pagination;if(isPaginationDisabled())return;var slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length;var $el=swiper.pagination.$el;var paginationHTML='';if(params.type==='bullets'){var numberOfBullets=swiper.params.loop?Math.ceil((slidesLength-swiper.loopedSlides*2)/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.freeMode&&swiper.params.freeMode.enabled&&!swiper.params.loop&&numberOfBullets>slidesLength){numberOfBullets=slidesLength;}for(var i=0;i");}}$el.html(paginationHTML);swiper.pagination.bullets=$el.find(classesToSelector(params.bulletClass));}if(params.type==='fraction'){if(params.renderFraction){paginationHTML=params.renderFraction.call(swiper,params.currentClass,params.totalClass);}else{paginationHTML="")+' / '+"");}$el.html(paginationHTML);}if(params.type==='progressbar'){if(params.renderProgressbar){paginationHTML=params.renderProgressbar.call(swiper,params.progressbarFillClass);}else{paginationHTML="");}$el.html(paginationHTML);}if(params.type!=='custom'){emit('paginationRender',swiper.pagination.$el[0]);}}function init(){swiper.params.pagination=createElementIfNotDefined(swiper,swiper.originalParams.pagination,swiper.params.pagination,{el:'swiper-pagination'});var params=swiper.params.pagination;if(!params.el)return;var $el=$(params.el);if($el.length===0)return;if(swiper.params.uniqueNavElements&&typeof params.el==='string'&&$el.length>1){$el=swiper.$el.find(params.el);// check if it belongs to another nested Swiper if($el.length>1){$el=$el.filter(function(el){if($(el).parents('.swiper')[0]!==swiper.el)return false;return true;});}}if(params.type==='bullets'&¶ms.clickable){$el.addClass(params.clickableClass);}$el.addClass(params.modifierClass+params.type);$el.addClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);if(params.type==='bullets'&¶ms.dynamicBullets){$el.addClass("".concat(params.modifierClass).concat(params.type,"-dynamic"));dynamicBulletIndex=0;if(params.dynamicMainBullets<1){params.dynamicMainBullets=1;}}if(params.type==='progressbar'&¶ms.progressbarOpposite){$el.addClass(params.progressbarOppositeClass);}if(params.clickable){$el.on('click',classesToSelector(params.bulletClass),function onClick(e){e.preventDefault();var index=$(this).index()*swiper.params.slidesPerGroup;if(swiper.params.loop)index+=swiper.loopedSlides;swiper.slideTo(index);});}Object.assign(swiper.pagination,{$el:$el,el:$el[0]});if(!swiper.enabled){$el.addClass(params.lockClass);}}function destroy(){var params=swiper.params.pagination;if(isPaginationDisabled())return;var $el=swiper.pagination.$el;$el.removeClass(params.hiddenClass);$el.removeClass(params.modifierClass+params.type);$el.removeClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);if(swiper.pagination.bullets&&swiper.pagination.bullets.removeClass)swiper.pagination.bullets.removeClass(params.bulletActiveClass);if(params.clickable){$el.off('click',classesToSelector(params.bulletClass));}}on('init',function(){if(swiper.params.pagination.enabled===false){// eslint-disable-next-line disable();}else{init();render();update();}});on('activeIndexChange',function(){if(swiper.params.loop){update();}else if(typeof swiper.snapIndex==='undefined'){update();}});on('snapIndexChange',function(){if(!swiper.params.loop){update();}});on('slidesLengthChange',function(){if(swiper.params.loop){render();update();}});on('snapGridLengthChange',function(){if(!swiper.params.loop){render();update();}});on('destroy',function(){destroy();});on('enable disable',function(){var $el=swiper.pagination.$el;if($el){$el[swiper.enabled?'removeClass':'addClass'](swiper.params.pagination.lockClass);}});on('lock unlock',function(){update();});on('click',function(_s,e){var targetEl=e.target;var $el=swiper.pagination.$el;if(swiper.params.pagination.el&&swiper.params.pagination.hideOnClick&&$el&&$el.length>0&&!$(targetEl).hasClass(swiper.params.pagination.bulletClass)){if(swiper.navigation&&(swiper.navigation.nextEl&&targetEl===swiper.navigation.nextEl||swiper.navigation.prevEl&&targetEl===swiper.navigation.prevEl))return;var isHidden=$el.hasClass(swiper.params.pagination.hiddenClass);if(isHidden===true){emit('paginationShow');}else{emit('paginationHide');}$el.toggleClass(swiper.params.pagination.hiddenClass);}});var enable=function enable(){swiper.$el.removeClass(swiper.params.pagination.paginationDisabledClass);if(swiper.pagination.$el){swiper.pagination.$el.removeClass(swiper.params.pagination.paginationDisabledClass);}init();render();update();};var disable=function disable(){swiper.$el.addClass(swiper.params.pagination.paginationDisabledClass);if(swiper.pagination.$el){swiper.pagination.$el.addClass(swiper.params.pagination.paginationDisabledClass);}destroy();};Object.assign(swiper.pagination,{enable:enable,disable:disable,render:render,update:update,init:init,destroy:destroy});}function Scrollbar(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit;var document=getDocument();var isTouched=false;var timeout=null;var dragTimeout=null;var dragStartPos;var dragSize;var trackSize;var divider;extendParams({scrollbar:{el:null,dragSize:'auto',hide:false,draggable:false,snapOnRelease:true,lockClass:'swiper-scrollbar-lock',dragClass:'swiper-scrollbar-drag',scrollbarDisabledClass:'swiper-scrollbar-disabled',horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});swiper.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null};function setTranslate(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;var scrollbar=swiper.scrollbar,rtl=swiper.rtlTranslate,progress=swiper.progress;var $dragEl=scrollbar.$dragEl,$el=scrollbar.$el;var params=swiper.params.scrollbar;var newSize=dragSize;var newPos=(trackSize-dragSize)*progress;if(rtl){newPos=-newPos;if(newPos>0){newSize=dragSize-newPos;newPos=0;}else if(-newPos+dragSize>trackSize){newSize=trackSize+newPos;}}else if(newPos<0){newSize=dragSize+newPos;newPos=0;}else if(newPos+dragSize>trackSize){newSize=trackSize-newPos;}if(swiper.isHorizontal()){$dragEl.transform("translate3d(".concat(newPos,"px, 0, 0)"));$dragEl[0].style.width="".concat(newSize,"px");}else{$dragEl.transform("translate3d(0px, ".concat(newPos,"px, 0)"));$dragEl[0].style.height="".concat(newSize,"px");}if(params.hide){clearTimeout(timeout);$el[0].style.opacity=1;timeout=setTimeout(function(){$el[0].style.opacity=0;$el.transition(400);},1000);}}function setTransition(duration){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;swiper.scrollbar.$dragEl.transition(duration);}function updateSize(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;var scrollbar=swiper.scrollbar;var $dragEl=scrollbar.$dragEl,$el=scrollbar.$el;$dragEl[0].style.width='';$dragEl[0].style.height='';trackSize=swiper.isHorizontal()?$el[0].offsetWidth:$el[0].offsetHeight;divider=swiper.size/(swiper.virtualSize+swiper.params.slidesOffsetBefore-(swiper.params.centeredSlides?swiper.snapGrid[0]:0));if(swiper.params.scrollbar.dragSize==='auto'){dragSize=trackSize*divider;}else{dragSize=parseInt(swiper.params.scrollbar.dragSize,10);}if(swiper.isHorizontal()){$dragEl[0].style.width="".concat(dragSize,"px");}else{$dragEl[0].style.height="".concat(dragSize,"px");}if(divider>=1){$el[0].style.display='none';}else{$el[0].style.display='';}if(swiper.params.scrollbar.hide){$el[0].style.opacity=0;}if(swiper.params.watchOverflow&&swiper.enabled){scrollbar.$el[swiper.isLocked?'addClass':'removeClass'](swiper.params.scrollbar.lockClass);}}function getPointerPosition(e){if(swiper.isHorizontal()){return e.type==='touchstart'||e.type==='touchmove'?e.targetTouches[0].clientX:e.clientX;}return e.type==='touchstart'||e.type==='touchmove'?e.targetTouches[0].clientY:e.clientY;}function setDragPosition(e){var scrollbar=swiper.scrollbar,rtl=swiper.rtlTranslate;var $el=scrollbar.$el;var positionRatio;positionRatio=(getPointerPosition(e)-$el.offset()[swiper.isHorizontal()?'left':'top']-(dragStartPos!==null?dragStartPos:dragSize/2))/(trackSize-dragSize);positionRatio=Math.max(Math.min(positionRatio,1),0);if(rtl){positionRatio=1-positionRatio;}var position=swiper.minTranslate()+(swiper.maxTranslate()-swiper.minTranslate())*positionRatio;swiper.updateProgress(position);swiper.setTranslate(position);swiper.updateActiveIndex();swiper.updateSlidesClasses();}function onDragStart(e){var params=swiper.params.scrollbar;var scrollbar=swiper.scrollbar,$wrapperEl=swiper.$wrapperEl;var $el=scrollbar.$el,$dragEl=scrollbar.$dragEl;isTouched=true;dragStartPos=e.target===$dragEl[0]||e.target===$dragEl?getPointerPosition(e)-e.target.getBoundingClientRect()[swiper.isHorizontal()?'left':'top']:null;e.preventDefault();e.stopPropagation();$wrapperEl.transition(100);$dragEl.transition(100);setDragPosition(e);clearTimeout(dragTimeout);$el.transition(0);if(params.hide){$el.css('opacity',1);}if(swiper.params.cssMode){swiper.$wrapperEl.css('scroll-snap-type','none');}emit('scrollbarDragStart',e);}function onDragMove(e){var scrollbar=swiper.scrollbar,$wrapperEl=swiper.$wrapperEl;var $el=scrollbar.$el,$dragEl=scrollbar.$dragEl;if(!isTouched)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;setDragPosition(e);$wrapperEl.transition(0);$el.transition(0);$dragEl.transition(0);emit('scrollbarDragMove',e);}function onDragEnd(e){var params=swiper.params.scrollbar;var scrollbar=swiper.scrollbar,$wrapperEl=swiper.$wrapperEl;var $el=scrollbar.$el;if(!isTouched)return;isTouched=false;if(swiper.params.cssMode){swiper.$wrapperEl.css('scroll-snap-type','');$wrapperEl.transition('');}if(params.hide){clearTimeout(dragTimeout);dragTimeout=nextTick(function(){$el.css('opacity',0);$el.transition(400);},1000);}emit('scrollbarDragEnd',e);if(params.snapOnRelease){swiper.slideToClosest();}}function events(method){var scrollbar=swiper.scrollbar,touchEventsTouch=swiper.touchEventsTouch,touchEventsDesktop=swiper.touchEventsDesktop,params=swiper.params,support=swiper.support;var $el=scrollbar.$el;if(!$el)return;var target=$el[0];var activeListener=support.passiveListener&¶ms.passiveListeners?{passive:false,capture:false}:false;var passiveListener=support.passiveListener&¶ms.passiveListeners?{passive:true,capture:false}:false;if(!target)return;var eventMethod=method==='on'?'addEventListener':'removeEventListener';if(!support.touch){target[eventMethod](touchEventsDesktop.start,onDragStart,activeListener);document[eventMethod](touchEventsDesktop.move,onDragMove,activeListener);document[eventMethod](touchEventsDesktop.end,onDragEnd,passiveListener);}else{target[eventMethod](touchEventsTouch.start,onDragStart,activeListener);target[eventMethod](touchEventsTouch.move,onDragMove,activeListener);target[eventMethod](touchEventsTouch.end,onDragEnd,passiveListener);}}function enableDraggable(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;events('on');}function disableDraggable(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;events('off');}function init(){var scrollbar=swiper.scrollbar,$swiperEl=swiper.$el;swiper.params.scrollbar=createElementIfNotDefined(swiper,swiper.originalParams.scrollbar,swiper.params.scrollbar,{el:'swiper-scrollbar'});var params=swiper.params.scrollbar;if(!params.el)return;var $el=$(params.el);if(swiper.params.uniqueNavElements&&typeof params.el==='string'&&$el.length>1&&$swiperEl.find(params.el).length===1){$el=$swiperEl.find(params.el);}$el.addClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);var $dragEl=$el.find(".".concat(swiper.params.scrollbar.dragClass));if($dragEl.length===0){$dragEl=$("
"));$el.append($dragEl);}Object.assign(scrollbar,{$el:$el,el:$el[0],$dragEl:$dragEl,dragEl:$dragEl[0]});if(params.draggable){enableDraggable();}if($el){$el[swiper.enabled?'removeClass':'addClass'](swiper.params.scrollbar.lockClass);}}function destroy(){var params=swiper.params.scrollbar;var $el=swiper.scrollbar.$el;if($el){$el.removeClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);}disableDraggable();}on('init',function(){if(swiper.params.scrollbar.enabled===false){// eslint-disable-next-line disable();}else{init();updateSize();setTranslate();}});on('update resize observerUpdate lock unlock',function(){updateSize();});on('setTranslate',function(){setTranslate();});on('setTransition',function(_s,duration){setTransition(duration);});on('enable disable',function(){var $el=swiper.scrollbar.$el;if($el){$el[swiper.enabled?'removeClass':'addClass'](swiper.params.scrollbar.lockClass);}});on('destroy',function(){destroy();});var enable=function enable(){swiper.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);if(swiper.scrollbar.$el){swiper.scrollbar.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);}init();updateSize();setTranslate();};var disable=function disable(){swiper.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);if(swiper.scrollbar.$el){swiper.scrollbar.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);}destroy();};Object.assign(swiper.scrollbar,{enable:enable,disable:disable,updateSize:updateSize,setTranslate:setTranslate,init:init,destroy:destroy});}function A11y(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on;extendParams({a11y:{enabled:true,notificationClass:'swiper-notification',prevSlideMessage:'Previous slide',nextSlideMessage:'Next slide',firstSlideMessage:'This is the first slide',lastSlideMessage:'This is the last slide',paginationBulletMessage:'Go to slide {{index}}',slideLabelMessage:'{{index}} / {{slidesLength}}',containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:'group',id:null}});var liveRegion=null;function notify(message){var notification=liveRegion;if(notification.length===0)return;notification.html('');notification.html(message);}function getRandomNumber(size){if(size===void 0){size=16;}var randomChar=function randomChar(){return Math.round(16*Math.random()).toString(16);};return'x'.repeat(size).replace(/x/g,randomChar);}function makeElFocusable($el){$el.attr('tabIndex','0');}function makeElNotFocusable($el){$el.attr('tabIndex','-1');}function addElRole($el,role){$el.attr('role',role);}function addElRoleDescription($el,description){$el.attr('aria-roledescription',description);}function addElControls($el,controls){$el.attr('aria-controls',controls);}function addElLabel($el,label){$el.attr('aria-label',label);}function addElId($el,id){$el.attr('id',id);}function addElLive($el,live){$el.attr('aria-live',live);}function disableEl($el){$el.attr('aria-disabled',true);}function enableEl($el){$el.attr('aria-disabled',false);}function onEnterOrSpaceKey(e){if(e.keyCode!==13&&e.keyCode!==32)return;var params=swiper.params.a11y;var $targetEl=$(e.target);if(swiper.navigation&&swiper.navigation.$nextEl&&$targetEl.is(swiper.navigation.$nextEl)){if(!(swiper.isEnd&&!swiper.params.loop)){swiper.slideNext();}if(swiper.isEnd){notify(params.lastSlideMessage);}else{notify(params.nextSlideMessage);}}if(swiper.navigation&&swiper.navigation.$prevEl&&$targetEl.is(swiper.navigation.$prevEl)){if(!(swiper.isBeginning&&!swiper.params.loop)){swiper.slidePrev();}if(swiper.isBeginning){notify(params.firstSlideMessage);}else{notify(params.prevSlideMessage);}}if(swiper.pagination&&$targetEl.is(classesToSelector(swiper.params.pagination.bulletClass))){$targetEl[0].click();}}function updateNavigation(){if(swiper.params.loop||swiper.params.rewind||!swiper.navigation)return;var _swiper$navigation5=swiper.navigation,$nextEl=_swiper$navigation5.$nextEl,$prevEl=_swiper$navigation5.$prevEl;if($prevEl&&$prevEl.length>0){if(swiper.isBeginning){disableEl($prevEl);makeElNotFocusable($prevEl);}else{enableEl($prevEl);makeElFocusable($prevEl);}}if($nextEl&&$nextEl.length>0){if(swiper.isEnd){disableEl($nextEl);makeElNotFocusable($nextEl);}else{enableEl($nextEl);makeElFocusable($nextEl);}}}function hasPagination(){return swiper.pagination&&swiper.pagination.bullets&&swiper.pagination.bullets.length;}function hasClickablePagination(){return hasPagination()&&swiper.params.pagination.clickable;}function updatePagination(){var params=swiper.params.a11y;if(!hasPagination())return;swiper.pagination.bullets.each(function(bulletEl){var $bulletEl=$(bulletEl);if(swiper.params.pagination.clickable){makeElFocusable($bulletEl);if(!swiper.params.pagination.renderBullet){addElRole($bulletEl,'button');addElLabel($bulletEl,params.paginationBulletMessage.replace(/\{\{index\}\}/,$bulletEl.index()+1));}}if($bulletEl.is(".".concat(swiper.params.pagination.bulletActiveClass))){$bulletEl.attr('aria-current','true');}else{$bulletEl.removeAttr('aria-current');}});}var initNavEl=function initNavEl($el,wrapperId,message){makeElFocusable($el);if($el[0].tagName!=='BUTTON'){addElRole($el,'button');$el.on('keydown',onEnterOrSpaceKey);}addElLabel($el,message);addElControls($el,wrapperId);};var handleFocus=function handleFocus(e){var slideEl=e.target.closest(".".concat(swiper.params.slideClass));if(!slideEl||!swiper.slides.includes(slideEl))return;var isActive=swiper.slides.indexOf(slideEl)===swiper.activeIndex;var isVisible=swiper.params.watchSlidesProgress&&swiper.visibleSlides&&swiper.visibleSlides.includes(slideEl);if(isActive||isVisible)return;swiper.slideTo(swiper.slides.indexOf(slideEl),0);};var initSlides=function initSlides(){var params=swiper.params.a11y;if(params.itemRoleDescriptionMessage){addElRoleDescription($(swiper.slides),params.itemRoleDescriptionMessage);}if(params.slideRole){addElRole($(swiper.slides),params.slideRole);}var slidesLength=swiper.params.loop?swiper.slides.filter(function(el){return!el.classList.contains(swiper.params.slideDuplicateClass);}).length:swiper.slides.length;if(params.slideLabelMessage){swiper.slides.each(function(slideEl,index){var $slideEl=$(slideEl);var slideIndex=swiper.params.loop?parseInt($slideEl.attr('data-swiper-slide-index'),10):index;var ariaLabelMessage=params.slideLabelMessage.replace(/\{\{index\}\}/,slideIndex+1).replace(/\{\{slidesLength\}\}/,slidesLength);addElLabel($slideEl,ariaLabelMessage);});}};var init=function init(){var params=swiper.params.a11y;swiper.$el.append(liveRegion);// Container var $containerEl=swiper.$el;if(params.containerRoleDescriptionMessage){addElRoleDescription($containerEl,params.containerRoleDescriptionMessage);}if(params.containerMessage){addElLabel($containerEl,params.containerMessage);}// Wrapper var $wrapperEl=swiper.$wrapperEl;var wrapperId=params.id||$wrapperEl.attr('id')||"swiper-wrapper-".concat(getRandomNumber(16));var live=swiper.params.autoplay&&swiper.params.autoplay.enabled?'off':'polite';addElId($wrapperEl,wrapperId);addElLive($wrapperEl,live);// Slide initSlides();// Navigation var $nextEl;var $prevEl;if(swiper.navigation&&swiper.navigation.$nextEl){$nextEl=swiper.navigation.$nextEl;}if(swiper.navigation&&swiper.navigation.$prevEl){$prevEl=swiper.navigation.$prevEl;}if($nextEl&&$nextEl.length){initNavEl($nextEl,wrapperId,params.nextSlideMessage);}if($prevEl&&$prevEl.length){initNavEl($prevEl,wrapperId,params.prevSlideMessage);}// Pagination if(hasClickablePagination()){swiper.pagination.$el.on('keydown',classesToSelector(swiper.params.pagination.bulletClass),onEnterOrSpaceKey);}// Tab focus swiper.$el.on('focus',handleFocus,true);};function destroy(){if(liveRegion&&liveRegion.length>0)liveRegion.remove();var $nextEl;var $prevEl;if(swiper.navigation&&swiper.navigation.$nextEl){$nextEl=swiper.navigation.$nextEl;}if(swiper.navigation&&swiper.navigation.$prevEl){$prevEl=swiper.navigation.$prevEl;}if($nextEl){$nextEl.off('keydown',onEnterOrSpaceKey);}if($prevEl){$prevEl.off('keydown',onEnterOrSpaceKey);}// Pagination if(hasClickablePagination()){swiper.pagination.$el.off('keydown',classesToSelector(swiper.params.pagination.bulletClass),onEnterOrSpaceKey);}// Tab focus swiper.$el.off('focus',handleFocus,true);}on('beforeInit',function(){liveRegion=$(""));});on('afterInit',function(){if(!swiper.params.a11y.enabled)return;init();});on('slidesLengthChange snapGridLengthChange slidesGridLengthChange',function(){if(!swiper.params.a11y.enabled)return;initSlides();});on('fromEdge toEdge afterInit lock unlock',function(){if(!swiper.params.a11y.enabled)return;updateNavigation();});on('paginationUpdate',function(){if(!swiper.params.a11y.enabled)return;updatePagination();});on('destroy',function(){if(!swiper.params.a11y.enabled)return;destroy();});}/* eslint no-underscore-dangle: "off" */function Autoplay(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit;var timeout;swiper.autoplay={running:false,paused:false};extendParams({autoplay:{enabled:false,delay:3000,waitForTransition:true,disableOnInteraction:true,stopOnLastSlide:false,reverseDirection:false,pauseOnMouseEnter:false}});function run(){var $activeSlideEl=swiper.slides.eq(swiper.activeIndex);var delay=swiper.params.autoplay.delay;if($activeSlideEl.attr('data-swiper-autoplay')){delay=$activeSlideEl.attr('data-swiper-autoplay')||swiper.params.autoplay.delay;}clearTimeout(timeout);timeout=nextTick(function(){var autoplayResult;if(swiper.params.autoplay.reverseDirection){if(swiper.params.loop){swiper.loopFix();autoplayResult=swiper.slidePrev(swiper.params.speed,true,true);emit('autoplay');}else if(!swiper.isBeginning){autoplayResult=swiper.slidePrev(swiper.params.speed,true,true);emit('autoplay');}else if(!swiper.params.autoplay.stopOnLastSlide){autoplayResult=swiper.slideTo(swiper.slides.length-1,swiper.params.speed,true,true);emit('autoplay');}else{stop();}}else if(swiper.params.loop){swiper.loopFix();autoplayResult=swiper.slideNext(swiper.params.speed,true,true);emit('autoplay');}else if(!swiper.isEnd){autoplayResult=swiper.slideNext(swiper.params.speed,true,true);emit('autoplay');}else if(!swiper.params.autoplay.stopOnLastSlide){autoplayResult=swiper.slideTo(0,swiper.params.speed,true,true);emit('autoplay');}else{stop();}if(swiper.params.cssMode&&swiper.autoplay.running)run();else if(autoplayResult===false){run();}},delay);}function start(){if(typeof timeout!=='undefined')return false;if(swiper.autoplay.running)return false;swiper.autoplay.running=true;emit('autoplayStart');run();return true;}function stop(){if(!swiper.autoplay.running)return false;if(typeof timeout==='undefined')return false;if(timeout){clearTimeout(timeout);timeout=undefined;}swiper.autoplay.running=false;emit('autoplayStop');return true;}function pause(speed){if(!swiper.autoplay.running)return;if(swiper.autoplay.paused)return;if(timeout)clearTimeout(timeout);swiper.autoplay.paused=true;if(speed===0||!swiper.params.autoplay.waitForTransition){swiper.autoplay.paused=false;run();}else{['transitionend','webkitTransitionEnd'].forEach(function(event){swiper.$wrapperEl[0].addEventListener(event,onTransitionEnd);});}}function onVisibilityChange(){var document=getDocument();if(document.visibilityState==='hidden'&&swiper.autoplay.running){pause();}if(document.visibilityState==='visible'&&swiper.autoplay.paused){run();swiper.autoplay.paused=false;}}function onTransitionEnd(e){if(!swiper||swiper.destroyed||!swiper.$wrapperEl)return;if(e.target!==swiper.$wrapperEl[0])return;['transitionend','webkitTransitionEnd'].forEach(function(event){swiper.$wrapperEl[0].removeEventListener(event,onTransitionEnd);});swiper.autoplay.paused=false;if(!swiper.autoplay.running){stop();}else{run();}}function onMouseEnter(){if(swiper.params.autoplay.disableOnInteraction){stop();}else{emit('autoplayPause');pause();}['transitionend','webkitTransitionEnd'].forEach(function(event){swiper.$wrapperEl[0].removeEventListener(event,onTransitionEnd);});}function onMouseLeave(){if(swiper.params.autoplay.disableOnInteraction){return;}swiper.autoplay.paused=false;emit('autoplayResume');run();}function attachMouseEvents(){if(swiper.params.autoplay.pauseOnMouseEnter){swiper.$el.on('mouseenter',onMouseEnter);swiper.$el.on('mouseleave',onMouseLeave);}}function detachMouseEvents(){swiper.$el.off('mouseenter',onMouseEnter);swiper.$el.off('mouseleave',onMouseLeave);}on('init',function(){if(swiper.params.autoplay.enabled){start();var _document3=getDocument();_document3.addEventListener('visibilitychange',onVisibilityChange);attachMouseEvents();}});on('beforeTransitionStart',function(_s,speed,internal){if(swiper.autoplay.running){if(internal||!swiper.params.autoplay.disableOnInteraction){swiper.autoplay.pause(speed);}else{stop();}}});on('sliderFirstMove',function(){if(swiper.autoplay.running){if(swiper.params.autoplay.disableOnInteraction){stop();}else{pause();}}});on('touchEnd',function(){if(swiper.params.cssMode&&swiper.autoplay.paused&&!swiper.params.autoplay.disableOnInteraction){run();}});on('destroy',function(){detachMouseEvents();if(swiper.autoplay.running){stop();}var document=getDocument();document.removeEventListener('visibilitychange',onVisibilityChange);});Object.assign(swiper.autoplay,{pause:pause,run:run,start:start,stop:stop});}function isObject(o){return _typeof(o)==='object'&&o!==null&&o.constructor&&Object.prototype.toString.call(o).slice(8,-1)==='Object';}function extend(target,src){var noExtend=['__proto__','constructor','prototype'];Object.keys(src).filter(function(key){return noExtend.indexOf(key)<0;}).forEach(function(key){if(typeof target[key]==='undefined')target[key]=src[key];else if(isObject(src[key])&&isObject(target[key])&&Object.keys(src[key]).length>0){if(src[key].__swiper__)target[key]=src[key];else extend(target[key],src[key]);}else{target[key]=src[key];}});}function needsNavigation(params){if(params===void 0){params={};}return params.navigation&&typeof params.navigation.nextEl==='undefined'&&typeof params.navigation.prevEl==='undefined';}function needsPagination(params){if(params===void 0){params={};}return params.pagination&&typeof params.pagination.el==='undefined';}function needsScrollbar(params){if(params===void 0){params={};}return params.scrollbar&&typeof params.scrollbar.el==='undefined';}function uniqueClasses(classNames){if(classNames===void 0){classNames='';}var classes=classNames.split(' ').map(function(c){return c.trim();}).filter(function(c){return!!c;});var unique=[];classes.forEach(function(c){if(unique.indexOf(c)<0)unique.push(c);});return unique.join(' ');}/* underscore in name -> watch for changes */var paramsList=['modules','init','_direction','touchEventsTarget','initialSlide','_speed','cssMode','updateOnWindowResize','resizeObserver','nested','focusableElements','_enabled','_width','_height','preventInteractionOnTransition','userAgent','url','_edgeSwipeDetection','_edgeSwipeThreshold','_freeMode','_autoHeight','setWrapperSize','virtualTranslate','_effect','breakpoints','_spaceBetween','_slidesPerView','maxBackfaceHiddenSlides','_grid','_slidesPerGroup','_slidesPerGroupSkip','_slidesPerGroupAuto','_centeredSlides','_centeredSlidesBounds','_slidesOffsetBefore','_slidesOffsetAfter','normalizeSlideIndex','_centerInsufficientSlides','_watchOverflow','roundLengths','touchRatio','touchAngle','simulateTouch','_shortSwipes','_longSwipes','longSwipesRatio','longSwipesMs','_followFinger','allowTouchMove','_threshold','touchMoveStopPropagation','touchStartPreventDefault','touchStartForcePreventDefault','touchReleaseOnEdges','uniqueNavElements','_resistance','_resistanceRatio','_watchSlidesProgress','_grabCursor','preventClicks','preventClicksPropagation','_slideToClickedSlide','_preloadImages','updateOnImagesReady','_loop','_loopAdditionalSlides','_loopedSlides','_loopFillGroupWithBlank','loopPreventsSlide','_rewind','_allowSlidePrev','_allowSlideNext','_swipeHandler','_noSwiping','noSwipingClass','noSwipingSelector','passiveListeners','containerModifierClass','slideClass','slideBlankClass','slideActiveClass','slideDuplicateActiveClass','slideVisibleClass','slideDuplicateClass','slideNextClass','slideDuplicateNextClass','slidePrevClass','slideDuplicatePrevClass','wrapperClass','runCallbacksOnInit','observer','observeParents','observeSlideChildren',// modules 'a11y','_autoplay','_controller','coverflowEffect','cubeEffect','fadeEffect','flipEffect','creativeEffect','cardsEffect','hashNavigation','history','keyboard','lazy','mousewheel','_navigation','_pagination','parallax','_scrollbar','_thumbs','virtual','zoom'];function getParams(obj,splitEvents){if(obj===void 0){obj={};}if(splitEvents===void 0){splitEvents=true;}var params={on:{}};var events={};var passedParams={};extend(params,Swiper$1.defaults);extend(params,Swiper$1.extendedDefaults);params._emitClasses=true;params.init=false;var rest={};var allowedParams=paramsList.map(function(key){return key.replace(/_/,'');});var plainObj=Object.assign({},obj);Object.keys(plainObj).forEach(function(key){if(typeof obj[key]==='undefined')return;if(allowedParams.indexOf(key)>=0){if(isObject(obj[key])){params[key]={};passedParams[key]={};extend(params[key],obj[key]);extend(passedParams[key],obj[key]);}else{params[key]=obj[key];passedParams[key]=obj[key];}}else if(key.search(/on[A-Z]/)===0&&typeof obj[key]==='function'){if(splitEvents){events["".concat(key[2].toLowerCase()).concat(key.substr(3))]=obj[key];}else{params.on["".concat(key[2].toLowerCase()).concat(key.substr(3))]=obj[key];}}else{rest[key]=obj[key];}});['navigation','pagination','scrollbar'].forEach(function(key){if(params[key]===true)params[key]={};if(params[key]===false)delete params[key];});return{params:params,passedParams:passedParams,rest:rest,events:events};}function mountSwiper(_ref,swiperParams){var el=_ref.el,nextEl=_ref.nextEl,prevEl=_ref.prevEl,paginationEl=_ref.paginationEl,scrollbarEl=_ref.scrollbarEl,swiper=_ref.swiper;if(needsNavigation(swiperParams)&&nextEl&&prevEl){swiper.params.navigation.nextEl=nextEl;swiper.originalParams.navigation.nextEl=nextEl;swiper.params.navigation.prevEl=prevEl;swiper.originalParams.navigation.prevEl=prevEl;}if(needsPagination(swiperParams)&&paginationEl){swiper.params.pagination.el=paginationEl;swiper.originalParams.pagination.el=paginationEl;}if(needsScrollbar(swiperParams)&&scrollbarEl){swiper.params.scrollbar.el=scrollbarEl;swiper.originalParams.scrollbar.el=scrollbarEl;}swiper.init(el);}function calcLoopedSlides(slides,swiperParams){var slidesPerViewParams=swiperParams.slidesPerView;if(swiperParams.breakpoints){var breakpoint=Swiper$1.prototype.getBreakpoint(swiperParams.breakpoints);var breakpointOnlyParams=breakpoint in swiperParams.breakpoints?swiperParams.breakpoints[breakpoint]:undefined;if(breakpointOnlyParams&&breakpointOnlyParams.slidesPerView){slidesPerViewParams=breakpointOnlyParams.slidesPerView;}}var loopedSlides=Math.ceil(parseFloat(swiperParams.loopedSlides||slidesPerViewParams,10));loopedSlides+=swiperParams.loopAdditionalSlides;if(loopedSlides>slides.length){loopedSlides=slides.length;}return loopedSlides;}function renderLoop(swiperRef,slides,swiperParams){var modifiedSlides=slides.map(function(child,index){if(!child.props)child.props={};child.props.swiperRef=swiperRef;child.props['data-swiper-slide-index']=index;return child;});function duplicateSlide(child,index,position){if(!child.props)child.props={};return h(child.type,_objectSpread(_objectSpread({},child.props),{},{key:"".concat(child.key,"-duplicate-").concat(index,"-").concat(position),class:"".concat(child.props.className||''," ").concat(swiperParams.slideDuplicateClass," ").concat(child.props.class||'')}),child.children);}if(swiperParams.loopFillGroupWithBlank){var blankSlidesNum=swiperParams.slidesPerGroup-modifiedSlides.length%swiperParams.slidesPerGroup;if(blankSlidesNum!==swiperParams.slidesPerGroup){for(var i=0;i=modifiedSlides.length-loopedSlides){prependSlides.push(duplicateSlide(child,index,'append'));}});if(swiperRef.value){swiperRef.value.loopedSlides=loopedSlides;}return[].concat(prependSlides,_toConsumableArray(modifiedSlides),appendSlides);}function getChangedParams(swiperParams,oldParams,children,oldChildren,getKey){var keys=[];if(!oldParams)return keys;var addKey=function addKey(key){if(keys.indexOf(key)<0)keys.push(key);};if(children&&oldChildren){var oldChildrenKeys=oldChildren.map(getKey);var childrenKeys=children.map(getKey);if(oldChildrenKeys.join('')!==childrenKeys.join(''))addKey('children');if(oldChildren.length!==children.length)addKey('children');}var watchParams=paramsList.filter(function(key){return key[0]==='_';}).map(function(key){return key.replace(/_/,'');});watchParams.forEach(function(key){if(key in swiperParams&&key in oldParams){if(isObject(swiperParams[key])&&isObject(oldParams[key])){var newKeys=Object.keys(swiperParams[key]);var oldKeys=Object.keys(oldParams[key]);if(newKeys.length!==oldKeys.length){addKey(key);}else{newKeys.forEach(function(newKey){if(swiperParams[key][newKey]!==oldParams[key][newKey]){addKey(key);}});oldKeys.forEach(function(oldKey){if(swiperParams[key][oldKey]!==oldParams[key][oldKey])addKey(key);});}}else if(swiperParams[key]!==oldParams[key]){addKey(key);}}});return keys;}function getChildren(originalSlots,slidesRef,oldSlidesRef){if(originalSlots===void 0){originalSlots={};}var slides=[];var slots={'container-start':[],'container-end':[],'wrapper-start':[],'wrapper-end':[]};var getSlidesFromElements=function getSlidesFromElements(els,slotName){if(!Array.isArray(els)){return;}els.forEach(function(vnode){var isFragment=_typeof(vnode.type)==='symbol';if(slotName==='default')slotName='container-end';if(isFragment&&vnode.children){getSlidesFromElements(vnode.children,'default');}else if(vnode.type&&(vnode.type.name==='SwiperSlide'||vnode.type.name==='AsyncComponentWrapper')){slides.push(vnode);}else if(slots[slotName]){slots[slotName].push(vnode);}});};Object.keys(originalSlots).forEach(function(slotName){if(typeof originalSlots[slotName]!=='function')return;var els=originalSlots[slotName]();getSlidesFromElements(els,slotName);});oldSlidesRef.value=slidesRef.value;slidesRef.value=slides;return{slides:slides,slots:slots};}function updateSwiper(_ref){var swiper=_ref.swiper,slides=_ref.slides,passedParams=_ref.passedParams,changedParams=_ref.changedParams,nextEl=_ref.nextEl,prevEl=_ref.prevEl,scrollbarEl=_ref.scrollbarEl,paginationEl=_ref.paginationEl;var updateParams=changedParams.filter(function(key){return key!=='children'&&key!=='direction';});var currentParams=swiper.params,pagination=swiper.pagination,navigation=swiper.navigation,scrollbar=swiper.scrollbar,virtual=swiper.virtual,thumbs=swiper.thumbs;var needThumbsInit;var needControllerInit;var needPaginationInit;var needScrollbarInit;var needNavigationInit;if(changedParams.includes('thumbs')&&passedParams.thumbs&&passedParams.thumbs.swiper&¤tParams.thumbs&&!currentParams.thumbs.swiper){needThumbsInit=true;}if(changedParams.includes('controller')&&passedParams.controller&&passedParams.controller.control&¤tParams.controller&&!currentParams.controller.control){needControllerInit=true;}if(changedParams.includes('pagination')&&passedParams.pagination&&(passedParams.pagination.el||paginationEl)&&(currentParams.pagination||currentParams.pagination===false)&&pagination&&!pagination.el){needPaginationInit=true;}if(changedParams.includes('scrollbar')&&passedParams.scrollbar&&(passedParams.scrollbar.el||scrollbarEl)&&(currentParams.scrollbar||currentParams.scrollbar===false)&&scrollbar&&!scrollbar.el){needScrollbarInit=true;}if(changedParams.includes('navigation')&&passedParams.navigation&&(passedParams.navigation.prevEl||prevEl)&&(passedParams.navigation.nextEl||nextEl)&&(currentParams.navigation||currentParams.navigation===false)&&navigation&&!navigation.prevEl&&!navigation.nextEl){needNavigationInit=true;}var destroyModule=function destroyModule(mod){if(!swiper[mod])return;swiper[mod].destroy();if(mod==='navigation'){currentParams[mod].prevEl=undefined;currentParams[mod].nextEl=undefined;swiper[mod].prevEl=undefined;swiper[mod].nextEl=undefined;}else{currentParams[mod].el=undefined;swiper[mod].el=undefined;}};updateParams.forEach(function(key){if(isObject(currentParams[key])&&isObject(passedParams[key])){extend(currentParams[key],passedParams[key]);}else{var newValue=passedParams[key];if((newValue===true||newValue===false)&&(key==='navigation'||key==='pagination'||key==='scrollbar')){if(newValue===false){destroyModule(key);}}else{currentParams[key]=passedParams[key];}}});if(updateParams.includes('controller')&&!needControllerInit&&swiper.controller&&swiper.controller.control&¤tParams.controller&¤tParams.controller.control){swiper.controller.control=currentParams.controller.control;}if(changedParams.includes('children')&&slides&&virtual&¤tParams.virtual.enabled){virtual.slides=slides;virtual.update(true);}else if(changedParams.includes('children')&&swiper.lazy&&swiper.params.lazy.enabled){swiper.lazy.load();}if(needThumbsInit){var initialized=thumbs.init();if(initialized)thumbs.update(true);}if(needControllerInit){swiper.controller.control=currentParams.controller.control;}if(needPaginationInit){if(paginationEl)currentParams.pagination.el=paginationEl;pagination.init();pagination.render();pagination.update();}if(needScrollbarInit){if(scrollbarEl)currentParams.scrollbar.el=scrollbarEl;scrollbar.init();scrollbar.updateSize();scrollbar.setTranslate();}if(needNavigationInit){if(nextEl)currentParams.navigation.nextEl=nextEl;if(prevEl)currentParams.navigation.prevEl=prevEl;navigation.init();navigation.update();}if(changedParams.includes('allowSlideNext')){swiper.allowSlideNext=passedParams.allowSlideNext;}if(changedParams.includes('allowSlidePrev')){swiper.allowSlidePrev=passedParams.allowSlidePrev;}if(changedParams.includes('direction')){swiper.changeDirection(passedParams.direction,false);}swiper.update();}function renderVirtual(swiperRef,slides,virtualData){if(!virtualData)return null;var style=swiperRef.value.isHorizontal()?_defineProperty({},swiperRef.value.rtlTranslate?'right':'left',"".concat(virtualData.offset,"px")):{top:"".concat(virtualData.offset,"px")};return slides.filter(function(slide,index){return index>=virtualData.from&&index<=virtualData.to;}).map(function(slide){if(!slide.props)slide.props={};if(!slide.props.style)slide.props.style={};slide.props.swiperRef=swiperRef;slide.props.style=style;return h(slide.type,_objectSpread({},slide.props),slide.children);});}var updateOnVirtualData=function updateOnVirtualData(swiper){if(!swiper||swiper.destroyed||!swiper.params.virtual||swiper.params.virtual&&!swiper.params.virtual.enabled)return;swiper.updateSlides();swiper.updateProgress();swiper.updateSlidesClasses();if(swiper.lazy&&swiper.params.lazy.enabled){swiper.lazy.load();}if(swiper.parallax&&swiper.params.parallax&&swiper.params.parallax.enabled){swiper.parallax.setTranslate();}};var Swiper={name:'Swiper',props:{tag:{type:String,default:'div'},wrapperTag:{type:String,default:'div'},modules:{type:Array,default:undefined},init:{type:Boolean,default:undefined},direction:{type:String,default:undefined},touchEventsTarget:{type:String,default:undefined},initialSlide:{type:Number,default:undefined},speed:{type:Number,default:undefined},cssMode:{type:Boolean,default:undefined},updateOnWindowResize:{type:Boolean,default:undefined},resizeObserver:{type:Boolean,default:undefined},nested:{type:Boolean,default:undefined},focusableElements:{type:String,default:undefined},width:{type:Number,default:undefined},height:{type:Number,default:undefined},preventInteractionOnTransition:{type:Boolean,default:undefined},userAgent:{type:String,default:undefined},url:{type:String,default:undefined},edgeSwipeDetection:{type:[Boolean,String],default:undefined},edgeSwipeThreshold:{type:Number,default:undefined},autoHeight:{type:Boolean,default:undefined},setWrapperSize:{type:Boolean,default:undefined},virtualTranslate:{type:Boolean,default:undefined},effect:{type:String,default:undefined},breakpoints:{type:Object,default:undefined},spaceBetween:{type:Number,default:undefined},slidesPerView:{type:[Number,String],default:undefined},maxBackfaceHiddenSlides:{type:Number,default:undefined},slidesPerGroup:{type:Number,default:undefined},slidesPerGroupSkip:{type:Number,default:undefined},slidesPerGroupAuto:{type:Boolean,default:undefined},centeredSlides:{type:Boolean,default:undefined},centeredSlidesBounds:{type:Boolean,default:undefined},slidesOffsetBefore:{type:Number,default:undefined},slidesOffsetAfter:{type:Number,default:undefined},normalizeSlideIndex:{type:Boolean,default:undefined},centerInsufficientSlides:{type:Boolean,default:undefined},watchOverflow:{type:Boolean,default:undefined},roundLengths:{type:Boolean,default:undefined},touchRatio:{type:Number,default:undefined},touchAngle:{type:Number,default:undefined},simulateTouch:{type:Boolean,default:undefined},shortSwipes:{type:Boolean,default:undefined},longSwipes:{type:Boolean,default:undefined},longSwipesRatio:{type:Number,default:undefined},longSwipesMs:{type:Number,default:undefined},followFinger:{type:Boolean,default:undefined},allowTouchMove:{type:Boolean,default:undefined},threshold:{type:Number,default:undefined},touchMoveStopPropagation:{type:Boolean,default:undefined},touchStartPreventDefault:{type:Boolean,default:undefined},touchStartForcePreventDefault:{type:Boolean,default:undefined},touchReleaseOnEdges:{type:Boolean,default:undefined},uniqueNavElements:{type:Boolean,default:undefined},resistance:{type:Boolean,default:undefined},resistanceRatio:{type:Number,default:undefined},watchSlidesProgress:{type:Boolean,default:undefined},grabCursor:{type:Boolean,default:undefined},preventClicks:{type:Boolean,default:undefined},preventClicksPropagation:{type:Boolean,default:undefined},slideToClickedSlide:{type:Boolean,default:undefined},preloadImages:{type:Boolean,default:undefined},updateOnImagesReady:{type:Boolean,default:undefined},loop:{type:Boolean,default:undefined},loopAdditionalSlides:{type:Number,default:undefined},loopedSlides:{type:Number,default:undefined},loopFillGroupWithBlank:{type:Boolean,default:undefined},loopPreventsSlide:{type:Boolean,default:undefined},rewind:{type:Boolean,default:undefined},allowSlidePrev:{type:Boolean,default:undefined},allowSlideNext:{type:Boolean,default:undefined},swipeHandler:{type:Boolean,default:undefined},noSwiping:{type:Boolean,default:undefined},noSwipingClass:{type:String,default:undefined},noSwipingSelector:{type:String,default:undefined},passiveListeners:{type:Boolean,default:undefined},containerModifierClass:{type:String,default:undefined},slideClass:{type:String,default:undefined},slideBlankClass:{type:String,default:undefined},slideActiveClass:{type:String,default:undefined},slideDuplicateActiveClass:{type:String,default:undefined},slideVisibleClass:{type:String,default:undefined},slideDuplicateClass:{type:String,default:undefined},slideNextClass:{type:String,default:undefined},slideDuplicateNextClass:{type:String,default:undefined},slidePrevClass:{type:String,default:undefined},slideDuplicatePrevClass:{type:String,default:undefined},wrapperClass:{type:String,default:undefined},runCallbacksOnInit:{type:Boolean,default:undefined},observer:{type:Boolean,default:undefined},observeParents:{type:Boolean,default:undefined},observeSlideChildren:{type:Boolean,default:undefined},a11y:{type:[Boolean,Object],default:undefined},autoplay:{type:[Boolean,Object],default:undefined},controller:{type:Object,default:undefined},coverflowEffect:{type:Object,default:undefined},cubeEffect:{type:Object,default:undefined},fadeEffect:{type:Object,default:undefined},flipEffect:{type:Object,default:undefined},creativeEffect:{type:Object,default:undefined},cardsEffect:{type:Object,default:undefined},hashNavigation:{type:[Boolean,Object],default:undefined},history:{type:[Boolean,Object],default:undefined},keyboard:{type:[Boolean,Object],default:undefined},lazy:{type:[Boolean,Object],default:undefined},mousewheel:{type:[Boolean,Object],default:undefined},navigation:{type:[Boolean,Object],default:undefined},pagination:{type:[Boolean,Object],default:undefined},parallax:{type:[Boolean,Object],default:undefined},scrollbar:{type:[Boolean,Object],default:undefined},thumbs:{type:Object,default:undefined},virtual:{type:[Boolean,Object],default:undefined},zoom:{type:[Boolean,Object],default:undefined},grid:{type:[Object],default:undefined},freeMode:{type:[Boolean,Object],default:undefined},enabled:{type:Boolean,default:undefined}},emits:['_beforeBreakpoint','_containerClasses','_slideClass','_slideClasses','_swiper','_freeModeNoMomentumRelease','activeIndexChange','afterInit','autoplay','autoplayStart','autoplayStop','autoplayPause','autoplayResume','beforeDestroy','beforeInit','beforeLoopFix','beforeResize','beforeSlideChangeStart','beforeTransitionStart','breakpoint','changeDirection','click','disable','doubleTap','doubleClick','destroy','enable','fromEdge','hashChange','hashSet','imagesReady','init','keyPress','lazyImageLoad','lazyImageReady','lock','loopFix','momentumBounce','navigationHide','navigationShow','navigationPrev','navigationNext','observerUpdate','orientationchange','paginationHide','paginationRender','paginationShow','paginationUpdate','progress','reachBeginning','reachEnd','realIndexChange','resize','scroll','scrollbarDragEnd','scrollbarDragMove','scrollbarDragStart','setTransition','setTranslate','slideChange','slideChangeTransitionEnd','slideChangeTransitionStart','slideNextTransitionEnd','slideNextTransitionStart','slidePrevTransitionEnd','slidePrevTransitionStart','slideResetTransitionStart','slideResetTransitionEnd','sliderMove','sliderFirstMove','slidesLengthChange','slidesGridLengthChange','snapGridLengthChange','snapIndexChange','swiper','tap','toEdge','touchEnd','touchMove','touchMoveOpposite','touchStart','transitionEnd','transitionStart','unlock','update','virtualUpdate','zoomChange'],setup:function setup(props,_ref){var originalSlots=_ref.slots,emit=_ref.emit;var Tag=props.tag,WrapperTag=props.wrapperTag;var containerClasses=ref('swiper');var virtualData=ref(null);var breakpointChanged=ref(false);var initializedRef=ref(false);var swiperElRef=ref(null);var swiperRef=ref(null);var oldPassedParamsRef=ref(null);var slidesRef={value:[]};var oldSlidesRef={value:[]};var nextElRef=ref(null);var prevElRef=ref(null);var paginationElRef=ref(null);var scrollbarElRef=ref(null);var _getParams=getParams(props,false),swiperParams=_getParams.params,passedParams=_getParams.passedParams;getChildren(originalSlots,slidesRef,oldSlidesRef);oldPassedParamsRef.value=passedParams;oldSlidesRef.value=slidesRef.value;var onBeforeBreakpoint=function onBeforeBreakpoint(){getChildren(originalSlots,slidesRef,oldSlidesRef);breakpointChanged.value=true;};swiperParams.onAny=function(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}emit.apply(void 0,[event].concat(args));};Object.assign(swiperParams.on,{_beforeBreakpoint:onBeforeBreakpoint,_containerClasses:function _containerClasses(swiper,classes){containerClasses.value=classes;}});// init Swiper swiperRef.value=new Swiper$1(swiperParams);swiperRef.value.loopCreate=function(){};swiperRef.value.loopDestroy=function(){};if(swiperParams.loop){swiperRef.value.loopedSlides=calcLoopedSlides(slidesRef.value,swiperParams);}if(swiperRef.value.virtual&&swiperRef.value.params.virtual.enabled){swiperRef.value.virtual.slides=slidesRef.value;var extendWith={cache:false,slides:slidesRef.value,renderExternal:function renderExternal(data){virtualData.value=data;},renderExternalUpdate:false};extend(swiperRef.value.params.virtual,extendWith);extend(swiperRef.value.originalParams.virtual,extendWith);}onUpdated(function(){// set initialized flag if(!initializedRef.value&&swiperRef.value){swiperRef.value.emitSlidesClasses();initializedRef.value=true;}// watch for params change var _getParams2=getParams(props,false),newPassedParams=_getParams2.passedParams;var changedParams=getChangedParams(newPassedParams,oldPassedParamsRef.value,slidesRef.value,oldSlidesRef.value,function(c){return c.props&&c.props.key;});oldPassedParamsRef.value=newPassedParams;if((changedParams.length||breakpointChanged.value)&&swiperRef.value&&!swiperRef.value.destroyed){updateSwiper({swiper:swiperRef.value,slides:slidesRef.value,passedParams:newPassedParams,changedParams:changedParams,nextEl:nextElRef.value,prevEl:prevElRef.value,scrollbarEl:scrollbarElRef.value,paginationEl:paginationElRef.value});}breakpointChanged.value=false;});provide('swiper',swiperRef);// update on virtual update watch(virtualData,function(){nextTick$1(function(){updateOnVirtualData(swiperRef.value);});});// mount swiper onMounted(function(){if(!swiperElRef.value)return;mountSwiper({el:swiperElRef.value,nextEl:nextElRef.value,prevEl:prevElRef.value,paginationEl:paginationElRef.value,scrollbarEl:scrollbarElRef.value,swiper:swiperRef.value},swiperParams);emit('swiper',swiperRef.value);});onBeforeUnmount(function(){if(swiperRef.value&&!swiperRef.value.destroyed){swiperRef.value.destroy(true,false);}});// bypass swiper instance to slides function renderSlides(slides){if(swiperParams.virtual){return renderVirtual(swiperRef,slides,virtualData.value);}if(!swiperParams.loop||swiperRef.value&&swiperRef.value.destroyed){slides.forEach(function(slide){if(!slide.props)slide.props={};slide.props.swiperRef=swiperRef;});return slides;}return renderLoop(swiperRef,slides,swiperParams);}return function(){var _getChildren=getChildren(originalSlots,slidesRef,oldSlidesRef),slides=_getChildren.slides,slots=_getChildren.slots;return h(Tag,{ref:swiperElRef,class:uniqueClasses(containerClasses.value)},[slots['container-start'],h(WrapperTag,{class:'swiper-wrapper'},[slots['wrapper-start'],renderSlides(slides),slots['wrapper-end']]),needsNavigation(props)&&[h('div',{ref:prevElRef,class:'swiper-button-prev'}),h('div',{ref:nextElRef,class:'swiper-button-next'})],needsScrollbar(props)&&h('div',{ref:scrollbarElRef,class:'swiper-scrollbar'}),needsPagination(props)&&h('div',{ref:paginationElRef,class:'swiper-pagination'}),slots['container-end']]);};}};var SwiperSlide={name:'SwiperSlide',props:{tag:{type:String,default:'div'},swiperRef:{type:Object,required:false},zoom:{type:Boolean,default:undefined},virtualIndex:{type:[String,Number],default:undefined}},setup:function setup(props,_ref){var slots=_ref.slots;var eventAttached=false;var swiperRef=props.swiperRef;var slideElRef=ref(null);var slideClasses=ref('swiper-slide');function updateClasses(swiper,el,classNames){if(el===slideElRef.value){slideClasses.value=classNames;}}onMounted(function(){if(!swiperRef.value)return;swiperRef.value.on('_slideClass',updateClasses);eventAttached=true;});onBeforeUpdate(function(){if(eventAttached||!swiperRef||!swiperRef.value)return;swiperRef.value.on('_slideClass',updateClasses);eventAttached=true;});onUpdated(function(){if(!slideElRef.value||!swiperRef||!swiperRef.value)return;if(swiperRef.value.destroyed){if(slideClasses.value!=='swiper-slide'){slideClasses.value='swiper-slide';}}});onBeforeUnmount(function(){if(!swiperRef||!swiperRef.value)return;swiperRef.value.off('_slideClass',updateClasses);});var slideData=computed(function(){return{isActive:slideClasses.value.indexOf('swiper-slide-active')>=0||slideClasses.value.indexOf('swiper-slide-duplicate-active')>=0,isVisible:slideClasses.value.indexOf('swiper-slide-visible')>=0,isDuplicate:slideClasses.value.indexOf('swiper-slide-duplicate')>=0,isPrev:slideClasses.value.indexOf('swiper-slide-prev')>=0||slideClasses.value.indexOf('swiper-slide-duplicate-prev')>=0,isNext:slideClasses.value.indexOf('swiper-slide-next')>=0||slideClasses.value.indexOf('swiper-slide-duplicate-next')>=0};});provide('swiperSlide',slideData);return function(){return h(props.tag,{class:uniqueClasses("".concat(slideClasses.value)),ref:slideElRef,'data-swiper-slide-index':props.virtualIndex},props.zoom?h('div',{class:'swiper-zoom-container','data-swiper-zoom':typeof props.zoom==='number'?props.zoom:undefined},slots.default&&slots.default(slideData.value)):slots.default&&slots.default(slideData.value));};}};var bannerArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAABgRJREFUeF7tnenLHEUQxp9SPFC8guL1RfG+8FbwVtQvXuAVFRHB/8wPGhWF6BdRUfECj4hB4xEVI6JvghJNoqhILHnmrY2zu7Oz3ds9vdOz3TBkebPTx69rq6u7q6sFPUmqKgCOAXCsPfx8NIDDABxSe1jjf2rP3wD2AtgD4Dd79oiI9qFpbNTSkqoeB+BUAKcAONlgxqgPoa8B+AnAjyLya4xMF8kjOWBVpVSeZQ8/p0iU8K/5iAg/J0tJANvP/0wA5wM4MVnrmgvaBeBzAN+kUCOdAlbVgwCcDeAS06dLZjtWPCX5EwDbReTfrirWGWBVJdgrARzZVeUj5fsHgA9FZHuk/MayiQ7YBq7rbNDqos5d5clB8Z3YA2I0wKYOKLEXAaBqyDFRVXxqEh1FbUQBrKpHAbgVwAk5Um2o888AXhORfaHtCQasqqcDuCGiDRvapljv05Z+S0S+C8kwCLCqXgbgipAKZPDuRyLy8aL1XAiw2bXXALhg0YIze28bgPcWsZu9AdtgdjOAMzKDFFrdbwG84WszewE2yb1lBeGOOoeQX/eRZF/A166QWpgl8dtE5F3Xn4Mz4BUZ0Fy5OQ98ToDNFLvNtfQV+d6rLibcXMA2ibh3gHZuqBzQTn5h3mSkFbBZDPcMaIYWCnXyfc74NrdZFvMAXw3g4ti1Glh+W0Xk/VltmgnYVsXuy3jhJlU/clHo+VmrcG2A7wZwUqpaZl7OThF5sakNjYBtsfymzBq9H8AvAPjv8QAOTVz/N5sW7acA28D2cAY7EXV+OwC8LSJ/8o+qejCAS+2ZaylF6gjujDw9OeA1AT4PwPWRCk2RDXeLKT1TfhCqmnqQZid/UW/0GGBba9jYww3KWR01E65JMtXEYwkHam6kPlPv7EnA9FfgSlkOqRXuqAGq+qB5CqVqE1fcWLcqTQLmpGLZfgsuIJzgmhQ/CuAIl0wjfWeXiGyeAmweNw9FKqTLbHzgUlgoNKnTppEH0QEJVtXLAfDpc/KBS6dB2vL0f0udtojIljEVoaqU3lS+Yos02BfuHWYPL1JW6Dt7RWTTAcA2LX4gNNcO388J7gjDc5w+VypCVS8EwE3MPqYc4ZIjN0k/GwG+HcBpPaSbK1yi3CEir4hNLmiMc1DoU8oZLjlyQf5JAqbLPo3xPqXc4Y5YPkvAVA1UEX1JQ4FLnpWKoHP0VT2hOyS4RPoBAd8I4JweAB4aXCL9ioDv6oGztA9crpDducRJhI8srhHw/QA2+LwV+bu+cDlDy8UPeTcBc/eCDtTLSD8AeNnF10tVKbk5wSXPfQRMG/jwZdC1xWme0GxNmcJlm/4i4CcAcA8rdfpdRJ6aV2jGcNm0/QXwvB4O+/8KcFERYRDb3q5URBnkugNcDXLFTOsOcGWm5TjRyMVcqyYaOU6Vc7GJq6lyros9OUCuFntyXq7s+7pEtVxZFty7G+SqBXfuy5Uto/iQ17eMmK+qlk3P+IDXNz0NcNm2jw94bNue7kXF8SQu5P8dT0yKi+tUPMDjrlMGeIjOf/SspJWUOjU6/9Hxb2juq4woyP271GnafdWkeIgO2I8nPnHU7IBtgId4hCC1h3vrEQKabUM6BMOgeI9MHpXoUF+0H4IxKT7Xokh1WI+oWbcd4+JhSkYgTJUYperLemFDOYj4vUXt42FAzkzpKUp3MJ75S5XcDiJaBdnruR2l5UHE3QB4OJuONKl3yt2O0o66uyc7HamkL7ScNRF5qSmTEs4gFO36L8Y/nIGpitRnfcObmz6HxQJyGGBGUS0hZWZ3WlhIGYNMx8ASFGkacnhQpNqAxwirJazXOOQ4Yb1qkFch0qqrBo8bmK4GuYRWBLoJrWj6mGZdCQ7qccuMdzybEt7W70oIb8A1SS4Bmh009kKAV2zgcx7QvKbKDp1TfaUEyW8nFSTBNUku1zzM4BwFcG1aXS4qmQAdDXBNmunEwsB2ucW93GnRA6PePRcdcA10uSyq681As5l50JwxiPsWcIkblFurA9s5XndWV0Xlwj5XmyzC98qVkxEgumZRLk11JRXhe0O99vc/gxLm8fNyXBwAAAAASUVORK5CYII=";var bannerArrowAcitive="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAACAFJREFUeF7tnWtsFFUUx/9ntls1oREjH4xBRVErdafiI3QXgka/6Ac/2Gi3ooBoosbgIzExGJ8ragQ/mPiKUSM+8NUppMQvPkggPGS3xmdnrVQtKmLUSAIJJEqXnWPubFu62+3OezozzH7cvffcc39zd+655557LiEoH85JqcIFrSRRKzS0gqTzAT4XoJkAtxDQwkwtQl0iPsTAIYAOAXwQoJ/B2o+QMMQaDxXTu4dAOS0IXaPpVKL98w9TmpS4kpivAuEKAKe4pM8BMLYx0RZJK28dWHRj0SW5lsX4Djj1Zd9cqTSyjJmWgXCOZY3tVGDsIeL1WrJ5ffGyzmE7IuzW8QcwK4lUPy8hprsAZMS/3K7CDusxgDwTv1LsoA9A2bJDeYbVPe1oW1FpThySbgG0VQDmGmrjb4FhQFpbbtHeHkxlR7xq2jPA7f29y1nD0wDP9kp5d+TSPpLw8EBH1zvuyKuW4jpgMXFxQnoZjMu9UNgzmYTtVNZWuj0huga4TVGaE2fQaoDvB5D0DIS3gksAPVf+nR8bzLrz2nAF8Px835yjVOohxgJv+++PdCZ80cTJ7m8znb86bdEx4Iv6lU6tjHUgzHSqTKDqMw5KCdz2XUe2z4lejgDL+d5HAF49jWaXk76bqcsAPaZmup4yU7heGXuAczlJvrrteQB32204ZPVeUj8dvA8568tvy4CFbdt0GO8woztkkBypS4SeozOw3KrNbA1wLie1X9P2/vEGd+zJCMgDnwzeZGUkWwIs55UXj6PXwlQj/iU1k73H7N/BNODRCe1Js4KjXY4eNTvxmQKsm2IaNkbYWrA6HliScL0ZE84QsFhElLn0TeTsXKtIa8szDiYoebHRYqQhYLH8lc7Ejqis0JwyncSY8IW2F4sbLasbApb7e9dAY+FqjD9TEZBordrR9eBUP08JWPeKSdLXIXbc+DUoSqRpl0zlhZsSsFxQtoXO5egX0tp2CNvVdFbsKU761AVccZbz29Olr812R8D4ign/EXAJgJNtyrFVjSS6pZ7TfhLgyjYPDQd/J2ICB8KmsoS7Bhdk/xLfztn65oktJ814CMyP+Gda0r5yC8+tXUpPAiwXlDvAeNXWY5yGSkxYX+zoWgGiSXEQqYLyLDEe8E0twp1qOvvaxPaqAbOSkPP40bftdIc9bwRXiJ7/Td/M8pHS32A0O2zKbPVhNS2CZo7tVlcBThU2LCXW1puVNp3ljOCO6SYXlN1gtPqlKxMvK6a73x1rrwqwnFc+B7DQL2XstmMWrpAv55U/AZxmty0b9XapmeyiSYBFxA2VSj/5NynYUB2AFbgX5nsWSaCd9lqyXYs5mTxvLIJofAS353tyDHrctlgfKlqBK+947xRuSu4koM0H1aqaIPATA5nunPhyHLC8SxkO8uRmFS6akpsBXOo3XL09xh51YVaPZNIBjy6L1WlRxkSjoYI72h/SNFksn3XAqXzvPQR+wURffS8SRriVQUz3FjNdL+qA5V1KHwjX+U7PoEHLcJPNn4H5skD0g7FJXZjtJHBOkgtt+10Mfnalf6GGWyFwQE0PzqJU/sN5BGnQFSouCbEMdzontAZ9ZmhtJPf3XAeNHIUHucS1MgE38C3UtiNMMQTptVCroMSdJOd7VgG0xk1IdmVFCm5luDwoAK8D6Fa7UNyqFz24+nGodSTvUraDsNgtUHbkWIFb8ZAd3RwYa6FRhxk7SM4rA8JSswPGjTrW4ZY2gxEMU8wYgCoA/yI2AYzLelLiYzXddW09Z3lta6O+3TDBFV34VQAWNvCpnuBrJJSIj2Kk9Yf0zcKD1/ATUrggwn6S873/AXyCUSdd/52xV12YPctIbljhVvpFR8IB+N/SZlBo3rsTxgwdofaC8g8zZhmNJNd/P25eEQVlDxhnuw7QnMBoT3KEX2IzzdxAsFeKaCCkC42Q2MLi9Khc6H0DzLfZe0Tu1YrkgkNfKofU2RMO8004e0Lsrgy8X0K4KyPhcA+oT1h3uMdbRu7NIzWSKltG4st409MDyOObnlHbtg/I66Jq2z5ygScBgFwVeDL6mohW6NR0Qq4NnRKAoxj8h6akCMed58EbtqHIusF/kQxfLWy8UuLyFp8B1w9f1V8TUQvAZhaugAM+nziqH4AtAKcKPUuJKVpHCPLKHwBO92sUNzxCAHEIpoChAGbpq8vHyEHUXtg4m7m818eo/caHYCqviQ23A1rVUSS/nr6ddhpBlgvKm2CssCPXXh3pDjVzw+sT60blIOJHhMTKgfT1+/RBosesNT0DpjvtgbJTy+RBRN1kC+NRWkYZhO9BNAKNZRB83Sk3fZR27NnFh8EtjGKrh8H1URynMzBL2F46g8qE17sGiBNyNCZNa9WMjYQcQmicUqYxWpFE1FFKGSE+Too0BWQ3kiKNiY7Tek2C7F5ar3GropJpNU5MpwNxOTHdMchxakUA3qRW1CHHyUG9TQ6qWxbHc3rbvVhuNbe7YWrFunNonKDZ7CLE2Y0scYpxY872RvAEuXGSfIN1nvEzMC4RX/MwNSPHI3hMtH5RyVm0GlrILyqR6LnybwG7qGTi84uv2qkeza6N4No/SXxZVIWIZ4DHbObEYayAhlWBS7jE2AMJa8sz8JbVqxuMZ6VjJTwFPN6MfmGftIRYC8iFfdIrxQ4t/Bf21XvS8ZWTVsa/w7LxpakOAVqqXnvtL9AKpnNHbz9oIcKMqmt/GYchrv5lHATxzwCGgnjt7/9jslp9c98ESQAAAABJRU5ErkJggg==";var banner=exports('b',defineComponent({name:'banner',props:{title:{type:String,default:''}},components:{Swiper:Swiper,SwiperSlide:SwiperSlide},setup:function setup(props,conent){var state=reactive({title:props.title,modules:[Navigation,Pagination,Scrollbar,Autoplay,A11y],bannerList:[],leftHover:false,rightHover:false,swiper:null});var router=useRouter();var onSwiper=function onSwiper(swiper){state.swiper=swiper;// console.log(swiper) };var onSlideChange=function onSlideChange(){// console.log('slide change') };var getBannerList=/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.get('/api-website/open/banner/list',{data:{}});case 3:res=_context.sent;state.bannerList=res.data;_context.next=10;break;case 7:_context.prev=7;_context.t0=_context["catch"](0);console.log(_context.t0);case 10:case"end":return _context.stop();}}},_callee,null,[[0,7]]);}));return function getBannerList(){return _ref5.apply(this,arguments);};}();var gotoBannerInfo=function gotoBannerInfo(item){if(item.linkUrl.indexOf('http')!=-1){window.open(item.linkUrl);}else{router.push({path:item.linkUrl});}};onMounted(function(){getBannerList();// window.onresize = () => { // console.log(state.swiper) // state.swiper.updateSize() // window.location.reload() // } });return function(){return createVNode(Fragment,null,[createVNode("div",{"class":"bannerSwiper"},[createVNode(resolveComponent("swiper"),{"modules":state.modules,"class":[classes$1.mySwiper,'mySwiper'],"slides-per-view":1,"space-between":0,"pagination":{clickable:true},"autoplay":{delay:3000,disableOnInteraction:false,loop:true,pauseOnMouseEnter:true,reverseDirection:true},"navigation":{nextEl:'.myprev',prevEl:'.mynext'},"loop":true,"onSwiper":onSwiper,"onSlideChange":onSlideChange},{default:function _default(){return[state.bannerList.map(function(item){return createVNode(Fragment,null,[createVNode(resolveComponent("swiper-slide"),null,{default:function _default(){return[createVNode("div",{"class":classes$1.bannerWrap,"style":{'background':item.background}},[createVNode("img",{"src":item.coverImage,"alt":"","class":classes$1.bannerImg,"onClick":function onClick(){gotoBannerInfo(item);}},null)])];}})]);}),createVNode("div",{"class":"myprev","onMouseover":function onMouseover(){state.leftHover=true;},"onMouseout":function onMouseout(){state.leftHover=false;}},[createVNode("img",{"src":state.leftHover?bannerArrowAcitive:bannerArrow,"alt":""},null)]),createVNode("div",{"class":"mynext","onMouseover":function onMouseover(){state.rightHover=true;},"onMouseout":function onMouseout(){state.rightHover=false;}},[createVNode("img",{"src":state.rightHover?bannerArrowAcitive:bannerArrow,"alt":""},null)])];}})])]);};}}));}};});})();