/* Decretando Disney — fondo aurora boreal. Exporta window.Aurora */ (function(){ const { useMemo } = React; function Aurora({ dim }){ // estrellas generadas una sola vez const stars = useMemo(()=>{ const arr=[]; for(let i=0;i<150;i++){ const big = Math.random()>0.86; arr.push({ left: Math.random()*100, top: Math.random()*92, size: big? 2.4+Math.random()*1.8 : 1+Math.random()*1.4, tw: (2.5+Math.random()*5).toFixed(2)+'s', delay: (-Math.random()*6).toFixed(2)+'s', glow: big }); } return arr; },[]); const sparks = useMemo(()=>{ const arr=[]; for(let i=0;i<14;i++){ arr.push({ left: Math.random()*100, size: 8+Math.random()*12, fl: (10+Math.random()*12).toFixed(1)+'s', delay: (-Math.random()*18).toFixed(1)+'s' }); } return arr; },[]); const shoots = useMemo(()=>([ { top:14, left:8, dur:'8s', delay:'2s' }, { top:30, left:55, dur:'11s', delay:'7s' } ]),[]); return (
); } window.Aurora = Aurora; })();