1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f4d66e56-df90-46b0-88d2-0556fe6261d8",e._sentryDebugIdIdentifier="sentry-dbid-f4d66e56-df90-46b0-88d2-0556fe6261d8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7731],{87731:(e,t,i)=>{i.d(t,{bS:()=>q});var r=i(55729),o=i(89315),a=Object.defineProperty,l=Object.defineProperties,n=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,h=(e,t)=>{for(var i in t||(t={}))c.call(t,i)&&f(e,i,t[i]);if(s)for(var i of s(t))d.call(t,i)&&f(e,i,t[i]);return e},p=(e,t)=>Math.random()*(t-e)+e,u=e=>e*Math.PI/180,y=()=>Math.random().toString(36).substring(2,9),m=e=>e[Math.floor(Math.random()*e.length)]||e[0]||"#ffffff",g=new class{constructor(e=1e3){this.pool=[],this.created=0,this.maxSize=e}acquire(){let e=this.pool.pop();return e?(e._pooled=!1,e):(this.created++,{id:`p${this.created}`,x:0,y:0,vx:0,vy:0,life:0,opacity:0,size:0,rotation:0,color:"",_pooled:!1})}release(e){e._pooled||this.pool.length>=this.maxSize||(e._pooled=!0,e.element=void 0,e.config=void 0,this.pool.push(e))}releaseAll(e){e.forEach(e=>this.release(e))}clear(){this.pool=[]}getStats(){return{poolSize:this.pool.length,totalCreated:this.created,maxSize:this.maxSize}}};function x(e,t){let i=[];for(let r=0;r<e;r++)i.push(function(e){let t=g.acquire();return Object.assign(t,e),e.id||(t.id=`p${Date.now()}-${Math.random().toString(36).substr(2,9)}`),t}(t(r)));return i}var b=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],v=["#ff1744","#e91e63","#ff4569","#ff6b6b","#ee5a70"],F=["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffffff"],$=["rgba(66, 165, 245, 0.4)","rgba(41, 182, 246, 0.4)","rgba(38, 198, 218, 0.4)","rgba(129, 212, 250, 0.4)"],M=["#FFD700","#FFA500","#FF6347","#FFE4B5"],w=["#FFFFFF","#F0F8FF","#F5F5F5","#FAFAFA"],z=["\uD83C\uDF89","\uD83C\uDF8A","\uD83C\uDF88","\uD83C\uDF81","â¨","\uD83C\uDF1F","\uD83D\uDCAB","\uD83C\uDFAF"],E=["#FFD700","#FFA500","#FFB300","#FFC700"],C=["#FFB6C1","#FFC0CB","#FF69B4","#FF1493","#FFF0F5"],k=["#00ff88","#00ffaa","#00ddff","#0099ff","#0066ff","#9933ff","#ff00ff"],S=["#FFFF99","#FFFFCC","#FFFF66","#FFFFAA"],P=["#FF006E","#FB5607","#FFBE0B","#8338EC","#3A86FF","#06FFB4"],B=["#FF006E","#FB5607","#FFBE0B","#8338EC","#3A86FF","#06FFB4","#FF4081"],A=["#FFFFFF","#FFF9C4","#BBDEFB","#C5CAE9","#D1C4E9","#FFE082","#FFCCBC"],R=["#9C27B0","#E91E63","#FF00FF","#00FFFF","#FFD700","#FF69B4","#DA70D6","#9370DB"],I=["#FF1493","#00CED1","#FFD700","#FF69B4","#7B68EE","#00FA9A","#FF6347","#4169E1"],D=["#D2691E","#CD853F","#8B4513","#A0522D","#FF8C00","#FF6347"],O=["#ff6b6b","#4ecdc4","#45b7d1","#f7dc6f","#bb8fce","#85c1f5","#ffd93d","#6bcf7f"],L=["#FFFFFF","#FFF8DC","#FFFACD","#FFE4B5","#FFDEAD","#F0E68C","#FFD700"],V=["#FF1744","#F50057","#D500F9","#651FFF","#2979FF","#00E5FF","#1DE9B6","#00E676","#76FF03","#FFEA00","#FFC400","#FF9100"],T=["#00D9FF","#FF006E","#FFB700","#8338EC","#3A86FF","#06FFA5","#FF4365","#FFEE32","#9B5DE5","#00F5FF","#F15BB5","#00BBF9"],N={confetti:{createParticles:(e,t)=>{let{particleCount:i=50,startVelocity:r=20,colors:o=b,elementSize:a=20}=t;return x(i,()=>{let i=p(0,360),l=p(.5*r,r),n=m(o);return{id:y(),x:e.x,y:e.y,vx:Math.cos(u(i))*l,vy:Math.sin(u(i))*l-30,life:t.lifetime||150,opacity:1,size:p(.7*a,1.5*a),rotation:p(0,360),color:n}})},renderParticle:e=>{var t,i;let o=(null==(i=null==(t=e.config)?void 0:t.effects)?void 0:i.flutter)&&e.life>0?`rotateY(${360*Math.sin(.1*e.life)}deg)`:"";return r.createElement("div",{key:e.id,style:{width:"100%",height:"60%",backgroundColor:e.color,borderRadius:"3px",boxShadow:"0 2px 4px rgba(0,0,0,0.2)",transform:o,transformStyle:"preserve-3d",perspective:"1000px"}})}},sparkles:{createParticles:(e,t)=>{let{particleCount:i=35,spread:r=120,startVelocity:o=15,elementSize:a=25,colors:l=["#FFD700","#FFFFFF"]}=t;return x(i,()=>{let i=o/45;return{id:y(),x:e.x+p(-r,r),y:e.y+p(-r,r),vx:p(-3,3)*i,vy:p(-3,3)*i,life:t.lifetime||120,opacity:0,size:p(.4*a,1.2*a),rotation:p(0,360),color:l[Math.floor(Math.random()*l.length)]||l[0]||"#ffffff"}})},renderParticle:e=>{var t,i;let o=e.opacity,a=null!=(i=null==(t=e.config)?void 0:t.effects)&&i.twinkle?.3+.7*Math.abs(Math.sin(.2*e.life)):1;return r.createElement("svg",{key:e.id,width:"100%",height:"100%",viewBox:"0 0 24 24",style:{transform:`scale(${o}) rotate(${e.rotation}deg)`,filter:"drop-shadow(0 0 6px rgba(255, 215, 0, 0.8))",opacity:a,transition:"opacity 0.1s ease-out"}},r.createElement("path",{d:"M12 0L14.59 8.41L23 11L14.59 13.59L12 22L9.41 13.59L1 11L9.41 8.41L12 0Z",fill:e.color}))}},hearts:{createParticles:(e,t)=>{let{particleCount:i=25,startVelocity:r=12,colors:o=v,elementSize:a=30}=t;return x(i,()=>{let i=p(-45,-135),l=p(.7*r,1.3*r),n=p(-2,2);return{id:y(),x:e.x+p(-10,10),y:e.y,vx:Math.cos(i*Math.PI/180)*l+n,vy:Math.sin(i*Math.PI/180)*l,life:t.lifetime||180,opacity:1,size:p(.6*a,1.2*a),rotation:p(-20,20),color:m(o)}})},renderParticle:e=>{var t,i;let o=null!=(i=null==(t=e.config)?void 0:t.effects)&&i.pulse?1+.1*Math.sin(.2*e.life):1;return r.createElement("svg",{key:e.id,width:"100%",height:"100%",viewBox:"0 0 24 24",fill:e.color,style:{filter:`drop-shadow(0 0 ${.15*e.size}px ${e.color})`,transform:`scale(${o})`,transition:"transform 0.1s ease-out"}},r.createElement("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"}))}},fireworks:{createParticles:(e,t)=>{let{particleCount:i=60,startVelocity:r=25,colors:o=F,elementSize:a=8}=t;return x(i,l=>{let n=360/i*l+p(-5,5),s=p(.5*r,1.2*r),c=m(o);return{id:y(),x:e.x,y:e.y,vx:Math.cos(u(n))*s,vy:Math.sin(u(n))*s-10,life:t.lifetime||140,opacity:1,size:p(.6*a,1.4*a),rotation:0,
1color:c}})},renderParticle:e=>r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:"#ffffff",borderRadius:"50%",boxShadow:` 2 0 0 ${e.size}px ${e.color}, 3 0 0 ${2*e.size}px ${e.color}, 4 0 0 ${3*e.size}px ${e.color}, 5 0 0 ${4*e.size}px ${e.color} 6 `,background:`radial-gradient(circle, #ffffff 0%, ${e.color} 40%, transparent 70%)`}})},bubbles:{createParticles:(e,t)=>{let{particleCount:i=30,spread:r=80,startVelocity:o=8,colors:a=$,elementSize:l=40}=t;return x(i,()=>({id:y(),x:e.x+p(-r,r),y:e.y,vx:p(-3,3),vy:-p(.7*o,1.2*o),life:t.lifetime||160,opacity:.7,size:p(.4*l,1.2*l),rotation:0,color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}))},renderParticle:e=>r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",border:"2px solid rgba(255, 255, 255, 0.6)",backgroundImage:"radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent)",boxShadow:` 7 inset 0 0 ${.3*e.size}px rgba(255, 255, 255, 0.4), 8 0 0 ${.5*e.size}px ${e.color} 9 `}})},stars:{createParticles:(e,t)=>{let{particleCount:i=40,startVelocity:r=18,colors:o=M,elementSize:a=30}=t;return x(i,()=>{let i=p(0,360),l=p(.5*r,r);return{id:y(),x:e.x,y:e.y,vx:Math.cos(i*Math.PI/180)*l,vy:Math.sin(i*Math.PI/180)*l-15,life:t.lifetime||150,opacity:1,size:p(.5*a,1.3*a),rotation:p(0,360),color:o[Math.floor(Math.random()*o.length)]||o[0]||"#ffffff"}})},renderParticle:e=>{var t,i;let o=null!=(i=null==(t=e.config)?void 0:t.effects)&&i.twinkle?.3+.7*Math.abs(Math.sin(.15*e.life)):1;return r.createElement("svg",{key:e.id,width:"100%",height:"100%",viewBox:"0 0 24 24",fill:e.color,style:{filter:`drop-shadow(0 0 ${.2*e.size}px ${e.color})`,opacity:o,transition:"opacity 0.1s ease-out"}},r.createElement("path",{d:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"}))}},snow:{createParticles:(e,t)=>{let{particleCount:i=50,spread:r=200,startVelocity:o=3,colors:a=w,elementSize:l=15}=t;return x(i,()=>{let i=e.x+p(-(2*r),2*r),n=e.y-p(100,300);return{id:y(),x:i,y:n,vx:p(-.5,.5),vy:p(.5*o,1.2*o),life:t.lifetime||300,opacity:p(.4,.9),size:p(.3*l,l),rotation:p(0,360),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",boxShadow:` 10 0 0 ${.5*e.size}px rgba(255, 255, 255, 0.8), 11 inset 0 0 ${.3*e.size}px rgba(255, 255, 255, 0.5) 12 `,filter:"blur(0.5px)"}})},emoji:{createParticles:(e,t)=>{let{particleCount:i=30,spread:r=100,startVelocity:o=15,elementSize:a=35,emojis:l=z}=t;return x(i,()=>{let i=p(-45,-135),n=p(.5*o,1.2*o);return{id:y(),x:e.x+p(-r,r),y:e.y,vx:Math.cos(i*Math.PI/180)*n,vy:Math.sin(i*Math.PI/180)*n,life:t.lifetime||180,opacity:1,size:p(.7*a,1.3*a),rotation:p(-45,45),color:"",element:l[Math.floor(Math.random()*l.length)]}})},renderParticle:e=>r.createElement("div",{key:e.id,style:{fontSize:`${e.size}px`,lineHeight:1,userSelect:"none",filter:e.opacity<.5?"blur(1px)":void 0}},e.element)},coins:{createParticles:(e,t)=>{let{particleCount:i=30,spread:r=70,startVelocity:o=25,colors:a=E,elementSize:l=25}=t;return x(i,()=>{let i=p(-r/2,r/2)*(Math.PI/180),n=p(.5*o,o);return{id:y(),x:e.x,y:e.y,vx:Math.sin(i)*n,vy:-Math.cos(i)*n,life:t.lifetime||120,opacity:1,size:p(.8*l,1.2*l),rotation:p(0,360),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{var t,i,o,a;let l=null!=(i=null==(t=e.config)?void 0:t.effects)&&i.spin3D?8:2,n=(120-e.life)*l;return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",background:`radial-gradient(ellipse at 30% 30%, ${e.color}, #B8860B)`,borderRadius:"50%",transform:null!=(a=null==(o=e.config)?void 0:o.effects)&&a.spin3D?`rotateY(${n}deg)`:`rotate(${n}deg)`,transformStyle:"preserve-3d",perspective:"1000px",boxShadow:` 13 inset -2px -2px 4px rgba(0, 0, 0, 0.3), 14 inset 2px 2px 4px rgba(255, 255, 255, 0.5), 15 0 2px 4px rgba(0, 0, 0, 0.3) 16 `,border:`1px solid ${e.color}`,position:"relative",overflow:"hidden"}},r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:`${.5*e.size}px`,fontWeight:"bold",color:"#B8860B",textShadow:"1px 1px 1px rgba(0, 0, 0, 0.3)",fontFamily:"Arial, sans-serif",opacity:1}},"$"))}},petals:{createParticles:(e,t)=>{let{particleCount:i=40,spread:r=100,startVelocity:o=8,colors:a=C,elementSize:l=20}=t;return x(i,()=>{let i=p(-r/2,r/2)*(Math.PI/180),n=p(.3*o,o);return{id:y(),x:e.x+p(-20,20),y:e.y-p(0,30),vx:Math.sin(i)*n,vy:p(2,5),life:t.lifetime||200,opacity:p(.7,1),size:p(.7*l,1.3*l),rotation:p(0,360),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{let t=15*Math.sin((200-e.life)*.1),i=10*Math.sin(.1*e.life);return r.createElement("div",{key:e.id,style:{width:"100%",height:"120%",position:"relative",transform:`translateX(${t}px) rotate(${i}deg)`,transformStyle:"preserve-3d"}},r.createElement("div",{style:{width:"100%",height:"100%",background:`radial-gradient(ellipse at 50% 30%, ${e.color}, ${e.color}DD)`,borderRadius:"0% 100% 0% 100%",position:"absolute",boxShadow:` 17 inset 1px 1px 3px rgba(255, 255, 255, 0.5), 18 0 2px 4px rgba(0, 0, 0, 0.1) 19 `,border:`1px solid ${e.color}CC`,transform:"rotateY(45deg)"}}),r.createElement("div",{style:{width:"100%",height:"100%",background:`radial-gradient(ellipse at 50% 30%, ${e.color}EE, ${e.color}BB)`,borderRadius:"0% 100% 0% 100%",position:"absolute",transform:"rotate(45deg) scale(0.9)",opacity:.8}}))}},aurora:{createParticles:(e,t)=>{let{particleCount:i=20,spread:r=300,startVelocity:o=.8,colors:a=k,elementSize:l=100}=t;return x(i,n=>{let s=n/i*r-r/2,c=p(-30,30);return{id:y(),x:e.x+s+c,y:e.y,vx:p(-.5,.5),vy:-o,life:t.lifetime||250,opacity:1,size:p(.8*l,1.2*l),rotation:p(-15,15),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{let t=10*Math.sin(.02*e.life),i=e.opacity*(e.life>350?(400-e.life)/50:1)*(e.life<50?e.life/50:1)*.4;return r.createElement("div",{key:e.id,style:{width:`${e.size}px`,height:`${.3*e.size}px`,position:"relative",transform:`translateX(${t}px)`,filter:"blur(2px)"}},r.createElement("div",{style:{width:"100%",height:"100%",background:`linear-gradient(90deg, transparent, ${e.color}, transparent)`,borderRadius:"50%",opacity:i,boxShadow:`0 0 ${.5*e.size}px ${e.color}`,animation:"shimmer 2s infinite"}}),r.createElement("div",{style:{position:"absolute",top:"20%",left:"10%",width:"80%",height:"60%",background:`radial-gradient(ellipse at center, ${e.color}44, transparent)`,borderRadius:"50%",opacity:.5*i,filter:"blur(4px)"}}))}},fireflies:{createParticles:(e,t)=>{let{particleCount:i=20,spread:r=150,startVelocity:o=2,colors:a=S,elementSize:l=8}=t;return x(i,()=>{let i=p(0,360)*(Math.PI/180),n=p(.3*o,o);return{id:y(),x:e.x+p(-r/2,r/2),y:e.y+p(-20,20),vx:Math.cos(i)*n,vy:Math.sin(i)*n*.5,life:t.lifetime||300,opacity:0,size:p(.6*l,l),rotation:p(0,360),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{let t=15*Math.sin(.02*e.life+e.rotation),i=10*Math.cos(.03*e.life+e.rotation),o=Math.sin(.1*e.life+.1*e.rotation)>.3?1:.1,a=Math.min(Math.min(1,(300-e.life)/30),e.life/300);return r.createElement("div",{key:e.id,style:{width:`${e.size}px`,height:`${e.size}px`,position:"relative",transform:`translate(${t}px, ${i}px)`}},r.createElement("div",{style:{width:"100%",height:"100%",background:e.color,borderRadius:"50%",opacity:a*o,boxSh
19adow:` 20 0 0 ${e.size}px ${e.color}, 21 0 0 ${2*e.size}px ${e.color}, 22 0 0 ${3*e.size}px ${e.color}88 23 `,transition:"opacity 0.3s ease"}}),r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${4*e.size}px`,height:`${4*e.size}px`,background:`radial-gradient(circle, ${e.color}44 0%, transparent 70%)`,borderRadius:"50%",transform:"translate(-50%, -50%)",opacity:a*o*.5,transition:"opacity 0.3s ease"}}))}},paint:{createParticles:(e,t)=>{let{particleCount:i=25,spread:r=120,startVelocity:o=35,colors:a=P,elementSize:l=30}=t;return x(i,i=>{let n=p(-r/2,r/2)*(Math.PI/180),s=p(.5*o,o),c=i<5;return{id:y(),x:e.x,y:e.y,vx:Math.sin(n)*s*(c?.3:1),vy:-Math.cos(n)*s*.7+5*!!c,life:t.lifetime||150,opacity:1,size:c?p(1.5*l,2.5*l):p(.3*l,l),rotation:p(0,360),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{let t=1+(Math.abs(e.vx)+Math.abs(e.vy))*.01,i=e.size>15&&e.rotation>180,o=i?.5*e.size:0;return r.createElement("div",{key:e.id,style:{width:`${e.size}px`,height:`${e.size}px`,position:"relative",transform:` 24 scaleX(${t}) 25 scaleY(${1/t}) 26 rotate(${180*Math.atan2(e.vy,e.vx)/Math.PI}deg) 27 `}},r.createElement("div",{style:{width:"100%",height:"100%",background:e.color,borderRadius:"50%",position:"relative",boxShadow:"inset -2px -2px 4px rgba(0,0,0,0.2)"}},r.createElement("div",{style:{position:"absolute",top:"20%",left:"20%",width:"30%",height:"30%",background:e.color,borderRadius:"50%",opacity:.8,transform:`translate(${p(-5,5)}px, ${p(-5,5)}px)`}}),r.createElement("div",{style:{position:"absolute",bottom:"15%",right:"15%",width:"25%",height:"25%",background:e.color,borderRadius:"50%",opacity:.7}})),i&&r.createElement("div",{style:{position:"absolute",bottom:`
27-${o}px`,left:"40%",width:"20%",height:`${o}px`,background:e.color,borderRadius:"0 0 50% 50%",opacity:.9}}))}},balloons:{createParticles:(e,t)=>{let{particleCount:i=15,spread:r=80,startVelocity:o=10,colors:a=B,elementSize:l=35}=t;return x(i,()=>{let i=p(-r/2,r/2)*(Math.PI/180),n=p(.7*o,o);return{id:y(),x:e.x+p(-(.8*r),.8*r),y:e.y+p(-10,30),vx:Math.sin(i)*n*.3+p(-1,1),vy:-(.4*n),life:t.lifetime||250,opacity:.9,size:p(.8*l,1.2*l),rotation:p(-10,10),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{let t=15*Math.sin(.03*e.life),i=5*Math.sin(.05*e.life),o=e.life>50?1:e.life/50;return r.createElement("div",{key:e.id,style:{width:"100%",height:"120%",position:"relative",transform:` 28 translateX(${t}px) 29 translateY(${i}px) 30 rotate(${.2*t}deg) 31 `,opacity:e.opacity*o}},r.createElement("div",{style:{width:"100%",height:"100%",background:`radial-gradient(circle at 30% 30%, ${e.color}ee, ${e.color})`,borderRadius:"50% 50% 50% 50% / 60% 60% 40% 40%",position:"relative",boxShadow:` 32 inset -5px -5px 10px rgba(0,0,0,0.2), 33 0 4px 8px rgba(0,0,0,0.2) 34 `}},r.createElement("div",{style:{position:"absolute",top:"15%",left:"20%",width:"25%",height:"30%",background:"radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%)",borderRadius:"50%",transform:"rotate(-20deg)"}}),r.createElement("div",{style:{position:"absolute",bottom:"-5px",left:"50%",transform:"translateX(-50%)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:`8px solid ${e.color}`}})),r.createElement("svg",{style:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",width:"2px",height:`${2*e.size}px`,opacity:.6}},r.createElement("path",{d:`M1 0 Q ${1+3*Math.sin(.1*e.life)} ${e.size} 1 ${2*e.size}`,stroke:e.color,strokeWidth:"1.5",fill:"none",opacity:"0.4"})))}},galaxy:{createParticles:(e,t)=>{let{particleCount:i=60,spread:r=200,startVelocity:o=15,colors:a=A,elementSize:l=8}=t;return x(i,n=>{let s=n/i,c=s*Math.PI*4,d=p(-.3,.3),f=p(-10,10),h=c+d,u=s*r+f,m=Math.cos(h)*u,g=Math.sin(h)*u,x=h+Math.PI/2,b=o*(1-.5*s);return{id:y(),x:e.x,y:e.y,vx:Math.cos(x)*b*.3+.02*m,vy:Math.sin(x)*b*.3+.02*g,life:t.lifetime||250,opacity:0,size:p(.3*l,l)*(1-.5*s),rotation:p(0,360),color:a[Math.floor(Math.random()*a.length)]||a[0]||"#ffffff"}})},renderParticle:e=>{let t=1+(250-e.life)/250*.5,i=Math.min(Math.min(1,(250-e.life)/30),e.life/250),o=.3*Math.sin(.2*e.life+e.rotation)+.7;return r.createElement("div",{key:e.id,style:{width:`${e.size}px`,height:`${e.size}px`,position:"relative",transform:`scale(${t})`,opacity:i*o}},r.createElement("div",{style:{width:"100%",height:"100%",background:e.color,borderRadius:"50%",boxShadow:` 35 0 0 ${e.size}px ${e.color}, 36 0 0 ${2*e.size}px ${e.color}88, 37 0 0 ${3*e.size}px ${e.color}44 38 `,position:"relative"}},r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${3*e.size}px`,height:"1px",background:`linear-gradient(90deg, transparent, ${e.color}, transparent)`,transform:`translate(-50%, -50%) rotate(${e.rotation}deg)`,opacity:o}}),r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:"1px",height:`${3*e.size}px`,background:`linear-gradient(180deg, transparent, ${e.color}, transparent)`,transform:`translate(-50%, -50%) rotate(${e.rotation}deg)`,opacity:o}})),e.size>5&&r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${6*e.size}px`,height:`${6*e.size}px`,background:`radial-gradient(circle, ${e.color}22 0%, transparent 70%)`,borderRadius:"50%",transform:"translate(-50%, -50%)",opacity:.3*i,filter:"blur(3px)"}}))}},glitch:{createParticles:(e,t)=>{let{particleCount:i=20,elementSize:r=200}=t,o=[],a=["r","g","b"];for(let l=0;l<i;l++){let i=Math.random()>.3,n=l%3,s=a[n],c=i?p(50,200):p(2,8),d=i?p(2,8):p(50,200),f=n+4*!!i+(Math.floor(c)<<3)+(Math.floor(d)<<11)+(p(-20,20)+32<<19);o.push({id:y(),x:e.x+p(-r/2,r/2),y:e.y+p(-r/2,r/2),vx:p(-50,50),vy:p(-30,30),life:t.lifetime||150,opacity:p(.3,1),size:p(5,20),rotation:f,color:"r"===s?"#ff0000":"g"===s?"#00ff00":"#0000ff"})}return o},renderParticle:e=>{let t=3&e.rotation,i=e.rotation>>3&255,o=e.rotation>>11&255,a=(e.rotation>>19&63)-32,l=["r","g","b"][t],n=e.size,s={r:255*("r"===l),g:255*("g"===l),b:255*("b"===l)};return r.createElement("div",{key:e.id,style:{width:`${i}px`,height:`${o}px`,backgroundColor:`rgba(${s.r}, ${s.g}, ${s.b}, ${e.opacity})`,mixBlendMode:"r"===l?"screen":"g"===l?"multiply":"difference",filter:`blur(${p(0,2)}px)`,boxShadow:`${a}px 0 ${n}px rgba(${s.r}, ${s.g}, ${s.b}, ${.5*e.opacity})`}})}},magicdust:{createParticles:(e,t)=>{let{particleCount:i=40,startVelocity:r=8,colors:o=R,elementSize:a=12}=t;return x(i,l=>{let n=l/i*360+p(-30,30),s=p(.3*r,r),c=m(o),d=p(0,360),f=p(0,30);return{id:y(),x:e.x+Math.cos(u(d))*f,y:e.y+Math.sin(u(d))*f,vx:Math.cos(u(n))*s+p(-2,2),vy:Math.sin(u(n))*s+p(-2,2),life:t.lifetime||120,opacity:p(.4,1),size:p(.3*a,a),rotation:p(0,360),color:c}})},renderParticle:e=>{let t=.7*e.size;return r.createElement("div",{key:e.id,style:{width:`${e.size}px`,height:`${e.size}px`,position:"relative"}}
38,r.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",boxShadow:`0 0 ${e.size}px ${e.color}, 0 0 ${2*e.size}px ${e.color}`,filter:"blur(1px)"}}),r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${t}px`,height:`${t}px`,transform:`translate(-50%, -50%) rotate(${e.rotation}deg)`}},r.createElement("div",{style:{position:"absolute",width:"100%",height:"2px",backgroundColor:"white",top:"50%",left:"0",transform:"translateY(-50%)",boxShadow:"0 0 4px white"}}),r.createElement("div",{style:{position:"absolute",width:"2px",height:"100%",backgroundColor:"white",left:"50%",top:"0",transform:"translateX(-50%)",boxShadow:"0 0 4px white"}})))}},crystals:{createParticles:(e,t)=>{let{particleCount:i=15,startVelocity:r=15,colors:o=I,elementSize:a=25}=t;return x(i,()=>{let i=p(0,360),l=p(.5*r,r),n=m(o);return{id:y(),x:e.x,y:e.y,vx:Math.cos(u(i))*l,vy:Math.sin(u(i))*l-10,life:t.lifetime||150,opacity:p(.7,1),size:p(.6*a,a),rotation:p(0,360),color:n}})},renderParticle:e=>{let t=(.5*Date.now()+e.x+e.y)%360;return r.createElement("div",{key:e.id,style:{width:`${e.size}px`,height:`${1.5*e.size}px`,position:"relative",transform:`rotate(${e.rotation}deg)`}},r.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",background:`linear-gradient(135deg, ${e.color}, ${e.color}88, transparent)`,clipPath:"polygon(50% 0%, 100% 40%, 75% 100%, 25% 100%, 0% 40%)",boxShadow:`0 0 ${e.size}px ${e.color}44`}}),r.createElement("div",{style:{position:"absolute",width:"80%",height:"80%",top:"10%",left:"10%",background:"linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent)",clipPath:"polygon(50% 10%, 90% 45%, 65% 90%, 35% 90%, 10% 45%)"}}),r.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",background:`linear-gradient(${t}deg, 39 hsla(${t}, 100%, 50%, 0.3), 40 hsla(${(t+60)%360}, 100%, 50%, 0.3), 41 hsla(${(t+120)%360}, 100%, 50%, 0.3) 42 )`,clipPath:"polygon(50% 0%, 100% 40%, 75% 100%, 25% 100%, 0% 40%)",mixBlendMode:"screen"}}),r.createElement("div",{style:{position:"absolute",width:"30%",height:"30%",top:"20%",left:"35%",background:"radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent)",borderRadius:"50%",filter:"blur(2px)"}}))}},leaves:{createParticles:(e,t)=>{let{particleCount:i=10,colors:r=D,elementSize:o=25}=t;return x(i,()=>({id:y(),x:e.x+p(-100,100),y:e.y+p(-50,0),vx:p(-1,1),vy:p(.5,2),life:t.lifetime||300,opacity:1,size:p(.6*o,o),rotation:Math.floor(p(0,360))+1e3*Math.floor(p(0,360))+1e6*Math.floor(p(20,40))+(Math.floor(p(-3,3))+3)*1e8,color:m(r)}))},renderParticle:e=>{let t=e.rotation%1e3,i=Math.floor(e.rotation%1e6/1e3),o=Math.floor(e.rotation%1e8/1e6),a=Math.floor(e.rotation/1e8)-3,l=30*Math.sin((.002*Date.now()+t)*Math.PI/180),n=Math.sin((.001*Date.now()+i)*Math.PI/180)*o,s=(Date.now()*a*.01+l)%360;return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",position:"relative",transform:`translateX(${n}px) rotate(${s}deg)`}},r.createElement("svg",{width:"100%",height:"100%",viewBox:`-${e.size/2} -${e.size/2} ${e.size} ${e.size}`,style:{position:"absolute",top:0,left:0}},r.createElement("path",{d:` 43 M 0,-${e.size/2} 44 C -${e.size/3},-${e.size/3} -${e.size/3},${e.size/3} 0,${e.size/2} 45 C ${e.size/3},${e.size/3} ${e.size/3},-${e.size/3} 0,-${e.size/2} 46 `,fill:e.color,opacity:"0.9"}),r.createElement("line",{x1:"0",y1:-e.size/2,x2:"0",y2:e.size/2,stroke:"#8B4513",strokeWidth:"1",opacity:"0.5"}),r.createElement("line",{x1:"0",y1:-e.size/4,x2:-e.size/4,y2:-e.size/8,stroke:"#8B4513",strokeWidth:"0.5",opacity:"0.5"}),r.createElement("line",{x1:"0",y1:-e.size/4,x2:e.size/4,y2:-e.size/8,stroke:"#8B4513",strokeWidth:"0.5",opacity:"0.5"}),r.createElement("line",{x1:"0",y1:e.size/4,x2:-e.size/4,y2:e.size/8,stroke:"#8B4513",strokeWidth:"0.5",opacity:"0.5"}),r.createElement("line",{x1:"0",y1:e.size/4,x2:e.size/4,y2:e.size/8,stroke:"#8B4513",strokeWidth:"0.5",opacity:"0.5"})))}},mortar:{createParticles:(e,t)=>{let{particleCount:i=3,spread:r=60,startVelocity:o=12,colors:a=O,elementSize:l=8}=t,n=[],s=x(i,n=>{let s=i>1?r/(i-1):0,c=p(.9*o,1.1*o),d=a[Math.floor(Math.random()*a.length)],f=u(-90-r/2+s*n),h=p(20,35);return{id:y(),x:e.x,y:e.y,vx:Math.cos(f)*c,vy:Math.sin(f)*c,life:t.lifetime||200,opacity:1,size:l,rotation:0,
46color:d,config:t,element:JSON.stringify({isShell:!0,hasExploded:!1,timeToExplode:h,burstCount:p(30,45),burstColor:d})}});n.push(...s);for(let t=0;t<8;t++){let t=x(1,()=>({id:y(),x:e.x+p(-5,5),y:e.y,vx:p(-2,2),vy:p(-10,-3),life:p(10,20),opacity:1,size:p(2,3),rotation:0,color:"#ffaa00",element:JSON.stringify({isLaunchSpark:!0})}));n.push(...t)}return n},renderParticle:e=>{let t={};try{e.element&&"string"==typeof e.element&&(t=JSON.parse(e.element))}catch(e){}if(t.isLaunchSpark)return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",opacity:e.opacity,boxShadow:`0 0 3px ${e.color}`}});if(t.isTrail){let t=e.opacity*(e.life/30)*.4;return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",background:`radial-gradient(circle, ${e.color}88 0%, transparent 60%)`,borderRadius:"50%",opacity:t,filter:"blur(1px)"}})}if(t.isBurst){let i=e.opacity*Math.pow(e.life/120,.5);if(t.isGalaxy){let o=t.twinkle?.3+.7*Math.sin(.3*e.life):1;return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",opacity:i*o,boxShadow:`0 0 ${2*e.size}px ${e.color}`,transform:`rotate(${e.rotation}deg)`}})}return t.isCore?r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:"#FFFFFF",borderRadius:"50%",opacity:i,boxShadow:`0 0 ${3*e.size}px #FFFFFF`}}):r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",opacity:i,boxShadow:` 47 0 0 ${e.size}px ${e.color}, 48 0 0 ${2*e.size}px ${e.color}88 49 `,filter:e.life>80?"blur(0px)":"blur(1px)"}})}if(t.isShell){if(t.hasExploded)return null;let i=180*Math.atan2(e.vy,e.vx)/Math.PI;return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",position:"relative",transform:`rotate(${i}deg)`}},r.createElement("div",{style:{width:"100%",height:"100%",backgroundColor:"#ffffff",borderRadius:"50%",boxShadow:` 50 0 0 ${.5*e.size}px #ffffff, 51 0 0 ${e.size}px ${e.color}, 52 0 0 ${2*e.size}px ${e.color}88 53 `}}))}return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",backgroundColor:e.color,borderRadius:"50%",opacity:e.opacity}})}},bokeh:{createParticles:(e,t)=>{let{particleCount:i=50,spread:r=300,startVelocity:o=1,colors:a=L,elementSize:l=40,lifetime:n=200}=t;return x(i,()=>{let t=Math.random()*Math.PI*2,i=p(0,r),s=Math.random(),c=l*(.3+.7*s);return{id:y(),x:e.x+Math.cos(t)*i,y:e.y+Math.sin(t)*i,vx:p(-.5,.5)*o,vy:p(-.5,-1.5)*o,life:n,opacity:.1+.5*s,size:c,rotation:0,color:a[Math.floor(Math.random()*a.length)],element:JSON.stringify({depth:s,pulsePhase:Math.random()*Math.PI*2,baseSize:c})}})},renderParticle:e=>{var t;let i={};try{e.element&&"string"==typeof e.element&&(i=JSON.parse(e.element))}catch(e){}let o=.1*Math.sin(.05*e.life+(i.pulsePhase||0))+1,a=(i.baseSize||e.size)*o,l=Math.min(1,((null==(t=e.config)?void 0:t.lifetime)||200-e.life)/20),n=Math.min(1,e.life/40),s=e.opacity*l*n;return r.createElement("div",{key:e.id,style:{width:"100%",height:"100%",position:"relative"}},r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${3*a}px`,height:`${3*a}px`,transform:"translate(-50%, -50%)",background:`radial-gradient(circle, ${e.color}22 0%, transparent 50%)`,filter:"blur(20px)",opacity:.6*s}}),r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${2*a}px`,height:`${2*a}px`,transform:"translate(-50%, -50%)",background:`radial-gradient(circle, ${e.color}44 0%, transparent 60%)`,filter:"blur(10px)",opacity:.8*s}}),r.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:`${a}px`,height:`${a}px`,transform:"translate(-50%, -50%)",background:`radial-gradient(circle, ${e.color}88 0%, ${e.color}44 50%, transparent 100%)`,borderRadius:"50%",filter:"blur(2px)",opacity:s}}))}},ribbons:{createParticles:(e,t)=>{let{particleCount:i=25,spread:r=120,startVelocity:o=15,colors:a=V,elementSize:l=60,lifetime:n=200}=t;return x(i,()=>{let t=p(-r/2,r/2)-90,i=p(.7*o,o),s=m(a);return{id:y(),x:e.x,y:e.y,vx:Math.cos(u(t))*i,vy:Math.sin(u(t))*i-10,life:n,opacity:1,size:l,rotation:p(0,360),color:s,element:JSON.stringify({waveSpeed:p(.1,.2),waveAmplitude:p(20,40),segments:5,twistSpeed:p(.
5305,.15)})}})},renderParticle:e=>{var t;let i={};try{e.element&&"string"==typeof e.element&&(i=JSON.parse(e.element))}catch(e){}let{waveSpeed:o=.15,waveAmplitude:a=30,segments:l=5,twistSpeed:n=.1}=i,s=e.life/((null==(t=e.config)?void 0:t.lifetime)||200),c=Math.sin(e.life*o)*a*s,d=180*Math.sin(e.life*n),f=[e.color,`${e.color}CC`,`${e.color}99`,`${e.color}66`,`${e.color}33`];return r.createElement("div",{key:e.id,style:{width:`${.15*e.size}px`,height:`${e.size}px`,background:`linear-gradient(to bottom, ${f.join(", ")})`,borderRadius:"2px",boxShadow:`0 2px 8px ${e.color}66`,opacity:e.opacity*s,transform:`translateX(${c}px) rotateZ(${d}deg) rotateY(${e.rotation}deg)`,transformStyle:"preserve-3d",transformOrigin:"center top"}})}},geometric:{createParticles:(e,t)=>{let{particleCount:i=30,spread:r=360,startVelocity:o=25,colors:a=T,elementSize:l=25,lifetime:n=120}=t,s=["triangle","square","diamond","hexagon","star"];return x(i,()=>{let t=p(0,360),i=p(.5*o,o),r=m(a),c=s[Math.floor(Math.random()*s.length)];return{id:y(),x:e.x,y:e.y,vx:Math.cos(u(t))*i,vy:Math.sin(u(t))*i-15,life:n,opacity:1,size:p(.6*l,1.2*l),rotation:p(0,360),color:r,element:JSON.stringify({shape:c,spinSpeed:p(-5,5),pulseSpeed:p(.05,.1)})}})},renderParticle:e=>{var t;let i={};try{e.element&&"string"==typeof e.element&&(i=JSON.parse(e.element))}catch(e){}let{shape:o="square",spinSpeed:a=3,pulseSpeed:l=.08}=i,n=e.life/((null==(t=e.config)?void 0:t.lifetime)||120),s=e.rotation+e.life*a,c=1+.1*Math.sin(e.life*l);return r.createElement("div",{key:e.id,style:{width:`${e.size*c}px`,height:`${e.size*c}px`,background:`linear-gradient(135deg, ${e.color} 0%, ${e.color}CC 50%, ${e.color}99 100%)`,clipPath:(e=>{switch(e){case"triangle":return"polygon(50% 0%, 0% 100%, 100% 100%)";case"square":default:return"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)";case"diamond":return"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";case"hexagon":return"polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%)";case"star":return"polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)"}})(o),opacity:e.opacity*n,transform:`rotate(${s}deg)`,boxShadow:`0 0 ${10*n}px ${e.color}66`,filter:`brightness(${1+.5*n})`}})}}},J=()=>{if("u"<typeof window)return!1;let e=navigator.userAgent||navigator.vendor||window.opera||"",t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i=window.innerWidth<=768,r="ontouchstart"in window||navigator.maxTouchPoints>0;return t||i&&r},j=new class{constructor(){this.animations=new Map,this.rafId=null,this.isRunning=!1,this.lastFrameTime=0,this.frameInterval=1e3/60,this.frameCount=0,this.fpsUpdateInterval=1e3,this.lastFpsUpdate=0,this.currentFps=0,this.update=this.update.bind(this)}addAnimation(e){this.animations.set(e.id,e),!this.isRunning&&this.animations.size>0&&this.start()}removeAnimation(e){let t=this.animations.get(e);t&&(g.releaseAll(t.particles),t.containerElement&&document.body.contains(t.containerElement)&&document.body.removeChild(t.containerElement),this.animations.delete(e)),0===this.animations.size&&this.stop()}start(){this.isRunning||(this.isRunning=!0,this.lastFrameTime=performance.now(),this.lastFpsUpdate=this.lastFrameTime,this.frameCount=0,this.rafId=requestAnimationFrame(this.update))}stop(){this.isRunning&&(this.isRunning=!1,null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null))}update(e){let t=e-this.lastFrameTime;if(t<this.frameInterval||(this.lastFrameTime=e-t%this.frameInterval,this.frameCount++,e-this.lastFpsUpdate>=this.fpsUpdateInterval&&(this.currentFps=this.frameCount,this.frameCount=0,this.lastFpsUpdate=e),document.hidden)){this.rafId=requestAnimationFrame(this.update);return}let i=[];this.animations.forEach((e,t)=>{let r;if(e.isPaused)return;e.frameCount++;let o=(r=e.frameCount,!!J()&&r%3==0),a=0,l=[];e.particles=e.particles.map(t=>(t.life<=0||(a++,t.x+=t.vx,t.y+=t.vy,t.vy+=e.physics.gravity,t.vx+=e.physics.wind,t.vx*=e.physics.friction,t.vy*=e.physics.friction,"sparkles"===e.animationType?t.rotation+=5:t.rotation+=2*t.vx,t.life-=1.2,this.applyEffects(t,e),this.handleMortarExplosion(t,e,l),this.updateOpacity(t,e)),t)),l.length>0&&e.particles.push(...l),e.updateCallback&&!o&&e.updateCallback(e.particles),0===a&&(i.push(t),e.onComplete&&e.onComplete())}
53),i.forEach(e=>this.removeAnimation(e)),this.isRunning&&(this.rafId=requestAnimationFrame(this.update))}applyEffects(e,t){var i;let r=null==(i=t.config)?void 0:i.effects;if(!r)return;let{animationType:o}=t;r.flutter&&"confetti"===o&&(e.x+=.5*Math.sin(.1*e.life),e.rotation+=2*Math.sin(.05*e.life)),r.windDrift&&("snow"===o||"leaves"===o)&&(e.x+=.8*Math.sin(.05*e.life+e.id.charCodeAt(0))),r.wobble&&"bubbles"===o&&(e.x+=.3*Math.sin(.08*e.life),e.y+=.2*Math.cos(.08*e.life))}handleMortarExplosion(e,t,i){var r,o;if(!("mortar"!==t.animationType||!e.element))try{let a=JSON.parse(e.element);if(a.isShell&&!a.hasExploded){if(t.frameCount%3==0){let t=g.acquire();Object.assign(t,{id:`${e.id}-trail-${Date.now()}`,x:e.x+p(-2,2),y:e.y+p(-2,2),vx:p(-1,1),vy:p(0,2),life:30,opacity:.8,size:.7*e.size,rotation:0,color:e.color,element:JSON.stringify({isTrail:!0}),config:e.config}),i.push(t)}if((null!=(o=null==(r=e.config)?void 0:r.lifetime)?o:200)-e.life>=(a.timeToExplode||25)){a.hasExploded=!0,e.element=JSON.stringify(a);let t=window.innerWidth<768,r=t?20:30,o=[],l=["#FFFFFF","#FFF9C4","#BBDEFB","#C5CAE9","#D1C4E9","#FFE082","#FFCCBC"];for(let t=0;t<r;t++){let i=t/r,a=i*Math.PI*6,n=80*i,s=p(-.4,.4),c=p(-15,15),d=a+s,f=(n+c)*.5,h=d+Math.PI/2,u=3*(1-.3*i),y=g.acquire();Object.assign(y,{id:`${e.id}-burst-${t}`,x:e.x+Math.cos(d)*f*.1,y:e.y+Math.sin(d)*f*.1,vx:Math.cos(h)*u+2*Math.cos(d),vy:Math.sin(h)*u+2*Math.sin(d),life:120-40*i,opacity:1,size:p(2,5)*(1-.5*i),rotation:p(0,360),color:l[Math.floor(Math.random()*l.length)],element:JSON.stringify({isBurst:!0,isGalaxy:!0,twinkle:Math.random()>.7}),config:e.config}),o.push(y)}let n=t?5:8;for(let t=0;t<n;t++){let i=2*Math.PI*t/n,r=g.acquire();Object.assign(r,{id:`${e.id}-core-${t}`,x:e.x,y:e.y,vx:Math.cos(i)*p(1,2),vy:Math.sin(i)*p(1,2),life:60,opacity:1,size:p(3,5),rotation:0,color:"#FFFFFF",element:JSON.stringify({isBurst:!0,isCore:!0}),config:e.config}),o.push(r)}let s=g.acquire();Object.assign(s,{id:`${e.id}-flash`,x:e.x,y:e.y,vx:0,vy:0,life:20,opacity:1,size:30,rotation:0,color:"#ffffff",element:JSON.stringify({isBurst:!0}),config:e.config}),o.push(s),i.push(...o)}}}catch(e){}}updateOpacity(e,t){let{animationType:i,config:r}=t,o=null==r?void 0:r.effects;"sparkles"===i?(e.life>70?e.opacity=(100-e.life)/30:e.life<30&&(e.opacity=e.life/30),null!=o&&o.twinkle&&(e.opacity*=.5+.5*Math.sin(.3*e.life))):"stars"===i&&null!=o&&o.twinkle?e.opacity=e.life/100*(.5+.5*Math.sin(.3*e.life)):e.opacity=e.life/100}getStats(){return{activeAnimations:this.animations.size,currentFps:this.currentFps,isRunning:this.isRunning,totalParticles:Array.from(this.animations.values()).reduce((e,t)=>e+t.particles.filter(e=>e.life>0).length,0)}}setTargetFPS(e){this.frameInterval=1e3/e}pauseAnimation(e){let t=this.animations.get(e);t&&!t.isPaused&&(t.isPaused=!0,t.pausedAt=performance.now())}resumeAnimation(e){let t=this.animations.get(e);t&&t.isPaused&&(t.isPaused=!1,this.animations.size>0&&!this.isRunning&&this.start())}isAnimationPaused(e){let t=this.animations.get(e);return!!t&&!!t.isPaused}getAnimation(e){return this.animations.get(e)}};function q(e,t,i){let[a,s]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=(0,r.useRef)(null),f=(0,r.useRef)(null),p=(0,r.useRef)(null),u="string"==typeof e,y=u?p:e,m=(0,r.useCallback)(()=>new Promise(a=>{var p,m,g,x,b,v,F,$,M,w,z,E,C,k,S,P,B;let A,R,I=null;if(u){if("u"<typeof document)return;I=document.getElementById(e)}else I=y.current;if(!I){null==(p=console.warn)||p.call(console,`[Partycles] Element ${u?`with ID "${e}"`:"from ref"} not found. Make sure the element exists when reward() is called.`),a();return}let D=I.getBoundingClientRect(),O={x:D.left+D.width/2,y:D.top+D.height/2},L=N[t];if(!L){console.error(`Animation type "${t}" not found`),a();return}let V=i?(k=i,J()?(A=h({},k),R={particleCount:Math.floor(.6*(k.particleCount||50)),elementSize:Math.floor(.8*(k.elementSize||20)),lifetime:Math.floor(.8*(k.lifetime||150)),physics:l(h({},k.physics),n({gravity:Math.round(100*((null==(S=k.physics)?void 0:S.gravity)||0))/100,wind:Math.round(100*((null==(P=k.physics)?void 0:P.wind)||0))/100,friction:Math.round(100*((null==(B=k.physics)?void 0:B.friction)||.98))/100}))},l(A,n(R))):k):void 0,T=L.createParticles(O,V||{}).map(e=>l(h({},e),n({config:V||i})));if("u"<typeof document)return void a();let q=document.createElement("div");q.style.position="fixed",q.style.top="0",q.style.left="0",q.style.width="100%",q.style.height="100%",q.style.pointerEvents="none",q.style.zIndex="9999",document.body.appendChild(q),d.current=q,f.current=(0,o.createRoot)(q),q.getBoundingClientRect();let _="bubbles"===t?-.1:"snow"===t?.05:.35,X=null!=(b=null!=(x=null==(m=null==V?void 0:V.physics)?void 0:m.gravity)?x:null==(g=null==i?void 0:i.physics)?void 0:g.gravity)?b:_,W=null!=(M=null!=($=null==(v=null==V?void 0:V.physics)?void 0:v.friction)?$:null==(F=null==i?void 0:i.physics)?void 0:F.friction)?M:.98,Y=null!=(C=null!=(E=null==(w=null==V?void 0:V.physics)?void 0:w.wind)?E:null==(z=null==i?void 0:i.physics)?void 0:z.wind)?C:0,U=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`;c.current=U,j.addAnimation({id:U,particles:T,containerElement:q,renderFunction:L.renderParticle,updateCallback:e=>{f.current&&f.current.render(r.createElement(r.Fragment,null,e.filter(e=>e.life>0).map(e=>r.createElement("div",{key:e.id,style:{position:"absolute",left:`${e.x}px`,top:`${e.y}px`,width:`${e.size}px`,height:`${e.size}px`,transform:`rotate(${e.rotation}deg) translateX(-50%) translateY(-50%)`,opacity:e.opacity,pointerEvents:"none",transition:"none",willChange:"transform, opacity"}},L.renderParticle(e)))))},onComplete:()=>{f.current&&(f.current.unmount(),f.current=null),d.current=null,c.current=null,s(!1),a()},physics:{gravity:X,friction:W,wind:Y},animationType:t,config:V||i,frameCount:0}),s(!0)}),[e,t,i,u,y]),g=(0,r.useCallback)(()=>a?Promise.resolve():m(),[m,a]),x=(0,r.useCallback)(()=>{c.current&&j.pauseAnimation(c.current)},[]),b=(0,r.useCallback)(()=>{c.current&&j.resumeAnimation(c.current)},[]),v=(0,r.useCallback)(()=>(c.current&&(j.removeAnimation(c.current),c.current=null),s(!1),m()),[m]),[F,$]=(0,r.useState)(null);(0,r.useEffect)(()=>{$(c.current)},[a]);let M=(0,r.useMemo)(()=>!!F&&j.isAnimationPaused(F),[F]);return(0,r.useEffect)(()=>()=>{if(c.current&&j.removeAnimation(c.current),f.current){try{f.current.unmount()}catch(e){}f.current=null}d.current&&document.body.contains(d.current)&&(document.body.removeChild(d.current),d.current=null)},[]),u?{reward:g,isAnimating:a,pause:x,resume:b,replay:v,isPaused:M}
53:{reward:g,isAnimating:a,targetRef:y,pause:x,resume:b,replay:v,isPaused:M}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.