")
}), e(".woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control").on("click", function() {
e(".woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control").removeClass("active"), e(this).addClass("active");
var t = e(this).index() + 1;
e('#customer_login div[class*="u-column"]').hide(), e('#customer_login div[class*="u-column"].col-' + t).show(), setTimeout(function() {
e('#customer_login div[class*="u-column"]').removeClass("visible"), e('#customer_login div[class*="u-column"].col-' + t).addClass("visible")
}, 30)
}), e(".woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control:nth-child(1)").trigger("click"))
}
function o() {
e(".products .classic .product-wrap .add_to_cart_button").wrapInner(""), e(".products .classic .product-wrap .add_to_cart_button").prepend(''), Hn.on("mouseover", ".products .minimal.product", function() {
l(e(this))
}), Hn.on("mouseleave", ".products .minimal.product", function() {
e(this).find(".background-color-expand").css({
transform: "scale(1)"
})
}), e(".products .minimal.product").each(function() {
e(this).is(":hover") && e(this).trigger("mouseover")
})
}
function l(e) {
var t = e,
a = t.width(),
n = t.height(),
i = (parseInt(a) + 40) / parseInt(a),
s = (parseInt(n) + 40) / parseInt(n);
t.addClass("hover-bound"), t.find(".background-color-expand").css({
transform: "scale(" + i + "," + s + ") translateY(0px)"
})
}
function d() {
e(".nectar-slide-in-cart ul.cart_list li:not(.empty)").length > 0 && (e(".nectar-slide-in-cart").addClass("open"), En.on("mousemove.rightCartOffsetCheck", c))
}
function c(t) {
var a = En.width();
t.clientX < a - 370 - qn && (En.off("mousemove.rightCartOffsetCheck", c), e(".nectar-slide-in-cart").removeClass("open"))
}
var h;
Hn.on("click", ".product .add_to_cart_button", function() {
var t = e(this).parents("li").find("h2").length > 0 ? "h2" : "h3",
a = e(this).parents("li").find(t).text();
e("#header-outer .cart-notification span.item-name").html(a)
}), Hn.on("mouseenter", "#header-outer .cart-notification", function() {
e(this).hide(), e("#header-outer .widget_shopping_cart").addClass("open").stop(!0, !0).show(), e("#header-outer .cart_list").stop(!0, !0).show(), clearTimeout(h)
});
var u = "#header-outer .nectar-woo-cart";
if (e(u).length > 0 && e(u).hoverIntent(function() {
e("#header-outer .widget_shopping_cart").addClass("open").stop(!0, !0).show(), e("#header-outer .cart_list").stop(!0, !0).show(), clearTimeout(h), e("#header-outer .cart-notification").hide()
}), Hn.on("mouseleave", u, function() {
var t = e(this);
setTimeout(function() {
t.is(":hover") || (e("#header-outer .widget_shopping_cart").removeClass("open").stop(!0, !0).fadeOut(300), e("#header-outer .cart_list").stop(!0, !0).fadeOut(300))
}, 200)
}), 0 == e('#header-outer[data-cart="false"]').length && (Hn.on("added_to_cart", a), Hn.on("added_to_cart", t), Hn.on("removed_from_cart", s)), 0 == e('#header-outer[data-cart="false"]').length && i(), r(), Hn.on("mouseover", ".text_on_hover .product-wrap, .text_on_hover > a:first-child", function() {
e(this).parent().addClass("hovered")
}), Hn.on("mouseout", ".text_on_hover .product-wrap, .text_on_hover > a:first-child", function() {
e(this).parent().removeClass("hovered")
}), e(".material.product").length > 0 || e(".minimal.product").length > 0 || e('.nectar-fancy-box[data-style="parallax_hover"]').length > 0 || e('.nectar-category-grid[data-shadow-hover="yes"]').length > 0 || e('.nectar-post-grid[data-shadow-hover="yes"]').length > 0) {
var p = 101;
Hn.on("mouseenter", '.material.product, .minimal.product, .nectar-fancy-box[data-style="parallax_hover"], .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item, .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item', function() {
p++, e(this).css("z-index", p + 1)
}), Hn.on("mouseleave", '.material.product, .minimal.product, .nectar-fancy-box[data-style="parallax_hover"], .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item, .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item', function() {
var t = e(this);
setTimeout(function() {
t.is(":hover") || t.css("z-index", 100)
}, 350)
}), setInterval(function() {
e('.nectar-fancy-box[data-style="parallax_hover"]:hover').length > 0 || e(".minimal.product:hover").length > 0 || (e('.material.product:not(:hover), .minimal.product:not(:hover), .nectar-fancy-box[data-style="parallax_hover"]:not(:hover), .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item:not(:hover), .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item:not(:hover)').css("z-index", 100), p = 101)
}, 1e4)
}
o(), e(".woocommerce #sidebar .widget.woocommerce").each(function() {
0 == e(this).find("> h4").length && e(this).addClass("no-widget-title")
}), Hn.on("click", "#sidebar .widget.woocommerce:not(.widget_price_filter) h4", function() {
En.width() < 1e3 && (e(this).parent().is(".widget_product_tag_cloud") && e(this).parent().find("> div").slideToggle(), e(this).parent().is(".woocommerce-widget-layered-nav") && e(this).parent().find("> .woocommerce-widget-layered-nav-dropdown").length > 0 && e(this).parent().find("> .woocommerce-widget-layered-nav-dropdown").slideToggle(), e(this).parent().find("> ul").slideToggle(), e(this).parent().toggleClass("open-filter"))
}), Hn.on("mouseenter", '#header-outer [data-cart-style="slide_in"] .cart-menu-wrap', d), ta()
}
function na() {
function t() {
Hn.hasClass("ascend") || e('body[data-header-format="left-header"]').length > 0 && 0 == e("body.material").length ? (e("#search-outer").stop().transition({
opacity: 0
}, 300, "cubic-bezier(0.2, 1, 0.3, 1)"), Sn.addClass("inactive"), setTimeout(function() {
e("#search-outer").hide(), Sn.removeClass("inactive")
}, 300)) : 0 == e("body.material").length && e("#search-outer").stop(!0).fadeOut(450, "easeOutExpo"), Hn.hasClass("material") && (e("#ajax-content-wrap").removeClass("material-open"), On.removeClass("material-search-open"), e("#search-outer").removeClass("material-open"), e("#fp-nav").removeClass("material-ocm-open"))
}
var n = e("#search-outer #search input[type=text][data-placeholder]").length > 0 ? e("#search-outer #search input[type=text]").attr("data-placeholder") : "";
Hn.hasClass("material") && 0 == e("#header-outer .bg-color-stripe").length && On.append(''), Hn.on("click", "#search-btn a", function() {
return !1
}), Hn.on("click", "#search-btn a:not(.inactive), #header-outer .mobile-search", function() {
return !e(this).hasClass("open-search") && (Hn.hasClass("original") && e(".slide-out-widget-area-toggle.mobile-icon a.open").length > 0 && (e(".slide-out-widget-area-toggle.mobile-icon a").addClass("non-human-allowed").trigger("click"), setTimeout(function() {
e(".slide-out-widget-area-toggle.mobile-icon a").removeClass("non-human-allowed")
}, 100)), Hn.hasClass("ascend") || e('body[data-header-format="left-header"]').length > 0 && 0 == e("body.material").length ? (e("#search-outer > #search form, #search-outer #search .span_12 span, #search-outer #search #close").css("opacity", 0), e("#search-outer > #search form").css("transform", "translateY(-30px)"), e("#search-outer #search .span_12 span").css("transform", "translateY(20px)"), e("#search-outer").show(), e("#search-outer").stop().transition({
scale: "1,0",
opacity: 1
}, 0).transition({
scale: "1,1"
}, 700, "cubic-bezier(0.2, 1, 0.3, 1)"), e("#search-outer > #search form").delay(350).transition({
opacity: 1,
transform: "translateY(0)"
}, 700, "cubic-bezier(0.2, 1, 0.3, 1)"), e("#search-outer #search #close").delay(500).transition({
opacity: 1
}, 700, "cubic-bezier(0.2, 1, 0.3, 1)"), e("#search-outer #search .span_12 span").delay(450).transition({
opacity: 1,
transform: "translateY(0)"
}, 700, "cubic-bezier(0.2, 1, 0.3, 1)")) : Hn.hasClass("material") ? (e('#header-outer[data-transparent-header="true"] .bg-color-stripe').css("transition", ""), e("#search-outer, #ajax-content-wrap").addClass("material-open"), On.addClass("material-search-open"), e("#fp-nav").addClass("material-ocm-open")) : e("#search-outer").stop(!0).fadeIn(600, "easeOutExpo"), setTimeout(function() {
e("#search input[type=text]").trigger("focus"), e("#search input[type=text]").val() == n && e("#search input[type=text]").setCursorPosition(0)
}, 300), e(this).toggleClass("open-search"), e(".slide-out-widget-area-toggle a:not(#toggle-nav).open:not(.animating)").trigger("click"), !1)
}), e("body:not(.material)").on("keydown", "#search input[type=text]", function() {
e(this).val() == n && e(this).val("")
}), e("body:not(.material)").on("keyup", "#search input[type=text]", function() {
0 == e(this).val().length && (e(this).val(n), e(this).setCursorPosition(0))
}), Hn.on("click", "#close", function() {
return t(), Sn.removeClass("open-search"), e("#header-outer .mobile-search").removeClass("open-search"), !1
}), e("body:not(.material)").on("blur", "#search-box input[type=text]", function() {
t(), Sn.removeClass("open-search"), e("#header-outer .mobile-search").removeClass("open-search")
}), e("body.material").on("click", "#ajax-content-wrap", function(a) {
void 0 !== a.originalEvent && (t(), Sn.removeClass("open-search"), e("#header-outer .mobile-search").removeClass("open-search"))
}), e("body.material").length > 0 && e(a).on("keyup", function(a) {
27 == a.keyCode && (t(), Sn.removeClass("open-search"), e(".ocm-effect-wrap.material-ocm-open").length > 0 && e(".slide-out-widget-area-toggle.material-open a").trigger("click"))
})
}
function ia() {
function t() {
var e = $();
e ? On.addClass("within-custom-breakpoint") : On.removeClass("within-custom-breakpoint")
}
function a() {
if (!(ki.winW < 1e3 || e("body.material-ocm-open").length > 0 || "none" == e('#header-outer[data-has-menu="true"][data-format="centered-menu-bottom-bar"] .span_9').css("display")))
if (jn = jn.length > 0 && ki.secondaryHeaderHeight > 0 ? jn.height() : 0, n.hasClass("force-condense") || !n.hasClass("fixed-menu") && ki.scrollTop >= c) {
var t = parseInt(i.position().top) - l - parseInt(ki.adminBarHeight) + parseInt(ki.secondaryHeaderHeight) - jn;
e('#header-outer[data-megamenu-rt="1"]').length > 0 && e("#header-outer .megamenu").length > 0 && e('#header-outer[data-transparent-header="true"]').length > 0 && On.removeClass("no-transition"), n.addClass("fixed-menu").removeClass("transparent").css({
top: "-" + t + "px",
position: "fixed"
});
var a = e("header#top .span_9 nav >ul").offset().top,
s = o.offset().top,
r = i.find(".sf-menu > li > a").length > 0 ? (20 - parseInt(i.find(".sf-menu > li > a").height())) / 2 : 2;
o.css("transform", "translateY(" + (parseInt(a) - parseInt(s) - r - 1) + "px)"), o.find(".nectar-woo-cart").css("height", n.height() + parseInt(n.css("top")) - parseInt(ki.adminBarHeight))
} else(n.hasClass("force-condense-remove") || n.hasClass("fixed-menu") && ki.scrollTop < c) && (n.removeClass("fixed-menu").css({
top: "0",
position: "absolute"
}), o.css("transform", "translateY(0px)"), o.find(".nectar-woo-cart").css("height", ""), 0 == e("#header-outer.transparent").length && (e('#header-outer[data-megamenu-rt="1"]').length > 0 && e("#header-outer .megamenu").length > 0 && On.removeClass("no-transition"), e('#header-outer[data-megamenu-rt="1"]').length > 0 && e('#header-outer[data-transparent-header="true"]').length > 0 && e("#header-outer .megamenu").length > 0 ? "true" == On.attr("data-transparent-header") && 0 == e(".nectar-box-roll").length && 0 == e(".megamenu.sfHover").length ? (On.addClass("transparent"), On.removeClass("no-transition")) : "true" == On.attr("data-transparent-header") && 0 == e(".nectar-box-roll").length && e(".megamenu.sfHover").length > 0 && On.addClass("no-transition") : "true" == On.attr("data-transparent-header") && 0 == e(".nectar-box-roll").length && On.addClass("transparent")))
}
var n = On,
i = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),
s = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_3'),
r = Fn,
o = s.find("nav >ul.buttons"),
l = parseInt(e("body.material #header-outer").attr("data-padding")),
d = parseInt(e("body.material #header-outer").attr("data-logo-height")),
c = 2 * l + d - parseInt(ki.adminBarHeight) + parseInt(ki.secondaryHeaderHeight);
r.length > 0 && 0 == e('#header-outer[data-remove-fixed="1"]').length && e('#header-outer[data-condense="true"]').length > 0 && setTimeout(function() {
"none" != Fn.css("display") && (ki.secondaryHeaderHeight = Fn.outerHeight())
}, 50), e('#header-outer[data-condense="true"]').length > 0 && (En.on("scroll.centeredNavCondense", a), En.trigger("scroll"), En.on("resize", function() {
ki.winW < 1e3 && (n.addClass("force-condense-remove"), En.off("scroll.centeredNavCondense"))
}), En.smartresize(function() {
t(), ki.winW >= 1e3 && n.hasClass("force-condense-remove") && (a(), n.removeClass("force-condense-remove"), setTimeout(function() {
ki.scrollTop >= c && (n.addClass("force-condense"), a(), n.removeClass("force-condense")), En.on("scroll.centeredNavCondense", a)
}, 200))
}), t())
}
function sa() {
e('#header-outer[data-format="centered-menu-bottom-bar"]').length > 0 && ia()
}
function ra() {
if (ki.winW > 1e3) {
var t, a, n = e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li').length;
e("#header-outer #social-in-menu").length > 0 && n--, t = 0 == e("#header-outer #top .row .col.span_3 #logo img:visible").length ? parseInt(e("#header-outer #top .row .col.span_3").width()) : parseInt(e("#header-outer #top .row .col.span_3 img:visible").width()), a = e('#header-outer[data-lhe="animated_underline"]').length > 0 ? parseInt(e("header#top nav > ul > li:first-child > a").css("margin-right")) : parseInt(e("header#top nav > ul > li:first-child > a").css("padding-right")), a += a > 30 ? 45 : a > 20 ? 40 : 30, Hn.hasClass("rtl") ? e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:nth-child(' + Math.floor(n / 2) + ")").css({
"margin-left": t + a + "px"
}).addClass("menu-item-with-margin") : e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:nth-child(' + Math.floor(n / 2) + ")").css({
"margin-right": t + a + "px"
}).addClass("menu-item-with-margin");
var i = 0,
s = 0;
e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:not(#social-in-menu)').each(function(t) {
t + 1 <= Math.floor(n / 2) ? i += e(this).width() : s += e(this).width()
});
var r = Math.abs(s - i);
i > s || Hn.hasClass("rtl") && i < s ? e("#header-outer #top .row > .col.span_9").css("padding-right", r) : e("#header-outer #top .row > .col.span_9").css("padding-left", r), e('#header-outer[data-format="centered-logo-between-menu"] nav').css("visibility", "visible")
} else e('#header-outer[data-format="centered-logo-between-menu"]').length > 0 && ki.winW < 1e3 && e("#header-outer .row > .col.span_9").css({
"padding-right": "0",
"padding-left": "0"
})
}
function oa() {
if (e('#header-outer[data-format="centered-logo-between-menu"]').length > 0) {
if (Vn) {
if (Vn && e('#header-outer[data-format="centered-logo-between-menu"]').length > 0 && e("header#top #logo img:first[src]").length > 0) {
var t = new Image;
t.src = e("header#top #logo img:first").attr("src"), t.onload = function() {
ra()
}
}
} else ra();
En.on("smartresize", ra)
}
}
function la() {
ki.usingMobileBrowser && 0 == e('#header-outer[data-remove-fixed="1"]').length && Hn.attr("data-hhun", "0"), e("#nectar_fullscreen_rows").length > 0 && On.attr("data-permanent-transparent", "false"), ki.usingMobileBrowser && e('#header-outer[data-mobile-fixed="1"]').length > 0 && 0 == e('#header-outer[data-transparent-header="true"]').length && e("#header-space").css("height", On.outerHeight())
}
function da() {
}
function ca() {
var t = ki.scrollTop,
a = ki.winW,
n = Hn.hasClass("material") ? 150 : 30;
1 == Dn && (n = 0), t > n && a >= 1e3 && 0 == e("body.material-ocm-open").length && (Hn.is(".material") && (0 == e("#search-outer.material-open").length && e('#header-outer[data-transparent-header="true"] .bg-color-stripe').css("transition", "none"), Fn.length > 0 && (Fn.addClass("hide-up"), On.css("transform", "translateY(-" + ki.secondaryHeaderHeight + "px)"))), e('#header-outer[data-megamenu-rt="1"]').length > 0 && e('#header-outer[data-transparent-header="true"]').length > 0 && e("#header-outer .megamenu").length > 0 ? "true" == On.attr("data-transparent-header") && 0 == e("#header-outer.side-widget-open").length && 0 == e('#header-outer[data-permanent-transparent="1"]').length && 0 == e(".megamenu.sfHover").length && (On.removeClass("transparent"), On.removeClass("no-transition")) : "true" == On.attr("data-transparent-header") && 0 == e("#header-outer.side-widget-open").length && 0 == e('#header-outer[data-permanent-transparent="1"]').length && On.removeClass("transparent"), e("#header-outer, #search-outer").addClass("small-nav"), e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length > 0 && jn.length > 0 && 1 == _i && e('#header-outer[data-full-width="true"] header > .container').stop(!0, !0).animate({
padding: "0"
}, {
queue: !1,
duration: 250,
easing: "easeOutCubic"
}), e("body.material").length > 0 && e("header#top nav > ul > li.menu-item-with-margin").stop(!0, !0).animate({
"margin-right": parseInt(e("header#top nav > ul > li.menu-item-with-margin").css("margin-right")) - 3 * parseInt(Rn) + "px"
}, {
queue: !1,
duration: 310,
easing: "easeOutQuad"
}), e(".nectar-box-roll").length > 0 && 0 == e('#header-outer[data-permanent-transparent="1"]').length && e("#ajax-content-wrap").animate({
"margin-top": Math.floor(Pn - Rn + 2 * Ln / 1.8 + ki.adminBarHeight + ki.secondaryHeaderHeight)
}, {
queue: !1,
duration: 250,
easing: "easeOutCubic"
}), En.off("scroll.headerResizeEffect", ca), En.on("scroll.headerResizeEffect", ha), e('#header-outer[data-transparent-header="true"]').css("transition", "transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, margin 0.25s ease-out"), e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition", "none"), setTimeout(function() {
e('#header-outer[data-transparent-header="true"]').css("transition", "transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, border-color 0.30s ease, margin 0.25s ease-out"), e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition", "border-color 0.30s ease")
}, 300))
}
function ha() {
var t = ki.scrollTop,
a = ki.winW,
n = Hn.hasClass("material") ? 150 : 30;
if (Hn.is(".material-ocm-open")) return !1;
1 == Dn && (n = 0), (t <= n && a >= 1e3 || e(".small-nav").length > 0 && e("#ajax-content-wrap.no-scroll").length > 0) && (e("#header-outer, #search-outer").removeClass("small-nav"), e('#header-outer[data-megamenu-rt="1"]').length > 0 && e('#header-outer[data-transparent-header="true"]').length > 0 && e("#header-outer .megamenu").length > 0 ? "true" == On.attr("data-transparent-header") && 0 == e(".nectar-box-roll").length && 0 == e(".megamenu.sfHover").length && (On.addClass("transparent"), On.removeClass("no-transition")) : "true" == On.attr("data-transparent-header") && 0 == e(".nectar-box-roll").length && On.addClass("transparent"), e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length > 0 && jn.length > 0 && 1 == _i && e('#header-outer[data-full-width="true"] header > .container').stop(!0, !0).animate({
padding: "0 28px"
}, {
queue: !1,
duration: 250,
easing: "easeOutCubic"
}), e("body.material").length > 0 && e("header#top nav > ul > li.menu-item-with-margin").stop(!0, !0).animate({
"margin-right": parseInt(e("header#top nav > ul > li.menu-item-with-margin").css("margin-right")) + 3 * parseInt(Rn) + "px"
}, {
queue: !1,
duration: 140,
easing: "easeOutQuad"
}), Fn.length > 0 && (Fn.removeClass("hide-up"), On.removeClass("hide-up").css("transform", "translateY(0%)")), e(".nectar-box-roll").length > 0 && 0 == e('#header-outer[data-permanent-transparent="1"]').length && e("#ajax-content-wrap").animate({
"margin-top": Math.floor(Pn + 2 * Ln + ki.adminBarHeight + ki.secondaryHeaderHeight)
}, {
queue: !1,
duration: 250,
easing: "easeOutCubic"
}), En.off("scroll.headerResizeEffect", ha), En.on("scroll.headerResizeEffect", ca), e('#header-outer[data-transparent-header="true"]').css("transition", "transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, margin 0.25s ease-out"), e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition", "none"), setTimeout(function() {
e('#header-outer[data-transparent-header="true"]').css("transition", "transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, border-color 0.30s ease, margin 0.25s ease-out"), e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition", "border-color 0.30s ease")
}, 300))
}
function ua() {
e('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length > 0 && !On.hasClass("within-custom-breakpoint") || ki.scrollTop > 0 && (e("body.material").length > 0 && (On.addClass("scrolled-down"), Fn.length > 0 && ki.winW > 1e3 && (Fn.addClass("hide-up"), On.css("transform", "translateY(-" + ki.secondaryHeaderHeight + "px)"))), "true" == On.attr("data-transparent-header") && 0 == e('#header-outer[data-permanent-transparent="1"]').length && On.removeClass("transparent").addClass("scrolled-down"), En.off("scroll.headerResizeEffectOpaque", ua), En.on("scroll.headerResizeEffectOpaque", pa))
}
function pa() {
e('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length > 0 && !On.hasClass("within-custom-breakpoint") || 0 == ki.scrollTop && 0 == e("body.material-ocm-open").length && (e('#header-outer[data-megamenu-rt="1"]').length > 0 && e('#header-outer[data-transparent-header="true"]').length > 0 && e("#header-outer .megamenu").length > 0 ? "true" == On.attr("data-transparent-header") && 0 == e(".megamenu.sfHover").length ? (On.addClass("transparent").removeClass("scrolled-down"), On.removeClass("no-transition")) : "true" == On.attr("data-transparent-header") && On.removeClass("scrolled-down") : "true" == On.attr("data-transparent-header") && On.addClass("transparent").removeClass("scrolled-down"), e("body.material").length > 0 && (On.removeClass("scrolled-down"), Fn.length > 0 && ki.winW > 1e3 && (Fn.removeClass("hide-up"), On.removeClass("hide-up").css("transform", "translateY(0%)"))), En.off("scroll.headerResizeEffectOpaque", pa), En.on("scroll.headerResizeEffectOpaque", ua))
}
function fa() {
e("body.material-ocm-open").length > 0 ? requestAnimationFrame(fa) : (ki.scrollTop > 5 ? (On.is('[data-permanent-transparent="1"]') || On.removeClass("transparent"), ki.secondaryHeaderHeight > 0 ? (Fn.addClass("hide-up"), On.css("transform", "translateY(-" + ki.secondaryHeaderHeight + "px)").addClass("hidden-secondary")) : On.removeClass("hidden-secondary")) : (On.is('[data-transparent-header="true"]') && On.addClass("transparent"), ki.secondaryHeaderHeight > 0 && (Fn.removeClass("hide-up"), On.css("transform", "translateY(0px)")), On.removeClass("hidden-secondary")), ki.winW < 1e3 && requestAnimationFrame(fa))
}
function ga() {
ki.winW > 999 || (En.off("scroll.headerResizeEffect"), En.off("scroll.headerResizeEffectOpaque"), On.removeClass("scrolled-down").removeClass("detached").removeClass("invisible").removeClass("at-top").css("transform", "none"), e('#header-outer[data-mobile-fixed="1"]').length > 0 ? requestAnimationFrame(fa) : "true" == On.attr("data-transparent-header") && On.addClass("transparent"), En.off("smartresize.nectarNavScrollEffects"), En.on("smartresize.nectarNavScrollEffects", ma))
}
function ma() {
ki.winW < 1e3 || (1 == Xn && "1" != Zn ? (En.off("scroll.headerResizeEffect"), 0 == e("#nectar_fullscreen_rows").length ? En.on("scroll.headerResizeEffect", ca) : e('#nectar_fullscreen_rows[data-mobile-disable="on"]').length > 0 && ki.usingMobileBrowser && En.on("scroll.headerResizeEffect", ca)) : "1" != Zn ? (En.off("scroll.headerResizeEffectOpaque"), En.on("scroll.headerResizeEffectOpaque", ua)) : "1" == Zn && (e(".nectar-box-roll").length > 0 && On.addClass("at-top-before-box"), 0 == e('#header-outer[data-remove-fixed="1"]').length && da()), e('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length > 0 && (Fn.length > 0 && On.css("transform", ""), ki.scrollTop > 200 && !On.hasClass("fixed-menu") && On.addClass("fixed-menu")), En.off("smartresize.nectarNavScrollEffects"), En.on("smartresize.nectarNavScrollEffects", ga))
}
function va() {
0 == e('#header-outer[data-remove-fixed="1"]').length && ki.winW > 1e3 && 0 != e(t).scrollTop() && 1 == e('#header-outer.transparent[data-permanent-transparent="false"]').length && On.removeClass("transparent"), 0 == e("#nectar_fullscreen_rows").length && 0 == e(".nectar-box-roll").length && Gt(), ki.winW < 1e3 && 0 == e(".nectar-box-roll").length ? (ga(), En.on("smartresize.nectarNavScrollEffects", ga)) : (ma(), En.on("smartresize.nectarNavScrollEffects", ma))
}
function ba() {
if (e(".mobile").length > 0) ki.winH < ki.winW && ki.winW > 1e3 ? 0 == e("#header-outer.small-nav").length && e("#header-space").css("height", On.outerHeight()) : e("#header-space").css("height", On.outerHeight());
else if (0 == e(".nectar-parallax-scene.first-section").length) {
var t = Ln - Ln / 1.8,
a = e('#header-outer[data-header-resize="1"]').length > 0 && e(".small-nav").length > 0 ? On.outerHeight() + (parseInt(Rn) + 2 * t) : On.outerHeight();
e("#header-space").css("height", a)
}
}
function wa() {
function t() {
if (!Hn.hasClass("compose-mode")) {
if (i = ki.scrollTop, n == i) return requestAnimationFrame(t), !1;
n = i, a(), requestAnimationFrame(t)
}
}
function a() {
var t = 0;
if (e("body.mobile").length > 0 || 1 == Nn && "none" == e("#header-outer .span_9").css("display")) {
t = 0;
var a = "fixed" == $n.css("position") ? $n.height() : 0;
t += ki.adminBarHeight, t - i > a ? On.css("top", t - i + "px") : On.css("top", a)
} else 0 == Nn && (t = 0, On.is('[data-remove-fixed="1"]') || (t += ki.adminBarHeight), On.css("top", t + "px"))
}
var n = -1,
i = ki.scrollTop;
e('#header-outer[data-mobile-fixed="1"]').length > 0 && $n.length > 0 && (0 == e("#nectar_fullscreen_rows").length ? requestAnimationFrame(t) : e("#nectar_fullscreen_rows").length > 0 && ki.usingMobileBrowser && requestAnimationFrame(t), En.smartresize(a))
}
function ya() {
var t = "",
a = 0;
if (t = On.is("[data-logo-height]") && On.is("[data-padding]") ? On.find("#logo.no-image").length > 0 ? "left-header" == Qn && ki.winW > 1e3 ? 0 : parseInt(On.find("#logo.no-image").height()) + parseInt(2 * On.attr("data-padding")) : "left-header" == Qn && ki.winW > 1e3 ? 0 : parseInt(On.attr("data-logo-height")) + parseInt(2 * On.attr("data-padding")) : "left-header" == Qn && ki.winW > 1e3 ? 0 : On.outerHeight(), Yn.length > 0 && (a += Yn.height()), e(".page-header-no-bg").length > 0 && (a += e(".page-header-no-bg").height()), ki.winH - ki.adminBarHeight - t - ki.footerOuterHeight - 1 - a > 0) {
var n = e('body:not(.material) #header-outer[data-header-resize="1"]').length > 0 ? 55 : 0;
e('body[data-footer-reveal="1"] .container-wrap').css({
"margin-bottom": ki.footerOuterHeight
}), e(".container-wrap").css({
"min-height": ki.winH - ki.adminBarHeight - t - ki.footerOuterHeight - a + n
})
} else e('body[data-footer-reveal="1"] .container-wrap').css({
"margin-bottom": ki.footerOuterHeight
});
ki.winW < 1e3 ? Bn.attr("data-midnight", "light") : Bn.removeAttr("data-midnight")
}
function _a() {
(e('body[data-footer-reveal="1"]').length > 0 || e('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length > 0) && (Hn.hasClass("mobile") || Hn.addClass("nectar-no-flex-height"), setTimeout(ya, 60), ya(), En.on("resize", ya), e('body[data-footer-reveal="1"][data-footer-reveal-shadow="large_2"]').length > 0 && e(".container-wrap").css({
boxShadow: "0 70px 110px -30px " + Bn.css("backgroundColor")
}))
}
function Ca() {
if (e('body[data-header-inherit-rc="true"]').length > 0 && 0 == e(".mobile").length && e('#header-outer[data-transparent-header="true"]').length > 0) {
var t = Pn / 2 + Ln + ki.adminBarHeight;
0 == e('#header-outer[data-permanent-transparent="1"]').length && (t = Pn - Rn + Math.ceil(2 * Ln / 1.8) + ki.adminBarHeight), e(".main-content > .row > .wpb_row").each(function() {
var a, n = e(this);
new Waypoint({
element: n,
handler: function(t) {
"down" == t ? n.find(".row-bg.using-bg-color").length > 0 ? (a = n.find("> .col.span_12.light").length > 0 ? "light-text" : "dark-text", On.css("background-color", n.find(".row-bg").css("background-color")).removeClass("light-text").removeClass("dark-text").addClass(a), On.attr("data-current-row-bg-color", n.find(".row-bg").css("background-color")), e("body.material #header-outer .bg-color-stripe").css("background-color", n.find(".row-bg").css("background-color"))) : (On.css("background-color", On.attr("data-user-set-bg")).removeClass("light-text").removeClass("dark-text"), On.attr("data-current-row-bg-color", On.attr("data-user-set-bg")), e("body.material #header-outer .bg-color-stripe").css("background-color", "")) : n.prev("div.wpb_row").find(".row-bg.using-bg-color").length > 0 ? (a = n.prev("div.wpb_row").find("> .col.span_12.light").length > 0 ? "light-text" : "dark-text", On.css("background-color", n.prev("div.wpb_row").find(".row-bg").css("background-color")).removeClass("light-text").removeClass("dark-text").addClass(a), On.attr("data-current-row-bg-color", n.prev("div.wpb_row").find(".row-bg").css("background-color")), e("body.material #header-outer .bg-color-stripe").css("background-color", n.prev("div.wpb_row").find(".row-bg").css("background-color"))) : (On.css("background-color", On.attr("data-user-set-bg")).removeClass("light-text").removeClass("dark-text"), On.attr("data-current-row-bg-color", On.attr("data-user-set-bg")), e("body.material #header-outer .bg-color-stripe").css("background-color", ""))
},
offset: t
})
})
}
}
function xa() {
function e(t) {
this.options = a.extend({}, n.defaults, e.defaults, t), this.element = this.options.element, this.$element = a(this.element), this.createWrapper(), this.createWaypoint()
}
var a = t.jQuery,
n = t.Waypoint,
i = M();
M();
En.on("smartresize", function() {
if (i = M(), $n.length > 0 && "fixed" == $n.css("position") && (i += $n.height()), jn.length > 0 && En.width() > 1e3 && a('body[data-hhun="1"]').length > 0 && (i += jn.height()), a(".page-submenu.stuck").length > 0) {
if (a(".page-submenu.stuck").addClass("no-trans").css("top", i).css("transform", "translateY(0)").addClass("stuck"), setTimeout(function() {
a(".page-submenu.stuck").removeClass("no-trans")
}, 50), a(".page-submenu.stuck").parents(".wpb_row").css("z-index", 1e4), a("#boxed").length > 0) {
var e = En.width() > 1e3 ? .04 * a(".container-wrap").width() : 39;
a(".page-submenu.stuck").css({
"margin-left": "-" + e + "px",
width: a(".container-wrap").width()
})
}
} else a(".page-submenu.stuck").css("top", "0").removeClass("stuck"), a(".page-submenu.stuck").parents(".wpb_row").css("z-index", "auto"), a("#boxed").length > 0 && a(".page-submenu.stuck").css({
"margin-left": "0px",
width: "100%"
})
}), e.prototype.createWaypoint = function() {
var e = this.options.handler;
i = M(), $n.length > 0 && "fixed" == $n.css("position") && (i += $n.height()), jn.length > 0 && En.width() > 1e3 && a('body[data-hhun="1"]').length > 0 && (i += jn.height()), this.waypoint = new n(a.extend({}, this.options, {
element: this.wrapper,
handler: a.proxy(function(t) {
var n = this.options.direction.indexOf(t) > -1,
s = n ? this.$element.outerHeight(!0) : "";
if (this.$wrapper.height(s), n) {
this.$element.addClass("no-trans").css("top", i).css("transform", "translateY(0)").addClass("stuck");
var r = this;
if (setTimeout(function() {
r.$element.removeClass("no-trans")
}, 50), this.$element.parents(".wpb_row").css("z-index", 1e4), a("#boxed").length > 0) {
var o = En.width() > 1e3 ? .04 * a(".container-wrap").width() : 39;
this.$element.css({
"margin-left": "-" + o + "px",
width: a(".container-wrap").width()
})
}
} else this.$element.css("top", "0").removeClass("stuck"), a("#boxed").length > 0 && this.$element.css({
"margin-left": "0px",
width: "100%"
});
e && e.call(this, t)
}, this),
offset: i
}));
var t = this;
setInterval(function() {
if (a('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length > 0) {
var e = On.outerHeight();
Fn.length > 0 && (e -= ki.secondaryHeaderHeight), t.waypoint.options.offset = i + e
} else t.waypoint.options.offset = i;
n.refreshAll()
}, 100)
}, e.prototype.createWrapper = function() {
this.options.wrapper && this.$element.wrap(this.options.wrapper), this.$wrapper = this.$element.parent(), this.wrapper = this.$wrapper[0]
}, e.prototype.destroy = function() {
this.$element.parent()[0] === this.wrapper && (this.waypoint.destroy(), this.$element.removeClass(this.options.stuckClass), this.options.wrapper && this.$element.unwrap())
}, e.defaults = {
wrapper: '',
stuckClass: "stuck",
direction: "down right"
}, n.Sticky = e
}
function ka() {
if (e('.page-submenu[data-sticky="true"]').length > 0 && 0 == e("#nectar_fullscreen_rows").length) {
if (xa(), e(".page-submenu").parents(".span_12").find("> .wpb_column").length > 1) {
var t = e(".page-submenu").clone(),
a = e(".page-submenu").parents(".wpb_row");
e(".page-submenu").remove(), a.before(t)
}
new Waypoint.Sticky({
element: e('.page-submenu[data-sticky="true"]')[0]
})
}
0 == e("#nectar_fullscreen_rows").length && e(".page-submenu").parents(".wpb_row").css("z-index", 1e4), e(".page-submenu .mobile-menu-link").on("click", function() {
return e(this).parents(".page-submenu").find("ul").stop(!0).slideToggle(350), !1
}), e(".page-submenu ul li a").on("click", function() {
e("body.mobile").length > 0 && e(this).parents(".page-submenu").find("ul").stop(!0).slideToggle(350)
})
}
function Ta() {
var t, a, n, i = e(".vc_row-o-full-height:first");
i.length && (t = En.height(), e(".vc_row-o-full-height").each(function() {
a = e(this).offset().top, a < t && e(this).hasClass("top-level") && !ki.usingFrontEndEditor ? (n = 100 - a / (t / 100), e(this).css("min-height", n + "vh"), e(this).find("> .col.span_12").css("min-height", n + "vh")) : (e(this).css("min-height", t), e(this).find("> .col.span_12").css("min-height", t))
}))
}
function Ia() {
e(".vc_row-o-full-height").length > 0 && (Ta(), En.on("smartresize", Ta))
}
function za() {
var a = t.navigator.userAgent,
n = a.indexOf("MSIE ");
(n > 0 || navigator.userAgent.match(/Trident.*rv\:11\./)) && e(".vc_row-o-full-height").each(function() {
"flex" === e(this).find("> .span_12").css("display") && e(this).wrap('')
}), (n > 0 || navigator.userAgent.match(/Trident.*rv\:11\./)) && (Ea(), e(t).on("resize", Ea))
}
function Ea() {
e(".img-with-aniamtion-wrap img.img-with-animation").each(function() {
if (0 == e(this).parents(".tabbed").length && 0 == e(this).parents(".toggle").length) {
var t = e(this).parents(".img-with-aniamtion-wrap");
t.css({
height: ""
});
var a = e(this).height();
t.css({
height: a
})
}
})
}
function Ha() {
function t() {
e('.blog-recent[data-style="title_only"]').each(function() {
if (e(this).find("> .col").length > 1) return !1;
var t = e(this).parent().parent().parent();
if (t.hasClass("vc_col-sm-3") || t.hasClass("vc_col-sm-4") || t.hasClass("vc_col-sm-6") || t.hasClass("vc_col-sm-8") || t.hasClass("vc_col-sm-9"))
if (0 == e("body.mobile").length && 0 == e(this).next("div").length) {
var a = 0;
e(this).find("> .col").css("padding", "50px 20px"), e(this).parents(".span_12").find(" > .wpb_column").each(function() {
Math.floor(e(this).height()) > a && (a = Math.floor(e(this).height()))
}), Math.floor(e(this).find("> .col").outerHeight(!0)) < Math.floor(e(this).parents(".wpb_row").height()) - 1 && (e(this).find("> .col").css("padding-top", (a - e(this).find("> .col").height()) / 2 + "px"), e(this).find("> .col").css("padding-bottom", (a - e(this).find("> .col").height()) / 2 + "px"))
} else e(this).find("> .col").css("padding", "50px 20px")
})
}
e('.blog-recent[data-style="title_only"]').length > 0 && (t(), En.on("smartresize", t))
}
function Aa() {
e(".nectar-recent-posts-slider").each(function() {
var t = 250,
a = parseInt(e(this).attr("data-height")),
n = e('body[data-ext-responsive="true"]').length > 0 ? En.width() / 1400 : En.width() / 1100,
i = e(this).find(".nectar-recent-post-slide, .flickity-viewport");
if (ki.winW > 1e3 && 0 == e("#boxed").length) 0 == e(this).parents(".full-width-content").length ? e('body[data-ext-responsive="true"]').length > 0 && ki.winW >= 1400 ? i.css("height", Math.ceil(a)) : 0 == e('body[data-ext-responsive="true"]').length && ki.winW >= 1100 ? i.css("height", Math.ceil(a)) : i.css("height", Math.ceil(a * n)) : i.css("height", Math.ceil(a * n));
else {
var s = e(this).parents(".wpb_column").length > 0 ? e(this).parents(".wpb_column") : e(this).parents(".col");
if (0 == s.length && (s = e(".main-content")), s.hasClass("vc_span12") || s.hasClass("main-content") || s.hasClass("span_12") || s.hasClass("vc_col-sm-12")) a * n <= t ? i.css("height", t) : i.css("height", Math.ceil(a * n));
else {
var r = Ma(s),
o = a / r;
o * s.width() <= t ? i.css("height", t) : i.css("height", o * s.width())
}
}
})
}
function Ma(t) {
var a = 1100,
n = e(t).attr("class").match(/\d+/);
return "2" == n ? a = 170 : "3" == n ? a = 260 : "4" == n ? a = 340 : "6" == n ? a = 530 : "8" == n ? a = 700 : "9" == n ? a = 805 : "10" == n ? a = 916.3 : "12" == n && (a = 1100), a
}
function Oa() {
e(".nectar-recent-posts-single_featured.multiple_featured").each(function() {
var t = e(this).find(".project-slides").length > 0 ? ".project-slide" : ".nectar-recent-post-slide",
a = e(this).find(".project-slides").length > 0 ? ".project-info h1" : ".inner-wrap h2 a";
e(this).find(t).each(function() {
e(this).find(a).each(function() {
var t = e(this).text();
t = t.trim(), t = t.split(" "), e(this)[0].innerHTML = "";
for (var a = 0; a < t.length; a++) e(this)[0].innerHTML += "" + t[a] + " "
}), e(this).find(a + " > span").wrapInner('')
})
})
}
function Fa() {
e('.nectar-split-heading[data-animation-type="line-reveal-by-space"]').each(function() {
e(this).find("> *").each(function() {
var t = e(this).text();
t = t.trim(), t = t.split(" "), e(this)[0].innerHTML = "";
for (var a = 0; a < t.length; a++) e(this)[0].innerHTML += "" + t[a] + " "
}), e(this).hasClass("animated-in") ? e(this).find("> * > span").wrapInner('') : e(this).find("> * > span").wrapInner(''), e(this).addClass("markup-generated")
}), e('.nectar-split-heading[data-animation-type="letter-fade-reveal"]').each(function() {
e(this).find("> *").each(function() {
var t = e(this).text();
t = t.trim(), t = t.split(" "), e(this)[0].innerHTML = "";
for (var a = 0; a < t.length; a++) e(this)[0].innerHTML += "" + t[a] + " "
}), e(this).find("span").each(function() {
var t = e(this),
a = e(this).text().split("");
t.empty(), e.each(a, function(e, a) {
t.append("" + a + " 0 || e('.nectar-split-heading[data-animation-type="letter-fade-reveal"]').length > 0) && Fa()
}
function $a() {
function t() {
e(".nectar-recent-posts-single_featured.multiple_featured").each(function(t) {
e(this).find("> .normal-container").length > 0 && e(this).find("> .normal-container").remove(), e(this).append('
');
var a, n = e(this),
i = 0;
ti[t] = {
autorotate: ""
}, e(this).find(".nectar-recent-post-slide").each(function(t) {
e(this).find(".recent-post-container").height() > i && (e(this).siblings().removeClass("tallest"), e(this).addClass("tallest"), i = e(this).find(".recent-post-container").height());
var a = 0 == t && e(this).parents('.nectar-recent-posts-single_featured.multiple_featured[data-autorotate="none"]').length > 0 ? 'class="active"' : "";
n.find(".controls").append("
' + e(this).find("h2").text() + "
")
}), e(this).addClass("js-loaded"), e(this).find(".controls li").on("click", function(n) {
if (!e(this).hasClass("active")) {
void 0 !== n.originalEvent && e(this).parent().find(".active").addClass("trans-out");
var i = e(this).index(),
s = e(this).parent().find(".active").index(),
r = e(this);
clearTimeout(a), e(this).siblings().removeClass("active"), e(this).addClass("active"), a = setTimeout(function() {
r.parents(".multiple_featured").find(".nectar-recent-post-slide:not(:eq(" + i + "))").css("opacity", "0").removeClass("active"), r.parent().find(".trans-out").removeClass("trans-out")
}, 300), r.parents(".multiple_featured").find(".nectar-recent-post-slide:not(:eq(" + i + "))").css("z-index", "10"), r.parents(".multiple_featured").find(".nectar-recent-post-slide:eq(" + s + ")").css("z-index", "15"), e(this).parents(".multiple_featured").find(".nectar-recent-post-slide").eq(i).css({
opacity: "1",
"z-index": "20"
}).addClass("active"), "none" != e(this).parents(".multiple_featured").attr("data-autorotate") && Na(r.parents(".nectar-recent-posts-single_featured.multiple_featured"), t)
}
}), n = e(this), e(this).attr("data-autorotate").length > 0 && "none" != e(this).attr("data-autorotate") && 0 == e("body.vc_editor").length && setTimeout(function() {
var e = parseInt(n.attr("data-autorotate")) < 100 ? 4e3 : parseInt(n.attr("data-autorotate"));
ti[t].autorotate = setInterval(function() {
Ra(n)
}, e), n.find(".controls > li:first-child").addClass("active")
}, 30)
}), Oa(), En.on("resize", Oa)
}
if (e(".nectar-recent-posts-slider-inner").length > 0) {
var a = e(".nectar-recent-posts-slider_multiple_visible").length > 0 && "90%",
n = e(".nectar-recent-posts-slider-inner").flickity({
contain: !0,
groupCells: a,
draggable: !0,
lazyLoad: !1,
imagesLoaded: !0,
percentPosition: !0,
prevNextButtons: !1,
pageDots: !0,
resize: !0,
setGallerySize: !0,
wrapAround: !0,
accessibility: !1
});
setTimeout(function() {
e(".nectar-recent-posts-slider-inner").addClass("loaded")
}, 1150);
var i;
n.data("flickity");
n.on("dragStart.flickity", function() {
e(".flickity-viewport").addClass("is-moving")
}), n.on("dragEnd.flickity", function() {
e(".flickity-viewport").removeClass("is-moving")
}), n.on("select.flickity", function() {
e(".flickity-viewport").addClass("no-hover"), clearTimeout(i), i = setTimeout(function() {
e(".flickity-viewport").removeClass("no-hover")
}, 400)
}), Aa(), En.on("resize", Aa), ki.usingMobileBrowser || ki.usingFrontEndEditor || En.on("resize", ja)
}
t()
}
function Wa() {
e(".nectar-recent-posts-slider").each(function() {
var t = parseInt(e(this).find(".flickity-slider").position().left),
a = e(this).find(".nectar-recent-post-slide"),
n = a.length,
i = a.width(),
s = e(this).find(".nectar-recent-post-slide:last-child").index(),
r = e(this).find(".nectar-recent-post-slide:first-child .nectar-recent-post-bg"),
o = e(this).find(".nectar-recent-post-slide:last-child .nectar-recent-post-bg");
t >= -3 ? o.css("margin-left", parseInt(Math.ceil(i / 3.5)) + "px") : o.css("margin-left", "-" + parseInt(Math.ceil(i / 3.5 * s)) + "px"), Math.abs(t) >= (n - 1) * i ? r.css("margin-left", "-" + parseInt(Math.ceil(i / 3.5 * n)) + "px") : r.css("margin-left", "0px"), e(this).find(".nectar-recent-post-bg").css("transform", "translateX(" + Math.ceil(e(this).find(".flickity-slider").position().left / -3.5) + "px)")
}), requestAnimationFrame(Wa)
}
function ja() {
e(".nectar-recent-posts-slider").each(function() {
var t = e(this).find(".nectar-recent-post-slide").width();
e(this).find(".nectar-recent-post-slide").each(function(a) {
e(this).find(".nectar-recent-post-bg").css("margin-left", "-" + parseInt(Math.ceil(t / 3.5) * a) + "px")
})
})
}
function Ya() {
$a(), e('.blog-recent[data-style="classic_enhanced_alt"] .inner-wrap').each(function() {
e(this).find(".post-featured-img").each(function() {
var t = e(this).find("img").attr("src");
e(this).css("background-image", "url(" + t + ")")
})
}), e('.blog-recent[data-style="classic_enhanced"]').each(function() {
0 == e(this).find(".inner-wrap.has-post-thumbnail").length && e(this).addClass("no-thumbs")
}), ki.usingMobileBrowser || e(".nectar-recent-posts-slider").length > 0 && !ki.usingFrontEndEditor && t.requestAnimationFrame(Wa), ki.usingMobileBrowser || ki.usingFrontEndEditor || ja()
}
function Ba() {
function n(t, a, n, i, r, o, l, d, c, h) {
if (!e(n.firstChild).hasClass("over")) return s(t, n, i, r, o), !1;
var u = .03,
p = .063,
f = "1.03",
g = "-10",
m = !1;
e(n).parents(".col.wide").length > 0 ? (u = .03, p = .063, m = !0) : e(n).parents(".col.regular").length > 0 || e(n).parents(".wpb_gallery").length > 0 ? (u = .045, p = .045) : e(n).parents(".col.tall").length > 0 ? (u = .05, p = .015, m = !0) : e(n).parents(".col.wide_tall").length > 0 ? (u = .04, p = .04, m = !0) : l.hasClass("nectar-fancy-box") ? (u = .045, p = .022, f = "1.06", g = "-2") : (u = .045, p = .075);
var v, b = ki.scrollTop,
w = 0,
y = a ? t.touches[0].pageX : t.pageX,
_ = a ? t.touches[0].pageY : t.pageY,
C = n.getBoundingClientRect(),
x = n.clientWidth || n.offsetWidth || n.scrollWidth,
k = n.clientHeight || n.offsetHeight || n.scrollHeight,
T = 320 / x,
I = .52 - (y - C.left - w) / x,
z = .52 - (_ - C.top - b) / k,
E = _ - C.top - b - k / 2,
H = y - C.left - w - x / 2,
A = u * T * (I - H),
M = p * T * (E - z);
v = 1 == h ? " perspective(" + 3 * x + "px) rotateX(" + 1.9 * -M + "deg) rotateY(" + 1.3 * -A + "deg)" : 0 == m ? " perspective(" + 3 * x + "px) rotateX(" + M + "deg) rotateY(" + A + "deg) translateY(" + z * g + "px) translateX(" + I * g + "px) scale(" + f + ")" : " perspective(" + 3 * x + "px) rotateX(" + M + "deg) rotateY(" + A + "deg) translateY(" + -10 * z + "px) translateX(" + -10 * I + "px) scale(1.013)", d.css("transform", v), -1 != navigator.userAgent.indexOf("Safari") && -1 == navigator.userAgent.indexOf("Chrome") || c.css("transform", v)
}
function i(t, a) {
a.firstChild.className += " over", a.className += " over", e(a).addClass("transition"), e(a).parents(".wpb_gallery").length > 0 ? setTimeout(function() {
e(a).removeClass("transition")
}, 450) : setTimeout(function() {
e(a).removeClass("transition")
}, 200)
}
function s(t, a) {
var n = a.clientWidth || a.offsetWidth || a.scrollWidth,
i = a.firstChild;
i.className = i.className.replace(" over", ""), a.className = a.className.replace(" over", ""), e(i).css("transform", "perspective(" + 3 * n + "px) rotateX(0deg) rotateY(0deg) translateZ(0)"), e(a).parents(".parallaxImg-wrap").find(".parallaxImg-shadow").css("transform", "perspective(" + 3 * n + "px) rotateX(0deg) rotateY(0deg) translateZ(0)"), e(a).addClass("transition"), setTimeout(function() {
e(a).removeClass("transition")
}, 200)
}
function r(t, a, n, i) {
for (var s = a.clientWidth || a.offsetWidth || a.scrollWidth, r = a.firstChild, o = 0; o < i; o++) 0 == o ? e(n[o]).css("transform", "translateZ(0px)") : e(n[o]).css("transform", "translateZ(" + 3 * s / 27 * (1.1 * o) + "px) ");
i += 3, e(r).css("transform", "perspective(" + 3 * s + "px)")
}
e(".style-5").each(function() {
e(this).find(".sizer").insertBefore(e(this).find(".parallaxImg"))
}), e(".style-5").parents(".wpb_row").css("z-index", "100");
var o = a,
l = (o.getElementsByTagName("body")[0], t),
d = o.querySelectorAll(".parallaxImg"),
c = d.length,
h = "ontouchstart" in l || navigator.msMaxTouchPoints;
if (!(c <= 0))
for (var u = 0; u < c; u++) {
var p = d[u],
f = p.querySelectorAll(".parallaxImg-layer"),
g = f.length;
if (!(g <= 0)) {
for (; p.firstChild;) p.removeChild(p.firstChild);
var m = 0,
v = 80;
navigator.userAgent.indexOf("Chrome") > -1 && navigator.userAgent.indexOf("Edge/") < 1 ? (v = 1, e("html").addClass("cssreflections")) : Hn.addClass("cssreflections");
var b = o.createElement("div"),
w = o.createElement("div"),
y = o.createElement("div"),
_ = o.createElement("div"),
C = [];
p.id = "parallaxImg__" + u, b.className = "parallaxImg-container", y.className = "parallaxImg-shadow", _.className = "parallaxImg-layers";
for (var x = 0; x < g; x++) {
var k = o.createElement("div"),
T = o.createElement("div"),
I = f[x].getAttribute("data-img");
e(k).html(e(f[x]).html()), k.className = "parallaxImg-rendered-layer", k.setAttribute("data-layer", x), 0 == x && 0 == e(p).parents(".wpb_gallery").length && (T.className = "bg-img", T.style.backgroundImage = "url(" + I + ")", k.appendChild(T)), _.appendChild(k), C.push(k)
}
b.appendChild(_), p.appendChild(b), e(p).wrap(''), -1 != navigator.userAgent.indexOf("Safari") && -1 == navigator.userAgent.indexOf("Chrome") || e(p).parent().append(y), h && e("body.using-mobile-browser").length > 0 || function(a, r, o, l) {
e(p).parents(".style-5").on("mousemove", function(i) {
var s = e(this),
d = s.find(".parallaxImg-container"),
c = s.find(".parallaxImg-shadow"),
h = Date.now(),
u = e(a).parents(".wpb_gallery").length > 0;
h > m + v && (m = h, t.requestAnimationFrame(function() {
n(i, !1, a, r, o, l, s, d, c, u)
}))
}), e(p).parents(".style-5").on("mouseenter", function(e) {
i(e, a, r, o, l)
}), e(p).parents(".style-5").on("mouseleave", function(e) {
s(e, a, r, o, l)
})
}(p, C, g, w),
function(e, a, n, i) {
r(!1, e, a, n, i), t.addEventListener("resize", function() {
r(!1, e, a, n, i)
})
}(p, C, g, w)
}
}
}
function qa() {
if (0 == e('.nectar-fancy-box[data-style="hover_desc"]').length) return !1;
var t = 0;
e("body").on("mouseenter touchstart", '.nectar-fancy-box[data-style="hover_desc"]', function() {
t = parseInt(e(this).find(".hover-content").outerHeight(!0)), e(this).addClass("hovered"), e(this).find(".heading-wrap").css("transform", "translateY(-" + t + "px)")
}), e("body").on("mouseleave touchend", '.nectar-fancy-box[data-style="hover_desc"]', function() {
e(this).removeClass("hovered"), e(this).find(".heading-wrap").css("transform", "translateY(0)")
})
}
function Pa(e, t) {
this.$el = e, this.$iconEl = this.$el.find(t), this.elX = 0, this.elY = 0, this.initialX = this.$el.width() / 2, this.initialY = this.$el.height() / 2, this.elX = 0, this.elY = 0, this.lastScroll = 0, this.scrollAdjust = 0, this.lastX = this.initialX, this.lastY = this.initialY, this.activeFollow = !1, this.percentage = .13, this.percentageTimeout, En.on("resize", this.resizeEvent.bind(this)), this.mouseEvents(), this.rafLoop()
}
function La() {
si = [], Hn.on("mouseenter", '.nectar_video_lightbox[data-parent-hover="1"]', function() {
var t = e(this).parents(".wpb_row");
t.find("> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner").addClass("transition"), t.find("> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner").css({
transform: "scale(1.08)"
})
}), Hn.on("mouseleave", '.nectar_video_lightbox[data-parent-hover="1"]', function() {
var t = e(this).parents(".wpb_row");
t.find("> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner").css({
transform: "scale(1)"
})
}), e(".nectar-video-box").each(function(t) {
if (e(this).find(".play_button_mouse_follow")) {
var a = e(this);
e(this).imagesLoaded(function() {
ki.usingMobileBrowser || (si[t] = new Pa(a, ".play_button_mouse_follow"));
var e = a.is("[data-mouse-icon-color]") && a.attr("data-mouse-icon-color").length > 0 ? a.attr("data-mouse-icon-color") : "#000";
a.is('[data-mouse-style="solid_color"]') && a.find(".play_button_mouse_follow").css({
"background-color": e
}), a.find(".play_button_mouse_follow").addClass("visible")
})
}
})
}
function Ra(t) {
if (!(e("body.vc_editor").length > 0)) {
var a = t.find(".project-slides").length > 0 ? ".dot-nav > span" : ".controls > li",
n = t.find(".project-slides").length > 0 ? "span" : " li",
i = t.find(a).length,
s = t.find(a + ".active").index();
s + 1 == i ? t.find(a + ":first-child").trigger("click") : t.find(a + ".active").next(n).trigger("click")
}
}
function Na(e, t) {
if (clearInterval(ti[t].autorotate), e.attr("data-autorotate").length > 0) {
var a = parseInt(e.attr("data-autorotate")) < 100 ? 4e3 : parseInt(e.attr("data-autorotate"));
ti[t].autorotate = setInterval(function() {
Ra(e)
}, a)
}
}
function Va() {
oi = [], "undefined" != typeof SalientRecentProjectsFullScreen && e(".nectar_fullscreen_zoom_recent_projects").each(function(t) {
oi[t] = new SalientRecentProjectsFullScreen(e(this))
})
}
function Xa() {
var t = e(".single-portfolio #sidebar").attr("data-follow-on-scroll");
if (0 != e("body.single-portfolio").length && 0 != e("#sidebar[data-follow-on-scroll]").length && (t = e(".single-portfolio #sidebar").attr("data-follow-on-scroll"), 1 == t && !Hn.hasClass("mobile") && parseInt(e("#sidebar").height()) + 50 <= parseInt(e(".post-area").height()))) {
var a = 50;
if (e('#header-outer[data-remove-fixed="0"]').length > 0 && 0 == e('body[data-hhun="1"]').length) {
if (a += On.outerHeight(), e('#header-outer[data-shrink-num][data-header-resize="1"]').length > 0) {
var n = parseInt(On.attr("data-padding")) - parseInt(On.attr("data-padding")) / 1.8;
a -= Rn, a -= n
}
if (0 == e("body.mobile").length && e('#header-outer[data-condense="true"]').length > 0) {
var i = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');
a = 50, a += On.height() - (parseInt(i.position().top) - parseInt(e("#header-outer #logo").css("margin-top"))) - parseInt(ki.secondaryHeaderHeight)
}
}
$n.length > 0 && (a += $n.outerHeight()), e(".single-portfolio #sidebar").theiaStickySidebar({
additionalMarginTop: a,
updateSidebarHeight: !1
})
}
}
function Da() {
e(".infinite_scroll").length > 0 && (e(".portfolio-items.infinite_scroll").infinitescroll({
navSelector: "div#pagination",
nextSelector: "div#pagination a:first",
itemSelector: ".portfolio-items.infinite_scroll .element",
finishedMsg: "Congratulations, you've reached the end of the internet.",
msgText: " "
}, function(t) {
var a = e(".portfolio-items.infinite_scroll:not(.carousel)"),
n = e(t).css("opacity", 0);
n.imagesLoaded(function() {
var n;
(e(t).css("opacity", 1), a.isotope("appended", e(t)), e(t).find(".work-item").addClass("ajax-loaded"), e(t).addClass("ajax-loaded"), e(t).find(".work-meta, .nectar-love-wrap").css({
opacity: 1
}), e(".portfolio-filters-inline").length > 0 || e(".portfolio-filters").length > 0) && (n = e(".portfolio-filters-inline").length > 0 ? e(".portfolio-filters-inline a.active").attr("data-filter") : e(".portfolio-filters a.active").attr("data-filter"), e(".portfolio-filters-inline a.active").attr("data-filter"), a.isotope({
filter: n
}));
for (var i = 0; i < Kn.length; i++) Kn[i].reLayout();
if (e(t).find(".work-item.style-5").length > 0 && Ba(), "none" == e(t).find(".inner-wrap").attr("data-animation")) e(".portfolio-items .col .inner-wrap").removeClass("animated");
else {
for (i = 0; i < Kn.length; i++) Kn[i].masonryZindex(), Kn[i].portfolioAccentColor();
e(t).each(function() {
var t = e("#nectar_fullscreen_rows").length > 0 ? "200%" : "90%",
a = e(this),
n = new Waypoint({
element: a,
handler: function() {
var e = a.is('[data-masonry-type="photography"].masonry-items') ? 85 : 115;
setTimeout(function() {
a.addClass("animated-in")
}, e * a.attr("data-delay-amount")), n.destroy()
},
offset: t
})
})
}
e(".portfolio-items").each(function() {
var t = F();
e(this).find('a[rel^="prettyPhoto"], a.pretty_photo').attr("rel", "prettyPhoto[" + t + "_gal]").removeClass("pretty_photo")
}), e(".portfolio-items").each(function() {
var t = F();
e(this).find('a[data-fancybox^="group_"]').attr("data-fancybox", "group_" + t)
}), P(), setTimeout(function() {
for (var a = 0; a < Kn.length; a++) Kn[a].masonryZindex(), Kn[a].reLayout(), Kn[a].isotopeCatSelection();
e(t).removeClass("ajax-loaded")
}, 700), _e()
})
}), e(".post-area.infinite_scroll .posts-container").infinitescroll({
navSelector: "div#pagination",
nextSelector: "div#pagination a:first",
itemSelector: ".post-area.infinite_scroll .posts-container .post",
finishedMsg: "Congratulations, you've reached the end of the internet.",
msgText: " "
}, function(t) {
e(t).find("[data-nectar-img-src]").length > 0 && Xe(), e(".masonry.classic").length > 0 || e(".post-area:not(.masonry):not(.featured_img_left)").length > 0 || e(".post-area.standard-minimal").length > 0 ? (s(), e().mediaelementplayer && e(t).find(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer(), P(), e(".carousel").length > 0 && (v(), k()), Kt(), e(".testimonial_slider").animate({
opacity: "1"
}, 800), tt(), at(), setTimeout(function() {
dt(), ct(), En.trigger("resize")
}, 500), _e(), En.trigger("resize")) : (_e(), En.trigger("resize"));
var a = e(".infinite_scroll .posts-container");
a.parent().hasClass("masonry") && e(t).addClass("masonry-blog-item");
var n = e(t);
0 == n.find("img").length && (n = e("body")), n.imagesLoaded(function() {
a.parent().hasClass("masonry") && !a.parent().hasClass("auto_meta_overlaid_spaced") && a.isotope("appended", e(t));
for (var n = 0; n < ui.length; n++) ui[n].flickityBlogInit();
if (e(t).addClass("ajax-loaded"), a.parent().hasClass("classic_enhanced") && (a.find(".large_featured.has-post-thumbnail.ajax-loaded .post-featured-img, .wide_tall.has-post-thumbnail.ajax-loaded .post-featured-img").each(function() {
var t = e(this).find("img").attr("src");
e(this).css("background-image", "url(" + t + ")")
}), a.find(".large_featured.ajax-loaded .nectar-flickity, .wide_tall.ajax-loaded .nectar-flickity").each(function() {
e(this).find(".cell").each(function() {
var t = e(this).find("img").attr("src");
e(this).css("background-image", "url(" + t + ")")
})
})), "none" == e(t).parents(".posts-container").attr("data-animation")) e(t).find(".inner-wrap").removeClass("animated");
else {
for (n = 0; n < ui.length; n++) ui[n].blogMasonryZindex();
e(t).each(function() {
var t = e(this),
a = new Waypoint({
element: t,
handler: function() {
setTimeout(function() {
t.addClass("animated-in")
}, 80 * t.attr("data-delay-amount")), a.destroy()
},
offset: "90%"
})
})
}
setTimeout(function() {
e(t).removeClass("ajax-loaded")
}, 700)
})
}))
}
function Qa() {
(e("#to-top").length > 0 && En.width() > 1020 || e("#to-top").length > 0 && e("#to-top.mobile-enabled").length > 0) && (ki.scrollTop > 350 ? En.on("scroll", Ua) : En.on("scroll", Za))
}
function Za() {
}
function Ua() {
}
function Ga() {
if (0 == e(".nectar-social.fixed").length && Qa(), e('body[data-button-style*="rounded"]').length > 0) {
var t = e("#to-top .fa-angle-up").clone();
t.addClass("top-icon"), e("#to-top").prepend(t)
}
Hn.on("click", '#to-top, a[href="#top"]', function() {
return e("body,html").stop().animate({
scrollTop: 0
}, 800, "easeOutQuad", function() {
e(".nectar-box-roll").length > 0 && Hn.trigger("mousewheel", [1, 0, 0])
}), !1
})
}
function Ja() {
var t = e('body[data-header-format="left-header"]').length > 0 && En.width() > 1e3 ? 0 : On.outerHeight();
(e(".page-template-template-no-header-footer").length > 0 || e(".page-template-template-no-header").length > 0) && (t = 0), e('header#top .sf-menu li a[href="#"]').on("click", function(e) {
e.preventDefault()
}), 0 == e("#nectar_fullscreen_rows").length || 0 == xi.$usingFullScreenRows ? e("a.nectar-next-section").each(function() {
if (e(this).parents(".wpb_row:not(.inner_row)").length > 0) {
var t = e(this).parents(".wpb_row:not(.inner_row)"),
a = e(this).parents(".wpb_row:not(.inner_row)").index();
if (t.parent().find("> .wpb_row[id]:eq(" + (a + 1) + ")").length > 0) {
var n = t.parent().find("> .wpb_row:eq(" + (a + 1) + ")").attr("id");
e(this).attr("href", "#" + n)
}
}
}) : e().fullpage && e("a.nectar-next-section").on("click", function() {
return e.fn.fullpage.moveSectionDown(), !1
}), e("#slide-out-widget-area .off-canvas-menu-container").length > 0 && e("#slide-out-widget-area .off-canvas-menu-container").find("a[href*='" + location.pathname + "']").each(function() {
var t = e(this).attr("href");
"#" != t && -1 != t.indexOf("#") && "#" !== t.substr(t.indexOf("#")) && e("div" + t.substr(t.indexOf("#"))).length > 0 && (e(this).attr("href", t.substr(t.indexOf("#"))), e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")), e('div[data-fullscreen-anchor-id="' + t.substr(t.indexOf("#") + 1) + '"]').length > 0 && e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")
}), e("#header-outer").find("a[href*='" + location.pathname + "']").each(function() {
var t = e(this).attr("href"); - 1 != t.indexOf("#") && "#" !== t.substr(t.indexOf("#")) && e("div" + t.substr(t.indexOf("#"))).length > 0 && (e(this).attr("href", t.substr(t.indexOf("#"))), e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")), e('div[data-fullscreen-anchor-id="' + t.substr(t.indexOf("#") + 1) + '"]').length > 0 && e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")
});
var a = 0 == e('.page-submenu[data-sticky="true"]').length ? "#header-outer nav" : ".page-submenu";
Hn.scrollspy({
target: a,
offset: t + ki.adminBarHeight + 40
})
}
function Ka() {
var a = t.location.hash;
a && a.length > 0 && (a = a.replace(/<|>/g, ""));
var n = a && a.length > 0 ? a.substring(1, a.length) : 0,
i = Ln - Ln / 1.8,
s = 0;
if (n && (s = n.split("/"), s = s.length), n && s > 1 && (n = n.replace(/\//g, ""), a = a.replace(/\//g, "")), a && e(".main-content").find(a).length > 0 || a && e(".main-content").find('[data-fullscreen-anchor-id="' + n + '"]').length > 0) {
var r = e(".main-content").find(a).length > 0 ? e(".main-content").find(a) : e(".main-content").find('[data-fullscreen-anchor-id="' + n + '"]'),
o = e('body[data-header-format="left-header"]').length > 0 && En.width() > 1e3 ? 0 : e("#header-space").outerHeight();
(e(".page-template-template-no-header-footer").length > 0 || e(".page-template-template-no-header").length > 0) && (o = 0);
var l = 0;
e(".nectar-box-roll").length > 0 && e(".container-wrap.bottomBoxOut").length > 0 && (Ci.boxRoll(null, -1), l = 2050), setTimeout(function() {
var t;
if (0 == e('body[data-permanent-transparent="1"]').length)
if (Hn.hasClass("mobile")) t = e('#header-outer[data-mobile-fixed="1"]').length > 0 ? r.offset().top + 2 - o + ki.adminBarHeight : r.offset().top - ki.adminBarHeight + 1;
else {
var a = e('#header-outer[data-header-resize="0"]').length > 0 ? 0 : parseInt(Rn) + 2 * i;
if (e('#header-outer[data-remove-fixed="1"]').length > 0 && (o = 0), t = r.offset().top - parseInt(o) + a + 3 - ki.adminBarHeight, 0 == e("body.mobile").length && e('#header-outer[data-condense="true"]').length > 0) {
var n = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),
s = On.height(),
l = s - (parseInt(n.height()) + parseInt(e("#header-outer #logo").css("margin-top")));
t = r.offset().top - parseInt(o) + l - ki.adminBarHeight
}
}
else t = r.offset().top - ki.adminBarHeight + 1;
e('body[data-hhun="1"]').length > 0 && 0 == e('#header-outer[data-remove-fixed="1"]').length && 0 == e("#header-outer.detached").length && (t += o);
var d, c = e('.page-submenu[data-sticky="true"]').length > 0 ? e(".page-submenu").height() : 0;
d = e("body.material").length > 0 && Fn.length > 0 && 0 == e('body[data-hhun="1"]').length && 0 == e('#header-outer[data-remove-fixed="1"]').length && !Hn.hasClass("mobile") ? Fn.height() : 0, S(t - c + d, 700, "easeInOutQuint")
}, l)
}
}
function en() {
e('body[data-animated-anchors="true"]').length > 0 && (0 == e(".nectar-box-roll").length && 0 == e("#nectar_fullscreen_rows").length && (void 0 !== $i.tab ? setTimeout(function() {
Ka()
}, 800) : Ka()), e('#nectar_fullscreen_rows[data-mobile-disable="on"]').length > 0 && 0 == e(".nectar-box-roll").length && ki.usingMobileBrowser && Ka())
}
function tn() {
if (e('body[data-animated-anchors="true"]').length > 0 || e('.single-product [data-gallery-style="left_thumb_sticky"]').length > 0) {
var a, n = Ln - Ln / 1.8;
setTimeout(Ja, 200), Hn.on("click", "#header-outer nav .sf-menu a, #footer-outer .nectar-button, #footer-outer .widget_nav_menu a, #mobile-menu li a, .nectar-scrolling-tabs .scrolling-tab-nav a, .container-wrap a:not(.wpb_tabs_nav a):not(.um-woo-view-order):not(.magnific):not([data-fancybox]):not(.woocommerce-tabs .tabs a):not(.slider-prev):not(.slider-next):not(.testimonial-next-prev a), .swiper-slide .button a, #slide-out-widget-area a, #slide-out-widget-area .inner div a", function(i) {
var s = e(this).prop("hash");
e(this).hasClass("nectar-next-section") || "1" != Zn || Hn.addClass("animated-scrolling"), clearTimeout(a), a = setTimeout(function() {
Hn.removeClass("animated-scrolling")
}, 850);
var r = e('body[data-header-format="left-header"]').length > 0 && En.width() > 1e3 ? 0 : e("#header-space").outerHeight();
if ((e(".page-template-template-no-header-footer").length > 0 || e(".page-template-template-no-header").length > 0) && (r = 0), s && Hn.find(s).length > 0 && "#top" != s && "" != s && -1 !== e(this).attr("href").indexOf(t.location.href.split("#")[0]) || e(this).is('[href^="#"]') && "" != s && Hn.find(s).length > 0 && "#top" != s) {
if (e(this).hasClass("skip-hash") || (history.pushState ? history.pushState(null, null, s) : location.hash = s), e(this).parents("ul").length > 0 && e(this).parents("ul").find("li").removeClass("current-menu-item"), e(this).parents("#slide-out-widget-area").length > 0) {
if (e('body.material[data-slide-out-widget-area-style="slide-out-from-right"].material-ocm-open').length > 0) {
e("body > .slide_out_area_close").addClass("non-human-allowed").trigger("click");
var o = e(this);
setTimeout(function() {
o.trigger("click")
}, 1e3)
} else e("#slide-out-widget-area .slide_out_area_close").addClass("non-human-allowed").trigger("click");
setTimeout(function() {
e('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length > 0 ? e("body > .slide_out_area_close").removeClass("non-human-allowed") : e("#slide-out-widget-area .slide_out_area_close").removeClass("non-human-allowed")
}, 100)
}
e(this).parents("#mobile-menu").length > 0 && (e(".slide-out-widget-area-toggle.mobile-icon a").addClass("non-human-allowed").trigger("click"), setTimeout(function() {
e(".slide-out-widget-area-toggle.mobile-icon a").removeClass("non-human-allowed")
}, 100));
var l = e(this).parents("#mobile-menu").length > 0 ? e(this).parents("#mobile-menu").height() : null,
d = 1,
c = e(this);
e(".nectar-box-roll").length > 0 && e(".container-wrap.bottomBoxOut").length > 0 && (Ci.boxRoll(null, -1), d = 2050), setTimeout(function() {
var t;
if (0 == e('body[data-permanent-transparent="1"]').length)
if (Hn.hasClass("mobile")) t = e('#header-outer[data-mobile-fixed="1"]').length > 0 ? e(s).offset().top + 2 - r + ki.adminBarHeight : e(s).offset().top - l - ki.adminBarHeight + 1;
else {
var a = e('#header-outer[data-header-resize="0"]').length > 0 ? 0 : parseInt(Rn) + 2 * n;
if (e('#header-outer[data-remove-fixed="1"]').length > 0 && (r = 0), t = e(s).offset().top - l - parseInt(r) + a + 3 - ki.adminBarHeight, 0 == e("body.mobile").length && e('#header-outer[data-condense="true"]').length > 0) {
var i = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),
o = On.height(),
d = o - (parseInt(i.height()) + parseInt(e("#header-outer #logo").css("margin-top")));
t = e(s).offset().top - parseInt(r) + d - ki.adminBarHeight
}
}
else t = e(s).offset().top - ki.adminBarHeight + 1;
e('body[data-hhun="1"]').length > 0 && 0 == e('#header-outer[data-remove-fixed="1"]').length && ((0 == e("#header-outer.detached").length || c.parents('.page-submenu[data-sticky="true"]').length > 0) && (t += r), c.parents('.page-submenu[data-sticky="true"]').length > 0 && (e("#header-outer.detached").addClass("invisible"), e(".page-submenu").addClass("header-not-visible").css("transform", "translateY(0px)")));
var h, u = c.parents('.page-submenu[data-sticky="true"]').length > 0 ? c.parents(".page-submenu").height() : 0;
h = e("body.material").length > 0 && Fn.length > 0 && 0 == e('body[data-hhun="1"]').length && 0 == e('#header-outer[data-remove-fixed="1"]').length && !Hn.hasClass("mobile") ? Fn.height() : e('body[data-hhun="1"]').length > 0 && Fn.length > 0 && !Hn.hasClass("mobile") && 0 == e('#header-outer[data-remove-fixed="1"]').length ? Fn.height() : 0, S(t - u + h, 700, "easeInOutQuint")
}, d), i.preventDefault()
}
"#top" == s && e(this).parents("#slide-out-widget-area").length > 0 && e("#slide-out-widget-area .slide_out_area_close").trigger("click")
})
}
}
function an() {
var t = e("#search-results"),
a = t.is('[data-layout="masonry-no-sidebar"]') ? 4 : 3;
t.imagesLoaded(function() {
t.isotope({
itemSelector: ".result",
layoutMode: "packery",
packery: {
columnWidth: e("#search-results").width() / a
}
}), t.find("article").css("opacity", "1")
}), En.on("resize", function() {
t.isotope({
layoutMode: "packery",
packery: {
columnWidth: e("#search-results").width() / a
}
})
})
}
function nn() {
e("body.search-results").length > 0 && e("#search-results article").length > 0 && 0 == e('#search-results[data-layout="list-no-sidebar"]').length && an()
}
function sn() {
if (e(".portfolio-items .col .style-3-alt").length > 0 || e(".portfolio-items .col .style-3").length > 0 || e(".portfolio-items .col .style-2").length > 0 || e(".portfolio-items .col .style-5").length > 0) {
var t = "";
e(".portfolio-items .col").each(function() {
var a = e(this).attr("data-title-color"),
n = e(this).attr("data-subtitle-color");
a.length > 0 && (t += '.col[data-title-color="' + a + '"] .vert-center h3, .portfolio-items[data-ps="6"] .col[data-title-color="' + a + '"] .work-meta h4 { color: ' + a + "!important; } ", t += ' .portfolio-items[data-ps="8"] .col[data-title-color="' + a + '"] .line { background-color: ' + a + "; }", t += '.portfolio-items[data-ps="8"] .col[data-title-color="' + a + '"] .next-arrow line { stroke: ' + a + "; } "), n.length > 0 && (t += '.col[data-subtitle-color="' + n + '"] .vert-center p, .portfolio-items[data-ps="6"] .col[data-title-color="' + a + '"] .work-meta p { color: ' + n + "!important; } ")
}), Y(t, "nectar-portfolio-colors")
}
}
function rn() {
Hn.on("mouseover", '.post-area.featured_img_left .grav-wrap .text a, .masonry.material .masonry-blog-item .grav-wrap .text a, .blog-recent[data-style="material"] .grav-wrap .text a', function() {
e(this).parents(".grav-wrap").find("img").addClass("hovered")
}), Hn.on("mouseleave", '.post-area.featured_img_left .grav-wrap .text a, .masonry.material .masonry-blog-item .grav-wrap .text a, .blog-recent[data-style="material"] .grav-wrap .text a', function() {
e(this).parents(".grav-wrap").find("img").removeClass("hovered")
}), Hn.on("mouseleave", '.container-wrap[data-nav-pos="after_project_2"] #portfolio-nav ul li, .blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul li', function() {
e(this).addClass("mouse-leaving")
})
}
function on() {
Kn = [], e(".portfolio-items:not(.carousel)").each(function(t) {
e(this).attr("instance", t), e(this).parent().parent().find("div[class^=portfolio-filters]").attr("instance", t), "undefined" != typeof SalientPortfolio && (Kn[t] = new SalientPortfolio(e(this), Ie))
})
}
function ln() {
ki.winW > 690 && e('.posts-container[data-load-animation="perspective"]').css("perspective-origin", "50% " + (ki.scrollTop + ki.winH) + "px"), requestAnimationFrame(ln)
}
function dn() {
e('.posts-container[data-load-animation="perspective"]').length > 0 && requestAnimationFrame(ln)
}
function cn(t) {
"none" == t.attr("data-load-animation") ? t.find(".inner-wrap").removeClass("animated") : t.find("article").each(function(t) {
if (e(this).visible(!0)) e(this).delay(110 * t).queue(function(t) {
e(this).addClass("animated-in"), t()
});
else var a = e(this),
n = new Waypoint({
element: a,
handler: function() {
setTimeout(function() {
a.addClass("animated-in")
}, 80 * a.attr("data-delay-amount")), n.destroy()
},
offset: "90%"
})
})
}
function hn() {
ui = [], e(".posts-container").each(function(t) {
if (e(this).parent().hasClass("masonry") && !e(this).parent().hasClass("auto_meta_overlaid_spaced")) {
if ("undefined" == typeof NectarMasonryBlog) return;
ui[t] = new NectarMasonryBlog(e(this), ve, cn)
} else cn(e(this))
})
}
function un() {
!e().theiaStickySidebar || ki.usingMobileBrowser && ki.winW < 1e3 || e('#sidebar[data-nectar-ss="true"], #sidebar[data-nectar-ss="1"], .nectar-scrolling-tabs .scrolling-tab-nav').each(function() {
var t = 50;
if (e('#header-outer[data-remove-fixed="0"]').length > 0 && 0 == e('body[data-hhun="1"]').length && 0 == e('#header-outer[data-format="left-header"]').length) {
if (t += On.outerHeight(), e('#header-outer[data-shrink-num][data-header-resize="1"]').length > 0) {
var a = parseInt(On.attr("data-padding")) - parseInt(On.attr("data-padding")) / 1.8;
t -= Rn, t -= a
}
if (0 == e("body.mobile").length && e('#header-outer[data-condense="true"]').length > 0) {
var n = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');
t = 50, t += On.height() - (parseInt(n.position().top) - parseInt(e("#header-outer #logo").css("margin-top"))) - parseInt(ki.secondaryHeaderHeight)
}
}
$n.length > 0 && (t += $n.outerHeight()), e(this).parents(".wpb_widgetised_column").length > 0 ? e("body.vc_editor").length > 0 || e(this).parents(".wpb_column").theiaStickySidebar({
additionalMarginTop: t,
updateSidebarHeight: !1
}) : e(this).theiaStickySidebar({
additionalMarginTop: t,
updateSidebarHeight: !1
})
})
}
function pn() {
var t = Ln - Ln / 1.8;
Hn.on("click", ".section-down-arrow, .scroll-down-wrap > .minimal-arrow", function() {
if (e(this).parents(".nectar-box-roll").length > 0) return !1;
var a, n = e(this).parents("#page-header-bg"),
i = n.height(),
s = 0 == n.parents(".first-section").length || e('body[data-transparent-header="false"]').length > 0 ? n.offset().top : 0,
r = jn.length > 0 && En.width() > 1e3 ? jn.height() : 0,
o = e('body[data-header-format="left-header"]').length > 0 ? 0 : e("#header-space").height(),
l = 0;
if (e("body.material").length > 0 && Fn.length > 0 && (l = Fn.height()), 0 == e('body[data-permanent-transparent="1"]').length)
if (Hn.hasClass("mobile")) a = e('#header-outer[data-mobile-fixed="1"]').length > 0 ? parseInt(i) - o + parseInt(n.offset().top) + 2 : parseInt(i) + parseInt(n.offset().top) + 2, e("body,html").stop().animate({
scrollTop: a - 2 * r
}, 1e3, "easeInOutCubic");
else if (e('body[data-hhun="1"]').length > 0 && 0 == e('#header-outer[data-remove-fixed="1"]').length) e("body,html").stop().animate({
scrollTop: parseInt(i) + s + 2 - 2 * r
}, 1e3, "easeInOutCubic");
else {
var d = e('#header-outer[data-header-resize="0"]').length > 0 ? 0 : parseInt(Rn) + 2 * t;
if (e('#header-outer[data-remove-fixed="1"]').length > 0 && (o = 0, s = 0), 0 == e("body.mobile").length && e('#header-outer[data-condense="true"]').length > 0) {
var c = e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');
o = On.height() - (parseInt(c.position().top) - parseInt(e("#header-outer #logo").css("margin-top"))) - parseInt(ki.secondaryHeaderHeight)
}
e("body,html").stop().animate({
scrollTop: parseInt(i - o) + d + 3 + s + l
}, 1e3, "easeInOutCubic")
} else e("body,html").stop().animate({
scrollTop: parseInt(i) + parseInt(n.offset().top) + 2 - 2 * r
}, 1e3, "easeInOutCubic");
return !1
})
}
function fn() {
e(".nectar-liquid-bg").removeClass("animated-in");
for (var t = 0; t < di.length; t++) "displace-filter-fade" == di[t].animationType && e(di[t].canvasContainer).parents(".fp-section.active").length > 0 && (0 == e(di[t].canvasContainer).find(".image-added-to-stage").length && di[t].imgContainer.addChild(di[t].bg), e(di[t].canvasContainer).find(".nectar-liquid-bg").addClass("image-added-to-stage"), di[t].animateProps(di[t]))
}
function gn() {
if (e("#nectar_fullscreen_rows").length > 0 && e().fullpage) {
wi = t.vc_iframe ? ".vc_element.vc_vc_row.active " : ".wpb_row.active ";
var a = e("#nectar_fullscreen_rows[data-mobile-disable]").length > 0 ? e("#nectar_fullscreen_rows").attr("data-mobile-disable") : "off";
ki.usingMobileBrowser || (a = "off"), "on" != a ? yi = !0 : wi = "", xi = new NectarFullScreenRows(Kt, hi, fn, ki, Re, pi, ei)
}
}
function mn() {
ki.usingMobileBrowser && Hn.addClass("using-mobile-browser");
var a = t.navigator.userAgent,
n = a.indexOf("Edge/");
n > 0 && Hn.addClass("msie"), 0 == e("html.js").length && e("html").removeClass("no-js").addClass("js"), e("code").find("br").remove(), e(".wpcf7-form p:has(input[type=submit])").css("padding-bottom", "0px"), e(".full-width-content .wpcf7-submit").on("click", function() {
setTimeout(function() {
Ie()
}, 1e3), setTimeout(function() {
Ie()
}, 2e3)
}), e(".gform_body").on("click", function() {
setTimeout(function() {
Ie()
}, 200)
}), e(".pum.pum-theme-salient-page-builder-optimized button.pum-close").wrapInner(""), e("#nectar_fullscreen_rows").length > 0 && e(".pum-container .pum-content > .wpb_row .full-page-inner > .container > .span_12").length > 0 && e(".pum-container .pum-content > .wpb_row .full-page-inner > .container > .span_12").unwrap(), e(".single .blog_next_prev_buttons").length > 0 && e(".container-wrap").css("padding-bottom", 0), e(".full-width-section").each(function() {
e(this).find("> .span_12 > div.col_last").last().css("margin-bottom", "0")
}), e(".full-width-content .col.boxed").removeClass("boxed"), e(".wpb_column.neg-marg").parents(".wpb_row").css("z-index", "110")
}
function vn() {
e(".wpb_row").each(function() {
void 0 !== e(this).find(".span_12").offset() && e(this).find('[class*="vc_col-"]').each(function() {
var t = e(this).parents(".span_12").offset().left;
e(this).removeClass("no-left-margin"), e(this).offset().left < t + 27 ? e(this).addClass("no-left-margin") : e(this).removeClass("no-left-margin")
})
})
}
function bn() {
var a = ki.winW,
n = ki.winH,
i = 0;
Hn.is('[data-flex-cols="true"]') || e('[class*="vc_col-xs-"], [class*="vc_col-md-"], [class*="vc_col-lg-"]').length > 0 && (vn(), ki.usingMobileBrowser ? (t.addEventListener("orientationchange", function() {
i = 1
}), En.on("resize", function() {
(En.width() != a && En.height != n || 1 === i) && (vn(), a = ki.winW, n = ki.winH, i = 0)
})) : En.on("resize", vn))
}
function wn() {
e("select:not(.state_select):not(.country_select):not(.comment-form-rating #rating):not(#tribe-bar-form select):not(.woocommerce-currency-switcher)").each(function() {
var t = ki.winW > 690 ? 7 : 200;
(e(this).hasClass("skip-select2-search") || e(this).parents(".skip-select2-search").length > 0) && (t = 1e3), 0 == e(this).parents("#buddypress").length && (0 == e(this).parents(".woocommerce-ordering").length ? e(this).select2({
minimumResultsForSearch: t,
width: "100%"
}) : e(this).select2({
minimumResultsForSearch: t,
dropdownAutoWidth: !0
}))
})
}
function yn() {
e('body[data-fancy-form-rcs="1"]').length > 0 && (e("select:not(.comment-form-rating #rating)").each(function() {
var t;
e(this).parents(".wpcf7-form-control-wrap").length > 0 ? (t = e(this).parents(".wpcf7-form-control-wrap").find(".select2-container").length > 0 ? e(e(this).prev(".select2-container")) : e(this), 1 == t.parents(".wpcf7-form-control-wrap").parent().find("label").length ? t.parents(".wpcf7-form-control-wrap").parent().wrapInner('') : t.wrap('')) : (t = e(this).prev(".select2-container").length > 0 ? e(this).prev(".select2-container") : e(this), 0 == e(this).parents("#buddypress").length && 0 == e(this).parents(".widget_categories").length && (1 == t.prev("label").length ? t.prev("label").andSelf().wrapAll('') : 1 == t.next("label").length ? t.next("label").andSelf().wrapAll('') : t.wrap('')))
}), wn())
}
function _n() {
(-1 != navigator.userAgent.indexOf("Safari") && -1 == navigator.userAgent.indexOf("Chrome") || navigator.userAgent.match(/(iPod|iPhone|iPad)/)) && (t.onpageshow = function(t) {
t.persisted && (e(".nectar-video-wrap, .nectar-slider-wrap .swiper-slide .video-wrap").each(function() {
e(this).find("video").length > 0 && e(this).find("video")[0].play()
}), e("body.material-ocm-open").length > 0 ? (e("body > .slide_out_area_close").addClass("non-human-allowed").trigger("click"), setTimeout(function() {
e("body > .slide_out_area_close").removeClass("non-human-allowed")
}, 100)) : e("#slide-out-widget-area.slide-out-from-right-hover.open").length > 0 && navigator.userAgent.match(/(iPod|iPhone|iPad)/) ? zt() : (e("#slide-out-widget-area.fullscreen.open").length > 0 || e("#slide-out-widget-area.fullscreen-alt.open").length > 0 || e("#slide-out-widget-area.slide-out-from-right.open").length > 0) && (e("#slide-out-widget-area .slide_out_area_close").addClass("non-human-allowed"), e(".slide-out-widget-area-toggle:not(.std-menu) a.open").addClass("non-human-allowed").trigger("click"), setTimeout(function() {
e("#slide-out-widget-area .slide_out_area_close").removeClass("non-human-allowed")
}, 100)))
})
}
function Cn() {
e(".wpb_row").removeClass("only-ns"), e('.nectar-slider-wrap[data-full-width="true"], .page-submenu, .portfolio-items[data-col-num="elastic"]:not(.fullwidth-constrained), .blog-fullwidth-wrap').parents(".wpb_row").addClass("only-ns"), e("body.vc_editor.compose-mode .wpb_row .vc_vc_column > .wpb_column > .vc_column-inner").each(function() {
e(this).find("> .vc_element-container > div").length > 0 && (e(this).find("> .vc_element-container > div:first-child").is(".vc_vc_row_inner") ? e(this).find("> .vc_element-container > div:first-child").addClass("first-inner-row-el") : e(this).find("> .vc_element-container > div:first-child").removeClass("first-inner-row-el"))
})
}
function xn() {
e('.vc_element > .wpb_column[class*="padding-"][class*="-percent"]').each(function() {
var t = 4,
a = this.className.match(/padding-\d+/);
if (a && (t = a[0].match(/\d+/), t = t ? t[0] / 100 : 0), t) {
var n = e(this).parents(".span_12").width();
e(this).is('[data-padding-pos="all"]') ? e(this).css("padding", n * t) : e(this).is('[data-padding-pos="top"]') ? e(this).css("padding-top", n * t) : e(this).is('[data-padding-pos="bottom"]') ? e(this).css("padding-bottom", n * t) : e(this).is('[data-padding-pos="left"]') ? e(this).css("padding-left", n * t) : e(this).is('[data-padding-pos="right"]') ? e(this).css("padding-right", n * t) : e(this).is('[data-padding-pos="top-bottom"]') ? e(this).css({
"padding-top": n * t,
"padding-bottom": n * t
}) : e(this).is('[data-padding-pos="top-right"]') ? e(this).css({
"padding-top": n * t,
"padding-right": n * t
}) : e(this).is('[data-padding-pos="bottom-right"]') ? e(this).css({
"padding-right": n * t,
"padding-bottom": n * t
}) : e(this).is('[data-padding-pos="bottom-left"]') ? e(this).css({
"padding-left": n * t,
"padding-bottom": n * t
}) : e(this).is('[data-padding-pos="left-right"]') && e(this).css({
"padding-left": n * t,
"padding-right": n * t
})
}
}), e('.wpb_row[class*="vc_custom_"]').each(function() {
e(this).parent().addClass("no-bottom-margin")
})
}
function kn() {
setTimeout(function() {
e("body.compose-mode").length > 0 && e(".container-wrap").addClass("visible-editor-controls"), ki.usingFrontEndEditor && (Cn(), Hn.is('[data-flex-cols="true"]') || (xn(), En.smartresize(xn)))
}, 200), En.on("vc_reload", function() {
if (Cn(), oe(), ae(), u(), _e(), s(), J(), Ee(), pe(), qa(), lt(), I(), Ze(), Sa(), La(), Ae(), Xe(), e(".carousel").length > 0 && (v(), k(), x()), e(".owl-carousel").length > 0 && (e(".owl-carousel").each(function() {
e(this).trigger("destroy.owl.carousel").removeClass("owl-loaded"), e(this).find(".owl-stage-outer .owl-stage > *").unwrap(), e(this).find(".owl-stage-outer > *").unwrap(), e(this).find(".owl-item > *").unwrap(), e(this).find(".owl-dots").remove(), e(this).find(".owl-nav").remove()
}), w()), e(".nectar_cascading_images").length > 0 && imagesLoaded(e(".nectar_cascading_images"), function() {
Se()
}), ve(), Ce(), Ya(), Te(), ai.length > 0)
for (var a = 0; a < ai.length; a++) ai[a].reloadCells(), ai[a].off("scroll.flickity"), ai[a].off("dragStart.flickity"), ai[a].off("dragEnd.flickity");
if (l(), setTimeout(function() {
if (d(), ai.length > 0)
for (var e = 0; e < ai.length; e++) ai[e].reloadCells(), ai[e].resize()
}, 100), li.length > 0)
for (a = 0; a < li.length; a++) li[a].flickity("reloadCells"), li[a].off("scroll.flickity"), li[a].off("dragStart.flickity"), li[a].off("dragEnd.flickity");
setTimeout(function() {
if (e(".nectar-woo-flickity").length > 0 && C(), li.length > 0)
for (var t = 0; t < li.length; t++) li[t].flickity("reloadCells"), li[t].flickity("resize")
}, 100), tt();
for (a = 0; a < ci.length; a++) "multiple_visible" != ci[a].type && "multiple_visible_minimal" != ci[a].type || (ci[a].flickityEl.flickity("reloadCells"), ci[a].flickityEl.off("select.flickity"), tt(), ci[a].flickityEl.resize()), ci[a].testimonialSliderHeight();
if (at(), et(), ot(), P(), Ne(), ne(), Jt(), Gt(), dt(), ct(), Ie(), setTimeout(Ie, 1e3), pt(), Ia(), En.off("scroll.parallaxSections").off("resize.parallaxSections"), we(), hn(), on(), Kn.length > 0)
for (a = 0; a < Kn.length; a++) Kn[a].portfolioAccentColor();
if (Ba(), Va(), setTimeout(function() {
if (e(".nectar_fullscreen_zoom_recent_projects").length > 0 && oi.length > 0)
for (var t = 0; t < oi.length; t++) oi[t].sliderCalcs()
}, 300), En.unbind(".infscr"), Da(), ze(), e(".nectar-video-wrap").each(function() {
e(this).find("video").length > 0 && e(this).find("video").css("visibility", "visible")
}), e(".wpb_column[data-t-w-inherits]").each(function() {
e(this).is('[data-t-w-inherits="small_desktop"]') ? e(this).parent().addClass("inherits-s-desktop-col") : e(this).parent().removeClass("inherits-s-desktop-col")
}), e("#nectar_fullscreen_rows").length > 0) {
0 == e("#nectar_fullscreen_rows > .vc_element").length && e("#nectar_fullscreen_rows").prepend(''), e("#nectar_fullscreen_rows > .vc_element:not(.empty_placeholder)").length > 0 && e("#nectar_fullscreen_rows >.vc_element.empty_placeholder").remove(), e.fn.fullpage.destroy("all"), gn();
var n = [{
el: "",
offset: 0
}];
e("#nectar_fullscreen_rows > div.vc_element").each(function(t) {
n[t] = {
el: e(this),
offset: e(this).offset().top
}
}), 1 === e("#nectar_fullscreen_rows > div.vc_element").length && e("#nectar_fullscreen_rows").css({
transform: "translate3d(0,0,0)"
}), Hn.scrollTo(0, 0)
} else e('body .main-content > .row > .vc_element:first > .wpb_row[class*="full-width-"]').length > 0 || e('body .main-content > .row > .vc_element:first .nectar-slider-wrap[data-full-width="true"]').length > 0 ? e(".container-wrap").css({
"padding-top": "0",
"margin-top": "0"
}) : e(".container-wrap").css({
"padding-top": "40px"
});
ei = [], e(".svg-icon-holder").removeClass("animated-in").removeClass("bound"), e(".vc_nectar_gmap").length > 0 && setTimeout(function() {
"object" == typeof google && "object" == typeof google.maps ? t.mapAPI_Loaded() : t.nectarLove.mapApiKey.length > 0 && e.getScript("https://maps.google.com/maps/api/js?sensor=false&key=" + t.nectarLove.mapApiKey + "&callback=mapAPI_Loaded")
}, 100), un(), void 0 !== t.Waypoint && (Waypoint.destroyAll(), Kt())
})
}
function Tn() {
function a() {
e('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length > 0 ? (Wn.removeClass("loaded"), Wn.addClass("in-from-right"), setTimeout(function() {
Wn.addClass("loaded")
}, 30)) : e('#ajax-loading-screen[data-effect="center_mask_reveal"]').length > 0 ? Wn.css("opacity", "0").css("display", "block").transition({
opacity: "1"
}, 450) : Wn.show().transition({
opacity: "1"
}, 450)
}
var n = !1;
if (e('body[data-ajax-transitions="true"]').length > 0 && e('#ajax-loading-screen[data-disable-mobile="1"]').length > 0 && ki.winW < 1e3 && (n = !0), e('body[data-ajax-transitions="true"]').length > 0 && e('#ajax-loading-screen[data-method="standard"]').length > 0 && 0 == n) {
if (e("html").addClass("page-trans-loaded"), e('#ajax-loading-screen[data-effect="standard"]').length > 0 ? (0 == e(".nectar-particles").length && (Wn.transition({
opacity: 0
}, 500, function() {
e(this).css({
display: "none"
})
}), e("#ajax-loading-screen .loading-icon").transition({
opacity: 0
}, 500)), 0 == e(".nectar-box-roll").length && setTimeout(function() {
Kt()
}, 550)) : (e('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length > 0 && setTimeout(function() {
Wn.addClass("loaded")
}, 60), 0 == e('#page-header-wrap #page-header-bg[data-animate-in-effect="zoom-out"] .nectar-video-wrap').length && setTimeout(function() {
e("#ajax-loading-screen:not(.loaded)").addClass("loaded"), setTimeout(function() {
Wn.addClass("hidden")
}, 1e3)
}, 150), 0 == e(".nectar-box-roll").length && e('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length > 0 ? setTimeout(function() {
Kt()
}, 750) : 0 == e(".nectar-box-roll").length && setTimeout(function() {
Kt()
}, 350)), -1 != navigator.userAgent.indexOf("Safari") && -1 == navigator.userAgent.indexOf("Chrome") || navigator.userAgent.match(/(iPod|iPhone|iPad)/) ? (t.onunload = function() {
Wn.stop().transition({
opacity: 0
}, 800, function() {
e(this).css({
display: "none"
})
}), e("#ajax-loading-screen .loading-icon").transition({
opacity: 0
}, 600)
}, t.onpageshow = function(t) {
t.persisted && (Wn.stop().transition({
opacity: 0
}, 800, function() {
e(this).css({
display: "none"
})
}), e("#ajax-loading-screen .loading-icon").transition({
opacity: 0
}, 600))
}) : -1 != navigator.userAgent.indexOf("Firefox") && (t.onunload = function() {}), e(".portfolio-loading, .nectar-slider-loading .loading-icon").remove(), 0 == e('#ajax-loading-screen[data-disable-fade-on-click="1"]').length && 0 == e('body.using-mobile-browser #ajax-loading-screen[data-method="standard"][data-disable-mobile="1"]').length) {
var i = !1;
e('a[href^="mailto"], a[href^="tel"], .woocommerce-order-downloads a[class*="downloads-file"]').on("click", function() {
i = !0
}), t.addEventListener("beforeunload", function() {
i || (Wn.addClass("set-to-fade"), a()), i = !1
})
}
} else 1 == n && Wn.css({
opacity: "0",
display: "none"
}).addClass("loaded").addClass("hidden"), 0 != e(".nectar-box-roll").length || ki.usingFrontEndEditor || setTimeout(function() {
Kt()
}, 80)
}
var In, zn, En = e(t),
Hn = e("body"),
An = e("#slide-out-widget-area"),
Mn = e("#slide-out-widget-area-bg"),
On = e("#header-outer"),
Fn = e("#header-secondary-outer"),
Sn = e("#header-outer #search-btn a"),
$n = e("#wpadminbar"),
Wn = e("#ajax-loading-screen"),
jn = e(".body-border-top"),
Yn = e("#page-header-bg"),
Bn = e("#footer-outer"),
qn = e(".body-border-right").length > 0 ? e(".body-border-right").width() : 0,
Pn = On.is("[data-logo-height]") ? parseInt(On.attr("data-logo-height")) : 30,
Ln = On.is("[data-padding]") ? parseInt(On.attr("data-padding")) : 28,
Rn = On.is("[data-shrink-num]") ? On.attr("data-shrink-num") : 6,
Nn = !!On.is('[data-condense="true"]'),
Vn = !!On.is('[data-using-logo="1"]'),
Xn = !!On.is('[data-header-resize="1"]'),
Dn = !!On.is('[data-transparent-header="true"]'),
Qn = Hn.is("[data-header-format]") ? Hn.attr("data-header-format") : "default",
Zn = Hn.is("[data-hhun]") ? Hn.attr("data-hhun") : "",
Un = Hn.is("[data-cae]") && "swing" !== Hn.attr("data-cae") ? Hn.attr("data-cae") : "easeOutCubic",
Gn = Hn.is("[data-cad]") ? Hn.attr("data-cad") : "650",
Jn = !(Hn.is('[data-m-animate="1"]') || !navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)),
Kn = [],
ei = [],
ti = [],
ai = [],
ni = [],
ii = [],
si = [],
ri = [],
oi = [],
li = [],
di = [],
ci = [],
hi = [],
ui = [],
pi = [],
fi = [],
gi = [],
mi = [],
vi = [],
bi = 0,
wi = "",
yi = !1,
_i = !1,
Ci = {
animating: "false",
perspect: "not-rolled"
},
xi = {
$usingFullScreenRows: !1
};
jn.length > 0 && ("#ffffff" == jn.css("background-color") && "light" == Hn.attr("data-header-color") || "rgb(255, 255, 255)" == jn.css("background-color") && "light" == Hn.attr("data-header-color") || jn.css("background-color") == On.attr("data-user-set-bg")) && (_i = !0);
var ki = {
usingMobileBrowser: !!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/),
usingFrontEndEditor: void 0 !== t.vc_iframe,
getWindowSize: function() {
ki.winH = t.innerHeight, ki.winW = t.innerWidth, ki.adminBarHeight = $n.length > 0 ? $n.height() : 0, ki.secondaryHeaderHeight = Fn.length > 0 && "none" != Fn.css("display") ? Fn.outerHeight() : 0, ki.footerOuterHeight = Bn.length > 0 ? Bn.outerHeight() : 0
},
scrollTop: 0,
clientX: 0,
clientY: 0,
scrollPosMouse: function() {
return En.scrollTop()
},
scrollPosRAF: function() {
ki.scrollTop = En.scrollTop(), requestAnimationFrame(ki.scrollPosRAF)
},
bindEvents: function() {
ki.usingMobileBrowser ? requestAnimationFrame(ki.scrollPosRAF) : En.on("scroll", function() {
ki.scrollTop = ki.scrollPosMouse()
}), a.addEventListener("mousemove", function(e) {
ki.clientX = e.clientX, ki.clientY = e.clientY
}), En.on("resize", ki.getWindowSize)
},
init: function() {
$n = e("#wpadminbar"), this.getWindowSize(), this.scrollTop = this.scrollPosMouse(), this.bindEvents(), this.usingFrontEndEditor = void 0 !== t.vc_iframe
}
};
r.prototype.createMarkup = function() {
if ("horizontal-movement" === this.iconType)
if (0 == e(".nectar-drag-indicator").length) {
var t = e("body > #boxed").length > 0 ? " in-boxed" : "";
e("body").append('