let scrollpageobjs=document.getElementsByClassName("gspb_pagenav");for(let i=0;i<scrollpageobjs.length;i++){let t=scrollpageobjs[i],e=t.dataset.direction,s=t.closest(".gspb_pagenav_wrap");(document.getElementById("smooth-wrapper")||document.getElementById("gspb-smooth-content"))&&(s=document.body);let a=t.querySelectorAll(".gspb_pagenav > .gspb_row, .gspb_pagenav > .gspb_container");if(a.length>0)for(let o=0;o<a.length;o++){let l=a[o],c="",r=l.firstChild,n=null!=r.getAttribute("id")?r.getAttribute("id"):l.getAttribute("id");"tabs"==e?(c=s.querySelectorAll(".gspb_dotnav_tab_item")[o]).setAttribute("data-scrollto",n):((c=document.createElement("div")).setAttribute("data-scrollto",n),c.classList.add("gspb_dotnav_list_item"),s.querySelector(".gspb_dotnav_list").appendChild(c)),c.addEventListener("click",function(e){void 0!==t.dataset.snap&&t.dataset.snap?(location.href="#",location.href="#"+n):window.scroll({top:l.getBoundingClientRect().top+window.scrollY,behavior:"smooth"})},!1)}void 0!==t.dataset.snap&&t.dataset.snap?t.addEventListener("scroll",function(a){let o=t.scrollTop+1;s.querySelectorAll(".gspb_pagenav > .gspb_row, .gspb_pagenav > .gspb_container").forEach(function(t,a){let l=t.firstChild,c=null!=l.getAttribute("id")?l.getAttribute("id"):t.getAttribute("id"),r=t.offsetTop,n=s.querySelector("div[data-scrollto="+c+"]");o>=r&&o<r+t.offsetHeight?(n.classList.contains("active")||(n.classList.add("active"),"tabs"==e&&n.closest(".gspb_dotnav_tabs_wrap").scrollTo({left:n.offsetLeft,behavior:"smooth"})),t.classList.contains("active")||t.classList.add("active")):t.classList.contains("active")&&(t.classList.remove("active"),n.classList.remove("active"))})}):window.addEventListener("scroll",function(a){let o=window.scrollY+1;s.querySelectorAll(".gspb_pagenav > .gspb_row, .gspb_pagenav > .gspb_container").forEach(function(a,l){let c=a.firstChild,r=null!=c.getAttribute("id")?c.getAttribute("id"):a.getAttribute("id"),n="tabs"==e?a.offsetTop+t.parentNode.offsetTop:a.offsetTop,d=s.querySelector("div[data-scrollto="+r+"]"),g=d.querySelector(".gspb_dotnav_tab_accent");if(g){let p=(o-n)/a.offsetHeight;p<.02&&(p=0),p>1&&(p=1),g.style.transform="scaleX("+p+")"}o>=n&&o<n+a.offsetHeight?(d.classList.contains("active")||(d.classList.add("active"),"tabs"==e&&d.closest(".gspb_dotnav_tabs_wrap").scrollTo({left:d.offsetLeft,behavior:"smooth"})),a.classList.contains("active")||a.classList.add("active")):a.classList.contains("active")&&(a.classList.remove("active"),d.classList.remove("active"))})})}