System.register(["./p-D7_eHNTI.system.js"],(function(n){"use strict";var t;return{setters:[function(n){t=n.b}],execute:function(){var i=function(){function n(){this.x=undefined;this.y=undefined;this.disabled=false}n.disableSmoothScrolling=function(){this.setScrollBehavior("auto")};n.enableSmoothScrolling=function(){this.setScrollBehavior("smooth")};n.setScrollBehavior=function(n){var i;if(t.hasDocument){var e=document;var o=document.body;o.style.scrollBehavior=n;var u=(i=e.firstChild)===null||i===void 0?void 0:i.nextSibling;var s=getComputedStyle(u);if(s.scrollBehavior==="smooth"){u.style.scrollBehavior=n}}};n.prototype.connect=function(n){if(n){this.target=n}else{if(t.hasDocument){this.target=document}}onscroll=null;onkeydown=null};n.prototype.disconnect=function(){if(this.disabled){this.enable()}this.target=undefined;onscroll=null;onkeydown=null};n.prototype.isDisabled=function(){return this.disabled};n.prototype.enable=function(){if(this.target){if(t.hasWindow&&t.hasDocument){document.documentElement.style.overflow="";document.body.classList.remove("noscroll");document.body.style.position="";document.body.style.top="";document.body.style.width="";if(this.x!==undefined&&this.y!==undefined){window.scrollTo(this.x,this.y);this.x=undefined;this.y=undefined}this.disabled=false}}};n.prototype.disable=function(){if(!this.disabled&&this.target){if(t.hasWindow&&t.hasDocument){this.x=window.pageXOffset||document.documentElement.scrollLeft;this.y=window.pageYOffset||document.documentElement.scrollTop;document.documentElement.style.overflow="hidden";document.body.classList.add("noscroll");document.body.style.position="fixed";document.body.style.top="-".concat(this.y,"px");document.body.style.width="100%";this.disabled=true}}};return n}();n("B",i)}}}));