import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{load as r}from"cheerio";const i=`https://www.laohu8.com`,a={path:`/personal/:id`,categories:[`finance`],view:0,example:`/laohu8/personal/3527667596890271`,parameters:{id:`用户 ID，见网址链接`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`laohu8.com/personal/:id`]}],name:`个人主页`,maintainers:[`Fatpandac`],handler:o};async function o(a){let o=`${i}/personal/${a.req.param(`id`)}`,s=r((await n(o)).data),c=s(`h2.personal-name`).text(),l=JSON.parse(s(`#__APP_DATA__`).text()).tweetList,u=await Promise.all(l.map(n=>e.tryGet(n.link,()=>({title:n.title,description:String(n.htmlText).replaceAll(`
`,`<br><br>`),link:`${i}/post/${n.id}`,pubDate:t(n.gmtCreate)}))));return{title:`老虎社区 - ${c} 个人社区`,link:o,item:u}}export{a as route};