import{$n as e,a as t,an as n,d as r,tr as i}from"./B-6m3w3Q.js";var a=t(`outline`,`file-stack`,`FileStack`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M5 21h14`,key:`svg-2`}],[`path`,{d:`M5 18h14`,key:`svg-3`}],[`path`,{d:`M5 15h14`,key:`svg-4`}]]),o=250;const s=n(`logs`,()=>{let t=r(),n=i([]),a=e(!1),s=1,c=[],l=null,u=()=>{l=null,c.length!==0&&(c.reverse(),n.value=[...c,...n.value].slice(0,t.logMaxRows),c=[])},d=()=>{l||=setTimeout(u,o)};return{logs:n,paused:a,addLog:e=>{a.value||(c.push({...e,seq:s}),s++,d())},clearLogs:()=>{l&&=(clearTimeout(l),null),c=[],n.value=[],s=1},togglePaused:()=>{a.value=!a.value}}});export{a as n,s as t};