1import{b5 as h,aK as d,T as o,aW as l,aL as u}from"./App-BQyMVeR5.js";import{G as a}from"./GetAssetPath-D1U8ycN4.js";import{F as p,g as c,S as v,e as f,i as y,I as g}from"./FixSpinePlugin-ClEO5-Hk.js";import{N as w}from"./NewWidthSameAspectRatio-Dd-t94aG.js";import{p as b}from"./playSound-BOL4D3cJ.js";import{ar as A}from"./index-CkxI7_WM.js";import"./Button-pe7X1LCq.js";import"./polished.esm-CWrCz8BX.js";import"./inheritsLoose-CPkBXjuP.js";import"./mobxreact.esm-BvpPUWv7.js";import"./index-BjSMI-JJ.js";import"./QuizTypes-SHiKhVER.js";import"./MapModeType-BXMqp17U.js";import"./TutorialConsts-CWe09mqN.js";import"./ActionButton-yzdoVigK.js";import"./index-B-rKDuQH.js";import"./index-KBlYY-Yj.js";import"./context-D63U_AGn.js";import"./FontAwesomeIcon-Cw_yUsQx.js";import"./Centered-1LPwgEpL.js";import"./CapitalizeFirstLetter-BbjzObVf.js";import"./index-bxckgtGi.js";import"./motion-BmzJ48FE.js";import"./index-B25mdQOF.js";import"./index-DosaN3du.js";import"./EditOutlined-C0-AixKr.js";import"./styleChecker-DPpYXhNV.js";import"./index-DCFcQ57T.js";import"./CheckOutlined-4V3W3aKD.js";import"./CopyOutlined-CuUSiXoH.js";import"./SixteenByNineScaler-CN8mmamX.js";import"./index-E5OyKwpk.js";import"./index-DnqKS5K2.js";import"./index-W1bcsZ7K.js";import"./progress-CMzrAa3P.js";import"./ElementIds-VZ5EZd5Y.js";import"./SeasonTicketName-BN_q1-rH.js";import"./useQuery-DbC7gnmj.js";import"./___vite-browser-external_commonjs-proxy-BktAYiaF.js";import"./util-CjAG_OmX.js";import"./util-CSQr3XY3.js";import"./Shortcut-WBrbH8xl.js";import"./Names-DfDh6qGd.js";import"./useWillUnmount-SlwvfV5S.js";import"./CircularProgress-CTjxOrLm.js";import"./clsx.m-DTbsia2j.js";import"./index-B2aNdC7z.js";import"./AccessibleAnchor-FhDwE-9_.js";import"./index-ODmA9zyP.js";import"./use-force-update-Dp9hwR81.js";import"./GimkitLiveQuestion-D16tZqpK.js";import"./Text-BRts4Ff0.js";import"./getCloudinaryUrl-Drn97BLG.js";import"./LazyLatexRenderer-cbJiJUs-.js";import"./Tooltip--6Dip7FK.js";import"./howler-Bc2XL4cS.js";import"./use-motion-value-CBPHXlAn.js";import"./index-CPVwPKFh.js";import"./index-BuW4jfEx.js";import"./useIntervalWhen-lvFJihjy.js";import"./index-B12w7PGS.js";import"./move-B6cBRaci.js";import"./react-flip-move.es-B6k9_8mk.js";import"./sounds-lMDGELFQ.js";import"./MapSound-CXEYjKIW.js";import"./App-BtYAFvNv.js";import"./AnimatedBackground-CyazxtQf.js";import"./useDebouncedValue-B_s8uZIT.js";import"./CloseCircleOutlined-euJXgj82.js";import"./MapStyle-TMfqPjvX.js";import"./FillRemainingSpace-CbKUPFtd.js";import"./index-CkN50kfJ.js";var e=(t=>(t.idle="idle",t.activate="activate",t.inactive="inactive",t))(e||{});const S={spritesheetId:a("devices/jump_granter/animation.png"),spritesheetUrl:a("devices/jump_granter/animation.png"),frameWidth:391,frameHeight:373,animations:[{animName:"idle",frameRate:1,repeat:-1,animFrames:{start:0,end:0}},{animName:"activate",frameRate:36,repeat:0,animFrames:{start:0,end:7}},{animName:"inactive",frameRate:1,repeat:-1,animFrames:{start:7,end:7}}]};var r=(t=>(t.reset="reset",t.grant="grant",t))(r||{});const n={radius:h(125),width:125};class Li extends d{constructor(s){super(s),this.isDisabled=!1,this.isAnimationReady=!1,this.size={width:0,height:0},this.grantJumps=()=>{const i=p(o());i&&(b({path:a(`devices/jump_granter/collect${A.random(1,3)}.mp3`),volume:c({volume:.8,type:v.soundEffect})}),this.options.mode===r.reset?(i.physics.state.jump.jumpCounter=0,i.physics.state.jump.jumpsLeft=l({characterId:i.id}).maxJumps):this.options.mode===r.grant&&(i.physics.state.jump.jumpsLeft+=this.options.jumpsNumber))},this.isSensorActive=()=>this.isDisabled||this.state.disabled?!1:this.state.active,this.animateAlpha=()=>{var m;const i=this.state.active?1:0;(m=this.anim)!=null&&m.view&&this.tweens.add({targets:[this.anim.view],alpha:i,duration:250})},this.onStateChange=i=>{i==="disabled"&&(!this.isDisabled&&this.state.disabled&&this.isAnimationReady?this.anim.view.play(e.activate):!this.isDisabled&&!this.state.disabled&&this.isAnimationReady&&this.startIdleAnimation()),i==="active"&&this.animateAlpha()},this.startIdleAnimation=()=>{this.anim.view.play(e.idle),this.anim.view.setScale(0),this.tweens.add({targets:this.anim.view,displayWidth:this.size.width,displayHeight:this.size.height,duration:350,ease:Phaser.Math.Easing.Back.Out})},this.anim=this.parts.add.animatedSprite({...S,onReady:i=>{this.size={...w({height:i.view.height,width:i.view.width,newWidth:n.width})},i.view.displayWidth=this.size.width,i.view.displayHeight=this.size.height,this.tweens.add({targets:i.view,y:i.view.y-15,duration:1500,yoyo:!0,repeat:-1,ease:Phaser.Math.Easing.Sine.InOut}),this.isAnimationReady=!0,!this.state.active&&f()&&(i.view.alph
1a=0),(this.isDisabled||this.state.disabled)&&i.view.play(e.inactive)}}),!(y()&&g())&&this.sensors.add.circle({r:n.radius,type:u.around,onFresh:()=>{if(!this.isSensorActive())return;const i=p(o());i&&(i.physics.state.grounded||(this.grantJumps(),this.isDisabled=!0,this.isAnimationReady&&this.anim.view.play(e.activate),this.timeout=setTimeout(()=>{this.isDestroyed||(this.isDisabled=!1,!this.state.disabled&&this.isAnimationReady&&this.startIdleAnimation())},this.options.disabledTime*1e3)))}})}destroy(s){super.destroy(s),this.timeout&&clearTimeout(this.timeout)}}export{Li as default};
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.