UNPKG

@tindtechnologies/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

1 lines 93.5 kB
import"./chunk-L67DAW3A.js";var Ee=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])},e(t,r)};return function(t,r){e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),E=typeof document>"u"?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,v=typeof window>"u"?{document:E,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,M=function(){function e(t){for(var r=this,i=0;i<t.length;i+=1)r[i]=t[i];return r.length=t.length,this}return e}();function w(e,t){var r=[],i=0;if(e&&!t&&e instanceof M)return e;if(e){if(typeof e=="string"){var a=void 0,s=void 0,n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){var l="div";for(n.indexOf("<li")===0&&(l="ul"),n.indexOf("<tr")===0&&(l="tbody"),(n.indexOf("<td")===0||n.indexOf("<th")===0)&&(l="tr"),n.indexOf("<tbody")===0&&(l="table"),n.indexOf("<option")===0&&(l="select"),s=E.createElement(l),s.innerHTML=n,i=0;i<s.childNodes.length;i+=1)r.push(s.childNodes[i])}else for(!t&&e[0]==="#"&&!e.match(/[ .<>:~]/)?a=[E.getElementById(e.trim().split("#")[1])]:a=(t||E).querySelectorAll(e.trim()),i=0;i<a.length;i+=1)a[i]&&r.push(a[i])}else if(e.nodeType||e===v||e===E)r.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)r.push(e[i])}return new M(r)}w.fn=M.prototype;w.Class=M;w.Dom7=M;function ie(e){for(var t=[],r=0;r<e.length;r+=1)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function be(e){if(typeof e>"u")return this;for(var t=e.split(" "),r=0;r<t.length;r+=1)for(var i=0;i<this.length;i+=1)typeof this[i]<"u"&&typeof this[i].classList<"u"&&this[i].classList.add(t[r]);return this}function ye(e){for(var t=e.split(" "),r=0;r<t.length;r+=1)for(var i=0;i<this.length;i+=1)typeof this[i]<"u"&&typeof this[i].classList<"u"&&this[i].classList.remove(t[r]);return this}function Se(e){return this[0]?this[0].classList.contains(e):!1}function xe(e){for(var t=e.split(" "),r=0;r<t.length;r+=1)for(var i=0;i<this.length;i+=1)typeof this[i]<"u"&&typeof this[i].classList<"u"&&this[i].classList.toggle(t[r]);return this}function Ce(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this}function Me(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ze(e,t){var r;if(typeof t>"u"){if(r=this[0],r){if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];var i=r.getAttribute("data-"+e);return i||void 0}return}for(var a=0;a<this.length;a+=1)r=this[a],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}function $e(e){for(var t=0;t<this.length;t+=1){var r=this[t].style;r.webkitTransform=e,r.transform=e}return this}function Pe(e){typeof e!="string"&&(e=e+"ms");for(var t=0;t<this.length;t+=1){var r=this[t].style;r.webkitTransitionDuration=e,r.transitionDuration=e}return this}function Le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],a=e[2],s=e[3];typeof e[1]=="function"&&(r=e[0],a=e[1],s=e[2],i=void 0),s||(s=!1);function n(c){var m=c.target;if(m){var S=c.target.dom7EventData||[];if(S.indexOf(c)<0&&S.unshift(c),w(m).is(i))a.apply(m,S);else for(var z=w(m).parents(),T=0;T<z.length;T+=1)w(z[T]).is(i)&&a.apply(z[T],S)}}function l(c){var m=c&&c.target?c.target.dom7EventData||[]:[];m.indexOf(c)<0&&m.unshift(c),a.apply(this,m)}for(var o=r.split(" "),d,u=0;u<this.length;u+=1){var f=this[u];if(i)for(d=0;d<o.length;d+=1){var p=o[d];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:n}),f.addEventListener(p,n,s)}else for(d=0;d<o.length;d+=1){var p=o[d];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[p]||(f.dom7Listeners[p]=[]),f.dom7Listeners[p].push({listener:a,proxyListener:l}),f.addEventListener(p,l,s)}}return this}function ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],a=e[2],s=e[3];typeof e[1]=="function"&&(r=e[0],a=e[1],s=e[2],i=void 0),s||(s=!1);for(var n=r.split(" "),l=0;l<n.length;l+=1)for(var o=n[l],d=0;d<this.length;d+=1){var u=this[d],f=void 0;if(!i&&u.dom7Listeners?f=u.dom7Listeners[o]:i&&u.dom7LiveListeners&&(f=u.dom7LiveListeners[o]),f&&f.length)for(var p=f.length-1;p>=0;p-=1){var c=f[p];a&&c.listener===a||a&&c.listener&&c.listener.dom7proxy&&c.listener.dom7proxy===a?(u.removeEventListener(o,c.proxyListener,s),f.splice(p,1)):a||(u.removeEventListener(o,c.proxyListener,s),f.splice(p,1))}}return this}function De(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0].split(" "),i=e[1],a=0;a<r.length;a+=1)for(var s=r[a],n=0;n<this.length;n+=1){var l=this[n],o=void 0;try{o=new v.CustomEvent(s,{detail:i,bubbles:!0,cancelable:!0})}catch{o=E.createEvent("Event"),o.initEvent(s,!0,!0),o.detail=i}l.dom7EventData=e.filter(function(d,u){return u>0}),l.dispatchEvent(o),l.dom7EventData=[],delete l.dom7EventData}return this}function Ie(e){var t=["webkitTransitionEnd","transitionend"],r=this,i;function a(s){if(s.target===this)for(e.call(this,s),i=0;i<t.length;i+=1)r.off(t[i],a)}if(e)for(i=0;i<t.length;i+=1)r.on(t[i],a);return this}function Oe(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Ge(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function Xe(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),r=E.body,i=e.clientTop||r.clientTop||0,a=e.clientLeft||r.clientLeft||0,s=e===v?v.scrollY:e.scrollTop,n=e===v?v.scrollX:e.scrollLeft;return{top:t.top+s-i,left:t.left+n-a}}return null}function Ae(){return this[0]?v.getComputedStyle(this[0],null):{}}function Ye(e,t){var r;if(arguments.length===1)if(typeof e=="string"){if(this[0])return v.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r<this.length;r+=1)for(var i in e)this[r].style[i]=e[i];return this}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function Be(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(e.call(this[t],t,this[t])===!1)return this;return this}function He(e){if(typeof e>"u")return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Ve(e){if(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Fe(e){var t=this[0],r,i;if(!t||typeof e>"u")return!1;if(typeof e=="string"){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(r=w(e),i=0;i<r.length;i+=1)if(r[i]===t)return!0;return!1}else{if(e===E)return t===E;if(e===v)return t===v}if(e.nodeType||e instanceof M){for(r=e.nodeType?[e]:e,i=0;i<r.length;i+=1)if(r[i]===t)return!0;return!1}return!1}function Re(){var e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function We(e){if(typeof e>"u")return this;var t=this.length,r;return e>t-1?new M([]):e<0?(r=t+e,r<0?new M([]):new M([this[r]])):new M([this[e]])}function qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i=0;i<e.length;i+=1){r=e[i];for(var a=0;a<this.length;a+=1)if(typeof r=="string"){var s=E.createElement("div");for(s.innerHTML=r;s.firstChild;)this[a].appendChild(s.firstChild)}else if(r instanceof M)for(var n=0;n<r.length;n+=1)this[a].appendChild(r[n]);else this[a].appendChild(r)}return this}function Ne(e){var t,r;for(t=0;t<this.length;t+=1)if(typeof e=="string"){var i=E.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(e instanceof M)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function je(e){return this.length>0?e?this[0].nextElementSibling&&w(this[0].nextElementSibling).is(e)?new M([this[0].nextElementSibling]):new M([]):this[0].nextElementSibling?new M([this[0].nextElementSibling]):new M([]):new M([])}function Ue(e){var t=[],r=this[0];if(!r)return new M([]);for(;r.nextElementSibling;){var i=r.nextElementSibling;e?w(i).is(e)&&t.push(i):t.push(i),r=i}return new M(t)}function Ze(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&w(t.previousElementSibling).is(e)?new M([t.previousElementSibling]):new M([]):t.previousElementSibling?new M([t.previousElementSibling]):new M([])}return new M([])}function Qe(e){var t=[],r=this[0];if(!r)return new M([]);for(;r.previousElementSibling;){var i=r.previousElementSibling;e?w(i).is(e)&&t.push(i):t.push(i),r=i}return new M(t)}function Je(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?w(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return w(ie(t))}function Ke(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].parentNode;i;)e?w(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return w(ie(t))}function _e(e){var t=this;return typeof e>"u"?new M([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function et(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].querySelectorAll(e),a=0;a<i.length;a+=1)t.push(i[a]);return new M(t)}function tt(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].childNodes,a=0;a<i.length;a+=1)e?i[a].nodeType===1&&w(i[a]).is(e)&&t.push(i[a]):i[a].nodeType===1&&t.push(i[a]);return new M(ie(t))}function rt(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this,i,a;for(i=0;i<e.length;i+=1){var s=w(e[i]);for(a=0;a<s.length;a+=1)r[r.length]=s[a],r.length+=1}return r}var pe={addClass:be,removeClass:ye,hasClass:Se,toggleClass:xe,attr:Ce,removeAttr:Me,data:ze,transform:$e,transition:Pe,on:Le,off:ke,trigger:De,transitionEnd:Ie,outerWidth:Oe,outerHeight:Ge,offset:Xe,css:Ye,each:Be,html:He,text:Ve,is:Fe,index:Re,eq:We,append:qe,prepend:Ne,next:je,nextAll:Ue,prev:Ze,prevAll:Qe,parent:Je,parents:Ke,closest:_e,find:et,children:tt,remove:rt,add:it,styles:Ae};Object.keys(pe).forEach(function(e){w.fn[e]=w.fn[e]||pe[e]});var h={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(r){try{t[r]=null}catch{}try{delete t[r]}catch{}})},nextTick:function(e,t){return t===void 0&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){t===void 0&&(t="x");var r,i,a,s=v.getComputedStyle(e,null);return v.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(n){return n.replace(",",".")}).join(", ")),a=new v.WebKitCSSMatrix(i==="none"?"":i)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),t==="x"&&(v.WebKitCSSMatrix?i=a.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(v.WebKitCSSMatrix?i=a.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0},parseUrlQuery:function(e){var t={},r=e||v.location.href,i,a,s,n;if(typeof r=="string"&&r.length)for(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"",a=r.split("&").filter(function(l){return l!==""}),n=a.length,i=0;i<n;i+=1)s=a[i].replace(/#\S+/g,"").split("="),t[decodeURIComponent(s[0])]=typeof s[1]>"u"?void 0:decodeURIComponent(s[1])||"";return t},isObject:function(e){return typeof e=="object"&&e!==null&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=Object(e[0]),i=1;i<e.length;i+=1){var a=e[i];if(a!=null)for(var s=Object.keys(Object(a)),n=0,l=s.length;n<l;n+=1){var o=s[n],d=Object.getOwnPropertyDescriptor(a,o);d!==void 0&&d.enumerable&&(h.isObject(r[o])&&h.isObject(a[o])?h.extend(r[o],a[o]):!h.isObject(r[o])&&h.isObject(a[o])?(r[o]={},h.extend(r[o],a[o])):r[o]=a[o])}}return r}},g=function(){var t=E.createElement("div");return{touch:v.Modernizr&&v.Modernizr.touch===!0||function(){return!!(v.navigator.maxTouchPoints>0||"ontouchstart"in v||v.DocumentTouch&&E instanceof v.DocumentTouch)}(),pointerEvents:!!(v.navigator.pointerEnabled||v.PointerEvent||"maxTouchPoints"in v.navigator&&v.navigator.maxTouchPoints>0),prefixedPointerEvents:!!v.navigator.msPointerEnabled,transition:function(){var i=t.style;return"transition"in i||"webkitTransition"in i||"MozTransition"in i}(),transforms3d:v.Modernizr&&v.Modernizr.csstransforms3d===!0||function(){var i=t.style;return"webkitPerspective"in i||"MozPerspective"in i||"OPerspective"in i||"MsPerspective"in i||"perspective"in i}(),flexbox:function(){for(var i=t.style,a="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),s=0;s<a.length;s+=1)if(a[s]in i)return!0;return!1}(),observer:function(){return"MutationObserver"in v||"WebkitMutationObserver"in v}(),passiveListener:function(){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i=!0}});v.addEventListener("testPassiveListener",null,a)}catch{}return i}(),gestures:function(){return"ongesturestart"in v}()}}(),H=function(){function t(){var r=v.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}return{isIE:!!v.navigator.userAgent.match(/Trident/g)||!!v.navigator.userAgent.match(/MSIE/g),isEdge:!!v.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(v.navigator.userAgent)}}(),ce=function(){function e(t){t===void 0&&(t={});var r=this;r.params=t,r.eventsListeners={},r.params&&r.params.on&&Object.keys(r.params.on).forEach(function(i){r.on(i,r.params.on[i])})}return e.prototype.on=function(t,r,i){var a=this;if(typeof r!="function")return a;var s=i?"unshift":"push";return t.split(" ").forEach(function(n){a.eventsListeners[n]||(a.eventsListeners[n]=[]),a.eventsListeners[n][s](r)}),a},e.prototype.once=function(t,r,i){var a=this;if(typeof r!="function")return a;function s(){for(var n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];r.apply(a,n),a.off(t,s),s.f7proxy&&delete s.f7proxy}return s.f7proxy=r,a.on(t,s,i)},e.prototype.off=function(t,r){var i=this;return i.eventsListeners&&t.split(" ").forEach(function(a){typeof r>"u"?i.eventsListeners[a]=[]:i.eventsListeners[a]&&i.eventsListeners[a].length&&i.eventsListeners[a].forEach(function(s,n){(s===r||s.f7proxy&&s.f7proxy===r)&&i.eventsListeners[a].splice(n,1)})}),i},e.prototype.emit=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=this;if(!i.eventsListeners)return i;var a,s,n;typeof t[0]=="string"||Array.isArray(t[0])?(a=t[0],s=t.slice(1,t.length),n=i):(a=t[0].events,s=t[0].data,n=t[0].context||i);var l=Array.isArray(a)?a:a.split(" ");return l.forEach(function(o){if(i.eventsListeners&&i.eventsListeners[o]){var d=[];i.eventsListeners[o].forEach(function(u){d.push(u)}),d.forEach(function(u){u.apply(n,s)})}}),i},e.prototype.useModulesParams=function(t){var r=this;r.modules&&Object.keys(r.modules).forEach(function(i){var a=r.modules[i];a.params&&h.extend(t,a.params)})},e.prototype.useModules=function(t){t===void 0&&(t={});var r=this;r.modules&&Object.keys(r.modules).forEach(function(i){var a=r.modules[i],s=t[i]||{};a.instance&&Object.keys(a.instance).forEach(function(n){var l=a.instance[n];typeof l=="function"?r[n]=l.bind(r):r[n]=l}),a.on&&r.on&&Object.keys(a.on).forEach(function(n){r.on(n,a.on[n])}),a.create&&a.create.bind(r)(s)})},Object.defineProperty(e,"components",{set:function(t){var r=this;r.use&&r.use(t)},enumerable:!0,configurable:!0}),e.installModule=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=this;a.prototype.modules||(a.prototype.modules={});var s=t.name||Object.keys(a.prototype.modules).length+"_"+h.now();return a.prototype.modules[s]=t,t.proto&&Object.keys(t.proto).forEach(function(n){a.prototype[n]=t.proto[n]}),t.static&&Object.keys(t.static).forEach(function(n){a[n]=t.static[n]}),t.install&&t.install.apply(a,r),a},e.use=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=this;return Array.isArray(t)?(t.forEach(function(s){return a.installModule(s)}),a):a.installModule.apply(a,[t].concat(r))},e}();function at(){var e=this,t,r,i=e.$el;typeof e.params.width<"u"?t=e.params.width:t=i[0].clientWidth,typeof e.params.height<"u"?r=e.params.height:r=i[0].clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),r=r-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),h.extend(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function st(){var e=this,t=e.params,r=e.$wrapperEl,i=e.size,a=e.rtlTranslate,s=e.wrongRTL,n=e.virtual&&t.virtual.enabled,l=n?e.virtual.slides.length:e.slides.length,o=r.children("."+e.params.slideClass),d=n?e.virtual.slides.length:o.length,u=[],f=[],p=[],c=t.slidesOffsetBefore;typeof c=="function"&&(c=t.slidesOffsetBefore.call(e));var m=t.slidesOffsetAfter;typeof m=="function"&&(m=t.slidesOffsetAfter.call(e));var S=e.snapGrid.length,z=e.snapGrid.length,T=t.spaceBetween,C=-c,y=0,I=0;if(!(typeof i>"u")){typeof T=="string"&&T.indexOf("%")>=0&&(T=parseFloat(T.replace("%",""))/100*i),e.virtualSize=-T,a?o.css({marginLeft:"",marginTop:""}):o.css({marginRight:"",marginBottom:""});var $;t.slidesPerColumn>1&&(Math.floor(d/t.slidesPerColumn)===d/e.params.slidesPerColumn?$=d:$=Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,t.slidesPerView!=="auto"&&t.slidesPerColumnFill==="row"&&($=Math.max($,t.slidesPerView*t.slidesPerColumn)));for(var x,L=t.slidesPerColumn,O=$/L,G=Math.floor(d/t.slidesPerColumn),b=0;b<d;b+=1){x=0;var k=o.eq(b);if(t.slidesPerColumn>1){var P=void 0,X=void 0,A=void 0;if(t.slidesPerColumnFill==="column"||t.slidesPerColumnFill==="row"&&t.slidesPerGroup>1){if(t.slidesPerColumnFill==="column")X=Math.floor(b/L),A=b-X*L,(X>G||X===G&&A===L-1)&&(A+=1,A>=L&&(A=0,X+=1));else{var ae=Math.floor(b/t.slidesPerGroup);A=Math.floor(b/t.slidesPerView)-ae*t.slidesPerColumn,X=b-A*t.slidesPerView-ae*t.slidesPerView}P=X+A*$/L,k.css({"-webkit-box-ordinal-group":P,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})}else A=Math.floor(b/O),X=b-A*O;k.css("margin-"+(e.isHorizontal()?"top":"left"),A!==0&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",X).attr("data-swiper-row",A)}if(k.css("display")!=="none"){if(t.slidesPerView==="auto"){var Y=v.getComputedStyle(k[0],null),J=k[0].style.transform,K=k[0].style.webkitTransform;if(J&&(k[0].style.transform="none"),K&&(k[0].style.webkitTransform="none"),t.roundLengths)x=e.isHorizontal()?k.outerWidth(!0):k.outerHeight(!0);else if(e.isHorizontal()){var se=parseFloat(Y.getPropertyValue("width")),me=parseFloat(Y.getPropertyValue("padding-left")),ge=parseFloat(Y.getPropertyValue("padding-right")),ne=parseFloat(Y.getPropertyValue("margin-left")),le=parseFloat(Y.getPropertyValue("margin-right")),W=Y.getPropertyValue("box-sizing");W&&W==="border-box"&&!H.isIE?x=se+ne+le:x=se+me+ge+ne+le}else{var oe=parseFloat(Y.getPropertyValue("height")),we=parseFloat(Y.getPropertyValue("padding-top")),Te=parseFloat(Y.getPropertyValue("padding-bottom")),de=parseFloat(Y.getPropertyValue("margin-top")),ue=parseFloat(Y.getPropertyValue("margin-bottom")),W=Y.getPropertyValue("box-sizing");W&&W==="border-box"&&!H.isIE?x=oe+de+ue:x=oe+we+Te+de+ue}J&&(k[0].style.transform=J),K&&(k[0].style.webkitTransform=K),t.roundLengths&&(x=Math.floor(x))}else x=(i-(t.slidesPerView-1)*T)/t.slidesPerView,t.roundLengths&&(x=Math.floor(x)),o[b]&&(e.isHorizontal()?o[b].style.width=x+"px":o[b].style.height=x+"px");o[b]&&(o[b].swiperSlideSize=x),p.push(x),t.centeredSlides?(C=C+x/2+y/2+T,y===0&&b!==0&&(C=C-i/2-T),b===0&&(C=C-i/2-T),Math.abs(C)<1/1e3&&(C=0),t.roundLengths&&(C=Math.floor(C)),I%t.slidesPerGroup===0&&u.push(C),f.push(C)):(t.roundLengths&&(C=Math.floor(C)),I%t.slidesPerGroup===0&&u.push(C),f.push(C),C=C+x+T),e.virtualSize+=x+T,y=x,I+=1}}e.virtualSize=Math.max(e.virtualSize,i)+m;var R;if(a&&s&&(t.effect==="slide"||t.effect==="coverflow")&&r.css({width:e.virtualSize+t.spaceBetween+"px"}),(!g.flexbox||t.setWrapperSize)&&(e.isHorizontal()?r.css({width:e.virtualSize+t.spaceBetween+"px"}):r.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(x+t.spaceBetween)*$,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?r.css({width:e.virtualSize+t.spaceBetween+"px"}):r.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){R=[];for(var b=0;b<u.length;b+=1){var V=u[b];t.roundLengths&&(V=Math.floor(V)),u[b]<e.virtualSize+u[0]&&R.push(V)}u=R}if(!t.centeredSlides){R=[];for(var b=0;b<u.length;b+=1){var V=u[b];t.roundLengths&&(V=Math.floor(V)),u[b]<=e.virtualSize-i&&R.push(V)}u=R,Math.floor(e.virtualSize-i)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-i)}if(u.length===0&&(u=[0]),t.spaceBetween!==0&&(e.isHorizontal()?a?o.css({marginLeft:T+"px"}):o.css({marginRight:T+"px"}):o.css({marginBottom:T+"px"})),t.centerInsufficientSlides){var j=0;if(p.forEach(function(q){j+=q+(t.spaceBetween?t.spaceBetween:0)}),j-=t.spaceBetween,j<i){var fe=(i-j)/2;u.forEach(function(q,_){u[_]=q-fe}),f.forEach(function(q,_){f[_]=q+fe})}}h.extend(e,{slides:o,snapGrid:u,slidesGrid:f,slidesSizesGrid:p}),d!==l&&e.emit("slidesLengthChange"),u.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==z&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function nt(e){var t=this,r=[],i=0,a;if(typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed),t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){var s=t.activeIndex+a;if(s>t.slides.length)break;r.push(t.slides.eq(s)[0])}else r.push(t.slides.eq(t.activeIndex)[0]);for(a=0;a<r.length;a+=1)if(typeof r[a]<"u"){var n=r[a].offsetHeight;i=n>i?n:i}i&&t.$wrapperEl.css("height",i+"px")}function lt(){for(var e=this,t=e.slides,r=0;r<t.length;r+=1)t[r].swiperSlideOffset=e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop}function ot(e){e===void 0&&(e=this&&this.translate||0);var t=this,r=t.params,i=t.slides,a=t.rtlTranslate;if(i.length!==0){typeof i[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();var s=-e;a&&(s=e),i.removeClass(r.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var n=0;n<i.length;n+=1){var l=i[n],o=(s+(r.centeredSlides?t.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+r.spaceBetween);if(r.watchSlidesVisibility){var d=-(s-l.swiperSlideOffset),u=d+t.slidesSizesGrid[n],f=d>=0&&d<t.size-1||u>1&&u<=t.size||d<=0&&u>=t.size;f&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(n),i.eq(n).addClass(r.slideVisibleClass))}l.progress=a?-o:o}t.visibleSlides=w(t.visibleSlides)}}function dt(e){e===void 0&&(e=this&&this.translate||0);var t=this,r=t.params,i=t.maxTranslate()-t.minTranslate(),a=t.progress,s=t.isBeginning,n=t.isEnd,l=s,o=n;i===0?(a=0,s=!0,n=!0):(a=(e-t.minTranslate())/i,s=a<=0,n=a>=1),h.extend(t,{progress:a,isBeginning:s,isEnd:n}),(r.watchSlidesProgress||r.watchSlidesVisibility)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),n&&!o&&t.emit("reachEnd toEdge"),(l&&!s||o&&!n)&&t.emit("fromEdge"),t.emit("progress",a)}function ut(){var e=this,t=e.slides,r=e.params,i=e.$wrapperEl,a=e.activeIndex,s=e.realIndex,n=e.virtual&&r.virtual.enabled;t.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass);var l;n?l=e.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+a+'"]'):l=t.eq(a),l.addClass(r.slideActiveClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var o=l.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&o.length===0&&(o=t.eq(0),o.addClass(r.slideNextClass));var d=l.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&d.length===0&&(d=t.eq(-1),d.addClass(r.slidePrevClass)),r.loop&&(o.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),d.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass))}function ft(e){var t=this,r=t.rtlTranslate?t.translate:-t.translate,i=t.slidesGrid,a=t.snapGrid,s=t.params,n=t.activeIndex,l=t.realIndex,o=t.snapIndex,d=e,u;if(typeof d>"u"){for(var f=0;f<i.length;f+=1)typeof i[f+1]<"u"?r>=i[f]&&r<i[f+1]-(i[f+1]-i[f])/2?d=f:r>=i[f]&&r<i[f+1]&&(d=f+1):r>=i[f]&&(d=f);s.normalizeSlideIndex&&(d<0||typeof d>"u")&&(d=0)}if(a.indexOf(r)>=0?u=a.indexOf(r):u=Math.floor(d/s.slidesPerGroup),u>=a.length&&(u=a.length-1),d===n){u!==o&&(t.snapIndex=u,t.emit("snapIndexChange"));return}var p=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);h.extend(t,{snapIndex:u,realIndex:p,previousIndex:n,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==p&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function pt(e){var t=this,r=t.params,i=w(e.target).closest("."+r.slideClass)[0],a=!1;if(i)for(var s=0;s<t.slides.length;s+=1)t.slides[s]===i&&(a=!0);if(i&&a)t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(w(i).attr("data-swiper-slide-index"),10):t.clickedIndex=w(i).index();else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}r.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var ct={updateSize:at,updateSlides:st,updateAutoHeight:nt,updateSlidesOffset:lt,updateSlidesProgress:ot,updateProgress:dt,updateSlidesClasses:ut,updateActiveIndex:ft,updateClickedSlide:pt};function vt(e){e===void 0&&(e=this.isHorizontal()?"x":"y");var t=this,r=t.params,i=t.rtlTranslate,a=t.translate,s=t.$wrapperEl;if(r.virtualTranslate)return i?-a:a;var n=h.getTranslate(s[0],e);return i&&(n=-n),n||0}function ht(e,t){var r=this,i=r.rtlTranslate,a=r.params,s=r.$wrapperEl,n=r.progress,l=0,o=0,d=0;r.isHorizontal()?l=i?-e:e:o=e,a.roundLengths&&(l=Math.floor(l),o=Math.floor(o)),a.virtualTranslate||(g.transforms3d?s.transform("translate3d("+l+"px, "+o+"px, "+d+"px)"):s.transform("translate("+l+"px, "+o+"px)")),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?l:o;var u,f=r.maxTranslate()-r.minTranslate();f===0?u=0:u=(e-r.minTranslate())/f,u!==n&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function mt(){return-this.snapGrid[0]}function gt(){return-this.snapGrid[this.snapGrid.length-1]}var wt={getTranslate:vt,setTranslate:ht,minTranslate:mt,maxTranslate:gt};function Tt(e,t){var r=this;r.$wrapperEl.transition(e),r.emit("setTransition",e,t)}function Et(e,t){e===void 0&&(e=!0);var r=this,i=r.activeIndex,a=r.params,s=r.previousIndex;a.autoHeight&&r.updateAutoHeight();var n=t;if(n||(i>s?n="next":i<s?n="prev":n="reset"),r.emit("transitionStart"),e&&i!==s){if(n==="reset"){r.emit("slideResetTransitionStart");return}r.emit("slideChangeTransitionStart"),n==="next"?r.emit("slideNextTransitionStart"):r.emit("slidePrevTransitionStart")}}function bt(e,t){e===void 0&&(e=!0);var r=this,i=r.activeIndex,a=r.previousIndex;r.animating=!1,r.setTransition(0);var s=t;if(s||(i>a?s="next":i<a?s="prev":s="reset"),r.emit("transitionEnd"),e&&i!==a){if(s==="reset"){r.emit("slideResetTransitionEnd");return}r.emit("slideChangeTransitionEnd"),s==="next"?r.emit("slideNextTransitionEnd"):r.emit("slidePrevTransitionEnd")}}var yt={setTransition:Tt,transitionStart:Et,transitionEnd:bt};function St(e,t,r,i){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),r===void 0&&(r=!0);var a=this,s=e;s<0&&(s=0);var n=a.params,l=a.snapGrid,o=a.slidesGrid,d=a.previousIndex,u=a.activeIndex,f=a.rtlTranslate;if(a.animating&&n.preventInteractionOnTransition)return!1;var p=Math.floor(s/n.slidesPerGroup);p>=l.length&&(p=l.length-1),(u||n.initialSlide||0)===(d||0)&&r&&a.emit("beforeSlideChangeStart");var c=-l[p];if(a.updateProgress(c),n.normalizeSlideIndex)for(var m=0;m<o.length;m+=1)-Math.floor(c*100)>=Math.floor(o[m]*100)&&(s=m);if(a.initialized&&s!==u&&(!a.allowSlideNext&&c<a.translate&&c<a.minTranslate()||!a.allowSlidePrev&&c>a.translate&&c>a.maxTranslate()&&(u||0)!==s))return!1;var S;return s>u?S="next":s<u?S="prev":S="reset",f&&-c===a.translate||!f&&c===a.translate?(a.updateActiveIndex(s),n.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),n.effect!=="slide"&&a.setTranslate(c),S!=="reset"&&(a.transitionStart(r,S),a.transitionEnd(r,S)),!1):(t===0||!g.transition?(a.setTransition(0),a.setTranslate(c),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(r,S),a.transitionEnd(r,S)):(a.setTransition(t),a.setTranslate(c),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(r,S),a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(T){!a||a.destroyed||T.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,S))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd))),!0)}function xt(e,t,r,i){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),r===void 0&&(r=!0);var a=this,s=e;return a.params.loop&&(s+=a.loopedSlides),a.slideTo(s,t,r,i)}function Ct(e,t,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);var i=this,a=i.params,s=i.animating;return a.loop?s?!1:(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+a.slidesPerGroup,e,t,r)):i.slideTo(i.activeIndex+a.slidesPerGroup,e,t,r)}function Mt(e,t,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);var i=this,a=i.params,s=i.animating,n=i.snapGrid,l=i.slidesGrid,o=i.rtlTranslate;if(a.loop){if(s)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}var d=o?i.translate:-i.translate;function u(T){return T<0?-Math.floor(Math.abs(T)):Math.floor(T)}var f=u(d),p=n.map(function(T){return u(T)}),c=l.map(function(T){return u(T)}),m=n[p.indexOf(f)],S=n[p.indexOf(f)-1],z;return typeof S<"u"&&(z=l.indexOf(S),z<0&&(z=i.activeIndex-1)),i.slideTo(z,e,t,r)}function zt(e,t,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);var i=this;return i.slideTo(i.activeIndex,e,t,r)}function $t(e,t,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);var i=this,a=i.activeIndex,s=Math.floor(a/i.params.slidesPerGroup);if(s<i.snapGrid.length-1){var n=i.rtlTranslate?i.translate:-i.translate,l=i.snapGrid[s],o=i.snapGrid[s+1];n-l>(o-l)/2&&(a=i.params.slidesPerGroup)}return i.slideTo(a,e,t,r)}function Pt(){var e=this,t=e.params,r=e.$wrapperEl,i=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView,a=e.clickedIndex,s;if(t.loop){if(e.animating)return;s=parseInt(w(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-i/2||a>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),a=r.children("."+t.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.'+t.slideDuplicateClass+")").eq(0).index(),h.nextTick(function(){e.slideTo(a)})):e.slideTo(a):a>e.slides.length-i?(e.loopFix(),a=r.children("."+t.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.'+t.slideDuplicateClass+")").eq(0).index(),h.nextTick(function(){e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var Lt={slideTo:St,slideToLoop:xt,slideNext:Ct,slidePrev:Mt,slideReset:zt,slideToClosest:$t,slideToClickedSlide:Pt};function kt(){var e=this,t=e.params,r=e.$wrapperEl;r.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var i=r.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var a=t.slidesPerGroup-i.length%t.slidesPerGroup;if(a!==t.slidesPerGroup){for(var s=0;s<a;s+=1){var n=w(E.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);r.append(n)}i=r.children("."+t.slideClass)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=i.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>i.length&&(e.loopedSlides=i.length);var l=[],o=[];i.each(function(d,u){var f=w(u);d<e.loopedSlides&&o.push(u),d<i.length&&d>=i.length-e.loopedSlides&&l.push(u),f.attr("data-swiper-slide-index",d)});for(var s=0;s<o.length;s+=1)r.append(w(o[s].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var s=l.length-1;s>=0;s-=1)r.prepend(w(l[s].cloneNode(!0)).addClass(t.slideDuplicateClass))}function Dt(){var e=this,t=e.params,r=e.activeIndex,i=e.slides,a=e.loopedSlides,s=e.allowSlidePrev,n=e.allowSlideNext,l=e.snapGrid,o=e.rtlTranslate,d;e.allowSlidePrev=!0,e.allowSlideNext=!0;var u=-l[r],f=u-e.getTranslate();if(r<a){d=i.length-a*3+r,d+=a;var p=e.slideTo(d,0,!1,!0);p&&f!==0&&e.setTranslate((o?-e.translate:e.translate)-f)}else if(t.slidesPerView==="auto"&&r>=a*2||r>=i.length-a){d=-i.length+r+a,d+=a;var p=e.slideTo(d,0,!1,!0);p&&f!==0&&e.setTranslate((o?-e.translate:e.translate)-f)}e.allowSlidePrev=s,e.allowSlideNext=n}function It(){var e=this,t=e.$wrapperEl,r=e.params,i=e.slides;t.children("."+r.slideClass+"."+r.slideDuplicateClass+",."+r.slideClass+"."+r.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}var Ot={loopCreate:kt,loopFix:Dt,loopDestroy:It};function Gt(e){var t=this;if(!(g.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var r=t.el;r.style.cursor="move",r.style.cursor=e?"-webkit-grabbing":"-webkit-grab",r.style.cursor=e?"-moz-grabbin":"-moz-grab",r.style.cursor=e?"grabbing":"grab"}}function Xt(){var e=this;g.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var At={setGrabCursor:Gt,unsetGrabCursor:Xt};function Yt(e){var t=this,r=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),typeof e=="object"&&"length"in e)for(var a=0;a<e.length;a+=1)e[a]&&r.append(e[a]);else r.append(e);i.loop&&t.loopCreate(),i.observer&&g.observer||t.update()}function Bt(e){var t=this,r=t.params,i=t.$wrapperEl,a=t.activeIndex;r.loop&&t.loopDestroy();var s=a+1;if(typeof e=="object"&&"length"in e){for(var n=0;n<e.length;n+=1)e[n]&&i.prepend(e[n]);s=a+e.length}else i.prepend(e);r.loop&&t.loopCreate(),r.observer&&g.observer||t.update(),t.slideTo(s,0,!1)}function Ht(e,t){var r=this,i=r.$wrapperEl,a=r.params,s=r.activeIndex,n=s;a.loop&&(n-=r.loopedSlides,r.loopDestroy(),r.slides=i.children("."+a.slideClass));var l=r.slides.length;if(e<=0){r.prependSlide(t);return}if(e>=l){r.appendSlide(t);return}for(var o=n>e?n+1:n,d=[],u=l-1;u>=e;u-=1){var f=r.slides.eq(u);f.remove(),d.unshift(f)}if(typeof t=="object"&&"length"in t){for(var u=0;u<t.length;u+=1)t[u]&&i.append(t[u]);o=n>e?n+t.length:n}else i.append(t);for(var u=0;u<d.length;u+=1)i.append(d[u]);a.loop&&r.loopCreate(),a.observer&&g.observer||r.update(),a.loop?r.slideTo(o+r.loopedSlides,0,!1):r.slideTo(o,0,!1)}function Vt(e){var t=this,r=t.params,i=t.$wrapperEl,a=t.activeIndex,s=a;r.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=i.children("."+r.slideClass));var n=s,l;if(typeof e=="object"&&"length"in e){for(var o=0;o<e.length;o+=1)l=e[o],t.slides[l]&&t.slides.eq(l).remove(),l<n&&(n-=1);n=Math.max(n,0)}else l=e,t.slides[l]&&t.slides.eq(l).remove(),l<n&&(n-=1),n=Math.max(n,0);r.loop&&t.loopCreate(),r.observer&&g.observer||t.update(),r.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function Ft(){for(var e=this,t=[],r=0;r<e.slides.length;r+=1)t.push(r);e.removeSlide(t)}var Rt={appendSlide:Yt,prependSlide:Bt,addSlide:Ht,removeSlide:Vt,removeAllSlides:Ft},D=function(){var t=v.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:v.cordova||v.phonegap,phonegap:v.cordova||v.phonegap},i=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=t.match(/(Android);?[\s\/]+([\d.]+)?/),s=t.match(/(iPad).*OS\s([\d_]+)/),n=t.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(r.os="windows",r.osVersion=i[2],r.windows=!0),a&&!i&&(r.os="android",r.osVersion=a[2],r.android=!0,r.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(s||l||n)&&(r.os="ios",r.ios=!0),l&&!n&&(r.osVersion=l[2].replace(/_/g,"."),r.iphone=!0),s&&(r.osVersion=s[2].replace(/_/g,"."),r.ipad=!0),n&&(r.osVersion=n[3]?n[3].replace(/_/g,"."):null,r.iphone=!0),r.ios&&r.osVersion&&t.indexOf("Version/")>=0&&r.osVersion.split(".")[0]==="10"&&(r.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),r.desktop=!(r.os||r.android||r.webView),r.webView=(l||s||n)&&t.match(/.*AppleWebKit(?!.*Safari)/i),r.os&&r.os==="ios"){var o=r.osVersion.split("."),d=E.querySelector('meta[name="viewport"]');r.minimalUi=!r.webView&&(n||l)&&(o[0]*1===7?o[1]*1>=1:o[0]*1>7)&&d&&d.getAttribute("content").indexOf("minimal-ui")>=0}return r.pixelRatio=v.devicePixelRatio||1,r}();function Wt(e){var t=this,r=t.touchEventsData,i=t.params,a=t.touches;if(!(t.animating&&i.preventInteractionOnTransition)){var s=e;if(s.originalEvent&&(s=s.originalEvent),r.isTouchEvent=s.type==="touchstart",!(!r.isTouchEvent&&"which"in s&&s.which===3)&&!(!r.isTouchEvent&&"button"in s&&s.button>0)&&!(r.isTouched&&r.isMoved)){if(i.noSwiping&&w(s.target).closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0]){t.allowClick=!0;return}if(!(i.swipeHandler&&!w(s).closest(i.swipeHandler)[0])){a.currentX=s.type==="touchstart"?s.targetTouches[0].pageX:s.pageX,a.currentY=s.type==="touchstart"?s.targetTouches[0].pageY:s.pageY;var n=a.currentX,l=a.currentY,o=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,d=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!(o&&(n<=d||n>=v.screen.width-d))){if(h.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=n,a.startY=l,r.touchStartTime=h.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1),s.type!=="touchstart"){var u=!0;w(s.target).is(r.formElements)&&(u=!1),E.activeElement&&w(E.activeElement).is(r.formElements)&&E.activeElement!==s.target&&E.activeElement.blur();var f=u&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||f)&&s.preventDefault()}t.emit("touchStart",s)}}}}}function qt(e){var t=this,r=t.touchEventsData,i=t.params,a=t.touches,s=t.rtlTranslate,n=e;if(n.originalEvent&&(n=n.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",n);return}if(!(r.isTouchEvent&&n.type==="mousemove")){var l=n.type==="touchmove"?n.targetTouches[0].pageX:n.pageX,o=n.type==="touchmove"?n.targetTouches[0].pageY:n.pageY;if(n.preventedByNestedSwiper){a.startX=l,a.startY=o;return}if(!t.allowTouchMove){t.allowClick=!1,r.isTouched&&(h.extend(a,{startX:l,startY:o,currentX:l,currentY:o}),r.touchStartTime=h.now());return}if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop){if(t.isVertical()){if(o<a.startY&&t.translate<=t.maxTranslate()||o>a.startY&&t.translate>=t.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(l<a.startX&&t.translate<=t.maxTranslate()||l>a.startX&&t.translate>=t.minTranslate())return}if(r.isTouchEvent&&E.activeElement&&n.target===E.activeElement&&w(n.target).is(r.formElements)){r.isMoved=!0,t.allowClick=!1;return}if(r.allowTouchCallbacks&&t.emit("touchMove",n),!(n.targetTouches&&n.targetTouches.length>1)){a.currentX=l,a.currentY=o;var d=a.currentX-a.startX,u=a.currentY-a.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(u,2))<t.params.threshold)){if(typeof r.isScrolling>"u"){var f=void 0;t.isHorizontal()&&a.currentY===a.startY||t.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:d*d+u*u>=25&&(f=Math.atan2(Math.abs(u),Math.abs(d))*180/Math.PI,r.isScrolling=t.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",n),typeof r.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(r.startMoving){t.allowClick=!1,n.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&n.stopPropagation(),r.isMoved||(i.loop&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,i.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",n)),t.emit("sliderMove",n),r.isMoved=!0;var p=t.isHorizontal()?d:u;a.diff=p,p*=i.touchRatio,s&&(p=-p),t.swipeDirection=p>0?"prev":"next",r.currentTranslate=p+r.startTranslate;var c=!0,m=i.resistanceRatio;if(i.touchReleaseOnEdges&&(m=0),p>0&&r.currentTranslate>t.minTranslate()?(c=!1,i.resistance&&(r.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+r.startTranslate+p,m))):p<0&&r.currentTranslate<t.maxTranslate()&&(c=!1,i.resistance&&(r.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-r.startTranslate-p,m))),c&&(n.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(p)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=t.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(r.velocities.length===0&&r.velocities.push({position:a[t.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:a[t.isHorizontal()?"currentX":"currentY"],time:h.now()})),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}}}}}function Nt(e){var t=this,r=t.touchEventsData,i=t.params,a=t.touches,s=t.rtlTranslate,n=t.$wrapperEl,l=t.slidesGrid,o=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),r.allowTouchCallbacks&&t.emit("touchEnd",d),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);var u=h.now(),f=u-r.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap",d),f<300&&u-r.lastClickTime>300&&(r.clickTimeout&&clearTimeout(r.clickTimeout),r.clickTimeout=h.nextTick(function(){!t||t.destroyed||t.emit("click",d)},300)),f<300&&u-r.lastClickTime<300&&(r.clickTimeout&&clearTimeout(r.clickTimeout),t.emit("doubleTap",d))),r.lastClickTime=h.now(),h.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||a.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;var p;if(i.followFinger?p=s?t.translate:-t.translate:p=-r.currentTranslate,i.freeMode){if(p<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(p>-t.maxTranslate()){t.slides.length<o.length?t.slideTo(o.length-1):t.slideTo(t.slides.length-1);return}if(i.freeModeMomentum){if(r.velocities.length>1){var c=r.velocities.pop(),m=r.velocities.pop(),S=c.position-m.position,z=c.time-m.time;t.velocity=S/z,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(z>150||h.now()-c.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,r.velocities.length=0;var T=1e3*i.freeModeMomentumRatio,C=t.velocity*T,y=t.translate+C;s&&(y=-y);var I=!1,$,x=Math.abs(t.velocity)*20*i.freeModeMomentumBounceRatio,L=void 0;if(y<t.maxTranslate())i.freeModeMomentumBounce?(y+t.maxTranslate()<-x&&(y=t.maxTranslate()-x),$=t.maxTranslate(),I=!0,r.allowMomentumBounce=!0):y=t.maxTranslate(),i.loop&&i.centeredSlides&&(L=!0);else if(y>t.minTranslate())i.freeModeMomentumBounce?(y-t.minTranslate()>x&&(y=t.minTranslate()+x),$=t.minTranslate(),I=!0,r.allowMomentumBounce=!0):y=t.minTranslate(),i.loop&&i.centeredSlides&&(L=!0);else if(i.freeModeSticky){for(var O=void 0,G=0;G<o.length;G+=1)if(o[G]>-y){O=G;break}Math.abs(o[O]-y)<Math.abs(o[O-1]-y)||t.swipeDirection==="next"?y=o[O]:y=o[O-1],y=-y}if(L&&t.once("transitionEnd",function(){t.loopFix()}),t.velocity!==0)s?T=Math.abs((-y-t.translate)/t.velocity):T=Math.abs((y-t.translate)/t.velocity);else if(i.freeModeSticky){t.slideToClosest();return}i.freeModeMomentumBounce&&I?(t.updateProgress($),t.setTransition(T),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,n.transitionEnd(function(){!t||t.destroyed||!r.allowMomentumBounce||(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate($),n.transitionEnd(function(){!t||t.destroyed||t.transitionEnd()}))})):t.velocity?(t.updateProgress(y),t.setTransition(T),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,n.transitionEnd(function(){!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky){t.slideToClosest();return}(!i.freeModeMomentum||f>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses());return}for(var b=0,k=t.slidesSizesGrid[0],P=0;P<l.length;P+=i.slidesPerGroup)typeof l[P+i.slidesPerGroup]<"u"?p>=l[P]&&p<l[P+i.slidesPerGroup]&&(b=P,k=l[P+i.slidesPerGroup]-l[P]):p>=l[P]&&(b=P,k=l[l.length-1]-l[l.length-2]);var X=(p-l[b])/k;if(f>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(X>=i.longSwipesRatio?t.slideTo(b+i.slidesPerGroup):t.slideTo(b)),t.swipeDirection==="prev"&&(X>1-i.longSwipesRatio?t.slideTo(b+i.slidesPerGroup):t.slideTo(b))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&t.slideTo(b+i.slidesPerGroup),t.swipeDirection==="prev"&&t.slideTo(b)}}function he(){var e=this,t=e.params,r=e.el;if(!(r&&r.offsetWidth===0)){t.breakpoints&&e.setBreakpoint();var i=e.allowSlideNext,a=e.allowSlidePrev,s=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var n=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=a,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}}function jt(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Ut(){var e=this,t=e.params,r=e.touchEvents,i=e.el,a=e.wrapperEl;e.onTouchStart=Wt.bind(e),e.onTouchMove=qt.bind(e),e.onTouchEnd=Nt.bind(e),e.onClick=jt.bind(e);var s=t.touchEventsTarget==="container"?i:a,n=!!t.nested;{if(!g.touch&&(g.pointerEvents||g.prefixedPointerEvents))s.addEventListener(r.start,e.onTouchStart,!1),E.addEventListener(r.move,e.onTouchMove,n),E.addEventListener(r.end,e.onTouchEnd,!1);else{if(g.touch){var l=r.start==="touchstart"&&g.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;s.addEventListener(r.start,e.onTouchStart,l),s.addEventListener(r.move,e.onTouchMove,g.passiveListener?{passive:!1,capture:n}:n),s.addEventListener(r.end,e.onTouchEnd,l)}(t.simulateTouch&&!D.ios&&!D.android||t.simulateTouch&&!g.touch&&D.ios)&&(s.addEventListener("mousedown",e.onTouchStart,!1),E.addEventListener("mousemove",e.onTouchMove,n),E.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.addEventListener("click",e.onClick,!0)}e.on(D.ios||D.android?"resize orientationchange observerUpdate":"resize observerUpdate",he,!0)}function Zt(){var e=this,t=e.params,r=e.touchEvents,i=e.el,a=e.wrappe