import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import{Fragment as n,jsx as r,jsxs as i}from"hono/jsx/jsx-runtime";import{renderToString as a}from"hono/jsx/dom/server";import{raw as o}from"hono/html";const s={path:`/weekly`,categories:[`anime`],view:0,example:`/cngal/weekly`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.cngal.org/`,`www.cngal.org/weeklynews`]}],name:`每周速报`,maintainers:[`kmod-midori`],handler:c,url:`www.cngal.org/`};async function c(){return{title:`CnGal - 每周速报`,link:`https://www.cngal.org/weeklynews`,item:(await t(`https://api.cngal.org/api/news/GetWeeklyNewsOverview`)).data.map(t=>({title:t.name,description:l(t),pubDate:e(t.lastEditTime),link:`https://www.cngal.org/articles/index/${t.id}`}))}}const l=e=>{let t=e.briefIntroduction?e.briefIntroduction.trim().replaceAll(`
`,`<br>`):``;return a(i(n,{children:[r(`p`,{children:t?o(t):null}),e.mainImage?r(`img`,{src:e.mainImage}):null]}))};export{s as route};