let a=1,l;const u=()=>{var e=new Date(performance.timing.domLoading).getTime(),t=Date.now(),r=5*1e3,o=e+r;t>o&&location.reload()},f=e=>{const t=document.getElementsByTagName("head")[0];for(const r of e){for(const n of t.children)n instanceof HTMLScriptElement&&n.src.includes(r)&&t.removeChild(n);const o=document.createElement("script");o.src=r,t.appendChild(o)}},v=(e,t,r,o,n=!1)=>(t.viewMode==="docs"&&(n&&u(),window.clearTimeout(l),a<r?a+=1:(l=setTimeout(()=>{f(o)},1e3),a=1)),t.viewMode==="story"&&f(o),e()),h=()=>{const e=document.querySelector("header");e&&e.remove()},T=()=>{const e=document.querySelector("footer");e&&e.remove()},E=()=>{const e=document.querySelector("head");if(e){const r=Array.from(e.childNodes);let o=-1,n=-1;r.forEach((c,i)=>{var s,d;if(c.nodeType===Node.COMMENT_NODE){const m=c;((s=m.textContent)==null?void 0:s.trim())==="SB-START"?o=i:((d=m.textContent)==null?void 0:d.trim())==="SB-END"&&(n=i)}}),o!==-1&&n!==-1&&r.slice(o,n+1).forEach(c=>c.remove())}const t=document.getElementsByTagName("body").item(0);t==null||t.classList.remove("container")};export{T as a,v as b,E as c,h as r};
