{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/effects/fireworks/index.ts"],"names":["DefaultOptions","maxCount","gravity","Fireworks","constructor","options","_this","_defineProperty","window","requestAnimationFrame","async","canvas","timeout","arguments","length","undefined","isRunning","context","getContext","supportsAnimationFrame","call","updateWorld","setTimeout","stop","this","particles","update","paint","createFirework","alive","i","move","push","globalCompositeOperation","fillStyle","fillRect","width","height","drawParticle","xPoint","Math","random","yPoint","nFire","color","particle","w","h","x","y","vx","vy","alpha","sqrt","abs","save","beginPath","translate","arc","PI","globalAlpha","closePath","fill","restore","screen","_objectSpread"],"mappings":"8wBAyDO,MAAMA,EAAmC,CAC5CC,SAAU,IACVC,QAAS,KAGE,MAAMC,EAGVC,YAAYC,GAAiC,IAAAC,EAAA,KAAAC,IAAA,uBAAAA,IAAA,eAID,MAAIA,IAAA,8BACtBC,OAAOC,uBAAqBF,IAAA,iBACf,IAAEA,IAAA,kBAC7B,GAAKA,IAAA,cAETG,eAAOC,GAA6D,IAAlCC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAClDF,IAGLL,EAAKU,WAAY,EACjBV,EAAKW,QAAUN,EAAOO,WAAW,MACjCZ,EAAKa,uBAAuBC,KAAKZ,OAAQF,EAAKe,aAC1CT,GACAJ,OAAOc,WAAWhB,EAAKiB,KAAMX,GAErC,IAACL,IAAA,oBAEqB,MACbiB,KAAKR,WAAuC,IAA1BQ,KAAKC,UAAUX,UACtCU,KAAKE,SACLF,KAAKG,QACLH,KAAKL,uBAAuBC,KAAKZ,OAAQgB,KAAKH,aAAY,IAC7Dd,IAAA,eAEgB,KACTiB,KAAKC,UAAUX,OAASU,KAAKnB,QAAQJ,UAAYuB,KAAKR,WACtDQ,KAAKI,iBAET,MAAMC,EAA6B,GACnC,IAAK,IAAIC,EAAI,EAAGA,EAAIN,KAAKC,UAAUX,OAAQgB,IACnCN,KAAKO,KAAKP,KAAKC,UAAUK,KACzBD,EAAMG,KA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