Loading
function(e,t,n){"use strict";n.d(t,{yh:()=>C,rF:()=>_,V1:()=>O,yC:()=>N});var l,i,s,r,a=n(627968),o=n(64700),u=n(503698),c=n.n(u),d=n(308186),m=n(615300),h=n(544048),p=n(384494),f=n(844222),g=n(526399),E=((l=E||{}).NORMAL="normal",l.SPEED_START="speed_start",l.SPEED_LOOP="speed_loop",l.FINISH="finish",l.IDLE="idle",l);let A={normal:{BEG:0,END:600,shouldForcePlayAfter:!0},speed_start:{BEG:601,END:636},speed_loop:{BEG:637,END:668},finish:{BEG:669,END:870},idle:{BEG:871,END:878}};class C extends o.PureComponent{static Scenes=E;static getNextScene(e){switch(e){case C.Scenes.SPEED_START:return C.Scenes.SPEED_LOOP;case C.Scenes.FINISH:return C.Scenes.IDLE;default:return e}}importDefault(){return n.e("78503").then(n.t.bind(n,635489,19)).then(e=>{let{default:t}=e;return t})}render(){let{className:e,nextScene:t,onScenePlay:n,onSceneComplete:l,pause:i,pauseWhileUnfocused:s}=this.props;return(0,a.jsx)(h.t,{className:c()(g.AI,e),importData:this.importDefault,nextScene:i?"idle":t,sceneSegments:A,onScenePlay:n,onSceneComplete:l,pauseWhileUnfocused:s,pause:i})}}var x=((i=x||{}).NORMAL="normal",i.SPEED_START="speed_start",i.SPEED_LOOP="speed_loop",i.FINISH="finish",i.IDLE="idle",i);let I={normal:{BEG:0,END:600,shouldForcePlayAfter:!0},speed_start:{BEG:601,END:636},speed_loop:{BEG:637,END:668},finish:{BEG:669,END:870},idle:{BEG:871,END:878}};class _ extends o.PureComponent{static Scenes=x;static getNextScene(e){switch(e){case _.Scenes.SPEED_START:return _.Scenes.SPEED_LOOP;case _.Scenes.FINISH:return _.Scenes.IDLE;default:return e}}importDefault(){return n.e("19898").then(n.t.bind(n,262546,19)).then(e=>{let{default:t}=e;return t})}render(){let{className:e,nextScene:t,onScenePlay:n,onSceneComplete:l,pause:i,pauseWhileUnfocused:s}=this.props;return(0,a.jsx)(h.t,{className:c()(g.AI,e),importData:this.importDefault,nextScene:i?"idle":t,sceneSegments:I,onScenePlay:n,onSceneComplete:l,pauseWhileUnfocused:s,pause:i})}}var S=((s=S||{}).IDLE_ENTRY="idle_entry",s.IDLE_LOOP="idle_loop",s.BOOST_START="boost_start",s.BOOST_LOOP="boost_loop",s.BOOST_END="boost_end",s.VICTORY="victory",s.ERROR="error",s);let y={idle_entry:{BEG:0,END:50},idle_loop:{BEG:50,END:230,shouldForcePlayAfter:!0},boost_start:{BEG:230,END:275},boost_loop:{BEG:275,END:290},boost_end:{BEG:386,END:455},victory:{BEG:470,END:525},error:{BEG:290,END:375}};class v extends o.PureComponent{getStyle(e){let{animation:t}=this.props;return{transform:[{translateX:t.x.interpolate({inputRange:[0,1],outputRange:e?["100%","0%"]:["0%","-100%"]})},{translateY:t.y.interpolate({inputRange:[0,1],outputRange:["100%","0%"]})}]}}render(){let{className:e}=this.props;return(0,a.jsxs)("div",{className:g.I5,children:[(0,a.jsx)(m.A.div,{className:e,style:this.getStyle(!1)}),(0,a.jsx)(m.A.div,{className:e,style:this.getStyle(!0)})]})}}let T=Object.freeze({IDLE_ENTRY:{toValue:1,duration:1500},IDLE_LOOP:{toValue:1,duration:6e3,easing:m.A.Easing.linear},BOOST_START:{toValue:0,duration:2e3,delay:500},ERROR:{toValue:1,duration:1500,delay:1e3}});class N extends o.PureComponent{static Scenes=S;static getNextScene(e){switch(e){case N.Scenes.IDLE_ENTRY:return N.Scenes.IDLE_LOOP;case N.Scenes.BOOST_START:return N.Scenes.BOOST_LOOP;case N.Scenes.BOOST_END:return N.Scenes.VICTORY;case N.Scenes.VICTORY:return N.Scenes.IDLE_ENTRY;case N.Scenes.ERROR:return N.Scenes.IDLE_LOOP;default:return e}}backgroundAnimation=new m.A.ValueXY({x:0,y:0});foregroundAnimation=new m.A.ValueXY({x:0,y:0});didUnmount=!1;componentWillUnmount(){this.didUnmount=!0}importData(){return n.e("69421").then(n.t.bind(n,548375,19)).then(e=>{let{default:t}=e;return t})}animateEntry(e){m.A.parallel([m.A.timing(this.foregroundAnimation.y,{toValue:e.toValue,duration:e.duration,delay:e.delay||0}),m.A.timing(this.backgroundAnimation.y,{toValue:e.toValue,duration:1.2*e.duration,delay:e.delay||0})]).start()}animateIdleEntry(){this.animateEntry(T.IDLE_ENTRY)}animateError(){this.animateEntry(T.ERROR)}animateIdleLoop(){this.animateIdleLoopBackground(),this.animateIdleLoopForeground()}animateIdleLoopBackground=()=>{this.didUnmount||(this.backgroundAnimation.x.setValue(0),m.A.timing(this.backgroundAnimation.x,{toValue:T.IDLE_LOOP.toValue,duration:1.2*T.IDLE_LOOP.duration,easing:m.A.Easing.linear}).start(this.animateIdleLoopBackground))};animateIdleLoopForeground=()=>{this.didUnmount||(this.foregroundAnimation.x.setValue(0),m.A.timing(this.foregroundAnimation.x,{toValue:T.IDLE_LOOP.toValue,duration:T.IDLE_LOOP.duration,easing:T.IDLE_LOOP.easing}).start(this.animateIdleLoopForeground))};animateBoostStart(){m.A.parallel([m.A.timing(this.foregroundAnimation.y,{toValue:T.BOOST_START.toValue,duration:T.BOOST_START.duration,delay:T.BOOST_START.delay}),m.A.timing(this.backgroundAnimation.y,{toValue:T.BOOST_START.toValue,duration:1.2*T.BOOST_START.duration,delay:T.BOOST_START.delay})]).start()}handleScenePlay=e=>{switch(e){case"idle_entry":this.animateIdleEntry(),this.animateIdleLoop();break;case"error":this.animateError();break;case"boost_start":this.animateBoostStart()}let{onScenePlay:t}=this.props;null!=t&&t(e)};render(){let{className:e,nextScene:t,pause:n,onSceneComplete:l}=this.props;return(0,a.jsxs)("div",{className:c()(g.nv,e),children:[n?(0,a.jsxs)("div",{className:g.I5,children:[(0,a.jsx)("div",{className:g.RK}),(0,a.jsx)("div",{className:g.aM})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{className:g.RK,animation:this.backgroundAnimation}),(0,a.jsx)(v,{className:g.aM,animation:this.foregroundAnimation})]}),(0,a.jsx)(h.t,{className:g.AI,importData:this.importData,nextScene:n?"idle_loop":t,sceneSegments:y,onScenePlay:this.handleScenePlay,onSceneComplete:l,pauseWhileUnfocused:!1,pause:n})]})}}var j=((r=j||{}).ENTRY="entry",r.IDLE="idle",r.STARS="stars",r.ERROR="error",r.SUCCESS="success",r);let b={entry:{BEG:0,END:180},idle:{BEG:180,END:360,shouldForcePlayAfter:!0},stars:{BEG:180,END:360,shouldForcePlayAfter:!0},error:{BEG:360,END:540},success:{BEG:540,END:778}},R=Object.freeze({WHITE:"#ebf0f7",PINK:"#fa6ef6"}),P=[{left:29,top:100,color:R.WHITE},{left:245,top:11,color:R.PINK},{left:393,top:22,color:R.WHITE},{left:74,top:30,color:R.PINK},{left:188,top:9,color:R.WHITE},{left:379,top:97,color:R.PINK}],L=Object.freeze({SCALE_INITIAL:0,SCALE_MIDDLE:1,SCALE_END:0,ROTATE_INITIAL:0,ROTATE_MIDDLE:180,ROTATE_END:360,DELAY_MIN:200,DELAY_MAX:500,DELAY_STAGGER:200,DURATION_MIDDLE:400,DURATION_END:250,SIZE_MIN:7,SIZE_MAX:15,EASING_MIDDLE:m.A.Easing.bezier(.3,.01,0,.99),EASING_END:m.A.Easing.bezier(0,-.01,.99,0)});function M(e){let{animate:t}=e,[n,l]=o.useState(0),i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"respect-motion-settings",l=arguments.length>3?arguments[3]:void 0,i=o.useContext(f.C).reducedMotion.enabled,s=t;"animate-always"!==n&&("respect-motion-settings"!==n||i)&&(s="function"==typeof t?(e,n)=>({...t(e,n),...p.W}):t.map(e=>({...e,...p.W})));let r="function"==typeof s,[a,u,c]=(0,d.useSprings)(e,s,l);return r||4==arguments.length?[a,u,c]:a}(P.length,P.map((e,i)=>{let s=i>0?L.DELAY_STAGGER*i+Math.random()*(L.DELAY_MAX-L.DELAY_MIN)+L.DELAY_MIN:0,r=Math.random()*(L.SIZE_MAX-L.SIZE_MIN)+L.SIZE_MIN;return{from:{scale:L.SCALE_INITIAL,rotate:L.ROTATE_INITIAL,top:e.top,left:e.left,width:r,height:r},to:async e=>{t?(await e({scale:L.SCALE_MIDDLE,rotate:L.ROTATE_MIDDLE,delay:s,config:{duration:L.DURATION_MIDDLE,easing:L.EASING_MIDDLE}}),await e({scale:L.SCALE_END,rotate:L.ROTATE_END,config:{duration:L.DURATION_END,easing:L.EASING_END}}),await e({scale:L.SCALE_INITIAL,rotate:L.ROTATE_INITIAL,immediate:!0}),i===P.length-1&&l(n+1)):await e({scale:L.SCALE_INITIAL,rotate:L.ROTATE_INITIAL})}}}));return(0,a.jsx)(a.Fragment,{children:i.map((e,t)=>{let n=P[t];return(0,a.jsx)(d.animated.svg,{style:e,className:g.Sw,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.14 12.24",children:(0,a.jsx)("path",{d:"M5.62 10.22l-4 1.9a1.17 1.17 0 01-1.5-.5 1.7 1.7 0 010-1l1.9-4a.91.91 0 000-1l-1.9-4a1.14 1.14 0 01.5-1.5 1.39 1.39 0 01.9 0l4 1.9a.91.91 0 001 0l4-1.9a1.14 1.14 0 011.5.5 1.39 1.39 0 010 .9l-1.9 4a.91.91 0 000 1l1.9 4a1.17 1.17 0 01-.5 1.5 1.7 1.7 0 01-1 0l-4-1.9a1 1 0 00-.9.1z",fill:n.color})},t)})})}class O extends o.PureComponent{static Scenes=j;static getNextScene(e){switch(e){case"entry":case"error":case"success":return"idle";default:return e}}importData(){return n.e("45870").then(n.t.bind(n,738503,19)).then(e=>{let{default:t}=e;return t})}render(){let{className:e,nextScene:t,pause:n,onScenePlay:l,onSceneComplete:i,pauseWhileUnfocused:s}=this.props;return(0,a.jsxs)("div",{className:c()(g.JL,e),children:[(0,a.jsx)(h.t,{className:g.i_,importData:this.importData,nextScene:n?"idle":t,sceneSegments:b,onScenePlay:l,onSceneComplete:i,pauseWhileUnfocused:s,pause:n}),(0,a.jsx)(M,{animate:!n&&"stars"===t})]})}}}