System.register("chunks:///_virtual/AccItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemInfo.ts","./ItemDefine.ts"],(function(e){"use strict";var t,i,n,a,c,s,l,o,r,u,h,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Node,c=e.Sprite,s=e.Label,l=e.SpriteFrame,o=e._decorator,r=e.HorizontalTextAlignment,u=e.Component},function(e){h=e.ItemStoredType},function(e){m=e.PeijianType}],execute:function(){var f,p,y,g,d,b,I,A,M,v,D,N,z,_,w,C;n._RF.push({},"271edJ7BptDpKv9MchAITLJ","AccItem",void 0);const{ccclass:T,property:j}=o;let S=e("AccInfo",(f=T("AccInfo"),p=j({type:a,displayName:"节点"}),y=j({type:c,displayName:"图像"}),g=j({type:s,displayName:"名称"}),d=j({type:l,displayName:"默认"}),f((A=t((I=class{constructor(){i(this,"obj",A,this),i(this,"image",M,this),i(this,"name",v,this),i(this,"default",D,this)}setDefault(e){this.image&&(this.image.spriteFrame=this.default),this.name&&(this.name.string=e,this.name.horizontalAlign=r.CENTER)}setImage(e){this.image&&(this.image.spriteFrame=e)}setName(e){this.name&&(this.name.string=e,this.name.horizontalAlign=r.LEFT)}}).prototype,"obj",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(I.prototype,"image",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(I.prototype,"name",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(I.prototype,"default",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=I))||b));e("AccItem",(N=T("AccItem"),z=j({type:[S],displayName:"配件[枪口|握把|弹匣|枪托|瞄具]"}),N((C=t((w=class extends u{constructor(...e){super(...e),i(this,"acc",C,this),this.info=null,this.accConfig=[null,null,null,null,null]}async show(e){if(this.acc.forEach((e=>{e.obj.active=!1})),null!=e.acc){this.info=e,this.accConfig=[null,null,null,null,null],Tool.StringUtil.stringToArrayNumber(e.acc,";").forEach((e=>{this.setAcc(e)})),this.node.active=!0}else this.node.active=!1}hide(){this.node.active=!1}async setAcc(e){if(this.info.accData&&this.info.accData[e]>0){let t=My.Item.Instance.getItemConfig(this.info.accData[e]);this.acc[e].setImage(await My.Item.Instance.getItemIcon(t.image)),this.acc[e].setName(t.name),this.accConfig[e]=t}else this.acc[e].setDefault(m[e]);this.acc[e].obj.active=!0}onClick_Acc(e,t){null!=this.accConfig[t]&&(My.Sound.playSfx(My.sounds.ui_other_equip),this.info.stored==h.装备?(My.Pack.Instance.unloadPeijian(this.info,t,My.Game.scene),My.Event.emit(My.events.update_item_info,this.info)):My.Msg.showMessage(My.msgcode.卸下失败))}}).prototype,"acc",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=w))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/AnchorItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts"],(function(t){"use strict";var e,i,s,r,n,a,o,c,h,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,r=t.Enum,n=t.Widget,a=t._decorator,o=t.Component,c=t.tween,h=t.easing},function(t){u=t.AnchorType}],execute:function(){var l,p,g,d,b,w,f;s._RF.push({},"8f549s+uqtGCrSVb0N+rgp0","AnchorItem",void 0);const{ccclass:m,property:y}=a;t("AnchorItem",(l=m("AnchorItem"),p=y({type:r(u),displayName:"锚点"}),g=y({type:n,displayName:"组件"}),l((w=e((b=class extends o{constructor(...t){super(...t),i(this,"anchor",w,this),i(this,"widget",f,this)}init(){switch(this.anchor){case u.顶部:this.widget.top=-35;break;case u.底部:this.widget.bottom=-35;break;case u.左侧:this.widget.left=-50;break;case u.右侧:this.widget.right=-50}}show(){switch(this.node.active=!0,this.anchor){case u.顶部:c(this.widget).to(.2,{top:0},{easing:h.sineOut}).start();break;case u.底部:c(this.widget).to(.2,{bottom:0},{easing:h.sineOut}).start();break;case u.左侧:c(this.widget).to(.2,{left:0},{easing:h.sineOut}).start();break;case u.右侧:c(this.widget).to(.2,{right:0},{easing:h.sineOut}).start()}}hide(){this.init(),this.node.active=!1}}).prototype,"anchor",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.顶部}}),f=e(b.prototype,"widget",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=b))||d));s._RF.pop()}}}));

System.register("chunks:///_virtual/android.ts",["cc"],(function(o){"use strict";var c,t,e;return{setters:[function(o){c=o.sys,t=o.native,e=o.cclegacy}],execute:function(){e._RF.push({},"10b8cI3HONE3YqvUpwUXchM","android",void 0);o("default",{getOrder:()=>"Android"==c.os&&(console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","getOrder","()Z")),getReward:()=>"Android"==c.os&&(console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","getReward","()Z")),getChannel:()=>"Android"==c.os?(console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","getChannel","()Ljava/lang/String;")):"honor",changeState(o){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","changeState","(I)V",o),!0;console.log("changeState"+o)},pay(){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","pay","()V"),!0;console.log("pay"),window.buySuccess()},openVideo(){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","openVideo","()V"),!0;console.log("openVideo"),window.rewardSuc()},clickYS(){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","clickYS","()V"),!0;console.log("clickYS")},exit(){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","exit","()V"),!0;console.log("exit")},more(){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","moreGame","()V"),!0;console.log("moreGame")},showTip(o){if("Android"==c.os)return console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","showTip","(Ljava/lang/String;)V",o),!0;console.log("showTip:"+o)},showDialog(o,e,i){if("Android"==c.os)return window.dialogCallback=i,console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","openDialog","(Ljava/lang/String;Ljava/lang/String;)V",o,e),!0;console.log("showDialog"),window.dialogCallback()},getRuanZhu:()=>"Android"==c.os?(console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","getRuanZhu","()Ljava/lang/String;")):"厦门大橙互娱科技有限公司",getGameName:()=>"Android"==c.os?(console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","getGameName","()Ljava/lang/String;")):"修勾",getSoftware:()=>"Android"==c.os?(console.log("current platform is: cc.sys.OS_ANDROID"),t.reflection.callStaticMethod("com/cocos/game/MainActivity","getSoftware","()Ljava/lang/String;")):"2024SR1665231"});e._RF.pop()}}}));

System.register("chunks:///_virtual/AnimationEvent.ts",["cc","./GameDefine.ts"],(function(e){"use strict";var t,n,c,i;return{setters:[function(e){t=e.cclegacy,n=e.Component,c=e._decorator},function(e){i=e.PlayerAction}],execute:function(){var a;t._RF.push({},"6fe1d+WlWJId7yj1t6ELipI","AnimationEvent",void 0);const{ccclass:o,property:s}=c;e("AnimationEvent",o("AnimationEvent")(a=class extends n{animation_Event(e){switch(e){case"Thrown":My.Player.action_Remove(i.投掷物操作);break;case"Medical":My.Player.action_Remove(i.药品操作)}}})||a);t._RF.pop()}}}));

System.register("chunks:///_virtual/ArchiveMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CommonDefine.ts","./UIDefine.ts"],(function(t){"use strict";var e,a,i,s,l,n,r,v,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.JsonAsset,l=t._decorator,n=t.Component,r=t.math},function(t){v=t.LvConfig},function(t){o=t.PopupType}],execute:function(){var h,p,c,u,y,d;i._RF.push({},"674faGHZmtHpJ9IhBp5MlID","ArchiveMgr",void 0);const{ccclass:g,property:x}=l;t("ArchiveMgr",(h=g("ArchiveMgr"),p=x({type:s,displayName:"等级配置文件"}),h(((d=class t extends n{constructor(...t){super(...t),a(this,"lvJson",y,this),this.lvConfig=[],this.lvLast=null,this.lvNext=null,this.expRatio=void 0,this.lvRatio=void 0}static get exp(){return My.Data.playerData.exp}static get lv(){return this.Instance.lvLast.id}static get config(){return this.Instance.lvConfig}static get expRatio(){return this.Instance.expRatio}static get lvRatio(){return this.Instance.lvRatio}onLoad(){t.Instance=this,this.load_Data()}load_Data(){this.lvConfig=[],this.lvJson.json.config.forEach((t=>{let e=new v;e.id=t.id,e.exp=t.exp,e.level_pic=t.level_pic,e.level_text=t.level_text,e.system_open=t.system_open,e.level_rewards=t.level_rewards,this.lvConfig.push(e)})),this.update_Lv()}compareLv(t){return this.lvLast.id>=t}getExpProgress(){return My.Data.playerData.exp+"/"+this.lvNext.exp}add_Data(t){My.Data.playerData.exp+=t[0]||0,My.Data.playerData.archive_Exited+=t[1]||0,My.Data.playerData.archive_Value+=t[2]||0,My.Data.playerData.archive_Kills+=t[3]||0,My.Data.playerData.archive_Boxes+=t[4]||0,My.Data.savePlayerData()}update_Lv(){let t=My.Data.playerData.exp;for(let e=this.lvConfig.length-1;e>=0;e--)if(t>=this.lvConfig[e].exp){this.lvLast=this.lvConfig[e];break}My.Archive.enabled_Skin=this.lvLast.id>=3,My.Archive.enabled_Market=this.lvLast.id>=0,this.lvNext=this.lvLast,this.lvLast.id<this.lvConfig.length&&(this.lvNext=this.lvConfig[this.lvLast.id]),this.expRatio=r.clamp(t/this.lvNext.exp,0,1);let e=(this.lvLast.id>0?this.lvLast.id-1:this.lvLast.id)/this.lvConfig.length,a=1/this.lvConfig.length*((My.Data.playerData.exp-this.lvLast.exp)/(this.lvNext.exp-this.lvLast.exp));this.lvRatio=r.clamp(e+a,0,1),My.Event.emit(My.events.update_lv)}check_Lv(){let t=this.lvLast;this.update_Lv(),this.lvLast!=t&&(My.Event.emit(My.events.update_unlock_new),My.UI.Instance.showPopup(o.升级弹窗,this.lvLast))}}).Instance=null,d.enabled_Market=!1,d.enabled_Skin=!1,y=e((u=d).prototype,"lvJson",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=u))||c));i._RF.pop()}}}));

System.register("chunks:///_virtual/ArchiveView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts","./AnchorItem.ts","./LvItem.ts"],(function(e){"use strict";var t,i,a,r,s,n,l,o,c,h,p;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e.Label,s=e.ScrollView,n=e.Sprite,l=e._decorator},function(e){o=e.ViewBase,c=e.ViewType},function(e){h=e.AnchorItem},function(e){p=e.LvItem}],execute:function(){var u,y,f,d,v,g,b,m,_,w,M,D,x,A,L,V,S;a._RF.push({},"df74fiweEFChL8U73oKNK0t","ArchiveView",void 0);const{ccclass:E,property:I}=l;e("ArchiveView",(u=E("ArchiveView"),y=I({type:r,displayName:"等级"}),f=I({type:r,displayName:"经验"}),d=I({type:s,displayName:"滚动视图"}),v=I({type:[r],displayName:"数据"}),g=I({type:[n],displayName:"进度条"}),b=I({type:[p],displayName:"等级对象"}),m=I({type:[h],displayName:"锚点动画"}),u((M=t((w=class extends o{constructor(...e){super(...e),i(this,"lvLabel",M,this),i(this,"expLabel",D,this),i(this,"scroll",x,this),i(this,"datas",A,this),i(this,"fills",L,this),i(this,"items",V,this),i(this,"anchors",S,this)}init(){this.node.active=!1,My.Event.on(My.events.game_load,this.load_Data,this)}show(e){this.reset_State(),e&&e()}hide(e){this.node.active=!1,e&&e()}load_Data(){My.Event.off(My.events.game_load,this.load_Data,this);for(let e=0;e<My.Archive.config.length;e++)e<this.items.length&&this.items[e].init(My.Archive.config[e])}reset_State(){this.update_Exp(),this.update_Data(),this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.scroll.scrollToLeft(0,!1),this.anchors.forEach((e=>{e.show()}))}update_Exp(){this.fills[0].fillRange=My.Archive.expRatio,this.fills[1].fillRange=My.Archive.lvRatio,this.lvLabel.string=My.Archive.lv.toString(),this.expLabel.string=My.Archive.Instance.getExpProgress()}update_Data(){this.datas[0].string=My.Data.playerData.archive_Exited.toString(),this.datas[2].string=My.Data.playerData.archive_Kills.toString(),this.datas[3].string=My.Data.playerData.archive_Boxes.toString(),this.datas[1].string=Tool.CommonUtil.ParseValue(My.Data.playerData.archive_Value)}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(c.主页视图),My.UI.Instance.hideView(c.档案视图)}}).prototype,"lvLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(w.prototype,"expLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(w.prototype,"scroll",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(w.prototype,"datas",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=t(w.prototype,"fills",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=t(w.prototype,"items",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),S=t(w.prototype,"anchors",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=w))||_));a._RF.pop()}}}));

System.register("chunks:///_virtual/ArrayUtil.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"441c6cvcM9BWp1KlhLjUDzG","ArrayUtil",void 0);t("ArrayUtil",class{static FisherYatesShuffle(t){let e=t.length;for(;e;){let r=Math.floor(Math.random()*e--),a=t[e];t[e]=t[r],t[r]=a}return t}static async RemoveItem(t,e){const r=t.concat();for(let a=0;a<r.length;a++){if(e==r[a]){t.splice(a,1);break}}}static FilteredItem(t,e){return t.filter((t=>t==e)).length}static RemoveAll(t){t.splice(0,t.length)}static HasItem(t,e){return t.length>0&&!(-1==t.indexOf(e))}static RandomValueInArray(t){return t[Math.floor(Math.random()*t.length)]}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/AStarMgr.ts",["cc"],(function(t){"use strict";var s,e,i;return{setters:[function(t){s=t.cclegacy,e=t._decorator,i=t.Component}],execute:function(){var h,r;s._RF.push({},"1fc20VaNdpI7rh2Ts522Gzc","AStarMgr",void 0);const{ccclass:a,property:p}=e;t("AStarMgr",a("AStarMgr")(((r=class t extends i{onLoad(){t.Instance=this}static getRoute(t,s,e,i){this.is_find=!1,this.arr_open=[],this.pppp=null,this.start={...t},this.end={...s},this.map=new Map,e.forEach(((t,s)=>{this.map.set(s,{...t})})),this.size=i,e.get(this.start.x+this.start.y*this.size.x).G=0;let h=new Array;try{this.search(this.start)}catch(t){return h}return this.pppp&&this.getFather(this.pppp,h),h}static search(t){if(t.x==this.end.x&&t.y==this.end.y)return this.is_find=!0,void(this.pppp=t);this.getAround(t).forEach((s=>{this.setFather(s,t)})),this.arr_open.sort(this.compare),this.arr_open.forEach(((t,s,e)=>{t.is_close&&e.splice(s,1),this.is_find||this.search(t)}))}static getAround(t){t.is_close=!0;let s,e,i=new Array;return 0!=t.y&&(s=t.x+(t.y-1)*this.size.width,e=this.map.get(s),e&&!e.is_close&&(i.push(this.map.get(s)),this.arr_open.push(this.map.get(s)))),t.y+1!=this.size.height&&(s=t.x+(t.y+1)*this.size.width,e=this.map.get(s),e&&!e.is_close&&(i.push(this.map.get(s)),this.arr_open.push(this.map.get(s)))),0!=t.x&&(s=t.x-1+t.y*this.size.width,e=this.map.get(s),e&&!e.is_close&&(i.push(this.map.get(s)),this.arr_open.push(this.map.get(s)))),t.x+1!=this.size.width&&(s=t.x+1+t.y*this.size.width,e=this.map.get(s),e&&!e.is_close&&(i.push(this.map.get(s)),this.arr_open.push(this.map.get(s)))),i}static setFather(t,s){(!t.father||t.father.G>s.G)&&(t.father=s,t.G=t.father.G+1,t.H=Math.abs(t.x-this.end.x)+Math.abs(t.y-this.end.y),t.F=t.G+t.H)}static compare(t,s){return t.F>s.F?1:-1}static getFather(t,s){let e=t.father;e&&this.getFather(e,s),s.push(t)}}).Instance=null,r.start=null,r.end=null,r.map=null,r.size=null,r.arr_open=[],r.pppp=null,r.is_find=!1,h=r))||h);s._RF.pop()}}}));

System.register("chunks:///_virtual/baoli.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(s){"use strict";var r,e,i,t,o,a,n;return{setters:[function(s){r=s.applyDecoratedDescriptor,e=s.initializerDefineProperty},function(s){i=s.cclegacy,t=s.ProgressBar,o=s.Animation,a=s._decorator,n=s.Component}],execute:function(){var c,l,p,u,d,h,g;i._RF.push({},"d9a90nYihFFcaQHFju4yZK6","baoli",void 0);const{ccclass:w,property:k,type:b}=a;s("baoli",(c=w("baoli"),l=b(t),p=b(o),c((h=r((d=class extends n{constructor(...s){super(...s),e(this,"progressBar",h,this),e(this,"ani",g,this),this.clickNum=void 0}start(){}onEnable(){this.progressBar.progress=0,this.clickNum=0,window.sdk.scheduler&&window.sdk.scheduler.pauseTarget(window.sdk)}clickOpen(){this.clickNum<8&&(this.clickNum++,this.progressBar.progress+=.15,this.ani.play(),8==this.clickNum&&(this.node.active=!1,this.ani.stop(),window.sdk.openVideo((()=>{window.sdk.scheduler&&window.sdk.scheduler.resumeTarget(window.sdk)}))))}update(s){this.progressBar.progress>0&&(this.progressBar.progress-=.08*s,this.progressBar.progress<=0&&(this.progressBar.progress=0))}}).prototype,"progressBar",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=r(d.prototype,"ani",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d))||u));i._RF.pop()}}}));

System.register("chunks:///_virtual/BaoxiangConfig.ts",["cc","./ItemConfig.ts","./ItemDefine.ts"],(function(n){"use strict";var t,i,o,e;return{setters:[function(n){t=n.cclegacy,i=n._decorator},function(n){o=n.ItemConfig},function(n){e=n.BaoxiangType}],execute:function(){var c;t._RF.push({},"b82daKdKZxJ0pEDGVHhYxLy","BaoxiangConfig",void 0);const{ccclass:s,property:a}=i;n("BaoxiangConfig",s("BaoxiangConfig")(c=class extends o{constructor(...n){super(...n),this.kind=e.随机宝箱,this.reward=void 0}})||c);t._RF.pop()}}}));

System.register("chunks:///_virtual/Boss_Info.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,s,n,l,a,r,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Node,n=t.Label,l=t.UIOpacity,a=t._decorator,r=t.Component,c=t.tween}],execute:function(){var p,u,h,y,f,b,g,m,d;o._RF.push({},"4aa35EHeRhPe6nTKj8fIgpQ","Boss_Info",void 0);const{ccclass:w,property:_}=a;t("Boss_Info",(p=w("Boss_Info"),u=_({type:s,displayName:"血条"}),h=_({type:n,displayName:"数值"}),y=_({type:l,displayName:"透明度"}),p((g=e((b=class extends r{constructor(...t){super(...t),i(this,"fill",g,this),i(this,"valueLabel",m,this),i(this,"opacityCom",d,this),this.showing=!1}show(t,e){this.unscheduleAllCallbacks(),this.showing||(this.showing=!0,c(this.opacityCom).to(.2,{opacity:255}).start()),e<=0&&(e=0),this.fill.setScale(e/t,1),this.valueLabel.string=e.toString(),this.scheduleOnce((()=>{this.showing=!1,this.opacityCom.opacity=0}),3)}hide(){this.showing=!1,this.opacityCom.opacity=0}}).prototype,"fill",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(b.prototype,"valueLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(b.prototype,"opacityCom",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=b))||f));o._RF.pop()}}}));

System.register("chunks:///_virtual/Boss_Weapon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./Bullet.ts","./Bullet_Melee.ts","./GameDefine.ts","./SpaceAudio.ts"],(function(e){"use strict";var t,i,a,n,o,l,s,r,h,u,d,c,m,g,p,b,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Animation,o=e.Sprite,l=e.Node,s=e._decorator,r=e.Component,h=e.v3,u=e.instantiate,d=e.Vec2},function(e){c=e.WuqiType},function(e){m=e.Bullet,g=e.BulletParme},function(e){p=e.Bullet_Melee},function(e){b=e.GameTags},function(e){f=e.SpaceAudio}],execute:function(){var y,w,P,z,B,v,M,k,S,_,A;a._RF.push({},"bf6a4aNWNdOpaVc+7Lwd5IL","Boss_Weapon",void 0);const{ccclass:C,property:D}=s;e("Boss_Weapon",(y=C("Boss_Weapon"),w=D({type:n,displayName:"动画"}),P=D({type:f,displayName:"音效"}),z=D({type:o,displayName:"图像"}),B=D({type:l,displayName:"枪口"}),y((k=t((M=class extends r{constructor(...e){super(...e),i(this,"animationCom",k,this),i(this,"audio",S,this),i(this,"image",_,this),i(this,"muzzle",A,this),this.boss=void 0,this.data=void 0,this.reloading=void 0,this.attacking=void 0,this.moaAngle=0,this.magazine=0,this.interval=0,this.bulletCount=0,this.bulletSpeed=0,this.bulletRange=0,this.bulletDamage=0}async load(e,t){if(null!=t.weapon){this.boss=e,this.data=t;let i=h(50,t.weapon.kind==c.近战?0:50,0);this.image.spriteFrame=await My.Item.Instance.getItemSkin(t.weapon.image),this.node.setPosition(i),this.interval=parseFloat((60/t.info.rate).toFixed(2)),this.moaAngle=Tool.CommonUtil.ParseAngleMoa(t.info.moa),this.magazine=t.weapon.rds,this.bulletCount=t.weapon.kind==c.霰弹枪?5:1,this.bulletSpeed=t.info.bullet_speed,this.bulletDamage=t.info.damage,this.bulletRange=t.info.range,this.reloading=!1,this.attacking=!1}else this.node.active=!1}unload(){this.node.active=!1}attack(){if(this.attacking)return;if(this.reloading)return;this.audio.playSfx(My.sounds.weapon_shoot+this.data.weapon.kind),this.attacking=!0;let e=this.muzzle.getWorldPosition();if(this.data.weapon.kind==c.近战){this.animationCom.play("Boss_Melee");let e=u(My.Play.prefabs.melee);e.setParent(My.Pool.Instance.poolNode),e.setWorldPosition(this.node.getWorldPosition()),e.getComponent(p).init(this.getMeleeParam()),this.scheduleOnce((()=>{this.attacking=!1}),this.interval)}else{this.animationCom.play("Boss_Shoot"),this.magazine-=1,this.magazine>0?this.scheduleOnce((()=>{this.reloading||(this.attacking=!1)}),this.interval):this.scheduleOnce(this.reload,.1),this.getBulletParams(this.bulletCount).forEach((t=>{let i=u(My.Play.prefabs.bullet);i.setParent(My.Pool.Instance.poolNode),i.setWorldPosition(e),i.getComponent(m).init(t)}))}}reload(){this.reloading=!0,this.magazine=this.data.weapon.rds,this.scheduleOnce((()=>{this.reloaded()}),this.data.weapon.reload)}reloaded(){this.reloading=!1,this.attacking=!1}getMeleeParam(){let e=this.muzzle.worldPosition.subtract(this.node.worldPosition).normalize(),t=new g;return t.dir=new d(e.x,e.y),t.damage=this.bulletDamage,t.range=this.bulletRange,t.belong=b.BOSS,t.speed=100,t}getBulletParams(e){let t=this.muzzle.worldPosition.subtract(this.node.worldPosition).normalize(),i=Tool.MathUtil.vectorCovertAngle(t);i+=Tool.MathUtil.randomInRange(-this.moaAngle,this.moaAngle);let a=[];for(let t=0;t<e;t++){let n=new g;switch(e){case 1:n.dir=Tool.MathUtil.randomDirByAngle(i-this.moaAngle,i+this.moaAngle);break;case 5:n.dir=Tool.MathUtil.dirByAngle(i-6+3*t)}n.damage=this.bulletDamage,n.range=this.bulletRange,n.speed=this.bulletSpeed,n.belong=b.BOSS,a.push(n)}return a}}).prototype,"animationCom",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(M.prototype,"audio",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(M.prototype,"image",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(M.prototype,"muzzle",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=M))||v));a._RF.pop()}}}));

System.register("chunks:///_virtual/Boss.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts","./DynamicRenderer.ts","./GameDefine.ts","./HealthItem.ts","./SpaceAudio.ts","./Boss_Info.ts","./Boss_Weapon.ts"],(function(t){"use strict";var i,e,s,n,a,o,r,h,l,d,c,u,p,g,y,m,f,b,v,w,_,C,N,D,P;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Label,a=t.Node,o=t.Sprite,r=t.RigidBody2D,h=t.CircleCollider2D,l=t.Collider2D,d=t._decorator,c=t.Vec2,u=t.Contact2DType,p=t.Vec3,g=t.v2,y=t.v3,m=t.director,f=t.Director},function(t){b=t.PoolItem},function(t){v=t.DynamicRenderer},function(t){w=t.GameTags,_=t.BoxData},function(t){C=t.HealthItem},function(t){N=t.SpaceAudio},function(t){D=t.Boss_Info},function(t){P=t.Boss_Weapon}],execute:function(){var B,T,x,E,z,O,I,R,M,S,k,A,V,U,j,F,G,L,W,H,Z,J,K,Y,q;s._RF.push({},"222bf0j0uFJU5NjO4i0jUyO","Boss",void 0);const{ccclass:Q,property:X}=d;t("Boss",(B=Q("Boss"),T=X({type:n,displayName:"名称"}),x=X({type:C,displayName:"生命"}),E=X({type:a,displayName:"主体"}),z=X({type:o,displayName:"皮肤"}),O=X({type:D,displayName:"信息"}),I=X({type:N,displayName:"音效"}),R=X({type:P,displayName:"武器"}),M=X({type:r,displayName:"刚体"}),S=X({type:h,displayName:"警戒区域"}),k=X({type:v,displayName:"渲染器"}),A=X({type:[l],displayName:"检测器"}),B((j=i((U=class extends b{constructor(...t){super(...t),e(this,"nameLabel",j,this),e(this,"health",F,this),e(this,"body",G,this),e(this,"skin",L,this),e(this,"info",W,this),e(this,"audio",H,this),e(this,"weapon",Z,this),e(this,"rigidbody",J,this),e(this,"warnCollider",K,this),e(this,"renderer",Y,this),e(this,"colliders",q,this),this.hp=0,this.data=null,this.died=!1,this.inited=!1,this.vector=void 0,this.chase_range=void 0,this.chase_time=void 0,this.chasing=!1,this.moving=!1,this.boxPos=void 0,this.aimDir=1,this.target=null,this.targets=[]}init(t){null!=t&&(this.nameLabel.string=t.info.name,this.data=t,this.info.hide(),this.weapon.load(this,this.data),this.health.init(this.hurt,this),this.hp=this.data.info.hp,this.skin.spriteFrame=this.data.skin,this.chase_range=Tool.StringUtil.stringToArrayNumber(this.data.info.chase_time,";"),this.vector=c.ZERO,this.setWarning(!0),this.chasing=!1,this.moving=!1,this.aimDir=1,this.inited=!0,this.died=!1,this.renderEvent())}setWarning(t){this.targets=[],t?(this.warnCollider.radius=this.data.info.rg_warn,this.warnCollider.on(u.BEGIN_CONTACT,this.onBeginContact,this),this.warnCollider.on(u.END_CONTACT,this.onEndContact,this)):(this.warnCollider.off(u.BEGIN_CONTACT,this.onBeginContact,this),this.warnCollider.off(u.END_CONTACT,this.onEndContact,this)),this.warnCollider.apply()}update(t){if(this.inited&&!this.died)if(null!=this.target)if(this.target.active){let t=p.distance(this.node.position,this.target.position);this.aimTarget(),t<=this.data.info.rg_attack&&this.chase(),this.attack(),this.move(t)}else this.target=null;else this.targets.length>0&&(this.target=this.targets[0])}renderEvent(){this.renderer.init((()=>{if(this.renderer.showed)this.body.active=!0;else{let t=p.distance(this.node.worldPosition,My.Player.worldPosition)<1500;t||this.info.hide(),this.body.active=t,this.warnCollider.enabled=t,this.colliders.forEach((i=>{i.enabled=t}))}}))}aimTarget(){let t=this.node.getPosition(),i=this.target.getPosition();this.aimDir=i.x>t.x?1:-1,this.body.setScale(this.aimDir,1,1);let e=i.subtract(t).normalize(),s=Tool.MathUtil.vectorCovertAngle(e);-1==this.aimDir&&(s=180-s),this.weapon.node.angle=s}chase(){this.chasing||(this.chasing=!0,this.chase_time=Tool.MathUtil.randomInRange(this.chase_range[0],this.chase_range[1]),this.scheduleOnce((()=>{this.scheduleOnce((()=>{this.target=null,this.chasing=!1,this.vector=c.ZERO;let t=this.rigidbody.linearVelocity;t.x=0,t.y=0,this.rigidbody.linearVelocity=t,My.Game.gameSign("BOSS追击结束!")}),this.data.info.chase_cd)}),this.chase_time))}move(t){if(!this.chasing)return;if(!this.moving){this.moving=!0;let t=this.node.getPosition(),i=this.target.getPosition().subtract(t).normalize();this.vector=g(i.x,i.y),this.scheduleOnce((()=>{this.vector=c.ZERO,this.scheduleOnce((()=>{this.moving=!1}),this.data.info.move_cd)}),.5)}t<250&&(this.vector=c.ZERO);let i=this.rigidbody.linearVelocity;i.x=15*this.vector.x,i.y=15*this.vector.y,this.rigidbody.linearVelocity=i}attack(){this.chasing&&this.weapon.attack()}hurt(t,i){if(this.died)return;let e=t.damage;this.hp-=e;let s=y(this.node.position.x,this.node.position.y+150,this.node.position.z);if(My.Play.showDamage(!0,e,s),this.info.show(this.data.info.hp,this.hp),this.hp<=0)switch(this.hp=0,this.death(),t.belong){case w.玩家:My.Play.addKills(1)}}death(){this.died=!0,this.audio.playSfx(My.sounds.player_death),this.boxPos=this.node.getPosition(),My.Play.Instance.poolItem_Remove(this),m.once(f.EVENT_AFTER_PHYSICS,(()=>{this.recycle(),this.spawnBox()}),this)}recycle(){this.target=null,this.targets=[],this.inited=!1,this.setWarning(!1),this.renderer.remove(),this.unscheduleAllCallbacks(),My.Pool.putNode(this.node)}spawnBox(){this.boxPos.y-=20;let t=new _,i=this.data.drop_main;null!=i&&t.items.push(i);let e=this.data.drop_toukui;null!=e&&t.items.push(e);let s=this.data.drop_hujia;null!=s&&t.items.push(s);let n=this.data.drop_beibao;null!=n&&t.items.push(n),this.data.drop_zawu.forEach((i=>{t.items.push(i)})),My.Map.mapData.createDropBox(this.boxPos,t)}targetDis(){return this.target,p.distance(this.node.position,this.target.position)<=this.data.info.range?this.target:null}onBeginContact(t,i,e){i.tag==w.玩家&&this.targets.push(i.node)}onEndContact(t,i,e){i.tag==w.玩家&&(Tool.ArrayUtil.RemoveItem(this.targets,i.node),this.chasing||(this.target=null))}}).prototype,"nameLabel",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=i(U.prototype,"health",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=i(U.prototype,"body",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=i(U.prototype,"skin",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=i(U.prototype,"info",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=i(U.prototype,"audio",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=i(U.prototype,"weapon",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=i(U.prototype,"rigidbody",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=i(U.prototype,"warnCollider",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=i(U.prototype,"renderer",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=i(U.prototype,"colliders",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=U))||V));s._RF.pop()}}}));

System.register("chunks:///_virtual/BoxItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts","./DynamicRenderer.ts","./GameDefine.ts","./MapDefine.ts"],(function(t){"use strict";var e,i,n,s,a,r,o,l,c,h,u,d,p,y,m,g,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.UITransform,a=t.Sprite,r=t.BoxCollider2D,o=t.Animation,l=t._decorator,c=t.Vec3,h=t.Size,u=t.Contact2DType},function(t){d=t.PoolItem},function(t){p=t.DynamicRenderer},function(t){y=t.BoxData,m=t.GameState,g=t.GameTags},function(t){f=t.BoxType}],execute:function(){var v,b,C,N,w,S,I,P,x,B,_,z,M,T,D;n._RF.push({},"b9eb0ooJ+VGppn4W/oBoIOC","BoxItem",void 0);const{ccclass:E,property:O}=l;t("BoxItem",(v=E("BoxItem"),b=O({type:s,displayName:"导航标记"}),C=O({type:a,displayName:"描边"}),N=O({type:a,displayName:"图像"}),w=O({type:p,displayName:"渲染器"}),S=O({type:r,displayName:"碰撞体"}),I=O({type:o,displayName:"动画"}),v((B=e((x=class extends d{constructor(...t){super(...t),i(this,"sign",B,this),i(this,"outline",_,this),i(this,"image",z,this),i(this,"renderer",M,this),i(this,"collider",T,this),i(this,"animation",D,this),this.data=new y}get type(){return this.data.type}get level(){return this.data.level}get state(){return 1==this.data.state}get position(){return this.node.position}get worldPosition(){return this.node.worldPosition}init(t){switch(this.data=t,this.data.type){case f.盒子:this.animation.play()}this.setState(0),this.setNavSign(null),this.setContact(!0),this.setOutline(!1),this.renderEvent(),My.Event.on(My.events.nav_sign_elect,this.setNavSign,this)}renderEvent(){My.Game.compareState(m.Play)&&this.renderer.init((()=>{if(this.renderer.showed)this.node.active=!0;else{c.distance(this.node.worldPosition,My.Player.worldPosition)<1500?(this.collider.enabled=!0,this.node.active=!0):(this.collider.enabled=!1,this.node.active=!1)}}))}open(){this.setState(1),this.data.type==f.保险箱&&(My.Play.data.boxes+=1)}pickup(t){Tool.ArrayUtil.RemoveItem(this.data.items,t)}recycle(){My.Event.off(My.events.nav_sign_elect,this.setNavSign,this),this.setContact(!1),this.renderer.remove(),My.Pool.putNode(this.node)}async setState(t){this.data.state=t,this.image.spriteFrame=await My.Play.Instance.getBoxSprite(this.data.type,this.data.level,t),this.outline.spriteFrame=this.image.spriteFrame;let e=this.image.getComponent(s).contentSize;this.sign.setContentSize(e.x-10,e.y-10),this.collider.size=new h(.7*this.sign.contentSize.x,.6*this.sign.contentSize.y),this.collider.apply()}setContact(t){t?(this.collider.on(u.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(u.END_CONTACT,this.onEndContact,this)):(this.collider.off(u.BEGIN_CONTACT,this.onBeginContact,this),this.collider.off(u.END_CONTACT,this.onEndContact,this))}setOutline(t){this.outline.node.active=t}setNavSign(t){this.sign.node.active=t==this}getName(){switch(this.data.type){case f.保险箱:return"五级保险箱";case f.空投箱:return"五级空投舱";case f.盒子:return"盒子";case f.物资箱:switch(this.level){case 1:return"一级收纳盒";case 2:return"二级手提箱";case 3:return"三级电脑机箱";case 4:return"四级机密文件柜"}break;case f.武器箱:switch(this.level){case 1:return"木质军械箱";case 2:return"军需堆放处";case 3:return"高级武器箱";case 4:return"神秘军需箱"}break;case f.医药箱:switch(this.level){case 1:return"一级医药箱";case 2:return"战地急救箱";case 3:return"战地手术箱";case 4:return"先进医疗设备箱"}}}onBeginContact(t,e,i){e.tag==g.玩家&&(this.setOutline(!0),My.Play.Instance.boxItem_Push(this))}onEndContact(t,e,i){e.tag==g.玩家&&(this.setOutline(!1),My.Play.Instance.boxItem_Remove(this))}}).prototype,"sign",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(x.prototype,"outline",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(x.prototype,"image",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(x.prototype,"renderer",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(x.prototype,"collider",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(x.prototype,"animation",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=x))||P));n._RF.pop()}}}));

System.register("chunks:///_virtual/BtnMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./android.ts","./ChannelID.ts"],(function(e){"use strict";var t,i,o,n,s,c,a,h,d,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,n=e.Enum,s=e._decorator,c=e.Component,a=e.Button,h=e.find},function(e){d=e.default},function(e){l=e.default}],execute:function(){var r,k,g,w,p;o._RF.push({},"ddb45a/l81KFqGxkauNS8kr","BtnMgr",void 0);const{ccclass:v,property:m,type:C}=s,E=n({REWARD:0,ORDER:1,MOREGAME:2,YINSI:3,KEFU:4,EXIT:5,INSTALL:6,LOGOFF:7,OPPONATIVE:8,COLLECT:9,NAVIGATE:10,HUTUI:11,SHARE:12});e("BtnMgr",(r=v("BtnMgr"),k=C(E),r((p=t((w=class extends c{constructor(...e){super(...e),i(this,"NAME",p,this),this.kf=""}start(){this.node.active=!1;var e=this.random(0,10);if(this.kf=["1348218797","2049026670","1705406909","80171493","1624049332","1327058274","1078723423","1504779165","1684518718","1470530095"][e]+"@qq.com",window.platform==l.TEST)switch(this.node.active=!1,this.NAME){case E.REWARD:this.node.active=window.sdk.getReward();break;case E.KEFU:this.node.getComponent(a).node.on("click",this.clickKF,this);break;case E.YINSI:this.node.getComponent(a).node.on("click",this.clickYS,this);break;case E.INSTALL:this.node.getComponent(a).node.on("click",this.installShortcut,this);break;case E.LOGOFF:this.node.getComponent(a).node.on("click",this.logoff,this);break;case E.OPPONATIVE:this.node.getComponent(a).node.on("click",this.clickNative,this);break;case E.COLLECT:this.node.getComponent(a).node.on("click",this.clickCollect,this);break;case E.NAVIGATE:this.node.getComponent(a).node.on("click",this.clickNavigate,this);break;case E.HUTUI:this.node.getComponent(a).node.on("click",this.hutui,this);break;case E.SHARE:this.node.getComponent(a).node.on("click",this.share,this)}else if(window.platform==l.ANDROID)switch(this.NAME){case E.ORDER:this.node.active=d.getOrder();break;case E.REWARD:this.node.active=d.getReward();break;case E.MOREGAME:"oppo"==d.getChannel()&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.more,this));break;case E.YINSI:"none"!=d.getChannel()&&"overseas"!=d.getChannel()&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickYS,this));break;case E.KEFU:"oppo"!=d.getChannel()&&"vivo"!=d.getChannel()&&"hwedu"!=d.getChannel()||(this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickKF,this));break;case E.EXIT:this.node.active=!0,this.node.getComponent(a).node.on("click",this.exit,this);break;case E.INSTALL:this.node.active=!1;break;case E.LOGOFF:"hwiaa"==d.getChannel()&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.logoff,this));break;case E.OPPONATIVE:case E.COLLECT:case E.NAVIGATE:case E.HUTUI:case E.SHARE:this.node.active=!1}else switch(this.NAME){case E.ORDER:this.node.active=!1;break;case E.REWARD:this.node.active=window.sdk.getReward();break;case E.MOREGAME:this.node.active=!1;break;case E.YINSI:window.platform!=l.TT&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickYS,this));break;case E.KEFU:window.platform!=l.OPPO&&window.platform!=l.VIVO||(this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickKF,this));break;case E.EXIT:this.node.active=!1;break;case E.INSTALL:this.node.active=!0,this.node.getComponent(a).node.on("click",this.installShortcut,this);break;case E.LOGOFF:window.platform==l.HW&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.logoff,this));break;case E.OPPONATIVE:window.platform==l.OPPO&&1==window.sdk.adSwitch&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickNative,this));break;case E.COLLECT:window.platform==l.TT&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickCollect,this));break;case E.NAVIGATE:window.platform==l.TT&&window.sdk.checkScene((()=>{this.node.active=!0,this.node.getComponent(a).node.on("click",this.clickNavigate,this)}));break;case E.HUTUI:window.platform==l.TT&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.hutui,this));break;case E.SHARE:window.platform==l.WX&&(this.node.active=!0,this.node.getComponent(a).node.on("click",this.share,this))}}more(){d.more()}clickYS(){window.platform==l.ANDROID?d.clickYS():(h("NativeMgr/ys").active=!0,h("NativeMgr/ys").setSiblingIndex(100))}clickKF(){window.sdk.showDialog("客服邮箱:",this.kf,null)}exit(){d.exit()}random(e,t){return Math.floor(Math.random()*(t-e))+e}installShortcut(){window.sdk.installShortcut()}logoff(){console.log("logoff"),window.sdk.showDialog("注销账号","是否确定清除所有记录并退出游戏？",(()=>{localStorage.clear(),qg.exitApplication({})}))}clickNative(){console.log("clickNative"),h("NativeMgr/NativeAd").getComponent("NativeAd").clickAd()}clickCollect(){window.sdk.showFavoriteGuide()}clickNavigate(){h("NativeMgr/NavigateView").active=!0,h("NativeMgr/NavigateView").setSiblingIndex(100)}hutui(){window.sdk.showHutui(9)}share(){window.sdk.share(null)}}).prototype,"NAME",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return E.REWARD}}),g=w))||g));o._RF.pop()}}}));

System.register("chunks:///_virtual/BuffDefine.ts",["cc"],(function(t){"use strict";var e,i;return{setters:[function(t){e=t.cclegacy,i=t.math}],execute:function(){let s;t("BuffType",void 0),e._RF.push({},"1cf50nQS+hCdI8IJRZLRGHK","BuffDefine",void 0),function(t){t[t["镇静"]=0]="镇静",t[t["愈合"]=1]="愈合",t[t["兴奋"]=2]="兴奋",t[t["坚毅"]=3]="坚毅"}(s||(s=t("BuffType",{})));t("BuffBase",class{constructor(){this.type=0,this.desc="",this.value=0,this.timer=0,this.intervalTime=0,this.updateEvent=void 0,this.disableEvent=void 0,this.intervalEvent=void 0,this.overrideEvent=void 0,this.isEnabled=!1}getTimer(){return"剩余："+Math.ceil(this.timer)+"秒"}enabled(t,e,i,s){this.type=t,this.value=e,this.timer=i,this.disableEvent=s,this.isEnabled=!0,this.buffState(!0)}override(t,e,i){var s;this.value=t,this.timer=e,this.disableEvent=i,this.isEnabled=!0,this.buffState(!0),null==(s=this.overrideEvent)||s.call(this)}disable(){var t;this.timer=0,this.isEnabled=!1,this.updateEvent=null,null==(t=this.disableEvent)||t.call(this),this.disableEvent=null,this.overrideEvent=null,this.buffState(!1)}cancel(){this.isEnabled=!1,this.overrideEvent=null,this.disableEvent=null,this.updateEvent=null,this.timer=0,this.buffState(!1)}update(t){this.isEnabled&&(this.timer=i.clamp(this.timer-t,0,999),this.intervalEvent&&(this.intervalTime-=t,this.intervalTime<=0&&(this.intervalTime=1,this.intervalEvent())),this.updateEvent&&this.updateEvent(),this.timer<=0&&this.disable())}setOverrideEvent(t){this.overrideEvent=t}setUpdateEvent(t){var e;this.updateEvent=t,null==(e=this.updateEvent)||e.call(this)}buffState(t){switch(this.type){case s.镇静:this.desc="镇静：伤害减免+"+this.value+"%",t?My.Player.state.damageRatio-=this.value:My.Player.state.damageRatio+=this.value;break;case s.愈合:this.intervalTime=0,this.desc="愈合：每秒恢复"+this.value+"点生命",this.intervalEvent=t?()=>{My.Player.restore(this.value)}:null;break;case s.兴奋:this.desc="兴奋：移动速度+"+this.value+"%",t?My.Player.state.parse_SpeedFactors("buff_3",100+this.value):My.Player.state.parse_SpeedFactors("buff_3",100);break;case s.坚毅:this.desc="坚毅：负重上限+"+this.value+"%",t?My.Player.state.weightRatio-=this.value:My.Player.state.weightRatio+=this.value}}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/BuffStateItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,s,n,r,l,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Sprite,r=e.Label,l=e._decorator,a=e.Component}],execute:function(){var u,f,c,o,p,b,h,d,m;s._RF.push({},"18a7a8Ep65Cyr1lgwEpVmGJ","BuffStateItem",void 0);const{ccclass:y,property:g}=l;e("BuffStateItem",(u=y("BuffStateItem"),f=g({type:n,displayName:"图标"}),c=g({type:r,displayName:"描述"}),o=g({type:r,displayName:"时间"}),u((h=t((b=class extends a{constructor(...e){super(...e),i(this,"icon",h,this),i(this,"descLabel",d,this),i(this,"timeLabel",m,this),this.buff=null}show(e){this.buff&&(this.buff.setUpdateEvent(null),this.buff=null),this.buff=e,this.icon.spriteFrame=My.Player.state.icons[e.type],this.descLabel.string=e.desc,this.buff.setOverrideEvent((()=>{this.descLabel.string=this.buff.desc})),this.buff.setUpdateEvent((()=>{this.timeLabel.string=this.buff.getTimer()})),this.node.active=!0}hide(){this.buff&&(this.buff.setUpdateEvent(null),this.buff=null),this.node.active=!1}}).prototype,"icon",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(b.prototype,"descLabel",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(b.prototype,"timeLabel",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=b))||p));s._RF.pop()}}}));

System.register("chunks:///_virtual/Bullet_Melee.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./HealthItem.ts"],(function(e){"use strict";var t,i,n,r,o,l,a,s,c,u,h,p,d,g,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.RigidBody2D,o=e.Collider2D,l=e.Enum,a=e._decorator,s=e.Component,c=e.Contact2DType,u=e.Vec2,h=e.director,p=e.Director},function(e){d=e.GameTags,g=e.DamageType},function(e){y=e.HealthItem}],execute:function(){var b,m,f,C,_,B,D,N,T;n._RF.push({},"8bfd36pIL5HNqHvU2jrdO0+","Bullet_Melee",void 0);const{ccclass:E,property:v}=a;e("Bullet_Melee",(b=E("Bullet_Melee"),m=v({type:r,displayName:"刚体"}),f=v({type:o,displayName:"碰撞体"}),C=v({type:l(d),displayName:"所属"}),b((D=t((B=class extends s{constructor(...e){super(...e),i(this,"rigibody",D,this),i(this,"collider",N,this),i(this,"belong",T,this),this.origin=void 0,this.inited=!1,this.param=null}init(e){this.origin=this.node.getPosition(),this.belong=e.belong,this.inited=!0,this.param=e,this.rigibody.wakeUp(),this.rigibody.linearVelocity=e.dir.multiplyScalar(e.speed),this.collider.on(c.BEGIN_CONTACT,this.onBeginContact,this)}update(e){if(!this.inited)return;this.node.position.subtract(this.origin).length()>=this.param.range&&this.destory(null)}onBeginContact(e,t,i){Math.abs(t.tag-this.belong)<2||this.destory(t)}destory(e){if(this.collider.off(c.BEGIN_CONTACT,this.onBeginContact,this),this.rigibody.linearVelocity=u.ZERO,null!=e&&e.tag>=10){let t=e.getComponent(y);if(t){let i={type:g.近战,pierce:this.param.pierce,damage:this.param.damage,endurance:this.param.endurance,belong:this.param.belong};t.hurt(i,e.tag)}}this.inited=!1,h.once(p.EVENT_AFTER_PHYSICS,(()=>{this.node.destroy()}),this)}}).prototype,"rigibody",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(B.prototype,"collider",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(B.prototype,"belong",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.玩家}}),_=B))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/Bullet.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./HitEffect.ts","./HealthItem.ts","./GrenadeEffect.ts","./MotionTrail.ts"],(function(t){"use strict";var i,e,o,n,r,a,l,s,d,u,h,c,p,y,g,m,f,b,v,C;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,n=t.Enum,r=t.Node,a=t.RigidBody2D,l=t.Collider2D,s=t._decorator,d=t.Component,u=t.Contact2DType,h=t.Vec2,c=t.director,p=t.Director},function(t){y=t.BulletType,g=t.GameTags,m=t.DamageType},function(t){f=t.HitEffect},function(t){b=t.HealthItem},function(t){v=t.GrenadeEffect},function(t){C=t.MotionTrail}],execute:function(){var N,P,B,T,M,E,w,D,z,_,G,H,A,I,R;o._RF.push({},"ec9efBtjBZPUKLM1a4uzKN7","Bullet",void 0);const{ccclass:S,property:V}=s;t("Bullet",(N=S("Bullet"),P=V({type:n(y),displayName:"类型"}),B=V({type:r,displayName:"子弹"}),T=V({type:C,displayName:"拖尾"}),M=V({type:a,displayName:"刚体"}),E=V({type:l,displayName:"碰撞体"}),w=V({type:n(g),displayName:"所属"}),N((_=i((z=class extends d{constructor(...t){super(...t),e(this,"type",_,this),e(this,"body",G,this),e(this,"trail",H,this),e(this,"rigibody",A,this),e(this,"collider",I,this),e(this,"belong",R,this),this.origin=void 0,this.inited=!1,this.param=null}get damage(){return null!=this.param?this.param.damage:0}init(t){this.origin=this.node.getPosition(),this.belong=t.belong,this.inited=!0,this.param=t,this.rigibody.wakeUp(),this.trail.isActive=!0,this.body.angle=Tool.MathUtil.vectorCovertAngle(t.dir),this.rigibody.linearVelocity=t.dir.multiplyScalar(t.speed),this.collider.on(u.BEGIN_CONTACT,this.onBeginContact,this)}update(t){if(!this.inited)return;this.node.position.subtract(this.origin).length()>=this.param.range&&this.destory(null)}onBeginContact(t,i,e){Math.abs(i.tag-this.belong)<2||this.destory(i)}destory(t){if(!this.inited)return;let i;if(this.inited=!1,this.collider.off(u.BEGIN_CONTACT,this.onBeginContact,this),this.rigibody.linearVelocity=h.ZERO,this.type!=y.榴弹){if(null!=t&&t.tag>=10){i=My.Pool.getNode(My.Play.prefabs.hitXiugou);let e=t.getComponent(b),o={type:m.子弹,pierce:this.param.pierce,damage:this.param.damage,endurance:this.param.endurance,belong:this.param.belong};e.hurt(o,t.tag)}else i=My.Pool.getNode(My.Play.prefabs.hitCommon);i.setWorldPosition(this.node.worldPosition),i.getComponent(f).show(null!=t)}c.once(p.EVENT_AFTER_PHYSICS,(()=>{this.type==y.榴弹&&(i=My.Pool.getNode(My.Play.prefabs.hitGrenade),i.setWorldPosition(this.node.worldPosition),i.getComponent(v).init(this.param.damage,this.param.radius)),this.node.destroy()}),this)}}).prototype,"type",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return y.子弹}}),G=i(z.prototype,"body",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=i(z.prototype,"trail",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=i(z.prototype,"rigibody",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=i(z.prototype,"collider",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=i(z.prototype,"belong",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g.玩家}}),D=z))||D));t("BulletParme",class{constructor(){this.dir=void 0,this.speed=void 0,this.damage=void 0,this.range=void 0,this.radius=void 0,this.pierce=void 0,this.belong=void 0,this.endurance=void 0}}),o._RF.pop()}}}));

System.register("chunks:///_virtual/BuyPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./CounterItem.ts","./AccItem.ts","./InfoItem.ts","./TagItem.ts","./UIDefine.ts","./PopupBase.ts"],(function(t){"use strict";var e,i,a,s,n,r,o,c,h,p,m,u,l,g,y,I,w,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,s=t.UIOpacity,n=t.Node,r=t._decorator,o=t.tween,c=t.Vec3,h=t.easing},function(t){p=t.ItemQuality,m=t.ItemType,u=t.PeijianType},function(t){l=t.CounterItem},function(t){g=t.AccItem},function(t){y=t.InfoItem},function(t){I=t.TagItem},function(t){w=t.BuyPopupParam},function(t){f=t.PopupBase}],execute:function(){var b,d,P,k,M,v,C,D,B,F,N,S,z,_,G,K,T;a._RF.push({},"66b10Lfnu5GabgwwRAw2BRw","BuyPopup",void 0);const{ccclass:q,property:A}=r;t("BuyPopup",(b=q("BuyPopup"),d=A({type:w,displayName:"参数"}),P=A({type:g,displayName:"配件"}),k=A({type:y,displayName:"信息"}),M=A({type:I,displayName:"词条"}),v=A({type:l,displayName:"计数器"}),C=A({type:s,displayName:"透明度"}),D=A({type:n,displayName:"内容"}),b((N=e((F=class extends f{constructor(...t){super(...t),i(this,"param",N,this),i(this,"acc",S,this),i(this,"info",z,this),i(this,"tag",_,this),i(this,"counter",G,this),i(this,"opacityCom",K,this),i(this,"content",T,this),this.using=!1,this.lastData=void 0}init(){this.using=!1,this.node.active=!1,My.Event.on(My.events.pop_buy,this.pop_State,this)}show(t){this.setData(t),this.content.setScale(1,.8),this.opacityCom.opacity=0,this.node.active=!0,this.using=!0,o(this.opacityCom).to(.2,{opacity:255}).start(),o(this.content).to(.25,{scale:c.ONE},{easing:h.backOut}).call((()=>{this.using=!1})).start()}hide(){this.node.active=!1}async setData(t){if(t){if(this.counter.init(t),this.lastData==t)return;switch(this.lastData=t,this.param.nameLabel.string=t.name,this.param.price.string=t.sell.toString(),this.param.quality.color=My.Item.Instance.getQualityColor(t.quality),this.param.quality.string=p[t.quality],this.param.desc.string=t.desc,t.type){case m.武器:this.param.image.spriteFrame=await My.Item.Instance.getItemSlot(t.image),this.param.weight.string="重量："+t.weight+"KG",this.param.other.string="耐久: "+t.endStr,this.acc.show(t);break;case m.防具:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.weight.string="重量："+t.weight+"KG",this.param.other.string="耐久: "+t.endStr,this.acc.hide();break;case m.配件:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string="类型: "+u[t.kind]+"配件",this.param.weight.string="重量："+t.weight+"KG",this.acc.hide();break;case m.药品:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.weight.string="重量："+t.weight+"KG",this.param.other.string="耐久: "+t.endStr,this.acc.hide();break;case m.子弹:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string="口径: "+Tool.CommonUtil.ParseAmmo(t.kind),this.param.weight.string="重量："+t.weight+"KG",this.acc.hide();break;case m.投掷物:case m.杂物:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.weight.string="重量："+t.weight+"KG",this.param.other.string="",this.acc.hide();break;case m.宝箱:case m.货币:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.weight.string="",this.param.other.string="",this.acc.hide()}this.info.show(t),this.tag.show(t.tags)}}pop_State(t){t?this.show(t):this.hide()}onClick_Close(){this.using||this.hide()}}).prototype,"param",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new w}}),S=e(F.prototype,"acc",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(F.prototype,"info",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(F.prototype,"tag",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(F.prototype,"counter",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(F.prototype,"opacityCom",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(F.prototype,"content",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=F))||B));a._RF.pop()}}}));

System.register("chunks:///_virtual/CenterLayout.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,n,s,a,r,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,n=t.Enum,s=t._decorator,a=t.Layout,r=t.UITransform,c=t.Vec3}],execute:function(){var h,l,_,u,d,p,g;o._RF.push({},"16211ceCbtDx7ZmQPzrdQDF","CenterLayout",void 0);const{ccclass:T,inspector:y,property:f,disallowMultiple:E,menu:D}=s;var R;!function(t){t[t.LEFT_TO_RIGHT=0]="LEFT_TO_RIGHT",t[t.RIGHT_TO_LEFT=1]="RIGHT_TO_LEFT",t[t.CENTER_TO_SIDE=2]="CENTER_TO_SIDE"}(R||(R={}));t("default",(h=E(),l=D("自定义组件/CenterLayout"),_=y("packages://custom_inspector/centerlayout.js"),u=f({type:n(R)}),T(d=h(d=l(d=_((g=e((p=class extends a{constructor(...t){super(...t),i(this,"centerHorizontalDirection",g,this)}_doLayoutHorizontally(t,e,i,o){const n=this.node._uiProps.uiTransformComp.anchorPoint,s=this._getFixedBreakingNum();let h=1,l=this._paddingLeft;this._horizontalDirection===a.HorizontalDirection.RIGHT_TO_LEFT&&(h=-1,l=this._paddingRight);const _=(this._horizontalDirection-n.x)*t+h*l;let u=_-h*this._spacingX,d=0,p=0,g=0,T=0,y=!1;const f=this._usefulLayoutObj.length;let E=this._cellSize.width;const D=this._getPaddingH();this._layoutType!==a.Type.GRID&&this._resizeMode===a.ResizeMode.CHILDREN&&(E=(t-D-(f-1)*this._spacingX)/f);const z=this._usefulLayoutObj;for(let r=0;r<z.length;++r){const c=z[r],l=c.node,f=l.scale,R=this._getUsedScaleValue(f.x),I=this._getUsedScaleValue(f.y);this._resizeMode===a.ResizeMode.CHILDREN&&(c.width=E/R,this._layoutType===a.Type.GRID&&(c.height=this._cellSize.height/I));const L=Math.abs(this._horizontalDirection-c.anchorX),m=c.width*R,H=c.height*I;H>g&&(T=Math.max(g,T),p=g||H,g=H),u+=h*(L*m+this._spacingX);const M=h*(1-L)*m;if(e){if(s>0)y=r/s>0&&r%s==0,y&&(p=g>H?g:p);else if(m>t-D)u>_+h*(L*m)&&(y=!0);else{const e=(1-this._horizontalDirection-n.x)*t,i=u+M+h*(h>0?this._paddingRight:this._paddingLeft);y=Math.abs(i)>Math.abs(e)}y&&(u=_+h*(L*m),H!==g&&(p=g),d+=p+this._spacingY,p=g=H)}const x=i(l,c,d);o&&l.setPosition(u,x),u+=M}p=Math.max(p,g);const I=Math.max(T,d+p)+this._getPaddingV();if(z.length>0&&this.centerHorizontalDirection==R.CENTER_TO_SIDE){let e=(.5-n.x)*t,i=0,o=-1,s=Number.MIN_SAFE_INTEGER;h=-1;for(let a=z.length-1;a>=0;a--){let _=z[a],u=this._getUsedScaleValue(_.node.scale.x);var L=_.getComponent(r).anchorX,m=_.getComponent(r).width*u;if(Math.abs(_.node.position.y-s)>1){s=_.node.position.y,i=_.node.position.x+(1-L)*m+this.paddingRight,i=t*n.x+i,o=e+.5*i+h*l-h*this.spacingX}if(_.node.activeInHierarchy)o=o+h*L*m+h*this.spacingX,_.node.setPosition(new c(o,_.node.position.y,0)),o+=h*(1-L)*m}}return I}_getUsedScaleValue(t){return this.affectedByScale?Math.abs(t):1}}).prototype,"centerHorizontalDirection",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.CENTER_TO_SIDE}}),d=p))||d)||d)||d)||d));o._RF.pop()}}}));

System.register("chunks:///_virtual/ChannelID.ts",["cc"],(function(a){"use strict";var e;return{setters:[function(a){e=a.cclegacy}],execute:function(){e._RF.push({},"09227M4/CZE/bIkzKbX2ugl","ChannelID",void 0);class d{}a("default",d),d.TEST=0,d.ANDROID=1,d.OPPO=2,d.VIVO=3,d.HW=4,d.XIAOMI=5,d.TT=6,d.HONOR=7,d.WX=8;let r=a("RUANZHU",{zq:"深圳市指趣恒生科技有限公司",ark:"北京艾瑞卡科技有限公司",diedie:"南京喋喋网络科技有限公司",jf:"武汉飓风世界科技有限公司",lsf:"深圳市六十分科技有限公司",szx:"福建始足下文化传媒有限公司",tlq:"武汉桃乐茜科技有限公司",xr:"厦门市希苒文化传播有限公司",lj:"厦门乐聚时代科技有限公司",cx:"广州创行软件有限公司",yy:"厦门元游互动科技有限公司",dc:"厦门大橙互娱科技有限公司",lxy:"厦门龙祥游科技有限公司",mc:"厦门觅成科技有限公司",sy:"厦门石猿科技有限公司"});a("AdIDS",[{company:"dc",ruanzhu:r.dc,gameName:"战场突围",software:"2024SR1665231",insertId:"111111",bannerId:"222222",rewardId:"333333",nativeId:"444444"},{company:"lxy",ruanzhu:r.dc,gameName:"",software:"2024SR1996107",insertId:"111111",bannerId:"222222",rewardId:"333333",nativeId:"444444"},{kgId:"",year:2025,month:3,day:7,hour:19,gameName:"地铁修勾突围",software:"2024SR1659622",umId:"",company:"dc",ruanzhu:r.dc,bannerId:"2191097",rewardId:"2191106",nativeId:"2191101",nativeId2:"2191105"},{kgId:"3328",year:2025,month:5,day:30,hour:19,umId:"",gameName:"地铁修勾突围",software:"2024SR1659622",company:"dc",ruanzhu:r.dc,bannerId:"297959c96912465b885bc922e5e081b1",rewardId:"47d19771be424374974205dfaa32d7b5",nativeId:"fe29038abfe4473a8cf4f8e7e3690fe2",nativeId2:"2353cf583c3547fcab987245d1393d38"},{kgId:"3375",year:2025,month:6,day:6,hour:19,umId:"",gameName:"修勾地铁传世武器",software:"2025SA0050065",company:"mc",ruanzhu:r.mc,appId:"113929839",bannerId:"v3gvu59m8m",rewardId:"p9ij8ewxg0",nativeId:"y0aj0huvoh",bTest:!1,testBannerId:"testw6vs28auh3",testRewardId:"testx9dtjwj8hp",testNativeId:"testu7m3hc4gvm"},{kgId:"",year:2025,month:5,day:29,hour:19,gameName:"修勾精英大剑机甲",software:"2025SA0050068",umId:"",company:"sy",ruanzhu:r.mc,insertId:"cd20c1edd28e3bb9ef499c2968bf2178",bannerId:"fe1bfe3456cf2aff36ef9703c14bc6c3",rewardId:"0484c257cfff999c404fd76aa94686cb",nativeId:"b418d57a6ed5c7792d8e997d12b01b39"},{kgId:"",year:2025,month:12,day:12,hour:19,gameName:"修狗绝密行动",software:"2025SR0037022",umId:"",company:"yy",ruanzhu:r.yy,insertId:"43u7ing7wdh2596591",bannerId:"",rewardId:"1jp8l0j01pa9c0bc3h",templateId:"",title:"",desc:""},{kgId:"",year:2025,month:11,day:20,hour:19,gameName:"",software:"",umId:"",company:"yy",ruanzhu:r.yy,appId:"300109675",nativeId:"1858433463859675136",nativeId2:"1858433554026070016",insertId:"1858433737416376320",bannerId:"1858433655102373888",rewardId:"1858433934821294080"},{kgId:"",year:2025,month:11,day:20,hour:19,gameName:"地铁修猫逃生",software:"2025SR0374798",umId:"",company:"mc",ruanzhu:r.sy,rewardId:"adunit-a71c9b4097608e0f",insertId:"adunit-642d9ad9ff8c6a18",bannerId:"adunit-e22b6d5832402588",leftGridId:"adunit-5f0f020b707a90cd",rightGridId:"adunit-6fbddcaf7257a2e7",moreGridId:"adunit-134a9155dcf0b74b",shareId:[""],shareUrl:[""]}]);e._RF.pop()}}}));

System.register("chunks:///_virtual/ChargeItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,a,i,l,r,s,n;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){i=e.cclegacy,l=e.Sprite,r=e.Label,s=e._decorator,n=e.Component}],execute:function(){var c,h,o,u,g,p,b,y,m;i._RF.push({},"082a4HmNrpDF7LbT08j7y+s","ChargeItem",void 0);const{ccclass:d,property:f}=s;e("ChargeItem",(c=d("ChargeItem"),h=f({type:l,displayName:"进度"}),o=f({type:r,displayName:"描述"}),u=f({type:r,displayName:"时间"}),c((b=t((p=class extends n{constructor(...e){super(...e),a(this,"fill",b,this),a(this,"descLabel",y,this),a(this,"timeLabel",m,this),this.chargeTimer=0}onEnable(){this.check()}onDisable(){this.unscheduleAllCallbacks()}init(){My.Event.on(My.events.update_charge_state,this.updateState,this)}check(){My.Data.playerData.charges>=10?(this.fill.fillRange=0,this.timeLabel.string="00:00",this.descLabel.string="今日已获得充能(10/10)"):(this.descLabel.string="今日已获得充能("+My.Data.playerData.charges+"/10)",this.charging())}charging(){let e=()=>{this.chargeTimer=My.Data.playerData.gameTime%360;let e=Math.floor(this.chargeTimer/60),t=this.chargeTimer%60;this.timeLabel.string=(e>9?e:"0"+e)+":"+(t>9?t:"0"+t),this.fill.fillRange=this.chargeTimer/360};e(),this.schedule((()=>{e()}),1)}updateState(){this.descLabel.string="今日已获得充能("+My.Data.playerData.charges+"/10)",My.Data.playerData.charges>=10&&(this.unscheduleAllCallbacks(),this.fill.fillRange=0,this.timeLabel.string="00:00",this.descLabel.string="今日已获得充能(10/10)")}}).prototype,"fill",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(p.prototype,"descLabel",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(p.prototype,"timeLabel",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=p))||g));i._RF.pop()}}}));

System.register("chunks:///_virtual/CheatView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameCheat.ts","./ViewBase.ts"],(function(t){"use strict";var e,n,i,a,o,c,s,r,h,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,o=t.Button,c=t._decorator,s=t.instantiate,r=t.Label},function(t){h=t.GameCheat},function(t){u=t.ViewBase}],execute:function(){var l,p,d,v,f,y,m;i._RF.push({},"fd878HWgu5J4KSRwmVr/X0h","CheatView",void 0);const{ccclass:b,property:C}=c;t("CheatView",(l=b("CheatView"),p=C({type:a,displayName:"容器"}),d=C({type:o,displayName:"控件"}),l((y=e((f=class extends u{constructor(...t){super(...t),n(this,"content",y,this),n(this,"button",m,this)}init(){h.Instance.cheats.forEach((t=>{let e=s(this.button.node);e.setParent(this.content),e.active=!0,e.name=t.name,e.getComponentInChildren(r).string=t.name,e.on(o.EventType.CLICK,t.func,this)})),My.Event.on(My.events.game_cheat,this.onclick_Cheats,this),this.button.node.active=!1,this.content.active=!1,this.node.active=!1}show(t){this.node.active=!0,t&&t()}hide(t){this.node.active=!1,t&&t()}onclick_Cheats(){this.content.active=!this.content.active}}).prototype,"content",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(f.prototype,"button",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=f))||v));i._RF.pop()}}}));

System.register("chunks:///_virtual/CommonDefine.ts",["cc"],(function(i){"use strict";var o,t,s;return{setters:[function(i){o=i.cclegacy,t=i.Color,s=i._decorator}],execute:function(){var e,v,d,n,r,h,c,a,l,u;o._RF.push({},"13721iXkvFAfKIWSI67yajl","CommonDefine",void 0);const{ccclass:g,property:f}=s;i("SettingConfig",g("SettingConfig")(e=class{constructor(){this.id=void 0,this.value=void 0}})||e),i("DailyConfig",g("DailyConfig")(v=class{constructor(){this.id=void 0,this.name=void 0,this.rewards=void 0,this.time=void 0}})||v),i("SkillConfig",g("SkillConfig")(d=class{constructor(){this.id=void 0,this.name=void 0,this.cd=void 0,this.value=void 0}})||d),i("SurveyConfig",g("SurveyConfig")(n=class{constructor(){this.id=void 0,this.rewards=void 0,this.gen_survey_cost=void 0,this.gen_survey_rate=void 0,this.normal_survey_rate=void 0,this.video_survey_rate=void 0}})||n),i("SkinConfig",g("SkinConfig")(r=class{constructor(){this.id=void 0,this.name=void 0,this.image=void 0,this.quality=void 0,this.type=void 0,this.fit=void 0,this.get_way=void 0,this.price=void 0}})||r),i("GoodsConfig",g("GoodsConfig")(h=class{constructor(){this.id=void 0,this.shop=void 0,this.name=void 0,this.type=void 0,this.content=void 0,this.limit=void 0,this.reset=void 0,this.price=void 0}})||h),i("StoreConfig",g("StoreConfig")(c=class{constructor(){this.id=void 0,this.name=void 0,this.color=void 0,this.currency=void 0,this.bg_img=void 0,this.enter_img=void 0,this.content=void 0,this.pool=void 0}})||c),i("LvConfig",g("LvConfig")(a=class{constructor(){this.id=void 0,this.exp=void 0,this.level_pic=void 0,this.level_text=void 0,this.system_open=void 0,this.level_rewards=void 0}})||a),i("StoreInfo",g("StoreInfo")(l=class{constructor(){this.id=void 0,this.name=void 0,this.color=new t(255,255,255,255),this.currency=void 0,this.bg_img=void 0,this.enter_img=void 0,this.content=[],this.pool=[]}})||l),i("MapInfo",g("MapInfo")(u=class{constructor(){this.name=void 0,this.level=void 0,this.open_level=void 0,this.equip_min=void 0,this.equip_max=void 0,this.image=void 0,this.prefab=void 0,this.map=void 0}})||u);o._RF.pop()}}}));

System.register("chunks:///_virtual/CommonUtil.ts",["cc","./ItemInfo.ts","./ItemDefine.ts","./GameItem.ts","./GameDefine.ts","./DiaoluoConfig.ts"],(function(t){"use strict";var e,a,r,n,c,i,s,m,o,u,d,l,g;return{setters:[function(t){e=t.cclegacy,a=t._decorator},function(t){r=t.ItemInfo,n=t.ItemStoredType},function(t){c=t.ItemType,i=t.AmmoType,s=t.ItemData},function(t){m=t.GameItem},function(t){o=t.PierceType,u=t.BoxData,d=t.WuziParam,l=t.DamageParam},function(t){g=t.DiaoluoData}],execute:function(){var p;e._RF.push({},"788f3Yw5WZIr7di0c0m0+rc","CommonUtil",void 0);const{ccclass:f,property:x}=a;t("CommonUtil",f("CommonUtil")(p=class{static CounterMax(t){switch(t){case c.武器:case c.防具:case c.配件:return 6;case c.药品:case c.子弹:case c.投掷物:return 999;case c.杂物:case c.宝箱:return 6}}static ParseAmmo(t){switch(t){case i.mm545x39:return"5.45x39mm";case i.mm556x45:return"5.56x45mm";case i.mm58x42:return"5.8x42mm";case i.mm762x39:return"7.62x39mm";case i.mm762x51:return"7.62x51mm";case i.mm762x54:return"7.62x54mm";case i.mm9x19:return"9x19mm";case i.mm12x70:return"12x70mm";case i.mm338:return".338口径";case i.mm762x25:return"7.62x25mm";case i.mm45:return".45口径";case i.mm57x28:return"5.7x28mm";case i.mm9x39:return"9x39mm";case i.mm127x99:return"12.7x99mm";case i.mm44:return".44口径";default:return"无"}}static ParseValue(t){return t>=1e8?(t/1e8).toFixed(0)+"亿":t>=1e6?(t/1e3).toFixed(0)+"K":t.toString()}static ParseProductString(t){return this.ParseProductNumber(t).toString()}static ParseProductNumber(t){let e=Math.round(100*t)/100;return e%1>0?parseFloat(e.toFixed(2)):e}static ParseImageStr(t){let e=parseInt(t.replace(/[^0-9]+/g,""));return e<10?"pic_0":e<9e3?"pic_1000":e>9e4?"pic_90000":e>7e4&&e<8e4?"pic_70000":e>6e4&&e<7e4?"pic_60000":e>5e4&&e<6e4?"pic_50000":e>4e4&&e<5e4?"pic_40000":e>3e4&&e<4e4?"pic_30000":e>2e4&&e<3e4?"pic_20000":e>1e4&&e<2e4?"pic_10000":t}static ParseWuziParam(t){let e=[];return Tool.StringUtil.stringToArray(t,";").forEach((t=>{let a=Tool.StringUtil.stringToArrayNumber(t,","),r=new d;r.id=a[0],r.count=a[1],r.weight=a[2],e.push(r)})),e}static ParsePierce(t,e){let a=e.kct*e.endRatio,r=t-a;if(r>=20)return o.完全穿透;if(r<0){let e=1+(t-a)/20;return Tool.MathUtil.probability(e)?o.部分穿透:o.未能穿透}{let e=(t-a)/20+.5;return Tool.MathUtil.probability(e)?o.完全穿透:o.部分穿透}}static ParseDamage(t,e){return t.type==c.武器&&e.type==c.子弹?t.atkadd+e.damage:(My.Game.gameErr("武器子弹>伤害>解析格式错误"),0)}static ParseAngleMoa(t,e=20){return Math.round(e*(1-Math.pow(t/100,.3)))}static DamageParamInfo(t,e,a,r){let n=new l;return n.damage=t,n.pierce=e,n.belong=a,n.type=r,n}static BoxItemData(t,e,a){let r=new u;return r.state=0,r.type=t,r.level=e,r.items=a,r}static WuziItemInfo(t,e=1){let a=new r;if(a.config=t,null!=t){let e=new s;e.id=t.id,e.end=t.end,e.acc=[-1,-1,-1,-1,-1],e.tags=My.Item.getItemTags(t),e.count=1,a.data=e}return a.tagDatas=[],a.stored=n.箱子,a}static BuyItemData(t,e){let a=new s;return a.id=t.id,a.end=t.end,a.count=e,a.acc=a.acc,a.tags=My.Item.getItemTags(t),a}static BuyIteminfo(t){let e=new r;return e.config=t,e.data=new s,e.tagDatas=[],e.stored=n.未知,e}static StoredData(t,e){let a=new s;return a.id=t.id,a.end=t.end,a.count=e,a.acc=t.acc,a.tags=t.tags,a}static StoredInfo(t,e,a,n){let c=new r;return c.config=t,c.data=n?this.StoredData(e,n):e,c.tagDatas=[],c.stored=a,c}static DiscardInfo(t,e,a){let c=new r;c.config=t;let i=new s;return i.id=e.id,i.end=e.end,i.acc=e.acc,i.tags=e.tags,i.count=a,c.data=i,c.tagDatas=[],c.stored=n.丢弃,c}static CreateInfo(t,e,a,n=[]){let c=new r;c.config=t;let i=new s;return t&&(i.id=t.id,i.end=t.end,i.tags=n,i.acc=[-1,-1,-1,-1,-1],i.count=e),c.data=i,c.tagDatas=[],c.stored=a,c}static CreateData(t,e=1){let a=m.Instance.getItemConfig(t),r=new s;return r.id=t,r.end=a.end,r.count=e,r.acc=[-1,-1,-1,-1,-1],r}static CopyData(t){let e=new s;return e.id=t.id,e.end=t.end,e.count=t.count,e.tags=t.tags,e.acc=t.acc,e}static CopyInfo(t){let e=new r;return e.config=t.config,e.data=this.CopyData(t.data),e.tagDatas=t.tagDatas,e.stored=t.stored,e}static DropData(t,e){let a=new g;return a.id=t,a.weight=e,a}})||p);e._RF.pop()}}}));

System.register("chunks:///_virtual/copyright.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ChannelID.ts"],(function(t){"use strict";var e,n,i,r,o,s,c,a,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.ScrollView,o=t.RichText,s=t._decorator,c=t.Component,a=t.UITransform},function(t){l=t.AdIDS}],execute:function(){var h,p,u,b,y,f,g;i._RF.push({},"6ea35Cby51Dxb5haOdMMa3a","copyright",void 0);const{ccclass:m,property:d}=s;t("copyright",(h=m("copyright"),p=d({type:r}),u=d({type:o}),h((f=e((y=class extends c{constructor(...t){super(...t),n(this,"content",f,this),n(this,"copyrightLabel",g,this),this.templates=["致各相关方：\n\n",'@公司（以下称"我司"）自主研发的《@游戏》 （软著登记号：@登记号），是受《中华人民共和国著作权法》保护的游戏作品。现严正声明如下：\n',"\n<b>一、权利归属</b>\n\n","1.我司对《@游戏》游戏享有完整、排他的著作权（包括但不限于代码、美术资源、商标、衍生权利等）；\n","2.任何单位或个人未经我司书面授权，不得以任何形式：\n","\t\t\t运营、发布、复制、修改本游戏；\n","\t\t\t接入用户/收费系统或进行商业化使用；\n","\t\t\t使用游戏名称、商标及我司名义进行宣传。\n","\n<b>二、禁止性声明</b>\n\n","1.原授权废止：此前所有授权文件（含@公司相关授权）均需我司重新书面确认方为有效；\n","2.侵权责任：未经许可的运营、二次修改等行为，我司将：\n","\t\t\t通过法律途径索赔实际损失（含维权费用）；\n","\t\t\t要求侵权方按每日人民币5万元或**侵权收益的200%**支付违约金；\n","\t\t\t向国家版权局及行政主管部门举报。\n","\n<b>三、合法合作途径</b>\n\n","如有合作需求，请通过以下方式联系授权：\n","<b>授权邮箱</b>：2968396720@qq.com\n","<b>联系电话</b>：15060720146\n\n","<b>签发方</b>：@公司\n","<b>签发日期</b>：2025年2月1日"],this.replaces=["@公司","@游戏","@登记号"],this.canClose=!1}onEnable(){this.canClose=!1,this.scheduleOnce((()=>{this.canClose=!0}),1),this.content.scrollToTop(.1)}start(){let t="";this.templates.forEach((e=>{t+=e})),this.replaces.forEach((e=>{t=this.replace(t,e)})),this.copyrightLabel.maxWidth=this.content.getComponent(a).width,this.copyrightLabel.string=t}replace(t,e){let n=t.split(e);switch(e){case this.replaces[0]:return n.join(l[window.platform].ruanzhu);case this.replaces[1]:return n.join(l[window.platform].gameName);case this.replaces[2]:return n.join(l[window.platform].software)}}close(){this.canClose&&(this.node.active=!1)}}).prototype,"content",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(y.prototype,"copyrightLabel",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=y))||b));i._RF.pop()}}}));

System.register("chunks:///_virtual/CounterItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(t){"use strict";var e,i,s,n,o,u,c,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Label,o=t._decorator,u=t.Component,c=t.math},function(t){a=t.ItemType}],execute:function(){var r,h,p,m,l,y,d;s._RF.push({},"1860duf8LhEU7Blvi0bYyMM","CounterItem",void 0);const{ccclass:M,property:b}=o;t("CounterItem",(r=M("CounterItem"),h=b({type:n,displayName:"数量"}),p=b({type:n,displayName:"价格"}),r((y=e((l=class extends u{constructor(...t){super(...t),i(this,"countLabel",y,this),i(this,"priceLabel",d,this),this.data=void 0,this.count=1,this.price=1,this.boxItems=[],this.minCount=1,this.maxCount=990}init(t){this.data=t,t.type==a.子弹?(this.count=30,this.minCount=30):(this.count=1,this.minCount=1),this.setBoxItems(),this.update_Counter()}update_Counter(){this.price=this.count*this.data.buy,this.countLabel.string=this.count.toString(),this.price>=1e8?this.priceLabel.string=(this.price/1e8).toFixed(0)+"亿":this.price>=1e6?this.priceLabel.string=(this.price/1e3).toFixed(0)+"K":this.priceLabel.string=this.price.toString()}onClick_Add(){My.Sound.playSfx(My.sounds.ui_click_common),this.count=c.clamp(this.count+this.minCount,this.minCount,this.maxCount),this.update_Counter()}onClick_Less(){My.Sound.playSfx(My.sounds.ui_click_common),this.count=c.clamp(this.count-this.minCount,this.minCount,this.maxCount),this.update_Counter()}onClick_Buy(){My.Sound.playSfx(My.sounds.ui_click_common),My.Whs.Instance.enoughByItem(this.data,this.count)?My.Game.Instance.gameBought(this.price)?(My.Market.Instance.buyItem(this.data.config,this.count,this.boxItems),My.Event.emit(My.events.pop_buy)):My.Msg.showMessage(My.Item.Instance.getCurrencyName(1)+My.msgcode.货币不足):My.Msg.showMessage(My.msgcode.仓库空间不足)}setBoxItems(){this.data.type==a.宝箱?this.boxItems=My.Market.Instance.parseBoxItem(this.data.reward):this.boxItems=[]}}).prototype,"countLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(l.prototype,"priceLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=l))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/CurrencyView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RewardedItem.ts","./UIDefine.ts","./ViewBase.ts","./AnchorItem.ts"],(function(e){"use strict";var t,i,n,r,s,o,a,l,c,u,h,p;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.Prefab,s=e.Node,o=e.ScrollView,a=e._decorator,l=e.instantiate},function(e){c=e.RewardedItem},function(e){u=e.CurrencyInfo},function(e){h=e.ViewBase},function(e){p=e.AnchorItem}],execute:function(){var y,f,d,m,w,b,g,v,_,M,z,C,D;n._RF.push({},"8782bzLKuFJG4wz3tUedKQT","CurrencyView",void 0);const{ccclass:V,property:I}=a;e("CurrencyView",(y=V("CurrencyView"),f=I({type:r,displayName:"预制"}),d=I({type:s,displayName:"内容"}),m=I({type:o,displayName:"视图"}),w=I({type:[u],displayName:"激励"}),b=I({type:[p],displayName:"锚点动画"}),y((_=t((v=class extends h{constructor(...e){super(...e),i(this,"prefab",_,this),i(this,"content",M,this),i(this,"scroll",z,this),i(this,"rewards",C,this),i(this,"anchors",D,this),this.items=[]}init(){this.node.active=!1,My.Event.on(My.events.game_load,this.loadData,this)}show(e){My.Sound.playSfx(My.sounds.ui_view_whs),this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),this.scroll.scrollToLeft(0,!1);for(let e=0;e<this.items.length;e++)this.items[e].show(.05*e);e&&e()}hide(e){this.node.active=!1,e&&e()}loadData(){My.Event.off(My.events.game_load,this.loadData,this),this.rewards.forEach((e=>{let t=l(this.prefab);t.setParent(this.content);let i=t.getComponent(c);i.init(e),this.items.push(i)}))}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}}).prototype,"prefab",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(v.prototype,"content",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(v.prototype,"scroll",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(v.prototype,"rewards",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=t(v.prototype,"anchors",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=v))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/DailyItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,a,n,r,s,l,o,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Color,r=e.Sprite,s=e.Label,l=e.Node,o=e._decorator,c=e.Component}],execute:function(){var u,h,p,y,d,m,b,g,f,v,L,N,w,I,z,D,M,_,k,S,q;a._RF.push({},"e69f6IXpWhG57hzUk+t6yow","DailyItem",void 0);const{ccclass:F,property:R}=o;e("DailyItem",(u=F("DailyItem"),h=R({type:[n],displayName:"颜色"}),p=R({type:r,displayName:"底图"}),y=R({type:r,displayName:"品质"}),d=R({type:r,displayName:"图像"}),m=R({type:s,displayName:"标题"}),b=R({type:s,displayName:"名称"}),g=R({type:s,displayName:"详情"}),f=R({type:l,displayName:"小图标"}),v=R({type:l,displayName:"领取奖励"}),u((w=t((N=class extends c{constructor(...e){super(...e),i(this,"colors",w,this),i(this,"mask",I,this),i(this,"quality",z,this),i(this,"image",D,this),i(this,"titleLabel",M,this),i(this,"nameLabel",_,this),i(this,"descLabel",k,this),i(this,"iconNode",S,this),i(this,"received",q,this),this.data=void 0,this.config=void 0,this.count=void 0}async init(e){this.data=e;let t=Tool.StringUtil.stringToArrayNumber(e.rewards,",");this.count=t[1],this.config=My.Item.Instance.getItemConfig(t[0]),this.mask.color=this.colors[1==this.data.id?1:0],this.titleLabel.string=this.data.name,this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.config.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.config.image),this.descLabel.string="累计"+Math.floor(this.data.time/60)+"分可领取奖励",t[0]>100?this.nameLabel.string=this.config.name:this.nameLabel.string=this.config.name+"x"+this.count,My.Event.on(My.events.update_daily_state,this.updateState,this)}updateState(){switch(My.Daily.get_DailyState(this.data)){case-1:this.iconNode.active=!0,this.received.active=!1,this.descLabel.node.active=!0;break;case 0:this.iconNode.active=!1,this.received.active=!0,this.descLabel.node.active=!1;break;case 1:this.iconNode.active=!1,this.received.active=!1,this.descLabel.node.active=!0,this.descLabel.string="已领取"}}onclick_Receive(){My.Daily.get_DailyReward(this)}}).prototype,"colors",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),I=t(N.prototype,"mask",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(N.prototype,"quality",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(N.prototype,"image",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(N.prototype,"titleLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(N.prototype,"nameLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(N.prototype,"descLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(N.prototype,"iconNode",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(N.prototype,"received",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=N))||L));a._RF.pop()}}}));

System.register("chunks:///_virtual/DailyMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CommonDefine.ts"],(function(a){"use strict";var t,e,i,s,n,l,y;return{setters:[function(a){t=a.applyDecoratedDescriptor,e=a.initializerDefineProperty},function(a){i=a.cclegacy,s=a.JsonAsset,n=a._decorator,l=a.Component},function(a){y=a.DailyConfig}],execute:function(){var r,o,c,d,D,m;i._RF.push({},"e358cyxl41FtJP1M98VCDqd","DailyMgr",void 0);const{ccclass:u,property:h}=n;a("DailyMgr",(r=u("DailyMgr"),o=h({type:s,displayName:"每日奖励配置文件"}),r(((m=class a extends l{constructor(...a){super(...a),e(this,"dailyJson",D,this),this.dailyMap=new Map,this.dailyTime=[],this.dailyData=[],this.dailyDot=!1}onLoad(){a.Instance=this,this.load_Data()}load_Data(){if(this.dailyMap.clear(),null==this.dailyJson)return;this.dailyJson.json.config.forEach((a=>{let t=new y;t.id=a.id,t.name=a.name,t.rewards=a.rewards,t.time=a.time,this.dailyTime.push(a.time),this.dailyMap.set(a.id,t)}));let a=(new Date).toLocaleDateString();My.Data.playerData.dailyDate==a?this.dailyData=JSON.parse(My.Data.playerData.dailyState):(this.dailyData=[],My.Data.playerData.charges=0,My.Data.playerData.gameTime=0,My.Data.playerData.dailyDate=a,My.Data.playerData.dailyState=JSON.stringify(this.dailyData),My.Data.savePlayerData())}static compareTime(a){return Tool.ArrayUtil.HasItem(this.Instance.dailyTime,a)}static checkState(a){let t=!1;null==a&&(a=My.Data.playerData.gameTime),this.Instance.dailyMap.forEach(((e,i)=>{a>=e.time&&(Tool.ArrayUtil.HasItem(this.Instance.dailyData,i)||(t=!0))})),this.Instance.dailyDot=t,My.Event.emit(My.events.dot_daily,this.Instance.dailyDot)}static get_DailyData(){if(this.Instance.dailyMap.size<=0)return null;let a=Tool.StringUtil.stringToArrayNumber(this.Instance.dailyMap.get(1).rewards,",");return My.Item.Instance.getItemConfig(a[0])}static get_DailyState(a){return My.Data.playerData.gameTime>=a.time?Tool.ArrayUtil.HasItem(this.Instance.dailyData,a.id)?1:0:-1}static get_DailyReward(a){a.config.id>100?(My.Whs.Instance.whsItem_Push(Tool.CommonUtil.BuyItemData(a.config,a.count)),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value)):My.Game.gameGot(a.config.id,a.count),this.Instance.dailyData.push(a.data.id),My.Event.emit(My.events.game_got,[[a.config.id,a.count]]),My.Data.playerData.dailyState=JSON.stringify(this.Instance.dailyData),My.Event.emit(My.events.update_daily_state),My.Data.savePlayerData()}}).Instance=null,D=t((d=m).prototype,"dailyJson",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=d))||c));i._RF.pop()}}}));

System.register("chunks:///_virtual/DailyView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AnchorItem.ts","./DailyItem.ts","./ViewBase.ts"],(function(e){"use strict";var t,i,a,s,n,r,o,l,c,h,u,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,s=e.Label,n=e.Prefab,r=e.Node,o=e._decorator,l=e.instantiate},function(e){c=e.AnchorItem},function(e){h=e.DailyItem},function(e){u=e.ViewBase,y=e.ViewType}],execute:function(){var p,m,f,d,b,v,w,_,M,D,g;a._RF.push({},"90d4fKa/i9A/I2l1uHtd/P7","DailyView",void 0);const{ccclass:I,property:E}=o;e("DailyView",(p=I("DailyView"),m=E({type:s,displayName:"在线时长"}),f=E({type:n,displayName:"每日奖励"}),d=E({type:r,displayName:"奖励容器"}),b=E({type:[c],displayName:"锚点动画"}),p((_=t((w=class extends u{constructor(...e){super(...e),i(this,"timeLabel",_,this),i(this,"prefab",M,this),i(this,"content",D,this),i(this,"anchors",g,this),this.items=[]}init(){this.node.active=!1,My.Event.on(My.events.game_load,this.load_Data,this)}show(e){this.reset_State(),e&&e()}hide(e){this.items.forEach((e=>{e.active=!1})),My.Game.timeEvent(this.timeLabel,!1),My.Daily.checkState(),this.node.active=!1,e&&e()}load_Data(){My.Daily.Instance.dailyMap.forEach((e=>{let t=l(this.prefab);t.setParent(this.content),t.getComponent(h).init(e),this.items.push(t)})),this.items.forEach((e=>{e.active=!1}))}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.reset_List(),this.anchors.forEach((e=>{e.show()})),My.Game.timeEvent(this.timeLabel,!0),My.Event.emit(My.events.update_daily_state)}reset_List(){if(!(this.items.length<=0)){for(let e=0;e<6;e++)this.items[e].active=!0;this.scheduleOnce((()=>{for(let e=5;e<this.items.length;e++)this.items[e].active=!0}),.3)}}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.主页视图),My.UI.Instance.hideView(y.每日视图)}}).prototype,"timeLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(w.prototype,"prefab",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(w.prototype,"content",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(w.prototype,"anchors",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=w))||v));a._RF.pop()}}}));

System.register("chunks:///_virtual/DamageEffect.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,o,e,s,a,r,n,l,c,h,u;return{setters:[function(t){i=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){e=t.cclegacy,s=t.UIOpacity,a=t.Label,r=t.Color,n=t._decorator,l=t.Component,c=t.Vec3,h=t.tween,u=t.easing}],execute:function(){var p,g,y,d,m,f,P,_,b;e._RF.push({},"e7a23joAulKo5upeWBhIswh","DamageEffect",void 0);const{ccclass:v,property:w}=n;t("DamageEffect",(p=v("DamageEffect"),g=w({type:s,displayName:"透明度"}),y=w({type:a,displayName:"文本"}),d=w({type:[r],displayName:"颜色"}),p((P=i((f=class extends l{constructor(...t){super(...t),o(this,"opacityCom",P,this),o(this,"valueLabel",_,this),o(this,"colors",b,this),this.origin_Pos=void 0,this.target_Pos=void 0}show(t,i){this.origin_Pos=this.node.getPosition(),this.origin_Pos.x+=Tool.MathUtil.randomInRange(-40,40),this.target_Pos=new c(this.origin_Pos.x,this.origin_Pos.y,this.origin_Pos.z),this.target_Pos.x+=Tool.MathUtil.randomInRange(-20,20),this.target_Pos.y+=t?Tool.MathUtil.randomInRange(100,140):Tool.MathUtil.randomInRange(80,120),this.node.setPosition(this.origin_Pos),this.node.setScale(.6,.6,1),this.opacityCom.opacity=0,this.valueLabel.string=t?"暴击 "+i:i.toString(),this.valueLabel.color=t?this.colors[1]:this.colors[0],h(this.opacityCom).to(.3,{opacity:255}).start(),h(this.node).to(.3,{scale:c.ONE}).start(),h(this.node).to(.8,{position:this.target_Pos},{easing:u.quartOut}).call((()=>{this.hide()})).start()}hide(){My.Pool.putNode(this.node)}}).prototype,"opacityCom",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=i(f.prototype,"valueLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(f.prototype,"colors",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=f))||m));e._RF.pop()}}}));

System.register("chunks:///_virtual/DetailItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,s,a,n,l,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Label,a=t.UIOpacity,n=t._decorator,l=t.Component,c=t.tween}],execute:function(){var r,h,p,d,u,y,w;o._RF.push({},"6fbb6ZEeZdDM7wCSlAc9N7k","DetailItem",void 0);const{ccclass:b,property:m}=n;t("DetailItem",(r=b("DetailItem"),h=m({type:s,displayName:"详情内容"}),p=m({type:a,displayName:"透明度"}),r((y=e((u=class extends l{constructor(...t){super(...t),i(this,"descLabel",y,this),i(this,"opacityCom",w,this),this.tag=void 0,this.tweenShow=void 0,this.hideCall=void 0}init(t){this.hideCall=t,this.node.active=!1}show(t,e){this.tag=t,this.tweenShow&&this.tweenShow.stop(),this.node.setWorldPosition(e.x,e.y+50,e.z),this.node.setSiblingIndex(99),this.node.active=!0,this.descLabel.string=t.desc,this.opacityCom.opacity=255,this.tweenShow=c(this.opacityCom).delay(1).to(1,{opacity:0}).call((()=>{this.node.active=!1,this.tweenShow=null,this.hideCall()})).start()}}).prototype,"descLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(u.prototype,"opacityCom",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=u))||d));o._RF.pop()}}}));

System.register("chunks:///_virtual/DetectorItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,n,r,s,o,i,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){r=t.cclegacy,s=t.UITransform,o=t._decorator,i=t.Component,c=t.PhysicsSystem2D}],execute:function(){var a,l,u,p,h;r._RF.push({},"bddffHNz/ZO4bLVH3+k8emH","DetectorItem",void 0);const{ccclass:d,property:f}=o;t("DetectorItem",(a=d("DetectorItem"),l=f({type:s,displayName:"矩形"}),a((h=e((p=class extends i{constructor(...t){super(...t),n(this,"trans",h,this)}obstacle(t,e){this.node.setPosition(t),this.trans.setContentSize(e);const n=c.instance.testAABB(this.trans.getBoundingBoxToWorld());if(n.length>0){for(let t=0;t<n.length;t++)if(!n[t].sensor)return!0;return!1}return!1}check(t){this.node.setPosition(t),this.trans.setContentSize(180,180);return c.instance.testAABB(this.trans.getBoundingBoxToWorld()).length<=0}}).prototype,"trans",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=p))||u));r._RF.pop()}}}));

System.register("chunks:///_virtual/DialogPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PopupBase.ts"],(function(i){"use strict";var t,e,a,n,s,o,l,c,r,p,u;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){a=i.cclegacy,n=i.UIOpacity,s=i.Node,o=i.Label,l=i._decorator,c=i.tween,r=i.Vec3,p=i.easing},function(i){u=i.PopupBase}],execute:function(){var h,y,m,d,f,g,b,C,v,P,_;a._RF.push({},"41cd6wAIslOPr5XiuvG7Rx1","DialogPopup",void 0);const{ccclass:D,property:L}=l;i("DialogPopup",(h=D("DialogPopup"),y=L({type:n,displayName:"透明度组件"}),m=L({type:s,displayName:"内容"}),d=L({type:o,displayName:"描述"}),f=L({type:o,displayName:"确定文本"}),h((C=t((b=class extends u{constructor(...i){super(...i),e(this,"opacityCom",C,this),e(this,"content",v,this),e(this,"descLabel",P,this),e(this,"confirmLabel",_,this),this.using=!1,this.param=void 0}init(){this.opacityCom.opacity=0,this.node.active=!1,this.using=!1}show(i){this.using||(this.setData(i),this.content.setScale(.85,.85),this.opacityCom.opacity=0,this.node.active=!0,this.using=!0,c(this.opacityCom).to(.2,{opacity:255}).start(),c(this.content).to(.25,{scale:r.ONE},{easing:p.backOut}).call((()=>{this.using=!1})).start())}hide(){this.node.active=!1}onClick_Cancel(){var i;this.using||(My.Sound.playSfx(My.sounds.ui_click_common),null==(i=this.param)||null==i.cancelCall||i.cancelCall(),My.UI.Instance.hidePopup(this.type,!0))}onClick_Confirm(){var i;this.using||(My.Sound.playSfx(My.sounds.ui_click_common),null==(i=this.param)||null==i.confirmCall||i.confirmCall(),My.UI.Instance.hidePopup(this.type,!0))}setData(i){this.param=i,this.descLabel.string=this.param.desc||"",this.confirmLabel.string=this.param.confirm||"确定"}}).prototype,"opacityCom",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(b.prototype,"content",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(b.prototype,"descLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(b.prototype,"confirmLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=b))||g));a._RF.pop()}}}));

System.register("chunks:///_virtual/DiaoluoConfig.ts",["cc"],(function(o){"use strict";var i,v;return{setters:[function(o){i=o.cclegacy,v=o._decorator}],execute:function(){var s;o("DiaoluoType",void 0),i._RF.push({},"d328cvZvQNIG5xyrSvXw9p5","DiaoluoConfig",void 0);const{ccclass:t,property:d}=v;let c;o("DiaoluoConfig",t("DiaoluoConfig")(s=class{constructor(){this.id=void 0,this.box1_goods=void 0,this.box2_goods=void 0,this.box3_goods=void 0,this.box4_goods=void 0,this.box5_goods=void 0,this.box1_medic=void 0,this.box2_medic=void 0,this.box3_medic=void 0,this.box1_weapons=void 0,this.box2_weapons=void 0,this.box3_weapons=void 0,this.box4_weapons=void 0}})||s);o("DiaoluoData",class{constructor(){this.id=void 0,this.weight=void 0}}),function(o){o[o["保险箱"]=0]="保险箱",o[o["空投箱"]=1]="空投箱",o[o["物资箱Lv1"]=11]="物资箱Lv1",o[o["物资箱Lv2"]=12]="物资箱Lv2",o[o["物资箱Lv3"]=13]="物资箱Lv3",o[o["物资箱Lv4"]=14]="物资箱Lv4",o[o["武器箱Lv1"]=21]="武器箱Lv1",o[o["武器箱Lv2"]=22]="武器箱Lv2",o[o["武器箱Lv3"]=23]="武器箱Lv3",o[o["武器箱Lv4"]=24]="武器箱Lv4",o[o["医药箱Lv1"]=31]="医药箱Lv1",o[o["医药箱Lv2"]=32]="医药箱Lv2",o[o["医药箱Lv3"]=33]="医药箱Lv3"}(c||(c=o("DiaoluoType",{}))),i._RF.pop()}}}));

System.register("chunks:///_virtual/DiscardItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts","./GameDefine.ts","./DynamicRenderer.ts"],(function(t){"use strict";var e,i,n,o,a,r,s,l,c,u,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Sprite,a=t.Collider2D,r=t._decorator,s=t.Vec3,l=t.Contact2DType},function(t){c=t.PoolItem},function(t){u=t.GameTags},function(t){d=t.DynamicRenderer}],execute:function(){var h,y,m,p,f,g,I,C,b,D,N;n._RF.push({},"3ab3exjERBMgKrgNZw+AQ9U","DiscardItem",void 0);const{ccclass:_,property:P}=r;t("DiscardItem",(h=_("DiscardItem"),y=P({type:o,displayName:"图像"}),m=P({type:o,displayName:"品质"}),p=P({type:a,displayName:"碰撞体"}),f=P({type:d,displayName:"渲染器"}),h((C=e((I=class extends c{constructor(...t){super(...t),i(this,"image",C,this),i(this,"quality",b,this),i(this,"collider",D,this),i(this,"renderer",N,this),this.info=null}async init(t,e){this.info=Tool.CommonUtil.DiscardInfo(t.config,t.data,e),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.info.image),this.quality.color=await My.Item.Instance.getQualityColor(this.info.quality),this.contact_State(!0)}onLoad(){this.contact_State(!0),this.renderer.init((()=>{if(this.renderer.showed)this.image.node.active=!0,this.quality.node.active=!0;else{let t=s.distance(this.node.worldPosition,My.Player.worldPosition)<1e3;this.image.node.active=t,this.quality.node.active=t,this.collider.enabled=t}}))}recycle(){this.renderer.remove(),this.contact_State(!1),My.Pool.putNode(this.node)}contact_State(t){t?(this.collider.on(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(l.END_CONTACT,this.onEndContact,this)):(this.collider.off(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.off(l.END_CONTACT,this.onEndContact,this))}onBeginContact(t,e,i){e.tag==u.玩家&&My.Play.Instance.nearbyItem_Push(this)}onEndContact(t,e,i){e.tag==u.玩家&&My.Play.Instance.nearbyItem_Remove(this)}}).prototype,"image",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(I.prototype,"quality",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(I.prototype,"collider",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(I.prototype,"renderer",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=I))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/DiscardPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SliderEx.ts","./PopupBase.ts"],(function(t){"use strict";var e,i,n,s,o,a,u,r,c,l,h,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,o=t.Label,a=t._decorator,u=t.tween,r=t.Vec3,c=t.easing,l=t.math},function(t){h=t.SliderEx},function(t){p=t.PopupBase}],execute:function(){var d,y,m,f,_,b,C,v,x;n._RF.push({},"47d55lAkHdIw606sn4kZOo/","DiscardPopup",void 0);const{ccclass:g,property:P}=a;t("DiscardPopup",(d=g("DiscardPopup"),y=P({type:s,displayName:"内容"}),m=P({type:h,displayName:"滑动条"}),f=P({type:o,displayName:"数值"}),d((C=e((b=class extends p{constructor(...t){super(...t),i(this,"content",C,this),i(this,"slider",v,this),i(this,"valueLabel",x,this),this.info=null,this.count=0,this.minCount=1,this.maxCount=1}init(){this.node.active=!1,My.Event.on(My.events.pop_hide_all,this.hide,this)}show(t){this.info=t,this.reset_State(),this.content.setScale(.9,.9),this.node.active=!0,u(this.content).to(.2,{scale:r.ONE},{easing:c.backOut}).start()}hide(){this.node.active=!1}reset_State(){this.count=1,this.minCount=1,this.maxCount=this.info.count,this.slider.progress=this.count/this.maxCount,this.update_Counter()}update_Progress(t){this.count=l.clamp(Math.round(this.maxCount*t),this.minCount,this.maxCount),this.update_Counter()}update_Counter(){this.valueLabel.string=this.count+"/"+this.maxCount}onClick_Cancel(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}onClick_Discard(){My.Sound.playSfx(My.sounds.ui_other_stored),My.Pack.Instance.discardItem(this.info,this.count),this.hide()}}).prototype,"content",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(b.prototype,"slider",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(b.prototype,"valueLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=b))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/DotItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts"],(function(t){"use strict";var e,i,n,s,o,a,r,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Enum,o=t.Node,a=t._decorator,r=t.Component},function(t){c=t.DotType}],execute:function(){var p,u,d,y,h,l,_;n._RF.push({},"8f8cdH8ivJBjofch7irPWnt","DotItem",void 0);const{ccclass:v,property:f}=a;t("DotItem",(p=v("DotItem"),u=f({type:s(c),displayName:"类型"}),d=f({type:o,displayName:"角标"}),p((l=e((h=class extends r{constructor(...t){super(...t),i(this,"type",l,this),i(this,"dot",_,this)}init(){switch(this.type){case c.在线奖励:My.Event.on(My.events.dot_daily,this.update_State,this);break;case c.商城新品:My.Event.on(My.events.dot_draw,this.update_State,this);break;case c.个性装扮:My.Event.on(My.events.dot_skin,this.update_State,this);break;case c.枪械角标:My.Event.on(My.events.dot_skin_t1,this.update_State,this);break;case c.近战角标:My.Event.on(My.events.dot_skin_t2,this.update_State,this);break;case c.装扮角标:My.Event.on(My.events.dot_skin_t3,this.update_State,this)}}update_State(t){this.dot?this.dot.active=t:this.node.active=t}}).prototype,"type",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return c.在线奖励}}),_=e(h.prototype,"dot",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=h))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/DrawItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,n,o,a,s,r,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Sprite,a=t.Label,s=t.Node,r=t._decorator,l=t.Component}],execute:function(){var c,u,h,y,p,g,m,d,b,f,v;n._RF.push({},"f07b42qEulPtqZTy4EZWjhO","DrawItem",void 0);const{ccclass:I,property:M}=r;t("DrawItem",(c=I("DrawItem"),u=M({type:o,displayName:"品质"}),h=M({type:o,displayName:"图像"}),y=M({type:a,displayName:"数量"}),p=M({type:s,displayName:"高亮"}),c((d=e((m=class extends l{constructor(...t){super(...t),i(this,"quality",d,this),i(this,"image",b,this),i(this,"countLabel",f,this),i(this,"highlight",v,this),this.goods=void 0,this.data=void 0,this.count=void 0}async init(t){let e=Tool.StringUtil.stringToArrayNumber(t,",");if(e.length>1){this.goods=My.Store.get_GoodsConfig(e[0]);let t=Tool.StringUtil.stringToArrayNumber(this.goods.content,",");t[0]>100?this.data=My.Skin.getSkinConfig(t[0]):this.data=My.Item.Instance.getItemConfig(t[0]),this.count=t[1],this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.data.quality,1),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.data.image),this.countLabel.string=this.count>1?this.count.toString():"",this.highlight.active=!1,My.Event.on(My.events.elect_draw_type,this.compareType,this),My.Event.on(My.events.elect_draw_item,this.compareItem,this)}else this.node.active=!1}compareType(t){null!=this.goods&&(this.node.active=this.goods.shop==t.id)}compareItem(t){null!=this.goods&&(this.highlight.active=t==this)}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_draw_item,this)}}).prototype,"quality",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(m.prototype,"image",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(m.prototype,"countLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(m.prototype,"highlight",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=m))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/DrawMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,o,n,r,c,l,s,a,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,n=e.CCInteger,r=e.Sprite,c=e.Label,l=e.Node,s=e._decorator,a=e.Component,u=e.Color}],execute:function(){var h,p,y,f,d,m,b,_,S,M,g;o._RF.push({},"c133ecNDFlJBJkhWijgJL8i","DrawMenu",void 0);const{ccclass:w,property:D}=s;e("DrawMenu",(h=w("DrawMenu"),p=D({type:n,displayName:"ID"}),y=D({type:r,displayName:"图标"}),f=D({type:c,displayName:"名称"}),d=D({type:l,displayName:"容器"}),h((_=t((b=class extends a{constructor(...e){super(...e),i(this,"id",_,this),i(this,"icon",S,this),i(this,"nameLabel",M,this),i(this,"content",g,this),this.info=void 0,this.color_off=new u(127,127,127,255)}init(e){this.info=e,this.id=this.info.id,this.nameLabel.string=this.info.name,this.node.on("click",this.onClick_Selected,this),My.Event.on(My.events.elect_draw_type,this.compareType,this)}isChecked(){My.Store.set_StoreSelect(this)}compareType(e){e==this?(this.content.setScale(1.25,1.25),this.icon.color=this.info.color,this.nameLabel.color=this.info.color):(this.content.setScale(1,1),this.icon.color=this.color_off,this.nameLabel.color=this.color_off)}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Store.set_StoreSelect(this)}}).prototype,"id",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),S=t(b.prototype,"icon",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(b.prototype,"nameLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(b.prototype,"content",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b))||m));o._RF.pop()}}}));

System.register("chunks:///_virtual/DrawPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PopupBase.ts"],(function(t){"use strict";var e,o,i,n,c,a,s,r,p,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.UIOpacity,c=t.Node,a=t._decorator,s=t.tween,r=t.Vec3,p=t.easing},function(t){u=t.PopupBase}],execute:function(){var l,y,h,d,f,m,b;i._RF.push({},"01fc22nyuFG5YouoE7prHIC","DrawPopup",void 0);const{ccclass:w,property:P}=a;t("DrawPopup",(l=w("DrawPopup"),y=P({type:n,displayName:"透明度"}),h=P({type:c,displayName:"窗口"}),l((m=e((f=class extends u{constructor(...t){super(...t),o(this,"opacityCom",m,this),o(this,"content",b,this)}show(t){this.node.active||(this.opacityCom.opacity=0,this.content.setScale(.8,.8,.8),this.node.active=!0,s(this.opacityCom).to(.2,{opacity:100}).start(),s(this.content).to(.25,{scale:r.ONE},{easing:p.backOut}).start())}hide(){this.node.active=!1}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}}).prototype,"opacityCom",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(f.prototype,"content",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f))||d));i._RF.pop()}}}));

System.register("chunks:///_virtual/DrawShow.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(e){"use strict";var t,i,a,n,r,s,o,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Label,r=e.Sprite,s=e._decorator,o=e.Component},function(e){l=e.GoodsType}],execute:function(){var c,p,u,h,m,y,d,g,b,w,f,I,k,v,D;a._RF.push({},"56fe2+wM9xADrY4msOpaDmp","DrawShow",void 0);const{ccclass:S,property:L}=s;e("DrawShow",(c=S("DrawShow"),p=L({type:n,displayName:"名称"}),u=L({type:r,displayName:"货币"}),h=L({type:n,displayName:"价格"}),m=L({type:r,displayName:"角色皮肤"}),y=L({type:r,displayName:"武器皮肤"}),d=L({type:r,displayName:"特殊道具"}),c((w=t((b=class extends o{constructor(...e){super(...e),i(this,"nameLabel",w,this),i(this,"priceIcon",f,this),i(this,"priceLabel",I,this),i(this,"skinPlayer",k,this),i(this,"skinWeapon",v,this),i(this,"skinOther",D,this),this.lastDraw=void 0}init(){this.node.active=!1,My.Event.on(My.events.elect_draw_item,this.drawSelect,this)}async drawSelect(e){if(null!=e){if(e==this.lastDraw)return void(this.node.active=!0);this.lastDraw=e;let t=[];switch(e.goods.type){case l.装扮皮肤:this.skinPlayer.spriteFrame=await My.Item.Instance.getItemSkin(e.data.image),t=Tool.StringUtil.stringToArrayNumber(e.goods.price,",");break;case l.武器皮肤:this.skinWeapon.spriteFrame=await My.Item.Instance.getItemSkin(e.data.image),t=Tool.StringUtil.stringToArrayNumber(e.goods.price,",");break;case l.特殊道具:this.skinOther.spriteFrame=await My.Item.Instance.getItemIcon(e.data.image)}if(t.length>1){this.priceLabel.string=t[1]+"碎片兑换";let e=My.Item.Instance.getItemConfig(t[0]);this.priceIcon.spriteFrame=await My.Item.Instance.getItemIcon(e.image)}else this.priceIcon.spriteFrame=null,this.priceLabel.string="";this.nameLabel.string=e.data.name,this.skinPlayer.node.parent.active=e.goods.type==l.装扮皮肤,this.skinWeapon.node.active=e.goods.type==l.武器皮肤,this.skinOther.node.active=e.goods.type==l.特殊道具,this.node.active=!0}else this.node.active=!1}}).prototype,"nameLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(b.prototype,"priceIcon",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(b.prototype,"priceLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(b.prototype,"skinPlayer",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(b.prototype,"skinWeapon",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(b.prototype,"skinOther",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=b))||g));a._RF.pop()}}}));

System.register("chunks:///_virtual/DrawView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./DrawMenu.ts","./ViewBase.ts","./DrawItem.ts","./DrawShow.ts","./RedeemItem.ts","./UIDefine.ts","./PopupBase.ts","./AnchorItem.ts"],(function(e){"use strict";var t,n,i,r,o,a,s,l,u,c,p,m,y,h,d,w,f,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,r=e.Sprite,o=e.Prefab,a=e.Node,s=e.ScrollView,l=e._decorator,u=e.instantiate},function(e){c=e.DrawMenu},function(e){p=e.ViewBase,m=e.ViewType},function(e){y=e.DrawItem},function(e){h=e.DrawShow},function(e){d=e.RedeemItem},function(e){w=e.PopupType},function(e){f=e.PopupBase},function(e){b=e.AnchorItem}],execute:function(){var M,g,S,_,I,P,D,C,k,v,N,z,V,E,x,R,B,T,G,U,F,L,A,j,H,J,Z;i._RF.push({},"427a4GPR65LZ6/oJLERMG00","DrawView",void 0);const{ccclass:q,property:K}=l;e("DrawView",(M=q("DrawView"),g=K({type:r,displayName:"主题背景"}),S=K({type:r,displayName:"碎片兑换"}),_=K({type:h,displayName:"商品展示"}),I=K({type:o,displayName:"菜单预制"}),P=K({type:a,displayName:"菜单位置"}),D=K({type:s,displayName:"奖池列表"}),C=K({type:o,displayName:"奖池预制"}),k=K({type:a,displayName:"奖池位置"}),v=K({type:o,displayName:"兑换预制"}),N=K({type:a,displayName:"兑换位置"}),z=K({type:f,displayName:"兑换弹窗"}),V=K({type:[b],displayName:"锚点动画"}),M((R=t((x=class extends p{constructor(...e){super(...e),n(this,"backImg",R,this),n(this,"redeemImg",B,this),n(this,"drawShow",T,this),n(this,"menuPrefab",G,this),n(this,"menuContent",U,this),n(this,"drawScroll",F,this),n(this,"drawPrefab",L,this),n(this,"drawContent",A,this),n(this,"redeemPrefab",j,this),n(this,"redeemContent",H,this),n(this,"redeemPop",J,this),n(this,"anchors",Z,this),this.menus=[],this.lastMenu=null}init(){this.drawShow.init(),this.node.active=!1,My.Event.on(My.events.game_load,this.loadData,this),My.Event.on(My.events.elect_draw_type,this.typeSelect,this)}show(e){this.resetState(),e&&e()}hide(e){this.node.active=!1,e&&e()}loadData(){My.Event.off(My.events.game_load,this.loadData,this);for(let e=1;e<My.Store.stores.length;e++){let t=My.Store.stores[e],n=u(this.menuPrefab);n.setParent(this.menuContent);let i=n.getComponent(c);this.menus.push(i),i.init(t),t.content.forEach((e=>{let t=My.Store.get_GoodsConfig(e),n=u(this.redeemPrefab);n.setParent(this.redeemContent),n.getComponent(d).init(t)})),t.pool.forEach((e=>{let t=u(this.drawPrefab);t.setParent(this.drawContent),t.getComponent(y).init(e)}))}}resetState(){this.redeemPop.hide(),this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.drawScroll.scrollToTop(.1),this.anchors.forEach((e=>{e.show()})),My.Event.emit(My.events.elect_draw_item,null),this.menus.length>0&&this.menus[0].isChecked()}async typeSelect(e){this.lastMenu!=e&&(this.lastMenu=e,this.drawScroll.scrollToTop(.1)),this.redeemImg.color=e.info.color,this.backImg.spriteFrame=await My.Store.Instance.getImage(e.info.bg_img)}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(m.主页视图),My.UI.Instance.hideView(m.抽奖视图)}onClick_Redeem(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.update_skin_redeem),this.redeemPop.show()}onClick_Prob(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showPopup(w.公示弹窗)}onClick_MoneyDraw(){My.Sound.playSfx(My.sounds.ui_click_common),My.Game.Instance.gameBought(2e6)?My.Store.Instance.store_Draw(!1):My.Msg.showMessage(My.Item.Instance.getCurrencyName(1)+My.msgcode.货币不足)}onClick_VideoDraw(){My.Sound.playSfx(My.sounds.ui_click_common),window.sdk?window.sdk.openVideo((function(e){"success"==e&&My.Store.Instance.store_Draw(!0)})):My.Store.Instance.store_Draw(!0)}}).prototype,"backImg",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(x.prototype,"redeemImg",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(x.prototype,"drawShow",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(x.prototype,"menuPrefab",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(x.prototype,"menuContent",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(x.prototype,"drawScroll",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(x.prototype,"drawPrefab",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(x.prototype,"drawContent",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(x.prototype,"redeemPrefab",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(x.prototype,"redeemContent",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=t(x.prototype,"redeemPop",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=t(x.prototype,"anchors",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),E=x))||E));i._RF.pop()}}}));

System.register("chunks:///_virtual/DynamicRenderer.ts",["cc","./GameCamera.ts"],(function(e){"use strict";var t,r,n,s;return{setters:[function(e){t=e.cclegacy,r=e.Component,n=e._decorator},function(e){s=e.CameraState}],execute:function(){var a;t._RF.push({},"243763VS2pPYa9h1fyj4DDm","DynamicRenderer",void 0);const{ccclass:i,property:d}=n;e("DynamicRenderer",i("DynamicRenderer")(a=class extends r{constructor(...e){super(...e),this.showed=!1,this.renderEvent=null}init(e){this.showed=!1,this.renderEvent=e,My.Event.on(My.events.game_renderer,this.renderer,this),My.Event.on(My.events.update_camera_state,this.updateRenderer,this)}remove(){this.renderEvent=null,My.Event.off(My.events.game_renderer,this.renderer,this),My.Event.off(My.events.update_camera_state,this.updateRenderer,this)}renderer(){var e;null==(e=this.renderEvent)||e.call(this)}updateRenderer(e){this.showed=e==s.全景视野,this.renderer()}})||a);t._RF.pop()}}}));

System.register("chunks:///_virtual/EnemyConfig.ts",["cc"],(function(i){"use strict";var t,o;return{setters:[function(i){t=i.cclegacy,o=i._decorator}],execute:function(){var s,e,n;t._RF.push({},"0872buBNNtOOr23OkSoiWVD","EnemyConfig",void 0);const{ccclass:r,property:a}=o;i("GuideNpcConfig",r("GuideNpcConfig")(s=class{constructor(){this.id=void 0,this.weapon=void 0,this.armor=void 0,this.helmet=void 0,this.pack=void 0,this.ammo=void 0,this.atk=void 0,this.area=void 0,this.interval=void 0,this.distance=void 0,this.rg_warn=void 0,this.rg_attack=void 0,this.rg_out=void 0,this.gap=void 0,this.moa=void 0}})||s),i("NpcConfig",r("NpcConfig")(e=class{constructor(){this.id=void 0,this.npc_level=void 0,this.view_range=void 0,this.cruise_range=void 0,this.cruise_speed=void 0,this.cruise_cd=void 0,this.pursuit_check=void 0,this.keep_range=void 0,this.attack_time=void 0,this.attack_cd=void 0,this.moa=void 0}})||e);i("NpcData",class{constructor(){this.config=void 0,this.skin=void 0,this.guide=void 0,this.equips=[null,null,null,null,null]}});i("BossConfig",r("BossConfig")(n=class{constructor(){this.id=void 0,this.name=void 0,this.image=void 0,this.map=void 0,this.spawn=void 0,this.damage=void 0,this.hp=void 0,this.range=void 0,this.moa=void 0,this.rate=void 0,this.bullet_speed=void 0,this.weapon=void 0,this.rg_warn=void 0,this.rg_attack=void 0,this.chase_time=void 0,this.chase_cd=void 0,this.move_dis=void 0,this.move_cd=void 0,this.drop_main=void 0,this.drop_toukui=void 0,this.drop_hujia=void 0,this.drop_beibao=void 0,this.drop_zawu=void 0}})||n);i("BossData",class{constructor(){this.info=void 0,this.skin=void 0,this.weapon=void 0}get drop_main(){let i=Tool.StringUtil.stringToArrayNumber(this.info.drop_main,",");if(Tool.MathUtil.probability(i[2])){let t=My.Item.Instance.getItemConfig(i[0]);return Tool.CommonUtil.WuziItemInfo(t,i[1])}return null}get drop_toukui(){let i=Tool.CommonUtil.ParseWuziParam(this.info.drop_toukui);if(i.length>0){let t=[];i.forEach((i=>{t.push(i.weight)}));let o=Tool.MathUtil.randomByWeight(t),s=My.Item.Instance.getItemConfig(i[o].id);return Tool.CommonUtil.WuziItemInfo(s,i[o].count)}return null}get drop_hujia(){let i=Tool.CommonUtil.ParseWuziParam(this.info.drop_hujia);if(i.length>0){let t=[];i.forEach((i=>{t.push(i.weight)}));let o=Tool.MathUtil.randomByWeight(t),s=My.Item.Instance.getItemConfig(i[o].id);return Tool.CommonUtil.WuziItemInfo(s,i[o].count)}return null}get drop_beibao(){let i=Tool.CommonUtil.ParseWuziParam(this.info.drop_beibao);if(i.length>0){let t=[];i.forEach((i=>{t.push(i.weight)}));let o=Tool.MathUtil.randomByWeight(t),s=My.Item.Instance.getItemConfig(i[o].id);return Tool.CommonUtil.WuziItemInfo(s,i[o].count)}return null}get drop_zawu(){return My.Item.getRandomZawuData(this.info.drop_zawu)}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/EnemyMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnemyConfig.ts","./ItemDefine.ts"],(function(e){"use strict";var n,t,a,i,s,l,o,p,r,u,m,c;return{setters:[function(e){n=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){a=e.cclegacy,i=e.JsonAsset,s=e.SpriteFrame,l=e._decorator,o=e.Component,p=e.Color},function(e){r=e.NpcData,u=e.BossData},function(e){m=e.ItemType,c=e.FangjuType}],execute:function(){var g,f,M,y,h,d,I,E,b,C,w,R;a._RF.push({},"8243cv7NzhCZrTZCKC65ve0","EnemyMgr",void 0);const{ccclass:_,property:N}=l;e("EnemyMgr",(g=_("EnemyMgr"),f=N({type:i,displayName:"引导NPC配置文件"}),M=N({type:i,displayName:"NPC配置文件"}),y=N({type:[s],displayName:"NPC皮肤"}),h=N({type:i,displayName:"BOSS配置文件"}),g(((R=class e extends o{constructor(...e){super(...e),t(this,"guideJson",E,this),t(this,"npcJson",b,this),t(this,"npcSkins",C,this),t(this,"bossJson",w,this),this.guideMap=new Map,this.npcMap=new Map,this.bossMap=new Map,this.imageMap=new Map,this.levelColors=[(new p).fromHEX("#ffffff"),(new p).fromHEX("#ffffff"),(new p).fromHEX("#f6ff00"),(new p).fromHEX("#fa6f00"),(new p).fromHEX("#ff3232")]}onLoad(){e.Instance=this,this.load_GuideConfig(),this.load_NpcConfig(),this.load_BossConfig()}load_GuideConfig(){let e=this.guideJson.json.config;this.guideMap.clear(),e.forEach((e=>{this.guideMap.set(e.id,e)}))}load_NpcConfig(){this.npcJson.json.config.forEach((e=>{if(this.npcMap.has(e.npc_level)){this.npcMap.get(e.npc_level).push(e)}else{let n=[];n.push(e),this.npcMap.set(e.npc_level,n)}})),console.log("NPC配置",this.npcMap)}load_BossConfig(){this.bossJson.json.config.forEach((async e=>{if(this.bossMap.has(e.map)){this.bossMap.get(e.map).push(e)}else{let n=[];n.push(e),this.bossMap.set(e.map,n)}if(!this.imageMap.has(e.image)){let n=e.image+"/spriteFrame";this.imageMap.set(e.image,await My.Res.loadBundleRes("enemy",n,s))}}))}get_LevelColor(e){return this.levelColors[e]||this.levelColors[0]}get_NpcData(e){let n=this.npcMap.get(e);if(n){let t=new r;return t.config=Tool.ArrayUtil.RandomValueInArray(n),t.skin=Tool.ArrayUtil.RandomValueInArray(this.npcSkins),t.equips=this.get_RandomEquip(e),t}return My.Game.gameErr("难度等级"+e+"的NPC数据为null"),null}get_RandomEquip(e){let n=.5*My.Map.mapValue,t=.7*My.Map.mapValue;switch(e){case 2:n=.7*My.Map.mapValue,t=1*My.Map.mapValue;break;case 3:n=1*My.Map.mapValue,t=1.2*My.Map.mapValue;break;case 4:n=1.2*My.Map.mapValue,t=1.5*My.Map.mapValue}let a=[null,null,null,null,null],i=0,s=My.Item.getRandomEquip(m.武器);for(;s.sell+My.Item.armorPool_Min>t;)s=My.Item.getRandomEquip(m.武器);for(i+=s.sell,a[0]=s,s=My.Item.getRandomEquip(m.防具,c.护具);i+s.sell>t;)s=My.Item.getRandomEquip(m.防具,c.护具);if(i+=s.sell,a[2]=s,i+My.Item.helmetPool_Min<=t){for(s=My.Item.getRandomEquip(m.防具,c.头盔);i+s.sell>t;)s=My.Item.getRandomEquip(m.防具,c.头盔);i+=s.sell,a[1]=s}if(i+My.Item.bagPool_Min<=t){for(s=My.Item.getRandomEquip(m.防具,c.背包);i+s.sell>t;)s=My.Item.getRandomEquip(m.防具,c.背包);i+=s.sell,a[3]=s}return a[4]=My.Item.getRandomAmmo(e,a[0].ammo),My.Game.gameLog("战备范围["+n+","+t+"] 当前："+i),a}randomNpc(){let e=this.npcMap.get(My.Map.mapIndex);if(null!=e){let n=new r;return n.config=Tool.ArrayUtil.RandomValueInArray(e),n.skin=Tool.ArrayUtil.RandomValueInArray(this.npcSkins),n.equips=My.Item.getRandomNpcEquip(n.config),n}return My.Game.gameErr("该地图NPC数据为null"),null}static mapBoss(){let e=this.Instance.bossMap.get(My.Map.mapIndex);if(null!=e){let n=[];return e.forEach((e=>{let t=new u;t.info=e,t.skin=this.Instance.imageMap.get(e.image),t.weapon=My.Item.Instance.getItemConfig(e.weapon),n.push(t)})),n}return null}static guideNpc(e,n=!1){if(this.Instance.guideMap.has(e)){let t=new r;return t.config=null,t.skin=Tool.ArrayUtil.RandomValueInArray(this.Instance.npcSkins),t.guide=this.Instance.guideMap.get(e),t.equips=My.Item.getGuideNpcEquip(t.guide),n&&(t.guide.area=0),t}return null}}).Instance=null,E=n((I=R).prototype,"guideJson",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=n(I.prototype,"npcJson",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=n(I.prototype,"npcSkins",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=n(I.prototype,"bossJson",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=I))||d));a._RF.pop()}}}));

System.register("chunks:///_virtual/EquipItem.ts",["cc","./GameDefine.ts","./ItemDefine.ts"],(function(t){"use strict";var i,e,a,s,o,n;return{setters:[function(t){i=t.cclegacy,e=t.Component,a=t._decorator},function(t){s=t.PlayerAction},function(t){o=t.ItemType,n=t.WuqiType}],execute:function(){var h;i._RF.push({},"ae6f9asGyRJhoxrDj8cUGZe","EquipItem",void 0);const{ccclass:r,property:d}=a;t("EquipItem",r("EquipItem")(h=class extends e{constructor(...t){super(...t),this.data=null,this.ammo=null,this.interval=0,this.magazine=0,this.ergonomic=0,this.infinite=!1,this.shooting=!1,this.reloadTime=0,this.reloading=!1,this.shootSoundStr=void 0}get type(){return this.data.kind}get moa(){this.ergonomic=this.data.ergonomic;let t=this.data.moa;return this.data.accData.forEach((i=>{if(i>0){let e=My.Item.Instance.getItemConfig(i);this.ergonomic+=0|e.ergonomic,t+=0|e.moa}})),t}get ammoCount(){return null==this.ammo?0:this.ammo.count}get rdsStr(){return null==this.data?"":this.magazine+"/"+this.data.rds}get canShoot(){return this.infinite?!this.shooting:this.magazine>0&&(!this.reloading&&!this.shooting)}get canAttack(){return!this.shooting}get canReload(){return!this.reloading&&(!!My.Game.cheat.cheat_ammo||this.ammo.count>0&&this.magazine<this.data.rds)}get shootSound(){return this.shootSoundStr}init(t){this.data=t,t.type==o.武器&&(this.magazine=0,this.reloading=!1,this.interval=this.data.rate,this.reloadTime=this.data.reload,this.infinite=null==this.data.reload,this.ammo=null,this.setAcc())}setAcc(){this.shootSoundStr=My.sounds.weapon_shoot+this.data.kind,31012!=this.data.accData[0]&&31022!=this.data.accData[0]&&31032!=this.data.accData[0]||(this.shootSoundStr+="_muffle")}setAmmo(t){this.ammo!=t&&(this.ammo=t,this.reload(!1))}shoot(){this.shooting||this.reloading||(this.shooting=!0,this.infinite||My.Play.data.rewardedAmmo?this.scheduleOnce((()=>{this.reloading||(this.shooting=!1)}),this.interval):(this.data.lessEnd(1),My.Game.cheat.cheat_ammo||(this.magazine-=1),My.Event.emit(My.events.update_hud_ammo,this.data),My.Event.emit(My.events.update_equipment_end,this.data),this.magazine>0?this.scheduleOnce((()=>{this.reloading||(this.shooting=!1)}),this.interval):this.ammo.count>0?this.scheduleOnce(this.reload,.1):My.Pack.Instance.packItem_Out(this.ammo)))}attack(){this.shooting||(this.shooting=!0,this.scheduleOnce((()=>{this.shooting=!1}),this.interval))}reload(t=!0){if(null==this.data||null==this.ammo)return void My.Game.gameErr("装备>装弹>信息为null");if(this.data.type!=o.武器)return void My.Game.gameErr("装备>装弹>装备类型错误");if(this.data.kind==n.近战)return;if(this.reloading)return;if(!My.Player.action_Push(s.装弹操作))return;this.reloading=!0;let i=this.data.rds-this.magazine;this.ammo.count<i&&(i=this.ammo.count),this.magazine+=i,this.ammo.lessCount(i),t?(My.Sound.playSfx(My.sounds.weapon_reload),My.Event.emit(My.events.player_reload,this.reloadTime),this.scheduleOnce(this.reloaded,this.reloadTime)):(My.Sound.playSfx(My.sounds.player_spawn),this.reloaded())}reloaded(){this.shooting=!1,this.reloading=!1,My.Player.action_Remove(s.装弹操作),My.Event.emit(My.events.update_hud_ammo,this.data)}})||h);i._RF.pop()}}}));

System.register("chunks:///_virtual/EquipmentItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./UIDefine.ts","./GameDefine.ts"],(function(e){"use strict";var t,i,n,a,s,l,r,u,o,c,m,p,y,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Enum,s=e.Sprite,l=e.Label,r=e.SpriteFrame,u=e._decorator,o=e.Component},function(e){c=e.ItemQuality},function(e){m=e.EquipmentType,p=e.QuickMenuType,y=e.QuickType},function(e){h=e.GameScene}],execute:function(){var b,f,d,g,v,I,M,_,q,L,k,E,S,w,z,F,N;n._RF.push({},"c767a2exKpCEZBztOXJeaHF","EquipmentItem",void 0);const{ccclass:D,property:C}=u;e("EquipmentItem",(b=D("EquipmentItem"),f=C({type:a(m),displayName:"类型"}),d=C({type:s,displayName:"图像"}),g=C({type:l,displayName:"品质"}),v=C({type:l,displayName:"名称"}),I=C({type:l,displayName:"数值"}),M=C({type:l,displayName:"耐久"}),_=C({type:r,displayName:"默认图像"}),b((k=t((L=class extends o{constructor(...e){super(...e),i(this,"type",k,this),i(this,"image",E,this),i(this,"quality",S,this),i(this,"nameLabel",w,this),i(this,"valueLabel",z,this),i(this,"endLabel",F,this),i(this,"defaultImg",N,this),this.info=null}init(){this.nameLabel.string=Tool.StringUtil.stringRemoveNumber(m[this.type]),My.Event.on(My.events.update_equipment,this.update_Data,this),My.Event.on(My.events.update_equipment_end,this.update_End,this),this.node.on("click",this.onClick_Selected,this)}async update_Data(){if(this.info=My.Pack.Instance.equipItems[this.type],null!=this.info)switch(this.nameLabel.string=this.info.name,this.quality&&(this.quality.color=My.Item.Instance.getQualityColor(this.info.quality),this.quality.string=c[this.info.quality]),this.type){case m.主武器1:case m.主武器2:this.image.spriteFrame=await My.Item.Instance.getItemSlot(this.info.image),this.valueLabel.string=Tool.CommonUtil.ParseAmmo(this.info.ammo),this.valueLabel.node.active=!0;break;case m.副武器:case m.近战武器:this.image.spriteFrame=await My.Item.Instance.getItemSlot(this.info.image);break;case m.头盔:case m.防弹衣:this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.info.image),this.valueLabel.string="防护级别："+(this.info.quality+1),this.valueLabel.node.active=!0;break;case m.背包:this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.info.image)}else this.nameLabel.string=Tool.StringUtil.stringRemoveNumber(m[this.type]),this.valueLabel&&(this.valueLabel.node.active=!1),this.quality&&(this.quality.string=""),this.image.spriteFrame=this.defaultImg;this.update_End()}update_End(){null!=this.endLabel&&(this.info?(this.endLabel.string=this.info.endStr,this.endLabel.node.active=!0):this.endLabel.node.active=!1)}onClick_Selected(){if(My.Sound.playSfx(My.sounds.ui_click_common),this.info)My.Pack.WuqiSelect(this.type),My.Event.emit(My.events.pop_item,this.info);else if(My.Game.compareScene(h.主页)){switch(this.type){case m.主武器1:case m.主武器2:case m.副武器:case m.近战武器:My.Event.emit(My.events.elect_quick_menu,p.武器);break;case m.头盔:My.Event.emit(My.events.elect_quick_menu,p.头盔);break;case m.防弹衣:My.Event.emit(My.events.elect_quick_menu,p.护甲);break;case m.背包:My.Event.emit(My.events.elect_quick_menu,p.背包)}My.Event.emit(My.events.elect_quick_type,y.快速装备)}}}).prototype,"type",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.主武器1}}),E=t(L.prototype,"image",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(L.prototype,"quality",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(L.prototype,"nameLabel",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(L.prototype,"valueLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(L.prototype,"endLabel",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(L.prototype,"defaultImg",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=L))||q));n._RF.pop()}}}));

System.register("chunks:///_virtual/Events.ts",["cc"],(function(e){"use strict";var _,t;return{setters:[function(e){_=e.cclegacy,t=e._decorator}],execute:function(){var a,p;_._RF.push({},"5b5d8C/etBDebyNthd7NQh+","Events",void 0);const{ccclass:d,property:u}=t;e("Events",d("Events")(((p=class{}).game_cheat="game_cheat",p.game_load="game_load",p.game_loaded="game_loaded",p.game_got="game_got",p.game_paused="game_paused",p.game_renderer="game_renderer",p.update_loading="update_loading",p.update_progress="update_progress",p.update_money="update_money",p.update_badge="update_badge",p.update_gen="update_gen",p.update_battery="update_battery",p.update_frags="update_frags",p.update_kills="update_kills",p.update_property="update_property",p.update_buff_state="update_buff_state",p.update_equip_show="update_equip_show",p.update_daily_state="update_daily_state",p.update_camera_state="update_camera_state",p.update_charge_state="update_charge_state",p.update_player_weights="update_player_weights",p.update_lv="update_lv",p.update_unlock_new="update_unlock_new",p.update_item_info="update_item_info",p.update_play_value="update_play_value",p.update_whs="update_whs",p.update_whs_value="update_whs_value",p.update_whs_checkbox="update_whs_checkbox",p.update_pack="update_pack",p.update_pack_weight="update_pack_weight",p.update_pack_total="update_packtotal",p.update_pack_used="update_packused",p.update_lock="update_lock",p.update_lock_used="update_lockused",p.upadte_lock_value="upadte_lock_value",p.update_quick_cost="update_quick_cost",p.update_quick_list="update_quick_list",p.update_skin_player="update_skin_player",p.update_skin_weapon="update_skin_weapon",p.update_skin_show="update_skin_show",p.update_skin_redeem="update_skin_redeem",p.update_skin_store="update_skin_store",p.update_follow="update_follow",p.update_sorting="update_sorting",p.update_ressorting="update_ressorting",p.update_nearby="update_nearby",p.update_boxes="update_boxes",p.update_ammo_all="update_ammo_all",p.update_ammo_elect="update_ammo_elect",p.update_medical_all="update_medical_all",p.update_thrown_all="update_thrown_all",p.update_thrown_elect="update_thrown_elect",p.update_equip="update_equip",p.update_equipment="update_equipment",p.update_equipment_end="update_equipment_end",p.update_equip_elect="update_equip_elect",p.update_equip_value="update_equip_value",p.update_hud_hp="update_hud_hp",p.update_hud_equip="update_hud_equip",p.update_hud_ammo="update_hud_ammo",p.pop_buy="pop_buy",p.pop_item="pop_item",p.pop_search="pop_search",p.pop_quick_list="pop_quick_list",p.pop_hide_all="pop_hide_all",p.elect_market_menu="elect_market_menu",p.elect_whs_menu="elect_whs_menu",p.elect_whs_item="elect_whs_item",p.elect_whs_checkbox="elect_whs_checkbox",p.elect_pack_item="elect_pack_item",p.elect_pack_menu="elect_pack_menu",p.elect_quick_menu="elect_quick_menu",p.elect_level_item="elect_level_item",p.elect_skin_type="elect_skin_type",p.elect_skin_item="elect_skin_item",p.elect_skin_filter="elect_skin_filter",p.elect_goods_type="elect_goods_type",p.elect_draw_type="elect_draw_type",p.elect_draw_item="elect_draw_item",p.elect_quick_type="elect_quick_type",p.play_init="play_init",p.play_start="play_start",p.play_ended="play_ended",p.play_unload="play_unload",p.play_movejoy="play_movejoy",p.play_shootjoy="play_shootjoy",p.play_throwjoy="play_throwjoy",p.play_skilljoy="play_skilljoy",p.play_aimjoy="play_aimjoy",p.play_plane="play_plane",p.play_exitpoint="play_exitpoint",p.play_exittimer="play_exittimer",p.play_keydoor="play_keydoor",p.play_items="play_items",p.play_box="play_boxopen",p.play_rewarded_ammo="play_rewarded_ammo",p.nav_state="nav_state",p.nav_sign_push="nav_sign_push",p.nav_sign_elect="nav_sign_elect",p.nav_sign_clear="nav_sign_clear",p.player_show_pos="player_show_pos",p.player_reload="player_reload",p.player_flash="player_flash",p.player_used="player_used",p.guide_arrow="guide_arrow",p.dot_daily="dot_daily",p.dot_draw="dot_draw",p.dot_skin="dot_skin",p.dot_skin_t1="dot_skin_t1",p.dot_skin_t2="dot_skin_t2",p.dot_skin_t3="dot_skin_t3",a=p))||a);_._RF.pop()}}}));

System.register("chunks:///_virtual/ExitPoint.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./PoolItem.ts"],(function(t){"use strict";var e,i,n,o,a,l,s,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Collider2D,a=t._decorator,l=t.Contact2DType},function(t){s=t.GameTags},function(t){c=t.PoolItem}],execute:function(){var r,p,y,u,d;n._RF.push({},"0199aeoloxJaLv1xt+aA+1C","ExitPoint",void 0);const{ccclass:C,property:h}=a;t("ExitPoint",(r=C("ExitPoint"),p=h({type:o,displayName:"碰撞体"}),r((d=e((u=class extends c{constructor(...t){super(...t),i(this,"collider",d,this)}onEnable(){this.collider.on(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(l.END_CONTACT,this.onEndContact,this)}onDisable(){this.collider.off(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.off(l.END_CONTACT,this.onEndContact,this)}onBeginContact(t,e,i){e.tag==s.玩家&&(My.Play.data.exited?My.Event.emit(My.events.play_exitpoint,!0):My.Event.emit(My.events.play_exittimer))}onEndContact(t,e,i){e.tag==s.玩家&&My.Play.data.exited&&My.Event.emit(My.events.play_exitpoint,!1)}}).prototype,"collider",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=u))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/FadeView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts"],(function(t){"use strict";var i,e,o,a,c,s,n,p;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,a=t.UIOpacity,c=t._decorator,s=t.tween,n=t.easing},function(t){p=t.ViewBase}],execute:function(){var r,l,y,u,d;o._RF.push({},"910cezxvfVIKq6o9ySSBKRu","FadeView",void 0);const{ccclass:h,property:m}=c;t("FadeView",(r=h("FadeView"),l=m({type:a,displayName:"透明度组件"}),r((d=i((u=class extends p{constructor(...t){super(...t),e(this,"opacityComp",d,this)}init(){this.opacityComp.opacity=0,this.node.active=!1}show(t){this.opacityComp.opacity=255,this.node.active=!0,t&&t()}hide(t){s(this.opacityComp).to(.3,{opacity:0}).call((()=>{this.node.active=!1,t&&t()})).start()}fade(t,i){this.node.active||(this.opacityComp.opacity=0,this.node.active=!0,s(this.opacityComp).to(.5,{opacity:255},{easing:n.sineOut}).call((()=>{t&&t(),s(this.opacityComp).delay(.2).to(.5,{opacity:0},{easing:n.sineIn}).call((()=>{this.node.active=!1,i&&i()})).start()})).start())}}).prototype,"opacityComp",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=u))||y));o._RF.pop()}}}));

System.register("chunks:///_virtual/FangjuConfig.ts",["cc","./ItemConfig.ts","./ItemDefine.ts"],(function(t){"use strict";var i,n,o,e;return{setters:[function(t){i=t.cclegacy,n=t._decorator},function(t){o=t.ItemConfig},function(t){e=t.FangjuType}],execute:function(){var s;i._RF.push({},"0b33eXyMhBFSb95ODCqGZn1","FangjuConfig",void 0);const{ccclass:c,property:u}=n;t("FangjuConfig",c("FangjuConfig")(s=class extends o{constructor(...t){super(...t),this.kind=e.护具,this.end=void 0,this.kct=void 0,this.kbz=void 0,this.fz=void 0,this.gz=void 0,this.move=void 0,this.ergonomic=void 0,this.open_level=void 0}})||s);i._RF.pop()}}}));

System.register("chunks:///_virtual/FlashItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,a,s,c,n;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,a=t.UIOpacity,s=t._decorator,c=t.Component,n=t.tween}],execute:function(){var r,l,p,h,y;o._RF.push({},"e8583t6xWBKhrEMiV3JpkWl","FlashItem",void 0);const{ccclass:u,property:m}=s;t("FlashItem",(r=u("FlashItem"),l=m({type:a,displayName:"透明度"}),r((y=e((h=class extends c{constructor(...t){super(...t),i(this,"opacityCom",y,this)}init(){this.node.active=!1,this.opacityCom.opacity=0,My.Event.on(My.events.player_flash,this.flashing,this)}hide(){this.node.active=!1}flashing(){this.opacityCom.opacity=0,this.node.active=!0,n(this.opacityCom).to(.25,{opacity:255}).call((()=>{n(this.opacityCom).delay(1).to(.25,{opacity:0}).call((()=>{this.node.active=!1})).start()})).start()}}).prototype,"opacityCom",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=h))||p));o._RF.pop()}}}));

System.register("chunks:///_virtual/GameCamera.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,a,s,r,n,h,o,l,m,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,s=t.Enum,r=t.Camera,n=t._decorator,h=t.Component,o=t.view,l=t.director,m=t.Director,u=t.v2}],execute:function(){var g,c,d,p,y,b,v,C,H,_;t("CameraState",void 0),a._RF.push({},"b9343i3xDxNUoZ41VtuN3Fp","GameCamera",void 0);const{ccclass:f,property:M}=n;let x;!function(t){t[t["无指定"]=0]="无指定",t[t["主界面"]=1]="主界面",t[t["自动跟随"]=2]="自动跟随",t[t["禁止跟随"]=3]="禁止跟随",t[t["全景视野"]=4]="全景视野"}(x||(x=t("CameraState",{})));t("GameCamera",(g=f("GameCamera"),c=M({type:s(x),displayName:"相机状态"}),d=M({type:r,displayName:"游戏相机"}),p=M({type:r,displayName:"视图相机"}),g(((_=class t extends h{constructor(...t){super(...t),i(this,"state",v,this),i(this,"gameCamera",C,this),i(this,"uiCamera",H,this),this.target=null,this.visibleWidth=0,this.visibleHeight=0,this.menuHeight=0,this.gameHeight=0,this.testing=!1}onLoad(){t.Instance=this,this.visibleHeight=.725*o.getVisibleSize().height,this.visibleWidth=.725*o.getVisibleSize().width,this.menuHeight=this.uiCamera.orthoHeight,this.gameHeight=this.uiCamera.orthoHeight+180,l.on(m.EVENT_BEFORE_DRAW,(()=>{this.fixedUpdate(.016667)}),this)}fixedUpdate(t){if(this.state==x.自动跟随){let t=this.target.getPosition();this.node.setPosition(t)}}isVisible(t){let e=this.node.getWorldPosition(),i=this.getVisibleBorder(e,!0);if(t.x<i.x||t.x>i.y)return!1;let a=this.getVisibleBorder(e,!1);return!(t.y<a.x||t.y>a.y)}changeState(t,e){if(this.state!=t)switch(this.state=t,t){case x.主界面:this.gameCamera.orthoHeight=this.menuHeight,this.node.setPosition(0,0,1e3),this.target=null,null==e||e(),My.Event.emit(My.events.update_camera_state,this.state);break;case x.自动跟随:this.target=My.Player.Instance.model.node,this.gameCamera.orthoHeight=this.gameHeight,null==e||e(),My.Event.emit(My.events.update_camera_state,this.state);break;case x.全景视野:null==e||e(),My.Event.emit(My.events.update_camera_state,this.state);break;case x.禁止跟随:null==e||e(),this.state=t,My.Event.emit(My.events.update_camera_state,this.state)}}testState(){this.testing=!this.testing,this.testing?(this.gameCamera.orthoHeight=2500,My.Event.emit(My.events.update_camera_state,x.全景视野)):(this.gameCamera.orthoHeight=this.gameHeight,My.Event.emit(My.events.update_camera_state,x.自动跟随))}getVisibleBorder(t,e){return e?u(t.x-this.visibleWidth,t.x+this.visibleWidth):u(t.y-this.visibleHeight,t.y+this.visibleHeight)}}).Instance=null,v=e((b=_).prototype,"state",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return x.无指定}}),C=e(b.prototype,"gameCamera",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(b.prototype,"uiCamera",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=b))||y));a._RF.pop()}}}));

System.register("chunks:///_virtual/GameCheat.ts",["cc","./GameDefine.ts","./BuffDefine.ts","./GuideDefine.ts","./UIDefine.ts"],(function(e){"use strict";var a,t,s,d,n,h,i,y,M,c,g,o,m;return{setters:[function(e){a=e.cclegacy,t=e._decorator,s=e.Component,d=e.input,n=e.Input,h=e.game,i=e.KeyCode},function(e){y=e.GameTags,M=e.DamageType,c=e.DamageParam},function(e){g=e.BuffType},function(e){o=e.GuideStep},function(e){m=e.PopupType}],execute:function(){var u,v;a._RF.push({},"ebbf0znnxZMb7iJreO8qq/9","GameCheat",void 0);const{ccclass:r,property:p}=t;e("GameCheat",r("GameCheat")(((v=class e extends s{constructor(...e){super(...e),this.cheats=[]}onLoad(){e.Instance=this,this.setEvents(),d.on(n.EventType.KEY_DOWN,this.onKeyDown,this)}setEvents(){this.cheats=[],this.addEvent("清空数据",(()=>{My.Event.clearAll(),localStorage.clear(),h.restart()})),this.addEvent("清空狗狗币",(()=>{My.Data.money=0,My.Event.emit(My.events.update_money)})),this.addEvent("临时数据",(()=>{My.Game.cheat.cheat_temp?(My.Game.cheat.cheat_temp=!1,My.Msg.showMessage("使用本地存储保存数据")):(My.Game.cheat.cheat_temp=!0,My.Msg.showMessage("使用临时存储，将不保存数据"))})),this.addEvent("无限消费",(()=>{My.Game.cheat.cheat_momeny?(My.Game.cheat.cheat_momeny=!1,My.Msg.showMessage("关闭无限消费")):(My.Game.cheat.cheat_momeny=!0,My.Msg.showMessage("开启无限消费"))})),this.addEvent("无限弹药",(()=>{My.Game.cheat.cheat_ammo?(My.Game.cheat.cheat_ammo=!1,My.Msg.showMessage("关闭无限弹药")):(My.Game.cheat.cheat_ammo=!0,My.Msg.showMessage("开启无限弹药"))})),this.addEvent("无限生命",(()=>{My.Game.cheat.cheat_hp?(My.Game.cheat.cheat_hp=!1,My.Msg.showMessage("关闭无限生命")):(My.Game.cheat.cheat_hp=!0,My.Msg.showMessage("开启无限生命"))})),this.addEvent("无限伤害",(()=>{My.Game.cheat.cheat_damage?(My.Game.cheat.cheat_damage=!1,My.Msg.showMessage("关闭无限伤害")):(My.Game.cheat.cheat_damage=!0,My.Msg.showMessage("无限爆率/装备回收/一刀/枪999"))})),this.addEvent("武器专精",(()=>{My.Game.cheat.cheat_moa?(My.Game.cheat.cheat_moa=!1,My.Msg.showMessage("使用武器射击精度")):(My.Game.cheat.cheat_moa=!0,My.Msg.showMessage("使用特殊射击精度"))})),this.addEvent("BUFF_镇静",(()=>{My.Player.state.buff_Push(g.镇静,10,5)})),this.addEvent("BUFF_愈合",(()=>{My.Player.state.buff_Push(g.愈合,10,5)})),this.addEvent("BUFF_兴奋",(()=>{My.Player.state.buff_Push(g.兴奋,10,5)})),this.addEvent("引导对话框",(()=>{My.Guide.Instance.dialog.show("欢迎你新兵，你即将迎来你在战区的第一个任务，准备好了吗？在任务开始之前，我为你准备了一些装备...",(()=>{My.Guide.Instance.dialog.hide(),console.log("对话框测试结束")}))})),this.addEvent("引导阶段1",(()=>{My.Data.guide.guided=1,My.Data.guide.guide_Step=0,My.Guide.guiding=!0,My.Guide.guideCheck(o.整备引导)})),this.addEvent("引导阶段2",(()=>{My.Guide.guiding=!0,My.Data.guide.guided=1,My.Data.guide.guide_Step=1})),this.addEvent("引导阶段3",(()=>{My.Data.guide.guided=1,My.Data.guide.guide_Step=2,My.Guide.guiding=!0,My.Guide.guideCheck(o.出售引导)})),this.addEvent("引导阶段4",(()=>{My.Data.guide.guided=1,My.Data.guide.guide_Step=3,My.Guide.guiding=!0,My.Guide.guideCheck(o.黑市引导)})),this.addEvent("结束引导",(()=>{My.Guide.Instance.guideEnded()})),this.addEvent("角色死亡",(()=>{let e=new c;e.damage=9999,e.belong=y.BOSS,e.type=M.近战,My.Player.model.hurt(e,y.玩家)})),this.addEvent("游戏时长+10",(()=>{My.Data.playerData.gameTime+=10})),this.addEvent("游戏时长+60",(()=>{My.Data.playerData.gameTime+=60})),this.addEvent("游戏时长清除",(()=>{My.Data.playerData.gameTime=0})),this.addEvent("经验值+500",(()=>{My.Archive.Instance.add_Data([500]),My.Archive.Instance.check_Lv()})),this.addEvent("升级弹窗测试",(()=>{My.UI.Instance.showPopup(m.升级弹窗,Tool.ArrayUtil.RandomValueInArray(My.Archive.config))})),this.addEvent("相机视野切换",(()=>{My.Camera.Instance.testState()})),this.addEvent("创建NPC",(()=>{My.Map.mapData.createNpc()})),this.addEvent("角色生命-10",(()=>{let e=new c;e.damage=10,e.belong=y.BOSS,e.type=M.近战,My.Player.model.hurt(e,y.玩家)}))}addEvent(e,a){const t=new G;t.name=e,t.func=a,this.cheats.push(t)}onKeyDown(e){My.Game.cheat.enabled&&e.keyCode==i.TAB&&My.Event.emit(My.events.game_cheat)}}).Instance=null,u=v))||u);class G{constructor(){this.name=void 0,this.func=void 0}}e("CheatEvent",G),a._RF.pop()}}}));

System.register("chunks:///_virtual/GameData.ts",["cc"],(function(a){"use strict";var t,e,s;return{setters:[function(a){t=a.cclegacy,e=a._decorator,s=a.Component}],execute:function(){var i,r,l,n,h,o,c,D,y;t._RF.push({},"3298dXvPd5OI5HaxERLJK4s","GameData",void 0);const{ccclass:u,property:g}=e;a("GameData",u("GameData")(((r=class a extends s{constructor(...a){super(...a),this.guideData=new d,this.playerData=new m,this.surveyData=new p,this.skinData=new S,this.storeData=new I,this.warehouseData=new v,this.packData=new k}onLoad(){a.Instance=this,this.init()}start(){if(0==this.playerData.inited){this.playerData.inited=1,this.playerData.money=My.Setting.getData("player_initial_money"),this.playerData.warehouse=My.Setting.getData("stock_initial_space");let a=Tool.StringUtil.stringToArray(My.Setting.getData("player_star_item"),";");a.length>0&&a.forEach((a=>{let t=Tool.StringUtil.stringToArrayNumber(a,","),e=t[1]-My.Whs.Instance.whsItem_Has(t[0]);e>0&&(My.Pack.Instance.equipItem_Has(t[0])||My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CreateData(t[0],e)))})),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value);const t=JSON.stringify(this.playerData);localStorage.setItem("playerData",t)}}init(){this.loadGuideData(),this.loadPlayerData(),this.loadSurveyData(),this.loadSkinData(),this.loadStoreData(),this.loadWarehouseData(),this.loadPackData()}loadGuideData(){let a=localStorage.getItem("guideData");if(null==a||Tool.StringUtil.IsEmpty(a)){let t=new d;a=JSON.stringify(t),localStorage.setItem("guideData",a)}this.guideData=JSON.parse(a),null==this.guideData.guide_Step&&(this.guideData.guide_Step=1==this.guideData.guided?0:99,a=JSON.stringify(this.guideData),localStorage.setItem("guideData",a)),My.Game.gameLog("引导数据加载",this.guideData)}static saveGuideData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.guideData);localStorage.setItem("guideData",a),My.Game.gameLog("引导数据保存",this.Instance.guideData)}static get guide(){return this.Instance.guideData}static get guided(){return this.Instance.guideData.guided}static set guided(a){this.Instance.guideData.guided=a}loadPlayerData(){let a=localStorage.getItem("playerData");if(null==a||Tool.StringUtil.IsEmpty(a)){let t=new m;a=JSON.stringify(t),localStorage.setItem("playerData",a)}this.playerData=JSON.parse(a);let t=0;null==this.playerData.money&&(this.playerData.money=0,t+=1),null==this.playerData.badge&&(this.playerData.badge=0,t+=1),null==this.playerData.gen&&(this.playerData.gen=0,t+=1),null==this.playerData.battery&&(this.playerData.battery=0,t+=1),null==this.playerData.frags&&(this.playerData.frags=0,t+=1),null==this.playerData.warehouse&&(this.playerData.warehouse=0,t+=1),null==this.playerData.gameTime&&(this.playerData.gameTime=0,t+=1),null==this.playerData.charges&&(this.playerData.charges=0,t+=1),null==this.playerData.exp&&(this.playerData.exp=0,t+=1),null==this.playerData.dailyDate&&(this.playerData.dailyDate="",t+=1),null==this.playerData.dailyState&&(this.playerData.dailyState="",t+=1),null==this.playerData.mechaState&&(this.playerData.mechaState=0,t+=1),null==this.playerData.archive_Exited&&(this.playerData.archive_Exited=0,t+=1),null==this.playerData.archive_Value&&(this.playerData.archive_Value=0,t+=1),null==this.playerData.archive_Kills&&(this.playerData.archive_Kills=0,t+=1),null==this.playerData.archive_Boxes&&(this.playerData.archive_Boxes=0,t+=1),t>0&&(a=JSON.stringify(this.playerData),localStorage.setItem("playerData",a)),My.Game.gameLog("玩家数据加载",this.playerData)}static savePlayerData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.playerData);localStorage.setItem("playerData",a),My.Game.gameLog("玩家数据保存",this.Instance.playerData)}static get money(){return this.Instance.playerData.money}static set money(a){this.Instance.playerData.money=a,this.savePlayerData()}static get warehouse(){return this.Instance.playerData.warehouse}static set warehouse(a){this.Instance.playerData.warehouse=a,this.savePlayerData()}static get playerData(){return this.Instance.playerData}static set playerData(a){this.Instance.playerData=a}loadSurveyData(){let a=localStorage.getItem("surveyData");(null==a||Tool.StringUtil.IsEmpty(a))&&(a=JSON.stringify(new p),localStorage.setItem("surveyData",a)),this.surveyData=JSON.parse(a),My.Game.gameLog("勘察数据加载",this.surveyData)}static saveSurveyData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.surveyData);localStorage.setItem("surveyData",a),My.Game.gameLog("勘察数据保存",this.Instance.surveyData)}static get surveyData(){return this.Instance.surveyData}static set surveyData(a){this.Instance.surveyData=a}loadSkinData(){let a=localStorage.getItem("skinData");(null==a||Tool.StringUtil.IsEmpty(a))&&(a=JSON.stringify(new S),localStorage.setItem("skinData",a)),this.skinData=JSON.parse(a),My.Game.gameLog("皮肤数据加载",this.skinData)}static saveSkinData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.skinData);localStorage.setItem("skinData",a),My.Game.gameLog("皮肤数据保存",this.Instance.skinData)}static get skinData(){return this.Instance.skinData}static set skinData(a){this.Instance.skinData=a}loadStoreData(){let a=localStorage.getItem("storeData");(null==a||Tool.StringUtil.IsEmpty(a))&&(a=JSON.stringify(new I),localStorage.setItem("storeData",a)),this.storeData=JSON.parse(a),My.Game.gameLog("商店数据加载",this.storeData)}static saveStoreData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.storeData);localStorage.setItem("storeData",a),My.Game.gameLog("商店数据保存",this.Instance.storeData)}static get storeData(){return this.Instance.storeData}static set storeData(a){this.Instance.storeData=a}loadWarehouseData(){let a=localStorage.getItem("warehouseData");(null==a||Tool.StringUtil.IsEmpty(a))&&(a=JSON.stringify(new v),localStorage.setItem("warehouseData",a)),this.warehouseData=JSON.parse(a),My.Game.gameLog("仓库数据加载",this.warehouseData)}static saveWarehouseData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.warehouseData);localStorage.setItem("warehouseData",a),My.Game.gameLog("仓库数据保存",this.Instance.warehouseData)}static getWarehouseItems(){return this.Instance.warehouseData.items}loadPackData(){let a=localStorage.getItem("packData");(null==a||Tool.StringUtil.IsEmpty(a))&&(a=JSON.stringify(new k),localStorage.setItem("packData",a)),this.packData=JSON.parse(a),My.Game.gameLog("背包数据加载",this.packData)}static savePackData(){if(My.Game.cheat.cheat_temp)return;const a=JSON.stringify(this.Instance.packData);localStorage.setItem("packData",a),My.Game.gameLog("背包数据保存",this.Instance.packData)}static getEquipDatas(){return this.Instance.packData.equipItems}static getPackDatas(){return this.Instance.packData.packItems}static getLockDatas(){return this.Instance.packData.lockItems}}).Instance=null,i=r))||i);let m=a("PlayerData",u("PlayerData")(l=class{constructor(){this.inited=0,this.money=0,this.badge=0,this.gen=0,this.battery=0,this.frags=0,this.warehouse=0,this.gameTime=0,this.charges=0,this.exp=0,this.dailyDate="",this.dailyState="",this.mechaState=0,this.archive_Exited=0,this.archive_Value=0,this.archive_Kills=0,this.archive_Boxes=0}})||l),p=a("SurveyData",u("SurveyData")(n=class{constructor(){this.surveys=0,this.surveyGen=0,this.surveyVideo=0}})||n),S=a("SkinData",u("SkinData")(h=class{constructor(){this.skin=void 0,this.skins=[]}})||h),I=a("StoreData",u("StoreData")(o=class{constructor(){this.date="",this.goods=[]}})||o),d=a("GuideData",u("GuideData")(c=class{constructor(){this.guided=1,this.guide_Step=0}})||c),v=a("WarehouseData",u("WarehouseData")(D=class{constructor(){this.items=[]}})||D),k=a("PackData",u("PackData")(y=class{constructor(){this.equipItems=[null,null,null,null,null,null,null],this.packItems=[],this.lockItems=[]}})||y);t._RF.pop()}}}));

System.register("chunks:///_virtual/GameDefine.ts",["./rollupPluginModLoBabelHelpers.js","cc","./MapDefine.ts"],(function(e){"use strict";var i,t,a,r,n,l,o,s;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e.view,n=e.Prefab,l=e.Component,o=e._decorator},function(e){s=e.BoxType}],execute:function(){var u,h,c,p,m,y,d,b,f,g,_,w,N,v,z,P,D,x,T,S,G,B,C,M,F,A,H,O,R,W,k,L,X,I,j,E,V,Z,q,J,K,Q,U,Y,$,ee,ie,te,ae,re,ne,le,oe,se,ue,he,ce,pe,me,ye;e({BulletType:void 0,DamageType:void 0,GameDir:void 0,GameScene:void 0,GameState:void 0,GameTags:void 0,NPCState:void 0,PierceType:void 0,PlayerAction:void 0,PlayerModel:void 0,RewardedGiftType:void 0,ShootType:void 0,TipsType:void 0}),a._RF.push({},"aa4b3Z5PWBBAI3XuHHgmfsw","GameDefine",void 0);const{ccclass:de,property:be}=o;let fe,ge,_e,we,Ne,ve,ze,Pe,De;e("GameParam",class{constructor(){this.size=void 0,this.ratio=void 0}init(){this.size=r.getVisibleSizeInPixel(),this.ratio=parseFloat((this.size.x/this.size.y).toFixed(1))}}),function(e){e[e.Load=0]="Load",e[e.Menu=1]="Menu",e[e.Play=2]="Play",e[e.Over=3]="Over",e[e.Fade=4]="Fade"}(fe||(fe=e("GameState",{}))),function(e){e[e["无"]=0]="无",e[e["主页"]=1]="主页",e[e["对局"]=2]="对局"}(ge||(ge=e("GameScene",{}))),function(e){e[e["子弹"]=5]="子弹",e[e["玩家"]=10]="玩家",e[e["玩家_头部"]=11]="玩家_头部",e[e.NPC=20]="NPC",e[e["NPC_头部"]=21]="NPC_头部",e[e.BOSS=30]="BOSS"}(_e||(_e=e("GameTags",{}))),function(e){e[e["右"]=0]="右",e[e["下"]=1]="下",e[e["左"]=2]="左",e[e["上"]=3]="上"}(we||(we=e("GameDir",{}))),function(e){e[e["按下射击"]=0]="按下射击",e[e["松开射击"]=1]="松开射击"}(Ne||(Ne=e("ShootType",{}))),function(e){e[e["即将有空投"]=0]="即将有空投",e[e["空投已降落"]=1]="空投已降落"}(ve||(ve=e("TipsType",{}))),function(e){e[e["无操作"]=0]="无操作",e[e["其他操作"]=1]="其他操作",e[e["装弹操作"]=2]="装弹操作",e[e["药品操作"]=3]="药品操作",e[e["投掷物操作"]=4]="投掷物操作"}(ze||(ze=e("PlayerAction",{}))),function(e){e[e["修狗"]=0]="修狗",e[e["机甲"]=1]="机甲"}(Pe||(Pe=e("PlayerModel",{}))),function(e){e[e["无"]=0]="无",e[e["待机"]=1]="待机",e[e["巡逻"]=2]="巡逻",e[e["追击"]=3]="追击",e[e["死亡"]=4]="死亡"}(De||(De=e("NPCState",{})));e("CheatData",(u=de("CheatData"),h=be({displayName:"作弊器"}),c=be({displayName:"临时数据"}),p=be({displayName:"无限消费"}),m=be({displayName:"无限生命"}),y=be({displayName:"无限弹药"}),d=be({displayName:"无限精度"}),b=be({displayName:"无限伤害"}),f=be({displayName:"敌人禁锢"}),g=be({displayName:"跳过引导"}),_=be({displayName:"测试地图"}),u((v=i((N=class{constructor(){t(this,"enabled",v,this),t(this,"cheat_temp",z,this),t(this,"cheat_momeny",P,this),t(this,"cheat_hp",D,this),t(this,"cheat_ammo",x,this),t(this,"cheat_moa",T,this),t(this,"cheat_damage",S,this),t(this,"cheat_enemy",G,this),t(this,"cheat_guide",B,this),t(this,"cheat_map",C,this)}Disabled(){this.cheat_temp=!1,this.cheat_momeny=!1,this.cheat_hp=!1,this.cheat_ammo=!1,this.cheat_moa=!1,this.cheat_damage=!1,this.cheat_enemy=!1,this.cheat_guide=!1,this.cheat_map=!1}}).prototype,"enabled",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=i(N.prototype,"cheat_temp",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P=i(N.prototype,"cheat_momeny",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=i(N.prototype,"cheat_hp",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=i(N.prototype,"cheat_ammo",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=i(N.prototype,"cheat_moa",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=i(N.prototype,"cheat_damage",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G=i(N.prototype,"cheat_enemy",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),B=i(N.prototype,"cheat_guide",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=i(N.prototype,"cheat_map",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=N))||w)),e("PlayData",de("PlayData")(M=class{constructor(){this.kills=0,this.boxes=0,this.values=0,this.mecha=!1,this.exited=!1,this.resulted=!1,this.timer=0,this.rewardedAmmo=!1,this.rewardedWeight=0,this.exitTimer=60}reset(){this.timer=0,this.kills=0,this.boxes=0,this.values=0,this.exited=!1,this.resulted=!1,this.rewardedAmmo=!1,this.rewardedWeight=0,this.mecha=1==My.Data.playerData.mechaState}timing(){this.timer+=1,!this.exited&&this.timer>this.exitTimer&&(this.exited=!0),this.timer==My.Map.mapData.points.plane_spawn&&My.Event.emit(My.events.play_plane)}remaining(){let e=this.exitTimer-this.timer;return e>0?"撤离点还剩"+e+"秒开启!":"撤离点即将开启!"}})||M);e("BoxData",class{constructor(e){this.state=0,this.level=1,this.type=s.物资箱,this.items=[],this.type=e}});let xe,Te,Se,Ge;e("PlayPrefab",(F=de("PlayPrefab"),A=be({type:n,displayName:"命中效果_通用"}),H=be({type:n,displayName:"命中效果_修狗"}),O=be({type:n,displayName:"命中效果_伤害"}),R=be({type:n,displayName:"命中效果_榴弹"}),W=be({type:n,displayName:"子弹_武器"}),k=be({type:n,displayName:"子弹_近战"}),L=be({type:n,displayName:"子弹_榴弹"}),X=be({type:n,displayName:"投掷物"}),I=be({type:n,displayName:"运输机"}),j=be({type:n,displayName:"撤离点"}),E=be({type:n,displayName:"资源点"}),V=be({type:n,displayName:"丢弃物资"}),Z=be({type:n,displayName:"NPC"}),q=be({type:n,displayName:"BOSS"}),J=be({type:n,displayName:"引导NPC"}),K=be({type:[n],displayName:"激励礼包"}),F((Y=i((U=class{constructor(){t(this,"hitCommon",Y,this),t(this,"hitXiugou",$,this),t(this,"hitDamage",ee,this),t(this,"hitGrenade",ie,this),t(this,"bullet",te,this),t(this,"melee",ae,this),t(this,"grenade",re,this),t(this,"thrown",ne,this),t(this,"plane",le,this),t(this,"exited",oe,this),t(this,"resBox",se,this),t(this,"discard",ue,this),t(this,"npc",he,this),t(this,"boss",ce,this),t(this,"guideNpc",pe,this),t(this,"gifts",me,this)}}).prototype,"hitCommon",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=i(U.prototype,"hitXiugou",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=i(U.prototype,"hitDamage",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=i(U.prototype,"hitGrenade",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=i(U.prototype,"bullet",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=i(U.prototype,"melee",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=i(U.prototype,"grenade",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=i(U.prototype,"thrown",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=i(U.prototype,"plane",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),oe=i(U.prototype,"exited",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=i(U.prototype,"resBox",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=i(U.prototype,"discard",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),he=i(U.prototype,"npc",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce=i(U.prototype,"boss",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pe=i(U.prototype,"guideNpc",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),me=i(U.prototype,"gifts",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Q=U))||Q)),e("Hud_Base",de("Hud_Base")(ye=class extends l{init(){}})||ye);e("DamageParam",class{constructor(){this.type=void 0,this.pierce=void 0,this.damage=void 0,this.endurance=void 0,this.belong=void 0}}),function(e){e[e["近战"]=0]="近战",e[e["子弹"]=1]="子弹",e[e["手雷"]=2]="手雷",e[e["燃烧瓶"]=3]="燃烧瓶"}(xe||(xe=e("DamageType",{}))),function(e){e[e["子弹"]=0]="子弹",e[e["近战"]=1]="近战",e[e["榴弹"]=2]="榴弹"}(Te||(Te=e("BulletType",{})));e("WuziParam",class{constructor(){this.id=void 0,this.count=void 0,this.weight=void 0}}),function(e){e[e["支援礼包"]=0]="支援礼包",e[e["惊喜宝箱"]=1]="惊喜宝箱"}(Se||(Se=e("RewardedGiftType",{}))),function(e){e[e["未能穿透"]=0]="未能穿透",e[e["部分穿透"]=1]="部分穿透",e[e["完全穿透"]=2]="完全穿透"}(Ge||(Ge=e("PierceType",{}))),a._RF.pop()}}}));

System.register("chunks:///_virtual/GameEvent.ts",["cc"],(function(t){"use strict";var e,s,c;return{setters:[function(t){e=t.cclegacy,s=t._decorator,c=t.Component}],execute:function(){var n,i;e._RF.push({},"c6fd8jE1atKvIvNXjdZ+H3t","GameEvent",void 0);const{ccclass:a,property:h}=s;t("GameEvent",a("GameEvent")(((i=class extends c{static on(t,e,s){this._events.has(t)?this._events.get(t).push({cb:e,ctx:s}):this._events.set(t,[{cb:e,ctx:s}])}static once(t,e,s){this._events.has(t)?this._events.get(t).push({cb:e,ctx:s}):this._events.set(t,[{cb:e,ctx:s}])}static off(t,e,s){if(!this._events.has(t))return;const c=this._events.get(t).findIndex((t=>e===t.cb&&t.ctx===s));c>=0&&this._events.get(t).splice(c,1)}static emit(t,...e){if(!this._events.has(t))return;let s=[];this._events.get(t).forEach((t=>{s.push(t)})),s.forEach((({cb:t,ctx:s})=>{t.apply(s,e)}))}static clear(t){t&&this._events.forEach(((e,s)=>{for(let s=e.length-1;s>=0;s--)e[s].ctx==t&&e.splice(s,1)}))}static clearAll(){this._events.clear()}})._events=new Map,n=i))||n);e._RF.pop()}}}));

System.register("chunks:///_virtual/GameItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./TouzhiConfig.ts","./ZidanConfig.ts","./PeijianConfig.ts","./FangjuConfig.ts","./WuqiConfig.ts","./ItemDefine.ts","./YaopinConfig.ts","./ZawuConfig.ts","./BaoxiangConfig.ts","./DiaoluoConfig.ts","./ItemInfo.ts","./TagConfig.ts","./HuobiConfig.ts","./MapDefine.ts"],(function(t){"use strict";var e,a,i,o,n,s,l,r,u,g,m,c,h,d,p,y,f,_,b,M,w,C,I,T,k,U;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.SpriteFrame,n=t.JsonAsset,s=t._decorator,l=t.Color,r=t.Component},function(t){u=t.TouzhiConfig},function(t){g=t.ZidanConfig},function(t){m=t.PeijianConfig},function(t){c=t.FangjuConfig},function(t){h=t.WuqiConfig},function(t){d=t.ItemType,p=t.FangjuType,y=t.ItemQuality,f=t.TagType,_=t.AmmoType},function(t){b=t.YaopinConfig},function(t){M=t.ZawuConfig},function(t){w=t.BaoxiangConfig},function(t){C=t.DiaoluoType},function(t){I=t.ItemStoredType},function(t){T=t.TagConfig},function(t){k=t.HuobiConfig},function(t){U=t.BoxType}],execute:function(){var P,D,S,z,q,v,N,R,A,x,J,j,L,E,B,F,G,Q,V,Z,H,W,Y,X,O,K,$,tt,et,at,it,ot,nt,st,lt,rt,ut;i._RF.push({},"13f79raX3dOnLXPxEs4QFMX","GameItem",void 0);const{ccclass:gt,property:mt}=s;let ct=t("QualtyInfo",(P=gt("QualtyInfo"),D=mt({}),S=mt({type:[o]}),P((v=e((q=class{constructor(){a(this,"color",v,this),a(this,"sprites",N,this)}}).prototype,"color",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new l(255,255,255,255)}}),N=e(q.prototype,"sprites",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z=q))||z));t("GameItem",(R=gt("GameItem"),A=mt({type:n,displayName:"武器配置文件"}),x=mt({type:n,displayName:"防具配置文件"}),J=mt({type:n,displayName:"配件配置文件"}),j=mt({type:n,displayName:"药品配置文件"}),L=mt({type:n,displayName:"子弹配置文件"}),E=mt({type:n,displayName:"投掷物配置文件"}),B=mt({type:n,displayName:"杂物配置文件"}),F=mt({type:n,displayName:"宝箱配置文件"}),G=mt({type:n,displayName:"标签配置文件"}),Q=mt({type:n,displayName:"掉落配置文件"}),V=mt({type:n,displayName:"货币配置文件"}),Z=mt({type:[ct],displayName:"游戏品质"}),H=mt({type:o,displayName:"默认图像"}),R(((ut=class t extends r{constructor(...t){super(...t),a(this,"wuqiJson",X,this),a(this,"fangjuJson",O,this),a(this,"peijianJson",K,this),a(this,"yaopinJson",$,this),a(this,"zidanJson",tt,this),a(this,"touzhiJson",et,this),a(this,"zawuJson",at,this),a(this,"baoxiangJson",it,this),a(this,"tagJson",ot,this),a(this,"diaoluoJson",nt,this),a(this,"huobiJson",st,this),a(this,"qualitys",lt,this),a(this,"defaultSprite",rt,this),this.configMap=new Map,this.huobiMap=new Map,this.zidanMap=new Map,this.tagConfigs=new Map,this.tagMap=new Map,this.diaoluoMap=new Map,this.weightMap=new Map,this.iconMap=new Map,this.skinMap=new Map,this.slotMap=new Map,this.shadownMap=new Map,this.medicalConfigs=[],this.thrownConfigs=[],this.weaponPool=[],this.helmetPool=[],this.armorPool=[],this.bagPool=[]}static get medicalConfigs(){return this.Instance.medicalConfigs}static get thrownConfigs(){return this.Instance.thrownConfigs}onLoad(){t.Instance=this,this.loadConfig()}async loadConfig(){this.configMap.clear(),this.load_WuqiConfig(),this.load_FangjuConfig(),this.load_PeijianConfig(),this.load_YaopinConfig(),this.load_ZidanConfig(),this.load_TouzhiConfig(),this.load_ZawuConfig(),this.load_BaoxiangConfig(),this.load_TagConfig(),this.load_DiaoluoConfig(),this.load_HuobiConfig()}load_WuqiConfig(){this.wuqiJson.json.config.forEach((e=>{let a=new h;a.type=d.武器,a.id=e.id,a.name=e.name,a.quality=e.quality,a.image=e.image,a.desc=e.desc,a.buy=e.buy,a.sell=e.sell,a.end=e.end,a.weight=e.weight,a.stack=e.stack,a.get_way=e.get_way,a.open_level=e.open_level,a.kind=e.kind,a.ammo=e.ammo,a.atkadd=e.atkadd,a.range=e.range,a.rate=e.rate,a.speed=e.speed,a.moa=e.moa,a.rds=e.rds,a.reload=e.reload,a.acc=e.acc,a.acc_sight=e.acc_sight,a.acc_muzzle=e.acc_muzzle,a.ergonomic=e.ergonomic,this.configMap.set(e.id,a),this.weaponPool.push(a),(t.weaponPool_Min<=0||e.sell<t.weaponPool_Min)&&(t.weaponPool_Min=e.sell)}))}load_FangjuConfig(){this.fangjuJson.json.config.forEach((e=>{let a=new c;switch(a.type=d.防具,a.id=e.id,a.name=e.name,a.quality=e.quality,a.image=e.image,a.desc=e.desc,a.buy=e.buy,a.sell=e.sell,a.end=e.end,a.weight=e.weight,a.stack=e.stack,a.get_way=e.get_way,a.open_level=e.open_level,a.kind=e.kind,a.kct=e.kct,a.kbz=e.kbz,a.fz=e.fz,a.gz=e.gz,a.move=e.move,a.ergonomic=e.ergonomic,this.configMap.set(e.id,a),e.kind){case p.头盔:this.helmetPool.push(a),(t.helmetPool_Min<=0||e.sell<t.helmetPool_Min)&&(t.helmetPool_Min=e.sell);break;case p.护具:this.armorPool.push(a),(t.armorPool_Min<=0||e.sell<t.armorPool_Min)&&(t.armorPool_Min=e.sell);break;case p.背包:this.bagPool.push(a),(t.bagPool_Min<=0||e.sell<t.bagPool_Min)&&(t.bagPool_Min=e.sell)}}))}load_PeijianConfig(){this.peijianJson.json.config.forEach((t=>{let e=new m;e.type=d.配件,e.id=t.id,e.name=t.name,e.quality=t.quality,e.image=t.image,e.desc=t.desc,e.buy=t.buy,e.sell=t.sell,e.end=t.end,e.weight=t.weight,e.stack=t.stack,e.get_way=t.get_way,e.kind=t.kind,e.rds=t.rds,e.moa=t.moa,e.match=t.match,e.aim_mult=t.aim_mult,e.ergonomic=t.ergonomic,this.configMap.set(t.id,e)}))}load_YaopinConfig(){this.yaopinJson.json.config.forEach((t=>{let e=new b;e.type=d.药品,e.id=t.id,e.name=t.name,e.quality=t.quality,e.image=t.image,e.desc=t.desc,e.buy=t.buy,e.sell=t.sell,e.weight=t.weight,e.stack=t.stack,e.get_way=t.get_way,e.open_level=t.open_level,e.kind=t.kind,e.end=t.end,e.value=t.value,e.time=t.time,e.duration=t.duration,e.reduce=t.reduce,this.configMap.set(t.id,e),this.medicalConfigs.push(e)}))}load_ZidanConfig(){this.zidanJson.json.config.forEach((t=>{let e=new g;if(e.type=d.子弹,e.id=t.id,e.name=t.name,e.quality=t.quality,e.image=t.image,e.desc=t.desc,e.buy=t.buy,e.sell=t.sell,e.weight=t.weight,e.stack=t.stack,e.get_way=t.get_way,e.open_level=t.open_level,e.kind=t.kind,e.damage=t.damage,e.ct=t.ct,e.radius=t.radius,e.end_damage=t.end_damage,this.configMap.set(t.id,e),this.zidanMap.has(e.kind)){this.zidanMap.get(e.kind).push(e)}else{let t=[];t.push(e),this.zidanMap.set(e.kind,t)}}))}load_TouzhiConfig(){this.touzhiJson.json.config.forEach((t=>{let e=new u;e.type=d.投掷物,e.id=t.id,e.name=t.name,e.quality=t.quality,e.image=t.image,e.desc=t.desc,e.buy=t.buy,e.sell=t.sell,e.weight=t.weight,e.stack=t.stack,e.get_way=t.get_way,e.open_level=t.open_level,e.kind=t.kind,e.damage=t.damage,e.radius=t.radius,e.delay=t.delay,e.duration=t.duration,this.configMap.set(t.id,e),this.thrownConfigs.push(e)}))}load_ZawuConfig(){this.zawuJson.json.config.forEach((t=>{let e=new M;e.type=d.杂物,e.id=t.id,e.name=t.name,e.quality=t.quality,e.image=t.image,e.desc=t.desc,e.buy=t.buy,e.sell=t.sell,e.weight=t.weight,e.stack=t.stack,e.get_way=t.get_way,this.configMap.set(t.id,e)}))}load_BaoxiangConfig(){this.baoxiangJson.json.config.forEach((t=>{let e=new w;e.type=d.宝箱,e.id=t.id,e.name=t.name,e.quality=t.quality,e.image=t.image,e.desc=t.desc,e.buy=t.buy,e.sell=t.sell,e.weight=t.weight,e.stack=t.stack,e.get_way=t.get_way,e.kind=t.kind,e.reward=t.reward,this.configMap.set(t.id,e)}))}load_TagConfig(){this.tagJson.json.config.forEach((t=>{let e=new T;if(e.id=t.id,e.name=t.name,e.kind=t.kind,e.weight=t.weight,e.desc=t.desc,this.tagConfigs.set(t.id,e),this.tagMap.has(t.kind)){this.tagMap.get(t.kind).push(e.id)}else{let a=[];a.push(e.id),this.tagMap.set(t.kind,a)}}))}load_DiaoluoConfig(){this.diaoluoJson.json.config.forEach((t=>{t.box5_goods>0&&this.diaoluoMap_Push(C.保险箱,Tool.CommonUtil.DropData(t.id,t.box5_goods)),t.box1_goods>0&&this.diaoluoMap_Push(C.物资箱Lv1,Tool.CommonUtil.DropData(t.id,t.box1_goods)),t.box2_goods>0&&this.diaoluoMap_Push(C.物资箱Lv2,Tool.CommonUtil.DropData(t.id,t.box2_goods)),t.box3_goods>0&&this.diaoluoMap_Push(C.物资箱Lv3,Tool.CommonUtil.DropData(t.id,t.box3_goods)),t.box4_goods>0&&this.diaoluoMap_Push(C.物资箱Lv4,Tool.CommonUtil.DropData(t.id,t.box4_goods)),t.box1_weapons>0&&this.diaoluoMap_Push(C.武器箱Lv1,Tool.CommonUtil.DropData(t.id,t.box1_weapons)),t.box2_weapons>0&&this.diaoluoMap_Push(C.武器箱Lv2,Tool.CommonUtil.DropData(t.id,t.box2_weapons)),t.box3_weapons>0&&this.diaoluoMap_Push(C.武器箱Lv3,Tool.CommonUtil.DropData(t.id,t.box3_weapons)),t.box4_weapons>0&&this.diaoluoMap_Push(C.武器箱Lv4,Tool.CommonUtil.DropData(t.id,t.box4_weapons)),t.box1_medic>0&&this.diaoluoMap_Push(C.医药箱Lv1,Tool.CommonUtil.DropData(t.id,t.box1_medic)),t.box2_medic>0&&this.diaoluoMap_Push(C.医药箱Lv2,Tool.CommonUtil.DropData(t.id,t.box2_medic)),t.box3_medic>0&&this.diaoluoMap_Push(C.医药箱Lv3,Tool.CommonUtil.DropData(t.id,t.box3_medic))}))}load_HuobiConfig(){this.huobiJson.json.config.forEach((t=>{let e=new k;e.id=t.id,e.name=t.name,e.image=t.image,e.quality=t.quality,e.type=d.货币,this.configMap.set(t.id,e)}))}diaoluoMap_Push(t,e){if(this.diaoluoMap.has(t)){this.diaoluoMap.get(t).push(e),this.weightMap.get(t).push(e.weight)}else{let a=[];a.push(e),this.diaoluoMap.set(t,a);let i=[];i.push(e.weight),this.weightMap.set(t,i)}}getItemConfig(t){return this.configMap.has(t)?this.configMap.get(t):(My.Game.gameErr("未找到配置："+t),null)}getTagConfig(t){return this.tagConfigs.has(t)?this.tagConfigs.get(t):(My.Game.gameErr("未找到标签："+t),null)}getCurrencyName(t){return t<100?this.configMap.has(t)?this.configMap.get(t).name:(My.Game.gameErr("未找到货币："+t),null):(My.Game.gameErr("货币"+t+"数据为null"),null)}getItemQuality(t){return this.configMap.has(t)?this.configMap.get(t).quality:(My.Game.gameErr("未找到配置：>"+t),null)}getQualitySprite(t,e=0){return t<this.qualitys.length?this.qualitys[t].sprites[e]:this.qualitys[0].sprites[e]}getQualityColor(t){return t<this.qualitys.length?this.qualitys[t].color:this.qualitys[0].color}getQualityString(t){switch(t){case y.破损:return"I";case y.修复:return"II";case y.完好:return"III";case y.改进:return"IV";case y.精品:return"V";case y.杰作:return"VI";default:return"I"}}async getItemIcon(t){if(!this.iconMap.has(t)){let e=Tool.CommonUtil.ParseImageStr(t),a=e+"/"+t+"_icon/spriteFrame",i=await My.Res.loadBundleRes("items",a,o);if(null==i)return this.defaultSprite;this.iconMap.set(t,i),My.Res.releaseBundleRes("items",e+"/"+t+"_icon",o)}return this.iconMap.get(t)}async getItemSlot(t){if(!this.slotMap.has(t)){let e=Tool.CommonUtil.ParseImageStr(t),a=e+"/"+t+"_slot/spriteFrame",i=await My.Res.loadBundleRes("items",a,o);if(null==i)return this.defaultSprite;this.slotMap.set(t,i),My.Res.releaseBundleRes("items",e+"/"+t+"_slot",o)}return this.slotMap.get(t)}async getItemSkin(t){if(!this.skinMap.has(t)){let e=Tool.CommonUtil.ParseImageStr(t),a=e+"/"+t+"_skin/spriteFrame",i=await My.Res.loadBundleRes("items",a,o);if(null==i)return this.defaultSprite;this.skinMap.set(t,i),My.Res.releaseBundleRes("items",e+"/"+t+"_skin",o)}return this.skinMap.get(t)}async getItemShadown(t){if(!this.shadownMap.has(t)){let e=Tool.CommonUtil.ParseImageStr(t),a=e+"/"+t+"_shadow/spriteFrame",i=await My.Res.loadBundleRes("items",a,o);if(null==i)return this.defaultSprite;this.shadownMap.set(t,i),My.Res.releaseBundleRes("items",e+"/"+t+"_shadow",o)}return this.shadownMap.get(t)}static getItemTags(t){let e=[],a=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("equip_words_appear_quality"),";");if(Tool.ArrayUtil.HasItem(a,t.quality)&&(t.type==d.武器||t.type==d.防具)){let a,i=My.Setting.getRandomTagCount();switch(t.type){case d.武器:a=this.Instance.tagMap.get(f.武器词条);break;case d.防具:switch(t.kind){case p.头盔:a=this.Instance.tagMap.get(f.头盔词条);break;case p.护具:a=this.Instance.tagMap.get(f.防弹衣词条);break;case p.背包:a=this.Instance.tagMap.get(f.背包词条)}}for(let t=0;t<i;t++){let t=Tool.ArrayUtil.RandomValueInArray(a);Tool.ArrayUtil.HasItem(e,t)&&(t=Tool.ArrayUtil.RandomValueInArray(a)),e.push(t)}My.Game.gameSign("物品标签：",e)}return e}static getAmmoByType(t){return this.Instance.zidanMap.get(t)}static getRandomEquip(t,e){let a;switch(t){case d.武器:for(a=Tool.ArrayUtil.RandomValueInArray(this.Instance.weaponPool);a.kind>5;)a=Tool.ArrayUtil.RandomValueInArray(this.Instance.weaponPool);break;case d.防具:switch(e){case p.头盔:a=Tool.ArrayUtil.RandomValueInArray(this.Instance.helmetPool);break;case p.护具:a=Tool.ArrayUtil.RandomValueInArray(this.Instance.armorPool);break;case p.背包:a=Tool.ArrayUtil.RandomValueInArray(this.Instance.bagPool)}}return Tool.CommonUtil.CreateInfo(a,1,I.装备)}static getRandomAmmo(t,e){let a=[],i=[];switch(t){case 1:a=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc1_ammoNum"),";"),i=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc1_ammoQua"),";");break;case 2:a=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc2_ammoNum"),";"),i=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc2_ammoQua"),";");break;case 3:a=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc3_ammoNum"),";"),i=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc3_ammoQua"),";");break;case 4:a=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc4_ammoNum"),";"),i=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_npc4_ammoQua"),";")}let o=[],n=this.Instance.zidanMap.get(e);n.forEach((t=>{t.quality>=i[0]&&t.quality<=i[1]&&o.push(t)}));let s=null;o.length>0?s=Tool.ArrayUtil.RandomValueInArray(o):(My.Game.gameErr(_[e]+"类型池内未包含指定品质"),s=n[0]);let l=Tool.MathUtil.randomInRange(a[0],a[1]);return Tool.CommonUtil.CreateInfo(s,l,I.装备)}static getGuideNpcEquip(t){let e=[null,null,null,null,null],a=My.Item.Instance.getItemConfig(t.weapon);e[0]=Tool.CommonUtil.CreateInfo(a,1,I.装备);let i=My.Item.Instance.getItemConfig(t.helmet);e[1]=Tool.CommonUtil.CreateInfo(i,1,I.装备);let o=My.Item.Instance.getItemConfig(t.armor);e[2]=Tool.CommonUtil.CreateInfo(o,1,I.装备);let n=My.Item.Instance.getItemConfig(t.pack);e[3]=Tool.CommonUtil.CreateInfo(n,1,I.装备);let s=Tool.StringUtil.stringToArrayNumber(t.ammo,";"),l=My.Item.Instance.getItemConfig(s[0]);return e[4]=Tool.CommonUtil.CreateInfo(l,s[1],I.装备),e}static getRandomNpcEquip(t){return[null,null,null,null,null]}static getRnadomResData(t,e=1){let a,i=0,o=[],n=[];switch(t){case U.物资箱:switch(e){case 1:a=C.物资箱Lv1;break;case 2:a=C.物资箱Lv2;break;case 3:a=C.物资箱Lv3;break;case 4:a=C.物资箱Lv4}n=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_tank_dropNum"),";"),i=Tool.MathUtil.randomInRange(n[0],n[1]);break;case U.武器箱:switch(e){case 1:a=C.武器箱Lv1;break;case 2:a=C.武器箱Lv2;break;case 3:a=C.武器箱Lv3;break;case 4:a=C.武器箱Lv4}n=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_weponbox_dropNum"),";"),i=Tool.MathUtil.randomInRange(n[0],n[1]);break;case U.医药箱:switch(e){case 1:a=C.医药箱Lv1;break;case 2:a=C.医药箱Lv2;break;case 3:a=C.医药箱Lv3}n=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_medic_dropNum"),";"),i=Tool.MathUtil.randomInRange(n[0],n[1]);break;case U.保险箱:a=C.保险箱,n=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_safe_dropNum"),";"),i=Tool.MathUtil.randomInRange(n[0],n[1]);break;case U.空投箱:a=C.保险箱,n=Tool.StringUtil.stringToArrayNumber(My.Setting.getData("normal_airdrop_dropNum"),";"),i=Tool.MathUtil.randomInRange(n[0],n[1]);break;case U.盒子:}if(i>0)if(this.Instance.diaoluoMap.has(a)){let t=this.Instance.diaoluoMap.get(a),e=this.Instance.weightMap.get(a);for(let a=0;a<i;a++){let a=Tool.MathUtil.randomByWeight(e),i=Tool.CommonUtil.WuziItemInfo(this.Instance.getItemConfig(t[a].id));o.push(i)}}else My.Game.gameErr(C[a]+"类型掉落物资池为null");return o}static getRandomZawuData(t){return[]}}).Instance=null,ut.weaponPool_Min=0,ut.helmetPool_Min=0,ut.armorPool_Min=0,ut.bagPool_Min=0,X=e((Y=ut).prototype,"wuqiJson",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(Y.prototype,"fangjuJson",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(Y.prototype,"peijianJson",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=e(Y.prototype,"yaopinJson",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e(Y.prototype,"zidanJson",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(Y.prototype,"touzhiJson",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),at=e(Y.prototype,"zawuJson",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(Y.prototype,"baoxiangJson",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=e(Y.prototype,"tagJson",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=e(Y.prototype,"diaoluoJson",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e(Y.prototype,"huobiJson",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lt=e(Y.prototype,"qualitys",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),rt=e(Y.prototype,"defaultSprite",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=Y))||W));i._RF.pop()}}}));

System.register("chunks:///_virtual/GameMessage.ts",["./rollupPluginModLoBabelHelpers.js","cc","./DetailItem.ts","./MessageItem.ts","./TipsItem.ts","./ToastItem.ts"],(function(t){"use strict";var e,i,s,a,n,l,o,r,p,u,c,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,a=t.Prefab,n=t.Node,l=t._decorator,o=t.Component,r=t.instantiate},function(t){p=t.DetailItem},function(t){u=t.MessageItem},function(t){c=t.TipsItem},function(t){h=t.ToastItem}],execute:function(){var m,d,g,f,I,y,b,M,w,N,D,T,z,v;s._RF.push({},"1f968G2M+dErYd2uVeKB4Wt","GameMessage",void 0);const{ccclass:G,property:P}=l;t("GameMessage",(m=G("GameMessage"),d=P({type:u,displayName:"消息提示"}),g=P({type:h,displayName:"操作提示"}),f=P({type:c,displayName:"其他提示"}),I=P({type:a,displayName:"标签详情"}),y=P({type:n,displayName:"标签详情池"}),m(((v=class t extends o{constructor(...t){super(...t),i(this,"message",w,this),i(this,"toast",N,this),i(this,"tips",D,this),i(this,"detail",T,this),i(this,"detailNode",z,this),this.detailItems=[],this.detailMap=new Map}onLoad(){t.Instance=this,this.message.init(),this.toast.init(),this.tips.init()}static showMessage(t){this.Instance.message.show(t)}static showToast(t){this.Instance.toast.show(t)}static showTips(t){this.Instance.tips.show(t)}static showDetail(t,e){this.Instance.getDetailItem(t).show(t,e)}getDetailItem(t){if(this.detailMap.has(t))return this.detailMap.get(t);if(this.detailItems.length>0){let e=this.detailItems[0];return this.detailMap.set(t,e),Tool.ArrayUtil.RemoveItem(this.detailItems,e),e}{let e=r(this.detail);e.setParent(this.detailNode);let i=e.getComponent(p);return this.detailMap.set(t,i),i.init((()=>{this.detailMap.delete(t),this.detailItems.push(i)})),i}}}).Instance=null,w=e((M=v).prototype,"message",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(M.prototype,"toast",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(M.prototype,"tips",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(M.prototype,"detail",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(M.prototype,"detailNode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=M))||b));s._RF.pop()}}}));

System.register("chunks:///_virtual/GameMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./ViewBase.ts","./GameCamera.ts","./ChannelID.ts","./UIDefine.ts","./GuideDefine.ts"],(function(e){"use strict";var a,t,n,s,i,y,r,o,l,c,M,d,m,h,u,p,g;return{setters:[function(e){a=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e._decorator,i=e.Component,y=e.PhysicsSystem2D,r=e.game,o=e.Game},function(e){l=e.CheatData,c=e.GameParam,M=e.GameState,d=e.GameScene},function(e){m=e.ViewType},function(e){h=e.CameraState},function(e){u=e.default},function(e){p=e.PopupType},function(e){g=e.GuideStep}],execute:function(){var w,I,v,D,f,b,E,_,S,V,P,U,G,k,C,T;n._RF.push({},"6d859QqGxJOWZRjbeuZIgXl","GameMgr",void 0);const{ccclass:N,property:R}=s;e("GameMgr",(w=N("GameMgr"),I=R({type:l,displayName:"作弊器"}),v=R({displayName:"显示激励弹窗"}),D=R({displayName:"显示装备"}),f=R({displayName:"显示输出"}),b=R({displayName:"资源加载时间"}),E=R({displayName:"版本代码"}),w(((T=class e extends i{constructor(...e){super(...e),t(this,"cheat",V,this),t(this,"isPopup",P,this),t(this,"isShow",U,this),t(this,"isDebug",G,this),t(this,"loadTime",k,this),t(this,"version",C,this),this.paused=!1,this.loaded=!1,this.loadedCount=0,this.timerEvents=[]}static get cheat(){return this.Instance.cheat}static compareState(e){return this.state==e}static get scene(){return this.state==M.Play?d.对局:d.主页}static compareScene(e){switch(e){case d.主页:return!(this.state==M.Play);case d.对局:return this.state==M.Play;default:return!1}}onLoad(){e.Instance=this,y.instance.enable=!0,My.Res.loadBundleAll(),My.Game.param.init(),r.frameRate=61}start(){this.gameInit(),r.on(o.EVENT_HIDE,this.gameSave,this)}gameInit(){this.loaded=!1,this.loadedCount=0,this.isShow=!0,My.Game.state=M.Load,My.Camera.Instance.changeState(h.主界面),this.cheat.enabled?My.UI.Instance.showView(m.工具视图):this.cheat.Disabled(),window.sdk&&window.platform==u.TT&&(this.isPopup=!0),My.Event.emit(My.events.update_loading),My.UI.Instance.showView(m.渐变视图),My.UI.Instance.showView(m.加载视图),My.UI.Instance.hideView(m.渐变视图),My.Event.on(My.events.game_loaded,this.gameEnter,this),My.Event.emit(My.events.game_load)}gameEnter(){this.gameTimer(),My.Game.gameSign("初始化完成!"),My.Sound.playLoop(My.sounds.game_bgm),My.Event.emit(My.events.update_progress,1),My.Event.off(My.events.game_loaded,this.gameEnter,this),My.UI.Instance.fadeView((()=>{My.UI.Instance.showView(m.主页视图),My.UI.Instance.hideView(m.加载视图),My.Game.state=M.Menu,My.Daily.checkState(),My.Camera.Instance.changeState(h.主界面),window.sdk&&((window.platform==u.VIVO||window.platform==u.TEST)&&window.sdk.deeplink?window.sdk.showRewardNode("beat"):window.sdk.changeState(1))}),(()=>{My.Guide.guideCheck(g.整备引导)})),this.scheduleOnce((()=>{My.Res.removeBundle("map")}),3)}gameMenu(e){My.Data.savePackData(),My.Game.state=M.Fade,My.UI.Instance.fadeView((()=>{let e=[0];e.push(My.Play.data.resulted?1:0),e.push(My.Play.data.values),e.push(My.Play.data.kills),e.push(My.Play.data.boxes),My.Archive.Instance.add_Data(e),My.Play.Instance.unload(),My.Game.state=M.Menu,My.Event.emit(My.events.play_unload),My.UI.Instance.hideView(m.暂停视图),My.UI.Instance.hideView(m.结算视图),My.UI.Instance.hideView(m.游戏视图),My.UI.Instance.hideView(m.交互视图),My.UI.Instance.showView(m.主页视图),My.Camera.Instance.changeState(h.主界面),window.sdk&&((window.platform==u.VIVO||window.platform==u.TEST)&&window.sdk.deeplink?window.sdk.showRewardNode("beat"):window.sdk.changeState(1))}),(()=>{e&&e(),My.Guide.guideCheck(g.出售引导),My.Archive.Instance.check_Lv()}))}gameLoad(){let e=()=>{My.Event.emit(My.events.update_loading,My.Map.Instance.get_SelectedName()),My.Game.state=M.Fade,My.UI.Instance.fadeView((()=>{My.Play.Instance.load(),My.UI.Instance.hideView(m.主页视图),My.UI.Instance.hideView(m.关卡视图),My.UI.Instance.showView(m.加载视图),My.UI.Instance.showView(m.游戏视图),My.UI.Instance.showView(m.交互视图),My.Event.on(My.events.game_loaded,this.gameStart,this)}))};if(My.Pack.Instance.canPlay())if(My.Map.Instance.compareEquipValue(My.Pack.packInfo.equipment_Value))e();else{let a={desc:"你的战备低于建议值，极有可能遭遇挫败\n你确定要进入战场吗?",confirm:"进入战场",cancelCall:null,confirmCall:e};My.UI.Instance.showPopup(p.询问弹窗,a)}else{let e={desc:"背包中有变卖物存在，全部取出后\n才能进入战局",confirm:"一键出售",cancelCall:null,confirmCall:()=>{My.Pack.Instance.sellAll()}};My.UI.Instance.showPopup(p.询问弹窗,e)}}gameStart(){My.Event.off(My.events.game_loaded,this.gameStart,this),My.Game.state=M.Play,My.Event.emit(My.events.play_init),My.Camera.Instance.changeState(h.自动跟随),My.UI.Instance.hideView(m.加载视图,(()=>{My.Guide.guideCheck(g.对局引导),My.Sound.playSfx(My.sounds.player_spawn),My.Event.emit(My.events.play_start),My.Data.playerData.mechaState=0,My.Data.savePlayerData(),My.Game.gameSign("对局开始!")}))}gameOver(e){My.Game.state=M.Over,My.Play.data.resulted=e,My.Event.emit(My.events.play_ended),My.Event.emit(My.events.pop_hide_all),My.Camera.Instance.changeState(h.禁止跟随),My.UI.Instance.hideView(m.游戏视图),My.UI.Instance.hideView(m.交互视图),My.UI.Instance.hideView(m.地图视图),My.UI.Instance.hideView(m.背包视图),My.UI.Instance.hideView(m.属性视图),My.UI.Instance.showView(m.结算视图)}gameSave(){My.Game.gameSign("后台/退出保存"),My.Data.savePlayerData()}gameBought(e,a=1){switch(a){case 1:return!!this.cheat.cheat_momeny||My.Data.money>=e&&(My.Data.money-=e,My.Event.emit(My.events.update_money),!0);case 2:return My.Data.playerData.badge>=e&&(My.Data.playerData.badge-=e,My.Event.emit(My.events.update_badge),!0);case 5:return My.Data.playerData.frags>=e&&(My.Data.playerData.frags-=e,My.Event.emit(My.events.update_frags),!0);default:return!1}}static gameGot(e,a){switch(My.Game.gameSign("获得货币"+e+" *"+a),e){case 1:My.Data.playerData.money+=a,My.Event.emit(My.events.update_money);break;case 2:My.Data.playerData.badge+=a,My.Event.emit(My.events.update_badge);break;case 3:My.Data.playerData.gen+=a,My.Event.emit(My.events.update_gen);break;case 4:My.Data.playerData.battery+=a,My.Event.emit(My.events.update_battery);break;case 5:My.Data.playerData.frags+=a,My.Event.emit(My.events.update_frags)}My.Data.savePlayerData()}gameTimer(){this.schedule((()=>{My.Data.playerData.gameTime+=1;const e=My.Data.playerData.gameTime,a=Math.floor(e/3600),t=Math.floor((e-3600*a)/60),n=e%60;if(this.timerEvents.forEach((e=>{e.string=a+"时"+t+"分"+n+"秒"})),My.Data.playerData.gameTime%360==0){let e=Math.floor(My.Data.playerData.gameTime/360)-My.Data.playerData.charges;e>0&&My.Data.playerData.charges<10&&(e+My.Data.playerData.charges>10&&(e=10-My.Data.playerData.charges),My.Data.playerData.charges+=e,My.Data.playerData.battery+=e,My.Event.emit(My.events.update_battery),My.Event.emit(My.events.update_charge_state),My.Data.savePlayerData())}My.Data.playerData.gameTime%10==0&&My.Daily.checkState()}),1)}static timeEvent(e,a){if(a){this.Instance.timerEvents.push(e);const a=My.Data.playerData.gameTime,t=Math.floor(a/3600),n=Math.floor((a-3600*t)/60),s=a%60;e.string=t+"时"+n+"分"+s+"秒"}else Tool.ArrayUtil.RemoveItem(this.Instance.timerEvents,e)}static gameLog(...e){this.Instance.isDebug&&console.log(...e)}static gameWarn(...e){this.Instance.isDebug&&console.warn(...e)}static gameSign(...e){this.Instance.isDebug&&console.warn(...e)}static gameErr(...e){this.Instance.isDebug&&console.error(...e)}loadedEvent(){this.loaded||(this.loadedCount+=1,My.Event.emit(My.events.update_progress),this.loadedCount>=6&&(this.loaded=!0,this.scheduleOnce((()=>{My.Event.emit(My.events.game_loaded)}),this.loadTime)))}}).Instance=null,T.param=new c,T.state=M.Load,V=a((S=T).prototype,"cheat",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new l}}),P=a(S.prototype,"isPopup",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),U=a(S.prototype,"isShow",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),G=a(S.prototype,"isDebug",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),k=a(S.prototype,"loadTime",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),C=a(S.prototype,"version",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Beta"}}),_=S))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/GamePlay.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./DiscardItem.ts","./DamageEffect.ts","./MapDefine.ts"],(function(e){"use strict";var t,a,s,n,i,o,r,l,y,c,m,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.JsonAsset,i=e._decorator,o=e.Component,r=e.SpriteFrame},function(e){l=e.PlayPrefab,y=e.PlayData},function(e){c=e.DiscardItem},function(e){m=e.DamageEffect},function(e){h=e.BoxType}],execute:function(){var p,M,d,u,g,I,_,b,f,v;s._RF.push({},"9601fWFqlhMPY7MDTuXBxhO","GamePlay",void 0);const{ccclass:P,property:k}=i;e("GamePlay",(p=P("GamePlay"),M=k({displayName:"动态渲染"}),d=k({type:n,displayName:"物资配置文件"}),u=k({type:l,displayName:"对局预制"}),p(((v=class e extends o{constructor(...e){super(...e),a(this,"rendering",_,this),a(this,"boxJson",b,this),a(this,"prefabs",f,this),this.data=new y,this.boxMap=new Map,this.nearbyItems=[],this.boxItem=null,this.poolItems=[]}static get prefabs(){return this.Instance.prefabs}static get data(){return this.Instance.data}onLoad(){e.Instance=this,this.loadData(),My.Event.on(My.events.play_ended,this.ended,this),My.Event.on(My.events.play_start,this.started,this),My.Event.on(My.events.play_exittimer,this.exitTimer,this),My.Event.on(My.events.play_rewarded_ammo,this.rewarded_Ammo,this)}loadData(){let e=this.boxJson.json.config;this.boxMap.clear(),e.forEach((e=>{this.boxMap.set(e.id,e.content)}))}load(){this.data.reset(),this.poolItems=[],this.nearbyItems=[],My.Map.Instance.load_Map(),My.Player.Instance.load(),My.Pack.Instance.update_PackValue(),My.Pack.Instance.update_LockValue(),My.Pack.Instance.update_Weight(!0),My.Pack.Instance.update_PlayerValue(!0),My.Event.emit(My.events.update_kills),My.Event.emit(My.events.update_medical_all),My.Event.emit(My.events.update_thrown_all),this.schedule((()=>{this.data.timing(),My.Event.emit(My.events.game_renderer)}),1)}unload(){this.unscheduleAllCallbacks(),this.poolItems.forEach((e=>{e.recycle()})),this.data.reset(),My.Player.Instance.unload(),My.Map.Instance.load_Map(-1),My.Nav.Instance.sign_Clear(),My.Pack.Instance.update_weightTotal(),My.Game.gameSign("对局结束，资源回收x"+this.poolItems.length)}started(){My.Event.emit(My.events.update_equip)}ended(){this.unscheduleAllCallbacks()}exited(){My.Player.Instance.unload(),My.Game.Instance.gameOver(!0)}exitTimer(){My.Msg.showMessage(this.data.remaining())}getBoxData(e){let t=[];if(this.boxMap.has(e)){Tool.StringUtil.stringToArrayNumber(this.boxMap.get(e),";").forEach((e=>{let a=Tool.CommonUtil.WuziItemInfo(My.Item.Instance.getItemConfig(e));t.push(a)}))}return t}async getBoxSprite(e,t,a){let s="";switch(e){case h.物资箱:s+="res_"+t+"_",s+=1==a?"on":"off";break;case h.武器箱:s+="weapon_"+t+"_",s+=1==a?"on":"off";break;case h.医药箱:s+="medical_"+t+"_",s+=1==a?"on":"off";break;case h.保险箱:s+="lock_1_",s+=1==a?"on":"off";break;case h.空投箱:s+="drop_1_",s+=1==a?"on":"off";break;case h.盒子:s+="dead_1"}return await My.Res.loadBundleRes("boxes",s+"/spriteFrame",r)}item_Discard(e,t,a){if(t<=0)return void My.Game.gameErr("对局>物资丢弃>数量<=0");let s=Tool.MathUtil.randomOnCircle(a,30),n=My.Pool.getNode(this.prefabs.discard,My.Map.mapData.resNode,s).getComponent(c);n.init(e,t),this.poolItems.push(n),this.scheduleOnce((()=>{My.Event.emit(My.events.update_ressorting)}),.1)}item_Pickup(e){let t=e.info;My.Pack.Instance.pack_EnoughByCount([[t.config,t.count]])?(Tool.ArrayUtil.RemoveItem(this.nearbyItems,e),Tool.ArrayUtil.RemoveItem(this.poolItems,e),My.Pack.Instance.pickupItem(t),My.Event.emit(My.events.update_nearby),My.Msg.showMessage(My.msgcode.拾取成功),e.recycle()):My.Msg.showMessage(My.msgcode.背包空间不足)}nearbyItem_Push(e){this.nearbyItems.push(e),My.Event.emit(My.events.play_items,this.nearbyItems)}nearbyItem_Remove(e){Tool.ArrayUtil.RemoveItem(this.nearbyItems,e),My.Event.emit(My.events.play_items,this.nearbyItems)}boxItem_Push(e){this.boxItem=e,My.Event.emit(My.events.play_box,!0)}boxItem_Pickup(e){null!=this.boxItem?My.Pack.Instance.pack_EnoughByCount([[e.config,e.count]])?(My.Pack.Instance.pickupItem(e),this.boxItem.pickup(e),My.Event.emit(My.events.update_boxes),My.Msg.showMessage(My.msgcode.拾取成功)):My.Msg.showMessage(My.msgcode.背包空间不足):My.Game.gameErr("物资箱子>资源箱数据为null")}boxItem_Remove(e){this.boxItem=null,My.Event.emit(My.events.play_box,!1)}poolItem_Push(e){this.poolItems.push(e)}poolItem_Remove(e){Tool.ArrayUtil.RemoveItem(this.poolItems,e)}rewarded_Ammo(e){this.data.rewardedAmmo=e}rewarded_Weights(){this.data.rewardedWeight+=My.Pack.Instance.getPlayerWeights(),My.Pack.Instance.update_weightTotal()}static addKills(e){this.data.kills+=e,My.Event.emit(My.events.update_kills),My.Msg.showToast("击败 "+this.data.kills)}static showDamage(e,t,a){My.Pool.getNode(My.Play.prefabs.hitDamage,null,a).getComponent(m).show(e,t)}}).Instance=null,_=t((I=v).prototype,"rendering",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),b=t(I.prototype,"boxJson",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(I.prototype,"prefabs",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new l}}),g=I))||g));s._RF.pop()}}}));

System.register("chunks:///_virtual/GamePool.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,o,s,n,a,i,l,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Node,a=e._decorator,i=e.Component,l=e.NodePool,c=e.instantiate}],execute:function(){var r,p,u,d,h,m;s._RF.push({},"7cf99HKm4pPTIRLHfSXjEvL","GamePool",void 0);const{ccclass:f,property:I}=a;e("GamePool",(r=f("GamePool"),p=I({type:n,displayName:"对象池节点"}),r(((m=class e extends i{constructor(...e){super(...e),o(this,"poolNode",h,this),this.pools=new Map}onLoad(){e.Instance=this}static get poolNode(){return this.Instance.poolNode}static getNode(e,t,o){let s;if(this.Instance.pools.has(e.name)){let t=this.Instance.pools.get(e.name);s=t.size()<=0?c(e):t.get()}else{let t=new l;this.Instance.pools.set(e.name,t),s=c(e)}return t?s.setParent(t):s.setParent(this.Instance.poolNode),o&&s.setPosition(o),s}static putNode(e){if(!this.Instance.pools.has(e.name)){let t=new l;this.Instance.pools.set(e.name,t)}this.Instance.pools.get(e.name).put(e)}}).Instance=null,h=t((d=m).prototype,"poolNode",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=d))||u));s._RF.pop()}}}));

System.register("chunks:///_virtual/GameRes.ts",["cc"],(function(e){"use strict";var n,a,t,l,s,d,o;return{setters:[function(e){n=e.cclegacy,a=e._decorator,t=e.assetManager,l=e.resources,s=e.SpriteFrame,d=e.AudioClip,o=e.Prefab}],execute:function(){var r,u;n._RF.push({},"e56958nBS9PwYxJrKtBWUKc","GameRes",void 0);const{ccclass:c,property:i}=a;e("GameRes",c("GameRes")(((u=class e{static get Instance(){return null==this._instance&&(this._instance=new e),this._instance}static removeBundle(e){let n=t.getBundle(e);t.removeBundle(n)}static loadBundleAll(){t.loadBundle("sound",((e,n)=>{My.Game.Instance.loadedEvent()})),t.loadBundle("image",((e,n)=>{My.Game.Instance.loadedEvent()})),t.loadBundle("enemy",((e,n)=>{My.Game.Instance.loadedEvent()})),t.loadBundle("items",((e,n)=>{My.Game.Instance.loadedEvent()})),t.loadBundle("map",((e,n)=>{My.Game.Instance.loadedEvent()})),t.loadBundle("boxes",((e,n)=>{My.Game.Instance.loadedEvent()}))}static loadBundleRes(e,n,a){return new Promise((l=>{let s=t.getBundle(e);s?s.load(n,a,((e,n)=>{l(e?null:n)})):t.loadBundle(e,((e,t)=>{e?l(null):(s=t,s.load(n,a,((e,n)=>{l(e?null:n)})))}))}))}static releaseBundleRes(e,n,a){let l=t.getBundle(e);l&&l.release(n,a)}static loadSpriteFrame(e){return new Promise((n=>{l.load(e,s,((e,a)=>{n(e?null:a)}))}))}static loadAudioClip(e){return new Promise((n=>{l.load(e,d,((e,a)=>{n(e?null:a)}))}))}static loadPrefab(e){return new Promise((n=>{l.load(e,o,((e,a)=>{n(e?null:a)}))}))}})._instance=null,r=u))||r);n._RF.pop()}}}));

System.register("chunks:///_virtual/GameSetting.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CommonDefine.ts"],(function(t){"use strict";var e,i,n,a,o,s,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.JsonAsset,o=t._decorator,s=t.Component},function(t){l=t.SkillConfig}],execute:function(){var r,c,u,g,h,p,m,d,f,y;n._RF.push({},"123d8bQ/OFPYbUl/g8Wh0rb","GameSetting",void 0);const{ccclass:M,property:b}=o;t("GameSetting",(r=M("GameSetting"),c=b({type:a,displayName:"设定配置文件"}),u=b({type:a,displayName:"名字配置文件"}),g=b({type:a,displayName:"技能配置文件"}),r(((y=class t extends s{constructor(...t){super(...t),i(this,"settingJson",m,this),i(this,"nameJson",d,this),i(this,"skillJson",f,this),this.dataMap=new Map,this.namePool=[],this.skillMap=new Map}onLoad(){t.Instance=this,this.load_SettingConfig(),this.load_SkillConfig(),this.load_NameConfig()}load_SettingConfig(){this.settingJson.json.config.forEach((t=>{this.dataMap.set(t.id,t.value)})),My.Game.gameLog("游戏设定配置",this.dataMap)}load_SkillConfig(){this.skillMap.clear(),this.skillJson.json.config.forEach((t=>{let e=new l;e.id=t.id,e.name=t.name,e.cd=t.cd,e.value=t.value,this.skillMap.set(t.id,e)})),My.Game.gameLog("技能配置",this.skillMap)}load_NameConfig(){this.namePool=[],this.nameJson.json.config.forEach((t=>{this.namePool.push(t)}))}static getData(t){let e=this.Instance.dataMap.get(t);return null==e&&My.Game.gameErr("未找到["+t+"]设定数据"),e}static getRandomName(){return Tool.ArrayUtil.RandomValueInArray(this.Instance.namePool)}static getRandomTagCount(){let t=[];Tool.StringUtil.stringToArray(this.Instance.dataMap.get("equip_words_count_weight"),";").forEach((e=>{let i=Tool.StringUtil.stringToArrayNumber(e,",");t.push([i[0],i[1]])}));let e=[];return t.forEach((t=>{e.push(t[1])})),t[Tool.MathUtil.randomByWeight(e)][0]}static getSkillConfig(t){return this.Instance.skillMap.has(t)?this.Instance.skillMap.get(t):(My.Game.gameErr("未找到技能数据>"+t),null)}}).Instance=null,m=e((p=y).prototype,"settingJson",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(p.prototype,"nameJson",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(p.prototype,"skillJson",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=p))||h));n._RF.pop()}}}));

System.register("chunks:///_virtual/GameSound.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var a,t,i,o,s,n,c;return{setters:[function(e){a=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.AudioSource,s=e._decorator,n=e.Component,c=e.AudioClip}],execute:function(){var u,_,p,r,l,h,m,d;i._RF.push({},"3023clhqINAFI4DFEcSnz9B","GameSound",void 0);const{ccclass:y,property:g}=s;e("GameSound",(u=y("GameSound"),_=g({type:o,displayName:"循环播放器"}),p=g({type:[o],displayName:"音效播放器"}),u(((d=class e extends n{constructor(...e){super(...e),t(this,"audio_Back",h,this),t(this,"audio_Sfx",m,this),this.clipMap=new Map,this.sfxIndex=0}onLoad(){e.Instance=this}static async playLoop(a,t=1){let i=await e.getAudioClip(a);this.Instance.audio_Back.stop(),this.Instance.audio_Back.clip=i,this.Instance.audio_Back.loop=!0,this.Instance.audio_Back.volume=t,this.Instance.audio_Back.play()}static async pauseLoop(){this.Instance.audio_Back.pause()}static async stopLoop(){this.Instance.audio_Back.stop()}static async playSfx(e,a=1){let t=await this.getAudioClip(e);null!=t&&this.Instance.getSfxSource().playOneShot(t,a)}getSfxSource(){let e=this.audio_Sfx[this.sfxIndex];return this.sfxIndex=(this.sfxIndex+1)%this.audio_Sfx.length,e}static async getAudioClip(e){if(!this.Instance.clipMap.get(e)){let a=await My.Res.loadBundleRes("sound",e,c);if(null==a)return My.Game.gameErr("音效>"+e+">null"),null;this.Instance.clipMap.set(e,a)}return this.Instance.clipMap.get(e)}}).Instance=null,h=a((l=d).prototype,"audio_Back",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=a(l.prototype,"audio_Sfx",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r=l))||r));class f{}e("Sounds",f),f.game_bgm="game/game_bgm",f.game_hit_player="game/game_hit_player",f.game_hit_common="game/game_hit_common",f.ui_click_common="ui/ui_click_common",f.ui_click_start="ui/ui_click_start",f.ui_view_market="ui/ui_view_market",f.ui_view_whs="ui/ui_view_whs",f.ui_pop_got="ui/ui_pop_got",f.ui_pop_item="ui/ui_pop_item",f.ui_other_equip="ui/ui_other_equip",f.ui_other_stored="ui/ui_other_stored",f.ui_other_scan="ui/ui_other_scan",f.weapon_reload="weapon/weapon_reload",f.weapon_shoot="weapon/weapon_",f.medical_type="medical/medical_type",f.thrown_type="thrown/thrown_type",f.player_spawn="player/player_spawn",f.player_sousuo="player/player_sousuo",f.player_death="player/player_death",f.player_kaisuo="player/player_kaisuo",f.mecha_move="mecha/mecha_move",f.mecha_fly="mecha/mecha_fly",f.mecha_death="mecha/mecha_death",f.mecha_restore="mecha/mecha_restore",i._RF.pop()}}}));

System.register("chunks:///_virtual/GameUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts","./PopupBase.ts","./UIDefine.ts"],(function(e){"use strict";var t,i,s,a,n,o,p,r,w,c,h,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,a=e.Node,n=e._decorator,o=e.Component,p=e.instantiate},function(e){r=e.ViewBase,w=e.ViewType},function(e){c=e.PopupBase},function(e){h=e.UIPrefabs,l=e.PopupType}],execute:function(){var u,d,k,b,g,f,y,m,M,v,P,I,S,V,U,G;s._RF.push({},"8ca7bGkH8lIlL2mELEiKzAA","GameUI",void 0);const{ccclass:z,property:N}=n;e("GameUI",(u=z("GameUI"),d=N({type:h,displayName:"UI预制"}),k=N({type:[r],displayName:"游戏视图"}),b=N({type:[c],displayName:"游戏弹窗"}),g=N({type:a,displayName:"视图节点"}),f=N({type:a,displayName:"弹窗节点"}),y=N({type:a,displayName:"顶层节点"}),u(((G=class e extends o{constructor(...e){super(...e),i(this,"prefabs",v,this),i(this,"views",P,this),i(this,"popups",I,this),i(this,"contentView",S,this),i(this,"contentPop",V,this),i(this,"contentTop",U,this),this.viewMap=new Map,this.popupMap=new Map}onLoad(){e.Instance=this,this.init()}init(){this.views.forEach((e=>{e.init(),this.viewMap.set(e.type,e)})),this.popups.forEach((e=>{e.init(),this.popupMap.set(e.type,e)})),this.prefabs.check()}createView(e){let t=null;switch(e){case w.工具视图:t=p(this.prefabs.view_Cheat),t.setParent(this.contentTop)}if(null==t)return;let i=t.getComponent(r);return i?(i.init(),this.viewMap.set(i.type,i),i):null}showView(e,t){if(this.viewMap.has(e))this.viewMap.get(e).show(t),this.changeView(e);else{let i=this.createView(e);i?(i.show(t),this.changeView(e)):console.error("GameUI show "+w[e]+" is null")}}hideView(e,t){this.viewMap.has(e)?this.viewMap.get(e).hide(t):console.error("GameUI hide "+w[e]+" is null")}showing(e){return!!this.viewMap.has(e)&&this.viewMap.get(e).node.active}fadeView(e,t){this.viewMap.has(w.渐变视图)?this.viewMap.get(w.渐变视图).fade(e,t):console.error("GameUI fade is null")}createPopup(e){let t=p(this.prefabs.getPopup(e));if(null==t)return null;t.setParent(this.contentPop);let i=t.getComponent(c);return i?(i.init(),this.popupMap.set(i.type,i),i):null}showPopup(e,t){if(this.popupMap.has(e))this.popupMap.get(e).show(t);else{let i=this.createPopup(e);i?i.show(t):console.error("GameUI show "+l[e]+" is null")}}hidePopup(e,t=!1){this.popupMap.has(e)?(this.popupMap.get(e).hide(),t&&(this.popupMap.get(e).node.destroy(),this.popupMap.delete(e))):console.error("GameUI hide "+l[e]+" is null")}removePopup(e){this.popupMap.has(e)&&(this.popupMap.get(e).node.destroy(),this.popupMap.delete(e))}changeView(e){switch(e){case w.主页视图:break;case w.游戏视图:window.sdk&&window.sdk.changeState(2);break;case w.结算视图:window.sdk&&window.sdk.changeState(3);break;case w.暂停视图:window.sdk&&window.sdk.changeState(4);break;case w.战备视图:window.sdk&&window.sdk.changeState(5);break;case w.黑市视图:window.sdk&&window.sdk.changeState(6);break;case w.地图视图:window.sdk&&window.sdk.changeState(7);break;case w.关卡视图:window.sdk&&window.sdk.changeState(8);break;case w.每日视图:window.sdk&&window.sdk.changeState(9);break;case w.机甲视图:window.sdk&&window.sdk.changeState(10);break;case w.勘察视图:window.sdk&&window.sdk.changeState(11);break;case w.个性视图:window.sdk&&window.sdk.changeState(12);break;case w.抽奖视图:window.sdk&&window.sdk.changeState(13);break;case w.商店视图:window.sdk&&window.sdk.changeState(15)}}}).Instance=null,v=t((M=G).prototype,"prefabs",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new h}}),P=t(M.prototype,"views",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),I=t(M.prototype,"popups",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),S=t(M.prototype,"contentView",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(M.prototype,"contentPop",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(M.prototype,"contentTop",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=M))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/GameView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Hud_Equip.ts","./ViewBase.ts","./GameCamera.ts","./GameDefine.ts","./Joystick_Skill.ts","./FlashItem.ts"],(function(e){"use strict";var i,t,n,s,a,o,u,r,c,l,y,d,h,p;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,a=e._decorator,o=e.Vec2,u=e.game},function(e){r=e.Hud_Equip},function(e){c=e.ViewBase,l=e.ViewType},function(e){y=e.CameraState},function(e){d=e.Hud_Base},function(e){h=e.Joystick_Skill},function(e){p=e.FlashItem}],execute:function(){var m,w,M,f,_,g,I,b,k,v,V,S,U,C,N,P,z,D,E;n._RF.push({},"df9a428FqtN06TNhEpO+xCn","GameView",void 0);const{ccclass:G,property:H}=a;e("GameView",(m=G("GameView"),w=H({type:s,displayName:"HUD"}),M=H({type:s,displayName:"修狗HUD"}),f=H({type:s,displayName:"机甲HUD"}),_=H({type:s,displayName:"激励HUD"}),g=H({type:p,displayName:"闪光"}),I=H({type:[r],displayName:"装备"}),b=H({type:[d],displayName:"HUD对象"}),k=H({type:h,displayName:"技能摇杆"}),m((S=i((V=class extends c{constructor(...e){super(...e),t(this,"hud",S,this),t(this,"hud_Xiugou",U,this),t(this,"hud_Mecha",C,this),t(this,"hud_Reward",N,this),t(this,"falsh",P,this),t(this,"equips",z,this),t(this,"hudItems",D,this),t(this,"skillJoy",E,this)}init(){this.node.active=!1,this.hudItems.forEach((e=>{e.init()})),this.equips.forEach((e=>{e.init()})),this.falsh.init(),this.skillJoy.init()}show(e){this.hud_State(),this.hud.active=!0,this.node.active=!0,e&&e()}hide(e){My.Event.emit(My.events.play_movejoy,o.ZERO),My.Event.emit(My.events.play_shootjoy,!1,0),this.node.active=!1,e&&e()}hud_State(){let e=My.Play.data.mecha;this.hud_Reward.active=!My.Guide.guiding,this.hud_Xiugou.active=!e,this.hud_Mecha.active=e}onClick_Map(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.hideView(l.游戏视图),My.Camera.Instance.changeState(y.全景视野,(()=>{My.UI.Instance.showView(l.地图视图)}))}onClick_Pack(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(l.属性视图),My.UI.Instance.showView(l.背包视图),My.UI.Instance.hideView(l.游戏视图)}onClick_Pause(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.hideView(l.游戏视图),My.UI.Instance.showView(l.暂停视图)}onClick_CureReward(){u.pause(),window.sdk?window.sdk.openVideo((function(e){"success"==e?(u.resume(),My.Player.restore(),My.Msg.showMessage(My.msgcode.恢复生命)):"cancel"!=e&&"fail"!=e||u.resume()})):(u.resume(),My.Player.restore(),My.Msg.showMessage(My.msgcode.恢复生命))}onClick_ExitReward(){u.pause(),window.sdk?window.sdk.openVideo((function(e){"success"==e?(u.resume(),My.Player.Instance.unload(),My.Game.Instance.gameOver(!0)):"cancel"!=e&&"fail"!=e||u.resume()})):(u.resume(),My.Player.Instance.unload(),My.Game.Instance.gameOver(!0))}onClick_WeightReward(){u.pause(),window.sdk?window.sdk.openVideo((function(e){"success"==e?(u.resume(),My.Play.Instance.rewarded_Weights(),My.Msg.showMessage(My.msgcode.提升负重)):"cancel"!=e&&"fail"!=e||u.resume()})):(u.resume(),My.Play.Instance.rewarded_Weights(),My.Msg.showMessage(My.msgcode.提升负重))}}).prototype,"hud",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=i(V.prototype,"hud_Xiugou",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(V.prototype,"hud_Mecha",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=i(V.prototype,"hud_Reward",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=i(V.prototype,"falsh",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=i(V.prototype,"equips",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=i(V.prototype,"hudItems",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),E=i(V.prototype,"skillJoy",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=V))||v));n._RF.pop()}}}));

System.register("chunks:///_virtual/GotItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,a,r,l,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Sprite,r=e.Label,l=e._decorator,s=e.Component}],execute:function(){var o,u,c,p,m,y,g,b,h,d,f;n._RF.push({},"02905n3dGpPjpmmiE6KnD0V","GotItem",void 0);const{ccclass:I,property:L}=l;e("GotItem",(o=I("GotItem"),u=L({type:a,displayName:"品质"}),c=L({type:a,displayName:"图像"}),p=L({type:r,displayName:"数量"}),m=L({type:r,displayName:"名称"}),o((b=t((g=class extends s{constructor(...e){super(...e),i(this,"quality",b,this),i(this,"image",h,this),i(this,"countLabel",d,this),i(this,"nameLabel",f,this)}async show(e,t){let i;i=e>100&&e<1e4?My.Skin.getSkinConfig(e):My.Item.Instance.getItemConfig(e),i&&(this.quality.spriteFrame=My.Item.Instance.getQualitySprite(i.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(i.image),this.countLabel.string=t>=1e8?(t/1e8).toFixed(0)+"亿":t>=1e6?(t/1e3).toFixed(0)+"K":t.toString(),this.nameLabel.string=i.name),this.node.active=!0}hide(){this.node.active=!1,this.quality.spriteFrame=null,this.image.spriteFrame=null,this.countLabel.string="",this.nameLabel.string=""}}).prototype,"quality",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=t(g.prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(g.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(g.prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=g))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/GotPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./GotItem.ts","./PopupBase.ts"],(function(t){"use strict";var e,i,o,s,a,n,l,c,r,p,h,u,y,d,m,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.UIOpacity,a=t.Label,n=t.Node,l=t.Prefab,c=t._decorator,r=t.tween,p=t.Vec3,h=t.easing,u=t.director,y=t.instantiate},function(t){d=t.GameState},function(t){m=t.GotItem},function(t){b=t.PopupBase}],execute:function(){var g,f,N,v,P,w,G,C,L,M,_,z,S,I,D;o._RF.push({},"dbebegR7xJM96Z6Dh25tuQG","GotPopup",void 0);const{ccclass:k,property:x}=c;t("GotPopup",(g=k("GotPopup"),f=x({type:s,displayName:"透明度组件"}),N=x({type:a,displayName:"获得描述"}),v=x({type:n,displayName:"显示节点"}),P=x({type:n,displayName:"内容节点"}),w=x({type:n,displayName:"关闭节点"}),G=x({type:l,displayName:"物品预制"}),g((M=e((L=class extends b{constructor(...t){super(...t),i(this,"opacityCom",M,this),i(this,"descLabel",_,this),i(this,"gotNode",z,this),i(this,"content",S,this),i(this,"closeNode",I,this),i(this,"prefab",D,this),this.items=[]}init(){this.opacityCom.opacity=0,this.closeNode.active=!1,this.node.active=!1,this.descLabel.string="",My.Event.on(My.events.game_got,this.gotItems,this)}show(t){1!=this.node.active&&(My.Sound.playSfx(My.sounds.ui_pop_got),this.gotNode.setScale(1,0,1),this.closeNode.active=!1,this.opacityCom.opacity=0,this.node.active=!0,r(this.opacityCom).to(.25,{opacity:180}).start(),r(this.gotNode).to(.25,{scale:p.ONE},{easing:h.backOut}).call((()=>{this.closeNode.active=!0,My.Game.compareState(d.Play)&&u.pause()})).start())}hide(){My.Game.compareState(d.Play)?(u.resume(),this.closeNode.active=!1,this.descLabel.string="",this.node.active=!1):(this.closeNode.active=!1,r(this.opacityCom).to(.15,{opacity:0}).start(),r(this.gotNode).to(.15,{scale:new p(1,.6,1)},{easing:h.backIn}).call((()=>{this.descLabel.string="",this.node.active=!1})).start())}gotItems(t,e){if(t.length>this.items.length){let e=t.length-this.items.length;for(let t=0;t<e;t++){let t=y(this.prefab);t.setParent(this.content),this.items.push(t.getComponent(m))}}e&&(this.descLabel.string=e);for(let e=0;e<t.length;e++)this.items[e].show(t[e][0],t[e][1]);this.show()}onClick_Close(){this.hide(),this.items.forEach((t=>{t.hide()}))}}).prototype,"opacityCom",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(L.prototype,"descLabel",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(L.prototype,"gotNode",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(L.prototype,"content",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(L.prototype,"closeNode",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(L.prototype,"prefab",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=L))||C));o._RF.pop()}}}));

System.register("chunks:///_virtual/GrenadeEffect.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts","./GameDefine.ts","./HealthItem.ts","./SpaceAudio.ts"],(function(t){"use strict";var e,i,o,a,n,s,r,l,c,d,u,h,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,a=t.Animation,n=t.Node,s=t.CircleCollider2D,r=t._decorator,l=t.Contact2DType},function(t){c=t.PoolItem},function(t){d=t.GameTags,u=t.DamageType},function(t){h=t.HealthItem},function(t){f=t.SpaceAudio}],execute:function(){var p,m,g,y,C,N,E,b,T,D,v;o._RF.push({},"b8dfahDo19IVIJSEio8DfEj","GrenadeEffect",void 0);const{ccclass:I,property:_}=r;t("GrenadeEffect",(p=I("GrenadeEffect"),m=_({type:a,displayName:"动画"}),g=_({type:f,displayName:"音效"}),y=_({type:n,displayName:"效果"}),C=_({type:s,displayName:"触发器"}),p((b=e((E=class extends c{constructor(...t){super(...t),i(this,"animation",b,this),i(this,"audio",T,this),i(this,"effectNode",D,this),i(this,"collider",v,this),this.inited=void 0,this.damage=void 0,this.radius=void 0,this.targets=[]}init(t,e){this.targets=[],this.damage=t,this.radius=e/100,this.effectNode.setScale(this.radius,this.radius),this.collider.radius=e,this.collider.on(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(l.END_CONTACT,this.onEndContact,this),this.collider.apply(),this.animation&&this.animation.play(),this.audio&&this.audio.play()}recycle(){this.unscheduleAllCallbacks(),My.Pool.putNode(this.node)}damage_Event(){this.collider.off(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.off(l.END_CONTACT,this.onEndContact,this),this.targets.forEach((t=>{t.getComponent(h).hurt(Tool.CommonUtil.DamageParamInfo(this.damage,d.玩家,u.子弹),t.tag)}))}destory_Event(){My.Pool.putNode(this.node)}onBeginContact(t,e,i){e.tag!=d.NPC&&e.tag!=d.BOSS||this.targets.push(e)}onEndContact(t,e,i){e.tag!=d.NPC&&e.tag!=d.BOSS||Tool.ArrayUtil.RemoveItem(this.targets,e)}}).prototype,"animation",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(E.prototype,"audio",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(E.prototype,"effectNode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(E.prototype,"collider",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=E))||N));o._RF.pop()}}}));

System.register("chunks:///_virtual/GuideArrow.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,r,i,o,n,s,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Node,n=t._decorator,s=t.Component,a=t.Vec3}],execute:function(){var c,l,u,d,p;i._RF.push({},"625d9JCayVFEZBInvP7qoPP","GuideArrow",void 0);const{ccclass:h,property:g}=n;t("GuideArrow",(c=h("GuideArrow"),l=g({type:o,displayName:"箭头"}),c((p=e((d=class extends s{constructor(...t){super(...t),r(this,"arrow",p,this),this.target=null}show(t){this.target=t,this.node.active=!0}hide(){this.node.active=!1}update(){if(null==this.target)return;let t=this.node.getWorldPosition(),e=this.target.getWorldPosition();if(a.distance(t,e)>200){this.arrow.active=!0;let r=e.subtract(t).normalize();this.node.angle=Tool.MathUtil.vectorCovertAngle(r)-180}else this.arrow.active=!1}}).prototype,"arrow",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=d))||u));i._RF.pop()}}}));

System.register("chunks:///_virtual/GuideDefine.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,n,r,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t.UITransform,l=t._decorator}],execute:function(){var a,u,o,b,c,p,s,y,m,f,h,d,k,g,w,z,N,Q,I,M,P,S,A,G,v,D,E,R,_,B,H,C,F,J,W,j,x,L,O,T,U,Y,q,K,V,X,Z,$,tt,et,it,nt,rt,lt,at,ut;t("GuideStep",void 0),n._RF.push({},"e17f4Oc7+tMSJJY22wf1id8","GuideDefine",void 0);const{ccclass:ot,property:bt}=l;let ct;!function(t){t[t["整备引导"]=0]="整备引导",t[t["对局引导"]=1]="对局引导",t[t["出售引导"]=2]="出售引导",t[t["黑市引导"]=3]="黑市引导"}(ct||(ct=t("GuideStep",{})));t("GuidePoint",(a=ot("GuidePoint"),u=bt({type:r,displayName:"开始游戏"}),o=bt({type:r,displayName:"返回"}),b=bt({type:r,displayName:"战备"}),c=bt({type:r,displayName:"黑市"}),p=bt({type:r,displayName:"快速装备"}),s=bt({type:r,displayName:"快速装备物品"}),y=bt({type:r,displayName:"快速装备头盔"}),m=bt({type:r,displayName:"快速装备护甲"}),f=bt({type:r,displayName:"快速装备背包"}),h=bt({type:r,displayName:"弹药整备"}),d=bt({type:r,displayName:"弹药整备物品"}),k=bt({type:r,displayName:"物资整备"}),g=bt({type:r,displayName:"物资整备物品"}),w=bt({type:r,displayName:"完成整备"}),z=bt({type:r,displayName:"一键出售"}),N=bt({type:r,displayName:"弹药列表"}),Q=bt({type:r,displayName:"弹药选择"}),I=bt({type:r,displayName:"射击"}),M=bt({type:r,displayName:"物资搜索"}),P=bt({type:r,displayName:"物资"}),S=bt({type:r,displayName:"背包"}),A=bt({type:r,displayName:"背包菜单"}),G=bt({type:r,displayName:"背包物资"}),v=bt({type:r,displayName:"药品列表"}),D=bt({type:r,displayName:"药品"}),E=bt({type:r,displayName:"药品选择"}),a((B=e((_=class{constructor(){i(this,"btnStart",B,this),i(this,"btnBack",H,this),i(this,"btnWhs",C,this),i(this,"btnMarket",F,this),i(this,"btnQuick1",J,this),i(this,"btnQuick1Item",W,this),i(this,"btnQuickHelmet",j,this),i(this,"btnQuickArmor",x,this),i(this,"btnQuickPack",L,this),i(this,"btnQuick2",O,this),i(this,"btnQuick2Item",T,this),i(this,"btnQuick3",U,this),i(this,"btnQuick3Item",Y,this),i(this,"btnQuickEnd",q,this),i(this,"btnSellAll",K,this),i(this,"btnAmmo",V,this),i(this,"btnAmmoItem",X,this),i(this,"btnShoot",Z,this),i(this,"btnSearch",$,this),i(this,"btnItem",tt,this),i(this,"btnPack",et,this),i(this,"btnPackMenu",it,this),i(this,"btnPackItem",nt,this),i(this,"btnMedical",rt,this),i(this,"btnMedicalItem",lt,this),i(this,"btnMedicalElect",at,this)}}).prototype,"btnStart",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(_.prototype,"btnBack",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(_.prototype,"btnWhs",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(_.prototype,"btnMarket",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=e(_.prototype,"btnQuick1",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=e(_.prototype,"btnQuick1Item",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(_.prototype,"btnQuickHelmet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(_.prototype,"btnQuickArmor",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(_.prototype,"btnQuickPack",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(_.prototype,"btnQuick2",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(_.prototype,"btnQuick2Item",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(_.prototype,"btnQuick3",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=e(_.prototype,"btnQuick3Item",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(_.prototype,"btnQuickEnd",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(_.prototype,"btnSellAll",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(_.prototype,"btnAmmo",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=e(_.prototype,"btnAmmoItem",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=e(_.prototype,"btnShoot",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=e(_.prototype,"btnSearch",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e(_.prototype,"btnItem",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(_.prototype,"btnPack",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(_.prototype,"btnPackMenu",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=e(_.prototype,"btnPackItem",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),rt=e(_.prototype,"btnMedical",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lt=e(_.prototype,"btnMedicalItem",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),at=e(_.prototype,"btnMedicalElect",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=_))||R)),t("GuideResConfig",ot("GuideResConfig")(ut=class{constructor(){this.id=void 0,this.content=void 0}})||ut);n._RF.pop()}}}));

System.register("chunks:///_virtual/GuideDialog.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){"use strict";var t,e,l,a,s,o,r,n;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){l=i.cclegacy,a=i.CCFloat,s=i.Node,o=i.Label,r=i._decorator,n=i.Component}],execute:function(){var c,h,u,d,g,p,b,v,y,f,m;l._RF.push({},"fc4abLem6tAIa+TnyKCrbXt","GuideDialog",void 0);const{ccclass:k,property:L}=r;i("GuideDialog",(c=k("GuideDialog"),h=L({displayName:"跳过"}),u=L({type:a,displayName:"间隔"}),d=L({type:s,displayName:"屏蔽"}),g=L({type:o,displayName:"对话"}),c((v=t((b=class extends n{constructor(...i){super(...i),e(this,"skip",v,this),e(this,"interval",y,this),e(this,"block",f,this),e(this,"dialogLabel",m,this),this.dialog=void 0,this.call=void 0}init(){this.dialogLabel.string="",this.block.active=!0,this.node.active=!1}show(i,t){this.dialogLabel.string="",this.block.active=!0,this.node.active=!0,this.dialog=i,this.call=t,this.writer()}hide(){this.node.active=!1}writer(){if(this.skip)this.dialogLabel.string=this.dialog,this.block.active=!1,this.call&&this.call();else{var i=0;this.dialogLabel.string="",this.schedule((()=>{i<this.dialog.length&&(this.dialogLabel.string+=this.dialog[i]),(i+=1)==this.dialog.length+5&&(this.call&&this.call(),this.block.active=!1)}),this.interval,this.dialog.length+5,this.interval)}}}).prototype,"skip",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=t(b.prototype,"interval",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),f=t(b.prototype,"block",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(b.prototype,"dialogLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=b))||p));l._RF.pop()}}}));

System.register("chunks:///_virtual/GuideMask.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,s,o,n,a,h,l,c,r;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,o=t.Mask,n=t.UITransform,a=t.Node,h=t._decorator,l=t.Component,c=t.director,r=t.Director}],execute:function(){var u,d,p,v,m,T,w,b,y,k,f,g,E;s._RF.push({},"62fa1M+BvtMdoKJ7yE4JQKc","GuideMask",void 0);const{ccclass:S,property:_}=h;t("GuideMask",(u=S("GuideMask"),d=_({type:o,displayName:"遮罩"}),p=_({type:n,displayName:"区域"}),v=_({type:a,displayName:"屏蔽"}),m=_({type:a,displayName:"指引"}),T=_({type:a,displayName:"点击"}),u((y=e((b=class extends l{constructor(...t){super(...t),i(this,"mask",y,this),i(this,"area",k,this),i(this,"block",f,this),i(this,"hand",g,this),i(this,"touch",E,this),this.ended=!0,this.moved=!1,this.waiting=!1,this.touchResult=!1,this.maskTrans=void 0,this.call=void 0}init(){this.touch.on(a.EventType.TOUCH_START,this.onTouchStart,this),this.touch.on(a.EventType.TOUCH_CANCEL,this.onTouchCancel,this),this.touch.on(a.EventType.TOUCH_MOVE,this.onTouchMove,this),this.touch.on(a.EventType.TOUCH_END,this.onTouchEnd,this),this.maskTrans=this.mask.node.getComponent(n),this.node.active=!1}show(t,e,i){this.maskTrans.setContentSize(t.contentSize),this.mask.node.setPosition(t.node.position),this.hand.setPosition(t.node.position),this.maskType(e),this.waiting=!1,this.hand.active=!0,this.call=i,this.node.active=!0}hide(){this.node.active=!1,this.call=null}hideHand(){this.hand.active=!1}maskType(t){switch(t){case"000":this.block.active=!1,this.ended=!1,this.moved=!1;break;case"111":this.block.active=!0,this.ended=!0,this.moved=!0;break;case"110":this.block.active=!0,this.ended=!0,this.moved=!1;break;case"101":this.block.active=!0,this.ended=!1,this.moved=!0;break;case"100":this.block.active=!0,this.ended=!1,this.moved=!1}}onTouchStart(t){if(this.waiting)return;this.waiting=!0,this.touchResult=!1;let e=t.getUILocation();const i=this.area.getBoundingBoxToWorld();this.ended?(this.touchResult=i.contains(e),t.preventSwallow=this.touchResult):i.contains(e)&&(t.preventSwallow=!0,this.call&&c.once(r.EVENT_AFTER_UPDATE,(()=>{this.call()}),this)),setTimeout((()=>{this.waiting=!1}),10)}onTouchMove(t){t.preventSwallow=this.moved}onTouchCancel(t){t.preventSwallow=this.moved}onTouchEnd(t){let e=t.getUILocation();const i=this.area.getBoundingBoxToWorld();if(this.ended)if(this.moved)t.preventSwallow=!0;else{if(this.waiting||!this.touchResult)return;i.contains(e)&&this.call&&(this.touchResult=!1,t.preventSwallow=!0,c.once(r.EVENT_AFTER_UPDATE,(()=>{this.call()}),this))}else this.moved?t.preventSwallow=!0:t.preventSwallow=i.contains(e)}}).prototype,"mask",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(b.prototype,"area",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(b.prototype,"block",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(b.prototype,"hand",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(b.prototype,"touch",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=b))||w));s._RF.pop()}}}));

System.register("chunks:///_virtual/GuideMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GuideDefine.ts","./GuideDialog.ts","./GuideMask.ts","./GuidePopup.ts","./ViewBase.ts"],(function(i){"use strict";var e,t,s,a,n,h,d,u,o,g,p,c,l,m;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){s=i.cclegacy,a=i.Node,n=i._decorator,h=i.Component,d=i.Vec3,u=i.tween},function(i){o=i.GuidePoint,g=i.GuideStep},function(i){p=i.GuideDialog},function(i){c=i.GuideMask},function(i){l=i.GuidePopup},function(i){m=i.ViewType}],execute:function(){var y,r,M,k,I,w,_,b,S,v,x,D,G,f;s._RF.push({},"0fe6fn0ceZC6qyVt3v+EDxZ","GuideMgr",void 0);const{ccclass:P,property:E}=n;i("GuideMgr",(y=P("GuideMgr"),r=E({type:o,displayName:"点位"}),M=E({type:c,displayName:"遮罩"}),k=E({type:l,displayName:"弹窗"}),I=E({type:p,displayName:"对话框"}),w=E({type:a,displayName:"局内提示"}),y(((f=class i extends h{constructor(...i){super(...i),t(this,"points",S,this),t(this,"mask",v,this),t(this,"popup",x,this),t(this,"dialog",D,this),t(this,"tips",G,this),this.guideIndex=0,this.dialogStep_1=["欢迎你新兵，你即将迎来你在战区的第一个任务，准备好了吗? 在任务开始之前，我为你准备了一些基础的装备，现在去做好准备，等你准备好我们就出发。","现在拿上你的武器，穿上防弹衣，戴好头盔，背上背包。再把弹药和药品带上，行动快一点，时间不等人。","很好，你已经整理好了自己的装备，现在准备出发吧。"],this.dialogStep_2=["新兵，我们已经抵达了战场，做好战斗准备，子弹上膛!","很好，行动正式开始，消灭挡路的一切敌人，搜刮尽可能多的物资，然后前往撤离点撤离，就这么简单。","敌人出现了，拖动射击摇杆朝敌人射击，消灭敌人。","现在这些战利品属于你了，他的枪比你好，记得带走。","打开背包整理所得的物资，更换更好的装备。","你受伤了，赶紧使用药品治疗自己。记住，活着撤离才是胜利。如果你死了，你将失去背包里所有物资。"],this.dialogStep_3=["任务完成了，现在我们把战利品卖掉就可以有一笔不菲的收入。"],this.dialogStep_4=["现在去黑市买一套更好的装备吧!"]}onLoad(){i.Instance=this,this.dialog.init(),this.popup.init(),this.mask.init(),this.tips.active=!1,My.Event.on(My.events.game_load,this.loadData,this)}loadData(){My.Event.off(My.events.game_load,this.loadData,this),My.Guide.guiding=1==My.Data.guide.guided,My.Game.cheat.cheat_guide&&(My.Guide.guiding=!1),My.Data.guide.guided=0,My.Guide.guiding=!1,My.Data.saveGuideData(),My.Game.gameSign("引导状态："+My.Guide.guiding),this.guideIndex=0}static guideCompare(i){return!!My.Guide.guiding&&My.Data.guide.guide_Step==i}static guideCheck(i){if(My.Guide.guiding)switch(My.Game.gameLog("引导阶段检测："+g[i]+"<?>"+My.Data.guide.guide_Step),i){case g.整备引导:0==My.Data.guide.guide_Step&&this.Instance.guideStep_1();break;case g.对局引导:1==My.Data.guide.guide_Step&&this.Instance.guideStep_2();break;case g.出售引导:2==My.Data.guide.guide_Step&&this.Instance.guideStep_3();break;case g.黑市引导:3==My.Data.guide.guide_Step&&this.Instance.guideStep_4()}}guideStep_1(){if(My.Guide.guiding)switch(My.Game.gameLog("整备引导："+this.guideIndex),this.guideIndex){case 0:this.guideItems(),this.dialog.show(this.dialogStep_1[0],(()=>{this.mask.show(this.points.btnWhs,"110",(()=>{this.mask.hide(),this.dialog.hide(),this.guideIndex=1,this.guideStep_1()}))}));break;case 1:this.dialog.show(this.dialogStep_1[1],(()=>{this.dialog.hide(),this.guideIndex=2,this.guideStep_1()}));break;case 2:null==My.Pack.Instance.equipItems[0]||null==My.Pack.Instance.equipItems[4]||null==My.Pack.Instance.equipItems[5]||null==My.Pack.Instance.equipItems[6]?this.mask.show(this.points.btnQuick1,"110",(()=>{My.UI.Instance.showing(m.整备视图)&&(this.guideIndex=3,this.guideStep_1())})):(this.guideIndex=4,this.guideStep_1());break;case 3:null==My.Pack.Instance.equipItems[0]?this.mask.show(this.points.btnQuick1Item,"110",(()=>{this.guideStep_1()})):null==My.Pack.Instance.equipItems[4]?this.mask.show(this.points.btnQuickHelmet,"110",(()=>{this.mask.show(this.points.btnQuick1Item,"110",(()=>{null!=My.Pack.Instance.equipItems[4]&&this.guideStep_1()}))})):null==My.Pack.Instance.equipItems[5]?this.mask.show(this.points.btnQuickArmor,"110",(()=>{this.mask.show(this.points.btnQuick1Item,"110",(()=>{null!=My.Pack.Instance.equipItems[5]&&this.guideStep_1()}))})):null==My.Pack.Instance.equipItems[6]?this.mask.show(this.points.btnQuickPack,"110",(()=>{this.mask.show(this.points.btnQuick1Item,"110",(()=>{null!=My.Pack.Instance.equipItems[6]&&this.guideStep_1()}))})):this.mask.show(this.points.btnQuickEnd,"110",(()=>{My.UI.Instance.showing(m.整备视图)||(this.guideIndex=4,this.guideStep_1())}));break;case 4:My.Pack.Instance.getAmmoAll().length<=0?this.mask.show(this.points.btnQuick2,"110",(()=>{if(My.UI.Instance.showing(m.整备视图)){let i=0;this.mask.show(this.points.btnQuick2Item,"110",(()=>{i+=1,i>=10&&this.mask.show(this.points.btnQuickEnd,"110",(()=>{My.UI.Instance.showing(m.整备视图)||this.guideStep_1()}))}))}})):(this.guideIndex=5,this.guideStep_1());break;case 5:My.Pack.Instance.getMedicalAll().length<=0?this.mask.show(this.points.btnQuick3,"110",(()=>{if(My.UI.Instance.showing(m.整备视图)){let i=0;this.mask.show(this.points.btnQuick3Item,"110",(()=>{i+=1,i>=3&&this.mask.show(this.points.btnQuickEnd,"110",(()=>{My.UI.Instance.showing(m.整备视图)||this.guideStep_1()}))}))}})):(this.mask.hide(),this.guideIndex=6,this.guideStep_1());break;case 6:this.dialog.show(this.dialogStep_1[2],(()=>{this.mask.show(this.points.btnBack,"110",(()=>{My.UI.Instance.showing(m.主页视图)&&(this.guideIndex=7,this.guideStep_1())}))}));break;case 7:this.mask.show(this.points.btnStart,"110",(()=>{this.mask.hide(),this.dialog.hide(),this.guideIndex=0,My.Data.guide.guide_Step=1,My.Data.saveGuideData()}))}}guideStep_2(){if(My.Guide.guiding)switch(My.Game.gameLog("对局引导："+this.guideIndex),this.guideIndex){case 0:My.Event.emit(My.events.guide_arrow,!1),this.dialog.show(this.dialogStep_2[0],(()=>{this.mask.show(this.points.btnAmmo,"110",(()=>{My.Player.Instance.unfoldAmmo&&(this.dialog.hide(),this.guideIndex=1,this.guideStep_2())}))}));break;case 1:this.mask.show(this.points.btnAmmoItem,"110",(()=>{My.Player.weapon.equip.ammoCount>0&&(this.guideIndex=2,this.guideStep_2())}));break;case 2:this.mask.hide(),this.popup.show(null),this.dialog.show(this.dialogStep_2[1],(()=>{this.popup.show((()=>{this.dialog.hide(),this.popup.hide(),this.guideIndex=3,this.guideStep_2()}))}));break;case 3:this.tips.active=!0,My.Map.mapData.spawnGuideNpc(1),My.Event.emit(My.events.play_rewarded_ammo,!0),this.dialog.show(this.dialogStep_2[2],(()=>{this.mask.show(this.points.btnShoot,"101",(()=>{this.dialog.hide(),this.guideIndex=4}))}));break;case 4:this.mask.hide(),My.Event.emit(My.events.game_paused,!0),My.UI.Instance.hideView(m.游戏视图);let i=new d(My.Player.position.x-600,My.Player.position.y,My.Player.position.z);u(My.Player.model.node).to(1,{position:i}).call((()=>{My.Event.emit(My.events.game_paused,!1),this.guideIndex=5,this.guideStep_2()})).start();break;case 5:this.mask.show(this.points.btnSearch,"110",(()=>{this.mask.hide(),this.guideIndex=6,this.tips.active=!1}));break;case 6:this.dialog.show(this.dialogStep_2[3],(()=>{this.mask.show(this.points.btnItem,"110",(()=>{this.dialog.hide(),this.mask.hide(),this.guideIndex=7}))}));break;case 7:this.tips.active=!0,My.UI.Instance.showView(m.游戏视图),this.dialog.show(this.dialogStep_2[4],(()=>{this.mask.show(this.points.btnPack,"110",(()=>{this.tips.active=!1,this.dialog.hide(),this.mask.hide(),this.guideIndex=8,this.guideStep_2()}))}));break;case 8:this.mask.show(this.points.btnPackMenu,"110",(()=>{this.guideIndex=9,this.guideStep_2()}));break;case 9:this.mask.show(this.points.btnPackItem,"110",(()=>{this.mask.hide(),this.guideIndex=10,My.Player.restore(-My.Setting.getData("player_hp")/2)}));break;case 10:this.tips.active=!0,My.Event.emit(My.events.game_paused,!0),this.dialog.show(this.dialogStep_2[5],(()=>{this.mask.show(this.points.btnMedical,"110",(()=>{My.Player.Instance.unfoldMedical&&(this.dialog.hide(),this.guideIndex=11,this.guideStep_2())}))}));break;case 11:this.mask.show(this.points.btnMedicalItem,"110",(()=>{null!=My.Player.medicalItem&&(this.guideIndex=12,this.guideStep_2())}));break;case 12:this.mask.show(this.points.btnMedicalElect,"110",(()=>{this.tips.active=!1,this.mask.hide(),this.guideIndex=0,My.Data.guide.guide_Step=2,My.Data.saveGuideData(),My.Event.emit(My.events.guide_arrow,!0),My.Event.emit(My.events.game_paused,!1)}))}}guideStep_3(){if(My.Guide.guiding)switch(My.Game.gameLog("出售引导："+this.guideIndex),this.guideIndex){case 0:this.dialog.show(this.dialogStep_3[0],(()=>{this.mask.show(this.points.btnWhs,"110",(()=>{My.UI.Instance.showing(m.战备视图)&&(this.dialog.hide(),this.guideIndex=1,this.guideStep_3())}))}));break;case 1:this.mask.show(this.points.btnPackMenu,"110",(()=>{this.guideIndex=2,this.guideStep_3()}));break;case 2:this.mask.show(this.points.btnSellAll,"110",(()=>{this.mask.hide(),this.guideIndex=0,My.Data.guide.guide_Step=3,My.Data.saveGuideData()}))}}guideStep_4(){if(My.Guide.guiding)switch(My.Game.gameLog("黑市引导："+this.guideIndex),this.guideIndex){case 0:this.dialog.show(this.dialogStep_4[0],(()=>{this.mask.show(this.points.btnMarket,"110",(()=>{My.UI.Instance.showing(m.黑市视图)&&(this.guideIndex=0,this.guideEnded())}))}))}}guideItems(){let i=Tool.StringUtil.stringToArray(My.Setting.getData("player_star_item"),";");i.length>0&&(i.forEach((i=>{let e=Tool.StringUtil.stringToArrayNumber(i,","),t=e[1]-My.Whs.Instance.whsItem_Has(e[0]);t>0&&(My.Pack.Instance.equipItem_Has(e[0])||My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CreateData(e[0],t)))})),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value))}guideEnded(){this.mask.hide(),this.dialog.hide(),this.tips.active=!1,My.Data.guide.guide_Step=4,My.Data.guide.guided=0,My.Guide.guiding=!1,My.Data.saveGuideData(),My.Game.gameSign("引导完成")}}).Instance=null,f.guiding=!1,S=e((b=f).prototype,"points",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new o}}),v=e(b.prototype,"mask",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(b.prototype,"popup",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(b.prototype,"dialog",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(b.prototype,"tips",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=b))||_));s._RF.pop()}}}));

System.register("chunks:///_virtual/GuidePopup.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var i,t,o,s,c,n;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Node,c=e._decorator,n=e.Component}],execute:function(){var l,r,p,u,a;o._RF.push({},"dbecelykIFKq5R42pINkkw7","GuidePopup",void 0);const{ccclass:d,property:h}=c;e("GuidePopup",(l=d("GuidePopup"),r=h({type:s,displayName:"提示"}),l((a=i((u=class extends n{constructor(...e){super(...e),t(this,"tips",a,this),this.call=void 0}init(){this.node.active=!1}show(e){this.call=e,this.node.active=!0,this.tips.active=null!=e}hide(){this.node.active=!1}onClick_Hide(){null!=this.call&&(this.node.active=!1,this.call())}}).prototype,"tips",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=u))||p));o._RF.pop()}}}));

System.register("chunks:///_virtual/health.ts",["cc","./SDKManager.ts","./ChannelID.ts","./android.ts","./net.ts"],(function(o){"use strict";var e,n,t,a,i,l,w,d,s,c,r,g;return{setters:[function(o){e=o.cclegacy,n=o.Component,t=o.sys,a=o.find,i=o.LabelComponent,l=o.director,w=o._decorator},function(o){d=o.SDKManager},function(o){s=o.default,c=o.AdIDS},function(o){r=o.default},function(o){g=o.http_get}],execute:function(){var f;e._RF.push({},"3f9d29rmwBIsKfQpnX029cs","health",void 0);const{ccclass:p,property:m}=w;o("Health",p("Health")(f=class extends n{constructor(...o){super(...o),this.nextScene="game"}start(){var o=this;console.log("platform："+t.platform),t.platform===t.Platform.OPPO_MINI_GAME?window.platform=s.OPPO:t.platform===t.Platform.VIVO_MINI_GAME?window.platform=s.VIVO:t.platform===t.Platform.HUAWEI_QUICK_GAME?window.platform=s.HW:t.platform===t.Platform.XIAOMI_QUICK_GAME?window.platform=s.XIAOMI:t.platform===t.Platform.BYTEDANCE_MINI_GAME?window.platform=s.TT:t.platform===t.Platform.COCOSPLAY?window.platform=s.HONOR:t.platform===t.Platform.WECHAT_GAME?window.platform=s.WX:t.platform===t.Platform.ANDROID?window.platform=s.ANDROID:window.platform=s.TEST,window.sdk=d.getSdkMgr(),window.sdk.adSwitch=1,window.sdk.nativeClick=15,window.sdk.nativeCd=30,window.sdk.nPlane=1,window.sdk.init(),window.platform==s.ANDROID&&(c[window.platform].ruanzhu=r.getRuanZhu(),c[window.platform].gameName=r.getGameName(),c[window.platform].software=r.getSoftware()),a("Canvas/health/ruanzhu").getComponent(i).string="著作权人:"+c[window.platform].ruanzhu,a("Canvas/privacy").active=!0;var e=()=>{a("Canvas/loading").active=!1,"true"==t.localStorage.getItem("ys")&&o.goNext()};window.platform==s.HW?(this.initKg(),a("Canvas/login").active=!0,o.hwLogin()):window.platform==s.OPPO?(a("Canvas/loading").active=!0,o.initTime(),window.sdk.nPlane=0,e()):window.platform==s.VIVO?(a("Canvas/loading").active=!0,o.initKg(),e()):window.platform==s.XIAOMI?(o.initTime(),e()):window.platform==s.TT?this.goNext():window.platform==s.HONOR?(o.initTime(),window.sdk.nPlane=0,e()):window.platform==s.WX||window.platform==s.TEST?(a("Canvas/privacy").active=!1,l.loadScene(this.nextScene)):window.platform!=s.ANDROID&&"true"!=t.localStorage.getItem("ys")||this.goNext()}initTime(){window.sdk.adSwitch=window.sdk.GetDate(c[window.platform].year,c[window.platform].month,c[window.platform].day,c[window.platform].hour)?0:1,window.sdk.nativeClick=15,window.sdk.nativeCd=30,window.sdk.nPlane=1}initTime2(){window.sdk.adSwitch=window.sdk.GetDate2(7,19)?0:15,window.sdk.nativeClick=window.sdk.GetDate2(7,19)?0:15,window.sdk.nativeCd=30,window.sdk.nPlane=1}initKg(){var o=this;g(o.node,"http://119.3.213.216:8080/x-admin/switch-get.php?id="+c[window.platform].kgId,((o,e)=>{window.sdk.adSwitch=Number(e.ifopen),window.sdk.nativeClick=Number(e.nav_click_rate),window.sdk.nativeCd=Number(e.nav_cd),window.sdk.nPlane=Number(e.insert_show),console.log("kg suc:"+window.sdk.adSwitch+","+window.sdk.nativeClick+","+window.sdk.nativeCd+","+window.sdk.nPlane)}),(()=>{window.sdk.adSwitch=o.initTime(),window.sdk.nativeClick=15,window.sdk.nativeCd=30,window.sdk.nPlane=1,console.log("kg fail:"+window.sdk.adSwitch+","+window.sdk.nativeClick+","+window.sdk.nativeCd+","+window.sdk.nPlane)}))}goNext(){t.localStorage.setItem("ys","true"),a("Canvas/privacy").active=!1,setTimeout((()=>{l.preloadScene(this.nextScene,(()=>{l.loadScene(this.nextScene)}))}),3e3)}close(){qg.exitApplication({})}clickYS(){a("NativeMgr/ys").active=!0,a("NativeMgr/ys").setSiblingIndex(100)}clickXY(){a("NativeMgr/xy").active=!0,a("NativeMgr/xy").setSiblingIndex(100)}hwLogin(){var o=this;qg.getNetworkType({success:function(e){console.log("getNetworkType success:"+e.networkType),"none"==e.networkType?o.hwShowModal("登录失败","网络异常,请检查网络后重试",!0,"重新登录","退出游戏",(()=>{o.hwLogin()}),(()=>{o.close()})):qg.gameLoginWithReal({forceLogin:1,appid:c[s.HW].appId,success:function(e){console.log("Game login success:"+e),a("Canvas/login").active=!1,a("Canvas/loading").active=!0,qg.getNetworkType({success:function(e){console.log("getNetworkType success:"+e.networkType),"none"==e.networkType?a("Canvas/noNet").active=!0:(a("Canvas/loading").active=!1,"true"==t.localStorage.getItem("ys")&&o.goNext())}})},fail:function(e,n){console.log("game login with real fail:"+e+", code:"+n),7021==n?(console.log("The player has canceled identity verification. Forbid the player from entering the game."),o.hwShowModal("即将退出游戏","未实名认证禁止进入游戏",!1,"确定","取消",(()=>{o.close()}),(()=>{}))):o.hwShowModal("登录失败","开始游戏前请先登录华为账号",!0,"重新登录","退出游戏",(()=>{o.hwLogin()}),(()=>{o.close()}))}})}})}hwShowModal(o,e,n,t,a,i,l){qg.showModal({title:o,content:e,showCancel:n,cancelText:a,confirmText:t,success(o){o.confirm?(console.log("用户点击确定"),i&&i()):o.cancel&&(console.log("用户点击取消"),l&&l())}})}fenbao(o){if(a("Canvas/loading").active=!0,window.platform==s.OPPO||window.platform==s.VIVO||window.platform==s.XIAOMI)qg.loadSubpackage({name:"package",success:function(e){o()},fail:function(o){},complete:function(){}});else if(window.platform==s.HW)qg.loadSubpackage({subpackage:"package",success:function(){console.log("loadSubpackage success"),o()},fail:function(){console.log("loadSubpackage fail")},complete:function(){console.log("loadSubpackage complete")}});else if(window.platform==s.TT){tt.loadSubpackage({name:"package",success:function(e){o()},fail:function(o){}}).onProgressUpdate((o=>{console.log("下载进度",o.progress),console.log("已经下载的数据长度",o.totalBytesWritten),console.log("预期需要下载的数据总长度",o.totalBytesExpectedToWrite)}))}}})||f);e._RF.pop()}}}));

System.register("chunks:///_virtual/HealthItem.ts",["cc"],(function(t){"use strict";var e,r,s;return{setters:[function(t){e=t.cclegacy,r=t.Component,s=t._decorator}],execute:function(){var c;e._RF.push({},"8ded2mTrZBDDaCay6LMMebO","HealthItem",void 0);const{ccclass:a,property:i}=s;t("HealthItem",a("HealthItem")(c=class extends r{constructor(...t){super(...t),this.target=void 0,this.hurtEvent=void 0}init(t,e){this.target=e,this.hurtEvent=t}hurt(t,e){this.hurtEvent.apply(this.target,[t,e])}})||c);e._RF.pop()}}}));

System.register("chunks:///_virtual/HitEffect.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SpaceAudio.ts"],(function(i){"use strict";var t,e,o,n,r,a,c;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){o=i.cclegacy,n=i.Animation,r=i._decorator,a=i.Component},function(i){c=i.SpaceAudio}],execute:function(){var l,u,s,p,f,y,d,h,m;o._RF.push({},"f9ef2oVuQJAUZhr7Y9/zoyb","HitEffect",void 0);const{ccclass:b,property:g}=r;i("HitEffect",(l=b("HitEffect"),u=g({type:n,displayName:"动画"}),s=g({type:c,displayName:"音效"}),p=g({displayName:"音频名称"}),l((d=t((y=class extends a{constructor(...i){super(...i),e(this,"animationCom",d,this),e(this,"audio",h,this),e(this,"clip",m,this)}show(i){i&&this.audio.playSfx(this.clip),this.animationCom.play()}hide(){My.Pool.putNode(this.node)}}).prototype,"animationCom",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=t(y.prototype,"audio",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(y.prototype,"clip",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=y))||f));o._RF.pop()}}}));

System.register("chunks:///_virtual/honor.ts",["cc","./ChannelID.ts"],(function(t){"use strict";var e,n,i,s,o;return{setters:[function(t){e=t.director,n=t.macro,i=t.cclegacy},function(t){s=t.AdIDS,o=t.default}],execute:function(){i._RF.push({},"cc7faysqopM7I5vlcQ6jISS","honor",void 0);class d{static init(){var t=this;qg.getSystemInfo({success:function(e){console.log(`handling success， screenWidth = ${e.screenWidth}， screenHeight = ${e.screenHeight}`),t.screenWidth=e.screenWidth,t.screenHeight=e.screenHeight}}),this.nativeInit(0),this.nativeInit(1),this.bannerInit(),this.rewardInit(),this.insertInit()}static timeAd(){1==window.sdk.nPlane?this.showAd():window.sdk.nPlane}static showAd(){var t=this;if(this.bShowAd){var e=1==window.sdk.adSwitch?2:30;switch(this.bShowAd=!1,setTimeout((()=>{t.bShowAd=!0}),1e3*e),this.adNum++,this.adNum){case 1:this.openNative(0);break;case 2:this.openNative(1);break;case 3:this.openInsert(),this.adNum=0}}}static hideAd(){this.hideNative(0),this.hideNative(1),this.hideInsert()}static changeState(t){console.log("changeState:"+t),1==window.sdk.adSwitch?(null==this.scheduler&&0!=window.sdk.nPlane&&(this.scheduler=e.getScheduler(),this.scheduler.enableForTarget(this),this.scheduler.schedule(this.timeAd,this,window.sdk.nativeCd,n.REPEAT_FOREVER,window.sdk.nativeCd,!1)),this.openBanner(),2!=t&&this.showAd()):3==t?(this.openInsert(),this.hideBanner()):this.openBanner()}static insertInit(){if(qg.createInterstitialAd){var t=this;this.insertAd=qg.createInterstitialAd({adUnitId:s[o.HONOR].insertId}),this.insertAd.onError((function(t){console.log("插屏加载失败",t)})),this.insertAd.onShow((()=>{console.log("插屏广告显示"),1==window.sdk.adSwitch&&0!=window.sdk.nPlane&&(t.scheduler.unschedule(t.timeAd,t),t.scheduler.schedule(t.timeAd,t,window.sdk.nativeCd,n.REPEAT_FOREVER,window.sdk.nativeCd,!1))})),this.insertAd.onClose((()=>{console.log("插屏广告隐藏")}))}}static openInsert(){this.insertAd.show()}static hideInsert(){this.insertAd.destroy()}static nativeInit(t){var e=this,i=s[o.HONOR].nativeId;1==t&&(i=s[o.HONOR].nativeId2),this.nativeAd[t]=qg.createNativeAd({adUnitId:i,style:{gravity:"center"}}),this.nativeAd[t].onShow((()=>{console.log("原生广告显示"+t),1==window.sdk.adSwitch&&0!=window.sdk.nPlane&&(e.scheduler.unschedule(e.timeAd,e),e.scheduler.schedule(e.timeAd,e,window.sdk.nativeCd,n.REPEAT_FOREVER,window.sdk.nativeCd,!1))})),this.nativeAd[t].onHide((()=>{console.log("原生广告隐藏"+t),this.nativeAd[t].destroy()})),this.nativeAd[t].onError((function(t){console.log("原生广告加载失败",JSON.stringify(t))})),this.nativeAd[t].onResize((function(t){console.log("原生广告尺寸：",t.width+","+t.height)})),this.nativeAd[t].onLoad((function(t){console.log("原生广告加载成功",JSON.stringify(t))}))}static openNative(t){this.nativeAd[t].show()}static hideNative(t){this.nativeAd[t].hide()}static bannerInit(){if(qg.createBannerAd){var t=this;console.log("bannerInit"),0==this.bannerPos?this.bannerAd=qg.createBannerAd({adUnitId:s[o.HONOR].bannerId,style:{gravity:"top|center_horizontal"}}):this.bannerAd=qg.createBannerAd({adUnitId:s[o.HONOR].bannerId,style:{gravity:"bottom|center_horizontal"}}),this.bannerAd.onError((function(t){console.log("横幅加载失败",JSON.stringify(t))})),this.bannerAd.onResize((function(e){console.log("横幅尺寸：",e.width+","+e.height),t.bannerAd.style.width=e.width,t.bannerAd.style.height=e.height})),this.bannerAd.onHide((function(){console.log("横幅关闭")})),this.bannerAd.onLoad((function(){console.log("横幅加载成功")}))}}static openBanner(){this.bannerAd&&this.bannerAd.show()}static hideBanner(){this.bannerAd&&this.bannerAd.hide()}static rewardInit(){if(qg.createRewardedVideoAd){var t=this;this.rewardAd=qg.createRewardedVideoAd({adUnitId:s[o.HONOR].rewardId}),this.rewardAd.onLoad((function(){console.log("激励加载完成")})),this.rewardAd.onError((function(e){console.log("激励加载失败"+JSON.stringify(e)),t.rewardCallback&&t.rewardCallback("fail"),t.showTip("广告加载失败,请稍后重试"),t.onSound()})),this.rewardAd.onReward((function(){console.log("激励播放结束"),t.rewardCallback&&(t.rewardCallback("success"),t.showTip("成功下发奖励"),t.onSound())})),this.rewardAd.onClose((function(e){console.log("激励播放中途退出"),t.rewardCallback&&t.rewardCallback("cancel"),t.onSound()})),this.rewardAd.load()}}static openVideo(t){this.offSound(),this.rewardCallback=t,this.rewardAd?this.rewardAd.show():t&&(t("fail"),this.showTip("广告加载失败,请稍后重试"),this.onSound())}static showTip(t){console.log("showTip:"+t),qg.showToast({message:t})}static showDialog(t,e,n){qg.showModal({title:t,content:e,success(t){t.confirm?(console.log("用户点击确定"),n&&n()):t.cancel&&console.log("用户点击取消")}})}static installShortcut(){qg.hasShortcutInstalled({success:function(t){0==t?qg.installShortcut({success:function(){},fail:function(t){},complete:function(){}}):window.sdk.showTip("已创建桌面图标")},fail:function(t){},complete:function(){}})}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}t("default",d),d.screenWidth=0,d.screenHeight=0,d.bannerAd=void 0,d.bannerPos=1,d.rewardAd=void 0,d.rewardCallback=void 0,d.nativeAd=[],d.insertAd=void 0,d.scheduler=null,d.adNum=0,d.bShowAd=!0,i._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Ammo.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GuideDefine.ts","./Option_Ammo.ts"],(function(t){"use strict";var i,e,o,n,s,l,a,u,h,r;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,n=t.Sprite,s=t.Label,l=t.Node,a=t._decorator,u=t.Component},function(t){h=t.GuideStep},function(t){r=t.Option_Ammo}],execute:function(){var c,m,d,p,f,y,_,b,g,v,A,M,I,q,w;o._RF.push({},"88b2ahiPdlBm4Ctl5y2u36i","Hud_Ammo",void 0);const{ccclass:N,property:S}=a;t("Hud_Ammo",(c=N("Hud_Ammo"),m=S({type:n,displayName:"品质"}),d=S({type:n,displayName:"图标"}),p=S({type:s,displayName:"数值"}),f=S({type:l,displayName:"箭头"}),y=S({type:l,displayName:"列表"}),_=S({type:[r],displayName:"弹药选项"}),c((v=i((g=class extends u{constructor(...t){super(...t),e(this,"quality",v,this),e(this,"icon",A,this),e(this,"countLabel",M,this),e(this,"arrow",I,this),e(this,"listNode",q,this),e(this,"options",w,this),this.unfold=!1,this.equip=null,this.ammoInfos=[]}init(){this.unfold=!1,this.listNode.active=!1,this.options.forEach((t=>{t.init()})),this.node.on("click",this.onClick_Selected,this),My.Event.on(My.events.update_ammo_all,this.update_AmmoData,this),My.Event.on(My.events.update_hud_ammo,this.update_AmmoSelect,this)}show(t){this.node.active=!0,this.listNode.active=!1,this.equip=t,this.update_AmmoData()}hide(){this.equip=null,this.node.active=!1,this.listNode.active=!1}unfold_State(t){if(this.unscheduleAllCallbacks(),null!=t)this.unfold=t,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,My.Player.Instance.unfoldAmmo=this.unfold;else if(this.unfold=!this.unfold,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,My.Player.Instance.unfoldAmmo=this.unfold,this.unfold){if(My.Guide.guideCompare(h.对局引导))return;this.scheduleOnce((()=>{this.unfold=!1,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,My.Player.Instance.unfoldAmmo=this.unfold}),5)}}ammo_Select(t){null!=this.equip&&(this.equip.setAmmo(t),this.update_AmmoSelect(),this.unfold_State(!1))}update_AmmoData(){if(this.ammoInfos=[],null!=this.equip&&(this.options.forEach((t=>{t.hide()})),this.ammoInfos=My.Pack.Instance.getAmmoByType(this.equip.data.ammo),this.ammoInfos.length>0))for(let t=0;t<this.ammoInfos.length;t++)this.options[t].show(this,this.ammoInfos[t]);this.update_AmmoSelect()}async update_AmmoSelect(){if(null!=this.equip){this.options.forEach((t=>{t.update_Data()}));let t=this.equip.ammo;null!=t?(this.quality.color=My.Item.Instance.getQualityColor(t.quality),this.icon.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.countLabel.string="剩余："+t.count,this.quality.node.active=!0):(this.quality.node.active=!1,this.icon.spriteFrame=null,this.countLabel.string=""),this.node.active=!0}else this.node.active=!1}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Player.action_Has()||(this.ammoInfos.length>0?this.unfold_State():My.Msg.showMessage(My.msgcode.无备弹))}}).prototype,"quality",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=i(g.prototype,"icon",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=i(g.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=i(g.prototype,"arrow",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=i(g.prototype,"listNode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=i(g.prototype,"options",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=g))||b));o._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Buff.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(e){"use strict";var t,i,s,a,n,r;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,a=e.Sprite,n=e._decorator},function(e){r=e.Hud_Base}],execute:function(){var c,o,u,f,p;s._RF.push({},"ed56awlnVlKJ7jT2LGxkHWT","Hud_Buff",void 0);const{ccclass:l,property:d}=n;e("Hud_Buff",(c=l("Hud_Buff"),o=d({type:[a],displayName:"图标"}),c((p=t((f=class extends r{constructor(...e){super(...e),i(this,"icons",p,this)}init(){this.icons.forEach((e=>{e.node.active=!1})),My.Event.on(My.events.update_buff_state,this.update_Data,this)}update_Data(){let e=0;this.icons.forEach((e=>{e.node.active=!1})),My.Player.state.buffMap.forEach((t=>{this.icons[e].spriteFrame=My.Player.state.icons[t.type],this.icons[e].node.active=!0,e+=1}))}}).prototype,"icons",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=f))||u));s._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Equip.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts","./Hud_Ammo.ts"],(function(e){"use strict";var t,i,a,n,s,l,u,r,o,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Enum,s=e.Sprite,l=e.Label,u=e._decorator,r=e.Component},function(e){o=e.EquipmentType},function(e){m=e.Hud_Ammo}],execute:function(){var p,h,c,y,d,b,_,g,f,q,L,M,z,v,E;a._RF.push({},"104b0Ysr9VFV4Yfzn/k1ET7","Hud_Equip",void 0);const{ccclass:S,property:w}=u;e("Hud_Equip",(p=S("Hud_Equip"),h=w({type:n(o),displayName:"装备类型"}),c=w({type:s,displayName:"图像"}),y=w({type:l,displayName:"名称"}),d=w({type:l,displayName:"口径"}),b=w({type:l,displayName:"弹夹"}),_=w({type:m,displayName:"弹药"}),p((q=t((f=class extends r{constructor(...e){super(...e),i(this,"type",q,this),i(this,"image",L,this),i(this,"nameLabel",M,this),i(this,"ammoLabel",z,this),i(this,"rdsLabel",v,this),i(this,"ammo",E,this),this.equip=null}init(){this.equip=null,this.ammo&&this.ammo.init(),My.Event.on(My.events.update_hud_equip,this.update_equip,this),My.Event.on(My.events.update_hud_ammo,this.update_magazine,this),this.node.on("click",this.onClick_Selected,this)}async update_equip(){this.equip=My.Player.Instance.equips[this.type],null!=this.equip?(this.image.spriteFrame=await My.Item.Instance.getItemSlot(this.equip.data.image),this.ammoLabel&&(this.ammoLabel.string=Tool.CommonUtil.ParseAmmo(this.equip.data.ammo)),this.ammo&&this.ammo.show(this.equip),this.nameLabel.string="",this.update_magazine()):(this.image.spriteFrame=null,this.ammo&&this.ammo.hide(),this.ammoLabel&&(this.ammoLabel.string=""),this.rdsLabel&&(this.rdsLabel.string=""),this.nameLabel.string=o[this.type])}update_magazine(){null!=this.equip&&null!=this.rdsLabel&&(this.rdsLabel.string=this.equip.rdsStr)}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Player.action_Has()||(My.Pack.WuqiSelect(this.type),My.Event.emit(My.events.update_equip_elect))}}).prototype,"type",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.主武器1}}),L=t(f.prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(f.prototype,"nameLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(f.prototype,"ammoLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(f.prototype,"rdsLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(f.prototype,"ammo",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=f))||g));a._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Fangju.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(i){"use strict";var t,e,u,a,n,l,o,r;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){u=i.cclegacy,a=i.Node,n=i.Sprite,l=i.Label,o=i._decorator},function(i){r=i.Hud_Base}],execute:function(){var s,h,p,d,c,y,_,m,g,f,j,b,k,I,N,E,v,w,M;u._RF.push({},"0a252fI9zlMhKvXOR9mwOS4","Hud_Fangju",void 0);const{ccclass:R,property:z}=o;i("Hud_Fangju",(s=R("Hud_Fangju"),h=z({type:a,displayName:"头盔"}),p=z({type:n,displayName:"头盔图像"}),d=z({type:n,displayName:"头盔耐久"}),c=z({type:l,displayName:"头盔品质"}),y=z({type:a,displayName:"护甲"}),_=z({type:n,displayName:"护甲图像"}),m=z({type:n,displayName:"护甲耐久"}),g=z({type:l,displayName:"护甲品质"}),s((b=t((j=class extends r{constructor(...i){super(...i),e(this,"toukui_Node",b,this),e(this,"toukui_Image",k,this),e(this,"toukui_End",I,this),e(this,"toukui_Quality",N,this),e(this,"hujia_Node",E,this),e(this,"hujia_Image",v,this),e(this,"hujia_End",w,this),e(this,"hujia_Quality",M,this),this.toukui=null,this.hujia=null}init(){My.Event.on(My.events.update_hud_equip,this.update_Equip,this),My.Event.on(My.events.update_equipment_end,this.update_End,this)}async update_Equip(){this.toukui=My.Pack.equipToukui,this.toukui?(this.toukui_Image.spriteFrame=await My.Item.Instance.getItemShadown(this.toukui.image),this.toukui_Quality.string=My.Item.Instance.getQualityString(this.toukui.quality),this.toukui_End.fillRange=1-this.toukui.endRatio,this.toukui_Node.active=!0):this.toukui_Node.active=!1,this.hujia=My.Pack.equipHujia,this.hujia?(this.hujia_Image.spriteFrame=await My.Item.Instance.getItemShadown(this.hujia.image),this.hujia_Quality.string=My.Item.Instance.getQualityString(this.hujia.quality),this.hujia_End.fillRange=1-this.hujia.endRatio,this.hujia_Node.active=!0):this.hujia_Node.active=!1}update_End(){null!=this.toukui&&(this.toukui_End.fillRange=1-this.toukui.endRatio),null!=this.hujia&&(this.hujia_End.fillRange=1-this.hujia.endRatio)}}).prototype,"toukui_Node",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(j.prototype,"toukui_Image",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(j.prototype,"toukui_End",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(j.prototype,"toukui_Quality",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(j.prototype,"hujia_Node",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(j.prototype,"hujia_Image",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(j.prototype,"hujia_End",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(j.prototype,"hujia_Quality",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=j))||f));u._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Hp.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(e){"use strict";var t,i,l,r,a,n,s,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){l=e.cclegacy,r=e.Sprite,a=e.Label,n=e._decorator},function(e){s=e.Hud_Base,u=e.PlayerModel}],execute:function(){var p,o,c,y,d,h,f,b,_;l._RF.push({},"6b30dt/6DlDz5UF7O9gdclB","Hud_Hp",void 0);const{ccclass:g,property:H}=n;e("Hud_Hp",(p=g("Hud_Hp"),o=H({type:r,displayName:"遮罩"}),c=H({type:a,displayName:"数值"}),y=H({displayName:"反向"}),p((f=t((h=class extends s{constructor(...e){super(...e),i(this,"fill",f,this),i(this,"valueLabel",b,this),i(this,"reverse",_,this)}onEnabled(){this.update_Hp(My.Player.hp)}init(){My.Event.on(My.events.update_hud_hp,this.update_Hp,this)}update_Hp(e){let t=0;switch(My.Player.modelType){case u.修狗:t=My.Setting.getData("player_hp");break;case u.机甲:t=My.Setting.getData("mech_hp")}this.reverse?this.fill.fillRange=1-e/t:this.fill.fillRange=e/t,this.valueLabel.string=e+"/"+t}}).prototype,"fill",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=t(h.prototype,"valueLabel",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(h.prototype,"reverse",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=h))||d));l._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Joystick.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(e){"use strict";var t,a,i,s,r,n,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){i=e.cclegacy,s=e.Sprite,r=e._decorator},function(e){n=e.Hud_Base,u=e.PlayerModel}],execute:function(){var c,l,o,p,y;i._RF.push({},"2a9eeMTTulImoD6tb8yjbJP","Hud_Joystick",void 0);const{ccclass:d,property:m}=r;e("Hud_Joystick",(c=d("Hud_Joystick"),l=m({type:s,displayName:"图标"}),c((y=t((p=class extends n{constructor(...e){super(...e),a(this,"image",y,this)}init(){this.image.spriteFrame=null,My.Event.on(My.events.update_hud_equip,this.update_Data,this),My.Event.on(My.events.update_ammo_elect,this.update_Data,this)}async update_Data(){switch(My.Player.modelType){case u.修狗:let e=My.Player.getWeaponEquip();null!=e&&null!=e.data?this.image.spriteFrame=await My.Item.Instance.getItemIcon(e.data.image):this.image.spriteFrame=null;break;case u.机甲:this.image.spriteFrame=null}}}).prototype,"image",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=p))||o));i._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Medical.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GuideDefine.ts","./GameDefine.ts","./Option_Medical.ts"],(function(e){"use strict";var t,i,l,n,a,s,o,c,r,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){l=e.cclegacy,n=e.Sprite,a=e.Label,s=e.Node,o=e._decorator},function(e){c=e.GuideStep},function(e){r=e.Hud_Base},function(e){u=e.Option_Medical}],execute:function(){var d,h,y,f,p,m,M,_,g,b,I,P,S,w,v;l._RF.push({},"45a90lERNRCFbEz4tsWgfgP","Hud_Medical",void 0);const{ccclass:N,property:L}=o;e("Hud_Medical",(d=N("Hud_Medical"),h=L({type:n,displayName:"图标"}),y=L({type:a,displayName:"名称"}),f=L({type:a,displayName:"数量"}),p=L({type:s,displayName:"箭头"}),m=L({type:s,displayName:"列表"}),M=L({type:[u],displayName:"选项"}),d((b=t((g=class extends r{constructor(...e){super(...e),i(this,"icon",b,this),i(this,"nameLabel",I,this),i(this,"countLabel",P,this),i(this,"arrow",S,this),i(this,"listNode",w,this),i(this,"options",v,this),this.unfold=!1,this.infos=[]}init(){this.unfold=!1,this.listNode.active=!1,this.options.forEach((e=>{e.init()})),this.node.on("click",this.onClick_Selected,this),My.Event.on(My.events.play_init,this.reset,this),My.Event.on(My.events.update_medical_all,this.update_Data,this)}reset(){My.Player.medicalItem=null,this.update_Select()}unfold_State(e){if(this.unscheduleAllCallbacks(),null!=e)this.unfold=e,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,My.Player.Instance.unfoldMedical=this.unfold;else if(this.unfold=!this.unfold,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,My.Player.Instance.unfoldMedical=this.unfold,this.unfold){if(My.Guide.guideCompare(c.对局引导))return;this.scheduleOnce((()=>{this.unfold=!1,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,My.Player.Instance.unfoldMedical=this.unfold}),5)}}medical_Select(e){My.Player.medicalItem=e,this.update_Select(),this.unfold_State(!1)}update_Data(){if(this.infos=[],this.options.forEach((e=>{e.hide()})),this.infos=My.Pack.Instance.getMedicalAll(),this.infos.length>0)for(let e=0;e<this.options.length;e++)e<this.infos.length&&this.options[e].show(this,this.infos[e]);this.update_Select()}async update_Select(){null!=My.Player.medicalItem?My.Player.medicalItem.count>0?(this.nameLabel.node.active=!1,this.icon.spriteFrame=await My.Item.Instance.getItemIcon(My.Player.medicalItem.image),this.countLabel.string=My.Player.medicalItem.count.toString()):(My.Player.medicalItem=null,this.update_Select()):(this.icon.spriteFrame=null,this.countLabel.string="",this.nameLabel.string="药品",this.nameLabel.node.active=!0)}onClick_Unfold(){My.Sound.playSfx(My.sounds.ui_click_common),My.Player.action_Has()||(this.infos.length>0?this.unfold_State():My.Msg.showMessage(My.msgcode.无投掷物))}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Player.action_Has()||null!=My.Player.medicalItem&&(My.Player.medicalItem.count>0?My.Player.Instance.used_MedicalItem(My.Player.medicalItem):My.Msg.showMessage(My.msgcode.数量不足))}}).prototype,"icon",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(g.prototype,"nameLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(g.prototype,"countLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(g.prototype,"arrow",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(g.prototype,"listNode",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(g.prototype,"options",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=g))||_));l._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Nav.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(t){"use strict";var e,a,i,n,s,r,c,l,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.Node,s=t.Sprite,r=t.Label,c=t._decorator,l=t.macro},function(t){o=t.Hud_Base}],execute:function(){var v,u,h,p,d,y,g,N,_;i._RF.push({},"9d437V50AFN37K7Ivru0DMn","Hud_Nav",void 0);const{ccclass:b,property:f}=c;t("Hud_Nav",(v=b("Hud_Nav"),u=f({type:n,displayName:"导航"}),h=f({type:s,displayName:"图标"}),p=f({type:r,displayName:"距离"}),v((g=e((y=class extends o{constructor(...t){super(...t),a(this,"nav",g,this),a(this,"icon",N,this),a(this,"distanceLabel",_,this),this.state=!1}init(){this.state=!1,this.nav.angle=0,this.nav.active=!1,My.Event.on(My.events.nav_state,this.update_State,this)}update_State(){My.Nav.target?(this.distanceLabel.string=My.Nav.Instance.get_NavDistance()+"M",this.icon.spriteFrame=My.Nav.Instance.get_NavIcon(),this.nav.angle=this.convert_Angle(),this.nav.active=!0,this.state=!0):(this.distanceLabel.string="",this.icon.spriteFrame=null,this.nav.active=!1,this.state=!1)}update(t){if(this.state){My.Nav.Instance.get_NavDistance()>=20?(this.distanceLabel.string=My.Nav.Instance.get_NavDistance()+"M",this.nav.angle=this.convert_Angle(),this.nav.active||(this.nav.active=!0)):this.nav.active&&(this.nav.active=!1)}}convert_Angle(){let t=My.Player.worldPosition.subtract(My.Nav.target.worldPosition).normalize();return-(Math.atan2(t.x,t.y)*l.DEG)}}).prototype,"nav",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(y.prototype,"icon",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(y.prototype,"distanceLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=y))||d));i._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Pack.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,n,a,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Sprite,a=e._decorator,c=e.Component}],execute:function(){var s,o,u,p,l;r._RF.push({},"73ca2yFPFdBHpXwUJCVte6b","Hud_Pack",void 0);const{ccclass:d,property:_}=a;e("Hud_Pack",(s=d("Hud_Pack"),o=_({type:n,displayName:"环形进度"}),s((l=t((p=class extends c{constructor(...e){super(...e),i(this,"ring",l,this)}onLoad(){My.Event.on(My.events.update_pack_weight,this.update_Used,this),this.update_Used()}update_Used(){this.ring.fillRange=My.Pack.packInfo.getWeightRatio}}).prototype,"ring",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=p))||u));r._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Reload.ts",["cc","./ItemDefine.ts","./GameDefine.ts"],(function(e){"use strict";var o,t,s,a;return{setters:[function(e){o=e.cclegacy,t=e._decorator},function(e){s=e.WuqiType},function(e){a=e.Hud_Base}],execute:function(){var c;o._RF.push({},"fe5549/p45IL6f6xkqZXbJN","Hud_Reload",void 0);const{ccclass:n,property:i}=t;e("Hud_Reload",n("Hud_Reload")(c=class extends a{init(){this.node.on("click",this.onClick_Reload,this)}onClick_Reload(){My.Player.weaponType!=s.近战&&(My.Player.action_Has()||(My.Player.getAmmoCount()>0?My.Player.weapon.reload():My.Msg.showMessage(My.msgcode.无备弹)))}})||c);o._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Skill.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(t){"use strict";var i,e,l,s,n,a,r,c,o;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){l=t.cclegacy,s=t.CCInteger,n=t.Button,a=t.Node,r=t.Label,c=t._decorator},function(t){o=t.Hud_Base}],execute:function(){var u,d,h,p,b,y,k,_,f,g,m;l._RF.push({},"22e624x0/ZNer0RjjcYsr0t","Hud_Skill",void 0);const{ccclass:v,property:S}=c;t("Hud_Skill",(u=v("Hud_Skill"),d=S({type:s,displayName:"ID"}),h=S({type:n,displayName:"按钮"}),p=S({type:a,displayName:"遮罩"}),b=S({type:r,displayName:"冷却"}),u((_=i((k=class extends o{constructor(...t){super(...t),e(this,"id",_,this),e(this,"button",f,this),e(this,"mask",g,this),e(this,"cdLabel",m,this),this.data=null,this.cd=0}init(){this.data=My.Setting.getSkillConfig(this.id),My.Event.on(My.events.play_init,this.skill_Init,this)}skill_Init(){this.cd=0,this.mask.active=!1,this.cdLabel.node.active=!1,this.button.interactable=!0,this.unscheduleAllCallbacks()}skill_CD(){this.cd=this.data.cd,this.cdLabel.string=this.cd.toString(),this.schedule((()=>{this.cd-=.1,this.cd>=1?this.cdLabel.string=this.cd.toFixed(0):this.cd>0?this.cdLabel.string=this.cd.toFixed(1):this.skill_Init()}),.1)}onclick_Skill(){this.button.interactable=!1,this.mask.active=!0,this.cdLabel.node.active=!0,this.skill_CD(),My.Player.Instance.use_SkillItem(this.data)}}).prototype,"id",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),f=i(k.prototype,"button",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=i(k.prototype,"mask",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=i(k.prototype,"cdLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=k))||y));l._RF.pop()}}}));

System.register("chunks:///_virtual/Hud_Thrown.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./Option_Thrown.ts","./Joystick_Thrown.ts"],(function(t){"use strict";var i,e,n,s,o,l,a,r,h,u;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Sprite,o=t.Label,l=t.Node,a=t._decorator},function(t){r=t.Hud_Base},function(t){h=t.Option_Thrown},function(t){u=t.Joystick_Thrown}],execute:function(){var c,d,p,f,y,w,b,m,_,g,M,v,N,k,S,L,T;n._RF.push({},"9b696LdqQBFW4dtAnXtqctx","Hud_Thrown",void 0);const{ccclass:z,property:j}=a;t("Hud_Thrown",(c=z("Hud_Thrown"),d=j({type:s,displayName:"图标"}),p=j({type:o,displayName:"名称"}),f=j({type:o,displayName:"数量"}),y=j({type:l,displayName:"箭头"}),w=j({type:l,displayName:"列表"}),b=j({type:u,displayName:"摇杆"}),m=j({type:[h],displayName:"选项"}),c((M=i((g=class extends r{constructor(...t){super(...t),e(this,"icon",M,this),e(this,"nameLabel",v,this),e(this,"countLabel",N,this),e(this,"arrow",k,this),e(this,"listNode",S,this),e(this,"joystick",L,this),e(this,"options",T,this),this.unfold=!1,this.thrown=null,this.infos=[]}init(){this.unfold=!1,this.joystick.hide(),this.listNode.active=!1,this.options.forEach((t=>{t.init()})),My.Event.on(My.events.play_init,this.reset,this),My.Event.on(My.events.update_thrown_all,this.update_Data,this)}reset(){this.thrown=null,this.update_Select()}unfold_State(t){this.unscheduleAllCallbacks(),null!=t?(this.unfold=t,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0):(this.unfold=!this.unfold,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0,this.unfold&&this.scheduleOnce((()=>{this.unfold=!1,this.listNode.active=this.unfold,this.arrow.angle=this.unfold?180:0}),5))}thrown_Select(t){this.thrown=t,this.update_Select(),this.unfold_State(!1)}update_Data(){if(this.infos=[],this.options.forEach((t=>{t.hide()})),this.infos=My.Pack.Instance.getThrownAll(),this.infos.length>0)for(let t=0;t<this.infos.length;t++)this.options[t].show(this,this.infos[t]);this.update_Select()}async update_Select(){My.Player.thrownItem=this.thrown,null!=this.thrown?(this.thrown.count>0?this.joystick.show():this.joystick.hide(),this.nameLabel.node.active=!1,this.icon.spriteFrame=await My.Item.Instance.getItemIcon(this.thrown.image),this.countLabel.string=this.thrown.count.toString()):(this.joystick.hide(),this.icon.spriteFrame=null,this.countLabel.string="",this.nameLabel.string="投掷物",this.nameLabel.node.active=!0)}onClick_Unfold(){My.Sound.playSfx(My.sounds.ui_click_common),My.Player.action_Has()||(this.infos.length>0?this.unfold_State():My.Msg.showMessage(My.msgcode.无投掷物))}}).prototype,"icon",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=i(g.prototype,"nameLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=i(g.prototype,"countLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(g.prototype,"arrow",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=i(g.prototype,"listNode",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=i(g.prototype,"joystick",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=i(g.prototype,"options",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=g))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/HuobiConfig.ts",["cc","./ItemConfig.ts"],(function(o){"use strict";var t,i,c;return{setters:[function(o){t=o.cclegacy,i=o._decorator},function(o){c=o.ItemConfig}],execute:function(){var n;t._RF.push({},"60a94pofIpL9raEiAVpmj/A","HuobiConfig",void 0);const{ccclass:e,property:s}=i;o("HuobiConfig",e("HuobiConfig")(n=class extends c{})||n);t._RF.pop()}}}));

System.register("chunks:///_virtual/hw.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var t,i,n,s,d,a,o;return{setters:[function(e){t=e.director,i=e.macro,n=e.find,s=e.cclegacy,d=e.Enum},function(e){a=e.AdIDS,o=e.default}],execute:function(){s._RF.push({},"1c6e6QNwrNFuJY87UUmgcDX","hw",void 0);const r=d({NONE:0,LOAD:1,SUCCESS:2});class l{static init(){var e=this;qg.getSystemInfo({success:function(t){console.log(`handling success， screenWidth = ${t.screenWidth}， screenHeight = ${t.screenHeight}`),e.screenWidth=t.screenWidth,e.screenHeight=t.screenHeight}});var t=qg.getSystemInfoSync();this.windowWidth=t.windowWidth,this.windowHeight=t.windowHeight,console.log("systemInfo:"+t)}static timeAd(){1==window.sdk.nPlane?this.openNative():window.sdk.nPlane}static changeState(e){console.log("changeState:"+e),1==e&&(!a[o.HW].bTest&&1!=window.sdk.adSwitch||null!=this.rewardAd||this.rewardInit(),null==this.bannerAd&&this.bannerInit(),null==this.nativeAd&&this.nativeInit()),1==window.sdk.adSwitch&&(null==this.scheduler&&0!=window.sdk.nPlane&&(this.scheduler=t.getScheduler(),this.scheduler.enableForTarget(this),this.scheduler.schedule(this.timeAd,this,window.sdk.nativeCd,i.REPEAT_FOREVER,window.sdk.nativeCd,!1)),0==window.sdk.nPlane?1==e?0==this.adNumber&&(this.openBanner(),this.adNumber++,this.openNative()):2==e&&this.hideBanner():(1==e?this.openBanner():this.hideBanner(),2!=e&&this.openNative()))}static nativeInit(){let e=this;if(qg.createNativeAd){var t=a[o.HW].nativeId;a[o.HW].bTest&&(t=a[o.HW].testNativeId),this.nativeAd=qg.createNativeAd({adUnitId:t}),this.nativeAd.onLoad((function(t){t&&t.adList?(console.log("hw 原生广告加载完成",JSON.stringify(t.adList)),n("NativeMgr/NativeAd").getComponent("NativeAd").show(t.adList,e.nativeAd),1==window.sdk.adSwitch&&1==window.sdk.nPlane&&(e.scheduler.unschedule(e.timeAd,e),e.scheduler.schedule(e.timeAd,e,window.sdk.nativeCd,i.REPEAT_FOREVER,window.sdk.nativeCd,!1))):console.log("hw 原生广告加载失败")})),this.nativeAd.onError((function(e){console.log("hw 原生广告失败",JSON.stringify(e))}))}}static openNative(){this.nativeAd.load()}static bannerInit(){if(qg.createBannerAd){console.log("bannerInit");var e=a[o.HW].bannerId,t=30;a[o.HW].bTest&&(e=a[o.HW].testBannerId,t=120),0==this.bannerPos?this.bannerAd=qg.createBannerAd({adUnitId:e,style:{top:0,left:this.windowWidth-360,height:57,width:360},adIntervals:t}):this.bannerAd=qg.createBannerAd({adUnitId:e,style:{top:this.windowHeight-57,left:0,height:57,width:360},adIntervals:t}),this.bannerAd.onError((function(e){console.log("hw 横幅加载失败",JSON.stringify(e))})),this.bannerAd.onResize((function(e){console.log("hw 横幅尺寸：",e.width+","+e.height),this.bannerAd.style.width=180})),this.bannerAd.onLoad((function(){console.log("hw 横幅加载成功"),this.bannerAd.style.width=180}))}}static openBanner(){this.bannerAd&&this.bannerAd.show()}static hideBanner(){this.bannerAd&&this.bannerAd.hide()}static rewardInit(){if(qg.createRewardedVideoAd){console.log("hw rewardInit");var e=this,t=a[o.HW].rewardId;a[o.HW].bTest&&(t=a[o.HW].testRewardId),this.rewardAd=qg.createRewardedVideoAd({adUnitId:t}),this.rewardAd.onLoad((()=>{console.log("HwReward onLoad"),e.rewardState=r.SUCCESS})),this.rewardAd.onError((function(t){console.error("HwRewardload ad error:"+JSON.stringify(t));let i=t.errCode;1100==i?e.showTip("广告请求频繁"):1004==i||e.showTip("广告加载失败"),e.rewardCallback&&e.rewardCallback("fail"),e.bClickVideo?e.rewardState=r.NONE:(e.rewardAd.load(),e.rewardState=r.LOAD),e.bClickVideo=!0})),this.rewardAd.onClose((function(t){t&&t.isEnded?(console.log("HwReward success"),e.rewardCallback&&e.rewardCallback("success")):(console.log("HwReward cancel"),e.rewardCallback&&e.rewardCallback("cancel")),e.rewardAd.load(),e.rewardState=r.LOAD,e.bClickVideo=!0})),this.rewardAd.load(),e.rewardState=r.LOAD}}static openVideo(e){this.offSound(),this.rewardCallback=e;var t=()=>{e&&e("fail"),this.onSound()};if(this.bClickVideo){if(this.rewardState==r.NONE)return this.showTip("广告加载失败"),t(),this.rewardAd.load(),void(this.rewardState=r.LOAD);if(this.rewardState==r.LOAD)return this.showTip("广告加载中"),void t();this.bClickVideo=!1,this.rewardAd.show()}else t()}static showTip(e){console.log("showTip:"+e),qg.showToast({title:e})}static showDialog(e,t,i){qg.showModal({title:e,content:t,success(e){e.confirm?(console.log("用户点击确定"),i&&i()):e.cancel&&console.log("用户点击取消")}})}static installShortcut(){qg.hasShortcutInstalled({success:function(e){console.log("hasInstalledsuccess： "+e),e?window.sdk.showTip("已创建桌面图标"):qg.installShortcut({success:function(e){console.log("handling install success")},fail:function(e,t){console.log("handling install fail: "+e+", errocode: "+t)},complete:function(){console.log("handling install  complete")}})},fail:function(e){console.log("hasInstalled fail: "+e)},complete:function(){console.log("hasInstalled complete")}})}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}e("default",l),l.screenWidth=0,l.screenHeight=0,l.windowWidth=0,l.windowHeight=0,l.bannerAd=void 0,l.bannerPos=1,l.rewardAd=void 0,l.rewardCallback=void 0,l.bClickVideo=!0,l.rewardState=r.NONE,l.nativeAd=void 0,l.adNumber=0,l.scheduler=null,s._RF.pop()}}}));

System.register("chunks:///_virtual/InfoItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./UIDefine.ts"],(function(e){"use strict";var s,t,i,a,n,o,r,h,f,c,b;return{setters:[function(e){s=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e._decorator,n=e.Component},function(e){o=e.ItemType,r=e.PeijianType,h=e.FangjuType},function(e){f=e.InfoItemParam,c=e.InfoItemType,b=e.InfoColor}],execute:function(){var l,p,I,m,x;i._RF.push({},"8185dCZpTVCo69s73MApS5q","InfoItem",void 0);const{ccclass:k,property:d}=a;e("InfoItem",(l=k("InfoItem"),p=d({type:[f],displayName:"信息对象"}),l((x=s((m=class extends n{constructor(...e){super(...e),t(this,"items",x,this),this.index=0,this.info=void 0}show(e){switch(this.index=0,this.info=e,this.node.active=!1,this.items.forEach((e=>{e.obj.active=!1})),e.type){case o.武器:this.setInfo(c.弹药口径),this.setInfo(c.射速),this.setInfo(c.射程),this.setInfo(c.精度),this.setInfo(c.击发威力),this.setInfo(c.弹匣容量),this.setInfo(c.人机功效),this.node.active=!0;break;case o.防具:e.kind==h.背包?this.setInfo(c.负重加成):(this.setInfo(c.穿透抗性),this.setInfo(c.移动速度),this.setInfo(c.人机功效)),this.node.active=!0;break;case o.配件:switch(e.kind){case r.枪口:this.setInfo(c.枪声抑制),this.setInfo(c.射击精度),this.setInfo(c.人机功效);break;case r.握把:this.setInfo(c.射击精度),this.setInfo(c.人机功效);break;case r.弹匣:this.setInfo(c.弹匣容量),this.setInfo(c.人机功效);break;case r.枪托:this.setInfo(c.人机功效);break;case r.瞄准镜:this.setInfo(c.放大倍率),this.setInfo(c.人机功效)}this.node.active=!0;break;case o.药品:this.setInfo(c.启用时间),e.duration>0?this.setInfo(c.持续时间):this.setInfo(c.治疗速率),this.node.active=!0;break;case o.子弹:this.setInfo(c.基础伤害),this.setInfo(c.子弹穿透),this.setInfo(c.护甲耐久伤害),this.node.active=!0}}setInfo(e){if(this.index>=this.items.length)return;let s=this.items[this.index];switch(s.nameLabel.string=c[e],e){case c.弹药口径:s.infoLabel.string=this.parseText(b.默认,Tool.CommonUtil.ParseAmmo(this.info.ammo));break;case c.射速:s.infoLabel.string=this.parseText(b.默认,this.info.rateStr);break;case c.射程:s.infoLabel.string=this.parseText(b.默认,this.info.range);break;case c.精度:s.infoLabel.string=this.parseText(b.默认,this.info.moa);break;case c.击发威力:s.infoLabel.string=this.parseText(b.默认,this.info.atkadd);break;case c.弹匣容量:switch(this.info.type){case o.武器:this.info.rdsExtra>0?s.infoLabel.string=this.parseText(b.默认,this.info.rdsBase)+this.parseText(b.绿色,"+",this.info.rdsExtra):s.infoLabel.string=this.parseText(b.默认,this.info.rdsBase);break;case o.配件:s.infoLabel.string=this.parseText(b.绿色,"+",this.info.rdsBase)}break;case c.人机功效:s.infoLabel.string=this.parseText(b.默认,this.info.ergonomic);break;case c.穿透抗性:s.infoLabel.string=this.parseText(b.默认,this.info.kct);break;case c.移动速度:s.infoLabel.string=this.parseText(b.默认,this.info.move);break;case c.负重加成:s.infoLabel.string=this.parseText(b.默认,this.info.fuzhong);break;case c.基础伤害:s.infoLabel.string=this.parseText(b.默认,this.info.damage);break;case c.子弹穿透:s.infoLabel.string=this.parseText(b.默认,this.info.pierce);break;case c.护甲耐久伤害:s.infoLabel.string=this.parseText(b.默认,this.info.endDamage);break;case c.治疗速率:s.infoLabel.string=this.parseText(b.绿色,this.info.medicalValue)+this.parseText(b.默认," /秒");break;case c.启用时间:s.infoLabel.string=this.parseText(b.绿色,this.info.medicalTime)+this.parseText(b.默认," 秒");break;case c.伤害减免:s.infoLabel.string=this.parseText(b.绿色,this.info.medicalValue,"%");break;case c.持续时间:s.infoLabel.string=this.parseText(b.绿色,30)+this.parseText(b.默认," 秒");break;case c.移速加成:s.infoLabel.string=this.parseText(b.绿色,this.info.medicalValue,"%");break;case c.枪声抑制:s.infoLabel.string=this.parseText(b.默认,this.info.voice);break;case c.射击精度:s.infoLabel.string=this.parseText(b.默认,this.info.moa);break;case c.放大倍率:s.infoLabel.string=this.parseText(b.默认,this.info.mult)}this.index+=1,s.obj.active=!0}parseText(e,...s){let t="";switch(e){case b.默认:t+="<color=#8E8E8E>";break;case b.绿色:t+="<color=#00F900>";break;case b.红色:t+="<color=#D04646>"}return s.forEach((e=>{t+=e})),t+="</color>",t}}).prototype,"items",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),I=m))||I));i._RF.pop()}}}));

System.register("chunks:///_virtual/ItemConfig.ts",["cc","./ItemDefine.ts"],(function(t){"use strict";var i,e,s,o;return{setters:[function(t){i=t.cclegacy,e=t._decorator},function(t){s=t.ItemType,o=t.ItemQuality}],execute:function(){var c;i._RF.push({},"863ec03T1RLxoNzr1pcYTUd","ItemConfig",void 0);const{ccclass:n,property:r}=e;t("ItemConfig",n("ItemConfig")(c=class{constructor(){this.id=void 0,this.name=void 0,this.type=s.武器,this.quality=o.破损,this.image=void 0,this.desc=void 0,this.buy=void 0,this.sell=void 0,this.weight=void 0,this.stack=void 0,this.get_way=void 0}})||c);i._RF.pop()}}}));

System.register("chunks:///_virtual/ItemDefine.ts",["cc"],(function(m){"use strict";var i;return{setters:[function(m){i=m.cclegacy}],execute:function(){let e,n,o,t,c,u,p,T,y,s,x,a,d;m({AmmoType:void 0,BaoxiangType:void 0,FangjuType:void 0,GoodsType:void 0,ItemQuality:void 0,ItemType:void 0,PeijianType:void 0,SkinFilterType:void 0,SkinType:void 0,TagType:void 0,TouzhiType:void 0,WuqiType:void 0,YaopinType:void 0}),i._RF.push({},"8e680BsvV1PbZUvbHMXHiTX","ItemDefine",void 0),function(m){m[m["破损"]=0]="破损",m[m["修复"]=1]="修复",m[m["完好"]=2]="完好",m[m["改进"]=3]="改进",m[m["精品"]=4]="精品",m[m["杰作"]=5]="杰作"}(e||(e=m("ItemQuality",{}))),function(m){m[m["武器"]=0]="武器",m[m["防具"]=1]="防具",m[m["配件"]=2]="配件",m[m["药品"]=3]="药品",m[m["子弹"]=4]="子弹",m[m["投掷物"]=5]="投掷物",m[m["杂物"]=6]="杂物",m[m["宝箱"]=7]="宝箱",m[m["货币"]=8]="货币"}(n||(n=m("ItemType",{}))),function(m){m[m["突击步枪"]=0]="突击步枪",m[m["冲锋枪"]=1]="冲锋枪",m[m["栓动步枪"]=2]="栓动步枪",m[m["射手步枪"]=3]="射手步枪",m[m["霰弹枪"]=4]="霰弹枪",m[m["轻机枪"]=5]="轻机枪",m[m["手枪"]=6]="手枪",m[m["近战"]=7]="近战",m[m["弓弩"]=8]="弓弩",m[m["榴弹发射器"]=9]="榴弹发射器"}(o||(o=m("WuqiType",{}))),function(m){m[m["枪口"]=0]="枪口",m[m["握把"]=1]="握把",m[m["弹匣"]=2]="弹匣",m[m["枪托"]=3]="枪托",m[m["瞄准镜"]=4]="瞄准镜"}(t||(t=m("PeijianType",{}))),function(m){m[m["护具"]=0]="护具",m[m["头盔"]=1]="头盔",m[m["背包"]=2]="背包"}(c||(c=m("FangjuType",{}))),function(m){m[m.mm545x39=0]="mm545x39",m[m.mm556x45=1]="mm556x45",m[m.mm58x42=2]="mm58x42",m[m.mm762x39=3]="mm762x39",m[m.mm762x51=4]="mm762x51",m[m.mm762x54=5]="mm762x54",m[m.mm9x19=6]="mm9x19",m[m.mm12x70=7]="mm12x70",m[m.mm338=8]="mm338",m[m.mm762x25=9]="mm762x25",m[m.mm45=10]="mm45",m[m.mm57x28=11]="mm57x28",m[m.mm9x39=12]="mm9x39",m[m.mm127x99=13]="mm127x99",m[m.mm44=14]="mm44"}(u||(u=m("AmmoType",{}))),function(m){m[m["碎片手榴弹"]=0]="碎片手榴弹",m[m["燃烧瓶"]=1]="燃烧瓶",m[m["烟雾弹"]=2]="烟雾弹",m[m["震撼弹"]=3]="震撼弹"}(p||(p=m("TouzhiType",{}))),function(m){m[m["加速BUFF类"]=0]="加速BUFF类",m[m["减伤BUFF类"]=1]="减伤BUFF类",m[m["生命治疗品"]=2]="生命治疗品",m[m["恢复BUFF类"]=3]="恢复BUFF类",m[m["负重BUFF类"]=4]="负重BUFF类"}(T||(T=m("YaopinType",{}))),function(m){m[m["随机宝箱"]=0]="随机宝箱",m[m["套装宝箱"]=1]="套装宝箱"}(y||(y=m("BaoxiangType",{}))),function(m){m[m["武器词条"]=0]="武器词条",m[m["防弹衣词条"]=1]="防弹衣词条",m[m["头盔词条"]=2]="头盔词条",m[m["背包词条"]=3]="背包词条"}(s||(s=m("TagType",{}))),function(m){m[m["角色皮肤"]=0]="角色皮肤",m[m["枪械皮肤"]=1]="枪械皮肤",m[m["近战皮肤"]=2]="近战皮肤"}(x||(x=m("SkinType",{}))),function(m){m[m["全部"]=0]="全部",m[m["已拥有"]=1]="已拥有",m[m["未拥有"]=2]="未拥有"}(a||(a=m("SkinFilterType",{}))),function(m){m[m["装扮皮肤"]=0]="装扮皮肤",m[m["武器皮肤"]=1]="武器皮肤",m[m["特殊道具"]=2]="特殊道具"}(d||(d=m("GoodsType",{})));m("SkinParam",class{constructor(){this.id=void 0,this.lv=0,this.loaded=0}});m("ItemData",class{constructor(){this.id=void 0,this.end=void 0,this.count=void 0,this.tags=[],this.acc=[-1,-1,-1,-1,-1]}}),i._RF.pop()}}}));

System.register("chunks:///_virtual/ItemInfo.ts",["cc","./ItemDefine.ts"],(function(t){"use strict";var e,i,n;return{setters:[function(t){e=t.cclegacy,i=t._decorator},function(t){n=t.ItemType}],execute:function(){var r;t("ItemStoredType",void 0),e._RF.push({},"45431TH8wlNqZCpfGvAZliJ","ItemInfo",void 0);const{ccclass:a,property:s}=i;let c;t("ItemInfo",a("ItemInfo")(r=class{constructor(){this.config=void 0,this.data=void 0,this.stored=void 0,this.tagDatas=[]}get id(){return this.config.id}get type(){return this.config.type}get kind(){return this.config.kind}get name(){return this.config.name}get quality(){return this.config.quality}get image(){return this.config.image}get desc(){return this.config.desc}get reward(){return this.config.reward}get tags(){return this.data.tags.length>0&&this.tagDatas.length<=0&&this.data.tags.forEach((t=>{let e=My.Item.Instance.getTagConfig(t);this.tagDatas.push(e)})),this.tagDatas}get buy(){return this.config.buy}get sell(){return this.config.sell||0}get stacked(){return this.config.stack>1}get ammo(){return this.config.ammo}get acc(){return this.config.acc}get accData(){return this.data.acc}get accSight(){return this.config.acc_sight}get accMuzzle(){return this.config.acc_muzzle}get count(){return this.data.count}get weight(){return this.config.weight}get totalWeight(){return Tool.CommonUtil.ParseProductNumber(this.config.weight*this.data.count)}get end(){return this.data.end}get endStr(){return null==this.config.end?"∞":this.data.end+"/"+this.config.end}get endRatio(){return null==this.config.end?0:this.data.end/this.config.end}get fuzhong(){return this.config.fz}get match(){return this.config.match}get reload(){return this.config.reload}get moa(){return null==this.config.moa?0:this.config.moa}get range(){return this.config.range}get radius(){return null==this.config.radius?0:this.config.radius}get speed(){return this.config.speed}get damage(){return this.config.damage}get atkadd(){return this.config.atkadd}get pierce(){return this.config.ct}get kct(){return this.config.kct}get rate(){return parseFloat((60/this.config.rate).toFixed(2))}get rateStr(){return this.config.rate+"发/分钟"}get rds(){let t=this.config.rds,e=this.data.acc[2];return e>0&&(t+=My.Item.Instance.getItemConfig(e).rds),t}get rdsBase(){return null==this.config.rds?0:this.config.rds}get rdsExtra(){let t=this.data.acc[2];return t>0?My.Item.Instance.getItemConfig(t).rds:0}get countered(){return this.config.stack>1?this.data.count>1:this.config.id>9e4}get canEquipped(){return this.config.type==n.武器||this.config.type==n.防具||this.config.type==n.配件}get canRestore(){return null!=this.config.end&&this.data.end<this.config.end}get restorePrice(){return Math.floor((this.config.end-this.data.end)/this.config.end*this.sell*.5)}get medicalValue(){return this.config.value}get medicalTime(){return this.config.time}get medicalReduce(){return 0|this.config.reduce}get duration(){return 0|this.config.duration}get ergonomic(){return 0|this.config.ergonomic}get endDamage(){return 0|this.config.end_damage}get move(){return 0|this.config.move}get voice(){return null==this.config.voice?"无":this.config.voice}get mult(){return 0|this.config.aim_mult}compareType(t){return this.config.type==t}compareKind(t){return this.config.kind==t}addCount(t){if(this.data.count+=t,this.data.count>999){let t=this.data.count-999;return this.data.count=999,t}return 0}lessCount(t){this.data.count-=t,this.data.count<0&&(this.data.count=0)}lessEnd(t){return this.data.end-=t,this.data.end<0&&(this.data.end=0),this.data.end<=0}restoreEnd(){this.data.end=this.config.end}getAcc(t){return this.data.acc[t]}setAcc(t,e){this.data.acc[t]=e}})||r);!function(t){t[t["未知"]=0]="未知",t[t["仓库"]=1]="仓库",t[t["装备"]=2]="装备",t[t["背包"]=3]="背包",t[t["加密箱"]=4]="加密箱",t[t["丢弃"]=5]="丢弃",t[t["箱子"]=6]="箱子"}(c||(c=t("ItemStoredType",{}))),e._RF.pop()}}}));

System.register("chunks:///_virtual/ItemPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./ItemInfo.ts","./AccItem.ts","./InfoItem.ts","./TagItem.ts","./UIDefine.ts","./GameDefine.ts","./PopupBase.ts"],(function(t){"use strict";var a,e,s,i,c,n,o,r,p,h,m,l,y,u,d,D,I,v,k,g,M;return{setters:[function(t){a=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){s=t.cclegacy,i=t.UIOpacity,c=t.Node,n=t._decorator,o=t.Layout,r=t.tween,p=t.Vec3,h=t.easing},function(t){m=t.ItemQuality,l=t.ItemType,y=t.PeijianType},function(t){u=t.ItemStoredType},function(t){d=t.AccItem},function(t){D=t.InfoItem},function(t){I=t.TagItem},function(t){v=t.ItemPopupParam,k=t.PopupType},function(t){g=t.GameScene},function(t){M=t.PopupBase}],execute:function(){var B,_,f,T,b,P,w,S,C,q,L,x,N,W,E;s._RF.push({},"e9ceeiHCOBNpYcZ3L9kxCQD","ItemPopup",void 0);const{ccclass:F,property:G}=n;t("ItemPopup",(B=F("ItemPopup"),_=G({type:i,displayName:"透明度组件"}),f=G({type:c,displayName:"内容"}),T=G({type:v,displayName:"参数"}),b=G({type:d,displayName:"配件"}),P=G({type:D,displayName:"信息"}),w=G({type:I,displayName:"词条"}),B((q=a((C=class extends M{constructor(...t){super(...t),e(this,"opacityCom",q,this),e(this,"content",L,this),e(this,"param",x,this),e(this,"acc",N,this),e(this,"info",W,this),e(this,"tag",E,this),this.using=!1,this.layout=null,this.lastData=void 0}init(){this.using=!1,this.node.active=!1,this.layout=this.content.getComponent(o),My.Event.on(My.events.pop_hide_all,this.hide,this),My.Event.on(My.events.pop_item,this.pop_State,this),My.Event.on(My.events.update_item_info,this.updateData,this)}show(t){this.updateData(t),this.content.setPosition(0,2e3),this.content.setScale(1,.8),this.opacityCom.opacity=0,this.node.active=!0,this.using=!0,this.content.getComponent(o).updateLayout(),this.scheduleOnce((()=>{this.content.setPosition(0,0),r(this.opacityCom).to(.2,{opacity:255}).start(),r(this.content).to(.25,{scale:p.ONE},{easing:h.backOut}).call((()=>{this.using=!1})).start()}),.1)}hide(){this.node.active=!1}async updateData(t){if(t){if(this.lastData!=t){switch(this.lastData=t,this.param.nameLabel.string=t.name,this.param.price.string=t.sell.toString(),this.param.quality.color=My.Item.Instance.getQualityColor(t.quality),this.param.quality.string=m[t.quality],this.param.weight.string=t.weight+"KG",this.param.desc.string=t.desc,t.type){case l.武器:this.param.image.spriteFrame=await My.Item.Instance.getItemSlot(t.image),this.param.other.string="耐久: "+t.endStr;break;case l.防具:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string="耐久: "+t.endStr;break;case l.配件:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string="类型: "+y[t.kind]+"配件";break;case l.药品:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string="耐久: "+t.endStr;break;case l.子弹:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string="口径: "+Tool.CommonUtil.ParseAmmo(t.kind);break;case l.投掷物:case l.杂物:case l.宝箱:case l.货币:this.param.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.param.other.string=""}this.btn_State(),this.tag.show(t.tags)}this.info.show(t),t.type==l.武器?this.acc.show(t):this.acc.hide(),this.layout.updateLayout(!1)}}pop_State(t){t?this.show(t):this.hide()}btn_State(){switch(this.lastData.stored){case u.仓库:this.param.equipBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具)||this.lastData.compareType(l.配件),this.param.toPackBtn.active=this.lastData.compareType(l.药品)||this.lastData.compareType(l.子弹)||this.lastData.compareType(l.投掷物),this.param.restoreBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具),this.param.toWhsBtn.active=!1,this.param.toLockBtn.active=!1,this.param.usedBtn.active=!1,this.param.unloadBtn.active=!1,this.param.sellBtn.active=!0,this.param.discardBtn.active=!1;break;case u.装备:switch(My.Game.scene){case g.主页:this.param.toPackBtn.active=!1,this.param.toWhsBtn.active=!1,this.param.toLockBtn.active=!1,this.param.usedBtn.active=!1,this.param.equipBtn.active=!1,this.param.unloadBtn.active=!0,this.param.restoreBtn.active=!0,this.param.sellBtn.active=!0,this.param.discardBtn.active=!1;break;case g.对局:this.param.toPackBtn.active=!1,this.param.toWhsBtn.active=!1,this.param.toLockBtn.active=!1,this.param.usedBtn.active=!1,this.param.equipBtn.active=!1,this.param.unloadBtn.active=!0,this.param.restoreBtn.active=!1,this.param.sellBtn.active=!1,this.param.discardBtn.active=!0}break;case u.背包:switch(My.Game.scene){case g.主页:this.param.toWhsBtn.active=this.lastData.compareType(l.药品)||this.lastData.compareType(l.子弹)||this.lastData.compareType(l.投掷物)||this.lastData.compareType(l.配件)||this.lastData.compareType(l.杂物),this.param.equipBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具)||this.lastData.compareType(l.配件),this.param.restoreBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具),this.param.toPackBtn.active=!1,this.param.toLockBtn.active=!1,this.param.usedBtn.active=!1,this.param.unloadBtn.active=!1,this.param.sellBtn.active=!0,this.param.discardBtn.active=!1;break;case g.对局:this.param.equipBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具)||this.lastData.compareType(l.配件),this.param.toLockBtn.active=this.lastData.compareType(l.杂物),this.param.usedBtn.active=this.lastData.compareType(l.药品),this.param.toWhsBtn.active=!1,this.param.toPackBtn.active=!1,this.param.unloadBtn.active=!1,this.param.restoreBtn.active=!1,this.param.sellBtn.active=!1,this.param.discardBtn.active=!0}break;case u.加密箱:switch(My.Game.scene){case g.主页:this.param.toWhsBtn.active=this.lastData.compareType(l.药品)||this.lastData.compareType(l.子弹)||this.lastData.compareType(l.投掷物)||this.lastData.compareType(l.配件)||this.lastData.compareType(l.杂物),this.param.equipBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具)||this.lastData.compareType(l.配件),this.param.restoreBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具),this.param.toPackBtn.active=!1,this.param.toLockBtn.active=!1,this.param.usedBtn.active=!1,this.param.unloadBtn.active=!1,this.param.sellBtn.active=!0,this.param.discardBtn.active=!1;break;case g.对局:this.param.equipBtn.active=this.lastData.compareType(l.武器)||this.lastData.compareType(l.防具)||this.lastData.compareType(l.配件),this.param.usedBtn.active=this.lastData.compareType(l.药品),this.param.toPackBtn.active=this.lastData.compareType(l.杂物),this.param.toWhsBtn.active=!1,this.param.toLockBtn.active=!1,this.param.unloadBtn.active=!1,this.param.restoreBtn.active=!1,this.param.sellBtn.active=!1,this.param.discardBtn.active=!0}}}onClick_Close(){this.using||this.hide()}onClick_Equip(){switch(My.Sound.playSfx(My.sounds.ui_other_equip),this.lastData.stored){case u.仓库:My.Whs.Instance.whsItem_Equiped(this.lastData);break;case u.背包:My.Pack.Instance.packItem_Equiped(this.lastData);break;case u.加密箱:My.Pack.Instance.lockItem_Equiped(this.lastData)}this.hide()}onClick_Unload(){My.Sound.playSfx(My.sounds.ui_other_equip),My.Pack.Instance.equipItem_Unload(this.lastData,My.Game.scene),this.hide()}onClick_ToPack(){switch(My.Sound.playSfx(My.sounds.ui_other_stored),this.lastData.stored){case u.仓库:My.Whs.Instance.whsItem_to_Pack(this.lastData,this.lastData.count);break;case u.加密箱:My.Pack.Instance.lockItem_to_Pack(this.lastData,this.lastData.count)}this.hide()}onClick_ToWhs(){My.Sound.playSfx(My.sounds.ui_other_stored),My.Pack.Instance.packItem_to_Whs(this.lastData,this.lastData.count),this.hide()}onClick_ToLock(){My.Sound.playSfx(My.sounds.ui_other_stored),My.Pack.Instance.packItem_to_Lock(this.lastData,this.lastData.count),this.hide()}onClick_Used(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}onClick_Restore(){if(My.Sound.playSfx(My.sounds.ui_click_common),this.lastData.canRestore){let t=this.lastData.restorePrice;My.Game.Instance.gameBought(t)?(this.lastData.restoreEnd(),My.Data.savePackData(),My.Event.emit(My.events.update_equipment),My.Msg.showMessage(My.msgcode.维修完成+t+My.Item.Instance.getCurrencyName(1))):My.Msg.showMessage(My.Item.Instance.getCurrencyName(1)+My.msgcode.货币不足)}else My.Msg.showMessage(My.msgcode.维修完成+My.Item.Instance.getCurrencyName(1))}onClick_Sell(){if(My.Sound.playSfx(My.sounds.ui_click_common),this.lastData.countered)My.UI.Instance.showPopup(k.出售弹窗,this.lastData);else switch(this.lastData.stored){case u.仓库:My.Whs.Instance.whsItem_Sell(this.lastData,this.lastData.count,this.lastData.sell);break;case u.装备:My.Pack.Instance.equipItem_Sell(this.lastData,this.lastData.sell);break;case u.背包:My.Pack.Instance.packItem_Sell(this.lastData,this.lastData.count,this.lastData.sell);break;case u.加密箱:My.Pack.Instance.lockItem_Sell(this.lastData,this.lastData.count,this.lastData.sell)}this.hide()}onClick_Discard(){My.Sound.playSfx(My.sounds.ui_other_stored),this.lastData.stacked&&this.lastData.count>1?My.UI.Instance.showPopup(k.丢弃弹窗,this.lastData):this.lastData.stored==u.装备?My.Pack.Instance.equipItem_Discard(this.lastData,this.lastData.count):My.Pack.Instance.discardItem(this.lastData,this.lastData.count),this.hide()}}).prototype,"opacityCom",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=a(C.prototype,"content",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=a(C.prototype,"param",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new v}}),N=a(C.prototype,"acc",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=a(C.prototype,"info",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=a(C.prototype,"tag",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=C))||S));s._RF.pop()}}}));

System.register("chunks:///_virtual/Joystick_Skill.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,s,n,l,a,o,r,h,c,d,u;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Node,l=t.CCInteger,a=t.Label,o=t._decorator,r=t.Component,h=t.UITransform,c=t.Vec2,d=t.Vec3,u=t.v2}],execute:function(){var y,p,v,b,m,g,k,f,E,_,C,M,R,S,T;s._RF.push({},"7195aBERcVJN5vEF9+uRidr","Joystick_Skill",void 0);const{ccclass:L,property:N}=o;t("Joystick_Skill",(y=L("Joystick_Skill"),p=N({type:n,displayName:"区域"}),v=N({type:n,displayName:"触点"}),b=N({type:l,displayName:"范围"}),m=N({type:l,displayName:"ID"}),g=N({type:n,displayName:"遮罩"}),k=N({type:a,displayName:"冷却"}),y((_=i((E=class extends r{constructor(...t){super(...t),e(this,"range",_,this),e(this,"handle",C,this),e(this,"radius",M,this),e(this,"id",R,this),e(this,"mask",S,this),e(this,"cdLabel",T,this),this.cd=0,this.len=0,this.used=!1,this.data=null,this.transCom=void 0}init(){this.data=My.Setting.getSkillConfig(this.id),this.transCom=this.node.getComponent(h),My.Event.on(My.events.play_init,this.skill_Init,this)}onEnable(){this.range.active=!1,this.handle.active=!1,this.node.on(n.EventType.TOUCH_START,this.touchStart,this),this.node.on(n.EventType.TOUCH_MOVE,this.touchMove,this),this.node.on(n.EventType.TOUCH_END,this.touchEnd,this),this.node.on(n.EventType.TOUCH_CANCEL,this.touchEnd,this)}onDisable(){this.node.targetOff(this)}skill_Init(){this.cd=0,this.used=!1,this.mask.active=!1,this.cdLabel.node.active=!1,this.unscheduleAllCallbacks()}skill_CD(){this.cd=this.data.cd,this.cdLabel.string=this.cd.toString(),this.schedule((()=>{this.cd-=.1,this.cd>=1?this.cdLabel.string=this.cd.toFixed(0):this.cd>0?this.cdLabel.string=this.cd.toFixed(1):this.skill_Init()}),.1)}touchStart(t){this.handle.active=!0,this.range.active=!0,this.touchMove(t),My.Event.emit(My.events.play_skilljoy,c.ZERO,!0,!1)}touchMove(t){let i=t.getUILocation(),e=this.transCom.convertToNodeSpaceAR(new d(i.x,i.y)),s=this.clampRadius(e);this.handle.setPosition(s),My.Event.emit(My.events.play_skilljoy,this.covertVector(s),!0,!1)}touchEnd(t){this.range.active=!1,this.handle.active=!1,this.handle.setPosition(d.ZERO),this.used?My.Event.emit(My.events.play_skilljoy,c.ZERO,!1,!1):(this.len>.25&&(this.used=!0,this.mask.active=!0,this.cdLabel.node.active=!0,this.skill_CD()),My.Event.emit(My.events.play_skilljoy,c.ZERO,!1,!0))}clampRadius(t){let i=t.length(),e=new d(t.x,t.y,t.z);if(this.radius<i){let i=t.normalize();e.x=i.x*this.radius,e.y=i.y*this.radius}return e}covertVector(t){let i=u(t.x/this.radius,t.y/this.radius);return this.len=i.length(),i}}).prototype,"range",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(E.prototype,"handle",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=i(E.prototype,"radius",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),R=i(E.prototype,"id",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),S=i(E.prototype,"mask",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=i(E.prototype,"cdLabel",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=E))||f));s._RF.pop()}}}));

System.register("chunks:///_virtual/Joystick_Thrown.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,s,n,r,a,h,c,u,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Node,n=t.CCInteger,r=t._decorator,a=t.Component,h=t.UITransform,c=t.Vec2,u=t.Vec3,l=t.v2}],execute:function(){var y,d,p,v,m,E,T,f,_;o._RF.push({},"98683XQ5zZKtKk4pTmS3API","Joystick_Thrown",void 0);const{ccclass:w,property:C}=r;t("Joystick_Thrown",(y=w("Joystick_Thrown"),d=C({type:s,displayName:"区域"}),p=C({type:s,displayName:"触点"}),v=C({type:n,displayName:"范围"}),y((T=e((E=class extends a{constructor(...t){super(...t),i(this,"mask",T,this),i(this,"handle",f,this),i(this,"radius",_,this),this.transCom=void 0}onLoad(){this.transCom=this.node.getComponent(h)}onEnable(){this.node.on(s.EventType.TOUCH_START,this.touchStart,this),this.node.on(s.EventType.TOUCH_MOVE,this.touchMove,this),this.node.on(s.EventType.TOUCH_END,this.touchEnd,this),this.node.on(s.EventType.TOUCH_CANCEL,this.touchEnd,this)}onDisable(){this.node.targetOff(this)}show(){this.mask.active=!1,this.node.active=!0}hide(){this.node.active=!1}touchStart(t){this.mask.active=!0,this.touchMove(t),My.Event.emit(My.events.play_throwjoy,c.ZERO,!0,!1)}touchMove(t){let e=t.getUILocation(),i=this.transCom.convertToNodeSpaceAR(new u(e.x,e.y)),o=this.clampRadius(i);this.handle.setPosition(o),My.Event.emit(My.events.play_throwjoy,this.covertVector(o),!0,!1)}touchEnd(t){this.mask.active=!1,this.handle.setPosition(u.ZERO),My.Event.emit(My.events.play_throwjoy,c.ZERO,!1,!0)}clampRadius(t){let e=t.length(),i=new u(t.x,t.y,t.z);if(this.radius<e){let e=t.normalize();i.x=e.x*this.radius,i.y=e.y*this.radius}return i}covertVector(t){return l(t.x/this.radius,t.y/this.radius)}}).prototype,"mask",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(E.prototype,"handle",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(E.prototype,"radius",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),m=E))||m));o._RF.pop()}}}));

System.register("chunks:///_virtual/Joystick.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,s,o,n,a,r,h,c,y,l,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,o=t.Enum,n=t.Node,a=t.CCInteger,r=t._decorator,h=t.Component,c=t.UITransform,y=t.Vec2,l=t.Vec3,u=t.v2}],execute:function(){var p,d,v,m,E,M,b,g,f;t("JoyType",void 0),s._RF.push({},"6cde3Usg+BCObRY+yyh3CBb","Joystick",void 0);const{ccclass:C,property:_}=r;let T;!function(t){t[t["角色移动"]=0]="角色移动",t[t["武器射击"]=1]="武器射击",t[t["开镜瞄准"]=2]="开镜瞄准"}(T||(T=t("JoyType",{})));t("Joystick",(p=C("Joystick"),d=_({type:o(T),displayName:"摇杆类型"}),v=_({type:n,displayName:"摇杆手柄"}),m=_({type:a,displayName:"范围"}),p((b=e((M=class extends h{constructor(...t){super(...t),i(this,"type",b,this),i(this,"handle",g,this),i(this,"radius",f,this),this.transCom=void 0,this.pausing=!1}onLoad(){this.transCom=this.node.getComponent(c),My.Event.on(My.events.game_paused,this.onPaused,this)}onEnable(){this.node.on(n.EventType.TOUCH_START,this.touchStart,this),this.node.on(n.EventType.TOUCH_MOVE,this.touchMove,this),this.node.on(n.EventType.TOUCH_END,this.touchEnd,this),this.node.on(n.EventType.TOUCH_CANCEL,this.touchEnd,this)}onDisable(){this.node.targetOff(this),this.touchEnd(null)}onPaused(t){this.touchEnd(null),this.pausing=t}touchStart(t){if(!this.pausing){switch(this.type){case T.角色移动:My.Event.emit(My.events.play_movejoy,y.ZERO);break;case T.武器射击:My.Event.emit(My.events.play_shootjoy,!1);break;case T.开镜瞄准:}this.touchMove(t)}}touchMove(t){if(this.pausing)return;let e=t.getUILocation(),i=this.transCom.convertToNodeSpaceAR(new l(e.x,e.y)),s=this.clampRadius(i);switch(this.handle.setPosition(s),this.type){case T.角色移动:My.Event.emit(My.events.play_movejoy,this.covertVector(s));break;case T.武器射击:s.length()>10?My.Event.emit(My.events.play_shootjoy,!0,Tool.MathUtil.vectorCovertAngle(s)):My.Event.emit(My.events.play_shootjoy,!0);break;case T.开镜瞄准:}}touchEnd(t){if(!this.pausing){switch(this.type){case T.角色移动:My.Event.emit(My.events.play_movejoy,y.ZERO);break;case T.武器射击:My.Event.emit(My.events.play_shootjoy,!1,0);break;case T.开镜瞄准:}this.handle.setPosition(l.ZERO)}}clampRadius(t){let e=t.length(),i=new l(t.x,t.y,t.z);if(this.radius<e){let e=t.normalize();i.x=e.x*this.radius,i.y=e.y*this.radius}return i}covertVector(t){let e=t.normalize();return u(e.x,e.y)}}).prototype,"type",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return T.角色移动}}),g=e(M.prototype,"handle",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(M.prototype,"radius",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),E=M))||E));s._RF.pop()}}}));

System.register("chunks:///_virtual/Keydoor.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./SpaceAudio.ts","./WithItem.ts"],(function(e){"use strict";var t,i,n,o,r,s,a,l,c,u,h,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Collider2D,r=e.Sprite,s=e.CCInteger,a=e.SpriteFrame,l=e._decorator,c=e.Contact2DType},function(e){u=e.GameTags},function(e){h=e.SpaceAudio},function(e){y=e.WithItem}],execute:function(){var p,d,g,m,f,b,k,C,N,v,I,D,_,E,T;n._RF.push({},"4ddf0RKiZNJx4I+y+QJk2YV","Keydoor",void 0);const{ccclass:M,property:z}=l;e("Keydoor",(p=M("Keydoor"),d=z({type:o,displayName:"碰撞体"}),g=z({type:o,displayName:"触发器"}),m=z({type:r,displayName:"钥匙门"}),f=z({type:h,displayName:"播放器"}),b=z({type:s,displayName:"钥匙ID"}),k=z({type:[a],displayName:"图像"}),p((v=t((N=class extends y{constructor(...e){super(...e),i(this,"collider",v,this),i(this,"trigger",I,this),i(this,"door",D,this),i(this,"audio",_,this),i(this,"keyID",E,this),i(this,"images",T,this),this.key=void 0,this.unlocking=!1}load(){this.unlocking=!1,this.collider.enabled=!0,this.trigger.node.active=!0,this.door.spriteFrame=this.images[0],this.trigger.on(c.BEGIN_CONTACT,this.onBeginContact,this),this.trigger.on(c.END_CONTACT,this.onEndContact,this),this.key=My.Item.Instance.getItemConfig(this.keyID)}unlock(){this.unlocking||(My.Event.emit(My.events.play_keydoor,null),this.unlocking=!0,this.audio.play(),this.scheduleOnce((()=>{this.unlocked()}),6))}unlocked(){this.collider.enabled=!1,this.trigger.node.active=!1,this.door.spriteFrame=this.images[1],this.trigger.off(c.BEGIN_CONTACT,this.onBeginContact,this),this.trigger.off(c.END_CONTACT,this.onEndContact,this)}onBeginContact(e,t,i){this.unlocking||t.tag==u.玩家&&My.Event.emit(My.events.play_keydoor,this)}onEndContact(e,t,i){this.unlocking||t.tag==u.玩家&&My.Event.emit(My.events.play_keydoor,null)}}).prototype,"collider",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(N.prototype,"trigger",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(N.prototype,"door",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(N.prototype,"audio",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(N.prototype,"keyID",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 98e3}}),T=t(N.prototype,"images",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=N))||C));n._RF.pop()}}}));

System.register("chunks:///_virtual/LevelItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,a,s,l,o,r,c,p;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Sprite,s=e.Label,l=e.Node,o=e.CCInteger,r=e.SpriteFrame,c=e._decorator,p=e.Component}],execute:function(){var u,h,m,d,y,v,f,_,b,M,g,k,L;n._RF.push({},"fbb52+tQkFKU71X6rUaQEgY","LevelItem",void 0);const{ccclass:N,property:S}=c;e("LevelItem",(u=N("LevelItem"),h=S({type:a,displayName:"底图"}),m=S({type:s,displayName:"名称"}),d=S({type:l,displayName:"锁定"}),y=S({type:o,displayName:"索引"}),v=S({type:[r],displayName:"图集"}),u((b=t((_=class extends p{constructor(...e){super(...e),i(this,"mask",b,this),i(this,"nameLabel",M,this),i(this,"lockNode",g,this),i(this,"index",k,this),i(this,"imgs",L,this),this.info=null,this.locked=!1}init(){My.Event.on(My.events.game_load,this.load_Data,this),My.Event.on(My.events.update_lv,this.update_Lv,this),My.Event.on(My.events.elect_level_item,this.elect_State,this),this.node.on("click",this.onClick_Selected,this)}load_Data(){My.Event.off(My.events.game_load,this.load_Data,this),this.info=My.Map.maps[this.index],null!=this.info?(this.nameLabel.string=this.info.name,this.mask.spriteFrame=this.imgs[this.index==My.Map.mapIndex?1:0]):this.node.active=!1,this.update_Lv()}update_Lv(){this.locked=!My.Archive.Instance.compareLv(this.info.open_level),this.lockNode.active=this.locked}elect_State(e){this.mask.spriteFrame=this.imgs[e==this?1:0]}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Map.Instance.selected_Map(this)}}).prototype,"mask",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(_.prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(_.prototype,"lockNode",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(_.prototype,"index",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),L=t(_.prototype,"imgs",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=_))||f));n._RF.pop()}}}));

System.register("chunks:///_virtual/LevelView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LevelItem.ts","./AnchorItem.ts","./ViewBase.ts"],(function(e){"use strict";var i,t,n,a,l,o,s,r,c,p,u,h;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Sprite,l=e.Label,o=e.Node,s=e._decorator,r=e.Color},function(e){c=e.LevelItem},function(e){p=e.AnchorItem},function(e){u=e.ViewBase,h=e.ViewType}],execute:function(){var m,f,y,b,d,v,L,M,_,g,w,k,I,q,F,N,V,z,S;n._RF.push({},"f8d45nVKfZChaHnhNUKvGnF","LevelView",void 0);const{ccclass:E,property:x}=s;e("LevelView",(m=E("LevelView"),f=x({type:a,displayName:"图像"}),y=x({type:l,displayName:"区域文本"}),b=x({type:l,displayName:"锁定文本"}),d=x({type:l,displayName:"战备文本"}),v=x({type:o,displayName:"进入战场"}),L=x({type:[o],displayName:"难度骷髅"}),M=x({type:[c],displayName:"区域选项"}),_=x({type:[p],displayName:"锚点动画"}),m((k=i((w=class extends u{constructor(...e){super(...e),t(this,"image",k,this),t(this,"mapLabel",I,this),t(this,"lockLabel",q,this),t(this,"equipLabel",F,this),t(this,"startNode",N,this),t(this,"skulls",V,this),t(this,"items",z,this),t(this,"anchors",S,this),this.colors=[(new r).fromHEX("#F26666"),(new r).fromHEX("#FFFFFF"),(new r).fromHEX("#959595")]}init(){this.node.active=!1,this.lockLabel.string="",this.items.forEach((e=>{e.init()})),My.Event.on(My.events.elect_level_item,this.elect_Map,this)}show(e){this.reset_State(),e&&e()}hide(e){this.node.active=!1,e&&e()}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),My.Map.Instance.selected_Map(this.items[My.Map.mapIndex])}elect_Map(e){if(e)this.image.spriteFrame=e.info.image,this.lockLabel.string=e.locked?"行动等级 "+e.info.lv+" 开启":"",this.setMapInfo(e.info.name,e.info.level,e.info.equip_min,e.info.equip_max);else{let e=My.Map.mapInfo;this.lockLabel.string="",this.image.spriteFrame=e.image,this.setMapInfo(e.name,e.level,e.equip_min,e.equip_max),My.Archive.Instance.compareLv(e.open_level)||(this.lockLabel.string="行动等级 "+e.open_level+" 开启")}}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(h.主页视图),My.UI.Instance.hideView(h.关卡视图)}onClick_Start(){My.Sound.playSfx(My.sounds.ui_click_common),My.Game.Instance.gameLoad()}setMapInfo(e,i,t,n){this.mapLabel.string=e,this.equipLabel.string=t+"-"+n,this.skulls.forEach(((e,t)=>{e.active=t<i})),My.Pack.packInfo.equipment_Value<t?this.equipLabel.color=this.colors[0]:My.Pack.packInfo.equipment_Value>n?this.equipLabel.color=this.colors[2]:this.equipLabel.color=this.colors[1]}}).prototype,"image",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=i(w.prototype,"mapLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=i(w.prototype,"lockLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=i(w.prototype,"equipLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=i(w.prototype,"startNode",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=i(w.prototype,"skulls",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z=i(w.prototype,"items",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),S=i(w.prototype,"anchors",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=w))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/LoadView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts"],(function(i){"use strict";var e,t,s,a,r,o,l,n,p,h;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){s=i.cclegacy,a=i.UIOpacity,r=i.Label,o=i.Sprite,l=i._decorator,n=i.tween,p=i.math},function(i){h=i.ViewBase}],execute:function(){var c,u,d,b,y,g,m,f,w,v,L;s._RF.push({},"200f25+MvVGVou2YgjNND83","LoadView",void 0);const{ccclass:M,property:_}=l;i("LoadView",(c=M("LoadView"),u=_({type:a,displayName:"透明度组件"}),d=_({type:r,displayName:"加载文本"}),b=_({type:o,displayName:"进度遮罩"}),y=_({type:o,displayName:"进度填充"}),c((f=e((m=class extends h{constructor(...i){super(...i),t(this,"opacityCom",f,this),t(this,"loadLabel",w,this),t(this,"barMask",v,this),t(this,"barFill",L,this),this.barShow=!1,this.progress=0}init(){this.node.active=!1,this.opacityCom.opacity=255,My.Event.on(My.events.update_loading,this.update_Loading,this),My.Event.on(My.events.update_progress,this.update_Progress,this)}show(i){this.opacityCom.opacity=255,this.node.active=!0,this.barShow&&this.loading(),i&&i()}hide(i){this.unscheduleAllCallbacks(),n(this.opacityCom).to(.25,{opacity:0}).call((()=>{this.node.active=!1,i&&i()})).start()}loading(){this.progress=0,this.barFill.fillRange=this.progress,this.schedule((()=>{this.progress=p.clamp(this.progress+.002,0,1),this.barFill.fillRange=this.progress}),.02)}update_Progress(i){if(i)this.progress=p.clamp(i,0,1);else{let i=(.6-.02*My.Game.Instance.loadTime)/5;this.progress=p.clamp(this.progress+i,0,1)}this.barFill.fillRange=this.progress}update_Loading(i="正在打开 修狗枪战突围"){this.loadLabel.string=i,this.barShow="正在打开 修狗枪战突围"==i,this.barMask.node.active=this.barShow,this.barFill.node.active=this.barShow}}).prototype,"opacityCom",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(m.prototype,"loadLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(m.prototype,"barMask",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(m.prototype,"barFill",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=m))||g));s._RF.pop()}}}));

System.register("chunks:///_virtual/LvItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,l,a,n,s,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,l=e.Label,a=e.Sprite,n=e._decorator,s=e.Component,c=e.SpriteFrame}],execute:function(){var o,u,p,m,b,y,d,h,L;r._RF.push({},"85a9dJXZhNE5L7IbNLhKsRh","LvItem",void 0);const{ccclass:g,property:f}=n;e("LvItem",(o=g("LvItem"),u=f({type:l,displayName:"标题"}),p=f({type:l,displayName:"描述"}),m=f({type:a,displayName:"图像"}),o((d=t((y=class extends s{constructor(...e){super(...e),i(this,"titleLabel",d,this),i(this,"descLabel",h,this),i(this,"image",L,this)}async init(e){null!=e&&(this.titleLabel.string="行动等级:"+e.id,this.descLabel.string=e.level_text,this.image.spriteFrame=await My.Res.loadBundleRes("image",e.level_pic+"/spriteFrame",c))}}).prototype,"titleLabel",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=t(y.prototype,"descLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(y.prototype,"image",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=y))||b));r._RF.pop()}}}));

System.register("chunks:///_virtual/main",["./MainExample.ts","./ModeExample.ts","./baoli.ts","./copyright.ts","./health.ts","./net.ts","./BtnMgr.ts","./ChannelID.ts","./NativeAd.ts","./NativeMgr.ts","./NavigateView.ts","./SDKManager.ts","./android.ts","./honor.ts","./hw.ts","./oppo.ts","./test.ts","./tt.ts","./vivo.ts","./wx.ts","./xiaomi.ts","./xieyi.ts","./yinsi.ts","./MyGame.ts","./GameCheat.ts","./CenterLayout.ts","./MotionTrail.ts","./SliderEx.ts","./BuffDefine.ts","./GameDefine.ts","./Bullet.ts","./Bullet_Melee.ts","./GrenadeEffect.ts","./Boss.ts","./Boss_Info.ts","./Boss_Weapon.ts","./Npc.ts","./Npc_Weapon.ts","./Hud_Ammo.ts","./Hud_Buff.ts","./Hud_Equip.ts","./Hud_Fangju.ts","./Hud_Hp.ts","./Hud_Joystick.ts","./Hud_Medical.ts","./Hud_Nav.ts","./Hud_Pack.ts","./Hud_Reload.ts","./Hud_Skill.ts","./Hud_Thrown.ts","./Option_Ammo.ts","./Option_Medical.ts","./Option_Thrown.ts","./MapDefine.ts","./MapGrids.ts","./MapItem.ts","./MapSorting.ts","./ObjItem.ts","./Play_WuziItem.ts","./BoxItem.ts","./DetectorItem.ts","./DiscardItem.ts","./ExitPoint.ts","./HealthItem.ts","./Keydoor.ts","./NavItem.ts","./Plane.ts","./RewardedGift.ts","./Room.ts","./SearchItem.ts","./WithItem.ts","./MechaCtrl.ts","./MechaWeapon.ts","./Player.ts","./PlayerCtrl.ts","./PlayerEquip.ts","./PlayerSkin.ts","./PlayerState.ts","./PlayerWeapon.ts","./Weapon.ts","./ThrownEffect.ts","./ThrownItem.ts","./AnimationEvent.ts","./DamageEffect.ts","./HitEffect.ts","./Joystick.ts","./Joystick_Skill.ts","./Joystick_Thrown.ts","./SpaceAudio.ts","./SyncPosition.ts","./GameCamera.ts","./GameData.ts","./GameEvent.ts","./GameItem.ts","./GameMgr.ts","./GamePlay.ts","./GamePool.ts","./GameRes.ts","./GameSetting.ts","./GameSound.ts","./Events.ts","./GuideArrow.ts","./GuideDefine.ts","./GuideDialog.ts","./GuideMask.ts","./GuidePopup.ts","./CommonDefine.ts","./EquipItem.ts","./ItemDefine.ts","./ItemInfo.ts","./PoolItem.ts","./SkinInfo.ts","./BaoxiangConfig.ts","./DiaoluoConfig.ts","./EnemyConfig.ts","./FangjuConfig.ts","./HuobiConfig.ts","./ItemConfig.ts","./PeijianConfig.ts","./TagConfig.ts","./TouzhiConfig.ts","./WuqiConfig.ts","./YaopinConfig.ts","./ZawuConfig.ts","./ZidanConfig.ts","./AStarMgr.ts","./ArchiveMgr.ts","./DailyMgr.ts","./EnemyMgr.ts","./GuideMgr.ts","./MapMgr.ts","./MarketMgr.ts","./NavMgr.ts","./PackMgr.ts","./PlayerMgr.ts","./QuickMgr.ts","./SkinMgr.ts","./StoreMgr.ts","./SurveyMgr.ts","./WarehouseMgr.ts","./MarketMenu.ts","./MenuBase.ts","./PackMenu.ts","./QuickMenu.ts","./TakeTurns.ts","./WhsMenu.ts","./DrawItem.ts","./DrawMenu.ts","./DrawShow.ts","./RedeemItem.ts","./ChargeItem.ts","./CounterItem.ts","./DailyItem.ts","./GotItem.ts","./LevelItem.ts","./LvItem.ts","./MarketItem.ts","./PackItem.ts","./RewardedItem.ts","./UnlockItem.ts","./WhsItem.ts","./SkinBar.ts","./SkinItem.ts","./SkinMenu.ts","./SkinShow.ts","./StoreItem.ts","./StoreMenu.ts","./SurveyInfo.ts","./SurveyRadar.ts","./SurveyReward.ts","./GameMessage.ts","./MessageCode.ts","./DetailItem.ts","./MessageItem.ts","./TipsItem.ts","./ToastItem.ts","./DynamicRenderer.ts","./PreserveAspect.ts","./ScrollRenderer.ts","./VersionDetails.ts","./GameUI.ts","./UIDefine.ts","./AccItem.ts","./AnchorItem.ts","./BuffStateItem.ts","./DotItem.ts","./EquipmentItem.ts","./FlashItem.ts","./InfoItem.ts","./MinimapItem.ts","./QuickAmmoItem.ts","./QuickEquipItem.ts","./QuickResItem.ts","./QuickSettleItem.ts","./RendererItem.ts","./ResultItem.ts","./TagItem.ts","./ValueItem.ts","./NearbyPanel.ts","./PanelBase.ts","./QuickAmmoPanel.ts","./QuickEquipPanel.ts","./QuickResPanel.ts","./QuickSettlePanel.ts","./UsePanel.ts","./BuyPopup.ts","./DialogPopup.ts","./DiscardPopup.ts","./GotPopup.ts","./ItemPopup.ts","./PopupBase.ts","./ProbPopup.ts","./RewardPopup.ts","./SearchPopup.ts","./SellPopup.ts","./StorePopup.ts","./SurveyPopup.ts","./UnlockPopup.ts","./UpgradePopup.ts","./DrawPopup.ts","./ArchiveView.ts","./CheatView.ts","./CurrencyView.ts","./DailyView.ts","./DrawView.ts","./FadeView.ts","./GameView.ts","./LevelView.ts","./LoadView.ts","./MarketView.ts","./MechaView.ts","./MenuView.ts","./MinimapView.ts","./PackView.ts","./PauseView.ts","./PropertyView.ts","./QuickView.ts","./ResultView.ts","./SkinView.ts","./StoreView.ts","./SurveyView.ts","./ViewBase.ts","./WhsView.ts","./WithView.ts","./ArrayUtil.ts","./CommonUtil.ts","./MathUtil.ts","./StringUtil.ts","./TimeUtil.ts"],(function(){"use strict";return{setters:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}}));

System.register("chunks:///_virtual/MainExample.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var t,n,a,o,d,i;return{setters:[function(e){t=e.cclegacy,n=e.Component,a=e._decorator,o=e.find,d=e.director},function(e){i=e.default}],execute:function(){var s;t._RF.push({},"af733DXiRtB3oMxPomk/OvN","MainExample",void 0);const{ccclass:r,property:c}=a;e("MainExample",r("MainExample")(s=class extends n{constructor(...e){super(...e),this.bClickStart=!1}start(){(window.platform==i.VIVO||window.platform==i.TEST)&&window.sdk.deeplink?window.sdk.firstOpen?window.sdk.changeState(1):window.sdk.showRewardNode("drum"):window.sdk.changeState(1)}update(e){}play(){var e=()=>{o("Canvas/loading").active=!0,d.preloadScene("ModeExample",(()=>{o("Canvas/loading").active=!1,d.loadScene("ModeExample")}))};(window.platform==i.VIVO||window.platform==i.TEST)&&window.sdk.deeplink&&window.sdk.firstOpen?(window.sdk.firstOpen=!1,this.bClickStart?e():(this.bClickStart=!0,window.sdk.showRewardNode("drum"))):e()}})||s);t._RF.pop()}}}));

System.register("chunks:///_virtual/MapDefine.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var i,t,n,r,o,a,s,l;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.CCString,o=e.Vec3,a=e.CCInteger,s=e._decorator,l=e.Vec2}],execute:function(){var p,u,c,y,h,b,d,m,f,_,v,w,g,x,z,N,M,B,P,C,D,T,H,S,V,A,F,L,R,Y,k,I,U,j,q,G,J,Q;e({BoxLevel:void 0,BoxType:void 0}),n._RF.push({},"f6a8c0zithHYJMfkeY8PYQH","MapDefine",void 0);const{ccclass:E,property:K}=s;let O,W;e("MapPoints",(p=E("MapPoints"),u=K({type:[r],displayName:"生成点位"}),c=K({type:[o],displayName:"1级物资点"}),y=K({type:[o],displayName:"2级物资点"}),h=K({type:[o],displayName:"3级物资点"}),b=K({type:[o],displayName:"4级物资点"}),d=K({type:[o],displayName:"5级物资点"}),m=K({type:[o],displayName:"1级敌人点"}),f=K({type:[o],displayName:"2级敌人点"}),_=K({type:[o],displayName:"3级敌人点"}),v=K({type:[o],displayName:"4级敌人点"}),w=K({type:[o],displayName:"飞机生成点"}),g=K({type:a,displayName:"飞机生成时间"}),x=K({type:a,displayName:"飞机飞行时长"}),z=K({type:[a],displayName:"空投投放时间范围"}),p((B=i((M=class{constructor(){t(this,"spawns",B,this),t(this,"box_1",P,this),t(this,"box_2",C,this),t(this,"box_3",D,this),t(this,"box_4",T,this),t(this,"box_5",H,this),t(this,"enemy_1",S,this),t(this,"enemy_2",V,this),t(this,"enemy_3",A,this),t(this,"enemy_4",F,this),t(this,"plane_point",L,this),t(this,"plane_spawn",R,this),t(this,"plane_time",Y,this),t(this,"plane_drop",k,this)}randomSpawn(){return Tool.StringUtil.stringToArrayVec3(Tool.ArrayUtil.RandomValueInArray(this.spawns))}}).prototype,"spawns",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),P=i(M.prototype,"box_1",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=i(M.prototype,"box_2",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=i(M.prototype,"box_3",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),T=i(M.prototype,"box_4",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),H=i(M.prototype,"box_5",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),S=i(M.prototype,"enemy_1",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=i(M.prototype,"enemy_2",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),A=i(M.prototype,"enemy_3",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),F=i(M.prototype,"enemy_4",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=i(M.prototype,"plane_point",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),R=i(M.prototype,"plane_spawn",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Y=i(M.prototype,"plane_time",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),k=i(M.prototype,"plane_drop",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),N=M))||N)),e("MapBorder",(I=E("MapBorder"),U=K({displayName:"横向边界"}),j=K({displayName:"竖向边界"}),I((J=i((G=class{constructor(){t(this,"hor",J,this),t(this,"ver",Q,this)}}).prototype,"hor",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new l}}),Q=i(G.prototype,"ver",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new l}}),q=G))||q));e("MapConfig",class{constructor(){this.id=void 0,this.name=void 0,this.open_level=void 0,this.level=void 0,this.equip_level=void 0,this.spawn=void 0,this.box1=void 0,this.box2=void 0,this.box3=void 0,this.box4=void 0,this.box_safe=void 0,this.enemey_1=void 0,this.enemey_2=void 0,this.enemey_3=void 0,this.enemey_4=void 0,this.plane_point=void 0,this.plane_spawn=void 0,this.plane_time=void 0,this.plane_drop=void 0}}),function(e){e[e["绿"]=0]="绿",e[e["蓝"]=1]="蓝",e[e["紫"]=2]="紫",e[e["橙"]=3]="橙",e[e["保险箱"]=4]="保险箱",e[e["空投箱"]=5]="空投箱"}(O||(O=e("BoxLevel",{}))),function(e){e[e["物资箱"]=0]="物资箱",e[e["武器箱"]=1]="武器箱",e[e["医药箱"]=2]="医药箱",e[e["保险箱"]=3]="保险箱",e[e["空投箱"]=10]="空投箱",e[e["盒子"]=20]="盒子"}(W||(W=e("BoxType",{})));e("Point",class{constructor(e,i,t){this.x=void 0,this.y=void 0,this.G=0,this.H=0,this.F=0,this.position=void 0,this.father=null,this.is_close=!1,this.x=e,this.y=i,this.position=t}}),n._RF.pop()}}}));

System.register("chunks:///_virtual/MapGrids.ts",["./rollupPluginModLoBabelHelpers.js","cc","./MapDefine.ts","./DetectorItem.ts"],(function(e){"use strict";var t,i,s,r,n,a,o,h,p,l,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,r=e.Node,n=e._decorator,a=e.Component,o=e.Size,h=e.Vec3,p=e.instantiate},function(e){l=e.Point},function(e){c=e.DetectorItem}],execute:function(){var u,d,f,y,z,b,_,m,k,w,M;s._RF.push({},"5edb4sITbBOHavIJtjngaAb","MapGrids",void 0);const{ccclass:g,property:x}=n;e("MapGrids",(u=g("MapGrids"),d=x({displayName:"块大小"}),f=x({displayName:"地图大小"}),y=x({type:c,displayName:"探测器"}),z=x({type:r,displayName:"网格绘制"}),u((m=t((_=class extends a{constructor(...e){super(...e),i(this,"size_chunk",m,this),i(this,"size_map",k,this),i(this,"detector",w,this),i(this,"prefab",M,this),this.keys=[],this.size=new o,this.grids=new Map,this.drawMap=new Map}async load_MapGrid(){let e=-this.size_map.x/2,t=-this.size_map.y/2,i=Math.floor(this.size_map.x/this.size_chunk.x),s=Math.floor(this.size_map.y/this.size_chunk.y);this.size=new o(i,s);for(let r=0;r<i;r++)for(let i=0;i<s;i++){let s=new h(e+r*this.size_chunk.x,t+i*this.size_chunk.y);if(!this.detector.obstacle(s,this.size_chunk)){let s=new h(e+r*this.size_chunk.x,t+i*this.size_chunk.y),n=r+i*this.size.x,a=new l(r,i,s);if(this.grids.set(n,a),this.keys.push(n),this.prefab){let e=p(this.prefab);e.setParent(this.prefab.parent),e.setPosition(a.position),this.drawMap.set(n,e),e.active=!0}}}}get_GridPoint(e){let t=null,i=i=>{for(let s=0;s<this.keys.length;s++){let r=this.grids.get(this.keys[s]);if(this.comparePoint(e,r,i)){t=r;break}}};return i(this.size_chunk.x/2),t||i(this.size_chunk.x),t||i(this.size_chunk.x+this.size_chunk.x/2),t}remove_GridPoint(e){let t=e.x+e.y*this.size.x;if(Tool.ArrayUtil.RemoveItem(this.keys,t),this.grids.delete(t),this.prefab){let e=this.drawMap.get(t);this.drawMap.delete(t),e&&e.destroy()}}comparePoint(e,t,i){return!(Math.abs(t.position.x-e.x)>i)&&!(Math.abs(t.position.y-e.y)>i)}}).prototype,"size_chunk",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new o}}),k=t(_.prototype,"size_map",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new o}}),w=t(_.prototype,"detector",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(_.prototype,"prefab",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=_))||b));s._RF.pop()}}}));

System.register("chunks:///_virtual/MapItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BoxItem.ts","./GameDefine.ts","./Plane.ts","./MapDefine.ts","./WithItem.ts","./Npc.ts","./RewardedGift.ts","./DetectorItem.ts","./GuideDefine.ts","./ExitPoint.ts","./MapGrids.ts"],(function(t){"use strict";var e,i,n,o,s,r,a,l,p,h,y,c,d,g,u,f,m,M,P,b,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator,r=t.Component,a=t.Vec3},function(t){l=t.BoxItem},function(t){p=t.GameState,h=t.TipsType},function(t){y=t.Plane},function(t){c=t.MapPoints,d=t.MapBorder,g=t.BoxType},function(t){u=t.WithItem},function(t){f=t.Npc},function(t){m=t.RewardedGift},function(t){M=t.DetectorItem},function(t){P=t.GuideStep},function(t){b=t.ExitPoint},function(t){_=t.MapGrids}],execute:function(){var N,I,S,w,T,x,v,E,R,U,G,D,A,C,V,B,z;n._RF.push({},"91a505M2clFI53srvc1JNIv","MapItem",void 0);const{ccclass:k,property:O}=s;t("MapItem",(N=k("MapItem"),I=O({type:c,displayName:"地图点位"}),S=O({type:[u],displayName:"交互对象"}),w=O({type:d,displayName:"图标边界"}),T=O({type:_,displayName:"地图网格"}),x=O({type:M,displayName:"探测器"}),v=O({type:o,displayName:"物资节点"}),E=O({type:o,displayName:"场景节点"}),N((G=e((U=class extends r{constructor(...t){super(...t),i(this,"points",G,this),i(this,"withItems",D,this),i(this,"border",A,this),i(this,"grids",C,this),i(this,"detector",V,this),i(this,"resNode",B,this),i(this,"sceneNode",z,this),this.signRatio=1,this.loaded=!1,this.isSorting=!1,this.lastSorting=null,this.giftPoints=[],this.spawnPoints=[]}init(t){this.points.spawns=Tool.StringUtil.stringToArray(t.spawn,"|"),this.points.box_1=Tool.StringUtil.stringToArrayVec3(t.box1),this.points.box_2=Tool.StringUtil.stringToArrayVec3(t.box2),this.points.box_3=Tool.StringUtil.stringToArrayVec3(t.box3),this.points.box_4=Tool.StringUtil.stringToArrayVec3(t.box4),this.points.box_5=Tool.StringUtil.stringToArrayVec3(t.box_safe),this.points.enemy_1=Tool.StringUtil.stringToArrayVec3(t.enemey_1),this.points.enemy_2=Tool.StringUtil.stringToArrayVec3(t.enemey_2),this.points.enemy_3=Tool.StringUtil.stringToArrayVec3(t.enemey_3),this.points.enemy_4=Tool.StringUtil.stringToArrayVec3(t.enemey_4),this.points.plane_point=Tool.StringUtil.stringToArrayVec3(t.plane_point),this.points.plane_spawn=t.plane_spawn,this.points.plane_time=t.plane_time,this.points.plane_drop=Tool.StringUtil.stringToArrayNumber(t.plane_drop,";"),this.signRatio=375/this.border.hor.y,this.grids.load_MapGrid(),this.node.active=!1,this.loaded=!1,console.log("地图初始化",this.points)}load(){this.spawnPoints=[],this.node.active=!0,this.isSorting=!1,this.lastSorting=null,this.loaded=!0,this.createRes(),this.createNpc(),this.spawnPoints=this.points.randomSpawn(),this.withItems.forEach((t=>{t.load()})),My.Event.on(My.events.update_ressorting,this.resSorting,this),My.Event.on(My.events.update_sorting,this.sceneSorting,this),My.Event.on(My.events.play_plane,this.createPlane,this)}unload(){this.loaded=!1,this.node.active=!1,this.withItems.forEach((t=>{t.unload()})),My.Event.off(My.events.update_ressorting,this.resSorting,this),My.Event.off(My.events.update_sorting,this.sceneSorting,this),My.Event.off(My.events.play_plane,this.createPlane,this)}pushPlayer(t){let e=Tool.MathUtil.randomInRange(0,1);t.setParent(this.sceneNode),t.setPosition(this.spawnPoints[e]||a.ZERO);let i=0==e?1:0,n=My.Pool.getNode(My.Play.prefabs.exited,this.resNode,this.spawnPoints[i]||a.ZERO);My.Play.Instance.poolItem_Push(n.getComponent(b)),My.Event.emit(My.events.nav_sign_push,n),My.Guide.guiding||this.createRewarded()}pushItem(t){t.setParent(this.sceneNode)}resSorting(){if(!this.loaded)return;let t=this.resNode.children.slice();t.sort(((t,e)=>e.position.y-t.position.y));for(let e=0;e<t.length;e++)t[e].setSiblingIndex(e)}sceneSorting(t){if(!this.loaded)return;if(this.isSorting)return;if(this.lastSorting==t)return;this.isSorting=!0,this.lastSorting=t;let e=this.sceneNode.children.slice();e.sort(((t,e)=>e.position.y-t.position.y));for(let t=0;t<e.length;t++)e[t].setSiblingIndex(t);this.scheduleOnce((()=>{this.isSorting=!1}),.2)}safetyPlace(t,e=!1){if(t.x>this.border.hor.y-200||t.x<this.border.hor.x)return!1;if(t.y>this.border.ver.y-200||t.y<this.border.ver.x)return!1;if(e)for(let e=0;e<this.giftPoints.length;e++)if(a.distance(this.giftPoints[e],t)<250)return!1;return this.detector.check(t)}randomRewardPos(){let t=0,e=10*Tool.MathUtil.randomInRange(35,50),i=Tool.MathUtil.randomOnCircle(My.Player.position,e);for(;!this.safetyPlace(i,!0)&&t<=15;)t+=1,i=Tool.MathUtil.randomOnCircle(My.Player.position,e);return(t=15)?(this.giftPoints.push(i),i):null}createRes(){let t=(t,e,i)=>{let n=g.保险箱;if(i&&e<5)switch(Tool.MathUtil.randomInRange(0,2)){case 0:n=g.物资箱;break;case 1:n=g.武器箱;break;case 2:if(e>3)switch(Tool.MathUtil.randomInRange(0,1)){case 0:n=g.物资箱;break;case 1:n=g.武器箱}else n=g.医药箱}let o=Tool.CommonUtil.BoxItemData(n,e,My.Item.getRnadomResData(n,e)),s=My.Pool.getNode(My.Play.prefabs.resBox,this.resNode,t).getComponent(l);s.init(o),My.Play.Instance.poolItem_Push(s),My.Event.emit(My.events.nav_sign_push,s)};this.points.box_1.forEach((e=>{t(e,1,!0)})),this.points.box_2.forEach((e=>{t(e,2,!0)})),this.points.box_3.forEach((e=>{t(e,3,!0)})),this.points.box_4.forEach((e=>{t(e,4,!0)})),this.points.box_5.forEach((e=>{t(e,5,!1)}))}createNpc(){let t=(t,e)=>{let i=My.Pool.getNode(My.Play.prefabs.npc,this.sceneNode,t),n=My.Enemy.Instance.get_NpcData(e),o=i.getComponent(f);o.init(n),My.Play.Instance.poolItem_Push(o)};this.points.enemy_1.forEach((e=>{t(e,1)})),this.points.enemy_2.forEach((e=>{t(e,2)})),this.points.enemy_3.forEach((e=>{t(e,3)})),this.points.enemy_4.forEach((e=>{t(e,4)}))}createPlane(){if(null==My.Play.prefabs.plane)return void My.Game.gameErr("对局运输机Prefab资源为null");if(!My.Game.compareState(p.Play))return;My.Game.gameSign("生成空投运输机!"),My.Msg.showTips(h.即将有空投);let t=My.Pool.getNode(My.Play.prefabs.plane,this.node);t.setPosition(this.points.plane_point[0]),t.getComponent(y).init(this.points.plane_point[1],My.Map.mapData.points.plane_time,this.resNode)}createDropBox(t,e){let i=My.Pool.getNode(My.Play.prefabs.resBox,this.resNode,t).getComponent(l);i.init(e),My.Play.Instance.poolItem_Push(i)}createRewarded(){My.Play.prefabs.gifts.length<=0||(this.giftPoints=[],My.Play.prefabs.gifts.forEach((t=>{let e=this.randomRewardPos();if(e){let i=My.Pool.getNode(t,this.resNode,e).getComponent(m);i.init(),My.Play.Instance.poolItem_Push(i),My.Game.gameSign("成功生成激励宝箱")}})))}spawnBoss(){}spawnGuideNpc(t){let e=My.Enemy.guideNpc(t);if(null!=e){let t=new a(My.Player.position.x-600,My.Player.position.y,My.Player.position.z),i=My.Pool.getNode(My.Play.prefabs.npc,this.sceneNode,t).getComponent(f);e.guide.area=0,null!=i&&(i.init(e,(()=>{My.Guide.guideCheck(P.对局引导)})),My.Play.Instance.poolItem_Push(i))}}}).prototype,"points",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new c}}),D=e(U.prototype,"withItems",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),A=e(U.prototype,"border",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new d}}),C=e(U.prototype,"grids",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(U.prototype,"detector",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(U.prototype,"resNode",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(U.prototype,"sceneNode",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=U))||R));n._RF.pop()}}}));

System.register("chunks:///_virtual/MapMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CommonDefine.ts","./MapItem.ts"],(function(e){"use strict";var t,a,i,s,n,p,r,l,m,o,c,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){i=e.cclegacy,s=e.Node,n=e.JsonAsset,p=e._decorator,r=e.Component,l=e.Prefab,m=e.SpriteFrame,o=e.instantiate},function(e){c=e.MapInfo},function(e){u=e.MapItem}],execute:function(){var h,d,M,y,g,_,f,I,b,N,v,S,P,q;i._RF.push({},"97be7JzZ5RBK7Wqebl5I27x","MapMgr",void 0);const{ccclass:w,property:x}=p;e("MapMgr",(h=w("MapMgr"),d=x({type:s,displayName:"主页节点"}),M=x({type:s,displayName:"主页角色"}),y=x({type:s,displayName:"地图节点"}),g=x({type:n,displayName:"配置文件"}),_=x({type:u,displayName:"测试地图"}),h(((q=class e extends r{constructor(...e){super(...e),a(this,"menuNode",b,this),a(this,"playerNode",N,this),a(this,"mapNode",v,this),a(this,"mapJson",S,this),a(this,"testmap",P,this),this.maps=[],this.currentMap=null,this.mapValue=0,this.mapSelected=0,this.mapMap=new Map}static get maps(){return this.Instance.maps}static get mapValue(){return this.Instance.mapValue}static get mapData(){return this.Instance.currentMap}static get mapIndex(){return this.Instance.mapSelected}static get mapGrid(){return this.Instance.currentMap.grids}static get mapRatio(){return this.Instance.currentMap.signRatio}static get mapInfo(){return this.Instance.maps[this.Instance.mapSelected]}static get mapBorder(){return this.Instance.currentMap.border}static get mapExit(){return this.Instance.currentMap.withItems[0].node}onLoad(){e.Instance=this,this.set_PlayerPos(),this.load_Data()}load_Data(){this.mapJson.json.config.forEach((async e=>{this.set_MapInfo(e)})),this.menuNode.active=!0,My.Event.on(My.events.player_show_pos,this.set_PlayerPos,this)}selected_Map(e){e.locked||(this.mapSelected=e.index),My.Event.emit(My.events.elect_level_item,e)}load_Map(e){-1==e?(this.currentMap.unload(),this.menuNode.active=!0):(this.menuNode.active=!1,My.Guide.guiding?this.mapMap.has(10)?this.currentMap=this.mapMap.get(10).map:this.currentMap=this.maps[0].map:this.currentMap=this.maps[this.mapSelected].map,My.Pack.packInfo.equipment_Value>this.maps[this.mapSelected].equip_max?this.mapValue=this.maps[this.mapSelected].equip_max:My.Pack.packInfo.equipment_Value<this.maps[this.mapSelected].equip_min?this.mapValue=this.maps[this.mapSelected].equip_min:this.mapValue=My.Pack.packInfo.equipment_Value,this.currentMap.load(),this.scheduleOnce((()=>{My.Event.emit(My.events.game_loaded)}),1))}set_PlayerPos(e){let t=this.playerNode.getPosition();t.x=null==e?0:e,this.playerNode.setPosition(t)}async set_MapInfo(e){let t=new c;this.maps.push(t);let a=Tool.StringUtil.stringToArrayNumber(e.equip_level,";"),i="map"+(e.id+1);t.name=e.name,t.level=e.level||1,t.equip_min=a[0]||0,t.equip_max=a[1]||0,t.open_level=e.open_level||0,t.prefab=await My.Res.loadBundleRes("map",i,l),t.image=await My.Res.loadBundleRes("map",i+"_img/spriteFrame",m);let s=o(t.prefab);s.setParent(this.mapNode);let n=s.getComponent(u);n.init(e),t.map=n,this.mapMap.set(e.id,t)}get_SelectedInfo(){return[this.maps[this.mapSelected].name]}get_SelectedName(){return My.Guide.guiding?this.maps[this.maps.length-1].name:this.maps[this.mapSelected].name}get_SelectedIcon(){return this.maps[this.mapSelected].image}get_PatrolTarget(e,t){let a=0,i=Tool.MathUtil.randomInCircle(e,t);for(;!this.currentMap.safetyPlace(i)&&a<20;)a+=1,i=Tool.MathUtil.randomInCircle(e,t);return i}compareEquipValue(e){return e>=this.maps[this.mapSelected].equip_min}}).Instance=null,b=t((I=q).prototype,"menuNode",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(I.prototype,"playerNode",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(I.prototype,"mapNode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(I.prototype,"mapJson",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(I.prototype,"testmap",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=I))||f));i._RF.pop()}}}));

System.register("chunks:///_virtual/MapSorting.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts"],(function(t){"use strict";var e,i,n,o,r,s,c,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Collider2D,r=t._decorator,s=t.Component,c=t.Contact2DType},function(t){a=t.GameTags}],execute:function(){var l,p,u,g,d;n._RF.push({},"0906aycm+NKcK5MsebcsBiX","MapSorting",void 0);const{ccclass:y,property:f}=r;t("MapSorting",(l=y("MapSorting"),p=f({type:o,displayName:"碰撞体"}),l((d=e((g=class extends s{constructor(...t){super(...t),i(this,"collider",d,this)}onEnable(){this.collider.on(c.BEGIN_CONTACT,this.onBeginContact,this)}onDisable(){this.collider.off(c.BEGIN_CONTACT,this.onBeginContact,this)}onBeginContact(t,e,i){e.tag==a.玩家&&My.Event.emit(My.events.update_sorting,this)}}).prototype,"collider",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=g))||u));n._RF.pop()}}}));

System.register("chunks:///_virtual/MarketItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./ItemInfo.ts","./RendererItem.ts"],(function(e){"use strict";var t,i,n,s,a,o,l,c,r,h,u,g,p,m,d,y,f,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Sprite,a=e.Label,o=e.Node,l=e._decorator,c=e.UITransform},function(e){r=e.ItemQuality,h=e.ItemType,u=e.PeijianType,g=e.FangjuType,p=e.TouzhiType,m=e.AmmoType,d=e.YaopinType,y=e.WuqiType},function(e){f=e.ItemStoredType},function(e){b=e.RendererItem}],execute:function(){var v,k,L,I,M,_,T,w,N,S,z,q,C,D,E,U,A,F,P;n._RF.push({},"8b438MKL/dKGb7vGQrnPDnn","MarketItem",void 0);const{ccclass:K,property:R}=l;e("MarketItem",(v=K("MarketItem"),k=R({type:s,displayName:"图像"}),L=R({type:a,displayName:"品质"}),I=R({type:a,displayName:"名称"}),M=R({type:a,displayName:"耐久"}),_=R({type:a,displayName:"数值"}),T=R({type:a,displayName:"价格"}),w=R({type:a,displayName:"描述"}),N=R({type:o,displayName:"锁定"}),v((q=t((z=class extends b{constructor(...e){super(...e),i(this,"image",q,this),i(this,"quality",C,this),i(this,"nameLabel",D,this),i(this,"endLabel",E,this),i(this,"valueLabel",U,this),i(this,"priceLabel",A,this),i(this,"descLabel",F,this),i(this,"lockNode",P,this),this.config=null,this.info=null,this.trans=void 0,this.imgTrans=void 0,this.unlocked=!1}setData(e,t=330){this.trans=this.node.getComponent(c),this.imgTrans=this.image.getComponent(c),this.trans.width=t,this.config=e,null!=this.config&&(this.info=Tool.CommonUtil.CreateInfo(this.config,1,f.未知),this.quality.color=My.Item.Instance.getQualityColor(this.config.quality),this.quality.string=r[this.config.quality],this.priceLabel.string=this.config.buy.toString(),this.nameLabel.string=this.config.name,this.setImage(),this.setValue(),this.setEnd(),My.Event.on(My.events.elect_market_menu,this.elect_State,this),My.Archive.Instance.compareLv(this.config.open_level||0)||My.Event.on(My.events.update_unlock_new,this.checkUnlocked,this)),this.actived=!1,this.node.on("click",this.onClick_Selected,this)}elect_State(e,t){let i=My.Market.Instance.compareType(this,this.getTypeName(),this.getKindName());this.actived=i,i&&this.setLocked()}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),this.unlocked?My.Event.emit(My.events.pop_buy,this.info):My.Msg.showMessage(My.msgcode.购买解锁等级.replace("{}",this.config.open_level))}async setImage(){this.config.type==h.武器?(this.image.spriteFrame=await My.Item.Instance.getItemSlot(this.config.image),this.imgTrans.width=300):(this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.config.image),this.imgTrans.width=100)}setEnd(){null!=this.config.end?(this.endLabel.string="耐久度:"+this.config.end+"/"+this.config.end,this.endLabel.node.active=!0):this.endLabel.node.active=!1}setValue(){switch(this.valueLabel.node.active=!1,this.config.type){case h.武器:this.valueLabel.string=Tool.CommonUtil.ParseAmmo(this.config.ammo),this.valueLabel.node.active=!0;break;case h.防具:this.config.kind==g.背包?this.valueLabel.string="负重增加："+this.config.fz:this.valueLabel.string="防御等级："+(this.config.quality+1),this.valueLabel.node.active=!0;break;case h.配件:this.valueLabel.string=u[this.config.kind],this.valueLabel.node.active=!0;break;case h.子弹:this.valueLabel.string="穿透等级："+(this.config.quality+1),this.valueLabel.node.active=!0}}setLocked(){this.unlocked=My.Archive.Instance.compareLv(0|this.config.open_level),this.lockNode.active=!this.unlocked,this.unlocked||(this.descLabel.string="行动等级"+this.config.open_level+" 解锁购买")}getTypeName(){return h[this.config.type]}getKindName(){switch(this.config.type){case h.武器:return y[this.config.kind];case h.防具:return g[this.config.kind];case h.配件:return u[this.config.kind];case h.药品:return d[this.config.kind];case h.子弹:return m[this.config.kind];case h.投掷物:return p[this.config.kind];case h.杂物:case h.宝箱:return""}return this.config.kind.toString()}checkUnlocked(){My.Archive.Instance.compareLv(this.config.open_level)&&(My.Market.Instance.unlockItems.push(this.config),My.Event.off(My.events.update_unlock_new,this.checkUnlocked,this))}}).prototype,"image",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(z.prototype,"quality",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(z.prototype,"nameLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(z.prototype,"endLabel",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(z.prototype,"valueLabel",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(z.prototype,"priceLabel",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(z.prototype,"descLabel",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(z.prototype,"lockNode",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=z))||S));n._RF.pop()}}}));

System.register("chunks:///_virtual/MarketMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts","./MenuBase.ts"],(function(t){"use strict";var e,i,s,n,l,r,o,a,h,c,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Enum,l=t.Label,r=t.Sprite,o=t.Node,a=t._decorator,h=t.Color},function(t){c=t.MarketMenuType},function(t){u=t.MenuBase}],execute:function(){var p,y,d,m,b,f,M,g,k,w,_,S,v,C,z;s._RF.push({},"4ee01TqgP1AkLoT6Xfc8A5g","MarketMenu",void 0);const{ccclass:N,property:I}=a;t("MarketMenu",(p=N("MarketMenu"),y=I({type:n(c),displayName:"类型"}),d=I({type:l,displayName:"名称"}),m=I({type:r,displayName:"角标"}),b=I({type:o,displayName:"列表"}),f=I({type:o,displayName:"高亮"}),M=I({displayName:"子类"}),p((w=e((k=class t extends u{constructor(...t){super(...t),i(this,"type",w,this),i(this,"title",_,this),i(this,"arrow",S,this),i(this,"list",v,this),i(this,"highlight",C,this),i(this,"subitem",z,this),this.colors=[(new h).fromHEX("#C2C2C2"),(new h).fromHEX("#D25A30")],this.unfold=!1,this.selected=!1,this.subitems=[]}init(){My.Event.on(My.events.elect_market_menu,this.elect_Menu,this),this.list&&(this.subitems=this.list.getComponentsInChildren(t),this.subitems.forEach((t=>{t.init()})),this.list.active=!1),this.node.on("click",this.onClick_Selected,this),this.selected=!1,this.unfold=!1}isChecked(){this.subitem?My.Market.Instance.setMenuSelect(this.type,this.node.name):My.Market.Instance.setMenuSelect(this.type)}elect_Menu(t,e){this.subitem||null!=e?this.subitem&&null!=e&&(this.title.color=e==this.node.name?this.colors[1]:this.colors[0],this.highlight.active=e==this.node.name):t==this.type?(this.title.color=this.colors[1],this.list_State(!0)):(this.title.color=this.colors[0],this.list_State(!1))}list_State(t){null!=this.list&&(this.subitem||(t?(this.unfold=!this.unfold,this.unfold?(this.list.active=!0,this.arrow.node.angle=-90,this.selected||(this.selected=!0,this.subitems[0].isChecked())):(this.list.active=!1,this.arrow.node.angle=0),this.arrow.color=this.colors[1]):(this.unfold=!1,this.selected=!1,this.list.active=!1,this.arrow.node.angle=0,this.arrow.color=this.colors[0])))}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),this.subitem?My.Market.Instance.setMenuSelect(this.type,this.node.name):My.Market.Instance.setMenuSelect(this.type)}}).prototype,"type",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return c.神秘商铺}}),_=e(k.prototype,"title",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(k.prototype,"arrow",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(k.prototype,"list",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(k.prototype,"highlight",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(k.prototype,"subitem",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=k))||g));s._RF.pop()}}}));

System.register("chunks:///_virtual/MarketMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./UIDefine.ts"],(function(e){"use strict";var t,s,i,a,n,r,o,h,c,l,m,u,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.CCInteger,n=e.JsonAsset,r=e._decorator,o=e.Component},function(e){h=e.ItemType,c=e.BaoxiangType},function(e){l=e.MarketMenuType,m=e.PopupType,u=e.MarketBoxItems,y=e.MarketBoxItem}],execute:function(){var p,M,g,I,f,v,d,T,w,k,_;i._RF.push({},"f9497JlaztNgKfRwVvoQWSK","MarketMgr",void 0);const{ccclass:D,property:E}=r;let S=e("MarketItems",(p=D("MarketItems"),M=E({type:[a],displayName:"物品"}),p((f=t((I=class{constructor(){s(this,"items",f,this)}}).prototype,"items",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=I))||g));e("MarketConfig",class{constructor(){this.type=void 0,this.ids=void 0}});e("MarketMgr",(v=D("MarketMgr"),d=E({type:n,displayName:"黑市配置文件"}),v(((_=class e extends o{constructor(...e){super(...e),s(this,"heishiJson",k,this),this.configs=[],this.configMap=new Map,this.marketMap=new Map,this.unlockItems=[],this.menuType=l.快捷装备,this.typeStr=void 0}onLoad(){e.Instance=this,this.loadData()}loadData(){My.Event.off(My.events.game_load,this.loadData,this),this.heishiJson.json.config.forEach((e=>{let t=new S;t.items=Tool.StringUtil.stringToArrayNumber(e.ids,";");let s=[];t.items.length>0&&t.items.forEach((e=>{let t=My.Item.Instance.getItemConfig(e);this.configs.push(t),s.push(t)})),this.configMap.set(e.type,s)})),this.unlockItems=[]}buyItem(e,t,s){if(e.type==h.杂物){switch(My.Event.emit(My.events.game_got,[[e.id,t]]),e.id){case 99998:My.Data.warehouse+=1;break;case 99999:My.Data.warehouse+=10}My.Event.emit(My.events.update_whs_value)}else if(e.type==h.宝箱){switch(e.kind){case c.随机宝箱:let e=[];for(let i=0;i<t;i++){let t=s[Tool.MathUtil.randomByWeight(this.itemWeights(s))].items[0];e.push([t.id,t.count]);let i=My.Item.Instance.getItemConfig(t.id);My.Whs.Instance.whsItem_Push(Tool.CommonUtil.BuyItemData(i,t.count),!1)}My.Event.emit(My.events.game_got,e);break;case c.套装宝箱:let i=[];s[0].items.forEach((e=>{i.push([e.id,e.count*t]);let s=My.Item.Instance.getItemConfig(e.id);My.Whs.Instance.whsItem_Push(Tool.CommonUtil.BuyItemData(s,e.count*t),!1)})),My.Event.emit(My.events.game_got,i)}My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value)}else{My.Event.emit(My.events.game_got,[[e.id,t]]);let s=My.Item.Instance.getItemConfig(e.id);My.Whs.Instance.whsItem_Push(Tool.CommonUtil.BuyItemData(s,t)),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value)}}parseBoxItem(e){let t=[];return Tool.StringUtil.stringToArray(e,";").forEach((e=>{let s=new u;Tool.StringUtil.stringToArray(e,"|").forEach((e=>{let t=new y;t.setReward(Tool.StringUtil.stringToArrayNumber(e,",")),s.setBoxItems(t)})),t.push(s)})),t}setMenuSelect(e,t){this.menuType=e,t&&(this.typeStr=t),My.Event.emit(My.events.elect_market_menu,this.menuType,t)}checkUnlockState(){return!(this.unlockItems.length<=0)&&(My.UI.Instance.showPopup(m.解锁弹窗),!0)}compareType(e,t,s){if(!this.marketMap.has(this.menuType))return!1;{let i=this.marketMap.get(this.menuType);switch(this.menuType){case l.神秘商铺:case l.热卖新品:case l.抽奖礼包:case l.快捷装备:return Tool.ArrayUtil.HasItem(i,e);case l.武器:case l.防具:case l.配件:return Tool.ArrayUtil.HasItem(i,e)&&s==this.typeStr;case l.消耗品:return Tool.ArrayUtil.HasItem(i,e)&&this.compareOther(t,s)}}}compareOther(e,t){switch(this.typeStr){case"药品":case"投掷物":return e==this.typeStr}return t==this.typeStr}itemWeights(e){let t=[];return e.forEach((e=>{t.push(e.items[0].weight)})),t}}).Instance=null,k=t((w=_).prototype,"heishiJson",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=w))||T));i._RF.pop()}}}));

System.register("chunks:///_virtual/MarketView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./MarketItem.ts","./MarketMenu.ts","./AnchorItem.ts","./UIDefine.ts","./ViewBase.ts","./ScrollRenderer.ts"],(function(e){"use strict";var t,i,r,n,a,o,s,c,l,u,p,h,y,f,d,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Prefab,a=e.ScrollView,o=e._decorator,s=e.instantiate,c=e.director,l=e.Director},function(e){u=e.MarketItem},function(e){p=e.MarketMenu},function(e){h=e.AnchorItem},function(e){y=e.PopupType},function(e){f=e.ViewBase,d=e.ViewType},function(e){m=e.ScrollRenderer}],execute:function(){var M,b,_,w,k,I,v,S,V,g,E,D,P;r._RF.push({},"ba577V5BPtM/J2F0pjYWW0v","MarketView",void 0);const{ccclass:T,property:z}=o;e("MarketView",(M=T("MarketView"),b=z({type:n,displayName:"预制"}),_=z({type:a,displayName:"滚动视图"}),w=z({type:m,displayName:"渲染器"}),k=z({type:[p],displayName:"菜单选项"}),I=z({type:[h],displayName:"锚点动画"}),M((V=t((S=class extends f{constructor(...e){super(...e),i(this,"prefab",V,this),i(this,"scroll",g,this),i(this,"renderer",E,this),i(this,"menus",D,this),i(this,"anchors",P,this)}init(){this.node.active=!1,this.menus.forEach((e=>{e.init()})),My.Event.on(My.events.game_load,this.load_Data,this),My.Event.on(My.events.elect_market_menu,this.elect_Menu,this)}show(e){My.Sound.playSfx(My.sounds.ui_view_market),this.reset_State(),e&&e()}hide(e){this.node.active=!1,e&&e()}load_Data(){if(!this.prefab)return;let e=380;My.Game.param.ratio<=1.8?e=330:My.Game.param.ratio<=1.9?e=340:My.Game.param.ratio<2&&(e=360),My.Market.Instance.configMap.forEach(((t,i,r)=>{let n=[];t.forEach((t=>{let i=s(this.prefab);this.renderer.pushItem(i);let r=i.getComponent(u);r.init(),r.setData(t,e),n.push(r)})),My.Market.Instance.marketMap.set(i,n)}))}reset_State(){this.menus[0].isChecked(),this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),this.renderer.delay(.2)}elect_Menu(e,t){c.once(l.EVENT_AFTER_UPDATE,(()=>{this.renderer.updateRenderer(),this.scroll.scrollToTop(0,!1)}),this)}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(d.主页视图),My.UI.Instance.hideView(d.黑市视图)}onClick_Prob(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showPopup(y.公示弹窗)}}).prototype,"prefab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(S.prototype,"scroll",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(S.prototype,"renderer",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(S.prototype,"menus",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),P=t(S.prototype,"anchors",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=S))||v));r._RF.pop()}}}));

System.register("chunks:///_virtual/MathUtil.ts",["cc"],(function(t){"use strict";var a,r,e,n,c;return{setters:[function(t){a=t.cclegacy,r=t.macro,e=t.misc,n=t.v2,c=t.Vec3}],execute:function(){a._RF.push({},"53e78EOYTNFkKCn9G+5c1Cp","MathUtil",void 0);class i{static vectorCovertAngle(t){return-(Math.atan2(t.x,t.y)*r.DEG-90)}static lerp(t,a,r){return t+(a-t)*r}static probability(t){return 100*Math.random()<t}static randomInRange(t,a){return Math.floor(Math.random()*(a-t+1))+t}static dirByAngle(t){let a=e.degreesToRadians(t),r=n(1,0);return r=r.rotate(a),r}static randomDirByAngle(t,a){let r=a-t,c=t+Math.round(Math.random()*r),i=e.degreesToRadians(c),o=n(1,0);return o=o.rotate(i),o}static randomByWeight(t){const a=t.reduce(((t,a)=>t+a),0),r=Math.random()*a;let e=0;for(let a=0;a<t.length;a++)if(e+=t[a],r<=e)return a;return 0}static randomOnCircle(t,a){let r=2*Math.random()*Math.PI,e=t.x+a*Math.cos(r),n=t.y+a*Math.sin(r);return new c(e,n,t.z)}static randomInCircle(t,a){let r=2*Math.random()*Math.PI,e=Math.random()*a,n=t.x+e*Math.cos(r),i=t.y+e*Math.sin(r);return new c(n,i,t.z)}}t("MathUtil",i),i.deg2Rad=Math.PI/180,i.rad2Deg=180/Math.PI,a._RF.pop()}}}));

System.register("chunks:///_virtual/MechaCtrl.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./Weapon.ts"],(function(t){"use strict";var e,i,o,s,a,n,h,l,r,y,c,p,d,u,m,g;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Node,a=t.AudioSource,n=t.RigidBody2D,h=t.CCInteger,l=t._decorator,r=t.Component,y=t.v2,c=t.input,p=t.Input,d=t.math,u=t.KeyCode},function(t){m=t.ShootType},function(t){g=t.Weapon}],execute:function(){var v,b,f,M,_,w,k,C,S,E,K,P,D,R,N,Y,x,j,z,T,W;o._RF.push({},"c8170DPbWxNDbwrwLPukhUV","MechaCtrl",void 0);const{ccclass:U,property:A}=l;t("MechaCtrl",(v=U("MechaCtrl"),b=A({type:s,displayName:"身体"}),f=A({type:s,displayName:"准星"}),M=A({type:g,displayName:"武器"}),_=A({type:a,displayName:"音效组件"}),w=A({type:n,displayName:"刚体组件"}),k=A({type:h,displayName:"移动速度"}),C=A({type:s,displayName:"头部关节"}),S=A({type:s,displayName:"右手关节"}),E=A({type:s,displayName:"左手关节"}),v((D=e((P=class extends r{constructor(...t){super(...t),i(this,"body",D,this),i(this,"aim",R,this),i(this,"weapon",N,this),i(this,"audioCom",Y,this),i(this,"rigidCom",x,this),i(this,"speed",j,this),i(this,"head",z,this),i(this,"handR",T,this),i(this,"handL",W,this),this.dir=1,this.vector=y(),this.moved=!1,this.shooting=!1,this.shootType=m.按下射击,this.shootJoy_State=!1,this.correcting=!1,this.skill=void 0,this.lastRatio=0}onEnable(){this.speed=My.Setting.getData("mech_speed"),this.shootType=m.按下射击,this.aim.active=!1,c.on(p.EventType.KEY_UP,this.onKeyUp,this),c.on(p.EventType.KEY_DOWN,this.onKeyDown,this),My.Event.on(My.events.play_movejoy,this.onMovement,this),My.Event.on(My.events.play_shootjoy,this.onShooting,this),My.Event.on(My.events.play_skilljoy,this.onSkilling,this)}onDisable(){c.off(p.EventType.KEY_UP,this.onKeyUp,this),c.off(p.EventType.KEY_DOWN,this.onKeyDown,this),My.Event.off(My.events.play_movejoy,this.onMovement,this),My.Event.off(My.events.play_shootjoy,this.onShooting,this),My.Event.off(My.events.play_skilljoy,this.onSkilling,this)}update(){My.Player.cannot||(this.attack(),this.movement())}async movement(){let t=this.vector.length();this.shootJoy_State||(this.vector.x>0?this.dir=1:this.vector.x<0&&(this.dir=-1),this.body.setScale(this.dir,1,1),!this.weapon.reloading&&!this.shooting&&!this.correcting&&t>0&&(this.correcting=!0,this.scheduleOnce((()=>{this.correcting=!1,this.weapon.node.angle=0,this.jointed(0)}),.1))),My.Player.speedRatio!=this.lastRatio&&(this.lastRatio=My.Player.speedRatio,this.audioCom.playing?(this.audioCom&&this.audioCom.stop(),this.audioCom.clip=await My.Sound.getAudioClip(this.lastRatio>1?My.sounds.mecha_fly:My.sounds.mecha_move),this.audioCom.play()):this.audioCom.clip=await My.Sound.getAudioClip(this.lastRatio>1?My.sounds.mecha_fly:My.sounds.mecha_move)),t>0&&!this.moved?(this.moved=!0,this.audioCom.play()):t<=0&&this.moved&&(this.moved=!1,this.audioCom&&this.audioCom.stop());let e=this.rigidCom.linearVelocity;e.x=this.vector.x*this.speed*My.Player.speedRatio,e.y=this.vector.y*this.speed*My.Player.speedRatio,this.rigidCom.linearVelocity=e}attack(){if(!My.Player.action_Has(!1))switch(this.shootType){case m.按下射击:this.shootJoy_State&&My.Player.weapon.attack();break;case m.松开射击:this.shooting&&!this.shootJoy_State&&(this.shooting=!1,My.Player.weapon.attack())}}jointed(t){let e=d.clamp(.7*t,-40,40);this.head.angle=e,this.handR.angle=e,this.handL.angle=0!=t?t+30:t}onMovement(t){this.vector=t}onShooting(t,e){if(t)switch(e&&(this.dir=e-90>0?-1:1,this.body.setScale(this.dir,1,1),this.weapon.reloading||(1==this.dir?this.weapon.node.angle=e:this.weapon.node.angle=180-e,this.jointed(this.weapon.node.angle))),this.shooting=!0,this.shootType){case m.按下射击:this.shooting=!1;break;case m.松开射击:}else switch(this.shootType){case m.按下射击:this.shooting=!1;break;case m.松开射击:}this.shootJoy_State=t}onSkilling(t,e,i){if(e){let e=t.length();if(e>.2){let e=t.multiplyScalar(600);this.aim.setPosition(e.x,e.y,0)}this.aim.active=e>.25}else{if(this.aim.active&&i){null==this.skill&&(this.skill=My.Setting.getSkillConfig(2));let t=this.aim.getWorldPosition();My.Player.Instance.use_SkillItem(this.skill,t),this.dir=t.x>0?1:-1,this.body.setScale(this.dir,1,1)}this.aim.active=!1}}onKeyDown(t){let e=this.vector.x,i=this.vector.y;switch(t.keyCode){case u.KEY_W:i=1;break;case u.KEY_S:i=-1;break;case u.KEY_A:e=-1;break;case u.KEY_D:e=1}this.vector=y(e,i)}onKeyUp(t){let e=this.vector.x,i=this.vector.y;switch(t.keyCode){case u.KEY_W:1==i&&(i=0);break;case u.KEY_S:-1==i&&(i=0);break;case u.KEY_A:-1==e&&(e=0);break;case u.KEY_D:1==e&&(e=0)}this.vector=y(e,i)}}).prototype,"body",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(P.prototype,"aim",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(P.prototype,"weapon",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=e(P.prototype,"audioCom",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(P.prototype,"rigidCom",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(P.prototype,"speed",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),z=e(P.prototype,"head",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(P.prototype,"handR",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=e(P.prototype,"handL",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=P))||K));o._RF.pop()}}}));

System.register("chunks:///_virtual/MechaView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ChargeItem.ts","./AnchorItem.ts","./ViewBase.ts"],(function(e){"use strict";var t,a,i,r,s,n,c,h,o,l,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){i=e.cclegacy,r=e.Label,s=e.Sprite,n=e.SpriteFrame,c=e._decorator},function(e){h=e.ChargeItem},function(e){o=e.AnchorItem},function(e){l=e.ViewBase,u=e.ViewType}],execute:function(){var y,p,g,m,d,M,b,f,w,_,S,D,I;i._RF.push({},"509dfad2XRDZYw5htl032U6","MechaView",void 0);const{ccclass:v,property:C}=c;e("MechaView",(y=v("MechaView"),p=C({type:h,displayName:"充能"}),g=C({type:r,displayName:"充能文本"}),m=C({type:s,displayName:"充能按钮底图"}),d=C({type:[n],displayName:"充能图集"}),M=C({type:[o],displayName:"锚点动画"}),y((w=t((f=class extends l{constructor(...e){super(...e),a(this,"charge",w,this),a(this,"chargeLebel",_,this),a(this,"chargeBtnImage",S,this),a(this,"chargeImgs",D,this),a(this,"anchors",I,this),this.state=!1}init(){this.node.active=!1,this.charge.init(),My.Event.on(My.events.update_battery,this.update_ChargeState,this)}show(e){this.reset_State(),e&&e()}hide(e){this.node.active=!1,e&&e()}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),this.update_ChargeState()}update_ChargeState(){this.node.active&&(this.state=1==My.Data.playerData.mechaState,this.chargeLebel.string=this.state?"机甲已启动":"启动机甲",this.chargeBtnImage.spriteFrame=this.chargeImgs[this.state?1:0])}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(u.主页视图),My.UI.Instance.hideView(u.机甲视图)}onClick_charge(){My.Sound.playSfx(My.sounds.ui_click_common),this.state?My.Msg.showMessage(My.msgcode.充能成功):My.Data.playerData.battery>0?(My.Data.playerData.mechaState=1,My.Data.playerData.battery-=1,My.Data.savePlayerData(),this.update_ChargeState(),My.Event.emit(My.events.update_battery)):My.Msg.showMessage(My.msgcode.充能失败)}}).prototype,"charge",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(f.prototype,"chargeLebel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(f.prototype,"chargeBtnImage",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(f.prototype,"chargeImgs",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),I=t(f.prototype,"anchors",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=f))||b));i._RF.pop()}}}));

System.register("chunks:///_virtual/MechaWeapon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Bullet.ts","./GameDefine.ts","./Weapon.ts"],(function(e){"use strict";var t,i,a,l,o,n,s,u,r,h,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,l=e.Node,o=e._decorator,n=e.instantiate,s=e.Vec2},function(e){u=e.Bullet,r=e.BulletParme},function(e){h=e.GameTags},function(e){c=e.Weapon}],execute:function(){var p,d,g,m,b;a._RF.push({},"1fac1o1UNBDMp6dhPKiQ0MR","MechaWeapon",void 0);const{ccclass:f,property:y}=o;e("MechaWeapon",(p=f("MechaWeapon"),d=y({type:l,displayName:"源点"}),p((b=t((m=class extends c{constructor(...e){super(...e),i(this,"origin",b,this)}async load(e){console.log("机甲武器",e),this.equip=e,null!=this.equip?(this.setBulletPrefab(),this.moaAngle=Tool.CommonUtil.ParseAngleMoa(this.equip.data.moa),this.bulletCount=1,this.bulletDamage=0,this.bulletRange=0,this.bulletSpeed=0):My.Game.gameErr("机甲武器数据为null")}unload(){this.equip=null,this.node.active=!1}attack(){if(null==this.equip)return;if(!this.equip.canShoot)return;let e=this.muzzle.getWorldPosition();My.Sound.playSfx(this.equip.shootSound),this.equip.shoot(),this.getBulletParams(this.bulletCount).forEach((t=>{let i=n(this.bulletPrefab);i.setParent(My.Pool.Instance.poolNode),i.setWorldPosition(e),i.getComponent(u).init(t)}))}getBulletParams(e){this.bulletDamage<=0&&(this.bulletDamage=this.equip.data.atkadd),this.bulletRange<=0&&(this.bulletRange=this.equip.data.range),this.bulletSpeed<=0&&(this.bulletSpeed=this.equip.data.speed);let t=this.muzzle.worldPosition.subtract(this.origin.worldPosition).normalize(),i=Tool.MathUtil.vectorCovertAngle(t),a=[];for(let l=0;l<e;l++){let o=new r;switch(e){case 1:My.Game.cheat.cheat_moa?o.dir=new s(t.x,t.y):o.dir=Tool.MathUtil.randomDirByAngle(i-this.moaAngle,i+this.moaAngle);break;case 5:o.dir=Tool.MathUtil.dirByAngle(i-6+3*l)}My.Game.cheat.cheat_damage?o.damage=999:o.damage=this.bulletDamage,o.endurance=this.equip.ammo.endDamage,o.pierce=this.equip.ammo.pierce,o.range=this.bulletRange,o.speed=this.bulletSpeed,o.belong=h.玩家,o.radius=1,a.push(o)}return a}}).prototype,"origin",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=m))||g));a._RF.pop()}}}));

System.register("chunks:///_virtual/MenuBase.ts",["cc"],(function(e){"use strict";var s,t,n;return{setters:[function(e){s=e.cclegacy,t=e.Component,n=e._decorator}],execute:function(){var c;s._RF.push({},"17598oqko9KWqmo7OTnj1eu","MenuBase",void 0);const{ccclass:o,property:u}=n;e("MenuBase",o("MenuBase")(c=class extends t{init(){}})||c);s._RF.pop()}}}));

System.register("chunks:///_virtual/MenuView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts","./DotItem.ts","./AnchorItem.ts","./UIDefine.ts"],(function(e){"use strict";var i,t,n,o,a,s,c,l,y,u,r,M;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Label,a=e.Sprite,s=e.Toggle,c=e._decorator},function(e){l=e.ViewBase,y=e.ViewType},function(e){u=e.DotItem},function(e){r=e.AnchorItem},function(e){M=e.SystemLocks}],execute:function(){var h,d,m,p,_,I,w,g,k,f,S,b,v,V,U,C,x,D,L,N,E;n._RF.push({},"37460SBbqZAko2eOiEI7fBY","MenuView",void 0);const{ccclass:z,property:A}=c;e("MenuView",(h=z("MenuView"),d=A({type:o,displayName:"地图名称"}),m=A({type:a,displayName:"地图图像"}),p=A({type:o,displayName:"在线时长"}),_=A({type:a,displayName:"每日品质"}),I=A({type:a,displayName:"每日图标"}),w=A({type:s,displayName:"装备显示"}),g=A({type:M,displayName:"系统锁定"}),k=A({type:[r],displayName:"锚点动画"}),f=A({type:[u],displayName:"提示角标"}),h((v=i((b=class extends l{constructor(...e){super(...e),t(this,"mapName",v,this),t(this,"mapIcon",V,this),t(this,"timeLabel",U,this),t(this,"dailyQuality",C,this),t(this,"dailyIcon",x,this),t(this,"showToggle",D,this),t(this,"locks",L,this),t(this,"anchors",N,this),t(this,"dots",E,this)}init(){this.node.active=!1,this.showToggle.isChecked=!0,this.dots.forEach((e=>{e.init()})),My.Event.on(My.events.game_load,this.load_Data,this),My.Event.on(My.events.update_lv,this.update_Lv,this),My.Event.on(My.events.elect_level_item,this.update_MapInfo,this)}show(e){My.Game.timeEvent(this.timeLabel,!0),this.reset_State(),e&&e()}hide(e){My.Game.timeEvent(this.timeLabel,!1),this.node.active=!1,e&&e()}async load_Data(){let e=My.Daily.get_DailyData();e&&(this.dailyIcon.spriteFrame=await My.Item.Instance.getItemIcon(e.image),this.dailyQuality.spriteFrame=My.Item.Instance.getQualitySprite(e.quality))}update_Lv(){this.locks.lock_Market.active=!My.Archive.enabled_Market,this.locks.lock_Skin.active=!My.Archive.enabled_Skin}update_MapInfo(e){let i=My.Map.Instance.get_SelectedInfo();this.mapName.string=i[0],this.mapIcon.spriteFrame=My.Map.Instance.get_SelectedIcon(),My.Game.gameLog("地图选择："+i[0])}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.update_Lv(),this.anchors.forEach((e=>{e.show()}))}onClick_Daily(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.每日视图),My.UI.Instance.hideView(y.主页视图)}onClick_Start(){My.Sound.playSfx(My.sounds.ui_click_start),My.Game.Instance.gameLoad()}onClick_Level(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.关卡视图),My.UI.Instance.hideView(y.主页视图)}onClick_Survey(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.勘察视图),My.UI.Instance.hideView(y.主页视图)}onClick_Mecha(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.机甲视图),My.UI.Instance.hideView(y.主页视图)}onClick_Draw(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.dot_draw,!1),My.UI.Instance.showView(y.抽奖视图),My.UI.Instance.hideView(y.主页视图)}onClick_Store(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.商店视图),My.UI.Instance.hideView(y.主页视图)}onClick_Huodong(){My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(My.msgcode.不可用)}onClick_Zhanbei(){My.UI.Instance.showView(y.战备视图),My.UI.Instance.showView(y.背包视图),My.UI.Instance.hideView(y.主页视图)}onClick_Heishi(){My.Archive.enabled_Market?(My.UI.Instance.hideView(y.主页视图),My.Market.Instance.checkUnlockState()||My.UI.Instance.showView(y.黑市视图)):(My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(My.msgcode.未开放))}onClick_Renwu(){My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(My.msgcode.不可用)}onClick_Judian(){My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(My.msgcode.不可用)}onClick_Gexing(){My.Archive.enabled_Skin?(My.UI.Instance.showView(y.个性视图),My.UI.Instance.hideView(y.主页视图)):(My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(My.msgcode.未开放))}onClick_Data(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(y.档案视图),My.UI.Instance.hideView(y.主页视图)}onClick_Show(){My.Sound.playSfx(My.sounds.ui_click_common),My.Game.Instance.isShow=this.showToggle.isChecked,My.Event.emit(My.events.update_equip_show,this.showToggle.isChecked)}}).prototype,"mapName",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=i(b.prototype,"mapIcon",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=i(b.prototype,"timeLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(b.prototype,"dailyQuality",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=i(b.prototype,"dailyIcon",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=i(b.prototype,"showToggle",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=i(b.prototype,"locks",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new M}}),N=i(b.prototype,"anchors",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),E=i(b.prototype,"dots",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),S=b))||S));n._RF.pop()}}}));

System.register("chunks:///_virtual/MessageCode.ts",["cc"],(function(e){"use strict";var s,c;return{setters:[function(e){s=e.cclegacy,c=e._decorator}],execute:function(){var t,o;s._RF.push({},"e7312JkXghEZ7bf6PmgQDY+","MessageCode",void 0);const{ccclass:r,property:a}=c;e("MessageCode",r("MessageCode")(((o=class{}).屏蔽="当前状态无法使用",o.不可用="功能开发中",o.未开放="该功能暂未开启",o.不可携带="该物品无法携带",o.角色不匹配="当前角色无法操作",o.装配不匹配="该物品不符合装配要求",o.状态不匹配="当前状态无法操作",o.出售成功="出售成功，获得",o.超重="所携带的物品已超重",o.卸下成功="已卸下装备!",o.卸下失败="卸下失败!",o.装备成功="装备成功!",o.拾取成功="拾取成功!",o.拾取失败="拾取失败，所携带的物品已超重",o.兑换失败="兑换条件不足!",o.限购="已超出限购数量",o.无选择="请先选择物品!",o.无杂物="没有杂物可以操作",o.无物品="没有物品可以操作",o.无备弹="没有携带可用的备弹",o.无投掷物="没有携带可用的投掷物",o.无近战武器="未携带近战武器",o.货币不足="不足!",o.数量不足="该物品数量不足!",o.仓库空间不足="仓库空间不足!",o.背包空间不足="背包空间不足!",o.存入仓库="物品已存入仓库",o.存入背包="物品已存入背包",o.皮肤启用="皮肤已启用",o.皮肤卸下="皮肤已卸下",o.整理完成="仓库整理完成",o.维修完成="维修完成，花费",o.清除标记="地图标记已清除",o.充能成功="动力装甲已充能",o.充能失败="能源电池不足，无法激活",o.勘察条件不足="所需勘察条件不足",o.开启条件="需要 '{}' 来开启",o.购买解锁等级="行动等级{} 解锁购买",o.恢复生命="生命值已恢复",o.提升负重="负重上限已提升100%",o.无限弹药="获得无限弹药补给",t=o))||t);s._RF.pop()}}}));

System.register("chunks:///_virtual/MessageItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,s,n,a,r,p,c,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.UIOpacity,n=t.Label,a=t._decorator,r=t.Component,p=t.Vec3,c=t.tween,h=t.easing}],execute:function(){var l,d,u,y,g,m,v;o._RF.push({},"3e4ff1SbYZIhqe5eqGm95qI","MessageItem",void 0);const{ccclass:w,property:b}=a;t("MessageItem",(l=w("MessageItem"),d=b({type:s,displayName:"透明度组件"}),u=b({type:n,displayName:"消息文本"}),l((m=e((g=class extends r{constructor(...t){super(...t),i(this,"opacityComp",m,this),i(this,"label",v,this),this.tweenMove=void 0,this.tweenFade=void 0,this.origin=void 0,this.pos1=void 0}init(){this.origin=this.node.getPosition(),this.pos1=new p(this.origin.x,this.origin.y+40,this.origin.z),this.opacityComp.opacity=0,this.node.active=!1}show(t){this.stop(),this.opacityComp.opacity=0,this.node.position=this.origin,this.label.string=t,this.node.active=!0,this.tweenFade=c(this.opacityComp).to(.25,{opacity:255}).call((()=>{this.tweenFade=c(this.opacityComp).delay(.75).to(.25,{opacity:0}).start()})).start(),this.tweenMove=c(this.node).to(1.25,{position:this.pos1},{easing:h.backOut}).call((()=>{this.node.active=!1})).start()}hide(){this.node.active=!1}stop(){this.tweenMove&&this.tweenMove.stop(),this.tweenFade&&this.tweenFade.stop()}}).prototype,"opacityComp",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(g.prototype,"label",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=g))||y));o._RF.pop()}}}));

System.register("chunks:///_virtual/MinimapItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts"],(function(e){"use strict";var t,i,n,r,a,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.Sprite,a=e._decorator},function(e){s=e.PoolItem}],execute:function(){var o,c,l,p,u;n._RF.push({},"65de9p2Q4dKUbGNg4HCFiMc","MinimapItem",void 0);const{ccclass:m,property:d}=a;e("MinimapItem",(o=m("MinimapItem"),c=d({type:r,displayName:"图像"}),o((u=t((p=class extends s{constructor(...e){super(...e),i(this,"image",u,this),this.data=void 0}init(e){this.data=e,this.image.spriteFrame=My.Nav.Instance.get_SignIcon(e.type,e.level)}recycle(){this.image.spriteFrame=null,My.Pool.putNode(this.node)}onClick_Selected(){My.Event.emit(My.events.nav_sign_elect,this.data)}}).prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));n._RF.pop()}}}));

System.register("chunks:///_virtual/MinimapView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts","./AnchorItem.ts","./GameCamera.ts","./MinimapItem.ts"],(function(i){"use strict";var e,t,n,s,a,o,r,l,c,h,p,y,u,g;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){n=i.cclegacy,s=i.Label,a=i.Node,o=i.Graphics,r=i.Prefab,l=i._decorator,c=i.Vec3},function(i){h=i.ViewBase,p=i.ViewType},function(i){y=i.AnchorItem},function(i){u=i.CameraState},function(i){g=i.MinimapItem}],execute:function(){var _,m,M,v,f,b,d,S,w,I,P,N,C,x,E,V,z;n._RF.push({},"6fb14b08WZA0ZMCnKDg8LvI","MinimapView",void 0);const{ccclass:D,property:k}=l;i("MinimapView",(_=D("MinimapView"),m=k({type:s,displayName:"标题文本"}),M=k({type:a,displayName:"选择标记"}),v=k({type:a,displayName:"玩家位置"}),f=k({type:a,displayName:"撤离位置"}),b=k({type:o,displayName:"绘制"}),d=k({type:r,displayName:"预制"}),S=k({type:[y],displayName:"锚点动画"}),_((P=e((I=class extends h{constructor(...i){super(...i),t(this,"titleLabel",P,this),t(this,"select_Sign",N,this),t(this,"player_Sign",C,this),t(this,"exit_Sign",x,this),t(this,"graphics",E,this),t(this,"prefab",V,this),t(this,"anchors",z,this),this.signItems=[]}init(){My.Event.on(My.events.nav_sign_elect,this.sign_Elect,this),My.Event.on(My.events.nav_sign_clear,this.sign_Clear,this),My.Event.on(My.events.nav_sign_push,this.sign_Push,this),My.Event.on(My.events.play_unload,this.unload_Data,this),My.Event.on(My.events.play_init,this.load_Data,this),this.select_Sign.active=!1,this.node.active=!1}show(i){this.reset_State(),i&&i()}hide(i){this.node.active=!1,this.graphics.clear(),i&&i()}load_Data(){this.titleLabel.string=My.Map.Instance.get_SelectedName()}unload_Data(){this.signItems.forEach((i=>{i.recycle()})),this.signItems=[]}reset_State(){this.player_Sign.setPosition(this.convert_Pos(My.Player.position)),this.anchors.forEach((i=>{i.init()})),this.node.active=!0,this.anchors.forEach((i=>{i.show()})),this.sign_Navline()}sign_Push(i){if(i.type){let e=My.Pool.getNode(this.prefab,this.player_Sign.parent,this.convert_Pos(i.position)).getComponent(g);this.signItems.push(e),e.init(i)}else this.exit_Sign.setPosition(this.convert_Pos(i.position))}sign_Elect(i){i&&(this.select_Sign.setPosition(this.convert_Pos(i.position)),this.select_Sign.active=!0,this.sign_Navline())}sign_Clear(){this.graphics.clear(),this.select_Sign.active=!1,this.select_Sign.setPosition(c.ZERO)}sign_Navline(){this.graphics.clear(),this.select_Sign.active&&(this.graphics.moveTo(this.player_Sign.position.x,this.player_Sign.position.y),this.graphics.lineTo(this.select_Sign.position.x,this.select_Sign.position.y),this.graphics.stroke())}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.hideView(p.地图视图),My.Camera.Instance.changeState(u.自动跟随,(()=>{My.UI.Instance.showView(p.游戏视图)}))}onClick_Clear(){My.Sound.playSfx(My.sounds.ui_click_common),My.Nav.Instance.sign_Clear(),My.Msg.showMessage(My.msgcode.清除标记)}convert_Pos(i){let e=My.Map.mapRatio,t=new c;return t.x=i.x*e,t.y=i.y*e,t}}).prototype,"titleLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(I.prototype,"select_Sign",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(I.prototype,"player_Sign",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(I.prototype,"exit_Sign",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(I.prototype,"graphics",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(I.prototype,"prefab",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(I.prototype,"anchors",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=I))||w));n._RF.pop()}}}));

System.register("chunks:///_virtual/ModeExample.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var d,o,t,n,a,s;return{setters:[function(e){d=e.cclegacy,o=e.Component,t=e.director,n=e._decorator},function(e){a=e.default,s=e.AdIDS}],execute:function(){var c;d._RF.push({},"62f761HVQhDcaAxLiTyFm0y","ModeExample",void 0);const{ccclass:w,property:i}=n;e("ModeExample",w("ModeExample")(c=class extends o{start(){window.platform==a.VIVO||window.platform==a.TEST?window.sdk.deeplink?window.sdk.showRewardNode("beat"):"dc"==s[window.platform].company?window.sdk.changeState(1):0!=window.sdk.adSwitch&&window.sdk.firstOpen&&(window.sdk.firstOpen=!1,window.sdk.showRewardNode("beat")):window.sdk.changeState(1)}back(){t.loadScene("MainExample")}update(e){}})||c);d._RF.pop()}}}));

System.register("chunks:///_virtual/MotionTrail.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,r,s,a,o,h,l,n,p,d,c,u,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,s=t.SpriteAtlas,a=t.SpriteFrame,o=t.CCInteger,h=t._decorator,l=t.UIRenderer,n=t.Vec2,p=t.director,d=t.Director,c=t.NodeEventType,u=t.Node,y=t.Mat4}],execute:function(){var _,f,m,b,g,x,D,O,W,v,S,F,w,A,M,R,C,X,Y,N,j,P,z;r._RF.push({},"4ceb8nVh8BNFrrB1BHtI1CL","MotionTrail",void 0);class B{constructor(){this.x=0,this.y=0,this.dis=0,this.cos=0,this.sin=0}}const{ccclass:V,property:k,menu:T}=h;t("MotionTrail",(_=T("Gi/MotionTrail"),f=k({type:s,readonly:!0}),m=k({type:a}),b=k({displayName:"是否激活",tooltip:"设置isActive = true可以刷新顶点数据"}),g=k({displayName:"世界坐标",tooltip:"顶点坐标是世界坐标还是本地坐标"}),x=k({displayName:"偏移"}),D=k({type:o,displayName:"拖尾长度"}),O=k({displayName:"头部宽度"}),W=k({displayName:"尾部宽度"}),v=k({type:o,min:0,max:255,slide:!0,displayName:"头部透明度"}),S=k({type:o,min:0,max:255,slide:!0,displayName:"尾部透明度"}),V(F=_((A=e((w=class extends l{constructor(...t){super(...t),i(this,"atlas",A,this),i(this,"_spriteFrame",M,this),i(this,"_isActive",R,this),i(this,"_isWorldXY",C,this),i(this,"offset",X,this),i(this,"_length",Y,this),i(this,"_headWidth",N,this),i(this,"_tailWidth",j,this),i(this,"_headOpacity",P,this),i(this,"_tailOpacity",z,this),this.joints=[],this.cascadeScale=new n(1,1),this.visibleScale=new n(1,1)}get spriteFrame(){return this._spriteFrame}set spriteFrame(t){this._spriteFrame=t,this.updateSpriteFrame(),this.updateUV(),this.markForUpdateRenderData()}get isActive(){return this._isActive}set isActive(t){this._isActive=this.enabled=t,this.updateActive()}get isWorldXY(){return this._isWorldXY}set isWorldXY(t){this._isWorldXY=t,this.resetPos()}get length(){return this._length}set length(t){this._length=Math.max(t,2),this.updateLength(),this.updateIData(),this.updateUV(),this.updateWidth(),this.resetPos()}get headWidth(){return this._headWidth}set headWidth(t){this._headWidth=Math.max(t,0),this.updateWidth()}get tailWidth(){return this._tailWidth}set tailWidth(t){this._tailWidth=Math.max(t,0),this.updateWidth()}get headOpacity(){return this._headOpacity}set headOpacity(t){this._headOpacity=t,this._updateColor()}get tailOpacity(){return this._tailOpacity}set tailOpacity(t){this._tailOpacity=t,this._updateColor()}__preload(){super.__preload(),this._assembler={updateColor:this.updateColor.bind(this),updateRenderData:this.onFlushed.bind(this),fillBuffers:this.fillBuffer.bind(this)},this.update=this._assembler.updateRenderData,this._useVertexOpacity=!0}onLoad(){super.onLoad(),this.updateSpriteFrame(),this.updateLength(),this.updateUV(),this.updateWidth(),this.updateActive(),p.once(d.EVENT_AFTER_DRAW,this.updateColor,this),this.node.on(c.TRANSFORM_CHANGED,this.updateVisibleScale,this)}onDestroy(){super.onDestroy(),this.node.off(c.TRANSFORM_CHANGED,this.updateVisibleScale,this)}updateActive(){this._isActive&&(this.updateCascadeScale(),this.updateVisibleScale(),this.resetPos())}updateLength(){for(let t=0,e=this._length,i=this.joints=[];t<e;i[t++]=new B);this.createBuffer()}updateWidth(){let t=this._length,e=.5*this._headWidth,i=(e-.5*this._tailWidth)/(t-1);for(let r=0,s=this.joints;r<t;s[r].dis=e-i*r++);}createBuffer(){this.destroyRenderData();let t=this._renderData=this.requestRenderData(),e=this._length<<1;t.dataLength=e,t.resize(e,3*(e-2)),this._updateColor(),this.updateIData()}updateIData(){let t=this._renderData.chunk._ib;for(let e=0,i=0,r=t.length;e<r;++i)t[e++]=i,t[e++]=i+1,t[e++]=i+2;this._renderData.chunk.setIndexBuffer(t)}onFlushed(){this._spriteFrame&&(this.updateXY(),this._renderData.updateRenderData(this,this._spriteFrame),this.markForUpdateRenderData())}updateCascadeScale(){let t=this.node,e=1,i=1;for(;null!==t._parent;)t=t._parent,e*=t.scale.x,i*=t.scale.y;this.cascadeScale.x=e,this.cascadeScale.y=i}updateVisibleScale(t=4){t&u.TransformBit.SCALE&&(this.visibleScale.x=this.cascadeScale.x*this.node.scale.x,this.visibleScale.y=this.cascadeScale.y*this.node.scale.y)}updateXY(){let t=this.node,e=this.joints,i=this._renderData.data,r=this._length-1;for(let t=r;t>0;--t){let i=e[t],r=e[t-1];i.x=r.x,i.y=r.y,i.sin=r.sin,i.cos=r.cos}let s=e[0],a=e[1],o=this.visibleScale.x,h=this.visibleScale.y;if(this._isWorldXY){let e=t.worldMatrix;s.x=this.offset.x*o+e.m12,s.y=this.offset.y*h+e.m13}else s.x=this.offset.x*t.scale.x+t.position.x,s.y=this.offset.y*t.scale.y+t.position.y;let l=a.y-s.y,n=a.x-s.x,p=Math.sqrt(l*l+n*n);p>0&&(s.sin=l/p,s.cos=n/p);let d=0,c=0,u=1,y=1;this._isWorldXY||(d=t.position.x,c=t.position.y,u=this.cascadeScale.x,y=this.cascadeScale.y);let _=0,f=0,m=0,b=0,g=0;for(let t=0;t<r;++t,_+=2)s=e[t],f=(s.x-d)*u,m=(s.y-c)*y,b=s.dis*o*s.sin,g=s.dis*h*s.cos,i[_].x=f+b,i[_].y=m-g,i[_+1].x=f-b,i[_+1].y=m+g;a=e[r],f=(a.x-d)*u,m=(a.y-c)*y,b=a.dis*o*s.sin,g=a.dis*h*s.cos,i[_].x=f+b,i[_].y=m-g,i[_+1].x=f-b,i[_+1].y=m+g,this.fitXY(i)}resetPos(){let t=this.offset.x,e=this.offset.y,i=this.node;if(this._isWorldXY){let r=i.worldMatrix;t+=r.m12,e+=r.m13}else t+=i.position.x,e+=i.position.y;for(let i=this._length-1,r=this.joints;i>-1;--i)r[i].x=t,r[i].y=e;let r=this._renderData.data;for(let i=0,s=r.length;i<s;++i)r[i].x=t,r[i].y=e;this.fitXY(r)}fitXY(t){this._renderData.chunk.vb;{let e=y.invert(new y,this.node._mat),i=e.m00,r=e.m01,s=e.m04,a=e.m05;if(this._isWorldXY){let o=e.m12,h=e.m13;for(let e=0,l=t.length;e<l;++e){let l=t[e].x,n=t[e].y;t[e].x=i*l+s*n+o,t[e].y=r*l+a*n+h}}else for(let e=0,o=t.length;e<o;++e){let o=t[e].x,h=t[e].y;t[e].x=i*o+s*h,t[e].y=r*o+a*h}}}updateUV(){let t=this._spriteFrame;if(!t)return;let e=this._renderData,i=e.chunk.vb,r=e.floatStride,s=1/(this.joints.length-1);for(let t=3,e=0,a=i.length;t<a;t+=r,++e)i[t]=1&e,i[t+1]=1-s*(e>>1);let a=t.uv;if(t._rotated){var o=a[0],h=a[1],l=a[4]-o,n=a[3]-h;for(let t=3,r=i.length,s=e.floatStride;t<r;t+=s){let e=i[t];i[t]=o+i[t+1]*l,i[t+1]=h+e*n}}else{o=a[0],h=a[1],l=a[2]-o,n=a[5]-h;for(let t=3,r=i.length,s=e.floatStride;t<r;t+=s)i[t]=o+i[t]*l,i[t+1]=h+i[t+1]*n}}updateColor(){let t=this._renderData.chunk.vb,e=this._headOpacity/255,i=(e-this._tailOpacity/255)/(this._length-1),r=this.color,s=r.r/255,a=r.g/255,o=r.b/255,h=r.a/255;for(let r=5,l=t.length,n=2*this._renderData.floatStride,p=0;r<l;r+=n,++p)t[r]=t[r+9]=s,t[r+1]=t[r+10]=a,t[r+2]=t[r+11]=o,t[r+3]=t[r+12]=h*(e-i*p)}updateMaterial(){super.updateMaterial(),this._customMaterial??(this._customMaterial=this.sharedMaterial)}updateSpriteFrame(){this._spriteFrame?this._renderData&&(this._renderData.textureDirty=!0):this.atlas=null}_render(t){t.commitComp(this,this._renderData,this._spriteFrame,this._assembler,null),this.markForUpdateRenderData()}_canRender(){var t;return super._canRender()&&!(null==(t=this._spriteFrame)||!t.texture)}fillBuffer(){let t=this._renderData,e=t.chunk,i=e.vertexOffset,r=e.meshBuffer,s=r.iData,a=e.ib;for(let e=0,o=t.indexCount,h=r.indexOffset;e<o;s[h++]=i+a[e++]);r.indexOffset+=t.indexCount}}).prototype,"atlas",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(w.prototype,"_spriteFrame",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(w.prototype,"spriteFrame",[m],Object.getOwnPropertyDescriptor(w.prototype,"spriteFrame"),w.prototype),R=e(w.prototype,"_isActive",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e(w.prototype,"isActive",[b],Object.getOwnPropertyDescriptor(w.prototype,"isActive"),w.prototype),C=e(w.prototype,"_isWorldXY",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e(w.prototype,"isWorldXY",[g],Object.getOwnPropertyDescriptor(w.prototype,"isWorldXY"),w.prototype),X=e(w.prototype,"offset",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new n}}),Y=e(w.prototype,"_length",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 20}}),e(w.prototype,"length",[D],Object.getOwnPropertyDescriptor(w.prototype,"length"),w.prototype),N=e(w.prototype,"_headWidth",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),e(w.prototype,"headWidth",[O],Object.getOwnPropertyDescriptor(w.prototype,"headWidth"),w.prototype),j=e(w.prototype,"_tailWidth",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e(w.prototype,"tailWidth",[W],Object.getOwnPropertyDescriptor(w.prototype,"tailWidth"),w.prototype),P=e(w.prototype,"_headOpacity",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 255}}),e(w.prototype,"headOpacity",[v],Object.getOwnPropertyDescriptor(w.prototype,"headOpacity"),w.prototype),z=e(w.prototype,"_tailOpacity",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e(w.prototype,"tailOpacity",[S],Object.getOwnPropertyDescriptor(w.prototype,"tailOpacity"),w.prototype),F=w))||F)||F));r._RF.pop()}}}));

System.register("chunks:///_virtual/MyGame.ts",["cc","./MessageCode.ts","./StoreMgr.ts","./SkinMgr.ts","./SurveyMgr.ts","./PlayerMgr.ts","./DailyMgr.ts","./EnemyMgr.ts","./GameSetting.ts","./GamePool.ts","./GameData.ts","./Events.ts","./GameEvent.ts","./GameItem.ts","./GameMgr.ts","./GameRes.ts","./GameSound.ts","./MapMgr.ts","./MarketMgr.ts","./PackMgr.ts","./WarehouseMgr.ts","./GameMessage.ts","./ArrayUtil.ts","./CommonUtil.ts","./MathUtil.ts","./StringUtil.ts","./TimeUtil.ts","./GamePlay.ts","./GameCamera.ts","./GameUI.ts","./QuickMgr.ts","./GuideMgr.ts","./ArchiveMgr.ts","./NavMgr.ts","./AStarMgr.ts"],(function(){"use strict";var t,i,n,s,e,a,r,o,c,u,M,h,m,g,f,l,G,y,S,U,v,d,k,P,A,E,C,w,p,D,I,R,N,T,W,Q;return{setters:[function(i){t=i.cclegacy},function(t){i=t.MessageCode},function(t){n=t.StoreMgr},function(t){s=t.SkinMgr},function(t){e=t.SurveyMgr},function(t){a=t.PlayerMgr},function(t){r=t.DailyMgr},function(t){o=t.EnemyMgr},function(t){c=t.GameSetting},function(t){u=t.GamePool},function(t){M=t.GameData},function(t){h=t.Events},function(t){m=t.GameEvent},function(t){g=t.GameItem},function(t){f=t.GameMgr},function(t){l=t.GameRes},function(t){G=t.GameSound,y=t.Sounds},function(t){S=t.MapMgr},function(t){U=t.MarketMgr},function(t){v=t.PackMgr},function(t){d=t.WarehouseMgr},function(t){k=t.GameMessage},function(t){P=t.ArrayUtil},function(t){A=t.CommonUtil},function(t){E=t.MathUtil},function(t){C=t.StringUtil},function(t){w=t.TimeUtil},function(t){p=t.GamePlay},function(t){D=t.GameCamera},function(t){I=t.GameUI},function(t){R=t.QuickMgr},function(t){N=t.GuideMgr},function(t){T=t.ArchiveMgr},function(t){W=t.NavMgr},function(t){Q=t.AStarMgr}],execute:function(){t._RF.push({},"cfae9OyU+hEP7N3oOw9MSKW","MyGame",void 0);window.My=new class{constructor(){this.Game=f,this.Data=M,this.Pool=u,this.Res=l,this.UI=I,this.Item=g,this.Play=p,this.Camera=D,this.Setting=c,this.Event=m,this.events=h,this.Msg=k,this.msgcode=i,this.Sound=G,this.sounds=y,this.Guide=N,this.Map=S,this.Enemy=o,this.Market=U,this.Pack=v,this.Whs=d,this.Daily=r,this.Survey=e,this.Skin=s,this.Store=n,this.Quick=R,this.Archive=T,this.Nav=W,this.AStar=Q,this.Player=a}},window.Tool=new class{constructor(){this.CommonUtil=A,this.ArrayUtil=P,this.MathUtil=E,this.StringUtil=C,this.TimeUtil=w}},t._RF.pop()}}}));

System.register("chunks:///_virtual/NativeAd.ts",["cc","./ChannelID.ts"],(function(t){"use strict";var i,e,o,s,n,d,l,a,c,h,r;return{setters:[function(t){i=t.cclegacy,e=t.Component,o=t.Button,s=t.Vec3,n=t.LabelComponent,d=t.assetManager,l=t.Texture2D,a=t.SpriteFrame,c=t.SpriteComponent,h=t._decorator},function(t){r=t.default}],execute:function(){var m;i._RF.push({},"3c66aRSEp5JqLIncn4/nYiq","NativeAd",void 0);const{ccclass:p,property:g}=h;t("NativeAd",p("NativeAd")(m=class extends e{constructor(...t){super(...t),this.adList=void 0,this.bClick=!1,this.nativeAd=void 0}start(){console.log("原生 初始化"),this.node.getChildByName("close").getComponent(o).node.on("click",this.closeAd,this),this.node.getChildByName("img").getComponent(o).node.on("click",this.clickAd,this)}show(t,i){if(window.platform!=r.TEST){this.adList=t,this.nativeAd=i,this.nativeAd.reportAdShow({adId:this.adList[0].adId}),window.platform==r.OPPO?this.setUI(this.adList[0].title,this.adList[0].desc,this.adList[0].imgUrlList[0],this.adList[0].iconUrlList[0]):window.platform==r.HW?this.setUI(this.adList[0].title,this.adList[0].source,this.adList[0].imgUrlList[0],null):window.platform==r.XIAOMI&&this.setUI(this.adList[0].title,this.adList[0].desc,this.adList[0].imgUrlList[0],this.adList[0].icon),this.node.position=new s(this.node.position.x,0,this.node.position.z)}else this.node.position=new s(this.node.position.x,0,this.node.position.z)}setUI(t,i,e,o){var s=this.node;window.platform==r.XIAOMI?s.getChildByName("miAd").active=!0:s.getChildByName("ad").active=!0,t&&(s.getChildByName("title").getComponent(n).string=t),i&&(s.getChildByName("desc").getComponent(n).string=t);var h=()=>{o&&""!=o&&null!=o&&null!=o&&(console.log("原生 icon"),d.loadRemote(o,{ext:".jpg"},((t,i)=>{if(t)return void console.log("原生图片下载失败："+t);console.log("原生图片下载完成");let e=new l;e.image=i;let o=new a;o.texture=e,s.getChildByName("img").getComponent(c).spriteFrame=o})))};e&&""!=e&&null!=e&&null!=e?(console.log("原生 img"),d.loadRemote(e,{ext:".jpg"},((t,i)=>{if(t)return console.log("原生图片下载失败："+t),void h();console.log("原生图片下载完成");let e=new l;e.image=i;let o=new a;o.texture=e,s.getChildByName("img").getComponent(c).spriteFrame=o}))):h()}clickAd(){if(window.platform!=r.TEST){this.nativeAd.reportAdClick({adId:this.adList[0].adId}),this.bClick=!0}else this.close_()}closeAd(){window.platform!=r.TEST?0==window.sdk.adSwitch?this.close_():this.clickSelf():this.close_()}close_(){0==this.node.position.y&&(this.node.position=new s(this.node.position.x,5e3,this.node.position.z))}clickAdFromBack(){0==this.node.position.y&&(this.bClick?this.close_():this.nativeAd.reportAdShow({adId:this.adList[0].adId}))}clickSelf(){var t=this.random(0,99);console.log("原生 自点"+t+","+window.sdk.nativeClick),t<window.sdk.nativeClick?this.clickAd():this.close_()}random(t,i){return Math.floor(Math.random()*(i-t))+t}})||m);i._RF.pop()}}}));

System.register("chunks:///_virtual/NativeMgr.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var n,o,t,d,r,i,s,c,a,l;return{setters:[function(e){n=e.cclegacy,o=e.Component,t=e.game,d=e.Game,r=e.find,i=e.director,s=e.macro,c=e._decorator},function(e){a=e.default,l=e.AdIDS}],execute:function(){var w;n._RF.push({},"f9779VmooNKl4FwdPOli5nN","NativeMgr",void 0);const{ccclass:g,property:h}=c;e("NativeMgr",g("NativeMgr")(w=class extends o{start(){t.addPersistRootNode(this.node),window.platform!=a.OPPO&&window.platform!=a.HW&&window.platform!=a.XIAOMI||(t.on(d.EVENT_HIDE,(function(){console.log("游戏进入后台")}),this),t.on(d.EVENT_SHOW,(function(){console.log("游戏进入前台"),r("NativeMgr/NativeAd").getComponent("NativeAd").clickAdFromBack()}),this)),window.sdk.onShow((()=>{console.log("侧边栏进入游戏")}));var e=this;if(window.platform==a.VIVO){this.getLaunchOptionsSync();qg.onShow((function(){console.log("game enter foreground"),e.getEnterOptionsSync()}))}else window.platform==a.TEST&&window.sdk.deeplink&&this.openScheduler();if(window.platform==a.WX){var n=window.sdk.random(0,l[a.WX].shareId.length);wx.onShareAppMessage((function(){return{imageUrlId:l[a.WX].shareId[n],imageUrl:l[a.WX].shareUrl[n]}}))}}openScheduler(){null==window.sdk.scheduler&&(window.sdk.scheduler=i.getScheduler(),window.sdk.scheduler.enableForTarget(window.sdk),window.sdk.scheduler.schedule((()=>{window.sdk.showRewardNode("beat")}),window.sdk,5,s.REPEAT_FOREVER,5,!1))}getLaunchOptionsSync(){if(qg.getLaunchOptionsSync){const e=qg.getLaunchOptionsSync(),n=(e.referrerInfo.extraData,e.query.internal),o=n&&n.channel?n.channel:"";console.log("channel1:"+JSON.stringify(o)),"deeplink"==o&&(console.log("ddddd1"),window.sdk.deeplink=!0,this.openScheduler())}}getEnterOptionsSync(){if(qg.getEnterOptionsSync){const e=qg.getEnterOptionsSync(),n=(e.referrerInfo.extraData,e.query.internal),o=n&&n.channel?n.channel:"";console.log("channel2:"+JSON.stringify(o)),"deeplink"==o&&(console.log("ddddd2"),window.sdk.deeplink=!0,this.openScheduler())}}update(e){}})||w);n._RF.pop()}}}));

System.register("chunks:///_virtual/NavigateView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ChannelID.ts"],(function(e){"use strict";var t,i,a,n,r,o,l,s,c,p,u,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Label,r=e.Node,o=e._decorator,l=e.Component,s=e.loader,c=e.Texture2D,p=e.SpriteFrame,u=e.SpriteComponent},function(e){g=e.AdIDS}],execute:function(){var m,b,d,h,w,f,v,y,L;a._RF.push({},"095f0JI1xJDW6Xc7sj/1lRV","NavigateView",void 0);const{ccclass:D,property:N,type:x}=o;e("NavigateView",(m=D("NavigateView"),b=x(n),d=x(n),h=x(r),m((v=t((f=class extends l{constructor(...e){super(...e),i(this,"nameLabel",v,this),i(this,"nameLabel2",y,this),i(this,"icon",L,this)}start(){var e=this,t=g[window.platform].gameName,i=new RegExp("游戏名字","g"),a=this.nameLabel.string.replace(i,t);this.nameLabel.string=a;let n=t.length<=4?t:t.substring(0,4)+"...";this.nameLabel2.string=n,s.loadRes("ttIcon/"+g[window.platform].gameName,((t,i)=>{if(t)return void console.log(t);let a=new c;a.image=i;let n=new p;n.texture=a,e.icon.getComponent(u).spriteFrame=n}))}update(e){}click(){this.node.active=!1,window.sdk.navigateToScene()}close(){this.node.active=!1}}).prototype,"nameLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=t(f.prototype,"nameLabel2",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=t(f.prototype,"icon",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=f))||w));a._RF.pop()}}}));

System.register("chunks:///_virtual/NavItem.ts",["cc"],(function(t){"use strict";var i,s,e,n,h;return{setters:[function(t){i=t.cclegacy,s=t.Component,e=t.Vec3,n=t.Vec2,h=t._decorator}],execute:function(){var a;i._RF.push({},"cb42dAIMD9HBq/JpEYwo8gl","NavItem",void 0);const{ccclass:o,property:r}=h;t("NavItem",o("NavItem")(a=class extends s{constructor(...t){super(...t),this.point_Start=null,this.point_End=null,this.route=[],this.index=0,this.target=null,this.distance=0,this.lastIndex=0,this.lastPosition=e.ZERO,this.isFound=!1,this.isFinished=!1}clear(){this.lastPosition=e.ZERO,this.lastIndex=0,this.point_Start=null,this.point_End=null,this.target=null,this.isFinished=!1,this.isFound=!1,this.route=[],this.index=0}set_NavTarget(t){return this.point_Start=My.Map.mapGrid.get_GridPoint(this.node.getPosition()),this.point_End=My.Map.mapGrid.get_GridPoint(t),this.get_NavPath(),this.route.length<=0?1:this.point_End.x<this.point_Start.x?-1:1}set_NavChase(t,i){this.target=t,this.distance=i}get_NavPath(){return this.point_Start?this.point_End?(this.index=0,this.lastIndex=0,this.isFound=!1,this.isFinished=!1,this.lastPosition=e.ZERO,this.route=My.AStar.getRoute(this.point_Start,this.point_End,My.Map.mapGrid.grids,My.Map.mapGrid.size),this.route.length<=0?(My.Game.gameSign("未找到导航路线"),null):(this.isFound=!0,this.route)):(My.Game.gameSign("未设置导航终点"),null):(My.Game.gameSign("未设置导航起点"),null)}get_NavVector(){let t=new n;return this.isFound&&!this.isFinished?t=this.checkRoute():this.target&&(t=this.checkTarget()),t}checkRoute(){let t=n.ZERO;if(!this.isFound)return t;if(this.isFinished)return t;let i=this.node.getPosition(),s=this.route[this.index].position,h=e.distance(i,s);if(t=new n(s.x-i.x,s.y-i.y).normalize(),h<=10&&(this.index+=1,this.lastIndex=0,this.index>=this.route.length&&(this.isFinished=!0)),!this.isFinished)if(e.distance(i,this.lastPosition)<.1){if(this.lastIndex+=1,this.lastIndex>5)return My.Game.gameSign("导航路线异常卡死脱困"),My.Map.mapGrid.remove_GridPoint(this.route[this.index]),this.isFinished=!0,n.ZERO}else this.lastIndex=0,this.lastPosition=i;return t}checkTarget(){if(!this.target)return;let t=this.node.getPosition(),i=this.target.getPosition();return e.distance(t,i)<=this.distance?n.ZERO:new n(i.x-t.x,i.y-t.y).normalize()}})||a);i._RF.pop()}}}));

System.register("chunks:///_virtual/NavMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./MapDefine.ts"],(function(t){"use strict";var e,n,s,i,r,a,o,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){s=t.cclegacy,i=t.SpriteFrame,r=t._decorator,a=t.Component,o=t.Vec3},function(t){c=t.BoxType}],execute:function(){var l,u,g,v,h,y;s._RF.push({},"155daGUvaNMYqM9PdXZrTlK","NavMgr",void 0);const{ccclass:p,property:M}=r;t("NavMgr",(l=p("NavMgr"),u=M({type:[i],displayName:"资源图标"}),l(((y=class t extends a{constructor(...t){super(...t),n(this,"icons",h,this),this.target=null}static get target(){return this.Instance.target}onLoad(){t.Instance=this,My.Event.on(My.events.nav_sign_elect,this.sign_Push,this)}get_SignIcon(t,e){return t==c.空投箱?this.icons[0]:this.icons[e]}get_NavIcon(){return this.target.type==c.空投箱?this.icons[0]:this.icons[this.target.level]}get_NavDistance(){let t=0;return this.target&&(t=Math.round(o.distance(My.Player.worldPosition,this.target.node.worldPosition)/20)),t}sign_Push(t){this.target=t,My.Event.emit(My.events.nav_state)}sign_Clear(){this.target=null,My.Event.emit(My.events.nav_state),My.Event.emit(My.events.nav_sign_clear),My.Event.emit(My.events.nav_sign_elect,null)}}).Instance=null,h=e((v=y).prototype,"icons",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=v))||g));s._RF.pop()}}}));

System.register("chunks:///_virtual/NearbyPanel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Play_WuziItem.ts","./PanelBase.ts"],(function(t){"use strict";var e,s,i,n,a,o,r,h,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,s=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.Node,a=t.Prefab,o=t._decorator,r=t.instantiate},function(t){h=t.Play_WuziItem},function(t){l=t.PanelBase}],execute:function(){var c,u,p,y,d,m,f;i._RF.push({},"30d9aSfe4ZLFotuq4gTXI3/","NearbyPanel",void 0);const{ccclass:b,property:g}=o;t("NearbyPanel",(c=b("NearbyPanel"),u=g({type:n,displayName:"列表"}),p=g({type:a,displayName:"预制"}),c((m=e((d=class extends l{constructor(...t){super(...t),s(this,"content",m,this),s(this,"prefab",f,this),this.datas=[],this.items=[]}init(){My.Event.on(My.events.play_items,this.showItems,this),My.Event.on(My.events.update_nearby,this.updateItems,this)}show(t){for(let t=0;t<this.items.length;t++)t<this.datas.length?this.items[t].showNearbyItem(this.datas[t]):this.items[t].hide();this.node.active=!0}hide(){this.node.active=!1}showItems(t){if(this.datas=t,this.datas.length>0){let t=this.datas.length-this.items.length;if(t>0)for(let e=0;e<t;e++){let t=r(this.prefab),e=t.getComponent(h);t.setParent(this.content),this.items.push(e)}this.show()}else this.hide()}updateItems(){this.datas=My.Play.Instance.nearbyItems,this.datas.length>0?this.show():this.hide()}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.node.active=!1}}).prototype,"content",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(d.prototype,"prefab",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=d))||y));i._RF.pop()}}}));

System.register("chunks:///_virtual/net.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){function n(t,e,n,s,o,c){var u=new XMLHttpRequest;console.log("req http"+t+" "+n+"  "+s),u.onreadystatechange=function(){if(4==u.readyState&&u.status>=200&&u.status<400){var t=u.responseText;console.log("response "+t);var n=JSON.parse(t);o&&o(e,n)}else c&&c()},u.open(t,n,!0),null==s?u.send():u.send(s)}t({http_get:function(t,e,s,o){console.log("http_get"),n("GET",t,e,null,s,o)},http_post:function(t,e,s,o){console.log("http_post"),n("POST",t,e,s,o,null)},http_request:n}),e._RF.push({},"a446cYfl3lKaoda+5GdwgRG","net",void 0),e._RF.pop()}}}));

System.register("chunks:///_virtual/Npc_Weapon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./Bullet.ts","./GameDefine.ts","./SpaceAudio.ts"],(function(e){"use strict";var t,i,l,a,n,o,s,u,r,h,p,c,m,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){l=e.cclegacy,a=e.Animation,n=e.Sprite,o=e.Node,s=e._decorator,u=e.Component,r=e.instantiate},function(e){h=e.WuqiType},function(e){p=e.Bullet,c=e.BulletParme},function(e){m=e.GameTags},function(e){d=e.SpaceAudio}],execute:function(){var g,b,f,y,P,w,C,v,z,A,D;l._RF.push({},"31f17LehPZKWaY9P96EG0Dx","Npc_Weapon",void 0);const{ccclass:S,property:M}=s;e("Npc_Weapon",(g=S("Npc_Weapon"),b=M({type:a,displayName:"动画"}),f=M({type:d,displayName:"音效"}),y=M({type:n,displayName:"图像"}),P=M({type:o,displayName:"枪口"}),g((v=t((C=class extends u{constructor(...e){super(...e),i(this,"animationCom",v,this),i(this,"audio",z,this),i(this,"image",A,this),i(this,"muzzle",D,this),this.weapon=null,this.ammo=null,this.moaAngle=0,this.moaOffset=0,this.interval=0,this.bulletCount=0,this.bulletSpeed=0,this.bulletRange=0,this.bulletPierce=0,this.bulletDamage=0}async load(e){this.unscheduleAllCallbacks(),this.ammo=e.equips[4],this.weapon=e.equips[0],null!=this.weapon?(this.image.spriteFrame=await My.Item.Instance.getItemSkin(this.weapon.image),this.interval=this.weapon.rate,this.bulletCount=e.equips[0].type==h.霰弹枪?5:1,this.moaOffset=e.config?e.config.moa:e.guide.moa,this.moaAngle=Tool.CommonUtil.ParseAngleMoa(e.equips[0].moa),this.bulletDamage=e.config?0:e.guide.atk,this.bulletPierce=0,this.bulletRange=0,this.bulletSpeed=0,this.node.active=!0):this.node.active=!1}unload(){this.unscheduleAllCallbacks(),this.node.active=!1}shooting(e){let t=Math.ceil(e/this.interval);this.schedule((()=>{this.animationCom.play("Shoot"),this.audio.playSfx(My.sounds.weapon_shoot+this.weapon.type);let e=this.muzzle.getWorldPosition();this.getBulletParams(this.bulletCount).forEach((t=>{let i=r(My.Play.prefabs.bullet);i.setParent(My.Pool.Instance.poolNode),i.setWorldPosition(e),i.getComponent(p).init(t)}))}),this.interval,t,this.interval)}ceased(){this.unscheduleAllCallbacks()}getBulletParams(e){this.bulletDamage<=0&&(this.bulletDamage=Tool.CommonUtil.ParseDamage(this.weapon,this.ammo)),this.bulletRange<=0&&(this.bulletRange=this.weapon.range),this.bulletSpeed<=0&&(this.bulletSpeed=this.weapon.speed),this.bulletPierce<=0&&(this.bulletPierce=this.ammo.pierce);let t=this.muzzle.worldPosition.subtract(this.node.worldPosition).normalize(),i=Tool.MathUtil.vectorCovertAngle(t);i+=Tool.MathUtil.randomInRange(-this.moaOffset,this.moaOffset);let l=[];for(let t=0;t<e;t++){let a=new c;switch(e){case 1:a.dir=Tool.MathUtil.randomDirByAngle(i-this.moaAngle,i+this.moaAngle);break;case 5:a.dir=Tool.MathUtil.dirByAngle(i-6+3*t)}a.endurance=this.ammo.endDamage,a.pierce=this.bulletPierce,a.damage=this.bulletDamage,a.range=this.bulletRange,a.speed=this.bulletSpeed,a.belong=m.NPC,l.push(a)}return l}}).prototype,"animationCom",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(C.prototype,"audio",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(C.prototype,"image",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(C.prototype,"muzzle",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=C))||w));l._RF.pop()}}}));

System.register("chunks:///_virtual/Npc.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./PoolItem.ts","./HealthItem.ts","./SpaceAudio.ts","./Npc_Weapon.ts","./DynamicRenderer.ts","./MapDefine.ts","./NavItem.ts"],(function(e){"use strict";var t,i,a,s,n,l,h,o,r,c,d,u,p,g,m,y,b,f,v,w,N,T,P,M,k,_,C,D;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,s=e.Label,n=e.Sprite,l=e.RigidBody2D,h=e.Animation,o=e.Node,r=e.CircleCollider2D,c=e.Collider2D,d=e._decorator,u=e.Vec3,p=e.Contact2DType,g=e.Vec2,m=e.director,y=e.Director},function(e){b=e.NPCState,f=e.DamageType,v=e.GameTags,w=e.PierceType,N=e.BoxData},function(e){T=e.PoolItem},function(e){P=e.HealthItem},function(e){M=e.SpaceAudio},function(e){k=e.Npc_Weapon},function(e){_=e.DynamicRenderer},function(e){C=e.BoxType},function(e){D=e.NavItem}],execute:function(){var A,E,S,I,z,R,q,x,L,U,B,F,j,G,O,V,H,W,K,Q,Y,J,X,Z,$,ee,te,ie,ae,se,ne,le,he;a._RF.push({},"be3b2QGrAtMgo1CMMdimEEp","Npc",void 0);const{ccclass:oe,property:re}=d;e("Npc",(A=oe("Npc"),E=re({type:s,displayName:"名称"}),S=re({type:n,displayName:"骷髅"}),I=re({type:P,displayName:"生命值"}),z=re({type:D,displayName:"导航"}),R=re({type:l,displayName:"刚体"}),q=re({type:h,displayName:"动画"}),x=re({type:M,displayName:"音效"}),L=re({type:o,displayName:"修狗"}),U=re({type:n,displayName:"皮肤"}),B=re({type:[n],displayName:"装备"}),F=re({type:k,displayName:"武器"}),j=re({type:o,displayName:"武器节点"}),G=re({type:r,displayName:"范围区域"}),O=re({type:_,displayName:"渲染器"}),V=re({type:[c],displayName:"检测器"}),A((K=t((W=class extends T{constructor(...e){super(...e),i(this,"nameLabel",K,this),i(this,"skull",Q,this),i(this,"health",Y,this),i(this,"navigate",J,this),i(this,"rigidbody",X,this),i(this,"animation",Z,this),i(this,"audio",$,this),i(this,"body",ee,this),i(this,"skin",te,this),i(this,"equips",ie,this),i(this,"weapon",ae,this),i(this,"weaponNode",se,this),i(this,"rangeCollider",ne,this),i(this,"renderer",le,this),i(this,"colliders",he,this),this.hp=0,this.data=null,this.died=!1,this.inited=!1,this.state=b.无,this.toukui=null,this.hujia=null,this.vector=void 0,this.originPos=void 0,this.speed=0,this.aimDir=1,this.deathEvent=void 0,this.chaseTarget=void 0,this.idleAnim=!1}init(e,t){null!=e&&(this.deathEvent=t,this.data=e,this.initEquip(),this.initLevelData(),this.originPos=this.node.getPosition(),this.inited=!0,this.renderEvent(),My.Event.on(My.events.play_ended,this.endedEvent,this))}update(e){if(this.inited&&!this.died&&!My.Game.cheat.cheat_enemy)switch(this.state){case b.待机:break;case b.巡逻:if(this.movement(),this.navigate.isFinished){let e=Tool.StringUtil.stringToArrayNumber(this.data.config.cruise_cd,";");this.idleState(Tool.MathUtil.randomInRange(e[0],e[1]))}break;case b.追击:this.movement()}}renderEvent(){this.renderer.init((()=>{if(this.renderer.showed)this.body.active=!0,this.nameLabel.node.active=!0;else{let e=u.distance(this.node.worldPosition,My.Player.worldPosition)<1500;this.nameLabel.node.active=e,this.body.active=e,this.rangeCollider.enabled=e,this.colliders.forEach((t=>{t.enabled=e}))}}))}endedEvent(){My.Event.off(My.events.play_ended,this.endedEvent,this),this.unscheduleAllCallbacks(),this.navigate.clear(),this.weapon.ceased(),this.movement(!1),this.idleAnim=!0,this.chaseTarget=null,this.state=b.无,this.animation.play("Idle")}viewRange(e){this.chaseTarget=null,e?(this.rangeCollider.radius=this.data.config.view_range,this.rangeCollider.on(p.BEGIN_CONTACT,this.onBeginContact,this)):this.rangeCollider.off(p.BEGIN_CONTACT,this.onBeginContact,this),this.rangeCollider.apply()}idleState(e=0){this.unscheduleAllCallbacks(),this.navigate.clear(),this.weapon.ceased(),this.movement(!1),this.idleAnim=!0,this.chaseTarget=null,this.state=b.待机,this.animation.play("Idle"),this.scheduleOnce((()=>{this.patrolState()}),e)}patrolState(){this.unscheduleAllCallbacks();let e=Tool.StringUtil.stringToArrayNumber(this.data.config.cruise_speed,";");this.speed=Tool.MathUtil.randomInRange(e[0],e[1]);let t=My.Map.Instance.get_PatrolTarget(this.originPos,this.data.config.cruise_range);for(this.navigate.clear(),this.navigate.set_NavTarget(t);!this.navigate.isFound;)t=My.Map.Instance.get_PatrolTarget(this.originPos,this.data.config.cruise_range),this.navigate.set_NavTarget(t);this.state=b.巡逻}chaseState(){this.unscheduleAllCallbacks(),this.movement(!1),this.navigate.clear(),this.navigate.set_NavChase(this.chaseTarget,this.data.config.keep_range);let e=Tool.StringUtil.stringToArrayNumber(this.data.config.cruise_speed,";");this.speed=Tool.MathUtil.randomInRange(e[0],e[1]),this.attacked(),this.state=b.追击,this.schedule((()=>{u.distance(this.node.getPosition(),this.chaseTarget.getPosition())>this.data.config.view_range&&this.idleState()}),this.data.config.pursuit_check)}movement(e=!0){let t=new g;e&&(this.vector=this.navigate.get_NavVector(),t.x=this.vector.x*this.speed,t.y=this.vector.y*this.speed,this.aimed()),t.length()>.1?this.idleAnim&&(this.idleAnim=!1,this.animation.play("Move")):this.idleAnim||(this.idleAnim=!0,this.animation.play("Idle")),this.rigidbody.linearVelocity=t}aimed(){if(this.vector.x<-.05?this.aimDir=-1:this.vector.x>.05&&(this.aimDir=1),this.body.setScale(this.aimDir,1,1),this.chaseTarget){let e=this.node.getPosition();this.chaseTarget.position.x>e.x?this.aimDir=1:this.aimDir=-1,this.body.setScale(this.aimDir,1,1);let t=this.chaseTarget.getPosition().subtract(e).normalize(),i=Tool.MathUtil.vectorCovertAngle(t);-1==this.aimDir&&(i=180-i),this.weaponNode.angle=i}else this.weaponNode.angle=0}attacked(){let e=Tool.StringUtil.stringToArrayNumber(this.data.config.attack_time,";"),t=Tool.MathUtil.randomInRange(e[0],e[1]);this.weapon.shooting(t),this.scheduleOnce((()=>{this.scheduleOnce((()=>{this.attacked()}),this.data.config.attack_cd)}),t)}hurt(e,t){if(this.died)return;let i=e.damage;switch(e.type){case f.子弹:switch(t){case v.NPC_头部:if(this.toukui)switch(this.toukui.lessEnd(e.endurance),Tool.CommonUtil.ParsePierce(e.pierce,this.toukui)){case w.完全穿透:break;case w.部分穿透:i=Math.floor(.7*i);break;case w.未能穿透:i=Math.floor(.2*i)}this.hp-=i,My.Play.showDamage(!0,i,this.node.getPosition());break;case v.NPC:if(this.hujia)switch(this.hujia.lessEnd(e.endurance),Tool.CommonUtil.ParsePierce(e.pierce,this.hujia)){case w.完全穿透:break;case w.部分穿透:i=Math.floor(.7*i);break;case w.未能穿透:i=Math.floor(.2*i)}this.hp-=i,My.Play.showDamage(!1,i,this.node.getPosition())}this.chaseTarget||(this.chaseTarget=My.Player.model.node,this.chaseState());break;case f.手雷:case f.燃烧瓶:this.hp-=i,My.Play.showDamage(!1,i,this.node.getPosition())}if(this.hp<=0)switch(this.hp=0,this.death(),e.belong){case v.玩家:My.Play.addKills(1)}}death(){this.died=!0,this.weapon.ceased(),this.navigate.clear(),this.movement(!1),this.chaseTarget=null,this.state=b.死亡,this.unscheduleAllCallbacks(),this.audio.playSfx(My.sounds.player_death);let e=this.node.getPosition();My.Play.Instance.poolItem_Remove(this),m.once(y.EVENT_AFTER_PHYSICS,(()=>{this.deathEvent&&this.deathEvent(),this.recycle(),e.y-=20;let t=new N(C.盒子);this.data.equips.forEach((e=>{t.items.push(e)})),My.Map.mapData.createDropBox(e,t)}),this)}recycle(){this.inited=!1,this.viewRange(!1),this.navigate.clear(),this.renderer.remove(),this.unscheduleAllCallbacks(),My.Pool.putNode(this.node)}onBeginContact(e,t,i){if(this.inited)switch(t.tag){case v.玩家:this.chaseTarget||(this.chaseTarget=t.node,this.chaseState());break;case v.NPC:}}async initEquip(){this.toukui=this.data.equips[1],this.hujia=this.data.equips[2];for(let e=0;e<this.data.equips.length;e++)0==e?this.weapon.load(this.data):4==e||(null==this.data.equips[e]?this.equips[e-1].spriteFrame=null:this.equips[e-1].spriteFrame=await My.Item.Instance.getItemSkin(this.data.equips[e].image))}initLevelData(){let e=My.Enemy.Instance.get_LevelColor(this.data.config.npc_level);this.skull.node.active=this.data.config.npc_level>=4,this.nameLabel.string=My.Setting.getRandomName(),this.nameLabel.color=e,this.skull.color=e,this.hp=200,this.died=!1,this.health.init(this.hurt,this),this.skin.spriteFrame=this.data.skin,this.idleState(2),this.scheduleOnce((()=>{this.viewRange(!0)}),.1)}}).prototype,"nameLabel",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=t(W.prototype,"skull",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=t(W.prototype,"health",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=t(W.prototype,"navigate",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=t(W.prototype,"rigidbody",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=t(W.prototype,"animation",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=t(W.prototype,"audio",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=t(W.prototype,"body",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=t(W.prototype,"skin",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=t(W.prototype,"equips",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ae=t(W.prototype,"weapon",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=t(W.prototype,"weaponNode",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=t(W.prototype,"rangeCollider",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=t(W.prototype,"renderer",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),he=t(W.prototype,"colliders",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),H=W))||H));a._RF.pop()}}}));

System.register("chunks:///_virtual/ObjItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameCamera.ts"],(function(e){"use strict";var t,i,r,n,s,a,o,l,d,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.CCInteger,s=e.Sprite,a=e.Collider2D,o=e._decorator,l=e.Component,d=e.Vec3},function(e){c=e.CameraState}],execute:function(){var u,p,h,y,m,b,f,g,v;r._RF.push({},"8097d30aIFNnIe4BX7MsKiB","ObjItem",void 0);const{ccclass:M,property:_}=o;e("ObjItem",(u=M("ObjItem"),p=_({type:n,displayName:"距离"}),h=_({type:s,displayName:"图像"}),y=_({type:[a],displayName:"检测器"}),u((f=t((b=class extends l{constructor(...e){super(...e),i(this,"dis",f,this),i(this,"image",g,this),i(this,"colliders",v,this),this.showed=!1}onEnable(){My.Event.on(My.events.game_renderer,this.renderer,this),My.Event.on(My.events.update_camera_state,this.updateRenderer,this)}onDisable(){My.Event.off(My.events.game_renderer,this.renderer,this),My.Event.off(My.events.update_camera_state,this.updateRenderer,this)}updateRenderer(e){this.showed=e==c.全景视野,this.renderer()}renderer(){if(this.showed)this.image.enabled=!0;else{let e=d.distance(this.node.worldPosition,My.Player.worldPosition)<this.dis;this.image.enabled=e,this.colliders.forEach((t=>{t.enabled=e}))}}}).prototype,"dis",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1500}}),g=t(b.prototype,"image",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(b.prototype,"colliders",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=b))||m));r._RF.pop()}}}));

System.register("chunks:///_virtual/oppo.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var n,t,o,i,s,d;return{setters:[function(e){n=e.director,t=e.macro,o=e.find,i=e.cclegacy},function(e){s=e.AdIDS,d=e.default}],execute:function(){i._RF.push({},"10d98AAUSZH/Ij3Du7P6j1N","oppo",void 0);class a{static init(){var e=this;qg.getSystemInfo({success:function(n){console.log(`handling success， screenWidth = ${n.screenWidth}， screenHeight = ${n.screenHeight}`),e.screenWidth=n.screenWidth,e.screenHeight=n.screenHeight}}),this.bannerInit(),this.rewardInit()}static timeAd(){1==window.sdk.nPlane?this.openCustom(0):window.sdk.nPlane}static changeState(e){console.log("changeState:"+e),1==window.sdk.adSwitch&&(null==this.scheduler&&0!=window.sdk.nPlane&&(this.scheduler=n.getScheduler(),this.scheduler.enableForTarget(this),this.scheduler.schedule(this.timeAd,this,window.sdk.nativeCd,t.REPEAT_FOREVER,window.sdk.nativeCd,!1)),this.openBanner(),1!=e&&this.openCustom(0))}static openCustom(e){var n=this,o=s[d.OPPO].nativeId;1==e&&(o=s[d.OPPO].nativeId2);const i=qg.createCustomAd({adUnitId:o,style:{top:n.screenHeight/3}});i.onShow((()=>{console.log("customAd广告显示")})),i.onHide((()=>{console.log("customAd广告隐藏"),i.destroy()})),i.show().then((()=>{console.log("show success"),1==window.sdk.adSwitch&&1==window.sdk.nPlane&&(n.scheduler.unschedule(n.timeAd,n),n.scheduler.schedule(n.timeAd,n,window.sdk.nativeCd,t.REPEAT_FOREVER,window.sdk.nativeCd,!1))})).catch((t=>{console.log("show fail with:"+t.errCode+","+t.errMsg),0==e&&n.openCustom(1)}))}static nativeInit(){var e=this;this.nativeAd1=qg.createNativeAd({adUnitId:s[d.OPPO].nativeId}),this.nativeAd1.onLoad((function(n){n&&n.adList?(console.log("原生1 加载完成",JSON.stringify(n.adList)),o("NativeMgr/NativeAd").getComponent("NativeAd").show(n.adList,e.nativeAd1)):(console.log("原生1 加载失败"),e.nativeAd2.load())})),this.nativeAd1.onError((function(n){console.log("原生1 失败",JSON.stringify(n)),e.nativeAd2.load()})),this.nativeAd2=qg.createNativeAd({adUnitId:s[d.OPPO].nativeId2}),this.nativeAd2.onLoad((function(n){n&&n.adList?(console.log("原生2 加载完成",JSON.stringify(n.adList)),o("NativeMgr/NativeAd").getComponent("NativeAd").show(n.adList,e.nativeAd2)):console.log("原生2 加载失败")})),this.nativeAd2.onError((function(e){console.log("原生2 失败",JSON.stringify(e))}))}static openNative(){this.nativeAd1.load()}static bannerInit(){if(qg.createBannerAd){var e=this;console.log("bannerInit"),0==this.bannerPos?this.bannerAd=qg.createBannerAd({adUnitId:s[d.OPPO].bannerId,style:{top:0,width:900,height:300}}):this.bannerAd=qg.createBannerAd({adUnitId:s[d.OPPO].bannerId,style:{}}),this.bannerAd.onError((function(e){console.log("oppo 横幅加载失败",JSON.stringify(e))})),this.bannerAd.onResize((function(n){console.log("oppo 横幅尺寸：",n.width+","+n.height),e.bannerAd.style.width=n.width,e.bannerAd.style.height=n.height})),this.bannerAd.onHide((function(){console.log("oppo 横幅关闭")})),this.bannerAd.onLoad((function(){console.log("oppo 横幅加载成功")}))}}static openBanner(){this.bannerAd&&this.bannerAd.show()}static hideBanner(){this.bannerAd&&this.bannerAd.hide()}static rewardInit(){if(qg.createRewardedVideoAd){var e=this;this.rewardAd=qg.createRewardedVideoAd({adUnitId:s[d.OPPO].rewardId}),this.rewardAd.onLoad((function(){console.log("oppo 激励加载完成"),e.rewardAd.show()})),this.rewardAd.onError((function(n){console.log("oppo 激励加载失败"+JSON.stringify(n)),e.rewardCallback&&e.rewardCallback("fail"),e.showTip("广告加载失败,请稍后重试"),e.onSound()})),this.rewardAd.onClose((function(n){n&&n.isEnded?(console.log("oppo 激励播放结束"),e.rewardCallback&&(e.rewardCallback("success"),e.showTip("成功下发奖励"),e.onSound())):(console.log("oppo 激励播放中途退出"),e.rewardCallback&&e.rewardCallback("cancel"),e.showTip("观看完整视频才能下发奖励噢~"),e.onSound())}))}}static openVideo(e){this.offSound(),this.rewardCallback=e,this.rewardAd?this.rewardAd.load():e&&(e("fail"),this.showTip("广告加载失败,请稍后重试"),this.onSound())}static showTip(e){console.log("showTip:"+e),qg.showToast({title:e})}static showDialog(e,n,t){qg.showModal({title:e,content:n,success(e){e.confirm?(console.log("用户点击确定"),t&&t()):e.cancel&&console.log("用户点击取消")}})}static installShortcut(){qg.hasShortcutInstalled({success:function(e){0==e?qg.installShortcut({success:function(){},fail:function(e){},complete:function(){}}):window.sdk.showTip("已创建桌面图标")},fail:function(e){},complete:function(){}})}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}e("default",a),a.screenWidth=0,a.screenHeight=0,a.bannerAd=void 0,a.bannerPos=0,a.rewardAd=void 0,a.rewardCallback=void 0,a.nativeAd1=void 0,a.nativeAd2=void 0,a.scheduler=null,i._RF.pop()}}}));

System.register("chunks:///_virtual/Option_Ammo.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,n,o,l,c,r;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Sprite,l=t.Label,c=t._decorator,r=t.Component}],execute:function(){var s,a,u,p,h,m,y,d,f;n._RF.push({},"e4ee9FClqpMeYH91eWuNMg/","Option_Ammo",void 0);const{ccclass:b,property:_}=c;t("Option_Ammo",(s=b("Option_Ammo"),a=_({type:o,displayName:"品质"}),u=_({type:o,displayName:"图标"}),p=_({type:l,displayName:"数量"}),s((y=i((m=class extends r{constructor(...t){super(...t),e(this,"quality",y,this),e(this,"icon",d,this),e(this,"countLabel",f,this),this.control=null,this.info=null}init(){this.node.active=!1,this.node.on("click",this.onClick_Selected,this)}async show(t,i){this.control=t,this.info=i,null!=i?(this.quality.color=My.Item.Instance.getQualityColor(i.quality),this.icon.spriteFrame=await My.Item.Instance.getItemIcon(i.image),this.node.active=!0):this.node.active=!1}hide(){this.info=null,this.node.active=!1}update_Data(){null!=this.info&&(this.countLabel.string="剩余："+this.info.count)}onClick_Selected(){this.control.ammo_Select(this.info)}}).prototype,"quality",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=i(m.prototype,"icon",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=i(m.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=m))||h));n._RF.pop()}}}));

System.register("chunks:///_virtual/Option_Medical.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,n,o,l,c,a;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Sprite,l=t.Label,c=t._decorator,a=t.Component}],execute:function(){var r,s,u,p,h,y,d,b,f;n._RF.push({},"731e6/YFqhA8qbPH+NbOKv9","Option_Medical",void 0);const{ccclass:m,property:_}=c;t("Option_Medical",(r=m("Option_Medical"),s=_({type:o,displayName:"品质"}),u=_({type:o,displayName:"图标"}),p=_({type:l,displayName:"数量"}),r((d=i((y=class extends a{constructor(...t){super(...t),e(this,"quality",d,this),e(this,"icon",b,this),e(this,"countLabel",f,this),this.control=null,this.info=null}init(){this.node.active=!1,this.node.on("click",this.onClick_Selected,this)}async show(t,i){this.control=t,this.info=i,null!=i?(this.quality.color=My.Item.Instance.getQualityColor(i.quality),this.icon.spriteFrame=await My.Item.Instance.getItemIcon(i.image),this.countLabel.string="剩余："+i.count,this.node.active=!0):this.node.active=!1}hide(){this.info=null,this.node.active=!1}onClick_Selected(){this.control.medical_Select(this.info)}}).prototype,"quality",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(y.prototype,"icon",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=i(y.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y))||h));n._RF.pop()}}}));

System.register("chunks:///_virtual/Option_Thrown.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,n,o,l,r,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Sprite,l=t.Label,r=t._decorator,c=t.Component}],execute:function(){var s,a,u,h,p,y,d,f,b;n._RF.push({},"0cdc5VfKZlP1p0Lt10ofzbZ","Option_Thrown",void 0);const{ccclass:m,property:_}=r;t("Option_Thrown",(s=m("Option_Thrown"),a=_({type:o,displayName:"品质"}),u=_({type:o,displayName:"图标"}),h=_({type:l,displayName:"数量"}),s((d=i((y=class extends c{constructor(...t){super(...t),e(this,"quality",d,this),e(this,"icon",f,this),e(this,"countLabel",b,this),this.control=null,this.info=null}init(){this.node.active=!1,this.node.on("click",this.onClick_Selected,this)}async show(t,i){this.control=t,this.info=i,null!=i?(this.quality.color=My.Item.Instance.getQualityColor(i.quality),this.icon.spriteFrame=await My.Item.Instance.getItemIcon(i.image),this.countLabel.string="剩余："+i.count,this.node.active=!0):this.node.active=!1}hide(){this.info=null,this.node.active=!1}onClick_Selected(){this.control.thrown_Select(this.info)}}).prototype,"quality",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=i(y.prototype,"icon",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(y.prototype,"countLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=y))||p));n._RF.pop()}}}));

System.register("chunks:///_virtual/PackItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,n,a,s,l,r;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Sprite,s=t.Label,l=t._decorator,r=t.Component}],execute:function(){var o,u,c,h,p,m,y,f,b,g,d;n._RF.push({},"44cefpH5LNMOLiqA44WS2DW","PackItem",void 0);const{ccclass:L,property:v}=l;t("PackItem",(o=L("PackItem"),u=v({type:a,displayName:"品质"}),c=v({type:a,displayName:"图像"}),h=v({type:s,displayName:"名称"}),p=v({type:s,displayName:"数量"}),o((f=i((y=class extends r{constructor(...t){super(...t),e(this,"quality",f,this),e(this,"image",b,this),e(this,"nameLabel",g,this),e(this,"countLabel",d,this),this.inited=!1,this.info=null}init(){this.inited=!1,this.node.active=!1,this.nameLabel.string="",this.countLabel.string="",this.image.spriteFrame=null,this.quality.spriteFrame=null}async show(t){this.inited=!0,this.info=t,this.info?(this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.info.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.info.image),this.countLabel.string=this.info.count>1?this.info.count.toString():"",this.nameLabel.string=this.info.name,this.node.active=!0):(this.quality.spriteFrame=null,this.image.spriteFrame=null,this.nameLabel.string="",this.countLabel.string="",this.node.active=!0)}hide(){this.info=null,this.inited=!1,this.node.active=!1}onClick_Selected(){null!=this.info&&(My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.pop_item,this.info))}}).prototype,"quality",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(y.prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=i(y.prototype,"nameLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=i(y.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=y))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/PackMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts","./MenuBase.ts"],(function(e){"use strict";var t,n,i,c,r,o,s,u,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,c=e.Enum,r=e.Sprite,o=e._decorator,s=e.Color},function(e){u=e.PackMenuType},function(e){a=e.MenuBase}],execute:function(){var l,p,y,m,M,f,h;i._RF.push({},"55813+aSZRD24yNYJk18Obh","PackMenu",void 0);const{ccclass:_,property:k}=o;e("PackMenu",(l=_("PackMenu"),p=k({type:c(u),displayName:"类型"}),y=k({type:r,displayName:"图像"}),l((f=t((M=class extends a{constructor(...e){super(...e),n(this,"type",f,this),n(this,"image",h,this),this.colors=[(new s).fromHEX("#9C9C9C"),(new s).fromHEX("#D25A30")]}init(){My.Event.on(My.events.elect_pack_menu,this.elect_Menu,this)}elect_Menu(e){this.image.color=this.colors[e==this.type?1:0]}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_pack_menu,this.type)}}).prototype,"type",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.装备}}),h=t(M.prototype,"image",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=M))||m));i._RF.pop()}}}));

System.register("chunks:///_virtual/PackMgr.ts",["cc","./ItemDefine.ts","./ItemInfo.ts","./UIDefine.ts","./GameDefine.ts"],(function(e){"use strict";var t,a,s,i,n,o,c,h,u,l,p,m;return{setters:[function(e){t=e.cclegacy,a=e._decorator,s=e.Component,i=e.math},function(e){n=e.ItemType,o=e.FangjuType,c=e.WuqiType},function(e){h=e.ItemInfo,u=e.ItemStoredType},function(e){l=e.EquipmentType},function(e){p=e.PlayerModel,m=e.GameScene}],execute:function(){var y,M;t._RF.push({},"e384ed8i1VPA4Yo2nuu6ygg","PackMgr",void 0);const{ccclass:d,property:r}=a;e("PackMgr",d("PackMgr")(((M=class e extends s{constructor(...e){super(...e),this.equipDatas=[],this.equipItems=[],this.packMap=new Map,this.packDatas=[],this.packItems=[],this.lockMap=new Map,this.lockDatas=[],this.lockItems=[],this.wuqiIndex=0,this.wuqiSelect=0,this.packInfo=new k}static get wuqiSelected(){return this.Instance.wuqiSelect}static get equipToukui(){return this.Instance.equipItems[4]}static get equipHujia(){return this.Instance.equipItems[5]}static get packInfo(){return this.Instance.packInfo}static WuqiSelect(e){switch(e){case l.主武器1:case l.主武器2:case l.近战武器:case l.副武器:this.Instance.wuqiIndex=e,this.Instance.wuqiSelect=e}}onLoad(){e.Instance=this,My.Event.on(My.events.game_load,this.loadData,this)}loadData(){My.Event.off(My.events.game_load,this.loadData,this),this.packInfo.lockTotal=My.Setting.getData("lock_load"),this.packItems=[],this.packMap=new Map,this.packDatas=My.Data.getPackDatas(),this.packDatas.forEach((e=>{let t=new h;if(t.config=My.Item.Instance.getItemConfig(e.id),t.stored=u.背包,t.data=e,this.packMap.has(e.id)){this.packMap.get(e.id).push(t)}else{let a=[];a.push(t),this.packMap.set(e.id,a)}this.packItems.push(t)})),this.lockItems=[],this.lockMap=new Map,this.lockDatas=My.Data.getLockDatas(),this.lockDatas.forEach((e=>{let t=new h;if(t.config=My.Item.Instance.getItemConfig(e.id),t.stored=u.加密箱,t.data=e,this.lockMap.has(e.id)){this.lockMap.get(e.id).push(t)}else{let a=[];a.push(t),this.lockMap.set(e.id,a)}this.lockItems.push(t)})),this.equipItems=[],this.equipDatas=My.Data.getEquipDatas(),this.equipDatas.forEach((e=>{if(null!=e){let t=new h;t.config=My.Item.Instance.getItemConfig(e.id),t.stored=u.装备,t.data=e,this.equipItems.push(t)}else this.equipItems.push(null)})),this.update_Weight(!0),this.update_EquipmentValue(),My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_lock),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment)}canPlay(){let e=!0;for(let t=0;t<this.packItems.length;t++)if(this.packItems[t].type==n.杂物&&this.packItems[t].id<9e4){e=!1;break}return e}pack_EnoughByCount(e){let t=0;return e.forEach((e=>{e[0].stack>1?this.packItem_Has(e[0].id)||(t+=1):t+=e[1]})),this.packItems.length+t<=36}pack_Enough(e){let t=0;if(e.forEach((e=>{t+=e[0].weight*e[1]})),this.packInfo.weight_Currency+t<=this.packInfo.weight_Total){let t=this.packItems.length;return e.forEach((e=>{e[0].stack>1&&this.packMap.has(e[0].id)?this.packMap.get(e[0].id)[0].count+e[1]>999&&(t+=1):t+=1})),t<=36}return!1}packItem_Has(e){return this.packMap.has(e)?this.packMap.get(e)[0]:null}packItem_Push(e,t=!0){let a=My.Item.Instance.getItemConfig(e.id);if(this.packMap.has(e.id)){let t=this.packMap.get(e.id);if(a.stack>1){let s=t[t.length-1].addCount(e.count);if(s>0){let i=Tool.CommonUtil.StoredInfo(a,e,u.背包,s);t.push(i),this.packItems.push(i),this.packDatas.push(i.data)}}else{let s=Tool.CommonUtil.StoredInfo(a,e,u.背包,1);t.push(s),this.packItems.push(s),this.packDatas.push(s.data)}}else{let t=[],s=Tool.CommonUtil.StoredInfo(a,e,u.背包);t.push(s),this.packItems.push(s),this.packDatas.push(s.data),this.packMap.set(s.id,t)}this.update_Weight(),this.update_PackValue(),My.Event.emit(My.events.update_pack),t&&My.Data.savePackData()}packItem_RemoveAll(){for(;this.packItems.length>0;){let e=this.packItems[0],t=e.count;e.lessCount(t),this.removeItem(e,!1)}Tool.ArrayUtil.RemoveAll(this.packDatas),this.packMap=new Map,this.update_Weight(),this.update_PackValue(),My.Data.savePackData(),My.Event.emit(My.events.update_pack)}packItem_Sell(e,t,a){e.lessCount(t),this.removeItem(e),this.update_Weight(),My.Data.money+=a,My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_money),My.Msg.showMessage(My.msgcode.出售成功+a+My.Item.Instance.getCurrencyName(1))}packItem_Out(e){this.removeItem(e,!1),this.update_Weight(),this.update_PackValue(),this.update_PlayerValue(),e.type==n.子弹&&(My.Event.emit(My.events.update_ammo_all),My.Event.emit(My.events.update_ammo_elect)),My.Event.emit(My.events.update_pack)}packItem_Used(e,t){switch(e.lessCount(t),this.removeItem(e,!1),this.update_Weight(),this.update_PackValue(),this.update_PlayerValue(),e.type){case n.药品:My.Event.emit(My.events.update_medical_all);break;case n.投掷物:My.Event.emit(My.events.update_thrown_all)}My.Event.emit(My.events.update_pack)}packItem_Equiped(e){switch(My.Player.modelType){case p.修狗:if(this.canEquiped(e)){let t=Tool.CommonUtil.CopyInfo(e);e.lessCount(e.count),this.removeItem(e),this.equipItem_Push(t,m.对局),this.update_PackValue(),My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment),My.Msg.showMessage(My.msgcode.装备成功)}else My.Msg.showMessage(My.msgcode.装配不匹配);break;case p.机甲:My.Msg.showMessage(My.msgcode.角色不匹配)}}packItem_to_Whs(e,t){My.Whs.Instance.enoughByItem(e,t)?(e.lessCount(t),this.removeItem(e),this.update_Weight(),My.Whs.Instance.whsItem_Push(Tool.CommonUtil.StoredData(e.data,t)),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_pack),My.Msg.showMessage(My.msgcode.存入仓库)):My.Msg.showMessage(My.msgcode.仓库空间不足)}packItem_to_Lock(e,t){if(this.lock_EnoughByCount(1)){switch(e.lessCount(t),this.removeItem(e,!1),this.update_PackValue(),this.lockItem_Push(Tool.CommonUtil.StoredData(e.data,t),!1),e.type){case n.药品:My.Event.emit(My.events.update_medical_all);break;case n.子弹:My.Event.emit(My.events.update_ammo_all),My.Event.emit(My.events.update_ammo_elect),My.Event.emit(My.events.update_hud_ammo);break;case n.投掷物:My.Event.emit(My.events.update_thrown_all)}My.Event.emit(My.events.update_pack)}else My.Msg.showMessage(My.msgcode.超重)}static get_PackItem_Count(e){let t=0,a=this.Instance.packMap.get(e);return a&&a.forEach((e=>{t+=e.count})),t}lock_EnoughByCount(e){return this.lockItems.length+e<=8}lockItem_Push(e,t=!0){let a=My.Item.Instance.getItemConfig(e.id);if(this.lockMap.has(e.id)){let t=this.lockMap.get(e.id);if(a.stack>1){if(t[t.length-1].addCount(e.count)>0){let s=Tool.CommonUtil.StoredInfo(a,e,u.加密箱);t.push(s),this.lockItems.push(s),this.lockDatas.push(s.data)}}else{let s=Tool.CommonUtil.StoredInfo(a,e,u.加密箱);t.push(s),this.lockItems.push(s),this.lockDatas.push(s.data)}}else{let t=[],s=Tool.CommonUtil.StoredInfo(a,e,u.加密箱);t.push(s),this.lockItems.push(s),this.lockDatas.push(s.data),this.lockMap.set(s.id,t)}this.update_Weight(),this.update_LockValue(),My.Event.emit(My.events.update_lock),t&&My.Data.savePackData()}lockItem_Sell(e,t,a){e.lessCount(t),this.removeItem(e),this.update_Weight(),My.Data.money+=a,My.Event.emit(My.events.update_lock),My.Event.emit(My.events.update_money),My.Msg.showMessage(My.msgcode.出售成功+a+My.Item.Instance.getCurrencyName(1))}lockItem_Equiped(e){switch(My.Player.modelType){case p.修狗:if(this.canEquiped(e)){let t=Tool.CommonUtil.CopyInfo(e);e.lessCount(e.count),this.removeItem(e),this.equipItem_Push(t,My.Game.scene),this.update_PackValue(),My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment),My.Msg.showMessage(My.msgcode.装备成功)}else My.Msg.showMessage(My.msgcode.装配不匹配);break;case p.机甲:My.Msg.showMessage(My.msgcode.角色不匹配)}}lockItem_to_Pack(e,t){if(this.pack_EnoughByCount([[e.config,t]])){switch(e.lessCount(t),this.removeItem(e,!1),this.update_LockValue(),this.packItem_Push(Tool.CommonUtil.StoredData(e.data,t),!1),e.type){case n.药品:My.Event.emit(My.events.update_medical_all);break;case n.子弹:My.Event.emit(My.events.update_ammo_all),My.Event.emit(My.events.update_ammo_elect),My.Event.emit(My.events.update_hud_ammo);break;case n.投掷物:My.Event.emit(My.events.update_thrown_all)}My.Event.emit(My.events.update_lock)}else My.Msg.showMessage(My.msgcode.背包空间不足)}lockItem_to_Whs(e,t){My.Whs.Instance.enoughByItem(e,t)?(e.lessCount(t),this.removeItem(e),this.update_Weight(),My.Whs.Instance.whsItem_Push(Tool.CommonUtil.StoredData(e.data,t)),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_lock),My.Msg.showMessage(My.msgcode.存入仓库)):My.Msg.showMessage(My.msgcode.仓库空间不足)}canEquiped(e){switch(e.type){case n.武器:return!0;case n.防具:return e.config.kind!=o.背包||e.fuzhong+200>=this.packInfo.pack_Used;case n.配件:let t=!1,a=Tool.StringUtil.stringToArrayNumber(e.match,";");return this.equipItems.forEach((s=>{if(null!=s&&s.type==n.武器&&Tool.ArrayUtil.HasItem(a,s.config.kind)){let a=Tool.StringUtil.stringToArrayNumber(s.acc,";");if(Tool.ArrayUtil.HasItem(a,e.kind))return t=!0,t}})),t}}canUnload(e){if(!My.Whs.Instance.enoughByItem(e,e.count))return!1;switch(e.type){case n.武器:return!0;case n.防具:if(e.config.kind==o.背包){let e=My.Setting.getData("pack_load")+My.Setting.getData("lock_load");return this.packInfo.weight_Currency<=e}return!0;case n.配件:return!0}}equipItem_Has(e){let t=!1;return this.equipItems.forEach((a=>{null!=a&&a.id==e&&(t=!0)})),t}equipItem_Push(e,t,a){switch(e.type){case n.武器:this.equipedWuqi(e,t,a);break;case n.防具:this.equipedFangju(e,t);break;case n.配件:this.equipdePeijian(e,t)}switch(t){case m.主页:My.Data.savePackData(),My.Data.saveWarehouseData(),this.update_Weight(),this.update_EquipmentValue(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment);break;case m.对局:this.update_EquipmentValue()}}equipItem_Sell(e,t){switch(e.type){case n.武器:this.unloadWuqi(e,m.无);break;case n.防具:this.unloadFangju(e,m.无)}this.update_Weight(e.type==n.防具&&e.kind==o.背包),this.update_EquipmentValue(),My.Data.money+=t,My.Data.savePackData(),My.Event.emit(My.events.update_money),My.Event.emit(My.events.update_equipment),My.Msg.showMessage(My.msgcode.出售成功+t+My.Item.Instance.getCurrencyName(1))}equipItem_Unload(e,t,a=!0){let s=!1;switch(t){case m.主页:s=this.canUnload(e);break;case m.对局:s=this.pack_EnoughByCount([[e.config,e.count]])}if(s){switch(e.type){case n.武器:this.unloadWuqi(e,t);break;case n.防具:this.unloadFangju(e,t)}switch(this.update_Weight(),this.update_EquipmentValue(),t){case m.主页:case m.对局:a&&My.Data.savePackData(),My.Msg.showMessage(My.msgcode.卸下成功);break;case m.无:}}else My.Msg.showMessage(My.msgcode.卸下失败)}equipItem_Discard(e,t){switch(My.Play.Instance.item_Discard(e,t,My.Player.position),e.type){case n.武器:this.unloadWuqi(e,m.无);break;case n.防具:this.unloadFangju(e,m.无)}this.update_Weight(),this.update_EquipmentValue()}equipedWuqi(e,t,a){let s=null,i=this.wuqiIndex;switch(i=null!=a?a:e.config.kind==c.近战?2:e.config.kind==c.手枪?3:null==this.equipItems[0]?0:null==this.equipItems[1]?1:this.wuqiIndex>1?0:this.wuqiIndex,s=this.equipItems[i],t){case m.主页:s&&My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CopyData(s.data));break;case m.对局:s&&My.Pack.Instance.packItem_Push(Tool.CommonUtil.CopyData(s.data))}e.stored=u.装备,this.equipItems[i]=e,this.equipDatas[i]=e.data}unloadWuqi(e,t){let a=this.wuqiIndex;switch(e.config.kind==c.近战?a=2:e.config.kind==c.手枪?a=3:this.equipItems[0]==e?a=0:this.equipItems[1]==e&&(a=1),this.equipItems[a]=null,this.equipDatas[a]=null,t){case m.主页:My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CopyData(e.data)),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment);break;case m.对局:My.Pack.Instance.packItem_Push(Tool.CommonUtil.CopyData(e.data),!1),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment);break;case m.无:}}equipedFangju(e,t){let a=null,s=4;switch(e.config.kind){case o.头盔:s=4;break;case o.护具:s=5;break;case o.背包:s=6}switch(a=this.equipItems[s],t){case m.主页:a&&My.Whs.Instance.whsItem_Push(a.data);break;case m.对局:a&&My.Pack.Instance.packItem_Push(Tool.CommonUtil.CopyData(a.data))}e.stored=u.装备,this.equipItems[s]=e,this.equipDatas[s]=e.data,this.update_Weight(!0)}unloadFangju(e,t){let a=4;switch(e.config.kind){case o.头盔:a=4;break;case o.护具:a=5;break;case o.背包:a=6}switch(this.equipItems[a]=null,this.equipDatas[a]=null,this.update_weightTotal(),t){case m.主页:My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CopyData(e.data)),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment);break;case m.对局:My.Pack.Instance.packItem_Push(Tool.CommonUtil.CopyData(e.data),!1),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment);break;case m.无:}}equipdePeijian(e,t){let a=Tool.StringUtil.stringToArrayNumber(e.match,";"),s=[],i=[];for(let e=0;e<this.equipItems.length;e++){let t=this.equipItems[e];null!=t&&Tool.ArrayUtil.HasItem(a,t.config.kind)&&(s.push(t),i.push(e))}let n=-1;if(Tool.ArrayUtil.HasItem(i,this.wuqiIndex)){switch(n=this.equipItems[this.wuqiIndex].getAcc(e.kind),t){case m.主页:-1!=n&&My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CreateData(n));break;case m.对局:n>0&&My.Pack.Instance.packItem_Push(Tool.CommonUtil.CreateData(n))}this.equipItems[this.wuqiIndex].setAcc(e.kind,e.id)}else{let a=!1;for(let t=0;t<s.length;t++)if(-1==s[t].getAcc(e.kind)){s[t].setAcc(e.kind,e.id),a=!0;break}if(!a){switch(n=s[0].getAcc(e.kind),t){case m.主页:My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CreateData(n));break;case m.对局:My.Pack.Instance.packItem_Push(Tool.CommonUtil.CreateData(n))}s[0].setAcc(e.kind,e.id)}}}unloadPeijian(e,t,a){let s=e.getAcc(t);switch(a){case m.主页:My.Whs.Instance.enoughByCount(1)?(My.Whs.Instance.whsItem_Push(Tool.CommonUtil.CreateData(s)),e.setAcc(t,-1),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Data.savePackData(),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment)):My.Msg.showMessage(My.msgcode.仓库空间不足);break;case m.对局:this.pack_EnoughByCount([[e.config,e.count]])?(this.packItem_Push(Tool.CommonUtil.CreateData(s),!1),e.setAcc(t,-1),this.update_Weight(),this.update_PackValue(),this.update_EquipmentValue(),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment)):My.Msg.showMessage(My.msgcode.背包空间不足)}}static getEquip(e){return null!=e?this.Instance.equipItems[e]:this.Instance.equipItems[this.Instance.wuqiSelect]}removeAll(){for(;this.packItems.length>0;){let e=this.packItems[0],t=e.count;e.lessCount(t),this.removeItem(e,!1)}Tool.ArrayUtil.RemoveAll(this.packDatas),this.packMap=new Map,this.equipItems.forEach((e=>{if(null!=e)switch(e.type){case n.武器:this.unloadWuqi(e,m.无);break;case n.防具:this.unloadFangju(e,m.无)}})),this.update_Weight(!0),this.update_PackValue(),this.update_EquipmentValue(),My.Data.savePackData(),My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_equipment)}storedAll(){if(My.Event.emit(My.events.elect_whs_checkbox,!1),this.lockItems.length<=0&&this.packItems.length<=0)My.Msg.showMessage(My.msgcode.无物品);else if(My.Whs.Instance.enoughByCount(1)){let e=!1;for(;this.lockItems.length>0&&!e;){let t=this.lockItems[0],a=t.count;My.Whs.Instance.enoughByItem(t,a)?(t.lessCount(a),this.removeItem(t,!1),My.Whs.Instance.whsItem_Push(Tool.CommonUtil.StoredData(t.data,a))):e=!0}for(;this.packItems.length>0&&!e;){let t=this.packItems[0],a=t.count;My.Whs.Instance.enoughByItem(t,a)?(t.lessCount(a),this.removeItem(t,!1),My.Whs.Instance.whsItem_Push(Tool.CommonUtil.StoredData(t.data,a))):e=!0}this.update_Weight(),My.Data.savePackData(),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_lock),My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Msg.showMessage(My.msgcode.存入仓库)}else My.Msg.showMessage(My.msgcode.仓库空间不足)}sellAll(){if(this.lockItems.length<=0&&this.packItems.length<=0)return void My.Msg.showMessage(My.msgcode.无杂物);let e=0,t=[];this.packItems.forEach((e=>{t.push(e)})),t.forEach((t=>{t.type==n.杂物&&(e+=t.sell*t.count,t.lessCount(t.count),this.removeItem(t))}));let a=[];this.lockItems.forEach((e=>{a.push(e)})),a.forEach((t=>{t.type==n.杂物&&(e+=t.sell*t.count,t.lessCount(t.count),this.removeItem(t))})),e>0?(this.update_Weight(),My.Data.savePackData(),My.Data.money+=e,My.Event.emit(My.events.update_lock),My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_money),My.Msg.showMessage(My.msgcode.出售成功+e+My.Item.Instance.getCurrencyName(1))):My.Msg.showMessage(My.msgcode.无杂物)}sellItem(e,t,a){e.lessCount(t),this.removeItem(e),this.update_Weight(),My.Data.money+=a,My.Event.emit(My.events.update_pack),My.Event.emit(My.events.update_money),My.Msg.showMessage(My.msgcode.出售成功+a+My.Item.Instance.getCurrencyName(1))}discardItem(e,t){switch(My.Play.Instance.item_Discard(e,t,My.Player.position),e.lessCount(t),this.removeItem(e),e.stored){case u.背包:this.update_PackValue(),My.Event.emit(My.events.update_pack);break;case u.加密箱:this.update_LockValue(),My.Event.emit(My.events.update_lock)}switch(e.type){case n.药品:My.Event.emit(My.events.update_medical_all);break;case n.子弹:My.Event.emit(My.events.update_ammo_all),My.Event.emit(My.events.update_ammo_elect),My.Event.emit(My.events.update_hud_ammo);break;case n.投掷物:My.Event.emit(My.events.update_thrown_all)}this.update_Weight(),this.update_PlayerValue()}pickupItem(e){switch(this.packItem_Push(Tool.CommonUtil.StoredData(e.data,e.count)),this.update_PackValue(),e.type){case n.药品:My.Event.emit(My.events.update_medical_all);break;case n.子弹:My.Event.emit(My.events.update_ammo_all),My.Event.emit(My.events.update_ammo_elect),My.Event.emit(My.events.update_hud_ammo);break;case n.投掷物:My.Event.emit(My.events.update_thrown_all)}this.update_PlayerValue()}removeItem(e,t=!0){switch(e.stored){case u.背包:if(this.packMap.has(e.id)){let t=this.packMap.get(e.id);t.forEach((async a=>{a==e&&a.count<=0&&(Tool.ArrayUtil.RemoveItem(this.packDatas,a.data),Tool.ArrayUtil.RemoveItem(t,a),Tool.ArrayUtil.RemoveItem(this.packItems,e))})),t.length<=0&&this.packMap.delete(e.id)}else My.Game.gameErr("背包>移除物品>"+e.id+">不存在");break;case u.加密箱:if(this.lockMap.has(e.id)){let t=this.lockMap.get(e.id);t.forEach((async a=>{a==e&&a.count<=0&&(Tool.ArrayUtil.RemoveItem(this.lockDatas,a.data),Tool.ArrayUtil.RemoveItem(t,a),Tool.ArrayUtil.RemoveItem(this.lockItems,e))})),t.length<=0&&this.lockMap.delete(e.id)}else My.Game.gameErr("加密箱>移除物品>"+e.id+">不存在")}t&&My.Data.savePackData()}getAmmoAll(){let e=[];return this.packItems.forEach((t=>{t.type==n.子弹&&e.push(t)})),e}getAmmoType(){return null!=this.equipItems[this.wuqiSelect]?this.equipItems[this.wuqiSelect].ammo:null}getAmmoByType(e){let t=[];return this.packItems.forEach((a=>{a.type==n.子弹&&a.kind==e&&t.push(a)})),t}getMedicalAll(){let e=[];return this.packItems.forEach((t=>{t.type==n.药品&&e.push(t)})),e}getThrownAll(){let e=[];return this.packItems.forEach((t=>{t.type==n.投掷物&&e.push(t)})),e}getPlayerWeights(){let e=My.Setting.getData("pack_load")+My.Setting.getData("lock_load");return e+=null==this.equipItems[l.背包]?0:this.equipItems[l.背包].fuzhong,e}update_PackUsed(){let e=0;this.packMap.forEach((t=>{t.forEach((t=>{e+=t.weight*t.count}))})),this.packInfo.pack_Used=Tool.CommonUtil.ParseProductNumber(e);let t=this.equipItems[l.背包];this.packInfo.pack_Total=null==t?My.Setting.getData("pack_load"):My.Setting.getData("pack_load")+t.fuzhong,My.Event.emit(My.events.update_pack_weight)}update_EquipmentValue(){let e=0,t=0,a=0;this.equipItems.forEach((s=>{null!=s&&(e+=0|s.sell,t+=0|s.move,s.type==n.武器?s.accData.forEach((t=>{if(t>0){let a=My.Item.Instance.getItemConfig(t);e+=0|a.sell}})):a+=0|s.ergonomic)})),this.packInfo.property_head=null==this.equipItems[4]?0:this.equipItems[4].kct,this.packInfo.property_Body=null==this.equipItems[5]?0:this.equipItems[5].kct,this.packInfo.property_Ergonomic=a,this.packInfo.equipment_Value=Tool.CommonUtil.ParseProductNumber(e),My.Player.state.parse_SpeedFactors("equipment",100+t),My.Event.emit(My.events.update_equip_value,this.packInfo.equipment_Value)}update_PackValue(){let e=0;this.packItems.forEach((t=>{e+=t.sell*t.count})),this.packInfo.pack_Value=Tool.CommonUtil.ParseProductNumber(e)}update_LockUsed(){let e=0;this.lockItems.forEach((t=>{e+=t.totalWeight})),this.packInfo.lock_Used=Tool.CommonUtil.ParseProductNumber(e),My.Event.emit(My.events.update_lock_used)}update_LockValue(){let e=0;this.lockItems.forEach((t=>{e+=t.sell*t.count})),this.packInfo.lock_Value=Tool.CommonUtil.ParseProductNumber(e)}update_Weight(e=!1){let t=0;if(this.packMap.forEach((e=>{e.forEach((e=>{t+=e.weight*e.count}))})),this.packInfo.pack_Used=Tool.CommonUtil.ParseProductNumber(t),this.equipItems.forEach(((e,a)=>{e&&a!=this.equipItems.length-1&&(t+=e.weight)})),this.lockItems.forEach((e=>{t+=e.weight*e.count})),this.packInfo.weight_Currency=Tool.CommonUtil.ParseProductNumber(t),e){let e=null==this.equipItems[l.背包]?0:this.equipItems[l.背包].fuzhong,t=My.Setting.getData("pack_load")+My.Setting.getData("lock_load");this.packInfo.pack_Total=t,this.packInfo.weight_Total=e+t+My.Play.data.rewardedWeight}this.packInfo.weight_Currency<.6*this.packInfo.weight_Total?My.Player.state.parse_SpeedFactors("Weights",100):this.packInfo.weight_Currency>1*this.packInfo.weight_Total?My.Player.state.parse_SpeedFactors("Weights",60):My.Player.state.parse_SpeedFactors("Weights",80),My.Event.emit(My.events.update_pack_weight),My.Event.emit(My.events.update_player_weights)}update_weightTotal(){let e=null==this.equipItems[l.背包]?0:this.equipItems[l.背包].fuzhong,t=My.Setting.getData("pack_load")+My.Setting.getData("lock_load");this.packInfo.weight_Total=e+t+My.Play.data.rewardedWeight,My.Event.emit(My.events.update_player_weights)}update_PlayerValue(e=!1){let t=this.packInfo.equipment_Value+this.packInfo.pack_Value+this.packInfo.lock_Value;e&&(this.packInfo.player_Value=t),My.Play.data.values=i.clamp(t-this.packInfo.player_Value,0,999999999),My.Event.emit(My.events.update_play_value,My.Play.data.values)}}).Instance=null,y=M))||y);class k{constructor(){this.property_head=0,this.property_Body=0,this.property_Ergonomic=0,this.equipment_Value=0,this.weight_Currency=0,this.weight_Total=0,this.pack_Used=0,this.pack_Total=0,this.pack_Value=0,this.lock_Used=0,this.lockTotal=0,this.lock_Value=0,this.player_Value=0}get packUsedStr(){return this.pack_Used+"/"+this.pack_Total}get packUsedRatio(){return this.pack_Used/this.pack_Total}get lockUsedStr(){return this.lock_Used+"/"+this.lockTotal}get packValueStr(){let e=this.pack_Value.toString();return this.pack_Value>=1e8?e=(this.pack_Value/1e8).toFixed(0)+"亿":this.pack_Value>=1e6&&(e=(this.pack_Value/1e3).toFixed(0)+"K"),e}get totalJiazhiStr(){return(this.pack_Value+this.lock_Value).toString()}get playerWeightStr(){return this.weight_Currency+"/"+this.weight_Total+" 千克"}get getWeightRatio(){return this.weight_Currency/this.weight_Total}}e("PackInfo",k),t._RF.pop()}}}));

System.register("chunks:///_virtual/PackView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts","./PackItem.ts","./MenuBase.ts","./EquipmentItem.ts","./ViewBase.ts","./GameDefine.ts","./AnchorItem.ts"],(function(e){"use strict";var t,i,n,c,s,a,o,l,r,u,p,h,y,k,m,f,d,_;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,c=e.ScrollView,s=e.Node,a=e.Prefab,o=e._decorator,l=e.instantiate,r=e.v2},function(e){u=e.PackMenuType,p=e.QuickMenuType,h=e.QuickType},function(e){y=e.PackItem},function(e){k=e.MenuBase},function(e){m=e.EquipmentItem},function(e){f=e.ViewBase},function(e){d=e.GameScene},function(e){_=e.AnchorItem}],execute:function(){var M,b,S,I,v,w,P,g,E,N,z,q,D,x,A,B,C,V,T;n._RF.push({},"38b1aPgfRRHfZkzPgveXW8S","PackView",void 0);const{ccclass:Q,property:R}=o;e("PackView",(M=Q("PackView"),b=R({type:c,displayName:"背包列表"}),S=R({type:[_],displayName:"锚点动画"}),I=R({type:[k],displayName:"菜单按钮"}),v=R({type:[m],displayName:"装备栏"}),w=R({type:[s],displayName:"控件"}),P=R({type:a,displayName:"物品预制"}),g=R({type:s,displayName:"背包节点"}),E=R({type:s,displayName:"加密箱"}),M((q=t((z=class extends f{constructor(...e){super(...e),i(this,"packScroll",q,this),i(this,"anchors",D,this),i(this,"menus",x,this),i(this,"equips",A,this),i(this,"btns",B,this),i(this,"prefab",C,this),i(this,"packNode",V,this),i(this,"lockNode",T,this),this.packItems=[],this.lockItems=[]}init(){this.node.active=!1,this.menus.forEach((e=>{e.init()})),this.equips.forEach((e=>{e.init()})),My.Event.on(My.events.update_pack,this.update_PackData,this),My.Event.on(My.events.update_lock,this.update_LockData,this),My.Event.on(My.events.elect_pack_menu,this.elect_PackMenu,this)}show(e){My.Sound.playSfx(My.sounds.ui_view_whs),this.update_BtnState(),this.reset_State(),e&&e()}hide(e){this.node.active=!1,e&&e()}update_PackData(){if(this.packItems.length<1)for(let e=0;e<36;e++){let e=l(this.prefab);e.setParent(this.packNode);let t=e.getComponent(y);t.init(),this.packItems.push(t)}let e=My.Pack.Instance.packItems.length;for(let t=0;t<this.packItems.length;t++)t<e?this.packItems[t].show(My.Pack.Instance.packItems[t]):this.packItems[t].show(null)}update_LockData(){if(this.lockItems.length<1)for(let e=0;e<8;e++){let e=l(this.prefab);e.setParent(this.lockNode);let t=e.getComponent(y);t.init(),this.lockItems.push(t)}let e=My.Pack.Instance.lockItems.length;for(let t=0;t<this.lockItems.length;t++)t<e?this.lockItems[t].show(My.Pack.Instance.lockItems[t]):this.lockItems[t].show(null)}update_BtnState(){this.btns.forEach((e=>{e.active=My.Game.compareScene(d.主页)}))}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),My.Event.emit(My.events.elect_pack_menu,u.装备)}elect_PackMenu(e){switch(e){case u.装备:this.packScroll.stopAutoScroll(),this.packScroll.scrollTo(r(0,1),0,!1);break;case u.背包:this.packScroll.stopAutoScroll(),this.packScroll.scrollTo(r(0,.587),0,!1)}}onClick_Quick1(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_quick_menu,p.武器),My.Event.emit(My.events.elect_quick_type,h.快速装备)}onClick_Quick2(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_quick_type,h.弹药整备)}onClick_Quick3(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_quick_type,h.资源整备)}onClick_TakeAll(){My.Sound.playSfx(My.sounds.ui_click_common),My.Pack.Instance.storedAll()}onClick_SellAll(){My.Sound.playSfx(My.sounds.ui_click_common),My.Pack.Instance.sellAll()}}).prototype,"packScroll",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(z.prototype,"anchors",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),x=t(z.prototype,"menus",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),A=t(z.prototype,"equips",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),B=t(z.prototype,"btns",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=t(z.prototype,"prefab",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(z.prototype,"packNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(z.prototype,"lockNode",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=z))||N));n._RF.pop()}}}));

System.register("chunks:///_virtual/PanelBase.ts",["cc"],(function(e){"use strict";var s,t,c;return{setters:[function(e){s=e.cclegacy,t=e.Component,c=e._decorator}],execute:function(){var n;s._RF.push({},"751a7ebpRhNiqRTs4vLimRu","PanelBase",void 0);const{ccclass:a,property:r}=c;e("PanelBase",a("PanelBase")(n=class extends t{init(){}show(){}hide(){}})||n);s._RF.pop()}}}));

System.register("chunks:///_virtual/PauseView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts"],(function(e){"use strict";var i,t,s,n,a,c,o,r,u;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.UIOpacity,a=e._decorator,c=e.tween,o=e.director},function(e){r=e.ViewBase,u=e.ViewType}],execute:function(){var l,p,y,d,m;s._RF.push({},"52a5dxw1v1DRrwPEupD23oJ","PauseView",void 0);const{ccclass:h,property:w}=a;e("PauseView",(l=h("PauseView"),p=w({type:n,displayName:"遮罩"}),l((m=i((d=class extends r{constructor(...e){super(...e),t(this,"mask",m,this)}init(){this.node.active=!1}show(e){this.mask.opacity=0,this.node.active=!0,c(this.mask).to(.2,{opacity:100}).call((()=>{o.pause(),e&&e()})).start()}hide(e){this.node.active=!1,e&&e()}onClick_Resume(){o.resume(),My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.hideView(u.暂停视图),My.UI.Instance.showView(u.游戏视图),this.hide()}onClick_Home(){o.resume(),My.Sound.playSfx(My.sounds.ui_click_common),My.Pack.Instance.removeAll(),My.Game.Instance.gameMenu()}}).prototype,"mask",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=d))||y));s._RF.pop()}}}));

System.register("chunks:///_virtual/PeijianConfig.ts",["cc","./ItemConfig.ts"],(function(i){"use strict";var t,o,s;return{setters:[function(i){t=i.cclegacy,o=i._decorator},function(i){s=i.ItemConfig}],execute:function(){var n;t._RF.push({},"809eb58umlK/Jj0VJMqm7sX","PeijianConfig",void 0);const{ccclass:e,property:c}=o;i("PeijianConfig",e("PeijianConfig")(n=class extends s{constructor(...i){super(...i),this.kind=0,this.end=void 0,this.rds=void 0,this.moa=void 0,this.aim_mult=void 0,this.ergonomic=void 0,this.match=void 0}})||n);t._RF.pop()}}}));

System.register("chunks:///_virtual/Plane.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts","./GameDefine.ts","./BoxItem.ts","./MapDefine.ts"],(function(t){"use strict";var e,o,i,s,a,n,l,p,r,c,d,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.UIOpacity,a=t.AudioSource,n=t._decorator,l=t.tween},function(t){p=t.PoolItem},function(t){r=t.GameState,c=t.TipsType},function(t){d=t.BoxItem},function(t){u=t.BoxType}],execute:function(){var y,h,m,P,M,f,g;i._RF.push({},"b5bbfB1zZdPRZnYyXpcXX5H","Plane",void 0);const{ccclass:I,property:C}=n;t("Plane",(y=I("Plane"),h=C({type:s,displayName:"透明度组件"}),m=C({type:a,displayName:"音效组件"}),y((f=e((M=class extends p{constructor(...t){super(...t),o(this,"opacityCom",f,this),o(this,"audioCom",g,this),this.endPos=void 0,this.resNode=void 0,this.duration=void 0}init(t,e,o){this.endPos=t,this.resNode=o,this.duration=e,this.opacityCom.opacity=0,My.Play.Instance.poolItem_Push(this),this.node.setScale(this.node.position.x>this.endPos.x?1:-1,1),l(this.opacityCom).to(1,{opacity:255}).call((()=>{this.started()})).start()}started(){l(this.node).to(this.duration,{position:this.endPos}).call((()=>{this.ended()})).start();let t=Tool.MathUtil.randomInRange(My.Map.mapData.points.plane_drop[0],My.Map.mapData.points.plane_drop[1]);this.scheduleOnce(this.spawnDrop,t),this.audioCom.play()}spawnDrop(){if(!My.Game.compareState(r.Play))return;My.Game.gameSign("生成空投箱!");let t=My.Pool.getNode(My.Play.prefabs.resBox,this.resNode,this.node.getPosition()),e=Tool.CommonUtil.BoxItemData(u.空投箱,5,My.Item.getRnadomResData(u.空投箱)),o=t.getComponent(d);o.init(e),My.Play.Instance.poolItem_Push(o),My.Msg.showTips(c.空投已降落),My.Event.emit(My.events.nav_sign_push,o)}ended(){this.audioCom&&this.audioCom.stop(),l(this.opacityCom).to(1,{opacity:0}).call((()=>{My.Play.Instance.poolItem_Remove(this),My.Pool.putNode(this.node)})).start()}recycle(){this.unscheduleAllCallbacks(),My.Pool.putNode(this.node)}}).prototype,"opacityCom",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(M.prototype,"audioCom",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=M))||P));i._RF.pop()}}}));

System.register("chunks:///_virtual/Play_WuziItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,a,l,r,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Sprite,l=e.Label,r=e._decorator,s=e.Component}],execute:function(){var o,u,c,h,p,m,y,b,g,d,I,f,w,L,P;n._RF.push({},"5edb0pUSG5HKaq5T9OBzQfd","Play_WuziItem",void 0);const{ccclass:v,property:z}=r;e("Play_WuziItem",(o=v("Play_WuziItem"),u=z({type:a,displayName:"品质"}),c=z({type:a,displayName:"图像"}),h=z({type:l,displayName:"名称"}),p=z({type:l,displayName:"数量"}),m=z({type:l,displayName:"重量"}),y=z({type:l,displayName:"价值"}),o((d=t((g=class extends s{constructor(...e){super(...e),i(this,"quality",d,this),i(this,"image",I,this),i(this,"nameLabel",f,this),i(this,"countLabel",w,this),i(this,"weightLabel",L,this),i(this,"priceLabel",P,this),this.nearbyItem=null,this.boxItem=null}async show(e){this.quality.spriteFrame=await My.Item.Instance.getQualitySprite(e.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(e.image),this.countLabel.string=e.count.toString(),this.nameLabel.string=e.name,this.setWeight(e),this.setPrice(e),this.node.active=!0}hide(){this.nearbyItem=null,this.node.active=!1}showNearbyItem(e){this.nearbyItem=e,null!=this.nearbyItem?this.show(this.nearbyItem.info):(this.node.active=!1,My.Game.gameErr("交互>附近物资>信息数据为null"))}showBoxItem(e){null!=e?(this.boxItem=e,this.show(e)):(this.node.active=!1,My.Game.gameErr("交互>箱子物资>信息数据为null"))}setWeight(e){null!=e.weight?(this.weightLabel.string=Tool.CommonUtil.ParseProductString(e.weight*e.count),this.weightLabel.node.parent.active=!0):this.weightLabel.node.parent.active=!1}setPrice(e){null!=e.sell?(this.priceLabel.string=(e.sell*e.count).toString(),this.priceLabel.node.parent.active=!0):this.priceLabel.node.parent.active=!1}onclick(){My.Sound.playSfx(My.sounds.ui_other_stored),null!=this.nearbyItem?My.Play.Instance.item_Pickup(this.nearbyItem):null!=this.boxItem&&My.Play.Instance.boxItem_Pickup(this.boxItem)}}).prototype,"quality",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(g.prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(g.prototype,"nameLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(g.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(g.prototype,"weightLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(g.prototype,"priceLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=g))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/Player.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameDefine.ts","./HealthItem.ts","./Bullet.ts","./Weapon.ts","./MapDefine.ts"],(function(e){"use strict";var t,a,i,n,s,o,r,h,l,p,y,c,d,u,m,M,g,P,f,b,_,w;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Enum,s=e.Sprite,o=e.Animation,r=e._decorator,h=e.Component,l=e.math,p=e.Vec2,y=e.instantiate,c=e.director,d=e.Director},function(e){u=e.PlayerModel,m=e.GameTags,M=e.PierceType,g=e.BoxData},function(e){P=e.HealthItem},function(e){f=e.Bullet,b=e.BulletParme},function(e){_=e.Weapon},function(e){w=e.BoxType}],execute:function(){var v,D,S,k,E,R,A,x,N,z,B,I,T,C,H;i._RF.push({},"b1ee0SDDZ1EBaYy27UFAmH8","Player",void 0);const{ccclass:F,property:G}=r;e("Player",(v=F("Player"),D=G({type:n(u),displayName:"类型"}),S=G({type:P,displayName:"生命"}),k=G({type:_,displayName:"武器"}),E=G({type:s,displayName:"药品"}),R=G({type:o,displayName:"角色动画"}),A=G({type:o,displayName:"操作动画"}),v((z=t((N=class extends h{constructor(...e){super(...e),a(this,"type",z,this),a(this,"health",B,this),a(this,"weapon",I,this),a(this,"yaopin",T,this),a(this,"playerAni",C,this),a(this,"actionAni",H,this),this.hp=0,this.died=!1,this.loaded=!1}load(){switch(My.Map.mapData.pushPlayer(this.node),this.health.init(this.hurt,this),this.type){case u.修狗:this.animation_Play("Normal"),this.animation_Play("Idle"),this.hp=My.Setting.getData("player_hp");break;case u.机甲:this.hp=My.Setting.getData("mech_hp")}this.died=!1,this.loaded=!0,this.node.active=!0,My.Event.emit(My.events.guide_arrow,!1),My.Event.emit(My.events.update_hud_hp,this.hp)}unload(){this.loaded=!1,this.node.active=!1}free(){return this.died?0:My.Setting.getData("player_hp")-this.hp}restore(e){if(this.died)return;let t=0;switch(this.type){case u.修狗:t=My.Setting.getData("player_hp");break;case u.机甲:t=My.Setting.getData("mech_hp")}return this.hp=e?l.clamp(this.hp+e,0,t):t,My.Event.emit(My.events.update_hud_hp,this.hp),this.hp==t}bombard(e,t){let a=t.subtract(this.node.getWorldPosition()).normalize(),i=new b;i.dir=new p(a.x,a.y),i.belong=m.玩家,i.range=e[2],i.damage=e[3],i.radius=e[4],i.speed=50,this.schedule((()=>{My.Sound.playSfx(My.sounds.weapon_shoot+9);let e=y(My.Play.prefabs.grenade);e.setParent(My.Pool.Instance.poolNode),e.setWorldPosition(this.node.worldPosition),e.getComponent(f).init(i)}),e[1],e[0])}hurt(e,t){if(!this.loaded)return;if(this.died)return;let a=e.damage;switch(t){case m.玩家_头部:switch(this.type){case u.修狗:let t=My.Player.toukui;if(t)switch(t.lessEnd(e.endurance),Tool.CommonUtil.ParsePierce(e.pierce,t)){case M.完全穿透:a=Math.floor(a*My.Player.damageRatio);break;case M.部分穿透:a=Math.floor(.7*a*My.Player.damageRatio);break;case M.未能穿透:a=Math.floor(.2*a*My.Player.damageRatio)}this.hp=l.clamp(this.hp-a,0,9999),My.Event.emit(My.events.update_equipment_end);break;case u.机甲:this.hp=l.clamp(this.hp-a*My.Player.damageRatio,0,9999)}My.Play.showDamage(!0,a,this.node.getPosition());break;case m.玩家:switch(this.type){case u.修狗:let t=My.Player.hujia;if(t)switch(t.lessEnd(e.endurance),Tool.CommonUtil.ParsePierce(e.pierce,t)){case M.完全穿透:a=Math.floor(a*My.Player.damageRatio);break;case M.部分穿透:a=Math.floor(.7*a*My.Player.damageRatio);break;case M.未能穿透:a=Math.floor(.2*a*My.Player.damageRatio)}this.hp=l.clamp(this.hp-a,0,9999),My.Event.emit(My.events.update_equipment_end);break;case u.机甲:this.hp=l.clamp(this.hp-a*My.Player.damageRatio,0,9999)}My.Play.showDamage(!1,a,this.node.getPosition())}this.hp=Math.round(this.hp),My.Event.emit(My.events.update_hud_hp,this.hp),My.Game.cheat.cheat_hp||this.hp<=0&&(this.hp=0,this.death())}death(){switch(this.died=!0,this.type){case u.修狗:this.animation_Play("Death"),My.Sound.playSfx(My.sounds.player_death);break;case u.机甲:My.Sound.playSfx(My.sounds.mecha_death)}My.Player.state.cancel_All(),My.Game.Instance.gameOver(!1);let e=this.node.getPosition();c.once(d.EVENT_AFTER_PHYSICS,(()=>{switch(this.type){case u.机甲:this.node.active=!1}e.y-=10,My.Map.mapData.createDropBox(e,new g(w.盒子))}),this)}animation_Play(e){switch(this.type){case u.修狗:"Idle"==e||"Move"==e||"Death"==e?this.playerAni.play(e):this.actionAni.play(e);break;case u.机甲:}}animation_Event(e){switch(e){case"Idle":case"Move":break;case"Death":this.node.active=!1}}}).prototype,"type",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.修狗}}),B=t(N.prototype,"health",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(N.prototype,"weapon",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(N.prototype,"yaopin",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(N.prototype,"playerAni",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(N.prototype,"actionAni",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=N))||x));i._RF.pop()}}}));

System.register("chunks:///_virtual/PlayerCtrl.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GuideArrow.ts","./ItemDefine.ts","./GameDefine.ts","./Weapon.ts"],(function(e){"use strict";var t,i,s,o,a,n,h,r,y,l,c,p,d,u,v,g,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,o=e.Node,a=e.CCInteger,n=e.RigidBody2D,h=e._decorator,r=e.Component,y=e.v2,l=e.input,c=e.Input,p=e.Vec2,d=e.KeyCode},function(e){u=e.GuideArrow},function(e){v=e.WuqiType},function(e){g=e.ShootType},function(e){m=e.Weapon}],execute:function(){var f,M,w,_,b,E,P,k,S,K,T,C,D,x,Y;s._RF.push({},"95ef1H7ORZJpJZoEtfAatRH","PlayerCtrl",void 0);const{ccclass:R,property:A}=h;e("PlayerCtrl",(f=R("PlayerCtrl"),M=A({type:o,displayName:"身体"}),w=A({type:o,displayName:"准星"}),_=A({type:m,displayName:"武器"}),b=A({type:a,displayName:"移动速度"}),E=A({type:n,displayName:"刚体组件"}),P=A({type:u,displayName:"引导箭头"}),f((K=t((S=class extends r{constructor(...e){super(...e),i(this,"body",K,this),i(this,"aim",T,this),i(this,"weapon",C,this),i(this,"speed",D,this),i(this,"rigidCom",x,this),i(this,"guideArrow",Y,this),this.dir=1,this.vector=y(),this.moved=!1,this.pausing=!1,this.shooting=!1,this.shootType=g.按下射击,this.shootJoy_State=!1,this.correcting=!1}onEnable(){this.dir=1,this.vector=y(),this.aim.active=!1,this.weapon.node.angle=0,this.moved=!1,this.pausing=!1,this.shooting=!1,this.shootJoy_State=!1,this.correcting=!1,this.body.setScale(this.dir,1,1),this.speed=14|My.Setting.getData("role_speed"),l.on(c.EventType.KEY_UP,this.onKeyUp,this),l.on(c.EventType.KEY_DOWN,this.onKeyDown,this),My.Event.on(My.events.play_movejoy,this.onMovement,this),My.Event.on(My.events.play_shootjoy,this.onShooting,this),My.Event.on(My.events.play_throwjoy,this.onThrowing,this),My.Event.on(My.events.update_equip_elect,this.elected,this),My.Event.on(My.events.guide_arrow,this.guided,this),My.Event.on(My.events.game_paused,this.pause,this)}onDisable(){l.off(c.EventType.KEY_UP,this.onKeyUp,this),l.off(c.EventType.KEY_DOWN,this.onKeyDown,this),My.Event.off(My.events.play_movejoy,this.onMovement,this),My.Event.off(My.events.play_shootjoy,this.onShooting,this),My.Event.off(My.events.play_throwjoy,this.onThrowing,this),My.Event.off(My.events.update_equip_elect,this.elected,this),My.Event.off(My.events.guide_arrow,this.guided,this),My.Event.off(My.events.game_paused,this.pause,this)}update(){My.Player.cannot||this.pausing||(this.attack(),this.movement())}elected(){switch(this.correcting=!1,My.Player.weapon.type){case v.突击步枪:case v.冲锋枪:this.shootType=g.按下射击;break;case v.栓动步枪:this.shootType=g.松开射击;break;case v.射手步枪:case v.霰弹枪:case v.轻机枪:case v.手枪:case v.近战:this.shootType=g.按下射击;break;case v.弓弩:this.shootType=g.松开射击;break;default:this.shootType=g.按下射击}}pause(e){if(this.pausing=e,this.pausing){this.vector=p.ZERO;let e=this.rigidCom.linearVelocity;e.x=this.vector.x*this.speed*My.Player.speedRatio,e.y=this.vector.y*this.speed*My.Player.speedRatio,this.rigidCom.linearVelocity=e}}movement(){let e=this.vector.length();this.shootJoy_State||(this.vector.x>0?this.dir=1:this.vector.x<0&&(this.dir=-1),this.body.setScale(this.dir,1,1),!this.weapon.reloading&&!this.shooting&&!this.correcting&&e>0&&(this.correcting=!0,this.scheduleOnce((()=>{this.correcting=!1,this.weapon.node.angle=0}),.1))),e>0&&!this.moved?(this.moved=!0,My.Player.Instance.model.animation_Play("Move")):e<=0&&this.moved&&(this.moved=!1,My.Player.Instance.model.animation_Play("Idle"));let t=this.rigidCom.linearVelocity;t.x=this.vector.x*this.speed*My.Player.speedRatio,t.y=this.vector.y*this.speed*My.Player.speedRatio,this.rigidCom.linearVelocity=t}attack(){if(!My.Player.action_Has(!1))switch(this.shootType){case g.按下射击:this.shootJoy_State&&My.Player.weapon.attack();break;case g.松开射击:this.shooting&&!this.shootJoy_State&&(this.shooting=!1,My.Player.weapon.attack())}}guided(e){e?this.guideArrow.show(My.Map.mapExit):this.guideArrow.hide()}onMovement(e){this.vector=e}onShooting(e,t){if(e)switch(t&&(this.dir=t-90>0?-1:1,this.body.setScale(this.dir,1,1),this.weapon.reloading||(1==this.dir?this.weapon.node.angle=t:this.weapon.node.angle=180-t)),this.shooting=!0,this.shootType){case g.按下射击:this.shooting=!1;break;case g.松开射击:My.Player.weapon.aimState(!0)}else switch(this.shootType){case g.按下射击:this.shooting=!1;break;case g.松开射击:My.Player.weapon.aimState(!1)}this.shootJoy_State=e}onThrowing(e,t,i){if(t){let t=e.length();if(t>.3){let t=e.multiplyScalar(600);this.aim.setPosition(t.x,t.y,0)}this.aim.active=t>.35}else this.aim.active&&i&&(My.Player.action_Has()||My.Player.Instance.used_ThrownItem(this.aim.getWorldPosition())),this.aim.active=!1}onKeyDown(e){let t=this.vector.x,i=this.vector.y;switch(e.keyCode){case d.KEY_W:i=1;break;case d.KEY_S:i=-1;break;case d.KEY_A:t=-1;break;case d.KEY_D:t=1}this.vector=y(t,i)}onKeyUp(e){let t=this.vector.x,i=this.vector.y;switch(e.keyCode){case d.KEY_W:1==i&&(i=0);break;case d.KEY_S:-1==i&&(i=0);break;case d.KEY_A:-1==t&&(t=0);break;case d.KEY_D:1==t&&(t=0)}this.vector=y(t,i)}}).prototype,"body",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(S.prototype,"aim",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(S.prototype,"weapon",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(S.prototype,"speed",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),x=t(S.prototype,"rigidCom",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=t(S.prototype,"guideArrow",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=S))||k));s._RF.pop()}}}));

System.register("chunks:///_virtual/PlayerEquip.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts"],(function(e){"use strict";var t,i,s,a,n,c,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,a=e.Sprite,n=e._decorator,c=e.Component},function(e){u=e.EquipmentType}],execute:function(){var p,l,r,h,o,m,y,_,g,q,d;s._RF.push({},"81f1aZR2XtH3JYSRX6cMkuY","PlayerEquip",void 0);const{ccclass:I,property:z}=n;e("PlayerEquip",(p=I("PlayerEquip"),l=z({type:u,displayName:"类型"}),r=z({type:a,displayName:"图像"}),h=z({type:a,displayName:"瞄具"}),o=z({type:a,displayName:"枪口"}),p((_=t((y=class extends c{constructor(...e){super(...e),i(this,"type",_,this),i(this,"image",g,this),i(this,"acc_sight",q,this),i(this,"acc_muzzle",d,this),this.equip=void 0}onLoad(){My.Event.on(My.events.update_skin_weapon,this.update_Skin,this),My.Event.on(My.events.update_skin_show,this.update_SkinShow,this),My.Event.on(My.events.update_equip_show,this.update_EquipShow,this),My.Event.on(My.events.update_equip,this.update_Equip,this),this.update_EquipShow(My.Game.Instance.isShow),this.update_Equip()}update_SkinShow(e){e?this.node.active=!1:this.type==u.主武器1?this.node.active=!0:this.node.active=My.Game.Instance.isShow}update_EquipShow(e){this.type!=u.主武器1&&(this.node.active=e)}async update_Skin(){if(null==this.equip)this.image.spriteFrame=null,this.acc_sight&&(this.acc_sight.spriteFrame=null),this.acc_muzzle&&(this.acc_muzzle.spriteFrame=null);else{let e=My.Skin.getSkinImage(this.equip.image);this.image.spriteFrame=await My.Item.Instance.getItemSkin(e)}}async update_Equip(){switch(this.equip=null,this.type){case u.主武器1:if(this.equip=My.Pack.Instance.equipItems[0],null==this.equip&&(this.equip=My.Pack.Instance.equipItems[1]),null!=this.equip){let e=this.equip.accData[4];if(-1!=e&&null!=this.equip.accSight){this.acc_sight.node.active=!0;let t=My.Item.Instance.getItemConfig(e);this.acc_sight.spriteFrame=await My.Item.Instance.getItemSkin(t.image),this.acc_sight.node.setPosition(Tool.StringUtil.stringToVec3(this.equip.accSight))}else this.acc_sight.spriteFrame=null;let t=this.equip.accData[0];if(-1!=t&&null!=this.equip.accMuzzle){this.acc_muzzle.node.active=!0;let e=My.Item.Instance.getItemConfig(t);this.acc_muzzle.spriteFrame=await My.Item.Instance.getItemSkin(e.image),this.acc_muzzle.node.setPosition(Tool.StringUtil.stringToVec3(this.equip.accMuzzle))}else this.acc_muzzle.spriteFrame=null}break;case u.头盔:this.equip=My.Pack.Instance.equipItems[u.头盔];break;case u.防弹衣:this.equip=My.Pack.Instance.equipItems[u.防弹衣];break;case u.背包:this.equip=My.Pack.Instance.equipItems[u.背包]}this.update_Skin()}}).prototype,"type",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.主武器1}}),g=t(y.prototype,"image",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(y.prototype,"acc_sight",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(y.prototype,"acc_muzzle",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=y))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/PlayerMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Player.ts","./EquipItem.ts","./ItemInfo.ts","./GameDefine.ts","./ItemDefine.ts","./ThrownItem.ts","./PlayerState.ts","./BuffDefine.ts"],(function(e){"use strict";var t,i,a,s,n,l,o,c,u,m,d,r,h,p,y,I;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,s=e._decorator,n=e.Component,l=e.Vec3},function(e){o=e.Player},function(e){c=e.EquipItem},function(e){u=e.ItemStoredType},function(e){m=e.PlayerModel,d=e.PlayerAction},function(e){r=e.YaopinType,h=e.TouzhiType},function(e){p=e.ThrownItem},function(e){y=e.PlayerState},function(e){I=e.BuffType}],execute:function(){var M,g,_,w,P,q,f,k,T,S;a._RF.push({},"a85d3aoadtAy4cu78Cw5ynH","PlayerMgr",void 0);const{ccclass:b,property:v}=s;e("PlayerMgr",(M=b("PlayerMgr"),g=v({type:y,displayName:"状态数据"}),_=v({type:o,displayName:"修狗"}),w=v({type:o,displayName:"机甲"}),M(((S=class e extends n{constructor(...e){super(...e),i(this,"state",f,this),i(this,"xiugouModel",k,this),i(this,"mechaModel",T,this),this.model=null,this.equips=[null,null,null,null,null,null,null],this.thrownItem=void 0,this.medicalItem=void 0,this.ammoKinds=[],this.unfoldAmmo=void 0,this.unfoldMedical=void 0,this.loaded=!1,this.modelType=m.修狗}static get hp(){return this.Instance.model.hp}static get died(){return this.Instance.model.died}static get weapon(){return this.Instance.model.weapon}static get weaponType(){return this.Instance.model.weapon.type}static get thrownItem(){return this.Instance.thrownItem}static set thrownItem(e){this.Instance.thrownItem=e}static get medicalItem(){return this.Instance.medicalItem}static set medicalItem(e){this.Instance.medicalItem=e}static get position(){return this.Instance.model.node.getPosition()}static get worldPosition(){return this.Instance.model?this.Instance.model.node.getWorldPosition():l.ZERO}static get cannot(){return this.Instance.model.died&&this.Instance.loaded}static get modelType(){return this.Instance.modelType}static get model(){return this.Instance.model}static get state(){return this.Instance.state}static get speedRatio(){return this.Instance.state.speedRatio/100}static get damageRatio(){return this.Instance.state.damageRatio/100}static get toukui(){return null==this.Instance.equips[4]?null:this.Instance.equips[4].data}static get hujia(){return null==this.Instance.equips[5]?null:this.Instance.equips[5].data}static get melee(){return null==this.Instance.equips[2]?null:this.Instance.equips[2]}onLoad(){e.Instance=this,My.Event.on(My.events.update_equip,this.update_Equip,this),My.Event.on(My.events.update_equip_elect,this.update_EquipElect,this),this.unload()}load(){this.state.reset_All(),this.thrownItem=null,this.equips=[null,null,null,null,null,null,null],1==My.Data.playerData.mechaState?(this.modelType=m.机甲,this.model=this.mechaModel,this.mechaModel.load()):(this.modelType=m.修狗,this.model=this.xiugouModel,this.xiugouModel.load()),this.loaded=!0}unload(){this.unscheduleAllCallbacks(),this.modelType=m.修狗,this.xiugouModel.unload(),this.mechaModel.unload(),this.loaded=!1}static restore(e){if(this.Instance.model)return this.Instance.model.restore(e)}static action_Has(e=!0){return!this.Instance.state.action_Compare(d.无操作)&&(e&&My.Msg.showMessage(My.msgcode.状态不匹配),!0)}static action_Push(e){return this.Instance.state.action_Compare(d.无操作)?(this.Instance.state.action_Push(e),!0):(My.Msg.showMessage(My.msgcode.状态不匹配),!1)}static action_Remove(e){return!!this.Instance.state.action_Compare(e)&&(this.Instance.state.action_Push(d.无操作),!0)}static getWeaponEquip(){return this.Instance.equips[My.Pack.Instance.wuqiSelect]}update_Equip(){if(this.loaded){My.Game.gameLog("对局>玩家>更新武器装备");for(let e=0;e<this.equips.length;e++)if(null!=My.Pack.Instance.equipItems[e]){if(null==this.equips[e]||My.Pack.Instance.equipItems[e]!=this.equips[e].data){let t=new c;t.init(My.Pack.Instance.equipItems[e]),this.equips[e]=t}}else this.equips[e]=null;My.Event.emit(My.events.update_hud_equip),My.Event.emit(My.events.update_equip_elect)}}update_EquipElect(){if(null!=this.model.weapon)switch(this.modelType){case m.修狗:let e=this.equips[My.Pack.wuqiSelected];this.model.weapon.load(e);break;case m.机甲:let t=My.Item.Instance.getItemConfig(My.Setting.getData("mech_weapon")),i=Tool.CommonUtil.CreateInfo(t,1,u.未知),a=new c;a.init(i),this.model.weapon.load(a)}else My.Game.gameErr("对局>玩家武器>null")}switch_Melee(e){if(e){let e=this.equips[2];null!=e?this.model.weapon.load(e):My.Msg.showMessage(My.msgcode.无近战武器)}else this.update_EquipElect()}static compareAmmo(e){return null!=this.Instance.equips[My.Pack.wuqiSelected]&&this.Instance.equips[My.Pack.wuqiSelected].ammo==e}static getAmmotype(){return null!=this.Instance.equips[My.Pack.wuqiSelected]?this.Instance.equips[My.Pack.wuqiSelected].data.ammo:null}static getAmmoCount(){return null!=this.Instance.equips[My.Pack.wuqiSelected]?this.Instance.equips[My.Pack.wuqiSelected].ammoCount:0}static getAmmoSelect(){return null!=this.Instance.equips[My.Pack.wuqiSelected]?(null!=this.Instance.equips[My.Pack.wuqiSelected].ammo&&(this.Instance.equips[My.Pack.wuqiSelected].ammo.stored==u.加密箱||this.Instance.equips[My.Pack.wuqiSelected].ammo.count<=0)&&(this.Instance.equips[My.Pack.wuqiSelected].ammo=null),this.Instance.equips[My.Pack.wuqiSelected].ammo):null}static setAmmoKinds(e){this.Instance.ammoKinds=e}async used_MedicalItem(t){if(this.modelType==m.修狗)switch(My.Game.gameSign("使用"+t.name),this.model.yaopin.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.state.parse_SpeedFactors("medicalReduce",100-t.medicalReduce),this.scheduleOnce((()=>{this.state.parse_SpeedFactors("medicalReduce",100)}),t.medicalTime),My.Sound.playSfx(My.sounds.medical_type+t.kind),e.action_Push(d.药品操作),t.kind){case r.加速BUFF类:My.Pack.Instance.packItem_Used(t,1),this.model.animation_Play("Drink_0"),await Tool.TimeUtil.sleep(t.medicalTime-1),this.model.animation_Play("Drink_1"),await Tool.TimeUtil.sleep(1),this.state.buff_Push(I.兴奋,t.medicalValue,t.duration);break;case r.减伤BUFF类:My.Pack.Instance.packItem_Used(t,1),this.model.animation_Play("Drink_0"),await Tool.TimeUtil.sleep(t.medicalTime-1),this.model.animation_Play("Drink_1"),await Tool.TimeUtil.sleep(1),this.state.buff_Push(I.镇静,t.medicalValue,t.duration);break;case r.恢复BUFF类:My.Pack.Instance.packItem_Used(t,1),this.model.animation_Play("Bind_0"),await Tool.TimeUtil.sleep(t.medicalTime-1),this.model.animation_Play("Bind_1"),await Tool.TimeUtil.sleep(1),this.state.buff_Push(I.愈合,t.medicalValue,t.duration);break;case r.负重BUFF类:My.Pack.Instance.packItem_Used(t,1),this.model.animation_Play("Bind_0"),await Tool.TimeUtil.sleep(t.medicalTime-1),this.model.animation_Play("Bind_1"),await Tool.TimeUtil.sleep(1),this.state.buff_Push(I.坚毅,t.medicalValue,t.duration);break;case r.生命治疗品:My.Event.emit(My.events.player_used,t),My.Player.action_Remove(d.药品操作);break;default:return void My.Player.action_Remove(d.药品操作)}}used_ThrownItem(t){if(this.modelType!=m.修狗)return;let i=Tool.CommonUtil.CopyInfo(this.thrownItem);My.Game.gameSign("使用"+h[this.thrownItem.kind]),My.Sound.playSfx(My.sounds.thrown_type+this.thrownItem.kind),My.Game.cheat.cheat_ammo?My.Pack.Instance.packItem_Used(this.thrownItem,0):My.Pack.Instance.packItem_Used(this.thrownItem,1),e.action_Push(d.投掷物操作),this.model.animation_Play("Thrown");let a=My.Pool.getNode(My.Play.prefabs.thrown);a.setWorldPosition(this.model.node.getWorldPosition()),a.getComponent(p).init(i,t)}use_SkillItem(e,t=l.ZERO){let i;switch(e.id){case 1:i=Tool.StringUtil.stringToArrayNumber(e.value,";"),this.state.buff_Push(I.兴奋,i[1],i[0]);break;case 2:i=Tool.StringUtil.stringToArrayNumber(e.value,";"),this.model.bombard(i,t);break;case 3:My.Sound.playSfx(My.sounds.mecha_restore),i=Tool.StringUtil.stringToArrayNumber(e.value,";");let a=i[0]/i[1];this.schedule((()=>{this.model.restore(i[2])}),i[1],a)}}}).Instance=null,f=t((q=S).prototype,"state",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new y}}),k=t(q.prototype,"xiugouModel",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(q.prototype,"mechaModel",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=q))||P));a._RF.pop()}}}));

System.register("chunks:///_virtual/PlayerSkin.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,a,s,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Sprite,s=e._decorator,o=e.Component}],execute:function(){var r,u,p,l,c;n._RF.push({},"b3a72XjIZFIbY/5SFGjx5PX","PlayerSkin",void 0);const{ccclass:y,property:h}=s;e("PlayerSkin",(r=y("PlayerSkin"),u=h({type:a,displayName:"图像"}),r((c=t((l=class extends o{constructor(...e){super(...e),i(this,"image",c,this)}onLoad(){this.update_Skin(),this.update_EquipShow(My.Game.Instance.isShow),My.Event.on(My.events.update_skin_player,this.update_Skin,this),My.Event.on(My.events.update_skin_show,this.update_SkinShow,this),My.Event.on(My.events.update_equip_show,this.update_EquipShow,this)}update_SkinShow(e){this.node.active=!!e||!My.Game.Instance.isShow}update_EquipShow(e){this.node.active=!e}async update_Skin(e){let t=e;null==t&&(t=My.Skin.getPlayerSkin()),this.image.spriteFrame=null==t?null:await My.Item.Instance.getItemSkin(t.image)}}).prototype,"image",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=l))||p));n._RF.pop()}}}));

System.register("chunks:///_virtual/PlayerState.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BuffDefine.ts","./GameDefine.ts"],(function(e){"use strict";var t,s,i,a,r,h,o,c,n;return{setters:[function(e){t=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.SpriteFrame,r=e._decorator,h=e.Component},function(e){o=e.BuffBase},function(e){c=e.PlayerAction,n=e.GameScene}],execute:function(){var f,u,l,p,m;i._RF.push({},"c2157s2k5xFXoU54MUmWj16","PlayerState",void 0);const{ccclass:d,property:b}=r;e("PlayerState",(f=d("PlayerState"),u=b({type:[a],displayName:"BUFF图标"}),f((m=t((p=class extends h{constructor(...e){super(...e),s(this,"icons",m,this),this.action=c.无操作,this.buffMap=new Map,this.speedRatio=100,this.damageRatio=100,this.weightRatio=100,this.speedFactors=new Map,this.timer=!1,this.lastSize=0}reset_All(){this.timer=!1,this.speedRatio=100,this.damageRatio=100,this.weightRatio=100,this.action=c.无操作,this.speedFactors.forEach((e=>{})),My.Event.emit(My.events.update_buff_state),this.unscheduleAllCallbacks()}cancel_All(){this.buffMap.forEach((e=>{e.cancel()})),this.buffMap.clear(),this.lastSize=0,this.timer=!1,this.action=c.无操作,this.unscheduleAllCallbacks(),My.Event.emit(My.events.update_buff_state)}parse_SpeedFactors(e,t){this.speedFactors.set(e,t);let s=100;this.speedFactors.forEach((e=>{s*=e/100})),this.speedRatio=Math.round(s),My.Game.compareScene(n.对局)&&(My.Event.emit(My.events.update_property),My.Game.gameLog("移速系数："+this.speedRatio+"%",this.speedFactors))}action_Push(e){this.action=e}action_Compare(e){return this.action==e}buff_Push(e,t,s){if(this.buffMap.has(e))this.buffMap.get(e).override(t,s,(()=>{this.buff_Remove(e)}));else{let i=new o;i.enabled(e,t,s,(()=>{this.buff_Remove(e)})),this.buffMap.set(e,i)}this.buff_Timer()}buff_Remove(e){this.buffMap.has(e)&&this.buffMap.delete(e),this.buff_Timer()}buff_Timer(){let e=this.buffMap.size;e>0?this.timer||(this.timer=!0,this.schedule((()=>{this.buffMap.forEach((e=>{e.update(1)}))}),1)):this.timer&&(this.timer=!1,this.unscheduleAllCallbacks()),e!=this.lastSize&&(this.lastSize=e,My.Event.emit(My.events.update_buff_state))}}).prototype,"icons",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=p))||l));i._RF.pop()}}}));

System.register("chunks:///_virtual/PlayerWeapon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./Bullet.ts","./Bullet_Melee.ts","./Weapon.ts"],(function(t){"use strict";var e,i,a,n,o,s,l,c,u,r,h,p,m;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,n=t.Sprite,o=t.Node,s=t.Animation,l=t._decorator,c=t.instantiate,u=t.math},function(t){r=t.WuqiType},function(t){h=t.Bullet},function(t){p=t.Bullet_Melee},function(t){m=t.Weapon}],execute:function(){var g,d,y,f,q,z,I,P,b,M,S,_,v;a._RF.push({},"8db37BaPzVDQK/1NUL4puDy","PlayerWeapon",void 0);const{ccclass:C,property:D}=l;t("PlayerWeapon",(g=C("PlayerWeapon"),d=D({type:n,displayName:"图像"}),y=D({type:o,displayName:"射线"}),f=D({type:n,displayName:"瞄具配件"}),q=D({type:n,displayName:"枪口配件"}),z=D({type:s,displayName:"动画"}),g((b=e((P=class extends m{constructor(...t){super(...t),i(this,"image",b,this),i(this,"aimRay",M,this),i(this,"acc_sight",S,this),i(this,"acc_muzzle",_,this),i(this,"animationCom",v,this),this.sightPoint=void 0,this.muzzlePoint=void 0}onLoad(){My.Event.on(My.events.player_reload,this.reloadEvent,this)}async load(t){if(this.equip=t,null!=this.equip){let t=My.Skin.getSkinImage(this.equip.data.image);this.image.spriteFrame=await My.Item.Instance.getItemSkin(t),this.muzzlePoint=Tool.StringUtil.stringToVec3(this.equip.data.accMuzzle),this.sightPoint=Tool.StringUtil.stringToVec3(this.equip.data.accSight),this.setBulletPrefab(),this.updateAcc(),this.bulletCount=this.equip.type==r.霰弹枪?5:1,this.bulletDamage=0,this.bulletRange=0,this.bulletSpeed=0,this.node.active=!0}else this.node.active=!1}unload(){this.equip=null,this.node.active=!1}async updateAcc(){if(null==this.equip)return;this.ergonomic=this.equip.data.ergonomic;let t=this.equip.data.accData[0];if(t>0){let e=My.Item.Instance.getItemConfig(t);this.ergonomic+=0|e.ergonomic,null!=this.equip.data.accMuzzle&&(this.acc_muzzle.node.active=!0,this.acc_muzzle.node.setPosition(this.muzzlePoint),this.acc_muzzle.spriteFrame=await My.Item.Instance.getItemSkin(e.image))}else this.acc_muzzle.spriteFrame=null;if(t=this.equip.data.accData[1],t>0&&(this.ergonomic+=0|My.Item.Instance.getItemConfig(t).ergonomic),t=this.equip.data.accData[2],t>0&&(this.ergonomic+=0|My.Item.Instance.getItemConfig(t).ergonomic),t=this.equip.data.accData[3],t>0&&(this.ergonomic+=0|My.Item.Instance.getItemConfig(t).ergonomic),t=this.equip.data.accData[4],t>0){let e=My.Item.Instance.getItemConfig(t);this.ergonomic+=0|e.ergonomic,null!=this.equip.data.accSight&&(this.acc_sight.node.active=!0,this.acc_sight.node.setPosition(this.sightPoint),this.acc_sight.spriteFrame=await My.Item.Instance.getItemSkin(e.image))}else this.acc_sight.spriteFrame=null;this.equip.setAcc(),this.moaAngle=Tool.CommonUtil.ParseAngleMoa(this.equip.moa),My.Event.emit(My.events.update_property)}aimState(t){this.aimRay.active=t}reload(){null!=this.equip&&this.equip.canReload&&this.equip.reload()}attack(){if(null==this.equip)return;let t=this.acc_muzzle.node.getWorldPosition();if(this.equip.type==r.近战){if(!this.equip.canAttack)return;My.Sound.playSfx(this.equip.shootSound),this.animationCom.play("Melee"),this.equip.attack();let e=c(this.bulletPrefab);e.setParent(My.Pool.Instance.poolNode),e.setWorldPosition(t),e.getComponent(p).init(this.getMeleeParam())}else{if(null==this.equip.ammo)return;if(!this.equip.canShoot)return;My.Sound.playSfx(this.equip.shootSound),this.equip.shoot(),this.getBulletParams(this.bulletCount).forEach((e=>{let i=c(this.bulletPrefab);i.setParent(My.Pool.Instance.poolNode),i.setWorldPosition(t),i.getComponent(h).init(e)})),this.animationCom.play("Shoot")}}reloadEvent(t){let e=u.clamp(1/t,0,10);this.animationCom.play("Reload"),this.animationCom.getState("Reload").speed=e}}).prototype,"image",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(P.prototype,"aimRay",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(P.prototype,"acc_sight",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(P.prototype,"acc_muzzle",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(P.prototype,"animationCom",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=P))||I));a._RF.pop()}}}));

System.register("chunks:///_virtual/PoolItem.ts",["cc"],(function(o){"use strict";var e,t,c;return{setters:[function(o){e=o.cclegacy,t=o.Component,c=o._decorator}],execute:function(){var s;e._RF.push({},"51d5clj8NFAI62ks+oom8Ds","PoolItem",void 0);const{ccclass:r,property:n}=c;o("PoolItem",r("PoolItem")(s=class extends t{recycle(){My.Pool.putNode(this.node)}})||s);e._RF.pop()}}}));

System.register("chunks:///_virtual/PopupBase.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts"],(function(e){"use strict";var t,o,i,p,r,n,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.initializerDefineProperty},function(e){i=e.cclegacy,p=e.Enum,r=e._decorator,n=e.Component},function(e){s=e.PopupType}],execute:function(){var c,u,a,l,y;i._RF.push({},"e24a9LEooVGWpEzKiV61JbH","PopupBase",void 0);const{ccclass:f,property:d}=r;e("PopupBase",(c=f("PopupBase"),u=d({type:p(s),displayName:"弹窗类型"}),c((y=t((l=class extends n{constructor(...e){super(...e),o(this,"type",y,this)}init(){}show(e){}hide(){}}).prototype,"type",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return s.获得弹窗}}),a=l))||a));i._RF.pop()}}}));

System.register("chunks:///_virtual/PreserveAspect.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,s,n,o,a,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,s=e.UITransform,n=e._decorator,o=e.Component,a=e.Vec2,h=e.NodeEventType}],execute:function(){var c,p,l,u,d,f,y;r._RF.push({},"64243xy0nhH/a4vKNxFZyo6","PreserveAspect",void 0);const{ccclass:m,property:z}=n;e("PreserveAspect",(c=m("PreserveAspect"),p=z({type:s,displayName:"作用节点"}),l=z({displayName:"参照尺寸"}),c((f=t((d=class extends o{constructor(...e){super(...e),i(this,"transCom",f,this),i(this,"referSize",y,this),this.size=a.ZERO,this.ratio=1}onLoad(){this.transCom&&(this.transCom.node.on(h.SIZE_CHANGED,this.onChanged,this),this.onChanged())}onChanged(){this.size=new a(this.transCom.width,this.transCom.height),this.ratio=this.referSize.y/this.size.y,this.size.x*this.ratio>this.referSize.x&&(this.ratio=this.referSize.x/this.size.x),this.transCom.node.setScale(this.ratio,this.ratio)}}).prototype,"transCom",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(d.prototype,"referSize",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new a(100,100)}}),u=d))||u));r._RF.pop()}}}));

System.register("chunks:///_virtual/ProbPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PopupBase.ts"],(function(t){"use strict";var i,e,o,s,n,c,r,a,l,p,u;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.UIOpacity,n=t.ScrollView,c=t.Node,r=t._decorator,a=t.tween,l=t.Vec3,p=t.easing},function(t){u=t.PopupBase}],execute:function(){var h,y,d,g,m,b,f,P,v;o._RF.push({},"6ac48mKYuVGPKgmg7cxsGNj","ProbPopup",void 0);const{ccclass:C,property:_}=r;t("ProbPopup",(h=C("ProbPopup"),y=_({type:s,displayName:"透明度组件"}),d=_({type:n,displayName:"滚动视图"}),g=_({type:c,displayName:"内容"}),h((f=i((b=class extends u{constructor(...t){super(...t),e(this,"opacityCom",f,this),e(this,"scorll",P,this),e(this,"content",v,this),this.using=!1}init(){this.opacityCom.opacity=0,this.node.active=!1,this.using=!1}show(t){this.using||(this.content.setScale(.8,.8),this.opacityCom.opacity=0,this.node.active=!0,this.using=!0,this.scorll.scrollToTop(0,!1),a(this.opacityCom).to(.2,{opacity:255}).start(),a(this.content).to(.25,{scale:l.ONE},{easing:p.backOut}).call((()=>{this.using=!1})).start())}hide(){this.node.active=!1}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.using||this.hide()}}).prototype,"opacityCom",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=i(b.prototype,"scorll",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=i(b.prototype,"content",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b))||m));o._RF.pop()}}}));

System.register("chunks:///_virtual/PropertyView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Hud_Hp.ts","./GuideDefine.ts","./AnchorItem.ts","./BuffStateItem.ts","./ViewBase.ts"],(function(e){"use strict";var t,i,r,n,o,p,a,s,u,y,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Label,o=e._decorator},function(e){p=e.Hud_Hp},function(e){a=e.GuideStep},function(e){s=e.AnchorItem},function(e){u=e.BuffStateItem},function(e){y=e.ViewBase,l=e.ViewType}],execute:function(){var c,h,f,d,_,b,m,w,g,M,P,v,I,S,k,V,z;r._RF.push({},"ddf9dSAClJAG47pYOI8k1x8","PropertyView",void 0);const{ccclass:B,property:E}=o;e("PropertyView",(c=B("PropertyView"),h=E({type:p,displayName:"健康"}),f=E({type:n,displayName:"头部抗穿透"}),d=E({type:n,displayName:"躯干抗穿透"}),_=E({type:n,displayName:"人机功效"}),b=E({type:n,displayName:"移动速度"}),m=E({type:[u],displayName:"状态"}),w=E({type:[s],displayName:"锚点动画"}),c((P=t((M=class extends y{constructor(...e){super(...e),i(this,"hp",P,this),i(this,"property_1",v,this),i(this,"property_2",I,this),i(this,"property_3",S,this),i(this,"property_4",k,this),i(this,"buffs",V,this),i(this,"anchors",z,this)}init(){this.hp.init(),this.node.active=!1,My.Event.on(My.events.update_buff_state,this.update_Buff,this),My.Event.on(My.events.update_property,this.update_Property,this),My.Event.on(My.events.update_equip_value,this.update_Property,this)}show(e){this.reset_State(),e&&e()}hide(e){My.Guide.guideCheck(a.对局引导),this.node.active=!1,e&&e()}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()}))}update_Property(){this.property_1.string=My.Pack.packInfo.property_head.toString(),this.property_2.string=My.Pack.packInfo.property_Body.toString(),this.property_4.string=My.Player.state.speedRatio.toString();let e=My.Player.model?0|My.Player.model.weapon.ergonomic:0;this.property_3.string=(My.Pack.packInfo.property_Ergonomic+e).toString()}update_Buff(){let e=0;this.buffs.forEach((e=>{e.hide()})),My.Player.state.buffMap.forEach((t=>{this.buffs[e].show(t),e+=1}))}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(l.游戏视图),My.UI.Instance.hideView(l.属性视图),My.UI.Instance.hideView(l.背包视图)}}).prototype,"hp",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(M.prototype,"property_1",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(M.prototype,"property_2",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(M.prototype,"property_3",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(M.prototype,"property_4",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(M.prototype,"buffs",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z=t(M.prototype,"anchors",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=M))||g));r._RF.pop()}}}));

System.register("chunks:///_virtual/QuickAmmoItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,a,s,n,o,u,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,s=t.Sprite,n=t.Label,o=t.Node,u=t._decorator,c=t.Component,l=t.math}],execute:function(){var h,r,p,m,d,b,y,g,v,L,k,w,_,f,C,N,I;a._RF.push({},"db619U3b7ZFhqOsDm1zKWS2","QuickAmmoItem",void 0);const{ccclass:M,property:q}=u;t("QuickAmmoItem",(h=M("QuickAmmoItem"),r=q({type:s,displayName:"品质"}),p=q({type:s,displayName:"图像"}),m=q({type:n,displayName:"名称"}),d=q({type:n,displayName:"整备数量"}),b=q({type:n,displayName:"背包数量"}),y=q({type:n,displayName:"仓库数量"}),g=q({type:o,displayName:"减少按钮"}),h((k=e((L=class extends c{constructor(...t){super(...t),i(this,"quality",k,this),i(this,"image",w,this),i(this,"nameLabel",_,this),i(this,"countLabel",f,this),i(this,"packLabel",C,this),i(this,"whsLabel",N,this),i(this,"lessNode",I,this),this.data=void 0,this.cost=0,this.weight=0,this.count=0,this.costCount=0,this.whsCount=0,this.checked=!0,this.value=1}init(){this.node.active=!1,this.lessNode.active=!1,this.whsLabel.node.parent.active=!1,this.packLabel.node.parent.active=!1,this.countLabel.node.parent.active=!1}async show(t,e){this.data=t,this.nameLabel.string=t.name,this.quality.spriteFrame=My.Item.Instance.getQualitySprite(t.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.node.active=!0,this.checked=!0,this.value=e,this.count=0,this.update_Had(),this.update_Count()}hide(){this.node.active=!1}update_Had(){this.whsCount=My.Whs.getItemCount(this.data.id),this.whsLabel.string=this.whsCount.toString(),this.whsLabel.node.parent.active=this.whsCount>0;let t=My.Pack.get_PackItem_Count(this.data.id);this.packLabel.string=t.toString(),this.packLabel.node.parent.active=t>0}update_Count(){this.lessNode.active=this.count>0,this.countLabel.node.parent.active=this.count>0,this.countLabel.string="+"+this.count,this.costCount=l.clamp(this.count-this.whsCount,0,999),this.cost=this.costCount*this.data.buy,this.weight=Tool.CommonUtil.ParseProductNumber(this.count*this.data.Widget)}onClick_Add(){this.count<=0&&My.Quick.quickList_Push(this),this.count=l.clamp(this.count+this.value,0,990),this.update_Count(),My.Event.emit(My.events.update_quick_cost)}onClick_Less(){this.count=l.clamp(this.count-this.value,0,990),this.count<=0&&My.Quick.quickList_Remove(this),this.update_Count(),My.Event.emit(My.events.update_quick_cost)}}).prototype,"quality",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(L.prototype,"image",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(L.prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(L.prototype,"countLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(L.prototype,"packLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(L.prototype,"whsLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(L.prototype,"lessNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=L))||v));a._RF.pop()}}}));

System.register("chunks:///_virtual/QuickAmmoPanel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./QuickAmmoItem.ts","./UIDefine.ts","./PanelBase.ts"],(function(t){"use strict";var e,i,s,a,n,r,o,l,m,c,h,u,p,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,a=t.Widget,n=t.ScrollView,r=t.Prefab,o=t.Label,l=t._decorator,m=t.instantiate,c=t.tween,h=t.easing},function(t){u=t.QuickAmmoItem},function(t){p=t.QuickAmmoParam},function(t){y=t.PanelBase}],execute:function(){var b,d,f,g,_,k,v,w,P,I,A,M,L;s._RF.push({},"5aeb7SRPyhHY4ncZDG6eyXh","QuickAmmoPanel",void 0);const{ccclass:Q,property:j}=l;t("QuickAmmoPanel",(b=Q("QuickAmmoPanel"),d=j({type:a,displayName:"适配组件"}),f=j({type:n,displayName:"滚动视图"}),g=j({type:r,displayName:"预制"}),_=j({type:o,displayName:"预计花费"}),k=j({type:[p],displayName:"参数"}),b((P=e((w=class extends y{constructor(...t){super(...t),i(this,"widget",P,this),i(this,"scroll",I,this),i(this,"prefab",A,this),i(this,"costLabel",M,this),i(this,"params",L,this),this.items_1=[],this.items_2=[],this.items_3=[]}init(){for(let t=0;t<3;t++)for(let e=0;e<6;e++){let e=m(this.prefab);e.setParent(this.params[t].content);let i=e.getComponent(u);switch(i.init(),t){case 0:this.items_1.push(i);break;case 1:this.items_2.push(i);break;case 2:this.items_3.push(i)}}this.node.active=!1,My.Event.on(My.events.update_quick_cost,this.update_Cost,this)}show(){this.update_Data(),this.update_Cost(),this.widget.right=-100,this.node.active=!0,c(this.widget).to(.2,{right:0},{easing:h.sineOut}).start()}hide(){this.node.active=!1}update_Data(){My.Quick.quickList_RemoveAll();let t=My.Pack.Instance.equipItems[0];if(t){this.params[0].nameLabel.string="主武器("+t.name+")";let e=My.Item.getAmmoByType(t.ammo);for(let i=0;i<this.items_1.length;i++)i<e.length?this.items_1[i].show(e[i],t.rds):this.items_1[i].hide();this.params[0].obj.active=!0}else this.params[0].obj.active=!1;let e=My.Pack.Instance.equipItems[1];if(e){this.params[1].nameLabel.string="主武器2("+e.name+")";let t=My.Item.getAmmoByType(e.ammo);for(let i=0;i<this.items_2.length;i++)i<t.length?this.items_2[i].show(t[i],e.rds):this.items_2[i].hide();this.params[1].obj.active=!0}else this.params[1].obj.active=!1;let i=My.Pack.Instance.equipItems[3];if(i){this.params[2].nameLabel.string="副武器("+i.name+")";let t=My.Item.getAmmoByType(i.ammo);for(let e=0;e<this.items_3.length;e++)e<t.length?this.items_3[e].show(t[e],i.rds):this.items_3[e].hide();this.params[2].obj.active=!0}else this.params[2].obj.active=!1;this.scroll.scrollToTop(0,!1)}update_Cost(){this.costLabel.string=Tool.CommonUtil.ParseValue(My.Quick.quickList_Cost())}}).prototype,"widget",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(w.prototype,"scroll",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(w.prototype,"prefab",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(w.prototype,"costLabel",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(w.prototype,"params",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=w))||v));s._RF.pop()}}}));

System.register("chunks:///_virtual/QuickEquipItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./ItemInfo.ts","./UIDefine.ts"],(function(t){"use strict";var e,i,s,n,a,l,o,r,u,c,h,p,m,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Sprite,a=t.Label,l=t.Node,o=t._decorator,r=t.Component,u=t.UITransform},function(t){c=t.ItemQuality,h=t.ItemType,p=t.FangjuType},function(t){m=t.ItemStoredType},function(t){y=t.QuickMenuType}],execute:function(){var f,I,d,b,g,q,v,k,_,M,w,L,T,S,z;s._RF.push({},"ac40e9tLzxO/ba3tFkJMy5a","QuickEquipItem",void 0);const{ccclass:E,property:C}=o;t("QuickEquipItem",(f=E("QuickEquipItem"),I=C({type:n,displayName:"图像"}),d=C({type:a,displayName:"品质"}),b=C({type:a,displayName:"名称"}),g=C({type:a,displayName:"数值"}),q=C({type:a,displayName:"耐久"}),v=C({type:l,displayName:"装备中"}),f((M=e((_=class extends r{constructor(...t){super(...t),i(this,"image",M,this),i(this,"quality",w,this),i(this,"nameLabel",L,this),i(this,"valueLabel",T,this),i(this,"endLabel",S,this),i(this,"equipped",z,this),this.lastInfo=void 0,this.imgTrans=void 0}init(){this.equipped.active=!1,this.imgTrans=this.image.node.getComponent(u),My.Event.on(My.events.elect_quick_menu,this.elect_Type,this),this.node.on("click",this.onClick_Selected,this)}async show(t,e){if(this.lastInfo!=t&&(this.lastInfo=t,null!=this.lastInfo)){switch(this.nameLabel.string=this.lastInfo.name,this.quality.color=My.Item.Instance.getQualityColor(this.lastInfo.quality),this.quality.string=c[this.lastInfo.quality],this.endLabel.string=this.lastInfo.endStr,this.lastInfo.type){case h.武器:this.image.spriteFrame=await My.Item.Instance.getItemSlot(this.lastInfo.image),this.valueLabel.string=Tool.CommonUtil.ParseAmmo(this.lastInfo.ammo),this.imgTrans.setContentSize(280,85);break;case h.防具:this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.lastInfo.image),this.valueLabel.string="防护级别："+(this.lastInfo.quality+1),this.imgTrans.setContentSize(85,85)}this.elect_Type(e),this.update_Equipment()}}hide(){this.lastInfo=null,this.node.active=!1,this.equipped.active=!1}update_Equipment(){this.lastInfo?this.equipped.active=this.lastInfo.stored==m.装备:this.equipped.active=!1}elect_Type(t){if(this.lastInfo){switch(t){case y.武器:this.node.active=this.lastInfo.type==h.武器;break;case y.头盔:this.node.active=this.lastInfo.type==h.防具&&this.lastInfo.kind==p.头盔;break;case y.护甲:this.node.active=this.lastInfo.type==h.防具&&this.lastInfo.kind==p.护具;break;case y.背包:this.node.active=this.lastInfo.type==h.防具&&this.lastInfo.kind==p.背包}this.update_Equipment()}else this.node.active=!1}onClick_Selected(){if(My.Sound.playSfx(My.sounds.ui_other_equip),this.lastInfo.stored==m.装备)My.Pack.Instance.equipItem_Unload(this.lastInfo,My.Game.scene);else switch(this.lastInfo.stored){case m.仓库:My.Whs.Instance.whsItem_Equiped(this.lastInfo,0)}My.Event.emit(My.events.update_quick_list)}}).prototype,"image",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(_.prototype,"quality",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(_.prototype,"nameLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(_.prototype,"valueLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(_.prototype,"endLabel",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(_.prototype,"equipped",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=_))||k));s._RF.pop()}}}));

System.register("chunks:///_virtual/QuickEquipPanel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./QuickEquipItem.ts","./UIDefine.ts","./PanelBase.ts"],(function(e){"use strict";var t,i,n,s,a,u,c,l,r,o,h,p,f,y,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Widget,a=e.Node,u=e.Prefab,c=e._decorator,l=e.tween,r=e.easing,o=e.instantiate},function(e){h=e.ItemType,p=e.WuqiType},function(e){f=e.QuickEquipItem},function(e){y=e.QuickMenuType},function(e){d=e.PanelBase}],execute:function(){var m,g,k,b,_,w,v,M,q;n._RF.push({},"027281zuGVJFJULZoOEj4DX","QuickEquipPanel",void 0);const{ccclass:E,property:P}=c;e("QuickEquipPanel",(m=E("QuickEquipPanel"),g=P({type:s,displayName:"适配组件"}),k=P({type:a,displayName:"内容"}),b=P({type:u,displayName:"预制"}),m((v=t((w=class extends d{constructor(...e){super(...e),i(this,"widget",v,this),i(this,"content",M,this),i(this,"prefab",q,this),this.lastMenu=y.武器,this.items=[],this.infos=[]}init(){this.node.active=!1,My.Event.on(My.events.update_quick_list,this.update_Data,this),My.Event.on(My.events.elect_quick_menu,this.elect_Type,this)}show(){this.update_Data(),this.widget.right=-100,this.node.active=!0,l(this.widget).to(.2,{right:0},{easing:r.sineOut}).start()}hide(){this.node.active=!1}update_Data(){My.Quick.quickList_RemoveAll();let e=[];My.Pack.Instance.equipItems.forEach((t=>{if(null!=t)switch(t.type){case h.武器:t.kind!=p.手枪&&t.kind!=p.近战&&e.push(t);break;case h.防具:e.push(t)}})),My.Whs.Instance.whsItems.forEach((t=>{switch(t.type){case h.武器:t.kind!=p.手枪&&t.kind!=p.近战&&e.push(t);break;case h.防具:e.push(t)}}));let t=e.length-this.items.length;if(t>0)for(let e=0;e<t;e++){let e=o(this.prefab);e.setParent(this.content);let t=e.getComponent(f);t.init(),this.items.push(t)}for(let t=0;t<this.items.length;t++)t<e.length?this.items[t].show(e[t],this.lastMenu):this.items[t].hide()}elect_Type(e){this.lastMenu=e}}).prototype,"widget",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(w.prototype,"content",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(w.prototype,"prefab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=w))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/QuickMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts","./MenuBase.ts"],(function(e){"use strict";var t,i,n,s,a,c,u,l,r,o,p,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Enum,a=e.Node,c=e.Sprite,u=e.SpriteFrame,l=e._decorator,r=e.Color},function(e){o=e.QuickMenuType,p=e.EquipmentType},function(e){h=e.MenuBase}],execute:function(){var m,y,f,g,I,M,d,k,_,b,v;n._RF.push({},"8ad64pQ/uJLz6+cRn/spGIv","QuickMenu",void 0);const{ccclass:F,property:q}=l;e("QuickMenu",(m=F("QuickMenu"),y=q({type:s(o),displayName:"类型"}),f=q({type:a,displayName:"高亮"}),g=q({type:c,displayName:"图像"}),I=q({type:u,displayName:"默认图标"}),m((k=t((d=class extends h{constructor(...e){super(...e),i(this,"type",k,this),i(this,"highlight",_,this),i(this,"image",b,this),i(this,"defaultImg",v,this),this.lastInfo=null,this.colors=[(new r).fromHEX("#9C9C9C"),(new r).fromHEX("#FFFFFF")]}init(){My.Event.on(My.events.update_equipment,this.update_Equipment,this),My.Event.on(My.events.elect_quick_menu,this.elect_Menu,this),this.node.on("click",this.onClick_Selected,this),this.highlight.active=!1}async update_Equipment(){let e=null;switch(this.type){case o.武器:e=My.Pack.Instance.equipItems[p.主武器1];break;case o.头盔:e=My.Pack.Instance.equipItems[p.头盔];break;case o.护甲:e=My.Pack.Instance.equipItems[p.防弹衣];break;case o.背包:e=My.Pack.Instance.equipItems[p.背包]}e==this.lastInfo&&null!=this.lastInfo||(this.lastInfo=e,this.lastInfo?(this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.lastInfo.image),this.image.color=this.colors[1]):(this.image.spriteFrame=this.defaultImg,this.image.color=this.colors[0]))}elect_Menu(e){this.highlight.active=e==this.type}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_quick_menu,this.type)}}).prototype,"type",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.武器}}),_=t(d.prototype,"highlight",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=t(d.prototype,"image",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(d.prototype,"defaultImg",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=d))||M));n._RF.pop()}}}));

System.register("chunks:///_virtual/QuickMgr.ts",["cc","./ViewBase.ts"],(function(t){"use strict";var e,s,i,c;return{setters:[function(t){e=t.cclegacy,s=t._decorator,i=t.Component},function(t){c=t.ViewType}],execute:function(){var a,n;e._RF.push({},"32771qAneRHQ57N+GaKiUGZ","QuickMgr",void 0);const{ccclass:o,property:h}=s;t("QuickMgr",o("QuickMgr")(((n=class t extends i{onLoad(){t.Instance=this}static quickList_Push(t){this.list.push(t)}static quickList_Remove(t){Tool.ArrayUtil.RemoveItem(this.list,t)}static quickList_RemoveAll(){this.list=[]}static quickList_Cost(){return this.cost=0,this.weights=0,this.list.forEach((t=>{t.checked&&(this.cost+=t.cost,this.weights+=t.weight)})),this.cost}static quick_Check(t){if(this.list.length>0){let t=[];this.list.forEach((e=>{t.push([e.data,e.count])})),My.Pack.Instance.pack_EnoughByCount(t)?this.cost>0?My.Event.emit(My.events.pop_quick_list):this.quick_Settle():My.Msg.showMessage(My.msgcode.背包空间不足)}else My.UI.Instance.hideView(c.整备视图)}static quick_bought(){My.Game.Instance.gameBought(this.cost)?this.quick_Settle():My.Msg.showMessage(My.Item.Instance.getCurrencyName(1)+My.msgcode.货币不足)}static quick_Settle(){My.Game.gameSign("整备完成");let t=!1;this.list.forEach((e=>{let s=e.checked?e.count:e.count-e.costCount;if(s>0)if(t||(t=!0),e.data.stack>1){let t=Tool.CommonUtil.CreateData(e.data.id,s);My.Pack.Instance.packItem_Push(t,!1),My.Whs.Instance.whsItem_Remove(e.data.id,e.count-e.costCount)}else for(let t=0;t<s;t++){let t=Tool.CommonUtil.CreateData(e.data.id,1);My.Pack.Instance.packItem_Push(t,!1),My.Whs.Instance.whsItem_Remove(e.data.id,1)}})),t&&(My.Data.savePackData(),My.Data.saveWarehouseData(),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value)),My.UI.Instance.hideView(c.整备视图)}}).Instance=null,n.list=[],n.cost=0,n.weights=0,a=n))||a);e._RF.pop()}}}));

System.register("chunks:///_virtual/QuickResItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,s,a,n,o,u,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,a=t.Sprite,n=t.Label,o=t.Node,u=t._decorator,c=t.Component,l=t.math}],execute:function(){var r,h,p,d,m,b,y,g,k,L,w,_,f,v,C,N,I;s._RF.push({},"ce6aak/8VNKF5gPpHrQWdKs","QuickResItem",void 0);const{ccclass:M,property:q}=u;t("QuickResItem",(r=M("QuickResItem"),h=q({type:a,displayName:"品质"}),p=q({type:a,displayName:"图像"}),d=q({type:n,displayName:"名称"}),m=q({type:n,displayName:"整备数量"}),b=q({type:n,displayName:"背包数量"}),y=q({type:n,displayName:"仓库数量"}),g=q({type:o,displayName:"减少按钮"}),r((w=e((L=class extends c{constructor(...t){super(...t),i(this,"quality",w,this),i(this,"image",_,this),i(this,"nameLabel",f,this),i(this,"countLabel",v,this),i(this,"packLabel",C,this),i(this,"whsLabel",N,this),i(this,"lessNode",I,this),this.data=void 0,this.cost=0,this.weight=0,this.count=0,this.costCount=0,this.whsCount=0,this.checked=!0}async init(t){this.data=t,this.lessNode.active=!1,this.whsLabel.node.parent.active=!1,this.packLabel.node.parent.active=!1,this.countLabel.node.parent.active=!1,this.nameLabel.string=t.name,this.quality.spriteFrame=My.Item.Instance.getQualitySprite(t.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image)}reset(){this.checked=!0,this.count=0,this.update_Had(),this.update_Count()}update_Had(){this.whsCount=My.Whs.getItemCount(this.data.id),this.whsLabel.string=this.whsCount.toString(),this.whsLabel.node.parent.active=this.whsCount>0;let t=My.Pack.get_PackItem_Count(this.data.id);this.packLabel.string=t.toString(),this.packLabel.node.parent.active=t>0}update_Count(){this.lessNode.active=this.count>0,this.countLabel.node.parent.active=this.count>0,this.countLabel.string="+"+this.count,this.costCount=l.clamp(this.count-this.whsCount,0,999),this.cost=this.costCount*this.data.buy,this.weight=Tool.CommonUtil.ParseProductNumber(this.count*this.data.Widget)}onClick_Add(){this.count<=0&&My.Quick.quickList_Push(this),this.count=l.clamp(this.count+1,0,990),this.update_Count(),My.Event.emit(My.events.update_quick_cost)}onClick_Less(){this.count=l.clamp(this.count-1,0,990),this.count<=0&&My.Quick.quickList_Remove(this),this.update_Count(),My.Event.emit(My.events.update_quick_cost)}}).prototype,"quality",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(L.prototype,"image",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(L.prototype,"nameLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(L.prototype,"countLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(L.prototype,"packLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(L.prototype,"whsLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(L.prototype,"lessNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=L))||k));s._RF.pop()}}}));

System.register("chunks:///_virtual/QuickResPanel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./QuickResItem.ts","./PanelBase.ts"],(function(t){"use strict";var e,i,n,s,a,o,r,l,c,u,p,h,f,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Widget,a=t.ScrollView,o=t.Prefab,r=t.Node,l=t.Label,c=t._decorator,u=t.instantiate,p=t.tween,h=t.easing},function(t){f=t.QuickResItem},function(t){d=t.PanelBase}],execute:function(){var y,b,m,g,w,k,_,P,v,C,R,Q,z,L,M;n._RF.push({},"7ff53WKXxdH3oU6skAVXu+X","QuickResPanel",void 0);const{ccclass:N,property:D}=c;t("QuickResPanel",(y=N("QuickResPanel"),b=D({type:s,displayName:"适配组件"}),m=D({type:a,displayName:"滚动视图"}),g=D({type:o,displayName:"预制"}),w=D({type:r,displayName:"药物节点"}),k=D({type:r,displayName:"投掷物节点"}),_=D({type:l,displayName:"预计花费"}),y((C=e((v=class extends d{constructor(...t){super(...t),i(this,"widget",C,this),i(this,"scroll",R,this),i(this,"prefab",Q,this),i(this,"content1",z,this),i(this,"content2",L,this),i(this,"costLabel",M,this),this.items=[]}init(){My.Item.medicalConfigs.forEach((t=>{let e=u(this.prefab);e.setParent(this.content1);let i=e.getComponent(f);i.init(t),this.items.push(i)})),My.Item.thrownConfigs.forEach((t=>{let e=u(this.prefab);e.setParent(this.content2);let i=e.getComponent(f);i.init(t),this.items.push(i)})),this.node.active=!1,My.Event.on(My.events.update_quick_cost,this.update_Cost,this)}show(){this.update_Data(),this.update_Cost(),this.widget.right=-100,this.node.active=!0,p(this.widget).to(.2,{right:0},{easing:h.sineOut}).start()}hide(){this.node.active=!1}update_Data(){My.Quick.quickList_RemoveAll(),this.scroll.scrollToTop(0,!1),this.items.forEach((t=>{t.reset()}))}update_Cost(){this.costLabel.string=Tool.CommonUtil.ParseValue(My.Quick.quickList_Cost())}}).prototype,"widget",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(v.prototype,"scroll",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=e(v.prototype,"prefab",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(v.prototype,"content1",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(v.prototype,"content2",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(v.prototype,"costLabel",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=v))||P));n._RF.pop()}}}));

System.register("chunks:///_virtual/QuickSettleItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,a,n,l,r,s,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Sprite,l=e.Label,r=e.Toggle,s=e._decorator,c=e.Component}],execute:function(){var o,u,h,p,d,g,y,m,b,f,k,L,v,C,I;a._RF.push({},"bc2f6EKsT5Ngp56lcM5kiGH","QuickSettleItem",void 0);const{ccclass:w,property:S}=s;e("QuickSettleItem",(o=w("QuickSettleItem"),u=S({type:n,displayName:"品质"}),h=S({type:n,displayName:"图像"}),p=S({type:l,displayName:"名称"}),d=S({type:l,displayName:"数量"}),g=S({type:l,displayName:"价格"}),y=S({type:r,displayName:"选择"}),o((f=t((b=class extends c{constructor(...e){super(...e),i(this,"quality",f,this),i(this,"image",k,this),i(this,"nameLabel",L,this),i(this,"countLabel",v,this),i(this,"priceLabel",C,this),i(this,"toggle",I,this),this.data=void 0}get isChecked(){return this.toggle.isChecked}set isChecked(e){this.toggle.isChecked=e,this.data&&(this.data.checked=e)}init(){this.node.active=!1}async show(e){e.costCount>0?(this.data=e,this.quality.spriteFrame=My.Item.Instance.getQualitySprite(e.data.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(e.data.image),this.nameLabel.string=e.nameLabel.string,this.countLabel.string="x"+e.costCount,this.priceLabel.string=e.cost.toString(),this.toggle.isChecked=e.checked,this.node.active=!0):(this.data=null,this.node.active=!1)}hide(){this.data=null,this.node.active=!1}onClick_Checked(){this.data.checked=!this.toggle.isChecked,My.Event.emit(My.events.update_quick_cost)}}).prototype,"quality",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(b.prototype,"image",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(b.prototype,"nameLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(b.prototype,"countLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(b.prototype,"priceLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(b.prototype,"toggle",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b))||m));a._RF.pop()}}}));

System.register("chunks:///_virtual/QuickSettlePanel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./QuickSettleItem.ts","./PanelBase.ts"],(function(t){"use strict";var e,i,s,n,l,a,c,o,r,u,h,p,d,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Prefab,l=t.Node,a=t.Toggle,c=t.Label,o=t._decorator,r=t.instantiate,u=t.tween,h=t.Vec3,p=t.easing},function(t){d=t.QuickSettleItem},function(t){f=t.PanelBase}],execute:function(){var y,k,m,b,g,_,P,v,C,Q,M;s._RF.push({},"d5513F9/6dBW5QS+sP0TsBT","QuickSettlePanel",void 0);const{ccclass:S,property:w}=o;t("QuickSettlePanel",(y=S("QuickSettlePanel"),k=w({type:n,displayName:"预制"}),m=w({type:l,displayName:"内容"}),b=w({type:a,displayName:"全选"}),g=w({type:c,displayName:"花费"}),y((v=e((P=class extends f{constructor(...t){super(...t),i(this,"prefab",v,this),i(this,"content",C,this),i(this,"checkAll",Q,this),i(this,"costLabel",M,this),this.items=[]}init(){for(let t=0;t<3;t++){let t=r(this.prefab);t.setParent(this.content);let e=t.getComponent(d);e.init(),this.items.push(e)}this.node.active=!1,My.Event.on(My.events.update_quick_cost,this.update_Cost,this)}show(){this.update_Data(),this.node.setScale(.9,.9),this.node.active=!0,u(this.node).to(.2,{scale:h.ONE},{easing:p.backOut}).start()}hide(){this.node.active=!1}update_Data(){this.checkAll.isChecked=!0;let t=My.Quick.list.length-this.items.length;if(t>0)for(let e=0;e<t;e++){let t=r(this.prefab);t.setParent(this.content);let e=t.getComponent(d);e.init(),this.items.push(e)}for(let t=0;t<this.items.length;t++)t<My.Quick.list.length?this.items[t].show(My.Quick.list[t]):this.items[t].hide()}onClick_Chekced(){this.items.forEach((t=>{t.isChecked=!this.checkAll.isChecked})),My.Event.emit(My.events.update_quick_cost)}update_Cost(){this.costLabel.string=Tool.CommonUtil.ParseValue(My.Quick.quickList_Cost())}}).prototype,"prefab",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(P.prototype,"content",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=e(P.prototype,"checkAll",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(P.prototype,"costLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=P))||_));s._RF.pop()}}}));

System.register("chunks:///_virtual/QuickView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GuideDefine.ts","./MenuBase.ts","./PanelBase.ts","./UIDefine.ts","./ViewBase.ts"],(function(i){"use strict";var e,t,s,n,c,o,u,a,h,y,l,r;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){s=i.cclegacy,n=i.UIOpacity,c=i._decorator,o=i.tween},function(i){u=i.GuideStep},function(i){a=i.MenuBase},function(i){h=i.PanelBase},function(i){y=i.QuickType},function(i){l=i.ViewBase,r=i.ViewType}],execute:function(){var p,k,d,M,_,m,f,w,g;s._RF.push({},"4b309oK0wtAHbs2CAJcHDt5","QuickView",void 0);const{ccclass:b,property:q}=c;i("QuickView",(p=b("QuickView"),k=q({type:n,displayName:"透明度组件"}),d=q({type:[h],displayName:"整备面板"}),M=q({type:[a],displayName:"菜单按钮"}),p((f=e((m=class extends l{constructor(...i){super(...i),t(this,"opacityCom",f,this),t(this,"quicks",w,this),t(this,"menus",g,this),this.using=!1,this.lastType=y.快速装备}init(){this.using=!1,this.node.active=!1,this.menus.forEach((i=>{i.init()})),this.quicks.forEach((i=>{i.init()})),My.Event.on(My.events.pop_quick_list,this.quick_List,this),My.Event.on(My.events.elect_quick_type,this.elect_QuickType,this)}show(i){this.using=!0,this.opacityCom.opacity=0,this.quicks.forEach((i=>{i.hide()})),this.quicks[this.lastType].show(),this.node.active=!0,o(this.opacityCom).to(.25,{opacity:255}).call((()=>{this.using=!1})).start()}hide(i){this.node.active=!1,i&&i()}elect_QuickType(i){My.Event.emit(My.events.elect_whs_checkbox,!1),this.lastType=i,this.show()}quick_List(){this.using=!0,this.quicks[this.lastType].hide(),this.quicks[this.quicks.length-1].show()}onClick_Hide(){this.using||this.hide()}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}onClick_Market(){My.Guide.guideCompare(u.整备引导)?(My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(My.msgcode.屏蔽)):(My.UI.Instance.hideView(r.整备视图),My.UI.Instance.hideView(r.背包视图),My.UI.Instance.hideView(r.战备视图),My.UI.Instance.showView(r.黑市视图))}onClick_Complete(){My.Sound.playSfx(My.sounds.ui_click_common),My.Quick.quick_Check(this.lastType)}onClick_Buy(){My.Sound.playSfx(My.sounds.ui_click_common),My.Quick.quick_bought()}}).prototype,"opacityCom",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(m.prototype,"quicks",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=e(m.prototype,"menus",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=m))||_));s._RF.pop()}}}));

System.register("chunks:///_virtual/RedeemItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,s,n,o,a,r,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Sprite,o=e.Label,a=e.Node,r=e._decorator,l=e.Component}],execute:function(){var c,u,h,p,y,m,g,d,f,b,I,M,v,S,N;s._RF.push({},"fca24iBvcVO/610WAu1KCCU","RedeemItem",void 0);const{ccclass:_,property:k}=r;e("RedeemItem",(c=_("RedeemItem"),u=k({type:n,displayName:"品质"}),h=k({type:n,displayName:"图像"}),p=k({type:o,displayName:"名称"}),y=k({type:n,displayName:"价格图标"}),m=k({type:o,displayName:"价格文本"}),g=k({type:a,displayName:"售罄"}),c((b=t((f=class extends l{constructor(...e){super(...e),i(this,"quality",b,this),i(this,"image",I,this),i(this,"nameLabel",M,this),i(this,"priceIcon",v,this),i(this,"priceLabel",S,this),i(this,"selloutNode",N,this),this.config=void 0,this.goods=void 0,this.count=void 0,this.price=void 0,this.currency=void 0,this.sellout=void 0}async init(e){if(this.config=e,null!=this.config){let e=Tool.StringUtil.stringToArrayNumber(this.config.content,",");e[0]>100?this.goods=My.Skin.getSkinConfig(e[0]):this.goods=My.Item.Instance.getItemConfig(e[0]),this.count=e[1],this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.goods.quality,1),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.goods.image),this.nameLabel.string=this.goods.name;let t=Tool.StringUtil.stringToArrayNumber(this.config.price,","),i=My.Item.Instance.getItemConfig(t[0]);this.currency=t[0],this.price=t[1],this.priceLabel.string=this.price.toString(),this.priceIcon.spriteFrame=await My.Item.Instance.getItemIcon(i.image),this.selloutNode.active=!1,this.updateState(),My.Event.on(My.events.elect_draw_type,this.compareType,this),My.Event.on(My.events.update_skin_redeem,this.updateState,this)}else this.node.active=!1}updateState(){null!=this.goods&&(this.sellout||(this.sellout=1==My.Skin.getSkinHas(this.goods.id),this.selloutNode.active=this.sellout))}compareType(e){null!=this.config&&(this.node.active=this.config.shop==e.id)}onClick_Redeem(){My.Sound.playSfx(My.sounds.ui_click_common),this.sellout||(My.Game.Instance.gameBought(this.price,this.currency)?(My.Event.emit(My.events.game_got,[[this.goods.id,this.count]]),My.Skin.Instance.skin_Push(this.goods.id),this.updateState()):My.Msg.showMessage(My.msgcode.兑换失败))}}).prototype,"quality",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(f.prototype,"image",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(f.prototype,"nameLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(f.prototype,"priceIcon",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(f.prototype,"priceLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(f.prototype,"selloutNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f))||d));s._RF.pop()}}}));

System.register("chunks:///_virtual/RendererItem.ts",["cc"],(function(e){"use strict";var t,r,s;return{setters:[function(e){t=e.cclegacy,r=e.Component,s=e._decorator}],execute:function(){var i;t._RF.push({},"12b75PFGIBEGrpeQzziCNEM","RendererItem",void 0);const{ccclass:n,property:d}=s;e("RendererItem",n("RendererItem")(i=class extends r{constructor(...e){super(...e),this.rendered=!1,this.actived=!1,this.disabled=!1}init(){this.node.active=!1,this.rendered=!1,this.actived=!1}rendering(e){null!=e&&(this.rendered=e),this.node.active=!this.disabled&&this.rendered&&this.actived}})||i);t._RF.pop()}}}));

System.register("chunks:///_virtual/ResultItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RendererItem.ts"],(function(e){"use strict";var t,i,a,n,r,l,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Sprite,r=e.Label,l=e._decorator},function(e){s=e.RendererItem}],execute:function(){var u,o,c,p,m,y,h,b,g,d,f;a._RF.push({},"094a7RFhO5Dp5taNTZy1gkE","ResultItem",void 0);const{ccclass:I,property:L}=l;e("ResultItem",(u=I("ResultItem"),o=L({type:n,displayName:"品质"}),c=L({type:n,displayName:"图像"}),p=L({type:r,displayName:"数量"}),m=L({type:r,displayName:"名称"}),u((b=t((h=class extends s{constructor(...e){super(...e),i(this,"quality",b,this),i(this,"image",g,this),i(this,"countLabel",d,this),i(this,"nameLabel",f,this)}async show(e){this.actived=!0,this.load_Data(e)}hide(){this.actived=!1,this.quality.spriteFrame=null,this.image.spriteFrame=null}async load_Data(e){this.quality.spriteFrame=My.Item.Instance.getQualitySprite(e.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(e.image),this.countLabel.string=e.count.toString(),this.countLabel.node.active=e.count>1,this.nameLabel.string=e.name}}).prototype,"quality",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(h.prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(h.prototype,"countLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(h.prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=h))||y));a._RF.pop()}}}));

System.register("chunks:///_virtual/ResultView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResultItem.ts","./ViewBase.ts","./ScrollRenderer.ts"],(function(e){"use strict";var t,i,n,a,s,r,l,o,u,c,y,p,h,m,d,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.UIOpacity,s=e.Label,r=e.Node,l=e.Prefab,o=e._decorator,u=e.Color,c=e.tween,y=e.Vec3,p=e.easing,h=e.instantiate},function(e){m=e.ResultItem},function(e){d=e.ViewBase},function(e){f=e.ScrollRenderer}],execute:function(){var b,g,w,M,k,v,_,I,R,S,N,L,V,z,G,P,E,x,C,B,D;n._RF.push({},"88b0auN/qxH94TIdDRiVBOC","ResultView",void 0);const{ccclass:H,property:O}=o;e("ResultView",(b=H("ResultView"),g=O({type:a,displayName:"遮罩"}),w=O({type:s,displayName:"标题"}),M=O({type:s,displayName:"价值"}),k=O({type:r,displayName:"成功"}),v=O({type:r,displayName:"失败"}),_=O({type:r,displayName:"内容"}),I=O({type:l,displayName:"预制"}),R=O({type:f,displayName:"渲染器"}),S=O({type:[r],displayName:"激励点"}),b((V=t((L=class extends d{constructor(...e){super(...e),i(this,"mask",V,this),i(this,"resultLabel",z,this),i(this,"valueLabel",G,this),i(this,"win",P,this),i(this,"fail",E,this),i(this,"content",x,this),i(this,"prefab",C,this),i(this,"renderer",B,this),i(this,"rewards",D,this),this.using=!1,this.items=[],this.colors=[(new u).fromHEX("#ff9595"),(new u).fromHEX("#95ffa6")]}init(){this.node.active=!1}show(e){this.using=!0,this.reset_State(),this.mask.opacity=0,this.content.setScale(1,0),this.node.active=!0,c(this.content).to(.5,{scale:y.ONE},{easing:p.backOut}).start(),c(this.mask).to(1,{opacity:255}).call((()=>{this.using=!1,e&&e()})).start()}hide(e){this.node.active=!1,e&&e()}reset_State(){My.Play.data.resulted?(this.resultLabel.string="撤离成功",this.resultLabel.color=this.colors[1]):(this.resultLabel.string="撤离失败",this.resultLabel.color=this.colors[0]),this.rewards.forEach((e=>{e.active=!My.Guide.guiding})),this.win.active=My.Play.data.resulted,this.fail.active=!My.Play.data.resulted,this.valueLabel.string=My.Pack.packInfo.packValueStr;let e=My.Pack.Instance.packItems,t=e.length-this.items.length;if(t>0)for(let e=0;e<t;e++){let e=h(this.prefab);this.renderer.pushItem(e);let t=e.getComponent(m);this.items.push(t),t.init()}for(let t=0;t<this.items.length;t++)t<e.length?this.items[t].show(e[t]):this.items[t].hide();this.renderer.updateRenderer()}onClick_Exit(){this.using||(My.Sound.playSfx(My.sounds.ui_click_common),My.Play.data.resulted||(My.Pack.Instance.removeAll(),My.Event.emit(My.events.update_equip),My.Event.emit(My.events.update_equipment)),My.Game.Instance.gameMenu())}onClick_WinReward(){this.using||(My.Sound.playSfx(My.sounds.ui_click_common),window.sdk?window.sdk.openVideo((function(e){"success"==e&&My.Game.Instance.gameMenu((()=>{My.Game.gameGot(5,100),My.Event.emit(My.events.game_got,[[5,100]])}))})):My.Game.Instance.gameMenu((()=>{My.Game.gameGot(5,100),My.Event.emit(My.events.game_got,[[5,100]])})))}onClick_FailReward(){this.using||(My.Sound.playSfx(My.sounds.ui_click_common),window.sdk?window.sdk.openVideo((function(e){"success"==e&&My.Game.Instance.gameMenu()})):My.Game.Instance.gameMenu())}}).prototype,"mask",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(L.prototype,"resultLabel",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(L.prototype,"valueLabel",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(L.prototype,"win",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(L.prototype,"fail",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(L.prototype,"content",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(L.prototype,"prefab",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(L.prototype,"renderer",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(L.prototype,"rewards",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),N=L))||N));n._RF.pop()}}}));

System.register("chunks:///_virtual/RewardedGift.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolItem.ts","./UIDefine.ts","./GameDefine.ts"],(function(e){"use strict";var t,i,s,n,o,a,r,c,l,d,h,u,g,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Enum,o=e.Collider2D,a=e._decorator,r=e.director,c=e.Director,l=e.Contact2DType},function(e){d=e.PoolItem},function(e){h=e.PopupType,u=e.DialogParam},function(e){g=e.RewardedGiftType,y=e.GameTags}],execute:function(){var p,m,f,C,M,w,v;s._RF.push({},"4a29aQJstZL9K2vM6V2LSXE","RewardedGift",void 0);const{ccclass:E,property:_}=a;e("RewardedGift",(p=E("RewardedGift"),m=_({type:n(g),displayName:"类型"}),f=_({type:o,displayName:"碰撞器"}),p((w=t((M=class extends d{constructor(...e){super(...e),i(this,"type",w,this),i(this,"collider",v,this),this.cd=!1,this.triggered=!1,this.rewardID=[2,5]}init(){this.cd=!1,this.triggered=!1,this.setContact(!0)}recycle(){this.unscheduleAllCallbacks(),this.setContact(!1),r.once(c.EVENT_AFTER_PHYSICS,(()=>{My.Pool.putNode(this.node)}),this)}cooling(){this.cd||(this.cd=!0,this.scheduleOnce((()=>{this.cd=!1,this.triggered&&this.setDialog()}),5))}setDialog(){if(My.Event.emit(My.events.game_paused,!0),My.Game.Instance.isPopup){let e=new u;e.desc="是否获取 "+g[this.type]+"?",e.confirmCall=()=>{this.getRewarded()},e.cancelCall=()=>{this.cooling()},My.UI.Instance.showPopup(h.激励弹窗,e)}else{r.pause();let e=this;window.sdk?window.sdk.openVideo((function(t){"success"==t?(r.resume(),e.getRewarded(),My.Event.emit(My.events.game_paused,!1)):"cancel"!=t&&"fail"!=t||(r.resume(),e.cooling(),My.Event.emit(My.events.game_paused,!1))})):(r.resume(),e.getRewarded(),My.Event.emit(My.events.game_paused,!1))}}getRewarded(){switch(this.type){case g.支援礼包:My.Event.emit(My.events.play_rewarded_ammo,!0),My.Msg.showMessage(My.msgcode.无限弹药),this.recycle();break;case g.惊喜宝箱:let e=Tool.ArrayUtil.RandomValueInArray(this.rewardID);My.Game.gameGot(e,50),My.Event.emit(My.events.game_got,[[e,50]]),this.recycle()}My.Play.Instance.poolItem_Remove(this)}setContact(e){e?(this.collider.on(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(l.END_CONTACT,this.onEndContact,this)):(this.collider.off(l.BEGIN_CONTACT,this.onBeginContact,this),this.collider.off(l.END_CONTACT,this.onEndContact,this))}onBeginContact(e,t,i){this.triggered||t.tag==y.玩家&&(this.unscheduleAllCallbacks(),this.triggered=!0,this.setDialog())}onEndContact(e,t,i){t.tag==y.玩家&&(this.triggered=!1,this.cd=!1)}}).prototype,"type",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g.支援礼包}}),v=t(M.prototype,"collider",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=M))||C));s._RF.pop()}}}));

System.register("chunks:///_virtual/RewardedItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,o,s,a,r,c,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Sprite,s=e.Label,a=e._decorator,r=e.Component,c=e.tween,d=e.easing}],execute:function(){var l,u,m,p,y,f,g;n._RF.push({},"ff565DjNXdFMbVzayD1esVO","RewardedItem",void 0);const{ccclass:h,property:w}=a;e("RewardedItem",(l=h("RewardedItem"),u=w({type:o,displayName:"图标"}),m=w({type:s,displayName:"描述"}),l((f=t((y=class extends r{constructor(...e){super(...e),i(this,"image",f,this),i(this,"descLabel",g,this),this.info=void 0}async init(e){this.info=e;let t=My.Item.Instance.getItemConfig(e.id);this.descLabel.string=t.name+" x"+e.count,this.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image)}show(e){let t=this.node.getPosition();this.node.setPosition(t.x,-500),c(this.node).delay(e).to(.2,{position:t},{easing:d.sineOut}).start()}onClick_Reward(){let e=this;My.Sound.playSfx(My.sounds.ui_click_common),window.sdk?window.sdk.openVideo((function(t){"success"==t&&(My.Game.gameGot(e.info.id,e.info.count),My.Event.emit(My.events.game_got,[[e.info.id,e.info.count]]))})):(My.Game.gameGot(e.info.id,e.info.count),My.Event.emit(My.events.game_got,[[e.info.id,e.info.count]]))}}).prototype,"image",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(y.prototype,"descLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=y))||p));n._RF.pop()}}}));

System.register("chunks:///_virtual/RewardPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PopupBase.ts"],(function(e){"use strict";var t,i,a,n,o,s,c,l,r,u,p,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.UIOpacity,o=e.Node,s=e.Label,c=e._decorator,l=e.tween,r=e.Vec3,u=e.easing,p=e.director},function(e){d=e.PopupBase}],execute:function(){var y,h,m,f,v,b,C,g,w;a._RF.push({},"634c15xJg1AtZzUX860ZNqq","RewardPopup",void 0);const{ccclass:_,property:M}=c;e("RewardPopup",(y=_("RewardPopup"),h=M({type:n,displayName:"透明度"}),m=M({type:o,displayName:"窗口"}),f=M({type:s,displayName:"描述"}),y((C=t((b=class extends d{constructor(...e){super(...e),i(this,"opacityCom",C,this),i(this,"content",g,this),i(this,"descLabel",w,this),this.data=void 0}init(){this.node.active=!1}show(e){this.data=e,this.descLabel.string=e.desc,this.node.active||(this.content.setScale(.8,.8),this.opacityCom.opacity=0,this.node.active=!0,l(this.opacityCom).to(.2,{opacity:255}).start(),l(this.content).to(.25,{scale:r.ONE},{easing:u.backOut}).call((()=>{p.pause()})).start())}hide(e){this.node.active=!1,e&&e()}onClick_Cancel(){var e;p.resume(),My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.game_paused,!1),null==(e=this.data)||null==e.cancelCall||e.cancelCall(),this.hide()}onClick_Confirm(){let e=this;var t;window.sdk?window.sdk.openVideo((function(t){var i;"success"==t&&(p.resume(),My.Event.emit(My.events.game_paused,!1),null==(i=e.data)||null==i.confirmCall||i.confirmCall(),e.hide())})):(p.resume(),My.Event.emit(My.events.game_paused,!1),null==(t=e.data)||null==t.confirmCall||t.confirmCall(),e.hide())}}).prototype,"opacityCom",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(b.prototype,"content",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(b.prototype,"descLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=b))||v));a._RF.pop()}}}));

System.register("chunks:///_virtual/Room.ts",["./rollupPluginModLoBabelHelpers.js","cc","./WithItem.ts"],(function(e){"use strict";var t,i,r,o,n,s,a,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,o=e.Node,n=e.Vec3,s=e.CCInteger,a=e._decorator},function(e){l=e.WithItem}],execute:function(){var c,u,p,y,d,m,f,h,b;r._RF.push({},"05354MlVglOjYoJ6G3yziQI","Room",void 0);const{ccclass:g,property:R}=a;e("Room",(c=g("Room"),u=R({type:o,displayName:"物资节点"}),p=R({type:[n],displayName:"房间资源点位"}),y=R({type:[s],displayName:"引导内容"}),c((f=t((m=class extends l{constructor(...e){super(...e),i(this,"resNode",f,this),i(this,"points",h,this),i(this,"guideRes",b,this)}load(){this.spawnRes()}spawnRes(){}}).prototype,"resNode",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=t(m.prototype,"points",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=t(m.prototype,"guideRes",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=m))||d));r._RF.pop()}}}));

System.register("chunks:///_virtual/ScrollRenderer.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RendererItem.ts"],(function(t){"use strict";var e,i,n,s,r,o,a,l,c,p,h,d,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.ScrollView,r=t.Node,o=t.CCInteger,a=t.Enum,l=t._decorator,c=t.Component,p=t.Size,h=t.UITransform,d=t.Vec3},function(t){u=t.RendererItem}],execute:function(){var m,y,f,g,z,S,b,w,R,v,C,N,E,T,O,L,x,I,B,P,Y,Z,_;t("ConstraintType",void 0),n._RF.push({},"9b5d1+OuyhJCoEolHSWmL00","ScrollRenderer",void 0);const{ccclass:D,property:X}=l;let F;!function(t){t[t["固定列数"]=0]="固定列数"}(F||(F=t("ConstraintType",{})));t("ScrollRenderer",(m=D("ScrollRenderer"),y=X({type:s}),f=X({type:r}),g=X({type:o,displayName:"左侧边距"}),z=X({type:o,displayName:"右侧边距"}),S=X({type:o,displayName:"顶部边距"}),b=X({type:o,displayName:"底部边距"}),w=X({type:o,displayName:"水平边距"}),R=X({type:o,displayName:"垂直边距"}),v=X({type:a(F),displayName:"约束类型"}),C=X({type:o,displayName:"行/列数"}),m((T=e((E=class extends c{constructor(...t){super(...t),i(this,"scroll",T,this),i(this,"content",O,this),i(this,"paddingLeft",L,this),i(this,"paddingRight",x,this),i(this,"paddingTop",I,this),i(this,"paddingBottom",B,this),i(this,"spacingX",P,this),i(this,"spacingY",Y,this),i(this,"constraint",Z,this),i(this,"constraintNum",_,this),this.items=[],this.itemSize=p.ZERO,this.contentSize=p.ZERO,this.viewSize=p.ZERO,this.offset=void 0}onLoad(){this.scroll.node.on(s.EventType.SCROLLING,this.scrolling,this)}delay(t){this.items.forEach((t=>{t.disabled=!0})),this.scheduleOnce((()=>{this.items.forEach((t=>{t.disabled=!1,t.rendering()}))}),t)}pushItem(t){t.setParent(this.content),this.items.push(t.getComponent(u))}updateRenderer(){if(this.items.length<=0)return;this.itemSize=this.items[0].getComponent(h).contentSize||p.ZERO,this.viewSize=this.content.parent.getComponent(h).contentSize,this.contentSize=this.content.getComponent(h).contentSize,this.offset=this.scroll.getScrollOffset().y;let t=-(this.contentSize.x-this.paddingLeft-this.paddingRight-this.itemSize.x)/2,e=-(this.paddingTop+this.itemSize.y/2),i=this.spacingX+this.itemSize.x,n=this.spacingY+this.itemSize.y,s=1,r=1;this.items.forEach((o=>{if(o.actived){let a=new d;a.x=t+(s-1)*i,a.y=e-(r-1)*n,o.node.setPosition(a),o.rendering(a.y+this.offset+this.viewSize.y>=-this.itemSize.y),s+=1,s>this.constraintNum&&(s=1,r+=1)}else o.rendering(!1)}));let o=this.paddingTop+this.paddingBottom+(r-1)*this.spacingY+this.itemSize.y*r;this.content.getComponent(h).setContentSize(this.contentSize.x,o),this.scroll.scrollToTop(0,!1)}scrolling(){this.offset=this.scroll.getScrollOffset().y,this.contentSize.y<=this.viewSize.y||this.items.forEach((t=>{t.node.position.y+this.offset>this.itemSize.y||t.node.position.y+this.offset+this.viewSize.y<-this.itemSize.y?t.rendered=!1:t.rendered=!0,t.rendering()}))}}).prototype,"scroll",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(E.prototype,"content",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(E.prototype,"paddingLeft",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),x=e(E.prototype,"paddingRight",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),I=e(E.prototype,"paddingTop",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),B=e(E.prototype,"paddingBottom",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),P=e(E.prototype,"spacingX",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Y=e(E.prototype,"spacingY",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Z=e(E.prototype,"constraint",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return F.固定列数}}),_=e(E.prototype,"constraintNum",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),N=E))||N));n._RF.pop()}}}));

System.register("chunks:///_virtual/SDKManager.ts",["cc","./ChannelID.ts","./android.ts","./vivo.ts","./oppo.ts","./test.ts","./hw.ts","./xiaomi.ts","./tt.ts","./honor.ts","./wx.ts"],(function(t){"use strict";var o,i,w,a,n,e,r,d,l,s,p,c,f,m,h;return{setters:[function(t){o=t.cclegacy,i=t.Component,w=t.find,a=t.view,n=t._decorator},function(t){e=t.default},function(t){r=t.default},function(t){d=t.default},function(t){l=t.default},function(t){s=t.default},function(t){p=t.default},function(t){c=t.default},function(t){f=t.default},function(t){m=t.default},function(t){h=t.default}],execute:function(){var T;o._RF.push({},"69f99xp3ENC5JRwydKNVdhI","SDKManager",void 0);const{ccclass:u,property:g}=n;t("SDKManager",u("SDKManager")(T=class extends i{constructor(...t){super(...t),this.adSwitch=1,this.nativeClick=20,this.nativeCd=0,this.nPlane=1,this.deeplink=!1,this.firstOpen=!0,this.scheduler=null,this.clicks=0,this.clickTime=0}static getSdkMgr(){return this}static init(){window.sdk.deeplink=!1,window.sdk.firstOpen=!0,window.sdk.clicks=0,window.sdk.clickTime=0,window.platform==e.TEST?s.init():window.platform==e.VIVO?d.init():window.platform==e.OPPO?l.init():window.platform==e.HW?p.init():window.platform==e.XIAOMI?c.init():window.platform==e.TT?f.init():window.platform==e.HONOR?m.init():window.platform==e.WX&&h.init()}static changeState(t){window.platform==e.TEST?s.changeState(t):window.platform==e.ANDROID?r.changeState(t):window.platform==e.VIVO?d.changeState(t):window.platform==e.OPPO?l.changeState(t):window.platform==e.HW?p.changeState(t):window.platform==e.XIAOMI?c.changeState(t):window.platform==e.TT?f.changeState(t):window.platform==e.HONOR?m.changeState(t):window.platform==e.WX&&h.changeState(t)}static openVideo(t){window.platform==e.TEST?s.openVideo(t):window.platform==e.ANDROID?(window.rewardSuc=()=>{t("success")},window.rewardFail=()=>{t("fail")},r.openVideo()):window.platform==e.VIVO?d.openVideo(t):window.platform==e.OPPO?l.openVideo(t):window.platform==e.HW?p.openVideo(t):window.platform==e.XIAOMI?c.openVideo(t):window.platform==e.TT?f.openVideo(t):window.platform==e.HONOR?m.openVideo(t):window.platform==e.WX&&h.openVideo(t)}static showTip(t){window.platform==e.TEST?s.showTip(t):window.platform==e.ANDROID?r.showTip(t):window.platform==e.VIVO?d.showTip(t):window.platform==e.OPPO?l.showTip(t):window.platform==e.HW?p.showTip(t):window.platform==e.XIAOMI?c.showTip(t):window.platform==e.TT?f.showTip(t):window.platform==e.HONOR?m.showTip(t):window.platform==e.WX&&h.showTip(t)}static showDialog(t,o,i){window.platform==e.TEST?s.showDialog(t,o,i):window.platform==e.ANDROID?r.showDialog(t,o,i):window.platform==e.VIVO?d.showDialog(t,o,i):window.platform==e.OPPO?l.showDialog(t,o,i):window.platform==e.HW?p.showDialog(t,o,i):window.platform==e.XIAOMI?c.showDialog(t,o,i):window.platform==e.TT?f.showDialog(t,o,i):window.platform==e.HONOR?m.showDialog(t,o,i):window.platform==e.WX&&h.showDialog(t,o,i)}static installShortcut(){window.platform==e.TEST?s.installShortcut():window.platform==e.VIVO?d.installShortcut():window.platform==e.OPPO?l.installShortcut():window.platform==e.HW?p.installShortcut():window.platform==e.XIAOMI?c.installShortcut():window.platform==e.TT?f.installShortcut():window.platform==e.HONOR&&m.installShortcut()}static share(t){window.platform==e.TT?f.share(t):window.platform==e.WX&&h.share()}static isShowShareBtn(){return window.platform==e.TT&&f.isShowShareBtn()}static recorderStop(){window.platform==e.TT&&f.recorderStop()}static recorderStart(){window.platform==e.TT&&f.recorderStart()}static checkScene(t){window.platform==e.TT&&f.checkScene(t)}static onShow(t){window.platform==e.TT&&f.onShow(t)}static onFavoriteStateChange(t){window.platform==e.TT&&f.onFavoriteStateChange(t)}static navigateToScene(){window.platform==e.TT?f.navigateToScene():console.log("跳转侧边栏")}static showFavoriteGuide(){window.platform==e.TT?f.showFavoriteGuide():console.log("收藏游戏")}static showHutui(t){window.platform==e.TT?f.showHutui(t):console.log("互推")}static showCopyright(){let t=new Date,o=t.getTime()-window.sdk.clickTime;if(window.sdk.clickTime=t.getTime(),o>=250?window.sdk.clicks=0:window.sdk.clicks+=1,window.sdk.clicks>=5){let t=w("NativeMgr/copyright");t?(t.active=!0,t.setSiblingIndex(100)):console.log("版权声明")}}static getReward(){return window.platform==e.ANDROID?r.getReward():window.platform!=e.TEST&&(window.platform==e.VIVO||window.platform==e.OPPO?1==window.sdk.adSwitch:window.platform==e.HW?1==window.sdk.nPlane:window.platform==e.XIAOMI||(window.platform==e.TT||(window.platform==e.WX||void 0)))}static getOrder(){return window.platform==e.ANDROID?r.getOrder():window.platform!=e.TEST&&(window.platform!=e.VIVO&&(window.platform!=e.OPPO&&(window.platform!=e.HW&&(window.platform!=e.XIAOMI&&(window.platform!=e.TT&&(window.platform!=e.HONOR&&(window.platform!=e.WX&&void 0)))))))}static showRewardNode(t){var o=window.sdk.isMobileLandscape()?w("NativeMgr/"+t+"_landscape"):w("NativeMgr/"+t+"_portrait");o.setSiblingIndex(100),o.active=!0}static isMobileLandscape(){const t=a.getVisibleSize();let o=!1;return t.width>t.height&&(o=!0),console.log("isMobileLandscape"+o),o}static GetDate(t,o,i,w){var a=new Date,n=Number(a.getFullYear()),e=Number(a.getMonth())+1,r=Number(a.getDate()),d=Number(a.getHours());return n<t||(n==t&&e<o||(n==t&&e==o&&r<i||n==t&&e==o&&r==i&&d<w))}static GetDate2(t,o){var i=new Date,w=(Number(i.getFullYear()),Number(i.getMonth()),Number(i.getDate()),Number(i.getHours()));return w>t&&w<o}})||T);o._RF.pop()}}}));

System.register("chunks:///_virtual/SearchItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(e){"use strict";var t,i,a,n,s,l,r,o,u,h,c,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Sprite,s=e.Label,l=e._decorator,r=e.Component,o=e.UITransform},function(e){u=e.ItemQuality,h=e.ItemType,c=e.PeijianType,d=e.FangjuType}],execute:function(){var m,p,b,y,g,v,L,f,I,S,w,k,T,_,q;a._RF.push({},"18d3aPgxMlIyr7bkVPFpOix","SearchItem",void 0);const{ccclass:z,property:M}=l;e("SearchItem",(m=z("SearchItem"),p=M({type:n,displayName:"图像"}),b=M({type:s,displayName:"品质"}),y=M({type:s,displayName:"名称"}),g=M({type:s,displayName:"耐久"}),v=M({type:s,displayName:"数值"}),L=M({type:s,displayName:"价格"}),m((S=t((I=class extends r{constructor(...e){super(...e),i(this,"image",S,this),i(this,"quality",w,this),i(this,"nameLabel",k,this),i(this,"endLabel",T,this),i(this,"valueLabel",_,this),i(this,"priceLabel",q,this),this.data=null,this.imgTrans=void 0}init(){this.node.active=!1,this.imgTrans=this.image.getComponent(o),this.node.on("click",this.onClick_Selected,this)}show(e){this.data=e,null!=e?(this.quality.color=My.Item.Instance.getQualityColor(e.quality),this.quality.string=u[e.quality],this.priceLabel.string=(e.sell*e.count).toString(),this.nameLabel.string=e.name,this.setImage(),this.setValue(),this.setEnd(),this.node.active=!0):this.node.active=!1}hide(){this.node.active=!1}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_other_stored),My.Play.Instance.boxItem_Pickup(this.data)}async setImage(){this.data.type==h.武器?(this.image.spriteFrame=await My.Item.Instance.getItemSlot(this.data.image),this.imgTrans.width=300):(this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.data.image),this.imgTrans.width=100)}setEnd(){this.data.type==h.子弹?(this.endLabel.string="数量："+this.data.count,this.endLabel.node.active=!0):null!=this.data.end?(this.endLabel.string="耐久："+this.data.endStr,this.endLabel.node.active=!0):this.endLabel.node.active=!1}setValue(){switch(this.valueLabel.node.active=!1,this.data.type){case h.武器:this.valueLabel.string=Tool.CommonUtil.ParseAmmo(this.data.ammo),this.valueLabel.node.active=!0;break;case h.防具:this.data.kind==d.背包?this.valueLabel.string="负重增加："+this.data.fuzhong:this.valueLabel.string="防御等级："+(this.data.quality+1),this.valueLabel.node.active=!0;break;case h.配件:this.valueLabel.string=c[this.data.kind],this.valueLabel.node.active=!0;break;case h.子弹:this.valueLabel.string="穿透等级："+(this.data.quality+1),this.valueLabel.node.active=!0}}}).prototype,"image",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(I.prototype,"quality",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(I.prototype,"nameLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(I.prototype,"endLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(I.prototype,"valueLabel",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(I.prototype,"priceLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=I))||f));a._RF.pop()}}}));

System.register("chunks:///_virtual/SearchPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SearchItem.ts","./GuideDefine.ts","./PopupBase.ts"],(function(e){"use strict";var t,i,s,n,a,o,l,r,h,u,p,c,m,d,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Prefab,a=e.Node,o=e.Sprite,l=e.Label,r=e._decorator,h=e.tween,u=e.Vec3,p=e.easing,c=e.instantiate},function(e){m=e.SearchItem},function(e){d=e.GuideStep},function(e){b=e.PopupBase}],execute:function(){var y,g,f,x,v,N,w,_,S,M,P,B,C,L,z,k,I;s._RF.push({},"57713t91QNM5ZKhJwbIQ8S1","SearchPopup",void 0);const{ccclass:D,property:F}=r;e("SearchPopup",(y=D("SearchPopup"),g=F({type:n,displayName:"预制"}),f=F({type:a,displayName:"内容"}),x=F({type:o,displayName:"图像"}),v=F({type:l,displayName:"名称"}),N=F({type:a,displayName:"物资"}),w=F({type:a,displayName:"计时"}),_=F({type:l,displayName:"时间"}),y((P=t((M=class extends b{constructor(...e){super(...e),i(this,"prefab",P,this),i(this,"content",B,this),i(this,"image",C,this),i(this,"nameLabel",L,this),i(this,"itemNode",z,this),i(this,"timeNode",k,this),i(this,"timeLabel",I,this),this.using=!1,this.box=null,this.items=[],this.timerTween=null}init(){this.using=!1,this.node.active=!1,My.Event.on(My.events.pop_hide_all,this.hide,this),My.Event.on(My.events.pop_search,this.SearchBox,this),My.Event.on(My.events.update_boxes,this.updateBox,this)}show(e){}hide(){My.Guide.guideCheck(d.对局引导),null!=this.timerTween&&this.timerTween.stop(),this.node.active=!1}show_Countdown(e){My.Sound.playSfx(My.sounds.player_sousuo);let t={value:0};t.value=e,this.timeLabel.string=e+"s",this.timeNode.active=!0,this.node.active=!0,this.timerTween=h(t).to(e,{value:0},{onUpdate:(e,i)=>{this.timeLabel.string=t.value.toFixed(2)+"s"}}).call((()=>{this.timeNode.active=!1,this.box.open(),this.updateBox()})).start()}show_Items(){this.image.spriteFrame=this.box.image.spriteFrame,this.nameLabel.string=this.box.getName();for(let e=0;e<this.items.length;e++)e<this.box.data.items.length?this.items[e].show(this.box.data.items[e]):this.items[e].hide();this.itemNode.active||(this.itemNode.setScale(.9,.9),this.itemNode.active=!0,this.node.active=!0,this.using=!0,h(this.itemNode).to(.25,{scale:u.ONE},{easing:p.backOut}).call((()=>{My.Guide.guideCheck(d.对局引导),this.using=!1})).start())}SearchBox(e){e?(this.box=My.Play.Instance.boxItem,this.timeNode.active=!1,this.itemNode.active=!1,null!=this.box&&(My.Guide.guideCompare(d.对局引导)&&this.box.open(),this.box.state?this.updateBox():this.show_Countdown(My.Setting.getData("player_open_box_time")))):this.hide()}updateBox(){let e=this.box.data.items.length-this.items.length;if(e>0)for(let t=0;t<e;t++){let e=c(this.prefab),t=e.getComponent(m);e.setParent(this.content),t.init(),this.items.push(t)}this.show_Items()}onClick_Hide(){this.using||this.hide()}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}}).prototype,"prefab",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(M.prototype,"content",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(M.prototype,"image",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(M.prototype,"nameLabel",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(M.prototype,"itemNode",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(M.prototype,"timeNode",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(M.prototype,"timeLabel",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=M))||S));s._RF.pop()}}}));

System.register("chunks:///_virtual/SellPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SliderEx.ts","./ItemInfo.ts","./PopupBase.ts"],(function(t){"use strict";var e,i,n,s,o,l,a,c,r,u,h,p,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,o=t.Label,l=t._decorator,a=t.tween,c=t.Vec3,r=t.easing,u=t.math},function(t){h=t.SliderEx},function(t){p=t.ItemStoredType},function(t){d=t.PopupBase}],execute:function(){var m,f,y,b,S,_,C,g,k,x,M;n._RF.push({},"8b5d5nBXblN0blMAfSMjoEc","SellPopup",void 0);const{ccclass:P,property:v}=l;t("SellPopup",(m=P("SellPopup"),f=v({type:s,displayName:"内容"}),y=v({type:h,displayName:"滑动条"}),b=v({type:o,displayName:"数值"}),S=v({type:o,displayName:"价格"}),m((g=e((C=class extends d{constructor(...t){super(...t),i(this,"content",g,this),i(this,"slider",k,this),i(this,"valueLabel",x,this),i(this,"priceLabel",M,this),this.info=null,this.count=0,this.price=0,this.minCount=1,this.maxCount=1}init(){this.node.active=!1}show(t){this.info=t,this.reset_State(),this.content.setScale(.9,.9),this.node.active=!0,a(this.content).to(.2,{scale:c.ONE},{easing:r.backOut}).start()}hide(){this.node.active=!1}reset_State(){this.count=1,this.minCount=1,this.maxCount=this.info.count,this.slider.progress=this.count/this.maxCount,this.update_Counter()}update_Progress(t){this.count=u.clamp(Math.round(this.maxCount*t),this.minCount,this.maxCount),this.update_Counter()}update_Counter(){this.price=this.count*this.info.sell,this.priceLabel.string=this.price.toString(),this.valueLabel.string=this.count+"/"+this.maxCount}onClick_Cancel(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}onClick_Sell(){switch(My.Sound.playSfx(My.sounds.ui_click_common),this.info.stored){case p.仓库:My.Whs.Instance.whsItem_Sell(this.info,this.count,this.price);break;case p.背包:My.Pack.Instance.packItem_Sell(this.info,this.count,this.price);break;case p.加密箱:My.Pack.Instance.lockItem_Sell(this.info,this.count,this.price)}this.hide()}}).prototype,"content",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(C.prototype,"slider",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(C.prototype,"valueLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(C.prototype,"priceLabel",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=C))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/SkinBar.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,n,a,o,s,l,r;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Sprite,o=t.Label,s=t.Node,l=t._decorator,r=t.Component}],execute:function(){var u,c,p,h,y,d,f,m,S,b,k,B,_;n._RF.push({},"e9cc5NR/UJLSZKXACKt0Jf9","SkinBar",void 0);const{ccclass:g,property:v}=l;t("SkinBar",(u=g("SkinBar"),c=v({type:a,displayName:"品质"}),p=v({type:o,displayName:"名称"}),h=v({type:s,displayName:"启用"}),y=v({type:s,displayName:"卸下"}),d=v({type:s,displayName:"获取方式"}),u((S=i((m=class extends r{constructor(...t){super(...t),e(this,"quality",S,this),e(this,"nameLabel",b,this),e(this,"equipBtn",k,this),e(this,"unloadBtn",B,this),e(this,"getBtn",_,this),this.info=void 0}init(){My.Event.on(My.events.elect_skin_item,this.skinSelect,this)}skinSelect(t){this.info=t,null!=this.info?(this.quality.color=My.Item.Instance.getQualityColor(this.info.quality),this.nameLabel.string=this.info.name,this.node.active=!0,this.updateState()):this.node.active=!1}updateState(){this.info.has?(this.getBtn.active=!1,this.equipBtn.active=!this.info.loaded,this.unloadBtn.active=this.info.loaded):(this.getBtn.active=!0,this.equipBtn.active=!1,this.unloadBtn.active=!1)}onClick_Get(){My.Sound.playSfx(My.sounds.ui_click_common),My.Msg.showMessage(this.info.desc)}onClick_Load(){My.Sound.playSfx(My.sounds.ui_click_common),My.Skin.Instance.skin_load(this.info),this.updateState()}onClick_Unload(){My.Sound.playSfx(My.sounds.ui_click_common),My.Skin.Instance.skin_unload(this.info),this.updateState()}}).prototype,"quality",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(m.prototype,"nameLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(m.prototype,"equipBtn",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(m.prototype,"unloadBtn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=i(m.prototype,"getBtn",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=m))||f));n._RF.pop()}}}));

System.register("chunks:///_virtual/SkinInfo.ts",["cc"],(function(t){"use strict";var e,i,n;return{setters:[function(t){e=t.cclegacy,i=t.Component,n=t._decorator}],execute:function(){var r;e._RF.push({},"416d6KhHblGHJ8xNF7pq7wK","SkinInfo",void 0);const{ccclass:s,property:o}=n;t("SkinInfo",s("SkinInfo")(r=class extends i{constructor(...t){super(...t),this.config=void 0,this.data=void 0,this.dotEvent=void 0}get id(){return this.config.id}get name(){return this.config.name}get quality(){return this.config.quality}get type(){return this.config.type}get image(){return this.config.image}get fit(){return this.config.fit}get desc(){return this.config.get_way}get disintegration(){return this.config.price}get has(){return null!=this.data}get lv(){return null!=this.data?this.data.lv:0}get lvStr(){return null!=this.data?this.data.lv+"/6":"0/6"}get loaded(){return 1==this.data.loaded}set loaded(t){this.data.loaded=t?1:0}update_Dot(t){this.dotEvent&&this.dotEvent(t)}})||r);e._RF.pop()}}}));

System.register("chunks:///_virtual/SkinItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(t){"use strict";var e,i,n,s,o,a,r,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Sprite,o=t.Node,a=t._decorator,r=t.Component},function(t){c=t.SkinFilterType}],execute:function(){var l,h,p,y,u,m,f,d,v,g,_;n._RF.push({},"afa370Ja/BBPZon5FTInHEv","SkinItem",void 0);const{ccclass:b,property:k}=a;t("SkinItem",(l=b("SkinItem"),h=k({type:s,displayName:"品质"}),p=k({type:s,displayName:"图像"}),y=k({type:o,displayName:"高亮"}),u=k({type:o,displayName:"角标"}),l((d=e((f=class extends r{constructor(...t){super(...t),i(this,"quality",d,this),i(this,"image",v,this),i(this,"highlight",g,this),i(this,"dot",_,this),this.info=void 0}async init(t){this.info=t,this.dot.active=!1,this.highlight.active=!1,this.info.dotEvent=t=>{this.dot.active=t},this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.info.image),this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.info.quality),My.Event.on(My.events.elect_skin_item,this.compareItem,this),My.Event.on(My.events.elect_skin_type,this.compareType,this),My.Event.on(My.events.elect_skin_filter,this.compareType,this)}compareItem(t){this.node.active&&(this.highlight.active=t==this.info)}compareType(t,e){switch(e){case c.全部:this.node.active=this.info.type==t;break;case c.已拥有:this.node.active=this.info.type==t&&this.info.has;break;case c.未拥有:this.node.active=this.info.type==t&&!this.info.has}}update_Dot(t){this.dot.active=t}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_skin_item,this.info),this.dot.active&&My.Skin.Instance.dot_Remove(this.info)}}).prototype,"quality",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(f.prototype,"image",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(f.prototype,"highlight",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(f.prototype,"dot",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=f))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/SkinMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(e){"use strict";var t,i,n,o,s,c,l,r;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Enum,s=e.Toggle,c=e._decorator,l=e.Component},function(e){r=e.SkinType}],execute:function(){var u,p,y,a,d,m,h;n._RF.push({},"e5335zZm89Dso36UCXYe69E","SkinMenu",void 0);const{ccclass:k,property:S}=c;e("SkinMenu",(u=k("SkinMenu"),p=S({type:o(r),displayName:"菜单类型"}),y=S({type:s,displayName:"选项"}),u((m=t((d=class extends l{constructor(...e){super(...e),i(this,"type",m,this),i(this,"toggleCom",h,this)}onLoad(){this.node.on(s.EventType.CLICK,this.onClick_Selected,this)}isChecked(){this.toggleCom.isChecked=!0,My.Skin.setTypeSelect(this.type)}onClick_Selected(e){My.Sound.playSfx(My.sounds.ui_click_common),e.isChecked||(My.Skin.setTypeSelect(this.type),My.Event.emit(My.events.elect_skin_item,null))}}).prototype,"type",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return r.枪械皮肤}}),h=t(d.prototype,"toggleCom",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),a=d))||a));n._RF.pop()}}}));

System.register("chunks:///_virtual/SkinMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./CommonDefine.ts","./SkinInfo.ts"],(function(t){"use strict";var e,i,s,n,a,o,M,d,y,r,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.JsonAsset,a=t._decorator,o=t.Component},function(t){M=t.SkinType,d=t.SkinFilterType,y=t.SkinParam},function(t){r=t.SkinConfig},function(t){l=t.SkinInfo}],execute:function(){var c,h,p,k,_,g;s._RF.push({},"37c1dP7o9dIhpvUb7mEzMjV","SkinMgr",void 0);const{ccclass:m,property:u}=a;t("SkinMgr",(c=m("SkinMgr"),h=u({type:n,displayName:"皮肤配置文件"}),c(((g=class t extends o{constructor(...t){super(...t),i(this,"skinJson",_,this),this.dataMap=new Map,this.skinMap=new Map,this.configMap=new Map,this.loadedMap=new Map,this.dotMap=new Map}onLoad(){t.Instance=this,this.load_Data(),My.Event.on(My.events.game_load,this.skin_Load,this)}load_Data(){if(My.Data.skinData.skins.forEach((t=>{this.dataMap.set(t.id,t)})),null==this.skinJson)return;let t=this.skinJson.json.config,e=[];t.forEach((t=>{let i=new l,s=new r;s.id=t.id,s.name=t.name,s.image=t.image,s.quality=t.quality,s.type=t.type,s.fit=t.fit,s.get_way=t.get_way,s.price=t.price,this.configMap.set(t.id,s),i.config=s,this.dataMap.has(t.id)&&(i.data=this.dataMap.get(t.id),i.loaded&&this.loadedMap.set(i.fit,i)),e.push(i)})),this.dotMap.clear(),this.sortSkins(e)}skin_Load(){My.Event.emit(My.events.dot_skin,!1),My.Event.emit(My.events.dot_skin_t1,!1),My.Event.emit(My.events.dot_skin_t2,!1),My.Event.emit(My.events.dot_skin_t3,!1),My.Event.off(My.events.game_load,this.skin_Load,this)}skin_Push(t){if(this.skinMap.has(t)){let e=this.skinMap.get(t);if(e.has){let i="获得重复皮肤，已转化为",s=Tool.StringUtil.stringToArrayNumber(e.disintegration,",");return s.length>1?(i+=s[1]+"个"+My.Item.Instance.getCurrencyName(s[0]),My.Game.gameGot(s[0],s[1]),My.Event.emit(My.events.game_got,[[s[0],s[1]]],i),!1):(My.Game.gameErr("皮肤ID："+t+"分解数据格式错误"),!0)}{let t=new y;return t.id=e.id,t.loaded=0,t.lv=1,e.data=t,this.dot_Push(e),My.Data.skinData.skins.push(t),My.Data.saveSkinData(),!0}}return My.Game.gameErr("未找到ID："+t+"皮肤数据"),!0}skin_load(t){let e=null;switch(t.loaded=!0,t.type){case M.角色皮肤:e=My.Skin.getPlayerSkin(),My.Data.skinData.skin=t.id;break;case M.枪械皮肤:case M.近战皮肤:e=this.loadedMap.get(t.fit),this.loadedMap.set(t.fit,t),My.Event.emit(My.events.update_skin_weapon)}e&&(e.loaded=!1),My.Data.saveSkinData(),My.Msg.showMessage(My.msgcode.皮肤启用)}skin_unload(t){switch(t.loaded=!1,t.type){case M.角色皮肤:My.Data.skinData.skin=null;break;case M.枪械皮肤:case M.近战皮肤:this.loadedMap.delete(t.fit),My.Event.emit(My.events.update_skin_weapon)}My.Data.saveSkinData(),My.Msg.showMessage(My.msgcode.皮肤卸下)}dot_Push(t){this.dotMap.has(t.id)||(t.update_Dot(!0),this.dotMap.set(t.id,t),this.dot_Check())}dot_Remove(t){this.dotMap.has(t.id)&&(t.update_Dot(!1),this.dotMap.delete(t.id),this.dot_Check())}dot_Check(){if(this.dotMap.size>0){let t=!1,e=!1,i=!1;this.dotMap.forEach((s=>{switch(s.type){case M.枪械皮肤:t=!0;break;case M.近战皮肤:e=!0;break;case M.角色皮肤:i=!0}})),My.Event.emit(My.events.dot_skin,!0),My.Event.emit(My.events.dot_skin_t1,t),My.Event.emit(My.events.dot_skin_t2,e),My.Event.emit(My.events.dot_skin_t3,i)}else My.Event.emit(My.events.dot_skin,!1),My.Event.emit(My.events.dot_skin_t1,!1),My.Event.emit(My.events.dot_skin_t2,!1),My.Event.emit(My.events.dot_skin_t3,!1)}static getSkinHas(t){return this.Instance.skinMap.has(t)?this.Instance.skinMap.get(t).has?1:0:(My.Game.gameErr("未找到ID："+t+"皮肤数据"),0)}static getSkinConfig(t){return this.Instance.configMap.has(t)?this.Instance.configMap.get(t):(My.Game.gameErr("未找到ID："+t+"皮肤数据"),null)}static getPlayerSkin(){let t=My.Data.skinData.skin;return null!=t&&this.Instance.skinMap.has(t)?this.Instance.skinMap.get(t):null}static getSkinImage(t){let e=this.Instance.loadedMap.get(t);return null!=e?e.image:t}static setTypeSelect(t){this.skinType=t,My.Event.emit(My.events.elect_skin_type,this.skinType,this.filterType)}static setFilterSelect(t){this.filterType=t,My.Event.emit(My.events.elect_skin_item,null),My.Event.emit(My.events.elect_skin_filter,this.skinType,this.filterType)}sortSkins(t){t.sort(((t,e)=>t.id-e.id)).forEach((t=>{this.skinMap.set(t.id,t)}))}}).Instance=null,g.skinType=M.枪械皮肤,g.filterType=d.全部,_=e((k=g).prototype,"skinJson",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=k))||p));s._RF.pop()}}}));

System.register("chunks:///_virtual/SkinShow.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(e){"use strict";var t,i,n,a,l,s,r,o,c,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Node,l=e.Toggle,s=e.Sprite,r=e.Label,o=e._decorator,c=e.Component},function(e){u=e.SkinType}],execute:function(){var p,y,h,v,g,m,b,d,f,k,S,w,M;n._RF.push({},"06198XLHAhI8bunMBzeU+qG","SkinShow",void 0);const{ccclass:N,property:_}=o;e("SkinShow",(p=N("SkinShow"),y=_({type:a,displayName:"展示内容"}),h=_({type:l,displayName:"默认研究选择"}),v=_({type:s,displayName:"皮肤图像"}),g=_({type:a,displayName:"研究进度"}),m=_({type:r,displayName:"当前进度"}),p((f=t((d=class extends c{constructor(...e){super(...e),i(this,"content",f,this),i(this,"defaultToggle",k,this),i(this,"image",S,this),i(this,"lvNode",w,this),i(this,"lvLabel",M,this)}init(){My.Event.on(My.events.elect_skin_type,this.compareType,this),My.Event.on(My.events.elect_skin_item,this.skinSelect,this)}compareType(e){let t=!0;switch(e){case u.枪械皮肤:case u.近战皮肤:t=!0;break;case u.角色皮肤:t=!1}this.node.active=t}async skinSelect(e){if(null!=e){switch(this.image.spriteFrame=await My.Item.Instance.getItemSkin(e.image),e.type){case u.角色皮肤:this.lvNode.active=!1,My.Event.emit(My.events.update_skin_player,e);break;case u.枪械皮肤:this.defaultToggle.isChecked=!0,this.lvLabel.string=e.lvStr,this.lvNode.active=!0;break;case u.近战皮肤:this.lvNode.active=!1}this.content.active=!0}else this.content.active=!1}onClick_SkinLv(e,t){t>1&&My.Msg.showMessage(My.msgcode.不可用)}}).prototype,"content",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(d.prototype,"defaultToggle",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(d.prototype,"image",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(d.prototype,"lvNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(d.prototype,"lvLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=d))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/SkinView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./SkinBar.ts","./SkinItem.ts","./SkinShow.ts","./SkinMenu.ts","./ViewBase.ts","./DotItem.ts","./AnchorItem.ts"],(function(e){"use strict";var t,i,n,s,a,o,r,l,c,u,h,y,p,f,d,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Prefab,a=e.Node,o=e._decorator,r=e.instantiate},function(e){l=e.SkinFilterType},function(e){c=e.SkinBar},function(e){u=e.SkinItem},function(e){h=e.SkinShow},function(e){y=e.SkinMenu},function(e){p=e.ViewBase,f=e.ViewType},function(e){d=e.DotItem},function(e){m=e.AnchorItem}],execute:function(){var M,b,k,w,S,_,v,I,g,E,z,D,V,F,N,x,C;n._RF.push({},"3dbc1GbWzdPOZfuC680x4M8","SkinView",void 0);const{ccclass:B,property:P}=o;e("SkinView",(M=B("SkinView"),b=P({type:s,displayName:"预制"}),k=P({type:a,displayName:"内容"}),w=P({type:y,displayName:"默认菜单选项"}),S=P({type:h,displayName:"展示"}),_=P({type:c,displayName:"底栏"}),v=P({type:[m],displayName:"锚点动画"}),I=P({type:[d],displayName:"角标"}),M((z=t((E=class extends p{constructor(...e){super(...e),i(this,"prefab",z,this),i(this,"content",D,this),i(this,"defaultMenu",V,this),i(this,"showed",F,this),i(this,"bar",N,this),i(this,"anchors",x,this),i(this,"dots",C,this),this.skinItems=[],this.lastFilter=-2}init(){this.node.active=!1,this.bar.init(),this.showed.init(),this.dots.forEach((e=>{e.init()})),My.Event.on(My.events.game_load,this.loadData,this)}show(e){My.Sound.playSfx(My.sounds.ui_view_whs),this.resetState(),e&&e()}hide(e){My.Event.emit(My.events.update_skin_show,!1),My.Event.emit(My.events.update_skin_player,null),My.Event.emit(My.events.player_show_pos),this.node.active=!1,e&&e()}loadData(){this.prefab&&(My.Event.off(My.events.game_load,this.loadData,this),My.Skin.Instance.skinMap.forEach(((e,t,i)=>{let n=r(this.prefab);n.setParent(this.content);let s=n.getComponent(u);this.skinItems.push(s),s.init(e)})))}resetState(){My.Event.emit(My.events.player_show_pos,-250),My.Event.emit(My.events.update_skin_show,!0),My.Event.emit(My.events.elect_skin_item,null),this.defaultMenu.isChecked(),this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()}))}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(f.主页视图),My.UI.Instance.hideView(f.个性视图)}onClick_Filter(e,t){switch(My.Sound.playSfx(My.sounds.ui_click_common),parseInt(t)){case-1:My.Skin.setFilterSelect(l.全部);break;case 0:My.Skin.setFilterSelect(l.未拥有);break;case 1:My.Skin.setFilterSelect(l.已拥有)}}}).prototype,"prefab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(E.prototype,"content",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(E.prototype,"defaultMenu",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(E.prototype,"showed",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(E.prototype,"bar",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(E.prototype,"anchors",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=t(E.prototype,"dots",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=E))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/SliderEx.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,r,i,o,n,s,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.Sprite,n=e.EventHandler,s=e._decorator,u=e.Slider}],execute:function(){var p,c,a,l,h,d,_;i._RF.push({},"6f070bPd6pEfKpNo+SEskWa","SliderEx",void 0);const{ccclass:f,property:g}=s;e("SliderEx",(p=f("SliderEx"),c=g({type:o}),a=g({type:n}),p((d=t((h=class extends u{constructor(...e){super(...e),r(this,"barSprite",d,this),r(this,"touchEvent",_,this)}__preload(){super.__preload()}_onTouchBegan(e){super._onTouchBegan(e),this.touchEvent&&this.touchEvent.emit([this.progress.toFixed(2)])}_onTouchMoved(e){super._onTouchMoved(e),this.barSprite.fillRange=this.progress,this.touchEvent&&this.touchEvent.emit([this.progress.toFixed(2)])}_updateHandlePosition(){super._updateHandlePosition(),this.barSprite.fillRange=this.progress}}).prototype,"barSprite",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(h.prototype,"touchEvent",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new n}}),l=h))||l));i._RF.pop()}}}));

System.register("chunks:///_virtual/SpaceAudio.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){"use strict";var t,e,l,u,o,a,s,n;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){l=i.cclegacy,u=i.AudioSource,o=i.CCInteger,a=i._decorator,s=i.Component,n=i.math}],execute:function(){var r,c,d,p,h,y,f;l._RF.push({},"b4698P7u2NBM4REOjiClRtU","SpaceAudio",void 0);const{ccclass:g,property:S}=a;i("SpaceAudio",(r=g("SpaceAudio"),c=S({type:u,displayName:"播放器"}),d=S({type:o,displayName:"范围"}),r((y=t((h=class extends s{constructor(...i){super(...i),e(this,"audio",y,this),e(this,"radius",f,this)}async play(i,t=1){if(null==this.audio)return;if(null!=i){let t=await My.Sound.getAudioClip(i);if(null==t)return;this.audio.clip=t}let e=this.getScale()*t;e<=0||(this.audio.volume=e,this.audio.loop=!1,this.audio.play())}async playLong(i,t=1){if(null==this.audio)return;if(null!=i){let t=await My.Sound.getAudioClip(i);if(null==t)return;this.audio.clip=t}let e=this.getScale()*t;e<=0||(this.audio.volume=e,this.audio.loop=!0,this.audio.play(),this.schedule((()=>{let i=this.getScale()*t;this.audio.volume=i}),1))}stop(){null!=this.audio&&(this.audio&&this.audio.stop(),this.unscheduleAllCallbacks())}async playSfx(i,t=1){if(null==this.audio)return;let e=await My.Sound.getAudioClip(i);if(null==e)return;let l=this.getScale()*t;l<=0||this.audio.playOneShot(e,l)}getScale(){let i=this.node.worldPosition.subtract(My.Player.worldPosition).length();return n.clamp(1-(i-400)/this.radius,0,1)}}).prototype,"audio",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(h.prototype,"radius",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 800}}),p=h))||p));l._RF.pop()}}}));

System.register("chunks:///_virtual/StoreItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts"],(function(t){"use strict";var e,i,n,o,s,r,a,l,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Sprite,s=t.Label,r=t._decorator,a=t.Component,l=t.Color},function(t){c=t.PopupType}],execute:function(){var u,p,h,y,m,d,g,b,I,f,S,M,v,_,L;n._RF.push({},"3756dnFCVdJxIFCUm77cQDM","StoreItem",void 0);const{ccclass:w,property:T}=r;t("StoreItem",(u=w("StoreItem"),p=T({type:o,displayName:"品质"}),h=T({type:o,displayName:"图像"}),y=T({type:s,displayName:"限购"}),m=T({type:s,displayName:"名称"}),d=T({type:o,displayName:"价格图标"}),g=T({type:s,displayName:"价格文本"}),u((f=e((I=class extends a{constructor(...t){super(...t),i(this,"quality",f,this),i(this,"image",S,this),i(this,"countLabel",M,this),i(this,"nameLabel",v,this),i(this,"priceIcon",_,this),i(this,"priceLabel",L,this),this.data=void 0,this.goods=void 0,this.count=void 0,this.price=void 0,this.currency=void 0,this.sellout=void 0,this.color_1=new l(255,255,255,200),this.color_2=new l(255,0,0,200)}async init(t){if(this.data=t,null!=t){let t=Tool.StringUtil.stringToArrayNumber(this.data.content,",");t[0]>100?this.goods=My.Skin.getSkinConfig(t[0]):this.goods=My.Item.Instance.getItemConfig(t[0]),this.count=t[1],this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.goods.quality,1),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.goods.image),this.nameLabel.string=this.goods.name;let e=Tool.StringUtil.stringToArrayNumber(this.data.price,","),i=My.Item.Instance.getItemConfig(e[0]);this.currency=e[0],this.price=e[1],this.priceLabel.string=this.price.toString(),this.priceIcon.spriteFrame=await My.Item.Instance.getItemIcon(i.image),this.compareType(),this.updateState(),My.Event.on(My.events.elect_goods_type,this.compareType,this),My.Event.on(My.events.update_skin_store,this.updateState,this)}else this.node.active=!1}updateState(){if(null==this.data)return;if(this.sellout)return;let t=1==this.data.reset?"每日限购: ":"限购数量",e=My.Store.get_GoodsHas(this);this.sellout=e>=this.data.limit,this.countLabel.string=t+e+"/"+this.data.limit,this.countLabel.color=this.sellout?this.color_2:this.color_1}compareType(t){null!=this.data&&(null==t&&(t=My.Store.goodsType),this.node.active=this.data.type==t)}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showPopup(c.商店兑换弹窗,this)}}).prototype,"quality",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(I.prototype,"image",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(I.prototype,"countLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(I.prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(I.prototype,"priceIcon",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(I.prototype,"priceLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=I))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/StoreMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts"],(function(e){"use strict";var t,o,i,n,r,c,s,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Enum,r=e.Toggle,c=e._decorator,s=e.Component},function(e){l=e.GoodsType}],execute:function(){var u,p,a,y,d,h,g;i._RF.push({},"7dcc21nxINKqrC2ZJTI4a4Z","StoreMenu",void 0);const{ccclass:m,property:S}=c;e("StoreMenu",(u=m("StoreMenu"),p=S({type:n(l),displayName:"类型"}),a=S({type:r,displayName:"选项"}),u((h=t((d=class extends s{constructor(...e){super(...e),o(this,"type",h,this),o(this,"toggleCom",g,this)}onLoad(){this.node.on(r.EventType.CLICK,this.onClick_Selected,this)}isChecked(){this.toggleCom.isChecked=!0,My.Store.set_TypeSelect(this.type)}onClick_Selected(e){My.Sound.playSfx(My.sounds.ui_click_common),e.isChecked||My.Store.set_TypeSelect(this.type)}}).prototype,"type",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l.装扮皮肤}}),g=t(d.prototype,"toggleCom",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=d))||y));i._RF.pop()}}}));

System.register("chunks:///_virtual/StoreMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CommonDefine.ts","./ItemDefine.ts"],(function(e){"use strict";var t,o,s,i,n,r,a,l,g,p,c,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.initializerDefineProperty},function(e){s=e.cclegacy,i=e.JsonAsset,n=e._decorator,r=e.Component,a=e.Color,l=e.SpriteFrame},function(e){g=e.GoodsConfig,p=e.StoreConfig,c=e.StoreInfo},function(e){y=e.GoodsType}],execute:function(){var M,d,h,m,u,_,f,S;s._RF.push({},"78e50/t0FRBWqnIjCz6p9Am","StoreMgr",void 0);const{ccclass:w,property:T}=n;e("StoreMgr",(M=w("StoreMgr"),d=T({type:i,displayName:"商品配置文件"}),h=T({type:i,displayName:"商店配置文件"}),M(((S=class e extends r{constructor(...e){super(...e),o(this,"goodsJson",_,this),o(this,"storeJson",f,this),this.goodsMap=new Map,this.storeMap=new Map,this.poolMap=new Map,this.weightMap1=new Map,this.weightMap2=new Map,this.imageMap=new Map}onLoad(){e.Instance=this,this.load_Goods(),this.load_Store()}load_Goods(){if(null==this.goodsJson)return;this.goodsJson.json.config.forEach((e=>{let t=new g;t.id=e.id,t.name=e.name,t.shop=e.shop,t.type=e.type,t.content=e.content,t.limit=e.limit,t.reset=e.reset,t.price=e.price,this.goodsMap.set(e.id,t)}))}load_Store(){if(null==this.storeJson)return;this.storeJson.json.config.forEach((e=>{let t=new p;t.id=e.id,t.name=e.name,t.color=e.color,t.currency=e.currency,t.bg_img=e.bg_img,t.enter_img=e.enter_img,t.content=e.content,t.pool=e.pool,this.storeMap.set(e.id,t);let o=new c;o.id=t.id,o.name=t.name,o.color=(new a).fromHEX(t.color),o.currency=t.currency,o.bg_img=t.bg_img,o.enter_img=t.enter_img,o.content=Tool.StringUtil.stringToArrayNumber(t.content,";"),o.pool=Tool.StringUtil.stringToArray(t.pool,";"),My.Store.stores.push(o);let s=[],i=[],n=[];o.pool.forEach((e=>{let t=Tool.StringUtil.stringToArrayNumber(e,",");n.push(t[2]),i.push(t[1]),s.push(t[0])})),this.weightMap2.set(e.id,n),this.weightMap1.set(e.id,i),this.poolMap.set(e.id,s)}));let e=(new Date).toLocaleDateString();My.Data.storeData.date!=e&&(My.Data.storeData.date=e,My.Data.storeData.goods=[],My.Data.saveStoreData())}store_Draw(e){let t=this.poolMap.get(My.Store.storeType),o=e?this.weightMap2.get(My.Store.storeType):this.weightMap1.get(My.Store.storeType),s=Tool.MathUtil.randomByWeight(o),i=My.Store.get_GoodsConfig(t[s]),n=Tool.StringUtil.stringToArrayNumber(i.content,",");n[0]<100?(My.Game.gameGot(n[0],n[1]),My.Event.emit(My.events.game_got,[[n[0],n[1]]])):My.Skin.Instance.skin_Push(n[0])&&(My.Event.emit(My.events.update_skin_redeem),My.Event.emit(My.events.game_got,[[n[0],n[1]]]))}async getImage(e){if(!this.imageMap.has(e)){let t=e+"/spriteFrame",o=await My.Res.loadBundleRes("image",t,l);if(null==o)return My.Game.gameErr("商店主题背景 "+e+"为null"),null;this.imageMap.set(e,o)}return this.imageMap.get(e)}static get_GoodsConfig(e){return this.Instance.goodsMap.has(e)?this.Instance.goodsMap.get(e):(My.Game.gameErr("未找到商品["+e+"]数据"),null)}static get_StoreConfig(e){return this.Instance.storeMap.has(e)?this.Instance.storeMap.get(e):(My.Game.gameErr("未找到商店["+e+"]数据"),null)}static get_GoodsHas(e){switch(e.data.type){case y.装扮皮肤:case y.武器皮肤:return My.Skin.getSkinHas(e.goods.id);case y.特殊道具:return Tool.ArrayUtil.FilteredItem(My.Data.storeData.goods,e.goods.id)}}static set_TypeSelect(e){this.goodsType=e,My.Event.emit(My.events.elect_goods_type,this.goodsType)}static set_StoreSelect(e){this.storeType=e.id,My.Event.emit(My.events.elect_draw_item,null),My.Event.emit(My.events.elect_draw_type,e)}}).Instance=null,S.stores=[],S.storeType=void 0,S.goodsType=y.装扮皮肤,_=t((u=S).prototype,"goodsJson",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(u.prototype,"storeJson",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=u))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/StorePopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./PopupBase.ts"],(function(t){"use strict";var e,i,a,s,o,n,c,r,l,u,d,p,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,s=t.UIOpacity,o=t.Node,n=t.Sprite,c=t.Label,r=t._decorator,l=t.tween,u=t.Vec3,d=t.easing},function(t){p=t.GoodsType},function(t){y=t.PopupBase}],execute:function(){var h,m,g,M,f,b,k,S,_,v,w;a._RF.push({},"d1767gvfhlNd7tnPSEyZfcz","StorePopup",void 0);const{ccclass:P,property:D}=r;t("StorePopup",(h=P("StorePopup"),m=D({type:s,displayName:"遮罩"}),g=D({type:o,displayName:"窗口"}),M=D({type:n,displayName:"图像"}),f=D({type:c,displayName:"描述"}),h((S=e((k=class extends y{constructor(...t){super(...t),i(this,"mask",S,this),i(this,"content",_,this),i(this,"image",v,this),i(this,"descLabel",w,this),this.data=null}init(){this.node.active=!1}async show(t){this.data=t,this.descLabel.string="是否兑换 "+t.goods.name+" ?",this.image.spriteFrame=await My.Item.Instance.getItemIcon(t.goods.image),this.content.setScale(.8,.8),this.mask.opacity=0,this.node.active=!0,l(this.mask).to(.2,{opacity:255}).start(),l(this.content).to(.25,{scale:u.ONE},{easing:d.backOut}).start()}hide(){this.node.active=!1}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),this.hide()}onClick_Redeem(){if(My.Sound.playSfx(My.sounds.ui_click_common),this.data.sellout)My.Msg.showMessage(My.msgcode.限购);else if(My.Game.Instance.gameBought(this.data.price,this.data.currency)){switch(this.data.data.type){case p.装扮皮肤:case p.武器皮肤:My.Skin.Instance.skin_Push(this.data.goods.id);break;case p.特殊道具:My.Game.gameGot(this.data.goods.id,this.data.count),My.Data.storeData.goods.push(this.data.goods.id),My.Data.saveStoreData()}My.Event.emit(My.events.update_skin_store),My.Event.emit(My.events.game_got,[[this.data.goods.id,this.data.count]])}else My.Msg.showMessage(My.msgcode.兑换失败);this.hide()}}).prototype,"mask",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(k.prototype,"content",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(k.prototype,"image",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(k.prototype,"descLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=k))||b));a._RF.pop()}}}));

System.register("chunks:///_virtual/StoreView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./StoreItem.ts","./StoreMenu.ts","./AnchorItem.ts","./ViewBase.ts"],(function(e){"use strict";var t,i,n,o,r,s,a,l,c,u,p,y,h,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Prefab,r=e.Node,s=e.ScrollView,a=e._decorator,l=e.instantiate},function(e){c=e.GoodsType},function(e){u=e.StoreItem},function(e){p=e.StoreMenu},function(e){y=e.AnchorItem},function(e){h=e.ViewBase,f=e.ViewType}],execute:function(){var d,m,b,M,g,S,w,v,_,T,V,I,D;n._RF.push({},"e4ba8TDpmlL6ZUj+saxslnh","StoreView",void 0);const{ccclass:E,property:N}=a;e("StoreView",(d=E("StoreView"),m=N({type:o,displayName:"预制"}),b=N({type:r,displayName:"内容"}),M=N({type:s,displayName:"滚动视图"}),g=N({type:p,displayName:"默认选项"}),S=N({type:[y],displayName:"锚点动画"}),d((_=t((v=class extends h{constructor(...e){super(...e),i(this,"prefab",_,this),i(this,"content",T,this),i(this,"scroll",V,this),i(this,"defaultMenu",I,this),i(this,"anchors",D,this)}init(){this.node.active=!1,My.Event.on(My.events.game_load,this.loadData,this),My.Event.on(My.events.elect_goods_type,this.updateType,this)}show(e){this.resetState(),e&&e()}hide(e){this.node.active=!1,e&&e()}loadData(){if(!this.prefab)return;My.Event.off(My.events.game_load,this.loadData,this);let e=My.Store.get_StoreConfig(0);if(null!=e){Tool.StringUtil.stringToArrayNumber(e.content,";").forEach((e=>{let t=l(this.prefab);t.setParent(this.content),t.getComponent(u).init(My.Store.get_GoodsConfig(e))}))}}updateType(e){this.scroll.scrollToTop(.1)}resetState(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),this.defaultMenu.isChecked(),My.Store.goodsType=c.装扮皮肤,My.Event.emit(My.events.elect_goods_type,My.Store.goodsType)}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(f.主页视图),My.UI.Instance.hideView(f.商店视图)}}).prototype,"prefab",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(v.prototype,"content",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(v.prototype,"scroll",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(v.prototype,"defaultMenu",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(v.prototype,"anchors",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=v))||w));n._RF.pop()}}}));

System.register("chunks:///_virtual/StringUtil.ts",["cc"],(function(t){"use strict";var r,s,e;return{setters:[function(t){r=t.cclegacy,s=t.v3,e=t.Vec3}],execute:function(){r._RF.push({},"add97amOtJLmoRFfh3vqCs/","StringUtil",void 0);t("StringUtil",class{static IsEmpty(t){return null==t||null==t||0==t.length}static isString(t){return"string"==typeof t==1}static stringToArray(t,r){return this.IsEmpty(t)?[]:(this.isString(t)||(t=t.toString()),t.split(r))}static stringToArrayNumber(t,r){let s=[];return this.IsEmpty(t)||(this.isString(t)||(t=t.toString()),t.split(r).forEach((t=>{s.push(parseFloat(t))}))),s}static stringToArrayVec3(t){let r=[];return this.IsEmpty(t)||(this.isString(t)||(t=t.toString()),t.split(";").forEach((t=>{let e=t.split(",");0==e.length?r.push(s(0,0,0)):1==e.length?r.push(s(parseInt(e[0]),0,0)):r.push(s(parseInt(e[0]),parseInt(e[1]),0))}))),r}static stringToVec3(t){let r=e.ZERO;if(this.IsEmpty(t))return r;this.isString(t)||(t=t.toString());let i=t.split(",");return 1==i.length?r.x=parseInt(i[0]):r=s(parseInt(i[0]),parseInt(i[1]),0),r}static stringSub(t,r,s=!1){const e=/[^\x00-\xff]/g;if(t.replace(e,"mm").length<=r)return t;for(let i=Math.floor(r/2);i<t.length;i++)if(t.substr(0,i).replace(e,"mm").length>=r)return s?t.substr(0,i)+"...":t.substr(0,i);return t}static stringRemoveNumber(t){return t.replace(/[0-9]/g,"")}static stringExtractNumber(t){return parseInt(t.replace(/[^0-9]+/g,""))}}),r._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyInfo.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,a,r,n,l,s,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e.Sprite,n=e.Label,l=e.Node,s=e._decorator,u=e.Component}],execute:function(){var o,c,p,y,m,b,h,d,f,g,v,S,I;a._RF.push({},"98d9dDHU5FHPqTAwSqamkW1","SurveyInfo",void 0);const{ccclass:L,property:w}=s;e("SurveyInfo",(o=L("SurveyInfo"),c=w({type:r,displayName:"奖励图像"}),p=w({type:r,displayName:"奖励品质"}),y=w({type:n,displayName:"奖励名称"}),m=w({type:n,displayName:"勘察进度"}),b=w({type:[l],displayName:"进度值"}),o((f=t((d=class extends u{constructor(...e){super(...e),i(this,"image",f,this),i(this,"quality",g,this),i(this,"nameLabel",v,this),i(this,"countLabel",S,this),i(this,"dots",I,this),this.lastCount=-1}async updated(){let e=My.Data.surveyData.surveys;if(e==this.lastCount)return;let t=My.Survey.get_SurveyReward(e);null==t?(this.nameLabel.string="",this.image.spriteFrame=null,this.quality.spriteFrame=null):(this.nameLabel.string=t.data.name,this.image.spriteFrame=await My.Item.Instance.getItemIcon(t.data.image),this.quality.spriteFrame=My.Item.Instance.getQualitySprite(t.data.quality)),this.countLabel.string=e.toString();for(let t=0;t<this.dots.length;t++)this.dots[t].active=t<e}}).prototype,"image",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(d.prototype,"quality",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(d.prototype,"nameLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(d.prototype,"countLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(d.prototype,"dots",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),h=d))||h));a._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CommonDefine.ts","./SurveyView.ts"],(function(e){"use strict";var r,t,s,a,n,u,i,c;return{setters:[function(e){r=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){s=e.cclegacy,a=e.JsonAsset,n=e._decorator,u=e.Component},function(e){i=e.SurveyConfig},function(e){c=e.SurveyType}],execute:function(){var o,y,v,l,p,_;s._RF.push({},"d27c2dinVROmaySMhlDA7Mo","SurveyMgr",void 0);const{ccclass:d,property:h}=n;e("SurveyMgr",(o=d("SurveyMgr"),y=h({type:a,displayName:"勘察配置文件"}),o(((_=class e extends u{constructor(...e){super(...e),t(this,"surveyJson",p,this),this.surveyMap=new Map,this.rewardMap=new Map}onLoad(){e.Instance=this,this.load_Data()}load_Data(){this.surveyMap.clear(),this.surveyJson.json.config.forEach((e=>{let r=new i;r.id=e.id,r.rewards=e.rewards,r.gen_survey_cost=e.gen_survey_cost,r.gen_survey_rate=e.gen_survey_rate,r.normal_survey_rate=e.normal_survey_rate,r.video_survey_rate=e.video_survey_rate,this.surveyMap.set(e.id,r)}))}static get_SurveyConfig(e){return this.Instance.surveyMap.has(e)?this.Instance.surveyMap.get(e):(My.Game.gameErr("勘察配置ID："+e+"数据为null"),null)}static get_SurveyReward(e){return this.Instance.rewardMap.has(e)?this.Instance.rewardMap.get(e):null}static set_SurveyReward(e){this.Instance.rewardMap.set(e.id,e)}static get_SurveyResult(e,r){let t=0;if(this.Instance.surveyMap.has(e))switch(r){case c.普通勘察:t=this.Instance.surveyMap.get(e).normal_survey_rate;break;case c.情报勘察:t=this.Instance.surveyMap.get(e).gen_survey_rate;break;case c.激励勘察:t=this.Instance.surveyMap.get(e).video_survey_rate}else My.Game.gameErr("勘察配置ID："+e+"数据为null");return Math.random()<=t}}).Instance=null,p=r((l=_).prototype,"surveyJson",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=l))||v));s._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SurveyReward.ts","./PopupBase.ts"],(function(t){"use strict";var e,i,s,n,r,a,o,u,c,p,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.UIOpacity,r=t.Node,a=t._decorator,o=t.tween,u=t.Vec3,c=t.easing},function(t){p=t.SurveyReward},function(t){l=t.PopupBase}],execute:function(){var h,y,d,m,f,g,v,b,w;s._RF.push({},"80382F8VVtPLaLT0YOC/RWT","SurveyPopup",void 0);const{ccclass:S,property:k}=a;t("SurveyPopup",(h=S("SurveyPopup"),y=k({type:n,displayName:"遮罩"}),d=k({type:r,displayName:"内容"}),m=k({type:[p],displayName:"奖励"}),h((v=e((g=class extends l{constructor(...t){super(...t),i(this,"mask",v,this),i(this,"content",b,this),i(this,"rewardItems",w,this),this.using=!1}init(){this.using=!1,this.mask.opacity=0,this.node.active=!1,this.rewardItems.forEach((t=>{t.init()}))}show(t){this.using||(this.content.setScale(.8,.8),this.mask.opacity=0,this.node.active=!0,this.using=!0,o(this.mask).to(.2,{opacity:255}).start(),o(this.content).to(.25,{scale:u.ONE},{easing:c.backOut}).call((()=>{this.using=!1})).start())}hide(){this.node.active=!1}onClick_Close(){this.using||(My.Sound.playSfx(My.sounds.ui_click_common),this.hide())}}).prototype,"mask",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(g.prototype,"content",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(g.prototype,"rewardItems",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=g))||f));s._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyRadar.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var a,e,i,n,s,c,r,o;return{setters:[function(t){a=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.UIOpacity,s=t._decorator,c=t.Component,r=t.Animation,o=t.tween}],execute:function(){var l,u,p,y,h,d,S;i._RF.push({},"39c15U6JvFPe5DkgcJIcunw","SurveyRadar",void 0);const{ccclass:m,property:f}=s;t("SurveyRadar",(l=m("SurveyRadar"),u=f({type:n,displayName:"绿色扫描"}),p=f({type:n,displayName:"黄色扫描"}),l((d=a((h=class extends c{constructor(...t){super(...t),e(this,"scanG",d,this),e(this,"scanY",S,this),this.animState=null}init(){null==this.animState&&(this.animState=this.node.getComponent(r).getState("Radar_Scan")),this.scanY.opacity=0,this.scanG.opacity=50,this.animState.speed=1}scanning(t,a,e){t?(a&&a(),this.scheduleOnce((()=>{e&&e()}),.1)):(this.animState.speed=2,My.Sound.playSfx(My.sounds.ui_other_scan),o(this.scanG).to(.5,{opacity:255}).call((()=>{o(this.scanY).to(.5,{opacity:255}).call((()=>{a&&a()})).start()})).start(),o(this.scanG).delay(1.5).to(.5,{opacity:50}).call((()=>{this.animState.speed=1,e&&e()})).start(),o(this.scanY).delay(1.5).to(.5,{opacity:0}).start())}}).prototype,"scanG",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=a(h.prototype,"scanY",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=h))||y));i._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyReward.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,r,a,n,s,o,l,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,a=t.CCInteger,n=t.Sprite,s=t.Label,o=t.Node,l=t._decorator,u=t.Component}],execute:function(){var c,y,p,h,d,m,g,b,f,v,w,S,I,L,z;r._RF.push({},"a6448nyDz9HH46smd9LSmTK","SurveyReward",void 0);const{ccclass:N,property:R}=l;t("SurveyReward",(c=N("SurveyReward"),y=R({type:a,displayName:"ID"}),p=R({type:n,displayName:"图像"}),h=R({type:n,displayName:"品质"}),d=R({type:s,displayName:"名称"}),m=R({type:s,displayName:"数量"}),g=R({type:[o],displayName:"进度"}),c((v=e((f=class extends u{constructor(...t){super(...t),i(this,"id",v,this),i(this,"image",w,this),i(this,"quality",S,this),i(this,"nameLabel",I,this),i(this,"countLabel",L,this),i(this,"dots",z,this),this.config=void 0,this.data=void 0,this.count=void 0}async init(){if(this.config=My.Survey.get_SurveyConfig(this.id),null!=this.config){let t=Tool.StringUtil.stringToArrayNumber(this.config.rewards,",");this.count=t[1],this.data=My.Item.Instance.getItemConfig(t[0]),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.data.image),this.quality.color=My.Item.Instance.getQualityColor(this.data.quality),this.countLabel.string=this.count.toString(),this.nameLabel.string=this.data.name;for(let t=0;t<this.dots.length;t++)this.dots[t].active=t<this.id;My.Survey.set_SurveyReward(this)}else this.node.active=!1}}).prototype,"id",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),w=e(f.prototype,"image",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(f.prototype,"quality",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(f.prototype,"nameLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(f.prototype,"countLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(f.prototype,"dots",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=f))||b));r._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SurveyRadar.ts","./ViewBase.ts","./SurveyInfo.ts","./UIDefine.ts","./AnchorItem.ts"],(function(e){"use strict";var t,i,s,a,r,n,o,y,u,l,c,h,v,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,a=e.Animation,r=e.Toggle,n=e.Node,o=e.Label,y=e._decorator},function(e){u=e.SurveyRadar},function(e){l=e.ViewBase,c=e.ViewType},function(e){h=e.SurveyInfo},function(e){v=e.PopupType},function(e){d=e.AnchorItem}],execute:function(){var p,M,g,m,f,D,S,b,_,w,k,N,V,G,T,C,I,z,A,E,U,x,R,L,P;e("SurveyType",void 0),s._RF.push({},"e295eZ91AFKl4YbSYurOT8z","SurveyView",void 0);const{ccclass:F,property:B}=y;let H;!function(e){e[e["普通勘察"]=0]="普通勘察",e[e["情报勘察"]=1]="情报勘察",e[e["激励勘察"]=2]="激励勘察"}(H||(H=e("SurveyType",{})));e("SurveyView",(p=F("SurveyView"),M=B({type:u,displayName:"勘察雷达"}),g=B({type:h,displayName:"勘察进度"}),m=B({type:a,displayName:"勘察结果"}),f=B({type:r,displayName:"跳过动画"}),D=B({type:n,displayName:"领取奖励"}),S=B({type:n,displayName:"激励勘察"}),b=B({type:n,displayName:"普通勘察"}),_=B({type:n,displayName:"情报勘察"}),w=B({type:[n],displayName:"勘察详情"}),k=B({type:[o],displayName:"勘察消耗"}),N=B({type:[d],displayName:"锚点动画"}),p((T=t((G=class extends l{constructor(...e){super(...e),i(this,"radar",T,this),i(this,"info",C,this),i(this,"resultAni",I,this),i(this,"skipToggle",z,this),i(this,"received",A,this),i(this,"surveyVideo",E,this),i(this,"surveyNor",U,this),i(this,"surveyGen",x,this),i(this,"descNodes",R,this),i(this,"costLabels",L,this),i(this,"anchors",P,this),this.surveyEnd=!1,this.costMoney=0,this.costGen=0}init(){this.node.active=!1,this.skipToggle.isChecked=!1}show(e){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),this.resultAni.play("Survey_Hide"),this.radar.init(),this.update_Data(),this.update_Cost(),e&&e()}hide(e){this.node.active=!1,e&&e()}survey(e,t){let i=t;this.skipToggle.isChecked||this.anchors.forEach((e=>{e.hide()})),i||(i=My.Survey.get_SurveyResult(My.Data.surveyData.surveys,e)),this.radar.scanning(this.skipToggle.isChecked,(()=>{if(i)My.Game.gameSign(H[e]+" 成功!"),this.resultAni.play("Survey_Suc"),My.Data.surveyData.surveys+=1,My.Data.surveyData.surveyGen=0,My.Data.surveyData.surveyVideo=0,this.update_Cost();else switch(My.Game.gameSign(H[e]+" 失败!"),this.resultAni.play("Survey_Fail"),e){case H.普通勘察:this.surveyEnd=!0;break;case H.情报勘察:case H.激励勘察:}this.update_Data(),My.Data.saveSurveyData()}),(()=>{this.skipToggle.isChecked||this.anchors.forEach((e=>{e.show()}))}))}update_Data(){this.info.updated();let e=My.Data.surveyData.surveys;this.surveyEnd?(this.received.active=!0,this.surveyGen.active=!1,this.surveyNor.active=!1,this.surveyVideo.active=!1):(this.received.active=e>=7,this.surveyGen.active=e<7,this.surveyVideo.active=e<7,this.surveyNor.active=e>0&&e<7);for(let t=0;t<this.descNodes.length;t++)this.descNodes[t].active=0==t?e>0&&!this.surveyEnd:!this.surveyEnd}update_Cost(){let e=My.Survey.get_SurveyConfig(My.Data.surveyData.surveys);if(null==e)this.costGen=0,this.costMoney=2e6;else{let t=Tool.StringUtil.stringToArray(e.gen_survey_cost,";");t.length>1?(this.costGen=Tool.StringUtil.stringToArrayNumber(t[0],",")[1],this.costMoney=Tool.StringUtil.stringToArrayNumber(t[1],",")[1]):t.length>0?(this.costGen=0,this.costMoney=Tool.StringUtil.stringToArrayNumber(t[0],",")[1]):(this.costGen=0,this.costMoney=2e6)}this.costLabels[0].string=this.costMoney.toString(),this.costLabels[1].string=this.costGen.toString(),this.costLabels[1].node.parent.active=this.costGen>0}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(c.主页视图),My.UI.Instance.hideView(c.勘察视图)}onClick_Store(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(c.商店视图),My.UI.Instance.hideView(c.勘察视图)}onClick_Rewards(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showPopup(v.勘察奖励弹窗)}onClick_Receive(){let e=My.Survey.get_SurveyReward(My.Data.surveyData.surveys);null!=e&&(My.Game.gameGot(e.data.id,e.count),My.Event.emit(My.events.game_got,[[e.data.id,e.count]])),My.Data.surveyData.surveys=0,My.Data.surveyData.surveyGen=0,My.Data.surveyData.surveyVideo=0,My.Data.saveSurveyData(),this.surveyEnd=!1,this.update_Data(),this.update_Cost()}onClick_SurveyNor(){My.Sound.playSfx(My.sounds.ui_click_common),this.survey(H.普通勘察,!1)}onClick_SurveyGen(){My.Sound.playSfx(My.sounds.ui_click_common),My.Data.playerData.money>=this.costMoney&&My.Data.playerData.gen>=this.costGen?(My.Data.playerData.money-=this.costMoney,My.Data.playerData.gen-=this.costGen,My.Data.savePlayerData(),My.Data.surveyData.surveyGen+=1,this.survey(H.情报勘察,My.Data.surveyData.surveyGen>=4),My.Event.emit(My.events.update_money),My.Event.emit(My.events.update_gen)):My.Msg.showMessage(My.msgcode.勘察条件不足)}onClick_SurveyVideo(){let e=this;My.Sound.playSfx(My.sounds.ui_click_common),window.sdk?window.sdk.openVideo((function(t){"success"==t&&(My.Data.surveyData.surveyVideo+=1,e.survey(H.激励勘察,My.Data.surveyData.surveyVideo>=2))})):(My.Data.surveyData.surveyVideo+=1,this.survey(H.激励勘察,My.Data.surveyData.surveyVideo>=2))}}).prototype,"radar",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(G.prototype,"info",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(G.prototype,"resultAni",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(G.prototype,"skipToggle",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(G.prototype,"received",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(G.prototype,"surveyVideo",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(G.prototype,"surveyNor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(G.prototype,"surveyGen",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(G.prototype,"descNodes",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=t(G.prototype,"costLabels",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),P=t(G.prototype,"anchors",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=G))||V));s._RF.pop()}}}));

System.register("chunks:///_virtual/SyncPosition.ts",["cc"],(function(t){"use strict";var o,i,s;return{setters:[function(t){o=t.cclegacy,i=t.Component,s=t._decorator}],execute:function(){var n;o._RF.push({},"08780Ag0eFFZpYjk/D9W8Vs","SyncPosition",void 0);const{ccclass:c,property:e}=s;t("SyncPosition",c("SyncPosition")(n=class extends i{constructor(...t){super(...t),this.origin=void 0}onLoad(){this.origin=this.node.getPosition()}update(){this.node.setPosition(this.origin)}})||n);o._RF.pop()}}}));

System.register("chunks:///_virtual/TagConfig.ts",["cc"],(function(i){"use strict";var t,c;return{setters:[function(i){t=i.cclegacy,c=i._decorator}],execute:function(){var s;t._RF.push({},"b98fej7OclA2bDIPgHcYWjA","TagConfig",void 0);const{ccclass:o,property:e}=c;i("TagConfig",o("TagConfig")(s=class{constructor(){this.id=void 0,this.name=void 0,this.kind=void 0,this.weight=void 0,this.desc=void 0}})||s);t._RF.pop()}}}));

System.register("chunks:///_virtual/TagItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,a,i,s,n,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Label,n=t._decorator,o=t.Component}],execute:function(){var r,c,l,g,h;i._RF.push({},"ddf55AaFz5DKYrov1RGMdmH","TagItem",void 0);const{ccclass:p,property:d}=n;t("TagItem",(r=p("TagItem"),c=d({type:[s],displayName:"标签对象"}),r((h=e((g=class extends o{constructor(...t){super(...t),a(this,"tags",h,this),this.tagData=void 0}show(t){if(this.tagData=t,t.length>0){for(let e=0;e<this.tags.length;e++)e<t.length?(this.tags[e].string=t[e].name,this.tags[e].node.parent.active=!0):this.tags[e].node.parent.active=!1;this.node.active=!0}else this.node.active=!1}hide(){this.node.active=!1}onClick_Tag(t,e){My.Msg.showDetail(this.tagData[e],this.tags[e].node.worldPosition)}}).prototype,"tags",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=g))||l));i._RF.pop()}}}));

System.register("chunks:///_virtual/TakeTurns.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,s,e,n,r,o,a,h,p,l,g;return{setters:[function(t){i=t.applyDecoratedDescriptor,s=t.initializerDefineProperty},function(t){e=t.cclegacy,n=t.CCInteger,r=t.Sprite,o=t.SpriteFrame,a=t._decorator,h=t.Component,p=t.tween,l=t.easing,g=t.Vec3}],execute:function(){var u,c,m,d,_,x,y,N,b;e._RF.push({},"51a19An6GBFKrxe5abu3NA+","TakeTurns",void 0);const{ccclass:L,property:f}=a;t("TakeTurns",(u=L("TakeTurns"),c=f({type:n,displayName:"间隔时间"}),m=f({type:[r],displayName:"展示图"}),d=f({type:[o],displayName:"图集"}),u((y=i((x=class extends h{constructor(...t){super(...t),s(this,"interval",y,this),s(this,"imgs",N,this),s(this,"sprites",b,this),this.pos_Last=void 0,this.pos_Next=void 0,this.img_Last=void 0,this.img_Next=void 0,this.index=0}onLoad(){this.index=0,this.imgs.length>1&&(this.img_Last=this.imgs[0],this.img_Next=this.imgs[1],this.pos_Next=this.img_Next.node.getPosition(),this.pos_Last=this.img_Last.node.getPosition(),this.pos_Last.y=-this.pos_Next.y,this.sprites.length>0&&(this.img_Last.spriteFrame=this.sprites[this.index],this.index+=1))}onEnable(){this.showing()}onDisable(){this.unscheduleAllCallbacks()}showing(){this.sprites.length<1||this.schedule((()=>{this.turning()}),this.interval)}turning(){this.img_Next.spriteFrame=this.sprites[this.index],p(this.img_Last.node).to(.6,{position:this.pos_Last},{easing:l.sineOut}).start(),p(this.img_Next.node).to(.6,{position:g.ZERO},{easing:l.sineOut}).call((()=>{this.img_Last.node.setPosition(this.pos_Next);let t=this.img_Last;this.img_Last=this.img_Next,this.img_Next=t,this.index<this.sprites.length-1?this.index+=1:this.index=0})).start()}}).prototype,"interval",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 3}}),N=i(x.prototype,"imgs",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=i(x.prototype,"sprites",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=x))||_));e._RF.pop()}}}));

System.register("chunks:///_virtual/test.ts",["cc"],(function(t){"use strict";var o,e;return{setters:[function(t){o=t.find,e=t.cclegacy}],execute:function(){e._RF.push({},"33795uexRxO561aU+0b1hon","test",void 0);t("default",class{static init(){console.log("test init"),window.sdk.deeplink=!1}static changeState(t){console.log("test changeState:"+t);o("NativeMgr/NativeAd").getComponent("NativeAd")}static openVideo(t){console.log("test openVideo"),this.offSound(),t("success"),this.onSound()}static showTip(t){console.log("showTip:"+t)}static showDialog(t,o,e){console.log("showDialog:"+t)}static installShortcut(){console.log("installShortcut")}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/ThrownEffect.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./PoolItem.ts","./HealthItem.ts","./GameDefine.ts","./SpaceAudio.ts"],(function(t){"use strict";var i,e,o,s,n,a,r,l,c,h,u,d,p,f,y;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Enum,n=t.Animation,a=t.Node,r=t.CircleCollider2D,l=t._decorator,c=t.Contact2DType},function(t){h=t.TouzhiType},function(t){u=t.PoolItem},function(t){d=t.HealthItem},function(t){p=t.GameTags,f=t.DamageType},function(t){y=t.SpaceAudio}],execute:function(){var m,g,C,N,T,b,E,I,P,_,D,v,w;o._RF.push({},"1189ftrXPxJ+Khs1DmSCDeY","ThrownEffect",void 0);const{ccclass:A,property:B}=l;t("ThrownEffect",(m=A("ThrownEffect"),g=B({type:s(h),displayName:"类型"}),C=B({type:n,displayName:"动画"}),N=B({type:y,displayName:"音效"}),T=B({type:a,displayName:"效果"}),b=B({type:r,displayName:"触发器"}),m((P=i((I=class extends u{constructor(...t){super(...t),e(this,"type",P,this),e(this,"animation",_,this),e(this,"audio",D,this),e(this,"effectNode",v,this),e(this,"collider",w,this),this.info=void 0,this.radius=void 0,this.targets=[]}init(t){switch(this.info=t,this.type){case h.碎片手榴弹:this.targets=[],this.radius=t.config.radius/100,this.effectNode.setScale(this.radius,this.radius),this.collider.radius=t.config.radius,this.collider.on(c.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(c.END_CONTACT,this.onEndContact,this),this.collider.apply(),this.animation&&this.animation.play();break;case h.燃烧瓶:this.targets=[],this.radius=t.config.radius/100,this.effectNode.setScale(this.radius,this.radius),this.collider.radius=t.config.radius,this.collider.on(c.BEGIN_CONTACT,this.onBeginContact,this),this.collider.on(c.END_CONTACT,this.onEndContact,this),this.collider.apply(),this.animation&&this.animation.play(),this.audio&&this.audio.playLong(),My.Play.Instance.poolItem_Push(this),this.scheduleOnce((()=>{My.Play.Instance.poolItem_Remove(this),this.audio&&this.audio.stop(),this.recycle()}),t.duration);break;case h.烟雾弹:My.Play.Instance.poolItem_Push(this),this.scheduleOnce((()=>{My.Play.Instance.poolItem_Remove(this),this.recycle()}),t.duration)}}recycle(){this.unscheduleAllCallbacks(),My.Pool.putNode(this.node)}damage_Event(){switch(this.type){case h.碎片手榴弹:this.collider.off(c.BEGIN_CONTACT,this.onBeginContact,this),this.collider.off(c.END_CONTACT,this.onEndContact,this);break;case h.燃烧瓶:}this.targets.forEach((t=>{t.getComponent(d).hurt(Tool.CommonUtil.DamageParamInfo(this.info.damage,p.玩家,f.子弹),t.tag)}))}destory_Event(){My.Pool.putNode(this.node)}onBeginContact(t,i,e){i.tag!=p.NPC&&i.tag!=p.BOSS||this.targets.push(i)}onEndContact(t,i,e){i.tag!=p.NPC&&i.tag!=p.BOSS||Tool.ArrayUtil.RemoveItem(this.targets,i)}}).prototype,"type",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return h.碎片手榴弹}}),_=i(I.prototype,"animation",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=i(I.prototype,"audio",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=i(I.prototype,"effectNode",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=i(I.prototype,"collider",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=I))||E));o._RF.pop()}}}));

System.register("chunks:///_virtual/ThrownItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./ThrownEffect.ts"],(function(t){"use strict";var i,e,n,o,s,r,a,l,f,h,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Animation,s=t.Sprite,r=t.Prefab,a=t._decorator,l=t.Component,f=t.tween},function(t){h=t.TouzhiType},function(t){c=t.ThrownEffect}],execute:function(){var u,p,m,d,y,g,w,b,v;n._RF.push({},"6f354p+mltBw7AFi772gy9e","ThrownItem",void 0);const{ccclass:I,property:P}=a;t("ThrownItem",(u=I("ThrownItem"),p=P({type:o,displayName:"动画"}),m=P({type:s,displayName:"图像"}),d=P({type:[r],displayName:"效果预制"}),u((w=i((g=class extends l{constructor(...t){super(...t),e(this,"animation",w,this),e(this,"image",b,this),e(this,"effects",v,this),this.info=void 0,this.offset=void 0,this.origin=void 0}async init(t,i){this.info=t,this.origin=this.node.getWorldPosition(),this.offset=i.subtract(this.origin),this.image.spriteFrame=await My.Item.Instance.getItemIcon(t.image),this.throwing()}throwing(){f(this.node).to(.5,{},{onUpdate:(t,i)=>{let e=0,n=this.offset.x*i;e=i<=.4?i/.4*100:i>=.6?(1-i)/.4*100:100;let o=this.offset.y*i+e;this.node.setWorldPosition(this.origin.x+n,this.origin.y+o,0)}}).call((()=>{this.info.config.delay>0?this.animation.play():this.animation_Event()})).union().start()}animation_Event(){if(null!=this.info)if(this.info.kind==h.震撼弹)My.Camera.Instance.isVisible(this.node.getWorldPosition())&&My.Event.emit(My.events.player_flash);else{let t=My.Pool.getNode(this.effects[this.info.kind]);t.setWorldPosition(this.node.worldPosition),t.getComponent(c).init(this.info)}My.Pool.putNode(this.node)}}).prototype,"animation",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(g.prototype,"image",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=i(g.prototype,"effects",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y=g))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/TimeUtil.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"a990dL42g5Pk4OORslj3eSl","TimeUtil",void 0);e("TimeUtil",class{static async sleep(e){return new Promise((t=>{setTimeout((()=>{t()}),1e3*e)}))}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/TipsItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,o,s,p,a,r,n,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.UIOpacity,p=t.Sprite,a=t.SpriteFrame,r=t._decorator,n=t.Component,c=t.tween}],execute:function(){var l,h,u,y,m,w,d,f,b;o._RF.push({},"2ad28YWKapKmrHMVvtngBhu","TipsItem",void 0);const{ccclass:g,property:v}=r;t("TipsItem",(l=g("TipsItem"),h=v({type:s,displayName:"透明度组件"}),u=v({type:p,displayName:"提示图像"}),y=v({type:[a],displayName:"提示"}),l((d=i((w=class extends n{constructor(...t){super(...t),e(this,"opacityComp",d,this),e(this,"image",f,this),e(this,"tips",b,this),this.tweenShow=void 0}init(){this.opacityComp.opacity=0,this.node.active=!1}show(t){this.stop(),this.image.spriteFrame=this.tips[t],this.opacityComp.opacity=0,this.node.active=!0,this.tweenShow=c(this.opacityComp).to(.25,{opacity:255}).call((()=>{this.tweenShow=c(this.opacityComp).delay(1.5).to(.25,{opacity:0}).call((()=>{this.node.active=!1})).start()})).start()}stop(){this.tweenShow&&this.tweenShow.stop()}}).prototype,"opacityComp",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=i(w.prototype,"image",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(w.prototype,"tips",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=w))||m));o._RF.pop()}}}));

System.register("chunks:///_virtual/ToastItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,o,s,n,a,r,p,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.UIOpacity,n=t.Label,a=t._decorator,r=t.Component,p=t.Vec3,c=t.tween}],execute:function(){var h,l,d,y,u,v,g;o._RF.push({},"9127aLg2bZFe5nmEB5cX+Cv","ToastItem",void 0);const{ccclass:m,property:w}=a;t("ToastItem",(h=m("ToastItem"),l=w({type:s,displayName:"透明度组件"}),d=w({type:n,displayName:"消息文本"}),h((v=i((u=class extends r{constructor(...t){super(...t),e(this,"opacityComp",v,this),e(this,"label",g,this),this.tweenMove=void 0,this.tweenFade=void 0,this.origin=void 0,this.pos1=void 0,this.pos2=void 0}init(){this.origin=this.node.getPosition(),this.pos1=new p(this.origin.x,this.origin.y+40,this.origin.z),this.pos2=new p(this.origin.x,this.origin.y+80,this.origin.z),this.opacityComp.opacity=0,this.node.active=!1}show(t){this.stop(),this.opacityComp.opacity=0,this.node.position=this.origin,this.node.setScale(.5,.5,.5),this.label.string=t,this.node.active=!0,this.tweenFade=c(this.opacityComp).to(.3,{opacity:255}).call((()=>{this.tweenFade=c(this.opacityComp).delay(.5).to(.2,{opacity:0}).start()})).start(),this.tweenMove=c(this.node).to(.3,{position:this.pos1,scale:p.ONE}).call((()=>{this.tweenMove=c(this.node).delay(.5).to(.2,{position:this.pos2,scale:new p(.8,.8,.8)}).call((()=>{this.node.active=!1})).start()})).start()}stop(){this.tweenMove&&this.tweenMove.stop(),this.tweenFade&&this.tweenFade.stop()}}).prototype,"opacityComp",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=i(u.prototype,"label",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=u))||y));o._RF.pop()}}}));

System.register("chunks:///_virtual/TouzhiConfig.ts",["cc","./ItemDefine.ts","./ItemConfig.ts"],(function(t){"use strict";var i,o,e,s;return{setters:[function(t){i=t.cclegacy,o=t._decorator},function(t){e=t.TouzhiType},function(t){s=t.ItemConfig}],execute:function(){var n;i._RF.push({},"d816fmnGsxAuZYI7CwJ3rpt","TouzhiConfig",void 0);const{ccclass:c,property:u}=o;t("TouzhiConfig",c("TouzhiConfig")(n=class extends s{constructor(...t){super(...t),this.kind=e.碎片手榴弹,this.damage=void 0,this.radius=void 0,this.delay=0,this.duration=0,this.open_level=void 0}})||n);i._RF.pop()}}}));

System.register("chunks:///_virtual/tt.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var t,o,a;return{setters:[function(e){t=e.cclegacy},function(e){o=e.AdIDS,a=e.default}],execute:function(){t._RF.push({},"16cd5TqW6tEH5bInJKjG8Qd","tt",void 0);class s{static init(){console.log("tt init"),this.resetInsert(30),this.rewardInit(),this.recorderInit(),this.createHutui()}static createHutui(){try{this.oneGridGamePanel=tt.createGridGamePanel({gridCount:"one",size:"large",position:{top:600,left:300},query:{tt75880335eabc9d9307:"age=12&name=梦想超市经营"}}),this.fourGridGamePanel=tt.createGridGamePanel({gridCount:"four",size:"large",query:{tt75880335eabc9d9307:"age=12&name=梦想超市经营",tt8152f7ef1e67f7f207:"age=12&name=盖瑞模组2",tt8a83fc3e15b6462307:"age=12&name=修狗地铁求生",tt3120479dae14a49107:"age=12&name=樱花恋爱生活模拟"}}),this.nineGridGamePanel=tt.createGridGamePanel({gridCount:"nine",query:{tt75880335eabc9d9307:"age=12&name=梦想超市经营",tt8152f7ef1e67f7f207:"age=12&name=盖瑞模组2",tt8a83fc3e15b6462307:"age=12&name=修狗地铁求生",tt3120479dae14a49107:"age=12&name=樱花恋爱生活模拟",tte76d91d0785892d307:"age=12&name=节奏音符达人",tt67f81145f8cda9dd07:"age=12&name=奇妙米加小镇",ttca89bc3455be17c507:"age=12&name=真实机长飞机模拟驾驶",tt9ad3ec6e05e6e2c107:"age=12&name=火柴蜘蛛城市英雄",tt821cf4a11d28cefc07:"age=12&name=百变机甲战神"}})}catch(e){console.error("创建游戏推荐组件失败",e)}}static showHutui(e){switch(e){case 1:this.oneGridGamePanel.show();break;case 4:this.fourGridGamePanel.show();break;case 9:this.nineGridGamePanel.show()}}static hideHutui(e){switch(e){case 1:this.oneGridGamePanel.hide();break;case 4:this.fourGridGamePanel.hide();break;case 9:this.nineGridGamePanel.hide()}}static changeState(e){console.log("tt changeState:"+e),this.openInsert()}static resetInsert(e){this.bSHowInsert&&(this.bSHowInsert=!1,setTimeout((()=>{this.bSHowInsert=!0,console.log("可以弹插屏")}),1e3*e))}static recorderInit(){var e=this;this.recorder=tt.getGameRecorderManager(),this.recorder.onStart((e=>{console.log("开始录屏：")})),this.recorder.onPause((e=>{console.log("暂停录屏")})),this.recorder.onResume((e=>{console.log("继续录屏")})),this.recorder.onStop((t=>{console.log("停止录屏"),e.recorder.clipVideo({path:t.videoPath,timeRange:[15,0],success(t){console.log(t.videoDuration+","+t.videoPath),e.videoPath=t.videoPath,e.videoDuration=t.videoDuration},fail(e){console.error(e)}})})),this.recorder.onError((e=>{console.log("录屏出错："+e)}))}static recorderStart(){this.videoPath=null,this.videoDuration=0,this.recorder.start({duration:300})}static recorderPause(){this.recorder.pause()}static recorderResume(){this.recorder.resume()}static recorderStop(){this.recorder.stop()}static isShowShareBtn(){var e=!1;return this.videoPath&&this.videoDuration>3&&(e=!0),e}static share(e){var t=this;tt.shareAppMessage({channel:"video",query:"",templateId:o[a.TT].templateId,title:o[a.TT].title,desc:o[a.TT].desc,extra:{videoPath:t.videoPath,videoTopics:[o[a.TT].title]},success(){console.log("分享视频成功"),t.showTip("成功分享精彩时刻"),e("success")&&e("success")},fail(o){console.log("分享视频失败"),t.showTip("分享失败"),e("fail")&&e("fail")}})}static openInsert(){if(!tt.createInterstitialAd)return;if(!this.bSHowInsert)return;var e=this;const t=tt.createInterstitialAd({adUnitId:o[a.TT].insertId});t.load().then((()=>{t.show(),e.resetInsert(60)}))}static openBanner(){if(!tt.createBannerAd)return;var e=this;console.log("bannerInit");const t=tt.getSystemInfoSync(),s=t.windowWidth,n=t.windowHeight;this.bannerAd&&this.bannerAd.destroy(),this.bannerAd=tt.createBannerAd({adUnitId:o[a.TT].bannerId,adIntervals:30,style:{}}),this.bannerAd.onError((function(e){console.log("tt 横幅加载失败",JSON.stringify(e))})),this.bannerAd.onResize((t=>{console.log("tt 横幅尺寸：",t.width,t.height),e.bannerAd.style.top=1==e.bannerPos?n-t.height:0,e.bannerAd.style.left=(s-t.width)/2})),this.bannerAd.onLoad((function(){console.log("tt 横幅加载成功"),e.bannerAd.show()}))}static hideBanner(){this.bannerAd&&this.bannerAd.hide()}static rewardInit(){if(tt.createRewardedVideoAd){var e=this;this.rewardAd=tt.createRewardedVideoAd({adUnitId:o[a.TT].rewardId}),this.rewardAd.onLoad((function(){console.log("tt 激励加载完成"),e.rewardAd.show()})),this.rewardAd.onError((function(t){console.log("tt 激励加载失败"+JSON.stringify(t)),e.rewardCallback&&e.rewardCallback("fail"),e.showTip("广告加载失败,请稍后重试"),this.onSound()})),this.rewardAd.onClose((t=>{t&&t.isEnded?(console.log("tt 激励播放结束"),e.rewardCallback&&(e.rewardCallback("success"),e.showTip("成功下发奖励"),this.onSound())):(console.log("tt 激励播放中途退出"),e.rewardCallback&&e.rewardCallback("cancel"),e.showTip("观看完整视频才能下发奖励噢~"),this.onSound()),e.resetInsert(60)}))}}static openVideo(e){this.offSound(),this.rewardCallback=e,this.rewardAd?this.rewardAd.load():e&&(e("fail"),this.showTip("广告加载失败,请稍后重试"),this.onSound())}static showTip(e){tt.showToast({title:e,duration:2e3,success(e){console.log(`${e}`)},fail(e){console.log("showToast调用失败")}})}static showDialog(e,t,o){tt.showModal({title:e,content:t,success(e){e.confirm?(console.log("confirm, continued"),o()):e.cancel&&console.log("cancel, cold")},fail(e){console.log("showModal调用失败")}})}static checkScene(e){tt.checkScene&&tt.checkScene({scene:"sidebar",success:t=>{console.log("check scene success: ",t.isExist),console.log("可以显示侧边栏按钮"),e&&e()},fail:e=>{console.log("check scene fail:",e)}})}static onShow(e){tt.onShow&&tt.onShow((t=>{console.log("启动参数：",t.query),console.log("来源信息：",t.refererInfo),console.log("场景值：",t.scene),console.log("启动场景字段：",t.launch_from,", ",t.location),"sidebar_card"==t.location&&(console.log("通过侧边栏入口进入小游戏"),e&&e())}))}static onFavoriteStateChange(e){tt.onFavoriteStateChange&&tt.onFavoriteStateChange((t=>{t?(console.log("收藏成功"),e&&e()):console.log("收藏失败")}))}static navigateToScene(){tt.navigateToScene({scene:"sidebar",success:e=>{console.log("navigate to scene success")},fail:e=>{console.log("navigate to scene fail: ",e)}})}static showFavoriteGuide(){tt.showFavoriteGuide({type:"customize",success(e){console.log("isFavorited",e.isFavorited),e.isFavorited&&console.log("收藏成功")},fail(e){console.log("自定义弹窗展示失败")}})}static installShortcut(){tt.addShortcut({success(){console.log("添加桌面成功")},fail(e){console.log("添加桌面失败",e.errMsg)}})}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}e("default",s),s.bSHowInsert=!0,s.bannerAd=void 0,s.bannerPos=1,s.rewardAd=void 0,s.rewardCallback=void 0,s.recorder=void 0,s.videoPath=void 0,s.videoDuration=void 0,s.oneGridGamePanel=void 0,s.fourGridGamePanel=void 0,s.nineGridGamePanel=void 0,t._RF.pop()}}}));

System.register("chunks:///_virtual/UIDefine.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,r,l,a,o,u,p,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.Prefab,l=e.CCInteger,a=e.Node,o=e.Label,u=e.Sprite,p=e.RichText,s=e._decorator}],execute:function(){var c,y,b,h,m,f,d,g,w,_,N,z,k,v,P,I,B,T,D,S,M,L,U,C,q,R,Q,x,j,A,W,E,F,H,G,J,K,O,V,X,Y,Z,$,ee,te,ie,ne,re,le,ae,oe,ue,pe,se,ce,ye,be,he,me,fe,de,ge,we,_e,Ne,ze,ke,ve,Pe,Ie,Be,Te,De,Se,Me,Le,Ue,Ce,qe,Re,Qe,xe,je,Ae,We,Ee,Fe,He,Ge,Je,Ke,Oe,Ve,Xe,Ye,Ze,$e,et,tt,it,nt,rt,lt,at,ot,ut,pt,st,ct;e({AnchorType:void 0,DotType:void 0,EquipmentType:void 0,InfoColor:void 0,InfoItemType:void 0,MarketMenuType:void 0,PackMenuType:void 0,PopupType:void 0,QuickMenuType:void 0,QuickType:void 0,WhsMenuType:void 0}),n._RF.push({},"339efGNHH5Bxa8DJ8KFD3md","UIDefine",void 0);const{ccclass:yt,property:bt}=s;let ht;!function(e){e[e["获得弹窗"]=0]="获得弹窗",e[e["物品弹窗"]=1]="物品弹窗",e[e["出售弹窗"]=2]="出售弹窗",e[e["购买弹窗"]=3]="购买弹窗",e[e["搜索弹窗"]=4]="搜索弹窗",e[e["丢弃弹窗"]=5]="丢弃弹窗",e[e["商店兑换弹窗"]=7]="商店兑换弹窗",e[e["勘察奖励弹窗"]=8]="勘察奖励弹窗",e[e["升级弹窗"]=10]="升级弹窗",e[e["解锁弹窗"]=11]="解锁弹窗",e[e["询问弹窗"]=12]="询问弹窗",e[e["激励弹窗"]=19]="激励弹窗",e[e["公示弹窗"]=20]="公示弹窗"}(ht||(ht=e("PopupType",{})));let mt,ft,dt,gt,wt,_t,Nt,zt,kt,vt;e("UIPrefabs",(c=yt("UIPrefabs"),y=bt({type:r,displayName:"工具视图"}),b=bt({type:r,displayName:"出售弹窗"}),h=bt({type:r,displayName:"丢弃弹窗"}),m=bt({type:r,displayName:"商店兑换弹窗"}),f=bt({type:r,displayName:"勘察奖励弹窗"}),d=bt({type:r,displayName:"公示弹窗"}),g=bt({type:r,displayName:"询问弹窗"}),w=bt({type:r,displayName:"激励弹窗"}),_=bt({type:r,displayName:"升级弹窗"}),N=bt({type:r,displayName:"解锁弹窗"}),c((v=t((k=class{constructor(){i(this,"view_Cheat",v,this),i(this,"pop_Sell",P,this),i(this,"pop_Discard",I,this),i(this,"pop_Store",B,this),i(this,"pop_Survey",T,this),i(this,"pop_Prob",D,this),i(this,"pop_Dialog",S,this),i(this,"pop_Reward",M,this),i(this,"pop_Upgrade",L,this),i(this,"pop_Unlock",U,this)}check(){let e=0;null==this.view_Cheat&&(e+=1),null==this.pop_Sell&&(e+=1),null==this.pop_Discard&&(e+=1),null==this.pop_Store&&(e+=1),null==this.pop_Survey&&(e+=1),null==this.pop_Prob&&(e+=1),null==this.pop_Dialog&&(e+=1),null==this.pop_Reward&&(e+=1),null==this.pop_Upgrade&&(e+=1),null==this.pop_Unlock&&(e+=1),e>0&&console.error("UI预制件丢失*"+e+", 请检查相关赋值")}getPopup(e){switch(e){case ht.出售弹窗:return this.pop_Sell;case ht.丢弃弹窗:return this.pop_Discard;case ht.商店兑换弹窗:return this.pop_Store;case ht.勘察奖励弹窗:return this.pop_Survey;case ht.激励弹窗:return this.pop_Reward;case ht.公示弹窗:return this.pop_Prob;case ht.升级弹窗:return this.pop_Upgrade;case ht.解锁弹窗:return this.pop_Unlock;case ht.询问弹窗:return this.pop_Dialog;default:return null}}}).prototype,"view_Cheat",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(k.prototype,"pop_Sell",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(k.prototype,"pop_Discard",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(k.prototype,"pop_Store",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(k.prototype,"pop_Survey",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(k.prototype,"pop_Prob",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(k.prototype,"pop_Dialog",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(k.prototype,"pop_Reward",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(k.prototype,"pop_Upgrade",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(k.prototype,"pop_Unlock",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=k))||z)),e("CurrencyInfo",(C=yt("CurrencyInfo"),q=bt({type:l,displayName:"ID"}),R=bt({type:l,displayName:"数量"}),C((j=t((x=class{constructor(){i(this,"id",j,this),i(this,"count",A,this)}}).prototype,"id",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),A=t(x.prototype,"count",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Q=x))||Q)),e("SystemLocks",(W=yt("SystemLocks"),E=bt({type:a,displayName:"黑市系统"}),F=bt({type:a,displayName:"个性系统"}),W((J=t((G=class{constructor(){i(this,"lock_Market",J,this),i(this,"lock_Skin",K,this)}}).prototype,"lock_Market",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=t(G.prototype,"lock_Skin",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=G))||H)),e("ItemPopupParam",(O=yt("ItemPopupParam"),V=bt({type:o,displayName:"名称"}),X=bt({type:u,displayName:"图像"}),Y=bt({type:o,displayName:"品质"}),Z=bt({type:o,displayName:"价格"}),$=bt({type:o,displayName:"重量"}),ee=bt({type:o,displayName:"其他"}),te=bt({type:o,displayName:"描述"}),ie=bt({type:a,displayName:"控件"}),ne=bt({type:a,displayName:"装备按钮"}),re=bt({type:a,displayName:"卸下按钮"}),le=bt({type:a,displayName:"放入背包"}),ae=bt({type:a,displayName:"放入仓库"}),oe=bt({type:a,displayName:"加密按钮"}),ue=bt({type:a,displayName:"使用按钮"}),pe=bt({type:a,displayName:"修理按钮"}),se=bt({type:a,displayName:"出售按钮"}),ce=bt({type:a,displayName:"丢弃按钮"}),O((he=t((be=class{constructor(){i(this,"nameLabel",he,this),i(this,"image",me,this),i(this,"quality",fe,this),i(this,"price",de,this),i(this,"weight",ge,this),i(this,"other",we,this),i(this,"desc",_e,this),i(this,"btns",Ne,this),i(this,"equipBtn",ze,this),i(this,"unloadBtn",ke,this),i(this,"toPackBtn",ve,this),i(this,"toWhsBtn",Pe,this),i(this,"toLockBtn",Ie,this),i(this,"usedBtn",Be,this),i(this,"restoreBtn",Te,this),i(this,"sellBtn",De,this),i(this,"discardBtn",Se,this)}}).prototype,"nameLabel",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),me=t(be.prototype,"image",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fe=t(be.prototype,"quality",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),de=t(be.prototype,"price",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge=t(be.prototype,"weight",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),we=t(be.prototype,"other",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_e=t(be.prototype,"desc",[te],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ne=t(be.prototype,"btns",[ie],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ze=t(be.prototype,"equipBtn",[ne],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ke=t(be.prototype,"unloadBtn",[re],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ve=t(be.prototype,"toPackBtn",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pe=t(be.prototype,"toWhsBtn",[ae],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ie=t(be.prototype,"toLockBtn",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Be=t(be.prototype,"usedBtn",[ue],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Te=t(be.prototype,"restoreBtn",[pe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),De=t(be.prototype,"sellBtn",[se],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Se=t(be.prototype,"discardBtn",[ce],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ye=be))||ye)),e("BuyPopupParam",(Me=yt("BuyPopupParam"),Le=bt({type:o,displayName:"名称"}),Ue=bt({type:u,displayName:"图像"}),Ce=bt({type:o,displayName:"品质"}),qe=bt({type:o,displayName:"价格"}),Re=bt({type:o,displayName:"重量"}),Qe=bt({type:o,displayName:"其他"}),xe=bt({type:o,displayName:"描述"}),Me((We=t((Ae=class{constructor(){i(this,"nameLabel",We,this),i(this,"image",Ee,this),i(this,"quality",Fe,this),i(this,"price",He,this),i(this,"weight",Ge,this),i(this,"other",Je,this),i(this,"desc",Ke,this)}}).prototype,"nameLabel",[Le],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ee=t(Ae.prototype,"image",[Ue],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Fe=t(Ae.prototype,"quality",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),He=t(Ae.prototype,"price",[qe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ge=t(Ae.prototype,"weight",[Re],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Je=t(Ae.prototype,"other",[Qe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ke=t(Ae.prototype,"desc",[xe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),je=Ae))||je)),e("InfoItemParam",(Oe=yt("InfoItemParam"),Ve=bt({type:a,displayName:"节点"}),Xe=bt({type:o,displayName:"名称"}),Ye=bt({type:p,displayName:"信息"}),Oe((et=t(($e=class{constructor(){i(this,"obj",et,this),i(this,"nameLabel",tt,this),i(this,"infoLabel",it,this)}}).prototype,"obj",[Ve],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=t($e.prototype,"nameLabel",[Xe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=t($e.prototype,"infoLabel",[Ye],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ze=$e))||Ze)),e("QuickAmmoParam",(nt=yt("QuickAmmoParam"),rt=bt({type:a,displayName:"节点"}),lt=bt({type:o,displayName:"名称"}),at=bt({type:a,displayName:"内容"}),nt((pt=t((ut=class{constructor(){i(this,"obj",pt,this),i(this,"nameLabel",st,this),i(this,"content",ct,this)}}).prototype,"obj",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=t(ut.prototype,"nameLabel",[lt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ct=t(ut.prototype,"content",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=ut))||ot));e("DialogParam",class{constructor(){this.desc=void 0,this.confirm=void 0,this.cancelCall=void 0,this.confirmCall=void 0}}),function(e){e[e["弹药口径"]=0]="弹药口径",e[e["射速"]=1]="射速",e[e["射程"]=2]="射程",e[e["精度"]=3]="精度",e[e["击发威力"]=4]="击发威力",e[e["弹匣容量"]=5]="弹匣容量",e[e["人机功效"]=6]="人机功效",e[e["穿透抗性"]=7]="穿透抗性",e[e["移动速度"]=8]="移动速度",e[e["负重加成"]=9]="负重加成",e[e["基础伤害"]=10]="基础伤害",e[e["子弹穿透"]=11]="子弹穿透",e[e["护甲耐久伤害"]=12]="护甲耐久伤害",e[e["治疗速率"]=13]="治疗速率",e[e["启用时间"]=14]="启用时间",e[e["伤害减免"]=15]="伤害减免",e[e["持续时间"]=16]="持续时间",e[e["移速加成"]=17]="移速加成",e[e["枪声抑制"]=18]="枪声抑制",e[e["射击精度"]=19]="射击精度",e[e["放大倍率"]=20]="放大倍率"}(mt||(mt=e("InfoItemType",{}))),function(e){e[e["装备"]=0]="装备",e[e["背包"]=1]="背包",e[e["安全箱"]=2]="安全箱"}(ft||(ft=e("PackMenuType",{}))),function(e){e[e["全部"]=0]="全部",e[e["武器"]=1]="武器",e[e["防具"]=2]="防具",e[e["配件"]=3]="配件",e[e["弹药"]=4]="弹药",e[e["药品"]=5]="药品",e[e["杂物"]=6]="杂物"}(dt||(dt=e("WhsMenuType",{}))),function(e){e[e["武器"]=0]="武器",e[e["头盔"]=1]="头盔",e[e["护甲"]=2]="护甲",e[e["背包"]=3]="背包"}(gt||(gt=e("QuickMenuType",{}))),function(e){e[e["神秘商铺"]=0]="神秘商铺",e[e["热卖新品"]=1]="热卖新品",e[e["抽奖礼包"]=2]="抽奖礼包",e[e["快捷装备"]=3]="快捷装备",e[e["武器"]=4]="武器",e[e["防具"]=5]="防具",e[e["配件"]=6]="配件",e[e["消耗品"]=7]="消耗品",e[e["未指定"]=10]="未指定"}(wt||(wt=e("MarketMenuType",{}))),function(e){e[e["主武器1"]=0]="主武器1",e[e["主武器2"]=1]="主武器2",e[e["近战武器"]=2]="近战武器",e[e["副武器"]=3]="副武器",e[e["头盔"]=4]="头盔",e[e["防弹衣"]=5]="防弹衣",e[e["背包"]=6]="背包"}(_t||(_t=e("EquipmentType",{}))),function(e){e[e["快速装备"]=0]="快速装备",e[e["弹药整备"]=1]="弹药整备",e[e["资源整备"]=2]="资源整备"}(Nt||(Nt=e("QuickType",{}))),function(e){e[e["默认"]=0]="默认",e[e["绿色"]=1]="绿色",e[e["红色"]=2]="红色"}(zt||(zt=e("InfoColor",{}))),function(e){e[e["在线奖励"]=0]="在线奖励",e[e["商城新品"]=1]="商城新品",e[e["个性装扮"]=2]="个性装扮",e[e["枪械角标"]=3]="枪械角标",e[e["近战角标"]=4]="近战角标",e[e["装扮角标"]=5]="装扮角标"}(kt||(kt=e("DotType",{}))),function(e){e[e["顶部"]=0]="顶部",e[e["底部"]=1]="底部",e[e["左侧"]=2]="左侧",e[e["右侧"]=3]="右侧"}(vt||(vt=e("AnchorType",{})));e("MarketBoxItems",class{constructor(){this.items=[]}setBoxItems(e){this.items.push(e)}});e("MarketBoxItem",class{constructor(){this.id=void 0,this.count=void 0,this.weight=void 0,this.quality=void 0}setReward(e){e.length>=3?(this.id=e[0],this.count=e[1],this.weight=e[2],this.quality=My.Item.Instance.getItemQuality(e[0])):My.Game.gameErr("黑市>宝箱奖励>数据格式错误>"+e)}}),n._RF.pop()}}}));

System.register("chunks:///_virtual/UnlockItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RendererItem.ts"],(function(e){"use strict";var t,i,a,r,n,l,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e.Sprite,n=e.Label,l=e._decorator},function(e){s=e.RendererItem}],execute:function(){var c,o,u,m,p,y,h,d,b;a._RF.push({},"a2a3d75+q9AMprimv2XwuVF","UnlockItem",void 0);const{ccclass:g,property:f}=l;e("UnlockItem",(c=g("UnlockItem"),o=f({type:r,displayName:"品质"}),u=f({type:r,displayName:"图像"}),m=f({type:n,displayName:"名称"}),c((h=t((y=class extends s{constructor(...e){super(...e),i(this,"quality",h,this),i(this,"image",d,this),i(this,"nameLabel",b,this)}show(e){this.actived=!0,this.load_Data(e)}hide(){this.actived=!1,this.quality.spriteFrame=null,this.image.spriteFrame=null,this.nameLabel.string=""}async load_Data(e){this.quality.spriteFrame=My.Item.Instance.getQualitySprite(e.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(e.image),this.nameLabel.string=e.name}}).prototype,"quality",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(y.prototype,"image",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=t(y.prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=y))||p));a._RF.pop()}}}));

System.register("chunks:///_virtual/UnlockPopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PopupBase.ts","./ViewBase.ts","./ScrollRenderer.ts","./UnlockItem.ts"],(function(e){"use strict";var t,i,n,s,r,o,c,a,l,u,p,h,d,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,r=e.Prefab,o=e._decorator,c=e.tween,a=e.Vec3,l=e.easing,u=e.instantiate},function(e){p=e.PopupBase},function(e){h=e.ViewType},function(e){d=e.ScrollRenderer},function(e){m=e.UnlockItem}],execute:function(){var f,y,g,b,k,I,v,w,M;n._RF.push({},"def2a910fxB1aE+rrRi54vp","UnlockPopup",void 0);const{ccclass:P,property:U}=o;e("UnlockPopup",(f=P("UnlockPopup"),y=U({type:s,displayName:"内容"}),g=U({type:r,displayName:"预制"}),b=U({type:d,displayName:"渲染器"}),f((v=t((I=class extends p{constructor(...e){super(...e),i(this,"content",v,this),i(this,"prefab",w,this),i(this,"renderer",M,this),this.items=[],this.using=!1}init(){this.node.active=!1,this.using=!1}show(e){this.node.active||(this.setItems(),this.content.setScale(1,0),this.node.active=!0,this.using=!0,c(this.content).to(.5,{scale:a.ONE},{easing:l.backOut}).call((()=>{this.using=!1})).start())}hide(){this.node.active=!1}setItems(){let e=My.Market.Instance.unlockItems,t=e.length-this.items.length;if(t>0)for(let e=0;e<t;e++){let e=u(this.prefab);this.renderer.pushItem(e);let t=e.getComponent(m);this.items.push(t),t.init()}for(let t=0;t<this.items.length;t++)t<e.length?this.items[t].show(e[t]):this.items[t].hide();this.renderer.updateRenderer(),My.Game.gameSign("新解锁商品x"+e.length),My.Market.Instance.unlockItems=[]}onClick_Confirm(){this.using||(My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(h.黑市视图),this.hide(),My.UI.Instance.removePopup(this.type))}}).prototype,"content",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(I.prototype,"prefab",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(I.prototype,"renderer",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=I))||k));n._RF.pop()}}}));

System.register("chunks:///_virtual/UpgradePopup.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PopupBase.ts"],(function(e){"use strict";var t,i,n,s,a,r,l,o,c,u,p,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Label,a=e.Sprite,r=e.Node,l=e._decorator,o=e.SpriteFrame,c=e.tween,u=e.Vec3,p=e.easing},function(e){h=e.PopupBase}],execute:function(){var d,g,y,b,m,f,v,_,L,P,w;n._RF.push({},"943bb23ZbhL0JJ0JjLyg6cy","UpgradePopup",void 0);const{ccclass:M,property:S}=l;e("UpgradePopup",(d=M("UpgradePopup"),g=S({type:s,displayName:"等级"}),y=S({type:s,displayName:"描述"}),b=S({type:a,displayName:"图像"}),m=S({type:r,displayName:"内容"}),d((_=t((v=class extends h{constructor(...e){super(...e),i(this,"lvLabel",_,this),i(this,"descLabel",L,this),i(this,"image",P,this),i(this,"content",w,this),this.using=!1,this.data=void 0}init(){this.node.active=!1,this.using=!1}async show(e){this.node.active||null!=e&&(this.using=!0,this.data=e,this.lvLabel.string="行动等级 "+e.id,this.descLabel.string=e.level_text,this.image.spriteFrame=await My.Res.loadBundleRes("image",e.level_pic+"/spriteFrame",o),this.content.setScale(1,.6),this.node.active=!0,c(this.content).to(.25,{scale:u.ONE},{easing:p.backOut}).call((()=>{this.using=!1})).start())}hide(){this.node.active=!1}onClick_Confirm(){if(this.using)return;My.Sound.playSfx(My.sounds.ui_click_common);let e=Tool.StringUtil.stringToArrayNumber(this.data.level_rewards,",");e.length>1&&(My.Event.emit(My.events.game_got,[[e[0],e[1]]]),My.Skin.Instance.skin_Push(e[0])),My.UI.Instance.hidePopup(this.type,!0)}}).prototype,"lvLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(v.prototype,"descLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(v.prototype,"image",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(v.prototype,"content",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=v))||f));n._RF.pop()}}}));

System.register("chunks:///_virtual/UsePanel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PanelBase.ts"],(function(e){"use strict";var i,t,s,l,n,a,c,h;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){s=e.cclegacy,l=e.Sprite,n=e._decorator,a=e.tween,c=e.macro},function(e){h=e.PanelBase}],execute:function(){var r,o,d,u,m,y,p;s._RF.push({},"398c8URJHdAq6IUEGHVU3dB","UsePanel",void 0);const{ccclass:f,property:g}=n;e("UsePanel",(r=f("UsePanel"),o=g({type:l,displayName:"图像"}),d=g({type:l,displayName:"程度"}),r((y=i((m=class extends h{constructor(...e){super(...e),t(this,"image",y,this),t(this,"fill",p,this),this.item=void 0,this.fillRange=0,this.ended=!1}init(){My.Event.on(My.events.play_ended,this.cancel,this),My.Event.on(My.events.player_used,this.used,this),this.node.active=!1}show(e){this.node.active=!0}hide(){this.image.spriteFrame=null,this.node.active=!1}async used(e){this.cancel(),My.Player.model.free()>0?(this.item=e,null!=this.item&&(this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.item.image),this.fill.fillRange=e.endRatio,this.using(),this.show())):My.Msg.showMessage(My.msgcode.状态不匹配)}using(){this.ended=!1,this.schedule((()=>{let e=this.item.end>=this.item.medicalValue?this.item.medicalValue:this.item.end,i=My.Player.model.free();e=i>=e?e:i,e>0?(this.item.lessEnd(e)?(My.Pack.Instance.packItem_Used(this.item,1),My.Player.restore(e),this.fillRange=0,this.cancel()):(this.fillRange=this.item.endRatio,My.Player.restore(e)&&this.cancel()),a(this.fill).to(.5,{fillRange:this.fillRange}).call((()=>{this.ended&&this.hide()})).start()):(this.cancel(),this.hide())}),1,c.REPEAT_FOREVER,0)}cancel(){this.item&&(this.unscheduleAllCallbacks(),this.ended=!0,this.item=null)}onClick_Cancel(){My.Sound.playSfx(My.sounds.ui_click_common),this.cancel(),this.hide()}}).prototype,"image",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=i(m.prototype,"fill",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=m))||u));s._RF.pop()}}}));

System.register("chunks:///_virtual/ValueItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ViewBase.ts"],(function(e){"use strict";var t,a,s,i,n,r,l,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){s=e.cclegacy,i=e.Enum,n=e.Label,r=e._decorator,l=e.Component},function(e){u=e.ViewType}],execute:function(){var o,p,y,c,h,b,d;e("ValueType",void 0),s._RF.push({},"3373aMdypJAEptIBk/TUOC2","ValueItem",void 0);const{ccclass:M,property:g}=r;let v;!function(e){e[e["狗狗币"]=0]="狗狗币",e[e["徽章碎片"]=1]="徽章碎片",e[e["勘察情报"]=2]="勘察情报",e[e["能源电池"]=3]="能源电池",e[e["皮肤碎片"]=4]="皮肤碎片",e[e["装备价值"]=5]="装备价值",e[e["仓库容量"]=6]="仓库容量",e[e["角色负重"]=7]="角色负重",e[e["批量总价值"]=8]="批量总价值",e[e["收获价值"]=9]="收获价值",e[e["对局淘汰"]=10]="对局淘汰"}(v||(v=e("ValueType",{})));e("ValueItem",(o=M("ValueItem"),p=g({type:i(v),displayName:"数值类型"}),y=g({type:n,displayName:"数值文本"}),o((b=t((h=class extends l{constructor(...e){super(...e),a(this,"type",b,this),a(this,"label",d,this)}onLoad(){switch(this.type){case v.狗狗币:My.Event.on(My.events.update_money,this.updateValue,this);break;case v.徽章碎片:My.Event.on(My.events.update_badge,this.updateValue,this);break;case v.勘察情报:My.Event.on(My.events.update_gen,this.updateValue,this);break;case v.能源电池:My.Event.on(My.events.update_battery,this.updateValue,this);break;case v.皮肤碎片:My.Event.on(My.events.update_frags,this.updateValue,this);break;case v.装备价值:My.Event.on(My.events.update_equip_value,this.updateValue,this);break;case v.仓库容量:My.Event.on(My.events.update_whs_value,this.updateValue,this);break;case v.角色负重:My.Event.on(My.events.update_player_weights,this.updateValue,this);break;case v.批量总价值:My.Event.on(My.events.update_whs_checkbox,this.updateValue,this);break;case v.收获价值:My.Event.on(My.events.update_play_value,this.updateValue,this)}this.updateValue()}updateValue(e){if(this.label)switch(this.type){case v.狗狗币:let t=My.Data.money;this.label.string=t>=1e8?(t/1e8).toFixed(0)+"亿":t>=1e6?(t/1e3).toFixed(0)+"K":t.toString();break;case v.徽章碎片:this.label.string=My.Data.playerData.badge.toString();break;case v.勘察情报:this.label.string=My.Data.playerData.gen.toString();break;case v.能源电池:this.label.string=My.Data.playerData.battery.toString();break;case v.皮肤碎片:this.label.string=My.Data.playerData.frags.toString();break;case v.装备价值:this.label.string=e?e.toString():My.Pack.packInfo.equipment_Value.toString();break;case v.仓库容量:this.label.string=My.Whs.whsUsed+"/"+My.Data.warehouse;break;case v.角色负重:this.label.string=My.Pack.packInfo.playerWeightStr;break;case v.批量总价值:case v.收获价值:this.label.string=e?e>=1e8?(e/1e8).toFixed(0)+"亿":e>=1e6?(e/1e3).toFixed(0)+"K":e.toString():"0"}}onClick_Add(){My.UI.Instance.showView(u.货币视图)}}).prototype,"type",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return v.狗狗币}}),d=t(h.prototype,"label",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=h))||c));s._RF.pop()}}}));

System.register("chunks:///_virtual/VersionDetails.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var i,t,s,r,n,o,a,l,p;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){s=e.cclegacy,r=e.Label,n=e._decorator,o=e.Component,a=e.director,l=e.Director,p=e.Color}],execute:function(){var c,h,u,f,b,m,v,d,y,g,L;s._RF.push({},"16798Z0Ge5BTaKciTuMGMoG","VersionDetails",void 0);const{ccclass:w,property:D}=n;e("VersionDetails",(c=w("VersionDetails"),h=D({displayName:"帧率显示"}),u=D({type:r,displayName:"帧率"}),f=D({displayName:"版本显示"}),b=D({type:r,displayName:"版本"}),c((d=i((v=class extends o{constructor(...e){super(...e),t(this,"fps",d,this),t(this,"fpsLabel",y,this),t(this,"version",g,this),t(this,"versionLabel",L,this),this.frames=void 0,this.timePrev=void 0}start(){this.fps&&(this.frames=60,this.timePrev=Date.now(),this.fpsLabel.string=this.frames.toString(),a.on(l.EVENT_BEGIN_FRAME,(()=>{this.frames++;let e=Date.now(),i=e-this.timePrev;if(i>=1e3){let t=1e3*this.frames/i;this.fpsLabel.color=t>30?p.GREEN:p.RED,this.fpsLabel.string=t.toFixed(0),this.frames=0,this.timePrev=e}}),this)),this.fpsLabel.node.active=this.fps,this.versionLabel.string=My.Game.Instance.version,this.versionLabel.node.active=this.version}onClick_Copyright(){window.sdk&&window.sdk.showCopyright()}}).prototype,"fps",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),y=i(v.prototype,"fpsLabel",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=i(v.prototype,"version",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),L=i(v.prototype,"versionLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=v))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/ViewBase.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,n,s,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Enum,s=e._decorator,o=e.Component}],execute:function(){var c,a,p,u,l;e("ViewType",void 0),r._RF.push({},"6044duEjaJKBqdkEPecSnkX","ViewBase",void 0);const{ccclass:y,property:d}=s;let f;!function(e){e[e["工具视图"]=0]="工具视图",e[e["加载视图"]=1]="加载视图",e[e["渐变视图"]=2]="渐变视图",e[e["主页视图"]=3]="主页视图",e[e["战备视图"]=4]="战备视图",e[e["黑市视图"]=5]="黑市视图",e[e["游戏视图"]=7]="游戏视图",e[e["背包视图"]=8]="背包视图",e[e["交互视图"]=9]="交互视图",e[e["地图视图"]=10]="地图视图",e[e["暂停视图"]=11]="暂停视图",e[e["结算视图"]=12]="结算视图",e[e["关卡视图"]=13]="关卡视图",e[e["每日视图"]=14]="每日视图",e[e["机甲视图"]=15]="机甲视图",e[e["勘察视图"]=16]="勘察视图",e[e["个性视图"]=17]="个性视图",e[e["抽奖视图"]=18]="抽奖视图",e[e["商店视图"]=20]="商店视图",e[e["货币视图"]=21]="货币视图",e[e["整备视图"]=23]="整备视图",e[e["属性视图"]=24]="属性视图",e[e["档案视图"]=25]="档案视图"}(f||(f=e("ViewType",{})));e("ViewBase",(c=y("ViewBase"),a=d({type:n(f),displayName:"视图类型"}),c((l=t((u=class extends o{constructor(...e){super(...e),i(this,"type",l,this)}init(){}show(e){}hide(e){}fade(e,t){}}).prototype,"type",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return f.主页视图}}),p=u))||p));r._RF.pop()}}}));

System.register("chunks:///_virtual/vivo.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var n,o,t,s,i;return{setters:[function(e){n=e.director,o=e.macro,t=e.cclegacy},function(e){s=e.AdIDS,i=e.default}],execute:function(){t._RF.push({},"3e9713vPEJCfLUfhXWfdcwI","vivo",void 0);class d{static init(){var e=this;qg.getSystemInfo({success:function(n){console.log(`handling success， screenWidth = ${n.screenWidth}， screenHeight = ${n.screenHeight}`),e.screenWidth=n.screenWidth,e.screenHeight=n.screenHeight}}),this.rewardInit()}static timeAd(){1==window.sdk.nPlane?this.openCustom(0):window.sdk.nPlane}static changeState(e){console.log("changeState:"+e),1==window.sdk.adSwitch&&(null==this.scheduler&&0!=window.sdk.nPlane&&(this.scheduler=n.getScheduler(),this.scheduler.enableForTarget(this),this.scheduler.schedule(this.timeAd,this,window.sdk.nativeCd,o.REPEAT_FOREVER,window.sdk.nativeCd,!1)),this.openBanner(),this.openCustom(0))}static openCustom(e){if(!qg.createCustomAd)return;var n=this,t=this.bannerWidth,d=this.bannerWidth/1280*720;console.log("vivo 原生尺寸："+t+","+d);var c=s[i.VIVO].nativeId;1==e&&(c=s[i.VIVO].nativeId2);const a=qg.createCustomAd({posId:c,style:{left:n.screenWidth/2-t/2,top:n.screenHeight/2-d/2}});a.onError((function(o){console.log("vivo 原生横图加载失败",o),0==e&&n.openCustom(1)})),a.onClose((()=>{console.log("vivo 原生横图关闭"),a.destroy()})),a.show().then((()=>{console.log("vivo 原生横图展示成功"),1==window.sdk.adSwitch&&1==window.sdk.nPlane&&(n.scheduler.unschedule(n.timeAd,n),n.scheduler.schedule(n.timeAd,n,window.sdk.nativeCd,o.REPEAT_FOREVER,window.sdk.nativeCd,!1))})).catch((function(o){console.log("vivo 原生横图展示失败",JSON.stringify(o)),0==e&&n.openCustom(1)}))}static openInsert(){if(!qg.createInterstitialAd)return;const e=qg.createInterstitialAd({posId:s[i.VIVO].insertId});e.onError((function(e){console.log("vivo 插屏加载失败",e)})),e.show().then((()=>{console.log("vivo 插屏展示成功")})).catch((function(e){console.log("vivo 插屏展示失败",JSON.stringify(e))}))}static isMobileLandscape(){return 90==window.orientation||-90==window.orientation}static openBanner(){if(qg.createBannerAd){var e=this;console.log("openBanner"),0==e.bannerPos?this.bannerAd=qg.createBannerAd({posId:s[i.VIVO].bannerId,adIntervals:30,style:{left:e.screenWidth/2-e.bannerWidth/2,top:0}}):this.bannerAd=qg.createBannerAd({posId:s[i.VIVO].bannerId,adIntervals:30,style:{left:e.screenWidth/2-e.bannerWidth/2,top:e.screenHeight-e.bannerHeight}}),this.bannerAd.onError((function(e){console.log("vivo 横幅加载失败",e)})),this.bannerAd.onSize((function(e){console.log("vivo 横幅尺寸：",e.width+","+e.height)})),this.bannerAd.onClose((()=>{console.log("vivo 横幅关闭")})),this.bannerAd.show().then((()=>{console.log("vivo 横幅展示成功")})).catch((function(e){console.log("vivo 横幅展示失败",JSON.stringify(e))}))}}static hideBanner(){this.bannerAd&&this.bannerAd.hide().then((()=>{console.log("vivo 横幅隐藏成功")})).catch((function(e){console.log("vivo 横幅隐藏失败",JSON.stringify(e))}))}static rewardInit(){if(qg.createRewardedVideoAd){var e=this;this.rewardAd=qg.createRewardedVideoAd({adUnitId:s[i.VIVO].rewardId}),this.rewardAd.onLoad((()=>{console.log("vivo 激励加载完成")})),this.rewardAd.onError((function(n){console.log("vivo 激励加载失败"+n),e.rewardCallback&&e.rewardCallback("fail"),e.showTip("广告加载失败,请稍后重试"),e.rewardAd.load(),e.onSound()})),this.rewardAd.onClose((function(n){n&&n.isEnded?(console.log("vivo 激励播放结束"),e.rewardCallback&&(e.rewardCallback("success"),e.showTip("成功下发奖励"),e.onSound())):(console.log("vivo 激励播放中途退出"),e.rewardCallback&&e.rewardCallback("cancel"),e.showTip("观看完整视频才能下发奖励噢~"),e.onSound()),e.rewardAd.load()}))}}static openVideo(e){this.offSound(),this.rewardCallback=e,this.rewardAd?this.rewardAd.show():e&&(this.openCustom(0),e("success"),this.showTip("成功下发奖励"),this.onSound())}static showTip(e){console.log("showTip:"+e),qg.showToast({message:e})}static showDialog(e,n,o){qg.showDialog({title:e,message:n,buttons:[{text:"确定",color:"#33dd44"},{text:"取消",color:"#33dd44"}],success:function(e){console.log("handling callback"+e.index),0==e.index&&o&&o()},cancel:function(){console.log("handling cancel")}})}static installShortcut(){qg.hasShortcutInstalled({success:function(e){e?(console.log("已创建"),window.sdk.showTip("已创建桌面图标")):(console.log("未创建"),qg.installShortcut({success:function(){console.log("创建成功")}}))}})}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}e("default",d),d.screenWidth=0,d.screenHeight=0,d.bannerAd=void 0,d.bannerWidth=1080,d.bannerHeight=void 0,d.bannerPos=0,d.rewardAd=void 0,d.rewardCallback=void 0,d.rewardInitSuc=!1,d.scheduler=null,t._RF.pop()}}}));

System.register("chunks:///_virtual/WarehouseMgr.ts",["cc","./ItemDefine.ts","./ItemInfo.ts","./GameDefine.ts","./UIDefine.ts"],(function(e){"use strict";var t,s,h,a,n,o,i,c,m,u;return{setters:[function(e){t=e.cclegacy,s=e._decorator,h=e.Component},function(e){a=e.ItemType,n=e.FangjuType,o=e.WuqiType},function(e){i=e.ItemInfo,c=e.ItemStoredType},function(e){m=e.GameScene},function(e){u=e.WhsMenuType}],execute:function(){var M,r;t._RF.push({},"e27d8zHUfNI8LXOb9hKzLjq","WarehouseMgr",void 0);const{ccclass:y,property:l}=s;e("WarehouseMgr",y("WarehouseMgr")(((r=class e extends h{constructor(...e){super(...e),this.whsMap=new Map,this.whsDatas=[],this.whsItems=[],this.menuType=u.全部,this.checkItems=[]}static get menuType(){return this.Instance.menuType}static get whsUsed(){return this.Instance.whsItems.length}onLoad(){e.Instance=this,My.Event.on(My.events.game_load,this.loadData,this),My.Event.on(My.events.elect_whs_checkbox,this.checkItem_State,this)}loadData(){My.Event.off(My.events.game_load,this.loadData,this),this.whsDatas=My.Data.getWarehouseItems(),this.updateData()}updateData(){this.whsItems=[],this.whsMap=new Map,this.whsDatas.forEach((e=>{let t=new i;if(t.config=My.Item.Instance.getItemConfig(e.id),t.stored=c.仓库,t.data=e,this.whsMap.has(e.id)){this.whsMap.get(e.id).push(t)}else{let s=[];s.push(t),this.whsMap.set(e.id,s)}this.whsItems.push(t)})),this.whsItem_Sort(),My.Event.emit(My.events.update_whs_value)}enoughByItem(e,t){let s=this.whsItems.length;if(this.whsMap.has(e.id)){if(e.stacked){if(s+1<=My.Data.warehouse)return!0;{let s=this.whsMap.get(e.id);return s[s.length-1].count+t<=999}}return s+t<=My.Data.warehouse}return e.stacked?s+1<=My.Data.warehouse:s+t<=My.Data.warehouse}enoughByCount(e){return this.whsItems.length+e<=My.Data.warehouse}whsItem_GuideHas(){let e=!1;return this.whsMap.forEach((t=>{let s=t[0];switch(s.type){case a.武器:return e||s.kind==o.手枪||s.kind==o.近战||(e=!0),e;case a.防具:return e||s.kind==n.背包||(e=!0),e}})),e}whsItem_Has(e){return this.whsMap.has(e)?this.whsMap.get(e)[0].count:0}whsItem_Push(e){if(e.count>0){let t=My.Item.Instance.getItemConfig(e.id);if(this.whsMap.has(e.id)){let s=this.whsMap.get(e.id);if(t.stack>1){let h=s[s.length-1].addCount(e.count);if(h>0){let a=Tool.CommonUtil.StoredInfo(t,e,c.仓库,h);s.push(a),this.whsItems.push(a),this.whsDatas.push(a.data)}}else for(let h=0;h<e.count;h++){let h=Tool.CommonUtil.StoredInfo(t,e,c.仓库,1);s.push(h),this.whsItems.push(h),this.whsDatas.push(h.data)}}else{let s=[];if(t.stack>1){let h=Tool.CommonUtil.StoredInfo(t,e,c.仓库);s.push(h),this.whsDatas.push(h.data),this.whsItems.push(h),this.whsMap.set(h.id,s)}else{for(let h=0;h<e.count;h++){let h=Tool.CommonUtil.StoredInfo(t,e,c.仓库,1);s.push(h),this.whsItems.push(h),this.whsDatas.push(h.data)}this.whsMap.set(e.id,s)}}}else My.Game.gameErr("仓库>添加>",e.id,">数量为0")}whsItem_Remove(e,t){let s=this.whsMap.get(e);s&&(s[0].lessCount(t),this.removeItem(s[0]))}whsItem_Sell(e,t,s){e.lessCount(t),this.removeItem(e),My.Data.money+=s,My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_money),My.Msg.showMessage(My.msgcode.出售成功+s+My.Item.Instance.getCurrencyName(1))}whsItem_to_Pack(e,t){e.type!=a.杂物||e.id>9e4?My.Pack.Instance.pack_EnoughByCount([[e.config,t]])?(My.Pack.Instance.packItem_Push(Tool.CommonUtil.StoredData(e.data,t)),e.lessCount(t),this.removeItem(e),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Msg.showMessage(My.msgcode.存入背包)):My.Msg.showMessage(My.msgcode.背包空间不足):My.Msg.showMessage(My.msgcode.不可携带)}whsItem_Equiped(e,t){if(My.Pack.Instance.canEquiped(e)){let s=Tool.CommonUtil.CopyInfo(e);e.lessCount(e.count),this.removeItem(e,!1),My.Pack.Instance.equipItem_Push(s,m.主页,t),My.Msg.showMessage(My.msgcode.装备成功)}else My.Msg.showMessage(My.msgcode.装配不匹配)}whsItem_Sort(){let e=this.whsItems.sort(((e,t)=>e.id-t.id));this.whsItems=e,My.Event.emit(My.events.update_whs)}removeItem(e,t=!0){if(this.whsMap.has(e.id)){let s=this.whsMap.get(e.id);s.forEach((async t=>{t==e&&t.count<=0&&(Tool.ArrayUtil.RemoveItem(this.whsDatas,t.data),Tool.ArrayUtil.RemoveItem(s,t),Tool.ArrayUtil.RemoveItem(this.whsItems,e))})),s.length<=0&&this.whsMap.delete(e.id),t&&My.Data.saveWarehouseData()}else My.Game.gameErr("仓库>移除物品>"+e.id+">不存在")}checkItem_State(e){this.checkItems=[],My.Event.emit(My.events.update_whs_checkbox,0)}checkItem_Push(e){this.checkItems.push(e),this.checkItem_Update()}checkItem_Remove(e){Tool.ArrayUtil.RemoveItem(this.checkItems,e),this.checkItem_Update()}checkItem_Sell(){if(this.checkItems.length>0){let e=0;this.checkItems.forEach((t=>{e+=t.sell*t.count,t.lessCount(t.count),this.removeItem(t,!1)})),this.checkItems=[],My.Data.saveWarehouseData(),My.Data.money+=e,My.Event.emit(My.events.update_money),My.Event.emit(My.events.update_whs),My.Event.emit(My.events.update_whs_value),My.Event.emit(My.events.update_whs_checkbox,0),My.Msg.showMessage(My.msgcode.出售成功+e+My.Item.Instance.getCurrencyName(1))}else My.Msg.showMessage(My.msgcode.无选择)}checkItem_Update(){let e=0;this.checkItems.forEach((t=>{e+=t.sell*t.count})),My.Event.emit(My.events.update_whs_checkbox,e)}setMenuSelect(e){this.menuType=e,My.Event.emit(My.events.elect_whs_menu,this.menuType)}static getItemCount(e){let t=0,s=this.Instance.whsMap.get(e);return s&&s.forEach((e=>{t+=e.count})),t}static compareType(e){switch(this.Instance.menuType){case u.全部:return!0;case u.武器:return e==a.武器;case u.防具:return e==a.防具;case u.配件:return e==a.配件;case u.弹药:return e==a.子弹||e==a.投掷物;case u.药品:return e==a.药品;case u.杂物:return e==a.杂物}}}).Instance=null,M=r))||M);t._RF.pop()}}}));

System.register("chunks:///_virtual/Weapon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDefine.ts","./GameDefine.ts","./Bullet.ts"],(function(e){"use strict";var t,a,i,l,s,n,u,r,o,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){i=e.cclegacy,l=e.Node,s=e._decorator,n=e.Component,u=e.Vec2},function(e){r=e.WuqiType},function(e){o=e.GameTags},function(e){h=e.BulletParme}],execute:function(){var d,p,m,c,g;i._RF.push({},"0677dLcfHtIWYhQizx+k2pf","Weapon",void 0);const{ccclass:b,property:y}=s;e("Weapon",(d=b("Weapon"),p=y({type:l,displayName:"枪口"}),d((g=t((c=class extends n{constructor(...e){super(...e),a(this,"muzzle",g,this),this.equip=null,this.moaAngle=0,this.ergonomic=0,this.bulletPrefab=void 0,this.bulletCount=0,this.bulletSpeed=0,this.bulletRange=0,this.bulletDamage=0}get reloading(){return null!=this.equip&&this.equip.reloading}get type(){return null!=this.equip?this.equip.data.kind:null}async load(e){this.equip=e}unload(){this.equip=null}aimState(e){}reload(){}attack(){}setBulletPrefab(){this.equip.data.kind==r.近战?this.bulletPrefab=My.Play.prefabs.melee:this.equip.data.kind==r.榴弹发射器?this.bulletPrefab=My.Play.prefabs.grenade:this.bulletPrefab=My.Play.prefabs.bullet}getMeleeParam(){this.bulletDamage<=0&&(this.bulletDamage=this.equip.data.atkadd),this.bulletRange<=0&&(this.bulletRange=this.equip.data.range);let e=this.muzzle.worldPosition.subtract(this.node.worldPosition).normalize(),t=new h;return My.Game.cheat.cheat_damage?t.damage=999:t.damage=this.bulletDamage,t.dir=new u(e.x,e.y),t.range=this.bulletRange,t.belong=o.玩家,t.endurance=0,t.speed=100,t.pierce=0,t.radius=0,t}getBulletParams(e){this.bulletDamage<=0&&(this.bulletDamage=Tool.CommonUtil.ParseDamage(this.equip.data,this.equip.ammo)),this.bulletRange<=0&&(this.bulletRange=this.equip.data.range),this.bulletSpeed<=0&&(this.bulletSpeed=this.equip.data.speed);let t=this.muzzle.worldPosition.subtract(this.node.worldPosition).normalize(),a=Tool.MathUtil.vectorCovertAngle(t),i=[];for(let l=0;l<e;l++){let s=new h;switch(e){case 1:My.Game.cheat.cheat_moa?s.dir=new u(t.x,t.y):s.dir=Tool.MathUtil.randomDirByAngle(a-this.moaAngle,a+this.moaAngle);break;case 5:s.dir=Tool.MathUtil.dirByAngle(a-6+3*l)}My.Game.cheat.cheat_damage?s.damage=999:s.damage=this.bulletDamage,s.endurance=this.equip.ammo.endDamage,s.pierce=this.equip.ammo.pierce,s.radius=this.equip.ammo.radius,s.range=this.bulletRange,s.speed=this.bulletSpeed,s.belong=o.玩家,i.push(s)}return i}}).prototype,"muzzle",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=c))||m));i._RF.pop()}}}));

System.register("chunks:///_virtual/WhsItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,n,s,a,c,h,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Sprite,a=t.Label,c=t.Node,h=t._decorator,o=t.Component}],execute:function(){var l,r,u,p,y,m,b,f,d,g,v,k,_;n._RF.push({},"e463eNh/AtEuIKqx7TjqMBs","WhsItem",void 0);const{ccclass:M,property:I}=h;t("WhsItem",(l=M("WhsItem"),r=I({type:s,displayName:"品质"}),u=I({type:s,displayName:"图像"}),p=I({type:a,displayName:"名称"}),y=I({type:a,displayName:"数量"}),m=I({type:c,displayName:"多选"}),l((d=e((f=class extends o{constructor(...t){super(...t),i(this,"quality",d,this),i(this,"image",g,this),i(this,"nameLabel",v,this),i(this,"countLabel",k,this),i(this,"checkbox",_,this),this.inited=!1,this.checked=!1,this.info=null}init(){this.inited=!1,this.node.active=!1,this.nameLabel.string="",this.countLabel.string="",this.checkbox.active=!1,this.image.spriteFrame=null,this.quality.spriteFrame=null,My.Event.on(My.events.elect_whs_menu,this.type_State,this),My.Event.on(My.events.elect_whs_checkbox,this.check_State,this)}async show(t){this.inited=!0,this.info=t,this.info?(this.quality.spriteFrame=My.Item.Instance.getQualitySprite(this.info.quality),this.image.spriteFrame=await My.Item.Instance.getItemIcon(this.info.image),this.countLabel.string=this.info.count>1?this.info.count.toString():"",this.nameLabel.string=this.info.name,this.checkbox.active=!1,this.type_State()):(this.quality.spriteFrame=null,this.image.spriteFrame=null,this.checkbox.active=!1,this.nameLabel.string="",this.countLabel.string="",this.node.active=!0)}hide(){this.info=null,this.inited=!1,this.node.active=!1}type_State(t){0!=this.inited&&(null==t&&(t=My.Whs.menuType),this.node.active=My.Whs.compareType(this.info.type))}check_State(t){this.checkbox.active=!1,this.checked=t}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),this.checked?this.checkbox.active?(this.checkbox.active=!1,My.Whs.Instance.checkItem_Remove(this.info)):(this.checkbox.active=!0,My.Whs.Instance.checkItem_Push(this.info)):My.Event.emit(My.events.pop_item,this.info)}}).prototype,"quality",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(f.prototype,"image",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(f.prototype,"nameLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(f.prototype,"countLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(f.prototype,"checkbox",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=f))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/WhsMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefine.ts","./MenuBase.ts"],(function(e){"use strict";var t,n,i,s,r,o,c,u,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,s=e.Enum,r=e.Sprite,o=e._decorator,c=e.Color},function(e){u=e.WhsMenuType},function(e){l=e.MenuBase}],execute:function(){var a,p,y,h,M,f,m;i._RF.push({},"60d0cvQBtZJs5+cYRd75vFT","WhsMenu",void 0);const{ccclass:d,property:_}=o;e("WhsMenu",(a=d("WhsMenu"),p=_({type:s(u),displayName:"类型"}),y=_({type:r,displayName:"图像"}),a((f=t((M=class extends l{constructor(...e){super(...e),n(this,"type",f,this),n(this,"image",m,this),this.colors=[(new c).fromHEX("#9C9C9C"),(new c).fromHEX("#D25A30")]}init(){My.Event.on(My.events.elect_whs_menu,this.elect_Menu,this)}elect_Menu(e){this.image.color=this.colors[e==this.type?1:0]}onClick_Selected(){My.Sound.playSfx(My.sounds.ui_click_common),My.Whs.Instance.setMenuSelect(this.type)}}).prototype,"type",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.全部}}),m=t(M.prototype,"image",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=M))||h));i._RF.pop()}}}));

System.register("chunks:///_virtual/WhsView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GuideDefine.ts","./WhsItem.ts","./MenuBase.ts","./AnchorItem.ts","./UIDefine.ts","./ViewBase.ts"],(function(e){"use strict";var t,s,i,n,a,o,c,h,r,l,u,y,p,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Prefab,a=e.Node,o=e._decorator,c=e.instantiate},function(e){h=e.GuideStep},function(e){r=e.WhsItem},function(e){l=e.MenuBase},function(e){u=e.AnchorItem},function(e){y=e.WhsMenuType},function(e){p=e.ViewBase,d=e.ViewType}],execute:function(){var f,m,M,w,_,b,I,S,g,v,k,x,W,B,N;i._RF.push({},"3fd90sW3DhLeriId2l/shKk","WhsView",void 0);const{ccclass:V,property:C}=o;e("WhsView",(f=V("WhsView"),m=C({type:[u],displayName:"锚点动画"}),M=C({type:[l],displayName:"菜单按钮"}),w=C({type:n,displayName:"物品预制"}),_=C({type:a,displayName:"仓库节点"}),b=C({type:a,displayName:"正常底栏"}),I=C({type:a,displayName:"批量底栏"}),f((v=t((g=class extends p{constructor(...e){super(...e),s(this,"anchors",v,this),s(this,"menus",k,this),s(this,"prefab",x,this),s(this,"whsNode",W,this),s(this,"defaultBar",B,this),s(this,"batchBar",N,this),this.whsItems=[]}init(){this.menus.forEach((e=>{e.init()})),this.node.active=!1,My.Event.on(My.events.update_whs,this.update_Data,this),My.Event.on(My.events.elect_whs_checkbox,this.checkbox_State,this)}show(e){My.Sound.playSfx(My.sounds.ui_view_whs),this.reset_State(),e&&e()}hide(e){this.node.active=!1,e&&e()}update_Data(){if(null==this.prefab)return;My.Game.gameLog("仓库刷新x"+My.Whs.Instance.whsItems.length),this.whsItems.forEach((e=>{e.hide()}));let e=My.Whs.Instance.whsItems.length-this.whsItems.length;if(e>0)for(let t=0;t<e;t++){let e=c(this.prefab);e.setParent(this.whsNode);let t=e.getComponent(r);t.init(),this.whsItems.push(t)}for(let e=0;e<My.Whs.Instance.whsItems.length;e++)this.whsItems[e].show(My.Whs.Instance.whsItems[e])}reset_State(){this.anchors.forEach((e=>{e.init()})),this.node.active=!0,this.anchors.forEach((e=>{e.show()})),My.Whs.Instance.setMenuSelect(y.全部),My.Event.emit(My.events.elect_whs_checkbox,!1)}checkbox_State(e){this.defaultBar.active=!e,this.batchBar.active=e}onClick_Close(){My.Sound.playSfx(My.sounds.ui_click_common),My.UI.Instance.showView(d.主页视图),My.UI.Instance.hideView(d.战备视图),My.UI.Instance.hideView(d.背包视图),My.Guide.guideCheck(h.黑市引导)}onClick_Sort(){My.Sound.playSfx(My.sounds.ui_other_stored),My.Whs.Instance.whsItem_Sort(),My.Msg.showMessage(My.msgcode.整理完成)}onClick_Batch(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_whs_checkbox,!0)}onClick_BatchClose(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.elect_whs_checkbox,!1)}onClick_BatchSell(){My.Sound.playSfx(My.sounds.ui_click_common),My.Whs.Instance.checkItem_Sell()}}).prototype,"anchors",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),k=t(g.prototype,"menus",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),x=t(g.prototype,"prefab",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=t(g.prototype,"whsNode",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(g.prototype,"defaultBar",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(g.prototype,"batchBar",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=g))||S));i._RF.pop()}}}));

System.register("chunks:///_virtual/WithItem.ts",["cc"],(function(t){"use strict";var e,c,s;return{setters:[function(t){e=t.cclegacy,c=t.Component,s=t._decorator}],execute:function(){var r;e._RF.push({},"2cabe/2qy5K7pT1T5rZJ+CO","WithItem",void 0);const{ccclass:n,property:o}=s;t("WithItem",n("WithItem")(r=class extends c{load(){}unload(){}})||r);e._RF.pop()}}}));

System.register("chunks:///_virtual/WithView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PanelBase.ts","./ViewBase.ts"],(function(e){"use strict";var t,i,n,o,s,a,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Node,s=e._decorator},function(e){a=e.PanelBase},function(e){l=e.ViewBase}],execute:function(){var r,c,u,y,p,d,h,_,f,m,M,b,k;n._RF.push({},"76e72flWchB6JLD/tFQR16/","WithView",void 0);const{ccclass:v,property:S}=s;e("WithView",(r=v("WithView"),c=S({type:o,displayName:"开门操作"}),u=S({type:o,displayName:"打开操作"}),y=S({type:o,displayName:"退出操作"}),p=S({type:a,displayName:"物品使用"}),d=S({type:a,displayName:"附近物资"}),r((f=t((_=class extends l{constructor(...e){super(...e),i(this,"doorNode",f,this),i(this,"openNode",m,this),i(this,"exitNode",M,this),i(this,"usedPanel",b,this),i(this,"nearbyPanel",k,this),this.keydoor=null}init(){this.node.active=!1,this.nearbyPanel.init(),this.usedPanel.init(),My.Event.on(My.events.play_exitpoint,this.exit_State,this),My.Event.on(My.events.play_keydoor,this.door_State,this),My.Event.on(My.events.play_box,this.open_State,this)}show(e){this.resetAll(),this.node.active=!0}hide(e){this.node.active=!1}resetAll(){this.door_State(null),this.open_State(!1),this.exit_State(!1),this.usedPanel.hide(),this.nearbyPanel.hide()}onClick_Door(){My.Sound.playSfx(My.sounds.ui_click_common);let e=My.Pack.Instance.packItem_Has(this.keydoor.keyID);if(null==e){let e=My.msgcode.开启条件.replace("{}",this.keydoor.key.name);My.Msg.showMessage(e)}else this.keydoor.unlock(),My.Pack.Instance.packItem_Used(e,1)}onClick_Open(){My.Sound.playSfx(My.sounds.ui_click_common),My.Event.emit(My.events.pop_search,!0),this.open_State(!1)}onClick_Exit(){My.Sound.playSfx(My.sounds.ui_click_common),My.Play.Instance.exited()}door_State(e){this.keydoor=e,this.doorNode.active=!(null==e)}open_State(e){this.openNode.active=e}exit_State(e){this.exitNode.active=e}}).prototype,"doorNode",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(_.prototype,"openNode",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(_.prototype,"exitNode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=t(_.prototype,"usedPanel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(_.prototype,"nearbyPanel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=_))||h));n._RF.pop()}}}));

System.register("chunks:///_virtual/WuqiConfig.ts",["cc","./ItemConfig.ts"],(function(i){"use strict";var t,o,s;return{setters:[function(i){t=i.cclegacy,o=i._decorator},function(i){s=i.ItemConfig}],execute:function(){var e;t._RF.push({},"a82149gTdRL5aw9ROFkVeDU","WuqiConfig",void 0);const{ccclass:c,property:d}=o;i("WuqiConfig",c("WuqiConfig")(e=class extends s{constructor(...i){super(...i),this.kind=0,this.ammo=0,this.end=void 0,this.atkadd=void 0,this.range=void 0,this.rate=void 0,this.speed=void 0,this.moa=void 0,this.rds=void 0,this.reload=void 0,this.acc=void 0,this.acc_sight=void 0,this.acc_muzzle=void 0,this.ergonomic=void 0,this.open_level=void 0}})||e);t._RF.pop()}}}));

System.register("chunks:///_virtual/wx.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var n,t,o;return{setters:[function(e){n=e.cclegacy},function(e){t=e.AdIDS,o=e.default}],execute:function(){n._RF.push({},"ed657c+jO1GrLJMVg+7QrrR","wx",void 0);class i{static init(){console.log("wx init"),this.rewardInit(),this.openGridAd({adUnitId:t[o.WX].moreGridId,adIntervals:30,style:{left:wx.getWindowInfo().windowWidth/3,top:wx.getWindowInfo().windowHeight/11,width:50,fixed:!0}},{adUnitId:t[o.WX].moreGridId,adIntervals:30,style:{left:wx.getWindowInfo().windowWidth/3,top:wx.getWindowInfo().windowHeight/11,width:50,height:50},adTheme:"white",gridCount:5}),this.openInsert(),this.showShareMenu(),this.loadRecommend()}static changeState(e){console.log("wx changeState:"+e),this.sceneNum=e,3==e?(this.openInsert(),this.openBanner(),this.showRecommend()):this.hideBanner(),this.bSHowInsert2&&(5!=e&&6!=e&&12!=e||this.openInsert())}static resetInsert(e){this.bSHowInsert&&(this.bSHowInsert=!1,setTimeout((()=>{this.bSHowInsert=!0,console.log("可以弹插屏")}),1e3*e))}static resetBanner(e){this.bSHowBanner&&(this.bSHowBanner=!1,setTimeout((()=>{this.bSHowBanner=!0,console.log("可以弹Banner")}),1e3*e))}static openInsert(){if(!wx.createInterstitialAd)return;if(!this.bSHowInsert)return;var e=this;const n=wx.createInterstitialAd({adUnitId:t[o.WX].insertId});n.load().then((()=>{n.show(),e.resetInsert(5),5!=e.sceneNum&&6!=e.sceneNum&&12!=e.sceneNum||(e.bSHowInsert2=!1,setTimeout((()=>{e.bSHowInsert2=!0}),3e4))}))}static openBanner(){if(this.bSHowBanner){var e=this,n=wx.getWindowInfo(),i=window.sdk.isMobileLandscape()?n.windowWidth/2:n.windowWidth,s=window.sdk.isMobileLandscape()?(n.windowWidth-i)/2:0,a=1==this.bannerPos?n.windowHeight-150:0;wx.createCustomAd?this.bannerAd=wx.createCustomAd({adUnitId:t[o.WX].bannerId,adIntervals:30,style:{left:s,top:a,width:i,fixed:!0}}):wx.createBannerAd&&(this.bannerAd=wx.createBannerAd({adUnitId:t[o.WX].bannerId,adIntervals:30,style:{left:s,top:a,width:i,height:50}})),this.bannerAd&&(this.bannerAd.onError((function(e){console.log("wx banner onError",JSON.stringify(e))})),this.bannerAd.onLoad((function(n){console.log("wx banner onLoad",JSON.stringify(n)),e.bannerAd.show(),e.resetBanner(30)})),this.bannerAd.onResize((function(e){console.log("wx banner onResize",JSON.stringify(e))})))}}static hideBanner(){this.bannerAd&&this.bannerAd.hide()}static rewardInit(){if(wx.createRewardedVideoAd){var e=this;this.rewardAd=wx.createRewardedVideoAd({adUnitId:t[o.WX].rewardId}),this.rewardAd.onLoad((function(){console.log("wx 激励加载完成")})),this.rewardAd.onError((function(n){console.log("wx 激励加载失败"+JSON.stringify(n)),e.rewardCallback&&e.rewardCallback("fail"),e.showTip("广告加载失败,请稍后重试"),this.onSound()})),this.rewardAd.onClose((n=>{n&&n.isEnded?(console.log("wx 激励播放结束"),e.rewardCallback&&(e.rewardCallback("success"),e.showTip("成功下发奖励"),this.onSound())):(console.log("wx 激励播放中途退出"),e.rewardCallback&&e.rewardCallback("cancel"),e.showTip("观看完整视频才能下发奖励噢~"),this.onSound())}))}}static openVideo(e){this.offSound(),this.rewardCallback=e,this.rewardAd?this.rewardAd.show():e&&(e("fail"),this.showTip("广告加载失败,请稍后重试"),this.onSound())}static openGridAd(e,n){var t;wx.createCustomAd&&e?t=wx.createCustomAd(e):wx.createGridAd&&n&&(t=wx.createGridAd(n)),t&&(t.onError((function(e){console.log("wx grid onError",JSON.stringify(e))})),t.onLoad((function(e){console.log("wx grid onLoad",JSON.stringify(e)),t.show()})),t.onResize((function(e){console.log("wx grid onResize",JSON.stringify(e))})))}static showTip(e){wx.showToast({title:e,duration:2e3,success(e){console.log(`${e}`)},fail(e){console.log("showToast调用失败")}})}static showDialog(e,n,t){wx.showModal({title:e,content:n,success(e){e.confirm?(console.log("confirm, continued"),t()):e.cancel&&console.log("cancel, cold")},fail(e){console.log("showModal调用失败")}})}static installShortcut(){}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}static share(){var e=window.sdk.random(0,t[o.WX].shareId.length);wx.shareAppMessage({imageUrlId:t[o.WX].shareId[e],imageUrl:t[o.WX].shareUrl[e]})}static showShareMenu(){wx.showShareMenu({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})}static async loadRecommend(){if(!wx.createPageManager)throw"当前基础库版本暂不支持。";this.recommendPageManager=wx.createPageManager(),await this.recommendPageManager.load({openlink:"TWFRCqV5WeM2AkMXhKwJ03MhfPOieJfAsvXKUbWvQFQtLyyA5etMPabBehga950uzfZcH3Vi3QeEh41xRGEVFw"})}static async showRecommend(){return this.recommendPageManager||await this.loadRecommend(),await this.recommendPageManager.show()}}e("default",i),i.bSHowInsert=!0,i.bSHowBanner=!0,i.bannerAd=void 0,i.bannerPos=1,i.rewardAd=void 0,i.rewardCallback=void 0,i.bSHowInsert2=!0,i.recommendPageManager=void 0,i.sceneNum=0,n._RF.pop()}}}));

System.register("chunks:///_virtual/xiaomi.ts",["cc","./ChannelID.ts"],(function(e){"use strict";var i,o,t,n,s,a,d;return{setters:[function(e){i=e.director,o=e.macro,t=e.misc,n=e.find,s=e.cclegacy},function(e){a=e.AdIDS,d=e.default}],execute:function(){s._RF.push({},"92fd9DJzxJESqheqz62c8z9","xiaomi",void 0);class r{static init(){var e=this;qg.getSystemInfo({success:function(i){console.log(`xiaomi SystemInfo， screenWidth = ${i.screenWidth}， screenHeight = ${i.screenHeight}， screenHeight = ${i.platformVersionCode}`),e.screenWidth=i.screenWidth,e.screenHeight=i.screenHeight,e.platformVersionCode=i.platformVersionCode}}),this.rewardInit()}static timeAd(){1==window.sdk.nPlane?this.openAd():window.sdk.nPlane}static openAd(){this.platformVersionCode>=1110?(this.adNum++,this.adNum%2==0?this.openInsert():this.openCustom()):this.openInsert()}static changeState(e){console.log("changeState:"+e),1==window.sdk.adSwitch&&(null==this.scheduler&&0!=window.sdk.nPlane&&(this.scheduler=i.getScheduler(),this.scheduler.enableForTarget(this),this.scheduler.schedule(this.timeAd,this,window.sdk.nativeCd,o.REPEAT_FOREVER,window.sdk.nativeCd,!1)),this.openBanner(),this.openAd())}static openInsert(){var e=this;let i=qg.createInterstitialAd({adUnitId:a[d.XIAOMI].insertId});i.onLoad((()=>{console.log("xiaomi 插屏广告加载成功"),i.show(),1==window.sdk.adSwitch&&1==window.sdk.nPlane&&(e.scheduler.unschedule(e.timeAd,e),e.scheduler.schedule(e.timeAd,e,window.sdk.nativeCd,o.REPEAT_FOREVER,window.sdk.nativeCd,!1))})),i.onError((e=>{console.log("xiaomi 插屏 err:"+e.errCode+","+e.errMsg)})),this.platformVersionCode>=1300&&i.onClick((e=>{console.log("xiaomi 插屏 click:"+e),i.destroy()}))}static openCustom(){var e=this;let i=qg.createCustomAd({adUnitId:a[d.XIAOMI].nativeId,style:{left:t.clampf((e.screenWidth-600)/2,0,1e3),top:e.screenHeight/2-150,width:600,height:300}});i.onError((e=>{console.log("xiaomi CustomAd err:"+e.errCode+","+e.errMsg)})),i.onShow((()=>{console.log("xiaomi customAd广告显示"),1==window.sdk.adSwitch&&1==window.sdk.nPlane&&(e.scheduler.unschedule(e.timeAd,e),e.scheduler.schedule(e.timeAd,e,window.sdk.nativeCd,o.REPEAT_FOREVER,window.sdk.nativeCd,!1))})),i.onClose((()=>{console.log("xiaomi customAd广告关闭"),i.hide(),i.destroy()})),this.platformVersionCode>=1300&&i.onClick((()=>{console.log("xiaomi customAd广告点击"),i.hide(),i.destroy()})),i.show()}static nativeInit(){var e=this;qg.createNativeAd&&(this.nativeAd=qg.createNativeAd({adUnitId:a[d.XIAOMI].nativeId}),this.nativeAd.onLoad((function(i){i&&i.adList?(console.log("xiaomi 原生 加载完成",JSON.stringify(i.adList)),e.bInitNative?(n("NativeMgr/NativeAd").getComponent("NativeAd").show(i.adList,e.nativeAd),e.bShowNative=!1,setTimeout((()=>{e.bShowNative=!0}),3e4)):e.bInitNative=!0):console.log("xiaomi 原生 加载失败")})),this.nativeAd.onError((function(e){console.log("xiaomi 原生 失败",JSON.stringify(e))})))}static openNative(){this.bShowNative&&this.nativeAd.load()}static openBanner(){if(qg.createBannerAd){var e=this;if(this.bShowBanner){var i=t.clampf(this.screenWidth,200,400),o=i/400*100;0==this.bannerPos?this.bannerAd=qg.createBannerAd({adUnitId:a[d.XIAOMI].bannerId,style:{top:0,left:t.clampf((e.screenWidth-i)/2,0,1e3),width:i,height:o},adIntervals:30}):this.bannerAd=qg.createBannerAd({adUnitId:a[d.XIAOMI].bannerId,style:{top:e.screenHeight-o,left:t.clampf((e.screenWidth-i)/2,0,1e3),width:i,height:o},adIntervals:30}),this.bannerAd.onError((e=>{console.log("xiaomi 横幅加载失败",JSON.stringify(e))})),this.bannerAd.onResize((e=>{console.log("xiaomi 横幅尺寸：",e.width+","+e.height)})),this.bannerAd.onClose((()=>{console.log("xiaomi 横幅关闭"),e.hideBanner()})),this.bannerAd.show().then((()=>{console.log("xiaomi 横幅展示成功"),e.bShowBanner=!1})).catch((e=>{console.log("xiaomi 横幅展示失败",JSON.stringify(e))})),this.platformVersionCode>=1300&&this.bannerAd.onClick((i=>{console.log("xiaomi 横幅click:"+i),e.hideBanner()}))}}}static hideBanner(){this.bannerAd&&(this.bShowBanner=!0,this.bannerAd.hide(),this.bannerAd.destroy())}static rewardInit(){if(qg.createRewardedVideoAd){var e=this;this.rewardAd=qg.createRewardedVideoAd({adUnitId:a[d.XIAOMI].rewardId}),this.rewardAd.onLoad((()=>{console.log("xiaomi 激励加载完成")})),this.rewardAd.onError((i=>{console.log("xiaomi 激励加载失败"+i),e.rewardCallback&&e.rewardCallback("fail"),e.showTip("广告加载失败,请稍后重试"),e.rewardAd.load(),this.onSound()})),this.rewardAd.onClose((i=>{i&&i.isEnded?(console.log("xiaomi 激励播放结束"),e.rewardCallback&&(e.rewardCallback("success"),e.showTip("成功下发奖励"),e.onSound())):(console.log("xiaomi 激励播放中途退出"),e.rewardCallback&&e.rewardCallback("cancel"),e.showTip("观看完整视频才能下发奖励噢~"),e.onSound()),e.rewardAd.load()}))}}static openVideo(e){this.offSound(),this.rewardCallback=e,this.rewardAd?this.rewardAd.show():e&&(e("fail"),this.showTip("广告加载失败,请稍后重试"),this.onSound())}static showTip(e){console.log("showTip:"+e),qg.showToast({title:e})}static showDialog(e,i,o){qg.showModal({title:e,content:i,success(e){e.confirm?(console.log("用户点击确定"),o&&o()):e.cancel&&console.log("用户点击取消")}})}static installShortcut(){const e=qg.getShortcut();e.install({success(){e.hasInstalled({success(e){e||console.error("桌面图标未创建成功")},fail(){console.error("桌面图标建失败")},complete(){console.log("桌面图标建完成")}})}})}static onSound(){setTimeout((()=>{}),1e3)}static offSound(){}}e("default",r),r.screenWidth=0,r.screenHeight=0,r.platformVersionCode=1050,r.bannerAd=void 0,r.bShowBanner=!0,r.bannerPos=0,r.rewardAd=void 0,r.rewardCallback=void 0,r.nativeAd=void 0,r.bInitNative=!1,r.bShowNative=!0,r.scheduler=null,r.adNum=0,s._RF.pop()}}}));

System.register("chunks:///_virtual/xieyi.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ChannelID.ts"],(function(e){"use strict";var t,n,i,o,l,s,r,a,d,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.Node,l=e._decorator,s=e.Component,r=e.loader,a=e.instantiate,d=e.LabelComponent},function(e){c=e.AdIDS}],execute:function(){var u,p,h,g,b,y,f;i._RF.push({},"775a8ZAYN9L/YSB85MIWJRM","xieyi",void 0);const{ccclass:x,property:m,type:C}=l;e("xieyi",(u=x("xieyi"),p=C(o),h=C(o),u((y=t((b=class extends s{constructor(...e){super(...e),n(this,"nodeLabel",y,this),n(this,"nodeContent",f,this)}start(){var e=this;r.loadRes("company/xieyi_"+c[window.platform].company,((t,n)=>{t?console.log(t):e.setLongText(n.text)}))}setLongText(e){let t=e,n="";do{let e=t.indexOf("\n");if(-1==e)break;for(n+=t.substring(0,e),t=t.substring(e);t.length>0&&"\n"==t[0];)n+=t[0],t=t.substring(1);n.length>100&&(n.length>=1&&"\n"==n[n.length-1]&&(n=n.substring(0,n.length-1)),this.addModule(n),n="")}while(t.length>100);""!=n&&this.addModule(n),""!=t&&this.addModule(t)}addModule(e){let t=a(this.nodeLabel);t.active=!0,t.getComponent(d).string=e,this.nodeContent.addChild(t)}close(){this.node.active=!1}}).prototype,"nodeLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=t(b.prototype,"nodeContent",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=b))||g));i._RF.pop()}}}));

System.register("chunks:///_virtual/YaopinConfig.ts",["cc","./ItemConfig.ts"],(function(t){"use strict";var i,n,e;return{setters:[function(t){i=t.cclegacy,n=t._decorator},function(t){e=t.ItemConfig}],execute:function(){var o;i._RF.push({},"18810aEtF5HWrWCv8Kbe2nk","YaopinConfig",void 0);const{ccclass:s,property:c}=n;t("YaopinConfig",s("YaopinConfig")(o=class extends e{constructor(...t){super(...t),this.kind=0,this.end=0,this.value=0,this.time=0,this.duration=0,this.reduce=0,this.open_level=void 0}})||o);i._RF.pop()}}}));

System.register("chunks:///_virtual/yinsi.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ChannelID.ts"],(function(e){"use strict";var t,n,i,o,s,r,l,a,d,c,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.Node,s=e._decorator,r=e.Component,l=e.loader,a=e.instantiate,d=e.RichText,c=e.Color},function(e){u=e.AdIDS}],execute:function(){var h,I,g,p,b,D,y;i._RF.push({},"aa955KwCLVOE5gHPSu1OdyE","yinsi",void 0);const{ccclass:f,property:S,type:C}=s;e("yinsi",(h=f("yinsi"),I=C(o),g=C(o),h((D=t((b=class extends r{constructor(...e){super(...e),n(this,"nodeLabel",D,this),n(this,"nodeContent",y,this)}start(){var e=this;l.loadRes("company/yinsi_"+u[window.platform].company,((t,n)=>{if(t)return void console.log(t);let i=n.text,o=["尊敬的用户：","请在向我们提交个人信息和数据前，阅读、了解和同意本《隐私政策》","请在使用服务前，仔细阅读、了解本《隐私政策》。如您使用或继续使用相关的产品和服务，即表示您同意我们按照本政策处理您的相关信息","(1) 我们为什么要收集您的信息和数据","(2) 我们将收集哪些数据和信息","(3) 我们将如何使用您的个人信息和数据","因业务需要，确需超出上述范围使用个人信息的，我们将再次征得您的明示同意","(4) 我们将如何委托处理、共享、转让、公开披露您的信息","(5) 未成年人数据的处理","(6) 信息和数据的安全性及措施","(7) 信息和数据完整性","(8) 数据跨境传输","(9) 保留政策","(10) 个人信息管理","(11) 隐私政策更新","(12) 第三方链接、产品及服务","(13) 收集您个人信息的方式","(14) 如何联系我们","操作系统版本号、应用程序信息、设备标识符（如读取ANDROID ID、MEID、SN、SUIC、SUPI、OAID、设备IP、设备ID、wifi的SSID、ICCID、IMEI号、SIM 和 IMSI、移动国家码和我们  Android设备的移动网号等）、加速度传感器、软件安装列表、已安装包名列表、位置、联系人、通话记录、日历、短信、本机电话号码、图片、音视频、设备MAC地址、移动运营商、使用语言、系统设置等系统、设备、应用程序数据和应用内集成的[华为、华为推送]SDK获取加速度传感器。","登录日志、网络请求、访问时间、访问次数、访问IP、应用操作信息（包括下载、安装、切换、更新、卸载）、错误崩溃等信息","定位服务、特定地理位置搜索、导航、查询天气、街景查看","国家代码、地区、小区ID、GPS信息、经纬度、基站信息","昵称、头像、电子邮件地址、收货地址、手机号码、淘宝账号、支付宝账号、QQ号、微信号、微博账号、付款方式、常用联系人信息、车牌号","姓名、个人资料、电话号码和电子邮件地址","姓名、联系方式、电子邮件地址","访问第三方服务商分配的广告ID或其他标签ID、产品服务或用户统计数据","注册时间、注册账号、昵称、头像、账号数据","⑥ Cookie和追踪信息","设备信息（IMEI）","电话权限"];for(let t=0;t<o.length;t++){const n=o[t];i=e.setStress(i,n)}e.setLongText(i),e.nodeLabel.active=!1}))}setLongText(e){let t=e,n="";do{let e=t.indexOf("\n");if(-1==e)break;for(n+=t.substring(0,e),t=t.substring(e);t.length>0&&"\n"==t[0];)n+=t[0],t=t.substring(1);n.length>100&&(n.length>=1&&"\n"==n[n.length-1]&&(n=n.substring(0,n.length-1)),this.addModule(n),n="")}while(t.length>100);""!=n&&this.addModule(n),""!=t&&this.addModule(t)}addModule(e){let t=a(this.nodeLabel);t.active=!0,t.getComponent(d).string=e,this.nodeContent.addChild(t)}setStress(e,t){return e.split(t).join("<color=#"+String(c.RED.toHEX())+"><b>"+t+"</color></b>")}close(){this.node.active=!1}}).prototype,"nodeLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=t(b.prototype,"nodeContent",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b))||p));i._RF.pop()}}}));

System.register("chunks:///_virtual/ZawuConfig.ts",["cc","./ItemConfig.ts"],(function(t){"use strict";var c,n,e;return{setters:[function(t){c=t.cclegacy,n=t._decorator},function(t){e=t.ItemConfig}],execute:function(){var s;c._RF.push({},"fddc2H8e/ZDYZ7F8nBEs82P","ZawuConfig",void 0);const{ccclass:o,property:i}=n;t("ZawuConfig",o("ZawuConfig")(s=class extends e{})||s);c._RF.pop()}}}));

System.register("chunks:///_virtual/ZidanConfig.ts",["cc","./ItemConfig.ts"],(function(t){"use strict";var i,n,s;return{setters:[function(t){i=t.cclegacy,n=t._decorator},function(t){s=t.ItemConfig}],execute:function(){var c;i._RF.push({},"c0322Wcm2VCIZIO31cbYRCy","ZidanConfig",void 0);const{ccclass:e,property:o}=n;t("ZidanConfig",e("ZidanConfig")(c=class extends s{constructor(...t){super(...t),this.kind=0,this.damage=0,this.ct=0,this.radius=0,this.end_damage=0,this.open_level=void 0}})||c);i._RF.pop()}}}));

(function(r) {
  r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main'); 
})(function(mid, cid) {
    System.register(mid, [cid], function (_export, _context) {
    return {
        setters: [function(_m) {
            var _exportObj = {};

            for (var _key in _m) {
              if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
            }
      
            _export(_exportObj);
        }],
        execute: function () { }
    };
    });
});