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={path:`/`,radar:[{source:[`ahhhhfs.com/`],target:``}],name:`存档列表`,maintainers:[`zhenhappy`],handler:a,url:`ahhhhfs.com/`,features:{nsfw:!0}};async function a(i){let a=(await n({method:`get`,url:`https://www.ahhhhfs.com/wp-json/wp/v2/posts`,searchParams:{per_page:i.req.query(`limit`)?Number.parseInt(i.req.query(`limit`)):10,_embed:``}})).data.map(e=>({title:e.title.rendered,link:e.link,pubDate:t(e.date_gmt),updated:t(e.modified_gmt),author:e._embedded.author[0].name,category:[...new Set(e._embedded[`wp:term`].flatMap(e=>e.map(e=>e.name)))]}));return{title:`ahhhhfs-A姐分享`,link:`https://www.ahhhhfs.com`,description:`A姐分享，分享各种网络云盘资源、BT种子、高清电影电视剧和羊毛福利，收集各种有趣实用的软件和APP的下载、安装、使用方法，发现一些稀奇古怪的的网站，折腾一些有趣实用的教程，关注谷歌苹果等互联网最新的资讯动态，探索新领域，发现新美好，分享小快乐。`,item:await Promise.all(a.map(t=>e.tryGet(t.link,async()=>{let e=r((await n({method:`get`,url:t.link})).data);return e(`article.post-content`).find(`.lwptoc`).remove(),e(`article.post-content`).find(`#related_posts`).remove(),e(`article.post-content`).find(`.entry-copyright`).remove(),e(`article.post-content img`).each(function(){e(this).replaceWith(`<img src=https:${e(this).attr(`src`)}>`)}),t.description=e(`article.post-content`).html(),t})))}}export{i as route};