"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[173],{5687(e){e.exports=function(){if("undefined"==typeof window||"undefined"==typeof navigator)return function(){return 0};if(!navigator.userAgent.match(/iphone|ipod|ipad/i)&&!function(){const e=window.navigator.userAgent;if(e.indexOf("iPad")>-1)return!0;if(e.indexOf("Macintosh")>-1)try{return document.createEvent("TouchEvent"),!0}catch(e){}return!1}())return function(){return window.innerHeight};var e,t=Math.abs(window.orientation),i={w:0,h:0};return(e=document.createElement("div")).style.position="fixed",e.style.height="100vh",e.style.width=0,e.style.top=0,document.documentElement.appendChild(e),i.w=90===t?e.offsetHeight:window.innerWidth,i.h=90===t?window.innerWidth:e.offsetHeight,document.documentElement.removeChild(e),e=null,function(){return 90!==Math.abs(window.orientation)?i.h:i.w}}()},1173(e,t,i){i.r(t),i.d(t,{mount:function(){return u},rel:function(){return c}});var n=i(3793),o=i(5687),s=i.n(o);const a=function(e,t){return t*(100*(1-e))},r=function({el:e=null,speed:t=null,fitInsideContainer:i=null,isVisible:n=!1,shouldSetHeightToIncrease:o=!0,parallaxBehavior:r="desktop:tablet:mobile"}){if(t=t<=-5?-5:t>=5?5:t,i&&o){let o=0;o=t>0?a(.5,t):a(s()()/(i.clientHeight+s()()),t)-a(.5,t),o=2*Math.abs(o),n?e.parentNode.style.height=`calc(100% + ${o}px)`:e.parentNode.removeAttribute("style")}let{top:l,height:c}=d(i||e);return{parallaxBehavior:r,shouldSetHeightToIncrease:o,fitInsideContainer:i,el:e,top:pageYOffset+l,height:c,speed:t,isVisible:n}};function l(e){var t=e.getBoundingClientRect();return t.bottom>-450&&t.top-450<(s()()||document.documentElement.clientHeight)}function d(e){if(!e)return null;let{top:t,left:i,right:n,width:o,height:s}=e.getBoundingClientRect(),a=window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map(function(e){return parseFloat(e)});if(6!=a.length)return e.getBoundingClientRect();var r=a;let l=r[0]*r[3]-r[1]*r[2];return{width:o/r[0],height:s/r[3],left:(i*r[3]-t*r[2]+r[2]*r[5]-r[4]*r[3])/l,right:(n*r[3]-t*r[2]+r[2]*r[5]-r[4]*r[3])/l,top:(-i*r[1]+t*r[0]+r[4]*r[1]-r[0]*r[5])/l}}i(6555);let c=new class{constructor(){var e=this;this.blocks=[],this.oldPosY=!1,this.intersectionObserver=new IntersectionObserver(function(t){t.map(function({target:t,isIntersecting:i,intersectionRatio:o}){e.blocks.filter(function({fitInsideContainer:e,el:i}){return i.closest("svg")?i.closest("svg")===t:e===t||i===t});let s=!1;e.blocks=e.blocks.map(function(e){return(e.el.closest("svg")?e.el.closest("svg")===t:e.fitInsideContainer===t||e.el===t)?(s=!0,r({...e,isVisible:i&&e.parallaxBehavior.indexOf((0,n.U)({withTablet:!0}))>-1})):e}),s&&(e.oldPosY=!1,e.animate())})},{rootMargin:"450px"}),this.update(),this.animate()}removeEl({el:e}){e.removeAttribute("style"),this.blocks=this.blocks.filter(function({el:t}){return t!==e})}addEl({el:e,speed:t,fitInsideContainer:i=null,shouldSetHeightToIncrease:o=!0,parallaxBehavior:s="desktop:tablet:mobile"}){i?this.intersectionObserver.observe(i):this.intersectionObserver.observe(e.closest("svg")?e.closest("svg"):e),this.blocks.push(r({el:e,speed:t,fitInsideContainer:i,isVisible:l(i||e)&&s.indexOf((0,n.U)({withTablet:!0}))>-1,shouldSetHeightToIncrease:o,parallaxBehavior:s}))}update(){this.oldPosY||0===this.oldPosY||this.animate(),this.setPosition()&&this.animate(),requestAnimationFrame(this.update.bind(this))}setPosition(){if(0===this.blocks.length)return!1;let e=this.oldPosY;return this.oldPosY=pageYOffset,e!=pageYOffset}animate(){this.blocks.map(function(e){if(!e.isVisible)return void e.el.removeAttribute("style");var t=(pageYOffset-e.top+s()())/(e.height+s()());let{top:i,height:n}=d(e.fitInsideContainer?e.fitInsideContainer:e.el);n||(n=(e.fitInsideContainer?e.fitInsideContainer:e.el).getBoundingClientRect().height);const o=1-(i+(e.el.dataset.percentage&&0===parseInt(e.el.dataset.percentage,10)?0:n/2))/s()();var r=a(e.fitInsideContainer?t:o,e.speed)-a(e.el.dataset.percentage?parseInt(e.el.dataset.percentage,10):.5,e.speed);e.el.style.transform=`translate3d(0, ${r}px, 0)`})}};const u=function(e){e.ctHasParallax&&e.querySelector("figure .ct-media-container > img")||(!e.matches("[data-parallax]")||e.dataset.parallax?(e.ctHasParallax=!0,e.querySelector("figure .ct-media-container > img")?setTimeout(function(){c.addEl({el:e.querySelector("figure .ct-media-container > img"),speed:-5,fitInsideContainer:e,...e.dataset.parallax?{parallaxBehavior:e.dataset.parallax}:{}})},0):c.addEl({el:e,speed:+e.dataset.parallax,shouldSetHeightToIncrease:!1})):e.removeAttribute("data-parallax"))}}}]);