{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/effects/hearts/index.ts"],"names":["DefaultOptions","maxCount","gravity","maxDrift","maxRot","Hearts","constructor","options","_this","_defineProperty","async","canvas","timeout","arguments","length","undefined","context","getContext","particles","count","push","resetParticle","width","height","isRunning","requestAnimationFrame","renderLoop","window","setTimeout","stop","this","particle","color","colours","Math","random","x","y","xCol","scale","maximumDrift","maximumRot","clearRect","Date","now","lastAnimationTime","animateAndRenderHearts","_objectSpread","arrayFastClone","peakDistance","PI2","PI","sin","posScale","save","beginPath","translate","rotate","moveTo","bezierCurveTo","closePath","fillStyle","fill","restore","idx","indexOf","splice"],"mappings":"uxBAiDO,MAAMA,EAA+B,CACxCC,SAAU,IACVC,QAAS,IACTC,SAAU,EACVC,OAAQ,GAKG,MAAMC,EAGVC,YAAYC,GAAiC,IAAAC,EAAA,KAAAC,IAAA,uBAAAA,IAAA,eAID,MAAIA,IAAA,iBACrB,IAAEA,IAAA,yBACR,GAACA,IAAA,eAEX,CACd,sBACA,sBACA,qBACA,sBACA,sBACA,sBACA,qBACA,qBACA,oBACA,sBACA,sBACA,wBACHA,IAAA,kBAEkB,GAAKA,IAAA,cAETC,eAAOC,GAA6D,IAAlCC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IACvD,IAAKF,EACD,OAEJH,EAAKQ,QAAUL,EAAOM,WAAW,MACjCT,EAAKU,UAAY,GACjB,MAAMC,EAAQX,EAAKD,QAAQN,SAC3B,KAAOO,EAAKU,UAAUJ,OAASK,GAC3BX,EAAKU,UAAUE,KAAKZ,EAAKa,cAAc,CAAC,EAAYV,EAAOW,MAAOX,EAAOY,SAE7Ef,EAAKgB,WAAY,EACjBC,sBAAsBjB,EAAKkB,YACvBd,GACAe,OAAOC,WAAWpB,EAAKqB,KAAMjB,EAErC,IAACH,IAAA,aAEaC,UACVoB,KAAKN,WAAY,CAAK,IACzBf,IAAA,sBAEuB,CAACsB,EAAiBT,EAA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