1import{S as B,i as H,s as M,F as J,G as K,p as d,h as f,q as c,b as Q,H as u,n as N,l as p,x as Y,u as R,m as g,y as ee,v as S,z as te,f as T,t as Z,C as se,Q as ae,a as L,c as P,R as re,T as ne,U as oe,M as ie,L as ce,e as O,w as le}from"../../chunks/index-2078054b.js";import{t as ue}from"../../chunks/utils-28c98ef8.js";import{p as fe}from"../../chunks/stores-ec4bf8fc.js";function _e(o){let e,t;return{c(){e=J("svg"),t=J("path"),this.h()},l(a){e=K(a,"svg",{xmlns:!0,viewBox:!0,fill:!0});var l=d(e);t=K(l,"path",{d:!0}),d(t).forEach(f),l.forEach(f),this.h()},h(){c(t,"d","M10.9 42q-2.05 0-3.475-1.425Q6 39.15 6 37.1t1.425-3.475Q8.85 32.2 10.9 32.2t3.475 1.425Q15.8 35.05 15.8 37.1t-1.425 3.475Q12.95 42 10.9 42Zm24.6 0q0-6.1-2.325-11.475T26.85 21.15q-4-4-9.375-6.325T6 12.5V8q7.05 0 13.225 2.675t10.8 7.3q4.625 4.625 7.3 10.8Q40 34.95 40 42Zm-11.9 0q0-7.9-4.85-12.95Q13.9 24 6 24v-4.5q4.85 0 8.9 1.7 4.05 1.7 6.975 4.7t4.575 7.125Q28.1 37.15 28.1 42Z"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"viewBox","0 0 48 48"),c(e,"fill","currentColor")},m(a,l){Q(a,e,l),u(e,t)},p:N,i:N,o:N,d(a){a&&f(e)}}}class he extends B{constructor(e){super(),H(this,e,null,_e,M,{})}}function ve(o){let e,t,a,l,s;return a=new he({}),{c(){e=p("div"),t=p("a"),Y(a.$$.fragment),l=R(" RSS Feed"),this.h()},l(r){e=g(r,"DIV",{class:!0});var i=d(e);t=g(i,"A",{href:!0,target:!0,class:!0});var h=d(t);ee(a.$$.fragment,h),l=S(h," RSS Feed"),h.forEach(f),i.forEach(f),this.h()},h(){c(t,"href",o[0]),c(t,"target","_blank"),c(t,"class","svelte-1p46gwk"),c(e,"class","svg-link-content svelte-1p46gwk")},m(r,i){Q(r,e,i),u(e,t),te(a,t,null),u(t,l),s=!0},p(r,[i]){(!s||i&1)&&c(t,"href",r[0])},i(r){s||(T(a.$$.fragment,r),s=!0)},o(r){Z(a.$$.fragment,r),s=!1},d(r){r&&f(e),se(a)}}}function de(o,e,t){let{url:a=""}=e;return o.$$set=l=>{"url"in l&&t(0,a=l.url)},[a]}class me extends B{constructor(e){super(),H(this,e,de,ve,M,{url:0})}}function W(o,e,t){const a=o.slice();return a[4]=e[t],a}function pe(o){let e,t,a=o[4].metadata.title+"",l,s,r;return{c(){e=p("li"),t=p("a"),l=R(a),r=L(),this.h()},l(i){e=g(i,"LI",{class:!0});var h=d(e);t=g(h,"A",{"sveltekit:prefetch":!0,href:!0,class:!0});var $=d(t);l=S($,a),$.forEach(f),r=P(h),h.forEach(f),this.h()},h(){c(t,"sveltekit:prefetch",""),c(t,"href",s="/news/"+o[4].slug),c(t,"class","svelte-w9b0lg"),c(e,"class","svelte-w9b0lg")},m(i,h){Q(i,e,h),u(e,t),u(t,l),u(e,r)},p(i,h){h&1&&a!==(a=i[4].metadata.title+"")&&le(l,a),h&1&&s!==(s="/news/"+i[4].slug)&&c(t,"href",s)},d(i){i&&f(e)}}}function ge(o){let e,t=o[4].metadata.title+"",a;return{c(){e=p("li"),a=R(t),this.h()},l(l){e=g(l,"LI",{class:!0});var s=d(e);a=S(s,t),s.forEach(f),this.h()},h(){c(e,"class","active svelte-w9b0lg")},m(l,s){Q(l,e,s),u(e,a)},p(l,s){s&1&&t!==(t=l[4].metadata.title+"")&&le(a,t)},d(l){l&&f(e)}}}function X(o){let e;function t(s,r){return s[1].url.pathname===`/news/${s[4].slug}`?ge:pe}let a=t(o),l=a(o);return{c(){l.c(),e=O()},l(s){l.l(s),e=O()},m(s,r){l.m(s,r),Q(s,e,r)},p(s,r){a===(a=t(s))&&l?l.p(s,r):(l.d(1),l=a(s),l&&(l.c(),l.m(e.parentNode,e)))},d(s){l.d(s),s&&f(e)}}}function we(o){let e,t,a,l,s,r,i,h,$,A,E,D,k,j,C,y,q;const F=o[3].default,m=ae(F,o,o[2],null);let I=o[0],v=[];for(let n=0;n<I.length;n+=1)v[n]=X(W(o,I,n));return y=new me({props:{url:"/rss/news.xml"}}),{c(){e=p("div"),t=p("div"),m&&m.c(),a=L(),l=p("aside"),s=p("div"),r=p("div"),i=R("Latest News"),h=L(),$=p("hr"),A=L(),E=p("ul");for(let n=0;n<v.length;n+=1)v[n].c();D=L(),k=p("a"),j=R("View All"),C=L(),Y(y.$$.fragment),this.h()},l(n){e=g(n,"DIV",{class:!0});var w=d(e);t=g(w,"DIV",{class:!0});var _=d(t);m&&m.l(_),_.forEach(f),a=P(w),l=g(w,"ASIDE",{class:!0});var V=d(l);s=g(V,"DIV",{class:!0});var b=d(s);r=g(b,"DIV",{class:!0});var U=d(r);i=S(U,"Latest News"),U.forEach(f),h=P(b),$=g(b,"HR",{class:!0}),A=P(b),E=g(b,"UL",{class:!0});var x=d(E);for(let G=0;G<v.length;G+=1)v[G].l(x);x.forEach(f),D=P(b),k=g(b,"A",{class:!0,"sveltekit:prefetch":!0,href:!0});var z=d(k);j=S(z,"View All"),z.forEach(f),C=P(b),ee(y.$$.fragment,b),b.forEach(f),V.forEach(f),w.forEach(f),this.h()},h(){c(t,"class","body svelte-w9b0lg"),c(r,"class","ln svelte-w9b0lg"),c($,"class","svelte-w9b0lg"),c(E,"class","svelte-w9b0lg"),c(k,"class","cta"),c(k,"sveltekit:prefetch",""),c(k,"href","/news"),c(s,"class","wrapper svelte-w9b0lg"),c(l,"class","svelte-w9b0lg"),c(e,"class","news-wrapper svelte-w9b0lg")},m(n,w){Q(n,e,w),u(e,t),m&&m.m(t,null),u(e,a),u(e,l),u(l,s),u(s,r),u(r,i),u(s,h),u(s,$),u(s,A),u(s,E);for(let _=0;_<v.length;_+=1)v[_].m(E,null);u(s,D),u(s,k),u(k,j),u(s,C),te(y,s,null),q=!0},p(n,[w]){if(m&&m.p&&(!q||w&4)&&re(m,F,n,n[2],q?oe(F,n[2],w,null):ne(n[2]),null),w&3){I=n[0];let _;for(_=0;_<I.length;_+=1){const V=W(n,I,_);v[_]?v[_].p(V,w):(v[_]=X(V),v[_].c(),v[_].m(E,null))}for(;_<v.length;_+=1)v[_].d(1);v.length=I.length}},i(n){q||(T(m,n),T(y.$$.fragment,n),q=!0)},o(n){Z(m,n),Z(y.$$.fragment,n),q=!1},d(n){n&&f(e),m&&m.d(n),ie(v,n),se(y)}}}const ye=async({fetch:o})=>{const e=await o("/news/recent-news.json");if(e.ok){const l=(await e.json()).posts;return{props:{newsPosts:ue(l,4)}}}const{message:t}=await e.json();return{error:new Error(t)}};function be(o,e,t){let a;ce(o,fe,i=>t(1,a=i));let{$$slots:l={},$$scope:s}=e,{newsPosts:r}=e;return o.$$set=i=>{"newsPosts"in i&&t(0,r=i.newsPosts),"$$scope"in i&&t(2,s=i.$$scope)},[r,a,s,l]}class qe extends B{constructor(e){super(),H(this,e,be,we,M,{newsPosts:0})}}export{qe as default,ye as load};
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.