1!function (a) { 2 "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto) 3}(function (a) { 4 var b, c, d, e, f, g, h = "Close", i = "BeforeClose", j = "AfterClose", k = "BeforeAppend", l = "MarkupParse", 5 m = "Open", n = "Change", o = "mfp", p = "." + o, q = "mfp-ready", r = "mfp-removing", s = "mfp-prevent-close", 6 t = function () { 7 }, u = !!window.jQuery, v = a(window), w = function (a, c) { 8 b.ev.on(o + a + p, c) 9 }, x = function (b, c, d, e) { 10 var f = document.createElement("div"); 11 return f.className = "mfp-" + b, d && (f.innerHTML = d), e ? c && c.appendChild(f) : (f = a(f), c && f.appendTo(c)), f 12 }, y = function (c, d) { 13 b.ev.triggerHandler(o + c, d), b.st.callbacks && (c = c.charAt(0).toLowerCase() + c.slice(1), b.st.callbacks[c] && b.st.callbacks[c].apply(b, a.isArray(d) ? d : [d])) 14 }, z = function (c) { 15 return c === g && b.currTemplate.closeBtn || (b.currTemplate.closeBtn = a(b.st.closeMarkup.replace("%title%", b.st.tClose)), g = c), b.currTemplate.closeBtn 16 }, A = function () { 17 a.magnificPopup.instance || (b = new t, b.init(), a.magnificPopup.instance = b) 18 }, B = function () { 19 var a = document.createElement("p").style, b = ["ms", "O", "Moz", "Webkit"]; 20 if (void 0 !== a.transition) return !0; 21 for (; b.length;) if (b.pop() + "Transition" in a) return !0; 22 return !1 23 }; 24 t.prototype = { 25 constructor: t, init: function () { 26 var c = navigator.appVersion; 27 b.isLowIE = b.isIE8 = document.all && !document.addEventListener, b.isAndroid = /android/gi.test(c), b.isIOS = /iphone|ipad|ipod/gi.test(c), b.supportsTransition = B(), b.probablyMobile = b.isAndroid || b.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), d = a(document), b.popupsCache = {} 28 }, open: function (c) { 29 var e; 30 if (c.isObj === !1) { 31 b.items = c.items.toArray(), b.index = 0; 32 var g, h = c.items; 33 for (e = 0; e < h.length; e++) if (g = h[e], g.parsed && (g = g.el[0]), g === c.el[0]) { 34 b.index = e; 35 break 36 } 37 } else b.items = a.isArray(c.items) ? c.items : [c.items], b.index = c.index || 0; 38 if (b.isOpen) return void b.updateItemHTML(); 39 b.types = [], f = "", c.mainEl && c.mainEl.length ? b.ev = c.mainEl.eq(0) : b.ev = d, c.key ? (b.popupsCache[c.key] || (b.popupsCache[c.key] = {}), b.currTemplate = b.popupsCache[c.key]) : b.currTemplate = {}, b.st = a.extend(!0, {}, a.magnificPopup.defaults, c), b.fixedContentPos = "auto" === b.st.fixedContentPos ? !b.probablyMobile : b.st.fixedContentPos, b.st.modal && (b.st.closeOnContentClick = !1, b.st.closeOnBgClick = !1, b.st.showCloseBtn = !1, b.st.enableEscapeKey = !1), b.bgOverlay || (b.bgOverlay = x("bg").on("click" + p, function () { 40 b.close() 41 }), b.wrap = x("wrap").attr("tabindex", -1).on("click" + p, function (a) { 42 b._checkIfClose(a.target) && b.close() 43 }), b.container = x("container", b.wrap)), b.contentContainer = x("content"), b.st.preloader && (b.preloader = x("preloader", b.container, b.st.tLoading)); 44 var i = a.magnificPopup.modules; 45 for (e = 0; e < i.length; e++) { 46 var j = i[e]; 47 j = j.charAt(0).toUpperCase() + j.slice(1), b["init" + j].call(b) 48 } 49 y("BeforeOpen"), b.st.showCloseBtn && (b.st.closeBtnInside ? (w(l, function (a, b, c, d) { 50 c.close_replaceWith = z(d.type) 51 }), f += " mfp-close-btn-in") : b.wrap.append(z())), b.st.alignTop && (f += " mfp-align-top"), b.fixedContentPos ? b.wrap.css({ 52 overflow: b.st.overflowY, 53 overflowX: "hidden", 54 overflowY: b.st.overflowY 55 }) : b.wrap.css({ 56 top: v.scrollTop(), 57 position: "absolute" 58 }), (b.st.fixedBgPos === !1 || "auto" === b.st.fixedBgPos && !b.fixedContentPos) && b.bgOverlay.css({ 59 height: d.height(), 60 position: "absolute" 61 }), b.st.enableEscapeKey && d.on("keyup" + p, function (a) { 62 27 === a.keyCode && b.close() 63 }), v.on("resize" + p, function () { 64 b.updateSize() 65 }), b.st.closeOnContentClick || (f += " mfp-auto-cursor"), f && b.wrap.addClass(f); 66 var k = b.wH = v.height(), n = {}; 67 if (b.fixedContentPos && b._hasScrollBar(k)) { 68 var o = b._getScrollbarSize(); 69 o && (n.marginRight = o) 70 } 71 b.fixedContentPos && (b.isIE7 ? a("body, html").css("overflow", "hidden") : n.overflow = "hidden"); 72 var r = b.st.mainClass; 73 return b.isIE7 && (r += " mfp-ie7"), r && b._addClassToMFP(r), b.updateItemHTML(), y("BuildControls"), a("html").css(n), b.bgOverlay.add(b.
73wrap).prependTo(b.st.prependTo || a(document.body)), b._lastFocusedEl = document.activeElement, setTimeout(function () { 74 b.content ? (b._addClassToMFP(q), b._setFocus()) : b.bgOverlay.addClass(q), d.on("focusin" + p, b._onFocusIn) 75 }, 16), b.isOpen = !0, b.updateSize(k), y(m), c 76 }, close: function () { 77 b.isOpen && (y(i), b.isOpen = !1, b.st.removalDelay && !b.isLowIE && b.supportsTransition ? (b._addClassToMFP(r), setTimeout(function () { 78 b._close() 79 }, b.st.removalDelay)) : b._close()) 80 }, _close: function () { 81 y(h); 82 var c = r + " " + q + " "; 83 if (b.bgOverlay.detach(), b.wrap.detach(), b.container.empty(), b.st.mainClass && (c += b.st.mainClass + " "), b._removeClassFromMFP(c), b.fixedContentPos) { 84 var e = { marginRight: "" }; 85 b.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", a("html").css(e) 86 } 87 d.off("keyup" + p + " focusin" + p), b.ev.off(p), b.wrap.attr("class", "mfp-wrap").removeAttr("style"), b.bgOverlay.attr("class", "mfp-bg"), b.container.attr("class", "mfp-container"), !b.st.showCloseBtn || b.st.closeBtnInside && b.currTemplate[b.currItem.type] !== !0 || b.currTemplate.closeBtn && b.currTemplate.closeBtn.detach(), b.st.autoFocusLast && b._lastFocusedEl && a(b._lastFocusedEl).focus(), b.currItem = null, b.content = null, b.currTemplate = null, b.prevHeight = 0, y(j) 88 }, updateSize: function (a) { 89 if (b.isIOS) { 90 var c = document.documentElement.clientWidth / window.innerWidth, d = window.innerHeight * c; 91 b.wrap.css("height", d), b.wH = d 92 } else b.wH = a || v.height(); 93 b.fixedContentPos || b.wrap.css("height", b.wH), y("Resize") 94 }, updateItemHTML: function () { 95 var c = b.items[b.index]; 96 b.contentContainer.detach(), b.content && b.content.detach(), c.parsed || (c = b.parseEl(b.index)); 97 var d = c.type; 98 if (y("BeforeChange", [b.currItem ? b.currItem.type : "", d]), b.currItem = c, !b.currTemplate[d]) { 99 var f = b.st[d] ? b.st[d].markup : !1; 100 y("FirstMarkupParse", f), f ? b.currTemplate[d] = a(f) : b.currTemplate[d] = !0 101 } 102 e && e !== c.type && b.container.removeClass("mfp-" + e + "-holder"); 103 var g = b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]); 104 b.appendContent(g, d), c.preloaded = !0, y(n, c), e = c.type, b.container.prepend(b.contentContainer), y("AfterChange") 105 }, appendContent: function (a, c) { 106 b.content = a, a ? b.st.showCloseBtn && b.st.closeBtnInside && b.currTemplate[c] === !0 ? b.content.find(".mfp-close").length || b.content.append(z()) : b.content = a : b.content = "", y(k), b.container.addClass("mfp-" + c + "-holder"), b.contentContainer.append(b.content) 107 }, parseEl: function (c) { 108 var d, e = b.items[c]; 109 if (e.tagName ? e = { el: a(e) } : (d = e.type, e = { data: e, src: e.src }), e.el) { 110 for (var f = b.types, g = 0; g < f.length; g++) if (e.el.hasClass("mfp-" + f[g])) { 111 d = f[g]; 112 break 113 } 114 e.src = e.el.attr("data-mfp-src"), e.src || (e.src = e.el.attr("href")) 115 } 116 return e.type = d || b.st.type || "inline", e.index = c, e.parsed = !0, b.items[c] = e, y("ElementParse", e), b.items[c] 117 }, addGroup: function (a, c) { 118 var d = function (d) { 119 d.mfpEl = this, b._openClick(d, a, c) 120 }; 121 c || (c = {}); 122 var e = "click.magnificPopup"; 123 c.mainEl = a, c.items ? (c.isObj = !0, a.off(e).on(e, d)) : (c.isObj = !1, c.delegate ? a.off(e).on(e, c.delegate, d) : (c.items = a, a.off(e).on(e, d))) 124 }, _openClick: function (c, d, e) { 125 var f = void 0 !== e.midClick ? e.midClick : a.magnificPopup.defaults.midClick; 126 if (f || !(2 === c.which || c.ctrlKey || c.metaKey || c.altKey || c.shift
126Key)) { 127 var g = void 0 !== e.disableOn ? e.disableOn : a.magnificPopup.defaults.disableOn; 128 if (g) if (a.isFunction(g)) { 129 if (!g.call(b)) return !0 130 } else if (v.width() < g) return !0; 131 c.type && (c.preventDefault(), b.isOpen && c.stopPropagation()), e.el = a(c.mfpEl), e.delegate && (e.items = d.find(e.delegate)), b.open(e) 132 } 133 }, updateStatus: function (a, d) { 134 if (b.preloader) { 135 c !== a && b.container.removeClass("mfp-s-" + c), d || "loading" !== a || (d = b.st.tLoading); 136 var e = { status: a, text: d }; 137 y("UpdateStatus", e), a = e.status, d = e.text, b.preloader.html(d), b.preloader.find("a").on("click", function (a) { 138 a.stopImmediatePropagation() 139 }), b.container.addClass("mfp-s-" + a), c = a 140 } 141 }, _checkIfClose: function (c) { 142 if (!a(c).hasClass(s)) { 143 var d = b.st.closeOnContentClick, e = b.st.closeOnBgClick; 144 if (d && e) return !0; 145 if (!b.content || a(c).hasClass("mfp-close") || b.preloader && c === b.preloader[0]) return !0; 146 if (c === b.content[0] || a.contains(b.content[0], c)) { 147 if (d) return !0 148 } else if (e && a.contains(document, c)) return !0; 149 return !1 150 } 151 }, _addClassToMFP: function (a) { 152 b.bgOverlay.addClass(a), b.wrap.addClass(a) 153 }, _removeClassFromMFP: function (a) { 154 this.bgOverlay.removeClass(a), b.wrap.removeClass(a) 155 }, _hasScrollBar: function (a) { 156 return (b.isIE7 ? d.height() : document.body.scrollHeight) > (a || v.height()) 157 }, _setFocus: function () { 158 (b.st.focus ? b.content.find(b.st.focus).eq(0) : b.wrap).focus() 159 }, _onFocusIn: function (c) { 160 return c.target === b.wrap[0] || a.contains(b.wrap[0], c.target) ? void 0 : (b._setFocus(), !1) 161 }, _parseMarkup: function (b, c, d) { 162 var e; 163 d.data && (c = a.extend(d.data, c)), y(l, [b, c, d]), a.each(c, function (c, d) { 164 if (void 0 === d || d === !1) return !0; 165 if (e = c.split("_"), e.length > 1) { 166 var f = b.find(p + "-" + e[0]); 167 if (f.length > 0) { 168 var g = e[1]; 169 "replaceWith" === g ? f[0] !== d[0] && f.replaceWith(d) : "img" === g ? f.is("img") ? f.attr("src", d) : f.replaceWith(a("<img>").attr("src", d).attr("class", f.attr("class"))) : f.attr(e[1], d) 170 } 171 } else b.find(p + "-" + c).html(d) 172 }) 173 }, _getScrollbarSize: function () { 174 if (void 0 === b.scrollbarSize) { 175 var a = document.createElement("div"); 176 a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), b.scrollbarSize = a.offsetWidth - a.clientWidth, document.body.removeChild(a) 177 } 178 return b.scrollbarSize 179 } 180 }, a.magnificPopup = { 181 instance: null, 182 proto: t.prototype, 183 modules: [], 184 open: function (b, c) { 185 return A(), b = b ? a.extend(!0, {}, b) : {}, b.isObj = !0, b.index = c || 0, this.instance.open(b) 186 }, 187 close: function () { 188 return a.magnificPopup.instance && a.magnificPopup.instance.close() 189 }, 190 registerModule: function (b, c) { 191 c.options && (a.magnificPopup.defaults[b] = c.options), a.extend(this.proto, c.proto), this.modules.push(b) 192 }, 193 defaults: { 194 disableOn: 0, 195 key: null, 196 midClick: !1, 197 mainClass: "", 198 preloader: !0, 199 focus: "", 200 closeOnContentClick: !1, 201 closeOnBgClick: !0, 202 closeBtnInside: !0, 203 showCloseBtn: !0, 204 enableEscapeKey: !0, 205 modal: !1, 206 alignTop: !1, 207 removalDelay: 0, 208 prependTo: null, 209 fixedContentPos: "auto", 210 fixedBgPos: "auto", 211 overflowY: "auto", 212 closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', 213 tClose: "Close (Esc)", 214 tLoading: "Loading...", 215 autoFocusLast: !0 216 } 217 }, a.fn.magnificPopup = function (c) { 218 A(); 219 var d = a(this); 220 if ("string" == typeof c) if ("open" === c) { 221 var e, f = u ? d.data("magnificPopup") : d[0].magnificPopup, g = parseInt(arguments[1], 10) || 0; 222 f.items ? e = f.items[g] : (e = d, f.delegate && (e = e.find(f.delegate)), e = e.eq(g)), b._openClick({ mfpEl: e }, d, f) 223 } else b.isOpen && b[c].apply(b, Array.prototype.slice.call(arguments, 1)); else c = a.extend(!0, {}, c), u ? d.data("magnificPopup", c) : d[0].magnificPopup = c, b.addGroup(d, c); 224 return d 225 }; 226 var C, D, E, F = "inline", G = function () { 227 E && (D.after(E.addClass(C)).detach(), E = null) 228 }; 229 a.magnificPopup.registerModule(F, { 230 options: { hiddenClass: "hide", markup: "", tNotFound: "Content not found" }, 231 proto: { 232 initInline: function () { 233 b.types.push(F), w(h + "." + F, function () { 234 G() 235 }) 236 }, getInline: function (c, d) { 237 if (G(), c.src) { 238 var e = b.st.inline, f = a(c.src); 239 if (f.length) { 240 var g = f[0].parentNode; 241 g && g.tagName && (D || (C = e.hiddenClass, D = x(C), C = "mfp-" + C), E = f.after(D).detach().removeClass(C)), b.updateStatus("ready") 242 } else b.updateStatus("error", e.tNotFound), f = a("<div>"); 243 return c.inlineElement = f, f 244 } 245 return b.updateStatus("ready"), b._parseMarkup(d, {}, c), d 246 } 247 } 248 }); 249 var H, I = "ajax", J = function () { 250 H && a(document.body).removeClass(H) 251 }, K = function () { 252 J(), b.req && b.req.abort() 253 }; 254 a.magnificPopup.registerModule(I, { 255 options: { 256 settings: null, 257 cursor: "mfp-ajax-cur", 258 tError: '<a href="%url%">The content</a> could not be loaded.' 259 }, proto: { 260 initAjax: function () { 261 b.types.push(I), H = b.st.ajax.cursor, w(h + "." + I, K), w("BeforeChange." + I, K) 262 }, getAjax: function (c) { 263 H && a(document.body).addClass(H), b.updateStatus("loading"); 264 var d = a.extend({ 265 url: c.src, success: function (d, e, f) { 266 var g = { data: d, xhr: f }; 267 y("ParseAjax", g), b.appendContent(a(g.data), I), c.finished = !0, J(), b._setFocus(), setTimeout(function () { 268 b.wrap.addClass(q) 269 }, 16), b.updateStatus("ready"), y("AjaxContentAdded") 270 }, error: function () { 271 J(), c.finished = c.loadError = !0, b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src)) 272 } 273 }, b.st.ajax.settings); 274 return b.req = a.ajax(d), "" 275 } 276 } 277 }); 278 var L, M = function (c) { 279 if (c.data && void 0 !== c.data.title) return c.data.title;
280 var d = b.st.image.titleSrc; 281 if (d) { 282 if (a.isFunction(d)) return d.call(b, c); 283 if (c.el) return c.el.attr(d) || "" 284 } 285 return "" 286 }; 287 a.magnificPopup.registerModule("image", { 288 options: { 289 markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', 290 cursor: "mfp-zoom-out-cur", 291 titleSrc: "title", 292 verticalFit: !0, 293 tError: '<a href="%url%">The image</a> could not be loaded.' 294 }, proto: { 295 initImage: function () { 296 var c = b.st.image, d = ".image"; 297 b.types.push("image"), w(m + d, function () { 298 "image" === b.currItem.type && c.cursor && a(document.body).addClass(c.cursor) 299 }), w(h + d, function () { 300 c.cursor && a(document.body).removeClass(c.cursor), v.off("resize" + p) 301 }), w("Resize" + d, b.resizeImage), b.isLowIE && w("AfterChange", b.resizeImage) 302 }, resizeImage: function () { 303 var a = b.currItem; 304 if (a && a.img && b.st.image.verticalFit) { 305 var c = 0; 306 b.isLowIE && (c = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", b.wH - c) 307 } 308 }, _onImageHasSize: function (a) { 309 a.img && (a.hasSize = !0, L && clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden && (b.content && b.content.removeClass("mfp-loading"), a.imgHidden = !1)) 310 }, findImageSize: function (a) { 311 var c = 0, d = a.img[0], e = function (f) { 312 L && clearInterval(L), L = setInterval(function () { 313 return d.naturalWidth > 0 ? void b._onImageHasSize(a) : (c > 200 && clearInterval(L), c++, void (3 === c ? e(10) : 40 === c ? e(50) : 100 === c && e(500))) 314 }, f) 315 }; 316 e(1) 317 }, getImage: function (c, d) { 318 var e = 0, f = function () { 319 c && (c.img[0].complete ? (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("ready")), c.hasSize = !0, c.loaded = !0, y("ImageLoadComplete")) : (e++, 200 > e ? setTimeout(f, 100) : g())) 320 }, g = function () { 321 c && (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("error", h.tError.replace("%url%", c.src))), c.hasSize = !0, c.loaded = !0, c.loadError = !0) 322 }, h = b.st.image, i = d.find(".mfp-img"); 323 if (i.length) { 324 var j = document.createElement("img"); 325 j.className = "mfp-img", c.el && c.el.find("img").length && (j.alt = c.el.find("img").attr("alt")), c.img = a(j).on("load.mfploader", f).on("error.mfploader", g), j.src = c.src, i.is("img") && (c.img = c.img.clone()), j = c.img[0], j.naturalWidth > 0 ? c.hasSize = !0 : j.width || (c.hasSize = !1) 326 } 327 return b._parseMarkup(d, { 328 title: M(c), 329 img_replaceWith: c.img 330 }, c), b.resizeImage(), c.hasSize ? (L && clearInterval(L), c.loadError ? (d.addClass("mfp-loading"), b.updateStatus("error", h.tError.replace("%url%", c.src))) : (d.removeClass("mfp-loading"), b.updateStatus("ready")), d) : (b.updateStatus("loading"), c.loading = !0, c.hasSize || (c.imgHidden = !0, d.addClass("mfp-loading"), b.findImageSize(c)), d) 331 } 332 } 333 }); 334 var N, O = function () { 335 return void 0 === N && (N = void 0 !== document.createElement("p").style.MozTransform), N 336 }; 337 a.magnificPopup.registerModule("zoom", { 338 options: { 339 enabled: !1, easing: "ease-in-out", duration: 300, opener: function (a) { 340 return a.is("img") ? a : a.find("img") 341 } 342 }, proto: { 343 initZoom: function () { 344 var a, c = b.st.zoom, d = ".zoom"; 345 if (c.enabled && b.supportsTransition) { 346 var e, f, g = c.duration, j = function (a) { 347 var b = a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), 348 d = "all " + c.duration / 1e3 + "s " + c.easing, e = { 349 position: "fixed", 350 zIndex: 9999, 351 left: 0, 352 top: 0, 353 "-webkit-backface-visibility": "hidden" 354 }, f = "transition"; 355 return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, b.css(e), b 356 }, k = function () { 357 b.content.css("visibility", "visible") 358 }; 359 w("BuildControls" + d, function () { 360 if (b._allowZoom()) { 361 if (clearTimeout(e), b.content.css("visibility", "hidden"), a = b._getItemToZoom(), !a) return void k(); 362 f = j(a), f.css(b._getOffset()), b.wrap.append(f), e = setTimeout(function () { 363 f.css(b._getOffset(!0)), e = setTimeout(function () { 364 k(), setTimeout(function () { 365 f.remove(), a = f = null, y("ZoomAnimationEnded") 366 }, 16) 367 }, g) 368 }, 16) 369 } 370 }), w(i + d, function () { 371 if (b._allowZoom()) { 372 if (clearTimeout(e), b.st.removalDelay = g, !a) { 373 if (a = b._getItemToZoom(), !a) return; 374 f = j(a) 375 } 376 f.css(b._getOffset(!0)), b.wrap.append(f), b.content.css("visibility", "hidden"), setTimeout(function () { 377 f.css(b._getOffset()) 378 }, 16) 379 } 380 }), w(h + d, function () { 381 b._allowZoom() && (k(), f && f.remove(), a = null) 382 }) 383 } 384 }, _allowZoom: function () { 385 return "image" === b.currItem.type 386 }, _getItemToZoom: function () { 387 return b.currItem.hasSize ? b.currItem.img : !1 388 }, _getOffset: function (c) { 389 var d; 390 d = c ? b.currItem.img : b.st.zoom.opener(b.currItem.el || b.currItem); 391 var e = d.offset(), f = parseInt(d.css("padding-top"), 10), g = parseInt(d.css("padding-bottom"), 10); 392 e.top -= a(window).scrollTop() - f; 393 var h = { width: d.width(), height: (u ? d.innerHeight() : d[0].offsetHeight) - g - f }; 394 return O() ? h["-moz-transform"] = h.transform = "translate(" + e.left + "px," + e.top + "px)" : (h.left = e.left, h.top = e.top), h 395 } 396 } 397 }); 398 var P = "iframe", Q = "//about:blank", R = function (a) { 399 if (b.currTemplate[P]) { 400 var c = b.currTemplate[P].find("iframe"); 401 c.length && (a || (c[0].src = Q), b.isIE8 && c.css("display", a ? "block" : "none")) 402 } 403 }; 404 a.magnificPopup.registerModule(P, { 405 options: { 406 markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', 407 srcAction: "iframe_src", 408 patterns: { 409 youtube: { index: "youtube.com", id: "v=", src: "//www.youtube.com/embed/%id%?autoplay=1" }, 410 vimeo: { index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1" }, 411 gmaps: { index: "//maps.google.", src: "%id%&output=embed" } 412 } 413 }, proto: { 414 initIframe: function () { 415 b.types.push(P), w("BeforeChange", function (a, b, c) { 416 b !== c && (b === P ? R() : c === P && R(!0)) 417 }), w(h + "." + P, function () { 418 R() 419 }) 420 }, getIframe: function (c, d) { 421 var e = c.src, f = b.st.iframe; 422 a.each(f.patterns, function () { 423 return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr(e.lastIndexOf(this.id
423) + this.id.length, e.length) : this.id.call(this, e)), e = this.src.replace("%id%", e), !1) : void 0 424 }); 425 var g = {}; 426 return f.srcAction && (g[f.srcAction] = e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d 427 } 428 } 429 }); 430 var S = function (a) { 431 var c = b.items.length; 432 return a > c - 1 ? a - c : 0 > a ? c + a : a 433 }, T = function (a, b, c) { 434 return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c) 435 }; 436 a.magnificPopup.registerModule("gallery", { 437 options: { 438 enabled: !1, 439 arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', 440 preload: [0, 2], 441 navigateByImgClick: !0, 442 arrows: !0, 443 tPrev: "Previous (Left arrow key)", 444 tNext: "Next (Right arrow key)", 445 tCounter: "%curr% of %total%" 446 }, proto: { 447 initGallery: function () { 448 var c = b.st.gallery, e = ".mfp-gallery"; 449 return b.direction = !0, c && c.enabled ? (f += " mfp-gallery", w(m + e, function () { 450 c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function () { 451 return b.items.length > 1 ? (b.next(), !1) : void 0 452 }), d.on("keydown" + e, function (a) { 453 37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next() 454 }) 455 }), w("UpdateStatus" + e, function (a, c) { 456 c.text && (c.text = T(c.text, b.currItem.index, b.items.length)) 457 }), w(l + e, function (a, d, e, f) { 458 var g = b.items.length; 459 e.counter = g > 1 ? T(c.tCounter, f.index, g) : "" 460 }), w("BuildControls" + e, function () { 461 if (b.items.length > 1 && c.arrows && !b.arrowLeft) { 462 var d = c.arrowMarkup, 463 e = b.arrowLeft = a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(s), 464 f = b.arrowRight = a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(s); 465 e.click(function () { 466 b.prev() 467 }), f.click(function () { 468 b.next() 469 }), b.container.append(e.add(f)) 470 } 471 }), w(n + e, function () { 472 b._preloadTimeout && clearTimeout(b._preloadTimeout), b._preloadTimeout = setTimeout(function () { 473 b.preloadNearbyImages(), b._preloadTimeout = null 474 }, 16) 475 }), void w(h + e, function () { 476 d.off(e), b.wrap.off("click" + e), b.arrowRight = b.arrowLeft = null 477 })) : !1 478 }, next: function () { 479 b.direction = !0, b.index = S(b.index + 1), b.updateItemHTML() 480 }, prev: function () { 481 b.direction = !1, b.index = S(b.index - 1), b.updateItemHTML() 482 }, goTo: function (a) { 483 b.direction = a >= b.index, b.index = a, b.updateItemHTML() 484 }, preloadNearbyImages: function () { 485 var a, c = b.st.gallery.preload, d = Math.min(c[0], b.items.length), e = Math.min(c[1], b.items.length); 486 for (a = 1; a <= (b.direction ? e : d); a++) b._preloadItem(b.index + a); 487 for (a = 1; a <= (b.direction ? d : e); a++) b._preloadItem(b.index - a) 488 }, _preloadItem: function (c) { 489 if (c = S(c), !b.items[c].preloaded) { 490 var d = b.items[c]; 491 d.parsed || (d = b.parseEl(c)), y("LazyLoad", d), "image" === d.type && (d.img = a('<img class="mfp-img" />').on("load.mfploader", function () { 492 d.hasSize = !0 493 }).on("error.mfploader", function () { 494 d.hasSize = !0, d.loadError = !0, y("LazyLoadError", d) 495 }).attr("src", d.src)), d.preloaded = !0 496 } 497 } 498 } 499 }); 500 var U = "retina"; 501 a.magnificPopup.registerModule(U, { 502 options: { 503 replaceSrc: function (a) { 504 return a.src.replace(/\.\w+$/, function (a) { 505 return "@2x" + a 506 }) 507 }, ratio: 1 508 }, proto: { 509 initRetina: function () { 510 if (window.devicePixelRatio > 1) { 511 var a = b.st.retina, c = a.ratio; 512 c = isNaN(c) ? c() : c, c > 1 && (w("ImageHasSize." + U, function (a, b) { 513 b.img.css({ "max-width": b.img[0].naturalWi
513dth / c, width: "100%" }) 514 }), w("ElementParse." + U, function (b, d) { 515 d.src = a.replaceSrc(d, c) 516 })) 517 } 518 } 519 } 520 }), A() 521}); 522!function (i) { 523 "use strict"; 524 "function" == typeof define && define.amd ? define(["jquery"], i) : "undefined" != typeof exports ? module.exports = i(require("jquery")) : i(jQuery) 525}(function (i) { 526 "use strict"; 527 var e = window.Slick || {}; 528 (e = function () { 529 var e = 0; 530 return function (t, o) { 531 var s, n = this; 532 n.defaults = { 533 accessibility: !0, 534 adaptiveHeight: !1, 535 appendArrows: i(t), 536 appendDots: i(t), 537 arrows: !0, 538 asNavFor: null, 539 prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>', 540 nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>', 541 autoplay: !1, 542 autoplaySpeed: 3e3, 543 centerMode: !1, 544 centerPadding: "50px", 545 cssEase: "ease", 546 customPaging: function (e, t) { 547 return i('<button type="button" />').text(t + 1) 548 }, 549 dots: !1, 550 dotsClass: "slick-dots", 551 draggable: !0, 552 easing: "linear", 553 edgeFriction: .35, 554 fade: !1, 555 focusOnSelect: !1, 556 focusOnChange: !1, 557 infinite: !0, 558 initialSlide: 0, 559 lazyLoad: "ondemand", 560 mobileFirst: !1, 561 pauseOnHover: !0, 562 pauseOnFocus: !0, 563 pauseOnDotsHover: !1, 564 respondTo: "window", 565 responsive: null, 566 rows: 1, 567 rtl: !1, 568 slide: "", 569 slidesPerRow: 1, 570 slidesToShow: 1, 571 slidesToScroll: 1, 572 speed: 500, 573 swipe: !0, 574 swipeToSlide: !1, 575 touchMove: !0, 576 touchThreshold: 5, 577 useCSS: !0, 578 useTransform: !0, 579 variableWidth: !1, 580 vertical: !1, 581 verticalSwiping: !1, 582 waitForAnimate: !0, 583 zIndex: 1e3 584 }, n.initials = { 585 animating: !1, 586 dragging: !1, 587 autoPlayTimer: null, 588 currentDirection: 0, 589 currentLeft: null, 590 currentSlide: 0, 591 direction: 1, 592 $dots: null, 593 listWidth: null, 594 listHeight: null, 595 loadIndex: 0, 596 $nextArrow: null, 597 $prevArrow: null, 598 scrolling: !1, 599 slideCount: null, 600 slideWidth: null, 601 $slideTrack: null, 602 $slides: null, 603 sliding: !1, 604 slideOffset: 0, 605 swipeLeft: null, 606 swiping: !1, 607 $list: null, 608 touchObject: {}, 609 transformsEnabled: !1, 610 unslicked: !1 611 }, i.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 = i(t), n.$slidesCache = null, n.transformType = null, n.transitionType = null, n.visibilityChange = "visibilitychange", n.windowWidth = 0, n.windowTimer = null, s = i(t).data("slick") || {}, n.options = i.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 = i.proxy(n.autoPlay, n), n.autoPlayClear = i.proxy(n.autoPlayClear, n), n.autoPlayIterator = i.proxy(n.autoPlayIterator, n), n.changeSlide = i.proxy(n.changeSlide, n), n.clickHandler = i.proxy(n.clickHandler, n), n.selectHandler = i.proxy(n.selectHandler, n), n.setPosition = i.proxy(n.setPosition, n), n.swipeHandler = i.proxy(n.swipeHandler, n), n.dragHandler = i.proxy(n.dragHandler, n), n.keyHandler = i.proxy(n.keyHandler, n), n.instanceUid = e++, n.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, n.registerBreakpoints(), n.init(!0) 612 } 613 }()).prototype.activateADA = function () { 614 this.$slideTrack.find(".slick-active").attr({ "aria-hidden": "false" }).find("a, input, button, select").attr({ tabindex: "0" }) 615 }, e.prototype.addSlide = e.prototype.slickAdd = function (e, t, o) { 616 var s = this; 617 if ("boolean" == typeof t) o = t, t = null; else if (t < 0 || t >= s.slideCount) return !1; 618 s.unload(), "number" == typeof t ? 0 === t && 0 === s.$slides.length ? i(e).appendTo(s.$slideTrack) : o ? i(e).insertBefore(s.$slides.eq(t)) : i(e).insertAfter(s.$slides.eq(t)) : !0 === o ? i(e).prependTo(s.$slideTrack) : i(e).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 (e, t) { 619 i(t).attr("data-slick-index", e) 620 }), s.$slidesCache = s.$slides, s.reinit() 621 }, e.prototype.animateHeight = function () { 622 var i = this; 623 if (1 === i.options.slidesToShow && !0 === i.options.adaptiveHeight && !1 === i.options.vertical) { 624 var e = i.$slides.eq(i.currentSlide).outerHeight(!0); 625 i.$list.animate({ height: e }, i.options.speed) 626 } 627 }, e.prototype.animateSlide = function (e, t) { 628 var o = {}, s = this; 629 s.animateHeight(), !0 === s.options.rtl && !1 === s.options.vertical && (e = -e), !1 === s.transformsEnabled ? !1 === s.options.vertical ? s.$slideTrack.animate({ left: e }, s.options.speed, s.options.easing, t) : s.$slideTrack.animate({ top: e }, s.options.speed, s.options.easing, t) : !1 === s.cssTransitions ? (!0 === s.options.rtl && (s.currentLeft = -s.currentLeft), i({ animStart: s.currentLeft }).animate({ animStart: e }, { 630 duration: s.options.speed, 631 easing: s.options.easing, 632 step: function (i) { 633 i = Math.ceil(i), !1 === s.options.vertical ? (o[s.animType] = "translate(" + i + "px, 0px)", s.$slideTrack.css(o)) : (o[s.animType] = "translate(0px," + i + "px)", s.$slideTrack.css(o)) 634 }, 635 complete: function () { 636 t && t.call() 637 } 638 }
638)) : (s.applyTransition(), e = Math.ceil(e), !1 === s.options.vertical ? o[s.animType] = "translate3d(" + e + "px, 0px, 0px)" : o[s.animType] = "translate3d(0px," + e + "px, 0px)", s.$slideTrack.css(o), t && setTimeout(function () { 639 s.disableTransition(), t.call() 640 }, s.options.speed)) 641 }, e.prototype.getNavTarget = function () { 642 var e = this, t = e.options.asNavFor; 643 return t && null !== t && (t = i(t).not(e.$slider)), t 644 }, e.prototype.asNavFor = function (e) { 645 var t = this.getNavTarget(); 646 null !== t && "object" == typeof t && t.each(function () { 647 var t = i(this).slick("getSlick"); 648 t.unslicked || t.slideHandler(e, !0) 649 }) 650 }, e.prototype.applyTransition = function (i) { 651 var e = this, t = {}; 652 !1 === e.options.fade ? t[e.transitionType] = e.transformType + " " + e.options.speed + "ms " + e.options.cssEase : t[e.transitionType] = "opacity " + e.options.speed + "ms " + e.options.cssEase, !1 === e.options.fade ? e.$slideTrack.css(t) : e.$slides.eq(i).css(t) 653 }, e.prototype.autoPlay = function () { 654 var i = this; 655 i.autoPlayClear(), i.slideCount > i.options.slidesToShow && (i.autoPlayTimer = setInterval(i.autoPlayIterator, i.options.autoplaySpeed)) 656 }, e.prototype.autoPlayClear = function () { 657 var i = this; 658 i.autoPlayTimer && clearInterval(i.autoPlayTimer) 659 }, e.prototype.autoPlayIterator = function () { 660 var i = this, e = i.currentSlide + i.options.slidesToScroll; 661 i.paused || i.interrupted || i.focussed || (!1 === i.options.infinite && (1 === i.direction && i.currentSlide + 1 === i.slideCount - 1 ? i.direction = 0 : 0 === i.direction && (e = i.currentSlide - i.options.slidesToScroll, i.currentSlide - 1 == 0 && (i.direction = 1))), i.slideHandler(e)) 662 }, e.prototype.buildArrows = function () { 663 var e = this; 664 !0 === e.options.arrows && (e.$prevArrow = i(e.options.prevArrow).addClass("slick-arrow"), e.$nextArrow = i(e.options.nextArrow).addClass("slick-arrow"), e.slideCount > e.options.slidesToShow ? (e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.prependTo(e.options.appendArrows), e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.appendTo(e.options.appendArrows), !0 !== e.options.infinite && e.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({ 665 "aria-disabled": "true", 666 tabindex: "-1" 667 })) 668 }, e.prototype.buildDots = function () { 669 var e, t, o = this; 670 if (!0 === o.options.dots) { 671 for (o.$slider.addClass("slick-dotted"), t = i("<ul />").addClass(o.options.dotsClass), e = 0; e <= o.getDotCount(); e += 1) t.append(i("<li />").append(o.options.customPaging.call(this, o, e))); 672 o.$dots = t.appendTo(o.options.appendDots), o.$dots.find("li").first().addClass("slick-active") 673 } 674 }, e.prototype.buildOut = function () { 675 var e = this; 676 e.$slides = e.$slider.children(e.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), e.slideCount = e.$slides.length, e.$slides.each(function (e, t) { 677 i(t).attr("data-slick-index", e).data("originalStyling", i(t).attr("style") || "") 678 }), e.$slider.addClass("slick-slider"), e.$slideTrack = 0 === e.slideCount ? i('<div class="slick-track"/>').appendTo(e.$slider) : e.$slides.wrapAll('<div class="slick-track"/>').parent(), e.$list = e.$slideTrack.wrap('<div class="slick-list"/>').parent(), e.$slideTrack.css("opacity", 0), !0 !== e.options.centerMode && !0 !== e.options.swipeToSlide || (e.options.slidesToScroll = 1), i("img[data-lazy]", e.$slider).not("[src]").addClass("slick-loading"), e.setupInfinite(), e.buildArrows(), e.buildDots(), e.updateDots(), e.setSlideClasses("number" == typeof e.currentSlide ? e.currentSlide : 0), !0 === e.options.draggable && e.$list.addClass("draggable") 679 }, e.prototype.buildRows = function () { 680 var i, e, t, o, s, n, r, l = this; 681 if (o = document.createDocumentFragment(), n = l.$slider.children(), l.options.rows > 1) { 682 for (r = l.options.slidesPerRow * l.options.rows, s = Math.ceil(n.length / r), i = 0; i < s; i++) { 683 var d = document.createElement("div"); 684 for (e = 0; e < l.options.rows; e++) { 685 var a = document.createElement("div"); 686 for (t = 0; t < l.options.slidesPerRow; t++) { 687 var c = i * r + (e * l.options.slidesPerRow + t); 688 n.get(c) && a.appendChild(n.get(c)) 689 } 690 d.appendChild(a) 691 } 692 o.appendChild(d) 693 } 694 l.$slider.empty().append(o), l.$slider.children().children().children().css({ 695 width: 100 / l.options.slidesPerRow + "%", 696 display: "inline-block" 697 }) 698 } 699 }, e.prototype.checkResponsive = function (e, t) { 700 var o, s, n, r = this, l = !1, d = r.$slider.width(), a = window.innerWidth || i(window).width(); 701 if ("window" === r.respondTo ? n = a : "slider" === r.respondTo ? n = d : "min" === r.respondTo && (n = Math.min(a, d)), r.options.responsive && r.options.responsive.length && null !== r.options.responsive) { 702 s = null; 703 for (o in 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])); 704 null !== s ? null !== r.activeBreakpoint ? (s !== r.activeBreakpoint || t) && (r.activeBreakpoint = s, "unslick" === r.breakpointSettings[s] ? r.unslick(s) : (r.o
704ptions = i.extend({}, r.originalSettings, r.breakpointSettings[s]), !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e)), l = s) : (r.activeBreakpoint = s, "unslick" === r.breakpointSettings[s] ? r.unslick(s) : (r.options = i.extend({}, r.originalSettings, r.breakpointSettings[s]), !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e)), l = s) : null !== r.activeBreakpoint && (r.activeBreakpoint = null, r.options = r.originalSettings, !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e), l = s), e || !1 === l || r.$slider.trigger("breakpoint", [r, l]) 705 } 706 }, e.prototype.changeSlide = function (e, t) { 707 var o, s, n, r = this, l = i(e.currentTarget); 708 switch (l.is("a") && e.preventDefault(), l.is("li") || (l = l.closest("li")), n = r.slideCount % r.options.slidesToScroll != 0, o = n ? 0 : (r.slideCount - r.currentSlide) % r.options.slidesToScroll, e.data.message) { 709 case "previous": 710 s = 0 === o ? r.options.slidesToScroll : r.options.slidesToShow - o, r.slideCount > r.options.slidesToShow && r.slideHandler(r.currentSlide - s, !1, t); 711 break; 712 case "next": 713 s = 0 === o ? r.options.slidesToScroll : o, r.slideCount > r.options.slidesToShow && r.slideHandler(r.currentSlide + s, !1, t); 714 break; 715 case "index": 716 var d = 0 === e.data.index ? 0 : e.data.index || l.index() * r.options.slidesToScroll; 717 r.slideHandler(r.checkNavigable(d), !1, t), l.children().trigger("focus"); 718 break; 719 default: 720 return 721 } 722 }, e.prototype.checkNavigable = function (i) { 723 var e, t; 724 if (e = this.getNavigableIndexes(), t = 0, i > e[e.length - 1]) i = e[e.length - 1]; else for (var o in e) { 725 if (i < e[o]) { 726 i = t; 727 break 728 } 729 t = e[o] 730 } 731 return i 732 }, e.prototype.cleanUpEvents = function () { 733 var e = this; 734 e.options.dots && null !== e.$dots && (i("li", e.$dots).off("click.slick", e.changeSlide).off("mouseenter.slick", i.proxy(e.interrupt, e, !0)).off("mouseleave.slick", i.proxy(e.interrupt, e, !1)), !0 === e.options.accessibility && e.$dots.off("keydown.slick", e.keyHandler)), e.$slider.off("focus.slick blur.slick"), !0 === e.options.arrows && e.slideCount > e.options.slidesToShow && (e.$prevArrow && e.$prevArrow.off("click.slick", e.changeSlide), e.$nextArrow && e.$nextArrow.off("click.slick", e.changeSlide), !0 === e.options.accessibility && (e.$prevArrow && e.$prevArrow.off("keydown.slick", e.keyHandler), e.$nextArrow && e.$nextArrow.off("keydown.slick", e.keyHandler))), e.$list.off("touchstart.slick mousedown.slick", e.swipeHandler), e.$list.off("touchmove.slick mousemove.slick", e.swipeHandler), e.$list.off("touchend.slick mouseup.slick", e.swipeHandler), e.$list.off("touchcancel.slick mouseleave.
734slick", e.swipeHandler), e.$list.off("click.slick", e.clickHandler), i(document).off(e.visibilityChange, e.visibility), e.cleanUpSlideEvents(), !0 === e.options.accessibility && e.$list.off("keydown.slick", e.keyHandler), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().off("click.slick", e.selectHandler), i(window).off("orientationchange.slick.slick-" + e.instanceUid, e.orientationChange), i(window).off("resize.slick.slick-" + e.instanceUid, e.resize), i("[draggable!=true]", e.$slideTrack).off("dragstart", e.preventDefault), i(window).off("load.slick.slick-" + e.instanceUid, e.setPosition) 735 }, e.prototype.cleanUpSlideEvents = function () { 736 var e = this; 737 e.$list.off("mouseenter.slick", i.proxy(e.interrupt, e, !0)), e.$list.off("mouseleave.slick", i.proxy(e.interrupt, e, !1)) 738 }, e.prototype.cleanUpRows = function () { 739 var i, e = this; 740 e.options.rows > 1 && ((i = e.$slides.children().children()).removeAttr("style"), e.$slider.empty().append(i)) 741 }, e.prototype.clickHandler = function (i) { 742 !1 === this.shouldClick && (i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault()) 743 }, e.prototype.destroy = function (e) { 744 var t = this; 745 t.autoPlayClear(), t.touchObject = {}, t.cleanUpEvents(), i(".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 () { 746 i(this).attr("style", i(this).data("originalStyling")) 747 }), 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, e || t.$slider.trigger("destroy", [t]) 748 }, e.prototype.disableTransition = function (i) { 749 var e = this, t = {}; 750 t[e.transitionType] = "", !1 === e.options.fade ? e.$slideTrack.css(t) : e.$slides.eq(i).css(t) 751 }, e.prototype.fadeSlide = function (i, e) { 752 var t = this; 753 !1 === t.cssTransitions ? (t.$slides.eq(i).css({ zIndex: t.options.zIndex }), t.$slides.eq(i).animate({ opacity: 1 }, t.options.speed, t.options.easing, e)) : (t.applyTransition(i), t.$slides.eq(i).css({ 754 opacity: 1, 755 zIndex: t.options.zIndex 756 }), e && setTimeout(function () { 757 t.disableTransition(i), e.call() 758 }, t.options.speed)) 759 }, e.prototype.fadeSlideOut = function (i) { 760 var e = this; 761 !1 === e.cssTransitions ? e.$slides.eq(i).animate({ 762 opacity: 0, 763 zIndex: e.options.zIndex - 2 764 }, e.options.speed, e.options.easing) : (e.applyTransition(i), e.$slides.eq(i).css({ 765 opacity: 0, 766 zIndex: e.options.zIndex - 2 767 })) 768 }, e.prototype.filterSlides = e.prototype.slickFilter = function (i) { 769 var e = this; 770 null !== i && (e.$slidesCache = e.$slides, e.unload(), e.$slideTrack.children(this.options.slide).detach(), e.$slidesCache.filter(i).appendTo(e.$slideTrack), e.reinit()) 771 }, e.prototype.focusHandler = function () { 772 var e = this; 773 e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function (t) { 774 t.stopImmediatePropagation(); 775 var o = i(this); 776 setTimeout(function () { 777 e.options.pauseOnFocus && (e.focussed = o.is(":focus"), e.autoPlay()) 778 }, 0) 779 }) 780 }, e.prototype.getCurrent = e.prototype.slickCurrentSlide = function () { 781 return this.currentSlide 782 }, e.prototype.getDotCount = function () { 783 var i = this, e = 0, t = 0, o = 0;
784 if (!0 === i.options.infinite) if (i.slideCount <= i.options.slidesToShow) ++o; else for (; e < i.slideCount;) ++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow; else if (!0 === i.options.centerMode) o = i.slideCount; else if (i.options.asNavFor) for (; e < i.slideCount;) ++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow; else o = 1 + Math.ceil((i.slideCount - i.options.slidesToShow) / i.options.slidesToScroll); 785 return o - 1 786 }, e.prototype.getLeft = function (i) { 787 var e, t, o, s, n = this, r = 0; 788 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 && i + n.options.slidesToScroll > n.slideCount && n.slideCount > n.options.slidesToShow && (i > n.slideCount ? (n.slideOffset = (n.options.slidesToShow - (i - n.slideCount)) * n.slideWidth * -1, r = (n.options.slidesToShow - (i - n.slideCount)) * t * -1) : (n.slideOffset = n.slideCount % n.options.slidesToScroll * n.slideWidth * -1, r = n.slideCount % n.options.slidesToScroll * t * -1))) : i + n.options.slidesToShow > n.slideCount && (n.slideOffset = (i + n.options.slidesToShow - n.slideCount) * n.slideWidth, r = (i + 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)), e = !1 === n.options.vertical ? i * n.slideWidth * -1 + n.slideOffset : i * t * -1 + r, !0 === n.options.variableWidth && (o = n.slideCount <= n.options.slidesToShow || !1 === n.options.infinite ? n.$slideTrack.children(".slick-slide").eq(i) : n.$slideTrack.children(".slick-slide").eq(i + n.options.slidesToShow), e = !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(i) : n.$slideTrack.children(".slick-slide").eq(i + n.options.slidesToShow + 1), e = !0 === n.options.rtl ? o[0] ? -1 * (n.$slideTrack.width() - o[0].offsetLeft - o.width()) : 0 : o[0] ? -1 * o[0].offsetLeft : 0, e += (n.$list.width() - o.outerWidth()) / 2)), e 789 }, e.prototype.getOption = e.prototype.slickGetOption = function (i) { 790 return this.options[i] 791 }, e.prototype.getNavigableIndexes = function () { 792 var i, e = this, t = 0, o = 0, s = []; 793 for (!1 === e.options.infinite ? i = e.slideCount : (t = -1 * e.options.slidesToScroll, o = -1 * e.options.slidesToScroll, i = 2 * e.slideCount); t < i;) s.push(t), t = o + e.options.slidesToScroll, o += e.options.slidesToScroll <= e.options.slidesToShow ? e.options.slidesToScroll : e.options.slidesToShow; 794 return s 795 }, e.prototype.getSlick = function () { 796 return this 797 }, e.prototype.getSlideCount = function () { 798 var e, t, o = this; 799 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) { 800 if (n.offsetLeft - t + i(n).outerWidth() / 2 > -1 * o.swipeLeft) return e = n, !1 801 }), Math.abs(i(e).attr("data-slick-index") - o.currentSlide) || 1) : o.options.slidesToScroll 802 }, e.prototype.goTo = e.prototype.slickGoTo = function (i, e) { 803 this.changeSlide({ data: { message: "index", index: parseInt(i) } }, e) 804 }, e.prototype.init = function (e) { 805 var t = this; 806 i(t.$slider).hasClass("slick-initialized") || (i(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()), e && t.$slider.trigger("init", [t]), !0 === t.options.accessibility && t.initADA(), t.options.autoplay && (t.paused = !1, t.autoPlay()) 807 }, e.prototype.initADA = function () {
808 var e = this, t = Math.ceil(e.slideCount / e.options.slidesToShow), 809 o = e.getNavigableIndexes().filter(function (i) { 810 return i >= 0 && i < e.slideCount 811 }); 812 e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({ 813 "aria-hidden": "true", 814 tabindex: "-1" 815 }).find("a, input, button, select").attr({ tabindex: "-1" }), null !== e.$dots && (e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function (t) { 816 var s = o.indexOf(t); 817 i(this).attr({ 818 role: "tabpanel", 819 id: "slick-slide" + e.instanceUid + t, 820 tabindex: -1 821 }), -1 !== s && i(this).attr({ "aria-describedby": "slick-slide-control" + e.instanceUid + s }) 822 }), e.$dots.attr("role", "tablist").find("li").each(function (s) { 823 var n = o[s]; 824 i(this).attr({ role: "presentation" }), i(this).find("button").first().attr({ 825 role: "tab", 826 id: "slick-slide-control" + e.instanceUid + s, 827 "aria-controls": "slick-slide" + e.instanceUid + n, 828 "aria-label": s + 1 + " of " + t, 829 "aria-selected": null, 830 tabindex: "-1" 831 }) 832 }).eq(e.currentSlide).find("button").attr({ "aria-selected": "true", tabindex: "0" }).end()); 833 for (var s = e.currentSlide, n = s + e.options.slidesToShow; s < n; s++) e.$slides.eq(s).attr("tabindex", 0); 834 e.activateADA() 835 }, e.prototype.initArrowEvents = function () { 836 var i = this; 837 !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.off("click.slick").on("click.slick", { message: "previous" }, i.changeSlide), i.$nextArrow.off("click.slick").on("click.slick", { message: "next" }, i.changeSlide), !0 === i.options.accessibility && (i.$prevArrow.on("keydown.slick", i.keyHandler), i.$nextArrow.on("keydown.slick", i.keyHandler))) 838 }, e.prototype.initDotEvents = function () { 839 var e = this; 840 !0 === e.options.dots && (i("li", e.$dots).on("click.slick", { message: "index" }, e.changeSlide), !0 === e.options.accessibility && e.$dots.on("keydown.slick", e.keyHandler)), !0 === e.options.dots && !0 === e.options.pauseOnDotsHover && i("li", e.$dots).on("mouseenter.slick", i.proxy(e.interrupt, e, !0)).on("mouseleave.slick", i.proxy(e.interrupt, e, !1)) 841 }, e.prototype.initSlideEvents = function () { 842 var e = this; 843 e.options.pauseOnHover && (e.$list.on("mouseenter.slick", i.proxy(e.interrupt, e, !0)), e.$list.on("mouseleave.slick", i.proxy(e.interrupt, e, !1))) 844 }, e.prototype.initializeEvents = function () { 845 var e = this; 846 e.initArrowEvents(), e.initDotEvents(), e.initSlideEvents(), e.$list.on("touchstart.slick mousedown.slick", { action: "start" }, e.swipeHandler), e.$list.on("touchmove.slick mousemove.slick", { action: "move" }, e.swipeHandler), e.$list.on("touchend.slick mouseup.slick", { action: "end" }
846, e.swipeHandler), e.$list.on("touchcancel.slick mouseleave.slick", { action: "end" }, e.swipeHandler), e.$list.on("click.slick", e.clickHandler), i(document).on(e.visibilityChange, i.proxy(e.visibility, e)), !0 === e.options.accessibility && e.$list.on("keydown.slick", e.keyHandler), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().on("click.slick", e.selectHandler), i(window).on("orientationchange.slick.slick-" + e.instanceUid, i.proxy(e.orientationChange, e)), i(window).on("resize.slick.slick-" + e.instanceUid, i.proxy(e.resize, e)), i("[draggable!=true]", e.$slideTrack).on("dragstart", e.preventDefault), i(window).on("load.slick.slick-" + e.instanceUid, e.setPosition), i(e.setPosition) 847 }, e.prototype.initUI = function () { 848 var i = this; 849 !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.show(), i.$nextArrow.show()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.show() 850 }, e.prototype.keyHandler = function (i) { 851 var e = this; 852 i.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === i.keyCode && !0 === e.options.accessibility ? e.changeSlide({ data: { message: !0 === e.options.rtl ? "next" : "previous" } }) : 39 === i.keyCode && !0 === e.options.accessibility && e.changeSlide({ data: { message: !0 === e.options.rtl ? "previous" : "next" } })) 853 }, e.prototype.lazyLoad = function () { 854 function e(e) { 855 i("img[data-lazy]", e).each(function () { 856 var e = i(this), t = i(this).attr("data-lazy"), o = i(this).attr("data-srcset"), 857 s = i(this).attr("data-sizes") || n.$slider.attr("data-sizes"), r = document.createElement("img"); 858 r.onload = function () { 859 e.animate({ opacity: 0 }, 100, function () { 860 o && (e.attr("srcset", o), s && e.attr("sizes", s)), e.attr("src", t).animate({ opacity: 1 }, 200, function () { 861 e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading") 862 }), n.$slider.trigger("lazyLoaded", [n, e, t]) 863 }) 864 }, r.onerror = function () { 865 e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), n.$slider.trigger("lazyLoadError", [n, e, t]) 866 }, r.src = t 867 }) 868 } 869 870 var t, o, s, n = this; 871 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, d = n.$slider.find(".slick-slide"), a = 0; a < n.options.slidesToScroll; a++) r < 0 && (r = n.slideCount - 1), t = (t = t.add(d.eq(r))).add(d.eq(l)), r--, l++; 872 e(t), n.slideCount <= n.options.slidesToShow ? e(n.$slider.find(".slick-slide")) : n.currentSlide >= n.slideCount - n.options.slidesToShow ? e(n.$slider.find(".slick-cloned").slice(0, n.options.slidesToShow)) : 0 === n.currentSlide && e(n.$slider.find(".slick-cloned").slice(-1 * n.options.slidesToShow)) 873 }, e.prototype.loadSlider = function () { 874 var i = this; 875 i.setPosition(), i.$slideTrack.css({ opacity: 1 }), i.$slider.removeClass("slick-loading"), i.initUI(), "progressive" === i.options.lazyLoad && i.progressiveLazyLoad() 876 }, e.prototype.next = e.prototype.slickNext = function () { 877 this.changeSlide({ data: { message: "next" } }) 878 }, e.prototype.orientationChange = function () { 879 var i = this; 880 i.checkResponsive(), i.setPosition() 881 }, e.prototype.pause = e.prototype.slickPause = function () { 882 var i = this; 883 i.autoPlayClear(), i.paused = !0 884 }, e.prototype.play = e.prototype.slickPlay = function () { 885 var i = this; 886 i.autoPlay(), i.options.autoplay = !0, i.paused = !1, i.focussed = !1, i.interrupted = !1 887 }, e.prototype.postSlide = function (e) { 888 var t = this; 889 t.unslicked || (t.$slider.trigger("afterChange", [t, e]), 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 && i(t.$slides.get(t.currentSlide)).attr("tabindex", 0).focus())) 890 }, e.prototype.prev = e.prototype.slickPrev = function () { 891 this.changeSlide({ data: { message: "previous" } }) 892 }, e.prototype.preventDefault = function (i) { 893 i.preventDefault() 894 }, e.prototype.progressiveLazyLoad = function (e) { 895 e = e || 1; 896 var t, o, s, n, r, l = this, d = i("img[data-lazy]", l.$slider); 897 d.length ? (t = d.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 () { 898 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() 899 }, r.onerror = function () { 900 e < 3 ? setTimeout(function () { 901 l.progressiveLazyLoad(e + 1) 902 }, 500) : (t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), l.$slider.trigger("lazyLoadError", [l, t, o]), l.progressiveLazyLoad()) 903 }, r.src = o) : l.$slider.trigger("allImagesLoaded", [l]) 904 }, e.prototype.refresh = function (e) { 905 var t, o, s = this; 906 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), i.extend(s, s.initials, { currentSlide: t }), s.init(), e || s.changeSlide({ 907 data: { 908 message: "index", 909 index: t 910 } 911 }, !1) 912 }, e.prototype.registerBreakpoints = function () { 913 var e, t, o, s = this, n = s.options.responsive || null; 914 if ("array" === i.type(n) && n.length) { 915 s.respondTo = s.options.respondTo || "window"; 916 for (e in n) if (o = s.breakpoints.length - 1, n.hasOwnProperty(e)) { 917 for (t = n[e].breakpoint; o >= 0;) s.breakpoints[o] && s.breakpoints[o] === t && s.breakpoints.splice(o, 1), o--; 918 s.breakpoints.push(t), s.breakpointSettings[t] = n[e].settings 919 } 920 s.breakpoints.sort(function (i, e) { 921 return s.options.mobileFirst ? i - e : e - i 922 }) 923 } 924 }, e.prototype.reinit = function () { 925 var e = this; 926 e.$slides = e.$slideTrack.children(e.options.slide).addClass("slick-slide"), e.slideCount = e.$slides.length, e.currentSlide >= e.slideCount && 0 !== e.currentSlide && (e.currentSlide = e.currentSlide - e.options.slidesToScroll), e.slideCount <= e.options.slidesToShow && (e.currentSlide = 0), e.registerBreakpoints(), e.setProps(), e.setupInfinite(), e.buildArrows(), e.updateArrows(), e.initArrowEvents(), e.buildDots(), e.updateDots(), e.initDotEvents(), e.cleanUpSlideEvents(), e.initSlideEvents(), e.checkResponsive(!1, !0), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().on("click.slick", e.selectHandler), e.setSlideClasses("number" == typeof e.currentSlide ? e.currentSlide : 0), e.setPosition(), e.focusHandler(), e.paused = !e.options.autoplay, e.autoPlay(), e.$slider.trigger("reInit", [e]) 927 }, e.prototype.resize = function () { 928 var e = this; 929 i(window).width() !== e.windowWidth && (clearTimeout(e.windowDelay), e.windowDelay = window.setTimeout(function () {
930 e.windowWidth = i(window).width(), e.checkResponsive(), e.unslicked || e.setPosition() 931 }, 50)) 932 }, e.prototype.removeSlide = e.prototype.slickRemove = function (i, e, t) { 933 var o = this; 934 if (i = "boolean" == typeof i ? !0 === (e = i) ? 0 : o.slideCount - 1 : !0 === e ? --i : i, o.slideCount < 1 || i < 0 || i > o.slideCount - 1) return !1; 935 o.unload(), !0 === t ? o.$slideTrack.children().remove() : o.$slideTrack.children(this.options.slide).eq(i).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() 936 }, e.prototype.setCSS = function (i) { 937 var e, t, o = this, s = {}; 938 !0 === o.options.rtl && (i = -i), e = "left" == o.positionProp ? Math.ceil(i) + "px" : "0px", t = "top" == o.positionProp ? Math.ceil(i) + "px" : "0px", s[o.positionProp] = i, !1 === o.transformsEnabled ? o.$slideTrack.css(s) : (s = {}, !1 === o.cssTransitions ? (s[o.animType] = "translate(" + e + ", " + t + ")", o.$slideTrack.css(s)) : (s[o.animType] = "translate3d(" + e + ", " + t + ", 0px)", o.$slideTrack.css(s))) 939 }, e.prototype.setDimensions = function () { 940 var i = this; 941 !1 === i.options.vertical ? !0 === i.options.centerMode && i.$list.css({ padding: "0px " + i.options.centerPadding }) : (i.$list.height(i.$slides.first().outerHeight(!0) * i.options.slidesToShow), !0 === i.options.centerMode && i.$list.css({ padding: i.options.centerPadding + " 0px" })), i.listWidth = i.$list.width(), i.listHeight = i.$list.height(), !1 === i.options.vertical && !1 === i.options.variableWidth ? (i.slideWidth = Math.ceil(i.listWidth / i.options.slidesToShow), i.$slideTrack.width(Math.ceil(i.slideWidth * i.$slideTrack.children(".slick-slide").length))) : !0 === i.options.variableWidth ? i.$slideTrack.width(5e3 * i.slideCount) : (i.slideWidth = Math.ceil(i.listWidth), i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0) * i.$slideTrack.children(".slick-slide").length))); 942 var e = i.$slides.first().outerWidth(!0) - i.$slides.first().width(); 943 !1 === i.options.variableWidth && i.$slideTrack.children(".slick-slide").width(i.slideWidth - e) 944 }, e.prototype.setFade = function () { 945 var e, t = this; 946 t.$slides.each(function (o, s) { 947 e = t.slideWidth * o * -1, !0 === t.options.rtl ? i(s).css({ 948 position: "relative", 949 right: e, 950 top: 0, 951 zIndex: t.options.zIndex - 2, 952 opacity: 0 953 }) : i(s).css({ position: "relative", left: e, top: 0, zIndex: t.options.zIndex - 2, opacity: 0 }) 954 }), t.$slides.eq(t.currentSlide).css({ zIndex: t.options.zIndex - 1, opacity: 1 }) 955 }, e.prototype.setHeight = function () { 956 var i = this; 957 if (1 === i.options.slidesToShow && !0 === i.options.adaptiveHeight && !1 === i.options.vertical) { 958 var e = i.$slides.eq(i.currentSlide).outerHeight(!0); 959 i.$list.css("height", e) 960 } 961 }, e.prototype.setOption = e.prototype.slickSetOption = function () { 962 var e, t, o, s, n, r = this, l = !1; 963 if ("object" === i.type(arguments[0]) ? (o = arguments[0], l = arguments[1], n = "multiple") : "string" === i.type(arguments[0]) && (o = arguments[0], s = arguments[1], l = arguments[2], "responsive" === arguments[0] && "array" === i.type(arguments[1]) ? n = "responsive" : void 0 !== arguments[1] && (n = "single")), "single" === n) r.options[o] = s; else if ("multiple" === n) i.each(o, function (i, e) { 964 r.options[i] = e 965 }); else if ("responsive" === n) for (t in s) if ("array" !== i.type(r.options.responsive)) r.options.responsive = [s[t]]; else { 966 for (e = r.options.responsive.length - 1; e >= 0;) r.options.responsive[e].breakpoint === s[t].breakpoint && r.options.responsive.splice(e, 1), e--; 967 r.options.responsive.push(s[t]) 968 } 969 l && (r.unload(), r.reinit()) 970 }, e.prototype.setPosition = function () { 971 var i = this; 972 i.setDimensions(), i.setHeight(), !1 === i.options.fade ? i.setCSS(i.getLeft(i.currentSlide)) : i.setFade(), i.$slider.trigger("setPosition", [i]) 973 }, e.prototype.setProps = function () { 974 var i = this, e = document.body.style; 975 i.positionProp = !0 === i.options.vertical ? "top" : "left", "top" === i.positionProp ? i.$slider.addClass("slick-vertical") : i.$slider.removeClass("slick-vertical"), void 0 === e.WebkitTransition && void 0 === e.MozTransition && void 0 === e.msTransition || !0 === i.options.useCSS && (i.cssTransitions = !0), i.options.fade && ("number" == typeof i.options.zIndex ? i.options.zIndex < 3 && (i.options.zIndex = 3) : i.options.zIndex = i.defaults.zIndex), void 0 !== e.OTransform && (i.animType = "OTransform", i.transformType = "-o-transform", i.transitionType = "OTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.MozTransform && (i.animType = "MozTransform", i.transformType = "-moz-transform", i.transitionType = "MozTransition", void 0 === e.perspectiveProperty && void 0 === e.MozPerspective && (i.animType = !1)), void 0 !== e.webkitTransform && (i.animType = "
975webkitTransform", i.transformType = "-webkit-transform", i.transitionType = "webkitTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.msTransform && (i.animType = "msTransform", i.transformType = "-ms-transform", i.transitionType = "msTransition", void 0 === e.msTransform && (i.animType = !1)), void 0 !== e.transform && !1 !== i.animType && (i.animType = "transform", i.transformType = "transform", i.transitionType = "transition"), i.transformsEnabled = i.options.useTransform && null !== i.animType && !1 !== i.animType 976 }, e.prototype.setSlideClasses = function (i) { 977 var e, t, o, s, n = this; 978 if (t = n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), n.$slides.eq(i).addClass("slick-current"), !0 === n.options.centerMode) { 979 var r = n.options.slidesToShow % 2 == 0 ? 1 : 0; 980 e = Math.floor(n.options.slidesToShow / 2), !0 === n.options.infinite && (i >= e && i <= n.slideCount - 1 - e ? n.$slides.slice(i - e + r, i + e + 1).addClass("slick-active").attr("aria-hidden", "false") : (o = n.options.slidesToShow + i, t.slice(o - e + 1 + r, o + e + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === i ? t.eq(t.length - 1 - n.options.slidesToShow).addClass("slick-center") : i === n.slideCount - 1 && t.eq(n.options.slidesToShow).addClass("slick-center")), n.$slides.eq(i).addClass("slick-center") 981 } else i >= 0 && i <= n.slideCount - n.options.slidesToShow ? n.$slides.slice(i, i + 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 + i : i, n.options.slidesToShow == n.options.slidesToScroll && n.slideCount - i < 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")); 982 "ondemand" !== n.options.lazyLoad && "anticipated" !== n.options.lazyLoad || n.lazyLoad() 983 }, e.prototype.setupInfinite = function () { 984 var e, t, o, s = this; 985 if (!0 === s.options.fade && (s.options.centerMode = !1), !0 === s.options.infinite && !1 === s.options.fade && (t = null, s.slideCount > s.options.slidesToShow)) { 986 for (o = !0 === s.options.centerMode ? s.options.slidesToShow + 1 : s.options.slidesToShow, e = s.slideCount; e > s.slideCount - o; e -= 1) t = e - 1, i(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t - s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned"); 987 for (e = 0; e < o + s.slideCount; e += 1) t = e, i(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t + s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned"); 988 s.$slideTrack.find(".slick-cloned").find("[id]").each(function () { 989 i(this).attr("id", "") 990 }) 991 } 992 }, e.prototype.interrupt = function (i) { 993 var e = this; 994 i || e.autoPlay(), e.interrupted = i 995 }, e.prototype.selectHandler = function (e) { 996 var t = this, o = i(e.target).is(".slick-slide") ? i(e.target) : i(e.target).parents(".slick-slide"), 997 s = parseInt(o.attr("data-slick-index")); 998 s || (s = 0), t.slideCount <= t.options.slidesToShow ? t.slideHandler(s, !1, !0) : t.slideHandler(s) 999 }, e.prototype.slideHandler = function (i, e, t) { 1000 var o, s, n, r, l, d = null, a = this; 1001 if (e = e || !1, !(!0 === a.animating && !0 === a.options.waitForAnimate || !0 === a.options.fade && a.currentSlide === i)) if (!1 === e && a.asNavFor(i), o = i, d = a.getLeft(o), r = a.getLeft(a.currentSlide), a.currentLeft = null === a.swipeLeft ? r : a.swipeLeft, !1 === a.options.infinite && !1 === a.options.centerMode && (i < 0 || i > a.getDotCount() * a.options.slidesToScroll)) !1 === a.options.fade && (o = a.currentSlide, !0 !== t ? a.animateSlide(r, function () { 1002 a.postSlide(o) 1003 }) : a.postSlide(o)); else if (!1 === a.options.infinite && !0 === a.options.centerMode && (i < 0 || i > a.slideCount - a.options.slidesToScroll)) !1 === a.options.fade && (o = a.currentSlide, !0 !== t ? a.animateSlide(r, function () { 1004 a.postSlide(o) 1005 }) : a.postSlide(o)); else { 1006 if (a.options.autoplay && clearInterval(a.autoPlayTimer), s = o < 0 ? a.slideCount % a.options.slidesToScroll != 0 ? a.slideCount - a.slideCount % a.options.slidesToScroll : a.slideCount + o : o >= a.slideCount ? a.slideCount % a.options.slidesToScroll != 0 ? 0 : o - a.slideCount : o, a.animating = !0, a.$slider.trigger("beforeChange", [a, a.currentSlide, s]), n = a.currentSlide, a.currentSlide = s, a.setSlideClasses(a.currentSlide), a.options.asNavFor && (l = (l = a.getNavTarget()).slick("getSlick")).slideCount <= l.options.slidesToShow && l.setSlideClasses(a.currentSlide), a.updateDots(), a.updateArrows(), !0 === a.options.fade) return !0 !== t ? (a.fadeSlideOut(n), a.fadeSlide(s, function () { 1007 a.postSlide(s) 1008 })) : a.postSlide(s), void a.animateHeight(); 1009 !0 !== t ? a.animateSlide(d, function () { 1010 a.postSlide(s) 1011 }) : a.postSlide(s) 1012 } 1013 }, e.prototype.startLoad = function () { 1014 var i = this; 1015 !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.hide(), i.$nextArrow.hide()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.hide(), i.$slider.addClass("slick-loading") 1016 }, e.prototype.swipeDirection = function () { 1017 var i, e, t, o, s = this; 1018 return i = s.touchObject.startX - s.touchObject.curX, e = s.touchObject.startY - s.touchObject.curY, t = Math.atan2(e, i), (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" 1019 }, e.prototype.swipeEnd = function (i) { 1020 var e, t, o = this; 1021 if (o.dragging = !1, o.swiping = !1, o.scrolling) return o.scrolling = !1, !1; 1022 if (o.interrupted = !1, o.shouldClick = !(o.touchObject.swipeLength > 10), void 0 === o.touchObject.curX) return !1; 1023 if (!0 === o.touchObject.edgeHit && o.$slider.trigger("edge", [o, o.swipeDirection()]), o.touchObject.swipeLength >= o.touchObject.minSwipe) { 1024 switch (t = o.swipeDirection()) {
1025 case "left": 1026 case "down": 1027 e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide + o.getSlideCount()) : o.currentSlide + o.getSlideCount(), o.currentDirection = 0; 1028 break; 1029 case "right": 1030 case "up": 1031 e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide - o.getSlideCount()) : o.currentSlide - o.getSlideCount(), o.currentDirection = 1 1032 } 1033 "vertical" != t && (o.slideHandler(e), o.touchObject = {}, o.$slider.trigger("swipe", [o, t])) 1034 } else o.touchObject.startX !== o.touchObject.curX && (o.slideHandler(o.currentSlide), o.touchObject = {}) 1035 }, e.prototype.swipeHandler = function (i) { 1036 var e = this; 1037 if (!(!1 === e.options.swipe || "ontouchend" in document && !1 === e.options.swipe || !1 === e.options.draggable && -1 !== i.type.indexOf("mouse"))) switch (e.touchObject.fingerCount = i.originalEvent && void 0 !== i.originalEvent.touches ? i.originalEvent.touches.length : 1, e.touchObject.minSwipe = e.listWidth / e.options.touchThreshold, !0 === e.options.verticalSwiping && (e.touchObject.minSwipe = e.listHeight / e.options.touchThreshold), i.data.action) { 1038 case "start": 1039 e.swipeStart(i); 1040 break; 1041 case "move": 1042 e.swipeMove(i); 1043 break; 1044 case "end": 1045 e.swipeEnd(i) 1046 } 1047 }, e.prototype.swipeMove = function (i) { 1048 var e, t, o, s, n, r, l = this; 1049 return n = void 0 !== i.originalEvent ? i.originalEvent.touches : null, !(!l.dragging || l.scrolling || n && 1 !== n.length) && (e = l.getLeft(l.currentSlide), l.touchObject.curX = void 0 !== n ? n[0].pageX : i.clientX, l.touchObject.curY = void 0 !== n ? n[0].pageY : i.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 !== i.originalEvent && l.touchObject.swipeLength > 4 && (l.swiping = !0, i.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 = e + o * s : l.swipeLeft = e + o * (l.$list.height() / l.listWidth) * s, !0 === l.options.verticalSwiping && (l.swipeLeft = e + o * s), !0 !== l.options.fade && !1 !== l.options.touchMove && (!0 === l.animating ? (l.swipeLeft = null, !1) : void l.setCSS(l.swipeLeft)))) 1050 }, e.prototype.swipeStart = function (i) { 1051 var e, t = this; 1052 if (t.interrupted = !0, 1 !== t.touchObject.fingerCount || t.slideCount <= t.options.slidesToShow) return t.touchObject = {}, !1; 1053 void 0 !== i.originalEvent && void 0 !== i.originalEvent.touches && (e = i.originalEvent.touches[0]), t.touchObject.startX = t.touchObject.curX = void 0 !== e ? e.pageX : i.clientX, t.touchObject.startY = t.touchObject.curY = void 0 !== e ? e.pageY : i.clientY, t.dragging = !0 1054 }, e.prototype.unfilterSlides = e.prototype.slickUnfilter = function () { 1055 var i = this; 1056 null !== i.$slidesCache && (i.unload(), i.$slideTrack.children(this.options.slide).detach(), i.$slidesCache.appendTo(i.$slideTrack), i.reinit()) 1057 }, e.prototype.unload = function () { 1058 var e = this; 1059 i(".slick-cloned", e.$slider).remove(), e.$dots && e.$dots.remove(), e.$prevArrow && e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.remove(), e.$nextArrow && e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.remove(), e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "") 1060 }
1060, e.prototype.unslick = function (i) { 1061 var e = this; 1062 e.$slider.trigger("unslick", [e, i]), e.destroy() 1063 }, e.prototype.updateArrows = function () { 1064 var i = this; 1065 Math.floor(i.options.slidesToShow / 2), !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && !i.options.infinite && (i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === i.currentSlide ? (i.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : i.currentSlide >= i.slideCount - i.options.slidesToShow && !1 === i.options.centerMode ? (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : i.currentSlide >= i.slideCount - 1 && !0 === i.options.centerMode && (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"))) 1066 }, e.prototype.updateDots = function () { 1067 var i = this; 1068 null !== i.$dots && (i.$dots.find("li").removeClass("slick-active").end(), i.$dots.find("li").eq(Math.floor(i.currentSlide / i.options.slidesToScroll)).addClass("slick-active")) 1069 }, e.prototype.visibility = function () { 1070 var i = this; 1071 i.options.autoplay && (document[i.hidden] ? i.interrupted = !0 : i.interrupted = !1) 1072 }, i.fn.slick = function () { 1073 var i, t, o = this, s = arguments[0], n = Array.prototype.slice.call(arguments, 1), r = o.length; 1074 for (i = 0; i < r; i++) if ("object" == typeof s || void 0 === s ? o[i].slick = new e(o[i], s) : t = o[i].slick[s].apply(o[i].slick, n), void 0 !== t) return t; 1075 return o 1076 } 1077}); 1078!function (a) { 1079 "use strict"; 1080 var b = "starRating", c = function () { 1081 }, d = { 1082 totalStars: 5, 1083 useFullStars: !1, 1084 starShape: "straight", 1085 emptyColor: "lightgray", 1086 hoverColor: "orange", 1087 activeColor: "gold", 1088 ratedColor: "crimson", 1089 useGradient: !0, 1090 readOnly: !1, 1091 disableAfterRate: !0, 1092 baseUrl: !1, 1093 starGradient: { start: "#FEF7CD", end: "#FF9511" }, 1094 strokeWidth: 4, 1095 strokeColor: "black", 1096 initialRating: 0, 1097 starSize: 40, 1098 callback: c, 1099 onHover: c, 1100 onLeave: c 1101 }, e = function (c, e) { 1102 var f, g, h; 1103 this.element = c, this.$el = a(c), this.settings = a.extend({}, d, e), f = this.$el.data("rating") || this.settings.initialRating, h = this.settings.forceRoundUp ? Math.ceil : Math.round, g = (h(2 * f) / 2).toFixed(1), this._state = { rating: g }, this._uid = Math.floor(999 * Math.random()), e.starGradient || this.settings.useGradient || (this.settings.starGradient.start = this.settings.starGradient.end = this.settings.activeColor), this._defaults = d, this._name = b, this.init() 1104 }, f = { 1105 init: function () { 1106 this.renderMarkup(), this.addListeners(), this.initRating() 1107 }, addListeners: function () { 1108 this.settings.readOnly || (this.$stars.on("mouseover", this.hoverRating.bind(this)), this.$stars.on("mouseout", this.restoreState.bind(this)), this.$stars.on("click", this.handleRating.bind(this))) 1109 }, hoverRating: function (a) { 1110 var b = this.getIndex(a); 1111 this.paintStars(b, "hovered"), this.settings.onHover(b + 1, this._state.rating, this.$el) 1112 }, handleRating: function (a) { 1113 var b = this.getIndex(a), c = b + 1; 1114 this.applyRating(c, this.$el), this.executeCallback(c, this.$el), this.settings.disableAfterRate && this.$stars.off() 1115 }, applyRating: function (a) { 1116 var b = a - 1; 1117 this.paintStars(b, "rated"), this._state.rating = b + 1, this._state.rated = !0 1118 }, restoreState: function (a) { 1119 var b = this.getIndex(a), c = this._state.rating || -1, d = this._state.rated ? "rated" : "active"; 1120 this.paintStars(c - 1, d), this.settings.onLeave(b + 1, this._state.rating, this.$el) 1121 }, getIndex: function (b) { 1122 var c = a(b.currentTarget), d = c.width(), e = a(b.target).attr("data-side"), f = this.settings.minRating; 1123 e = e ? e : this.getOffsetByPixel(b, c, d), e = this.settings.useFullStars ? "right" : e; 1124 var g = c.index() - ("left" === e ? .5 : 0); 1125 return g = .5 > g && b.offsetX < d / 4 ? -1 : g, g = f && f <= this.settings.totalStars && f > g ? f - 1 : g 1126 }, getOffsetByPixel: function (a, b, c) {
1127 var d = a.pageX - b.offset().left; 1128 return c / 2 >= d && !this.settings.useFullStars ? "left" : "right" 1129 }, initRating: function () { 1130 this.paintStars(this._state.rating - 1, "active") 1131 }, paintStars: function (b, c) { 1132 var d, e, f, g, h = this.settings; 1133 a.each(this.$stars, function (i, j) { 1134 d = a(j).find('[data-side="left"]'), e = a(j).find('[data-side="right"]'), f = g = b >= i ? c : "empty", f = i - b === .5 ? c : f, d.attr("class", "svg-" + f + "-" + this._uid), e.attr("class", "svg-" + g + "-" + this._uid); 1135 var k, l = b >= 0 ? Math.ceil(b) : 0; 1136 k = h.ratedColors && h.ratedColors.length && h.ratedColors[l] ? h.ratedColors[l] : this._defaults.ratedColor, "rated" === c && b > -1 && ((i <= Math.ceil(b) || 1 > i && 0 > b) && d.attr("style", "fill:" + k), b >= i && e.attr("style", "fill:" + k)) 1137 }.bind(this)) 1138 }, renderMarkup: function () { 1139 for (var a = this.settings, b = a.baseUrl ? location.href.split("#")[0] : "", c = '<div class="jq-star" style="width:' + a.starSize + "px; height:" + a.starSize + 'px;"><svg version="1.0" class="jq-star-svg" shape-rendering="geometricPrecision" xmlns="http://www.w3.org/2000/svg" ' + this.getSvgDimensions(a.starShape) + " stroke-width:" + a.strokeWidth + 'px;" xml:space="preserve"><style type="text/css">.svg-empty-' + this._uid + "{fill:url(" + b + "#" + this._uid + "_SVGID_1_);}.svg-hovered-" + this._uid + "{fill:url(" + b + "#" + this._uid + "_SVGID_2_);}.svg-active-" + this._uid + "{fill:url(" + b + "#" + this._uid + "_SVGID_3_);}.svg-rated-" + this._uid + "{fill:" + a.ratedColor + ";}</style>" + this.getLinearGradient(this._uid + "_SVGID_1_", a.emptyColor, a.emptyColor, a.starShape) + this.getLinearGradient(this._uid + "_SVGID_2_", a.hoverColor, a.hoverColor, a.starShape) + this.getLinearGradient(this._uid + "_SVGID_3_", a.starGradient.start, a.starGradient.end, a.starShape) + this.getVectorPath(this._uid, { 1140 starShape: a.starShape, 1141 strokeWidth: a.strokeWidth, 1142 strokeColor: a.strokeColor 1143 }) + "</svg></div>", d = "", e = 0; e < a.totalStars; e++) d += c; 1144 this.$el.append(d), this.$stars = this.$el.find(".jq-star") 1145 }, getVectorPath: function (a, b) { 1146 return "rounded" === b.starShape ? this.getRoundedVectorPath(a, b) : this.getSpikeVectorPath(a, b) 1147 }, getSpikeVectorPath: function (a, b) { 1148 return '<polygon data-side="center" class="svg-empty-' + a + '" points="281.1,129.8 364,55.7 255.5,46.8 214,-59 172.5,46.8 64,55.4 146.8,129.7 121.1,241 212.9,181.1 213.9,181 306.5,241 " style="fill: transparent; stroke: ' + b.strokeColor + ';" /><polygon data-side="left" class="svg-empty-' + a + '" points="281.1,129.8 364,55.7 255.5,46.8 214,-59 172.5,46.8 64,55.4 146.8,129.7 121.1,241 213.9,181.1 213.9,181 306.5,241 " style="stroke-opacity: 0;" /><polygon data-side="right" class="svg-empty-' + a + '" points="364,55.7 255.5,46.8 214,-59 213.9,181 306.5,241 281.1,129.8 " style="stroke-opacity: 0;" />' 1149 }, getRoundedVectorPath: function (a, b) { 1150 var c = "M520.9,336.5c-3.8-11.8-14.2-20.5-26.5-22.2l-140.9-20.5l-63-127.7 c-5.5-11.2-16.8-18.2-29.3-18.2c-12.5,0-23.8,7-29.3,18.2l-63,127.7L28,314.2C15.7,316,5.4,324.7,1.6,336.5S1,361.3,9.9,370 l102,99.4l-24,140.3c-2.1,12.3,2.9,24.6,13,32c5.7,4.2,12.4,6.2,19.2,6.2c5.2,0,10.5-1.2,15.2-3.8l126-66.3l126,66.2 c4.8,2.6,10,3.8,15.2,3.8c6.8,0,13.5-2.1,19.2-6.2c10.1-7.3,15.1-19.7,13-32l-24-140.3l102-99.4 C521.6,361.3,524.8,348.3,520.9,336.5z"; 1151 return '<path data-side="center" class="svg-empty-' + a + '" d="' + c + '" style="stroke: ' + b.strokeColor + '; fill: transparent; " /><path data-side="right" class="svg-empty-' + a + '" d="' + c + '" style="stroke-opacity: 0;" /><path data-side="left" class="svg-empty-' + a + '" d="M121,648c-7.3,0-14.1-2.2-19.8-6.4c-10.4-7.6-15.6-20.3-13.4-33l24-139.9l-101.6-99 c-9.1-8.9-12.4-22.4-8.6-34.5c3.9-12.1,14.6-21.1,27.2-23l140.4-20.4L232,164.6c5.7-11.6,17.3-18.8,30.2-16.8c0.6,0,1,0.4,1,1 v430.1c0,0.4-0.2,0.7-0.5,0.9l-126,66.3C132,646.6,126.6,648,121,648z" style="stroke: ' + b.strokeColor + '; stroke-opacity: 0;" />' 1152 }, getSvgDimensions: function (a) { 1153 return "rounded" === a ? 'width="550px" height="500.2px" viewBox="0 146.8 550 500.2" style="enable-background:new 0 0 550 500.2;' : 'x="0px" y="0px" width="305px" height="305px" viewBox="60 -62 309 309" style="enable-background:new 64 -59 305 305;' 1154 }, getLinearGradient: function (a, b, c, d) { 1155 var e = "rounded" === d ? 500 : 250; 1156 return '<linearGradient id="' + a + '" gradientUnits="userSpaceOnUse" x1="0" y1="-50" x2="0" y2="' + e + '"><stop offset="0" style="stop-color:' + b + '"/><stop offset="1" style="stop-color:' + c + '"/> </linearGradient>' 1157 }, executeCallback: function (a, b) { 1158 var c = this.settings.callback; 1159 c(a, b) 1160 } 1161 }, g = { 1162 unload: function () { 1163 var c = "plugin_" + b, d = a(this), e = d.data(c).$stars; 1164 e.off(), d.removeData(c).remove() 1165 }, setRating: function (c, d) { 1166 var e = "plugin_" + b, f = a(this), g = f.data(e); 1167 c > g.settings.totalStars || 0 > c || (d && (c = Math.round(c)), g.applyRating(c)) 1168 }, getRating: function () { 1169 var c = "plugin_" + b, d = a(this), e = d.data(c); 1170 return e._state.rating 1171 }, resize: function (c) { 1172 var d = "plugin_" + b, e = a(this), f = e.data(d), g = f.$stars; 1173 return 1 >= c || c > 200 ? void console.error("star size out of bounds") : (g = Array.prototype.slice.call(g), void g.forEach(function (b) { 1174 a(b).css({ width: c + "px", height: c + "px" }) 1175 })) 1176 }, setReadOnly: function (c) { 1177 var d = "plugin_" + b, e = a(this), f = e.data(d); 1178 c === !0 ? f.$stars.off("mouseover mouseout click") : (f.settings.readOnly = !1, f.addListeners()) 1179 } 1180 }; 1181 a.extend(e.prototype, f), a.fn[b] = function (c) { 1182 if (!a.isPlainObject(c)) { 1183 if (g.hasOwnProperty(c)) return g[c].apply(this, Array.prototype.slice.call(arguments, 1)); 1184 a.error("Method " + c + " does not exist on " + b + ".js") 1185 } 1186 return this.each(function () { 1187 a.data(this, "plugin_" + b) || a.data(this, "plugin_" + b, new e(this, c)) 1188 }) 1189 } 1190}(jQuery, window, document); 1191var $jscomp = $jscomp || {}; 1192$jscomp.scope = {}; 1193$jscomp.findInternal = function (a, n, f) { 1194 a instanceof String && (a = String(a)); 1195 for (var p = a.length, k = 0; k < p; k++) { 1196 var b = a[k]; 1197 if (n.call(f, b, k, a)) return { i: k, v: b } 1198 } 1199 return { i: -1, v: void 0 } 1200}; 1201$jscomp.ASSUME_ES5 = !1; 1202$jscomp.ASSUME_NO_NATIVE_MAP = !1; 1203$jscomp.ASSUME_NO_NATIVE_SET = !1; 1204$jscomp.SIMPLE_FROUND_POLYFILL = !1; 1205$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function (a, n, f) { 1206 a != Array.prototype && a != Object.prototype && (a[n] = f.value) 1207}; 1208$jscomp.getGlobal = function (a) { 1209 return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a 1210}; 1211$jscomp.global = $jscomp.getGlobal(this); 1212$jscomp.polyfill = function (a, n, f, p) { 1213 if (n) { 1214 f = $jscomp.global; 1215 a = a.split("."); 1216 for (p = 0; p < a.length - 1; p++) { 1217 var k = a[p]; 1218 k in f || (f[k] = {}); 1219 f = f[k] 1220 } 1221 a = a[a.length - 1]; 1222 p = f[a]; 1223 n = n(p); 1224 n != p && null != n && $jscomp.defineProperty(f, a, { configurable: !0, writable: !0, value: n }) 1225 } 1226}; 1227$jscomp.polyfill("Array.prototype.find", function (a) { 1228 return a ? a : function (a, f) { 1229 return $jscomp.findInternal(this, a, f).v 1230 } 1231}, "es6", "es3"); 1232(function (a, n, f) { 1233 "function" === typeof define && define.amd ? define(["jquery"], a) : "object" === typeof exports && "undefined" === typeof Meteor ? module.exports = a(require("jquery")) : a(n || f) 1234})(function (a) { 1235 var n = function (b, d, e) { 1236 var c = { 1237 invalid: [], getCaret: function () { 1238 try { 1239 var a = 0, r = b.get(0), h = document.selection, d = r.selectionStart; 1240 if (h && -1 === navigator.appVersion.indexOf("MSIE 10")) { 1241 var e = h.createRange(); 1242 e.moveStart("character", -c.val().length); 1243 a = e.text.length 1244 } else if (d || "0" === d) a = d; 1245 return a 1246 } catch (C) { 1247 } 1248 }, setCaret: function (a) { 1249 try { 1250 if (b.is(":focus")) { 1251 var c = 1252 b.get(0); 1253 if (c.setSelectionRange) c.setSelectionRange(a, a); else { 1254 var g = c.createTextRange(); 1255 g.collapse(!0); 1256 g.moveEnd("character", a); 1257 g.moveStart("character", a); 1258 g.select() 1259 } 1260 } 1261 } catch (B) { 1262 } 1263 }, events: function () {
vendor: 10,570 bytes, lines 1264-1499
1264 b.on("keydown.mask", function (a) { 1265 b.data("mask-keycode", a.keyCode || a.which); 1266 b.data("mask-previus-value", b.val()); 1267 b.data("mask-previus-caret-pos", c.getCaret()); 1268 c.maskDigitPosMapOld = c.maskDigitPosMap 1269 }).on(a.jMaskGlobals.useInput ? "input.mask" : "keyup.mask", c.behaviour).on("paste.mask drop.mask", function () { 1270 setTimeout(function () { 1271 b.keydown().keyup() 1272 }, 1273 100) 1274 }).on("change.mask", function () { 1275 b.data("changed", !0) 1276 }).on("blur.mask", function () { 1277 f === c.val() || b.data("changed") || b.trigger("change"); 1278 b.data("changed", !1) 1279 }).on("blur.mask", function () { 1280 f = c.val() 1281 }).on("focus.mask", function (b) { 1282 !0 === e.selectOnFocus && a(b.target).select() 1283 }).on("focusout.mask", function () { 1284 e.clearIfNotMatch && !k.test(c.val()) && c.val("") 1285 }) 1286 }, getRegexMask: function () { 1287 for (var a = [], b, c, e, t, f = 0; f < d.length; f++) (b = l.translation[d.charAt(f)]) ? (c = b.pattern.toString().replace(/.{1}$|^.{1}/g, ""), e = b.optional, 1288 (b = b.recursive) ? (a.push(d.charAt(f)), t = { 1289 digit: d.charAt(f), 1290 pattern: c 1291 }) : a.push(e || b ? c + "?" : c)) : a.push(d.charAt(f).replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")); 1292 a = a.join(""); 1293 t && (a = a.replace(new RegExp("(" + t.digit + "(.*" + t.digit + ")?)"), "($1)?").replace(new RegExp(t.digit, "g"), t.pattern)); 1294 return new RegExp(a) 1295 }, destroyEvents: function () { 1296 b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask ")) 1297 }, val: function (a) { 1298 var c = b.is("input") ? "val" : "text"; 1299 if (0 < arguments.length) { 1300 if (b[c]() !== a) b[c](a); 1301 c = b 1302 } else c = b[c](); 1303 return c 1304 }, calculateCaretPosition: function (a) { 1305 var d = c.getMasked(), h = c.getCaret(); 1306 if (a !== d) { 1307 var e = b.data("mask-previus-caret-pos") || 0; 1308 d = d.length; 1309 var g = a.length, f = a = 0, l = 0, k = 0, m; 1310 for (m = h; m < d && c.maskDigitPosMap[m]; m++) f++; 1311 for (m = h - 1; 0 <= m && c.maskDigitPosMap[m]; m--) a++; 1312 for (m = h - 1; 0 <= m; m--) c.maskDigitPosMap[m] && l++; 1313 for (m = e - 1; 0 <= m; m--) c.maskDigitPosMapOld[m] && k++; 1314 h > g ? h = 10 * d : e >= h && e !== g ? c.maskDigitPosMapOld[h] || (e = h, h = h - (k - l) - a, c.maskDigitPosMap[h] && (h = e)) : h > e && (h = h + (l - k) + f) 1315 } 1316 return h 1317 }, behaviour: function (d) { 1318 d = 1319 d || window.event; 1320 c.invalid = []; 1321 var e = b.data("mask-keycode"); 1322 if (-1 === a.inArray(e, l.byPassKeys)) { 1323 e = c.getMasked(); 1324 var h = c.getCaret(), g = b.data("mask-previus-value") || ""; 1325 setTimeout(function () { 1326 c.setCaret(c.calculateCaretPosition(g)) 1327 }, a.jMaskGlobals.keyStrokeCompensation); 1328 c.val(e); 1329 c.setCaret(h); 1330 return c.callbacks(d) 1331 } 1332 }, getMasked: function (a, b) { 1333 var h = [], f = void 0 === b ? c.val() : b + "", g = 0, k = d.length, n = 0, p = f.length, m = 1, 1334 r = "push", u = -1, w = 0; 1335 b = []; 1336 if (e.reverse) { 1337 r = "unshift"; 1338 m = -1; 1339 var x = 0; 1340 g = k - 1; 1341 n = p - 1; 1342 var A = function () { 1343 return -1 < 1344 g && -1 < n 1345 } 1346 } else x = k - 1, A = function () { 1347 return g < k && n < p 1348 }; 1349 for (var z; A();) { 1350 var y = d.charAt(g), v = f.charAt(n), q = l.translation[y]; 1351 if (q) v.match(q.pattern) ? (h[r](v), q.recursive && (-1 === u ? u = g : g === x && g !== u && (g = u - m), x === u && (g -= m)), g += m) : v === z ? (w--, z = void 0) : q.optional ? (g += m, n -= m) : q.fallback ? (h[r](q.fallback), g += m, n -= m) : c.invalid.push({ 1352 p: n, 1353 v: v, 1354 e: q.pattern 1355 }), n += m; else { 1356 if (!a) h[r](y); 1357 v === y ? (b.push(n), n += m) : (z = y, b.push(n + w), w++); 1358 g += m 1359 } 1360 } 1361 a = d.charAt(x); 1362 k !== p + 1 || l.translation[a] || h.push(a); 1363 h = h.join(""); 1364 c.mapMaskdigitPositions(h, 1365 b, p); 1366 return h 1367 }, mapMaskdigitPositions: function (a, b, d) { 1368 a = e.reverse ? a.length - d : 0; 1369 c.maskDigitPosMap = {}; 1370 for (d = 0; d < b.length; d++) c.maskDigitPosMap[b[d] + a] = 1 1371 }, callbacks: function (a) { 1372 var g = c.val(), h = g !== f, k = [g, a, b, e], l = function (a, b, c) { 1373 "function" === typeof e[a] && b && e[a].apply(this, c) 1374 }; 1375 l("onChange", !0 === h, k); 1376 l("onKeyPress", !0 === h, k); 1377 l("onComplete", g.length === d.length, k); 1378 l("onInvalid", 0 < c.invalid.length, [g, a, b, c.invalid, e]) 1379 } 1380 }; 1381 b = a(b); 1382 var l = this, f = c.val(), k; 1383 d = "function" === typeof d ? d(c.val(), void 0, b, e) : d; 1384 l.mask = 1385 d; 1386 l.options = e; 1387 l.remove = function () { 1388 var a = c.getCaret(); 1389 l.options.placeholder && b.removeAttr("placeholder"); 1390 b.data("mask-maxlength") && b.removeAttr("maxlength"); 1391 c.destroyEvents(); 1392 c.val(l.getCleanVal()); 1393 c.setCaret(a); 1394 return b 1395 }; 1396 l.getCleanVal = function () { 1397 return c.getMasked(!0) 1398 }; 1399 l.getMaskedVal = function (a) { 1400 return c.getMasked(!1, a) 1401 }; 1402 l.init = function (g) { 1403 g = g || !1; 1404 e = e || {}; 1405 l.clearIfNotMatch = a.jMaskGlobals.clearIfNotMatch; 1406 l.byPassKeys = a.jMaskGlobals.byPassKeys; 1407 l.translation = a.extend({}, a.jMaskGlobals.translation, e.translation); 1408 l = a.extend(!0, {}, l, e); 1409 k = c.getRegexMask(); 1410 if (g) c.events(), c.val(c.getMasked()); else { 1411 e.placeholder && b.attr("placeholder", e.placeholder); 1412 b.data("mask") && b.attr("autocomplete", "off"); 1413 g = 0; 1414 for (var f = !0; g < d.length; g++) { 1415 var h = l.translation[d.charAt(g)]; 1416 if (h && h.recursive) { 1417 f = !1; 1418 break 1419 } 1420 } 1421 f && b.attr("maxlength", d.length).data("mask-maxlength", !0); 1422 c.destroyEvents(); 1423 c.events(); 1424 g = c.getCaret(); 1425 c.val(c.getMasked()); 1426 c.setCaret(g) 1427 } 1428 }; 1429 l.init(!b.is("input")) 1430 }; 1431 a.maskWatchers = {}; 1432 var f = function () { 1433 var b = a(this), d = {}, e = b.attr("data-mask"); 1434 b.attr("data-mask-reverse") && (d.reverse = !0); 1435 b.attr("data-mask-clearifnotmatch") && (d.clearIfNotMatch = !0); 1436 "true" === b.attr("data-mask-selectonfocus") && (d.selectOnFocus = !0); 1437 if (p(b, e, d)) return b.data("mask", new n(this, e, d)) 1438 }, p = function (b, d, e) { 1439 e = e || {}; 1440 var c = a(b).data("mask"), f = JSON.stringify; 1441 b = a(b).val() || a(b).text(); 1442 try { 1443 return "function" === typeof d && (d = d(b)), "object" !== typeof c || f(c.options) !== f(e) || c.mask !== d 1444 } catch (w) { 1445 } 1446 }, k = function (a) { 1447 var b = document.createElement("div"); 1448 a = "on" + a; 1449 var e = a in b; 1450 e || (b.setAttribute(a, 1451 "return;"), e = "function" === typeof b[a]); 1452 return e 1453 }; 1454 a.fn.mask = function (b, d) { 1455 d = d || {}; 1456 var e = this.selector, c = a.jMaskGlobals, f = c.watchInterval; 1457 c = d.watchInputs || c.watchInputs; 1458 var k = function () { 1459 if (p(this, b, d)) return a(this).data("mask", new n(this, b, d)) 1460 }; 1461 a(this).each(k); 1462 e && "" !== e && c && (clearInterval(a.maskWatchers[e]), a.maskWatchers[e] = setInterval(function () { 1463 a(document).find(e).each(k) 1464 }, f)); 1465 return this 1466 }; 1467 a.fn.masked = function (a) { 1468 return this.data("mask").getMaskedVal(a) 1469 }; 1470 a.fn.unmask = function () { 1471 clearInterval(a.maskWatchers[this.selector]); 1472 delete a.maskWatchers[this.selector]; 1473 return this.each(function () { 1474 var b = a(this).data("mask"); 1475 b && b.remove().removeData("mask") 1476 }) 1477 }; 1478 a.fn.cleanVal = function () { 1479 return this.data("mask").getCleanVal() 1480 }; 1481 a.applyDataMask = function (b) { 1482 b = b || a.jMaskGlobals.maskElements; 1483 (b instanceof a ? b : a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(f) 1484 }; 1485 k = { 1486 maskElements: "input,td,span,div", 1487 dataMaskAttr: "*[data-mask]", 1488 dataMask: !0, 1489 watchInterval: 300, 1490 watchInputs: !0, 1491 keyStrokeCompensation: 10, 1492 useInput: !/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent) && 1493 k("input"), 1494 watchDataMask: !1, 1495 byPassKeys: [9, 16, 17, 18, 36, 37, 38, 39, 40, 91], 1496 translation: { 1497 0: { pattern: /\d/ }, 1498 9: { pattern: /\d/, optional: !0 }, 1499 "#": { pattern: /\d/, recursive: !0 },
1500 A: { pattern: /[a-zA-Z0-9]/ }, 1501 S: { pattern: /[a-zA-Z]/ } 1502 } 1503 }; 1504 a.jMaskGlobals = a.jMaskGlobals || {}; 1505 k = a.jMaskGlobals = a.extend(!0, {}, k, a.jMaskGlobals); 1506 k.dataMask && a.applyDataMask(); 1507 setInterval(function () { 1508 a.jMaskGlobals.watchDataMask && a.applyDataMask() 1509 }, k.watchInterval) 1510}, window.jQuery, window.Zepto); 1511$(function () { 1512 $(window).scroll(function () { 1513 $(window).scrollTop() >= 300 ? $(".header:not(.header_landing)").addClass("header--scroll") : $(".header").removeClass("header--scroll") 1514 }), $(".header__imenu").parent().addClass("header__item--dropdown"), $(".header__imenu").parent().find(".header__link").append('<span class="i-m i-m-menu-arrow"></span>'), $(".header__toggle").on("click", function (s) { 1515 s.preventDefault(), $("body").toggleClass("no-scroll"), $(this).toggleClass("header__toggle--active"), $(".header__menu").slideToggle("middle") 1516 }), $(".header__link .i-m-menu-arrow").on("click", function (s) { 1517 s.preventDefault(), $(this).parent().toggleClass("header__link--active"), $(this).parent().next(".header__imenu").slideToggle("middle") 1518 }), $(".header__imenu > li > .i-m-menu-arrow").on("click", function (s) { 1519 s.preventDefault(), $(this).siblings("a").toggleClass("active-link"), $(this).next("ul").slideToggle("middle") 1520 }), $(".team__slider").slick({ 1521 slidesToShow: 4, 1522 slidesToScroll: 1, 1523 swipeToSlide: !0, 1524 dots: !1, 1525 arrows: !0, 1526 prevArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--prev"><span class="i-m i-m-slider-arrow"></span></a>', 1527 nextArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--next"><span class="i-m i-m-slider-arrow"></span></a>', 1528 responsive: [{ breakpoint: 992, settings: { slidesToShow: 3 } }, { 1529 breakpoint: 768, 1530 settings: { slidesToShow: 2 } 1531 }, { breakpoint: 580, settings: { slidesToShow: 1 } }] 1532 }), $(".doc__slider").slick({ 1533 slidesToShow: 4, 1534 slidesToScroll: 1, 1535 swipeToSlide: !0, 1536 dots: !1, 1537 arrows: !0, 1538 prevArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--prev"><span class="i-m i-m-slider-arrow"></span></a>', 1539 nextArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--next"><span class="i-m i-m-slider-arrow"></span></a>', 1540 responsive: [{ breakpoint: 992, settings: { slidesToShow: 3 } }, { 1541 breakpoint: 768, 1542 settings: { slidesToShow: 2 } 1543 }, { breakpoint: 580, settings: { slidesToShow: 1 } }] 1544 }), $(".blog__slider").slick({ 1545 slidesToShow: 3, 1546 slidesToScroll: 1, 1547 swipeToSlide: !0, 1548 dots: !1, 1549 arrows: !0, 1550 prevArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--prev"><span class="i-m i-m-slider-arrow"></span></a>', 1551 nextArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--next"><span class="i-m i-m-slider-arrow"></span></a>', 1552 responsive: [{ breakpoint: 992, settings: { slidesToShow: 2 } }, { breakpoint: 768, settings: { slidesToShow: 1 } }] 1553 }), $(".review__slider-inner").slick({ 1554 slidesToShow: 1, 1555 slidesToScroll: 1, 1556 swipeToSlide: !0, 1557 dots: !1, 1558 autoplay: !0, 1559 autoplaySpeed: 5e7, 1560 arrows: !0, 1561 prevArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--prev"><span class="i-m i-m-slider-arrow"></span></a>', 1562 nextArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--next"><span class="i-m i-m-slider-arrow"></span></a>', 1563 responsive: [{ breakpoint: 768, settings: { adaptiveHeight: !0 } }] 1564 }), $(".photo_side__slider").slick({ 1565 slidesToShow: 1, 1566 slidesToScroll: 1, 1567 swipeToSlide: !0, 1568 dots: 1, 1569 autoplay: !0, 1570 autoplaySpeed: 5e3, 1571 arrows: !0, 1572 prevArrow: '<a href="javascript:void(0);" class="slider-arrow arrow_bot slider-arrow--prev arrow-redesign-prev"><span class="i-m i-m-slider-arrow"></span></a>', 1573 nextArrow: '<a href="javascript:void(0);" class="slider-arrow arrow_bot slider-arrow--next arrow-redesign-next"><span class="i-m i-m-slider-arrow"></span></a>', 1574 dots: true, 1575 dotsClass: 'photo-sidebar-pagination', 1576 customPaging: function (slider, i) { 1577 return (i + 1) + '/' + slider.slideCount; 1578 }, 1579 responsive: [{ breakpoint: 768, settings: { adaptiveHeight: !0 } }] 1580 }), $(".review_side_slider").slick({ 1581 slidesToShow: 1, 1582 slidesToScroll: 1, 1583 swipeToSlide: !0, 1584 autoplay: !0, 1585 autoplaySpeed: 5e3, 1586 arrows: !0, 1587 prevArrow: '<a href="javascript:void(0);" class="slider-arrow arrow_bot slider-arrow--prev arrow-redesign-prev"><span class="i-m i-m-slider-arrow"></span></a>', 1588 nextArrow: '<a href="javascript:void(0);" class="slider-arrow arrow_bot slider-arrow--next arrow-redesign-next"><span class="i-m i-m-slider-arrow"></span></a>', 1589 dots: true, 1590 dotsClass: 'reviews-sidebar-pagination', 1591 customPaging: function (slider, i) { 1592 return (i + 1) + '/' + slider.slideCount; 1593 }, 1594 responsive: [{ breakpoint: 768, settings: { adaptiveHeight: !0 } }] 1595 }), $(window).width() < 992 && $(".services__wrapper").slick({ 1596 slidesToShow: 2, 1597 slidesToScroll: 1, 1598 swipeToSlide: !0, 1599 dots: !1, 1600 arrows: !1, 1601 responsive: [{ breakpoint: 768, settings: { slidesToShow: 1 } }] 1602 }), $(window).width() < 768 && $(".services__grid").slick({ 1603 slidesToShow: 1, 1604 slidesToScroll: 1, 1605 swipeToSlide: !0, 1606 dots: !1, 1607 arrows: !1 1608 }), $(window).width() < 768 && $(".better__grid").slick({ 1609 slidesToShow: 1, 1610 slidesToScroll: 1, 1611 swipeToSlide: !0, 1612 dots: !1, 1613 arrows: !0, 1614 prevArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--prev"><span class="i-m i-m-slider-arrow"></span></a>', 1615 nextArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--next"><span class="i-m i-m-slider-arrow"></span></a>' 1616 }), $(window).width() < 992 && $(".hero__row1").slick({ 1617 slidesToShow: 2, 1618 slidesToScroll: 1, 1619 swipeToSlide: !0, 1620 autoplay: !0, 1621 autoplaySpeed: 3e3, 1622 dots: !1, 1623 arrows: !1, 1624 responsive: [{ breakpoint: 768, settings: { slidesToShow: 1 } }] 1625 }), $(window).width() < 992 && $(".program__row").slick({ 1626 slidesToShow: 3, 1627 slidesToScroll: 1, 1628 swipeToSlide: !0, 1629 dots: !1, 1630 arrows: !0, 1631 prevArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--prev"><span class="i-m i-m-slider-arrow"></span></a>', 1632 nextArrow: '<a href="javascript:void(0);" class="slider-arrow slider-arrow--next"><span class="i-m i-m-slider-arrow"></span></a>', 1633 responsive: [{ breakpoint: 768, settings: { slidesToShow: 2 } }, { breakpoint: 580, settings: { slidesToShow: 1 } }] 1634 }), $(".price__link").on("click", function (s) { 1635 s.preventDefault(), $(this).toggleClass("price__link--active"), $(this).next().slideToggle("middle") 1636 }), $("a.med__link").on("click", function (s) { 1637 s.preventDefault(), $(this).toggleClass("med__link--active"), $(this).next().slideToggle("middle") 1638 }), $("a.doc__link").magnificPopup({ 1639 type: "image", 1640 image: { verticalFit: !1 } 1641 }), $(".autor__star").starRating({ 1642 starSize: 22, callback: function (s, e) { 1643 } 1644 }) 1645 // , $('input[type="tel"]').mask("+7 (000) 000-00-00"), $(".open-modal").magnificPopup({ 1646 // type: "inline", 1647 // preloader: !1, 1648 // fixedContentPos: !0, 1649 // closeMarkup: '<a href="javascript:void(0);" class="arrow-close"><span class="i-m i-m-close"></span></a>' 1650 // }) 1651 , $("body").on("click", ".arrow-close", function (s) { 1652 s.preventDefault(), $.magnificPopup.close() 1653 }), $(".rating-item").on("click", function (s) { 1654 $(this).addClass("chosen_rating"), $(this).nextAll(".rating-item").addClass("chosen_rating") 1655 }), $(".jsStarsRating").length && $(".jsStarsRating select").each(function () { 1656 $(this); 1657 $(this).barrating({ theme: "css-stars" }) 1658 }) 1659 // , 1660 // $("form:not(.review-submit,.vak_order,.test_form,.nc_search,.footer__form)").submit(function () { 1661 // var s = $(this).find(":submit"); 1662 // return $(s).html("ÐаÑвка оÑпÑавлÑеÑÑÑ"), $(s).prop("disabled", !0), $(s).addClass("refreshButton"), setTimeout(function () { 1663 // $(".refreshButton").html("ÐÑпÑавиÑÑ"), $(".refreshButton").prop("disabled", !1), $(".refreshButton").removeClass("refreshButton") 1664 // }, 2500), $.ajax({ 1665 // type: "POST", 1666 // url: "/netcat/add.php", 1667 // dataType: "html", 1668 // nameFunction: "request", 1669 // data: $(this).serialize(), 1670 // cache: !1, 1671 // success: function (s) { 1672 // $(".result_wrapper").html(s), $.magnificPopup.close(), $.magnificPopup.open({ 1673 // items: { src: "#orderResult" }, 1674 // type: "inline" 1675 // }); 1676 // if ((document.getElementById("postinf") !== null) && ((document.getElementById("postinf")).value > 0) && ((document.querySelector('[name="catalogue"]').value =='1318')) ) { 1677 // ym(91675564, 'reachGoal', 'otpravkaFormi'); 1678 // }; 1679 // }, 1680 // error: function (s) { 1681 // $(".result_wrapper").html(s) 1682 // } 1683 // }), !1 1684 // }) 1685 , 1686 $(".fast-menu .bar").on("click", function () { 1687 $(this).parent().toggleClass("open") 1688 }), $(".fast-menu a[href^='#']").click(function () { 1689 var s = $(this).attr("href"); 1690 if (window.innerWidth < 992) var e = $(s).offset().top; else e = $(s).offset().top - 60; 1691 return $("body,html").animate({ scrollTop: e }, 800), !1 1692 }), $(".my_accordeon-panel").click(function () { 1693 $(this).toggleClass("active") 1694 }), $(".show_more_mobile").on("click", function () { 1695 $(".region_link").removeClass("no-mobile"), $(".show_more_mobile").removeClass("mobile"), $(".show_more_mobile").addClass("hide") 1696 }) 1697}); 1698 1699 1700(function () { 1701 const items = document.body.querySelectorAll(".career-items .item"); 1702 for (const item of items) { 1703 const btn = item.querySelector(".career__btn"); 1704 btn.dataset.name = item.querySelector(".m-title").innerHTML 1705 } 1706 1707 let fileElem = document.getElementById('fileElem'); 1708 if (fileElem) { 1709 fileElem.addEventListener('change', function () { 1710 handleFiles(this.files) 1711 }) 1712 } 1713 1714 function handleFiles(files) {
1715 ([...files]).forEach(uploadFile) 1716 } 1717 1718 function uploadFile(file) { 1719 var url = '/assets/upload.php' 1720 var xhr = new XMLHttpRequest() 1721 var formData = new FormData() 1722 xhr.open('POST', url, true) 1723 xhr.addEventListener('readystatechange', function (e) { 1724 if (xhr.readyState == 4 && xhr.status == 200) { 1725 document.body.querySelector(".nameFile").textContent = file['name'] 1726 document.getElementById("linkResume").value = xhr.responseText 1727 } else if (xhr.readyState == 4 && xhr.status != 200) { 1728 // dropArea.querySelector("label").textContent = "ÐÑоизоÑла оÑибка" 1729 } 1730 }) 1731 formData.append('file', file) 1732 xhr.send(formData) 1733 } 1734 1735 const btns = document.body.querySelectorAll(".career__btn"), 1736 form = document.getElementById("vacansy") 1737 for (const btn of btns) { 1738 btn.addEventListener("click", function () { 1739 console.log(btn.dataset.name) 1740 console.log(form.querySelector(".vacancyname")) 1741 form.querySelector(".vacancyname").value = btn.dataset.name 1742 }) 1743 } 1744 1745 // search contacts 1746 $(document).ready(function () { 1747 const timeout = 500; 1748 let timer; 1749 const contactItems = document.querySelectorAll('.contacts-address__item'); 1750 $('.contacts-address__list-not-found').hide(); 1751 1752 $('body').on('input', '.contacts-address__search-input', function () { 1753 let value = $('.contacts-address__search-input').val().toLowerCase(); 1754 1755 timer = setTimeout(() => { 1756 $('.contacts-address__list-not-found').hide(); 1757 $('.contacts-address__link-text').each(function () { 1758 let contact = $(this).closest('.contacts-address__item'); 1759 let text = $(this).text().toLowerCase(); 1760 if (text.includes(value)) { 1761 contact.show(); 1762 contact.addClass('show'); 1763 } else { 1764 contact.hide(); 1765 contact.removeClass('show'); 1766 } 1767 }); 1768 for (let i = 0; i < contactItems.length; i++) { 1769 if (contactItems[i].classList.contains('show')) { 1770 $('.contacts-address__list-not-found').hide(); 1771 break; 1772 } else { 1773 $('.contacts-address__list-not-found').show(); 1774 } 1775 } 1776 }, timeout); 1777 }); 1778 1779 const diplomasSlider = new Swiper('.diplomas__slider', { 1780 spaceBetween: 32, 1781 slidesPerView: 3, 1782 navigation: { 1783 nextEl: '.diplomas__arrow-next', 1784 prevEl: '.diplomas__arrow-prev', 1785 }, 1786 breakpoints: { 1787 320: { 1788 spaceBetween: 16, 1789 slidesPerView: 1, 1790 }, 1791 575: { 1792 slidesPerView: 3, 1793 } 1794 } 1795 }); 1796 }); 1797})(); 1798 1799document.addEventListener("DOMContentLoaded", function () { 1800 function popupClose(popupActive) { 1801 popupActive.classList.remove('open'); 1802 setTimeout(() => { 1803 popupActive.classList.contains("open") || popupActive.classList.remove("active"); 1804 }, 400); 1805 document.body.classList.remove('lock'); 1806 document.querySelector('html').style.paddingRight = 0; 1807 document.querySelector('html').classList.remove('lock'); 1808 document.querySelector('header').removeAttribute('style'); 1809 } 1810 const popupOpenBtns = document.querySelectorAll('.popup-btn'); 1811 const popups = document.querySelectorAll('.popup'); 1812 const closePopupBtns = document.querySelectorAll('.close-popup'); 1813 closePopupBtns.forEach(function (el) { 1814 el.addEventListener('click', function (e) { 1815 popupClose(e.target.closest('.popup')); 1816 }); 1817 }); 1818 popupOpenBtns.forEach(function (el) { 1819 el.addEventListener('click', function (e) { 1820 e.preventDefault(); 1821 const path = e.currentTarget.dataset.path; 1822 const currentPopup = document.querySelector(`[data-target="${path}"]`); 1823 if (currentPopup) { 1824 popups.forEach(function (popup) { 1825 popupClose(popup); 1826 popup.addEventListener('click', function (e) { 1827 if (!e.target.closest('.popup__content')) { 1828 popupClose(e.target.closest('.popup')); 1829 } 1830 }); 1831 1832 }); 1833 currentPopup.classList.add('active'); 1834 setTimeout(() => { 1835 currentPopup.classList.add("open"); 1836 }, 10); 1837 if (currentPopup.getAttribute("data-target") == 'popup-review') { 1838 let currentItem = el.closest('.review-item'); 1839 let originalTop = currentPopup.querySelector('.modal__header'); 1840 let originalText = currentPopup.querySelector('.review-modal__text'); 1841 originalTop.innerHTML = currentItem.querySelector('.review-item__author--name').innerHTML; 1842 originalText.innerHTML = currentItem.querySelector('.review-item__text').textContent; 1843 }; 1844 // scrollWidthFunc(); 1845 document.querySelector('html').classList.add('lock'); 1846 } 1847 }); 1848 }); 1849}); 1850// rating 1851const ratings = document.querySelectorAll('.rating'); 1852const articleID = document.querySelector('[name="f_id_article"]'); 1853const componentID = document.querySelector('[name="f_component_id"]'); 1854let articleIDValue = ''; 1855let componentIDValue = ''; 1856 1857if (articleID) { 1858 articleIDValue = articleID.value; 1859} 1860 1861if (componentID) { 1862 componentIDValue = componentID.value; 1863} 1864 1865if (ratings.length > 0) { 1866 initRatings(); 1867} 1868 1869function initRatings() {
1870 let ratingActive, ratingValue, ratingText; 1871 1872 for (let i = 0; i < ratings.length; i += 1) { 1873 const rating = ratings[i]; 1874 initRating(rating); 1875 } 1876} 1877 1878function initRating(rating) { 1879 initRatingVars(rating); 1880 1881 setRatingActiveWidth(); 1882 1883 if (rating.classList.contains('rating__set')) { 1884 setRating(rating); 1885 } 1886} 1887 1888function initRatingVars(rating) { 1889 ratingActive = rating.querySelector('.rating__active'); 1890 ratingValue = rating.querySelector('.rating__value'); 1891 ratingText = rating.querySelector('.rating__text'); 1892} 1893 1894function setRatingActiveWidth(index = ratingValue.innerHTML.replace(',', '.')) { 1895 const ratingActiveWidth = index / 0.05; 1896 ratingActive.style.width = `${ratingActiveWidth}%`; 1897 if (ratingText) { 1898 ratingText.innerHTML = `РекомендÑÑÑ ${Math.round(ratingActiveWidth)}%` 1899 } 1900} 1901 1902function setRating(rating) { 1903 const ratingItems = rating.querySelectorAll('.rating__item'); 1904 1905 for (let i = 0; i < ratingItems.length; i += 1) { 1906 const ratingItem = ratingItems[i]; 1907 1908 ratingItem.addEventListener('mouseenter', (e) => { 1909 initRatingVars(rating); 1910 1911 setRatingActiveWidth(ratingItem.value); 1912 }); 1913 1914 ratingItem.addEventListener('mouseleave', (e) => { 1915 setRatingActiveWidth(); 1916 }); 1917 1918 ratingItem.addEventListener('click', (e) => { 1919 ratingItems.forEach((elem) => { 1920 elem.style.pointerEvents = 'none'; 1921 }); 1922 initRatingVars(rating); 1923 1924 ratingValue.innerHTML = i + 1; 1925 setRatingActiveWidth(); 1926 1927 const formData = new FormData; 1928 formData.append("ID_ARTICLE", articleIDValue); 1929 formData.append("ID_COMPONENT", componentIDValue); 1930 formData.append("RATING", ratingValue.innerHTML); 1931 1932 fetch('/Ajax/', { 1933 method: 'POST', 1934 body: formData, 1935 }).then(async (response) => { 1936 let responseResult = await response.text(); 1937 console.log(responseResult); 1938 }); 1939 }); 1940 } 1941}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.