import{t as e}from"./ofetch-Dl6dVB_5.mjs";const t={path:`/:field`,categories:[`study`],example:`/dblp/knowledge%20tracing`,parameters:{field:`Research field`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`dblp.org/:field`]}],name:`Keyword Search`,maintainers:[`ytno1`],handler:n};async function n(t){let n=t.req.param(`field`),{result:{hits:{hit:r}}}=await e(`https://dblp.org/search/publ/api`,{query:{q:n,format:`json`,h:10},headers:{"Content-Type":`application/x-www-form-urlencoded; charset=UTF-8`}}),i=r.map(e=>{let{info:t}=e,{authors:{author:n},title:r,venue:i,year:a,type:o,doi:s,ee:c}=t;return{title:r,link:c,author:`${Array.isArray(n)?n[0].text:n.text} et al.`,doi:s,description:`Year: ${a??`unknown`}, Venue: ${i}, Type: ${o}, Doi: ${s}`}});return{title:`【dblp】${n}`,link:`https://dblp.org/search?q=${n}`,description:`DBLP ${n} RSS`,item:i}}export{t as route};