1import{p as l,n as g}from"./vvacRoIV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"3.4.1+da82edc"};var r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="2f86e6f9-5892-4323-91ac-4169d9745455",t._sentryDebugIdIdentifier="sentry-dbid-2f86e6f9-5892-4323-91ac-4169d9745455")}catch{}})();function w(t){return t?t.coveredArticles!=null?t.coveredArticles:t.articles??[]:[]}const S=()=>{const t=e=>{const a=e.getFullYear(),o=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${a}-${o}-${n}`},r=e=>{const[a,o,n]=e.split("-").map(Number),s=new Date(Date.UTC(a,o-1,n)),d={year:"numeric",month:"long",day:"numeric",timeZone:"UTC"};return s.toLocaleDateString("en-US",d)},c=l(null),y=l([]),u=l(!1),f=l(null),p=async()=>{if(!(typeof window>"u"))try{u.value=!0,f.value=null;const e=await $fetch("/api/briefing/latest");c.value=e}catch(e){f.value=e}finally{u.value=!1}},h=async()=>{if(!(typeof window>"u"))try{const e=[],a=new Date,o=new Date("2025-08-18");for(let n=1;n<=6;n++){const s=new Date(a);if(s.setDate(a.getDate()-n),s<o)break;const d=t(s);try{const i=await $fetch(`/api/briefing/${d}`);i&&e.push({number:i.episodeNumber,date:r(d),dateUrl:d,title:i.title||`Episode ${i.episodeNumber}`,description:i.description||i.subtitle||"",duration:`${i.estimatedListenTime||5} min`,audioUrl:i.audioUrl})}catch{}}y.value=e}catch{}},m=async()=>{await Promise.all([p(),h()])},b=g(()=>{if(!c.value)return{number:0,title:"Loading...",subtitle:"",date:"",duration:0,host:"",description:"",highlights:[]};const e=c.value;return{number:e.episodeNumber,title:e.title,subtitle:e.subtitle,date:r(e.date),duration:e.estimatedListenTime||parseInt(e.duration)||2,host:e.host,description:e.description,highlights:e.highlights||[],audioUrl:e.audioUrl||(e.date?`https://cdn3.blavity.com/blavity-briefing-${e.date}.mp3`:void 0),articles:w(e),coveredArticles:e.coveredArticles,keywords:e.keywords}}),D=g(()=>y.value||[]);return{currentEpisode:b,recentEpisodes:D,isLoading:u,error:f,loadEpisode:async e=>{await p()},fetchCurrentEpisode:p,fetchRecentEpisodes:h,refresh:m}};export{w as r,S as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.