jQuery.noConflict(), (function (t, a, l) { "use strict"; (t = jQuery), (Isotope.Item.prototype.hide = function () { (this.isHidden = !0), this.css({ display: "none" }); }); var o, n, na, s, d, r, c = a.A13FRAMEWORK, h = l.documentElement, p = t(h), g = l.body, f = t(g), m = t(a), u = SKTParams, e = "rtl" === p.attr("dir"), v = !1, y = !1, b = [600, 768, 1024, 1300]; (a.A13FRAMEWORK = { onReady: function () { for (var e = ["single-album-slider", "single-album-scroller"], a = !1, h = 0; h < e.length; h++) if (f.hasClass(e[h])) { a = !0; break; } "undefined" == typeof t.fn.isotope || a || p.addClass("show-scroll"), (y = c.transitionsAvailable()), (o = t("#header")), (n = t("#header-tools")), (na = t("#header-tools1")), (s = t("#footer")), (d = t("#mid")), (r = t("#wpadminbar")), r.length && (v = !0), m.resize(c.debounce(c.layout.resize, 250)), f.on("webfontsloaded", function () { m.resize(); }), l.addEventListener("touchstart", function () {}, !0), c.layout.set(), c.runPlugins(), c.temporarySafes(), c.elementsActions.init(); }, layout: { pointers: [], size: 0, add: function (e) { c.layout.pointers.push(e); }, remove: function (e) { for (var t = c.layout.pointers, a = 0; a < t.length; a++) t[a] === e && delete t[a]; }, set: function () { var e, t = a.getComputedStyle ? getComputedStyle(g, ":after").getPropertyValue("content") : null, i = m.width(), l = null === t ? -1 : t.indexOf("narrow"); return (e = -1 === l ? i : parseInt(t.substr(l + 6), 10)), (c.layout.size = e), e; }, resize: function (t) { for (var e = c.layout, a = e.set(), l = e.pointers, o = 0; o < l.length; o++) void 0 !== l[o] && l[o].call(this, t, a); }, }, runPlugins: function () { t("div.post-media").fitVids(), t("div.real-content").find("p").fitVids(); }, temporarySafes: function () { m.bind("hashchange", function () { "#!" == a.location.hash && history.pushState("", l.title, a.location.pathname); }); }, cookieExpire: function (e, t) { var a, i = new Date(); i.setTime(i.getTime() + 1e3 * (60 * (60 * t))), (a = i.toUTCString()), (l.cookie = e + "; expires=" + a + "; path=/"); }, transitionsAvailable: function () { var e = l.createElement("div"); return e.style.transition !== void 0; }, windowVisibleAvailableHeight: function (e) { "undefined" == typeof e && (e = 0); var a, i = m.height(), l = v ? parseInt(r.height(), 10) : 0, n = o.hasClass("vertical"), s = 0; if ((n ? c.layout.size <= b[2] && (s = o.height()) : (s = 0 < e ? parseInt(f.css("padding-top"), 10) : 0), (a = i - l - s), f.hasClass("site-layout-bordered"))) { var d = t(".theme-borders"), h = d.find(".top-border"), p = d.find(".bottom-border"), g = h.length ? h.height() : 0, u = p.length ? p.height() : 0; a = a - g - u; } if (1 < e) { var y = t("header.title-bar.outside"), k = y.length ? y.height() : 0; a -= k; } return a; }, isInteger: function (e) { return "number" == typeof e && isFinite(e) && Math.floor(e) === e; }, throttle: function (s, t) { t || (t = 100); var d = null, h = +new Date(), p = !1, g = 0; return function () { var e = +new Date(), i = this, a = arguments, o = function () { clearTimeout(d), s.apply(i, a), (h = g = e), (p = !0), (d = setTimeout(function () { g !== h && o(); }, t)); }; !p || e - h > t ? o() : (g = e); }; }, debounce: function (a, t, l) { var e; return function () { var o = this, i = arguments; e ? clearTimeout(e) : l && a.apply(o, i), (e = setTimeout(function () { l || a.apply(o, i), (e = null); }, t || 100)); }; }, elementsActions: { init: function () { var e = c.elementsActions; e.preloader(), e.headerVertical(), e.headerHorizontal(), e.headerSearch(), e.topMessage(), e.logo(), e.menuOverlay(), e.sideMenu(), e.basketMenu(), e.toolsLanguages(), e.footer(), e.topMenu(), e.toTop(), u.scroll_to_anchor && e.scrollToAnchor(), e.parallax(), e.pageSlider(), e.titleBar(), e.stickyOnePage(), e.carousel(), e.countDown(), e.countTo(), e.fitText(), e.typedJS(), e.A13PostLightbox(), e.lightbox(), e.blogMasonry(), e.shopMasonry(), e.albumsListMasonry(), e.singleAlbumMasonry(), e.singleWork(), e.makeBricks(), e.makeSlider(), e.makeScroller(), e.worksListMasonry(), e.peopleListMasonry(), e.widgetSlider(), e.demoFlyOut(), "undefined" != typeof wp && "undefined" != typeof wp.customize && "undefined" != typeof wp.customize.selectiveRefresh && wp.customize.selectiveRefresh.bind("partial-content-rendered", function (a) { u.options_name + "[footer_switch]" === a.partial.id && (d.css("margin-bottom", ""), (s = t("#footer")), e.footer()); }), m.on("elementor/frontend/init", () => { "undefined" != typeof elementorFrontend && "undefined" != typeof elementorFrontend.hooks && (elementorFrontend.hooks.addAction("frontend/element_ready/shortcode.default", function (t) { e.typedJS(t), e.makeSlider(t), e.makeScroller(t), e.blogMasonry(t), e.albumsListMasonry(t), e.worksListMasonry(t), e.peopleListMasonry(t), e.makeBricks(t); }), elementorFrontend.hooks.addAction("frontend/element_ready/a13fe-slider.default", function (t) { e.makeSlider(t); }), elementorFrontend.hooks.addAction("frontend/element_ready/a13fe-scroller.default", function (t) { e.makeScroller(t); }), elementorFrontend.hooks.addAction("frontend/element_ready/a13fe-gallery.default", function (t) { e.makeBricks(t); }), elementorFrontend.hooks.addAction("frontend/element_ready/a13fe-post-list.default", function (t) { e.blogMasonry(t), e.albumsListMasonry(t), e.worksListMasonry(t), e.peopleListMasonry(t); })); }); }, stickyOnePage: function () { var e = d.find("div.content-box"); if (e.hasClass("a13-sticky-one-page")) { var i = d.find("div.real-content").children("div.vc_row"), l = [], o = void 0 === e.attr("data-a13-sticky-one-page-icon-global-color") ? "" : e.attr("data-a13-sticky-one-page-icon-global-color"), n = void 0 === e.attr("data-a13-sticky-one-page-icon-global-icon") ? "" : e.attr("data-a13-sticky-one-page-icon-global-icon"); i.each(function () { var e = t(this).attr("data-a13-sticky-one-page-icon-title"); l.push(void 0 === e ? "" : e); }), t(a).resize( c.debounce(function () { t.fn.fullpage.reBuild(); }, 250) ), t("div.real-content").fullpage({ lockAnchors: !1, autoScrolling: !0, scrollingSpeed: 700, fitToSection: !0, css3: !0, easingcss3: "ease", easing: "easeInOutCubic", continuousVertical: !1, loopBottom: !1, loopTop: !1, loopHorizontal: !0, scrollOverflow: !0, controlArrows: !1, verticalCentered: !0, responsiveWidth: 0, responsiveHeight: 0, fixedElements: "", keyboardScrolling: !0, animateAnchor: !0, recordHistory: !1, resize: !1, sectionSelector: "div.real-content > div.vc_row", navigation: !0, paddingTop: r.length ? parseInt(r.height(), 10) + "px" : "", navigationTooltips: l, showActiveTooltip: !0, scrollBar: !1, afterRender: function () { var e = t("#fp-nav").find("ul"); i.each(function (a) { var i = t(this).attr("data-a13-sticky-one-page-icon-class"), l = t(this).attr("data-a13-sticky-one-page-icon-color"), s = i ? i : n, d = l ? l : o; s ? e.children().eq(a).css({ color: d }).find("a").addClass("custom").find("span").addClass(s) : e.children().eq(a).css({ color: d }).find("a").find("span").css({ "background-color": d }); }), e.fadeIn(); }, afterLoad: function () {}, onLeave: function () {}, }); } }, carousel: function () { t(".a13_images_carousel").each(function () { var e = t(this), a = e.find(".owl-carousel"), i = 1 == e.data("wrap"), l = e.data("autoplay"), o = e.data("interval"), n = e.data("per_view"), s = "1" == e.data("hide_nav"), d = "1" == e.data("hide_pag"), r = function (e) { for (var t, a = {}, l = 0; l < e; l++) (t = {}), (t = l % 2 ? { items: l + 1 } : { items: l + 1, center: !0 }), (a[Math.floor(1 + l * (1920 / e))] = t); return a; }; m.on("load", function () { a.owlCarousel({ loop: i, items: n, autoplay: l, autoplayTimeout: o, responsive: r(n), nav: !s, navText: ['', ''], dots: !d }); }); }); }, countDown: function () { t("div.a13_count_down").each(function () { function e(e) { var t = e.match(c), a = {}; return ( l.forEach(function (e, l) { a[e] = t[l]; }), a ); } function a(e, t) { var a = []; return ( l.forEach(function (i) { e[i] !== t[i] && a.push(i); }), a ); } var i = t(this), l = [i.data("weeks"), i.data("days"), i.data("hours"), i.data("minutes"), i.data("seconds")], o = i.data("style"), n = i.data("date"), s = "simple" == o ? "" : _.template(t("#main-example-template").html()), d = "00:00:00:00:00", r = "00:00:00:00:00", c = /([0-9]{2})/gi; if ("simple" == o) i.countdown(n).on("update.countdown", function (e) { t(this).html( e.strftime( '
%w
' + i.data("weeks") + '
%d
' + i.data("days") + '
%H
' + i.data("hours") + '
%M
' + i.data("minutes") + '
%S
' + i.data("seconds") + "
" ) ); }); else { var h = e(d); l.forEach(function (e) { i.append(s({ curr: h[e], next: h[e], label: e })); }), i.countdown(n, function (t) { var l, o = t.strftime("%w:%d:%H:%M:%S"); o !== r && ((d = r), (r = o), (l = { curr: e(d), next: e(r) }), a(l.curr, l.next).forEach(function (e) { var t = ".%s".replace(/%s/, e), a = i.find(t); a.removeClass("flip"), a.find(".curr").text(l.curr[e]), a.find(".next").text(l.next[e]), _.delay( function (e) { e.addClass("flip"); }, 50, a ); })); }); } }); }, countTo: function () { var e = t("div.a13_counter"); e.each(function () { var e = t(this), a = e.find("span.number"), i = { onComplete: function () { e.find("span.finish-text").css({ visibility: "visible", opacity: "0", top: "-20px" }).animate({ top: "0", opacity: "1" }, 600); }, }; c.layout.size <= b[0] && (i.speed = 1), "undefined" == typeof t.fn.waypoint ? a.countTo(i) : e.waypoint( function () { a.countTo(i); }, { triggerOnce: !0, offset: "bottom-in-view" } ); }); }, fitText: function () { var e = d.find(".vc_custom_heading.a13-fit_text"), a = function (e) { var a = t(e).data("compress"), i = t(e).data("min-font-size"), l = t(e).data("max-font-size"), o = {}; "undefined" != typeof i && (o.minFontSize = i), "undefined" != typeof l && (o.maxFontSize = l), t(e).fitText(a, o); }; e.each(function () { "undefined" == typeof t.fn.waypoint ? "undefined" == typeof t.fn.vcwaypoint ? a(this) : t(this).vcwaypoint(t.proxy(a, this, this, 0), { offset: "bottom-in-view", triggerOnce: !0 }) : t(this).waypoint(t.proxy(a, this, this, 0), { offset: "bottom-in-view", triggerOnce: !0 }); }); }, typedJS: function (e) { e = "undefined" == typeof e ? f : e; var a = e.find(".a13-to-type"), i = function (e) { var a = t(e), i = [], l = 1 == a.data("loop"); if (!u.writing_effect_mobile && c.layout.size <= b[0]) a.addClass("disabled-writing"); else { var o = a.find(".typing-area"); if (o.data("typed")) return; a .find(".sentences-to-type") .children() .each(function () { i.push(t(this).html()); }), o.typed({ strings: i, startDelay: 500, typeSpeed: parseInt(u.writing_effect_speed, 10), loop: l }); } }; a.each(function () { var e = this; "function" == typeof Waypoint ? new Waypoint({ element: e, handler: function () { i(this.element), this.destroy(); }, offset: "85%", }) : "function" == typeof jQuery.waypoints ? t(this).waypoint(t.proxy(i, this, this, 0), { offset: "bottom-in-view", triggerOnce: !0 }) : "undefined" != typeof t.fn.vcwaypoint && t(this).vcwaypoint(t.proxy(i, this, this, 0), { offset: "bottom-in-view", triggerOnce: !0 }); }); }, parallax: function () { var e = t("div.a13-parallax, div.a13-parallax-video, header.a13-parallax"), i = function (e, t, a, i) { "undefined" == typeof i && (i = 1), (e.style.backgroundPosition = i * t + "% " + i * a + "%"); }, l = function (e, t, a) { var i = (a - e.innerHeight()) * t; e[0].style.top = i + "px"; }, o = function () { (d = !1), e.each(function () { var e = this, o = t(e), n = "no-repeat" !== getComputedStyle(e).getPropertyValue("background-repeat"), d = o.hasClass("a13-parallax-video"), r = d ? o.children("video.a13-bg-video") : t([]), c = d ? o.data("a13-parallax-video-type") : o.data("a13-parallax-type"), p = n ? o.data("a13-parallax-speed") : 1; if (!d || (d && r.length)) { var g = a.innerHeight || h.clientHeight, f = s, m = f + g, u = o.innerHeight(), v = o.offset().top, y = v + u + g, b = (m - v) / (y - v); m >= v && m <= y && ("tb" === c ? d ? l(r, b, u) : i(e, 50, 100 * b, p) : "bt" === c ? d ? l(r, 1 - b, u) : i(e, 50, 100 * (1 - b), p) : "lr" === c ? i(e, 100 * b, 50, p) : "rl" === c ? i(e, 100 * (1 - b), 50, p) : "tlbr" === c ? i(e, 100 * b, 100 * b, p) : "trbl" === c ? i(e, 100 * (1 - b), 100 * b, p) : "bltr" === c ? i(e, 100 * b, 100 * (1 - b), p) : "brtl" === c && i(e, 100 * (1 - b), 100 * (1 - b), p)); } }); }, n = function () { d || requestAnimationFrame(o), (d = !0); }, s = 0, d = !1; e.length && (m.off("scroll.parallax resize.parallax a13_parallax_trigger.parallax").on("scroll.parallax resize.parallax a13_parallax_trigger.parallax", function () { (s = h.scrollTop || a.pageYOffset || 0), n(); }), m.trigger("a13_parallax_trigger")); }, preloader: function (e) { var a = t("#preloader"); if (a.length) { var i = a.find("div.preload-content"), o = a.find("a.skip-preloader"), n = a.hasClass("onReady"), s = function () { i.fadeOut() .promise() .done(function () { a.fadeOut(400); }); }, d = function () { o.hide(), i.show(), a.fadeIn(); }; "undefined" == typeof e ? n ? t(l).ready(s) : (o.fadeIn().on("click", function (e) { e.stopPropagation(), e.preventDefault(), s(); }), m.load(s)) : e ? d() : s(); } }, logo: function () { var e = o.find(".image-logo"), t = "", a = function () { t.on("load", function () { f.trigger("a13LogoLoaded"); }); }; if (e.length) { if (((t = o.find("a." + u.default_header_variant + "-logo").children()), t.is("img"))) return void a(); if (((t = o.find("a.normal-logo").children()), t.is("img"))) return void a(); } f.trigger("a13LogoLoaded"); }, topMenu: function () { var i = o.find("ul.sub-menu"), l = o.find("div.menu-container"), s = l.children(), d = i.parent().not(function () { return t(this).parents(".mega-menu").length; }), r = t("#mobile-menu-opener"), h = t("#content-overlay"), p = c.layout.size, g = o.hasClass("vertical"), v = function (e) { if ("undefined" != typeof e && !1 === e) o.removeClass("desktop_menu"), C(void 0, !0), d.off("click").children("i.sub-mark, span.title").off("click"); else if ( (o.addClass("desktop_menu"), d.children("i.sub-mark, span.title, .top-menu li a").on("click keydown", function (e) { if ("keydown" !== e.type || -1 !== [13, 32].indexOf(e.keyCode)) { e.stopPropagation(), e.preventDefault(); var a = t(this).parent(), i = a.children("ul.sub-menu"), l = a.hasClass("open"); C(a), l || (0 < a.parents("li").length ? a.children("i.sub-mark").removeClass(u.submenu_third_lvl_opener).addClass(u.submenu_third_lvl_closer) : a.children("i.sub-mark").removeClass(u.submenu_opener).addClass(u.submenu_closer), x(i), g ? (a.addClass("open"), i.slideDown(600, function () { m.trigger("mess_in_header"); })) : (i.show(), setTimeout(function () { a.addClass("open"); }, 15)), f.off("click", k), f.on("click", k)); } }), g) ) { var a = d.filter(".to-open"); a.length && a.addClass("open"); } }, k = function (e) { t(e.target).parents().addBack().hasClass("menu-container") || (e.stopPropagation(), e.preventDefault(), C()); }, C = function (e, a) { var i, l = function (e) { n.is(e.target) && "visibility" === e.originalEvent.propertyName && (n.off("transitionend", l), o()); }, o = function () { n.removeClass("otherway").attr("style", ""), i.each(function () { var e = t(this); 0 < e.parents("li").length ? e.children("i.sub-mark").removeClass(u.submenu_third_lvl_closer).addClass(u.submenu_third_lvl_opener) : e.children("i.sub-mark").removeClass(u.submenu_closer).addClass(u.submenu_opener); }); }; if (("undefined" == typeof e ? (i = d.filter(".open")) : ((i = e.siblings("li").addBack().filter(".open")), 1 < s.length && (i = i.add(e.parents(".top-menu").siblings().find("li.open")))), g)) i.children("ul.sub-menu") .slideUp(350) .promise() .done(function () { i.removeClass("open"), 0 < i.parents("li").length ? i.children("i.sub-mark").removeClass(u.submenu_third_lvl_closer).addClass(u.submenu_third_lvl_opener) : i.children("i.sub-mark").removeClass(u.submenu_closer).addClass(u.submenu_opener), m.trigger("mess_in_header"); }); else { var n = i.children("ul.sub-menu"); y && "undefined" == typeof a ? (n.on("transitionend", l), i.removeClass("open")) : (i.removeClass("open"), o()); } f.off("click", k); }, x = function (t) { o.css("overflow", "hidden"); var a, i, l, n = m.width(), s = t.addClass("measure").width(), d = t.parent(), r = d.offset(), c = d.hasClass("mega-menu"), h = 0, p = e ? "right" : "left", f = !1; if ((g || t.css(p, ""), t.removeClass("measure"), g)) c && s > n - o.width() && t.width(n); else if (((l = r.left), (i = e ? n - (l + d.outerWidth()) : l), c)) s > n && (t.width(n), (s = n)), (h = i + s), h > n && t.css(p, -(h - n)); else { if (((a = t.parents("ul")), (h = a.length), 1 === h)) i + s > n && (f = !0); else if (1 < h) { var u = a.eq(0), v = u.offset().left, y = a.eq(0).width(), b = e ? n - (v + y) : v; b + y + s > n && (f = !0); } f && t.addClass("otherway"); } o.css("overflow", ""); }, w = function (t) { t.preventDefault(), r.trigger("click"); }, z = function (e) { e.stopPropagation(), e.preventDefault(); var a = t(this); l.hasClass("open") ? (l.slideUp(200, function () { l.children().hide(), i.attr("style", ""), d.removeClass("open").attr("style", ""), A(), a.removeClass("active"); }), l.removeClass("open"), f.removeClass("mobile-menu-open"), h.off("click", w)) : (s.show(), l.slideDown(200, A), l.addClass("open"), a.addClass("active"), f.addClass("mobile-menu-open"), h.on("click", w)); }, T = function (e) { e.stopPropagation(), e.preventDefault(); var a = t(this).parent(), i = a.children("ul"); a.hasClass("open") ? (i.slideUp(200, A), a.removeClass("open")) : (i.slideDown(200, A), a.addClass("open")); }, A = function () { var e = o.height() + l.height(), t = g ? parseInt(o.css("top"), 10) : parseInt(o.css("margin-top"), 10), a = m.height(), i = o.hasClass("scrollable-menu"); (g && c.layout.size <= b[0]) || (!i && e > a - t ? o.addClass("scrollable-menu").css(g ? "margin-top" : "top", m.scrollTop()) : i && e <= a - t && o.removeClass("scrollable-menu").css(g ? "margin-top" : "top", "")); }, M = function (e) { "undefined" != typeof e && !1 === e ? (o.removeClass("mobile-menu"), r.off("click"), l.removeClass("open").attr("style", ""), r.removeClass("active"), s.css("display", ""), n.removeClass("menu-open"), o.removeClass("scrollable-menu").css("margin-top", ""), i.length && (d.removeClass("open").children("i.sub-mark, span.title").off("click"), i.removeClass("open").attr("style", "")), f.removeClass("mobile-menu-open"), h.off("click", w), !!parseInt(u.close_mobile_menu_on_click, 10) && s.children().not(d).off("click.mobile")) : (o.addClass("mobile-menu"), r.off("click"), r.on("click", z), i.length && (d.children("i.sub-mark, span.title").off("click keypress"), d.children("i.sub-mark, span.title").on("click keypress", T)), !!parseInt(u.close_mobile_menu_on_click, 10) && s .children() .not(d) .off("click.mobile") .on("click.mobile", function () { r.trigger("click"); })); }, S = function (e, t) { var a = l.data("menu-type"), i = !!parseInt(u.allow_mobile_menu, 10); !i || (t > b[2] && "desktop" !== a) ? (M(!1), v(!0), l.data("menu-type", "desktop")) : i && t <= b[2] && "mobile" !== a && (v(!1), M(!0), l.data("menu-type", "mobile")); }, L = function () { var e = l.find('a[href*="#"]').not('a[href="#"]'), o = t([]), n = [], s = function (e) { var a = t("#" + e), i = m.height(), l = m.scrollTop(), o = l + i, n = a.offset().top, s = n + a.outerHeight(), d = o - 0.75 * i; return { inView: !((s >= o && n >= o) || (s <= l && n <= l)), inActivePoint: s >= d && n <= d }; }, d = function () { for (var e, t, a, l, d = [], r = 0; r < n.length; r++) (t = n[r]), (a = o.filter('a[href*="#' + t + '"]')), (l = s(t)), l.inView ? d.push({ links: a, positions: l }) : a.parent().removeClass("current-menu-item"); if (((e = d.length), 1 === e)) d[0].links.parent().addClass("current-menu-item"); else if (1 < e) for (r = 0; r < d.length; r++) d[r].positions.inActivePoint ? d[r].links.parent().addClass("current-menu-item") : d[r].links.parent().removeClass("current-menu-item"); }, r = function (e) { return e.split("?", 1)[0].replace(/^https?\:\/\//i, ""); }; e.length && (e.each(function () { var e, i, l = t(this), s = l.attr("href").split("/#", 2); 2 === s.length ? ((i = s[1]), (e = s[0])) : ((s = l.attr("href").split("#", 2)), (e = s[0]), (i = s[1])), i.length && ((e = r(e)), ((e.length && -1 < a.location.href.indexOf(e)) || !e.length) && t("#" + i).length && ((o = o.add(l)), n.push(i))); }), (n = n.filter(function (e, t, a) { return a.indexOf(e) === t; })), o.length && (m.scroll(c.throttle(d, 500)), d(), f.on("revolution.slide.onloaded", d))); }; c.layout.add(S), S({}, p), L(), l.addClass("loaded"); }, headerHorizontal: function () { if (o.hasClass("a13-horizontal")) { for ( var e, a = 0, l = "", n = o.outerHeight(), s = o.find("div.top-bar-container"), r = o.find("nav.navigation-bar"), h = o.hasClass("header-type-one_line"), p = h && o.find("div.logo-container").hasClass("shield"), g = void 0, v = o.find("ul.top-menu").children().children("a, span.title"), k = !o.hasClass("no-sticky"), C = !o.hasClass("sticky-no-hiding"), x = o.hasClass("hide-until-scrolled-to"), w = t("div.rev_slider").filter(function () { return t("li[data-variant]", this).length; }), z = t("div.vc_row").filter("[data-a13-header-color-variant]"), T = u.header_color_variants, A = u.default_header_variant, M = "sticky", S = A, L = A, D = ["dark", "light", "normal", M], q = "hidden-logo", O = k || x || z.length || w.length, P = 0, j = { normal: o.find("a.normal-logo"), sticky: o.find("a.sticky-logo"), light: o.find("a.light-logo"), dark: o.find("a.dark-logo") }, E = { normal: u.header_normal_social_colors.split("|"), light: u.header_light_social_colors.split("|"), dark: u.header_dark_social_colors.split("|"), sticky: u.header_sticky_social_colors.split("|") }, H = t([]), B = "", W = function () { if ((!p && h && ((g = void 0), F()), (n = parseInt(o.outerHeight(), 10)), "content" === u.hide_content_under_header)); else if ("title" === u.hide_content_under_header) { var e, t = d.find("header.outside"), a = t.children(); t.length && (a.css("padding-top", ""), (e = parseInt(a.css("padding-top"), 10)), a.css("padding-top", n + e)); } else f.css("padding-top", n); O && N(), m.trigger("resize.vcRowBehaviour"); }, I = function (e) { var t = m.scrollTop(), a = t + parseInt(n / 2, 10), i = e.outerHeight(), l = e.offset().top; return a > l && a < l + i; }, R = function (e) { if (e) o.addClass("sticky-values"), s.length && !u.header_sticky_top_bar && (y ? (s.css("height", s.height() + "px"), s.on("transitionend", X), setTimeout(function () { s.addClass("hide").css("height", ""); }, 15)) : s.addClass("hide").hide()), C && (clearTimeout(P), (P = setTimeout(function () { o.css("position", "fixed"); }, 800))), f.trigger("header-sticked"); else { if ((o.removeClass("sticky-values"), s.length && !u.header_sticky_top_bar)) if (y) { s.show().addClass("measure"); var t = s.height(); s.removeClass("measure"), s.on("transitionend", J), setTimeout(function () { s.removeClass("hide").css("height", t + "px"); }, 15); } else s.show().removeClass("hide"); C && (clearTimeout(P), (P = setTimeout(function () { o.css("position", ""); }, 800))), f.trigger("header-unsticked"); } }, V = function (e, t) { o .children("div.head") .find("div.socials") .removeClass(E[e][0] + " " + E[e][1]) .addClass(E[t][0] + " " + E[t][1]), s.length && s .find("div.socials") .removeClass(E[e][2] + " " + E[e][3]) .addClass(E[t][2] + " " + E[t][3]); }, N = function (i, e) { if (k) { var s = m.scrollTop(), r = s < n, c = s > a, h = s < a, p = 0; !r && c && "noTop_scrollingDown" !== l ? ((l = "noTop_scrollingDown"), C && o.addClass("sticky-hide"), R(1)) : r && c && "top_scrollingDown" !== l ? (l = "top_scrollingDown") : C && (0 === s || 0 > s) && h && o.hasClass("sticky-values") ? (o.css("position", ""), o.removeClass("sticky-hide"), R(0)) : C && r && h && "top_scrollingUp" !== l && "top_scrollingDown" !== l ? (o.css("position", "fixed"), (l = "top_scrollingUp"), o.removeClass("sticky-hide")) : !C && r && h && "top_scrollingUp" !== l && "top_scrollingDown" !== l ? ((l = "top_scrollingUp"), R(0)) : !r && h && "noTop_scrollingUp" !== l && ((l = "noTop_scrollingUp"), C && (o.css("position", "fixed"), o.removeClass("sticky-hide")), R(1)), (a = s); } var g = !1; if (w.length) for (p = 0; p < w.length; p++) { var f = w.eq(p); if (I(f)) { var v, y = void 0; if ("undefined" == typeof i || "undefined" == typeof i.type || "revolution" !== i.type || "onbeforeswap.slide" !== i.namespace) (v = f.attr("data-slideactive")), "undefined" != typeof v && (y = f.find('li[data-index="' + v + '"]').attr("data-variant")); else if (e.nextslide.parents("div.rev_slider").eq(0).is(f)) y = e.nextslide.attr("data-variant"); else return; "undefined" != typeof y && ((g = !0), U(y)); break; } } if (!g && z.length) for (p = 0; p < z.length; p++) if (I(z.eq(p))) { (g = !0), U(z.eq(p).attr("data-a13-header-color-variant")); break; } if ((g || U(), x)) { var b = parseInt(u.show_header_at, 10), T = {}; (b = 0 < b ? b : 1), "object" == typeof elementorFrontend ? (T = t(".elementor-section-wrap") .children() .eq(b - 1)) : "function" == typeof vc_js && (T = d .find("div.real-content") .children("div.vc_row") .eq(b - 1)), T.length && m.scrollTop() < T.offset().top ? o.addClass("hide-until-scrolled-to") : o.removeClass("hide-until-scrolled-to"); } }, F = function (t) { var e = parseInt(o.find("div.logo-container").find("a.logo").not(".hidden-logo").innerHeight(), 10), a = !!parseInt(u.allow_mobile_menu, 10), i = c.layout.size; ("undefined" == typeof g || ("undefined" != typeof t && "a13LogoLoaded" === t.type)) && (g = e), "undefined" != typeof t && "header-unsticked" === t.type && (e = g), v.length ? (i > b[2] || !a ? v.css({ "line-height": e + "px", height: e + "px" }) : v.css({ "line-height": "", height: "" })) : i > b[2] ? r.css("min-height", e) : r.css("min-height", ""); }, U = function (e) { "off" !== T && ("sticky" === T && (e = "normal"), (L = S), (S = e), "undefined" == typeof S ? (o.hasClass("sticky-values") ? (S = M) : (S = A)) : "normal" === S && o.hasClass("sticky-values") && (S = M), L === S || (G(), Y())); }, G = function () { o.removeClass(B), H.length && H.addClass(q), V(L, A); }, Y = function () { o.addClass("a13-" + S + "-variant"), j[S].length ? j[S].removeClass(q) : e.removeClass(q), V(A, S); }, X = function (e) { s.is(e.target) && "visibility" === e.originalEvent.propertyName && (s.off("transitionend", X), s.hide()); }, J = function (e) { s.is(e.target) && "opacity" === e.originalEvent.propertyName && (s.off("transitionend", J), s.css({ display: "", height: "" })); }, K = 0; K < D.length; K++ ) (B += " a13-" + D[K] + "-variant"), (H = H.add(j[D[K]])), A === D[K] && (j[D[K]].length ? (e = j[D[K]]) : (e = j.normal)); !p && h && (f.on("a13LogoLoaded header-unsticked header-sticked", F), o.find("a.logo").on("transitionend", function (t) { "padding-top" === t.originalEvent.propertyName && (o.hasClass("sticky-values") ? F() : setTimeout(function () { W({}, c.layout.size); }, 500)); }), v.length && v.eq(0).on("transitionend", function (t) { v.eq(0).is(t.target) && "height" === t.originalEvent.propertyName && !o.hasClass("sticky-values") && W({}, c.layout.size); })), f.on("a13LogoLoaded", W), c.layout.add(W), W({}, c.layout.size), O && m.scroll(c.throttle(N, 250)), w.length && w.on("revolution.slide.onbeforeswap", N); } }, headerVertical: function () { if (o.hasClass("vertical")) { var e, i, l, n, p, g, u, y, k, C, x, w, z, T, A = o.find("div.head"), M = 0, S = 0, L = !1, D = f.hasClass("site-layout-bordered"), q = D && !f.hasClass("no-border-top"), O = D && !f.hasClass("no-border-bottom"), P = t("div.theme-borders"), j = P.find("div.top-border"), E = P.find("div.bottom-border"), H = !1, B = function () { (w = m.height()), (z = f.height()), (u = v ? parseInt(r.height(), 10) : 0), (y = q ? parseInt(j.height(), 10) : 0), (k = O ? parseInt(E.height(), 10) : 0), (C = y + k), (n = u + y), (g = u + C); }, W = function () { (S = h.scrollTop || a.pageYOffset || 0), I(); }, I = function () { L || requestAnimationFrame(function () { V(); }), (L = !0); }, R = function () { (i = l = !1), o.css("top", "").removeClass("stick_to_top").removeClass("stick_to_bottom"), (M = -1); }, V = function (t) { "undefined" == typeof t && (t = !1), (L = !1), b[2] > e || ((x = A.innerHeight()), t && R(), x > w - g ? S >= M ? i ? ((i = !1), o.removeClass("stick_to_top"), (p = S + u), o.css("top", p)) : !l && S + w > x + o.offset().top + k && x + g < z && ((l = !0), o.css("top", "").addClass("stick_to_bottom").removeClass("stick_to_top")) : S < M && (l ? ((l = !1), o.removeClass("stick_to_bottom"), (p = S - C + w - x), o.css("top", p)) : !i && S + n < o.offset().top && ((i = !0), o.css("top", "").addClass("stick_to_top").removeClass("stick_to_bottom"))) : !i && ((i = !0), (l = !1), o.css("top", "").addClass("stick_to_top").removeClass("stick_to_bottom")), (M = S)); }, N = function () { (e = m.width()), (S = h.scrollTop || a.pageYOffset || 0), V(!0); }, F = function (e, a) { B(); var i = o.find("nav.navigation-bar"); A.css("padding-bottom", ""), i.css("height", ""); var l = parseInt(A.css("padding-bottom"), 10); if (a > b[2]) { if (H) return ( (H = !1), clearTimeout(T), void (T = setTimeout(function () { F(e, a); }, 500)) ); d.css("padding-top", ""), s.length && (!t("#footer-was-here").length && (s.before('