"use strict"; !
function(e) {
function i() {
return {
"127.0.0.1": "development",
localhost: "development",
"192.168.1.16": "development",
"dev.f2e.goldwind.com": "development"
} [location.hostname] || "production"
}
var t = {
development: {
search: "/mock/result.json",
list: "/mock/list.json",
article: "/mock/article.json",
photo: "/mock/photo.json",
file: "/mock/file.json",
timeline: "/mock/about/timeline.json",
"news-video": "/mock/news/video.json",
"news-about": "/mock/news/about.json",
"news-case": "/mock/news/case.json",
"news-user": "/mock/news/user.json",
"about-report": "/mock/about/report.json",
"invest-sheet": "/mock/invest/sheet.json",
faq: "/mock/invest/faq.json"
}
},
o = "http://gw-cn.bdc.goldwind.com.cn/";
t.production = {
search: o + "/goldwind/tbnewscontroller.do?querybykeyword",
list: o + "/goldwind/tbnewscontroller.do?querynewslist",
article: o + "/goldwind/tbnewscontroller.do?querynewsdetail",
photo: o + "/goldwind/tbnewscontroller.do?querynewsattach",
file: o + "/goldwind/tbnewscontroller.do?querynewsattach",
timeline: o + "/goldwind/tbnewscontroller.do?querybigevents&date=desc",
"news-video": o + "/goldwind/tbnewscontroller.do?querynewsattach",
"news-about": o + "/goldwind/tbnewscontroller.do?querynewsattach",
"news-case": o + "/goldwind/tbnewscontroller.do?querynewsattach",
"news-user": o + "/goldwind/tbnewscontroller.do?querynewsattach",
"about-report": "/mock/about/report.json",
"invest-sheet": o + "/goldwind/tbnewscontroller.do?querynewsattach",
faq: o + "/goldwind/tbnewscontroller.do?querynewslist"
},
"production" === i() && (vue.config.silent = !0, vue.config.productiontip = !1, vue.config.errorhandler = $.noop),
$.extend(e.common, {
getenv: i,
urlmap: t[i()]
})
} (app),
function(e) {
function i(e) {
var i = (e || location.search).slice(1).split("&"),
t = {};
return i.foreach(function(e) {
e = e.split("="),
t[e[0]] = decodeuricomponent(e[1] || "")
}),
json.parse(json.stringify(t))
}
function t(e) {
if (!isnan(e)) {
var i = parseint(e % 60),
t = parseint(e / 60 % 60),
o = parseint(e / 3600 % 24);
return (o = o < 10 ? "0" + o: o) + ":" + (t = t < 10 ? "0" + t: t) + ":" + (i = i < 10 ? "0" + i: i)
}
}
"production" === (0, e.common.getenv)() && (vue.config.silent = !0, vue.config.productiontip = !1, vue.config.errorhandler = $.noop),
$.extend(e.common, {
mountdialog: function(e, i) {
$.get(e.template,
function(t) {
$.extend(e, {
template: t
});
var o = new(vue.extend(e))({
el: document.createelement("div")
});
$("body").append(o.$el),
$.isfunction(i) && i(o)
})
},
asynccomponent: function o(e, i, t) {
var s = e.template;
o.cache = o.cache || {},
(o.cache[s] ? $.deferred().resolve(o.cache[s]).promise() : $.get(s)).then(function(t) {
o.cache[s] = t;
var n = $.extend({},
e, {
template: t
});
i(n)
}).fail(function(e, i, o) {
t(o)
})
},
getquery: i,
getdetail: function(t, o) {
var s = e.common.urlmap.article,
n = i();
$.getjson(s, n,
function(e) {
if (0 === e.status) {
var i = e.data;
for (var s in i) t[s] = i[s];
o && o()
}
})
},
sizeformat: function(e) {
var i = math.pow(1024, 3),
t = math.pow(1024, 2),
o = math.pow(1024, 1);
return e > i ? (e / i).tofixed(2) + "g": e > t ? (e / t).tofixed(2) + "m": e > o ? (e / o).tofixed(2) + "kb": e + "b"
},
formatduration: t,
getduration: function(e) {
e.foreach(function(e) {
var i = document.createelement("video");
i.addeventlistener("durationchange",
function() {
var o = t(i.duration);
vue.set(e, "duration", o)
}),
i.preload = "metadata",
i.src = e.url
})
},
urlrewrite: function() {
$("body").on("click", "a",
function(e) {
var i = $(this).attr("href");
"/" !== i[0] || ("/index.html" === i.slice( - 11) ? (e.preventdefault(), location.href = i.slice(0, -11) || "/") : i.indexof(".html") >= 0 && (e.preventdefault(), location.href = i.replace(".html", "")))
})
},
scrollintoview: function() {
$("a.button-down-light, a.button-down-dark").each(function() {
$(this).click(function(e) {
var i = $(this).attr("href");
"#" === i[0] && (e.preventdefault(), $("html, body").animate({
scrolltop: $(i).offset().top
},
600))
})
})
},
fullscreen: function() {
var e, i, t = $("html").hasclass("ie9");
function o() {
var o = $(window).width() > 768; ($(window).width() !== e || $(window).height() !== i) && (e = $(window).width(), i = $(window).height(), $("div.fullscreen-inner").each(function() {
if (!$(this).hasclass("fullscreen-static") && 1 !== $(this).data("skip")) {
var e, i = 0;
i += parseint($(this).css("padding-top")),
i += parseint($(this).css("padding-bottom")),
$(this).children().each(function() {
var e = $(this);
e.is(":visible") && (i += e.outerheight(!0))
}),
$(this).css("min-height", i + 0);
var s = $(this).find(".fullscreen-nav-even").length > 0,
n = $(window).height() / 100;
if (e = o ? s ? 1.3 * i: i + 30 * n: s ? 1.15 * i: i + 30 * n, $(this).closest(".fullscreen").css("min-height", e + 0), t) {
var r = 0;
$(this).find("dt").height("auto").each(function() {
r = math.max(r, $(this).height())
}).height(r)
}
}
}))
}
setinterval(o, 50),
o()
},
fixpaper: function() {
function e() {
var e = $(window).width() > 768;
$("div.paper-inner").each(function() {
var i = $(this),
t = i.find(".paper-pic"),
o = i.find(".paper-info"),
s = t.outerheight();
if (e) if (s < o.height()) {
var n = i.find("h2").outerheight(),
r = parsefloat(i.find("h2").next().css("margin-top"));
t.css("margin-top", n + r)
} else t.css("margin-top", 0)
})
}
setinterval(e, 50),
e()
},
ie: function() {
var e = parseint((/msie (\d+)/.exec(navigator.useragent.tolowercase()) || [])[1]);
return isnan(e) && (e = parseint((/trident\/.*; rv:(\d+)/.exec(navigator.useragent.tolowercase()) || [])[1])),
!isnan(e) && e
},
dateformat: function(e, i) {
if (i = i || "yyyy-mm-dd", "string" == typeof e) {
var t = e.match(/(\/date\((\d+)\)\/)/);
t && t.length >= 3 && (e = parseint(t[2]))
}
if (! (e = new date(e)) || "invalid date" === e.toutcstring()) return "";
var o = {
m: e.getmonth() + 1,
d: e.getdate(),
h: e.gethours(),
m: e.getminutes(),
s: e.getseconds(),
q: math.floor((e.getmonth() + 3) / 3),
s: e.getmilliseconds()
};
return i = i.replace(/([ymdhmsqs])+/g,
function(i, t) {
var s = o[t];
return void 0 !== s ? (i.length > 1 && (s = (s = "0" + s).substr(s.length - 2)), s) : "y" === t ? (e.getfullyear() + "").substr(4 - i.length) : i
})
}
})
} (app),
function(e) {
var i = e.common,
t = {
data: function() {
return {
busy: !0,
list: [],
count: 0,
limit: 10,
current: 1
}
},
components: {
pagination: function(e, t) {
var o = {
name: "pagination",
template: "/templates/pagination.html",
props: ["count", "limit", "current", "link-template"],
data: function() {
return {
visiblecount: 6
}
},
computed: {
pages: function() {
return math.ceil(this.count / this.limit)
},
list: function() {
return math.min(this.visiblecount, this.pages)
},
startpage: function() {
var e = this.current,
i = this.pages - e,
t = math.max(this.visiblecount - i, math.floor(this.list / 2));
return math.max(0, e - t)
}
},
methods: {
geturl: function(e) {
var i = this.linktemplate || "#__page__";
return i.replace(/__page__/g, e)
}
}
};
i.asynccomponent(o, e, t)
}
},
watch: {
params: {
handler: function() {
1 === this.current ? this.getdata() : this.current = 1
},
deep: !0
},
current: function() {
this.getdata()
}
},
created: function() {
this.getdata()
},
filters: {
dateformat: i.dateformat
},
methods: {
getdata: function() {
var e = this;
e.busy = !0;
var t = $.extend({
page: e.current
},
e.params),
o = i.urlmap[e.urlkey];
$.getjson(o, t,
function(i) {
if (0 === i.status) { ["list", "count", "limit"].foreach(function(t) {
e[t] = i.data[t]
})
}
}).always(function() {
e.busy = !1
})
},
pagechanged: function(e, i) {
this.current = e,
i && i.preventdefault()
},
enablepreview: function(e) {
return "pdf" === e
}
}
};
e.list = t
} (app),
function(e) {
var i;
e.header = function(e) {
new vue({
el: e,
data: {
toggle: !1,
search: !1,
headerenactive: !1
},
mounted: function() {
var e, t = this,
o = t.$el,
s = $(o);
i = $(".nav-toggle", o),
s.on("click", ".nav-sub a",
function() {
var e = $(this).closest(".nav-item");
settimeout(function() {
e.toggleclass("nav-item-selected")
},
0)
}),
s.on("click", ".nav-dropdown",
function(e) {
e.preventdefault(),
e.stoppropagation();
var i = $(this).closest(".nav-item"),
o = i.siblings(".nav-item-sm-selected");
o.length > 0 && (o.removeclass("nav-item-sm-selected"), o.each(function(e, i) {
t.slideup($(i).children(".nav-sub"))
})),
i.toggleclass("nav-item-sm-selected"),
t.slidetoggle(i.children(".nav-sub"))
}),
s.mousemove(function(i) {
t.ismobile() || (cleartimeout(e), e = settimeout(function() {
var e;
e = $(i.target).is(".nav-item") ? $(i.target) : $(i.target).closest(".nav-item"),
s.find(".nav-item-selected").removeclass("nav-item-selected"),
e.length > 0 && e.addclass("nav-item-selected")
},
20))
}),
s.mouseleave(function() {
t.ismobile() || (cleartimeout(e), s.find(".nav-item-selected").removeclass("nav-item-selected"))
}),
function(e) {
var i = 0,
t = 0,
o = 0,
s = 0,
n = 0;
function r() {
var r, l = document.documentelement.classname.indexof("noscroll") >= 0;
l || (i = e.offsetheight, o = window.pageyoffset, n = s - o, t = parseint($(e).attr("top") || 0) + n, o <= 0 ? (r = 0, $(e).removeclass("header-fixed")) : n > 0 ? (r = t > 0 ? 0 : t, $(e).addclass("header-fixed")) : n < 0 && (r = math.abs(t) > i ? -i: t), $(e).attr("top", r).css("transform", "translatey(" + r + "px)"), $(e).css("overflow", "hidden"), settimeout(function() {
$(e).css("overflow", "")
},
100), s = o)
}
window.addeventlistener("scroll", r),
settimeout(r, 100)
} (o)
},
watch: {
toggle: function(e) {
$("html").toggleclass("noscroll", e)
}
},
methods: {
ismobile: function() {
return i.is(":visible")
},
slideup: function(e) {
this.ismobile() && $(e).slideup()
},
slidedown: function(e) {
this.ismobile() && $(e).slidedown()
},
slidetoggle: function(e) {
this.ismobile() && $(e).slidetoggle()
},
closesearch: function() {
this.search = !1
}
},
directives: {
autofocus: {
inserted: function(e) {
e.focus()
}
}
}
})
}
} (app),
function(e) {
e.tab = function() {
$(".tab").each(function() {
var e = $(this).find(".tab-item");
$(this).find(".tab-hd").children().each(function(i) {
$(this).click(function(t) {
t.preventdefault(),
$(this).siblings().removeclass("selected").end().addclass("selected"),
e.eq(i).siblings().removeclass("selected").end().addclass("selected")
})
})
})
},
e.slidetab = function(e) {
var i = $(e).find(".slide-tab-bd");
i.slick({
arrows: !1,
adaptiveheight: !0
}),
i.on("afterchange",
function(i, t, o) {
$(e).find(".slide-tab-hd").children().eq(o).siblings().removeclass("selected").end().addclass("selected")
}),
$(e).find(".slide-tab-hd").children().each(function(e) {
$(this).click(function() {
$(this).siblings().removeclass("selected").end().addclass("selected"),
i.slick("slickgoto", e)
})
})
}
} (app),
function(e) {
"function" == typeof define && define.amd ? define(["jquery"], e) : "undefined" != typeof exports ? module.exports = e(require("jquery")) : e(jquery)
} (function(e) {
var i = window.slick || {}; (i = function() {
var i = 0;
return function(t, o) {
var s, n = this;
n.defaults = {
accessibility: !0,
adaptiveheight: !1,
appendarrows: e(t),
appenddots: e(t),
arrows: !0,
asnavfor: null,
prevarrow: '',
nextarrow: '',
autoplay: !1,
autoplayspeed: 3e3,
centermode: !1,
centerpadding: "50px",
cssease: "ease",
custompaging: function(i, t) {
return e('').text(t + 1)
},
dots: !1,
dotsclass: "slick-dots",
draggable: !0,
easing: "linear",
edgefriction: .35,
fade: !1,
focusonselect: !1,
focusonchange: !1,
infinite: !0,
initialslide: 0,
lazyload: "ondemand",
mobilefirst: !1,
pauseonhover: !0,
pauseonfocus: !0,
pauseondotshover: !1,
respondto: "window",
responsive: null,
rows: 1,
rtl: !1,
slide: "",
slidesperrow: 1,
slidestoshow: 1,
slidestoscroll: 1,
speed: 500,
swipe: !0,
swipetoslide: !1,
touchmove: !0,
touchthreshold: 5,
usecss: !0,
usetransform: !0,
variablewidth: !1,
vertical: !1,
verticalswiping: !1,
waitforanimate: !0,
zindex: 1e3
},
n.initials = {
animating: !1,
dragging: !1,
autoplaytimer: null,
currentdirection: 0,
currentleft: null,
currentslide: 0,
direction: 1,
$dots: null,
listwidth: null,
listheight: null,
loadindex: 0,
$nextarrow: null,
$prevarrow: null,
scrolling: !1,
slidecount: null,
slidewidth: null,
$slidetrack: null,
$slides: null,
sliding: !1,
slideoffset: 0,
swipeleft: null,
swiping: !1,
$list: null,
touchobject: {},
transformsenabled: !1,
unslicked: !1
},
e.extend(n, n.initials),
n.activebreakpoint = null,
n.animtype = null,
n.animprop = null,
n.breakpoints = [],
n.breakpointsettings = [],
n.csstransitions = !1,
n.focussed = !1,
n.interrupted = !1,
n.hidden = "hidden",
n.paused = !0,
n.positionprop = null,
n.respondto = null,
n.rowcount = 1,
n.shouldclick = !0,
n.$slider = e(t),
n.$slidescache = null,
n.transformtype = null,
n.transitiontype = null,
n.visibilitychange = "visibilitychange",
n.windowwidth = 0,
n.windowtimer = null,
s = e(t).data("slick") || {},
n.options = e.extend({},
n.defaults, o, s),
n.currentslide = n.options.initialslide,
n.originalsettings = n.options,
void 0 !== document.mozhidden ? (n.hidden = "mozhidden", n.visibilitychange = "mozvisibilitychange") : void 0 !== document.webkithidden && (n.hidden = "webkithidden", n.visibilitychange = "webkitvisibilitychange"),
n.autoplay = e.proxy(n.autoplay, n),
n.autoplayclear = e.proxy(n.autoplayclear, n),
n.autoplayiterator = e.proxy(n.autoplayiterator, n),
n.changeslide = e.proxy(n.changeslide, n),
n.clickhandler = e.proxy(n.clickhandler, n),
n.selecthandler = e.proxy(n.selecthandler, n),
n.setposition = e.proxy(n.setposition, n),
n.swipehandler = e.proxy(n.swipehandler, n),
n.draghandler = e.proxy(n.draghandler, n),
n.keyhandler = e.proxy(n.keyhandler, n),
n.instanceuid = i++,
n.htmlexpr = /^(?:\s*(<[\w\w]+>)[^>]*)$/,
n.registerbreakpoints(),
n.init(!0)
}
} ()).prototype.activateada = function() {
this.$slidetrack.find(".slick-active").attr({
"aria-hidden": "false"
}).find("a, input, button, select").attr({
tabindex: "0"
})
},
i.prototype.addslide = i.prototype.slickadd = function(i, t, o) {
var s = this;
if ("boolean" == typeof t) o = t,
t = null;
else if (t < 0 || t >= s.slidecount) return ! 1;
s.unload(),
"number" == typeof t ? 0 === t && 0 === s.$slides.length ? e(i).appendto(s.$slidetrack) : o ? e(i).insertbefore(s.$slides.eq(t)) : e(i).insertafter(s.$slides.eq(t)) : !0 === o ? e(i).prependto(s.$slidetrack) : e(i).appendto(s.$slidetrack),
s.$slides = s.$slidetrack.children(this.options.slide),
s.$slidetrack.children(this.options.slide).detach(),
s.$slidetrack.append(s.$slides),
s.$slides.each(function(i, t) {
e(t).attr("data-slick-index", i)
}),
s.$slidescache = s.$slides,
s.reinit()
},
i.prototype.animateheight = function() {
var e = this;
if (1 === e.options.slidestoshow && !0 === e.options.adaptiveheight && !1 === e.options.vertical) {
var i = e.$slides.eq(e.currentslide).outerheight(!0);
e.$list.animate({
height: i
},
e.options.speed)
}
},
i.prototype.animateslide = function(i, t) {
var o = {},
s = this;
s.animateheight(),
!0 === s.options.rtl && !1 === s.options.vertical && (i = -i),
!1 === s.transformsenabled ? !1 === s.options.vertical ? s.$slidetrack.animate({
left: i
},
s.options.speed, s.options.easing, t) : s.$slidetrack.animate({
top: i
},
s.options.speed, s.options.easing, t) : !1 === s.csstransitions ? (!0 === s.options.rtl && (s.currentleft = -s.currentleft), e({
animstart: s.currentleft
}).animate({
animstart: i
},
{
duration: s.options.speed,
easing: s.options.easing,
step: function(e) {
e = math.ceil(e),
!1 === s.options.vertical ? (o[s.animtype] = "translate(" + e + "px, 0px)", s.$slidetrack.css(o)) : (o[s.animtype] = "translate(0px," + e + "px)", s.$slidetrack.css(o))
},
complete: function() {
t && t.call()
}
})) : (s.applytransition(), i = math.ceil(i), !1 === s.options.vertical ? o[s.animtype] = "translate3d(" + i + "px, 0px, 0px)": o[s.animtype] = "translate3d(0px," + i + "px, 0px)", s.$slidetrack.css(o), t && settimeout(function() {
s.disabletransition(),
t.call()
},
s.options.speed))
},
i.prototype.getnavtarget = function() {
var i = this.options.asnavfor;
return i && null !== i && (i = e(i).not(this.$slider)),
i
},
i.prototype.asnavfor = function(i) {
var t = this.getnavtarget();
null !== t && "object" == typeof t && t.each(function() {
var t = e(this).slick("getslick");
t.unslicked || t.slidehandler(i, !0)
})
},
i.prototype.applytransition = function(e) {
var i = this,
t = {}; ! 1 === i.options.fade ? t[i.transitiontype] = i.transformtype + " " + i.options.speed + "ms " + i.options.cssease: t[i.transitiontype] = "opacity " + i.options.speed + "ms " + i.options.cssease,
!1 === i.options.fade ? i.$slidetrack.css(t) : i.$slides.eq(e).css(t)
},
i.prototype.autoplay = function() {
var e = this;
e.autoplayclear(),
e.slidecount > e.options.slidestoshow && (e.autoplaytimer = setinterval(e.autoplayiterator, e.options.autoplayspeed))
},
i.prototype.autoplayclear = function() {
this.autoplaytimer && clearinterval(this.autoplaytimer)
},
i.prototype.autoplayiterator = function() {
var e = this,
i = e.currentslide + e.options.slidestoscroll;
e.paused || e.interrupted || e.focussed || (!1 === e.options.infinite && (1 === e.direction && e.currentslide + 1 === e.slidecount - 1 ? e.direction = 0 : 0 === e.direction && (i = e.currentslide - e.options.slidestoscroll, e.currentslide - 1 == 0 && (e.direction = 1))), e.slidehandler(i))
},
i.prototype.buildarrows = function() {
var i = this; ! 0 === i.options.arrows && (i.$prevarrow = e(i.options.prevarrow).addclass("slick-arrow"), i.$nextarrow = e(i.options.nextarrow).addclass("slick-arrow"), i.slidecount > i.options.slidestoshow ? (i.$prevarrow.removeclass("slick-hidden").removeattr("aria-hidden tabindex"), i.$nextarrow.removeclass("slick-hidden").removeattr("aria-hidden tabindex"), i.htmlexpr.test(i.options.prevarrow) && i.$prevarrow.prependto(i.options.appendarrows), i.htmlexpr.test(i.options.nextarrow) && i.$nextarrow.appendto(i.options.appendarrows), !0 !== i.options.infinite && i.$prevarrow.addclass("slick-disabled").attr("aria-disabled", "true")) : i.$prevarrow.add(i.$nextarrow).addclass("slick-hidden").attr({
"aria-disabled": "true",
tabindex: "-1"
}))
},
i.prototype.builddots = function() {
var i, t, o = this;
if (!0 === o.options.dots) {
for (o.$slider.addclass("slick-dotted"), t = e("
").addclass(o.options.dotsclass), i = 0; i <= o.getdotcount(); i += 1) t.append(e("").append(o.options.custompaging.call(this, o, i)));
o.$dots = t.appendto(o.options.appenddots),
o.$dots.find("li").first().addclass("slick-active")
}
},
i.prototype.buildout = function() {
var i = this;
i.$slides = i.$slider.children(i.options.slide + ":not(.slick-cloned)").addclass("slick-slide"),
i.slidecount = i.$slides.length,
i.$slides.each(function(i, t) {
e(t).attr("data-slick-index", i).data("originalstyling", e(t).attr("style") || "")
}),
i.$slider.addclass("slick-slider"),
i.$slidetrack = 0 === i.slidecount ? e('').appendto(i.$slider) : i.$slides.wrapall('').parent(),
i.$list = i.$slidetrack.wrap('').parent(),
i.$slidetrack.css("opacity", 0),
!0 !== i.options.centermode && !0 !== i.options.swipetoslide || (i.options.slidestoscroll = 1),
e("img[data-lazy]", i.$slider).not("[src]").addclass("slick-loading"),
i.setupinfinite(),
i.buildarrows(),
i.builddots(),
i.updatedots(),
i.setslideclasses("number" == typeof i.currentslide ? i.currentslide: 0),
!0 === i.options.draggable && i.$list.addclass("draggable")
},
i.prototype.buildrows = function() {
var e, i, t, o, s, n, r, l = this;
if (o = document.createdocumentfragment(), n = l.$slider.children(), l.options.rows > 1) {
for (r = l.options.slidesperrow * l.options.rows, s = math.ceil(n.length / r), e = 0; e < s; e++) {
var a = document.createelement("div");
for (i = 0; i < l.options.rows; i++) {
var d = document.createelement("div");
for (t = 0; t < l.options.slidesperrow; t++) {
var c = e * r + (i * l.options.slidesperrow + t);
n.get(c) && d.appendchild(n.get(c))
}
a.appendchild(d)
}
o.appendchild(a)
}
l.$slider.empty().append(o),
l.$slider.children().children().children().css({
width: 100 / l.options.slidesperrow + "%",
display: "inline-block"
})
}
},
i.prototype.checkresponsive = function(i, t) {
var o, s, n, r = this,
l = !1,
a = r.$slider.width(),
d = window.innerwidth || e(window).width();
if ("window" === r.respondto ? n = d: "slider" === r.respondto ? n = a: "min" === r.respondto && (n = math.min(d, a)), r.options.responsive && r.options.responsive.length && null !== r.options.responsive) {
for (o in s = null, r.breakpoints) r.breakpoints.hasownproperty(o) && (!1 === r.originalsettings.mobilefirst ? n < r.breakpoints[o] && (s = r.breakpoints[o]) : n > r.breakpoints[o] && (s = r.breakpoints[o]));
null !== s ? null !== r.activebreakpoint ? (s !== r.activebreakpoint || t) && (r.activebreakpoint = s, "unslick" === r.breakpointsettings[s] ? r.unslick(s) : (r.options = e.extend({},
r.originalsettings, r.breakpointsettings[s]), !0 === i && (r.currentslide = r.options.initialslide), r.refresh(i)), l = s) : (r.activebreakpoint = s, "unslick" === r.breakpointsettings[s] ? r.unslick(s) : (r.options = e.extend({},
r.originalsettings, r.breakpointsettings[s]), !0 === i && (r.currentslide = r.options.initialslide), r.refresh(i)), l = s) : null !== r.activebreakpoint && (r.activebreakpoint = null, r.options = r.originalsettings, !0 === i && (r.currentslide = r.options.initialslide), r.refresh(i), l = s),
i || !1 === l || r.$slider.trigger("breakpoint", [r, l])
}
},
i.prototype.changeslide = function(i, t) {
var o, s, n = this,
r = e(i.currenttarget);
switch (r.is("a") && i.preventdefault(), r.is("li") || (r = r.closest("li")), o = n.slidecount % n.options.slidestoscroll != 0 ? 0 : (n.slidecount - n.currentslide) % n.options.slidestoscroll, i.data.message) {
case "previous":
s = 0 === o ? n.options.slidestoscroll: n.options.slidestoshow - o,
n.slidecount > n.options.slidestoshow && n.slidehandler(n.currentslide - s, !1, t);
break;
case "next":
s = 0 === o ? n.options.slidestoscroll: o,
n.slidecount > n.options.slidestoshow && n.slidehandler(n.currentslide + s, !1, t);
break;
case "index":
var l = 0 === i.data.index ? 0 : i.data.index || r.index() * n.options.slidestoscroll;
n.slidehandler(n.checknavigable(l), !1, t),
r.children().trigger("focus");
break;
default:
return
}
},
i.prototype.checknavigable = function(e) {
var i, t;
if (t = 0, e > (i = this.getnavigableindexes())[i.length - 1]) e = i[i.length - 1];
else for (var o in i) {
if (e < i[o]) {
e = t;
break
}
t = i[o]
}
return e
},
i.prototype.cleanupevents = function() {
var i = this;
i.options.dots && null !== i.$dots && (e("li", i.$dots).off("click.slick", i.changeslide).off("mouseenter.slick", e.proxy(i.interrupt, i, !0)).off("mouseleave.slick", e.proxy(i.interrupt, i, !1)), !0 === i.options.accessibility && i.$dots.off("keydown.slick", i.keyhandler)),
i.$slider.off("focus.slick blur.slick"),
!0 === i.options.arrows && i.slidecount > i.options.slidestoshow && (i.$prevarrow && i.$prevarrow.off("click.slick", i.changeslide), i.$nextarrow && i.$nextarrow.off("click.slick", i.changeslide), !0 === i.options.accessibility && (i.$prevarrow && i.$prevarrow.off("keydown.slick", i.keyhandler), i.$nextarrow && i.$nextarrow.off("keydown.slick", i.keyhandler))),
i.$list.off("touchstart.slick mousedown.slick", i.swipehandler),
i.$list.off("touchmove.slick mousemove.slick", i.swipehandler),
i.$list.off("touchend.slick mouseup.slick", i.swipehandler),
i.$list.off("touchcancel.slick mouseleave.slick", i.swipehandler),
i.$list.off("click.slick", i.clickhandler),
e(document).off(i.visibilitychange, i.visibility),
i.cleanupslideevents(),
!0 === i.options.accessibility && i.$list.off("keydown.slick", i.keyhandler),
!0 === i.options.focusonselect && e(i.$slidetrack).children().off("click.slick", i.selecthandler),
e(window).off("orientationchange.slick.slick-" + i.instanceuid, i.orientationchange),
e(window).off("resize.slick.slick-" + i.instanceuid, i.resize),
e("[draggable!=true]", i.$slidetrack).off("dragstart", i.preventdefault),
e(window).off("load.slick.slick-" + i.instanceuid, i.setposition)
},
i.prototype.cleanupslideevents = function() {
var i = this;
i.$list.off("mouseenter.slick", e.proxy(i.interrupt, i, !0)),
i.$list.off("mouseleave.slick", e.proxy(i.interrupt, i, !1))
},
i.prototype.cleanuprows = function() {
var e, i = this;
i.options.rows > 1 && ((e = i.$slides.children().children()).removeattr("style"), i.$slider.empty().append(e))
},
i.prototype.clickhandler = function(e) { ! 1 === this.shouldclick && (e.stopimmediatepropagation(), e.stoppropagation(), e.preventdefault())
},
i.prototype.destroy = function(i) {
var t = this;
t.autoplayclear(),
t.touchobject = {},
t.cleanupevents(),
e(".slick-cloned", t.$slider).detach(),
t.$dots && t.$dots.remove(),
t.$prevarrow && t.$prevarrow.length && (t.$prevarrow.removeclass("slick-disabled slick-arrow slick-hidden").removeattr("aria-hidden aria-disabled tabindex").css("display", ""), t.htmlexpr.test(t.options.prevarrow) && t.$prevarrow.remove()),
t.$nextarrow && t.$nextarrow.length && (t.$nextarrow.removeclass("slick-disabled slick-arrow slick-hidden").removeattr("aria-hidden aria-disabled tabindex").css("display", ""), t.htmlexpr.test(t.options.nextarrow) && t.$nextarrow.remove()),
t.$slides && (t.$slides.removeclass("slick-slide slick-active slick-center slick-visible slick-current").removeattr("aria-hidden").removeattr("data-slick-index").each(function() {
e(this).attr("style", e(this).data("originalstyling"))
}), t.$slidetrack.children(this.options.slide).detach(), t.$slidetrack.detach(), t.$list.detach(), t.$slider.append(t.$slides)),
t.cleanuprows(),
t.$slider.removeclass("slick-slider"),
t.$slider.removeclass("slick-initialized"),
t.$slider.removeclass("slick-dotted"),
t.unslicked = !0,
i || t.$slider.trigger("destroy", [t])
},
i.prototype.disabletransition = function(e) {
var i = this,
t = {};
t[i.transitiontype] = "",
!1 === i.options.fade ? i.$slidetrack.css(t) : i.$slides.eq(e).css(t)
},
i.prototype.fadeslide = function(e, i) {
var t = this; ! 1 === t.csstransitions ? (t.$slides.eq(e).css({
zindex: t.options.zindex
}), t.$slides.eq(e).animate({
opacity: 1
},
t.options.speed, t.options.easing, i)) : (t.applytransition(e), t.$slides.eq(e).css({
opacity: 1,
zindex: t.options.zindex
}), i && settimeout(function() {
t.disabletransition(e),
i.call()
},
t.options.speed))
},
i.prototype.fadeslideout = function(e) {
var i = this; ! 1 === i.csstransitions ? i.$slides.eq(e).animate({
opacity: 0,
zindex: i.options.zindex - 2
},
i.options.speed, i.options.easing) : (i.applytransition(e), i.$slides.eq(e).css({
opacity: 0,
zindex: i.options.zindex - 2
}))
},
i.prototype.filterslides = i.prototype.slickfilter = function(e) {
var i = this;
null !== e && (i.$slidescache = i.$slides, i.unload(), i.$slidetrack.children(this.options.slide).detach(), i.$slidescache.filter(e).appendto(i.$slidetrack), i.reinit())
},
i.prototype.focushandler = function() {
var i = this;
i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*",
function(t) {
t.stopimmediatepropagation();
var o = e(this);
settimeout(function() {
i.options.pauseonfocus && (i.focussed = o.is(":focus"), i.autoplay())
},
0)
})
},
i.prototype.getcurrent = i.prototype.slickcurrentslide = function() {
return this.currentslide
},
i.prototype.getdotcount = function() {
var e = this,
i = 0,
t = 0,
o = 0;
if (!0 === e.options.infinite) if (e.slidecount <= e.options.slidestoshow)++o;
else for (; i < e.slidecount;)++o,
i = t + e.options.slidestoscroll,
t += e.options.slidestoscroll <= e.options.slidestoshow ? e.options.slidestoscroll: e.options.slidestoshow;
else if (!0 === e.options.centermode) o = e.slidecount;
else if (e.options.asnavfor) for (; i < e.slidecount;)++o,
i = t + e.options.slidestoscroll,
t += e.options.slidestoscroll <= e.options.slidestoshow ? e.options.slidestoscroll: e.options.slidestoshow;
else o = 1 + math.ceil((e.slidecount - e.options.slidestoshow) / e.options.slidestoscroll);
return o - 1
},
i.prototype.getleft = function(e) {
var i, t, o, s, n = this,
r = 0;
return n.slideoffset = 0,
t = n.$slides.first().outerheight(!0),
!0 === n.options.infinite ? (n.slidecount > n.options.slidestoshow && (n.slideoffset = n.slidewidth * n.options.slidestoshow * -1, s = -1, !0 === n.options.vertical && !0 === n.options.centermode && (2 === n.options.slidestoshow ? s = -1.5 : 1 === n.options.slidestoshow && (s = -2)), r = t * n.options.slidestoshow * s), n.slidecount % n.options.slidestoscroll != 0 && e + n.options.slidestoscroll > n.slidecount && n.slidecount > n.options.slidestoshow && (e > n.slidecount ? (n.slideoffset = (n.options.slidestoshow - (e - n.slidecount)) * n.slidewidth * -1, r = (n.options.slidestoshow - (e - n.slidecount)) * t * -1) : (n.slideoffset = n.slidecount % n.options.slidestoscroll * n.slidewidth * -1, r = n.slidecount % n.options.slidestoscroll * t * -1))) : e + n.options.slidestoshow > n.slidecount && (n.slideoffset = (e + n.options.slidestoshow - n.slidecount) * n.slidewidth, r = (e + n.options.slidestoshow - n.slidecount) * t),
n.slidecount <= n.options.slidestoshow && (n.slideoffset = 0, r = 0),
!0 === n.options.centermode && n.slidecount <= n.options.slidestoshow ? n.slideoffset = n.slidewidth * math.floor(n.options.slidestoshow) / 2 - n.slidewidth * n.slidecount / 2 : !0 === n.options.centermode && !0 === n.options.infinite ? n.slideoffset += n.slidewidth * math.floor(n.options.slidestoshow / 2) - n.slidewidth: !0 === n.options.centermode && (n.slideoffset = 0, n.slideoffset += n.slidewidth * math.floor(n.options.slidestoshow / 2)),
i = !1 === n.options.vertical ? e * n.slidewidth * -1 + n.slideoffset: e * t * -1 + r,
!0 === n.options.variablewidth && (o = n.slidecount <= n.options.slidestoshow || !1 === n.options.infinite ? n.$slidetrack.children(".slick-slide").eq(e) : n.$slidetrack.children(".slick-slide").eq(e + n.options.slidestoshow), i = !0 === n.options.rtl ? o[0] ? -1 * (n.$slidetrack.width() - o[0].offsetleft - o.width()) : 0 : o[0] ? -1 * o[0].offsetleft: 0, !0 === n.options.centermode && (o = n.slidecount <= n.options.slidestoshow || !1 === n.options.infinite ? n.$slidetrack.children(".slick-slide").eq(e) : n.$slidetrack.children(".slick-slide").eq(e + n.options.slidestoshow + 1), i = !0 === n.options.rtl ? o[0] ? -1 * (n.$slidetrack.width() - o[0].offsetleft - o.width()) : 0 : o[0] ? -1 * o[0].offsetleft: 0, i += (n.$list.width() - o.outerwidth()) / 2)),
i
},
i.prototype.getoption = i.prototype.slickgetoption = function(e) {
return this.options[e]
},
i.prototype.getnavigableindexes = function() {
var e, i = this,
t = 0,
o = 0,
s = [];
for (!1 === i.options.infinite ? e = i.slidecount: (t = -1 * i.options.slidestoscroll, o = -1 * i.options.slidestoscroll, e = 2 * i.slidecount); t < e;) s.push(t),
t = o + i.options.slidestoscroll,
o += i.options.slidestoscroll <= i.options.slidestoshow ? i.options.slidestoscroll: i.options.slidestoshow;
return s
},
i.prototype.getslick = function() {
return this
},
i.prototype.getslidecount = function() {
var i, t, o = this;
return t = !0 === o.options.centermode ? o.slidewidth * math.floor(o.options.slidestoshow / 2) : 0,
!0 === o.options.swipetoslide ? (o.$slidetrack.find(".slick-slide").each(function(s, n) {
if (n.offsetleft - t + e(n).outerwidth() / 2 > -1 * o.swipeleft) return i = n,
!1
}), math.abs(e(i).attr("data-slick-index") - o.currentslide) || 1) : o.options.slidestoscroll
},
i.prototype.goto = i.prototype.slickgoto = function(e, i) {
this.changeslide({
data: {
message: "index",
index: parseint(e)
}
},
i)
},
i.prototype.init = function(i) {
var t = this;
e(t.$slider).hasclass("slick-initialized") || (e(t.$slider).addclass("slick-initialized"), t.buildrows(), t.buildout(), t.setprops(), t.startload(), t.loadslider(), t.initializeevents(), t.updatearrows(), t.updatedots(), t.checkresponsive(!0), t.focushandler()),
i && t.$slider.trigger("init", [t]),
!0 === t.options.accessibility && t.initada(),
t.options.autoplay && (t.paused = !1, t.autoplay())
},
i.prototype.initada = function() {
var i = this,
t = math.ceil(i.slidecount / i.options.slidestoshow),
o = i.getnavigableindexes().filter(function(e) {
return e >= 0 && e < i.slidecount
});
i.$slides.add(i.$slidetrack.find(".slick-cloned")).attr({
"aria-hidden": "true",
tabindex: "-1"
}).find("a, input, button, select").attr({
tabindex: "-1"
}),
null !== i.$dots && (i.$slides.not(i.$slidetrack.find(".slick-cloned")).each(function(t) {
var s = o.indexof(t);
e(this).attr({
role: "tabpanel",
id: "slick-slide" + i.instanceuid + t,
tabindex: -1
}),
-1 !== s && e(this).attr({
"aria-describedby": "slick-slide-control" + i.instanceuid + s
})
}), i.$dots.attr("role", "tablist").find("li").each(function(s) {
var n = o[s];
e(this).attr({
role: "presentation"
}),
e(this).find("button").first().attr({
role: "tab",
id: "slick-slide-control" + i.instanceuid + s,
"aria-controls": "slick-slide" + i.instanceuid + n,
"aria-label": s + 1 + " of " + t,
"aria-selected": null,
tabindex: "-1"
})
}).eq(i.currentslide).find("button").attr({
"aria-selected": "true",
tabindex: "0"
}).end());
for (var s = i.currentslide,
n = s + i.options.slidestoshow; s < n; s++) i.$slides.eq(s).attr("tabindex", 0);
i.activateada()
},
i.prototype.initarrowevents = function() {
var e = this; ! 0 === e.options.arrows && e.slidecount > e.options.slidestoshow && (e.$prevarrow.off("click.slick").on("click.slick", {
message: "previous"
},
e.changeslide), e.$nextarrow.off("click.slick").on("click.slick", {
message: "next"
},
e.changeslide), !0 === e.options.accessibility && (e.$prevarrow.on("keydown.slick", e.keyhandler), e.$nextarrow.on("keydown.slick", e.keyhandler)))
},
i.prototype.initdotevents = function() {
var i = this; ! 0 === i.options.dots && (e("li", i.$dots).on("click.slick", {
message: "index"
},
i.changeslide), !0 === i.options.accessibility && i.$dots.on("keydown.slick", i.keyhandler)),
!0 === i.options.dots && !0 === i.options.pauseondotshover && e("li", i.$dots).on("mouseenter.slick", e.proxy(i.interrupt, i, !0)).on("mouseleave.slick", e.proxy(i.interrupt, i, !1))
},
i.prototype.initslideevents = function() {
var i = this;
i.options.pauseonhover && (i.$list.on("mouseenter.slick", e.proxy(i.interrupt, i, !0)), i.$list.on("mouseleave.slick", e.proxy(i.interrupt, i, !1)))
},
i.prototype.initializeevents = function() {
var i = this;
i.initarrowevents(),
i.initdotevents(),
i.initslideevents(),
i.$list.on("touchstart.slick mousedown.slick", {
action: "start"
},
i.swipehandler),
i.$list.on("touchmove.slick mousemove.slick", {
action: "move"
},
i.swipehandler),
i.$list.on("touchend.slick mouseup.slick", {
action: "end"
},
i.swipehandler),
i.$list.on("touchcancel.slick mouseleave.slick", {
action: "end"
},
i.swipehandler),
i.$list.on("click.slick", i.clickhandler),
e(document).on(i.visibilitychange, e.proxy(i.visibility, i)),
!0 === i.options.accessibility && i.$list.on("keydown.slick", i.keyhandler),
!0 === i.options.focusonselect && e(i.$slidetrack).children().on("click.slick", i.selecthandler),
e(window).on("orientationchange.slick.slick-" + i.instanceuid, e.proxy(i.orientationchange, i)),
e(window).on("resize.slick.slick-" + i.instanceuid, e.proxy(i.resize, i)),
e("[draggable!=true]", i.$slidetrack).on("dragstart", i.preventdefault),
e(window).on("load.slick.slick-" + i.instanceuid, i.setposition),
e(i.setposition)
},
i.prototype.initui = function() {
var e = this; ! 0 === e.options.arrows && e.slidecount > e.options.slidestoshow && (e.$prevarrow.show(), e.$nextarrow.show()),
!0 === e.options.dots && e.slidecount > e.options.slidestoshow && e.$dots.show()
},
i.prototype.keyhandler = function(e) {
var i = this;
e.target.tagname.match("textarea|input|select") || (37 === e.keycode && !0 === i.options.accessibility ? i.changeslide({
data: {
message: !0 === i.options.rtl ? "next": "previous"
}
}) : 39 === e.keycode && !0 === i.options.accessibility && i.changeslide({
data: {
message: !0 === i.options.rtl ? "previous": "next"
}
}))
},
i.prototype.lazyload = function() {
function i(i) {
e("img[data-lazy]", i).each(function() {
var i = e(this),
t = e(this).attr("data-lazy"),
o = e(this).attr("data-srcset"),
s = e(this).attr("data-sizes") || n.$slider.attr("data-sizes"),
r = document.createelement("img");
r.onload = function() {
i.animate({
opacity: 0
},
100,
function() {
o && (i.attr("srcset", o), s && i.attr("sizes", s)),
i.attr("src", t).animate({
opacity: 1
},
200,
function() {
i.removeattr("data-lazy data-srcset data-sizes").removeclass("slick-loading")
}),
n.$slider.trigger("lazyloaded", [n, i, t])
})
},
r.onerror = function() {
i.removeattr("data-lazy").removeclass("slick-loading").addclass("slick-lazyload-error"),
n.$slider.trigger("lazyloaderror", [n, i, t])
},
r.src = t
})
}
var t, o, s, n = this;
if (!0 === n.options.centermode ? !0 === n.options.infinite ? s = (o = n.currentslide + (n.options.slidestoshow / 2 + 1)) + n.options.slidestoshow + 2 : (o = math.max(0, n.currentslide - (n.options.slidestoshow / 2 + 1)), s = n.options.slidestoshow / 2 + 1 + 2 + n.currentslide) : (o = n.options.infinite ? n.options.slidestoshow + n.currentslide: n.currentslide, s = math.ceil(o + n.options.slidestoshow), !0 === n.options.fade && (o > 0 && o--, s <= n.slidecount && s++)), t = n.$slider.find(".slick-slide").slice(o, s), "anticipated" === n.options.lazyload) for (var r = o - 1,
l = s,
a = n.$slider.find(".slick-slide"), d = 0; d < n.options.slidestoscroll; d++) r < 0 && (r = n.slidecount - 1),
t = (t = t.add(a.eq(r))).add(a.eq(l)),
r--,
l++;
i(t),
n.slidecount <= n.options.slidestoshow ? i(n.$slider.find(".slick-slide")) : n.currentslide >= n.slidecount - n.options.slidestoshow ? i(n.$slider.find(".slick-cloned").slice(0, n.options.slidestoshow)) : 0 === n.currentslide && i(n.$slider.find(".slick-cloned").slice( - 1 * n.options.slidestoshow))
},
i.prototype.loadslider = function() {
var e = this;
e.setposition(),
e.$slidetrack.css({
opacity: 1
}),
e.$slider.removeclass("slick-loading"),
e.initui(),
"progressive" === e.options.lazyload && e.progressivelazyload()
},
i.prototype.next = i.prototype.slicknext = function() {
this.changeslide({
data: {
message: "next"
}
})
},
i.prototype.orientationchange = function() {
this.checkresponsive(),
this.setposition()
},
i.prototype.pause = i.prototype.slickpause = function() {
this.autoplayclear(),
this.paused = !0
},
i.prototype.play = i.prototype.slickplay = function() {
var e = this;
e.autoplay(),
e.options.autoplay = !0,
e.paused = !1,
e.focussed = !1,
e.interrupted = !1
},
i.prototype.postslide = function(i) {
var t = this;
t.unslicked || (t.$slider.trigger("afterchange", [t, i]), t.animating = !1, t.slidecount > t.options.slidestoshow && t.setposition(), t.swipeleft = null, t.options.autoplay && t.autoplay(), !0 === t.options.accessibility && (t.initada(), t.options.focusonchange && e(t.$slides.get(t.currentslide)).attr("tabindex", 0).focus()))
},
i.prototype.prev = i.prototype.slickprev = function() {
this.changeslide({
data: {
message: "previous"
}
})
},
i.prototype.preventdefault = function(e) {
e.preventdefault()
},
i.prototype.progressivelazyload = function(i) {
i = i || 1;
var t, o, s, n, r, l = this,
a = e("img[data-lazy]", l.$slider);
a.length ? (t = a.first(), o = t.attr("data-lazy"), s = t.attr("data-srcset"), n = t.attr("data-sizes") || l.$slider.attr("data-sizes"), (r = document.createelement("img")).onload = function() {
s && (t.attr("srcset", s), n && t.attr("sizes", n)),
t.attr("src", o).removeattr("data-lazy data-srcset data-sizes").removeclass("slick-loading"),
!0 === l.options.adaptiveheight && l.setposition(),
l.$slider.trigger("lazyloaded", [l, t, o]),
l.progressivelazyload()
},
r.onerror = function() {
i < 3 ? settimeout(function() {
l.progressivelazyload(i + 1)
},
500) : (t.removeattr("data-lazy").removeclass("slick-loading").addclass("slick-lazyload-error"), l.$slider.trigger("lazyloaderror", [l, t, o]), l.progressivelazyload())
},
r.src = o) : l.$slider.trigger("allimagesloaded", [l])
},
i.prototype.refresh = function(i) {
var t, o, s = this;
o = s.slidecount - s.options.slidestoshow,
!s.options.infinite && s.currentslide > o && (s.currentslide = o),
s.slidecount <= s.options.slidestoshow && (s.currentslide = 0),
t = s.currentslide,
s.destroy(!0),
e.extend(s, s.initials, {
currentslide: t
}),
s.init(),
i || s.changeslide({
data: {
message: "index",
index: t
}
},
!1)
},
i.prototype.registerbreakpoints = function() {
var i, t, o, s = this,
n = s.options.responsive || null;
if ("array" === e.type(n) && n.length) {
for (i in s.respondto = s.options.respondto || "window", n) if (o = s.breakpoints.length - 1, n.hasownproperty(i)) {
for (t = n[i].breakpoint; o >= 0;) s.breakpoints[o] && s.breakpoints[o] === t && s.breakpoints.splice(o, 1),
o--;
s.breakpoints.push(t),
s.breakpointsettings[t] = n[i].settings
}
s.breakpoints.sort(function(e, i) {
return s.options.mobilefirst ? e - i: i - e
})
}
},
i.prototype.reinit = function() {
var i = this;
i.$slides = i.$slidetrack.children(i.options.slide).addclass("slick-slide"),
i.slidecount = i.$slides.length,
i.currentslide >= i.slidecount && 0 !== i.currentslide && (i.currentslide = i.currentslide - i.options.slidestoscroll),
i.slidecount <= i.options.slidestoshow && (i.currentslide = 0),
i.registerbreakpoints(),
i.setprops(),
i.setupinfinite(),
i.buildarrows(),
i.updatearrows(),
i.initarrowevents(),
i.builddots(),
i.updatedots(),
i.initdotevents(),
i.cleanupslideevents(),
i.initslideevents(),
i.checkresponsive(!1, !0),
!0 === i.options.focusonselect && e(i.$slidetrack).children().on("click.slick", i.selecthandler),
i.setslideclasses("number" == typeof i.currentslide ? i.currentslide: 0),
i.setposition(),
i.focushandler(),
i.paused = !i.options.autoplay,
i.autoplay(),
i.$slider.trigger("reinit", [i])
},
i.prototype.resize = function() {
var i = this;
e(window).width() !== i.windowwidth && (cleartimeout(i.windowdelay), i.windowdelay = window.settimeout(function() {
i.windowwidth = e(window).width(),
i.checkresponsive(),
i.unslicked || i.setposition()
},
50))
},
i.prototype.removeslide = i.prototype.slickremove = function(e, i, t) {
var o = this;
if (e = "boolean" == typeof e ? !0 === (i = e) ? 0 : o.slidecount - 1 : !0 === i ? --e: e, o.slidecount < 1 || e < 0 || e > o.slidecount - 1) return ! 1;
o.unload(),
!0 === t ? o.$slidetrack.children().remove() : o.$slidetrack.children(this.options.slide).eq(e).remove(),
o.$slides = o.$slidetrack.children(this.options.slide),
o.$slidetrack.children(this.options.slide).detach(),
o.$slidetrack.append(o.$slides),
o.$slidescache = o.$slides,
o.reinit()
},
i.prototype.setcss = function(e) {
var i, t, o = this,
s = {}; ! 0 === o.options.rtl && (e = -e),
i = "left" == o.positionprop ? math.ceil(e) + "px": "0px",
t = "top" == o.positionprop ? math.ceil(e) + "px": "0px",
s[o.positionprop] = e,
!1 === o.transformsenabled ? o.$slidetrack.css(s) : (s = {},
!1 === o.csstransitions ? (s[o.animtype] = "translate(" + i + ", " + t + ")", o.$slidetrack.css(s)) : (s[o.animtype] = "translate3d(" + i + ", " + t + ", 0px)", o.$slidetrack.css(s)))
},
i.prototype.setdimensions = function() {
var e = this; ! 1 === e.options.vertical ? !0 === e.options.centermode && e.$list.css({
padding: "0px " + e.options.centerpadding
}) : (e.$list.height(e.$slides.first().outerheight(!0) * e.options.slidestoshow), !0 === e.options.centermode && e.$list.css({
padding: e.options.centerpadding + " 0px"
})),
e.listwidth = e.$list.width(),
e.listheight = e.$list.height(),
!1 === e.options.vertical && !1 === e.options.variablewidth ? (e.slidewidth = math.ceil(e.listwidth / e.options.slidestoshow), e.$slidetrack.width(math.ceil(e.slidewidth * e.$slidetrack.children(".slick-slide").length))) : !0 === e.options.variablewidth ? e.$slidetrack.width(5e3 * e.slidecount) : (e.slidewidth = math.ceil(e.listwidth), e.$slidetrack.height(math.ceil(e.$slides.first().outerheight(!0) * e.$slidetrack.children(".slick-slide").length)));
var i = e.$slides.first().outerwidth(!0) - e.$slides.first().width(); ! 1 === e.options.variablewidth && e.$slidetrack.children(".slick-slide").width(e.slidewidth - i)
},
i.prototype.setfade = function() {
var i, t = this;
t.$slides.each(function(o, s) {
i = t.slidewidth * o * -1,
!0 === t.options.rtl ? e(s).css({
position: "relative",
right: i,
top: 0,
zindex: t.options.zindex - 2,
opacity: 0
}) : e(s).css({
position: "relative",
left: i,
top: 0,
zindex: t.options.zindex - 2,
opacity: 0
})
}),
t.$slides.eq(t.currentslide).css({
zindex: t.options.zindex - 1,
opacity: 1
})
},
i.prototype.setheight = function() {
var e = this;
if (1 === e.options.slidestoshow && !0 === e.options.adaptiveheight && !1 === e.options.vertical) {
var i = e.$slides.eq(e.currentslide).outerheight(!0);
e.$list.css("height", i)
}
},
i.prototype.setoption = i.prototype.slicksetoption = function() {
var i, t, o, s, n, r = this,
l = !1;
if ("object" === e.type(arguments[0]) ? (o = arguments[0], l = arguments[1], n = "multiple") : "string" === e.type(arguments[0]) && (o = arguments[0], s = arguments[1], l = arguments[2], "responsive" === arguments[0] && "array" === e.type(arguments[1]) ? n = "responsive": void 0 !== arguments[1] && (n = "single")), "single" === n) r.options[o] = s;
else if ("multiple" === n) e.each(o,
function(e, i) {
r.options[e] = i
});
else if ("responsive" === n) for (t in s) if ("array" !== e.type(r.options.responsive)) r.options.responsive = [s[t]];
else {
for (i = r.options.responsive.length - 1; i >= 0;) r.options.responsive[i].breakpoint === s[t].breakpoint && r.options.responsive.splice(i, 1),
i--;
r.options.responsive.push(s[t])
}
l && (r.unload(), r.reinit())
},
i.prototype.setposition = function() {
var e = this;
e.setdimensions(),
e.setheight(),
!1 === e.options.fade ? e.setcss(e.getleft(e.currentslide)) : e.setfade(),
e.$slider.trigger("setposition", [e])
},
i.prototype.setprops = function() {
var e = this,
i = document.body.style;
e.positionprop = !0 === e.options.vertical ? "top": "left",
"top" === e.positionprop ? e.$slider.addclass("slick-vertical") : e.$slider.removeclass("slick-vertical"),
void 0 === i.webkittransition && void 0 === i.moztransition && void 0 === i.mstransition || !0 === e.options.usecss && (e.csstransitions = !0),
e.options.fade && ("number" == typeof e.options.zindex ? e.options.zindex < 3 && (e.options.zindex = 3) : e.options.zindex = e.defaults.zindex),
void 0 !== i.otransform && (e.animtype = "otransform", e.transformtype = "-o-transform", e.transitiontype = "otransition", void 0 === i.perspectiveproperty && void 0 === i.webkitperspective && (e.animtype = !1)),
void 0 !== i.moztransform && (e.animtype = "moztransform", e.transformtype = "-moz-transform", e.transitiontype = "moztransition", void 0 === i.perspectiveproperty && void 0 === i.mozperspective && (e.animtype = !1)),
void 0 !== i.webkittransform && (e.animtype = "webkittransform", e.transformtype = "-webkit-transform", e.transitiontype = "webkittransition", void 0 === i.perspectiveproperty && void 0 === i.webkitperspective && (e.animtype = !1)),
void 0 !== i.mstransform && (e.animtype = "mstransform", e.transformtype = "-ms-transform", e.transitiontype = "mstransition", void 0 === i.mstransform && (e.animtype = !1)),
void 0 !== i.transform && !1 !== e.animtype && (e.animtype = "transform", e.transformtype = "transform", e.transitiontype = "transition"),
e.transformsenabled = e.options.usetransform && null !== e.animtype && !1 !== e.animtype
},
i.prototype.setslideclasses = function(e) {
var i, t, o, s, n = this;
if (t = n.$slider.find(".slick-slide").removeclass("slick-active slick-center slick-current").attr("aria-hidden", "true"), n.$slides.eq(e).addclass("slick-current"), !0 === n.options.centermode) {
var r = n.options.slidestoshow % 2 == 0 ? 1 : 0;
i = math.floor(n.options.slidestoshow / 2),
!0 === n.options.infinite && (e >= i && e <= n.slidecount - 1 - i ? n.$slides.slice(e - i + r, e + i + 1).addclass("slick-active").attr("aria-hidden", "false") : (o = n.options.slidestoshow + e, t.slice(o - i + 1 + r, o + i + 2).addclass("slick-active").attr("aria-hidden", "false")), 0 === e ? t.eq(t.length - 1 - n.options.slidestoshow).addclass("slick-center") : e === n.slidecount - 1 && t.eq(n.options.slidestoshow).addclass("slick-center")),
n.$slides.eq(e).addclass("slick-center")
} else e >= 0 && e <= n.slidecount - n.options.slidestoshow ? n.$slides.slice(e, e + n.options.slidestoshow).addclass("slick-active").attr("aria-hidden", "false") : t.length <= n.options.slidestoshow ? t.addclass("slick-active").attr("aria-hidden", "false") : (s = n.slidecount % n.options.slidestoshow, o = !0 === n.options.infinite ? n.options.slidestoshow + e: e, n.options.slidestoshow == n.options.slidestoscroll && n.slidecount - e < n.options.slidestoshow ? t.slice(o - (n.options.slidestoshow - s), o + s).addclass("slick-active").attr("aria-hidden", "false") : t.slice(o, o + n.options.slidestoshow).addclass("slick-active").attr("aria-hidden", "false"));
"ondemand" !== n.options.lazyload && "anticipated" !== n.options.lazyload || n.lazyload()
},
i.prototype.setupinfinite = function() {
var i, t, o, s = this;
if (!0 === s.options.fade && (s.options.centermode = !1), !0 === s.options.infinite && !1 === s.options.fade && (t = null, s.slidecount > s.options.slidestoshow)) {
for (o = !0 === s.options.centermode ? s.options.slidestoshow + 1 : s.options.slidestoshow, i = s.slidecount; i > s.slidecount - o; i -= 1) t = i - 1,
e(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t - s.slidecount).prependto(s.$slidetrack).addclass("slick-cloned");
for (i = 0; i < o + s.slidecount; i += 1) t = i,
e(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t + s.slidecount).appendto(s.$slidetrack).addclass("slick-cloned");
s.$slidetrack.find(".slick-cloned").find("[id]").each(function() {
e(this).attr("id", "")
})
}
},
i.prototype.interrupt = function(e) {
e || this.autoplay(),
this.interrupted = e
},
i.prototype.selecthandler = function(i) {
var t = this,
o = e(i.target).is(".slick-slide") ? e(i.target) : e(i.target).parents(".slick-slide"),
s = parseint(o.attr("data-slick-index"));
s || (s = 0),
t.slidecount <= t.options.slidestoshow ? t.slidehandler(s, !1, !0) : t.slidehandler(s)
},
i.prototype.slidehandler = function(e, i, t) {
var o, s, n, r, l, a = null,
d = this;
if (i = i || !1, !(!0 === d.animating && !0 === d.options.waitforanimate || !0 === d.options.fade && d.currentslide === e)) if (!1 === i && d.asnavfor(e), o = e, a = d.getleft(o), r = d.getleft(d.currentslide), d.currentleft = null === d.swipeleft ? r: d.swipeleft, !1 === d.options.infinite && !1 === d.options.centermode && (e < 0 || e > d.getdotcount() * d.options.slidestoscroll)) ! 1 === d.options.fade && (o = d.currentslide, !0 !== t ? d.animateslide(r,
function() {
d.postslide(o)
}) : d.postslide(o));
else if (!1 === d.options.infinite && !0 === d.options.centermode && (e < 0 || e > d.slidecount - d.options.slidestoscroll)) ! 1 === d.options.fade && (o = d.currentslide, !0 !== t ? d.animateslide(r,
function() {
d.postslide(o)
}) : d.postslide(o));
else {
if (d.options.autoplay && clearinterval(d.autoplaytimer), s = o < 0 ? d.slidecount % d.options.slidestoscroll != 0 ? d.slidecount - d.slidecount % d.options.slidestoscroll: d.slidecount + o: o >= d.slidecount ? d.slidecount % d.options.slidestoscroll != 0 ? 0 : o - d.slidecount: o, d.animating = !0, d.$slider.trigger("beforechange", [d, d.currentslide, s]), n = d.currentslide, d.currentslide = s, d.setslideclasses(d.currentslide), d.options.asnavfor && (l = (l = d.getnavtarget()).slick("getslick")).slidecount <= l.options.slidestoshow && l.setslideclasses(d.currentslide), d.updatedots(), d.updatearrows(), !0 === d.options.fade) return ! 0 !== t ? (d.fadeslideout(n), d.fadeslide(s,
function() {
d.postslide(s)
})) : d.postslide(s),
void d.animateheight(); ! 0 !== t ? d.animateslide(a,
function() {
d.postslide(s)
}) : d.postslide(s)
}
},
i.prototype.startload = function() {
var e = this; ! 0 === e.options.arrows && e.slidecount > e.options.slidestoshow && (e.$prevarrow.hide(), e.$nextarrow.hide()),
!0 === e.options.dots && e.slidecount > e.options.slidestoshow && e.$dots.hide(),
e.$slider.addclass("slick-loading")
},
i.prototype.swipedirection = function() {
var e, i, t, o, s = this;
return e = s.touchobject.startx - s.touchobject.curx,
i = s.touchobject.starty - s.touchobject.cury,
t = math.atan2(i, e),
(o = math.round(180 * t / math.pi)) < 0 && (o = 360 - math.abs(o)),
o <= 45 && o >= 0 ? !1 === s.options.rtl ? "left": "right": o <= 360 && o >= 315 ? !1 === s.options.rtl ? "left": "right": o >= 135 && o <= 225 ? !1 === s.options.rtl ? "right": "left": !0 === s.options.verticalswiping ? o >= 35 && o <= 135 ? "down": "up": "vertical"
},
i.prototype.swipeend = function(e) {
var i, t, o = this;
if (o.dragging = !1, o.swiping = !1, o.scrolling) return o.scrolling = !1,
!1;
if (o.interrupted = !1, o.shouldclick = !(o.touchobject.swipelength > 10), void 0 === o.touchobject.curx) return ! 1;
if (!0 === o.touchobject.edgehit && o.$slider.trigger("edge", [o, o.swipedirection()]), o.touchobject.swipelength >= o.touchobject.minswipe) {
switch (t = o.swipedirection()) {
case "left":
case "down":
i = o.options.swipetoslide ? o.checknavigable(o.currentslide + o.getslidecount()) : o.currentslide + o.getslidecount(),
o.currentdirection = 0;
break;
case "right":
case "up":
i = o.options.swipetoslide ? o.checknavigable(o.currentslide - o.getslidecount()) : o.currentslide - o.getslidecount(),
o.currentdirection = 1
}
"vertical" != t && (o.slidehandler(i), o.touchobject = {},
o.$slider.trigger("swipe", [o, t]))
} else o.touchobject.startx !== o.touchobject.curx && (o.slidehandler(o.currentslide), o.touchobject = {})
},
i.prototype.swipehandler = function(e) {
var i = this;
if (! (!1 === i.options.swipe || "ontouchend" in document && !1 === i.options.swipe || !1 === i.options.draggable && -1 !== e.type.indexof("mouse"))) switch (i.touchobject.fingercount = e.originalevent && void 0 !== e.originalevent.touches ? e.originalevent.touches.length: 1, i.touchobject.minswipe = i.listwidth / i.options.touchthreshold, !0 === i.options.verticalswiping && (i.touchobject.minswipe = i.listheight / i.options.touchthreshold), e.data.action) {
case "start":
i.swipestart(e);
break;
case "move":
i.swipemove(e);
break;
case "end":
i.swipeend(e)
}
},
i.prototype.swipemove = function(e) {
var i, t, o, s, n, r, l = this;
return n = void 0 !== e.originalevent ? e.originalevent.touches: null,
!(!l.dragging || l.scrolling || n && 1 !== n.length) && (i = l.getleft(l.currentslide), l.touchobject.curx = void 0 !== n ? n[0].pagex: e.clientx, l.touchobject.cury = void 0 !== n ? n[0].pagey: e.clienty, l.touchobject.swipelength = math.round(math.sqrt(math.pow(l.touchobject.curx - l.touchobject.startx, 2))), r = math.round(math.sqrt(math.pow(l.touchobject.cury - l.touchobject.starty, 2))), !l.options.verticalswiping && !l.swiping && r > 4 ? (l.scrolling = !0, !1) : (!0 === l.options.verticalswiping && (l.touchobject.swipelength = r), t = l.swipedirection(), void 0 !== e.originalevent && l.touchobject.swipelength > 4 && (l.swiping = !0, e.preventdefault()), s = (!1 === l.options.rtl ? 1 : -1) * (l.touchobject.curx > l.touchobject.startx ? 1 : -1), !0 === l.options.verticalswiping && (s = l.touchobject.cury > l.touchobject.starty ? 1 : -1), o = l.touchobject.swipelength, l.touchobject.edgehit = !1, !1 === l.options.infinite && (0 === l.currentslide && "right" === t || l.currentslide >= l.getdotcount() && "left" === t) && (o = l.touchobject.swipelength * l.options.edgefriction, l.touchobject.edgehit = !0), !1 === l.options.vertical ? l.swipeleft = i + o * s: l.swipeleft = i + o * (l.$list.height() / l.listwidth) * s, !0 === l.options.verticalswiping && (l.swipeleft = i + o * s), !0 !== l.options.fade && !1 !== l.options.touchmove && (!0 === l.animating ? (l.swipeleft = null, !1) : void l.setcss(l.swipeleft))))
},
i.prototype.swipestart = function(e) {
var i, t = this;
if (t.interrupted = !0, 1 !== t.touchobject.fingercount || t.slidecount <= t.options.slidestoshow) return t.touchobject = {},
!1;
void 0 !== e.originalevent && void 0 !== e.originalevent.touches && (i = e.originalevent.touches[0]),
t.touchobject.startx = t.touchobject.curx = void 0 !== i ? i.pagex: e.clientx,
t.touchobject.starty = t.touchobject.cury = void 0 !== i ? i.pagey: e.clienty,
t.dragging = !0
},
i.prototype.unfilterslides = i.prototype.slickunfilter = function() {
var e = this;
null !== e.$slidescache && (e.unload(), e.$slidetrack.children(this.options.slide).detach(), e.$slidescache.appendto(e.$slidetrack), e.reinit())
},
i.prototype.unload = function() {
var i = this;
e(".slick-cloned", i.$slider).remove(),
i.$dots && i.$dots.remove(),
i.$prevarrow && i.htmlexpr.test(i.options.prevarrow) && i.$prevarrow.remove(),
i.$nextarrow && i.htmlexpr.test(i.options.nextarrow) && i.$nextarrow.remove(),
i.$slides.removeclass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "")
},
i.prototype.unslick = function(e) {
var i = this;
i.$slider.trigger("unslick", [i, e]),
i.destroy()
},
i.prototype.updatearrows = function() {
var e = this;
math.floor(e.options.slidestoshow / 2),
!0 === e.options.arrows && e.slidecount > e.options.slidestoshow && !e.options.infinite && (e.$prevarrow.removeclass("slick-disabled").attr("aria-disabled", "false"), e.$nextarrow.removeclass("slick-disabled").attr("aria-disabled", "false"), 0 === e.currentslide ? (e.$prevarrow.addclass("slick-disabled").attr("aria-disabled", "true"), e.$nextarrow.removeclass("slick-disabled").attr("aria-disabled", "false")) : e.currentslide >= e.slidecount - e.options.slidestoshow && !1 === e.options.centermode ? (e.$nextarrow.addclass("slick-disabled").attr("aria-disabled", "true"), e.$prevarrow.removeclass("slick-disabled").attr("aria-disabled", "false")) : e.currentslide >= e.slidecount - 1 && !0 === e.options.centermode && (e.$nextarrow.addclass("slick-disabled").attr("aria-disabled", "true"), e.$prevarrow.removeclass("slick-disabled").attr("aria-disabled", "false")))
},
i.prototype.updatedots = function() {
var e = this;
null !== e.$dots && (e.$dots.find("li").removeclass("slick-active").end(), e.$dots.find("li").eq(math.floor(e.currentslide / e.options.slidestoscroll)).addclass("slick-active"))
},
i.prototype.visibility = function() {
var e = this;
e.options.autoplay && (document[e.hidden] ? e.interrupted = !0 : e.interrupted = !1)
},
e.fn.slick = function() {
var e, t, o = this,
s = arguments[0],
n = array.prototype.slice.call(arguments, 1),
r = o.length;
for (e = 0; e < r; e++) if ("object" == typeof s || void 0 === s ? o[e].slick = new i(o[e], s) : t = o[e].slick[s].apply(o[e].slick, n), void 0 !== t) return t;
return o
}
});