import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import r from"node:zlib";import{load as i}from"cheerio";import a from"markdown-it";const o=a({breaks:!0,html:!0}),s={path:`/changelog`,example:`/typeless/changelog`,categories:[`program-update`],radar:[{source:[`www.typeless.com/help/release-notes/*`,`www.typeless.com/help/release-notes`,`www.typeless.com`]}],name:`Changelog`,maintainers:[`TonyRL`],handler:c,url:`www.typeless.com/help/release-notes`};async function c(){let a=`https://www.typeless.com`,s=(await Promise.all([`macos`,`windows`,`ios`,`android`].map(async n=>{let o=i(await e(`${a}/help/release-notes/${n}`)),s=JSON.parse(o(`#__NEXT_DATA__`).text()).props.pageProps;return t.tryGet(`typeless:changelog:${n}:${s.updatedAt}`,()=>{let e=s.compressedData,t=Buffer.from(e,`base64`),n=r.gunzipSync(t).toString(`utf-8`),i=JSON.parse(n);return{appPlatform:s.platform,decompressedData:Object.values(i).map(e=>e.en)}})}))).flatMap(e=>e.decompressedData.map(t=>{let r=t.features[0];return{title:r.title,description:o.render(r.content),pubDate:n(t.date),link:r.learnMore?`${a}${r.learnMore}`:void 0,category:[e.appPlatform],guid:`typeless:${e.appPlatform}:${t.version}`}}));return{title:`Typeless app release notes`,link:`${a}/help/release-notes`,image:`${a}/logo_500.png`,item:s}}export{s as route};