import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{load as n}from"cheerio";const r=`http://www.szse.cn/`,i={path:`/notice`,categories:[`finance`],example:`/szse/notice`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`szse.cn/disclosure/notice/company/index.html`,`szse.cn/`]}],name:`上市公告 - 可转换债券`,maintainers:[`Jeason0228`,`nczitzk`],handler:a,url:`szse.cn/disclosure/notice/company/index.html`};async function a(){let i=`http://www.szse.cn/disclosure/notice/company/index.html`,a=n((await t.get(i,{Referer:r})).data);function o(e,t){let n=/(?<=curHref = ').*?(?=';)/,r=/(?<=curTitle =').*?(?=';)/;switch(t){case`title`:return e.match(r);case`url`:return e.match(n);default:break}}let s=a(`.article-list .newslist li`).toArray().map(e=>(e=a(e),{title:o(e.find(`script`).text(),`title`),link:new URL(o(e.find(`script`).text(),`url`),i).href,date:e.find(`span.time`).text().trim()}));return{title:`深圳证券交易所——上市公告-可转换债券`,link:i,item:await Promise.all(s.map(async i=>{let a=i.title,o=i.date,s=new URL(i.link,r).href,c=await e.get(s);if(c)return JSON.parse(c);let l={title:a,link:s,description:n((await t.get(s,{Referer:r})).data)(`#desContent`).html(),pubDate:new Date(o).toDateString()};return e.set(s,JSON.stringify(l)),l}))}}export{i as route};