import{r as s,ai as l,aj as p,j as a,$ as x,z as C,L as f,N as g}from"./index.Drusyo5m.js";const M=({children:t})=>{const e=s.useContext(l)?.();return e?p.createPortal(t,e):a(x,{children:t})},P=C("div",{target:"e1smm6vf0"})({"@media print":{display:"none"}}),u=({className:t,scriptRunId:e,numParticles:o,numParticleTypes:r,ParticleComponent:n})=>{const{resourceCrossOriginMode:i}=s.useContext(f),c=s.useMemo(()=>g(o).map(()=>Math.floor(Math.random()*r)),[o,r]);return a(P,{className:t,"data-testid":t,children:c.map((m,d)=>a(n,{particleType:m,resourceCrossOriginMode:i},e+d))})},j=s.memo(u);export{j as P,M as R};
