(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{19853:t=>{var e="function"==typeof Float32Array;function i(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}function s(t,e,i){return 3*(1-3*i+3*e)*t*t+2*(3*i-6*e)*t+3*e}function n(t){return t}t.exports=function(t,r,a,l){if(!(0<=t&&t<=1&&0<=a&&a<=1))throw Error("bezier x values must be in [0, 1] range");if(t===r&&a===l)return n;for(var o=e?new Float32Array(11):Array(11),h=0;h<11;++h)o[h]=i(.1*h,t,a);return function(e){return 0===e?0:1===e?1:i(function(e){for(var n=0,r=1;10!==r&&o[r]<=e;++r)n+=.1;var l=n+(e-o[--r])/(o[r+1]-o[r])*.1,h=s(l,t,a);return h>=.001?function(t,e,n,r){for(var a=0;a<4;++a){var l=s(e,n,r);if(0===l)break;var o=i(e,n,r)-t;e-=o/l}return e}(e,l,t,a):0===h?l:function(t,e,s,n,r){var a,l,o=0;do(a=i(l=e+(s-e)/2,n,r)-t)>0?s=l:e=l;while(Math.abs(a)>1e-7&&++o<10);return l}(e,n,n+.1,t,a)}(e),r,l)}}},18424:(t,e,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(7964)}])},7964:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>c});var s=i(74848);i(20287);var n=i(70559),r=i.n(n),a=i(21265),l=i.n(a),o=i(11528),h=i.n(o),u=i(54701);function c(t){let{Component:e,pageProps:i}=t;return(0,s.jsx)(u.zE,{children:(0,s.jsx)("main",{className:"".concat(h().variable," ").concat(r().variable," ").concat(l().variable," flex flex-col min-h-screen"),children:(0,s.jsx)(e,{...i})})})}},20287:()=>{},70559:t=>{t.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_14cf58",variable:"__variable_14cf58"}},21265:t=>{t.exports={style:{fontFamily:"'Roboto Mono', 'Roboto Mono Fallback'",fontStyle:"normal"},className:"__className_352a68",variable:"__variable_352a68"}},11528:t=>{t.exports={style:{fontFamily:"'mierB', 'mierB Fallback'"},className:"__className_4886ad",variable:"__variable_4886ad"}},54701:(t,e,i)=>{"use strict";i.d(e,{kQ:()=>W,zE:()=>V});var s,n,r,a,l,o,h=i(19853),u=i.n(h),c=function(t){this.startX=t.startX,this.startY=t.startY,this.endX=t.endX,this.endY=t.endY,this.totalX=this.endX-this.startX,this.totalY=this.endY-this.startY,this.startMultiplierX=t.startMultiplierX||1,this.endMultiplierX=t.endMultiplierX||1,this.startMultiplierY=t.startMultiplierY||1,this.endMultiplierY=t.endMultiplierY||1};function d(){return(d=Object.assign||function(t){for(var e=1;et?-1:1)),1)}function S(t,e){var i=t.start,s=t.end,n=t.unit;if("%"===n){var r=e/100;i*=r,s*=r}if("vw"===n){var a=i/100,l=s/100;i=window.innerWidth*a,s=window.innerWidth*l}if("vh"===n){var o=i/100,h=s/100;i=window.innerHeight*o,s=window.innerHeight*h}return{start:i,end:s}}var P={start:0,end:0,unit:""},X=function(t,e,i){return Math.min(Math.max(t,e),i)},Y=function(){function t(t){var e,i;this.el=t.el,this.props=t.props,this.scrollAxis=t.scrollAxis,this.disabledParallaxController=t.disabledParallaxController||!1,this.id=++p,this.effects=b(this.props,this.scrollAxis),this.isInView=null,this.progress=0,this._setElementEasing(t.props.easing),e=t.el,i=Object.keys(this.effects).includes("opacity"),e.style.willChange="transform"+(i?",opacity":"")}var e=t.prototype;return e.updateProps=function(t){return this.props=d({},this.props,t),this.effects=b(t,this.scrollAxis),this._setElementEasing(t.easing),this},e.setCachedAttributes=function(t,e){O(this),this.rect=new f({el:this.props.targetElement||this.el,rootMargin:this.props.rootMargin,view:t});var i,s,n,r,a,o,h,u,p,v,m,g,w=(i=this.props,s=this.effects,n=this.scrollAxis,!i.rootMargin&&!i.targetElement&&!i.shouldDisableScalingTranslations&&(!!s.translateX&&n===l.horizontal||!!s.translateY&&n===l.vertical));return"number"==typeof this.props.startScroll&&"number"==typeof this.props.endScroll?this.limits=new c({startX:this.props.startScroll,startY:this.props.startScroll,endX:this.props.endScroll,endY:this.props.endScroll}):w?(this.limits=function(t,e,i,s,n,r){var a=i.translateX||P,o=i.translateY||P,h=S(a,t.width),u=h.start,d=h.end,p=S(o,t.height),f=p.start,v=p.end,m=t.top-e.height,g=t.left-e.width,w=t.bottom,E=t.right,_=1,b=1;n===l.vertical&&(b=_=I(f,v,e.height+t.height));var C=1,y=1;if(n===l.horizontal&&(y=C=I(u,d,e.width+t.width)),f<0&&(m+=f*_),v>0&&(w+=v*b),u<0&&(g+=u*C),d>0&&(E+=d*y),g+=s.x,E+=s.x,m+=s.y,w+=s.y,r){var x=s.y+t.tope.scrollHeight-e.height,Y=s.x+t.right>e.scrollWidth-e.height;x&&X&&(_=1,b=1,m=0,w=e.scrollHeight-e.height),O&&Y&&(C=1,y=1,g=0,E=e.scrollWidth-e.width),!x&&X&&(m=t.top-e.height+s.y,_=I(f,v,(w=e.scrollHeight-e.height)-m),b=1,f<0&&(m+=f*_)),!O&&Y&&(g=t.left-e.width+s.x,C=I(u,d,(E=e.scrollWidth-e.width)-g),y=1,u<0&&(g+=u*C)),x&&!X&&(m=0,_=1,b=I(f,v,(w=t.bottom+s.y)-m),v>0&&(w+=v*b)),O&&!Y&&(g=0,C=1,y=I(u,d,(E=t.right+s.x)-g),d>0&&(E+=d*y))}return new c({startX:g,startY:m,endX:E,endY:w,startMultiplierX:C,endMultiplierX:y,startMultiplierY:_,endMultiplierY:b})}(this.rect,t,this.effects,e,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=(r=this.effects,a=this.limits,(o=d({},r)).translateX&&(o.translateX=d({},r.translateX,{start:o.translateX.start*a.startMultiplierX,end:o.translateX.end*a.endMultiplierX})),o.translateY&&(o.translateY=d({},r.translateY,{start:o.translateY.start*a.startMultiplierY,end:o.translateY.end*a.endMultiplierY})),o)):this.limits=(h=this.rect,u=this.props.shouldAlwaysCompleteAnimation,p=h.top-t.height,v=h.left-t.width,m=h.bottom,g=h.right,v+=e.x,g+=e.x,p+=e.y,m+=e.y,u&&(e.y+h.topt.scrollHeight-t.height&&(m=t.scrollHeight-t.height),g>t.scrollWidth-t.width&&(g=t.scrollWidth-t.width)),new c({startX:v,startY:p,endX:g,endY:m})),this._setElementStyles(),this},e._updateElementIsInView=function(t){var e=null===this.isInView;t!==this.isInView&&(t?this.props.onEnter&&this.props.onEnter(this):!e&&(this._setFinalProgress(),this._setElementStyles(),this.props.onExit&&this.props.onExit(this))),this.isInView=t},e._setFinalProgress=function(){var t=X(Math.round(this.progress),0,1);this._updateElementProgress(t)},e._setElementStyles=function(){this.props.disabled||this.disabledParallaxController||function(t,e,i){if(i){var s,n=x.reduce(function(i,s){var n=t[s]&&y(t[s],e);return void 0===n||void 0===n.value||void 0===n.unit?i:i+(s+"("+n.value)+n.unit+")"},""),r=void 0===(s=t.opacity&&y(t.opacity,e))||void 0===s.value||void 0===s.unit?"":""+s.value;i.style.transform=n,i.style.opacity=r}}(this.scaledEffects||this.effects,this.progress,this.el)},e._updateElementProgress=function(t){this.progress=t,this.props.onProgressChange&&this.props.onProgressChange(this.progress),this.props.onChange&&this.props.onChange(this)},e._setElementEasing=function(t){this.easing=w(t)},e.updateElementOptions=function(t){this.scrollAxis=t.scrollAxis,this.disabledParallaxController=t.disabledParallaxController||!1},e.updatePosition=function(t){if(!this.limits)return this;var e=this.scrollAxis===l.vertical,i=null===this.isInView,s=e?this.limits.startY:this.limits.startX,n=e?this.limits.endY:this.limits.endX,r=e?this.limits.totalY:this.limits.totalX,a=e?t.y:t.x,o=a>=s&&a<=n;if(this._updateElementIsInView(o),o){var h=C(s,r,a,this.easing);this._updateElementProgress(h),this._setElementStyles()}else i&&(this.progress=X(Math.round(C(s,r,a,this.easing)),0,1),this._setElementStyles());return this},t}(),A=function(){function t(t){this.scrollContainer=t.scrollContainer,this.width=t.width,this.height=t.height,this.scrollHeight=t.scrollHeight,this.scrollWidth=t.scrollWidth}var e=t.prototype;return e.hasChanged=function(t){return t.width!==this.width||t.height!==this.height||t.scrollWidth!==this.scrollWidth||t.scrollHeight!==this.scrollHeight},e.setSize=function(t){return this.width=t.width,this.height=t.height,this.scrollHeight=t.scrollHeight,this.scrollWidth=t.scrollWidth,this},t}(),M=function(){function t(t,e){this.x=t,this.y=e,this.dx=0,this.dy=0}return t.prototype.setScroll=function(t,e){return this.dx=t-this.x,this.dy=e-this.y,this.x=t,this.y=e,this},t}(),k=function(){function t(t){var e=t.scrollAxis,i=void 0===e?l.vertical:e,s=t.scrollContainer,n=t.disabled;this.disabled=void 0!==n&&n,this.scrollAxis=i,this.elements=[],this._hasScrollContainer=!!s,this.viewEl=null!=s?s:window;var r=this._getScrollPosition(),a=r[0],o=r[1];this.scroll=new M(a,o),this.view=new A({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:this._hasScrollContainer?s:void 0}),this._ticking=!1,this._supportsPassive=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}(),this._bindAllMethods(),this.disabled||(this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize())}t.init=function(e){if(!("undefined"!=typeof window))throw Error("Looks like ParallaxController.init() was called on the server. This method must be called on the client.");return new t(e)};var e=t.prototype;return e._bindAllMethods=function(){var t=this;["_addListeners","_removeListeners","_getScrollPosition","_handleScroll","_handleUpdateCache","_updateAllElements","_updateElementPosition","_setViewSize","_addResizeObserver","_checkIfViewHasChanged","_getViewParams","getElements","createElement","removeElementById","resetElementStyles","updateElementPropsById","update","updateScrollContainer","destroy"].forEach(function(e){t[e]=t[e].bind(t)})},e._addListeners=function(t){t.addEventListener("scroll",this._handleScroll,!!this._supportsPassive&&{passive:!0}),window.addEventListener("resize",this._handleUpdateCache,!1),window.addEventListener("blur",this._handleUpdateCache,!1),window.addEventListener("focus",this._handleUpdateCache,!1),window.addEventListener("load",this._handleUpdateCache,!1)},e._removeListeners=function(t){var e;t.removeEventListener("scroll",this._handleScroll,!1),window.removeEventListener("resize",this._handleUpdateCache,!1),window.removeEventListener("blur",this._handleUpdateCache,!1),window.removeEventListener("focus",this._handleUpdateCache,!1),window.removeEventListener("load",this._handleUpdateCache,!1),null==(e=this._resizeObserver)||e.disconnect()},e._addResizeObserver=function(){var t=this;try{var e=this._hasScrollContainer?this.viewEl:document.documentElement;this._resizeObserver=new ResizeObserver(function(){return t.update()}),this._resizeObserver.observe(e)}catch(t){console.warn("Failed to create the resize observer in the ParallaxContoller")}},e._getScrollPosition=function(){return[this._hasScrollContainer?this.viewEl.scrollLeft:window.pageXOffset,this._hasScrollContainer?this.viewEl.scrollTop:window.pageYOffset]},e._handleScroll=function(){var t,e=this._getScrollPosition(),i=e[0],s=e[1];this.scroll.setScroll(i,s),!this._ticking&&(null==(t=this.elements)?void 0:t.length)>0&&(this._ticking=!0,window.requestAnimationFrame(this._updateAllElements))},e._handleUpdateCache=function(){this._setViewSize(),this._updateAllElements({updateCache:!0})},e._updateAllElements=function(t){var e=this,i=(void 0===t?{}:t).updateCache;this.elements&&this.elements.forEach(function(t){i&&t.setCachedAttributes(e.view,e.scroll),e._updateElementPosition(t)}),this._ticking=!1},e._updateElementPosition=function(t){t.props.disabled||this.disabled||t.updatePosition(this.scroll)},e._getViewParams=function(){if(this._hasScrollContainer){var t=this.viewEl.offsetWidth,e=this.viewEl.offsetHeight,i=this.viewEl.scrollHeight,s=this.viewEl.scrollWidth;return this.view.setSize({width:t,height:e,scrollHeight:i,scrollWidth:s})}var n=document.documentElement;return{width:window.innerWidth||n.clientWidth,height:window.innerHeight||n.clientHeight,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth}},e._setViewSize=function(){return this.view.setSize(this._getViewParams())},e._checkIfViewHasChanged=function(){return this.view.hasChanged(this._getViewParams())},e.getElements=function(){return this.elements},e.createElement=function(t){var e=new Y(d({},t,{scrollAxis:this.scrollAxis,disabledParallaxController:this.disabled}));return e.setCachedAttributes(this.view,this.scroll),this.elements=this.elements?[].concat(this.elements,[e]):[e],this._updateElementPosition(e),this._checkIfViewHasChanged()&&this.update(),e},e.removeElementById=function(t){this.elements&&(this.elements=this.elements.filter(function(e){return e.id!==t}))},e.updateElementPropsById=function(t,e){this.elements&&(this.elements=this.elements.map(function(i){return i.id===t?i.updateProps(e):i})),this.update()},e.resetElementStyles=function(t){O(t)},e.update=function(){var t=this._getScrollPosition(),e=t[0],i=t[1];this.scroll.setScroll(e,i),this._setViewSize(),this._updateAllElements({updateCache:!0})},e.updateScrollContainer=function(t){this._removeListeners(this.viewEl),this.viewEl=t,this._hasScrollContainer=!!t,this.view=new A({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:t}),this._setViewSize(),this._addListeners(this.viewEl),this._updateAllElements({updateCache:!0})},e.disableParallaxController=function(){this.disabled=!0,this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(t){return O(t)})},e.enableParallaxController=function(){var t=this;this.disabled=!1,this.elements&&this.elements.forEach(function(e){return e.updateElementOptions({disabledParallaxController:!1,scrollAxis:t.scrollAxis})}),this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize()},e.disableAllElements=function(){console.warn("deprecated: use disableParallaxController() instead"),this.elements&&(this.elements=this.elements.map(function(t){return t.updateProps({disabled:!0})})),this.update()},e.enableAllElements=function(){console.warn("deprecated: use enableParallaxController() instead"),this.elements&&(this.elements=this.elements.map(function(t){return t.updateProps({disabled:!1})})),this.update()},e.destroy=function(){this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(t){return O(t)}),this.elements=void 0},t}(),z=i(96540),H=["disabled","easing","endScroll","onChange","onEnter","onExit","onProgressChange","opacity","rootMargin","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","shouldAlwaysCompleteAnimation","shouldDisableScalingTranslations","speed","startScroll","targetElement","translateX","translateY"];function Q(t){var e,i=t.disabled,s=t.easing,n=t.endScroll,r=t.onChange,a=t.onEnter,l=t.onExit,o=t.onProgressChange,h=t.opacity,u=t.rootMargin,c=t.rotate,d=t.rotateX,p=t.rotateY,f=t.rotateZ,v=t.scale,m=t.scaleX,g=t.scaleY,w=t.scaleZ,E=t.shouldAlwaysCompleteAnimation,_=t.shouldDisableScalingTranslations,b=t.speed,C=t.startScroll,y=t.targetElement,x=t.translateX,O=t.translateY,I=function(t,e){if(null==t)return{};var i,s,n={},r=Object.keys(t);for(s=0;s=0||(n[i]=t[i]);return n}(t,H);return{parallaxProps:(Object.keys(e={disabled:i,easing:s,endScroll:n,onChange:r,onEnter:a,onExit:l,onProgressChange:o,opacity:h,rootMargin:u,rotate:c,rotateX:d,rotateY:p,rotateZ:f,scale:v,scaleX:m,scaleY:g,scaleZ:w,shouldAlwaysCompleteAnimation:E,shouldDisableScalingTranslations:_,speed:b,startScroll:C,targetElement:y,translateX:x,translateY:O}).forEach(function(t){return void 0===e[t]&&delete e[t]}),e),rest:I}}var L=z.createContext(null);function W(t){var e,i,s,n,r,a,l,o=Q(t),h=o.parallaxProps,u=o.rest,c=(e=h,i=function(){var t=(0,z.useContext)(L);if("undefined"==typeof window)return null;if(!t)throw Error("Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a ");return t}(),s=(0,z.useRef)(null),n=Q(e).parallaxProps,(0,z.useEffect)(function(){var t=i instanceof k;if("undefined"!=typeof window&&!i&&!t)throw Error("Must wrap your application's components in a .")},[i]),a=(r=(0,z.useState)())[0],l=r[1],(0,z.useEffect)(function(){var t;if(s.current instanceof HTMLElement){var e={el:s.current,props:n};l(t=null==i?void 0:i.createElement(e))}else throw Error("You must assign the ref returned by the useParallax() hook to an HTML Element.");return function(){t&&(null==i||i.removeElementById(t.id))}},[]),(0,z.useEffect)(function(){a&&(e.disabled&&(null==i||i.resetElementStyles(a)),null==i||i.updateElementPropsById(a.id,n))},[e.disabled,e.easing,e.endScroll,e.onChange,e.onEnter,e.onExit,e.onProgressChange,e.opacity,e.rootMargin,e.rotate,e.rotateX,e.rotateY,e.rotateZ,e.scale,e.scaleX,e.scaleY,e.scaleZ,e.shouldAlwaysCompleteAnimation,e.shouldDisableScalingTranslations,e.speed,e.startScroll,e.targetElement,e.translateX,e.translateY]),{ref:s,controller:i,element:a}).ref;return z.createElement("div",Object.assign({ref:c},u),t.children)}function V(t){var e,i=(0,z.useRef)(null);return i.current||(i.current=(e={scrollAxis:t.scrollAxis||l.vertical,scrollContainer:t.scrollContainer,disabled:t.isDisabled},"undefined"!=typeof window?k.init(e):null)),(0,z.useEffect)(function(){t.scrollContainer&&i.current&&i.current.updateScrollContainer(t.scrollContainer)},[t.scrollContainer,i.current]),(0,z.useEffect)(function(){t.isDisabled&&i.current&&i.current.disableParallaxController(),!t.isDisabled&&i.current&&i.current.enableParallaxController()},[t.isDisabled,i.current]),(0,z.useEffect)(function(){return function(){(null==i?void 0:i.current)&&(null==i||i.current.destroy())}},[]),z.createElement(L.Provider,{value:i.current},t.children)}}},t=>{var e=e=>t(t.s=e);t.O(0,[593,792],()=>(e(18424),e(74009))),_N_E=t.O()}]);