import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{t as r}from"./timezone-keeL11Io.mjs";import{a as i,i as a,n as o,r as s,t as c}from"./utils-Zz0HFf9G2.mjs";const l={path:`/student5/:board?`,categories:[`bbs`],example:`/zuvio/student5/34`,parameters:{board:`看板 ID，空为全站文章，可在看板 URL 或下方路由找到`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`校園話題`,maintainers:[`TonyRL`],handler:u};async function u(l){let{board:u=``}=l.req.param(),d=u?(await o(e.tryGet)).find(e=>e.boardId===u).title:`全部`,{data:f}=await n(`${c}/article`,{searchParams:{api_token:i,user_id:`0`,board_id:u,sort:`time`,page:`1`,device:`web`,my_school_opinion:`1`}}),p=f.articles.map(e=>({title:e.title,description:e.abstract,pubDate:r(t(e.created_at),8),link:`${a}/article/${e.id}`,api:`${c}/article/${e.id}`,author:`${e.university} ${e.user_name}`,category:e.board_name}));return await Promise.all(p.map(t=>e.tryGet(t.link,async()=>{let{data:e}=await n(t.api,{searchParams:{api_token:i,user_id:`0`,device:`web`,ref:``}});return t.description=s(e),delete t.api,t}))),{title:`Zuvio 校園${d}話題 - 大學生論壇`,description:`Zuvio 校園話題千種動物頭像交流心得。最萌的匿名論壇，上千種逗趣動物頭像隨你變換，點頭像立即私訊功能，讓你找到共同話題的小夥伴！多人分享配對心得、聊天交友心情在此，快加入17分享！`,image:`https://s3.hicloud.net.tw/zuvio.public/public/system/images/irs_v4/chicken/shared/webshare.png`,link:`${a}/articles`,item:p,language:`zh-Hant`}}export{l as route};