import{t as e}from"./parse-date-BdYTmLpo.mjs";import{i as t}from"./common-utils-B6fqqa3X.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{jsx as r,jsxs as i}from"hono/jsx/jsx-runtime";import{load as a}from"cheerio";import{renderToString as o}from"hono/jsx/dom/server";const s={path:`*`,name:`Unknown`,maintainers:[],handler:c};async function c(i){let s=`http://www.zyshow.net${t(i).replace(/\/$/,``)}/`,c=a((await n({method:`get`,url:s})).data),u=c(`table`).last().find(`tr td a img.icon-play`).toArray().map(t=>{t=c(t).parentsUntil(`tbody`);let n=t.find(`a[title]`).first(),i=t.find(`td`).eq(2).text();return{title:n.text(),link:`${s}v/${n.attr(`href`).split(`/v/`).pop()}`,pubDate:e(n.text().match(/(\d{8})$/)[1],`YYYYMMDD`),description:o(r(l,{date:t.find(`td`).first().text(),subject:t.find(`td`).eq(1).text(),guests:i,link:`${s}v/${n.attr(`href`).split(`/v/`).pop()}`})),category:i.split(/,|;/)}});return{title:`综艺秀 - ${c(`h2`).text()}`,link:s,item:u}}const l=({link:e,date:t,subject:n,guests:a})=>r(`table`,{children:i(`tbody`,{children:[i(`tr`,{children:[r(`td`,{children:`播出日期：`}),r(`td`,{children:r(`b`,{children:r(`a`,{href:e,children:t})})})]}),i(`tr`,{children:[r(`td`,{children:`节目主题：`}),r(`td`,{children:r(`b`,{children:n})})]}),i(`tr`,{children:[r(`td`,{children:`节目来宾：`}),r(`td`,{children:r(`b`,{children:a})})]})]})});export{s as route};