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.cqwu.edu.cn`,a={notify:`/channel_24894.html`,academiceve:`/channel_24895.html`},o={notify:`通知`,academiceve:`学术活动`},s={path:`/news/:type?`,categories:[`university`],example:`/cqwu/news/academiceve`,parameters:{type:`可选，默认为 academiceve `},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`通知公告`,maintainers:[`Fatpandac`],handler:c,description:`| 通知公告 | 学术活动公告 |
| -------- | ------------ |
| notify   | academiceve  |`};async function c(s){let c=s.req.param(`type`)??`academiceve`,l=i+a[c],u=`重文理`+o[c]+`公告`,d=r((await n.get(l)).data),f=d(`div[class="list"] ul`).find(`li`);return{title:u,link:l,item:await Promise.all(f.map(async(a,o)=>{let s=i+d(o).find(`a`).attr(`href`),{desc:c,pubDate:l}=await e.tryGet(s,async()=>{let e=r((await n.get(s)).data);return{desc:e(`.contentAtice`).html(),pubDate:t(e(`.abs span:nth-child(1)`).text().replace(`发布时间：`,``))}});return{title:d(o).find(`.title`).text(),link:s,description:c,pubDate:l}}))}}export{s as route};