import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{n,r,t as i}from"./utils-Bn_I3Ssm.mjs";const a={path:`/news/:lang?`,categories:[`social-media`],example:`/plurk/news/:lang?`,parameters:{lang:"Language, see the table above, `en` by default"},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`plurk.com/news`],target:`/news`}],name:`Plurk News`,maintainers:[`TonyRL`],handler:o,url:`plurk.com/news`};async function o(a){let{lang:o=`en`}=a.req.param(),{data:s}=await t(`${i}/PlurkTop/fetchOfficialPlurks`,{searchParams:{lang:o}}),c=await n(s.map(e=>e.user_id)),l=await Promise.all(s.map(t=>r(`plurk:${t.plurk_id}`,t,c[t.user_id].display_name,e.tryGet)));return{title:`Plurk News - Plurk`,image:`https://s.plurk.com/2c1574c02566f3b06e91.png`,link:`${i}/news`,item:l}}export{a as route};