var ht=Object.defineProperty,dt=Object.defineProperties;var pt=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Z=(o,t,r)=>t in o?ht(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,w=(o,t)=>{for(var r in t||(t={}))tt.call(t,r)&&Z(o,r,t[r]);if(B)for(var r of B(t))et.call(t,r)&&Z(o,r,t[r]);return o},W=(o,t)=>dt(o,pt(t));var rt=(o,t)=>{var r={};for(var s in o)tt.call(o,s)&&t.indexOf(s)<0&&(r[s]=o[s]);if(o!=null&&B)for(var s of B(o))t.indexOf(s)<0&&et.call(o,s)&&(r[s]=o[s]);return r};import{S as mt,i as gt,s as Et,e as vt,c as wt,a as bt,d as L,b as G,f as D,g as A,t as $t,h as yt,j as Rt,k as Lt,l as b,m as Ot,n as x,o as $,p as U,q as y,r as kt,u as At,v as F,w as P,x as C,y as T,z as j,A as q,B as V,C as z,D as Y,E as it}from"./chunks/vendor-1e8b365d.js";import{s as Pt,b as Tt}from"./chunks/paths-4b3c6e7e.js";function Vt(o){let t,r,s;const l=[o[1]||{}];var n=o[0][0];function c(i){let a={};for(let _=0;_<l.length;_+=1)a=z(a,l[_]);return{props:a}}return n&&(t=new n(c())),{c(){t&&P(t.$$.fragment),r=b()},l(i){t&&C(t.$$.fragment,i),r=b()},m(i,a){t&&T(t,i,a),A(i,r,a),s=!0},p(i,a){const _=a&2?j(l,[q(i[1]||{})]):{};if(n!==(n=i[0][0])){if(t){x();const u=t;$(u.$$.fragment,1,0,()=>{V(u,1)}),U()}n?(t=new n(c()),P(t.$$.fragment),y(t.$$.fragment,1),T(t,r.parentNode,r)):t=null}else n&&t.$set(_)},i(i){s||(t&&y(t.$$.fragment,i),s=!0)},o(i){t&&$(t.$$.fragment,i),s=!1},d(i){i&&L(r),t&&V(t,i)}}}function It(o){let t,r,s;const l=[o[1]||{}];var n=o[0][0];function c(i){let a={$$slots:{default:[Ut]},$$scope:{ctx:i}};for(let _=0;_<l.length;_+=1)a=z(a,l[_]);return{props:a}}return n&&(t=new n(c(o))),{c(){t&&P(t.$$.fragment),r=b()},l(i){t&&C(t.$$.fragment,i),r=b()},m(i,a){t&&T(t,i,a),A(i,r,a),s=!0},p(i,a){const _=a&2?j(l,[q(i[1]||{})]):{};if(a&525&&(_.$$scope={dirty:a,ctx:i}),n!==(n=i[0][0])){if(t){x();const u=t;$(u.$$.fragment,1,0,()=>{V(u,1)}),U()}n?(t=new n(c(i)),P(t.$$.fragment),y(t.$$.fragment,1),T(t,r.parentNode,r)):t=null}else n&&t.$set(_)},i(i){s||(t&&y(t.$$.fragment,i),s=!0)},o(i){t&&$(t.$$.fragment,i),s=!1},d(i){i&&L(r),t&&V(t,i)}}}function Dt(o){let t,r,s;const l=[o[2]||{}];var n=o[0][1];function c(i){let a={};for(let _=0;_<l.length;_+=1)a=z(a,l[_]);return{props:a}}return n&&(t=new n(c())),{c(){t&&P(t.$$.fragment),r=b()},l(i){t&&C(t.$$.fragment,i),r=b()},m(i,a){t&&T(t,i,a),A(i,r,a),s=!0},p(i,a){const _=a&4?j(l,[q(i[2]||{})]):{};if(n!==(n=i[0][1])){if(t){x();const u=t;$(u.$$.fragment,1,0,()=>{V(u,1)}),U()}n?(t=new n(c()),P(t.$$.fragment),y(t.$$.fragment,1),T(t,r.parentNode,r)):t=null}else n&&t.$set(_)},i(i){s||(t&&y(t.$$.fragment,i),s=!0)},o(i){t&&$(t.$$.fragment,i),s=!1},d(i){i&&L(r),t&&V(t,i)}}}function St(o){let t,r,s;const l=[o[2]||{}];var n=o[0][1];function c(i){let a={$$slots:{default:[xt]},$$scope:{ctx:i}};for(let _=0;_<l.length;_+=1)a=z(a,l[_]);return{props:a}}return n&&(t=new n(c(o))),{c(){t&&P(t.$$.fragment),r=b()},l(i){t&&C(t.$$.fragment,i),r=b()},m(i,a){t&&T(t,i,a),A(i,r,a),s=!0},p(i,a){const _=a&4?j(l,[q(i[2]||{})]):{};if(a&521&&(_.$$scope={dirty:a,ctx:i}),n!==(n=i[0][1])){if(t){x();const u=t;$(u.$$.fragment,1,0,()=>{V(u,1)}),U()}n?(t=new n(c(i)),P(t.$$.fragment),y(t.$$.fragment,1),T(t,r.parentNode,r)):t=null}else n&&t.$set(_)},i(i){s||(t&&y(t.$$.fragment,i),s=!0)},o(i){t&&$(t.$$.fragment,i),s=!1},d(i){i&&L(r),t&&V(t,i)}}}function xt(o){let t,r,s;const l=[o[3]||{}];var n=o[0][2];function c(i){let a={};for(let _=0;_<l.length;_+=1)a=z(a,l[_]);return{props:a}}return n&&(t=new n(c())),{c(){t&&P(t.$$.fragment),r=b()},l(i){t&&C(t.$$.fragment,i),r=b()},m(i,a){t&&T(t,i,a),A(i,r,a),s=!0},p(i,a){const _=a&8?j(l,[q(i[3]||{})]):{};if(n!==(n=i[0][2])){if(t){x();const u=t;$(u.$$.fragment,1,0,()=>{V(u,1)}),U()}n?(t=new n(c()),P(t.$$.fragment),y(t.$$.fragment,1),T(t,r.parentNode,r)):t=null}else n&&t.$set(_)},i(i){s||(t&&y(t.$$.fragment,i),s=!0)},o(i){t&&$(t.$$.fragment,i),s=!1},d(i){i&&L(r),t&&V(t,i)}}}function Ut(o){let t,r,s,l;const n=[St,Dt],c=[];function i(a,_){return a[0][2]?0:1}return t=i(o),r=c[t]=n[t](o),{c(){r.c(),s=b()},l(a){r.l(a),s=b()},m(a,_){c[t].m(a,_),A(a,s,_),l=!0},p(a,_){let u=t;t=i(a),t===u?c[t].p(a,_):(x(),$(c[u],1,1,()=>{c[u]=null}),U(),r=c[t],r?r.p(a,_):(r=c[t]=n[t](a),r.c()),y(r,1),r.m(s.parentNode,s))},i(a){l||(y(r),l=!0)},o(a){$(r),l=!1},d(a){c[t].d(a),a&&L(s)}}}function st(o){let t,r=o[5]&&nt(o);return{c(){t=vt("div"),r&&r.c(),this.h()},l(s){t=wt(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=bt(t);r&&r.l(l),l.forEach(L),this.h()},h(){G(t,"id","svelte-announcer"),G(t,"aria-live","assertive"),G(t,"aria-atomic","true"),D(t,"position","absolute"),D(t,"left","0"),D(t,"top","0"),D(t,"clip","rect(0 0 0 0)"),D(t,"clip-path","inset(50%)"),D(t,"overflow","hidden"),D(t,"white-space","nowrap"),D(t,"width","1px"),D(t,"height","1px")},m(s,l){A(s,t,l),r&&r.m(t,null)},p(s,l){s[5]?r?r.p(s,l):(r=nt(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&L(t),r&&r.d()}}}function nt(o){let t;return{c(){t=$t(o[6])},l(r){t=yt(r,o[6])},m(r,s){A(r,t,s)},p(r,s){s&64&&Rt(t,r[6])},d(r){r&&L(t)}}}function Nt(o){let t,r,s,l,n;const c=[It,Vt],i=[];function a(u,d){return u[0][1]?0:1}t=a(o),r=i[t]=c[t](o);let _=o[4]&&st(o);return{c(){r.c(),s=Lt(),_&&_.c(),l=b()},l(u){r.l(u),s=Ot(u),_&&_.l(u),l=b()},m(u,d){i[t].m(u,d),A(u,s,d),_&&_.m(u,d),A(u,l,d),n=!0},p(u,[d]){let h=t;t=a(u),t===h?i[t].p(u,d):(x(),$(i[h],1,1,()=>{i[h]=null}),U(),r=i[t],r?r.p(u,d):(r=i[t]=c[t](u),r.c()),y(r,1),r.m(s.parentNode,s)),u[4]?_?_.p(u,d):(_=st(u),_.c(),_.m(l.parentNode,l)):_&&(_.d(1),_=null)},i(u){n||(y(r),n=!0)},o(u){$(r),n=!1},d(u){i[t].d(u),u&&L(s),_&&_.d(u),u&&L(l)}}}function Ct(o,t,r){let{stores:s}=t,{page:l}=t,{components:n}=t,{props_0:c=null}=t,{props_1:i=null}=t,{props_2:a=null}=t;kt("__svelte__",s),At(s.page.notify);let _=!1,u=!1,d=null;return F(()=>{const h=s.page.subscribe(()=>{_&&(r(5,u=!0),r(6,d=document.title||"untitled page"))});return r(4,_=!0),h}),o.$$set=h=>{"stores"in h&&r(7,s=h.stores),"page"in h&&r(8,l=h.page),"components"in h&&r(0,n=h.components),"props_0"in h&&r(1,c=h.props_0),"props_1"in h&&r(2,i=h.props_1),"props_2"in h&&r(3,a=h.props_2)},o.$$.update=()=>{o.$$.dirty&384&&s.page.set(l)},[n,c,i,a,_,u,d,s,l]}class jt extends mt{constructor(t){super();gt(this,t,Ct,Nt,Et,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const qt="modulepreload",at={},zt="/docs/course/pr_92/fr/_app/",f=function(t,r){return!r||r.length===0?t():Promise.all(r.map(s=>{if(s=`${zt}${s}`,s in at)return;at[s]=!0;const l=s.endsWith(".css"),n=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${n}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":qt,l||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),l)return new Promise((i,a)=>{c.addEventListener("load",i),c.addEventListener("error",a)})})).then(()=>t())},e=[()=>f(()=>import("./pages/__layout.svelte-05c2fb0c.js"),["pages/__layout.svelte-05c2fb0c.js","assets/pages/__layout.svelte-0ba3497a.css","chunks/vendor-1e8b365d.js","chunks/paths-4b3c6e7e.js"]),()=>f(()=>import("./error.svelte-cb1a7da1.js"),["error.svelte-cb1a7da1.js","chunks/vendor-1e8b365d.js"]),()=>f(()=>import("./pages/chapter0/1.mdx-6780d518.js"),["pages/chapter0/1.mdx-6780d518.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js"]),()=>f(()=>import("./pages/chapter1/10.mdx-99187e74.js"),["pages/chapter1/10.mdx-99187e74.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/Question-31426fe2.js"]),()=>f(()=>import("./pages/chapter1/1.mdx-7528acf0.js"),["pages/chapter1/1.mdx-7528acf0.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter1/2.mdx-9e615ecb.js"),["pages/chapter1/2.mdx-9e615ecb.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter1/3.mdx-027acd45.js"),["pages/chapter1/3.mdx-027acd45.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter1/4.mdx-b307f19f.js"),["pages/chapter1/4.mdx-b307f19f.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter1/5.mdx-d05b8881.js"),["pages/chapter1/5.mdx-d05b8881.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter1/6.mdx-9e16e31b.js"),["pages/chapter1/6.mdx-9e16e31b.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter1/7.mdx-86eebf77.js"),["pages/chapter1/7.mdx-86eebf77.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter1/8.mdx-e7b13efd.js"),["pages/chapter1/8.mdx-e7b13efd.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter1/9.mdx-bbad64fb.js"),["pages/chapter1/9.mdx-bbad64fb.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter2/1.mdx-92fb50d8.js"),["pages/chapter2/1.mdx-92fb50d8.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter2/2.mdx-7c21a385.js"),["pages/chapter2/2.mdx-7c21a385.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter2/3.mdx-f2de4805.js"),["pages/chapter2/3.mdx-f2de4805.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter2/4.mdx-b06205f4.js"),["pages/chapter2/4.mdx-b06205f4.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter2/5.mdx-6c0c03e6.js"),["pages/chapter2/5.mdx-6c0c03e6.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter2/6.mdx-fb9cb2bf.js"),["pages/chapter2/6.mdx-fb9cb2bf.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter2/7.mdx-f8388d2b.js"),["pages/chapter2/7.mdx-f8388d2b.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter2/8.mdx-9bf55189.js"),["pages/chapter2/8.mdx-9bf55189.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/Question-31426fe2.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter3/3_tf.mdx-275a608d.js"),["pages/chapter3/3_tf.mdx-275a608d.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter3/1.mdx-ba58837c.js"),["pages/chapter3/1.mdx-ba58837c.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter3/2.mdx-39f2126a.js"),["pages/chapter3/2.mdx-39f2126a.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter3/3.mdx-1466f517.js"),["pages/chapter3/3.mdx-1466f517.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter3/4.mdx-6fb46619.js"),["pages/chapter3/4.mdx-6fb46619.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter3/5.mdx-cdaa5414.js"),["pages/chapter3/5.mdx-cdaa5414.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter3/6.mdx-2c5dffd4.js"),["pages/chapter3/6.mdx-2c5dffd4.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/Question-31426fe2.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter4/1.mdx-53d64f17.js"),["pages/chapter4/1.mdx-53d64f17.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter4/2.mdx-e4292009.js"),["pages/chapter4/2.mdx-e4292009.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter4/3.mdx-006b8c09.js"),["pages/chapter4/3.mdx-006b8c09.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter4/4.mdx-138066b0.js"),["pages/chapter4/4.mdx-138066b0.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js"]),()=>f(()=>import("./pages/chapter4/5.mdx-f0e955fb.js"),["pages/chapter4/5.mdx-f0e955fb.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter4/6.mdx-38f9a10c.js"),["pages/chapter4/6.mdx-38f9a10c.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/Question-31426fe2.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter5/1.mdx-c6649323.js"),["pages/chapter5/1.mdx-c6649323.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter5/2.mdx-7c350017.js"),["pages/chapter5/2.mdx-7c350017.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter5/3.mdx-58408328.js"),["pages/chapter5/3.mdx-58408328.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter5/4.mdx-e2a4f6bc.js"),["pages/chapter5/4.mdx-e2a4f6bc.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter5/5.mdx-a3e0d24f.js"),["pages/chapter5/5.mdx-a3e0d24f.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter5/6.mdx-3487bfe2.js"),["pages/chapter5/6.mdx-3487bfe2.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter5/7.mdx-8d151efb.js"),["pages/chapter5/7.mdx-8d151efb.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter5/8.mdx-a0566952.js"),["pages/chapter5/8.mdx-a0566952.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/Question-31426fe2.js"]),()=>f(()=>import("./pages/chapter6/10.mdx-7ccbdd7f.js"),["pages/chapter6/10.mdx-7ccbdd7f.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/Question-31426fe2.js"]),()=>f(()=>import("./pages/chapter6/3b.mdx-fa82ae80.js"),["pages/chapter6/3b.mdx-fa82ae80.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter6/1.mdx-7d0f6f94.js"),["pages/chapter6/1.mdx-7d0f6f94.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter6/2.mdx-6b505f6e.js"),["pages/chapter6/2.mdx-6b505f6e.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter6/3.mdx-c921f4c8.js"),["pages/chapter6/3.mdx-c921f4c8.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter6/4.mdx-3fb50a64.js"),["pages/chapter6/4.mdx-3fb50a64.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter6/5.mdx-7c8ae119.js"),["pages/chapter6/5.mdx-7c8ae119.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter6/6.mdx-f8bbd41a.js"),["pages/chapter6/6.mdx-f8bbd41a.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter6/7.mdx-3ec3fd25.js"),["pages/chapter6/7.mdx-3ec3fd25.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter6/8.mdx-70e29282.js"),["pages/chapter6/8.mdx-70e29282.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter6/9.mdx-9b0be158.js"),["pages/chapter6/9.mdx-9b0be158.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter7/1.mdx-c5e64e9a.js"),["pages/chapter7/1.mdx-c5e64e9a.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/IconCopyLink-483c28ba.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/2.mdx-6ad9a512.js"),["pages/chapter7/2.mdx-6ad9a512.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/3.mdx-2a2d54fa.js"),["pages/chapter7/3.mdx-2a2d54fa.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/4.mdx-d890dbfb.js"),["pages/chapter7/4.mdx-d890dbfb.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/5.mdx-0ace643a.js"),["pages/chapter7/5.mdx-0ace643a.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/6.mdx-4fc01f48.js"),["pages/chapter7/6.mdx-4fc01f48.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/7.mdx-02d06347.js"),["pages/chapter7/7.mdx-02d06347.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter7/8.mdx-38bda8be.js"),["pages/chapter7/8.mdx-38bda8be.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter7/9.mdx-fc5de2da.js"),["pages/chapter7/9.mdx-fc5de2da.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/Question-31426fe2.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter8/4_tf.mdx-2f8dd3ba.js"),["pages/chapter8/4_tf.mdx-2f8dd3ba.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter8/1.mdx-a813369a.js"),["pages/chapter8/1.mdx-a813369a.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter8/2.mdx-bb3de481.js"),["pages/chapter8/2.mdx-bb3de481.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter8/3.mdx-7132042b.js"),["pages/chapter8/3.mdx-7132042b.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter8/4.mdx-bee31c5c.js"),["pages/chapter8/4.mdx-bee31c5c.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js","chunks/FrameworkSwitchCourse-7f8f0f31.js"]),()=>f(()=>import("./pages/chapter8/5.mdx-8720ef2d.js"),["pages/chapter8/5.mdx-8720ef2d.js","chunks/vendor-1e8b365d.js","chunks/Tip-62b14c6e.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/DocNotebookDropdown-37d928d3.js"]),()=>f(()=>import("./pages/chapter8/6.mdx-234e14f2.js"),["pages/chapter8/6.mdx-234e14f2.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js"]),()=>f(()=>import("./pages/chapter8/7.mdx-d5c28f08.js"),["pages/chapter8/7.mdx-d5c28f08.js","chunks/vendor-1e8b365d.js","chunks/IconCopyLink-483c28ba.js","chunks/CodeBlock-e5764662.js","chunks/Question-31426fe2.js"]),()=>f(()=>import("./pages/event/1.mdx-30c27a5f.js"),["pages/event/1.mdx-30c27a5f.js","chunks/vendor-1e8b365d.js","chunks/Youtube-c2a8cc39.js","chunks/IconCopyLink-483c28ba.js"])],Jt=[[/^\/chapter0\/1\/?$/,[e[0],e[2]],[e[1]]],[/^\/chapter1\/10\/?$/,[e[0],e[3]],[e[1]]],[/^\/chapter1\/1\/?$/,[e[0],e[4]],[e[1]]],[/^\/chapter1\/2\/?$/,[e[0],e[5]],[e[1]]],[/^\/chapter1\/3\/?$/,[e[0],e[6]],[e[1]]],[/^\/chapter1\/4\/?$/,[e[0],e[7]],[e[1]]],[/^\/chapter1\/5\/?$/,[e[0],e[8]],[e[1]]],[/^\/chapter1\/6\/?$/,[e[0],e[9]],[e[1]]],[/^\/chapter1\/7\/?$/,[e[0],e[10]],[e[1]]],[/^\/chapter1\/8\/?$/,[e[0],e[11]],[e[1]]],[/^\/chapter1\/9\/?$/,[e[0],e[12]],[e[1]]],[/^\/chapter2\/1\/?$/,[e[0],e[13]],[e[1]]],[/^\/chapter2\/2\/?$/,[e[0],e[14]],[e[1]]],[/^\/chapter2\/3\/?$/,[e[0],e[15]],[e[1]]],[/^\/chapter2\/4\/?$/,[e[0],e[16]],[e[1]]],[/^\/chapter2\/5\/?$/,[e[0],e[17]],[e[1]]],[/^\/chapter2\/6\/?$/,[e[0],e[18]],[e[1]]],[/^\/chapter2\/7\/?$/,[e[0],e[19]],[e[1]]],[/^\/chapter2\/8\/?$/,[e[0],e[20]],[e[1]]],[/^\/chapter3\/3_tf\/?$/,[e[0],e[21]],[e[1]]],[/^\/chapter3\/1\/?$/,[e[0],e[22]],[e[1]]],[/^\/chapter3\/2\/?$/,[e[0],e[23]],[e[1]]],[/^\/chapter3\/3\/?$/,[e[0],e[24]],[e[1]]],[/^\/chapter3\/4\/?$/,[e[0],e[25]],[e[1]]],[/^\/chapter3\/5\/?$/,[e[0],e[26]],[e[1]]],[/^\/chapter3\/6\/?$/,[e[0],e[27]],[e[1]]],[/^\/chapter4\/1\/?$/,[e[0],e[28]],[e[1]]],[/^\/chapter4\/2\/?$/,[e[0],e[29]],[e[1]]],[/^\/chapter4\/3\/?$/,[e[0],e[30]],[e[1]]],[/^\/chapter4\/4\/?$/,[e[0],e[31]],[e[1]]],[/^\/chapter4\/5\/?$/,[e[0],e[32]],[e[1]]],[/^\/chapter4\/6\/?$/,[e[0],e[33]],[e[1]]],[/^\/chapter5\/1\/?$/,[e[0],e[34]],[e[1]]],[/^\/chapter5\/2\/?$/,[e[0],e[35]],[e[1]]],[/^\/chapter5\/3\/?$/,[e[0],e[36]],[e[1]]],[/^\/chapter5\/4\/?$/,[e[0],e[37]],[e[1]]],[/^\/chapter5\/5\/?$/,[e[0],e[38]],[e[1]]],[/^\/chapter5\/6\/?$/,[e[0],e[39]],[e[1]]],[/^\/chapter5\/7\/?$/,[e[0],e[40]],[e[1]]],[/^\/chapter5\/8\/?$/,[e[0],e[41]],[e[1]]],[/^\/chapter6\/10\/?$/,[e[0],e[42]],[e[1]]],[/^\/chapter6\/3b\/?$/,[e[0],e[43]],[e[1]]],[/^\/chapter6\/1\/?$/,[e[0],e[44]],[e[1]]],[/^\/chapter6\/2\/?$/,[e[0],e[45]],[e[1]]],[/^\/chapter6\/3\/?$/,[e[0],e[46]],[e[1]]],[/^\/chapter6\/4\/?$/,[e[0],e[47]],[e[1]]],[/^\/chapter6\/5\/?$/,[e[0],e[48]],[e[1]]],[/^\/chapter6\/6\/?$/,[e[0],e[49]],[e[1]]],[/^\/chapter6\/7\/?$/,[e[0],e[50]],[e[1]]],[/^\/chapter6\/8\/?$/,[e[0],e[51]],[e[1]]],[/^\/chapter6\/9\/?$/,[e[0],e[52]],[e[1]]],[/^\/chapter7\/1\/?$/,[e[0],e[53]],[e[1]]],[/^\/chapter7\/2\/?$/,[e[0],e[54]],[e[1]]],[/^\/chapter7\/3\/?$/,[e[0],e[55]],[e[1]]],[/^\/chapter7\/4\/?$/,[e[0],e[56]],[e[1]]],[/^\/chapter7\/5\/?$/,[e[0],e[57]],[e[1]]],[/^\/chapter7\/6\/?$/,[e[0],e[58]],[e[1]]],[/^\/chapter7\/7\/?$/,[e[0],e[59]],[e[1]]],[/^\/chapter7\/8\/?$/,[e[0],e[60]],[e[1]]],[/^\/chapter7\/9\/?$/,[e[0],e[61]],[e[1]]],[/^\/chapter8\/4_tf\/?$/,[e[0],e[62]],[e[1]]],[/^\/chapter8\/1\/?$/,[e[0],e[63]],[e[1]]],[/^\/chapter8\/2\/?$/,[e[0],e[64]],[e[1]]],[/^\/chapter8\/3\/?$/,[e[0],e[65]],[e[1]]],[/^\/chapter8\/4\/?$/,[e[0],e[66]],[e[1]]],[/^\/chapter8\/5\/?$/,[e[0],e[67]],[e[1]]],[/^\/chapter8\/6\/?$/,[e[0],e[68]],[e[1]]],[/^\/chapter8\/7\/?$/,[e[0],e[69]],[e[1]]],[/^\/event\/1\/?$/,[e[0],e[70]],[e[1]]]],Kt=[e[0](),e[1]()];function Bt(o){let t=o.baseURI;if(!t){const r=o.getElementsByTagName("base");t=r.length?r[0].href:o.URL}return t}function Wt(o,t){return o==="/"||t==="ignore"?o:t==="never"?o.endsWith("/")?o.slice(0,-1):o:t==="always"&&/\/[^./]+$/.test(o)?o+"/":o}const ft="sveltekit:scroll";let N={};try{N=JSON.parse(sessionStorage[ft])}catch{}function M(o){N[o]=X()}function X(){return{x:pageXOffset,y:pageYOffset}}function ot(o){return o.composedPath().find(r=>r instanceof Node&&r.nodeName.toUpperCase()==="A")}function lt(o){return o instanceof SVGAElement?new URL(o.href.baseVal,document.baseURI):new URL(o.href)}class Yt{constructor({base:t,routes:r,trailing_slash:s,renderer:l}){var c,i;this.base=t,this.routes=r,this.trailing_slash=s,this.navigating=0,this.renderer=l,l.router=this,this.enabled=!0,this.initialized=!1,document.body.setAttribute("tabindex","-1"),this.current_history_index=(i=(c=history.state)==null?void 0:c["sveltekit:index"])!=null?i:0,this.current_history_index===0&&history.replaceState(W(w({},history.state),{"sveltekit:index":0}),"",location.href);const n=N[this.current_history_index];n&&scrollTo(n.x,n.y),this.hash_navigating=!1,this.callbacks={before_navigate:[],after_navigate:[]}}init_listeners(){history.scrollRestoration="manual",addEventListener("beforeunload",l=>{let n=!1;const c={from:this.renderer.current.url,to:null,cancel:()=>n=!0};this.callbacks.before_navigate.forEach(i=>i(c)),n?(l.preventDefault(),l.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){M(this.current_history_index);try{sessionStorage[ft]=JSON.stringify(N)}catch{}}});const t=l=>{const n=ot(l);n&&n.href&&n.hasAttribute("sveltekit:prefetch")&&this.prefetch(lt(n))};let r;const s=l=>{clearTimeout(r),r=setTimeout(()=>{var n;(n=l.target)==null||n.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",t),addEventListener("mousemove",s),addEventListener("sveltekit:trigger_prefetch",t),addEventListener("click",l=>{if(!this.enabled||l.button||l.which!==1||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||l.defaultPrevented)return;const n=ot(l);if(!n||!n.href)return;const c=n instanceof SVGAElement,i=lt(n);if(i.toString()===location.href){location.hash||l.preventDefault();return}if(!c&&i.origin==="null")return;const _=(n.getAttribute("rel")||"").split(/\s+/);if(n.hasAttribute("download")||_&&_.includes("external")||(c?n.target.baseVal:n.target))return;const[u,d]=i.href.split("#");if(d!==void 0&&u===location.href.split("#")[0]){this.hash_navigating=!0,M(this.current_history_index),this.renderer.update_page_store(new URL(i.href));return}this._navigate({url:i,scroll:n.hasAttribute("sveltekit:noscroll")?X():null,keepfocus:!1,chain:[],details:{state:{},replaceState:!1},accepted:()=>l.preventDefault(),blocked:()=>l.preventDefault()})}),addEventListener("popstate",l=>{if(l.state&&this.enabled){if(l.state["sveltekit:index"]===this.current_history_index)return;this._navigate({url:new URL(location.href),scroll:N[l.state["sveltekit:index"]],keepfocus:!1,chain:[],details:null,accepted:()=>{this.current_history_index=l.state["sveltekit:index"]},blocked:()=>{const n=this.current_history_index-l.state["sveltekit:index"];history.go(n)}})}}),addEventListener("hashchange",()=>{this.hash_navigating&&(this.hash_navigating=!1,history.replaceState(W(w({},history.state),{"sveltekit:index":++this.current_history_index}),"",location.href))}),this.initialized=!0}owns(t){return t.origin===location.origin&&t.pathname.startsWith(this.base)}parse(t){if(this.owns(t)){const r=decodeURI(t.pathname.slice(this.base.length)||"/");return{id:t.pathname+t.search,routes:this.routes.filter(([s])=>s.test(r)),url:t,path:r,initial:!this.initialized}}}async goto(t,{noscroll:r=!1,replaceState:s=!1,keepfocus:l=!1,state:n={}}={},c){const i=new URL(t,Bt(document));return this.enabled?this._navigate({url:i,scroll:r?X():null,keepfocus:l,chain:c,details:{state:n,replaceState:s},accepted:()=>{},blocked:()=>{}}):(location.href=i.href,new Promise(()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(t){const r=this.parse(t);if(!r)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(r)}after_navigate(t){F(()=>(this.callbacks.after_navigate.push(t),()=>{const r=this.callbacks.after_navigate.indexOf(t);this.callbacks.after_navigate.splice(r,1)}))}before_navigate(t){F(()=>(this.callbacks.before_navigate.push(t),()=>{const r=this.callbacks.before_navigate.indexOf(t);this.callbacks.before_navigate.splice(r,1)}))}async _navigate({url:t,scroll:r,keepfocus:s,chain:l,details:n,accepted:c,blocked:i}){const a=this.renderer.current.url;let _=!1;const u={from:a,to:t,cancel:()=>_=!0};if(this.callbacks.before_navigate.forEach(m=>m(u)),_){i();return}const d=this.parse(t);if(!d)return location.href=t.href,new Promise(()=>{});M(this.current_history_index),c(),this.navigating++;const h=Wt(t.pathname,this.trailing_slash);d.url=new URL(t.origin+h+t.search+t.hash);const p=this.navigating_token={};if(await this.renderer.handle_navigation(d,l,!1,{scroll:r,keepfocus:s}),this.navigating--,this.navigating_token===p){if(!this.navigating){const m={from:a,to:t};this.callbacks.after_navigate.forEach(I=>I(m))}if(n){const m=n.replaceState?0:1;n.state["sveltekit:index"]=this.current_history_index+=m,history[n.replaceState?"replaceState":"pushState"](n.state,"",d.url)}}}}function ct(o){return o instanceof Error||o&&o.name&&o.message?o:new Error(JSON.stringify(o))}function Gt(o){let t=5381,r=o.length;if(typeof o=="string")for(;r;)t=t*33^o.charCodeAt(--r);else for(;r;)t=t*33^o[--r];return(t>>>0).toString(36)}function _t(o){const t=o.status&&o.status>=400&&o.status<=599&&!o.redirect;if(o.error||t){const r=o.status;if(!o.error&&t)return{status:r||500,error:new Error};const s=typeof o.error=="string"?new Error(o.error):o.error;return s instanceof Error?!r||r<400||r>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:r,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(o.redirect){if(!o.status||Math.floor(o.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof o.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(o.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return o}function ut(o){const t=Y(o);let r=!0;function s(){r=!0,t.update(c=>c)}function l(c){r=!1,t.set(c)}function n(c){let i;return t.subscribe(a=>{(i===void 0||r&&a!==i)&&c(i=a)})}return{notify:s,set:l,subscribe:n}}function Mt(){const{set:o,subscribe:t}=Y(!1),r="1652732992655";let s;async function l(){clearTimeout(s);const c=await fetch(`${Tt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(c.ok){const{version:i}=await c.json(),a=i!==r;return a&&(o(!0),clearTimeout(s)),a}else throw new Error(`Version check failed: ${c.status}`)}return{subscribe:t,check:l}}function Ft(o,t){const r=typeof o=="string"?o:o.url;let s=`script[data-type="svelte-data"][data-url=${JSON.stringify(r)}]`;t&&typeof t.body=="string"&&(s+=`[data-body="${Gt(t.body)}"]`);const l=document.querySelector(s);if(l&&l.textContent){const n=JSON.parse(l.textContent),{body:c}=n,i=rt(n,["body"]);return Promise.resolve(new Response(c,i))}return fetch(o,t)}class Xt{constructor({Root:t,fallback:r,target:s,session:l}){this.Root=t,this.fallback=r,this.router,this.target=s,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.autoscroll=!0,this.updating=!1,this.current={url:null,session_id:0,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={url:ut({}),page:ut({}),navigating:Y(null),session:Y(l),updated:Mt()},this.$session=null,this.root=null;let n=!1;this.stores.session.subscribe(async c=>{if(this.$session=c,!n||!this.router)return;this.session_id+=1;const i=this.router.parse(new URL(location.href));i&&this.update(i,[],!0)}),n=!0}disable_scroll_handling(){(this.updating||!this.started)&&(this.autoscroll=!1)}async start({status:t,error:r,nodes:s,params:l}){const n=new URL(location.href),c=[];let i={},a,_;try{for(let u=0;u<s.length;u+=1){const d=u===s.length-1;let h;if(d){const m=document.querySelector('[data-type="svelte-props"]');m&&(h=JSON.parse(m.textContent))}const p=await this._load_node({module:await s[u],url:n,params:l,stuff:i,status:d?t:void 0,error:d?r:void 0,props:h});if(h&&(p.uses.dependencies.add(n.href),p.uses.url=!0),c.push(p),p&&p.loaded)if(p.loaded.error){if(r)throw p.loaded.error;_={status:p.loaded.status,error:p.loaded.error,url:n}}else p.loaded.stuff&&(i=w(w({},i),p.loaded.stuff))}a=_?await this._load_error(_):await this._get_navigation_result_from_branch({url:n,params:l,stuff:i,branch:c,status:t,error:r})}catch(u){if(r)throw u;a=await this._load_error({status:500,error:ct(u),url:n})}if(a.redirect){location.href=new URL(a.redirect,location.href).href;return}this._init(a)}async handle_navigation(t,r,s,l){this.started&&this.stores.navigating.set({from:this.current.url,to:t.url}),await this.update(t,r,s,l)}async update(t,r,s,l){var a,_,u;const n=this.token={};let c=await this._get_navigation_result(t,s);if(!c){location.href=t.url.href;return}if(n!==this.token)return;if(this.invalid.clear(),c.redirect)if(r.length>10||r.includes(t.url.pathname))c=await this._load_error({status:500,error:new Error("Redirect loop"),url:t.url});else{this.router?this.router.goto(new URL(c.redirect,t.url).href,{},[...r,t.url.pathname]):location.href=new URL(c.redirect,location.href).href;return}else if(((_=(a=c.props)==null?void 0:a.page)==null?void 0:_.status)>=400&&await this.stores.updated.check()){location.href=t.url.href;return}if(this.updating=!0,this.started?(this.current=c.state,this.root.$set(c.props),this.stores.navigating.set(null)):this._init(c),l){const{scroll:d,keepfocus:h}=l;if(h||((u=getSelection())==null||u.removeAllRanges(),document.body.focus()),await it(),this.autoscroll){const p=t.url.hash&&document.getElementById(t.url.hash.slice(1));d?scrollTo(d.x,d.y):p?p.scrollIntoView():scrollTo(0,0)}}else await it();if(this.loading.promise=null,this.loading.id=null,this.autoscroll=!0,this.updating=!1,c.props.page&&(this.page=c.props.page),!this.router)return;const i=c.state.branch[c.state.branch.length-1];i&&i.module.router===!1?this.router.disable():this.router.enable()}load(t){return this.loading.promise=this._get_navigation_result(t,!1),this.loading.id=t.id,this.loading.promise}invalidate(t){return this.invalid.add(t),this.invalidating||(this.invalidating=Promise.resolve().then(async()=>{const r=this.router&&this.router.parse(new URL(location.href));r&&await this.update(r,[],!0),this.invalidating=null})),this.invalidating}update_page_store(t){this.stores.page.set(W(w({},this.page),{url:t})),this.stores.page.notify()}_init(t){this.current=t.state;const r=document.querySelector("style[data-svelte]");if(r&&r.remove(),this.page=t.props.page,this.root=new this.Root({target:this.target,props:w({stores:this.stores},t.props),hydrate:!0}),this.started=!0,this.router){const s={from:null,to:new URL(location.href)};this.router.callbacks.after_navigate.forEach(l=>l(s))}}async _get_navigation_result(t,r){if(this.loading.id===t.id&&this.loading.promise)return this.loading.promise;for(let s=0;s<t.routes.length;s+=1){const l=t.routes[s];let n=s+1;for(;n<t.routes.length;){const i=t.routes[n];if(i[0].toString()===l[0].toString())i[1].forEach(a=>a()),n+=1;else break}const c=await this._load({route:l,info:t},r);if(c)return c}if(t.initial)return await this._load_error({status:404,error:new Error(`Not found: ${t.url.pathname}`),url:t.url})}async _get_navigation_result_from_branch({url:t,params:r,stuff:s,branch:l,status:n,error:c}){const i=l.filter(Boolean),a=i.find(h=>h.loaded&&h.loaded.redirect),_={redirect:a&&a.loaded?a.loaded.redirect:void 0,state:{url:t,params:r,branch:l,session_id:this.session_id},props:{components:i.map(h=>h.module.default)}};for(let h=0;h<i.length;h+=1){const p=i[h].loaded;_.props[`props_${h}`]=p?await p.props:null}if(!this.current.url||t.href!==this.current.url.href){_.props.page={url:t,params:r,status:n,error:c,stuff:s};const h=(p,m)=>{Object.defineProperty(_.props.page,p,{get:()=>{throw new Error(`$page.${p} has been replaced by $page.url.${m}`)}})};h("origin","origin"),h("path","pathname"),h("query","searchParams")}const u=i[i.length-1],d=u.loaded&&u.loaded.maxage;if(d){const h=t.pathname+t.search;let p=!1;const m=()=>{this.cache.get(h)===_&&this.cache.delete(h),O(),clearTimeout(I)},I=setTimeout(m,d*1e3),O=this.stores.session.subscribe(()=>{p&&m()});p=!0,this.cache.set(h,_)}return _}async _load_node({status:t,error:r,module:s,url:l,params:n,stuff:c,props:i}){const a={module:s,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:c};i&&a.uses.dependencies.add(l.href);const _={};for(const d in n)Object.defineProperty(_,d,{get(){return a.uses.params.add(d),n[d]},enumerable:!0});const u=this.$session;if(s.load){const{started:d}=this,h={params:_,props:i||{},get url(){return a.uses.url=!0,l},get session(){return a.uses.session=!0,u},get stuff(){return a.uses.stuff=!0,w({},c)},fetch(m,I){const O=typeof m=="string"?m:m.url,{href:k}=new URL(O,l);return a.uses.dependencies.add(k),d?fetch(m,I):Ft(m,I)}};r&&(h.status=t,h.error=r);const p=await s.load.call(null,h);if(!p)throw new Error("load function must return a value");a.loaded=_t(p),a.loaded.stuff&&(a.stuff=a.loaded.stuff)}else i&&(a.loaded=_t({props:i}));return a}async _load({route:t,info:{url:r,path:s}},l){const n=r.pathname+r.search;if(!l){const g=this.cache.get(n);if(g)return g}const[c,i,a,_,u]=t,d=_?_(c.exec(s)):{},h=this.current.url&&{url:n!==this.current.url.pathname+this.current.url.search,params:Object.keys(d).filter(g=>this.current.params[g]!==d[g]),session:this.session_id!==this.current.session_id};let p=[],m={},I=!1,O=200,k;i.forEach(g=>g());t:for(let g=0;g<i.length;g+=1){let E;try{if(!i[g])continue;const v=await i[g](),R=this.current.branch[g];if(!R||v!==R.module||h.url&&R.uses.url||h.params.some(S=>R.uses.params.has(S))||h.session&&R.uses.session||Array.from(R.uses.dependencies).some(S=>this.invalid.has(S))||I&&R.uses.stuff){let S={};const H=u&&g===i.length-1;if(H){const K=await fetch(`${r.pathname}${r.pathname.endsWith("/")?"":"/"}__data.json${r.search}`,{headers:{"x-sveltekit-load":"true"}});if(K.ok){const Q=K.headers.get("x-sveltekit-location");if(Q)return{redirect:Q,props:{},state:this.current};S=await K.json()}else O=K.status,k=new Error("Failed to load data")}if(k||(E=await this._load_node({module:v,url:r,params:d,props:S,stuff:m})),E&&(H&&(E.uses.url=!0),E.loaded)){if(E.loaded.fallthrough)return;if(E.loaded.error&&(O=E.loaded.status,k=E.loaded.error),E.loaded.redirect)return{redirect:E.loaded.redirect,props:{},state:this.current};E.loaded.stuff&&(I=!0)}}else E=R}catch(v){O=500,k=ct(v)}if(k){for(;g--;)if(a[g]){let v,R,J=g;for(;!(R=p[J]);)J-=1;try{if(v=await this._load_node({status:O,error:k,module:await a[g](),url:r,params:d,stuff:R.stuff}),v&&v.loaded&&v.loaded.error)continue;v&&v.loaded&&v.loaded.stuff&&(m=w(w({},m),v.loaded.stuff)),p=p.slice(0,J+1).concat(v);break t}catch{continue}}return await this._load_error({status:O,error:k,url:r})}else E&&E.loaded&&E.loaded.stuff&&(m=w(w({},m),E.loaded.stuff)),p.push(E)}return await this._get_navigation_result_from_branch({url:r,params:d,stuff:m,branch:p,status:O,error:k})}async _load_error({status:t,error:r,url:s}){var _,u;const l={},n=await this._load_node({module:await this.fallback[0],url:s,params:l,stuff:{}}),c=await this._load_node({status:t,error:r,module:await this.fallback[1],url:s,params:l,stuff:n&&n.loaded&&n.loaded.stuff||{}}),i=[n,c],a=w(w({},(_=n==null?void 0:n.loaded)==null?void 0:_.stuff),(u=c==null?void 0:c.loaded)==null?void 0:u.stuff);return await this._get_navigation_result_from_branch({url:s,params:l,stuff:a,branch:i,status:t,error:r})}}async function te({paths:o,target:t,session:r,route:s,spa:l,trailing_slash:n,hydrate:c}){const i=new Xt({Root:jt,fallback:Kt,target:t,session:r}),a=s?new Yt({base:o.base,routes:Jt,trailing_slash:n,renderer:i}):null;Pt(o),c&&await i.start(c),a&&(l&&a.goto(location.href,{replaceState:!0},[]),a.init_listeners()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{te as start};
