1import{g as u,S as b,_ as w}from"./9z1CsbSN.js";import{l as k,d as m,C as D,v as E,G as B,V as L,Y as O,H as U}from"./D0677_FA.js";const z=k({__name:"ScrambleText",props:{text:{},textClass:{default:""},delay:{default:0},duration:{default:1.5},chars:{default:"01"},revealDelay:{default:.5},tweenLength:{default:10},oldColor:{default:"inherit"},newColor:{default:"inherit"},triggerOnScroll:{type:Boolean,default:!1},scrollTriggerStart:{default:"top 80%"}},emits:["complete"],setup(p,{expose:S,emit:f}){const a=p,C=f,s=m(),v=m(((t,e)=>{let c="";for(let r=0;r<t.length;r++)t[r]===" "||t[r]===` 2`||t[r]==="/"||t[r]==="%"?c+=t[r]:c+=e[Math.floor(Math.random()*e.length)];return c})(a.text,a.chars)),y=(t,e,c)=>{const r=c.chars||"01",g=c.duration||1.5;let i="";for(let o=0;o<e.length;o++)e[o]===" "||e[o]===` 3`||e[o]==="/"||e[o]==="%"?i+=e[o]:i+=r[Math.floor(Math.random()*r.length)];t.textContent=i;const h=u.timeline();return h.to({},{duration:g*.6,ease:"none",onUpdate(){let o="";for(let l=0;l<e.length;l++)e[l]===" "||e[l]===` 4`||e[l]==="/"||e[l]==="%"?o+=e[l]:o+=r[Math.floor(Math.random()*r.length)];t.textContent=o}}).to({},{duration:g*.4,ease:"power2.out",onUpdate(){const o=this.progress();let l="";const M=Math.floor(o*e.length);for(let n=0;n<e.length;n++)n<M||e[n]===" "||e[n]===` 5`||e[n]==="/"||e[n]==="%"?l+=e[n]:l+=r[Math.floor(Math.random()*r.length)];t.textContent=l},onComplete(){t.textContent=e}}),h},d=()=>{if(!s.value)return;const t=u.timeline({delay:a.delay,onComplete:()=>{C("complete")}});return u.set(s.value,{opacity:1}),t.add(y(s.value,a.text,{chars:a.chars,duration:a.duration,revealDelay:a.revealDelay,tweenLength:a.tweenLength})),t},_=()=>{!s.value||!a.triggerOnScroll||b.create({trigger:s.value,start:a.scrollTriggerStart,onEnter:()=>{d()},once:!0})};return D(async()=>{await E(),a.triggerOnScroll?_():d()}),S({startAnimation:d}),(t,e)=>(U(),B("span",{ref_key:"textElement",ref:s,class:O(t.textClass)},L(v.value),3))}}),I=w(z,[["__scopeId","data-v-748792a2"]]);export{I as S};
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.