function scrollAndFocus(t,e,o,i,a){var n;(n=jQuery)("body").addClass("scrolling"),n(t).closest("#mainNav").length&&n(t).parents(".collapse.show").collapse("hide"),n("html, body").animate({scrollTop:n(e).offset().top-(i||0)},300,function(){n("body").removeClass("scrolling"),setTimeout(function(){n(o).focus()},500),a&&n("html, body").animate({scrollTop:n(e).offset().top-(i||0)})})}function aspectRatioSVG(){$(window).width()<1950?$(".shape-divider svg[preserveAspectRatio]").each(function(){$(this).parent().hasClass("shape-divider-horizontal-animation")?$(this).attr("preserveAspectRatio","none"):$(this).attr("preserveAspectRatio","xMinYMin")}):$(".shape-divider svg[preserveAspectRatio]").each(function(){$(this).attr("preserveAspectRatio","none")})}!function(h){h.extend({browserSelector:function(){var t;t=navigator.userAgent||navigator.vendor||window.opera,(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4));function e(t){return-1<i.indexOf(t)}var o="ontouchstart"in window||navigator.msMaxTouchPoints,i=navigator.userAgent.toLowerCase(),a="gecko",n="webkit",s="safari",r="opera",d=document.documentElement,l=[!/opera|webtv/i.test(i)&&/msie\s(\d)/.test(i)?"ie ie"+parseFloat(navigator.appVersion.split("MSIE")[1]):e("firefox/2")?a+" ff2":e("firefox/3.5")?a+" ff3 ff3_5":e("firefox/3")?a+" ff3":e("gecko/")?a:e("opera")?r+(/version\/(\d+)/.test(i)?" "+r+RegExp.jQuery1:/opera(\s|\/)(\d+)/.test(i)?" "+r+RegExp.jQuery2:""):e("konqueror")?"konqueror":e("chrome")?n+" chrome":e("iron")?n+" iron":e("applewebkit/")?n+" "+s+(/version\/(\d+)/.test(i)?" "+s+RegExp.jQuery1:""):e("mozilla/")?a:"",e("j2me")?"mobile":e("iphone")?"iphone":e("ipod")?"ipod":e("mac")||e("darwin")?"mac":e("webtv")?"webtv":e("win")?"win":e("freebsd")?"freebsd":e("x11")||e("linux")?"linux":"","js"];c=l.join(" "),h.browser.mobile&&(c+=" mobile"),o&&(c+=" touch"),d.className+=" "+c,/Edge/.test(navigator.userAgent)&&h("html").removeClass("chrome").addClass("edge"),!window.ActiveXObject&&"ActiveXObject"in window?h("html").removeClass("gecko").addClass("ie ie11"):(h("body").hasClass("dark")&&h("html").addClass("dark"),h("body").hasClass("boxed")&&h("html").addClass("boxed"))}}),h.browserSelector(),theme.globalWindowWidth=h(window).width();h(window).width();window.onresize=function(){theme.globalWindowWidth=h(window).width()},/iPad|iPhone|iPod/.test(navigator.platform)&&h(document).ready(function(t){t(".thumb-info").attr("onclick","return true")}),h('a[data-bs-toggle="tab"]').length&&(h('a[data-bs-toggle="tab"]').on("shown.bs.tab",function(t){var e=h(h(t.target).attr("href"));e.length&&e.find(".owl-carousel").trigger("refresh.owl.carousel"),h(this).parents(".nav-tabs").find(".active").removeClass("active"),h(this).addClass("active").parent().addClass("active")}),window.location.hash&&h(window).on("load",function(){"*"!==window.location.hash&&h(window.location.hash).get(0)&&new bootstrap.Tab(h('a.nav-link[href="'+window.location.hash+'"]:not([data-hash])')[0]).show()})),h("html").hasClass("disable-onload-scroll")||!window.location.hash||["#*"].includes(window.location.hash)||(window.scrollTo(0,0),h(window).on("load",function(){setTimeout(function(){var t=window.location.hash,e=h(window).width()<768?180:90;h(t).length&&(h("a[href$='"+window.location.hash+"']").is("[data-hash-offset]")?e=parseInt(h("a[href$='"+window.location.hash+"']").first().attr("data-hash-offset")):h("html").is("[data-hash-offset]")&&(e=parseInt(h("html").attr("data-hash-offset"))),isNaN(e)&&(e=0),h("body").addClass("scrolling"),h("html, body").animate({scrollTop:h(t).offset().top-e},600,"easeOutQuad",function(){h("body").removeClass("scrolling")}))},1)})),h.fn.extend({textRotator:function(i){i=h.extend({fadeSpeed:500,pauseSpeed:100,child:null},i);return this.each(function(){var t,e=i,o=h(this);h(o.children(),o).each(function(){h(this).hide()}),t=e.child?e.child:h(o).children(":first"),h(t).fadeIn(e.fadeSpeed,function(){h(t).delay(e.pauseSpeed).fadeOut(e.fadeSpeed,function(){var t=h(this).next();0==t.length&&(t=h(o).children(":first")),h(o).textRotator({child:t,fadeSpeed:e.fadeSpeed,pauseSpeed:e.pauseSpeed})})})})}});var o,t={$wrapper:h(".notice-top-bar"),$closeBtn:h(".notice-top-bar-close"),$header:h("#header"),$body:h(".body"),init:function(){var t=this;return h.cookie("portoNoticeTopBarClose")?(t.$wrapper.parent().prepend("\x3c!-- Notice Top Bar removed by cookie --\x3e"),t.$wrapper.remove()):t.build().events(),this},build:function(){var t=this;return h(window).on("load",function(){setTimeout(function(){t.$body.css({"margin-top":t.$wrapper.outerHeight(),transition:"ease margin 300ms"}),h("#noticeTopBarContent").textRotator({fadeSpeed:500,pauseSpeed:5e3}),["absolute","fixed"].includes(t.$header.css("position"))&&t.$header.css({top:t.$wrapper.outerHeight(),transition:"ease top 300ms"}),h(window).trigger("notice.top.bar.opened")},1e3)}),this},events:function(){var e=this;return e.$closeBtn.on("click",function(t){t.preventDefault(),e.$body.animate({"margin-top":0},300,function(){e.$wrapper.remove(),e.saveCookie()}),["absolute","fixed"].includes(e.$header.css("position"))&&e.$header.animate({top:0},300),e.$header.hasClass("header-effect-shrink")&&e.$header.find(".header-body").animate({top:0},300),h(window).trigger("notice.top.bar.closed")}),this},checkCookie:function(){return!!h.cookie("portoNoticeTopBarClose")},saveCookie:function(){return h.cookie("portoNoticeTopBarClose",!0),this}};h(".notice-top-bar").length&&t.init(),h(".image-hotspot").length&&h(".image-hotspot").append('<span class="ring"></span>').append('<span class="circle"></span>'),h("body[data-plugin-page-transition]").length&&(o=!1,h(document).on("click","a",function(t){o=h(this)}),h(window).on("beforeunload",function(t){var e;"object"==typeof o&&(0==(e=o.attr("href")).indexOf("mailto:")||0==e.indexOf("tel:")||o.data("rm-from-transition")||h("body").addClass("page-transition-active"))}),h(window).on("pageshow",function(t){t.persisted&&(h("html").hasClass("safari")&&window.location.reload(),h("body").removeClass("page-transition-active"))})),h(".thumb-info-floating-caption").length&&(h(".thumb-info-floating-caption").on("mouseenter",function(){h(".thumb-info-floating-caption-title").length||(h(".body").append('<div class="thumb-info-floating-caption-title">'+h(this).data("title")+"</div>"),h(this).data("type")&&h(".thumb-info-floating-caption-title").append('<div class="thumb-info-floating-caption-type">'+h(this).data("type")+"</div>").css({"padding-bottom":22}),h(this).hasClass("thumb-info-floating-caption-clean")&&h(".thumb-info-floating-caption-title").addClass("bg-transparent"))}).on("mouseout",function(){h(".thumb-info-floating-caption-title").remove()}),h(document).on("mousemove",function(t){h(".thumb-info-floating-caption-title").css({position:"fixed",left:t.clientX-20,top:t.clientY+20})})),h("[data-toggle-text-click]").on("click",function(){h(this).text(function(t,e){return e===h(this).attr("data-toggle-text-click")?h(this).attr("data-toggle-text-click-alt"):h(this).attr("data-toggle-text-click")})}),h(".shape-divider").length&&(aspectRatioSVG(),h(window).on("resize",function(){aspectRatioSVG()})),h(".shape-divider-horizontal-animation").length&&theme.fn.intObs(".shape-divider-horizontal-animation",function(){for(var t=0;t<=1;t++){var e=h(this).find("svg:nth-child(1)").clone();h(this).append(e)}h(this).addClass("start")},{}),h("[data-porto-toggle-class]").on("click",function(t){t.preventDefault(),h(this).toggleClass(h(this).data("porto-toggle-class"))});var i=h(window);i.on("resize dynamic.height.resize",function(){h("[data-dynamic-height]").each(function(){var t=h(this),e=JSON.parse(t.data("dynamic-height").replace(/'/g,'"').replace(";",""));i.width()<576&&t.height(e[4]),575<i.width()&&i.width()<768&&t.height(e[3]),767<i.width()&&i.width()<992&&t.height(e[2]),991<i.width()&&i.width()<1200&&t.height(e[1]),1199<i.width()&&t.height(e[0])})}),i.width()<992&&i.trigger("dynamic.height.resize"),h("[data-trigger-play-video]").length&&theme.fn.execOnceTroughEvent("[data-trigger-play-video]","mouseover.trigger.play.video",function(){var e=h(h(this).data("trigger-play-video"));h(this).on("click",function(t){t.preventDefault(),"yes"==h(this).data("trigger-play-video-remove")?h(this).animate({opacity:0},300,function(){e[0].play(),h(this).remove()}):setTimeout(function(){e[0].play()},300)})}),h("video[data-auto-play]").length&&h(window).on("load",function(){h("video[data-auto-play]").each(function(){var t=h(this);setTimeout(function(){h("#"+t.attr("id")).length&&("yes"==h('[data-trigger-play-video="#'+t.attr("id")+'"]').data("trigger-play-video-remove")?h('[data-trigger-play-video="#'+t.attr("id")+'"]').animate({opacity:0},300,function(){t[0].play(),h('[data-trigger-play-video="#'+t.attr("id")+'"]').remove()}):setTimeout(function(){t[0].play()},300))},100)})}),h("[data-remove-min-height]").length&&h(window).on("load",function(){h("[data-remove-min-height]").each(function(){h(this).css({"min-height":0})})}),h(".style-switcher-open-loader").length&&h(".style-switcher-open-loader").on("click",function(t){t.preventDefault(),h(this).addClass("style-switcher-open-loader-loading");var e=h(this).data("base-path"),o=h(this).data("skin-src"),i=document.createElement("script");i.src=e+"master/style-switcher/style.switcher.localstorage.js";var a=document.createElement("script");a.src=e+"master/style-switcher/style.switcher.js",a.id="styleSwitcherScript",a.setAttribute("data-base-path",e),a.setAttribute("data-skin-src",o),a.onload=function(){setTimeout(function(){!function t(){h(".style-switcher-open").length?h(".style-switcher-open").trigger("click"):window.setTimeout(t,100)}()},500)},document.body.appendChild(i),document.body.appendChild(a)});try{window.location!==window.parent.location&&h(window).on("load",function(){$el=h("<a />").addClass("remove-envato-frame").attr({href:window.location.href,target:"_parent"}).text("Remove Frame"),h("body").append($el)})}catch(t){console.log(t)}}(jQuery),document.addEventListener("lazybeforeunveil",function(t){var e=t.target.getAttribute("data-bg-src");e&&(t.target.style.backgroundImage="url("+e+")")});