import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{load as n}from"cheerio";const r={path:`/:category?`,categories:[`travel`],example:`/nippon/Politics`,parameters:{category:`默认政治，可选如下`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.nippon.com/nippon/:category?`,`www.nippon.com/cn`]}],name:`政治外交`,description:`| 政治     | 经济    | 社会    | 展览预告 | 焦点专题           | 深度报道 | 话题         | 日本信息库 | 日本一蹩      | 人物访谈 | 编辑部通告    |
| -------- | ------- | ------- | -------- | ------------------ | -------- | ------------ | ---------- | ------------- | -------- | ------------- |
| Politics | Economy | Society | Culture  | Science,Technology | In-depth | japan-topics | japan-data | japan-glances | People   | Announcements |`,maintainers:[`laampui`],handler:i};async function i(r){let i=r.req.param(`category`)??`Politics`,a=i===`Science,Technology`?`condition4`:`category_code`,o=(await t.get(`https://www.nippon.com/api/search/cn/${a}/20/1/${i}?t=${Date.now()}`)).data.body.dataList.map(e=>({title:e.title,link:`https://www.nippon.com/${e.pub_url}`,pubDate:e.pub_date})),s=await Promise.all(o.slice(0,10).map(r=>e.tryGet(r.link,async()=>(r.description=n((await t.get(r.link)).data)(`.editArea`).html(),r))));return{title:`走进日本 - ${i}`,link:`https://www.nippon.com/cn/economy/`,item:s}}export{r as route};