import{t as e}from"./got-BBDj7u1e.mjs";import{Fragment as t,jsx as n,jsxs as r}from"hono/jsx/jsx-runtime";import{load as i}from"cheerio";import{renderToString as a}from"hono/jsx/dom/server";const o=({thumb:e,description:i})=>r(t,{children:[e?n(`img`,{src:e}):null,i?n(`blockquote`,{children:n(`p`,{children:i})}):null]}),s=e=>a(n(o,{...e})),c=(t,n)=>n(t.link,async()=>{let n=i((await e({method:`get`,url:t.link})).data);return n(`.article-nfh-icon, .article-crumb, .article-share, .article-copyright`).remove(),t.description+=n(`#content`).html()??``,t.author=n(`meta[name="author"]`).attr(`content`),t});export{s as n,c as t};