PageSourceSearch

https://instacharts.io/docs/_astro/hoisted.E4rJnteH.js

js instacharts.io collected 2026-10-05 19:01:06 UTC 8,851 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/ui-core.Bwi3Gfeq.js","_astro/Tabs.astro_astro_type_script_index_0_lang.3nBd5krW.js"])))=>i.map(i=>d[i]);
2import"./Tabs.astro_astro_type_script_index_0_lang.3nBd5krW.js";const S=document.getElementById("starlight__sidebar"),v=S?.querySelector("sl-sidebar-state-persist"),b="sl-sidebar-state",w=()=>{let n=[];const e=v?.dataset.hash||"";try{const t=sessionStorage.getItem(b),o=JSON.parse(t||"{}");Array.isArray(o.open)&&o.hash===e&&(n=o.open)}catch{}return{hash:e,open:n,scroll:S?.scrollTop||0}},L=n=>{try{sessionStorage.setItem(b,JSON.stringify(n))}catch{}},T=()=>L(w()),H=(n,e)=>{const t=w();t.open[e]=n,L(t)};v?.addEventListener("click",n=>{if(!(n.target instanceof Element))return;const e=n.target.closest("summary")?.closest("details");if(!e)return;const t=e.querySelector("sl-sidebar-restore"),o=parseInt(t?.dataset.index||"");isNaN(o)||H(!e.open,o)});addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&T()});addEventListener("pageHide",T);function f(n){n.classList.add("copied"),window.setTimeout(function(){n.classList.remove("copied")},1500)}function M(n){const e=n.getAttribute("data-anchor-id"),t=location.origin+location.pathname+"#"+e;if(history.replaceState(null,"","#"+e),navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(function(){f(n)}).catch(function(){f(n)});else{const o=document.createElement("textarea");o.value=t,o.style.position="fixed",o.style.opacity="0",document.body.appendChild(o),o.select();try{document.execCommand("copy")}catch{}document.body.removeChild(o),f(n)}}function k(){document.querySelectorAll(".sl-markdown-content :is(h1, h2, h3, h4, h5, h6)[id]").forEach(function(e){if(e.querySelector(".heading-anchor"))return;const t=document.createElement("a");t.className="heading-anchor",t.href="#"+e.id,t.setAttribute("data-anchor-id",e.id),t.setAttribute("aria-label","Copy link to this section"),t.title="Copy link to this section",t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 15l6 -6"/><path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"/><path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"/></svg>',t.addEventListener("click",function(o){o.preventDefault(),M(t)}),e.appendChild(t)})}k();document.addEventListener("astro:page-load",k);class A extends HTMLElement{constructor(){super();const e=this.querySelector("select");e&&e.addEventListener("change",t=>{t.currentTarget instanceof HTMLSelectElement&&(window.location.pathname=t.currentTarget.value)})}}customElements.define("starlight-lang-select",A);const _="modulepreload",P=function(n){return"/docs/"+n},y={},O=function(e,t,o){let u=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");u=Promise.allSettled(t.map(l=>{if(l=P(l),l in y)return;y[l]=!0;const s=l.endsWith(".css"),h=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const i=document.createElement("link");if(i.rel=s?"stylesheet":_,s||(i.as="script"),i.crossOrigin="",i.href=l,c&&i.setAttribute("nonce",c),document.head.appendChild(i),s)return new Promise((r,m)=>{i.addEventListener("load",r),i.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function d(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return u.then(a=>{for(const c of a||[])c.status==="rejected"&&d(c.reason);return e().catch(d)})};class N extends HTMLElement{constructor(){super();const e=this.querySelector("button[data-open-modal]"),t=this.querySelector("button[data-close-modal]"),o=this.querySelector("dialog"),u=this.querySelector(".dialog-frame"),d=r=>{("href"in(r.target||{})||document.body.contains(r.target)&&!u.contains(r.target))&&c()},a=r=>{o.showModal(),document.body.toggleAttribute("data-search-modal-open",!0),this.querySelector("input")?.focus(),r?.stopPropagation(),window.addEventListener("click",d)},c=()=>o.close();e.addEventListener("click",a),e.disabled=!1,t.addEventListener("click",c),o.addEventListener("close",()=>{document.body.toggleAttribute("data-search-modal-open",!1),window.removeEventListener("click",d)}),window.addEventListener("keydown",r=>{(r.metaKey===!0||r.ctrlKey===!0)&&r.key==="k"&&(o.open?c():a(),r.preventDefault())});let l={};try{l=JSON.parse(this.dataset.translations||"{}")}catch{}const i=this.dataset.stripTrailingSlash!==void 0?r=>r.replace(/(.)\/(#.*)?$/,"$1$2"):r=>r;window.addEventListener("DOMContentLoaded",()=>{(window.requestIdleCallback||(m=>setTimeout(m,1)))(async()=>{const{PagefindUI:m}=await O(async()=>{const{PagefindUI:g}=await import("./ui-core.Bwi3Gfeq.js");return{PagefindUI:g}},__vite__mapDeps([0,1]));new m({element:"#starlight__search",baseUrl:"/docs",bundlePath:"/docs".replace(/\/$/,"")+"/pagefind/",showImages:!1,translations:l,showSubResults:!0,processResult:g=>{g.url=i(g.url),g.sub_results=g.sub_results.map(p=>(p.url=i(p.url),p))}})})})}}
2customElements.define("site-search",N);const x="starlight-theme",C=n=>n==="auto"||n==="dark"||n==="light"?n:"auto",q=()=>C(typeof localStorage<"u"&&localStorage.getItem(x));function R(n){typeof localStorage<"u"&&localStorage.setItem(x,n==="light"||n==="dark"?n:"")}const $=()=>matchMedia("(prefers-color-scheme: light)").matches?"light":"dark";function E(n){StarlightThemeProvider.updatePickers(n),document.documentElement.dataset.theme=n==="auto"?$():n,R(n)}matchMedia("(prefers-color-scheme: light)").addEventListener("change",()=>{q()==="auto"&&E("auto")});class B extends HTMLElement{constructor(){super(),E(q()),this.querySelector("select")?.addEventListener("change",e=>{e.currentTarget instanceof HTMLSelectElement&&E(C(e.currentTarget.value))})}}customElements.define("starlight-theme-select",B);class U extends HTMLElement{constructor(){super(),this.btn=this.querySelector("button"),this.btn.addEventListener("click",()=>this.toggleExpanded());const e=this.closest("nav");e&&e.addEventListener("keyup",t=>this.closeOnEscape(t))}setExpanded(e){this.setAttribute("aria-expanded",String(e)),document.body.toggleAttribute("data-mobile-menu-expanded",e)}toggleExpanded(){this.setExpanded(this.getAttribute("aria-expanded")!=="true")}closeOnEscape(e){e.code==="Escape"&&(this.setExpanded(!1),this.btn.focus())}}customElements.define("starlight-menu-button",U);const D="_top";class I extends HTMLElement{constructor(){super(),this._current=this.querySelector('a[aria-current="true"]'),this.minH=parseInt(this.dataset.minH||"2",10),this.maxH=parseInt(this.dataset.maxH||"3",10),this.onIdle=e=>(window.requestIdleCallback||(t=>setTimeout(t,1)))(e),this.init=()=>{const e=[...this.querySelectorAll("a")],t=s=>{if(s instanceof HTMLHeadingElement){if(s.id===D)return!0;const h=s.tagName[1];if(h){const i=parseInt(h,10);if(i>=this.minH&&i<=this.maxH)return!0}}return!1},o=s=>{if(!s)return null;const h=s;for(;s;){if(t(s))return s;for(s=s.previousElementSibling;s?.lastElementChild;)s=s.lastElementChild;const i=o(s);if(i)return i}return o(h.parentElement)},u=s=>{for(const{isIntersecting:h,target:i}of s){if(!h)continue;const r=o(i);if(!r)continue;const m=e.find(g=>g.hash==="#"+encodeURIComponent(r.id));if(m){this.current=m;break}}},d=document.querySelectorAll("main [id], main [id] ~ *, main .content > *");let a;const c=()=>{a||(a=new IntersectionObserver(u,{rootMargin:this.getRootMargin()}),d.forEach(s=>a.observe(s)))};c();let l;window.addEventListener("resize",()=>{a&&(a.disconnect(),a=void 0),clearTimeout(l),l=setTimeout(()=>this.onIdle(c),200)})},this.onIdle(()=>this.init())}set current(e){e!==this._current&&(this._current&&this._current.removeAttribute("aria-current"),e.setAttribute("aria-current","true"),this._current=e)}getRootMargin(){const e=document.querySelector("header")?.getBoundingClientRect().height||0,t=this.querySelector("summary")?.getBoundingClientRect().height||0,o=e+t+32,u=o+53,d=document.documentElement.clientHeight;return`-${o}px 0% ${u-d}px`}}customElements.define("starlight-toc",I);class K extends I{set current(e){super.current=e;const t=this.querySelector(".display-current");t&&(t.textContent=e.textContent)}constructor(){super();const e=this.querySelector("details");if(!e)return;const t=()=>{e.open=!1};e.querySelectorAll("a").forEach(o=>{o.addEventListener("click",t)}),window.addEventListener("click",o=>{e.contains(o.target)||t()}),window.addEventListener("keydown",o=>{if(o.key==="Escape"&&e.open){const u=e.contains(document.activeElement);if(t(),u){const d=e.querySelector("summary");d&&d.focus()}}})}}customElements.define("mobile-starlight-toc",K);export{O as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.