function dropdown(){const o=window.matchMedia("(max-width: 767px)"),i=document.querySelector(".gh-head-menu"),r=i?.querySelector(".nav");if(r){const e=document.querySelector(".gh-head-logo"),t=r.innerHTML;o.matches&&r.querySelectorAll("li").forEach(function(e,t){e.style.transitionDelay=.03*(t+1)+"s"});const n=function(){if(!o.matches){for(var e=[];r.offsetWidth+64>i.offsetWidth&&r.lastElementChild;)e.unshift(r.lastElementChild),r.lastElementChild.remove();if(e.length){const t=document.createElement("button"),n=(t.setAttribute("class","nav-more-toggle gh-icon-btn"),t.setAttribute("aria-label","More"),t.innerHTML='',document.createElement("div"));n.setAttribute("class","gh-dropdown"),10<=e.length?(document.body.classList.add("is-dropdown-mega"),n.style.gridTemplateRows=`repeat(${Math.ceil(e.length/2)}, 1fr)`):document.body.classList.remove("is-dropdown-mega"),e.forEach(function(e){n.appendChild(e)}),t.appendChild(n),r.appendChild(t),document.body.classList.add("is-dropdown-loaded"),window.addEventListener("click",function(e){document.body.classList.contains("is-dropdown-open")?document.body.classList.remove("is-dropdown-open"):t.contains(e.target)&&document.body.classList.add("is-dropdown-open")})}else document.body.classList.add("is-dropdown-loaded")}};imagesLoaded(e,function(){n()}),window.addEventListener("load",function(){e||n()}),window.addEventListener("resize",function(){setTimeout(()=>{r.innerHTML=t,n()},1)})}}function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){var t=e;t.preventDefault();for(var n,o=[],i=0,r=t.target.closest(".kg-card").previousElementSibling;r&&(r.classList.contains("kg-image-card")||r.classList.contains("kg-gallery-card"));){var a=[];r.querySelectorAll("img").forEach(function(e){a.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),r=r.previousElementSibling,o=a.concat(o)}t.target.classList.contains("kg-image")?o.push({src:t.target.getAttribute("src"),msrc:t.target.getAttribute("src"),w:t.target.getAttribute("width"),h:t.target.getAttribute("height"),el:t.target}):(n=!1,t.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),n||e===t.target?n=!0:i+=1}));for(var s=t.target.closest(".kg-card").nextElementSibling;s&&(s.classList.contains("kg-image-card")||s.classList.contains("kg-gallery-card"));)s.querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e})}),s=s.nextElementSibling;e=document.querySelectorAll(".pswp")[0];new PhotoSwipe(e,PhotoSwipeUI_Default,o,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:i,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var e=o[e].el,t=window.pageYOffset||document.documentElement.scrollTop,e=e.getBoundingClientRect();return{x:e.left,y:e.top+t,w:e.width}}}).init()})})}function pagination(e,s,l=!1){const c=document.querySelector(".gh-feed");if(!c)return;let t=!1;async function n(){var t=document.querySelector("link[rel=next]");if(t)try{var e=await(await fetch(t.href)).text(),n=(new DOMParser).parseFromString(e,"text/html"),o=n.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) > *");const r=document.createDocumentFragment(),a=[];o.forEach(function(e){e=document.importNode(e,!0);l&&(e.style.visibility="hidden"),r.appendChild(e),a.push(e)}),c.appendChild(r),s&&s(a,d);var i=n.querySelector("link[rel=next]");i&&i.href?t.href=i.href:(t.remove(),u&&u.remove())}catch(e){throw t.remove(),u&&u.remove(),e}}const o=c.nextElementSibling||c.parentElement.nextElementSibling||document.querySelector(".gh-foot"),u=document.querySelector(".gh-loadmore"),d=(!document.querySelector("link[rel=next]")&&u&&u.remove(),async function(){o.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]")&&await n()});const i=new IntersectionObserver(async function(e){if(!t){if(t=!0,e[0].isIntersecting)if(l)await n();else for(;o.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]");)await n();t=!1,document.querySelector("link[rel=next]")||i.disconnect()}});e?i.observe(o):u.addEventListener("click",n)}!function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){var n;return e&&t&&((n=(n=this._events=this._events||{})[e]=n[e]||[]).includes(t)||n.push(t)),this},t.once=function(e,t){var n;return e&&t&&(this.on(e,t),((n=this._onceEvents=this._onceEvents||{})[e]=n[e]||{})[t]=!0),this},t.off=function(e,t){e=this._events&&this._events[e];return e&&e.length&&-1!=(t=e.indexOf(t))&&e.splice(t,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];var o,i=this._onceEvents&&this._onceEvents[e];for(o of n)i&&i[o]&&(this.off(e,o),delete i[o]),o.apply(this,t)}return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e}),function(e,t){"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){let r=t.jQuery,a=t.console;function s(e,t,n){if(!(this instanceof s))return new s(e,t,n);let o=e;var i;(o="string"==typeof e?document.querySelectorAll(e):o)?(this.elements=(i=o,Array.isArray(i)?i:"object"==typeof i&&"number"==typeof i.length?[...i]:[i]),this.options={},"function"==typeof t?n=t:Object.assign(this.options,t),n&&this.on("always",n),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))):a.error("Bad element for imagesLoaded "+(o||e))}(s.prototype=Object.create(e.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const i=[1,9,11],l=(s.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t,n,o=e["nodeType"];if(o&&i.includes(o)){for(t of e.querySelectorAll("img"))this.addImage(t);if("string"==typeof this.options.background)for(n of e.querySelectorAll(this.options.background))this.addElementBackgroundImages(n)}},/url\((['"])?(.*?)\1\)/gi);function n(e){this.img=e}function o(e,t){this.url=e,this.element=t,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var n=getComputedStyle(t);if(n){let e=l.exec(n.backgroundImage);for(;null!==e;){var o=e&&e[2];o&&this.addBackground(o,t),e=l.exec(n.backgroundImage)}}},s.prototype.addImage=function(e){e=new n(e);this.images.push(e)},s.prototype.addBackground=function(e,t){e=new o(e,t);this.images.push(e)},s.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let t=(e,t,n)=>{setTimeout(()=>{this.progress(e,t,n)})};this.images.forEach(function(e){e.once("progress",t),e.check()})}else this.complete()},s.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+n,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(n.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(e,t){this.isLoaded=e;e=this.img.parentNode,e="PICTURE"===e.nodeName?e:this.img;this.emitEvent("progress",[this,e,t])},n.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(n.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((r=e).fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(r(this))})})(),s}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,s){function e(e){if(S)return!0;e=e||window.event,I.timeToIdle&&I.mouseUsed&&!w&&l();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i"+e.label+"",I.parseShareButtonOut&&(i=I.parseShareButtonOut(e,i));v.children[0].innerHTML=i,v.children[0].onclick=B}}function r(e){for(var t=0;tI.fitControlsWidth?(t=I.barsSize,I.captionEl&&"auto"===t.bottom?(h||((h=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),p.insertBefore(h,f),s.addClass(p,"pswp__ui--fit")),I.addCaptionHTMLFn(e,h,!0)?(e=h.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0}function P(){function e(e){if(e)for(var t=e.length,n=0;nt.min[e]?n[e]=t.min[e]:n[e]=mt&&(_e=0f.currItem.fitRatio&&Wt(Ee))}}var V,X,Q,g,$,J,ee,te,o,v,ne,oe,ie,re,ae,a,se,le,ce,ue,de,me,pe,i,fe,he,ge,ve,ye,we,s,xe,be,Ce,Ee,Te,Ie,Se,l,Me,Ae,Le,ke,De,c,u,Oe,d,Re,y,_e,Fe,Pe,Ne,Be,ze,He=e(),qe=e(),w=e(),x={},Ze=0,We={},b=e(),C=0,Ue=!0,je=[],Ke={},Ye=!1,Ge={},E=function(e){var t=Ge[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;of.currItem.fitRatio?Ye||(cn(f.currItem,!1,!0),Ye=!0):Ye&&(cn(f.currItem),Ye=!1)),Ve(Re,w.x,w.y,v))},Xe=function(e){e.container&&Ve(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Qe=function(e,t){t[me]=oe+e+"px, 0px"+ie},$e=function(e,t){var n;!h.loop&&t&&(t=g+(b.x*Ze-e)/b.x,n=Math.round(e-O.x),t<0&&0=R()-1&&n<0)&&(e=O.x+n*h.mainScrollEndFriction),O.x=e,Qe(e,$)},Je=function(e,t){var n=Ct[e]-We[e];return qe[e]+He[e]+n-t/ne*n},M=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},et=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},tt=null,nt=function(){tt&&(p.unbind(document,"mousemove",nt),p.addClass(m,"pswp--has_mouse"),h.mouseUsed=!0,E("mouseUsed")),tt=setTimeout(function(){tt=null},100)},ot=function(e,t){e=sn(f.currItem,x,e);return t&&(d=e),e},it=function(e){return(e=e||f.currItem).initialZoomLevel},rt=function(e){return 0<(e=e||f.currItem).w?h.maxSpreadZoom:1},A={},at=0,st=function(e){A[e]&&(A[e].raf&&he(A[e].raf),at--,delete A[e])},lt=function(e){A[e]&&st(e),A[e]||(at++,A[e]={})},ct=function(){for(var e in A)A.hasOwnProperty(e)&&st(e)},ut=function(e,t,n,o,i,r,a){function s(){A[e]&&(l=T()-c,o<=l?(st(e),r(n),a&&a()):(r((n-t)*i(l/o)+t),A[e].raf=fe(s)))}var l,c=T();lt(e);s()},B={shout:E,listen:r,viewportSize:x,options:h,isMainScrollAnimating:function(){return y},getZoomLevel:function(){return v},getCurrentIndex:function(){return g},isDragging:function(){return l},isZooming:function(){return u},setScrollOffset:function(e,t){We.x=e,we=We.y=t,E("updateScrollOffset",We)},applyZoomPan:function(e,t,n,o){w.x=t,w.y=n,v=e,S(o)},init:function(){if(!V&&!X){f.framework=p,f.template=m,f.bg=p.getChildByClass(m,"pswp__bg"),ge=m.className,V=!0,s=p.detectFeatures(),fe=s.raf,he=s.caf,me=s.transform,ye=s.oldIE,f.scrollWrap=p.getChildByClass(m,"pswp__scroll-wrap"),f.container=p.getChildByClass(f.scrollWrap,"pswp__container"),$=f.container.style,f.itemHolders=a=[{el:f.container.children[0],wrap:0,index:-1},{el:f.container.children[1],wrap:0,index:-1},{el:f.container.children[2],wrap:0,index:-1}],a[0].el.style.display=a[2].el.style.display="none",me?(t=s.perspective&&!i,oe="translate"+(t?"3d(":"("),ie=s.perspective?", 0px)":")"):(me="left",p.addClass(m,"pswp--ie"),Qe=function(e,t){t.left=e+"px"},Xe=function(e){var t=1=R())&&(g=0),f.currItem=en(g),(s.isOldIOSPhone||s.isOldAndroid)&&(Ue=!1),m.setAttribute("aria-hidden","false"),h.modal&&(Ue?m.style.position="fixed":(m.style.position="absolute",m.style.top=p.getScrollY()+"px")),void 0===we&&(E("initialLayout"),we=ve=p.getScrollY());var n="pswp--open ";for(h.mainClass&&(n+=h.mainClass+" "),h.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=i?"pswp--touch":"pswp--notouch")+(s.animationName?" pswp--css_animation":""))+(s.svg?" pswp--svg":""),p.addClass(m,n),f.updateSize(),J=-1,C=null,e=0;e<3;e++)Qe((e+J)*b.x,a[e].el.style);ye||p.bind(f.scrollWrap,te,f),r("initialZoomInEnd",function(){f.setContent(a[0],g-1),f.setContent(a[2],g+1),a[0].el.style.display=a[2].el.style.display="block",h.focus&&m.focus(),p.bind(document,"keydown",f),s.transform&&p.bind(f.scrollWrap,"click",f),h.mouseUsed||p.bind(document,"mousemove",nt),p.bind(window,"resize scroll orientationchange",f),E("bindEvents")}),f.setContent(a[1],g),f.updateCurrItem(),E("afterInit"),Ue||(re=setInterval(function(){at||l||u||v!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),p.addClass(m,"pswp--visible")}var t},close:function(){V&&(X=!(V=!1),E("close"),p.unbind(window,"resize scroll orientationchange",f),p.unbind(window,"scroll",o.scroll),p.unbind(document,"keydown",f),p.unbind(document,"mousemove",nt),s.transform&&p.unbind(f.scrollWrap,"click",f),l&&p.unbind(window,ee,f),clearTimeout(xe),E("unbindEvents"),tn(f.currItem,null,!0,f.destroy))},destroy:function(){E("destroy"),Xt&&clearTimeout(Xt),m.setAttribute("aria-hidden","true"),m.className=ge,re&&clearInterval(re),p.unbind(f.scrollWrap,te,f),p.unbind(window,"scroll",f),St(),ct(),Ge=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:ed.min.y?t=d.min.y:td.min[e]||rd.min[e]&&(c=h.panEndFriction,d.min[e],n=d.min[e]-qe[e]),(n<=0||l<0)&&1gt.x&&(i=gt.x)):d.min.x!==d.max.x&&(o=r)):(rf.currItem.fitRatio&&(w[e]+=t[e]*c)):(void 0!==i&&($e(i,!0),De=i!==gt.x),d.min.x!==d.max.x&&(void 0!==o?w.x=o:De||(w.x+=t.x*c)),void 0!==i)},qt=function(){var e,t,n,o,i,r;c&&0!==(e=c.length)&&(M(L,c[0]),k.x=L.x-D.x,k.y=L.y-D.y,u&&1f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(Be=!0),n=1,o=it(),i=rt(),t=mt&&(k.x-=c[0].x-ft.x),Math.abs(k.y)>=mt)&&(k.y-=c[0].y-ft.y),D.x=L.x,D.y=L.y,0===k.x&&0===k.y||("v"===_e&&h.closeOnVerticalDrag&&!At()?(He.y+=k.y,w.y+=k.y,r=Ft(),Ie=!0,E("onVerticalDrag",r),I(r),S()):(_t(T(),L.x,L.y),Le=!0,d=f.currItem.bounds,Ht("x",k)||(Ht("y",k),et(w),S())))))},Zt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=(1d.min[t]?o.backAnimDestination[t]=d.min[t]:w[t]=R()&&(g=h.loop?0:R()-1,i=!0),i&&!h.loop||(C+=o,Ze-=o,n=!0));var e=b.x*Ze,r=Math.abs(e-O.x),a=n||e>O.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Qt.length}},rn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},an=function(e,t,n){var o=e.bounds;o.center.x=Math.round((_.x-t)/2),o.center.y=Math.round((_.y-n)/2)+e.vGap.top,o.max.x=t>_.x?Math.round(_.x-t):o.center.x,o.max.y=n>_.y?Math.round(_.y-n)+e.vGap.top:o.center.y,o.min.x=t>_.x?0:o.center.x,o.min.y=n>_.y?e.vGap.top:o.center.y},sn=function(e,t,n){var o,i;return e.src&&!e.loadError?((o=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),E("parseVerticalMargin",e)),_.x=t.x,_.y=t.y-e.vGap.top-e.vGap.bottom,o&&(t=_.x/e.w,i=_.y/e.h,e.fitRatio=t=d.max.x&&n<=d.min.y&&n>=d.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:x.x/2+We.x,y:x.y/2+We.y};var t=h.getDoubleTapZoom(!0,f.currItem),n=v===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),p[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}});function pn(){hn&&clearTimeout(hn),vn&&clearTimeout(vn)}function fn(){var e=Sn(),t={};if(!(e.length<5)){var n,o=e.split("&");for(r=0;r .kg-image[width][height], .kg-gallery-image > img"),reframe(document.querySelectorAll(['.gh-content iframe[src*="youtube.com"]','.gh-content iframe[src*="youtube-nocookie.com"]','.gh-content iframe[src*="player.vimeo.com"]','.gh-content iframe[src*="kickstarter.com"][src*="video.html"]',".gh-content object",".gh-content embed"].join(","))),dropdown();var timeout,tns=function(){var e=window,Yo=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},e=window,Go=e.cancelAnimationFrame||e.mozCancelAnimationFrame||function(e){clearTimeout(e)};function Vo(e){for(var t,n,o,i=e||{},r=1,a=arguments.length;r";return e.innerHTML=i,o.appendChild(e),t.appendChild(o),e=Math.abs(o.getBoundingClientRect().left-e.children[67].getBoundingClientRect().left)<2,t.fake?ei(t,n):o.remove(),e}(),n),ce=t.tMQ?Xo(t.tMQ):Qo(t,"tMQ",!(!window.matchMedia&&!window.msMatchMedia)||(r=document,u=Jo(c=$o()),m=r.createElement("div"),p="@media all and (min-width:1px){.tns-mq-test{position:absolute}}",(f=r.createElement("style")).type="text/css",m.className="tns-mq-test",c.appendChild(f),c.appendChild(m),f.styleSheet?f.styleSheet.cssText=p:f.appendChild(r.createTextNode(p)),f=(window.getComputedStyle?window.getComputedStyle(m):m.currentStyle).position,c.fake?ei(c,u):m.remove(),"absolute"===f),n),g=t.tTf?Xo(t.tTf):Qo(t,"tTf",hi("transform"),n),v=t.t3D?Xo(t.t3D):Qo(t,"t3D",!!(p=g)&&!!window.getComputedStyle&&(c=document,m=Jo(u=$o()),c=c.createElement("p"),f=9=-gt)return e}:function(){return Q&&P&&!J?j-1:J||P?Math.max(0,oe-Math.ceil($)):oe-1},ie=Tn(se("startIndex")),Ct=ie,Et=(En(),0),Tt=K?null:bt(),It=R.preventActionWhenRunning,St=R.swipeAngle,Mt=!St||"?",At=!1,Lt=R.onInit,re=new wi,kt=" tns-slider tns-"+R.mode,ae=W.id||(ge=window.tnsId,window.tnsId=ge?ge+1:1,"tns"+window.tnsId),Dt=se("disable"),Ot=!1,Rt=R.freezable,_t=!(!Rt||K)&&jn(),Ft=!1,Pt={click:Ao,keydown:function(e){e=Po(e);var t=[i.LEFT,i.RIGHT].indexOf(e.keyCode);0<=t&&(0===t?B.disabled||Ao(e,-1):z.disabled||Ao(e,1))}},Nt={click:function(e){if(At){if(It)return;So()}var t=No(e=Po(e));for(;t!==H&&!si(t,"data-nav");)t=t.parentNode;{var n,o;si(t,"data-nav")&&(n=Se=Number(li(t,"data-nav")),o=Y||K?n*j/Te:n*$,Mo(jt?n:Math.min(Math.ceil(o),j-1),e),Me===n)&&(Pe&&Ro(),Se=-1)}},keydown:function(e){e=Po(e);var t,n=_.activeElement;si(n,"data-nav")&&(t=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(e.keyCode),n=Number(li(n,"data-nav")),0<=t)&&(0===t?0"," animation"]),(n||Yt)&&(He={},We=!(qe={}),je=Z?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y}),K||Cn(Dt||_t),g&&(yt=g,wt="translate",xt=v?(wt+=Z?"3d(":"3d(0px, ",Z?", 0px, 0px)":", 0px)"):(wt+=Z?"X(":"Y(",")")),P&&(W.className=W.className.replace("tns-vpfix","")),kn("gutter"),s.className="tns-outer",Ke.className="tns-inner",s.id=ae+"-ow",Ke.id=ae+"-iw",""===W.id&&(W.id=ae),kt=kt+(l||K?" tns-subpixel":" tns-no-subpixel")+(h?" tns-calc":" tns-no-calc"),K&&(kt+=" tns-autowidth"),kt+=" tns-"+R.axis,W.className+=kt,(P?((k=_.createElement("div")).id=ae+"-mw",k.className="tns-ovh",s.appendChild(k),k):s).appendChild(Ke),nt&&((k||Ke).className+=" tns-ah"),Ye.insertBefore(s,W),Ke.appendChild(W),oi(U,function(e,t){ri(e,"tns-item"),e.id||(e.id=ae+"-item"+t),!P&&me&&ri(e,me),ci(e,{"aria-hidden":"true",tabindex:"-1"})}),ne){for(var Jt=_.createDocumentFragment(),en=_.createDocumentFragment(),tn=ne;tn--;){var nn=tn%j,on=U[nn].cloneNode(!0);ri(on,Vt),ui(on,"id"),en.insertBefore(on,en.firstChild),P&&(on=U[j-1-nn].cloneNode(!0),ri(on,Vt),ui(on,"id"),Jt.appendChild(on))}W.insertBefore(Jt,W.firstChild),W.appendChild(en),U=W.children}if(!P)for(var rn=ie,an=ie+Math.min(j,$);rn .tns-item","font-size:"+o.getComputedStyle(U[0]).fontSize+";",ni(te)),ti(te,"#"+ae,"font-size:0;",ni(te))):P&&oi(U,function(e,t){e.style.marginLeft=(e=t,h?h+"("+100*e+"% / "+oe+")":100*e/oe+"%")})),ce?(d&&(e=k&&R.autoHeight?Pn(R.speed):"",ti(te,"#"+ae+"-mw",e,ni(te))),e=Dn(R.edgePadding,R.gutter,R.fixedWidth,R.speed,R.autoHeight),ti(te,"#"+ae+"-iw",e,ni(te)),P&&(e=Z&&!K?"width:"+On(R.fixedWidth,R.gutter,R.items)+";":"",d&&(e+=Pn(et)),ti(te,"#"+ae,e,ni(te))),e=Z&&!K?Rn(R.fixedWidth,R.gutter,R.items):"",R.gutter&&(e+=_n(R.gutter)),P||(d&&(e+=Pn(et)),w&&(e+=Nn(et)))):(P&&nt&&(k.style[d]=et/1e3+"s"),Ke.style.cssText=Dn(G,V,Y,nt),P&&Z&&!K&&(W.style.width=On(Y,V,$)),e=Z&&!K?Rn(Y,V,$):"",V&&(e+=_n(V))),e&&ti(te,"#"+ae+" > .tns-item",e,ni(te)),F&&ce)for(var ln in F){ln=parseInt(ln);var cn=F[ln],e="",un="",dn="",mn="",pn="",fn=K?null:se("items",ln),hn=se("fixedWidth",ln),gn=se("speed",ln),vn=se("edgePadding",ln),yn=se("autoHeight",ln),wn=se("gutter",ln);d&&k&&se("autoHeight",ln)&&"speed"in cn&&(un="#"+ae+"-mw{"+Pn(gn)+"}"),("edgePadding"in cn||"gutter"in cn)&&(dn="#"+ae+"-iw{"+Dn(vn,wn,hn,gn,yn)+"}"),P&&Z&&!K&&("fixedWidth"in cn||"items"in cn||Y&&"gutter"in cn)&&(mn="width:"+On(hn,wn,fn)+";"),d&&"speed"in cn&&(mn+=Pn(gn)),mn=mn&&"#"+ae+"{"+mn+"}",("fixedWidth"in cn||Y&&"gutter"in cn||!P&&"items"in cn)&&(pn+=Rn(hn,wn,fn)),"gutter"in cn&&(pn+=_n(wn)),!P&&"speed"in cn&&(d&&(pn+=Pn(gn)),w)&&(pn+=Nn(gn)),(e=un+dn+mn+(pn=pn&&"#"+ae+" > .tns-item{"+pn+"}"))&&te.insertRule("@media (min-width: "+ln/16+"em) {"+e+"}",te.cssRules.length)}Bn();var xn=J?P?function(){var e=Et,t=Tt;e+=Qe,t-=Qe,G?(e+=1,--t):Y&&(X+V)%(Y+V)&&--t,ne&&(t=parseInt(o)&&e in F[o]&&(n=F[o][e]);return"slideBy"===e&&"page"===n&&(n=se("items")),n=P||"slideBy"!==e&&"items"!==e?n:Math.floor(n)}function Dn(e,t,n,o,i){var r,a="";return void 0!==e?(r=e,t&&(r-=t),a=Z?"margin: 0 "+r+"px 0 "+e+"px;":"margin: "+e+"px 0 "+r+"px 0;"):t&&!n&&(e="-"+t+"px",a="margin: 0 "+(Z?e+" 0 0":"0 "+e+" 0")+";"),!P&&i&&d&&o&&(a+=Pn(o)),a}function On(e,t,n){return e?(e+t)*oe+"px":h?h+"("+100*oe+"% / "+n+")":100*oe/n+"%"}function Rn(e,t,n){return t="width:"+(t=e?e+t+"px":(P||(n=Math.floor(n)),e=P?oe:n,h?h+"(100% / "+e+")":100/e+"%")),"inner"!==pe?t+";":t+" !important;"}function _n(e){return!1!==e?(Z?"padding-":"margin-")+(Z?"right":"bottom")+": "+e+"px;":""}function Fn(e,t){e=e.substring(0,e.length-t).toLowerCase();return e=e&&"-"+e+"-"}function Pn(e){return Fn(d,18)+"transition-duration:"+e/1e3+"s;"}function Nn(e){return Fn(w,17)+"animation-duration:"+e/1e3+"s;"}function Bn(){var e;kn("autoHeight")||K||!Z?(oi(e=W.querySelectorAll("img"),function(e){var t=e.src;mt||(t&&t.indexOf("data:image")<0?(e.src="",vi(e,Qt),ri(e,"loading"),e.src=t):to(e))}),Yo(function(){ro(di(e),function(){D=!0})}),kn("autoHeight")&&(e=oo(ie,Math.min(ie+$-1,oe-1))),mt?zn():Yo(function(){ro(di(e),zn)})):(P&&bo(),qn(),Zn())}function zn(){var o;(K&&1slide '+$n()+" of "+j+""),O=s.querySelector(".tns-liveregion .current"),Kt&&(e=ee?"stop":"start",q?ci(q,{"data-action":e}):R.autoplayButtonOutput&&(s.insertAdjacentHTML(An(R.autoplayPosition),'"),q=s.querySelector("[data-action]")),q&&vi(q,{click:_o}),ee)&&(Oo(),ut&&vi(W,Bt),dt)&&vi(W,zt),Ut){var e,t;if(H)ci(H,{"aria-label":"Carousel Pagination"}),oi(Ee=H.children,function(e,t){ci(e,{"data-nav":t,tabindex:"-1","aria-label":ke+(t+1),"aria-controls":ae})});else{for(var n="",o=jt?"":'style="display:none"',i=0;i';s.insertAdjacentHTML(An(R.navPosition),n='
'+n+"
"),H=s.querySelector(".tns-nav"),Ee=H.children}Ko(),d&&(e=d.substring(0,d.length-18).toLowerCase(),t="transition: all "+et/1e3+"s",ti(te,"[aria-controls^="+ae+"-item]",t=e?"-"+e+"-"+t:t,ni(te))),ci(Ee[Me],{"aria-label":ke+(Me+1)+De}),ui(Ee[Me],"tabindex"),ri(Ee[Me],Le),vi(H,Nt)}Wt&&(N||B&&z||(s.insertAdjacentHTML(An(R.controlsPosition),'
"),N=s.querySelector(".tns-controls")),B&&z||(B=N.children[0],z=N.children[1]),R.controlsContainer&&ci(N,{"aria-label":"Carousel Navigation",tabindex:"0"}),(R.controlsContainer||R.prevButton&&R.nextButton)&&ci([B,z],{"aria-controls":ae,tabindex:"-1"}),(R.controlsContainer||R.prevButton&&R.nextButton)&&(ci(B,{"data-controls":"prev"}),ci(z,{"data-controls":"next"})),xe=po(B),be=po(z),go(),N?vi(N,Pt):(vi(B,Pt),vi(z,Pt))),Yn()}function Zn(){var e;P&&b&&((e={})[b]=So,vi(W,e)),at&&vi(W,qt,R.preventScrollOnTouch),st&&vi(W,Zt),Je&&vi(_,Ht),"inner"===pe?re.on("outerResized",function(){Un(),re.emit("innerLoaded",le())}):(F||Y||K||nt||!Z)&&vi(o,{resize:Wn}),nt&&("outer"===pe?re.on("innerLoaded",io):Dt||io()),eo(),Dt?Xn():_t&&Vn(),re.on("indexChanged",ao),"inner"===pe&&re.emit("innerLoaded",le()),"function"==typeof Lt&&Lt(le()),Xe=!0}function Wn(e){Yo(function(){Un(Po(e))})}function Un(e){if(Xe){"outer"===pe&&re.emit("outerResized",le(e)),Ve=Mn();var t,n=fe,o=!1;F&&(Kn(),t=n!==fe)&&re.emit("newBreakpointStart",le(e));var i,r,a,s,l,c,u,d,n=$,m=Dt,p=_t,f=Je,h=ot,g=rt,v=at,y=st,w=ee,x=ut,b=dt,C=ie;if(t&&(r=Y,a=nt,s=it,l=Q,c=ct,ce||(u=V,d=G)),Je=se("arrowKeys"),ot=se("controls"),rt=se("nav"),at=se("touch"),Q=se("center"),st=se("mouseDrag"),ee=se("autoplay"),ut=se("autoplayHoverPause"),dt=se("autoplayResetOnVisibility"),t&&(Dt=se("disable"),Y=se("fixedWidth"),et=se("speed"),nt=se("autoHeight"),it=se("controlsText"),ct=se("autoplayText"),lt=se("autoplayTimeout"),ce||(G=se("edgePadding"),V=se("gutter"))),Cn(Dt),X=Ln(),Z&&!K||Dt||(co(),Z)||(Uo(),o=!0),(Y||K)&&(gt=wo(),Tt=bt()),(t||Y)&&($=se("items"),Qe=se("slideBy"),i=$!==n)&&(Y||K||(Tt=bt()),xn()),t&&Dt!==m)if(Dt)Xn();else if(Ot){if(te.disabled=!1,W.className+=kt,bo(),J)for(var E=ne;E--;)P&&pi(U[E]),pi(U[oe-E-1]);if(!P)for(var T=ie,I=ie+j;T .tns-item",h,ni(te))),nt&&io(),o&&(bo(),Ct=ie)),t&&re.emit("newBreakpointEnd",le(e))}}function jn(){var e,t;return Y||K?(e=Y?(Y+V)*j:a[j],t=G?X+2*G:X+V,Q&&(t-=Y?(X-Y)/2:(X-(a[ie+1]-a[ie]-V))/2),e<=t):j<=(Q?$-($-1)/2:$)}function Kn(){for(var e in fe=0,F)(e=parseInt(e))<=Ve&&(fe=e)}function Yn(){!ee&&q&&mi(q),!rt&&H&&mi(H),ot||(N?mi(N):(B&&mi(B),z&&mi(z)))}function Gn(){ee&&q&&pi(q),rt&&H&&pi(H),ot&&(N?pi(N):(B&&pi(B),z&&pi(z)))}function Vn(){if(!Ft){if(G&&(Ke.style.margin="0px"),ne)for(var e="tns-transparent",t=ne;t--;)P&&ri(U[t],e),ri(U[oe-t-1],e);Yn(),Ft=!0}}function Xn(){if(!Ot){if(te.disabled=!0,W.className=W.className.replace(kt.substring(1),""),ui(W,["style"]),J)for(var e=ne;e--;)P&&mi(U[e]),mi(U[oe-e-1]);if(Z&&P||ui(Ke,["style"]),!P)for(var t=ie,n=ie+j;t=a[oe-1])ie=Tt;else for(var n=0;n=a[n];)t>a[ie=n]&&i<0&&(ie+=1),n++}To(o,i),re.emit(Bo(o)?"touchEnd":"dragEnd",le(o))}):Mt&&Ao(o,0',''],gutter:30,loop:!1,nav:!1,responsive:{0:{items:1},768:{items:2},992:{items:3}}})}cover(),featured(),pagination(!1),window.addEventListener("scroll",function(){"use strict";body.classList.contains("home-template")&&body.classList.contains("with-full-cover")&&!document.querySelector(".cover").classList.contains("half")&&(timeout&&window.cancelAnimationFrame(timeout),timeout=window.requestAnimationFrame(portalButton))}),document.querySelector(".cover")&&document.querySelector(".cover").classList.contains("half")&&body.classList.add("portal-visible"); //# sourceMappingURL=main.min.js.map