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{load as i}from"cheerio";function a(e,a){return Promise.all(e.map(e=>{let o=i(e),s=o(`a`).attr(`href`),c=`http://www.shmeea.edu.cn`+s;return s[0]===`/`?a.tryGet(c,async()=>{let e=i((await n({method:`get`,url:c,headers:{Referer:`http://www.shmeea.edu.cn/page/04000/index.html`,Host:`www.shmeea.edu.cn`}})).data);return{title:o(`a`).attr(`title`),description:e(`.Article_content`).html(),link:c,pubDate:r(t(e(`.PBtime`).text(),`YYYY-MM-DD HH:mm:ss`),8)}}):{title:o(`a`).attr(`title`),description:`<a href="${s}" >附件</a>`,link:s}}))}const o={path:`/self-study`,categories:[`study`],example:`/shmeea/self-study`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.shmeea.edu.cn/page/04000/index.html`,`www.shmeea.edu.cn/`]}],name:`自学考试通知公告`,maintainers:[`h2ws`],handler:s,url:`www.shmeea.edu.cn/page/04000/index.html`};async function s(){let t=(await n({method:`get`,url:`http://www.shmeea.edu.cn/page/04000/index.html`,headers:{Host:`www.shmeea.edu.cn`}})).data;return{title:`上海自学考试 - 通知公告`,link:`http://www.shmeea.edu.cn/page/04000/index.html`,item:await a(i(t)(`#main > div.container > div > div.span9 > div.page-he  > div  > ul > li`).toArray(),e)}}export{o as route};