System.register("chunks:///_virtual/AccountInfoConfig.ts",["cc"],(function(o){"use strict";var t,c;return{setters:[function(o){t=o.cclegacy,c=o._decorator}],execute:function(){var i;t._RF.push({},"fb843DUpqFGVq9Bguifcj9h","AccountInfoConfig",void 0);const{ccclass:n}=c;o("AccountInfoConfig",n("AccountInfoConfig")(i=class{constructor(){this.id=void 0,this.icon=void 0,this.svrName=void 0,this.comboBoxState=void 0,this.promote=void 0,this.detail=void 0}attrs(){return["id","icon","svrName","comboBoxState","promote","detail"]}})||i);t._RF.pop()}}}));

System.register("chunks:///_virtual/ActivityModel.ts",["cc","./Global.ts","./CustomEventMgr.ts","./Controller.ts","./EventDefine.ts"],(function(t){"use strict";var r,e,s,i,o,n;return{setters:[function(t){r=t.cclegacy,e=t._decorator},function(t){s=t.Global},function(t){i=t.CustomEventMgr},function(t){o=t.Controller},function(t){n=t.ActivityEvent}],execute:function(){var h,l;r._RF.push({},"b577f1Phh1ERoi1H+AX9nIN","ActivityModel",void 0);const{ccclass:a}=e;t("ActivityModel",a("ActivityModel")(((l=class t extends o{constructor(){super(),this._adArr=void 0,this._serverArr=void 0,this._loadedArr=void 0,this.isNew=!1,this._adArr=[],this._serverArr=[],this._loadedArr=[]}setAdArr(r){this._serverArr=r,this._loadedArr=[],this._adArr=[],this._adArr.push(t._Default),this.isNew=!1;for(let t=0,e=r.length;t<e;t++){let e=r[t];e.pop_up&&(this.isNew=!0),this.pushArr(e)}}get adArr(){return this._adArr||[t._Default]}get isForcePop(){return this.isNew||!s.isSameDay}pushArr(r){let e=this;this._loadedArr.push(r),this._adArr=this._serverArr.filter((function(t){return-1!=e._loadedArr.indexOf(t)})),this.adArr.length<this._serverArr.length&&this._adArr.push(t._Default),i.fire(n.ON_DATA_CHANGE)}})._Default={url:"activity_en_jpg",gameid:1025,ad_id:99999,agent_sort:"0",pop_up:0,local:1},h=l))||h);r._RF.pop()}}}));

System.register("chunks:///_virtual/ActivityPageItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,c,a,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,c=e.Node,a=e._decorator,s=e.Component}],execute:function(){var n,o,u,l,p;r._RF.push({},"314a1Lc96pIO5xo/1y1h/Ju","ActivityPageItem",void 0);const{ccclass:g,property:m}=a;e("ActivityPageItem",(n=g("ActivityPageItem"),o=m({displayName:"img",type:c}),n((p=t((l=class extends s{constructor(...e){super(...e),i(this,"img",p,this),this._gameId=-1}start(){}set gameId(e){this._gameId=e}get gameId(){return this._gameId}}).prototype,"img",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=l))||u));r._RF.pop()}}}));

System.register("chunks:///_virtual/AdPageView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BigAdPageViewItem.ts","./Img.ts","./EventDefine.ts","./LogUtil.ts","./CustomEventMgr.ts","./ResDefine.ts","./AudioManager.ts","./Global.ts","./GameModel.ts"],(function(e){"use strict";var t,i,n,a,s,r,o,l,g,c,d,h,u,p,m,f,I,w,A,P;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Node,s=e.PageView,r=e._decorator,o=e.Component,l=e.game,g=e.Game,c=e.EventHandler,d=e.instantiate},function(e){h=e.BigAdPageViewItem},function(e){u=e.Img},function(e){p=e.EventType},function(e){m=e.default},function(e){f=e.CustomEventMgr},function(e){I=e.SoundDefine},function(e){w=e.default},function(e){A=e.Global},function(e){P=e.GameModel}],execute:function(){var V,T,v,b,y,C,E,_,N;n._RF.push({},"8b87doUO9pJ1rVJWN27Dg/a","AdPageView",void 0);const{ccclass:x,property:D}=r;e("AdPageView",(V=x("AdPageView"),T=D({displayName:"分页ad item temp",type:a}),v=D({displayName:"pageview",type:s}),b=D({displayName:"indicatorItemTemp",type:a}),V((E=t((C=class extends o{constructor(...e){super(...e),i(this,"adPageItemTemp",E,this),i(this,"pageView",_,this),i(this,"indicatorItemTemp",N,this),this.adList=[],this.indicatorItemArr=[],this.curAdAutoSwitchPassTime=0}start(){this.bindEvent(),A.gameCtrl.getModel(P).initGameAD(A.appAd),this.schedule((()=>{this.curAdAutoSwitchPassTime++,this.curAdAutoSwitchPassTime>=8&&(this.curAdAutoSwitchPassTime=0,this.autoSwitchToNext())}),1),l.on(g.EVENT_SHOW,(()=>{this.scheduleOnce((()=>{this.gamebackAndAdapt()}),.5)}),this)}bindEvent(){let e=new c;e.component="AdPageView",e.handler="pageViewEventHander",e.target=this.node,this.pageView.pageEvents.push(e),f.on(p.UPDATE_GAME_AD,this.reset,this)}reset(e){m.debug("reset:"+e);let t=e;this.adList.length=0;for(let e=0,i=t.length;e<i;e++)this.adList.push(t[e]);this.initIcons()}initIcons(){this.pageView.removeAllPages();let e=this.adList.concat();e.splice(0,0,this.adList[this.adList.length-1]),e.splice(e.length,0,this.adList[0]);for(let s=0;s<e.length;s++){var t,i,n;let r=e[s];if(!r)continue;let o=d(this.adPageItemTemp);this.pageView.addPage(o),o.active=!0,null==(t=o.getChildByName("img"))||null==(i=t.getComponent(u))||i.initImg(r.ab,(()=>{o.getChildByName("net_busy_ani").active=!1})),o.on(a.EventType.TOUCH_END,this.adBtnClick,this),null==(n=o.getComponent(h))||n.initInfo(r)}let s=this.pageView.getPages().length;this.scheduleOnce((()=>{}));for(let e=0;e<this.indicatorItemArr.length;e++)this.indicatorItemArr[e].destroy();this.indicatorItemArr=[];for(let e=0;e<s-2;e++){let e=d(this.indicatorItemTemp);e.parent=this.indicatorItemTemp.parent,e.active=!0,this.indicatorItemArr.push(e)}this.pageView.scrollToPage(1,0),this.pageView.setCurrentPageIndex(1),this.refreshIndicator(this.pageView.getCurrentPageIndex())}gamebackAndAdapt(){this.autoSwitchToNext()}autoSwitchToNext(){let e=0;e=this.pageView.getPages().length==this.pageView.curPageIdx+1?this.pageView.curPageIdx:this.pageView.curPageIdx+1,this.pageView.scrollToPage(e,2)}pageViewEventHander(e,t){if(m.debug("pageViewEventHander, eventstr:"+t),t="scroll-ended"){w.Instance().playEffect(I.sound_drag);let t=e.getPages(),i=e.getCurrentPageIndex();this.refreshIndicator(i);let n=-1;0==i?n=t.length-2:i==t.length-1&&(n=1),-1!=n&&(e.scrollToPage(n,0),e.setCurrentPageIndex(n),this.refreshIndicator(n)),this.curAdAutoSwitchPassTime=0}}refreshIndicator(e){if(0==e||e==this.pageView.getPages.length-1)return;let t=e-1;for(let e=0;e<this.indicatorItemArr.length;e++){let i=this.indicatorItemArr[e];i.getChildByName("page_ad_indicator_select").active=e==t}}adBtnClick(e){let t=e.getCurrentTarget().getComponent(h).bigIconInfo,i=Number(t.target);f.fire(p.ON_CLICK_BIG_ICON,i)}}).prototype,"adPageItemTemp",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(C.prototype,"pageView",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(C.prototype,"indicatorItemTemp",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=C))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/AnimationUtil.ts",["cc"],(function(t){"use strict";var i;return{setters:[function(t){i=t.cclegacy}],execute:function(){i._RF.push({},"186b57sl91BPbW6a+lDb/w/","AnimationUtil",void 0);t("default",class{}),i._RF.pop()}}}));

System.register("chunks:///_virtual/ArrayUtil.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"c3dd3ZU6HBBnrdqCx7YhqQq","ArrayUtil",void 0);e("default",class{static getElementIndex(e,t){return e.findIndex(((e,r,n)=>e==t))}static deleteElement(e,t){let r=this.getElementIndex(e,t);return r>=0&&e.splice(r),r}static createArray(e,t){let r=new Array(e);if(null!=t)for(let e=0;e<r.length;++e)r[e]=t;return r}static deleteElements(e,t,r){let n=[];for(let l=0;l<e.length;++l)r(e[l],t)&&n.push(l);for(let t=n.length-1;t>=0;--t)e.splice(n[t]);return n.length}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/AudioManager.ts",["cc","./ResDefine.ts","./HotUpdateDefine.ts","./Global.ts","./ResManager.ts","./DStorage.ts"],(function(t){"use strict";var s,i,a,e,n,o,u,c,l,d,r;return{setters:[function(t){s=t.cclegacy,i=t._decorator,a=t.Component,e=t.AudioSource,n=t.assetManager,o=t.AudioClip},function(t){u=t.SoundDefine},function(t){c=t.Macro},function(t){l=t.Global},function(t){d=t.ResManager},function(t){r=t.default}],execute:function(){var h,p;t("playBtn",(function(){m.Instance().playEffect(u.sound_click)})),s._RF.push({},"4c2bdb6L55I16pEXjo1NjCd","AudioManager",void 0);const{ccclass:E,property:b,menu:f}=i;let m=t("default",E(h=f("runtime/AudioManager")(((p=class t extends a{constructor(...t){super(...t),this.isInited=!1,this.backgroundUrl="",this.audioSource=null,this.musicEnabled=!0,this.soundEnabled=!0}static Instance(){return this._instance}onLoad(){t._instance=this,t.Instance().loadLocalData(),this.init()}init(){this.isInited||(this.isInited=!0,this.audioSource=this.node.addComponent(e),this.audioSource.playOnAwake=!1,this.audioSource.loop=!0,this.playMusicBG())}musicOn(){this.musicEnabled&&(this.audioSource.volume=1)}musicOff(){this.musicEnabled&&(this.stopMusic(),this.audioSource.volume=0)}setMusicEnabled(t){this.musicEnabled=t,this.saveLocalData(),t?this.playMusicBG():this.stopMusic()}stopMusic(){this.backgroundUrl&&(this.audioSource.stop(),this.backgroundUrl="")}setSoundEnabled(t){this.soundEnabled=t,this.saveLocalData()}playEffect(t,s=c.BUNDLE_RESOURCES,i=1){this.soundEnabled&&n.loadBundle(s,((s,a)=>{s?Log.w(s):a.load(t,o,null,((t,s)=>{t?Log.w(t):this.audioSource.playOneShot(s,i)}))}))}playMusicBG(){if(!this.musicEnabled)return;let t=u.music_home+"_"+l.language;this.backgroundUrl!=t&&(this.backgroundUrl=t,this.playMusic(this.backgroundUrl))}playMusic(t,s=c.BUNDLE_RESOURCES){this.musicEnabled&&d.Instance().load(s,t,o,(()=>{}),(t=>{this.audioSource.stop();let s=t.data;this.audioSource.clip=s,this.audioSource.play()}))}loadLocalData(){this.musicEnabled=Boolean(r.getNum("isMusicOn",1)),this.soundEnabled=Boolean(r.getNum("isEffectOn",1))}saveLocalData(){r.setItem("isMusicOn",this.musicEnabled?1:0),r.setItem("isEffectOn",this.soundEnabled?1:0)}})._instance=null,h=p))||h)||h);s._RF.pop()}}}));

System.register("chunks:///_virtual/AutoAdaptSprite.ts",["cc","./LogUtil.ts"],(function(t){"use strict";var e,i,s,o,n,r,a;return{setters:[function(t){e=t.cclegacy,i=t.Component,s=t.view,o=t.View,n=t.v3,r=t._decorator},function(t){a=t.default}],execute:function(){var c;e._RF.push({},"b36d4QAXVhJfYNn3Pzul9sM","AutoAdaptSprite",void 0);const{ccclass:u,property:d}=r;t("AutoAdaptSprite",u("AutoAdaptSprite")(c=class extends i{start(){}onLoad(){s.setResizeCallback(this.onResize.bind(this)),this.onResize()}onDestroy(){}onResize(){if(!this.node)return;let t=o.instance.getVisibleSize().width,e=o.instance.getDesignResolutionSize().width,i=parseFloat((t/e).toFixed(2));a.debug("ratio:"+i),this.node.setScale(n(i,i,1))}})||c);e._RF.pop()}}}));

System.register("chunks:///_virtual/BankAccountInfoConfig.ts",["cc"],(function(n){"use strict";var t,c;return{setters:[function(n){t=n.cclegacy,c=n._decorator}],execute:function(){var o;t._RF.push({},"71c937QF91BbpjFFdqlRdaa","BankAccountInfoConfig",void 0);const{ccclass:i,property:s}=c;n("BankAccountInfoConfig",i("BankAccountInfoConfig")(o=class{constructor(){this.id=void 0,this.info=void 0,this.banklistCfg=void 0}attrs(){return["id","info","banklistCfg"]}})||o);t._RF.pop()}}}));

System.register("chunks:///_virtual/BigAdPageViewItem.ts",["cc"],(function(e){"use strict";var t,c,i;return{setters:[function(e){t=e.cclegacy,c=e.Component,i=e._decorator}],execute:function(){var n;t._RF.push({},"bfab7fTLu9Me4k06OrkXCND","BigAdPageViewItem",void 0);const{ccclass:s,property:o}=i;e("BigAdPageViewItem",s("BigAdPageViewItem")(n=class extends c{constructor(...e){super(...e),this.bigIconInfo=null}start(){}initInfo(e){this.bigIconInfo=e}})||n);t._RF.pop()}}}));

System.register("chunks:///_virtual/BigTurnTable.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameUtil.ts","./LogUtil.ts","./AudioManager.ts","./ResDefine.ts","./UIManager.ts","./UIDefined.ts"],(function(e){"use strict";var t,n,i,l,r,a,u,o,s,c,g,p,d,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,l=e.Node,r=e._decorator,a=e.Component,u=e.tween,o=e.Animation},function(e){s=e.GameUtils},function(e){c=e.default},function(e){g=e.default},function(e){p=e.SoundDefine},function(e){d=e.UIManager},function(e){f=e.UIID}],execute:function(){var h,A,b,y,T,m,N,w,E,I,M,_,v;i._RF.push({},"a37c2Kx+OBMSZPSAxkVrXXf","BigTurnTable",void 0);const{ccclass:z,property:D}=r;e("BigTurnTable",(h=z("BigTurnTable"),A=D({displayName:"转盘旋转动画面板",type:l}),b=D({displayName:"转盘闪光动画节点",type:l}),y=D({displayName:"转盘指针射入动画节点",type:l}),T=D({displayName:"中奖效果",type:l}),m=D({displayName:"转动效果",type:l}),h((E=t((w=class extends a{constructor(...e){super(...e),n(this,"plateTurningNode",E,this),n(this,"plateArrowLightNode",I,this),n(this,"plateArrowShootMarkAniNode",M,this),n(this,"getAwardEffect",_,this),n(this,"turnEffect",v,this),this.curAngle=0,this.endAngle=0}start(){}initTurnTable(){this.doDefaultTurning()}doGoTurning(e){this.stopAllAni();let t=this.plateTurningNode.eulerAngles.z,n=s.randomInt(5,7);this.curAngle=(t+360)%360;let i=this.curAngle-t,l=-360-this.curAngle-i;this.endAngle=30*(e-3)+360*n-l,this.endAngle=this.curAngle-this.endAngle,c.debug("curAngle:"+this.curAngle+",endAngle:"+this.endAngle),g.Instance().playEffect(p.sound_turn_start);let r=0,a=()=>{let e=Math.floor(Math.abs(this.plateTurningNode.eulerAngles.z-t)/80);e>r&&(g.Instance().playEffect(p.sound_turn_loop),r=e),Math.abs(this.endAngle-this.plateTurningNode.eulerAngles.z)<10&&(g.Instance().playEffect(p.sound_turn_loop),this.unschedule(a))};this.schedule(a,.01),u(this.plateTurningNode).call((()=>{this.turnEffect.active=!0})).to(5,{angle:this.endAngle-10},{easing:"quintOut"}).call((()=>{this.turnEffect.active=!1})).by(.5,{angle:10}).delay(.05).call((()=>{this.getAwardEffect.active=!0,this.playTurnEndAni((()=>{let e=d.getInstance().getUI(f.UITurnTable);e&&e.doTurnTableRotationEnd((()=>{this.getAwardEffect.active=!1}))}))})).start()}playTurnEndAni(e){this.scheduleOnce((()=>{e&&e()}),1)}update(){}doDefaultTurning(){}stopAllAni(){var e,t;null==(e=this.plateTurningNode.getComponent(o))||e.stop(),null==(t=this.plateArrowLightNode.getComponent(o))||t.stop()}}).prototype,"plateTurningNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(w.prototype,"plateArrowLightNode",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(w.prototype,"plateArrowShootMarkAniNode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(w.prototype,"getAwardEffect",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(w.prototype,"turnEffect",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=w))||N));i._RF.pop()}}}));

System.register("chunks:///_virtual/BundleManager.ts",["cc","./Eventer.ts","./IHotUpdate.ts","./HotUpdateManager.ts","./Singleton.ts","./EntryManager.ts","./HallDefind.ts"],(function(e){"use strict";var n,t,d,o,i,u,l,s,a,g;return{setters:[function(e){n=e.cclegacy,t=e.AssetManager,d=e.assetManager},function(e){o=e.Eventer},function(e){i=e.HotUpdate},function(e){u=e.HotUpdateManager},function(e){l=e.Singleton},function(e){s=e.EntryManager},function(e){a=e.UNKNOWN,g=e.BUNDLE_RESOURCES}],execute:function(){n._RF.push({},"fd894d6amhEVotXU+sGdBey","BundleManager",void 0);class r extends(l()){constructor(...e){super(...e),this.curBundle=null,this.isLoading=!1}isEngineBundle(e){return e==t.BuiltinBundleName.INTERNAL||e==t.BuiltinBundleName.MAIN||e==t.BuiltinBundleName.RESOURCES||e==t.BuiltinBundleName.START_SCENE}removeLoadedBundle(e,n){n||(n=e.getPersistBundle());let t=[];d.bundles.forEach(((e,n)=>{this.isEngineBundle(n)||t.push(n)}));let o=t.length;for(;o--;){let e=t[o];-1==n.indexOf(e)&&s.getInstance().exitBundle(e)}}getBundle(e){return e?"string"==typeof e?d.getBundle(e):e:null}getBundleName(e){return e?"string"==typeof e?e:e.name:(Log.e(`输入参数错误 : ${e}`),a)}enterBundle(e,n){if(this.isLoading)return n&&n.onBundleLoading(e),void Log.d("正在更新游戏，请稍等");this.curBundle=e,this.isLoading=!0,u.getInstance().bundlesConfig[this.curBundle.bundle]=e;let t=u.getInstance().bundlesConfig[this.curBundle.bundle];this.checkUpdate(t,n)}checkUpdate(e,n){Log.d(`检测更新信息:${e.name}(${e.bundle})`),o.getInstance().offName(i.Event.HOTUPDATE_DOWNLOAD,this);let t=this.curBundle.bundle;this.curBundle.bundle==g&&(t=void 0),u.getInstance().checkUpdate(((t,d)=>{t==i.Code.NEW_VERSION_FOUND?(o.getInstance().on(i.Event.HOTUPDATE_DOWNLOAD,this.onDownload.bind(this,n),this),Log.d(`检测到${e.name}(${e.bundle})有新的版本`),n&&n.onNewVersionFund(e,t,d)):d==i.State.TRY_DOWNLOAD_FAILED_ASSETS?(o.getInstance().on(i.Event.HOTUPDATE_DOWNLOAD,this.onDownload.bind(this,n),this),Log.d("正在尝试重新下载之前下载失败的资源"),n&&n.onDownloadFailed(e,t,d)):t==i.Code.ALREADY_UP_TO_DATE?(this.isLoading=!1,n&&n.onAreadyUpToData(e,t,d)):t==i.Code.ERROR_DOWNLOAD_MANIFEST||t==i.Code.ERROR_NO_LOCAL_MANIFEST||t==i.Code.ERROR_PARSE_MANIFEST?(this.isLoading=!1,n&&n.onDownloadManifestFailed(e,t,d)):t==i.Code.CHECKING?(Log.d("正在检测更新!!"),n&&n.onCheckingVersion(e,t,d)):(this.isLoading=!1,Log.d(`检测更新当前状态 code : ${t} state : ${d}`),n&&n.onOtherReason(e,t,d))}),t)}loadBundle(e){let n=this.getBundle(this.curBundle.bundle),t=u.getInstance().bundlesConfig[this.curBundle.bundle];if(n)return Log.d(`${this.curBundle.bundle}已经加载在缓存中，直接使用`),this.isLoading=!1,void(e&&e.onLoadBundleComplete(t,n));this.isLoading=!0,Log.d(`loadBundle : ${this.curBundle.bundle}`),d.loadBundle(t.bundle,((n,d)=>{this.isLoading=!1,n?(Log.e(`load bundle : ${t.bundle} fail !!!`),e&&e.onLoadBundleError(t,n)):(Log.d(`load bundle : ${t.bundle} success !!!`),e&&e.onLoadBundleComplete(t,d))}))}onDownload(e,n){let t=u.getInstance().getBundleName(this.curBundle.bundle);n.code==i.Code.UPDATE_FINISHED?Log.d(`更新${t.name}成功`):n.code!=i.Code.UPDATE_FAILED&&n.code!=i.Code.ERROR_NO_LOCAL_MANIFEST&&n.code!=i.Code.ERROR_DOWNLOAD_MANIFEST&&n.code!=i.Code.ERROR_PARSE_MANIFEST&&n.code!=i.Code.ERROR_DECOMPRESS||(this.isLoading=!1,Log.e(`更新${t.name}失败`)),e&&e.onDownloading(this.curBundle,n)}}e("BundleManager",r),n._RF.pop()}}}));

System.register("chunks:///_virtual/CacheManager.ts",["cc","./LogUtil.ts","./ResManager.ts","./HotUpdateDefine.ts","./ReleaseManager.ts","./BundleManager.ts","./Singleton.ts","./Resource.ts"],(function(e){"use strict";var t,s,a,r,n,i,l,u,h,c,o,d,f,g;return{setters:[function(e){t=e.cclegacy,s=e.js,a=e.Asset,r=e.ImageAsset,n=e.SpriteFrame,i=e.Texture2D,l=e.sp},function(e){u=e.default},function(e){h=e.ResManager},function(e){c=e.Macro},function(e){o=e.ReleaseManager},function(e){d=e.BundleManager},function(e){f=e.Singleton},function(e){g=e.Resource}],execute:function(){t._RF.push({},"ef083yHeCFAgIS4Yqft41Ed","CacheManager",void 0);class _{constructor(e){this._caches=new Map,this.name=c.UNKNOWN,this.name=e}get(e,t){if(this._caches.has(e)){let s=this._caches.get(e);return t&&s&&s.isInvalid?(u.warn(`资源加载完成，但已经被释放 , 重新加载资源 : ${e}`),this.remove(e),null):this._caches.get(e)}return null}set(e,t){this._caches.set(e,t)}remove(e){return this._caches.delete(e)}removeUnuseCaches(){this._caches.forEach(((e,t,s)=>{if(Array.isArray(e.data)){let s=!0;for(let t=0;t<e.data.length;t++)e.data[t]&&e.data[t].refCount>0&&(s=!1);s&&this._caches.delete(t)}else e.data&&e.data.refCount<=0&&this._caches.delete(t)}))}get size(){return this._caches.size}}class m{constructor(){this.refCount=0,this.url="",this.retain=!1}}class p{constructor(){this._caches=new Map,this._spriteFrameCaches=new Map,this._resMap=new Map}get(e){return this._caches.has(e)?this._caches.get(e):null}getSpriteFrame(e){if(this._spriteFrameCaches.has(e)){let t=this._spriteFrameCaches.get(e);return this.get(e)?t:(this.remove(e),null)}return null}setSpriteFrame(e,t){if(t&&t instanceof r){let s=this.getSpriteFrame(e);if(s)return s.data;let a=new g.CacheData,r=new n,l=new i;return l.image=t,r.texture=l,a.data=r,a.isLoaded=!0,a.info.url=e,this._spriteFrameCaches.set(e,a),a.data}return null}set(e,t){t.info.url=e,this._caches.set(e,t)}_getCacheInfo(e,t=!0){if(e&&e.url&&e.url.length>0){if(!this._resMap.has(e.url)){if(!t)return null;{let t=new m;t.url=e.url,this._resMap.set(e.url,t)}}return this._resMap.get(e.url)}return null}retainAsset(e){if(e&&e.data){let t=this._getCacheInfo(e);t&&(t.retain?e.retain:t.retain=e.retain,e.data.addRef(),t.refCount++,t.retain&&(t.refCount=999999))}}releaseAsset(e){if(e&&e.data){let t=this._getCacheInfo(e,!1);if(t){if(t.retain)return;t.refCount--,t.refCount<=0&&this.remove(t.url)}}}remove(e){this._resMap.delete(e),this._spriteFrameCaches.has(e)&&(this._spriteFrameCaches.get(e).data.decRef(!1),this._spriteFrameCaches.delete(e));let t=this._caches.has(e)?this._caches.get(e):null;return t&&t.data instanceof l.SkeletonData&&(this.remove(`${t.info.url}.atlas`),this.remove(`${t.info.url}.png`),this.remove(`${t.info.url}.json`)),t&&t.data instanceof a&&(t.data.decRef(!1),t.info.data=t.data,o.Instance().releaseRemote(t.info)),this._caches.delete(e)}}class C extends(f()){constructor(...e){super(...e),this.logTag="[CacheManager]: ",this._bundles=new Map,this._remoteCaches=new p}get remoteCaches(){return this._remoteCaches}getBundleName(e){return d.getInstance().getBundleName(e)}get(e,t,s=!0){let a=this.getBundleName(e);return a&&this._bundles.has(a)?this._bundles.get(a).get(t,s):null}set(e,t,s){let a=this.getBundleName(e);if(a)if(this._bundles.has(a))this._bundles.get(a).set(t,s);else{let e=new _(a);e.set(t,s),this._bundles.set(a,e)}}remove(e,t){let s=this.getBundleName(e);return!(!s||!this._bundles.has(s))&&this._bundles.get(s).remove(t)}removeWithInfo(e){if(e)if(e.data){if(Array.isArray(e.data)){let t=!0;for(let s=0;s<e.data.length;s++)e.data[s].decRef(!1),0!=e.data[s].refCount&&(t=!1);if(t)return this.remove(e.bundle,e.url),!0}else if(e.data.decRef(!1),0==e.data.refCount)return this.remove(e.bundle,e.url),!0}else u.error(`info.data is null , bundle : ${e.bundle} url : ${e.url}`);else u.error("info is null");return!1}removeBundle(e){let t=this.getBundleName(e);t&&this._bundles.has(t)&&this._bundles.delete(t)}_removeUnuseCaches(){this._bundles.forEach(((e,t,s)=>{e&&e.removeUnuseCaches()}))}_getGetCacheByAsyncArgs(){return arguments.length<3||"string"!=typeof arguments[0]?null:s.isChildClassOf(arguments[1],a)?{url:arguments[0],type:arguments[1],bundle:arguments[2]}:null}getCache(){let e=arguments,t=this;return new Promise((s=>{let a=t._getGetCacheByAsyncArgs.apply(t,e);if(!a)return void s(null);let r=t.get(a.bundle,a.url);r?r.isLoaded?a.type?r.data instanceof a.type?s(r.data):s(null):s(r.data):r.getCb.push(s):s(null)}))}getCacheByAsync(){let e=this,t=this._getGetCacheByAsyncArgs.apply(this,arguments);return new Promise((s=>{t?e.getCache(t.url,t.type,t.bundle).then((e=>{t=t,e&&e instanceof t.type?s(e):h.Instance().load(t.bundle,t.url,t.type,null,(e=>{t=t,e&&e.data&&e.data instanceof t.type?s(e.data):(u.error(`${this.logTag}加载失败 : ${t.url}`),s(null))}))})):s(null)}))}}e("CacheManager",C),t._RF.pop()}}}));

System.register("chunks:///_virtual/CCUtils.ts",["cc"],(function(e){"use strict";var t,r,i,s,n;return{setters:[function(e){t=e.cclegacy,r=e.v3,i=e.assetManager,s=e.SpriteFrame,n=e.Texture2D}],execute:function(){t._RF.push({},"ad11fVqS19M06a1rRAUm7c5","CCUtils",void 0);class l{static changeNodePosY(e,t){e.setPosition(r(e.position.x,t,e.position.z))}static splitStr(e,t){let r={str_before:"",str_after:""},i=e.split(t)[0],s=e.split(t)[1];return r.str_before=i,r.str_after=s,r}static parseURL(e){let t,r={},i=e.split("&"),s=i.length,n=0;for(;n<s;n++)i[n]&&(t=i[n].split("=="),t[1]=t[1].replace(/%/g,"%25"),r[t[0]]=decodeURIComponent(t[1]));return r}static setSpriteFrame(e,t,r){i.loadRemote(t,(function(t,i){const l=new s,c=new n;c.image=i,l.texture=c,e.spriteFrame=t?null:l,r&&r(t,e.spriteFrame)}))}}e("CCUtils",l),l.getAllChildrenRecursion=e=>{let t=[];t.push(e);let r=e=>{if(e.children.length>0)for(let i=0;i<e.children.length;i++)t.push(e.children[i]),e.children[i].children&&e.children[i].children.length>0&&r(e.children[i])};return r(e),t},t._RF.pop()}}}));

System.register("chunks:///_virtual/ChangeAvatarHeadItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,a,r,i,n,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){r=e.cclegacy,i=e.Node,n=e._decorator,l=e.Component}],execute:function(){var o,c,s,u,p,d,h,y,f;r._RF.push({},"cde2cawj/BJbLIbFinMdgu8","ChangeAvatarHeadItem",void 0);const{ccclass:b,property:m}=n;e("ChangeAvatarHeadItem",(o=b("ChangeAvatarHeadItem"),c=m({displayName:"头像选择标记",type:i}),s=m({displayName:"头像",type:i}),u=m({displayName:"默认头像",type:i}),o((h=t((d=class extends l{constructor(...e){super(...e),a(this,"selectMark",h,this),a(this,"headIcon",y,this),a(this,"headDefault",f,this),this.url=""}start(){}}).prototype,"selectMark",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(d.prototype,"headIcon",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(d.prototype,"headDefault",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=d))||p));r._RF.pop()}}}));

System.register("chunks:///_virtual/ChannelLangConfig.ts",["cc"],(function(n){"use strict";var t,c;return{setters:[function(n){t=n.cclegacy,c=n._decorator}],execute:function(){var e;t._RF.push({},"24629V1iJ1OCLQGE9eXNcn5","ChannelLangConfig",void 0);const{ccclass:i}=c;n("ChannelLangConfig",i("ChannelLangConfig")(e=class{constructor(){this.id=void 0,this.L=void 0}attrs(){return["id","L"]}})||e);t._RF.pop()}}}));

System.register("chunks:///_virtual/CheckActivityCMD.ts",["cc","./UIDefined.ts","./Command.ts","./Global.ts","./CustomEventMgr.ts","./ActivityModel.ts","./EventDefine.ts","./UIManager.ts"],(function(t){"use strict";var e,n,i,c,s,o,C,u;return{setters:[function(t){e=t.cclegacy},function(t){n=t.UIID},function(t){i=t.Command},function(t){c=t.Global},function(t){s=t.CustomEventMgr},function(t){o=t.ActivityModel},function(t){C=t.CMDEvent},function(t){u=t.UIManager}],execute:function(){e._RF.push({},"56823LpMhlBT4kH09iNDUhc","CheckActivityCMD",void 0);t("CheckActivityCMD",class extends i{init(...t){}execute(){c.gameCtrl.getModel(o).isForcePop?u.getInstance().open(n.UIActivity):this.closeAsync()}clear(){}onClose(){this.closeAsync()}addEvent(){s.on(C.CLOSE_ACTIVITY_CMD,this.onClose,this)}removeEvent(){s.off(C.CLOSE_ACTIVITY_CMD,this.onClose,this)}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/CheckBoxCMD.ts",["cc","./Command.ts","./EventDefine.ts","./CustomEventMgr.ts","./MsgHandler.ts","./UIManager.ts","./UIDefined.ts"],(function(e){"use strict";var n,t,o,s,c,i,u,C;return{setters:[function(e){n=e.cclegacy},function(e){t=e.Command},function(e){o=e.EventType,s=e.CMDEvent},function(e){c=e.CustomEventMgr},function(e){i=e.default},function(e){u=e.UIManager},function(e){C=e.UIID}],execute:function(){n._RF.push({},"9dc15xRmYxFcZHZf4TmrqZ0","CheckBoxCMD",void 0);e("CheckBoxCMD",class extends t{init(...e){}execute(){i.Instance().c2sIsOpenLuckDrak()}clear(){}onClose(){this.closeAsync()}onChooseBox(){u.getInstance().open(C.UILuckyDrawChoose)}addEvent(){c.on(o.IsOpenLuckDrak,this.onChooseBox,this),c.on(s.CLOSE_BOX_CMD,this.onClose,this)}removeEvent(){c.off(o.IsOpenLuckDrak,this.onChooseBox,this),c.off(s.CLOSE_BOX_CMD,this.onClose,this)}}),n._RF.pop()}}}));

System.register("chunks:///_virtual/CheckConvertAPPCMD.ts",["cc","./Command.ts","./StorageUtil.ts","./TimeUtil.ts","./CustomEventMgr.ts","./EventDefine.ts","./UIDefined.ts","./UIManager.ts"],(function(t){"use strict";var e,n,o,s,C,i,c,r,a;return{setters:[function(t){e=t.cclegacy,n=t.sys},function(t){o=t.Command},function(t){s=t.default},function(t){C=t.default},function(t){i=t.CustomEventMgr},function(t){c=t.CMDEvent},function(t){r=t.UIID},function(t){a=t.UIManager}],execute:function(){e._RF.push({},"7989czn6oRLeY5e8CtYDI+G","CheckConvertAPPCMD",void 0);t("CheckConvertAPPCMD",class extends o{init(...t){}execute(){let t=s.ConvertAppDate,e=C.formatDate(new Date);t!=e||1!=s.ShowConvertAppToday?(s.ConvertApp=!1,s.ConvertAppDate=e):(s.ConvertApp=!0,s.ConvertAppDate=e),n.isNative||s.ConvertApp?this.onClose():a.getInstance().open(r.UIQRCode)}clear(){}onClose(){this.closeAsync()}addEvent(){i.on(c.CLOSE_CONVERTAPP_CMD,this.onClose,this)}removeEvent(){i.off(c.CLOSE_CONVERTAPP_CMD,this.onClose,this)}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/CheckEditPassCMD.ts",["cc","./Command.ts","./UIDefined.ts","./UIManager.ts","./Global.ts","./ComponentMgr.ts","./MainModel.ts"],(function(e){"use strict";var t,n,s,o,i,c,a;return{setters:[function(e){t=e.cclegacy},function(e){n=e.Command},function(e){s=e.UIID},function(e){o=e.UIManager},function(e){i=e.Global},function(e){c=e.default},function(e){a=e.MainModel}],execute:function(){t._RF.push({},"9d25406+hpIUZGcInIAknJW","CheckEditPassCMD",void 0);e("CheckEditPassCMD",class extends n{init(...e){}execute(){i.gameCtrl.getModel(a).firstLogin?(i.gameCtrl.getModel(a).firstLogin=!1,o.getInstance().open(s.UIModify),setTimeout((()=>{c.showTipsById(105013)}),1e3)):this.onClose()}clear(){}onClose(){this.closeAsync()}addEvent(){}removeEvent(){}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/CheckLuckyNumberCMD.ts",["cc","./Command.ts","./EnumDefine.ts","./Global.ts","./CustomEventMgr.ts","./MainModel.ts","./MsgHandler.ts"],(function(e){"use strict";var t,n,c,s,u,i,o;return{setters:[function(e){t=e.cclegacy},function(e){n=e.Command},function(e){c=e.ESwitch},function(e){s=e.Global},function(e){u=e.CustomEventMgr},function(e){i=e.MainModel},function(e){o=e.default}],execute:function(){t._RF.push({},"fa54907SbJGPp7/lMMNLMIX","CheckLuckyNumberCMD",void 0);e("CheckLuckyNumberCMD",class extends n{init(...e){}execute(){u.on(LuckyNumberEvent.GET_LUCKY_NUMBER_ACTIVITY_DATA,this.isOpenLuckyNumber,this),o.Instance().c2sLuckyNumberActivity()}isOpenLuckyNumber(){u.off(LuckyNumberEvent.GET_LUCKY_NUMBER_ACTIVITY_DATA,this.isOpenLuckyNumber,this);let e=s.gameCtrl.getModel(LuckyNumberModel),t=e.LNData,n=t.active_start,o=t.active_end-n,r=s.svrTimeMS-n,a=r/o,m=r>0&&a<=1&&a>1/3;s.gameCtrl.getModel(i).getSwitchByType(c.LuckyNumber)&&e.isOpenLuckyNumber&&(!t.mine||0==t.mine.length)&&m?SceneManager.openView(LuckyNumberMainView,LN_Tab_Type.Active):this.closeAsync()}clear(){}onClose(){this.closeAsync()}addEvent(){u.on(CMDEvent.CLOSE_LUCKY_NUMBER_CMD,this.onClose,this)}removeEvent(){u.off(CMDEvent.CLOSE_LUCKY_NUMBER_CMD,this.onClose,this)}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/CheckRedpackCMD.ts",["cc","./Command.ts","./EventDefine.ts","./UIDefined.ts","./UIManager.ts","./CustomEventMgr.ts","./MsgHandler.ts"],(function(e){"use strict";var t,n,c,s,o,i,C,a;return{setters:[function(e){t=e.cclegacy},function(e){n=e.Command},function(e){c=e.EventType,s=e.CMDEvent},function(e){o=e.UIID},function(e){i=e.UIManager},function(e){C=e.CustomEventMgr},function(e){a=e.default}],execute:function(){t._RF.push({},"4bf3dAxbu9Cn60UfPh4s1sB","CheckRedpackCMD",void 0);e("CheckRedpackCMD",class extends n{init(...e){}execute(){a.Instance().c2scheckredpacket()}onCheckRed(e){e?i.getInstance().open(o.UIRedpacket):this.closeAsync()}clear(){}onClose(){this.closeAsync()}addEvent(){C.on(c.OnCheckRedPacket,this.onCheckRed,this),C.on(s.CLOSE_REDPACKET_CMD,this.onClose,this)}removeEvent(){C.off(c.OnCheckRedPacket,this.onCheckRed,this),C.off(s.CLOSE_REDPACKET_CMD,this.onClose,this)}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/CheckSignAwdCMD.ts",["cc","./Command.ts","./EventDefine.ts","./UIDefined.ts","./UIManager.ts","./Global.ts","./CustomEventMgr.ts","./SignAwdModel.ts","./User.ts"],(function(n){"use strict";var e,t,s,i,o,c,l,r,d,g;return{setters:[function(n){e=n.cclegacy},function(n){t=n.Command},function(n){s=n.EventType,i=n.CMDEvent},function(n){o=n.UIID},function(n){c=n.UIManager},function(n){l=n.Global},function(n){r=n.CustomEventMgr},function(n){d=n.SignAwdModel},function(n){g=n.User}],execute:function(){e._RF.push({},"bbfd5HF07JDW7WL3LnCngKN","CheckSignAwdCMD",void 0);n("CheckSignAwdCMD",class extends t{constructor(...n){super(...n),this.model=null,this.isOpen=!1}init(...n){this.model=l.gameCtrl.getModel(d)}execute(){this.model||(this.model=l.gameCtrl.getModel(d)),this.model.getSignProgress()}clear(){}canSignAwd(){if(null!=this.model.haveAwd()&&1!=g.instance.vistor&&1!=g.instance.is_trial){if(1==this.isOpen)return;c.getInstance().open(o.UITurnTable),this.isOpen=!0}else this.closeAsync()}onClose(){this.closeAsync()}addEvent(){r.on(s.OnGetSignProgress,this.canSignAwd,this),r.on(i.CLOSE_SIGN_AWD_CMD,this.onClose,this)}removeEvent(){r.off(s.OnGetSignProgress,this.canSignAwd,this),r.off(i.CLOSE_SIGN_AWD_CMD,this.onClose,this)}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/CheckTaskCMD.ts",["cc","./Command.ts","./EventDefine.ts","./Global.ts","./CustomEventMgr.ts","./TaskModel.ts","./UIManager.ts","./UIDefined.ts","./User.ts"],(function(t){"use strict";var e,s,n,o,i,a,c,r,T,l;return{setters:[function(t){e=t.cclegacy},function(t){s=t.Command},function(t){n=t.TaskEvent,o=t.CMDEvent},function(t){i=t.Global},function(t){a=t.CustomEventMgr},function(t){c=t.TaskModel},function(t){r=t.UIManager},function(t){T=t.UIID},function(t){l=t.User}],execute:function(){e._RF.push({},"2db83rkvAZN2YXV3UMCqYlQ","CheckTaskCMD",void 0);t("CheckTaskCMD",class extends s{constructor(...t){super(...t),this.openInfo=void 0}init(...t){}execute(){let t=i.gameCtrl.getModel(c);t&&t.getTaskState()?(a.on(n.GET_TASK_DATA,this.onOpenTaskView,this),t.c2sGetTaskData(!1,!1)):this.onClose()}clear(){}onClose(){this.closeAsync()}addEvent(){a.on(o.CLOSE_TASK_CMD,this.onClose,this)}removeEvent(){a.off(o.CLOSE_TASK_CMD,this.onClose,this),a.off(n.GET_TASK_DATA,this.onOpenTaskView,this)}onOpenTaskView(){let t=i.gameCtrl.getModel(c);Log.w(l.instance.vistor,l.instance.is_trial),t.quickTaskData&&1!=l.instance.vistor&&1!=l.instance.is_trial?r.getInstance().open(T.UIQuickTask):(a.fire(n.CLOSE_BTN_RED),a.off(n.GET_TASK_DATA,this.onOpenTaskView,this),this.onClose())}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/Child.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDefined.ts","./UIManager.ts","./UIView.ts"],(function(t){"use strict";var e,n,i,r,o,c,s,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.Button,o=t._decorator},function(t){c=t.UIID},function(t){s=t.UIManager},function(t){l=t.UIView}],execute:function(){var u,a,p,b,d,h,f;i._RF.push({},"4bd75xDwwFPDqyDCLZUILvF","Child",void 0);const{ccclass:I,property:g}=o;t("Child",(u=I("Child"),a=g(r),p=g(r),u((h=e((d=class extends l{constructor(...t){super(...t),n(this,"btn",h,this),n(this,"btn2",f,this)}start(){this.btn.node.on("click",(()=>{this.close()})),this.btn2&&this.btn2.node.on("click",(()=>{s.getInstance().open(c.UIChild2)}))}update(t){}}).prototype,"btn",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(d.prototype,"btn2",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=d))||b));i._RF.pop()}}}));

System.register("chunks:///_virtual/Child2.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIView.ts"],(function(t){"use strict";var e,i,r,n,c,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,n=t.Button,c=t._decorator},function(t){o=t.UIView}],execute:function(){var s,l,u,a,p;r._RF.push({},"1421ctbimtIopU/0rqBxtNv","Child2",void 0);const{ccclass:d,property:h}=c;t("Child2",(s=d("Child2"),l=h(n),s((p=e((a=class extends o{constructor(...t){super(...t),i(this,"btn",p,this)}start(){this.btn.node.on("click",(()=>{this.close()}))}update(t){}}).prototype,"btn",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=a))||u));r._RF.pop()}}}));

System.register("chunks:///_virtual/Command.ts",["cc","./Global.ts","./CustomEventMgr.ts","./EventDefine.ts"],(function(t){"use strict";var e,s,n,i;return{setters:[function(t){e=t.cclegacy},function(t){s=t.Global},function(t){n=t.CustomEventMgr},function(t){i=t.CMDEvent}],execute:function(){e._RF.push({},"8bd2agBTvhO36FUCybHhUSt","Command",void 0);t("Command",class{constructor(){this.hashCode=void 0,this.$hashCode=void 0,this.context=void 0,this._autoRestore=!0,this._isOpened=!1}static get COMMAND_COMPLETE(){return"commandComplete"}static get COMMAND_ABORT(){return"commandAbort"}openAsync(){this._isOpened||(this.addEvent(),this._isOpened=!0,s.isPopingCmdAd=!0,this.execute())}closeAsync(t=!1){this._isOpened&&(this.removeEvent(),this.clear(),this.context=null,this._isOpened=!1,s.isPopingCmdAd=!1,n.fire(i.ON_NEXT_CMD))}run(){}get isOpened(){return this._isOpened}get autoRestore(){return this._autoRestore}set autoRestore(t){this._autoRestore=t}addEventListener(t,e,s,i,o){n.on(t,e,s)}removeEventListener(t,e,s,i){n.off(t,e,s)}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/CommonHttp.ts",["cc","./HttpMgr.ts","./HttpReqPack.ts"],(function(t){"use strict";var e,n,a;return{setters:[function(t){e=t.cclegacy},function(t){n=t.HttpMgr},function(t){a=t.HttpReqPack}],execute:function(){e._RF.push({},"c8eaeTXBVNOR6U+KVJCSz5W","CommonHttp",void 0);t("CommonHttp",class{static isFacebookOpen(t,e,c=null){let s=a.create("/api/System/isFacebook",{});n.Instance().send(s,c,t,e)}static configUI(t,e,c=null){let s=a.create("/api/ui/index",{});n.Instance().send(s,c,t,e)}static checkToken(t,e,c,s=null){let i=a.create("/api/Game/CheckToken",{token:t});n.Instance().send(i,s,e,c)}static addRechargeInfo(t,e,c,s=null){let i=a.create("/api/pay/addRechargeInfo",t);n.Instance().send(i,s,e,c)}static editRechargeInfo(t,e,c,s=null){let i=a.create("/api/pay/editRechargeInfo",t);n.Instance().send(i,s,e,c)}static getRechargeInfo(t,e,n,a,c=null){}static recharge(t,e,n,a,c,s,i,l=null,o){}static download(t,e,n,a=null){}static enterGameCount(t,e,c,s=null){let i=a.create("/api/Download/iconClick",{enter_id:t});n.Instance().send(i,s,e,c)}static clientReport(t,e,n,a,c=null){}static appReport(t,e,n,a,c,s=null){}static gameReport(t,e,n,a,c,s,i=null){}static convertAppCount(t,e,n,a,c=null){}static iosReport(t,e,n,a=null){}static getIOSURL(t,e,c=null){let s=a.create("/api/Game/getIosJumpLink",{});n.Instance().send(s,c,t,e)}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/ComponentMgr.ts",["cc","./UIDefined.ts","./Tips.ts","./HotUpdateDefine.ts","./ResDefine.ts","./SdkManager.ts","./LogUtil.ts","./UIManager.ts","./Global.ts","./Language.ts","./ResManager.ts","./NativeApi.ts","./MsgHandler.ts"],(function(e){"use strict";var t,n,a,o,s,i,c,r,d,l,u,m,g,f,p,h,I;return{setters:[function(e){t=e.cclegacy,n=e._decorator,a=e.sys,o=e.Prefab,s=e.instantiate},function(e){i=e.UIID},function(e){c=e.Tips},function(e){r=e.Macro},function(e){d=e.ResDefine},function(e){l=e.default},function(e){u=e.default},function(e){m=e.UIManager},function(e){g=e.Global},function(e){f=e.Language},function(e){p=e.ResManager},function(e){h=e.default},function(e){I=e.default}],execute:function(){var b,y;t._RF.push({},"0615c/P2XhIQbNsQG6aPZW9","ComponentMgr",void 0);const{ccclass:U,menu:S}=n;e("default",U("ComponentMgr")(b=S("runtime/ComponentMgr")(((y=class e{static getInstance(){return this._instance||(this._instance=new e)}init(){0==a.isNative&&window.addEventListener("message",(function(e){var t=JSON.parse(e.data||"{}");if(u.debug("web meg back,data:"+JSON.stringify(t)),"back"==t.method||"thback"==t.method){"thback"==t.method&&(I.Instance().c2sflushScore(),h.lockOrientation(!1)),u.debug("back");let n=t.musicSwitch,a=document.getElementById("YuFrame1");a.src="about:blank";try{a.document.write(""),a.document.clear()}catch(e){}g.gameCtrl.gameBack(),g.gameCtrl.gameBackAndSaveMusicSwitch(n),document.getElementById("YuFrame1").remove(),document.getElementById("hello").remove()}}),!1),window.handlerPlatformMessage=e=>{u.debug("handlerPlatformMessage,message:"+decodeURIComponent(e)),l.handlerPlatformMessage(e)}}static showTips(e){p.Instance().load(r.BUNDLE_RESOURCES,d.UI_TIPS_PREFAB,o,(()=>{}),(t=>{let n=t.data,a=s(n);a.parent=m.getInstance().getUI(i.UIAniLayer).node,a.getComponent(c).initTips(e)}))}static showTipsById(e){let t=f.getString(e);p.Instance().load(r.BUNDLE_RESOURCES,d.UI_TIPS_PREFAB,o,(()=>{}),(e=>{let n=e.data,a=s(n);a.parent=m.getInstance().getUI(i.UIAniLayer).node,a.getComponent(c).initTips(t)}))}static showWebIframe(e){console.log("showWebIframe,url:"+e);var t=document.createElement("div");t.style.display="block",t.style.position="absolute",t.style.bottom="0px",t.style.left="0px",t.id="hello",document.body.appendChild(t);var n=document.createElement("iframe");n.width="100%",n.height="100%",n.id="YuFrame1",n.name="YuFrame1",n.frameBorder="no",n.marginWidth="0px",n.marginWidth="0px",n.scrolling="no";let a=n.style;a.position="fixed",a.borderfra="no",a.left="0px",a.top="0px",t.appendChild(n),document.getElementById("YuFrame1").src=e}static copyStringToClipboard(t){1==l.setClipboard(t)&&e.showTipsById(107054)}})._instance=null,b=y))||b)||b);t._RF.pop()}}}));

System.register("chunks:///_virtual/ConfigUtil.ts",["cc","./LogUtil.ts"],(function(t){"use strict";var e,s,i;return{setters:[function(t){e=t.cclegacy,s=t.js},function(t){i=t.default}],execute:function(){e._RF.push({},"a8cafP9j6FERpXGVU8w+rqY","ConfigUtil",void 0);class n{static init(t){n.s_configs={};for(let e in t){let c=s.getClassByName(e);if(c){let s=t[e],i=s.length,l={};n.s_configs[e]=l;for(let t=0;t<i;t++){let e=new c,i=e.attrs(),n=s[t];for(let t=0,s=i.length;t<s;t++)e[i[t]]=n[t];l[e[i[0]]]=e}}else i.debug(`${e}在ConfigBase文件中未定义`)}}static getConfig(t){let e=s.getClassName(t);return n.s_configs[e]}}t("ConfigUtil",n),n.s_configs=void 0,e._RF.pop()}}}));

System.register("chunks:///_virtual/Controller.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"6d46b0id3dP86TVu167ZLqs","Controller",void 0);class n{constructor(){this.singletonMap=void 0,this.configSelf()}sendMessage(e,t){throw new Error("Method not implemented.")}configSelf(){null==this.singletonMap&&(this.singletonMap=n.globalSingletonMap)}initialize(){}dispose(){this.singletonMap=null}addMsgListeners(){}removeMsgListeners(){}addProtoListeners(){}removeProtoListeners(){}}e("Controller",n),n.globalSingletonMap={},t._RF.pop()}}}));

System.register("chunks:///_virtual/CountDown.ts",["cc","./DateUtil.ts"],(function(t){"use strict";var s,i,o,e,h;return{setters:[function(t){s=t.cclegacy,i=t.Label,o=t.Component,e=t._decorator},function(t){h=t.default}],execute:function(){var a;s._RF.push({},"4a14bo2lrxPKZ7Lw/xMvDyh","CountDown",void 0);const{ccclass:n,executeInEditMode:r,requireComponent:c,menu:l}=e;t("default",n(a=r(a=c(i)(a=l("ui/common/Countdown")(a=class extends o{constructor(...t){super(...t),this.callback=void 0,this.thisArg=void 0,this.totalTime=-1,this.bStop=!0,this.format=void 0}start(){this.format=this.format??"hh:mm:ss",this.string=0}run(t,s,i,o){null==t||t<0||(this.bStop=!1,i&&""!=i&&(this.format=i),this.callback=s,this.thisArg=o,this.totalTime=t+this.getSysTimes())}set string(t){let s=this.getComponent(i);s&&this.totalTime>=0&&(s.string=h.formatCountDwon(t,this.format))}update(t){if(this.bStop)return;var s=this.getSysTimes();Math.floor(this.totalTime-s)>=0?this.string=this.totalTime-s:this.stop()}stop(){this.bStop||(this.bStop=!0,this.string=0,this.thisArg&&this.callback?this.callback.apply(this.thisArg):this.callback&&this.callback())}getSysTimes(){return(new Date).getTime()/1e3}})||a)||a)||a)||a);s._RF.pop()}}}));

System.register("chunks:///_virtual/CountryConfig.ts",["cc"],(function(t){"use strict";var o,c;return{setters:[function(t){o=t.cclegacy,c=t._decorator}],execute:function(){var n;o._RF.push({},"d923eAydQRN+qv1dh616yfd","CountryConfig",void 0);const{ccclass:r}=c;t("CountryConfig",r("CountryConfig")(n=class{constructor(){this.code=void 0,this.zh=void 0,this.en=void 0}attrs(){return["code","zh","en"]}})||n);o._RF.pop()}}}));

System.register("chunks:///_virtual/CtrlBase.ts",["cc","./Global.ts","./User.ts"],(function(e){"use strict";var t,r,s,n,l,o;return{setters:[function(e){t=e.cclegacy,r=e.Component,s=e.js,n=e._decorator},function(e){l=e.Global},function(e){o=e.User}],execute:function(){var a;t._RF.push({},"c5492b7OQhJdrVrAYFVP4Dw","CtrlBase",void 0);const{ccclass:c,property:u}=n;e("CtrlBase",c("CtrlBase")(a=class extends r{start(){}getUserInfo(){return o.instance}getModel(e){let t=e,r=s.getClassName(e),n=l.modelMap[r];return null==n?this.addModel(new t,r):n}addModel(e,t){let r=l.modelMap[t];if(null!=r)throw new Error("["+t+"]在MVC中已经存在该单例对象！");return r=e,l.modelMap[t]=r,r}})||a);t._RF.pop()}}}));

System.register("chunks:///_virtual/CustomEventMgr.ts",["cc"],(function(t){"use strict";var s,i;return{setters:[function(t){s=t.cclegacy,i=t._decorator}],execute:function(){var e,n;s._RF.push({},"44b83ML9lJNf7L9PJ2bFxDA","CustomEventMgr",void 0);const{ccclass:c,property:h}=i;t("CustomEventMgr",c("CustomEventMgr")(((n=class{static on(t,s,i){this.handle[t]||(this.handle[t]=[]);const e={func:s,target:i,isActive:!0};this.handle[t].push(e)}static off(t,s,i){const e=this.handle[t];if(e&&!(e.length<=0))for(let n=0;n<e.length;n++){const c=e[n];if(c.isActive&&c.func===s&&(!i||i===c.target)){if(this.isDispatching>0){c.isActive=!1;let s=this.buffLists[t];s||(s=[],this.buffLists[t]=s),s.push(n)}else e.splice(n,1);break}}}static fire(t,...s){const i=this.handle[t];if(i&&!(i.length<=0)){this.isDispatching++;for(let t=0;t<i.length;t++){const e=i[t];e.func.apply(e.target,s)}this.isDispatching--,this.isDispatching<=0&&this.clearBuffList()}}static clearBuffList(){for(let t in this.buffLists){let s=this.handle[t];if(!s||s.length<=0)return;let i=this.buffLists[t];i=i.sort(((t,s)=>t-s));for(let t=i.length-1;t>=0;--t)s.splice(i[t],1);delete this.buffLists[t]}}}).handle={},n.isDispatching=0,n.buffLists={},e=n))||e);s._RF.pop()}}}));

System.register("chunks:///_virtual/DataCenter.ts",["cc","./Singleton.ts","./HallDefind.ts"],(function(t){"use strict";var e,n,s;return{setters:[function(t){e=t.cclegacy},function(t){n=t.Singleton},function(t){s=t.UNKNOWN}],execute:function(){e._RF.push({},"6dd53VIJxhDKb1mMOEPSGTs","DataCenter",void 0);class r extends(n()){constructor(...t){super(...t),this._datas=new Map}get(t,e=!0){let n=this.getBundle(t);if(n==s)return null;if(this._datas.has(n))return this._datas.get(n);if("string"!=typeof t&&e){let e=new t;return e.bundle=t.bundle,this._datas.set(t.bundle,e),e}return null}destory(t){let e=this.getBundle(t);return!!this._datas.has(e)&&(this._datas.delete(e),!0)}clear(t){this._datas.forEach(((e,n)=>{this.isInExclude(e,t)||this.destory(n)}))}isInExclude(t,e){if(!e)return!1;for(let n=0;n<e.length;n++){if(this.getBundle(e[n])==t.bundle)return!0}return!1}getBundle(t){let e=s;return e="string"==typeof t?t:t.bundle,e}}t("DataCenter",r),e._RF.pop()}}}));

System.register("chunks:///_virtual/DateUtil.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"c14acT7m2VHyYCUO0C1+l1A","DateUtil",void 0);t("default",class{static formatDate(t,e){let s=new Date;s.setTime(1e3*e);let r={"M+":s.getMonth()+1,"d+":s.getDate(),"h+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in r)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[e]:("00"+r[e]).substr((""+r[e]).length)));return t}static formatCountDwon(t,e){if("ss"==e)return Math.floor(t%3600%60)+"s";let s={"h+":Math.floor(t/3600),"m+":Math.floor(t%3600/60),"s+":Math.floor(t%3600%60)};for(let t in s)new RegExp("("+t+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?s[t]:("00"+s[t]).substr((""+s[t]).length)));return e}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/Delegate.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"3cf1dq4s+FCYahm4DfttfuR","Delegate",void 0);t("Delegate",class{constructor(){this.delegateDataArr=[]}init(...t){}get count(){return this.delegateDataArr.length}has(t,e){let r=this.delegateDataArr.length;for(;r--;){let a=this.delegateDataArr[r];if(a.fun===t&&a.thisObj===e)return!0}return!1}register(t,e){if(this.has(t,e))return;let a=new r;a.fun=t,a.thisObj=e,this.delegateDataArr.push(a)}unregister(t,e){if(!this.has(t,e))return;let r=this.delegateDataArr;for(let a=0,s=r.length;a<s;a++)if(r[a].fun===t&&r[a].thisObj==e){this.delegateDataArr.splice(a,1);break}}clear(){this.delegateDataArr.length=0}boardcast(...t){let e=this.delegateDataArr;for(let r=0,a=e.length;r<a;r++){let a=e[r],s=a.fun,i=a.thisObj;i?s.apply(i,t):s(t)}}});class r{constructor(){this.fun=null,this.thisObj=void 0}}t("DelegateData",r),e._RF.pop()}}}));

System.register("chunks:///_virtual/DelegateCommand.ts",["cc","./Command.ts"],(function(t){"use strict";var s,e;return{setters:[function(t){s=t.cclegacy},function(t){e=t.Command}],execute:function(){s._RF.push({},"15e0cpB8UVAfqObSvxDzEAC","DelegateCommand",void 0);class n extends e{constructor(...t){super(...t),this._fun=null,this._argsArr=[],this._thisArg=void 0}static create(t,s,...e){let r=new n;return r.init(t,s,e),r._fun=t,r._argsArr=e,r._thisArg=s,r}init(t,s=null,e=[]){this._fun=t,this._argsArr=e,this._thisArg=s}execute(){null!=this._fun&&this._fun.apply(this._thisArg,this._argsArr),this.closeAsync()}clear(){this._fun=null,this._thisArg=null,this._argsArr=null}addEvent(){}removeEvent(){}}t("DelegateCommand",n),s._RF.pop()}}}));

System.register("chunks:///_virtual/Dictionary.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"605eblqIjxNrqdxYRRbX7id","Dictionary",void 0);class s{constructor(){this.m_keys=[],this.m_values=[]}setDatas(e){this.m_keys=e.m_keys,this.m_values=e.m_values}get length(){return this.m_keys.length}get values(){return this.m_values.concat()}get keys(){return this.m_keys.concat()}set(e,t){var s=this.indexOfKey(e);s>=0?this.m_values[s]=t:(this.m_keys.push(e),this.m_values.push(t))}keyOfValue(e){return this.m_keys[this.indexOfValue(e)]}indexOfKey(e){return this.m_keys.indexOf(e)}indexOfValue(e){return this.m_values.indexOf(e)}exist(e){return this.m_keys.indexOf(e)>=0}every(e,t=null){let s=this.keys.length;for(let i=0;i<s;i++)if(t){if(!e.call(t,i,this.values[i]))break}else if(!e(i,this.values[i]))break}get(e){var t=this.indexOfKey(e);return t>=0?this.m_values[t]:null}remove(e){var t=this.indexOfKey(e);return t>=0?(this.m_keys.splice(t,1),this.m_values.splice(t,1)[0]):null}clear(){this.m_keys.length=0,this.m_values.length=0}static create(){let e;return e=s.pool&&s.pool.length>0?s.pool.pop():new s,e}static release(e){s.pool||(s.pool=[]),e.clear(),s.pool.push(e)}}e("Dictionary",s),s.pool=void 0,t._RF.pop()}}}));

System.register("chunks:///_virtual/DownloadBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./LanguageLabel.ts"],(function(e){"use strict";var t,n,o,a,r,c,i;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){o=e.cclegacy,a=e._decorator,r=e.Component},function(e){c=e.ELanguage_Type},function(e){i=e.LanguageLabel}],execute:function(){var s,l,u,p,d;o._RF.push({},"fb520yJ/hRKRqBjsMUT2cv+","DownloadBtn",void 0);const{ccclass:g,property:f}=a;e("DownloadBtn",(s=g("DownloadBtn"),l=f({displayName:"描述",type:i}),s((d=t((p=class extends r{constructor(...e){super(...e),n(this,"dec",d,this)}start(){let e=[c.CN,c.EN];this.dec.setLanguageTypeArr(e)}onEnable(){}onDisable(){}update(e){}}).prototype,"dec",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=p))||u));o._RF.pop()}}}));

System.register("chunks:///_virtual/DrawingBoard.ts",["cc"],(function(t){"use strict";var i;return{setters:[function(t){i=t.cclegacy}],execute:function(){i._RF.push({},"f7167iR8C5AA7Du6isdOWRS","DrawingBoard",void 0);class e{constructor(t=0,i=0){this.x=void 0,this.y=void 0,this.x=t,this.y=i}set(t,i){"number"==typeof t?(this.x=t,this.y=i):(this.x=t.x,this.y=t.y)}}t("default",class{get width(){return this._witdh}get height(){return this._height}constructor(t,i,e){this._witdh=void 0,this._height=void 0,this.pointColor=void 0,this.maskPoint=void 0,this.buffer=void 0,this.pixelColor=void 0,this.colorCount=void 0,this.curColor=void 0,this.tempColor=void 0,this.tempR=void 0,this.tempG=void 0,this.tempB=void 0,this.tempA=void 0,this.previousLineEndPos=void 0,this.previousLineEndPosT=void 0,this.previousLineEndPosB=void 0,this.previousLineCircleEnd=void 0,this.previousLineWidth=void 0,this.init(t,i,e)}init(t,i,e){this.tempColor=this.tempR=this.tempG=this.tempB=this.tempA=0,this.curColor=0,this._witdh=Math.round(t),this._height=Math.round(i),this.initPointColor(),this.initMaskPoint(),this.initPixelColor(),this.initLineData(),e&&this.setData(e)}initPointColor(){this.pointColor||(this.pointColor=[]);for(let t=0;t<this.width;++t){this.pointColor[t]||(this.pointColor[t]=[]);for(let i=0;i<this.height;++i)this.pointColor[t][i]=0}this.colorCount={},this.colorCount[0]=this.width*this.height}initMaskPoint(){this.maskPoint||(this.maskPoint=[]);for(let t=0;t<this.width;++t){this.maskPoint[t]||(this.maskPoint[t]=[]);for(let i=0;i<this.height;++i)this.maskPoint[t][i]=1}}initPixelColor(){this.buffer=new ArrayBuffer(this.width*this.height*4),this.pixelColor=new Uint8Array(this.buffer),this.pixelColor.fill(0)}reset(){this.resetPointColor(),this.resetMaskPoint(),this.resetPixelColor()}resetPointColor(){for(let t=this.width-1;t>=0;--t)for(let i=this.height-1;i>=0;--i)this.pointColor[t][i]=0;for(let t in this.colorCount)this.colorCount[t]=0}resetMaskPoint(){for(let t=this.width-1;t>=0;--t)for(let i=this.height-1;i>=0;--i)this.maskPoint[t][i]=1}resetPixelColor(){this.pixelColor.fill(0)}setData(t){let i=new Uint8Array(t);i.length==this.width*this.height*4?(this.setPixelColorByRGBA(i),this.setPointColorByRGBA(i)):console.warn("画板设置数据失败，数据长度与画板大小不一致。")}setPixelColorByRGBA(t){this.pixelColor.set(t)}setPointColorByRGBA(t){this.colorCount={};for(let i=0;i<this.height;++i){let e=i*this.height;for(let o=0;o<this.width;++o){let s=this.convertToNumber(t[e++],t[e++],t[e++],t[e++]);this.pointColor[o][i]=s,this.colorCount[s]?this.colorCount[s]+=1:this.colorCount[s]=1}}}setMask(t){for(let i=this.width-1;i>=0;--i)if(t[i])for(let e=this.height-1;e>=0;--e)null!=t[i][e]&&(this.maskPoint[i][e]=t[i][e])}setDisable(){for(let t=this.width-1;t>=0;--t)for(let i=this.height-1;i>=0;--i)this.maskPoint[t][i]=0}addEnablePoints(t){for(let i=this.width-1;i>=0;--i)if(t[i])for(let e=this.height-1;e>=0;--e)t[i][e]&&(this.maskPoint[i][e]=t[i][e])}copyData(t){void 0===t&&(t=[]);for(let i=0,e=this.pixelColor.length;i<e;++i)t[i]=this.pixelColor[i];return t}getData(){return this.pixelColor}getBuffer(){return this.buffer}getPointData(){return this.pointColor}getColorCount(t,i,e,o=255){let s=this.convertToNumber(t,i,e,o);return this.colorCount[s]}setColor(t,i,e,o=255){this.curColor=this.convertToNumber(t,i,e,o),this.colorCount[this.curColor]||(this.colorCount[this.curColor]=0),this.tempColor=this.curColor,this.tempR=t,this.tempG=i,this.tempB=e,this.tempA=o}clear(){this.reset()}initLineData(){this.previousLineEndPos=new e,this.previousLineEndPosT=new e,this.previousLineEndPosB=new e,this.previousLineCircleEnd=!0,this.previousLineWidth=1}moveTo(t,i){t=Math.round(t),i=Math.round(i),this.previousLineEndPos.set(t,i),this.previousLineEndPosT.set(t,i),this.previousLineEndPosB.set(t,i)}setLineWidth(t){this.previousLineWidth=t}setLineCircleEnd(t){this.previousLineCircleEnd=t}line(t,i,o,s){if(t=Math.round(t),o=Math.round(o),i=Math.round(i),s=Math.round(s),t==o&&i==s)return;let r=this.previousLineWidth,h=this.previousLineCircleEnd;this.previousLineEndPos.set(o,s);let n=0,l=0,a=1;if(t==o)n=Math.round(.5*r);else if(i==s)l=Math.round(.5*r);else{let e=(s-i)/(o-t);a=Math.sqrt(e*e+1),l=.5*r/a,n=Math.round(l*e),l=Math.round(l)}this.previousLineEndPosT.set(o-n,s+l),this.previousLineEndPosB.set(o+n,s-l);let d=new e(t,i),u=new e(o,s);t>o&&(d.x=o,d.y=s,u.x=t,u.y=i),this._drawLine(d,u,r,n,l,a),h&&(this._drawCircle(t,i,.5*r),this._drawCircle(o,s,.5*r))}lineTo(t,i){if(t=Math.round(t),i=Math.round(i),this.previousLineEndPos.x==t&&this.previousLineEndPos.y==i)return;let o=this.previousLineWidth,s=this.previousLineCircleEnd,r=this.previousLineEndPos.x,h=this.previousLineEndPos.y,n=t,l=i;r>n&&(r=n,h=l,n=this.previousLineEndPos.x,l=this.previousLineEndPos.y);let a=0,d=0,u=1;if(r==n)a=Math.round(.5*o);else if(h==l)d=Math.round(.5*o);else{let t=(l-h)/(n-r);u=Math.sqrt(t*t+1),d=.5*o/u,a=Math.round(d*t),d=Math.round(d)}if(s)this._drawCircle(r,h,.5*o),this._drawCircle(n,l,.5*o);else if(this.previousLineEndPos.x!=this.previousLineEndPosT.x||this.previousLineEndPos.y!=this.previousLineEndPosT.y){let t=new e(this.previousLineEndPos.x-a,this.previousLineEndPos.y+d),i=new e(this.previousLineEndPos.x+a,this.previousLineEndPos.y-d);this._drawTriangle([t,i,this.previousLineEndPosT]),this._drawTriangle([t,i,this.previousLineEndPosB])}this._drawLine(new e(r,h),new e(n,l),o,a,d,u),this.previousLineEndPos.set(t,i),this.previousLineEndPosT.set(t-a,i+d),this.previousLineEndPosB.set(t+a,i-d)}_drawLine(t,i,o,s,r,h){if(t.y==i.y){let s=t.x<i.x?t.x:i.x;this._drawRect(new e(s,Math.round(t.y-.5*o)),Math.abs(t.x-i.x),o)}else if(t.x==i.x){let s=t.y<i.y?t.y:i.y;this._drawRect(new e(Math.round(t.x-.5*o),s),o,Math.abs(t.y-i.y))}else{let n=(t.x-i.x)/(t.y-i.y),l=new e(t.x-s,t.y+r),a=new e(t.x+s,t.y-r),d=new e(i.x-s,i.y+r),u=new e(i.x+s,i.y-r),p=new e,x=new e,C=Math.round(o*h);i.y>t.y?a.x<d.x?(p.x=a.x,p.y=a.y+C,x.x=d.x,x.y=d.y-C,this._drawVerticalTriangle(p,a,l),this._drawParallelogram(a,x,C),this._drawVerticalTriangle(d,x,u)):(p.x=a.x,p.y=Math.round(d.y-(p.x-d.x)*n),x.x=d.x,x.y=Math.round(a.y+(a.x-x.x)*n),this._drawVerticalTriangle(d,x,l),this._drawParallelogram(x,a,d.y-x.y),this._drawVerticalTriangle(p,a,u)):l.x<u.x?(p.x=l.x,p.y=l.y-C,x.x=u.x,x.y=u.y+C,this._drawVerticalTriangle(l,p,a),this._drawParallelogram(p,u,C),this._drawVerticalTriangle(x,u,d)):(p.x=l.x,p.y=Math.round(u.y-(p.x-u.x)*n),x.x=u.x,x.y=Math.round(l.y+(l.x-x.x)*n),this._drawVerticalTriangle(x,u,a),this._drawParallelogram(u,p,l.y-p.y),this._drawVerticalTriangle(l,p,d))}}rect(t,i,o,s){t=Math.round(t),i=Math.round(i),this._drawRect(new e(t,i),o,s)}_drawRect(t,i,e){let o=this.clampX(t.x),s=this.clampX(t.x+i),r=this.clampY(t.y),h=this.clampY(t.y+e);for(let t=o;t<=s;++t)for(let i=r;i<=h;++i)this._drawPixel(t,i);for(let t=r;t<=h;++t)this._drawRowPixel(o,s,t)}_drawParallelogram(t,i,e){if(t.x==i.x)return;let o=(i.y-t.y)/(i.x-t.x),s=this._minX(t.x),r=this._maxX(i.x);for(let i=s;i<=r;++i){let s=t.y+Math.round((i-t.x)*o),r=s+e;s=this._minY(s),r=this._maxY(r),this._drawColPixel(s,r,i);for(let t=s;t<=r;++t)this._drawPixel(i,t)}}triangle(t,i,o,s,r,h){t=Math.round(t),i=Math.round(i),o=Math.round(o),s=Math.round(s),r=Math.round(r),h=Math.round(h);let n=[];n.push(new e(t,i)),n.push(new e(o,s)),n.push(new e(r,h)),this._drawTriangle(n)}_drawTriangle(t){t.sort(((t,i)=>t.x-i.x));let i=t[0],o=t[1],s=t[2];if(i.x==o.x){if(i.x==s.x)return;return i.y<o.y&&(i=t[1],o=t[0]),void this._drawVerticalTriangle(i,o,s)}let r=(s.y-i.y)/(s.x-i.x),h=new e(o.x,Math.round(i.y+(o.x-i.x)*r));h.y!=o.y&&(h.y<o.y?(this._drawVerticalTriangle(o,h,i),this._drawVerticalTriangle(o,h,s)):(this._drawVerticalTriangle(h,o,i),this._drawVerticalTriangle(h,o,s)))}_drawVerticalTriangle(t,i,e){if(e.x==t.x)return;let o=(e.y-t.y)/(e.x-t.x),s=(e.y-i.y)/(e.x-i.x),r=e.x,h=t.x;r<h&&(r=t.x,h=e.x),h=this._minX(h),r=this._maxX(r);for(let e=h;e<=r;++e){let r=this.clampY(Math.round(t.y+(e-t.x)*o)),h=this.clampY(Math.round(i.y+(e-i.x)*s));this._drawColPixel(h,r,e);for(let t=h;t<=r;++t)this._drawPixel(e,t)}}circle(t,i,e){t=Math.round(t),i=Math.round(i),this._drawCircle(t,i,e)}_drawCircle(t,i,e){if(0==(e=Math.round(e)))return;let o=e*e,s=this._minX(t-e),r=this._maxX(t+e);for(let e=s;e<=r;++e){let s=t-e;s=Math.round(Math.sqrt(o-s*s));let r=this._minY(i-s),h=this._maxY(i+s);for(let t=r;t<=h;++t)this._drawPixel(e,t)}let h=this.clampY(i-e),n=this.clampY(i+e);for(let e=h;e<=n;++e){let s=e-i;s=Math.round(Math.sqrt(o-s*s));let r=this.clampX(t-s),h=this.clampX(t+s);this._drawRowPixel(r,h,e)}}_minX(t){return t>=0?t:0}_maxX(t){return t<this.width?t:this.width-1}_minY(t){return t>=0?t:0}_maxY(t){return t<this.height?t:this.height-1}clampX(t){return t<0?0:t>=this.width?this.width-1:t}clampY(t){return t<0?0:t>=this.height?this.height-1:t}_drawPixel(t,i){if(t=Math.round(t),i=Math.round(i),0==this.maskPoint[t][i])return;if(this.pointColor[t][i]==this.tempColor)return;let e=4*(i*this.width+t);this.pixelColor[e]=this.tempR,this.pixelColor[e+1]=this.tempG,this.pixelColor[e+2]=this.tempB,this.pixelColor[e+3]=this.tempA;let o=this.pointColor[t][i];this.colorCount[o]--,this.colorCount[this.tempColor]++,this.pointColor[t][i]=this.tempColor}_drawRowPixel(t,i,e){let o=4*(e*this.width+t);for(let s=t;s<=i;++s){if(0!=this.maskPoint[s][e]&&this.pointColor[s][e]!=this.tempColor){this.pixelColor[o]=this.tempR,this.pixelColor[o+1]=this.tempG,this.pixelColor[o+2]=this.tempB,this.pixelColor[o+3]=this.tempA;let t=this.pointColor[s][e];this.colorCount[t]--,this.colorCount[this.tempColor]++,this.pointColor[s][e]=this.tempColor}o+=4}}_drawColPixel(t,i,e){let o=4*(t*this.width+e);for(let s=t;s<=i;++s){if(0!=this.maskPoint[e][s]&&this.pointColor[e][s]!=this.tempColor){this.pixelColor[o]=this.tempR,this.pixelColor[o+1]=this.tempG,this.pixelColor[o+2]=this.tempB,this.pixelColor[o+3]=this.tempA;let t=this.pointColor[e][s];this.colorCount[t]--,this.colorCount[this.tempColor]++,this.pointColor[e][s]=this.tempColor}o+=4*this.width}}convertToNumber(t,i,e,o=255){return(254&t)<<23|i<<16|e<<8|o}convertToRGBA(t){return{r:(4009754624&t)>>23,g:(16711680&t)>>16,b:(65280&t)>>8,a:255&t}}}),i._RF.pop()}}}));

System.register("chunks:///_virtual/DropDownList.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,s,r,o,n,l,a,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,r=t.Node,o=t.Label,n=t._decorator,l=t.Component,a=t.instantiate,h=t.v3}],execute:function(){var u,p,c,m,b,d,N,y,g,f,L,v,w,D,T;s._RF.push({},"72dc99b4TxK6LLv34CRoI5B","DropDownList",void 0);const{ccclass:E,property:C,executeInEditMode:_}=n;t("DropDownList",(u=E("DropDownList"),p=C({displayName:"bgNode",type:r,tooltip:"弹窗背景，不赋值则无背景"}),c=C({displayName:"上方节点",type:r}),m=C({displayName:"上方节点箭头",type:r}),b=C({displayName:"列表节点",type:r}),d=C({displayName:"选中展示的label",type:o}),N=C({displayName:"item",type:r}),u(y=_((f=e((g=class extends l{constructor(...t){super(...t),i(this,"bgNode",f,this),i(this,"topNode",L,this),i(this,"arrow",v,this),i(this,"listNode",w,this),i(this,"showLabel",D,this),i(this,"itemTemp",T,this),this.numberList=[],this.itemArr=[],this.curNum="",this.curIndex=-1}start(){this.bindEvents()}initList(t=[]){this.removeList(),this.numberList=t;for(let e=0;e<t.length;e++){let i=t[e],s=a(this.itemTemp);s.parent=this.itemTemp.parent,s.active=!0,s.getChildByName("Label").getComponent(o).string=i.toString(),this.itemArr.push(s),s.on(r.EventType.TOUCH_END,this.itemClick,this)}}itemClick(t){let e=t.getCurrentTarget();this.selectItem(e),this.setListNodeVisible(!1)}selectItem(t){let e=this.itemArr.indexOf(t);if(-1==e)return;let i=this.numberList[e];this.curNum=i,this.curIndex=e,this.showLabel.string=this.curNum}removeList(){for(let t=0;t<this.itemArr.length;t++)this.itemArr[t].destroy();this.itemArr=[],this.numberList=[]}bindEvents(){this.topNode.on(r.EventType.TOUCH_END,(()=>{let t=!this.listNode.active;this.setListNodeVisible(t)}),this)}onBg(t){this.setListNodeVisible(!1)}setListNodeVisible(t){this.listNode.active=t,this.bgNode&&(this.bgNode.active=t,1==t?this.bgNode.on(r.EventType.TOUCH_END,this.onBg,this):this.bgNode.off(r.EventType.TOUCH_END,this.onBg,this)),1==this.listNode.active?this.arrow.setRotationFromEuler(h(0,0,180)):this.arrow.setRotationFromEuler(h(0,0,0))}}).prototype,"bgNode",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(g.prototype,"topNode",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(g.prototype,"arrow",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(g.prototype,"listNode",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(g.prototype,"showLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(g.prototype,"itemTemp",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=g))||y)||y));s._RF.pop()}}}));

System.register("chunks:///_virtual/DropDownList2.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButtonState.ts","./WithDrawCtrl.ts"],(function(t){"use strict";var e,i,n,s,r,o,l,a,h,u,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t.Label,o=t._decorator,l=t.Component,a=t.instantiate,h=t.v3},function(t){u=t.UIButtonState},function(t){c=t.WithDrawCtrl}],execute:function(){var m,d,p,b,g,N,C,y,I,f,L,x,v,B,A;n._RF.push({},"d2197up66RIJ5uZOicDCS9p","DropDownList2",void 0);const{ccclass:w,property:D}=o;t("DropDownList2",(m=w("DropDownList2"),d=D({displayName:"bgNode",type:s,tooltip:"弹窗背景，不赋值则无背景"}),p=D({displayName:"btnOpenMenu",type:s,tooltip:"打开menu按钮"}),b=D({displayName:"btnLabel",type:r,tooltip:"打开menu按钮的标题"}),g=D({displayName:"arrow",type:s,tooltip:"open 按钮的箭头"}),N=D({displayName:"listNode",type:s,tooltip:"menu列表"}),C=D({displayName:"itemTemp",type:u,tooltip:"menu内的item"}),m((f=e((I=class extends l{constructor(...t){super(...t),i(this,"bgNode",f,this),i(this,"btnOpenMenu",L,this),i(this,"btnLabel",x,this),i(this,"arrow",v,this),i(this,"listNode",B,this),i(this,"itemTemp",A,this),this.numberList=[],this.itemArr=[],this.curNum="",this.curIndex=-1}start(){this.bindEvents()}initList(t=[]){this.removeList(),this.numberList=t;for(let e=0;e<t.length;e++){let i=t[e],n=a(this.itemTemp.node);n.parent=this.itemTemp.node.parent,n.active=!0;let s=n.getComponent(u).normalNode.getChildByName("Label");s.getComponent(r).string=i.toString(),s=n.getComponent(u).pressedNode.getChildByName("selLabel"),s.getComponent(r).string=i.toString(),n.getChildByName("selectIcon").active=!1,this.itemArr.push(n),n.getComponent(u).touchEndedFun=this.itemClick.bind(this)}if(this.itemArr&&this.itemArr.length>0){(!c.instance.selBankCardIdx||c.instance.selBankCardIdx<0)&&(c.instance.selBankCardIdx=0),c.instance.selBankCardIdx>=this.itemArr.length&&(c.instance.selBankCardIdx=this.itemArr.length-1);let t=this.numberList[c.instance.selBankCardIdx];this.curNum=t,this.curIndex=c.instance.selBankCardIdx,this.btnLabel.string=this.curNum,this.itemArr[this.curIndex].getComponent(u).select=!0,this.itemArr[this.curIndex].getChildByName("selectIcon").active=!0,this.itemArr[this.curIndex].getComponent(u).enabled=!1}}itemClick(t){this.selectItem(t.node),this.setListNodeVisible(!1)}selectItem(t){let e=this.itemArr.indexOf(t);if(-1==e)return;this.itemArr[this.curIndex].getComponent(u).select=!1,this.itemArr[this.curIndex].getChildByName("selectIcon").active=!1,this.itemArr[this.curIndex].getComponent(u).enabled=!0,c.instance.selBankCardIdx=e;let i=this.numberList[e];this.curNum=i,this.curIndex=e,this.btnLabel.string=this.curNum,this.itemArr[this.curIndex].getComponent(u).select=!0,this.itemArr[this.curIndex].getChildByName("selectIcon").active=!0,this.itemArr[this.curIndex].getComponent(u).enabled=!1}removeList(){for(let t=0;t<this.itemArr.length;t++)this.itemArr[t].destroy();this.itemArr=[],this.numberList=[]}bindEvents(){this.btnOpenMenu.on(s.EventType.TOUCH_END,(()=>{let t=!this.listNode.active;this.setListNodeVisible(t)}),this)}onBg(t){this.setListNodeVisible(!1)}setListNodeVisible(t){this.listNode.active=t,this.bgNode&&(this.bgNode.active=t,1==t?this.bgNode.on(s.EventType.TOUCH_END,this.onBg,this):this.bgNode.off(s.EventType.TOUCH_END,this.onBg,this)),1==this.listNode.active?this.arrow.setRotationFromEuler(h(0,0,180)):this.arrow.setRotationFromEuler(h(0,0,0))}}).prototype,"bgNode",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(I.prototype,"btnOpenMenu",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(I.prototype,"btnLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(I.prototype,"arrow",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(I.prototype,"listNode",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(I.prototype,"itemTemp",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=I))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/DStorage.ts",["cc"],(function(t){"use strict";var e,a;return{setters:[function(t){e=t.sys,a=t.cclegacy}],execute:function(){a._RF.push({},"cd0efYus4ZBtb3XiTd/pIZ1","DStorage",void 0);t("default",class{static set(t,a){e.localStorage.setItem(t,JSON.stringify(a))}static get(t){let a=e.localStorage.getItem(t),l=null;if(a&&"undefined"!=a&&null!=a)try{l=JSON.parse(a)}catch(t){t(t)}return l}static remove(t){e.localStorage.removeItem(t)}static getItem(t,e){let a=localStorage.getItem(t);return null==a?e:a}static getNum(t,e){let a=localStorage.getItem(t);return null==a||""==a?e:Number(a)}static setItem(t,e){Log.d("setitem:key:"+t+",value:"+e),localStorage.setItem(t,String(e))}static removeItem(t){localStorage.removeItem(t)}static getObj(t,e){let a=localStorage.getItem(t);return null==a||""==a?e:JSON.parse(a)}static setObj(t,e){let a=JSON.stringify(e);localStorage.setItem(t,a)}}),a._RF.pop()}}}));

System.register("chunks:///_virtual/EffectsUtil.ts",["cc"],(function(t){"use strict";var e,c,r;return{setters:[function(t){e=t.cclegacy,c=t.v3,r=t._decorator}],execute:function(){var s;e._RF.push({},"e83e9e3+UtOXZGkVTGBNtUY","EffectsUtil",void 0);const{ccclass:a,property:o}=r;t("EffectsUtil",a("EffectsUtil")(s=class{static get2BezierCtrlP(t,e){let r=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))>>2,s=e.x-t.x,a=e.y-t.y,o=t.x+(s>>2),i=t.y+(a>>2),n=Math.atan2(i,o);n+=Math.PI/180*270;let y=o+Math.cos(n)*r,l=i+Math.sin(n)*r,x=t.x+3*(s>>2),h=t.y+3*(a>>2);n=Math.atan2(h,x),n+=Math.PI/180*90;let f=x+Math.cos(n)*r,u=h+Math.sin(n)*r;return{controlPos0:c(y,l),controlPos1:c(f,u)}}static threeBezier(t,e,r,s,a){let o=e.x*(1-t)*(1-t)*(1-t)+3*r.x*t*(1-t)*(1-t)+3*s.x*t*t*(1-t)+a.x*t*t*t,i=e.y*(1-t)*(1-t)*(1-t)+3*r.y*t*(1-t)*(1-t)+3*s.y*t*t*(1-t)+a.y*t*t*t;return c(o,i,0)}static forthBezier(t,e,r,s,a,o){let i=e.x*(1-t)*(1-t)*(1-t)*(1-t)+4*r.x*t*(1-t)*(1-t)*(1-t)+4*s.x*t*t*(1-t)*(1-t)+4*a.x*t*t*t*(1-t)+o.x*t*t*t*t,n=e.y*(1-t)*(1-t)*(1-t)*(1-t)+4*r.y*t*(1-t)*(1-t)*(1-t)+4*s.y*t*t*(1-t)*(1-t)+4*a.y*t*t*t*(1-t)+o.y*t*t*t*t;return c(i,n,0)}})||s);e._RF.pop()}}}));

System.register("chunks:///_virtual/EmailItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./MsgHandler.ts","./CustomEventMgr.ts","./EnumDefine.ts","./TimeUtil.ts"],(function(t){"use strict";var e,i,a,n,l,r,s,o,u,h,c,m,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,n=t.Label,l=t.Node,r=t._decorator,s=t.Component,o=t.v3},function(t){u=t.EventType},function(t){h=t.default},function(t){c=t.CustomEventMgr},function(t){m=t.EMSG_ACTION},function(t){p=t.default}],execute:function(){var b,D,d,f,y,E,w,g,v,L,C,N,B,M,I,T,z,R,k;a._RF.push({},"eb36cTm+C1JVIrnK0fYZ792","EmailItem",void 0);const{ccclass:_,property:S}=r;t("EmailItem",(b=_("EmailItem"),D=S({displayName:"content",type:n}),d=S({displayName:"titleLabel",type:n}),f=S({displayName:"timeLabel",type:n}),y=S({displayName:"showDetailBtn",type:l}),E=S({displayName:"showDetailContent",type:l}),w=S({displayName:"deleteBtn",type:l}),g=S({displayName:"消息已读",type:l}),v=S({displayName:"消息未读",type:l}),b((N=e((C=class extends s{constructor(...t){super(...t),i(this,"contentLabel",N,this),i(this,"titleLabel",B,this),i(this,"timeLabel",M,this),i(this,"showDetailBtn",I,this),i(this,"showDetailContent",T,this),i(this,"deleteBtn",z,this),i(this,"readMark",R,this),i(this,"notReadMark",k,this),this.emailData=null}start(){this.bindEvents()}initEmail(t){this.emailData=t,this.refreshInterface()}bindEvents(){this.showDetailBtn.on(l.EventType.TOUCH_END,(()=>{this.emailData.isShowDetail=!this.emailData.isShowDetail,this.emailData.isread?c.fire(u.OnDealEmail):(this.emailData.isread=!0,h.Instance().c2sEmailAction(this.emailData.id,m.READ))})),this.deleteBtn.on(l.EventType.TOUCH_END,(()=>{h.Instance().c2sEmailAction(this.emailData.id,m.DEL)}))}refreshInterface(){let t=this.emailData.getContent(),e=p.dateFormat(this.emailData.activeTime);this.contentLabel.string=t,this.titleLabel.string=this.emailData.getTitle(),this.timeLabel.string=e,this.showDetailContent.active=this.emailData.isShowDetail,this.readMark.active=this.emailData.isread,this.notReadMark.active=!this.emailData.isread,1==this.emailData.isShowDetail?this.showDetailBtn.setRotationFromEuler(o(0,0,0)):this.showDetailBtn.setRotationFromEuler(o(0,0,180))}}).prototype,"contentLabel",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(C.prototype,"titleLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(C.prototype,"timeLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(C.prototype,"showDetailBtn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(C.prototype,"showDetailContent",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(C.prototype,"deleteBtn",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(C.prototype,"readMark",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(C.prototype,"notReadMark",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=C))||L));a._RF.pop()}}}));

System.register("chunks:///_virtual/EmailModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./GameUtil.ts","./Controller.ts","./CustomEventMgr.ts"],(function(t){"use strict";var i,e,s,a,r,n,l;return{setters:[function(t){i=t.cclegacy,e=t._decorator},function(t){s=t.EMSG_ACTION},function(t){a=t.EventType},function(t){r=t.GameUtils},function(t){n=t.Controller},function(t){l=t.CustomEventMgr}],execute:function(){var o;i._RF.push({},"2e75738xVdH1bi5yN2lWJVb","EmailModel",void 0);const{ccclass:c}=e;t("EmailModel",c("EmailModel")(o=class extends n{constructor(){super(),this.emailDataArr=void 0,this.emailDataArr=[]}setEmailData(t){if(this.emailDataArr.length=0,t){for(let i=0,e=t.length;i<e;i++){let e=new h;e.init(t[i]),this.emailDataArr.push(e)}this.sortEmail(),l.fire(a.OnGetEmail)}}sortEmail(){this.emailDataArr.sort(((t,i)=>{let e=t.isread?1:0,s=i.isread?1:0;return e==s?i.activeTime-t.activeTime:e-s}))}dealEmail(t,i){switch(i){case s.READ:this.readedMsg(t);break;case s.DEL:this.delMsg(t)}l.fire(a.OnDealEmail,t,i)}readedMsg(t){this.emailDataArr.forEach((i=>i.id!=t||(i.isread=!0,!1)),this)}delMsg(t){this.emailDataArr.forEach(((i,e)=>i.id!=t||(this.emailDataArr.splice(e,1),!1)),this)}getUnReadMsgNum(){let t=0;return this.emailDataArr.forEach((i=>(i.isread||t++,!0)),this),t}})||o);class h{constructor(){this.id=void 0,this.title=void 0,this.content=void 0,this.activeTime=void 0,this.isread=void 0,this.isShowDetail=void 0}init(t){this.id=t.id,this.title=t.Title,this.content=t.Content||"",this.activeTime=t.ActiveTime,this.isread=1==t.read,this.isShowDetail=!1}get time(){return r.formatDate(new Date(1e3*this.activeTime))}getContent(){return this.content}getTitle(){return this.content?this.content.slice(0,10)+"...":""}}t("EmailData",h),i._RF.pop()}}}));

System.register("chunks:///_virtual/Entry.ts",["cc","./ResourceLoader.ts"],(function(e){"use strict";var s,n;return{setters:[function(e){s=e.cclegacy},function(e){n=e.default}],execute:function(){s._RF.push({},"b3b13nmoK5Kw6BrevBcoPth","Entry",void 0);class t{constructor(){this.isMain=!1,this.bundle="",this.loader=null,this.node=null,this.isRunning=!1,this.loader=new n}onLoad(e){this.node=e,this.isRunning=!0}onDestroy(){this.isRunning=!1}onEnter(){this.initData(),this.addNetHandler(),this.pauseMessageQueue(),this.loadResources((()=>{this.openGameView()}))}onUnloadBundle(){this.removeNetHandler(),this.unloadResources(),this.closeGameView()}unloadResources(){this.loader.unLoadResources()}addNetHandler(){}removeNetHandler(){}pauseMessageQueue(){}resumeMessageQueue(){}call(e,s){}}e("Entry",t),t.bundle="",s._RF.pop()}}}));

System.register("chunks:///_virtual/EntryDelegate.ts",["cc","./Eventer.ts","./UIDefined.ts","./UIManager.ts","./UIUtils.ts","./HotUpdateManager.ts","./IHotUpdate.ts","./BundleManager.ts","./HallDefind.ts","./EntryManager.ts"],(function(e){"use strict";var n,t,o,a,s,d,i,c,l,r,E;return{setters:[function(e){n=e.cclegacy},function(e){t=e.Eventer},function(e){o=e.UIID},function(e){a=e.UIManager},function(e){s=e.default},function(e){d=e.HotUpdateManager},function(e){i=e.HotUpdate},function(e){c=e.BundleManager},function(e){l=e.BUNDLE_RESOURCES,r=e.ENTRY_CONFIG},function(e){E=e.EntryManager}],execute:function(){n._RF.push({},"dffc4VtciJG9ooQbgINQE1F","EntryDelegate",void 0);e("EntryDelegate",class{onBundleLoading(e){s.showTips("正在更新...")}onNewVersionFund(e,n,s){if(e.isNeedPrompt){let n={content:"检测到有新的版本，是否更新?",okFunc:()=>{let n={isOk:!0,state:s,name:e.name,bundle:e.bundle};t.getInstance().emit(i.Event.DOWNLOAD_MESSAGE,n)}};a.getInstance().open(o.UINotice,n)}else d.getInstance().hotUpdate()}onDownloadFailed(e,n,s){if(e.isNeedPrompt){let n={content:"检测到有新的版本，是否更新?",okFunc:()=>{let n={isOk:!0,state:s,name:e.name,bundle:e.bundle};t.getInstance().emit(i.Event.DOWNLOAD_MESSAGE,n)}};a.getInstance().open(o.UINotice,n)}else d.getInstance().downloadFailedAssets()}onAreadyUpToData(e,n,t){s.showLoading(),c.getInstance().loadBundle(this)}onDownloadManifestFailed(e,n,t){let o="下载版本文件失败!";n==i.Code.ERROR_NO_LOCAL_MANIFEST?o="找不到版本文件!":n==i.Code.ERROR_PARSE_MANIFEST&&(o="版本文件解析错误!"),s.showTips(o)}onCheckingVersion(e,n,t){}onOtherReason(e,n,t){}onDownloading(e,n){let o=0,a=d.getInstance().getBundleName(e.bundle);n.code==i.Code.UPDATE_PROGRESSION?(o=n.percent==Number.NaN?0:n.percent,t.getInstance().emit(i.Event.DOWNLOAD_PROGRESS,{progress:o,config:a})):n.code==i.Code.ALREADY_UP_TO_DATE?(o=1,t.getInstance().emit(i.Event.DOWNLOAD_PROGRESS,{progress:o,config:a})):n.code==i.Code.UPDATE_FINISHED?(o=1.1,Log.d(`正在加载${a.name}`),c.getInstance().loadBundle(this),t.getInstance().emit(i.Event.DOWNLOAD_PROGRESS,{progress:o,config:a})):n.code!=i.Code.UPDATE_FAILED&&n.code!=i.Code.ERROR_NO_LOCAL_MANIFEST&&n.code!=i.Code.ERROR_DOWNLOAD_MANIFEST&&n.code!=i.Code.ERROR_PARSE_MANIFEST&&n.code!=i.Code.ERROR_DECOMPRESS||(o=-1,t.getInstance().emit(i.Event.DOWNLOAD_PROGRESS,{progress:o,config:a}))}onLoadBundleError(e,n){s.showLoading()}onLoadBundleComplete(e,n){s.hideLoading(),E.getInstance().onLoadBundleComplete(e,n)}onEnterBundle(e){let n=this.getPersistBundle();e&&n.push(e.bundle),c.getInstance().removeLoadedBundle(this,n)}onCheckUpdate(){let e=new i.BundleConfig("主包",l,!0);c.getInstance().enterBundle(e,this)}getPersistBundle(){return[l]}getEntryConfig(e){let n=r[e];return n||null}}),n._RF.pop()}}}));

System.register("chunks:///_virtual/EntryManager.ts",["cc","./Singleton.ts","./BundleManager.ts","./EntryDelegate.ts","./CacheManager.ts"],(function(e){"use strict";var n,t,s,a,r,l;return{setters:[function(e){n=e.cclegacy,t=e.assetManager},function(e){s=e.Singleton},function(e){a=e.BundleManager},function(e){r=e.EntryDelegate},function(e){l=e.CacheManager}],execute:function(){n._RF.push({},"6a0a5urXGFIa6PxPM70GI94","EntryManager",void 0);class o extends(s()){constructor(...e){super(...e),this.tag="[EntryManager] : ",this._entrys=new Map,this.delegate=new r,this.node=null}register(e){let n=this.getEntry(e.bundle);n&&this._entrys.delete(e.bundle),n=new e,n.bundle=e.bundle,this._entrys.set(n.bundle,n),this.node&&n.onLoad(this.node)}onLoad(e){this.node=e,this._entrys.forEach(((e,n)=>{e.isRunning||(e.onLoad(this.node),e.isMain&&e.onEnter())}))}onDestroy(e){this._entrys.forEach((e=>{e.onDestroy()}))}onCheckUpdate(){this.delegate.onCheckUpdate()}call(e,n,...t){let s=this.getEntry(e);s&&s.call(n,t)}enterBundle(e){let n=this.delegate.getEntryConfig(e);n&&a.getInstance().enterBundle(n,this.delegate)}exitBundle(e){o.getInstance().onUnloadBundle(e);let n=a.getInstance().getBundle(e);n&&(l.getInstance().removeBundle(e),t.removeBundle(n))}onLoadBundleComplete(e,n){let t=this.getEntry(e.bundle);t&&(this.onEnterBundle(e.bundle),t.onEnter())}onEnterBundle(e){let n=this.getEntry(e);this.delegate.onEnterBundle(n)}onUnloadBundle(e){let n=this.getEntry(e);n&&n.onUnloadBundle()}getEntry(e){let n=a.getInstance().getBundleName(e),t=this._entrys.get(n);return t||null}}e("EntryManager",o),n._RF.pop()}}}));

System.register("chunks:///_virtual/EnumDefine.ts",["cc"],(function(E){"use strict";var o,e;return{setters:[function(E){o=E.cclegacy,e=E._decorator}],execute:function(){var T,A,S,_,n,O;E({APP_TYPE:void 0,ButtonEvent:void 0,EAppPlatform:void 0,EBankAccountInfoType:void 0,ECLIENT_GAME_RES_DIFF:void 0,ECODE:void 0,EChannel:void 0,EClient_Report:void 0,EComboBoxType:void 0,EDIRECTION:void 0,EEnchashment_Type:void 0,EGAME_TYPE:void 0,EGENERAL:void 0,EGuester:void 0,EHB_DOWNLOAD_STATE:void 0,EKeyType:void 0,ELOADED_STATE:void 0,ELOADER_STATE:void 0,ELOCK_STATU:void 0,EMSG_CONTENT_STATE:void 0,EMSG_STATE:void 0,EOPTION:void 0,EORIENTATION:void 0,EOS:void 0,EOSID:void 0,EPay_Plat:void 0,EPopWinType:void 0,EREDPACK_STATU:void 0,ERES_TYPE:void 0,ERegister_Code_Type:void 0,ERegister_Type:void 0,EReportLocation:void 0,ESTEP_LV:void 0,ESUCC:void 0,ESafebox:void 0,ESwitch:void 0,EVERSION_TYPE:void 0,GAME_TYPE:void 0,HttpMethod:void 0,QUICK_TASK_VIEW:void 0,Raffle_Award:void 0,SELECT_TYPE:void 0,StatisticsDownloadType:void 0,StatisticsEvent:void 0,StatisticsStatus:void 0,StatisticsType:void 0,TaskKind:void 0,TaskRewardType:void 0,TaskType:void 0,TopUpType:void 0,TrialStatus:void 0,TrialType:void 0,WEBVIEW_STATE:void 0}),o._RF.push({},"ca2ceYIVsdGFpIxflYRdHMf","EnumDefine",void 0);const{ccclass:t}=e;let i,N,R,D,L,c,C,I,a,P,r,d,u,s,p,v,G,f;!function(E){E[E.stargame88xyz=1]="stargame88xyz",E[E.vpower88com=2]="vpower88com",E[E.vnstar88=3]="vnstar88",E[E.indostar88com=4]="indostar88com",E[E.vpower99=5]="vpower99",E[E.vpower88xyz=6]="vpower88xyz",E[E.thstar88com=7]="thstar88com",E[E.wwwvpower777com=8]="wwwvpower777com",E[E.wwwvpower77com=9]="wwwvpower77com",E[E.wwwmmclub88com=10]="wwwmmclub88com",E[E.vpower_v=11]="vpower_v",E[E.vpower_i_5=12]="vpower_i_5",E[E.vpower_i_1=13]="vpower_i_1"}(i||(i=E("EAppPlatform",{}))),function(E){E.iOS="iOS",E.Android="Android",E.PC="Windows PC",E.MAC="Mac OS",E.NULL="NULL"}(N||(N=E("EOS",{}))),function(E){E[E.Android=1]="Android",E[E.iOS=2]="iOS",E[E.PC=3]="PC",E[E.H5=4]="H5"}(R||(R=E("EOSID",{}))),function(E){E[E.FACEBOOK=1e3]="FACEBOOK",E[E.WEB=1001]="WEB"}(D||(D=E("EChannel",{}))),function(E){E[E.FAIL=0]="FAIL",E[E.SUCC=1]="SUCC",E[E.SUCC20000=2e4]="SUCC20000"}(L||(L=E("ESUCC",{}))),function(E){E[E.SUCC=1]="SUCC",E[E.INVALID_REQUEST=2]="INVALID_REQUEST",E[E.NO_ACCOUNT=3]="NO_ACCOUNT",E[E.PWD_ERROR=4]="PWD_ERROR",E[E.MODIFY_SUCC=5]="MODIFY_SUCC",E[E.STOP_SERVER=19]="STOP_SERVER"}(c||(c=E("ECODE",{}))),function(E){E.ETC1="etc1",E.PVRTC="pvrtc"}(C||(C=E("ERES_TYPE",{}))),function(E){E[E.LEFT=-1]="LEFT",E[E.RIGHT=1]="RIGHT"}(I||(I=E("EDIRECTION",{}))),function(E){E[E.NOT_DOWLOAD=0]="NOT_DOWLOAD",E[E.DOWLOADED=1]="DOWLOADED",E[E.UPDATE=2]="UPDATE",E[E.UNDEFINED=3]="UNDEFINED"}(a||(a=E("ELOADED_STATE",{}))),function(E){E[E.PUB_RES=1]="PUB_RES",E[E.FISHING=2]="FISHING",E[E.SLOTS=3]="SLOTS",E[E.MO_GAME=4]="MO_GAME",E[E.SIGNLE_GAME=5]="SIGNLE_GAME"}(P||(P=E("EGAME_TYPE",{}))),function(E){E[E.WAIT_OPEN=0]="WAIT_OPEN",E[E.NOT_CHOOSE=1]="NOT_CHOOSE",E[E.CHOOSE=2]="CHOOSE"}(r||(r=E("EREDPACK_STATU",{}))),function(E){E[E[void 0]=-1]="undefined",E[E.WAITING=0]="WAITING",E[E.DOWNLOADING=1]="DOWNLOADING",E[E.FINISH=2]="FINISH",E[E.PAUSE=3]="PAUSE",E[E.STOP_DELETE=4]="STOP_DELETE",E[E.UNZIPING=5]="UNZIPING",E[E.UNZIP_SUCC=6]="UNZIP_SUCC",E[E.UNZIP_FAIL=7]="UNZIP_FAIL"}(d||(d=E("ELOADER_STATE",{}))),function(E){E[E.COLLECT=0]="COLLECT",E[E.TOTAL=1]="TOTAL",E[E.FISH=2]="FISH",E[E.ARCADE=3]="ARCADE",E[E.SLOTS=4]="SLOTS"}(u||(u=E("SELECT_TYPE",{}))),function(E){E[E.PUB_RES=1]="PUB_RES",E[E.FISH=2]="FISH",E[E.ARCADE=3]="ARCADE",E[E.SLOTS=4]="SLOTS",E[E.OTHER=5]="OTHER"}(s||(s=E("GAME_TYPE",{}))),function(E){E.ADD="add",E.DEL="del"}(p||(p=E("EOPTION",{}))),function(E){E[E.UN_READ=0]="UN_READ",E[E.READED=1]="READED"}(v||(v=E("EMSG_STATE",{}))),function(E){E[E.UN_READ=0]="UN_READ",E[E.OPEN=1]="OPEN",E[E.FOLDED=2]="FOLDED"}(G||(G=E("EMSG_CONTENT_STATE",{}))),function(E){E[E.FIRST=1]="FIRST",E[E.SECOND=2]="SECOND",E[E.THIRD=3]="THIRD",E[E.FOURTH=4]="FOURTH",E[E.LUCKY=5]="LUCKY"}(f||(f=E("Raffle_Award",{})));let U,F,l,y,H,w,W,M;E("EMSG_ACTION",t("EMSG_ACTION")(((A=class{}).READ="read",A.DEL="del",T=A))||T);!function(E){E[E.STOPSERVER=1]="STOPSERVER",E[E.NOTICE=2]="NOTICE",E[E.EHANDSEL=3]="EHANDSEL"}(U||(U=E("EGENERAL",{}))),function(E){E[E.ENUM=-1]="ENUM",E[E[void 0]=0]="undefined",E[E.START=1]="START",E[E.SVR_RESP=2]="SVR_RESP",E[E.REC_DATA=3]="REC_DATA",E[E.FINISHED=4]="FINISHED",E[E.PAUSE=5]="PAUSE"}(F||(F=E("EHB_DOWNLOAD_STATE",{}))),function(E){E.PORTRAIT_PRIMARY="portrait-primary",E.PORTRAIT_SECONDARY="portrait-secondary",E.LANDSCAPE_PRIMARY="landscape-primary",E.LANDSCAPE_SECONDARY="landscape-secondary",E.PORTRAIT="portrait",E.LANDSCAPE="landscape"}(l||(l=E("EORIENTATION",{}))),function(E){E.backbutton="backbutton",E.keydown="keydown",E.keyup="keyup",E.longpressed="longpressed",E.menubutton="menubutton",E.searchbutton="searchbutton",E.volumeupbutton="volumeupbutton",E.volumedownbutton="volumedownbutton"}(y||(y=E("EKeyType",{}))),function(E){E[E.NORMAL=0]="NORMAL",E[E.DIFF=1]="DIFF"}(H||(H=E("ECLIENT_GAME_RES_DIFF",{}))),function(E){E[E.Both_Close=0]="Both_Close",E[E.Graph_Code=1]="Graph_Code",E[E.Reffer_Code=2]="Reffer_Code",E[E.Both_Open=3]="Both_Open",E[E.NULL=4]="NULL"}(w||(w=E("ERegister_Code_Type",{}))),function(E){E[E.Close=0]="Close",E[E.Acount=1]="Acount",E[E.Mobile=2]="Mobile"}(W||(W=E("ERegister_Type",{}))),function(E){E[E.Progress_99=1]="Progress_99",E[E.Progress_100=2]="Progress_100",E[E.Enter_Lobby=3]="Enter_Lobby"}(M||(M=E("EReportLocation",{})));let h,m,Y,B,k,V;E("ELanguage_Type",t("ELanguage_Type")(((_=class{}).CN="cn",_.EN="en",_.VI="vi",_.ID="id",_.MS="ms",_.th="th",_.POR="por",_.NULL="",S=_))||S);!function(E){E[E.OTTPAYHK=2]="OTTPAYHK",E[E.TOPPAY=4]="TOPPAY",E[E.KOALAFIRST=5]="KOALAFIRST",E[E.BANANAPAY=6]="BANANAPAY",E[E.LETSPAYFASTVN=7]="LETSPAYFASTVN",E[E.LETSPAYFASTIN=8]="LETSPAYFASTIN",E[E.SOONEX=9]="SOONEX",E[E.AUPAY=10]="AUPAY",E[E.SEPROPAY=11]="SEPROPAY"}(h||(h=E("EPay_Plat",{}))),function(E){E[E.NORMAL=1]="NORMAL",E[E.THIRD_PARTY=2]="THIRD_PARTY"}(m||(m=E("EEnchashment_Type",{}))),function(E){E[E.NETDROP=1]="NETDROP",E[E.ERRDROP=2]="ERRDROP",E[E.NOCDROP=3]="NOCDROP",E[E.DOWNNUM=4]="DOWNNUM",E[E.DOWNRELINK=5]="DOWNRELINK"}(Y||(Y=E("EClient_Report",{}))),function(E){E[E.EQ=0]="EQ",E[E.BIG=1]="BIG",E[E.SMALL=2]="SMALL",E[E.BOTH=3]="BOTH"}(B||(B=E("EVERSION_TYPE",{}))),function(E){E[E[void 0]=0]="undefined",E[E.CLOSE=1]="CLOSE",E[E.OPEN=2]="OPEN"}(k||(k=E("EComboBoxType",{}))),function(E){E[E.Payee_Acct_Type=1]="Payee_Acct_Type",E[E.Bank_Account_NO=2]="Bank_Account_NO",E[E.Bank_Branch=3]="Bank_Branch",E[E.Country=4]="Country",E[E.Province=5]="Province",E[E.City=6]="City",E[E.Address=7]="Address",E[E.Last_Name=8]="Last_Name",E[E.First_Name=9]="First_Name",E[E.Zipcode=10]="Zipcode",E[E.Phone=11]="Phone",E[E.Email=12]="Email",E[E.Full_Name=13]="Full_Name",E[E.CPF=14]="CPF",E[E.Bank_Branch_Promote=15]="Bank_Branch_Promote",E[E.Pix_Type=16]="Pix_Type"}(V||(V=E("EBankAccountInfoType",{})));let g,K,b,x,Q,Z,z,J,X,j,q,$,EE,oE,eE,TE,AE,SE,_E,nE,OE;E("EPix_Type",t("EPix_Type")(((O=class{}).PHONE="phone",O.EMAIL="email",O.CPF="cpf",n=O))||n);!function(E){E[E.TASK=1]="TASK",E[E.WAIT=2]="WAIT",E[E.AWARD=3]="AWARD",E[E.FINISH=4]="FINISH"}(g||(g=E("QUICK_TASK_VIEW",{}))),function(E){E[E[void 0]=0]="undefined",E[E.Recharge=1]="Recharge",E[E.Withdraw=2]="Withdraw",E[E.Rank=4]="Rank",E[E.SafeBox=8]="SafeBox",E[E.Progress=16]="Progress",E[E.CustomerService=32]="CustomerService",E[E.ShareRank=64]="ShareRank",E[E.CashGift=128]="CashGift",E[E.Jackpot=256]="Jackpot",E[E.Share=512]="Share",E[E.LoginMenu=1024]="LoginMenu",E[E.Survey=2048]="Survey",E[E.LuckyNumber=4096]="LuckyNumber"}(K||(K=E("ESwitch",{}))),function(E){E[E.Deposit=0]="Deposit",E[E.Withdraw=1]="Withdraw"}(b||(b=E("ESafebox",{}))),function(E){E[E.CLOSE=0]="CLOSE",E[E.OPEN=1]="OPEN"}(x||(x=E("EGuester",{}))),function(E){E[E.STOP_SERVER_CODE=19]="STOP_SERVER_CODE"}(Q||(Q=E("EPopWinType",{}))),function(E){E[E.Reward=1]="Reward",E[E.Challenge=2]="Challenge"}(Z||(Z=E("TrialType",{}))),function(E){E[E.Unreaches=0]="Unreaches",E[E.CanReceive=1]="CanReceive",E[E.Received=2]="Received"}(z||(z=E("TrialStatus",{}))),function(E){E.POST="POST",E.GET="GET"}(J||(J=E("HttpMethod",{})));class tE{}E("HeadEvent",tE),tE.pre="Head_EVENT_",tE.GET_HEAD_DATA=tE.pre+"GET_HEAD_DATA",tE.CHANGE_HEAD=tE.pre+"CHANGE_HEAD",function(E){E[E.NONE=-1]="NONE",E[E.LOGIN=1]="LOGIN",E[E.ONLINE=2]="ONLINE",E[E.FISHWAGER=3]="FISHWAGER",E[E.SLOTWAGER=4]="SLOTWAGER"}(X||(X=E("TaskType",{}))),function(E){E[E.NONE=-1]="NONE",E[E.DAILY=1]="DAILY",E[E.WEEKLY=2]="WEEKLY",E[E.MONTHLY=3]="MONTHLY"}(j||(j=E("TaskKind",{}))),function(E){E[E.NONE=-1]="NONE",E[E.COPPER=1]="COPPER",E[E.SLIVER=2]="SLIVER",E[E.GOLD=3]="GOLD"}(q||(q=E("TaskRewardType",{}))),function(E){E[E.NULL=0]="NULL",E[E.TOP_UP=1]="TOP_UP",E[E.WITH_DAWAL=2]="WITH_DAWAL",E[E.SAFE=3]="SAFE"}($||($=E("TopUpType",{}))),function(E){E[E.LOCK=0]="LOCK",E[E.GIFT=1]="GIFT",E[E.OPENED_GIFT=2]="OPENED_GIFT"}(EE||(EE=E("ELOCK_STATU",{}))),function(E){E[E.COPPER=0]="COPPER",E[E.SILVER=1]="SILVER",E[E.GOLD=2]="GOLD"}(oE||(oE=E("ESTEP_LV",{})));class iE{}E("LuckDrawEvent",iE),iE.pre="LuckDraw_EVENT_",iE.RECEIVE_FAIL=iE.pre+"RECEIVE_FAIL",function(E){E[E.egret=1]="egret",E[E.cocos=2]="cocos"}(eE||(eE=E("APP_TYPE",{}))),function(E){E[E.FAIL=0]="FAIL",E[E.SUCCESS=1]="SUCCESS",E[E.START=2]="START"}(TE||(TE=E("StatisticsStatus",{}))),function(E){E[E.LOGIN_SUCCESS=0]="LOGIN_SUCCESS",E[E.GET_REQUEST_START=1]="GET_REQUEST_START",E[E.GET_REQUEST_SUCCESS=2]="GET_REQUEST_SUCCESS",E[E.GET_REQUEST_FAIL=3]="GET_REQUEST_FAIL",E[E.LOADED_RES_START=4]="LOADED_RES_START",E[E.LOADED_RES_SUCCESS=5]="LOADED_RES_SUCCESS",E[E.LOADED_RES_FAIL=6]="LOADED_RES_FAIL",E[E.LOADED_CONFIG_START=7]="LOADED_CONFIG_START",E[E.LOADED_CONFIG_SUCCESS=8]="LOADED_CONFIG_SUCCESS",E[E.LOADED_CONFIG_FAIL=9]="LOADED_CONFIG_FAIL",E[E.DOWNLOAD_GAME=10]="DOWNLOAD_GAME",E[E.FINISH_DOWNLOAD_GAME=11]="FINISH_DOWNLOAD_GAME",E[E.CANCEL_DOWNLOAD_GAME=12]="CANCEL_DOWNLOAD_GAME",E[E.Refresh_DOWNLOAD_GAME=13]="Refresh_DOWNLOAD_GAME"}(AE||(AE=E("StatisticsEvent",{}))),function(E){E[E.LOGIN_CONFIG=5]="LOGIN_CONFIG",E[E.LOADED_RES=9]="LOADED_RES",E[E.GET_REQUEST=7]="GET_REQUEST"}(SE||(SE=E("StatisticsType",{}))),function(E){E[E.DOWNLOAD=1]="DOWNLOAD",E[E.CANCEL=2]="CANCEL",E[E.REFRESH=3]="REFRESH"}(_E||(_E=E("StatisticsDownloadType",{}))),function(E){E.show="show",E.close="close",E.loaded="loaded"}(nE||(nE=E("WEBVIEW_STATE",{}))),function(E){E.click="click"}(OE||(OE=E("ButtonEvent",{}))),o._RF.pop()}}}));

System.register("chunks:///_virtual/EventDefine.ts",["cc"],(function(_){"use strict";var e;return{setters:[function(_){e=_.cclegacy}],execute:function(){e._RF.push({},"a3a85VdJrZJr75mLst/yMxL","EventDefine",void 0);class E{}_("EventType",E),E.pre="EVENT_TYPE_",E.OnPressBack="PressBack",E.OnFrameUpdate="FrameUpdate",E.onAuthFailed="onAuthFailed",E.OnChangeLanguage="ChangeLanguage",E.OnChangeUserInfo="ChangeUserInfo",E.OnAddNotice="AddNotice",E.OnGetNotice="OnGetNotice",E.OnDownloadGame="DownloadGame",E.OnUnZipGame="UnZipGame",E.StartDownloadPubilcRes="StartDownloadPubilcRes",E.DownloadPubilcResUpdateGameList="DownloadPubilcResUpdateGameList",E.OnLoginSuccess="LoginSuccess",E.OnLoginLock="OnLoginLock",E.OnGetBonus="GetBonus",E.OnPayBonus="PayBonus",E.OnChangePassWord="ChangePassWord",E.OnEditInfo="EditInfo",E.OnGetRechargeInfo="GetRechargeInfo",E.OnGetEmail="GetEmail",E.OnDealEmail="DealEmail",E.OnGetVerifica="GetVerifica",E.OnRegister=E.pre+"OnRegister",E.OnRegisterAfterLogin="RegisterAfterLogin",E.OnCheckRedPacket="CheckRedPacket",E.OnGetRedPacket="GetRedPacket",E.OnCloseRedPacket="OnCloseRedPacket",E.OnGetSignProgress="GetSignProgress",E.OnGetSignAward="GetSignAward",E.OnGetScore="GetScore",E.PlayMoney="PlayMoney",E.StopMoney="StopMoney",E.OnGetRank="GetRank",E.OnIsOpenRegister="IsOpenRegister",E.OnGetRegisterType="RegisterType",E.OnGetNewRechargeInfo="NewRechargeInfo",E.OnGetCashInfo="GetCashInfo",E.OnGetCashRecord="GetCashRecord",E.OnBindBank="BindBank",E.OnSetPassword="SetPassword",E.OnPemberian="Pemberian",E.OnGetGameBonus="GetGameBonus",E.OnGetBank="GetBank",E.OnGetMatchBalance="MatchBalance",E.OnInitialMatchBalance="InitialMatchBalance",E.GetCode="GetCode",E.RechargeOk="RechargeOk",E.RechargeError="RechargeError",E.CashOk="CashOk",E.Transactions="Transactions",E.IM_RED_DOT="IM_RED_DOT",E.FACEBOOK_NOTHINGNESS="FACEBOOK_NOTHINGNESS",E.FACEBOOK_CAN_LOGIN="FACEBOOK_CAN_LOGIN",E.FACEBOOK_IS_OPEN="FACEBOOK_IS_OPEN",E.ON_CLICK_BIG_ICON=E.pre+"ON_CLICK_BIG_ICON",E.AwardInfo="AwardInfo",E.WinAwardInfo="WinAwardInfo",E.GetTreasureChest="GetTreasureChest",E.IsOpenLuckDrak="IsOpenLuckDrak",E.luckyDrawList="luckyDrawList",E.ON_ACTIVE="ON_ACTIVE",E.ON_DEACTIVE="ON_DEACTIVE",E.UPDATE_GAME_AD="UPDATE_GAME_AD",E.TRIAL_ACTIVITY_INFO="TRIAL_ACTIVITY_INFO",E.TRIAL_ACTIVITY_REVEICE="TRIAL_ACTIVITY_REVEICE",E.CHOOSE_GAMELIST_TAG="CHOOSE_GAMELIST_TAG",E.GUESTER_GAME_LIST="GuesterGameList",E.ON_ORIENTATION="ON_ORIENTATION",E.FBEnabled="FBEnabled",E.ON_POP_WIN=E.pre+"ON_POP_WIN",E.ON_STOP_SVR=E.pre+"ON_STOP_SVR",E.NATIVE_GET_INFO=E.pre+"NATIVE_GET_INFO",E.WEBVIEW_STATE=E.pre+"WEBVIEW_STATE",E.Share_Details="Share_Details",E.Close_Effect="Close_Effect",E.SHOW_MAIN_UI="SHOW_MAIN_UI",E.HIDE_MAIN_UI="HIDE_MAIN_UI",E.Close_Effect_Task="Close_Effect_Task",E.Refresh_BanK_Data="Refresh_BanK_Data";class O{}_("CMDEvent",O),O.pre="CMD_EVENT_",O.ON_NEXT_CMD=O.pre+"ON_NEXT_CMD",O.CLOSE_REDPACKET_CMD=O.pre+"CLOSE_REDPACKET_CMD",O.CLOSE_SIGN_AWD_CMD=O.pre+"CLOSE_SIGN_AWD_CMD",O.CLOSE_ACTIVITY_CMD=O.pre+"CLOSE_ACTIVITY_CMD",O.CLOSE_BOX_CMD=O.pre+"CLOSE_BOX_CMD",O.CLOSE_TASK_CMD=O.pre+"CLOSE_TASK_CMD",O.CLOSE_CONVERTAPP_CMD=O.pre+"CLOSE_CONVERTAPP_CMD",O.CLOSE_LUCKY_NUMBER_CMD=O.pre+"CLOSE_LUCKY_NUMBER_CMD",O.CLOSE_EDIT_PASS_CMD=O.pre+"CLOSE_EDIT_PASS_CMD";class T{}_("LoginEvent",T),T.pre="Login_Event_",T.Ready_Login=T.pre+"Ready_Login",T.On_Guester_Login=T.pre+"On_Guester_Login",T.OPEN_FAST_REGISTER=T.pre+"OPEN_FAST_REGISTER";class N{}_("ShareEvent",N),N.pre="SHARE_EVENT_",N.ON_PLAYER_AWD_RECORD=N.pre+"ON_PLAYER_AWD_RECORD",N.ON_SCORE_INFO=N.pre+"ON_SCORE_INFO",N.ON_COMMISSION_INFO=N.pre+"ON_COMMISSION_INFO",N.ON_COMMISSION_RECORD=N.pre+"ON_COMMISSION_RECORD",N.ON_DRAW_SUM_CHANGE=N.pre+"ON_DRAW_SUM_CHANGE",N.ON_AGENT_CONTACT=N.pre+"ON_AGENT_CONTACT",N.ON_GET_RULE=N.pre+"ON_GET_RULE",N.ON_WITHDRAW_LIMIT=N.pre+"ON_WITHDRAW_LIMIT";class I{}_("SDKEvent",I),I.INIT_SDK="INIT_SDK",I.INIT_SDK_DONE="INIT_SDK_DONE",I.LOGIN_SUCCESS="login_success",I.LOGIN_FAIL="login_fail",I.LOGIN_OUT="login_out";class n{}_("RaffleTicketEvent",n),n.pre="RaffleTicket_EVENT_",n.ON_WINNINGLIST_OR_HISTORICAL=n.pre+"ON_WINNINGLIST_OR_HISTORICAL",n.ON_JACKPOT_AND_MYTICKET=n.pre+"ON_JACKPOT_AND_MYTICKET",n.ON_RUN_A_LOTTERY=n.pre+"ON_RUN_A_LOTTERY",n.ON_GET_AWARDLISTS=n.pre+"ON_GET_AWARDLISTS",n.ON_RECEIVE=n.pre+"ON_RECEIVE";class r{}_("LoaderEvent",r),r.pre="LOADER_EVENT_",r.ON_LOADER_STATE_CHANGE=r.pre+"ON_LOADER_STATE_CHANGE";class t{}_("MainEvent",t),t.pre="MAIN_EVENT_",t.READY_ENTER=t.pre+"READY_ENTER",t.ON_ENTER_MAIN_VIEW=t.pre+"ON_ENTER_MAIN_VIEW",t.ON_EXIT_MAIN_VIEW=t.pre+"ON_EXIT_MAIN_VIEW",t.ON_ENTER_IM=t.pre+"ON_ENTER_IM",t.ON_EXITE_IM=t.pre+"ON_EXITE_IM",t.UPDATE_GAME_LIST=t.pre+"UPDATE_GAME_LIST",t.UPDATE_DOWNLOAD_PUBLIC_RES=t.pre+"UPDATE_DOWNLOAD_PUBLIC_RES";class A{static get GET_TASK_DATA(){return`${A.pre}TASK_DATA`}static get GET_TASK_BTN_STATE(){return`${A.pre}TASK_BTN_STATE`}static get GET_TASK_STATE(){return`${A.pre}TASK_STATE`}static get GET_TASK_COIN(){return`${A.pre}TASK_COIN`}static get GET_TASK_RECORD(){return`${A.pre}TASK_RECORD`}static get HELP_OR_RECORD_BACK(){return`${A.pre}HELP_OR_RECORD_BACK`}static get GET_TASK_COIN_END(){return`${A.pre}TASK_COIN_END`}static get OPEN_TASK_VIEW(){return`${A.pre}OPEN_TASK_VIEW`}static get CLOSE_BTN_RED(){return`${A.pre}CLOSE_BTN_RED`}}_("TaskEvent",A),A.pre="TASK_EVENT_";class a{}_("ActivityEvent",a),a.pre="ACTIVITY_EVENT_",a.ON_DATA_CHANGE=a.pre+"ON_DATA_CHANGE",a.ON_LIST_MOVE=a.pre+"ON_LIST_MOVE";class S{}_("SignAwdEvent",S),S.pre="SIGN_AWD_EVNET_",S.UPDATE_SIGN_PROGRESS=S.pre+"UPDATE_SIGN_PROGRESS",S.CAN_GET_SIGN_AWD=S.pre+"CAN_GET_SIGN_AWD",S.GET_SIGN_AWD=S.pre+"GET_SIGN_AWD";class C{}_("SurveyEvent",C),C.pre="SURVEY_EVENT_",C.ON_SUBMIT_SUCESS=C.pre+"ON_SUBMIT_SUCESS",C.ON_SUBMIT_FAIL=C.pre+"ON_SUBMIT_FAIL",e._RF.pop()}}}));

System.register("chunks:///_virtual/Eventer.ts",["cc","./Singleton.ts"],(function(e){"use strict";var t,s;return{setters:[function(e){t=e.cclegacy},function(e){s=e.Singleton}],execute:function(){t._RF.push({},"fbd05OK8k5DkKXH/HlSxhI5","Eventer",void 0);class n extends(s()){constructor(){super(),this.eventListeners=null,this.eventListeners=new Map}on(e,t,s){this.eventListeners.has(e)||this.eventListeners.set(e,[]),this.eventListeners.get(e).push({listener:s,handler:t})}emit(e,t=null){if(this.eventListeners.has(e))for(let s=0;s<this.eventListeners.get(e).length;++s){let n=this.eventListeners.get(e)[s];n.handler.call(n.listener,t)}}off(e){e&&this.eventListeners.forEach(((t,s)=>{for(var n=0;n<t.length;n++)t[n].listener==e&&(t.splice(n,1),n--)}))}offName(e,t){if(this.eventListeners.has(e))if(t)for(let s=0;s<this.eventListeners.get(e).length;++s){let n=this.eventListeners.get(e)[s];t&&n.listener==t&&this.eventListeners.get(e).splice(s,1)}else this.eventListeners.delete(e)}offHandler(e,t){if(this.eventListeners.has(e))for(let s=0;s<this.eventListeners.get(e).length;++s){let n=this.eventListeners.get(e)[s];t&&n.listener==t&&this.eventListeners.get(e).splice(s,1)}}offAll(){this.eventListeners.clear()}}e("Eventer",n),t._RF.pop()}}}));

System.register("chunks:///_virtual/Events.ts",["cc"],(function(e){"use strict";var r;return{setters:[function(e){r=e.cclegacy}],execute:function(){r._RF.push({},"2ed66JONQNBnZ/7hqF7w0YX","Events",void 0);e("Events",{AdFinish:"AdFinish",ErrorMsgEvent:"ErrorMsgEvent",ErrorCodeEvent:"ErrorCodeEvent",UIOpenBefore:"UIOpenBefore",UIOpen:"UIOpen",UIClose:"UIClose",HttpError:"HttpError",SliderEvent:"slide"});r._RF.pop()}}}));

System.register("chunks:///_virtual/FunctionList.ts",["cc","./HotUpdateDefine.ts","./ResManager.ts","./NetAdaptor.ts","./UIDefined.ts","./UIManager.ts"],(function(n){"use strict";var e,t,a,I,c,i,s;return{setters:[function(n){e=n.cclegacy,t=n.Prefab},function(n){a=n.Macro},function(n){I=n.ResManager},function(n){c=n.NetAdaptor},function(n){i=n.UIID},function(n){s=n.UIManager}],execute:function(){let r;n({EFUNC:void 0,getBtn:function(n){let e=U[n];return new Promise(((n,c)=>{I.Instance().load(a.BUNDLE_RESOURCES,e,t,(()=>{}),(e=>{e.data?n(e.data):n(null)}))}))},openFunction:function(n,...e){return!function(n){for(let e of f)if(e.efunc==n)return e}(n)&&(c.getInstance().setNetTimeOut((()=>{o[n](e)})),!0)}}),e._RF.push({},"75d601oyBpBZoBZFUltIs4Y","FunctionList",void 0),function(n){n[n.UITask=0]="UITask",n[n.UITurnTable=1]="UITurnTable",n[n.UILuckyDraw=2]="UILuckyDraw",n[n.UIRaffleTicket=3]="UIRaffleTicket",n[n.UIRedpacket=4]="UIRedpacket",n[n.UIRecharge=5]="UIRecharge",n[n.UIRanking=6]="UIRanking",n[n.UIDownload=7]="UIDownload",n[n.UISatisfy=8]="UISatisfy",n[n.UIShare=9]="UIShare",n[n.UISafe=10]="UISafe",n[n.UIWithDraw=11]="UIWithDraw"}(r||(r=n("EFUNC",{})));let U={[r.UITask]:"prefabs/main_page/btns/btn_task",[r.UITurnTable]:"prefabs/main_page/btns/btn_sign",[r.UILuckyDraw]:"prefabs/main_page/btns/btn_lucky_draw_left",[r.UIRaffleTicket]:"prefabs/main_page/btns/btn_raffleticket",[r.UIRedpacket]:"prefabs/main_page/btns/btn_red_packer",[r.UIRecharge]:"prefabs/main_page/btns/btn_recharge",[r.UIRanking]:"prefabs/main_page/btns/btn_rank",[r.UIDownload]:"prefabs/main_page/btns/btn_download",[r.UISatisfy]:"prefabs/main_page/btns/btn_satisfy",[r.UIShare]:"prefabs/main_page/btns/btn_share"},f=[],o={};o[r.UITask]=function(...n){s.getInstance().open(i.UITask,n)},o[r.UITurnTable]=function(...n){s.getInstance().open(i.UITurnTable,n)},o[r.UILuckyDraw]=function(...n){s.getInstance().open(i.UILuckyDraw,n)},o[r.UIRaffleTicket]=function(...n){s.getInstance().open(i.UIRaffleTicket,n)},o[r.UIRedpacket]=function(...n){s.getInstance().open(i.UIRedpacket,n)},o[r.UIRecharge]=function(...n){s.getInstance().open(i.UIRecharge,n)},o[r.UIRanking]=function(...n){s.getInstance().open(i.UIRanking,n)},o[r.UISafe]=function(...n){s.getInstance().open(i.UISafe,n)},o[r.UIWithDraw]=function(...n){s.getInstance().open(i.UIWithDraw,n)},o[r.UISatisfy]=function(...n){s.getInstance().open(i.UISatisfy,n)},e._RF.pop()}}}));

System.register("chunks:///_virtual/GameCtrl.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./ResUtil.ts","./EnumDefine.ts","./HotUpdateDefine.ts","./ResDefine.ts","./LogUtil.ts","./CustomEventMgr.ts","./NetMgr.ts","./ResManager.ts","./MsgHandler.ts","./MainUi.ts","./CtrlBase.ts","./Global.ts","./User.ts","./StorageUtil.ts","./MainModel.ts","./GameModel.ts","./GameDownloadMgr.ts","./TaskModel.ts","./CheckConvertAPPCMD.ts","./CheckActivityCMD.ts","./CheckSignAwdCMD.ts","./CheckTaskCMD.ts","./CheckRedpackCMD.ts","./CheckBoxCMD.ts","./HeadModel.ts","./RaffleTicketModel.ts","./GameEvent.ts","./UIManager.ts","./UIDefined.ts","./LoginManager.ts","./NetAdaptor.ts","./StatisticsDefine.ts","./StatisticsManager.ts","./UIUtils.ts","./CheckEditPassCMD.ts"],(function(t){"use strict";var e,n,i,s,o,a,c,r,u,d,h,l,g,p,m,f,C,I,M,A,L,v,U,T,S,E,k,G,D,w,b,y,P,R,N,_,O,B,F,x,H,z,V,K,W,X,j,J,Y,q,Q,Z,$,tt,et;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Node,o=t.Camera,a=t.Asset,c=t._decorator,r=t.Prefab,u=t.instantiate,d=t.macro},function(t){h=t.TaskEvent,l=t.ActivityEvent,g=t.LoginEvent,p=t.EventType,m=t.CMDEvent,f=t.SDKEvent},function(t){C=t.ResUtil},function(t){I=t.StatisticsEvent,M=t.EChannel,A=t.EGuester,L=t.ECODE},function(t){v=t.Macro},function(t){U=t.ResDefine},function(t){T=t.default},function(t){S=t.CustomEventMgr},function(t){E=t.default},function(t){k=t.ResManager},function(t){G=t.default},function(t){D=t.default},function(t){w=t.CtrlBase},function(t){b=t.Global},function(t){y=t.User},function(t){P=t.default},function(t){R=t.MainModel},function(t){N=t.GameModel},function(t){_=t.GameDownloadMgr},function(t){O=t.TaskModel},function(t){B=t.CheckConvertAPPCMD},function(t){F=t.CheckActivityCMD},function(t){x=t.CheckSignAwdCMD},function(t){H=t.CheckTaskCMD},function(t){z=t.CheckRedpackCMD},function(t){V=t.CheckBoxCMD},function(t){K=t.HeadModel},function(t){W=t.RaffleTicketModel},function(t){X=t.GameEvent},function(t){j=t.UIManager},function(t){J=t.UIID},function(t){Y=t.LoginManager},function(t){q=t.NetAdaptor},function(t){Q=t.LoginStatistics},function(t){Z=t.eventTrig,$=t.StatisticsManager},function(t){tt=t.default},function(t){et=t.CheckEditPassCMD}],execute:function(){var nt,it,st,ot,at,ct,rt,ut,dt,ht,lt;i._RF.push({},"52bf1NuOrxL6YmIOvsF9OX1","GameCtrl",void 0);const{ccclass:gt,property:pt}=c;t("GameCtrl",(nt=gt("GameCtrl"),it=pt({displayName:"mainUiLayer",type:s}),st=pt({displayName:"bg",type:s}),ot=pt({displayName:"camera",type:o}),at=pt({displayName:"wssCacert",type:a}),nt((ut=e((rt=class extends w{constructor(...t){super(...t),n(this,"mainUiLayer",ut,this),this.mainUITs=null,n(this,"bg",dt,this),n(this,"camera",ht,this),n(this,"wssCacert",lt,this),this.isAutoLogin=!1,this.isLoadedClientPara=!1,this.isFirstShowNotice=!1,this.autoPopAdvertisements=[]}onLoad(){b.gameCtrl=this,b.wssCacert=this.wssCacert,_.Instance().initialize(),this.bindEvent(),Z(I.LOADED_RES_SUCCESS),$.getInstance().loginReport(Q.loadSuccess),$.getInstance().loginReport(Q.loadTimes,!0)}start(){this.schedule(this.gcUpdater,5),tt.showLoading(),q.bAdaptor?Y.getInstance().connectSoket():this.doConnectLogin((()=>{tt.hideLoading(),0==this.isFirstShowNotice&&(this.isFirstShowNotice=!0,G.Instance().c2sGetNotice()),this.enterLoginView()}))}gameBack(t=!0){tt.hideLoading(),this.hideBg(),this.mainUITs.node.active=!0,b.gameCtrl.mainUITs.gameBack(),1==t&&this.openAdvertisement(),G.Instance().c2sgetmoney()}gameBackAndSaveMusicSwitch(t){b.gameCtrl.mainUITs.gameBackAndSaveMusicSwitch(t)}enterLoginView(){let t=b.getToken();t?G.Instance().c2sCheckToken(t):G.Instance().c2sregistertype(1)}enterlobby(){$.getInstance().loginReport(Q.enterGameSuccess),$.getInstance().loginReport(Q.enterGameTimes,!0),$.getInstance().loginReport(Q.loadGameList),k.Instance().load(v.BUNDLE_RESOURCES,U.VP_MAIN_UI_PREFAB_LOCATION,r,(()=>{}),(t=>{if(!this.mainUITs){let e=u(t.data);this.mainUiLayer.addChild(e),this.mainUITs=e.getComponent(D),this.schedule(this.gameLogicUpdater,5,d.REPEAT_FOREVER,.1),this.mainUITs.node.active=!0}if(this.mainUITs.loginSuccess(),this.mainUITs.checkAllBtnOpen(),j.getInstance().closeToUI(J.UILoginFull),!y.instance.isGuest){S.on(h.GET_TASK_STATE,this.onGetTaskState,this),this.getModel(O).c2sGetTaskState(),G.Instance().c2sgetsignprogress(),G.Instance().c2sAwardInfo(),G.Instance().c2sGetOrChangeHead(),this.getModel(W).getJackPotAndMyTicket(),this.onRefresh(),this.scheduleOnce((()=>{this.openAdvertisement()}),.5)}}))}loginSuccess(t){t.succ&&C.loadClientPara((()=>{T.debug("c2sgamelist");let e=P.getSwitch();if(e){this.getModel(R).switch=e,this.getModel(N).getGameList()}t.firstLogin&&1==y.instance.pwd_swicch&&(this.getModel(R).firstLogin=!0),G.Instance().c2sSwitch()}))}doConnectLogin(t){E.Instance().disConnectLogin(),E.Instance().connectLogin((()=>{T.debug("connectLogin success"),t&&t()}))}openAdvertisement(){this.autoPopAdvertisements=[],this.autoPopAdvertisements.push(new B),this.autoPopAdvertisements.push(new F),this.autoPopAdvertisements.push(new x),this.autoPopAdvertisements.push(new H),this.autoPopAdvertisements.push(new z),this.autoPopAdvertisements.push(new V),this.autoPopAdvertisements.push(new et),this.onNextCmd(),S.off(l.ON_DATA_CHANGE,this.openAdvertisement,this)}onNextCmd(){for(;;){if(0==this.autoPopAdvertisements.length)return T.debug("广告命令执行完毕"),void(b.isPopingCmdAd=!1);if(1==b.isPopingCmdAd)return void T.debug("正在打开广告弹窗");let t=this.autoPopAdvertisements.shift();0==t.isOpened&&t.openAsync()}}onGetTaskState(){S.off(h.GET_TASK_STATE,this.onGetTaskState,this);let t=j.getInstance().getUI(J.UILoginFull);t&&j.getInstance().close(t),tt.hideLoading()}onUpdateGameList(){this.enterlobby()}bindEvent(){S.on(g.On_Guester_Login,this.onGuesterLogin,this),S.on(p.OnIsOpenRegister,this.onReadyLogin,this),S.on(m.ON_NEXT_CMD,this.onNextCmd,this),S.on(p.onAuthFailed,this.onAuthFailed,this),S.on(X.ON_UPDATE_GAMELIST,this.onUpdateGameList,this),S.on(p.OnGetNotice,this.OnGetNotice,this),S.fire(f.INIT_SDK,M.WEB)}gameLogicUpdater(){G.Instance().c2sgamebonus()}gcUpdater(){}onAuthFailed(){this.LogOut()}OnGetNotice(t){j.getInstance().open(J.UINotice,t)}onReadyLogin(){j.getInstance().open(J.UILoginFull)}onGuesterLogin(t){let e=t;e.status==A.OPEN&&e.code!=L.STOP_SERVER&&(y.instance.isGuest=!0,P.saveGuester(e.userid),y.instance.updateurl=e.updateurl,this.getModel(R).switch=e.switch_list,t.appAd_1&&this.getModel(N).initGameAD(t.appAd_1),S.fire(f.LOGIN_SUCCESS,t))}onRefresh(){G.Instance().c2sGetActivityAD()}LogOut(){T.debug("LogOut"),y.instance.token="",P.removeUserToken(),this.getModel(K).setHeadUrl(""),P.updatePassWord(""),this.mainUITs&&(this.mainUITs.LogOut(),j.getInstance().open(J.UILoginFull))}doReconnect(){b.svrTimeMS=-1,this.doConnectLogin((()=>{this.schedule(this.gameLogicUpdater,5),tt.hideLoading()}))}showBg(){this.bg.active=!0}hideBg(){this.bg.active=!1}}).prototype,"mainUiLayer",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),dt=e(rt.prototype,"bg",[st],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ht=e(rt.prototype,"camera",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lt=e(rt.prototype,"wssCacert",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ct=rt))||ct));i._RF.pop()}}}));

System.register("chunks:///_virtual/GameData.ts",["cc","./Loader.ts","./Global.ts","./EnumDefine.ts","./User.ts","./StringUtil.ts","./ConfigUtil.ts","./Delegate.ts","./LogUtil.ts","./WayConfig.ts","./AudioManager.ts"],(function(t){"use strict";var i,e,s,n,o,a,r,l,h,d,g,u,c,v,f;return{setters:[function(t){i=t.cclegacy,e=t.sys,s=t.native},function(t){n=t.Loader},function(t){o=t.Global},function(t){a=t.ELOADED_STATE,r=t.ECLIENT_GAME_RES_DIFF,l=t.ERES_TYPE},function(t){h=t.User},function(t){d=t.default},function(t){g=t.ConfigUtil},function(t){u=t.Delegate},function(t){c=t.default},function(t){v=t.WayConfig},function(t){f=t.default}],execute:function(){i._RF.push({},"1217alPWuRM/JNt7nY9hWoV","GameData",void 0);class m{constructor(){this.id=void 0,this.name=void 0,this.verInfo=void 0,this.filesize=void 0,this.type=void 0,this.isCollect=void 0,this.loadedstate=a.UNDEFINED,this.isHot=void 0,this.isNew=void 0,this.loadingstate=void 0,this.req=void 0,this.bonus=void 0,this.isDiffRes=void 0,this.delegate=void 0,this.resArr=void 0,this.downloadSize=void 0,this.gameiconUrl=void 0,this.long=void 0,this.tags=void 0,this.ways=void 0,this.gameBgUrl=void 0,this.vendor=void 0,this.delegate=new u,this.resArr=[],this.downloadSize=0}get gameUrl(){let t=h.instance,i={id:this.id,uid:t.userId,token:t.token,cdn:o.cnd,musicSwitch:f.Instance().musicEnabled,lang:o.language,domainName:d.getHostFromUrl(t.gamesocket).replace("wss://","")};this.gameBgUrl&&(i.bg_image=this.gameBgUrl);let a="";if(1==e.isNative){a=`${s.fileUtils.getWritablePath()}${n.installPath+this.id}`}else a=`${o.httpSvr}/game`;return a+`/index.html?${encodeURIComponent(d.parseURLVariablesStr(i)+"&"+this.req)}`}init(t,i){this.resArr.length=0,this.id=t.gameid,this.name=t.gamename,this.type=t.gametype,this.vendor=t.vendor,this.isCollect=!!t.collect,this.isHot=!!t.hot,this.isNew=!!t.new,this.req=t.req,this.bonus=t.bonus,this.gameiconUrl=t.imageurl,this.long=!!t.is_length||[12,12002,12e4].indexOf(o.appPlatformId)>-1,this.tags=t.tags,this.gameBgUrl=t.bg_image,i&&(this.isDiffRes=!!i.os,this.verInfo=m.getGameClientVersion(i)),this.resArr.push(this.id),c.debug("loadClientPara6，avengersGameList："+o.avengersGameList),o.avengersGameList.indexOf(this.id)>=0&&this.resArr.push(o.avengersPubResID),this.resArr.push(o.pubResID);let e=null;g.getConfig(v)&&(e=g.getConfig(v)[t.gameid]),e&&(this.ways=e.lines)}get version(){return this.verInfo?this.verInfo.version:null}static getGameClientVersion(t){if(!t)return null;let i=t.normal;return t.os==r.DIFF&&(o.supportedRes==l.ETC1?i=t.etc1:o.supportedRes==l.PVRTC&&(i=t.pvrtc)),i}}t("GameData",m),i._RF.pop()}}}));

System.register("chunks:///_virtual/GameData2.ts",["cc","./HallDefind.ts"],(function(t){"use strict";var e,a;return{setters:[function(t){e=t.cclegacy},function(t){a=t.UNKNOWN}],execute:function(){e._RF.push({},"f0aa13pExBHKo9cJSxnpJsO","GameData",void 0);class c{constructor(){this.bundle=""}clear(){}}t("GameData",c),c.bundle=a,e._RF.pop()}}}));

System.register("chunks:///_virtual/GameDownloadMgr.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./GameEvent.ts","./CtrlBase.ts","./Global.ts","./Loader.ts","./LoaderQueue.ts","./GameModel.ts","./CustomEventMgr.ts"],(function(e){"use strict";var t,a,o,s,n,d,i,l,r,u,h,c,D,w,E;return{setters:[function(e){t=e.cclegacy},function(e){a=e.ELOADER_STATE,o=e.ELOADED_STATE,s=e.EVERSION_TYPE},function(e){n=e.EventType,d=e.MainEvent,i=e.LoaderEvent,l=e.SDKEvent},function(e){r=e.GameEvent},function(e){u=e.CtrlBase},function(e){h=e.Global},function(e){c=e.Loader},function(e){D=e.LoaderQueue},function(e){w=e.GameModel},function(e){E=e.CustomEventMgr}],execute:function(){t._RF.push({},"d391cRf2FNJhblkzAsLB5dO","GameDownloadMgr",void 0);class L extends u{constructor(...e){super(...e),this.downloadQueue=[],this.model=null,this.loaderQueue=null,this.curData=null,this.curLoaderId=0}static Instance(){return this._instance||(this._instance=new L)}initialize(){this.downloadQueue=[],this.model=this.getModel(w),this.loaderQueue=new D,this.bindEvents()}addLoaderGameData(e){e.loadingstate=a.WAITING,this.downloadQueue.push(e),this.startDownload()}startDownload(){this.loaderQueue.isInProgress||this.downloadNext()}downloadNext(){let e=this.curData=this.downloadQueue.shift();e&&this.downloadGameData(e)}downloadGameData(e){let t=this.model,a=e.resArr.slice(),d=0;for(;a.length;){let e=a.pop(),i=this.model.gameDownloadDic.get(e),l=null;if(t.getGameLoadedState(e)!=o.DOWLOADED){switch(e==h.pubResID&&E.fire(n.StartDownloadPubilcRes),t.getUpdateVerTypeById(e)){case s.BIG:i.isHotUpdate=!1;break;case s.SMALL:i.isHotUpdate=!0;break;case s.BOTH:i.isHotUpdate=!1,l=new c,l.init(i),d+=i.size,l&&(l.ready(),this.loaderQueue.add(l)),i.isHotUpdate=!0}l=new c,l.init(i),d+=i.size}l&&(l.ready(),this.loaderQueue.add(l))}this.loaderQueue.excute(),this.curData.filesize=d,this.curData.downloadSize=0}onLoaderStateChange(e){let t=e,s=t.id,n=t.state;if(n==a.UNZIP_SUCC){this.model.addResInfoRecord(s);let e=this.checkGameState();e&&(n=t.state=e)}this.curData&&(this.curData.loadingstate=n,n==a.DOWNLOADING&&(this.curData.downloadSize+=t.delta||0),this.curData.delegate.boardcast(t),s==h.pubResID&&E.fire(d.UPDATE_DOWNLOAD_PUBLIC_RES,t),n==a.UNZIP_SUCC&&(this.curData.loadedstate=o.DOWLOADED,this.downloadNext()))}getLoaderId(){return this.curLoaderId++,this.curLoaderId}checkGameState(){let e,t=this.curData.resArr,o=null,n=this.model;for(let d=0,i=t.length;d<i;d++)if(e=n.getUpdateVerTypeById(t[d]),e!=s.EQ){o=a.DOWNLOADING;break}return o}onCancelDownload(e){if(this.curData&&e.id==this.curData.id)this.loaderQueue.clear(),this.curData.loadingstate=a.undefined,this.curData.downloadSize=0,this.downloadNext();else{let t=this.downloadQueue.indexOf(e);t>=0&&(e.loadingstate=a.undefined,this.downloadQueue.splice(t,1))}}onRefreshDownload(e){this.curData&&(this.loaderQueue.clear(),this.downloadGameData(this.curData))}onClearDownLoad(){this.downloadQueue=[],this.loaderQueue.clear(),this.curData&&(this.curData.loadingstate=a.undefined,this.curData.downloadSize=0)}bindEvents(){E.on(i.ON_LOADER_STATE_CHANGE,this.onLoaderStateChange,this),E.on(r.ADD_LOADER_GAME_DATA,this.addLoaderGameData,this),E.on(r.CANCEL_DOWNLOAD,this.onCancelDownload,this),E.on(r.REFRESH_DOWNLOAD,this.onRefreshDownload,this),E.on(l.LOGIN_OUT,this.onClearDownLoad,this)}dispose(){}onDownloadMsg(e){this.loaderQueue.onDownloadMsg(e)}onDecompress(e){this.loaderQueue.onDecompress(e)}}e("GameDownloadMgr",L),L._instance=null,t._RF.pop()}}}));

System.register("chunks:///_virtual/GameEvent.ts",["cc"],(function(E){"use strict";var _;return{setters:[function(E){_=E.cclegacy}],execute:function(){_._RF.push({},"8f216aCFv1OrIzonKiggq3p","GameEvent",void 0);class A{}E("GameEvent",A),A.pre="GAME_EVENT_",A.UPDATE_COLLECTION=A.pre+"UPDATE_COLLECTION",A.UPDATE_DOWNLOAD=A.pre+"UPDATE_DOWNLOAD",A.ON_UPDATE_GAMELIST=A.pre+"ON_UPDATE_GAMELIST",A.ADD_LOADER_GAME_DATA=A.pre+"ADD_LOADER_GAME_DATA",A.CANCEL_DOWNLOAD=A.pre+"CANCEL_DOWNLOAD",A.REFRESH_DOWNLOAD=A.pre+"REFRESH_DOWNLOAD",A.ON_UPDATE_SHOW_GAME=A.pre+"ON_UPDATE_SHOW_GAME",A.ON_ENTER_GAME=A.pre+"ON_ENTER_GAME",A.ON_SWITCH_CHANGE=A.pre+"ON_SWITCH_CHANGE",_._RF.pop()}}}));

System.register("chunks:///_virtual/GameIcon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./HotUpdateDefine.ts","./ResDefine.ts","./LogUtil.ts","./ResUtil.ts","./ResManager.ts","./Global.ts"],(function(e){"use strict";var t,i,a,n,s,o,l,r,c,g,m,h,p,I,u,d,S,f,y,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Sprite,s=e.Node,o=e.SpriteFrame,l=e._decorator,r=e.Component,c=e.Prefab,g=e.instantiate,m=e.native,h=e.sp,p=e.v3,I=e.sys},function(e){u=e.Macro},function(e){d=e.ResDefine},function(e){S=e.default},function(e){f=e.ResUtil},function(e){y=e.ResManager},function(e){b=e.Global}],execute:function(){var D,C,_,P,U,A,L,N,O;a._RF.push({},"29e87AWEXhHgKDAVSsQT2wY","GameIcon",void 0);const{ccclass:R,property:v}=l;e("GameIcon",(D=R("GameIcon"),C=v({displayName:"gameIcon",type:n}),_=v({displayName:"gameIconSp",type:s}),P=v({displayName:"defaultSpriteFrame",type:o}),D((L=t((A=class extends r{constructor(...e){super(...e),i(this,"gameIcon",L,this),i(this,"gameIconSp",N,this),i(this,"defaultSpriteFrame",O,this),this.gameData=null,this.isPlay=!1,this.isRemote=!1,this.isSpineIcon=!1}start(){}initIcon(e){this.gameData=e,this.gameIconSp.children.length>0||this.initImg()}initImg(){let e=this.gameData.long,t="";t=1==e?`${d.VP_GAME_LONG_ICONS_LOCATION}l_${this.gameData.id}/spriteFrame`:`${d.VP_GAME_ICONS_LOCATION}s_${this.gameData.id}/spriteFrame`;let i=()=>{if(this.gameIcon&&0!=this.isPlay)if(this.gameIcon.node.active=!0,""!=this.gameData.gameiconUrl&&null!=this.gameData.gameiconUrl)if(t=this.gameData.gameiconUrl,S.debug("imgPath:"+t),1==I.isNative){let e=(e,t)=>{S.debug("imageAsset"),y.Instance().loadRemoteImg(e,!0,(e=>{S.debug("this.gameicon,"+this.gameIcon),this.gameIcon&&0!=this.isPlay&&(this.gameIcon.spriteFrame=e)}))},i=m.fileUtils.getWritablePath()+"gameIcons",a=t.split("/"),n=i+"/"+a[a.length-1];S.debug("getLocalImg,fileWholePath:"+n),1==m.fileUtils.isFileExist(n)?e(n):(S.debug("saveImgToLocal start"),this.saveImgToLocal(t,(t=>{S.debug("saveImgToLocal end,isSuc:"+t),e(n)})))}else this.isRemote=!0,y.Instance().loadRemoteImg(t,!0,(e=>{S.debug("this.gameicon,"+this.gameIcon),this.gameIcon&&0!=this.isPlay&&e&&e.isValid&&(this.gameIcon.spriteFrame=e)}));else this.isRemote=!1,y.Instance().load(u.BUNDLE_RESOURCES,t,o,(()=>{}),(e=>{let t=e.data;this.gameIcon&&0!=this.isPlay&&t&&t.isValid&&(this.gameIcon.spriteFrame=t)}))},a="",n=!1,s=b.gameCtrl.mainUITs.longSpineIdArr,l=b.gameCtrl.mainUITs.smallSpineIdArr;1==e?(a=d.VP_GAME_SPINE_ICONS_L_LOCATION+this.gameData.id.toString()+"/"+this.gameData.id.toString(),n=-1!=s.indexOf(this.gameData.id)):(a=d.VP_GAME_SPINE_ICONS_S_LOCATION+this.gameData.id.toString()+"/"+this.gameData.id.toString(),n=-1!=l.indexOf(this.gameData.id)),1==n?y.Instance().load(u.BUNDLE_RESOURCES,a,c,(()=>{}),(e=>{if(e.data){this.isSpineIcon=!0;let t=e.data;g(t).parent=this.gameIconSp}})):(this.isSpineIcon=!1,i())}saveImgToLocal(e,t){let i=m.fileUtils.getWritablePath()+"gameIcons";f.autoCreateFilePathDir(i),S.debug("saveImgToLocal,url:"+e),S.debug("saveImgToLocal,wholePath:"+i);let a=e.split("/"),n=a[a.length-1],s=i+"/"+n;var o=function(e){e?(m.fileUtils.isDirectoryExist(i)||m.fileUtils.createDirectory(i),m.fileUtils.writeDataToFile(new Uint8Array(e),s)?t&&t(!0):t&&t(!1)):t&&t(!1)},l=new XMLHttpRequest;l.onreadystatechange=function(){4===l.readyState&&(200===l.status?o(l.response):o(null))}.bind(this),l.responseType="arraybuffer",l.open("GET",e,!0),l.send()}playAppearAni(){if(this.isPlay=!0,1==this.isSpineIcon){this.gameIconSp.active=!0,(this.gameIconSp.children[0].getComponent(h.Skeleton)?this.gameIconSp.children[0].getComponent(h.Skeleton):this.gameIconSp.children[0].getComponentsInChildren(h.Skeleton)[0]).paused=!1}}disableInfo(){if(this.isPlay=!1,this.gameIcon.spriteFrame=null,this.gameIconSp.children.length,1==this.isSpineIcon){this.gameIconSp.active=!1;let e=this.getSpineComp();e&&(e.paused=!0)}this.node.setPosition(p(0,-1e4,0)),this.scheduleOnce((()=>{}))}getSpineComp(){let e=null;return this.gameIconSp.children.length>0&&(e=this.gameIconSp.children[0].getComponent(h.Skeleton)?this.gameIconSp.children[0].getComponent(h.Skeleton):this.gameIconSp.children[0].getComponentsInChildren(h.Skeleton)[0]),e}pauseAni(){let e=this.getSpineComp();e&&(e.paused=!0)}resumeAni(){let e=this.getSpineComp();e&&(e.paused=!1)}}).prototype,"gameIcon",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(A.prototype,"gameIconSp",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(A.prototype,"defaultSpriteFrame",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=A))||U));a._RF.pop()}}}));

System.register("chunks:///_virtual/GameIconBg.ts",["cc"],(function(t){"use strict";var s,e,a,c;return{setters:[function(t){s=t.cclegacy,e=t.Component,a=t.v3,c=t._decorator}],execute:function(){var n;s._RF.push({},"d4a90GpJaNDWr3cw92g+sr2","GameIconBg",void 0);const{ccclass:i,property:o}=c;t("GameIconBg",i("GameIconBg")(n=class extends e{constructor(...t){super(...t),this.gameData=null,this.isPlay=!1}start(){}initIcon(t){this.gameData=t}playAppearAni(){this.isPlay=!0}disableInfo(){this.isPlay=!1,this.node.setPosition(a(0,-1e4,0))}})||n);s._RF.pop()}}}));

System.register("chunks:///_virtual/GameIconBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./ResUtil.ts","./EnumDefine.ts","./GameEvent.ts","./SdkManager.ts","./GameUtil.ts","./LogUtil.ts","./StringUtil.ts","./CtrlBase.ts","./Global.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./GameModel.ts","./CommonHttp.ts","./MsgHandler.ts","./User.ts","./AudioManager.ts","./TimeUtil.ts","./Language.ts","./StatisticsManager.ts","./UIUtils.ts"],(function(t){"use strict";var e,i,a,n,s,o,l,r,c,d,h,u,g,m,p,f,b,D,v,y,N,w,I,B,S,C,L,_,A,E,k,G,T,U,M,O;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,n=t.Node,s=t.Label,o=t.ProgressBar,l=t._decorator,r=t.sys,c=t.Animation,d=t.native},function(t){h=t.SoundDefine},function(t){u=t.ResUtil},function(t){g=t.ELOADER_STATE,m=t.EGAME_TYPE,p=t.ELOADED_STATE,f=t.EOPTION,b=t.StatisticsStatus,D=t.StatisticsEvent},function(t){v=t.GameEvent},function(t){y=t.default},function(t){N=t.GameUtils},function(t){w=t.default},function(t){I=t.default},function(t){B=t.CtrlBase},function(t){S=t.Global},function(t){C=t.default},function(t){L=t.CustomEventMgr},function(t){_=t.GameModel},function(t){A=t.CommonHttp},function(t){E=t.default},function(t){k=t.User},function(t){G=t.default},function(t){T=t.default},function(t){U=t.default},function(t){M=t.eventTrig},function(t){O=t.default}],execute:function(){var z,P,F,W,R,H,x,Z,$,j,q,K,V,X,Y,J,Q,tt,et,it,at,nt,st,ot,lt,rt,ct,dt,ht,ut,gt,mt,pt;a._RF.push({},"2601fptliRHDZfKgvoic7RW","GameIconBtn",void 0);const{ccclass:ft,property:bt}=l;t("GameIconBtn",(z=ft("GameIconBtn"),P=bt({displayName:"hot mark",type:n}),F=bt({displayName:"new mark",type:n}),W=bt({displayName:"collect mark",type:n}),R=bt({displayName:"cancel btn",type:n}),H=bt({displayName:"downloadBtn",type:n}),x=bt({displayName:"updateBtn",type:n}),Z=bt({displayName:"group download",type:n}),$=bt({displayName:"progress label",type:s}),j=bt({displayName:"progressBg",type:o}),q=bt({displayName:"favorate button",type:n}),K=bt({displayName:"boundsNode",type:n}),V=bt({displayName:"boundsLabel",type:s}),X=bt({displayName:"lineNode",type:n}),Y=bt({displayName:"lineLabel",type:s}),J=bt({displayName:"spineAni",type:s}),z((et=e((tt=class extends B{constructor(...t){super(...t),i(this,"hotMark",et,this),i(this,"newMark",it,this),i(this,"collectMark",at,this),i(this,"cancelBtn",nt,this),i(this,"downloadBtn",st,this),i(this,"updateBtn",ot,this),i(this,"groupDownload",lt,this),i(this,"progressLabel",rt,this),i(this,"progressBg",ct,this),i(this,"favorateBtn",dt,this),i(this,"boundsNode",ht,this),i(this,"boundsLabel",ut,this),i(this,"lineNode",gt,this),i(this,"lineLabel",mt,this),i(this,"spineAni",pt,this),this.gameData=null,this.downloadSize=0,this._lastChangeTime=0,this._loadingIdx=0,this.id=-1,this._loadingState=g.WAITING,this.isPlay=!1,this._lastEnterTime=0,this._enterDelay=1e3}start(){this.bindEvent()}bindEvent(){this.node.getChildByName("btn").on(n.EventType.TOUCH_END,this.onClickGame,this),this.downloadBtn.on(n.EventType.TOUCH_END,this.onClickDownloadBtn,this),this.cancelBtn.on(n.EventType.TOUCH_END,this.onClickLoad,this),this.favorateBtn.on(n.EventType.TOUCH_END,this.onClickFavBtn,this)}initBtn(t){this._loadingState=g.WAITING,this.gameData=t,this.downloadSize=t.downloadSize,this.setProgress(0),this.gameData.delegate.clear(),this.gameData.delegate.register(this.onLoadingStateChange,this),this.hotMark.active=t.isHot,this.newMark.active=t.isNew,this.collectMark.active=t.isCollect,this.setLoadedState(),this.setBonus(),1==r.isNative&&(this.loadingState=this.gameData.loadingstate),this.setLine()}playAppearAni(){}disableInfo(){this.setProgress(0),this.groupDownload.getChildByName("btn_load_cancel").active=!0,this.groupDownload.getChildByName("Label").active=!0,this.progressBg.node.active=!0,this.gameData.delegate.clear()}pauseAni(){1==this.hotMark.active&&this.hotMark.getChildByName("hot").getChildByName("hot_000").getComponent(c).pause(),1==this.newMark.active&&this.newMark.getChildByName("new").getChildByName("new_000").getComponent(c).pause()}resumeAni(){1==this.hotMark.active&&this.hotMark.getChildByName("hot").getChildByName("hot_000").getComponent(c).resume(),1==this.newMark.active&&this.newMark.getChildByName("new").getChildByName("new_000").getComponent(c).resume()}setBonus(){let t=N.max(0,this.gameData.bonus);this.boundsNode.active=this.gameData.type==m.SLOTS,this.boundsLabel.string=I.formatMoney(t)}setLine(){let t=this.gameData.ways;this.lineNode.active=!!t,this.lineLabel.string=""+(t||0)}getUint8ArrraybyData(t){const e=UPNG.decode(t);var i=UPNG.toRGBA8(e)[0];return new Uint8Array(i)}onClickDownloadBtn(){G.Instance().playEffect(h.sound_click),this.onClickGame()}onClickGame(){if(1==r.isNative&&(this._loadingState==g.WAITING||this._loadingState==g.DOWNLOADING||this._loadingState==g.UNZIPING))return;if(G.Instance().playEffect(h.sound_click_game),S.showGuestRegister())return;let t=this.gameId;if(1==r.isNative?E.Instance().c2sEnterGameCount(this.gameId):A.enterGameCount(this.gameId),7==this.gameData.type)return void E.Instance().c2sgetThirdGameUrl(this.gameData.vendor);let e=this.loadedstate;1==r.isNative?e==p.DOWLOADED?this.checkGameState(t)&&this.enterGame():this.loadingState!=g.WAITING&&(this.loadingState=g.WAITING,L.fire(v.ADD_LOADER_GAME_DATA,this.gameData)):(S.clickGameId=this.gameData.id,S.gameCtrl.mainUITs.node.active=!1,G.Instance().stopMusic(),this.showIframe(this.gameData.gameUrl),S.gameCtrl.showBg(),O.showLoading())}saveImgToLocal(t,e){let i=d.fileUtils.getWritablePath()+"gameIcons";u.autoCreateFilePathDir(i);new d.Downloader;w.debug("saveImgToLocal,url:"+t),w.debug("saveImgToLocal,wholePath:"+i);let a=t.split("/"),n=a[a.length-1],s=i+"/"+n;w.debug("saveImgToLocal,fileWholePath:"+s);var o=function(t){t?(d.fileUtils.isDirectoryExist(i)||d.fileUtils.createDirectory(i),d.fileUtils.writeDataToFile(new Uint8Array(t),s)?e&&e(!0):e&&e(!1)):e&&e(!1)},l=new XMLHttpRequest;l.onreadystatechange=function(){4===l.readyState&&(200===l.status?o(l.response):o(null))}.bind(this),l.responseType="arraybuffer",l.open("GET",t,!0),l.send()}onClickFavBtn(){G.Instance().playEffect(h.sound_click);let t=!this.gameData.isCollect;this.favorateBtn.getChildByName("collect").active=t;let e=t?f.ADD:f.DEL;E.Instance().c2scollectgame(this.gameId,e,this.gameData.tags[0]),e==f.ADD&&E.Instance().c2sActionReporting("collect"),this.getModel(_).dealCollection(this.gameId,e)}showIframe(t){console.log("showIframe,gameUrl:"+t),C.showWebIframe(t)}enterGame(){let t=T.getCurMilliTime();if(t-this._lastEnterTime<this._enterDelay)return;this._lastEnterTime=t;let e=this.gameData.gameUrl;S.gameCtrl.mainUITs.cancelAudioEnableSchedule(),S.gameCtrl.mainUITs.setAudioEnable(!1),w.debug("entergame:"+e),S.clickGameId=this.gameData.id,y.openWebView(e)}setLoadedState(){let t=this.loadedstate;this.groupDownload.active=!1,this.isSetIconFilters(!1);let e=t!=p.DOWLOADED&&r.isNative&&7!=this.gameData.type;this.downloadBtn.active=!!r.isNative&&e,this.updateBtn.active=!!r.isNative&&e,e&&(0==t?(this.downloadBtn.active=!0,this.updateBtn.active=!1):2==t&&(this.downloadBtn.active=!1,this.updateBtn.active=!0))}checkGameState(t){let e=k.instance.isInStopState(t);return!k.instance.isInRestrictState(t)&&!e}get loadedstate(){return this.gameData.loadedstate}get loadingState(){return this._loadingState}set loadingState(t){switch(w.debug("loadingState,gameid:"+this.gameId+",state:"+t),this._loadingState=t,t){case g.undefined:this.downloadBtn.active=!0,this.updateBtn.active=!0,this.groupDownload.active=!1,this.isSetIconFilters(!1),this.setProgress(0);break;case g.WAITING:M(D.DOWNLOAD_GAME,{id:this.gameId}),this.downloadBtn.active=!1,this.updateBtn.active=!1,this.groupDownload.active=!0,this.isSetIconFilters(!0),this.cancelBtn.active=!0,this.setNormalLab(107043);break;case g.DOWNLOADING:this.downloadBtn.active=!1,this.updateBtn.active=!1,this.cancelBtn.active=!0,this.groupDownload.active=!0,this.isSetIconFilters(!0),this.setNormalLab(107017);break;case g.FINISH:w.debug("download end"),this.downloadBtn.active=!1,this.updateBtn.active=!1,this.groupDownload.active=!0,this.isSetIconFilters(!0),this.cancelBtn.active=!1,this.setNormalLab(107044);break;case g.UNZIPING:this.downloadBtn.active=!1,this.updateBtn.active=!1,this.groupDownload.active=!0,this.isSetIconFilters(!0),this.cancelBtn.active=!0,this._loadingIdx=0,this._lastChangeTime=S.svrTimeMS,this.setNormalLab(107016);break;case g.UNZIP_SUCC:M(D.FINISH_DOWNLOAD_GAME,{id:this.gameId,status:b.SUCCESS}),this.groupDownload.active=!1,this.isSetIconFilters(!1),this.downloadBtn.active=!1,this.updateBtn.active=!1,w.debug("loadingState test,status,UNZIP_SUCC");break;case g.UNZIP_FAIL:this.downloadBtn.active=!1,this.updateBtn.active=!1,this.groupDownload.active=!0,this.isSetIconFilters(!0),this.setNormalLab(107038),this.cancelBtn.active=!0,w.debug("loadingState test,status,UNZIP_FAIL")}}onLoadingStateChange(t){w.debug("onLoadingStateChange",t);let e=t.state;this.loadingState!=e&&(this.loadingState=e),w.debug(`${t.id} ================ ${this.gameData.id}`),e==g.DOWNLOADING&&this.progress(t.delta)}setNormalLab(t){this.progressLabel.string=U.getInstance().language.getString(t,S.language)}isSetIconFilters(t){}progress(t){if(null==t)return;let e=(this.downloadSize+=t)/this.gameData.filesize;e=e>1?1:e,w.debug("progress, downloadSize:"+this.downloadSize+",filesize:"+this.gameData.filesize+",val:"+t+",percent:"+e),this.setProgress(e)}onClickLoad(t){G.Instance().playEffect(h.sound_click);let e=t.getCurrentTarget();this.loadingState=g.undefined,this.downloadSize=0,e==this.cancelBtn&&(this.setProgress(0),this.loadingState=g.undefined,L.fire(v.CANCEL_DOWNLOAD,this.gameData),M(D.CANCEL_DOWNLOAD_GAME,{id:this.gameId}))}setProgress(t){t>0&&(this.groupDownload.active=!0),this.progressLabel.string=(100*t).toFixed(0)+"%",this.progressBg.progress=t}get gameId(){return this.gameData.id}}).prototype,"hotMark",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(tt.prototype,"newMark",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),at=e(tt.prototype,"collectMark",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=e(tt.prototype,"cancelBtn",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e(tt.prototype,"downloadBtn",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=e(tt.prototype,"updateBtn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lt=e(tt.prototype,"groupDownload",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),rt=e(tt.prototype,"progressLabel",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ct=e(tt.prototype,"progressBg",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),dt=e(tt.prototype,"favorateBtn",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ht=e(tt.prototype,"boundsNode",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ut=e(tt.prototype,"boundsLabel",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),gt=e(tt.prototype,"lineNode",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),mt=e(tt.prototype,"lineLabel",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pt=e(tt.prototype,"spineAni",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=tt))||Q));a._RF.pop()}}}));

System.register("chunks:///_virtual/GameManager.ts",["cc","./StatisticsManager.ts","./Singleton.ts","./UIDefined.ts","./UIManager.ts","./LoginManager.ts","./ComponentMgr.ts","./Language.ts"],(function(n){"use strict";var t,e,a,i,s,c,g,o,r;return{setters:[function(n){t=n.cclegacy,e=n.game},function(n){a=n.StatisticsManager},function(n){i=n.Singleton},function(n){s=n.UIID},function(n){c=n.UIManager},function(n){g=n.LoginManager},function(n){o=n.default},function(n){r=n.default}],execute:function(){t._RF.push({},"3e5c9k+9FJOwaNooA72MOEQ","GameManager",void 0);class u extends(i()){init(){e.frameRate=30,r.getInstance().init(),o.getInstance().init(),g.getInstance().init(),a.getInstance().init(),c.getInstance().open(s.UILogin),c.getInstance().open(s.UIAniLayer)}}n("GameManager",u),t._RF.pop()}}}));

System.register("chunks:///_virtual/GameModel.ts",["cc","./Controller.ts","./CustomEventMgr.ts","./GameEvent.ts","./Global.ts","./GameData.ts","./EnumDefine.ts","./LogUtil.ts","./LoaderData.ts","./Dictionary.ts","./MsgHandler.ts","./StorageUtil.ts","./EventDefine.ts"],(function(e){"use strict";var t,i,a,o,s,r,n,l,c,D,d,m,f,h,g,u;return{setters:[function(e){t=e.cclegacy,i=e._decorator},function(e){a=e.Controller},function(e){o=e.CustomEventMgr},function(e){s=e.GameEvent},function(e){r=e.Global},function(e){n=e.GameData},function(e){l=e.ELOADED_STATE,c=e.EVERSION_TYPE,D=e.EOPTION},function(e){d=e.default},function(e){m=e.LoaderData},function(e){f=e.Dictionary},function(e){h=e.default},function(e){g=e.default},function(e){u=e.EventType}],execute:function(){var G,I;t._RF.push({},"97026BKGfFOEKI03bOd0yQJ","GameModel",void 0);const{ccclass:p,property:v}=i;e("GameModel",p("GameModel")(((I=class e extends a{constructor(){super(),this.localVerInfoDic=void 0,this.svrVerInfoDic=void 0,this.gameDownloadDic=void 0,this.gameDataArr=void 0,this.gameTypeDic=void 0,this.gameADArr=null,this.DEF_VERSION="0.0.0",this.gameDownloadDic=f.create(),this.localVerInfoDic=f.create(),this.svrVerInfoDic=f.create(),this.gameDataArr=[],this.gameTypeDic=f.create(),this.initLocalGameVer()}getGameList(){this.gameTypeDic.clear(),h.Instance().c2sgamelist()}getGuesterGameList(){this.gameTypeDic.clear(),h.Instance().c2sGetGuesterGame()}initGameInfo(t){t.tags=[e.KIND_COLLECT].concat(t.tags),r.kindList=t.tags,this.initGameList(t.list)}initGameList(t){this.gameTypeDic.clear();let i=r.clientGameConfig,a=this.gameDataArr;a.length=0;let l=[];for(let e of t){let t=e.gameid;if(!i)continue;let o=i[t],s=new n;s.init(e,o),s.loadedstate=this.compareGameVersion(s.id,s.version),a.push(s),this.addGameType(s),this.svrVerInfoDic.set(s.id,{id:s.id,version:s.version}),this.addGameDownloadInfo(s.id,s.verInfo,s.isDiffRes),1!=e.gametype&&l.push(e.gameid)}e.jackPotValue=l.join("_"),this.addGameDownloadInfoById(r.pubResID),this.addGameDownloadInfoById(r.avengersPubResID),o.fire(s.ON_UPDATE_GAMELIST)}updateGameListVersion(){let e=this.gameDataArr;if(!e)return;let t=r.clientGameConfig;for(let i of e){i.loadedstate=this.compareGameVersion(i.id,i.verInfo.version);let e=t[i.id];e&&(i.isDiffRes=!!e.os,i.verInfo=n.getGameClientVersion(e))}}addGameDownloadInfoById(e){let t=r.clientGameConfig;if(!t)return;let i=t[e],a=n.getGameClientVersion(i);this.addGameDownloadInfo(e,a,!!i.os),this.svrVerInfoDic.set(e,{id:e,version:a.version})}addGameType(t){t.isCollect&&this.addGameToDic(t,e.KIND_COLLECT);let i=t.tags;for(let e=0,a=i.length;e<a;e++)this.addGameToDic(t,i[e])}addGameToDic(e,t){let i=this.gameTypeDic,a=i.get(t);a||(a=[],i.set(t,a)),a.push(e)}compareGameVersion(e,t){let i=this.compareVersion(e,t);if(i==l.DOWLOADED){let t=this.pubResLoadedState;if(t!=l.DOWLOADED)return t;if(r.avengersGameList.indexOf(e)>=0&&(t=this.avenResLoadedState,t!=l.DOWLOADED))return t}return i}compareVersion(e,t){let i=this.localVerInfoDic.get(e);return i?i.version!=t?l.UPDATE:l.DOWLOADED:l.NOT_DOWLOAD}getUpdateVerType(e,t){if(!t)return c.EQ;e||(e=this.DEF_VERSION);let i=e.split(".").map(Number),a=t.split(".").map(Number),o=a.pop(),s=o>i.pop()?c.SMALL:c.EQ,r=a.pop()>i.pop()?c.BIG:c.EQ;return r==c.BIG&&0!=o&&(s=c.SMALL),s|r}getUpdateVerTypeById(e){let t=this.localVerInfoDic.get(e),i=t?t.version:this.DEF_VERSION,a=this.getGameVerInfoByID(e).version;return this.getUpdateVerType(i,a)}getGameLoadedState(e){let t=this.getGameVerInfoByID(e);return this.compareVersion(e,t.version)}initLocalGameVer(){let e=this.localVerInfoDic,t=g.getGameInfo();if(t){let i=JSON.parse(t);for(let t of i)e.set(t.id,t)}}addResInfoRecord(e){let t=this.svrVerInfoDic.get(e).version,i=this.localVerInfoDic.get(e),a=i?i.version:this.DEF_VERSION,o=t.split(".").map(Number),s=a.split(".").map(Number);o[1]>s[1]?(s[1]=o[1],s[2]=0):o[2]>s[2]&&(s[2]=o[2]),a=s.join("."),d.error("add local version:"+a),this.storelocalVer(e,a),this.updateGameLoadedState()}getLocalVerInfoDic(){return this.localVerInfoDic}storelocalVer(e,t){this.localVerInfoDic.set(e,{id:e,version:t});let i=this.localVerInfoDic.values;g.saveGameInfo(JSON.stringify(i))}updateGameLoadedState(){let e=this.gameDataArr;for(let t=0,i=e.length;t<i;t++){let i=e[t];i.loadedstate=this.compareGameVersion(i.id,i.version)}o.fire(s.ON_UPDATE_SHOW_GAME)}addGameDownloadInfo(e,t,i=!1){let a=new m;a.id=e,a.verInfo=t,a.isDiffRes=i,this.gameDownloadDic.set(e,a)}get pubResLoadedState(){let e=r.pubResID,t=this.getGameVerInfoByID(e);return this.compareVersion(e,t.version)}get avenResLoadedState(){let e=r.avengersPubResID,t=this.getGameVerInfoByID(e);return this.compareVersion(e,t.version)}dealCollection(t,i){let a=this.findGameDataByID(t),r=this.gameTypeDic.get(e.KIND_COLLECT);if(r||(r=[],this.gameTypeDic.set(e.KIND_COLLECT,r)),i!=D.ADD||a.isCollect){if(i==D.DEL){a.isCollect=!1;let e=r.indexOf(a);e>=0&&r.splice(e,1)}}else a.isCollect=!0,r.push(a),r.sort(((e,t)=>e.long?-1:1));o.fire(s.UPDATE_COLLECTION,t)}findGameDataByID(e){let t=this.gameDataArr,i=t.length;for(;i--;){let a=t[i];if(a.id==e)return a}return null}getGameVerInfoByID(e){let t=r.clientGameConfig[e];return n.getGameClientVersion(t)}initGameAD(e){if(!e)return;let t=g.getGameADIcon();t&&JSON.parse(t);this.gameADArr=e,g.saveGameADIcon(this.gameADArr),o.fire(u.UPDATE_GAME_AD,this.gameADArr)}updateGameBonus(e){let t=this.gameDataArr;if(t){for(let i=0,a=t.length;i<a;i++){let a=t[i],o=e[a.id];o&&(a.bonus=o)}o.fire(u.OnGetGameBonus)}}}).KIND_COLLECT="collect",I.jackPotValue=void 0,G=I))||G);t._RF.pop()}}}));

System.register("chunks:///_virtual/GameNameConfig.ts",["cc"],(function(e){"use strict";var c,t;return{setters:[function(e){c=e.cclegacy,t=e._decorator}],execute:function(){var i;c._RF.push({},"81ae3mOegxJH6nAU5LcTsIq","GameNameConfig",void 0);const{ccclass:s}=t;e("GameNameConfig",s("GameNameConfig")(i=class{constructor(){this.id=void 0,this.config=void 0}attrs(){return["id","config"]}})||i);c._RF.pop()}}}));

System.register("chunks:///_virtual/GameTestCode.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SdkManager.ts","./StorageUtil.ts","./EntryManager.ts","./Singleton.ts","./UIManager.ts","./Global.ts","./User.ts"],(function(t){"use strict";var e,n,i,r,a,s,o,l,c,u,g,d,h,b,m,p,f,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.Prefab,a=t.Button,s=t.EditBox,o=t._decorator,l=t.Component,c=t.instantiate,u=t.director,g=t.NodeEventType},function(t){d=t.default},function(t){h=t.default},function(t){b=t.EntryManager},function(t){m=t.Singleton},function(t){p=t.UIManager},function(t){f=t.Global},function(t){y=t.User}],execute:function(){var k,U,I,E,B,w,x,z,S,T,C,G,L,D,M,v,N,P,_,H,O;i._RF.push({},"11311/ZBuNDV7TGftqzn9CX","GameTestCode",void 0);const{ccclass:R,property:F}=o;t("GameTestCode",(k=R("GameTestCode"),U=F(r),I=F(a),E=F(a),B=F(s),w=F(s),x=F(s),z=F(s),S=F(s),T=F(s),k((L=e((G=class extends l{constructor(...t){super(...t),n(this,"uiLayer",L,this),n(this,"btn",D,this),n(this,"pathbtn",M,this),n(this,"backEndUrl",v,this),n(this,"gameSocketUrl",N,this),n(this,"gameId",P,this),n(this,"accountEditBox",_,this),n(this,"passEditBox",H,this),n(this,"token",O,this)}onLoad(){this.addUILayer()}addUILayer(){if(!p.getInstance().uiLayer){let t=c(this.uiLayer);u.addPersistRootNode(t)}}start(){j.getInstance().isGameTest=!0,this.backEndUrl.string=j.getInstance().backEndUrl,this.gameSocketUrl.string=j.getInstance().gameSocketUrl,this.gameId.string=j.getInstance().gameId+"",this.token.string=j.getInstance().token;let t=h.getAccount();t&&t&&(this.accountEditBox.string=t.account||"",this.passEditBox.string=t.password||""),this.btn.node.on(g.TOUCH_END,this.onBtn,this),this.pathbtn.node.on(g.TOUCH_END,this.onPathBtn,this)}onBtn(t){j.getInstance().backEndUrl=this.backEndUrl.string,j.getInstance().gameSocketUrl=this.gameSocketUrl.string,y.instance.token=this.token.string,f.clickGameId=Number(this.gameId.string),b.getInstance().enterBundle("gamesCommon")}goToLogin(){d.login(f.osid,"",this.accountEditBox.string,this.passEditBox.string),b.getInstance().enterBundle("gamesCommon")}onPathBtn(t){}}).prototype,"uiLayer",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(G.prototype,"btn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(G.prototype,"pathbtn",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(G.prototype,"backEndUrl",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(G.prototype,"gameSocketUrl",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(G.prototype,"gameId",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(G.prototype,"accountEditBox",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(G.prototype,"passEditBox",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(G.prototype,"token",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=G))||C));class j extends(m()){constructor(...t){super(...t),this.isGameTest=!1,this.gameSocketUrl="ws://game1.gameyibang.cn/websocket1",this.backEndUrl="http://game1.gameyibang.cn",this.signKey="CdO23vdMos23f9l3d2*z2",this.userId=7960,this.gameId=3113,this.token=""}}t("GameTestData",j),i._RF.pop()}}}));

System.register("chunks:///_virtual/GameTestCode2.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EntryManager.ts","./UIButton.ts","./Global.ts"],(function(t){"use strict";var e,n,o,s,r,c,i,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t._decorator,r=t.Component},function(t){c=t.EntryManager},function(t){i=t.UIButton},function(t){a=t.Global}],execute:function(){var u,l,p,d,f;o._RF.push({},"0b4baLeNfJKqpudwIcHGBnF","GameTestCode2",void 0);const{ccclass:m,property:B}=s;t("GameTestCode2",(u=m("GameTestCode2"),l=B(i),u((f=e((d=class extends r{constructor(...t){super(...t),n(this,"testBtn",f,this)}start(){this.testBtn.touchEndedFun=this.onBtn.bind(this)}onBtn(t){a.clickGameId=1001,c.getInstance().enterBundle("gamesCommon")}}).prototype,"testBtn",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=d))||p));o._RF.pop()}}}));

System.register("chunks:///_virtual/GameUtil.ts",["cc","./Global.ts","./StringUtil.ts"],(function(t){"use strict";var e,r,a,i;return{setters:[function(t){e=t.cclegacy,r=t.Vec2},function(t){a=t.Global},function(t){i=t.default}],execute:function(){t("fixedDigital",o),e._RF.push({},"d8655KPrxVILLocuckXf0nb","GameUtil",void 0);class n{static exact(t){if(t=Number(t),isNaN(t))return 0;let e=0,r=Math.abs(t);if(r<1e5)e=10;else if(r<1e10)e=5;else{if(!(r<1e15))return t;e=0}return Number(t.toFixed(e))}static randomFloat(t,e){isNaN(t)&&(t=0),isNaN(e)&&(e=0);let r=Math.max(t,e),a=Math.min(t,e);return a+Math.random()*(r-a)}static randomInt(t,e){let r=this.randomFloat(t,e);return Math.floor(r)}static roundFloat(t,e=0){isNaN(e)&&(e=0),e=Math.floor(e);let r=t.toFixed(e);return parseFloat(r)}static floor(t){return Math.floor(t)}static ceil(t){return Math.ceil(t)}static max(...t){return Math.max(...t)}static radius2Angle(t){return t/Math.PI*180}static angle2Radius(t){return t*Math.PI/180}static atan(t,e){let r=Math.atan2(e,t);return this.radius2Angle(r)}static pointInCircle(t=1){let e=this.randomFloat(360)*Math.PI/180,a=this.randomFloat(1)*t,i=Math.cos(e)*a,n=Math.sin(e)*a;return new r(i,n)}static compareNumber(t,e){return t>0?e>0:t<0?e<0:0==e}static clamp(t,e=0,r=1){return Math.max(e,Math.min(r,t))}static pingpong(t,e=1){let r=t%(2*e);return r=r>e?2*e-r:r,r}static formatDownloadSpeed(t){if(t<=0)return"0B/s";let e=0,r=[1,1024,1024,1024];for(let a=0;a<r.length;a++){let i=r[a];if(!(t>i))break;e=a,t/=i}return 0==e||1==e?t=Math.floor(t):2!=e&&3!=e||(t=Math.floor(100*t)/100),`${t}${["B/s","KB/s","MB/s","GB/s"][e]}`}static formatDate(t,e=!0){if(!t)return"";let r=this.formatNumToLen(t.getFullYear(),4),a=this.formatNumToLen(t.getMonth()+1,2),i=this.formatNumToLen(t.getDate(),2),n=this.formatNumToLen(t.getHours(),2),o=this.formatNumToLen(t.getMinutes(),2),s=this.formatNumToLen(t.getSeconds(),2);return e?`${r}-${a}-${i} ${n}:${o}:${s}`:`${r}/${a}/${i}`}static formatDateByTime(t){let e=new Date(t);return n.formatDate(e,!1)}static getDistanceTime(t,e){let r=0,a=0,i=0,n=0,o="",s=e>t?e-t>>0:0;return r=s>86400?s/86400>>0:0,s-=86400*r,a=s>3600?s/3600>>0:0,s-=3600*a,i=s>60?s/60>>0:0,n=s-=60*i,o+=r>0?r+"D  ":"",o+=r<=0&&a<=0?"":a<10?"0"+a+":":a+":",o+=r<=0&&a<=0&&i<=0?"":i<10?"0"+i+":":i+":",o+=r<=0&&a<=0&&i<=0&&n<=0?"":n<10?"0"+n:n,o}static formatNumToLen(t,e){return t.toString().length>e?t.toString():(new Array(e).join("0")+t).substr(-e)}static getBackOut(t,e=1.7){return--t*t*((e+1)*t+e)+1}static getBackOut1(t,e=.7){if(t<e)return t/e*(t/e);return 2/e/(e-1)*t*t+-2*(e+1)/e/(e-1)*t+(e+1)/(e-1)}static getBounceOut(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}static getParaCurveOut(t){return t*t}static changeNumber(t){if(!t)return;let e=t.length,r="";for(let a=0;a<e;a++){let e=t[a];isNaN(Number(e))&&"."!=e||(r+=e)}return parseFloat(r)}static replaceUid(t,e=4,r=7){let a="";if(r=t.length<r?t.length:r,t){let i=t.slice(0,e),n=t.slice(r),o=r-e;o=o>0?o:0;let s="";for(let t=0;t<o;t++)s+="*";a=i+s+n}return a}static distance(t,e){let r=t.x-e.x,a=t.y-e.y;return Math.sqrt(r*r+a*a)}static setImageColor(t,e){}static formatDigitByTHS(t){return t=(t+="").replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")}static formateNumToStr(t,e,r){let a=r>0?t+".":t;e=e&&e.split(".")[1]||"";for(let t=0;t<r;t++)a+=e[t]||"0";return a}static createZeroPrecision(t){let e=t>0?"0.":"0";for(let r=0;r<t;r++)e+="0";return e}static formatMoney(t){let e=a.point,r=a.thousandPoint;if(t+="",!i.checkNum(t))return n.createZeroPrecision(e);let s=t.split("."),u=r?n.formatDigitByTHS(s[0]):s[0],l=o(Number("0."+(s[1]||"0")))+"";return n.formateNumToStr(u,l,e)}}function o(t){let e=Math.floor(t);t>=1&&(t-=e);let r=Math.pow(10,a.point+1);return t=e+10*(t*r/10>>0)/r}t("GameUtils",n),e._RF.pop()}}}));

System.register("chunks:///_virtual/GeomitryUtil.ts",["cc"],(function(t){"use strict";var e,r,o;return{setters:[function(t){e=t.cclegacy,r=t.Vec3,o=t.v3}],execute:function(){e._RF.push({},"b8b8cOw1C9B46pUkNfUIH1U","GeomitryUtil",void 0);class c{}t("default",c),c.toNodePos=(t,e)=>r.transformMat4(o(),e,t.getWorldMatrix().clone().invert()),c.toWorldPos=(t,e)=>r.transformMat4(o(),e,t.getWorldMatrix()),e._RF.pop()}}}));

System.register("chunks:///_virtual/Global.ts",["cc","./EnumDefine.ts","./ConfigUtil.ts","./User.ts","./StorageUtil.ts","./TimeUtil.ts","./STDLanguage.ts","./GameNameConfig.ts","./HotUpdate.ts"],(function(e){"use strict";var t,s,i,a,n,r,o,g,l,c,u,p;return{setters:[function(e){t=e.cclegacy,s=e.sys,i=e.js},function(e){a=e.EOSID,n=e.ERES_TYPE},function(e){r=e.ConfigUtil},function(e){o=e.User},function(e){g=e.default},function(e){l=e.default},function(e){c=e.STDLanguage},function(e){u=e.GameNameConfig},function(e){p=e.default}],execute:function(){t._RF.push({},"32c11GePMtGz55N3MV6B+HP","Global",void 0);e("KEY_PLATFORM_ID","KEY_PLATFORM_ID");class d{static set appVersion(e){this._appVersion=e}static get appVersion(){return s.isBrowser&&this._appVersion&&""!==this._appVersion?this.appPlatformId+"."+this._appVersion:this.appPlatformId+"."+(p.getInstance().getLocalVersion()||"1.0.0")}static get svrTimeMS(){let e=l.getCurMilliTime();return-1!=d._lastSvrTimeMS&&-1!=d._svrTimeMS?e-d._lastSvrTimeMS+d._svrTimeMS:e}static set svrTimeMS(e){d._lastSvrTimeMS=l.getCurMilliTime(),d._svrTimeMS=e}static get svrTimeS(){return d.svrTimeMS/1e3>>0}static get isSameDay(){let e=g.date,t=l.formatDate(new Date);return e!=t&&(g.date=t),e==t}static transformScoreToMoney(e){return e/1e3}static get server(){return d.httpSvr}static getLangCfg(e){return`lang_${e}`}static getToken(){return d._token}static showGuestRegister(){return!!o.instance.isGuest}static get channel(){return""}static get clientParaUrl(){return o.instance.updateurl+"client_para."+(s.isNative?"json":"zip")+"?v="+d.svrTimeMS}static get osid(){let e=a.Android;return s.isBrowser?e=s.isMobile?a.H5:a.PC:s.isNative?s.os==s.OS.ANDROID?e=a.Android:s.os==s.OS.IOS&&(e=a.iOS):s.os!=s.OS.WINDOWS&&s.os!=s.OS.OSX&&s.os!=s.OS.LINUX||(e=a.PC),e}static get supportedRes(){let e=n.PVRTC;return s.isNative&&s.os==s.OS.IOS?(d.deviceInfo&&d.deviceInfo.supportedEtc&&(e=n.ETC1),e):(e=n.ETC1,e)}static get packageName(){return"PCH5.PCH5"}static getGameName(e){let t=r.getConfig(u).get(d.appPlatformId),s=i.getClassByName(t.config),a=r.getConfig(s).get(e);return a&&a[d.language]||null}static get systemLanguage(){return"en"}static get defLanguage(){return c.getDefLangOfPlatform(d.appPlatformId).id}static assignLanguage(){let e=c.getAssignLanguageConfig();return e?e.id:""}}e("Global",d),d.gameCtrl=null,d.loadingScene=null,d.debug=!1,d.gameModel=null,d.appAd=[],d.modelMap={},d._token="",d.psersistantNode=null,d.httpSvr="",d.wssSvr="",d.cdn="",d.iosUrl1="",d.iosUrl2="",d.androidUrl="",d.hotUpdateUrl="",d.commonResUUids=[],d.checkUpdateUrl="",d.isNeedToUpdate=!1,d.wssCacert=null,d.loginSuccessData=null,d.isPopingCmdAd=!1,d.gameIconSpinePrefabMap={},d.gameIconSpinePersistNodeMap={},d.gameIconShortSpriteFrameMap={},d.gameIconLongSpriteFrameMap={},d.deviceInfo=void 0,d._appVersion=void 0,d.SECRET_KEY="CdO23vdMos23f9l3d2*z2",d.urlArr=["https://vpower.s3-ap-southeast-1.amazonaws.com/domain","https://storage.googleapis.com/vpower88"],d.shieldSomeInfo=!1,d._svrTimeMS=-1,d._lastSvrTimeMS=-1,d.point=2,d.thousandPoint=!0,d.selsvrDoMain="",d.cnd="",d.language="en",d.DefLang={zh:"cn",en:"en",vi:"vi",id:"id",ms:"ms",th:"th"},d.isLazyRelease=!1,d.appData={server:"",isRegister:!1,isRegisterCode:!1,isFBVisible:!1,debug:!1},d.kindList=void 0,d.clientGameConfig=null,d.avengersGameList=[],d.avengersPubResID=2e3,d.pubResID=1e3,d.appPlatformId=0,d.clickGameId=-1,t._RF.pop()}}}));

System.register("chunks:///_virtual/HallDefind.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"884af7xG51MHaoNZ2um93m+","HallDefind",void 0);e("BUNDLE_RESOURCES","resources"),e("UNKNOWN","UNKNOWN"),e("ENTRY_CONFIG",{});t._RF.pop()}}}));

System.register("chunks:///_virtual/HeadModel.ts",["cc","./EnumDefine.ts","./ResUtil.ts","./StorageUtil.ts","./Controller.ts","./CustomEventMgr.ts"],(function(e){"use strict";var t,s,l,a,r,i,d;return{setters:[function(e){t=e.cclegacy,s=e._decorator},function(e){l=e.HeadEvent},function(e){a=e.ResUtil},function(e){r=e.default},function(e){i=e.Controller},function(e){d=e.CustomEventMgr}],execute:function(){var n;t._RF.push({},"2dd91oKl/tAjJN1HMMlgnmJ","HeadModel",void 0);const{ccclass:h}=s;e("HeadModel",h("HeadModel")(n=class extends i{constructor(...e){super(...e),this.head=null,this.headData=[]}get headUrl(){if(!this.head){let e=r.HeadUrl;this.head=e&&"null"!=e?e:null}return this.head}setHeadUrl(e){e?(r.HeadUrl=e,this.head=e):(r.HeadUrl=null,this.head=null),d.fire(l.CHANGE_HEAD)}getHeadData(e){if("string"!=typeof e){this.headData=[];for(let t in e){let s=new c;s.init(t,e[t]),this.headData.push(s)}this.checkSelect(),d.fire(l.GET_HEAD_DATA)}}checkSelect(){let e=this.headData;for(let t=0;t<this.headData.length;t++){let s=e[t].urlArr;for(let e=0;e<s.length;e++)s[e].url==this.headUrl?s[e].selected=!0:s[e].selected=!1}}changeHead(e){this.setHeadUrl(e),this.checkSelect(),d.fire(l.CHANGE_HEAD)}})||n);class c{constructor(){this.nameId=void 0,this.urlArr=void 0,this.selected=void 0}init(e,t){this.nameId=a.getResByHeadKind(e),this.urlArr=[];for(let e of t){let t={selected:!1,url:e};this.urlArr.push(t)}this.selected="human"==e}}e("HeadTypeData",c),t._RF.pop()}}}));

System.register("chunks:///_virtual/HotUpdate.ts",["cc","./StatisticsDefine.ts","./LogUtil.ts","./Language.ts","./Singleton.ts","./UIUtils.ts"],(function(t){"use strict";var e,s,a,i,n,r,l,o,h,g;return{setters:[function(t){e=t.sys,s=t.native,a=t.game,i=t.assetManager,n=t.cclegacy},function(t){r=t.NetErrCode},function(t){l=t.default},function(t){o=t.Language},function(t){h=t.Singleton},function(t){g=t.default}],execute:function(){n._RF.push({},"f1492iDuvtJUZOYQXVCl5gr","HotUpdate",void 0);const c={packageUrl:"packageUrl",remoteManifestUrl:"remoteManifestUrl",remoteVersionUrl:"remoteVersionUrl",whiteListConfigUrl:"whiteListConfigUrl"};class d extends(h()){constructor(...t){super(...t),this.am=null,this._updating=!1,this._canRetry=!1,this.params=null,this._localVersion="1.0.0",this.storagePath="",this.timeout=null,this.platformId=0,this.cdnUrl="",this.manifestJsonData=null,this.whitelistMatchRule={whiteList:"deviceid",uidList:"uid",uidRegular:"uid",deviceidList:"deviceid",deviceidRegular:"deviceid",uninionidList:"unionid",unionidRegular:"unionid"}}getLocalVersion(){return this._localVersion}get updating(){return this._updating}init(t,a){if(!e.isNative)return;this.platformId=t,this.cdnUrl=a;let i=t?t+"/":"";this.storagePath=(s.fileUtils?s.fileUtils.getWritablePath():"/")+i+"remotePath",this.am=new s.AssetsManager("",this.storagePath,this.versionCompareHanle);this.am.setVerifyCallback(((t,e)=>{let s=e.compressed,a=e.md5,i=e.path;e.size;return s?(Log.d("检查压缩 : "+i),!0):(Log.d("检查压缩 : "+i+" ("+a+")"),!0)}))}checkUpdate(t){if(this.params=t,!e.isNative||!this.params||!this.params.asset||this._updating||!this.am)return void this.params.onUpdate(!1);if(this.am.getState()===s.AssetsManager.State.UNINITED){this.loadManifest();let t=this.am.getLocalManifest();t&&t.getVersion&&(this._localVersion=t.getVersion())}if(!this.am.getLocalManifest()||!this.am.getLocalManifest().isLoaded())return void this.params.onUpdate(!1);let a=this;this.checkManifest(String(this.platformId),this.cdnUrl);this.am.setEventCallback((function(t){a.timeout&&(clearTimeout(a.timeout),a.timeout=null,g.closeTips()),Log.d("checkUpdate Code: "+t.getEventCode());let e=t.getEventCode();e==s.EventAssetsManager.NEW_VERSION_FOUND?(a.params.onUpdate(!0),a.am.setEventCallback(null),a._updating=!1,a.hotUpdateStart()):e==s.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST?a.onFail(r.manifest):e!=s.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST&&e!=s.EventAssetsManager.ERROR_PARSE_MANIFEST&&e!=s.EventAssetsManager.ALREADY_UP_TO_DATE||(a.params.onUpdate(!1),a.am.setEventCallback(null),a._updating=!1)})),this.am.checkUpdate(),this._updating=!0}hotUpdateStart(){if(this.am&&!this._updating){if(this.am.setEventCallback(this.updateCallback.bind(this)),this.am.getState()===s.AssetsManager.State.UNINITED){this.loadManifest();let t=this.am.getLocalManifest();t&&t.getVersion&&(this._localVersion=t.getVersion())}this.am.update(),this._updating=!0}}versionCompareHanle(t,e){Log.d(`当前版本 :  ${t} , 远程版本 : ${e}`);let s=t.split("."),a=e.split(".");for(let t=0;t<s.length&&t<a.length;++t){if(parseInt(s[t])!==parseInt(a[t]))return-1}return a.length>s.length?-1:0}updateCallback(t){let i=!1,n=!1,l=null,h=null;switch(Log.d("2Code: "+t.getEventCode()),t.getEventCode()){case s.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:Log.d("本地没有manifest文件，更新失败"),n=!0;break;case s.EventAssetsManager.UPDATE_PROGRESSION:h=Math.floor(100*t.getPercentByFile())/100;let e=Math.ceil(t.getDownloadedBytes()/1024),a=Math.ceil(t.getTotalBytes()/1024);a>0&&(l=e+" / "+a+"kb");break;case s.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:case s.EventAssetsManager.ERROR_PARSE_MANIFEST:Log.d("下载manifest文件失败!"),n=!0;break;case s.EventAssetsManager.ALREADY_UP_TO_DATE:return Log.d("已经更新到最新版本!"),this.params.onProgress&&this.params.onProgress.call(this,!0,1,l),void(this._updating=!1);case s.EventAssetsManager.UPDATE_FINISHED:l=o.getString(310042),Log.d("更新成功!"),i=!0;break;case s.EventAssetsManager.UPDATE_FAILED:Log.d(`更新失败!${t.getMessage()}`),this.onFail(r.hotFiles);break;case s.EventAssetsManager.ERROR_UPDATING:Log.d(`资源更新失败!${t.getAssetId()},${t.getMessage()}`);break;case s.EventAssetsManager.ERROR_DECOMPRESS:Log.d(`资源解压失败!${t.getMessage()}`)}if(this.params.onProgress&&this.params.onProgress.call(this,!1,h,l),n&&(this.am.setEventCallback(null),this._updating=!1),i){this.params.onProgress&&this.params.onProgress.call(this,!0,h,l),this.am.setEventCallback(null);let t=s.fileUtils.getSearchPaths(),i=this.am.getLocalManifest();i&&Array.prototype.unshift.apply(t,i.getSearchPaths()),e.localStorage.setItem("HotUpdateSearchPaths",JSON.stringify(t)),s.fileUtils.setSearchPaths(t),e.isNative&&a.restart()}}retry(){!this._updating&&this._canRetry&&this.am&&(this._canRetry=!1,this.am.downloadFailedAssets())}onFail(t){this._updating=!1,this.params&&this.params.onFail&&this.params.onFail.call(this,t)}loadManifest(){if(!this.params.asset)return;let t=this.params.asset.nativeUrl;this.am.loadLocalManifest(t)}matchIdByList(t,e,s){t=t.toString();for(let a of e)if(s){if(t.match(a.toString()))return!0}else if(t==a.toString())return!0}isWhitelistGrayMatch(t,e,s){let a=!1,i=s??e.rule??["uidList"];0==i.length&&(i=["uidList"]);for(let s of i){let i=!0;for(let a of s.split(",")){let s=this.whitelistMatchRule[a]??"",n=a.match("(.*)Regular"),r=t[s],l=e[a]??{};r&&this.matchIdByList(r,l,n)||(i=!1)}if(i){a=!0;break}}return a}checkWhite(t,e){let s=!1;if(!t)return e(s),s;let a=null,n=this.getStorageManifestData();if(n&&(a=n.whiteListConfigUrl),!a)return e(s),s;Log.d(`====checkWhite url===${a}=====`);let r=setTimeout((()=>(e(s),s)),3e3);i.loadRemote(a,((a,n)=>{if(r&&clearTimeout(r),a||!n||!n.json)return l.warn("load whiteList fail!"+a),e(s),s;let o=n.json;1==o.openWhitelist||"true"==o.openWhitelist?this.isWhitelistGrayMatch(t,o,["whiteList"])&&(s=!0):1!=o.openGray&&"true"!=o.openGray||this.isWhitelistGrayMatch(t,o)&&(s=!0),i.releaseAsset(n),e(s,o)}))}editWhiteManifest(t,e){let s=this.getStorageManifestData();s.remoteManifestUrl=t.remoteManifestUrl,s.remoteVersionUrl=t.remoteVersionUrl;let a=JSON.stringify(s),i=this.am.getLocalManifest();i.parseJSONString(a,i.getManifestRoot()),Log.d(`===editWhiteManifest2===${t.remoteManifestUrl}==${i.getManifestFileUrl()}==`),e&&e()}getStorageManifestData(){if(!this.params)return;if(this.manifestJsonData)return this.manifestJsonData;let t=this.storagePath+"project.manifest",e="";e=s.fileUtils.isFileExist(t)?t:this.params.asset.nativeUrl;let a=s.fileUtils.getStringFromFile(e),i=JSON.parse(a);return this.manifestJsonData=i,i}checkManifest(t,s){if(!e.isNative||null==t||Number(t)<=0)return;if(!s||""===s)return;let a=d.getInstance(),i=a.getStorageManifestData();if(!i)return;let n=i[c.packageUrl];if(n&&-1==String(n).indexOf(s)){for(let e in c){let a=i[e];if(!a)return void Log.w(`No manifest path=${a} found! `);{let n=this.findPos(a,"/",2);a=a.replace(a.substring(0,n),s);let r=this.findPos(a,"/",3),l=this.findPos(a,"/",4);if(!(l>r))return void Log.w(`manifest replace url error=${e}! `);a=a.replace(a.substring(r+1,l),t),i[e]=a,Log.d(`=manifest replace success!=${e}=${a}==`)}}i.version="1.0.0";let e=JSON.stringify(i),n=a.am.getLocalManifest();n.parseJSONString(e,n.getManifestRoot())}}findPos(t,e,s){for(var a=t.indexOf(e),i=0;i<s;i++)a=t.indexOf(e,a+1);return a}}t("default",d),n._RF.pop()}}}));

System.register("chunks:///_virtual/HotUpdateDefine.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){let c;var o;e("Macro",void 0),t._RF.push({},"e9733sUI9xL5obHtAPUvMhj","HotUpdateDefine",void 0),(o=c||(c=e("Macro",{}))).BUNDLE_RESOURCES="resources",o.BUNDLE_REMOTE="__Remote__Caches__",o.UNKNOWN="UNKNOWN",t._RF.pop()}}}));

System.register("chunks:///_virtual/HotUpdateManager.ts",["cc","./env","./Eventer.ts","./Singleton.ts","./IHotUpdate.ts"],(function(e){"use strict";var t,s,a,n,r,i,o,d;return{setters:[function(e){t=e.cclegacy,s=e.native,a=e.sys,n=e.game},function(e){r=e.PREVIEW},function(e){i=e.Eventer},function(e){o=e.Singleton},function(e){d=e.HotUpdate}],execute:function(){t._RF.push({},"51f18C93iVC7abSn3GXtxpC","HotUpdateManager",void 0);class g{constructor(e){this.code=-1,this.name="",this.manager=null,this.name=e}}const c="main";class l extends(o()){constructor(...e){super(...e),this.manifestRoot="manifest/",this.storagePath="",this.updating=!1,this._commonHotUpdateUrl="",this.isSkipCheckUpdate=!0,this._projectManifest=null,this.checkCallback=null,this.bundlesConfig={},this.assetsManagers={},this.hotUpdateUrls={},this.currentAssetsManager=null}get commonHotUpdateUrl(){return this._commonHotUpdateUrl.length>0?this._commonHotUpdateUrl:this.projectManifest.packageUrl}set commonHotUpdateUrl(e){this._commonHotUpdateUrl=e}get projectManifest(){if(!this._projectManifest){let e=s.fileUtils.getStringFromFile(this.hallProjectMainfest);try{this._projectManifest=JSON.parse(e)}catch(e){this._projectManifest=null,Log.e(`读取${this.hallProjectMainfest}失败`)}}return this._projectManifest}get hallProjectMainfest(){return`${this.manifestRoot}project.manifest`}getHotUpdateUrl(e){return this.hotUpdateUrls[e]?this.hotUpdateUrls[e]:this.commonHotUpdateUrl}getBundleName(e){return this.bundlesConfig[e]}destroyAssetsManager(e="main"){this.assetsManagers[e]&&(Log.d("destroyAssetsManager : "+e),this.currentAssetsManager=null,delete this.assetsManagers[e])}getAssetsManager(e="main"){return this.assetsManagers[e]||(this.storagePath=s.fileUtils.getWritablePath(),Log.d(`Storage path for remote asset : ${this.storagePath}`),this.assetsManagers[e]=new g(e),this.assetsManagers[e].manager=new s.AssetsManager(e==c?"type.main":`type.${e}_`,this.storagePath,this.versionCompareHanle.bind(this)),this.assetsManagers[e].manager.setVerifyCallback((function(e,t){let s=t.compressed,a=t.md5,n=t.path;t.size;return s?(Log.d(`Verification passed : ${n}`),!0):(Log.d(`Verification passed : ${n} ( ${a} )`),!0)})),Log.d("Hot update is ready , please check or directly update.")),this.assetsManagers[e]}isTryDownloadFailedAssets(){return!(!this.currentAssetsManager||this.currentAssetsManager.manager.getState()!=d.State.FAIL_TO_UPDATE&&this.currentAssetsManager.code!=d.Code.ERROR_NO_LOCAL_MANIFEST&&this.currentAssetsManager.code!=d.Code.ERROR_DOWNLOAD_MANIFEST&&this.currentAssetsManager.code!=d.Code.ERROR_PARSE_MANIFEST)}get isBrowser(){return a.platform==a.Platform.WECHAT_GAME||r||a.isBrowser}isNeedUpdate(e){return this.isBrowser?(this.updating=!1,e(d.Code.ALREADY_UP_TO_DATE,d.State.UP_TO_DATE),!1):(this.isSkipCheckUpdate&&(Log.d("跳过热更新，直接使用本地资源代码"),this.updating=!1,e(d.Code.ALREADY_UP_TO_DATE,d.State.UP_TO_DATE)),!this.isSkipCheckUpdate)}_checkUpdate(e){if(this.isNeedUpdate(e)){if(Log.d("--checkUpdate--"),this.updating)return Log.d("Checking or updating..."),void e(d.Code.CHECKING,d.State.PREDOWNLOAD_VERSION);if(!this.currentAssetsManager.manager.getLocalManifest()||!this.currentAssetsManager.manager.getLocalManifest().isLoaded())return Log.d("Failed to load local manifest ...."),void e(d.Code.ERROR_DOWNLOAD_MANIFEST,d.State.FAIL_TO_UPDATE);this.isTryDownloadFailedAssets()?(Log.d("之前下载资源未完全下载完成，请尝试重新下载"),e(d.Code.UPDATE_FAILED,d.State.TRY_DOWNLOAD_FAILED_ASSETS)):(this.updating=!0,this.checkCallback=e,this.currentAssetsManager.manager.setEventCallback(this.checkCb.bind(this)),this.currentAssetsManager.manager.checkUpdate())}}downloadFailedAssets(){this.currentAssetsManager&&this.currentAssetsManager.manager.downloadFailedAssets()}checkMainUpdate(e){this.isNeedUpdate(e)&&(this.currentAssetsManager=this.getAssetsManager(),this.currentAssetsManager.manager.loadLocalManifest(this.hallProjectMainfest),this._checkUpdate(e))}checkUpdate(e,t){"string"==typeof t?this.checkBundleUpdate(t,e):this.checkMainUpdate(e)}getBundleManifest(e){return`${this.manifestRoot}${e}_project.manifest`}checkBundleUpdate(e,t){if(this.isNeedUpdate(t)){this.currentAssetsManager=this.getAssetsManager(e);let a=this.getBundleManifest(e);if(s.fileUtils.isFileExist(a)){let e=s.fileUtils.getStringFromFile(a),n=new s.Manifest(e,this.storagePath);Log.d("--存在本地版本控制文件checkUpdate--"),Log.d(`mainifestUrl : ${a}`),this.currentAssetsManager.manager.loadLocalManifest(n,""),this._checkUpdate(t)}else{if(this.updating)return Log.d("Checking or updating..."),void t(d.Code.CHECKING,d.State.PREDOWNLOAD_VERSION);let n=this.getHotUpdateUrl(e),r={version:"0",packageUrl:n,remoteManifestUrl:`${n}/${a}`,remoteVersionUrl:`${n}/${this.manifestRoot}${e}_version.manifest`,assets:{},searchPaths:[]},i=JSON.stringify(r),o=new s.Manifest(i,this.storagePath);Log.d("--checkUpdate--"),Log.d(`mainifest content : ${i}`),this.currentAssetsManager.manager.loadLocalManifest(o,""),this._checkUpdate(t)}}}checkCb(e){switch(this.currentAssetsManager.code=e.getEventCode(),Log.d(`checkCb event code : ${e.getEventCode()} state : ${this.currentAssetsManager.manager.getState()}`),e.getEventCode()){case d.Code.ERROR_NO_LOCAL_MANIFEST:Log.d("No local manifest file found, hot update skipped.");break;case d.Code.ERROR_DOWNLOAD_MANIFEST:case d.Code.ERROR_PARSE_MANIFEST:Log.d("Fail to download manifest file, hot update skipped.");break;case d.Code.ALREADY_UP_TO_DATE:Log.d("Already up to date with the latest remote version.");break;case d.Code.NEW_VERSION_FOUND:Log.d("New version found, please try to update.");break;default:return}this.updating=!1,this.checkCallback&&this.currentAssetsManager.manager.getState()!=d.State.DOWNLOADING_VERSION&&(this.checkCallback(e.getEventCode(),this.currentAssetsManager.manager.getState()),this.checkCallback=null)}hotUpdate(){this.currentAssetsManager?(Log.d(`即将热更新模块为:${this.currentAssetsManager.name} , updating : ${this.updating}`),this.updating||(Log.d(`执行更新 ${this.currentAssetsManager.name} `),this.currentAssetsManager.manager.setEventCallback(this.updateCb.bind(this)),this.currentAssetsManager.manager.update())):Log.e("热更新管理器未初始化")}updateCb(e){var t=!1,r=!1;switch(Log.d(`--update cb code : ${e.getEventCode()} state : ${this.currentAssetsManager.manager.getState()}`),this.currentAssetsManager.code=e.getEventCode(),e.getEventCode()){case d.Code.ERROR_NO_LOCAL_MANIFEST:Log.d("No local manifest file found, hot update skipped."),r=!0;break;case d.Code.UPDATE_PROGRESSION:Log.d(`${e.getDownloadedBytes()} / ${e.getTotalBytes()}`),Log.d(`${e.getDownloadedFiles()} / ${e.getTotalFiles()}`),Log.d(`percent : ${e.getPercent()}`),Log.d(`percent by file : ${e.getPercentByFile()}`);var o=e.getMessage();o&&Log.d(`Updated file: ${o}`);break;case d.Code.ERROR_DOWNLOAD_MANIFEST:case d.Code.ERROR_PARSE_MANIFEST:Log.d("Fail to download manifest file, hot update skipped."),r=!0;break;case d.Code.ALREADY_UP_TO_DATE:Log.d("Already up to date with the latest remote version."),r=!0;break;case d.Code.UPDATE_FINISHED:Log.d(`Update finished. ${e.getMessage()}`),t=!0;break;case d.Code.UPDATE_FAILED:Log.d(`Update failed. ${e.getMessage()}`),this.updating=!1;break;case d.Code.ERROR_UPDATING:Log.d(`Asset update error: ${e.getAssetId()} , ${e.getMessage()}`);break;case d.Code.ERROR_DECOMPRESS:Log.d(`${e.getMessage()}`)}if(r&&(this.currentAssetsManager.manager.setEventCallback(null),this.updating=!1),t){var g=s.fileUtils.getSearchPaths(),l=this.currentAssetsManager.manager.getLocalManifest().getSearchPaths();Log.d(JSON.stringify(l)),Array.prototype.unshift.apply(g,l);let e={};for(let t=0;t<g.length;t++)e[g[t]]=!0;g=Object.keys(e),a.localStorage.setItem("HotUpdateSearchPaths",JSON.stringify(g)),s.fileUtils.setSearchPaths(g)}let h=this.currentAssetsManager.manager.getState();this.currentAssetsManager.name==c?t&&(this.currentAssetsManager.manager.setEventCallback(null),e.getDownloadedFiles()>0&&n.restart(),this.destroyAssetsManager(this.currentAssetsManager.name)):t&&(Log.d(`${this.currentAssetsManager.name} 下载资源数 : ${e.getDownloadedFiles()}`),this.destroyAssetsManager(this.currentAssetsManager.name));let u={downloadedBytes:e.getDownloadedBytes(),totalBytes:e.getTotalBytes(),downloadedFiles:e.getDownloadedFiles(),totalFiles:e.getTotalFiles(),percent:e.getPercent(),percentByFile:e.getPercentByFile(),code:e.getEventCode(),state:h,needRestart:t};i.getInstance().emit(d.Event.HOTUPDATE_DOWNLOAD,u),Log.d(`update cb  failed : ${r}  , need restart : ${t} , updating : ${this.updating}`)}versionCompareHanle(e,t){Log.d(`JS Custom Version Compare : version A is ${e} , version B is ${t}`);let s=e.split("."),a=t.split(".");Log.d(`version A ${s} , version B ${a}`);for(let e=0;e<s.length&&e<a.length;++e){let t=parseInt(s[e]),n=parseInt(a[e]);if(t!==n)return t-n}return a.length>s.length?-1:0}getVersion(){var e,t,s;return null==(e=this.currentAssetsManager)||null==(t=e.manager)||null==(s=t.getLocalManifest())?void 0:s.getVersion()}}e("HotUpdateManager",l),t._RF.pop()}}}));

System.register("chunks:///_virtual/HotUpdateView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./DStorage.ts","./HotUpdate.ts","./UILoadingMain.ts","./UIUtils.ts","./Global.ts","./StatisticsDefine.ts","./StatisticsManager.ts","./LoadingManager.ts","./Language.ts"],(function(e){"use strict";var t,i,s,n,r,a,o,l,p,c,u,g,d,f,h,b,m,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Asset,r=e.Label,a=e.ProgressBar,o=e._decorator,l=e.Component,p=e.sys},function(e){c=e.default},function(e){u=e.default},function(e){g=e.UILoadingMain},function(e){d=e.default},function(e){f=e.Global},function(e){h=e.LoginStatistics},function(e){b=e.StatisticsManager},function(e){m=e.LoadingManager},function(e){y=e.Language}],execute:function(){var I,T,U,L,v,S,w,B,P,H,k;s._RF.push({},"0f388mXqB1P3r5nysKA8wKB","HotUpdateView",void 0);const{ccclass:M,property:N}=o;e("default",(I=M("HotUpdateView"),T=N(n),U=N(r),L=N({displayName:"进度条",type:a}),v=N({displayName:"进度条label",type:r}),I((B=t((w=class extends l{constructor(...e){super(...e),i(this,"mainifest",B,this),i(this,"labelVersion",P,this),i(this,"progressBar",H,this),i(this,"progressLabel",k,this)}start(){m.getInstance().loadInitConfig(this.checkHotUpdate.bind(this))}checkHotUpdate(){if(p.getNetworkType()==p.NetworkType.NONE)return void setTimeout((()=>{this.onFailTips()}),500);if(!p.isNative)return void this.enterGame();this.setProgress(0);let e=u.getInstance(),t=this;this.progressBar.node.active=!0,this.setTips(y.getString(310043));let i={asset:this.mainifest,onUpdate:function(e){e?(t.progressBar.node.active=!0,b.getInstance().loginReport(h.updateStart),b.getInstance().setStartTime(h.updateTimes)):t.enterGame()},onProgress:function(e,i,s){i&&t.setProgress(i),s&&t.setTips(s),e&&(t.setTips(y.getString(310041)),b.getInstance().loginReport(h.updateSuccess),b.getInstance().loginReport(h.updateTimes,!0),t.enterGame())},onFail:t.onFailTips.bind(t),whiteParams:{uid:c.get("USERID"),spaceId:c.get("spaceId"),deviceid:c.get("deviceid")}};e.init(f.appPlatformId,f.cdn),e.checkUpdate(i)}setTips(e){this.progressLabel&&(this.progressLabel.string=e)}setProgress(e){this.progressBar&&(this.progressBar.progress=e)}enterGame(){this.progressBar.node.active=!0,this.labelVersion.string=f.appVersion,this.node.getComponent(g).loadRes(this)}onFailTips(e){d.netErrorTips(e,(()=>{this.checkHotUpdate()}))}}).prototype,"mainifest",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(w.prototype,"labelVersion",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(w.prototype,"progressBar",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(w.prototype,"progressLabel",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=w))||S));s._RF.pop()}}}));

System.register("chunks:///_virtual/HttpBase.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){let s,r;t({HttpMethod:void 0,HttpResponseType:void 0}),e._RF.push({},"9da5e1GQdlDtLzNTpv5+mBi","HttpBase",void 0),function(t){t.GET="GET",t.POST="POST"}(s||(s=t("HttpMethod",{}))),function(t){t.TEXT="text",t.ARRAY_BUFFER="arraybuffer",t.DOCUMENT="document",t.JSON="json"}(r||(r=t("HttpResponseType",{})));t("HttpBase",class{constructor(){this._xhr=void 0,this._responseType=void 0,this._listener=void 0,this._withCredentials=void 0,this._url="",this._method=void 0,this._timeout=5e3,this.headerObj=void 0}open(t,e,r,h=s.GET){this._url=t,this._method=h,this._listener=e||function(){},this._xhr&&(this._xhr.abort(),this._xhr=null),this._xhr=this.getXHR();var i=this;this._xhr.timeout=this._timeout,this._xhr.onreadystatechange=function(){i._listener(this.response,i._xhr)},this._xhr.ontimeout=()=>{r()},this._xhr.onerror=()=>{r()},this._xhr.open(this._method,this._url,!0)}send(t){if(null!=this._responseType&&(this._xhr.responseType=this._responseType),null!=this._withCredentials&&(this._xhr.withCredentials=this._withCredentials),this.headerObj)for(let t in this.headerObj)this._xhr.setRequestHeader(t,this.headerObj[t]);this._xhr.send(t)}abort(){this._xhr&&this._xhr.abort()}resend(){this._xhr&&(this._xhr.abort(),this._xhr.open(this._method,this._url,!0),this._xhr.send())}getAllResponseHeaders(){if(!this._xhr)return null;let t=this._xhr.getAllResponseHeaders();return t||""}setRequestHeader(t,e){this.headerObj||(this.headerObj={}),this.headerObj[t]=e}getResponseHeader(t){if(!this._xhr)return null;let e=this._xhr.getResponseHeader(t);return e||""}getXHR(){return window?window.XMLHttpRequest?new window.XMLHttpRequest:void 0:new XMLHttpRequest}get withCredentials(){return this._withCredentials}set withCredentials(t){this._withCredentials=t}get response(){if(!this._xhr)return null;if(null!=this._xhr.response)return this._xhr.response;if("text"==this._responseType)return this._xhr.responseText;if(this._responseType==r.ARRAY_BUFFER){return window.convertResponseBodyToText(this._xhr.responseBody)}return this._responseType==r.DOCUMENT?this._xhr.responseXML:null}get responseType(){return this._responseType}set responseType(t){this._responseType=t}set timeout(t){this._timeout=t,this._xhr&&(this._xhr.timeout=t)}get status(){return this._xhr?this._xhr.status:null}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/HttpManager.ts",["cc","./ProtoUtil.ts","./Eventer.ts","./Events.ts","./Singleton.ts","./HttpReq.ts"],(function(t){"use strict";var s,e,a,r,n,l,i,c;return{setters:[function(t){s=t.cclegacy,e=t.sys,a=t.js},function(t){r=t.ProtoUtil},function(t){n=t.Eventer},function(t){l=t.Events},function(t){i=t.Singleton},function(t){c=t.HttpReq}],execute:function(){t("HttpRespondErrorCode",void 0),s._RF.push({},"c15b9YbprtGnY4gqHcrG+we","HttpManager",void 0);class o{constructor(t){this.data=null,a.mixin(this,p.getInstance().reqParam),this.data=t}}t("HttpRespondParams",class{constructor(){this.data=null,this.desc="",this.errcode=0,this.msg="",this.time=0}});let u;t("HttpRequest",class{constructor(t,s,e,a,r,n){this.path=null,this.url=null,this.params=null,this.listener=null,this.callback=null,this.fails=0,this.failCallback=null,this.listener=t,this.path=s,this.params=new o(e),this.callback=a,this.failCallback=r,this.url=n}}),function(t){t[t.OK=0]="OK"}(u||(u=t("HttpRespondErrorCode",{})));class p extends(i()){constructor(...t){super(...t),this.reqParam=void 0}initParam(t){this.reqParam=t}request(t){t.url=(t.url||p.httpAddress)+t.path,e.Platform.WECHAT_GAME==e.platform?this.qqRequest(t):this.defaultRequest(t)}qqRequest(t){qq.request({url:t.url,data:t.params,method:"POST",dataType:"json",header:{"content-type":p.CONTENT_TYPE},success:s=>{Log.d("qqRequest",s),200==s.statusCode?this.respond(s.data,t):null==t||t.failCallback(t)}})}defaultRequest(t){a.mixin(t.params,r.getHttpParam(t.params)),c.post(t.url,(s=>{var e=JSON.parse(s);t.callback&&this.respond(e,t)}),t.params)}respond(t,s){t&&t.errcode==u.OK?s.callback.call(s.listener,t.data):n.getInstance().emit(l.HttpError,t)}}t("HttpManager",p),p.httpAddress=null,p.CONTENT_TYPE="application/x-www-form-urlencoded;charset=utf-8",s._RF.pop()}}}));

System.register("chunks:///_virtual/HttpMgr.ts",["cc","./Global.ts","./EnumDefine.ts","./StructDefine.ts","./ProtoUtil.ts","./NetHttp.ts","./WebMsgHandler.ts"],(function(t){"use strict";var e,n,s,l,o,a,u,i,r;return{setters:[function(t){e=t.cclegacy,n=t.sys,s=t.assetManager},function(t){l=t.Global},function(t){o=t.HttpMethod},function(t){a=t.HttpResponseType},function(t){u=t.ProtoUtil},function(t){i=t.default},function(t){r=t.default}],execute:function(){e._RF.push({},"36293ibHPBPBbLu/Kpmo+02","HttpMgr",void 0);class c{static Instance(){return this._instance||(this._instance=new c)}send(t,e,n,s){let i=l.httpSvr+t.key,c=null;"string"!=typeof t.data?(c=u.getHttpParam(t.data),c=t.respFormat==a.TEXT?u.parseToString(c):c):c=t.data,t.method==o.POST?r.sendPost(i,null,c,n,n,null,!1):t.method==o.GET&&r.sendGet(i,null,n,n,null)}loadRemoteJson(t,e,l){if(n.os==n.OS.IOS){let e=new i;e.init(null),e.sendGet(t,null,((t,e)=>{l(null,{json:t.data})}),((e,n)=>{l({name:t,message:"error"},null)}))}else e?s.loadRemote(t,e,l):s.loadRemote(t,l)}}t("HttpMgr",c),c._instance=null,e._RF.pop()}}}));

System.register("chunks:///_virtual/HttpReq.ts",["cc","./HttpBase.ts"],(function(t){"use strict";var e,s,n;return{setters:[function(t){e=t.cclegacy},function(t){s=t.HttpMethod,n=t.HttpBase}],execute:function(){e._RF.push({},"492280wYuFBh7TISPg0bzrA","HttpReq",void 0);class o{static get(t,e,i={}){let r=new n,a=i.header||{"Content-Type":"application/json"},p=i.retry||o.HTTP_MAX_TRYTIMES;r.timeout=o.HTTP_USR_TIMEOUT;for(const t in a)if(a.hasOwnProperty(t)){const e=a[t];r.setRequestHeader(t,e)}let d=0,u=function(){d+=1,d>p?(Log.d("raise http timeout! %s",t),e&&e(!1,"fail")):(Log.d("raise timeout! url is %s||idx is %d",t,d),r.resend())};r.open(t,(function(t,s){4==s.readyState&&(s.status>=200&&s.status<300?(Log.d("respdata ----\x3e",r.response),e&&e(r.response)):u())}),u,s.GET),Log.d("http get ----\x3e",t),r.send()}static post(t,e,i,r={}){let a=new n,p=r.header||{"Content-Type":"application/json"},d=r.retry||o.HTTP_MAX_TRYTIMES;a.timeout=o.HTTP_USR_TIMEOUT;for(const t in p)if(p.hasOwnProperty(t)){const e=p[t];a.setRequestHeader(t,e)}let u=0,T=function(){u+=1,u>d?(Log.d("raise http timeout! %s",t),e&&e(!1,"fail")):(Log.d("raise timeout! url is %s||idx is %d",t,u),a.resend())};a.open(t,(function(t,s){4==s.readyState&&(s.status>=200&&s.status<300?(Log.d("respdata ----\x3e",a.response),e&&e(a.response)):T())}),T,s.POST),a.send(JSON.stringify(i)),Log.d("senddata ----\x3e",i),Log.d("http post ----\x3e",t)}}t("HttpReq",o),o.HTTP_MAX_TRYTIMES=3,o.HTTP_USR_TIMEOUT=5e3,e._RF.pop()}}}));

System.register("chunks:///_virtual/HttpReqPack.ts",["cc","./EnumDefine.ts","./StringUtil.ts","./StructDefine.ts"],(function(t){"use strict";var e,s,r,i,a;return{setters:[function(t){e=t.cclegacy},function(t){s=t.HttpMethod},function(t){r=t.default},function(t){i=t.HttpResponseType,a=t.URLLoaderDataFormat}],execute:function(){e._RF.push({},"a61c64Bf25EjJSqzOpJKPJE","HttpReqPack",void 0);class n{constructor(){this._key="",this.method="",this.respFormat="",this.data=void 0,this.reqFormat=""}static create(t,e=null,r=s.POST,o=i.TEXT,c=a.TEXT){let h=new n;return h.key=t,h.data=e,h.method=r,h.respFormat=o,h.reqFormat=c,h}init(t,e,s=null,i="",a=""){this.key=t,this.method=e,this.respFormat=i,this.reqFormat=a,this.data=""==a?r.parseURLVariablesStr(s):s}clear(){this.key="",this.method="",this.respFormat="",this.data=null}set key(t){this._key=t}get key(){return this._key}}t("HttpReqPack",n),e._RF.pop()}}}));

System.register("chunks:///_virtual/HttpRespPack.ts",["cc","./LogUtil.ts"],(function(t){"use strict";var s,e;return{setters:[function(t){s=t.cclegacy},function(t){e=t.default}],execute:function(){s._RF.push({},"1ec1cvT4CRHBYIOJ4sZrKWl","HttpRespPack",void 0);t("HttpRespPack",class{constructor(){this._isSuccess=!1,this._data=void 0,this._code=void 0,this._msg=void 0}init(t,s){this._isSuccess=t;let e=s;null==e?(this._data=null,this._code="",this._msg=""):(this._data=null==e.Data?e:e.Data,this._code=null==e.Code?"":e.Code,this._msg=null==e.Message?"":e.Message)}clear(){this._isSuccess=!1,this._data=null}get isSuccess(){return this._isSuccess}get data(){return this._data||(e.debug("data is empty"),this._data={}),this._data}get code(){return this._code}get msg(){return this._msg}}),s._RF.pop()}}}));

System.register("chunks:///_virtual/ICommand.ts",["cc"],(function(){"use strict";var t;return{setters:[function(c){t=c.cclegacy}],execute:function(){t._RF.push({},"26bf9hF9VFJp6UsF/5hzqOF","ICommand",void 0),t._RF.pop()}}}));

System.register("chunks:///_virtual/IController.ts",["cc"],(function(){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"fa631x6uLpOp5HlNSWlqdoq","IController",void 0),t._RF.pop()}}}));

System.register("chunks:///_virtual/ID4BankListConfig.ts",["cc"],(function(t){"use strict";var n,s;return{setters:[function(t){n=t.cclegacy,s=t._decorator}],execute:function(){var c;n._RF.push({},"61038pjruZK+4nETpUUSIT6","ID4BankListConfig",void 0);const{ccclass:i}=s;t("ID4BankListConfig",i("ID4BankListConfig")(c=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||c);n._RF.pop()}}}));

System.register("chunks:///_virtual/IDBankListConfig.ts",["cc"],(function(t){"use strict";var s,c;return{setters:[function(t){s=t.cclegacy,c=t._decorator}],execute:function(){var n;s._RF.push({},"d7801L38VdE5Lr5GRVW/T5H","IDBankListConfig",void 0);const{ccclass:i}=c;t("IDBankListConfig",i("IDBankListConfig")(n=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||n);s._RF.pop()}}}));

System.register("chunks:///_virtual/IDispose.ts",["cc"],(function(){"use strict";var s;return{setters:[function(e){s=e.cclegacy}],execute:function(){s._RF.push({},"2403eXZAIRB5KsaYuQs9Fjl","IDispose",void 0),s._RF.pop()}}}));

System.register("chunks:///_virtual/IHotUpdate.ts",["cc"],(function(E){"use strict";var D;return{setters:[function(E){D=E.cclegacy}],execute:function(){let O;E("HotUpdate",void 0),D._RF.push({},"d73e0R8hwBP84TS4diEuUwi","IHotUpdate",void 0),function(E){let D,O,A;!function(E){E.HOTUPDATE_DOWNLOAD="HOTUPDATE_DOWNLOAD",E.DOWNLOAD_PROGRESS="DOWNLOAD_PROGRESS",E.DOWNLOAD_MESSAGE="DOWNLOAD_MESSAGE"}(D||(D={})),E.Event=D,function(E){E[E.ERROR_NO_LOCAL_MANIFEST=0]="ERROR_NO_LOCAL_MANIFEST",E[E.ERROR_DOWNLOAD_MANIFEST=1]="ERROR_DOWNLOAD_MANIFEST",E[E.ERROR_PARSE_MANIFEST=2]="ERROR_PARSE_MANIFEST",E[E.NEW_VERSION_FOUND=3]="NEW_VERSION_FOUND",E[E.ALREADY_UP_TO_DATE=4]="ALREADY_UP_TO_DATE",E[E.UPDATE_PROGRESSION=5]="UPDATE_PROGRESSION",E[E.ASSET_UPDATED=6]="ASSET_UPDATED",E[E.ERROR_UPDATING=7]="ERROR_UPDATING",E[E.UPDATE_FINISHED=8]="UPDATE_FINISHED",E[E.UPDATE_FAILED=9]="UPDATE_FAILED",E[E.ERROR_DECOMPRESS=10]="ERROR_DECOMPRESS",E[E.CHECKING=11]="CHECKING"}(O||(O={})),E.Code=O,function(E){E[E.UNINITED=0]="UNINITED",E[E.UNCHECKED=1]="UNCHECKED",E[E.PREDOWNLOAD_VERSION=2]="PREDOWNLOAD_VERSION",E[E.DOWNLOADING_VERSION=3]="DOWNLOADING_VERSION",E[E.VERSION_LOADED=4]="VERSION_LOADED",E[E.PREDOWNLOAD_MANIFEST=5]="PREDOWNLOAD_MANIFEST",E[E.DOWNLOADING_MANIFEST=6]="DOWNLOADING_MANIFEST",E[E.MANIFEST_LOADED=7]="MANIFEST_LOADED",E[E.NEED_UPDATE=8]="NEED_UPDATE",E[E.READY_TO_UPDATE=9]="READY_TO_UPDATE",E[E.UPDATING=10]="UPDATING",E[E.UNZIPPING=11]="UNZIPPING",E[E.UP_TO_DATE=12]="UP_TO_DATE",E[E.FAIL_TO_UPDATE=13]="FAIL_TO_UPDATE",E[E.TRY_DOWNLOAD_FAILED_ASSETS=14]="TRY_DOWNLOAD_FAILED_ASSETS"}(A||(A={})),E.State=A;class _{constructor(E,D,O=!1){this.bundle="",this.name="",this.isNeedPrompt=!1,this.name=E,this.bundle=D,this.isNeedPrompt=O}clone(){return _.clone(this)}static clone(E){return new _(E.name,E.bundle,E.isNeedPrompt)}}E.BundleConfig=_}(O||(O=E("HotUpdate",{}))),D._RF.pop()}}}));

System.register("chunks:///_virtual/Img.ts",["cc","./ResManager.ts"],(function(t){"use strict";var e,n,s,r,i;return{setters:[function(t){e=t.cclegacy,n=t.Component,s=t.Sprite,r=t._decorator},function(t){i=t.ResManager}],execute:function(){var o;e._RF.push({},"c88b6EJnDdNpa81kjGi7UHS","Img",void 0);const{ccclass:c,property:a}=r;t("Img",c("Img")(o=class extends n{start(){}initImg(t,e){this.getComponent(s).spriteFrame=null,i.Instance().loadRemoteImg(t,!0,(t=>{this.node&&(this.getComponent(s).spriteFrame=t,e&&e())}))}initWithSpriteFrame(t){this.getComponent(s).spriteFrame=t}})||o);e._RF.pop()}}}));

System.register("chunks:///_virtual/JssmEx.ts",["cc","./ResourceManager.ts"],(function(t){"use strict";var s,e,i;return{setters:[function(t){s=t.cclegacy,e=t.TextAsset},function(t){i=t.default}],execute:function(){s._RF.push({},"b4b57Y8ZshDHobtFKwNa0Ha","JssmEx",void 0);class a{get state(){return this.sm.state()}get lastState(){return this._lastState}constructor(t,s){this.sm=void 0,this.delegate=void 0,this._lastState=void 0,this.delegate=t}static async createWithConfigPath(t,s){if(t&&s){let n=await i.getInstance().loadResAsync(s,e);if(null!=n&&n.text)return new a(t,n.text)}}action(t){let s=this.state,e=this.sm.action(t);return e&&(this._lastState=s,this.delegate.onJssmExitState(this._lastState,this),this.delegate.onJssmAction(t,this),this.delegate.onJssmEnterState(this.state,this)),e}transition(t){let s=this.state,e=this.sm.transition(t);return e&&(this._lastState=s,this.delegate.onJssmExitState(this._lastState,this),this.delegate.onJssmEnterState(this.state,this)),e}force_transition(t){let s=this.state,e=this.sm.force_transition(t);return e&&(this._lastState=s,this.delegate.onJssmExitState(this._lastState,this),this.delegate.onJssmEnterState(this.state,this)),e}}t("JssmEx",a),s._RF.pop()}}}));

System.register("chunks:///_virtual/Language.ts",["cc","./LanguageLabel.ts","./LanguageSprite.ts","./HotUpdateDefine.ts","./ResDefine.ts","./ConfigUtil.ts","./LogUtil.ts","./StorageUtil.ts","./Global.ts","./ChannelLangConfig.ts","./AudioManager.ts","./ResManager.ts","./Singleton.ts"],(function(e){"use strict";var a,n,t,g,s,i,u,l,o,r,c,f,h,L,d;return{setters:[function(e){a=e.cclegacy,n=e.JsonAsset,t=e.director},function(e){g=e.LanguageLabel},function(e){s=e.LanguageSprite},function(e){i=e.Macro},function(e){u=e.ResDefine},function(e){l=e.ConfigUtil},function(e){o=e.default},function(e){r=e.default},function(e){c=e.Global},function(e){f=e.ChannelLangConfig},function(e){h=e.default},function(e){L=e.ResManager},function(e){d=e.Singleton}],execute:function(){a._RF.push({},"5f0b8oyO4FCh7azw/Hk3WNO","Language",void 0);class C extends(d()){constructor(...e){super(...e),this.language=null}init(e){this.language=new p,this.language.bundleName=e??this.language.bundleName}}e("default",C);class p{constructor(){this.languagePackage=void 0,this.languagePackages={},this.bundleName=i.BUNDLE_RESOURCES}loadLanguage(){try{this.initLanguage();let e=r.getLanguage();if(""==e){let e=l.getConfig(f)[c.appPlatformId].L.split(",")[0];return void this.onChooseLang(e)}let a=e||c.systemLanguage;this.onChooseLang(a)}catch(e){o.warn(`==loadLanguage error!====${e}`)}}initLanguage(){for(let e in c.DefLang){let a=`${u.LANGUAGE_CONFIG_URL}${c.getLangCfg(c.DefLang[e])}`;L.Instance().load(this.bundleName,a,n,(()=>{}),(a=>{this.languagePackages[c.DefLang[e]]=a.data.json}))}}async initDefaultLanguage(){return new Promise(((e,a)=>{let t=c.language,g=`${u.LANGUAGE_CONFIG_URL}${c.getLangCfg(c.DefLang[t])}`;L.Instance().load(this.bundleName,g,n,(()=>{}),(a=>{this.languagePackages[c.DefLang[t]]=a.data.json,this.setLangInfo(a.data.json),e(null)}))}))}onChooseLang(e,a=!1){c.language=e,1==a&&h.Instance().playMusicBG(),r.saveLanguage(c.language);let t=`${u.LANGUAGE_CONFIG_URL}${c.getLangCfg(c.language)}`;this.languagePackages[c.language]?(this.setLangInfo(this.languagePackages[c.language]),this.updateLanguage()):L.Instance().load(this.bundleName,t,n,(()=>{}),(e=>{this.setLangInfo(e.data.json),this.updateLanguage()}))}setLangInfo(e){this.languagePackage=e}getString(e,a){return a?this.languagePackages[a]?this.languagePackages[a][e]:"":this.languagePackage&&this.languagePackage[e]?this.languagePackage[e]:""}updateLanguage(){let e=t.getScene().children;for(let a=0;a<e.length;++a){let n=e[a].getComponentsInChildren(g);for(let e=0;e<n.length;e++)n[e].language();let t=e[a].getComponentsInChildren(s);for(let e=0;e<t.length;e++)t[e].language()}}formatString(e,a=[],n="%"){if(!e)return"";let t=e.replace("\\n","\n");if(a&&a.length>0){let e=1;for(let g=0;g<a.length;g++){let s=new RegExp(n+e,"g"),i=a[g];t=t.replace(s,i),e++}}return t}getFormatString(e,a=[],n="%"){let t=this.getString(e);return this.formatString(t,a,n)}static getString(e){return C.getInstance().language.getString(e)}static formatString(e,a=[],n="%"){return C.getInstance().language.formatString(e,a,n)}static getSource(e){return e.replace("_en_",`_${c.language}_`)}static formatSource(e){return e.source.toString().replace("_en_",`_${c.language}_`)}}e("Language",p),a._RF.pop()}}}));

System.register("chunks:///_virtual/LanguageConfig.ts",["cc"],(function(t){"use strict";var i,n;return{setters:[function(t){i=t.cclegacy,n=t._decorator}],execute:function(){var e;i._RF.push({},"6e422Rb6tJKqrmzlRgl11vk","LanguageConfig",void 0);const{ccclass:c}=n;t("LanguageConfig",c("LanguageConfig")(e=class{constructor(){this.id=void 0,this.icon=void 0,this.text=void 0,this.name=void 0}attrs(){return["id","icon","text","name"]}})||e);i._RF.pop()}}}));

System.register("chunks:///_virtual/LanguageLabel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./EnumDefine.ts","./StringUtil.ts","./Language.ts"],(function(t){"use strict";var e,a,n,i,r,s,g,o,u,l,p,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){n=t.cclegacy,i=t._decorator,r=t.Component,s=t.warn,g=t.Label,o=t.error},function(t){u=t.Global},function(t){l=t.ELanguage_Type},function(t){p=t.default},function(t){h=t.default}],execute:function(){var c,d,b,L,f,m,y;n._RF.push({},"f54448p1mpAfIndAWF3FHgz","LanguageLabel",void 0);const{ccclass:_,property:D,menu:I}=i;t("LangLabelParamsItem",_("LangLabelParamsItem")((b=e((d=class{constructor(){a(this,"key",b,this),a(this,"value",L,this)}}).prototype,"key",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),L=e(d.prototype,"value",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=d))||c),t("LanguageLabel",_("LanguageLabel")(f=I("ui/language/LanguageLabel")((y=e((m=class extends r{constructor(...t){super(...t),this.params=[],this.languageTypeArr=[],a(this,"_dataID",y,this),this.changeCb=null,this.initFontSize=0,this._needUpdate=!1}get dataID(){return this._dataID||-1}set dataID(t){this._dataID=t,this._needUpdate=!0}get string(){let t="",e="";return e=u.language,this.languageTypeArr.length>0?(-1==this.languageTypeArr.indexOf(u.language)&&(e=l.EN),t=h.getInstance().language.getString(this._dataID,e)):t=h.getInstance().language.getString(this._dataID),t||(s("[LanguageLabel] 未找到语言标识，使用dataID替换"),t=""),t}set string(t){t&&(this.getComponent(g).string=t)}language(){this._needUpdate=!0}onLoad(){this._needUpdate=!0,this.getComponent(g)?this.getComponent(g)&&(this.initFontSize=this.getComponent(g).fontSize):o(this.node.name,this._dataID)}setLanguageTypeArr(t=[]){this.languageTypeArr=t,this._needUpdate=!0}setChangeCb(t){this.changeCb=t}setParams(t){this.params=t}update(){this._needUpdate&&(this.updateLabel(),this._needUpdate=!1)}updateLabel(){do{if(!this._dataID)break;let t=this.getComponent(g),e="";e=this.params.length>0?p.formatLanguageString(this.string,this.params):this.string,t.string=e,this.changeCb&&this.changeCb()}while(0)}}).prototype,"_dataID",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),e(m.prototype,"dataID",[D],Object.getOwnPropertyDescriptor(m.prototype,"dataID"),m.prototype),f=m))||f)||f);n._RF.pop()}}}));

System.register("chunks:///_virtual/LanguageSprite.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./LogUtil.ts","./ResManager.ts","./ResDefine.ts","./HotUpdateDefine.ts","./EnumDefine.ts"],(function(e){"use strict";var t,i,a,r,n,s,g,o,u,p,l,c,S,h,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e.CCString,n=e._decorator,s=e.Component,g=e.SpriteFrame,o=e.Sprite,u=e.UITransform},function(e){p=e.Global},function(e){l=e.default},function(e){c=e.ResManager},function(e){S=e.ResDefine},function(e){h=e.Macro},function(e){f=e.ELanguage_Type}],execute:function(){var m,b,y,d,_,C,L,R,z;a._RF.push({},"83e46V4VMFIaZjMNPoKkHW9","LanguageSprite",void 0);const{ccclass:D,property:E,menu:T}=n;e("LanguageSprite",(m=D("LanguageSprite"),b=T("ui/language/LanguageSprite"),y=E({serializable:!0}),d=E({type:r,serializable:!0}),_=E({tooltip:"是否设置为图片原始资源大小"}),m(C=b((R=t((L=class extends s{constructor(...e){super(...e),i(this,"_imageStr",R,this),i(this,"isRawSize",z,this),this.languageTypeArr=[],this.changeCb=null}get imageStr(){return this._imageStr||""}set imageStr(e){this._imageStr=e,this.updateSprite()}start(){this.updateSprite()}setChangeCb(e){this.changeCb=e}language(){this.updateSprite()}setLanguageTypeArr(e=[]){this.languageTypeArr=e}updateSprite(){let e="";e=p.language,this.languageTypeArr.length>0&&-1==this.languageTypeArr.indexOf(p.language)&&(e=f.EN);let t=`${S.LANGUAGE_SPRITE_URL}${e}/${this._imageStr}/spriteFrame`;c.Instance().load(h.BUNDLE_RESOURCES,t,g,(()=>{}),(e=>{let i=e.data;if(i){if(l.debug("language sprite:",this),!this.node)return;let e=this.getComponent(o);if(e.spriteFrame=i,this.isRawSize){var a;let t=i._originalSize;null==(a=e.getComponent(u))||a.setContentSize(t)}this.changeCb&&this.changeCb()}else l.warn("[LanguageSprite] 资源不存在 "+t)}))}}).prototype,"_imageStr",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t(L.prototype,"imageStr",[d],Object.getOwnPropertyDescriptor(L.prototype,"imageStr"),L.prototype),z=t(L.prototype,"isRawSize",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),C=L))||C)||C));a._RF.pop()}}}));

System.register("chunks:///_virtual/Loader.ts",["cc","./EnumDefine.ts","./LogUtil.ts","./Delegate.ts","./NativeApi.ts"],(function(t){"use strict";var i,s,e,a,d,o,h;return{setters:[function(t){i=t.cclegacy,s=t.native},function(t){e=t.ELOADER_STATE,a=t.EHB_DOWNLOAD_STATE},function(t){d=t.default},function(t){o=t.Delegate},function(t){h=t.default}],execute:function(){i._RF.push({},"588d9tSVnJLR74SgXBd0QwG","Loader",void 0);class l{get state(){return this._state}constructor(){this.zipUrl=void 0,this.id=void 0,this.fileName=void 0,this.size=void 0,this._state=void 0,this.delegate=void 0,this.downloadedSize=0,this.isHotUpdate=!1,this.req=null,this.lastSize=0}init(t,...i){d.debug("loader init id:"+t.id),this.delegate=new o,this.zipUrl=t.zipUrl,this.id=t.id,d.debug("loader init, zipurl:"+this.zipUrl+",id:"+this.id),this.fileName=t.fileName,this.size=t.size,this.downloadedSize=0,this.isHotUpdate=t.isHotUpdate}ready(){this._state=e.WAITING,this.delegate.boardcast({id:this.id,state:this.state})}onDownloadMsg(t,i,o){switch(d.debug("onDownloadMsg downloadedSize :"+t+",state:"+i+",status:"+o),i){case a.REC_DATA:this._state=e.DOWNLOADING;let i=t-this.lastSize;this.lastSize=t,this.downloadedSize=t,this.delegate.boardcast({id:this.id,totalSize:this.size,loadSize:t,delta:i,state:this.state});break;case a.FINISHED:if(200==o){d.debug("下载完成"),this._state=e.FINISH,this.delegate.boardcast({id:this.id,state:this.state});let t=s.fileUtils.getWritablePath(),i=`${t}/${this.fileName}`,a=`${t}/${l.installPath}`;this._state=e.UNZIPING,this.delegate.boardcast({id:this.id,state:this.state}),h.unZipGame(this.id.toString(),i,a)}}}onDecompress(t){"suc"==t?(this._state=e.UNZIP_SUCC,this.delegate.boardcast({id:this.id,state:this.state})):(this._state=e.UNZIP_FAIL,this.delegate.boardcast({id:this.id,state:this.state}))}async startDownload(){this.size;let t=`${s.fileUtils.getWritablePath()}${this.fileName}`;d.debug("createDownload,id:"+this.id+",this.zipUrl:"+this.zipUrl),h.createDownload(this.id.toString(),this.zipUrl,t),h.startDownload(this.id.toString())}pauseDownload(){this._state==e.DOWNLOADING&&(this.delegate.boardcast({id:this.id,state:this.state}),h.downloadPause(this.zipUrl))}resumeDownload(){this._state=e.DOWNLOADING,this.delegate.boardcast({id:this.id,state:this.state}),h.downloadResume(this.zipUrl)}stopDownload(){d.debug("stopDownload,id:"+this.id),h.downloadAbort(this.id.toString()),this._state=e.STOP_DELETE,this.delegate.boardcast({id:this.id,state:this.state})}clear(){this.delegate.clear()}}t("Loader",l),l.installPath="_doc/",l.downloadsPath="_downloads/",i._RF.pop()}}}));

System.register("chunks:///_virtual/LoaderData.ts",["cc","./Global.ts","./User.ts"],(function(e){"use strict";var t,s,i;return{setters:[function(e){t=e.cclegacy},function(e){s=e.Global},function(e){i=e.User}],execute:function(){t._RF.push({},"eea198M8ZdItJ0kQgritLqC","LoaderData",void 0);class r{constructor(){this.id=-1,this.verInfo=null,this.isDiffRes=!1,this.isHotUpdate=!1}get size(){let e=this.verInfo;return this.isHotUpdate?e.subsize:e.bigsize}get zipUrl(){return this.urlPre+".zip?ver="+s.svrTimeMS/1e3}get urlPre(){return`${i.instance.updateurl}${this.namePre}${this.isHotUpdate?"_sub":""}`}get fileName(){return this.filePre+".zip"}get filePre(){return`${r.localCachePath}${this.namePre}${this.isHotUpdate?"_sub":""}`}get namePre(){return`${this.id}${this.isDiffRes?"_"+s.supportedRes:""}`}}e("LoaderData",r),r.localCachePath="_downloads/",t._RF.pop()}}}));

System.register("chunks:///_virtual/LoaderQueue.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./LogUtil.ts","./CustomEventMgr.ts"],(function(e){"use strict";var t,r,s,o,i;return{setters:[function(e){t=e.cclegacy},function(e){r=e.ELOADER_STATE},function(e){s=e.LoaderEvent},function(e){o=e.default},function(e){i=e.CustomEventMgr}],execute:function(){t._RF.push({},"281ae7PRwNMVYGWK0aPhR/L","LoaderQueue",void 0);e("LoaderQueue",class{constructor(){this.loaderArr=[],this.curloader=null,this.isInProgress=!1,this.loaderArr=[]}init(){this.loaderArr.length=0,this.isInProgress=!1}excute(){this.isInProgress||(this.isInProgress=!0,this.excuteNext())}excuteNext(){let e=this.curloader=this.loaderArr.shift();e?(e.delegate.register(this.callback,this),e.startDownload()):this.isInProgress=!1}add(e){this.loaderArr.push(e)}callback(e){switch(e.state){case r.UNZIP_SUCC:this.excuteNext();break;case r.UNZIP_FAIL:this.curloader.startDownload()}i.fire(s.ON_LOADER_STATE_CHANGE,e)}clear(){this.curloader&&(this.curloader.stopDownload(),this.curloader=null);let e=this.loaderArr,t=e.length;for(let r=0;r<t;r++)e[r].stopDownload(),e[r]=null;this.loaderArr=[],this.isInProgress=!1}remove(){}dispose(){}getLoaderByLoaderId(e){let t=null;if(this.curloader&&this.curloader.id==e)t=this.curloader;else for(let r=0;r<this.loaderArr.length;r++){let s=this.loaderArr[r];if(s.id==e){t=s;break}}return t}onDownloadMsg(e){o.debug("onDownloadMsg in mgr");let t=e.downloadedSize,r=e.id,s=e.state,i=e.status;o.debug("onDownloadMsg in mgr,id:"+r+",state:"+s+",status:"+i),o.debug("curloader:"+this.curloader),o.debug("loaderArr:"+this.loaderArr.length);let a=this.getLoaderByLoaderId(r);a&&a.onDownloadMsg(t,s,i)}onDecompress(e){let t=e.id,r=e.status,s=this.getLoaderByLoaderId(t);s&&s.onDecompress(r)}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/LoadingManager.ts",["cc","./EnumDefine.ts","./HotUpdateDefine.ts","./ResDefine.ts","./StatisticsDefine.ts","./WebMsgHandler.ts","./SdkManager.ts","./ConfigUtil.ts","./LogUtil.ts","./Logger.ts","./StatisticsManager.ts","./HttpManager.ts","./SocketManager.ts","./Singleton.ts","./UIDefined.ts","./UIManager.ts","./UIUtils.ts","./Global.ts","./Language.ts","./NetMgr.ts","./ResManager.ts","./User.ts","./NativeApi.ts","./HotUpdate.ts","./DStorage.ts","./UIDebug.ts"],(function(t){"use strict";var e,n,a,i,o,s,l,d,r,u,c,g,f,p,I,m,_,h,S,U,L,C,E,R,N,w,D,T,F,O,A,b,x,v,P,k,M;return{setters:[function(t){e=t.cclegacy,n=t.director,a=t.AudioClip,i=t.Prefab,o=t.Asset,s=t.JsonAsset,l=t.sys,d=t.instantiate},function(t){r=t.StatisticsEvent},function(t){u=t.Macro},function(t){c=t.SoundDefine,g=t.ResDefine},function(t){f=t.LoginStatistics,p=t.NetErrCode},function(t){I=t.default},function(t){m=t.default},function(t){_=t.ConfigUtil},function(t){h=t.default},function(t){S=t.LoggerImpl},function(t){U=t.StatisticsManager,L=t.eventTrig},function(t){C=t.HttpManager},function(t){E=t.default},function(t){R=t.Singleton},function(t){N=t.UIID},function(t){w=t.UIManager},function(t){D=t.default},function(t){T=t.Global,F=t.KEY_PLATFORM_ID},function(t){O=t.default},function(t){A=t.default},function(t){b=t.ResManager},function(t){x=t.User},function(t){v=t.default},function(t){P=t.default},function(t){k=t.default},function(t){M=t.UIDebug}],execute:function(){e._RF.push({},"c1078pYbR9CWrTktwFw4nwn","LoadingManager",void 0);class y extends(R()){constructor(...t){super(...t),this._loadIndex=0,this.cb=null,this.timeFunc=0,this.reqCount=0}init(){m.init()}async loadInitConfig(t){this._loadIndex=0,await this.loadGlobalConfig(),this._loadIndex++,await O.getInstance().language.initDefaultLanguage(),this._loadIndex++;let e=async()=>{l.getNetworkType()!=l.NetworkType.NONE?(this.setLoadTimeOut(1e4,e),await this.loadAppConfig(),this._loadIndex++,this.timeFunc&&clearTimeout(this.timeFunc),t&&t(),w.getInstance().closeToUI(N.UIAlert)):D.netErrorTips(null,(()=>{this.timeFunc&&clearTimeout(this.timeFunc),setTimeout((()=>{e()}),500)}))};e()}async load(t){this.cb=t,this.setLoadTimeOut(2e4),this.init(),U.getInstance().loginReport(f.loadStart),U.getInstance().setStartTime(f.loadTimes),L(r.LOADED_RES_START),await this.loadConfig(),this.loadIndex++,n.preloadScene("MainScene",(()=>{this.loadIndex++})),O.getInstance().language.loadLanguage(),b.Instance().load(u.BUNDLE_RESOURCES,c.music_home+"_"+T.language,a,(()=>{}),(()=>{this.loadIndex++})),b.Instance().load(u.BUNDLE_RESOURCES,g.UI_PREFAB_URL+"UILoginFull",i,(()=>{}),(()=>{this.loadIndex++})),b.Instance().load(u.BUNDLE_RESOURCES,g.VP_MAIN_UI_PREFAB_LOCATION,i,(()=>{}),(()=>{this.loadIndex++})),b.Instance().loadDir(u.BUNDLE_RESOURCES,g.VP_GAME_LOCATION,o,(()=>{}),(()=>{this.loadIndex++}))}set loadIndex(t){t=t>=9?9:t,this._loadIndex=t,this.cb&&this.cb(t/9),this.loadIndex>=9&&this.timeFunc&&clearTimeout(this.timeFunc),D.closeTips()}setLoadTimeOut(t,e){this.timeFunc&&clearTimeout(this.timeFunc),this.timeFunc=setTimeout((()=>{this.loadFail(e)}),t)}loadFail(t){Log.e(`load res fail! loadIndex=${this.loadIndex}`),this.reqCount=0;let e=this.loadIndex>=3?3:this.loadIndex;D.netErrorTips(p.loadFail+e,(()=>{P.getInstance().updating||(t?t():this.load(this.cb))})),L(r.LOADED_RES_FAIL)}get loadIndex(){return this._loadIndex}async loadGlobalConfig(){return new Promise(((t,e)=>{b.Instance().load(u.BUNDLE_RESOURCES,g.GLOBAL_CONFIG_LOCATION,s,(()=>{}),(e=>{let n=e.data.json;if(T.appData=n,l.isNative){let t=k.getItem(F,"");T.appPlatformId=""!==t?t:n.appPlatformId,k.setItem(F,T.appPlatformId)}else T.appPlatformId=n.appPlatformId;T.debug="false"!==n.debug,l.isBrowser&&(T.appVersion=n.version),S.getInstance().init(T.debug),this.addDebugView(),h.init(T.debug),t(null)}))}))}async loadConfig(){return new Promise((t=>{b.Instance().load(u.BUNDLE_RESOURCES,g.CONFIG_LOCATION,s,(()=>{}),(e=>{let n=e.data.json;_.init(n),t(null)}))}))}async loadAppConfig(){return new Promise(((t,e)=>{let n=this.getGameConfigName(),a=v.getStringFromFile(n),i=t=>{T.httpSvr="https://"+t.domain.game,T.wssSvr=`${T.httpSvr.replace(/(https|http)(?=:\/\/)/,"wss")}/game_v2`,T.cdn="https://"+t.domain.cdn;let e=t.ios,n=e.ios_jump_link.shelf&&e.ios_jump_link.shelf.url,a=e.ios_jump_link.super&&e.ios_jump_link.super.url;n||a?(T.iosUrl1=n,T.iosUrl2=a):(T.iosUrl1=e.ios_download_link.ios_download_link1,T.iosUrl2=e.ios_download_link.ios_download_link2);let i=`${T.cdn}/appupdate/${T.appPlatformId}/cocosUrl.json`;T.hotUpdateUrl=i,t.an_download_link&&t.an_download_link.an_download_link1?T.androidUrl=t.an_download_link.an_download_link1:T.androidUrl=`${T.cdn}/appupdate/${T.appPlatformId}/${T.appPlatformId}_android.apk`,E.getInstance().url=T.wssSvr,C.httpAddress=T.httpSvr,A.Instance().setLoginNetAddr(T.wssSvr),U.getInstance().loginReport(f.appStart),U.getInstance().setStartTime(f.enterGameTimes)},o=e=>{var o={};""!=x.instance.account&&(o={channel_id:T.appPlatformId,account:x.instance.account,is_vest:0}),Log.d(`====initReqSucc====${JSON.stringify(e)}====`),I.sendGet(e[T.appPlatformId]+"/api/game/getconfig",o,(e=>{2e4==e.code?(e=e.data,l.isNative&&v.writeStringToFile(JSON.stringify(e),n),a||(i(e),t(null))):(Log.d("getconfig error, reget again"),this.reqCount++<10&&this.loadAppConfig())}),(()=>{Log.d("getconfig failed, reget again"),this.reqCount++<10&&this.loadAppConfig()}),this)};a&&(i(JSON.parse(a)),t(null)),(()=>{let t=Date.now();var e=T.urlArr[1]+`/${T.appPlatformId}.json?t=${t}`,n=T.urlArr[0]+`/${T.appPlatformId}.json?t=${t}`;Log.d("url1,"+e+";url2,"+n),b.Instance().loadRemoteJson(e,(t=>{Log.d("loadRemoteJson,data1:"+t),t&&""!==t?o(t.json):b.Instance().loadRemoteJson(n,(t=>{Log.d("loadRemoteJson,data2:"+t),t&&""!==t&&o(t.json)}))}))})()}))}getGameConfigName(){return"game_config_"+T.appPlatformId+".json"}removeGameConfigFile(){let t=this.getGameConfigName();v.removeFile(t)}addDebugView(){T.debug&&l.isNative&&!M.instance&&b.Instance().load(u.BUNDLE_RESOURCES,"prefabs/ui/UIDebug",i,(()=>{}),(t=>{let e=d(t.data).getComponent(M);w.getInstance().uiLayer.node.addChild(e.node),e.node.zIndex=99999}))}}t("LoadingManager",y),e._RF.pop()}}}));

System.register("chunks:///_virtual/LoadingScene.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIManager.ts","./Global.ts","./GameManager.ts"],(function(e){"use strict";var t,i,s,n,a,r,o,c,l,u,d,p,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Node,a=e.Prefab,r=e.Asset,o=e._decorator,c=e.Component,l=e.director,u=e.instantiate},function(e){d=e.UIManager},function(e){p=e.Global},function(e){g=e.GameManager}],execute:function(){var y,f,h,b,L,N,m,w,C;s._RF.push({},"950874wiKpOF4AQM+Rop1gG","LoadingScene",void 0);const{ccclass:I,property:M}=o;e("LoadingScene",(y=I("LoadingScene"),f=M({displayName:"psersistantNode",type:n}),h=M(a),b=M({displayName:"wssCacert",type:r}),y((m=t((N=class extends c{constructor(...e){super(...e),i(this,"psersistantNode",m,this),i(this,"uiLayer",w,this),i(this,"wssCacert",C,this)}onLoad(){this.addUILayer(),p.loadingScene=this,l.addPersistRootNode(this.psersistantNode),p.psersistantNode=this.psersistantNode,g.getInstance().init()}addUILayer(){if(!d.getInstance().uiLayer){let e=u(this.uiLayer);l.addPersistRootNode(e)}}start(){p.wssCacert=this.wssCacert}}).prototype,"psersistantNode",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(N.prototype,"uiLayer",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(N.prototype,"wssCacert",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=N))||L));s._RF.pop()}}}));

System.register("chunks:///_virtual/Logger.ts",["cc","./Singleton.ts"],(function(e){"use strict";var n,t,o;return{setters:[function(e){n=e.cclegacy,t=e.sys},function(e){o=e.Singleton}],execute:function(){function r(){return(new Date).toLocaleString()}n._RF.push({},"46b676EOd5FEYldf9zG5uVp","Logger",void 0),window.Log=console,window.Log.e=(...e)=>{console.error(`${r()}：`,...e)},window.Log.d=(...e)=>{console.log(`${r()}：`,...e)},window.Log.w=(...e)=>{console.warn(`${r()}：`,...e)},window.Log.dump=()=>{};class i extends(o()){constructor(...e){super(...e),this.logger=console,this._isDebug=!1}init(e){this._isDebug=e,this._isDebug||t.isBrowser?(this.logger.d=Log.d,this.logger.dump=this.dump.bind(this)):(this.logger.d=()=>{},this.logger.dump=()=>{}),this.logger.e=Log.e,this.logger.w=Log.w}dump(){let e=this._dump(arguments[0],arguments[1],arguments[2],arguments[4]);this.logger.d(e)}_dump(e,n="unkown",t=3,o=0){if(t<0)return"...";o+=3;let r=this;n=void 0===n?"":n;let i="",s="";switch(typeof e){case"boolean":s=n.length>0?n+" = ":"",i+=s+("Boolean(1) "+(e?"TRUE":"FALSE"));break;case"number":s=n.length>0?n+" = ":"",i+=s+e;break;case"string":s=n.length>0?n+" = ":"",i+=s+function(e){return'"'+e+'"'}(e);break;case"object":s=n.length>0?n+" => ":"",i+=s+function(e){if(null===e)return"NULL(0)";let n="",i=0,s="";if(e instanceof Array){i=e.length;for(let e=0;e<o;++e)s+=" ";n="Array("+i+") "+(s.length,"[");for(let g=0;g<i;++g)n+="\n"+(0===s.length?"":""+s)+"   ["+g+"] = "+r._dump(e[g],"",t-1,o);return n+="\n"+(0===s.length?"":""+s)+"]",n}if(e instanceof Object){for(let e=0;e<o;++e)s+=" ";n="{";for(let i in e)n+="\n"+(0===s.length?"":""+s)+"   ["+i+"] = "+r._dump(e[i],"",t-1,o);return n+="\n"+(0===s.length?"":""+s)+"}",n}return"Unknown Object Type!"}(e);break;case"function":s=n.length>0?n+" = ":"",i+=s+"Function";break;case"undefined":s=n.length>0?n+" = ":"",i+=s+"Undefined";break;default:i+=s+" is unknown type!"}return i}}e("LoggerImpl",i),n._RF.pop()}}}));

System.register("chunks:///_virtual/LoginManager.ts",["cc","./EventDefine.ts","./ProtDefine.ts","./Eventer.ts","./SocketBase.ts","./SocketManager.ts","./Singleton.ts","./UIDefined.ts","./UIManager.ts","./UIUtils.ts","./Global.ts","./CustomEventMgr.ts","./MsgHandler.ts","./User.ts"],(function(t){"use strict";var e,n,s,o,i,c,r,a,g,u,l,f,I,d;return{setters:[function(t){e=t.cclegacy},function(t){n=t.EventType},function(t){s=t.Protocol},function(t){o=t.Eventer},function(t){i=t.SocketEvent},function(t){c=t.default},function(t){r=t.Singleton},function(t){a=t.UIID},function(t){g=t.UIManager},function(t){u=t.default},function(t){l=t.Global},function(t){f=t.CustomEventMgr},function(t){I=t.default},function(t){d=t.User}],execute:function(){e._RF.push({},"4d4a7cqwulKyq4V1Rtn2LfO","LoginManager",void 0);class p extends(r()){constructor(...t){super(...t),this.isFirstLogin=!1}init(){o.getInstance().on(i.Open,this.socketOpen.bind(this)),o.getInstance().on(i.ReLogin,this.connectSoket.bind(this))}socketOpen(){u.hideLoading(),this.sendLoginMsg(),this.isFirstLogin=!0}connectSoket(){c.getInstance().init(null,null,{cHeartBeatCode:s.Heart,sHeartBeatCode:s.Heart,logFilterCodes:[s.Heart,s.GameBonus,s.GetBonus]})}sendLoginMsg(){if(this.isFirstLogin)return;I.Instance().c2sGetNotice();let t=l.getToken();t?I.Instance().c2sCheckToken(t):I.Instance().c2sregistertype(1)}stopSvr(t,e){let s=!!g.getInstance().getUI(a.UILoginFull),o=!1;d.instance.stopServerInfo&&d.instance.stopServerInfo.starttime&&d.instance.stopServerInfo.starttime<=l.svrTimeMS/1e3&&(o=!0);let i=()=>{let e={content:t,okFunc:()=>{l.gameCtrl.LogOut()},singleBtn:!0};g.getInstance().open(a.UIAlert,e)},c=()=>{let e={type:1,content:t};f.fire(n.OnAddNotice,e)};e?i():s?c():o?i():c()}}t("LoginManager",p),e._RF.pop()}}}));

System.register("chunks:///_virtual/LoginState.ts",["cc"],(function(e){"use strict";var n;return{setters:[function(e){n=e.cclegacy}],execute:function(){let t,c;e({LoginAction:void 0,LoginState:void 0}),n._RF.push({},"d248ffLbexDSIm2+8irRKTN","LoginState",void 0),function(e){e.preLogin="preLogin",e.reqServer="reqServer",e.reqAuth="reqAuth",e.connectSocket="connectSocket",e.auth="auth",e.reqLogin="reqLogin",e.loginLoading="loginLoading",e.mainScene="mainScene",e.selectGender="selectGender"}(t||(t=e("LoginState",{}))),function(e){e.success="success",e.fail="fail",e.connected="connected"}(c||(c=e("LoginAction",{}))),n._RF.pop()}}}));

System.register("chunks:///_virtual/LogUtil.ts",["cc"],(function(e){"use strict";var o,t;return{setters:[function(e){o=e.sys,t=e.cclegacy}],execute:function(){let s;e("LogLevel",void 0),t._RF.push({},"81756D3n7NEJ4eqPp10KxyN","LogUtil",void 0),function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(s||(s=e("LogLevel",{})));class l{static init(e){this.logLevel=e?s.DEBUG:s.WARN}static log(e,...t){this.logLevel>s.DEBUG&&!o.isBrowser||console.log("GAMELOG: "+e,...t)}static debug(e,...t){this.logLevel>s.DEBUG&&!o.isBrowser||console.log("GAMEDEBUG: "+e,...t)}static info(e,...o){this.logLevel>s.INFO||console.log("GAMEINFO: "+e,...o)}static warn(e,...o){this.logLevel>s.WARN||console.warn("GAMEWARN: "+e,...o)}static error(e,...o){this.logLevel>s.ERROR||console.error("GAMEERROR: "+e,...o)}}e("default",l),l.logLevel=s.DEBUG,t._RF.pop()}}}));

System.register("chunks:///_virtual/LuckDrawModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./GameUtil.ts","./NumberUtil.ts","./Controller.ts","./Global.ts","./CustomEventMgr.ts","./RewardData.ts"],(function(t){"use strict";var e,i,s,r,o,a,n,d,h;return{setters:[function(t){e=t.cclegacy},function(t){i=t.LuckDrawEvent},function(t){s=t.EventType},function(t){r=t.GameUtils},function(t){o=t.default},function(t){a=t.Controller},function(t){n=t.Global},function(t){d=t.CustomEventMgr},function(t){h=t.RewardData}],execute:function(){e._RF.push({},"ec4051gi4JFaLyH7UCiAuXp","LuckDrawModel",void 0);t("LuckDrawModel",class extends a{constructor(){super(),this.goodsList=void 0,this.awardList=void 0,this.NUM=6,this.MAX_NUM=2,this.selectIdx=void 0,this.luckDrawInfo=void 0,this.MAX_LV=5,this.goodsListSort=void 0}init(t,e){this.goodsList=t,t&&t.sort(((t,e)=>t.level-e.level)),this.luckDrawInfo=e,this.goodsListSort=this.goodsList,this.awardList?this.awardList.length=0:this.awardList=[],t.length>0&&this.randomGoods(),d.fire(s.AwardInfo)}set setSelectIdx(t){this.selectIdx=t}get luckActivityInfo(){return this.luckDrawInfo}get rewardArr(){return this.awardList}get ListSort(){return this.goodsListSort}randomGoods(){let t=[].concat(this.goodsList),e={},i=this.awardList,s=this.counterTotalWeights(t);for(let r=0;r<this.NUM;r++){let r=this.getRandByWeigh(t,s),o=t[r],a=new h;a.id=o.id,a.icon=o.bigimg,a.name=o.name,a.lv=o.level,i.push(a),e[o.id]=e[o.id]?e[o.id]+1:1,e[o.id]>=this.MAX_NUM&&(t.splice(r,1),s-=o.dis_weight,t.length||(e={},t=[].concat(this.goodsList),s=this.counterTotalWeights(t)))}}counterTotalWeights(t){let e=t.length,i=0;for(;e--;)i+=t[e].dis_weight>>0;return i}getRandByWeigh(t,e){let i;for(let s=0,r=t.length;s<r;s++){let r=t[s],a=o.randomintM(0,e),n=r.dis_weight>>0;if(a<=n){i=s;break}e-=n}return i}get isDrawAwardOpen(){let t=this.luckDrawInfo;if(t&&1==t.is_open){let e=n.svrTimeMS/1e3>>0;return e>Number(t.start_time)&&e<Number(t.close_time)}return!1}get activeTime(){let t=this.luckActivityInfo;if(t){return r.formatDateByTime(1e3*t.start_time)+"-"+r.formatDateByTime(1e3*t.end_time)}return""}get rawardNameList(){let t=[],e=this.goodsList;for(let i=1;i<=this.MAX_LV;i++){let s=[];for(let t=0,r=e.length;t<r;t++)e[t].level==i&&s.push(e[t].name);t.push(s)}return t}s2cSvrData(t){t.exp?d.fire(i.RECEIVE_FAIL):(this.setReward(t),this.showReward(),d.fire(s.GetTreasureChest))}setReward(t){let e=this.awardList[this.selectIdx];e.isAwd=!0,t?(e.id=t.award_id,e.icon=t.bigimg,e.name=t.award_name,e.isRcv=!0):(e.icon="img_thankYou_jpg",e.name="Thank You",e.isRcv=!1)}showReward(){this.awardList.forEach((t=>{t.isShow=!0}),this)}getRewardData(){return this.awardList[this.selectIdx]}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/LuckDrawRanking.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageLabel.ts","./GameUtil.ts","./User.ts"],(function(e){"use strict";var t,i,n,o,a,r,c,s,l,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Node,a=e.Label,r=e._decorator,c=e.Component},function(e){s=e.LanguageLabel},function(e){l=e.GameUtils},function(e){u=e.User}],execute:function(){var f,_,h,m,p,g,b,d,y,w,v,L,k,z,D,R,x,U,C,N,T;n._RF.push({},"4799ds6hJxLDIcANSj58CVo","LuckDrawRanking",void 0);const{ccclass:j,property:B}=r;e("LuckDrawRanking",(f=j("LuckDrawRanking"),_=B({displayName:"背景",type:o}),h=B({displayName:"信息",type:o}),m=B(a),p=B(a),g=B(a),b=B(a),d=B(a),y=B(a),w=B(o),f((k=t((L=class extends c{constructor(...e){super(...e),i(this,"bg_type",k,this),i(this,"info_type",z,this),i(this,"info_one_name",D,this),i(this,"info_one_time",R,this),i(this,"info_one_account",x,this),i(this,"info_two_name",U,this),i(this,"info_two_time",C,this),i(this,"info_two_account",N,this),i(this,"bg",T,this),this.index=0}start(){}initRanking(e,t,i){if(!(t.mode.length<e||e<1))if(0==i){this.index=e,this.bg[0].active=e%2!=0,this.bg[1].active=e%2==0,this.info_type[0].active=!0,this.info_type[1].active=!1,--e,this.info_one_name.string=t.mode[e].award_name.name;let i=this.changeTime(t.mode[e].receive_time);this.info_one_time.string=i;let n=t.mode[e].account;n==u.instance.account?this.info_one_account.string=n:this.info_one_account.string=this.replaceUid(n)}else{this.index=e,this.bg[0].active=e%2!=0,this.bg[1].active=e%2==0,this.info_type[1].active=!0,this.info_type[0].active=!1,--e,this.info_two_name.string=t.mode[e].award_name.name;let i=this.changeTime(t.mode[e].receive_time);this.info_two_time.string=i;let n=150017;switch(t.mode[e].status){case"3":case"4":n=150013}this.info_two_account.getComponent(s).enabled=!0,this.info_two_account.addComponent(s).dataID=n}}replaceUid(e,t=4,i=7){let n="";if(i=e.length<i?e.length:i,e){let o=e.slice(0,t),a=e.slice(i),r=i-t;r=r>0?r:0;let c="";for(let e=0;e<r;e++)c+="*";n=o+c+a}return n}changeTime(e){return l.formatDateByTime(1e3*e)}}).prototype,"bg_type",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z=t(L.prototype,"info_type",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=t(L.prototype,"info_one_name",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(L.prototype,"info_one_time",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(L.prototype,"info_one_account",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(L.prototype,"info_two_name",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(L.prototype,"info_two_time",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(L.prototype,"info_two_account",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(L.prototype,"bg",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=L))||v));n._RF.pop()}}}));

System.register("chunks:///_virtual/LuckyDrawBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./LanguageLabel.ts"],(function(e){"use strict";var t,n,r,a,c,u,i;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){r=e.cclegacy,a=e._decorator,c=e.Component},function(e){u=e.ELanguage_Type},function(e){i=e.LanguageLabel}],execute:function(){var s,o,l,p,y;r._RF.push({},"abd6cDbH01IlaWg5NOZ+BWn","LuckyDrawBtn",void 0);const{ccclass:g,property:d}=a;e("LuckyDrawBtn",(s=g("LuckyDrawBtn"),o=d({displayName:"描述",type:i}),s((y=t((p=class extends c{constructor(...e){super(...e),n(this,"dec",y,this)}start(){let e=[u.CN,u.EN];this.dec.setLanguageTypeArr(e)}onEnable(){}onDisable(){}update(e){}}).prototype,"dec",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));r._RF.pop()}}}));

System.register("chunks:///_virtual/LuckyNumberModel.ts",["cc","./Controller.ts","./Global.ts","./CustomEventMgr.ts"],(function(t){"use strict";var e,i,s,a,n;return{setters:[function(t){e=t.cclegacy,i=t._decorator},function(t){s=t.Controller},function(t){a=t.Global},function(t){n=t.CustomEventMgr}],execute:function(){var r;t({ActiveStatus:void 0,LN_ReceiveStatus:void 0,LN_ReceiveType:void 0}),e._RF.push({},"b2ddfvA/WRD8b2en93ZeSec","LuckyNumberModel",void 0);const{ccclass:d}=i;let u,c,h;t("LuckyNumberModel",d("LuckyNumberModel")(r=class extends s{constructor(...t){super(...t),this.issue_id=null,this.LNData=new o,this.rankData=new l,this.awardList=[],this.numberReceiveStatus=null,this.rankReceiveStatus=null,this._activeStatus=null,this.myWins=[],this.allWins=[],this.allWinsName=[]}s2cLuckyNumberActivity(t){if(t.succ){let e=t.mode;if(e&&e.settingdisp&&e.settingdisp.status||(this.LNData.setShowTime(t),this.LNData.status=0),e.setting){this.issue_id=t.mode.setting.issue_id,this.LNData.init(t),this.rankData.init(t),this.awardList.length=0;let e=t.mode.award;for(let t in e){let i=e[t],s={award_level:i.award_id,award_num:i.award_num,award:i.award};this.awardList.push(s)}this.awardList.sort(((t,e)=>t.award_level-e.award_level)),this.activeStatus==u.notStarted?EventCenter.sendMsg(LuckyNumberEvent.GET_LUCKY_NUMBER_ACTIVITY_DATA):LobbyMsgCtr.c2sLuckyNumberRunALottery()}}else this.LNData.status=0;EventCenter.sendMsg(LuckyNumberEvent.GET_LUCKY_NUMBER_IS_OPEN)}s2cLuckyNumberRunALottery(t){if(t.succ){let e=t.mode;if(!e)return;if(this.issue_id=e.issue_id,e.is_runlot)LobbyMsgCtr.c2sLuckyNumberActivity(),SceneManager.openView(LuckyNumberRunALotteryView);else{this.numberReceiveStatus=e.is_win,this.rankReceiveStatus=e.is_win_rank,this.allWins=[],this.allWinsName=[];let t=e.winAll;for(let e in t){let i=t[e],s=[],a=[];for(let t in i){let n=i[t],r={level:Number(e),code:t,user:n};this.allWins.push(r),s.push(n),a.push(t)}let n={level:Number(e),users:s,codes:a};this.allWinsName.push(n)}this.myWins=[];let i=[0,0,0,0],s=["","","",""],a=e.winCodeToAwardId;for(let t=0;t<a.length;t++){let e=a[t];switch(Number(e.id)){case 1:i[0]+=e.award,s[0]+=e.code+",";break;case 2:i[1]+=e.award,s[1]+=e.code+",";break;case 3:i[2]+=e.award,s[2]+=e.code+",";break;case 4:i[3]+=e.award,s[3]+=e.code+","}}for(let t=0;t<i.length;t++)if(i[t]>0){let e={level:t+1,codes:s[t].slice(0,-1),award:i[t]};this.myWins.push(e)}}n.fire(LuckyNumberEvent.GET_LUCKY_NUMBER_WIN_DATA)}}s2cLuckyNumberReceive(t){if(t.succ){let e=t.mode&&t.mode.active_type;e==h.Number?SceneManager.openView(LuckyNumberBigWinView):e==h.Rank&&SceneManager.openView(LuckyNumberWinView,e),LobbyMsgCtr.c2sgetmoney()}else Tips.showi18n(110023),LobbyMsgCtr.c2sLuckyNumberActivity()}get isOpenLuckyNumber(){let t=this.LNData,e=a.svrTimeMS;return t.status&&t.disp_start<e&&e<t.disp_end}get isOpenRank(){let t=this.rankData,e=a.svrTimeMS;return t.status&&t.disp_start<e&&e<t.disp_end}get isRunALottery(){let t=this.LNData,e=a.svrTimeMS;return t.active_end<e&&e<t.recv_end&&this._activeStatus==u.notStarted}get activeStatus(){let t=this.LNData,e=a.svrTimeMS;if(e<t.active_end&&(this.numberReceiveStatus=c.undefined,this.rankReceiveStatus=c.undefined),t.active_end<e&&e<t.recv_end){let t=this.numberReceiveStatus;t==c.LosingLottery||t==c.undefined?this._activeStatus=u.notWin:this._activeStatus=u.win}else this._activeStatus=u.notStarted;return this._activeStatus}get remainingTime(){let t=this.LNData,e=a.svrTimeMS,i=(t.active_end-e)/1e3>>0;return t.active_start>e&&(i=(t.active_start-e)/1e3>>0),i>0?TaskView.formatRemainTime(i):"00:00:00"}})||r);class o{constructor(){this.issue_id=void 0,this.bet_volume=void 0,this.maximum=void 0,this.active_start=void 0,this.active_end=void 0,this.recv_end=void 0,this.game_type=void 0,this.status=0,this.disp_start=void 0,this.disp_end=void 0,this.total=void 0,this.mybet=void 0,this.needbet=void 0,this.mine=void 0,this.num=void 0,this.time=void 0}init(t){let e=t.mode,i=e.setting;this.issue_id=i.issue_id,this.bet_volume=i.bet_volume,this.maximum=i.maximum,this.active_start=1e3*i.active_start,this.active_end=1e3*i.active_end,this.recv_end=1e3*i.recv_end,this.game_type=i.game_type;let s=e.settingdisp;this.status=s.status>>0?1:0,this.disp_start=e.settingdisp?1e3*s.disp_start:0,this.disp_end=e.settingdisp?1e3*s.disp_end:0,this.total=e.total,this.mine=e.mine?e.mine:[],this.mybet=this.mine.length==i.maximum?e.needbet:e.mybet,this.needbet=e.needbet,this.num=e.num,this.time=e.time+""}setShowTime(t){let e=t.mode,i=e.settingdisp;this.status=i.status>>0?1:0,this.disp_start=e.settingdisp?1e3*i.disp_start:0,this.disp_end=e.settingdisp?1e3*i.disp_end:0}}t("LNData",o);class l{constructor(){this.up_cyc=void 0,this.award1=void 0,this.award2=void 0,this.award3=void 0,this.rank_num=void 0,this.disp_start=void 0,this.disp_end=void 0,this.status=0,this.rankLists=void 0}init(t){let e=t.mode,i=e.ranksetting;if(!i)return void(this.status=0);this.up_cyc=i.up_cyc,this.award1=i.award1,this.award2=i.award2,this.award3=i.award3,this.rank_num=i.rank_num,this.disp_start=1e3*i.disp_start,this.disp_end=1e3*i.disp_end,this.status=i.status>>0?1:0,this.rankLists=[];let s=e.rank,a=1;for(let t in s){let e={rank:a,user:t,num:s[t],reward:a<4?this["award"+a]:null};a++,this.rankLists.push(e)}if(0==this.rankLists.length)for(let t=0;t<3;t++){let e={rank:t+1,user:"NO."+(t+1),num:3-t,reward:this["award"+(t+1)]};this.rankLists.push(e)}}get myRankData(){let t=User.instance.userName;for(let e=0;e<this.rankLists.length;e++){let i=this.rankLists[e];if(i.user==t)return i}return null}}t("LNRankData",l),function(t){t[t.notStarted=0]="notStarted",t[t.notWin=1]="notWin",t[t.win=2]="win"}(u||(u=t("ActiveStatus",{}))),function(t){t[t.LosingLottery=1]="LosingLottery",t[t.Unclaimed=2]="Unclaimed",t[t.Received=3]="Received",t[t[void 0]=4]="undefined"}(c||(c=t("LN_ReceiveStatus",{}))),function(t){t[t.Number=1]="Number",t[t.Rank=2]="Rank"}(h||(h=t("LN_ReceiveType",{}))),e._RF.pop()}}}));

System.register("chunks:///_virtual/main",["./Command.ts","./DelegateCommand.ts","./ICommand.ts","./AutoAdaptSprite.ts","./DrawingBoard.ts","./DropDownList.ts","./DropDownList2.ts","./Img.ts","./PButton.ts","./PEditBox.ts","./PMask.ts","./PMaskSlider.ts","./PRichText.ts","./PSlider.ts","./Tips.ts","./EnumDefine.ts","./EventDefine.ts","./GameEvent.ts","./HotUpdateDefine.ts","./ProtDefine.ts","./ResDefine.ts","./StatisticsDefine.ts","./StructDefine.ts","./LoginState.ts","./NetSocket.ts","./HttpMgr.ts","./HttpReqPack.ts","./HttpRespPack.ts","./NetHttp.ts","./WebMsgHandler.ts","./NativeApi.ts","./PlatformApi.ts","./SdkManager.ts","./WebApi.ts","./Dictionary.ts","./QRCode.ts","./md5.ts","./AnimationUtil.ts","./ArrayUtil.ts","./CCUtils.ts","./ConfigUtil.ts","./GameUtil.ts","./GeomitryUtil.ts","./LogUtil.ts","./NumberUtil.ts","./ProtoUtil.ts","./ResUtil.ts","./ResolutionUtil.ts","./StorageUtil.ts","./StringUtil.ts","./TimeUtil.ts","./DStorage.ts","./Eventer.ts","./Events.ts","./FunctionList.ts","./Logger.ts","./Singleton.ts","./HallDefind.ts","./Resource.ts","./ResourceLoader.ts","./DataCenter.ts","./GameData2.ts","./Entry.ts","./EntryDelegate.ts","./EntryManager.ts","./Language.ts","./LanguageLabel.ts","./LanguageSprite.ts","./AudioManager.ts","./BundleManager.ts","./CacheManager.ts","./ReleaseManager.ts","./ResManager.ts","./ResourceManager.ts","./HttpBase.ts","./HttpManager.ts","./HttpReq.ts","./NetAdaptor.ts","./SocketBase.ts","./SocketManager.ts","./TencentSocket.ts","./WebSock.ts","./UIAdapter.ts","./UIDefined.ts","./UILayer.ts","./UIManager.ts","./UIMask.ts","./UIUtils.ts","./UIView.ts","./UIButton.ts","./UIButtonState.ts","./UIMaskSlider.ts","./UIMask_I.ts","./UIPasswordInputText.ts","./UIProgressBar.ts","./super-layout.ts","./super-scrollview.ts","./HotUpdate.ts","./HotUpdateManager.ts","./IHotUpdate.ts","./CountDown.ts","./DateUtil.ts","./EffectsUtil.ts","./JssmEx.ts","./HotUpdateView.ts","./LoadingManager.ts","./LoadingScene.ts","./LoginManager.ts","./UILoadingMain.ts","./zh.ts","./Controller.ts","./CtrlBase.ts","./Delegate.ts","./GameCtrl.ts","./Global.ts","./IController.ts","./IDispose.ts","./Loader.ts","./LoaderQueue.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./GameDownloadMgr.ts","./GameManager.ts","./NetMgr.ts","./StatisticsManager.ts","./WithDrawCtrl.ts","./ActivityModel.ts","./EmailModel.ts","./GameData.ts","./GameModel.ts","./HeadModel.ts","./LoaderData.ts","./LuckDrawModel.ts","./LuckyNumberModel.ts","./MainModel.ts","./RaffleTicketModel.ts","./RankModel.ts","./RechargeModel.ts","./RegisterModel.ts","./RewardData.ts","./STDLanguage.ts","./ShareModel.ts","./SignAwdModel.ts","./SurveyModel.ts","./SvrData.ts","./TaskData.ts","./TaskModel.ts","./User.ts","./AccountInfoConfig.ts","./BankAccountInfoConfig.ts","./ChannelLangConfig.ts","./CountryConfig.ts","./GameNameConfig.ts","./ID4BankListConfig.ts","./IDBankListConfig.ts","./LanguageConfig.ts","./ProvinceConfig.ts","./Q21GameNameListConfig.ts","./RechargeInfoConfig.ts","./SoundConfig.ts","./UMGameNameListConfig.ts","./USABankListConfig.ts","./VI13BankListConfig.ts","./VI14BankListConfig.ts","./VI17BankListConfig.ts","./VI7BankListConfig.ts","./VIBankListConfig.ts","./VPGameNameListConfig.ts","./WayConfig.ts","./XGGameNameListConfig.ts","./CheckActivityCMD.ts","./CheckBoxCMD.ts","./CheckConvertAPPCMD.ts","./CheckEditPassCMD.ts","./CheckLuckyNumberCMD.ts","./CheckRedpackCMD.ts","./CheckSignAwdCMD.ts","./CheckTaskCMD.ts","./CommonHttp.ts","./ShareHttp.ts","./MsgHandler.ts","./RedpacketModel.ts","./Child.ts","./Child2.ts","./GameTestCode.ts","./GameTestCode2.ts","./NetTest.ts","./TestScene.ts","./UIDebug.ts","./AdPageView.ts","./GameIcon.ts","./GameIconBg.ts","./GameIconBtn.ts","./MainUi.ts","./MainBalance.ts","./MainBottomBtns.ts","./MainGameKidns.ts","./MainSafe.ts","./NoticeView.ts","./DownloadBtn.ts","./LuckyDrawBtn.ts","./RaffleticketBtn.ts","./RankBtn.ts","./RechargeBtn.ts","./SatisfyBtn.ts","./SignAwardBtn.ts","./TaskBtn.ts","./QrCodeItem.ts","./UIActivity.ts","./ActivityPageItem.ts","./UIAddBank.ts","./UIAddBankContent.ts","./UIAlert.ts","./UIAniLayer.ts","./UICoinAni.ts","./UIErrorAlert.ts","./UIGetReward.ts","./UILanguage.ts","./UILoadingView.ts","./UILogin.ts","./UILoginFull.ts","./UILuckyDraw.ts","./UILuckyDrawAwardList.ts","./UILuckyDrawChoose.ts","./UIModify.ts","./UINotice.ts","./UIProfile.ts","./ProfileMsgDetail.ts","./UIQRCode.ts","./UIQuickTask.ts","./UIRaffleTicket.ts","./RaffMyDrawCell.ts","./RaffleChangePoint.ts","./RaffleDrawListCell.ts","./RaffleDrawScrollView.ts","./RaffleTicketScrollView.ts","./UIRaffleTicketHistory.ts","./UIRanking.ts","./UIRedpacket.ts","./UIRegister.ts","./UIRegisterFull.ts","./UISatisfy.ts","./UITask.ts","./UITopUpRecordItem.ts","./UITurnTable.ts","./UIWithDraw.ts","./UIWithDrawRecord.ts","./BigAdPageViewItem.ts","./ChangeAvatarHeadItem.ts","./EmailItem.ts","./LuckDrawRanking.ts","./NoticeItem.ts","./RankingItem.ts","./RedpacketGiftItem.ts","./TaskCoin.ts","./TaskHelpInfo.ts","./TaskItem.ts","./TaskProgressInfo.ts","./TaskRecordInfo.ts","./TaskRewardInfo.ts","./TaskWaitingInfo.ts","./UISafeBox.ts","./RechargeBtnItem.ts","./RechargeBuyType.ts","./RechargeEPay.ts","./RechargeElectric.ts","./UIRecharge.ts","./UIRechargeAgent.ts","./UIRechargeBank.ts","./UIRechargeRecord.ts","./UIRechargeRecordItem.ts","./BigTurnTable.ts","./TaskGiftBox.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,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/MainBalance.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var a,t,n,i,o,r;return{setters:[function(e){a=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,i=e.Label,o=e._decorator,r=e.Component}],execute:function(){var c,l,s,u,p;n._RF.push({},"ab9c8u0+4NBar88YW8AF0bb","MainBalance",void 0);const{ccclass:b,property:d}=o;e("MainBalance",(c=b("MainBalance"),l=d({displayName:"amount label",type:i}),c((p=a((u=class extends r{constructor(...e){super(...e),t(this,"amountLabel",p,this)}start(){}onEnable(){this.amountLabel.node.active=!0}onDisable(){this.amountLabel.node.active=!1}update(e){}}).prototype,"amountLabel",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=u))||s));n._RF.pop()}}}));

System.register("chunks:///_virtual/MainBottomBtns.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,n,i,o,r,s,h,l,a,c,g,m;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Node,r=t._decorator,s=t.Component,h=t.NodeEventType,l=t.v3,a=t.UITransform,c=t.Widget,g=t.Size,m=t.Layout}],execute:function(){var p,u,d,f,B,b,P;i._RF.push({},"d936fn12ihBZ5gKSgML0Apo","MainBottomBtns",void 0);const{ccclass:v,property:C}=r;t("MainBottomBtns",(p=v("MainBottomBtns"),u=C({displayName:"下方左侧按钮父节点",type:o}),d=C({displayName:"下方右侧按钮父节点",type:o}),p((b=e((B=class extends s{constructor(...t){super(...t),n(this,"bottomLeftBtnsParent",b,this),n(this,"bottomRightBtnsParent",P,this)}start(){this.node.on(h.SIZE_CHANGED,this._sizeChange,this)}_sizeChange(){this.refresh()}refresh(){let t=this.getLeftActiveChildrens(),e=this.getRightActiveChildrens();if(e.length>=3&&0==t.length){let t=e[0];t.removeFromParent(),this.bottomLeftBtnsParent.addChild(t),t.setPosition(l(0,55,0))}else if(e.length<=1&&t.length>0){let e=t[0];e.removeFromParent(),this.bottomRightBtnsParent.addChild(e)}let n=this.node.getComponent(a).width-this.bottomRightBtnsParent.getComponent(c).left,i=new g(n/4,this.bottomRightBtnsParent.getComponent(m).cellSize.height);this.bottomRightBtnsParent.getComponent(m).cellSize=i}getLeftActiveChildrens(){let t=this.bottomLeftBtnsParent.children,e=[];for(let n=0;n<t.length;n++)1==t[n].active&&e.push(t[n]);return e}getRightActiveChildrens(){let t=this.bottomRightBtnsParent.children,e=[];for(let n=0;n<t.length;n++)1==t[n].active&&e.push(t[n]);return e}update(t){}}).prototype,"bottomLeftBtnsParent",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(B.prototype,"bottomRightBtnsParent",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=B))||f));i._RF.pop()}}}));

System.register("chunks:///_virtual/MainGameKidns.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var i,t,s,n,a,o;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.Node,a=e._decorator,o=e.Component}],execute:function(){var r,c,l,d,u,p,h;s._RF.push({},"c3817zz5ndKRLU/pooNBBB5","MainGameKidns",void 0);const{ccclass:m,property:g}=a;e("MainGameKidns",(r=m("MainGameKidns"),c=g({displayName:"game kinds switch btns node",type:n}),l=g({displayName:"game kinds switch labels node",type:n}),r((p=i((u=class extends o{constructor(...e){super(...e),t(this,"gameKingsSwitchBtnsNode",p,this),t(this,"gameKindsSwitchLabelsNode",h,this)}start(){}refresh(){this.gameKindsSwitchLabelsNode.setPosition(this.gameKingsSwitchBtnsNode.position)}scrollEvent(e,i){switch(i){case 4:this.refresh()}}}).prototype,"gameKingsSwitchBtnsNode",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=i(u.prototype,"gameKindsSwitchLabelsNode",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=u))||d));s._RF.pop()}}}));

System.register("chunks:///_virtual/MainModel.ts",["cc","./Controller.ts","./EnumDefine.ts","./User.ts","./StorageUtil.ts","./GameModel.ts","./Global.ts","./CustomEventMgr.ts","./GameEvent.ts"],(function(t){"use strict";var e,s,n,i,c,o,r,a,u,l;return{setters:[function(t){e=t.cclegacy,s=t._decorator},function(t){n=t.Controller},function(t){i=t.ESwitch},function(t){c=t.User},function(t){o=t.default},function(t){r=t.GameModel},function(t){a=t.Global},function(t){u=t.CustomEventMgr},function(t){l=t.GameEvent}],execute:function(){var h;e._RF.push({},"f8761sbLGJI0q3yXfwCxxWT","MainModel",void 0);const{ccclass:f}=s;t("MainModel",f("MainModel")(h=class extends n{constructor(...t){super(...t),this.score=0,this._switch=0,this.firstLogin=!1}set switch(t){if(c.instance.isGuest)this._switch=parseInt(t+"",2);else{this._switch=i.CashGift|i.Jackpot|(c.instance.isOpenShare?i.Share:0)|parseInt(t+"",2);let e=o.getSwitch();e||a.gameCtrl.getModel(r).getGameList(),e!=t&&(o.saveSwitch(t),u.fire(l.ON_SWITCH_CHANGE))}}getSwitchByType(t){return!!(this._switch&t)||!t}})||h);e._RF.pop()}}}));

System.register("chunks:///_virtual/MainSafe.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,a,n,i,o,r;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){n=e.cclegacy,i=e.Label,o=e._decorator,r=e.Component}],execute:function(){var l,s,c,u,p;n._RF.push({},"aa261xymoJFQZwP5ySaDJ/H","MainSafe",void 0);const{ccclass:b,property:f}=o;e("MainSafe",(l=b("MainSafe"),s=f({displayName:"amount label",type:i}),l((p=t((u=class extends r{constructor(...e){super(...e),a(this,"amountLabel",p,this)}start(){}onEnable(){this.amountLabel.node.active=!0}onDisable(){this.amountLabel.node.active=!1}update(e){}}).prototype,"amountLabel",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=u))||c));n._RF.pop()}}}));

System.register("chunks:///_virtual/MainUi.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AdPageView.ts","./MainBottomBtns.ts","./EventDefine.ts","./ShareModel.ts","./ResManager.ts","./Dictionary.ts","./GameModel.ts","./CtrlBase.ts","./Global.ts","./MsgHandler.ts","./CustomEventMgr.ts","./LogUtil.ts","./HotUpdateDefine.ts","./EnumDefine.ts","./User.ts","./MainModel.ts","./GameIconBtn.ts","./Img.ts","./AudioManager.ts","./TimeUtil.ts","./ResolutionUtil.ts","./HeadModel.ts","./Language.ts","./StringUtil.ts","./TaskModel.ts","./GameEvent.ts","./SdkManager.ts","./ComponentMgr.ts","./SurveyModel.ts","./GeomitryUtil.ts","./ResDefine.ts","./GameIcon.ts","./LuckDrawModel.ts","./GameIconBg.ts","./RaffleTicketModel.ts","./UIManager.ts","./UIDefined.ts","./RedpacketModel.ts","./UIUtils.ts","./FunctionList.ts","./EmailModel.ts","./NetAdaptor.ts","./NativeApi.ts"],(function(t){"use strict";var e,n,i,a,s,o,l,r,c,h,g,u,m,p,d,f,I,B,y,b,w,S,C,L,v,k,A,N,T,E,_,M,P,G,O,U,D,R,z,V,x,H,F,K,j,W,$,X,Z,q,Q,J,Y,tt,et,nt,it,at,st,ot,lt,rt,ct,ht,gt,ut,mt,pt,dt,ft,It,Bt,yt,bt,wt,St,Ct,Lt,vt,kt,At;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,s=t.Sprite,o=t.Label,l=t.ScrollView,r=t.Toggle,c=t._decorator,h=t.EventHandler,g=t.NodeEventType,u=t.Animation,m=t.v3,p=t.sys,d=t.resources,f=t.Layout,I=t.UITransform,B=t.Widget,y=t.v2,b=t.SpriteFrame,w=t.Size,S=t.Vec2,C=t.View,L=t.instantiate,v=t.LabelOutline,k=t.Color,A=t.tween,N=t.Vec3,T=t.view},function(t){E=t.AdPageView},function(t){_=t.MainBottomBtns},function(t){M=t.CMDEvent,P=t.EventType,G=t.ShareEvent,O=t.MainEvent},function(t){U=t.ShareModel},function(t){D=t.ResManager},function(t){R=t.Dictionary},function(t){z=t.GameModel},function(t){V=t.CtrlBase},function(t){x=t.Global},function(t){H=t.default},function(t){F=t.CustomEventMgr},function(t){K=t.default},function(t){j=t.Macro},function(t){W=t.HeadEvent,$=t.ButtonEvent,X=t.ESwitch},function(t){Z=t.User},function(t){q=t.MainModel},function(t){Q=t.GameIconBtn},function(t){J=t.Img},function(t){Y=t.default},function(t){tt=t.default},function(t){et=t.default},function(t){nt=t.HeadModel},function(t){it=t.default,at=t.Language},function(t){st=t.default},function(t){ot=t.TaskModel},function(t){lt=t.GameEvent},function(t){rt=t.default},function(t){ct=t.default},function(t){ht=t.SurveyModel},function(t){gt=t.default},function(t){ut=t.SoundDefine,mt=t.ResDefine},function(t){pt=t.GameIcon},function(t){dt=t.LuckDrawModel},function(t){ft=t.GameIconBg},function(t){It=t.RaffleTicketModel},function(t){Bt=t.UIManager},function(t){yt=t.UIID},function(t){bt=t.RedpacketModel},function(t){wt=t.default},function(t){St=t.openFunction,Ct=t.EFUNC,Lt=t.getBtn},function(t){vt=t.EmailModel},function(t){kt=t.NetAdaptor},function(t){At=t.default}],execute:function(){var Nt,Tt,Et,_t,Mt,Pt,Gt,Ot,Ut,Dt,Rt,zt,Vt,xt,Ht,Ft,Kt,jt,Wt,$t,Xt,Zt,qt,Qt,Jt,Yt,te,ee,ne,ie,ae,se,oe,le,re,ce,he,ge,ue,me,pe,de,fe,Ie,Be,ye,be,we,Se,Ce,Le,ve,ke,Ae,Ne,Te,Ee,_e,Me,Pe,Ge,Oe,Ue,De,Re,ze,Ve,xe,He,Fe,Ke,je,We,$e,Xe,Ze,qe,Qe,Je,Ye,tn,en,nn,an,sn,on,ln,rn;i._RF.push({},"006bb2LbudNxpy3PZkGZBFZ","MainUi",void 0);const{ccclass:cn,property:hn}=c;t("default",(Nt=hn({displayName:"头像按钮",type:a}),Tt=hn({displayName:"头像",type:s}),Et=hn({displayName:"emailNumLabel",type:o}),_t=hn({displayName:"切换游戏列表按钮scrollview",type:l}),Mt=hn({displayName:"切换游戏列表按钮父节点",type:a}),Pt=hn({displayName:"切换游戏列表按钮labels父节点",type:a}),Gt=hn({displayName:"adPageView",type:E}),Ot=hn({displayName:"游戏icon按钮模板",type:a}),Ut=hn({displayName:"游戏icon模板",type:a}),Dt=hn({displayName:"游戏icon bg模板",type:a}),Rt=hn({displayName:"游戏icon长按钮模板",type:a}),zt=hn({displayName:"游戏icon长模板",type:a}),Vt=hn({displayName:"游戏icon bg长模板",type:a}),xt=hn({displayName:"gamelist scrollview",type:l}),Ht=hn({displayName:"balance label",type:o}),Ft=hn({displayName:"safe label",type:o}),Kt=hn({displayName:"jackpot label",type:o}),jt=hn({displayName:"右侧菜单按钮",type:a}),Wt=hn({displayName:"右侧菜单节点",type:a}),$t=hn({displayName:"多语言按钮",type:a}),Xt=hn({displayName:"audio按钮",type:r}),Zt=hn({displayName:"排行榜按钮",type:a}),qt=hn({displayName:"提现按钮",type:a}),Qt=hn({displayName:"保险箱按钮",type:a}),Jt=hn({displayName:"客服按钮",type:a}),Yt=hn({displayName:"全屏按钮",type:a}),te=hn({displayName:"评价按钮",type:a}),ee=hn({displayName:"实物抽奖左侧按钮",type:a}),ne=hn({displayName:"余额刷新按钮",type:a}),ie=hn({displayName:"进度条Sign按钮",type:a}),ae=hn({displayName:"礼金任务按钮",type:a}),se=hn({displayName:"抽奖券按钮",type:a}),oe=hn({displayName:"幸运数字按钮",type:a}),le=hn({displayName:"全民代理share按钮",type:a}),re=hn({displayName:"充值按钮",type:a}),ce=hn({displayName:"下载按钮",type:a}),he=hn({displayName:"添加到桌面按钮",type:a}),ge=hn({displayName:"红包按钮",type:a}),ue=hn({displayName:"版本label",type:o}),me=hn({displayName:"account label",type:o}),pe=hn({displayName:"偏好动画",type:a}),de=hn({displayName:"下方节点",type:a}),fe=hn({displayName:"海王3按钮",type:a}),cn((ye=e((Be=class extends V{constructor(...t){super(...t),n(this,"headBtn",ye,this),n(this,"headSprite",be,this),n(this,"emailNumLabel",we,this),n(this,"gameListSwitchBtnsScrollview",Se,this),n(this,"gameListSwitchBtnsParent",Ce,this),n(this,"gameListSwitchBtnLabelsParent",Le,this),n(this,"adPageView",ve,this),n(this,"gameIconBtnTemp",ke,this),n(this,"gameIconTemp",Ae,this),n(this,"gameIconBgTemp",Ne,this),n(this,"gameIconLongBtnTemp",Te,this),n(this,"gameIconLongTemp",Ee,this),n(this,"gameIconBgLongTemp",_e,this),n(this,"gameListScrollview",Me,this),n(this,"balanceLabel",Pe,this),n(this,"safeLabel",Ge,this),n(this,"jackpotLabel",Oe,this),n(this,"rightMenuBtn",Ue,this),n(this,"rightMenuNode",De,this),n(this,"languageBtn",Re,this),n(this,"audioBtn",ze,this),n(this,"rankingBtn",Ve,this),n(this,"withDrawBtn",xe,this),n(this,"safeBtn",He,this),n(this,"csBtn",Fe,this),n(this,"fullScreenBtn",Ke,this),n(this,"satisfyBtn",je,this),n(this,"luckyDrawLeftBtn",We,this),n(this,"balanceRefreshBtn",$e,this),n(this,"signBtn",Xe,this),n(this,"taskBtn",Ze,this),n(this,"raffleticketBtn",qe,this),n(this,"luckyNumBtn",Qe,this),n(this,"shareBtn",Je,this),n(this,"rechargeBtn",Ye,this),n(this,"downloadBtn",tn,this),n(this,"addDesktopBtn",en,this),n(this,"redpacketBtn",nn,this),n(this,"versionLabel",an,this),n(this,"accountLabel",sn,this),n(this,"collectionAni",on,this),n(this,"bottomNode",ln,this),n(this,"bottomAdBtn",rn,this),this.gameIconBtnArray=[],this.gameIconBtnPool=[],this.gameIconLongBtnPool=[],this.gameIconArray=[],this.gameIconPool=[],this.gameIconLongPool=[],this.gameIconBgArray=[],this.gameIconBgPool=[],this.gameIconLongBgPool=[],this.curGameDatas=[],this.gameIconBtnInfoMap=null,this.longSpineIdArr=[],this.smallSpineIdArr=[],this.selectedKind="",this.lastGameListScrollOffSetX=-1,this.lastGameListSwitchBtnsParentWidth=0,this.jackpotTargetValue=-1,this.jackpotCurrentValue=-1,this.jackpotAddValue=0,this.isAutoLoading=!1,this.autoLoadNativeImgPathArr=[],this.lastRefreshTime=-1,this.lastSwitchBtnClickTime=-1,this.curSelectedName=""}onLoad(){}start(){this.bindEvents(),this.refreshAuidoBtnStatus(),this.gameIconBtnInfoMap=R.create();let t=new h;t.component="MainUi",t.handler="scrollEvent",t.target=this.node,this.gameListScrollview.scrollEvents.push(t),this.synGameSpineIconIdArr(),this.checkAllBtnOpen(),this.versionLabel.string=x.appVersion,this.gamelistCallback(this.getModel(z)),this.node.on(g.SIZE_CHANGED,this._sizeChange,this),F.on(M.CLOSE_REDPACKET_CMD,this.checkAllBtnOpen,this)}bindEvents(){this.headBtn.on(a.EventType.TOUCH_END,(async()=>{Y.Instance().playEffect(ut.sound_click_btn),kt.getInstance().setNetTimeOut((()=>{Bt.getInstance().open(yt.UIProfile)}))}),this);for(let t=0;t<this.gameListSwitchBtnsParent.children.length;t++){"btn"==this.gameListSwitchBtnsParent.children[t].name.split("_")[0]&&this.gameListSwitchBtnsParent.children[t].on(a.EventType.TOUCH_END,this.listSwitchBtnClick,this)}this.languageBtn.on(a.EventType.TOUCH_END,(async()=>{Y.Instance().playEffect(ut.sound_click_btn),Bt.getInstance().open(yt.UILanguage)})),this.audioBtn.node.on(a.EventType.TOUCH_END,(t=>{Y.Instance().playEffect(ut.sound_click_btn);let e=t.getCurrentTarget().getComponent(r);Y.Instance().setSoundEnabled(e.isChecked),Y.Instance().setMusicEnabled(e.isChecked)})),this.rightMenuBtn.on(a.EventType.TOUCH_END,(()=>{var t,e,n,i,a,s;(Y.Instance().playEffect(ut.sound_click_btn),this.refreshAuidoBtnStatus(),1==this.rightMenuNode.active)?(null==(t=this.rightMenuBtn.parent)||null==(e=t.getComponent(u))||e.play("main_right_menu_ani_disappear"),this.rightMenuNode.active=!1,null==(n=this.rightMenuBtn.getChildByName("indicator"))||n.setRotationFromEuler(m(0,0,0))):(null==(i=this.rightMenuBtn.parent)||null==(a=i.getComponent(u))||a.play("main_right_menu_ani_appear"),this.rightMenuNode.active=!0,null==(s=this.rightMenuBtn.getChildByName("indicator"))||s.setRotationFromEuler(m(0,0,180)))}),this),this.rightMenuNode.on(a.EventType.TOUCH_END,(()=>{var t,e,n;Y.Instance().playEffect(ut.sound_click_btn),this.rightMenuNode.active=!1,null==(t=this.rightMenuBtn.parent)||null==(e=t.getComponent(u))||e.play("main_right_menu_ani_disappear"),null==(n=this.rightMenuBtn.getChildByName("indicator"))||n.setRotationFromEuler(m(0,0,0))}),this),this.fullScreenBtn.on(a.EventType.TOUCH_END,(async()=>{Y.Instance().playEffect(ut.sound_click_btn),et.isFullScreen?et.exitFullScreen():et.setFullScreen()}),this),this.balanceRefreshBtn.on(a.EventType.TOUCH_END,(async()=>{Y.Instance().playEffect(ut.sound_click_btn);let t=it.getInstance().language.getString(200015),e=it.getInstance().language.getString(105004),n=it.getInstance().language.getString(130052);K.debug("UIAlert, dec:"+t);let i={content:t,singleBtn:!1,okFunc:()=>{H.Instance().c2sflushScore()},okName:e,cancelName:n};Bt.getInstance().open(yt.UIAlert,i)})),this.withDrawBtn.on(a.EventType.TOUCH_END,(async()=>{Y.Instance().playEffect(ut.sound_click_btn),St(Ct.UIWithDraw)})),this.safeBtn.on(a.EventType.TOUCH_END,(async()=>{1!=Z.instance.is_trial&&1!=Z.instance.vistor&&(Y.Instance().playEffect(ut.sound_click_btn),St(Ct.UISafe))})),this.addDesktopBtn.on(a.EventType.TOUCH_END,(()=>{Y.Instance().playEffect(ut.sound_click_btn)})),this.csBtn.on(a.EventType.TOUCH_END,(()=>{Y.Instance().playEffect(ut.sound_click_btn),H.Instance().c2sCheckCustomerService()})),this.bottomAdBtn.on(a.EventType.TOUCH_END,(()=>{this.clickBigIcon(1004)}),this),F.on(P.GUESTER_GAME_LIST,this.gamelistCallback,this),F.on(P.OnGetBonus,this.onGetBonus,this),F.on(P.OnChangeUserInfo,this.onRefreshMoney,this),F.on(W.CHANGE_HEAD,this.changeHead,this),F.on(G.ON_COMMISSION_INFO,this.onCommissionInfo,this),F.on(lt.ON_SWITCH_CHANGE,this.onSwitchChange,this),F.on(P.ON_CLICK_BIG_ICON,this.clickBigIcon,this),F.on(O.ON_ENTER_IM,this.onEnterIM,this),F.on(O.ON_EXITE_IM,this.onExitIM,this),F.on(P.OnGetGameBonus,this.onGetGameBonus,this),F.on(P.OnChangeLanguage,this.OnChangeLanguage,this),F.on(P.OnCloseRedPacket,this.OnCloseRedPacket,this),F.on(lt.UPDATE_COLLECTION,this.OnUpdateCollection,this),F.on(P.OnGetScore,this.onGetScore,this),F.on(P.OnGetEmail,this.refreshEmailCount,this),F.on(P.OnDealEmail,this.refreshEmailCount,this),F.on(P.SHOW_MAIN_UI,this.onShowView,this),F.on(P.HIDE_MAIN_UI,this.onHideView,this)}_sizeChange(){this.updateGameKindBtns(!0)}refreshAuidoBtnStatus(){1==Y.Instance().musicEnabled?(this.audioBtn.isChecked=!1,Y.Instance().playMusicBG()):this.audioBtn.isChecked=!0}onGetScore(t){H.Instance().c2sTransactions();let e=parseFloat(t)<0?107037:107036,n={content:it.getInstance().language.getFormatString(e,[t]),singleBtn:!0};Bt.getInstance().open(yt.UIAlert,n)}scrollEvent(t,e){switch(e){case 4:this.refreshAndAppearGameIconBtns(),this.pauseGameIconAni(),-1!=this.lastGameListScrollOffSetX&&this.lastGameListScrollOffSetX==this.gameListScrollview.getScrollOffset().x?this.gameListScrollview.stopAutoScroll():this.lastGameListScrollOffSetX=this.gameListScrollview.getScrollOffset().x;break;case 9:this.resumeGameIconAni()}}pauseGameIconAni(){for(let t=0;t<this.gameIconBtnArray.length;t++)1==this.gameIconBtnArray[t].active&&this.gameIconBtnArray[t].getComponent(Q).pauseAni();for(let t=0;t<this.gameIconArray.length;t++)1==this.gameIconArray[t].active&&this.gameIconArray[t].getComponent(pt).pauseAni()}resumeGameIconAni(){for(let t=0;t<this.gameIconBtnArray.length;t++)1==this.gameIconBtnArray[t].active&&this.gameIconBtnArray[t].getComponent(Q).resumeAni();for(let t=0;t<this.gameIconArray.length;t++)1==this.gameIconArray[t].active&&this.gameIconArray[t].getComponent(pt).resumeAni()}gameBack(){this.updateGameKindBtns(!0),this.scheduleOnce((()=>{this.gameKindBtnSelect(this.curSelectedName),this.adPageView.gamebackAndAdapt(),this.resumeGameIconAni()}))}gameBackAndSaveMusicSwitch(t){K.debug("gameBack,musicSwitch:"+t);let e=p.os==p.OS.IOS?1.5:.01;K.debug("gameBackAndSaveMusicSwitch,delayTime:"+e),this.scheduleOnce(this.setAudioEnableSchedule.bind({musicSwitch:t}),e)}setAudioEnableSchedule(){let t=this.musicSwitch;x.gameCtrl.mainUITs.setAudioEnable(t)}cancelAudioEnableSchedule(){this.unschedule(this.setAudioEnableSchedule)}setAudioEnable(t){Y.Instance().setSoundEnabled(t),Y.Instance().setMusicEnabled(t),1==Y.Instance().musicEnabled?this.audioBtn.isChecked=!1:this.audioBtn.isChecked=!0}synGameSpineIconIdArr(){d.config.paths.forEach(((t,e)=>{if(-1!=e.indexOf(mt.VP_GAME_SPINE_ICONS_L_LOCATION)){let t=parseInt(e.split(mt.VP_GAME_SPINE_ICONS_L_LOCATION)[1].split("/")[0]);-1==this.longSpineIdArr.indexOf(t)&&this.longSpineIdArr.push(t)}if(-1!=e.indexOf(mt.VP_GAME_SPINE_ICONS_S_LOCATION)){let t=parseInt(e.split(mt.VP_GAME_SPINE_ICONS_S_LOCATION)[1].split("/")[0]);-1==this.smallSpineIdArr.indexOf(t)&&this.smallSpineIdArr.push(t)}})),K.debug("test longSpineIdArr,"+this.longSpineIdArr.length)}gamelistCallback(t){var e,n;K.debug("gamelistCallback"),wt.hideLoading(),x.gameModel=t;t.gameTypeDic.keys;let i=[],a=[],s=this.gameListSwitchBtnsParent.children,o=this.gameListSwitchBtnLabelsParent.children;for(let t=0;t<s.length;t++){if("line"==s[t].name||"tab_bg"==s[t].name||"btn_collect"==s[t].name){"btn_collect"==s[t].name&&(s[t].active=!0,a.unshift(s[t]));continue}-1!=x.kindList.indexOf(s[t].name.split("_")[1])?(s[t].active=!0,a.push(s[t])):(s[t].active=!1,i.push(s[t]))}let l=[];for(let t=0;t<o.length;t++){if("btn_collect"==o[t].name){"btn_collect"==o[t].name&&(o[t].active=!0);continue}-1!=x.kindList.indexOf(o[t].name.split("_")[1])?(o[t].active=!0,l.push(o[t])):o[t].active=!1}a=a.concat(i.concat());for(let t=0;t<a.length;t++){let e=a[t].name.split("_")[1],n=x.kindList.indexOf(e);if(-1!=n){let e=n+2;a[t].setSiblingIndex(e),this.gameListSwitchBtnLabelsParent.getChildByName(a[t].name).setSiblingIndex(e)}}null==(e=this.gameListSwitchBtnsParent.getComponent(f))||e.updateLayout(),null==(n=this.gameListSwitchBtnLabelsParent.getComponent(f))||n.updateLayout();let r=this.gameListSwitchBtnsParent.parent.getComponent(I).width,c=this.gameListSwitchBtnsParent.getComponent(I).width;c<r?(this.gameListSwitchBtnsParent.getComponent(B).isAlignHorizontalCenter=!0,this.gameListSwitchBtnsParent.getComponent(B).isAlignLeft=!1,this.gameListSwitchBtnsParent.getComponent(B).horizontalCenter=0,this.gameListSwitchBtnLabelsParent.getComponent(B).isAlignHorizontalCenter=!0,this.gameListSwitchBtnLabelsParent.getComponent(B).isAlignLeft=!1,this.gameListSwitchBtnLabelsParent.getComponent(B).horizontalCenter=0):(this.gameListSwitchBtnsParent.getComponent(B).isAlignHorizontalCenter=!1,this.gameListSwitchBtnsParent.getComponent(B).isAlignLeft=!0,this.gameListSwitchBtnsParent.getComponent(B).left=0,this.gameListSwitchBtnLabelsParent.getComponent(B).isAlignHorizontalCenter=!1,this.gameListSwitchBtnLabelsParent.getComponent(B).isAlignLeft=!0,this.gameListSwitchBtnLabelsParent.getComponent(B).left=0),this.lastGameListSwitchBtnsParentWidth=c,this.scheduleOnce((()=>{this.refreshGameIconList("Fish"),this.gameKindBtnSelect("Fish",!1)}),.1),this.updateGameKindBtns(!0)}rollValueUpdater(){this.jackpotCurrentValue+=this.jackpotAddValue,this.jackpotCurrentValue>=this.jackpotTargetValue&&(this.unschedule(this.rollValueUpdater),this.jackpotCurrentValue=this.jackpotTargetValue);let t=st.formatMoney(this.jackpotCurrentValue);this.jackpotLabel.string=t}onGetBonus(t){K.debug("onGetBonus"),this.unschedule(this.rollValueUpdater),this.jackpotTargetValue=t,-1==this.jackpotCurrentValue&&(this.jackpotCurrentValue=this.jackpotTargetValue/2),this.jackpotAddValue=(this.jackpotTargetValue-this.jackpotCurrentValue)/50,this.schedule(this.rollValueUpdater,.01)}onRefreshMoney(t){this.refreshUserInfo()}onSwitchChange(){this.checkAllBtnOpen()}onCommissionInfo(){let t=this.getModel(U).reward;this.shareBtn.getChildByName("Label").getComponent(o).string=st.formatMoney(t)}onEnterIM(t){if(!x.showGuestRegister())if(H.Instance().c2sActionReporting("service"),1==t){let t=Z.instance.im_url;Log.d("onEnterIM,imUrl:"+t+";onEnterIM,token:"+Z.instance.token);let e=t.split("://")[0],n=t.split("://")[1],i=0;"https"==e&&(i=1);let a=t.split("player_chat")[0]+"im/chat.html";if(p.isNative){let t=`${a}?imUrl=${encodeURI(n)}&isSSL=${i}&token=${Z.instance.token}&lang=${x.language}&t=${(new Date).getTime()}`;At.lockOrientation(!0),rt.openWebView(t)}else{let t=`${a}?imUrl=${encodeURI(n)}&isSSL=${i}&token=${Z.instance.token}&lang=${x.language}&t=${(new Date).getTime()}`;K.log("web enter cs,"+t),ct.showWebIframe(t)}}else{let t={content:at.getString(107069),singleBtn:!0};Bt.getInstance().open(yt.UIAlert,t)}}onExitIM(){K.log("onExitIM")}sortGameDatasByLong(t){let e=[];for(let n=0;n<t.length;n++){let i=t[n],a=i.long,s=[];if(0==e.length){s.push(i),e.push(s);continue}let o=t[n-1].long;a||1==o?(s.push(i),e.push(s)):e[e.length-1].length<2?e[e.length-1].push(i):(s.push(i),e.push(s))}return e}autoAdaptScrollviewContent(t,e,n,i,a,s,o,l){var r;let c=0;c+=s,c+=o;for(let e=0;e<t.length;e++)1==t[e][0].long?c+=i.width:c+=n.width;c+=a*(t.length-1);let h=null==(r=this.gameIconBtnTemp.parent)?void 0:r.parent.parent;c<h.getComponent(I).width&&(c=h.getComponent(I).width),this.gameIconBtnTemp.parent.parent.getComponent(I).width=c}getGameKindIndex(t){return x.gameModel.gameTypeDic.keys.indexOf(t)}clickBigIcon(t){if(x.showGuestRegister())return;let e=this.getModel(z).findGameDataByID(t);e&&(-1==e.tags.indexOf(this.selectedKind)&&this.selectKind(e.tags[0]),this.lockIconPosition(t),this.clickGame(t))}onGetGameBonus(){for(let t=0;t<this.gameIconBtnArray.length;t++)this.gameIconBtnArray[t].getComponent(Q).setBonus()}OnChangeLanguage(){}OnCloseRedPacket(){H.Instance().c2scheckredpacket()}OnUpdateCollection(){"collect"==this.selectedKind&&this.selectKind("collect",!0)}lockIconPosition(t){this.gameIconBtnInfoMap.every(((e,n)=>{if(n.gameId==t){let t=n.pos,e=y(t.x-this.gameIconBtnTemp.getComponent(I).width/2,this.gameListScrollview.getScrollOffset().y);return this.gameListScrollview.scrollToOffset(e),this.refreshAndAppearGameIconBtns(),!1}return!0}))}clickGame(t){this.gameIconBtnInfoMap.every(((e,n)=>{if(n.gameId==t){let t=n.ref;return t&&t.getComponent(Q).onClickGame(),!1}return!0}))}selectKind(t,e=!1){this.selectedKind==t&&1!=e||(this.gameKindBtnSelect(t),this.refreshGameIconList(t),this.scheduleOnce((()=>{this.resumeGameIconAni()})))}removeAllGameIconBtn(){for(;this.gameIconBtnArray.length>0;){let t=this.gameIconBtnArray.shift();this.destroyGameIconBtn(t)}for(this.gameIconBtnArray=[];this.gameIconArray.length>0;){let t=this.gameIconArray.shift();this.destroyGameIcon(t)}for(this.gameIconArray=[];this.gameIconBgArray.length>0;){let t=this.gameIconBgArray.shift();this.destroyGameIconBg(t)}this.gameIconBgArray=[]}autoLoadGameIconFun(){if(0==this.autoLoadNativeImgPathArr.length)return;let t=this.autoLoadNativeImgPathArr.shift();D.Instance().load(j.BUNDLE_RESOURCES,t,b,(()=>{}),(t=>{this.autoLoadNativeImgPathArr.length>0?this.autoLoadGameIconFun():this.isAutoLoading=!1}))}addAutoLoadGameIcon(t){this.autoLoadNativeImgPathArr=[];for(let e=0;e<t.length;e++){let n=t[e],i="";i=1==n.long?`${mt.VP_GAME_LONG_ICONS_LOCATION}l_${n.id}/spriteFrame`:`${mt.VP_GAME_ICONS_LOCATION}s_${n.id}/spriteFrame`,""!=n.gameiconUrl&&null!=n.gameiconUrl&&this.autoLoadNativeImgPathArr.push(i)}0!=this.autoLoadNativeImgPathArr.length&&0==this.isAutoLoading&&(this.isAutoLoading=!0,this.autoLoadGameIconFun())}refreshGameIconList(t){this.removeAllGameIconBtn(),this.gameListScrollview.stopAutoScroll(),this.gameListScrollview.scrollToOffset(y(0,0)),this.curGameDatas=[],this.gameIconBtnInfoMap=R.create();let e=x.gameModel.gameTypeDic.keys.indexOf(t);if("collect"==t?-1!=e&&x.gameModel.gameTypeDic.values[e].length>0?this.showCollectAni(!1):this.showCollectAni(!0):this.showCollectAni(!1),-1!=e){let n=x.gameModel.gameTypeDic.values[e];this.curGameDatas=n,this.addAutoLoadGameIcon(this.curGameDatas),this.selectedKind=t,this.gameIconBtnTemp.parent.parent.getComponent(f).enabled=!1;let i=new w(243,443),s=new w(212,212),o=23,l=12,r=10,c=22,h=2,g=this.sortGameDatasByLong(n),u=g.length;this.autoAdaptScrollviewContent(g,u,s,i,o,r,c,h);let m=0,p=0;for(let t=0;t<g.length;t++)for(let e=0;e<g[t].length;e++){let n=g[t][e],c=n.long;if(m++,0==e){let t=1==c?i.width:s.width;1==m?(p+=r,p+=t/2):(p+=o,p+=t)}let u=0;if(0==c){let t=h*s.height+l*(h-1);u=(0==e?1:0)*(s.height+l)+s.height/2-t/2}let d={index:0,pos:new S,isShow:!1,ref:null,gameId:0,iconRef:new a,iconBgRef:null};d.index=m,d.pos=y(p,u),d.isShow=!1,d.ref=null,d.iconRef=null,d.gameId=n.id,this.gameIconBtnInfoMap.set(m,d)}this.scheduleOnce((()=>{this.refreshAndAppearGameIconBtns()}),.1)}}showCollectAni(t){this.collectionAni.active=1==t}refreshAndAppearGameIconBtns(){let t=tt.getCurMilliTime();if(-1!=this.lastRefreshTime&&t-this.lastRefreshTime<100)return;this.lastRefreshTime=t;let e=this.gameIconBtnTemp.parent,n=C.instance.getVisibleSize().width,i=this.gameListScrollview.getComponent(I).width,a=n/2-i/2;this.gameIconBtnInfoMap.every(((t,n)=>{var s;let o=null==(s=e.getComponent(I))?void 0:s.convertToWorldSpaceAR(m(n.pos.x,n.pos.y,0));return o.x>=-500+a&&o.x<=i+500+a?0==n.isShow&&this.appearGameIconByIndex(n.index):1==n.isShow&&this.disAppearGameIcon(n.index),!0}),this)}showBtn(t,e,n){if(t.children.length>0){t.children[0].active=e}else 1==e&&Lt(n).then((e=>{if(e&&0==t.children.length){let i=L(e);t.addChild(i),this.bindBtnEvent(i,n)}}))}bindBtnEvent(t,e){e==Ct.UITask?t.on($.click,(t=>{let e=this.getModel(ot),n=e.getTaskState(),i=0;for(let t=0;t<n.stateList.length&&(i=n.stateList[t].endTime-x.svrTimeMS/1e3,!(i>0));t++)if(t==n.stateList.length-1)return void e.c2sGetTaskData(!0,!1);kt.getInstance().setNetTimeOut((()=>{Bt.getInstance().open(yt.UITask)})),e.c2sGetTaskData(!0,!1)})):e==Ct.UITurnTable?t.on($.click,(()=>{H.Instance().c2sgetsignprogress();let t=()=>{F.off(P.OnGetSignProgress,t,this),St(Ct.UITurnTable)};F.on(P.OnGetSignProgress,t,this)}),this):e==Ct.UILuckyDraw?t.on($.click,(()=>{St(Ct.UILuckyDraw)})):e==Ct.UIRaffleTicket?t.on($.click,(()=>{St(Ct.UIRaffleTicket)})):e==Ct.UIRedpacket?t.on($.click,(()=>{St(Ct.UIRedpacket),this.redpacketBtn.active=!1})):e==Ct.UIRecharge?t.on($.click,(()=>{H.Instance().c2sNewrechargeinfo(),St(Ct.UIRecharge)})):e==Ct.UIRanking?t.on($.click,(()=>{St(Ct.UIRanking)})):e==Ct.UIDownload?t.on($.click,(()=>{kt.getInstance().setNetTimeOut((()=>{Bt.getInstance().open(yt.UIQRCode)}))})):e==Ct.UISatisfy?t.on($.click,(()=>{St(Ct.UISatisfy)})):e==Ct.UIShare&&t.on($.click,(()=>{}))}checkAllBtnOpen(){let t=[],e=this.getModel(q),n=e.getSwitchByType(X.Progress);this.signBtn.active=n,this.showBtn(this.signBtn,n,Ct.UITurnTable),1==n&&t.push(this.signBtn);let i=x.gameCtrl.getModel(ot).getTaskState(),a=!0;if(i){for(let t of i.stateList)if(t.isOpen){a=!1;break}let e=x.svrTimeMS/1e3,n=e>i.startTime&&e<i.endTime,s=i.isOpen&&!a&&n&&1!=Z.instance.vistor&&1!=Z.instance.is_trial;this.taskBtn.active=s,this.showBtn(this.taskBtn,s,Ct.UITask),1==s&&t.push(this.taskBtn)}let s=this.getModel(It).is_open;this.raffleticketBtn.active=s,this.showBtn(this.raffleticketBtn,s,Ct.UIRaffleTicket),1==s&&t.push(this.raffleticketBtn);let o=Z.isOpenShare;this.shareBtn.active=o,this.showBtn(this.shareBtn,o,Ct.UIShare),1==o&&t.push(this.shareBtn);let l=this.getModel(q).getSwitchByType(X.Recharge);this.rechargeBtn.active=l,this.showBtn(this.rechargeBtn,l,Ct.UIRecharge),1==l&&t.push(this.rechargeBtn);let r=!p.isNative;this.downloadBtn.active=r,this.showBtn(this.downloadBtn,r,Ct.UIDownload),1==r&&t.push(this.downloadBtn);for(let e=0;e<t.length;e++){t[e].position.x}let c=e.getSwitchByType(X.Rank);this.rankingBtn.active=c,this.showBtn(this.rankingBtn,c,Ct.UIRanking);let h=e.getSwitchByType(X.CustomerService);this.csBtn.active=h;let g=e.getSwitchByType(X.Withdraw);this.withDrawBtn.active=g,this.fullScreenBtn.active=!p.isNative&&p.os!=p.OS.IOS;let u=this.getModel(ht).surveySwtich;this.satisfyBtn.active=u,this.showBtn(this.satisfyBtn,u,Ct.UISatisfy);let m=e.getSwitchByType(X.SafeBox);this.safeBtn.active=m;let d=this.getModel(dt).isDrawAwardOpen;this.luckyDrawLeftBtn.active=d,this.showBtn(this.luckyDrawLeftBtn,d,Ct.UILuckyDraw),this.addDesktopBtn.active=!1,//!sys.isNative;
this.balanceRefreshBtn.active=2==x.appPlatformId||20010==x.appPlatformId;let f=this.getModel(bt).allowtoget;this.redpacketBtn.active=f,this.showBtn(this.redpacketBtn,f,Ct.UIRedpacket),this.bottomNode.getComponent(_).refresh()}appearGameIconByIndex(t){var e,n,i,a,s;if(0==this.curGameDatas.length)return;let o=this.gameIconBtnInfoMap.get(t),l=this.curGameDatas[t-1],r=this.getGameIconBtn(l.long),c=this.getGameIcon(l.long,l.id),h=this.getGameIconBg(l.long);null==(e=r.getComponent(Q))||e.playAppearAni(),null==(n=c.getComponent(pt))||n.playAppearAni(),r.setPosition(m(o.pos.x,o.pos.y,0)),c.setPosition(m(o.pos.x,o.pos.y,0)),h.setPosition(m(o.pos.x,o.pos.y,0)),this.gameIconBtnArray.push(r),this.gameIconArray.push(c),this.gameIconBgArray.push(h),null==(i=r.getComponent(Q))||i.initBtn(l),null==(a=c.getComponent(pt))||a.initIcon(l),null==(s=h.getComponent(ft))||s.initIcon(l),o.isShow=!0,o.ref=r,o.iconRef=c,o.iconBgRef=h}disAppearGameIcon(t){let e=this.gameIconBtnInfoMap.get(t);e.isShow=!1;let n=e.ref;if(n){this.destroyGameIconBtn(n);let t=this.gameIconBtnArray.indexOf(n);-1!=t&&this.gameIconBtnArray.splice(t,1)}let i=e.iconRef;if(i){this.destroyGameIcon(i);let t=this.gameIconArray.indexOf(i);-1!=t&&this.gameIconArray.splice(t,1)}let a=e.iconBgRef;if(a){this.destroyGameIconBg(a);let t=this.gameIconBgArray.indexOf(a);-1!=t&&this.gameIconBgArray.splice(t,1)}e.ref=null,e.iconRef=null,e.iconBgRef=null}getGameIconBtn(t){let e=null;return 1==t?0==this.gameIconLongBtnPool.length?(e=L(this.gameIconLongBtnTemp),e.parent=this.gameIconLongBtnTemp.parent,e.active=!0):(e=this.gameIconLongBtnPool.shift(),e.active=!0):0==this.gameIconBtnPool.length?(e=L(this.gameIconBtnTemp),e.parent=this.gameIconBtnTemp.parent,e.active=!0):(e=this.gameIconBtnPool.shift(),e.active=!0),e}getGameIcon(t,e){let n=null;if(x.gameIconSpinePrefabMap[e.toString()],1==t)if(0==this.gameIconLongPool.length)n=L(this.gameIconLongTemp),n.parent=this.gameIconLongTemp.parent,n.active=!0;else{for(let t=0;t<this.gameIconLongPool.length;t++)if(this.gameIconLongPool[t].getComponent(pt).gameData.id==e&&1==this.gameIconLongPool[t].getComponent(pt).isSpineIcon){n=this.gameIconLongPool.splice(t,1)[0],n.active=!0;break}if(!n){for(let t=0;t<this.gameIconLongPool.length;t++)if(0==this.gameIconLongPool[t].getComponent(pt).isSpineIcon){n=this.gameIconLongPool.splice(t,1)[0],n.active=!0;break}n||(n=L(this.gameIconLongTemp),n.parent=this.gameIconLongTemp.parent,n.active=!0)}}else if(0==this.gameIconPool.length)n=L(this.gameIconTemp),n.parent=this.gameIconTemp.parent,n.active=!0;else{for(let t=0;t<this.gameIconPool.length;t++)if(this.gameIconPool[t].getComponent(pt).gameData.id==e&&1==this.gameIconPool[t].getComponent(pt).isSpineIcon){n=this.gameIconPool.splice(t,1)[0],n.active=!0;break}if(!n){for(let t=0;t<this.gameIconPool.length;t++)if(0==this.gameIconPool[t].getComponent(pt).isSpineIcon){n=this.gameIconPool.splice(t,1)[0],n.active=!0;break}n||(n=L(this.gameIconTemp),n.parent=this.gameIconTemp.parent,n.active=!0)}}return n}getGameIconBg(t){let e=null;return 1==t?0==this.gameIconLongBgPool.length?(e=L(this.gameIconBgLongTemp),e.parent=this.gameIconBgLongTemp.parent,e.active=!0):(e=this.gameIconLongBgPool.shift(),e.active=!0):0==this.gameIconBgPool.length?(e=L(this.gameIconBgTemp),e.parent=this.gameIconBgTemp.parent,e.active=!0):(e=this.gameIconBgPool.shift(),e.active=!0),e}destroyGameIconBtn(t){let e=t.getComponent(Q).gameData.long;t.getComponent(Q).disableInfo(),1==e?(t.active=!1,this.gameIconLongBtnPool.push(t)):(t.active=!1,this.gameIconBtnPool.push(t))}destroyGameIcon(t){let e=t.getComponent(pt).gameData.long;t.getComponent(pt).isRemote;t.getComponent(pt).disableInfo(),1==e?(t.active=!1,this.gameIconLongPool.push(t)):(t.active=!1,this.gameIconPool.push(t))}destroyGameIconBg(t){let e=t.getComponent(ft).gameData.long;t.setPosition(0,-1e4),1==e?(t.active=!1,this.gameIconLongBgPool.push(t)):(t.active=!1,this.gameIconBgPool.push(t))}changeHead(){let t=this.getModel(nt).headUrl;if(t){let e=this.getHeadResPath(t)+"/spriteFrame";D.Instance().load(j.BUNDLE_RESOURCES,e,b,(()=>{}),(t=>{var e;null==(e=this.headSprite.getComponent(J))||e.initWithSpriteFrame(t.data)})),this.headSprite.node.parent.parent.getChildByName("default_icon").active=!1}else this.headSprite.node.parent.parent.getChildByName("default_icon").active=!0}refreshEmailCount(){let t=x.gameCtrl.getModel(vt).getUnReadMsgNum();this.emailNumLabel.node.parent.active=t>0;let e=0;if(t>0){let n=99;e=t>n?n:t}this.emailNumLabel.string=e.toString()}refreshUserHeadIcon(){let t=this.getUserInfo().headIcon;if(t){let e=this.getHeadResPath(t)+"/spriteFrame";D.Instance().load(j.BUNDLE_RESOURCES,e,b,(()=>{}),(t=>{var e;null==(e=this.headSprite.getComponent(J))||e.initWithSpriteFrame(t.data)})),this.headSprite.node.parent.parent.getChildByName("default_icon").active=!1}else this.headSprite.node.parent.parent.getChildByName("default_icon").active=!0}getHeadResPath(t){let e=t.split(".")[t.split(".").length-2],n=e.split("/")[e.split("/").length-1],i=e.split("/")[e.split("/").length-2];return mt.COMMON_TEXTURE_URL+"head/"+i+"/"+n}loginSuccess(){H.Instance().c2sgetbonus(),H.Instance().c2sgetemail(),this.refreshUserHeadIcon(),this.refreshUserInfo(),this.checkAllBtnOpen(),this.setUserName(Z.instance.userName)}setUserName(t){this.accountLabel.string=t}refreshUserInfo(){let t=this.getUserInfo().money,e=this.getUserInfo().bank;this.balanceLabel.string=st.formatMoney(t),1==Z.instance.is_trial||1==Z.instance.vistor?this.safeLabel.string=st.formatMoney(0):this.safeLabel.string=st.formatMoney(Math.max(0,e)+"")}listSwitchBtnClick(t){let e=tt.getCurMilliTime();if(-1!=this.lastSwitchBtnClickTime&&e-this.lastSwitchBtnClickTime<300)return;this.lastSwitchBtnClickTime=e,K.debug("listSwitchBtnClick");let n=t.getCurrentTarget().name.split("_")[1];n!=this.selectedKind&&(this.gameKindBtnSelect(n),this.refreshGameIconList(n))}gameKindBtnSelect(t,e=!0){this.selectedKind=t;let n=this.gameListSwitchBtnsParent.children;Y.Instance().playEffect(ut.sound_click);for(let a=0;a<n.length;a++){let s=n[a];if("line"==s.name||"tab_bg"==s.name)continue;let l=s.name.split("_")[1],r=s.getChildByName("layout").getChildByName("Label").getComponent(o),c=s.getChildByName("layout").getChildByName("Label").getComponent(v);if(t==l){var i;r.color=(new k).fromHEX("#003207"),r.fontSize=22,c.color=(new k).fromHEX("#dbff49"),c.width=2,this.curSelectedName=t;let n=null==(i=s.parent)?void 0:i.getChildByName("tab_bg");n.getChildByName("bg").active=!0;let a=n.getChildByName("bg").getComponent(I).width,o=s.getComponent(I).width-a,l=.02,h=.2,g=o/Math.floor(h/l/2),u=.02,m=()=>{u+=l;let t=0;u>h/2?(t=s.getComponent(I).width,this.unschedule(m)):t=n.getChildByName("bg").getComponent(I).width+g,n.getChildByName("bg").getComponent(I).width=t,n.getChildByName("bg").children[0].getComponent(I).width=t+13},p=s.position.x-s.getComponent(I).width/2+500;if(0==e)h=.01;else{let t=Math.abs(p-n.position.x);h=t/3e3}A(n).sequence(A(n).call((()=>{this.schedule(m,l)})),A(n).to(h,{position:new N(p,s.position.y,s.position.z)})).start()}else r.color=(new k).fromHEX("#f6eeff"),r.fontSize=22,c.color=(new k).fromHEX("#35006f"),c.width=2}}updateGameKindBtns(t=!1){var e,n;let i=T.getVisibleSize().width;null==(e=this.gameListSwitchBtnsParent.getComponent(f))||e.updateLayout(),null==(n=this.gameListSwitchBtnLabelsParent.getComponent(f))||n.updateLayout();let a=this.gameListSwitchBtnsParent.getComponent(I).width;if(0==t&&this.lastGameListSwitchBtnsParentWidth==a)return;K.debug("updateGameKindBtns"),this.lastGameListSwitchBtnsParentWidth=a,this.lastGameListSwitchBtnsParentWidth<i?(this.gameListSwitchBtnsScrollview.node.getComponent(I).width=this.lastGameListSwitchBtnsParentWidth+1,this.gameListSwitchBtnsScrollview.view.getComponent(B).updateAlignment()):(this.gameListSwitchBtnsScrollview.node.getComponent(I).width=i,this.gameListSwitchBtnsScrollview.view.getComponent(B).updateAlignment());let s=this.gameListSwitchBtnsParent.children;for(let t=0;t<s.length;t++){let e=s[t],n=e.name.split("_")[1];if(this.curSelectedName==n){var o;let t=null==(o=e.parent)?void 0:o.getChildByName("tab_bg");t.getChildByName("bg").getComponent(I).width=e.getComponent(I).width,null==t||t.setPosition(m(e.position.x-e.getComponent(I).width/2+500,e.position.y));break}}}LogOut(){}reconnectBtnClick(){x.gameCtrl.doReconnect()}updateShareReward(){this.getModel(U).getCommissionDetail()}playCoinFlyAni(t=null,e=null,n=!0){let i=Bt.getInstance().getUI(yt.UIAniLayer),a=this.balanceLabel.node.worldPosition,s=gt.toNodePos(i.node,a);i.playCollectCoinEffect(t,s,(()=>{e&&e(),H.Instance().c2sgetmoney()}),n)}onShowView(){this.node.active=!0,this.updateGameKindBtns(!0)}onHideView(){this.node.active=!1}}).prototype,"headBtn",[Nt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),be=e(Be.prototype,"headSprite",[Tt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),we=e(Be.prototype,"emailNumLabel",[Et],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Se=e(Be.prototype,"gameListSwitchBtnsScrollview",[_t],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ce=e(Be.prototype,"gameListSwitchBtnsParent",[Mt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Le=e(Be.prototype,"gameListSwitchBtnLabelsParent",[Pt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ve=e(Be.prototype,"adPageView",[Gt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ke=e(Be.prototype,"gameIconBtnTemp",[Ot],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ae=e(Be.prototype,"gameIconTemp",[Ut],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ne=e(Be.prototype,"gameIconBgTemp",[Dt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Te=e(Be.prototype,"gameIconLongBtnTemp",[Rt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ee=e(Be.prototype,"gameIconLongTemp",[zt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_e=e(Be.prototype,"gameIconBgLongTemp",[Vt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Me=e(Be.prototype,"gameListScrollview",[xt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pe=e(Be.prototype,"balanceLabel",[Ht],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ge=e(Be.prototype,"safeLabel",[Ft],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Oe=e(Be.prototype,"jackpotLabel",[Kt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ue=e(Be.prototype,"rightMenuBtn",[jt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),De=e(Be.prototype,"rightMenuNode",[Wt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Re=e(Be.prototype,"languageBtn",[$t],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ze=e(Be.prototype,"audioBtn",[Xt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ve=e(Be.prototype,"rankingBtn",[Zt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),xe=e(Be.prototype,"withDrawBtn",[qt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),He=e(Be.prototype,"safeBtn",[Qt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Fe=e(Be.prototype,"csBtn",[Jt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ke=e(Be.prototype,"fullScreenBtn",[Yt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),je=e(Be.prototype,"satisfyBtn",[te],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),We=e(Be.prototype,"luckyDrawLeftBtn",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$e=e(Be.prototype,"balanceRefreshBtn",[ne],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xe=e(Be.prototype,"signBtn",[ie],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ze=e(Be.prototype,"taskBtn",[ae],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qe=e(Be.prototype,"raffleticketBtn",[se],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qe=e(Be.prototype,"luckyNumBtn",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Je=e(Be.prototype,"shareBtn",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ye=e(Be.prototype,"rechargeBtn",[re],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tn=e(Be.prototype,"downloadBtn",[ce],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),en=e(Be.prototype,"addDesktopBtn",[he],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nn=e(Be.prototype,"redpacketBtn",[ge],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),an=e(Be.prototype,"versionLabel",[ue],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),sn=e(Be.prototype,"accountLabel",[me],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),on=e(Be.prototype,"collectionAni",[pe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ln=e(Be.prototype,"bottomNode",[de],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),rn=e(Be.prototype,"bottomAdBtn",[fe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ie=Be))||Ie));i._RF.pop()}}}));

System.register("chunks:///_virtual/md5.ts",["cc"],(function(t){"use strict";var r;return{setters:[function(t){r=t.cclegacy}],execute:function(){r._RF.push({},"95e53sWtu9NHL3IwGdlP5aT","md5",void 0);t("md5",class{constructor(){this.hexcase=0,this.b64pad=""}hex_md5(t){return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t)))}b64_md5(t){return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t)))}any_md5(t,r){return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)),r)}hex_hmac_md5(t,r){return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(r)))}b64_hmac_md5(t,r){return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(r)))}any_hmac_md5(t,r,h){return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(r)),h)}md5_vm_test(){return"900150983cd24fb0d6963f7d28e17f72"==this.hex_md5("abc").toLowerCase()}rstr_md5(t){return this.binl2rstr(this.binl_md5(this.rstr2binl(t),8*t.length))}rstr_hmac_md5(t,r){var h=this.rstr2binl(t);h.length>16&&(h=this.binl_md5(h,8*t.length));for(var s=Array(16),i=Array(16),d=0;d<16;d++)s[d]=909522486^h[d],i[d]=1549556828^h[d];var _=this.binl_md5(s.concat(this.rstr2binl(r)),512+8*r.length);return this.binl2rstr(this.binl_md5(i.concat(_),640))}rstr2hex(t){try{this.hexcase}catch(t){this.hexcase=0}for(var r,h=this.hexcase?"0123456789ABCDEF":"0123456789abcdef",s="",i=0;i<t.length;i++)r=t.charCodeAt(i),s+=h.charAt(r>>>4&15)+h.charAt(15&r);return s}rstr2b64(t){try{this.b64pad}catch(t){this.b64pad=""}for(var r="",h=t.length,s=0;s<h;s+=3)for(var i=t.charCodeAt(s)<<16|(s+1<h?t.charCodeAt(s+1)<<8:0)|(s+2<h?t.charCodeAt(s+2):0),d=0;d<4;d++)8*s+6*d>8*t.length?r+=this.b64pad:r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>>6*(3-d)&63);return r}rstr2any(t,r){var h,s,i,d,_,m=r.length,e=Array(Math.ceil(t.length/2));for(h=0;h<e.length;h++)e[h]=t.charCodeAt(2*h)<<8|t.charCodeAt(2*h+1);var a=Math.ceil(8*t.length/(Math.log(r.length)/Math.log(2))),n=Array(a);for(s=0;s<a;s++){for(_=Array(),d=0,h=0;h<e.length;h++)d=(d<<16)+e[h],d-=(i=Math.floor(d/m))*m,(_.length>0||i>0)&&(_[_.length]=i);n[s]=d,e=_}var f="";for(h=n.length-1;h>=0;h--)f+=r.charAt(n[h]);return f}str2rstr_utf8(t){for(var r,h,s="",i=-1;++i<t.length;)r=t.charCodeAt(i),h=i+1<t.length?t.charCodeAt(i+1):0,55296<=r&&r<=56319&&56320<=h&&h<=57343&&(r=65536+((1023&r)<<10)+(1023&h),i++),r<=127?s+=String.fromCharCode(r):r<=2047?s+=String.fromCharCode(192|r>>>6&31,128|63&r):r<=65535?s+=String.fromCharCode(224|r>>>12&15,128|r>>>6&63,128|63&r):r<=2097151&&(s+=String.fromCharCode(240|r>>>18&7,128|r>>>12&63,128|r>>>6&63,128|63&r));return s}str2rstr_utf16le(t){for(var r="",h=0;h<t.length;h++)r+=String.fromCharCode(255&t.charCodeAt(h),t.charCodeAt(h)>>>8&255);return r}str2rstr_utf16be(t){for(var r="",h=0;h<t.length;h++)r+=String.fromCharCode(t.charCodeAt(h)>>>8&255,255&t.charCodeAt(h));return r}rstr2binl(t){for(var r=Array(t.length>>2),h=0;h<r.length;h++)r[h]=0;for(h=0;h<8*t.length;h+=8)r[h>>5]|=(255&t.charCodeAt(h/8))<<h%32;return r}binl2rstr(t){for(var r="",h=0;h<32*t.length;h+=8)r+=String.fromCharCode(t[h>>5]>>>h%32&255);return r}binl_md5(t,r){t[r>>5]|=128<<r%32,t[14+(r+64>>>9<<4)]=r;for(var h=1732584193,s=-271733879,i=-1732584194,d=271733878,_=0;_<t.length;_+=16){var m=h,e=s,a=i,n=d;h=this.md5_ff(h,s,i,d,t[_+0],7,-680876936),d=this.md5_ff(d,h,s,i,t[_+1],12,-389564586),i=this.md5_ff(i,d,h,s,t[_+2],17,606105819),s=this.md5_ff(s,i,d,h,t[_+3],22,-1044525330),h=this.md5_ff(h,s,i,d,t[_+4],7,-176418897),d=this.md5_ff(d,h,s,i,t[_+5],12,1200080426),i=this.md5_ff(i,d,h,s,t[_+6],17,-1473231341),s=this.md5_ff(s,i,d,h,t[_+7],22,-45705983),h=this.md5_ff(h,s,i,d,t[_+8],7,1770035416),d=this.md5_ff(d,h,s,i,t[_+9],12,-1958414417),i=this.md5_ff(i,d,h,s,t[_+10],17,-42063),s=this.md5_ff(s,i,d,h,t[_+11],22,-1990404162),h=this.md5_ff(h,s,i,d,t[_+12],7,1804603682),d=this.md5_ff(d,h,s,i,t[_+13],12,-40341101),i=this.md5_ff(i,d,h,s,t[_+14],17,-1502002290),s=this.md5_ff(s,i,d,h,t[_+15],22,1236535329),h=this.md5_gg(h,s,i,d,t[_+1],5,-165796510),d=this.md5_gg(d,h,s,i,t[_+6],9,-1069501632),i=this.md5_gg(i,d,h,s,t[_+11],14,643717713),s=this.md5_gg(s,i,d,h,t[_+0],20,-373897302),h=this.md5_gg(h,s,i,d,t[_+5],5,-701558691),d=this.md5_gg(d,h,s,i,t[_+10],9,38016083),i=this.md5_gg(i,d,h,s,t[_+15],14,-660478335),s=this.md5_gg(s,i,d,h,t[_+4],20,-405537848),h=this.md5_gg(h,s,i,d,t[_+9],5,568446438),d=this.md5_gg(d,h,s,i,t[_+14],9,-1019803690),i=this.md5_gg(i,d,h,s,t[_+3],14,-187363961),s=this.md5_gg(s,i,d,h,t[_+8],20,1163531501),h=this.md5_gg(h,s,i,d,t[_+13],5,-1444681467),d=this.md5_gg(d,h,s,i,t[_+2],9,-51403784),i=this.md5_gg(i,d,h,s,t[_+7],14,1735328473),s=this.md5_gg(s,i,d,h,t[_+12],20,-1926607734),h=this.md5_hh(h,s,i,d,t[_+5],4,-378558),d=this.md5_hh(d,h,s,i,t[_+8],11,-2022574463),i=this.md5_hh(i,d,h,s,t[_+11],16,1839030562),s=this.md5_hh(s,i,d,h,t[_+14],23,-35309556),h=this.md5_hh(h,s,i,d,t[_+1],4,-1530992060),d=this.md5_hh(d,h,s,i,t[_+4],11,1272893353),i=this.md5_hh(i,d,h,s,t[_+7],16,-155497632),s=this.md5_hh(s,i,d,h,t[_+10],23,-1094730640),h=this.md5_hh(h,s,i,d,t[_+13],4,681279174),d=this.md5_hh(d,h,s,i,t[_+0],11,-358537222),i=this.md5_hh(i,d,h,s,t[_+3],16,-722521979),s=this.md5_hh(s,i,d,h,t[_+6],23,76029189),h=this.md5_hh(h,s,i,d,t[_+9],4,-640364487),d=this.md5_hh(d,h,s,i,t[_+12],11,-421815835),i=this.md5_hh(i,d,h,s,t[_+15],16,530742520),s=this.md5_hh(s,i,d,h,t[_+2],23,-995338651),h=this.md5_ii(h,s,i,d,t[_+0],6,-198630844),d=this.md5_ii(d,h,s,i,t[_+7],10,1126891415),i=this.md5_ii(i,d,h,s,t[_+14],15,-1416354905),s=this.md5_ii(s,i,d,h,t[_+5],21,-57434055),h=this.md5_ii(h,s,i,d,t[_+12],6,1700485571),d=this.md5_ii(d,h,s,i,t[_+3],10,-1894986606),i=this.md5_ii(i,d,h,s,t[_+10],15,-1051523),s=this.md5_ii(s,i,d,h,t[_+1],21,-2054922799),h=this.md5_ii(h,s,i,d,t[_+8],6,1873313359),d=this.md5_ii(d,h,s,i,t[_+15],10,-30611744),i=this.md5_ii(i,d,h,s,t[_+6],15,-1560198380),s=this.md5_ii(s,i,d,h,t[_+13],21,1309151649),h=this.md5_ii(h,s,i,d,t[_+4],6,-145523070),d=this.md5_ii(d,h,s,i,t[_+11],10,-1120210379),i=this.md5_ii(i,d,h,s,t[_+2],15,718787259),s=this.md5_ii(s,i,d,h,t[_+9],21,-343485551),h=this.safe_add(h,m),s=this.safe_add(s,e),i=this.safe_add(i,a),d=this.safe_add(d,n)}return[h,s,i,d]}md5_cmn(t,r,h,s,i,d){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(r,t),this.safe_add(s,d)),i),h)}md5_ff(t,r,h,s,i,d,_){return this.md5_cmn(r&h|~r&s,t,r,i,d,_)}md5_gg(t,r,h,s,i,d,_){return this.md5_cmn(r&s|h&~s,t,r,i,d,_)}md5_hh(t,r,h,s,i,d,_){return this.md5_cmn(r^h^s,t,r,i,d,_)}md5_ii(t,r,h,s,i,d,_){return this.md5_cmn(h^(r|~s),t,r,i,d,_)}safe_add(t,r){var h=(65535&t)+(65535&r);return(t>>16)+(r>>16)+(h>>16)<<16|65535&h}bit_rol(t,r){return t<<r|t>>>32-r}}),r._RF.pop()}}}));

System.register("chunks:///_virtual/MsgHandler.ts",["cc","./EmailModel.ts","./CustomEventMgr.ts","./ProtDefine.ts","./ArrayUtil.ts","./LogUtil.ts","./ProtoUtil.ts","./User.ts","./Global.ts","./StorageUtil.ts","./EventDefine.ts","./EnumDefine.ts","./GameUtil.ts","./GameModel.ts","./Language.ts","./ResManager.ts","./HotUpdateDefine.ts","./ResDefine.ts","./CtrlBase.ts","./RaffleTicketModel.ts","./ComponentMgr.ts","./HeadModel.ts","./RegisterModel.ts","./TaskModel.ts","./RedpacketModel.ts","./SignAwdModel.ts","./MainModel.ts","./SurveyModel.ts","./LuckDrawModel.ts","./ActivityModel.ts","./StatisticsDefine.ts","./StatisticsManager.ts","./UIManager.ts","./UIDefined.ts","./DStorage.ts","./SocketManager.ts","./SdkManager.ts","./NativeApi.ts","./AudioManager.ts","./RechargeModel.ts","./LoginManager.ts"],(function(e){"use strict";var t,s,i,o,n,a,r,c,d,h,l,g,u,f,P,p,m,k,G,R,L,T,C,S,I,y,M,A,w,_,v,E,O,B,D,N,b,U,W,F,H,J,x,V,$,Q,j,K,q,z,X,Y,Z,ee;return{setters:[function(e){t=e.JsonAsset,s=e.sys,i=e.cclegacy},function(e){o=e.EmailModel},function(e){n=e.CustomEventMgr},function(e){a=e.Protocol},function(e){r=e.default},function(e){c=e.default},function(e){d=e.ProtoUtil},function(e){h=e.User},function(e){l=e.Global},function(e){g=e.default},function(e){u=e.LoginEvent,f=e.SDKEvent,P=e.EventType,p=e.CMDEvent,m=e.MainEvent},function(e){k=e.StatisticsEvent,G=e.ESUCC,R=e.ECODE,L=e.EMSG_ACTION,T=e.EGENERAL,C=e.APP_TYPE},function(e){S=e.GameUtils},function(e){I=e.GameModel},function(e){y=e.Language,M=e.default},function(e){A=e.ResManager},function(e){w=e.Macro},function(e){_=e.ResDefine},function(e){v=e.CtrlBase},function(e){E=e.RaffleTicketModel},function(e){O=e.default},function(e){B=e.HeadModel},function(e){D=e.RegisterModel},function(e){N=e.TaskModel},function(e){b=e.RedpacketModel},function(e){U=e.SignAwdModel},function(e){W=e.MainModel},function(e){F=e.SurveyModel},function(e){H=e.LuckDrawModel},function(e){J=e.ActivityModel},function(e){x=e.LoginStatistics},function(e){V=e.eventTrig,$=e.StatisticsManager},function(e){Q=e.UIManager},function(e){j=e.UIID},function(e){K=e.default},function(e){q=e.default},function(e){z=e.default},function(e){X=e.default},function(e){Y=e.default},function(e){Z=e.RechargeModel},function(e){ee=e.LoginManager}],execute:function(){i._RF.push({},"24b1a/2FHxHlrBHoW/m4zr1","MsgHandler",void 0);class te{constructor(e,t){this.func=void 0,this.target=void 0,this.func=e,this.target=t}}class se{constructor(e,t){this.handler=void 0,this.target=void 0,this.listeners=[],this.handler=e,this.target=t}}class ie extends v{static Instance(){return this._instance||(this._instance=new ie)}constructor(){super(),this.handler=new Map,this.bonusTimeOut=-1,q.getInstance().registerMsgListener(a.Heart,this.s2cheart,this),this.addProtoListener(a.Heart,this.s2cheart,this),this.addProtoListener(a.Reconnect,this.s2creconnect,this),this.addProtoListener(a.Login,this.s2clogin,this),this.addProtoListener(a.Guester,this.s2cGesterLogin,this),this.addProtoListener(a.Logout,this.s2clogout,this),this.addProtoListener(a.GameList,this.s2cgamelist,this),this.addProtoListener(a.GuesterGameList,this.s2CGesterGameList,this),this.addProtoListener(a.CollectGame,this.s2ccollectgame,this),this.addProtoListener(a.GetBonus,this.s2cgetbonus,this),this.addProtoListener(a.PayBonus,this.s2cpaybonus,this),this.addProtoListener(a.ChangePassWD,this.s2cchangepasswd,this),this.addProtoListener(a.EditInfo,this.s2ceditinfo,this),this.addProtoListener(a.RechargeInfo,this.s2crechargeinfo,this),this.addProtoListener(a.GetEmail,this.s2cgetemail,this),this.addProtoListener(a.DealEmail,this.s2cdeleteemail,this),this.addProtoListener(a.RegisterAccount,this.s2cregisteraccount,this),this.addProtoListener(a.GetVerifica,this.s2cgetverifica,this),this.addProtoListener(a.GetMoney,this.s2cgetmoney,this),this.addProtoListener(a.CheckRedPacket,this.s2ccheckredpacket,this),this.addProtoListener(a.GetRedPacket,this.s2cgetredpacket,this),this.addProtoListener(a.GetSignProgress,this.s2cgetsignprogress,this),this.addProtoListener(a.CheckSignAward,this.s2cchecksignaward,this),this.addProtoListener(a.GetSignAward,this.s2cgetaward,this),this.addProtoListener(a.GetScoreTip,this.s2cgetscore,this),this.addProtoListener(a.SetPassword,this.s2csetPassword,this),this.addProtoListener(a.Pemberian,this.s2pemberian,this),this.addProtoListener(a.Coffer,this.s2ccoffer,this),this.addProtoListener(a.GetBank,this.s2cgetBank,this),this.addProtoListener(a.StopToUpdate,this.s2cstoptoupdate,this),this.addProtoListener(a.RestrictToGame,this.s2crestricttogame,this),this.addProtoListener(a.GetRank,this.s2cgetrank,this),this.addProtoListener(a.RegisterType,this.s2cregistertype,this),this.addProtoListener(a.GameBonus,this.s2cgamebonus,this),this.addProtoListener(a.MatchBalance,this.s2cmatchbalance,this),this.addProtoListener(a.InitialMatchBalance,this.s2cinitialmatchbalance,this),this.addProtoListener(a.Newrechargeinfo,this.s2cNewrechargeinfo,this),this.addProtoListener(a.BankRecharge,this.s2cbankRecharge,this),this.addProtoListener(a.EleRecharge,this.s2celeRecharge,this),this.addProtoListener(a.Cashinfo,this.s2cgetCashInfo,this),this.addProtoListener(a.CashRecord,this.s2cgetCashRecord,this),this.addProtoListener(a.BindBankCard,this.s2cBindBankCard,this),this.addProtoListener(a.Cash,this.s2cCash,this),this.addProtoListener(a.DeleteRecord,this.s2cCashRecordDelete,this),this.addProtoListener(a.Notice,this.s2cNote,this),this.addProtoListener(a.GetCode,this.s2cGetCode,this),this.addProtoListener(a.Transactions,this.s2cTransactions,this),this.addProtoListener(a.FacebookLogin,this.s2cfaceBookLogin,this),this.addProtoListener(a.FacebookIsOpen,this.s2cFaceBookIsOpen,this),this.addProtoListener(a.AwardInfo,this.s2cAwardInfo,this),this.addProtoListener(a.WinAwardInfo,this.s2cWinAwardInfo,this),this.addProtoListener(a.GetTreasureChest,this.s2cGetTreasureChest,this),this.addProtoListener(a.IsOpenLuckDrak,this.s2cIsOpenLuckDrak,this),this.addProtoListener(a.ActivityADProto,this.s2cRecActivityAD,this),this.addProtoListener(a.CheckTokenProto,this.s2cRecCheckToken,this),this.addProtoListener(a.CheckCustomerService,this.s2cRecCustomerServiceInfo,this),this.addProtoListener(a.RTGetRTWinningList,this.s2cRTGetRTWinningList,this),this.addProtoListener(a.RTGetJackPotAndMyTicket,this.s2cRTGetJackPotAndMyTicket,this),this.addProtoListener(a.RTRunALottery,this.s2cRTRunALottery,this),this.addProtoListener(a.RTReceive,this.s2cRTReceive,this),this.addProtoListener(a.GetTaskState,this.s2cGetTaskState,this),this.addProtoListener(a.GetTaskData,this.s2cGetTaskData,this),this.addProtoListener(a.GetTaskCoin,this.s2cGetTaskReward,this),this.addProtoListener(a.GetTaskRecord,this.s2cGetTaskRecord,this),this.addProtoListener(a.WithdrawalBindBankCard,this.s2cWithdrawalBindBankCard,this),this.addProtoListener(a.WithdrawalDeleteBankCard,this.s2cWithdrawalDeleteBankCard,this),this.addProtoListener(a.TryAccount,this.s2cTryAccount,this),this.addProtoListener(a.GetOrChangeHead,this.s2cGetOrChangeHead,this),this.addProtoListener(a.GetNotice,this.s2cGetNotice,this),this.addProtoListener(a.FlushScore,this.s2cflushScore,this),this.addProtoListener(a.TrialInfo,this.s2cTrialInfo,this),this.addProtoListener(a.TrialReceive,this.s2cTrialReceive,this),this.addProtoListener(a.Switch,this.s2cSwitch,this),this.addProtoListener(a.Survey,this.s2cSurvey,this),this.addProtoListener(a.Share,this.s2cShare,this),this.addProtoListener(a.ThirdGameUrl,this.s2cgetThirdGameUrl,this)}start(){throw new Error("Method not implemented.")}addProtoListener(e,t,s=null,i=0){this.handler.set(e,new se(t,s))}registerListener(e,t,s){let i=this.handler.get(e);i?i.listeners.push(new te(t,s)):console.log("handler param not exist",e)}unregisterListener(e,t,s){let i=this.handler.get(e);i?r.deleteElements(i.listeners,new te(t,s),((e,t)=>e.func==t.func&&e.target==t.target)):console.log("handler param not exist",e)}handleData(e,t){let s=this.handler.get(e);if(!s)return void c.warn("未注册的协议号",e);let i=s.handler.bind(s.target)(t);for(let e=s.listeners.length-1;e>=0;--e){let t=s.listeners[e];t.target?t.func.apply(t.target,[i]):t.func(i)}}c2sheart(){d.sendProto(a.Heart)}s2cheart(e){l.svrTimeMS=e.time}c2sreconnect(){d.sendProto(a.Reconnect,{token:h.instance.token})}s2creconnect(e){e.succ||l.gameCtrl.LogOut()}guesterLogin(e){d.sendProto(a.Guester,{userid:e,dev_id:l.osid,model:"",os:"",package:l.packageName,channel_id:l.appPlatformId})}s2cGesterLogin(e){n.fire(u.On_Guester_Login,e)}c2sGetGuesterGame(){d.sendProto(a.GuesterGameList)}s2CGesterGameList(e){c.debug("s2CGesterGameList"),e.succ}s2clogin(e){if(c.debug("s2clogin"),1==e.succ){if(h.instance.init(e),h.instance.stopServerInfo=null,h.instance.isGuest=!1,V(k.LOGIN_SUCCESS),e.appAd&&(l.appAd=e.appAd,this.getModel(I).initGameAD(e.appAd)),e.coinCFG&&"null"!=e.coinCFG){let t=JSON.parse(e.coinCFG);1!=t.ctl_area&&(l.point="1"==t.is_point?2:0,l.thousandPoint="1"==t.is_separation)}$.getInstance().loginReport(x.loginSuccess),$.getInstance().loginReport(x.loginTimes,!0)}else e.locktime_left>0||e.code;n.fire(f.LOGIN_SUCCESS,e)}c2sgetmoney(){d.sendProto(a.GetMoney)}s2cgetmoney(e){if(1==e.succ){let t=e.money;h.instance.money=t,n.fire(P.OnChangeUserInfo,t),-1==e.money&&setTimeout((function(){ie.Instance().c2sgetmoney()}),1e3),e.trial_money_num&&e.trial_money}}c2slogout(){d.sendProto(a.Logout)}s2clogout(e){if(e.succ==G.SUCC)if(e.code===R.INVALID_REQUEST){let e={content:y.getString(110013),okFunc:()=>{l.gameCtrl.LogOut()},singleBtn:!0};Q.getInstance().open(j.UIAlert,e)}else l.gameCtrl.LogOut()}c2sgamelist(){V(k.GET_REQUEST_START),d.sendProto(a.GameList)}s2cgamelist(e){1==e.succ?(V(k.GET_REQUEST_SUCCESS),this.getModel(I).initGameInfo(e),n.fire(P.GUESTER_GAME_LIST,this.getModel(I))):V(k.GET_REQUEST_FAIL)}c2scollectgame(e,t,s){d.sendProto(a.CollectGame,{action:t,gameid:e,gametype:s})}s2ccollectgame(e){}c2sgetbonus(){d.sendProto(a.GetBonus)}s2cgetbonus(e){1==e.succ&&n.fire(P.OnGetBonus,e.bonus)}s2cpaybonus(e){n.fire(P.OnPayBonus,e);let t=`<font color=0xfe03ef>${e.message.account}</font>`,s=`<font color=0xf9f811>${S.formatMoney(e.bonus)}</font>`,i=M.getInstance().language.getFormatString(108001,[t,s]);n.fire(P.OnAddNotice,{type:2,content:i})}c2schangepasswd(e,t,s){d.sendProto(a.ChangePassWD,{oldpasswd:e,passwd:t,passwd2:s})}s2cchangepasswd(e){if(1==e.succ){O.showTipsById(107008),h.instance.password=e.passwd;let t=h.instance;t.account&&t.password&&g.saveAccount(t.account,t.password),n.fire(P.OnChangePassWord,e)}}c2seditinfo(e){d.sendProto(a.EditInfo,{mobile:e})}s2ceditinfo(e){1==e.succ&&n.fire(P.OnEditInfo,e)}c2srechargeinfo(){d.sendProto(a.RechargeInfo)}s2crechargeinfo(e){1==e.succ&&n.fire(P.OnGetRechargeInfo,e)}c2sgetemail(){d.sendProto(a.GetEmail)}s2cgetemail(e){this.getModel(o).setEmailData(e||[])}c2sEmailAction(e,t=L.READ){d.sendProto(a.DealEmail,{action:t,id:e})}s2cdeleteemail(e){this.getModel(o).dealEmail(e.id,e.action)}c2sregisteraccount(e,t,s,i,o,n,r,c){d.sendProto(a.RegisterAccount,{mobile:e||"",verifica:t||"",userid:s||"",passwd:i,passwd2:o,agentcode:n||"",id:r,imgcode:c,dev_id:l.osid,channel_id:l.appPlatformId})}s2cregisteraccount(e){let t="IS_FIRST_OPEN_REG";1!=e.succ||K.getItem(t,"null")||K.setItem(t,"1"),n.fire(P.OnRegister,e)}c2sgetverifica(e,t,s,i,o){0==e?d.sendProto(a.GetVerifica,{mobile:t,id:s,imgcode:i,code:o,type:e}):1==e?d.sendProto(a.GetVerifica,{type:e}):2==e&&d.sendProto(a.GetVerifica,{mobile:t,code:o,type:e})}s2cgetverifica(e){n.fire(P.OnGetVerifica,e)}c2scheckredpacket(){d.sendProto(a.CheckRedPacket)}s2ccheckredpacket(e){if(1==e.succ){let t=e;t.value?(this.getModel(b).setRedpacketInfo(t.value,t.exptime),this.getModel(b).allowtoget=!0):(this.getModel(b).allowtoget=!1,n.fire(p.CLOSE_REDPACKET_CMD)),n.fire(P.OnCheckRedPacket,t.value)}else n.fire(p.CLOSE_REDPACKET_CMD)}c2sgetredpacket(){d.sendProto(a.GetRedPacket)}s2cgetredpacket(e){1==e.succ&&n.fire(P.OnGetRedPacket,e)}c2sgetsignprogress(){d.sendProto(a.GetSignProgress)}s2cgetsignprogress(e){1==e.succ&&this.getModel(U).onProgressInfo(e)}c2schecksignaward(e){d.sendProto(a.CheckSignAward,{stageId:e})}s2cchecksignaward(e){if(1==e.succ){this.getModel(U).setSignAwd(e.rewardlist)}else n.fire(p.CLOSE_SIGN_AWD_CMD)}c2sgetaward(e){d.sendProto(a.GetSignAward,{stageId:e+1})}s2cgetaward(e){if(1==e.succ){this.getModel(U).onGetSignAwd(e)}}s2cgetscore(e){this.getModel(W).score+=parseFloat(e.money),n.fire(P.OnGetScore,e.money)}c2sgetscore(){d.sendProto(a.GetScoreTip)}s2cstoptoupdate(e){if(1==h.instance.vistor||h.instance.isWhite)return;h.instance.stopServerInfo=e;let t=h.instance.stopServerStart,s=h.instance.stopServerEnd,i=M.getInstance().language.formatString(y.getString(108002),[t,s]);ee.getInstance().stopSvr(i)}s2crestricttogame(e){if(1!=h.instance.vistor&&(h.instance.restrictInfo=e,h.instance.isRestrictAll)){let e=h.instance.restrictStart,t=h.instance.restrictEnd,s={type:1,content:M.getInstance().language.getFormatString(107042,[e,t])};n.fire(P.OnAddNotice,s)}}c2sgetrank(e){d.sendProto(a.GetRank,{type:e})}s2cgetrank(e){1==e.succ&&e.res&&n.fire(P.OnGetRank,e)}c2sregistertype(e=2){d.sendProto(a.RegisterType,{action:e})}s2cregistertype(e){c.debug("s2cregistertype,"+JSON.stringify(e)),$.getInstance().loginReport(x.registConfig),e.regButton?(c.debug("RegisterModel:",JSON.stringify(this.getModel(D))),this.getModel(D).isOpenRegister(e)):this.getModel(D).openRegisterType(e)}c2sgamebonus(){I.jackPotValue&&d.sendProto(a.GameBonus,{gameid:I.jackPotValue})}s2cgamebonus(e){1==e.succ&&this.getModel(I).updateGameBonus(e.data)}c2ssetPassword(e,t){d.sendProto(a.SetPassword,{passwd:e,passwd2:t})}s2csetPassword(e){}c2spemberian(e,t,s){d.sendProto(a.Pemberian,{account:e,amount:t,passwd:s})}s2pemberian(e){}c2smatchbalance(){d.sendProto(a.MatchBalance)}s2cmatchbalance(e){}c2sinitialmatchbalance(){d.sendProto(a.InitialMatchBalance)}s2cinitialmatchbalance(e){}c2scoffer(e,t){d.sendProto(a.Coffer,{cunorqu:e,score:t})}s2ccoffer(e){1==e.succ&&(h.instance.bank=e.deposit,h.instance.money=e.balance),n.fire(P.OnChangeUserInfo,e)}c2sgetBank(){d.sendProto(a.GetBank)}s2cgetBank(e){1==e.succ&&(h.instance.bank=e.score,n.fire(P.OnGetBank,e))}c2sNewrechargeinfo(){d.sendProto(a.Newrechargeinfo)}s2cNewrechargeinfo(e){e.succ==G.SUCC&&this.getModel(Z).initData(e.message)}chargeinfoPreloadFun(e){}c2sbankRecharge(e,t,s,i,o,n,r){d.sendProto(a.BankRecharge,{paymode:e,amount:n,account:s,bank_id:i,currency_code:o,score:t,flag:r})}s2cbankRecharge(e){1==e.succ?n.fire(P.RechargeOk,e):n.fire(P.RechargeError,e)}c2seleRecharge(e,t,s,i,o,n){d.sendProto(a.EleRecharge,{remark:e,amount:o,pay_id:s,currency_code:i,score:t,flag:n})}s2celeRecharge(e){1==e.succ?n.fire(P.RechargeOk,e):n.fire(P.RechargeError,e)}c2sgetCashInfo(){d.sendProto(a.Cashinfo)}s2cgetCashInfo(e){n.fire(P.OnGetCashInfo,e)}c2sgetCashRecord(){d.sendProto(a.CashRecord)}s2cgetCashRecord(e){1==e.succ&&n.fire(P.OnGetCashRecord,e)}c2sCash(e,t,s,i,o=1){let n=parseFloat((e-s).toFixed(2));d.sendProto(a.Cash,{amount:n,bank_id:i,paymode:o,total_amount:e,fee:s,score:t})}s2cCash(e){e.succ?n.fire(P.CashOk):O.showTipsById(11e4+e.code)}c2sBindBankCard(e,t,s){d.sendProto(a.BindBankCard,{bank_name:s,name:e,cardId:t})}s2cBindBankCard(e){1==e.succ&&n.fire(P.OnBindBank,e)}c2sCashRecordDelete(e){d.sendProto(a.DeleteRecord,{log_id:e})}s2cCashRecordDelete(e){ie.Instance().c2sgetCashRecord()}s2cNote(e){let s;if(1==e.message_type||2==e.message_operator)s={type:1,content:e.message,message_operator:e.message_operator,times:1,insert:-1,messagetype:T.NOTICE},n.fire(P.OnAddNotice,s);else if(5==e.message_operator){let t=M.getInstance().language.getFormatString(108001,[" "+e.account+" "," "+e.bonus]);s={type:2,content:t,messagetype:T.EHANDSEL},n.fire(P.OnAddNotice,s)}else A.Instance().load(w.BUNDLE_RESOURCES,_.LANGUAGE_APPANNJSON_LOCATION,t,(()=>{}),(e=>{let t=e.data,i=t.json;if(!i)return;let o=t.code,a=i[o];if(!a)return;if("20010"==o){let e=l.getGameName(t.args[1]);t.args[1]=e||t.args[1]}let r=M.getInstance().language.formatString(a[l.language],t.args);s={type:1,content:r,message_operator:t.message_operator,times:t.rollcount||a.times,insert:a.power,messagetype:T.EHANDSEL},n.fire(P.OnAddNotice,s)}))}c2sGetCode(){d.sendProto(a.GetCode)}s2cGetCode(e){let t={type:e.type,codeId:e.id,img:e.img};n.fire(P.GetCode,t)}c2sTransactions(){d.sendProto(a.Transactions)}s2cTransactions(e){n.fire(P.Transactions,e)}c2sfaceBookLogin(e,t,s="",i=""){}s2cfaceBookLogin(e){}s2clogin_faceBook(e,t,s,i){}login(e,t,i,o,n="",r=""){d.sendProto(a.Login,{device_type:e,device_token:t,model:"",os:s.os,userid:i,passwd:o,facebook_uuid:n,facebook_token:r,package:l.packageName,channel_id:l.appPlatformId,app_type:C.cocos}),h.instance.password=o,$.getInstance().loginReport(x.loginStart),$.getInstance().setStartTime(x.loginTimes)}c2sFaceBookIsOpen(){d.sendProto(a.FacebookIsOpen)}s2cFaceBookIsOpen(e){1==e.succ&&this.getModel(H).init(e.awardlist,e.activityInfo[0])}c2sAwardInfo(){d.sendProto(a.AwardInfo)}s2cAwardInfo(e){1==e.succ&&this.getModel(H).init(e.awardlist,e.activityInfo[0])}c2sWinAwardInfo(e){d.sendProto(a.WinAwardInfo,{account:e})}s2cWinAwardInfo(e){1==e.succ&&n.fire(P.WinAwardInfo,e)}c2sGetTreasureChest(){d.sendProto(a.GetTreasureChest,{status:"3"})}s2cGetTreasureChest(e){1==e.succ?this.getModel(H).s2cSvrData(e.mode):Q.getInstance().closeToUI(j.UILuckyDrawChoose)}c2sIsOpenLuckDrak(){d.sendProto(a.IsOpenLuckDrak)}s2cIsOpenLuckDrak(e){1==e.succ?n.fire(P.IsOpenLuckDrak,e):n.fire(p.CLOSE_BOX_CMD)}c2sGetActivityAD(){d.sendProto(a.ActivityADProto)}s2cRecActivityAD(e){let t=e.ad_url||[];this.getModel(J).setAdArr(t)}c2sCheckToken(e){d.sendProto(a.CheckTokenProto,{token:e})}s2cRecCheckToken(e){let t=e;if(1==t.succ){if(h.instance.init(t),h.instance.account=t.username,h.instance.stopServerInfo=null,e.coinCFG&&"null"!=e.coinCFG){let t=JSON.parse(e.coinCFG);1!=t.ctl_area&&(l.point="1"==t.is_point?2:0,l.thousandPoint="1"==t.is_separation)}n.fire(P.OnLoginSuccess,e),n.fire(f.LOGIN_SUCCESS,e),V(k.LOGIN_SUCCESS)}else g.removeUserToken(),n.fire(f.LOGIN_FAIL)}c2sCheckCustomerService(){d.sendProto(a.CheckCustomerService)}s2cRecCustomerServiceInfo(e){let t=e;1==t.succ&&n.fire(m.ON_ENTER_IM,t.res)}c2sRTGetRTWinningList(){d.sendProto(a.RTGetRTWinningList)}s2cRTGetRTWinningList(e){let t=e;this.getModel(E).setWinningListORHistorical(t.mode)}c2sRTGetJackPotAndMyTicket(){d.sendProto(a.RTGetJackPotAndMyTicket)}s2cRTGetJackPotAndMyTicket(e){let t=e;this.getModel(E).setJackPotAndMyTicket(t.mode)}c2sRTRunALottery(){d.sendProto(a.RTRunALottery)}s2cRTRunALottery(e){let t=e;0!=t.succ?this.getModel(E).setRunALottery(t.mode):c.log("抽奖券活动未开启！")}c2sRTReceive(){d.sendProto(a.RTReceive)}s2cRTReceive(e){let t=e;1==t.succ?this.getModel(E).setReceive(t.mode):O.showTipsById(110023)}c2sGetTaskState(){d.sendProto(a.GetTaskState)}s2cGetTaskState(e){if(1!=e.succ)return;this.getModel(N).onGetTaskState(e)}c2sGetTaskReward(e,t,s,i){d.sendProto(a.GetTaskCoin,{id:e,action_type:s,type:t,receive_num:i})}s2cGetTaskReward(e){if(1!=e.succ)return;this.getModel(N).onGetTaskCoin(e)}c2sGetTaskData(e=!1,t=!0){d.sendProto(a.GetTaskData)}s2cGetTaskData(e){if(1!=e.succ)return;this.getModel(N).onGetTaskData(e)}c2sGetTaskRecord(e,t,s){let i={type:e,page:t,pagenum:s};d.sendProto(a.GetTaskRecord,i)}s2cGetTaskRecord(e){if(1!=e.succ)return;this.getModel(N).onGetTaskRecord(e)}c2sEnterGameCount(e){d.sendProto(a.EnterGameCount,{enter_id:e})}c2sActionReporting(e){d.sendProto(a.ActionReporting,{func:e,channel_id:l.appPlatformId,dev_id:l.osid})}c2sActionReportingWithOutToken(e){if(!s.isNative)return;let t="IS_FIRST_OPEN_APP_"+e;if(!K.getItem(t,null)){K.setItem(t,"1");let s={func:e,channel_id:l.appPlatformId};l.channel&&(s.from_id=l.channel),d.sendProto(a.ActionReportingWithOutToken,s)}}c2sGuideIds(e){let t={guide_id:e};d.sendProto(a.GuideIds,t)}c2sWithdrawalBindBankCard(e){d.sendProto(a.WithdrawalBindBankCard,e)}s2cWithdrawalBindBankCard(e){}c2sWithdrawalDeleteBankCard(e){d.sendProto(a.WithdrawalDeleteBankCard,{bank_id:e})}s2cWithdrawalDeleteBankCard(e){}c2sGetOrChangeHead(e){let t={avatar:e};d.sendProto(a.GetOrChangeHead,t)}s2cGetOrChangeHead(e){this.getModel(B).getHeadData(e.avatar_url)}c2sTryAccount(e){d.sendProto(a.TryAccount,{type:e})}s2cTryAccount(e){e&&(O.showTipsById(200009),this.c2sCheckToken(h.instance.token))}c2sGetNotice(){d.sendProto(a.GetNotice)}async s2cGetNotice(e){if(1==e.succ&&e.data){let t=e.data.filter((e=>e.alias==l.packageName||""==e.alias));t.length&&n.fire(P.OnGetNotice,t)}}c2sEnterGameReporting(e){}c2sADReporting(e,t,s){let i={ad_id:e,ad_type:t,game_id:s};d.sendProto(a.AdReporting,i)}c2sflushScore(){let e={token:h.instance.token};d.sendProto(a.FlushScore,e)}s2cflushScore(e){1==e.succ?(ie.Instance().c2sgetmoney(),O.showTipsById(200034)):O.showTipsById(200035)}c2sgetThirdGameUrl(e){let t={token:h.instance.token,vendor:e};d.sendProto(a.ThirdGameUrl,t)}s2cgetThirdGameUrl(e){let t=`${l.server}/ct855/index.html`;if(1==e.succ&&e.url)if(s.isNative){let s=`${t}?v=1&title=${encodeURIComponent(e.vendor)}&url=${encodeURIComponent(e.url)}`;X.lockOrientation(!0),Y.Instance().stopMusic(),z.openWebView(s)}else{let s=`${t}?v=1&title=${e.vendor}&url=${e.url}`;K.setItem("GAMEURL",e.url),O.showWebIframe(s)}}c2sTrialInfo(e){d.sendProto(a.TrialInfo,{activeType:e})}s2cTrialInfo(e){}c2sTrialReceive(e,t){d.sendProto(a.TrialReceive,{activeType:e,canRec:t})}s2cTrialReceive(e){}c2sSwitch(){let e={package:l.packageName};d.sendProto(a.Switch,e)}s2cSwitch(e){this.getModel(W).switch=e.switch_list}c2sConvertApp(e,t,s){let i={type:e,plat:t,system:s};d.sendProto(a.ConvertApp,i)}c2sSurvey(e){d.sendProto(a.Survey,e)}s2cSurvey(e){this.getModel(F).s2cSurvey(e)}c2sShare(){let e={token:h.instance.token};d.sendProto(a.Share,e)}s2cShare(e){n.fire(P.Share_Details,e)}}e("default",ie),ie._instance=null,i._RF.pop()}}}));

System.register("chunks:///_virtual/NativeApi.ts",["cc","./EventDefine.ts","./GameDownloadMgr.ts","./Global.ts","./LogUtil.ts","./PlatformApi.ts","./CustomEventMgr.ts","./AudioManager.ts","./MsgHandler.ts","./EnumDefine.ts"],(function(e){"use strict";var t,a,o,i,c,l,n,s,r,f,S,d,g;return{setters:[function(e){t=e.sys,a=e.native,o=e.game,i=e.cclegacy},function(e){c=e.EventType},function(e){l=e.GameDownloadMgr},function(e){n=e.Global},function(e){s=e.default},function(e){r=e.default},function(e){f=e.CustomEventMgr},function(e){S=e.default},function(e){d=e.default},function(e){g=e.WEBVIEW_STATE}],execute:function(){i._RF.push({},"68f23nf9zVGypZFzJaZwyq9","NativeApi",void 0);class I extends r{init(){}handlerPlatformMessage(e){let t=e;t=JSON.parse(decodeURIComponent(e));let a=t.class,o=t.function,i=t.args;if(s.debug("handlerWebJsToNativeMessage,type:"+a+"func->"+o),Log.d(`====handlerPlatformMessage======${JSON.stringify(t)}`),"Webview"==a&&"hide"==o){let e="ThirdPartyWV",t="CHAT";!i||i.id!=e&&i.id!=t?(n.gameCtrl.gameBack(),setTimeout((()=>{I.closeWebView()}),100)):(n.gameCtrl.gameBack(!1),setTimeout((()=>{i.id==e&&d.Instance().c2sflushScore(),I.closeWebView(),I.lockOrientation(!1),S.Instance().playMusicBG()}),200))}else if("Webview"==a&&"eventListener"==o){let e=i.event;s.log("webview event,"+e),e==g.show&&(n.gameCtrl.mainUITs.node.active=!1),f.fire(c.WEBVIEW_STATE,e)}else if("Download"==a&&"eventListener"==o)l.Instance().onDownloadMsg(i);else if("Zip"==a&&"decompress"==o)l.Instance().onDecompress(i);else if("Device"==a&&"info"==o)f.fire(c.NATIVE_GET_INFO,i),i&&i.info&&(n.deviceInfo=JSON.parse(i.info)),Log.d(`===Global.deviceInfo 1=====${n.deviceInfo}`);else if("Storage"==a&&"setItem"==o){s.debug("handlerPlatformMessage args:"+JSON.stringify(i));let e=i.key,t=i.value;if("musicSwitch"==e){let e="true"==t;n.gameCtrl.gameBackAndSaveMusicSwitch(e)}}}static getInfo(){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","getInfo"):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","getInfo","()V")}openURL(e){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","openURL:",e):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","openURL","(Ljava/lang/String;)V",e)}quit(){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","quit",""):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","quit","()V")}openWebView(e){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","openWebView:",e):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","openWebView","(Ljava/lang/String;)V",e)}setClipboard(e){return t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","setClipboard:",e):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","setClipboard","(Ljava/lang/String;)V",e),!0}static lockOrientation(e){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","lockOrientation:",e?"1":"0"):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","lockOrientation","(Z)V",e)}static nativeLoginSucc(e){}static nativeLoginFail(){}static closeWebView(){s.debug("closeWebView"),n.gameCtrl.mainUITs.node.active=!0,t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","closeWebView"):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","closeWebView","()V")}static createDownload(e,o,i,c,l,r,f){s.debug("createDownload"),n.gameCtrl.mainUITs.node.active=!0,t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","createDownload:url:fileName:timeout:priority:retry:retryInterval:",e,o,i,120,0,3,30):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","createDownload","(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIII)V",e,o,i,120,0,3,30)}static startDownload(e){s.debug("startDownload in api:"+e),t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","startDownload:",""):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","startDownload","(Ljava/lang/String;)V",e)}static downloadPause(e){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","downloadPause:",""):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","downloadPause","(Ljava/lang/String;)V",e)}static downloadResume(e){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","downloadResume:",""):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","downloadResume","(Ljava/lang/String;)V",e)}static downloadAbort(e){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","downloadAbort:",e):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","downloadAbort","(Ljava/lang/String;)V",e)}static unZipGame(e,o,i){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","zipDecompress:fileName:targetPath:",e,o,i):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","zipDecompress","(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V",e,o,i)}static downloadFile(e,o){t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","downloadFile:fileName:",e,o):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","downloadFile","(Ljava/lang/String;Ljava/lang/String;)V",e,o)}restartGame(){o.restart()}static recordException(e){e&&""!==e.trim()&&(t.os==t.OS.IOS?a.reflection.callStaticMethod("JsbInterface","recordException:",e):t.os==t.OS.ANDROID&&a.reflection.callStaticMethod("com/cocos/game/JsbInterface","recordException","(Ljava/lang/String;)V",e))}static writeStringToFile(e,o){if(!t.isNative)return;let i=I.getStorePath();a.fileUtils.isDirectoryExist(i)||a.fileUtils.createDirectory(i);let c=a.fileUtils.writeStringToFile(e,i+o);Log.d(`==writeStringToFile1==${i+o},  ${c}===`)}static getStringFromFile(e){if(!t.isNative)return;let o=I.getStorePath()+e,i=a.fileUtils.isFileExist(o);if(Log.d(`====getStringFromFile====${o}, ${i}`),i)return a.fileUtils.getStringFromFile(o);Log.w(`getWriteFile not find file: ${e}`)}static removeFile(e){if(!t.isNative)return;let o=I.getStorePath()+e,i=a.fileUtils.isFileExist(o);if(Log.d(`====removeFile====${o}, ${i}`),i)return a.fileUtils.removeFile(o);Log.w(`removeFile not find file: ${e}`)}static getStorePath(){let e=n.appPlatformId?n.appPlatformId+"/":"";return(a.fileUtils?a.fileUtils.getWritablePath():"/")+e}}e("default",I),I.loginSuccCb=null,I.loginFailCb=null,i._RF.pop()}}}));

System.register("chunks:///_virtual/NetAdaptor.ts",["cc","./EnumDefine.ts","./ProtDefine.ts","./LoginManager.ts","./MsgHandler.ts","./User.ts","./Language.ts","./Singleton.ts","./UIUtils.ts","./SocketManager.ts"],(function(t){"use strict";var e,n,s,i,o,a,r,c,u,g,d,l;return{setters:[function(t){e=t.cclegacy},function(t){n=t.ESUCC,s=t.ECODE},function(t){i=t.Protocol},function(t){o=t.LoginManager},function(t){a=t.default},function(t){r=t.User},function(t){c=t.default,u=t.Language},function(t){g=t.Singleton},function(t){d=t.default},function(t){l=t.default}],execute:function(){e._RF.push({},"3c96cDtvnZCir3lVlzLZeWg","NetAdaptor",void 0);class h extends(g()){constructor(...t){super(...t),this.timeout1=null,this.curCode=i.Heart,this.curFunc=null,this.isShowLoading=!1}sendMessage(t,e){l.getInstance().sendMessage(t,e)}recvMessage(t,e){a.Instance().handleData(t,e),this.onErrorHandler(t,e),this.clearTimeOut(t)}setNetTimeOut(t){l.getInstance().sendMessage(i.Heart),this.curFunc=t,this.timeout1=setTimeout((()=>{d.showLoading(),this.isShowLoading=!0}),1e3)}clearTimeOut(t){t==this.curCode?this.timeout1&&(clearTimeout(this.timeout1),this.timeout1=null,this.curFunc&&this.curFunc(),this.curFunc=null):this.closeLoadingView()}closeLoadingView(){this.isShowLoading&&(d.hideLoading(),this.isShowLoading=!1)}onErrorHandler(t,e){if(e&&e.succ==n.FAIL)switch(e.code){case s.INVALID_REQUEST:Log.d(`协议 ${t} >>>>无效请求`);break;case s.STOP_SERVER:if(1==r.instance.vistor||r.instance.isWhite||e.white)return;r.instance.stopServerInfo={succ:1,code:1,is_all:1,gameid:"",starttime:e.starttime,endtime:e.endtime};let n=r.instance.stopServerStart,i=r.instance.stopServerEnd,a=c.getInstance().language.formatString(u.getString(108002),[n,i]);o.getInstance().stopSvr(a,!0),Log.d(`协议 ${t} >>>> 停服中`);break;default:d.showError(t,e.code)}}}t("NetAdaptor",h),h.bAdaptor=!0,e._RF.pop()}}}));

System.register("chunks:///_virtual/NetHttp.ts",["cc","./LogUtil.ts","./HttpRespPack.ts"],(function(t){"use strict";var s,e,n;return{setters:[function(t){s=t.cclegacy},function(t){e=t.default},function(t){n=t.HttpRespPack}],execute:function(){s._RF.push({},"a8f2330KEZGgbnEMljHnXXx","NetHttp",void 0);t("default",class{constructor(){this.xhr=null,this.onProgressCb=null,this.onSuccCb=null,this.onFailCb=null,this.respThisArg=null}init(t){this.respThisArg=t;let s=new XMLHttpRequest;this.xhr=s,s.onreadystatechange=()=>{if(4===s.readyState)if(s.status>=200&&s.status<400){if(s.response){let t=null;try{t=JSON.parse(s.response)}catch(t){e.warn("http error data!",s.response)}this.onSucc(t)}}else this.onFail()},s.onprogress=this.onProgress,s.onabort=()=>{e.log("http resquest abort!")},s.ontimeout=()=>{e.log("http request time out ++++++++++++"),this.onFail()},s.onerror=()=>{e.log("http request warn +++++++++"),this.onFail()}}sendPost(t,s,n,r){this.onSuccCb=n,this.onFailCb=r,this.xhr.open("POST",t),this.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),e.log(`send post: url=${t},   data=${s}`);try{this.xhr.send(s)}catch(t){e.warn("send post warn")}}sendGet(t,s,n,r){this.onSuccCb=n,this.onFailCb=r,e.debug("sendGet, url:"+t),this.xhr.open("GET",t),this.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8");try{this.xhr.send(s)}catch(t){e.warn("send get warn")}}onProgress(t){if(t.lengthComputable)var s=t.loaded/t.total;this.onProgressCb&&this.onProgressCb(s)}onFail(){if(this.onFailCb){let t=new n;t.init(!1,null),this.onFailCb(t,this.respThisArg)}this.clearCB()}onSucc(t){if(this.onSuccCb){let s=new n;s.init(!0,t),this.onSuccCb(s,this.respThisArg)}this.clearCB()}clearCB(){this.onProgressCb=null,this.onSuccCb=null,this.onFailCb=null}}),s._RF.pop()}}}));

System.register("chunks:///_virtual/NetMgr.ts",["cc","./UIDefined.ts","./Global.ts","./NetSocket.ts","./LogUtil.ts","./MsgHandler.ts","./Language.ts","./UIManager.ts","./UIUtils.ts"],(function(t){"use strict";var e,s,n,i,o,a,c,h,l,g,r,d;return{setters:[function(t){e=t.Component,s=t.sys,n=t.cclegacy,i=t.macro},function(t){o=t.UIID},function(t){a=t.Global},function(t){c=t.default},function(t){h=t.default},function(t){l=t.default},function(t){g=t.Language},function(t){r=t.UIManager},function(t){d=t.default}],execute:function(){n._RF.push({},"99062Qz4FtGx40lImQEymzS","NetMgr",void 0);class u extends e{static Instance(){return this._instance||(this._instance=new u)}constructor(){super(),this.loginSocket=null,this.gateSocket=null,this.loginNetAddr="",this.loginNetPort=-1,this.gateNetAddr="",this.gateNetPort=40002,this.disConnectDialogBox=null,this.netTimeOutDialogBox=null,this.reqMsgBox=null,this.isSendMsg=!1,this.reqAddTime=0,this.waitReConTime=10,this.waitShowMsgIdVec=[],this.intervalId=null,this.sendMsg={},this.recvMsg={},this.gateNetCloseCb=null,this.reCounter=0,this.MAX_COUNTER=3}init(t,e,s){this.gateNetCloseCb=s}isShowWaitNet(t){for(const e of this.waitShowMsgIdVec)if(e===t)return!0;return!1}updateGlobal(){this.isSendMsg&&(this.reqAddTime+=.02)}showNetWait(){}closeNetWait(){}setLoginNetAddr(t,e=80){this.loginNetAddr=t,this.loginNetPort=e}setGateNetAddr(t,e){}connectLogin(t,e=""){this.loginSocket||(this.loginSocket=new c),h.debug("connectLogin test 1");let n=!s.isNative;this.loginSocket.connect(n,this.loginNetAddr,this.loginNetPort,e,(()=>{this.unschedule(this.onHeartBeat),console.log("登录服网格断开"),this.reCounter%(this.MAX_COUNTER+1)==0&&this.schedule(this.countTimes,3,3,0)}),(t=>{this.recvData(t)}),(()=>{h.debug("connectLogin test 2"),t&&t(),this.schedule(this.onHeartBeat,20,i.REPEAT_FOREVER,0),this.reCounter=0,this.unschedule(this.countTimes),d.hideLoading()}))}countTimes(){1==this.reCounter&&d.showLoading(),this.reCounter%(this.MAX_COUNTER+1)>=this.MAX_COUNTER?this.showTipsWindow():(console.log("websocket 已断开,正在执行重连: "+this.reCounter),a.gameCtrl.doReconnect()),this.reCounter++}async showTipsWindow(){d.hideLoading();let t={content:g.getString(107031),singleBtn:!0,okFunc:()=>{a.gameCtrl.doReconnect(),r.getInstance().getUI(o.UIAlert).close(),d.showLoading()}};r.getInstance().open(o.UIAlert,t)}onHeartBeat(){l.Instance().c2sheart()}connectGate(t){this.gateSocket||(this.gateSocket=new c);let e=!0;s.isNative&&(e=!1),this.gateSocket.connect(e,this.gateNetAddr,this.gateNetPort,"",(()=>{console.log("网关服网格断开"),this.gateNetCloseCb&&this.gateNetCloseCb()}),(t=>{this.recvData(t)}),(()=>{this.closeNetWait(),t&&t()})),this.showNetWait()}disConnectLogin(){this.loginSocket&&this.loginSocket.disconnect(),this.loginSocket=null}disConnectGate(){this.gateSocket&&this.gateSocket.disconnect()}isLoginConnected(){return null!=this.loginSocket}isGateConnected(){return null!=this.gateSocket}sendDataToLogin(t=!1){this.sendData(this.loginSocket,t)}sendDataToGate(t=!1){this.sendData(this.gateSocket,t)}sendData(t,e){let s=this.sendMsg.type,n=JSON.stringify(this.sendMsg);h.log(`=sendData==${n}`),t.send(n),e&&this.waitShowMsgIdVec.push(s),this.isSendMsg=!0}recvData(t){let e=JSON.parse(t),s=e.type;h.log(`=recvData==${t}`);let n=e.message;l.Instance().handleData(s,n)}}t("default",u),u._instance=null,n._RF.pop()}}}));

System.register("chunks:///_virtual/NetSocket.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"a19db9LabFH5LjbpuX+t3SR","NetSocket",void 0);t("default",class{constructor(){this.socket=null}connect(t,e,s,o,c,n,r){this.socket||(Log.d("socket 连接.......... ",e),this.socket=new WebSocket(e,[]),this.socket?(this.socket.onopen=t=>{r&&r()},this.socket.onmessage=t=>{let e=t.data;e.byteLength<=0?console.warn("dataSize <= 0"):n&&n(e)},this.socket.onclose=t=>{Log.d("websocekt close++++++++++++++",t.code,t.reason),this.socket=null,c&&c()},this.socket.onerror=t=>{console.warn("websocket 错误++++++++++++++++")},this.socket.binaryType="arraybuffer"):console.error("socket 连接错误 ",e))}send(t){this.socket&&(1==this.socket.readyState?this.socket.send(t):console.warn("websocket 还不完成连接"))}disconnect(){this.socket&&(this.socket.close(),this.socket=null)}getCurState(){return this.socket?this.socket.readyState:-1}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/NetTest.ts",["cc","./SocketManager.ts"],(function(t){"use strict";var e,n,s;return{setters:[function(t){e=t.cclegacy,n=t.Component},function(t){s=t.default}],execute:function(){e._RF.push({},"94310DP8UFCf7mONHz+d4T/","NetTest",void 0);t("Child",class extends n{onLoad(){s.getInstance().init()}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/NoticeItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,r,o,a,l,s,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.Label,o=e.Node,a=e.RichText,l=e._decorator,s=e.Component,c=e.v3}],execute:function(){var u,p,d,h,y,m,b,f,v,N,g;n._RF.push({},"89e89Khdv5H3Z9nijgopTs6","NoticeItem",void 0);const{ccclass:C,property:z}=l;e("NoticeItem",(u=C("NoticeItem"),p=z({displayName:"标题",type:r}),d=z({displayName:"详情",type:o}),h=z({displayName:"描述",type:a}),y=z({displayName:"右侧打开标记",type:o}),u((f=t((b=class extends s{constructor(...e){super(...e),i(this,"title",f,this),i(this,"detailContent",v,this),i(this,"dec",N,this),i(this,"openMark",g,this)}start(){this.node.on(o.EventType.TOUCH_END,(()=>{this.detailContent.active=1!=this.detailContent.active;let e=this.detailContent.active?180:0;this.openMark.setRotationFromEuler(c(0,0,e))}),this)}update(e){}}).prototype,"title",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(b.prototype,"detailContent",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(b.prototype,"dec",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(b.prototype,"openMark",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/NoticeView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./TimeUtil.ts","./CustomEventMgr.ts"],(function(t){"use strict";var e,i,n,s,c,o,r,l,a,h,u,p,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,c=t.Label,o=t._decorator,r=t.Component,l=t.v3,a=t.view,h=t.UITransform},function(t){u=t.EventType},function(t){p=t.default},function(t){d=t.CustomEventMgr}],execute:function(){var m,N,y,b,f,_,g,v,w,L,I,k,z;n._RF.push({},"05dc2GsWMhJCKWwizLLC3wR","NoticeView",void 0);const{ccclass:X,property:C}=o;class j{constructor(){this.startTime=0,this.startX=0,this.endX=0,this.speed=0,this.times=0,this.delay=0,this.type=1,this.content=""}}t("NoticeView",(m=X("NoticeView"),N=C({displayName:"普通图标按钮",type:s}),y=C({displayName:"jackpot图标",type:s}),b=C({displayName:"内容",type:s}),f=C({displayName:"label",type:c}),_=C({displayName:"notice bg",type:s}),m((w=e((v=class extends r{constructor(...t){super(...t),i(this,"normalNoticeIcon",w,this),i(this,"jackpotIcon",L,this),i(this,"content",I,this),i(this,"label",k,this),i(this,"noticeBg",z,this),this._speed=3,this._times=1,this._noticeList=[],this._curNotice=null}start(){this.bindEvents(),this.schedule(this.checkNoticeUpdater,.01)}bindEvents(){d.on(u.OnAddNotice,this.addNotice,this)}checkNoticeUpdater(){let t=p.getCurMilliTime();if(this._curNotice){let t=0;t=1==this._curNotice.times?this._curNotice.startX:this.content.position.x-1*this._curNotice.speed,this.content.setPosition(l(t,0)),this._curNotice.times++,this.content.position.x<=this._curNotice.endX&&(this._curNotice=null,this.noticeBg.active=!1,this.content.active=!1)}else this._noticeList&&this._noticeList.length>0&&this.createNotice(this._noticeList.shift(),t)}createNotice(t,e){if(!t)return;this.noticeBg.active=!0,this.content.active=!0,this.label.string=t.content.toString(),1==t.type?(this.normalNoticeIcon.active=!0,this.jackpotIcon.active=!1):2==t.type&&(this.normalNoticeIcon.active=!1,this.jackpotIcon.active=!0);let i=a.getVisibleSize().width;this.content.setPosition(l(i,0,0)),this.scheduleOnce((()=>{let n=this.label.node.getComponent(h).width+58;t.startX=i/2,t.endX=-i/2-n,t.delay=1e3*Math.abs((t.endX-t.startX)/t.speed),t.startTime=e,this._curNotice=t}))}addNotice(t){let e=t.content,i=t.type,n=t.insert;if(!e||""==e)return;if(1!=i&&2!=i)return;let s=new j;s.speed=this._speed,s.times=t.times||this._times,s.type=t.type,s.content=e,this._noticeList||(this._noticeList=[]),null==n||n>=this._noticeList.length?this._noticeList.push(s):(n<0&&(n=0),this._noticeList.splice(n,0,s))}}).prototype,"normalNoticeIcon",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(v.prototype,"jackpotIcon",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(v.prototype,"content",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(v.prototype,"label",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(v.prototype,"noticeBg",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=v))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/NumberUtil.ts",["cc"],(function(t){"use strict";var r;return{setters:[function(t){r=t.cclegacy}],execute:function(){r._RF.push({},"9450a7BsJBPsK6Uo691AyYG","NumberUtil",void 0);class e{static randomIntN(t,r){return parseInt(e.number2str(Math.random()*(r-t)+t),10)}static randomintM(t,r){return Math.floor(Math.random()*(r-t)+t)+1}static number2str(t){return t}static randomInt(t,r){let e=r-t+.99,a=Math.random()*e;return t+Math.floor(a)}static hitRate(t){return Math.random()<t}static randomNumFromArray(t){return t[this.randomInt(0,t.length-1)]}static trimFloat(t,r=2){return t.toFixed(2)}static toHNumber(t){if(t>=1e8)return(t/1e8).toFixed(2)+"亿";if(t>=1e5){let r=0,e=t/1e4-Math.floor(t/1e4),a=Math.floor(100*e);return a>0&&(r=2,Math.floor(a/10)<=0&&(r=1)),(t/1e4).toFixed(r)+"万"}return String(t)}}t("default",e),e.randomFloat=(t,r)=>t+(r-t)*Math.random(),e.randomInteger=(t,r)=>Math.round(e.randomFloat(t,r)),e.randByWeight=t=>{let r=0,a=-1;if(t.forEach((t=>{r+=t})),r<=0)return a=-1,a;{let n=e.randomFloat(0,r);for(let r=0;r<t.length;r++){const e=t[r];if(n<=e){a=r;break}n-=e}}return a},r._RF.pop()}}}));

System.register("chunks:///_virtual/PButton.ts",["cc"],(function(t){"use strict";var e,o,n,h,s;return{setters:[function(t){e=t.cclegacy,o=t.Button,n=t.Component,h=t.NodeEventType,s=t._decorator}],execute:function(){var i;e._RF.push({},"9ffb4HkUttFD6CwAyrShdfq","PButton",void 0);const{ccclass:u,property:c,requireComponent:a}=s;t("PButton",u("PButton")(i=a(o)(i=class extends n{constructor(...t){super(...t),this._preventSwallow=!1,this.touchBeganFun=void 0,this.touchMoveFun=void 0,this.touchEndedFun=void 0,this.touchCancelFun=void 0}set preventSwallow(t){this._preventSwallow=t}get preventSwallow(){return this._preventSwallow}start(){}onEnable(){this.addToStage()}onDisable(){this.removeFromStage()}onTouchBegan(t){this.touchBeganFun&&this.touchBeganFun(this),t&&(t.preventSwallow=this._preventSwallow)}onTouchMove(t){this.touchMoveFun&&this.touchMoveFun(this),t&&(t.preventSwallow=this._preventSwallow)}onTouchEnded(t){this.touchEndedFun&&this.touchEndedFun(this),t&&(t.preventSwallow=this._preventSwallow)}onTouchCancel(t){this.touchCancelFun&&this.touchCancelFun(this),t&&(t.preventSwallow=this._preventSwallow)}addToStage(){this.node.on(h.TOUCH_START,this.onTouchBegan,this),this.node.on(h.TOUCH_MOVE,this.onTouchMove,this),this.node.on(h.TOUCH_END,this.onTouchEnded,this),this.node.on(h.TOUCH_CANCEL,this.onTouchCancel,this)}removeFromStage(){this.node.targetOff(this)}})||i)||i);e._RF.pop()}}}));

System.register("chunks:///_virtual/PEditBox.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LogUtil.ts"],(function(e){"use strict";var t,i,o,s,r,n,l,p,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Node,r=e._decorator,n=e.Component,l=e.EditBox,p=e.UITransform},function(e){a=e.default}],execute:function(){var d,y,h,c,u,b,g,B,w,P,_,m,x,S,f,E,C;o._RF.push({},"a633boAjI1Cn5QLbFO2xd52","PEditBox",void 0);const{ccclass:T,property:O,executeInEditMode:k}=r;e("PEditBox",(d=T("PEditBox"),y=O({type:Boolean,displayName:"是否出现查看密码"}),h=O({type:Boolean,displayName:"是否密码"}),c=O({type:Boolean,displayName:"是否可输入"}),u=O({type:String,displayName:"place holder"}),b=O({type:String,displayName:"editBoxStr"}),g=O({displayName:"eye btn",type:s}),B=O({displayName:"editBox",type:s}),d(w=k((_=t((P=class extends n{constructor(...e){super(...e),i(this,"_lookPswType",_,this),i(this,"_isPassword",m,this),i(this,"_editable",x,this),i(this,"_placeHolderStr",S,this),i(this,"_editBoxStr",f,this),i(this,"eyeBtn",E,this),i(this,"editBox",C,this)}set lookPswType(e){this._lookPswType=e,a.debug("set lookPswType"+this._lookPswType),this.setEyeIsVisible(this._lookPswType)}get lookPswType(){return this._lookPswType}set isPassword(e){this._isPassword=e,a.debug("set lookPswType"+this._isPassword),this.setIsPassword(this._isPassword)}get isPassword(){return this._isPassword}set editable(e){this._editable=e,a.debug("set editable"+this._editable),this.setIsEditable(this._editable)}get editable(){return this._editable}set placeHolderStr(e){this._placeHolderStr=e,a.debug("set lookPswType"+this._placeHolderStr),this.setPlaceHolder(e)}get placeHolderStr(){return this._placeHolderStr}set editBoxStr(e){this._editBoxStr=e,a.debug("set _editBoxStr"+this._editBoxStr),this.setEditBoxStr(e)}get editBoxStr(){return this._editBoxStr}start(){this.bindEvents(),this.editBox.getComponent(l).placeholderLabel.overflow=2}bindEvents(){this.eyeBtn&&this.eyeBtn.on(s.EventType.TOUCH_END,(()=>{let e=this.eyeBtn.getChildByName("eye_open");this.eyeBtn.getChildByName("eye_close");1==(null==e?void 0:e.active)?this.doSetPswEyedOpen(!0):this.doSetPswEyedOpen(!1)}))}doSetPswEyedOpen(e){if(!this.eyeBtn)return;let t=this.eyeBtn.getChildByName("eye_open"),i=this.eyeBtn.getChildByName("eye_close");1==e?(t.active=!1,i.active=!0,this.setPasswordVisible(!1)):(t.active=!0,i.active=!1,this.setPasswordVisible(!0))}setPasswordVisible(e){this.editBox.getComponent(l).inputFlag=1==e?l.InputFlag.DEFAULT:l.InputFlag.PASSWORD}setEyeIsVisible(e){if(!this.eyeBtn)return;this.eyeBtn.active=e;let t=0;t=1==e?this.node.getComponent(p).width-this.eyeBtn.getComponent(p).width-30:this.node.getComponent(p).width-30,this.editBox.getComponent(p).width=t}setIsPassword(e){this.editBox.getComponent(l).inputFlag=1==e?l.InputFlag.PASSWORD:l.InputFlag.DEFAULT,this._lookPswType=e,this.setEyeIsVisible(e)}setIsEditable(e){this.editBox.getComponent(l).enabled=e}setPlaceHolder(e){this.editBox.getComponent(l).placeholderLabel.string=e.toString()}setEditBoxStr(e){this.editBox.getComponent(l).string=e.toString()}get string(){return this.editBox.getComponent(l).string.trim()}set string(e){this.editBox.getComponent(l).string=e}}).prototype,"_lookPswType",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t(P.prototype,"lookPswType",[y],Object.getOwnPropertyDescriptor(P.prototype,"lookPswType"),P.prototype),m=t(P.prototype,"_isPassword",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t(P.prototype,"isPassword",[h],Object.getOwnPropertyDescriptor(P.prototype,"isPassword"),P.prototype),x=t(P.prototype,"_editable",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t(P.prototype,"editable",[c],Object.getOwnPropertyDescriptor(P.prototype,"editable"),P.prototype),S=t(P.prototype,"_placeHolderStr",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t(P.prototype,"placeHolderStr",[u],Object.getOwnPropertyDescriptor(P.prototype,"placeHolderStr"),P.prototype),f=t(P.prototype,"_editBoxStr",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t(P.prototype,"editBoxStr",[b],Object.getOwnPropertyDescriptor(P.prototype,"editBoxStr"),P.prototype),E=t(P.prototype,"eyeBtn",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(P.prototype,"editBox",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=P))||w)||w));o._RF.pop()}}}));

System.register("chunks:///_virtual/PlatformApi.ts",["cc","./SocketManager.ts","./MsgHandler.ts","./EnumDefine.ts","./ProtDefine.ts","./StorageUtil.ts"],(function(t){"use strict";var e,n,s,o,r,i;return{setters:[function(t){e=t.cclegacy},function(t){n=t.default},function(t){s=t.default},function(t){o=t.EOS},function(t){r=t.Protocol},function(t){i=t.default}],execute:function(){e._RF.push({},"e2f535sWk5LKJ85U0Tye6dA","PlatformApi",void 0);t("default",class{constructor(){this.os=o.NULL,this.user=null}init(){}login(t,e,n,o){var r;let u,c,a=this.user;a&&(u=a.userId,c=a.token),n&&i.saveAccount(n,o),s.Instance().login(t,e,n,o,null==(r=u)?void 0:r.toString(),c)}register(t){n.getInstance().sendMessage(r.RegisterAccount,t)}openWebView(t){}openURL(t){}handlerPlatformMessage(t){}setClipboard(t){return!1}restartGame(){}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/PMask.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,s,r,f;return{setters:[function(t){i=t.applyDecoratedDescriptor},function(t){e=t.cclegacy,s=t.Mask,r=t._decorator,f=t.UITransform}],execute:function(){var h,o,p,n,y,u,D,a;e._RF.push({},"918ecTHABBMmboSnNhqRWOq","PMask",void 0);const{ccclass:c,property:d,executeInEditMode:_}=r;t("PMask",(h=c("PMask"),o=d({displayName:"设置圆角",visible:function(){return this.type===s.Type.GRAPHICS_STENCIL}}),p=d({displayName:"xDiff",visible:function(){return this.type===s.Type.GRAPHICS_STENCIL}}),n=d({displayName:"yDiff",visible:function(){return this.type===s.Type.GRAPHICS_STENCIL}}),y=d({displayName:"widthDiff",visible:function(){return this.type===s.Type.GRAPHICS_STENCIL}}),u=d({displayName:"heightDiff",visible:function(){return this.type===s.Type.GRAPHICS_STENCIL}}),h(D=_((i((a=class extends s{constructor(...t){super(...t),this._round=20,this._xDiff=0,this._yDiff=0,this._widthDiff=0,this._heightDiff=0}get round(){return this._round}set round(t){this._round!==t&&(this._round=t,this.updateMask())}get xDiff(){return this._xDiff}set xDiff(t){this._xDiff!==t&&(this._xDiff=t,this.updateMask())}get yDiff(){return this._yDiff}set yDiff(t){this._yDiff!==t&&(this._yDiff=t,this.updateMask())}get widthDiff(){return this._widthDiff}set widthDiff(t){this._widthDiff!==t&&(this._widthDiff=t,this.updateMask())}get heightDiff(){return this._heightDiff}set heightDiff(t){this._heightDiff!==t&&(this._heightDiff=t,this.updateMask())}start(){this.updateMask()}updateMask(){this.type==s.Type.GRAPHICS_STENCIL&&(this._graphics.clear(),this._graphics.roundRect(-this.node.getComponent(f).width/2+this._xDiff,-this.node.getComponent(f).height/2+this._yDiff,this.node.getComponent(f).width+this._widthDiff,this.node.getComponent(f).height+this._heightDiff,this.round),this._graphics.roundRect,this._graphics.fill())}}).prototype,"round",[o],Object.getOwnPropertyDescriptor(a.prototype,"round"),a.prototype),i(a.prototype,"xDiff",[p],Object.getOwnPropertyDescriptor(a.prototype,"xDiff"),a.prototype),i(a.prototype,"yDiff",[n],Object.getOwnPropertyDescriptor(a.prototype,"yDiff"),a.prototype),i(a.prototype,"widthDiff",[y],Object.getOwnPropertyDescriptor(a.prototype,"widthDiff"),a.prototype),i(a.prototype,"heightDiff",[u],Object.getOwnPropertyDescriptor(a.prototype,"heightDiff"),a.prototype),D=a))||D)||D));e._RF.pop()}}}));

System.register("chunks:///_virtual/PMaskSlider.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var r,s,t,i,l,n,a,o;return{setters:[function(e){r=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){t=e.cclegacy,i=e.UITransform,l=e.Slider,n=e._decorator,a=e.Component,o=e.EventHandler}],execute:function(){var p,d,c,u,g,h,b,f,k;t._RF.push({},"05682WB41VBDawfHCB3LnYp","PMaskSlider",void 0);const{ccclass:v,property:y}=n;e("PMaskSlider",(p=v("PMaskSlider"),d=y({displayName:"progressMask",type:i}),c=y({displayName:"progressBar",type:i}),u=y({displayName:"slider",type:l}),p((b=r((h=class extends a{constructor(...e){super(...e),s(this,"progressMask",b,this),s(this,"progressBar",f,this),s(this,"slider",k,this),this.sliderEventHandler=null}start(){let e=new o;e.component="PMaskSlider",e.handler="sliderEvent",e.target=this.node,this.slider.slideEvents.push(e)}registerSliderEventCallback(e,r){let s={};s.target=r,s.callback=e,this.sliderEventHandler=s}sliderEvent(){if(this.progressMask.width=this.progressBar.width*this.slider.progress,this.sliderEventHandler){let e=this.sliderEventHandler.target;this.sliderEventHandler.callback.bind(e)(this.slider.progress)}}setProgress(e){this.slider.getComponent(l).progress=e,this.progressMask.width=this.progressBar.width*e}get progress(){return this.slider.getComponent(l).progress}set progress(e){this.setProgress(e)}}).prototype,"progressMask",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=r(h.prototype,"progressBar",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=r(h.prototype,"slider",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=h))||g));t._RF.pop()}}}));

System.register("chunks:///_virtual/PRichText.ts",["cc"],(function(c){"use strict";var t,e,s;return{setters:[function(c){t=c.cclegacy,e=c.Component,s=c._decorator}],execute:function(){var i;t._RF.push({},"47ca0DvlKZAb5VClocv2c5D","PRichText",void 0);const{ccclass:n}=s;c("PRichText",n("PRichText")(i=class extends e{constructor(...c){super(...c),this._cb=null}start(){}initCb(c=null){this._cb=c}update(c){}clickHyperLink(c,t,e){let s={};t&&(s=JSON.parse(t)),this._cb&&this._cb(s)}})||i);t._RF.pop()}}}));

System.register("chunks:///_virtual/ProfileMsgDetail.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./AudioManager.ts","./UIDefined.ts","./UIManager.ts"],(function(e){"use strict";var t,i,n,l,a,o,r,s,u,c,p;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,l=e.Node,a=e.Label,o=e._decorator,r=e.Component},function(e){s=e.SoundDefine},function(e){u=e.default},function(e){c=e.UIID},function(e){p=e.UIManager}],execute:function(){var f,m,g,y,b,d,D,h,I;n._RF.push({},"8578bSXf4JBhJO5SJQUviLj","ProfileMsgDetail",void 0);const{ccclass:M,property:U}=o;e("ProfileMsgDetail",(f=M("ProfileMsgDetail"),m=U({displayName:"消息界面关闭按钮",type:l}),g=U({displayName:"email item",type:l}),y=U({displayName:"email count label",type:a}),f((D=t((d=class extends r{constructor(...e){super(...e),i(this,"msgCloseBtn",D,this),i(this,"emailItemTemp",h,this),i(this,"emailCountLabel",I,this)}start(){this.msgCloseBtn.on(l.EventType.TOUCH_END,(()=>{u.Instance().playEffect(s.sound_close),p.getInstance().getUI(c.UIProfile).close()}),this)}update(e){}}).prototype,"msgCloseBtn",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=t(d.prototype,"emailItemTemp",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(d.prototype,"emailCountLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=d))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/ProtDefine.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"01953d2z6lOTreRR1PDuvWl","ProtDefine",void 0);class a{}e("Protocol",a),a.ErrorCode=1,a.Heart=2,a.Reconnect=4,a.GetMoney=9,a.Login=10,a.ChangePassWD=11,a.GetEmail=12,a.DealEmail=13,a.EditInfo=14,a.RegisterAccount=15,a.GetVerifica=16,a.RechargeInfo=18,a.Logout=19,a.GameList=20,a.GetBonus=21,a.CollectGame=22,a.CheckRedPacket=23,a.GetRedPacket=24,a.GetSignProgress=25,a.PayBonus=26,a.CheckSignAward=27,a.GetSignAward=28,a.GetScoreTip=29,a.StopToUpdate=30,a.RestrictToGame=31,a.GetRank=32,a.RegisterType=33,a.Newrechargeinfo=34,a.BankRecharge=35,a.EleRecharge=36,a.Pemberian=37,a.Coffer=38,a.GameBonus=39,a.GetBank=40,a.MatchBalance=41,a.InitialMatchBalance=42,a.Cashinfo=43,a.BindBankCard=44,a.Cash=45,a.CashRecord=46,a.DeleteRecord=47,a.SetPassword=48,a.Notice=52,a.GetCode=54,a.Transactions=55,a.FacebookLogin=61,a.FacebookIsOpen=62,a.AwardInfo=63,a.WinAwardInfo=64,a.GetTreasureChest=65,a.IsOpenLuckDrak=66,a.ActivityADProto=67,a.CheckTokenProto=68,a.CheckCustomerService=69,a.RTGetRTWinningList=70,a.RTGetJackPotAndMyTicket=71,a.RTRunALottery=72,a.RTReceive=73,a.GetTaskState=74,a.GetTaskData=75,a.GetTaskCoin=76,a.EnterGameCount=77,a.GetTaskRecord=78,a.ActionReporting=79,a.ActionReportingWithOutToken=80,a.GuideIds=83,a.WithdrawalBindBankCard=84,a.WithdrawalDeleteBankCard=85,a.GetOrChangeHead=86,a.TryAccount=87,a.GetNotice=88,a.EnterGameReporting=89,a.AdReporting=90,a.FlushScore=91,a.ThirdGameUrl=92,a.TrialInfo=93,a.TrialReceive=94,a.Switch=95,a.Guester=99,a.GuesterGameList=104,a.ConvertApp=113,a.Survey=116,a.Share=131,a.ON_CONNECTED=50001,a.ON_CLOSED=50002,a.ON_ERROR=50003,t._RF.pop()}}}));

System.register("chunks:///_virtual/ProtoUtil.ts",["cc","./NetAdaptor.ts","./Global.ts","./NetMgr.ts","./User.ts","./EnumDefine.ts","./md5.ts"],(function(t){"use strict";var e,n,s,i,l,o,r,a;return{setters:[function(t){e=t.cclegacy,n=t.js},function(t){s=t.NetAdaptor},function(t){i=t.Global},function(t){l=t.default},function(t){o=t.User},function(t){r=t.APP_TYPE},function(t){a=t.md5}],execute:function(){e._RF.push({},"18dffcQKplGWb30aVtD7GXm","ProtoUtil",void 0);class u{static sendProto(t,e){if(s.bAdaptor)return void s.getInstance().sendMessage(t,e);e=e||{},n.mixin(e,this.getParam(e));let i={type:t,message:e};l.Instance().sendMsg=i,l.Instance().sendDataToLogin()}static getParam(t){null==(t=t||{}).token&&null!=o.instance.token&&(t.token=o.instance.token);let e=i.svrTimeS;return t.sign=u.getSign(t,e),null==t.stime&&null!=e&&(t.stime=e),t}static getHttpParam(t){t=t||{};let e=o.instance;t.token||(t.token=e.token||""),t.account=e.account||"",t.app_type=r.cocos,t.isapp=1;let n=parseInt((i.svrTimeMS/1e3).toFixed(0));return t.sign=u.getSign(t,n),null==t.stime&&null!=n&&(t.stime=n),t}static parseToString(t){let e=[];for(let n in t){let s="";s="object"==typeof t[n]?JSON.stringify(t[n]):null==t[n]?"":t[n];let i=n+"="+s;e.push(i)}return e.join("&")}static parseToObject(t){let e={};if(null==t||""==t)return e;let n=t.split("&");for(let t=0;t<n.length;t++){let s=n[t].split("=");e[s[0]]=null==s[1]?"":s[1]}return e}static getSign(t,e){let n=[];for(let e in t)"undefined"!=t[e]&&null!=t[e]&&null!=t[e]?n.push(e):delete t[e];n.sort();let s="";for(let e=0,i=n.length;e<i;e++)s+=t[n[e]];return s+=e,s+=i.SECRET_KEY,(new a).hex_md5(s)}}t("ProtoUtil",u),e._RF.pop()}}}));

System.register("chunks:///_virtual/ProvinceConfig.ts",["cc"],(function(c){"use strict";var i,o;return{setters:[function(c){i=c.cclegacy,o=c._decorator}],execute:function(){var r;i._RF.push({},"2a0cdgRw+BP1Z5bpSHiWcCJ","ProvinceConfig",void 0);const{ccclass:t}=o;c("ProvinceConfig",t("ProvinceConfig")(r=class{constructor(){this.id=void 0,this.province=void 0}attrs(){return["id","province"]}})||r);i._RF.pop()}}}));

System.register("chunks:///_virtual/PSlider.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var r,s,t,i,l,n,o,a;return{setters:[function(e){r=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){t=e.cclegacy,i=e.ProgressBar,l=e.Slider,n=e._decorator,o=e.Component,a=e.EventHandler}],execute:function(){var d,p,c,g,u,h,v;t._RF.push({},"78951COtFJF0oV6pW7IUo/N","PSlider",void 0);const{ccclass:b,property:y,executeInEditMode:E}=n;e("PSlider",(d=b("PSlider"),p=y({displayName:"progressBar",type:i}),c=y({displayName:"slider",type:l}),d(g=E((h=r((u=class extends o{constructor(...e){super(...e),s(this,"progressBar",h,this),s(this,"slider",v,this),this.sliderEventHandler=null}start(){{let e=new a;e.component="PSlider",e.handler="sliderEvent",e.target=this.node,this.slider.slideEvents.push(e)}}registerSliderEventCallback(e,r){let s={};s.target=r,s.callback=e,this.sliderEventHandler=s}sliderEvent(){if(this.progressBar.progress=this.slider.progress,this.sliderEventHandler){let e=this.sliderEventHandler.target;this.sliderEventHandler.callback.bind(e)(this.slider.progress)}}setProgress(e){this.slider.getComponent(l).progress=e,this.progressBar.progress=e}get progress(){return this.slider.getComponent(l).progress}set progress(e){this.setProgress(e)}}).prototype,"progressBar",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=r(u.prototype,"slider",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=u))||g)||g));t._RF.pop()}}}));

System.register("chunks:///_virtual/Q21GameNameListConfig.ts",["cc"],(function(i){"use strict";var t,s;return{setters:[function(i){t=i.cclegacy,s=i._decorator}],execute:function(){var e;t._RF.push({},"7a8898tDeJHl4rA6Fh1OWKV","Q21GameNameListConfig",void 0);const{ccclass:o}=s;i("Q21GameNameListConfig",o("Q21GameNameListConfig")(e=class{constructor(){this.gameid=void 0,this.cn=void 0,this.en=void 0,this.id=void 0,this.ms=void 0,this.th=void 0,this.vi=void 0,this.tc=void 0,this.por=void 0}attrs(){return["gameid","cn","en","id","ms","th","vi","tc","por"]}})||e);t._RF.pop()}}}));

System.register("chunks:///_virtual/QRCode.ts",["cc"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.cclegacy,r=t.Color}],execute:function(){e._RF.push({},"4dfd3hLUhRAAJ4yN3apE3Ah","QRCode",void 0);class s{static create(t,e,r=200,a=200,o=n.M,h=8,u=""){var l={color:u,width:r,height:a,correctLevel:o,typeNumer:h},g=new i(l.typeNumer,l.correctLevel);return g.addData(e),g.make(),s.draw(g,l,t)}static draw(t,e,s){s.clear();let a=(new r).fromHEX("#ffffff");s.fillColor=a;e=e;var o=t.getModuleCount(),i=e.width/o,n=e.height/o;s.rect(-10,-10,e.width+20,e.height+20),s.fill(),s.close();let h=(new r).fromHEX(e.color);s.fillColor=h;for(var u=0;u<o;u++)for(var l=0;l<o;l++){t.isDark(u,l)&&(s.rect(l*i,u*n,i,n),s.fill())}return s}}t("QRCode",s);class a{constructor(t){this.mode=void 0,this.data=void 0,this.parsedData=void 0,this.mode=l.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e<r;e++){var s=[],a=this.data.charCodeAt(e);a>65536?(s[0]=240|(1835008&a)>>>18,s[1]=128|(258048&a)>>>12,s[2]=128|(4032&a)>>>6,s[3]=128|63&a):a>2048?(s[0]=224|(61440&a)>>>12,s[1]=128|(4032&a)>>>6,s[2]=128|63&a):a>128?(s[0]=192|(1984&a)>>>6,s[1]=128|63&a):s[0]=a,this.parsedData.push(s)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(t){return this.parsedData.length}write(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}}t("QR8bitByte",a);class o{constructor(){this.buffer=void 0,this.length=void 0,this.buffer=[],this.length=0}get(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)}put(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))}getLengthInBits(){return this.length}putBit(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}t("QRBitBuffer",o);class i{constructor(t,e){this.typeNumber=void 0,this.errorCorrectLevel=void 0,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[],this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}addData(t){var e=new a(t);this.dataList.push(e),this.dataCache=null}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var s=0;s<this.moduleCount;s++)this.modules[r][s]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=i.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var s=-1;s<=7;s++)e+s<=-1||this.moduleCount<=e+s||(this.modules[t+r][e+s]=0<=r&&r<=6&&(0==s||6==s)||0<=s&&s<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=s&&s<=4)}getBestMaskPattern(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var s=f.getLostPoint(this);(0==r||t>s)&&(t=s,e=r)}return e}createMovieClip(t,e,r){var s=t.createEmptyMovieClip(e,r);this.make();for(var a=0;a<this.modules.length;a++)for(var o=1*a,i=0;i<this.modules[a].length;i++){var n=1*i;this.modules[a][i]&&(s.beginFill(0,100),s.moveTo(n,o),s.lineTo(n+1,o),s.lineTo(n+1,o+1),s.lineTo(n,o+1),s.endFill())}return s}setupTimingPattern(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}setupPositionAdjustPattern(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var s=t[e],a=t[r];if(null==this.modules[s][a])for(var o=-2;o<=2;o++)for(var i=-2;i<=2;i++)this.modules[s+o][a+i]=-2==o||2==o||-2==i||2==i||0==o&&0==i}}setupTypeNumber(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var s=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=s}for(r=0;r<18;r++){s=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=s}}setupTypeInfo(t,e){for(var r=this.errorCorrectLevel<<3|e,s=f.getBCHTypeInfo(r),a=0;a<15;a++){var o=!t&&1==(s>>a&1);a<6?this.modules[a][8]=o:a<8?this.modules[a+1][8]=o:this.modules[this.moduleCount-15+a][8]=o}for(a=0;a<15;a++){o=!t&&1==(s>>a&1);a<8?this.modules[8][this.moduleCount-a-1]=o:a<9?this.modules[8][15-a-1+1]=o:this.modules[8][15-a-1]=o}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){for(var r=-1,s=this.moduleCount-1,a=7,o=0,i=this.moduleCount-1;i>0;i-=2)for(6==i&&i--;;){for(var n=0;n<2;n++)if(null==this.modules[s][i-n]){var h=!1;o<t.length&&(h=1==(t[o]>>>a&1)),f.getMask(e,s,i-n)&&(h=!h),this.modules[s][i-n]=h,-1==--a&&(o++,a=7)}if((s+=r)<0||this.moduleCount<=s){s-=r,r=-r;break}}}static createData(t,e,r){for(var s=d.getRSBlocks(t,e),a=new o,n=0;n<r.length;n++){var h=r[n];a.put(h.mode,4),a.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(a)}var u=0;for(n=0;n<s.length;n++)u+=s[n].dataCount;if(a.getLengthInBits()>8*u)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*u+")");for(a.getLengthInBits()+4<=8*u&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*u)&&(a.put(i.PAD0,8),!(a.getLengthInBits()>=8*u));)a.put(i.PAD1,8);return i.createBytes(a,s)}static createBytes(t,e){for(var r=0,s=0,a=0,o=new Array(e.length),i=new Array(e.length),n=0;n<e.length;n++){var h=e[n].dataCount,u=e[n].totalCount-h;s=Math.max(s,h),a=Math.max(a,u),o[n]=new Array(h);for(var l=0;l<o[n].length;l++)o[n][l]=255&t.buffer[l+r];r+=h;var d=f.getErrorCorrectPolynomial(u),c=new g(o[n],d.getLength()-1).mod(d);i[n]=new Array(d.getLength()-1);for(l=0;l<i[n].length;l++){var m=l+c.getLength()-i[n].length;i[n][l]=m>=0?c.get(m):0}}var v=0;for(l=0;l<e.length;l++)v+=e[l].totalCount;var E=new Array(v),L=0;for(l=0;l<s;l++)for(n=0;n<e.length;n++)l<o[n].length&&(E[L++]=o[n][l]);for(l=0;l<a;l++)for(n=0;n<e.length;n++)l<i[n].length&&(E[L++]=i[n][l]);return E}}t("QRCodeModel",i),i.PAD0=236,i.PAD1=17;class n{}t("QRErrorCorrectLevel",n),n.L=1,n.M=0,n.Q=3,n.H=2;class h{}t("QRMaskPattern",h),h.PATTERN000=0,h.PATTERN001=1,h.PATTERN010=2,h.PATTERN011=3,h.PATTERN100=4,h.PATTERN101=5,h.PATTERN110=6,h.PATTERN111=7;class u{static glog(t){return u.isInit||u.init(),u.LOG_TABLE[t]}static gexp(t){for(u.isInit||u.init();t<0;)t+=255;for(;t>=256;)t-=255;return u.EXP_TABLE[t]}static init(){u.isInit=!0;for(var t=0;t<8;t++)u.EXP_TABLE[t]=1<<t;for(t=8;t<256;t++)u.EXP_TABLE[t]=u.EXP_TABLE[t-4]^u.EXP_TABLE[t-5]^u.EXP_TABLE[t-6]^u.EXP_TABLE[t-8];for(t=0;t<255;t++)u.LOG_TABLE[u.EXP_TABLE[t]]=t}}t("QRMath",u),u.isInit=void 0,u.EXP_TABLE=new Array(256),u.LOG_TABLE=new Array(256);class l{}t("QRMode",l),l.MODE_NUMBER=1,l.MODE_ALPHA_NUM=2,l.MODE_8BIT_BYTE=4,l.MODE_KANJI=8;class g{constructor(t,e){if(this.num=void 0,null==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var s=0;s<t.length-r;s++)this.num[s]=t[s+r]}get(t){return this.num[t]}getLength(){return this.num.length}multiply(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var s=0;s<t.getLength();s++)e[r+s]^=u.gexp(u.glog(this.get(r))+u.glog(t.get(s)));return new g(e,0)}mod(t){if(this.getLength()-t.getLength()<0)return this;for(var e=u.glog(this.get(0))-u.glog(t.get(0)),r=new Array(this.getLength()),s=0;s<this.getLength();s++)r[s]=this.get(s);for(s=0;s<t.getLength();s++)r[s]^=u.gexp(u.glog(t.get(s))+e);return new g(r,0).mod(t)}}t("QRPolynomial",g);class d{constructor(t,e){this.totalCount=void 0,this.dataCount=void 0,this.totalCount=t,this.dataCount=e}}t("QRRSBlock",d),d.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],d.getRSBlocks=function(t,e){var r=d.getRsBlockTable(t,e);if(null==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var s=r.length/3,a=[],o=0;o<s;o++)for(var i=r[3*o+0],n=r[3*o+1],h=r[3*o+2],u=0;u<i;u++)a.push(new d(n,h));return a},d.getRsBlockTable=function(t,e){switch(e){case n.L:return d.RS_BLOCK_TABLE[4*(t-1)+0];case n.M:return d.RS_BLOCK_TABLE[4*(t-1)+1];case n.Q:return d.RS_BLOCK_TABLE[4*(t-1)+2];case n.H:return d.RS_BLOCK_TABLE[4*(t-1)+3];default:return}};class f{static getBCHTypeInfo(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK}static getBCHTypeNumber(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e}static getBCHDigit(t){for(var e=0;0!=t;)e++,t>>>=1;return e}static getPatternPosition(t){return f.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}static getErrorCorrectPolynomial(t){for(var e=new g([1],0),r=0;r<t;r++)e=e.multiply(new g([1,u.gexp(r)],0));return e}static getLengthInBits(t,e){if(1<=e&&e<10)switch(t){case l.MODE_NUMBER:return 10;case l.MODE_ALPHA_NUM:return 9;case l.MODE_8BIT_BYTE:case l.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case l.MODE_NUMBER:return 12;case l.MODE_ALPHA_NUM:return 11;case l.MODE_8BIT_BYTE:return 16;case l.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case l.MODE_NUMBER:return 14;case l.MODE_ALPHA_NUM:return 13;case l.MODE_8BIT_BYTE:return 16;case l.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}}static getLostPoint(t){for(var e=t.getModuleCount(),r=0,s=0;s<e;s++)for(var a=0;a<e;a++){for(var o=0,i=t.isDark(s,a),n=-1;n<=1;n++)if(!(s+n<0||e<=s+n))for(var h=-1;h<=1;h++)a+h<0||e<=a+h||0==n&&0==h||i==t.isDark(s+n,a+h)&&o++;o>5&&(r+=3+o-5)}for(s=0;s<e-1;s++)for(a=0;a<e-1;a++){var u=0;t.isDark(s,a)&&u++,t.isDark(s+1,a)&&u++,t.isDark(s,a+1)&&u++,t.isDark(s+1,a+1)&&u++,0!=u&&4!=u||(r+=3)}for(s=0;s<e;s++)for(a=0;a<e-6;a++)t.isDark(s,a)&&!t.isDark(s,a+1)&&t.isDark(s,a+2)&&t.isDark(s,a+3)&&t.isDark(s,a+4)&&!t.isDark(s,a+5)&&t.isDark(s,a+6)&&(r+=40);for(a=0;a<e;a++)for(s=0;s<e-6;s++)t.isDark(s,a)&&!t.isDark(s+1,a)&&t.isDark(s+2,a)&&t.isDark(s+3,a)&&t.isDark(s+4,a)&&!t.isDark(s+5,a)&&t.isDark(s+6,a)&&(r+=40);var l=0;for(a=0;a<e;a++)for(s=0;s<e;s++)t.isDark(s,a)&&l++;return r+=10*(Math.abs(100*l/e/e-50)/5)}static_isSupportCanvas(){return"undefined"!=typeof CanvasRenderingContext2D}static _getTypeNumber(t,e){for(var r=1,s=f._getUTF8Length(t),a=0,o=f.QRCodeLimitLength.length;a<=o;a++){var i=0;switch(e){case n.L:i=f.QRCodeLimitLength[a][0];break;case n.M:i=f.QRCodeLimitLength[a][1];break;case n.Q:i=f.QRCodeLimitLength[a][2];break;case n.H:i=f.QRCodeLimitLength[a][3]}if(s<=i)break;r++}if(r>f.QRCodeLimitLength.length)throw new Error("Too long data");return r}static _getUTF8Length(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}}t("QRUtil",f),f.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],f.G15=1335,f.G18=7973,f.G15_MASK=21522,f.QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],e._RF.pop()}}}));

System.register("chunks:///_virtual/QrCodeItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./QRCode.ts","./SdkManager.ts"],(function(t){"use strict";var n,i,o,e,r,s,a,l,d,c,u;return{setters:[function(t){n=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,e=t.Graphics,r=t.Node,s=t._decorator,a=t.Component,l=t.sys},function(t){d=t.Global},function(t){c=t.QRCode},function(t){u=t.default}],execute:function(){var h,p,D,w,f,B,y,b,C;o._RF.push({},"bf95ay77i1OvrB2lWcIwomG","QrCodeItem",void 0);const{ccclass:m,property:g}=s;t("QrCodeItem",(h=m("QrCodeItem"),p=g({displayName:"二维码图标",type:e}),D=g({displayName:"ios下载按钮",type:r}),w=g({displayName:"android下载按钮",type:r}),h((y=n((B=class extends a{constructor(...t){super(...t),i(this,"qrCodeGraphics",y,this),i(this,"iosDownloadBtn",b,this),i(this,"androidDownloadBtn",C,this),this.curOs="",this.url=""}start(){this.bindEvents()}initInfo(t){let n=t[0],i=t[1],o=t[3];this.url=n,c.create(this.qrCodeGraphics,n+"?lang="+d.language,o.width,o.height),this.setBtnInfo(i)}bindEvents(){this.iosDownloadBtn&&this.iosDownloadBtn.on(r.EventType.TOUCH_END,this.downloadBtnClick,this),this.androidDownloadBtn&&this.androidDownloadBtn.on(r.EventType.TOUCH_END,this.downloadBtnClick,this)}setBtnInfo(t){this.curOs=t;let n=t==l.OS.ANDROID;this.androidDownloadBtn&&(this.androidDownloadBtn.active=n),this.iosDownloadBtn&&(this.iosDownloadBtn.active=!n),l.OS.ANDROID}downloadBtnClick(){u.openURL(this.url)}}).prototype,"qrCodeGraphics",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=n(B.prototype,"iosDownloadBtn",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=n(B.prototype,"androidDownloadBtn",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=B))||f));o._RF.pop()}}}));

System.register("chunks:///_virtual/RaffleChangePoint.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts"],(function(t){"use strict";var i,n,e,o,s,r,h,a;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){e=t.cclegacy,o=t.Font,s=t.Label,r=t._decorator,h=t.Component},function(t){a=t.Global}],execute:function(){var l,u,p,b,m,c,_,f,d;e._RF.push({},"75487/aFUJFtpwWigCDDDjt","RaffleChangePoint",void 0);const{ccclass:L,property:g}=r;t("RaffleChangePoint",(l=L("RaffleChangePoint"),u=g({displayName:"nummfFont",type:o}),p=g({displayName:"numFont",type:o}),b=g(s),l((_=i((c=class extends h{constructor(...t){super(...t),n(this,"nummfFont",_,this),n(this,"numFont",f,this),n(this,"numberLab",d,this),this._TOP_POINT=241,this._BOTTOM_POINT=-241,this._ROLL_SPEED_0=50,this._speed=50,this._isStop=!0,this.stopTime=0,this.stopNumStr=""}get isStop(){return this._isStop}initNum(t){this._isStop=!0,this.clean(),this.changeToNormalFont(),this.numberLab[0].string=t,this.numberLab[0].node.setPosition(this.numberLab[0].node.position.x,0,this.numberLab[0].node.position.z),this.numberLab[1].node.setPosition(this.numberLab[1].node.position.x,this._TOP_POINT,this.numberLab[1].node.position.z)}rolling(){1==this._isStop&&(this.clean(),this.changeToRollFont()),this._isStop=!1,this.roll()}rollingEnd(){return 1==this._isStop||this.roll(),this._isStop}roll(){let t,i=0,n=this.numberLab.length,e=0,o=0;for(i=0;i<n;i++){if(t=this.numberLab[i],e=t.node.position.y-this._speed,e<=this._BOTTOM_POINT&&(e=this._TOP_POINT,this.isStopLable(i)?t.string=this.stopNumStr:(o=Math.floor(10*Math.random()),t.string=o.toString())),this.isStopLable(i)&&(this._speed>10&&(this._speed-=2),e<=0&&this.numberLab[i].string==this.stopNumStr))return e=0,t.node.setPosition(t.node.position.x,e,t.node.position.z),this.numberLab[1].node.setPosition(this.numberLab[1].node.position.x,this._TOP_POINT,this.numberLab[1].node.position.z),void(this._isStop=!0);t.node.setPosition(t.node.position.x,e,t.node.position.z)}}isStopLable(t){return 0==t&&(!(!this.stopNumStr||this.stopNumStr.length<1)&&!(!this.stopTime||this.stopTime>a.svrTimeS))}changeToRollFont(){let t=this.numberLab.length;for(let i=0;i<t;i++){let t=this.numberLab[i];t.font=this.nummfFont,t.fontSize=173}}changeToNormalFont(){let t=this.numberLab.length;for(let i=0;i<t;i++){let t=this.numberLab[i];t.font=this.numFont,t.fontSize=133}}clean(){this.stopNumStr="",this.stopTime=0,this._speed=this._ROLL_SPEED_0}}).prototype,"nummfFont",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=i(c.prototype,"numFont",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=i(c.prototype,"numberLab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=c))||m));e._RF.pop()}}}));

System.register("chunks:///_virtual/RaffleDrawListCell.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,l,a,n,s,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,l=e.Label,a=e.Sprite,n=e.SpriteFrame,s=e._decorator,o=e.Component}],execute:function(){var c,u,p,b,f,d,h,g,y,L,m,w,D;r._RF.push({},"5f488lWJxFJhq1bqBeS1Qvp","RaffleDrawListCell",void 0);const{ccclass:R,property:_}=s;e("RaffleDrawListCell",(c=R("RaffleDrawListCell"),u=_({displayName:"code_lab",type:l}),p=_({displayName:"user_id",type:l}),b=_({displayName:"reward_lab",type:l}),f=_(a),d=_(n),c((y=t((g=class extends o{constructor(...e){super(...e),i(this,"codeLab",y,this),i(this,"userIdLab",L,this),i(this,"rewardLab",m,this),i(this,"cellbg",w,this),i(this,"cellBgs",D,this),this.index=0}start(){}initRanking(e,t){this.index=e,this.cellbg.spriteFrame=e%2==1?this.cellBgs[1]:this.cellBgs[0],t.map(((t,i)=>{if(e==i){var r=t.split(":");this.userIdLab.string=r[1],this.rewardLab.string=r[0],this.codeLab.string=(e+1).toString()}}))}update(e){}}).prototype,"codeLab",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(g.prototype,"userIdLab",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(g.prototype,"rewardLab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(g.prototype,"cellbg",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(g.prototype,"cellBgs",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),h=g))||h));r._RF.pop()}}}));

System.register("chunks:///_virtual/RaffleDrawScrollView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RaffleDrawListCell.ts"],(function(t){"use strict";var i,e,n,s,o,l,r,a,h,c,p;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.ScrollView,o=t.Node,l=t._decorator,r=t.Component,a=t.EventHandler,h=t.UITransform,c=t.instantiate},function(t){p=t.RaffleDrawListCell}],execute:function(){var u,f,g,m,D,_,w,b,d;n._RF.push({},"bb974p1VGdBS6sibNWz/y30","RaffleDrawScrollView",void 0);const{ccclass:L,property:M}=l;t("RaffleDrawScrollView",(u=L("RaffleDrawScrollView"),f=M(s),g=M(o),m=M(o),u((w=i((_=class extends r{constructor(...t){super(...t),e(this,"scroll",w,this),e(this,"item",b,this),e(this,"content",d,this),this._PADDING_TOP=0,this._ITEM_NUM=9,this.itemarr=[],this.listPoor=[],this.ListData=null}start(){const t=new a;t.target=this.node,t.component="RaffleDrawScrollView",t.handler="callback",t.customEventData="foobar";this.scroll.scrollEvents.push(t)}callback(t,i,e){if(!this.ListData)return;if(!t.isAutoScrolling()&&!t.isScrolling())return;let n=this.scroll.getScrollOffset().y,s=this.content.getComponent(h).height,o=this.item.getComponent(h).height;if(this.ListData.length<=this._ITEM_NUM)return;this.itemarr.map((t=>{let i=(t.position.y+n)/o,e=-1;i>=.5&&s-n>7.5*o&&(e=t.getComponent(p).index+this._ITEM_NUM,e>=0&&e<this.ListData.length&&(t.setPosition(t.position.x,t.position.y-o*this._ITEM_NUM,t.position.x),t.getComponent(p).initRanking(e,this.ListData))),i<=1-this._ITEM_NUM&&n>o/2&&(e=t.getComponent(p).index-this._ITEM_NUM,e>=0&&e<this.ListData.length&&(t.setPosition(t.position.x,t.position.y+o*this._ITEM_NUM,t.position.x),t.getComponent(p).initRanking(e,this.ListData)))}))}getList(){return 0!=this.listPoor.length?this.listPoor.shift():c(this.item)}creatList(t){this.ListData=t;let i=t.length,e=this.item.getComponent(h).height,n=this._PADDING_TOP+e*i,s=i>20?20:i;for(let t=0;t<s;t++){let t=c(this.item);t.active=!0,this.listPoor.push(t)}let o=0;s=i>9?9:i;for(let t=0;t<s;t++){let i=this.getList();this.content.addChild(i),o=-this._PADDING_TOP-e*t-(e>>1),i.setPosition(0,o,0),this.itemarr.push(i);let n=t;i.getComponent(p).initRanking(n,this.ListData)}this.content.getComponent(h).height=n}}).prototype,"scroll",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=i(_.prototype,"item",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=i(_.prototype,"content",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=_))||D));n._RF.pop()}}}));

System.register("chunks:///_virtual/RaffleticketBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./LanguageLabel.ts","./Global.ts","./RaffleTicketModel.ts"],(function(e){"use strict";var t,i,l,n,a,r,s,c,o,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){l=e.cclegacy,n=e.Label,a=e._decorator,r=e.Component},function(e){s=e.ELanguage_Type},function(e){c=e.LanguageLabel},function(e){o=e.Global},function(e){f=e.RaffleTicketModel}],execute:function(){var u,p,b,g,m,L,d;l._RF.push({},"ca785W+AGdCf4V2iaiKUCeV","RaffleticketBtn",void 0);const{ccclass:h,property:y}=a;e("RaffleticketBtn",(u=h("RaffleticketBtn"),p=y({displayName:"leftTimeLabel",type:n}),b=y({displayName:"描述",type:c}),u((L=t((m=class extends r{constructor(...e){super(...e),i(this,"leftTimeLabel",L,this),i(this,"dec",d,this)}start(){this.schedule((()=>{this.refreshLeftTime()}),1),this.refreshLeftTime();let e=[s.CN,s.EN];this.dec.setLanguageTypeArr(e)}onEnable(){}onDisable(){}refreshLeftTime(){this.leftTimeLabel.string=o.gameCtrl.getModel(f).getLastTime()}}).prototype,"leftTimeLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(m.prototype,"dec",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=m))||g));l._RF.pop()}}}));

System.register("chunks:///_virtual/RaffleTicketModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./GameUtil.ts","./StringUtil.ts","./Controller.ts","./Global.ts","./CustomEventMgr.ts","./Language.ts","./MsgHandler.ts"],(function(t){"use strict";var e,i,s,n,a,c,r,l,o,u,f;return{setters:[function(t){e=t.cclegacy,i=t._decorator},function(t){s=t.Raffle_Award},function(t){n=t.RaffleTicketEvent},function(t){a=t.GameUtils},function(t){c=t.default},function(t){r=t.Controller},function(t){l=t.Global},function(t){o=t.CustomEventMgr},function(t){u=t.default},function(t){f=t.default}],execute:function(){var h;e._RF.push({},"1287bXcAVlE75UdpOjcSxSV","RaffleTicketModel",void 0);const{ccclass:d}=i;t("RaffleTicketModel",d("RaffleTicketModel")(h=class extends r{constructor(...t){super(...t),this.winnerLists=[],this.awardLists=["0","0","0","0","0","0"],this.issue_number=-1,this.endTime=0,this.amountLabNum=0,this.jackpot=0,this.historicalRecord=[],this.myRaffleTicket=[],this.last_myRaffleTicket=[],this.is_win=!1,this.awardMoney=0,this.is_open=!1}getWinningList(){f.Instance().c2sRTGetRTWinningList()}setWinningListORHistorical(t){this.historicalRecord.length=0,this.winnerLists.length=0;let e=t;for(let t=0;t<e.length;t++){let i=e[t],s=this.getAwardLevel(Number(i.award_id)),n={a:t+1,b:a.replaceUid(i.account),c:s};this.historicalRecord.push(n),s+=" : "+a.replaceUid(i.account),this.winnerLists.push(s)}o.fire(n.ON_WINNINGLIST_OR_HISTORICAL)}getAwardLevel(t){let e=-1;switch(t){case s.FIRST:e=150007;break;case s.SECOND:e=150008;break;case s.THIRD:e=150009;break;case s.FOURTH:e=150010;break;case s.LUCKY:e=150020}return u.getInstance().language.getString(e)}getJackPotAndMyTicket(){f.Instance().c2sRTGetJackPotAndMyTicket()}setJackPotAndMyTicket(t){if(!t||0==t.is_open)return this.is_open=!1,void o.fire(n.ON_JACKPOT_AND_MYTICKET);0==this.jackpot&&0==this.amountLabNum&&(this.amountLabNum=t.jackpot),this.jackpot=t.jackpot,this.endTime=1*t.end_time,this.issue_number=t.issue_id,this.is_open=!!t.is_open,this.myRaffleTicket.length=0,this.last_myRaffleTicket.length=0;let e=JSON.parse(t.deliver);if(e&&e.length>0)for(let t=0;t<e.length;t++){let i={a:e[t].code};this.myRaffleTicket.push(i)}let i=JSON.parse(t.last_deliver);if(i&&i.length>0)for(let t=0;t<i.length;t++){let e={a:i[t].code};this.last_myRaffleTicket.push(e)}o.fire(n.ON_JACKPOT_AND_MYTICKET),l.gameCtrl.mainUITs.checkAllBtnOpen()}getRunALottery(){f.Instance().c2sRTRunALottery()}setRunALottery(t){let e=t.win_code,i=t.issue_id;this.is_win=2==t.is_win,this.awardLists=e?e.split(","):["0","0","0","0","0","0"],t.is_runlot?(this.issue_number=i,o.fire(n.ON_RUN_A_LOTTERY)):o.fire(n.ON_GET_AWARDLISTS)}setReceive(t){this.awardMoney=t.reward,o.fire(n.ON_RECEIVE)}getLastTime(){let t=this.endTime-l.svrTimeMS/1e3;return t<0&&(t=0),this.formatRemainTime(t)}formatRemainTime(t){let e=t,i=a.floor(e/3600/24);e-=3600*i*24;let s=c.formatTime(e);return i>0&&(s=u.getInstance().language.getFormatString(160014,[i,s])),s}})||h);e._RF.pop()}}}));

System.register("chunks:///_virtual/RaffleTicketScrollView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RaffMyDrawCell.ts"],(function(t){"use strict";var i,e,n,s,o,l,r,a,h,c,u;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.ScrollView,o=t.Node,l=t._decorator,r=t.Component,a=t.EventHandler,h=t.UITransform,c=t.instantiate},function(t){u=t.RaffMyDrawCell}],execute:function(){var p,f,g,_,m,D,M,T,d;n._RF.push({},"54eb5dUoQJH+r1vtVwR1jWy","RaffleTicketScrollView",void 0);const{ccclass:y,property:P}=l;t("RaffleTicketScrollView",(p=y("RaffleTicketScrollView"),f=P(s),g=P(o),_=P(o),p((M=i((D=class extends r{constructor(...t){super(...t),e(this,"scroll",M,this),e(this,"item",T,this),e(this,"content",d,this),this._PADDING_TOP=0,this._ITEM_NUM=9,this.itemarr=[],this.listPoor=[],this.ListData=null}start(){const t=new a;t.target=this.node,t.component="RaffleTicketScrollView",t.handler="callback",t.customEventData="foobar";this.scroll.scrollEvents.push(t)}callback(t,i,e){if(!this.ListData)return;if(!t.isAutoScrolling()&&!t.isScrolling())return;let n=this.scroll.getScrollOffset().y,s=this.content.getComponent(h).height,o=this.item.getComponent(h).height;if(this.ListData.length<=this._ITEM_NUM)return;this.itemarr.map((i=>{if(!t.isAutoScrolling()&&!t.isScrolling())return;let e=(i.position.y+n)/o;if(e>=.5&&s-n>7.5*o){let t=i.getComponent(u).index+this._ITEM_NUM;t>=0&&t<this.ListData.length&&(i.setPosition(i.position.x,i.position.y-o*this._ITEM_NUM,i.position.x),i.getComponent(u).initRanking(t,this.ListData))}if(e<=1-this._ITEM_NUM&&n>o/2){let t=i.getComponent(u).index-this._ITEM_NUM;t>=0&&t<this.ListData.length&&(i.setPosition(i.position.x,i.position.y+o*this._ITEM_NUM,i.position.x),i.getComponent(u).initRanking(t,this.ListData))}}))}getList(){return 0!=this.listPoor.length?this.listPoor.shift():c(this.item)}creatList(t){this.ListData=t;let i=t.length,e=this.item.getComponent(h).height,n=this._PADDING_TOP+e*i,s=i>20?20:i;for(let t=0;t<s;t++){let t=c(this.item);t.active=!0,this.listPoor.push(t)}let o=0;s=i>this._ITEM_NUM?this._ITEM_NUM:i;for(let t=0;t<s;t++){let i=this.getList();this.content.addChild(i),o=-this._PADDING_TOP-e*t-(e>>1),i.setPosition(0,o,0),this.itemarr.push(i);let n=t;i.getComponent(u).initRanking(n,this.ListData)}this.content.getComponent(h).height=n}}).prototype,"scroll",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=i(D.prototype,"item",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=i(D.prototype,"content",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=D))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/RaffMyDrawCell.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,n,l,a,c,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Label,l=e.Sprite,a=e.SpriteFrame,c=e._decorator,o=e.Component}],execute:function(){var s,u,p,f,g,h,b,y,d;r._RF.push({},"a491da20kdI2K/EHqNDhi6L","RaffMyDrawCell",void 0);const{ccclass:_,property:m}=c;e("RaffMyDrawCell",(s=_("RaffMyDrawCell"),u=m(n),p=m(l),f=m(a),s((b=t((h=class extends o{constructor(...e){super(...e),i(this,"info_one_account",b,this),i(this,"cellbg",y,this),i(this,"cellBgs",d,this),this.index=0}start(){}initRanking(e,t){this.index=e,this.cellbg.spriteFrame=e%2==1?this.cellBgs[1]:this.cellBgs[0],t.map(((t,i)=>{e==i&&(this.info_one_account.string=t.a)}))}update(e){}}).prototype,"info_one_account",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(h.prototype,"cellbg",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(h.prototype,"cellBgs",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=h))||g));r._RF.pop()}}}));

System.register("chunks:///_virtual/RankBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./LanguageLabel.ts"],(function(e){"use strict";var t,n,a,r,c,i,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e._decorator,c=e.Component},function(e){i=e.ELanguage_Type},function(e){o=e.LanguageLabel}],execute:function(){var s,u,l,p,g;a._RF.push({},"9dbc3jWxAJJWLapVogITMYD","RankBtn",void 0);const{ccclass:d,property:f}=r;e("RankBtn",(s=d("RankBtn"),u=f({displayName:"描述",type:o}),s((g=t((p=class extends c{constructor(...e){super(...e),n(this,"dec",g,this)}start(){let e=[i.CN,i.EN];this.dec.setLanguageTypeArr(e)}onEnable(){}onDisable(){}update(e){}}).prototype,"dec",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));a._RF.pop()}}}));

System.register("chunks:///_virtual/RankingItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./StringUtil.ts"],(function(e){"use strict";var t,i,n,a,r,o,l,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Label,r=e.Node,o=e._decorator,l=e.Component},function(e){s=e.default}],execute:function(){var c,g,p,u,b,d,h,y,N,m,f,v,k;n._RF.push({},"e36e1dGklxJX6EHXhAtTnzv","RankingItem",void 0);const{ccclass:_,property:B}=o;e("RankingItem",(c=_("RankingItem"),g=B({displayName:"排名",type:a}),p=B({displayName:"玩家名字",type:a}),u=B({displayName:"分数",type:a}),b=B({displayName:"Info父节点",type:r}),d=B({displayName:"bg node",type:r}),c((N=t((y=class extends l{constructor(...e){super(...e),i(this,"rankLabel",N,this),i(this,"playerName",m,this),i(this,"txt_score",f,this),i(this,"top3InfoNode",v,this),i(this,"bgNode",k,this)}start(){}initRank(e,t){this.setRank(e,t)}recycleItem(){let e=this.bgNode.getChildByName("bg_1"),t=this.bgNode.getChildByName("bg_2"),i=this.bgNode.getChildByName("bg_3");e.active=!1,t.active=!1,i.active=!1}setBgActiveByIndex(e){let t=this.bgNode.getChildByName("bg_1"),i=this.bgNode.getChildByName("bg_2"),n=this.bgNode.getChildByName("bg_3"),a=this.bgNode.getChildByName("bg_nor"),r=[t,i,n];if(e>2)a.active=!0;else{a.active=!1;for(let t=0;t<r.length;t++)r[t].active=t==e}}setRank(e,t){this.setBgActiveByIndex(e),e>2?(this.top3InfoNode,this.rankLabel.node.active=!0,this.rankLabel.string=(e+1).toString()):(this.rankLabel.node.active=!1,this.top3InfoNode),this.playerName.string=s.replaceUid(t.name),this.txt_score.string=t.score/1e3+""}}).prototype,"rankLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(y.prototype,"playerName",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(y.prototype,"txt_score",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(y.prototype,"top3InfoNode",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(y.prototype,"bgNode",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y))||h));n._RF.pop()}}}));

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

System.register("chunks:///_virtual/RechargeBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./LanguageLabel.ts"],(function(e){"use strict";var t,n,r,a,c,i,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){r=e.cclegacy,a=e._decorator,c=e.Component},function(e){i=e.ELanguage_Type},function(e){s=e.LanguageLabel}],execute:function(){var o,u,l,p,g;r._RF.push({},"e82902Ir5hMzZqkWYtIFbf7","RechargeBtn",void 0);const{ccclass:f,property:d}=a;e("RechargeBtn",(o=f("RechargeBtn"),u=d({displayName:"描述",type:s}),o((g=t((p=class extends c{constructor(...e){super(...e),n(this,"dec",g,this)}start(){let e=[i.CN,i.EN];this.dec.setLanguageTypeArr(e)}onEnable(){}onDisable(){}update(e){}}).prototype,"dec",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));r._RF.pop()}}}));

System.register("chunks:///_virtual/RechargeBtnItem.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,n,l,r,a,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,l=e.Node,r=e.Label,a=e._decorator,s=e.Component}],execute:function(){var c,u,o,p,h,m,g,d,y,f,B;n._RF.push({},"6fd83dTItlFs6/jWcrWl8fg","RechargeBtnItem",void 0);const{ccclass:N,property:b}=a;e("RechargeBtnItem",(c=N("RechargeBtnItem"),u=b({displayName:"未选中背景",type:l}),o=b({displayName:"选中背景",type:l}),p=b({displayName:"title",type:r}),h=b({displayName:"unusetitle",type:r}),c((d=t((g=class extends s{constructor(...e){super(...e),i(this,"unSelectBg",d,this),i(this,"SelectBg",y,this),i(this,"titleName",f,this),i(this,"unUseTitleName",B,this),this.id_index=null}start(){}initInfo(e,t){this.id_index=t,this.titleName.string=e,this.unUseTitleName.string=e}showBtn(){this.unSelectBg.active=!1,this.SelectBg.active=!0,this.unUseTitleName.node.active=!1,this.titleName.node.active=!0}hideBtn(){this.unSelectBg.active=!0,this.SelectBg.active=!1,this.unUseTitleName.node.active=!0,this.titleName.node.active=!1}}).prototype,"unSelectBg",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(g.prototype,"SelectBg",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(g.prototype,"titleName",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(g.prototype,"unUseTitleName",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=g))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/RechargeBuyType.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,a,l,n,r,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,l=e.Node,n=e.Label,r=e._decorator,s=e.Component}],execute:function(){var o,c,u,p,h,y,g,d,m;a._RF.push({},"83317gqJ7RIU76neDYX3W1D","RechargeBuyType",void 0);const{ccclass:b,property:C}=r;e("RechargeBuyType",(o=b("RechargeBuyType"),c=C({displayName:"show",type:[l]}),u=C({displayName:"TypeLabel",type:n}),p=C({displayName:"TypeLabel",type:l}),o((g=t((y=class extends s{constructor(...e){super(...e),this.curIndex=null,this.data=null,i(this,"item",g,this),i(this,"typeLabel",d,this),i(this,"drop",m,this)}start(){}initInfo(e){this.data=e,this.item.map(((t,i)=>{if(t.on(l.EventType.TOUCH_END,this.choiceType,this),0==i){let a=t.getChildByName("use");a.active=!0,a.getChildByName("label").getComponent(n).string=e[i]}else{let a=t.getChildByName("unuse");a.active=!0,a.getChildByName("label").getComponent(n).string=e[i]}}))}choiceType(e){let t=e.getCurrentTarget();this.item.map(((e,i)=>{if(t==e){this.curIndex=i;let t=e.getChildByName("use");t.active=!0,t.getChildByName("label").getComponent(n).string=this.data[i],this.typeLabel.string=this.data[i],e.getChildByName("unuse").active=!1}else{let t=e.getChildByName("unuse");t.active=!0,t.getChildByName("label").getComponent(n).string=this.data[i],e.getChildByName("use").active=!1}})),this.scheduleOnce((()=>{this.drop.active=!1}),.5)}}).prototype,"item",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=t(y.prototype,"typeLabel",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(y.prototype,"drop",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y))||h));a._RF.pop()}}}));

System.register("chunks:///_virtual/RechargeElectric.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./PEditBox.ts","./ComponentMgr.ts","./Img.ts","./RechargeModel.ts","./CustomEventMgr.ts","./EventDefine.ts","./Language.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts","./LanguageSprite.ts","./EnumDefine.ts","./MsgHandler.ts"],(function(e){"use strict";var t,n,i,r,a,o,s,l,c,u,g,p,h,b,m,y,d,f,E,k;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,r=e.Label,a=e.Node,o=e._decorator},function(e){s=e.Global},function(e){l=e.PEditBox},function(e){c=e.default},function(e){u=e.Img},function(e){g=e.RechargeModel},function(e){p=e.CustomEventMgr},function(e){h=e.EventType},function(e){b=e.Language},function(e){m=e.UIView},function(e){y=e.UIManager},function(e){d=e.UIID},function(e){f=e.LanguageSprite},function(e){E=e.ELanguage_Type},function(e){k=e.default}],execute:function(){var N,B,C,I,U,R,L,T,v,w,x,D,z,S,M,_,O,A,H,F,P;i._RF.push({},"198749oYNxFyqwQYbt2lsyA","RechargeElectric",void 0);const{ccclass:j,property:G}=o;e("UIRechargeElectric",(N=j("UIRechargeElectric"),B=G({displayName:"bankUserName editbox",type:r}),C=G({displayName:"account editbox",type:r}),I=G({displayName:"remark editbox",type:l}),U=G({displayName:"bankUserNameCopyBtn",type:a}),R=G({displayName:"accountCopyBtn",type:a}),L=G({displayName:"codeImg",type:a}),T=G({displayName:"okBtn",type:a}),v=G({displayName:"closeBtn",type:a}),w=G({displayName:"title",type:a}),N((z=t((D=class extends m{constructor(...e){super(...e),n(this,"bankUserNameLabel",z,this),n(this,"accountLabel",S,this),n(this,"remarkEditBox",M,this),n(this,"bankUserNameCopyBtn",_,this),n(this,"accountCopyBtn",O,this),n(this,"codeImg",A,this),n(this,"okBtn",H,this),n(this,"closeBtn",F,this),n(this,"title",P,this)}start(){this.bindEvents(),this.closeBtn.on(a.EventType.TOUCH_END,(()=>{this.close()}),this)}onEnable(){p.on(h.RechargeOk,this.onRechargeOk,this),p.on(h.RechargeError,this.onRechargeError,this)}onDisable(){p.off(h.RechargeOk,this.onRechargeOk,this),p.off(h.RechargeError,this.onRechargeError,this)}bindEvents(){this.okBtn.on(a.EventType.TOUCH_END,this.okBtnClick,this),this.bankUserNameCopyBtn.on(a.EventType.TOUCH_END,(()=>{c.copyStringToClipboard(this.bankUserNameLabel.string.trim())}),this),this.accountCopyBtn.on(a.EventType.TOUCH_END,(()=>{c.copyStringToClipboard(this.accountLabel.string.trim())}),this)}init(e){var t;e.data.eleAgent;let n=e.data.eleCard,i=e.data.eleLogo,r=e.data.eleName;e.data.id;this.bankUserNameLabel.string=r,this.accountLabel.string=n,null==(t=this.codeImg.getComponent(u))||t.initImg(i);let a=[E.CN,E.EN];this.title.getComponent(f).setLanguageTypeArr(a)}okBtnClick(){if(""!=this.remarkEditBox.string.trim())s.gameCtrl.getModel(g).sendEleRecharge(this.remarkEditBox.string.trim());else{let e={content:b.getString(107059),okName:b.getString(130014),singleBtn:!0};y.getInstance().open(d.UIAlert,e)}}async onRechargeOk(e){k.Instance().c2sTransactions();let t={content:b.getString(107056),okName:b.getString(130014),singleBtn:!0,spriteTitleName:"swcj_guizeshuoming",okFunc:()=>{this.close()}};y.getInstance().open(d.UIAlert,t)}onRechargeError(e){k.Instance().c2sTransactions();let t={content:b.getString(110021),okName:b.getString(130014),singleBtn:!0,okFunc:()=>{this.close()}};y.getInstance().open(d.UIAlert,t)}}).prototype,"bankUserNameLabel",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(D.prototype,"accountLabel",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(D.prototype,"remarkEditBox",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(D.prototype,"bankUserNameCopyBtn",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(D.prototype,"accountCopyBtn",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(D.prototype,"codeImg",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(D.prototype,"okBtn",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(D.prototype,"closeBtn",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(D.prototype,"title",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=D))||x));i._RF.pop()}}}));

System.register("chunks:///_virtual/RechargeEPay.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RechargeModel.ts","./Global.ts","./Img.ts","./UIManager.ts","./UIDefined.ts","./User.ts","./Language.ts","./MsgHandler.ts"],(function(t){"use strict";var e,n,a,i,o,r,s,l,c,g,u,h,m,p,y,f,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){a=t.cclegacy,i=t.Node,o=t._decorator,r=t.Component,s=t.Sprite,l=t.Label},function(t){c=t.RechargeModel,g=t.RechargeType},function(t){u=t.Global},function(t){h=t.Img},function(t){m=t.UIManager},function(t){p=t.UIID},function(t){y=t.User},function(t){f=t.default},function(t){d=t.default}],execute:function(){var I,b,C,B,D,R,A,M,N;a._RF.push({},"47fd941khVIra+Q6T9wS7eE","RechargeEPay",void 0);const{ccclass:E,property:U}=o;t("RechargeEPay",(I=E("RechargeEPay"),b=U({displayName:"icon",type:i}),C=U({displayName:"title",type:i}),B=U({displayName:"货币单选按钮",type:[i]}),I((A=e((R=class extends r{constructor(...t){super(...t),n(this,"icon",A,this),n(this,"title",M,this),n(this,"moneyBtnsArr",N,this),this.amountInfos=[],this.Data=null}start(){this.bindEvents()}onLoad(){}onDestroy(){}bindEvents(){}initInfo(t){this.Data=t;let e=u.gameCtrl.getModel(c).amount;this.amountInfos=e,this.icon.getComponent(s).spriteFrame=null,this.icon.getComponent(h).initImg(t.logo),this.title.getComponent(l).string=t.name;for(let t=0;t<e.length&&null!=this.moneyBtnsArr[t];t++){let n=e[t];this.moneyBtnsArr[t].getChildByName("anniu").getChildByName("Label").getComponent(l).string=n.formatMoney,this.moneyBtnsArr[t].getChildByName("anniu").on(i.EventType.TOUCH_END,this.amountBtnClick,this)}}amountBtnClick(t){if(1==y.instance.is_trial){let e=()=>{Log.w(y.instance,"3++++++++++++++++++++++++++++++++"),d.Instance().c2sTryAccount(3),this.scheduleOnce((()=>{}),.5);let e=t.getCurrentTarget();this.showAmont(e)},n={content:f.getInstance().language.getString(200003),singleBtn:!1,okFunc:e,cancelFunc:()=>{},okName:f.getInstance().language.getString(105004),cancelName:f.getInstance().language.getString(130052)};m.getInstance().open(p.UIAlert,n)}else{let e=t.getCurrentTarget();this.showAmont(e)}}showAmont(t){0==this.Data.type?m.getInstance().open(p.UIRechargeBank,this.Data):1==this.Data.type&&m.getInstance().open(p.UIRechargeElectric,this.Data);let e=this.moneyBtnsArr.indexOf(t.parent),n=this.amountInfos[e],a=u.gameCtrl.getModel(c),i=a.getMoney(n.money,n.rate,a._rate),o=a.data,r=!1;if(o){let t=o[a.index];t&&t.type==g.TPR&&(r=!0)}a.setRechargeMoney(e+1,i,Number(n.money),r)}}).prototype,"icon",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(R.prototype,"title",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(R.prototype,"moneyBtnsArr",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=R))||D));a._RF.pop()}}}));

System.register("chunks:///_virtual/RechargeInfoConfig.ts",["cc"],(function(t){"use strict";var o,i;return{setters:[function(t){o=t.cclegacy,i=t._decorator}],execute:function(){var e;o._RF.push({},"5d854uMMepIi7KV3909FAoc","RechargeInfoConfig",void 0);const{ccclass:s}=i;t("RechargeInfoConfig",s("RechargeInfoConfig")(e=class{constructor(){this.pay_plat=void 0,this.country=void 0,this.country_code=void 0,this.state=void 0,this.state_code=void 0,this.city=void 0,this.address=void 0,this.last_name=void 0,this.first_name=void 0,this.email=void 0,this.zip_code=void 0,this.phone_no=void 0}attrs(){return["pay_plat","country","country_code","state","state_code","city","address","last_name","first_name","email","zip_code","phone_no"]}})||e);o._RF.pop()}}}));

System.register("chunks:///_virtual/RechargeModel.ts",["cc","./EventDefine.ts","./GameUtil.ts","./StringUtil.ts","./Controller.ts","./Language.ts","./MsgHandler.ts","./Global.ts","./CustomEventMgr.ts"],(function(t){"use strict";var e,n,a,o,i,s,r,c,h,u;return{setters:[function(t){e=t.cclegacy,n=t._decorator},function(t){a=t.EventType},function(t){o=t.GameUtils},function(t){i=t.default},function(t){s=t.Controller},function(t){r=t.Language},function(t){c=t.default},function(t){h=t.Global},function(t){u=t.CustomEventMgr}],execute:function(){var l;t("RechargeType",void 0),e._RF.push({},"5b0d6c6YdlJyoiaoUqcGjRc","RechargeModel",void 0);const{ccclass:d}=n;let _;!function(t){t[t.Transfer=0]="Transfer",t[t.Electronic=1]="Electronic",t[t.Agent=2]="Agent",t[t.TPR=3]="TPR",t[t.Dawal=4]="Dawal",t[t.SAFE_IN=5]="SAFE_IN",t[t.SAFE_OUT=6]="SAFE_OUT",t[t.NULL=7]="NULL"}(_||(_=t("RechargeType",{})));t("RechargeModel",d("RechargeModel")(l=class extends s{constructor(...t){super(...t),this._data=void 0,this._index=void 0,this._money=void 0,this._score=void 0,this._rate="0",this._country_codes=void 0,this._currency_code="USD",this._amount=void 0,this.isAutopay=!1,this.identificationCode=void 0,this.SBR_banks=[],this.SBR_momos=[],this.rechargeRecord=void 0,this.lastAmount=void 0,this.rechargeBubble=void 0,this._flag=void 0,this.agentInfo=void 0}initData(t){let e=[];e.push({type:_.Agent,logo:"agency_big_png",name:r.getString(120001),info:t.agencyName,data:t.content}),t.amount&&t.amount.length&&(t.bankList.forEach((t=>{e.push({type:_.Transfer,logo:t.bank_logo,name:t.bank_name,info:t.bank_name,data:t})})),t.eleList.forEach((t=>{e.push({type:_.Electronic,logo:t.eleLogo,name:t.eleName,info:t.eleName,data:t})})),t.thirdPayCollection&&t.thirdPayCollection.length>0&&t.thirdPayCollection.forEach((t=>{e.push({type:_.TPR,pay_plat:t.pay_plat,logo:t.logo,name:t.name,info:t.name,data:t})}))),this._rate=t.rate.toString(),this._data=e,this._country_codes=t.country_codes.split("|"),t.currency_code&&(this._currency_code=t.currency_code),this.isAutopay=!!t.isAutopay;let n=t.autopayConfig;if(n){let t=n.lastOutOrderNo;this.idCode=t;let e=n.bankList;this.lastAmount=n.lastAmount;let a=[];if(e&&e.length>0)for(let t=0;t<e.length;t++){let n=e[t],o={card:n.bank_account_no,user:n.bank_user_name,bank:n.bank_name};a.push(o)}this.SBR_banks=a,a=[];let o=n.walletList;if(o&&o.length>0)for(let t=0;t<o.length;t++){let e=o[t],n={card:e.bank_account_no,user:e.bank_user_name,bank:e.bank_account_no};a.push(n)}this.SBR_momos=a}this._amount=[],Array.isArray(t.rechargeRate)?t.amount.forEach(((e,n)=>{this._amount.push({code:this._currency_code,money:e,formatMoney:o.formatMoney(e),rate:t.rechargeRate[n]})})):t.amount.forEach((e=>{this._amount.push({code:this._currency_code,money:e,formatMoney:o.formatMoney(e),rate:t.rechargeRate})})),this.rechargeBubble=t.rechargeBubble,h.gameCtrl.mainUITs.checkAllBtnOpen()}get isOpenAutopay(){return this.isAutopay}get idCode(){return this.identificationCode}set idCode(t){this.identificationCode=t}get sbr_banks(){return this.SBR_banks}get sbr_momos(){return this.SBR_momos}setRechargeRecord(t){let e=[],n=0,o=[],i=0;for(let a=0;a<t.length;a++){let s=t[a];"1"==t[a].is_autopay?(s.idx=i++,o.push(s)):(s.idx=n++,e.push(s))}this.isAutopay?this.rechargeRecord=o:this.rechargeRecord=e,u.fire(a.Transactions)}get data(){return this._data}get amount(){return this._amount}get score(){return this._score}get countryCodes(){return this._country_codes}get currencyCode(){return this._currency_code}setRechargeMoney(t,e,n,a){this._flag=t,this._score=e,this._money=n}get index(){return this._index}set index(t){this._index=t}sendBankRecharge(t,e){let n=this._data[this._index].data;c.Instance().c2sbankRecharge(t,this._score,e,n.id,this._currency_code,this._money,this._flag)}sendEleRecharge(t){let e=this._data[this._index].data;c.Instance().c2seleRecharge(t,this._score,e.id,this._currency_code,this._money,this._flag)}set agent(t){this.agentInfo=t}get agent(){return this.agentInfo}getMoney(t,e,n){return e=i.floatDiv(e,100),t=i.floatMul(t,e),t=i.floatMul(t,n)}})||l);e._RF.pop()}}}));

System.register("chunks:///_virtual/RedpacketGiftItem.ts",["cc"],(function(t){"use strict";var e,o,s,c;return{setters:[function(t){e=t.cclegacy,o=t.Component,s=t.sp,c=t._decorator}],execute:function(){var n;e._RF.push({},"84cbarr1+5HpoS7ryna31vB","RedpacketGiftItem",void 0);const{ccclass:r,property:a}=c;t("RedpacketGiftItem",r("RedpacketGiftItem")(n=class extends o{constructor(...t){super(...t),this.isShow=!1}start(){}showUI(){this.node.getChildByName("hongbao").getComponent(s.Skeleton).setAnimation(0,"hongbao_xiaoshi",!1)}})||n);e._RF.pop()}}}));

System.register("chunks:///_virtual/RedpacketModel.ts",["cc","./Controller.ts"],(function(e){"use strict";var t,o,c;return{setters:[function(e){t=e.cclegacy,o=e._decorator},function(e){c=e.Controller}],execute:function(){var s;t._RF.push({},"5ddaf6knjtPpqyRJReTXnH4","RedpacketModel",void 0);const{ccclass:r}=o;e("RedpacketModel",r("RedpacketModel")(s=class extends c{constructor(...e){super(...e),this._redpacket=void 0,this._exptime=void 0,this.allowToGet=!1}setRedpacketInfo(e,t){this._redpacket=e,this._exptime=t}get redpacket(){return this._redpacket||0}get allowtoget(){return this.allowToGet}set allowtoget(e){this.allowToGet=e}get exptime(){return this._exptime}})||s);t._RF.pop()}}}));

System.register("chunks:///_virtual/RegisterModel.ts",["cc","./EventDefine.ts","./Controller.ts","./CustomEventMgr.ts","./MsgHandler.ts"],(function(e){"use strict";var t,s,i,r,n,o;return{setters:[function(e){t=e.cclegacy,s=e._decorator},function(e){i=e.EventType},function(e){r=e.Controller},function(e){n=e.CustomEventMgr},function(e){o=e.default}],execute:function(){var c;t._RF.push({},"f34bf+QjPhPR5rAqVMFyUxv","RegisterModel",void 0);const{ccclass:g}=s;e("RegisterModel",g("RegisterModel")(c=class extends r{constructor(...e){super(...e),this.isRegister=!1,this._isInit=!1,this._registerData=void 0}isOpenRegister(e){this.isRegister=!!Number(e.regButton),this.isInit=!this.isRegister,this.isInit||o.Instance().c2sregistertype(),n.fire(i.OnIsOpenRegister)}openRegisterType(e){let t,s=Number(e.register),i=e.code?e.code:[],r=Number(e.is_captcha),n=Number(e.agent_code)<<1,o=Number(e.is_confirmpwd);t=r|n,this._registerData={code:i,openType:t,confirmpwd:o,registerType:s},this.isInit=!0}get registerData(){return this._registerData}set isInit(e){this._isInit=e}get isInit(){return this._isInit}})||c);t._RF.pop()}}}));

System.register("chunks:///_virtual/ReleaseManager.ts",["cc","./HotUpdateDefine.ts","./LogUtil.ts","./Global.ts","./BundleManager.ts"],(function(e){"use strict";var t,a,s,n,l,d,r,u;return{setters:[function(e){t=e.cclegacy,a=e.assetManager,s=e.Asset,n=e.isValid},function(e){l=e.Macro},function(e){d=e.default},function(e){r=e.Global},function(e){u=e.BundleManager}],execute:function(){t._RF.push({},"032beCXeQNA5YsrgCbq7X+n","ReleaseManager",void 0);const i="[ReleaseManager] : ";class o{constructor(e){this.name="",this._assets=new Map,this.name=e}add(e){if(Array.isArray(e.data)){d.debug(`${i}向${this.name}加入待释放目录:${e.url}`);for(let t=0;t<e.data.length;t++)e.data[t]&&e.data[t].addRef()}else e.data&&(d.debug(`${i}向${this.name}加入待释放资源:${e.url}`),e.data.addRef());this._assets.set(e.url,e)}get(e){let t=this._assets.get(e),a=null;if(t)if(Array.isArray(t.data)){for(let e=0;e<t.data.length;e++)t.data[e]&&t.data[e].decRef(!1);d.debug(`${i}向${this.name}获取待释放目录:${t.url}`),a=t.data}else n(t.data)&&(t.data.decRef(!1),d.debug(`${i}向${this.name}获取待释放资源:${t.url}`),a=t.data);return this._assets.delete(e),a}onLowMemory(){if(this._assets.size>0){if(d.debug(`${i}bundle : ${this.name} 释放加载的资源`),this.name==l.BUNDLE_REMOTE)return this._assets.forEach(((e,t,n)=>{e.data instanceof s&&(d.debug(`${i}bundle : ${this.name} 释放远程加载资源${e.url}`),a.releaseAsset(e.data))})),void this._assets.clear();let e=a.getBundle(this.name);e?(this._assets.forEach(((t,a,s)=>{if(Array.isArray(t.data)){d.debug(`${i}bundle : ${this.name} 释放加载目录${t.url}`);for(let a=0;a<t.data.length;a++)if(t.data[a]){t.data[a].decRef(!1);let s=`${t.url}/${t.data[a].name}`;null==e||e.release(s,t.type),d.debug(`${i}bundle : ${this.name} 释放加载资源${s}`)}}else n(t.data)&&(t.data.decRef(!1),null==e||e.release(t.url,t.type),d.debug(`${i}bundle : ${this.name} 释放加载资源${t.url}`))})),this._assets.clear()):(d.warn(`${i}释放bundle : ${this.name} 时，Bundle已经被释放，直接清空待释放数据`),this._assets.clear())}}tryRemove(e){this.name==e&&this.onLowMemory()}get assets(){return this._assets}}class h{constructor(){this._lazyInfos=new Map,this._bundles=new Map,this._remote=new o(l.BUNDLE_REMOTE)}static Instance(){return this._instance||(this._instance=new h)}getBundle(e){return u.getInstance().getBundle(e)}getBundleName(e){return u.getInstance().getBundleName(e)}release(e){let t=this.getBundle(e.bundle);if(t)if(r.isLazyRelease){let a,s=t.name;this._lazyInfos.has(s)?a=this._lazyInfos.get(s):(a=new o(s),this._lazyInfos.set(s,a)),a&&a.add(e)}else if(Array.isArray(e.data)){for(let a=0;a<e.data.length;a++){let s=`${e.url}/${e.data[a].name}`;t.release(s,e.type)}d.debug(`${i}成功释放资源目录 : ${e.bundle}.${e.url}`)}else t.release(e.url,e.type),d.debug(`${i}成功释放资源 : ${e.bundle}.${e.url}`);else d.error(`${i}${e.bundle} no found`)}get(e,t){let a=this.getBundle(e);if(a){let e=this._lazyInfos.get(a.name);if(e)return e.get(t)}else{d.warn(`${i}${e}不存在，删除释放管理器中的缓存`);let t=this.getBundleName(e);this.onLoadBundle(t),this._lazyInfos.delete(t)}return null}removeBundle(e){let t=this.getBundle(e);r.isLazyRelease?t&&(d.debug(`${i}向释放管理器中添加待释放bundle : ${null==t?void 0:t.name}`),this._bundles.set(null==t?void 0:t.name,!1)):(d.debug(`${i}释放Bundle : ${null==t?void 0:t.name}`),t&&a.removeBundle(t))}onLoadBundle(e){this._bundles.delete(e)}onLowMemory(){d.debug(`${i}------------收到内存警告，释放无用资源------------`),this._lazyInfos.forEach(((e,t,a)=>{e.onLowMemory()})),d.debug(`${i}-------------释放无用bundle-------------`),this._bundles.forEach(((e,t)=>{let s=a.getBundle(t);s&&(d.debug(`释放无用bundle : ${t}`),a.removeBundle(s),this._bundles.delete(t))})),d.debug(`${i}-------------释放无用远程资源-------------`),this._remote.onLowMemory()}tryRemoveBundle(e){d.debug(`${i}--------------尝试释放${e}加载资源------------`),this._lazyInfos.forEach(((t,a,s)=>{t.tryRemove(e)}));let t=this.getBundleName(e),s=a.getBundle(t);s&&(d.debug(`释放无用bundle : ${t}`),a.removeBundle(s),this._bundles.delete(t))}getRemote(e){return this._remote.get(e)}releaseRemote(e){r.isLazyRelease?this._remote.add(e):e.data instanceof s&&a.releaseAsset(e.data)}}e("ReleaseManager",h),h._instance=null,t._RF.pop()}}}));

System.register("chunks:///_virtual/ResDefine.ts",["cc"],(function(_){"use strict";var o;return{setters:[function(_){o=_.cclegacy}],execute:function(){_("SoundNameEnum",void 0),o._RF.push({},"165eaB99PFLoIriq9nyeEvs","ResDefine",void 0);_("ResDefine",{COMMON_TEXTURE_URL:"texture/common/",UI_TEXTURE_URL:"texture/ui/",UI_PREFAB_URL:"prefabs/ui/",UI_TIPS_PREFAB:"prefabs/component/Tips",LANGUAGE_SPRITE_URL:"texture/language/",LANGUAGE_CONFIG_URL:"config/lang/",LANGUAGE_APPANNJSON_LOCATION:"config/APPann",CONFIG_LOCATION:"config/config",VERSION_LOCATION:"config/version",GLOBAL_CONFIG_LOCATION:"config/global",VP_GAME_LOCATION:"texture/ui/VP_MainUI/ui",VP_MAIN_UI_PREFAB_LOCATION:"prefabs/main_page/VPMainUi",CUSTOMER_SERVICE_LOCATION:"im/",XG_GAME_ICONS_LOCATION:"texture/ui/XG_MainUI/gameicon/",VP_GAME_ICONS_LOCATION:"texture/ui/VP_MainUI/gameicon/",VP_GAME_LONG_ICONS_LOCATION:"texture/ui/VP_MainUI/gameicon_long/",VP_GAME_db_ICONS_LOCATION:"texture/ui/VP_MainUI/gameicon_db/",VP_GAME_SPINE_ICONS_LOCATION:"texture/ui/VP_MainUI/gameicon_spine/",VP_GAME_SPINE_ICONS_S_LOCATION:"texture/ui/VP_MainUI/gameicon_sp_s/",VP_GAME_SPINE_ICONS_L_LOCATION:"texture/ui/VP_MainUI/gameicon_sp_l/",RESOURCE_ANIMATION_CLIPS_DIR:"common/animations/aimation_clips/",VP_LOGIN_PRE:"prefabs/ui/UILoginFull"}),_("SoundDefine",{music_home:"audio/music_home",sound_click:"audio/sound_click",sound_click_btn:"audio/sound_click_btn",sound_click_game:"audio/sound_click_game",sound_click_go:"audio/sound_click_go",sound_click_kind:"audio/sound_click_kind",sound_click_login:"audio/sound_click_login",sound_click_logout:"audio/sound_click_logout",sound_click_redpacket:"audio/sound_click_redpacket",sound_close:"audio/sound_close",sound_coinend:"audio/sound_coinend",sound_drag:"audio/sound_drag",sound_error:"audio/sound_error",sound_firework:"audio/sound_firework",sound_getprogress:"audio/sound_getprogress",sound_redpacket_light:"audio/sound_redpacket_light",sound_task_box_open:"audio/sound_task_box_open",sound_task_get_coin:"audio/sound_task_get_coin",sound_turn_drop:"audio/sound_turn_drop",sound_turn_end:"audio/sound_turn_end",sound_turn_loop:"audio/sound_turn_loop",sound_turn_start:"audio/sound_turn_start"});let n;!function(_){_[_.no_sound=0]="no_sound",_[_.music_home=1]="music_home",_[_.sound_click=2]="sound_click",_[_.sound_click_btn=3]="sound_click_btn",_[_.sound_click_game=4]="sound_click_game",_[_.sound_click_go=5]="sound_click_go",_[_.sound_click_kind=6]="sound_click_kind",_[_.sound_click_login=7]="sound_click_login",_[_.sound_click_logout=8]="sound_click_logout",_[_.sound_click_redpacket=9]="sound_click_redpacket",_[_.sound_close=10]="sound_close",_[_.sound_coinend=11]="sound_coinend",_[_.sound_drag=12]="sound_drag",_[_.sound_error=13]="sound_error",_[_.sound_firework=14]="sound_firework",_[_.sound_getprogress=15]="sound_getprogress",_[_.sound_redpacket_light=16]="sound_redpacket_light",_[_.sound_task_box_open=17]="sound_task_box_open",_[_.sound_task_get_coin=18]="sound_task_get_coin",_[_.sound_turn_drop=19]="sound_turn_drop",_[_.sound_turn_end=20]="sound_turn_end",_[_.sound_turn_loop=21]="sound_turn_loop",_[_.sound_turn_start=22]="sound_turn_start"}(n||(n=_("SoundNameEnum",{}))),o._RF.pop()}}}));

System.register("chunks:///_virtual/ResManager.ts",["cc","./HotUpdateDefine.ts","./LogUtil.ts","./Resource.ts","./BundleManager.ts","./CacheManager.ts","./ReleaseManager.ts"],(function(e){"use strict";var t,a,n,s,o,l,i,d,r,u,c,h;return{setters:[function(e){t=e.cclegacy,a=e.Texture2D,n=e.JsonAsset,s=e.Asset,o=e.sp,l=e.assetManager},function(e){i=e.Macro},function(e){d=e.default},function(e){r=e.Resource},function(e){u=e.BundleManager},function(e){c=e.CacheManager},function(e){h=e.ReleaseManager}],execute:function(){t._RF.push({},"91289sIeF5EpIKUB/r6SKmV","ResManager",void 0);class g{constructor(){this._logTag="[RemoteLoader] "}static Instance(){return this._instance||(this._instance=new g)}loadImage(e,t){let n=this;return new Promise((s=>{if(null==e||null==e||e.length<=0)s(null);else{if(t){let t=c.getInstance().remoteCaches.getSpriteFrame(e);if(t&&t.data)return void s(t.data);c.getInstance().remoteCaches.remove(e)}else c.getInstance().remoteCaches.remove(e);n._loadRemoteRes(e,a,t).then((t=>{let a=c.getInstance().remoteCaches.get(e);if(t&&a){a.data=t,a.data.name=e;let n=c.getInstance().remoteCaches.setSpriteFrame(e,a.data);s(n)}else s(null)}))}}))}loadRemoteJson(e){let t=this;return new Promise((a=>{null==e||null==e||e.length<=0?a(null):t._loadRemoteRes(e,n,!1).then((e=>{a(e||null)}))}))}loadRemoteZip(e){let t=this;return new Promise((a=>{null==e||null==e||e.length<=0?a(null):t._loadRemoteRes(e,s,!1).then((e=>{a(e||null)}))}))}loadSkeleton(e,t,l){l=!1;let d=this;return new Promise((u=>{if(e&&t){let g=`${e}/${t}`,f=`${e}/${t}.atlas`,m=`${e}/${t}.png`,R=`${e}/${t}.json`,I=h.Instance().getRemote(g);if(I){let e=c.getInstance().remoteCaches.get(g);return void(e?(e.isLoaded=!0,e.data=I,e.info.data=I,e.info.url=g,u(e.data),e.doFinish(e.data)):(e=new r.CacheData,e.info.resourceType=r.Type.Remote,e.info.type=o.SkeletonData,e.info.bundle=i.BUNDLE_REMOTE,e.isLoaded=!0,e.data=I,e.info.data=I,e.info.url=g,c.getInstance().remoteCaches.set(g,e),u(e.data),e.doFinish(e.data)))}let p=c.getInstance().remoteCaches.get(g);p?p.isLoaded?u(p.data):p.finishCb.push(u):(p=new r.CacheData,p.info.resourceType=r.Type.Remote,p.info.type=o.SkeletonData,p.info.bundle=i.BUNDLE_REMOTE,c.getInstance().remoteCaches.set(g,p),d._loadRemoteRes(m,s,l).then((e=>{e?d._loadRemoteRes(R,n,l).then((s=>{s?d._loadRemoteRes(f,n,l).then((n=>{if(n){let l=new o.SkeletonData;l.skeletonJson=s.json,l.atlasText=n.text;let i=new a;i.image=e,l.textures=[i];let d=t+".png";l.textureNames=[d],p=p,p.info.url=g,l.name=g,p.data=l,p.isLoaded=!0,u(p.data),p.doFinish(p.data)}else u(null),p=p,p.doFinish(null),c.getInstance().remoteCaches.remove(g)})):(u(null),p=p,p.doFinish(null),c.getInstance().remoteCaches.remove(g))})):(u(null),p=p,p.doFinish(null),c.getInstance().remoteCaches.remove(g))})))}else u(null)}))}_loadRemoteRes(e,t,a){return new Promise((n=>{let s=c.getInstance().remoteCaches.get(e);if(s)s.isLoaded?n(s.data):s.finishCb.push(n);else{s=new r.CacheData,s.info.resourceType=r.Type.Remote,s.info.type=t,c.getInstance().remoteCaches.set(e,s);let o=h.Instance().getRemote(e);if(o)return s.isLoaded=!0,s.data=o,s.data.addRef(),s.doFinish(o),void n(s.data);l.loadRemote(e,{cacheAsset:!0,reloadAsset:!a},((e,t)=>{s&&(s.isLoaded=!0,t&&(s.data=t,s.data.addRef()),s.doFinish(t),n(s.data))}))}}))}update(){}}g._instance=null;class f{constructor(){this.logTag="[AssetManager]: ",this._remote=new g}static Instance(){return this._instance||(this._instance=new f)}get remote(){return this._remote}getBundle(e){return u.getInstance().getBundle(e)}loadRemoteImg(e,t,a){g.Instance().loadImage(e,t).then((e=>{a&&a(e)}))}loadRemoteJson(e,t){g.Instance().loadRemoteJson(e).then((e=>{t&&t(e)}))}loadRemoteZip(e,t){g.Instance().loadRemoteZip(e).then((e=>{t&&t(e)}))}load(e,t,a,n,s){let o=c.getInstance().get(e,t);if(o)o.isLoaded?s(o):o.finishCb.push(s),o.status=r.CacheStatus.NONE;else{o=new r.CacheData,o.info.url=t,o.info.type=a,o.info.bundle=e,c.getInstance().set(e,t,o);let l=h.Instance().get(e,t);if(l)return void this._onLoadComplete(o,s,null,l);let i=this.getBundle(e);if(!i){let t=new Error(`${this.logTag} ${e} 没有加载，请先加载`);return void this._onLoadComplete(o,s,t,null)}l=i.get(t,a),l?this._onLoadComplete(o,s,null,l):n?i.load(t,a,n,this._onLoadComplete.bind(this,o,s)):i.load(t,a,this._onLoadComplete.bind(this,o,s))}}_onLoadComplete(e,t,a,n){e.isLoaded=!0;let s=e;if(a?(d.warn(`${this.logTag}加载资源失败:${e.info.url} 原因:${a.message?a.message:"未知"}`),e.data=null,s.data=null,c.getInstance().remove(e.info.bundle,e.info.url),t(e)):(e.data=n,s.data=n,t(e)),e.doFinish(s),e.doGet(s.data),e.status==r.CacheStatus.WAITTING_FOR_RELEASE&&e.data){e.status=r.CacheStatus.NONE;let t=new r.Info;t.url=e.info.url,t.type=e.info.type,t.data=e.data,t.bundle=e.info.bundle,this.releaseAsset(t)}}loadDir(e,t,a,n,s){let o=c.getInstance().get(e,t);if(o)o.isLoaded?s(o):o.finishCb.push(s),o.status=r.CacheStatus.NONE;else{o=new r.CacheData,o.info.url=t,o.info.type=a,o.info.bundle=e,c.getInstance().set(e,t,o);let l=h.Instance().get(e,t);if(l)return void this._onLoadComplete(o,s,null,l);let i=this.getBundle(e);if(!i){let t=new Error(`${this.logTag} ${e} 没有加载，请先加载`);return void this._onLoadComplete(o,s,t,null)}n?i.loadDir(t,a,n,this._onLoadComplete.bind(this,o,s)):i.loadDir(t,a,this._onLoadComplete.bind(this,o,s))}}releaseAsset(e){if(e&&e.bundle){let t=c.getInstance().get(e.bundle,e.url,!1);if(!t)return;if(t.isInvalid)return;if(t.isLoaded){if(t.info.retain)return;c.getInstance().removeWithInfo(e)&&h.Instance().release(e)}else t.status=r.CacheStatus.WAITTING_FOR_RELEASE}}retainAsset(e){if(e){let t=c.getInstance().get(e.bundle,e.url);if(t)if(t.info.retain||(t.info.retain=e.retain),Array.isArray(t.data))for(let e=0;e<t.data.length;e++)t.data[e]&&t.data[e].addRef();else t.data&&t.data.addRef()}}addPersistAsset(e,t,a){let n=new r.Info;n.url=e,n.data=t,n.bundle=a,n.retain=!0,this.retainAsset(n)}}e("ResManager",f),f._instance=null,t._RF.pop()}}}));

System.register("chunks:///_virtual/ResolutionUtil.ts",["cc"],(function(e){"use strict";var t,i,n,c,s,l;return{setters:[function(e){t=e.cclegacy,i=e.v2,n=e._decorator,c=e.view,s=e.UITransform,l=e.screen}],execute:function(){var r,o;t._RF.push({},"37597MlptBLnZpf17p5oeRl","ResolutionUtil",void 0);const{ccclass:u,property:S}=n;e("default",u(((o=class e{static hasScreenFringe(){let e=c.getFrameSize();return e.height/e.width>=2}static calcResolution(e){let t=c.getDesignResolutionSize();this.screenSize.x=e.node.getComponent(s).width,this.screenSize.y=e.node.getComponent(s).height,this.halfScreenSize.x=this.screenSize.x/2,this.halfScreenSize.y=this.screenSize.y/2,this.fullScreenScale=Math.max(1,e.node.getComponent(s).height/t.height)}static setFullScreen(){l.requestFullScreen(),e.isFullScreen=!0}static exitFullScreen(){l.exitFullScreen(),e.isFullScreen=!1}}).screenSize=i(),o.halfScreenSize=i(),o.fullScreenScale=1,o.shuihuFullScale=1280/960,o.isFullScreen=!1,r=o))||r);t._RF.pop()}}}));

System.register("chunks:///_virtual/Resource.ts",["cc"],(function(t){"use strict";var s,i;return{setters:[function(t){s=t.cclegacy,i=t.isValid}],execute:function(){let e;t("Resource",void 0),s._RF.push({},"75f79w9RWtDXYGrJ0XXxREH","Resource",void 0),function(t){let s,e,n;!function(t){t[t.LOADING=0]="LOADING",t[t.NO_FOUND_LOAD_RESOURCE=1]="NO_FOUND_LOAD_RESOURCE",t[t.SUCCESS=2]="SUCCESS"}(s||(s={})),t.LoaderError=s,function(t){t[t.NONE=0]="NONE",t[t.WAITTING_FOR_RELEASE=1]="WAITTING_FOR_RELEASE"}(e||(e={})),t.CacheStatus=e,function(t){t[t.Local=0]="Local",t[t.Remote=1]="Remote"}(n||(n={})),t.Type=n;class h{constructor(){this.url="",this.type=null,this.data=null,this.retain=!1,this.bundle=null,this.resourceType=n.Local}}t.Info=h;t.CacheData=class{constructor(){this.isLoaded=!1,this.data=null,this.info=new h,this.status=e.NONE,this.getCb=[],this.finishCb=[]}doGet(t){for(let s=0;s<this.getCb.length;s++)this.getCb[s]&&this.getCb[s](t);this.getCb=[]}doFinish(t){for(let s=0;s<this.finishCb.length;s++)this.finishCb[s]&&this.finishCb[s](t);this.finishCb=[]}get isInvalid(){return this.isLoaded&&this.data&&!i(this.data)}}}(e||(e=t("Resource",{}))),s._RF.pop()}}}));

System.register("chunks:///_virtual/ResourceLoader.ts",["cc","./ResManager.ts","./Resource.ts"],(function(e){"use strict";var o,s,t,r;return{setters:[function(e){o=e.Asset,s=e.cclegacy},function(e){t=e.ResManager},function(e){r=e.Resource}],execute:function(){s._RF.push({},"5f733x9ZGdHYaXFrqIJAe2h","ResourceLoader",void 0);e("default",class{constructor(){this._resources=new Map,this._loadedCount=0,this._loadedResource=new Map,this._isLoading=!1,this._tag=null,this._onLoadComplete=void 0,this._onLoadProgress=void 0,this._getLoadResource=void 0}get tag(){return this._tag}set tag(e){this._tag=e}set onLoadComplete(e){this._onLoadComplete=e}get onLoadComplete(){return this._onLoadComplete}set onLoadProgress(e){this._onLoadProgress=e}get onLoadProgress(){return this._onLoadProgress}set getLoadResources(e){this._getLoadResource=e}get getLoadResources(){return this._getLoadResource}loadResources(){if(!this.getLoadResources)return void(this.onLoadComplete&&this.onLoadComplete(r.LoaderError.NO_FOUND_LOAD_RESOURCE));let e=this.getLoadResources();if(e)if(e.length<=0)this.onLoadComplete&&this.onLoadComplete(r.LoaderError.NO_FOUND_LOAD_RESOURCE);else if(this._isLoading)this.onLoadComplete&&this.onLoadComplete(r.LoaderError.LOADING);else{if(this._resources.size>0&&this.isLoadComplete())return this.onLoadComplete&&this.onLoadComplete(r.LoaderError.SUCCESS),void this.onLoadResourceComplete();this._isLoading=!0,e.forEach(((e,o)=>{e.url?this._resources.set(e.url,e):e.dir&&this._resources.set(e.dir,e)})),this._loadedCount=0,this._resources.forEach(((e,o,s)=>{e.dir?t.Instance().loadDir(e.bundle,e.dir,e.type,null,this._onLoadResourceComplete.bind(this)):t.Instance().load(e.bundle,e.url,e.type,null,this._onLoadResourceComplete.bind(this))}))}else this.onLoadComplete&&this.onLoadComplete(r.LoaderError.NO_FOUND_LOAD_RESOURCE)}unLoadResources(){this._unLoadResources()}_unLoadResources(){this._isLoading||this._resources.size<=0?this._isLoading&&Log.d("resources is loading , waiting for unload!!!"):(this._resources.size>0&&this._resources.forEach((e=>{if(e.url){if(this._loadedResource.has(e.url)){let o=this._loadedResource.get(e.url);o&&t.Instance().releaseAsset(o),this._loadedResource.delete(e.url)}}else if(e.dir&&this._loadedResource.has(e.dir)){let o=this._loadedResource.get(e.dir);o&&t.Instance().releaseAsset(o),this._loadedResource.delete(e.dir)}})),this._isLoading=!1,this._loadedCount=0,this._resources.clear())}_onLoadResourceComplete(e){if(this._loadedCount++,this._onLoadProgress&&(this._loadedCount>this._resources.size&&(this._loadedCount=this._resources.size),this._onLoadProgress(this._loadedCount,this._resources.size,e)),e&&(Array.isArray(e.data)||e.data instanceof o)){let o=new r.Info;o.url=e.info.url,o.type=e.info.type,o.data=e.data,o.bundle=e.info.bundle,t.Instance().retainAsset(o),this._loadedResource.set(o.url,o)}this.checkLoadResourceComplete()}checkLoadResourceComplete(){this.isLoadComplete()&&(this._isLoading=!1,this.onLoadComplete&&this.onLoadComplete(r.LoaderError.SUCCESS),this.onLoadResourceComplete())}onLoadResourceComplete(){}isLoadComplete(){return this._loadedCount>=this._resources.size}}),s._RF.pop()}}}));

System.register("chunks:///_virtual/ResourceManager.ts",["cc","./Singleton.ts"],(function(e){"use strict";var s,t,n,r,a,i;return{setters:[function(e){s=e.resources,t=e.Prefab,n=e.SpriteAtlas,r=e.assetManager,a=e.cclegacy},function(e){i=e.Singleton}],execute:function(){a._RF.push({},"05ddb6dKlZE1Y2353/f1FYT","ResourceManager",void 0);class l extends(i()){constructor(...e){super(...e),this.atlas={},this.bundles={},this.prefabs={}}async loadResAsync(e,t,n,r){let a=e.substring(e.lastIndexOf("/")+1),i=this.getAssetsCache(t);return i[a]?i[a]:new Promise(((l,o)=>{let u=function(e,s,t){r&&r(e,s,t)},c=function(s,t){if(s)return console.warn(`Load Asset ${e} Error ${s}`),void o(`Load Asset ${e} Error ${s}`);i[a]=t,l(t)};n?this.getBundleAsync(n).then((s=>{s.load(e,t,u,c)})):s.load(e,t,u,c)}))}getAssetsCache(e){let s={};return e instanceof t?s=this.prefabs:e instanceof n&&(s=this.atlas),s}async getBundleAsync(e="resources"){let s=r.getBundle(e);return s?Promise.resolve(s):(this.bundles[e]||(this.bundles[e]=new Promise(((s,t)=>{r.loadBundle(e,null,((n,r)=>{n?t():s(r),delete this.bundles[e]}))}))),this.bundles[e])}async getAtlasSpriteFrameAsync(e,s){return new Promise(((t,r)=>{this.loadResAsync(e,n).then((e=>{t(e.getSpriteFrame(s))}))}))}}e("default",l),a._RF.pop()}}}));

System.register("chunks:///_virtual/ResUtil.ts",["cc","./ResManager.ts","./EnumDefine.ts","./Global.ts","./LogUtil.ts","./StatisticsManager.ts"],(function(t){"use strict";var e,a,n,i,s,r,l,c,g,o,_,p;return{setters:[function(t){e=t.cclegacy,a=t.sys,n=t.native},function(t){i=t.ResManager},function(t){s=t.StatisticsEvent,r=t.EREDPACK_STATU,l=t.EOS,c=t.EMSG_STATE,g=t.EMSG_CONTENT_STATE},function(t){o=t.Global},function(t){_=t.default},function(t){p=t.eventTrig}],execute:function(){e._RF.push({},"d9c53Nd/UBLX56CUDiLTbS/","ResUtil",void 0);class u{static loadClientPara(t){if(p(s.LOADED_CONFIG_START),a.isNative)_.debug("loadClientPara,clientParaUrl:"+o.clientParaUrl),this.loadByUrl(o.clientParaUrl,(e=>{let a=e.json;_.debug("loadClientPara,"+JSON.stringify(a)),u.parseGamecfg(a,t)}),this);else{let a=new JSZip;var e=new XMLHttpRequest;e.open("GET",o.clientParaUrl,!0),e.responseType="blob",e.onreadystatechange=function(){(4===e.readyState&&200===e.status||304===e.status)&&a.loadAsync(e.response,{optimizedBinaryString:!0}).then((e=>{for(let a in e.files)e.files[a].dir||/\.(json)$/.test(e.files[a].name)&&e.file(e.files[a].name).async("string").then((e=>{let a=JSON.parse(e);o.avengersGameList=a.avengersGameList,o.clientGameConfig=a,p(s.LOADED_CONFIG_SUCCESS),t()}))})).catch((t=>{p(s.LOADED_CONFIG_FAIL)}))},e.send()}}static parseGamecfg(t,e){_.debug("parseGamecfg ："+JSON.stringify(t)),o.clientGameConfig=t,e&&e(),p(s.LOADED_CONFIG_SUCCESS)}static loadByUrl(t,e,a,n){i.Instance().loadRemoteJson(t,e)}static getEyeStatusImg(t){return t?"eye_open_png":"eye_close_png"}static getLastImage(t){return"cn"==t?"btntxt_lastpage_cn_png":"btn_txt_back_png"}static getNextImage(t){return"cn"==t?"btntxt_nextpage_cn_png":"btn_txt_next_png"}static getDotSelected(t){return t?"activity_select_png":"activity_not_select_png"}static getRedpackStatus(t){let e;switch(t){case r.WAIT_OPEN:e="wallet_normal_png";break;case r.NOT_CHOOSE:e="wallet_dark_png";break;case r.CHOOSE:e="wallet_normal_png"}return e}static getResByGameKind(t){return u.kindResMap[t]}static getSysIcon(t){let e="";switch(t){case l.iOS:e="img_IOS_png";break;case l.Android:e="img_Android_png"}return e}static getMsgStateImg(t){let e;switch(t){case c.UN_READ:e="img_news_close_png";break;case c.READED:e="img_news_open_png"}return e}static getMsgContentStateImg(t){let e;switch(t){case g.UN_READ:e="btn_read_normal_png";break;case g.OPEN:case g.FOLDED:e="btn_triangle_normal_png"}return e}static getResByHeadKind(t){return u.kindHeadMap[t]}static autoCreateFilePathDir(t){if(0==a.isNative)return;let e=t.split("/"),i="";for(let t=0;t<e.length;t++){if(t==e.length-1)continue;i+="/"+e[t],0==n.fileUtils.isDirectoryExist(i)&&n.fileUtils.createDirectory(i)}}}t("ResUtil",u),u.kindResMap={collect:"collect",Fish:"fish",Multiplayer:"arcade",Slot:"slot",Bet:"table",Bingo:"bingo",Keno:"keno",Live:"live"},u.kindHeadMap={human:210002,land:210003,pet:210004,cartoon:210005,still:210006},e._RF.pop()}}}));

System.register("chunks:///_virtual/RewardData.ts",["cc"],(function(t){"use strict";var s,i;return{setters:[function(t){s=t.cclegacy,i=t._decorator}],execute:function(){var a;s._RF.push({},"8ae0d+25ihCfaClJY6jzlfX","RewardData",void 0);const{ccclass:r,property:c}=i;t("RewardData",r("RewardData")(a=class{constructor(){this.id=void 0,this.name=void 0,this.icon=void 0,this.lv=void 0,this.isAwd=!1,this.isRcv=!1,this.isShow=!1}get txtColor(){return this.isAwd?16776960:16777215}})||a);s._RF.pop()}}}));

System.register("chunks:///_virtual/SatisfyBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./LanguageLabel.ts"],(function(e){"use strict";var t,n,a,i,r,s,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){a=e.cclegacy,i=e._decorator,r=e.Component},function(e){s=e.ELanguage_Type},function(e){c=e.LanguageLabel}],execute:function(){var o,u,l,p,f;a._RF.push({},"33f91KNY9pOVZ9fNdk5/y8p","SatisfyBtn",void 0);const{ccclass:y,property:g}=i;e("SatisfyBtn",(o=y("SatisfyBtn"),u=g({displayName:"描述",type:c}),o((f=t((p=class extends r{constructor(...e){super(...e),n(this,"dec",f,this)}start(){let e=[s.CN,s.EN];this.dec.setLanguageTypeArr(e)}onEnable(){}onDisable(){}update(e){}}).prototype,"dec",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));a._RF.pop()}}}));

System.register("chunks:///_virtual/SdkManager.ts",["cc","./NativeApi.ts","./WebApi.ts"],(function(t){"use strict";var e,i,s,a;return{setters:[function(t){e=t.cclegacy,i=t.sys},function(t){s=t.default},function(t){a=t.default}],execute:function(){e._RF.push({},"a1f9fVthF9PWY3veYUCKPZ1","SdkManager",void 0);class n{static getIns(){return this.api||(i.isNative?this.api=new s:this.api=new a),this.api}}n.api=void 0;t("default",n.getIns());e._RF.pop()}}}));

System.register("chunks:///_virtual/ShareHttp.ts",["cc","./HttpMgr.ts","./HttpReqPack.ts"],(function(e){"use strict";var t,a,n;return{setters:[function(e){t=e.cclegacy},function(e){a=e.HttpMgr},function(e){n=e.HttpReqPack}],execute:function(){t._RF.push({},"ef71aLDGzNDipIBBmIefWRW","ShareHttp",void 0);e("ShareHttp",class{static getScore(e,t,r=null){let c=n.create("/api/reward/getRewardLog",{page:0,pagenum:100});a.Instance().send(c,r,e,t)}static getPlayerAwdRecord(e,t,r=null){let c=n.create("/api/reward/getDirectPlayerReward",{page:0,pagenum:100});a.Instance().send(c,r,e,t,!1)}static getEndlessShareAwdInfo(e,t,r=null){let c=n.create("/api/reward/getRewardInfo",{});a.Instance().send(c,r,e,t,!1)}static getCommissionRecord(e,t,r=null){let c=n.create("/api/reward/getWithdrawLog",{page:0,pagenum:100});a.Instance().send(c,r,e,t,!1)}static drawShareAwdMoney(e,t,r,c=null){let s=n.create("/api/reward/withdraw",{reward:e});a.Instance().send(s,c,t,r,!1)}static getWithdrawLimit(e,t,r=null){let c=n.create("/api/reward/getWithdrawLimit",{});a.Instance().send(c,r,e,t,!1)}static getAgentContact(e,t,r=null){let c=n.create("/api/reward/getContact",{});a.Instance().send(c,r,e,t,!1)}static getRuleInfo(e,t,r=null){let c=n.create("/api/reward/getRule",{});a.Instance().send(c,r,e,t,!1)}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/ShareModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./StringUtil.ts","./Controller.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./ShareHttp.ts","./MsgHandler.ts"],(function(t){"use strict";var e,i,r,a,o,s,n,d,c,h;return{setters:[function(t){e=t.cclegacy,i=t._decorator},function(t){r=t.ESUCC},function(t){a=t.ShareEvent},function(t){o=t.default},function(t){s=t.Controller},function(t){n=t.default},function(t){d=t.CustomEventMgr},function(t){c=t.ShareHttp},function(t){h=t.default}],execute:function(){var l;e._RF.push({},"9b8d9bYhJtBCJDjeudU6drx","ShareModel",void 0);const{ccclass:f}=i;t("ShareModel",f("ShareModel")(l=class extends s{constructor(...t){super(...t),this.shareInfoList=[],this.playerAwdRecordArr=[],this.scoreList=[],this.commissionDetail=[],this.commissionRecordList=[],this.totalDrawMoney=0,this.withdrawLimit=0,this.shareTime="0",this.agentContace=null,this.vipInfo=[],this.reward=void 0}getPlayerAwdRecord(){c.getPlayerAwdRecord((t=>{if(t.code==r.SUCC20000){let e=t.data.list;this.playerAwdRecordArr.length=0;for(let t=0,i=e.length;t<i;t++){let i=e[t],r=(i.player_team,{a:i.account,b:i.vip?i.vip:1,c:i.performance_self,d:i.performance_promotion,e:i.player_period,f:i.player_team});this.playerAwdRecordArr.push(r)}d.fire(a.ON_PLAYER_AWD_RECORD)}}),this)}getMyScore(){c.getScore((t=>{if(t.code==r.SUCC20000){let e=t.data.list;this.scoreList.length=0;for(let t=0,i=e.length;t<i;t++){let i=e[t],r={a:i.create_time,b:i.vip?i.vip:1,c:(i.performance_self+i.performance_promotion).toFixed(2),d:i.reward,z:t};this.scoreList.push(r)}d.fire(a.ON_SCORE_INFO)}}),this)}getCommissionDetail(){c.getEndlessShareAwdInfo((t=>{if(t.code==r.SUCC20000){let e=t.data;this.reward=e.reward,this.commissionDetail=[{a:e.reward,b:e.reward_withdrew,c:e.reward_withdraw}],this.shareInfoList=[{a:e.vip?e.vip:1,b:e.parent_account?e.parent_account:"——",c:e.performance_team,d:e.player_period,e:e.today_new,f:e.today_new_directly,g:e.player_team,h:e.today_active,i:e.reward,j:e.reward_withdrew,k:e.reward_withdraw}],this.totalDrawMoney=parseFloat(e.reward_withdraw+""),this.shareTime=e.vip_day,d.fire(a.ON_COMMISSION_INFO,e.vip)}}),this)}getCommissionRecord(){c.getCommissionRecord((t=>{if(t.code==r.SUCC20000){this.commissionRecordList.length=0;let e=t.data.list;for(let t=0,i=e.length;t<i;t++){let i=e[t],r={a:i.create_time,b:o.formatMoney(i.reward),d:t};this.commissionRecordList.push(r)}d.fire(a.ON_COMMISSION_RECORD)}}),this)}drawMoney(t,e,i){c.drawShareAwdMoney(t,((t,a)=>{t.code==r.SUCC20000?(e&&e.call(i),h.Instance().c2sgetmoney()):n.showTipsById(140080)}),this)}getWithdrawLimit(){c.getWithdrawLimit(((t,e)=>{t.code==r.SUCC20000&&(this.withdrawLimit=t.data.withdraw_limit)}),this)}getAgentContact(){c.getAgentContact(((t,e)=>{if(t.code==r.SUCC20000){let e=t.data.contact||"";this.agentContace=e.replace(/[.\n]/g," "),d.fire(a.ON_AGENT_CONTACT)}}),this)}getRuleInfo(){c.getRuleInfo(((t,e)=>{if(t.code==r.SUCC20000){this.vipInfo.length=0;let e=t.data.list;for(let t=0,i=e.length;t<i;t++){let i=e[t],r={a:i.vip,b:i.avg_pay,c:i.invite_num,d:i.rate,e:i.rate_down,f:t};this.vipInfo.push(r)}d.fire(a.ON_GET_RULE)}}),this)}})||l);e._RF.pop()}}}));

System.register("chunks:///_virtual/SignAwardBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./EventDefine.ts","./GameUtil.ts","./LogUtil.ts","./LanguageLabel.ts","./Global.ts","./CustomEventMgr.ts","./MsgHandler.ts","./SignAwdModel.ts","./User.ts"],(function(e){"use strict";var t,s,n,i,r,o,a,l,g,p,u,c,d,h,b,f,m,v,S;return{setters:[function(e){t=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){n=e.cclegacy,i=e.ProgressBar,r=e.Node,o=e.Label,a=e._decorator,l=e.Component,g=e.sp},function(e){p=e.ELanguage_Type},function(e){u=e.SignAwdEvent},function(e){c=e.GameUtils},function(e){d=e.default},function(e){h=e.LanguageLabel},function(e){b=e.Global},function(e){f=e.CustomEventMgr},function(e){m=e.default},function(e){v=e.SignAwdModel},function(e){S=e.User}],execute:function(){var y,_,E,N,P,L,A,w,G,B,C,D,M;n._RF.push({},"49b056djB9LVJ3CHEYoHLdl","SignAwardBtn",void 0);const{ccclass:U,property:z}=a;e("SignAwardBtn",(y=U("SignAwardBtn"),_=z({displayName:"进度条",type:i}),E=z({displayName:"spine node",type:r}),N=z({displayName:"进度条label",type:o}),P=z({displayName:"领取提示",type:r}),L=z({displayName:"描述",type:h}),y((G=t((w=class extends l{constructor(...e){super(...e),s(this,"progressBar",G,this),s(this,"spineNode",B,this),s(this,"progressLabel",C,this),s(this,"img_canget",D,this),s(this,"dec",M,this),this.val_progress=0}start(){this.bindEvents(),m.Instance().c2sgetsignprogress();let e=[p.CN,p.EN];this.dec.setLanguageTypeArr(e)}onDestroy(){this.removeEvents()}onEnable(){}onDisable(){}onGetSignProgress(){let e=b.gameCtrl.getModel(v),t=null!=e.haveAwd()?1:e.curStepProgress;e.first,d.debug("onGetSignProgress,progress:"+t),this.setSignProgress(t)}setSignProgress(e,t=!1){isNaN(e)||e<0||this.setProgress(e,t)}setProgress(e,t=!1){this.val_progress=c.clamp(e),1==S.instance.vistor||1==S.instance.is_trial?(this.progressLabel.string="0%",this.progressBar.progress=0,this.spineNode.getComponent(g.Skeleton).setAnimation(0,"ani-daiji",!0)):(this.progressBar.progress=this.val_progress,this.progressLabel.string=(100*this.val_progress>>0)+"%",this.val_progress>=1?(this.spineNode.getComponent(g.Skeleton).setAnimation(0,"ani-kelingqu",!0),this.img_canget.active=!0):this.val_progress<1&&(this.spineNode.getComponent(g.Skeleton).setAnimation(0,"ani-daiji",!0),this.img_canget.active=!1))}bindEvents(){f.on(u.UPDATE_SIGN_PROGRESS,this.onGetSignProgress,this)}removeEvents(){f.off(u.UPDATE_SIGN_PROGRESS,this.onGetSignProgress,this)}}).prototype,"progressBar",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(w.prototype,"spineNode",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(w.prototype,"progressLabel",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(w.prototype,"img_canget",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(w.prototype,"dec",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=w))||A));n._RF.pop()}}}));

System.register("chunks:///_virtual/SignAwdModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./Controller.ts","./Global.ts","./CustomEventMgr.ts","./MsgHandler.ts"],(function(t){"use strict";var e,r,s,i,n,o,g,a,l,h;return{setters:[function(t){e=t.cclegacy,r=t._decorator},function(t){s=t.ELOCK_STATU},function(t){i=t.CMDEvent,n=t.SignAwdEvent,o=t.EventType},function(t){g=t.Controller},function(t){a=t.Global},function(t){l=t.CustomEventMgr},function(t){h=t.default}],execute:function(){var c;e._RF.push({},"71b5aonrI9NqYbE+a2Jlrqb","SignAwdModel",void 0);const{ccclass:f}=r;t("SignAwdModel",f("SignAwdModel")(c=class extends g{constructor(){super(),this.moneyArr=void 0,this.index=void 0,this.money=void 0,this._progress=0,this.stageArr=void 0,this.stageAwdStateArr=void 0,this.first=void 0,this.total=void 0,this.moneyArr=[],this.stageArr=[],this.stageAwdStateArr=[]}getSignProgress(){h.Instance().c2sgetsignprogress()}checkSignAwd(t,e=!1){h.Instance().c2schecksignaward(t)}setSignAwd(t){if(!t||t.length<=0)return void l.fire(i.CLOSE_SIGN_AWD_CMD);this.moneyArr.length=0;let e=!0;for(let r of t)0!=r&&(e=!1),r/=1e3,this.moneyArr.push(Math.floor(r));e||l.fire(n.CAN_GET_SIGN_AWD)}getSignAwd(t){h.Instance().c2sgetaward(t)}onGetSignAwd(t){this.index=t.index,this.money=a.transformScoreToMoney(t.reward),l.fire(n.GET_SIGN_AWD),this.setProgressInfo(t)}onProgressInfo(t){this.setProgressInfo(t),l.fire(o.OnGetSignProgress),a.gameCtrl.mainUITs.checkAllBtnOpen()}setProgressInfo(t){let e=t.stageInfo;if(!e)return;let r=t.receiveInfo;this._progress=t.presentAcc;let s=this.stageArr;s[0]=e.stage1,s[1]=e.stage2,s[2]=e.stage3,this.total=0;for(let t=0,e=s.length;t<e;t++)this.total+=s[t];s=this.stageAwdStateArr,s[0]=r.isReceive1,s[1]=r.isReceive2,s[2]=r.isReceive3,this.first=t.first||0,l.fire(n.UPDATE_SIGN_PROGRESS)}get curStep(){let t=this.stageArr,e=this.progress;for(let r=0,s=t.length;r<s;r++){if(e<=t[r])return r;e-=t[r]}return t.length-1}getStepState(t){let e=this.stageArr[t];if(this.stageAwdStateArr[t])return s.OPENED_GIFT;{let r=this.progress;for(let e=0;e<t;e++)r-=this.stageArr[e];if(r>=e)return s.GIFT}return s.LOCK}get progress(){return this._progress}get totalProgress(){return this.progress/this.total}get curStepProgress(){let t,e=this.progress,r=this.stageArr;for(let s=0,i=r.length;s<i;s++)if(t=this.stageAwdStateArr[s],t)e-=r[s];else if(e<=r[s])return e/r[s];return 0}get curProgress(){let t=this.progress,e=this.stageArr;for(let r=0,s=e.length;r<s;r++){if(t<=e[r])return t/e[r];t-=e[r]}return 1}haveAwd(){let t=this.stageArr.length;for(let e=0;e<t;e++)if(this.getStepState(e)==s.GIFT)return e;return null}})||c);e._RF.pop()}}}));

System.register("chunks:///_virtual/Singleton.ts",["cc"],(function(n){"use strict";var t;return{setters:[function(n){t=n.cclegacy}],execute:function(){n("Singleton",(function(){class n{constructor(){}static getInstance(){return null==n._instance&&(n._instance=new this),n._instance}}return n._instance=null,n})),t._RF.push({},"ac88eTn+T9Cv5izrh2wbNCs","Singleton",void 0),t._RF.pop()}}}));

System.register("chunks:///_virtual/SocketBase.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){let s,i;e({SocketEvent:void 0,SocketState:void 0}),t._RF.push({},"95fd2YL7ZRPjbQCQlx3grbC","SocketBase",void 0),function(e){e.Open="SocketOpen",e.Message="SocketMessage",e.Close="SocketClose",e.Error="SocketError",e.ReLogin="ReLogin"}(s||(s=e("SocketEvent",{}))),function(e){e[e.CONNECTING=1]="CONNECTING",e[e.OPEN=2]="OPEN",e[e.CLOSING=3]="CLOSING",e[e.CLOSED=4]="CLOSED"}(i||(i=e("SocketState",{})));e("SocketBase",class{constructor(e){this._url=void 0,this._listenerIDCounter=-1,this._listeners=null,this._url=e,this._listeners={[s.Open]:[],[s.Message]:[],[s.Close]:[],[s.Error]:[]},this._listenerIDCounter=-1}connect(){throw new Error("Method not implemented.")}send(e){throw new Error("Method not implemented.")}close(){throw new Error("Method not implemented.")}getState(){throw new Error("Method not implemented.")}addListener(e,t){return this._listeners[e]?(this._listeners[e].push({listenerID:this._listenerIDCounter++,listener:t,isValid:!0}),this._listenerIDCounter):-1}removeListenerByEvent(e){if(this._listeners[e])for(let t=0;t<this._listeners[e].length;++t)this._listeners[e][t].isValid=!1}removeListenerByID(e){for(let t in this._listeners)for(let s=0;s<this._listeners[t].length;++s)if(this._listeners[t][s].listenerID===e)return void(this._listeners[t][s].isValid=!1)}removeAllListener(){for(let e in this._listeners)this._listeners[e]=[]}dispatch(e,t){let s=[];for(let i=0;i<this._listeners[e].length;++i)this._listeners[e][i].isValid&&(this._listeners[e][i].listener(t),s.push(this._listeners[e][i]));this._listeners[e]=s}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/SocketManager.ts",["cc","./WebSock.ts","./SocketBase.ts","./TencentSocket.ts","./Singleton.ts","./Eventer.ts","./NetAdaptor.ts","./ProtoUtil.ts","./UIUtils.ts"],(function(t){"use strict";var e,s,i,n,r,h,o,a,c,l,u,g,d;return{setters:[function(t){e=t.Scheduler,s=t.director,i=t.sys,n=t.js,r=t.cclegacy},function(t){h=t.default},function(t){o=t.SocketEvent},function(t){a=t.TencentSocket},function(t){c=t.Singleton},function(t){l=t.Eventer},function(t){u=t.NetAdaptor},function(t){g=t.ProtoUtil},function(t){d=t.default}],execute:function(){r._RF.push({},"e8669/V2WxCX7xSMhWS/V8e","SocketManager",void 0);class C extends(c()){constructor(){super(),this.socket=null,this.rcvMsgListeners=null,this.scheduler=null,this.isConnect=!1,this.isStartGame=!1,this.closeHeartBeat=!0,this.heatTime=4,this.heartbeatCD=this.heatTime,this.curReplayInterval=0,this.netCustom=null,this.url=null,this.resParam=null,this.curReconnectCount=0,this.uuid="1",this.isCanReConnect=!1,this.timeOutHandler=null,this.rcvMsgListeners=new Map,e.enableForTarget(this),this.scheduler=s.getScheduler()}init(t,e,s){t&&(this.url=t),this.resParam=e,this.netCustom=s,this.connectSocket(t)}connectSocket(t){Log.d(`===connectSocket===${this.url}==========`),t=this.url??t,this.socket&&(this.socket.removeAllListener(),this.socket=null),i.platform===i.Platform.WECHAT_GAME?this.socket=new a(t):this.socket=new h(t),this.socket.connect(),this.addSocketListener()}sendMessage(t,e){if(e=e??{},!this.isConnect)return;let s={type:t,message:e};n.mixin(e,g.getParam(e)),this.resParam&&n.mixin(s,this.resParam),this.isLogFilter(t)||Log.d("Socket Send",s),this.socket.send(JSON.stringify(s))}update(t){this.isStartGame&&(this.heartbeatCD>=0?(this.heartbeatCD-=t,this.heartbeatCD<0&&this.sendHeartbeat()):(this.curReplayInterval+=t,this.curReplayInterval>=8&&(this.heartbeatCD=this.heatTime,this.reLogin())))}addSocketListener(){this.socket.addListener(o.Open,this.onSocket.bind(this,o.Open)),this.socket.addListener(o.Close,this.onSocket.bind(this,o.Close)),this.socket.addListener(o.Message,this.onSocket.bind(this,o.Message)),this.socket.addListener(o.Error,this.onSocket.bind(this,o.Error))}reLogin(){this.isConnect&&(this.isConnect=!1,this.isCanReConnect=!0,this.closeHeartBeat=!0,this.close())}close(){this.scheduler.unschedule(this.update,this),this.socket&&this.socket.close()}onClose(){this.isConnect&&this.reLogin(),this.isCanReConnect?this.reLoginEvent():this.timeOutHandler=setTimeout((()=>{this.reLoginEvent()}),500)}reLoginEvent(){this.isCanReConnect=!1,this.curReconnectCount++,Log.d(`==reLoginEvent1===${this.curReconnectCount}===`),this.curReconnectCount<Math.floor(20)?l.getInstance().emit(o.ReLogin):(this.curReconnectCount=0,this.timeOutHandler&&clearTimeout(this.timeOutHandler),d.netErrorTips(null,this.onClose.bind(this)))}onSocket(t,e){switch(t!=o.Message&&Log.d(`${t}: ${e}`),t){case o.Open:d.hideLoading(),this.isStartGame=!0,this.isConnect=!0,this.curReconnectCount=0,this.isCanReConnect=!1,this.resetHeartBeat(),this.timeOutHandler&&clearTimeout(this.timeOutHandler),this.scheduler.schedule(this.update,this,0),l.getInstance().emit(o.Open);break;case o.Close:this.onClose(),l.getInstance().emit(o.Close);break;case o.Message:this.dispatchMessage(JSON.parse(e));break;case o.Error:this.reLogin()}}registerMsgListener(t,e,s){this.rcvMsgListeners.has(t)||this.rcvMsgListeners.set(t,[]),this.rcvMsgListeners.get(t).push({listener:s,handler:e})}dispatchMessage(t=null){let e=0;if(null!=t&&null!=t.type&&(e=t.type),this.netCustom&&e===this.netCustom.sHeartBeatCode&&this.resetHeartBeat(),this.isLogFilter(e)||Log.d("Socket Recv",JSON.parse(JSON.stringify(t))),!(this.netCustom&&this.netCustom.errorCallBack&&this.netCustom.errorCallBack(e,t)))if(u.bAdaptor&&u.getInstance().recvMessage(e,t.message),this.rcvMsgListeners.has(e))for(let s=0;s<this.rcvMsgListeners.get(e).length;++s){let i=this.rcvMsgListeners.get(e)[s];i.handler.call(i.listener,t.message)}else this.isLogFilter(e)||Log.d("Could not handle Message "+e)}unregisterMsgListener(t,e){if(this.rcvMsgListeners.has(t))if(e)for(let s=0;s<this.rcvMsgListeners.get(t).length;++s){let i=this.rcvMsgListeners.get(t)[s];e&&i.listener==e&&this.rcvMsgListeners.get(t).splice(s,1)}else this.rcvMsgListeners.delete(t)}unregisterAllMsg(){this.rcvMsgListeners.clear()}sendHeartbeat(){this.isStartGame&&(this.closeHeartBeat||this.sendMessage(this.netCustom.cHeartBeatCode),this.curReplayInterval=0,this.heartbeatCD=-1)}resetHeartBeat(){this.heartbeatCD=this.heatTime,this.closeHeartBeat=!1}isLogFilter(t){return!!(this.netCustom.logFilterCodes&&this.netCustom.logFilterCodes.length>0)&&-1!=this.netCustom.logFilterCodes.indexOf(t)}}t("default",C),r._RF.pop()}}}));

System.register("chunks:///_virtual/SoundConfig.ts",["cc"],(function(o){"use strict";var t,i;return{setters:[function(o){t=o.cclegacy,i=o._decorator}],execute:function(){var s;t._RF.push({},"042e7UcQX5BeoZfjN43faYx","SoundConfig",void 0);const{ccclass:e}=i;o("SoundConfig",e("SoundConfig")(s=class{constructor(){this.id=void 0,this.tips=void 0,this.soundName=void 0,this.coverKey=void 0,this.soundType=void 0,this.multiple=void 0,this.maxCount=void 0}attrs(){return["id","tips","soundName","coverKey","soundType","multiple","maxCount"]}})||s);t._RF.pop()}}}));

System.register("chunks:///_virtual/StatisticsDefine.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){let i,s;t({LoginStatistics:void 0,NetErrCode:void 0}),e._RF.push({},"af5d6XgGixI3q5a1feQ4Yh2","StatisticsDefine",void 0),function(t){t[t.unknown=0]="unknown",t[t.appStart=1]="appStart",t[t.enterGameTimes=2]="enterGameTimes",t[t.updateStart=3]="updateStart",t[t.updateSuccess=4]="updateSuccess",t[t.updateTimes=14]="updateTimes",t[t.loadTimes=5]="loadTimes",t[t.loadStart=6]="loadStart",t[t.loadSuccess=7]="loadSuccess",t[t.registConfig=8]="registConfig",t[t.loginTimes=9]="loginTimes",t[t.loginStart=10]="loginStart",t[t.loginSuccess=11]="loginSuccess",t[t.loadGameList=12]="loadGameList",t[t.enterGameSuccess=13]="enterGameSuccess"}(i||(i=t("LoginStatistics",{}))),function(t){t[t.system=1001]="system",t[t.whiteList=1002]="whiteList",t[t.manifest=1003]="manifest",t[t.hotFiles=1004]="hotFiles",t[t.hotTimeOut=1005]="hotTimeOut",t[t.loadFail=2e3]="loadFail"}(s||(s=t("NetErrCode",{}))),e._RF.pop()}}}));

System.register("chunks:///_virtual/StatisticsManager.ts",["cc","./EnumDefine.ts","./HttpMgr.ts","./HttpReqPack.ts","./NativeApi.ts","./Global.ts","./User.ts","./Singleton.ts","./UIDefined.ts","./UIManager.ts"],(function(t){"use strict";var e,s,i,a,n,r,o,c,S,p,E,T,g,l,_;return{setters:[function(t){e=t.cclegacy,s=t.sys},function(t){i=t.StatisticsEvent,a=t.StatisticsDownloadType,n=t.StatisticsStatus,r=t.APP_TYPE,o=t.StatisticsType},function(t){c=t.HttpMgr},function(t){S=t.HttpReqPack},function(t){p=t.default},function(t){E=t.Global},function(t){T=t.User},function(t){g=t.Singleton},function(t){l=t.UIID},function(t){_=t.UIManager}],execute:function(){t("eventTrig",(function(t,e){u.getInstance().eventTrig(t,e)})),e._RF.push({},"e11510iuv9EDrSE46Sg/ois","StatisticsManager",void 0);class u extends(g()){constructor(...t){super(...t),this.startTimes=[]}init(){this.catchError()}setStartTime(t){this.startTimes[t]&&console.log(">>>>>>>>>>>>>>>>>>>>>>type : "+t),this.startTimes[t]=(new Date).getTime()}getTimesByType(t){let e=this.startTimes[t];return e?(new Date).getTime()-e:0}eventTrig(t,e){if(s.isNative)switch(t){case i.LOADED_RES_START:this.setStartTime(t<<8),this.loadedRes(n.START);break;case i.LOADED_RES_SUCCESS:this.setStartTime(t<<8),this.loadedRes(n.SUCCESS);break;case i.LOADED_RES_FAIL:this.setStartTime(t<<8),this.loadedRes(n.FAIL);break;case i.LOADED_CONFIG_SUCCESS:this.getConfig(n.SUCCESS);break;case i.LOADED_CONFIG_FAIL:this.getConfig(n.FAIL);break;case i.GET_REQUEST_SUCCESS:this.getRequest(n.SUCCESS);break;case i.GET_REQUEST_FAIL:this.getRequest(n.FAIL);break;case i.FINISH_DOWNLOAD_GAME:this.downloadGame(e.id,a.DOWNLOAD,e.status);break;case i.CANCEL_DOWNLOAD_GAME:this.downloadGame(e.id,a.CANCEL);break;case i.Refresh_DOWNLOAD_GAME:this.downloadGame(e.id,a.REFRESH);break;default:this.setStartTime(t<<8)}}loginReport(t,e){let s=0;e&&this.startTimes[t]&&(s=(new Date).getTime()-this.startTimes[t]),s=s>0?s:0;let i=S.create("/api/dot/cocosLogin",{type:t,num:1,times:s});c.Instance().send(i)}catchError(){let t=this;s.isBrowser?window.onerror=function(e,s,i,a,n){n&&t.errorReport(`${n.message}${n.stack}`)}:s.isNative&&(window.__errorHandler=function(...e){e&&t.errorReport(`${e.toString()}`)})}errorReport(t){E.debug&&_.getInstance().open(l.UIErrorAlert,t);let e=S.create("/api/Game/reportJsError",{content:t});c.Instance().send(e,null,((t,e)=>{}),null),p.recordException(t)}appReport(t,e,s){let i={client_info:[{time_diff:t,event:e,status:s,ctime:Math.floor(Date.now()/1e3),app_type:r.cocos}]},a=S.create("/api/LoginProc/timeDiff?action=appReport",JSON.stringify(i));c.Instance().send(a)}getConfig(t){let e=this.getTimesByType(i.LOADED_CONFIG_START<<8);t==n.SUCCESS&&(e<=0||e>=72e5)||this.appReport(e,o.LOGIN_CONFIG,t)}getRequest(t){let e=this.getTimesByType(i.GET_REQUEST_START<<8);t==n.SUCCESS&&(e<=0||e>=72e5)||this.appReport(e,o.GET_REQUEST,t)}loadedRes(t){let e=this.getTimesByType(i.LOADED_RES_START<<8);t==n.SUCCESS&&(e<=0||e>=72e5)||this.appReport(e,o.LOADED_RES,t)}gameReport(t,e,s,i){let a={client_info:[{game_id:t,uid:T.instance.userId,time_diff:e,event:s,status:i,ctime:Math.floor(Date.now()/1e3),app_type:r.cocos}]},n=S.create("/api/LoginProc/timeDiff?action=clientReport",JSON.stringify(a));c.Instance().send(n)}downloadGame(t,e,s=n.SUCCESS){let a=this.getTimesByType(i.DOWNLOAD_GAME<<8);a<=0||a>=72e5||this.gameReport(t,a,e,s)}}t("StatisticsManager",u),e._RF.pop()}}}));

System.register("chunks:///_virtual/STDLanguage.ts",["cc","./Dictionary.ts","./ConfigUtil.ts","./Global.ts","./ChannelLangConfig.ts","./LanguageConfig.ts"],(function(t){"use strict";var n,g,e,a,i,o;return{setters:[function(t){n=t.cclegacy},function(t){g=t.Dictionary},function(t){e=t.ConfigUtil},function(t){a=t.Global},function(t){i=t.ChannelLangConfig},function(t){o=t.LanguageConfig}],execute:function(){n._RF.push({},"73068T0t+ZORI0gEU+btCmK","STDLanguage",void 0);class l{static getLangConfigByPaltformId(t){let n=l._languageDic;if(n)return n;n=g.create();let a=e.getConfig(i).get(t);if(!a)return;let u=a.L.split(","),f=e.getConfig(o);for(let t=0,g=u.length;t<g;t++){let g=u[t];n.set(g,f.get(g))}return l._languageDic=n,n}static getDefLangOfPlatform(t){return l.getLangConfigByPaltformId(t).values[0]}static getAssignLanguageConfig(){let t=l.getLangConfigByPaltformId(a.appPlatformId);return 1==t.length?t.values[0]:null}}t("STDLanguage",l),l._languageDic=void 0,n._RF.pop()}}}));

System.register("chunks:///_virtual/StorageUtil.ts",["cc","./Global.ts","./DStorage.ts"],(function(t){"use strict";var e,s,a,r;return{setters:[function(t){e=t.sys,s=t.cclegacy},function(t){a=t.Global},function(t){r=t.default}],execute:function(){s._RF.push({},"435fcd3hnxEV419IJSO2jxq","StorageUtil",void 0);class i{}i.pre="Storage_Key_",i.Game_List_Ver=i.pre+"Game_List_Ver",i.Lobby_Switch=i.pre+"Lobby_Switch";t("default",class{static set isSaveAccount(t){r.setItem("isSaveAccount",String(t))}static get isSaveAccount(){return!("false"==r.getItem("isSaveAccount",""))}static saveAccount(t,s,a){let i={account:t,password:s,guester:a};r.setItem("useraccount",JSON.stringify(i)),e.isNative&&r.setItem("account",String(t))}static saveGuester(t){let e=this.getAccount();e?this.saveAccount(e.account,e.password,t):this.saveAccount(null,null,t)}static updatePassWord(t){let e=this.getAccount();e&&this.saveAccount(e.account,t)}static removeAccount(){r.removeItem("useraccount")}static getAccount(){let t=r.getItem("useraccount","");return t?JSON.parse(t):null}static saveRemember(t){r.setItem("rememberme",String(t+""))}static getRemember(){return r.getItem("rememberme",!1)}static getLanguage(){return r.getItem("lang","")}static saveLanguage(t){r.setItem("lang",String(t))}static getGameInfo(){return r.getItem("downloadedgamelist","")}static saveGameInfo(t){r.setItem("downloadedgamelist",String(t))}static getGameADIcon(){let t=a.appPlatformId+"downloadedgamead";return r.getItem(t,"")}static saveGameADIcon(t){let e=a.appPlatformId+"downloadedgamead";r.setItem(e,JSON.stringify(t))}static saveUserToken(t){r.setItem("User-Token",String(t))}static removeUserToken(){r.removeItem("User-Token")}static getUserToken(){let t=r.getItem("User-Token",void 0);return"undefined"==t&&(t=void 0),t}static getAppVer(){return r.getItem("UPDATELOG","")}static saveUserId(t){r.setItem("USERID",""+String(t))}static removeUserId(){r.removeItem("USERID")}static selsvrUrl(t){r.setItem("SELSVRURL",String(t))}static removeSelsvrUrl(t){r.removeItem("SELSVRURL")}static saveGameSocketUrl(t){r.setItem("WEBSOCKETURL",t)}static removeGameSocketUrl(){r.removeItem("WEBSOCKETURL")}static saveWebSocketUrl(t){r.setItem("BACKENDURL",String(t))}static removeWebSocketUrl(){r.removeItem("BACKENDURL")}static saveImUrl(t){r.setItem("IMURL",t)}static removeImUrl(){r.removeItem("IMURL")}static set isOpenMusic(t){r.setItem("isOpenMusic",String(t))}static get isOpenMusic(){let t=r.getItem("isOpenMusic","");return r.setItem("isOpenMusic",t),!("false"==t)}static set isOpenEffect(t){r.setItem("isOpenEffect",String(t))}static get isOpenEffect(){let t=r.getItem("isOpenEffect","");return r.setItem("isOpenEffect",String(t)),!("false"==t)}static set date(t){r.setItem("DATE",t)}static get date(){return r.getItem("DATE","")}static set ConvertAppDate(t){r.setItem("ConvertAppDate",t)}static get ConvertAppDate(){return r.getItem("ConvertAppDate","")}static set ConvertApp(t){r.setItem("ConvertApp",(t?1:0)+"")}static get ConvertApp(){return"1"==r.getItem("ConvertApp","")}static set ShowConvertAppToday(t){r.setItem("ShowConvertAppToday",(t?1:0)+"")}static get ShowConvertAppToday(){return"1"==r.getItem("ShowConvertAppToday","0")}static getGameListVer(){return r.getItem(i.Game_List_Ver,"")||void 0}static saveGameListVer(t){r.setItem(i.Game_List_Ver,t)}static saveSatisfyIgnoreTime(t){r.setItem("satisfy_ignore_time",t)}static getSatisfyIgnoreTime(){return r.getItem("satisfy_ignore_time",0)}static getSwitch(){return r.getItem(i.Lobby_Switch,"")||void 0}static saveSwitch(t){r.setItem(i.Lobby_Switch,String(t))}static set HeadUrl(t){r.setItem("HeadUrl",t)}static get HeadUrl(){return r.getItem("HeadUrl","")}static getReferralCode(){return r.getItem("code","")}}),s._RF.pop()}}}));

System.register("chunks:///_virtual/StringUtil.ts",["cc","./Global.ts"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.cclegacy},function(e){r=e.Global}],execute:function(){t._RF.push({},"246e7nTWz9O2KEEJsiJbEYS","StringUtil",void 0);class a{static stringToUTF8Bytes(e){for(var t=[],r=0;r<e.length;r++){var a=e.charCodeAt(r);a<128?t.push(a):a<2048?t.push(192|a>>6,128|63&a):a<55296||a>=57344?t.push(224|a>>12,128|a>>6&63,128|63&a):(r++,a=65536+((1023&a)<<10|1023&e.charCodeAt(r)),t.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|63&a))}return t}static uint8ArrayToArray(e){let t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t}static ParseArrayFromStructString(e){let t=(e=e.substr(1,e.length-1)).split(","),r=[];for(let e of t)r.push(parseInt(e));return r}static genRandCode(e){let t="";for(let r=0;r<e;++r)t+=0==r?Math.ceil(8*Math.random())+1:Math.floor(10*Math.random());return t}static genRandCodeEnglish(e){for(var t=[],r=0;r<e;r++){var a=Math.ceil(25*Math.random());t.push(String.fromCharCode(65+a))}return t.join("")}static isNumber(e){if(e.length<=0)return!1;for(let t of e)if(t<"0"||t>"9")return!1;return!0}static getHostFromUrl(e){let t=RegExp("^((http://)|(https://)|(ws://)|(wss://))?([a-zA-Z0-9]([a-zA-Z0-9\\-\\_]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(?=/)"),r=e.match(t);return r?r[0]:""}static getQueryStringArgs(e){let t={};if(!e)return t;if(-1==e.indexOf("://"))return t;let r=(e=decodeURIComponent(e)).split("://").pop().split("&");for(let e=0,a=r.length;e<a;e++){let a=r[e].split("=");t[a[0]]=a[1]}return t}static parseURLVariablesStr(e){let t=[];for(let r in e)t.push(r+"="+e[r]);return t.join("&")}static checkMobile(e){for(let t of this.mobileRegular)if(t.Reg.test(e))return{Area:t.Area,AreaAbb:t.AreaAbb};return null}static checkAccount(e){return/^[0-9]{7,20}$/.test(e)||/^[A-z]{7,20}$/.test(e)||/^(?![A-z]+$)(?![0-9]+$)[A-z0-9]{7,20}$/.test(e)}static checkPassWord(e){return/^(?![A-z]+$)(?![0-9]+$)[A-z0-9]{6,16}$/.test(e)}static checkNum(e){e=e.replace(",","");return/^-?\d+(\.\d+)?$/.test(e)}static numStrToNum(e){return e=e.replace(/,/g,"")}static checkNumChar(e){return/^[0-9]+$/.test(e)}static getNumChar(e){return e.replace(/[^0-9 | \.]+/g,"")}static checkEmail(e){return new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$").test(e)}static formatTime(e,t="hh:mm:ss"){let r=e,a=Math.floor(r/3600);r-=3600*a;let A=Math.floor(r/60);r-=60*A;let n={"h+":a,"m+":A,"s+":Math.floor(r)};for(let e in n)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[e]:("00"+n[e]).substr((""+n[e]).length)));return t}static floatMul(e,t){var r=0,a=e.toString(),A=t.toString();try{r+=a.split(".")[1].length}catch(e){}try{r+=A.split(".")[1].length}catch(e){}return Number(a.replace(".",""))*Number(A.replace(".",""))/Math.pow(10,r)}static floatDiv(e,t){var r,A,n=0,i=0;try{n=e.toString().split(".")[1].length}catch(e){}try{i=t.toString().split(".")[1].length}catch(e){}return r=Number(e.toString().replace(".","")),A=Number(t.toString().replace(".","")),a.floatMul(r/A,Math.pow(10,i-n))}static createZeroPrecision(e){let t=e>0?"0.":"0";for(let r=0;r<e;r++)t+="0";return t}static formatDigitByTHS(e){return e=(e+="").replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")}static fixedDigital(e){let t=Math.floor(e);e>=1&&(e-=t);let a=Math.pow(10,r.point+1);return e=t+10*(e*a/10>>0)/a}static formateNumToStr(e,t,r){let a=r>0?e+".":e;t=t&&t.split(".")[1]||"";for(let e=0;e<r;e++)a+=t[e]||"0";return a}static formatMoney(e){let t=r.point,A=r.thousandPoint;if(e+="",!a.checkNum(e))return a.createZeroPrecision(t);let n=e.split("."),i=A?a.formatDigitByTHS(n[0]):n[0],s=a.fixedDigital(Number("0."+(n[1]||"0")))+"";return a.formateNumToStr(i,s,t)}static formatString(e,...t){if(!e)return"";let r=e;if(t&&t.length>0)for(let e=0;e<t.length;e++){let a=new RegExp(`\\{${e}\\}`,"g"),A=t[e];r=r.replace(a,A)}return r}static formatLanguageString(e,t){let r=e.concat();for(let e=0;e<t.length;e++){let a="%"+(e+1).toString();for(;-1!=r.indexOf(a);)r=r.replace(a,t[e])}return r}static replaceUid(e,t=4,r=7){let a="";if(r=e.length<r?e.length:r,e){let A=e.slice(0,t),n=e.slice(r),i=r-t;i=i>0?i:0;let s="";for(let e=0;e<i;e++)s+="*";a=A+s+n}return a}}e("default",a),a.utf8ArrayToString=function(e){var t,r,a,A,n,i;for(t="",a=e.length,r=0;r<a;)switch((A=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(A);break;case 12:case 13:n=e[r++],t+=String.fromCharCode((31&A)<<6|63&n);break;case 14:n=e[r++],i=e[r++],t+=String.fromCharCode((15&A)<<12|(63&n)<<6|(63&i)<<0)}return t},a.mobileRegular=[{AreaAbb:"CN",Area:"中国",Reg:/^(\+?0?86\-?)?1[345789]\d{9}$/},{AreaAbb:"TW",Area:"台湾",Reg:/^(\+?886\-?|0)?9\d{8}$/},{AreaAbb:"HK",Area:"香港",Reg:/^(\+?852\-?)?[569]\d{3}\-?\d{4}$/},{AreaAbb:"VN",Area:"越南",Reg:/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/},{AreaAbb:"MS",Area:"马来西亚",Reg:/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/},{AreaAbb:"PH",Area:"菲律宾",Reg:/^(\+?0?63\-?)?\d{10}$/},{AreaAbb:"TH",Area:"泰国",Reg:/^(\+?0?66\-?)?\d{10}$/},{AreaAbb:"SG",Area:"新加坡",Reg:/^(\+?0?65\-?)?\d{10}$/},{AreaAbb:"DZ",Area:"阿尔及利亚",Reg:/^(\+?213|0)(5|6|7)\d{8}$/},{AreaAbb:"SY",Area:"叙利亚",Reg:/^(!?(\+?963)|0)?9\d{8}$/},{AreaAbb:"SA",Area:"沙特阿拉伯",Reg:/^(!?(\+?966)|0)?5\d{8}$/},{AreaAbb:"US",Area:"美国",Reg:/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/},{AreaAbb:"CZ",Area:"捷克共和国",Reg:/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/},{AreaAbb:"DE",Area:"德国",Reg:/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/},{AreaAbb:"DK",Area:"丹麦",Reg:/^(\+?45)?(\d{8})$/},{AreaAbb:"GR",Area:"希腊",Reg:/^(\+?30)?(69\d{8})$/},{AreaAbb:"AU",Area:"澳大利亚",Reg:/^(\+?61|0)4\d{8}$/},{AreaAbb:"GB",Area:"英国",Reg:/^(\+?44|0)7\d{9}$/},{AreaAbb:"CA",Area:"加拿大",Reg:/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/},{AreaAbb:"IN",Area:"印度",Reg:/^(\+?91|0)?[789]\d{9}$/},{AreaAbb:"NZ",Area:"新西兰",Reg:/^(\+?64|0)2\d{7,9}$/},{AreaAbb:"ZA",Area:"南非",Reg:/^(\+?27|0)\d{9}$/},{AreaAbb:"ZM",Area:"赞比亚",Reg:/^(\+?26)?09[567]\d{7}$/},{AreaAbb:"ES",Area:"西班牙",Reg:/^(\+?34)?(6\d{1}|7[1234])\d{7}$/},{AreaAbb:"FI",Area:"芬兰",Reg:/^(\+?358|0)\s?(4(0|1|2|4|5)?|50)\s?(\d\s?){4,8}\d$/},{AreaAbb:"FR",Area:"法国",Reg:/^(\+?33|0)[67]\d{8}$/},{AreaAbb:"IL",Area:"以色列",Reg:/^(\+972|0)([23489]|5[0248]|77)[1-9]\d{6}/},{AreaAbb:"HU",Area:"匈牙利",Reg:/^(\+?36)(20|30|70)\d{7}$/},{AreaAbb:"IT",Area:"意大利",Reg:/^(\+?39)?\s?3\d{2} ?\d{6,7}$/},{AreaAbb:"JP",Area:"日本",Reg:/^(\+?81|0)\d{1,4}[ \-]?\d{1,4}[ \-]?\d{4}$/},{AreaAbb:"NO",Area:"挪威",Reg:/^(\+?47)?[49]\d{7}$/},{AreaAbb:"BE",Area:"比利时",Reg:/^(\+?32|0)4?\d{8}$/},{AreaAbb:"PL",Area:"波兰",Reg:/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/},{AreaAbb:"BR",Area:"巴西",Reg:/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/},{AreaAbb:"PT",Area:"葡萄牙",Reg:/^(\+?351)?9[1236]\d{7}$/},{AreaAbb:"RU",Area:"俄罗斯",Reg:/^(\+?7|8)?9\d{9}$/},{AreaAbb:"RS",Area:"塞尔维亚",Reg:/^(\+3816|06)[- \d]{5,9}$/},{AreaAbb:"R",Area:"土耳其",Reg:/^(\+?90|0)?5\d{9}$/}],t._RF.pop()}}}));

System.register("chunks:///_virtual/StructDefine.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"a0c14TyuTBAoIxttylcFtTq","StructDefine",void 0);class c{}t("HttpResponseType",c),c.TEXT=void 0,c.ARRAY_BUFFER=void 0;class i{}t("URLLoaderDataFormat",i),i.BINARY=void 0,i.TEXT=void 0,i.VARIABLES=void 0,i.TEXTURE=void 0,i.SOUND=void 0,e._RF.pop()}}}));

System.register("chunks:///_virtual/super-layout.ts",["./rollupPluginModLoBabelHelpers.js","cc","./super-scrollview.ts"],(function(t){"use strict";var i,e,o,r,s,h,n,a,d,l,c,u,T,p,g,f,m;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){o=t.cclegacy,r=t.ccenum,s=t.UITransform,h=t.Prefab,n=t.PageViewIndicator,a=t.EventHandler,d=t.Node,l=t.Vec2,c=t._decorator,u=t.Component,T=t.Vec3,p=t.Size,g=t.instantiate,f=t.SystemEventType},function(t){m=t.SuperScrollview}],execute:function(){var v,x,_,y,O,w,I,B,P,A,b,H,R,S,L,z,E,D,F,M,C,V,G,N,X,Y,W,k,Z,j,U,q,J,K,Q,$,tt,it,et,ot,rt,st,ht,nt,at,dt,lt,ct,ut,Tt,pt,gt,ft,mt,vt,xt,_t,yt,Ot,wt,It,Bt,Pt,At,bt;o._RF.push({},"1b626Sy/chMb4zWpduWoouz","super-layout",void 0);const{ccclass:Ht,property:Rt,requireComponent:St}=c,Lt=1e-5;var zt,Et,Dt,Ft,Mt,Ct;!function(t){t[t.HORIZONTAL=0]="HORIZONTAL",t[t.VERTICAL=1]="VERTICAL"}(zt||(zt={})),r(zt),function(t){t[t.TOP_TO_BOTTOM=0]="TOP_TO_BOTTOM",t[t.BOTTOM_TO_TOP=1]="BOTTOM_TO_TOP"}(Et||(Et={})),r(Et),function(t){t[t.LEFT_TO_RIGHT=0]="LEFT_TO_RIGHT",t[t.RIGHT_TO_LEFT=1]="RIGHT_TO_LEFT"}(Dt||(Dt={})),r(Dt),function(t){t[t.NONE=0]="NONE",t[t.HEADER=1]="HEADER",t[t.FOOTER=2]="FOOTER"}(Ft||(Ft={})),function(t){t[t.TOP=0]="TOP",t[t.BOTTOM=1]="BOTTOM"}(Mt||(Mt={})),r(Mt),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT"}(Ct||(Ct={})),r(Ct);t("SuperLayout",(v=Ht("SuperLayout"),x=St(s),_=Rt(m),y=Rt(s),O=Rt(h),w=Rt({type:zt}),I=Rt({type:Mt,visible:function(){return this.layoutType==zt.VERTICAL&&!this.autoCenter}}),B=Rt({type:Ct,visible:function(){return this.layoutType==zt.HORIZONTAL&&!this.autoCenter}}),P=Rt({type:Et}),A=Rt({type:Dt}),b=Rt({tooltip:"最小值=1，大于1就是Grid模式"}),H=Rt({tooltip:"决定最多创建Prefab的数量"}),R=Rt({tooltip:"顶部填充"}),S=Rt({tooltip:"底部填充"}),L=Rt({tooltip:"左侧填充"}),z=Rt({tooltip:"右侧填充"}),E=Rt({tooltip:"横轴间距"}),D=Rt({tooltip:"纵轴间距"}),F=Rt({tooltip:"计算缩放后的尺寸"}),M=Rt({tooltip:"开启翻页模式"}),C=Rt({tooltip:"每个页面翻页时所需时间。单位：秒",visible:function(){return this.isPageView}}),V=Rt({type:n,visible:function(){return this.isPageView}}),G=Rt({slide:!0,range:[0,1,.01],tooltip:"滚动临界值，默认单位百分比，当拖拽超出该数值时，松开会自动滚动下一页，小于时则还原",visible:function(){return this.isPageView}}),N=Rt({tooltip:"快速滑动翻页临界值。当用户快速滑动时，会根据滑动开始和结束的距离与时间计算出一个速度值,该值与此临界值相比较，如果大于临界值，则进行自动翻页",visible:function(){return this.isPageView}}),X=Rt({type:a,visible:function(){return this.isPageView}}),Y=Rt({tooltip:"开启自动居中",visible:function(){return!this.isPageView}}),W=Rt({tooltip:"自动居中的滚动时间",visible:function(){return this.autoCenter}}),k=Rt({type:d,tooltip:"自动居中的参考节点，如果为空、则默认选择View中心",visible:function(){return this.autoCenter}}),Z=Rt({type:l,tooltip:"自动居中时、Item的居中锚点",visible:function(){return this.autoCenter}}),j=Rt({tooltip:"上/左 无限循环"}),U=Rt({tooltip:"下/右 无限循环"}),q=Rt(a),v(J=x(((bt=class extends u{constructor(...t){super(...t),e(this,"scrollView",Q,this),e(this,"view",$,this),e(this,"prefab",tt,this),e(this,"layoutType",it,this),e(this,"indexVerticalAxisDirection",et,this),e(this,"indexHorizontalAxisDirection",ot,this),e(this,"verticalAxisDirection",rt,this),e(this,"horizontalAxisDirection",st,this),e(this,"groupItemTotal",ht,this),e(this,"multiple",nt,this),e(this,"paddingTop",at,this),e(this,"paddingBottom",dt,this),e(this,"paddingLeft",lt,this),e(this,"paddingRight",ct,this),e(this,"spacingX",ut,this),e(this,"spacingY",Tt,this),e(this,"affectedByScale",pt,this),e(this,"isPageView",gt,this),e(this,"pageTurningSpeed",ft,this),e(this,"indicator",mt,this),e(this,"scrollThreshold",vt,this),e(this,"autoPageTurningThreshold",xt,this),e(this,"pageEvents",_t,this),e(this,"autoCenter",yt,this),e(this,"centerTime",Ot,this),e(this,"centerNode",wt,this),e(this,"centerAnchor",It,this),e(this,"headerLoop",Bt,this),e(this,"footerLoop",Pt,this),e(this,"refreshItemEvents",At,this),this.stretchLock={},this._currPageIndex=0,this._lastPageIndex=0,this.isRestart=!1,this.scrollDirection=Ft.NONE,this.prevPos=new T(0,0,0),this._maxPrefabTotal=0,this.currentCreateItemTotal=0,this._itemTotal=0}get currPageIndex(){return this._currPageIndex}get lastPageIndex(){return this._lastPageIndex}get vertical(){return this.layoutType==zt.VERTICAL}get horizontal(){return this.layoutType==zt.HORIZONTAL}get transform(){return this.node._uiProps.uiTransformComp}get accommodWidth(){return this.view.width-this.paddingLeft-this.paddingRight}get accommodHeight(){return this.view.height-this.paddingTop-this.paddingBottom}get header(){return 0==this.node.children.length?null:this.node.children[0]._uiProps.uiTransformComp}get footer(){return 0==this.node.children.length?null:this.node.children[this.node.children.length-1]._uiProps.uiTransformComp}get headerIndex(){if(!this.header)return-1;return this.header.node.__index}get footerIndex(){if(!this.footer)return-1;return this.footer.node.__index}get viewStartPoint(){let t=new T;return this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?t.x=-.5*this.view.width+this.paddingLeft:t.x=.5*this.view.width-this.paddingRight,this.verticalAxisDirection==Et.TOP_TO_BOTTOM?t.y=.5*this.view.height-this.paddingTop:t.y=-.5*this.view.height+this.paddingBottom,t}get viewHeaderBoundary(){return this.vertical?.5*this.view.height:-.5*this.view.width}get viewFooterBoundary(){return this.vertical?-.5*this.view.height:.5*this.view.width}get headerBoundary(){return this.header?this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.node.position.y+this.getItemYMax(this.header)+this.paddingTop:this.node.position.y+this.getItemYMin(this.header)-this.paddingBottom:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.node.position.x+this.getItemXMin(this.header)-this.paddingLeft:this.node.position.x+this.getItemXMax(this.header)+this.paddingRight:0}get footerBoundary(){return this.footer?this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.node.position.y+this.getItemYMin(this.footer)-this.paddingBottom:this.node.position.y+this.getItemYMax(this.footer)+this.paddingTop:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.node.position.x+this.getItemXMax(this.footer)+this.paddingRight:this.node.position.x+this.getItemXMin(this.footer)-this.paddingLeft:0}get centerHeaderBoundary(){let t=this.vertical?"y":"x";var i;return i=this.centerNode?this.viewHeaderBoundary-this.centerNode.position[t]:this.viewHeaderBoundary-this.view.node.position[t],this.vertical&&this.verticalAxisDirection==Et.TOP_TO_BOTTOM||this.horizontal&&this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.headerBoundary+i:this.footerBoundary+i}get centerFooterBoundary(){let t=this.vertical?"y":"x";var i;return i=this.centerNode?this.viewFooterBoundary-this.centerNode.position[t]:this.viewFooterBoundary-this.view.node.position[t],this.vertical&&this.verticalAxisDirection==Et.TOP_TO_BOTTOM||this.horizontal&&this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.footerBoundary+i:this.headerBoundary+i}get isOfLeftBoundary(){if(this.vertical)return 0;if(this.autoCenter)return this.scrollDirection==Ft.HEADER?this.centerHeaderBoundary:0;if(this.headerLoop)return this.header?0:this.viewHeaderBoundary+this.node.position.x;if(!this.header||this.fixedItemWidth<=this.view.width)return this.viewHeaderBoundary+this.node.position.x;if(this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT){if(0==this.headerIndex)return this.headerBoundary}else if(this.footerIndex==this.itemTotal-1)return this.footerBoundary;return 0}get isOfTopBoundary(){if(!this.vertical)return 0;if(this.autoCenter)return this.scrollDirection==Ft.HEADER?this.centerHeaderBoundary:0;if(this.headerLoop)return this.header?0:this.viewHeaderBoundary+this.node.position.y;if(!this.header||this.fixedItemHeight<=this.view.height)return this.viewHeaderBoundary+this.node.position.y;if(this.verticalAxisDirection==Et.TOP_TO_BOTTOM){if(0==this.headerIndex)return this.headerBoundary}else if(this.footerIndex==this.itemTotal-1)return this.footerBoundary;return 0}get isOfRightBoundary(){if(this.vertical)return 0;if(this.autoCenter)return this.scrollDirection==Ft.FOOTER?this.centerFooterBoundary:0;if(this.footerLoop)return this.footer?0:this.viewFooterBoundary+this.node.position.x;if(!this.footer||this.fixedItemWidth<=this.view.width)return this.viewFooterBoundary+this.node.position.x;if(this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT){if(this.footerIndex==this.itemTotal-1)return this.footerBoundary}else if(0==this.headerIndex)return this.headerBoundary;return 0}get isOfButtomBoundary(){if(!this.vertical)return 0;if(this.autoCenter)return this.scrollDirection==Ft.FOOTER?this.centerFooterBoundary:0;if(this.footerLoop)return this.footer?0:this.viewFooterBoundary+this.node.position.y;if(!this.footer||this.fixedItemHeight<=this.view.height)return this.viewFooterBoundary+this.node.position.y;if(this.verticalAxisDirection==Et.TOP_TO_BOTTOM){if(this.footerIndex==this.itemTotal-1)return this.footerBoundary}else if(0==this.headerIndex)return this.headerBoundary;return 0}get fixedItemHeight(){return this.header?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?Math.abs(this.getItemYMax(this.header))+Math.abs(this.getItemYMin(this.footer)):Math.abs(this.getItemYMin(this.header))+Math.abs(this.getItemYMax(this.footer)):0}get fixedItemWidth(){return this.header?this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?Math.abs(this.getItemXMin(this.header))+Math.abs(this.getItemXMax(this.footer)):Math.abs(this.getItemXMax(this.header))+Math.abs(this.getItemXMin(this.footer)):0}get contentSize(){if(0==this.node.children.length)return this.view.contentSize;let t=new p(this.view.contentSize.width,this.view.contentSize.height);return this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?t.height=this.headerBoundary+-this.footerBoundary:t.height=this.footerBoundary+-this.headerBoundary:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?t.width=this.footerBoundary+-this.headerBoundary:t.width=this.headerBoundary+-this.footerBoundary,t.width<this.view.contentSize.width&&(t.width=this.view.contentSize.width),t.height<this.view.contentSize.height&&(t.height=this.view.contentSize.height),t}get maxPrefabTotal(){return this._maxPrefabTotal}get itemTotal(){return this._itemTotal}get centerPosition(){if(!this._centerPosition)if(this._centerPosition=new T,this.autoCenter){if(this.centerNode){var t,i;let e=null==(t=this.centerNode.parent)||null==(i=t._uiProps.uiTransformComp)?void 0:i.convertToWorldSpaceAR(this.centerNode.position);this._centerPosition=this.view.convertToNodeSpaceAR(e)}}else this.vertical?this.indexVerticalAxisDirection==Mt.TOP?this._centerPosition.y=this.viewHeaderBoundary:this._centerPosition.y=this.viewFooterBoundary:this.indexHorizontalAxisDirection==Ct.LEFT?this._centerPosition.x=this.viewHeaderBoundary:this._centerPosition.x=this.viewFooterBoundary;return this._centerPosition}onLoad(){var t,i,e;null==(t=this.transform)||t.setAnchorPoint(new l(.5,.5)),null==(i=this.transform)||i.setContentSize(this.view.contentSize),this.node.setPosition(T.ZERO),this.isPageView&&(this.autoCenter=!1),null==(e=this.scrollView.view)||e.node.on(d.EventType.SIZE_CHANGED,this.onViewSizeChange,this),Object.defineProperty(this.transform,"contentSize",{get:()=>this.contentSize}),Object.defineProperty(this.transform,"width",{get:()=>this.contentSize.width}),Object.defineProperty(this.transform,"height",{get:()=>this.contentSize.height})}onEnable(){this.addEventListener()}onDisable(){this.removeEventListener()}total(t,i=!1){this.scrollView.canTouchMove=!1,this.currentCreateItemTotal=t,this.createItems(t,i);let e=t-this.itemTotal;return this._itemTotal=t,this.refreshItems(e,i),i||this.updateItems(),this.scrollView.release(),this.indicator&&this.indicator.setPageView(this.scrollView),this.autoCenter&&this.scrollToCenter(),this.scrollView.canTouchMove=!0,this}updateItems(){return this.resetIndexStartToEnd(this.headerIndex),this}updateItemSize(t,i){this.groupItemTotal>1||t&&i&&(t.__runtime_size=i,this.onChangeChildSize(t._uiProps.uiTransformComp))}scrollToCenter(){this.soonFinish()}scrollToHeader(t){var i,e,o,r,s=0;this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?(s=this.viewHeaderBoundary,this.indexVerticalAxisDirection==Mt.BOTTOM&&(s-=(null==(i=this.header)?void 0:i.height)+this.paddingTop+this.paddingBottom)):(s=this.viewFooterBoundary,this.indexVerticalAxisDirection==Mt.TOP&&(s+=(null==(e=this.header)?void 0:e.height)+this.paddingTop+this.paddingBottom)):this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?(s=this.viewHeaderBoundary,this.indexHorizontalAxisDirection==Ct.RIGHT&&(s+=(null==(o=this.header)?void 0:o.width)+this.paddingLeft+this.paddingRight)):(s=this.viewFooterBoundary,this.indexHorizontalAxisDirection==Ct.LEFT&&(s-=(null==(r=this.header)?void 0:r.width)+this.paddingLeft+this.paddingRight));this.scrollToIndex(0,t,new T(s,s))}scrollToFooter(t){var i=0;if(this.vertical){if(this.fixedItemHeight<this.view.height)return;var e,o;if(this.verticalAxisDirection==Et.TOP_TO_BOTTOM){if(i=this.viewFooterBoundary,this.indexVerticalAxisDirection==Mt.BOTTOM)i+=(null==(e=this.footer)?void 0:e.height)+this.paddingTop+this.paddingBottom}else if(i=this.viewHeaderBoundary,this.indexVerticalAxisDirection==Mt.TOP)i-=(null==(o=this.footer)?void 0:o.height)+this.paddingTop+this.paddingBottom}else{if(this.fixedItemWidth<this.view.width)return;var r,s;if(this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT){if(i=this.viewFooterBoundary,this.indexHorizontalAxisDirection==Ct.RIGHT)i-=(null==(r=this.footer)?void 0:r.width)+this.paddingLeft+this.paddingRight}else if(i=this.viewHeaderBoundary,this.indexHorizontalAxisDirection==Ct.LEFT)i+=(null==(s=this.footer)?void 0:s.width)+this.paddingLeft+this.paddingRight}this.scrollToIndex(this.itemTotal-1,t,new T(i,i),!0)}isNearFooter(t){let i=!1;if(t>this.footerIndex&&t<this.headerIndex){let e=Math.abs(t-this.headerIndex)<Math.abs(t-this.footerIndex);i=this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?!e:e:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?!e:e}else t>this.footerIndex?i=this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT:t<this.headerIndex&&(i=this.vertical?this.verticalAxisDirection!=Et.TOP_TO_BOTTOM:this.horizontalAxisDirection!=Dt.LEFT_TO_RIGHT);return i}getFooterOffset(t){let i=this.footerIndex%this.groupItemTotal;return t%this.groupItemTotal-i+this.groupItemTotal}getHeaderOffset(t){return this.headerIndex%this.groupItemTotal-t%this.groupItemTotal+this.groupItemTotal}offsetToHeader(t){var i=0;i=this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.getHeaderOffset(t):this.getFooterOffset(t):this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.getHeaderOffset(t):this.getFooterOffset(t),i-=this.groupItemTotal;for(let t=0;t<i;t++)this.pushToHeader(!0)}offsetToFooter(t){var i=0;i=this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.getFooterOffset(t):this.getHeaderOffset(t):this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.getFooterOffset(t):this.getHeaderOffset(t),i-=this.groupItemTotal;for(let t=0;t<i;t++)this.pushToFooter(!0)}resetIndexStartToEnd(t){for(let i=0;i<this.node.children.length;i++){const e=this.node.children[i];e.__index=t,t++,(this.headerLoop||this.footerLoop)&&(t<0||t>=this.itemTotal)&&(t=0),this.notifyRefreshItem(e)}}resetIndexEndToStart(t){for(let i=this.node.children.length-1;i>=0;i--){const e=this.node.children[i];e.__index=t,t--,(this.headerLoop||this.footerLoop)&&t<0&&(t=this.itemTotal-1),this.notifyRefreshItem(e)}}scrollToIndex(t,i,e,o=!1){var r;if(isNaN(t)||t<0||t>this.itemTotal-1)return;this.scrollView.stopAutoScroll(),this.isPageView&&this.scrollView.savePageIndex(t);var s=this.node.children.find((i=>i.__index==t)),h=this.isNearFooter(t);if(this.stretchLock.index=t,this.stretchLock.timeInSecond=i,this.stretchLock.boundary=e,this.stretchLock.reverse=o,!s){0==t&&this.pushToHeader(),t==this.itemTotal-1&&this.pushToFooter();var n=this.vertical&&this.verticalAxisDirection==Et.TOP_TO_BOTTOM||!this.vertical&&this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT;h?(this.offsetToFooter(t),n?this.resetIndexEndToStart(t):this.resetIndexStartToEnd(t)):(this.offsetToHeader(t),n?this.resetIndexStartToEnd(t):this.resetIndexEndToStart(t)),s=this.node.children.find((i=>i.__index==t))}if(!s)return;let a=s.getPosition().clone();this.autoCenter||(this.vertical?this.indexVerticalAxisDirection==Mt.TOP?a.y=o?this.getItemYMin(s._uiProps.uiTransformComp)-this.paddingBottom:this.getItemYMax(s._uiProps.uiTransformComp)+this.paddingTop:a.y=o?this.getItemYMax(s._uiProps.uiTransformComp)+this.paddingTop:this.getItemYMin(s._uiProps.uiTransformComp)-this.paddingBottom:this.indexHorizontalAxisDirection==Ct.LEFT?a.x=o?this.getItemXMax(s._uiProps.uiTransformComp)+this.paddingRight:this.getItemXMin(s._uiProps.uiTransformComp)-this.paddingLeft:a.x=o?this.getItemXMin(s._uiProps.uiTransformComp)-this.paddingLeft:this.getItemXMax(s._uiProps.uiTransformComp)+this.paddingRight);let d=null==(r=this.transform)?void 0:r.convertToWorldSpaceAR(a),l=this.view.convertToNodeSpaceAR(d);var c;c=!this.autoCenter&&e?e:this.getCenterAnchor(s._uiProps.uiTransformComp,this.centerPosition),l.multiply(new T(-1,-1,1)).add(c),this.scrollView.scrollToAny(l,i,!0)}async onViewSizeChange(){this.isRestart=!0,this.createItems(this.currentCreateItemTotal),this.resetChilds(!0),this.scrollToHeader();for(let t=0;t<this.node.children.length;t++){const i=this.node.children[t]._uiProps.uiTransformComp;this.setAndSaveSizeAndScale(i)}this.isRestart=!1}setAndSaveSizeAndScale(t){t.setContentSize(this.getItemSize(t)),t.node.__size=t.contentSize.clone(),t.node.__scale=t.node.getScale().clone()}getCenterAnchor(t,i){var e=i.clone();if(this.vertical){let i=t.height*this.centerAnchor.y,o=t.height*t.anchorY;e.y-=i-o}else{let i=t.width*this.centerAnchor.x,o=t.width*t.anchorX;e.x+=i-o}return e}soonFinish(){if(this.autoCenter&&!this.scrollView.pullRefresh){this.scrollView.stopAutoScroll();var t=new T(999999,999999);for(let o=0;o<this.node.children.length;o++){var i;const r=this.node.children[o];let s=null==(i=this.transform)?void 0:i.convertToWorldSpaceAR(r.position),h=this.view.convertToNodeSpaceAR(s),n={width:!1,height:!1};var e=this.getCenterAnchor(r._uiProps.uiTransformComp,this.centerPosition);let a=h.subtract(e);n.width=Math.abs(a.x)<Math.abs(t.x),n.height=Math.abs(a.y)<Math.abs(t.y),(this.vertical&&n.height||!this.vertical&&n.width)&&(t=a)}t.multiply(new T(-1,-1,1)),this.scrollView.scrollToAny(t,this.centerTime)}}getItemSize(t){let i=new p;if(this.vertical){let e=this.spacingX*(this.groupItemTotal-1);i.width=(this.accommodWidth-e)/this.groupItemTotal,i.height=t.height}else{let e=this.spacingY*(this.groupItemTotal-1);i.height=(this.accommodHeight-e)/this.groupItemTotal,i.width=t.width}return i}getItemYMax(t){if(!t)return 0;let i=this.getScaleHeight(t)*(1-t.anchorY);return t.node.position.y+i}getItemYMin(t){if(!t)return 0;let i=this.getScaleHeight(t)*t.anchorY;return t.node.position.y-i}getItemXMax(t){if(!t)return 0;let i=this.getScaleWidth(t)*(1-t.anchorX);return t.node.position.x+i}getItemXMin(t){if(!t)return 0;let i=this.getScaleWidth(t)*t.anchorX;return t.node.position.x-i}getStartX(t){if(!t)return 0;var i=0;if(this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT){let e=this.getScaleWidth(t)*t.anchorX;i=this.viewStartPoint.x+e}else{let e=this.getScaleWidth(t)*(1-t.anchorX);i=this.viewStartPoint.x-e}return i}getEndX(t){if(!t)return 0;var i=0;if(this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT){let e=this.getScaleWidth(t)*(1-t.anchorX);i=-this.viewStartPoint.x-e-this.paddingRight+this.paddingLeft}else{let e=this.getScaleWidth(t)*t.anchorX;i=-this.viewStartPoint.x+e+this.paddingLeft-this.paddingRight}return i}getStartY(t){if(!t)return 0;var i=0;if(this.verticalAxisDirection==Et.TOP_TO_BOTTOM){let e=this.getScaleHeight(t)*(1-t.anchorY);i=this.viewStartPoint.y-e}else{let e=this.getScaleHeight(t)*t.anchorY;i=this.viewStartPoint.y+e}return i}getEndY(t){if(!t)return 0;var i=0;if(this.verticalAxisDirection==Et.TOP_TO_BOTTOM){let e=this.getScaleHeight(t)*t.anchorY;i=-this.viewStartPoint.y+e+this.paddingBottom-this.paddingTop}else{let e=this.getScaleHeight(t)*(1-t.anchorY);i=-this.viewStartPoint.y-e-this.paddingTop+this.paddingBottom}return i}isAccommodateByTop(t){return this.getItemYMax(t)+this.paddingTop<.5*this.accommodHeight}isAccommodateByBottom(t){return this.getItemYMin(t)-this.paddingBottom>-.5*this.accommodHeight}isAccommodateByLeft(t){return this.getItemXMin(t)-this.paddingLeft>-.5*this.accommodWidth}isAccommodateByRight(t){return this.getItemXMax(t)+this.paddingRight<.5*this.accommodWidth}getRelativeByLeft(t,i){return this.getItemXMin(i)-this.spacingX-this.getScaleWidth(t)*(1-t.anchorX)}getRelativeByRight(t,i){return this.getItemXMax(i)+this.spacingX+this.getScaleWidth(t)*t.anchorX}getRelativeByTop(t,i){return this.getItemYMax(i)+this.spacingY+this.getScaleHeight(t)*t.anchorY}getRelativeByBottom(t,i){return this.getItemYMin(i)-this.spacingY-this.getScaleHeight(t)*(1-t.anchorY)}setItemPosition(t,i,e=!1,o=!1){var r=new T;o?(r.x=this.getStartX(t),r.y=this.getStartY(t)):r=this.vertical?this.getVerticalRelativePosition(t,i,e):this.getHorizontalRelativePosition(t,i,e),t.node.setPosition(r)}getVerticalRelativePosition(t,i,e){var o=new T,r=!1;return r=this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?e?this.isAccommodateByLeft(i):this.isAccommodateByRight(i):e?this.isAccommodateByRight(i):this.isAccommodateByLeft(i),this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?o.x=e?r?this.getRelativeByLeft(t,i):this.getEndX(t):r?this.getRelativeByRight(t,i):this.getStartX(t):o.x=e?r?this.getRelativeByRight(t,i):this.getEndX(t):r?this.getRelativeByLeft(t,i):this.getStartX(t),this.verticalAxisDirection==Et.TOP_TO_BOTTOM?o.y=e?r?i.node.position.y:this.getRelativeByTop(t,i):r?i.node.position.y:this.getRelativeByBottom(t,i):o.y=e?r?i.node.position.y:this.getRelativeByBottom(t,i):r?i.node.position.y:this.getRelativeByTop(t,i),o}getHorizontalRelativePosition(t,i,e){var o=new T,r=!1;return r=this.verticalAxisDirection==Et.TOP_TO_BOTTOM?e?this.isAccommodateByTop(i):this.isAccommodateByBottom(i):e?this.isAccommodateByBottom(i):this.isAccommodateByTop(i),this.verticalAxisDirection==Et.TOP_TO_BOTTOM?o.y=e?r?this.getRelativeByTop(t,i):this.getEndY(t):r?this.getRelativeByBottom(t,i):this.getStartY(t):o.y=e?r?this.getRelativeByBottom(t,i):this.getEndY(t):r?this.getRelativeByTop(t,i):this.getStartY(t),this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?o.x=e?r?i.node.position.x:this.getRelativeByLeft(t,i):r?i.node.position.x:this.getRelativeByRight(t,i):o.x=e?r?i.node.position.x:this.getRelativeByRight(t,i):r?i.node.position.x:this.getRelativeByLeft(t,i),o}refreshItems(t,i=!1){if(t<0){for(let i=0;i<-t;i++)this.headerLoop||this.footerLoop?this.pushToHeader():(this.pushToHeader(!0),this.pushToFooter());let e=this.headerIndex>0?this.headerIndex:0;e+this.node.children.length>this.itemTotal&&(e+=t),e<0&&(e=0);for(let t=0;t<this.node.children.length;t++){const o=this.node.children[t];(this.headerLoop||this.footerLoop)&&e>this.itemTotal-1&&(e=0),o.__index=e,e++,i&&this.notifyRefreshItem(o)}this.scrollView.stopAutoScroll(),this.scrollView.startAutoScroll()}else for(let t=0;t<this.node.children.length;t++)this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.pushToFooter():this.pushToHeader():this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.pushToFooter():this.pushToHeader()}createItems(t,i=!1){if(this.node.children.length>t)return void this.removeItems(t);if(!this.needAddPrefab()&&this._maxPrefabTotal>0&&this._maxPrefabTotal==this.node.children.length)return;let e=t-this.node.children.length;for(let t=0;t<e;t++){let t=g(this.prefab);const i=t._uiProps.uiTransformComp;this.setAndSaveSizeAndScale(i),t.__index=this.node.children.length,this.node.addChild(t);var o,r=this.node.children.length-2;if(o=0==t.__index?this.footer:this.node.children[r]._uiProps.uiTransformComp,t.on(d.EventType.SIZE_CHANGED,(()=>{this.onChangeChildSize(i)}),this,!0),t.on(d.EventType.TRANSFORM_CHANGED,(t=>{this.onChangeChildScale(t,i)}),this,!0),this.notifyRefreshItem(t),this.setItemPosition(t._uiProps.uiTransformComp,o,!1,0==t.__index),!this.needAddPrefab()){this._maxPrefabTotal=this.node.children.length,console.log("已固定item数量",this._maxPrefabTotal);break}}}needAddPrefab(){const t=this.vertical?this.contentSize.height:this.contentSize.width;if(t>0){if(t<(this.vertical?this.view.height:this.view.width)*this.multiple)return!0}return!1}async onChangeChildSize(t){const i=t.node;if(this.groupItemTotal>1){const e=i.__size;return t.setContentSize(e),void console.warn("表格布局不支持动态修改 Size,如果你非要修改，那你把我注释掉看效果")}this.stretchLock.index==i.__index&&this.scrollToIndex(this.stretchLock.index,this.stretchLock.timeInSecond,this.stretchLock.boundary,this.stretchLock.reverse),this.resetStrectchItems()}async onChangeChildScale(t,i){if(t!==d.TransformBit.SCALE)return;if(!this.affectedByScale)return;const e=i.node;if(this.groupItemTotal>1){const t=e.__scale;return i.node.setScale(t),void console.warn("表格布局不支持动态修改 Scale,如果你非要修改，那你把我注释掉看效果")}this.stretchLock.index==e.__index&&this.scrollToIndex(this.stretchLock.index,this.stretchLock.timeInSecond,this.stretchLock.boundary,this.stretchLock.reverse),this.resetStrectchItems()}resetStrectchItems(){if(!isNaN(this.stretchLock.index)){const t=this.node.children.findIndex((t=>t.__index==this.stretchLock.index));if(-1!=t){for(let i=t;i>=0;i--){const e=this.node.children[i];i!=t&&(i<t&&this.setItemPosition(e._uiProps.uiTransformComp,this.node.children[i+1]._uiProps.uiTransformComp,!0))}for(let i=t;i<this.node.children.length;i++){const e=this.node.children[i];i!=t&&this.setItemPosition(e._uiProps.uiTransformComp,this.node.children[i-1]._uiProps.uiTransformComp)}return}}this.scrollDirection==Ft.HEADER?(this.unschedule(this.stretchToFooter),this.scheduleOnce(this.stretchToFooter)):(this.unschedule(this.stretchToHeader),this.scheduleOnce(this.stretchToHeader))}stretchToHeader(){for(let t=this.node.children.length-1;t>=0;t--){const i=this.node.children[t];t!=this.node.children.length-1&&this.setItemPosition(i._uiProps.uiTransformComp,this.node.children[t+1]._uiProps.uiTransformComp,!0)}}stretchToFooter(){for(let t=0;t<this.node.children.length;t++){const i=this.node.children[t];0!=t&&this.setItemPosition(i._uiProps.uiTransformComp,this.node.children[t-1]._uiProps.uiTransformComp)}}removeItems(t){let i=this.node.children.length-t;for(let t=0;t<i;t++){var e=this.node.children[this.node.children.length-1];e.off(d.EventType.SIZE_CHANGED),e.off(d.EventType.TRANSFORM_CHANGED),this.node.removeChild(e),e.destroy()}}addEventListener(){this.node.on(f.TRANSFORM_CHANGED,this.onPositionChanged,this)}removeEventListener(){this.node.off(f.TRANSFORM_CHANGED,this.onPositionChanged,this)}resetChilds(t=!1){if(this.vertical&&this.fixedItemHeight<=this.view.height||!this.vertical&&this.fixedItemWidth<=this.view.width){var i;let t=this.getStartX(this.header),e=this.getStartY(this.header);null==(i=this.header)||i.node.setPosition(new T(t,e))}if(t)if(this.vertical){var e;let t=this.getStartX(this.header);null==(e=this.header)||e.node.setPosition(new T(t,this.header.node.position.y))}else{var o;let t=this.getStartY(this.header);null==(o=this.header)||o.node.setPosition(new T(this.header.node.position.x,t))}this.stretchToFooter(),t||this.scrollView.startAutoScroll()}onTouchBegin(){this.stretchLock={}}getUsedScaleValue(t){return this.affectedByScale?Math.abs(t):1}getScaleWidth(t){if(!t)return 0;const i=t.node.__runtime_size;return(i?i.width:t.width)*this.getUsedScaleValue(t.node.scale.x)}getScaleHeight(t){if(!t)return 0;const i=t.node.__runtime_size;return(i?i.height:t.height)*this.getUsedScaleValue(t.node.scale.y)}onPositionChanged(){if(!this.isRestart){if(this.vertical?this.scrollView.prevLocation.y<this.scrollView.location.y?this.scrollDirection=Ft.FOOTER:this.scrollView.prevLocation.y>this.scrollView.location.y?this.scrollDirection=Ft.HEADER:this.scrollDirection=Ft.NONE:this.scrollView.prevLocation.x>this.scrollView.location.x?this.scrollDirection=Ft.FOOTER:this.scrollView.prevLocation.x<this.scrollView.location.x?this.scrollDirection=Ft.HEADER:this.scrollDirection=Ft.NONE,this.vertical)for(let t=0;t<this.node.children.length;t++){Math.abs(this.prevPos.y-this.node.position.y)>Lt&&(this.prevPos.y<this.node.position.y?this.pushToFooter():this.prevPos.y>this.node.position.y&&this.pushToHeader())}else for(let t=0;t<this.node.children.length;t++){Math.abs(this.prevPos.x-this.node.position.x)>Lt&&(this.prevPos.x>this.node.position.x?this.pushToFooter():this.prevPos.x<this.node.position.x&&this.pushToHeader())}this.prevPos=this.node.position.clone()}}pushToFooter(t=!1){var i,e,o,r;this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?(t||this.headerBoundary-this.paddingTop>this.viewHeaderBoundary+(null==(i=this.header)?void 0:i.height))&&this.pushToFooterHandler():(t||this.footerBoundary-this.paddingTop>this.viewHeaderBoundary+(null==(e=this.header)?void 0:e.height))&&this.pushToHeaderHandler():this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?(t||this.headerBoundary+this.paddingLeft<this.viewHeaderBoundary-(null==(o=this.header)?void 0:o.width))&&this.pushToFooterHandler():(t||this.footerBoundary+this.paddingLeft<this.viewHeaderBoundary-(null==(r=this.header)?void 0:r.width))&&this.pushToHeaderHandler()}pushToHeader(t=!1){var i,e,o,r;this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?(t||this.footerBoundary+this.paddingBottom<this.viewFooterBoundary-(null==(i=this.footer)?void 0:i.height))&&this.pushToHeaderHandler():(t||this.headerBoundary+this.paddingBottom<this.viewFooterBoundary-(null==(e=this.footer)?void 0:e.height))&&this.pushToFooterHandler():this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?(t||this.footerBoundary-this.paddingRight>this.viewFooterBoundary+(null==(o=this.footer)?void 0:o.width))&&this.pushToHeaderHandler():(t||this.headerBoundary-this.paddingRight>this.viewFooterBoundary+(null==(r=this.footer)?void 0:r.width))&&this.pushToFooterHandler()}pushToFooterHandler(){var t,i,e=null==(t=this.header)?void 0:t.node;let o;if(o=this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.footerLoop:this.headerLoop:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.footerLoop:this.headerLoop,o)this.footerIndex>=this.itemTotal-1?e.__index=0:e.__index=this.footerIndex+1;else{if(!this.footer||this.footerIndex>=this.itemTotal-1)return;e.__index=this.footerIndex+1}e.__index>0&&e.__index<this.currentCreateItemTotal&&this.notifyRefreshItem(e),this.setItemPosition(this.header,this.footer),null==(i=this.header)||i.node.setSiblingIndex(this.node.children.length)}pushToHeaderHandler(){var t,i,e=null==(t=this.footer)?void 0:t.node;let o;(o=this.vertical?this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.headerLoop:this.footerLoop:this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.headerLoop:this.footerLoop,o||0!=this.headerIndex)||(this.vertical?this.horizontalAxisDirection==Dt.LEFT_TO_RIGHT?this.isAccommodateByLeft(this.header):this.isAccommodateByRight(this.header):this.verticalAxisDirection==Et.TOP_TO_BOTTOM?this.isAccommodateByTop(this.header):this.isAccommodateByBottom(this.header))&&this.resetChilds(!0);if(o)0==this.headerIndex?e.__index=this.itemTotal-1:e.__index=this.headerIndex-1;else{if(!this.header||0==this.headerIndex)return;e.__index=this.headerIndex-1}e.__index>=0&&e.__index<this.currentCreateItemTotal&&this.notifyRefreshItem(e),this.setItemPosition(this.footer,this.header,!0),null==(i=this.footer)||i.node.setSiblingIndex(0)}notifyRefreshItem(t){a.emitEvents(this.refreshItemEvents,t,t.__index)}}).VerticalAxisDirection=Et,bt.HorizontalAxisDirection=Dt,Q=i((K=bt).prototype,"scrollView",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=i(K.prototype,"view",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tt=i(K.prototype,"prefab",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it=i(K.prototype,"layoutType",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return zt.VERTICAL}}),et=i(K.prototype,"indexVerticalAxisDirection",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Mt.TOP}}),ot=i(K.prototype,"indexHorizontalAxisDirection",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ct.LEFT}}),rt=i(K.prototype,"verticalAxisDirection",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Et.TOP_TO_BOTTOM}}),st=i(K.prototype,"horizontalAxisDirection",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Dt.LEFT_TO_RIGHT}}),ht=i(K.prototype,"groupItemTotal",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),nt=i(K.prototype,"multiple",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 2}}),at=i(K.prototype,"paddingTop",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dt=i(K.prototype,"paddingBottom",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),lt=i(K.prototype,"paddingLeft",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ct=i(K.prototype,"paddingRight",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ut=i(K.prototype,"spacingX",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tt=i(K.prototype,"spacingY",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),pt=i(K.prototype,"affectedByScale",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=i(K.prototype,"isPageView",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ft=i(K.prototype,"pageTurningSpeed",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.3}}),mt=i(K.prototype,"indicator",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vt=i(K.prototype,"scrollThreshold",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),xt=i(K.prototype,"autoPageTurningThreshold",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),_t=i(K.prototype,"pageEvents",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yt=i(K.prototype,"autoCenter",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ot=i(K.prototype,"centerTime",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),wt=i(K.prototype,"centerNode",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),It=i(K.prototype,"centerAnchor",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new l(.5,.5)}}),Bt=i(K.prototype,"headerLoop",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=i(K.prototype,"footerLoop",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),At=i(K.prototype,"refreshItemEvents",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),J=K))||J)||J));o._RF.pop()}}}));

System.register("chunks:///_virtual/super-scrollview.ts",["./rollupPluginModLoBabelHelpers.js","cc","./super-layout.ts"],(function(t){"use strict";var e,i,o,s,r,a,h,n,l,u,c,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Vec2,r=t.EventHandler,a=t._decorator,h=t.ScrollView,n=t.PageView,l=t.Node,u=t.EventTouch,c=t.Vec3},function(t){d=t.SuperLayout}],execute:function(){var g,y,f,_,v,T,p,E,O,m,P,S,L,b,x,B,I,H;t("ScrollViewDirection",void 0),o._RF.push({},"9b21eTL7AJPLZ3KbnJdUrxs","super-scrollview",void 0);const{ccclass:C,property:M}=a,R=1e-4,k=new s;let A;!function(t){t[t.HORIZONTAL=0]="HORIZONTAL",t[t.VERTICAL=1]="VERTICAL",t[t.NONE=2]="NONE"}(A||(A=t("ScrollViewDirection",{})));t("SuperScrollview",(g=C("SuperScrollview"),y=M({tooltip:"注意！向上传递事件只会发送当前滑动相反方向,如果开启horizontal则会发送vertical事件。如果开启vertical则会发送horizontal事件。同时开启horizontal和vertical 不会发送任何事件"}),f=M({displayName:"顶部偏移量",tooltip:"下拉时超过此偏移会发送下拉事件",visible:function(){return this.pullRefresh}}),_=M({displayName:"满足触发Header的倍数",visible:function(){return this.pullRefresh}}),v=M({displayName:"底部偏移量",tooltip:"上拉时超过此偏移会发送上拉事件",visible:function(){return this.pullRefresh}}),T=M({displayName:"满足触发Footer的倍数",visible:function(){return this.pullRefresh}}),p=M({type:r,visible:function(){return this.pullRefresh}}),E=M({type:r,visible:function(){return this.pullRefresh}}),g((P=e((m=class extends h{constructor(...t){super(...t),this.direction=A.NONE,i(this,"isTransmitEvent",P,this),i(this,"pullRefresh",S,this),i(this,"headerOutOffset",L,this),i(this,"headerMultiple",b,this),i(this,"footerOutOffset",x,this),i(this,"footerMultiple",B,this),i(this,"headerEvents",I,this),i(this,"footerEvents",H,this),this.prevLocation=new s,this.location=new s,this._touchBeganPosition=new s,this._touchEndPosition=new s,this.isMoveHeader=!1,this.isMoveFooter=!1,this.isLockHeader=!1,this.isLockFooter=!1,this.headerProgress=0,this.footerProgress=0,this.isCustomScroll=!1,this.canTouchMove=!0,this.isCallSoonFinish=!1}set autoScrolling(t){this._autoScrolling=t}onLoad(){this.layout.autoCenter&&(this.brake=.7)}onEnable(){super.onEnable(),this.node.on(n.EventType.SCROLL_ENG_WITH_THRESHOLD,this.dispatchPageTurningEvent,this)}onDisable(){super.onDisable(),this.node.off(n.EventType.SCROLL_ENG_WITH_THRESHOLD,this.dispatchPageTurningEvent,this)}get layout(){var t;this._layout||(this._layout=null==(t=this.content)?void 0:t.getComponent(d));return this._layout}get curPageIdx(){return this.layout._currPageIndex}getPages(){return new Array(this.layout.itemTotal)}_getContentTopBoundary(){if(!this._content)return-1;return 0==this.layout.isOfTopBoundary?this._topBoundary:this.layout.isOfTopBoundary}_getContentBottomBoundary(){if(!this._content)return-1;return 0==this.layout.isOfButtomBoundary?this._bottomBoundary:this.layout.isOfButtomBoundary}_getContentLeftBoundary(){if(!this._content)return-1;return 0==this.layout.isOfLeftBoundary?this._leftBoundary:this.layout.isOfLeftBoundary}_getContentRightBoundary(){if(!this._content)return-1;return 0==this.layout.isOfRightBoundary?this._rightBoundary:this.layout.isOfRightBoundary}_onTouchBegan(t,e){this.isCallSoonFinish=!1,this.isCustomScroll=!1,this.layout.onTouchBegin(),this.canTouchMove&&(this.direction=A.NONE,this.layout.isPageView&&(t.touch.getUILocation(k),s.set(this._touchBeganPosition,k.x,k.y)),super._onTouchBegan(t,e),this.isTransmitEvent&&this.transmitEvent(t,l.EventType.TOUCH_START))}_onTouchMoved(t,e){var i,o;if(this.isCallSoonFinish=!1,this.isCustomScroll=!1,this.canTouchMove){if(this.isTransmitEvent){if(this.direction==A.NONE){var s=t.getStartLocation(),a=t.getLocation(),h=Math.abs(s.x-a.x),n=Math.abs(s.y-a.y);h>n?this.direction=A.HORIZONTAL:n>h&&(this.direction=A.VERTICAL)}if(this.vertical&&this.direction===A.HORIZONTAL||this.horizontal&&this.direction==A.VERTICAL)return void this.transmitEvent(t,l.EventType.TOUCH_MOVE)}if(this.prevLocation=null==(i=t.touch)?void 0:i.getPreviousLocation(),this.location=null==(o=t.touch)?void 0:o.getLocation(),super._onTouchMoved(t,e),this.pullRefresh){let t=this._getHowMuchOutOfBoundary(),e=this.vertical?t.y:-t.x;e>0&&!this.isLockHeader&&!this.isLockFooter?(this.headerProgress=e<R?0:e/this.headerOutOffset,this.isMoveHeader=this.headerProgress>=this.headerMultiple,r.emitEvents(this.headerEvents,this,{action:!1,progress:this.headerProgress,stage:this.isMoveHeader?"wait":"touch"}),r.emitEvents(this.footerEvents,this,{action:!1,progress:0,stage:"release"})):e<0&&!this.isLockHeader&&!this.isLockFooter?(this.footerProgress=-e<R?0:-e/this.footerOutOffset,this.isMoveFooter=this.footerProgress>=this.footerMultiple,r.emitEvents(this.footerEvents,this,{action:!1,progress:this.footerProgress,stage:this.isMoveFooter?"wait":"touch"}),r.emitEvents(this.headerEvents,this,{action:!1,progress:0,stage:"release"})):0!=e||this.isLockHeader||this.isLockFooter||this.clearProgress()}}}_onTouchEnded(t,e){this.isCallSoonFinish=!1,this.isCustomScroll=!1,this.canTouchMove&&(this.layout.isPageView&&(t.touch.getUILocation(k),s.set(this._touchEndPosition,k.x,k.y)),super._onTouchEnded(t,e),this.isTransmitEvent&&this.transmitEvent(t,l.EventType.TOUCH_END))}_onTouchCancelled(t,e){this.isCallSoonFinish=!1,this.isCustomScroll=!1,this.canTouchMove&&(this.layout.isPageView&&(t.touch.getUILocation(k),s.set(this._touchEndPosition,k.x,k.y)),this.isTransmitEvent&&this.transmitEvent(t,l.EventType.TOUCH_CANCEL),super._onTouchCancelled(t,e))}scrollToAny(t,e,i=!0){this.isCustomScroll=!0,e?this._startAutoScroll(t,e,i,!0):this._moveContent(t)}release(){this.isMoveHeader=!1,this.isMoveFooter=!1,(this.isLockHeader||this.isLockFooter)&&(this.vertical&&this.isLockHeader&&(this._topBoundary+=this.headerOutOffset),this.vertical&&this.isLockFooter&&(this._bottomBoundary-=this.footerOutOffset),this.horizontal&&this.isLockHeader&&(this._leftBoundary-=this.headerOutOffset),this.horizontal&&this.isLockFooter&&(this._rightBoundary+=this.footerOutOffset),this.clearProgress(),this.layout.onPositionChanged(),this.isLockHeader=!1,this.isLockFooter=!1,this.startAutoScroll())}startAutoScroll(){this._autoScrolling=!0,this._outOfBoundaryAmountDirty=!0}_startAutoScroll(t,e,i,o=!1){if(this.pullRefresh&&(this.isMoveHeader&&!this.isLockHeader?(this.vertical&&(this._topBoundary-=this.headerOutOffset,t.y-=this.headerOutOffset),this.horizontal&&(this._leftBoundary+=this.headerOutOffset,t.x+=this.headerOutOffset),this.isLockHeader=!0,r.emitEvents(this.headerEvents,this,{action:!0,progress:this.headerProgress,stage:"lock"})):this.isMoveFooter&&!this.isLockFooter&&(this.vertical&&(this._bottomBoundary+=this.footerOutOffset,t.y+=this.footerOutOffset),this.horizontal&&(this._rightBoundary-=this.footerOutOffset,t.x-=this.footerOutOffset),this.isLockFooter=!0,r.emitEvents(this.footerEvents,this,{action:!0,progress:this.footerProgress,stage:"lock"}))),super._startAutoScroll(t,e,i),!o&&this.layout.autoCenter){const t=this._calculateTouchMoveVelocity();this.isQuicklyScrollable(t)||this.soonFinish()}}_updateScrollBar(t){if(super._updateScrollBar(new s(t.x,t.y)),this._autoScrollBraking)return;if(!this._autoScrolling)return;if(!this.pullRefresh)return;let e=this.vertical?t.y:-t.x;if(e>0){let t=e<R?0:e/this.headerOutOffset;this.isLockHeader?(this.headerProgress=1==this.headerProgress?this.headerProgress:Math.max(t,1),r.emitEvents(this.headerEvents,this,{action:!1,progress:this.headerProgress,stage:"lock"})):(this.headerProgress=t<this.headerProgress?t:this.headerProgress,r.emitEvents(this.headerEvents,this,{action:!1,progress:this.headerProgress,stage:"release"}))}else if(e<0){let t=-e<R?0:-e/this.footerOutOffset;this.isLockFooter?(this.footerProgress=1==this.footerProgress?this.footerProgress:Math.max(t,1),r.emitEvents(this.footerEvents,this,{action:!1,progress:this.footerProgress,stage:"lock"})):(this.footerProgress=t<this.footerProgress?t:this.footerProgress,r.emitEvents(this.footerEvents,this,{action:!1,progress:this.footerProgress,stage:"release"}))}else 0==e&&(this.isLockHeader||this.isLockFooter||this.clearProgress())}clearProgress(){r.emitEvents(this.headerEvents,this,{action:!1,progress:0,stage:"release"}),r.emitEvents(this.footerEvents,this,{action:!1,progress:0,stage:"release"})}dispatchPageTurningEvent(){this.layout._lastPageIndex!==this.layout._currPageIndex&&(this.layout._lastPageIndex=this.layout._currPageIndex,r.emitEvents(this.layout.pageEvents,this,n.EventType.PAGE_TURNING),this.node.emit(n.EventType.PAGE_TURNING,this))}_handleReleaseLogic(t){this.layout.isPageView?(this._autoScrollToPage(),this._scrolling&&(this._scrolling=!1,this._autoScrolling||this._dispatchEvent(h.EventType.SCROLL_ENDED))):super._handleReleaseLogic(t)}_autoScrollToPage(){if(this._startBounceBackIfNeeded()){const t=this._getHowMuchOutOfBoundary();this._clampDelta(t),(t.x>0||t.y<0)&&(this.layout.horizontal?this.layout.horizontalAxisDirection==d.HorizontalAxisDirection.LEFT_TO_RIGHT?this.layout._currPageIndex=0===this.layout.itemTotal?0:this.layout.itemTotal-1:this.layout._currPageIndex=0:this.layout.verticalAxisDirection==d.VerticalAxisDirection.TOP_TO_BOTTOM?this.layout._currPageIndex=0===this.layout.itemTotal?0:this.layout.itemTotal-1:this.layout._currPageIndex=0),(t.x<0||t.y>0)&&(this.layout.horizontal?this.layout.horizontalAxisDirection==d.HorizontalAxisDirection.LEFT_TO_RIGHT?this.layout._currPageIndex=0:this.layout._currPageIndex=0===this.layout.itemTotal?0:this.layout.itemTotal-1:this.layout.verticalAxisDirection==d.VerticalAxisDirection.TOP_TO_BOTTOM?this.layout._currPageIndex=0:this.layout._currPageIndex=0===this.layout.itemTotal?0:this.layout.itemTotal-1),this.layout.indicator&&this.layout.indicator._changedState()}else{const i=new s;s.subtract(i,this._touchBeganPosition,this._touchEndPosition);const o=this.layout._currPageIndex;var t=o+this.getDragDirection(i),e=this.layout.pageTurningSpeed*Math.abs(o-t);this.layout.footerLoop&&t>=this.layout.itemTotal&&(t=0),this.layout.headerLoop&&t<0&&(t=this.layout.itemTotal-1);if(t<this.layout.itemTotal){if(this.isScrollable(i,o,t))return void this.scrollToPage(t,e);{const i=this._calculateTouchMoveVelocity();if(this.isQuicklyScrollable(i))return void this.scrollToPage(t,e)}}this.scrollToPage(o,e)}}savePageIndex(t){return!(t<0||t>=this.layout.itemTotal)&&(this.layout._currPageIndex=t,this.layout.indicator&&this.layout.indicator._changedState(),!0)}scrollToPage(t,e=.3){t<0||t>=this.layout.itemTotal||this.savePageIndex(t)&&this.layout.scrollToIndex(t,e)}isQuicklyScrollable(t){if(this.horizontal){if(Math.abs(t.x)>this.layout.autoPageTurningThreshold)return!0}else if(this.vertical&&Math.abs(t.y)>this.layout.autoPageTurningThreshold)return!0;return!1}getDragDirection(t){return this.horizontal?0===t.x?0:this.layout.horizontalAxisDirection==d.HorizontalAxisDirection.LEFT_TO_RIGHT?t.x>0?this.layout.groupItemTotal:-this.layout.groupItemTotal:t.x<0?this.layout.groupItemTotal:-this.layout.groupItemTotal:0===t.y?0:this.layout.verticalAxisDirection==d.VerticalAxisDirection.TOP_TO_BOTTOM?t.y<0?this.layout.groupItemTotal:-this.layout.groupItemTotal:t.y>0?this.layout.groupItemTotal:-this.layout.groupItemTotal}isScrollable(t,e,i){const o=this.view;return!!o&&(this.horizontal?Math.abs(t.x)>=o.width*this.layout.scrollThreshold:!!this.vertical&&Math.abs(t.y)>=o.height*this.layout.scrollThreshold)}transmitEvent(t,e){var i=new u(t.getTouches(),t.bubbles);i.type=e,i.touch=t.touch,t.target.parent.dispatchEvent(i)}soonFinish(){this.isCallSoonFinish=!0,this.layout.soonFinish()}_processAutoScrolling(t){const e=this._isNecessaryAutoScrollBrake(),i=e?.015:1;this._autoScrollAccumulatedTime+=t*(1/i);let o=Math.min(1,this._autoScrollAccumulatedTime/this._autoScrollTotalTime);var s;this._autoScrollAttenuate&&(s=o,o=(s-=1)*s*s*s*s+1);const r=this._autoScrollTargetDelta.clone();r.multiplyScalar(o);const a=this._autoScrollStartPosition.clone();a.add(r);let n=Math.abs(o-1)<=R;if(Math.abs(o-1)<=this.getScrollEndedEventTiming()&&!this._isScrollEndedWithThresholdEventFired&&(this._dispatchEvent(h.EventType.SCROLL_ENG_WITH_THRESHOLD),this._isScrollEndedWithThresholdEventFired=!0),this.elastic){const t=a.clone();t.subtract(this._autoScrollBrakingStartPosition),e&&t.multiplyScalar(i),a.set(this._autoScrollBrakingStartPosition),a.add(t)}else{const t=a.clone();t.subtract(this.getContentPosition());const e=this._getHowMuchOutOfBoundary(t);e.equals(c.ZERO,R)||(a.add(e),n=!0)}n&&(this._autoScrolling=!1),!this.layout.autoCenter||this.isCallSoonFinish||this.isCustomScroll||(this._autoScrollTotalTime<2||o>=.8)&&this.soonFinish();const l=a.clone();l.subtract(this.getContentPosition()),this._clampDelta(l),this._moveContent(l,n),this._dispatchEvent(h.EventType.SCROLLING),this._autoScrolling||(this._isBouncing=!1,this._scrolling=!1,this._dispatchEvent(h.EventType.SCROLL_ENDED))}}).prototype,"isTransmitEvent",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=e(m.prototype,"pullRefresh",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L=e(m.prototype,"headerOutOffset",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 200}}),b=e(m.prototype,"headerMultiple",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 2}}),x=e(m.prototype,"footerOutOffset",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 200}}),B=e(m.prototype,"footerMultiple",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 2}}),I=e(m.prototype,"headerEvents",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),H=e(m.prototype,"footerEvents",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),O=m))||O));o._RF.pop()}}}));

System.register("chunks:///_virtual/SurveyModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./Controller.ts","./Global.ts","./CustomEventMgr.ts","./MainModel.ts","./StorageUtil.ts","./TimeUtil.ts"],(function(t){"use strict";var e,i,n,s,r,o,u,c,l,S;return{setters:[function(t){e=t.cclegacy,i=t._decorator},function(t){n=t.ESwitch},function(t){s=t.SurveyEvent},function(t){r=t.Controller},function(t){o=t.Global},function(t){u=t.CustomEventMgr},function(t){c=t.MainModel},function(t){l=t.default},function(t){S=t.default}],execute:function(){var a;e._RF.push({},"3a14a09AoZGQYgtXPpU6ri+","SurveyModel",void 0);const{ccclass:f}=i;t("SurveyModel",f("SurveyModel")(a=class extends r{constructor(...t){super(...t),this.isSubmit=!1}s2cSurvey(t){t.succ?(this.isSubmit=!0,u.fire(s.ON_SUBMIT_SUCESS)):u.fire(s.ON_SUBMIT_FAIL)}get surveySwtich(){let t=l.getSatisfyIgnoreTime(),e=1e3*S.DAY_TIME_LEN;return t=t>0?o.svrTimeMS-t:e,!this.isSubmit&&o.gameCtrl.getModel(c).getSwitchByType(n.Survey)&&t>=e}resetIgnoreTime(){l.saveSatisfyIgnoreTime(0)}})||a);e._RF.pop()}}}));

System.register("chunks:///_virtual/SvrData.ts",["cc"],(function(t){"use strict";var s;return{setters:[function(t){s=t.cclegacy}],execute:function(){s._RF.push({},"59976+m1hFEW7j7tzWMbLtY","SvrData",void 0);class i{constructor(){this.succ=void 0,this.code=void 0}}t("MSG",i);t("BaseProtoData",class{constructor(){this.type=void 0,this.message=void 0}});t("Svr13Data",class extends i{constructor(...t){super(...t),this.id=void 0,this.action=void 0}});t("Svr30Data",class extends i{constructor(...t){super(...t),this.is_all=void 0,this.gameid=void 0,this.starttime=void 0,this.endtime=void 0}});t("Svr31Data",class extends i{constructor(...t){super(...t),this.gameid=void 0,this.starttime=void 0,this.endtime=void 0}});t("Svr34Data",class extends i{constructor(...t){super(...t),this.message=void 0}});t("Svr99Data",class extends i{constructor(...t){super(...t),this.status=void 0,this.switch=void 0,this.userid=void 0,this.updateurl=void 0,this.switch_list=void 0}});t("Svr117Data",class extends i{constructor(...t){super(...t),this.mode=void 0}});t("Svr118Data",class extends i{constructor(...t){super(...t),this.mode=void 0}});t("Svr119Data",class extends i{constructor(...t){super(...t),this.mode=void 0}}),s._RF.pop()}}}));

System.register("chunks:///_virtual/TaskBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./EventDefine.ts","./LanguageLabel.ts","./Global.ts","./CustomEventMgr.ts","./TaskModel.ts"],(function(t){"use strict";var e,i,s,a,n,o,r,l,c,h,u,_,m,g,T,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,a=t.Node,n=t.Label,o=t._decorator,r=t.Component,l=t.macro,c=t.director,h=t.sp},function(t){u=t.ELanguage_Type},function(t){_=t.TaskEvent},function(t){m=t.LanguageLabel},function(t){g=t.Global},function(t){T=t.CustomEventMgr},function(t){p=t.TaskModel}],execute:function(){var d,f,k,b,E,D,I,S,y,L,v;s._RF.push({},"ba42bEZZTNGWoJxp8hjbXyI","TaskBtn",void 0);const{ccclass:R,property:N}=o;t("TaskBtn",(d=R("TaskBtn"),f=N({displayName:"领取提示",type:a}),k=N({displayName:"spine node",type:a}),b=N({displayName:"时间label",type:n}),E=N({displayName:"描述",type:m}),d((S=e((I=class extends r{constructor(...t){super(...t),i(this,"img_canget",S,this),i(this,"spineNode",y,this),i(this,"lab_tasktime",L,this),i(this,"dec",v,this),this._taskIconData=null,this.isShowing=!1,this._curIndex=-1,this.maxnum=30,this.curnum=0}start(){this.bindEvents(),this.schedule(this._setRemainTime,1,l.REPEAT_FOREVER,.01);let t=[u.CN,u.EN];this.dec.setLanguageTypeArr(t)}onEnable(){this.initBtn()}onDisable(){}initBtn(){g.gameCtrl.getModel(p).c2sGetTaskState()}bindEvents(){T.on(_.GET_TASK_STATE,this._onGetData,this),T.on(_.CLOSE_BTN_RED,this.closeRB,this),T.on(_.GET_TASK_BTN_STATE,this._setRemainTime,this)}removeEvents(){T.off(_.GET_TASK_STATE,this._onGetData,this),T.off(_.CLOSE_BTN_RED,this.closeRB,this),T.off(_.GET_TASK_BTN_STATE,this._setRemainTime,this)}_setRemainTime(){if(c.getScheduler().isTargetPaused(this)&&c.getScheduler().resumeTarget(this),!this.isShowing)return;if(!this._taskIconData)return;let t=this._taskIconData.stateList[this._curIndex];if(!t)return void(this.lab_tasktime.string="-");let e=t.endTime-g.svrTimeMS/1e3;e<=-3?(g.gameCtrl.getModel(p).c2sGetTaskState(),++this.curnum,this.curnum>=this.maxnum&&(c.getScheduler().pauseTarget(this),this.curnum=0)):e>0?(this.curnum=0,this.lab_tasktime.string=g.gameCtrl.getModel(p).formatRemainTime(e)):e<=0&&(this.lab_tasktime.string="-")}_onGetData(t){let e=g.gameCtrl.getModel(p);this._taskIconData=e.getTaskState();let i=!0;for(let t of this._taskIconData.stateList)if(t.isOpen){i=!1;break}let s=g.svrTimeMS/1e3,a=s>this._taskIconData.startTime&&s<this._taskIconData.endTime;this.isShowing=this._taskIconData.isOpen&&!i&&a,this.img_canget.active=this._taskIconData.hasReward,1==this._taskIconData.hasReward?this.spineNode.getComponent(h.Skeleton).setAnimation(0,"ani-kelingqu",!0):this.spineNode.getComponent(h.Skeleton).setAnimation(0,"ani-daiji",!0),this._changeInfo(),this._setLabelInfo()}_changeInfo(){let t=this._curIndex+1,e=this._taskIconData.stateList.length;for(let i=0;i<e;i++){if(t%=e,this._taskIconData.stateList[t].isOpen){this._curIndex=t;break}t++}}_setLabelInfo(){if(!this._taskIconData||!this._taskIconData.stateList)return;this._taskIconData.stateList[this._curIndex]}closeRB(){this.img_canget.active=!1}}).prototype,"img_canget",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(I.prototype,"spineNode",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(I.prototype,"lab_tasktime",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(I.prototype,"dec",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=I))||D));s._RF.pop()}}}));

System.register("chunks:///_virtual/TaskCoin.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./Global.ts","./CustomEventMgr.ts","./TaskModel.ts"],(function(e){"use strict";var i,t,s,n,o,a,h,l,c,r,d,g;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){s=e.cclegacy,n=e.SpriteFrame,o=e._decorator,a=e.Component,h=e.Sprite,l=e.Animation},function(e){c=e.TaskEvent},function(e){r=e.Global},function(e){d=e.CustomEventMgr},function(e){g=e.TaskModel}],execute:function(){var m,u,p,C,y;s._RF.push({},"09203SUjPFNsIQwemhz/V6M","TaskCoin",void 0);const{ccclass:f,property:v}=o;e("TaskCoin",(m=f("TaskCoin"),u=v({displayName:"coin img",type:[n]}),m((y=i((C=class extends a{constructor(...e){super(...e),t(this,"coinImg",y,this),this._coinType=null,this._state=null,this._curIndex=0,this.isFirst=!1,this.isPlayingAni=!1}start(){}setCoinInfo(e,i,t){this._coinType=e;if(-1!=[1,2,3,4,5,6].indexOf(i)&&(this._state=i,this.node.active=!0,this.refreshCoin(e,i),1!=i))if(2==i);else if(3==i)if(1===t)this.scheduleOnce((()=>{d.fire(c.GET_TASK_COIN_END)}),1);else if(2===t){r.gameCtrl.getModel(g).c2sGetTaskData()}}refreshCoin(e,i){if(0!=this.isPlayingAni)return;this.unscheduleAllCallbacks(),this.node.children.map((e=>{e.active=!1}));let t="";if(t="disable",this.node.getChildByName(t).active=!0,2==i)t="able",this.node.getChildByName(t).active=!0,this.node.getChildByName(t).getComponent(h).spriteFrame=this.coinImg[e-1],this.node.getChildByName("baoshi").active=!0;else if(3==i){this.isPlayingAni=!0,t="baoshihuodei";let i=this.node.getChildByName(t);i.active=!0,i.getChildByName("baoshihuodei").getComponent(l).play("baoshihuodei"),i.getChildByName("dio_green").active=!1,this.scheduleOnce((()=>{this.node.getChildByName("able").active=!0,this.node.getChildByName("able").getComponent(h).spriteFrame=this.coinImg[e-1]}),.4),i.getChildByName("baoshihuodei").getComponent(l).on(l.EventType.FINISHED,(()=>{i.active=!1}),this),i.getChildByName("dio_green").getComponent(h).spriteFrame=this.coinImg[e-1],this.scheduleOnce((()=>{this.node.getChildByName("baoshi").active=!0,this.isPlayingAni=!1}),.9)}}}).prototype,"coinImg",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=C))||p));s._RF.pop()}}}));

System.register("chunks:///_virtual/TaskData.ts",["cc","./EnumDefine.ts"],(function(i){"use strict";var t,s,e,a;return{setters:[function(i){t=i.cclegacy},function(i){s=i.TaskKind,e=i.TaskType,a=i.TaskRewardType}],execute:function(){t._RF.push({},"fc1c17UqABM2a8JjVljH+WU","TaskData",void 0);i("TaskData",class{constructor(){this.svrID=void 0,this.taskKind=void 0,this.isOpen=void 0,this.progressData=void 0,this.itemDataList=void 0,this.needShowTip=void 0,this.svrID=null,this.taskKind=s.NONE,this.progressData=new o,this.isOpen=!1,this.itemDataList=[],this.needShowTip=!1}hasReceiveItem(){if(!this.itemDataList||this.itemDataList.length<=0)return!1;if(this.progressData.curProgress>=this.progressData.condition)return!1;for(let i of this.itemDataList)if(i.canReceive())return!0;return!1}});i("TaskItemData",class{constructor(){this.taskType=void 0,this.curProgress=void 0,this.condition=void 0,this.claimTimes=void 0,this.curClaim=void 0,this.rewardType=void 0,this.rewardCount=void 0,this.tags=void 0,this.taskType=e.NONE,this.curProgress=0,this.condition=0,this.claimTimes=0,this.curClaim=0,this.rewardType=a.NONE,this.rewardCount=0,this.tags=""}canReceive(){return this.curClaim<this.claimTimes&&this.curProgress>=this.condition}clone(){let i={};return i.taskType=this.taskType,i.curProgress=this.curProgress,i.condition=this.condition,i.claimTimes=this.claimTimes,i.curClaim=this.curClaim,i.rewardType=this.rewardType,i.rewardCount=this.rewardCount,i.tags=this.tags,i}});class o{constructor(){this.svrID=void 0,this.startTime=void 0,this.endTime=void 0,this.coinType=void 0,this.curProgress=void 0,this.condition=void 0,this.canReceive=void 0,this.haveGot=void 0,this.reward=void 0,this.canGotTime=void 0,this.shareCount=void 0,this.taskDuration=void 0,this.lastReceiveTime=void 0,this.svrID=null,this.startTime=0,this.endTime=0,this.coinType=a.NONE,this.curProgress=0,this.condition=0,this.haveGot=!1,this.reward=0,this.canGotTime=0,this.shareCount=0,this.taskDuration=0,this.lastReceiveTime=0}}i("TaskProgressData",o);i("TaskIconData",class{constructor(){this.isOpen=void 0,this.startTime=void 0,this.endTime=void 0,this.hasReward=void 0,this.stateList=void 0,this.autoShow=void 0,this.autoShowKind=void 0,this.stateList=[],this.isOpen=!1,this.startTime=0,this.endTime=0,this.hasReward=!1,this.autoShow=!1}});i("TaskStateData",class{constructor(){this.taskKind=void 0,this.reward=void 0,this.endTime=void 0,this.isOpen=void 0,this.needMask=void 0}});i("TaskRecordData",class{constructor(){this.taskKind=void 0,this.taskIssue=void 0,this.totalReward=void 0,this.completeCount=void 0,this.pageList=void 0,this.totalData=void 0,this.countPerPage=void 0,this.taskKind=s.NONE,this.taskIssue="",this.totalReward=0,this.completeCount=0,this.pageList=[],this.totalData=0}getPageData(i){for(let t=0;t<this.pageList.length;t++){let s=this.pageList[t];if(s.page==i)return s}return null}});i("QuickTaskData",class{constructor(){this.curProgress=void 0,this.condition=void 0,this.endTime=void 0,this.coinType=void 0,this.taskKind=void 0,this.svrID=void 0,this.canReceive=void 0,this.haveGot=void 0,this.itemData=void 0,this.reward=void 0,this.completeCount=void 0,this.curProgress=0,this.condition=0,this.endTime=0,this.coinType=a.NONE,this.taskKind=s.NONE,this.svrID=0,this.canReceive=!1,this.haveGot=!1,this.itemData=null}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/TaskGiftBox.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./EventDefine.ts","./CustomEventMgr.ts"],(function(t){"use strict";var e,i,a,c,s,o,n,l,r;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,c=t.Node,s=t._decorator,o=t.Component},function(t){n=t.ELOCK_STATU},function(t){l=t.EventType},function(t){r=t.CustomEventMgr}],execute:function(){var f,u,p,h,b,y,v,E,m,x,d,g,G,k,B,T,w;a._RF.push({},"b698c8diW9JSoh6pJcTcoMd","TaskGiftBox",void 0);const{ccclass:N,property:z}=s;t("TaskGiftBox",(f=N("TaskGiftBox"),u=z({displayName:"选择标记",type:c}),p=z({displayName:"锁",type:c}),h=z({displayName:"已领取的背景节点",type:c}),b=z({displayName:"未领取的背景节点",type:c}),y=z({displayName:"盒子动画",type:c}),v=z({displayName:"选择标记动画盒子",type:c}),E=z({displayName:"光效",type:c}),f((d=e((x=class extends o{constructor(...t){super(...t),i(this,"outRotateMark",d,this),i(this,"lock",g,this),i(this,"plateGet",G,this),i(this,"plateUnGet",k,this),i(this,"boxEffect",B,this),i(this,"staticBox",T,this),i(this,"lightEffect",w,this),this.isSelect=!1}onLoad(){r.on(l.Close_Effect,this.closeEffct,this)}resetGiftBox(){this.boxEffect.active=!1}setSelect(t){this.isSelect=t,this.outRotateMark.active=t}setRewardImg(t){switch(this.lock.active=!1,t){case n.LOCK:this.lock.active=!0,this.plateUnGet.active=!0,this.plateGet.active=!1,this.boxEffect.active=!1,this.staticBox.active=!0,this.lightEffect.active=!1;break;case n.GIFT:this.boxEffect.active=!0,this.staticBox.active=!1,this.lightEffect.active=!0,this.plateUnGet.active=!0,this.plateGet.active=!1;break;case n.OPENED_GIFT:this.plateUnGet.active=!1,this.plateGet.active=!0}}closeEffct(){this.boxEffect.active=!1,this.staticBox.active=!0}onDisable(){r.off(l.Close_Effect,this.closeEffct,this)}}).prototype,"outRotateMark",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(x.prototype,"lock",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(x.prototype,"plateGet",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(x.prototype,"plateUnGet",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(x.prototype,"boxEffect",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(x.prototype,"staticBox",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(x.prototype,"lightEffect",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=x))||m));a._RF.pop()}}}));

System.register("chunks:///_virtual/TaskHelpInfo.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./LanguageLabel.ts","./TaskModel.ts","./EnumDefine.ts","./GameUtil.ts","./UIManager.ts","./UIDefined.ts"],(function(e){"use strict";var t,a,n,i,s,o,r,l,c,p,u,f,m,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){n=e.cclegacy,i=e.Label,s=e.Node,o=e._decorator,r=e.Component},function(e){l=e.Global},function(e){c=e.LanguageLabel},function(e){p=e.TaskModel},function(e){u=e.TaskKind},function(e){f=e.GameUtils},function(e){m=e.UIManager},function(e){b=e.UIID}],execute:function(){var g,D,T,d,k,I,y;n._RF.push({},"3c4c7pk+ORCb5COVnIjc5dV","TaskHelpInfo",void 0);const{ccclass:h,property:L}=o;e("TaskHelpInfo",(g=h("TaskHelpInfo"),D=L({displayName:"label arr",type:[i]}),T=L({displayName:"back btn",type:s}),g((I=t((k=class extends r{constructor(...e){super(...e),a(this,"labelArr",I,this),a(this,"backBtn",y,this)}start(){this.bindEvents(),this.initInfo()}onLoad(){}onDestroy(){}enable(){}bindEvents(){this.backBtn.on(s.EventType.TOUCH_END,(()=>{m.getInstance().getUI(b.UITask).taskHelpInfoClose()}),this)}initInfo(){let e=[160023,160024,160025,160026,160027,160028,160029,160030],t=l.gameCtrl.getModel(p);for(let a=0;a<e.length;a++){let n=e[a];this.labelArr[a].node.getComponent(c).dataID=n;let i=[];if(1==a){let e=u.DAILY,a=t.getTaskData(e);i=[t.formatRemainTime(a.progressData.taskDuration),f.formatDateByTime(1e3*a.progressData.lastReceiveTime)]}else if(2==a){let e=u.WEEKLY,a=t.getTaskData(e);i=[t.formatRemainTime(a.progressData.taskDuration),f.formatDateByTime(1e3*a.progressData.lastReceiveTime)]}else if(3==a){let e=u.MONTHLY,a=t.getTaskData(e);i=[t.formatRemainTime(a.progressData.taskDuration),f.formatDateByTime(1e3*a.progressData.lastReceiveTime)]}this.labelArr[a].node.getComponent(c).setParams(i),this.labelArr[a].node.getComponent(c).updateLabel()}}}).prototype,"labelArr",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y=t(k.prototype,"backBtn",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=k))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/TaskItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Language.ts","./TaskModel.ts","./Global.ts","./EnumDefine.ts","./StringUtil.ts","./GameUtil.ts","./UIManager.ts","./UIDefined.ts","./CustomEventMgr.ts","./EventDefine.ts"],(function(t){"use strict";var e,i,a,s,n,r,l,o,c,h,g,b,u,p,d,m,f,y,L,T,C,E;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,s=t.Label,n=t.Node,r=t.ProgressBar,l=t.SpriteFrame,o=t._decorator,c=t.Component,h=t.Color,g=t.Sprite,b=t.isValid},function(t){u=t.Language},function(t){p=t.TaskModel},function(t){d=t.Global},function(t){m=t.TaskType},function(t){f=t.default},function(t){y=t.GameUtils},function(t){L=t.UIManager},function(t){T=t.UIID},function(t){C=t.CustomEventMgr},function(t){E=t.EventType}],execute:function(){var v,k,B,I,w,G,N,S,M,z,_,D,U,F,$,H,O,P,R,A,W,X,x,K,j,V,Z,q,J,Q,Y,tt,et,it,at,st,nt;a._RF.push({},"9234aoekGFFiZ89OBMhDXKa","TaskItem",void 0);const{ccclass:rt,property:lt}=o;t("TaskItem",(v=rt("TaskItem"),k=lt({displayName:"name label",type:s}),B=lt({displayName:"get label",type:s}),I=lt({displayName:"progress label",type:s}),w=lt({displayName:"btn get label",type:s}),G=lt({displayName:"btn goto label",type:s}),N=lt({displayName:"doing label",type:s}),S=lt({displayName:"complete label",type:s}),M=lt({displayName:"coin img",type:n}),z=lt({displayName:"progressBar",type:r}),_=lt({displayName:"get btn",type:n}),D=lt({displayName:"goto btn",type:n}),U=lt({displayName:"btnDisable",type:n}),F=lt({displayName:"点击按钮",type:n}),$=lt({displayName:"宝石特效",type:n}),H=lt({displayName:"总进度label ",type:s}),O=lt({displayName:"进度条底框",type:l}),P=lt({displayName:"可领取按钮光效",type:n}),v((W=e((A=class extends c{constructor(...t){super(...t),i(this,"nameLabel",W,this),i(this,"getLabel",X,this),i(this,"progressLabel",x,this),i(this,"btnGetLabel",K,this),i(this,"btnGotoLabel",j,this),i(this,"doingLabel",V,this),i(this,"completeLabel",Z,this),i(this,"coinImg",q,this),i(this,"progressBar",J,this),i(this,"getBtn",Q,this),i(this,"gotoBtn",Y,this),i(this,"btnDisable",tt,this),i(this,"btnClick",et,this),i(this,"emgEffect",it,this),i(this,"allprogress",at,this),i(this,"progressBg",st,this),i(this,"getEffect",nt,this),this.data=null}start(){this.bindEvents(),C.on(E.Close_Effect_Task,this.closeEffect,this)}bindEvents(){this.btnClick.on(n.EventType.TOUCH_END,(()=>{L.getInstance().getUI(T.UITask).onClickGet(this.data.taskType,this.data.rewardType)}),this)}gotoBtnClick(){L.getInstance().getUI(T.UITask).onClickGoTo(this.data.tags),this.data.taskType==m.FISHWAGER?d.gameCtrl.mainUITs.selectKind("Fish",!0):d.gameCtrl.mainUITs.selectKind("Slot",!0)}refreshData(t){this.data=t,this.nameLabel.string=this.data.name;let e=this.data.curClaim;e>this.data.claimTimes&&(e=this.data.claimTimes),this.getLabel.string=`(${e}/${this.data.claimTimes})`,e=this.data.curProgress,(e>this.data.condition||this.data.curClaim>=this.data.claimTimes)&&(e=this.data.condition);let i=`${e}/${this.data.condition}`;if(this.data.taskType==m.ONLINE){i=`${d.gameCtrl.getModel(p).formatMinute(e)}/${d.gameCtrl.getModel(p).formatMinute(this.data.condition)}`}else if(this.data.taskType==m.FISHWAGER||this.data.taskType==m.SLOTWAGER){i=`${f.formatMoney(y.exact(e).toString())}/${f.formatMoney(y.exact(this.data.condition).toString())}`}this.progressLabel.string=`(${t.curClaim}/${t.claimTimes})`,this.allprogress.string=i,this.btnGetLabel.string=u.getString(160004),this.btnGotoLabel.string=u.getString(160006),this.doingLabel.string=u.getString(160031),this.completeLabel.string=u.getString(160005),this.data.curProgress,this.data.condition,this.data.curClaim,this.data.claimTimes,this.refreshCoin();let a=0,s=!1;0!=this.data.condition&&(a=this.data.curProgress/this.data.condition),this.data.curClaim>=this.data.claimTimes&&(a=1,s=!0),this.progressBar.progress=a,this._changeBtnState(a,s),this.unschedule(this._addTime),this.data.taskType==m.ONLINE&&a<1&&(this.schedule(this._addTime,1),this._addTime())}refreshCoin(){let t=this.data.rewardType,e=this.coinImg.children;for(let i=0;i<e.length-1;i++)e[i].name==t.toString()?e[i].active=!0:e[i].active=!1}setLabelColor(t,e){let i="#ffffff",a=1;e?(i="#ffffff",a=.5):t>=1&&(i="#630000",a=1);let s=[this.doingLabel,this.completeLabel,this.getLabel,this.btnGetLabel,this.nameLabel,this.progressLabel];for(let t=0;t<s.length;t++){let e=s[t],n=(new h).fromHEX(i);n.a=255*a,e.color=n}}_changeBtnState(t,e){if(this.getBtn.active=!1,this.btnGetLabel.node.active=!1,this.gotoBtn.active=!1,this.btnDisable.active=!1,this.btnGotoLabel.node.active=!1,this.doingLabel.node.active=!1,this.completeLabel.node.active=!1,e){this.btnDisable.active=!0,this.completeLabel.node.active=!0;let t="#ffb1b1",e=(new h).fromHEX(t);this.nameLabel.color=e,this.progressLabel.color=e,this.progressBar.getComponent(g).spriteFrame=this.progressBg[2]}else if(t>=1){this.getBtn.active=!0,this.scheduleOnce((()=>{b(this.getEffect)&&(this.getEffect.active=!0)}),.5),this.btnGetLabel.node.active=!0,this.emgEffect.active=!0;let t="#8e1500",e=(new h).fromHEX(t);this.nameLabel.color=e,this.progressLabel.color=e,this.progressBar.getComponent(g).spriteFrame=this.progressBg[1]}else{this.emgEffect.active=!1,this.gotoBtn.active=!0;let t="#00277d",e=(new h).fromHEX(t);this.nameLabel.color=e,this.progressLabel.color=e,this.progressBar.getComponent(g).spriteFrame=this.progressBg[0],this.data.taskType==m.FISHWAGER||this.data.taskType==m.SLOTWAGER?this.btnGotoLabel.node.active=!0:this.doingLabel.node.active=!0}}_addTime(){let t=d.svrTimeMS,e=d.gameCtrl.getModel(p).taskSyncTime,i=this.data.curProgress+(t-e)/1e3;(i>this.data.condition||this.data.curClaim>=this.data.claimTimes)&&(i=this.data.condition);let a=d.gameCtrl.getModel(p).formatMinute(i),s=d.gameCtrl.getModel(p).formatMinute(this.data.condition);this.allprogress.string=`${a}/${s}`;let n=0,r=!1;0!=this.data.condition&&(n=i/this.data.condition),this.data.curClaim>=this.data.claimTimes&&(n=1,r=!0),this.progressBar.progress=n,this._changeBtnState(n,r),this.data.condition,this.data.curClaim,this.data.claimTimes,n>=1&&this.unschedule(this._addTime)}closeEffect(){this.getEffect.active=!1}onDestroy(){C.off(E.Close_Effect_Task,this.closeEffect,this)}}).prototype,"nameLabel",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=e(A.prototype,"getLabel",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(A.prototype,"progressLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(A.prototype,"btnGetLabel",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(A.prototype,"btnGotoLabel",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(A.prototype,"doingLabel",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=e(A.prototype,"completeLabel",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(A.prototype,"coinImg",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=e(A.prototype,"progressBar",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=e(A.prototype,"getBtn",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=e(A.prototype,"gotoBtn",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e(A.prototype,"btnDisable",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(A.prototype,"btnClick",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(A.prototype,"emgEffect",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),at=e(A.prototype,"allprogress",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e(A.prototype,"progressBg",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),nt=e(A.prototype,"getEffect",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=A))||R));a._RF.pop()}}}));

System.register("chunks:///_virtual/TaskModel.ts",["cc","./EnumDefine.ts","./EventDefine.ts","./GameUtil.ts","./StringUtil.ts","./Controller.ts","./Global.ts","./CustomEventMgr.ts","./Language.ts","./MsgHandler.ts","./TaskData.ts","./User.ts"],(function(t){"use strict";var e,a,s,r,i,n,o,c,l,u,_,d,k,T,p,m,D,h,g,f;return{setters:[function(t){e=t.cclegacy,a=t._decorator},function(t){s=t.TaskKind,r=t.TaskRewardType,i=t.TaskType},function(t){n=t.TaskEvent},function(t){o=t.GameUtils},function(t){c=t.default},function(t){l=t.Controller},function(t){u=t.Global},function(t){_=t.CustomEventMgr},function(t){d=t.default},function(t){k=t.default},function(t){T=t.TaskData,p=t.TaskItemData,m=t.QuickTaskData,D=t.TaskIconData,h=t.TaskRecordData,g=t.TaskStateData},function(t){f=t.User}],execute:function(){var w;e._RF.push({},"1beff8Dzi5LuZdQlbUtHfJi","TaskModel",void 0);const{ccclass:L}=a;t("TaskModel",L("TaskModel")(w=class t extends l{get taskSyncTime(){return this._taskSyncTime}get quickTaskData(){return this._quickTaskData}constructor(){super(),this._taskList=[],this._recordList=[],this._taskSyncTime=0,this._taskIconData=null,this._quickTaskData=null}c2sGetTaskData(t=!1,e=!0){k.Instance().c2sGetTaskData(t,e)}c2sGetTaskReward(t,e,a,s=1){k.Instance().c2sGetTaskReward(t,e,a,s)}c2sGetTaskState(){1==f.instance.is_trial||f.instance.isGuest||k.Instance().c2sGetTaskState()}c2sGetTaskRecord(t,e=0,a=50){k.Instance().c2sGetTaskRecord(t,e,a)}onGetTaskData(t){this._taskSyncTime=u.svrTimeMS,this._taskList=[];let e=["day","week","month"],a=[s.DAILY,s.WEEKLY,s.MONTHLY];this._quickTaskData=null;for(let s=0;s<e.length;s++){let r=t[e[s]];if(!r)continue;let i=this._parseItemData(r,a[s]);if(!i)continue;this._taskList.push(i);let n=this.parseQuickTaskData(r,a[s]);this._quickTaskData||(this._quickTaskData=n)}_.fire(n.GET_TASK_DATA)}onGetTaskCoin(t){let e={taskKind:t.type,coinType:t.action_type,count:t.receive_num};_.fire(n.GET_TASK_COIN,e)}onGetTaskState(t){this._parseStateData(t.data),_.fire(n.GET_TASK_STATE)}onGetTaskRecord(t){let e={hasInfo:this._parseRecordData(t)};_.fire(n.GET_TASK_RECORD,e)}getTaskRecordData(t){if(null==this._recordList||0==this._recordList.length)return null;for(let e of this._recordList)if(e.taskKind==t)return e;return null}clearTaskRecordData(){this._recordList=[]}getRecordMaxPage(t){let e=0,a=this.getTaskRecordData(t);return a&&0!=a.totalData&&0!=a.countPerPage?(e=o.ceil(a.totalData/a.countPerPage),e):e}getTaskData(t){if(null==this._taskList)return null;for(let e of this._taskList)if(e.taskKind==t)return e;return null}getTaskState(){return this._taskIconData}hasTaskData(){if(!this._taskList)return!1;for(let t of this._taskList)if(1==t.isOpen)return!0;return!1}_parseItemData(t,e){let a=new T;a.svrID=t.id,a.taskKind=e,a.isOpen=0==t.is_stop,a.needShowTip=1==t.need_alert,a.progressData.startTime=t.start_time,a.progressData.endTime=t.end_time,a.progressData.taskDuration=t.end_time-t.start_time,a.progressData.curProgress=t.receive_coins,a.progressData.condition=t.need_coins,a.progressData.reward=t.total_reward,a.progressData.shareCount=t.complete_people,a.progressData.lastReceiveTime=t.last_receive_time;let i=t.last_reward;if(i){a.progressData.svrID=i.id;let t=1==i.can_receive,e=1==i.is_receive;a.progressData.canReceive=t,a.progressData.haveGot=e,t&&!e&&(a.progressData.endTime=i.end_time,a.progressData.reward=i.total_reward,a.progressData.shareCount=i.complete_people)}let n=r.NONE;switch(e){case s.DAILY:n=r.COPPER;break;case s.WEEKLY:n=r.SLIVER;break;case s.MONTHLY:n=r.GOLD}a.progressData.coinType=n;let o=t.mission;if(o&&o instanceof Array)for(let t of o){if(0==t.status)continue;let e=new p;e.taskType=t.type,e.claimTimes=t.num,e.curClaim=t.receive_coins,e.condition=t.goal,e.curProgress=t.progress-e.curClaim*e.condition,e.rewardCount=t.coin,e.rewardType=n,e.tags=t.tags,a.itemDataList.push(e)}return a}parseQuickTaskData(e,a){let n=new m;n.curProgress=e.receive_coins,n.condition=e.need_coins,n.endTime=e.end_time;let o=r.NONE;switch(a){case s.DAILY:o=r.COPPER;break;case s.WEEKLY:o=r.SLIVER;break;case s.MONTHLY:o=r.GOLD}n.taskKind=a,n.coinType=o,n.reward=e.total_reward,n.completeCount=e.complete_people;let c=e.mission;if(c&&c instanceof Array)for(let e=c.length-1;e>=0;e--){let a=c[e],s=a.progress-a.receive_coins*a.goal;if(0==a.status)continue;if(a.receive_coins>=a.num)continue;if(a.type!=i.ONLINE&&s/a.goal<1)continue;if(a.type==i.ONLINE){let e=s+(u.svrTimeMS-u.gameCtrl.getModel(t).taskSyncTime)/1e3,r=0;if(0!=a.goal&&(r=e/a.goal),r<1)continue}let r=new p;r.taskType=a.type,r.claimTimes=a.num,r.curClaim=a.receive_coins,r.condition=a.goal,r.curProgress=s,r.rewardCount=a.coin,r.rewardType=o,r.tags=a.tags,n.itemData=r;break}let l=e.last_reward;if(l){let t=1==l.can_receive,e=1==l.is_receive;n.canReceive=t,n.haveGot=e,t&&!e&&(n.endTime=l.end_time,n.reward=l.total_reward,n.completeCount=l.complete_people)}return n.canReceive&&!n.haveGot||n.itemData&&n.curProgress<n.condition?n:null}_parseStateData(t){if(!t)return;this._taskIconData=new D,this._taskIconData.isOpen=1!=t.is_close,this._taskIconData.endTime=t.icon_close_time,this._taskIconData.startTime=t.icon_show_time,this._taskIconData.hasReward=1==t.has_reward,this._taskIconData.autoShow=1==t.show_activity,this._taskIconData.autoShowKind=t.show_activity_type;let e=[s.DAILY,s.WEEKLY,s.MONTHLY],a=["day","week","month"];for(let s=0;s<e.length;s++){let r=new g;r.taskKind=e[s];let i=`${a[s]}_switch`;r.isOpen=1==t[i],i=`${a[s]}_end_time`,r.endTime=t[i],i=`${a[s]}_reward`,r.reward=t[i],i=`${a[s]}_need_mask`,r.needMask=1==t[i],this._taskIconData.stateList.push(r)}}_parseRecordData(t){this._recordList||(this._recordList=[]);let e=t.type,a=t.issue,s=t.reward,r=t.complete,i=(t.page,t.pagenum),n=t.list,o=t.total,c=new h;c.taskKind=e,c.taskIssue=a,c.totalReward=s,c.completeCount=r,c.totalData=o,c.countPerPage=i,0!=n.length&&(c.pageList=n);let l=!1;return this._recordList.map(((e,a)=>{e.taskKind==t.type&&(this._recordList.splice(a,1,c),l=!0)})),l||this._recordList.push(c),!0}getRandomName(t=10){let e=[];for(let a=0;a<t;a++){let t=o.randomInt(65,91);o.randomInt(100)>50&&(t+=32),e.push(t)}return String.fromCharCode(...e)}formatRemainTime(t){let e=t,a=o.floor(e/3600/24);e-=3600*a*24;let s=c.formatTime(e);return a>0&&(s=d.getInstance().language.getFormatString(160014,[a,s])),s}formatMinute(t){let e=t,a=o.floor(e/60);e-=60*a;let s=o.floor(e);return s<10?`${a}:0${s}`:`${a}:${s}`}})||w);e._RF.pop()}}}));

System.register("chunks:///_virtual/TaskProgressInfo.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./GameUtil.ts","./StringUtil.ts","./Global.ts","./CustomEventMgr.ts","./TaskModel.ts","./TaskCoin.ts"],(function(e){"use strict";var t,i,n,r,s,o,l,a,u,h,c,m,p,d,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.Label,s=e.Node,o=e._decorator,l=e.Component,a=e.macro},function(e){u=e.TaskEvent},function(e){h=e.GameUtils},function(e){c=e.default},function(e){m=e.Global},function(e){p=e.CustomEventMgr},function(e){d=e.TaskModel},function(e){f=e.TaskCoin}],execute:function(){var b,g,y,C,T,w,L,k,v,I,M,A,E,P,R,N,z;n._RF.push({},"63d92mdo6VOXbn2s4eott3P","TaskProgressInfo",void 0);const{ccclass:S,property:_}=o;e("TaskProgressInfo",(b=S("TaskProgressInfo"),g=_({displayName:"reward label",type:r}),y=_({displayName:"reachAmount label",type:r}),C=_({displayName:"time label",type:r}),T=_({displayName:"rewardIcons",type:[s]}),w=_({displayName:"recordBtn",type:s}),L=_({displayName:"score info",type:s}),k=_({displayName:"coinList",type:[s]}),b((M=t((I=class extends l{constructor(...e){super(...e),i(this,"rewardLabel",M,this),i(this,"reachAmountLabel",A,this),i(this,"timeLabel",E,this),i(this,"rewardIcons",P,this),i(this,"recordBtn",R,this),i(this,"scoreInfo",N,this),this.taskKind=null,this.rewardType=null,this.curCoin=null,this.needCoin=null,this.endTime=null,this.completeCount=null,this.viewType=0,this.reward=null,this.isComplete=null,this.coinState=0,this.lockMsg=!1,this.maxnum=30,this.curnum=0,i(this,"coinList",z,this)}onLoad(){}start(){this.bindEvents()}bindEvents(){p.on(u.GET_TASK_DATA,(()=>{this.lockMsg=!0}),this)}showAppearAni(){}refreshInfo(e,t,i,n,r,s,o,l,u){this.taskKind=e,this.rewardType=t,this.curCoin=i,this.needCoin=n,this.endTime=r,this.completeCount=s,this.viewType=l,o=h.exact(o),this.reward=o,this.isComplete=this.curCoin>=this.needCoin,this.rewardLabel.string=c.formatMoney(this.reward.toString()),this.refreshRewardIcon(),this.reachAmountLabel.string=this.completeCount+"",this.schedule(this.refreshRemainTime,1,a.REPEAT_FOREVER,.01),u?this.refreshCoinProgress(2,!0):this.refreshCoinProgress(2)}refreshCoinProgress(e,t=!1){this.coinState=e,this.refreshCoin(t)}refreshCoin(e=!1){for(let e=0;e<this.coinList.length;e++){let t=this.coinList[e];this.curCoin;e<this.curCoin?t.getComponent(f).setCoinInfo(this.rewardType,this.coinState,2):t.getComponent(f).setCoinInfo(this.rewardType,1,2)}}refreshRewardIcon(){}refreshRemainTime(){let e=m.svrTimeMS/1e3,t=this.endTime-e;if(t<-2&&!this.lockMsg){return m.gameCtrl.getModel(d).c2sGetTaskData(),++this.curnum,void(this.curnum>=this.maxnum&&(this.unschedule(this.refreshRemainTime),this.curnum=0))}this.lockMsg=!1,t<0&&(t=0);let i=m.gameCtrl.getModel(d).formatRemainTime(t);this.timeLabel.string=i}getNextCoin(){for(let t=0;t<this.coinList.length;t++){var e;if(1==(null==(e=this.coinList[t].getComponent(f))?void 0:e._state))return this.coinList[t]}return null}onDisable(){this.unscheduleAllCallbacks()}}).prototype,"rewardLabel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(I.prototype,"reachAmountLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(I.prototype,"timeLabel",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(I.prototype,"rewardIcons",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),R=t(I.prototype,"recordBtn",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(I.prototype,"scoreInfo",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(I.prototype,"coinList",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=I))||v));n._RF.pop()}}}));

System.register("chunks:///_virtual/TaskRecordInfo.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CustomEventMgr.ts","./Language.ts","./Global.ts","./EnumDefine.ts","./TaskModel.ts","./StringUtil.ts","./EventDefine.ts","./UIDefined.ts","./UIManager.ts"],(function(e){"use strict";var t,r,i,n,a,o,l,s,c,u,d,h,g,p,m,f,b,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Node,a=e.Label,o=e.ScrollView,l=e._decorator,s=e.Component,c=e.instantiate},function(e){u=e.CustomEventMgr},function(e){d=e.Language},function(e){h=e.Global},function(e){g=e.TaskKind},function(e){p=e.TaskModel},function(e){m=e.default},function(e){f=e.TaskEvent},function(e){b=e.UIID},function(e){y=e.UIManager}],execute:function(){var T,I,R,L,_,k,v,w,C,D,N,E,M,S,z,G;i._RF.push({},"54dace52LhIRZEGcY+CwC3z","TaskRecordInfo",void 0);const{ccclass:A,property:K}=l;e("default",(T=K({displayName:"返回按钮",type:n}),I=K({displayName:"事件label",type:a}),R=K({displayName:"总额label",type:a}),L=K({displayName:"完成label",type:a}),_=K({displayName:"scrollView",type:o}),k=K({displayName:"record item temp",type:n}),v=K({displayName:"nodataLabel",type:a}),A((D=t((C=class extends s{constructor(...e){super(...e),r(this,"backBtn",D,this),r(this,"issueLabel",N,this),r(this,"totalRewardLabel",E,this),r(this,"completeLabel",M,this),r(this,"scrollView",S,this),r(this,"recordItemTemp",z,this),r(this,"nodataLabel",G,this),this.recordItemArr=[],this._curTaskKind=g.NONE,this._maxPage=0,this._curPage=0}initPanel(e){this._curTaskKind=e,h.gameCtrl.getModel(p).c2sGetTaskRecord(this._curTaskKind,0,2e3)}onLoad(){u.on(f.GET_TASK_RECORD,this._onGetRecordData,this),this.bindEvents()}onDestroy(){u.off(f.GET_TASK_RECORD,this._onGetRecordData,this)}start(){}bindEvents(){this.backBtn.on(n.EventType.TOUCH_END,(()=>{y.getInstance().getUI(b.UITask).taskRecordInfoClose()}),this)}_onGetRecordData(e){if(this._refreshTitleInfo(),e){let e=h.gameCtrl.getModel(p).getTaskRecordData(this._curTaskKind),t=[];if(e){if(0==e.pageList.length)return this.clearRecord(),void(this.nodataLabel.node.active=!0);t=e.pageList;let r=[];for(let e=0,i=t.length;e<i;e++){let i="",n="";1==t[e].is_receive?n=m.formatMoney(t[e].receive_cash):(i=d.getString(160040),n=i);let a={order:e+1,account:t[e].account,gain:n};r.push(a)}this.clearRecord(),this.refreshRecord(r)}}}_refreshTitleInfo(){let e=h.gameCtrl.getModel(p).getTaskRecordData(this._curTaskKind),t=d.getString(160032),r=d.getString(160033),i=d.getString(160034);e?(t=t+"："+e.taskIssue,r=r+"："+m.formatMoney(e.totalReward),i=i+"："+e.completeCount):(t+="：- -",r+="：- -",i+="：- -"),this.issueLabel.string=t,this.totalRewardLabel.string=r,this.completeLabel.string=i}clearRecord(){for(let e=0;e<this.recordItemArr.length;e++)this.recordItemArr[e].active=!1}refreshRecord(e){0!=e.length?this.nodataLabel.node.active=!1:this.nodataLabel.node.active=!0;for(let t=0;t<e.length;t++){let r=e[t],i=null;i=this.recordItemArr.length>t?this.recordItemArr[t]:this.getNewRecordItem(),i.active=!0,i.getChildByName("id").getComponent(a).string=r.order.toString(),i.getChildByName("account").getComponent(a).string=r.account,i.getChildByName("amount").getComponent(a).string=r.gain}this.scrollView.scrollToTop(.1)}getNewRecordItem(){let e=c(this.recordItemTemp);return e.parent=this.recordItemTemp.parent,this.recordItemArr.push(e),e}}).prototype,"backBtn",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(C.prototype,"issueLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(C.prototype,"totalRewardLabel",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(C.prototype,"completeLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(C.prototype,"scrollView",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(C.prototype,"recordItemTemp",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(C.prototype,"nodataLabel",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=C))||w));i._RF.pop()}}}));

System.register("chunks:///_virtual/TaskRewardInfo.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageSprite.ts","./EnumDefine.ts","./EventDefine.ts","./ResDefine.ts","./GameUtil.ts","./LogUtil.ts","./StringUtil.ts","./UIDefined.ts","./UIManager.ts","./Global.ts","./AudioManager.ts","./CustomEventMgr.ts","./Language.ts","./MsgHandler.ts","./TaskModel.ts"],(function(e){"use strict";var t,n,i,a,r,s,o,l,u,c,p,h,d,g,f,m,b,y,k,L,T,I,w,N,S;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.Node,r=e.Label,s=e.SpriteFrame,o=e.sp,l=e._decorator,u=e.Component},function(e){c=e.LanguageSprite},function(e){p=e.TaskKind,h=e.ELanguage_Type},function(e){d=e.TaskEvent},function(e){g=e.SoundDefine},function(e){f=e.GameUtils},function(e){m=e.default},function(e){b=e.default},function(e){y=e.UIID},function(e){k=e.UIManager},function(e){L=e.Global},function(e){T=e.default},function(e){I=e.CustomEventMgr},function(e){w=e.Language},function(e){N=e.default},function(e){S=e.TaskModel}],execute:function(){var _,O,E,C,G,D,B,v,x,K,U,A,M,z,R,H,Y,F,P,j,J,W,Q,X,q;i._RF.push({},"6dc5b8KXbpLQajyG6KuGen3","TaskRewardInfo",void 0);const{ccclass:V,property:Z}=l;e("TaskRewardInfo",(_=V("TaskRewardInfo"),O=Z({displayName:"task help btn",type:a}),E=Z({displayName:"reward get btn",type:a}),C=Z({displayName:"hand",type:a}),G=Z({displayName:"reward label",type:r}),D=Z({displayName:"reachAmount dec label",type:r}),B=Z({displayName:"help",type:a}),v=Z({displayName:"boxSprArr",type:[s]}),x=Z({displayName:"record",type:a}),K=Z({displayName:"box",type:o.Skeleton}),U=Z({displayName:"出场动画",type:a}),A=Z({displayName:"title",type:a}),_((R=t((z=class extends u{constructor(...e){super(...e),n(this,"taskHelpBtn",R,this),n(this,"rewardGetBtn",H,this),n(this,"hand",Y,this),n(this,"rewardLabel",F,this),n(this,"reachAmountDecLabel",P,this),n(this,"helpbtn",j,this),n(this,"boxSprArr",J,this),n(this,"recordBtn",W,this),n(this,"treasureBoxOpen",Q,this),n(this,"chuchang",X,this),n(this,"title",q,this),this.svrID=-1,this.taskKind=p.NONE,this._timerKey=0,this.money=0,this.isGet=!0,this.aniNameList={T:["01-idle-L","02-open-L","03-after-L"],Y:["01-idle-L","02-open-L","03-after-L"],J:["01-idle-L","02-open-L","03-after-L"]}}start(){this.bindEvents()}bindEvents(){this.rewardGetBtn.on(a.EventType.TOUCH_END,this.rewardBtnClick,this),this.recordBtn.on(a.EventType.TOUCH_END,(()=>{k.getInstance().getUI(y.UITask).showRecord()}),this),this.helpbtn.on(a.EventType.TOUCH_END,(()=>{k.getInstance().getUI(y.UITask).showTaskHelpInfo()}),this)}onLoad(){}onDestroy(){I.off(d.GET_TASK_COIN,this._onOpenBox,this)}rewardBtnClick(){let e=L.gameCtrl.getModel(S);1!=this.isGet&&e.c2sGetTaskReward(this.svrID,this.taskKind,0)}refreshInfo(e,t,n,i){let a=[h.CN,h.EN];this.title.getComponent(c).setLanguageTypeArr(a);let r=k.getInstance().getUI(y.UITask)._curSelectKind;switch(r==p.DAILY||r==p.NONE?this.title.getComponent(c).imageStr=w.getSource("LOGO2"):r==p.WEEKLY?this.title.getComponent(c).imageStr=w.getSource("LOGO3"):r==p.MONTHLY&&(this.title.getComponent(c).imageStr=w.getSource("LOGO4")),I.on(d.GET_TASK_COIN,this._onOpenBox,this),this.isGet=!1,this.svrID=e,this.taskKind=t,t){case p.DAILY:this.treasureBoxOpen.getComponent(o.Skeleton).setSkin("chest_green1");break;case p.WEEKLY:this.treasureBoxOpen.getComponent(o.Skeleton).setSkin("chest_blue1");break;case p.MONTHLY:this.treasureBoxOpen.getComponent(o.Skeleton).setSkin("chest_pink1")}n=f.exact(n);let s=b.formatMoney(n.toString());this.rewardLabel.string=s,this.reachAmountDecLabel.string=i+"",this.hand.active=!0,this._playKeelNormal(this.taskKind),this.money=Number(n/i)}_playKeelNormal(e){let t="";1==e?t="T":2==e?t="Y":3==e&&(t="J");this.aniNameList[t]}hide(){if(I.off(d.GET_TASK_COIN,this._onOpenBox,this),0!=this._timerKey){L.gameCtrl.getModel(S).c2sGetTaskData(),m.debug("TaskRewardInfo"),this._timerKey=0}}_onOpenBox(e){if(e&&0!=e.coinType)return;let t=L.gameCtrl.getModel(S);this.hand.active=!1,this.treasureBoxOpen.getComponent(o.Skeleton).setAnimation(0,"dakai",!1),this.scheduleOnce((()=>{k.getInstance().open(y.UIGetReward).then((e=>{e.initGoldPanel(b.formatMoney(this.money)+"",t.c2sGetTaskData)}))}),1.5),T.Instance().playEffect(g.sound_task_box_open),this.isGet=!0,this.hand.active=!1,N.Instance().c2sgetmoney()}onEnable(){this.chuchang.getComponent(o.Skeleton).setAnimation(0,"chuchang2",!1),this.treasureBoxOpen.getComponent(o.Skeleton).setAnimation(0,"daidakai",!0)}}).prototype,"taskHelpBtn",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(z.prototype,"rewardGetBtn",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=t(z.prototype,"hand",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(z.prototype,"rewardLabel",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(z.prototype,"reachAmountDecLabel",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(z.prototype,"helpbtn",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=t(z.prototype,"boxSprArr",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),W=t(z.prototype,"recordBtn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=t(z.prototype,"treasureBoxOpen",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=t(z.prototype,"chuchang",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(z.prototype,"title",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=z))||M));i._RF.pop()}}}));

System.register("chunks:///_virtual/TaskWaitingInfo.ts",["./rollupPluginModLoBabelHelpers.js","cc","./TaskCoin.ts","./EnumDefine.ts","./GameUtil.ts","./StringUtil.ts","./Global.ts","./Language.ts","./TaskModel.ts","./LanguageSprite.ts","./LogUtil.ts","./UIManager.ts","./UIDefined.ts"],(function(e){"use strict";var t,i,n,s,r,o,a,l,c,h,u,p,d,g,m,f,b,y,T,C;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Label,r=e.Node,o=e._decorator,a=e.Component,l=e.sp},function(e){c=e.TaskCoin},function(e){h=e.TaskKind,u=e.ELanguage_Type},function(e){p=e.GameUtils},function(e){d=e.default},function(e){g=e.Global},function(e){m=e.Language},function(e){f=e.TaskModel},function(e){b=e.LanguageSprite},function(e){y=e.default},function(e){T=e.UIManager},function(e){C=e.UIID}],execute:function(){var I,k,w,L,N,S,v,U,E,B,D,O,_,z,M,R,H,A,G,K,W,Y,P;n._RF.push({},"43c4emEVSBJNK4/v1J02RUd","TaskWaitingInfo",void 0);const{ccclass:x,property:F}=o;e("TaskWaitingInfo",(I=x("TaskWaitingInfo"),k=F({displayName:"reward label",type:s}),w=F({displayName:"closeBtn",type:r}),L=F({displayName:"reachAmount label",type:s}),N=F({displayName:"time label",type:s}),S=F({displayName:"recordBtn",type:r}),v=F({displayName:"task help btn",type:r}),U=F({displayName:"rewardIcons",type:r}),E=F({displayName:"coinList",type:[r]}),B=F({displayName:"title",type:r}),D=F({displayName:"出场动画",type:r}),I((z=t((_=class extends a{constructor(...e){super(...e),i(this,"rewardLabel",z,this),i(this,"closeBtn",M,this),i(this,"reachAmountLabel",R,this),i(this,"timeLabel",H,this),i(this,"recordBtn",A,this),i(this,"taskHelpBtn",G,this),i(this,"rewardIcons",K,this),i(this,"coinList",W,this),i(this,"titleNode",Y,this),i(this,"chuchang",P,this),this.taskKind=void 0,this.rewardType=void 0,this.curCoin=void 0,this.needCoin=void 0,this.endTime=void 0,this.completeCount=void 0,this.viewType=0,this.reward=void 0,this.isComplete=void 0,this.coinState=0}start(){this.bindEvents()}bindEvents(){this.recordBtn.on(r.EventType.TOUCH_END,(()=>{T.getInstance().getUI(C.UITask).showRecord()})),this.taskHelpBtn.on(r.EventType.TOUCH_END,(()=>{T.getInstance().getUI(C.UITask).showTaskHelpInfo()})),this.closeBtn.on(r.EventType.TOUCH_END,(()=>{T.getInstance().getUI(C.UITask).close()}))}refreshInfo(e,t,i,n,s,r,o,a,l){this.taskKind=e,this.rewardType=t,this.curCoin=i,this.needCoin=n,this.endTime=s,this.completeCount=r,this.viewType=a,o=p.exact(o),this.reward=o,this.isComplete=this.curCoin>=this.needCoin;let c=d.formatMoney(this.reward);this.rewardLabel.string=c,this.refreshRewardIcon(),this.isComplete,this.reachAmountLabel.string=this.completeCount.toString(),this.unschedule(this.refreshRemainTime),this.schedule(this.refreshRemainTime,.2),this.refreshRemainTime(),this.refreshCoinProgress(2),this.refreshTitle()}refreshCoinProgress(e,t=!1){this.coinState=e,t||this.refreshCoin()}refreshCoin(){for(let e=0;e<this.coinList.length;e++){let t=this.coinList[e];e<this.curCoin?t.getComponent(c).setCoinInfo(this.rewardType,this.coinState,2):t.getComponent(c).setCoinInfo(this.rewardType,1,2)}}refreshRewardIcon(){switch(this.taskKind){case h.DAILY:this.rewardIcons.getComponent(l.Skeleton).setSkin("chest_green1");break;case h.WEEKLY:this.rewardIcons.getComponent(l.Skeleton).setSkin("chest_blue1");break;case h.MONTHLY:this.rewardIcons.getComponent(l.Skeleton).setSkin("chest_pink1")}}refreshRemainTime(){let e=g.svrTimeMS/1e3,t=this.endTime-e;if(t<-2){g.gameCtrl.getModel(f).c2sGetTaskData(),y.debug("TaskWattingInfo")}t<0&&(t=0);let i=g.gameCtrl.getModel(f).formatRemainTime(t);this.timeLabel.string=i}refreshTitle(){let e=[u.CN,u.EN];this.titleNode.getComponent(b).setLanguageTypeArr(e);let t=T.getInstance().getUI(C.UITask)._curSelectKind;t==h.DAILY||t==h.NONE?this.titleNode.getComponent(b).imageStr=m.getSource("LOGO2"):t==h.WEEKLY?this.titleNode.getComponent(b).imageStr=m.getSource("LOGO3"):t==h.MONTHLY&&(this.titleNode.getComponent(b).imageStr=m.getSource("LOGO4"))}onEnable(){this.chuchang.getComponent(l.Skeleton).setAnimation(0,"chuchang2",!1)}}).prototype,"rewardLabel",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(_.prototype,"closeBtn",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(_.prototype,"reachAmountLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(_.prototype,"timeLabel",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(_.prototype,"recordBtn",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(_.prototype,"taskHelpBtn",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=t(_.prototype,"rewardIcons",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=t(_.prototype,"coinList",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Y=t(_.prototype,"titleNode",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(_.prototype,"chuchang",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=_))||O));n._RF.pop()}}}));

System.register("chunks:///_virtual/TencentSocket.ts",["cc","./SocketBase.ts"],(function(t){"use strict";var e,s,n;return{setters:[function(t){e=t.cclegacy},function(e){s=e.SocketBase,n=e.SocketEvent,t("SocketEvent",e.SocketEvent)}],execute:function(){var o;t("TencentSocketState",void 0),e._RF.push({},"69670ENbGdJ4o5G0FfEFVZ2","TencentSocket",void 0),function(t){t.Init="Init",t.Connected="Connected",t.Closed="Closed",t.Error="Error"}(o||(o=t("TencentSocketState",{})));t("TencentSocket",class extends s{get state(){return this._state}constructor(t){super(t),this._socketInstance=null,this._state=null,this._state=o.Init}connect(){this._socketInstance=qq.connectSocket({url:this._url,header:{"content-type":"application/json"}}),this._socketInstance.onOpen(this._onOpen.bind(this)),this._socketInstance.onMessage(this._onMessage.bind(this)),this._socketInstance.onClose(this._onClose.bind(this)),this._socketInstance.onError(this._onError.bind(this))}send(t){this._socketInstance.send({data:t})}close(){this._state=o.Closed,this._socketInstance.close()}getState(){return this._state}_onOpen(t){this._state=o.Connected,this.dispatch(n.Open,t)}_onMessage(t){this.dispatch(n.Message,t.data)}_onClose(){Log.w(`Socket Close, ${this}`),this._state=o.Closed,this.dispatch(n.Close)}_onError(t){Log.w(`Socket Error, reason: ${t.errMsg}, ${this}`),this._state=o.Error,this.dispatch(n.Error,t)}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/TestScene.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIManager.ts"],(function(e){"use strict";var t,r,n,i,a,o,s,c,u,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){n=e.cclegacy,i=e.Prefab,a=e.Button,o=e._decorator,s=e.Component,c=e.instantiate,u=e.director},function(e){l=e.UIManager}],execute:function(){var p,d,f,y,b,h,g;n._RF.push({},"5cefe3AjNpKmYv6R5/QI1sk","TestScene",void 0);const{ccclass:L,property:m}=o;e("TestScene",(p=L("TestScene"),d=m(i),f=m(a),p((h=t((b=class extends s{constructor(...e){super(...e),r(this,"uiLayer",h,this),r(this,"btn",g,this)}addView(e){throw new Error("Method not implemented.")}onLoad(){this.addUILayer()}addUILayer(){if(!l.getInstance().uiLayer){let e=c(this.uiLayer);u.addPersistRootNode(e)}}start(){}update(e){}}).prototype,"uiLayer",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(b.prototype,"btn",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=b))||y));n._RF.pop()}}}));

System.register("chunks:///_virtual/TimeUtil.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"c59f8Wdky1FnZvocsiDSDAa","TimeUtil",void 0);class r{static getCurMilliTime(){return(new Date).getTime()}static getCurSecondTime(t=!0){let e=(new Date).getTime()/1e3;return t?Math.floor(e):e}static secondTimeStr(t){let e="";if(t<=0)return"00:00:00";let r=Math.floor(t/3600),n=Math.floor(t/60%60),i=Math.floor(t%60);return e=r<10?"0"+r+":":r+":",n<10&&(e+="0"),e+=n+":",i<10&&(e+="0"),e+=i.toFixed(0),""==e?"00:00:00":e}static dateFormat(t,e="YYYY-MM-dd HH:mm:ss"){let r,n=new Date(1e3*t);const i={"Y+":n.getFullYear().toString(),"M+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"H+":n.getHours().toString(),"m+":n.getMinutes().toString(),"s+":n.getSeconds().toString(),"q+":Math.floor((n.getMonth()+3)/3).toString(),S:n.getMilliseconds().toString()};for(let t in i)r=new RegExp("("+t+")").exec(e),r&&(e=e.replace(r[1],1==r[1].length?i[t]:i[t].padStart(r[1].length,"0")));return e}static formatDate(t){return this.timeStamp2String(t.getTime(),"yyyy-MM-dd")}static timeStamp2String(t,e="yyyy/MM/dd hh:mm:ss.SSS"){let r=new Date(t),n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds(),"q+":Math.floor((r.getMonth()+3)/3)};if(/(y+)/i.test(e)&&(e=e.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),/(S+)/.test(e)){let t=("000"+r.getMilliseconds()).substr(-3);e=e.replace(RegExp.$1,t.substr(0,RegExp.$1.length))}for(let t in n)new RegExp("("+t+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[t]:("00"+n[t]).substr((""+n[t]).length)));return e}}t("default",r),r.DAY_TIME_LEN=86400,e._RF.pop()}}}));

System.register("chunks:///_virtual/Tips.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AudioManager.ts","./ResDefine.ts"],(function(e){"use strict";var t,n,i,r,o,l,s,a,p,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,r=e.Node,o=e.Label,l=e._decorator,s=e.Component,a=e.Animation},function(e){p=e.default},function(e){u=e.SoundDefine}],execute:function(){var c,b,y,f,d,g,h,m,v;i._RF.push({},"941b24ewtZIFrZp0EWyRM2M","Tips",void 0);const{ccclass:D,property:T}=l;e("Tips",(c=D("Tips"),b=T({displayName:"内容",type:r}),y=T({displayName:"label",type:o}),f=T({displayName:"bg",type:r}),c((h=t((g=class extends s{constructor(...e){super(...e),n(this,"content",h,this),n(this,"label",m,this),n(this,"bg",v,this)}start(){var e,t;null==(e=this.content.getComponent(a))||e.play("tips_ani"),null==(t=this.content.getComponent(a))||t.on(a.EventType.FINISHED,(()=>{this.node.destroy()}))}initTips(e){this.label.string=e,p.Instance().playEffect(u.sound_error)}}).prototype,"content",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(g.prototype,"label",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(g.prototype,"bg",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=g))||d));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIActivity.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ActivityPageItem.ts","./EventDefine.ts","./CustomEventMgr.ts","./ActivityModel.ts","./MsgHandler.ts","./Img.ts","./LogUtil.ts","./Global.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts"],(function(t){"use strict";var e,i,n,a,r,s,o,l,c,g,h,p,d,u,m,A,I,y,f,v,C;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,r=t.PageView,s=t._decorator,o=t.EventHandler,l=t.instantiate,c=t.Toggle},function(t){g=t.ActivityPageItem},function(t){h=t.ActivityEvent,p=t.CMDEvent},function(t){d=t.CustomEventMgr},function(t){u=t.ActivityModel},function(t){m=t.default},function(t){A=t.Img},function(t){I=t.default},function(t){y=t.Global},function(t){f=t.UIView},function(t){v=t.UIManager},function(t){C=t.UIID}],execute:function(){var b,E,w,T,D,U,P,V,M,N,O;n._RF.push({},"bb4e28q7zJJkoSNVo1GciBM","UIActivity",void 0);const{ccclass:_,property:H}=s;t("UIActivity",(b=_("UIActivity"),E=H({displayName:"关闭按钮",type:a}),w=H({displayName:"page item temp",type:a}),T=H({displayName:"PageView",type:r}),D=H({displayName:"page view indicator temp",type:a}),b((V=e((P=class extends f{constructor(...t){super(...t),i(this,"closeBtn",V,this),i(this,"pageItemTemp",M,this),i(this,"pageView",N,this),i(this,"indicatorTemp",O,this),this.dataArray=[],this.indicatorArr=[],this.isOpenAniEnd=!1}onLoad(){this.bindEvents()}onOpen(){d.on(h.ON_DATA_CHANGE,this.onDataChange,this),this.initPanel()}onClose(){d.off(h.ON_DATA_CHANGE,this.onDataChange,this)}onOpenAniOver(){this.isOpenAniEnd=!0,0!=this.dataArray.length&&this.refreshPageView()}initPanel(){this.isOpenAniEnd=!1,this.dataArray=[],m.Instance().c2sGetActivityAD()}bindEvents(){this.closeBtn.on(a.EventType.TOUCH_END,(()=>{this.close(),d.fire(p.CLOSE_ACTIVITY_CMD)}),this);let t=new o;t.component="UIActivity",t.handler="pageViewEventHander",t.target=this.node,this.pageView.pageEvents.push(t)}onDataChange(){this.pageView.removeAllPages(),this.removeAllInditators(),I.debug("onDataChange"),this.dataArray=y.gameCtrl.getModel(u).adArr,I.debug("onDataChange,length:"+this.dataArray.length),1==this.isOpenAniEnd&&this.refreshPageView()}refreshPageView(){for(let i=0;i<this.dataArray.length;i++){var t,e;let n=l(this.pageItemTemp);this.pageView.addPage(n),n.active=!0,null==(t=n.getComponent(g))||null==(e=t.img.getComponent(A))||e.initImg(this.dataArray[i].url),n.getComponent(g).gameId=this.dataArray[i].gameid,n.on(a.EventType.TOUCH_END,this.pageItemClick,this);let r=l(this.indicatorTemp);r.parent=this.indicatorTemp.parent,r.active=!0,this.indicatorArr.push(r)}this.selectIndicator(0)}pageItemClick(t){let e=t.getCurrentTarget().getComponent(g).gameId;I.debug("pageItemClick, gameid:"+e),y.gameCtrl.mainUITs.clickBigIcon(e),v.getInstance().closeToUI(C.UIProfile),this.close()}removeAllInditators(){for(let t=0;t<this.indicatorArr.length;t++)this.indicatorArr[t].destroy();this.indicatorArr=[]}selectIndicator(t){for(let e=0;e<this.indicatorArr.length;e++)this.indicatorArr[e].getComponent(c).isChecked=e==t}pageViewEventHander(t,e){{let e=t.getCurrentPageIndex();I.debug("curPageIndex,"+e),this.selectIndicator(e)}}}).prototype,"closeBtn",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(P.prototype,"pageItemTemp",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(P.prototype,"pageView",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(P.prototype,"indicatorTemp",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=P))||U));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIAdapter.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var i,t,n,o,r,s,c,a;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e._decorator,r=e.Component,s=e.UITransform,c=e.screen,a=e.v3}],execute:function(){var d,h,u,l,p;n._RF.push({},"bc6023Qu/5DeqBFGlQq5X2X","UIAdapter",void 0);const{ccclass:w,property:g,menu:m}=o;e("default",(d=m("ui/common/UIAdapter"),h=g({displayName:"是否是背景适配"}),w(u=d((p=i((l=class extends r{constructor(...e){super(...e),t(this,"isBackground",p,this)}onLoad(){let e=this.node.getComponent(s),i=Math.min(c.windowSize.width/e.width,c.windowSize.height/e.height),t=e.width*i,n=e.height*i;if(this.isBackground){let e=Math.max(c.windowSize.width/t,c.windowSize.height/n);this.node.scale=a(e,e,1)}else e.width*=c.windowSize.width/t,e.height*=c.windowSize.height/n}}).prototype,"isBackground",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=l))||u)||u));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIAddBank.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./UIView.ts","./AudioManager.ts"],(function(e){"use strict";var t,n,s,o,i,r,c,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){s=e.cclegacy,o=e.Node,i=e._decorator},function(e){r=e.SoundDefine},function(e){c=e.UIView},function(e){l=e.default}],execute:function(){var a,u,d,p,f;s._RF.push({},"2996eZhrl9El7V9Vh6Ckc/d","UIAddBank",void 0);const{ccclass:h,property:v}=i;e("UIAddBank",(a=h("UIAddBank"),u=v({displayName:"closeBtn",type:o,tooltip:"关闭按钮"}),a((f=t((p=class extends c{constructor(...e){super(...e),n(this,"closeBtn",f,this)}init(...e){}onOpen(...e){this.addEventListener()}onOpenAniOver(){}onClose(){}close(){this.removeEventListener(),super.close()}onCloseBtn(e){l.Instance().playEffect(r.sound_close),this.close()}addEventListener(){this.closeBtn.on(o.EventType.TOUCH_END,this.onCloseBtn,this)}removeEventListener(){this.closeBtn.off(o.EventType.TOUCH_END,this.onCloseBtn,this)}}).prototype,"closeBtn",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=p))||d));s._RF.pop()}}}));

System.register("chunks:///_virtual/UIAddBankContent.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./ResDefine.ts","./UIDefined.ts","./UIManager.ts","./AudioManager.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./MsgHandler.ts"],(function(t){"use strict";var n,e,i,o,a,s,r,d,c,u,l,f,p,B,h;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.EditBox,a=t.Node,s=t._decorator,r=t.Component},function(t){d=t.EventType},function(t){c=t.SoundDefine},function(t){u=t.UIID},function(t){l=t.UIManager},function(t){f=t.default},function(t){p=t.default},function(t){B=t.CustomEventMgr},function(t){h=t.default}],execute:function(){var b,y,E,g,m,I,k,x,C,U,v;i._RF.push({},"5770aYrGvNDip0nx/2rUMuF","UIAddBankContent",void 0);const{ccclass:D,property:N}=s;t("UIAddBankContent",(b=D("UIAddBankContent"),y=N({displayName:"nameEditBox",type:o}),E=N({displayName:"debitCardEditBox",type:o}),g=N({displayName:"bankNameEditBox",type:o}),m=N({displayName:"okBtn",type:a}),b((x=n((k=class extends r{constructor(...t){super(...t),e(this,"nameEditBox",x,this),e(this,"debitCardEditBox",C,this),e(this,"bankNameEditBox",U,this),e(this,"okBtn",v,this)}start(){this.bindEvents()}onLoad(){B.on(d.OnBindBank,this.cashInfo,this)}onDestroy(){B.off(d.OnBindBank,this.cashInfo,this)}bindEvents(){this.okBtn.on(a.EventType.TOUCH_END,(()=>{let t=this.nameEditBox.string,n=this.debitCardEditBox.string,e=this.bankNameEditBox.string;t&&n&&e?(h.Instance().c2sBindBankCard(t,n,e),f.Instance().playEffect(c.sound_click)):p.showTipsById(107059)}))}cashInfo(t){if(1==t.succ){let t=l.getInstance().getUI(u.UIWithDraw);t&&t.doBindBankSucc()}let n=l.getInstance().getUI(u.UIAddBank);n&&n.close()}}).prototype,"nameEditBox",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=n(k.prototype,"debitCardEditBox",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=n(k.prototype,"bankNameEditBox",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=n(k.prototype,"okBtn",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=k))||I));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIAlert.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIView.ts","./LanguageSprite.ts"],(function(t){"use strict";var e,i,n,a,l,r,s,o,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,l=t.Label,r=t._decorator},function(t){s=t.UIView,o=t.UIZIndex},function(t){c=t.LanguageSprite}],execute:function(){var p,h,m,u,b,f,g,y,T,d,N,B,v,L,z,w,I,U,P,x,k;n._RF.push({},"13f566VQldDea4lz1ZzTgzw","UIAlert",void 0);const{ccclass:C,property:D}=r;t("UIAlert",(p=C("UIAlert"),h=D({displayName:"确定按钮",type:[a]}),m=D({displayName:"取消按钮",type:[a]}),u=D({displayName:"内容labels",type:[l]}),b=D({displayName:"内容label2",type:l}),f=D({displayName:"普通标题label",type:l}),g=D({displayName:"图片标题label",type:c}),y=D({displayName:"无标题面板",type:a}),T=D({displayName:"有标题面板",type:a}),d=D({displayName:"多语言图片标题",type:a}),p((v=e((B=class extends s{constructor(...t){super(...t),i(this,"confirmBtns",v,this),i(this,"cancelBtns",L,this),i(this,"contentLabels",z,this),i(this,"contentLabel2",w,this),i(this,"normalTitle",I,this),i(this,"spriteTitle",U,this),i(this,"noTitlePanel",P,this),i(this,"titlePanel",x,this),i(this,"languageSpriteTitle",k,this),this.param=null}start(){this.bindEvents()}onOpen(...t){this.node.zIndex=o.notice,null!=t&&null!=t[0]&&(this.param=t[0]),this.refresh()}refresh(){if(!this.param||!this.param.content||""==this.param.content)return;let t=!1;(this.param.txtTitle||this.param.spriteTitleName)&&(t=!0),this.noTitlePanel.active=!t,this.titlePanel.active=t;for(let t=0;t<this.contentLabels.length;t++)this.contentLabels[t].string=this.param.content;if(this.contentLabel2.node.active=!1,this.param.content2&&(this.contentLabel2.node.active=!0,this.contentLabel2.string=this.param.content2),this.param.okName&&""!=this.param.okName)for(let t=0;t<this.confirmBtns.length;t++)this.confirmBtns[t].getChildByName("Label").getComponent(l).string=this.param.okName;if(this.param.cancelName&&""!=this.param.cancelName)for(let t=0;t<this.cancelBtns.length;t++)this.cancelBtns[t].getChildByName("Label").getComponent(l).string=this.param.cancelName;if(this.param.singleBtn)for(let t=0;t<this.cancelBtns.length;t++)this.cancelBtns[t].active=!1;else for(let t=0;t<this.cancelBtns.length;t++)this.cancelBtns[t].active=!0;this.normalTitle.node.active=!1,this.spriteTitle.node.active=!1,this.param.txtTitle&&(this.normalTitle.node.active=!0,this.normalTitle.string=this.param.txtTitle),this.param.spriteTitleName&&(this.spriteTitle.node.active=!0,this.spriteTitle.imageStr=this.param.spriteTitleName,this.param.spriteTitleTypes&&this.spriteTitle.setLanguageTypeArr(this.param.spriteTitleTypes))}bindEvents(){for(let t=0;t<this.confirmBtns.length;t++)this.confirmBtns[t].on(a.EventType.TOUCH_END,(()=>{this.param.okFunc&&this.param.okFunc(),this.close()}),this);for(let t=0;t<this.cancelBtns.length;t++)this.cancelBtns[t].on(a.EventType.TOUCH_END,(()=>{this.param.cancelFunc&&this.param.cancelFunc(),this.close()}),this)}}).prototype,"confirmBtns",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=e(B.prototype,"cancelBtns",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z=e(B.prototype,"contentLabels",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=e(B.prototype,"contentLabel2",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(B.prototype,"normalTitle",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(B.prototype,"spriteTitle",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(B.prototype,"noTitlePanel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(B.prototype,"titlePanel",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(B.prototype,"languageSpriteTitle",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=B))||N));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIAniLayer.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./UIView.ts","./AudioManager.ts","./UICoinAni.ts"],(function(e){"use strict";var t,i,n,a,o,r,s,l,c,y,u,p,h,x;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Node,o=e._decorator,r=e.v3,s=e.instantiate,l=e.tween,c=e.Animation},function(e){y=e.SoundDefine},function(e){u=e.UIView,p=e.UIZIndex},function(e){h=e.default},function(e){x=e.UICoinAni}],execute:function(){var d,f,A,m,g,v,L;n._RF.push({},"72a29W5ER5Is7cEQvwEY5DA","UIAniLayer",void 0);const{ccclass:I,property:C}=o;e("UIAniLayer",(d=I("UIAniLayer"),f=C({displayName:"黑色底部遮罩层",type:a}),A=C({displayName:"金币飘动层-1",type:a}),d((v=t((g=class extends u{constructor(...e){super(...e),i(this,"aniMask",v,this),i(this,"coinAniLayerOne",L,this),this.threeBezier=(e,t,i,n,a)=>{let o=t.x*(1-e)*(1-e)*(1-e)+3*i.x*e*(1-e)*(1-e)+3*n.x*e*e*(1-e)+a.x*e*e*e,s=t.y*(1-e)*(1-e)*(1-e)+3*i.y*e*(1-e)*(1-e)+3*n.y*e*e*(1-e)+a.y*e*e*e;return r(o,s,0)},this.forthBezier=(e,t,i,n,a,o)=>{let s=t.x*(1-e)*(1-e)*(1-e)*(1-e)+4*i.x*e*(1-e)*(1-e)*(1-e)+4*n.x*e*e*(1-e)*(1-e)+4*a.x*e*e*e*(1-e)+o.x*e*e*e*e,l=t.y*(1-e)*(1-e)*(1-e)*(1-e)+4*i.y*e*(1-e)*(1-e)*(1-e)+4*n.y*e*e*(1-e)*(1-e)+4*a.y*e*e*e*(1-e)+o.y*e*e*e*e;return r(s,l,0)}}start(){this.setZIndex(p.max-1)}playCoinAni(e,t,i,n,a=0,o=null){this.coinAniLayerOne.active=!1,this.coinAniLayerOne.getComponent(x).play(e,t,i,n,a),this.coinAniLayerOne.getComponent(x).callbackFun=o}playCollectCoinEffect(e,t,i,n){e=e||r(0,0,0),this.aniMask.active=!0;let a=this.coinAniLayerOne.getChildByName("coin_temp"),o=this.coinAniLayerOne.getChildByName("chuxian");o.active=!0,o.setPosition(e);let u=this.coinAniLayerOne.getChildByName("kuosan"),p=0,x=0;for(let d=0;d<30;d++){let f=s(a);f.parent=this.coinAniLayerOne,f.setPosition(e),p++;let A=this,m=t.x-e.x>0?t.x-e.x:e.x-t.x,g=t.y-e.y>0?t.y-e.y:e.y-t.y,v=t.x-e.x>0?e.x:t.x,L=t.y-e.y>0?e.y:t.y,I=r(v,L,0),C=null,U=null,b=null;n?(C=r((t.x-e.x)/3*.8,(t.y-e.y)/1.5,0),U=r((t.x-e.x)/3*2.4,Math.abs(t.y-e.y/1.5),0),e=r(0,0,0)):(C=I.add(r(2*m,.6*g,0)),U=I.add(r(2*m,.3*g,0)),b=I.add(r(-2*m,-.3*g,0)));let k=l(f).to(1,{scale:r(.7,.7,.7)}),B=l(f).to(1,{},{onUpdate(i,a){let o=null;o=n?A.threeBezier(a,e,C,U,t):A.forthBezier(a,e,C,U,b,t),f.setPosition(o)}});l(f).delay(.1*d).call((()=>{f.active=!0})).parallel(k,B).call((()=>{x++,u.active=!0,u.setPosition(t);let e=u.getChildByName("kuosan").getComponent(c);e.getState("kuosan").time>1&&e.play(),h.Instance().playEffect(y.sound_coinend),f.destroy(),x>=p&&(o.active=!1,u.active=!1,this.aniMask.active=!1,i&&i())})).start()}}}).prototype,"aniMask",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(g.prototype,"coinAniLayerOne",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=g))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIButton.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./LogUtil.ts","./AudioManager.ts"],(function(t){"use strict";var e,n,i,o,s,u,h,a,r,c,d,l,p,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.CCFloat,s=t.Label,u=t.Enum,h=t._decorator,a=t.Button,r=t.Node,c=t.UIRenderer},function(t){d=t.SoundNameEnum,l=t.SoundDefine},function(t){p=t.default},function(t){_=t.default}],execute:function(){var m,C,b,y,f,N,T,g,v,D,E;i._RF.push({},"3c47a20sYRO9qxGO2Q68wYn","UIButton",void 0);const{ccclass:I,property:F,menu:S,requireComponent:B,disallowMultiple:O}=h;t("UIButton",(m=I("UIButton"),C=S("ui/basic_ui/UIButton"),b=O(!0),y=F({displayName:"btnCD",type:o,tooltip:"按钮点击后的冷却时间，单位：秒"}),f=F({displayName:"btnLable",type:s,tooltip:"按钮标签"}),N=F({type:u(d),tooltip:"按钮声音"}),m(T=C(T=b((v=e((g=class extends a{constructor(...t){super(...t),n(this,"btnCD",v,this),n(this,"btnLable",D,this),this._soundNameStr=void 0,n(this,"_soundName",E,this),this.touchBeganFun=void 0,this.touchMoveFun=void 0,this.touchEndedFun=void 0,this.touchCancelFun=void 0,this.buttonData=void 0,this._isInCD=!1,this._cdTime=0}set soundName(t){this._soundName=t,t==d.no_sound?this._soundNameStr=null:this._soundNameStr=d[this._soundName]}get soundName(){return this._soundName}__preload(){super.__preload(),this.node.on(r.EventType.TOUCH_END,this.onTouchEnded,this),this.node.on(r.EventType.TOUCH_START,this.onTouchBegan,this),this.node.on(r.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(r.EventType.TOUCH_CANCEL,this.onTouchCancel,this),this._soundName==d.no_sound?this._soundNameStr=null:this._soundNameStr=d[this._soundName]}update(t){super.update(t);const e=this.target;if(e){if(this._transition===a.Transition.COLOR){const t=e.getComponent(c);t&&e.children.forEach((e=>this.updateChildColor(e,t.color)))}0!=this._isInCD&&(this._cdTime+=t,this._cdTime>=this.btnCD&&(this._cdTime=0,this._isInCD=!1))}}updateChildColor(t,e){const n=t.getComponent(c);n&&(n.color=e),t.children.forEach((t=>this.updateChildColor(t,e)))}onTouchBegan(t){this._interactable&&this.enabledInHierarchy&&(this._isInCD?p.log("按钮在cd中。。。"):this.touchBeganFun&&this.touchBeganFun(this))}onTouchMove(t){if(!this._interactable||!this.enabledInHierarchy||!this._pressed)return;if(!t)return;t.touch&&(this._isInCD?p.log("按钮在cd中。。。"):this.touchMoveFun&&this.touchMoveFun(this))}onTouchEnded(t){this.node.pauseSystemEvents(!0),this.scheduleOnce((()=>{this.node.resumeSystemEvents(!0)}),this.btnCD),this._interactable&&this.enabledInHierarchy&&(this._isInCD?p.log("按钮在cd中。。。"):(this._soundNameStr&&this._soundNameStr.length>0&&_.Instance().playEffect(l[this._soundNameStr]),this.touchEndedFun&&this.touchEndedFun(this),this._cdTime=0,this._isInCD=!0))}onTouchCancel(t){this.touchCancelFun&&this.touchCancelFun(this)}}).prototype,"btnCD",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),D=e(g.prototype,"btnLable",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=e(g.prototype,"_soundName",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.sound_click}}),e(g.prototype,"soundName",[N],Object.getOwnPropertyDescriptor(g.prototype,"soundName"),g.prototype),T=g))||T)||T)||T));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIButtonState.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./LogUtil.ts","./AudioManager.ts"],(function(t){"use strict";var e,o,i,s,n,r,d,a,h,u,l,p,c,N;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.CCFloat,n=t.Node,r=t.Enum,d=t._decorator,a=t.Component,h=t.UITransform,u=t.NodeEventType},function(t){l=t.SoundNameEnum,p=t.SoundDefine},function(t){c=t.default},function(t){N=t.default}],execute:function(){var _,m,b,y,S,g,f,v,T,C,D,E,O,I,F,M,w,H,R;i._RF.push({},"50723qDBZ1HI76xcw6q6VFG","UIButtonState",void 0);const{ccclass:U,property:A,menu:B,disallowMultiple:L}=d;var P;!function(t){t.NORMAL="normal",t.HOVER="hover",t.PRESSED="pressed",t.DISABLED="disabled",t.SELECT="select"}(P||(P={}));t("UIButtonState",(_=U("UIButtonState"),m=B("ui/basic_ui/UIButtonState"),b=L(!0),y=A({displayName:"btnCD",type:s,tooltip:"按钮点击后的冷却时间，单位：秒"}),S=A({displayName:"normalNode",type:n,tooltip:"普通状态的节点"}),g=A({displayName:"hoverNode",type:n,tooltip:"悬停状态下按钮所显示的节点"}),f=A({displayName:"pressedNode",type:n,tooltip:"按下状态时按钮所显示的节点"}),v=A({displayName:"disabledNode",type:n,tooltip:"禁用状态下按钮所显示的节点"}),T=A({displayName:"selectNode",type:n,tooltip:"选中状态下按钮所显示的节点"}),C=A({type:r(l),tooltip:"按钮声音"}),_(D=m(D=b((O=e((E=class extends a{constructor(...t){super(...t),o(this,"btnCD",O,this),o(this,"_normalNode",I,this),o(this,"_hoverNode",F,this),o(this,"_pressedNode",M,this),o(this,"_disabledNode",w,this),o(this,"_selectNode",H,this),this._soundNameStr=void 0,o(this,"_soundName",R,this),this.touchBeganFun=void 0,this.touchMoveFun=void 0,this.touchEndedFun=void 0,this.touchCancelFun=void 0,this._state=P.NORMAL,this._select=!1,this._interactable=!0,this._pressed=!1,this._isInCD=!1,this._cdTime=0}get normalNode(){return this._normalNode}set normalNode(t){this._normalNode=t,this.updateState()}get hoverNode(){return this._hoverNode}set hoverNode(t){this._hoverNode=t}get pressedNode(){return this._pressedNode}set pressedNode(t){this._pressedNode=t}get disabledNode(){return this._disabledNode}set disabledNode(t){this._disabledNode=t}get selectNode(){return this._selectNode}set selectNode(t){this._selectNode=t}set soundName(t){this._soundName=t,t==l.no_sound?this._soundNameStr=null:this._soundNameStr=l[this._soundName]}get soundName(){return this._soundName}get select(){return this._select}set select(t){this._select=t,this._state=1==t?P.SELECT:P.NORMAL,this.updateState()}start(){this._soundName==l.no_sound?this._soundNameStr=null:this._soundNameStr=l[this._soundName],this.updateState()}update(t){0!=this._isInCD&&(this._cdTime+=t,this._cdTime>=this.btnCD&&(this._cdTime=0,this._isInCD=!1))}updateState(){this.updateSpriteTransition(this._state)}updateSpriteTransition(t){this.hideAllState();const e=this[`${t}Node`];e?e.active=!0:this.normalNode.active=!0}hideAllState(){this.normalNode&&(this.normalNode.active=!1),this.hoverNode&&(this.hoverNode.active=!1),this.pressedNode&&(this.pressedNode.active=!1),this.disabledNode&&(this.disabledNode.active=!1),this.selectNode&&(this.selectNode.active=!1)}onEnable(){this.addToStage()}onDisable(){this.removeFromStage()}onTouchBegan(t){this._interactable&&this.enabledInHierarchy&&(this._pressed=!0,this._state=P.PRESSED,this.updateState(),t&&(t.propagationStopped=!0),this._isInCD?c.log("按钮在cd中。。。"):this.touchBeganFun&&this.touchBeganFun(this))}onTouchMove(t){if(!this._interactable||!this.enabledInHierarchy||!this._pressed)return;if(!t)return;let e=t.touch;if(!e)return;let o=this.node.getComponent(h).hitTest(e.getLocation());this._state=o?P.PRESSED:P.NORMAL,this.updateState(),t&&(t.propagationStopped=!0),this._isInCD?c.log("按钮在cd中。。。"):this.touchMoveFun&&this.touchMoveFun(this)}onTouchEnded(t){this._interactable&&this.enabledInHierarchy&&(this._pressed=!1,this._state=P.NORMAL,this.updateState(),this._soundNameStr&&this._soundNameStr.length>0&&N.Instance().playEffect(p[this._soundNameStr]),t&&(t.propagationStopped=!0),this._isInCD?c.log("按钮在cd中。。。"):(this.touchEndedFun&&this.touchEndedFun(this),this._cdTime=0,this._isInCD=!0))}onTouchCancel(t){this._interactable&&this.enabledInHierarchy&&(this._pressed=!1,this._state=P.NORMAL,this.updateState(),this.touchCancelFun&&this.touchCancelFun(this))}addToStage(){this.node.on(u.TOUCH_START,this.onTouchBegan,this),this.node.on(u.TOUCH_MOVE,this.onTouchMove,this),this.node.on(u.TOUCH_END,this.onTouchEnded,this),this.node.on(u.TOUCH_CANCEL,this.onTouchCancel,this)}removeFromStage(){this.node.off(u.TOUCH_START,this.onTouchBegan,this),this.node.off(u.TOUCH_MOVE,this.onTouchMove,this),this.node.off(u.TOUCH_END,this.onTouchEnded,this),this.node.off(u.TOUCH_CANCEL,this.onTouchCancel,this)}}).prototype,"btnCD",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),I=e(E.prototype,"_normalNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(E.prototype,"normalNode",[S],Object.getOwnPropertyDescriptor(E.prototype,"normalNode"),E.prototype),F=e(E.prototype,"_hoverNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(E.prototype,"hoverNode",[g],Object.getOwnPropertyDescriptor(E.prototype,"hoverNode"),E.prototype),M=e(E.prototype,"_pressedNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(E.prototype,"pressedNode",[f],Object.getOwnPropertyDescriptor(E.prototype,"pressedNode"),E.prototype),w=e(E.prototype,"_disabledNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(E.prototype,"disabledNode",[v],Object.getOwnPropertyDescriptor(E.prototype,"disabledNode"),E.prototype),H=e(E.prototype,"_selectNode",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(E.prototype,"selectNode",[T],Object.getOwnPropertyDescriptor(E.prototype,"selectNode"),E.prototype),R=e(E.prototype,"_soundName",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l.sound_click}}),e(E.prototype,"soundName",[C],Object.getOwnPropertyDescriptor(E.prototype,"soundName"),E.prototype),D=E))||D)||D)||D));i._RF.pop()}}}));

System.register("chunks:///_virtual/UICoinAni.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./LogUtil.ts","./StringUtil.ts","./EffectsUtil.ts","./Global.ts","./AudioManager.ts"],(function(i){"use strict";var t,e,n,a,s,o,l,c,h,r,u,_,d,N,m,p,y;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){n=i.cclegacy,a=i.Node,s=i.Label,o=i.Prefab,l=i._decorator,c=i.Component,h=i.instantiate,r=i.isValid,u=i.v3},function(i){_=i.SoundDefine},function(i){d=i.default},function(i){N=i.default},function(i){m=i.EffectsUtil},function(i){p=i.Global},function(i){y=i.default}],execute:function(){var b,C,P,T,L,f,A,v,I,E,S,g,B,x,O,M,z;i({AniCoinPlayType:void 0,AniNumState:void 0}),n._RF.push({},"6e9cebyHz5LwKVcwK31qbS+","UICoinAni",void 0);const{ccclass:k,property:R}=l;let U,w;!function(i){i[i.NONE=0]="NONE",i[i.PLAY=1]="PLAY",i[i.STOP=2]="STOP"}(U||(U=i("AniNumState",{}))),function(i){i[i.BALANCE=0]="BALANCE"}(w||(w=i("AniCoinPlayType",{})));i("UICoinAni",(b=k("UICoinAni"),C=R({displayName:"balanceNode",type:a,tooltip:"balance的节点"}),P=R({displayName:"balanceLable",type:s,tooltip:"balance Lable"}),T=R({displayName:"balanceIconNode",type:a,tooltip:"balance Icon Node"}),L=R({displayName:"coinLayer",type:a,tooltip:"icon 层"}),f=R({displayName:"coin_temp",type:a,tooltip:"金币特效节点"}),A=R({displayName:"chuxian",type:o,tooltip:"出现时的星星特效"}),v=R({displayName:"kuosan",type:a,tooltip:"在balance图标上的白色扩散特效"}),b((S=t((E=class extends c{constructor(...i){super(...i),e(this,"balanceNode",S,this),e(this,"balanceLable",g,this),e(this,"balanceIconNode",B,this),e(this,"coinLayer",x,this),e(this,"coin_temp",O,this),e(this,"chuxian",M,this),this._chuxianNode=null,e(this,"kuosan",z,this),this._STAY_SHOW_NUM_TIME=.5,this._COIN_ONE_LINE_TIME=1,this._INTERVAL_ADD_COIN_TIME=.1,this._STOP_CREAT_COIN_TIME=2,this._COIN_MIN_SCALE=.7,this._COIN_SCALE_NUM=.01,this._isPlayingBalance=!1,this._totalPlayTime=0,this._curplayTime=0,this._coinList=void 0,this._numState=U.NONE,this._beatFrequency=.02,this._rollNumTime=0,this._curRollTime=0,this._curNum=void 0,this._addNum=void 0,this._totalBalance=0,this._balance0=0,this._numBeatTimeMark=0,this._bezierCtrlP2=void 0,this._startPoint=void 0,this._endPoint=void 0,this.callbackFun=void 0}play(i,t,e,n,a=0){this.node.active=!0,this.playAddBalance(t,e,n,a)}stop(){this._isPlayingBalance=!1,this.node.active=!1,this._totalPlayTime=0,this._curplayTime=0,this._numState=U.NONE,this._rollNumTime=0,this._curRollTime=0,this._curNum=0,this._addNum=0,this._numBeatTimeMark=0,this.balanceNode.active=!1,this.balanceNode.parent&&this.balanceNode.parent.removeChild(this.balanceNode),this.kuosan.active=!1,this.kuosan.parent&&this.kuosan.parent.removeChild(this.kuosan),this._chuxianNode&&(this._chuxianNode.active=!1,this._chuxianNode.parent&&this._chuxianNode.parent.removeChild(this._chuxianNode),this._chuxianNode.destroy()),this._chuxianNode=null,this.cleanAllCoin(),this.coinLayer.active=!1,this.coinLayer.parent&&this.coinLayer.parent.removeChild(this.coinLayer),this._bezierCtrlP2=null,this._startPoint=null,this._endPoint=null,this.callbackFun&&this.callbackFun()}playAddBalance(i,t,e,n=0){this._isPlayingBalance?d.log("金币动画在播放中...."):(this._addNum=e,this._balance0=t,this._totalBalance=t+e,(!n||n<1)&&(n=2),this.node.addChild(this.balanceNode),this.node.addChild(this.kuosan),this.node.addChild(this.coinLayer),this.coinLayer.active=!0,this._rollNumTime=n,this._totalPlayTime=this._COIN_ONE_LINE_TIME+n+this._STAY_SHOW_NUM_TIME,this._isPlayingBalance=!0,this._startPoint=i,this._curNum=t,this.balanceNode.setWorldPosition(p.gameCtrl.mainUITs.balanceRefreshBtn.parent.getWorldPosition()),this.balanceLable.string=N.formatMoney(this._curNum),this.balanceNode.active=!0,this._endPoint=this.balanceIconNode.worldPosition,this._chuxianNode=h(this.chuxian),this._chuxianNode.active=!1,this.node.addChild(this._chuxianNode),this._chuxianNode.setWorldPosition(this._startPoint),this._chuxianNode.active=!0,this._coinList=[],this.creatCoin(),this._bezierCtrlP2=m.get2BezierCtrlP(this._startPoint,this._endPoint))}update(i){if(0==this._isPlayingBalance)return;this._curplayTime+=i;let t=0;if(this._coinList&&this._coinList.length>0)for(t=0;t<this._coinList.length;t++)this.eachCoinAct(this._coinList[t],i);this._totalPlayTime-this._curplayTime>this._STOP_CREAT_COIN_TIME?this._coinList[this._coinList.length-1]&&this._coinList[this._coinList.length-1].curBezierTime>=this._INTERVAL_ADD_COIN_TIME&&this.creatCoin():r(this._chuxianNode)&&(this._chuxianNode.active=!1,this._chuxianNode.parent&&this._chuxianNode.parent.removeChild(this._chuxianNode),this._chuxianNode.destroy()),this._numState==U.PLAY&&this.eachTxtAct(i),this._curplayTime>=this._totalPlayTime&&this.stop()}eachTxtAct(i){this._curRollTime+=i,this._curRollTime<this._numBeatTimeMark||(this._numBeatTimeMark=this._curRollTime+this._beatFrequency,this._curNum=this._balance0+this._addNum*(this._curRollTime/this._rollNumTime),this._curNum>this._totalBalance&&(this._curNum=this._totalBalance),this.balanceLable.string=N.formatMoney(this._curNum),this._curNum>=this._totalBalance&&(this._numState=U.STOP,this.kuosan.active=!1))}eachCoinAct(i,t){if(i.curBezierTime+=t,!(i.curBezierTime<=1))return i.coinNode.active=!1,i.coinNode.parent&&i.coinNode.parent.removeChild(i.coinNode),i.coinNode.destroy(),this._coinList.shift(),void(this._numState==U.NONE&&(this._numState=U.PLAY,this.kuosan.active=!0,this.kuosan.setWorldPosition(this._endPoint)));i.coinNode.setWorldPosition(m.threeBezier(i.curBezierTime,this._startPoint,this._bezierCtrlP2.controlPos0,this._bezierCtrlP2.controlPos1,this._endPoint)),i.curBezierTime>.8&&0==i.isPlayedSound&&(y.Instance().playEffect(_.sound_coinend),i.isPlayedSound=!0),i.scale>this._COIN_MIN_SCALE&&(i.scale-=this._COIN_SCALE_NUM,i.scale<this._COIN_MIN_SCALE&&(i.scale=this._COIN_MIN_SCALE),i.coinNode.setScale(u(i.scale,i.scale,i.scale)))}creatCoin(){let i,t;i=h(this.coin_temp),i.active=!1,this.coinLayer.addChild(i),t={coinNode:i,scale:1,curBezierTime:0,isPlayedSound:!1},i.setScale(t.scale,t.scale,t.scale),i.setWorldPosition(this._startPoint),i.active=!0,this._coinList.push(t)}cleanAllCoin(){let i;for(i of this._coinList)i&&i.coinNode&&(i.coinNode.parent&&i.coinNode.parent.removeChild(i.coinNode),i.coinNode.destroy());this._coinList=null,this.coinLayer.removeAllChildren()}}).prototype,"balanceNode",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(E.prototype,"balanceLable",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(E.prototype,"balanceIconNode",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(E.prototype,"coinLayer",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(E.prototype,"coin_temp",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(E.prototype,"chuxian",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(E.prototype,"kuosan",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=E))||I));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIDebug.ts",["./rollupPluginModLoBabelHelpers.js","cc","./DStorage.ts","./UIUtils.ts","./Global.ts","./Loader.ts"],(function(t){"use strict";var e,i,n,r,l,s,o,a,u,c,b,h,p,g,f,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t.EditBox,l=t.Button,s=t.Node,o=t._decorator,a=t.Component,u=t.v3,c=t.sys,b=t.game,h=t.native},function(t){p=t.default},function(t){g=t.default},function(t){f=t.KEY_PLATFORM_ID},function(t){d=t.Loader}],execute:function(){var m,y,D,v,P,w,U,x,S,I,_,O,z,C,k,A;n._RF.push({},"5215eknk31Hjawtx+g3Vz/S","UIDebug",void 0);const{ccclass:E,property:G}=o;t("UIDebug",(m=E("UIDebug"),y=G({type:r}),D=G({type:l}),v=G({type:l}),P=G({type:l}),w=G({type:l}),U=G({type:s}),m(((A=class t extends a{constructor(...t){super(...t),i(this,"editbox",I,this),i(this,"btnSwitch",_,this),i(this,"btnDebug",O,this),i(this,"btnClearGame",z,this),i(this,"btnClearAll",C,this),i(this,"panel",k,this),this._isOPen=!1}get isOPen(){return this._isOPen}set isOPen(t){this._isOPen=t,this.panel.active=t}onLoad(){t.instance=this,this.btnSwitch.node.on("click",this.switchPlatformId,this),this.isOPen=!1,this.btnDebug.node.on("click",(()=>{this.panel.active=!this.panel.active}),this),this.btnDebug.node.on(s.EventType.TOUCH_MOVE,(t=>{this.btnDebug.node.setPosition(u(this.btnDebug.node.getPosition().x+t.getDelta().x,this.btnDebug.node.getPosition().y+t.getDelta().y,1))}),this),this.btnClearGame.node.on("click",this.clearGamesStorege,this),this.btnClearAll.node.on("click",this.clearAllStorege,this)}switchPlatformId(){let t=this.editbox.string;!c.isNative||!t||""===t.trim()||Number(t)<=1e4?g.showTips("渠道号输入错误，请重新输入！"):(p.setItem(f,t),c.isNative&&b.restart())}clearGamesStorege(){if(!c.isNative)return;p.setItem("downloadedgamelist","");let t=h.fileUtils.getWritablePath(),e=`${t}/${d.installPath}`,i=`${t}/${d.downloadsPath}`,n=h.fileUtils.isDirectoryExist(e),r=h.fileUtils.isDirectoryExist(i);if(n&&h.fileUtils.removeDirectory(e),r){h.fileUtils.removeDirectory(i)&&setTimeout((()=>{b.restart()}),1)}}clearAllStorege(){if(!c.isNative)return;let t=h.fileUtils.getWritablePath();c.localStorage.clear(),h.fileUtils.removeDirectory(t)&&setTimeout((()=>{b.restart()}),1)}}).instance=void 0,I=e((S=A).prototype,"editbox",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(S.prototype,"btnSwitch",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(S.prototype,"btnDebug",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(S.prototype,"btnClearGame",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(S.prototype,"btnClearAll",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(S.prototype,"panel",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=S))||x));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIDefined.ts",["cc"],(function(e){"use strict";var r;return{setters:[function(e){r=e.cclegacy}],execute:function(){let a;e("UIID",void 0),r._RF.push({},"79ad9sWH75L26mk3G+mQ1VS","UIDefined",void 0),function(e){e[e.UILogin=0]="UILogin",e[e.UIActivity=1]="UIActivity",e[e.UISatisfy=2]="UISatisfy",e[e.UIModify=3]="UIModify",e[e.UIGetReward=4]="UIGetReward",e[e.UIAlert=5]="UIAlert",e[e.UIRanking=6]="UIRanking",e[e.UIWithDraw=7]="UIWithDraw",e[e.UIWithDrawRecord=8]="UIWithDrawRecord",e[e.UIAddBank=9]="UIAddBank",e[e.UILuckyDrawAwardList=10]="UILuckyDrawAwardList",e[e.UIQRCode=11]="UIQRCode",e[e.UILuckyDraw=12]="UILuckyDraw",e[e.UILuckyDrawChoose=13]="UILuckyDrawChoose",e[e.UIRegister=14]="UIRegister",e[e.UITurnTable=15]="UITurnTable",e[e.UILoginFull=16]="UILoginFull",e[e.UIAniLayer=17]="UIAniLayer",e[e.UILoadingView=18]="UILoadingView",e[e.UIRedpacket=19]="UIRedpacket",e[e.UIRecharge=20]="UIRecharge",e[e.UIRechargeRecord=21]="UIRechargeRecord",e[e.UIProfile=22]="UIProfile",e[e.UISafe=23]="UISafe",e[e.UILanguage=24]="UILanguage",e[e.UIQuickTask=25]="UIQuickTask",e[e.UITask=26]="UITask",e[e.UINotice=27]="UINotice",e[e.UIRechargeBank=28]="UIRechargeBank",e[e.UIRechargeElectric=29]="UIRechargeElectric",e[e.UIErrorAlert=30]="UIErrorAlert",e[e.UIRaffleTicket=31]="UIRaffleTicket",e[e.UIRaffleTicketHistory=32]="UIRaffleTicketHistory"}(a||(a=e("UIID",{})));e("UICF",{[a.UILogin]:{prefab:"prefabs/ui/UILoginMain"},[a.UIActivity]:{prefab:"prefabs/ui/UIActivity"},[a.UISatisfy]:{prefab:"prefabs/ui/UISatisfy"},[a.UIModify]:{prefab:"prefabs/ui/UIModify"},[a.UIGetReward]:{prefab:"prefabs/ui/UIGetReward"},[a.UIAlert]:{prefab:"prefabs/ui/UIAlert"},[a.UIRanking]:{prefab:"prefabs/ui/UIRanking"},[a.UIWithDraw]:{prefab:"prefabs/ui/UIWithDraw"},[a.UIWithDrawRecord]:{prefab:"prefabs/ui/UIWithDrawRecord"},[a.UIAddBank]:{prefab:"prefabs/ui/UIAddBank"},[a.UILuckyDrawAwardList]:{prefab:"prefabs/ui/UILuckyDrawAwardList"},[a.UIQRCode]:{prefab:"prefabs/ui/UIQRCode"},[a.UILuckyDraw]:{prefab:"prefabs/ui/UILuckyDraw"},[a.UILuckyDrawChoose]:{prefab:"prefabs/ui/UILuckyDrawChoose"},[a.UIRegister]:{prefab:"prefabs/ui/UIRegisterFull"},[a.UITurnTable]:{prefab:"prefabs/ui/UITurnTable"},[a.UILoginFull]:{prefab:"prefabs/ui/UILoginFull"},[a.UIAniLayer]:{prefab:"prefabs/ui/UIAniLayer"},[a.UILoadingView]:{prefab:"prefabs/ui/UILoadingView"},[a.UIRedpacket]:{prefab:"prefabs/ui/UIRedpacket"},[a.UIRecharge]:{prefab:"prefabs/ui/recharge/UIRecharge"},[a.UIRechargeRecord]:{prefab:"prefabs/ui/recharge/UIRechargeRecord"},[a.UIProfile]:{prefab:"prefabs/ui/UIProfile"},[a.UISafe]:{prefab:"prefabs/ui/UISafeBox"},[a.UILanguage]:{prefab:"prefabs/ui/UILanguage"},[a.UIQuickTask]:{prefab:"prefabs/ui/UIQuickTask"},[a.UITask]:{prefab:"prefabs/ui/UITask"},[a.UINotice]:{prefab:"prefabs/ui/UINotice"},[a.UIRechargeBank]:{prefab:"prefabs/ui/recharge/UIRechargeBank"},[a.UIRechargeElectric]:{prefab:"prefabs/ui/recharge/UIRechargeElectric"},[a.UIErrorAlert]:{prefab:"prefabs/ui/UIErrorAlert"},[a.UIRaffleTicket]:{prefab:"prefabs/ui/UIRaffleTicket"},[a.UIRaffleTicketHistory]:{prefab:"prefabs/ui/UIRaffleTicketHistory"},[a.UIRechargeElectric]:{prefab:"prefabs/ui/recharge/UIRechargeElectric"}});r._RF.pop()}}}));

System.register("chunks:///_virtual/UIErrorAlert.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIView.ts"],(function(t){"use strict";var e,n,o,i,r,s,l,c,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){o=t.cclegacy,i=t.ScrollView,r=t.Label,s=t.Button,l=t._decorator,c=t.UITransform},function(t){h=t.UIView}],execute:function(){var u,a,p,g,b,m,w,d,f;o._RF.push({},"45cadhTSptBUbdzJeDOcPOh","UIErrorAlert",void 0);const{ccclass:V,property:y}=l;t("UIErrorAlert",(u=V("uiErrorAlert"),a=y(i),p=y(r),g=y(s),u((w=e((m=class extends h{constructor(...t){super(...t),n(this,"scrollView",w,this),n(this,"content",d,this),n(this,"btn",f,this),this.mHeight=0}onLoad(){this.mHeight=this.scrollView.content.getComponent(c).height,this.btn.node.on("click",this.close)}onOpen(t){this.onMessage(t)}onMessage(t){this.content.string=t;let e=this.content.node.getComponent(c).height;this.scheduleOnce((()=>{e=this.content.node.getComponent(c).height,this.scrollView.content.getComponent(c).width<e?this.scrollView.content.getComponent(c).height=e:this.scrollView.content.getComponent(c).height=this.mHeight,this.scrollView.stopAutoScroll(),this.scrollView.scrollToBottom()}))}}).prototype,"scrollView",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(m.prototype,"content",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(m.prototype,"btn",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=m))||b));o._RF.pop()}}}));

System.register("chunks:///_virtual/UIGetReward.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Img.ts","./LanguageSprite.ts","./EnumDefine.ts","./ResDefine.ts","./UIView.ts","./AudioManager.ts"],(function(e){"use strict";var t,n,i,l,o,a,r,s,u,c,p,b,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,l=e.Node,o=e.Label,a=e.sp,r=e._decorator},function(e){s=e.Img},function(e){u=e.LanguageSprite},function(e){c=e.ELanguage_Type},function(e){p=e.SoundDefine},function(e){b=e.UIView},function(e){g=e.default}],execute:function(){var f,h,m,d,y,I,k,A,w,L,S,j,C,N,v,z,D,E,_;i._RF.push({},"2c1c2kadDxLtIwuOWFdkJlP","UIGetReward",void 0);const{ccclass:R,property:U}=r;e("UIGetReward",(f=R("UIGetReward"),h=U({displayName:"领取按钮",type:l}),m=U({displayName:"金币奖励节点",type:l}),d=U({displayName:"实物奖励节点",type:l}),y=U({displayName:"金币amount label",type:o}),I=U({displayName:"实物amount label",type:o}),k=U({displayName:"实物 sprite",type:s}),A=U({displayName:"title",type:u}),w=U({displayName:"openAniSkeleton",type:a.Skeleton}),f((j=t((S=class extends b{constructor(...e){super(...e),n(this,"getBtn",j,this),n(this,"goldInfo",C,this),n(this,"objectInfo",N,this),n(this,"goldAmountLabel",v,this),n(this,"objectAmountLabel",z,this),n(this,"objectImg",D,this),n(this,"title",E,this),n(this,"openAniSkeleton",_,this),this.getCallback=null}start(){let e=[c.CN,c.EN];this.title.setLanguageTypeArr(e),this.bindEvents()}initGoldPanel(e,t=null){this.goldInfo.active=!0,this.objectInfo.active=!1,this.getCallback=t,this.goldAmountLabel.string=e}initObjectPanel(e,t,n=null){this.goldInfo.active=!1,this.objectInfo.active=!0,this.getCallback=n,this.objectAmountLabel.string=t,this.objectImg.initImg(e)}onOpen(){this.openAniSkeleton.getComponent(a.Skeleton).setAnimation(0,"chuchang",!1),this.openAniSkeleton.getComponent(a.Skeleton).setCompleteListener((()=>{this.openAniSkeleton.getComponent(a.Skeleton).setAnimation(0,"daiji",!0)}))}onClose(){}bindEvents(){this.getBtn.on(l.EventType.TOUCH_END,(()=>{g.Instance().playEffect(p.sound_click_btn),this.close(),this.getCallback&&this.getCallback()}),this)}}).prototype,"getBtn",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(S.prototype,"goldInfo",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(S.prototype,"objectInfo",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(S.prototype,"goldAmountLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(S.prototype,"objectAmountLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(S.prototype,"objectImg",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(S.prototype,"title",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(S.prototype,"openAniSkeleton",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=S))||L));i._RF.pop()}}}));

System.register("chunks:///_virtual/UILanguage.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EnumDefine.ts","./EventDefine.ts","./LogUtil.ts","./UIView.ts","./Global.ts","./AudioManager.ts","./CustomEventMgr.ts","./Language.ts","./ResDefine.ts","./ConfigUtil.ts","./ChannelLangConfig.ts"],(function(e){"use strict";var t,n,i,s,a,l,o,h,g,u,c,r,f,p,d,C,B,L;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,s=e.Node,a=e._decorator,l=e.UITransform,o=e.v3},function(e){h=e.ELanguage_Type},function(e){g=e.EventType},function(e){u=e.default},function(e){c=e.UIView},function(e){r=e.Global},function(e){f=e.default},function(e){p=e.CustomEventMgr},function(e){d=e.default},function(e){C=e.SoundDefine},function(e){B=e.ConfigUtil},function(e){L=e.ChannelLangConfig}],execute:function(){var y,b,m,N,w,v,U,E;i._RF.push({},"f9e0d1d5KpKfKDsV35RPPgt","UILanguage",void 0);const{ccclass:P,property:k}=a;e("default",(y=k({displayName:"languageBtnsParent",type:s}),b=k({displayName:"选择标记",type:s}),m=k({displayName:"语言按钮",type:[s]}),P((v=t((w=class extends c{constructor(...e){super(...e),n(this,"languageBtnsParent",v,this),n(this,"selectNode",U,this),n(this,"languageBtns",E,this),this.willChooseLan=h.NULL}onOpen(...e){this.refreshLanBtns(),this.chooseBtnByName(r.language),this.willChooseLan=h.NULL,this.scheduleOnce((()=>{this.bAni=!1}))}onClose(){this.bAni=!0,this.willChooseLan!=h.NULL&&(d.getInstance().language.onChooseLang(this.willChooseLan,!0),p.fire(g.OnChangeLanguage))}start(){this.bindEvents()}refreshLanBtns(){let e=B.getConfig(L)[r.appPlatformId].L.split(","),t=[];for(let n=0;n<this.languageBtns.length;n++){let i=this.languageBtns[n].name.split("_")[1],s=-1!=e.indexOf(i);this.languageBtns[n].active=s,s&&t.push(this.languageBtns[n])}this.languageBtnsParent.getComponent(l).height=108*t.length}bindEvents(){for(let e=0;e<this.languageBtns.length;e++)this.languageBtns[e].on(s.EventType.TOUCH_END,this.languageBtnClick,this)}languageBtnClick(e){u.debug("languageBtnClick"),f.Instance().playEffect(C.sound_click_btn);let t=e.getCurrentTarget(),n=t.name.split("_")[1];switch(this.selectNode.setPosition(o(this.selectNode.position.x,t.position.y)),n){case"cn":this.willChooseLan=h.CN,this.showUi(1);break;case"en":this.willChooseLan=h.EN,this.showUi(0);break;case"id":this.willChooseLan=h.ID,this.showUi(5);break;case"ms":this.willChooseLan=h.MS,this.showUi(3);break;case"por":this.willChooseLan=h.POR;break;case"th":this.willChooseLan=h.th,this.showUi(2);break;case"vi":this.willChooseLan=h.VI,this.showUi(4)}this.scheduleOnce((()=>{this.close()}))}showUi(e){this.languageBtns.map(((t,n)=>{n==e?(t.getChildByName("Label").active=!1,t.getChildByName("useLabel").active=!0,t.getChildByName("unUse").active=!1,t.getChildByName("use").active=!0):(t.getChildByName("Label").active=!0,t.getChildByName("useLabel").active=!1,t.getChildByName("unUse").active=!0,t.getChildByName("use").active=!1)}))}chooseBtnByName(e){for(let t=0;t<this.languageBtns.length;t++){if(this.languageBtns[t].name.split("_")[1]==e)return this.showUi(t),void this.selectNode.setPosition(o(this.selectNode.position.x,this.languageBtns[t].position.y,1))}}}).prototype,"languageBtnsParent",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(w.prototype,"selectNode",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(w.prototype,"languageBtns",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),N=w))||N));i._RF.pop()}}}));

System.register("chunks:///_virtual/UILayer.ts",["cc","./UIDefined.ts","./UIManager.ts"],(function(e){"use strict";var t,n,r,c,a;return{setters:[function(e){t=e.cclegacy,n=e.Component,r=e._decorator},function(e){c=e.UICF},function(e){a=e.UIManager}],execute:function(){var s;t._RF.push({},"b84921eUr1AQITH43HDbj/j","UILayer",void 0);const{ccclass:o,property:i}=r;e("UILayer",o("UILayer")(s=class extends n{addView(e){throw new Error("Method not implemented.")}onLoad(){a.getInstance().uiLayer=this,a.getInstance().init(c)}})||s);t._RF.pop()}}}));

System.register("chunks:///_virtual/UILoadingMain.ts",["cc","./NativeApi.ts","./LogUtil.ts","./UIView.ts","./LoadingManager.ts"],(function(t){"use strict";var e,s,i,r,n,a,c,o;return{setters:[function(t){e=t.cclegacy,s=t.sys,i=t.director,r=t._decorator},function(t){n=t.default},function(t){a=t.default},function(t){c=t.UIView},function(t){o=t.LoadingManager}],execute:function(){var g;e._RF.push({},"98db5NDP35DzbDk0swCF8Uw","UILoadingMain",void 0);const{ccclass:h,property:d,menu:u}=r;t("UILoadingMain",h(g=u("load/UILoadingMain")(g=class extends c{constructor(...t){super(...t),this.percent=0,this.targetPercent=0,this.uiHot=null,this.isStartLoad=!1}start(){1==s.isNative&&n.getInfo()}loadRes(t){this.uiHot=t,this.isStartLoad=!0,o.getInstance().load(this.setTargetPercent.bind(this))}checkAndEnterGame(){this.percent>=.95&&(a.debug("enterGame"),this.setTargetPercent(1),i.loadScene("MainScene"))}setTargetPercent(t){a.debug("setTargetPercent, targetpercent:"+t),this.targetPercent=this.targetPercent<t?t:this.targetPercent}update(){this.isStartLoad&&(this.percent>=this.targetPercent||(this.percent+=.01,.95==parseFloat(this.percent.toFixed(3))&&this.checkAndEnterGame(),this.percent>=1&&(this.percent=1,this.isStartLoad=!1),this.uiHot.progressBar.progress=this.percent,this.uiHot.progressLabel.string=parseInt((100*this.percent).toFixed(0)).toString()+"%"))}})||g)||g);e._RF.pop()}}}));

System.register("chunks:///_virtual/UILoadingView.ts",["cc","./UIView.ts","./NetAdaptor.ts"],(function(t){"use strict";var e,n,o,i,s;return{setters:[function(t){e=t.cclegacy,n=t.Node,o=t._decorator},function(t){i=t.UIView},function(t){s=t.NetAdaptor}],execute:function(){var c;e._RF.push({},"7ff39+A0KNFrL48KkBzWU1s","UILoadingView",void 0);const{ccclass:a,property:r}=o;t("UILoadingView",a("UILoadingView")(c=class extends i{start(){this.node.on(n.EventType.TOUCH_END,this.onTouch.bind(this))}onTouch(){s.getInstance().isShowLoading&&s.getInstance().closeLoadingView()}})||c);e._RF.pop()}}}));

System.register("chunks:///_virtual/UILogin.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PEditBox.ts","./EnumDefine.ts","./EventDefine.ts","./SdkManager.ts","./LogUtil.ts","./ResolutionUtil.ts","./StorageUtil.ts","./Global.ts","./AudioManager.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./Language.ts","./RegisterModel.ts","./User.ts","./ResDefine.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts","./UIUtils.ts","./CountDown.ts","./LanguageLabel.ts"],(function(t){"use strict";var e,n,i,o,s,a,l,r,u,c,h,d,g,p,f,B,b,y,m,E,T,S,C,v,I,U,w,D,N,L,O,k,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.EditBox,s=t.Toggle,a=t.Node,l=t.Sprite,r=t.Label,u=t._decorator,c=t.sys,h=t.Button},function(t){d=t.PEditBox},function(t){g=t.ERegister_Type},function(t){p=t.SDKEvent},function(t){f=t.default},function(t){B=t.default},function(t){b=t.default},function(t){y=t.default},function(t){m=t.Global},function(t){E=t.default,T=t.playBtn},function(t){S=t.default},function(t){C=t.CustomEventMgr},function(t){v=t.Language},function(t){I=t.RegisterModel},function(t){U=t.User},function(t){w=t.SoundDefine},function(t){D=t.UIView},function(t){N=t.UIManager},function(t){L=t.UIID},function(t){O=t.default},function(t){k=t.default},function(t){_=t.LanguageLabel}],execute:function(){var x,M,R,H,z,P,A,F,j,G,V,W,J,K,Q,$,q,X,Y,Z,tt,et,nt,it,ot,st,at,lt,rt;i._RF.push({},"9642di/doRJroHcgS6Cx46+","UILogin",void 0);const{ccclass:ut,property:ct}=u;t("default",(x=ut("UILogin"),M=ct({displayName:"accountEditBox",type:o,tooltip:"账号editbox"}),R=ct({displayName:"passEditBox",type:d,tooltip:"密码editbox"}),H=ct({displayName:"rememberPW",type:s,tooltip:"记住密码"}),z=ct({displayName:"loginBtn",type:a,tooltip:"登录按钮"}),P=ct({displayName:"loginLb",type:a,tooltip:"登陆按钮文本"}),A=ct({displayName:"iosBtn",type:a,tooltip:"ios下载"}),F=ct({displayName:"androidBtn",type:a,tooltip:"android下载"}),j=ct({displayName:"fullScreenBtn",type:a,tooltip:"全屏按钮"}),G=ct({displayName:"audioBtn",type:s,tooltip:"audio按钮"}),V=ct({displayName:"playSoundIcon",type:l,tooltip:"playSoundIcon"}),W=ct({displayName:"registerBtn",type:a,tooltip:"注册按钮"}),J=ct({displayName:"languageBtn",type:a,tooltip:"语言按钮"}),K=ct({displayName:"versionLabel",type:r,tooltip:"版本label"}),x((q=e(($=class extends D{constructor(...t){super(...t),n(this,"accountEditBox",q,this),n(this,"passEditBox",X,this),n(this,"rememberPW",Y,this),n(this,"loginBtn",Z,this),n(this,"loginLb",tt,this),n(this,"iosBtn",et,this),n(this,"androidBtn",nt,this),n(this,"fullScreenBtn",it,this),n(this,"audioBtn",ot,this),n(this,"playSoundIcon",st,this),n(this,"registerBtn",at,this),n(this,"languageBtn",lt,this),n(this,"versionLabel",rt,this),this.isAllDataReady=!1}onOpen(t){this.gameBackAndSaveMusicSwitch(E.Instance().musicEnabled),this.versionLabel.string=m.appVersion,this.isAllDataReady=!1,O.hideLoading();let e=y.getAccount();e&&(this.accountEditBox.string=e.account||"",this.passEditBox.string=e.password||"",e.password&&this.login()),this.adjustBtn(),this.adjustDownloadBtn()}adjustBtn(){(c.isNative||c.os==c.OS.IOS)&&this.fullScreenBtn.removeFromParent();let t=this.getModel(I).isRegister,e=this.loginBtn.position.y;this.registerBtn.active=t,t?this.loginBtn.setPosition(-145,e,0):this.loginBtn.setPosition(0,e,0)}adjustDownloadBtn(){let t=!c.isNative,e=""!=m.androidUrl,n=""!=m.iosUrl1||""!=m.iosUrl2;!t||c.os!=c.OS.ANDROID&&c.os!=c.OS.IOS?(this.androidBtn.active=t&&e,this.iosBtn.active=t&&n):c.os==c.OS.ANDROID&&e?(this.androidBtn.active=!0,this.iosBtn.removeFromParent()):c.os==c.OS.IOS&&n&&(this.iosBtn.active=!0,this.androidBtn.removeFromParent())}closeLoadingView(){let t=N.getInstance().getUI(L.UILogin);t&&t.close()}onClose(){super.onClose(),N.getInstance().closeToUI(L.UIRegister)}onGetTaskState(){this.isAllDataReady=!0}closeThis(){}onTouch(t){let e=t.currentTarget;switch(e!=this.loginBtn&&T(),e){case this.loginBtn:this.login();break;case this.registerBtn:this.openRegister();break;case this.languageBtn:this.languageBtnClick();break;case this.iosBtn:N.getInstance().open(L.UIQRCode);break;case this.androidBtn:window.open(m.androidUrl);break;case this.audioBtn.node:this.onSound(e);break;case this.fullScreenBtn:this.onFullScreen()}}login(){if(!this.loginBtn.getComponent(h).enabled)return;E.Instance().playEffect(w.sound_click_login);let t=this.accountEditBox.string.trim(),e=this.passEditBox.string.trim();""!=t?""!=e?(O.showLoading(),f.login(m.osid,"",t,e)):S.showTips(v.getString(130042)):S.showTips(v.getString(130040))}onFullScreen(){b.isFullScreen?b.exitFullScreen():b.setFullScreen()}onSound(t){let e=t.getComponent(s).isChecked;this.playSoundIcon.node.active=e,E.Instance().setSoundEnabled(e),E.Instance().setMusicEnabled(e)}onEnable(){this.addEvent(),this.closeLoadingView()}onDisable(){this.removeEvent()}addEvent(){this.loginBtn.on(a.EventType.TOUCH_END,this.onTouch,this),this.registerBtn.on(a.EventType.TOUCH_END,this.onTouch,this),this.languageBtn.on(a.EventType.TOUCH_END,this.onTouch,this),this.iosBtn.on(a.EventType.TOUCH_END,this.onTouch,this),this.androidBtn.on(a.EventType.TOUCH_END,this.onTouch,this),this.fullScreenBtn.on(a.EventType.TOUCH_END,this.onTouch,this),this.audioBtn.node.on(a.EventType.TOUCH_END,this.onTouch,this),C.on(p.LOGIN_SUCCESS,this.loginCallback,this)}removeEvent(){this.loginBtn.off(a.EventType.TOUCH_END,this.onTouch,this),this.registerBtn.off(a.EventType.TOUCH_END,this.onTouch,this),this.languageBtn.off(a.EventType.TOUCH_END,this.onTouch,this),this.iosBtn.off(a.EventType.TOUCH_END,this.onTouch,this),this.androidBtn.off(a.EventType.TOUCH_END,this.onTouch,this),this.fullScreenBtn.off(a.EventType.TOUCH_END,this.onTouch,this),this.audioBtn.node.off(a.EventType.TOUCH_END,this.onTouch,this),C.off(p.LOGIN_SUCCESS,this.loginCallback,this)}async languageBtnClick(){N.getInstance().open(L.UILanguage)}async openRegister(){let t=this.getModel(I).registerData,e=t.registerType,n=t.code,i=t.openType,o=t.confirmpwd,s=null;e==g.Close?(B.warn("注册功能已关闭"),S.showTipsById(107049)):e==g.Acount?s={openType:i,confirmpwd:o}:e==g.Mobile&&(s={data:n,openType:i,confirmpwd:o}),s&&N.getInstance().open(L.UIRegister)}loginCallback(t){if(B.debug(`loginCallback,isSucc:${t.succ}`),1==t.succ){let e=this.passEditBox.string.trim();U.instance.account=t.username,U.instance.password=e,m.gameCtrl.loginSuccess(t)}else{if(t.locktime_left){this.loginBtn.getComponent(h).enabled=!1,this.loginLb.getComponent(k).run(t.locktime_left,this.countDownCallback,"ss",this)}O.hideLoading()}}countDownCallback(){this.loginBtn.getComponent(h).enabled=!0,this.loginLb.getComponent(_).language()}onCodeError(t){S.showTipsById(11e4+t)}gameBackAndSaveMusicSwitch(t){E.Instance().setSoundEnabled(t),E.Instance().setMusicEnabled(t),this.playSoundIcon.node.active=t,1==E.Instance().musicEnabled?this.audioBtn.isChecked=!1:this.audioBtn.isChecked=!0}getModel(t){return m.gameCtrl.getModel(t)}}).prototype,"accountEditBox",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=e($.prototype,"passEditBox",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=e($.prototype,"rememberPW",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=e($.prototype,"loginBtn",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e($.prototype,"loginLb",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e($.prototype,"iosBtn",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=e($.prototype,"androidBtn",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e($.prototype,"fullScreenBtn",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=e($.prototype,"audioBtn",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e($.prototype,"playSoundIcon",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),at=e($.prototype,"registerBtn",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lt=e($.prototype,"languageBtn",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),rt=e($.prototype,"versionLabel",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=$))||Q));i._RF.pop()}}}));

System.register("chunks:///_virtual/UILoginFull.ts",["cc","./UILogin.ts"],(function(c){"use strict";var t,e,s;return{setters:[function(c){t=c.cclegacy,e=c._decorator},function(c){s=c.default}],execute:function(){var n;t._RF.push({},"56c46qcqcdAUpI16DWKOeIp","UILoginFull",void 0);const{ccclass:o,property:u}=e;c("default",o(n=class extends s{closeThis(){this.close()}})||n);t._RF.pop()}}}));

System.register("chunks:///_virtual/UILuckyDraw.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageLabel.ts","./LanguageSprite.ts","./EnumDefine.ts","./EventDefine.ts","./UIDefined.ts","./UIManager.ts","./UIView.ts","./Global.ts","./CustomEventMgr.ts","./ResManager.ts","./LuckDrawModel.ts","./MsgHandler.ts"],(function(e){"use strict";var t,i,n,o,a,l,r,s,u,c,p,g,h,m,d,y,b,f,C,I,k,v,N,L,w;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Node,a=e.Label,l=e.Sprite,r=e.sp,s=e._decorator,u=e.color,c=e.isValid,p=e.instantiate,g=e.UITransform,h=e.Input},function(e){m=e.LanguageLabel},function(e){d=e.LanguageSprite},function(e){y=e.ELanguage_Type},function(e){b=e.CMDEvent},function(e){f=e.UIID},function(e){C=e.UIManager},function(e){I=e.UIView},function(e){k=e.Global},function(e){v=e.CustomEventMgr},function(e){N=e.ResManager},function(e){L=e.LuckDrawModel},function(e){w=e.default}],execute:function(){var S,_,D,B,E,M,T,U,z,A,R,j,x,O,F,H,V,G,P,J,W,X,q,K,Q;n._RF.push({},"ab654/2pTBJAIVEFaA3v8xW","UILuckyDraw",void 0);const{ccclass:Y,property:Z}=s;e("UILuckyDraw",(S=Y("UILuckyDraw"),_=Z({displayName:"关闭按钮",type:o}),D=Z({displayName:"活动时间",type:a}),B=Z({displayName:"规则",type:a}),E=Z({displayName:"背景图片",type:l}),M=Z({displayName:"奖品展示",type:o}),T=Z({displayName:"奖品展示",type:o}),U=Z({displayName:"奖品展示",type:o}),z=Z({displayName:"规则说明",type:o}),A=Z({displayName:"title",type:o}),R=Z({displayName:"Skeleton",type:r.Skeleton}),j=Z({displayName:"Skeleton",type:r.Skeleton}),S((F=t((O=class extends I{constructor(...e){super(...e),i(this,"closeBtn",F,this),i(this,"adtiviTime",H,this),i(this,"Rule",V,this),i(this,"Bg",G,this),i(this,"txt",P,this),i(this,"item_temp",J,this),i(this,"item_scrollbar",W,this),i(this,"rule_produce",X,this),i(this,"title",q,this),i(this,"outSkeleton",K,this),i(this,"daijiSkeleton",Q,this)}start(){this.bindEvents(),w.Instance().c2sAwardInfo()}onOpenAniOver(){this.bAni=!0}opcityIn(e=null){let t=this.background.getChildByName("anniu"),i=this.background.getChildByName("Node"),n=this.background.getChildByName("jinbidui"),o=this.background.getChildByName("juese"),a=0;t.getComponent(l).color=u(255,255,255,a),i.getComponent(l).color=u(255,255,255,a),n.getComponent(l).color=u(255,255,255,a),o.getComponent(l).color=u(255,255,255,a),this.scheduleOnce((()=>{let e=()=>{a+=8,a>=255&&(a=255,this.unschedule(e)),t.getComponent(l).color=u(255,255,255,a),i.getComponent(l).color=u(255,255,255,a),n.getComponent(l).color=u(255,255,255,a),o.getComponent(l).color=u(255,255,255,a)};this.schedule(e,.02)}),.2)}changeId(e){let t="150007";switch(e){case"2":t=(parseInt(t)+1).toString();break;case"3":t=(parseInt(t)+2).toString();break;case"4":t=(parseInt(t)+3).toString();break;case"5":t=(parseInt(t)+4).toString()}return t}init(){this.node.active&&(this.node.active=!1);let e=k.gameCtrl.getModel(L).ListSort,t=k.gameCtrl.getModel(L).activeTime;this.adtiviTime.string=t;let i=k.gameCtrl.getModel(L).luckActivityInfo;this.Rule.string=i.active_rule;let n=i.ad_img;N.Instance().loadRemoteImg(n,!0,(e=>{c(this.Bg)&&e&&(this.Bg.spriteFrame=e,this.node.active=!0,this.outSkeleton.setAnimation(0,"tanchudonghua",!1),this.opcityIn())}));let o=0;e.map(((t,i)=>{let n=p(this.item_temp);n.active=!0,n.getChildByName("g").getComponent(m).dataID=parseInt(this.changeId(e[i].level+"")),n.getChildByName("g").getComponent(m).updateLabel(),n.getChildByName("gx").getComponent(a).string="   "+e[i].name,n.parent=this.txt,o+=50})),this.txt.getComponent(g).height=o+20,this.outSkeleton.setCompleteListener((()=>{this.daijiSkeleton.setAnimation(0,"daijidonghua",!0)}))}onLoad(){super.onLoad(),this.node.active=!1}onOpen(){this.rule_produce.on(h.EventType.TOUCH_END,(()=>{this.openRule()}),this);let e=[y.CN,y.EN];this.title.getComponent(d).setLanguageTypeArr(e)}bindEvents(){this.closeBtn.on(o.EventType.TOUCH_END,(()=>{this.close(),v.fire(b.CLOSE_BOX_CMD)}),this)}openList(e,t){C.getInstance().open(f.UILuckyDrawAwardList,t)}async openRule(){let e=k.gameCtrl.getModel(L).luckActivityInfo,t=[y.CN,y.EN],i={content:e.active_rule,singleBtn:!0,spriteTitleTypes:t,spriteTitleName:"swcj_guizeshuoming"};C.getInstance().open(f.UIAlert,i)}onClose(){this.bAni=!1}}).prototype,"closeBtn",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(O.prototype,"adtiviTime",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(O.prototype,"Rule",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(O.prototype,"Bg",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(O.prototype,"txt",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=t(O.prototype,"item_temp",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=t(O.prototype,"item_scrollbar",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=t(O.prototype,"rule_produce",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(O.prototype,"title",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=t(O.prototype,"outSkeleton",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=t(O.prototype,"daijiSkeleton",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=O))||x));n._RF.pop()}}}));

System.register("chunks:///_virtual/UILuckyDrawAwardList.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageLabel.ts","./LanguageSprite.ts","./EnumDefine.ts","./EventDefine.ts","./super-layout.ts","./UIView.ts","./CustomEventMgr.ts","./MsgHandler.ts","./LuckDrawRanking.ts"],(function(t){"use strict";var e,i,n,a,r,s,o,l,u,c,h,p,g,f,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,r=t.ScrollView,s=t._decorator},function(t){o=t.LanguageLabel},function(t){l=t.LanguageSprite},function(t){u=t.ELanguage_Type},function(t){c=t.EventType},function(t){h=t.SuperLayout},function(t){p=t.UIView},function(t){g=t.CustomEventMgr},function(t){f=t.default},function(t){b=t.LuckDrawRanking}],execute:function(){var m,d,y,L,w,D,v,k,I,_,C,E,N,A,z,T,U,R,B;n._RF.push({},"f1724hBXXhHUbiKkqDK/bka","UILuckyDrawAwardList",void 0);const{ccclass:S,property:H}=s;t("UILuckyDrawAwardList",(m=S("UILuckyDrawAwardList"),d=H(a),y=H(a),L=H(r),w=H(a),D=H(a),v=H(a),k=H(a),I=H(h),m((E=e((C=class extends p{constructor(...t){super(...t),i(this,"item",E,this),i(this,"content",N,this),i(this,"scroll",A,this),i(this,"closeBtn",z,this),i(this,"changeName_1",T,this),i(this,"changeName_2",U,this),this.listPoor=[],this.itemarr=[],i(this,"title",R,this),this.brake=0,this.ListData=null,this.listType=null,this.Data=null,this.datas=[],i(this,"layout",B,this)}onLoad(){}start(){}openUi(t){}onClose(){g.off(c.WinAwardInfo,this.creatList,this)}onOpenAniOver(){}creatList(t){if(this.Data=t,null!=this.Data){let t=this.Data;if(0==t.mode.length)return;this.ListData=t,this.datas=t.mode,this.layout.total(this.datas.length)}}onOpen(...t){let e=t[0],i=[u.CN,u.EN];switch(this.title[0].getComponent(l).setLanguageTypeArr(i),this.title[1].getComponent(l).setLanguageTypeArr(i),f.Instance().c2sWinAwardInfo(e),this.listType=e,e){case"1":this.changeName_1.getComponent(o).dataID=150014,this.changeName_2.getComponent(o).dataID=150015,this.title[1].active=!0;break;case"0":this.changeName_1.getComponent(o).dataID=150014,this.changeName_2.getComponent(o).dataID=140104,this.title[0].active=!0}g.on(c.WinAwardInfo,this.creatList,this),this.bindEvents()}bindEvents(){this.closeBtn.on(a.EventType.TOUCH_END,(()=>{this.close()}),this)}update(t){}onRefreshEvent(t,e){var i;this.datas[e]||console.error(e,this.datas),null==(i=t.getComponent(b))||i.initRanking(e+1,this.ListData,this.listType)}}).prototype,"item",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(C.prototype,"content",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(C.prototype,"scroll",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(C.prototype,"closeBtn",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(C.prototype,"changeName_1",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(C.prototype,"changeName_2",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(C.prototype,"title",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),B=e(C.prototype,"layout",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=C))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/UILuckyDrawChoose.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageSprite.ts","./EnumDefine.ts","./EventDefine.ts","./ResDefine.ts","./UIView.ts","./Global.ts","./AudioManager.ts","./CustomEventMgr.ts","./ResManager.ts","./LuckDrawModel.ts","./MsgHandler.ts"],(function(e){"use strict";var t,r,i,s,n,a,o,h,l,u,c,m,p,d,g,f,y,b,w,A,C,N,v,E;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,s=e.Node,n=e.Label,a=e._decorator,o=e.isValid,h=e.find,l=e.Sprite,u=e.tween,c=e.UIOpacity,m=e.Vec3},function(e){p=e.LanguageSprite},function(e){d=e.ELanguage_Type},function(e){g=e.EventType,f=e.CMDEvent},function(e){y=e.SoundDefine},function(e){b=e.UIView},function(e){w=e.Global},function(e){A=e.default},function(e){C=e.CustomEventMgr},function(e){N=e.ResManager},function(e){v=e.LuckDrawModel},function(e){E=e.default}],execute:function(){var I,D,_,L,S,T,k,B,F,M,x,G,U,O,z,R,H,V,q;i._RF.push({},"94a78J+4DlOWqMrqfFa6Sh4","UILuckyDrawChoose",void 0);const{ccclass:P,property:j}=a;e("UILuckyDrawChoose",(I=P("UILuckyDrawChoose"),D=j(s),_=j(s),L=j(s),S=j(s),T=j(n),k=j(s),B=j({displayName:"closeBtn",type:s}),F=j({displayName:"title",type:s}),I((G=t((x=class extends b{constructor(...e){super(...e),this.treasureNumber=null,r(this,"treaSureItemArr",G,this),r(this,"show",U,this),r(this,"goodGet",O,this),r(this,"thanks",z,this),r(this,"award_name",R,this),r(this,"showAward",H,this),r(this,"closeBtn",V,this),r(this,"title",q,this),this.spriteFrameArray=[],this.nameArray=[],this.sprindex=0,this.already=!1}start(){this.bindEvents()}onOpen(e){this.closeBtn.active=!1;let t=[d.CN,d.EN];this.title.getComponent(p).setLanguageTypeArr(t),C.on(g.GetTreasureChest,this.openBox,this),this.closeBtn.on(s.EventType.TOUCH_END,(()=>{this.close(),C.fire(f.CLOSE_BOX_CMD)}),this),this.node.on(s.EventType.TOUCH_END,(()=>{A.Instance().playEffect(y.sound_click_btn)}))}onClose(e){C.off(g.GetTreasureChest,this.openBox,this)}init(){let e=w.gameCtrl.getModel(v).rewardArr;for(let t=0;t<6;t++){let r=e[t].icon;N.Instance().loadRemoteImg(r,!0,(e=>{this.spriteFrameArray[t]=e,e.addRef()})),this.nameArray[t]=e[t].name}}bindEvents(){for(let e=0;e<this.treaSureItemArr.length;e++)this.treaSureItemArr[e].on(s.EventType.TOUCH_END,this.giftAni,this)}goodShow(){if(!this.already)return;this.closeBtn.active=!0,this.showAward.active=!0,this.showAward.children.map(((e,t)=>{if(o(e)){let r=h("Node/treasure",e);if(r&&r.getComponent(l)&&o(this.spriteFrameArray[t])){r.getComponent(l).spriteFrame=this.spriteFrameArray[t];let i=h("anniudi/Label",e);i&&i.getComponent(n)&&(i.getComponent(n).string=this.nameArray[t]),t==this.treasureNumber&&e.getChildByName("get")&&(e.getChildByName("get").active=!0)}}})),u(this.show.getComponent(c)).to(1,{opacity:0}).call((()=>{this.show.active=!1})).start(),u(this.goodGet.getComponent(c)).to(1,{opacity:0}).call((()=>{this.goodGet.active=!1})).start(),u(this.showAward.getComponent(c)).to(1,{opacity:255}).start()}giftAni(e){for(let e=0;e<this.treaSureItemArr.length;e++)this.treaSureItemArr[e].off(s.EventType.TOUCH_END,this.giftAni,this);this.treaSureItemArr.map(((t,r)=>{e.target!=t||(this.treasureNumber=r)})),w.gameCtrl.getModel(v).setSelectIdx=this.treasureNumber,E.Instance().c2sGetTreasureChest()}openBox(){A.Instance().playEffect(y.sound_task_box_open);let e=w.gameCtrl.getModel(v).rewardArr;if(this.nameArray.map(((t,r)=>{t==e[this.treasureNumber].name&&(this.sprindex=r)})),0==this.sprindex){Log.w("if 1");let t=e[this.treasureNumber].icon;N.Instance().loadRemoteImg(t,!0,(e=>{if(!o(this.node)||!e||!this.thanks)return;Log.w("异步进入");let t=this.thanks.getComponent(l);t&&this.spriteFrameArray[this.treasureNumber]&&(t.spriteFrame=e,this.spriteFrameArray[this.treasureNumber]=e,e.addRef(),this.already=!0)})),this.award_name.string=e[this.treasureNumber].name,this.nameArray[this.treasureNumber]=e[this.treasureNumber].name}else Log.w("else  0"),this.thanks.getComponent(l).spriteFrame=this.spriteFrameArray[this.sprindex],this.award_name.string=this.nameArray[this.sprindex],this.spriteFrameArray[this.treasureNumber]=this.spriteFrameArray[this.sprindex],this.nameArray[this.treasureNumber]=this.nameArray[this.sprindex],this.already=!0;this.goodGet.active=!0,this.goodGet.on(s.EventType.TOUCH_END,this.goodShow,this),this.goodGet.getChildByName("guid").active=!0,this.goodGet.getChildByName("thanks").scale=new m(1,1,1)}}).prototype,"treaSureItemArr",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),U=t(x.prototype,"show",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(x.prototype,"goodGet",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(x.prototype,"thanks",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(x.prototype,"award_name",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(x.prototype,"showAward",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(x.prototype,"closeBtn",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(x.prototype,"title",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=x))||M));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIManager.ts",["cc","./UIView.ts","./Singleton.ts","./Eventer.ts","./Events.ts","./UIMask.ts","./ResManager.ts"],(function(e){"use strict";var i,t,n,s,o,u,a,l,r,h,d,c,g,p,I,f,C,k,v,w,S,U,m,V;return{setters:[function(e){i=e.cclegacy,t=e.screen,n=e.view,s=e.ResolutionPolicy,o=e.Node,u=e.UITransform,a=e.BlockInputEvents,l=e.Tween,r=e.warn,h=e.Prefab,d=e.resources,c=e.director,g=e.isValid,p=e.find,I=e.tween,f=e.v3,C=e.instantiate},function(e){k=e.UIZIndex,v=e.UIView},function(e){w=e.Singleton},function(e){S=e.Eventer},function(e){U=e.Events},function(e){m=e.UIMask},function(e){V=e.ResManager}],execute:function(){i._RF.push({},"d6954qvu3hDWb/AET111Mep","UIManager",void 0);class b extends(w()){constructor(...e){super(...e),this.bgCount=0,this.isClosing=!1,this.isOpening=!1,this.uiCache={},this.uiStack=[],this.uiOpenQueue=[],this.uiCloseQueue=[],this.uiConf={},this.aniCallback=null,this.uiLayer=null}init(e){this.uiConf=e,t.windowSize.height/t.windowSize.width>=2/3&&n.setResolutionPolicy(s.FIXED_WIDTH)}setUIConf(e){if(e)for(let i in e)this.uiConf[i]=e[i]}addPreventTouch(e){let i=new o;return i.name="preventTouch",i.addComponent(u).setContentSize(n.getVisibleSize()),i.addComponent(a),i.parent=e??this.uiLayer.node,i}removePreventTouch(e){let i=(e=e??this.uiLayer.node).getChildByName("preventTouch");i&&i.destroy()}autoExecNextUI(){if(this.uiCloseQueue.length>0){let e=this.uiCloseQueue[0];this.uiCloseQueue.splice(0,1),this.closeToUI(e)}if(this.uiOpenQueue.length>0){let e=this.uiOpenQueue[0];this.uiOpenQueue.splice(0,1),this.open(e.uiId,e.uiArgs)}}autoExecAnimation(e,i,t){let n=()=>{this.removePreventTouch(e.node),t()};e.bAni&&e.background?(l.stopAllByTarget(e.node),this.aniCallback&&this.aniCallback(),i?this.showView(e,n):e.bAni?(this.addPreventTouch(e.node),this.hideView(e,n)):t()):t()}autoLoadRes(e,i){i()}getOrCreateUI(e,i,t){let n=this.uiCache[e];if(n)return void i(n);let s=this.uiConf[e].prefab;if(null==s)return r(`getOrCreateUI ${e} fail, prefab conf not found!`),void i(null);let o=o=>{let u=C(o);return null==u?(r(`getOrCreateUI instantiate ${e} fail, path: ${s}`),void i(null)):(n=u.getComponent(v),null==n?(r(`getOrCreateUI getComponent ${e} fail, path: ${s}`),u.destroy(),void i(null)):void this.autoLoadRes(n,(()=>{n.init(t),i(n)})))},u=this.uiConf[e].bundle;u?V.Instance().load(u,s,h,null,(e=>{if(!(e&&e.data&&e.data instanceof h))return r(`load prefab : ${s} fail`),void i(null);o(e.data)})):d.load(s,((t,n)=>{if(t)return r(`CreateUI loadRes ${e} fail, path: ${s} error: ${t}`),void i(null);o(n)}))}onUIOpen(e,i,t,n){if(null==i)return;t.uiView=i,i.node.active=!0,this.setSiblingIndex(i.node,t.zOrder||this.uiStack.length),i.uiId=e;let s=c.getScene().getChildByName("Canvas");g(this.uiLayer)&&(s=this.uiLayer.node),i.node.parent=s,S.getInstance().emit(U.UIOpenBefore,e),i.onOpen(n),this.addUIViewFunc(i),this.autoExecAnimation(i,!0,(()=>{this.aniCallback=null,g(i.node)&&(i.onOpenAniOver(),S.getInstance().emit(U.UIOpen,e))}))}addUIViewFunc(e){let i=p("background",e.node);i&&!e.background&&(e.background=i),e.quickClose&&e.background&&e.background.addComponent(a),this.addMask(e)}async open(e,i=null){let t={uiId:e,uiArgs:i,uiView:null};if(this.isOpening||this.isClosing)return void this.uiOpenQueue.push(t);let n=this.getUIIndex(e);if(-1!=n){let e=this.uiStack[n];return void(e&&e.uiView&&g(e.uiView.node)&&(e.uiView.node.parent=this.uiLayer.node,e.uiView.node.active=!0))}let s=this.getTopUI();return s&&s.node.active?t.zOrder=s.node.getSiblingIndex()+1:t.zOrder=this.uiStack.length+1,this.isOpening=!0,new Promise(((n,s)=>{this.getOrCreateUI(e,(o=>{if(t.isClose||null==o)return r(`getOrCreateUI ${e} fail! close state : ${t.isClose} , uiView : ${o}`),this.isOpening=!1,void(t.preventNode&&(t.preventNode.destroy(),t.preventNode=null));this.uiStack.push(t),this.onUIOpen(e,o,t,i),this.isOpening=!1,this.autoExecNextUI(),g(o)?n(o):s()}),i)}))}replace(e,i=null){this.close(this.uiStack[this.uiStack.length-1].uiView),this.open(e,i)}addMask(e){if(!e||!e.isMask||!e.node)return;let i=this.uiLayer.getComponentInChildren(m);i&&i.addMask(e)}removeMask(){if(!g(this.uiLayer))return;let e=this.uiLayer.getComponentInChildren(m);e&&e.removeMask()}close(e){let i;if(e){for(let t=this.uiStack.length-1;t>=0;t--){let n=this.uiStack[t];if(n.uiView===e){i=n,this.uiStack.splice(t,1);break}}if(void 0===i)return}else i=this.uiStack.pop();let t=i.uiId,n=i.uiView;i.isClose=!0,this.isClosing=!0,null!=n&&this.autoExecAnimation(n,!1,(()=>{this.isClosing=!1,this.aniCallback=null,n.onClose(),this.removeMask(),S.getInstance().emit(U.UIClose,t),g(n.node)&&(n.cache?(this.uiCache[t]=n,n.node.removeFromParent()):n.node.destroy()),this.autoExecNextUI()}))}closeAll(e){let i=i=>{if(!e)return!1;for(let t of e)if(i==t)return!0;return!1};for(var t=0;t<this.uiStack.length;t++){let e=this.uiStack[t];i(e.uiId)||(e.uiView.close(),t--)}this.uiOpenQueue=[],this.uiCloseQueue=[],this.isOpening=!1,this.isClosing=!1}closeToUI(e){let i=this.getUIIndex(e);if(-1==i)return;let t=this.uiStack[i];t&&this.close(t.uiView)}clearCache(){for(const e in this.uiCache){let i=this.uiCache[e];g(i.node)&&i.node.destroy()}this.uiCache={}}isTopUI(e){return 0!=this.uiStack.length&&this.uiStack[this.uiStack.length-1].uiId==e}getUI(e){for(let i=0;i<this.uiStack.length;i++){let t=this.uiStack[i];if(e==t.uiId)return t.uiView}return null}getTopUI(){for(let e=this.uiStack.length-1;e>=0;e--){let i=this.uiStack[e];if(i.uiView.node.getSiblingIndex()<k.notice)return i.uiView}return null}getUIIndex(e){for(let i=0;i<this.uiStack.length;i++){const t=this.uiStack[i];if(e==t.uiId)return g(t.uiView.node)?i:(this.uiStack.splice(i,1),-1)}return-1}checkMaskView(){for(let e=this.uiStack.length-1;e>=0;e--){let i=this.uiStack[e];if(i&&i.uiView&&g(i.uiView.node)&&i.uiView.node.active&&i.uiView.isMask)return i.uiView}return null}showView(e,i){(()=>{e.node&&this.playCommonPopUpAni(e.node,(()=>{i&&i()}))})(),this.aniCallback=i}hideView(e,i){e&&e.node&&(this.playCommonPopBackAni(e.node,(()=>{i&&i()})),this.aniCallback=i)}playCommonPopUpAni(e,i=null){I(e).stop();e.scale=f(.01,.01,1),I(e).to(.283,{scale:f(1.1,1.1,1)},{easing:"backOut"}).to(.134,{scale:f(.98,.98,1)}).to(.084,{scale:f(1,1,1)}).call((()=>{i&&i()})).start()}playCommonPopBackAni(e,i=null){I(e).stop(),I(e).to(.2,{scale:f(.01,.01,1)}).call((()=>{i&&i()})).start()}setSiblingIndex(e,i){e.setSiblingIndex(i),this.uiLayer.scheduleOnce((()=>{this.updateZIndex(this.uiLayer.node)}))}updateZIndex(e){let i=e.children.concat();i.sort(((e,i)=>(null==e.zIndex&&(e.zIndex=0),null==i.zIndex&&(i.zIndex=0),e.zIndex-i.zIndex)));let t=i.length;for(const e of i)e.setSiblingIndex(t)}}e("UIManager",b),i._RF.pop()}}}));

System.register("chunks:///_virtual/UIMask_I.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var r,i,e,s,p,a,o,c;return{setters:[function(t){r=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){e=t.cclegacy,s=t.Enum,p=t.Mask,a=t.CCInteger,o=t._decorator,c=t.UITransform}],execute:function(){var n,h,u,y,_,g;t("GRAPHCIS_TYPE",void 0),e._RF.push({},"7b9487gRCNIVpHmVXgI5Ayo","UIMask_I",void 0);const{ccclass:d,property:l}=o;let I;!function(t){t[t.ANGLE_ROUNDED=0]="ANGLE_ROUNDED"}(I||(I=t("GRAPHCIS_TYPE",{})));t("UIMask_I",(n=d("UIMask_I"),h=l({displayName:"graphcisType",type:s(I),tooltip:"GRAPHICS_STENCIL 的类型设置",visible:function(){return this.type===p.Type.GRAPHICS_STENCIL}}),u=l({displayName:"radius",type:a,tooltip:"圆角半径",visible:function(){return this.type===p.Type.GRAPHICS_STENCIL&&this._graphcisType===I.ANGLE_ROUNDED}}),n((r((_=class extends p{constructor(...t){super(...t),this._graphcisType=void 0,i(this,"_radius",g,this)}get graphcisType(){return this._graphcisType}set graphcisType(t){this._graphcisType!==t&&(this._graphcisType=t,this.drawGraphicsMask())}set radius(t){this._radius=t,this.drawGraphicsMask()}get radius(){return this._radius}start(){this.drawGraphicsMask()}drawGraphicsMask(){if(!this._graphics||this._type!==p.Type.GRAPHICS_STENCIL)return;this._graphics.clear();const t=this.node.getComponent(c),r=t.contentSize,i=r.width,e=r.height,s=t.anchorPoint,a=-i*s.x,o=-e*s.y;this._graphics.roundRect(a,o,i,e,this.radius),this._graphics.fill()}}).prototype,"graphcisType",[h],Object.getOwnPropertyDescriptor(_.prototype,"graphcisType"),_.prototype),g=r(_.prototype,"_radius",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),r(_.prototype,"radius",[u],Object.getOwnPropertyDescriptor(_.prototype,"radius"),_.prototype),y=_))||y));e._RF.pop()}}}));

System.register("chunks:///_virtual/UIMask.ts",["cc","./UIManager.ts"],(function(e){"use strict";var t,n,s,i,o,a,d,c,r;return{setters:[function(e){t=e.cclegacy,n=e.Component,s=e.Node,i=e.UIOpacity,o=e.UITransform,a=e.view,d=e.isValid,c=e._decorator},function(e){r=e.UIManager}],execute:function(){var h;t._RF.push({},"1ec1a5TQxtBjbbiU7NgmgFr","UIMask",void 0);const{ccclass:l,menu:u}=c;e("UIMask",l(h=u("ui/common/UIMask")(h=class extends n{addTouch(e){var t;null!=(t=this.node)&&t.isValid&&e.quickClose&&(this.node.targetOff(s.EventType.TOUCH_START),this.node.on(s.EventType.TOUCH_START,(()=>{r.getInstance().close(e)}),this))}addMask(e){var t;null!=(t=this.node)&&t.isValid&&(this.node.getComponent(i).opacity=150,this.resetIndex(e),this.addTouch(e),this.node.getComponent(o).setContentSize(a.getVisibleSize()))}removeMask(){var e;let t=r.getInstance().checkMaskView();null!=(e=this.node)&&e.isValid&&(t&&d(t.node)&&t.node.active&&t.isMask?this.resetIndex(t):(this.node.getComponent(i).opacity=1,this.node.active=!1))}resetIndex(e){this.node.active=!0,this.node.zIndex=e.node.zIndex;let t=e.node.getSiblingIndex();this.node.setSiblingIndex(t),e.node.setSiblingIndex(t+1),this.addTouch(e)}})||h)||h);t._RF.pop()}}}));

System.register("chunks:///_virtual/UIMaskSlider.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Events.ts"],(function(e){"use strict";var r,s,i,t,o,n,a,l;return{setters:[function(e){r=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){i=e.cclegacy,t=e.UITransform,o=e.Slider,n=e._decorator,a=e.Component},function(e){l=e.Events}],execute:function(){var p,d,u,h,g,c,S,f,m,y,b;i._RF.push({},"e8593Z/0k1AP6FLYil4a+hT","UIMaskSlider",void 0);const{ccclass:k,property:M,menu:v,disallowMultiple:w}=n;e("UIMaskSlider",(p=k("UIMaskSlider"),d=v("ui/basic_ui/UIMaskSlider.ts"),u=w(!0),h=M({displayName:"progressMask",type:t}),g=M({displayName:"progressBar",type:t}),c=M({displayName:"slider",type:o}),p(S=d(S=u((m=r((f=class extends a{constructor(...e){super(...e),s(this,"progressMask",m,this),s(this,"progressBar",y,this),s(this,"slider",b,this),this.progressChangedFun=void 0}start(){}onEnable(){this.addToStage()}onDisable(){this.removeFromStage()}onSlide(e){this.progressMask.width=this.progressBar.width*e.progress,this.progressChangedFun&&this.progressChangedFun(e.progress,this)}setProgress(e){e>1&&(e=1),e<0&&(e=0),this.slider.progress=e,this.progressMask.width=this.progressBar.width*e}get progress(){return this.slider.progress}addToStage(){this.slider.node.on(l.SliderEvent,this.onSlide,this)}removeFromStage(){this.slider.node.off(l.SliderEvent,this.onSlide,this)}}).prototype,"progressMask",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=r(f.prototype,"progressBar",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=r(f.prototype,"slider",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=f))||S)||S)||S));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIModify.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./UIButton.ts","./UIPasswordInputText.ts","./UIView.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./MsgHandler.ts","./StringUtil.ts","./Language.ts","./SocketManager.ts","./ProtDefine.ts","./UIManager.ts","./UIDefined.ts"],(function(t){"use strict";var s,i,n,e,o,r,a,d,l,u,c,g,f,w,h,p,B,P,E;return{setters:[function(t){s=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,e=t._decorator,o=t.isValid},function(t){r=t.CMDEvent},function(t){a=t.UIButton},function(t){d=t.UIPasswordInputText},function(t){l=t.UIView},function(t){u=t.default},function(t){c=t.CustomEventMgr},function(t){g=t.default},function(t){f=t.default},function(t){w=t.Language,h=t.default},function(t){p=t.default},function(t){B=t.Protocol},function(t){P=t.UIManager},function(t){E=t.UIID}],execute:function(){var I,y,x,m,C,b,M,U,D,v,S,k,T;n._RF.push({},"749a8rut6FIJ4D6M0sznSrO","UIModify",void 0);const{ccclass:z,property:_}=e;t("default",(I=z("UIModify"),y=_({displayName:"closeBtn",type:a,tooltip:"关闭按钮"}),x=_({displayName:"oldPasswordEditBox",type:d,tooltip:"原密码"}),m=_({displayName:"newPasswordEditBox",type:d,tooltip:"新密码"}),C=_({displayName:"newPasswordConfirmEditBox",type:d,tooltip:"再次输入新密码"}),b=_({displayName:"okBtn",type:a}),I((D=s((U=class extends l{constructor(...t){super(...t),i(this,"closeBtn",D,this),i(this,"oldPasswordEditBox",v,this),i(this,"newPasswordEditBox",S,this),i(this,"newPasswordConfirmEditBox",k,this),i(this,"okBtn",T,this)}init(...t){this.okBtn.touchEndedFun=this.onOk.bind(this),this.closeBtn.touchEndedFun=this.onCloseBtn.bind(this),p.getInstance().registerMsgListener(B.ChangePassWD,this.onRecvMsg,this)}onClose(){p.getInstance().unregisterMsgListener(B.ChangePassWD,this),c.fire(r.CLOSE_EDIT_PASS_CMD),P.getInstance().open(E.UIProfile)}onOk(t){if(!this.oldPasswordEditBox.string||this.oldPasswordEditBox.string.length<1)u.showTipsById(105006);else if(!this.newPasswordEditBox.string||this.newPasswordEditBox.string.length<1)u.showTipsById(105008);else if(!this.newPasswordConfirmEditBox.string||this.newPasswordConfirmEditBox.string.length<1)u.showTipsById(107012);else if(f.checkPassWord(this.newPasswordConfirmEditBox.string))this.newPasswordEditBox.string!=this.oldPasswordEditBox.string?this.newPasswordEditBox.string==this.newPasswordConfirmEditBox.string?g.Instance().c2schangepasswd(this.oldPasswordEditBox.string,this.newPasswordEditBox.string,this.newPasswordConfirmEditBox.string):u.showTipsById(110007):u.showTipsById(107013);else{let t=w.getString(107015)+h.getInstance().language.formatString(w.getString(107014),["6-16"]);u.showTips(t)}}onCloseBtn(t){this.close()}onRecvMsg(t){o(this.node)&&t&&1==t.succ&&this.close()}}).prototype,"closeBtn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=s(U.prototype,"oldPasswordEditBox",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=s(U.prototype,"newPasswordEditBox",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=s(U.prototype,"newPasswordConfirmEditBox",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=s(U.prototype,"okBtn",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=U))||M));n._RF.pop()}}}));

System.register("chunks:///_virtual/UINotice.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LogUtil.ts","./UIView.ts","./SdkManager.ts","./PRichText.ts","./NoticeItem.ts"],(function(e){"use strict";var t,n,i,r,o,c,l,s,p,a,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,r=e.Node,o=e._decorator,c=e.instantiate},function(e){l=e.default},function(e){s=e.UIView},function(e){p=e.default},function(e){a=e.PRichText},function(e){g=e.NoticeItem}],execute:function(){var f,u,h,m,d,x;i._RF.push({},"e34e79NfoVBBpeQIhKROYNL","UINotice",void 0);const{ccclass:y,property:R}=o;e("default",(f=R({displayName:"关闭按钮",type:r}),u=R({displayName:"notice item temp",type:r}),y((d=t((m=class extends s{constructor(...e){super(...e),n(this,"closeBtn",d,this),n(this,"noticeItemTemp",x,this),this.noticeItemArr=[],this.datas=null}onOpen(...e){this.datas=e[0]}onOpenAniOver(){this.initPanel(this.datas)}onClose(){}initPanel(e){for(let e=0;e<this.noticeItemArr.length;e++)this.noticeItemArr[e].destroy();this.noticeItemArr=[];for(let t=0;t<e.length;t++){let n=e[t].title,i=this.convertRichTextStr(e[t].app_content),r=c(this.noticeItemTemp);r.parent=this.noticeItemTemp.parent,r.active=!0,this.noticeItemArr.push(r),r.getComponent(g).title.string=n,i&&(r.getComponent(g).dec.string=i,r.getComponent(g).dec.node.getComponent(a).initCb(this.clickHyperLink))}}onLoad(){super.onLoad(),this.bindEvents()}onDestroy(){}start(){}bindEvents(){this.closeBtn.on(r.EventType.TOUCH_END,(()=>{this.close()}))}convertRichTextStr(e){let t=e;if(e){for(t=t.replace(new RegExp("<strong","g"),"<b"),t=t.replace(new RegExp("</strong","g"),"</b"),t=t.replace(new RegExp("<\n","g"),"<br/>"),t=t.replace(new RegExp("<font color","g"),"<color"),t=t.replace(new RegExp("</font color","g"),"</color"),t=t.replace(new RegExp("<font size","g"),"<size"),t=t.replace(new RegExp("</font size","g"),"</size"),t=t.replace(new RegExp("<em","g"),"<i"),t=t.replace(new RegExp("</em","g"),"</i"),t=t.replace(new RegExp("</a","g"),"</on");-1!=t.indexOf("<a ");){let e=["href","target","rel"],n="",i={},r=t.indexOf("<a "),o="";for(;r<t.length;r++){let c=t[r];if(o+=c," "!=c&&"="!=c){if(n+=c,">"==c)break}else{if(-1!=e.indexOf(n)){let e="",o=-1,c=-1;for(let e=r;e<t.length;e++)if('"'==t[e])if(-1==o)o=e;else if(-1==c){c=e;break}e=t.substring(o+1,c),i[n]=e}n=""}}t=t.replace(o,"<on click='clickHyperLink' param='"+JSON.stringify(i)+"'>")}return t}return null}clickHyperLink(e){let t=e.href,n=e.rel,i=e.target;l.log("clickHyperLink,href:"+t+",rel:"+n+",target:"+i),n&&"noopener"!=n?p.openWebView(t):p.openURL(t)}}).prototype,"closeBtn",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(m.prototype,"noticeItemTemp",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=m))||h));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIPasswordInputText.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,i,o,s,r,a,d,n,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.CCBoolean,r=t.EditBox,a=t.Node,d=t._decorator,n=t.Component,l=t.NodeEventType}],execute:function(){var p,h,u,c,w,P,g,y,N,b,x,T,m,f;o._RF.push({},"a959bDTQgtH1ZJMXZTR0O3N","UIPasswordInputText",void 0);const{ccclass:_,property:v,disallowMultiple:B}=d;t("UIPasswordInputText",(p=_("UIPasswordInputText"),h=B(!0),u=v({displayName:"isPassword",type:s,tooltip:"是否 Password"}),c=v({displayName:"editBox",type:r,tooltip:"输入文本"}),w=v({displayName:"showHidePwNode",type:a,tooltip:"密码按钮节点"}),P=v({displayName:"openPwNode",type:a,tooltip:"显示密码状态节点"}),g=v({displayName:"hidePwNode",type:a,tooltip:"隐藏密码状态节点"}),p(y=h((b=e((N=class extends n{constructor(...t){super(...t),i(this,"_isPassword",b,this),this.touchEndedFun=void 0,i(this,"editBox",x,this),i(this,"showHidePwNode",T,this),i(this,"openPwNode",m,this),i(this,"hidePwNode",f,this)}get isPassword(){return this._isPassword}set isPassword(t){this._isPassword=t,this.updataTxtState()}onEnable(){this.addToStage()}onDisable(){this.removeFromStage()}onTouchEnded(t){this._isPassword=!this._isPassword,this.updataTxtState(),this.touchEndedFun&&this.touchEndedFun(this)}updataTxtState(){this._isPassword?(this.editBox.inputFlag=r.InputFlag.PASSWORD,this.openPwNode.active=!1,this.hidePwNode.active=!0):(this.editBox.inputFlag=r.InputFlag.DEFAULT,this.openPwNode.active=!0,this.hidePwNode.active=!1)}get string(){return this.editBox.string}set string(t){this.editBox.string=t}get placeholder(){return this.editBox.placeholder}set placeholder(t){this.editBox.placeholder=t}addToStage(){this.showHidePwNode.on(l.TOUCH_END,this.onTouchEnded,this)}removeFromStage(){this.showHidePwNode.off(l.TOUCH_END,this.onTouchEnded,this)}}).prototype,"_isPassword",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(N.prototype,"isPassword",[u],Object.getOwnPropertyDescriptor(N.prototype,"isPassword"),N.prototype),x=e(N.prototype,"editBox",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(N.prototype,"showHidePwNode",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=e(N.prototype,"openPwNode",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=e(N.prototype,"hidePwNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=N))||y)||y));o._RF.pop()}}}));

System.register("chunks:///_virtual/UIProfile.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Img.ts","./EnumDefine.ts","./CustomEventMgr.ts","./HeadModel.ts","./MsgHandler.ts","./EventDefine.ts","./EmailModel.ts","./MainModel.ts","./AudioManager.ts","./ResDefine.ts","./ChangeAvatarHeadItem.ts","./LogUtil.ts","./EmailItem.ts","./ProfileMsgDetail.ts","./ResManager.ts","./UIManager.ts","./UIDefined.ts","./UIView.ts","./Global.ts","./HotUpdateDefine.ts"],(function(e){"use strict";var t,i,a,n,l,r,s,o,h,c,m,d,f,p,g,u,I,y,b,E,C,v,D,A,T,S,M,H,N,_,w,B,U,O;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Node,l=e.Sprite,r=e.Label,s=e.Prefab,o=e._decorator,h=e.SpriteFrame,c=e.instantiate,m=e.isValid},function(e){d=e.Img},function(e){f=e.HeadEvent,p=e.ESwitch,g=e.EMSG_ACTION},function(e){u=e.CustomEventMgr},function(e){I=e.HeadModel},function(e){y=e.default},function(e){b=e.EventType},function(e){E=e.EmailModel},function(e){C=e.MainModel},function(e){v=e.default},function(e){D=e.SoundDefine,A=e.ResDefine},function(e){T=e.ChangeAvatarHeadItem},function(e){S=e.default},function(e){M=e.EmailItem},function(e){H=e.ProfileMsgDetail},function(e){N=e.ResManager},function(e){_=e.UIManager},function(e){w=e.UIID},function(e){B=e.UIView},function(e){U=e.Global},function(e){O=e.Macro}],execute:function(){var L,P,G,R,k,z,x,F,V,W,J,Z,j,q,X,K,Q,Y,$,ee,te,ie,ae,ne,le,re,se,oe,he;a._RF.push({},"344b0ZgzvBOnJ9hJqZ9OwI4","UIProfile",void 0);const{ccclass:ce,property:me}=o;e("UIProfile",(L=ce("UIProfile"),P=me({displayName:"信息界面关闭按钮",type:n}),G=me({displayName:"密码修改按钮",type:n}),R=me({displayName:"头像",type:l}),k=me({displayName:"名字",type:r}),z=me({displayName:"logout按钮",type:n}),x=me({displayName:"event按钮",type:n}),F=me({displayName:"msgDetailNode",type:n}),V=me({displayName:"profileMsgDetailPrefab",type:s}),W=me({displayName:"profileDetail",type:n}),J=me({displayName:"左侧切换标签页",type:[n]}),Z=me({displayName:"改变头像标签tabs",type:[n]}),j=me({displayName:"headIconItems",type:[n]}),q=me({displayName:"changeAvatarItem",type:n}),L((Q=t((K=class extends B{constructor(...e){super(...e),i(this,"infoCloseBtn",Q,this),i(this,"pswModifyBtn",Y,this),i(this,"headSprite",$,this),i(this,"nameLabel",ee,this),i(this,"logoutBtn",te,this),i(this,"eventBtn",ie,this),i(this,"msgDetailNode",ae,this),i(this,"profileMsgDetailPrefab",ne,this),i(this,"profileDetail",le,this),i(this,"leftSwitchTabs",re,this),i(this,"headSelectSwitchTabs",se,this),i(this,"headIconItems",oe,this),i(this,"changeAvatarItemTemp",he,this),this.changeAvatarItemArr=[],this.emailList=[],this.emailItemArr=[],this.recylePool=[],this.isOpenAniEnd=!1,this.profileMsgDetail=null,this.curHeadTypeTabIndex=-1,this.curLeftSwitchTabIndex=-1}start(){this.bindEvents()}onOpen(...e){this.isOpenAniEnd=!1,u.on(f.CHANGE_HEAD,this.changeHead,this),u.on(f.GET_HEAD_DATA,this.onGetHeadData,this),u.on(b.OnGetEmail,this.onGetEmail,this),u.on(b.OnDealEmail,this.onDealEmail,this);let t=U.gameCtrl.getUserInfo().headIcon,i=U.gameCtrl.getUserInfo().userName;U.gameCtrl.getUserInfo().money;if(t){let e=this.getHeadResPath(t)+"/spriteFrame";N.Instance().load(O.BUNDLE_RESOURCES,e,h,(()=>{}),(e=>{var t;null==(t=this.headSprite.getComponent(d))||t.initWithSpriteFrame(e.data)})),this.headSprite.node.parent.getChildByName("default_icon").active=!1}else this.headSprite.node.parent.getChildByName("default_icon").active=!0;this.nameLabel.string=i,U.gameCtrl.getModel(C).getSwitchByType(p.Recharge),y.Instance().c2sGetOrChangeHead(),this.selectLeftTabIndex(0)}onOpenAniOver(){this.isOpenAniEnd=!0,0!=U.gameCtrl.getModel(I).headData.length&&this.onGetHeadData()}onClose(){u.off(f.CHANGE_HEAD,this.changeHead,this),u.off(b.OnGetEmail,this.onGetEmail,this),u.off(b.OnDealEmail,this.onDealEmail,this),u.off(f.GET_HEAD_DATA,this.onGetHeadData,this)}bindEvents(){this.infoCloseBtn.on(n.EventType.TOUCH_END,(()=>{v.Instance().playEffect(D.sound_close),this.close()}),this),this.logoutBtn.on(n.EventType.TOUCH_END,(()=>{v.Instance().playEffect(D.sound_click_logout),y.Instance().c2slogout(),this.close()}),this),this.pswModifyBtn.on(n.EventType.TOUCH_END,(()=>{v.Instance().playEffect(D.sound_click_btn),_.getInstance().open(w.UIModify)})),this.eventBtn.on(n.EventType.TOUCH_END,(async()=>{v.Instance().playEffect(D.sound_click_btn),_.getInstance().open(w.UIActivity)}));for(let e=0;e<this.headSelectSwitchTabs.length;e++)this.headSelectSwitchTabs[e].on(n.EventType.TOUCH_END,this.headSelectSwitchBtnClick,this);for(let e=0;e<this.leftSwitchTabs.length;e++)this.leftSwitchTabs[e].on(n.EventType.TOUCH_END,this.leftSwitchBtnClick,this)}onGetHeadData(){1==this.isOpenAniEnd&&this.selectHeadTypeTabIndex(0),this.refreshHeadIconSelect()}getHeadResPath(e){let t=e.split(".")[e.split(".").length-2],i=t.split("/")[t.split("/").length-1],a=t.split("/")[t.split("/").length-2];return A.COMMON_TEXTURE_URL+"head/"+a+"/"+i}avatarHeadItemClick(e){let t=e.getCurrentTarget();for(let e=0;e<this.changeAvatarItemArr.length;e++){let i=this.changeAvatarItemArr[e],a=!1;i==t&&(a=!0),i.getComponent(T).selectMark.active=a}let i=t.getComponent(T).url;y.Instance().c2sGetOrChangeHead(i),U.gameCtrl.getModel(I).changeHead(i),U.gameCtrl.getUserInfo().headIcon=i}headSelectSwitchBtnClick(e){v.Instance().playEffect(D.sound_click_btn);let t=e.getCurrentTarget(),i=this.headSelectSwitchTabs.indexOf(t);-1!=i&&i!=this.curHeadTypeTabIndex&&this.selectHeadTypeTabIndex(i)}selectHeadTypeTabIndex(e){v.Instance().playEffect(D.sound_click_btn);let t=U.gameCtrl.getModel(I).headData;if(0==t.length)return;let i=t[e];for(let t=0;t<this.headSelectSwitchTabs.length;t++){let i=this.headSelectSwitchTabs[t];t==e?(i.getChildByName("select").active=!0,i.getChildByName("default").active=!1):(i.getChildByName("select").active=!1,i.getChildByName("default").active=!0)}for(let e=0;e<this.changeAvatarItemArr.length;e++)this.changeAvatarItemArr[e].active=!1;for(let e=0;e<i.urlArr.length;e++){let t=i.urlArr[e].url,a=null;this.changeAvatarItemArr.length>e+1?(a=this.changeAvatarItemArr[e],a.active=!0):(a=c(this.changeAvatarItemTemp),a.parent=this.changeAvatarItemTemp.parent,a.active=!0,this.changeAvatarItemArr.push(a),a.on(n.EventType.TOUCH_END,this.headIconItemClick.bind(this))),a.getComponent(T).headIcon.active=!0;let l=this.getHeadResPath(t)+"/spriteFrame";N.Instance().load(O.BUNDLE_RESOURCES,l,h,(()=>{}),(e=>{m(a)&&a.getComponent(T).headIcon.getComponent(d).initWithSpriteFrame(e.data)})),a.getComponent(T).url=t}this.refreshHeadIconSelect()}refreshHeadIconSelect(){for(let e=0;e<this.changeAvatarItemArr.length;e++){let t=this.changeAvatarItemArr[e].getComponent(T);t.selectMark.active=U.gameCtrl.getModel(I).headUrl==t.url}}headIconItemClick(e){v.Instance().playEffect(D.sound_click_btn),this.avatarHeadItemClick(e)}leftSwitchBtnClick(e){v.Instance().playEffect(D.sound_click_btn);let t=e.getCurrentTarget(),i=this.leftSwitchTabs.indexOf(t);-1!=i&&i!=this.curLeftSwitchTabIndex&&this.selectLeftTabIndex(i),0==i?(this.profileDetail.active=!0,this.profileMsgDetail&&(this.profileMsgDetail.active=!1)):1==i&&(this.profileDetail.active=!1,this.profileMsgDetail||(this.profileMsgDetail=c(this.profileMsgDetailPrefab),this.msgDetailNode.addChild(this.profileMsgDetail)),this.profileMsgDetail.active=!0,y.Instance().c2sgetemail())}selectLeftTabIndex(e){for(let t=0;t<this.leftSwitchTabs.length;t++){let i=this.leftSwitchTabs[t];t==e?(i.getChildByName("select").active=!0,i.getChildByName("default").active=!1):(i.getChildByName("select").active=!1,i.getChildByName("default").active=!0)}}changeHead(){let e=U.gameCtrl.getModel(I).headUrl;if(m(this.headSprite))if(e){let t=this.getHeadResPath(e)+"/spriteFrame";N.Instance().load(O.BUNDLE_RESOURCES,t,h,(()=>{}),(e=>{var t;null==(t=this.headSprite.getComponent(d))||t.initWithSpriteFrame(e.data)})),this.headSprite.node.parent.getChildByName("default_icon").active=!1}else this.headSprite.node.parent.getChildByName("default_icon").active=!0}onDealEmail(e,t){S.debug("onDealEmail"),t==g.DEL&&this.removeItemBtnById(e),this.refreshEmailListInterface()}onGetEmail(){S.debug("onGetEmail"),this.destroyAllItem(),this.emailList=U.gameCtrl.getModel(E).emailDataArr;for(let e=0;e<this.emailList.length;e++){let e=this.getItem();this.emailItemArr.push(e)}this.refreshEmailListInterface()}removeItemBtnById(e){for(let t=0;t<this.emailItemArr.length;t++)if(this.emailItemArr[t].getComponent(M).emailData.id==e){let e=this.emailItemArr[t];return this.destroyItem(e),void this.emailItemArr.splice(t,1)}}destroyAllItem(){for(let e=0;e<this.emailItemArr.length;e++)this.destroyItem(this.emailItemArr[e]);this.emailItemArr=[]}destroyItem(e){e.active=!1,this.recylePool.push(e)}refreshEmailListInterface(){let e=this.profileMsgDetail.getComponent(H).emailItemTemp,t=this.profileMsgDetail.getComponent(H).emailCountLabel,i=e.parent;for(let e=0;e<this.emailItemArr.length;e++){let t=this.emailItemArr[e],i=this.emailList[e];t.getComponent(M).initEmail(i),t.parent.children[e]=t}i.children[this.emailItemArr.length]=e;for(let e=0;e<this.recylePool.length;e++){let t=this.emailItemArr.length+e+1;i.children[t]=this.recylePool[e]}let a=U.gameCtrl.getModel(E).emailDataArr.length,n=0;if(a>0){let e=99;n=a>e?e:a}t.string=n.toString()}getItem(){let e=null;if(0==this.recylePool.length){let t=this.profileMsgDetail.getComponent(H).emailItemTemp;e=c(t),e.parent=t.parent,e.active=!0}else e=this.recylePool.shift(),e.active=!0;return e}}).prototype,"infoCloseBtn",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=t(K.prototype,"pswModifyBtn",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=t(K.prototype,"headSprite",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=t(K.prototype,"nameLabel",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=t(K.prototype,"logoutBtn",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=t(K.prototype,"eventBtn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=t(K.prototype,"msgDetailNode",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=t(K.prototype,"profileMsgDetailPrefab",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=t(K.prototype,"profileDetail",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=t(K.prototype,"leftSwitchTabs",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),se=t(K.prototype,"headSelectSwitchTabs",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),oe=t(K.prototype,"headIconItems",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),he=t(K.prototype,"changeAvatarItemTemp",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=K))||X));a._RF.pop()}}}));

System.register("chunks:///_virtual/UIProgressBar.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,r,o,s,i,a,n,p,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Node,i=t.CCFloat,a=t.CCInteger,n=t._decorator,p=t.Component,l=t.UITransform}],execute:function(){var u,g,h,c,d,b,y,_,f,N,m;o._RF.push({},"8178cHtMVpJZZ0zfNI7icM0","UIProgressBar",void 0);const{ccclass:L,property:P,menu:B,disallowMultiple:w}=n;t("UIProgressBar",(u=L("UIProgressBar"),g=B("ui/basic_ui/UIProgressBar"),h=w(!0),c=P({displayName:"barNode",type:s,tooltip:"bar的节点"}),d=P({type:i,range:[0,1,.1],tooltip:"progress",slide:!0}),b=P({displayName:"totalLength",type:a,tooltip:"进度条实际的总长度"}),u(y=g(y=h((f=e((_=class extends p{constructor(...t){super(...t),r(this,"_barNode",f,this),r(this,"_progress",N,this),r(this,"_totalLength",m,this)}get barNode(){return this._barNode}set barNode(t){this._barNode=t,this.initBarSprite()}get progress(){return this._progress}set progress(t){this._progress!==t&&(this._progress=t,this.updateBarStatus())}get totalLength(){return this._totalLength}set totalLength(t){this._totalLength!==t&&(this._totalLength=t,this.updateBarStatus())}initBarSprite(){if(this._barNode){let t=this._barNode;if(!t)return;let e=this.node.getComponent(l),r=e.contentSize,o=e.anchorPoint;if(t.parent===this.node){let e=-r.width*o.x;t.setPosition(e,0,0)}}}updateBarStatus(){if(!this._barNode)return;if(!this._barNode)return;let t=this.clamp01(this._progress),e=this._totalLength*t;this.node.getComponent(l).width=e}clamp01(t){return t<0?0:t>1?1:t}}).prototype,"_barNode",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(_.prototype,"barNode",[c],Object.getOwnPropertyDescriptor(_.prototype,"barNode"),_.prototype),N=e(_.prototype,"_progress",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),e(_.prototype,"progress",[d],Object.getOwnPropertyDescriptor(_.prototype,"progress"),_.prototype),m=e(_.prototype,"_totalLength",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),e(_.prototype,"totalLength",[b],Object.getOwnPropertyDescriptor(_.prototype,"totalLength"),_.prototype),y=_))||y)||y)||y));o._RF.pop()}}}));

System.register("chunks:///_virtual/UIQRCode.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIView.ts","./QrCodeItem.ts","./Global.ts","./EventDefine.ts","./CustomEventMgr.ts","./MsgHandler.ts","./LanguageSprite.ts","./StorageUtil.ts"],(function(e){"use strict";var t,i,n,o,r,s,l,a,p,h,u,c,d,C,m,g,f,y,I,S,b,O;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Node,r=e.Toggle,s=e._decorator,l=e.sys,a=e.Size,p=e.size,h=e.instantiate,u=e.sp,c=e.Mask,d=e.Sprite,C=e.UITransform},function(e){m=e.UIView},function(e){g=e.QrCodeItem},function(e){f=e.Global},function(e){y=e.CMDEvent},function(e){I=e.CustomEventMgr},function(e){S=e.default},function(e){b=e.LanguageSprite},function(e){O=e.default}],execute:function(){var A,v,N,U,w,D,k,T,E,M,P,q,z,L,R;n._RF.push({},"837eaULkPxDZ7xYE4q0Ucwe","UIQRCode",void 0);const{ccclass:Q,property:_}=s;e("UIQRCode",(A=Q("UIQRCode"),v=_({displayName:"关闭按钮",type:o}),N=_({displayName:"qrCodeItemTemp",type:o}),U=_({displayName:"入场动画节点",type:o}),w=_({displayName:"标题节点",type:o}),D=_({displayName:"title light",type:o}),k=_({displayName:"noMorePopCheck",type:r}),A((M=t((E=class extends m{constructor(...e){super(...e),i(this,"closeBtn",M,this),i(this,"qrCodeItemTemp",P,this),i(this,"enterAniNode",q,this),i(this,"title",z,this),i(this,"titleLight",L,this),i(this,"noMorePopCheck",R,this),this.qrCodeItemArr=[]}start(){}onLoad(){this.bindEvents()}onOpen(...e){this.initPanel()}onClose(){}initPanel(){S.Instance().c2sConvertApp(1,l.os==l.OS.ANDROID||l.os==l.OS.IOS?2:1,l.os==l.OS.OSX||l.os==l.OS.IOS?2:1),this.removeAllQrCode();let e=[],t=new a(167,167);f.androidUrl&&(l.os==l.OS.ANDROID||l.isBrowser)&&e.push([f.androidUrl,l.OS.ANDROID,1,p(t.width,t.height)]),(l.os==l.OS.IOS||l.isBrowser)&&(f.iosUrl1&&e.push([f.iosUrl1,l.OS.IOS,1,p(t.width,t.height)]),f.iosUrl2&&e.push([f.iosUrl2,l.OS.IOS,2,p(t.width,t.height)]));for(let t=0;t<e.length;t++){var i;let n=h(this.qrCodeItemTemp);n.parent=this.qrCodeItemTemp.parent,n.active=!0,null==(i=n.getComponent(g))||i.initInfo(e[t]),this.qrCodeItemArr.push(n)}this.enterAniNode.getComponent(u.Skeleton).setAnimation(0,"tanchu",!1),this.enterAniNode.getComponent(u.Skeleton).setCompleteListener((()=>{this.enterAniNode.getComponent(u.Skeleton).setAnimation(0,"coin-loop",!0)})),this.noMorePopCheck.isChecked=O.ShowConvertAppToday}removeAllQrCode(){for(let e=0;e<this.qrCodeItemArr.length;e++)this.qrCodeItemArr[e].destroy();this.qrCodeItemArr=[]}bindEvents(){this.closeBtn.on(o.EventType.TOUCH_END,(()=>{this.close(),I.fire(y.CLOSE_CONVERTAPP_CMD)})),this.noMorePopCheck.node.on(o.EventType.TOUCH_END,(()=>{this.scheduleOnce((()=>{O.ShowConvertAppToday=this.noMorePopCheck.isChecked}))}),this),this.title.getComponent(b).setChangeCb((()=>{var e;this.titleLight.parent.getComponent(c).spriteFrame=this.title.getComponent(d).spriteFrame,null==(e=this.titleLight.parent.getComponent(C))||e.setContentSize(this.title.getComponent(C).contentSize)}))}}).prototype,"closeBtn",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(E.prototype,"qrCodeItemTemp",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(E.prototype,"enterAniNode",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(E.prototype,"title",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(E.prototype,"titleLight",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(E.prototype,"noMorePopCheck",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=E))||T));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIQuickTask.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./TaskCoin.ts","./EventDefine.ts","./CustomEventMgr.ts","./MsgHandler.ts","./LogUtil.ts","./TaskModel.ts","./EnumDefine.ts","./Language.ts","./GameUtil.ts","./StringUtil.ts","./LanguageSprite.ts","./AudioManager.ts","./ResDefine.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts","./CountDown.ts"],(function(e){"use strict";var t,i,n,a,s,o,r,l,c,u,h,g,p,m,b,d,f,y,T,k,I,C,L,v,N,S,D,E,w,R,G;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Node,s=e.Label,o=e._decorator,r=e.sp},function(e){l=e.Global},function(e){c=e.TaskCoin},function(e){u=e.TaskEvent,h=e.CMDEvent},function(e){g=e.CustomEventMgr},function(e){p=e.default},function(e){m=e.default},function(e){b=e.TaskModel},function(e){d=e.TaskRewardType,f=e.ELanguage_Type,y=e.TaskKind,T=e.QUICK_TASK_VIEW,k=e.TaskType},function(e){I=e.Language,C=e.default},function(e){L=e.GameUtils},function(e){v=e.default},function(e){N=e.LanguageSprite},function(e){S=e.default},function(e){D=e.SoundDefine},function(e){E=e.UIView},function(e){w=e.UIManager},function(e){R=e.UIID},function(e){G=e.default}],execute:function(){var _,A,U,M,O,x,K,z,B,H,P,F,W,Q,Y,j,V,q,$,J,X,Z,ee,te,ie,ne,ae,se,oe,re,le,ce,ue,he,ge,pe,me;n._RF.push({},"3033eZLrX9Ba56CHaIe7KhP","UIQuickTask",void 0);const{ccclass:be,property:de}=o;e("UIQuickTask",(_=be("UIQuickTask"),A=de({displayName:"关闭按钮",type:a}),U=de({displayName:"rewardLabel",type:s}),M=de({displayName:"reach label",type:s}),O=de({displayName:"getAccountLabel",type:s}),x=de({displayName:"totalInfo",type:a}),K=de({displayName:"timeInfo",type:a}),z=de({displayName:"timeLabel",type:s}),B=de({displayName:"bottomInfo",type:a}),H=de({displayName:"taskLabel",type:s}),P=de({displayName:"recieveNormalBtn",type:a}),F=de({displayName:"recieveDisableBtn",type:a}),W=de({displayName:"getInfo",type:a}),Q=de({displayName:"getGoldIcon",type:a}),Y=de({displayName:"box",type:a}),j=de({displayName:"box",type:N}),V=de({displayName:"coin list",type:[a]}),q=de({displayName:"updataTime",type:s}),_((X=t((J=class extends E{constructor(...e){super(...e),i(this,"closeBtn",X,this),i(this,"rewardLabel",Z,this),i(this,"reachLabel",ee,this),i(this,"getAccountLabel",te,this),i(this,"totalInfo",ie,this),i(this,"timeInfo",ne,this),i(this,"timeLabel",ae,this),i(this,"bottomInfo",se,this),i(this,"taskLabel",oe,this),i(this,"recieveNormalBtn",re,this),i(this,"recieveDisableBtn",le,this),i(this,"yougetInfo",ce,this),i(this,"yougetGoldIcon",ue,this),i(this,"box",he,this),i(this,"Logo",ge,this),i(this,"coinList",pe,this),i(this,"updataTime",me,this),this.data=null,this.curIdx=-1,this.endTime=-1,this.isGetCoin=!1,this._coinType=d.NONE,this._state=-1,this.aniNameList={T:["01-idle-R","02-open-R","03-after-R"],Y:["01-idle-R","02-open-R","03-after-R"],J:["01-idle-R","02-open-R","03-after-R"]}}start(){}onLoad(){this.bindEvents()}onOpen(e){g.on(u.GET_TASK_COIN,this.getTaskCoin,this),g.on(u.GET_TASK_COIN_END,this.getTaskCoinEnd,this),this.initPanel(),this.node.on(a.EventType.TOUCH_END,(()=>{S.Instance().playEffect(D.sound_click_btn)}))}onClose(e){g.off(u.GET_TASK_COIN,this.getTaskCoin,this),g.off(u.GET_TASK_COIN_END,this.getTaskCoinEnd,this)}initPanel(){let e=this.data=l.gameCtrl.getModel(b).quickTaskData;this.curIdx=e.curProgress,this.playKeelNormal(e.taskKind);let t=L.exact(e.reward),i=v.formatMoney(t.toString()),n=160017,a=[f.CN,f.EN];switch(this.Logo.getComponent(N).setLanguageTypeArr(a),e.taskKind){case y.DAILY:n=160017,this.Logo.imageStr=I.getSource("LOGO2");break;case y.WEEKLY:n=160018,this.Logo.imageStr=I.getSource("LOGO3");break;case y.MONTHLY:n=160019,this.Logo.imageStr=I.getSource("LOGO4")}i=C.getInstance().language.getFormatString(n,[i]),this.rewardLabel.string=i,i=C.getInstance().language.getFormatString(160020,[e.completeCount]),this.reachLabel.string=i;let s=L.exact(t/e.completeCount);i=v.formatMoney(s.toString()),this.getAccountLabel.string=i,e.canReceive&&!e.haveGot?(this.setUI(T.AWARD),this.setCoinProgress(e.coinType,e.condition)):(this.setCoinProgress(e.coinType,e.curProgress),this.setUI(T.TASK),this.setLabTask(),this.endTime=e.endTime);let o=l.svrTimeMS/1e3,r=this.endTime-o;this.updataTime.getComponent(G).run(r,(()=>{l.gameCtrl.getModel(b).c2sGetTaskData()}))}playKeelNormal(e){switch(e){case y.DAILY:this.box.getComponent(r.Skeleton).setSkin("chest_green1");break;case y.WEEKLY:this.box.getComponent(r.Skeleton).setSkin("chest_blue1");break;case y.MONTHLY:this.box.getComponent(r.Skeleton).setSkin("chest_pink1")}this.box.getComponent(r.Skeleton).setAnimation(0,"daiji",!1)}timeUpdate(){let e=l.svrTimeMS/1e3,t=this.endTime-e;if(t<-2){l.gameCtrl.getModel(b).c2sGetTaskData(),m.debug("UIQuickTask"),this.unschedule(this.timeUpdate)}t<0&&(t=0);let i=l.gameCtrl.getModel(b).formatRemainTime(t);this.timeLabel.string=i}setUI(e){switch(this.timeInfo.active=!0,this.totalInfo.active=!1,this.yougetInfo.active=!1,e){case T.TASK:this.setReceive(!0,!0);break;case T.WAIT:this.setReceive(!1,!1);break;case T.AWARD:this.timeInfo.active=!1,this.setReceive(!0,!1);break;case T.FINISH:this.timeInfo.active=!1,this.taskLabel.node.parent.active=!1,this.recieveNormalBtn.active=!1,this.recieveDisableBtn.active=!0,this.totalInfo.active=!0,this.yougetInfo.active=!0,this.box.getComponent(r.Skeleton).setAnimation(0,"dakai",!1),this.scheduleOnce((async()=>{this.box.getComponent(r.Skeleton).setAnimation(0,"dakaihoudaiji",!0),w.getInstance().open(R.UIQuickTask);let e=this.data=l.gameCtrl.getModel(b).quickTaskData,t=L.exact(e.reward);w.getInstance().open(R.UIGetReward).then((i=>{i.initGoldPanel(v.formatMoney(t/e.completeCount)+"",(()=>{}))}))}),1.5)}}setReceive(e,t){t?this.taskLabel.node.parent.active=!0:t||(this.taskLabel.node.parent.active=!1),this.recieveDisableBtn.active=!e,this.recieveNormalBtn.active=e}setLabTask(){let e=this.data.itemData,t="",i=e.curClaim;i>e.claimTimes&&(i=e.claimTimes);let n=`(${i}/${e.claimTimes})`;switch(e.taskType){case k.LOGIN:t=C.getInstance().language.getFormatString(160001,[e.condition]);break;case k.ONLINE:let i=L.floor(e.condition/60);t=C.getInstance().language.getFormatString(160002,[i]);break;case k.FISHWAGER:t=I.getString(160003);break;case k.SLOTWAGER:t=I.getString(160010)}this.taskLabel.string=t+" "+n}bindEvents(){this.closeBtn.on(a.EventType.TOUCH_END,(()=>{this.close(),g.fire(h.CLOSE_TASK_CMD,this.onClose,this)})),this.recieveNormalBtn.on(a.EventType.TOUCH_END,this.onReceive,this)}onReceive(){let e=l.gameCtrl.getModel(b),t=this.data;t.canReceive&&!t.haveGot?(e.c2sGetTaskReward(t.svrID,t.taskKind,0),this.setReceive(!1,!1)):(e.c2sGetTaskReward(t.svrID,t.taskKind,t.itemData.taskType,0),this.setReceive(!1,!0))}getTaskCoinEnd(){1==this.isGetCoin?(this.isGetCoin=!1,this.close(),this.scheduleOnce((()=>{l.gameCtrl.getModel(b).c2sGetTaskData()}),.2)):this.close()}getTaskCoin(e){if(this.isGetCoin=!0,0==e.coinType)return this.playScoreAni(),void p.Instance().c2sgetmoney();{let t=e.count;for(let e=0;e<t;e++){let t=this.coinList[this.curIdx+e];t&&t.getComponent(c).setCoinInfo(this.data.coinType,3,1)}this.curIdx+=t;let i=this.data.itemData;i.curClaim+=t,i.curClaim=i.curClaim>i.condition?i.condition:i.curClaim,this.setLabTask()}}playScoreAni(){this.setUI(T.FINISH)}setCoinProgress(e,t,i=2){for(let n=0;n<8;n++){let a=this.coinList[n];n<t?a.getComponent(c).setCoinInfo(e,i,1):a.getComponent(c).setCoinInfo(e,1,1)}}}).prototype,"closeBtn",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=t(J.prototype,"rewardLabel",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=t(J.prototype,"reachLabel",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=t(J.prototype,"getAccountLabel",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=t(J.prototype,"totalInfo",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=t(J.prototype,"timeInfo",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=t(J.prototype,"timeLabel",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=t(J.prototype,"bottomInfo",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),oe=t(J.prototype,"taskLabel",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=t(J.prototype,"recieveNormalBtn",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=t(J.prototype,"recieveDisableBtn",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce=t(J.prototype,"yougetInfo",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=t(J.prototype,"yougetGoldIcon",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),he=t(J.prototype,"box",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge=t(J.prototype,"Logo",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pe=t(J.prototype,"coinList",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),me=t(J.prototype,"updataTime",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=J))||$));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIRaffleTicket.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./StringUtil.ts","./TimeUtil.ts","./UIButton.ts","./UIDefined.ts","./UIManager.ts","./UIView.ts","./Global.ts","./CustomEventMgr.ts","./MsgHandler.ts","./RaffleTicketModel.ts","./RaffleChangePoint.ts"],(function(t){"use strict";var e,i,n,o,a,s,r,l,u,m,c,h,f,d,b,g,p,y,_,R,T;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Label,a=t.Node,s=t.Prefab,r=t._decorator,l=t.instantiate,u=t.Animation},function(t){m=t.RaffleTicketEvent},function(t){c=t.default},function(t){h=t.default},function(t){f=t.UIButton},function(t){d=t.UIID},function(t){b=t.UIManager},function(t){g=t.UIView},function(t){p=t.Global},function(t){y=t.CustomEventMgr},function(t){_=t.default},function(t){R=t.RaffleTicketModel},function(t){T=t.RaffleChangePoint}],execute:function(){var N,L,I,C,k,w,M,v,S,A,B,D,U,O,E,F,j,z,P,G,H,J,W,V,K;n._RF.push({},"17f18w4zMNM+6kaQ65pCZVr","UIRaffleTicket",void 0);const{ccclass:x,property:Y}=r;t("UIRaffleTicket",(N=x("UIRaffleTicket"),L=Y({displayName:"关闭按钮",type:f}),I=Y({displayName:"recordBtn",type:f}),C=Y({displayName:"myRaffleBtn",type:f}),k=Y({displayName:"amounttezL_xtab",type:o}),w=Y({displayName:"time_lab",type:o}),M=Y({displayName:"issue_number",type:o}),v=Y(a),S=Y({displayName:"gorafft",type:a}),A=Y(s),B=Y(s),D=Y(s),N((E=e((O=class extends g{constructor(...t){super(...t),i(this,"closeBtn",E,this),i(this,"recordBtn",F,this),i(this,"myRaffleBtn",j,this),i(this,"amountLab",z,this),i(this,"timeLab",P,this),i(this,"issue_numberLab",G,this),i(this,"numberNode",H,this),i(this,"gorafft",J,this),i(this,"guangP",W,this),i(this,"guangboom",V,this),i(this,"guangfirst",K,this),this._isCountDownTime=!1,this._isRollingAmountLab=!1,this._amountLabAddNum=0,this._delayForRun=-1,this._startRollT=0,this._stopRoll=!1,this._isDraw=!1,this._delaySendRectiveT=-1}init(...t){this.closeBtn.touchEndedFun=this.onCloseBtn.bind(this),this.recordBtn.touchEndedFun=this.onRecordBtn.bind(this),this.myRaffleBtn.touchEndedFun=this.onMyRaffleBtn.bind(this)}onOpen(...t){this._startRollT=0,this._stopRoll=!1,this._isDraw=!1,this.addToStage()}close(){this.removeFromStage(),super.close()}refresh(){let t=p.gameCtrl.getModel(R);if(t){if(1==this._isDraw)return this.setLuckeyNumStopInfo(),void(this._stopRoll=!0);this._startRollT=0,this._stopRoll=!1,this.initLuckeyNum(),t.issue_number?this.issue_numberLab.string=t.issue_number.toString():this.issue_numberLab.string="1",this.amountLab.string=c.formatMoney(t.amountLabNum),t.amountLabNum!=t.jackpot&&(this._amountLabAddNum=Math.ceil((t.jackpot-t.amountLabNum)/3)/100,this._isRollingAmountLab=!0),this.updataTime(),this._isCountDownTime=t.endTime>p.svrTimeS,1==this._isCountDownTime&&(this._delayForRun=-1)}}initLuckeyNum(){let t=p.gameCtrl.getModel(R),e=0,i=this.numberNode.length,n="";for(e=0;e<i;e++){let i=this.numberNode[e].getComponent(T);n=t.awardLists&&t.awardLists[e]?t.awardLists[e]:"0",i.initNum(n)}}update(t){if(1==this._isDraw)return this._delayForRun>=0&&(this._delayForRun-=t,this._delayForRun<=0&&(_.Instance().c2sRTGetJackPotAndMyTicket(),_.Instance().c2sRTRunALottery(),this._delayForRun=-1)),void this.rollLuckyNum();if(this._delaySendRectiveT>=0)if(this._delaySendRectiveT-=t,this._delaySendRectiveT<=0)this._delaySendRectiveT=-1,_.Instance().c2sRTReceive(),this.refresh();else if(this._delaySendRectiveT<1&&this._delaySendRectiveT>.5){this._delaySendRectiveT=.5;let t=this.numberNode.length;for(let e=0;e<t;e++){this.numberNode[e].getComponent(T).changeToNormalFont()}}let e=p.gameCtrl.getModel(R);1==this._isCountDownTime&&(this.updataTime(),e.endTime<=p.svrTimeS&&(this._isCountDownTime=!1,this._delayForRun=5,this._startRollT=p.svrTimeS,this._stopRoll=!1,this._isDraw=!0),1==this._isRollingAmountLab&&this.rollAmountLab())}updataTime(){let t=p.gameCtrl.getModel(R);this.timeLab.string=h.secondTimeStr(t.endTime-p.svrTimeS)}rollLuckyNum(){if(0==this._isDraw)return;if(!this._startRollT||this._startRollT<=0)return;let t=!0,e=!0,i=this.numberNode.length,n=0;for(n=0;n<i;n++){let i=this.numberNode[n].getComponent(T);this._stopRoll?(e=i.rollingEnd(),0==e&&(t=!1)):(t=!1,i.rolling())}t&&(this._isDraw=!1,this._startRollT=0,this._delaySendRectiveT=3,this.playOpenNumEff())}setLuckeyNumStopInfo(){let t=p.svrTimeS,e=p.gameCtrl.getModel(R),i=this.numberNode.length,n=0;for(n=0;n<i;n++){let i=this.numberNode[n].getComponent(T);i.stopNumStr=e.awardLists[n],i.stopTime=t+1*n}}playOpenNumEff(){let t=l(this.guangfirst);t.active=!1,t.parent=this.gorafft,t.active=!0,t.getChildByName("gunlun_Glow").getComponent(u).play(),t.getChildByName("gunlun_Glow-001").getComponent(u).play(),this.scheduleOnce((function(){t.destroy()}),3)}rollAmountLab(){if(0==this._isRollingAmountLab)return;if(!this._amountLabAddNum)return;let t=p.gameCtrl.getModel(R);t.amountLabNum!=t.jackpot&&(t.amountLabNum>t.jackpot?(t.amountLabNum=t.amountLabNum+this._amountLabAddNum,t.amountLabNum<=t.jackpot?(t.amountLabNum=t.jackpot,this.amountLab.string=c.formatMoney(t.jackpot),this._isRollingAmountLab=!1):this.amountLab.string=c.formatMoney(t.amountLabNum)):t.amountLabNum<t.jackpot?(t.amountLabNum=t.amountLabNum+this._amountLabAddNum,t.amountLabNum>=t.jackpot?(this.amountLab.string=c.formatMoney(t.jackpot),t.amountLabNum=t.jackpot,this._isRollingAmountLab=!1):this.amountLab.string=c.formatMoney(t.amountLabNum)):(this.amountLab.string=c.formatMoney(t.jackpot),t.amountLabNum=t.jackpot,this._isRollingAmountLab=!1))}onJackpotAndMyticket(t){0!=p.gameCtrl.getModel(R).is_open&&this.refresh()}onRecordBtn(t){_.Instance().c2sRTGetRTWinningList()}onWininglistOrHIstorical(t){b.getInstance().open(d.UIRaffleTicketHistory,{showType:0})}onMyRaffleBtn(t){b.getInstance().open(d.UIRaffleTicketHistory,{showType:1})}onC2sRTReceive(t){let e=p.gameCtrl.getModel(R);b.getInstance().open(d.UIGetReward).then((t=>{t.initGoldPanel(e.awardMoney+"")}))}onCloseBtn(t){this.close()}addToStage(){p.gameCtrl.mainUITs.node.active=!1,y.on(m.ON_WINNINGLIST_OR_HISTORICAL,this.onWininglistOrHIstorical,this),y.on(m.ON_JACKPOT_AND_MYTICKET,this.onJackpotAndMyticket,this),y.on(m.ON_RECEIVE,this.onC2sRTReceive,this),_.Instance().c2sRTGetJackPotAndMyTicket(),_.Instance().c2sRTRunALottery()}removeFromStage(){p.gameCtrl.mainUITs.node.active=!0,p.gameCtrl.mainUITs.gameBack(),y.off(m.ON_WINNINGLIST_OR_HISTORICAL,this.onWininglistOrHIstorical),y.off(m.ON_JACKPOT_AND_MYTICKET,this.onJackpotAndMyticket),y.off(m.ON_RECEIVE,this.onC2sRTReceive,this)}}).prototype,"closeBtn",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(O.prototype,"recordBtn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(O.prototype,"myRaffleBtn",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(O.prototype,"amountLab",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(O.prototype,"timeLab",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(O.prototype,"issue_numberLab",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(O.prototype,"numberNode",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),J=e(O.prototype,"gorafft",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=e(O.prototype,"guangP",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(O.prototype,"guangboom",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(O.prototype,"guangfirst",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=O))||U));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIRaffleTicketHistory.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts","./UIView.ts","./Global.ts","./RaffleTicketModel.ts","./RaffleDrawScrollView.ts","./RaffleTicketScrollView.ts"],(function(t){"use strict";var e,s,i,o,n,l,a,r,c,u,h,f,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,s=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Node,n=t.Label,l=t._decorator,a=t.Layout},function(t){r=t.UIButton},function(t){c=t.UIView},function(t){u=t.Global},function(t){h=t.RaffleTicketModel},function(t){f=t.RaffleDrawScrollView},function(t){d=t.RaffleTicketScrollView}],execute:function(){var p,y,w,b,m,g,T,_,L,R,B;i._RF.push({},"1e01eS6rBhAJ5doWy0eyn3r","UIRaffleTicketHistory",void 0);const{ccclass:k,property:D}=l;t("UIRaffleTicketHistory",(p=k("UIRaffleTicketHistory"),y=D(o),w=D(o),b=D({displayName:"关闭按钮",type:r}),m=D({displayName:"issue_number",type:n}),p((_=e((T=class extends c{constructor(...t){super(...t),s(this,"scrollNodes",_,this),s(this,"showBgs",L,this),s(this,"closeBtn",R,this),s(this,"issue_numberLab",B,this),this._showType=null,this.drawListdata=null,this.curListdata=null,this.mycodesdata=null,this.lastcodesData=null}init(...t){this.bindEvents()}onOpen(...t){let e=u.gameCtrl.getModel(h);0==t[0].showType?(this.drawListdata=e.winnerLists,this.issue_number=e.issue_number-1):(this.mycodesdata=e.myRaffleTicket,this.lastcodesData=e.last_myRaffleTicket),this.showType=t[0].showType}set issue_number(t){this.issue_numberLab.string=t.toString(),0==this._showType&&this.issue_numberLab.node.parent.getComponent(a).updateLayout(!0)}set showType(t){this._showType=t;for(let t=0;t<this.showBgs.length;t++){let e=this.showBgs[t];this._showType==t?e.active=!0:e.active=!1}if(0==this._showType){let t=this.scrollNodes[0].getComponent(f);this.drawListdata&&this.drawListdata.length>0&&t.creatList(this.drawListdata)}else if(1==this._showType){if(this.mycodesdata.length){this.scrollNodes[1].getComponent(d).creatList(this.mycodesdata)}if(this.lastcodesData.length){this.scrollNodes[2].getComponent(d).creatList(this.lastcodesData)}}}bindEvents(){this.closeBtn.touchEndedFun=this.onCloseBtn.bind(this)}onCloseBtn(t){this.close()}}).prototype,"scrollNodes",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=e(T.prototype,"showBgs",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),R=e(T.prototype,"closeBtn",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(T.prototype,"issue_numberLab",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=T))||g));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIRanking.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EmailItem.ts","./EventDefine.ts","./CustomEventMgr.ts","./MsgHandler.ts","./RankingItem.ts","./TimeUtil.ts","./GeomitryUtil.ts","./LanguageLabel.ts","./UIView.ts","./UIButton.ts","./User.ts"],(function(t){"use strict";var e,i,n,s,r,a,o,l,h,m,c,p,u,g,f,I,y,d,k,b,w,S,v,L,A;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t.Label,a=t.ScrollView,o=t._decorator,l=t.EventHandler,h=t.UITransform,m=t.Layout,c=t.v2,p=t.v3,u=t.View,g=t.instantiate},function(t){f=t.EmailItem},function(t){I=t.EventType},function(t){y=t.CustomEventMgr},function(t){d=t.default},function(t){k=t.RankingItem},function(t){b=t.default},function(t){w=t.default},function(t){S=t.LanguageLabel},function(t){v=t.UIView},function(t){L=t.UIButton},function(t){A=t.User}],execute:function(){var T,R,C,N,B,D,U,F,z,E,W,V,x,_,M,P,G,O;n._RF.push({},"ebde9SowUFAFKg7sX+oRQZ1","UIRanking",void 0);const{ccclass:H,property:Y}=o;t("default",(T=Y({displayName:"关闭按钮",type:L}),R=Y({displayName:"rank item",type:s}),C=Y({displayName:"no msg",type:s}),N=Y({displayName:"玩家的分数",type:r}),B=Y({displayName:"玩家的名字",type:r}),D=Y({displayName:"玩家的排名label",type:r}),U=Y({displayName:"scrollview",type:a}),F=Y({displayName:"scrollview content",type:s}),H((W=e((E=class extends v{constructor(...t){super(...t),i(this,"closeBtn",W,this),i(this,"rankItemTemp",V,this),i(this,"noMsgNode",x,this),i(this,"myScoreLabel",_,this),i(this,"playerName",M,this),i(this,"myRankLabel",P,this),i(this,"scrollview",G,this),i(this,"scrollViewContent",O,this),this.infos=null,this.rankItemArr=[],this.recylePool=[],this.rankingItemInfoArr=[],this.curDataList=[],this.myWinScore=void 0,this.myBalance=void 0,this._isFirstTime=!0,this.lastRefreshTime=-1}start(){this._isFirstTime=!0;let t=new l;t.component="UIRanking",t.handler="scrollEvent",t.target=this.node,this.scrollview.scrollEvents.push(t),this.myRankLabel.string=""}onGetInfo(t){this.destroyAllItem();let e=t.res;this.infos=e,this.setInfo()}setInfo(){this.rankingItemInfoArr=[],this.infos.total&&(this.myWinScore=this.infos.total.pop()),this.infos.balance&&(this.myBalance=this.infos.balance.pop());let t="",e="";this.infos.total?(t="total",this.myWinScore&&(e=this.myWinScore.name)):this.infos.balance&&(t="balance",this.myBalance&&(e=this.myBalance.name));let i=this.infos[t];this.curDataList=i,this.noMsgNode.active=!(this.curDataList.length>0);let n=this.rankItemTemp.getComponent(h).contentSize,s=this.scrollViewContent.getComponent(m),r=s.paddingTop,a=s.paddingBottom,o=s.spacingY,l=this.curDataList.length*n.height+o*(this.curDataList.length-1)+a+r;this.scrollViewContent.getComponent(h).height=l,s.enabled=!1;let p=-1,u=0;for(let t=0;t<this.curDataList.length;t++){this.curDataList[t].name==e&&(p=t+1),u=t*n.height+r;let i={};i.index=t,i.isShow=!1,i.pos=c(0,-u),i.ref=null,this.rankingItemInfoArr.push(i)}if(this.myWinScore&&this.myWinScore.score?this.myScoreLabel.string=(this.myWinScore.score/1e3).toString():this.myScoreLabel.string="0",-1!=p)this.myRankLabel.string=p.toString();else{let t=this.myRankLabel.node.getComponent(S);t&&(t.dataID=130062)}this.myWinScore&&this.myWinScore.name?this.playerName.string=this.myWinScore.name.toString():A.instance.userName?this.playerName.string=A.instance.userName:this.playerName.string="",this.refreshRankingListInterface()}refreshRankingListInterface(){let t=b.getCurMilliTime();if(-1!=this.lastRefreshTime&&t-this.lastRefreshTime<50)return;this.lastRefreshTime=t;let e=this.scrollViewContent.getComponent(m),i=e.paddingTop,n=e.paddingTop+110,s=e.paddingTop-this.scrollview.node.getComponent(h).height-110,r=this.rankItemTemp.getComponent(h).height;for(let t=0;t<this.rankingItemInfoArr.length;t++){let a=this.rankingItemInfoArr[t],o=a.pos.x,l=a.pos.y,h=this.rankItemTemp.parent;if(this._isFirstTime){i>=s&&i<=n&&(this.appearItem(a.index),i-=e.spacingY+r);continue}let m=w.toWorldPos(h,p(o,l,0)),c=u.instance.getVisibleSize().height;m.y>=n&&m.y<=c+100?0==a.isShow&&this.appearItem(a.index):1==a.isShow&&this.disAppearItem(a.index)}this._isFirstTime&&e.updateLayout(),this._isFirstTime=!1}appearItem(t){if(0==this.curDataList.length)return;let e=this.curDataList[t],i=this.getItem();i.setPosition(p(this.rankingItemInfoArr[t].pos.x,this.rankingItemInfoArr[t].pos.y,0)),this.rankItemArr.push(i),i.getComponent(k).initRank(t,e),this.rankingItemInfoArr[t].isShow=!0,this.rankingItemInfoArr[t].ref=i}disAppearItem(t){this.rankingItemInfoArr[t].isShow=!1;let e=this.rankingItemInfoArr[t].ref;if(e){this.destroyItem(e);let t=this.rankItemArr.indexOf(e);-1!=t&&this.rankItemArr.splice(t,1)}}removeItemBtnById(t){for(let e=0;e<this.rankItemArr.length;e++)if(this.rankItemArr[e].getComponent(f).emailData.id==t){let t=this.rankItemArr[e];return this.destroyItem(t),void this.rankItemArr.splice(e,1)}}getItem(){let t=null;return 0==this.recylePool.length?(t=g(this.rankItemTemp),t.parent=this.rankItemTemp.parent,t.active=!0):(t=this.recylePool.shift(),t.active=!0),t}destroyItem(t){t.active=!1,t.getComponent(k).recycleItem(),this.recylePool.push(t)}destroyAllItem(){if(this.rankItemArr&&this.rankItemArr.length){for(let t=0;t<this.rankItemArr.length;t++)this.destroyItem(this.rankItemArr[t]);this.rankItemArr=[]}}scrollEvent(t,e){switch(e){case 4:this.refreshRankingListInterface()}}init(...t){this.myRankLabel.string="",this.closeBtn.touchEndedFun=this.onCloseBtn.bind(this)}onOpen(...t){this.addToStage()}close(){this.removeFromStage(),super.close()}onCloseBtn(t){this.close()}addToStage(){d.Instance().c2sgetrank(2),y.on(I.OnGetRank,this.onGetInfo,this)}removeFromStage(){y.off(I.OnGetRank,this.onGetInfo,this)}}).prototype,"closeBtn",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(E.prototype,"rankItemTemp",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(E.prototype,"noMsgNode",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(E.prototype,"myScoreLabel",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(E.prototype,"playerName",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(E.prototype,"myRankLabel",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(E.prototype,"scrollview",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(E.prototype,"scrollViewContent",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=E))||z));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIRecharge.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RechargeModel.ts","./CustomEventMgr.ts","./EventDefine.ts","./MsgHandler.ts","./RechargeBtnItem.ts","./UIRechargeAgent.ts","./RechargeEPay.ts","./Global.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts","./UIUtils.ts","./AudioManager.ts","./ResDefine.ts","./EnumDefine.ts","./LanguageSprite.ts"],(function(e){"use strict";var t,n,i,a,r,s,o,l,h,c,p,u,g,d,f,y,b,m,I,T,C,U,R,v,E;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.Node,r=e.Prefab,s=e._decorator,o=e.instantiate,l=e.tween,h=e.Animation},function(e){c=e.RechargeModel},function(e){p=e.CustomEventMgr},function(e){u=e.EventType},function(e){g=e.default},function(e){d=e.RechargeBtnItem},function(e){f=e.UIRechargeAgent},function(e){y=e.RechargeEPay},function(e){b=e.Global},function(e){m=e.UIView},function(e){I=e.UIManager},function(e){T=e.UIID},function(e){C=e.default},function(e){U=e.default},function(e){R=e.SoundDefine},function(e){v=e.ELanguage_Type},function(e){E=e.LanguageSprite}],execute:function(){var B,_,A,P,D,N,w,M,L,S,x,z,k,H,O,F,G,Q,V;i._RF.push({},"b1242BfFSNCQayQztIk795x","UIRecharge",void 0);const{ccclass:j,property:K}=s;e("UIRecharge",(B=j("UIRecharge"),_=K({displayName:"关闭按钮",type:a}),A=K({displayName:"左侧切换按钮父节点",type:a}),P=K({displayName:"右侧详情父节点",type:a}),D=K({displayName:"支付tab模板",type:a}),N=K({displayName:"全民代理预制体",type:r}),w=K({displayName:"电子支付制体",type:r}),M=K({displayName:"历史记录",type:a}),L=K({displayName:"左上角标题",type:a}),B((z=t((x=class extends m{constructor(...e){super(...e),n(this,"closeBtn",z,this),n(this,"leftTabItemParent",k,this),n(this,"detailContent",H,this),n(this,"rechargeTabTemp",O,this),n(this,"agentPrefab",F,this),n(this,"epayPrefab",G,this),n(this,"listBtn",Q,this),n(this,"title",V,this),this.rechargeTabArr=[],this.curRechargeInfos=[],this.isPlaying=!1,this.animaIndex=0,this.UIEpay=void 0,this.UIAgent=void 0,this.record=void 0,this.isReceve=!1}start(){}onLoad(){super.onLoad(),this.UIEpay=o(this.epayPrefab),this.UIAgent=o(this.agentPrefab),C.hideLoading(),this.initTopUp(),this.bindEvents(),this.listBtn.on(a.EventType.TOUCH_END,this.recordBtnClick,this),p.on(u.Transactions,this.onRekodPindahSucc,this);let e=[v.CN,v.EN];this.title.getComponent(E).setLanguageTypeArr(e)}onRekodPindahSucc(e){e.succ?(this.record=e.rechargeList,1==this.isReceve?(I.getInstance().open(T.UIRechargeRecord),this.isReceve=!1):p.fire(u.Refresh_BanK_Data)):Log.w("接收数据出错")}init(){this.initTopUpByType()}initTopUpByType(){this.curRechargeInfos=[]}initTopUp(){let e=this.getModel(c).data;for(let t=0;t<e.length;t++){let n=e[t];this.curRechargeInfos.push(n)}this.refreshLeftTabBtns()}refreshLeftTabBtns(){this.removeAllTabs();for(let e=0;e<this.curRechargeInfos.length;e++){let t=this.curRechargeInfos[e].name,n=0==e?this.rechargeTabTemp:o(this.rechargeTabTemp);n.parent=this.rechargeTabTemp.parent,n.active=!0,0==e?(n.getComponent(d).initInfo(t,e),n.getComponent(d).showBtn(),this.showUI(e)):(n.getComponent(d).initInfo(t,e),n.getComponent(d).hideBtn()),this.rechargeTabArr.push(n)}this.rechargeTabArr.map(((e,t)=>{e.on(a.EventType.TOUCH_END,this.touchBtnCall,this)}))}touchBtnCall(e){if(1==this.isPlaying)return;this.isPlaying=!0;let t=e.getCurrentTarget().getComponent(d).id_index;this.rechargeTabArr.map(((e,n)=>{n==t?(l(this.node).call((()=>{this.removeTopUpDetail()})).delay(.5).call((()=>{this.showUI(t)})).start(),e.getComponent(d).showBtn()):e.getComponent(d).hideBtn()}))}showUI(e){var t,n,i;let a=this.getModel(c),r=a.data[e].type;switch(b.gameCtrl.getModel(c).index=e,r){case 0:let r=this.UIEpay;r.parent=this.detailContent,null==(t=r.getComponent(y))||t.initInfo(a.data[e]);break;case 1:let s=this.UIEpay;s.parent=this.detailContent,null==(n=s.getComponent(y))||n.initInfo(a.data[e]);break;case 2:let o=this.UIAgent;o.parent=this.detailContent,null==(i=o.getComponent(f))||i.initInfo(a.data[e])}this.detailContent.getComponent(h).play("topup_detail_appear_ani"),this.animaIndex=1,this.detailContent.getComponent(h).on(h.EventType.FINISHED,(()=>{1==this.animaIndex&&(this.isPlaying=!1)}))}removeAllTabs(){for(let e=0;e<this.rechargeTabArr.length;e++)this.rechargeTabArr[e].destroy();this.rechargeTabArr=[]}removeTopUpDetail(){this.detailContent.children[0]&&(this.detailContent.getComponent(h).play("topup_detail_disappear_ani"),this.animaIndex=0,this.detailContent.getComponent(h).on(h.EventType.FINISHED,(()=>{0==this.animaIndex&&this.detailContent.removeAllChildren()})))}onOpen(){super.onOpen()}onClose(){p.off(u.Transactions,this.onRekodPindahSucc,this)}bindEvents(){this.closeBtn.on(a.EventType.TOUCH_END,(()=>{U.Instance().playEffect(R.sound_close),this.close()}))}async recordBtnClick(){g.Instance().c2sTransactions(),this.isReceve=!0}getModel(e){return b.gameCtrl.getModel(e)}onEnable(){p.fire(u.HIDE_MAIN_UI)}onDisable(){p.fire(u.SHOW_MAIN_UI)}}).prototype,"closeBtn",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(x.prototype,"leftTabItemParent",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(x.prototype,"detailContent",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(x.prototype,"rechargeTabTemp",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(x.prototype,"agentPrefab",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(x.prototype,"epayPrefab",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=t(x.prototype,"listBtn",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(x.prototype,"title",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=x))||S));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIRechargeAgent.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Language.ts"],(function(t){"use strict";var e,n,i,r,o,a,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.Node,o=t.Label,a=t._decorator,c=t.Component},function(t){l=t.Language}],execute:function(){var s,u,p,g,y,b,h,f,d,m,U;i._RF.push({},"3b3b3iUOb5MuYIU/Bq/8Uuj","UIRechargeAgent",void 0);const{ccclass:v,property:I}=a;t("UIRechargeAgent",(s=v("UIRechargeAgent"),u=I({displayName:"icon",type:r}),p=I({displayName:"title",type:o}),g=I({displayName:"content",type:o}),y=I({displayName:"copyBtn",type:r}),s((f=e((h=class extends c{constructor(...t){super(...t),n(this,"icon",f,this),n(this,"title",d,this),n(this,"content",m,this),n(this,"copyBtn",U,this)}start(){this.bindEvents()}initInfo(t){this.title.string=t.data,this.content.string=t.info||l.getString(107068)}bindEvents(){}}).prototype,"icon",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(h.prototype,"title",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(h.prototype,"content",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(h.prototype,"copyBtn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=h))||b));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIRechargeBank.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./Language.ts","./PEditBox.ts","./RechargeModel.ts","./EventDefine.ts","./CustomEventMgr.ts","./ComponentMgr.ts","./RechargeBuyType.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts","./EnumDefine.ts","./LanguageSprite.ts"],(function(t){"use strict";var e,n,i,r,o,a,s,l,c,u,g,p,h,b,y,m,d,f,k;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.Label,o=t.Node,a=t._decorator},function(t){s=t.Global},function(t){l=t.Language},function(t){c=t.PEditBox},function(t){u=t.RechargeModel},function(t){g=t.EventType},function(t){p=t.CustomEventMgr},function(t){h=t.default},function(t){b=t.RechargeBuyType},function(t){y=t.UIView},function(t){m=t.UIManager},function(t){d=t.UIID},function(t){f=t.ELanguage_Type},function(t){k=t.LanguageSprite}],execute:function(){var B,N,E,C,U,L,R,D,I,v,w,T,S,_,x,z,O,M,H,A,F,P,j;i._RF.push({},"134d9hXWv5Cb7v6tXLdC+gU","UIRechargeBank",void 0);const{ccclass:G,property:V}=a;t("UIRechargeBank",(B=G("UIRechargeBank"),N=V({displayName:"bankUserName editbox",type:r}),E=V({displayName:"account editbox",type:r}),C=V({displayName:"bankName editbox",type:c}),U=V({displayName:"dropDownList editbox",type:o}),L=V({displayName:"bankUserNameCopyBtn",type:o}),R=V({displayName:"accountCopyBtn",type:o}),D=V({displayName:"okBtn",type:o}),I=V({displayName:"closeBtn",type:o}),v=V({displayName:"mainBtn",type:o}),w=V({displayName:"title",type:o}),B((_=e((S=class extends y{constructor(...t){super(...t),n(this,"bankUserNameLabel",_,this),n(this,"accountLabel",x,this),n(this,"bankNameEditBox",z,this),n(this,"dropDownList",O,this),n(this,"bankUserNameCopyBtn",M,this),n(this,"accountCopyBtn",H,this),n(this,"okBtn",A,this),n(this,"closeBtn",F,this),n(this,"mainBtn",P,this),n(this,"title",j,this),this._toolstrs=[1,2,3,4]}start(){this.bindEvents(),this.closeBtn.on(o.EventType.TOUCH_END,(()=>{this.close()}),this)}onEnable(){p.on(g.RechargeOk,this.onRechargeOk,this),p.on(g.RechargeError,this.onRechargeError,this)}onDisable(){p.off(g.RechargeOk,this.onRechargeOk,this),p.off(g.RechargeError,this.onRechargeError,this)}onDestroy(){}bindEvents(){this.okBtn.on(o.EventType.TOUCH_END,this.okBtnClick,this),this.mainBtn.on(o.EventType.TOUCH_END,(()=>{this.dropDownList.getChildByName("drop").active=!0}),this),this.bankUserNameCopyBtn.on(o.EventType.TOUCH_END,(()=>{h.copyStringToClipboard(this.bankUserNameLabel.string.trim())}),this),this.accountCopyBtn.on(o.EventType.TOUCH_END,(()=>{h.copyStringToClipboard(this.accountLabel.string.trim())}),this)}init(t){this.bankUserNameLabel.string=t.data.bank_username,this.accountLabel.string=t.data.bank_account,this.bankNameEditBox.string="";let e=[l.getString(120006),l.getString(120007),l.getString(120008),l.getString(120009)];this.dropDownList.getComponent(b).initInfo(e);let n=[f.CN,f.EN];this.title.getComponent(k).setLanguageTypeArr(n)}okBtnClick(){let t=this.dropDownList.getComponent(b),e=this.bankNameEditBox.string;if(""==e.trim()||null==t.curIndex){let t={content:l.getString(107059),okName:l.getString(130014),singleBtn:!0};return void m.getInstance().open(d.UIAlert,t)}let n=this._toolstrs[t.curIndex].toString();s.gameCtrl.getModel(u).sendBankRecharge(n,e)}async onRechargeOk(t){let e={content:l.getString(107056),okName:l.getString(130014),singleBtn:!0,spriteTitleName:"swcj_guizeshuoming",okFunc:()=>{this.close()}};m.getInstance().open(d.UIAlert,e)}onRechargeError(t){let e={content:l.getString(110021),okName:l.getString(130014),singleBtn:!0,okFunc:()=>{this.close()}};m.getInstance().open(d.UIAlert,e)}}).prototype,"bankUserNameLabel",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(S.prototype,"accountLabel",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(S.prototype,"bankNameEditBox",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(S.prototype,"dropDownList",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(S.prototype,"bankUserNameCopyBtn",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(S.prototype,"accountCopyBtn",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(S.prototype,"okBtn",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(S.prototype,"closeBtn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(S.prototype,"mainBtn",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(S.prototype,"title",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=S))||T));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIRechargeRecord.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CustomEventMgr.ts","./EventDefine.ts","./UIRechargeRecordItem.ts","./UIView.ts","./EnumDefine.ts","./LanguageSprite.ts","./super-layout.ts","./UIManager.ts","./UIDefined.ts"],(function(e){"use strict";var t,r,i,n,o,s,a,l,c,u,h,p,f,g,d,y,b,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Node,o=e.Prefab,s=e.ScrollView,a=e._decorator,l=e.isValid,c=e.instantiate},function(e){u=e.CustomEventMgr},function(e){h=e.EventType},function(e){p=e.UIRechargeRecordItem},function(e){f=e.UIView},function(e){g=e.ELanguage_Type},function(e){d=e.LanguageSprite},function(e){y=e.SuperLayout},function(e){b=e.UIManager},function(e){m=e.UIID}],execute:function(){var I,L,v,R,U,E,D,_,w,N,z,B,C,P;i._RF.push({},"bc6ffvTjWJBaLVcjbXvlpHU","UIRechargeRecord",void 0);const{ccclass:T,property:M}=a;e("default",(I=M({displayName:"close",type:n}),L=M({displayName:"record node arr",type:o}),v=M({displayName:"content",type:n}),R=M(s),U=M({displayName:"title",type:n}),E=M(y),T((w=t((_=class extends f{constructor(...e){super(...e),r(this,"closeBtn",w,this),r(this,"recordItemArr",N,this),r(this,"content",z,this),r(this,"scroll",B,this),r(this,"title",C,this),r(this,"layout",P,this),this.recordList=[],this.listPoor=[],this.itemarr=[]}start(){}init(){u.on(h.Refresh_BanK_Data,this.refresh,this)}onOpen(){let e=[g.CN,g.EN];this.title.getComponent(d).setLanguageTypeArr(e);let t=b.getInstance().getUI(m.UIRecharge);l(t.record)&&(this.recordList=t.record,this.layout.total(t.record.length))}refresh(){this.close()}onClose(){u.off(h.Refresh_BanK_Data,this.refresh,this)}onLoad(){super.onLoad(),this.bindEvents()}bindEvents(){this.closeBtn.on(n.EventType.TOUCH_END,(()=>{this.close()}))}getList(){return 0!=this.listPoor.length?this.listPoor.shift():c(this.recordItemArr)}onRefreshEvent(e,t){var r;this.recordList[t]||Log.e(t,this.recordList),null==(r=e.getComponent(p))||r.initRechargeInfo(this.recordList[t],t)}}).prototype,"closeBtn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(_.prototype,"recordItemArr",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(_.prototype,"content",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(_.prototype,"scroll",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(_.prototype,"title",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(_.prototype,"layout",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=_))||D));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIRechargeRecordItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Language.ts","./StringUtil.ts","./UIManager.ts","./UIDefined.ts"],(function(t){"use strict";var e,i,r,n,a,l,o,s,u,c,f,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,n=t.Node,a=t.Label,l=t._decorator,o=t.Component,s=t.Color},function(t){u=t.Language},function(t){c=t.default},function(t){f=t.UIManager},function(t){b=t.UIID}],execute:function(){var g,p,m,h,d,y,L,I,R,U,N,S,w,v,z,k,D;r._RF.push({},"6c0137ZiNxA84ukU9JrD1Sq","UIRechargeRecordItem",void 0);const{ccclass:M,property:x}=l;t("UIRechargeRecordItem",(g=M("UIRechargeRecordItem"),p=x({displayName:"bg1",type:n}),m=x({displayName:"bg2",type:n}),h=x({displayName:"num label",type:a}),d=x({displayName:"type label",type:a}),y=x({displayName:"amount label",type:a}),L=x({displayName:"time label",type:a}),I=x({displayName:"status label",type:a}),g((N=e((U=class extends o{constructor(...t){super(...t),i(this,"bg1",N,this),i(this,"bg2",S,this),i(this,"numLabel",w,this),i(this,"typeLabel",v,this),i(this,"amountLabel",z,this),i(this,"timeLabel",k,this),i(this,"statusLabel",D,this),this.index=0}start(){}initCashInfo(t,e){let i=parseInt(t.method),r=u.getString(i+120005),n=t.acttime.split(" "),a=[{color:"#ffffff",id:130028},{color:"#00ff00",id:130029},{color:"#ff0000",id:130030},{color:"#ffffff",id:130028}],l=e+1,o=""==r?t.method:r,f=c.formatMoney(t.ScoreNum),b=n.length>0?n[0]:"",g=a[parseInt(t.status)].color,p=u.getString(a[parseInt(t.status)].id);this.bg1.active=l%2!=0,this.bg2.active=l%2==0,this.typeLabel.string=o,this.amountLabel.string=f,this.timeLabel.string=b,this.statusLabel.string=p;let m=(new s).fromHEX(g);this.statusLabel.color=m}initRechargeInfo(t,e){this.index=e,this.bg1.active=e%2!=0,this.bg2.active=e%2==0,this.numLabel.string=(e+1).toString()+"";let i=parseInt(t.method);this.typeLabel.string=u.getString([-1,120006,120007,120008,120009,120010][i]),this.amountLabel.string=c.formatMoney(t.ScoreNum),this.timeLabel.string=t.time;let r=[{color:"#ffffff",id:130028},{color:"#00ff00",id:130029},{color:"#ff0000",id:130030},{color:"#ff0000",id:130030}],n=(new s).fromHEX(r[t.status].color);this.statusLabel.color=n,this.statusLabel.string=u.getString(r[t.status].id)}showFailMsg(){let t=f.getInstance().getUI(b.UIRechargeRecord),e=0;if(this.node.parent.children.map(((t,i)=>{t==this.node&&(e=i)})),null!=t.recordList[e].remark){let i={content:t.recordList[e].remark,okName:u.getString(130014),singleBtn:!0,okFunc:()=>{}};f.getInstance().open(b.UIAlert,i)}}}).prototype,"bg1",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(U.prototype,"bg2",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(U.prototype,"numLabel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(U.prototype,"typeLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(U.prototype,"amountLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(U.prototype,"timeLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(U.prototype,"statusLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=U))||R));r._RF.pop()}}}));

System.register("chunks:///_virtual/UIRedpacket.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Global.ts","./CustomEventMgr.ts","./EventDefine.ts","./GameUtil.ts","./MsgHandler.ts","./RedpacketModel.ts","./RedpacketGiftItem.ts","./AudioManager.ts","./ResDefine.ts","./UIView.ts","./UIDefined.ts","./UIManager.ts"],(function(e){"use strict";var t,i,a,n,r,o,l,s,c,d,p,h,g,k,m,u,f,C,I,y,b,A,v,R;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,n=e.Node,r=e._decorator,o=e.Animation,l=e.sp,s=e.instantiate,c=e.Label,d=e.tween,p=e.v3},function(e){h=e.Global},function(e){g=e.CustomEventMgr},function(e){k=e.EventType,m=e.CMDEvent},function(e){u=e.GameUtils},function(e){f=e.default},function(e){C=e.RedpacketModel},function(e){I=e.RedpacketGiftItem},function(e){y=e.default},function(e){b=e.SoundDefine},function(e){A=e.UIView},function(e){v=e.UIID},function(e){R=e.UIManager}],execute:function(){var E,N,U,B,_,D,M,w,G;a._RF.push({},"397befYk4ZDo7CKWr6VyTIg","UIRedpacket",void 0);const{ccclass:P,property:V}=r;e("UIRedpacket",(E=P("UIRedpacket"),N=V({displayName:"gift array",type:[n]}),U=V({displayName:"选择的礼物",type:n}),B=V({displayName:"关闭按钮",type:n}),E((M=t((D=class extends A{constructor(...e){super(...e),i(this,"redpacketItemArr",M,this),i(this,"chooseRedpacket",w,this),i(this,"closeBtn",G,this),this.count=6,this.redpacketValArr=[],this.alReadyClick=!1,this.clickIdx=-1}start(){this.bindEvents()}onOpen(...e){g.on(k.OnGetRedPacket,this.onGetRedpacket,this),this.closeBtn.on(n.EventType.TOUCH_END,(()=>{this.close()}),this),this.chooseRedpacket.getComponent(o).on(o.EventType.FINISHED,(()=>{this.reset()}))}onClose(e){g.fire(k.OnCloseRedPacket),g.off(k.OnGetRedPacket,this.onGetRedpacket,this),g.fire(m.CLOSE_REDPACKET_CMD)}reset(){this.redpacketValArr=[],this.randomRedpacket();for(let e=0;e<this.redpacketItemArr.length;e++){this.redpacketItemArr[e].active=!0,this.redpacketItemArr[e].getChildByName("jinbidikuang").active=!1;let t=this.redpacketItemArr[e].getChildByName("hongbao-001").getComponent(l.Skeleton),i=this.redpacketItemArr[e].getChildByName("hongbao").getComponent(l.Skeleton);this.spineEventCallback0(t),this.spineEventCallback0(i);let a=0;t.setCompleteListener((()=>{0==a&&(a=1,this.spineEventCallback(t),this.spineEventCallback(i))}))}}spineEventCallback(e){switch(e.node.name){case"hongbao":e.setAnimation(0,"hongbao_daiji",!0);break;case"hongbao-001":e.setAnimation(0,"guang_daiji",!0)}}spineEventCallback0(e){switch(e.node.name){case"hongbao":e.setAnimation(.1,"hongbao_chuxian",!1);break;case"hongbao-001":e.setAnimation(.1,"guang_chuxian",!1)}}bindEvents(){for(let e=0;e<this.redpacketItemArr.length;e++)this.redpacketItemArr[e].on(n.EventType.TOUCH_END,this.giftClick,this)}onGetRedpacket(){this.doPlayRedpacketAni()}doPlayRedpacketAni(){let e=this.redpacketItemArr[this.clickIdx],t=s(e);t.parent=e.parent,this.spineEventCallback(t.getChildByName("hongbao-001").getComponent(l.Skeleton)),e.active=!1;for(let e=0;e<this.redpacketItemArr.length;e++){let i=this.redpacketItemArr[e];if(e!=this.clickIdx){i.getComponent(I).showUI(),i.getChildByName("dizuo").active=!1,i.getChildByName("dizuoan").active=!0,i.getChildByName("jinbian").active=!0,i.getChildByName("hongbao").active=!1;let t=i.getChildByName("jinbidikuang");t.active=!0,t.getChildByName("Label").getComponent(c).string="+"+this.redpacketValArr[e].toString();continue}{t.getComponent(I).showUI(),t.getChildByName("jinbi").active=!0;let i=t.getChildByName("jinbidikuang");i.active=!0,i.getChildByName("Label").getComponent(c).string="+"+this.redpacketValArr[e].toString()}t.position=i.getPosition();let a=d(t).to(.5,{position:p(0,0,0)}),n=d(t).to(.5,{scale:p(1.3,1.3,1.3)});d(t).delay(1).call((()=>{this.hideAllItems()})).parallel(a,n).delay(.25).call((()=>{})).call((()=>{let e=h.gameCtrl.getModel(C).redpacket,i=t.worldPosition;R.getInstance().getUI(v.UIAniLayer).playCoinAni(0,i,h.gameCtrl.getUserInfo().money-e,e,5,(()=>{this.close()}))})).start()}}hideAllItems(){y.Instance().playEffect(b.sound_redpacket_light);for(let e=0;e<this.redpacketItemArr.length;e++)this.redpacketItemArr[e].active=!1}randomRedpacket(){y.Instance().playEffect(b.sound_redpacket_light);let e=h.gameCtrl.getModel(C).redpacket;this.redpacketValArr.length=0;for(let t=0;t<this.count;t++){let t=parseFloat((u.randomFloat(.1,1.9)*e).toFixed(2));this.redpacketValArr.push(t)}}giftClick(e){if(this.closeBtn.active=!1,this.alReadyClick)return;this.alReadyClick=!0;let t=e.getCurrentTarget();for(let e=0;e<this.redpacketItemArr.length;e++){if(t==this.redpacketItemArr[e]){y.Instance().playEffect(b.sound_click_redpacket),this.redpacketValArr[e]=h.gameCtrl.getModel(C).redpacket,this.clickIdx=e,f.Instance().c2sgetredpacket();break}}}}).prototype,"redpacketItemArr",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=t(D.prototype,"chooseRedpacket",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(D.prototype,"closeBtn",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=D))||_));a._RF.pop()}}}));

System.register("chunks:///_virtual/UIRegister.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PEditBox.ts","./EnumDefine.ts","./EventDefine.ts","./SdkManager.ts","./StorageUtil.ts","./StringUtil.ts","./Global.ts","./AudioManager.ts","./ComponentMgr.ts","./CustomEventMgr.ts","./Language.ts","./MsgHandler.ts","./RegisterModel.ts","./User.ts","./UIView.ts","./CountDown.ts","./LanguageLabel.ts","./UIUtils.ts","./ResManager.ts"],(function(e){"use strict";var t,i,o,a,n,s,r,d,l,h,c,p,u,g,f,y,m,C,B,b,E,x,w,T,I,v,V,N,L,R,k,A,P,_,G,D,S;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,a=e.Node,n=e.EditBox,s=e.Label,r=e.ScrollView,d=e.Sprite,l=e._decorator,h=e.ImageAsset,c=e.Texture2D,p=e.SpriteFrame,u=e.instantiate,g=e.isValid,f=e.Button},function(e){y=e.PEditBox},function(e){m=e.ERegister_Code_Type,C=e.ERegister_Type,B=e.APP_TYPE},function(e){b=e.EventType},function(e){E=e.default},function(e){x=e.default},function(e){w=e.default},function(e){T=e.Global},function(e){I=e.playBtn},function(e){v=e.default},function(e){V=e.CustomEventMgr},function(e){N=e.Language,L=e.default},function(e){R=e.default},function(e){k=e.RegisterModel},function(e){A=e.User},function(e){P=e.UIView},function(e){_=e.default},function(e){G=e.LanguageLabel},function(e){D=e.default},function(e){S=e.ResManager}],execute:function(){var z,U,M,O,H,F,j,Y,X,Q,W,q,J,K,Z,$,ee,te,ie,oe,ae,ne,se,re,de,le,he,ce,pe,ue,ge,fe,ye,me,Ce,Be,be,Ee,xe,we,Te,Ie;o._RF.push({},"65543YdTE9InYcR/216UQAj","UIRegister",void 0);const{ccclass:ve,property:Ve}=l;e("default",(z=Ve({displayName:"closeBtn",type:a,tooltip:"关闭按钮"}),U=Ve({displayName:"mobileEditBox",type:n,tooltip:"手机editbox"}),M=Ve({displayName:"accountEditBox",type:n,tooltip:"账号editbox"}),O=Ve({displayName:"passEditBox",type:y,tooltip:"密码editbox"}),H=Ve({displayName:"againPassEditBox",type:y,tooltip:"再次密码editbox"}),F=Ve({displayName:"referalEditBox",type:n,tooltip:"推荐码editbox"}),j=Ve({displayName:"imgVarifyEditBox",type:n,tooltip:"图形验证码editbox"}),Y=Ve({displayName:"varifyCodeEditBox",type:n,tooltip:"验证码Editbox"}),X=Ve({displayName:"btnGetCode",type:a,tooltip:"获取验证码按钮"}),Q=Ve({displayName:"lbGetCode",type:a,tooltip:"获取验证码按钮文字显示"}),W=Ve({displayName:"registerBtn",type:a,tooltip:"注册按钮"}),q=Ve({displayName:"areaCodeListBtn",type:a,tooltip:"area code list Btn"}),J=Ve({displayName:"areaCodeListNode",type:a,tooltip:"area code list node"}),K=Ve({displayName:"areaCodeBlackBg",type:a,tooltip:"弹窗黑色背景"}),Z=Ve({displayName:"areaCodeLabel",type:s,tooltip:"area code label"}),$=Ve({displayName:"areaCodeItemTemp",type:a,tooltip:"area code item temp"}),ee=Ve({displayName:"areaCodeScrollView",type:r,tooltip:"area code ScrollView"}),te=Ve({displayName:"imgValifyRefreshBtn",type:a,tooltip:"图片校验刷新按钮"}),ie=Ve({displayName:"imgValify",type:d,tooltip:"图片校验"}),oe=Ve({displayName:"brokenImgValify",type:d,tooltip:"破损的图片校验"}),ve((se=t((ne=class extends P{constructor(...e){super(...e),i(this,"closeBtn",se,this),i(this,"mobileEditBox",re,this),i(this,"accountEditBox",de,this),i(this,"passEditBox",le,this),i(this,"againPassEditBox",he,this),i(this,"referalEditBox",ce,this),i(this,"imgVarifyEditBox",pe,this),i(this,"varifyCodeEditBox",ue,this),i(this,"btnGetCode",ge,this),i(this,"lbGetCode",fe,this),i(this,"registerBtn",ye,this),i(this,"areaCodeListBtn",me,this),i(this,"areaCodeListNode",Ce,this),i(this,"areaCodeBlackBg",Be,this),i(this,"areaCodeLabel",be,this),i(this,"areaCodeItemTemp",Ee,this),i(this,"areaCodeScrollView",xe,this),i(this,"imgValifyRefreshBtn",we,this),i(this,"imgValify",Te,this),i(this,"brokenImgValify",Ie,this),this.areaCodeItemArr=[],this.areaCodeDatas=[],this.curSelectAreaCode=-1,this.codeId=-1,this.openType=m.NULL,this.account="",this.password="",this.registerType=C.Close,this.confirmPwd=!1,this.code=null,this.MAX_TIME=60}onLoad(){this.bindEvents()}start(){}onOpen(){V.on(b.GetCode,this.onRecievedCode,this),V.on(b.OnRegister,this.onRegister,this),V.on(b.OnGetVerifica,this.onGetVerifica,this),this.initPanel()}onClose(){V.off(b.GetCode,this.onRecievedCode,this),V.off(b.OnRegister,this.onRegister,this),V.off(b.OnGetVerifica,this.onGetVerifica,this)}initPanel(){this.areaCodeDatas=[{code:86,content:"cn"}];let e=this.getModel(k).registerData;if(!e)return;let t=e.registerType,i=e.code;this.code=i;let o=e.code,a=e.openType,n=e.confirmpwd;this.confirmPwd=n,this.areaCodeDatas=o,this.openType=a;let s=this.areaCodeDatas&&this.areaCodeDatas.length>0?this.areaCodeDatas[0].code:86;this.areaCodeLabel.string="+"+s.toString(),this.curSelectAreaCode=s,this.areaCodeListNode.active=!1,this.refreshAreaCodeList(),this.brokenImgValify.node.active=!0,this.imgValify.node.active=!1,this.imgValifyRefresh(),this.showGrp(t)}showGrp(e){let t=this.passEditBox.node.parent,i=this.againPassEditBox.node.parent,o=this.accountEditBox.node.parent,a=this.mobileEditBox.node.parent,n=this.referalEditBox.node.parent,s=this.imgVarifyEditBox.node.parent,r=this.varifyCodeEditBox.node.parent,d=[t,i,o,a,n,s,r],l=[];if(e==C.Acount)this.openType==m.Graph_Code?l=[o,t,i,r]:this.openType==m.Reffer_Code?l=[o,t,i,n]:this.openType==m.Both_Close?l=[o,t,i]:this.openType==m.Both_Open&&(l=[o,t,i,r,n]);else if(e==C.Mobile){this.code&&this.code;this.openType==m.Graph_Code?l=[a,s,r,t,i]:this.openType==m.Reffer_Code?l=[a,r,t,i,n]:this.openType==m.Both_Close?l=[a,r,t,i]:this.openType==m.Both_Open&&(l=[a,s,r,t,i,n])}if(!this.confirmPwd){let e=l.indexOf(i);e>-1&&l.splice(e,1)}for(let e=0;e<d.length;e++)-1!=l.indexOf(d[e])?d[e].active=!0:d[e].active=!1}bindEvents(){this.closeBtn.on(a.EventType.TOUCH_END,(()=>{this.close()}),this),this.areaCodeListBtn.on(a.EventType.TOUCH_END,(()=>{I(),this.appearAreaCodeList()}),this),this.areaCodeBlackBg.on(a.EventType.TOUCH_END,(e=>{this.disAppearAreaCodeList()}),this),this.imgValifyRefreshBtn.on(a.EventType.TOUCH_END,(()=>{this.imgValifyRefresh()}),this),this.registerBtn.on(a.EventType.TOUCH_END,(()=>{this.register()}),this),this.btnGetCode.on(a.EventType.TOUCH_END,(()=>{this.getCodeByPhoneNum(),I()}),this)}onRecievedCode(e){if(!e||!this.imgVarifyEditBox.node.parent.active)return;this.imgValify.node.active=!0,this.brokenImgValify.node.active=!1;const t=new Image;t.src="data:image/jpeg;base64,"+e.img,t.onload=()=>{this.imgValify.node.active=!0,this.brokenImgValify.node.active=!1;let e=new h(t);const i=new c;i.image=e;const o=new p;o.texture=i,this.imgValify.spriteFrame=o}}onRegister(e){1==e.succ?(v.showTipsById(107025),E.login(T.osid,A.instance.device_token||"",this.account,this.password),D.showLoading()):41==e.code?v.showTipsById(111041):35==e.code?v.showTipsById(110035):20==e.code?v.showTipsById(110020):17==e.code?v.showTipsById(110017):16==e.code?v.showTipsById(110016):15==e.code?v.showTipsById(110015):12==e.code||11==e.code?v.showTipsById(110011):10==e.code?v.showTipsById(110010):9==e.code?v.showTipsById(110009):8==e.code?v.showTipsById(110008):v.showTipsById(310049)}imgValifyRefresh(){this.imgValify.node.active=!1,this.brokenImgValify.node.active=!0,R.Instance().c2sGetCode()}appearAreaCodeList(){this.areaCodeListNode.active=!0}disAppearAreaCodeList(){this.areaCodeListNode.active=!1}doRemoveAllAreaCodeItems(){for(let e=0;e<this.areaCodeItemArr.length;e++)this.areaCodeItemArr[e].destroy();this.areaCodeItemArr=[]}refreshAreaCodeList(){if(!this.mobileEditBox.node.parent.active)return;this.doRemoveAllAreaCodeItems();let e=this.areaCodeScrollView.content;for(let t=0;t<this.areaCodeDatas.length;t++){let i=this.areaCodeDatas[t].code,o=u(this.areaCodeItemTemp);o.parent=e,o.active=!0,this.areaCodeItemArr.push(o),o.getChildByName("Label").getComponent(s).string="+"+i.toString(),this.updataUrlPic(o.getChildByName("iconNode"),this.areaCodeDatas[t].content),o.name=i.toString(),o.on(a.EventType.TOUCH_END,this.areaCodeListItemClick,this)}this.areaCodeScrollView.scrollToTop()}updataUrlPic(e,t){g(e)&&S.Instance().loadRemoteImg(t,!0,(t=>{let i=e.getComponent(d);i&&i.spriteFrame&&(i.spriteFrame=t)}))}areaCodeListItemClick(e){let t=e.getCurrentTarget();I(),this.curSelectAreaCode=parseInt(t.name),this.areaCodeLabel.string="+"+t.name,this.disAppearAreaCodeList()}register(){if(this.mobileEditBox&&this.mobileEditBox.node.parent.active&&0==this.checkPhoneNumber())return;if(this.accountEditBox&&this.accountEditBox.node.parent.active&&0==this.checkAccount(this.accountEditBox.string))return;if(this.imgVarifyEditBox&&this.imgVarifyEditBox.node.parent.active&&0==this.checkGraphCode(this.imgVarifyEditBox.string,!0))return;if(this.varifyCodeEditBox&&this.varifyCodeEditBox.node.parent.active&&0==this.checkGraphCode(this.varifyCodeEditBox.string,!1))return;if(this.passEditBox&&this.passEditBox.node.parent.active&&0==this.checkPassword(this.passEditBox.string,this.againPassEditBox.string))return;if(this.referalEditBox&&this.referalEditBox.node.parent.active&&0==this.checkRecommendCode(this.referalEditBox.string,!0))return;this.accountEditBox.string&&(this.account=this.accountEditBox.string),this.passEditBox.string&&(this.password=this.passEditBox.string);let e={mobile:this.mobileEditBox.string,verifica:this.varifyCodeEditBox.string,userid:this.accountEditBox.string,passwd:this.passEditBox.string,passwd2:this.againPassEditBox.string,agentcode:this.referalEditBox.string||x.getReferralCode(),id:this.codeId,imgCode:this.imgVarifyEditBox.string,dev_id:T.osid,channel_id:T.appPlatformId,app_type:B.cocos};E.register(e),I()}getCodeByPhoneNum(){if(0==this.checkPhoneNumber())return;let e=this.btnGetCode.getComponent(f);e.enabled&&(R.Instance().c2sgetverifica(2,this.mobileEditBox.string),e.enabled=!1,this.lbGetCode.getComponent(_).run(this.MAX_TIME,this.countDownCallback,"ss",this))}countDownCallback(){this.btnGetCode.getComponent(f).enabled=!0,this.lbGetCode.getComponent(G).language()}checkPhoneNumber(){return!(!this.mobileEditBox.string||this.mobileEditBox.string.length<1)||(v.showTipsById(130041),!1)}checkAccount(e){if(!e)return v.showTipsById(130040),!1;if(!w.checkAccount(e)){let e=N.getString(107015)+L.getInstance().language.formatString(N.getString(107014),["7-20"]);return v.showTips(e),!1}return!0}checkPassword(e,t){if(!e)return v.showTipsById(130042),!1;if(!w.checkPassWord(e)){let e=N.getString(107015)+L.getInstance().language.formatString(N.getString(107014),["6-16"]);return v.showTips(e),!1}if(this.againPassEditBox&&this.againPassEditBox.node.parent.active){if(!t)return v.showTipsById(130043),!1;if(e!=t)return v.showTipsById(107009),!1}return!0}checkGraphCode(e,t){return t&&!e?(v.showTipsById(130044),!1):!(!t&&!e)||(v.showTipsById(130045),!1)}checkRecommendCode(e,t){return!(t&&!e&&T.appData.isRegisterCode)||(v.showTipsById(130046),!1)}onGetVerifica(e){e.succ}getModel(e){return T.gameCtrl.getModel(e)}}).prototype,"closeBtn",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=t(ne.prototype,"mobileEditBox",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),de=t(ne.prototype,"accountEditBox",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=t(ne.prototype,"passEditBox",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),he=t(ne.prototype,"againPassEditBox",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce=t(ne.prototype,"referalEditBox",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pe=t(ne.prototype,"imgVarifyEditBox",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=t(ne.prototype,"varifyCodeEditBox",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge=t(ne.prototype,"btnGetCode",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fe=t(ne.prototype,"lbGetCode",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ye=t(ne.prototype,"registerBtn",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),me=t(ne.prototype,"areaCodeListBtn",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ce=t(ne.prototype,"areaCodeListNode",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Be=t(ne.prototype,"areaCodeBlackBg",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),be=t(ne.prototype,"areaCodeLabel",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ee=t(ne.prototype,"areaCodeItemTemp",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),xe=t(ne.prototype,"areaCodeScrollView",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),we=t(ne.prototype,"imgValifyRefreshBtn",[te],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Te=t(ne.prototype,"imgValify",[ie],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ie=t(ne.prototype,"brokenImgValify",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=ne))||ae));o._RF.pop()}}}));

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

System.register("chunks:///_virtual/UISafeBox.ts",["./rollupPluginModLoBabelHelpers.js","cc","./MsgHandler.ts","./CustomEventMgr.ts","./EventDefine.ts","./User.ts","./StringUtil.ts","./LogUtil.ts","./PSlider.ts","./UIView.ts","./Language.ts","./ComponentMgr.ts","./AudioManager.ts","./ResDefine.ts"],(function(t){"use strict";var e,n,i,s,o,a,r,l,c,u,h,d,p,f,m,y,g,b,B,E,k,C;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Node,o=t.Label,a=t.EditBox,r=t._decorator,l=t.EventHandler,c=t.Animation,u=t.Slider},function(t){h=t.default},function(t){d=t.CustomEventMgr},function(t){p=t.EventType},function(t){f=t.User},function(t){m=t.default},function(t){y=t.default},function(t){g=t.PSlider},function(t){b=t.UIView},function(t){B=t.Language},function(t){E=t.default},function(t){k=t.default},function(t){C=t.SoundDefine}],execute:function(){var x,N,S,v,M,T,U,I,w,D,_,A,z,O,H,L,R,G,P,F,V;i._RF.push({},"33a3chfS5JBoLtsRwYdtX0g","UISafeBox",void 0);const{ccclass:j,property:J}=r,W="kuaimen";t("UISafeBox",(x=j("UISafeBox"),N=J({displayName:"max按钮",type:s}),S=J({displayName:"ok按钮",type:s}),v=J({displayName:"slider",type:g}),M=J({displayName:"balance",type:o}),T=J({displayName:"amount EditBox",type:a}),U=J({displayName:"safe",type:o}),I=J({displayName:"closeBtn",type:s}),w=J({displayName:"choiceBtn",type:[s]}),D=J({displayName:"物理遮罩",type:s}),x((z=e((A=class extends b{constructor(...t){super(...t),n(this,"maxBtn",z,this),n(this,"okBtn",O,this),n(this,"slider",H,this),n(this,"balance",L,this),n(this,"amountEditBox",R,this),n(this,"safe",G,this),n(this,"closeBtn",P,this),n(this,"choiceBtn",F,this),n(this,"maskNode",V,this),this.curAmount=0,this.reachType=0,this.inInfo=null}onLoad(){super.onLoad(),this.bindEvents()}start(){this.amountEditBox.string=m.formatMoney(0),this.curAmount=0,this.slider.getComponent(g).progress=0,this.slider.getComponent(g).registerSliderEventCallback(this.sliderEventCallback,this)}onOpen(...t){h.Instance().c2sgetBank(),d.on(p.OnGetBank,this.onGetBank,this),d.on(p.OnChangeUserInfo,this.onRefreshMoney,this),this.reachType=0,this.isCanUseSlider()}onClose(){d.off(p.OnGetBank,this.onGetBank,this),d.off(p.OnChangeUserInfo,this.onRefreshMoney,this)}bindEvents(){var t;this.closeBtn.on(s.EventType.TOUCH_END,(()=>{k.Instance().playEffect(C.sound_close),this.close()}),this),this.maxBtn.on(s.EventType.TOUCH_END,(()=>{this.maxBtnClick()}),this),this.okBtn.on(s.EventType.TOUCH_END,(()=>{this.okBtnClick()}),this);let e=new l;e.component="UISafeBox",e.handler="amountEditingDidEnded",e.target=this.node,null==(t=this.amountEditBox)||t.editingDidEnded.push(e)}amountEditingDidEnded(t,e){if(y.debug("amountEditingDidEnded"),!m.checkNum(this.amountEditBox.string))return;let n=parseFloat(m.numStrToNum(this.amountEditBox.string)),i=0;0==this.reachType?(n=n>f.instance.money?f.instance.money:n,n=Math.floor(100*n)/100,i=0==f.instance.money?0:n/f.instance.money):1==this.reachType&&(n=n>f.instance.bank?f.instance.bank:n,n=Math.floor(100*n)/100,i=0==f.instance.bank?0:n/f.instance.bank),this.amountEditBox.string=m.formatMoney(n),this.curAmount=n,this.inInfo=this.amountEditBox.string,this.slider.progress=i}onGetBank(t){this.updateMoney()}onRefreshMoney(t){1==t.succ&&(this.updateMoney(),this.slider.progress=0,this.sliderEventCallback(0),this.isCanUseSlider())}updateMoney(){let t=f.instance;this.balance.string=m.formatMoney(t.money),this.safe.string=m.formatMoney(t.bank)}sliderEventCallback(t){let e=0==this.reachType?f.instance.money:f.instance.bank;this.curAmount=Math.floor(e*t*100)/100,this.inInfo=this.amountEditBox.string,this.amountEditBox.string=m.formatMoney(this.curAmount)}okBtnClick(){Number(this.inInfo)||Number(this.curAmount)?h.Instance().c2scoffer(0==this.reachType?1:0,this.curAmount):1==this.reachType?E.showTips(B.getString(111035)):E.showTips(B.getString(111034))}maxBtnClick(){(0==this.reachType?f.instance.money:f.instance.bank)<1||(this.slider.progress=1,this.sliderEventCallback(1))}changeType(t,e){if(this.reachType==e)return;let n=this.maskNode.getComponent(c);n&&!n.getState(W).isPlaying&&n.play(W),this.slider.progress=0,this.sliderEventCallback(0),this.reachType=e,this.choiceBtn.map(((t,n)=>{t.active=n%2==e})),this.isCanUseSlider()}onEnable(){d.fire(p.HIDE_MAIN_UI)}onDisable(){d.fire(p.SHOW_MAIN_UI)}isCanUseSlider(){let t=0==this.reachType?f.instance.money:f.instance.bank;this.slider.node.getChildByName("Slider").getComponent(u).enabled=!(t<1)}}).prototype,"maxBtn",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(A.prototype,"okBtn",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(A.prototype,"slider",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(A.prototype,"balance",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(A.prototype,"amountEditBox",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(A.prototype,"safe",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(A.prototype,"closeBtn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(A.prototype,"choiceBtn",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=e(A.prototype,"maskNode",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=A))||_));i._RF.pop()}}}));

System.register("chunks:///_virtual/UISatisfy.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventDefine.ts","./Global.ts","./CustomEventMgr.ts","./MsgHandler.ts","./ComponentMgr.ts","./StorageUtil.ts","./GameEvent.ts","./AudioManager.ts","./ResDefine.ts","./UIView.ts","./UIButton.ts"],(function(t){"use strict";var e,i,s,n,o,r,a,l,c,u,h,f,S,d,p,m,g;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Node,o=t._decorator,r=t.NodeEventType},function(t){a=t.SurveyEvent},function(t){l=t.Global},function(t){c=t.CustomEventMgr},function(t){u=t.default},function(t){h=t.default},function(t){f=t.default},function(t){S=t.GameEvent},function(t){d=t.default},function(t){p=t.SoundDefine},function(t){m=t.UIView},function(t){g=t.UIButton}],execute:function(){var b,y,I,_,B,v,C,E,U,N,T;s._RF.push({},"4a8cdeVvGxDQofQgJSypwXi","UISatisfy",void 0);const{ccclass:x,property:k}=o;t("default",(b=x("UISatisfy"),y=k({displayName:"closeBtn",type:g}),I=k({displayName:"submitBtn",type:g}),_=k({displayName:"stars",type:[n]}),B=k({displayName:"linktxt_ignore",type:n}),b((E=e((C=class extends m{constructor(...t){super(...t),i(this,"closeBtn",E,this),i(this,"submitBtn",U,this),i(this,"stars",N,this),i(this,"linktxt_ignore",T,this),this.curSelectStarIndex=-1}init(...t){this.curSelectStarIndex=0,this.selectStar(0),this.submitBtn.touchEndedFun=this.onSubmit.bind(this),this.closeBtn.touchEndedFun=this.onCloseBtn.bind(this)}onOpen(...t){this.addToStage()}close(){this.removeFromStage(),super.close()}onSubmitSucess(){this.cache=!1,h.showTipsById(280010),this.close()}onSubmitFail(){h.showTipsById(280009)}starClick(t){d.Instance().playEffect(p.sound_click);let e=t.getCurrentTarget(),i=this.stars.indexOf(e);-1!=i&&i!=this.curSelectStarIndex&&(this.curSelectStarIndex=i,this.selectStar(this.curSelectStarIndex))}selectStar(t){for(let e=0;e<this.stars.length;e++)this.stars[e].getChildByName("select").active=!(e>t)}onSubmit(t){let e={tel:"",remark:"",number:this.curSelectStarIndex+1};u.Instance().c2sSurvey(e)}onCloseBtn(t){this.close()}onIgnore(){d.Instance().playEffect(p.sound_click),f.saveSatisfyIgnoreTime(l.svrTimeMS),c.fire(S.ON_SWITCH_CHANGE),this.cache=!1,this.close()}addToStage(){c.on(a.ON_SUBMIT_SUCESS,this.onSubmitSucess,this),c.on(a.ON_SUBMIT_FAIL,this.onSubmitFail,this),this.linktxt_ignore.on(r.TOUCH_END,this.onIgnore,this);for(let t=0;t<this.stars.length;t++)this.stars[t].on(r.TOUCH_END,this.starClick,this)}removeFromStage(){c.off(a.ON_SUBMIT_SUCESS,this.onSubmitSucess,this),c.off(a.ON_SUBMIT_FAIL,this.onSubmitFail,this),this.linktxt_ignore.off(r.TOUCH_END,this.onIgnore,this);for(let t=0;t<this.stars.length;t++)this.stars[t].off(r.TOUCH_END,this.starClick,this)}}).prototype,"closeBtn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(C.prototype,"submitBtn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(C.prototype,"stars",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),T=e(C.prototype,"linktxt_ignore",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=C))||v));s._RF.pop()}}}));

System.register("chunks:///_virtual/UITask.ts",["./rollupPluginModLoBabelHelpers.js","cc","./TaskCoin.ts","./TaskItem.ts","./TaskProgressInfo.ts","./TaskWaitingInfo.ts","./TaskRewardInfo.ts","./EnumDefine.ts","./EventDefine.ts","./LogUtil.ts","./Global.ts","./CustomEventMgr.ts","./MsgHandler.ts","./Language.ts","./TaskModel.ts","./GameUtil.ts","./TaskRecordInfo.ts","./LanguageSprite.ts","./AudioManager.ts","./ResDefine.ts","./UIView.ts","./ComponentMgr.ts","./ResManager.ts","./HotUpdateDefine.ts"],(function(t){"use strict";var e,i,s,a,n,o,r,l,c,h,g,f,u,p,k,d,m,I,T,b,y,_,C,v,S,w,D,N,E,R,L,O,G,K,B,P,A,H,M,z,W;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,a=t.Node,n=t.Label,o=t.Prefab,r=t._decorator,l=t.instantiate,c=t.isValid,h=t.v3,g=t.tween,f=t.Animation,u=t.sp,p=t.UIOpacity},function(t){k=t.TaskCoin},function(t){d=t.TaskItem},function(t){m=t.TaskProgressInfo},function(t){I=t.TaskWaitingInfo},function(t){T=t.TaskRewardInfo},function(t){b=t.TaskKind,y=t.TaskRewardType,_=t.ELanguage_Type,C=t.TaskType},function(t){v=t.TaskEvent,S=t.EventType},function(t){w=t.default},function(t){D=t.Global},function(t){N=t.CustomEventMgr},function(t){E=t.default},function(t){R=t.Language,L=t.default},function(t){O=t.TaskModel},function(t){G=t.GameUtils},function(t){K=t.default},function(t){B=t.LanguageSprite},function(t){P=t.default},function(t){A=t.SoundDefine},function(t){H=t.UIView},function(t){M=t.default},function(t){z=t.ResManager},function(t){W=t.Macro}],execute:function(){var U,Y,F,x,V,j,Z,q,J,Q,X,$,tt,et,it,st,at,nt,ot,rt,lt,ct,ht,gt,ft,ut,pt,kt,dt,mt,It,Tt,bt,yt,_t,Ct,vt,St,wt,Dt,Nt,Et,Rt,Lt,Ot,Gt;s._RF.push({},"519f6tdmpNO3ZDMu8R38iD7","UITask",void 0);const{ccclass:Kt,property:Bt}=r;t("default",(U=Bt({displayName:"关闭按钮",type:a}),Y=Bt({displayName:"title label",type:n}),F=Bt({displayName:"获取奖励",type:o}),x=Bt({displayName:"任务等待信息",type:o}),V=Bt({displayName:"scroll_task_info",type:a}),j=Bt({displayName:"task progress info",type:a}),Z=Bt({displayName:"select task tab info",type:a}),q=Bt({displayName:"task help info",type:a}),J=Bt({displayName:"task record info",type:a}),Q=Bt({displayName:"task help btn",type:a}),X=Bt({displayName:"task items",type:o}),$=Bt({displayName:"tab items",type:[a]}),tt=Bt({displayName:"wait",type:a}),et=Bt({displayName:"title loGo",type:a}),it=Bt({displayName:"plaseBg",type:a}),st=Bt({displayName:"reward",type:a}),at=Bt({displayName:"record",type:a}),nt=Bt({displayName:"score Info",type:a}),ot=Bt({displayName:"chuchang",type:a}),rt=Bt({displayName:"title",type:a}),lt=Bt({displayName:"宝箱节点",type:a}),ct=Bt({displayName:"面板父节点",type:a}),Kt((ft=e((gt=class extends H{constructor(...t){super(...t),i(this,"closeBtn",ft,this),i(this,"titleLabel",ut,this),i(this,"getRewardInfo",pt,this),i(this,"taskWaitingInfo",kt,this),i(this,"scrollTaskInfo",dt,this),i(this,"taskProgressInfo",mt,this),i(this,"selectTaskInfo",It,this),i(this,"taskHelpInfo",Tt,this),i(this,"taskRecordInfo",bt,this),i(this,"taskHelpBtn",yt,this),i(this,"taskItems",_t,this),i(this,"tabItems",Ct,this),i(this,"wait",vt,this),i(this,"title_loGo",St,this),i(this,"plaseBg",wt,this),i(this,"reward",Dt,this),i(this,"recordBtn",Nt,this),i(this,"scoreInfo",Et,this),i(this,"chuchang",Rt,this),i(this,"title",Lt,this),i(this,"box",Ot,this),i(this,"itemParent",Gt,this),this.isFirst=!1,this.selectFirst=!1,this._curSelectKind=b.NONE,this.tabInfoList=[],this.isPlayEffect=[!1,!1,!1],this.taskItemInfos=[],this.taskWaiting=null,this.getReward=null,this.taskItemArr=[]}get curSelectKind(){return this._curSelectKind}onLoad(){if(0==this.taskItemArr.length)for(let t=0;t<4;t++){let t=l(this.taskItems);this.taskItemArr&&(this.taskItemArr.push(t),t.parent=this.itemParent)}}onOpen(t){this.initPanel(),N.on(v.GET_TASK_DATA,this.onGetTaskData,this),N.on(v.GET_TASK_COIN,this.onGetTaskCoin,this),this.node.on(a.EventType.TOUCH_END,(()=>{P.Instance().playEffect(A.sound_click_btn)})),this.comeOnStage();let e=this.background.getChildByName("helpinfo");z.Instance().load(W.BUNDLE_RESOURCES,"prefabs/ui/task/task_help_info",o,(()=>{}),(t=>{l(t.data).parent=e}));let i=this.background.getChildByName("recordinfo");z.Instance().load(W.BUNDLE_RESOURCES,"prefabs/ui/task/task_record_info",o,(()=>{}),(t=>{l(t.data).parent=i}))}onClose(t){N.fire(v.GET_TASK_BTN_STATE),N.off(v.GET_TASK_DATA,this.onGetTaskData,this),N.off(v.GET_TASK_COIN,this.onGetTaskCoin,this),N.fire(S.Close_Effect_Task,this.onGetTaskCoin,this)}start(){this.bindEvents()}bindEvents(){this.closeBtn.on(a.EventType.TOUCH_END,(()=>{this.close()}),this),this.taskHelpBtn.on(a.EventType.TOUCH_END,(()=>{this.showTaskHelpInfo()}),this),this.recordBtn.on(a.EventType.TOUCH_END,(()=>{this.showRecord()}),this);for(let t=0;t<this.tabItems.length;t++)this.tabItems[t].on(a.EventType.TOUCH_END,this.onClickTaskTab,this)}initPanel(){this.isFirst=!0,E.Instance().c2sActionReporting("cashgift"),this.titleLabel.string=R.getString(160021),this.onGetTaskData()}onGetTaskData(){this.changeTabLang(),this.showTaskInfo(),this._changeSingleTask(!1)}onGetTaskCoin(t){let e=D.gameCtrl.getModel(O);if(e.c2sGetTaskState(),0==t.coinType)return;let i=this.taskProgressInfo.getComponent(m).getNextCoin();if(!i)return void M.showTipsById(310017);let s=y.NONE;t.taskKind==b.DAILY?s=y.COPPER:t.taskKind==b.WEEKLY?s=y.SLIVER:t.taskKind==b.MONTHLY&&(s=y.GOLD),s!=y.NONE?s==Number(this._curSelectKind)?i.getComponent(k).setCoinInfo(s,3,2):(e.c2sGetTaskData(),w.debug("UITask")):M.showTipsById(310016)}_changeSingleTask(t=!0){this.selectTaskInfo.active=!t}changeTabLang(){let t=[],e=D.gameCtrl.getModel(O),i=[b.DAILY,b.WEEKLY,b.MONTHLY],s=[160007,160008,160009];for(let a=0;a<i.length;a++){let n=i[a],o=e.getTaskData(n);if(!o||!o.isOpen)continue;let r=R.getString(s[a]),l="",c=!1;(o.hasReceiveItem()||o.progressData.canReceive&&!o.progressData.haveGot)&&(c=!0);let h={name:r,type:n,icon:l,isRedpoint:c};t&&t.push(h)}if(this.tabInfoList=t,0!=t.length){if(this._curSelectKind==b.NONE&&(this._curSelectKind=t[0].type),c(this.tabItems)){if(0==this.tabItems.length)for(let t=0;t<3;t++)this.tabItems.push(this.selectTaskInfo.children[t]);for(let e=0;e<this.tabItems.length;e++){let i=!1,s=this.tabItems[e];for(let a=0;a<t.length;a++){let n=t[a].type,o=t[a].isRedpoint;if(n==e+1){i=!0,s.getChildByName("point").active=o;break}}s.active=i}}this.showSelect(t)}}showSelect(t){if(!c(this.selectTaskInfo))return;let e=[!1,!1,!1],i=this.selectTaskInfo.getChildByName("bg");if(t.map(((t,i)=>{switch(t.type){case 1:e[0]=!0;break;case 2:e[1]=!0;break;case 3:e[2]=!0}})),!this.selectFirst){let t=0,s=this.selectTaskInfo.children;t=0;let a=null;s.map(((n,o)=>{e[o]?0!=o&&"bg"!=n.name&&0!=t&&(null==a?(a=h(n.position.x,n.position.y,n.position.z),n.setPosition(s[o-t].position)):n.setPosition(a)):o!=s.length-1&&(i.children[t].active=!1,t++)}))}for(let e=0;e<t.length;e++)if(t[e].type==this._curSelectKind){this.selectTab(this._curSelectKind-1,!1);break}this.selectFirst||(this.selectFirst=!0,g(this.selectTaskInfo).to(0,{position:h(-527,423,0)}).to(.5,{position:h(-527,-87,0)}).start())}showTaskInfo(){null==this.taskWaiting&&(this.taskWaiting=l(this.taskWaitingInfo),this.wait.addChild(this.taskWaiting)),null==this.getReward&&(this.getReward=l(this.getRewardInfo),this.reward.addChild(this.getReward));let t=[_.CN,_.EN];this.title_loGo.getComponent(B).setLanguageTypeArr(t),this._curSelectKind==b.DAILY||this._curSelectKind==b.NONE?this.title_loGo.getComponent(B).imageStr=R.getSource("LOGO2"):this._curSelectKind==b.WEEKLY?this.title_loGo.getComponent(B).imageStr=R.getSource("LOGO3"):this._curSelectKind==b.MONTHLY&&(this.title_loGo.getComponent(B).imageStr=R.getSource("LOGO4"));let e=D.gameCtrl.getModel(O);this.hideTaskInfo();let i=e.getTaskData(this._curSelectKind);if(!i||!i.isOpen){let t=[b.DAILY,b.WEEKLY,b.MONTHLY],s=!1;for(let a of t)if(a!=this._curSelectKind&&(i=e.getTaskData(a),i&&i.isOpen)){this._curSelectKind=a,s=!0,this.changeTabLang();break}if(!s)return void this.close()}if(i.progressData.canReceive&&!i.progressData.haveGot)this.getReward.active=!0,this.changeTaskGetReward(this._curSelectKind);else if(i.progressData.curProgress>=i.progressData.condition)this.taskWaiting.active=!0,this.changeTaskWaiting(this._curSelectKind);else{var s,a;if(this.isPlayEffect[this._curSelectKind]=!0,this.scrollTaskInfo.active=!0,this.taskProgressInfo.active=!0,1==this.isFirst)null==(s=this.scrollTaskInfo.getComponent(f))||s.play("task_scroll_task_info_ani"),null==(a=this.taskProgressInfo.getComponent(f))||a.play("task_progress_info_appear_ani");this.changeTaskItem(this._curSelectKind),this.changeTaskProgress(this._curSelectKind)}}changeTaskProgress(t){let e=D.gameCtrl.getModel(O).getTaskData(t);if(!e)return;let i=e.taskKind,s=e.progressData.coinType,a=e.progressData.curProgress,n=e.progressData.condition,o=e.progressData.endTime,r=e.progressData.shareCount,l=e.progressData.reward;this.taskProgressInfo.getComponent(m).refreshInfo(i,s,a,n,o,r,l,2,!0),this.isFirst&&(this.isFirst=!1)}changeTaskItem(t){for(let t=0;t<this.taskItemInfos.length;t++)this.taskItemInfos[t].getBtnCall=()=>{},this.taskItemInfos[t].gotoBtnCall=()=>{};this.taskItemInfos=[];let e=D.gameCtrl.getModel(O).getTaskData(t);if(!e||!e.isOpen)return;let i=[],s=[];for(let t of e.itemDataList){let a=t.clone();switch(a.name="",a.taskType){case C.LOGIN:a.name=L.getInstance().language.getFormatString(160001,[a.condition]);break;case C.ONLINE:let t=G.floor(a.condition/60);a.name=L.getInstance().language.getFormatString(160002,[t]);break;case C.FISHWAGER:a.name=R.getString(160003);break;case C.SLOTWAGER:a.name=R.getString(160010)}a.needShowTip=e.needShowTip,a.curClaim>=a.claimTimes?s&&s.push(a):i&&i.push(a)}this.refreshTaskListData(i.concat(s))}refreshTaskListData(t){for(let e=0;e<t.length;e++){let i=t[e];this.taskItemArr[e].getComponent(d).refreshData(i),this.taskItemInfos&&this.taskItemInfos.push(i)}}onClickGet(t,e){w.debug("点击领取任务币",t,e);let i=D.gameCtrl.getModel(O),s=e,a=i.getTaskData(s);a&&i.c2sGetTaskReward(a.svrID,s,t)}onClickGoTo(t){this.close()}onClickTaskTab(t){let e=t.getCurrentTarget(),i=this.tabItems.indexOf(e),s=b.NONE;0==i?s=b.DAILY:1==i?s=b.WEEKLY:2==i&&(s=b.MONTHLY),-1!=i&&s!=this._curSelectKind&&(this.taskProgressInfo.getComponent(m).coinList.map((t=>{t.getComponent(k).isPlayingAni=!1})),this._curSelectKind=s,this.selectTab(i,!0),this.onGetTaskData())}changeTaskWaiting(t){let e=D.gameCtrl.getModel(O).getTaskData(t);if(!e)return;let i=e.taskKind,s=e.progressData.coinType,a=e.progressData.curProgress,n=e.progressData.condition,o=e.progressData.endTime,r=e.progressData.shareCount,l=e.progressData.reward;this.taskWaiting.getComponent(I).refreshInfo(i,s,a,n,o,r,l,1,this.isPlayEffect[t]),this.isPlayEffect[t]&&(this.isPlayEffect[t]=!1)}changeTaskGetReward(t){let e=D.gameCtrl.getModel(O).getTaskData(t);if(!e)return;let i=e.progressData.svrID,s=e.taskKind,a=e.progressData.shareCount,n=e.progressData.reward;this.getReward.getComponent(T).refreshInfo(i,s,n,a)}hideTaskInfo(){this.scrollTaskInfo.active=!1,this.taskProgressInfo.active=!1,this.taskWaiting.active=!1,this.getReward.active=!1,this.selectTaskInfo.active=!1,this.taskRecordInfo.active=!1,this.taskHelpInfo.active=!1,this.getReward.getComponent(T).hide()}selectTab(t,e){switch(N.fire(S.Close_Effect_Task),t){case 0:this.box.getComponent(u.Skeleton).setSkin("chest_green1");break;case 1:this.box.getComponent(u.Skeleton).setSkin("chest_blue1");break;case 2:this.box.getComponent(u.Skeleton).setSkin("chest_pink1")}for(let i=0;i<this.tabItems.length;i++){let s=this.tabItems[i];if(1==s.active){let e=s.getChildByName("task_tab_bg_nor"),a=s.getChildByName("task_tab_bg"),n=s.getChildByName("choiceLabel"),o=s.getChildByName("unLabel"),r=i==t;e.active=!0,a.active=r,n.active=r,o.active=!r}i==this.tabItems.length-1&&e&&this.comeOnStage()}}showTaskHelpInfo(){this.getReward.active=!1,this.taskWaiting.active=!1,this.scrollTaskInfo.active=!1,this.taskProgressInfo.active=!1,this.selectTaskInfo.active=!1,this.taskRecordInfo.active=!1,this.taskHelpInfo.active=!0,this.closeBtn.active=!1,this.plaseBg.active=!1}taskHelpInfoClose(){this.plaseBg.active=!0,this.taskHelpInfo.active=!1,this.closeBtn.active=!0,this.onGetTaskData()}showRecord(){this.getReward.active=!1,this.taskWaiting.active=!1,this.scrollTaskInfo.active=!1,this.taskProgressInfo.active=!1,this.selectTaskInfo.active=!1,this.taskRecordInfo.active=!0,this.taskHelpInfo.active=!1,this.closeBtn.active=!1,this.plaseBg.active=!1,this.taskRecordInfo.getChildByName("task_record_info").getComponent(K).initPanel(this._curSelectKind)}taskRecordInfoClose(){this.plaseBg.active=!0,this.taskRecordInfo.active=!1,this.closeBtn.active=!0,this.onGetTaskData()}comeOnStage(){this.chuchang.getComponent(u.Skeleton).setAnimation(0,"chuchang",!1),this.scoreInfo.getComponent(p).opacity=0,this.title.getComponent(p).opacity=0;let t=()=>{this.scoreInfo.getComponent(p).opacity+=5,this.title.getComponent(p).opacity+=10,this.scoreInfo.getComponent(p).opacity>=255&&this.unschedule(t)};this.schedule(t,.01)}comeOnStage1(){}onEnable(){N.fire(S.HIDE_MAIN_UI)}onDisable(){N.fire(S.SHOW_MAIN_UI)}}).prototype,"closeBtn",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ut=e(gt.prototype,"titleLabel",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pt=e(gt.prototype,"getRewardInfo",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),kt=e(gt.prototype,"taskWaitingInfo",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),dt=e(gt.prototype,"scrollTaskInfo",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),mt=e(gt.prototype,"taskProgressInfo",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),It=e(gt.prototype,"selectTaskInfo",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Tt=e(gt.prototype,"taskHelpInfo",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),bt=e(gt.prototype,"taskRecordInfo",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),yt=e(gt.prototype,"taskHelpBtn",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_t=e(gt.prototype,"taskItems",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ct=e(gt.prototype,"tabItems",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),vt=e(gt.prototype,"wait",[tt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),St=e(gt.prototype,"title_loGo",[et],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),wt=e(gt.prototype,"plaseBg",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Dt=e(gt.prototype,"reward",[st],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Nt=e(gt.prototype,"recordBtn",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Et=e(gt.prototype,"scoreInfo",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Rt=e(gt.prototype,"chuchang",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Lt=e(gt.prototype,"title",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ot=e(gt.prototype,"box",[lt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Gt=e(gt.prototype,"itemParent",[ct],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ht=gt))||ht));s._RF.pop()}}}));

System.register("chunks:///_virtual/UITopUpRecordItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Language.ts","./StringUtil.ts","./MsgHandler.ts","./UIManager.ts","./UIDefined.ts"],(function(t){"use strict";var e,i,n,a,s,l,o,r,u,c,f,p,b,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,s=t.Label,l=t.Button,o=t._decorator,r=t.Component,u=t.Color},function(t){c=t.Language},function(t){f=t.default},function(t){p=t.default},function(t){b=t.UIManager},function(t){h=t.UIID}],execute:function(){var m,g,d,y,L,I,U,D,B,N,_,S,T,v,E,w,z;n._RF.push({},"0e0683gJk5JG75ctO8YT2Mj","UITopUpRecordItem",void 0);const{ccclass:C,property:H}=o;t("UITopUpRecordItem",(m=C("UITopUpRecordItem"),g=H({displayName:"bg1",type:a}),d=H({displayName:"num label",type:s}),y=H({displayName:"type label",type:s}),L=H({displayName:"amount label",type:s}),I=H({displayName:"time label",type:s}),U=H({displayName:"status label",type:s}),D=H({displayName:"deleteBtn",type:l}),m((_=e((N=class extends r{constructor(...t){super(...t),i(this,"bg1",_,this),i(this,"numLabel",S,this),i(this,"typeLabel",T,this),i(this,"amountLabel",v,this),i(this,"timeLabel",E,this),i(this,"statusLabel",w,this),i(this,"deleteBtn",z,this),this._myData=void 0}start(){}initCashInfo(t,e){this._myData=t;let i=parseInt(t.method),n=c.getString(i+120005),s=t.acttime.split(" "),l=[{color:"#ffffff",id:130028},{color:"#00ff00",id:130029},{color:"#ff0000",id:130030},{color:"#ffffff",id:130028}],o=e+1,r=""==n?t.method:n,p=f.formatMoney(t.ScoreNum),b=s.length>0?s[0]:"",h=l[parseInt(t.status)].color,m=c.getString(l[parseInt(t.status)].id);this.bg1.active=o%2!=0,this.numLabel.string=(e+1).toString()+"",this.typeLabel.string=r,this.amountLabel.string=p,this.timeLabel.string=b,this.statusLabel.string=m;let g=(new u).fromHEX(h);this.statusLabel.color=g,this.statusLabel&&(this.statusLabel.node.off(a.EventType.TOUCH_END,this.onStatusBtn,this),this.statusLabel.node.on(a.EventType.TOUCH_END,this.onStatusBtn,this)),this.deleteBtn&&(this.deleteBtn.node.off(a.EventType.TOUCH_END,this.onDeleteBtn,this),this.deleteBtn.node.on(a.EventType.TOUCH_END,this.onDeleteBtn,this))}onDeleteBtn(){p.Instance().c2sCashRecordDelete(this._myData.id)}onStatusBtn(){if(2==parseInt(this._myData.status)){let t=()=>{b.getInstance().getUI(h.UIAlert).close()},e={content:this._myData.remark,singleBtn:!0,okFunc:t};b.getInstance().open(h.UIAlert,e)}}initRechargeInfo(t,e){this._myData=t,this.numLabel.string=(e+1).toString()+"";let i=parseInt(t.method);this.typeLabel.string=c.getString([-1,120006,120007,120008,120009,120010][i]),this.amountLabel.string=f.formatMoney(t.ScoreNum),this.timeLabel.string=t.time;let n=[{color:"#ffffff",id:130028},{color:"#00ff00",id:130029},{color:"#ff0000",id:130030},{color:"#ff0000",id:130030}],a=(new u).fromHEX(n[t.status].color);this.statusLabel.color=a,this.statusLabel.string=c.getString(n[t.status].id)}}).prototype,"bg1",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(N.prototype,"numLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(N.prototype,"typeLabel",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(N.prototype,"amountLabel",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(N.prototype,"timeLabel",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(N.prototype,"statusLabel",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(N.prototype,"deleteBtn",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=N))||B));n._RF.pop()}}}));

System.register("chunks:///_virtual/UITurnTable.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BigTurnTable.ts","./EnumDefine.ts","./EventDefine.ts","./LogUtil.ts","./CustomEventMgr.ts","./MsgHandler.ts","./SignAwdModel.ts","./Global.ts","./AudioManager.ts","./ResDefine.ts","./LanguageLabel.ts","./TaskGiftBox.ts","./UIView.ts","./UIManager.ts","./UIDefined.ts","./UIButton.ts","./User.ts"],(function(t){"use strict";var e,i,n,s,r,l,a,o,u,h,c,g,p,f,T,d,b,S,y,B,m,I,A,C,G,v,w,E,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t.ProgressBar,l=t._decorator,a=t.isValid,o=t.Label,u=t.v3},function(t){h=t.BigTurnTable},function(t){c=t.ELOCK_STATU,g=t.ESTEP_LV},function(t){p=t.SignAwdEvent,f=t.CMDEvent,T=t.EventType},function(t){d=t.default},function(t){b=t.CustomEventMgr},function(t){S=t.default},function(t){y=t.SignAwdModel},function(t){B=t.Global},function(t){m=t.default},function(t){I=t.SoundDefine},function(t){A=t.LanguageLabel},function(t){C=t.TaskGiftBox},function(t){G=t.UIView},function(t){v=t.UIManager},function(t){w=t.UIID},function(t){E=t.UIButton},function(t){_=t.User}],execute:function(){var D,N,x,L,P,U,M,O,R,V,k,z,F,H,W,K,j,q,J,Z,Q,X,Y,$,tt,et,it;n._RF.push({},"8f7e5JqcwBFfrZB3u5m5e1U","UITurnTable",void 0);const{ccclass:nt,property:st}=l;var rt;!function(t){t[t.NORMAL=0]="NORMAL",t[t.ROTATING=1]="ROTATING",t[t.DISABLE=2]="DISABLE"}(rt||(rt={}));t("UITurnTable",(D=nt("UITurnTable"),N=st({displayName:"test",type:E}),x=st({displayName:"关闭按钮",type:s}),L=st({displayName:"go按钮",type:s}),P=st({displayName:"step progress",type:r}),U=st({displayName:"礼物数组",type:[s]}),M=st({displayName:"大转盘方向指标数组",type:[s]}),O=st({displayName:"大转盘",type:s}),R=st({displayName:"ruleDecs",type:[A]}),V=st({displayName:"step1Title",type:s}),k=st({displayName:"step2Title",type:s}),z=st({displayName:"step3Title",type:s}),F=st({displayName:"coinStartPos",type:s}),D((K=e((W=class extends G{constructor(...t){super(...t),i(this,"testBtn",K,this),i(this,"closeBtn",j,this),i(this,"goBtn",q,this),i(this,"stepProgressBar",J,this),i(this,"stepGiftBoxArr",Z,this),i(this,"bigTurnTableSectors",Q,this),i(this,"bigTurnTable",X,this),i(this,"ruleDecs",Y,this),i(this,"step1Title",$,this),i(this,"step2Title",tt,this),i(this,"step3Title",et,this),i(this,"coinStartPos",it,this),this.plateValues=[],this.selectLv=-1,this.curStep=-1,this.winIndex=-1,this.awardNumber=0,this.awardProgress=0,this.goBtnStatus=rt.DISABLE,this.isAni=!1}start(){this.bindEvents();for(let t=0;t<this.ruleDecs.length;t++)this.ruleDecs[t].setChangeCb((()=>{this.ruleDecs[t].string=(t+1).toString()+":"+this.ruleDecs[t].string}))}onOpen(t){this.node.on(s.EventType.TOUCH_END,(()=>{m.Instance().playEffect(I.sound_click_btn)})),b.on(p.GET_SIGN_AWD,this.onGetSignAward,this),b.on(p.CAN_GET_SIGN_AWD,this.onGetTurnTableData,this),this.initUI()}close(){super.close()}onClose(t){this.stepGiftBoxArr.map((t=>{t.active=!1})),b.off(p.GET_SIGN_AWD,this.onGetSignAward,this),b.off(p.CAN_GET_SIGN_AWD,this.onGetTurnTableData,this),b.fire(f.CLOSE_SIGN_AWD_CMD)}initUI(){var t;S.Instance().c2sActionReporting("progressbar"),this.setInfo(),null==(t=this.bigTurnTable.getComponent(h))||t.initTurnTable()}setInfo(){let t=B.gameCtrl.getModel(y),e=t.curStep;this.setProgress(t.curProgress,e,t.stageArr.length),this.setStepState(t),this.initTurnCenterState(t)}setProgress(t,e,i){if(1!=_.instance.vistor&&1!=_.instance.is_trial&&a(this.stepProgressBar)){let n=(e+t)/i;this.stepProgressBar.progress=n}}setStepState(t){for(let e=0,i=this.stepGiftBoxArr.length;e<i;e++)if(1==_.instance.vistor||1==_.instance.is_trial)this.stepGiftBoxArr[e].getComponent(C).setRewardImg(c.LOCK);else{let i=t.getStepState(e);this.stepGiftBoxArr[e].getComponent(C).setRewardImg(i)}}initTurnCenterState(t){let e,i;for(i=0;i<3&&(e=t.getStepState(i),e!=c.GIFT&&e!=c.LOCK);i++);this.selectGiftBox(i),this.onSelectLv(i,!0)}bindEvents(){this.closeBtn.on(s.EventType.TOUCH_END,(()=>{b.fire(T.Close_Effect),b.fire(f.CLOSE_SIGN_AWD_CMD),this.close()}),this),this.goBtn.on(s.EventType.TOUCH_END,this.btnGoClick,this);for(let t=0;t<this.stepGiftBoxArr.length;t++)this.stepGiftBoxArr[t].on(s.EventType.TOUCH_END,this.stepGiftBoxClick,this)}btnGoClick(){if(this.goBtnStatus!=rt.NORMAL||1==_.instance.vistor||1==_.instance.is_trial)return;this.goBtnStatus=rt.DISABLE,this.refreshGoBtn(this.goBtnStatus),this.isAni=!0,m.Instance().playEffect(I.sound_click_go),B.gameCtrl.getModel(y).getSignAwd(this.selectLv)}onGetSignAward(){S.Instance().c2sgetmoney();let t=B.gameCtrl.getModel(y),e=t.index;0!=e?(this.winIndex=e-1,this.awardNumber=t.money,this.awardProgress=t.totalProgress,this.startTurn()):d.warn("failed to get sign award")}onGetTurnTableData(){let t=B.gameCtrl.getModel(y);this.setPlateValues(t.moneyArr)}setPlateValues(t){if(t)if(12==t.length){if(a(this.bigTurnTableSectors)){this.plateValues=t;for(let t=0;t<this.bigTurnTableSectors.length;t++){let e=this.bigTurnTableSectors[t].getChildByName("label_nor"),i=this.plateValues[t];e.getComponent(o).string=i.toString()}}}else d.warn("plate value count is too mach or not enough");else d.warn("plate value is null")}startTurn(){return this.plateValues&&12==this.plateValues.length?this.winIndex<0&&this.winIndex>=12?(d.warn("have no this win index ",this.winIndex),void(this.isAni=!1)):(m.Instance().playEffect(I.sound_turn_drop),this.closeBtn.active=!1,d.log("will run to:"+this.plateValues[this.winIndex]),void this.bigTurnTable.getComponent(h).doGoTurning(this.winIndex)):(d.warn("turn values has error ",this.plateValues),void(this.isAni=!1))}doTurnTableRotationEnd(t=null){m.Instance().playEffect(I.sound_turn_end);let e=u(this.coinStartPos.worldPosition.x,this.coinStartPos.worldPosition.y,0).add(u(0,-100,0));this.isAni=!1,d.debug("转动结束,飞金币");let i=B.gameCtrl.getModel(y);v.getInstance().getUI(w.UIAniLayer).playCoinAni(0,e,B.gameCtrl.getUserInfo().money-i.money,i.money,5,(()=>{this.closeBtn.active=!0,this.setInfo(),t&&t()}))}showFlyCoin(){}stepGiftBoxClick(t){if(1==this.isAni)return;let e=t.getCurrentTarget(),i=this.stepGiftBoxArr.indexOf(e);B.gameCtrl.getModel(y).getStepState(i)==c.OPENED_GIFT&&1!=_.instance.is_trial||-1!=i&&(this.selectGiftBox(i),this.onSelectLv(i))}selectGiftBox(t){let e=this.stepGiftBoxArr[t];for(let t=0;t<this.stepGiftBoxArr.length;t++){var i;let n=!1;e==this.stepGiftBoxArr[t]&&(n=!0),null==(i=this.stepGiftBoxArr[t].getComponent(C))||i.setSelect(n)}}onSelectLv(t,e=!1){let i=B.gameCtrl.getModel(y);this.setTurnCenterState(i.getStepState(t),t,e),t==g.COPPER?(this.step1Title.active=!0,this.step2Title.active=!1,this.step3Title.active=!1):t==g.SILVER?(this.step1Title.active=!1,this.step2Title.active=!0,this.step3Title.active=!1):t==g.GOLD&&(this.step1Title.active=!1,this.step2Title.active=!1,this.step3Title.active=!0),this.selectLv=t}setTurnCenterState(t,e,i=!1){switch(this.refreshGoBtn(rt.DISABLE),t){case c.LOCK:B.gameCtrl.getModel(y).checkSignAwd(e+1,i);break;case c.GIFT:this.refreshGoBtn(rt.NORMAL),B.gameCtrl.getModel(y).checkSignAwd(e+1,i);break;case c.OPENED_GIFT:}}refreshGoBtn(t){this.goBtnStatus=t;this.goBtn.getChildByName("normal");let e=[this.goBtn.getChildByName("normalLast"),this.goBtn.getChildByName("rotating"),this.goBtn.getChildByName("disable")];for(let i=0;i<e.length;i++){let n=!1;i==t&&(n=!0),e[i].active=n}}}).prototype,"testBtn",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(W.prototype,"closeBtn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(W.prototype,"goBtn",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=e(W.prototype,"stepProgressBar",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=e(W.prototype,"stepGiftBoxArr",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Q=e(W.prototype,"bigTurnTableSectors",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),X=e(W.prototype,"bigTurnTable",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=e(W.prototype,"ruleDecs",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),$=e(W.prototype,"step1Title",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e(W.prototype,"step2Title",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(W.prototype,"step3Title",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(W.prototype,"coinStartPos",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=W))||H));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIUtils.ts",["cc","./StatisticsDefine.ts","./ComponentMgr.ts","./Language.ts","./StatisticsManager.ts","./UIDefined.ts","./UIManager.ts"],(function(t){"use strict";var e,n,s,a,i,o,c,r,g,I,l,d,u;return{setters:[function(t){e=t.Node,n=t.UITransform,s=t.screen,a=t.BlockInputEvents,i=t.isValid,o=t.cclegacy},function(t){c=t.NetErrCode},function(t){r=t.default},function(t){g=t.default,I=t.Language},function(t){l=t.StatisticsManager},function(t){d=t.UIID},function(t){u=t.UIManager}],execute:function(){o._RF.push({},"983e7apAEpJ65lVbSLQDGpJ","UIUtils",void 0);class p{static addMaskLayer(t){let i=new e;i.name="mask",i.parent=t,i.addComponent(n).setContentSize(s.windowSize),i.addComponent(a)}static removeMaskLayer(t){if(!t)return;let e=t.getChildByName("mask");e&&e.destroy()}static showLoading(){let t=u.getInstance().getUI(d.UILoadingView);i(t)?t.node.active=!0:u.getInstance().open(d.UILoadingView)}static showTips(t){r.showTips(t)}static showTipsById(t){r.showTipsById(t)}static hideLoading(){u.getInstance().closeToUI(d.UILoadingView)}static netErrorTips(t,e){t=t??c.system;let n={content:g.getInstance().language.formatString(I.getString(310039),[`${t}`]),okName:I.getString(310040),singleBtn:!0,okFunc:e};u.getInstance().open(d.UIAlert,n),l.getInstance().loginReport(t)}static closeTips(){u.getInstance().isTopUI(d.UIAlert)&&u.getInstance().closeToUI(d.UIAlert)}static showError(t,e){if(!(null==(e=parseInt(e))||isNaN(e)||e<1||23==e||25==e)&&13!=e){let n=11e4+e,s=I.getString(n)||`message error! proto: + ${t},code:`+n;if(!s||""==s)return;p.showTips(s)}}}t("default",p),o._RF.pop()}}}));

System.register("chunks:///_virtual/UIView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIAdapter.ts","./UIManager.ts"],(function(e){"use strict";var i,t,n,o,r,a,s,c;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Node,r=e._decorator,a=e.Component},function(e){s=e.default},function(e){c=e.UIManager}],execute:function(){var l,u,p,d,m,b,f,h,y,I,g,w,v;e("UIZIndex",void 0),n._RF.push({},"78e69fGqIJPHLsS6KtmjcjM","UIView",void 0);const{ccclass:U,property:x,menu:k}=r;let z;!function(e){e[e.views=1]="views",e[e.notice=999]="notice",e[e.message=1e3]="message",e[e.max=1001]="max"}(z||(z=e("UIZIndex",{})));e("UIView",(l=k("ui/common/UIView"),u=x({displayName:"开启动画"}),p=x({displayName:"快速关闭"}),d=x({displayName:"缓存选项"}),m=x({displayName:"是否添加遮罩"}),b=x({type:o,displayName:"界面背景图",tooltip:"界面背景图 用来设置快速关闭、及打开和关闭动画"}),U(f=l((y=i((h=class extends a{constructor(...e){super(...e),this.uiId=void 0,t(this,"bAni",y,this),t(this,"quickClose",I,this),t(this,"cache",g,this),t(this,"isMask",w,this),t(this,"background",v,this)}onLoad(){this.node.addComponent(s)}init(...e){}onOpen(...e){}onOpenAniOver(){}onClose(){}close(){c.getInstance().close(this)}setZIndex(e){this.node.zIndex=e}}).prototype,"bAni",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=i(h.prototype,"quickClose",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=i(h.prototype,"cache",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=i(h.prototype,"isMask",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=i(h.prototype,"background",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=h))||f)||f));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIWithDraw.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ComponentMgr.ts","./MsgHandler.ts","./EventDefine.ts","./CustomEventMgr.ts","./Language.ts","./StringUtil.ts","./User.ts","./LanguageSprite.ts","./RechargeModel.ts","./PMaskSlider.ts","./AudioManager.ts","./ResDefine.ts","./DropDownList2.ts","./UIDefined.ts","./UIManager.ts","./UIView.ts","./Global.ts","./UIButton.ts"],(function(t){"use strict";var e,n,i,s,o,a,r,l,c,h,u,d,p,g,f,m,y,I,b,C,B,E,w,D,N,T;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Node,o=t.Label,a=t.EditBox,r=t._decorator},function(t){l=t.default},function(t){c=t.default},function(t){h=t.EventType},function(t){u=t.CustomEventMgr},function(t){d=t.Language,p=t.default},function(t){g=t.default},function(t){f=t.User},function(t){m=t.LanguageSprite},function(t){y=t.RechargeType},function(t){I=t.PMaskSlider},function(t){b=t.default},function(t){C=t.SoundDefine},function(t){B=t.DropDownList2},function(t){E=t.UIID},function(t){w=t.UIManager},function(t){D=t.UIView},function(t){N=t.Global},function(t){T=t.UIButton}],execute:function(){var k,L,S,x,U,v,R,_,M,G,W,O,z,A,H,F,P,q,V,j,J,X,K;i._RF.push({},"61836FCJSBLW6CGipC6EdXx","UIWithDraw",void 0);const{ccclass:Q,property:Y}=r;t("UIWithDraw",(k=Q("UIWithDraw"),L=Y({displayName:"closeBtn",type:s,tooltip:"关闭按钮"}),S=Y({displayName:"title",type:m,tooltip:"标题"}),x=Y({displayName:"dropDownList",type:B,tooltip:"下拉列表"}),U=Y({displayName:"addCreditCardBtn",type:s,tooltip:"添加银行卡按钮"}),v=Y({displayName:"recordBtn",type:s,tooltip:"记录按钮"}),R=Y({displayName:"maxBtn",type:T,tooltip:"max按钮"}),_=Y({displayName:"okBtn",type:s,tooltip:"ok按钮"}),M=Y({displayName:"balanceLabel",type:o}),G=Y({displayName:"amountEditBox",type:a,tooltip:"amount editbox"}),W=Y({displayName:"amountSlider",type:I,tooltip:"money slider"}),k((A=e((z=class extends D{constructor(...t){super(...t),n(this,"closeBtn",A,this),n(this,"title",H,this),n(this,"dropDownList",F,this),n(this,"addCreditCardBtn",P,this),n(this,"recordBtn",q,this),n(this,"maxBtn",V,this),n(this,"okBtn",j,this),n(this,"balanceLabel",J,this),n(this,"amountEditBox",X,this),n(this,"amountSlider",K,this),this.cashInfo=null,this.cashNum=0,this.curRechargeInfos=null,this.record=[],this._isEditingMoney=!1,this.bankList=[]}initTopUpByType(){this.initCash(),this.title.imageStr="recharge_WITHDRAWAL"}initCash(){let t=[];t.push(y.Dawal);for(let e=0;e<t.length;e++){let n=t[e],i=d.getString(130058),s="";this.curRechargeInfos={},this.curRechargeInfos.type=n,this.curRechargeInfos.name=i,this.curRechargeInfos.logo=s}}onGetCashRecord(t){if(t.requestList){this.record=t.requestList;let e=w.getInstance().getUI(E.UIWithDrawRecord);e&&1==e.node.active&&e.refreshRecord()}}showAddCreditContent(){w.getInstance().open(E.UIAddBank)}sliderEventCallback(t){let e=g.formatMoney(f.instance.money*t);this.amountEditBox.string=e}onEditing(t){this._isEditingMoney=!0}onChangeTxt(t){if(!this._isEditingMoney)return;this._isEditingMoney=!1;let e=Number(g.numStrToNum(this.amountEditBox.string));(e<0||!e)&&(e=0),e>f.instance.money&&(e=f.instance.money),t.string=g.formatMoney(e),this.amountSlider.progress=e/f.instance.money}onGetcashInfo(t){this.cashInfo=t,this.bankList=t.bankList;let e=[];for(let n=0;n<t.bankList.length;n++)e.push(t.bankList[n].bank_account);this.dropDownList.initList(e)}async showTipsWindow(){let t={content:d.getString(107057),spriteTitleName:"recharge_WITHDRAWAL",singleBtn:!1,okName:p.getInstance().language.getString(105004),cancelName:p.getInstance().language.getString(130052)};w.getInstance().open(E.UIAlert,t)}maxBtnClick(t){this.amountSlider.progress=1,this.sliderEventCallback(1)}oncash(){if(1==f.instance.is_trial)return void l.showTipsById(200002);if(!this.checkMoneyWithdrawal(Number(g.numStrToNum(this.amountEditBox.string))))return;let t=this.dropDownList.curIndex;if(-1==t)return void l.showTipsById(130069);let e=this.bankList[t],n=this.cashInfo,i=this.cashNum*n.rate;c.Instance().c2sCash(this.fixNum(i),this.fixNum(this.cashNum),this.fixNum(i*n.withdrawFeeRate/100),e.id)}fixNum(t){return Number(t.toString().match(/^\d+(?:\.\d{0,2})?/))}checkMoneyWithdrawal(t,e=!0){return t?isNaN(t)?(e&&l.showTipsById(130071),!1):f.instance.money<t?(e&&l.showTipsById(130073),this.cashNum=0,!1):(this.cashNum=t,!0):(e&&l.showTipsById(120026),!1)}doBindBankSucc(){c.Instance().c2sgetCashInfo()}init(...t){this.initTopUpByType(),this.dropDownList.btnLabel.string=d.getString(120003),this.balanceLabel.string=g.formatMoney(f.instance.money),this.amountEditBox.placeholderLabel&&(this.amountEditBox.placeholderLabel.string=g.formatMoney(0)),this.amountSlider.progress=0,this.amountSlider.registerSliderEventCallback(this.sliderEventCallback,this),this.addCreditCardBtn.on(s.EventType.TOUCH_END,(()=>{b.Instance().playEffect(C.sound_click),this.showAddCreditContent()}),this),this.recordBtn.on(s.EventType.TOUCH_END,(async()=>{c.Instance().c2sgetCashRecord(),b.Instance().playEffect(C.sound_click),w.getInstance().open(E.UIWithDrawRecord)})),this.maxBtn.touchBeganFun=this.maxBtnClick.bind(this),this.okBtn.on(s.EventType.TOUCH_END,(()=>{b.Instance().playEffect(C.sound_click),this.oncash()}),this),this.closeBtn.on(s.EventType.TOUCH_END,(()=>{this.close()})),this.amountEditBox.node.on(a.EventType.EDITING_DID_BEGAN,this.onEditing,this),this.amountEditBox.node.on(a.EventType.EDITING_DID_ENDED,this.onChangeTxt,this)}onOpen(...t){this.addToStage(),c.Instance().c2sgetCashInfo(),c.Instance().c2sgetCashRecord()}onCashOk(){c.Instance().c2sgetCashRecord(),this.showTipsWindow()}close(){this.removeFromStage(),super.close()}addToStage(){N.gameCtrl.mainUITs.node.active=!1,u.on(h.OnGetCashInfo,this.onGetcashInfo,this),u.on(h.CashOk,this.onCashOk,this),u.on(h.OnGetCashRecord,this.onGetCashRecord,this)}removeFromStage(){N.gameCtrl.mainUITs.node.active=!0,N.gameCtrl.mainUITs.gameBack(),u.off(h.OnGetCashInfo,this.onGetcashInfo,this),u.off(h.CashOk,this.onCashOk,this),u.off(h.OnGetCashRecord,this.onGetCashRecord,this)}}).prototype,"closeBtn",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(z.prototype,"title",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(z.prototype,"dropDownList",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(z.prototype,"addCreditCardBtn",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(z.prototype,"recordBtn",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(z.prototype,"maxBtn",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(z.prototype,"okBtn",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=e(z.prototype,"balanceLabel",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=e(z.prototype,"amountEditBox",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(z.prototype,"amountSlider",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=z))||O));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIWithDrawRecord.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResDefine.ts","./UIView.ts","./AudioManager.ts","./MsgHandler.ts","./UITopUpRecordItem.ts","./super-layout.ts","./UIManager.ts","./UIDefined.ts"],(function(t){"use strict";var e,r,i,o,s,n,l,a,c,h,u,d,p,f,g,m;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Node,s=t.Mask,n=t._decorator,l=t.UITransform,a=t.isValid},function(t){c=t.SoundDefine},function(t){h=t.UIView},function(t){u=t.default},function(t){d=t.default},function(t){p=t.UITopUpRecordItem},function(t){f=t.SuperLayout},function(t){g=t.UIManager},function(t){m=t.UIID}],execute:function(){var y,I,M,b,k,w,U,v,C,D,R,B,L,T,N;i._RF.push({},"51d79ZGvtpK9ZHJpRMLmD1B","UIWithDrawRecord",void 0);const{ccclass:z,property:E}=n;t("UIWithDrawRecord",(y=z("UIWithDrawRecord"),I=E({displayName:"closeBtn",type:o,tooltip:"关闭按钮"}),M=E({displayName:"noMsgMark",type:o,tooltip:"无数据标记"}),b=E({displayName:"scrollBgMask",type:s,tooltip:"滚动条背景的遮罩"}),k=E({displayName:"scrollMask",type:s,tooltip:"滚动条的遮罩"}),w=E({displayName:"record node arr",type:[o]}),U=E(f),y((D=e((C=class extends h{constructor(...t){super(...t),r(this,"closeBtn",D,this),r(this,"noMsgMark",R,this),r(this,"scrollBgMask",B,this),r(this,"scrollMask",L,this),r(this,"recordItemArr",T,this),r(this,"layout",N,this),this.recordList=[],this.currentpage=0}drawGraphicsMask(t){let e=this.scrollMask.node.getComponent(l);t.lineWidth=1,t.fillColor.fromHEX("#ffffff"),t.roundRect(1-(e.width>>1),-e.height>>1,e.width,e.height,10),t.stroke(),t.fill()}start(){this.refreshRecord()}refreshRecord(){let t=g.getInstance().getUI(m.UIWithDraw);a(t.record)&&(this.recordList=t.record,this.layout.total(t.record.length))}onGetCashRecord(){this.scrollMask.node.active=!1,this.scheduleOnce((()=>{this.scrollMask.node.active=!0}),.1)}showrecordViewList(){let t,e=!1;0==this.recordList.length&&(e=!0),this.noMsgMark.active=e,t=this.recordList.length>=10*(this.currentpage+1)?10:this.recordList.length%10;for(let e=0;e<this.recordItemArr.length;e++)this.recordItemArr[e].active=e<t;for(let e=0;e<t;e++){var r;let t=10*this.currentpage+e,i=this.recordList[t];null==(r=this.recordItemArr[e].getComponent(p))||r.initCashInfo(i,t)}}init(...t){}onOpen(...t){this.drawGraphicsMask(this.scrollBgMask.subComp),this.drawGraphicsMask(this.scrollMask.subComp),this.addToStage()}onCloseBtn(t){u.Instance().playEffect(c.sound_close),this.close()}close(){this.removeFromStage(),super.close()}addToStage(){this.closeBtn.on(o.EventType.TOUCH_END,this.onCloseBtn,this),d.Instance().c2sgetCashInfo()}removeFromStage(){this.closeBtn.off(o.EventType.TOUCH_END,this.onCloseBtn,this)}onRefreshEvent(t,e){var r;this.recordList[e]||console.error(e,this.recordList),null==(r=t.getComponent(p))||r.initCashInfo(this.recordList[e],e)}}).prototype,"closeBtn",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(C.prototype,"noMsgMark",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(C.prototype,"scrollBgMask",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(C.prototype,"scrollMask",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(C.prototype,"recordItemArr",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),N=e(C.prototype,"layout",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=C))||v));i._RF.pop()}}}));

System.register("chunks:///_virtual/UMGameNameListConfig.ts",["cc"],(function(i){"use strict";var t,s;return{setters:[function(i){t=i.cclegacy,s=i._decorator}],execute:function(){var o;t._RF.push({},"4f397lQlmhNArAXToNinXPh","UMGameNameListConfig",void 0);const{ccclass:e}=s;i("UMGameNameListConfig",e("UMGameNameListConfig")(o=class{constructor(){this.gameid=void 0,this.cn=void 0,this.en=void 0,this.id=void 0,this.ms=void 0,this.th=void 0,this.vi=void 0,this.tc=void 0,this.por=void 0}attrs(){return["gameid","cn","en","id","ms","th","vi","tc","por"]}})||o);t._RF.pop()}}}));

System.register("chunks:///_virtual/USABankListConfig.ts",["cc"],(function(t){"use strict";var c,n;return{setters:[function(t){c=t.cclegacy,n=t._decorator}],execute:function(){var s;c._RF.push({},"a03f78B9FpMHqWRyUjcQnux","USABankListConfig",void 0);const{ccclass:i}=n;t("USABankListConfig",i("USABankListConfig")(s=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||s);c._RF.pop()}}}));

System.register("chunks:///_virtual/User.ts",["cc","./GameUtil.ts","./StorageUtil.ts","./StringUtil.ts","./Global.ts","./MsgHandler.ts"],(function(t){"use strict";var e,i,s,r,o,n;return{setters:[function(t){e=t.cclegacy},function(t){i=t.GameUtils},function(t){s=t.default},function(t){r=t.default},function(t){o=t.Global},function(t){n=t.default}],execute:function(){e._RF.push({},"f98fdEtbb9GxpSCVc2dlGvO","User",void 0);class h{constructor(){this.account="",this.password="",this.money=0,this.userName="",this.headIcon="",this.tel="",this.token=void 0,this.vistor=0,this.protocol="",this.updateurl="",this.gamesocket="",this.bank=0,this.userId=0,this.im_url="",this.adUrlArr=[],this.pwd_swicch=void 0,this.is_trial=-1,this.expire_time=0,this.appAd=[],this.device_token="",this.gameInfoList=[],this.stopServerInfo=void 0,this.restrictInfo=void 0,this.rechargeInfo=void 0,this._im_srv_socket=void 0,this.shareQrcodeUrl=void 0,this.shareUrl=void 0,this.ucode=void 0,this.isOpenShare=void 0,this.guideIds=void 0,this.AwardList=[],this.LuckDrawInfo=[],this.WinAward=null,this.isWhite=void 0,this.isGuest=void 0}static get instance(){return this._instance||(this._instance=new h),this._instance}static Destroy(){this._instance=null}isMyself(t){return this.account==t}init(t){this.money=t.money,this.userName=t.username,this.headIcon=t.face,this.tel=t.tel,this.token=t.token,this.vistor=t.vistor,this.protocol=t.protocol,this.updateurl=t.updateurl,this.gamesocket=t.gamesocket,this.bank=t.bxx_score,this.userId=Number(t.uid),this.im_url=t.im_url,this.adUrlArr=t.adurl,this._im_srv_socket=t.im_srv_socket,this.appAd=t.appAd,this.shareQrcodeUrl=t.promotionQrcodeUrl,this.shareUrl=t.promotionUrl,this.ucode=t.ucode,this.isOpenShare=0==t.is_trial&&!!t.promotionSwitch,this.isWhite=!!t.white,this.guideIds=t.guide_ids,this.pwd_swicch=parseInt(t.pwd_switch)||1,this.checkTrialTips(t),this.is_trial=t.is_trial||0,this.expire_time=t.expire_time||0,-1==t.money&&setTimeout((()=>{n.Instance().c2sgetmoney()}),1e3),this.token?s.saveUserToken(this.token):s.removeUserToken(),this.userId?s.saveUserId(this.userId):s.removeUserId(),this.gamesocket?s.saveGameSocketUrl(this.gamesocket):s.removeWebSocketUrl(),t.im_url&&s.saveImUrl(t.im_url),s.saveWebSocketUrl(o.selsvrDoMain),o.cnd=r.getHostFromUrl(this.updateurl)}isInStopState(t){let e=o.svrTimeMS/1e3;if(this.stopServerInfo){if(-1!=this.stopServerInfo.gameid.split(",").indexOf(t+"")){let t=this.stopServerInfo.starttime-300,i=this.stopServerInfo.endtime;return e>=t&&e<=i}}return!1}get isStopAll(){return this.stopServerInfo&&!!this.stopServerInfo.is_all}get stopServerStart(){if(!this.stopServerInfo)return"";let t=new Date(1e3*this.stopServerInfo.starttime);return`${i.formatNumToLen(t.getHours(),2)}:${i.formatNumToLen(t.getMinutes(),2)}`}get stopServerEnd(){if(!this.stopServerInfo)return"";let t=new Date(1e3*this.stopServerInfo.endtime);return`${i.formatNumToLen(t.getHours(),2)}:${i.formatNumToLen(t.getMinutes(),2)}`}isInRestrictState(t){let e=o.svrTimeMS/1e3;if(this.restrictInfo){let i=this.restrictInfo.gameid;if(i&&(0==i.length||-1!=i.indexOf(t))){let t=this.restrictInfo.starttime,i=this.restrictInfo.endtime;return e<t||e>i}}return!1}get isRestrictAll(){return this.restrictInfo&&this.restrictInfo.gameid&&0==this.restrictInfo.gameid.length}get restrictStart(){if(!this.restrictInfo)return"";let t=new Date(1e3*this.restrictInfo.starttime);return`${i.formatNumToLen(t.getHours(),2)}:${i.formatNumToLen(t.getMinutes(),2)}`}get restrictEnd(){if(!this.restrictInfo)return"";let t=new Date(1e3*this.restrictInfo.endtime);return`${i.formatNumToLen(t.getHours(),2)}:${i.formatNumToLen(t.getMinutes(),2)}`}get im_srv_socket(){return this._im_srv_socket}static get isOpenShare(){return h.instance.isOpenShare}checkTrialTips(t){}checkExpireTime(t){}}t("User",h),h._instance=void 0,e._RF.pop()}}}));

System.register("chunks:///_virtual/VI13BankListConfig.ts",["cc"],(function(t){"use strict";var s,c;return{setters:[function(t){s=t.cclegacy,c=t._decorator}],execute:function(){var n;s._RF.push({},"f9f9a4O0V5DqYpAuCPFJdZP","VI13BankListConfig",void 0);const{ccclass:i}=c;t("VI13BankListConfig",i("VI13BankListConfig")(n=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||n);s._RF.pop()}}}));

System.register("chunks:///_virtual/VI14BankListConfig.ts",["cc"],(function(t){"use strict";var n,s;return{setters:[function(t){n=t.cclegacy,s=t._decorator}],execute:function(){var c;n._RF.push({},"a86b3y+DFZMOLN/fuSJ5noY","VI14BankListConfig",void 0);const{ccclass:i}=s;t("VI14BankListConfig",i("VI14BankListConfig")(c=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||c);n._RF.pop()}}}));

System.register("chunks:///_virtual/VI17BankListConfig.ts",["cc"],(function(t){"use strict";var s,c;return{setters:[function(t){s=t.cclegacy,c=t._decorator}],execute:function(){var n;s._RF.push({},"2534eB5vQtK85jiCkUM8DXH","VI17BankListConfig",void 0);const{ccclass:i}=c;t("VI17BankListConfig",i("VI17BankListConfig")(n=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||n);s._RF.pop()}}}));

System.register("chunks:///_virtual/VI7BankListConfig.ts",["cc"],(function(t){"use strict";var s,c;return{setters:[function(t){s=t.cclegacy,c=t._decorator}],execute:function(){var n;s._RF.push({},"23435gPYltOGJUIvM4RjEe8","VI7BankListConfig",void 0);const{ccclass:i}=c;t("VI7BankListConfig",i("VI7BankListConfig")(n=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||n);s._RF.pop()}}}));

System.register("chunks:///_virtual/VIBankListConfig.ts",["cc"],(function(t){"use strict";var c,s;return{setters:[function(t){c=t.cclegacy,s=t._decorator}],execute:function(){var n;c._RF.push({},"d3de4t9LM5N0KRVcdFFU5u9","VIBankListConfig",void 0);const{ccclass:i}=s;t("VIBankListConfig",i("VIBankListConfig")(n=class{constructor(){this.code=void 0,this.name=void 0}attrs(){return["code","name"]}})||n);c._RF.pop()}}}));

System.register("chunks:///_virtual/VPGameNameListConfig.ts",["cc"],(function(i){"use strict";var t,s;return{setters:[function(i){t=i.cclegacy,s=i._decorator}],execute:function(){var e;t._RF.push({},"be06eL2DSVHqI8kALEnVrfI","VPGameNameListConfig",void 0);const{ccclass:o}=s;i("VPGameNameListConfig",o("VPGameNameListConfig")(e=class{constructor(){this.gameid=void 0,this.cn=void 0,this.en=void 0,this.id=void 0,this.ms=void 0,this.th=void 0,this.vi=void 0,this.tc=void 0,this.por=void 0}attrs(){return["gameid","cn","en","id","ms","th","vi","tc","por"]}})||e);t._RF.pop()}}}));

System.register("chunks:///_virtual/WayConfig.ts",["cc"],(function(t){"use strict";var c,i;return{setters:[function(t){c=t.cclegacy,i=t._decorator}],execute:function(){var s;c._RF.push({},"73cf5d0XQBL9IQ6t8zHi6Kx","WayConfig",void 0);const{ccclass:e}=i;t("WayConfig",e("WayConfig")(s=class{constructor(){this.gameid=void 0,this.lines=void 0}attrs(){return["gameid","lines"]}})||s);c._RF.pop()}}}));

System.register("chunks:///_virtual/WebApi.ts",["cc","./ComponentMgr.ts","./LogUtil.ts","./PlatformApi.ts"],(function(e){"use strict";var t,n,o,a;return{setters:[function(e){t=e.cclegacy},function(e){n=e.default},function(e){o=e.default},function(e){a=e.default}],execute:function(){t._RF.push({},"dbeafkATblLe5QuDAkJa+7b","WebApi",void 0);e("default",class extends a{init(){}handlerPlatformMessage(e){let t=JSON.parse(decodeURIComponent(e)),n=t.class,a=t.function;o.debug("handlerWebJsToNativeMessage,type:"+n+",func:"+a)}setClipboard(e){let t=!1;return window.clipboardData?window.clipboardData.setData("text",e):(document.oncopy=function(t){t.clipboardData.setData("text",e),t.preventDefault(),document.oncopy=null},t=document.execCommand("Copy")),t}openWebView(e){n.showWebIframe(e)}openURL(e){window.open(e)}restartGame(){document.location.reload()}}),t._RF.pop()}}}));

System.register("chunks:///_virtual/WebMsgHandler.ts",["cc","./LogUtil.ts","./NetHttp.ts"],(function(t){"use strict";var e,s,n;return{setters:[function(t){e=t.cclegacy},function(t){s=t.default},function(t){n=t.default}],execute:function(){e._RF.push({},"6f9f0zYlFxP8Z/6QeYPNU3P","WebMsgHandler",void 0);class c{static init(t){this.url=t}static setAddr(t){this.url=t}static sendPost(t,e,s,c,i,l,a=!1){null==e&&(e={});let u=0,o=t;if(a){let t="";Object.keys(e).forEach((s=>{u>0&&(t+="&"),t+=s+"="+e[s],++u})),t=btoa(t),t+="hello!",t=btoa(t),o+="?data=",o+=t}else Object.keys(e).forEach((t=>{o+=u>0?"&":"?",o+=t+"="+e[t],++u}));let r=new n;r.init(l),r.sendPost(o,s,((t,e)=>{c&&c(t,e)}),i)}static sendGet(t,e,c,i,l){let a=0,u=t;Object.keys(e).forEach((t=>{u+=a>0?"&":"?",u+=t+"="+e[t],++a})),s.info("Web数据发送",u);let o=new n;o.init(l),o.sendGet(u,"",((t,e)=>{c&&c(t,e)}),i)}}t("default",c),c.url="",e._RF.pop()}}}));

System.register("chunks:///_virtual/WebSock.ts",["cc","./SocketBase.ts"],(function(e){"use strict";var t,s,c,o,r,S;return{setters:[function(e){t=e.sys,s=e.error,c=e.cclegacy},function(e){o=e.SocketBase,r=e.SocketEvent,S=e.SocketState}],execute:function(){c._RF.push({},"0eedeJkub1DmKZIaVNTSFaR","WebSock",void 0);e("default",class extends o{constructor(...e){super(...e),this._webSocket=void 0}connect(){if(this._webSocket&&this._webSocket.readyState!=WebSocket.CLOSED)return;t.isNative&&(t.os,t.OS.ANDROID),this._webSocket=new WebSocket(this._url);let e=this._webSocket;e.binaryType="arraybuffer",e.onopen=e=>{this.dispatch(r.Open,e)},e.onmessage=e=>{this._onMessage(e.data)},e.onerror=e=>{this.dispatch(r.Error)},e.onclose=e=>{this.dispatch(r.Close,e.reason)}}_onMessage(e){this.dispatch(r.Message,e)}send(e){this._webSocket.send(e)}close(){if(this._webSocket){try{this._webSocket.readyState!=WebSocket.CLOSED&&this._webSocket.close()}catch(e){s("error while closing webSocket ",e.toString())}this._webSocket=null}}getState(){if(this._webSocket)switch(this._webSocket.readyState){case WebSocket.OPEN:return S.OPEN;case WebSocket.CONNECTING:return S.CONNECTING;case WebSocket.CLOSING:return S.CLOSING;case WebSocket.CLOSED:return S.CLOSED}return S.CLOSED}}),c._RF.pop()}}}));

System.register("chunks:///_virtual/WithDrawCtrl.ts",["cc"],(function(t){"use strict";var c,r;return{setters:[function(t){c=t.cclegacy,r=t._decorator}],execute:function(){var s,n;c._RF.push({},"feda4DbXbxCJLn02PWlxcJB","WithDrawCtrl",void 0);const{ccclass:e,property:i}=r;t("WithDrawCtrl",e("WithDrawCtrl")(((n=class t{constructor(){this.selBankCardIdx=0}static get instance(){return this._instance||(this._instance=new t),this._instance}})._instance=null,s=n))||s);c._RF.pop()}}}));

System.register("chunks:///_virtual/XGGameNameListConfig.ts",["cc"],(function(i){"use strict";var t,s;return{setters:[function(i){t=i.cclegacy,s=i._decorator}],execute:function(){var o;t._RF.push({},"c275cq6MoJLIIwyBwLkaUC9","XGGameNameListConfig",void 0);const{ccclass:c}=s;i("XGGameNameListConfig",c("XGGameNameListConfig")(o=class{constructor(){this.gameid=void 0,this.cn=void 0,this.en=void 0,this.id=void 0,this.ms=void 0,this.th=void 0,this.vi=void 0,this.tc=void 0,this.por=void 0}attrs(){return["gameid","cn","en","id","ms","th","vi","tc","por"]}})||o);t._RF.pop()}}}));

System.register("chunks:///_virtual/zh.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"a6c12J7brdFZaHSlzNRJNxH","zh",void 0);t("zh",{HotUpdate:{1:"本地没有manifest文件!",2:"下载manifest文件失败!",3:"已经更新到最新版本!",4:"发现新版本，准备更新!",5:"检查压缩:",6:"没有本地manifest文件，跳过热更.",7:"下载远程manifest文件失败，跳过热更.",8:"更新完成!",10:"本地没有manifest文件，更新失败!",11:"更新进度:",12:"更新成功!",13:"更新失败!",14:"资源更新失败!",15:"资源解压失败!",16:"正在检查更新，请稍候...",17:"资源更新失败，请检查您的网络连接后重试",18:"重试",19:"退出",20:"网络无法连接",21:"当前网络不可用，请检查您的网络连接后重试."}});e._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 () { }
    };
    });
});