import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n,s as r,t as i}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{t as a}from"./react-dom.DmpKrvBr.js";import{r as o}from"./UriUtil.FL3SkPFA.js";import{Mt as s,kn as c}from"./index.D3kRk1xg.js";var l=e(t(),1),u=e(a(),1),d=({children:e})=>{let t=(0,l.useContext)(s)?.();return t?(0,u.createPortal)(e,t):n(r,{children:e})},f=i(`div`,{target:`e1smm6vf0`})({"@media print":{display:`none`}}),p=(0,l.memo)(({className:e,scriptRunId:t,numParticles:r,numParticleTypes:i,ParticleComponent:a})=>{let{resourceCrossOriginMode:s}=(0,l.useContext)(o);return n(f,{className:e,"data-testid":e,children:(0,l.useMemo)(()=>c(r).map(()=>Math.floor(Math.random()*i)),[r,i]).map((e,r)=>n(a,{particleType:e,resourceCrossOriginMode:s},t+r))})});export{d as n,p as t};