var getCookies = function () { for (var e = document.cookie.split(";"), t = {}, i = 0; i < e.length; i++) { var o = e[i].split("="); t[(o[0] + "").trim()] = unescape(o[1]) } return t }, deleteCookies = function () { for (var e = document.cookie.split(";"), t = 0; t < e.length; t++) { var i = e[t].split("="); document.cookie = i[0] + "=; expires=Thu, 01 Jan 1900 00:00:00 UTC; path=/;" } }, getQueryString = function () { var e = {}, t = new URLSearchParams(window.location.search).entries(); for (var i of t) e[(i[0] + "").trim()] = unescape(i[1]); return e }, getParams = function (e) { var t = {}, i = document.createElement("a"); i.href = e; for (var o = i.search.substring(1).split("&"), n = 0; n < o.length; n++) { var s = o[n].split("="); t[s[0]] = decodeURIComponent(s[1]) } return t }; function saveBookatestdrive() { if (document.getElementById("bookatestform").onsubmit = function (e) { e.preventDefault() }, !IsValidateForm("bookdrive")) return !1; var e = getCookies(), t = {}; t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.carmodel = $.trim($("#ddlCarModel option:selected").val()), t.exchange = $.trim($("#exchange option:selected").val()), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), name: convertAES(t.name.toLowerCase()), model: t.carmodel, exchange_prefernce: t.exchange, channel_id: t.channel, form_channel_id: "book_test_drive_hyper" }, "book_test_drive_hyper"), t.dealerparentcode = $.trim($("[id*=dealerParentCode]").val()), t.dealerlocationcode = $.trim($("[id*=dealerLocationCode]").val()), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.accesstoken = $.trim($("[id*=accessToken]").val()), t.id = 5, t.lead_type = "Book a Test drive", t.querystringparams = e; var i = t.carmodel, o = document.location.origin + $.trim($("[id*=apifrmurl]").val()); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; var n = { webformId: t.webformid, access_token: t.accesstoken, maruti_service_id: t.id, maruti_service_name: t.lead_type, dealer_for_code: t.dealerforcode, dealer_map_code: t.dealermapcode, Name: t.name, Email: t.email, model: t.carmodel, Phone: t.phone, exchange_prefernce: t.exchange }; $.extend(n, getCookies()), $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: o, data: { data: JSON.stringify(n) }, dataType: "json", async: !0, beforeSend: function () { $("#divloadertestdrive").show(), $("#bookTestDrive").hide() }, success: function (e) { if ("0" == JSON.parse(e).error) { var t = i; "Book Test Drive - ".concat(t); deleteCookies(), dataLayer.push({ userId: calcMD5(n.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val() } }, failure: function (e) { $("#bookTestDrive").show(), $(':input[type="submit"]').prop("disabled", !1), $("#divloadertestdrive").hide() } }) } function savescheduleservice() { if (document.getElementById("scheduleserviceform").onsubmit = function (e) { e.preventDefault() }, !IsValidateForm("schservice")) return !1; var e = getCookies(), t = {}; t.name = $.trim($("[id*=inpssname]").val()), t.email = $.trim($("[id*=inpssemail]").val()), t.phone = $.trim($("[id*=inpssphone]").val()), t.carmodel = $.trim($("#ddlssCarModel option:selected").val()), t.kmdriven = $.trim($("[id*=inpsskms]").val()), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ name: convertAES(t.name.toLowerCase()), email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), KMS: t.kmdriven, model: t.carmodel, channel_id: t.channel, form_channel_id: "schedule_service_hyper" }, "schedule_service_hyper"), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.id = 2, t.lead_type = "Service Leads", t.accesstoken = $.trim($("[id*=accessToken]").val()), t.querystringParams = e; var i = document.location.origin + $.trim($("[id*=apifrmurl]").val()); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; var o = { webformId: t.webformid, access_token: "dd", maruti_service_id: t.id, maruti_service_name: t.lead_type, Name: t.name, Email: t.email, Phone: t.phone, dealer_parent_code: t.dealerparentcode, dealer_location_code: t.dealerlocationcode, dealer_for_code: t.dealerforcode, dealer_map_code: t.dealermapcode, model: t.carmodel, form_type: "scheduleservice" }; $.extend(o, getCookies()), $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: i, data: { data: JSON.stringify(o) }, dataType: "json", async: !0, beforeSend: function () { $("#divloaderservice").show(), $("#savesservice").hide() }, success: function (e) { "0" == JSON.parse(e).error && ("undefined" != typeof dataLayer && null != dataLayer && "" != dataLayer && dataLayer.push({ event: "form submit", eventCategory: "HP-form submit", eventAction: "Submit", eventLabel: "Schedule Service" - t.carmodel, cd_car_model: t.carmodel }), deleteCookies(), dataLayer.push({ userId: calcMD5(o.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val()) }, failure: function (e) { $(':input[type="submit"]').prop("disabled", !1), $("#spanloaderservice").hide() } }) } function savegetaquote() { if (document.getElementById("getaquoteform").onsubmit = function (e) { e.preventDefault() }, !IsValidateForm("getquote")) return !1; var e = getCookies(), t = {}; t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.carmodel = $.trim($("#ddlCarModel option:selected").text()), t.exchange = $.trim($("#exchange option:selected").val()), t.variant = $.trim($("#ddlvariant option:selected").text()), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ name: convertAES(t.name.toLowerCase()), email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), carvariant: t.variant, cartype: t.carmodel, channel_id: t.channel, exchange: t.exchange, form_channel_id: "get_quote_hyper" }, "get_quote_hyper"), t.dealerparentcode = $.trim($("[id*=dealerParentCode]").val()), t.dealerlocationcode = $.trim($("[id*=dealerLocationCode]").val()), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.accesstoken = $.trim($("[id*=accessToken]").val()), t.id = $.trim($("[id*=accessToken]").val()), t.id = 6, t.lead_type = "Request For Quote", t.querystringParams = e; var i = document.location.origin + $.trim($("[id*=apifrmurl]").val()); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; var o = { webformId: t.webformid, access_token: "dd", maruti_service_id: t.id, maruti_service_name: t.lead_type, Name: t.name, Email: t.email, Phone: t.phone, dealer_for_code: t.dealerforcode, dealer_map_code: t.dealermapcode, model: t.carmodel, exchange: t.exchange, variant: t.variant, form_type: "Getaquote" }; if ($.extend(o, getCookies()), "" != $("#hdnModelName").val()) { var n = { id: $("#hdnModelName").val() }; $.extend(o, n) } $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: i, data: { data: JSON.stringify(o) }, dataType: "json", async: !0, beforeSend: function () { $("#divloadergetquote").show(), $("#saveaquote").hide() }, success: function (e) { if ("0" == JSON.parse(e).error) { $("#divloadergetquote").hide(); var i = t.carmodel, n = "Get a quote - ".concat(i); "undefined" != typeof dataLayer && null != dataLayer && "" != dataLayer && dataLayer.push({ event: "form submit", eventCategory: "HP-form submit", eventAction: "Submit", eventLabel: n, cd_car_model: i }), deleteCookies(), dataLayer.push({ userId: calcMD5(o.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val() } }, failure: function (e) { $("#saveaquote").show(), $(':input[type="submit"]').prop("disabled", !1) } }) } function saveservice() { if (document.getElementById("saveserviceform").onsubmit = function (e) { e.preventDefault() }, !IsValidateForm("service")) return !1; var e = getCookies(), t = {}; t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.carmodel = $.trim($("#ddlCarModel option:selected").val()), t.purchageyear = $.trim($("#ddlpurchageyear option:selected").val()), t.outlet = $.trim($("#ddloutlet option:selected").val()), t.kmdriven = $.trim($("[id*=inpsskms]").val()), t.address1 = $.trim($("[id*=inpaddress1]").val()), t.address2 = $.trim($("[id*=inpaddress2]").val()), t.ispickup = $("input[name=cf]:checked").val(), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ name: convertAES(t.name.toLowerCase()), email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), model: t.carmodel, KMS: t.kmdriven, yearofpurchase: t.purchageyear, pickup: t.ispickup, address1: convertAES(t.address1.toLowerCase()), address2: convertAES(t.address2.toLowerCase()), channel_id: t.channel, form_channel_id: "book_a_service_hyper" }, "book_a_service_hyper"), t.webFormId = $.trim($("[id*=webFormId]").val()), t.accesstoken = $.trim($("[id*=accessToken]").val()), t.querystringParams = e; var i = document.location.origin + $.trim($("[id*=apifrmurl]").val()); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; var o = { webformId: t.webFormId, access_token: t.accesstoken, maruti_service_id: 2, maruti_service_name: "Service Leads", Name: t.name, Email: t.email, Phone: t.phone, address1: t.address1, address2: t.address2, model: t.carmodel }; $.extend(o, getCookies()), $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: i, data: { data: JSON.stringify(o) }, dataType: "json", async: !0, beforeSend: function () { $("#divloaderservice").show(), $("#btnsubmit").hide() }, success: function (e) { if ("0" == JSON.parse(e).error) { $("#divloaderservice").hide(); var i = t.carmodel; "Service - ".concat(i); deleteCookies(), dataLayer.push({ userId: calcMD5(o.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val() } }, failure: function (e) { $(".btnsubmit").show(), $(':input[type="submit"]').prop("disabled", !1) } }) } function saveinsurance() { if (document.getElementById("insuranceform").onsubmit = function (e) { e.preventDefault() }, !IsValidateForm("insurance")) return !1; var e = getCookies(), t = {}; t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.carmodel = $.trim($("#ddlCarModel option:selected").val()), t.regmonth = $.trim($("#ddlregmonth option:selected").val()), t.regyear = $.trim($("#ddlregyear option:selected").val()), t.policyno = $.trim($("[id*=inpploicyno]").val()), t.dateexpire = $.trim($("[id*=inpdateexp]").val()), t.inscompany = $.trim($("[id*=inpinscompany]").val()), t.insdateexp = $.trim($("[id*=inpdateexp]").val()), t.regno = $.trim($("[id*=inpregno]").val()), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ name: convertAES(t.name.toLowerCase()), email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), model: t.carmodel, RegistrationNumber: convertAES(t.regno.toLowerCase()), RegistrationMonth: t.regmonth, RegistrationYear: t.regyear, policynumber: convertAES(t.policyno), insurancecompany: convertAES(t.inscompany.toLowerCase()), date: t.dateexpire, channel_id: t.channel, form_channel_id: "get_insurance_hyper" }, "get_insurance_hyper"), t.dealerparentcode = $.trim($("[id*=dealerParentCode]").val()), t.dealerlocationcode = $.trim($("[id*=dealerLocationCode]").val()), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.id = 1, t.leadtype = "Insurance Leads", t.accesstoken = $.trim($("[id*=accessToken]").val()), t.querystringParams = e; var i = document.location.origin + $.trim($("[id*=apifrmurl]").val()); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; var o = { webformId: t.webformid, access_token: "dd", maruti_service_id: t.id, maruti_service_name: t.leadtype, Name: t.name, Email: t.email, Phone: t.phone, model: t.carmodel, reg_no: t.regno, form_type: "Insurance" }; $.extend(o, getCookies()), $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: i, data: { data: JSON.stringify(o) }, dataType: "json", async: !0, beforeSend: function () { $("#divloaderinsurance").show(), $("#btninsurance").hide() }, success: function (e) { if ("0" == JSON.parse(e).error) { $("#divloaderinsurance").hide(); t.regmonth.concat(" | ", t.regyear); var i = t.carmodel; "Insurance - ".concat(i); deleteCookies(), dataLayer.push({ userId: calcMD5(o.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val() } }, failure: function (e) { $("#btninsurance").show(), $(':input[type="submit"]').prop("disabled", !1) } }) } function savedrivingschool() { if (document.getElementById("drivingschoolform").onsubmit = function (e) { e.preventDefault() }, !IsValidateForm("driving")) return !1; var e = getCookies(); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; var t = {}; t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.inpLocation = $.trim($("[id*=inpLocation]").val()), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ name: convertAES(t.name.toLowerCase()), email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), location: t.inpLocation, channel_id: t.channel, form_channel_id: "driving_school_hyper" }, "driving_school_hyper"), t.dealerparentcode = $.trim($("[id*=dealerParentCode]").val()), t.dealerlocationcode = $.trim($("[id*=dealerLocationCode]").val()), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.accesstoken = $.trim($("[id*=accessToken]").val()), t.id = 9, t.lead_type = "Driving School", t.querystringParams = e, t.carmodel = ""; var i = document.location.origin + $.trim($("[id*=apifrmurl]").val()), o = { webformId: t.webformid, maruti_service_id: t.id, maruti_service_name: t.lead_type, access_token: t.accesstoken, Name: t.name, Email: t.email, Phone: t.phone, variant: t.carmodel, form_type: "DrivingSchool" }; $.extend(o, getCookies()), $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: i, data: { data: JSON.stringify(o) }, dataType: "json", async: !0, beforeSend: function () { $("#divloaderdriving").show(), $("#savedriving").hide() }, success: function (e) { "0" == JSON.parse(e).error && ($("#divloaderdriving").hide(), console.log("savedrive success"), deleteCookies(), dataLayer.push({ userId: calcMD5(o.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val()) }, failure: function (e) { $("#savedriving").show(), $(':input[type="submit"]').prop("disabled", !1) } }) } function saveFeedback() { document.getElementById("feedbackform").onsubmit = function (e) { e.preventDefault() }; var e = getParams(window.location.href), t = {}; if (t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.inpLocation = $.trim($("[id*=inpaddress]").val()), t.enquiryType = $.trim($("#enquiryType option:selected").val()), t.carmodel = $.trim($("#ddlCarModel option:selected").val()), t.enquiry = $.trim($("[id*=inptextarea]").val()), t.registrationno = $.trim($("[id*=inpregno]").val()), t.dealerparentcode = $.trim($("[id*=dealerParentCode]").val()), t.dealerlocationcode = $.trim($("[id*=dealerLocationCode]").val()), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.accesstoken = $.trim($("[id*=accessToken]").val()), t.querystringParams = e, "" == $.trim($("[id*=inpemail]").val())) return !1; if ("" == $.trim($("[id*=inpaddress]").val()) || "" == $.trim($("[id*=inpregno]").val()) || "" == $.trim($("[id*=inptextarea]").val())) return !1; $.ajax({ type: "POST", url: "http://13.127.46.140/service/webforms/saveDataApi", data: { webformId: webformid, access_token: "dd", Name: t.name, Email: t.email, Phone: t.phone, variant: t.carmodel, reg_no: "12", form_type: "DrivingSchool", Params: t.querystringParams }, dataType: "json", beforeSend: function () { $("#divloaderfeedback").show(), $("#btnfeedback").hide() }, success: function (e) { "0" == JSON.parse(e).error && ($.trim($("[id*=inpname]").val("")), $.trim($("[id*=inpemail]").val("")), $.trim($("[id*=inpphone]").val("")), $.trim($("[id*=inpLocation]").val("")), $.trim($("[id*=inptextarea]").val("")), $.trim($("[id*=inpregno]").val("")), $.trim($("[id*=inpaddress]").val("")), window.location.href = $("#thankYouPageUrl").val()) }, failure: function (e) { $("#btnfeedback").show() } }) } function saveCareers() { var e = $(".career_table").find(".active").find("#DesignationId").val(); if (0 == $("[id*=disclaimer]").is(":checked")) return !1; if (!IsValidateForm("career")) return !1; document.getElementById("NexaHub").onclick = function (e) { e.preventDefault() }; var t = {}; t.name = $.trim($("[id*=inpname]").val()), t.email = $.trim($("[id*=inpemail]").val()), t.phone = $.trim($("[id*=inpphone]").val()), t.enquiry = $.trim($("[id*=inptextarea]").val()), t.channel = $.trim($("[id*=gchannel]").val()), tdSubmit({ name: convertAES(t.name.toLowerCase()), email: convertSHA(t.email.toLowerCase()), mobile: convertSHA(t.phone), email_enc: convertAES(t.email.toLowerCase()), mobile_enc: convertAES(t.phone), brief_content: t.enquiry, channel_id: t.channel, form_channel_id: "career_hyper" }, "career_hyper"), t.carmodel = "", t.variant = "", t.dealerparentcode = $.trim($("[id*=dealerParentCode]").val()), t.dealerlocationcode = $.trim($("[id*=dealerLocationCode]").val()), t.dealerforcode = $.trim($("[id*=dealerForCode]").val()), t.dealermapcode = $.trim($("[id*=dealerMapCode]").val()), t.webformid = $.trim($("[id*=webFormId]").val()), t.accesstoken = $.trim($("[id*=accessToken]").val()); var i = getCookies(); t.querystringParams = i; var o = document.location.origin + $.trim($("[id*=apifrmurl]").val()), n = { webformId: t.webformid, access_token: t.accesstoken, Name: t.name, Email: t.email, Phone: t.phone, dealer_parent_code: t.dealerparentcode, dealer_location_code: t.dealerlocationcode, dealer_for_code: t.dealerforcode, dealer_map_code: t.dealermapcode, fingerprint: "12", city: "12", state: "12", dealership: "12", model: "", variant: t.carmodel, color: "12", reg_no: "12", form_type: "Careers" }; $.extend(n, getCookies()), $(':input[type="submit"]').prop("disabled", !0), $.ajax({ type: "POST", url: o, data: { data: JSON.stringify(n) }, dataType: "json", async: !0, beforeSend: function () { $("#divloadercareer").show(), $("#btnsubmit").hide() }, success: function (t) { if ("0" == JSON.parse(t).error) { var i = e, o = "Careers - ".concat(i); "undefined" != typeof dataLayer && null != dataLayer && "" != dataLayer && dataLayer.push({ event: "form submit", eventCategory: "HP-form submit", eventAction: "Submit", eventLabel: o, cd_designation: i }), deleteCookies(), dataLayer.push({ userId: calcMD5(n.Phone), event: "authentication" }), window.location.href = $("#thankYouPageUrl").val() } }, failure: function (e) { $("#btnsubmit").show(), $(':input[type="submit"]').prop("disabled", !1) } }) } function validateEmail(e) { return /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(e) } function validatephone(e) { return /^[6-9]{1}[0-9]{9}/.test(e) } function ValidateName(e) { return /^([a-zA-Z ]){2,30}$/.test(e) } function IsValidateForm(e) { if ("bookdrive" == e) { if (null != $("[id*=inpname]").html() && "" == $.trim($("[id*=inpname]").val())) return !1; if (null != $("[id*=ddlCarModel]").html() && "" == $("#ddlCarModel option:selected").val()) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1 } else if ("schservice" == e) { if (null != $("[id*=inpssname]").html() && "" == $.trim($("[id*=inpssname]").val())) return !1; if (null != $("[id*=inpssemail]").html() && ("" == $("[id*=inpssemail]").val() || 0 == validateEmail($("[id*=inpssemail]").val()))) return !1; if (null != $("[id*=inpssphone]").html() && ($("[id*=inpssphone]").val().length < 10 || 0 == validatephone($("[id*=inpssphone]").val()))) return !1; if (null != $("[id*=ddlssCarModel]").html() && "" == $("#ddlssCarModel option:selected").val()) return !1; if (null != $("[id*=inpsskms]").html() && "" == $.trim($("[id*=inpsskms]").val())) return !1 } else if ("service" == e) { if (null != $("[id*=inpname]").html() && "" == $.trim($("[id*=inpname]").val())) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1; if (null != $("[id*=ddlCarModel]").html() && "" == $("#ddlCarModel option:selected").val()) return !1; if (null != $("[id*=inpsskms]").html() && "" == $.trim($("[id*=inpsskms]").val())) return !1; if (null != $("[id*=ddloutlet]").html() && "" == $("#ddloutlet option:selected").val()) return !1; if (null != $("[id*=inpaddress1]").html() && "" == $.trim($("[id*=inpaddress1]").val())) return !1 } else if ("insurance" == e) { if (null != $("[id*=ddlCarModel]").html() && "" == $("#ddlCarModel option:selected").val()) return !1; if (null != $("[id*=inpploicyno]").html() && "" == $.trim($("[id*=inpploicyno]").val())) return !1; if (null != $("[id*=inpinscompany]").html() && "" == $.trim($("[id*=inpinscompany]").val())) return !1; if (null != $("[id*=inpname]").html() && "" == $.trim($("[id*=inpname]").val())) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1 } else if ("driving" == e) { if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1 } else if ("career" == e) { if (null != $("[id*=inpname]").html() && "" == $.trim($("[id*=inpname]").val())) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1; if (null != $("[id*=inptextarea]").html() && "" == $.trim($("[id*=inptextarea]").val())) return !1 } else if ("getquote" == e) { if (null != $("[id*=ddlCarModel]").html() && "" == $("#ddlCarModel option:selected").val()) return !1; if (null != $("[id*=ddlvariant]").html() && "" == $("#ddlvariant option:selected").val()) return !1; if (null != $("[id*=inpname]").html() && "" == $.trim($("[id*=inpname]").val())) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1 } else if ("testdrivepage" == e) { if (null != $("[id*=inpname]").html() && "" == $.trim($("[id*=inpname]").val())) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1 } else if ("prebook" == e) { if (null != $("[id*=inpname]").html() && ("" == $.trim($("[id*=inpname]").val()) || 0 == ValidateName($("[id*=inpname]").val()))) return !1; if (null != $("[id*=inpemail]").html() && ("" == $("[id*=inpemail]").val() || 0 == validateEmail($("[id*=inpemail]").val()))) return !1; if (null != $("[id*=inpphone]").html() && ($("[id*=inpphone]").val().length < 10 || 0 == validatephone($("[id*=inpphone]").val()))) return !1 } else if ("enquiryform" == e) { if (null != $("[id*=inpname1]").html() && "" == $.trim($("[id*=inpname1]").val())) return !1; if (null != $("[id*=ddlCarModel1]").html() && "" == $("#ddlCarModel1 option:selected").val()) return !1; if (null != $("[id*=inpphone1]").html() && ($("[id*=inpphone1]").val().length < 10 || 0 == validatephone($("[id*=inpphone1]").val()))) return !1; if (null != $("[id*=inpemail1]").html() && ("" == $("[id*=inpemail1]").val() || 0 == validateEmail($("[id*=inpemail1]").val()))) return !1 } return !0 } function clear() { $.trim($("[id*=inpname]").val("")), $.trim($("[id*=inpemail]").val("")), $.trim($("[id*=inpphone]").val("")), $.trim($("[id*=inpssname]").val("")), $.trim($("[id*=inpssemail]").val("")), $.trim($("[id*=inpssphone]").val("")), $.trim($("[id*=inpsskms]").val("")), $.trim($("[id*=inpregno]").val("")), $.trim($("[id*=inpploicyno]").val("")), $.trim($("[id*=inpinscompany]").val("")), $.trim($("[id*=inpdateexp]").val("")), $.trim($("[id*=inpaddress1]").val("")), $.trim($("[id*=inpaddress2]").val("")), $("[id*=disclaimer]").prop("checked", !1) } function savePreBooking() { if (!IsValidateForm("prebook")) return !1; if (0 == $("[id*=disclaimer]").is(":checked")) return !1; event.preventDefault(); var e = $("#PreBooking").serialize(); $.ajax({ type: "POST", url: "/api/sitecore/Form/PreBookCar", data: e, dataType: "json", async: !0, beforeSend: function () { $("#divloadertestdrive").show() }, success: function (e) { if ("0" == JSON.parse(e).error) { window.location.href = JSON.parse(e).PageUrl } }, failure: function (e) { $(':input[type="submit"]').prop("disabled", !1), $("#divloaderprebook").hide() } }) } function saveArenaPreBooking() { if (!IsValidateForm("prebook")) return !1; if (0 == $("[id*=disclaimer]").is(":checked")) return !1; event.preventDefault(); var e = $("#ArenaPreBooking").serialize(); $.ajax({ type: "POST", url: "/api/sitecore/Form/PreBookCar", data: e, dataType: "json", async: !0, beforeSend: function () { $("#divloadertestdrive").show() }, success: function (e) { if ("0" == JSON.parse(e).error) { window.location.href = JSON.parse(e).PageUrl } }, failure: function (e) { $(':input[type="submit"]').prop("disabled", !1), $("#divloaderprebook").hide() } }) } function saveEnquiryForm() { if (!IsValidateForm("enquiryform")) return !1; if (0 == $("[id*=disclaimer1]").is(":checked")) return !1; event.preventDefault(); var e = $("#ArenaSaveEnquiry").serialize(); e = e + "&serviceid=6&servicename=Request For Quote&getutmparameter=" + JSON.stringify(getCookies()); var t = $("#ddlCarModel1").find("option:selected").text(); dataLayer.push({ event: "user_action", eventCategory: "Get a quote-sticky menu desktop", eventAction: "submit", eventLabel: "GAQ-" + t }); var i = $.trim($("[id*=inpname1]").val()), o = $.trim($("[id*=inpemail1]").val()), n = $.trim($("[id*=inpphone1]").val()), s = $.trim($("#ddlCarModel1 :selected").val()), a = $.trim($("[id*=inpchannel]").val()); tdSubmit({ name: convertAES(i.toLowerCase()), email: convertSHA(o.toLowerCase()), mobile: convertSHA(n), email_enc: convertAES(o.toLowerCase()), mobile_enc: convertAES(n),model:s,channel_id:a,form_channel_id:"get_quote_hyper"},"get_quote_hyper"),$(':input[type="submit"]').prop("disabled",!0),$.ajax({type:"POST",url:"/api/sitecore/Form/SaveEnquiryForm",data:e,dataType:"json",async:!0,beforeSend:function(){$("#divloadersticky").show(),$(".registersubmitbtn").hide()},success:function(e){if("0"==JSON.parse(e).error){dataLayer.push({userId:calcMD5(n),event:"authentication"}),window.location.href=JSON.parse(e).PageUrl}},failure:function(e){$(':input[type="submit"]').prop("disabled",!1)}})}if($("input[type=tel]").keypress(function(){return event.charCode>=48&&event.charCode<=57}),$(document).ready(function(){clear(),$(".disclaimerbtn").click(function(){$(".disclaimertextbox").toggle()})}),$(".navBar .nav ul").find("li:nth-child(11)").click(function(){tdTigger({eventCategory:"E book",eventAction:"submit",eventLabel:"E book",channel_id:$.trim($("[id*=gchannel]").val())},"event_hyperlocal")}),$(".navBar .nav ul").find("li:nth-child(10)").click(function(){tdTigger({eventCategory:"E book",eventAction:"submit",eventLabel:"E Book",channel_id:$.trim($("[id*=gchannel]").val())},"event_hyperlocal")}),$(".tabs .tab-link.current").click(function(){tdTigger({eventCategory:"Book test a Drive",eventAction:"submit",eventLabel:"Book Test Drive",channel_id:$.trim($("[id*=gchannel]").val())},"event_hyperlocal")}),$(".tabs .tab-link").click(function(){tdTigger({eventCategory:"Schedule Service",eventAction:"submit",eventLabel:"Schedule Service",channel_id:$.trim($("[id*=gchannel]").val())},"event_hyperlocal")}),function(e,t,i){!function(e){if("function"==typeof define&&define.amd)define(["jquery","jquery-mousewheel"],e);else{var i="https:"==t.location.protocol?"https:":"http:";$.event.special.mousewheel||$("head").append(decodeURI("%3Cscript src="+i+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.11/jquery.mousewheel.min.js%3E%3C/script%3E")),e(jQuery)}}(function(i){var o="mCustomScrollbar",n={setWidth:!1,setHeight:!1,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,autoHideScrollbar:!1,autoExpandScrollbar:!1,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1,disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{enable:!1,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:!1,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,updateOnSelectorChange:!1},theme:"light",callbacks:{onScrollStart:!1,onScroll:!1,onTotalScroll:!1,onTotalScrollBack:!1,whileScrolling:!1,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0},live:!1,liveSelector:null},s=0,a={},r=function(e){a[e]&&(clearTimeout(a[e]),p._delete.call(null,a[e]))},l=e.attachEvent&&!e.addEventListener?1:0,c=!1,d={init:function(e){e=i.extend(!0,{},n,e);var t=p._selector.call(this);if(e.live){var o=e.liveSelector||this.selector||".mCustomScrollbar",l=i(o);if("off"===e.live)return void r(o);a[o]=setTimeout(function(){l.mCustomScrollbar(e),"once"===e.live&&l.length&&r(o)},500)}else r(o);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":p._findAxis.call(null,e.axis),e.scrollInertia=e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=p._findScrollButtonsType.call(null,e.scrollButtons.scrollType),p._theme.call(null,e),i(t).each(function(){var t=i(this);if(!t.data("mCS")){t.data("mCS",{idx:++s,opt:e,scrollRatio:{y:null,x:null},overflowed:null,bindEvents:!1,tweenRunning:!1,sequential:{},langDir:t.css("direction"),cbOffsets:null,trigger:null});var o=t.data("mCS").opt,n=t.data("mcs-axis"),a=t.data("mcs-scrollbar-position"),r=t.data("mcs-theme");n&&(o.axis=n),a&&(o.scrollbarPosition=a),r&&(o.theme=r,p._theme.call(null,o)),p._pluginMarkup.call(this),d.update.call(null,t)}})},update:function(e){var t=e||p._selector.call(this);return i(t).each(function(){var e=i(this);if(e.data("mCS")){var t=e.data("mCS"),o=t.opt,n=i("#mCSB_"+t.idx+"_container"),s=[i("#mCSB_"+t.idx+"_dragger_vertical"),i("#mCSB_"+t.idx+"_dragger_horizontal")];if(!n.length)return;t.tweenRunning&&p._stop.call(null,e),e.hasClass("mCS_disabled")&&e.removeClass("mCS_disabled"),e.hasClass("mCS_destroyed")&&e.removeClass("mCS_destroyed"),p._maxHeight.call(this),p._expandContentHorizontally.call(this),"y"===o.axis||o.advanced.autoExpandHorizontalScroll||n.css("width",p._contentWidth(n.children())),t.overflowed=p._overflowed.call(this),p._scrollbarVisibility.call(this),o.autoDraggerLength&&p._setDraggerLength.call(this),p._scrollRatio.call(this),p._bindEvents.call(this);var a=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)];"x"!==o.axis&&(t.overflowed[0]?s[0].height()>s[0].parent().height()?p._resetContentPosition.call(this):p._scrollTo.call(this,e,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}):(p._resetContentPosition.call(this),"y"===o.axis?p._unbindEvents.call(this):"yx"===o.axis&&t.overflowed[1]&&p._scrollTo.call(this,e,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==o.axis&&(t.overflowed[1]?s[1].width()>s[1].parent().width()?p._resetContentPosition.call(this):p._scrollTo.call(this,e,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}):(p._resetContentPosition.call(this),"x"===o.axis?p._unbindEvents.call(this):"yx"===o.axis&&t.overflowed[0]&&p._scrollTo.call(this,e,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),p._autoUpdate.call(this)}})},scrollTo:function(e,t){if(void 0!==e&&null!=e){var o=p._selector.call(this);return i(o).each(function(){var o=i(this);if(o.data("mCS")){var n=o.data("mCS"),s=n.opt,a={trigger:"external",scrollInertia:s.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=i.extend(!0,{},a,t),l=p._arr.call(this,e),c=r.scrollInertia<17?17:r.scrollInertia;l[0]=p._to.call(this,l[0],"y"),l[1]=p._to.call(this,l[1],"x"),r.moveDragger&&(l[0]*=n.scrollRatio.y,l[1]*=n.scrollRatio.x),r.dur=c,setTimeout(function(){null!==l[0]&&void 0!==l[0]&&"x"!==s.axis&&n.overflowed[0]&&(r.dir="y",r.overwrite="all",p._scrollTo.call(this,o,l[0].toString(),r)),null!==l[1]&&void 0!==l[1]&&"y"!==s.axis&&n.overflowed[1]&&(r.dir="x",r.overwrite="none",p._scrollTo.call(this,o,l[1].toString(),r))},60)}})}},stop:function(){var e=p._selector.call(this);return i(e).each(function(){var e=i(this);e.data("mCS")&&p._stop.call(null,e)})},disable:function(e){var t=p._selector.call(this);return i(t).each(function(){var t=i(this);if(t.data("mCS")){t.data("mCS").opt;p._autoUpdate.call(this,"remove"),p._unbindEvents.call(this),e&&p._resetContentPosition.call(this),p._scrollbarVisibility.call(this,!0),t.addClass("mCS_disabled")}})},destroy:function(){var e=p._selector.call(this);return i(e).each(function(){var t=i(this);if(t.data("mCS")){var n=t.data("mCS"),s=n.opt,a=i("#mCSB_"+n.idx),l=i("#mCSB_"+n.idx+"_container"),c=i(".mCSB_"+n.idx+"_scrollbar");s.live&&r(e),p._autoUpdate.call(this,"remove"),p._unbindEvents.call(this),p._resetContentPosition.call(this),t.removeData("mCS"),p._delete.call(null,this.mcs),c.remove(),a.replaceWith(l.contents()),t.removeClass(o+" _mCS_"+n.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},p={_selector:function(){return"object"!=typeof i(this)||i(this).length<1?".mCustomScrollbar":this},_theme:function(e){e.autoDraggerLength=!(i.inArray(e.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&e.autoDraggerLength,e.autoExpandScrollbar=!(i.inArray(e.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&e.autoExpandScrollbar,e.scrollButtons.enable=!(i.inArray(e.theme,["minimal","minimal-dark"])>-1)&&e.scrollButtons.enable,e.autoHideScrollbar=i.inArray(e.theme,["minimal","minimal-dark"])>-1||e.autoHideScrollbar,e.scrollbarPosition=i.inArray(e.theme,["minimal","minimal-dark"])>-1?"outside":e.scrollbarPosition},_findAxis:function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},_findScrollButtonsType:function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},_pluginMarkup:function(){var e=i(this),t=e.data("mCS"),n=t.opt,s=n.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",a=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+s+"'><div class='mCSB_draggerContainer'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+s+"'><div class='mCSB_draggerContainer'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],r="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",l="yx"===n.axis?a[0]+a[1]:"x"===n.axis?a[1]:a[0],c="yx"===n.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",d=n.autoHideScrollbar?" mCS-autoHide":"",h="x"!==n.axis&&"rtl"===t.langDir?" mCS-dir-rtl":"";n.setWidth&&e.css("width",n.setWidth),n.setHeight&&e.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===t.langDir?"989999px":n.setLeft,e.addClass(o+" _mCS_"+t.idx+d+h).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+r+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir="+t.langDir+" /></div>");var u=i("#mCSB_"+t.idx),f=i("#mCSB_"+t.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||f.css("width",p._contentWidth(f.children())),"outside"===n.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),u.addClass("mCSB_outside").after(l)):(u.addClass("mCSB_inside").append(l),f.wrap(c)),p._scrollButtons.call(this);var m=[i("#mCSB_"+t.idx+"_dragger_vertical"),i("#mCSB_"+t.idx+"_dragger_horizontal")];m[0].css("min-height",m[0].height()),m[1].css("min-width",m[1].width())},_contentWidth:function(e){return Math.max.apply(Math,e.map(function(){return i(this).outerWidth(!0)}).get())},_expandContentHorizontally:function(){var e=i(this).data("mCS"),t=e.opt,o=i("#mCSB_"+e.idx+"_container");t.advanced.autoExpandHorizontalScroll&&"y"!==t.axis&&o.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(o[0].getBoundingClientRect().right+.4)-Math.floor(o[0].getBoundingClientRect().left),position:"relative"}).unwrap()},_scrollButtons:function(){var e=i(this).data("mCS"),t=e.opt,o=i(".mCSB_"+e.idx+"_scrollbar:first"),n=["<a href='#' class='mCSB_buttonUp' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonDown' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonLeft' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonRight' oncontextmenu='return false;' />"],s=["x"===t.axis?n[2]:n[0],"x"===t.axis?n[3]:n[1],n[2],n[3]];t.scrollButtons.enable&&o.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},_maxHeight:function(){var e=i(this),t=e.data("mCS"),o=(t.opt,i("#mCSB_"+t.idx)),n=e.css("max-height"),s=-1!==n.indexOf("%"),a=e.css("box-sizing");if("none"!==n){var r=s?e.parent().height()*parseInt(n)/100:parseInt(n);"border-box"===a&&(r-=e.innerHeight()-e.height()+(e.outerHeight()-e.innerHeight())),o.css("max-height",Math.round(r))}},_setDraggerLength:function(){var e=i(this).data("mCS"),t=i("#mCSB_"+e.idx),o=i("#mCSB_"+e.idx+"_container"),n=[i("#mCSB_"+e.idx+"_dragger_vertical"),i("#mCSB_"+e.idx+"_dragger_horizontal")],s=[t.height()/o.outerHeight(!1),t.width()/o.outerWidth(!1)],a=[parseInt(n[0].css("min-height")),Math.round(s[0]*n[0].parent().height()),parseInt(n[1].css("min-width")),Math.round(s[1]*n[1].parent().width())],r=l&&a[1]<a[0]?a[0]:a[1],c=l&&a[3]<a[2]?a[2]:a[3];n[0].css({height:r,"max-height":n[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":a[0]+"px"}),n[1].css({width:c,"max-width":n[1].parent().width()-10})},_scrollRatio:function(){var e=i(this).data("mCS"),t=i("#mCSB_"+e.idx),o=i("#mCSB_"+e.idx+"_container"),n=[i("#mCSB_"+e.idx+"_dragger_vertical"),i("#mCSB_"+e.idx+"_dragger_horizontal")],s=[o.outerHeight(!1)-t.height(),o.outerWidth(!1)-t.width()],a=[s[0]/(n[0].parent().height()-n[0].height()),s[1]/(n[1].parent().width()-n[1].width())];e.scrollRatio={y:a[0],x:a[1]}},_onDragClasses:function(e,t,i){var o=i?"mCSB_dragger_onDrag_expanded":"",n=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag"],s=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(n[0]+" "+o),s.toggleClass(n[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(n[0]),s.removeClass(n[1])):(e.addClass(n[0]),s.addClass(n[1])))},_overflowed:function(){var e=i(this).data("mCS"),t=i("#mCSB_"+e.idx),o=i("#mCSB_"+e.idx+"_container"),n=null==e.overflowed?o.height():o.outerHeight(!1),s=null==e.overflowed?o.width():o.outerWidth(!1);return[n>t.height(),s>t.width()]},_resetContentPosition:function(){var e=i(this),t=e.data("mCS"),o=t.opt,n=i("#mCSB_"+t.idx),s=i("#mCSB_"+t.idx+"_container"),a=[i("#mCSB_"+t.idx+"_dragger_vertical"),i("#mCSB_"+t.idx+"_dragger_horizontal")];if(p._stop(e),("x"!==o.axis&&!t.overflowed[0]||"y"===o.axis&&t.overflowed[0])&&a[0].add(s).css("top",0),"y"!==o.axis&&!t.overflowed[1]||"x"===o.axis&&t.overflowed[1]){var r=dx=0;"rtl"===t.langDir&&(r=n.width()-s.outerWidth(!1),dx=Math.abs(r/t.scrollRatio.x)),s.css("left",r),a[1].css("left",dx)}},_bindEvents:function(){var e=i(this),t=e.data("mCS"),o=t.opt;if(!t.bindEvents){if(p._draggable.call(this),o.contentTouchScroll&&p._contentDraggable.call(this),o.mouseWheel.enable){var n;!function t(){n=setTimeout(function(){i.event.special.mousewheel?(clearTimeout(n),p._mousewheel.call(e[0])):t()},1e3)}()}p._draggerRail.call(this),p._wrapperScroll.call(this),o.advanced.autoScrollOnFocus&&p._focus.call(this),o.scrollButtons.enable&&p._buttons.call(this),o.keyboard.enable&&p._keyboard.call(this),t.bindEvents=!0}},_unbindEvents:function(){var e=i(this),o=e.data("mCS"),n="mCS_"+o.idx,s=".mCSB_"+o.idx+"_scrollbar",a=i("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+s+" .mCSB_draggerContainer,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+s+">a"),r=i("#mCSB_"+o.idx+"_container");o.bindEvents&&(i(t).unbind("."+n),a.each(function(){i(this).unbind("."+n)}),clearTimeout(e[0]._focusTimeout),p._delete.call(null,e[0]._focusTimeout),clearTimeout(o.sequential.step),p._delete.call(null,o.sequential.step),clearTimeout(r[0].onCompleteTimeout),p._delete.call(null,r[0].onCompleteTimeout),o.bindEvents=!1)},_scrollbarVisibility:function(e){var t=i(this),o=t.data("mCS"),n=o.opt,s=i("#mCSB_"+o.idx+"_container_wrapper"),a=s.length?s:i("#mCSB_"+o.idx+"_container"),r=[i("#mCSB_"+o.idx+"_scrollbar_vertical"),i("#mCSB_"+o.idx+"_scrollbar_horizontal")],l=[r[0].find(".mCSB_dragger"),r[1].find(".mCSB_dragger")];"x"!==n.axis&&(o.overflowed[0]&&!e?(r[0].add(l[0]).add(r[0].children("a")).css("display","block"),a.removeClass("mCS_no_scrollbar_y mCS_y_hidden")):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&l[0].add(r[0].children("a")).css("display","none"),a.removeClass("mCS_y_hidden")):(r[0].css("display","none"),a.addClass("mCS_y_hidden")),a.addClass("mCS_no_scrollbar_y"))),"y"!==n.axis&&(o.overflowed[1]&&!e?(r[1].add(l[1]).add(r[1].children("a")).css("display","block"),a.removeClass("mCS_no_scrollbar_x mCS_x_hidden")):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&l[1].add(r[1].children("a")).css("display","none"),a.removeClass("mCS_x_hidden")):(r[1].css("display","none"),a.addClass("mCS_x_hidden")),a.addClass("mCS_no_scrollbar_x"))),o.overflowed[0]||o.overflowed[1]?t.removeClass("mCS_no_scrollbar"):t.addClass("mCS_no_scrollbar")},_coordinates:function(e){switch(e.type){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[e.originalEvent.pageY,e.originalEvent.pageX];case"touchstart":case"touchmove":case"touchend":var t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];return[t.pageY,t.pageX];default:return[e.pageY,e.pageX]}},_draggable:function(){var e,o,n,s=i(this),a=s.data("mCS"),r=a.opt,d="mCS_"+a.idx,h=["mCSB_"+a.idx+"_dragger_vertical","mCSB_"+a.idx+"_dragger_horizontal"],u=i("#mCSB_"+a.idx+"_container"),f=i("#"+h[0]+",#"+h[1]);function m(e){var t=u.find("iframe");if(t.length){var i=e?"auto":"none";t.css("pointer-events",i)}}function g(t,i,o,n){if(u[0].idleTimer=r.scrollInertia<233?250:0,e.attr("id")===h[1])var l="x",c=(e[0].offsetLeft-i+n)*a.scrollRatio.x;else l="y",c=(e[0].offsetTop-t+o)*a.scrollRatio.y;p._scrollTo(s,c.toString(),{dir:l,drag:!0})}f.bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(a){if(a.stopImmediatePropagation(),a.preventDefault(),p._mouseBtnLeft(a)){c=!0,l&&(t.onselectstart=function(){return!1}),m(!1),p._stop(s);var d=(e=i(this)).offset(),h=p._coordinates(a)[0]-d.top,u=p._coordinates(a)[1]-d.left,f=e.height()+d.top,g=e.width()+d.left;h<f&&h>0&&u<g&&u>0&&(o=h,n=u),p._onDragClasses(e,"active",r.autoExpandScrollbar)}}).bind("touchmove."+d,function(t){t.stopImmediatePropagation(),t.preventDefault();var i=e.offset(),s=p._coordinates(t)[0]-i.top,a=p._coordinates(t)[1]-i.left;g(o,n,s,a)}),i(t).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,function(t){if(e){var i=e.offset(),s=p._coordinates(t)[0]-i.top,a=p._coordinates(t)[1]-i.left;if(o===s)return;g(o,n,s,a)}}).add(f).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(i){e&&(p._onDragClasses(e,"active",r.autoExpandScrollbar),e=null),c=!1,l&&(t.onselectstart=null),m(!0)})},_contentDraggable:function(){var e,t,o,n,s,a,r,l,d,h,u,f=i(this),m=f.data("mCS"),g=m.opt,v="mCS_"+m.idx,b=i("#mCSB_"+m.idx),y=i("#mCSB_"+m.idx+"_container"),$=[i("#mCSB_"+m.idx+"_dragger_vertical"),i("#mCSB_"+m.idx+"_dragger_horizontal")],w=[],T=[],C="yx"===g.axis?"none":"all";function x(e,t){var i=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?i[0]:i[3]:e>60?t>3?i[3]:i[2]:e>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function _(e,t,i,o,n,s){e&&p._scrollTo(f,e.toString(),{dur:t,scrollEasing:i,dir:o,overwrite:n,drag:s})}y.bind("touchstart."+v+" pointerdown."+v+" MSPointerDown."+v,function(i){if(p._pointerTouch(i)&&!c){var o=y.offset();e=p._coordinates(i)[0]-o.top,t=p._coordinates(i)[1]-o.left}}).bind("touchmove."+v+" pointermove."+v+" MSPointerMove."+v,function(i){if(p._pointerTouch(i)&&!c){i.stopImmediatePropagation(),a=p._getTime();var o=b.offset(),n=p._coordinates(i)[0]-o.top,s=p._coordinates(i)[1]-o.left;if(w.push(n),T.push(s),m.overflowed[0])var r=$[0].parent().height()-$[0].height(),l=e-n>0&&n-e>-r*m.scrollRatio.y;if(m.overflowed[1])var d=$[1].parent().width()-$[1].width(),u=t-s>0&&s-t>-d*m.scrollRatio.x;(l||u)&&i.preventDefault(),h="yx"===g.axis?[e-n,t-s]:"x"===g.axis?[null,t-s]:[e-n,null],y[0].idleTimer=250,m.overflowed[0]&&_(h[0],0,"mcsLinearOut","y","all",!0),m.overflowed[1]&&_(h[1],0,"mcsLinearOut","x",C,!0)}}),b.bind("touchstart."+v+" pointerdown."+v+" MSPointerDown."+v,function(e){if(p._pointerTouch(e)&&!c){e.stopImmediatePropagation(),p._stop(f),s=p._getTime();var t=b.offset();o=p._coordinates(e)[0]-t.top,n=p._coordinates(e)[1]-t.left,w=[],T=[]}}).bind("touchend."+v+" pointerup."+v+" MSPointerUp."+v,function(e){if(p._pointerTouch(e)&&!c){e.stopImmediatePropagation(),r=p._getTime();var t=b.offset(),i=p._coordinates(e)[0]-t.top,f=p._coordinates(e)[1]-t.left;if(!(r-a>30)){var v=(d=1e3/(r-s))<2.5,$=v?[w[w.length-2],T[T.length-2]]:[0,0];l=v?[i-$[0],f-$[1]]:[i-o,f-n];var S=[Math.abs(l[0]),Math.abs(l[1])];d=v?[Math.abs(l[0]/4),Math.abs(l[1]/4)]:[d,d];var k=[Math.abs(y[0].offsetTop)-l[0]*x(S[0]/d[0],d[0]),Math.abs(y[0].offsetLeft)-l[1]*x(S[1]/d[1],d[1])];h="yx"===g.axis?[k[0],k[1]]:"x"===g.axis?[null,k[1]]:[k[0],null],u=[4*S[0]+g.scrollInertia,4*S[1]+g.scrollInertia];var P=parseInt(g.contentTouchScroll)||0;h[0]=S[0]>P?h[0]:0,h[1]=S[1]>P?h[1]:0,m.overflowed[0]&&_(h[0],u[0],"mcsEaseOut","y",C,!1),m.overflowed[1]&&_(h[1],u[1],"mcsEaseOut","x",C,!1)}}})},_mousewheel:function(){var e=i(this),t=e.data("mCS");if(t){var o=t.opt,n="mCS_"+t.idx,s=i("#mCSB_"+t.idx),a=[i("#mCSB_"+t.idx+"_dragger_vertical"),i("#mCSB_"+t.idx+"_dragger_horizontal")];s.bind("mousewheel."+n,function(n,r){if(p._stop(e),!p._disableMousewheel(e,n.target)){var c="auto"!==o.mouseWheel.deltaFactor?parseInt(o.mouseWheel.deltaFactor):l&&n.deltaFactor<100?100:n.deltaFactor<40?40:n.deltaFactor||100;if("x"===o.axis||"x"===o.mouseWheel.axis)var d="x",h=[Math.round(c*t.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)],u="auto"!==o.mouseWheel.scrollAmount?h[1]:h[0]>=s.width()?.9*s.width():h[0],f=Math.abs(i("#mCSB_"+t.idx+"_container")[0].offsetLeft),m=a[1][0].offsetLeft,g=a[1].parent().width()-a[1].width(),v=n.deltaX||n.deltaY||r;else d="y",h=[Math.round(c*t.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)],u="auto"!==o.mouseWheel.scrollAmount?h[1]:h[0]>=s.height()?.9*s.height():h[0],f=Math.abs(i("#mCSB_"+t.idx+"_container")[0].offsetTop),m=a[0][0].offsetTop,g=a[0].parent().height()-a[0].height(),v=n.deltaY||r;"y"===d&&!t.overflowed[0]||"x"===d&&!t.overflowed[1]||(o.mouseWheel.invert&&(v=-v),o.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==m||v<0&&m!==g||o.mouseWheel.preventDefault)&&(n.stopImmediatePropagation(),n.preventDefault()),p._scrollTo(e,(f-v*u).toString(),{dir:d}))}})}},_disableMousewheel:function(e,t){var o=t.nodeName.toLowerCase(),n=e.data("mCS").opt.mouseWheel.disableOver;return i.inArray(o,n)>-1&&!(i.inArray(o,["select","textarea"])>-1&&!i(t).is(":focus"))},_draggerRail:function(){var e=i(this),t=e.data("mCS"),o="mCS_"+t.idx,n=i("#mCSB_"+t.idx+"_container"),s=n.parent();i(".mCSB_"+t.idx+"_scrollbar .mCSB_draggerContainer").bind("touchstart."+o+" pointerdown."+o+" MSPointerDown."+o,function(e){c=!0}).bind("touchend."+o+" pointerup."+o+" MSPointerUp."+o,function(e){c=!1}).bind("click."+o,function(o){if(i(o.target).hasClass("mCSB_draggerContainer")||i(o.target).hasClass("mCSB_draggerRail")){p._stop(e);var a=i(this),r=a.find(".mCSB_dragger");if(a.parent(".mCSB_scrollTools_horizontal").length>0){if(!t.overflowed[1])return;var l="x",c=o.pageX>r.offset().left?-1:1,d=Math.abs(n[0].offsetLeft)-c*(.9*s.width())}else{if(!t.overflowed[0])return;l="y",c=o.pageY>r.offset().top?-1:1,d=Math.abs(n[0].offsetTop)-c*(.9*s.height())}p._scrollTo(e,d.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var e=i(this),o=e.data("mCS"),n=o.opt,s="mCS_"+o.idx,a=i("#mCSB_"+o.idx+"_container"),r=a.parent();a.bind("focusin."+s,function(o){var s=i(t.activeElement),l=a.find(".mCustomScrollBox").length;s.is(n.advanced.autoScrollOnFocus)&&(p._stop(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=l?17*l:0,e[0]._focusTimeout=setTimeout(function(){var t=[s.offset().top-a.offset().top,s.offset().left-a.offset().left],i=[a[0].offsetTop,a[0].offsetLeft],o=[i[0]+t[0]>=0&&i[0]+t[0]<r.height()-s.outerHeight(!1),i[1]+t[1]>=0&&i[0]+t[1]<r.width()-s.outerWidth(!1)],l="yx"!==n.axis||o[0]||o[1]?"all":"none";"x"===n.axis||o[0]||p._scrollTo(e,t[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===n.axis||o[1]||p._scrollTo(e,t[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})},e[0]._focusTimer))})},_wrapperScroll:function(){var e=i(this).data("mCS"),t="mCS_"+e.idx,o=i("#mCSB_"+e.idx+"_container").parent();o.bind("scroll."+t,function(e){o.scrollTop(0).scrollLeft(0)})},_buttons:function(){var e=i(this),t=e.data("mCS"),o=t.opt,n=t.sequential,s="mCS_"+t.idx,a=(i("#mCSB_"+t.idx+"_container"),".mCSB_"+t.idx+"_scrollbar");i(a+">a").bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s+" mouseup."+s+" touchend."+s+" pointerup."+s+" MSPointerUp."+s+" mouseout."+s+" pointerout."+s+" MSPointerOut."+s+" click."+s,function(s){if(s.preventDefault(),p._mouseBtnLeft(s)){var a=i(this).attr("class");switch(n.type=o.scrollButtons.scrollType,s.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===n.type)return;c=!0,t.tweenRunning=!1,r("on",a);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===n.type)return;c=!1,n.dir&&r("off",a);break;case"click":if("stepped"!==n.type||t.tweenRunning)return;r("on",a)}}function r(t,i){n.scrollAmount=o.snapAmount||o.scrollButtons.scrollAmount,p._sequentialScroll.call(this,e,t,i)}})},_keyboard:function(){var e=i(this),o=e.data("mCS"),n=o.opt,s=o.sequential,a="mCS_"+o.idx,r=i("#mCSB_"+o.idx),l=i("#mCSB_"+o.idx+"_container"),c=l.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']";r.attr("tabindex","0").bind("blur."+a+" keydown."+a+" keyup."+a,function(a){switch(a.type){case"blur":o.tweenRunning&&s.dir&&g("off",null);break;case"keydown":case"keyup":var r=a.keyCode?a.keyCode:a.which,h="on";if("x"!==n.axis&&(38===r||40===r)||"y"!==n.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===a.type&&(h="off"),i(t.activeElement).is(d)||(a.preventDefault(),a.stopImmediatePropagation(),g(h,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(a.preventDefault(),a.stopImmediatePropagation()),"keyup"===a.type){p._stop(e);var u=34===r?-1:1;if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=Math.abs(l[0].offsetLeft)-u*(.9*c.width());else f="y",m=Math.abs(l[0].offsetTop)-u*(.9*c.height());p._scrollTo(e,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!i(t.activeElement).is(d)&&((o.overflowed[0]||o.overflowed[1])&&(a.preventDefault(),a.stopImmediatePropagation()),"keyup"===a.type)){if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])f="x",m=35===r?Math.abs(c.width()-l.outerWidth(!1)):0;else f="y",m=35===r?Math.abs(c.height()-l.outerHeight(!1)):0;p._scrollTo(e,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}function g(t,i){s.type=n.keyboard.scrollType,s.scrollAmount=n.snapAmount||n.keyboard.scrollAmount,"stepped"===s.type&&o.tweenRunning||p._sequentialScroll.call(this,e,t,i)}})},_sequentialScroll:function(e,t,o){var n=e.data("mCS"),s=n.opt,a=n.sequential,r=i("#mCSB_"+n.idx+"_container"),l="stepped"===a.type;switch(t){case"on":if(a.dir=["mCSB_buttonRight"===o||"mCSB_buttonLeft"===o||39===o||37===o?"x":"y","mCSB_buttonUp"===o||"mCSB_buttonLeft"===o||38===o||37===o?-1:1],p._stop(e),p._isNumeric(o)&&"stepped"===a.type)return;c(l);break;case"off":clearTimeout(a.step),p._stop(e),(l||n.tweenRunning&&a.dir)&&c(!0)}function c(t){var i="stepped"!==a.type,o=t?i?s.scrollInertia/1.5:s.scrollInertia:1e3/60,l=t?i?7.5:40:2.5,d=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)],h=[n.scrollRatio.y>10?10:n.scrollRatio.y,n.scrollRatio.x>10?10:n.scrollRatio.x],u="x"===a.dir[0]?d[1]+a.dir[1]*(h[1]*l):d[0]+a.dir[1]*(h[0]*l),f="x"===a.dir[0]?d[1]+a.dir[1]*parseInt(a.scrollAmount):d[0]+a.dir[1]*parseInt(a.scrollAmount),m="auto"!==a.scrollAmount?f:u,g=t?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",v=!!t;t&&o<17&&(m="x"===a.dir[0]?d[1]:d[0]),p._scrollTo(e,m.toString(),{dir:a.dir[0],scrollEasing:g,dur:o,onComplete:v}),t?a.dir=!1:(clearTimeout(a.step),a.step=setTimeout(function(){c()},o))}},_arr:function(e){var t=i(this).data("mCS").opt,o=[];return"function"==typeof e&&(e=e()),e instanceof Array?o=e.length>1?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(o[0]=e.y?e.y:e.x||"x"===t.axis?null:e,o[1]=e.x?e.x:e.y||"y"===t.axis?null:e),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},_to:function(e,t){if(null!=e&&void 0!==e){var o=i(this),n=o.data("mCS"),s=n.opt,a=i("#mCSB_"+n.idx+"_container"),r=a.parent(),l=typeof e;t||(t="x"===s.axis?"x":"y");var c="x"===t?a.outerWidth(!1):a.outerHeight(!1),h="x"===t?a.offset().left:a.offset().top,u="x"===t?a[0].offsetLeft:a[0].offsetTop,f="x"===t?"left":"top";switch(l){case"function":return e();case"object":if(e.nodeType)var m="x"===t?i(e).offset().left:i(e).offset().top;else if(e.jquery){if(!e.length)return;m="x"===t?e.offset().left:e.offset().top}return m-h;case"string":case"number":if(p._isNumeric.call(null,e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(c*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(u-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var g=u+parseInt(e.split("+=")[1]);return g>=0?0:Math.abs(g)}if(-1!==e.indexOf("px")&&p._isNumeric.call(null,e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(r.height()-a.outerHeight(!1));if("right"===e)return Math.abs(r.width()-a.outerWidth(!1));if("first"===e||"last"===e){var v=a.find(":"+e);return(m="x"===t?i(v).offset().left:i(v).offset().top)-h}return i(e).length?(m="x"===t?i(e).offset().left:i(e).offset().top)-h:(a.css(f,e),void d.update.call(null,o[0]))}}},_autoUpdate:function(e){var t=i(this),o=t.data("mCS"),n=o.opt,s=i("#mCSB_"+o.idx+"_container");if(e)return clearTimeout(s[0].autoUpdate),void p._delete.call(null,s[0].autoUpdate);var a,r,l,c=s.parent(),h=[i("#mCSB_"+o.idx+"_scrollbar_vertical"),i("#mCSB_"+o.idx+"_scrollbar_horizontal")],u=function(){return[h[0].is(":visible")?h[0].outerHeight(!0):0,h[1].is(":visible")?h[1].outerWidth(!0):0]},f=b(),m=[s.outerHeight(!1),s.outerWidth(!1),c.height(),c.width(),u()[0],u()[1]],g=v();function v(){var e=0;return n.advanced.updateOnImageLoad&&(e=s.find("img").length),e}function b(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=s.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=i(this).height()+i(this).width()}),e}function y(){clearTimeout(s[0].autoUpdate),d.update.call(null,t[0])}!function e(){clearTimeout(s[0].autoUpdate);s[0].autoUpdate=setTimeout(function(){if(n.advanced.updateOnSelectorChange&&(a=b())!==f)return y(),void(f=a);n.advanced.updateOnContentResize&&((r=[s.outerHeight(!1),s.outerWidth(!1),c.height(),c.width(),u()[0],u()[1]])[0]===m[0]&&r[1]===m[1]&&r[2]===m[2]&&r[3]===m[3]&&r[4]===m[4]&&r[5]===m[5]||(y(),m=r)),n.advanced.updateOnImageLoad&&(l=v())!==g&&(s.find("img").each(function(){!function(e){var t=new Image;t.onload=(i=t,o=function(){this.onload=null,y()},function(){return o.apply(i,arguments)}),t.src=e;var i,o}(this.src)}),g=l),(n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&e()},60)}()},_snapAmount:function(e,t,i){return Math.round(e/t)*t-i},_stop:function(e){var t=e.data("mCS");i("#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal").each(function(){p._stopTween.call(this)})},_scrollTo:function(e,t,o){var n=e.data("mCS"),s=n.opt,a={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=[(o=i.extend(a,o)).dur,o.drag?0:o.dur],l=i("#mCSB_"+n.idx),c=i("#mCSB_"+n.idx+"_container"),d=s.callbacks.onTotalScrollOffset?p._arr.call(e,s.callbacks.onTotalScrollOffset):[0,0],h=s.callbacks.onTotalScrollBackOffset?p._arr.call(e,s.callbacks.onTotalScrollBackOffset):[0,0];switch(n.trigger=o.trigger,s.snapAmount&&(t=p._snapAmount(t,s.snapAmount,s.snapOffset)),o.dir){case"x":var u=i("#mCSB_"+n.idx+"_dragger_horizontal"),f="left",m=c[0].offsetLeft,g=[l.width()-c.outerWidth(!1),u.parent().width()-u.width()],v=[t,t/n.scrollRatio.x],b=d[1],y=h[1],$=b>0?b/n.scrollRatio.x:0,w=y>0?y/n.scrollRatio.x:0;break;case"y":u=i("#mCSB_"+n.idx+"_dragger_vertical"),f="top",m=c[0].offsetTop,g=[l.height()-c.outerHeight(!1),u.parent().height()-u.height()],v=[t,t/n.scrollRatio.y],b=d[0],y=h[0],$=b>0?b/n.scrollRatio.y:0,w=y>0?y/n.scrollRatio.y:0}function T(e){return n&&s.callbacks[e]&&"function"==typeof s.callbacks[e]}function C(){var t=[c[0].offsetTop,c[0].offsetLeft],i=[u[0].offsetTop,u[0].offsetLeft],n=[c.outerHeight(!1),c.outerWidth(!1)],s=[l.height(),l.width()];e[0].mcs={content:c,top:t[0],left:t[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(n[0])-s[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(n[1])-s[1])),direction:o.dir}}v[1]<0?v=[0,0]:v[1]>=g[1]?v=[g[0],g[1]]:v[0]=-v[0],clearTimeout(c[0].onCompleteTimeout),!n.tweenRunning&&(0===m&&v[0]>=0||m===g[0]&&v[0]<=g[0])||(p._tweenTo.call(null,u[0],f,Math.round(v[1]),r[1],o.scrollEasing),p._tweenTo.call(null,c[0],f,Math.round(v[0]),r[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!n.tweenRunning&&(T("onScrollStart")&&(C(),s.callbacks.onScrollStart.call(e[0])),n.tweenRunning=!0,p._onDragClasses(u),n.cbOffsets=[s.callbacks.alwaysTriggerOffsets||m>=g[0]+b,s.callbacks.alwaysTriggerOffsets||m<=-y])},onUpdate:function(){o.callbacks&&o.onUpdate&&T("whileScrolling")&&(C(),s.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===s.axis&&clearTimeout(c[0].onCompleteTimeout);var t=c[0].idleTimer||0;c[0].onCompleteTimeout=setTimeout(function(){T("onScroll")&&(C(),s.callbacks.onScroll.call(e[0])),T("onTotalScroll")&&v[1]>=g[1]-$&&n.cbOffsets[0]&&(C(),s.callbacks.onTotalScroll.call(e[0])),T("onTotalScrollBack")&&v[1]<=w&&n.cbOffsets[1]&&(C(),s.callbacks.onTotalScrollBack.call(e[0])),n.tweenRunning=!1,c[0].idleTimer=0,p._onDragClasses(u,"hide")},t)}}}))},_tweenTo:function(t,i,o,n,s,a,r){var l,c=(r=r||{}).onStart||function(){},d=r.onUpdate||function(){},h=r.onComplete||function(){},u=p._getTime(),f=0,m=t.offsetTop,g=t.style;"left"===i&&(m=t.offsetLeft);var v=o-m;function b(){t._mcsstop||(f||c.call(),f=p._getTime()-u,y(),f>=t._mcstime&&(t._mcstime=f>t._mcstime?f+l-(f-t._mcstime):f+l-1,t._mcstime<f+1&&(t._mcstime=f+1)),t._mcstime<n?t._mcsid=_request(b):h.call())}function y(){n>0?(t._mcscurrVal=function(e,t,i,o,n){switch(n){case"linear":case"mcsLinear":return i*e/o+t;case"mcsLinearOut":return e/=o,e--,i*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=o/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=o/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=o/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=o,-i*(--e*e*e*e-1)+t;case"easeOutStrong":return i*(1-Math.pow(2,-10*e/o))+t;case"easeOut":case"mcsEaseOut":default:var s=(e/=o)*e,a=s*e;return t+i*(.499999999999997*a*s+-2.5*s*s+5.5*a+-6.5*s+4*e)}}(t._mcstime,m,v,n,s),g[i]=Math.round(t._mcscurrVal)+"px"):g[i]=o+"px",d.call()}t._mcsstop=0,"none"!==a&&function(){if(null==t._mcsid)return;e.requestAnimationFrame?e.cancelAnimationFrame(t._mcsid):clearTimeout(t._mcsid);t._mcsid=null}(),l=1e3/60,t._mcstime=f+l,_request=e.requestAnimationFrame?e.requestAnimationFrame:function(e){return y(),setTimeout(e,.01)},t._mcsid=_request(b)},_getTime:function(){return e.performance&&e.performance.now?e.performance.now():e.performance&&e.performance.webkitNow?e.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},_stopTween:function(){var t=this;null!=t._mcsid&&(e.requestAnimationFrame?e.cancelAnimationFrame(t._mcsid):clearTimeout(t._mcsid),t._mcsid=null,t._mcsstop=1)},_delete:function(e){try{0}catch(e){null}},_mouseBtnLeft:function(e){return!(e.which&&1!==e.which)},_pointerTouch:function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},_isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)}};i.fn[o]=function(e){return d[e]?d[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void i.error("Method "+e+" does not exist"):d.init.apply(this,arguments)},i[o]=function(e){return d[e]?d[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void i.error("Method "+e+" does not exist"):d.init.apply(this,arguments)},i[o].defaults=n,e[o]=!0,i(e).load(function(){i(".mCustomScrollbar")[o]()})})}(window,document),$(document).ready(function(){var e=new URLSearchParams(window.location.search).entries();for(var t of e)i(t[0],t[1],1);function i(e,t,i){var o=new Date;o.setTime(o.getTime()+24*i*60*60*1e3);var n="expires="+o.toUTCString();document.cookie=e+"="+t+";"+n+";path=/"}}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var i=!1,o=this;e(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||e(o).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',i=function(i){e(i).on("click",t,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(t){var o=e(this),n=o.attr("data-target");n||(n=(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var s=e("#"===n?[]:n);function a(){s.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),s.length||(s=o.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a())};var o=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var o=e(this),n=o.data("bs.alert");n||o.data("bs.alert",n=new i(this)),"string"==typeof t&&n[t].call(o)})},e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=o,this},e(document).on("click.bs.alert.data-api",t,i.prototype.close)}(jQuery),function(e){"use strict";var t=function(i,o){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,o),this.isLoading=!1};function i(i){return this.each(function(){var o=e(this),n=o.data("bs.button"),s="object"==typeof i&&i;n||o.data("bs.button",n=new t(this,s)),"toggle"==i?n.toggle():i&&n.setState(i)})}t.VERSION="3.3.7",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var i="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();t+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(e.proxy(function(){o[n](null==s[t]?this.options[t]:s[t]),"loadingText"==t?(this.isLoading=!0,o.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=e.fn.button;e.fn.button=i,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=o,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var o=e(t.target).closest(".btn");i.call(o,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),o.is("input,button")?o.trigger("focus"):o.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";var t=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function i(i){return this.each(function(){var o=e(this),n=o.data("bs.carousel"),s=e.extend({},t.DEFAULTS,o.data(),"object"==typeof i&&i),a="string"==typeof i?i:s.slide;n||o.data("bs.carousel",n=new t(this,s)),"number"==typeof i?n.to(i):a?n[a]():s.interval&&n.pause().cycle()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var o=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(o)},t.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(i,o){var n=this.$element.find(".item.active"),s=o||this.getItemForDirection(i,n),a=this.interval,r="next"==i?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var c=s[0],d=e.Event("slide.bs.carousel",{relatedTarget:c,direction:r});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=e(this.$indicators.children()[this.getItemIndex(s)]);p&&p.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:c,direction:r});return e.support.transition&&this.$element.hasClass("slide")?(s.addClass(i),s[0].offsetWidth,n.addClass(r),s.addClass(r),n.one("bsTransitionEnd",function(){s.removeClass([i,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(n.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var o=e.fn.carousel;e.fn.carousel=i,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=o,this};var n=function(t){var o,n=e(this),s=e(n.attr("data-target")||(o=n.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var a=e.extend({},s.data(),n.data()),r=n.attr("data-slide-to");r&&(a.interval=!1),i.call(s,a),r&&s.data("bs.carousel").to(r),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);i.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(i,o){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,o),this.$trigger=e('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(t){var i,o=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(o)}function o(i){return this.each(function(){var o=e(this),n=o.data("bs.collapse"),s=e.extend({},t.DEFAULTS,o.data(),"object"==typeof i&&i);!n&&s.toggle&&/show|hide/.test(i)&&(s.toggle=!1),n||o.data("bs.collapse",n=new t(this,s)),"string"==typeof i&&n[i]()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(i=n.data("bs.collapse"))&&i.transitioning)){var s=e.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){n&&n.length&&(o.call(n,"hide"),i||n.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return r.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=e.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var o=this.dimension();this.$element[o](this.$element[o]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return n.call(this);this.$element[o](0).one("bsTransitionEnd",e.proxy(n,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,o){var n=e(o);this.addAriaAndCollapsedClass(i(n),n)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=e.fn.collapse;e.fn.collapse=o,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var n=e(this);n.attr("data-target")||t.preventDefault();var s=i(n),a=s.data("bs.collapse")?"toggle":n.data();o.call(s,a)})}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",i='[data-toggle="dropdown"]',o=function(t){e(t).on("click.bs.dropdown",this.toggle)};function n(t){var i=t.attr("data-target");i||(i=(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&e(i);return o&&o.length?o:t.parent()}function s(o){o&&3===o.which||(e(t).remove(),e(i).each(function(){var t=e(this),i=n(t),s={relatedTarget:this};i.hasClass("open")&&(o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&e.contains(i[0],o.target)||(i.trigger(o=e.Event("hide.bs.dropdown",s)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),i.removeClass("open").trigger(e.Event("hidden.bs.dropdown",s)))))}))}o.VERSION="3.3.7",o.prototype.toggle=function(t){var i=e(this);if(!i.is(".disabled, :disabled")){var o=n(i),a=o.hasClass("open");if(s(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",s);var r={relatedTarget:this};if(o.trigger(t=e.Event("show.bs.dropdown",r)),t.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",r))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var o=e(this);if(t.preventDefault(),t.stopPropagation(),!o.is(".disabled, :disabled")){var s=n(o),a=s.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&s.find(i).trigger("focus"),o.trigger("click");var r=s.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var l=r.index(t.target);38==t.which&&l>0&&l--,40==t.which&&l<r.length-1&&l++,~l||(l=0),r.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var i=e(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof t&&n[t].call(i)})},e.fn.dropdown.Constructor=o,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",i,o.prototype.toggle).on("keydown.bs.dropdown.data-api",i,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(e){"use strict";var t=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function i(i,o){return this.each(function(){var n=e(this),s=n.data("bs.modal"),a=e.extend({},t.DEFAULTS,n.data(),"object"==typeof i&&i);s||n.data("bs.modal",s=new t(this,a)),"string"==typeof i?s[i](o):a.show&&s.show(o)})}t.VERSION="3.3.7",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(i){var o=this,n=e.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=e.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),n&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var s=e.Event("shown.bs.modal",{relatedTarget:i});n?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(t.TRANSITION_DURATION):o.$element.trigger("focus").trigger(s)}))},t.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var o=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=e.support.transition&&n;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;s?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){o.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):a()}else i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var o=e.fn.modal;e.fn.modal=i,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=o,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var o=e(this),n=o.attr("href"),s=e(o.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),a=s.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(n)&&n},s.data(),o.data());o.is("a")&&t.preventDefault(),s.one("show.bs.modal",function(e){e.isDefaultPrevented()||s.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),i.call(s,a,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,o){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var a=n[s];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,function(e,o){i[e]!=o&&(t[e]=o)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},t.prototype.show=function(){var i=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var o=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!o)return;var n=this,s=this.tip(),a=this.getUID(this.type);this.setContent(),s.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(r);c&&(r=r.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),p=s[0].offsetWidth,h=s[0].offsetHeight;if(c){var u=r,f=this.getPosition(this.$viewport);r="bottom"==r&&d.bottom+h>f.bottom?"top":"top"==r&&d.top-h<f.top?"bottom":"right"==r&&d.right+p>f.width?"left":"left"==r&&d.left-p<f.left?"right":r,s.removeClass(u).addClass(r)}var m=this.getCalculatedOffset(r,d,p,h);this.applyPlacement(m,r);var g=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};e.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",g).emulateTransitionEnd(t.TRANSITION_DURATION):g()}},t.prototype.applyPlacement=function(t,i){var o=this.tip(),n=o[0].offsetWidth,s=o[0].offsetHeight,a=parseInt(o.css("margin-top"),10),r=parseInt(o.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),t.top+=a,t.left+=r,e.offset.setOffset(o[0],e.extend({using:function(e){o.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),o.addClass("in");var l=o[0].offsetWidth,c=o[0].offsetHeight;"top"==i&&c!=s&&(t.top=t.top+s-c);var d=this.getViewportAdjustedDelta(i,t,l,c);d.left?t.left+=d.left:t.top+=d.top;var p=/top|bottom/.test(i),h=p?2*d.left-n+l:2*d.top-s+c,u=p?"offsetWidth":"offsetHeight";o.offset(t),this.replaceArrow(h,o[0][u],p)},t.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(i){var o=this,n=e(this.$tip),s=e.Event("hide.bs."+this.type);function a(){"in"!=o.hoverState&&n.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),i&&i()}if(this.$element.trigger(s),!s.isDefaultPrevented())return n.removeClass("in"),e.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],o="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=e.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=window.SVGElement&&i instanceof window.SVGElement,a=o?{top:0,left:0}:s?null:t.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=o?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},n,r,l,a)},t.prototype.getCalculatedOffset=function(e,t,i,o){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-o,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-o/2,left:t.left-i}:{top:t.top+t.height/2-o/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var r=t.top-s-a.scroll,l=t.top+s-a.scroll+o;r<a.top?n.top=a.top-r:l>a.top+a.height&&(n.top=a.top+a.height-l)}else{var c=t.left-s,d=t.left+s+i;c<a.left?n.left=a.left-c:d>a.right&&(n.left=a.left+a.width-d)}return n},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var i=e.fn.tooltip;e.fn.tooltip=function(i){return this.each(function(){var o=e(this),n=o.data("bs.tooltip"),s="object"==typeof i&&i;!n&&/destroy|hide/.test(i)||(n||o.data("bs.tooltip",n=new t(this,s)),"string"==typeof i&&n[i]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=i,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=function(i){return this.each(function(){var o=e(this),n=o.data("bs.popover"),s="object"==typeof i&&i;!n&&/destroy|hide/.test(i)||(n||o.data("bs.popover",n=new t(this,s)),"string"==typeof i&&n[i]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),function(e){"use strict";function t(i,o){this.$body=e(document.body),this.$scrollElement=e(i).is(document.body)?e(window):e(i),this.options=e.extend({},t.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var o=e(this),n=o.data("bs.scrollspy"),s="object"==typeof i&&i;n||o.data("bs.scrollspy",n=new t(this,s)),"string"==typeof i&&n[i]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),n=t.data("target")||t.attr("href"),s=/^#./.test(n)&&e(n);return s&&s.length&&s.is(":visible")&&[[s[i]().top+o,n]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),t>=o)return a!=(e=s[s.length-1])&&this.activate(e);if(a&&t<n[0])return this.activeTarget=null,this.clear();for(e=n.length;e--;)a!=s[e]&&t>=n[e]&&(void 0===n[e+1]||t<n[e+1])&&this.activate(s[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',o=e(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var o=e.fn.scrollspy;e.fn.scrollspy=i,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=o,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);i.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(t){this.element=e(t)};function i(i){return this.each(function(){var o=e(this),n=o.data("bs.tab");n||o.data("bs.tab",n=new t(this)),"string"==typeof i&&n[i]()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),o=t.data("target");if(o||(o=(o=t.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var n=i.find(".active:last a"),s=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(s),t.trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){var r=e(o);this.activate(t.closest("li"),i),this.activate(r,r.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},t.prototype.activate=function(i,o,n){var s=o.find("> .active"),a=n&&e.support.transition&&(s.length&&s.hasClass("fade")||!!o.find("> .fade").length);function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(t.TRANSITION_DURATION):r(),s.removeClass("in")};var o=e.fn.tab;e.fn.tab=i,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=o,this};var n=function(t){t.preventDefault(),i.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(e){"use strict";var t=function(i,o){this.options=e.extend({},t.DEFAULTS,o),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(i){return this.each(function(){var o=e(this),n=o.data("bs.affix"),s="object"==typeof i&&i;n||o.data("bs.affix",n=new t(this,s)),"string"==typeof i&&n[i]()})}t.VERSION="3.3.7",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=s.top)&&"bottom":!(n+a<=e-o)&&"bottom";var r=null==this.affixed,l=r?n:s.top;return null!=i&&n<=i?"top":null!=o&&l+(r?a:t)>=e-o&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),o=this.options.offset,n=o.top,s=o.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof o&&(s=n=o),"function"==typeof n&&(n=o.top(this.$element)),"function"==typeof s&&(s=o.bottom(this.$element));var r=this.getState(a,i,n,s);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:a-i-s})}};var o=e.fn.affix;e.fn.affix=i,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=o,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),o=t.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),i.call(t,o)})})}(jQuery),function(e,t,i,o){function n(t,i){this.settings=null,this.options=e.extend({},n.Defaults,i),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,i){this._handlers[i]=e.proxy(this[i],this)},this)),e.each(n.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(n.Workers,e.proxy(function(t,i){this._pipe.push({filter:i.filter,run:e.proxy(i.run,this)})},this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",i=!this.settings.autoWidth,o=this.settings.rtl,n={width:"auto","margin-left":o?t:"","margin-right":o?"":t};!i&&this.$stage.children().css(n),e.css=n}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,o=this._items.length,n=!this.settings.autoWidth,s=[];for(e.items={merge:!1,width:t};o--;)i=this._mergers[o],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=i>1||e.items.merge,s[o]=n?t*i:this._items[o].width();this._widths=s}},{filter:["items","settings"],run:function(){var t=[],i=this._items,o=this.settings,n=Math.max(2*o.items,4),s=2*Math.ceil(i.length/2),a=o.loop&&i.length?o.rewind?n:Math.max(n,s):0,r="",l="";for(a/=2;a--;)t.push(this.normalize(t.length/2,!0)),r+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),l=i[t[t.length-1]][0].outerHTML+l;this._clones=t,e(r).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,i=-1,o=0,n=0,s=[];++i<t;)o=s[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,s.push(o+n*e);this._coordinates=s}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,o=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],o.eq(t).css(e.css);else i&&(e.css.width=e.items.width,o.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,i,o,n=this.settings.rtl?1:-1,s=2*this.settings.stagePadding,a=this.coordinates(this.current())+s,r=a+this.width()*n,l=[];for(i=0,o=this._coordinates.length;i<o;i++)e=this._coordinates[i-1]||0,t=Math.abs(this._coordinates[i])+s*n,(this.op(e,"<=",a)&&this.op(e,">",r)||this.op(t,"<",a)&&this.op(t,">",r))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active")}}],n.prototype.initialize=function(){var t,i,o;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,o=this.$element.children(i).width(),t.length&&o<=0&&this.preloadAutoWidthImages(t));this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.setup=function(){var t=this.viewport(),i=this.options.responsive,o=-1,n=null;i?(e.each(i,function(e){e<=t&&e>o&&(o=Number(e))}),"function"==typeof(n=e.extend({},this.options,i[o])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+o))):n=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=o,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var t=0,i=this._pipe.length,o=e.proxy(function(e){return this[e]},this._invalidated),n={};t<i;)(this._invalidated.all||e.grep(this._pipe[t].filter,o).length>0)&&this._pipe[t].run(n),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(e){switch(e=e||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(t){var o=null;3!==t.which&&(e.support.transform?o={x:(o=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===o.length?12:4],y:o[16===o.length?13:5]}:(o=this.$stage.position(),o={x:this.settings.rtl?o.left+this.$stage.width()-this.width()+this.settings.margin:o.left,y:o.top}),this.is("animating")&&(e.support.transform?this.animate(o.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=o,this._drag.stage.current=o,this._drag.pointer=this.pointer(t),e(i).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(i).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var o=this.difference(this._drag.pointer,this.pointer(t));e(i).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(o.x)<Math.abs(o.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},n.prototype.onDragMove=function(e){var t=null,i=null,o=null,n=this.difference(this._drag.pointer,this.pointer(e)),s=this.difference(this._drag.stage.start,n);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,s.x=((s.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),o=this.settings.pullDrag?-1*n.x/5:0,s.x=Math.max(Math.min(s.x,t+o),i+o)),this._drag.stage.current=s,this.animate(s.x))},n.prototype.onDragEnd=function(t){var o=this.difference(this._drag.pointer,this.pointer(t)),n=this._drag.stage.current,s=o.x>0^this.settings.rtl?"left":"right";e(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==o.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==o.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(Math.abs(o.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(t,i){var o=-1,n=this.width(),s=this.coordinates();return this.settings.freeDrag||e.each(s,e.proxy(function(e,a){return"left"===i&&t>a-30&&t<a+30?o=e:"right"===i&&t>a-n-30&&t<a-n+30?o=e+1:this.op(t,"<",a)&&this.op(t,">",s[e+1]||a-n)&&(o="left"===i?e+1:e),-1===o},this)),this.settings.loop||(this.op(t,">",s[this.minimum()])?o=t=this.minimum():this.op(t,"<",s[this.maximum()])&&(o=t=this.maximum())),o},n.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},n.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},n.prototype.current=function(e){if(void 0===e)return this._current;if(0!==this._items.length){if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});void 0!==t.data&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},n.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},n.prototype.reset=function(e){void 0!==(e=this.normalize(e))&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},n.prototype.normalize=function(e,t){var i=this._items.length,o=t?0:this._clones.length;return!this.isNumeric(e)||i<1?e=void 0:(e<0||e>=i+o)&&(e=((e-o/2)%i+i)%i+o/2),e},n.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},n.prototype.maximum=function(e){var t,i,o,n=this.settings,s=this._coordinates.length;if(n.loop)s=this._clones.length/1+this._items.length-1;else if(n.autoWidth||n.merge){for(t=this._items.length,i=this._items[--t].width(),o=this.$element.width();t--&&!((i+=this._items[t].width()+this.settings.margin)>o););s=t+1}else s=n.center?this._items.length-1:this._items.length-n.items;return e&&(s-=this._clones.length/2),Math.max(s,0)},n.prototype.minimum=function(e){return e?0:this._clones.length/2},n.prototype.items=function(e){return void 0===e?this._items.slice():(e=this.normalize(e,!0),this._items[e])},n.prototype.mergers=function(e){return void 0===e?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},n.prototype.clones=function(t){var i=this._clones.length/2,o=i+this._items.length,n=function(e){return e%2==0?o+e/2:i-(e+1)/2};return void 0===t?e.map(this._clones,function(e,t){return n(t)}):e.map(this._clones,function(e,i){return e===t?n(i):null})},n.prototype.speed=function(e){return void 0!==e&&(this._speed=e),this._speed},n.prototype.coordinates=function(t){var i,o=1,n=t-1;return void 0===t?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(o=-1,n=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[n]||0))/1*o):i=this._coordinates[n]||0,i=Math.ceil(i))},n.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(e,t){var i=this.current(),o=null,n=e-this.relative(i),s=(n>0)-(n<0),a=this._items.length,r=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>a/2&&(n+=-1*s*a),(o=(((e=i+n)-r)%a+a)%a+r)!==e&&o-n<=l&&o-n>0&&(i=o-n,e=o,this.reset(i))):e=this.settings.rewind?(e%(l+=1)+l)%l:Math.max(r,Math.min(l,e)),this.speed(this.duration(i,e,t)),this.current(e),this.$element.is(":visible")&&this.update()},n.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},n.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},n.prototype.onTransitionEnd=function(e){if(void 0!==e&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var o;return this.options.responsiveBaseElement!==t?o=e(this.options.responsiveBaseElement).width():t.innerWidth?o=t.innerWidth:i.documentElement&&i.documentElement.clientWidth?o=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),o},n.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(t,i){var o=this.relative(this._current);i=void 0===i?this._items.length:this.normalize(i,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:i}),t=this.prepare(t),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[o]&&this.reset(this._items[o].index()),this.invalidate("items"),this.trigger("added",{content:t,position:i})},n.prototype.remove=function(e){void 0!==(e=this.normalize(e,!0))&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},n.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,i){this.enter("pre-loading"),i=e(i),e(new Image).one("load",e.proxy(function(e){i.attr("src",e.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},n.prototype.destroy=function(){for(var o in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(i).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[o].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(e,t,i){var o=this.settings.rtl;switch(t){case"<":return o?e>i:e<i;case">":return o?e<i:e>i;case">=":return o?e<=i:e>=i;case"<=":return o?e>=i:e<=i}},n.prototype.on=function(e,t,i,o){e.addEventListener?e.addEventListener(t,i,o):e.attachEvent&&e.attachEvent("on"+t,i)},n.prototype.off=function(e,t,i,o){e.removeEventListener?e.removeEventListener(t,i,o):e.detachEvent&&e.detachEvent("on"+t,i)},n.prototype.trigger=function(t,i,o,s,a){var r={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,o],function(e){return e}).join("-").toLowerCase()),c=e.Event([t,"owl",o||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},r,i));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(c)}),this.register({type:n.Type.Event,name:t}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},n.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){void 0===this._states.current[t]&&(this._states.current[t]=0),this._states.current[t]++},this))},n.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},n.prototype.register=function(t){if(t.type===n.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var i=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!i||!i.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:i.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===n.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(i,o){return e.inArray(i,this._states.tags[t.name])===o},this)))},n.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},n.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},n.prototype.pointer=function(e){var i={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i},n.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},n.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=e(this),s=o.data("owl.carousel");s||(s=new n(this,"object"==typeof t&&t),o.data("owl.carousel",s),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){s.register({type:n.Type.Event,name:i}),s.$element.on(i+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([i]),s[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},s))})),"string"==typeof t&&"_"!==t.charAt(0)&&s[t].apply(s,i)})},e.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var e,i;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var i=this._core.settings,o=i.center&&Math.ceil(i.items/1)||i.items,n=i.center&&-1*o||0,s=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+n,a=this._core.clones().length,r=e.proxy(function(e,t){this.load(t)},this);n++<o;)this.load(a/2+this._core.relative(s)),a&&e.each(this._core.clones(this._core.relative(s)),r),s++},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={lazyLoad:!1},n.prototype.load=function(i){var o=this._core.$stage.children().eq(i),n=o&&o.find(".owl-lazy");!n||e.inArray(o.get(0),this._loaded)>-1||(n.each(e.proxy(function(i,o){var n,s=e(o),a=t.devicePixelRatio>1&&s.attr("data-src-retina")||s.attr("data-src");this._core.trigger("load",{element:s,url:a},"lazy"),s.is("img")?s.one("load.owl.lazy",e.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:a},"lazy")},this)).attr("src",a):((n=new Image).onload=e.proxy(function(){s.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:s,url:a},"lazy")},this),n.src=a)},this)),this._loaded.push(o.get(0)))},n.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=function(t){this._core=t,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var t,i=this._core._current,o=i+this._core.settings.items,n=this._core.$stage.children().toArray().slice(i,o),s=[];e.each(n,function(t,i){s.push(e(i).height())}),t=Math.max.apply(null,s),this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,e(t.content)))}},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(e,t){var i=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",o=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),n=e.attr("data-width")||this._core.settings.videoWidth,s=e.attr("data-height")||this._core.settings.videoHeight,a=e.attr("href");if(!a)throw new Error("Missing video URL.");if((o=a.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(o[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(o[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}o=o[6],this._videos[a]={type:i,id:o,width:n,height:s},t.attr("data-video",a),this.thumbnail(e,this._videos[a])},n.prototype.thumbnail=function(t,i){var o,n,s=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=t.find("img"),r="src",l="",c=this._core.settings,d=function(e){'<div class="owl-video-play-icon"></div>',o=c.lazyLoad?'<div class="owl-video-tn '+l+'" '+r+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(o),t.after('<div class="owl-video-play-icon"></div>')};if(t.wrap('<div class="owl-video-wrapper"'+s+"></div>"),this._core.settings.lazyLoad&&(r="data-src",l="owl-lazy"),a.length)return d(a.attr(r)),a.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",d(n)):"vimeo"===i.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){n=e[0].thumbnail_large,d(n)}}):"vzaar"===i.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){n=e.framegrab_url,d(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(t){var i,o=e(t.target).closest("."+this._core.settings.itemClass),n=this._videos[o.attr("data-video")],s=n.width||"100%",a=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),o=this._core.items(this._core.relative(o.index())),this._core.reset(o.index()),"youtube"===n.type?i='<iframe width="'+s+'" height="'+a+'" src="//www.youtube.com/embed/'+n.id+"?autoplay=1&rel=0&v="+n.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===n.type?i='<iframe src="//player.vimeo.com/video/'+n.id+'?autoplay=1" width="'+s+'" height="'+a+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===n.type&&(i='<iframe frameborder="0"height="'+a+'"width="'+s+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+n.id+'/player?autoplay=true"></iframe>'),e('<div class="owl-video-frame">'+i+"</div>").insertAfter(o.find(".owl-video")),this._playing=o.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=function(t){this.core=t,this.core.options=e.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,i=e.proxy(this.clear,this),o=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),o.one(e.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(a)),s&&n.one(e.support.animation.end,i).addClass("animated owl-animated-in").addClass(s))}},n.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=function(t){this._core=t,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,i){e.namespace&&this.play(t,i)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype.play=function(e,t){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},n.prototype._getNextTimeout=function(o,n){return this._timeout&&t.clearTimeout(this._timeout),t.setTimeout(e.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},this),o||this._core.settings.autoplayTimeout)},n.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},n.prototype.stop=function(){this._core.is("rotating")&&(t.clearTimeout(this._timeout),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},n.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){"use strict";var n=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=e("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[e("<div>").addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?e(i.dotsContainer):e("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",e.proxy(function(t){var o=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(o,i.dotsSpeed)},this)),this._overrides)this._core[t]=e.proxy(this[t],this)},n.prototype.destroy=function(){var e,t,i,o;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)this._controls[t].remove();for(o in this.overides)this._core[o]=this._overrides[o];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var e,t,i=this._core.clones().length/2,o=i+this._core.items().length,n=this._core.maximum(!0),s=this._core.settings,a=s.center||s.autoWidth||s.dotsData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],e=i,t=0,0;e<o;e++){if(t>=a||0===t){if(this._pages.push({start:Math.min(n,e-i),end:e-i+a-1}),Math.min(n,e-i)===n)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},n.prototype.draw=function(){var t,i=this._core.settings,o=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),s=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||o),i.nav&&(this._controls.$previous.toggleClass("disabled",!s&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||o),i.dots&&(t=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},n.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},n.prototype.getPosition=function(t){var i,o,n=this._core.settings;return"page"==n.slideBy?(i=e.inArray(this.current(),this._pages),o=this._pages.length,t?++i:--i,i=this._pages[(i%o+o)%o].start):(i=this._core.relative(this._core.current()),o=this._core.items().length,t?i+=n.slideBy:i-=n.slideBy),i},n.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},n.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},n.prototype.to=function(t,i,o){var n;!o&&this._pages.length?(n=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,i)):e.proxy(this._overrides.to,this._core)(t,i)},e.fn.owlCarousel.Constructor.Plugins.Navigation=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":e.proxy(function(i){if(i.namespace&&"position"===i.property.name){var o=this._core.items(this._core.relative(this._core.current())),n=e.map(this._hashes,function(e,t){return e===o?t:null}).join();if(!n||t.location.hash.slice(1)===n)return;t.location.hash=n}},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(e){var i=t.location.hash.substring(1),o=this._core.$stage.children(),n=this._hashes[i]&&o.index(this._hashes[i]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,o;for(i in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var n=e("<support>").get(0).style,s="Webkit Moz O ms".split(" "),a={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},r=function(){return!!d("transform")},l=function(){return!!d("perspective")},c=function(){return!!d("animation")};function d(t,i){var a=!1,r=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+s.join(r+" ")+r).split(" "),function(e,t){if(n[t]!==o)return a=!i||t,!1}),a}function p(e){return d(e,!0)}(function(){return!!d("transition")})()&&(e.support.transition=new String(p("transition")),e.support.transition.end=a.transition.end[e.support.transition]),c()&&(e.support.animation=new String(p("animation")),e.support.animation.end=a.animation.end[e.support.animation]),r()&&(e.support.transform=new String(p("transform")),e.support.transform3d=l())}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){"use strict";function n(e,t){var o,n,s,a=[],r=0;e&&e.isDefaultPrevented()||(e.preventDefault(),t=t||{},e&&e.data&&(t=h(e.data.options,t)),o=t.$target||i(e.currentTarget).trigger("blur"),(s=i.fancybox.getInstance())&&s.$trigger&&s.$trigger.is(o)||(t.selector?a=i(t.selector):(n=o.attr("data-fancybox")||"")?a=(a=e.data?e.data.items:[]).length?a.filter('[data-fancybox="'+n+'"]'):i('[data-fancybox="'+n+'"]'):a=[o],(r=i(a).index(o))<0&&(r=0),(s=i.fancybox.open(a,t,r)).$trigger=o))}if(e.console=e.console||{info:function(e){}},i){if(i.fn.fancybox)return void console.info("fancyBox already initialized");var s={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen allow="fullscreen autoplay" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload"><source src="{{src}}" type="{{format}}" />Your browser doesn\'t support HTML5 video</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},a=i(e),r=i(t),l=0,c=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},d=function(){var e,i=t.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(i.style[e]!==o)return n[e];return"transitionend"}(),p=function(e){return e&&e.length&&e[0].offsetHeight},h=function(e,t){var o=i.extend(!0,{},e,t);return i.each(t,function(e,t){i.isArray(t)&&(o[e]=t)}),o},u=function(o){for(var n=o[0],s=n.getBoundingClientRect(),a=[],r=i(e).height(),l=i(t).scrollTop(),c=s.top+l,d=l-c,p=c+s.height-(l+r);null!==n.parentElement;)"hidden"!==i(n.parentElement).css("overflow")&&"auto"!==i(n.parentElement).css("overflow")||a.push(n.parentElement.getBoundingClientRect()),n=n.parentElement;return!a.every(function(e){var t=Math.min(s.right,e.right)-Math.max(s.left,e.left),i=Math.min(s.bottom,e.bottom)-Math.max(s.top,e.top);return t>0&&i>0})||l>c+s.height||c>l+r?0:d>0?100-100*d/s.height:p>0?100-100*p/s.height:100},f=function(e,t,o){var n=this;n.opts=h({index:o},i.fancybox.defaults),i.isPlainObject(t)&&(n.opts=h(n.opts,t)),i.fancybox.isMobile&&(n.opts=h(n.opts,n.opts.mobile)),n.id=n.opts.id||++l,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(e),n.group.length&&n.init()};i.extend(f.prototype,{init:function(){var o,n,s=this,a=s.group[s.currIndex].opts;a.closeExisting&&i.fancybox.close(!0),i("body").addClass("fancybox-active"),!i.fancybox.getInstance()&&!1!==a.hideScrollbar&&!i.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight&&(i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(e.innerWidth-t.documentElement.clientWidth)+"px;}</style>"),i("body").addClass("compensate-for-scrollbar")),n="",i.each(a.buttons,function(e,t){n+=a.btnTpl[t]||""}),o=i(s.translate(s,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","fancybox-container-"+s.id).addClass(a.baseClass).data("FancyBox",s).appendTo(a.parentEl),s.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){s.$refs[e]=o.find(".fancybox-"+e)}),s.trigger("onInit"),s.activate(),s.jumpTo(s.currIndex)},translate:function(e,t){var i=e.opts.i18n[e.opts.lang];return t.replace(/\{\{(\w+)\}\}/g,function(e,t){var n=i[t];return n===o?e:n})},addContent:function(e){var t,n=this,s=i.makeArray(e);i.each(s,function(e,t){var s,a,r,l,c,d={},p={};i.isPlainObject(t)?(d=t,p=t.opts||t):"object"===i.type(t)&&i(t).length?(p=(s=i(t)).data()||{},(p=i.extend(!0,{},p,p.options)).$orig=s,d.src=n.opts.src||p.src||s.attr("href"),d.type||d.src||(d.type="inline",d.src=t)):d={type:"html",src:t+""},d.opts=i.extend(!0,{},n.opts,p),i.isArray(p.buttons)&&(d.opts.buttons=p.buttons),i.fancybox.isMobile&&d.opts.mobile&&(d.opts=h(d.opts,d.opts.mobile)),a=d.type||d.opts.type,l=d.src||"",!a&&l&&((r=l.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",d.opts.video.format||(d.opts.video.format="video/"+("ogv"===r[1]?"ogg":r[1]))):l.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":l.match(/\.(pdf)((\?|#).*)?$/i)?a="iframe":"#"===l.charAt(0)&&(a="inline")),a?d.type=a:n.trigger("objectNeedsType",d),d.contentType||(d.contentType=i.inArray(d.type,["html","inline","ajax"])>-1?"html":d.type),d.index=n.group.length,"auto"==d.opts.smallBtn&&(d.opts.smallBtn=i.inArray(d.type,["html","inline","ajax"])>-1),"auto"===d.opts.toolbar&&(d.opts.toolbar=!d.opts.smallBtn),d.opts.$trigger&&d.index===n.opts.index&&(d.opts.$thumb=d.opts.$trigger.find("img:first"),d.opts.$thumb.length&&(d.opts.$orig=d.opts.$trigger)),d.opts.$thumb&&d.opts.$thumb.length||!d.opts.$orig||(d.opts.$thumb=d.opts.$orig.find("img:first")),"function"===i.type(d.opts.caption)&&(d.opts.caption=d.opts.caption.apply(t,[n,d])),"function"===i.type(n.opts.caption)&&(d.opts.caption=n.opts.caption.apply(t,[n,d])),d.opts.caption instanceof i||(d.opts.caption=d.opts.caption===o?"":d.opts.caption+""),"ajax"===d.type&&((c=l.split(/\s+/,2)).length>1&&(d.src=c.shift(),d.opts.filter=c.shift())),d.opts.modal&&(d.opts=i.extend(!0,d.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),n.group.push(d)}),Object.keys(n.slides).length&&(n.updateControls(),(t=n.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}).on("click.fb","[data-fancybox-zoom]",function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?c(function(){t.update()}):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update()},i.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(e){var o=(i.fancybox?i.fancybox.getInstance():null).current,n=e.keyCode||e.which;if(9!=n)return!o.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||i(e.target).is("input")||i(e.target).is("textarea")?void 0:8===n||27===n?(e.preventDefault(),void t.close(e)):37===n||38===n?(e.preventDefault(),void t.previous()):39===n||40===n?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,n);o.opts.trapFocus&&t.focus(e)}),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=e.setInterval(function(){t.idleSecondsCounter++,t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;a.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var n,s,a,r,l,d,h,u,f=this,m=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(e=parseInt(e,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(e<0||e>=m))return!1;if(n=f.firstRun=!Object.keys(f.slides).length,l=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,r=f.createSlide(e),m>1&&((a||r.index<m-1)&&f.createSlide(e+1),(a||r.index>0)&&f.createSlide(e-1)),f.current=r,f.currIndex=r.index,f.currPos=r.pos,f.trigger("beforeShow",n),f.updateControls(),r.forcedDuration=o,i.isNumeric(t)?r.forcedDuration=t:t=r.opts[n?"animationDuration":"transitionDuration"],t=parseInt(t,10),s=f.isMoved(l),r.$slide.addClass("fancybox-slide--current"),n)return r.opts.animationEffect&&t&&f.$refs.container.css("transition-duration",t+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(r),void f.preload("image");d=i.fancybox.getTranslate(l.$slide),h=i.fancybox.getTranslate(f.$refs.stage),i.each(f.slides,function(e,t){i.fancybox.stop(t.$slide,!0)}),l.pos!==r.pos&&(l.isComplete=!1,l.$slide.removeClass("fancybox-slide--complete fancybox-slide--current")),s?(u=d.left-(l.pos*d.width+l.pos*l.opts.gutter),i.each(f.slides,function(e,o){var n=o.pos*d.width+o.pos*o.opts.gutter;i.fancybox.setTranslate(o.$slide,{top:0,left:n+u-h.left}),o.pos!==r.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>r.pos?"next":"previous")),p(o.$slide),c(function(){i.fancybox.animate(o.$slide,{top:0,left:(o.pos-r.pos)*d.width+(o.pos-r.pos)*o.opts.gutter},t,function(){o.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})})):(r.$slide.parent().children().removeAttr("style"),t&&r.opts.transitionEffect&&i.fancybox.animate(l.$slide,"fancybox-animated fancybox-slide--"+(l.pos>r.pos?"next":"previous")+" fancybox-fx-"+r.opts.transitionEffect,t,null,!1)),r.isLoaded?f.revealContent(r):f.loadSlide(r),f.preload("image")}},createSlide:function(e){var t,o,n=this;return o=(o=e%n.group.length)<0?n.group.length+o:o,!n.slides[e]&&n.group[o]&&(t=i('<div class="fancybox-slide"></div>').appendTo(n.$refs.stage),n.slides[e]=i.extend(!0,{},n.group[o],{pos:e,$slide:t,isLoaded:!1}),n.updateSlide(n.slides[e])),n.slides[e]},scaleToActual:function(e,t,n){var s,a,r,l,c,d=this,p=d.current,h=p.$content,u=i.fancybox.getTranslate(p.$slide).width,f=i.fancybox.getTranslate(p.$slide).height,m=p.width,g=p.height;!d.isAnimating&&h&&"image"==p.type&&p.isLoaded&&!p.hasError&&(i.fancybox.stop(h),d.isAnimating=!0,e=e===o?.5*u:e,t=t===o?.5*f:t,(s=i.fancybox.getTranslate(h)).top-=i.fancybox.getTranslate(p.$slide).top,s.left-=i.fancybox.getTranslate(p.$slide).left,l=m/s.width,c=g/s.height,a=.5*u-.5*m,r=.5*f-.5*g,m>u&&((a=s.left*l-(e*l-e))>0&&(a=0),a<u-m&&(a=u-m)),g>f&&((r=s.top*c-(t*c-t))>0&&(r=0),r<f-g&&(r=f-g)),d.updateCursor(m,g),i.fancybox.animate(h,{top:r,left:a,scaleX:l,scaleY:c},n||330,function(){d.isAnimating=!1}),d.SlideShow&&d.SlideShow.isActive&&d.SlideShow.stop())},scaleToFit:function(e){var t,o=this,n=o.current,s=n.$content;!o.isAnimating&&s&&"image"==n.type&&n.isLoaded&&!n.hasError&&(i.fancybox.stop(s),o.isAnimating=!0,t=o.getFitPos(n),o.updateCursor(t.width,t.height),i.fancybox.animate(s,{top:t.top,left:t.left,scaleX:t.width/s.width(),scaleY:t.height/s.height()},e||330,function(){o.isAnimating=!1}))},getFitPos:function(e){var t,o,n,s,a=e.$content,r=e.$slide,l=e.width||e.opts.width,c=e.height||e.opts.height,d={};return!!(e.isLoaded&&a&&a.length)&&(t=i.fancybox.getTranslate(this.$refs.stage).width,o=i.fancybox.getTranslate(this.$refs.stage).height,t-=parseFloat(r.css("paddingLeft"))+parseFloat(r.css("paddingRight"))+parseFloat(a.css("marginLeft"))+parseFloat(a.css("marginRight")),o-=parseFloat(r.css("paddingTop"))+parseFloat(r.css("paddingBottom"))+parseFloat(a.css("marginTop"))+parseFloat(a.css("marginBottom")),l&&c||(l=t,c=o),(l*=n=Math.min(1,t/l,o/c))>t-.5&&(l=t),(c*=n)>o-.5&&(c=o),"image"===e.type?(d.top=Math.floor(.5*(o-c))+parseFloat(r.css("paddingTop")),d.left=Math.floor(.5*(t-l))+parseFloat(r.css("paddingLeft"))):"video"===e.contentType&&(c>l/(s=e.opts.width&&e.opts.height?l/c:e.opts.ratio||16/9)?c=l/s:l>c*s&&(l=c*s)),d.width=l,d.height=c,d)},update:function(){var e=this;i.each(e.slides,function(t,i){e.updateSlide(i)})},updateSlide:function(e){var t=this,o=e&&e.$content,n=e.width||e.opts.width,s=e.height||e.opts.height,a=e.$slide;o&&(n||s||"video"===e.contentType)&&!e.hasError&&(i.fancybox.stop(o),i.fancybox.setTranslate(o,t.getFitPos(e)),e.pos===t.currPos&&(t.isAnimating=!1,t.updateCursor())),a.length&&(a.trigger("refresh"),t.$refs.toolbar.toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),t.trigger("onUpdate",e)},centerSlide:function(e,t){var n,s,a=this;a.current&&(n=Math.round(e.$slide.width()),s=e.pos-a.current.pos,i.fancybox.animate(e.$slide,{top:0,left:s*n+s*e.opts.gutter,opacity:1},t===o?0:t,function(){e.$slide.siblings().removeAttr("style").removeClass("fancybox-slide--previous fancybox-slide--next"),e.isComplete||a.complete()},!1))},isMoved:function(e){var t,o,n=e||this.current;return!!n&&(o=i.fancybox.getTranslate(this.$refs.stage),t=i.fancybox.getTranslate(n.$slide),(Math.abs(t.top-o.top)>0||Math.abs(t.left-o.left)>0)&&!n.$slide.hasClass("fancybox-animated"))},updateCursor:function(e,t){var o,n=this,s=n.current,a=n.$refs.container;s&&!n.isClosing&&n.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=n.isZoomable(),a.toggleClass("fancybox-is-zoomable",o),i("[data-fancybox-zoom]").prop("disabled",!o),n.canPan(e,t)?a.addClass("fancybox-can-pan"):o&&("zoom"===s.opts.clickContent||i.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?a.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||n.group.length>1)&&"video"!==s.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,i=t.current;if(i&&!t.isClosing&&"image"===i.type&&!i.hasError){if(!i.isLoaded)return!0;if(e=t.getFitPos(i),i.width>e.width||i.height>e.height)return!0}return!1},isScaledDown:function(e,t){var n=!1,s=this.current,a=s.$content;return e!==o&&t!==o?n=e<s.width&&t<s.height:a&&(n=(n=i.fancybox.getTranslate(a)).width<s.width&&n.height<s.height),n},canPan:function(e,t){var n,s,a=!1,r=this.current;return"image"===r.type&&(n=r.$content)&&!r.hasError&&(a=this.getFitPos(r),s=e!==o&&t!==o?{width:e,height:t}:i.fancybox.getTranslate(n),a=Math.abs(s.width-a.width)>1.5||Math.abs(s.height-a.height)>1.5),a},loadSlide:function(e){var t,o,n,s=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===s.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(o=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":s.setImage(e);break;case"iframe":s.setIframe(e);break;case"html":s.setContent(e,e.src||e.content);break;case"video":s.setContent(e,e.opts.video.tpl.replace("{{src}}",e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format));break;case"inline":i(e.src).length?s.setContent(e,i(e.src)):s.setError(e);break;case"ajax":s.showLoading(e),n=i.ajax(i.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,i){"success"===i&&s.setContent(e,t)},error:function(t,i){t&&"abort"!==i&&s.setError(e)}})),o.one("onReset",function(){n.abort()});break;default:s.setError(e)}return!0}},setImage:function(t){var o,n,s,a,r,l=this,d=t.opts.srcset||t.opts.image.srcset;if(c(function(){c(function(){var e=t.$image;l.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||l.showLoading(t)})}),d){a=e.devicePixelRatio||1,r=e.innerWidth*a,(s=d.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,i){var o=parseInt(e.substring(0,e.length-1),10);return 0===i?t.url=e:void(o&&(t.value=o,t.postfix=e[e.length-1]))}),t})).sort(function(e,t){return e.value-t.value});for(var p=0;p<s.length;p++){var h=s[p];if("w"===h.postfix&&h.value>=r||"x"===h.postfix&&h.value>=a){n=h;break}}!n&&s.length&&(n=s[s.length-1]),n&&(t.src=n.url,t.width&&t.height&&"w"==n.postfix&&(t.height=t.width/t.height*n.value,t.width=n.value),t.opts.srcset=d)}t.$content=i('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),o=t.opts.thumb||!(!t.opts.$thumb||!t.opts.$thumb.length)&&t.opts.$thumb.attr("src"),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&o&&(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=i("<img />").one("error",function(){i(this).remove(),t.$ghost=null}).one("load",function(){l.afterLoad(t)}).addClass("fancybox-image").appendTo(t.$content).attr("src",o)),l.setBigImage(t)},setBigImage:function(e){var t=this,o=i("<img />");e.$image=o.one("error",function(){t.setError(e)}).one("load",function(){var i;e.$ghost||(t.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),t.afterLoad(e)),t.isClosing||(e.opts.srcset&&((i=e.opts.sizes)&&"auto"!==i||(i=(e.width/e.height>1&&a.width()/a.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),o.attr("sizes",i).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!t.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),t.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(o[0].complete||"complete"==o[0].readyState)&&o[0].naturalWidth&&o[0].naturalHeight?o.trigger("load"):o[0].error&&o.trigger("error")},resolveImageSlideSize:function(e,t,i){var o=parseInt(e.opts.width,10),n=parseInt(e.opts.height,10);e.width=t,e.height=i,o>0&&(e.width=o,e.height=Math.floor(o*i/t)),n>0&&(e.width=Math.floor(n*t/i),e.height=n)},setIframe:function(e){var t,n=this,s=e.opts.iframe,a=e.$slide;e.$content=i('<div class="fancybox-content'+(s.preload?" fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(a),a.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=i(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(e.$content),s.preload?(n.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),n.afterLoad(e)}),a.on("refresh.fb",function(){var i,n=e.$content,r=s.css.width,l=s.css.height;if(1===t[0].isReady){try{i=t.contents().find("body")}catch(e){}i&&i.length&&i.children().length&&(a.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),r===o&&(r=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),n.css("width",r||"").css("max-width",""),l===o&&(l=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),n.css("height",l||""),a.css("overflow","auto")),n.removeClass("fancybox-is-hidden")}})):this.afterLoad(e),t.attr("src",e.src),a.one("onReset",function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}i(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1})},setContent:function(e,t){this.isClosing||(this.hideLoading(e),e.$content&&i.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof i}(t)&&t.parent().length?(t.hasClass("fancybox-content")&&t.parent(".fancybox-slide--html").trigger("onReset"),e.$placeholder=i("<div>").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===i.type(t)&&(t=i("<div>").append(i.trim(t)).contents()),e.opts.filter&&(t=i("<div>").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){i(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(i(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),i(t).appendTo(e.$slide),i(t).is("video,audio")&&(i(t).addClass("fancybox-video"),i(t).wrap("<div></div>"),e.contentType="video",e.opts.width=e.opts.width||i(t).attr("width"),e.opts.height=e.opts.height||i(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("<div></div>").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),this.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=i(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn())},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),e.pos===t.currPos&&t.updateCursor(),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=i(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&i('<div class="fancybox-spaceball"></div>').appendTo(e.$content)),t.revealContent(e))},revealContent:function(e){var t,n,s,a,r=this,l=e.$slide,c=!1,d=!1,p=r.isMoved(e),h=e.isRevealed;return e.isRevealed=!0,t=e.opts[r.firstRun?"animationEffect":"transitionEffect"],s=e.opts[r.firstRun?"animationDuration":"transitionDuration"],s=parseInt(e.forcedDuration===o?s:e.forcedDuration,10),e.pos===r.currPos&&(e.isComplete||(r.isAnimating=!0)),!p&&e.pos===r.currPos&&s||(t=!1),"zoom"===t&&(e.pos===r.currPos&&s&&"image"===e.type&&!e.hasError&&(d=r.getThumbPos(e))?c=r.getFitPos(e):t="fade"),"zoom"===t?(c.scaleX=c.width/d.width,c.scaleY=c.height/d.height,"auto"==(a=e.opts.zoomOpacity)&&(a=Math.abs(e.width/e.height-d.width/d.height)>.1),a&&(d.opacity=.1,c.opacity=1),i.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),d),void i.fancybox.animate(e.$content,c,s,function(){r.isAnimating=!1,r.complete()})):(r.updateSlide(e),t?(i.fancybox.stop(l),n="fancybox-animated fancybox-slide--"+(e.pos>=r.prevPos?"next":"previous")+" fancybox-fx-"+t,l.removeClass("fancybox-slide--current").addClass(n),e.$content.removeClass("fancybox-is-hidden"),l.hide().show(0),void i.fancybox.animate(l,"fancybox-slide--current",s,function(){l.removeClass(n).removeAttr("style"),e.pos===r.currPos&&r.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),void(h||!p||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"))))},getThumbPos:function(e){var i,o=!1,n=e.opts.$thumb,s=n&&n.length&&n[0].ownerDocument===t?n.offset():0;return s&&u(n)>=10&&(i=this.$refs.stage.offset(),o={top:s.top-i.top+parseFloat(n.css("border-top-width")||0),left:s.left-i.left+parseFloat(n.css("border-left-width")||0),width:n.width(),height:n.height(),scaleX:1,scaleY:1}),o},complete:function(){var e,t=this,o=t.current,n={};!t.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),t.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),i.each(t.slides,function(e,o){o.pos>=t.currPos-1&&o.pos<=t.currPos+1?n[o.pos]=o:o&&(i.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=n),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").on("ended",i.proxy(t.next,t)),o.opts.autoFocus&&"html"===o.contentType&&((e=o.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t=this,i=t.slides[t.currPos+1],o=t.slides[t.currPos-1];o&&o.type===e&&t.loadSlide(o),i&&i.type===e&&t.loadSlide(i)},focus:function(e,o){var n,s,a=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((n=(n=!e&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(r).filter(function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasClass("disabled")})).length?(s=n.index(t.activeElement),e&&e.shiftKey?(s<0||0==s)&&(e.preventDefault(),n.eq(n.length-1).trigger("focus")):(s<0||s==n.length-1)&&(e&&e.preventDefault(),n.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;i(".fancybox-container").each(function(){var t=i(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var o,n,s,a,r,l,h,u=this,f=u.current,m=function(){u.cleanUp(e)};return!(u.isClosing||(u.isClosing=!0,!1===u.trigger("beforeClose",e)?(u.isClosing=!1,c(function(){u.update()}),1):(u.removeEvents(),s=f.$content,o=f.opts.animationEffect,n=i.isNumeric(t)?t:o?f.opts.animationDuration:0,f.$slide.off(d).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),f.$slide.siblings().trigger("onReset").remove(),n&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),u.hideLoading(f),u.hideControls(),u.updateCursor(),"zoom"!==o||!0!==e&&s&&n&&"image"===f.type&&!f.hasError&&(h=u.getThumbPos(f))||(o="fade"),"zoom"===o?(i.fancybox.stop(s),a=i.fancybox.getTranslate(s),l={top:a.top,left:a.left,scaleX:a.width/h.width,scaleY:a.height/h.height,width:h.width,height:h.height},r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-h.width/h.height)>.1),r&&(h.opacity=0),i.fancybox.setTranslate(s,l),p(s),i.fancybox.animate(s,h,n,m),0):(o&&n?!0===e?setTimeout(m,n):i.fancybox.animate(f.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,n,m):m(),0))))},cleanUp:function(t){var o,n,s,a=this,r=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=a.$trigger),r&&r.length&&(n=e.scrollX,s=e.scrollY,r.trigger("focus"),i("html, body").scrollTop(s).scrollLeft(n))),a.current=null,(o=i.fancybox.getInstance())?o.activate():(i("body").removeClass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(e,t){var o,n=Array.prototype.slice.call(arguments,1),s=this,a=t&&t.opts?t:s.current;return a?n.unshift(a):a=s,n.unshift(s),i.isFunction(a.opts[e])&&(o=a.opts[e].apply(a,n)),!1===o?o:void("afterClose"!==e&&s.$refs?s.$refs.container.trigger(e+".fb",n):r.trigger(e+".fb",n))},updateControls:function(){var e=this,o=e.current,n=o.index,s=o.opts.caption,a=e.$refs.container,r=e.$refs.caption;o.$slide.trigger("refresh"),e.$caption=s&&s.length?r.html(s):null,e.isHiddenControls||e.isIdle||e.showControls(),a.find("[data-fancybox-count]").html(e.group.length),a.find("[data-fancybox-index]").html(n+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&n<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&n>=e.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,i=e.$refs.container;e.isHiddenControls=!1,e.idleSecondsCounter=0,i.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),i.fancybox={version:"3.4.2",defaults:s,getInstance:function(e){var t=i('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return t instanceof f&&("string"===i.type(e)?t[e].apply(t,o):"function"===i.type(e)&&e.apply(t,o),t)},open:function(e,t,i){return new f(e,t,i)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var i=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(i)&&e.getComputedStyle(i).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var i="",n={};if(e&&t)return t.left===o&&t.top===o||(i=(t.left===o?e.position().left:t.left)+"px, "+(t.top===o?e.position().top:t.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),t.scaleX!==o&&t.scaleY!==o?i+=" scale("+t.scaleX+", "+t.scaleY+")":t.scaleX!==o&&(i+=" scaleX("+t.scaleX+")"),i.length&&(n.transform=i),t.opacity!==o&&(n.opacity=t.opacity),t.width!==o&&(n.width=t.width),t.height!==o&&(n.height=t.height),e.css(n)},animate:function(e,t,n,s,a){var r,l=this,c=!1;i.isFunction(n)&&(s=n,n=null),i.isPlainObject(t)||e.removeAttr("style"),l.stop(e),e.on(d,function(o){(!o||!o.originalEvent||e.is(o.originalEvent.target)&&"z-index"!=o.originalEvent.propertyName)&&(l.stop(e),c&&l.setTranslate(e,c),i.isNumeric(n)&&e.css("transition-duration",""),i.isPlainObject(t)?!1===a&&e.removeAttr("style"):!0!==a&&e.removeClass(t),i.isFunction(s)&&s(o))}),i.isNumeric(n)&&e.css("transition-duration",n+"ms"),i.isPlainObject(t)?(t.scaleX!==o&&t.scaleY!==o&&(r=i.fancybox.getTranslate(e),c=i.extend({},t,{width:r.width*t.scaleX,height:r.height*t.scaleY,scaleX:1,scaleY:1}),delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),i.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger("transitionend")},n+16))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(d),e.off(d).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},i.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?i("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},n):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},n),this},r.on("click.fb-start","[data-fancybox]",n),r.on("click.fb-start","[data-fancybox-trigger]",function(e){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})}),function(){var e=".fancybox-button",t="fancybox-focus",o=null;r.on("mousedown mouseup focus blur",e,function(n){switch(n.type){case"mousedown":o=i(this);break;case"mouseup":o=null;break;case"focusin":i(e).removeClass(t),i(this).is(o)||i(this).is("[disabled]")||i(this).addClass(t);break;case"focusout":i(e).removeClass(t)}})}()}}(window,document,jQuery),function(e){"use strict";var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube-nocookie.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},i=function(t,i,o){if(t)return o=o||"","object"===e.type(o)&&(o=e.param(o,!0)),e.each(i,function(e,i){t=t.replace("$"+e,i||"")}),o.length&&(t+=(t.indexOf("?")>0?"&":"?")+o),t};e(document).on("objectNeedsType.fb",function(o,n,s){var a,r,l,c,d,p,h,u=s.src||"",f=!1;a=e.extend(!0,{},t,s.opts.media),e.each(a,function(t,o){if(l=u.match(o.matcher)){if(f=o.type,h=t,p={},o.paramPlace&&l[o.paramPlace]){"?"==(d=l[o.paramPlace])[0]&&(d=d.substring(1)),d=d.split("&");for(var n=0;n<d.length;++n){var a=d[n].split("=",2);2==a.length&&(p[a[0]]=decodeURIComponent(a[1].replace(/\+/g," ")))}}return c=e.extend(!0,{},o.params,s.opts[t],p),u="function"===e.type(o.url)?o.url.call(this,l,c,s):i(o.url,l,c),r="function"===e.type(o.thumb)?o.thumb.call(this,l,c,s):i(o.thumb,l),"youtube"===t?u=u.replace(/&t=((\d+)m)?(\d+)s/,function(e,t,i,o){return"&start="+((i?60*parseInt(i,10):0)+parseInt(o,10))}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),f?(s.opts.thumb||s.opts.$thumb&&s.opts.$thumb.length||(s.opts.thumb=r),"iframe"===f&&(s.opts=e.extend(!0,s.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),e.extend(s,{type:f,src:u,origSrc:s.src,contentSource:h,contentType:"image"===f?"image":"gmap_place"==h||"gmap_search"==h?"map":"video"})):u&&(s.type=s.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(e){var t,i=this;return this[e].loaded?void setTimeout(function(){i.done(e)}):void(this[e].loading||(this[e].loading=!0,t=document.createElement("script"),t.type="text/javascript",t.src=this[e].src,"youtube"===e?window.onYouTubeIframeAPIReady=function(){i[e].loaded=!0,i.done(e)}:t.onload=function(){i[e].loaded=!0,i.done(e)},document.body.appendChild(t)))},done:function(t){var i,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(i=e.fancybox.getInstance())&&(o=i.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(e){0==e.data&&i.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){i.next()}))}};e(document).on({"afterShow.fb":function(e,t,i){t.group.length>1&&("youtube"===i.contentSource||"vimeo"===i.contentSource)&&o.load(i.contentSource)}})}(jQuery),function(e,t,i){"use strict";var o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},s=function(t){var i=[];for(var o in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?i.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&i.push({x:t[o].clientX,y:t[o].clientY});return i},a=function(e,t,i){return t&&e?"x"===i?e.x-t.x:"y"===i?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},r=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio')||i.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,o=e[0].attributes,n=o.length;t<n;t++)if("data-fancybox-"===o[t].nodeName.substr(0,14))return!0;return!1},l=function(t){var i=e.getComputedStyle(t)["overflow-y"],o=e.getComputedStyle(t)["overflow-x"],n=("scroll"===i||"auto"===i)&&t.scrollHeight>t.clientHeight,s=("scroll"===o||"auto"===o)&&t.scrollWidth>t.clientWidth;return n||s},c=function(e){for(var t=!1;!(t=l(e.get(0)))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},d=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(t,"ontouchstart"))};d.prototype.destroy=function(){this.$container.off(".fb.touch")},d.prototype.ontouchstart=function(o){var n=this,l=i(o.target),d=n.instance,p=d.current,h=p.$slide,u=p.$content,f="touchstart"==o.type;if(f&&n.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&h.length&&l.length&&!r(l)&&!r(l.parent())&&(l.is("img")||!(o.originalEvent.clientX>l[0].clientWidth+l.offset().left))){if(!p||d.isAnimating||d.isClosing)return o.stopPropagation(),void o.preventDefault();if(n.realPoints=n.startPoints=s(o),n.startPoints.length){if(p.touch&&o.stopPropagation(),n.startEvent=o,n.canTap=!p.$slide.hasClass("fancybox-animated"),n.$target=l,n.$content=u,n.opts=p.opts.touch,n.isPanning=!1,n.isSwiping=!1,n.isZooming=!1,n.isScrolling=!1,n.canPan=d.canPan(),n.startTime=(new Date).getTime(),n.distanceX=n.distanceY=n.distance=0,n.canvasWidth=Math.round(h[0].clientWidth),n.canvasHeight=Math.round(h[0].clientHeight),n.contentLastPos=null,n.contentStartPos=i.fancybox.getTranslate(n.$content)||{top:0,left:0},n.sliderStartPos=n.sliderLastPos||i.fancybox.getTranslate(h),n.stagePos=i.fancybox.getTranslate(d.$refs.stage),n.sliderStartPos.top-=n.stagePos.top,n.sliderStartPos.left-=n.stagePos.left,n.contentStartPos.top-=n.stagePos.top,n.contentStartPos.left-=n.stagePos.left,i(t).off(".fb.touch").on(f?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(n,"ontouchend")).on(f?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(n,"ontouchmove")),i.fancybox.isMobile&&t.addEventListener("scroll",n.onscroll,!0),!n.opts&&!n.canPan||!l.is(n.$stage)&&!n.$stage.find(l).length)return void(l.is(".fancybox-image")&&o.preventDefault());n.isScrollable=c(l)||c(l.parent()),i.fancybox.isMobile&&n.isScrollable||o.preventDefault(),(1===n.startPoints.length||p.hasError)&&(n.canPan?(i.fancybox.stop(n.$content),n.isPanning=!0):n.isSwiping=!0,n.$container.addClass("fancybox-is-grabbing")),2===n.startPoints.length&&"image"===p.type&&(p.isLoaded||p.$ghost)&&(n.canTap=!1,n.isSwiping=!1,n.isPanning=!1,n.isZooming=!0,i.fancybox.stop(n.$content),n.centerPointStartX=.5*(n.startPoints[0].x+n.startPoints[1].x)-i(e).scrollLeft(),n.centerPointStartY=.5*(n.startPoints[0].y+n.startPoints[1].y)-i(e).scrollTop(),n.percentageOfImageAtPinchPointX=(n.centerPointStartX-n.contentStartPos.left)/n.contentStartPos.width,n.percentageOfImageAtPinchPointY=(n.centerPointStartY-n.contentStartPos.top)/n.contentStartPos.height,n.startDistanceBetweenFingers=a(n.startPoints[0],n.startPoints[1]))}}},d.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},d.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=s(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=a(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=a(t.newPoints[0],t.startPoints[0],"y"),t.distance=a(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},d.prototype.onSwipe=function(t){var s,a=this,r=a.instance,l=a.isSwiping,c=a.sliderStartPos.left||0;if(!0!==l)"x"==l&&(a.distanceX>0&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?c+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?c-=Math.pow(-a.distanceX,.8):c+=a.distanceX),a.sliderLastPos={top:"x"==l?0:a.sliderStartPos.top+a.distanceY,left:c},a.requestId&&(n(a.requestId),a.requestId=null),a.requestId=o(function(){a.sliderLastPos&&(i.each(a.instance.slides,function(e,t){var o=t.pos-a.instance.currPos;i.fancybox.setTranslate(t.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*t.opts.gutter})}),a.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(a.distance)>10){if(a.canTap=!1,r.group.length<2&&a.opts.vertical?a.isSwiping="y":r.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&i(e).width()>800?a.isSwiping="x":(s=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=s>45&&s<135?"y":"x"),"y"===a.isSwiping&&i.fancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);r.isDragging=a.isSwiping,a.startPoints=a.newPoints,i.each(r.slides,function(e,t){var o,n;i.fancybox.stop(t.$slide),o=i.fancybox.getTranslate(t.$slide),n=i.fancybox.getTranslate(r.$refs.stage),t.$slide.removeAttr("style").removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===r.current.pos&&(a.sliderStartPos.left=o.left-n.left),i.fancybox.setTranslate(t.$slide,{top:o.top-n.top,left:o.left-n.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var e=this;return a(e.newPoints[0],e.realPoints[0])<(i.fancybox.isMobile?10:5)?void(e.startPoints=e.newPoints):(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&(n(e.requestId),e.requestId=null),void(e.requestId=o(function(){i.fancybox.setTranslate(e.$content,e.contentLastPos)})))},d.prototype.limitMovement=function(){var e,t,i,o,n,s,a=this,r=a.canvasWidth,l=a.canvasHeight,c=a.distanceX,d=a.distanceY,p=a.contentStartPos,h=p.left,u=p.top,f=p.width,m=p.height;return n=f>r?h+c:h,s=u+d,e=Math.max(0,.5*r-.5*f),t=Math.max(0,.5*l-.5*m),i=Math.min(r-f,.5*r-.5*f),o=Math.min(l-m,.5*l-.5*m),c>0&&n>e&&(n=e-1+Math.pow(-e+h+c,.8)||0),c<0&&n<i&&(n=i+1-Math.pow(i-h-c,.8)||0),d>0&&s>t&&(s=t-1+Math.pow(-t+u+d,.8)||0),d<0&&s<o&&(s=o+1-Math.pow(o-u-d,.8)||0),{top:s,left:n}},d.prototype.limitPosition=function(e,t,i,o){var n=this.canvasWidth,s=this.canvasHeight;return i>n?e=(e=e>0?0:e)<n-i?n-i:e:e=Math.max(0,n/2-i/2),o>s?t=(t=t>0?0:t)<s-o?s-o:t:t=Math.max(0,s/2-o/2),{top:t,left:e}},d.prototype.onZoom=function(){var t=this,s=t.contentStartPos,r=s.width,l=s.height,c=s.left,d=s.top,p=a(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,h=Math.floor(r*p),u=Math.floor(l*p),f=(r-h)*t.percentageOfImageAtPinchPointX,m=(l-u)*t.percentageOfImageAtPinchPointY,g=(t.newPoints[0].x+t.newPoints[1].x)/2-i(e).scrollLeft(),v=(t.newPoints[0].y+t.newPoints[1].y)/2-i(e).scrollTop(),b=g-t.centerPointStartX,y={top:d+(m+(v-t.centerPointStartY)),left:c+(f+b),scaleX:p,scaleY:p};t.canTap=!1,t.newWidth=h,t.newHeight=u,t.contentLastPos=y,t.requestId&&(n(t.requestId),t.requestId=null),t.requestId=o(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.ontouchend=function(e){var o=this,a=o.isSwiping,r=o.isPanning,l=o.isZooming,c=o.isScrolling;return o.endPoints=s(e),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),i(t).off(".fb.touch"),t.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(n(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap?o.onTap(e):(o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,void(r?o.endPanning():l?o.endZooming():o.endSwiping(a,c)))},d.prototype.endSwiping=function(e,t){var o=this,n=!1,s=o.instance.group.length,a=Math.abs(o.velocityX),r=Math.abs(o.distanceX),l="x"==e&&s>1&&(o.dMs>130&&r>10||r>50),c=Math.abs(a*o.canvasWidth/o.canvasWidth)>.8?366:500;o.sliderLastPos=null,"y"==e&&!t&&Math.abs(o.distanceY)>50?(i.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,200)):l&&o.distanceX>0?n=o.instance.previous(c):l&&o.distanceX<0&&(n=o.instance.next(c)),!1!==n||"x"!=e&&"y"!=e||o.instance.centerSlide(o.instance.current,150),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var e,t,o,n=this;n.contentLastPos&&(!1===n.opts.momentum||n.dMs>350?(e=n.contentLastPos.left,t=n.contentLastPos.top):(e=n.contentLastPos.left+500*n.velocityX,t=n.contentLastPos.top+500*n.velocityY),(o=n.limitPosition(e,t,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,o.height=n.contentStartPos.height,i.fancybox.animate(n.$content,o,330))},d.prototype.endZooming=function(){var e,t,o,n,s=this,a=s.instance.current,r=s.newWidth,l=s.newHeight;s.contentLastPos&&(e=s.contentLastPos.left,n={top:t=s.contentLastPos.top,left:e,width:r,height:l,scaleX:1,scaleY:1},i.fancybox.setTranslate(s.$content,n),r<s.canvasWidth&&l<s.canvasHeight?s.instance.scaleToFit(150):r>a.width||l>a.height?s.instance.scaleToActual(s.centerPointStartX,s.centerPointStartY,150):(o=s.limitPosition(e,t,r,l),i.fancybox.setTranslate(s.$content,i.fancybox.getTranslate(s.$content)),i.fancybox.animate(s.$content,o,150)))},d.prototype.onTap=function(t){var o,n=this,a=i(t.target),r=n.instance,l=r.current,c=t&&s(t)||n.startPoints,d=c[0]?c[0].x-i(e).scrollLeft()-n.stagePos.left:0,p=c[0]?c[0].y-i(e).scrollTop()-n.stagePos.top:0,h=function(e){var o=l.opts[e];if(i.isFunction(o)&&(o=o.apply(r,[l,t])),o)switch(o){case"close":r.close(n.startEvent);break;case"toggleControls":r.toggleControls(!0);break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(n.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,p):r.group.length<2&&r.close(n.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(a.is("img")||!(d>a[0].clientWidth+a.offset().left))){if(a.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(a.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,Math.abs(d-n.tapX)>50||Math.abs(p-n.tapY)>50)return this;h("dblclick"+o)}else n.tapX=d,n.tapY=p,l.opts["dblclick"+o]&&l.opts["dblclick"+o]!==l.opts["click"+o]?n.tapped=setTimeout(function(){n.tapped=null,h("click"+o)},500):h("click"+o);return this}},i(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new d(t))})}(window,document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var i=function(e){this.instance=e,this.init()};t.extend(i.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,i=e.instance,o=i.group[i.currIndex].opts.slideShow;e.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),i.group.length<2||!o?e.$button.hide():o.progress&&(e.$progress=t('<div class="fancybox-progress"></div>').appendTo(i.$refs.inner))},set:function(e){var i=this,o=i.instance,n=o.current;n&&(!0===e||n.opts.loop||o.currIndex<o.group.length-1)?i.isActive&&"video"!==n.contentType&&(i.$progress&&t.fancybox.animate(i.$progress.show(),{scaleX:1},n.opts.slideShow.speed),i.timer=setTimeout(function(){o.jumpTo((o.currIndex+1)%o.group.length)},n.opts.slideShow.speed)):(i.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var e=this;clearTimeout(e.timer),e.timer=null,e.$progress&&e.$progress.removeAttr("style").hide()},start:function(){var e=this,t=e.instance.current;t&&(e.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),e.isActive=!0,t.isComplete&&e.set(!0),e.instance.trigger("onSlideShowChange",!0))},stop:function(){var e=this,t=e.instance.current;e.clear(),e.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),e.isActive=!1,e.instance.trigger("onSlideShowChange",!1),e.$progress&&e.$progress.removeAttr("style").hide()},toggle:function(){var e=this;e.isActive?e.stop():e.start()}}),t(e).on({"onInit.fb":function(e,t){t&&!t.SlideShow&&(t.SlideShow=new i(t))},"beforeShow.fb":function(e,t,i,o){var n=t&&t.SlideShow;o?n&&i.opts.slideShow.autoStart&&n.start():n&&n.isActive&&n.clear()},"afterShow.fb":function(e,t,i){var o=t&&t.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(i,o,n,s,a){var r=o&&o.SlideShow;!r||!n.opts.slideShow||80!==a&&32!==a||t(e.activeElement).is("button,a,input")||(s.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(e,t){var i=t&&t.SlideShow;i&&i.stop()}}),t(e).on("visibilitychange",function(){var i=t.fancybox.getInstance(),o=i&&i.SlideShow;o&&o.isActive&&(e.hidden?o.clear():o.set())})}(document,jQuery),function(e,t){"use strict";var i=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in e){for(var s=0;s<n.length;s++)i[t[0][s]]=n[s];return i}}return!1}();if(i){var o={request:function(t){(t=t||e.documentElement)[i.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){e[i.exitFullscreen]()},toggle:function(t){t=t||e.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(e[i.fullscreenElement])},enabled:function(){return Boolean(e[i.fullscreenEnabled])}};t.extend(!0,t.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),t(e).on(i.fullscreenchange,function(){var e=o.isFullscreen(),i=t.fancybox.getInstance();i&&(i.current&&"image"===i.current.type&&i.isAnimating&&(i.current.$content.css("transition","none"),i.isAnimating=!1,i.update(!0,!0,0)),i.trigger("onFullscreenChange",e),i.$refs.container.toggleClass("fancybox-is-fullscreen",e),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}t(e).on({"onInit.fb":function(e,t){var n;return i?void(t&&t.group[t.currIndex].opts.fullScreen?(n=t.$refs.container,n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),o.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&o.request(),t.FullScreen=o):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()):void t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,i,o,n){t&&t.FullScreen&&70===n&&(o.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(e,t){"use strict";var i="fancybox-thumbs",o=i+"-active";t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var n=function(e){this.init(e)};t.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t,i,o=this;o.instance=e,e.Thumbs=o,o.opts=e.group[e.currIndex].opts.thumbs,t=(t=e.group[0]).opts.thumb||!(!t.opts.$thumb||!t.opts.$thumb.length)&&t.opts.$thumb.attr("src"),e.group.length>1&&(i=(i=e.group[1]).opts.thumb||!(!i.opts.$thumb||!i.opts.$thumb.length)&&i.opts.$thumb.attr("src")),o.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]"),o.opts&&t&&i?(o.$button.show().on("click",function(){o.toggle()}),o.isActive=!0):o.$button.hide()},create:function(){var e,o=this,n=o.instance,s=o.opts.parentEl,a=[];o.$grid||(o.$grid=t('<div class="'+i+" "+i+"-"+o.opts.axis+'"></div>').appendTo(n.$refs.container.find(s).addBack().filter(s)),o.$grid.on("click","a",function(){n.jumpTo(t(this).attr("data-index"))})),o.$list||(o.$list=t('<div class="'+i+'__list">').appendTo(o.$grid)),t.each(n.group,function(t,i){(e=i.opts.thumb||(i.opts.$thumb?i.opts.$thumb.attr("src"):null))||"image"!==i.type||(e=i.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(e&&e.length?' style="background-image:url('+e+')"':"")+"></a>")}),o.$list[0].innerHTML=a.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+n.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,i,n=this,s=n.$list,a=n.$grid;n.instance.current&&(i=(t=s.children().removeClass(o).filter('[data-index="'+n.instance.current.index+'"]').addClass(o)).position(),"y"===n.opts.axis&&(i.top<0||i.top>s.height()-t.outerHeight())?s.stop().animate({scrollTop:s.scrollTop()+i.top},e):"x"===n.opts.axis&&(i.left<a.scrollLeft()||i.left>a.scrollLeft()+(a.width()-t.outerWidth()))&&s.parent().stop().animate({scrollLeft:i.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var i;t&&!t.Thumbs&&((i=new n(t)).isActive&&!0===i.opts.autoStart&&i.show())},"beforeShow.fb":function(e,t,i,o){var n=t&&t.Thumbs;n&&n.isVisible&&n.focus(o?0:250)},"afterKeydown.fb":function(e,t,i,o,n){var s=t&&t.Thumbs;s&&s.isActive&&71===n&&(o.preventDefault(),s.toggle())},"beforeClose.fb":function(e,t){var i=t&&t.Thumbs;i&&i.isVisible&&!1!==i.opts.hideOnClose&&i.$grid.hide()}})}(document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),t(e).on("click","[data-fancybox-share]",function(){var e,i,o=t.fancybox.getInstance(),n=o.current||null;n&&("function"===t.type(n.opts.share.url)&&(e=n.opts.share.url.apply(n,[o,n])),i=n.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===n.type?encodeURIComponent(n.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,o.$caption?encodeURIComponent(o.$caption.text()):""),t.fancybox.open({src:o.translate(o,i),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){o.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(e,t,i){"use strict";function o(){var t=e.location.hash.substr(1),i=t.split("-"),o=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseInt(i.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:i.join("-")}}function n(e){""!==e.gallery&&i("[data-fancybox='"+i.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function s(e){var t,i;return!!e&&(""!==(i=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&i)}i.escapeSelector||(i.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),i(function(){!1!==i.fancybox.defaults.hash&&(i(t).on({"onInit.fb":function(e,t){var i,n;!1!==t.group[t.currIndex].opts.hash&&(i=o(),(n=s(t))&&i.gallery&&n==i.gallery&&(t.currIndex=i.index-1))},"beforeShow.fb":function(i,o,n,a){var r;n&&!1!==n.opts.hash&&((r=s(o))&&(o.currentHash=r+(o.group.length>1?"-"+(n.index+1):""),e.location.hash!=="#"+o.currentHash&&(a&&!o.origHash&&(o.origHash=e.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[a?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+o.currentHash),a&&(o.hasCreatedHistory=!0)):e.location.hash=o.currentHash,o.hashTimer=null},300))))},"beforeClose.fb":function(i,o,n){!1!==n.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?e.history.back():o.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(o.origHash||"")):e.location.hash=o.origHash),o.currentHash=null)}}),i(e).on("hashchange.fb",function(){var e=o(),t=null;i.each(i(".fancybox-container").get().reverse(),function(e,o){var n=i(o).data("FancyBox");if(n&&n.currentHash)return t=n,!1}),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&n(e)}),setTimeout(function(){i.fancybox.getInstance()||n(o())},50))})}(window,document,jQuery),function(e,t){"use strict";var i=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,o){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var o=t.current,n=(new Date).getTime();t.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(e.preventDefault(),e.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,n-i<250||(i=n,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){var t,i,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var a=o.length;a;)e.event.fixHooks[o[--a]]=e.event.mouseHooks;var r=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=n.length;t;)this.addEventListener(n[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",r.getLineHeight(this)),e.data(this,"mousewheel-page-height",r.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=n.length;t;)this.removeEventListener(n[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),o=i["offsetParent"in e.fn?"offsetParent":"parent"]();return o.length||(o=e("body")),parseInt(o.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(o){var n,a=o||window.event,l=s.call(arguments,1),p=0,h=0,u=0,f=0,m=0;if((o=e.event.fix(a)).type="mousewheel","detail"in a&&(u=-1*a.detail),"wheelDelta"in a&&(u=a.wheelDelta),"wheelDeltaY"in a&&(u=a.wheelDeltaY),"wheelDeltaX"in a&&(h=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(h=-1*u,u=0),p=0===u?h:u,"deltaY"in a&&(p=u=-1*a.deltaY),"deltaX"in a&&(h=a.deltaX,0===u&&(p=-1*h)),0!==u||0!==h){if(1===a.deltaMode){var g=e.data(this,"mousewheel-line-height");p*=g,u*=g,h*=g}else if(2===a.deltaMode){var v=e.data(this,"mousewheel-page-height");p*=v,u*=v,h*=v}if(n=Math.max(Math.abs(u),Math.abs(h)),(!i||n<i)&&(i=n,d(a,n)&&(i/=40)),d(a,n)&&(p/=40,h/=40,u/=40),p=Math[p>=1?"floor":"ceil"](p/i),h=Math[h>=1?"floor":"ceil"](h/i),u=Math[u>=1?"floor":"ceil"](u/i),r.settings.normalizeOffset&&this.getBoundingClientRect){var b=this.getBoundingClientRect();f=o.clientX-b.left,m=o.clientY-b.top}return o.deltaX=h,o.deltaY=u,o.deltaFactor=i,o.offsetX=f,o.offsetY=m,o.deltaMode=0,l.unshift(o,p,h,u),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function c(){i=null}function d(e,t){return r.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"use strict";window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}),e.support=e.support||{},e.extend(e.support,{touch:"ontouchend"in document});var t=function(){return!1},i=function(t,i){return this.settings=i,this.el=t,this.$el=e(t),this._initElements(),this};i.DATA_KEY="kinetic",i.DEFAULTS={cursor:"move",decelerate:!0,triggerHardware:!1,threshold:0,y:!0,x:!0,slowdown:.9,maxvelocity:40,throttleFPS:60,movingClass:{up:"kinetic-moving-up",down:"kinetic-moving-down",left:"kinetic-moving-left",right:"kinetic-moving-right"},deceleratingClass:{up:"kinetic-decelerating-up",down:"kinetic-decelerating-down",left:"kinetic-decelerating-left",right:"kinetic-decelerating-right"}},i.prototype.start=function(t){this.settings=e.extend(this.settings,t),this.velocity=t.velocity||this.velocity,this.velocityY=t.velocityY||this.velocityY,this.settings.decelerate=!1,this._move()},i.prototype.end=function(){this.settings.decelerate=!0},i.prototype.stop=function(){this.velocity=0,this.velocityY=0,this.settings.decelerate=!0,e.isFunction(this.settings.stopped)&&this.settings.stopped.call(this)},i.prototype.detach=function(){this._detachListeners(),this.$el.removeClass("kinetic-active").css("cursor","")},i.prototype.attach=function(){this.$el.hasClass("kinetic-active")||(this._attachListeners(this.$el),this.$el.addClass("kinetic-active").css("cursor",this.settings.cursor))},i.prototype._initElements=function(){this.$el.addClass("kinetic-active"),e.extend(this,{xpos:null,prevXPos:!1,ypos:null,prevYPos:!1,mouseDown:!1,throttleTimeout:1e3/this.settings.throttleFPS,lastMove:null,elementFocused:null}),this.velocity=0,this.velocityY=0,e(document).mouseup(e.proxy(this._resetMouse,this)).click(e.proxy(this._resetMouse,this)),this._initEvents(),this.$el.css("cursor",this.settings.cursor),this.settings.triggerHardware&&this.$el.css({"-webkit-transform":"translate3d(0,0,0)","-webkit-perspective":"1000","-webkit-backface-visibility":"hidden"})},i.prototype._initEvents=function(){var t=this;this.settings.events={touchStart:function(e){var i;t._useTarget(e.target,e)&&(i=e.originalEvent.touches[0],t.threshold=t._threshold(e.target,e),t._start(i.clientX,i.clientY),e.stopPropagation())},touchMove:function(e){var i;t.mouseDown&&(i=e.originalEvent.touches[0],t._inputmove(i.clientX,i.clientY),e.preventDefault&&e.preventDefault())},inputDown:function(e){t._useTarget(e.target,e)&&(t.threshold=t._threshold(e.target,e),t._start(e.clientX,e.clientY),t.elementFocused=e.target,"IMG"===e.target.nodeName&&e.preventDefault(),e.stopPropagation())},inputEnd:function(e){t._useTarget(e.target,e)&&(t._end(),t.elementFocused=null,e.preventDefault&&e.preventDefault())},inputMove:function(e){t.mouseDown&&(t._inputmove(e.clientX,e.clientY),e.preventDefault&&e.preventDefault())},scroll:function(i){e.isFunction(t.settings.moved)&&t.settings.moved.call(t,t.settings),i.preventDefault&&i.preventDefault()},inputClick:function(e){if(Math.abs(t.velocity)>0)return e.preventDefault(),!1},dragStart:function(e){if(t._useTarget(e.target,e)&&t.elementFocused)return!1}},this._attachListeners(this.$el,this.settings)},i.prototype._inputmove=function(t,i){var o=this.$el;this.el;if((!this.lastMove||new Date>new Date(this.lastMove.getTime()+this.throttleTimeout))&&(this.lastMove=new Date,this.mouseDown&&(this.xpos||this.ypos))){var n=t-this.xpos,s=i-this.ypos;if(this.threshold>0){var a=Math.sqrt(n*n+s*s);if(this.threshold>a)return;this.threshold=0}this.elementFocused&&(e(this.elementFocused).blur(),this.elementFocused=null,o.focus()),this.settings.decelerate=!1,this.velocity=this.velocityY=0;var r=this.scrollLeft(),l=this.scrollTop();this.scrollLeft(this.settings.x?r-n:r),this.scrollTop(this.settings.y?l-s:l),this.prevXPos=this.xpos,this.prevYPos=this.ypos,this.xpos=t,this.ypos=i,this._calculateVelocities(),this._setMoveClasses(this.settings.movingClass),e.isFunction(this.settings.moved)&&this.settings.moved.call(this,this.settings)}},i.prototype._calculateVelocities=function(){this.velocity=this._capVelocity(this.prevXPos-this.xpos,this.settings.maxvelocity),this.velocityY=this._capVelocity(this.prevYPos-this.ypos,this.settings.maxvelocity)},i.prototype._end=function(){this.xpos&&this.prevXPos&&!1===this.settings.decelerate&&(this.settings.decelerate=!0,this._calculateVelocities(),this.xpos=this.prevXPos=this.mouseDown=!1,this._move())},i.prototype._useTarget=function(t,i){return!e.isFunction(this.settings.filterTarget)||!1!==this.settings.filterTarget.call(this,t,i)},i.prototype._threshold=function(t,i){return e.isFunction(this.settings.threshold)?this.settings.threshold.call(this,t,i):this.settings.threshold},i.prototype._start=function(e,t){this.mouseDown=!0,this.velocity=this.prevXPos=0,this.velocityY=this.prevYPos=0,this.xpos=e,this.ypos=t},i.prototype._resetMouse=function(){this.xpos=!1,this.ypos=!1,this.mouseDown=!1},i.prototype._decelerateVelocity=function(e,t){return 0===Math.floor(Math.abs(e))?0:e*t},i.prototype._capVelocity=function(e,t){var i=e;return e>0?e>t&&(i=t):e<0-t&&(i=0-t),i},i.prototype._setMoveClasses=function(e){var t=this.settings,i=this.$el;i.removeClass(t.movingClass.up).removeClass(t.movingClass.down).removeClass(t.movingClass.left).removeClass(t.movingClass.right).removeClass(t.deceleratingClass.up).removeClass(t.deceleratingClass.down).removeClass(t.deceleratingClass.left).removeClass(t.deceleratingClass.right),this.velocity>0&&i.addClass(e.right),this.velocity<0&&i.addClass(e.left),this.velocityY>0&&i.addClass(e.down),this.velocityY<0&&i.addClass(e.up)},i.prototype._move=function(){this.$el;var t=this.el,i=this,o=i.settings;o.x&&t.scrollWidth>0?(this.scrollLeft(this.scrollLeft()+this.velocity),Math.abs(this.velocity)>0&&(this.velocity=o.decelerate?i._decelerateVelocity(this.velocity,o.slowdown):this.velocity)):this.velocity=0,o.y&&t.scrollHeight>0?(this.scrollTop(this.scrollTop()+this.velocityY),Math.abs(this.velocityY)>0&&(this.velocityY=o.decelerate?i._decelerateVelocity(this.velocityY,o.slowdown):this.velocityY)):this.velocityY=0,i._setMoveClasses(o.deceleratingClass),e.isFunction(o.moved)&&o.moved.call(this,o),Math.abs(this.velocity)>0||Math.abs(this.velocityY)>0?this.moving||(this.moving=!0,window.requestAnimationFrame(function(){i.moving=!1,i._move()})):i.stop()},i.prototype._getScroller=function(){var t=this.$el;return(this.$el.is("body")||this.$el.is("html"))&&(t=e(window)),t},i.prototype.scrollLeft=function(e){var t=this._getScroller();if("number"!=typeof e)return t.scrollLeft();t.scrollLeft(e),this.settings.scrollLeft=e},i.prototype.scrollTop=function(e){var t=this._getScroller();if("number"!=typeof e)return t.scrollTop();t.scrollTop(e),this.settings.scrollTop=e},i.prototype._attachListeners=function(){var i=this.$el,o=this.settings;e.support.touch&&i.bind("touchstart",o.events.touchStart).bind("touchend",o.events.inputEnd).bind("touchmove",o.events.touchMove),i.mousedown(o.events.inputDown).mouseup(o.events.inputEnd).mousemove(o.events.inputMove),i.click(o.events.inputClick).scroll(o.events.scroll).bind("selectstart",t).bind("dragstart",o.events.dragStart)},i.prototype._detachListeners=function(){var i=this.$el,o=this.settings;e.support.touch&&i.unbind("touchstart",o.events.touchStart).unbind("touchend",o.events.inputEnd).unbind("touchmove",o.events.touchMove),i.unbind("mousedown",o.events.inputDown).unbind("mouseup",o.events.inputEnd).unbind("mousemove",o.events.inputMove),i.unbind("click",o.events.inputClick).unbind("scroll",o.events.scroll).unbind("selectstart",t).unbind("dragstart",o.events.dragStart)},e.Kinetic=i,e.fn.kinetic=function(t,o){return this.each(function(){var n=e(this),s=n.data(i.DATA_KEY),a=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);s||n.data(i.DATA_KEY,s=new i(this,a)),"string"==typeof t&&s[t](o)})}}(window.jQuery||window.Zepto),function(e){e.fn.addClassIncrement=function(t,i){var o=e(this);t||(t="num");for(var n=0;n<o.length;n++){var s=e(o[n]);s.data("number",n).addClass(t+"-"+n),i&&i(n,s)}return o},e.fn.flumen=function(t){var i=e(this);if(i.length){var o=navigator.userAgent.indexOf("Chrome")>-1,n=navigator.userAgent.indexOf("Safari")>-1&&!o,s=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(s=!0),i.addClass("flumen");var a=50,r="flex-shrink"in document.body.style,l=null,c=null,d={},p={loop:!1,center:!0,fluid:!0,arrows:!1,dots:!1,mousewheel:!0,speed:300,margin:0,resize_timeout:200,events:{}};p.elem=i;var h=!1;return d.goTo=function(e,t){var o=p.map[e];t||(t=p.speed);var n=o.start;p.center&&(n-=p.half_width-o.half_width-p.margin),h=!0,i.trigger("flumen.beforechange",p),i.stop(!0).animate({scrollLeft:n},t,function(){i.trigger("flumen.afterchange",p)})},d.getCurrentItem=u,d.resetPosition=function(e){var t=p.map[e],o=t.start;p.center&&(o-=p.half_width-t.half_width-p.margin),i.scrollLeft(o)},d.calc=function(){i.trigger("flumen.beforeresize",p),p.width=i.width(),!p.cloned_left&&p.loop&&(p.cloned_left=p.children.clone(!0).addClass("clone clone-left"),p.cloned_right=p.children.clone(!0).addClass("clone clone-right"),i.prepend(p.cloned_left),i.append(p.cloned_right),p.children=i.children());var t=i.scrollLeft();i.scrollLeft(0);for(var o=0;o<p.children.length;o++){var n=e(p.children[o]),s=n.width(),r=n.outerWidth(!0),l=n.position().left,c={elem:n,width:s,start:p.center?l:l-p.margin,end:p.center?l+s:l+p.margin+s,outerEnd:l+r,outerWidth:r,id:o,num:o%p.items,half_width:s/2};n.hasClass("clone")?c.cloned=!0:p.orig_map[c.num]=c,p.map[o]=c}p.loop?(p.end_position=p.map[3*p.items-1].start+p.map[3*p.items-1].width-p.width-a,p.reset_left=p.map[p.items].start+a,p.reset_right=p.map[2*p.items-1].start+p.map[2*p.items-1].width-p.width-a):p.end_position=p.map[p.items-1].start+p.map[p.items-1].width-p.width,p.half_width=p.width/2,i.scrollLeft(t),e(this).trigger("flumen.afterresize",p)},d.onscroll=m,i.on("flumen.goto",function(e,t){p.events.hasOwnProperty("goto")&&p.events.goto(e,p),d.goTo(p.start_num+t-1)}),i.on("flumen.left",function(e){p.events.hasOwnProperty("left")&&p.events.left(e,p),d.goTo(p.current.id-1)}),i.on("flumen.recalc",function(e,t){d.calc()}),i.on("flumen.right",function(e){p.events.hasOwnProperty("right")&&p.events.right(e,p),d.goTo(p.current.id+1)}),i.on("flumen.slide",function(e,t){i.find(".flumen-current").removeClass("flumen-current"),t.elem.addClass("flumen-current"),p.events.hasOwnProperty("slide")&&p.events.slide(e,t,p)}),i.on("flumen.start",function(e,t){t.events.hasOwnProperty("start")&&t.events.start(e,t)}),i.on("flumen.end",function(e,t){t.events.hasOwnProperty("end")&&t.events.end(e,t)}),i.on("flumen.beforechange",function(e,t){t.events.hasOwnProperty("beforechange")&&t.events.beforechange(e,t)}),i.on("flumen.afterchange",function(e,t){t.events.hasOwnProperty("afterchange")&&t.events.afterchange(e,t)}),i.on("flumen.beforeresize",function(e,t){t.events.hasOwnProperty("beforeresize")&&t.events.beforeresize(e,t)}),i.on("flumen.afterresize",function(e,t){t.events.hasOwnProperty("afterresize")&&t.events.afterresize(e,t)}),i.on("flumen.init",function(e,t){t.events.hasOwnProperty("init")&&t.events.init(e,t)}),i.on("flumen.stop",function(e,t){t.visible=f(),i.find(".flumen-visible").removeClass("flumen-visible");for(var o=0;o<t.visible.length;o++)t.visible[o].elem.addClass("flumen-visible");t.events.hasOwnProperty("stop")&&t.events.stop(e,t),t.current.cloned&&h&&(h=!1,d.resetPosition(t.orig_map[t.current.num].id))}),i.on("flumen.remove",function(e,t){}),d.init=function(){return e.extend(p,t),(n||s)&&(p.mousewheel=!1),p.mousewheel||(console.log("aaa"),i.css("overflow-x","auto")),r||i.addClass("no-flexbox"),p.fluid&&(s||i.kinetic({y:!1}),p.mousewheel&&i.mousewheel(function(e){i.scrollLeft(i.scrollLeft()+e.deltaX)})),p.children=i.children().addClass("flumen-slide"),p.original=p.children,p.margin&&p.original.css("margin","0px "+p.margin+"px"),p.items=p.children.length,p.children.addClassIncrement(),p.map={},p.orig_map={},e(window).resize(function(){l||(l=setTimeout(function(){clearTimeout(l),l=null,d.calc()},p.resize_timeout))}),d.calc(),p.start_num=0,p.loop&&(p.start_num=p.items),d.resetPosition(p.start_num),p.current=null,i.scroll(m),p.center||p.loop||i.trigger("scroll"),i.trigger("flumen.init",p),i},d.init()}function u(){var e=i.scrollLeft();for(var t in p.center&&(e+=p.half_width),p.map){var o=p.map[t];if(e>=o.start&&e<=o.outerEnd)return o}return null}function f(){var e=i.scrollLeft(),t=[],o=e+p.width;for(var n in p.map){var s=p.map[n];e<s.end&&o>s.start&&t.push(s)}return t}function m(e){var t=i.scrollLeft();p.loop?(t<=a&&(i.trigger("flumen.start",p),i.scrollLeft(p.reset_left)),t>=p.end_position&&(i.trigger("flumen.end",p),i.scrollLeft(p.reset_right))):(0===t&&i.trigger("flumen.start",p),t>=p.end_position&&i.trigger("flumen.end",p));var o=u();!o||p.current&&p.current.id===o.id||(p.current=o,i.trigger("flumen.slide",o,p)),c&&clearTimeout(c),c=setTimeout(function(){i.trigger("flumen.stop",p),c=null},100)}}}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(i,o){var n,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(i),appendDots:e(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return e('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=e(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,n=e(i).data("slick")||{},s.options=e.extend({},s.defaults,o,n),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=e.proxy(s.autoPlay,s),s.autoPlayClear=e.proxy(s.autoPlayClear,s),s.autoPlayIterator=e.proxy(s.autoPlayIterator,s),s.changeSlide=e.proxy(s.changeSlide,s),s.clickHandler=e.proxy(s.clickHandler,s),s.selectHandler=e.proxy(s.selectHandler,s),s.setPosition=e.proxy(s.setPosition,s),s.swipeHandler=e.proxy(s.swipeHandler,s),s.dragHandler=e.proxy(s.dragHandler,s),s.keyHandler=e.proxy(s.keyHandler,s),s.instanceUid=t++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,i,o){var n=this;if("boolean"==typeof i)o=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?e(t).appendTo(n.$slideTrack):o?e(t).insertBefore(n.$slides.eq(i)):e(t).insertAfter(n.$slides.eq(i)):!0===o?e(t).prependTo(n.$slideTrack):e(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,i){e(i).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,i){var o={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,i):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),e({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),!1===n.options.vertical?(o[n.animType]="translate("+e+"px, 0px)",n.$slideTrack.css(o)):(o[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(o))},complete:function(){i&&i.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?o[n.animType]="translate3d("+t+"px, 0px, 0px)":o[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(o),i&&setTimeout(function(){n.disableTransition(),i.call()},n.options.speed))},t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,i,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(o.options.dotsClass),t=0;t<=o.getDotCount();t+=1)i.append(e("<li />").append(o.options.customPaging.call(this,o,t)));o.$dots=i.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,i,o,n,s,a,r=this;if(o=document.createDocumentFragment(),s=r.$slider.children(),r.options.rows>0){for(a=r.options.slidesPerRow*r.options.rows,n=Math.ceil(s.length/a),e=0;e<n;e++){var l=document.createElement("div");for(t=0;t<r.options.rows;t++){var c=document.createElement("div");for(i=0;i<r.options.slidesPerRow;i++){var d=e*a+(t*r.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}o.appendChild(l)}r.$slider.empty().append(o),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,i){var o,n,s,a=this,r=!1,l=a.$slider.width(),c=window.innerWidth||e(window).width();if("window"===a.respondTo?s=c:"slider"===a.respondTo?s=l:"min"===a.respondTo&&(s=Math.min(c,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(o in n=null,a.breakpoints)a.breakpoints.hasOwnProperty(o)&&(!1===a.originalSettings.mobileFirst?s<a.breakpoints[o]&&(n=a.breakpoints[o]):s>a.breakpoints[o]&&(n=a.breakpoints[o]));null!==n?null!==a.activeBreakpoint?(n!==a.activeBreakpoint||i)&&(a.activeBreakpoint=n,"unslick"===a.breakpointSettings[n]?a.unslick(n):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[n]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),r=n):(a.activeBreakpoint=n,"unslick"===a.breakpointSettings[n]?a.unslick(n):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[n]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),r=n):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t),r=n),t||!1===r||a.$slider.trigger("breakpoint",[a,r])}},t.prototype.changeSlide=function(t,i){var o,n,s=this,a=e(t.currentTarget);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),o=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":n=0===o?s.options.slidesToScroll:s.options.slidesToShow-o,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-n,!1,i);break;case"next":n=0===o?s.options.slidesToScroll:o,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+n,!1,i);break;case"index":var r=0===t.data.index?0:t.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(r),!1,i),a.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var o in t){if(e<t[o]){e=i;break}i=t[o]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var o=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=o.is(":focus"),t.autoPlay())},0)})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,o=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++o;else for(;t<e.slideCount;)++o,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)o=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++o,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else o=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return o-1},t.prototype.getLeft=function(e){var t,i,o,n,s=this,a=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,n=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?n=-1.5:1===s.options.slidesToShow&&(n=-2)),a=i*s.options.slidesToShow*n),s.slideCount%s.options.slidesToScroll!=0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(e>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(e-s.slideCount))*s.slideWidth*-1,a=(s.options.slidesToShow-(e-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,a=s.slideCount%s.options.slidesToScroll*i*-1))):e+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(e+s.options.slidesToShow-s.slideCount)*s.slideWidth,a=(e+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,a=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),t=!1===s.options.vertical?e*s.slideWidth*-1+s.slideOffset:e*i*-1+a,!0===s.options.variableWidth&&(o=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow),t=!0===s.options.rtl?o[0]?-1*(s.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===s.options.centerMode&&(o=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow+1),t=!0===s.options.rtl?o[0]?-1*(s.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,t+=(s.$list.width()-o.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,o=0,n=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,o=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)n.push(i),i=o+t.options.slidesToScroll,o+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,i,o=this;return i=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(n,s){if(s.offsetLeft-i+e(s).outerWidth()/2>-1*o.swipeLeft)return t=s,!1}),Math.abs(e(t).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},t.prototype.initADA=function(){var t=this,i=Math.ceil(t.slideCount/t.options.slidesToShow),o=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var n=o.indexOf(i);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==n){var s="slick-slide-control"+t.instanceUid+n;e("#"+s).length&&e(this).attr({"aria-describedby":s})}}),t.$dots.attr("role","tablist").find("li").each(function(n){var s=o[n];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+n,"aria-controls":"slick-slide"+t.instanceUid+s,"aria-label":n+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var n=t.currentSlide,s=n+t.options.slidesToShow;n<s;n++)t.options.focusOnChange?t.$slides.eq(n).attr({tabindex:"0"}):t.$slides.eq(n).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var t,i,o,n=this;function s(t){e("img[data-lazy]",t).each(function(){var t=e(this),i=e(this).attr("data-lazy"),o=e(this).attr("data-srcset"),s=e(this).attr("data-sizes")||n.$slider.attr("data-sizes"),a=document.createElement("img");a.onload=function(){t.animate({opacity:0},100,function(){o&&(t.attr("srcset",o),s&&t.attr("sizes",s)),t.attr("src",i).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,t,i])})},a.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,t,i])},a.src=i})}if(!0===n.options.centerMode?!0===n.options.infinite?o=(i=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(i=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),o=n.options.slidesToShow/2+1+2+n.currentSlide):(i=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=Math.ceil(i+n.options.slidesToShow),!0===n.options.fade&&(i>0&&i--,o<=n.slideCount&&o++)),t=n.$slider.find(".slick-slide").slice(i,o),"anticipated"===n.options.lazyLoad)for(var a=i-1,r=o,l=n.$slider.find(".slick-slide"),c=0;c<n.options.slidesToScroll;c++)a<0&&(a=n.slideCount-1),t=(t=t.add(l.eq(a))).add(l.eq(r)),a--,r++;s(t),n.slideCount<=n.options.slidesToShow?s(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?s(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&s(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&e(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var i,o,n,s,a,r=this,l=e("img[data-lazy]",r.$slider);l.length?(i=l.first(),o=i.attr("data-lazy"),n=i.attr("data-srcset"),s=i.attr("data-sizes")||r.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){n&&(i.attr("srcset",n),s&&i.attr("sizes",s)),i.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,i,o]),r.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout(function(){r.progressiveLazyLoad(t+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,i,o]),r.progressiveLazyLoad())},a.src=o):r.$slider.trigger("allImagesLoaded",[r])},t.prototype.refresh=function(t){var i,o,n=this;o=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>o&&(n.currentSlide=o),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),i=n.currentSlide,n.destroy(!0),e.extend(n,n.initials,{currentSlide:i}),n.init(),t||n.changeSlide({data:{message:"index",index:i}},!1)},t.prototype.registerBreakpoints=function(){var t,i,o,n=this,s=n.options.responsive||null;if("array"===e.type(s)&&s.length){for(t in n.respondTo=n.options.respondTo||"window",s)if(o=n.breakpoints.length-1,s.hasOwnProperty(t)){for(i=s[t].breakpoint;o>=0;)n.breakpoints[o]&&n.breakpoints[o]===i&&n.breakpoints.splice(o,1),o--;n.breakpoints.push(i),n.breakpointSettings[i]=s[t].settings}n.breakpoints.sort(function(e,t){return n.options.mobileFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,i){var o=this;if(e="boolean"==typeof e?!0===(t=e)?0:o.slideCount-1:!0===t?--e:e,o.slideCount<1||e<0||e>o.slideCount-1)return!1;o.unload(),!0===i?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(e).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},t.prototype.setCSS=function(e){var t,i,o=this,n={};!0===o.options.rtl&&(e=-e),t="left"==o.positionProp?Math.ceil(e)+"px":"0px",i="top"==o.positionProp?Math.ceil(e)+"px":"0px",n[o.positionProp]=e,!1===o.transformsEnabled?o.$slideTrack.css(n):(n={},!1===o.cssTransitions?(n[o.animType]="translate("+t+", "+i+")",o.$slideTrack.css(n)):(n[o.animType]="translate3d("+t+", "+i+", 0px)",o.$slideTrack.css(n)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,i=this;i.$slides.each(function(o,n){t=i.slideWidth*o*-1,!0===i.options.rtl?e(n).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}):e(n).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,i,o,n,s,a=this,r=!1;if("object"===e.type(arguments[0])?(o=arguments[0],r=arguments[1],s="multiple"):"string"===e.type(arguments[0])&&(o=arguments[0],n=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)a.options[o]=n;else if("multiple"===s)e.each(o,function(e,t){a.options[e]=t});else if("responsive"===s)for(i in n)if("array"!==e.type(a.options.responsive))a.options.responsive=[n[i]];else{for(t=a.options.responsive.length-1;t>=0;)a.options.responsive[t].breakpoint===n[i].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(n[i])}r&&(a.unload(),a.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,i,o,n,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(e).addClass("slick-current"),!0===s.options.centerMode){var a=s.options.slidesToShow%2==0?1:0;t=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(e>=t&&e<=s.slideCount-1-t?s.$slides.slice(e-t+a,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(o=s.options.slidesToShow+e,i.slice(o-t+1+a,o+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=s.slideCount%s.options.slidesToShow,o=!0===s.options.infinite?s.options.slidesToShow+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<s.options.slidesToShow?i.slice(o-(s.options.slidesToShow-n),o+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(o,o+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},t.prototype.setupInfinite=function(){var t,i,o,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(i=null,n.slideCount>n.options.slidesToShow)){for(o=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-o;t-=1)i=t-1,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<o+n.slideCount;t+=1)i=t,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},t.prototype.selectHandler=function(t){var i=this,o=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),n=parseInt(o.attr("data-slick-index"));n||(n=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(n,!1,!0):i.slideHandler(n)},t.prototype.slideHandler=function(e,t,i){var o,n,s,a,r,l,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),o=e,r=c.getLeft(o),a=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?a:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,function(){c.postSlide(o)}):c.postSlide(o));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,function(){c.postSlide(o)}):c.postSlide(o));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),n=o<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+o:o>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:o-c.slideCount:o,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,n]),s=c.currentSlide,c.currentSlide=n,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(l=(l=c.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(n,function(){c.postSlide(n)})):c.postSlide(n),void c.animateHeight();!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,i,o,n=this;return e=n.touchObject.startX-n.touchObject.curX,t=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(t,e),(o=Math.round(180*i/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===n.options.rtl?"left":"right":o<=360&&o>=315?!1===n.options.rtl?"left":"right":o>=135&&o<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,i,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(i=o.swipeDirection()){case"left":case"down":t=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":t=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=i&&(o.slideHandler(t),o.touchObject={},o.$slider.trigger("swipe",[o,i]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,i,o,n,s,a,r=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!r.dragging||r.scrolling||s&&1!==s.length)&&(t=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,r.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2))),!r.options.verticalSwiping&&!r.swiping&&a>4?(r.scrolling=!0,!1):(!0===r.options.verticalSwiping&&(r.touchObject.swipeLength=a),i=r.swipeDirection(),void 0!==e.originalEvent&&r.touchObject.swipeLength>4&&(r.swiping=!0,e.preventDefault()),n=(!1===r.options.rtl?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),!0===r.options.verticalSwiping&&(n=r.touchObject.curY>r.touchObject.startY?1:-1),o=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,!1===r.options.infinite&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(o=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),!1===r.options.vertical?r.swipeLeft=t+o*n:r.swipeLeft=t+o*(r.$list.height()/r.listWidth)*n,!0===r.options.verticalSwiping&&(r.swipeLeft=t+o*n),!0!==r.options.fade&&!1!==r.options.touchMove&&(!0===r.animating?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))))},t.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,i,o=this,n=arguments[0],s=Array.prototype.slice.call(arguments,1),a=o.length;for(e=0;e<a;e++)if("object"==typeof n||void 0===n?o[e].slick=new t(o[e],n):i=o[e].slick[n].apply(o[e].slick,s),void 0!==i)return i;return o}}),function(e){"use strict";function t(){}function i(){try{return document.activeElement}catch(e){}}function o(e,t){for(var i=0,o=e.length;o>i;i++)if(e[i]===t)return!0;return!1}function n(e,t,i){return e.addEventListener?e.addEventListener(t,i,!1):e.attachEvent?e.attachEvent("on"+t,i):void 0}function s(e,t){var i;e.createTextRange?((i=e.createTextRange()).move("character",t),i.select()):e.selectionStart&&(e.focus(),e.setSelectionRange(t,t))}function a(e,t){try{return e.type=t,!0}catch(e){return!1}}function r(e,t){if(e&&e.getAttribute(b))t(e);else for(var i=e?e.getElementsByTagName("input"):k,o=e?e.getElementsByTagName("textarea"):P,n=i?i.length:0,s=n+(o?o.length:0),a=0;s>a;a++)t(n>a?i[a]:o[a-n])}function l(e){r(e,c)}function c(e,t){var i=!!t&&e.value!==t,o=e.value===e.getAttribute(b);if((i||o)&&"true"===e.getAttribute(y)){e.removeAttribute(y),e.value=e.value.replace(e.getAttribute(b),""),e.className=e.className.replace(v,"");var n=e.getAttribute(C);parseInt(n,10)>=0&&(e.setAttribute("maxLength",n),e.removeAttribute(C));var s=e.getAttribute($);return s&&(e.type=s),!0}return!1}function d(e){var t=e.getAttribute(b);return!(""!==e.value||!t)&&(e.setAttribute(y,"true"),e.value=t,e.className+=" "+g,e.getAttribute(C)||(e.setAttribute(C,e.maxLength),e.removeAttribute("maxLength")),e.getAttribute($)?e.type="text":"password"===e.type&&a(e,"text")&&e.setAttribute($,"password"),!0)}function p(e){var t=e.form;t&&"string"==typeof t&&((t=document.getElementById(t)).getAttribute(w)||(n(t,"submit",function(e){return function(){l(e)}}(t)),t.setAttribute(w,"true"))),n(e,"focus",function(e){return function(){E&&e.value===e.getAttribute(b)&&"true"===e.getAttribute(y)?s(e,0):c(e)}}(e)),n(e,"blur",function(e){return function(){d(e)}}(e)),E&&(n(e,"keydown",function(e){return function(t){return u=e.value,"true"===e.getAttribute(y)&&u===e.getAttribute(b)&&o(m,t.keyCode)?(t.preventDefault&&t.preventDefault(),!1):void 0}}(e)),n(e,"keyup",function(e){return function(){c(e,u),""===e.value&&(e.blur(),s(e,0))}}(e)),n(e,"click",function(e){return function(){e===i()&&e.value===e.getAttribute(b)&&"true"===e.getAttribute(y)&&s(e,0)}}(e))),e.setAttribute(T,"true"),e.setAttribute(b,I),(E||e!==i())&&d(e)}var h=void 0!==document.createElement("input").placeholder;if(e.Placeholders={nativeSupport:h,disable:h?t:l,enable:h?t:function(e){r(e,d)}},!h){var u,f=["text","search","url","tel","email","password","number","textarea"],m=[27,33,34,35,36,37,38,39,40,8,46],g="placeholdersjs",v=new RegExp("(?:^|\\s)"+g+"(?!\\S)"),b="data-placeholder-value",y="data-placeholder-active",$="data-placeholder-type",w="data-placeholder-submit",T="data-placeholder-bound",C="data-placeholder-maxlength",x=document.getElementsByTagName("head")[0],_=document.documentElement,S=e.Placeholders,k=document.getElementsByTagName("input"),P=document.getElementsByTagName("textarea"),E="false"===_.getAttribute("data-placeholder-focus"),A="false"!==_.getAttribute("data-placeholder-live"),D=document.createElement("style");D.type="text/css";var M=document.createTextNode("."+g+" {color:#ccc;}");D.styleSheet?D.styleSheet.cssText=M.nodeValue:D.appendChild(M),x.insertBefore(D,x.firstChild);for(var I,O,z=0,B=k.length+P.length;B>z;z++)O=z<k.length?k[z]:P[z-k.length],(I=O.attributes.placeholder)&&((I=I.nodeValue)&&o(f,O.type)&&p(O));var L=setInterval(function(){for(var e=0,t=k.length+P.length;t>e;e++)O=e<k.length?k[e]:P[e-k.length],(I=O.attributes.placeholder)?(I=I.nodeValue)&&o(f,O.type)&&(O.getAttribute(T)||p(O),(I!==O.getAttribute(b)||"password"===O.type&&!O.getAttribute($))&&("password"===O.type&&!O.getAttribute($)&&a(O,"text")&&O.setAttribute($,"password"),O.value===O.getAttribute(b)&&(O.value=I),O.setAttribute(b,I))):O.getAttribute(y)&&(c(O),O.removeAttribute(b));A||clearInterval(L)},100);n(e,"beforeunload",function(){S.disable()})}}(this);var channel=$.trim($("[id*=gchannel]").val());function scrollHandler(){var e=$(window).scrollTop(),t=($(window).height(),$(".Aos")),i=$(window).height(),o=e,n=o+i;$.each(t,function(){var e=$(this),t=e.outerHeight(),i=e.offset().top;i+t>=o&&i<=n?e.addClass("inview"):e.removeClass("inview")})}$(document).ready(function(){$(".navBar nav ul li:has(ul)").addClass("has-child"),$(".menuopen").click(function(e){e.stopPropagation(),$(this).toggleClass("active"),$(".navBar nav").toggleClass("navbarActive"),$("body").toggleClass("noscroll")}),$(".main-slider").owlCarousel({items:7,loop:!0,margin:0,nav:!0,pagination:!1,navigation:!0,navigationText:["◀"," ▶"],autoplay:!0,dots:!0,rewind:!0,mouseDrag:!1,responsive:{0:{items:1}}}),$(".access_slider").owlCarousel({loop:!0,margin:0,nav:!0,pagination:!1,navigation:!1,autoplay:!0,dots:!1,responsive:{0:{items:1}}}),$(".feed-slider").owlCarousel({loop:!0,margin:0,nav:!1,pagination:!1,navigation:!1,autoplay:!0,dots:!0,responsive:{0:{items:1},480:{items:2},990:{items:3}}}),$(".teamslider").owlCarousel({loop:!1,margin:0,nav:!0,pagination:!0,navigation:!0,autoplay:!0,dots:!1,responsive:{0:{items:1},480:{items:2},990:{items:3}}}),$(".galeryslider").owlCarousel({loop:!1,margin:0,nav:!0,pagination:!0,navigation:!0,autoplay:!0,dots:!1,responsive:{0:{items:1},480:{items:2},990:{items:2}}}),$(".disclaimerbtn").click(function(){$(".disclaimerbox").toggle()}),$(".disclaimernewbtn").click(function(){$(".disclaimertextbox1").toggle()}),$(".disclaimerbtn1").click(function(){$(".disclaimertextbox").toggle()}),$(".disclaimerbtn1").click(function(){$(".disclaimertextbox1").toggle()}),$(".tabs li").click(function(){var e=$(this).attr("data-tab");$(".tabs li").removeClass("current"),$(".tab-content").removeClass("current"),$(this).addClass("current"),$("#"+e).addClass("current")}),$(".belowtabs li").click(function(){var e=$(this).attr("data-tab");$(".belowtabs li").removeClass("current"),$(".belowtab-content").removeClass("current"),$(this).addClass("current"),$("#"+e).addClass("current")}),$(".belowtabs1 li").click(function(){var e=$(this).attr("data-tab");$(".belowtabs1 li").removeClass("current"),$(".belowtab-content1").removeClass("current"),$(this).addClass("current"),$("#"+e).addClass("current")}),$(".belowtabs1 .tab-link.current").click(function(){tdTigger({eventCategory:"Show Room Address",eventAction:"click",Address:convertAES(($(".tabCont").find(".verticalInner address strong").text()+$(".tabCont").find(".verticalInner address p").text()).toLowerCase()),eventLabel:"Show Room Address",channel_id:channel},"event_hyperlocal"),event.preventDefault()}),$(".belowtabs1 .tab-link").click(function(){$(".belowtab-content1").find("p").text();tdTigger({eventCategory:"Know our Dealer Ship",eventAction:"click",eventLabel:"Know our Dealer Ship",channel_id:channel},"event_hyperlocal"),event.preventDefault()}),$(".slider").flumen({margin:0,events:{init:function(e,t){}}}),$("#brochure-drop").change(function(){null!=$("#brochure-drop").val()&&""!=$("#brochure-drop").val()&&"selectmodel"!=$("#brochure-drop").val()?$("#btnbrochure").val("Download Brochure"):$("#btnbrochure").val("Submit")}),$(".closedownloadbox").click(function(){$(".downloadformbox").hide()})}),$(".slider1").slick({slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!1,asNavFor:".slider-nav-thumbnails"}),$(".slider-nav-thumbnails").slick({slidesToShow:3,slidesToScroll:1,asNavFor:".slider1",dots:!1,centerMode:!0,vertical:!0,nav:!0,focusOnSelect:!0}),$(".slider-nav-thumbnails .slick-slide").removeClass("slick-active"),$(".slider-nav-thumbnails .slick-slide").eq(0).addClass("slick-active"),$(".slider1").on("beforeChange",function(e,t,i,o){var n=o;$(".slider-nav-thumbnails .slick-slide").removeClass("slick-active"),$(".slider-nav-thumbnails .slick-slide").eq(n).addClass("slick-active")}),$(document).width()<1024&&$(".navBar nav ul li a small").click(function(e){e.preventDefault(),$(this).toggleClass("angleup"),$(this).parent().next().slideToggle()}),$(window).on("scroll",function(){window.requestAnimationFrame(scrollHandler)}),$(window).load(function(){$(".se-pre-con").fadeOut("slow")}),$(window).resize(function(){}),$(document).ready(function(){$(".colorvariantab li").click(function(){var e=$(this).attr("data-tab");$(".colorvariantab li").removeClass("current"),$(".tabs-content").removeClass("current"),$(this).addClass("current"),$("#"+e).addClass("current")})});var sync1=$(".sync1"),sync2=$(".sync2"),slidesPerPage=4,syncedSecondary=!0;function syncPosition(e){var t=e.item.count-1,i=Math.round(e.item.index-e.item.count/2-.5);i<0&&(i=t),i>t&&(i=0),sync2.find(".owl-item").removeClass("current").eq(i).addClass("current");var o=sync2.find(".owl-item.active").length-1,n=sync2.find(".owl-item.active").first().index();i>sync2.find(".owl-item.active").last().index()&&sync2.data("owl.carousel").to(i,100,!0),i<n&&sync2.data("owl.carousel").to(i-o,100,!0)}function syncPosition2(e){if(syncedSecondary){var t=e.item.index;sync1.data("owl.carousel").to(t,100,!0)}}sync1.owlCarousel({items:1,slideSpeed:2e3,nav:!1,mouseDrag:!1,autoplay:!0,dots:!1,loop:!0,responsiveRefreshRate:200}).on("changed.owl.carousel",syncPosition),sync2.on("initialized.owl.carousel",function(){sync2.find(".owl-item").eq(0).addClass("current")}).owlCarousel({items:slidesPerPage,dots:!1,nav:!0,margin:25,mouseDrag:!1,smartSpeed:200,slideSpeed:500,slideBy:slidesPerPage,responsiveRefreshRate:100}).on("changed.owl.carousel",syncPosition2),sync2.on("click",".owl-item",function(e){e.preventDefault();var t=$(this).index();sync1.data("owl.carousel").to(t,300,!0)});var sync3=$(".sync3"),sync4=$(".sync4");slidesPerPage=4,syncedSecondary=!0;function syncPosition3(e){var t=e.item.count-1,i=Math.round(e.item.index-e.item.count/2-.5);i<0&&(i=t),i>t&&(i=0),sync4.find(".owl-item").removeClass("current").eq(i).addClass("current");var o=sync4.find(".owl-item.active").length-1,n=sync4.find(".owl-item.active").first().index();i>sync4.find(".owl-item.active").last().index()&&sync4.data("owl.carousel").to(i,100,!0),i<n&&sync4.data("owl.carousel").to(i-o,100,!0)}function syncPosition4(e){if(syncedSecondary){var t=e.item.index;sync4.data("owl.carousel").to(t,100,!0)}}function tdSubmit(e,t){var i=new Treasure({host:"in.treasuredata.com",writeKey:$.trim($("#cdpkey").val()),database:Dbase,startInSignedMode:!0});i.set("$global","td_global_id","td_global_id"),i.trackPageview("pageview",googleSyncCallback),i.trackEvent(t,e)}function convertAES(e){if(e){var t=e,i=CryptoJS.enc.Utf8.parse($("#esckey").val()),o=CryptoJS.enc.Utf8.parse($("#ivkey").val());return CryptoJS.AES.encrypt(t,i,{mode:CryptoJS.mode.CBC,iv:o,padding:CryptoJS.pad.Pkcs7}).toString()}return""}function convertSHA(e){return e?(encrypted=CryptoJS.SHA256(e),encrypted.toString()):""}function tdTigger(e,t){var i=new Treasure({host:"in.treasuredata.com",writeKey:$.trim($("#cdpkey").val()),database:Dbase,startInSignedMode:!0});i.set("$global","td_global_id","td_global_id"),i.trackPageview("pageview",googleSyncCallback),i.trackEvent(t,e)}sync3.owlCarousel({items:1,slideSpeed:2e3,nav:!1,mouseDrag:!1,autoplay:!0,dots:!1,loop:!0,responsiveRefreshRate:200}).on("changed.owl.carousel",syncPosition),sync4.on("initialized.owl.carousel",function(){sync4.find(".owl-item").eq(0).addClass("current")}).owlCarousel({items:slidesPerPage,dots:!1,nav:!0,margin:25,mouseDrag:!1,smartSpeed:200,slideSpeed:500,slideBy:slidesPerPage,responsiveRefreshRate:100}).on("changed.owl.carousel",syncPosition4),sync4.on("click",".owl-item",function(e){e.preventDefault();var t=$(this).index();sync3.data("owl.carousel").to(t,300,!0)}),$("#feature-variant-drop").change(function(){console.log("Selected option"+$(this).val()),"defaultsel"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").hide()):"op1"==$(this).val()?($(".specfeatureTab-content .op1").show(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op2"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").show(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op3"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").show(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op4"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").show(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op5"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").show(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op6"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").show(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op7"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").show(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op8"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").show(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op9"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").show(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op10"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").show(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op11"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").show(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op12"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").show(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op13"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").show(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op14"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").show(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op15"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").show(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op16"==$(this).val()?($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").show(),$(".specfeatureTab-content .op17").hide(),$(".specfeatureTab-content").show()):"op17"==$(this).val()&&($(".specfeatureTab-content .op1").hide(),$(".specfeatureTab-content .op2").hide(),$(".specfeatureTab-content .op3").hide(),$(".specfeatureTab-content .op4").hide(),$(".specfeatureTab-content .op5").hide(),$(".specfeatureTab-content .op6").hide(),$(".specfeatureTab-content .op7").hide(),$(".specfeatureTab-content .op8").hide(),$(".specfeatureTab-content .op9").hide(),$(".specfeatureTab-content .op10").hide(),$(".specfeatureTab-content .op11").hide(),$(".specfeatureTab-content .op12").hide(),$(".specfeatureTab-content .op13").hide(),$(".specfeatureTab-content .op14").hide(),$(".specfeatureTab-content .op15").hide(),$(".specfeatureTab-content .op16").hide(),$(".specfeatureTab-content .op17").show(),$(".specfeatureTab-content").show())}),$("#feature-tech-drop").change(function(){"defaultsel"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").hide()):"op1"==$(this).val()?($(".spectechTabCont .op1").show(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op2"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").show(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op3"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").show(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op4"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").show(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op5"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").show(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op6"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").show(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op7"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").show(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op8"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").show(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op9"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").show(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op10"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").show(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op11"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").show(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op12"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").show(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op13"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").show(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op14"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").show(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op15"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").show(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op16"==$(this).val()?($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").show(),$(".spectechTabCont .op17").hide(),$(".spectechTab-content").show()):"op17"==$(this).val()&&($(".spectechTabCont .op1").hide(),$(".spectechTabCont .op2").hide(),$(".spectechTabCont .op3").hide(),$(".spectechTabCont .op4").hide(),$(".spectechTabCont .op5").hide(),$(".spectechTabCont .op6").hide(),$(".spectechTabCont .op7").hide(),$(".spectechTabCont .op8").hide(),$(".spectechTabCont .op9").hide(),$(".spectechTabCont .op10").hide(),$(".spectechTabCont .op11").hide(),$(".spectechTabCont .op12").hide(),$(".spectechTabCont .op13").hide(),$(".spectechTabCont .op14").hide(),$(".spectechTabCont .op15").hide(),$(".spectechTabCont .op16").hide(),$(".spectechTabCont .op17").show(),$(".spectechTab-content").show())}),$("#spressoCarosel").owlCarousel({margin:10,nav:!0,dots:!0,responsive:{0:{items:1},600:{items:1},1000:{items:1}}}),$(window).scroll(function(){$(window).scrollTop()>=500?$(".scrollbtn").addClass("active"):$(".scrollbtn").removeClass("active")}),jQuery(document).ready(function(e){e(".scrollbtn").click(function(){return e("html, body").animate({scrollTop:0},500),!1})}),$(document).ready(function(){$(".submitCross").click(function(){$(".registerFormBox").removeClass("active"),$(".registerexplore").addClass("active")}),$(".registerexplore").click(function(){$(".registerFormBox").addClass("active"),$(this).removeClass("active")}),$("#disclaimer-chk").click(function(e){e.preventDefault(),$(".disclaimerTxt .content").toggle(),$(".stepOneBox").toggleClass("active")});var e=window.setTimeout(function(){$(".registerInterest").addClass("active"),$(".registerFormBox").addClass("active")},500);$(window).width()<768&&(clearTimeout(e),$(".registerFormBox").removeClass("active"),$(".registerInterest").removeClass("active"),$(".mask").removeClass("active"),$(".submitCross").click(function(){$(".mainregisterInterest").removeClass("active"),$(".registerFormBox").removeClass("active"),$(".registerInterest").removeClass("active"),$(".mask").removeClass("active"),$(".registerexplore").removeClass("active"),$(".registerInterest-mob").css("z-index","10999")}),$(".registerInterest-mob .registerIntTxt a").click(function(){$(".mainregisterInterest").addClass("active"),$(".registerFormBox").addClass("active"),$(".registerInterest").addClass("active"),$(".mask").addClass("active"),$(".registerInterest-mob").css("z-index","9999"),$(".mainregisterInterest").css("bottom","auto"),dataLayer.push({event:"user_action",eventCategory:"sticky icon clicked-mobile",eventAction:"click",eventLabel:"stiky GAQ icon"})}),setTimeout(function(){$(".mainregisterInterest").addClass("active"),$(".registerFormBox").addClass("active"),$(".registerInterest").addClass("active"),$(".mask").addClass("active")},3e3)),$(window).on("load",function(){setTimeout(function(){$(".mainregisterInterest").css("bottom","-1px")},3e3),$(window).width()<767&&$(".mainregisterInterest").show()})}),$(".callus").click(function(){$(".callus").text();tdTigger({eventCategory:"Call to Click",eventAction:"click",eventLabel:"Call to Click",channel_id:channel},"event_hyperlocal"),event.preventDefault()}),$(document).ready(function(){"specifications"==window.location.href.split("#")[1]&&tdTigger({eventCategory:"Compare variants",eventAction:"click",eventLabel:"Compare variants",channel_id:channel},"event_hyperlocal")}),$(document).ready(function(){var e=$.trim($(".rateCount").text());null!=e&&""!=e||($(".removehref").attr("href","javascript:void(0);"),$(".removehref").removeAttr("target"))}),$(document).ready(function(){document.getElementById("stars").innerHTML=function(e){$("[id*=greview]").show(),e=Math.round(2*e)/2;let t=[];for(var i=e;i>=1;i--)t.push('<li><i class="fa fa-star" aria-hidden="true" style="color: #2D3494;"></i></li>');.5==i&&t.push('<li><i class="fa fa-star-half-o" aria-hidden="true" style="color: #2D3494;"></i></li>');for(let i=5-e;i>=1;i--)t.push('<li><i class="fa fa-star-o" aria-hidden="true" style="color: #2D3494;"></i></li>');return t.join("")}($(".rating-value").html())}),$(document).ready(function(){var e=function(e){for(var t=e+"=",i=decodeURIComponent(document.cookie).split(";"),o=0;o<i.length;o++){for(var n=i[o];" "==n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return!1};0==e("cookieControl")&&($('<div id="cookieConsent"><div id="closeCookieConsent">x</div>We use cookies to ensure that we give you the best experience on our website.</div>').appendTo("body header").fadeIn(200),$("body").addClass("body-cookie"),$("#closeCookieConsent").click(function(){$("#cookieConsent").fadeOut(500),function(t,i,o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3);var s="expires="+n.toUTCString();document.cookie=t+"="+i+";"+s+";path=/",e(t)}("cookieControl",!0,30),$("body").removeClass("body-cookie")}))});var hex_chr="0123456789abcdef";function rhex(e){for(str="",j=0;j<=3;j++)str+=hex_chr.charAt(e>>8*j+4&15)+hex_chr.charAt(e>>8*j&15);return str}function str2blks_MD5(e){for(nblk=1+(e.length+8>>6),blks=new Array(16*nblk),i=0;i<16*nblk;i++)blks[i]=0;for(i=0;i<e.length;i++)blks[i>>2]|=e.charCodeAt(i)<<i%4*8;return blks[i>>2]|=128<<i%4*8,blks[16*nblk-2]=8*e.length,blks}function add(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function rol(e,t){return e<<t|e>>>32-t}function cmn(e,t,i,o,n,s){return add(rol(add(add(t,e),add(o,s)),n),i)}function ff(e,t,i,o,n,s,a){return cmn(t&i|~t&o,e,t,n,s,a)}function gg(e,t,i,o,n,s,a){return cmn(t&o|i&~o,e,t,n,s,a)}function hh(e,t,i,o,n,s,a){return cmn(t^i^o,e,t,n,s,a)}function ii(e,t,i,o,n,s,a){return cmn(i^(t|~o),e,t,n,s,a)}function calcMD5(e){for(x=str2blks_MD5(e),a=1732584193,b=-271733879,c=-1732584194,d=271733878,i=0;i<x.length;i+=16)olda=a,oldb=b,oldc=c,oldd=d,a=ff(a,b,c,d,x[i+0],7,-680876936),d=ff(d,a,b,c,x[i+1],12,-389564586),c=ff(c,d,a,b,x[i+2],17,606105819),b=ff(b,c,d,a,x[i+3],22,-1044525330),a=ff(a,b,c,d,x[i+4],7,-176418897),d=ff(d,a,b,c,x[i+5],12,1200080426),c=ff(c,d,a,b,x[i+6],17,-1473231341),b=ff(b,c,d,a,x[i+7],22,-45705983),a=ff(a,b,c,d,x[i+8],7,1770035416),d=ff(d,a,b,c,x[i+9],12,-1958414417),c=ff(c,d,a,b,x[i+10],17,-42063),b=ff(b,c,d,a,x[i+11],22,-1990404162),a=ff(a,b,c,d,x[i+12],7,1804603682),d=ff(d,a,b,c,x[i+13],12,-40341101),c=ff(c,d,a,b,x[i+14],17,-1502002290),b=ff(b,c,d,a,x[i+15],22,1236535329),a=gg(a,b,c,d,x[i+1],5,-165796510),d=gg(d,a,b,c,x[i+6],9,-1069501632),c=gg(c,d,a,b,x[i+11],14,643717713),b=gg(b,c,d,a,x[i+0],20,-373897302),a=gg(a,b,c,d,x[i+5],5,-701558691),d=gg(d,a,b,c,x[i+10],9,38016083),c=gg(c,d,a,b,x[i+15],14,-660478335),b=gg(b,c,d,a,x[i+4],20,-405537848),a=gg(a,b,c,d,x[i+9],5,568446438),d=gg(d,a,b,c,x[i+14],9,-1019803690),c=gg(c,d,a,b,x[i+3],14,-187363961),b=gg(b,c,d,a,x[i+8],20,1163531501),a=gg(a,b,c,d,x[i+13],5,-1444681467),d=gg(d,a,b,c,x[i+2],9,-51403784),c=gg(c,d,a,b,x[i+7],14,1735328473),b=gg(b,c,d,a,x[i+12],20,-1926607734),a=hh(a,b,c,d,x[i+5],4,-378558),d=hh(d,a,b,c,x[i+8],11,-2022574463),c=hh(c,d,a,b,x[i+11],16,1839030562),b=hh(b,c,d,a,x[i+14],23,-35309556),a=hh(a,b,c,d,x[i+1],4,-1530992060),d=hh(d,a,b,c,x[i+4],11,1272893353),c=hh(c,d,a,b,x[i+7],16,-155497632),b=hh(b,c,d,a,x[i+10],23,-1094730640),a=hh(a,b,c,d,x[i+13],4,681279174),d=hh(d,a,b,c,x[i+0],11,-358537222),c=hh(c,d,a,b,x[i+3],16,-722521979),b=hh(b,c,d,a,x[i+6],23,76029189),a=hh(a,b,c,d,x[i+9],4,-640364487),d=hh(d,a,b,c,x[i+12],11,-421815835),c=hh(c,d,a,b,x[i+15],16,530742520),b=hh(b,c,d,a,x[i+2],23,-995338651),a=ii(a,b,c,d,x[i+0],6,-198630844),d=ii(d,a,b,c,x[i+7],10,1126891415),c=ii(c,d,a,b,x[i+14],15,-1416354905),b=ii(b,c,d,a,x[i+5],21,-57434055),a=ii(a,b,c,d,x[i+12],6,1700485571),d=ii(d,a,b,c,x[i+3],10,-1894986606),c=ii(c,d,a,b,x[i+10],15,-1051523),b=ii(b,c,d,a,x[i+1],21,-2054922799),a=ii(a,b,c,d,x[i+8],6,1873313359),d=ii(d,a,b,c,x[i+15],10,-30611744),c=ii(c,d,a,b,x[i+6],15,-1560198380),b=ii(b,c,d,a,x[i+13],21,1309151649),a=ii(a,b,c,d,x[i+4],6,-145523070),d=ii(d,a,b,c,x[i+11],10,-1120210379),c=ii(c,d,a,b,x[i+2],15,718787259),b=ii(b,c,d,a,x[i+9],21,-343485551),a=add(a,olda),b=add(b,oldb),c=add(c,oldc),d=add(d,oldd);return rhex(a)+rhex(b)+rhex(c)+rhex(d)}!function(e,t){"object"==typeof exports?module.exports=exports=t():"function"==typeof define&&define.amd?define([],t):e.CryptoJS=t()}(this,function(){var e=e||function(e,t){var i=Object.create||function(){function e(){}return function(t){var i;return e.prototype=t,i=new e,e.prototype=null,i}}(),o={},n=o.lib={},s=n.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=n.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,o=this.sigBytes,n=e.sigBytes;if(this.clamp(),o%4)for(var s=0;s<n;s++){var a=i[s>>>2]>>>24-s%4*8&255;t[o+s>>>2]|=a<<24-(o+s)%4*8}else for(s=0;s<n;s+=4)t[o+s>>>2]=i[s>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i,o=[],n=function(t){t=t;var i=987654321,o=4294967295;return function(){var n=((i=36969*(65535&i)+(i>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},s=0;s<t;s+=4){var r=n(4294967296*(i||e.random()));i=987654071*r(),o.push(4294967296*r()|0)}return new a.init(o,t)}}),r=o.enc={},l=r.Hex={stringify:function(e){for(var t=e.words,i=e.sigBytes,o=[],n=0;n<i;n++){var s=t[n>>>2]>>>24-n%4*8&255;o.push((s>>>4).toString(16)),o.push((15&s).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,i=[],o=0;o<t;o+=2)i[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new a.init(i,t/2)}},c=r.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,o=[],n=0;n<i;n++){var s=t[n>>>2]>>>24-n%4*8&255;o.push(String.fromCharCode(s))}return o.join("")},parse:function(e){for(var t=e.length,i=[],o=0;o<t;o++)i[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new a.init(i,t)}},d=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},p=n.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,o=i.words,n=i.sigBytes,s=this.blockSize,r=n/(4*s),l=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,c=e.min(4*l,n);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(o,d);var p=o.splice(0,l);i.sigBytes-=c}return new a.init(p,c)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(n.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new h.HMAC.init(e,i).finalize(t)}}}),o.algo={});return o}(Math);return e}),function(e,t){"object"==typeof exports?module.exports=exports=t(require("./core")):"function"==typeof define&&define.amd?define(["./core"],t):t(e.CryptoJS)}(this,function(e){return function(t){var i=e,o=i.lib,n=o.WordArray,s=o.Hasher,a=i.algo,r=[],l=[];!function(){function e(e){for(var i=t.sqrt(e),o=2;o<=i;o++)if(!(e%o))return!1;return!0}function i(e){return 4294967296*(e-(0|e))|0}for(var o=2,n=0;n<64;)e(o)&&(n<8&&(r[n]=i(t.pow(o,.5))),l[n]=i(t.pow(o,1/3)),n++),o++}();var c=[],d=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(r.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,o=i[0],n=i[1],s=i[2],a=i[3],r=i[4],d=i[5],p=i[6],h=i[7],u=0;u<64;u++){if(u<16)c[u]=0|e[t+u];else{var f=c[u-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[u-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[u]=m+c[u-7]+v+c[u-16]}var b=o&n^o&s^n&s,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),$=h+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&d^~r&p)+l[u]+c[u];h=p,p=d,d=r,r=a+$|0,a=s,s=n,n=o,o=$+(y+b)|0}i[0]=i[0]+o|0,i[1]=i[1]+n|0,i[2]=i[2]+s|0,i[3]=i[3]+a|0,i[4]=i[4]+r|0,i[5]=i[5]+d|0,i[6]=i[6]+p|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=t.floor(o/4294967296),i[15+(n+64>>>9<<4)]=o,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),e.SHA256});var CryptoJS=CryptoJS||function(e,t){var i={},o=i.lib={},n=function(){},s=o.Base={extend:function(e){n.prototype=this;var t=new n;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,o=this.sigBytes;if(e=e.sigBytes,this.clamp(),o%4)for(var n=0;n<e;n++)t[o+n>>>2]|=(i[n>>>2]>>>24-n%4*8&255)<<24-(o+n)%4*8;else if(65535<i.length)for(n=0;n<e;n+=4)t[o+n>>>2]=i[n>>>2];else t.push.apply(t,i);return this.sigBytes+=e,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i=[],o=0;o<t;o+=4)i.push(4294967296*e.random()|0);return new a.init(i,t)}}),r=i.enc={},l=r.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],o=0;o<e;o++){var n=t[o>>>2]>>>24-o%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,i=[],o=0;o<t;o+=2)i[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new a.init(i,t/2)}},c=r.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],o=0;o<e;o++)i.push(String.fromCharCode(t[o>>>2]>>>24-o%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,i=[],o=0;o<t;o++)i[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new a.init(i,t)}},d=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,o=i.words,n=i.sigBytes,s=this.blockSize,r=n/(4*s);if(t=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,n=e.min(4*t,n),t){for(var l=0;l<t;l+=s)this._doProcessBlock(o,l);l=o.splice(0,t),i.sigBytes-=n}return new a.init(l,n)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new h.HMAC.init(e,i).finalize(t)}}});var h=i.algo={};return i}(Math);!function(){var e=CryptoJS,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,o=this._map;e.clamp(),e=[];for(var n=0;n<i;n+=3)for(var s=(t[n>>>2]>>>24-n%4*8&255)<<16|(t[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|t[n+2>>>2]>>>24-(n+2)%4*8&255,a=0;4>a&&n+.75*a<i;a++)e.push(o.charAt(s>>>6*(3-a)&63));if(t=o.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var i=e.length,o=this._map;(n=o.charAt(64))&&(-1!=(n=e.indexOf(n))&&(i=n));for(var n=[],s=0,a=0;a<i;a++)if(a%4){var r=o.indexOf(e.charAt(a-1))<<a%4*2,l=o.indexOf(e.charAt(a))>>>6-a%4*2;n[s>>>2]|=(r|l)<<24-s%4*8,s++}return t.create(n,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,i,o,n,s,a){return((e=e+(t&i|~t&o)+n+a)<<s|e>>>32-s)+t}function i(e,t,i,o,n,s,a){return((e=e+(t&o|i&~o)+n+a)<<s|e>>>32-s)+t}function o(e,t,i,o,n,s,a){return((e=e+(t^i^o)+n+a)<<s|e>>>32-s)+t}function n(e,t,i,o,n,s,a){return((e=e+(i^(t|~o))+n+a)<<s|e>>>32-s)+t}for(var s=CryptoJS,a=(l=s.lib).WordArray,r=l.Hasher,l=s.algo,c=[],d=0;64>d;d++)c[d]=4294967296*e.abs(e.sin(d+1))|0;l=l.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,s){for(var a=0;16>a;a++){var r=e[l=s+a];e[l]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}a=this._hash.words;var l=e[s+0],d=(r=e[s+1],e[s+2]),p=e[s+3],h=e[s+4],u=e[s+5],f=e[s+6],m=e[s+7],g=e[s+8],v=e[s+9],b=e[s+10],y=e[s+11],$=e[s+12],w=e[s+13],T=e[s+14],C=e[s+15],x=t(x=a[0],k=a[1],S=a[2],_=a[3],l,7,c[0]),_=t(_,x,k,S,r,12,c[1]),S=t(S,_,x,k,d,17,c[2]),k=t(k,S,_,x,p,22,c[3]);x=t(x,k,S,_,h,7,c[4]),_=t(_,x,k,S,u,12,c[5]),S=t(S,_,x,k,f,17,c[6]),k=t(k,S,_,x,m,22,c[7]),x=t(x,k,S,_,g,7,c[8]),_=t(_,x,k,S,v,12,c[9]),S=t(S,_,x,k,b,17,c[10]),k=t(k,S,_,x,y,22,c[11]),x=t(x,k,S,_,$,7,c[12]),_=t(_,x,k,S,w,12,c[13]),S=t(S,_,x,k,T,17,c[14]),x=i(x,k=t(k,S,_,x,C,22,c[15]),S,_,r,5,c[16]),_=i(_,x,k,S,f,9,c[17]),S=i(S,_,x,k,y,14,c[18]),k=i(k,S,_,x,l,20,c[19]),x=i(x,k,S,_,u,5,c[20]),_=i(_,x,k,S,b,9,c[21]),S=i(S,_,x,k,C,14,c[22]),k=i(k,S,_,x,h,20,c[23]),x=i(x,k,S,_,v,5,c[24]),_=i(_,x,k,S,T,9,c[25]),S=i(S,_,x,k,p,14,c[26]),k=i(k,S,_,x,g,20,c[27]),x=i(x,k,S,_,w,5,c[28]),_=i(_,x,k,S,d,9,c[29]),S=i(S,_,x,k,m,14,c[30]),x=o(x,k=i(k,S,_,x,$,20,c[31]),S,_,u,4,c[32]),_=o(_,x,k,S,g,11,c[33]),S=o(S,_,x,k,y,16,c[34]),k=o(k,S,_,x,T,23,c[35]),x=o(x,k,S,_,r,4,c[36]),_=o(_,x,k,S,h,11,c[37]),S=o(S,_,x,k,m,16,c[38]),k=o(k,S,_,x,b,23,c[39]),x=o(x,k,S,_,w,4,c[40]),_=o(_,x,k,S,l,11,c[41]),S=o(S,_,x,k,p,16,c[42]),k=o(k,S,_,x,f,23,c[43]),x=o(x,k,S,_,v,4,c[44]),_=o(_,x,k,S,$,11,c[45]),S=o(S,_,x,k,C,16,c[46]),x=n(x,k=o(k,S,_,x,d,23,c[47]),S,_,l,6,c[48]),_=n(_,x,k,S,m,10,c[49]),S=n(S,_,x,k,T,15,c[50]),k=n(k,S,_,x,u,21,c[51]),x=n(x,k,S,_,$,6,c[52]),_=n(_,x,k,S,p,10,c[53]),S=n(S,_,x,k,b,15,c[54]),k=n(k,S,_,x,r,21,c[55]),x=n(x,k,S,_,g,6,c[56]),_=n(_,x,k,S,C,10,c[57]),S=n(S,_,x,k,f,15,c[58]),k=n(k,S,_,x,w,21,c[59]),x=n(x,k,S,_,h,6,c[60]),_=n(_,x,k,S,y,10,c[61]),S=n(S,_,x,k,d,15,c[62]),k=n(k,S,_,x,v,21,c[63]);a[0]=a[0]+x|0,a[1]=a[1]+k|0,a[2]=a[2]+S|0,a[3]=a[3]+_|0},_doFinalize:function(){var t=this._data,i=t.words,o=8*this._nDataBytes,n=8*t.sigBytes;i[n>>>5]|=128<<24-n%32;var s=e.floor(o/4294967296);for(i[15+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),i[14+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(i.length+1),this._process(),i=(t=this._hash).words,o=0;4>o;o++)n=i[o],i[o]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);return t},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),s.MD5=r._createHelper(l),s.HmacMD5=r._createHmacHelper(l)}(Math),function(){var e,t=CryptoJS,i=(e=t.lib).Base,o=e.WordArray,n=(e=t.algo).EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=(r=this.cfg).hasher.create(),n=o.create(),s=n.words,a=r.keySize,r=r.iterations;s.length<a;){l&&i.update(l);var l=i.update(e).finalize(t);i.reset();for(var c=1;c<r;c++)l=i.finalize(l),i.reset();n.concat(l)}return n.sigBytes=4*a,n}});t.EvpKDF=function(e,t,i){return n.create(i).compute(e,t)}}(),CryptoJS.lib.Cipher||function(e){var t=(u=CryptoJS).lib,i=t.Base,o=t.WordArray,n=t.BufferedBlockAlgorithm,s=u.enc.Base64,a=u.algo.EvpKDF,r=t.Cipher=n.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){n.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,i,o){return("string"==typeof i?f:h).encrypt(e,t,i,o)},decrypt:function(t,i,o){return("string"==typeof i?f:h).decrypt(e,t,i,o)}}}});t.StreamCipher=r.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=u.mode={},c=function(e,t,i){var o=this._iv;o?this._iv=void 0:o=this._prevBlock;for(var n=0;n<i;n++)e[t+n]^=o[n]},d=(t.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();d.Encryptor=d.extend({processBlock:function(e,t){var i=this._cipher,o=i.blockSize;c.call(this,e,t,o),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),d.Decryptor=d.extend({processBlock:function(e,t){var i=this._cipher,o=i.blockSize,n=e.slice(t,t+o);i.decryptBlock(e,t),c.call(this,e,t,o),this._prevBlock=n}}),l=l.CBC=d,d=(u.pad={}).Pkcs7={pad:function(e,t){for(var i,n=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(n);i=o.create(s,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=r.extend({cfg:r.cfg.extend({mode:l,padding:d}),reset:function(){r.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=t.createEncryptor;else i=t.createDecryptor,this._minBufferSize=1;this._mode=i.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var p=t.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(l=(u.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?o.create([1398893684,1701076831]).concat(e).concat(t):t).toString(s)},parse:function(e){var t=(e=s.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var i=o.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return p.create({ciphertext:e,salt:i})}},t.SerializableCipher=i.extend({cfg:i.extend({format:l}),encrypt:function(e,t,i,o){o=this.cfg.extend(o);var n=e.createEncryptor(i,o);return t=n.finalize(t),n=n.cfg,p.create({ciphertext:t,key:i,iv:n.iv,algorithm:e,mode:n.mode,padding:n.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,t,i,o){return o=this.cfg.extend(o),t=this._parse(t,o.format),e.createDecryptor(i,o).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),u=(u.kdf={}).OpenSSL={execute:function(e,t,i,n){return n||(n=o.random(8)),e=a.create({keySize:t+i}).compute(e,n),i=o.create(e.words.slice(t),4*i),e.sigBytes=4*t,p.create({key:e,iv:i,salt:n})}},f=t.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:u}),encrypt:function(e,t,i,o){return i=(o=this.cfg.extend(o)).kdf.execute(i,e.keySize,e.ivSize),o.iv=i.iv,(e=h.encrypt.call(this,e,t,i.key,o)).mixIn(i),e},decrypt:function(e,t,i,o){return o=this.cfg.extend(o),t=this._parse(t,o.format),i=o.kdf.execute(i,e.keySize,e.ivSize,t.salt),o.iv=i.iv,h.decrypt.call(this,e,t,i.key,o)}})}(),function(){for(var e=CryptoJS,t=e.lib.BlockCipher,i=e.algo,o=[],n=[],s=[],a=[],r=[],l=[],c=[],d=[],p=[],h=[],u=[],f=0;256>f;f++)u[f]=128>f?f<<1:f<<1^283;var m=0,g=0;for(f=0;256>f;f++){var v=(v=g^g<<1^g<<2^g<<3^g<<4)>>>8^255&v^99;o[m]=v,n[v]=m;var b=u[m],y=u[b],$=u[y],w=257*u[v]^16843008*v;s[m]=w<<24|w>>>8,a[m]=w<<16|w>>>16,r[m]=w<<8|w>>>24,l[m]=w,w=16843009*$^65537*y^257*b^16843008*m,c[v]=w<<24|w>>>8,d[v]=w<<16|w>>>16,p[v]=w<<8|w>>>24,h[v]=w,m?(m=b^u[u[u[$^b]]],g^=u[u[g]]):m=g=1}var T=[0,1,2,4,8,16,32,64,128,27,54];i=i.AES=t.extend({_doReset:function(){for(var e=(i=this._key).words,t=i.sigBytes/4,i=4*((this._nRounds=t+6)+1),n=this._keySchedule=[],s=0;s<i;s++)if(s<t)n[s]=e[s];else{var a=n[s-1];s%t?6<t&&4==s%t&&(a=o[a>>>24]<<24|o[a>>>16&255]<<16|o[a>>>8&255]<<8|o[255&a]):(a=o[(a=a<<8|a>>>24)>>>24]<<24|o[a>>>16&255]<<16|o[a>>>8&255]<<8|o[255&a],a^=T[s/t|0]<<24),n[s]=n[s-t]^a}for(e=this._invKeySchedule=[],t=0;t<i;t++)s=i-t,a=t%4?n[s]:n[s-4],e[t]=4>t||4>=s?a:c[o[a>>>24]]^d[o[a>>>16&255]]^p[o[a>>>8&255]]^h[o[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,r,l,o)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,c,d,p,h,n),i=e[t+1],e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,o,n,s,a,r){for(var l=this._nRounds,c=e[t]^i[0],d=e[t+1]^i[1],p=e[t+2]^i[2],h=e[t+3]^i[3],u=4,f=1;f<l;f++){var m=o[c>>>24]^n[d>>>16&255]^s[p>>>8&255]^a[255&h]^i[u++],g=o[d>>>24]^n[p>>>16&255]^s[h>>>8&255]^a[255&c]^i[u++],v=o[p>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&d]^i[u++];h=o[h>>>24]^n[c>>>16&255]^s[d>>>8&255]^a[255&p]^i[u++],c=m,d=g,p=v}m=(r[c>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^i[u++],g=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&c])^i[u++],v=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[c>>>8&255]<<8|r[255&d])^i[u++],h=(r[h>>>24]<<24|r[c>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^i[u++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=h},keySize:8});e.AES=t._createHelper(i)}();