window.handleCollapsibles=function(){[].slice.call(document.querySelectorAll(".collapsible")).forEach((e=>{const t=e.querySelector(".section-content");let s=e.querySelector('a[data-action="expand"]');s||((s=document.createElement("a")).href="#",s.dataset.action="expand",s.innerHTML="show more…",s.addEventListener("click",(t=>{t.preventDefault(),"expand"===s.dataset.action?(s.dataset.action="collapse",s.innerHTML="show less…",e.classList.remove("collapse")):(s.dataset.action="expand",s.innerHTML="show more…",e.classList.add("collapse")),this.scroll()}))),e.classList.add("collapse"),t.scrollHeight>t.offsetHeight?(e.classList.add("overflow"),e.appendChild(s)):(e.classList.remove("overflow"),s.parentNode&&e.removeChild(s))}))},window.request=function(e,t,s){return new Promise((function(o,i){var n=new XMLHttpRequest;n.open(e,t),n.onload=function(){this.status>=200&&this.status<300?o(n.responseText):i({status:this.status,statusText:n.responseText})},n.onerror=function(){i({status:this.status,statusText:n.statusText})},n.send(s)}))},window.requestGet=function(e){return window.request("GET",`http://localhost:${window.PORT}${e}`)},window.requestPost=function(e,t){const s=new FormData;for(const e in t)s.set(e,t[e])},window.showFeedbackFeedback=function(e,t,{confirmation:s}={}){let o=e.parentNode.querySelector(".feedback-feedback");o.classList.toggle("confirmation",s),o.classList.toggle("hint",!s),o.innerHTML=t},window.hideFeedbackFeedback=function(e){e.parentNode.querySelector(".feedback-feedback").classList.remove("hint")},window.handleExternalLinks=function(){[].slice.call(document.querySelectorAll("a.external_link")).forEach((e=>{e.href=e.getAttribute("href").replace(/^#/,"")}))},window.initDownloadProgress=function(){const e=document.querySelector(".download-kite"),t=document.querySelector("progress"),s=setInterval((()=>{requestGet("/install/progress").then((o=>{o=parseFloat(o),e.classList.toggle("hidden",-1===o||1===o),-1!==o&&(t.value=Math.round(100*o),1===o&&clearInterval(s))}))}),50)},window.submitEvent=function(e){const t=document.querySelector("form");return t.querySelector('input[name="event"]').value=e,request(t.method,t.action,new FormData(t)),!1};const iconDocs='',iconExamples='';window.jumpTo=function(e){const t=document.querySelector(e),s=document.querySelector(".sections-wrapper"),o=(s.getBoundingClientRect(),s.scrollTop,t.offsetTop);s.scrollTop=o-0},window.createJumpTo=function(){const e=document.querySelector(".examples-from-your-code")||document.querySelector(".how-to"),t=[];document.querySelector(".summary")&&t.push(`${iconDocs} Description`),e&&t.push(`${iconExamples} How to`),t.length>0&&(document.querySelector("footer .actions").innerHTML=`Jump to ${t.join(" ")}`)},window.StickyTitle=class{constructor(e,t){this.scrollContainer=t,this.titleHeight=40,this.stickies=[].slice.call(e).map((e=>{const t=document.createElement("div");return t.className="sticky",t.innerHTML=e.innerHTML,e.innerHTML="",e.appendChild(t),t.parentNode.style.height=this.titleHeight+"px",t.style.width="100%",t})),t.addEventListener("scroll",(e=>{this.scroll()})),this.stickies.forEach((e=>{e.addEventListener("mousewheel",(e=>{t.scrollTop+=e.deltaY}))})),this.scrollContainer.addEventListener("click",(e=>{this.stickies.some((t=>{const s=t.getBoundingClientRect();e.pageY>=s.top&&e.pageY{this.measureWidthAndHeight()})),this.scroll(),this.measureWidthAndHeight()}handleCollapsibles(){[].slice.call(this.scrollContainer.querySelectorAll(".collapsible")).forEach((e=>{const t=e.querySelector(".section-content");let s=e.querySelector('a[data-action="expand"]');s||((s=document.createElement("a")).href="#",s.dataset.action="expand",s.innerHTML="show more…",s.addEventListener("click",(t=>{t.preventDefault(),"expand"===s.dataset.action?(s.dataset.action="collapse",s.innerHTML="show less…",e.classList.remove("collapse")):(s.dataset.action="expand",s.innerHTML="show more…",e.classList.add("collapse")),this.scroll()}))),e.classList.add("collapse"),t.scrollHeight>t.offsetHeight?(e.classList.add("overflow"),e.appendChild(s)):(e.classList.remove("overflow"),s.parentNode&&e.removeChild(s))})),this.scroll()}measureWidthAndHeight(){null!=this.width&&null!=this.height&&this.width===this.scrollContainer.offsetWidth&&this.height===this.scrollContainer.offsetHeight||(this.width=this.scrollContainer.offsetWidth,this.height=this.scrollContainer.offsetHeight,this.compactMode=this.titleHeight*this.stickies.length+200>this.height,this.scrollContainer.classList.toggle("compact",this.compactMode),requestAnimationFrame((()=>this.scroll())))}dispose(){this.subscriptions.dispose(),this.stickies=null,this.scrollContainer=null}scrollTo(e){const t=this.scrollContainer.getBoundingClientRect(),s=this.scrollContainer.scrollTop,o=e.getBoundingClientRect().top+s-t.top,i=this.stickies.reduce(((e,i)=>i.parentNode.getBoundingClientRect().top+s-t.tope.classList.remove("fixed")));else{const e=this.scrollContainer.getBoundingClientRect(),t=this.scrollContainer.scrollTop+e.top,s=t+e.height;let o=t,i=s,n=this.stickies.slice();(n=(n=n.filter(((s,i)=>!(s.parentNode.getBoundingClientRect().top+t-e.top!(s.parentNode.getBoundingClientRect().bottom+t-e.top>i&&(s.classList.add("fixed"),s.style.top=e.height-(o+1)*this.titleHeight+"px",i-=this.titleHeight,1))))).forEach((e=>e.classList.remove("fixed")))}}};