import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";const n={path:`/shortcuts`,categories:[`new-media`],example:`/sspai/shortcuts`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`shortcuts.sspai.com/*`]}],name:`Shortcuts Gallery`,maintainers:[`Andiedie`],handler:r,url:`shortcuts.sspai.com/*`};async function r(){let{data:{data:n}}=await t(`https://shortcuts.sspai.com/api/v1/user/workflow/all/get`),r=[];for(let t of n)for(let n of t.data||[])r.push({title:n.name,description:`作者：<a href="${n.author_url||`#`}">${n.author_id}</a><br/>${decodeURIComponent((n.description||``).replaceAll(`+`,`%20`))}`,pubDate:e(n.utime*1e3),guid:n.id,link:n.url});return{title:`Shortcuts Gallery - 少数派`,link:`https://shortcuts.sspai.com/#/main/workflow`,description:`Shortcuts Gallery - 少数派`,item:r}}export{n as route};