var mr_firstSectionHeight,mr_nav,mr_fixedAt,mr_navOuterHeight,mr_floatingProjectSections,mr_navScrolled=!1,mr_navFixed=!1,mr_outOfSight=!1,mr_scrollTop=0;function updateNav(){var e=mr_scrollTop;if(e<=0)return mr_navFixed&&(mr_navFixed=!1,mr_nav.removeClass("fixed")),mr_outOfSight&&(mr_outOfSight=!1,mr_nav.removeClass("outOfSight")),void(mr_navScrolled&&(mr_navScrolled=!1,mr_nav.removeClass("scrolled")));if(e>mr_navOuterHeight+mr_fixedAt){if(!mr_navScrolled)return mr_nav.addClass(“scrolled”),void(mr_navScrolled=!0)}else e>mr_navOuterHeight?(mr_navFixed||(mr_nav.addClass(“fixed”),mr_navFixed=!0),e>mr_navOuterHeight+10?mr_outOfSight||(mr_nav.addClass(“outOfSight”),mr_outOfSight=!0):mr_outOfSight&&(mr_outOfSight=!1,mr_nav.removeClass(“outOfSight”))):(mr_navFixed&&(mr_navFixed=!1,mr_nav.removeClass(“fixed”)),mr_outOfSight&&(mr_outOfSight=!1,mr_nav.removeClass(“outOfSight”))),mr_navScrolled&&(mr_navScrolled=!1,mr_nav.removeClass(“scrolled”))}function initializeMasonry(){$(“.masonry”).each(function(){var e=$(this).get(0),t=new Masonry(e,{itemSelector:”.masonry-item”});t.on(“layoutComplete”,function(){mr_firstSectionHeight=$(“.main-container section:nth-of-type(1)”).outerHeight(!0),$(“.filters.floating”).length&&(setupFloatingProjectFilters(),updateFloatingFilters(),window.addEventListener(“scroll”,updateFloatingFilters,!1)),$(“.masonry”).addClass(“fadeIn”),$(“.masonry-loader”).addClass(“fadeOut”),$(“.masonryFlyIn”).length&&masonryFlyIn()}),t.layout()})}function masonryFlyIn(){var e=$(“.masonryFlyIn .masonry-item”),t=0;e.each(function(){var e=$(this);setTimeout(function(){e.addClass(“fadeIn”)},t),t+=170})}$(document).ready(function(){“use strict”;var e=$(“a.inner-link”);if(e.length){e.each(function(){var e=$(this);”#”!==e.attr(“href”).charAt(0)&&e.removeClass(“inner-link”)});var t=0;$(“body[data-smooth-scroll-offset]”).length&&(t=$(“body”).attr(“data-smooth-scroll-offset”),t*=1),smoothScroll.init({selector:”.inner-link”,selectorHeader:null,speed:750,easing:”easeInOutCubic”,offset:t})}addEventListener(“scroll”,function(){mr_scrollTop=window.pageYOffset},!1),$(“nav”).hasClass(“fixed”)||$(“nav”).hasClass(“absolute”)?$(“body”).addClass(“nav-is-overlay”):($(“.nav-container”).css(“min-height”,$(“nav”).outerHeight(!0)),$(window).resize(function(){$(“.nav-container”).css(“min-height”,$(“nav”).outerHeight(!0))}),$(window).width()>768&&$(“.parallax:nth-of-type(1) .background-image-holder”).css(“top”,-$(“nav”).outerHeight(!0)),$(window).width()>768&&$(“section.fullscreen:nth-of-type(1)”).css(“height”,$(window).height()-$(“nav”).outerHeight(!0))),$(“nav”).hasClass(“bg-dark”)&&$(“.nav-container”).addClass(“bg-dark”),mr_nav=$(“body .nav-container nav:first”),mr_navOuterHeight=$(“body .nav-container nav:first”).outerHeight(),mr_fixedAt=void 0!==mr_nav.attr(“data-fixed-at”)?parseInt(mr_nav.attr(“data-fixed-at”).replace(“px”,””)):parseInt($(“section:nth-of-type(1)”).outerHeight()),window.addEventListener(“scroll”,updateNav,!1),$(“.menu > li > ul”).each(function(){var e=$(this).offset(),t=e.left+$(this).outerWidth(!0);if(t>$(window).width()&&!$(this).hasClass(“mega-menu”))$(this).addClass(“make-right”);else if(t>$(window).width()&&$(this).hasClass(“mega-menu”)){var i=$(window).width()-e.left,n=$(this).outerWidth(!0)-i;$(this).css(“margin-left”,-n)}}),$(“.mobile-toggle”).click(function(){$(“.nav-bar”).toggleClass(“nav-open”),$(this).toggleClass(“active”)}),$(“.menu li”).click(function(e){e||(e=window.event),e.stopPropagation(),$(this).find(“ul”).length?$(this).toggleClass(“toggle-sub”):$(this).parents(“.toggle-sub”).removeClass(“toggle-sub”)}),$(“.menu li a”).click(function(){$(this).hasClass(“inner-link”)&&$(this).closest(“.nav-bar”).removeClass(“nav-open”)}),$(“.module.widget-handle”).click(function(){$(this).toggleClass(“toggle-widget-handle”)}),$(“.search-widget-handle .search-form input”).click(function(e){e||(e=window.event),e.stopPropagation()}),$(“.offscreen-toggle”).length?$(“body”).addClass(“has-offscreen-nav”):$(“body”).removeClass(“has-offscreen-nav”),$(“.offscreen-toggle”).click(function(){$(“.main-container”).toggleClass(“reveal-nav”),$(“nav”).toggleClass(“reveal-nav”),$(“.offscreen-container”).toggleClass(“reveal-nav”)}),$(“.main-container”).click(function(){$(this).hasClass(“reveal-nav”)&&($(this).removeClass(“reveal-nav”),$(“.offscreen-container”).removeClass(“reveal-nav”),$(“nav”).removeClass(“reveal-nav”))}),$(“.offscreen-container a”).click(function(){$(“.offscreen-container”).removeClass(“reveal-nav”),$(“.main-container”).removeClass(“reveal-nav”),$(“nav”).removeClass(“reveal-nav”)}),$(“.accordion li”).click(function(){$(this).closest(“.accordion”).hasClass(“one-open”)?($(this).closest(“.accordion”).find(“li”).removeClass(“active”),$(this).addClass(“active”)):$(this).toggleClass(“active”),void 0!==window.mr_parallax&&setTimeout(mr_parallax.windowLoad,500)}),$(“.tabbed-content”).each(function(){$(this).append(‘

    ‘)}),$(“.tabs li”).each(function(){var e=$(this),t=””;e.is(“.tabs>li:first-child”)&&(t=’ class=”active”‘);var i=e.find(“.tab-content”).detach().wrap(“

    “).parent();e.closest(“.tabbed-content”).find(“.content”).append(i)}),$(“.tabs li”).click(function(){$(this).closest(“.tabs”).find(“li”).removeClass(“active”),$(this).addClass(“active”);var e=$(this).index()+1;$(this).closest(“.tabbed-content”).find(“.content>li”).removeClass(“active”),$(this).closest(“.tabbed-content”).find(“.content>li:nth-of-type(“+e+”)”).addClass(“active”)})}),$(window).load(function(){“use strict”;setTimeout(initializeMasonry,1e3),mr_firstSectionHeight=$(“.main-container section:nth-of-type(1)”).outerHeight(!0)}),function(e,t){if(“function”==typeof define&&define.amd)define(“GLightbox”,[“module”],t);else if(“undefined”!=typeof exports)t(module);else{var i={exports:{}};t(i),e.GLightbox=i.exports}}(this,function(e){“use strict”;var t=function(){function e(e,t){for(var i=0;i‘+i+”“:s}(i.description,this.settings.moreLength,this.settings.moreText),h.innerHTML=i.smallDescription,function e(t,i){var n=t.querySelector(“.desc-more”);if(!n)return!1;p(“click”,{onElement:n,withCallback:function(t,n){t.preventDefault();var s=x(n,”.gslide-desc”);if(!s)return!1;s.innerHTML=i.description,y(a,”gdesc-open”);var o=p(“click”,{onElement:[a,x(s,”.gslide-description”)],withCallback:function(t,n){“a”!==t.target.nodeName.toLowerCase()&&(b(a,”gdesc-open”),y(a,”gdesc-closed”),s.innerHTML=i.smallDescription,e(s,i),setTimeout(function(){b(a,”gdesc-closed”)},400),o.destroy())}})}})}.apply(this,[h,i])):h.innerHTML=i.description:h.parentNode.removeChild(h),y(l.parentNode,”desc-“+r),y(g,”description-“+r)),y(l,”gslide-“+o),y(e,”loaded”),”video”!==o)if(“external”!==o)if(“inline”!==o){if(“image”===o){var C=new Image;return C.addEventListener(“load”,function(){v.isFunction(m)&&m()},!1),C.src=i.href,void l.appendChild(C)}v.isFunction(m)&&m()}else(function(e,t,i){var n=e.querySelector(“.gslide-media”),s=document.getElementById(t.inlined.replace(“#”,””));if(s){var o=s.cloneNode(!0);return o.style.height=t.height+”px”,o.style.maxWidth=t.width+”px”,y(o,”ginlined-content”),n.appendChild(o),void(v.isFunction(i)&&i())}}).apply(this,[e,i,m]);else{var k=_(i.href,i.width,i.height,m);l.appendChild(k)}else(function(e,t,i){var s=this,o=t.source,a=”gvideo”+t.index,r=e.querySelector(“.gslide-media”),l=t.href,c=location.protocol.replace(“:”,””);if(“file”==c&&(c=”http”),”vimeo”==o){var h=/vimeo.*\/(\d+)/i.exec(l),g=T(this.settings.vimeo.params),m=c+”://player.vimeo.com/video/”+h[1]+”?”+g;z(this.settings.vimeo.api);var p=_(m,t.width,t.height,function(){!function(e,t,i,n){if(e())t();else{i||(i=100);var s,o=setInterval(function(){e()&&(clearInterval(o),s&&clearTimeout(s),t())},i)}}(function(){return”undefined”!=typeof Vimeo},function(){var e=new Vimeo.Player(p);u[a]=e,v.isFunction(i)&&i()})},r);p.id=a,p.className=”vimeo-video gvideo”,this.settings.autoplayVideos&&!n&&(p.className+=” wait-autoplay”)}if(“youtube”==o){var b=T(f(this.settings.youtube.params,{playerapiid:a})),w=c+”://www.youtube.com/embed/”+function(e){return void 0!==(e=e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]?e[2].split(/[^0-9a-z_\-]/i)[0]:e}(l)+"?"+b;z(this.settings.youtube.api);var C=_(w,t.width,t.height,function(){if(!v.isNil(YT)&&YT.loaded){var e=new YT.Player(C);u[a]=e}else d.push(C);v.isFunction(i)&&i()},r);C.id=a,C.className="youtube-video gvideo",this.settings.autoplayVideos&&!n&&(C.className+=" wait-autoplay")}if("local"==o){var x='“);r.appendChild(O);var N=document.getElementById(a);if(null!==this.settings.jwplayer&&null!==this.settings.jwplayer.api){this.settings.jwplayer;var F=this.settings.jwplayer.api;if(!F)return console.warn(“Missing jwplayer api file”),v.isFunction(i)&&i(),!1;z(F,function(){var e=f(s.settings.jwplayer.params,{width:t.width+”px”,height:t.height+”px”,file:l});jwplayer.key=s.settings.jwplayer.licenseKey;var n=jwplayer(a);n.setup(e),u[a]=n,n.on(“ready”,function(){y(N=r.querySelector(“.jw-video”),”gvideo”),N.id=a,v.isFunction(i)&&i()})})}else y(N,”html5-video”),u[a]=N,v.isFunction(i)&&i()}}).apply(this,[e,i,m])};function _(e,t,i,s,o){var a=document.createElement(“iframe”),r=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return a.className=”vimeo-video gvideo”,a.src=e,a.style.height=n&&r<767?"":i+"px",a.style.width=t+"px",a.setAttribute("allowFullScreen",""),a.onload=function(){y(a,"iframe-ready"),v.isFunction(s)&&s()},o&&o.appendChild(a),a}function z(e,t){if(v.isNil(e))console.error("Inject videos api error");else{var i=document.querySelectorAll('script[src="'+e+'"]');if(v.isNil(i)||0==i.length){var n=document.createElement("script");return n.type="text/javascript",n.src=e,n.onload=function(){v.isFunction(t)&&t()},document.body.appendChild(n),!1}v.isFunction(t)&&t()}}function O(){for(var e=0;e0&&(t+=”&”),t+=n+”=”+e,i+=1}),t}void 0!==window.onYouTubeIframeAPIReady?window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady(),O()}:window.onYouTubeIframeAPIReady=O;var N=function(e){var t=e,i={};if(null!==(e=e.toLowerCase()).match(/\.(jpeg|jpg|gif|png)$/))return i.sourcetype=”image”,i;if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return i.sourcetype=”video”,i.source=”youtube”,i;if(e.match(/vimeo\.com\/([0-9]*)/))return i.sourcetype=”video”,i.source=”vimeo”,i;if(null!==e.match(/\.(mp4|ogg|webm)$/))return i.sourcetype=”video”,i.source=”local”,i;if(e.indexOf(“#”)>-1){var n=t.split(“#”).pop();if(“”!==n.trim())return i.sourcetype=”inline”,i.source=e,i.inlined=”#”+n,i}return e.includes(“gajax=true”)&&(i.sourcetype=”ajax”,i.source=e),i.sourcetype=”external”,i.source=e,i};function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:””;if(“”==t)return e.style.webkitTransform=””,e.style.MozTransform=””,e.style.msTransform=””,e.style.OTransform=””,e.style.transform=””,!1;e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function L(e){var t=e.querySelector(“.gslide-media”),i=e.querySelector(“.gslide-description”);y(t,”greset”),F(t,”translate3d(0, 0, 0)”),p(r,{onElement:t,once:!0,withCallback:function(e,i){b(t,”greset”)}}),t.style.opacity=””,i&&(i.style.opacity=””)}var I=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.settings=f(h,t||{}),this.effectsClasses=this.getAnimationClasses()}return t(e,[{key:”init”,value:function(){var e=this;this.baseEvents=p(“click”,{onElement:”.”+this.settings.selector,withCallback:function(t,i){t.preventDefault(),e.open(i)}})}},{key:”open”,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.elements=this.getElements(e),0==this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var t=this.settings.startAt;e&&(t=this.elements.indexOf(e))<0&&(t=0),this.build(),C(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var i=a.offsetWidth;if(a.style.width=i+"px",y(a,"glightbox-open"),y(o,"glightbox-open"),n&&(y(o,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(t,!0),1==this.elements.length?(E(this.prevButton),E(this.nextButton)):(k(this.prevButton),k(this.nextButton)),this.lightboxOpen=!0,v.isFunction(this.settings.onOpen)&&this.settings.onOpen(),n&&s&&this.settings.touchNavigation)return function(){var e=this;if(this.events.hasOwnProperty("touchStart"))return!1;var t=void 0,i=void 0,n=void 0,s=!1,o=!1,r=!1,l=!1,c={},d={},u=(this.slidesContainer,null),h=0,f=0,v=null,g=null,m=null,C=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,this.events.doctouchmove=p("touchmove",{onElement:document,withCallback:function(e,t){if(w(a,"gdesc-open"))return e.preventDefault(),!1}}),this.events.touchStart=p("touchstart",{onElement:a,withCallback:function(t,i){w(a,"gdesc-open")||(y(a,"touching"),u=e.getActiveSlide(),v=u.querySelector(".gslide-image"),g=u.querySelector(".gslide-media"),m=u.querySelector(".gslide-description"),e.index,d=t.targetTouches[0],c.pageX=t.targetTouches[0].pageX,c.pageY=t.targetTouches[0].pageY,h=t.targetTouches[0].clientX,f=t.targetTouches[0].clientY)}}),this.events.gestureStart=p("gesturestart",{onElement:a,withCallback:function(e,t){v&&(e.preventDefault(),r=!0)}}),this.events.gestureChange=p("gesturechange",{onElement:a,withCallback:function(e,t){e.preventDefault(),F(v,"scale("+e.scale+")")}}),this.events.gesturEend=p("gestureend",{onElement:a,withCallback:function(e,t){r=!1,e.scale<1?(l=!1,F(v,"scale(1)")):l=!0}}),this.events.touchMove=p("touchmove",{onElement:a,withCallback:function(v,p){if(w(a,"touching")&&!(w(a,"gdesc-open")||r||l)){v.preventDefault(),d=v.targetTouches[0];var y=u.querySelector(".gslide-inner-content").offsetHeight,b=u.querySelector(".gslide-inner-content").offsetWidth,S=v.targetTouches[0].clientX,x=v.targetTouches[0].clientY,k=h-S,E=f-x;if(Math.abs(k)>Math.abs(E)?(s=!1,o=!0):(o=!1,s=!0),s){if(i=d.pageY-c.pageY,Math.abs(i)>=0||s){var $=.75-Math.abs(i)/y;g.style.opacity=$,m&&(m.style.opacity=$),F(g,”translate3d(0, “+i+”px, 0)”)}}else if(t=d.pageX-c.pageX,n=100*t/C,o){if(e.index+1==e.elements.length&&t<-60)return L(u),!1;if(e.index-1<0&&t>60)return L(u),!1;var A=.75-Math.abs(t)/b;g.style.opacity=A,m&&(m.style.opacity=A),F(g,”translate3d(“+n+”%, 0, 0)”)}}}}),this.events.touchEnd=p(“touchend”,{onElement:a,withCallback:function(r,l){i=d.pageY-c.pageY,t=d.pageX-c.pageX,n=100*t/C,b(a,”touching”);var h=u.querySelector(“.gslide-inner-content”).offsetHeight,f=u.querySelector(“.gslide-inner-content”).offsetWidth;if(s){var v=h/2;return s=!1,Math.abs(i)>=v?void e.close():void L(u)}if(o){o=!1;var g=”prev”,m=!0;if(t<0&&(g="next",t=Math.abs(t)),"prev"==g&&e.index-1<0&&(m=!1),"next"==g&&e.index+1>=e.elements.length&&(m=!1),m&&t>=f/2-90)return void(“next”==g?e.nextSlide():e.prevSlide());L(u)}}})}.apply(this),!1;this.settings.keyboardNavigation&&function(){var e=this;if(this.events.hasOwnProperty(“keyboard”))return!1;this.events.keyboard=p(“keydown”,{onElement:window,withCallback:function(t,i){var n=(t=t||window.event).keyCode;39==n&&e.nextSlide(),37==n&&e.prevSlide(),27==n&&e.close()}})}.apply(this)}},{key:”showSlide”,value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];k(this.loader),this.index=t;var n=this.slidesContainer.querySelector(“.current”);n&&b(n,”current”),this.slideAnimateOut();var s=this.slidesContainer.querySelectorAll(“.gslide”)[t];if(k(this.slidesContainer),w(s,”loaded”))this.slideAnimateIn(s,i),E(this.loader);else{k(this.loader);var o=$(this.elements[t],this.settings);o.index=t,A.apply(this,[s,o,function(){E(e.loader),e.slideAnimateIn(s,i)}])}this.preloadSlide(t+1),this.preloadSlide(t-1),b(this.nextButton,”disabled”),b(this.prevButton,”disabled”),0===t?y(this.prevButton,”disabled”):t===this.elements.length-1&&!0!==this.settings.loopAtEnd&&y(this.nextButton,”disabled”),this.activeSlide=s}},{key:”preloadSlide”,value:function(e){var t=this;if(e<0||e>this.elements.length)return!1;if(v.isNil(this.elements[e]))return!1;var i=this.slidesContainer.querySelectorAll(“.gslide”)[e];if(w(i,”loaded”))return!1;var n=$(this.elements[e],this.settings);n.index=e;var s=n.sourcetype;”video”==s||”external”==s?setTimeout(function(){A.apply(t,[i,n])},200):A.apply(this,[i,n])}},{key:”prevSlide”,value:function(){var e=this.index-1;if(e<0)return!1;this.goToSlide(e)}},{key:"nextSlide",value:function(){var e=this.index+1;if(e>this.elements.length)return!1;this.goToSlide(e)}},{key:”goToSlide”,value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e>-1&&(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,e0&&o&&(E(o),e.querySelector(“.ginner-container”).style.maxWidth=s.offsetWidth+”px”,o.style.display=””),b(e,this.effectsClasses),t)C(e,this.settings.openEffect,function(){!n&&i.settings.autoplayVideos&&i.playSlideVideo(e),v.isFunction(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[a,r])});else{var l=this.settings.slideEffect,c=”none”!==l?this.settings.cssEfects[l].in:l;this.prevActiveSlideIndex>this.index&&”slide”==this.settings.slideEffect&&(c=this.settings.cssEfects.slide_back.in),C(e,c,function(){!n&&i.settings.autoplayVideos&&i.playSlideVideo(e),v.isFunction(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[a,r])})}y(e,”current”)}},{key:”slideAnimateOut”,value:function(){if(!this.prevActiveSlide)return!1;var e=this.prevActiveSlide;b(e,this.effectsClasses),y(e,”prev”);var t=this.settings.slideEffect,i=”none”!==t?this.settings.cssEfects[t].out:t;this.stopSlideVideo(e),v.isFunction(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide},{index:this.index,slide:this.activeSlide}]),this.prevActiveSlideIndex>this.index&&”slide”==this.settings.slideEffect&&(i=this.settings.cssEfects.slide_back.out),C(e,i,function(){var t=e.querySelector(“.gslide-media”),i=e.querySelector(“.gslide-description”);t.style.transform=””,b(t,”greset”),t.style.opacity=””,i&&(i.style.opacity=””),b(e,”prev”)})}},{key:”stopSlideVideo”,value:function(e){v.isNumber(e)&&(e=this.slidesContainer.querySelectorAll(“.gslide”)[e]);var t=e?e.querySelector(“.gvideo”):null;if(!t)return!1;var i=t.id;if(u&&u.hasOwnProperty(i)){var n=u[i];w(t,”vimeo-video”)&&n.pause(),w(t,”youtube-video”)&&n.pauseVideo(),w(t,”jw-video”)&&n.pause(!0),w(t,”html5-video”)&&n.pause()}}},{key:”playSlideVideo”,value:function(e){v.isNumber(e)&&(e=this.slidesContainer.querySelectorAll(“.gslide”)[e]);var t=e.querySelector(“.gvideo”);if(!t)return!1;var i=t.id;if(u&&u.hasOwnProperty(i)){var n=u[i];return w(t,”vimeo-video”)&&n.play(),w(t,”youtube-video”)&&n.playVideo(),w(t,”jw-video”)&&n.play(),w(t,”html5-video”)&&n.play(),setTimeout(function(){b(t,”wait-autoplay”)},300),!1}}},{key:”setElements”,value:function(e){this.settings.elements=e}},{key:”getElements”,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.elements=[],!v.isNil(this.settings.elements)&&v.isArray(this.settings.elements))return this.settings.elements;var t=!1;if(null!==e){var i=e.getAttribute(“data-gallery”);i&&””!==i&&(t=document.querySelectorAll(‘[data-gallery=”‘+i+'”]’))}return 0==t&&(t=document.querySelectorAll(“.”+this.settings.selector)),Array.prototype.slice.call(t)}},{key:”getActiveSlide”,value:function(){return this.slidesContainer.querySelectorAll(“.gslide”)[this.index]}},{key:”getActiveSlideIndex”,value:function(){return this.index}},{key:”getAnimationClasses”,value:function(){var e=[];for(var t in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(t)){var i=this.settings.cssEfects[t];e.push(“g”+i.in),e.push(“g”+i.out)}return e.join(” “)}},{key:”build”,value:function(){var e=this;if(this.built)return!1;var t=S(this.settings.lightboxHtml);document.body.appendChild(t);var i=document.getElementById(“glightbox-body”);this.modal=i;var n=i.querySelector(“.gclose”);this.prevButton=i.querySelector(“.gprev”),this.nextButton=i.querySelector(“.gnext”),this.overlay=i.querySelector(“.goverlay”),this.loader=i.querySelector(“.gloader”),this.slidesContainer=document.getElementById(“glightbox-slider”),this.events={},y(this.modal,”glightbox-“+this.settings.skin),this.settings.closeButton&&n&&(this.events.close=p(“click”,{onElement:n,withCallback:function(t,i){t.preventDefault(),e.close()}})),n&&!this.settings.closeButton&&n.parentNode.removeChild(n),this.nextButton&&(this.events.next=p(“click”,{onElement:this.nextButton,withCallback:function(t,i){t.preventDefault(),e.nextSlide()}})),this.prevButton&&(this.events.prev=p(“click”,{onElement:this.prevButton,withCallback:function(t,i){t.preventDefault(),e.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=p(“click”,{onElement:i,withCallback:function(t,i){x(t.target,”.ginner-container”)||w(t.target,”gnext”)||w(t.target,”gprev”)||e.close()}})),g(this.elements,function(){var t=S(e.settings.slideHtml);e.slidesContainer.appendChild(t)}),s&&y(o,”glightbox-touch”),this.built=!0}},{key:”reload”,value:function(){this.init()}},{key:”close”,value:function(){var e=this;if(this.closing)return!1;this.closing=!0,this.stopSlideVideo(this.activeSlide),y(this.modal,”glightbox-closing”),C(this.overlay,”none”==this.settings.openEffect?”none”:this.settings.cssEfects.fade.out),C(this.activeSlide,this.settings.closeEffect,function(){if(e.activeSlide=null,e.prevActiveSlideIndex=null,e.prevActiveSlide=null,e.built=!1,e.events)for(var t in e.events)e.events.hasOwnProperty(t)&&e.events[t].destroy();b(a,”glightbox-open”),b(o,”glightbox-open”),b(a,”touching”),b(a,”gdesc-open”),a.style.width=””,e.modal.parentNode.removeChild(e.modal),v.isFunction(e.settings.onClose)&&e.settings.onClose(),e.closing=null})}},{key:”destroy”,value:function(){this.close(),this.baseEvents.destroy()}}]),e}();e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new I(e);return t.init(),t}});var YT=function(){var e,t,i;return{thumb:function(n,s){return null===n?””:(s=null===s?”big”:s,t=n.match(“[\\?&]v=([^&#]*)”),e=null===t?n:t[1],i=”https://i3.ytimg.com/vi/”+e+”/”,”small”===s&&(i+=”2.jpg”),”sd”===s&&(i+=”sddefault.jpg”),i+=”high”===s?”maxresdefault.jpg”:”0.jpg”)}}}();function JSONCookie(e){return{time:Date.now(),opened:e}}document.querySelectorAll(“.glightbox”).length>0&&$(document).ready(function(){GLightbox({selector:”glightbox”,youtube:{api:”https://www.youtube.com/iframe_api”,params:{enablejsapi:1,showinfo:1,rel:0}}})}),function(e,t){var i=function(e,t){“use strict”;if(t.getElementsByClassName){var i,n,s=t.documentElement,o=e.Date,a=e.HTMLPictureElement,r=”addEventListener”,l=”getAttribute”,c=e[r],d=e.setTimeout,u=e.requestAnimationFrame||d,h=e.requestIdleCallback,f=/^picture$/i,v=[“load”,”error”,”lazyincluded”,”_lazyloaded”],g={},m=Array.prototype.forEach,p=function(e,t){return g[t]||(g[t]=new RegExp(“(\\s|^)”+t+”(\\s|$)”)),g[t].test(e[l](“class”)||””)&&g[t]},y=function(e,t){p(e,t)||e.setAttribute(“class”,(e[l](“class”)||””).trim()+” “+t)},b=function(e,t){var i;(i=p(e,t))&&e.setAttribute(“class”,(e[l](“class”)||””).replace(i,” “))},w=function(e,t,i){var n=i?r:”removeEventListener”;i&&w(e,t),v.forEach(function(i){e[n](i,t)})},C=function(e,n,s,o,a){var r=t.createEvent(“Event”);return s||(s={}),s.instance=i,r.initEvent(n,!o,!a),r.detail=s,e.dispatchEvent(r),r},S=function(t,i){var s;!a&&(s=e.picturefill||n.pf)?(i&&i.src&&!t[l](“srcset”)&&t.setAttribute(“srcset”,i.src),s({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},k=function(e,t,i){for(i=i||e.offsetWidth;i49?function(){h(r,{timeout:a}),a!==n.ricTimeout&&(a=n.ricTimeout)}:$(function(){d(r)},!0);return function(e){var n;(e=!0===e)&&(a=33),t||(t=!0,(n=s-(o.now()-i))<0&&(n=0),e||n<9?l():d(l,n))}},_=function(e){var t,i,n=function(){t=null,e()},s=function(){var e=o.now()-i;e<99?d(s,99-e):(h||n)(n)};return function(){i=o.now(),t||(t=d(s,99))}};!function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in n=e.lazySizesConfig||e.lazysizesConfig||{},i)t in n||(n[t]=i[t]);e.lazySizesConfig=n,d(function(){n.init&&T()})}();var z=function(){var a,u,h,v,g,k,z,T,N,F,L,I,j=/^img$/i,q=/^iframe$/i,M="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),H=0,P=0,B=-1,W=function(e){P--,(!e||P<0||!e.target)&&(P=0)},D=function(e){return null==I&&(I="hidden"==x(t.body,"visibility")),I||"hidden"!=x(e.parentNode,"visibility")&&"hidden"!=x(e,"visibility")},Y=function(e,i){var n,o=e,a=D(e);for(T-=i,L+=i,N-=i,F+=i;a&&(o=o.offsetParent)&&o!=t.body&&o!=s;)(a=(x(o,"opacity")||1)>0)&&”visible”!=x(o,”overflow”)&&(n=o.getBoundingClientRect(),a=F>n.left&&Nn.top-1&&T500&&s.clientWidth>500?500:370:n.expand,i._defEx=p,y=p*n.expFactor,b=n.hFac,I=null,H2&&v>2&&!t.hidden?(H=y,B=0):H=v>1&&B>1&&P<6?p:0;o=f&&(T=r.top)<=z&&(F=r.right)>=f*b&&(N=r.left)<=k&&(L||F||N||T)&&(n.loadHidden||D(w[o]))&&(u&&P<3&&!g&&(v<3||B<4)||Y(w[o],h))){if(Q(w[o]),d=!0,P>9)break}else!d&&u&&!c&&P<4&&B<4&&v>2&&(a[0]||n.preloadAfterLoad)&&(a[0]||!g&&(L||F||N||T||”auto”!=w[o][l](n.sizesAttr)))&&(c=a[0]||w[o]);else Q(w[o]);c&&!d&&Q(c)}},V=A(R),X=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(W(e),y(t,n.loadedClass),b(t,n.loadingClass),w(t,J),C(t,”lazyloaded”))},G=$(X),J=function(e){G({target:e.target})},K=function(e){var t,i=e[l](n.srcsetAttr);(t=n.customMedia[e[l](“data-media”)||e[l](“media”)])&&e.setAttribute(“media”,t),i&&e.setAttribute(“srcset”,i)},Z=$(function(e,t,i,s,o){var a,r,c,u,v,g;(v=C(e,”lazybeforeunveil”,t)).defaultPrevented||(s&&(i?y(e,n.autosizesClass):e.setAttribute(“sizes”,s)),r=e[l](n.srcsetAttr),a=e[l](n.srcAttr),o&&(u=(c=e.parentNode)&&f.test(c.nodeName||””)),g=t.firesLoad||”src”in e&&(r||a||u),v={target:e},y(e,n.loadingClass),g&&(clearTimeout(h),h=d(W,2500),w(e,J,!0)),u&&m.call(c.getElementsByTagName(“source”),K),r?e.setAttribute(“srcset”,r):a&&!u&&(q.test(e.nodeName)?function(e,t){try{e.contentWindow.location.replace(t)}catch(i){e.src=t}}(e,a):e.src=a),o&&(r||u)&&S(e,{src:a})),e._lazyRace&&delete e._lazyRace,b(e,n.lazyClass),E(function(){(!g||e.complete&&e.naturalWidth>1)&&(X(v),e._lazyCache=!0,d(function(){“_lazyCache”in e&&delete e._lazyCache},9))},!0)}),Q=function(e){var t,i=j.test(e.nodeName),s=i&&(e[l](n.sizesAttr)||e[l](“sizes”)),o=”auto”==s;(!o&&u||!i||!e[l](“src”)&&!e.srcset||e.complete||p(e,n.errorClass)||!p(e,n.lazyClass))&&(t=C(e,”lazyunveilread”).detail,o&&O.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,P++,Z(e,t,o,s,i))},U=function(){if(!u){if(o.now()-g<999)return void d(U,999);var e=_(function(){n.loadMode=3,V()});u=!0,n.loadMode=3,V(),c("scroll",function(){3==n.loadMode&&(n.loadMode=2),e()},!0)}};return{_:function(){g=o.now(),i.elements=t.getElementsByClassName(n.lazyClass),a=t.getElementsByClassName(n.lazyClass+" "+n.preloadClass),c("scroll",V,!0),c("resize",V,!0),e.MutationObserver?new MutationObserver(V).observe(s,{childList:!0,subtree:!0,attributes:!0}):(s[r]("DOMNodeInserted",V,!0),s[r]("DOMAttrModified",V,!0),setInterval(V,999)),c("hashchange",V,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){t[r](e,V,!0)}),/d$|^c/.test(t.readyState)?U():(c("load",U),t[r]("DOMContentLoaded",V),d(U,2e4)),i.elements.length?(R(),E._lsFlush()):V()},checkElems:V,unveil:Q}}(),O=function(){var e,i=$(function(e,t,i,n){var s,o,a;if(e._lazysizesWidth=n,n+="px",e.setAttribute("sizes",n),f.test(t.nodeName||""))for(o=0,a=(s=t.getElementsByTagName("source")).length;o0){const e=GLightbox({selector:”popup”});setTimeout(()=>{siteCookie.hasOwnProperty(“opened”)&&!siteCookie.opened&&(siteCookie.opened=!0,Cookies.set(“timer”,JSONCookie(!0)),e.open(“.popup”))},5e3)}

    Menu