(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{95728:function(t,e,n){"use strict";var r,a,i=n(67294);function o(){return o=Object.assign||function(t){for(var e=1;eu?l(t,n,a):o+r>g?c(o-u+r,n,a):a&&a()},d=function(t,n,r,a){c(Math.max(0,e.getTopOf(t)-e.getHeight()/2+(r||t.getBoundingClientRect().height/2)),n,a)};return{setup:function(t,e){return(0===t||t)&&(n=t),(0===e||e)&&(r=e),{defaultDuration:n,edgeOffset:r}},to:l,toY:c,intoView:u,center:d,stop:o,moving:function(){return!!a},getY:e.getY,getTopOf:e.getTopOf}},n=document.documentElement,r=function(){return window.scrollY||n.scrollTop},a=e({body:document.scrollingElement||document.body,toY:function(t){window.scrollTo(0,t)},getY:r,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(t){return t.getBoundingClientRect().top+r()-n.offsetTop}});if(a.createScroller=function(t,r,a){return e({body:t,toY:function(e){t.scrollTop=e},getY:function(){return t.scrollTop},getHeight:function(){return Math.min(t.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(t){return t.offsetTop}},r,a)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var i="history"in window&&"pushState"in history,o=i&&"scrollRestoration"in history;o&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){o&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(t){t.state&&"zenscrollY"in t.state&&a.toY(t.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var t=a.setup().edgeOffset;if(t){var e=document.getElementById(window.location.href.split("#")[1]);if(e){var n=Math.max(0,a.getTopOf(e)-t),r=a.getY()-n;0<=r&&r<9&&window.scrollTo(0,n)}}}),9)}),!1);var s=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",(function(t){for(var e=t.target;e&&"A"!==e.tagName;)e=e.parentNode;if(!(!e||1!==t.which||t.shiftKey||t.metaKey||t.ctrlKey||t.altKey)){if(o){var n=history.state&&"object"===typeof history.state?history.state:{};n.zenscrollY=a.getY();try{history.replaceState(n,"")}catch(g){}}var r=e.getAttribute("href")||"";if(0===r.indexOf("#")&&!s.test(e.className)){var c=0,l=document.getElementById(r.substring(1));if("#"!==r){if(!l)return;c=a.getTopOf(l)}t.preventDefault();var u=function(){window.location=r},d=a.setup().edgeOffset;d&&(c=Math.max(0,c-d),i&&(u=function(){history.pushState({},"",r)})),a.toY(c,null,u)}}}),!1)}return a}(),void 0===(a="function"===typeof n?n.apply(e,r):n)||(t.exports=a)}}]);