System.register("chunks:///_virtual/Adapter.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,n,i,o,r,s,a,c,h,u;return{setters:[function(e){t=e.inheritsLoose,n=e.createClass},function(e){i=e.cclegacy,o=e._decorator,r=e.size,s=e.Component,a=e.screen,c=e.view,h=e.v4,u=e.UITransform}],execute:function(){i._RF.push({},"adb5fOrnLNAVIA//CZoF/Pl","Adapter",void 0);o.ccclass,o.property;var d=function(e){return e[e.Unknown=0]="Unknown",e[e.LandscapeLeft=1]="LandscapeLeft",e[e.LandscapeRight=2]="LandscapeRight",e[e.Portrait=3]="Portrait",e[e.UpsideDown=4]="UpsideDown",e}(d||{}),l=r(0,0),p=r(0,0),f=e("Adapter",function(e){function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o0&&(i?this._flags|=t:this._flags&=~t,this._isDirty=!0)},s.resetInEditor=function(){this.doLayout(!0)},s.doLayout=function(t){if(void 0===t&&(t=!1),this._isDirty||t){var i=this.widget;if(!this.isFullScreenAdaption)return;if(!i||!i.enabled)return;i.isAlignTop&&this.isAlignTop&&(i.isAbsoluteTop=!0,this.direction==a.direction.Portrait?i.top=this.top+a.safeArea.outside.height:i.top=this.top),i.isAlignBottom&&this.isAlignBottom&&(i.isAbsoluteBottom=!0,this.direction==a.direction.UpsideDown?i.bottom=this.bottom+a.safeArea.outside.height:i.bottom=this.bottom),i.isAlignLeft&&this.isAlignLeft&&(i.isAbsoluteLeft=!0,this.direction==a.direction.LandscapeLeft?i.left=this.left+a.safeArea.outside.width:i.left=this.left),i.isAlignRight&&this.isAlignRight&&(i.isAbsoluteRight=!0,this.direction==a.direction.LandscapeRight?i.right=this.right+a.safeArea.outside.width:i.right=this.right),i.updateAlignment(),this._isDirty=!1,this.doOnAdapterComplete()}},s.onChangeSize=function(){this.doLayout(!0)},s.update=function(i){t.prototype.update&&t.prototype.update.call(this,i),this.doLayout()},n(i,[{key:"isAlignTop",get:function(){return(this._flags&j.TOP)>0},set:function(t){this.setFlag(j.TOP,t)}},{key:"isAlignBottom",get:function(){return(this._flags&j.BOTTOM)>0},set:function(t){this.setFlag(j.BOTTOM,t)}},{key:"isAlignLeft",get:function(){return(this._flags&j.LEFT)>0},set:function(t){this.setFlag(j.LEFT,t)}},{key:"isAlignRight",get:function(){return(this._flags&j.RIGHT)>0},set:function(t){this.setFlag(j.RIGHT,t)}},{key:"top",get:function(){return this._top},set:function(t){this._top!=t&&(this._top=t,this._isDirty=!0)}},{key:"bottom",get:function(){return this._bottom},set:function(t){this._bottom!=t&&(this._bottom=t,this._isDirty=!0)}},{key:"left",get:function(){return this._left},set:function(t){this._left!=t&&(this._left=t,this._isDirty=!0)}},{key:"right",get:function(){return this._right},set:function(t){this._right!=t&&(this._right=t,this._isDirty=!0)}},{key:"widget",get:function(){var t=this.getComponent(l);return t||this.addComponent(l)}}]),i}(a)).prototype,"_flags",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return j.None}}),i(O.prototype,"isAlignTop",[c],Object.getOwnPropertyDescriptor(O.prototype,"isAlignTop"),O.prototype),i(O.prototype,"isAlignBottom",[g],Object.getOwnPropertyDescriptor(O.prototype,"isAlignBottom"),O.prototype),i(O.prototype,"isAlignLeft",[f],Object.getOwnPropertyDescriptor(O.prototype,"isAlignLeft"),O.prototype),i(O.prototype,"isAlignRight",[y],Object.getOwnPropertyDescriptor(O.prototype,"isAlignRight"),O.prototype),L=i(O.prototype,"_top",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"top",[d],Object.getOwnPropertyDescriptor(O.prototype,"top"),O.prototype),D=i(O.prototype,"_bottom",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"bottom",[A],Object.getOwnPropertyDescriptor(O.prototype,"bottom"),O.prototype),w=i(O.prototype,"_left",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"left",[b],Object.getOwnPropertyDescriptor(O.prototype,"left"),O.prototype),R=i(O.prototype,"_right",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"right",[_],Object.getOwnPropertyDescriptor(O.prototype,"right"),O.prototype),m=O))||m)||m)||m));s._RF.pop()}}})); System.register("chunks:///_virtual/AdapterSprite.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Adapter.ts"],(function(t){var e,i,s,n,r,o,p,h,a,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,s=t.createClass},function(t){n=t.cclegacy,r=t._decorator,o=t.Enum,p=t.Sprite,h=t.Widget,a=t.v3,c=t.UITransform},function(t){l=t.Adapter}],execute:function(){var d,T,u,y,g,f,S;n._RF.push({},"df9c1XeTcVFJp2J7fsaRMc+","AdapterSprite",void 0);var v=r.ccclass,I=r.property,L=r.executeInEditMode,O=r.menu,_=t("SpriteScaleType",function(t){return t[t.FILL=0]="FILL",t[t.SUIT=1]="SUIT",t}({})),w=t("SpriteAlignType",function(t){return t[t.LEFT=0]="LEFT",t[t.TOP=1]="TOP",t[t.RIGHT=2]="RIGHT",t[t.BOTTOM=3]="BOTTOM",t[t.CENTER=4]="CENTER",t}({}));t("default",(d=v("AdapterSprite"),T=L(!0),u=O("Quick适配组件/AdapterSprite"),y=I({type:o(_),tooltip:"缩放类型:\n -FILL: 缩放到填满父节点(如果父节点有裁剪,图像可能会被裁剪,节点可能会超出父节点)\n -SUIT: 缩放到刚好在父节点内部最大化显示(图像会完整显示,但父节点上下或者左右可能会留空)"}),g=I({type:o(w),tooltip:"齐方式类型:\n -LEFT: 缩放后靠左对齐\n -TOP: 缩放后靠上对齐\n -RIGHT: 缩放后靠右对齐\n -BOTTOM: 缩放后靠下对齐\n -CENTER: 缩放后居中对齐"}),d(f=T(f=u((e((S=function(t){function e(){for(var e,i=arguments.length,s=new Array(i),n=0;nn.width/n.height){if(t==_.SUIT){var r=n.width/this.width;this.node.scale=a(r,r)}else if(t==_.FILL){var o=n.height/this.height;this.node.scale=a(o,o)}}else if(t==_.SUIT){var p=n.height/this.height;this.node.scale=a(p,p)}else if(t==_.FILL){var c=n.width/this.width;this.node.scale=a(c,c)}switch(e){case w.CENTER:this.node.setPosition(a());break;case w.LEFT:this.node.setPosition(a(-.5*(n.width-this.width*this.node.scale.x),0));break;case w.RIGHT:this.node.setPosition(a(.5*(n.width-this.width*this.node.scale.x),0));break;case w.TOP:this.node.setPosition(a(0,.5*(n.height-this.height*this.node.scale.x)));break;case w.BOTTOM:this.node.setPosition(a(0,-.5*(n.height-this.height*this.node.scale.x)))}this.doOnAdapterComplete()}},s(e,[{key:"scaleType",get:function(){return this._scaleType},set:function(t){this._scaleType=t}},{key:"alignType",get:function(){return this._alignType},set:function(t){this._alignType=t}},{key:"parentTrans",get:function(){var t;return null==(t=this.node.parent)?void 0:t.getComponent(c)}}]),e}(l)).prototype,"scaleType",[y],Object.getOwnPropertyDescriptor(S.prototype,"scaleType"),S.prototype),e(S.prototype,"alignType",[g],Object.getOwnPropertyDescriptor(S.prototype,"alignType"),S.prototype),f=S))||f)||f)||f));n._RF.pop()}}})); System.register("chunks:///_virtual/AdapterView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Adapter.ts"],(function(e){var i,t,s,a,o;return{setters:[function(e){i=e.inheritsLoose},function(e){t=e.cclegacy,s=e._decorator,a=e.v3},function(e){o=e.Adapter}],execute:function(){var n;t._RF.push({},"bcfe4/4KSpNzoVcKH/PLlmr","AdapterView",void 0);var r=s.ccclass,d=(s.property,s.executeInEditMode),c=s.menu;e("default",r("AdapterView")(n=d(!0)(n=c("Quick适配组件/AdapterView")(n=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.onChangeSize=function(){if(o.safeArea=null,this.node){if(this.isFullScreenAdaption)this.width=o.safeArea.width/o.safeArea.designPxToScreenPxRatio,this.height=o.safeArea.height/o.safeArea.designPxToScreenPxRatio;else switch(this.width=o.safeArea.safe.width/o.safeArea.designPxToScreenPxRatio,this.height=o.safeArea.safe.height/o.safeArea.designPxToScreenPxRatio,this.direction){case o.direction.LandscapeLeft:this.node.setPosition(a(o.safeArea.outside.width/o.safeArea.designPxToScreenPxRatio,0));break;case o.direction.LandscapeRight:this.node.setPosition(a(-o.safeArea.outside.width/o.safeArea.designPxToScreenPxRatio,0));break;case o.direction.Portrait:this.node.setPosition(a(0,-o.safeArea.outside.height/o.safeArea.designPxToScreenPxRatio));break;case o.direction.UpsideDown:this.node.setPosition(a(0,o.safeArea.outside.height/o.safeArea.designPxToScreenPxRatio));break;default:console.log("获取不到设备方向,直接居中处理"),this.node.setPosition(a(0,0))}this.doOnAdapterComplete()}},t}(o))||n)||n)||n);t._RF.pop()}}})); System.register("chunks:///_virtual/ADEvent.ts",["cc"],(function(E){var D;return{setters:[function(E){D=E.cclegacy}],execute:function(){D._RF.push({},"6430beYDShLL4d46ogx7LEU","ADEvent",void 0);var R=E("ADEvent",(function(){}));R.REWARD_VIDEO_PLAY="REWARD_VIDEO_PLAY",R.REWARD_VIDEO_DISMISSED="REWARD_VIDEO_DISMISSED",R.REWARD_VIDEO_CLOSEED="REWARD_VIDEO_CLOSEED",R.REWARD_VIDEO_ERROR="REWARD_VIDEO_ERROR",D._RF.pop()}}})); System.register("chunks:///_virtual/AdvertMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDispatcher.ts","./ADEvent.ts","./AudioMgr.ts","./tgx.ts","./GtagMgr.ts","./UITips.ts"],(function(n){var t,e,s,i,o,a,r,c,d;return{setters:[function(n){t=n.createClass},function(n){e=n.cclegacy,s=n._decorator},function(n){i=n.EventDispatcher},function(n){o=n.ADEvent},function(n){a=n.AudioMgr},null,function(n){r=n.GtagMgr,c=n.GtagType},function(n){d=n.UITips}],execute:function(){var u,l;e._RF.push({},"0d92aYdY25Lhb1qoZ1C2zbU","AdvertMgr",void 0);var g=s.ccclass;s.property,n("AdvertMgr",g("AdvertMgr")(((l=function(){function n(){this.adInstance=null,this.gtag=null,this.openAd=!0}var e=n.prototype;return e.initilize=function(){this.adInstance=window.adInstance,console.log("ad sdk初始化"),console.log(this.adInstance)},e.showInterstitial=function(n){this.adInstance&&this.openAd?this.adInstance.interstitialAd({beforeAd:function(){console.log("The ad starts playing")},afterAd:function(){console.log("The ad ends playing")},error:function(n){d.show(n),a.inst.resume(),r.inst.doGameDot(c.ad_error)}}):n&&n()},e.showReawardVideo=function(n){this.adInstance&&this.openAd?this.adInstance.rewardAd({beforeAd:function(){console.log("The ad starts playing, and the game should pause."),i.instance.emit(o.REWARD_VIDEO_PLAY),a.inst.pause()},adDismissed:function(){console.log("Player dismissed the ad before completion."),i.instance.emit(o.REWARD_VIDEO_DISMISSED),a.inst.resume()},adViewed:function(){console.log("Ad was viewed and closed."),n&&n(),i.instance.emit(o.REWARD_VIDEO_CLOSEED),a.inst.resume()},error:function(n){d.show(n),a.inst.resume(),r.inst.doGameDot(c.ad_error)}}):n&&n()},t(n,null,[{key:"instance",get:function(){return this._instance||(this._instance=new n),this._instance}}]),n}())._instance=null,u=l))||u);e._RF.pop()}}})); System.register("chunks:///_virtual/AudioMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(o){var i,e,u,t,n,s,c;return{setters:[function(o){i=o.createClass},function(o){e=o.cclegacy,u=o.AudioClip,t=o.assetManager,n=o.Node,s=o.director,c=o.AudioSource}],execute:function(){e._RF.push({},"d506fCKEkdMY7qkdZWU6ieq","AudioMgr",void 0),o("AudioMgr",function(){function o(){this._audioSource=void 0,this._bgMusicEnabled=!0,this._soundEffectsEnabled=!0;var o=new n;o.name="__audioMgr__",s.getScene().addChild(o),s.addPersistRootNode(o),this._audioSource=o.addComponent(c)}var e=o.prototype;return e.playOneShot=function(o,i,e){var n=this;(void 0===i&&(i=1),void 0===e&&(e="resources"),this._soundEffectsEnabled)&&(o instanceof u?this._audioSource.playOneShot(o,i):t.getBundle(e).load(o,(function(o,e){o?console.log(o):n._audioSource.playOneShot(e,i)})))},e.play=function(o,i,e){var n=this;(void 0===i&&(i=1),void 0===e&&(e="resources"),this._bgMusicEnabled)&&(o instanceof u?(this._audioSource.clip=o,this._audioSource.play(),this._audioSource.loop=!0,this.audioSource.volume=i):(this._audioSource.clip&&(this._audioSource.stop(),this._audioSource.clip=null),t.getBundle(e).load(o,(function(o,e){o?console.log(o):(n._audioSource.clip=e,n._audioSource.play(),n._audioSource.loop=!0,n.audioSource.volume=i)}))))},e.stop=function(){this._audioSource.stop()},e.pause=function(){this._audioSource.pause()},e.resume=function(){this._bgMusicEnabled&&this._audioSource.play()},e.toggleBgMusic=function(o){this._bgMusicEnabled=o,o?this.resume():this.stop()},e.toggleSoundEffects=function(o){this._soundEffectsEnabled=o},i(o,[{key:"audioSource",get:function(){return this._audioSource}},{key:"bgMusicEnabled",get:function(){return this._bgMusicEnabled}},{key:"soundEffectsEnabled",get:function(){return this._soundEffectsEnabled}}],[{key:"inst",get:function(){return null==this._inst&&(this._inst=new o),this._inst}}]),o}())._inst=void 0,e._RF.pop()}}})); System.register("chunks:///_virtual/CharacterMovement.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EasyController.ts"],(function(i){var t,e,n,o,s,r,l,a,m,h,p,u,c,d,_,y,C;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.inheritsLoose,n=i.initializerDefineProperty,o=i.assertThisInitialized},function(i){s=i.cclegacy,r=i._decorator,l=i.v3,a=i.Camera,m=i.AnimationClip,h=i.find,p=i.RigidBody,u=i.SkeletalAnimation,c=i.Collider,d=i.Vec3,_=i.Component},function(i){y=i.EasyController,C=i.EasyControllerEvent}],execute:function(){var v,g,f,A,b,M,T,V,B,j,L,E,S,z,J,w,O,F;s._RF.push({},"d197aTs7v1GkpwypdJ1ezJ8","CharacterMovement",void 0);var P=r.ccclass,R=r.property,I=l();i("CharacterMovement",(v=P("tgxCharacterMovement"),g=R(a),f=R(m),A=R(m),b=R(m),M=R(m),T=R(m),v((j=t((B=function(i){function t(){for(var t,e=arguments.length,s=new Array(e),r=0;r=t.duration&&this.jumpLoopAnimClip&&this._anim.crossFade(this.jumpLoopAnimClip.name)}if(!this._rigidBody){this._currentVerticalVelocity-=9.8*i;var e=this.node.position,n=e.y+this._currentVerticalVelocity*i;n<=0&&(this.onLand(),n=0),this.node.setPosition(e.x,n,e.z)}}},s.onLand=function(){this._isInTheAir=!1,this._currentVerticalVelocity=0,this._curJumpTimes=0,this.moveAnimClip&&(this._isMoving?this._anim.crossFade(this.moveAnimClip.name,.5):this._anim.crossFade(this.idleAnimClip.name,.5))},s.onMovement=function(i,t){var e=0;this.mainCamera&&(e=this.mainCamera.node.eulerAngles.y),this._velocityScale=t,this._tmp.set(0,e+i-90+180,0),this.node.setRotationFromEuler(this._tmp),this._anim&&(this._isMoving||this._isInTheAir||this.moveAnimClip&&this._anim.crossFade(this.moveAnimClip.name,.1),this.moveAnimClip&&(this._anim.getState(this.moveAnimClip.name).speed=this._velocityScale)),this._isMoving=!0},s.onMovementRelease=function(){var i;!this._isInTheAir&&this.idleAnimClip&&(null==(i=this._anim)||i.crossFade(this.idleAnimClip.name,.5));this._isMoving=!1,this._rigidBody&&this._rigidBody.setLinearVelocity(d.ZERO)},s.onJump=function(i){var t;(console.log(i),"btn_slot_0"==i)&&(this._curJumpTimes>=this.maxJumpTimes||(this._curJumpTimes,this.jumpBeginAnimClip&&(null==(t=this._anim)||t.crossFade(this.jumpBeginAnimClip.name)),this._curJumpTimes++,this._rigidBody?(this._rigidBody.getLinearVelocity(I),I.y=this.jumpVelocity,this._rigidBody.setLinearVelocity(I)):this._currentVerticalVelocity=this.jumpVelocity,this._isInTheAir=!0))},t}(_)).prototype,"mainCamera",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=t(B.prototype,"velocity",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),E=t(B.prototype,"jumpVelocity",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),S=t(B.prototype,"maxJumpTimes",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),z=t(B.prototype,"idleAnimClip",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=t(B.prototype,"moveAnimClip",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=t(B.prototype,"jumpBeginAnimClip",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=t(B.prototype,"jumpLoopAnimClip",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=t(B.prototype,"jumpLandAnimClip",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=B))||V));s._RF.pop()}}})); System.register("chunks:///_virtual/CharacterMovement2D.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EasyController.ts"],(function(t){var e,o,n,r,i,a,s,c,l,h,u,v;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.inheritsLoose,n=t.initializerDefineProperty,r=t.assertThisInitialized,i=t.createClass},function(t){a=t.cclegacy,s=t._decorator,c=t.v2,l=t.Vec2,h=t.Component},function(t){u=t.EasyController,v=t.EasyControllerEvent}],execute:function(){var m,p,f,M;a._RF.push({},"6bdfa3YMw1PwobXdjV+aWTX","CharacterMovement2D",void 0);var d=s.ccclass,y=s.property,_=c();t("CharacterMovement2D",d("tgxCharacterMovement2D")((f=e((p=function(t){function e(){for(var e,o=arguments.length,i=new Array(o),a=0;a","","","",""],e.color=[a.WHITE,a.BLACK,a.RED,a.GREEN,a.BLUE],e}o(e,t);var s=e.prototype;return s.start=function(){if(this.node.parent.getComponent(g)){var t=this.node.parent.getComponent(h),e=.5*t.width,o=.5*t.height,i=.1*e-e,n=o-.1*o,s=this.node.getChildByName("MiscMode"),l=p(s);l.parent=this.node,l.name="Buttons";var r=p(s);r.parent=this.node,r.name="Titles";for(var u=0;u<2;u++){var L=p(this.EnableAllCompositeModeButton.getChildByName("Label"));L.setPosition(i+(u>0?450:150),n,0),L.setScale(.75,.75,.75),L.parent=r;var f=L.getComponent(c);f.string=u?"----------Composite Mode----------":"----------Single Mode----------",f.color=a.WHITE,f.overflow=0,this.labelComponentList[this.labelComponentList.length]=f}n-=20;for(var M=0,b=0;b>1&&(i+=200,M=0);var v=b?p(this.singleModeToggle):this.singleModeToggle;v.setPosition(i,n-20*M,0),v.setScale(.5,.5,.5),v.parent=this.singleModeToggle.parent;var T=v.getComponentInChildren(C);T.string=this.strSingle[b],this.textComponentList[this.textComponentList.length]=T,this.textContentList[this.textContentList.length]=T.string,v.on(d.EventType.TOGGLE,this.toggleSingleMode,this),this.singleModeToggleList[b]=v}i+=200,this.EnableAllCompositeModeButton.setPosition(i+15,n,0),this.EnableAllCompositeModeButton.setScale(.5,.5,.5),this.EnableAllCompositeModeButton.on(m.EventType.CLICK,this.enableAllCompositeMode,this),this.EnableAllCompositeModeButton.parent=l;var S=this.EnableAllCompositeModeButton.getComponentInChildren(c);this.labelComponentList[this.labelComponentList.length]=S;var x=p(this.EnableAllCompositeModeButton);x.setPosition(i+90,n,0),x.setScale(.5,.5,.5),x.on(m.EventType.CLICK,this.changeTextColor,this),x.parent=l,(S=x.getComponentInChildren(c)).string="TextColor",this.labelComponentList[this.labelComponentList.length]=S;var E=p(this.EnableAllCompositeModeButton);E.setPosition(i+200,n,0),E.setScale(.5,.5,.5),E.on(m.EventType.CLICK,this.hideUI,this),E.parent=this.node.parent,(S=E.getComponentInChildren(c)).string="Hide UI",this.labelComponentList[this.labelComponentList.length]=S,this.hideButtonLabel=S,n-=40;for(var I=0;I");return-1===i?t===e:(o=(o=o.substr(i+1)).substr(0,o.search("<")))===e},s.toggleSingleMode=function(t){for(var e=u.root.debugView,o=t.getComponentInChildren(C),i=0;i=this.strColor.length&&(this._currentColorIndex=0);for(var e=0;e";for(var o=0;oo.width/o.height?n.setResolutionPolicy(u.FIXED_HEIGHT):n.setResolutionPolicy(u.FIXED_WIDTH),this._oldSize.set(t)}},o}(c))||r);o._RF.pop()}}})); System.register("chunks:///_virtual/ResourceMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var n,t,i;return{setters:[function(e){n=e.createClass},function(e){t=e.cclegacy,i=e.resources}],execute:function(){t._RF.push({},"b666cLPxptFbq3Cc9VNNPIW","ResourceMgr",void 0);var r=function(){this.url=void 0,this.isLoading=!1,this.callbackArr=[]};e("ResourceMgr",function(){function e(){this.loadingQueue=[]}return e.prototype.loadRes=function(e,n,t){var u=this,s=i.get(e,n);if(s)t&&setTimeout((function(){t(null,s)}),10);else{var o=this.loadingQueue[e];o||((o=this.loadingQueue[e]=new r).url=e),o.callbackArr.push(t),o.isLoading||(o.isLoading=!0,i.load(e,n,(function(n,t){for(var i in delete u.loadingQueue[e],o.callbackArr){var r=o.callbackArr[i];r&&r(n,t)}})))}},n(e,null,[{key:"inst",get:function(){return this._inst||(this._inst=new e),this._inst}}]),e}())._inst=null,t._RF.pop()}}})); System.register("chunks:///_virtual/SafeJSON.ts",["cc"],(function(t){var n;return{setters:[function(t){n=t.cclegacy}],execute:function(){n._RF.push({},"2aad8l/WzBPTIhr1W6SB9Pt","SafeJSON",void 0);t("SafeJSON",function(){function t(){}return t.parse=function(t,n){try{return JSON.parse(t,n)}catch(t){return console.log(t),null}},t.stringify=function(t,n,r){try{return JSON.stringify(t,n,r)}catch(t){return null}},t}());n._RF.pop()}}})); System.register("chunks:///_virtual/SceneDef.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"402c86/nTlCBZjjfWHP0t76","SceneDef",void 0);var c=e("SceneDef",(function(){}));c.START="start",c.ROOSTER_HOLE="rooster_aliens",t._RF.pop()}}})); System.register("chunks:///_virtual/Start.ts",["./rollupPluginModLoBabelHelpers.js","cc","./tgx.ts","./GameUILayers.ts","./ModuleDef.ts","./SceneDef.ts","./JsonUtil.ts","./GtagMgr.ts","./AdvertMgr.ts","./GlobalConfig.ts","./GlobalMgr.ts","./ModuleContext.ts","./UIMgr.ts","./UIWaiting.ts"],(function(e){var t,n,i,a,o,r,u,l,s,d,c,p,f,g,L,b,m,h,y,_,A,I,D,S,E,M,U,v,C,w,B;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,i=e.initializerDefineProperty,a=e.assertThisInitialized,o=e.asyncToGenerator,r=e.regeneratorRuntime},function(e){u=e.cclegacy,l=e._decorator,s=e.Label,d=e.Prefab,c=e.ProgressBar,p=e.PhysicsSystem2D,f=e.EPhysics2DDrawFlags,g=e.game,L=e.assetManager,b=e.AudioClip,m=e.director,h=e.Component},null,function(e){y=e.GameUILayers,_=e.GameUILayerNames},function(e){A=e.ModuleDef},function(e){I=e.SceneDef},function(e){D=e.JsonUtil},function(e){S=e.GtagMgr,E=e.GtagType},function(e){M=e.AdvertMgr},function(e){U=e.GlobalConfig},function(e){v=e.GlobalMgr},function(e){C=e.ModuleContext},function(e){w=e.UIMgr},function(e){B=e.UIWaiting}],execute:function(){var O,N,P,R,x,G,z,T,k;u._RF.push({},"66e163GxmdDp7kaguqDvTVl","Start",void 0);var F=l.ccclass,j=l.property,q=[A.BASIC,A.MODULE_ALIENS],J=[{bundle:A.BASIC,url:"ui_alert/UI_Alert",type:"prefab"},{bundle:A.BASIC,url:"ui_tips/UI_Tips",type:"prefab"},{bundle:A.BASIC,url:"ui_waiting/UI_Waiting",type:"prefab"},{bundle:A.MODULE_ALIENS,url:"Prefabs/UI/Result/UI_BattleResult",type:"prefab"},{bundle:A.MODULE_ALIENS,url:"Prefabs/Levels/level_1",type:"prefab"},{bundle:A.MODULE_ALIENS,url:"Audio/bgm1.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/dianji.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/shengli.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/shibai.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/kaiqiang.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/miaozhun.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/qiangbao.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/tance.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/jibi.mp3",type:"audio"},{bundle:A.MODULE_ALIENS,url:"Audio/chaofeng.mp3",type:"audio"}],W=["Loading.","Loading..","Loading..."],H=q.length+J.length+1;e("Start",(O=F("Start"),N=j(s),P=j(d),R=j(c),O((z=t((G=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rloaded."),e++,t.onResLoaded(),eMath.abs(t)?t=0:e=0),this._targetAngles.set(n.x+20*e,n.y+20*t,n.z)},a.onCameraZoom=function(e){this._targetLen=e,this._targetLenthis.lenMax&&(this._targetLen=this.lenMax)},t}(c)).prototype,"target",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=t(f.prototype,"lookAtOffset",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l()}}),y=t(f.prototype,"zoomSensitivity",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),d=t(f.prototype,"lenMin",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),_=t(f.prototype,"lenMax",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),M=t(f.prototype,"len",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),w=t(f.prototype,"rotateVHSeparately",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=t(f.prototype,"tweenTime",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.2}}),p=f))||p));a._RF.pop()}}})); System.register("chunks:///_virtual/ThirdPersonCameraCtrl.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ThirdPersonCamera.ts","./EasyController.ts"],(function(t){var r,e,o,n,s,a;return{setters:[function(t){r=t.inheritsLoose},function(t){e=t.cclegacy,o=t._decorator},function(t){n=t.ThirdPersonCamera},function(t){s=t.EasyController,a=t.EasyControllerEvent}],execute:function(){var i;e._RF.push({},"6ea3cEV3klIAZnz+Ay66ut+","ThirdPersonCameraCtrl",void 0);var l=o.ccclass;o.property,t("ThirdPersonCameraCtrl",l("tgxThirdPersonCameraCtrl")(i=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var o=e.prototype;return o.start=function(){s.on(a.CAMERA_ROTATE,this.onCameraRotate,this),s.on(a.CAMERA_ZOOM,this.onCameraZoom,this),this._targetLen=this.len,this._targetAngles.set(this.node.eulerAngles)},o.onDestroy=function(){s.off(a.CAMERA_ROTATE,this.onCameraRotate,this),s.off(a.CAMERA_ZOOM,this.onCameraZoom,this)},e}(n))||i);e._RF.pop()}}})); System.register("chunks:///_virtual/UI_Joystick.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EasyController.ts"],(function(t){var e,o,i,n,h,s,_,a,c,r,u;return{setters:[function(t){e=t.inheritsLoose,o=t.createClass},function(t){i=t.cclegacy,n=t._decorator,h=t.UITransform,s=t.Input,_=t.KeyCode,a=t.input,c=t.director,r=t.Component},function(t){u=t.EasyControllerEvent}],execute:function(){var l,T;i._RF.push({},"0d3fdUMUH1Fq4G13IWj7Lf2","UI_Joystick",void 0);var m=n.ccclass;n.property,t("UI_Joystick",m("tgxUI_Joystick")(((T=function(t){function i(){for(var e,o=arguments.length,i=new Array(o),n=0;ny&&(l=y,c=T*y,r=m*y),this._ctrlPointer.setPosition(c,r,0);var E=Math.atan(m/T)/Math.PI*180;E+=T<0?180:360,this._scene.emit(u.MOVEMENT,E,l/y)}}},n.onTouchUp_Movement=function(t){for(var e=t.getTouches(),o=0;o=0;o--){var i=e[o];if(!this._movementTouch||i.getID()!=this._movementTouch.getID())if(null==this._cameraTouchA)this._cameraTouchA=e[o];else if(null==this._cameraTouchB){this._cameraTouchB=e[o];break}}this._distanceOfTwoTouchPoint=this.getDistOfTwoTouchPoints()},n.onTouchMove_CameraCtrl=function(t){for(var e=t.getTouches(),o=0;o