1import{r as m,o as M,y as n,O as j,v as z,Y as g}from"./entry.b60081fe.js";import{c as B}from"./math.446e3ae1.js";function S(t){const o=m(0),y=t.index||0,x=t.autoLoop!==null?t.autoLoop:!0,r=t.autoHeight!==null?t.autoHeight:!1,T=t.canInterrupt!==null?t.autoHeight:!1,f=t.interval||0,u=m(!1);let i=null;M(()=>{l(n(y),!1),n(r)&&h()}),j(()=>{v()}),z(t.node,()=>{n(r)&&h()});const d=()=>{l(o.value+1)},H=()=>{l(o.value-1)},E=()=>Math.max(...t.containers.map(e=>n(e).children.length))??0,l=async(e,s=!0)=>{if(!n(T)&&u.value)return null;u.value=!0,v(),n(f)!==0&&L();const a=E(),c=e>o.value;n(x)?e=a!==0?(e%a+a)%a:0:e=B(0,a-1,e);const w=o.value,A=e;o.value=e,t.transition?await t.transition(w,A,c):I(e),u.value=!1},I=e=>{t.containers.forEach(s=>{g(n(s).children).forEach((a,c)=>{a.style.visibility=e===c?"":"hidden"})})},b=()=>{o.value=0,t.containers.forEach(e=>{g(n(e).children).forEach((s,a)=>{s.style.visibility=o.value===a?"":"hidden"})})},h=()=>{},L=()=>{i||(i=setTimeout(()=>d(),n(f)))},v=()=>{i&&clearInterval(i),i=null};return{index:o,previous:H,next:d,goTo:l,reset:b}}export{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.