import{Fn as e,Mn as t,Ut as n}from"#entry";import{t as r}from"./N_4v4qwM.js";var i=250,a=n(`logs`,()=>{let n=r(),a=e([]),o=t(!1),s=1,c=[],l=null,u=()=>{l=null,c.length!==0&&(c.reverse(),a.value=[...c,...a.value].slice(0,n.logMaxRows),c=[])},d=()=>{l||=setTimeout(u,i)};return{logs:a,paused:o,addLog:e=>{o.value||(c.push({...e,seq:s}),s++,d())},clearLogs:()=>{l&&=(clearTimeout(l),null),c=[],a.value=[],s=1},togglePaused:()=>{o.value=!o.value}}});export{a as t};