diff --git a/404.html b/404.html index d3d885d..fbb01de 100644 --- a/404.html +++ b/404.html @@ -125,7 +125,7 @@ - + diff --git a/built/js/main.min.d33bfa2644487ea2b5cb015a2ad0b3113597f166a3916b41cec1f1a473620de8.js b/built/js/main.min.c413f75d409b250b99fb3840e811052f6073f08bd535bc40717814ed6e2e059b.js similarity index 59% rename from built/js/main.min.d33bfa2644487ea2b5cb015a2ad0b3113597f166a3916b41cec1f1a473620de8.js rename to built/js/main.min.c413f75d409b250b99fb3840e811052f6073f08bd535bc40717814ed6e2e059b.js index d664cc8..2a095f8 100644 --- a/built/js/main.min.d33bfa2644487ea2b5cb015a2ad0b3113597f166a3916b41cec1f1a473620de8.js +++ b/built/js/main.min.c413f75d409b250b99fb3840e811052f6073f08bd535bc40717814ed6e2e059b.js @@ -16,4 +16,4 @@ */ -(()=>{"use strict";var t,e={882:(t,e,i)=>{i(886);class s{constructor(t){this._element=t||document.body,this._inputType="mouse",this._restrictedTypes=["mouse","touch"],this._restrictClass="focus-disabled",this._interactLock=!1,this.addClass(this._element,this._restrictClass),this.bind()}bind(){this._element.addEventListener("mousedown",(t=>{this.interact(t)})),this._element.addEventListener("touchstart",(t=>{this.interact(t)})),this._element.addEventListener("keydown",(t=>{this.interact(t)})),this._element.addEventListener("focus",(()=>{this.preFocus()}),!0),this._element.addEventListener("blur",(()=>{this.preBlur()}),!0)}interact(t){if(!this._interactLock)switch(t.type){case"mousedown":this._interactLock=!1,this._inputType="mouse";break;case"touchstart":this._interactLock=!0,this._inputType="touch";break;default:this._inputType="keyboard"}}preFocus(){this._restrictedTypes.forEach((t=>{this._inputType===t&&this.addClass(this._element,this._restrictClass)}))}removeClass(t,e){t.classList.contains(e)&&t.classList.remove(e)}preBlur(){this.removeClass(this._element,this._restrictClass)}hasClass(t,e){return t.classList.contains(e)}addClass(t,e){t.classList.contains(e)||t.classList.add(e)}}var n=i(486);class r{constructor(){this.data=this.getData(),this.cache={},this.interupt=250,this.getDebouncedResizeDetails=(0,n.debounce)((()=>this.getResizeDetails()),this.interupt),this.bind()}getData(){return{width:window.innerWidth,height:window.innerHeight}}bind(){this.getResizeDetails(),window.addEventListener("resize",(()=>this.getDebouncedResizeDetails())),window.addEventListener("scroll",(()=>this.getDebouncedResizeDetails()))}getResizeDetails(){this.data=this.getData(),this.cache!==this.data&&(document.dispatchEvent(new CustomEvent("resize-watcher",{detail:this.data})),this.cache=this.data)}}class a{constructor(){this.data=this.getData(),this.cache={},this.interupt=250,this.getThrottledScrollDetails=(0,n.throttle)((()=>this.getScrollDetails()),this.interupt),this.bind()}getData(){const t=this.getScrollX(),e=this.getScrollY();return{x:t,y:e,width:document.body.scrollWidth,height:document.body.scrollHeight,top:this.getIsTop(e),right:this.getIsRight(t),bottom:this.getIsBottom(e),left:this.getIsLeft(t),direction:{x:this.getXDirection(t),y:this.getYDirection(e)}}}bind(){this.getScrollDetails(),window.addEventListener("scroll",(()=>this.getThrottledScrollDetails()))}getScrollDetails(){this.data=this.getData(),this.cache!==this.data&&(document.dispatchEvent(new CustomEvent("scroll-watcher",{detail:this.data})),this.cache=this.data)}forceUpdate(){this.data=this.getData(),document.dispatchEvent(new CustomEvent("scroll-watcher",{detail:this.data})),this.cache=this.data}getXDirection(t){if(this.cache){if(t>this.cache.x)return"right";if(tthis.cache.y)return"down";if(t{},this.reject=()=>{},this.promise=new window.Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}class h{constructor(){this.ready=new c,this.config={classes:!0,active:this.onSuccess.bind(this),inactive:this.onError.bind(this),google:{families:["Ubuntu:400,500,700"]}},this.init()}init(){l().load(this.config)}onSuccess(){this.onComplete()}onError(){this.onComplete()}onComplete(){this.ready.resolve()}}class u{constructor(t){this.gaId=t||window.gaId,this.init()}init(){if(this.gaId){const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${this.gaId}`,document.body.appendChild(t);const e=document.createElement("script");e.type="text/javascript",e.textContent=`window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date()); gtag('config', '${this.gaId}');`,document.body.appendChild(e),this.bindEvents(),document.dispatchEvent(new CustomEvent("analytics-track-pageview",{}))}}bindEvents(){document.addEventListener("analytics-track-pageview",(t=>{const e=t.detail&&t.detail.path||window.location.pathname;this.trackPage(e)})),document.addEventListener("analytics-track-event",(t=>{t.detail&&t.detail.category&&t.detail.action&&this.trackEvent(t.detail.category,t.detail.action,t.detail.label)})),document.querySelectorAll("[data-analytics-track-event]").forEach((t=>{t.addEventListener("click",(()=>{const e=t.dataset.analyticsTrackEventCategory||null,i=t.dataset.analyticsTrackEventAction||null,s=t.dataset.analyticsTrackEventLabel||null;e&&i&&this.trackEvent(e,i,s)}))})),document.querySelectorAll("[data-external-link]").forEach((t=>{t.addEventListener("click",(()=>{const e=t.href;this.trackEvent("external","click",e)}))}))}trackPage(t){this.gaId&&window.gtag&&window.gtag("config",this.gaId,{page_path:t})}trackEvent(t,e,i){this.gaId&&window.gtag&&window.gtag("event",e,{event_category:t,event_label:i})}}class m{constructor(){this._header=document.querySelector("[data-header]"),this.minScrollTrigger=150,this.scrollData=null,this.bind()}bind(){document.addEventListener("scroll-watcher",(t=>{this.scrollData=t.detail,"up"===t.detail.direction.y?this.onScrollUp(t.detail):"down"===t.detail.direction.y&&this.onScrollDown(t.detail)}))}onScrollUp(){this.showHeader()}onScrollDown(){this.scrollData.top?this.hideShadow():this.showShadow(),this.scrollData.y>=this.minScrollTrigger&&!this.headerIsLocked()&&this.hideHeader()}showHeader(){this._header.classList.add("is-active"),this.scrollData.top?this.hideShadow():this.showShadow()}hideHeader(){this._header.classList.remove("is-active"),this.hideShadow()}isHeaderVisible(){this._header.classList.contains("is-active")}showShadow(){this._header.classList.add("has-shadow")}hideShadow(){this._header.classList.remove("has-shadow")}headerIsLocked(){return document.body.classList.contains("lock-header-active")}}class p{constructor(){this.triggerName="cookie-notice",this.el=document.querySelector("[data-cookie-message]")||null,this.acceptEl=document.querySelector("[data-cookie-accept]")||null,this.closeEl=document.querySelector("[data-cookie-close]")||null,this.el&&this.acceptEl&&(this.bindEvents(),this.init())}bindEvents(){this.acceptEl.addEventListener("click",(t=>{this.accept()})),this.closeEl.addEventListener("click",(t=>{this.goToPrivacy()}))}init(){(new d).getStorage(this.triggerName)?setTimeout((t=>{this.el.remove()}),2e3):this.show()}accept(){(new d).setStorage(this.triggerName,1),this.hide()}show(){this.el.classList.add("is-active"),this.el.setAttribute("aria-hidden",!1)}hide(){this.el.classList.remove("is-active"),this.el.setAttribute("aria-hidden",!0),setTimeout((t=>{this.el.remove()}),2e3)}goToPrivacy(){window.location.href="/privacy-policy"}}class _{constructor(){this.init()}init(){const t=window.navigator.userAgent,e=t.indexOf("MSIE "),i=t.indexOf("Trident/"),s=t.indexOf(/iP(hone|od|ad)/),n=t.indexOf(/Android\s([0-9.]*)/);(e>0||i>0)&&document.documentElement.classList.add("is-ie"),s>0&&document.documentElement.classList.add("is-ios","is-mobile"),n>0&&document.documentElement.classList.add("is-android","is-mobile")}}class g{constructor(t){this._menu=t||null,this._ident="data-menu",this.identTarget="data-menu-toggle",this._timeouts=[],this._menuTarget=null,null===this._menu&&(this._menu=document.querySelector(`[${this._ident}]`)),this._menu&&(this._menuTarget=this.getTarget(this._menu)),this.bind()}bind(){this._menuTarget.addEventListener("click",(t=>{this._menuTarget.classList.contains("is-active")?this.closeMenu(this._menu):this.openMenu(this._menu)}),!1),document.addEventListener("scroll-watcher",(t=>{"down"!==t.detail.direction.y||this.headerIsLocked()||this.closeMenu(this._menu)})),document.addEventListener("resize-watcher",(t=>{t.detail.width>991?(this._menuTarget.setAttribute("aria-hidden",!0),this._menuTarget.setAttribute("disabled","disabled")):(this._menuTarget.setAttribute("aria-hidden",!1),this._menuTarget.removeAttribute("disabled"))}))}getTarget(t){return document.querySelector(`[${this.identTarget}=${t.id}]`)}openMenu(t=null){if(t){const e=this.getTarget(t);t.classList.add("menu-open"),e.classList.add("is-active"),e.setAttribute("aria-expanded","true")}}closeMenu(t=null){if(t){const e=this.getTarget(t);t.classList.remove("menu-open"),e.classList.remove("is-active"),e.setAttribute("aria-expanded","false")}}headerIsLocked(){return document.body.classList.contains("lock-header-active")}}class v{constructor(){this._headerLockTimer=null,this._headerLockDelay=1e3,this._menuLinkEls=document.querySelectorAll(".menu-link")||[],this._sectionEls=document.querySelectorAll("[data-section]")||[],this._scrollToTopEls=document.querySelectorAll("[data-scroll-to-top]")||[],this.triggerPageview=(0,n.debounce)((t=>this.debouncedTriggerPageview(t)),1500),this.bind()}bind(){this._scrollToTopEls.forEach((t=>{t.addEventListener("click",(t=>{"/"===window.location.pathname&&(t.preventDefault(),this.resetHeaderTimer(),this.scrollToTop())}),!1)})),this._menuLinkEls.forEach((t=>{t.addEventListener("click",(t=>this.resetHeaderTimer()),!1)}));let t=null;document.addEventListener("scroll-watcher",(e=>{if(e.detail&&void 0!==e.detail.y){const i=e.detail.y;if(i){const e=i+window.innerHeight/2;this._sectionEls.forEach((i=>{const s=i.dataset.section;if(s!==t){const n=this.getElPos(i);e>n.top&&n.bottom>e&&(this.triggerPageview(s),t=s)}}))}}}))}scrollToTop(){window.history.replaceState("",document.title,"/"),window.scrollTo({top:0,left:0,behavior:"smooth"})}resetHeaderTimer(){window.clearTimeout(this._headerTimer),document.body.classList.add("lock-header-active"),this._headerTimer=window.setTimeout((()=>document.body.classList.remove("lock-header-active")),this._headerLockDelay)}getElPos(t){const e=t.getBoundingClientRect(),i=document.body,s=document.documentElement,n=window.pageYOffset||i.scrollTop||s.scrollTop,r=s.clientTop||i.clientTop||0,a=e.top+n-r;return{top:Math.round(a),bottom:Math.round(a+e.height)}}debouncedTriggerPageview(t){t&&document.dispatchEvent(new CustomEvent("analytics-track-pageview",{detail:{path:`/#${t}`}}))}}class w{constructor(t=null){this._element=t||null,this._ident="data-banner-video",this._element=document.querySelector(`[${this._ident}]`),this._element&&this.bind()}bind(){this._element.addEventListener("click",(t=>{const e=document.createElement("iframe");e.width="100%",e.height="100%",e.frameborder="none",e.src="https://www.youtube.com/embed/"+this._element.getAttribute(this._ident)+"?&autoplay=1&rel=0",e.title="",e.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",e.allowfullscreen="allowfullscreen",this._element.parentNode.prepend(e),window.setTimeout((()=>{this._element.classList.add("fade-out")}),500),window.setTimeout((()=>{this._element.remove()}),1e3)}))}getHtml(t){const e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e),e.contentDocument.open(),e.contentDocument.write(t),e.contentDocument.close();const i=e.contentDocument.body.innerHTML;return document.body.removeChild(e),i}}var y=i(840),f=i.n(y);class b{constructor(t){this._slider=t||null,this._ident="data-slider",this._identNext="data-slider-next",this._identPrev="data-slider-prev",this._identSlide="data-slider-slide",this._identTray="data-slider-tray",this._identIndicator="data-slider-indicator",this._identRestart="data-slider-restart",this._activeClass="is-active",this._tray=null,this._slides=null,this._indicatorButtons=null,this._currentSlide=0,this._autoflipper=null,this._timeout=5e3,this._useAuto=!0,this._slider&&(this._slides=this._slider.querySelectorAll(`[${this._identSlide}]`)||null,this._tray=this._slider.querySelector(`[${this._identTray}]`)||null,this._indicatorButtons=this._slider.querySelectorAll(`[${this._identIndicator}]`)||null,this._slides[0].classList.add("is-active"),this.setAutoflipper(),this.setWidths(),this.setupAria(),this.updateIndicator(),this.bind())}setupAria(){this._slider.setAttribute("aria-roledescription","carousel"),this._tray.setAttribute("aria-live","off"),this._slides.forEach(((t,e)=>{t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-label",`Slide ${e+1} of ${this._slides.length+1}`),t.setAttribute("data-href",t.href),0===e?(t.setAttribute("aria-hidden","false"),t.style.pointerEvents="all",t.style.cursor="pointer"):(t.setAttribute("aria-hidden","true"),t.style.pointerEvents="none",t.style.cursor="default",t.removeAttribute("href"))}))}setAutoflipper(t=!1){const e=this._slider.querySelector(`[${this._identRestart}]`);t&&(this._useAuto=!0,e.classList.remove("is-active")),this._useAuto&&(this._autoflipper=setTimeout((()=>{this.nextSlide()}),this._timeout))}unsetAutoflipper(t=null){clearTimeout(this._autoflipper);this._slider.querySelector(`[${this._identRestart}]`).classList.add("is-active"),t&&(this._useAuto=!1)}bind(){const t=this._slider.querySelector(`[${this._identNext}]`),e=this._slider.querySelector(`[${this._identPrev}]`),i=this._slider.querySelector(`[${this._identRestart}]`);t.addEventListener("click",(t=>{this.unsetAutoflipper(!0),this.haltButton(t.target),this.nextSlide()})),e.addEventListener("click",(t=>{this.unsetAutoflipper(!0),this.haltButton(t.target),this.prevSlide()})),i.addEventListener("click",(t=>{t.target.classList.contains("is-active")||!this._useAuto?this.setAutoflipper(!0):this.unsetAutoflipper(!0),this.haltButton(t.target)})),document.addEventListener("resize-watcher",(t=>{this.setWidths(t.detail)})),this._indicatorButtons.forEach((t=>{t.addEventListener("click",(e=>{this.unsetAutoflipper(!0),this.haltButton(e.target),this._currentSlide=t.dataset.sliderIndicator-1,this.moveToSlide()}))})),this._slides.forEach((t=>{t.addEventListener("click",(t=>{this.unsetAutoflipper(!0)}))}));const s=new(f())(this._slider);s.on("swipeleft",(t=>{this.unsetAutoflipper(!0),this.nextSlide()})),s.on("swiperight",(t=>{this.unsetAutoflipper(!0),this.prevSlide()}))}haltButton(t){t.style.pointerEvents="none",t.disabled=!0,t.setAttribute("aria-disabled",!0),setTimeout((()=>{t.style.pointerEvents="all",t.disabled=!1,t.setAttribute("aria-disabled",!1)}),250)}trayWidth(){return 100*this._slides.length}nextSlide(){clearTimeout(this._autoflipper),this._slides[this._currentSlide].classList.remove("is-active"),this._slides[this._currentSlide].setAttribute("aria-hidden","true"),this._slides[this._currentSlide].style.pointerEvents="none",this._slides[this._currentSlide].style.cursor="default",this._slides[this._currentSlide].removeAttribute("href"),this._currentSlide=(this._currentSlide+1)%this._slides.length,this._currentSlide>this._slides.length&&(this._currentSlide=0),this._useAuto&&this.setAutoflipper(),this.moveToSlide()}prevSlide(){clearTimeout(this._autoflipper),this._slides[this._currentSlide].classList.remove("is-active"),this._slides[this._currentSlide].setAttribute("aria-hidden","true"),this._slides[this._currentSlide].style.pointerEvents="none",this._slides[this._currentSlide].style.cursor="default",this._slides[this._currentSlide].removeAttribute("href"),this._currentSlide=(this._currentSlide-1)%this._slides.length,-1==this._currentSlide&&(this._currentSlide=this._slides.length-1),this.moveToSlide()}moveToSlide(){this._tray.style.transform=`translateX(-${100/(this._slides.length+1)*this._currentSlide}%)`,this._slides[this._currentSlide].classList.add("is-active"),this._slides[this._currentSlide].setAttribute("aria-hidden","false"),this._slides[this._currentSlide].style.pointerEvents="all",this._slides[this._currentSlide].style.cursor="pointer",this._slides[this._currentSlide].setAttribute("href",this._slides[this._currentSlide].getAttribute("data-href")),this.updateIndicator()}updateIndicator(){this._indicatorButtons.forEach((t=>{t.dataset.sliderIndicator-1===this._currentSlide?t.classList.add("is-active"):t.classList.remove("is-active")}))}updateOnResize(){this.setTrayWidth()}setWidths(t){const e=this._tray.parentNode;this._tray.style.width=e.offsetWidth*(this._slides.length+1)+"px";for(const t of this._slides)t.style.width=`${e.offsetWidth}px`}}class S{constructor(){document.documentElement.classList.remove("no-js"),new _,new u("G-FC91ERVTG9"),new p,new s,new m,new g,new v,new r,new a,new h,this.init()}init(){this.initSliders(),this.initBannerVideo(),this.initLogoAnimation()}initSliders(){for(const t of document.querySelectorAll("[data-slider]"))new b(t)}initBannerVideo(){new w}initLogoAnimation(){const t=document.querySelector("lottie-player");if(t){const e=t.shadowRoot;if(e){const t=document.createElement("style");t.textContent="svg { transform: none !important; }",e.appendChild(t)}}}}document.addEventListener("DOMContentLoaded",(()=>new S))}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=e,t=[],s.O=(e,i,n,r)=>{if(!i){var a=1/0;for(c=0;c=r)&&Object.keys(s.O).every((t=>s.O[t](i[l])))?i.splice(l--,1):(o=!1,r0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[i,n,r]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={179:0};s.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[a,o,l]=i,d=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(l)var c=l(s)}for(e&&e(i);ds(882)));n=s.O(n)})(); \ No newline at end of file +(()=>{"use strict";var t,e={882:(t,e,i)=>{i(886);class s{constructor(t){this._element=t||document.body,this._inputType="mouse",this._restrictedTypes=["mouse","touch"],this._restrictClass="focus-disabled",this._interactLock=!1,this.addClass(this._element,this._restrictClass),this.bind()}bind(){this._element.addEventListener("mousedown",(t=>{this.interact(t)})),this._element.addEventListener("touchstart",(t=>{this.interact(t)})),this._element.addEventListener("keydown",(t=>{this.interact(t)})),this._element.addEventListener("focus",(()=>{this.preFocus()}),!0),this._element.addEventListener("blur",(()=>{this.preBlur()}),!0)}interact(t){if(!this._interactLock)switch(t.type){case"mousedown":this._interactLock=!1,this._inputType="mouse";break;case"touchstart":this._interactLock=!0,this._inputType="touch";break;default:this._inputType="keyboard"}}preFocus(){this._restrictedTypes.forEach((t=>{this._inputType===t&&this.addClass(this._element,this._restrictClass)}))}removeClass(t,e){t.classList.contains(e)&&t.classList.remove(e)}preBlur(){this.removeClass(this._element,this._restrictClass)}hasClass(t,e){return t.classList.contains(e)}addClass(t,e){t.classList.contains(e)||t.classList.add(e)}}var n=i(486);class r{constructor(){this.data=this.getData(),this.cache={},this.interupt=250,this.getDebouncedResizeDetails=(0,n.debounce)((()=>this.getResizeDetails()),this.interupt),this.bind()}getData(){return{width:window.innerWidth,height:window.innerHeight}}bind(){this.getResizeDetails(),window.addEventListener("resize",(()=>this.getDebouncedResizeDetails())),window.addEventListener("scroll",(()=>this.getDebouncedResizeDetails()))}getResizeDetails(){this.data=this.getData(),this.cache!==this.data&&(document.dispatchEvent(new CustomEvent("resize-watcher",{detail:this.data})),this.cache=this.data)}}class a{constructor(){this.data=this.getData(),this.cache={},this.interupt=250,this.getThrottledScrollDetails=(0,n.throttle)((()=>this.getScrollDetails()),this.interupt),this.bind()}getData(){const t=this.getScrollX(),e=this.getScrollY();return{x:t,y:e,width:document.body.scrollWidth,height:document.body.scrollHeight,top:this.getIsTop(e),right:this.getIsRight(t),bottom:this.getIsBottom(e),left:this.getIsLeft(t),direction:{x:this.getXDirection(t),y:this.getYDirection(e)}}}bind(){this.getScrollDetails(),window.addEventListener("scroll",(()=>this.getThrottledScrollDetails()))}getScrollDetails(){this.data=this.getData(),this.cache!==this.data&&(document.dispatchEvent(new CustomEvent("scroll-watcher",{detail:this.data})),this.cache=this.data)}forceUpdate(){this.data=this.getData(),document.dispatchEvent(new CustomEvent("scroll-watcher",{detail:this.data})),this.cache=this.data}getXDirection(t){if(this.cache){if(t>this.cache.x)return"right";if(tthis.cache.y)return"down";if(t{},this.reject=()=>{},this.promise=new window.Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}class h{constructor(){this.ready=new c,this.config={classes:!0,active:this.onSuccess.bind(this),inactive:this.onError.bind(this),google:{families:["Ubuntu:400,500,700"]}},this.init()}init(){d().load(this.config)}onSuccess(){this.onComplete()}onError(){this.onComplete()}onComplete(){this.ready.resolve()}}class u{constructor(t){this.gaId=t||window.gaId,this.init()}init(){if(this.gaId){const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${this.gaId}`,document.body.appendChild(t);const e=document.createElement("script");e.type="text/javascript",e.textContent=`window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date()); gtag('config', '${this.gaId}');`,document.body.appendChild(e),this.bindEvents(),document.dispatchEvent(new CustomEvent("analytics-track-pageview",{}))}}bindEvents(){document.addEventListener("analytics-track-pageview",(t=>{const e=t.detail&&t.detail.path||window.location.pathname;this.trackPage(e)})),document.addEventListener("analytics-track-event",(t=>{t.detail&&t.detail.category&&t.detail.action&&this.trackEvent(t.detail.category,t.detail.action,t.detail.label)})),document.querySelectorAll("[data-analytics-track-event]").forEach((t=>{t.addEventListener("click",(()=>{const e=t.dataset.analyticsTrackEventCategory||null,i=t.dataset.analyticsTrackEventAction||null,s=t.dataset.analyticsTrackEventLabel||null;e&&i&&this.trackEvent(e,i,s)}))})),document.querySelectorAll("[data-external-link]").forEach((t=>{t.addEventListener("click",(()=>{const e=t.href;this.trackEvent("external","click",e)}))}))}trackPage(t){this.gaId&&window.gtag&&window.gtag("config",this.gaId,{page_path:t})}trackEvent(t,e,i){this.gaId&&window.gtag&&window.gtag("event",e,{event_category:t,event_label:i})}}class m{constructor(){this._header=document.querySelector("[data-header]"),this.minScrollTrigger=150,this.scrollData=null,this.bind()}bind(){document.addEventListener("scroll-watcher",(t=>{this.scrollData=t.detail,"up"===t.detail.direction.y?this.onScrollUp(t.detail):"down"===t.detail.direction.y&&this.onScrollDown(t.detail)}))}onScrollUp(){this.showHeader()}onScrollDown(){this.scrollData.top?this.hideShadow():this.showShadow(),this.scrollData.y>=this.minScrollTrigger&&!this.headerIsLocked()&&this.hideHeader()}showHeader(){this._header.classList.add("is-active"),this.scrollData.top?this.hideShadow():this.showShadow()}hideHeader(){this._header.classList.remove("is-active"),this.hideShadow()}isHeaderVisible(){this._header.classList.contains("is-active")}showShadow(){this._header.classList.add("has-shadow")}hideShadow(){this._header.classList.remove("has-shadow")}headerIsLocked(){return document.body.classList.contains("lock-header-active")}}class p{constructor(){this.triggerName="cookie-notice",this.el=document.querySelector("[data-cookie-message]")||null,this.acceptEl=document.querySelector("[data-cookie-accept]")||null,this.closeEl=document.querySelector("[data-cookie-close]")||null,this.el&&this.acceptEl&&(this.bindEvents(),this.init())}bindEvents(){this.acceptEl.addEventListener("click",(t=>{this.accept()})),this.closeEl.addEventListener("click",(t=>{this.goToPrivacy()}))}init(){(new l).getStorage(this.triggerName)?setTimeout((t=>{this.el.remove()}),2e3):this.show()}accept(){(new l).setStorage(this.triggerName,1),this.hide()}show(){this.el.classList.add("is-active"),this.el.setAttribute("aria-hidden",!1)}hide(){this.el.classList.remove("is-active"),this.el.setAttribute("aria-hidden",!0),setTimeout((t=>{this.el.remove()}),2e3)}goToPrivacy(){window.location.href="/privacy-policy"}}class _{constructor(){this.init()}init(){const t=window.navigator.userAgent,e=t.indexOf("MSIE "),i=t.indexOf("Trident/"),s=t.indexOf(/iP(hone|od|ad)/),n=t.indexOf(/Android\s([0-9.]*)/);(e>0||i>0)&&document.documentElement.classList.add("is-ie"),s>0&&document.documentElement.classList.add("is-ios","is-mobile"),n>0&&document.documentElement.classList.add("is-android","is-mobile")}}class g{constructor(t){this._menu=t||null,this._ident="data-menu",this.identTarget="data-menu-toggle",this._timeouts=[],this._menuTarget=null,null===this._menu&&(this._menu=document.querySelector(`[${this._ident}]`)),this._menu&&(this._menuTarget=this.getTarget(this._menu)),this.bind()}bind(){this._menuTarget.addEventListener("click",(t=>{this._menuTarget.classList.contains("is-active")?this.closeMenu(this._menu):this.openMenu(this._menu)}),!1),document.addEventListener("scroll-watcher",(t=>{"down"!==t.detail.direction.y||this.headerIsLocked()||this.closeMenu(this._menu)})),document.addEventListener("resize-watcher",(t=>{t.detail.width>991?(this._menuTarget.setAttribute("aria-hidden",!0),this._menuTarget.setAttribute("disabled","disabled")):(this._menuTarget.setAttribute("aria-hidden",!1),this._menuTarget.removeAttribute("disabled"))}))}getTarget(t){return document.querySelector(`[${this.identTarget}=${t.id}]`)}openMenu(t=null){if(t){const e=this.getTarget(t);t.classList.add("menu-open"),e.classList.add("is-active"),e.setAttribute("aria-expanded","true")}}closeMenu(t=null){if(t){const e=this.getTarget(t);t.classList.remove("menu-open"),e.classList.remove("is-active"),e.setAttribute("aria-expanded","false")}}headerIsLocked(){return document.body.classList.contains("lock-header-active")}}class v{constructor(){this._headerLockTimer=null,this._headerLockDelay=1e3,this._menuLinkEls=document.querySelectorAll(".menu-link")||[],this._sectionEls=document.querySelectorAll("[data-section]")||[],this._scrollToTopEls=document.querySelectorAll("[data-scroll-to-top]")||[],this.triggerPageview=(0,n.debounce)((t=>this.debouncedTriggerPageview(t)),1500),this.bind()}bind(){this._scrollToTopEls.forEach((t=>{t.addEventListener("click",(t=>{"/"===window.location.pathname&&(t.preventDefault(),this.resetHeaderTimer(),this.scrollToTop())}),!1)})),this._menuLinkEls.forEach((t=>{t.addEventListener("click",(t=>this.resetHeaderTimer()),!1)}));let t=null;document.addEventListener("scroll-watcher",(e=>{if(e.detail&&void 0!==e.detail.y){const i=e.detail.y;if(i){const e=i+window.innerHeight/2;this._sectionEls.forEach((i=>{const s=i.dataset.section;if(s!==t){const n=this.getElPos(i);e>n.top&&n.bottom>e&&(this.triggerPageview(s),t=s)}}))}}}))}scrollToTop(){window.history.replaceState("",document.title,"/"),window.scrollTo({top:0,left:0,behavior:"smooth"})}resetHeaderTimer(){window.clearTimeout(this._headerTimer),document.body.classList.add("lock-header-active"),this._headerTimer=window.setTimeout((()=>document.body.classList.remove("lock-header-active")),this._headerLockDelay)}getElPos(t){const e=t.getBoundingClientRect(),i=document.body,s=document.documentElement,n=window.pageYOffset||i.scrollTop||s.scrollTop,r=s.clientTop||i.clientTop||0,a=e.top+n-r;return{top:Math.round(a),bottom:Math.round(a+e.height)}}debouncedTriggerPageview(t){t&&document.dispatchEvent(new CustomEvent("analytics-track-pageview",{detail:{path:`/#${t}`}}))}}class w{constructor(t=null){this._element=t||null,this._ident="data-banner-video",this._element=document.querySelector(`[${this._ident}]`),this._element&&this.bind()}bind(){this._element.addEventListener("click",(t=>{const e=document.createElement("iframe");e.width="100%",e.height="100%",e.frameborder="none",e.src="https://www.youtube.com/embed/"+this._element.getAttribute(this._ident)+"?&autoplay=1&rel=0",e.title="",e.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",this._element.parentNode.prepend(e),window.setTimeout((()=>{this._element.classList.add("fade-out")}),500),window.setTimeout((()=>{this._element.remove()}),1e3)}))}getHtml(t){const e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e),e.contentDocument.open(),e.contentDocument.write(t),e.contentDocument.close();const i=e.contentDocument.body.innerHTML;return document.body.removeChild(e),i}}var y=i(840),f=i.n(y);class b{constructor(t){this._slider=t||null,this._ident="data-slider",this._identNext="data-slider-next",this._identPrev="data-slider-prev",this._identSlide="data-slider-slide",this._identTray="data-slider-tray",this._identIndicator="data-slider-indicator",this._identRestart="data-slider-restart",this._activeClass="is-active",this._tray=null,this._slides=null,this._indicatorButtons=null,this._currentSlide=0,this._autoflipper=null,this._timeout=5e3,this._useAuto=!0,this._slider&&(this._slides=this._slider.querySelectorAll(`[${this._identSlide}]`)||null,this._tray=this._slider.querySelector(`[${this._identTray}]`)||null,this._indicatorButtons=this._slider.querySelectorAll(`[${this._identIndicator}]`)||null,this._slides[0].classList.add("is-active"),this.setAutoflipper(),this.setWidths(),this.setupAria(),this.updateIndicator(),this.bind())}setupAria(){this._slider.setAttribute("aria-roledescription","carousel"),this._tray.setAttribute("aria-live","off"),this._slides.forEach(((t,e)=>{t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-label",`Slide ${e+1} of ${this._slides.length+1}`),t.setAttribute("data-href",t.href),0===e?(t.setAttribute("aria-hidden","false"),t.style.pointerEvents="all",t.style.cursor="pointer"):(t.setAttribute("aria-hidden","true"),t.style.pointerEvents="none",t.style.cursor="default",t.removeAttribute("href"))}))}setAutoflipper(t=!1){const e=this._slider.querySelector(`[${this._identRestart}]`);t&&(this._useAuto=!0,e.classList.remove("is-active")),this._useAuto&&(this._autoflipper=setTimeout((()=>{this.nextSlide()}),this._timeout))}unsetAutoflipper(t=null){clearTimeout(this._autoflipper);this._slider.querySelector(`[${this._identRestart}]`).classList.add("is-active"),t&&(this._useAuto=!1)}bind(){const t=this._slider.querySelector(`[${this._identNext}]`),e=this._slider.querySelector(`[${this._identPrev}]`),i=this._slider.querySelector(`[${this._identRestart}]`);t.addEventListener("click",(t=>{this.unsetAutoflipper(!0),this.haltButton(t.target),this.nextSlide()})),e.addEventListener("click",(t=>{this.unsetAutoflipper(!0),this.haltButton(t.target),this.prevSlide()})),i.addEventListener("click",(t=>{t.target.classList.contains("is-active")||!this._useAuto?this.setAutoflipper(!0):this.unsetAutoflipper(!0),this.haltButton(t.target)})),document.addEventListener("resize-watcher",(t=>{this.setWidths(t.detail)})),this._indicatorButtons.forEach((t=>{t.addEventListener("click",(e=>{this.unsetAutoflipper(!0),this.haltButton(e.target),this._currentSlide=t.dataset.sliderIndicator-1,this.moveToSlide()}))})),this._slides.forEach((t=>{t.addEventListener("click",(t=>{this.unsetAutoflipper(!0)}))}));const s=new(f())(this._slider);s.on("swipeleft",(t=>{this.unsetAutoflipper(!0),this.nextSlide()})),s.on("swiperight",(t=>{this.unsetAutoflipper(!0),this.prevSlide()}))}haltButton(t){t.style.pointerEvents="none",t.disabled=!0,t.setAttribute("aria-disabled",!0),setTimeout((()=>{t.style.pointerEvents="all",t.disabled=!1,t.setAttribute("aria-disabled",!1)}),250)}trayWidth(){return 100*this._slides.length}nextSlide(){clearTimeout(this._autoflipper),this._slides[this._currentSlide].classList.remove("is-active"),this._slides[this._currentSlide].setAttribute("aria-hidden","true"),this._slides[this._currentSlide].style.pointerEvents="none",this._slides[this._currentSlide].style.cursor="default",this._slides[this._currentSlide].removeAttribute("href"),this._currentSlide=(this._currentSlide+1)%this._slides.length,this._currentSlide>this._slides.length&&(this._currentSlide=0),this._useAuto&&this.setAutoflipper(),this.moveToSlide()}prevSlide(){clearTimeout(this._autoflipper),this._slides[this._currentSlide].classList.remove("is-active"),this._slides[this._currentSlide].setAttribute("aria-hidden","true"),this._slides[this._currentSlide].style.pointerEvents="none",this._slides[this._currentSlide].style.cursor="default",this._slides[this._currentSlide].removeAttribute("href"),this._currentSlide=(this._currentSlide-1)%this._slides.length,-1==this._currentSlide&&(this._currentSlide=this._slides.length-1),this.moveToSlide()}moveToSlide(){this._tray.style.transform=`translateX(-${100/(this._slides.length+1)*this._currentSlide}%)`,this._slides[this._currentSlide].classList.add("is-active"),this._slides[this._currentSlide].setAttribute("aria-hidden","false"),this._slides[this._currentSlide].style.pointerEvents="all",this._slides[this._currentSlide].style.cursor="pointer",this._slides[this._currentSlide].setAttribute("href",this._slides[this._currentSlide].getAttribute("data-href")),this.updateIndicator()}updateIndicator(){this._indicatorButtons.forEach((t=>{t.dataset.sliderIndicator-1===this._currentSlide?t.classList.add("is-active"):t.classList.remove("is-active")}))}updateOnResize(){this.setTrayWidth()}setWidths(t){const e=this._tray.parentNode;this._tray.style.width=e.offsetWidth*(this._slides.length+1)+"px";for(const t of this._slides)t.style.width=`${e.offsetWidth}px`}}class S{constructor(){document.documentElement.classList.remove("no-js"),new _,new u("G-FC91ERVTG9"),new p,new s,new m,new g,new v,new r,new a,new h,this.init()}init(){this.initSliders(),this.initBannerVideo(),this.initLogoAnimation()}initSliders(){for(const t of document.querySelectorAll("[data-slider]"))new b(t)}initBannerVideo(){new w}initLogoAnimation(){const t=document.querySelector("lottie-player");if(t){const e=t.shadowRoot;if(e){const t=document.createElement("style");t.textContent="svg { transform: none !important; }",e.appendChild(t)}}}}document.addEventListener("DOMContentLoaded",(()=>new S))}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=e,t=[],s.O=(e,i,n,r)=>{if(!i){var a=1/0;for(c=0;c=r)&&Object.keys(s.O).every((t=>s.O[t](i[d])))?i.splice(d--,1):(o=!1,r0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[i,n,r]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={179:0};s.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[a,o,d]=i,l=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(d)var c=d(s)}for(e&&e(i);ls(882)));n=s.O(n)})(); \ No newline at end of file diff --git a/index.html b/index.html index 39ad8e0..1fea2f3 100644 --- a/index.html +++ b/index.html @@ -358,7 +358,7 @@ - + diff --git a/privacy-policy/index.html b/privacy-policy/index.html index 54400b9..f5cd137 100644 --- a/privacy-policy/index.html +++ b/privacy-policy/index.html @@ -139,7 +139,7 @@ - +