import{t as e}from"./cache-DUthuMSu.mjs";import{i as t,n,r,t as i}from"./util-CnGD4X50.mjs";const a={path:`/author/:id`,categories:[`new-media`],example:`/cyzone/author/1225562`,parameters:{id:`作者 id，可在对应作者页 URL 中找到`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`cyzone.cn/author/:id`,`cyzone.cn/`]}],name:`作者`,maintainers:[`nczitzk`],handler:o};async function o(a){let o=a.req.param(`id`),s=a.req.query(`limit`)?Number.parseInt(a.req.query(`limit`),10):5,c=new URL(`v2/author/author/detail`,i).href,l=new URL(`author/${o}`,t).href;return{item:await r(c,s,e.tryGet,{author_id:o}),...await n(l,e.tryGet)}}export{a as route};