import{c as t,d as s,b as a,o as e,e as o,f as n,ag as i,j as r,p as c,g as l,h,i as u,k as p,l as d,m as f,n as m,a as j}from"./chunk.82446879.js";function g(t){let s,a,g,v,x,y,E=t[0].title+"",H=t[0].html+"";return document.title=s=t[0].title,{c(){a=e(),g=o("h1"),v=n(E),x=e(),y=o("div"),this.h()},l(t){i('[data-svelte="svelte-1uty71u"]',document.head).forEach(r),a=c(t),g=l(t,"H1",{});var s=h(g);v=u(s,E),s.forEach(r),x=c(t),y=l(t,"DIV",{class:!0}),h(y).forEach(r),this.h()},h(){p(y,"class","content svelte-jdqhj6")},m(t,s){d(t,a,s),d(t,g,s),f(g,v),d(t,x,s),d(t,y,s),y.innerHTML=H},p(t,[a]){1&a&&s!==(s=t[0].title)&&(document.title=s),1&a&&E!==(E=t[0].title+"")&&m(v,E),1&a&&H!==(H=t[0].html+"")&&(y.innerHTML=H)},i:j,o:j,d(t){t&&r(a),t&&r(g),t&&r(x),t&&r(y)}}}async function v({params:t,query:s}){const a=await this.fetch(`blog/${t.slug}.json`),e=await a.json();if(200===a.status)return{post:e};this.error(a.status,e.message)}function x(t,s,a){let{post:e}=s;return t.$set=(t=>{"post"in t&&a(0,e=t.post)}),[e]}export default class extends t{constructor(t){super(),s(this,t,x,g,a,{post:0})}}export{v as preload};
//# sourceMappingURL=[slug].b8f32e13.js.map
