import{w as ot,s as Ee,f as k,g as E,h as D,d as p,j as d,i as F,E as G,N as qe,e as Me,K as ye,L as Se,x as ne,Y as lt,o as ze,b as it,G as se,z as He,a as K,c as V,D as X,k as Q,y as g,A as je,B as Fe,C as Ke,P as Ve,l as x,m as ee,n as _e,J as rt,u as Ie,Z as ct,t as Be,p as tt,H as nt,I as st,_ as Re,S as ut,r as $e}from"../chunks/scheduler.68fffe69.js";import{S as Ae,i as Ce,g as Pe,t as R,c as Le,a as H,b as ue,d as fe,m as de,k as le,e as he}from"../chunks/index.51765ecf.js";import{d as pe,I as Ne,a as ft,g as at,c as dt,f as ht,e as Ue}from"../chunks/focus-outside.ffc586cb.js";import{p as Oe}from"../chunks/stores.10a47cd8.js";import{r as pt}from"../chunks/root-scroll.b2f8f13b.js";import"../chunks/Banner.300817dc.js";import{r as _t}from"../chunks/paths.bd82d881.js";import{a as ae,o as We,t as mt,r as gt,n as vt,m as wt,e as Ge}from"../chunks/theme.3968b303.js";/* empty css                                                      */function ke(s,{delay:e=0,duration:t=400,easing:a=ot}={}){const l=+getComputedStyle(s).opacity;return{delay:e,duration:t,easing:a,css:n=>`opacity: ${n*l}`}}function Ye(s,{delay:e=0,duration:t=400,easing:a=pe,axis:l="y"}={}){const n=getComputedStyle(s),o=+n.opacity,c=l==="y"?"height":"width",u=parseFloat(n[c]),h=l==="y"?["top","bottom"]:["left","right"],i=h.map(b=>`${b[0].toUpperCase()}${b.slice(1)}`),r=parseFloat(n[`padding${i[0]}`]),N=parseFloat(n[`padding${i[1]}`]),y=parseFloat(n[`margin${i[0]}`]),B=parseFloat(n[`margin${i[1]}`]),C=parseFloat(n[`border${i[0]}Width`]),w=parseFloat(n[`border${i[1]}Width`]);return{delay:e,duration:t,easing:a,css:b=>`overflow: hidden;opacity: ${Math.min(b*20,1)*o};${c}: ${b*u}px;padding-${h[0]}: ${b*r}px;padding-${h[1]}: ${b*N}px;margin-${h[0]}: ${b*y}px;margin-${h[1]}: ${b*B}px;border-${h[0]}-width: ${b*C}px;border-${h[1]}-width: ${b*w}px;`}}function bt(s){let e,t,a,l;return t=new Ne({props:{name:"copy-to-clipboard-empty"}}),{c(){e=k("span"),ue(t.$$.fragment),this.h()},l(n){e=E(n,"SPAN",{class:!0});var o=D(e);fe(t.$$.fragment,o),o.forEach(p),this.h()},h(){d(e,"class","svelte-4cj3ib")},m(n,o){F(n,e,o),de(t,e,null),l=!0},i(n){l||(H(t.$$.fragment,n),n&&qe(()=>{l&&(a||(a=le(e,ke,{easing:pe,duration:400},!0)),a.run(1))}),l=!0)},o(n){R(t.$$.fragment,n),n&&(a||(a=le(e,ke,{easing:pe,duration:400},!1)),a.run(0)),l=!1},d(n){n&&p(e),he(t),n&&a&&a.end()}}}function yt(s){let e,t,a,l;return t=new Ne({props:{name:"copy-to-clipboard-filled"}}),{c(){e=k("span"),ue(t.$$.fragment),this.h()},l(n){e=E(n,"SPAN",{class:!0});var o=D(e);fe(t.$$.fragment,o),o.forEach(p),this.h()},h(){d(e,"class","svelte-4cj3ib")},m(n,o){F(n,e,o),de(t,e,null),l=!0},i(n){l||(H(t.$$.fragment,n),n&&qe(()=>{l&&(a||(a=le(e,ke,{easing:pe,duration:400},!0)),a.run(1))}),l=!0)},o(n){R(t.$$.fragment,n),n&&(a||(a=le(e,ke,{easing:pe,duration:400},!1)),a.run(0)),l=!1},d(n){n&&p(e),he(t),n&&a&&a.end()}}}function kt(s){let e,t,a,l,n,o;const c=[yt,bt],u=[];function h(i,r){return i[0]?0:1}return t=h(s),a=u[t]=c[t](s),{c(){e=k("button"),a.c(),this.h()},l(i){e=E(i,"BUTTON",{id:!0,class:!0});var r=D(e);a.l(r),r.forEach(p),this.h()},h(){d(e,"id","copy-to-clipboard-button"),d(e,"class","svelte-4cj3ib")},m(i,r){F(i,e,r),u[t].m(e,null),l=!0,n||(o=G(e,"click",s[1]),n=!0)},p(i,[r]){let N=t;t=h(i),t!==N&&(Pe(),R(u[N],1,1,()=>{u[N]=null}),Le(),a=u[t],a||(a=u[t]=c[t](i),a.c()),H(a,1),a.m(e,null))},i(i){l||(H(a),l=!0)},o(i){R(a),l=!1},d(i){i&&p(e),u[t].d(),n=!1,o()}}}function Et(s,e,t){let{code:a}=e,l=!1;async function n(){try{await navigator.clipboard.writeText(a)}catch{const o=document.createElement("input");o.type="text",o.disabled=!0,o.style.cssText="position: fixed;z-index: -100;pointer-events: none;opacity: 0;",o.value=a,document.body.appendChild(o),o.click(),o.select(),document.execCommand("copy"),document.body.removeChild(o)}finally{t(0,l=!0),setTimeout(()=>{t(0,l=!1)},1e3)}}return s.$$set=o=>{"code"in o&&t(2,a=o.code)},[l,n,a]}class St extends Ae{constructor(e){super(),Ce(this,e,Et,kt,Ee,{code:2})}}const Te=new WeakMap,At=s=>{let e;function t(){var n,o;e=s.querySelectorAll(".copy-code-block");for(const c of e){const u=((n=c.parentElement)==null?void 0:n.classList.toString())??"";if(/ts-block/.test(u))continue;let h="";for(const r of((o=c.querySelector("code"))==null?void 0:o.childNodes)??[])r.nodeType===Node.ELEMENT_NODE&&r.classList.contains("deleted")||(h+=r.textContent);if(!h)continue;const i=/code-block/.test(u)?c.parentElement:c;i&&Te.set(c,new St({target:i,props:{code:h}}))}}function a(){var n;for(const o of e)(n=Te.get(o))==null||n.$destroy(),Te.delete(o)}const l=Oe.subscribe(t);return{update:t,destroy(){a(),l()}}},{window:De}=at;function Ze(s,e,t){const a=s.slice();return a[35]=e[t].title,a[36]=e[t].slug,a}function Je(s){let e,t,a,l,n,o,c,u,h,i,r,N,y,B,C;const w=s[19].default,b=He(w,s,s[18],null),_=b||Ct();c=new Ne({props:{name:"chevron-down"}});const z=s[19].default,M=He(z,s,s[18],null),T=M||Nt();let A=(!s[7]||s[7]&&s[1])&&Xe(s);return{c(){e=k("aside"),t=k("h2"),a=k("button"),l=k("span"),_&&_.c(),n=K(),o=k("span"),ue(c.$$.fragment),u=K(),h=k("span"),T&&T.c(),i=K(),A&&A.c(),this.h()},l(m){e=E(m,"ASIDE",{class:!0});var v=D(e);t=E(v,"H2",{class:!0});var q=D(t);a=E(q,"BUTTON",{class:!0,"aria-expanded":!0});var P=D(a);l=E(P,"SPAN",{class:!0});var te=D(l);_&&_.l(te),te.forEach(p),n=V(P),o=E(P,"SPAN",{class:!0});var Y=D(o);fe(c.$$.fragment,Y),Y.forEach(p),P.forEach(p),u=V(q),h=E(q,"SPAN",{class:!0});var Z=D(h);T&&T.l(Z),Z.forEach(p),q.forEach(p),i=V(v),A&&A.l(v),v.forEach(p),this.h()},h(){d(l,"class","h2 svelte-1wvrrw"),d(o,"class","expand-icon svelte-1wvrrw"),X(o,"inverted",s[1]),d(a,"class","heading svelte-1wvrrw"),d(a,"aria-expanded",s[1]),d(h,"class","h2 desktop-only-heading svelte-1wvrrw"),d(t,"class","svelte-1wvrrw"),d(e,"class","on-this-page svelte-1wvrrw"),X(e,"mobile",s[7]),X(e,"dark",s[8].current==="dark"),Q(e,"z-index",s[5])},m(m,v){F(m,e,v),g(e,t),g(t,a),g(a,l),_&&_.m(l,null),g(a,n),g(a,o),de(c,o,null),g(t,u),g(t,h),T&&T.m(h,null),g(e,i),A&&A.m(e,null),s[25](e),y=!0,B||(C=[G(a,"click",s[21]),ye(r=dt.call(null,e,s[26])),ye(N=ht.call(null,e,s[27]))],B=!0)},p(m,v){b&&b.p&&(!y||v[0]&262144)&&je(b,w,m,m[18],y?Ke(w,m[18],v,null):Fe(m[18]),null),(!y||v[0]&2)&&X(o,"inverted",m[1]),(!y||v[0]&2)&&d(a,"aria-expanded",m[1]),M&&M.p&&(!y||v[0]&262144)&&je(M,z,m,m[18],y?Ke(z,m[18],v,null):Fe(m[18]),null),!m[7]||m[7]&&m[1]?A?(A.p(m,v),v[0]&130&&H(A,1)):(A=Xe(m),A.c(),H(A,1),A.m(e,null)):A&&(Pe(),R(A,1,1,()=>{A=null}),Le()),r&&Ve(r.update)&&v[0]&130&&r.update.call(null,m[26]),N&&Ve(N.update)&&v[0]&130&&N.update.call(null,m[27]),(!y||v[0]&128)&&X(e,"mobile",m[7]),(!y||v[0]&256)&&X(e,"dark",m[8].current==="dark"),v[0]&32&&Q(e,"z-index",m[5])},i(m){y||(H(_,m),H(c.$$.fragment,m),H(T,m),H(A),y=!0)},o(m){R(_,m),R(c.$$.fragment,m),R(T,m),R(A),y=!1},d(m){m&&p(e),_&&_.d(m),he(c),T&&T.d(m),A&&A.d(),s[25](null),B=!1,Se(C)}}}function Ct(s){let e;return{c(){e=x("On this page")},l(t){e=ee(t,"On this page")},m(t,a){F(t,e,a)},d(t){t&&p(e)}}}function Nt(s){let e;return{c(){e=x("On this page")},l(t){e=ee(t,"On this page")},m(t,a){F(t,e,a)},d(t){t&&p(e)}}}function Xe(s){let e,t,a,l,n=s[0].title+"",o,c,u,h,i,r,N,y,B=Ge(s[0].sections),C=[];for(let w=0;w<B.length;w+=1)C[w]=Qe(Ze(s,B,w));return{c(){e=k("nav"),t=k("ul"),a=k("li"),l=k("a"),o=x(n),h=K();for(let w=0;w<C.length;w+=1)C[w].c();this.h()},l(w){e=E(w,"NAV",{"aria-label":!0,class:!0});var b=D(e);t=E(b,"UL",{class:!0});var _=D(t);a=E(_,"LI",{class:!0});var z=D(a);l=E(z,"A",{href:!0,"aria-current":!0,class:!0});var M=D(l);o=ee(M,n),M.forEach(p),z.forEach(p),h=V(_);for(let T=0;T<C.length;T+=1)C[T].l(_);_.forEach(p),b.forEach(p),this.h()},h(){d(l,"href",c=s[0].path),d(l,"aria-current",u=s[3]===""?"page":!1),d(l,"class","svelte-1wvrrw"),d(a,"class","svelte-1wvrrw"),d(t,"class","svelte-1wvrrw"),d(e,"aria-label","On this page"),d(e,"class","svelte-1wvrrw")},m(w,b){F(w,e,b),g(e,t),g(t,a),g(a,l),g(l,o),g(t,h);for(let _=0;_<C.length;_+=1)C[_]&&C[_].m(t,null);r=!0,N||(y=[G(l,"click",s[15]),G(e,"introstart",s[22]),G(e,"outrostart",s[23]),G(e,"outroend",s[24])],N=!0)},p(w,b){if(s=w,(!r||b[0]&1)&&n!==(n=s[0].title+"")&&_e(o,n),(!r||b[0]&1&&c!==(c=s[0].path))&&d(l,"href",c),(!r||b[0]&8&&u!==(u=s[3]===""?"page":!1))&&d(l,"aria-current",u),b[0]&32777){B=Ge(s[0].sections);let _;for(_=0;_<B.length;_+=1){const z=Ze(s,B,_);C[_]?C[_].p(z,b):(C[_]=Qe(z),C[_].c(),C[_].m(t,null))}for(;_<C.length;_+=1)C[_].d(1);C.length=B.length}},i(w){r||(w&&qe(()=>{r&&(i||(i=le(e,Ye,{axis:"y",easing:Ue,duration:s[9]?0:400},!0)),i.run(1))}),r=!0)},o(w){w&&(i||(i=le(e,Ye,{axis:"y",easing:Ue,duration:s[9]?0:400},!1)),i.run(0)),r=!1},d(w){w&&p(e),rt(C,w),w&&i&&i.end(),N=!1,Se(y)}}}function Qe(s){let e,t,a=s[35]+"",l,n,o,c,u,h;return{c(){e=k("li"),t=k("a"),l=x(a),c=K(),this.h()},l(i){e=E(i,"LI",{class:!0});var r=D(e);t=E(r,"A",{href:!0,"aria-current":!0,class:!0});var N=D(t);l=ee(N,a),N.forEach(p),c=V(r),r.forEach(p),this.h()},h(){d(t,"href",n=`#${s[36]}`),d(t,"aria-current",o=`#${s[36]}`===s[3]?"page":!1),d(t,"class","svelte-1wvrrw"),d(e,"class","svelte-1wvrrw")},m(i,r){F(i,e,r),g(e,t),g(t,l),g(e,c),u||(h=G(t,"click",s[15]),u=!0)},p(i,r){r[0]&1&&a!==(a=i[35]+"")&&_e(l,a),r[0]&1&&n!==(n=`#${i[36]}`)&&d(t,"href",n),r[0]&9&&o!==(o=`#${i[36]}`===i[3]?"page":!1)&&d(t,"aria-current",o)},d(i){i&&p(e),u=!1,h()}}}function Tt(s){let e,t,a,l,n=(!s[7]||s[7]&&s[0].sections.length>0)&&Je(s);return{c(){n&&n.c(),e=Me()},l(o){n&&n.l(o),e=Me()},m(o,c){n&&n.m(o,c),F(o,e,c),t=!0,a||(l=[ye(pt.call(null,De,s[13])),G(De,"resize",s[12]),G(De,"hashchange",s[20])],a=!0)},p(o,c){!o[7]||o[7]&&o[0].sections.length>0?n?(n.p(o,c),c[0]&129&&H(n,1)):(n=Je(o),n.c(),H(n,1),n.m(e.parentNode,e)):n&&(Pe(),R(n,1,1,()=>{n=null}),Le())},i(o){t||(H(n),t=!0)},o(o){R(n),t=!1},d(o){o&&p(e),n&&n.d(o),a=!1,Se(l)}}}function Dt(s,e,t){let a,l,n,o,c,u,h=Ie,i=()=>(h(),h=ct(a,f=>t(7,u=f)),a),r,N,y;ne(s,ae,f=>t(1,n=f)),ne(s,Oe,f=>t(2,o=f)),ne(s,We,f=>t(32,c=f)),ne(s,mt,f=>t(8,r=f)),ne(s,gt,f=>t(9,N=f)),ne(s,vt,f=>t(10,y=f)),s.$$.on_destroy.push(()=>h());let{$$slots:B={},$$scope:C}=e,{details:w}=e,{orientation:b="auto"}=e;const _=lt();let z="",M=0,T,A,m=[],v;const q={BASE:2,OPEN:101};let P=q.BASE;ze(async()=>{await document.fonts.ready,Y(),Z()}),it(()=>{if(!T)return;const f=v==null?void 0:v.querySelector(".active");if(f){const{top:I,bottom:U}=f.getBoundingClientRect(),J=100,ce=window.innerHeight-100;I>ce?v.scrollBy({top:I-ce,left:0,behavior:"smooth"}):U<J&&v.scrollBy({top:U-J,left:0,behavior:"smooth"})}}),ft(()=>{Y(),Z(),se(ae,n=!1,n)});async function te(){{const f=o.url.hash.replace(/^#/,"");await Be();const I=document.getElementById(f);I==null||I.scrollIntoView({behavior:"auto",block:"start"})}}async function Y(){const f=document.querySelector(".content");if(!f)return;T=f;const{top:I}=T.getBoundingClientRect();A=T.querySelectorAll("h2[id]"),m=Array.from(A).map(U=>{const J=getComputedStyle(U);return U.getBoundingClientRect().top-parseFloat(J.scrollMarginTop)-I}),M=window.innerHeight}function Z(){if(!T)return;const{top:f,bottom:I}=T.getBoundingClientRect();let U=A.length;for(;U--;)if(I-M<50||m[U]+f<100){const J=A[U];t(3,z=`#${J.id}`);return}t(3,z="")}function $(f){setTimeout(()=>{t(3,z=f.hash)}),window.addEventListener("scroll",()=>{t(3,z=f.hash)},{once:!0})}function W(){se(ae,n=!1,n),_("select")}const me=()=>$(o.url),ie=()=>se(ae,n=!n,n),j=()=>n&&t(5,P=q.OPEN),re=async()=>{await Be(),!n&&y&&t(5,P=q.BASE)},ge=()=>!n&&t(5,P=q.BASE);function L(f){tt[f?"unshift":"push"](()=>{v=f,t(4,v)})}const O=()=>u&&se(ae,n=!1,n),S=()=>u&&se(ae,n=!1,n);return s.$$set=f=>{"details"in f&&t(0,w=f.details),"orientation"in f&&t(16,b=f.orientation),"$$scope"in f&&t(18,C=f.$$scope)},s.$$.update=()=>{s.$$.dirty[0]&65536&&i(t(6,a=b==="auto"?wt("(max-width: 1200px)"):_t(b==="inline"))),s.$$.dirty[0]&4&&t(17,l=o.url.pathname),s.$$.dirty[0]&131072&&te(),s.$$.dirty[0]&2&&se(We,c=n,c)},[w,n,o,z,v,P,a,u,r,N,y,q,Y,Z,$,W,b,l,C,B,me,ie,j,re,ge,L,O,S]}class It extends Ae{constructor(e){super(),Ce(this,e,Dt,Tt,Ee,{details:0,orientation:16},null,[-1,-1])}}function Bt(s){let e,t,a,l,n=`${s[1]}px`,o=`${s[2]}px`,c=`${Math.min(-10,window.innerWidth-(s[1]+s[4]+10))}px`,u,h;return{c(){e=k("div"),t=k("div"),a=k("span"),l=new nt(!1),this.h()},l(i){e=E(i,"DIV",{role:!0,class:!0});var r=D(e);t=E(r,"DIV",{class:!0});var N=D(t);a=E(N,"SPAN",{});var y=D(a);l=st(y,!1),y.forEach(p),N.forEach(p),r.forEach(p),this.h()},h(){l.a=null,d(t,"class","tooltip svelte-cee90x"),d(e,"role","tooltip"),d(e,"class","tooltip-container svelte-cee90x"),Q(e,"left",n),Q(e,"top",o),Q(e,"--offset",c)},m(i,r){F(i,e,r),g(e,t),g(t,a),l.m(s[0],a),s[7](t),u||(h=[G(e,"mouseenter",s[5]),G(e,"mouseleave",s[6])],u=!0)},p(i,[r]){r&1&&l.p(i[0]),r&2&&n!==(n=`${i[1]}px`)&&Q(e,"left",n),r&4&&o!==(o=`${i[2]}px`)&&Q(e,"top",o),r&18&&c!==(c=`${Math.min(-10,window.innerWidth-(i[1]+i[4]+10))}px`)&&Q(e,"--offset",c)},i:Ie,o:Ie,d(i){i&&p(e),s[7](null),u=!1,Se(h)}}}function qt(s,e,t){let{html:a=""}=e,{x:l=0}=e,{y:n=0}=e,o=1,c;function u(r){Re.call(this,s,r)}function h(r){Re.call(this,s,r)}function i(r){tt[r?"unshift":"push"](()=>{c=r,t(3,c)})}return s.$$set=r=>{"html"in r&&t(0,a=r.html),"x"in r&&t(1,l=r.x),"y"in r&&t(2,n=r.y)},s.$$.update=()=>{s.$$.dirty&9&&a&&c&&Be().then(()=>{t(4,o=c.getBoundingClientRect().width)})},[a,l,n,c,o,u,h,i]}class zt extends Ae{constructor(e){super(),Ce(this,e,qt,Bt,Ee,{html:0,x:1,y:2})}}function Pt(){ze(()=>{let s,e;function t(l){const n=l.target;if(n.tagName==="DATA-LSP"){clearTimeout(e),s||(s=new zt({target:document.body}),s.$on("mouseenter",()=>{clearTimeout(e)}),s.$on("mouseleave",()=>{clearTimeout(e),s==null||s.$destroy(),s=null}));const o=n==null?void 0:n.getBoundingClientRect(),c=n==null?void 0:n.getAttribute("lsp"),u=(o.left+o.right)/2+window.scrollX,h=o.top+window.scrollY;c&&s.$set({html:c,x:u,y:h})}}function a(l){l.target.tagName==="DATA-LSP"&&(e=setTimeout(()=>{s==null||s.$destroy(),s=null},200))}return window.addEventListener("mouseover",t),window.addEventListener("mouseout",a),()=>{window.removeEventListener("mouseover",t),window.removeEventListener("mouseout",a)}})}const{document:oe}=at;function xe(s){let e,t=s[2].title+"",a,l;return{c(){e=k("a"),a=x(t),this.h()},l(n){e=E(n,"A",{href:!0});var o=D(e);a=ee(o,t),o.forEach(p),this.h()},h(){d(e,"href",l=s[2].path)},m(n,o){F(n,e,o),g(e,a)},p(n,o){o&4&&t!==(t=n[2].title+"")&&_e(a,t),o&4&&l!==(l=n[2].path)&&d(e,"href",l)},d(n){n&&p(e)}}}function et(s){let e,t=s[1].title+"",a,l;return{c(){e=k("a"),a=x(t),this.h()},l(n){e=E(n,"A",{href:!0});var o=D(e);a=ee(o,t),o.forEach(p),this.h()},h(){d(e,"href",l=s[1].path)},m(n,o){F(n,e,o),g(e,a)},p(n,o){o&2&&t!==(t=n[1].title+"")&&_e(a,t),o&2&&l!==(l=n[1].path)&&d(e,"href",l)},d(n){n&&p(e)}}}function Lt(s){let e,t,a,l,n,o,c,u,h,i=s[0].page.title+"",r,N,y,B,C,w,b,_,z,M,T,A=s[0].page.content+"",m,v,q,P,te="previous",Y,Z,$,W,me="next",ie,j,re,ge;oe.title=e=s[0].page.title+" • Docs • SvelteKit",B=new Ne({props:{size:50,name:"edit"}}),_=new It({props:{details:s[0].page}});let L=s[2]&&xe(s),O=s[1]&&et(s);return{c(){t=k("meta"),a=k("meta"),n=k("meta"),c=K(),u=k("div"),h=k("h1"),r=x(i),N=K(),y=k("a"),ue(B.$$.fragment),C=x(" Edit this page on GitHub"),b=K(),ue(_.$$.fragment),z=K(),M=k("section"),T=new nt(!1),m=K(),v=k("div"),q=k("div"),P=k("span"),P.textContent=te,Y=K(),L&&L.c(),Z=K(),$=k("div"),W=k("span"),W.textContent=me,ie=K(),O&&O.c(),this.h()},l(S){const f=ut("svelte-18gm73m",oe.head);t=E(f,"META",{name:!0,content:!0}),a=E(f,"META",{name:!0,content:!0}),n=E(f,"META",{name:!0,content:!0}),f.forEach(p),c=V(S),u=E(S,"DIV",{class:!0});var I=D(u);h=E(I,"H1",{});var U=D(h);r=ee(U,i),U.forEach(p),N=V(I),y=E(I,"A",{class:!0,href:!0});var J=D(y);fe(B.$$.fragment,J),C=ee(J," Edit this page on GitHub"),J.forEach(p),b=V(I),fe(_.$$.fragment,I),z=V(I),M=E(I,"SECTION",{});var ce=D(M);T=st(ce,!1),ce.forEach(p),m=V(I),v=E(I,"DIV",{class:!0});var ve=D(v);q=E(ve,"DIV",{class:!0});var we=D(q);P=E(we,"SPAN",{class:!0,"data-svelte-h":!0}),$e(P)!=="svelte-14z7y6c"&&(P.textContent=te),Y=V(we),L&&L.l(we),we.forEach(p),Z=V(ve),$=E(ve,"DIV",{class:!0});var be=D($);W=E(be,"SPAN",{class:!0,"data-svelte-h":!0}),$e(W)!=="svelte-1swaq3c"&&(W.textContent=me),ie=V(be),O&&O.l(be),be.forEach(p),ve.forEach(p),I.forEach(p),this.h()},h(){d(t,"name","twitter:title"),d(t,"content","SvelteKit docs"),d(a,"name","twitter:description"),d(a,"content",l=s[0].page.title+" • SvelteKit documentation"),d(n,"name","Description"),d(n,"content",o=s[0].page.title+" • SvelteKit documentation"),d(y,"class","edit svelte-zelrq3"),d(y,"href",w="https://github.com/sveltejs/kit/edit/master/documentation/docs/"+s[0].page.file),T.a=null,d(P,"class","svelte-zelrq3"),X(P,"faded",!s[2]),d(q,"class","svelte-zelrq3"),d(W,"class","svelte-zelrq3"),X(W,"faded",!s[1]),d($,"class","svelte-zelrq3"),d(v,"class","controls svelte-zelrq3"),d(u,"class","text content svelte-zelrq3")},m(S,f){g(oe.head,t),g(oe.head,a),g(oe.head,n),F(S,c,f),F(S,u,f),g(u,h),g(h,r),g(u,N),g(u,y),de(B,y,null),g(y,C),g(u,b),de(_,u,null),g(u,z),g(u,M),T.m(A,M),g(u,m),g(u,v),g(v,q),g(q,P),g(q,Y),L&&L.m(q,null),g(v,Z),g(v,$),g($,W),g($,ie),O&&O.m($,null),j=!0,re||(ge=ye(At.call(null,u)),re=!0)},p(S,[f]){(!j||f&1)&&e!==(e=S[0].page.title+" • Docs • SvelteKit")&&(oe.title=e),(!j||f&1&&l!==(l=S[0].page.title+" • SvelteKit documentation"))&&d(a,"content",l),(!j||f&1&&o!==(o=S[0].page.title+" • SvelteKit documentation"))&&d(n,"content",o),(!j||f&1)&&i!==(i=S[0].page.title+"")&&_e(r,i),(!j||f&1&&w!==(w="https://github.com/sveltejs/kit/edit/master/documentation/docs/"+S[0].page.file))&&d(y,"href",w);const I={};f&1&&(I.details=S[0].page),_.$set(I),(!j||f&1)&&A!==(A=S[0].page.content+"")&&T.p(A),(!j||f&4)&&X(P,"faded",!S[2]),S[2]?L?L.p(S,f):(L=xe(S),L.c(),L.m(q,null)):L&&(L.d(1),L=null),(!j||f&2)&&X(W,"faded",!S[1]),S[1]?O?O.p(S,f):(O=et(S),O.c(),O.m($,null)):O&&(O.d(1),O=null)},i(S){j||(H(B.$$.fragment,S),H(_.$$.fragment,S),j=!0)},o(S){R(B.$$.fragment,S),R(_.$$.fragment,S),j=!1},d(S){S&&(p(c),p(u)),p(t),p(a),p(n),he(B),he(_),L&&L.d(),O&&O.d(),re=!1,ge()}}}function Ot(s,e,t){let a,l,n,o,c;ne(s,Oe,i=>t(5,c=i));let{data:u}=e;Pt();const h={hmr:"how-do-i-use-hmr-with-sveltekit","read-package-json":"how-do-i-include-details-from-package-json-in-my-application",packages:"how-do-i-fix-the-error-i-m-getting-trying-to-include-a-package",integrations:"how-do-i-use-x-with-sveltekit","how-do-i-setup-a-database":"how-do-i-use-x-with-sveltekit-how-do-i-setup-a-database","how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window":"how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window","how-do-i-use-a-different-backend-api-server":"how-do-i-use-x-with-sveltekit-how-do-i-use-a-different-backend-api-server","how-do-i-use-middleware":"how-do-i-use-x-with-sveltekit-how-do-i-use-middleware","does-it-work-with-yarn-2":"how-do-i-use-x-with-sveltekit-does-it-work-with-yarn-2","how-do-i-use-with-yarn-3":"how-do-i-use-x-with-sveltekit-how-do-i-use-with-yarn-3"};return ze(()=>{if(c.url.pathname!=="/docs/faq")return;const i=c.url.hash.replace(/^#/,"");h[i]&&(document.location.hash=`#${h[i]}`)}),s.$$set=i=>{"data"in i&&t(0,u=i.data)},s.$$.update=()=>{s.$$.dirty&1&&t(4,a=u.sections.flatMap(i=>i.pages)),s.$$.dirty&48&&t(3,l=a.findIndex(({path:i})=>i===c.url.pathname)),s.$$.dirty&24&&t(2,n=a[l-1]),s.$$.dirty&24&&t(1,o=a[l+1])},[u,o,n,l,a,c]}class Wt extends Ae{constructor(e){super(),Ce(this,e,Ot,Lt,Ee,{data:0})}}export{Wt as component};
