import{d as g,g as h,c as s,o as l,F as f,l as y,n as m,b as x,t as $,p as k}from"./index-D86EVCbM.js";import{E as B}from"./ReferenceContentLoader-jQeEHBuo.js";const p=500,i=100,_=g({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(d){const u=d,t=h(()=>u.art.split(`
`)),v=(n,o)=>{var a,e,r,c;return{animationDuration:`${n*i}ms, ${p}ms`,animationTimingFunction:`steps(${n}), step-end`,animationDelay:`${o*i}ms, 0ms`,animationIterationCount:`1, ${((((a=t.value)==null?void 0:a.length)??0)+(((c=(r=t.value)==null?void 0:r[((e=t.value)==null?void 0:e.length)-1])==null?void 0:c.length)??0)+5)*i/p}`}};return(n,o)=>(l(),s("div",{class:k(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":n.animate}])},[(l(!0),s(f,null,y(t.value,(a,e)=>(l(),s("span",{key:e,class:"inline-block",style:m({width:`calc(${a.length+1}ch)`})},[x("span",{class:"inline-block whitespace-pre overflow-hidden",style:m(v(a.length,e))},$(a),5)],4))),128))],2))}}),C=B(_,[["__scopeId","data-v-3d9351de"]]);export{C as i};
