import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./md5-B-_2tTxp.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{t as r}from"./timezone-keeL11Io.mjs";import{Fragment as i,jsx as a,jsxs as o}from"hono/jsx/jsx-runtime";import{renderToString as s}from"hono/jsx/dom/server";const c=e=>s(o(i,{children:[e.cover?o(i,{children:[a(`img`,{src:e.cover}),a(`br`,{})]}):null,e.content]})),l={path:`/community`,categories:[`finance`],view:0,example:`/jiuyangongshe/community`,maintainers:[`TonyRL`],name:`社群`,handler:u,radar:[{source:[`www.jiuyangongshe.com`]}]};async function u(i){let a=`https://www.jiuyangongshe.com`,o=String(Date.now());return{title:`社群 - 韭研公社-研究共享，茁壮成长（原韭菜公社）`,link:a,language:`zh-CN`,item:(await e(`https://app.jiuyangongshe.com/jystock-app/api/v2/article/community`,{method:`POST`,headers:{platform:`3`,timestamp:o,token:t(`Uu0KfOB8iUP69d3c:${o}`)},body:{category_id:``,limit:i.req.query(`limit`)?Number.parseInt(i.req.query(`limit`),10):30,order:0,start:1,type:0,back_garden:0}})).data.result.map(e=>({title:e.title,description:c({cover:e.cover,content:e.content}),link:`${a}/a/${e.article_id}`,pubDate:r(n(e.create_time,`YYYY-MM-DD HH:mm:ss`),8),author:e.user.nickname,category:e.stock_list.map(e=>e.name)}))}}export{l as route};