25import{c as Xe,d as _T,e as jr,f as je,h as gy,i as yy}from"./chunk-VTO3F6DK.js";import{a as Ge}from"./chunk-QGAJTUPE.js";import{A as m,B as Fc,C as et,D as Ns,F as tt,G as qt,H as...
26 `)}i(zs,"extractAllText");async function*X$(t,e){let n=Wt(t),o=e.clone().body;if(!o||!n)return;let r=o.getReader(),s=new TextDecoder,a="";try{for(;;){let{done:c,value:u}=await r.re...
⋯
29`).filter(d=>d.startsWith("data:")).map(d=>d.slice(5).trim());if(n.length===0)return null;let o=n.join(`
30`);if(o==="[DONE]")return{raw:"[DONE]",done:!0};let r;try{r=JSON.parse(o)}catch{return{raw:o}}let s=r,a=e==="openai-responses"?s?.response:e==="anthropic-messages"?s?.message:void ...
31`).filter(e=>!e.trim().startsWith("at async file")).map((e,n)=>{let o=e.replaceAll(bz,"").replaceAll(Rz,"").