/**
* swiper 4.1.0
* most modern mobile touch slider and framework with hardware accelerated transitions
* http://www.idangero.us/swiper/
*
* copyright 2014-2018 vladimir kharlampidi
*
* released under the mit license
*
* released on: january 13, 2018
*/
! function (e, t) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.swiper = t()
}(this, function () {
"use strict";
var e = function (e) {
for (var t = 0; t < e.length; t += 1) this[t] = e[t];
return this.length = e.length, this
};
function t(t, i) {
var s = [],
a = 0;
if (t && !i && t instanceof e) return t;
if (t)
if ("string" == typeof t) {
var r, n, o = t.trim();
if (o.indexof("<") >= 0 && o.indexof(">") >= 0) {
var l = "div";
for (0 === o.indexof("
:~]/) ? (i || document).queryselectorall(t.trim()) : [document.getelementbyid(t.trim().split("#")[1])], a = 0; a < r.length; a += 1) r[a] && s.push(r[a])
} else if (t.nodetype || t === window || t === document) s.push(t);
else if (t.length > 0 && t[0].nodetype)
for (a = 0; a < t.length; a += 1) s.push(t[a]);
return new e(s)
}
function i(e) {
for (var t = [], i = 0; i < e.length; i += 1) - 1 === t.indexof(e[i]) && t.push(e[i]);
return t
}
t.fn = e.prototype, t.class = e, t.dom7 = e;
"resize scroll".split(" ");
var s = {
addclass: function (e) {
if (void 0 === e) return this;
for (var t = e.split(" "), i = 0; i < t.length; i += 1)
for (var s = 0; s < this.length; s += 1) void 0 !== this[s].classlist && this[s].classlist.add(t[i]);
return this
},
removeclass: function (e) {
for (var t = e.split(" "), i = 0; i < t.length; i += 1)
for (var s = 0; s < this.length; s += 1) void 0 !== this[s].classlist && this[s].classlist.remove(t[i]);
return this
},
hasclass: function (e) {
return !!this[0] && this[0].classlist.contains(e)
},
toggleclass: function (e) {
for (var t = e.split(" "), i = 0; i < t.length; i += 1)
for (var s = 0; s < this.length; s += 1) void 0 !== this[s].classlist && this[s].classlist.toggle(t[i]);
return this
},
attr: function (e, t) {
var i = arguments;
if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getattribute(e) : void 0;
for (var s = 0; s < this.length; s += 1)
if (2 === i.length) this[s].setattribute(e, t);
else
for (var a in e) this[s][a] = e[a], this[s].setattribute(a, e[a]);
return this
},
removeattr: function (e) {
for (var t = 0; t < this.length; t += 1) this[t].removeattribute(e);
return this
},
data: function (e, t) {
var i;
if (void 0 !== t) {
for (var s = 0; s < this.length; s += 1)(i = this[s]).dom7elementdatastorage || (i.dom7elementdatastorage = {}), i.dom7elementdatastorage[e] = t;
return this
}
if (i = this[0]) {
if (i.dom7elementdatastorage && e in i.dom7elementdatastorage) return i.dom7elementdatastorage[e];
var a = i.getattribute("data-" + e);
return a || void 0
}
},
transform: function (e) {
for (var t = 0; t < this.length; t += 1) {
var i = this[t].style;
i.webkittransform = e, i.transform = e
}
return this
},
transition: function (e) {
"string" != typeof e && (e += "ms");
for (var t = 0; t < this.length; t += 1) {
var i = this[t].style;
i.webkittransitionduration = e, i.transitionduration = e
}
return this
},
on: function () {
for (var e = [], i = arguments.length; i--;) e[i] = arguments[i];
var s, a = e[0],
r = e[1],
n = e[2],
o = e[3];
function l(e) {
var i = e.target;
if (i) {
var s = e.target.dom7eventdata || [];
if (s.unshift(e), t(i).is(r)) n.apply(i, s);
else
for (var a = t(i).parents(), o = 0; o < a.length; o += 1) t(a[o]).is(r) && n.apply(a[o], s)
}
}
function d(e) {
var t = e && e.target ? e.target.dom7eventdata || [] : [];
t.unshift(e), n.apply(this, t)
}
"function" == typeof e[1] && (a = (s = e)[0], n = s[1], o = s[2], r = void 0), o || (o = !1);
for (var h, p = a.split(" "), c = 0; c < this.length; c += 1) {
var u = this[c];
if (r)
for (h = 0; h < p.length; h += 1) u.dom7livelisteners || (u.dom7livelisteners = []), u.dom7livelisteners.push({
type: a,
listener: n,
proxylistener: l
}), u.addeventlistener(p[h], l, o);
else
for (h = 0; h < p.length; h += 1) u.dom7listeners || (u.dom7listeners = []), u.dom7listeners.push({
type: a,
listener: n,
proxylistener: d
}), u.addeventlistener(p[h], d, o)
}
return this
},
off: function () {
for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
var i, s = e[0],
a = e[1],
r = e[2],
n = e[3];
"function" == typeof e[1] && (s = (i = e)[0], r = i[1], n = i[2], a = void 0), n || (n = !1);
for (var o = s.split(" "), l = 0; l < o.length; l += 1)
for (var d = 0; d < this.length; d += 1) {
var h = this[d];
if (a) {
if (h.dom7livelisteners)
for (var p = 0; p < h.dom7livelisteners.length; p += 1) r ? h.dom7livelisteners[p].listener === r && h.removeeventlistener(o[l], h.dom7livelisteners[p].proxylistener, n) : h.dom7livelisteners[p].type === o[l] && h.removeeventlistener(o[l], h.dom7livelisteners[p].proxylistener, n)
} else if (h.dom7listeners)
for (var c = 0; c < h.dom7listeners.length; c += 1) r ? h.dom7listeners[c].listener === r && h.removeeventlistener(o[l], h.dom7listeners[c].proxylistener, n) : h.dom7listeners[c].type === o[l] && h.removeeventlistener(o[l], h.dom7listeners[c].proxylistener, n)
}
return this
},
trigger: function () {
for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
for (var i = e[0].split(" "), s = e[1], a = 0; a < i.length; a += 1)
for (var r = 0; r < this.length; r += 1) {
var n = void 0;
try {
n = new window.customevent(i[a], {
detail: s,
bubbles: !0,
cancelable: !0
})
} catch (e) {
(n = document.createevent("event")).initevent(i[a], !0, !0), n.detail = s
}
this[r].dom7eventdata = e.filter(function (e, t) {
return t > 0
}), this[r].dispatchevent(n), this[r].dom7eventdata = [], delete this[r].dom7eventdata
}
return this
},
transitionend: function (e) {
var t, i = ["webkittransitionend", "transitionend"],
s = this;
function a(r) {
if (r.target === this)
for (e.call(this, r), t = 0; t < i.length; t += 1) s.off(i[t], a)
}
if (e)
for (t = 0; t < i.length; t += 1) s.on(i[t], a);
return this
},
outerwidth: function (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
},
outerheight: function (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
},
offset: function () {
if (this.length > 0) {
var e = this[0],
t = e.getboundingclientrect(),
i = document.body,
s = e.clienttop || i.clienttop || 0,
a = e.clientleft || i.clientleft || 0,
r = e === window ? window.scrolly : e.scrolltop,
n = e === window ? window.scrollx : e.scrollleft;
return {
top: t.top + r - s,
left: t.left + n - a
}
}
return null
},
css: function (e, t) {
var i;
if (1 === arguments.length) {
if ("string" != typeof e) {
for (i = 0; i < this.length; i += 1)
for (var s in e) this[i].style[s] = e[s];
return this
}
if (this[0]) return window.getcomputedstyle(this[0], null).getpropertyvalue(e)
}
if (2 === arguments.length && "string" == typeof e) {
for (i = 0; i < this.length; i += 1) this[i].style[e] = t;
return this
}
return this
},
each: function (e) {
if (!e) return this;
for (var t = 0; t < this.length; t += 1)
if (!1 === e.call(this[t], t, this[t])) return this;
return this
},
html: function (e) {
if (void 0 === e) return this[0] ? this[0].innerhtml : void 0;
for (var t = 0; t < this.length; t += 1) this[t].innerhtml = e;
return this
},
text: function (e) {
if (void 0 === e) return this[0] ? this[0].textcontent.trim() : null;
for (var t = 0; t < this.length; t += 1) this[t].textcontent = e;
return this
},
is: function (i) {
var s, a, r = this[0];
if (!r || void 0 === i) return !1;
if ("string" == typeof i) {
if (r.matches) return r.matches(i);
if (r.webkitmatchesselector) return r.webkitmatchesselector(i);
if (r.msmatchesselector) return r.msmatchesselector(i);
for (s = t(i), a = 0; a < s.length; a += 1)
if (s[a] === r) return !0;
return !1
}
if (i === document) return r === document;
if (i === window) return r === window;
if (i.nodetype || i instanceof e) {
for (s = i.nodetype ? [i] : i, a = 0; a < s.length; a += 1)
if (s[a] === r) return !0;
return !1
}
return !1
},
index: function () {
var e, t = this[0];
if (t) {
for (e = 0; null !== (t = t.previoussibling);) 1 === t.nodetype && (e += 1);
return e
}
},
eq: function (t) {
if (void 0 === t) return this;
var i, s = this.length;
return new e(t > s - 1 ? [] : t < 0 ? (i = s + t) < 0 ? [] : [this[i]] : [this[t]])
},
append: function () {
for (var t, i = [], s = arguments.length; s--;) i[s] = arguments[s];
for (var a = 0; a < i.length; a += 1) {
t = i[a];
for (var r = 0; r < this.length; r += 1)
if ("string" == typeof t) {
var n = document.createelement("div");
for (n.innerhtml = t; n.firstchild;) this[r].appendchild(n.firstchild)
} else if (t instanceof e)
for (var o = 0; o < t.length; o += 1) this[r].appendchild(t[o]);
else this[r].appendchild(t)
}
return this
},
prepend: function (t) {
var i, s;
for (i = 0; i < this.length; i += 1)
if ("string" == typeof t) {
var a = document.createelement("div");
for (a.innerhtml = t, s = a.childnodes.length - 1; s >= 0; s -= 1) this[i].insertbefore(a.childnodes[s], this[i].childnodes[0])
} else if (t instanceof e)
for (s = 0; s < t.length; s += 1) this[i].insertbefore(t[s], this[i].childnodes[0]);
else this[i].insertbefore(t, this[i].childnodes[0]);
return this
},
next: function (i) {
return this.length > 0 ? i ? this[0].nextelementsibling && t(this[0].nextelementsibling).is(i) ? new e([this[0].nextelementsibling]) : new e([]) : this[0].nextelementsibling ? new e([this[0].nextelementsibling]) : new e([]) : new e([])
},
nextall: function (i) {
var s = [],
a = this[0];
if (!a) return new e([]);
for (; a.nextelementsibling;) {
var r = a.nextelementsibling;
i ? t(r).is(i) && s.push(r) : s.push(r), a = r
}
return new e(s)
},
prev: function (i) {
if (this.length > 0) {
var s = this[0];
return i ? s.previouselementsibling && t(s.previouselementsibling).is(i) ? new e([s.previouselementsibling]) : new e([]) : s.previouselementsibling ? new e([s.previouselementsibling]) : new e([])
}
return new e([])
},
prevall: function (i) {
var s = [],
a = this[0];
if (!a) return new e([]);
for (; a.previouselementsibling;) {
var r = a.previouselementsibling;
i ? t(r).is(i) && s.push(r) : s.push(r), a = r
}
return new e(s)
},
parent: function (e) {
for (var s = [], a = 0; a < this.length; a += 1) null !== this[a].parentnode && (e ? t(this[a].parentnode).is(e) && s.push(this[a].parentnode) : s.push(this[a].parentnode));
return t(i(s))
},
parents: function (e) {
for (var s = [], a = 0; a < this.length; a += 1)
for (var r = this[a].parentnode; r;) e ? t(r).is(e) && s.push(r) : s.push(r), r = r.parentnode;
return t(i(s))
},
closest: function (t) {
var i = this;
return void 0 === t ? new e([]) : (i.is(t) || (i = i.parents(t).eq(0)), i)
},
find: function (t) {
for (var i = [], s = 0; s < this.length; s += 1)
for (var a = this[s].queryselectorall(t), r = 0; r < a.length; r += 1) i.push(a[r]);
return new e(i)
},
children: function (s) {
for (var a = [], r = 0; r < this.length; r += 1)
for (var n = this[r].childnodes, o = 0; o < n.length; o += 1) s ? 1 === n[o].nodetype && t(n[o]).is(s) && a.push(n[o]) : 1 === n[o].nodetype && a.push(n[o]);
return new e(i(a))
},
remove: function () {
for (var e = 0; e < this.length; e += 1) this[e].parentnode && this[e].parentnode.removechild(this[e]);
return this
},
add: function () {
for (var e = [], i = arguments.length; i--;) e[i] = arguments[i];
var s, a;
for (s = 0; s < e.length; s += 1) {
var r = t(e[s]);
for (a = 0; a < r.length; a += 1) this[this.length] = r[a], this.length += 1
}
return this
},
styles: function () {
return this[0] ? window.getcomputedstyle(this[0], null) : {}
}
};
object.keys(s).foreach(function (e) {
t.fn[e] = s[e]
});
var a, r, n, o = "undefined" == typeof window ? {
navigator: {
useragent: ""
},
location: {},
history: {},
addeventlistener: function () {},
removeeventlistener: function () {},
getcomputedstyle: function () {
return {}
},
image: function () {},
date: function () {},
screen: {}
} : window,
l = {
deleteprops: function (e) {
var t = e;
object.keys(t).foreach(function (e) {
try {
t[e] = null
} catch (e) {}
try {
delete t[e]
} catch (e) {}
})
},
nexttick: function (e, t) {
return void 0 === t && (t = 0), settimeout(e, t)
},
now: function () {
return date.now()
},
gettranslate: function (e, t) {
var i, s, a;
void 0 === t && (t = "x");
var r = o.getcomputedstyle(e, null);
return o.webkitcssmatrix ? ((s = r.transform || r.webkittransform).split(",").length > 6 && (s = s.split(", ").map(function (e) {
return e.replace(",", ".")
}).join(", ")), a = new o.webkitcssmatrix("none" === s ? "" : s)) : i = (a = r.moztransform || r.otransform || r.mstransform || r.mstransform || r.transform || r.getpropertyvalue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).tostring().split(","), "x" === t && (s = o.webkitcssmatrix ? a.m41 : 16 === i.length ? parsefloat(i[12]) : parsefloat(i[4])), "y" === t && (s = o.webkitcssmatrix ? a.m42 : 16 === i.length ? parsefloat(i[13]) : parsefloat(i[5])), s || 0
},
parseurlquery: function (e) {
var t, i, s, a, r = {},
n = e || o.location.href;
if ("string" == typeof n && n.length)
for (a = (i = (n = n.indexof("?") > -1 ? n.replace(/\s*\?/, "") : "").split("&").filter(function (e) {
return "" !== e
})).length, t = 0; t < a; t += 1) s = i[t].replace(/#\s+/g, "").split("="), r[decodeuricomponent(s[0])] = void 0 === s[1] ? void 0 : decodeuricomponent(s[1]) || "";
return r
},
isobject: function (e) {
return "object" == typeof e && null !== e && e.constructor && e.constructor === object
},
extend: function () {
for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
for (var i = object(e[0]), s = 1; s < e.length; s += 1) {
var a = e[s];
if (void 0 !== a && null !== a)
for (var r = object.keys(object(a)), n = 0, o = r.length; n < o; n += 1) {
var d = r[n],
h = object.getownpropertydescriptor(a, d);
void 0 !== h && h.enumerable && (l.isobject(i[d]) && l.isobject(a[d]) ? l.extend(i[d], a[d]) : !l.isobject(i[d]) && l.isobject(a[d]) ? (i[d] = {}, l.extend(i[d], a[d])) : i[d] = a[d])
}
}
return i
}
},
d = "undefined" == typeof document ? {
addeventlistener: function () {},
removeeventlistener: function () {},
activeelement: {
blur: function () {},
nodename: ""
},
queryselector: function () {
return {}
},
queryselectorall: function () {
return []
},
createelement: function () {
return {
style: {},
setattribute: function () {},
getelementsbytagname: function () {
return []
}
}
},
location: {
hash: ""
}
} : document,
h = (n = d.createelement("div"), {
touch: o.modernizr && !0 === o.modernizr.touch || !!("ontouchstart" in o || o.documenttouch && d instanceof o.documenttouch),
pointerevents: !(!o.navigator.pointerenabled && !o.pointerevent),
prefixedpointerevents: !!o.navigator.mspointerenabled,
transition: (r = n.style, "transition" in r || "webkittransition" in r || "moztransition" in r),
transforms3d: o.modernizr && !0 === o.modernizr.csstransforms3d || (a = n.style, "webkitperspective" in a || "mozperspective" in a || "operspective" in a || "msperspective" in a || "perspective" in a),
flexbox: function () {
for (var e = n.style, t = "alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "), i = 0; i < t.length; i += 1)
if (t[i] in e) return !0;
return !1
}(),
observer: "mutationobserver" in o || "webkitmutationobserver" in o,
passivelistener: function () {
var e = !1;
try {
var t = object.defineproperty({}, "passive", {
get: function () {
e = !0
}
});
o.addeventlistener("testpassivelistener", null, t)
} catch (e) {}
return e
}(),
gestures: "ongesturestart" in o
}),
p = function (e) {
void 0 === e && (e = {});
var t = this;
t.params = e, t.eventslisteners = {}, t.params && t.params.on && object.keys(t.params.on).foreach(function (e) {
t.on(e, t.params.on[e])
})
},
c = {
components: {
configurable: !0
}
};
p.prototype.on = function (e, t) {
var i = this;
return "function" != typeof t ? i : (e.split(" ").foreach(function (e) {
i.eventslisteners[e] || (i.eventslisteners[e] = []), i.eventslisteners[e].push(t)
}), i)
}, p.prototype.once = function (e, t) {
var i = this;
if ("function" != typeof t) return i;
return i.on(e, function s() {
for (var a = [], r = arguments.length; r--;) a[r] = arguments[r];
t.apply(i, a), i.off(e, s)
})
}, p.prototype.off = function (e, t) {
var i = this;
return e.split(" ").foreach(function (e) {
void 0 === t ? i.eventslisteners[e] = [] : i.eventslisteners[e].foreach(function (s, a) {
s === t && i.eventslisteners[e].splice(a, 1)
})
}), i
}, p.prototype.emit = function () {
for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
var i, s, a, r = this;
return r.eventslisteners ? ("string" == typeof e[0] || array.isarray(e[0]) ? (i = e[0], s = e.slice(1, e.length), a = r) : (i = e[0].events, s = e[0].data, a = e[0].context || r), (array.isarray(i) ? i : i.split(" ")).foreach(function (e) {
if (r.eventslisteners[e]) {
var t = [];
r.eventslisteners[e].foreach(function (e) {
t.push(e)
}), t.foreach(function (e) {
e.apply(a, s)
})
}
}), r) : r
}, p.prototype.usemodulesparams = function (e) {
var t = this;
t.modules && object.keys(t.modules).foreach(function (i) {
var s = t.modules[i];
s.params && l.extend(e, s.params)
})
}, p.prototype.usemodules = function (e) {
void 0 === e && (e = {});
var t = this;
t.modules && object.keys(t.modules).foreach(function (i) {
var s = t.modules[i],
a = e[i] || {};
s.instance && object.keys(s.instance).foreach(function (e) {
var i = s.instance[e];
t[e] = "function" == typeof i ? i.bind(t) : i
}), s.on && t.on && object.keys(s.on).foreach(function (e) {
t.on(e, s.on[e])
}), s.create && s.create.bind(t)(a)
})
}, c.components.set = function (e) {
this.use && this.use(e)
}, p.installmodule = function (e) {
for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1];
var s = this;
s.prototype.modules || (s.prototype.modules = {});
var a = e.name || object.keys(s.prototype.modules).length + "_" + l.now();
return s.prototype.modules[a] = e, e.proto && object.keys(e.proto).foreach(function (t) {
s.prototype[t] = e.proto[t]
}), e.static && object.keys(e.static).foreach(function (t) {
s[t] = e.static[t]
}), e.install && e.install.apply(s, t), s
}, p.use = function (e) {
for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1];
var s = this;
return array.isarray(e) ? (e.foreach(function (e) {
return s.installmodule(e)
}), s) : s.installmodule.apply(s, [e].concat(t))
}, object.defineproperties(p, c);
var u = {
updatesize: function () {
var e, t, i = this.$el;
e = void 0 !== this.params.width ? this.params.width : i[0].clientwidth, t = void 0 !== this.params.height ? this.params.height : i[0].clientheight, 0 === e && this.ishorizontal() || 0 === t && this.isvertical() || (e = e - parseint(i.css("padding-left"), 10) - parseint(i.css("padding-right"), 10), t = t - parseint(i.css("padding-top"), 10) - parseint(i.css("padding-bottom"), 10), l.extend(this, {
width: e,
height: t,
size: this.ishorizontal() ? e : t
}))
},
updateslides: function () {
var e = this.params,
t = this.$wrapperel,
i = this.size,
s = this.rtl,
a = this.wrongrtl,
r = t.children("." + this.params.slideclass),
n = this.virtual && e.virtual.enabled ? this.virtual.slides.length : r.length,
o = [],
d = [],
p = [],
c = e.slidesoffsetbefore;
"function" == typeof c && (c = e.slidesoffsetbefore.call(this));
var u = e.slidesoffsetafter;
"function" == typeof u && (u = e.slidesoffsetafter.call(this));
var f = n,
v = this.snapgrid.length,
m = this.snapgrid.length,
g = e.spacebetween,
b = -c,
w = 0,
y = 0;
if (void 0 !== i) {
var x, t;
"string" == typeof g && g.indexof("%") >= 0 && (g = parsefloat(g.replace("%", "")) / 100 * i), this.virtualsize = -g, s ? r.css({
marginleft: "",
margintop: ""
}) : r.css({
marginright: "",
marginbottom: ""
}), e.slidespercolumn > 1 && (x = math.floor(n / e.slidespercolumn) === n / this.params.slidespercolumn ? n : math.ceil(n / e.slidespercolumn) * e.slidespercolumn, "auto" !== e.slidesperview && "row" === e.slidespercolumnfill && (x = math.max(x, e.slidesperview * e.slidespercolumn)));
for (var e, s = e.slidespercolumn, c = x / s, m = c - (e.slidespercolumn * c - n), z = 0; z < n; z += 1) {
t = 0;
var p = r.eq(z);
if (e.slidespercolumn > 1) {
var k = void 0,
$ = void 0,
l = void 0;
"column" === e.slidespercolumnfill ? (l = z - ($ = math.floor(z / s)) * s, ($ > m || $ === m && l === s - 1) && (l += 1) >= s && (l = 0, $ += 1), k = $ + l * x / s, p.css({
"-webkit-box-ordinal-group": k,
"-moz-box-ordinal-group": k,
"-ms-flex-order": k,
"-webkit-order": k,
order: k
})) : $ = z - (l = math.floor(z / c)) * c, p.css("margin-" + (this.ishorizontal() ? "top" : "left"), 0 !== l && e.spacebetween && e.spacebetween + "px").attr("data-swiper-column", $).attr("data-swiper-row", l)
}
"none" !== p.css("display") && ("auto" === e.slidesperview ? (t = this.ishorizontal() ? p.outerwidth(!0) : p.outerheight(!0), e.roundlengths && (t = math.floor(t))) : (t = (i - (e.slidesperview - 1) * g) / e.slidesperview, e.roundlengths && (t = math.floor(t)), r[z] && (this.ishorizontal() ? r[z].style.width = t + "px" : r[z].style.height = t + "px")), r[z] && (r[z].swiperslidesize = t), p.push(t), e.centeredslides ? (b = b + t / 2 + w / 2 + g, 0 === w && 0 !== z && (b = b - i / 2 - g), 0 === z && (b = b - i / 2 - g), math.abs(b) < .001 && (b = 0), y % e.slidespergroup == 0 && o.push(b), d.push(b)) : (y % e.slidespergroup == 0 && o.push(b), d.push(b), b = b + t + g), this.virtualsize += t + g, w = t, y += 1)
}
if (this.virtualsize = math.max(this.virtualsize, i) + u, s && a && ("slide" === e.effect || "coverflow" === e.effect) && t.css({
width: this.virtualsize + e.spacebetween + "px"
}), h.flexbox && !e.setwrappersize || (this.ishorizontal() ? t.css({
width: this.virtualsize + e.spacebetween + "px"
}) : t.css({
height: this.virtualsize + e.spacebetween + "px"
})), e.slidespercolumn > 1 && (this.virtualsize = (t + e.spacebetween) * x, this.virtualsize = math.ceil(this.virtualsize / e.slidespercolumn) - e.spacebetween, this.ishorizontal() ? t.css({
width: this.virtualsize + e.spacebetween + "px"
}) : t.css({
height: this.virtualsize + e.spacebetween + "px"
}), e.centeredslides)) {
e = [];
for (var i = 0; i < o.length; i += 1) o[i] < this.virtualsize + o[0] && e.push(o[i]);
o = e
}
if (!e.centeredslides) {
e = [];
for (var d = 0; d < o.length; d += 1) o[d] <= this.virtualsize - i && e.push(o[d]);
o = e, math.floor(this.virtualsize - i) - math.floor(o[o.length - 1]) > 1 && o.push(this.virtualsize - i)
}
0 === o.length && (o = [0]), 0 !== e.spacebetween && (this.ishorizontal() ? s ? r.css({
marginleft: g + "px"
}) : r.css({
marginright: g + "px"
}) : r.css({
marginbottom: g + "px"
})), l.extend(this, {
slides: r,
snapgrid: o,
slidesgrid: d,
slidessizesgrid: p
}), n !== f && this.emit("slideslengthchange"), o.length !== v && (this.params.watchoverflow && this.checkoverflow(), this.emit("snapgridlengthchange")), d.length !== m && this.emit("slidesgridlengthchange"), (e.watchslidesprogress || e.watchslidesvisibility) && this.updateslidesoffset()
}
},
updateautoheight: function () {
var e, t = [],
i = 0;
if ("auto" !== this.params.slidesperview && this.params.slidesperview > 1)
for (e = 0; e < math.ceil(this.params.slidesperview); e += 1) {
var s = this.activeindex + e;
if (s > this.slides.length) break;
t.push(this.slides.eq(s)[0])
} else t.push(this.slides.eq(this.activeindex)[0]);
for (e = 0; e < t.length; e += 1)
if (void 0 !== t[e]) {
var a = t[e].offsetheight;
i = a > i ? a : i
} i && this.$wrapperel.css("height", i + "px")
},
updateslidesoffset: function () {
for (var e = this.slides, t = 0; t < e.length; t += 1) e[t].swiperslideoffset = this.ishorizontal() ? e[t].offsetleft : e[t].offsettop
},
updateslidesprogress: function (e) {
void 0 === e && (e = this.translate || 0);
var t = this.params,
i = this.slides,
s = this.rtl;
if (0 !== i.length) {
void 0 === i[0].swiperslideoffset && this.updateslidesoffset();
var a = -e;
s && (a = e), i.removeclass(t.slidevisibleclass);
for (var r = 0; r < i.length; r += 1) {
var n = i[r],
o = (a + (t.centeredslides ? this.mintranslate() : 0) - n.swiperslideoffset) / (n.swiperslidesize + t.spacebetween);
if (t.watchslidesvisibility) {
var l = -(a - n.swiperslideoffset),
d = l + this.slidessizesgrid[r];
(l >= 0 && l < this.size || d > 0 && d <= this.size || l <= 0 && d >= this.size) && i.eq(r).addclass(t.slidevisibleclass)
}
n.progress = s ? -o : o
}
}
},
updateprogress: function (e) {
void 0 === e && (e = this.translate || 0);
var t = this.params,
i = this.maxtranslate() - this.mintranslate(),
s = this.progress,
a = this.isbeginning,
r = this.isend,
n = a,
o = r;
0 === i ? (s = 0, a = !0, r = !0) : (a = (s = (e - this.mintranslate()) / i) <= 0, r = s >= 1), l.extend(this, {
progress: s,
isbeginning: a,
isend: r
}), (t.watchslidesprogress || t.watchslidesvisibility) && this.updateslidesprogress(e), a && !n && this.emit("reachbeginning toedge"), r && !o && this.emit("reachend toedge"), (n && !a || o && !r) && this.emit("fromedge"), this.emit("progress", s)
},
updateslidesclasses: function () {
var e, t = this.slides,
i = this.params,
s = this.$wrapperel,
a = this.activeindex,
r = this.realindex,
n = this.virtual && i.virtual.enabled;
t.removeclass(i.slideactiveclass + " " + i.slidenextclass + " " + i.slideprevclass + " " + i.slideduplicateactiveclass + " " + i.slideduplicatenextclass + " " + i.slideduplicateprevclass), (e = n ? this.$wrapperel.find("." + i.slideclass + '[data-swiper-slide-index="' + a + '"]') : t.eq(a)).addclass(i.slideactiveclass), i.loop && (e.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + r + '"]').addclass(i.slideduplicateactiveclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + r + '"]').addclass(i.slideduplicateactiveclass));
var o = e.nextall("." + i.slideclass).eq(0).addclass(i.slidenextclass);
i.loop && 0 === o.length && (o = t.eq(0)).addclass(i.slidenextclass);
var l = e.prevall("." + i.slideclass).eq(0).addclass(i.slideprevclass);
i.loop && 0 === l.length && (l = t.eq(-1)).addclass(i.slideprevclass), i.loop && (o.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicatenextclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicatenextclass), l.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicateprevclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicateprevclass))
},
updateactiveindex: function (e) {
var t, i = this.rtl ? this.translate : -this.translate,
s = this.slidesgrid,
a = this.snapgrid,
r = this.params,
n = this.activeindex,
o = this.realindex,
d = this.snapindex,
h = e;
if (void 0 === h) {
for (var p = 0; p < s.length; p += 1) void 0 !== s[p + 1] ? i >= s[p] && i < s[p + 1] - (s[p + 1] - s[p]) / 2 ? h = p : i >= s[p] && i < s[p + 1] && (h = p + 1) : i >= s[p] && (h = p);
r.normalizeslideindex && (h < 0 || void 0 === h) && (h = 0)
}
if ((t = a.indexof(i) >= 0 ? a.indexof(i) : math.floor(h / r.slidespergroup)) >= a.length && (t = a.length - 1), h !== n) {
var c = parseint(this.slides.eq(h).attr("data-swiper-slide-index") || h, 10);
l.extend(this, {
snapindex: t,
realindex: c,
previousindex: n,
activeindex: h
}), this.emit("activeindexchange"), this.emit("snapindexchange"), o !== c && this.emit("realindexchange"), this.emit("slidechange")
} else t !== d && (this.snapindex = t, this.emit("snapindexchange"))
},
updateclickedslide: function (e) {
var i = this.params,
s = t(e.target).closest("." + i.slideclass)[0],
a = !1;
if (s)
for (var r = 0; r < this.slides.length; r += 1) this.slides[r] === s && (a = !0);
if (!s || !a) return this.clickedslide = void 0, void(this.clickedindex = void 0);
this.clickedslide = s, this.virtual && this.params.virtual.enabled ? this.clickedindex = parseint(t(s).attr("data-swiper-slide-index"), 10) : this.clickedindex = t(s).index(), i.slidetoclickedslide && void 0 !== this.clickedindex && this.clickedindex !== this.activeindex && this.slidetoclickedslide()
}
},
f = {
gettranslate: function (e) {
void 0 === e && (e = this.ishorizontal() ? "x" : "y");
var t = this.params,
i = this.rtl,
s = this.translate,
a = this.$wrapperel;
if (t.virtualtranslate) return i ? -s : s;
var r = l.gettranslate(a[0], e);
return i && (r = -r), r || 0
},
settranslate: function (e, t) {
var i = this.rtl,
s = this.params,
a = this.$wrapperel,
r = this.progress,
n = 0,
o = 0;
this.ishorizontal() ? n = i ? -e : e : o = e, s.roundlengths && (n = math.floor(n), o = math.floor(o)), s.virtualtranslate || (h.transforms3d ? a.transform("translate3d(" + n + "px, " + o + "px, 0px)") : a.transform("translate(" + n + "px, " + o + "px)")), this.translate = this.ishorizontal() ? n : o;
var l = this.maxtranslate() - this.mintranslate();
(0 === l ? 0 : (e - this.mintranslate()) / l) !== r && this.updateprogress(e), this.emit("settranslate", this.translate, t)
},
mintranslate: function () {
return -this.snapgrid[0]
},
maxtranslate: function () {
return -this.snapgrid[this.snapgrid.length - 1]
}
},
v = {
settransition: function (e, t) {
this.$wrapperel.transition(e), this.emit("settransition", e, t)
},
transitionstart: function (e) {
void 0 === e && (e = !0);
var t = this.activeindex,
i = this.params,
s = this.previousindex;
i.autoheight && this.updateautoheight(), this.emit("transitionstart"), e && t !== s && (this.emit("slidechangetransitionstart"), t > s ? this.emit("slidenexttransitionstart") : this.emit("slideprevtransitionstart"))
},
transitionend: function (e) {
void 0 === e && (e = !0);
var t = this.activeindex,
i = this.previousindex;
this.animating = !1, this.settransition(0), this.emit("transitionend"), e && t !== i && (this.emit("slidechangetransitionend"), t > i ? this.emit("slidenexttransitionend") : this.emit("slideprevtransitionend"))
}
},
m = {
slideto: function (e, t, i, s) {
void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0);
var a = this,
r = e;
r < 0 && (r = 0);
var n = a.params,
o = a.snapgrid,
l = a.slidesgrid,
d = a.previousindex,
p = a.activeindex,
c = a.rtl,
u = a.$wrapperel,
f = math.floor(r / n.slidespergroup);
f >= o.length && (f = o.length - 1), (p || n.initialslide || 0) === (d || 0) && i && a.emit("beforeslidechangestart");
var v = -o[f];
if (a.updateprogress(v), n.normalizeslideindex)
for (var m = 0; m < l.length; m += 1) - math.floor(100 * v) >= math.floor(100 * l[m]) && (r = m);
if (a.initialized) {
if (!a.allowslidenext && v < a.translate && v < a.mintranslate()) return !1;
if (!a.allowslideprev && v > a.translate && v > a.maxtranslate() && (p || 0) !== r) return !1
}
return c && -v === a.translate || !c && v === a.translate ? (a.updateactiveindex(r), n.autoheight && a.updateautoheight(), a.updateslidesclasses(), "slide" !== n.effect && a.settranslate(v), !1) : (0 !== t && h.transition ? (a.settransition(t), a.settranslate(v), a.updateactiveindex(r), a.updateslidesclasses(), a.emit("beforetransitionstart", t, s), a.transitionstart(i), a.animating || (a.animating = !0, u.transitionend(function () {
a && !a.destroyed && a.transitionend(i)
}))) : (a.settransition(0), a.settranslate(v), a.updateactiveindex(r), a.updateslidesclasses(), a.emit("beforetransitionstart", t, s), a.transitionstart(i), a.transitionend(i)), !0)
},
slidenext: function (e, t, i) {
void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
var s = this.params,
a = this.animating;
return s.loop ? !a && (this.loopfix(), this._clientleft = this.$wrapperel[0].clientleft, this.slideto(this.activeindex + s.slidespergroup, e, t, i)) : this.slideto(this.activeindex + s.slidespergroup, e, t, i)
},
slideprev: function (e, t, i) {
void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
var s = this.params,
a = this.animating;
return s.loop ? !a && (this.loopfix(), this._clientleft = this.$wrapperel[0].clientleft, this.slideto(this.activeindex - 1, e, t, i)) : this.slideto(this.activeindex - 1, e, t, i)
},
slidereset: function (e, t, i) {
void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
return this.slideto(this.activeindex, e, t, i)
},
slidetoclickedslide: function () {
var e, i = this,
s = i.params,
a = i.$wrapperel,
r = "auto" === s.slidesperview ? i.slidesperviewdynamic() : s.slidesperview,
n = i.clickedindex;
if (s.loop) {
if (i.animating) return;
e = parseint(t(i.clickedslide).attr("data-swiper-slide-index"), 10), s.centeredslides ? n < i.loopedslides - r / 2 || n > i.slides.length - i.loopedslides + r / 2 ? (i.loopfix(), n = a.children("." + s.slideclass + '[data-swiper-slide-index="' + e + '"]:not(.' + s.slideduplicateclass + ")").eq(0).index(), l.nexttick(function () {
i.slideto(n)
})) : i.slideto(n) : n > i.slides.length - r ? (i.loopfix(), n = a.children("." + s.slideclass + '[data-swiper-slide-index="' + e + '"]:not(.' + s.slideduplicateclass + ")").eq(0).index(), l.nexttick(function () {
i.slideto(n)
})) : i.slideto(n)
} else i.slideto(n)
}
},
g = {
loopcreate: function () {
var e = this,
i = e.params,
s = e.$wrapperel;
s.children("." + i.slideclass + "." + i.slideduplicateclass).remove();
var a = s.children("." + i.slideclass);
if (i.loopfillgroupwithblank) {
var r = i.slidespergroup - a.length % i.slidespergroup;
if (r !== i.slidespergroup) {
for (var n = 0; n < r; n += 1) {
var o = t(d.createelement("div")).addclass(i.slideclass + " " + i.slideblankclass);
s.append(o)
}
a = s.children("." + i.slideclass)
}
}
"auto" !== i.slidesperview || i.loopedslides || (i.loopedslides = a.length), e.loopedslides = parseint(i.loopedslides || i.slidesperview, 10), e.loopedslides += i.loopadditionalslides, e.loopedslides > a.length && (e.loopedslides = a.length);
var l = [],
h = [];
a.each(function (i, s) {
var r = t(s);
i < e.loopedslides && h.push(s), i < a.length && i >= a.length - e.loopedslides && l.push(s), r.attr("data-swiper-slide-index", i)
});
for (var p = 0; p < h.length; p += 1) s.append(t(h[p].clonenode(!0)).addclass(i.slideduplicateclass));
for (var c = l.length - 1; c >= 0; c -= 1) s.prepend(t(l[c].clonenode(!0)).addclass(i.slideduplicateclass))
},
loopfix: function () {
var e, t = this.params,
i = this.activeindex,
s = this.slides,
a = this.loopedslides,
r = this.allowslideprev,
n = this.allowslidenext;
this.allowslideprev = !0, this.allowslidenext = !0, i < a ? (e = s.length - 3 * a + i, e += a, this.slideto(e, 0, !1, !0)) : ("auto" === t.slidesperview && i >= 2 * a || i > s.length - 2 * t.slidesperview) && (e = -s.length + i + a, e += a, this.slideto(e, 0, !1, !0)), this.allowslideprev = r, this.allowslidenext = n
},
loopdestroy: function () {
var e = this.$wrapperel,
t = this.params,
i = this.slides;
e.children("." + t.slideclass + "." + t.slideduplicateclass).remove(), i.removeattr("data-swiper-slide-index")
}
},
b = {
setgrabcursor: function (e) {
if (!h.touch && this.params.simulatetouch) {
var t = this.el;
t.style.cursor = "move", t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", t.style.cursor = e ? "-moz-grabbin" : "-moz-grab", t.style.cursor = e ? "grabbing" : "grab"
}
},
unsetgrabcursor: function () {
h.touch || (this.el.style.cursor = "")
}
},
w = {
appendslide: function (e) {
var t = this.$wrapperel,
i = this.params;
if (i.loop && this.loopdestroy(), "object" == typeof e && "length" in e)
for (var s = 0; s < e.length; s += 1) e[s] && t.append(e[s]);
else t.append(e);
i.loop && this.loopcreate(), i.observer && h.observer || this.update()
},
prependslide: function (e) {
var t = this.params,
i = this.$wrapperel,
s = this.activeindex;
t.loop && this.loopdestroy();
var a = s + 1;
if ("object" == typeof e && "length" in e) {
for (var r = 0; r < e.length; r += 1) e[r] && i.prepend(e[r]);
a = s + e.length
} else i.prepend(e);
t.loop && this.loopcreate(), t.observer && h.observer || this.update(), this.slideto(a, 0, !1)
},
removeslide: function (e) {
var t = this.params,
i = this.$wrapperel,
s = this.activeindex;
t.loop && (this.loopdestroy(), this.slides = i.children("." + t.slideclass));
var a, r = s;
if ("object" == typeof e && "length" in e) {
for (var n = 0; n < e.length; n += 1) a = e[n], this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1);
r = math.max(r, 0)
} else a = e, this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1), r = math.max(r, 0);
t.loop && this.loopcreate(), t.observer && h.observer || this.update(), t.loop ? this.slideto(r + this.loopedslides, 0, !1) : this.slideto(r, 0, !1)
},
removeallslides: function () {
for (var e = [], t = 0; t < this.slides.length; t += 1) e.push(t);
this.removeslide(e)
}
},
y = function () {
var e = o.navigator.useragent,
t = {
ios: !1,
android: !1,
androidchrome: !1,
desktop: !1,
windows: !1,
iphone: !1,
ipod: !1,
ipad: !1,
cordova: o.cordova || o.phonegap,
phonegap: o.cordova || o.phonegap
},
i = e.match(/(windows phone);?[\s\/]+([\d.]+)?/),
s = e.match(/(android);?[\s\/]+([\d.]+)?/),
a = e.match(/(ipad).*os\s([\d_]+)/),
r = e.match(/(ipod)(.*os\s([\d_]+))?/),
n = !a && e.match(/(iphone\sos|ios)\s([\d_]+)/);
if (i && (t.os = "windows", t.osversion = i[2], t.windows = !0), s && !i && (t.os = "android", t.osversion = s[2], t.android = !0, t.androidchrome = e.tolowercase().indexof("chrome") >= 0), (a || n || r) && (t.os = "ios", t.ios = !0), n && !r && (t.osversion = n[2].replace(/_/g, "."), t.iphone = !0), a && (t.osversion = a[2].replace(/_/g, "."), t.ipad = !0), r && (t.osversion = r[3] ? r[3].replace(/_/g, ".") : null, t.iphone = !0), t.ios && t.osversion && e.indexof("version/") >= 0 && "10" === t.osversion.split(".")[0] && (t.osversion = e.tolowercase().split("version/")[1].split(" ")[0]), t.desktop = !(t.os || t.android || t.webview), t.webview = (n || a || r) && e.match(/.*applewebkit(?!.*safari)/i), t.os && "ios" === t.os) {
var l = t.osversion.split("."),
h = d.queryselector('meta[name="viewport"]');
t.minimalui = !t.webview && (r || n) && (1 * l[0] == 7 ? 1 * l[1] >= 1 : 1 * l[0] > 7) && h && h.getattribute("content").indexof("minimal-ui") >= 0
}
return t.pixelratio = o.devicepixelratio || 1, t
}(),
x = function (e) {
var i = this.toucheventsdata,
s = this.params,
a = this.touches,
r = e;
if (r.originalevent && (r = r.originalevent), i.istouchevent = "touchstart" === r.type, (i.istouchevent || !("which" in r) || 3 !== r.which) && (!i.istouched || !i.ismoved))
if (s.noswiping && t(r.target).closest("." + s.noswipingclass)[0]) this.allowclick = !0;
else if (!s.swipehandler || t(r).closest(s.swipehandler)[0]) {
a.currentx = "touchstart" === r.type ? r.targettouches[0].pagex : r.pagex, a.currenty = "touchstart" === r.type ? r.targettouches[0].pagey : r.pagey;
var n = a.currentx,
o = a.currenty;
if (!(y.ios && !y.cordova && s.iosedgeswipedetection && n <= s.iosedgeswipethreshold && n >= window.screen.width - s.iosedgeswipethreshold)) {
if (l.extend(i, {
istouched: !0,
ismoved: !1,
allowtouchcallbacks: !0,
isscrolling: void 0,
startmoving: void 0
}), a.startx = n, a.starty = o, i.touchstarttime = l.now(), this.allowclick = !0, this.updatesize(), this.swipedirection = void 0, s.threshold > 0 && (i.allowthresholdmove = !1), "touchstart" !== r.type) {
var h = !0;
t(r.target).is(i.formelements) && (h = !1), d.activeelement && t(d.activeelement).is(i.formelements) && d.activeelement.blur(), h && this.allowtouchmove && r.preventdefault()
}
this.emit("touchstart", r)
}
}
},
t = function (e) {
var i = this.toucheventsdata,
s = this.params,
a = this.touches,
r = this.rtl,
n = e;
if (n.originalevent && (n = n.originalevent), !i.istouchevent || "mousemove" !== n.type) {
var o = "touchmove" === n.type ? n.targettouches[0].pagex : n.pagex,
h = "touchmove" === n.type ? n.targettouches[0].pagey : n.pagey;
if (n.preventedbynestedswiper) return a.startx = o, void(a.starty = h);
if (!this.allowtouchmove) return this.allowclick = !1, void(i.istouched && (l.extend(a, {
startx: o,
starty: h,
currentx: o,
currenty: h
}), i.touchstarttime = l.now()));
if (i.istouchevent && s.touchreleaseonedges && !s.loop)
if (this.isvertical()) {
if (h < a.starty && this.translate <= this.maxtranslate() || h > a.starty && this.translate >= this.mintranslate()) return i.istouched = !1, void(i.ismoved = !1)
} else if (o < a.startx && this.translate <= this.maxtranslate() || o > a.startx && this.translate >= this.mintranslate()) return;
if (i.istouchevent && d.activeelement && n.target === d.activeelement && t(n.target).is(i.formelements)) return i.ismoved = !0, void(this.allowclick = !1);
if (i.allowtouchcallbacks && this.emit("touchmove", n), !(n.targettouches && n.targettouches.length > 1)) {
a.currentx = o, a.currenty = h;
var p, c = a.currentx - a.startx,
u = a.currenty - a.starty;
if (void 0 === i.isscrolling) this.ishorizontal() && a.currenty === a.starty || this.isvertical() && a.currentx === a.startx ? i.isscrolling = !1 : c * c + u * u >= 25 && (p = 180 * math.atan2(math.abs(u), math.abs(c)) / math.pi, i.isscrolling = this.ishorizontal() ? p > s.touchangle : 90 - p > s.touchangle);
if (i.isscrolling && this.emit("touchmoveopposite", n), "undefined" == typeof startmoving && (a.currentx === a.startx && a.currenty === a.starty || (i.startmoving = !0)), i.istouched)
if (i.isscrolling) i.istouched = !1;
else if (i.startmoving) {
this.allowclick = !1, n.preventdefault(), s.touchmovestoppropagation && !s.nested && n.stoppropagation(), i.ismoved || (s.loop && this.loopfix(), i.starttranslate = this.gettranslate(), this.settransition(0), this.animating && this.$wrapperel.trigger("webkittransitionend transitionend"), i.allowmomentumbounce = !1, !s.grabcursor || !0 !== this.allowslidenext && !0 !== this.allowslideprev || this.setgrabcursor(!0), this.emit("sliderfirstmove", n)), this.emit("slidermove", n), i.ismoved = !0;
var f = this.ishorizontal() ? c : u;
a.diff = f, f *= s.touchratio, r && (f = -f), this.swipedirection = f > 0 ? "prev" : "next", i.currenttranslate = f + i.starttranslate;
var v = !0,
m = s.resistanceratio;
if (s.touchreleaseonedges && (m = 0), f > 0 && i.currenttranslate > this.mintranslate() ? (v = !1, s.resistance && (i.currenttranslate = this.mintranslate() - 1 + math.pow(-this.mintranslate() + i.starttranslate + f, m))) : f < 0 && i.currenttranslate < this.maxtranslate() && (v = !1, s.resistance && (i.currenttranslate = this.maxtranslate() + 1 - math.pow(this.maxtranslate() - i.starttranslate - f, m))), v && (n.preventedbynestedswiper = !0), !this.allowslidenext && "next" === this.swipedirection && i.currenttranslate < i.starttranslate && (i.currenttranslate = i.starttranslate), !this.allowslideprev && "prev" === this.swipedirection && i.currenttranslate > i.starttranslate && (i.currenttranslate = i.starttranslate), s.threshold > 0) {
if (!(math.abs(f) > s.threshold || i.allowthresholdmove)) return void(i.currenttranslate = i.starttranslate);
if (!i.allowthresholdmove) return i.allowthresholdmove = !0, a.startx = a.currentx, a.starty = a.currenty, i.currenttranslate = i.starttranslate, void(a.diff = this.ishorizontal() ? a.currentx - a.startx : a.currenty - a.starty)
}
s.followfinger && ((s.freemode || s.watchslidesprogress || s.watchslidesvisibility) && (this.updateactiveindex(), this.updateslidesclasses()), s.freemode && (0 === i.velocities.length && i.velocities.push({
position: a[this.ishorizontal() ? "startx" : "starty"],
time: i.touchstarttime
}), i.velocities.push({
position: a[this.ishorizontal() ? "currentx" : "currenty"],
time: l.now()
})), this.updateprogress(i.currenttranslate), this.settranslate(i.currenttranslate))
}
}
}
},
e = function (e) {
var t = this,
i = t.toucheventsdata,
s = t.params,
a = t.touches,
r = t.rtl,
n = t.$wrapperel,
o = t.slidesgrid,
d = t.snapgrid,
h = e;
if (h.originalevent && (h = h.originalevent), i.allowtouchcallbacks && t.emit("touchend", h), i.allowtouchcallbacks = !1, i.istouched) {
s.grabcursor && i.ismoved && i.istouched && (!0 === t.allowslidenext || !0 === t.allowslideprev) && t.setgrabcursor(!1);
var p, c = l.now(),
u = c - i.touchstarttime;
if (t.allowclick && (t.updateclickedslide(h), t.emit("tap", h), u < 300 && c - i.lastclicktime > 300 && (i.clicktimeout && cleartimeout(i.clicktimeout), i.clicktimeout = l.nexttick(function () {
t && !t.destroyed && t.emit("click", h)
}, 300)), u < 300 && c - i.lastclicktime < 300 && (i.clicktimeout && cleartimeout(i.clicktimeout), t.emit("doubletap", h))), i.lastclicktime = l.now(), l.nexttick(function () {
t.destroyed || (t.allowclick = !0)
}), !i.istouched || !i.ismoved || !t.swipedirection || 0 === a.diff || i.currenttranslate === i.starttranslate) return i.istouched = !1, void(i.ismoved = !1);
if (i.istouched = !1, i.ismoved = !1, p = s.followfinger ? r ? t.translate : -t.translate : -i.currenttranslate, s.freemode) {
if (p < -t.mintranslate()) return void t.slideto(t.activeindex);
if (p > -t.maxtranslate()) return void(t.slides.length < d.length ? t.slideto(d.length - 1) : t.slideto(t.slides.length - 1));
if (s.freemodemomentum) {
if (i.velocities.length > 1) {
var f = i.velocities.pop(),
v = i.velocities.pop(),
m = f.position - v.position,
g = f.time - v.time;
t.velocity = m / g, t.velocity /= 2, math.abs(t.velocity) < s.freemodeminimumvelocity && (t.velocity = 0), (g > 150 || l.now() - f.time > 300) && (t.velocity = 0)
} else t.velocity = 0;
t.velocity *= s.freemodemomentumvelocityratio, i.velocities.length = 0;
var b = 1e3 * s.freemodemomentumratio,
w = t.velocity * b,
y = t.translate + w;
r && (y = -y);
var x, t = !1,
e = 20 * math.abs(t.velocity) * s.freemodemomentumbounceratio;
if (y < t.maxtranslate()) s.freemodemomentumbounce ? (y + t.maxtranslate() < -e && (y = t.maxtranslate() - e), x = t.maxtranslate(), t = !0, i.allowmomentumbounce = !0) : y = t.maxtranslate();
else if (y > t.mintranslate()) s.freemodemomentumbounce ? (y - t.mintranslate() > e && (y = t.mintranslate() + e), x = t.mintranslate(), t = !0, i.allowmomentumbounce = !0) : y = t.mintranslate();
else if (s.freemodesticky) {
for (var s, c = 0; c < d.length; c += 1)
if (d[c] > -y) {
s = c;
break
} y = -(y = math.abs(d[s] - y) < math.abs(d[s - 1] - y) || "next" === t.swipedirection ? d[s] : d[s - 1])
}
if (0 !== t.velocity) b = r ? math.abs((-y - t.translate) / t.velocity) : math.abs((y - t.translate) / t.velocity);
else if (s.freemodesticky) return void t.slidereset();
s.freemodemomentumbounce && t ? (t.updateprogress(x), t.settransition(b), t.settranslate(y), t.transitionstart(), t.animating = !0, n.transitionend(function () {
t && !t.destroyed && i.allowmomentumbounce && (t.emit("momentumbounce"), t.settransition(s.speed), t.settranslate(x), n.transitionend(function () {
t && !t.destroyed && t.transitionend()
}))
})) : t.velocity ? (t.updateprogress(y), t.settransition(b), t.settranslate(y), t.transitionstart(), t.animating || (t.animating = !0, n.transitionend(function () {
t && !t.destroyed && t.transitionend()
}))) : t.updateprogress(y), t.updateactiveindex(), t.updateslidesclasses()
}(!s.freemodemomentum || u >= s.longswipesms) && (t.updateprogress(), t.updateactiveindex(), t.updateslidesclasses())
} else {
for (var m = 0, z = t.slidessizesgrid[0], p = 0; p < o.length; p += s.slidespergroup) void 0 !== o[p + s.slidespergroup] ? p >= o[p] && p < o[p + s.slidespergroup] && (m = p, z = o[p + s.slidespergroup] - o[p]) : p >= o[p] && (m = p, z = o[o.length - 1] - o[o.length - 2]);
var k = (p - o[m]) / z;
if (u > s.longswipesms) {
if (!s.longswipes) return void t.slideto(t.activeindex);
"next" === t.swipedirection && (k >= s.longswipesratio ? t.slideto(m + s.slidespergroup) : t.slideto(m)), "prev" === t.swipedirection && (k > 1 - s.longswipesratio ? t.slideto(m + s.slidespergroup) : t.slideto(m))
} else {
if (!s.shortswipes) return void t.slideto(t.activeindex);
"next" === t.swipedirection && t.slideto(m + s.slidespergroup), "prev" === t.swipedirection && t.slideto(m)
}
}
}
},
s = function () {
var e = this.params,
t = this.el;
if (!t || 0 !== t.offsetwidth) {
e.breakpoints && this.setbreakpoint();
var i = this.allowslidenext,
s = this.allowslideprev;
if (this.allowslidenext = !0, this.allowslideprev = !0, this.updatesize(), this.updateslides(), e.freemode) {
var a = math.min(math.max(this.translate, this.maxtranslate()), this.mintranslate());
this.settranslate(a), this.updateactiveindex(), this.updateslidesclasses(), e.autoheight && this.updateautoheight()
} else this.updateslidesclasses(), ("auto" === e.slidesperview || e.slidesperview > 1) && this.isend && !this.params.centeredslides ? this.slideto(this.slides.length - 1, 0, !1, !0) : this.slideto(this.activeindex, 0, !1, !0);
this.allowslideprev = s, this.allowslidenext = i
}
},
c = function (e) {
this.allowclick || (this.params.preventclicks && e.preventdefault(), this.params.preventclickspropagation && this.animating && (e.stoppropagation(), e.stopimmediatepropagation()))
};
var m = {
init: !0,
direction: "horizontal",
toucheventstarget: "container",
initialslide: 0,
speed: 300,
iosedgeswipedetection: !1,
iosedgeswipethreshold: 20,
freemode: !1,
freemodemomentum: !0,
freemodemomentumratio: 1,
freemodemomentumbounce: !0,
freemodemomentumbounceratio: 1,
freemodemomentumvelocityratio: 1,
freemodesticky: !1,
freemodeminimumvelocity: .02,
autoheight: !1,
setwrappersize: !1,
virtualtranslate: !1,
effect: "slide",
breakpoints: void 0,
spacebetween: 0,
slidesperview: 1,
slidespercolumn: 1,
slidespercolumnfill: "column",
slidespergroup: 1,
centeredslides: !1,
slidesoffsetbefore: 0,
slidesoffsetafter: 0,
normalizeslideindex: !0,
watchoverflow: !1,
roundlengths: !1,
touchratio: 1,
touchangle: 45,
simulatetouch: !0,
shortswipes: !0,
longswipes: !0,
longswipesratio: .5,
longswipesms: 300,
followfinger: !0,
allowtouchmove: !0,
threshold: 0,
touchmovestoppropagation: !0,
touchreleaseonedges: !1,
uniquenavelements: !0,
resistance: !0,
resistanceratio: .85,
watchslidesprogress: !1,
watchslidesvisibility: !1,
grabcursor: !1,
preventclicks: !0,
preventclickspropagation: !0,
slidetoclickedslide: !1,
preloadimages: !0,
updateonimagesready: !0,
loop: !1,
loopadditionalslides: 0,
loopedslides: null,
loopfillgroupwithblank: !1,
allowslideprev: !0,
allowslidenext: !0,
swipehandler: null,
noswiping: !0,
noswipingclass: "swiper-no-swiping",
passivelisteners: !0,
containermodifierclass: "swiper-container-",
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",
runcallbacksoninit: !0
},
z = {
update: u,
translate: f,
transition: v,
slide: m,
loop: g,
grabcursor: b,
manipulation: w,
events: {
attachevents: function () {
var e = this.params,
t = this.touchevents,
i = this.el,
s = this.wrapperel;
this.ontouchstart = x.bind(this), this.ontouchmove = t.bind(this), this.ontouchend = e.bind(this), this.onclick = c.bind(this);
var a = "container" === e.toucheventstarget ? i : s,
r = !!e.nested;
if (h.pointerevents || h.prefixedpointerevents) a.addeventlistener(t.start, this.ontouchstart, !1), (h.touch ? a : d).addeventlistener(t.move, this.ontouchmove, r), (h.touch ? a : d).addeventlistener(t.end, this.ontouchend, !1);
else {
if (h.touch) {
var n = !("touchstart" !== t.start || !h.passivelistener || !e.passivelisteners) && {
passive: !0,
capture: !1
};
a.addeventlistener(t.start, this.ontouchstart, n), a.addeventlistener(t.move, this.ontouchmove, h.passivelistener ? {
passive: !1,
capture: r
} : r), a.addeventlistener(t.end, this.ontouchend, n)
}(e.simulatetouch && !y.ios && !y.android || e.simulatetouch && !h.touch && y.ios) && (a.addeventlistener("mousedown", this.ontouchstart, !1), d.addeventlistener("mousemove", this.ontouchmove, r), d.addeventlistener("mouseup", this.ontouchend, !1))
}(e.preventclicks || e.preventclickspropagation) && a.addeventlistener("click", this.onclick, !0), this.on("resize observerupdate", s)
},
detachevents: function () {
var e = this.params,
t = this.touchevents,
i = this.el,
s = this.wrapperel,
a = "container" === e.toucheventstarget ? i : s,
r = !!e.nested;
if (h.pointerevents || h.prefixedpointerevents) a.removeeventlistener(t.start, this.ontouchstart, !1), (h.touch ? a : d).removeeventlistener(t.move, this.ontouchmove, r), (h.touch ? a : d).removeeventlistener(t.end, this.ontouchend, !1);
else {
if (h.touch) {
var n = !("ontouchstart" !== t.start || !h.passivelistener || !e.passivelisteners) && {
passive: !0,
capture: !1
};
a.removeeventlistener(t.start, this.ontouchstart, n), a.removeeventlistener(t.move, this.ontouchmove, r), a.removeeventlistener(t.end, this.ontouchend, n)
}(e.simulatetouch && !y.ios && !y.android || e.simulatetouch && !h.touch && y.ios) && (a.removeeventlistener("mousedown", this.ontouchstart, !1), d.removeeventlistener("mousemove", this.ontouchmove, r), d.removeeventlistener("mouseup", this.ontouchend, !1))
}(e.preventclicks || e.preventclickspropagation) && a.removeeventlistener("click", this.onclick, !0), this.off("resize observerupdate", s)
}
},
breakpoints: {
setbreakpoint: function () {
var e = this.activeindex,
t = this.loopedslides;
void 0 === t && (t = 0);
var i = this.params,
s = i.breakpoints;
if (s && (!s || 0 !== object.keys(s).length)) {
var a = this.getbreakpoint(s);
if (a && this.currentbreakpoint !== a) {
var r = a in s ? s[a] : this.originalparams,
n = i.loop && r.slidesperview !== i.slidesperview;
l.extend(this.params, r), l.extend(this, {
allowtouchmove: this.params.allowtouchmove,
allowslidenext: this.params.allowslidenext,
allowslideprev: this.params.allowslideprev
}), this.currentbreakpoint = a, n && (this.loopdestroy(), this.loopcreate(), this.updateslides(), this.slideto(e - t + this.loopedslides, 0, !1)), this.emit("breakpoint", r)
}
}
},
getbreakpoint: function (e) {
if (e) {
var t = !1,
i = [];
object.keys(e).foreach(function (e) {
i.push(e)
}), i.sort(function (e, t) {
return parseint(e, 10) - parseint(t, 10)
});
for (var s = 0; s < i.length; s += 1) {
var a = i[s];
a >= o.innerwidth && !t && (t = a)
}
return t || "max"
}
}
},
checkoverflow: {
checkoverflow: function () {
var e = this.islocked;
this.islocked = 1 === this.snapgrid.length, this.allowtouchmove = !this.islocked, e && e !== this.islocked && (this.isend = !1, this.navigation.update())
}
},
classes: {
addclasses: function () {
var e = this.classnames,
t = this.params,
i = this.rtl,
s = this.$el,
a = [];
a.push(t.direction), t.freemode && a.push("free-mode"), h.flexbox || a.push("no-flexbox"), t.autoheight && a.push("autoheight"), i && a.push("rtl"), t.slidespercolumn > 1 && a.push("multirow"), y.android && a.push("android"), y.ios && a.push("ios"), (h.pointerevents || h.prefixedpointerevents) && a.push("wp8-" + t.direction), a.foreach(function (i) {
e.push(t.containermodifierclass + i)
}), s.addclass(e.join(" "))
},
removeclasses: function () {
var e = this.$el,
t = this.classnames;
e.removeclass(t.join(" "))
}
},
images: {
loadimage: function (e, t, i, s, a, r) {
var n;
function l() {
r && r()
}
e.complete && a ? l() : t ? ((n = new o.image).onload = l, n.onerror = l, s && (n.sizes = s), i && (n.srcset = i), t && (n.src = t)) : l()
},
preloadimages: function () {
var e = this;
function t() {
void 0 !== e && null !== e && e && !e.destroyed && (void 0 !== e.imagesloaded && (e.imagesloaded += 1), e.imagesloaded === e.imagestoload.length && (e.params.updateonimagesready && e.update(), e.emit("imagesready")))
}
e.imagestoload = e.$el.find("img");
for (var i = 0; i < e.imagestoload.length; i += 1) {
var s = e.imagestoload[i];
e.loadimage(s, s.currentsrc || s.getattribute("src"), s.srcset || s.getattribute("srcset"), s.sizes || s.getattribute("sizes"), !0, t)
}
}
}
},
p = {},
k = function (e) {
function i() {
for (var s, a, r, n = [], o = arguments.length; o--;) n[o] = arguments[o];
1 === n.length && n[0].constructor && n[0].constructor === object ? a = n[0] : (s = (r = n)[0], a = r[1]);
a || (a = {}), a = l.extend({}, a), s && !a.el && (a.el = s), e.call(this, a), object.keys(z).foreach(function (e) {
object.keys(z[e]).foreach(function (t) {
i.prototype[t] || (i.prototype[t] = z[e][t])
})
});
var d = this;
void 0 === d.modules && (d.modules = {}), object.keys(d.modules).foreach(function (e) {
var t = d.modules[e];
if (t.params) {
var i = object.keys(t.params)[0],
s = t.params[i];
if ("object" != typeof s) return;
if (!(i in a && "enabled" in s)) return;
!0 === a[i] && (a[i] = {
enabled: !0
}), "object" != typeof a[i] || "enabled" in a[i] || (a[i].enabled = !0), a[i] || (a[i] = {
enabled: !1
})
}
});
var p = l.extend({}, m);
d.usemodulesparams(p), d.params = l.extend({}, p, p, a), d.originalparams = l.extend({}, d.params), d.passedparams = l.extend({}, a);
var c = t(d.params.el);
if (s = c[0]) {
if (c.length > 1) {
var u = [];
return c.each(function (e, t) {
var s = l.extend({}, a, {
el: t
});
u.push(new i(s))
}), u
}
s.swiper = d, c.data("swiper", d);
var f, v, m = c.children("." + d.params.wrapperclass);
return l.extend(d, {
$el: c,
el: s,
$wrapperel: m,
wrapperel: m[0],
classnames: [],
slides: t(),
slidesgrid: [],
snapgrid: [],
slidessizesgrid: [],
ishorizontal: function () {
return "horizontal" === d.params.direction
},
isvertical: function () {
return "vertical" === d.params.direction
},
rtl: "horizontal" === d.params.direction && ("rtl" === s.dir.tolowercase() || "rtl" === c.css("direction")),
wrongrtl: "-webkit-box" === m.css("display"),
activeindex: 0,
realindex: 0,
isbeginning: !0,
isend: !1,
translate: 0,
progress: 0,
velocity: 0,
animating: !1,
allowslidenext: d.params.allowslidenext,
allowslideprev: d.params.allowslideprev,
touchevents: (f = ["touchstart", "touchmove", "touchend"], v = ["mousedown", "mousemove", "mouseup"], h.pointerevents ? v = ["pointerdown", "pointermove", "pointerup"] : h.prefixedpointerevents && (v = ["mspointerdown", "mspointermove", "mspointerup"]), {
start: h.touch || !d.params.simulatetouch ? f[0] : v[0],
move: h.touch || !d.params.simulatetouch ? f[1] : v[1],
end: h.touch || !d.params.simulatetouch ? f[2] : v[2]
}),
toucheventsdata: {
istouched: void 0,
ismoved: void 0,
allowtouchcallbacks: void 0,
touchstarttime: void 0,
isscrolling: void 0,
currenttranslate: void 0,
starttranslate: void 0,
allowthresholdmove: void 0,
formelements: "input, select, option, textarea, button, video",
lastclicktime: l.now(),
clicktimeout: void 0,
velocities: [],
allowmomentumbounce: void 0,
istouchevent: void 0,
startmoving: void 0
},
allowclick: !0,
allowtouchmove: d.params.allowtouchmove,
touches: {
startx: 0,
starty: 0,
currentx: 0,
currenty: 0,
diff: 0
},
imagestoload: [],
imagesloaded: 0
}), d.usemodules(), d.params.init && d.init(), d
}
}
e && (i.__proto__ = e), i.prototype = object.create(e && e.prototype), i.prototype.constructor = i;
var s = {
extendeddefaults: {
configurable: !0
},
defaults: {
configurable: !0
},
class: {
configurable: !0
},
$: {
configurable: !0
}
};
return i.prototype.slidesperviewdynamic = function () {
var e = this.params,
t = this.slides,
i = this.slidesgrid,
s = this.size,
a = this.activeindex,
r = 1;
if (e.centeredslides) {
for (var n, o = t[a].swiperslidesize, l = a + 1; l < t.length; l += 1) t[l] && !n && (r += 1, (o += t[l].swiperslidesize) > s && (n = !0));
for (var d = a - 1; d >= 0; d -= 1) t[d] && !n && (r += 1, (o += t[d].swiperslidesize) > s && (n = !0))
} else
for (var h = a + 1; h < t.length; h += 1) i[h] - i[a] < s && (r += 1);
return r
}, i.prototype.update = function () {
var e = this;
e && !e.destroyed && (e.updatesize(), e.updateslides(), e.updateprogress(), e.updateslidesclasses(), e.params.freemode ? (t(), e.params.autoheight && e.updateautoheight()) : (("auto" === e.params.slidesperview || e.params.slidesperview > 1) && e.isend && !e.params.centeredslides ? e.slideto(e.slides.length - 1, 0, !1, !0) : e.slideto(e.activeindex, 0, !1, !0)) || t(), e.emit("update"));
function t() {
var t = e.rtl ? -1 * e.translate : e.translate,
i = math.min(math.max(t, e.maxtranslate()), e.mintranslate());
e.settranslate(i), e.updateactiveindex(), e.updateslidesclasses()
}
}, i.prototype.init = function () {
this.initialized || (this.emit("beforeinit"), this.params.breakpoints && this.setbreakpoint(), this.addclasses(), this.params.loop && this.loopcreate(), this.updatesize(), this.updateslides(), this.params.watchoverflow && this.checkoverflow(), this.params.grabcursor && this.setgrabcursor(), this.params.preloadimages && this.preloadimages(), this.params.loop ? this.slideto(this.params.initialslide + this.loopedslides, 0, this.params.runcallbacksoninit) : this.slideto(this.params.initialslide, 0, this.params.runcallbacksoninit), this.attachevents(), this.initialized = !0, this.emit("init"))
}, i.prototype.destroy = function (e, t) {
void 0 === e && (e = !0), void 0 === t && (t = !0);
var i = this,
s = i.params,
a = i.$el,
r = i.$wrapperel,
n = i.slides;
i.emit("beforedestroy"), i.initialized = !1, i.detachevents(), s.loop && i.loopdestroy(), t && (i.removeclasses(), a.removeattr("style"), r.removeattr("style"), n && n.length && n.removeclass([s.slidevisibleclass, s.slideactiveclass, s.slidenextclass, s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index").removeattr("data-swiper-column").removeattr("data-swiper-row")), i.emit("destroy"), object.keys(i.eventslisteners).foreach(function (e) {
i.off(e)
}), !1 !== e && (i.$el[0].swiper = null, i.$el.data("swiper", null), l.deleteprops(i)), i.destroyed = !0
}, i.extenddefaults = function (e) {
l.extend(p, e)
}, s.extendeddefaults.get = function () {
return p
}, s.defaults.get = function () {
return m
}, s.class.get = function () {
return e
}, s.$.get = function () {
return t
}, object.defineproperties(i, s), i
}(p),
$ = {
name: "device",
proto: {
device: y
},
static: {
device: y
}
},
l = {
name: "support",
proto: {
support: h
},
static: {
support: h
}
},
i = function () {
return {
issafari: (e = o.navigator.useragent.tolowercase(), e.indexof("safari") >= 0 && e.indexof("chrome") < 0 && e.indexof("android") < 0),
isuiwebview: /(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(o.navigator.useragent)
};
var e
}(),
d = {
name: "browser",
proto: {
browser: i
},
static: {
browser: i
}
},
o = {
name: "resize",
create: function () {
var e = this;
l.extend(e, {
resize: {
resizehandler: function () {
e && !e.destroyed && e.initialized && (e.emit("beforeresize"), e.emit("resize"))
},
orientationchangehandler: function () {
e && !e.destroyed && e.initialized && e.emit("orientationchange")
}
}
})
},
on: {
init: function () {
o.addeventlistener("resize", this.resize.resizehandler), o.addeventlistener("orientationchange", this.resize.orientationchangehandler)
},
destroy: function () {
o.removeeventlistener("resize", this.resize.resizehandler), o.removeeventlistener("orientationchange", this.resize.orientationchangehandler)
}
}
},
a = {
func: o.mutationobserver || o.webkitmutationobserver,
attach: function (e, t) {
void 0 === t && (t = {});
var i = this,
s = new(0, a.func)(function (e) {
e.foreach(function (e) {
i.emit("observerupdate", e)
})
});
s.observe(e, {
attributes: void 0 === t.attributes || t.attributes,
childlist: void 0 === t.childlist || t.childlist,
characterdata: void 0 === t.characterdata || t.characterdata
}), i.observer.observers.push(s)
},
init: function () {
if (h.observer && this.params.observer) {
if (this.params.observeparents)
for (var e = this.$el.parents(), t = 0; t < e.length; t += 1) this.observer.attach(e[t]);
this.observer.attach(this.$el[0], {
childlist: !1
}), this.observer.attach(this.$wrapperel[0], {
attributes: !1
})
}
},
destroy: function () {
this.observer.observers.foreach(function (e) {
e.disconnect()
}), this.observer.observers = []
}
},
h = {
name: "observer",
params: {
observer: !1,
observeparents: !1
},
create: function () {
l.extend(this, {
observer: {
init: a.init.bind(this),
attach: a.attach.bind(this),
destroy: a.destroy.bind(this),
observers: []
}
})
},
on: {
init: function () {
this.observer.init()
},
destroy: function () {
this.observer.destroy()
}
}
},
n = {
update: function (e) {
var t = this,
i = t.params,
s = i.slidesperview,
a = i.slidespergroup,
r = i.centeredslides,
n = t.virtual,
o = n.from,
d = n.to,
h = n.slides,
p = n.slidesgrid,
c = n.renderslide,
u = n.offset;
t.updateactiveindex();
var f, v, m, g = t.activeindex || 0;
f = t.rtl && t.ishorizontal() ? "right" : t.ishorizontal() ? "left" : "top", r ? (v = math.floor(s / 2) + a, m = math.floor(s / 2) + a) : (v = s + (a - 1), m = a);
var b = math.max((g || 0) - m, 0),
w = math.min((g || 0) + v, h.length - 1),
y = (t.slidesgrid[b] || 0) - (t.slidesgrid[0] || 0);
function x() {
t.updateslides(), t.updateprogress(), t.updateslidesclasses(), t.lazy && t.params.lazy.enabled && t.lazy.load()
}
if (l.extend(t.virtual, {
from: b,
to: w,
offset: y,
slidesgrid: t.slidesgrid
}), o === b && d === w && !e) return t.slidesgrid !== p && y !== u && t.slides.css(f, y + "px"), void t.updateprogress();
if (t.params.virtual.renderexternal) return t.params.virtual.renderexternal.call(t, {
offset: y,
from: b,
to: w,
slides: function () {
for (var e = [], t = b; t <= w; t += 1) e.push(h[t]);
return e
}()
}), void x();
var t = [],
e = [];
if (e) t.$wrapperel.find("." + t.params.slideclass).remove();
else
for (var s = o; s <= d; s += 1)(s < b || s > w) && t.$wrapperel.find("." + t.params.slideclass + '[data-swiper-slide-index="' + s + '"]').remove();
for (var c = 0; c < h.length; c += 1) c >= b && c <= w && (void 0 === d || e ? e.push(c) : (c > d && e.push(c), c < o && t.push(c)));
e.foreach(function (e) {
t.$wrapperel.append(c(h[e], e))
}), t.sort(function (e, t) {
return e < t
}).foreach(function (e) {
t.$wrapperel.prepend(c(h[e], e))
}), t.$wrapperel.children(".swiper-slide").css(f, y + "px"), x()
},
renderslide: function (e, i) {
var s = this.params.virtual;
if (s.cache && this.virtual.cache[i]) return this.virtual.cache[i];
var a = s.renderslide ? t(s.renderslide.call(this, e, i)) : t('' + e + "
");
return a.attr("data-swiper-slide-index") || a.attr("data-swiper-slide-index", i), s.cache && (this.virtual.cache[i] = a), a
},
appendslide: function (e) {
this.virtual.slides.push(e), this.virtual.update(!0)
},
prependslide: function (e) {
if (this.virtual.slides.unshift(e), this.params.virtual.cache) {
var t = this.virtual.cache,
i = {};
object.keys(t).foreach(function (e) {
i[e + 1] = t[e]
}), this.virtual.cache = i
}
this.virtual.update(!0), this.slidenext(0)
}
},
x = {
name: "virtual",
params: {
virtual: {
enabled: !1,
slides: [],
cache: !0,
renderslide: null,
renderexternal: null
}
},
create: function () {
l.extend(this, {
virtual: {
update: n.update.bind(this),
appendslide: n.appendslide.bind(this),
prependslide: n.prependslide.bind(this),
renderslide: n.renderslide.bind(this),
slides: this.params.virtual.slides,
cache: {}
}
})
},
on: {
beforeinit: function () {
if (this.params.virtual.enabled) {
this.classnames.push(this.params.containermodifierclass + "virtual");
var e = {
watchslidesprogress: !0
};
l.extend(this.params, e), l.extend(this.originalparams, e), this.virtual.update()
}
},
settranslate: function () {
this.params.virtual.enabled && this.virtual.update()
}
}
},
y = {
handle: function (e) {
var t = e;
t.originalevent && (t = t.originalevent);
var i = t.keycode || t.charcode;
if (!this.allowslidenext && (this.ishorizontal() && 39 === i || this.isvertical() && 40 === i)) return !1;
if (!this.allowslideprev && (this.ishorizontal() && 37 === i || this.isvertical() && 38 === i)) return !1;
if (!(t.shiftkey || t.altkey || t.ctrlkey || t.metakey || d.activeelement && d.activeelement.nodename && ("input" === d.activeelement.nodename.tolowercase() || "textarea" === d.activeelement.nodename.tolowercase()))) {
if (this.params.keyboard.onlyinviewport && (37 === i || 39 === i || 38 === i || 40 === i)) {
var s = !1;
if (this.$el.parents("." + this.params.slideclass).length > 0 && 0 === this.$el.parents("." + this.params.slideactiveclass).length) return;
var a = o.pagexoffset,
r = o.pageyoffset,
n = o.innerwidth,
l = o.innerheight,
h = this.$el.offset();
this.rtl && (h.left -= this.$el[0].scrollleft);
for (var p = [
[h.left, h.top],
[h.left + this.width, h.top],
[h.left, h.top + this.height],
[h.left + this.width, h.top + this.height]
], c = 0; c < p.length; c += 1) {
var u = p[c];
u[0] >= a && u[0] <= a + n && u[1] >= r && u[1] <= r + l && (s = !0)
}
if (!s) return
}
this.ishorizontal() ? (37 !== i && 39 !== i || (t.preventdefault ? t.preventdefault() : t.returnvalue = !1), (39 === i && !this.rtl || 37 === i && this.rtl) && this.slidenext(), (37 === i && !this.rtl || 39 === i && this.rtl) && this.slideprev()) : (38 !== i && 40 !== i || (t.preventdefault ? t.preventdefault() : t.returnvalue = !1), 40 === i && this.slidenext(), 38 === i && this.slideprev()), this.emit("keypress", i)
}
},
enable: function () {
this.keyboard.enabled || (t(d).on("keydown", this.keyboard.handle), this.keyboard.enabled = !0)
},
disable: function () {
this.keyboard.enabled && (t(d).off("keydown", this.keyboard.handle), this.keyboard.enabled = !1)
}
},
g = {
name: "keyboard",
params: {
keyboard: {
enabled: !1,
onlyinviewport: !0
}
},
create: function () {
l.extend(this, {
keyboard: {
enabled: !1,
enable: y.enable.bind(this),
disable: y.disable.bind(this),
handle: y.handle.bind(this)
}
})
},
on: {
init: function () {
this.params.keyboard.enabled && this.keyboard.enable()
},
destroy: function () {
this.keyboard.enabled && this.keyboard.disable()
}
}
};
var b = {
lastscrolltime: l.now(),
event: o.navigator.useragent.indexof("firefox") > -1 ? "dommousescroll" : function () {
var e = "onwheel" in d;
if (!e) {
var t = d.createelement("div");
t.setattribute("onwheel", "return;"), e = "function" == typeof t.onwheel
}
return !e && d.implementation && d.implementation.hasfeature && !0 !== d.implementation.hasfeature("", "") && (e = d.implementation.hasfeature("events.wheel", "3.0")), e
}() ? "wheel" : "mousewheel",
normalize: function (e) {
var t = 0,
i = 0,
s = 0,
a = 0;
return "detail" in e && (i = e.detail), "wheeldelta" in e && (i = -e.wheeldelta / 120), "wheeldeltay" in e && (i = -e.wheeldeltay / 120), "wheeldeltax" in e && (t = -e.wheeldeltax / 120), "axis" in e && e.axis === e.horizontal_axis && (t = i, i = 0), s = 10 * t, a = 10 * i, "deltay" in e && (a = e.deltay), "deltax" in e && (s = e.deltax), (s || a) && e.deltamode && (1 === e.deltamode ? (s *= 40, a *= 40) : (s *= 800, a *= 800)), s && !t && (t = s < 1 ? -1 : 1), a && !i && (i = a < 1 ? -1 : 1), {
spinx: t,
spiny: i,
pixelx: s,
pixely: a
}
},
handle: function (e) {
var t = e,
i = this,
s = i.params.mousewheel;
t.originalevent && (t = t.originalevent);
var a = 0,
r = i.rtl ? -1 : 1,
n = b.normalize(t);
if (s.forcetoaxis)
if (i.ishorizontal()) {
if (!(math.abs(n.pixelx) > math.abs(n.pixely))) return !0;
a = n.pixelx * r
} else {
if (!(math.abs(n.pixely) > math.abs(n.pixelx))) return !0;
a = n.pixely
}
else a = math.abs(n.pixelx) > math.abs(n.pixely) ? -n.pixelx * r : -n.pixely;
if (0 === a) return !0;
if (s.invert && (a = -a), i.params.freemode) {
var d = i.gettranslate() + a * s.sensitivity,
h = i.isbeginning,
p = i.isend;
if (d >= i.mintranslate() && (d = i.mintranslate()), d <= i.maxtranslate() && (d = i.maxtranslate()), i.settransition(0), i.settranslate(d), i.updateprogress(), i.updateactiveindex(), i.updateslidesclasses(), (!h && i.isbeginning || !p && i.isend) && i.updateslidesclasses(), i.params.freemodesticky && (cleartimeout(i.mousewheel.timeout), i.mousewheel.timeout = l.nexttick(function () {
i.slidereset()
}, 300)), i.emit("scroll", t), i.params.autoplay && i.params.autoplaydisableoninteraction && i.stopautoplay(), 0 === d || d === i.maxtranslate()) return !0
} else {
if (l.now() - i.mousewheel.lastscrolltime > 60)
if (a < 0)
if (i.isend && !i.params.loop || i.animating) {
if (s.releaseonedges) return !0
} else i.slidenext(), i.emit("scroll", t);
else if (i.isbeginning && !i.params.loop || i.animating) {
if (s.releaseonedges) return !0
} else i.slideprev(), i.emit("scroll", t);
i.mousewheel.lastscrolltime = (new o.date).gettime()
}
return t.preventdefault ? t.preventdefault() : t.returnvalue = !1, !1
},
enable: function () {
if (!b.event) return !1;
if (this.mousewheel.enabled) return !1;
var e = this.$el;
return "container" !== this.params.mousewheel.eventstarged && (e = t(this.params.mousewheel.eventstarged)), e.on(b.event, this.mousewheel.handle), this.mousewheel.enabled = !0, !0
},
disable: function () {
if (!b.event) return !1;
if (!this.mousewheel.enabled) return !1;
var e = this.$el;
return "container" !== this.params.mousewheel.eventstarged && (e = t(this.params.mousewheel.eventstarged)), e.off(b.event, this.mousewheel.handle), this.mousewheel.enabled = !1, !0
}
},
v = {
update: function () {
var e = this.params.navigation;
if (!this.params.loop) {
var t = this.navigation,
i = t.$nextel,
s = t.$prevel;
s && s.length > 0 && (this.isbeginning ? s.addclass(e.disabledclass) : s.removeclass(e.disabledclass), s[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](e.lockclass)), i && i.length > 0 && (this.isend ? i.addclass(e.disabledclass) : i.removeclass(e.disabledclass), i[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](e.lockclass))
}
},
init: function () {
var e, i, s = this,
a = s.params.navigation;
(a.nextel || a.prevel) && (a.nextel && (e = t(a.nextel), s.params.uniquenavelements && "string" == typeof a.nextel && e.length > 1 && 1 === s.$el.find(a.nextel).length && (e = s.$el.find(a.nextel))), a.prevel && (i = t(a.prevel), s.params.uniquenavelements && "string" == typeof a.prevel && i.length > 1 && 1 === s.$el.find(a.prevel).length && (i = s.$el.find(a.prevel))), e && e.length > 0 && e.on("click", function (e) {
e.preventdefault(), s.isend && !s.params.loop || s.slidenext()
}), i && i.length > 0 && i.on("click", function (e) {
e.preventdefault(), s.isbeginning && !s.params.loop || s.slideprev()
}), l.extend(s.navigation, {
$nextel: e,
nextel: e && e[0],
$prevel: i,
prevel: i && i[0]
}))
},
destroy: function () {
var e = this.navigation,
t = e.$nextel,
i = e.$prevel;
t && t.length && (t.off("click"), t.removeclass(this.params.navigation.disabledclass)), i && i.length && (i.off("click"), i.removeclass(this.params.navigation.disabledclass))
}
},
r = {
update: function () {
var e = this.rtl,
i = this.params.pagination;
if (i.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
var s, a = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length,
r = this.pagination.$el,
n = this.params.loop ? math.ceil((a - 2 * this.loopedslides) / this.params.slidespergroup) : this.snapgrid.length;
if (this.params.loop ? ((s = math.ceil((this.activeindex - this.loopedslides) / this.params.slidespergroup)) > a - 1 - 2 * this.loopedslides && (s -= a - 2 * this.loopedslides), s > n - 1 && (s -= n), s < 0 && "bullets" !== this.params.paginationtype && (s = n + s)) : s = void 0 !== this.snapindex ? this.snapindex : this.activeindex || 0, "bullets" === i.type && this.pagination.bullets && this.pagination.bullets.length > 0) {
var o = this.pagination.bullets;
if (i.dynamicbullets && (this.pagination.bulletsize = o.eq(0)[this.ishorizontal() ? "outerwidth" : "outerheight"](!0), r.css(this.ishorizontal() ? "width" : "height", 5 * this.pagination.bulletsize + "px")), o.removeclass(i.bulletactiveclass + " " + i.bulletactiveclass + "-next " + i.bulletactiveclass + "-next-next " + i.bulletactiveclass + "-prev " + i.bulletactiveclass + "-prev-prev"), r.length > 1) o.each(function (e, a) {
var r = t(a);
r.index() === s && (r.addclass(i.bulletactiveclass), i.dynamicbullets && (r.prev().addclass(i.bulletactiveclass + "-prev").prev().addclass(i.bulletactiveclass + "-prev-prev"), r.next().addclass(i.bulletactiveclass + "-next").next().addclass(i.bulletactiveclass + "-next-next")))
});
else {
var l = o.eq(s);
l.addclass(i.bulletactiveclass), i.dynamicbullets && (l.prev().addclass(i.bulletactiveclass + "-prev").prev().addclass(i.bulletactiveclass + "-prev-prev"), l.next().addclass(i.bulletactiveclass + "-next").next().addclass(i.bulletactiveclass + "-next-next"))
}
if (i.dynamicbullets) {
var d = math.min(o.length, 5),
h = (this.pagination.bulletsize * d - this.pagination.bulletsize) / 2 - s * this.pagination.bulletsize,
p = e ? "right" : "left";
o.css(this.ishorizontal() ? p : "top", h + "px")
}
}
if ("fraction" === i.type && (r.find("." + i.currentclass).text(s + 1), r.find("." + i.totalclass).text(n)), "progressbar" === i.type) {
var c = (s + 1) / n,
u = c,
f = 1;
this.ishorizontal() || (f = c, u = 1), r.find("." + i.progressbarfillclass).transform("translate3d(0,0,0) scalex(" + u + ") scaley(" + f + ")").transition(this.params.speed)
}
"custom" === i.type && i.rendercustom ? (r.html(i.rendercustom(this, s + 1, n)), this.emit("paginationrender", this, r[0])) : this.emit("paginationupdate", this, r[0]), r[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](i.lockclass)
}
},
render: function () {
var e = this.params.pagination;
if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length,
i = this.pagination.$el,
s = "";
if ("bullets" === e.type) {
for (var a = this.params.loop ? math.ceil((t - 2 * this.loopedslides) / this.params.slidespergroup) : this.snapgrid.length, r = 0; r < a; r += 1) e.renderbullet ? s += e.renderbullet.call(this, r, e.bulletclass) : s += "<" + e.bulletelement + ' class="' + e.bulletclass + '">' + e.bulletelement + ">";
i.html(s), this.pagination.bullets = i.find("." + e.bulletclass)
}
"fraction" === e.type && (s = e.renderfraction ? e.renderfraction.call(this, e.currentclass, e.totalclass) : ' / ', i.html(s)), "progressbar" === e.type && (s = e.renderprogressbar ? e.renderprogressbar.call(this, e.progressbarfillclass) : '', i.html(s)), "custom" !== e.type && this.emit("paginationrender", this.pagination.$el[0])
}
},
init: function () {
var e = this,
i = e.params.pagination;
if (i.el) {
var s = t(i.el);
0 !== s.length && (e.params.uniquenavelements && "string" == typeof i.el && s.length > 1 && 1 === e.$el.find(i.el).length && (s = e.$el.find(i.el)), "bullets" === i.type && i.clickable && s.addclass(i.clickableclass), s.addclass(i.modifierclass + i.type), "bullets" === i.type && i.dynamicbullets && s.addclass("" + i.modifierclass + i.type + "-dynamic"), i.clickable && s.on("click", "." + i.bulletclass, function (i) {
i.preventdefault();
var s = t(this).index() * e.params.slidespergroup;
e.params.loop && (s += e.loopedslides), e.slideto(s)
}), l.extend(e.pagination, {
$el: s,
el: s[0]
}))
}
},
destroy: function () {
var e = this.params.pagination;
if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
var t = this.pagination.$el;
t.removeclass(e.hiddenclass), t.removeclass(e.modifierclass + e.type), this.pagination.bullets && this.pagination.bullets.removeclass(e.bulletactiveclass), e.clickable && t.off("click", "." + e.bulletclass)
}
}
},
f = {
settranslate: function () {
if (this.params.scrollbar.el && this.scrollbar.el) {
var e = this.scrollbar,
t = this.rtl,
i = this.progress,
s = e.dragsize,
a = e.tracksize,
r = e.$dragel,
n = e.$el,
o = this.params.scrollbar,
l = s,
d = (a - s) * i;
t && this.ishorizontal() ? (d = -d) > 0 ? (l = s - d, d = 0) : -d + s > a && (l = a + d) : d < 0 ? (l = s + d, d = 0) : d + s > a && (l = a - d), this.ishorizontal() ? (h.transforms3d ? r.transform("translate3d(" + d + "px, 0, 0)") : r.transform("translatex(" + d + "px)"), r[0].style.width = l + "px") : (h.transforms3d ? r.transform("translate3d(0px, " + d + "px, 0)") : r.transform("translatey(" + d + "px)"), r[0].style.height = l + "px"), o.hide && (cleartimeout(this.scrollbar.timeout), n[0].style.opacity = 1, this.scrollbar.timeout = settimeout(function () {
n[0].style.opacity = 0, n.transition(400)
}, 1e3))
}
},
settransition: function (e) {
this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragel.transition(e)
},
updatesize: function () {
if (this.params.scrollbar.el && this.scrollbar.el) {
var e = this.scrollbar,
t = e.$dragel,
i = e.$el;
t[0].style.width = "", t[0].style.height = "";
var s, a = this.ishorizontal() ? i[0].offsetwidth : i[0].offsetheight,
r = this.size / this.virtualsize,
n = r * (a / this.size);
s = "auto" === this.params.scrollbar.dragsize ? a * r : parseint(this.params.scrollbar.dragsize, 10), this.ishorizontal() ? t[0].style.width = s + "px" : t[0].style.height = s + "px", i[0].style.display = r >= 1 ? "none" : "", this.params.scrollbarhide && (i[0].style.opacity = 0), l.extend(e, {
tracksize: a,
divider: r,
movedivider: n,
dragsize: s
}), e.$el[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](this.params.scrollbar.lockclass)
}
},
setdragposition: function (e) {
var t, i = this.scrollbar,
s = i.$el,
a = i.dragsize,
r = i.tracksize;
t = ((this.ishorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex || e.clientx : "touchstart" === e.type || "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey || e.clienty) - s.offset()[this.ishorizontal() ? "left" : "top"] - a / 2) / (r - a), t = math.max(math.min(t, 1), 0), this.rtl && (t = 1 - t);
var n = this.mintranslate() + (this.maxtranslate() - this.mintranslate()) * t;
this.updateprogress(n), this.settranslate(n), this.updateactiveindex(), this.updateslidesclasses()
},
ondragstart: function (e) {
var t = this.params.scrollbar,
i = this.scrollbar,
s = this.$wrapperel,
a = i.$el,
r = i.$dragel;
this.scrollbar.istouched = !0, e.preventdefault(), e.stoppropagation(), s.transition(100), r.transition(100), i.setdragposition(e), cleartimeout(this.scrollbar.dragtimeout), a.transition(0), t.hide && a.css("opacity", 1), this.emit("scrollbardragstart", e)
},
ondragmove: function (e) {
var t = this.scrollbar,
i = this.$wrapperel,
s = t.$el,
a = t.$dragel;
this.scrollbar.istouched && (e.preventdefault ? e.preventdefault() : e.returnvalue = !1, t.setdragposition(e), i.transition(0), s.transition(0), a.transition(0), this.emit("scrollbardragmove", e))
},
ondragend: function (e) {
var t = this.params.scrollbar,
i = this.scrollbar.$el;
this.scrollbar.istouched && (this.scrollbar.istouched = !1, t.hide && (cleartimeout(this.scrollbar.dragtimeout), this.scrollbar.dragtimeout = l.nexttick(function () {
i.css("opacity", 0), i.transition(400)
}, 1e3)), this.emit("scrollbardragend", e), t.snaponrelease && this.slidereset())
},
enabledraggable: function () {
if (this.params.scrollbar.el) {
var e = this.scrollbar.$el,
i = h.touch ? e[0] : document;
e.on(this.scrollbar.dragevents.start, this.scrollbar.ondragstart), t(i).on(this.scrollbar.dragevents.move, this.scrollbar.ondragmove), t(i).on(this.scrollbar.dragevents.end, this.scrollbar.ondragend)
}
},
disabledraggable: function () {
if (this.params.scrollbar.el) {
var e = this.scrollbar.$el,
i = h.touch ? e[0] : document;
e.off(this.scrollbar.dragevents.start), t(i).off(this.scrollbar.dragevents.move), t(i).off(this.scrollbar.dragevents.end)
}
},
init: function () {
var e = this;
if (e.params.scrollbar.el) {
var i = e.scrollbar,
s = e.$el,
a = e.touchevents,
r = e.params.scrollbar,
n = t(r.el);
e.params.uniquenavelements && "string" == typeof r.el && n.length > 1 && 1 === s.find(r.el).length && (n = s.find(r.el));
var o = n.find(".swiper-scrollbar-drag");
0 === o.length && (o = t(''), n.append(o)), e.scrollbar.dragevents = !1 !== e.params.simulatetouch || h.touch ? a : {
start: "mousedown",
move: "mousemove",
end: "mouseup"
}, l.extend(i, {
$el: n,
el: n[0],
$dragel: o,
dragel: o[0]
}), r.draggable && i.enabledraggable()
}
},
destroy: function () {
this.scrollbar.disabledraggable()
}
},
w = {
settransform: function (e, i) {
var s = this.rtl,
a = t(e),
r = s ? -1 : 1,
n = a.attr("data-swiper-parallax") || "0",
o = a.attr("data-swiper-parallax-x"),
l = a.attr("data-swiper-parallax-y"),
d = a.attr("data-swiper-parallax-scale"),
h = a.attr("data-swiper-parallax-opacity");
if (o || l ? (o = o || "0", l = l || "0") : this.ishorizontal() ? (o = n, l = "0") : (l = n, o = "0"), o = o.indexof("%") >= 0 ? parseint(o, 10) * i * r + "%" : o * i * r + "px", l = l.indexof("%") >= 0 ? parseint(l, 10) * i + "%" : l * i + "px", void 0 !== h && null !== h) {
var p = h - (h - 1) * (1 - math.abs(i));
a[0].style.opacity = p
}
if (void 0 === d || null === d) a.transform("translate3d(" + o + ", " + l + ", 0px)");
else {
var c = d - (d - 1) * (1 - math.abs(i));
a.transform("translate3d(" + o + ", " + l + ", 0px) scale(" + c + ")")
}
},
settranslate: function () {
var e = this,
i = e.$el,
s = e.slides,
a = e.progress,
r = e.snapgrid;
i.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function (t, i) {
e.parallax.settransform(i, a)
}), s.each(function (i, s) {
var n = s.progress;
e.params.slidespergroup > 1 && "auto" !== e.params.slidesperview && (n += math.ceil(i / 2) - a * (r.length - 1)), n = math.min(math.max(n, -1), 1), t(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function (t, i) {
e.parallax.settransform(i, n)
})
})
},
settransition: function (e) {
void 0 === e && (e = this.params.speed);
this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function (i, s) {
var a = t(s),
r = parseint(a.attr("data-swiper-parallax-duration"), 10) || e;
0 === e && (r = 0), a.transition(r)
})
}
},
j = {
getdistancebetweentouches: function (e) {
if (e.targettouches.length < 2) return 1;
var t = e.targettouches[0].pagex,
i = e.targettouches[0].pagey,
s = e.targettouches[1].pagex,
a = e.targettouches[1].pagey;
return math.sqrt(math.pow(s - t, 2) + math.pow(a - i, 2))
},
ongesturestart: function (e) {
var i = this.params.zoom,
s = this.zoom,
a = s.gesture;
if (s.fakegesturetouched = !1, s.fakegesturemoved = !1, !h.gestures) {
if ("touchstart" !== e.type || "touchstart" === e.type && e.targettouches.length < 2) return;
s.fakegesturetouched = !0, a.scalestart = j.getdistancebetweentouches(e)
}
a.$slideel && a.$slideel.length || (a.$slideel = t(this), 0 === a.$slideel.length && (a.$slideel = this.slides.eq(this.activeindex)), a.$imageel = a.$slideel.find("img, svg, canvas"), a.$imagewrapel = a.$imageel.parent("." + i.containerclass), a.maxratio = a.$imagewrapel.attr("data-swiper-zoom") || i.maxratio, 0 !== a.$imagewrapel.length) ? (a.$imageel.transition(0), this.zoom.isscaling = !0) : a.$imageel = void 0
},
ongesturechange: function (e) {
var t = this.params.zoom,
i = this.zoom,
s = i.gesture;
if (!h.gestures) {
if ("touchmove" !== e.type || "touchmove" === e.type && e.targettouches.length < 2) return;
i.fakegesturemoved = !0, s.scalemove = j.getdistancebetweentouches(e)
}
s.$imageel && 0 !== s.$imageel.length && (h.gestures ? this.zoom.scale = e.scale * i.currentscale : i.scale = s.scalemove / s.scalestart * i.currentscale, i.scale > s.maxratio && (i.scale = s.maxratio - 1 + math.pow(i.scale - s.maxratio + 1, .5)), i.scale < t.minratio && (i.scale = t.minratio + 1 - math.pow(t.minratio - i.scale + 1, .5)), s.$imageel.transform("translate3d(0,0,0) scale(" + i.scale + ")"))
},
ongestureend: function (e) {
var t = this.params.zoom,
i = this.zoom,
s = i.gesture;
if (!h.gestures) {
if (!i.fakegesturetouched || !i.fakegesturemoved) return;
if ("touchend" !== e.type || "touchend" === e.type && e.changedtouches.length < 2 && !y.android) return;
i.fakegesturetouched = !1, i.fakegesturemoved = !1
}
s.$imageel && 0 !== s.$imageel.length && (i.scale = math.max(math.min(i.scale, s.maxratio), t.minratio), s.$imageel.transition(this.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"), i.currentscale = i.scale, i.isscaling = !1, 1 === i.scale && (s.$slideel = void 0))
},
ontouchstart: function (e) {
var t = this.zoom,
i = t.gesture,
s = t.image;
i.$imageel && 0 !== i.$imageel.length && (s.istouched || (y.android && e.preventdefault(), s.istouched = !0, s.touchesstart.x = "touchstart" === e.type ? e.targettouches[0].pagex : e.pagex, s.touchesstart.y = "touchstart" === e.type ? e.targettouches[0].pagey : e.pagey))
},
ontouchmove: function (e) {
var t = this.zoom,
i = t.gesture,
s = t.image,
a = t.velocity;
if (i.$imageel && 0 !== i.$imageel.length && (this.allowclick = !1, s.istouched && i.$slideel)) {
s.ismoved || (s.width = i.$imageel[0].offsetwidth, s.height = i.$imageel[0].offsetheight, s.startx = l.gettranslate(i.$imagewrapel[0], "x") || 0, s.starty = l.gettranslate(i.$imagewrapel[0], "y") || 0, i.slidewidth = i.$slideel[0].offsetwidth, i.slideheight = i.$slideel[0].offsetheight, i.$imagewrapel.transition(0), this.rtl && (s.startx = -s.startx), this.rtl && (s.starty = -s.starty));
var r = s.width * t.scale,
n = s.height * t.scale;
if (!(r < i.slidewidth && n < i.slideheight)) {
if (s.minx = math.min(i.slidewidth / 2 - r / 2, 0), s.maxx = -s.minx, s.miny = math.min(i.slideheight / 2 - n / 2, 0), s.maxy = -s.miny, s.touchescurrent.x = "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex, s.touchescurrent.y = "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey, !s.ismoved && !t.isscaling) {
if (this.ishorizontal() && (math.floor(s.minx) === math.floor(s.startx) && s.touchescurrent.x < s.touchesstart.x || math.floor(s.maxx) === math.floor(s.startx) && s.touchescurrent.x > s.touchesstart.x)) return void(s.istouched = !1);
if (!this.ishorizontal() && (math.floor(s.miny) === math.floor(s.starty) && s.touchescurrent.y < s.touchesstart.y || math.floor(s.maxy) === math.floor(s.starty) && s.touchescurrent.y > s.touchesstart.y)) return void(s.istouched = !1)
}
e.preventdefault(), e.stoppropagation(), s.ismoved = !0, s.currentx = s.touchescurrent.x - s.touchesstart.x + s.startx, s.currenty = s.touchescurrent.y - s.touchesstart.y + s.starty, s.currentx < s.minx && (s.currentx = s.minx + 1 - math.pow(s.minx - s.currentx + 1, .8)), s.currentx > s.maxx && (s.currentx = s.maxx - 1 + math.pow(s.currentx - s.maxx + 1, .8)), s.currenty < s.miny && (s.currenty = s.miny + 1 - math.pow(s.miny - s.currenty + 1, .8)), s.currenty > s.maxy && (s.currenty = s.maxy - 1 + math.pow(s.currenty - s.maxy + 1, .8)), a.prevpositionx || (a.prevpositionx = s.touchescurrent.x), a.prevpositiony || (a.prevpositiony = s.touchescurrent.y), a.prevtime || (a.prevtime = date.now()), a.x = (s.touchescurrent.x - a.prevpositionx) / (date.now() - a.prevtime) / 2, a.y = (s.touchescurrent.y - a.prevpositiony) / (date.now() - a.prevtime) / 2, math.abs(s.touchescurrent.x - a.prevpositionx) < 2 && (a.x = 0), math.abs(s.touchescurrent.y - a.prevpositiony) < 2 && (a.y = 0), a.prevpositionx = s.touchescurrent.x, a.prevpositiony = s.touchescurrent.y, a.prevtime = date.now(), i.$imagewrapel.transform("translate3d(" + s.currentx + "px, " + s.currenty + "px,0)")
}
}
},
ontouchend: function () {
var e = this.zoom,
t = e.gesture,
i = e.image,
s = e.velocity;
if (t.$imageel && 0 !== t.$imageel.length) {
if (!i.istouched || !i.ismoved) return i.istouched = !1, void(i.ismoved = !1);
i.istouched = !1, i.ismoved = !1;
var a = 300,
r = 300,
n = s.x * a,
o = i.currentx + n,
l = s.y * r,
d = i.currenty + l;
0 !== s.x && (a = math.abs((o - i.currentx) / s.x)), 0 !== s.y && (r = math.abs((d - i.currenty) / s.y));
var h = math.max(a, r);
i.currentx = o, i.currenty = d;
var p = i.width * e.scale,
c = i.height * e.scale;
i.minx = math.min(t.slidewidth / 2 - p / 2, 0), i.maxx = -i.minx, i.miny = math.min(t.slideheight / 2 - c / 2, 0), i.maxy = -i.miny, i.currentx = math.max(math.min(i.currentx, i.maxx), i.minx), i.currenty = math.max(math.min(i.currenty, i.maxy), i.miny), t.$imagewrapel.transition(h).transform("translate3d(" + i.currentx + "px, " + i.currenty + "px,0)")
}
},
ontransitionend: function () {
var e = this.zoom,
t = e.gesture;
t.$slideel && this.previousindex !== this.activeindex && (t.$imageel.transform("translate3d(0,0,0) scale(1)"), t.$imagewrapel.transform("translate3d(0,0,0)"), t.$slideel = void 0, t.$imageel = void 0, t.$imagewrapel = void 0, e.scale = 1, e.currentscale = 1)
},
toggle: function (e) {
var t = this.zoom;
t.scale && 1 !== t.scale ? t.out() : t.in(e)
},
in: function (e) {
var i, s, a, r, n, o, l, d, h, p, c, u, f, v, m, g, b = this.zoom,
w = this.params.zoom,
y = b.gesture,
x = b.image;
(y.$slideel || (y.$slideel = this.clickedslide ? t(this.clickedslide) : this.slides.eq(this.activeindex), y.$imageel = y.$slideel.find("img, svg, canvas"), y.$imagewrapel = y.$imageel.parent("." + w.containerclass)), y.$imageel && 0 !== y.$imageel.length) && (y.$slideel.addclass("" + w.zoomedslideclass), void 0 === x.touchesstart.x && e ? (i = "touchend" === e.type ? e.changedtouches[0].pagex : e.pagex, s = "touchend" === e.type ? e.changedtouches[0].pagey : e.pagey) : (i = x.touchesstart.x, s = x.touchesstart.y), b.scale = y.$imagewrapel.attr("data-swiper-zoom") || w.maxratio, b.currentscale = y.$imagewrapel.attr("data-swiper-zoom") || w.maxratio, e ? (m = y.$slideel[0].offsetwidth, g = y.$slideel[0].offsetheight, a = y.$slideel.offset().left + m / 2 - i, r = y.$slideel.offset().top + g / 2 - s, l = y.$imageel[0].offsetwidth, d = y.$imageel[0].offsetheight, h = l * b.scale, p = d * b.scale, f = -(c = math.min(m / 2 - h / 2, 0)), v = -(u = math.min(g / 2 - p / 2, 0)), n = a * b.scale, o = r * b.scale, n < c && (n = c), n > f && (n = f), o < u && (o = u), o > v && (o = v)) : (n = 0, o = 0), y.$imagewrapel.transition(300).transform("translate3d(" + n + "px, " + o + "px,0)"), y.$imageel.transition(300).transform("translate3d(0,0,0) scale(" + b.scale + ")"))
},
out: function () {
var e = this.zoom,
i = this.params.zoom,
s = e.gesture;
s.$slideel || (s.$slideel = this.clickedslide ? t(this.clickedslide) : this.slides.eq(this.activeindex), s.$imageel = s.$slideel.find("img, svg, canvas"), s.$imagewrapel = s.$imageel.parent("." + i.containerclass)), s.$imageel && 0 !== s.$imageel.length && (e.scale = 1, e.currentscale = 1, s.$imagewrapel.transition(300).transform("translate3d(0,0,0)"), s.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"), s.$slideel.removeclass("" + i.zoomedslideclass), s.$slideel = void 0)
},
enable: function () {
var e = this,
i = e.zoom;
if (!i.enabled) {
i.enabled = !0;
var s = e.slides,
a = !("touchstart" !== e.touchevents.start || !h.passivelistener || !e.params.passivelisteners) && {
passive: !0,
capture: !1
};
h.gestures ? (s.on("gesturestart", i.ongesturestart, a), s.on("gesturechange", i.ongesturechange, a), s.on("gestureend", i.ongestureend, a)) : "touchstart" === e.touchevents.start && (s.on(e.touchevents.start, i.ongesturestart, a), s.on(e.touchevents.move, i.ongesturechange, a), s.on(e.touchevents.end, i.ongestureend, a)), e.slides.each(function (s, a) {
var r = t(a);
r.find("." + e.params.zoom.containerclass).length > 0 && r.on(e.touchevents.move, i.ontouchmove)
})
}
},
disable: function () {
var e = this,
i = e.zoom;
if (i.enabled) {
e.zoom.enabled = !1;
var s = e.slides,
a = !("touchstart" !== e.touchevents.start || !h.passivelistener || !e.params.passivelisteners) && {
passive: !0,
capture: !1
};
h.gestures ? (s.off("gesturestart", i.ongesturestart, a), s.off("gesturechange", i.ongesturechange, a), s.off("gestureend", i.ongestureend, a)) : "touchstart" === e.touchevents.start && (s.off(e.touchevents.start, i.ongesturestart, a), s.off(e.touchevents.move, i.ongesturechange, a), s.off(e.touchevents.end, i.ongestureend, a)), e.slides.each(function (s, a) {
var r = t(a);
r.find("." + e.params.zoom.containerclass).length > 0 && r.off(e.touchevents.move, i.ontouchmove)
})
}
}
},
q = {
loadinslide: function (e, i) {
void 0 === i && (i = !0);
var s = this,
a = s.params.lazy;
if (void 0 !== e && 0 !== s.slides.length) {
var r = s.virtual && s.params.virtual.enabled ? s.$wrapperel.children("." + s.params.slideclass + '[data-swiper-slide-index="' + e + '"]') : s.slides.eq(e),
n = r.find("." + a.elementclass + ":not(." + a.loadedclass + "):not(." + a.loadingclass + ")");
!r.hasclass(a.elementclass) || r.hasclass(a.loadedclass) || r.hasclass(a.loadingclass) || (n = n.add(r[0])), 0 !== n.length && n.each(function (e, n) {
var o = t(n);
o.addclass(a.loadingclass);
var l = o.attr("data-background"),
d = o.attr("data-src"),
h = o.attr("data-srcset"),
p = o.attr("data-sizes");
s.loadimage(o[0], d || l, h, p, !1, function () {
if (void 0 !== s && null !== s && s && (!s || s.params) && !s.destroyed) {
if (l ? (o.css("background-image", 'url("' + l + '")'), o.removeattr("data-background")) : (h && (o.attr("srcset", h), o.removeattr("data-srcset")), p && (o.attr("sizes", p), o.removeattr("data-sizes")), d && (o.attr("src", d), o.removeattr("data-src"))), o.addclass(a.loadedclass).removeclass(a.loadingclass), r.find("." + a.preloaderclass).remove(), s.params.loop && i) {
var e = r.attr("data-swiper-slide-index");
if (r.hasclass(s.params.slideduplicateclass)) {
var t = s.$wrapperel.children('[data-swiper-slide-index="' + e + '"]:not(.' + s.params.slideduplicateclass + ")");
s.lazy.loadinslide(t.index(), !1)
} else {
var n = s.$wrapperel.children("." + s.params.slideduplicateclass + '[data-swiper-slide-index="' + e + '"]');
s.lazy.loadinslide(n.index(), !1)
}
}
s.emit("lazyimageready", r[0], o[0])
}
}), s.emit("lazyimageload", r[0], o[0])
})
}
},
load: function () {
var e = this,
i = e.$wrapperel,
s = e.params,
a = e.slides,
r = e.activeindex,
n = e.virtual && s.virtual.enabled,
o = s.lazy,
l = s.slidesperview;
function d(e) {
if (n) {
if (i.children("." + s.slideclass + '[data-swiper-slide-index="' + e + '"]').length) return !0
} else if (a[e]) return !0;
return !1
}
function h(e) {
return n ? t(e).attr("data-swiper-slide-index") : t(e).index()
}
if ("auto" === l && (l = 0), e.lazy.initialimageloaded || (e.lazy.initialimageloaded = !0), e.params.watchslidesvisibility) i.children("." + s.slidevisibleclass).each(function (i, s) {
var a = n ? t(s).attr("data-swiper-slide-index") : t(s).index();
e.lazy.loadinslide(a)
});
else if (l > 1)
for (var p = r; p < r + l; p += 1) d(p) && e.lazy.loadinslide(p);
else e.lazy.loadinslide(r);
if (o.loadprevnext)
if (l > 1 || o.loadprevnextamount && o.loadprevnextamount > 1) {
for (var c = o.loadprevnextamount, u = l, f = math.min(r + u + math.max(c, u), a.length), v = math.max(r - math.max(u, c), 0), m = r + l; m < f; m += 1) d(m) && e.lazy.loadinslide(m);
for (var g = v; g < r; g += 1) d(g) && e.lazy.loadinslide(g)
} else {
var b = i.children("." + s.slidenextclass);
b.length > 0 && e.lazy.loadinslide(h(b));
var w = i.children("." + s.slideprevclass);
w.length > 0 && e.lazy.loadinslide(h(w))
}
}
},
k = {
linearspline: function (e, t) {
var i, s, a, r, n, o = function (e, t) {
for (s = -1, i = e.length; i - s > 1;) e[a = i + s >> 1] <= t ? s = a : i = a;
return i
};
return this.x = e, this.y = t, this.lastindex = e.length - 1, this.interpolate = function (e) {
return e ? (n = o(this.x, e), r = n - 1, (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) + this.y[r]) : 0
}, this
},
getinterpolatefunction: function (e) {
this.controller.spline || (this.controller.spline = this.params.loop ? new k.linearspline(this.slidesgrid, e.slidesgrid) : new k.linearspline(this.snapgrid, e.snapgrid))
},
settranslate: function (e, t) {
var i, s, a = this,
r = a.controller.control;
function n(e) {
var t = e.rtl && "horizontal" === e.params.direction ? -a.translate : a.translate;
"slide" === a.params.controller.by && (a.controller.getinterpolatefunction(e), s = -a.controller.spline.interpolate(-t)), s && "container" !== a.params.controller.by || (i = (e.maxtranslate() - e.mintranslate()) / (a.maxtranslate() - a.mintranslate()), s = (t - a.mintranslate()) * i + e.mintranslate()), a.params.controller.inverse && (s = e.maxtranslate() - s), e.updateprogress(s), e.settranslate(s, a), e.updateactiveindex(), e.updateslidesclasses()
}
if (array.isarray(r))
for (var o = 0; o < r.length; o += 1) r[o] !== t && r[o] instanceof k && n(r[o]);
else r instanceof k && t !== r && n(r)
},
settransition: function (e, t) {
var i, s = this,
a = s.controller.control;
function r(t) {
t.settransition(e, s), 0 !== e && (t.transitionstart(), t.$wrapperel.transitionend(function () {
a && (t.params.loop && "slide" === s.params.controller.by && t.loopfix(), t.transitionend())
}))
}
if (array.isarray(a))
for (i = 0; i < a.length; i += 1) a[i] !== t && a[i] instanceof k && r(a[i]);
else a instanceof k && t !== a && r(a)
}
},
u = {
makeelfocusable: function (e) {
return e.attr("tabindex", "0"), e
},
addelrole: function (e, t) {
return e.attr("role", t), e
},
addellabel: function (e, t) {
return e.attr("aria-label", t), e
},
disableel: function (e) {
return e.attr("aria-disabled", !0), e
},
enableel: function (e) {
return e.attr("aria-disabled", !1), e
},
onenterkey: function (e) {
var i = this.params.a11y;
if (13 === e.keycode) {
var s = t(e.target);
this.navigation && this.navigation.$nextel && s.is(this.navigation.$nextel) && (this.isend && !this.params.loop || this.slidenext(), this.isend ? this.a11y.notify(i.lastslidemessage) : this.a11y.notify(i.nextslidemessage)), this.navigation && this.navigation.$prevel && s.is(this.navigation.$prevel) && (this.isbeginning && !this.params.loop || this.slideprev(), this.isbeginning ? this.a11y.notify(i.firstslidemessage) : this.a11y.notify(i.prevslidemessage)), this.pagination && s.is("." + this.params.pagination.bulletclass) && s[0].click()
}
},
notify: function (e) {
var t = this.a11y.liveregion;
0 !== t.length && (t.html(""), t.html(e))
},
updatenavigation: function () {
if (!this.params.loop) {
var e = this.navigation,
t = e.$nextel,
i = e.$prevel;
i && i.length > 0 && (this.isbeginning ? this.a11y.disableel(i) : this.a11y.enableel(i)), t && t.length > 0 && (this.isend ? this.a11y.disableel(t) : this.a11y.enableel(t))
}
},
updatepagination: function () {
var e = this,
i = e.params.a11y;
e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each(function (s, a) {
var r = t(a);
e.a11y.makeelfocusable(r), e.a11y.addelrole(r, "button"), e.a11y.addellabel(r, i.paginationbulletmessage.replace(/{{index}}/, r.index() + 1))
})
},
init: function () {
this.$el.append(this.a11y.liveregion);
var e, t, i = this.params.a11y;
this.navigation && this.navigation.$nextel && (e = this.navigation.$nextel), this.navigation && this.navigation.$prevel && (t = this.navigation.$prevel), e && (this.a11y.makeelfocusable(e), this.a11y.addelrole(e, "button"), this.a11y.addellabel(e, i.nextslidemessage), e.on("keydown", this.a11y.onenterkey)), t && (this.a11y.makeelfocusable(t), this.a11y.addelrole(t, "button"), this.a11y.addellabel(t, i.prevslidemessage), t.on("keydown", this.a11y.onenterkey)), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.on("keydown", "." + this.params.pagination.bulletclass, this.a11y.onenterkey)
},
destroy: function () {
var e, t;
this.a11y.liveregion && this.a11y.liveregion.length > 0 && this.a11y.liveregion.remove(), this.navigation && this.navigation.$nextel && (e = this.navigation.$nextel), this.navigation && this.navigation.$prevel && (t = this.navigation.$prevel), e && e.off("keydown", this.a11y.onenterkey), t && t.off("keydown", this.a11y.onenterkey), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.off("keydown", "." + this.params.pagination.bulletclass, this.a11y.onenterkey)
}
},
_ = {
init: function () {
if (this.params.history) {
if (!o.history || !o.history.pushstate) return this.params.history.enabled = !1, void(this.params.hashnavigation.enabled = !0);
var e = this.history;
e.initialized = !0, e.paths = _.getpathvalues(), (e.paths.key || e.paths.value) && (e.scrolltoslide(0, e.paths.value, this.params.runcallbacksoninit), this.params.history.replacestate || o.addeventlistener("popstate", this.history.sethistorypopstate))
}
},
destroy: function () {
this.params.history.replacestate || o.removeeventlistener("popstate", this.history.sethistorypopstate)
},
sethistorypopstate: function () {
this.history.paths = _.getpathvalues(), this.history.scrolltoslide(this.params.speed, this.history.paths.value, !1)
},
getpathvalues: function () {
var e = o.location.pathname.slice(1).split("/").filter(function (e) {
return "" !== e
}),
t = e.length;
return {
key: e[t - 2],
value: e[t - 1]
}
},
sethistory: function (e, t) {
if (this.history.initialized && this.params.history.enabled) {
var i = this.slides.eq(t),
s = _.slugify(i.attr("data-history"));
o.location.pathname.includes(e) || (s = e + "/" + s);
var a = o.history.state;
a && a.value === s || (this.params.history.replacestate ? o.history.replacestate({
value: s
}, null, s) : o.history.pushstate({
value: s
}, null, s))
}
},
slugify: function (e) {
return e.tostring().tolowercase().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "")
},
scrolltoslide: function (e, t, i) {
if (t)
for (var s = 0, a = this.slides.length; s < a; s += 1) {
var r = this.slides.eq(s);
if (_.slugify(r.attr("data-history")) === t && !r.hasclass(this.params.slideduplicateclass)) {
var n = r.index();
this.slideto(n, e, i)
}
} else this.slideto(0, e, i)
}
},
z = {
onhashcange: function () {
var e = d.location.hash.replace("#", "");
e !== this.slides.eq(this.activeindex).attr("data-hash") && this.slideto(this.$wrapperel.children("." + this.params.slideclass + '[data-hash="' + e + '"]').index())
},
sethash: function () {
if (this.hashnavigation.initialized && this.params.hashnavigation.enabled)
if (this.params.hashnavigation.replacestate && o.history && o.history.replacestate) o.history.replacestate(null, null, "#" + this.slides.eq(this.activeindex).attr("data-hash") || "");
else {
var e = this.slides.eq(this.activeindex),
t = e.attr("data-hash") || e.attr("data-history");
d.location.hash = t || ""
}
},
init: function () {
if (!(!this.params.hashnavigation.enabled || this.params.history && this.params.history.enabled)) {
this.hashnavigation.initialized = !0;
var e = d.location.hash.replace("#", "");
if (e)
for (var i = 0, s = this.slides.length; i < s; i += 1) {
var a = this.slides.eq(i);
if ((a.attr("data-hash") || a.attr("data-history")) === e && !a.hasclass(this.params.slideduplicateclass)) {
var r = a.index();
this.slideto(r, 0, this.params.runcallbacksoninit, !0)
}
}
this.params.hashnavigation.watchstate && t(o).on("hashchange", this.hashnavigation.onhashcange)
}
},
destroy: function () {
this.params.hashnavigation.watchstate && t(o).off("hashchange", this.hashnavigation.onhashcange)
}
},
q = {
run: function () {
var e = this,
t = e.slides.eq(e.activeindex),
i = e.params.autoplay.delay;
t.attr("data-swiper-autoplay") && (i = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), e.autoplay.timeout = l.nexttick(function () {
e.params.autoplay.reversedirection ? e.params.loop ? (e.loopfix(), e.slideprev(e.params.speed, !0, !0), e.emit("autoplay")) : e.isbeginning ? e.params.autoplay.stoponlastslide ? e.autoplay.stop() : (e.slideto(e.slides.length - 1, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slideprev(e.params.speed, !0, !0), e.emit("autoplay")) : e.params.loop ? (e.loopfix(), e.slidenext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isend ? e.params.autoplay.stoponlastslide ? e.autoplay.stop() : (e.slideto(0, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slidenext(e.params.speed, !0, !0), e.emit("autoplay"))
}, i)
},
start: function () {
return void 0 === this.autoplay.timeout && (!this.autoplay.running && (this.autoplay.running = !0, this.emit("autoplaystart"), this.autoplay.run(), !0))
},
stop: function () {
return !!this.autoplay.running && (void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (cleartimeout(this.autoplay.timeout), this.autoplay.timeout = void 0), this.autoplay.running = !1, this.emit("autoplaystop"), !0))
},
pause: function (e) {
var t = this;
t.autoplay.running && (t.autoplay.paused || (t.autoplay.timeout && cleartimeout(t.autoplay.timeout), t.autoplay.paused = !0, 0 !== e && t.params.autoplay.waitfortransition ? t.$wrapperel.transitionend(function () {
t && !t.destroyed && (t.autoplay.paused = !1, t.autoplay.running ? t.autoplay.run() : t.autoplay.stop())
}) : (t.autoplay.paused = !1, t.autoplay.run())))
}
},
j = {
settranslate: function () {
for (var e = this.slides, t = 0; t < e.length; t += 1) {
var i = this.slides.eq(t),
s = -i[0].swiperslideoffset;
this.params.virtualtranslate || (s -= this.translate);
var a = 0;
this.ishorizontal() || (a = s, s = 0);
var r = this.params.fadeeffect.crossfade ? math.max(1 - math.abs(i[0].progress), 0) : 1 + math.min(math.max(i[0].progress, -1), 0);
i.css({
opacity: r
}).transform("translate3d(" + s + "px, " + a + "px, 0px)")
}
},
settransition: function (e) {
var t = this,
i = t.slides,
s = t.$wrapperel;
if (i.transition(e), t.params.virtualtranslate && 0 !== e) {
var a = !1;
i.transitionend(function () {
if (!a && t && !t.destroyed) {
a = !0, t.animating = !1;
for (var e = ["webkittransitionend", "transitionend"], i = 0; i < e.length; i += 1) s.trigger(e[i])
}
})
}
}
},
ee = {
settranslate: function () {
var e, i = this.$el,
s = this.$wrapperel,
a = this.slides,
r = this.width,
n = this.height,
o = this.rtl,
l = this.size,
d = this.params.cubeeffect,
h = this.ishorizontal(),
p = this.virtual && this.params.virtual.enabled,
c = 0;
d.shadow && (h ? (0 === (e = s.find(".swiper-cube-shadow")).length && (e = t(''), s.append(e)), e.css({
height: r + "px"
})) : 0 === (e = i.find(".swiper-cube-shadow")).length && (e = t(''), i.append(e)));
for (var u = 0; u < a.length; u += 1) {
var f = a.eq(u),
v = u;
p && (v = parseint(f.attr("data-swiper-slide-index"), 10));
var m = 90 * v,
g = math.floor(m / 360);
o && (m = -m, g = math.floor(-m / 360));
var b = math.max(math.min(f[0].progress, 1), -1),
w = 0,
y = 0,
x = 0;
v % 4 == 0 ? (w = 4 * -g * l, x = 0) : (v - 1) % 4 == 0 ? (w = 0, x = 4 * -g * l) : (v - 2) % 4 == 0 ? (w = l + 4 * g * l, x = l) : (v - 3) % 4 == 0 && (w = -l, x = 3 * l + 4 * l * g), o && (w = -w), h || (y = w, w = 0);
var t = "rotatex(" + (h ? 0 : -m) + "deg) rotatey(" + (h ? m : 0) + "deg) translate3d(" + w + "px, " + y + "px, " + x + "px)";
if (b <= 1 && b > -1 && (c = 90 * v + 90 * b, o && (c = 90 * -v - 90 * b)), f.transform(t), d.slideshadows) {
var e = h ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"),
s = h ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom");
0 === e.length && (e = t(''), f.append(e)), 0 === s.length && (s = t(''), f.append(s)), e.length && (e[0].style.opacity = math.max(-b, 0)), s.length && (s[0].style.opacity = math.max(b, 0))
}
}
if (s.css({
"-webkit-transform-origin": "50% 50% -" + l / 2 + "px",
"-moz-transform-origin": "50% 50% -" + l / 2 + "px",
"-ms-transform-origin": "50% 50% -" + l / 2 + "px",
"transform-origin": "50% 50% -" + l / 2 + "px"
}), d.shadow)
if (h) e.transform("translate3d(0px, " + (r / 2 + d.shadowoffset) + "px, " + -r / 2 + "px) rotatex(90deg) rotatez(0deg) scale(" + d.shadowscale + ")");
else {
var c = math.abs(c) - 90 * math.floor(math.abs(c) / 90),
m = 1.5 - (math.sin(2 * c * math.pi / 360) / 2 + math.cos(2 * c * math.pi / 360) / 2),
z = d.shadowscale,
p = d.shadowscale / m,
k = d.shadowoffset;
e.transform("scale3d(" + z + ", 1, " + p + ") translate3d(0px, " + (n / 2 + k) + "px, " + -n / 2 / p + "px) rotatex(-90deg)")
} var $ = i.issafari || i.isuiwebview ? -l / 2 : 0;
s.transform("translate3d(0px,0," + $ + "px) rotatex(" + (this.ishorizontal() ? 0 : c) + "deg) rotatey(" + (this.ishorizontal() ? -c : 0) + "deg)")
},
settransition: function (e) {
var t = this.$el;
this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), this.params.cubeeffect.shadow && !this.ishorizontal() && t.find(".swiper-cube-shadow").transition(e)
}
},
te = {
settranslate: function () {
for (var e = this.slides, i = 0; i < e.length; i += 1) {
var s = e.eq(i),
a = s[0].progress;
this.params.flipeffect.limitrotation && (a = math.max(math.min(s[0].progress, 1), -1));
var r = -180 * a,
n = 0,
o = -s[0].swiperslideoffset,
l = 0;
if (this.ishorizontal() ? this.rtl && (r = -r) : (l = o, o = 0, n = -r, r = 0), s[0].style.zindex = -math.abs(math.round(a)) + e.length, this.params.flipeffect.slideshadows) {
var d = this.ishorizontal() ? s.find(".swiper-slide-shadow-left") : s.find(".swiper-slide-shadow-top"),
h = this.ishorizontal() ? s.find(".swiper-slide-shadow-right") : s.find(".swiper-slide-shadow-bottom");
0 === d.length && (d = t(''), s.append(d)), 0 === h.length && (h = t(''), s.append(h)), d.length && (d[0].style.opacity = math.max(-a, 0)), h.length && (h[0].style.opacity = math.max(a, 0))
}
s.transform("translate3d(" + o + "px, " + l + "px, 0px) rotatex(" + n + "deg) rotatey(" + r + "deg)")
}
},
settransition: function (e) {
var t = this,
i = t.slides,
s = t.activeindex,
a = t.$wrapperel;
if (i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.virtualtranslate && 0 !== e) {
var r = !1;
i.eq(s).transitionend(function () {
if (!r && t && !t.destroyed) {
r = !0, t.animating = !1;
for (var e = ["webkittransitionend", "transitionend"], i = 0; i < e.length; i += 1) a.trigger(e[i])
}
})
}
}
},
ie = {
settranslate: function () {
for (var e = this.width, i = this.height, s = this.slides, a = this.$wrapperel, r = this.slidessizesgrid, n = this.params.coverfloweffect, o = this.ishorizontal(), l = this.translate, d = o ? e / 2 - l : i / 2 - l, p = o ? n.rotate : -n.rotate, c = n.depth, u = 0, f = s.length; u < f; u += 1) {
var v = s.eq(u),
m = r[u],
g = (d - v[0].swiperslideoffset - m / 2) / m * n.modifier,
b = o ? p * g : 0,
w = o ? 0 : p * g,
y = -c * math.abs(g),
x = o ? 0 : n.stretch * g,
t = o ? n.stretch * g : 0;
math.abs(t) < .001 && (t = 0), math.abs(x) < .001 && (x = 0), math.abs(y) < .001 && (y = 0), math.abs(b) < .001 && (b = 0), math.abs(w) < .001 && (w = 0);
var e = "translate3d(" + t + "px," + x + "px," + y + "px) rotatex(" + w + "deg) rotatey(" + b + "deg)";
if (v.transform(e), v[0].style.zindex = 1 - math.abs(math.round(g)), n.slideshadows) {
var s = o ? v.find(".swiper-slide-shadow-left") : v.find(".swiper-slide-shadow-top"),
c = o ? v.find(".swiper-slide-shadow-right") : v.find(".swiper-slide-shadow-bottom");
0 === s.length && (s = t(''), v.append(s)), 0 === c.length && (c = t(''), v.append(c)), s.length && (s[0].style.opacity = g > 0 ? g : 0), c.length && (c[0].style.opacity = -g > 0 ? -g : 0)
}
}(h.pointerevents || h.prefixedpointerevents) && (a[0].style.perspectiveorigin = d + "px 50%")
},
settransition: function (e) {
this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)
}
},
se = [$, l, d, o, h, x, g, {
name: "mousewheel",
params: {
mousewheel: {
enabled: !1,
releaseonedges: !1,
invert: !1,
forcetoaxis: !1,
sensitivity: 1,
eventstarged: "container"
}
},
create: function () {
l.extend(this, {
mousewheel: {
enabled: !1,
enable: b.enable.bind(this),
disable: b.disable.bind(this),
handle: b.handle.bind(this),
lastscrolltime: l.now()
}
})
},
on: {
init: function () {
this.params.mousewheel.enabled && this.mousewheel.enable()
},
destroy: function () {
this.mousewheel.enabled && this.mousewheel.disable()
}
}
}, {
name: "navigation",
params: {
navigation: {
nextel: null,
prevel: null,
hideonclick: !1,
disabledclass: "swiper-button-disabled",
hiddenclass: "swiper-button-hidden",
lockclass: "swiper-button-lock"
}
},
create: function () {
l.extend(this, {
navigation: {
init: v.init.bind(this),
update: v.update.bind(this),
destroy: v.destroy.bind(this)
}
})
},
on: {
init: function () {
this.navigation.init(), this.navigation.update()
},
toedge: function () {
this.navigation.update()
},
fromedge: function () {
this.navigation.update()
},
destroy: function () {
this.navigation.destroy()
},
click: function (e) {
var i = this.navigation,
s = i.$nextel,
a = i.$prevel;
!this.params.navigation.hideonclick || t(e.target).is(a) || t(e.target).is(s) || (s && s.toggleclass(this.params.navigation.hiddenclass), a && a.toggleclass(this.params.navigation.hiddenclass))
}
}
}, {
name: "pagination",
params: {
pagination: {
el: null,
bulletelement: "span",
clickable: !1,
hideonclick: !1,
renderbullet: null,
renderprogressbar: null,
renderfraction: null,
rendercustom: null,
type: "bullets",
dynamicbullets: !1,
bulletclass: "swiper-pagination-bullet",
bulletactiveclass: "swiper-pagination-bullet-active",
modifierclass: "swiper-pagination-",
currentclass: "swiper-pagination-current",
totalclass: "swiper-pagination-total",
hiddenclass: "swiper-pagination-hidden",
progressbarfillclass: "swiper-pagination-progressbar-fill",
clickableclass: "swiper-pagination-clickable",
lockclass: "swiper-pagination-lock"
}
},
create: function () {
l.extend(this, {
pagination: {
init: r.init.bind(this),
render: r.render.bind(this),
update: r.update.bind(this),
destroy: r.destroy.bind(this)
}
})
},
on: {
init: function () {
this.pagination.init(), this.pagination.render(), this.pagination.update()
},
activeindexchange: function () {
this.params.loop ? this.pagination.update() : void 0 === this.snapindex && this.pagination.update()
},
snapindexchange: function () {
this.params.loop || this.pagination.update()
},
slideslengthchange: function () {
this.params.loop && (this.pagination.render(), this.pagination.update())
},
snapgridlengthchange: function () {
this.params.loop || (this.pagination.render(), this.pagination.update())
},
destroy: function () {
this.pagination.destroy()
},
click: function (e) {
this.params.pagination.el && this.params.pagination.hideonclick && this.pagination.$el.length > 0 && !t(e.target).hasclass(this.params.pagination.bulletclass) && this.pagination.$el.toggleclass(this.params.pagination.hiddenclass)
}
}
}, {
name: "scrollbar",
params: {
scrollbar: {
el: null,
dragsize: "auto",
hide: !1,
draggable: !1,
snaponrelease: !0,
lockclass: "swiper-scrollbar-lock"
}
},
create: function () {
l.extend(this, {
scrollbar: {
init: f.init.bind(this),
destroy: f.destroy.bind(this),
updatesize: f.updatesize.bind(this),
settranslate: f.settranslate.bind(this),
settransition: f.settransition.bind(this),
enabledraggable: f.enabledraggable.bind(this),
disabledraggable: f.disabledraggable.bind(this),
setdragposition: f.setdragposition.bind(this),
ondragstart: f.ondragstart.bind(this),
ondragmove: f.ondragmove.bind(this),
ondragend: f.ondragend.bind(this),
istouched: !1,
timeout: null,
dragtimeout: null
}
})
},
on: {
init: function () {
this.scrollbar.init(), this.scrollbar.updatesize(), this.scrollbar.settranslate()
},
update: function () {
this.scrollbar.updatesize()
},
resize: function () {
this.scrollbar.updatesize()
},
observerupdate: function () {
this.scrollbar.updatesize()
},
settranslate: function () {
this.scrollbar.settranslate()
},
settransition: function (e) {
this.scrollbar.settransition(e)
},
destroy: function () {
this.scrollbar.destroy()
}
}
}, {
name: "parallax",
params: {
parallax: {
enabled: !1
}
},
create: function () {
l.extend(this, {
parallax: {
settransform: w.settransform.bind(this),
settranslate: w.settranslate.bind(this),
settransition: w.settransition.bind(this)
}
})
},
on: {
beforeinit: function () {
this.params.watchslidesprogress = !0
},
init: function () {
this.params.parallax && this.parallax.settranslate()
},
settranslate: function () {
this.params.parallax && this.parallax.settranslate()
},
settransition: function (e) {
this.params.parallax && this.parallax.settransition(e)
}
}
}, {
name: "zoom",
params: {
zoom: {
enabled: !1,
maxratio: 3,
minratio: 1,
toggle: !0,
containerclass: "swiper-zoom-container",
zoomedslideclass: "swiper-slide-zoomed"
}
},
create: function () {
var e = this,
t = {
enabled: !1,
scale: 1,
currentscale: 1,
isscaling: !1,
gesture: {
$slideel: void 0,
slidewidth: void 0,
slideheight: void 0,
$imageel: void 0,
$imagewrapel: void 0,
maxratio: 3
},
image: {
istouched: void 0,
ismoved: void 0,
currentx: void 0,
currenty: void 0,
minx: void 0,
miny: void 0,
maxx: void 0,
maxy: void 0,
width: void 0,
height: void 0,
startx: void 0,
starty: void 0,
touchesstart: {},
touchescurrent: {}
},
velocity: {
x: void 0,
y: void 0,
prevpositionx: void 0,
prevpositiony: void 0,
prevtime: void 0
}
};
"ongesturestart ongesturechange ongestureend ontouchstart ontouchmove ontouchend ontransitionend toggle enable disable in out".split(" ").foreach(function (i) {
t[i] = j[i].bind(e)
}), l.extend(e, {
zoom: t
})
},
on: {
init: function () {
this.params.zoom.enabled && this.zoom.enable()
},
destroy: function () {
this.zoom.disable()
},
touchstart: function (e) {
this.zoom.enabled && this.zoom.ontouchstart(e)
},
touchend: function (e) {
this.zoom.enabled && this.zoom.ontouchend(e)
},
doubletap: function (e) {
this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e)
},
transitionend: function () {
this.zoom.enabled && this.params.zoom.enabled && this.zoom.ontransitionend()
}
}
}, {
name: "lazy",
params: {
lazy: {
enabled: !1,
loadprevnext: !1,
loadprevnextamount: 1,
loadontransitionstart: !1,
elementclass: "swiper-lazy",
loadingclass: "swiper-lazy-loading",
loadedclass: "swiper-lazy-loaded",
preloaderclass: "swiper-lazy-preloader"
}
},
create: function () {
l.extend(this, {
lazy: {
initialimageloaded: !1,
load: q.load.bind(this),
loadinslide: q.loadinslide.bind(this)
}
})
},
on: {
beforeinit: function () {
this.params.lazy.enabled && this.params.preloadimages && (this.params.preloadimages = !1)
},
init: function () {
this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialslide && this.lazy.load()
},
scroll: function () {
this.params.freemode && !this.params.freemodesticky && this.lazy.load()
},
resize: function () {
this.params.lazy.enabled && this.lazy.load()
},
scrollbardragmove: function () {
this.params.lazy.enabled && this.lazy.load()
},
transitionstart: function () {
this.params.lazy.enabled && (this.params.lazy.loadontransitionstart || !this.params.lazy.loadontransitionstart && !this.lazy.initialimageloaded) && this.lazy.load()
},
transitionend: function () {
this.params.lazy.enabled && !this.params.lazy.loadontransitionstart && this.lazy.load()
}
}
}, {
name: "controller",
params: {
controller: {
control: void 0,
inverse: !1,
by: "slide"
}
},
create: function () {
l.extend(this, {
controller: {
control: this.params.controller.control,
getinterpolatefunction: k.getinterpolatefunction.bind(this),
settranslate: k.settranslate.bind(this),
settransition: k.settransition.bind(this)
}
})
},
on: {
update: function () {
this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline)
},
resize: function () {
this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline)
},
observerupdate: function () {
this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline)
},
settranslate: function (e, t) {
this.controller.control && this.controller.settranslate(e, t)
},
settransition: function (e, t) {
this.controller.control && this.controller.settransition(e, t)
}
}
}, {
name: "a11y",
params: {
a11y: {
enabled: !1,
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}}"
}
},
create: function () {
var e = this;
l.extend(e, {
a11y: {
liveregion: t('')
}
}), object.keys(u).foreach(function (t) {
e.a11y[t] = u[t].bind(e)
})
},
on: {
init: function () {
this.params.a11y.enabled && (this.a11y.init(), this.a11y.updatenavigation())
},
toedge: function () {
this.params.a11y.enabled && this.a11y.updatenavigation()
},
fromedge: function () {
this.params.a11y.enabled && this.a11y.updatenavigation()
},
paginationupdate: function () {
this.params.a11y.enabled && this.a11y.updatepagination()
},
destroy: function () {
this.params.a11y.enabled && this.a11y.destroy()
}
}
}, {
name: "history",
params: {
history: {
enabled: !1,
replacestate: !1,
key: "slides"
}
},
create: function () {
l.extend(this, {
history: {
init: _.init.bind(this),
sethistory: _.sethistory.bind(this),
sethistorypopstate: _.sethistorypopstate.bind(this),
scrolltoslide: _.scrolltoslide.bind(this),
destroy: _.destroy.bind(this)
}
})
},
on: {
init: function () {
this.params.history.enabled && this.history.init()
},
destroy: function () {
this.params.history.enabled && this.history.destroy()
},
transitionend: function () {
this.history.initialized && this.history.sethistory(this.params.history.key, this.activeindex)
}
}
}, {
name: "hash-navigation",
params: {
hashnavigation: {
enabled: !1,
replacestate: !1,
watchstate: !1
}
},
create: function () {
l.extend(this, {
hashnavigation: {
initialized: !1,
init: z.init.bind(this),
destroy: z.destroy.bind(this),
sethash: z.sethash.bind(this),
onhashcange: z.onhashcange.bind(this)
}
})
},
on: {
init: function () {
this.params.hashnavigation.enabled && this.hashnavigation.init()
},
destroy: function () {
this.params.hashnavigation.enabled && this.hashnavigation.destroy()
},
transitionend: function () {
this.hashnavigation.initialized && this.hashnavigation.sethash()
}
}
}, {
name: "autoplay",
params: {
autoplay: {
enabled: !1,
delay: 3e3,
waitfortransition: !0,
disableoninteraction: !0,
stoponlastslide: !1,
reversedirection: !1
}
},
create: function () {
l.extend(this, {
autoplay: {
running: !1,
paused: !1,
run: q.run.bind(this),
start: q.start.bind(this),
stop: q.stop.bind(this),
pause: q.pause.bind(this)
}
})
},
on: {
init: function () {
this.params.autoplay.enabled && this.autoplay.start()
},
beforetransitionstart: function (e, t) {
this.autoplay.running && (t || !this.params.autoplay.disableoninteraction ? this.autoplay.pause(e) : this.autoplay.stop())
},
sliderfirstmove: function () {
this.autoplay.running && (this.params.autoplay.disableoninteraction ? this.autoplay.stop() : this.autoplay.pause())
},
destroy: function () {
this.autoplay.running && this.autoplay.stop()
}
}
}, {
name: "effect-fade",
params: {
fadeeffect: {
crossfade: !1
}
},
create: function () {
l.extend(this, {
fadeeffect: {
settranslate: j.settranslate.bind(this),
settransition: j.settransition.bind(this)
}
})
},
on: {
beforeinit: function () {
if ("fade" === this.params.effect) {
this.classnames.push(this.params.containermodifierclass + "fade");
var e = {
slidesperview: 1,
slidespercolumn: 1,
slidespergroup: 1,
watchslidesprogress: !0,
spacebetween: 0,
virtualtranslate: !0
};
l.extend(this.params, e), l.extend(this.originalparams, e)
}
},
settranslate: function () {
"fade" === this.params.effect && this.fadeeffect.settranslate()
},
settransition: function (e) {
"fade" === this.params.effect && this.fadeeffect.settransition(e)
}
}
}, {
name: "effect-cube",
params: {
cubeeffect: {
slideshadows: !0,
shadow: !0,
shadowoffset: 20,
shadowscale: .94
}
},
create: function () {
l.extend(this, {
cubeeffect: {
settranslate: ee.settranslate.bind(this),
settransition: ee.settransition.bind(this)
}
})
},
on: {
beforeinit: function () {
if ("cube" === this.params.effect) {
this.classnames.push(this.params.containermodifierclass + "cube"), this.classnames.push(this.params.containermodifierclass + "3d");
var e = {
slidesperview: 1,
slidespercolumn: 1,
slidespergroup: 1,
watchslidesprogress: !0,
resistanceratio: 0,
spacebetween: 0,
centeredslides: !1,
virtualtranslate: !0
};
l.extend(this.params, e), l.extend(this.originalparams, e)
}
},
settranslate: function () {
"cube" === this.params.effect && this.cubeeffect.settranslate()
},
settransition: function (e) {
"cube" === this.params.effect && this.cubeeffect.settransition(e)
}
}
}, {
name: "effect-flip",
params: {
flipeffect: {
slideshadows: !0,
limitrotation: !0
}
},
create: function () {
l.extend(this, {
flipeffect: {
settranslate: te.settranslate.bind(this),
settransition: te.settransition.bind(this)
}
})
},
on: {
beforeinit: function () {
if ("flip" === this.params.effect) {
this.classnames.push(this.params.containermodifierclass + "flip"), this.classnames.push(this.params.containermodifierclass + "3d");
var e = {
slidesperview: 1,
slidespercolumn: 1,
slidespergroup: 1,
watchslidesprogress: !0,
spacebetween: 0,
virtualtranslate: !0
};
l.extend(this.params, e), l.extend(this.originalparams, e)
}
},
settranslate: function () {
"flip" === this.params.effect && this.flipeffect.settranslate()
},
settransition: function (e) {
"flip" === this.params.effect && this.flipeffect.settransition(e)
}
}
}, {
name: "effect-coverflow",
params: {
coverfloweffect: {
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideshadows: !0
}
},
create: function () {
l.extend(this, {
coverfloweffect: {
settranslate: ie.settranslate.bind(this),
settransition: ie.settransition.bind(this)
}
})
},
on: {
beforeinit: function () {
"coverflow" === this.params.effect && (this.classnames.push(this.params.containermodifierclass + "coverflow"), this.classnames.push(this.params.containermodifierclass + "3d"), this.params.watchslidesprogress = !0, this.originalparams.watchslidesprogress = !0)
},
settranslate: function () {
"coverflow" === this.params.effect && this.coverfloweffect.settranslate()
},
settransition: function (e) {
"coverflow" === this.params.effect && this.coverfloweffect.settransition(e)
}
}
}];
return void 0 === k.use && (k.use = k.class.use, k.installmodule = k.class.installmodule), k.use(se), k
});
//# sourcemappingurl=swiper.min.js.map