System.register("chunks:///_virtual/about_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,o,r,s,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,r=t._decorator},function(t){s=t.default},function(t){u=t.UIButton}],execute:function(){var c,a,l,p,b,f,_;n._RF.push({},"f422cVBn8ZKPKf5tX3tyRHB","about_view",void 0);const{ccclass:d,property:h}=r;t("about_view",(c=d("about_view"),a=h(o),l=h(o),c((f=e((b=class extends s{constructor(...t){super(...t),i(this,"btn_close",f,this),i(this,"btn_update",_,this)}start(){u.BindClick(this.btn_close,(()=>{this.closeUI()}),this),u.BindClick(this.btn_update,(()=>{}),this)}update(t){}}).prototype,"btn_close",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(b.prototype,"btn_update",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=b))||p));n._RF.pop()}}}));

System.register("chunks:///_virtual/activity_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./GameMng.ts"],(function(e){"use strict";var t,i,o,s,a,n,r,l,h,d,c,u,g,f,_;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Prefab,a=e.UITransform,n=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){d=e.Holder},function(e){c=e.ScrollAdapter},function(e){u=e.View},function(e){g=e.ReleaseState},function(e){f=e.ReleaseManager},function(e){_=e.GameMng}],execute:function(){var w,p,b,v,y,P,T,m,M,F,H,S,A;o._RF.push({},"e4ffbKgvqNKVLou9dZeHSoa","activity_manager",void 0);const{ccclass:L,property:O}=r;e("activity_manager",(w=L("daoju_shop_view"),p=O(s),b=O(a),v=O(n),y=O(a),P=O(n),w((M=t((m=class extends c{constructor(...e){super(...e),i(this,"invite_Prefab",M,this),i(this,"header",F,this),i(this,"loading",H,this),i(this,"foot",S,this),i(this,"foot_loading",A,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1}start(){this.initView()}initView(){this.releaseManager.on(f.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(f.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever();var e=_.getActivityList();this.modelManager.insert(e,0),this.scrollManager.scrollToHeader(0)}async onPullUp(e){if(e.state==g.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==g.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var o=new h;o.set(this.foot_loading.color),o.a=255*Math.min(i,1),this.foot_loading.color=o}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==g.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==g.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}getPrefab(e){return this.invite_Prefab}getHolder(e,t){return new E(e,t,this)}getView(){return new z(this)}initElement(e,t){}scrollToHeader(){this.scrollManager.scrollToFooter(1)}}).prototype,"invite_Prefab",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(m.prototype,"header",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(m.prototype,"loading",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(m.prototype,"foot",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(m.prototype,"foot_loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=m))||T));class z extends u{onVisible(){}onDisable(){}}class E extends d{onCreated(){}onVisible(){}onDisable(){}}o._RF.pop()}}}));

System.register("chunks:///_virtual/activity_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts","./shop_type_btn.ts"],(function(t){"use strict";var e,i,n,o,c,s,l,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,c=t._decorator},function(t){s=t.default},function(t){l=t.UIButton},function(t){u=t.shop_type_btn}],execute:function(){var a,r,h,_,g,p,b,d,S,f,v,w,y;n._RF.push({},"ee8ebwa8W5K64Dwp//TxV8V","activity_view",void 0);const{ccclass:m,property:B}=c;t("activity_view",(a=m("activity_view"),r=B(o),h=B(o),_=B(o),g=B(o),p=B(o),a((S=e((d=class extends s{constructor(...t){super(...t),i(this,"btn_close",S,this),i(this,"btn_select_huodong",f,this),i(this,"btn_select_gonggao",v,this),i(this,"node_select_huodong",w,this),i(this,"node_select_gonggao",y,this),this.curSelect=0}start(){l.BindClick(this.btn_close,(()=>{this.closeUI()}),this)}initSelectView(){l.BindClick(this.btn_select_huodong,(()=>{0===this.curSelect||(this.curSelect=0,this.updateSelectStatus())}),this),l.BindClick(this.btn_select_gonggao,(()=>{1===this.curSelect||(this.curSelect=1,this.updateSelectStatus())}),this),this.updateSelectStatus()}updateSelectStatus(){switch(this.btn_select_huodong.getComponent(u).unSelect(),this.btn_select_gonggao.getComponent(u).unSelect(),this.curSelect){case 0:this.btn_select_huodong.getComponent(u).onSelect();break;case 1:this.btn_select_gonggao.getComponent(u).onSelect()}this.updateView()}updateView(){switch(this.node_select_huodong.active=!1,this.node_select_gonggao.active=!1,this.curSelect){case 0:this.node_select_huodong.active=!0;break;case 1:this.node_select_gonggao.active=!0}}update(t){}}).prototype,"btn_close",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(d.prototype,"btn_select_huodong",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(d.prototype,"btn_select_gonggao",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(d.prototype,"node_select_huodong",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(d.prototype,"node_select_gonggao",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=d))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/activityData.ts",["cc"],(function(t){"use strict";var c,i;return{setters:[function(t){c=t.cclegacy,i=t._decorator}],execute:function(){var a;c._RF.push({},"3e1d7V518VFp6L6VvHa2NTP","activityData",void 0);const{ccclass:s,property:e}=i;t("activityData",s("activityData")(a=class{constructor(){this.title="",this.description="",this.time=""}})||a);c._RF.pop()}}}));

System.register("chunks:///_virtual/ADSDK.ts",["cc","./GameMng.ts","./AudioMng.ts","./GameData.ts","./Singleton.ts","./PlatformMng.ts"],(function(e){"use strict";var t,o,a,n,i,s;return{setters:[function(e){t=e.cclegacy},function(e){o=e.GameMng},function(e){a=e.default},function(e){n=e.default},function(e){i=e.Singleton},function(e){s=e.default}],execute:function(){t._RF.push({},"c2d18IA2N9Gjbn7OUHZoNgJ","ADSDK",void 0);class l extends(i()){static ShowPageAD(e,t,o,a){s.platform.showPageAd(e,t,o)}static ClosePageAD(){s.platform.closePageAd()}static ShowVideoAD(e,t,o,a){if(l.onvideo)return;this.ToShowAD(e,t,o),l.onvideo=!0;let n=setTimeout((()=>{l.onvideo=!1,clearTimeout(n)}),1e3)}static ToShowAD(e,t,o){a.Instance.StopBGM(),l._ADVideo_onSucc=e,l._ADVideo_onFail=t,l._ADVideo_thisObj=o,s.platform.showVideoAd(l.OnADVideoClose,t)}static OnADVideoClose(e){console.log("视频关闭"),a.Instance.PlayBGM(o.Instance.gamebgm),e&&e.isEnded||void 0===e?(console.log("视频播放成功"),l._ADVideo_onSucc&&l._ADVideo_onSucc.call(l._ADVideo_thisObj)):(console.log("视频播放未结束"),l._ADVideo_onFail&&l._ADVideo_onFail.call(l._ADVideo_thisObj,!1))}static Share(e,t,o){a.Instance.StopBGM(),l.shareOnSucc=null,l.shareThisObj=null,l.shareOnSucc=t,l.shareThisObj=o;var n=new Date;l.shareTimeTick=n.getTime(),s.platform.share(e,t,o)}static ShareCallBack(){if(a.Instance.PlayBGM(o.Instance.gamebgm),null==l.shareOnSucc)return;var e=l.shareOnSucc,t=l.shareThisObj,n=l.shareTimeTick;l.shareOnSucc=null,l.shareThisObj=null,l.shareTimeTick=0;let i=(new Date).getTime()-n;console.log(i),i>=3e3?e.call(t):s.platform.showModal({title:"提示",content:"分享失败，请重试！"})}static isCurday(){let e=n.GetCustomData("gameday");let t=(new Date).getDay();return e==t||(n.SetCustomData("gameday",t),!1)}}e("default",l),l.onvideo=!1,l._ADVideo_onSucc=null,l._ADVideo_onFail=null,l._ADVideo_thisObj=null,l.shareOnSucc=null,l.shareThisObj=null,l.shareTimeTick=0,t._RF.pop()}}}));

System.register("chunks:///_virtual/AudioMng.ts",["cc","./GameData.ts"],(function(t){"use strict";var u,e,o,a;return{setters:[function(t){u=t.cclegacy,e=t._decorator,o=t.AudioSource},function(t){a=t.default}],execute:function(){var n,s;u._RF.push({},"bc4b71aQYJNsbRN0ZjPKyka","AudioMng",void 0);const{ccclass:i,property:c}=e;t("default",i("AudioMng")(((s=class t{constructor(){this.audioSource=null,this.bgmClip=null}static get Instance(){return null===t._instance&&(t._instance=new t),t._instance}InitSaveData(){a.SetCustomData("BgmOn",1),a.SetCustomData("SoundOn",1),a.SetCustomData("Volume",1)}get bgmOn(){return 1==a.GetCustomData("BgmOn")}get soundOn(){return 1==a.GetCustomData("SoundOn")}get volume(){return a.GetCustomData("Volume")}PlayBGM(t){null==this.audioSource&&(this.audioSource=new o)}StopBGM(){this.audioSource}PauseBGM(){this.audioSource}PlaySoundByName(t){this.soundOn&&t&&this.audioSource&&this.audioSource.playOneShot(t,1)}SetVolume(t){this.audioSource&&(this.audioSource.volume=t,a.SetCustomData("Volume",t))}})._audioSource=void 0,s._instance=null,n=s))||n);u._RF.pop()}}}));

System.register("chunks:///_virtual/AutoDestroy.ts",["cc"],(function(t){"use strict";var e,s,o;return{setters:[function(t){e=t.cclegacy,s=t.Component,o=t._decorator}],execute:function(){var c;e._RF.push({},"5209dOHBXJGIIvfdvP4Ky6A","AutoDestroy",void 0);const{ccclass:r,property:n}=o;t("AutoDestroy",r(c=class extends s{constructor(...t){super(...t),this.DelayTime=1.5}onLoad(){this.scheduleOnce((()=>{this.node.destroy()}),this.DelayTime)}})||c);e._RF.pop()}}}));

System.register("chunks:///_virtual/bag_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts","./shop_type_btn.ts"],(function(e){"use strict";var t,i,n,s,c,l,a,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,c=e._decorator},function(e){l=e.default},function(e){a=e.UIButton},function(e){u=e.shop_type_btn}],execute:function(){var o,r,_,h,b,p,d,S,g,z,f,w,m,q,v,y,k,C,j,B,D;n._RF.push({},"1ba24aDY39HkKitRNTDQpXB","bag_view",void 0);const{ccclass:I,property:U}=c;e("bag_view",(o=I("bag_view"),r=U(s),_=U(s),h=U(s),b=U(s),p=U(s),d=U(s),S=U(s),g=U(s),z=U(s),o((m=t((w=class extends l{constructor(...e){super(...e),i(this,"btn_close",m,this),i(this,"btn_select_daoju",q,this),i(this,"btn_select_qipan",v,this),i(this,"btn_select_qizi",y,this),i(this,"btn_select_zhuangban",k,this),i(this,"node_select_daoju",C,this),i(this,"node_select_qipan",j,this),i(this,"node_select_qizi",B,this),i(this,"node_select_zhuangban",D,this),this.curSelect=0}start(){a.BindClick(this.btn_close,(()=>{this.closeUI()}),this),this.initSelectView()}initSelectView(){a.BindClick(this.btn_select_daoju,(()=>{0===this.curSelect||(this.curSelect=0,this.updateSelectStatus())}),this),a.BindClick(this.btn_select_qipan,(()=>{1===this.curSelect||(this.curSelect=1,this.updateSelectStatus())}),this),a.BindClick(this.btn_select_qizi,(()=>{2===this.curSelect||(this.curSelect=2,this.updateSelectStatus())}),this),a.BindClick(this.btn_select_zhuangban,(()=>{3===this.curSelect||(this.curSelect=3,this.updateSelectStatus())}),this),this.updateSelectStatus()}updateSelectStatus(){switch(this.btn_select_daoju.getComponent(u).unSelect(),this.btn_select_qipan.getComponent(u).unSelect(),this.btn_select_qizi.getComponent(u).unSelect(),this.btn_select_zhuangban.getComponent(u).unSelect(),this.curSelect){case 0:this.btn_select_daoju.getComponent(u).onSelect();break;case 1:this.btn_select_qipan.getComponent(u).onSelect();break;case 2:this.btn_select_qizi.getComponent(u).onSelect();break;case 3:this.btn_select_zhuangban.getComponent(u).onSelect()}this.updateView()}updateView(){switch(this.node_select_daoju.active=!1,this.node_select_qipan.active=!1,this.node_select_qizi.active=!1,this.node_select_zhuangban.active=!1,this.curSelect){case 0:this.node_select_daoju.active=!0;break;case 1:this.node_select_qipan.active=!0;break;case 2:this.node_select_qizi.active=!0;break;case 3:this.node_select_zhuangban.active=!0}}update(e){}}).prototype,"btn_close",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(w.prototype,"btn_select_daoju",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(w.prototype,"btn_select_qipan",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(w.prototype,"btn_select_qizi",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(w.prototype,"btn_select_zhuangban",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(w.prototype,"node_select_daoju",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(w.prototype,"node_select_qipan",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(w.prototype,"node_select_qizi",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(w.prototype,"node_select_zhuangban",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=w))||f));n._RF.pop()}}}));

System.register("chunks:///_virtual/bag_zhuang_ban_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts"],(function(i){"use strict";var e,t,a,n,r,o,u;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){a=i.cclegacy,n=i.Node,r=i._decorator,o=i.Component},function(i){u=i.zhuang_ban_type}],execute:function(){var s,c,_,g,l,p,h,b,v;a._RF.push({},"367b5KgREpHSZnOK1l2UqX3","bag_zhuang_ban_manager",void 0);const{ccclass:w,property:f}=r;i("bag_zhuang_ban_manager",(s=w("bag_zhuang_ban_manager"),c=f(n),_=f(n),g=f(n),s((h=e((p=class extends o{constructor(...i){super(...i),t(this,"touxiangkuang_view",h,this),t(this,"jishiqi_view",b,this),t(this,"qipao_view",v,this)}start(){}show(i){switch(this.touxiangkuang_view.active=!1,this.jishiqi_view.active=!1,this.qipao_view.active=!1,i){case u.tou_xiang_kuang:this.touxiangkuang_view.active=!0;break;case u.ji_shi_qi:this.jishiqi_view.active=!0;break;case u.qi_pao:this.qipao_view.active=!0}}update(i){}}).prototype,"touxiangkuang_view",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(p.prototype,"jishiqi_view",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(p.prototype,"qipao_view",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));a._RF.pop()}}}));

System.register("chunks:///_virtual/bag_zhuangban_node.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./UIButton.ts","./bag_zhuang_ban_manager.ts","./shop_type_btn.ts"],(function(t){"use strict";var n,e,i,a,u,o,s,c,r,_;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,u=t._decorator,o=t.Component},function(t){s=t.zhuang_ban_type},function(t){c=t.UIButton},function(t){r=t.bag_zhuang_ban_manager},function(t){_=t.shop_type_btn}],execute:function(){var h,l,g,b,p,S,d,m,f,k,q;i._RF.push({},"10862puBpFPv6+1SzL8x8kS","bag_zhuangban_node",void 0);const{ccclass:z,property:x}=u;t("bag_zhuangban_node",(h=z("bag_zhuangban_node"),l=x(a),g=x(a),b=x(a),p=x(a),h((m=n((d=class extends o{constructor(...t){super(...t),e(this,"btn_touxiangkuang",m,this),e(this,"btn_jishiqi",f,this),e(this,"btn_qipao",k,this),e(this,"m_bag_zhuangban_node",q,this),this.curSelect=s.tou_xiang_kuang}start(){c.BindClick(this.btn_touxiangkuang,(()=>{this.curSelect===s.tou_xiang_kuang||(this.curSelect=s.tou_xiang_kuang,this.updateSelectStatus())}),this),c.BindClick(this.btn_jishiqi,(()=>{this.curSelect===s.ji_shi_qi||(this.curSelect=s.ji_shi_qi,this.updateSelectStatus())}),this),c.BindClick(this.btn_qipao,(()=>{this.curSelect===s.qi_pao||(this.curSelect=s.qi_pao,this.updateSelectStatus())}),this),this.updateSelectStatus()}updateSelectStatus(){switch(this.btn_touxiangkuang.getComponent(_).unSelect(),this.btn_jishiqi.getComponent(_).unSelect(),this.btn_qipao.getComponent(_).unSelect(),this.curSelect){case s.tou_xiang_kuang:this.btn_touxiangkuang.getComponent(_).onSelect();break;case s.ji_shi_qi:this.btn_jishiqi.getComponent(_).onSelect();break;case s.qi_pao:this.btn_qipao.getComponent(_).onSelect()}this.updateView()}updateView(){this.m_bag_zhuangban_node.getComponent(r).show(this.curSelect)}update(t){}}).prototype,"btn_touxiangkuang",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=n(d.prototype,"btn_jishiqi",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=n(d.prototype,"btn_qipao",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=n(d.prototype,"m_bag_zhuangban_node",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=d))||S));i._RF.pop()}}}));

System.register("chunks:///_virtual/bagData.ts",["cc"],(function(t){"use strict";var a,s;return{setters:[function(t){a=t.cclegacy,s=t._decorator}],execute:function(){var c;a._RF.push({},"ef70b/x15xFFb9D4X8TzVMY","bagData",void 0);const{ccclass:e,property:i}=s;t("bagData",e("bagData")(c=class{constructor(){this.item_list=[],this.yuan_bao=0,this.tong_bi=0,this.qi_hun=0}})||c);a._RF.pop()}}}));

System.register("chunks:///_virtual/BasePlatform.ts",["cc","./GameMng.ts","./AudioMng.ts","./Singleton.ts"],(function(e){"use strict";var s,t,l,n;return{setters:[function(e){s=e.cclegacy},function(e){t=e.GameMng},function(e){l=e.default},function(e){n=e.Singleton}],execute:function(){s._RF.push({},"cd583NppopJXaKZVo/6Asv4","BasePlatform",void 0);class a extends(n()){constructor(...e){super(...e),this.shareobj={title:"[有人@你]经典残局等你来战，快来试试吧！",imageUrl:"Res/texture/glow.png",query:""},this.bannerAd=null,this.bannerdisTime=0,this.bannerrefreshTime=1e4,this.pagead=null,this.videoloaded=!1,this.rewardedVideoAd=null,this.videoSucCall=null}init(){}showPageAd(e,s,t){console.log("base"),e&&e.call(t),s&&s.call(t)}closePageAd(){}showVideoAd(e,s,t){console.log("base"),e&&e.call(t),s&&s.call(t)}showPlatformMsg(){}showModal(e){}share(e,s,n){s&&(l.Instance.PlayBGM(t.Instance.gamebgm),s.call(n))}}e("BasePlatform",a),s._RF.pop()}}}));

System.register("chunks:///_virtual/btn_hui.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,n,a,s,_,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,s=t._decorator,_=t.Component,c=t.NodeEventType}],execute:function(){var r,u,o,h,l;n._RF.push({},"9ac59XwOHhCJ6XFbOtE8NGp","btn_hui",void 0);const{ccclass:p,property:b}=s;t("btn_hui",(r=p("btn_hui"),u=b(a),r((l=i((h=class extends _{constructor(...t){super(...t),e(this,"btn_an_xia_hui",l,this)}start(){this.node.on(c.MOUSE_DOWN,(()=>{this.btn_an_xia_hui.active=!0}),this),this.btn_an_xia_hui.active=!1}update(t){1===this.node.scale.x?this.btn_an_xia_hui.active&&(this.btn_an_xia_hui.active=!1):this.btn_an_xia_hui.active||(this.btn_an_xia_hui.active=!0)}}).prototype,"btn_an_xia_hui",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=h))||o));n._RF.pop()}}}));

System.register("chunks:///_virtual/ButtonMusic.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./AudioMng.ts","./UIButton.ts","./GameData.ts"],(function(t){"use strict";var e,n,s,o,i,r,c,a,u,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){s=t.cclegacy,o=t.Sprite,i=t._decorator,r=t.Component},function(t){c=t.GameMng},function(t){a=t.default},function(t){u=t.UIButton},function(t){f=t.default}],execute:function(){var l,p,g,m;s._RF.push({},"b95416ZSHtAjbVF85gCOtTx","ButtonMusic",void 0);const{ccclass:d,property:h}=i;t("default",(l=h(o),d((m=e((g=class extends r{constructor(...t){super(...t),n(this,"offSp",m,this)}start(){this.refreshUI(),u.BindClick(this.node,(()=>{a.Instance.bgmOn?(f.SetCustomData("BgmOn",0),a.Instance.StopBGM()):(f.SetCustomData("BgmOn",1),a.Instance.PlayBGM(c.Instance.gamebgm)),this.refreshUI()}),this)}refreshUI(){this.offSp.node.active=!a.Instance.bgmOn}}).prototype,"offSp",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=g))||p));s._RF.pop()}}}));

System.register("chunks:///_virtual/ButtonSound.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AudioMng.ts","./UIButton.ts","./GameData.ts"],(function(t){"use strict";var e,n,o,s,r,u,i,a,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){o=t.cclegacy,s=t.Sprite,r=t._decorator,u=t.Component},function(t){i=t.default},function(t){a=t.UIButton},function(t){c=t.default}],execute:function(){var f,l,p,d;o._RF.push({},"c9a99mV+FhL4axUfab4Q0o1","ButtonSound",void 0);const{ccclass:h,property:S}=r;t("default",(f=S(s),h((d=e((p=class extends u{constructor(...t){super(...t),n(this,"offSp",d,this)}start(){this.refreshUI(),a.BindClick(this.node,(()=>{i.Instance.soundOn?c.SetCustomData("SoundOn",0):c.SetCustomData("SoundOn",1),this.refreshUI()}),this)}refreshUI(){this.offSp.node.active=!i.Instance.soundOn}}).prototype,"offSp",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));o._RF.pop()}}}));

System.register("chunks:///_virtual/CanjuModel.ts",["cc","./GameData.ts","./Singleton.ts","./GameConst.ts"],(function(t){"use strict";var e,a,s,n;return{setters:[function(t){e=t.cclegacy},function(t){a=t.default},function(t){s=t.Singleton},function(t){n=t.GameConst}],execute:function(){e._RF.push({},"873c2M5W8lEq4qf8ku8SBx2","CanjuModel",void 0);class u extends(s()){constructor(...t){super(...t),this.canjuDataArr=[],this.selectLv=1}get canjuData(){return this.canjuDataArr[this.selectLv-1]}getCurMaxLevel(){var t=a.GetCustomData(n.canjuLevel);return Math.max(1,t)}setNewMaxLevel(t){a.SetCustomData(n.canjuLevel,t)}updateMaxLevel(t=1){var e=this.getCurMaxLevel();e+=t,e=Math.min(e,this.MaxLv),this.setNewMaxLevel(e)}selectNextLv(){this.selectLv<this.MaxLv?this.selectLv++:this.selectLv=1}get MaxLv(){return this.canjuDataArr.length}isUnlock(t){return t<=0||this.getCurMaxLevel()>=t+1}}t("default",u),e._RF.pop()}}}));

System.register("chunks:///_virtual/CellCanJuSel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts","./ScenceMng.ts","./UIDiffSel.ts","./CanjuModel.ts"],(function(e){"use strict";var t,n,i,l,s,c,o,r,a,u,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,l=e.Node,s=e.Label,c=e._decorator,o=e.Component},function(e){r=e.UIButton},function(e){a=e.default},function(e){u=e.default},function(e){d=e.default}],execute:function(){var f,p,h,b,y,x;i._RF.push({},"b2398FoyDdDQY/y1JsZmzFv","CellCanJuSel",void 0);const{ccclass:C,property:I}=c;e("default",(f=I(l),p=I(s),C((y=t((b=class extends o{constructor(...e){super(...e),n(this,"lock",y,this),this.index=0,n(this,"label",x,this)}start(){r.BindClick(this.node,(()=>{d.Instance.isUnlock(this.index)&&(d.Instance.selectLv=this.index+1,u.selectIndex=0,a.Instance.load("Chess"))}),this)}setData(e){this.index=e,this.lock.active=!d.Instance.isUnlock(this.index),this.label.string=""+(e+1)}}).prototype,"lock",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(b.prototype,"label",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=b))||h));i._RF.pop()}}}));

System.register("chunks:///_virtual/CenterManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Manager.ts","./enum.ts","./ScrollManager.ts","./ViewManager.ts"],(function(e){"use strict";var t,i,a,r,n,o,s,l,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){a=e.cclegacy,r=e._decorator,n=e.v3},function(e){o=e.Manager},function(e){s=e.AlwaysScroll},function(e){l=e.ScrollManager},function(e){h=e.ViewManager}],execute:function(){var p,c,d,u,g,v,f,_,w,M,m;a._RF.push({},"49cfdCskIREZ6//by123w4v","CenterManager",void 0);const{ccclass:x,property:A}=r;e("CenterManager",(p=x("CenterManager"),c=A("boolean"),d=A({visible:function(){return this.enabled}}),u=A({range:[0,1],slide:!0,step:.1}),g=A({range:[0,1],slide:!0,step:.1}),p((_=t((f=class extends o{constructor(...e){super(...e),i(this,"_enabled",_,this),i(this,"duration",w,this),i(this,"containerAnchorPoint",M,this),i(this,"elementAnchorPoint",m,this)}get enabled(){return this._enabled}set enabled(e){e!=this._enabled&&(this._enabled=e)}get max(){var e=this.getContainerOffset(this.containerAnchorPoint);return this.adapter.isArrangeAxisStart?e:this.adapter.mainAxisSize-e}get min(){var e=this.getContainerOffset(this.containerAnchorPoint);return this.adapter.isArrangeAxisStart?this.adapter.mainAxisSize-e:e}getContainerOffset(e=this.containerAnchorPoint){var t=0;return t=this.adapter.isHorizontal?-1==this.adapter.multiplier?e:1-e:1==this.adapter.multiplier?e:1-e,this.adapter.mainAxisSize*t}getElementOffset(e=this.elementAnchorPoint){return this.adapter.isHorizontal?-1==this.adapter.multiplier?e:1-e:1==this.adapter.multiplier?e:1-e}onInit(){this.adapter.scrollManager.on(l.Event.ON_ABOUT_TO_STOP,this._onAboutToStop,this),this.adapter.viewManager.on(h.Event.ON_UPDATE_VIEWS,this.scrollToCenter,this,!0)}_onAboutToStop(){this.scrollToCenter()}scrollToCenter(e=this.duration){if(this.enabled){var t=this.getCenterVisibleIndex();if(-1!=t){var i=this.adapter.viewManager.getVisibleView(t);this.adapter.scrollManager.scrollToGroupIndex(e,i.index)}}}getCenterVisibleIndex(e=this.containerAnchorPoint,t=this.elementAnchorPoint){var i=this.adapter.mainAxis,a=this.getContainerOffset(e),r=-1,o=Number.MAX_SAFE_INTEGER;for(let e=0;e<this.adapter.viewManager.visibleLength;e++){const c=this.adapter.viewManager.getVisibleView(e);if(!c||!c.group)break;var s={x:c.group.position.x,y:c.group.position.y};s[i]-=this.adapter.multiplier*c.group.size[i]*t;var l=this.adapter.scrollManager.content.convertToWorldSpaceAR(n(s.x,s.y)),h=this.adapter.scrollManager.view.convertToNodeSpaceAR(l),p=Math.abs(h[i]+this.adapter.multiplier*a);p<o&&(o=p,r=e)}return r}getPositionByGroupIndex(e,t=s.Auto,i=!1){var a=this.adapter.viewManager.getGroup(e);if(!a)return null;var r=null;if(t==s.Header&&this.adapter.viewManager.loopHeader)i&&(r=this._checkExists(e)),null==r&&(r=this._alwaysHeader(e,a));else if(t==s.Footer&&this.adapter.viewManager.loopFooter)i&&(r=this._checkExists(e)),null==r&&(r=this._alwaysFooter(e,a));else if(null==(r=this._checkExists(e))){var n=this.adapter.viewManager.header,o=this.adapter.viewManager.footer;n?e>o.index?r=this._calcTargetFooter(o.group,o.index+1,e,a):e<n.index&&(r=this._calcTargetHeader(n.group,n.index-1,e,a)):r={position:a.position[this.adapter.mainAxis],size:a.size[this.adapter.mainAxis],anchor:a.anchorPoint[this.adapter.mainAxis]}}return this._convertTargetToPosition(r)}_convertTargetToPosition(e){var t=null;if(e){var i=this.adapter.multiplier,a=-1==i?e.anchor:1-e.anchor;t=-e.position,t-=this.getContainerOffset()*i,t-=e.size*a*i,t+=e.size*this.getElementOffset()*i}return t}_checkExists(e){var t=this.adapter.viewManager.getVisibleIndexByGroupIndex(e);if(-1!=t){let e=this.adapter.viewManager.getVisibleView(t);return{position:e.group.position[this.adapter.mainAxis],size:e.group.size[this.adapter.mainAxis],anchor:e.group.anchorPoint[this.adapter.mainAxis]}}return null}_calcTargetFooter(e,t,i,a){let r=this.adapter.viewManager.internal_getInitFooterSize(e);for(let e=t;e<=i;e++)r+=this.adapter.viewManager.internal_accumulationSize(e);return{position:this.adapter.viewManager.internal_convertSizeToFooterPosition(r,a),size:a.size[this.adapter.mainAxis],anchor:a.anchorPoint[this.adapter.mainAxis]}}_calcTargetHeader(e,t,i,a){let r=this.adapter.viewManager.internal_getInitHeaderSize(e);for(let e=t;e>=i;e--)r+=this.adapter.viewManager.internal_accumulationSize(e);return{position:this.adapter.viewManager.internal_convertSizeToHeaderPosition(r,a),size:a.size[this.adapter.mainAxis],anchor:a.anchorPoint[this.adapter.mainAxis]}}_alwaysHeader(e,t){var i=0,a=e,r=this.adapter.viewManager.header;return r&&(i=this.adapter.viewManager.internal_getInitHeaderSize(r.group),a=r.index),e!=a&&(i=this._calcSizeToHeader(a,e,i)),{position:this.adapter.viewManager.internal_convertSizeToHeaderPosition(i,t),size:t.size[this.adapter.mainAxis],anchor:t.anchorPoint[this.adapter.mainAxis]}}_alwaysFooter(e,t){var i=0,a=e,r=this.adapter.viewManager.footer;return r&&(i=this.adapter.viewManager.internal_getInitFooterSize(r.group),a=r.index),e!=a&&(i=this._calcSizeToFooter(a,e,i)),{position:this.adapter.viewManager.internal_convertSizeToFooterPosition(i,t),size:t.size[this.adapter.mainAxis],anchor:t.anchorPoint[this.adapter.mainAxis]}}_calcSizeToHeader(e,t,i){for(;;){if(--e<0){if(!this.adapter.viewManager.loopHeader)return i;e=this.adapter.viewManager.groupLength-1}if(i+=this.adapter.viewManager.internal_accumulationSize(e),t==e)return i}}_calcSizeToFooter(e,t,i){for(;;){if(++e>=this.adapter.viewManager.groupLength){if(!this.adapter.viewManager.loopFooter)return i;e=0}if(i+=this.adapter.viewManager.internal_accumulationSize(e),e==t)return i}}}).prototype,"_enabled",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t(f.prototype,"enabled",[c],Object.getOwnPropertyDescriptor(f.prototype,"enabled"),f.prototype),w=t(f.prototype,"duration",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),M=t(f.prototype,"containerAnchorPoint",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),m=t(f.prototype,"elementAnchorPoint",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),v=f))||v));a._RF.pop()}}}));

System.register("chunks:///_virtual/chat_text_cell.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./msgManager.ts"],(function(t){"use strict";var e,n,s,i,o,r,a,c,l,u,h,_,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){s=t.cclegacy,i=t.Node,o=t._decorator,r=t.Component,a=t.Color,c=t.Label},function(t){l=t.ClientEvent},function(t){u=t.Constant},function(t){h=t.GameMng},function(t){_=t.UIButton},function(t){p=t.msgManager}],execute:function(){var d,f,g,m,C;s._RF.push({},"2aa82oaohlL3qBHaChf6C5i","chat_text_cell",void 0);const{ccclass:b,property:x}=o;t("chat_text_cell",(d=b("chat_text_cell"),f=x(i),d((C=e((m=class extends r{constructor(...t){super(...t),n(this,"lab_str",C,this),this.text="",this.id=""}start(){_.BindClick(this.node,(()=>{""!=this.id&&(p.send_chat(this.id,this.text),l.dispatchEvent(u.UI_EVENT.UI_MSG_BTN_HIDE_CHAT))}),this)}show(t,e){let n=e.split(":")[0];var s=new a;n===h._userData.user_name?this.lab_str.getComponent(c).color=s.fromHEX("#FFFFFF"):this.lab_str.getComponent(c).color=s.fromHEX("#9BA3DD"),this.text=e,this.id=t,this.lab_str.getComponent(c).string=e}update(t){}}).prototype,"lab_str",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=m))||g));s._RF.pop()}}}));

System.register("chunks:///_virtual/chat_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./msgManager.ts","./chat_text_cell.ts","./emote.ts"],(function(t){"use strict";var e,i,n,s,r,o,l,a,h,c,_,u,p,m,b,f,y,g,d;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t.EditBox,o=t.Prefab,l=t.SpriteFrame,a=t._decorator,h=t.Component,c=t.Color,_=t.Sprite,u=t.instantiate},function(t){p=t.ClientEvent},function(t){m=t.Constant},function(t){b=t.GameMng},function(t){f=t.UIButton},function(t){y=t.msgManager},function(t){g=t.chat_text_cell},function(t){d=t.emote}],execute:function(){var x,C,w,v,T,z,B,E,D,F,I,H,L,S,M,k,N,U,A,V,G,P,X,J,R,j,q,K,O,Q,W,Y,Z,$,tt,et,it,nt,st;n._RF.push({},"ca2a8JqgthNSov2PJBfmtF0","chat_view",void 0);const{ccclass:rt,property:ot}=a;t("chat_view",(x=rt("chat_view"),C=ot(s),w=ot(s),v=ot(s),T=ot(s),z=ot(s),B=ot(r),E=ot(s),D=ot(s),F=ot(s),I=ot(s),H=ot(s),L=ot(s),S=ot(o),M=ot(o),k=ot(l),N=ot(l),U=ot(l),A=ot(l),x((P=e((G=class extends h{constructor(...t){super(...t),i(this,"btn_emote",P,this),i(this,"btn_history",X,this),i(this,"btn_send",J,this),i(this,"btn_enter",R,this),i(this,"btn_send_text",j,this),i(this,"text_editBox",q,this),i(this,"emote_scroll",K,this),i(this,"history_scroll",O,this),i(this,"chat_scroll",Q,this),i(this,"content",W,this),i(this,"content_text",Y,this),i(this,"content_history_text",Z,this),i(this,"emote_pf",$,this),i(this,"chat_text_pf",tt,this),i(this,"sp_emote_select",et,this),i(this,"sp_emote_unselect",it,this),i(this,"sp_lishi_select",nt,this),i(this,"sp_lishi_unselect",st,this),this._color=new c}start(){this.initView()}initView(){this.btn_emote.getComponent(_).spriteFrame=this.sp_emote_select,this.btn_history.getComponent(_).spriteFrame=this.sp_lishi_unselect,this.emote_scroll.active=!0,this.history_scroll.active=!1,f.BindClick(this.btn_emote,(()=>{this.btn_emote.getComponent(_).spriteFrame=this.sp_emote_select,this.btn_history.getComponent(_).spriteFrame=this.sp_lishi_unselect,this.emote_scroll.active=!0,this.history_scroll.active=!1}),this),f.BindClick(this.btn_history,(()=>{this.btn_emote.getComponent(_).spriteFrame=this.sp_emote_unselect,this.btn_history.getComponent(_).spriteFrame=this.sp_lishi_select,this.emote_scroll.active=!1,this.history_scroll.active=!0}),this),f.BindClick(this.btn_send,(()=>{this.chat_scroll.active=!0}),this),f.BindClick(this.btn_enter,(()=>{this.chat_scroll.active=!0}),this),f.BindClick(this.btn_send_text,(()=>{""===this.text_editBox.string||" "===this.text_editBox.string||(y.send_chat("0",this.text_editBox.string),p.dispatchEvent(m.UI_EVENT.UI_MSG_BTN_HIDE_CHAT))}),this),this.initEmoteList(),this.initChatTextList(),this.initChatHisyoryList()}onEnable(){if(this.emote_scroll.active=!0,this.history_scroll.active=!1,this.btn_emote.getComponent(_).spriteFrame=this.sp_emote_select,this.btn_history.getComponent(_).spriteFrame=this.sp_lishi_unselect,this.chat_scroll.active=!1,this.text_editBox.string="",null!=b._userData.room.chat_history_list&&null!=b._userData.room.chat_history_list)for(let t=this.content_history_text.children.length-1;t<b._userData.room.chat_history_list.length;t++){const e=b._userData.room.chat_history_list[t];this.add_chat_history(e)}}closeView(){p.dispatchEvent(m.UI_EVENT.UI_MSG_BTN_HIDE_CHAT)}add_chat_history(t){var e=u(this.chat_text_pf);this.content_history_text.addChild(e),e.getComponent(g).show("",t)}initChatHisyoryList(){if(null!=b._userData.room.chat_history_list&&null!=b._userData.room.chat_history_list)for(let t=0;t<b._userData.room.chat_history_list.length;t++){const e=b._userData.room.chat_history_list[t];this.add_chat_history(e)}}initChatTextList(){for(let e=0;e<m.CHAT_LIST_TEXT.length;e++){const i=m.CHAT_LIST_TEXT[e];var t=u(this.chat_text_pf);this.content_text.addChild(t),t.getComponent(g).show(e+1+"",i)}}initEmoteList(){for(let e=0;e<28;e++){var t=u(this.emote_pf);this.content.addChild(t),t.getComponent(d).show(m.CHAT_LIST_TEXT.length+(e+1)+"",e)}}update(t){}}).prototype,"btn_emote",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=e(G.prototype,"btn_history",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=e(G.prototype,"btn_send",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(G.prototype,"btn_enter",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(G.prototype,"btn_send_text",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(G.prototype,"text_editBox",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=e(G.prototype,"emote_scroll",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(G.prototype,"history_scroll",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=e(G.prototype,"chat_scroll",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=e(G.prototype,"content",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=e(G.prototype,"content_text",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=e(G.prototype,"content_history_text",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=e(G.prototype,"emote_pf",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=e(G.prototype,"chat_text_pf",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(G.prototype,"sp_emote_select",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(G.prototype,"sp_emote_unselect",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=e(G.prototype,"sp_lishi_select",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e(G.prototype,"sp_lishi_unselect",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=G))||V));n._RF.pop()}}}));

System.register("chunks:///_virtual/ChatAndMenu.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./UIButton.ts"],(function(t){"use strict";var n,i,e,a,c,s,l,r,u,o,h;return{setters:[function(t){n=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){e=t.cclegacy,a=t.Node,c=t._decorator,s=t.Component,l=t.Vec3,r=t.tween},function(t){u=t.ClientEvent},function(t){o=t.Constant},function(t){h=t.UIButton}],execute:function(){var d,_,p,b,f,v,C,y,m;e._RF.push({},"c10c2Vv4ttEVY3ldHSY+eLV","ChatAndMenu",void 0);const{ccclass:g,property:w}=c;t("ChatAndMenu",(d=g("ChatAndMenu"),_=w(a),p=w(a),b=w(a),d((C=n((v=class extends s{constructor(...t){super(...t),i(this,"btn_menu",C,this),i(this,"btn_chat",y,this),i(this,"caidan_list",m,this)}start(){h.BindClick(this.btn_chat,(function(){u.dispatchEvent(o.UI_EVENT.UI_MSG_BTN_SHOW_CHAT)}),this),h.BindClick(this.btn_menu,(function(){this.caidan_list.active?this.caidan_list.active=!1:(this.caidan_list.scale=new l(0,0,0),this.caidan_list.active=!0,r().target(this.caidan_list).to(.2,{scale:new l(1.1,1.1,1)}).delay(.2).call((()=>{this.caidan_list.scale=new l(1,1,1)})).start())}),this)}update(t){}}).prototype,"btn_menu",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=n(v.prototype,"btn_chat",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=n(v.prototype,"caidan_list",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=v))||f));e._RF.pop()}}}));

System.register("chunks:///_virtual/check_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts"],(function(e){"use strict";var t,i,c,r,s,a,n,l,u,h,_,p,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){c=e.cclegacy,r=e.Node,s=e._decorator,a=e.Component,n=e.Label},function(e){l=e.ClientEvent},function(e){u=e.privacy_select,h=e.Constant,_=e.privacy_type},function(e){p=e.GameMng},function(e){o=e.UIButton}],execute:function(){var y,b,k,f,S,g,v,d,z,T,m,w,C,D,j,P,E,B,I,L,M,R,U;c._RF.push({},"7d7be4CrYpA5Zjp0LKazRTd","check_view",void 0);const{ccclass:A,property:G}=s;e("check_view",(y=A("check_view"),b=G(r),k=G(r),f=G(r),S=G(r),g=G(r),v=G(r),d=G(r),z=G(r),T=G(r),m=G(r),y((D=t((C=class extends a{constructor(...e){super(...e),i(this,"tag_lab",D,this),i(this,"check_1",j,this),i(this,"check_2",P,this),i(this,"check_3",E,this),i(this,"check_1_lab",B,this),i(this,"check_2_lab",I,this),i(this,"check_3_lab",L,this),i(this,"check_1_sp",M,this),i(this,"check_2_sp",R,this),i(this,"check_3_sp",U,this),this.check_list=[],this.curSelectType=0,this.curSelectPrivacyType=void 0}start(){o.BindClick(this.check_1,(()=>{this.curSelectType!=u.suo_you_ren&&(this.curSelectType=u.suo_you_ren,this.updateSelectStatus(!0))}),this),o.BindClick(this.check_2,(()=>{this.curSelectType!=u.jin_hao_you&&(this.curSelectType=u.jin_hao_you,this.updateSelectStatus(!0))}),this),o.BindClick(this.check_3,(()=>{this.curSelectType!=u.ju_jue&&(this.curSelectType=u.ju_jue,this.updateSelectStatus(!0))}),this),this.updateSelectStatus()}initCheckList(){this.check_list.length<=0&&(this.check_list.push(this.check_1_sp),this.check_list.push(this.check_2_sp),this.check_list.push(this.check_3_sp))}show(e){this.curSelectPrivacyType=e;let t=h.CHECK_PRIVACY[e];if(this.tag_lab.getComponent(n).string=t.tag,this.check_1_lab.getComponent(n).string=t.select_list[0],this.check_2_lab.getComponent(n).string=t.select_list[1],this.check_3_lab.getComponent(n).string=t.select_list[2],null!==p._userData.privacy&&void 0!==p._userData.privacy){switch(e){case _.liu_yan:this.curSelectType=p._userData.privacy.liuyan_type;break;case _.zhan_ji:this.curSelectType=p._userData.privacy.zhanji_type;break;case _.yue_zhan:this.curSelectType=p._userData.privacy.yuezhan_type}this.updateSelectStatus()}else console.error("GameMng._userData.privacy error")}updateSelectStatus(e=!1){this.initCheckList();for(let e=0;e<this.check_list.length;e++){this.check_list[e].active=!1}switch(this.check_list[this.curSelectType].active=!0,this.curSelectPrivacyType){case _.liu_yan:p._userData.privacy.liuyan_type=this.curSelectType;break;case _.zhan_ji:p._userData.privacy.zhanji_type=this.curSelectType;break;case _.yue_zhan:p._userData.privacy.yuezhan_type=this.curSelectType}e&&l.dispatchEvent(h.UI_EVENT.UI_MSG_UPDATE_PRIVACY)}update(e){}}).prototype,"tag_lab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(C.prototype,"check_1",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(C.prototype,"check_2",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(C.prototype,"check_3",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(C.prototype,"check_1_lab",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(C.prototype,"check_2_lab",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(C.prototype,"check_3_lab",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(C.prototype,"check_1_sp",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(C.prototype,"check_2_sp",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(C.prototype,"check_3_sp",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=C))||w));c._RF.pop()}}}));

System.register("chunks:///_virtual/chess_btns.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBoardChess.ts","./UIDialog.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts"],(function(i){"use strict";var t,n,e,s,a,c,r,l,u,h,o,b,_;return{setters:[function(i){t=i.applyDecoratedDescriptor,n=i.initializerDefineProperty},function(i){e=i.cclegacy,s=i.Node,a=i._decorator,c=i.Component,r=i.Vec3,l=i.tween},function(i){u=i.default},function(i){h=i.default},function(i){o=i.GameMng},function(i){b=i.UIButton},function(i){_=i.UIManager}],execute:function(){var d,p,f,g,C,y,k,w,m,z,B,v,Q,q,D,I,L,M,U,j,G,F,P;e._RF.push({},"b4136970KtHlLoF5ZfuJdzW","chess_btns",void 0);const{ccclass:S,property:x}=a;i("chess_btns",(d=S("chess_btns"),p=x(s),f=x(s),g=x(s),C=x(s),y=x(s),k=x(s),w=x(s),m=x(s),z=x(s),B=x(s),d((q=t((Q=class extends c{constructor(...i){super(...i),n(this,"btn_caidan",q,this),n(this,"btn_huiqi",D,this),n(this,"btn_tishi",I,this),n(this,"btn_duiju",L,this),n(this,"caidan_list",M,this),n(this,"cd_btn_quit",U,this),n(this,"cd_btn_tihe",j,this),n(this,"cd_btn_renshu",G,this),n(this,"cd_btn_chonglai",F,this),n(this,"cd_btn_shezhi",P,this)}start(){b.BindClick(this.btn_caidan,(()=>{this.caidan_list.active?this.caidan_list.active=!1:(this.caidan_list.scale=new r(0,0,0),this.caidan_list.active=!0,l().target(this.caidan_list).to(.2,{scale:new r(1.1,1.1,1)}).delay(.2).call((()=>{this.caidan_list.scale=new r(1,1,1)})).start())}),this),b.BindClick(this.btn_huiqi,(()=>{this.onClickQuit(),u.instance.retract()}),this),b.BindClick(this.btn_tishi,(()=>{this.onClickQuit(),u.instance.tishi()}),this),b.BindClick(this.btn_duiju,(()=>{}),this),this.initCaiDanListBtsEvent()}initCaiDanListBtsEvent(){b.BindClick(this.cd_btn_quit,(()=>{this.onClickQuit(),h.Show((()=>{u.instance.recvQuit({type:0})}),(()=>{}),"是否确定退出",u.instance.uiLayer,!0)}),this),b.BindClick(this.cd_btn_tihe,(()=>{this.onClickQuit(),u.instance.heqi()}),this),b.BindClick(this.cd_btn_renshu,(()=>{}),this),b.BindClick(this.cd_btn_chonglai,(()=>{this.onClickQuit(),u.instance.restartGame()}),this),b.BindClick(this.cd_btn_shezhi,(()=>{this.onClickQuit(),_.AddPrefab(o.Instance.uiChessSettingView)}),this)}onClickQuit(){this.caidan_list.active=!1}update(i){}}).prototype,"btn_caidan",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(Q.prototype,"btn_huiqi",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(Q.prototype,"btn_tishi",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(Q.prototype,"btn_duiju",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(Q.prototype,"caidan_list",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(Q.prototype,"cd_btn_quit",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(Q.prototype,"cd_btn_tihe",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(Q.prototype,"cd_btn_renshu",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(Q.prototype,"cd_btn_chonglai",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(Q.prototype,"cd_btn_shezhi",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=Q))||v));e._RF.pop()}}}));

System.register("chunks:///_virtual/chess_setting_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts","./page_btn.ts"],(function(t){"use strict";var i,e,s,n,c,l,o,r;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Node,c=t._decorator},function(t){l=t.default},function(t){o=t.UIButton},function(t){r=t.page_btn}],execute:function(){var _,u,h,b,a,g,p,m,f,w,d,k,v,y,B;s._RF.push({},"05701KHbxlEaZnl9YswS9GT","chess_setting_view",void 0);const{ccclass:C,property:z}=c;t("chess_setting_view",(_=C("chess_setting_view"),u=z(n),h=z(n),b=z(n),a=z(n),g=z(n),p=z(n),_((w=i((f=class extends l{constructor(...t){super(...t),e(this,"btn_close",w,this),e(this,"btn_bg_music",d,this),e(this,"btn_chess_music",k,this),e(this,"btn_recv_msg",v,this),e(this,"btn_show_tips",y,this),e(this,"btn_show_chess_ani",B,this)}start(){o.BindClick(this.btn_close,(()=>{this.closeUI()}),this),o.BindClick(this.btn_bg_music,(()=>{this.clickToggle(this.btn_bg_music)}),this),o.BindClick(this.btn_chess_music,(()=>{this.clickToggle(this.btn_chess_music)}),this),o.BindClick(this.btn_recv_msg,(()=>{this.clickToggle(this.btn_recv_msg)}),this),o.BindClick(this.btn_show_tips,(()=>{this.clickToggle(this.btn_show_tips)}),this),o.BindClick(this.btn_show_chess_ani,(()=>{this.clickToggle(this.btn_show_chess_ani)}),this)}clickToggle(t){t.getComponent(r).isSelect()?t.getComponent(r).status_unselect():t.getComponent(r).status_select()}update(t){}}).prototype,"btn_close",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=i(f.prototype,"btn_bg_music",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(f.prototype,"btn_chess_music",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=i(f.prototype,"btn_recv_msg",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=i(f.prototype,"btn_show_tips",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(f.prototype,"btn_show_chess_ani",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=f))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/ChessMng.ts",["cc","./constant.ts","./GameMng.ts","./Singleton.ts"],(function(o){"use strict";var e,t,r,n,a;return{setters:[function(o){e=o.cclegacy,t=o._decorator},function(o){r=o.room_type},function(o){n=o.GameMng},function(o){a=o.Singleton}],execute:function(){var s;e._RF.push({},"78909KkmLNKiZ13M0EpAEzW","ChessMng",void 0);const{ccclass:u,property:_}=t,i=o("ChessType",{renjiboyi:0,canju:1,haoyou:2,jifen:3,_null:4});o("default",u(s=class extends(a()){constructor(...o){super(...o),this.chesstype=i._null}isTongqianRoom(){return null!==n._userData.room&&void 0!==n._userData.room&&(n._userData.room.roomtype==r._gaoji_tongqian||n._userData.room.roomtype==r._chuji_tongqian||n._userData.room.roomtype==r._zhongji_tongqian)}isHaoyouRoom(){return null!==n._userData.room&&void 0!==n._userData.room&&(n._userData.room.roomtype==r._jing_dian_hao_you||n._userData.room.roomtype==r._mei_miao_die_jia_hao_you)}isJiFenRoom(){return null!==n._userData.room&&void 0!==n._userData.room&&(n._userData.room.roomtype==r._jifen_5||n._userData.room.roomtype==r._jifen_10||n._userData.room.roomtype==r._jifen_20)}})||s);e._RF.pop()}}}));

System.register("chunks:///_virtual/ChessPos.ts",["cc"],(function(s){"use strict";var t,e;return{setters:[function(s){t=s.cclegacy,e=s._decorator}],execute:function(){var r;t._RF.push({},"7dcd6aFKklLgZUH8h+//a3y","ChessPos",void 0);const{ccclass:i}=e;s("default",i("ChessPos")(r=class s{constructor(){this.clearBoard=function(){this.sdPlayer=0,this.squares=[];for(var s=0;s<256;s++)this.squares.push(0);this.zobristKey=this.zobristLock=0,this.vlWhite=this.vlBlack=0},this.mvList=[],this.pcList=[],this.keyList=[],this.chkList=[],this.squares=[],this.distance=0,this.vlWhite=0,this.vlBlack=0,this.zobristKey=0,this.zobristLock=0,this.sdPlayer=0}setIrrev(){this.mvList=[0],this.pcList=[0],this.keyList=[0],this.chkList=[this.checked()],this.distance=0}addPiece(s,t,e){var r;this.squares[s]=e?0:t,t<8&&console.log("addPiece error",t),t<16?(r=t-8,this.vlWhite+=e?-V[r][s]:V[r][s]):(r=t-16,this.vlBlack+=e?-V[r][R(s)]:V[r][R(s)],r+=7),this.zobristKey^=ss[r][s],this.zobristLock^=ts[r][s]}pushMvList(s){this.mvList.push(s),this.distance++}movePiece(s){var t=O(s),e=U(s),r=this.squares[e];this.pcList.push(r),r>0&&this.addPiece(e,r,M),0==(r=this.squares[t])?console.log("pc error == ",this.squares,e):(this.addPiece(t,r,M),this.addPiece(e,r,q)),this.mvList.push(s)}undoMovePiece(){var s=this.mvList.pop(),t=O(s),e=U(s),r=this.squares[e];this.addPiece(e,r,M),this.addPiece(t,r,q),(r=this.pcList.pop())>0&&this.addPiece(e,r,q)}changeSide(){this.sdPlayer=1-this.sdPlayer,this.zobristKey^=Q,this.zobristLock^=T}makeMove(s){var t=this.zobristKey;return this.movePiece(s),this.checked()?(this.undoMovePiece(),!1):(this.keyList.push(t),this.changeSide(),this.chkList.push(this.checked()),this.distance++,!0)}undoMakeMove(){this.distance--,this.chkList.pop(),this.changeSide(),this.keyList.pop(),this.undoMovePiece()}nullMove(){this.mvList.push(0),this.pcList.push(0),this.keyList.push(this.zobristKey),this.changeSide(),this.chkList.push(!1),this.distance++}undoNullMove(){this.distance--,this.chkList.pop(),this.changeSide(),this.keyList.pop(),this.pcList.pop(),this.mvList.pop()}fromFen(s){this.clearBoard();var t=b,e=P,r=0;if(r!=s.length){for(var i=s.charAt(r);" "!=i;){if("/"==i){if(e=P,++t>L)break}else if(i>="1"&&i<="9")e+=J(i)-J("0");else if(i>="A"&&i<="Z"){if(e<=g)(h=Y(i))>=0&&this.addPiece(F(e,t),h+8,null),e++}else if(i>="a"&&i<="z"){var h;if(e<=g)(h=Y(G(J(i)+J("A")-J("a"))))>=0&&this.addPiece(F(e,t),h+16,null),e++}if(++r==s.length)return void this.setIrrev();i=s.charAt(r)}++r!=s.length?(this.sdPlayer==("b"==s.charAt(r)?0:1)&&this.changeSide(),this.setIrrev()):this.setIrrev()}else this.setIrrev()}toFen(){for(var s="",t=b;t<=L;t++){for(var e=0,r=P;r<=g;r++){var i=this.squares[F(r,t)];i>0?(e>0&&(s+=G(J("0")+e),e=0),s+=X.charAt(i)):e++}e>0&&(s+=G(J("0")+e)),s+="/"}return s.substring(0,s.length-1)+(0==this.sdPlayer?" w":" b")}generateMoves(s){for(var t,e,r=[],i=Z(this.sdPlayer),h=E(this.sdPlayer),a=0;a<256;a++){var u=this.squares[a];if(0!=(u&i))switch(u-i){case f:for(var n=0;n<4;n++){if(I(o=a+z[n])){var c=this.squares[o];null==s?0==(c&i)&&r.push(j(a,o)):0!=(c&h)&&(r.push(j(a,o)),s.push(D(c,5)))}}break;case l:for(n=0;n<4;n++){if(I(o=a+S[n])){c=this.squares[o];null==s?0==(c&i)&&r.push(j(a,o)):0!=(c&h)&&(r.push(j(a,o)),s.push(D(c,1)))}}break;case p:for(n=0;n<4;n++){if(W(o=a+S[n])&&(t=o,e=this.sdPlayer,(128&t)!=e<<7)&&0==this.squares[o]){o+=S[n];c=this.squares[o];null==s?0==(c&i)&&r.push(j(a,o)):0!=(c&h)&&(r.push(j(a,o)),s.push(D(c,1)))}}break;case v:for(n=0;n<4;n++){var o=a+z[n];if(!(this.squares[o]>0))for(var b=0;b<2;b++)if(W(o=a+A[n][b])){c=this.squares[o];null==s?0==(c&i)&&r.push(j(a,o)):0!=(c&h)&&(r.push(j(a,o)),s.push(D(c,1)))}}break;case d:for(n=0;n<4;n++)for(o=a+(L=z[n]);W(o);){if(0!=(c=this.squares[o])){0!=(c&h)&&(r.push(j(a,o)),null!=s&&s.push(D(c,4)));break}null==s&&r.push(j(a,o)),o+=L}break;case k:for(n=0;n<4;n++){for(o=a+(L=z[n]);W(o);){if(0!=(c=this.squares[o]))break;null==s&&r.push(j(a,o)),o+=L}for(o+=L;W(o);){if((c=this.squares[o])>0){0!=(c&h)&&(r.push(j(a,o)),null!=s&&s.push(D(c,4)));break}o+=L}}break;case y:if(W(o=N(a,this.sdPlayer))){c=this.squares[o];null==s?0==(c&i)&&r.push(j(a,o)):0!=(c&h)&&(r.push(j(a,o)),s.push(D(c,2)))}if(H(a,this.sdPlayer))for(var L=-1;L<=1;L+=2)if(W(o=a+L)){c=this.squares[o];null==s?0==(c&i)&&r.push(j(a,o)):0!=(c&h)&&(r.push(j(a,o)),s.push(D(c,2)))}}}return r}findAllCanMove(s){var t=s,e=this.squares[t],r=[],i=Z(this.sdPlayer),h=E(this.sdPlayer);if(0==(e&i))return r;switch(e-i){case f:(M=[]).push(t-16),M.push(t-1),M.push(t+16),M.push(t+1);for(var a=0;a<M.length;a++){if(W(M[a]))this.legalMove(j(t,M[a]))&&r.push(M[a])}break;case l:(M=[]).push(t-17),M.push(t-15),M.push(t+17),M.push(t+15);for(a=0;a<M.length;a++){if(W(M[a]))this.legalMove(j(t,M[a]))&&r.push(M[a])}break;case p:(M=[]).push(t-34),M.push(t-30),M.push(t+30),M.push(t+34);for(a=0;a<M.length;a++){if(W(M[a]))this.legalMove(j(t,M[a]))&&r.push(M[a])}break;case v:(M=[]).push(t-33),M.push(t-31),M.push(t-18),M.push(t+14),M.push(t-14),M.push(t+18),M.push(t+31),M.push(t+33);for(a=0;a<M.length;a++){if(W(M[a]))this.legalMove(j(t,M[a]))&&r.push(M[a])}break;case k:case d:for(var u=1,n=!1;W(t-u);){var c=this.squares[t-u];if(0!=c){if(0!=(c&i)){if(e-i==d||n)break;n=!0}else if(0!=(c&h)){if(e-i==d){r.push(t-u);break}if(n){r.push(t-u);break}n=!0}}else n||r.push(t-u);u++}var o=1;for(n=!1;W(t+o);){var b=this.squares[t+o];if(0!=b){if(0!=(b&i)){if(e-i==d||n)break;n=!0}else if(0!=(b&h)){if(e-i==d){r.push(t+o);break}if(n){r.push(t+o);break}n=!0}}else n||r.push(t+o);o++}var L=16;for(n=!1;W(t-L);){var P=this.squares[t-L];if(0!=P){if(0!=(P&i)){if(e-i==d||n)break;n=!0}else if(0!=(P&h)){if(e-i==d){r.push(t-L);break}if(n){r.push(t-L);break}n=!0}}else n||r.push(t-L);L+=16}var g=16;for(n=!1;W(t+g);){var q=this.squares[t+g];if(0!=q){if(0!=(q&i)){if(e-i==d||n)break;n=!0}else if(0!=(q&h)){if(e-i==d){r.push(t+g);break}if(n){r.push(t+g);break}n=!0}}else n||r.push(t+g);g+=16}break;case y:var M;for((M=[]).push(t-16),M.push(t-1),M.push(t+16),M.push(t+1),a=0;a<M.length;a++){if(W(M[a]))this.legalMove(j(t,M[a]))&&r.push(M[a])}break;default:return r}return r}legalMove(s){var t=O(s),e=this.squares[t],r=Z(this.sdPlayer);if(0==(e&r))return!1;var i=U(s),h=this.squares[i];if(0!=(h&r))return!1;switch(e-r){case f:return I(i)&&function(s,t){return 1==B[t-s+256]}(t,i);case l:return I(i)&&function(s,t){return 2==B[t-s+256]}(t,i);case p:return function(s,t){return 0==(128&(s^t))}(t,i)&&function(s,t){return 3==B[t-s+256]}(t,i)&&0==this.squares[function(s,t){return s+t>>1}(t,i)];case v:return(u=function(s,t){return s+w[t-s+256]}(t,i))!=t&&0==this.squares[u];case d:case k:var a;if(function(s,t){return 0==(240&(s^t))}(t,i))a=i<t?-1:1;else{if(!function(s,t){return 0==(15&(s^t))}(t,i))return!1;a=i<t?-16:16}for(var u=t+a;u!=i&&0==this.squares[u];)u+=a;if(u==i)return 0==h||e-r==d;if(0==h||e-r!=k)return!1;for(u+=a;u!=i&&0==this.squares[u];)u+=a;return u==i;case y:return!(!H(i,this.sdPlayer)||i!=t-1&&i!=t+1)||i==N(t,this.sdPlayer);default:return!1}}checked(){for(var s=Z(this.sdPlayer),t=E(this.sdPlayer),e=0;e<256;e++)if(this.squares[e]==s+f){if(this.squares[N(e,this.sdPlayer)]==t+y)return!0;for(var r=-1;r<=1;r+=2)if(this.squares[e+r]==t+y)return!0;for(var i=0;i<4;i++)if(0==this.squares[e+S[i]])for(var h=0;h<2;h++){if((u=this.squares[e+C[i][h]])==t+v)return!0}for(i=0;i<4;i++){for(var a=e+(r=z[i]);W(a);){if((u=this.squares[a])>0){if(u==t+d||u==t+f)return!0;break}a+=r}for(a+=r;W(a);){var u;if((u=this.squares[a])>0){if(u==t+k)return!0;break}a+=r}}return!1}return!1}isMate(){for(var s=this.generateMoves(null),t=0;t<s.length;t++)if(this.makeMove(s[t]))return this.undoMakeMove(),!1;return!0}mateValue(){return this.distance-h}banValue(){return this.distance-a}drawValue(){return 0==(1&this.distance)?-c:c}evaluate(){var s=(0==this.sdPlayer?this.vlWhite-this.vlBlack:this.vlBlack-this.vlWhite)+o;return s==this.drawValue()?s-1:s}nullOkay(){return(0==this.sdPlayer?this.vlWhite:this.vlBlack)>n}nullSafe(){return(0==this.sdPlayer?this.vlWhite:this.vlBlack)>u}inCheck(){return this.chkList[this.chkList.length-1]}captured(){return this.pcList[this.pcList.length-1]>0}repValue(s){var t=(0==(2&s)?0:this.banValue())+(0==(4&s)?0:-this.banValue());return 0==t?this.drawValue():t}repStatus(s){for(var t=s,e=!1,r=!0,i=!0,h=this.mvList.length-1;this.mvList[h]>0&&0==this.pcList[h];){if(e){if(r=r&&this.chkList[h],this.keyList[h]==this.zobristKey&&0==--t)return 1+(r?2:0)+(i?4:0)}else i=i&&this.chkList[h];e=!e,h--}return 0}mirror(){var t=new s;t.clearBoard();for(var e=0;e<256;e++){var r=this.squares[e];r>0&&t.addPiece(_(e),r,null)}return 1==this.sdPlayer&&t.changeSide(),t}bookMove(){return 0}historyIndex(s){return(this.squares[O(s)]-8<<8)+U(s)}})||r);var h=1e4,a=h-100,u=400,n=200,c=20,o=3,f=0,l=1,p=2,v=3,d=4,k=5,y=6,b=3,L=12,P=3,g=11,q=!1,M=!0,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-16,0,-16,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,16,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],z=[-16,-1,1,16],S=[-17,-15,15,17],A=[[-33,-31],[-18,14],[-14,18],[31,33]],C=[[-33,-18],[-31,-14],[14,31],[18,33]],K=[50,10,10,30,40,30,20,0],V=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,9,11,13,11,9,9,9,0,0,0,0,0,0,0,19,24,34,42,44,42,34,24,19,0,0,0,0,0,0,0,19,24,32,37,37,37,32,24,19,0,0,0,0,0,0,0,19,23,27,29,30,29,27,23,19,0,0,0,0,0,0,0,14,18,20,27,29,27,20,18,14,0,0,0,0,0,0,0,7,0,13,0,16,0,13,0,7,0,0,0,0,0,0,0,7,0,7,0,15,0,7,0,7,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,11,15,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,20,23,20,0,0,18,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,20,20,0,20,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,20,23,20,0,0,18,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,20,20,0,20,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,90,90,90,96,90,96,90,90,90,0,0,0,0,0,0,0,90,96,103,97,94,97,103,96,90,0,0,0,0,0,0,0,92,98,99,103,99,103,99,98,92,0,0,0,0,0,0,0,93,108,100,107,100,107,100,108,93,0,0,0,0,0,0,0,90,100,99,103,104,103,99,100,90,0,0,0,0,0,0,0,90,98,101,102,103,102,101,98,90,0,0,0,0,0,0,0,92,94,98,95,98,95,98,94,92,0,0,0,0,0,0,0,93,92,94,95,92,95,94,92,93,0,0,0,0,0,0,0,85,90,92,93,78,93,92,90,85,0,0,0,0,0,0,0,88,85,90,88,90,88,90,85,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,206,208,207,213,214,213,207,208,206,0,0,0,0,0,0,0,206,212,209,216,233,216,209,212,206,0,0,0,0,0,0,0,206,208,207,214,216,214,207,208,206,0,0,0,0,0,0,0,206,213,213,216,216,216,213,213,206,0,0,0,0,0,0,0,208,211,211,214,215,214,211,211,208,0,0,0,0,0,0,0,208,212,212,214,215,214,212,212,208,0,0,0,0,0,0,0,204,209,204,212,214,212,204,209,204,0,0,0,0,0,0,0,198,208,204,212,212,212,204,208,198,0,0,0,0,0,0,0,200,208,206,212,200,212,206,208,200,0,0,0,0,0,0,0,194,206,204,212,200,212,204,206,194,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,100,96,91,90,91,96,100,100,0,0,0,0,0,0,0,98,98,96,92,89,92,96,98,98,0,0,0,0,0,0,0,97,97,96,91,92,91,96,97,97,0,0,0,0,0,0,0,96,99,99,98,100,98,99,99,96,0,0,0,0,0,0,0,96,96,96,96,100,96,96,96,96,0,0,0,0,0,0,0,95,96,99,96,100,96,99,96,95,0,0,0,0,0,0,0,96,96,96,96,96,96,96,96,96,0,0,0,0,0,0,0,97,96,100,99,101,99,100,96,97,0,0,0,0,0,0,0,96,97,98,98,98,98,98,97,96,0,0,0,0,0,0,0,96,96,97,99,99,99,97,96,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,9,11,13,11,9,9,9,0,0,0,0,0,0,0,19,24,34,42,44,42,34,24,19,0,0,0,0,0,0,0,19,24,32,37,37,37,32,24,19,0,0,0,0,0,0,0,19,23,27,29,30,29,27,23,19,0,0,0,0,0,0,0,14,18,20,27,29,27,20,18,14,0,0,0,0,0,0,0,7,0,13,0,16,0,13,0,7,0,0,0,0,0,0,0,7,0,7,0,15,0,7,0,7,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,11,15,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];function W(s){return 0!=x[s]}function I(s){return 0!=m[s]}function F(s,t){return s+(t<<4)}function R(s){return 254-s}function _(s){return F(14-function(s){return 15&s}(s),function(s){return s>>4}(s))}function N(s,t){return s-16+(t<<5)}function H(s,t){return(128&s)==t<<7}function Z(s){return 8+(s<<3)}function E(s){return 16-(s<<3)}function O(s){return 255&s}function U(s){return s>>8}function j(s,t){return s+(t<<8)}function D(s,t){return K[7&s]-t}function G(s){return String.fromCharCode(s)}function J(s){return s.charCodeAt(0)}var Q,T,X="        KABNRCP kabnrcp ";function Y(s){switch(s){case"K":return f;case"A":return l;case"B":case"E":return p;case"H":case"N":return v;case"R":return d;case"C":return k;case"P":return y;default:return-1}}function $(s){this.x=this.y=0,this.state=[];for(var t=0;t<256;t++)this.state.push(t);var e=0;for(t=0;t<256;t++)e=e+this.state[t]+s[t%s.length]&255,this.swap(t,e)}$.prototype.swap=function(s,t){var e=this.state[s];this.state[s]=this.state[t],this.state[t]=e},$.prototype.nextByte=function(){this.x=this.x+1&255,this.y=this.y+this.state[this.x]&255,this.swap(this.x,this.y);var s=this.state[this.x]+this.state[this.y]&255;return this.state[s]},$.prototype.nextLong=function(){return this.nextByte()+(this.nextByte()<<8)+(this.nextByte()<<16)+(this.nextByte()<<24&4294967295)};var ss=[],ts=[],es=new $([0]);Q=es.nextLong(),es.nextLong(),T=es.nextLong();for(var rs=0;rs<14;rs++){for(var is=[],hs=[],as=0;as<256;as++)is.push(es.nextLong()),es.nextLong(),hs.push(es.nextLong());ss.push(is),ts.push(hs)}t._RF.pop()}}}));

System.register("chunks:///_virtual/ChessRBSel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts","./GBaseUI.ts","./GBoardChess.ts"],(function(t){"use strict";var e,i,n,s,r,c,o,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t._decorator},function(t){c=t.UIButton},function(t){o=t.default},function(t){l=t.default}],execute:function(){var a,u,d,b,h,p,f;n._RF.push({},"4178bWGM/tHeqkZXJYVID77","ChessRBSel",void 0);const{ccclass:B,property:I}=r;t("default",(a=I(s),u=I(s),B(((f=class t extends o{constructor(...t){super(...t),i(this,"btred",h,this),i(this,"btblack",p,this)}getIndex(){}start(){c.BindClick(this.btred,(()=>{t.selIndex=0,this.node.active=!1,l.instance.initChessBoard()}),this),c.BindClick(this.btblack,(()=>{t.selIndex=1,this.node.active=!1,l.instance.initChessBoard()}),this)}}).selIndex=0,h=e((b=f).prototype,"btred",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=e(b.prototype,"btblack",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=b))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/ChessThink.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./fill.ts","./fnt_count.ts","./GameMng.ts","./ResMng.ts","./UIButton.ts","./UIManager.ts","./UITips.ts","./emote.ts","./msgManager.ts","./Tools.ts","./timeCountData.ts","./ChessMng.ts","./UIDiffSel.ts","./waitJifen.ts","./wait_tongqian.ts","./GBoardChess.ts"],(function(t){"use strict";var e,i,a,n,s,_,o,r,l,h,u,m,c,v,f,p,d,b,g,y,T,w,C,E,D,k,I,S,R,z,A,M,N,G;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,n=t.Node,s=t._decorator,_=t.Component,o=t.Tween,r=t.tween,l=t.Label,h=t.director,u=t.Director,m=t.UITransform,c=t.Animation,v=t.Vec3,f=t.Sprite},function(t){p=t.ClientEvent},function(t){d=t.Constant},function(t){b=t.fill},function(t){g=t.fnt_count},function(t){y=t.GameMng},function(t){T=t.ResMng},function(t){w=t.UIButton},function(t){C=t.UIManager},function(t){E=t.default},function(t){D=t.emote},function(t){k=t.msgManager},function(t){I=t.Tools},function(t){S=t.timeCountData},function(t){R=t.default,z=t.ChessType},function(t){A=t.default},function(t){M=t.waitJifen},function(t){N=t.wait_tongqian},function(t){G=t.default}],execute:function(){var U,H,V,q,L,O,P,F,B,J,W,x,Y,X,Z,j,K,Q,$,tt,et,it,at,nt,st,_t,ot,rt,lt,ht,ut,mt,ct,vt,ft,pt,dt,bt,gt,yt,Tt,wt,Ct,Et,Dt,kt,It,St,Rt,zt,At,Mt,Nt,Gt,Ut,Ht,Vt,qt,Lt,Ot,Pt,Ft,Bt,Jt,Wt,xt,Yt,Xt,Zt,jt,Kt,Qt,$t,te,ee,ie,ae,ne,se,_e,oe,re,le;a._RF.push({},"161e1dAGI5LvZx4TUOR1khL","ChessThink",void 0);const{ccclass:he,property:ue}=s;t("ChessThink",(U=he("ChessThink"),H=ue(n),V=ue(n),q=ue(n),L=ue(n),O=ue(n),P=ue(n),F=ue(n),B=ue(n),J=ue(n),W=ue(n),x=ue(n),Y=ue(n),X=ue(n),Z=ue(n),j=ue(n),K=ue(n),Q=ue(n),$=ue(n),tt=ue(n),et=ue(n),it=ue(n),at=ue(n),nt=ue(n),st=ue(n),_t=ue(n),ot=ue(n),rt=ue(n),lt=ue(n),ht=ue(n),ut=ue(n),mt=ue(n),ct=ue(n),vt=ue(n),ft=ue(n),pt=ue(n),dt=ue(n),bt=ue(n),gt=ue(n),yt=ue(n),Tt=ue(n),U((Et=e((Ct=class extends _{constructor(...t){super(...t),i(this,"self_head",Et,this),i(this,"self_think",Dt,this),i(this,"self_think_bai",kt,this),i(this,"self_name",It,this),i(this,"self_name_node",St,this),i(this,"self_allTime",Rt,this),i(this,"self_curCountTime",zt,this),i(this,"self_time_node",At,this),i(this,"self_fnt_count",Mt,this),i(this,"self_emote",Nt,this),i(this,"self_head_btn",Gt,this),i(this,"rival_head_btn",Ut,this),i(this,"rival_emote",Ht,this),i(this,"self_chat",Vt,this),i(this,"rival_chat",qt,this),i(this,"rival_head",Lt,this),i(this,"rival_think",Ot,this),i(this,"rival_think_bai",Pt,this),i(this,"rival_name",Ft,this),i(this,"rival_name_node",Bt,this),i(this,"rival_allTime",Jt,this),i(this,"rival_curCountTime",Wt,this),i(this,"rival_time_node",xt,this),i(this,"rival_ready_status_lab",Yt,this),i(this,"btn_kick",Xt,this),i(this,"rival_offline",Zt,this),i(this,"rival_fnt_count",jt,this),i(this,"sf_rival_offline",Kt,this),i(this,"rival_ready",Qt,this),i(this,"ti_rival",$t,this),i(this,"rival_dumiao_node",te,this),i(this,"rival_dumiao_lab",ee,this),i(this,"self_dumiao_node",ie,this),i(this,"self_dumiao_lab",ae,this),i(this,"rival_tongqian_lab",ne,this),i(this,"self_tongqian_lab",se,this),i(this,"rival_tongqian_icon",_e,this),i(this,"self_tongqian_icon",oe,this),this.isThink=!1,this.isPause=!1,this.self_total_time=0,this.self_every_step_time=0,this.rival_total_time=0,this.rival_every_step_time=0,i(this,"self_chat_font_node",re,this),i(this,"rival_chat_font_node",le,this)}start(){w.BindClick(this.btn_kick,this.kickRival,this),w.BindClick(this.self_head_btn,(()=>{C.addUserInfoViewPrefab(y._userData)}),this),w.BindClick(this.rival_head_btn,(()=>{null!=y._userData.room&&null!=y._userData.room.rival&&null!=y._userData.room.rival&&C.addUserInfoViewPrefab(y._userData.room.rival)}),this),p.on(d.EVENT_TYPE.MSG_JOIN_ROOM,this.onJoinRoom,this),p.on(d.UI_EVENT.UI_MSG_SHOW_RIVAL_CHAT,this.showRivalChat,this),p.on(d.UI_EVENT.UI_MSG_SHOW_SELF_CHAT,this.showSelfChat,this),p.on(d.UI_EVENT.UI_MSG_SHOW_SELF_EMOTE,this.showSelfEmote,this),p.on(d.UI_EVENT.UI_MSG_SHOW_RIVAL_EMOTE,this.showRivalEmote,this),p.on(d.EVENT_TYPE.MSG_YUE_ZHAN_TONG_ZHI,this.yue_zhan_tong_zhi,this),p.on(d.EVENT_TYPE.MSG_RECV_CHAT,this.msg_recv_chat,this),p.on(d.EVENT_TYPE.MSG_SEND_CHAT,this.msg_send_chat,this)}onDestroy(){p.off(d.EVENT_TYPE.MSG_JOIN_ROOM,this.onJoinRoom,this),p.off(d.UI_EVENT.UI_MSG_SHOW_RIVAL_CHAT,this.showRivalChat,this),p.off(d.UI_EVENT.UI_MSG_SHOW_SELF_CHAT,this.showSelfChat,this),p.off(d.UI_EVENT.UI_MSG_SHOW_SELF_EMOTE,this.showSelfEmote,this),p.off(d.UI_EVENT.UI_MSG_SHOW_RIVAL_EMOTE,this.showRivalEmote,this),p.off(d.EVENT_TYPE.MSG_YUE_ZHAN_TONG_ZHI,this.yue_zhan_tong_zhi,this),p.off(d.EVENT_TYPE.MSG_RECV_CHAT,this.msg_recv_chat,this),p.off(d.EVENT_TYPE.MSG_SEND_CHAT,this.msg_send_chat,this),this.unschedule(this.updateTime)}msg_recv_chat(t){if(console.log("msg_recv_chat",t),"0"!=t.chat_id){let e=parseInt(t.chat_id);e<=d.CHAT_LIST_TEXT.length?this.showRivalChat(d.CHAT_LIST_TEXT[e-1]):this.showRivalEmote(t.chat_id+"",e-d.CHAT_LIST_TEXT.length-1)}else this.showRivalChat(t.chat_text)}msg_send_chat(t){if("0"!=t.chat_id){let e=parseInt(t.chat_id);e<=d.CHAT_LIST_TEXT.length?this.showSelfChat(d.CHAT_LIST_TEXT[e-1]):this.showSelfEmote(t.chat_id+"",e-d.CHAT_LIST_TEXT.length-1)}else this.showSelfChat(t.chat_text)}yue_zhan_tong_zhi(t){1===t.status?E.show("对方同意了你的约战请求！"):E.show("对方拒绝了你的约战请求！")}showSelfEmote(t,e){this.self_emote.active=!0,this.self_emote.getComponent(D).show(t,e),o.stopAllByTarget(this.self_emote),r(this.self_emote).delay(2).call((()=>{this.self_emote.active=!1})).start()}showRivalEmote(t,e){this.rival_emote.active=!0,this.rival_emote.getComponent(D).show(t,e),o.stopAllByTarget(this.rival_emote),r(this.rival_emote).delay(2).call((()=>{this.rival_emote.active=!1})).start()}showSelfChat(t){this.self_chat.active=!0,y.add_chat_history(y._userData.user_name+": "+t),this.self_chat_font_node.getComponent(l).string=t;let e=this,i=e.self_chat.getChildByName("lab_self_chat_text");h.once(u.EVENT_AFTER_DRAW,(function(){let a=e.self_chat_font_node.getComponent(m).width;console.log("chat_str==",a),a<600?(i.getComponent(m).width=a,e.self_chat.getComponent(m).width=a+100):(i.getComponent(m).width=500,e.self_chat.getComponent(m).width=600),i.getComponent(l).string=t,r(e.self_chat).delay(2).call((()=>{e.self_chat.active=!1})).start()}))}showRivalChat(t){this.rival_chat.active=!0,null!=y._userData.room.rival?y.add_chat_history(y._userData.room.rival.user_name+": "+t):y.add_chat_history("对手10001: "+t),this.rival_chat_font_node.getComponent(l).string=t;let e=this,i=e.rival_chat.getChildByName("lab_rival_chat_text");h.once(u.EVENT_AFTER_DRAW,(function(){let a=e.rival_chat_font_node.getComponent(m).width;console.log("chat_str==",a),a<600?(e.rival_chat.getComponent(m).width=a+100,i.getComponent(m).width=a):(i.getComponent(m).width=500,e.rival_chat.getComponent(m).width=600),i.getComponent(l).string=t,r(e.rival_chat).delay(2).call((()=>{e.rival_chat.active=!1})).start()}))}startThink(t,e){var i=new S;t?(null!=y._userData.room.time_count_data&&null!=y._userData.room.time_count_data?(i.self_total_time=y._userData.room.time_count_data.self_total_time,i.self_every_step_time=i.self_total_time>y._userData.room.time_count_data.self_every_step_time?y._userData.room.everysteptime:y._userData.room.time_count_data.self_every_step_time,i.rival_total_time=y._userData.room.time_count_data.rival_total_time,i.rival_every_step_time=i.rival_total_time>y._userData.room.time_count_data.rival_every_step_time?y._userData.room.everysteptime:y._userData.room.time_count_data.rival_every_step_time):(i.self_total_time=y._userData.room.totaltime,i.self_every_step_time=y._userData.room.everysteptime,i.rival_total_time=y._userData.room.totaltime,i.rival_every_step_time=y._userData.room.everysteptime),e&&(this.isPause=!1,i=y._userData.room.time_count_data)):i=y._userData.room.time_count_data,this.self_total_time=i.self_total_time,this.self_every_step_time=i.self_every_step_time,this.rival_total_time=i.rival_total_time,this.rival_every_step_time=i.rival_every_step_time,e&&this.updateTimeLab(),this.isThink||(this.isThink=!0,this.isPause=!1,this.unschedule(this.updateTime),this.schedule(this.updateTime,1),this.self_fnt_count.active=!1,this.rival_fnt_count.active=!1,this.self_time_node.active=!0,this.rival_time_node.active=!0,this.updateTime())}stopThink(){this.isThink=!1,this.isPause=!0,this.unschedule(this.updateTime),this.self_time_node.active=!1,this.rival_time_node.active=!1,this.self_fnt_count.active=!1,this.rival_fnt_count.active=!1,this.stopAni()}stopAni(){this.self_think.getComponent(b).stopAni(),this.self_think_bai.getComponent(b).stopAni(),this.rival_think.getComponent(b).stopAni(),this.rival_think_bai.getComponent(b).stopAni()}updateTime(){y._userData.room&&!this.isPause&&G.instance.isStartGame&&y._userData.room.time_count_data&&(this.updateTimeLab(),1==G.instance.who_round?(this.self_think.active=!0,this.self_think_bai.active=!0,this.rival_think.active=!1,this.rival_think_bai.active=!1,this.self_total_time-=1,this.self_every_step_time-=1,this.self_total_time<0&&(this.self_total_time=0),this.self_every_step_time<0&&(this.self_every_step_time=0)):(this.self_think.active=!1,this.self_think_bai.active=!1,this.rival_think.active=!0,this.rival_think_bai.active=!0,this.rival_total_time-=1,this.rival_every_step_time-=1,this.rival_total_time<0&&(this.rival_total_time=0),this.rival_every_step_time<0&&(this.rival_every_step_time=0)))}updateLab(){}updateTimeLab(){this.self_allTime.getComponent(l).string=I.ms_time(this.self_total_time),this.rival_allTime.getComponent(l).string=I.ms_time(this.rival_total_time),this.self_curCountTime.getComponent(l).string=I.ms_time(this.self_every_step_time),this.rival_curCountTime.getComponent(l).string=I.ms_time(this.rival_every_step_time),this.self_dumiao_lab.getComponent(l).string=I.ms_time(this.self_every_step_time),this.rival_dumiao_lab.getComponent(l).string=I.ms_time(this.rival_every_step_time);var t=y._userData.room.time_count_data.self_countdown>0,e=y._userData.room.time_count_data.rival_countdown>0;1==G.instance.who_round?t&&(this.self_dumiao_node.active=!0,this.self_time_node.active=!1):e&&(this.rival_dumiao_node.active=!0,this.rival_time_node.active=!1);let i=y._userData.room.everysteptime;(R.Instance.isJiFenRoom()||R.Instance.isTongqianRoom())&&G.instance.rund_number<6&&(i=30);let a=i,n=i;t&&(a=y._userData.room.countdown),e&&(n=y._userData.room.countdown),1==G.instance.who_round?(this.self_think_bai.getComponent(b).startAni(this.self_every_step_time+.03*a,a),this.self_think.getComponent(b).startAni(this.self_every_step_time,a)):(this.rival_think_bai.getComponent(b).startAni(this.rival_every_step_time+.03*n,n),this.rival_think.getComponent(b).startAni(this.rival_every_step_time,n)),null!=y._userData.room.time_count_data&&((y._userData.room.time_count_data.self_every_step_time<=0||y._userData.room.time_count_data.rival_every_step_time<=0)&&(this.isPause=!0,this.stopAni()),y._userData.room.time_count_data.self_every_step_time>10||0==G.instance.who_round?(this.self_name.active=!0,this.self_name_node.active=!0,t?this.self_dumiao_node.active=!0:this.self_time_node.active=!0,this.self_fnt_count.active=!1):(this.self_time_node.active=!1,this.self_dumiao_node.active=!1,this.self_name.active=!1,this.self_name_node.active=!1,this.self_fnt_count.active=!0,this.self_fnt_count.getComponent(g).show(this.self_every_step_time)),y._userData.room.time_count_data.rival_every_step_time>10||1==G.instance.who_round?(this.rival_name.active=!0,this.rival_name_node.active=!0,this.rival_name_node.active=!0,e?this.rival_dumiao_node.active=!0:(this.rival_dumiao_node.active=!1,this.rival_time_node.active=!0),this.rival_fnt_count.active=!1):(this.rival_dumiao_node.active=!1,this.rival_name.active=!1,this.rival_name_node.active=!1,this.rival_time_node.active=!1,this.rival_fnt_count.active=!0,this.rival_fnt_count.getComponent(g).show(this.rival_every_step_time)))}kickRival(){this.ti_rival.active=!0,this.scheduleOnce((()=>{k.kickRival(),this.ti_rival.getComponent(c).stop(),this.rival_head.active=!1,this.rival_head.position=new v(0,0,0),this.rival_head.angle=0}),.8),this.btn_kick.active=!1,this.rival_name.active=!1,this.rival_name_node.active=!1,this.rival_time_node.active=!1,this.ti_rival.getComponent(c).play()}onJoinRoom(t){p.dispatchEvent(d.UI_EVENT.UI_MSG_ADD_FIREND_ROOM),y.updateRoomData(t),this.StatusShow(),C.removeLoadingLayer(),console.log("onJoinRoom",t)}setData(){}round_time_count(){y._userData.room.time_count_data}StatusShow(){if(G.instance.isStartGame&&R.Instance.chesstype!=z.renjiboyi||(this.self_time_node.active=!1,this.rival_time_node.active=!1,this.self_think.active=!1,this.rival_think.active=!1,this.rival_offline.active=!1,this.btn_kick.active=!1,this.rival_ready_status_lab.active=!1,this.sf_rival_offline.active=!1,this.rival_ready.active=!1,this.self_dumiao_node.active=!1,this.self_tongqian_icon.active=!1,this.self_tongqian_lab.active=!1,this.rival_tongqian_icon.active=!1,this.rival_tongqian_lab.active=!1),R.Instance.chesstype==z.renjiboyi)this.rival_head.active=!0,this.rival_name.getComponent(l).string=A.lvArr[A.selectIndex],T.LoadAvatar(I.getAvatarByIndex(A.selectIndex+1),this.rival_head.getComponent(f));else if(null!=y._userData.room){if(R.Instance.isTongqianRoom()&&(this.self_tongqian_icon.active=!0,this.self_tongqian_lab.active=!0),console.log("GameMng._userData.room.wait_rival_status",y._userData.room.wait_rival_startGame_status),null===y._userData.room.rival||void 0===y._userData.room.rival)this.rival_head.active=!1,this.rival_name.active=!1,this.rival_name_node.active=!1,this.rival_head.getComponent(f).spriteFrame=null,(R.Instance.isJiFenRoom()||R.Instance.isTongqianRoom())&&1===y._userData.room.wait_rival_startGame_status&&(R.Instance.isJiFenRoom()?G.instance.wait_jifen.getComponent(M).recvReady(y._userData.room):R.Instance.isTongqianRoom()&&G.instance.wait_tongqian.getComponent(N).recvReady(y._userData.room),this.rival_ready_status_lab.active=!0,this.rival_ready_status_lab.getComponent(l).string="正在匹配...");else{this.rival_head.active=!0,this.rival_name.active=!0,this.rival_name_node.active=!0,R.Instance.isTongqianRoom()&&(this.rival_tongqian_icon.active=!0,this.rival_tongqian_lab.active=!0,this.rival_tongqian_lab.getComponent(l).string=I.getTongBiNumber(y._userData.room.rival.tong_bi)),""!=y._userData.room.rival.user_avatar&&I.loadWeiXinHead(y._userData.room.rival.user_avatar,this.rival_head.getComponent(f));let t=y._userData.room.rival.user_name;switch(R.Instance.isJiFenRoom()&&(t="["+y._userData.room.rival.integral_level_name+"] "+t),this.rival_name.getComponent(l).string=t,y._userData.room.wait_rival_startGame_status){case 0:case 1:this.stopThink(),this.rival_ready.active=!1;break;case 2:this.rival_ready.active=!0;break;case 3:this.rival_ready.active=!1}y._userData.room.ownerid===y._userData.userid&&3!=y._userData.room.wait_rival_startGame_status&&(this.btn_kick.active=!0)}null!=y._userData.room.rival&&(this.rival_offline.active=!1,1==y._userData.room.rivalIsOffline?this.sf_rival_offline.active=!0:this.sf_rival_offline.active=!1)}let t=y._userData.user_name;R.Instance.isJiFenRoom()&&(t="["+y._userData.integral_level_name+"] "+t),R.Instance.isTongqianRoom()&&(this.self_tongqian_lab.getComponent(l).string=I.getTongBiNumber(y._userData.bag.tong_bi)),this.self_name.getComponent(l).string=t,null==this.self_head.getComponent(f).spriteFrame&&""!=y._userData.user_avatar&&I.loadWeiXinHead(y._userData.user_avatar,this.self_head.getComponent(f))}update(t){}}).prototype,"self_head",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Dt=e(Ct.prototype,"self_think",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),kt=e(Ct.prototype,"self_think_bai",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),It=e(Ct.prototype,"self_name",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),St=e(Ct.prototype,"self_name_node",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Rt=e(Ct.prototype,"self_allTime",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),zt=e(Ct.prototype,"self_curCountTime",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),At=e(Ct.prototype,"self_time_node",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Mt=e(Ct.prototype,"self_fnt_count",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Nt=e(Ct.prototype,"self_emote",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Gt=e(Ct.prototype,"self_head_btn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ut=e(Ct.prototype,"rival_head_btn",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ht=e(Ct.prototype,"rival_emote",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Vt=e(Ct.prototype,"self_chat",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qt=e(Ct.prototype,"rival_chat",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Lt=e(Ct.prototype,"rival_head",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ot=e(Ct.prototype,"rival_think",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pt=e(Ct.prototype,"rival_think_bai",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ft=e(Ct.prototype,"rival_name",[tt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Bt=e(Ct.prototype,"rival_name_node",[et],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Jt=e(Ct.prototype,"rival_allTime",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Wt=e(Ct.prototype,"rival_curCountTime",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),xt=e(Ct.prototype,"rival_time_node",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Yt=e(Ct.prototype,"rival_ready_status_lab",[st],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xt=e(Ct.prototype,"btn_kick",[_t],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Zt=e(Ct.prototype,"rival_offline",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),jt=e(Ct.prototype,"rival_fnt_count",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Kt=e(Ct.prototype,"sf_rival_offline",[lt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qt=e(Ct.prototype,"rival_ready",[ht],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$t=e(Ct.prototype,"ti_rival",[ut],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=e(Ct.prototype,"rival_dumiao_node",[mt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=e(Ct.prototype,"rival_dumiao_lab",[ct],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=e(Ct.prototype,"self_dumiao_node",[vt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=e(Ct.prototype,"self_dumiao_lab",[ft],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=e(Ct.prototype,"rival_tongqian_lab",[pt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=e(Ct.prototype,"self_tongqian_lab",[dt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_e=e(Ct.prototype,"rival_tongqian_icon",[bt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),oe=e(Ct.prototype,"self_tongqian_icon",[gt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=e(Ct.prototype,"self_chat_font_node",[yt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=e(Ct.prototype,"rival_chat_font_node",[Tt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),wt=Ct))||wt));a._RF.pop()}}}));

System.register("chunks:///_virtual/clientEvent.ts",["cc"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.cclegacy,r=t._decorator}],execute:function(){var n,a;e._RF.push({},"c9cf231EAtI07Ey/8oTcdyn","clientEvent",void 0);const{ccclass:c,property:s}=r;t("ClientEvent",c("ClientEvent")(((a=class t{static on(e,r,n){var a={handler:r,target:n},c=t._handlers[e];c||(c=[],t._handlers[e]=c);for(var s=0;s<c.length;s++)if(!c[s])return c[s]=a,s;return c.push(a),c.length}static off(e,r,n){var a=t._handlers[e];if(a)for(var c=0;c<a.length;c++){var s=a[c];if(s.handler===r&&(!n||n===s.target)){a.splice(c,1);break}}}static dispatchEvent(e,...r){var n,a=t._handlers[e],c=[];for(n=1;n<arguments.length;n++)c.push(arguments[n]);if(a)for(n=0;n<a.length;n++){var s=a[n];s.handler&&s.handler.apply(s.target,c)}}})._handlers={},n=a))||n);e._RF.pop()}}}));

System.register("chunks:///_virtual/constant.ts",["cc"],(function(_){"use strict";var i;return{setters:[function(_){i=_.cclegacy}],execute:function(){let n,o,a,I,S,E,e,u,G,t,M,A,T,U,h;_({item_type:void 0,matching_5_10_20_type:void 0,privacy_select:void 0,privacy_type:void 0,quit_room_type:void 0,robot_ai_level:void 0,room_rival_type:void 0,room_type:void 0,shop_item_type:void 0,shop_type:void 0,xiaoxi_haoyou_status_type:void 0,xiaoxi_item_type:void 0,yuezhan_jieguo:void 0,yuezhan_room:void 0,zhuang_ban_type:void 0}),i._RF.push({},"2bccbaJtlVA76ZO/ljS2jlV","constant",void 0),function(_){_[_.yue_zhan=0]="yue_zhan",_[_.liu_yan=1]="liu_yan",_[_.zhan_ji=2]="zhan_ji"}(n||(n=_("privacy_type",{}))),function(_){_[_.tong_yi=0]="tong_yi",_[_.ju_jue=1]="ju_jue"}(o||(o=_("yuezhan_jieguo",{}))),function(_){_[_._10_fen=0]="_10_fen",_[_._20_fen=1]="_20_fen"}(a||(a=_("yuezhan_room",{}))),function(_){_[_.play=0]="play",_[_.robot=1]="robot"}(I||(I=_("room_rival_type",{}))),function(_){_[_.xiaobai=0]="xiaobai",_[_.chuji=1]="chuji",_[_.gaoshou=2]="gaoshou"}(S||(S=_("robot_ai_level",{}))),function(_){_[_.zheng_chang_tui_chu_room=0]="zheng_chang_tui_chu_room",_[_.bei_ti_chu_room=1]="bei_ti_chu_room"}(E||(E=_("quit_room_type",{}))),function(_){_[_.suo_you_ren=0]="suo_you_ren",_[_.jin_hao_you=1]="jin_hao_you",_[_.ju_jue=2]="ju_jue"}(e||(e=_("privacy_select",{}))),function(_){_[_.ti_li_ka=0]="ti_li_ka",_[_.fu_huo_ka=1]="fu_huo_ka",_[_.ti_shi_ka=2]="ti_shi_ka",_[_.hui_qi_ka=3]="hui_qi_ka",_[_.fen_xi_ka=4]="fen_xi_ka",_[_.suan_li_ka=5]="suan_li_ka"}(u||(u=_("shop_item_type",{}))),function(_){_[_.dao_ju=0]="dao_ju",_[_.qi_pan=1]="qi_pan",_[_.qi_zi=2]="qi_zi",_[_.tou_xiang_kuang=3]="tou_xiang_kuang",_[_.ji_shi_qi=4]="ji_shi_qi",_[_.qi_pao=5]="qi_pao",_[_.yuan_bao=6]="yuan_bao",_[_.tong_qian=7]="tong_qian",_[_.qi_hun=8]="qi_hun"}(G||(G=_("item_type",{}))),function(_){_[_.qi_pan=0]="qi_pan",_[_.qi_zi=1]="qi_zi",_[_.tou_xiang_kuang=2]="tou_xiang_kuang",_[_.ji_shi_qi=3]="ji_shi_qi",_[_.qi_pao=4]="qi_pao"}(t||(t=_("zhuang_ban_type",{}))),function(_){_[_.dao_ju=0]="dao_ju",_[_.zhuang_ban=1]="zhuang_ban",_[_.huo_bi=2]="huo_bi"}(M||(M=_("shop_type",{}))),function(_){_[_._null=0]="_null",_[_._5=1]="_5",_[_._10=2]="_10",_[_._20=3]="_20"}(A||(A=_("matching_5_10_20_type",{}))),function(_){_[_._null=0]="_null",_[_._jing_dian_hao_you=1]="_jing_dian_hao_you",_[_._mei_miao_die_jia_hao_you=2]="_mei_miao_die_jia_hao_you",_[_._jifen_5=3]="_jifen_5",_[_._jifen_10=4]="_jifen_10",_[_._jifen_20=5]="_jifen_20",_[_._chuji_tongqian=6]="_chuji_tongqian",_[_._zhongji_tongqian=7]="_zhongji_tongqian",_[_._gaoji_tongqian=8]="_gaoji_tongqian"}(T||(T=_("room_type",{}))),function(_){_[_.haoyou=0]="haoyou",_[_.shipin=1]="shipin",_[_.canju=2]="canju"}(U||(U=_("xiaoxi_item_type",{}))),function(_){_[_._null=0]="_null",_[_.xian_guang=1]="xian_guang",_[_.dui_zhan=2]="dui_zhan",_[_.deng_dai_kai_ju=3]="deng_dai_kai_ju"}(h||(h=_("xiaoxi_haoyou_status_type",{})));class N{}_("Constant",N),N.GAME_NAME="archero",N.GAME_VERSION="v2.1.2",N.GAME_FRAME=60,N.GAME_INIT_FRAME=60,N.GAME_NAME_CH="幽灵射手",N.RECV_HEART_BEAT="1",N.RECV_CHEAK_HEART_BEAT="2",N.PAGE_XIAQI="xiaqi",N.PAGE_XUEQI="xueqi",N.PAGE_QIJIE="qijie",N.PAGE_FAXIAN="faxian",N.PAGE_WODE="wode",N.ERROR_CODE={ERROR_TONG_BI_BU_ZU:20026},N.ERROR_MSG={20026:"铜币不足，可观看广告免费获取！"},N.CHAT_LIST_TEXT=["很高兴认识你，请多多指教。","你还在吗？请尽快下棋。","稍等片刻，容我再思考思考。","棋逢对手，将遇良才，痛快，痛快！","再与我对弈一局？","呀！大意失荆州！","宁失一子，不失一先！","哈哈，小卒过河顶大车！","单车难破士象全呀！","观棋不语真君子，落子无悔大丈夫！"],N.EVENT_TYPE={MSG_LOGON:"logon",MSG_CREATE_ROOM:"addroom",MSG_JOIN_ROOM:"joinroom",MSG_USER_JOIN_ROOM:"user_join_room",MSG_READY:"prepareroom",MSG_ROOM_STATUS:"roomstatus",MSG_QUIT_ROOM:"quitroom",MSG_DISMISS_ROOM:"dismiss",MSG_OWN_PLAYCHESS:"own_playchess",MSG_RIVAL_PLAYCHESS:"rival_playchess",MSG_SETTLEMENT:"finish_game",MSG_FINAL_GAME:"final_game",MSG_HE_QI_GAME:"heqi_game",MSG_REN_SHU_GAME:"renshu_game",MSG_KICK_ROOM:"kickroom",MSG_EXTRUSION_LINE:"extrusion_line",MSG_PVP_TIME:"pvp_time",MSG_HEQI_QINGQIU:"qingqiu_heqi_game",MSG_HEQI_JIESHOU:"jieshou_heqi_game",MSG_HEQI_TONGZHI:"tongzhi_heqi_game",MSG_HUIQI_QINGQIU:"qingqiu_huiqi_game",MSG_HUIQI_JIESHOU:"jieshou_huiqi_game",MSG_HUIQI_TONGZHI:"tongzhi_huiqi_game",MSG_START_HUIQI:"start_huiqi",MSG_RELINK:"relink",MSG_HEART_BEAT:"MSG_HEART_BEAT",MSG_MATCHING_5_10_20:"matching_5_10_20",MSG_FIND_MATCHING_5_10_20:"find_matching_5_10_20",MSG_OPEN_MATCHING_5_10_20:"open_matching_5_10_20",MSG_CANCEL_MATCHING_5_10_20:"cancel_matching_5_10_20",MSG_UPDATE_USER_INFO:"update_user_info",ADS_TONG_QIAN:"ad_tongbi",MSG_GET_FIREND_LIST:"get_friend_list",MSG_GET_ONLINE_FIREND_LIST:"get_online_friend_list",MSG_ADD_FIREND:"add_friend",MSG_FA_QI_YUE_ZHAN:"fa_qi_yue_zhan",MSG_JIE_SHOU_YUE_ZHAN:"jie_shou_yue_zhan",MSG_YUE_ZHAN_TONG_ZHI:"yue_zhan_tong_zhi",MSG_ROOM_YUE_ZHAN_TONG_ZHI:"fa_qi_room_yue_zhan",MSG_SEND_CHAT:"send_chat",MSG_RECV_CHAT:"recv_chat"},N.UI_EVENT={UI_MSG_ready:"Ready",UI_MSG_5_10_20_ready:"UI_MSG_5_10_20_ready",UI_MSG_SHOW_FIREND:"UI_MSG_SHOW_FIREND",UI_MSG_SHOW_RENJI:"UI_MSG_SHOW_RENJI",UI_MSG_SHOW_JIFEN:"UI_MSG_SHOW_JIFEN",UI_MSG_SHOW_LOGIN:"UI_MSG_SHOW_LOGIN",UI_MSG_UPDATE_MENU_STATUS:"UI_MSG_UPDATE_MENU_STATUS",UI_MSG_BTN_HEQI:"UI_MSG_BTN_HEQI",UI_MSG_BTN_HUIQI:"UI_MSG_BTN_HUIQI",UI_MSG_BTN_SHOW_CHAT:"UI_MSG_BTN_SHOW_CHAT",UI_MSG_BTN_HIDE_CHAT:"UI_MSG_BTN_HIDE_CHAT",UI_MSG_SHOW_SELF_EMOTE:"UI_MSG_SHOW_SELF_EMOTE",UI_MSG_SHOW_RIVAL_EMOTE:"UI_MSG_SHOW_RIVAL_EMOTE",UI_MSG_SHOW_SELF_CHAT:"UI_MSG_SHOW_SELF_CHAT",UI_MSG_SHOW_RIVAL_CHAT:"UI_MSG_SHOW_RIVAL_CHAT",UI_MSG_UPDATE_PRIVACY:"UI_MSG_UPDATE_PRIVACY",UI_MSG_UPDATE_SELECT_TOUXIANGKUANG:"UI_MSG_UPDATE_SELECT_TOUXIANGKUANG",UI_MSG_UPDATE_SELECT_JISHIQI:"UI_MSG_UPDATE_SELECT_JISHIQI",UI_MSG_UPDATE_SELECT_QIPAO:"UI_MSG_UPDATE_SELECT_QIPAO",UI_MSG_UPDATE_TONG_QIAN:"UI_MSG_UPDATE_TONG_QIAN",UI_MSG_LOGIN_FINISH:"UI_MSG_LOGIN_FINISH",UI_MSG_UPDATE_ONLINE_FIREND_LIST:"UI_MSG_UPDATE_ONLINE_FIREND_LIST",UI_MSG_UPDATE_FIREND_LIST:"UI_MSG_UPDATE_FIREND_LIST",UI_MSG_ADD_FIREND_ROOM:"UI_MSG_ADD_FIREND_ROOM"},N.ADS_EVENT={ADS_MSG_TONG_QIAN:"ADS_MSG_TONG_QIAN"},N.CHECK_PRIVACY=[{tag:"约战邀请",select_list:["所有人可约战","仅好友可约战","拒绝约战"]},{tag:"留言",select_list:["所有人可留言","仅好友可留言","拒绝留言"]},{tag:"象棋-战绩",select_list:["所有人可查看","仅好友可查看","拒绝查看"]}],N.SEVER_INFO={IP:"120.79.128.142",PORT:"9502"},N.LOGIN_TIME=0,i._RF.pop()}}}));

System.register("chunks:///_virtual/createFirendRoom.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts","./roomData.ts"],(function(e){"use strict";var i,t,n,s,o,l,r,u,c,a,h,b,_,d,g,f,m,p,w;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,o=e.SpriteFrame,l=e._decorator,r=e.Color,u=e.Sprite,c=e.Label,a=e.NodeEventType,h=e.Vec3,b=e.tween},function(e){_=e.room_type},function(e){d=e.GameMng},function(e){g=e.default},function(e){f=e.UIButton},function(e){m=e.UIManager},function(e){p=e.msgManager},function(e){w=e.roomData}],execute:function(){var S,C,y,j,M,I,B,z,D,V,J,v,x,F,W,A,k,N,U,L,R,E,H,Q,T,O,P,G,X,q,K,Y,Z,$,ee,ie,te,ne,se,oe,le,re,ue,ce,ae,he,be,_e,de,ge,fe,me,pe,we,Se,Ce,ye,je,Me,Ie,Be,ze,De,Ve,Je,ve,xe;n._RF.push({},"384012Pk/5LDb5dXzPhA7ib","createFirendRoom",void 0);const{ccclass:Fe,property:We}=l;var Ae=["10分钟","45分钟","30分钟","20分钟","15分钟","5分钟","3分钟","2分钟"],ke=[600,2700,1800,1200,900,300,180,120],Ne=["1分钟","5分钟","3分钟","2分钟","30秒"],Ue=[60,300,180,120,30],Le=["10秒","20秒","5秒","3秒"],Re=[10,20,5,3],Ee=["执黑","执红"],He=["0秒","60秒","30秒"],Qe=[0,60,30];e("createFirendRoom",(S=Fe("createFirendRoom"),C=We(s),y=We(o),j=We(o),M=We(o),I=We(o),B=We(s),z=We(s),D=We(s),V=We(s),J=We(s),v=We(s),x=We(s),F=We(s),W=We(s),A=We(s),k=We(s),N=We(s),U=We(s),L=We(s),R=We(s),E=We(s),H=We(s),Q=We(s),T=We(s),O=We(s),P=We(s),G=We(s),X=We(s),q=We(s),K=We(s),Y=We(s),Z=We(s),S((ie=i((ee=class extends g{constructor(...e){super(...e),t(this,"btnClose",ie,this),t(this,"sp_jing_dian",te,this),t(this,"sp_jing_dian_0",ne,this),t(this,"sp_mei_bu",se,this),t(this,"sp_mei_bu_0",oe,this),t(this,"btnJingdian",le,this),t(this,"btnMeibujiashi",re,this),t(this,"labJushi",ue,this),t(this,"btn_Jushi_select",ce,this),t(this,"labBushi",ae,this),t(this,"btn_Bushi_select",he,this),t(this,"labDumiao",be,this),t(this,"btn_Dumiao_select",_e,this),t(this,"nodeDumiao",de,this),t(this,"labWofang",ge,this),t(this,"btn_Wofang_select",fe,this),t(this,"labMeibujiashi",me,this),t(this,"btn_Meibujiashi_select",pe,this),t(this,"nodeMeibujiashi",we,this),t(this,"select_node",Se,this),t(this,"select_jushi_node",Ce,this),t(this,"select_bushi_node",ye,this),t(this,"select_dumiao_node",je,this),t(this,"select_wofang_node",Me,this),t(this,"select_meibujiashi_node",Ie,this),t(this,"select_jushi_content",Be,this),t(this,"select_bushi_content",ze,this),t(this,"select_dumiao_content",De,this),t(this,"select_wofang_content",Ve,this),t(this,"select_meibujiashi_content",Je,this),t(this,"btn_cancel",ve,this),t(this,"btn_create",xe,this),this.curSelectMode=_._jing_dian_hao_you,this.curSelectJushiIndex=7,this.curSelectBushiIndex=4,this.curSelectDumiaoIndex=0,this.curSelectWofangIndex=0,this.curSelectMeibujiashiIndex=0,this.isInitJuShiContent=!1,this.isInitBuShiContent=!1,this.isInitDuMiaoContent=!1,this.isInitWoFangContent=!1,this.isInitMeiBuJiaShiContent=!1,this.color=new r,this.room=new w}static Show(e){m.AddPrefab(d.Instance.createFirend,e)}start(){this.initBtns(),this.selectModeChange(),this.initView()}onDestroy(){}selectModeChange(){this.curSelectMode===_._jing_dian_hao_you?(this.btnJingdian.getComponent(u).spriteFrame=this.sp_jing_dian,this.btnMeibujiashi.getComponent(u).spriteFrame=this.sp_mei_bu_0,this.nodeMeibujiashi.active=!1,this.nodeDumiao.active=!0):(this.btnJingdian.getComponent(u).spriteFrame=this.sp_jing_dian_0,this.btnMeibujiashi.getComponent(u).spriteFrame=this.sp_mei_bu,this.nodeMeibujiashi.active=!0,this.nodeDumiao.active=!1)}initView(){this.labJushi.getComponent(c).string=Ae[this.curSelectJushiIndex],this.labBushi.getComponent(c).string=Ne[this.curSelectBushiIndex],this.labMeibujiashi.getComponent(c).string=Le[this.curSelectMeibujiashiIndex],this.labWofang.getComponent(c).string=Ee[this.curSelectWofangIndex],this.labDumiao.getComponent(c).string=He[this.curSelectDumiaoIndex]}onCreate(){}initBtns(){f.BindClick(this.btnClose,(()=>{this.closeUI()}),this),f.BindClick(this.btnJingdian,(()=>{this.curSelectMode==_._jing_dian_hao_you||(this.curSelectMode=_._jing_dian_hao_you,this.selectModeChange())}),this),f.BindClick(this.btnMeibujiashi,(()=>{this.curSelectMode==_._mei_miao_die_jia_hao_you||(this.curSelectMode=_._mei_miao_die_jia_hao_you,this.selectModeChange())}),this),f.BindClick(this.btn_Jushi_select,(()=>{this.showJuShiSelectView()}),this),f.BindClick(this.btn_Bushi_select,(()=>{this.showBuShiSelectView()}),this),f.BindClick(this.btn_Dumiao_select,(()=>{this.showDumiaoSelectView()}),this),f.BindClick(this.btn_Wofang_select,(()=>{this.showWofangSelectView()}),this),f.BindClick(this.btn_Meibujiashi_select,(()=>{this.showMeibujiashiSelectView()}),this),f.BindClick(this.btn_cancel,(()=>{this.closeUI()}),this),f.BindClick(this.btn_create,(()=>{p.createRoom(ke[this.curSelectJushiIndex],Ue[this.curSelectBushiIndex],this.curSelectWofangIndex,this.curSelectMode,Qe[this.curSelectDumiaoIndex],Re[this.curSelectMeibujiashiIndex])}),this)}hideAllSelectView(){this.select_jushi_node.active=!1,this.select_bushi_node.active=!1,this.select_meibujiashi_node.active=!1,this.select_wofang_node.active=!1,this.select_dumiao_node.active=!1}showJuShiSelectView(){if(this.select_node.active=!0,this.hideAllSelectView(),this.showSelectContenAni(this.select_jushi_node),!this.isInitJuShiContent){let e=this;for(let i=0;i<this.select_jushi_content.children.length;i++){const t=this.select_jushi_content.children[i];let n=t.getChildByName("Label");Ae[i]&&(n.getComponent(c).string=Ae[i]),t.on(a.TOUCH_END,(function(){console.log("选中",Ae[i]),e.curSelectJushiIndex=i,e.initView(),e.onQuitSelectView()}))}this.isInitJuShiContent=!0}}showBuShiSelectView(){if(this.select_node.active=!0,this.hideAllSelectView(),this.showSelectContenAni(this.select_bushi_node),!this.isInitBuShiContent){let e=this;for(let i=0;i<this.select_bushi_content.children.length;i++){const t=this.select_bushi_content.children[i];let n=t.getChildByName("Label");Ne[i]&&(n.getComponent(c).string=Ne[i]),t.on(a.TOUCH_END,(function(){console.log("选中",Ne[i]),e.curSelectBushiIndex=i,e.initView(),e.onQuitSelectView()}))}this.isInitBuShiContent=!0}}showMeibujiashiSelectView(){if(this.select_node.active=!0,this.hideAllSelectView(),this.showSelectContenAni(this.select_meibujiashi_node),!this.isInitMeiBuJiaShiContent){let e=this;for(let i=0;i<this.select_meibujiashi_content.children.length;i++){const t=this.select_meibujiashi_content.children[i];let n=t.getChildByName("Label");Le[i]&&(n.getComponent(c).string=Le[i]),t.on(a.TOUCH_END,(function(){console.log("选中",Le[i]),e.curSelectMeibujiashiIndex=i,e.initView(),e.onQuitSelectView()}))}this.isInitMeiBuJiaShiContent=!0}}showWofangSelectView(){if(this.select_node.active=!0,this.hideAllSelectView(),this.showSelectContenAni(this.select_wofang_node),!this.isInitWoFangContent){let e=this;for(let i=0;i<this.select_wofang_content.children.length;i++){const t=this.select_wofang_content.children[i];let n=t.getChildByName("Label");Ee[i]&&(n.getComponent(c).string=Ee[i]),t.on(a.TOUCH_END,(function(){console.log("选中",Ee[i]),e.curSelectWofangIndex=i,e.initView(),e.onQuitSelectView()}))}this.isInitWoFangContent=!0}}showDumiaoSelectView(){if(this.select_node.active=!0,this.hideAllSelectView(),this.showSelectContenAni(this.select_dumiao_node),!this.isInitDuMiaoContent){let e=this;for(let i=0;i<this.select_dumiao_content.children.length;i++){const t=this.select_dumiao_content.children[i];let n=t.getChildByName("Label");He[i]&&(n.getComponent(c).string=He[i]),t.on(a.TOUCH_END,(function(){console.log("选中",He[i]),e.curSelectDumiaoIndex=i,e.initView(),e.onQuitSelectView()}))}this.isInitDuMiaoContent=!0}}showSelectContenAni(e){e.scale=new h(1,.5,1),e.active=!0,b(e).to(.1,{scale:new h(1,1,1)}).start()}onQuitSelectView(){this.select_node.active=!1}update(e){}}).prototype,"btnClose",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=i(ee.prototype,"sp_jing_dian",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=i(ee.prototype,"sp_jing_dian_0",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=i(ee.prototype,"sp_mei_bu",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),oe=i(ee.prototype,"sp_mei_bu_0",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=i(ee.prototype,"btnJingdian",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=i(ee.prototype,"btnMeibujiashi",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=i(ee.prototype,"labJushi",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce=i(ee.prototype,"btn_Jushi_select",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=i(ee.prototype,"labBushi",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),he=i(ee.prototype,"btn_Bushi_select",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),be=i(ee.prototype,"labDumiao",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_e=i(ee.prototype,"btn_Dumiao_select",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),de=i(ee.prototype,"nodeDumiao",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge=i(ee.prototype,"labWofang",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fe=i(ee.prototype,"btn_Wofang_select",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),me=i(ee.prototype,"labMeibujiashi",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pe=i(ee.prototype,"btn_Meibujiashi_select",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),we=i(ee.prototype,"nodeMeibujiashi",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Se=i(ee.prototype,"select_node",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ce=i(ee.prototype,"select_jushi_node",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ye=i(ee.prototype,"select_bushi_node",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),je=i(ee.prototype,"select_dumiao_node",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Me=i(ee.prototype,"select_wofang_node",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ie=i(ee.prototype,"select_meibujiashi_node",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Be=i(ee.prototype,"select_jushi_content",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ze=i(ee.prototype,"select_bushi_content",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),De=i(ee.prototype,"select_dumiao_content",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ve=i(ee.prototype,"select_wofang_content",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Je=i(ee.prototype,"select_meibujiashi_content",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ve=i(ee.prototype,"btn_cancel",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),xe=i(ee.prototype,"btn_create",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=ee))||$));n._RF.pop()}}}));

System.register("chunks:///_virtual/daoju_node.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,o,r,n,a,i,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Prefab,a=e._decorator,i=e.Component,s=e.instantiate}],execute:function(){var u,c,p,d,l;r._RF.push({},"89ac020yiBL8r15T/XtMl6J","daoju_node",void 0);const{ccclass:_,property:f}=a;e("daoju_node",(u=_("daoju_node"),c=f(n),u((l=t((d=class extends i{constructor(...e){super(...e),o(this,"daoju_shop_pf",l,this)}start(){s(this.daoju_shop_pf).parent=this.node}update(e){}}).prototype,"daoju_shop_pf",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=d))||p));r._RF.pop()}}}));

System.register("chunks:///_virtual/daoju_shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./ItemDataConfig.ts","./GameMng.ts","./shop_page.ts"],(function(e){"use strict";var t,i,o,s,n,a,r,l,h,p,c,u,d,g,_,f,w,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Prefab,n=e.UITransform,a=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){p=e.Holder},function(e){c=e.ScrollAdapter},function(e){u=e.View},function(e){d=e.ContentType,g=e.ReleaseState},function(e){_=e.ReleaseManager},function(e){f=e.default},function(e){w=e.GameMng},function(e){y=e.shop_page}],execute:function(){var T,b,m,P,v,M,F,O,D,L,z,H,S,A,I,E,x,R;o._RF.push({},"34e92LXTPpOTJDy1TDfCLsA","daoju_shop_view",void 0);const{ccclass:V,property:j}=r;e("daoju_shop_view",(T=V("daoju_shop_view"),b=j(s),m=j(n),P=j(a),v=j(n),M=j(a),F=j(s),O=j({type:d}),D=j({type:d}),T((H=t((z=class extends c{constructor(...e){super(...e),i(this,"shopPrefab",H,this),i(this,"header",S,this),i(this,"loading",A,this),i(this,"foot",I,this),i(this,"foot_loading",E,this),i(this,"item_prefab",x,this),i(this,"_contentType",R,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1}get contentType(){return this._contentType}set contentType(e){e!=this._contentType&&(this._contentType=e)}start(){this.initView()}initView(){this.releaseManager.on(_.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(_.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever();var e=[];this._contentType===d.bag?e.push(w.getBagItemList()):this._contentType===d.shop&&e.push(f.Instance.getShopDaoJuList()),this.modelManager.insert(e,0),this.scrollManager.scrollToHeader(0)}async onPullUp(e){if(e.state==g.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==g.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var o=new h;o.set(this.foot_loading.color),o.a=255*Math.min(i,1),this.foot_loading.color=o}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==g.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==g.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}getPrefab(e){return this.shopPrefab}getHolder(e,t){return new U(e,t,this)}getView(){return new C(this)}initElement(e,t){}scrollToHeader(){this.scrollManager.scrollToFooter(1)}}).prototype,"shopPrefab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(z.prototype,"header",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(z.prototype,"loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(z.prototype,"foot",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(z.prototype,"foot_loading",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(z.prototype,"item_prefab",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(z.prototype,"_contentType",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.shop}}),t(z.prototype,"contentType",[D],Object.getOwnPropertyDescriptor(z.prototype,"contentType"),z.prototype),L=z))||L));class C extends u{onVisible(){}onDisable(){}}class U extends p{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(y),this._shopItem.show(this,this.adapter.item_prefab,this.data)}onVisible(){}onDisable(){this._shopItem.hide()}}o._RF.pop()}}}));

System.register("chunks:///_virtual/debug_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts"],(function(t){"use strict";var e,i,n,o,r,s,c,a,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,r=t._decorator,s=t.Component,c=t.EditBox,a=t.director},function(t){l=t.Constant}],execute:function(){var u,p,b,h,g,d,f,_,m;n._RF.push({},"38ac3oQceFJm4bQQHbKF2Au","debug_view",void 0);const{ccclass:v,property:E}=r;t("debug_view",(u=v("debug_view"),p=E(o),b=E(o),h=E(o),u((f=e((d=class extends s{constructor(...t){super(...t),i(this,"ip",f,this),i(this,"port",_,this),i(this,"btn_finish",m,this)}start(){}onClick(){var t=this.ip.getComponent(c).string;""===t&&(t=this.ip.getComponent(c).placeholder);var e=this.port.getComponent(c).string;""===e&&(e=this.port.getComponent(c).placeholder),l.SEVER_INFO.IP=t,l.SEVER_INFO.PORT=e,console.log("Constant.SEVER_INFO",l.SEVER_INFO),a.loadScene("GameLaunch"),this.btn_finish.active=!1}update(t){}}).prototype,"ip",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(d.prototype,"port",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(d.prototype,"btn_finish",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=d))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/debug.ts",["cc"],(function(_){"use strict";var e,D;return{setters:[function(_){e=_.cclegacy,D=_.Color}],execute:function(){e._RF.push({},"b7bf3JPeg5Pz4Pj5H6FXtBa","debug",void 0);_("DEBUG_DRAW_LINE_COLOR",new D(238,124,55,255)),_("DEBUG_DRAW_FILL_COLOR",new D(88,175,64,50)),_("DEBUG_DRAW_BORDER_COLOR",new D(56,120,94,255)),_("DEBUG_DRAW_LIND_WIDTH",3),_("ADAPTER_DEBUG_VIEW",!1),_("ADAPTER_DEBUG_CONTENT",!1);e._RF.pop()}}}));

System.register("chunks:///_virtual/diffCell.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts","./ScenceMng.ts","./UIDiffSel.ts"],(function(t){"use strict";var e,n,i,l,o,s,c,r,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,l=t.Label,o=t._decorator,s=t.Component},function(t){c=t.UIButton},function(t){r=t.default},function(t){u=t.default}],execute:function(){var a,f,d,p;i._RF.push({},"63961fX/0ZFj7gjVzyZRdoL","diffCell",void 0);const{ccclass:h,property:g}=o;t("default",(a=g(l),h((p=e((d=class extends s{constructor(...t){super(...t),this.index=0,n(this,"label",p,this)}start(){console.log("UIButton start"),c.BindClick(this.node,(()=>{u.selectIndex=this.index,console.log("UIButton onclick"),r.Instance.load("Chess")}),this)}setData(t){this.index=t,this.label.string=u.lvArr[t]}}).prototype,"label",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=d))||f));i._RF.pop()}}}));

System.register("chunks:///_virtual/email_view_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./GameMng.ts"],(function(e){"use strict";var t,i,o,s,a,n,r,l,h,d,c,u,g,_,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Prefab,a=e.UITransform,n=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){d=e.Holder},function(e){c=e.ScrollAdapter},function(e){u=e.View},function(e){g=e.ReleaseState},function(e){_=e.ReleaseManager},function(e){f=e.GameMng}],execute:function(){var w,p,m,b,v,P,T,y,M,F,H,z,A;o._RF.push({},"fe7adQhxQpApIWkmzFyxL4I","email_view_manager",void 0);const{ccclass:L,property:O}=r;e("email_view_manager",(w=L("daoju_shop_view"),p=O(s),m=O(a),b=O(n),v=O(a),P=O(n),w((M=t((y=class extends c{constructor(...e){super(...e),i(this,"invite_Prefab",M,this),i(this,"header",F,this),i(this,"loading",H,this),i(this,"foot",z,this),i(this,"foot_loading",A,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1}start(){this.initView()}initView(){this.releaseManager.on(_.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(_.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever();var e=f.getEmailList();this.modelManager.insert(e,0),this.scrollManager.scrollToHeader(0)}async onPullUp(e){if(e.state==g.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==g.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var o=new h;o.set(this.foot_loading.color),o.a=255*Math.min(i,1),this.foot_loading.color=o}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==g.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==g.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}getPrefab(e){return this.invite_Prefab}getHolder(e,t){return new x(e,t,this)}getView(){return new S(this)}initElement(e,t){}scrollToHeader(){this.scrollManager.scrollToFooter(1)}}).prototype,"invite_Prefab",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(y.prototype,"header",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(y.prototype,"loading",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(y.prototype,"foot",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(y.prototype,"foot_loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=y))||T));class S extends u{onVisible(){}onDisable(){}}class x extends d{onCreated(){}onVisible(){}onDisable(){}}o._RF.pop()}}}));

System.register("chunks:///_virtual/email_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts","./shop_type_btn.ts"],(function(t){"use strict";var e,i,n,o,s,c,l,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator},function(t){c=t.default},function(t){l=t.UIButton},function(t){u=t.shop_type_btn}],execute:function(){var r,a,h,_,p,b,d,f,g,y,S,m,w;n._RF.push({},"fff3d69FUhKGbxEnE42glLy","email_view",void 0);const{ccclass:v,property:x}=s;t("email_view",(r=v("email_view"),a=x(o),h=x(o),_=x(o),p=x(o),b=x(o),r((g=e((f=class extends c{constructor(...t){super(...t),i(this,"btn_close",g,this),i(this,"btn_select_xitong",y,this),i(this,"btn_select_haoyou",S,this),i(this,"node_select_xitong",m,this),i(this,"node_select_haoyou",w,this),this.curSelect=0}start(){l.BindClick(this.btn_close,(()=>{this.closeUI()}),this)}initSelectView(){l.BindClick(this.btn_select_xitong,(()=>{0===this.curSelect||(this.curSelect=0,this.updateSelectStatus())}),this),l.BindClick(this.btn_select_haoyou,(()=>{1===this.curSelect||(this.curSelect=1,this.updateSelectStatus())}),this),this.updateSelectStatus()}updateSelectStatus(){switch(this.btn_select_xitong.getComponent(u).unSelect(),this.btn_select_haoyou.getComponent(u).unSelect(),this.curSelect){case 0:this.btn_select_xitong.getComponent(u).onSelect();break;case 1:this.btn_select_haoyou.getComponent(u).onSelect()}this.updateView()}updateView(){switch(this.node_select_xitong.active=!1,this.node_select_haoyou.active=!1,this.curSelect){case 0:this.node_select_xitong.active=!0;break;case 1:this.node_select_haoyou.active=!0}}update(t){}}).prototype,"btn_close",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(f.prototype,"btn_select_xitong",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(f.prototype,"btn_select_haoyou",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(f.prototype,"node_select_xitong",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(f.prototype,"node_select_haoyou",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/emailData.ts",["cc"],(function(t){"use strict";var c,e;return{setters:[function(t){c=t.cclegacy,e=t._decorator}],execute:function(){var a;c._RF.push({},"7818800TWVJgrxEAvoXPORE","emailData",void 0);const{ccclass:s,property:i}=e;t("emailData",s("emailData")(a=class{constructor(){this.title="",this.description="",this.time=""}})||a);c._RF.pop()}}}));

System.register("chunks:///_virtual/emote.ts",["cc","./clientEvent.ts","./constant.ts","./ResMng.ts","./UIButton.ts","./msgManager.ts"],(function(t){"use strict";var e,n,o,s,i,c,a,r,u;return{setters:[function(t){e=t.cclegacy,n=t.Component,o=t.Sprite,s=t._decorator},function(t){i=t.ClientEvent},function(t){c=t.Constant},function(t){a=t.ResMng},function(t){r=t.UIButton},function(t){u=t.msgManager}],execute:function(){var _;e._RF.push({},"d5aabk0P05HJqLQ6ZgNoHw/","emote",void 0);const{ccclass:d,property:m}=s;t("emote",d("emote")(_=class extends n{constructor(...t){super(...t),this.emote_index=0,this.id=""}start(){r.BindClick(this.node,(()=>{console.log("emote_index",this.emote_index),u.send_chat(this.id,""),i.dispatchEvent(c.UI_EVENT.UI_MSG_BTN_HIDE_CHAT)}),this)}update(t){}show(t,e){console.log("emote",e),this.id=t,this.emote_index=e,a.LoadEmote("Game_Images_chat_emote_exp_"+e,this.node.getComponent(o))}})||_);e._RF.pop()}}}));

System.register("chunks:///_virtual/enum.ts",["cc"],(function(o){"use strict";var e,t;return{setters:[function(o){e=o.cclegacy,t=o.Enum}],execute:function(){let i,n,r,a,d,c,l,u,p,f,h,s,L,g,T,A,_,v;o({AlwaysScroll:void 0,ArrangeAxis:void 0,ChildAlignment:void 0,ContentType:void 0,IndicatorMode:void 0,Layer:void 0,MagneticDirection:void 0,MovementType:void 0,NestedDirection:void 0,Orientation:void 0,ReleaseState:void 0,ScrollDirection:void 0,ScrollbarDirection:void 0,StretchDirection:void 0,TouchMode:void 0,Transition:void 0,WrapMode:void 0,friendType:void 0}),e._RF.push({},"21168fhfp5Aw4tN3YlGEjVv","enum",void 0),function(o){o[o.Vertical=0]="Vertical",o[o.Horizontal=1]="Horizontal"}(i||(i=o("Orientation",{}))),function(o){o[o.Unrestricted=0]="Unrestricted",o[o.Elastic=1]="Elastic",o[o.Clamped=2]="Clamped"}(n||(n=o("MovementType",{}))),function(o){o[o.Start=0]="Start",o[o.End=1]="End"}(r||(r=o("ArrangeAxis",{}))),function(o){o[o.bag=0]="bag",o[o.shop=1]="shop"}(a||(a=o("ContentType",{}))),function(o){o[o.haoyou_list=0]="haoyou_list",o[o.haoyou_yaoqing=1]="haoyou_yaoqing",o[o.haoyou_paihang=2]="haoyou_paihang"}(d||(d=o("friendType",{}))),function(o){o[o.Auto=0]="Auto",o[o.Header=1]="Header",o[o.Footer=2]="Footer",o[o.Center=3]="Center"}(c||(c=o("StretchDirection",{}))),function(o){o[o.Lowest=0]="Lowest",o[o.Medium=1]="Medium",o[o.Highest=2]="Highest"}(l||(l=o("Layer",{}))),function(o){o[o.Auto=0]="Auto",o[o.Wrap=1]="Wrap",o[o.Nowrap=2]="Nowrap"}(u||(u=o("WrapMode",{}))),function(o){o[o.Auto=0]="Auto",o[o.AlwaysAllow=1]="AlwaysAllow",o[o.Disabled=2]="Disabled"}(p||(p=o("TouchMode",{}))),function(o){o[o.Header=0]="Header",o[o.Footer=1]="Footer"}(f||(f=o("MagneticDirection",{}))),function(o){o[o.UpperLeft=0]="UpperLeft",o[o.UpperCenter=1]="UpperCenter",o[o.UpperRight=2]="UpperRight",o[o.MiddleLeft=3]="MiddleLeft",o[o.MiddleCenter=4]="MiddleCenter",o[o.MiddleRight=5]="MiddleRight",o[o.LowerLeft=6]="LowerLeft",o[o.LowerCenter=7]="LowerCenter",o[o.LowerRight=8]="LowerRight"}(h||(h=o("ChildAlignment",{}))),function(o){o[o.Up=0]="Up",o[o.Down=1]="Down",o[o.Left=2]="Left",o[o.Right=3]="Right",o[o.None=4]="None"}(s||(s=o("ScrollDirection",{}))),function(o){o[o.Top_To_Bottom=0]="Top_To_Bottom",o[o.Bottom_To_Top=1]="Bottom_To_Top",o[o.Left_To_Right=2]="Left_To_Right",o[o.Right_To_Left=3]="Right_To_Left"}(L||(L=o("ScrollbarDirection",{}))),function(o){o[o.Both=0]="Both",o[o.Header=1]="Header",o[o.Footer=2]="Footer"}(g||(g=o("NestedDirection",{}))),function(o){o[o.Auto=0]="Auto",o[o.Header=1]="Header",o[o.Footer=2]="Footer"}(T||(T=o("AlwaysScroll",{}))),function(o){o[o.Normal=0]="Normal",o[o.Button=1]="Button"}(A||(A=o("IndicatorMode",{}))),function(o){o[o.None=0]="None",o[o.ColorTint=1]="ColorTint",o[o.SpriteSwap=2]="SpriteSwap",o[o.Scale=3]="Scale"}(_||(_=o("Transition",{}))),function(o){o.IDLE="IDLE",o.PULL="PULL",o.WAIT="WAIT",o.RELEASE="RELEASE"}(v||(v=o("ReleaseState",{}))),t(a),t(d),t(i),t(n),t(r),t(c),t(f),t(L),t(h),t(p),t(A),t(_),e._RF.pop()}}}));

System.register("chunks:///_virtual/faxian_view_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var a,i,t,n,r,s,o;return{setters:[function(e){a=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){t=e.cclegacy,n=e.Prefab,r=e._decorator,s=e.Component,o=e.instantiate}],execute:function(){var c,u,l,p,f;t._RF.push({},"82a08P2E8JE/r1kx/ZU4+WW","faxian_view_manager",void 0);const{ccclass:_,property:v}=r;e("faxian_view_manager",(c=_("faxian_view_manager"),u=v(n),c((f=a((p=class extends s{constructor(...e){super(...e),i(this,"faxian_view",f,this)}start(){this.node.addChild(o(this.faxian_view))}update(e){}}).prototype,"faxian_view",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));t._RF.pop()}}}));

System.register("chunks:///_virtual/faxian_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./UIManager.ts"],(function(t){"use strict";var i,e,n,a,r,l,s,o,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,r=t._decorator,l=t.Component},function(t){s=t.GameMng},function(t){o=t.UIButton},function(t){c=t.UIManager}],execute:function(){var u,b,f,p,_,h,d,w,v,g,y,m,B;n._RF.push({},"5a864BJyJdEJb6Pxx7EUj0N","faxian_view",void 0);const{ccclass:I,property:x}=r;t("faxian_view",(u=I("faxian_view"),b=x(a),f=x(a),p=x(a),_=x(a),h=x(a),u((v=i((w=class extends l{constructor(...t){super(...t),e(this,"btn_shop",v,this),e(this,"btn_bag",g,this),e(this,"btn_email",y,this),e(this,"btn_activity",m,this),e(this,"btn_welfare",B,this)}start(){o.BindClick(this.btn_shop,(()=>{c.AddPrefab(s.Instance.shop_view)}),this),o.BindClick(this.btn_bag,(()=>{c.AddPrefab(s.Instance.bag_view)}),this),o.BindClick(this.btn_email,(()=>{c.AddPrefab(s.Instance.email_view)}),this),o.BindClick(this.btn_activity,(()=>{c.AddPrefab(s.Instance.activity_view)}),this),o.BindClick(this.btn_welfare,(()=>{c.AddPrefab(s.Instance.welfare_view)}),this)}update(t){}}).prototype,"btn_shop",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=i(w.prototype,"btn_bag",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=i(w.prototype,"btn_email",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=i(w.prototype,"btn_activity",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(w.prototype,"btn_welfare",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=w))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/fill.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var i,e,s,r,n,l,o;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){s=t.cclegacy,r=t.SpriteFrame,n=t._decorator,l=t.Component,o=t.Sprite}],execute:function(){var a,h,u,c,m,p,f,g,_;s._RF.push({},"392d4Yhu+hKUKzjdax3OV81","fill",void 0);const{ccclass:d,property:T}=n;t("fill",(a=d("fill"),h=T(r),u=T(r),c=T(r),a((f=i((p=class extends l{constructor(...t){super(...t),this.isStart=!1,this.curTimme=0,this.allTime=0,e(this,"sf_hong",f,this),e(this,"sf_lv",g,this),e(this,"sf_huang",_,this)}start(){}update(t){if(this.isStart){let i=(this.allTime-this.curTimme)/this.allTime;this.node.getComponent(o).fillRange=1-i,this.curTimme-=t,null!=this.sf_hong&&(this.curTimme<=10?this.node.getComponent(o).spriteFrame=this.sf_hong:this.curTimme>10&&this.curTimme<=20?this.node.getComponent(o).spriteFrame=this.sf_huang:this.node.getComponent(o).spriteFrame=this.sf_lv)}}startAni(t,i){this.curTimme!=t&&(this.curTimme=t),this.allTime!=i&&(this.allTime=i),1==this.isStart||(this.isStart=!0)}stopAni(){this.node.getComponent(o).fillRange=0,this.isStart=!1}}).prototype,"sf_hong",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=i(p.prototype,"sf_lv",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=i(p.prototype,"sf_huang",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=p))||m));s._RF.pop()}}}));

System.register("chunks:///_virtual/fnt_count.ts",["cc"],(function(t){"use strict";var n,e,s,c,o,r;return{setters:[function(t){n=t.cclegacy,e=t.Component,s=t.Label,c=t.Vec3,o=t.tween,r=t._decorator}],execute:function(){var u;n._RF.push({},"ce2b4w4UmRFwp0vqRy5yJ/N","fnt_count",void 0);const{ccclass:i,property:a}=r;t("fnt_count",i("fnt_count")(u=class extends e{constructor(...t){super(...t),this._num=0}start(){}show(t){t<0||this._num===t||(this.node.getComponent(s).string=t.toString(),this._num=t,this.node.scale=new c(1.5,1.5,1),o().target(this.node).to(.5,{scale:new c(1,1,1)}).start())}update(t){}})||u);n._RF.pop()}}}));

System.register("chunks:///_virtual/friend_list_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,s,r,o,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t._decorator},function(t){o=t.default},function(t){c=t.UIButton}],execute:function(){var l,u,a,f,p;n._RF.push({},"53f39UVBehP+7mWLh1RhLLl","friend_list_view",void 0);const{ccclass:_,property:d}=r;t("friend_list_view",(l=_("friend_list_view"),u=d(s),l((p=e((f=class extends o{constructor(...t){super(...t),i(this,"btn_close",p,this)}start(){c.BindClick(this.btn_close,(()=>{this.closeUI()}),this)}onDestroy(){}update(t){}}).prototype,"btn_close",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),a=f))||a));n._RF.pop()}}}));

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

System.register("chunks:///_virtual/GameData.ts",["cc","./PlatformMng.ts","./AudioMng.ts","./GDSave.ts"],(function(a){"use strict";var e,t,s,i,n,o;return{setters:[function(a){e=a.sys,t=a.cclegacy},function(a){s=a.default,i=a.Channel},function(a){n=a.default},function(a){o=a.default}],execute:function(){t._RF.push({},"ecf9cW1tR5Fur00y5urXHa3","GameData",void 0);class m{static SaveGame(){var a=JSON.stringify(m.game);e.localStorage.setItem(m.FileName,a)}static LoadGame(){var a=e.localStorage.getItem(m.FileName);if(a){let e=JSON.parse(a);this.ContinueGame(e)}else this.NewGame(),this.SaveGame();this.Init()}static Init(){e.platform==e.Platform.WECHAT_GAME&&(s.channo=i.wx),s.platform.init()}static NewGame(){m.game=new o,n.Instance.InitSaveData(),console.log("新的游戏")}static ContinueGame(a){console.log("继续游戏"),m.game=new o,m.game.loadfromSave(a),console.log(m.game)}static GetCustomData(a){var e=0,t=m.game.customData;return t[a]&&(e=t[a]),e}static SetCustomData(a,e){m.game.customData[a]=e,m.SaveGame()}}a("default",m),m.isInited=!1,m.isIdiomInited=!1,m.game=new o,m.GameFPS=1/60,m.FileName="ChessGame_Save",t._RF.pop()}}}));

System.register("chunks:///_virtual/GameLaunch.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CanjuModel.ts","./AudioMng.ts","./UIButton.ts","./GameData.ts","./ScenceMng.ts","./GameMng.ts","./gameSocket.ts","./UIduizhan.ts","./UITips.ts","./clientEvent.ts","./constant.ts","./Tools.ts","./page_btn.ts","./UIDialog.ts","./native_manager.ts","./UIManager.ts","./recv_firend_duizhan.ts"],(function(e){"use strict";var t,n,i,a,o,s,_,l,u,r,h,c,E,g,I,f,p,b,G,d,A,w,P,m,N,S;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.TextAsset,o=e.Node,s=e._decorator,_=e.Component,l=e.setDisplayStats},function(e){u=e.default},function(e){r=e.default},function(e){h=e.UIButton},function(e){c=e.default},function(e){E=e.default},function(e){g=e.GameMng,I=e.quit_chess_show_view},function(e){f=e.default},function(e){p=e.default},function(e){b=e.default},function(e){G=e.ClientEvent},function(e){d=e.Constant},function(e){A=e.Tools},function(e){w=e.page_btn},function(e){P=e.default},function(e){m=e.native_manager},function(e){N=e.UIManager},function(e){S=e.recv_firend_duizhan}],execute:function(){var U,v,M,O,T,y,R,z,D,j,q,x,L,V,H,J,W,X,F,Q,C,B,k,Y,Z,K,$,ee,te;i._RF.push({},"fef66MXWOVFobNviU6bmEmc","GameLaunch",void 0);const{ccclass:ne,property:ie}=s;var ae=new Map,oe=new Map;e("default",(U=ie(a),v=ie(o),M=ie(o),O=ie(o),T=ie(o),y=ie(o),R=ie(o),z=ie(o),D=ie(o),j=ie(o),q=ie(o),x=ie(o),L=ie(o),ne(((te=class e extends _{constructor(...e){super(...e),n(this,"fen",J,this),n(this,"btn_duizhan",W,this),n(this,"login_view",X,this),n(this,"xiaqi_page",F,this),n(this,"xueqi_page",Q,this),n(this,"qijie_page",C,this),n(this,"faxian_page",B,this),n(this,"wode_page",k,this),n(this,"xiaqi_page_btn",Y,this),n(this,"xueqi_page_btn",Z,this),n(this,"qijie_page_btn",K,this),n(this,"faxian_page_btn",$,this),n(this,"wode_page_btn",ee,this),this.cur_select_page=""}start(){if(e.isLaunch||(this.initGame(),e.isLaunch=!0),this.clearList(),0==u.Instance.canjuDataArr.length){this.fen.text.split("\n").forEach(((e,t)=>{let n=e.split(";"),i={fen:n[0],name:n[1]};u.Instance.canjuDataArr.push(i)}))}if(h.BindClick(this.btn_duizhan,(()=>{p.Show()}),this),null==g._userData?this.login_view.active=!0:this.login_view.active=!1,f.Instance.connect(A.makeUrl()),G.on(d.UI_EVENT.UI_MSG_SHOW_FIREND,this.show_firend,this),G.on(d.UI_EVENT.UI_MSG_SHOW_RENJI,this.show_renji,this),G.on(d.UI_EVENT.UI_MSG_SHOW_JIFEN,this.show_jifen,this),G.on(d.UI_EVENT.UI_MSG_SHOW_LOGIN,this.show_login,this),G.on(d.UI_EVENT.UI_MSG_LOGIN_FINISH,this.onRecvLogin,this),G.on(d.EVENT_TYPE.MSG_JOIN_ROOM,this.onJoinRoom,this),G.on(d.EVENT_TYPE.MSG_CREATE_ROOM,this.onRecvCreateRoom,this),G.on(d.EVENT_TYPE.MSG_JIE_SHOU_YUE_ZHAN,this.jie_shou_yue_zhan,this),null!=g.Instance.quit_view)switch(g.Instance.quit_view){case I.haoyou:G.dispatchEvent(d.UI_EVENT.UI_MSG_SHOW_FIREND);break;case I.renji:G.dispatchEvent(d.UI_EVENT.UI_MSG_SHOW_RENJI);break;case I.jifen:G.dispatchEvent(d.UI_EVENT.UI_MSG_SHOW_JIFEN);break;case I.login:G.dispatchEvent(d.UI_EVENT.UI_MSG_SHOW_LOGIN);break;case I.beitichu:P.Show((()=>{}),(()=>{}),"你已被桌主踢出房间！",null,!1)}g.Instance.quit_view=null,this.initPage(),this.initPageBtns(),null!=g._userData&&this.onRecvLogin()}onJoinRoom(e){N.removeLoadingLayer(),g.updateRoomData(e),E.Instance.load("Chess"),console.log("room",e)}onRecvCreateRoom(e){console.log("room",e),N.removeLoadingLayer(),g.updateRoomData(e),E.Instance.load("Chess")}jie_shou_yue_zhan(e){console.log("friend",e.friend_id+"");let t=g.getFriedDataById(parseInt(e.friend_id));if(null!=t){N.AddPrefab(g.Instance.recv_firend_duizhan).getComponent(S).show(t)}}onRecvLogin(){this.showPage(0,"xiaqi",!0)}initPage(){null===ae.get(d.PAGE_XIAQI)&&ae.set(d.PAGE_XIAQI,this.xiaqi_page),null===ae.get(d.PAGE_XUEQI)&&ae.set(d.PAGE_XUEQI,this.xueqi_page),null===ae.get(d.PAGE_QIJIE)&&ae.set(d.PAGE_QIJIE,this.qijie_page),null===ae.get(d.PAGE_FAXIAN)&&ae.set(d.PAGE_FAXIAN,this.faxian_page),null===ae.get(d.PAGE_WODE)&&ae.set(d.PAGE_WODE,this.wode_page)}initPageBtns(){null===oe.get(d.PAGE_XIAQI)&&oe.set(d.PAGE_XIAQI,this.xiaqi_page_btn),null===oe.get(d.PAGE_XUEQI)&&oe.set(d.PAGE_XUEQI,this.xueqi_page_btn),null===oe.get(d.PAGE_QIJIE)&&oe.set(d.PAGE_QIJIE,this.qijie_page_btn),null===oe.get(d.PAGE_FAXIAN)&&oe.set(d.PAGE_FAXIAN,this.faxian_page_btn),null===oe.get(d.PAGE_WODE)&&oe.set(d.PAGE_WODE,this.wode_page_btn)}onEnable(){m.hideSplash()}show_firend(){p.Show(I.haoyou)}show_renji(){p.Show(I.renji)}show_jifen(){p.Show(I.jifen)}show_login(){this.login_view.active=!0,g._userData=null,f.Instance.stopConnected=!1}onDestroy(){G.off(d.UI_EVENT.UI_MSG_SHOW_FIREND,this.show_firend,this),G.off(d.UI_EVENT.UI_MSG_SHOW_RENJI,this.show_renji,this),G.off(d.UI_EVENT.UI_MSG_SHOW_JIFEN,this.show_jifen,this),G.off(d.UI_EVENT.UI_MSG_SHOW_LOGIN,this.show_login,this),G.off(d.UI_EVENT.UI_MSG_LOGIN_FINISH,this.onRecvLogin,this),G.off(d.EVENT_TYPE.MSG_JOIN_ROOM,this.onJoinRoom,this),G.off(d.EVENT_TYPE.MSG_CREATE_ROOM,this.onRecvCreateRoom,this),G.off(d.EVENT_TYPE.MSG_JIE_SHOU_YUE_ZHAN,this.jie_shou_yue_zhan,this)}clearList(){ae.set(d.PAGE_XIAQI,null),ae.set(d.PAGE_XUEQI,null),ae.set(d.PAGE_QIJIE,null),ae.set(d.PAGE_FAXIAN,null),ae.set(d.PAGE_WODE,null),oe.set(d.PAGE_XIAQI,null),oe.set(d.PAGE_XUEQI,null),oe.set(d.PAGE_QIJIE,null),oe.set(d.PAGE_FAXIAN,null),oe.set(d.PAGE_WODE,null)}clickNot(){b.show("暂未开放，敬请期待！")}initGame(){l(!1),console.log("initGame"),c.LoadGame(),r.Instance.PlayBGM(g.Instance.mainbgm)}showPage(e,t,n=!1){console.log("name",t),null!=ae.get(t+"")&&this.cur_select_page!=t&&(console.log("data",t),this.hideAllPage(t),this.showPageBtn(t),n||r.Instance.PlaySoundByName(g.Instance.buttonclick),this.cur_select_page=t)}showPageBtn(e){oe.forEach(((t,n,i)=>{t&&(e!=n?t.getComponent(w).status_unselect():t.getComponent(w).status_select())}))}hideAllPage(e){ae.forEach(((t,n,i)=>{t&&(t.active=e==n)}))}}).isLaunch=!1,J=t((H=te).prototype,"fen",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=t(H.prototype,"btn_duizhan",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=t(H.prototype,"login_view",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(H.prototype,"xiaqi_page",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=t(H.prototype,"xueqi_page",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(H.prototype,"qijie_page",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(H.prototype,"faxian_page",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(H.prototype,"wode_page",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=t(H.prototype,"xiaqi_page_btn",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=t(H.prototype,"xueqi_page_btn",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=t(H.prototype,"qijie_page_btn",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=t(H.prototype,"faxian_page_btn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=t(H.prototype,"wode_page_btn",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=H))||V));i._RF.pop()}}}));

System.register("chunks:///_virtual/GameMng.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./UIDialog.ts","./ScenceMng.ts","./UILoading.ts","./UIManager.ts","./UITips.ts","./native_manager.ts","./gameSocket.ts","./msgManager.ts","./activityData.ts","./emailData.ts","./privacyData.ts","./roomData.ts","./userData.ts","./wearData.ts","./welfareData.ts"],(function(t){"use strict";var e,i,n,a,r,l,s,u,o,c,_,p,h,f,b,g,y,m,d,w,D,v,E,I,z,T,L,k;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Prefab,r=t.AudioClip,l=t._decorator,s=t.Component,u=t.director,o=t.game,c=t.Game},function(t){_=t.ClientEvent},function(t){p=t.item_type,h=t.Constant},function(t){f=t.default},function(t){b=t.default},function(t){g=t.default},function(t){y=t.UIManager},function(t){m=t.default},function(t){d=t.native_manager},function(t){w=t.default},function(t){D=t.msgManager},function(t){v=t.activityData},function(t){E=t.emailData},function(t){I=t.privacyData},function(t){z=t.roomData},function(t){T=t.userData},function(t){L=t.wearData},function(t){k=t.welfareData}],execute:function(){var N,S,U,M,P,R,V,F,G,A,j,O,B,C,q,Y,x,H,Q,W,J,X,K,Z,$,tt,et,it,nt,at,rt,lt,st,ut,ot,ct,_t,pt,ht,ft,bt,gt,yt,mt,dt,wt,Dt,vt,Et,It,zt,Tt,Lt,kt,Nt,St,Ut,Mt,Pt,Rt,Vt,Ft,Gt,At,jt,Ot,Bt,Ct,qt,Yt,xt,Ht,Qt,Wt,Jt,Xt,Kt;n._RF.push({},"7b3349wnvhJ8rvpT7JXVFbp","GameMng",void 0);const Zt=t("quit_chess_show_view",{renji:0,haoyou:1,jifen:2,tongqian:3,login:4,beitichu:5});var $t="wait";const{ccclass:te,property:ee}=l;t("GameMng",(N=ee({type:a}),S=ee({type:a}),U=ee({type:a}),M=ee({type:a}),P=ee({type:a}),R=ee({type:a}),V=ee({type:a}),F=ee({type:a}),G=ee({type:a}),A=ee({type:a}),j=ee({type:a}),O=ee(r),B=ee(r),C=ee(r),q=ee(r),Y=ee(r),x=ee(r),H=ee(r),Q=ee(r),W=ee(r),J=ee(r),X=ee(r),K=ee({type:a}),Z=ee({type:a}),$=ee({type:a}),tt=ee({type:a}),et=ee({type:a}),it=ee({type:a}),nt=ee({type:a}),at=ee({type:a}),rt=ee({type:a}),lt=ee({type:a}),st=ee({type:a}),ut=ee({type:a}),ot=ee({type:a}),ct=ee({type:a}),_t=ee({type:a}),te(((Kt=class t extends s{constructor(...t){super(...t),i(this,"uijifen_rule",ft,this),i(this,"uiloading",bt,this),i(this,"uitips",gt,this),i(this,"uiduizhan",yt,this),i(this,"uiDialog",mt,this),i(this,"uiWaitView",dt,this),i(this,"uiuserinfo",wt,this),i(this,"uiSettingView",Dt,this),i(this,"uiChessSettingView",vt,this),i(this,"friend_list_view",Et,this),i(this,"rank_view",It,this),i(this,"mainbgm",zt,this),i(this,"buttonclick",Tt,this),i(this,"startclip",Lt,this),i(this,"winclip",kt,this),i(this,"failclip",Nt,this),i(this,"eatclip",St,this),i(this,"pickclip",Ut,this),i(this,"putclip",Mt,this),i(this,"kingclip",Pt,this),i(this,"kill",Rt,this),i(this,"gamebgm",Vt,this),i(this,"createFirend",Ft,this),i(this,"joinRoom",Gt,this),i(this,"shop_view",At,this),i(this,"bag_view",jt,this),i(this,"email_view",Ot,this),i(this,"activity_view",Bt,this),i(this,"welfare_view",Ct,this),i(this,"music_setting_view",qt,this),i(this,"privacy_setting_view",Yt,this),i(this,"about_view",xt,this),i(this,"self_info_view",Ht,this),i(this,"invite_firend_view",Qt,this),i(this,"send_firend_duizhan",Wt,this),i(this,"recv_firend_duizhan",Jt,this),i(this,"yue_zhan_view",Xt,this),this.loadingLayer=null,this.quit_view=null}static UserDataInstance(){return null==t._userData&&(t._userData=new T),t._userData}static isMyFirend(e){let i=!1;for(let n=0;n<t._userData.friend_list.length;n++)if(e==t._userData.friend_list[n].userid){i=!0;break}for(let n=0;n<t._userData.online_friend_list.length;n++)if(e==t._userData.online_friend_list[n].userid){i=!0;break}return i}static getBagItemList(){var e=[];for(let i=0;i<t._userData.bag.item_list.length;i++){const n=t._userData.bag.item_list[i];n.item_type===p.dao_ju&&e.push(n)}return e}static getFirendRankList(){let e=t._userData.friend_list;return e.push(t._userData),e.sort(((t,e)=>e.integral-t.integral))}static getFirendList(){return t._userData.friend_list}static getFriedDataById(e){for(let i=0;i<t._userData.online_friend_list.length;i++){const n=t._userData.online_friend_list[i];if(n.userid===e)return n}return null}static getEmailList(){return t._userData.email_list}static getWelfareList(){let t=[];for(let e=0;e<10;e++)t.push(new k);return t}static getActivityList(){let t=[];for(let e=0;e<10;e++)t.push(new v);return t}static getBagQiPanList(){var e=[];for(let i=0;i<t._userData.bag.item_list.length;i++){const n=t._userData.bag.item_list[i];n.item_type===p.qi_pan&&e.push(n)}return e}static getBagQiZiList(){var e=[];for(let i=0;i<t._userData.bag.item_list.length;i++){const n=t._userData.bag.item_list[i];n.item_type===p.qi_zi&&e.push(n)}return e}static getBagTouXiangKuangList(){var e=[];for(let i=0;i<t._userData.bag.item_list.length;i++){const n=t._userData.bag.item_list[i];n.item_type===p.tou_xiang_kuang&&e.push(n)}return e}static getBagJiShiQiList(){var e=[];for(let i=0;i<t._userData.bag.item_list.length;i++){const n=t._userData.bag.item_list[i];n.item_type===p.ji_shi_qi&&e.push(n)}return e}static getBagQiPaoList(){var e=[];for(let i=0;i<t._userData.bag.item_list.length;i++){const n=t._userData.bag.item_list[i];n.item_type===p.qi_pao&&e.push(n)}return e}static setUserData(e){t._userData=e,t._userData.friend_list=[],t._userData.online_friend_list=[],t.temp()}static temp(){if(null!=t._userData.privacy&&null!=t._userData.privacy||(t._userData.privacy=new I),null!=t._userData.wear&&null!=t._userData.wear||(t._userData.wear=new L),null==t._userData.email_list||null==t._userData.email_list){t._userData.email_list=[];for(let e=1;e<=10;e++){let i=new E;i.title=e+"号测试人员",t._userData.email_list.push(i)}}}static add_chat_history(e){null!=t._userData.room&&(null!==t._userData.room.chat_history_list&&void 0!==t._userData.room.chat_history_list||(t._userData.room.chat_history_list=[]),t._userData.room.chat_history_list.push(e))}static updateRoomData(e){if(null!=t._userData){null==t._userData.room&&(t._userData.room=new z),null==e.rival&&(t._userData.room.rival=null);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const n=e[i];t._userData.room[i]=n}}}static updateUserData(e){if(null!=t._userData)for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const n=e[i];t._userData[i]=n}}onLoad(){u.addPersistRootNode(this.node);var e=this;t.Instance=this,e.unschedule(e.tick),e.schedule(e.tick,2.5),o.on(c.EVENT_HIDE,(function(){console.log("游戏进入后台")}),this),o.on(c.EVENT_SHOW,(function(){console.log("游戏进入前台"),d.check_jump_info(),_.dispatchEvent(h.EVENT_TYPE.MSG_HEART_BEAT)}),this),t.isFirstRunApp||(t.isFirstRunApp=!0,d.check_jump_info()),_.on(h.EVENT_TYPE.MSG_EXTRUSION_LINE,this.extrusion_line,this),_.on(h.EVENT_TYPE.MSG_HEART_BEAT,this.startTick,this),_.on(h.EVENT_TYPE.MSG_UPDATE_USER_INFO,this.update_user_info,this),_.on(h.EVENT_TYPE.MSG_GET_ONLINE_FIREND_LIST,this.get_online_firend_list,this),_.on(h.EVENT_TYPE.MSG_GET_FIREND_LIST,this.get_firend_list,this)}get_firend_list(e){t._userData.friend_list=e,_.dispatchEvent(h.UI_EVENT.UI_MSG_UPDATE_FIREND_LIST)}get_online_firend_list(e){t._userData.online_friend_list=e,_.dispatchEvent(h.UI_EVENT.UI_MSG_UPDATE_ONLINE_FIREND_LIST)}update_user_info(e){y.removeLoadingLayer();let i=!1;i=e.bag.tong_bi!=t._userData.bag.tong_bi,e.bag.tong_bi>t._userData.bag.tong_bi&&m.show("获取铜钱"+(e.bag.tong_bi-t._userData.bag.tong_bi)),t.updateUserData(e),i&&_.dispatchEvent(h.UI_EVENT.UI_MSG_UPDATE_TONG_QIAN)}extrusion_line(e){let i=0===e.type?"你的账号正在被登陆，是否重新登陆？":"请重新登陆",n=0===e.type;w.Instance.stopConnected=!0,w.Instance.close(),f.Show((()=>{t.Instance.quit_view=Zt.login,b.Instance.load("GameLaunch")}),(()=>{}),i,null,n),console.log("被挤掉线",e.type)}startTick(){this.unschedule(this.tick),null!=t._userData&&($t="wait",w.Instance.is_online_status=!1,this.heartbeat(),this.loadingLayer=g.deley_show(2.5),this.scheduleOnce((()=>{this.heartbeat(),w.Instance.is_online_status&&(console.log("what the fuck?"),y.removeLoadingLayer(),this.loadingLayer=null)}),1)),this.schedule(this.tick,2.5)}heartbeat(){"wait"===$t?(w.Instance.heartbeat(),$t="send"):"send"===$t&&($t="wait",this.check_heartbeat_succeed()?(console.log("心跳成功"),w.Instance.is_online_status=!0):(w.Instance.is_online_status=!1,console.log("心跳失败")))}check_heartbeat_succeed(){return w.Instance.check_heartbeat_succeed}tick(){console.log("schedule reConnect",w.Instance.is_connected),w.Instance.is_connected&&w.Instance.is_online_status?this.loadingLayer&&w.Instance.is_online_status&&(y.removeLoadingLayer(),this.loadingLayer=null):null===this.loadingLayer?this.loadingLayer=y.AddPrefab(t.Instance.uiloading):w.Instance.stopConnected&&(this.loadingLayer.active=!1),w.Instance.is_connected?this.heartbeat():D.reConnect()}}).Instance=null,Kt._userData=null,Kt.isFirstRunApp=!1,Kt.reward_tong_bi=!1,Kt.firendOpenId="",ft=e((ht=Kt).prototype,"uijifen_rule",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),bt=e(ht.prototype,"uiloading",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),gt=e(ht.prototype,"uitips",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),yt=e(ht.prototype,"uiduizhan",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),mt=e(ht.prototype,"uiDialog",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),dt=e(ht.prototype,"uiWaitView",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),wt=e(ht.prototype,"uiuserinfo",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Dt=e(ht.prototype,"uiSettingView",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),vt=e(ht.prototype,"uiChessSettingView",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Et=e(ht.prototype,"friend_list_view",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),It=e(ht.prototype,"rank_view",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),zt=e(ht.prototype,"mainbgm",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Tt=e(ht.prototype,"buttonclick",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Lt=e(ht.prototype,"startclip",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),kt=e(ht.prototype,"winclip",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Nt=e(ht.prototype,"failclip",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),St=e(ht.prototype,"eatclip",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ut=e(ht.prototype,"pickclip",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Mt=e(ht.prototype,"putclip",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pt=e(ht.prototype,"kingclip",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Rt=e(ht.prototype,"kill",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Vt=e(ht.prototype,"gamebgm",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ft=e(ht.prototype,"createFirend",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Gt=e(ht.prototype,"joinRoom",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),At=e(ht.prototype,"shop_view",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),jt=e(ht.prototype,"bag_view",[tt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ot=e(ht.prototype,"email_view",[et],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Bt=e(ht.prototype,"activity_view",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ct=e(ht.prototype,"welfare_view",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qt=e(ht.prototype,"music_setting_view",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Yt=e(ht.prototype,"privacy_setting_view",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),xt=e(ht.prototype,"about_view",[lt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ht=e(ht.prototype,"self_info_view",[st],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qt=e(ht.prototype,"invite_firend_view",[ut],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Wt=e(ht.prototype,"send_firend_duizhan",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Jt=e(ht.prototype,"recv_firend_duizhan",[ct],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xt=e(ht.prototype,"yue_zhan_view",[_t],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pt=ht))||pt));n._RF.pop()}}}));

System.register("chunks:///_virtual/gameSocket.ts",["cc","./constant.ts","./GameMng.ts","./UIManager.ts","./msgManager.ts"],(function(e){"use strict";var t,s,n,c,o,i;return{setters:[function(e){t=e.cclegacy,s=e._decorator},function(e){n=e.Constant},function(e){c=e.GameMng},function(e){o=e.UIManager},function(e){i=e.msgManager}],execute:function(){var a,_;t._RF.push({},"18cddsMqgdDGL/B4Ky/x1hn","gameSocket",void 0);const{ccclass:r,property:d}=s;e("default",r("gameSocket")(((_=class e{constructor(){this.sock=null,this.is_connected=!1,this.stopConnected=!1,this.check_heartbeat_succeed=!1,this.is_online_status=!1}static get Instance(){return null===e._instance&&(e._instance=new e),e._instance}_on_opened(t){!0===this.is_connected||(this.is_connected=!0,this.check_heartbeat_succeed=!0,e.Instance.is_online_status=!0,null!=c._userData&&i.relink()),console.log("_on_opened",t)}_on_recv_data(t){if(this.check_heartbeat_succeed=!0,t.data===n.RECV_HEART_BEAT)return c.reward_tong_bi&&(o.removeWaitViewLayer(),c.reward_tong_bi=!1,i.ad_tongbi(1)),void(""!=c.firendOpenId&&(o.removeWaitViewLayer(),i.add_firend(parseInt(c.firendOpenId)),i.user_join_room(parseInt(c.firendOpenId)),c.firendOpenId=""));t.data!==n.RECV_CHEAK_HEART_BEAT?""===t.data||null===t.data?console.assert(!0,"接受输出格式错误，data为空",t):i.recv(t.data):e.Instance.heartbeat()}_on_socket_close(e){this.is_connected=!1,console.log("_on_socket_close",e)}_on_socket_err(e){this.is_connected=!1,console.log("_on_socket_err",e)}connect(e){if(this.stopConnected)console.log("客户端退出链接，暂不提供重连");else if(!this.is_connected)try{this.sock=new WebSocket(e),this.sock.binaryType="arraybuffer",this.sock.onopen=this._on_opened.bind(this),this.sock.onmessage=this._on_recv_data.bind(this),this.sock.onclose=this._on_socket_close.bind(this),this.sock.onerror=this._on_socket_err.bind(this)}catch(e){console.log("connect error",e)}}heartbeat(){this.check_heartbeat_succeed=!1,this.send_cmd(0)}send_cmd(e){if(this.sock&&this.is_connected){console.log("发送消息",e);try{1===this.sock.readyState&&("number"==typeof e&&(e+=""),this.sock.send(e))}catch(e){console.log("e",e)}}}close(){null!==this.sock&&(this.sock.close(),this.sock=null),this.is_connected=!1,this.check_heartbeat_succeed=!1}})._instance=null,a=_))||a);t._RF.pop()}}}));

System.register("chunks:///_virtual/GameUtil.ts",["cc"],(function(t){"use strict";var e,a,o,s,r;return{setters:[function(t){e=t.UITransform,a=t.tween,o=t.Vec3,s=t.sys,r=t.cclegacy}],execute:function(){r._RF.push({},"e3028MN18NDkZev5ECWPaVZ","GameUtil",void 0);class n{static moveToPos(t,s,r,n=.2,i=1){this.moveLocPos=t.parent.getComponent(e).convertToNodeSpaceAR(s),a(t).to(n,{position:this.moveLocPos,scale:new o(i,i,i)}).call((()=>{r&&r()})).start()}static arrDeleteObj(t,e){let a=t.indexOf(e);-1!=a&&t.splice(a,1)}static Random(t,e){return Math.random()*(e-t)+t}static RandomRangeInt(t,e){let a=e-t,o=Math.random();return t+Math.floor(o*a)}static SystemTime(){return s.now()}static SystemMillionSecond(){return 0==n._sms&&n.UpdateSystemTime(),n._sms}static UpdateSystemTime(){n._sms=(new Date).getTime()}static SystemTimeHHMMSS(){var t=this.SystemMillionSecond(),e=t.toString();return e=e.substr(e.length-4),n.FormatTime_HHMMSS(t)+" "+e}static SystemDay(){return this.GetDay(n.SystemMillionSecond())}static GetDay(t){var e=t/1e3;return e/=60,e/=60,e+=8,e/=24,e=Math.floor(e)}static FormatTime_HHMMSS(t){let e=t/1e3,a=(Array(2).join("0")+Math.floor(e/3600)).slice(-2),o=(Array(2).join("0")+Math.floor(e%3600/60)).slice(-2),s=(Array(2).join("0")+Math.floor(e)%60).slice(-2);return"00"==a?o+":"+s:a+":"+o+":"+s}static FormatTime_DDHHMMSS(t){var e=t/1e3,a=e%60,o=(e=Math.floor(e/60))%60,s=(e=Math.floor(e/60))%24,r=(e=Math.floor(e/24),"");return e>0?(r=e+"天",s>0&&(r+=s+"小时")):(s>0&&(r+=s+"小时"),o>0&&(r+=o+"分"),a>0&&(r+=Math.floor(a)+"秒")),r}static timestampToTime(){var t=new Date,e=Date.parse(t.toString());e/=1e3;var a=new Date(1e3*e);return(a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-"+((a.getDate()<10?"0"+a.getDate():a.getDate())+" ")+((a.getHours()<10?"0"+a.getHours():a.getHours())+":")+(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes())}static curTime(){var t=new Date,e=Date.parse(t.toString());e/=1e3;var a=new Date(1e3*e);return a.getFullYear()+"-"+((a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-")+((a.getDate()<10?"0"+a.getDate():a.getDate())+" ")+((a.getHours()<10?"0"+a.getHours():a.getHours())+":")+((a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes())+":")+(a.getSeconds()<10?":0"+a.getSeconds():a.getSeconds())}}t("default",n),n.moveLocPos=new o,n._sms=0,r._RF.pop()}}}));

System.register("chunks:///_virtual/GBaseData.ts",["cc"],(function(t){"use strict";var e,s;return{setters:[function(t){e=t.cclegacy,s=t._decorator}],execute:function(){var a;e._RF.push({},"f2783ltxttPCI/yZUqDWN4x","GBaseData",void 0);const{ccclass:c,property:r}=s;t("default",c(a=class t{loadfromSave(e){for(let s in this)if(null!=e[s]){let a=this[s];a instanceof t?a.loadfromSave(e[s]):this[s]=e[s]}}})||a);e._RF.pop()}}}));

System.register("chunks:///_virtual/GBaseUI.ts",["cc"],(function(e){"use strict";var t,s,c;return{setters:[function(e){t=e.cclegacy,s=e.Component,c=e._decorator}],execute:function(){var o;t._RF.push({},"d73caN+ZK5Kf7SOOhd8C0gE","GBaseUI",void 0);const{ccclass:r,property:n}=c;e("default",r(o=class extends s{closeUI(){this.node.destroy()}})||o);t._RF.pop()}}}));

System.register("chunks:///_virtual/GBoardChess.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ADSDK.ts","./AudioMng.ts","./GameUtil.ts","./ResMng.ts","./UISetting.ts","./UITips.ts","./GameMng.ts","./CanjuModel.ts","./ChessMng.ts","./UIDiffSel.ts","./ChessPos.ts","./Search.ts","./ChessRBSel.ts","./UIjiesuan.ts","./ChessThink.ts","./clientEvent.ts","./constant.ts","./UIManager.ts","./waitFirend.ts","./UIDialog.ts","./ScenceMng.ts","./setupData.ts","./msgManager.ts","./settlementData.ts","./Tools.ts","./waitView.ts","./waitJifen.ts","./wait_tongqian.ts"],(function(t){"use strict";var e,s,i,o,a,n,h,r,l,u,c,_,m,d,p,v,g,f,w,S,b,y,I,N,T,q,E,C,M,G,P,A,D,B,R,L,H,k,F,U,V,j,z,O,Y,Q,J;return{setters:[function(t){e=t.applyDecoratedDescriptor,s=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Node,a=t.Prefab,n=t.SpriteFrame,h=t._decorator,r=t.Component,l=t.instantiate,u=t.director,c=t.Director,_=t.Vec3,m=t.UITransform,d=t.Sprite,p=t.tween,v=t.size},function(t){g=t.default},function(t){f=t.default},function(t){w=t.default},function(t){S=t.ResMng},function(t){b=t.default},function(t){y=t.default},function(t){I=t.GameMng,N=t.quit_chess_show_view},function(t){T=t.default},function(t){q=t.default,E=t.ChessType},function(t){C=t.default},function(t){M=t.default},function(t){G=t.default},function(t){P=t.default},function(t){A=t.UIjiesuan},function(t){D=t.ChessThink},function(t){B=t.ClientEvent},function(t){R=t.Constant,L=t.robot_ai_level},function(t){H=t.UIManager},function(t){k=t.waitFirend},function(t){F=t.default},function(t){U=t.default},function(t){V=t.setupData},function(t){j=t.msgManager},function(t){z=t.settlementData},function(t){O=t.Tools},function(t){Y=t.waitView},function(t){Q=t.waitJifen},function(t){J=t.wait_tongqian}],execute:function(){var W,x,K,Z,X,$,tt,et,st,it,ot,at,nt,ht,rt,lt,ut,ct,_t,mt,dt,pt,vt,gt,ft,wt,St,bt,yt,It,Nt,Tt,qt,Et,Ct,Mt,Gt,Pt,At;i._RF.push({},"a4788NlA2lEzaKlCT2IdDHP","GBoardChess",void 0);const{ccclass:Dt,property:Bt}=h;var Rt=106,Lt=["oo",null,null,null,null,null,null,null,"hj","hs","hx","hm","hc","hp","hz",null,"bj","bs","bx","bm","bc","bp","bz",null],Ht=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function kt(t){return 0!=Ht[t]}function Ft(t){return 5+(function(t){return 15&t}(t)-3)*Rt}function Ut(t){return-(10+(function(t){return t>>4}(t)-3)*Rt)}function Vt(t){return 255&t}function jt(t){return t>>8}function zt(t){return 8+(t<<3)}function Ot(t,e){return t+(e<<8)}t("default",(W=Bt(o),x=Bt(a),K=Bt(a),Z=Bt(a),X=Bt(a),$=Bt(o),tt=Bt(o),et=Bt(o),st=Bt(o),it=Bt(o),ot=Bt(o),at=Bt(o),nt=Bt(o),ht=Bt(n),rt=Bt(o),lt=Bt(o),ut=Bt(o),ct=Bt(o),Dt(((At=class t extends r{constructor(...t){super(...t),this.isComputerMoveing=!1,s(this,"bottom_node",dt,this),s(this,"JueshaAniPrefab",pt,this),s(this,"FaceKingPrefab",vt,this),s(this,"startGameAniPrefab",gt,this),s(this,"chiAniPrefab",ft,this),s(this,"GBoardChess",wt,this),s(this,"chessNode",St,this),s(this,"chess_nor_Node",bt,this),s(this,"wait_haoyou",yt,this),s(this,"wait_jifen",It,this),s(this,"wait_renji",Nt,this),s(this,"wait_tongqian",Tt,this),s(this,"chatNode",qt,this),s(this,"select_chess_icon",Et,this),s(this,"jiesuan_node",Ct,this),s(this,"headNode",Mt,this),s(this,"uiLayer",Gt,this),s(this,"chat_view",Pt,this),this.pos=null,this.search=null,this.imgSquares=[],this.sqSelected=0,this.mvLast=0,this.millis=0,this.computer=0,this.result=0,this.busy=!1,this.animated=!1,this.moveNode=null,this.isStartGame=!1,this.isStartFirstGame=!0,this.selfLaseSelectNode=null,this.wait_rival_status=0,this.wait_rival_startGame_status=0,this.tempsqSelected=0,this.tempsqDes=0,this.gTime=0,this.isend=!1,this.bushu=0,this.result_pos=[],this.last_settlementData=null,this.who_round=0,this.round_id=0,this.moveCallfun=null,this.rund_number=0,this.heqi_number=0,this.huiqi_number=0,this.huiqi_setup=0,this.moveList=[],this.mv_rival_last=0,this.mv_self_last=0}start(){t.instance=this,this.moveNode=l(this.chessNode),this.initNeed(),this.setTitlelabel(),this.startGame(),this.regMsg()}regMsg(){B.on(R.EVENT_TYPE.MSG_ROOM_STATUS,this.recv_room_status,this),B.on(R.EVENT_TYPE.MSG_DISMISS_ROOM,this.recv_room_dismiss,this),B.on(R.EVENT_TYPE.MSG_OWN_PLAYCHESS,this.recv_own_playchess,this),B.on(R.EVENT_TYPE.MSG_RIVAL_PLAYCHESS,this.recv_rival_playchess,this),B.on(R.EVENT_TYPE.MSG_SETTLEMENT,this.recv_settlement,this),B.on(R.EVENT_TYPE.MSG_QUIT_ROOM,this.recvQuit,this),B.on(R.EVENT_TYPE.MSG_PVP_TIME,this.recv_time_count,this),B.on(R.EVENT_TYPE.MSG_HEQI_JIESHOU,this.recv_jieshou_heqi_game,this),B.on(R.EVENT_TYPE.MSG_HUIQI_JIESHOU,this.recv_jieshou_huiqi_game,this),B.on(R.EVENT_TYPE.MSG_HEQI_TONGZHI,this.recv_tongzhi_heqi_game,this),B.on(R.EVENT_TYPE.MSG_HUIQI_TONGZHI,this.recv_tongzhi_huiqi_game,this),B.on(R.EVENT_TYPE.MSG_START_HUIQI,this.recv_start_huiqi,this),B.on(R.UI_EVENT.UI_MSG_BTN_HEQI,this.onBtnHeQi,this),B.on(R.UI_EVENT.UI_MSG_BTN_HUIQI,this.onBtnHuiQi,this),B.on(R.UI_EVENT.UI_MSG_BTN_SHOW_CHAT,this.onBtnShowChat,this),B.on(R.UI_EVENT.UI_MSG_BTN_HIDE_CHAT,this.onBtnHideChat,this)}onDestroy(){t.instance=null,B.off(R.EVENT_TYPE.MSG_ROOM_STATUS,this.recv_room_status,this),B.off(R.EVENT_TYPE.MSG_DISMISS_ROOM,this.recv_room_dismiss,this),B.off(R.EVENT_TYPE.MSG_OWN_PLAYCHESS,this.recv_own_playchess,this),B.off(R.EVENT_TYPE.MSG_RIVAL_PLAYCHESS,this.recv_rival_playchess,this),B.off(R.EVENT_TYPE.MSG_SETTLEMENT,this.recv_settlement,this),B.off(R.EVENT_TYPE.MSG_QUIT_ROOM,this.recvQuit,this),B.off(R.EVENT_TYPE.MSG_PVP_TIME,this.recv_time_count,this),B.off(R.EVENT_TYPE.MSG_HEQI_JIESHOU,this.recv_jieshou_heqi_game,this),B.off(R.EVENT_TYPE.MSG_HUIQI_JIESHOU,this.recv_jieshou_huiqi_game,this),B.off(R.EVENT_TYPE.MSG_HUIQI_TONGZHI,this.recv_tongzhi_huiqi_game,this),B.off(R.EVENT_TYPE.MSG_START_HUIQI,this.recv_start_huiqi,this),B.off(R.UI_EVENT.UI_MSG_BTN_HEQI,this.onBtnHeQi,this),B.off(R.UI_EVENT.UI_MSG_BTN_HUIQI,this.onBtnHuiQi,this),B.off(R.UI_EVENT.UI_MSG_BTN_SHOW_CHAT,this.onBtnShowChat,this),B.off(R.UI_EVENT.UI_MSG_BTN_HIDE_CHAT,this.onBtnHideChat,this)}onBtnShowChat(){this.chat_view.active=!0}onBtnHideChat(){this.chat_view.active=!1}onBtnHuiQi(){j.qingqiu_huiqi_game(),Y.Show("等待对方是否同意悔棋。")}onBtnHeQi(){j.qingqiu_heqi_game(),Y.Show("等待对方是否同意和棋。")}checkWaitStatus(){if(null!=I._userData.room_info.chess&&null!=I._userData.room_info.chess.wait_select_result&&null!=I._userData.room_info.chess.wait_select_result)switch(I._userData.room_info.chess.wait_select_result){case 0:Y.Show("等待对方是否同意悔棋。");break;case 1:Y.Show("等待对方是否同意和棋。");break;case 2:this.recv_jieshou_huiqi_game();break;case 3:this.recv_jieshou_heqi_game()}}recv_start_huiqi(t){var e=Ot(t.src_pos,t.dec_pos);this.huiqi_setup=t.huiqi_setup+1,this.pos.pushMvList(e),t.userid!=I._userData.userid?(console.log("开始对方开始悔棋",t),this.huiqi(!0)):(this.huiqi(!1),console.log("开始我方开始悔棋",t)),console.log("move_data",e),this.who_round=1-this.who_round,!0===this.isStartGame&&this.headNode.getComponent(D).startThink(!0)}recv_tongzhi_heqi_game(t){0===t.type?y.show("对方拒绝和棋"):1===t.type&&y.show("协商和棋，对局结束"),H.removeWaitViewLayer(),this.heqi_number-=1}recv_tongzhi_huiqi_game(t){console.log("recv_tongzhi_huiqi_game",t.type),0===t.type?(y.show("对方拒绝悔棋"),this.huiqi_number-=1):1===t.type?(y.show("对方同意悔棋"),this.huiqi_number-=1):2===t.type&&y.show("悔棋请求超时！"),H.removeWaitViewLayer()}recv_jieshou_heqi_game(){F.Show((()=>{j.tongzhi_heqi_game(1)}),(()=>{j.tongzhi_heqi_game(0)}),"对方请求提和，是否同意",null,!0)}recv_jieshou_huiqi_game(){this.computerMove()?j.tongzhi_huiqi_game(2):F.Show((()=>{j.tongzhi_huiqi_game(1)}),(()=>{j.tongzhi_huiqi_game(0)}),"对方请求悔棋，是否同意",null,!0)}recv_time_count(t){I._userData.room.time_count_data=t,this.round_id!=t.round_id&&(this.round_id=t.round_id),this.headNode.getComponent(D).startThink(!1),t.round_id===I._userData.userid?(console.log("我的回合",t),this.who_round=1):(this.who_round=0,console.log("对方回合",t)),this.updateRound()}recvQuit(t={type:0}){0===t.type||(I.Instance.quit_view=N.beitichu),q.Instance.chesstype=E._null,I._userData.room=null,f.Instance.PlayBGM(I.Instance.mainbgm),U.Instance.load("GameLaunch")}recv_own_playchess(t){console.log("自己完成下棋",t.userid),this.mv_self_last=Ot(t.src_pos,t.dec_pos),this.who_round=0,this.updateRound(),this.rund_number=t.rund_number,!0===this.isStartGame&&(null==t.pvp_time||null==t.pvp_time||(I._userData.room.time_count_data=t.pvp_time),this.headNode.getComponent(D).startThink(!0,!0))}recv_settlement(t){if(null==I._userData.room);else{H.removeDialogViewLayer(),H.removeWaitViewLayer(),this.headNode.getComponent(D).stopThink(),console.log("结算",t),this.last_settlementData=t,this.moveList.length>0?this.moveCallfun=()=>{console.log("移动完，开始结算！"),this.settlement(t)}:this.settlement(t),this.isStartGame=!1,I._userData.room.rival;let e=this;this.scheduleOnce((()=>{q.Instance.isHaoyouRoom()?(this.wait_haoyou.active=!0,e.wait_haoyou.getComponent(k).recvAgainRound(I._userData.room)):q.Instance.isJiFenRoom()?(this.showWaitJiFen(),e.wait_jifen.getComponent(Q).recvAgainRound(I._userData.room)):q.Instance.isTongqianRoom()&&(this.showWaitTongQian(),e.wait_tongqian.getComponent(J).recvAgainRound(I._userData.room))}),3),I._userData.room.time_count_data=null}}recv_rival_playchess(t){if(this.who_round=1,this.updateRound(),1==this.isStartGame){var e=this;this.moveList.push("0"),this.mv_rival_last=Ot(t.src_pos,t.dec_pos),u.once(c.EVENT_AFTER_DRAW,(function(){e.addMove(Ot(t.src_pos,t.dec_pos),!0)})),console.log("对手下棋了",t),this.rund_number=t.rund_number,!0===this.isStartGame&&(null==t.pvp_time||null==t.pvp_time||(I._userData.room.time_count_data=t.pvp_time),this.headNode.getComponent(D).startThink(!0,!0)),B.dispatchEvent(R.UI_EVENT.UI_MSG_UPDATE_MENU_STATUS)}}recv_room_dismiss(t){I._userData.room=null,F.Show((()=>{f.Instance.PlayBGM(I.Instance.mainbgm),U.Instance.load("GameLaunch")}),(()=>{}),"房间已解散",null,!1)}recv_room_status(t){H.removeLoadingLayer(),I.updateRoomData(t),this.headNode.getComponent(D).StatusShow(),this.onRecvStartGame(t)}onRecvStartGame(t){q.Instance.isHaoyouRoom()?this.wait_haoyou.getComponent(k).recvReady(t):q.Instance.isJiFenRoom()?this.wait_jifen.getComponent(Q).recvReady(t):q.Instance.isTongqianRoom()&&this.wait_tongqian.getComponent(J).recvReady(t),console.log("this.isStartGame== ",this.isStartGame,t.wait_rival_startGame_status,t.rival),3!==t.wait_rival_startGame_status||this.isStartGame||(this.isStartGame=!0,this.userReadyStartGame(),this.headNode.getComponent(D).startThink(!0),1===t.isfirst_start&&this.onstartGameAni()),void 0===t.rival||t.rival}startGame(){q.Instance.chesstype==E.renjiboyi?(this.ShowRoleSel(),this.isStartGame=!0):this.initChessBoard()}countTime(){this.isend||this.gTime++}ShowRoleSel(){t.instance.initChessBoard()}updateWaitStatus(){q.Instance.chesstype==E.renjiboyi?(this.isStartGame=!0,this.onstartGameAni()):(this.wait_rival_status=I._userData.room.wait_rival_status,this.wait_rival_startGame_status=I._userData.room.wait_rival_startGame_status,this.onRecvStartGame(I._userData.room)),this.headNode.getComponent(D).StatusShow()}setTitlelabel(){}initChessInfo(){this.isComputerMoveing=!1,this.busy=!1,this.isend=!1,this.huiqi_setup=0,this.gTime=0,this.millis=this.getDiff(),this.bushu=0,this.setTitlelabel(),this.hideAllTrack(),this.hideAllPath(),this.result=0,this.round_id=-1,this.rund_number=0,this.heqi_number=0,this.huiqi_number=0,console.log("initChessInfo")}hideAllChess(){if(this.imgSquares.length>0)for(let t=0;t<this.imgSquares.length;t++){const e=this.imgSquares[t];null!=e&&(e.active=!1)}}showAllChess(){if(this.imgSquares.length>0)for(let t=0;t<this.imgSquares.length;t++){const e=this.imgSquares[t];null!=e&&(e.active=!0)}}initChessBoard(){this.initChessInfo(),f.Instance.PlayBGM(I.Instance.gamebgm),console.log(this.millis),q.Instance.chesstype==E.canju&&(P.selIndex=0),this.showHuiheLabel(0==P.selIndex),this.refreshBushulabel(),q.Instance.chesstype==E.renjiboyi?(this.pos.fromFen("rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1"),this.computer=1-P.selIndex,this.flushBoard()):q.Instance.chesstype==E.canju?this.pos.fromFen(T.Instance.canjuData.fen):q.Instance.isHaoyouRoom()?this.showWaitHaoYou():q.Instance.isJiFenRoom()?this.showWaitJiFen():q.Instance.isTongqianRoom()&&this.showWaitTongQian(),this.updateWaitStatus(),setTimeout((()=>{this.response()}),500)}userReadyStartGame(){q.Instance.chesstype==E.renjiboyi||(q.Instance.isHaoyouRoom()?(this.showAllChess(),this.wait_haoyou.active=!1):q.Instance.isJiFenRoom()?(this.showAllChess(),this.wait_jifen.active=!1):q.Instance.isTongqianRoom()&&(this.showAllChess(),this.wait_tongqian.active=!1)),this.isStartFirstGame||(console.log("第二次初始化棋盘"),this.initChessInfo()),this.computer=I._userData.room.firstid,this.busy=0==I._userData.room.firstid,this.who_round=I._userData.room.firstid,this.updateRound(),this.heqi_number=I._userData.room.heqi_number,this.huiqi_number=I._userData.room.huiqi_number,this.huiqi_setup=I._userData.room.huiqi_setup,null!=I._userData.room.chess&&t.g_isStartFirstGame?(""===I._userData.room_info.chess.chess_whole||void 0===I._userData.room_info.chess.chess_whole||null===I._userData.room_info.chess.chess_whole?this.pos.fromFen("rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1"):(this.pos.fromFen(I._userData.room_info.chess.chess_whole),this.pos.pushMvList(Ot(I._userData.room_info.chess.src_pos,I._userData.room_info.chess.dec_pos)),this.drawOldAndNewSelect(I._userData.room_info.chess.src_pos,I._userData.room_info.chess.dec_pos,!0)),this.rund_number=I._userData.room_info.chess.rund_number,this.heqi_number=I._userData.room_info.chess.heqi_number,this.huiqi_number=I._userData.room_info.chess.huiqi_number,this.checkWaitStatus()):this.pos.fromFen("rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1"),this.flushBoard(),this.isStartFirstGame=!1,t.g_isStartFirstGame=!1}showWaitHaoYou(){this.isStartFirstGame&&(this.bottom_node.active=!1,this.wait_haoyou.active=!0,this.chatNode.active=!0)}showWaitJiFen(){this.bottom_node.active=!1,this.wait_haoyou.active=!1,this.chatNode.active=!0,this.wait_jifen.active=!0}showWaitTongQian(){this.bottom_node.active=!1,this.wait_haoyou.active=!1,this.chatNode.active=!0,this.wait_jifen.active=!1,this.wait_tongqian.active=!0}restartGame(){f.Instance.PlaySoundByName(I.Instance.buttonclick),q.Instance.chesstype===E.renjiboyi&&(this.wait_renji.active=!1),this.startGame()}retract(){f.Instance.PlaySoundByName(I.Instance.buttonclick),this.busy||this.isStartGame&&(this.result=0,this.pos.mvList.length>1&&this.pos.undoMakeMove(),this.pos.mvList.length>1&&this.computerMove()&&this.pos.undoMakeMove(),this.mvLast>0&&(this.drawSquare(Vt(this.mvLast),!1,!1),this.drawSquare(jt(this.mvLast),!1,!1),this.drawOldAndNewSelect(Vt(this.mvLast),jt(this.mvLast),!1)),this.flushBoard(),this.response(),this.hideAllPath(),console.log("this.mvLast == ",this.mvLast))}tishi(){f.Instance.PlaySoundByName(I.Instance.buttonclick),this.busy||this.isComputerMoveing||g.Share(null,(()=>{this.isComputerMoveing=!0,console.log("tishi"),this.search.searchMain(4,400,(t=>{this.addMove(t,!1)&&this.hideAllPath()}))}),null)}getDiff(){return Math.pow(10,C.selectIndex+1)}initNeed(){this.animated=!0,this.search=null,this.imgSquares=[],this.sqSelected=0,this.mvLast=0,this.millis=0,this.computer=-1,this.result=0,this.busy=!1,this.pos=new M,this.setSearch(16);for(let t=0;t<256;t++){if(!kt(t)){this.imgSquares.push(null);continue}let e=l(this.chess_nor_Node);e.position=new _(Ft(t),Ut(t)),e.getComponent(m).setContentSize(Rt,Rt),e.parent=this.GBoardChess,e.getChildByName("chess_bg").getComponent(d).enabled=!1,e.getChildByName("track1").active=!1,e.getChildByName("track2").active=!1,e.on("click",(()=>{this.clickSquare(t)}),this),this.imgSquares.push(e)}}ShowSeting(){f.Instance.PlaySoundByName(I.Instance.buttonclick),b.Show()}clickSquare(t){if(I._userData.room&&console.log(this.isStartGame,t,this.busy,this.result,this.who_round,this.sqSelected),this.isStartGame&&!this.busy&&0==this.result){var e=this.flipped(t),s=this.pos.squares[e];if(this.sqSelected!=e)if(0!=(s&zt(this.pos.sdPlayer))){console.log("111"),this.hideAllPath(),f.Instance.PlaySoundByName(I.Instance.pickclip),this.sqSelected&&this.drawSquare(this.sqSelected,!1,!0),this.drawSquare(e,!0,!0);var i=this.findAllCanMove(e);this.drawCanMovePath(i),this.sqSelected=e}else this.sqSelected>0&&(console.log("222"),this.tempsqSelected=this.sqSelected,this.tempsqDes=e,this.addMove(Ot(this.sqSelected,e),!1)&&this.hideAllPath())}}FaceKingWarning(){let t=l(this.FaceKingPrefab);t.parent=this.node,p().target(t).to(.5,{scale:new _(1,1,1)}).start(),f.Instance.PlaySoundByName(I.Instance.kingclip)}onstartGameAni(){let t=l(this.startGameAniPrefab);t.parent=this.node,p().target(t).to(.5,{scale:new _(1,1,1)}).start(),console.log("onstartGameAni")}onchiGameAni(){let t=l(this.chiAniPrefab);t.parent=this.node,p().target(t).to(.5,{scale:new _(1,1,1)}).start(),console.log("onchiGameAni"),f.Instance.PlaySoundByName(I.Instance.eatclip)}onJueShaAni(){let t=l(this.JueshaAniPrefab);t.parent=this.node,p().target(t).to(.5,{scale:new _(1,1,1)}).start(),console.log("onJueShaAni"),f.Instance.PlaySoundByName(I.Instance.kill)}settlement(t){if(f.Instance.PauseBGM(),this.result_pos=O.getChessPos(),this.isend=!0,q.Instance.chesstype===E.renjiboyi)t.isheqi||(f.Instance.PlaySoundByName(I.Instance.kill),this.onJueShaAni(),this.jiesuan_node.active=!0,this.jiesuan_node.getComponent(A).setData(t,w.FormatTime_HHMMSS(1e3*this.gTime),this.bushu));else if(q.Instance.isHaoyouRoom()||q.Instance.isJiFenRoom()||q.Instance.isTongqianRoom()){switch(t.result_type){case 0:this.onJueShaAni();break;case 1:1==t.result?y.show("对方到时间，您获得胜利！"):y.show("你的到时间，对方获得胜利！");break;case 2:1==t.result?y.show("对方逃跑，获得胜利"):y.show("你逃跑输掉比赛");break;case 3:1==t.result?y.show("对方认输，对局结束"):y.show("我方认输，对局结束");break;case 4:t.result}this.jiesuan_node.active=!0,this.jiesuan_node.getComponent(A).setData(t,w.FormatTime_HHMMSS(1e3*this.gTime),this.bushu)}}gameEnd(t,e=!1){if(this.isStartGame=!1,q.Instance.chesstype==E.renjiboyi){let s=new z;s.result=t,s.isheqi=e,this.wait_renji.active=!0,this.settlement(s)}else console.log("result == ",t),1===t||(console.log("result",t),console.log("isheqi",e))}findAllCanMove(t){return this.pos.findAllCanMove(t)}moveAni(t,e,s=!0){if(f.Instance.PlaySoundByName(I.Instance.putclip),this.busy=!0,!this.animated)return e&&(this.isComputerMoveing=!1),this.postAddMove(t,e),!1;console.log("sqSrc",t);var i=this.flipped(Vt(t)),o=Ft(i),a=Ut(i);console.log("sqSrc",o,a,e);var n=this.flipped(jt(t)),h=Ft(n),r=Ut(n);console.log("sqDst",h,r);var l=this.imgSquares[i],u=l.getChildByName("chess_bg"),c=u.getChildByName("chess_qz"),g=this.moveNode.getChildByName("chess_bg"),w=g.getChildByName("chess_qz");w.active=!0,this.moveNode.active=!0,l.active=!1,this.moveNode.removeFromParent(),this.moveNode.parent=l.parent;var S=new _(l.position.x,l.position.y,0);this.moveNode.position=S;var b=this;let y=1.04;g.getComponent(d).spriteFrame=u.getComponent(d).spriteFrame,w.getComponent(d).spriteFrame=c.getComponent(d).spriteFrame,e&&(g.getComponent(d).spriteFrame=this.select_chess_icon,w.getComponent(d).spriteFrame=c.getComponent(d).spriteFrame),g.getComponent(m).contentSize=v(112,117),w.getComponent(m).contentSize=v(90,83),w.position=new _(0,13,c.position.z),s?(g.scale=new _(y,y,y),w.scale=new _(y,y,y),p(this.moveNode).to(.2,{position:new _(h,r,0)}).delay(.1).call((()=>{e?(g.scale=new _(y,y,y),w.scale=new _(y,y,y)):(g.scale=new _(y,1.04,y),w.scale=new _(y,1.04,y))})).delay(.1).call((async()=>{g.scale=new _(1.1,1.1,1.1),w.scale=new _(1.1,1.1,1.1),e&&(b.isComputerMoveing=!1);var s=b.postAddMove(t,e);if(!e&&(q.Instance.isJiFenRoom()||q.Instance.isHaoyouRoom()||q.Instance.isTongqianRoom())){let e=new V;e.src_pos=Vt(t),e.dec_pos=jt(t),e.chess_whole=this.pos.toFen(),e.is_mate=s?0:1,1==I._userData.room.firstid?e.des_who="我是红方":e.des_who="我是黑方",null!=I._userData.room&&null!=I._userData.room.rival&&(1===I._userData.room.rival.is_robot?(e.robot_data=await this.robot_search(e.chess_whole,e.is_mate),console.log("给人机插入数据","给人机插入数据")):console.log("人机数据插入空值","人机数据插入空值")),this.send_msg_self_move(e)}b.moveList.splice(0,1),null!=b.moveCallfun&&(b.moveCallfun(),b.moveCallfun=null),b.moveNode.active=!1,l.active=!0})).start()):p(this.moveNode).to(.2,{position:new _(h,r,0)}).call((()=>{this.busy=!1,b.moveNode.active=!1,l.active=!0,p(this.moveNode).to(.1,{position:S}).start()})).start()}robot_search(t,e){if(1===e){let e=new V;return e.is_mate=0,void(e.chess_whole=t)}return new Promise(((e,s)=>{this.scheduleOnce((()=>{var s=new G,i=new M;switch(i.fromFen(t),s.setSearch(i,1),I._userData.room.rival.robot_ai_lv){case L.xiaobai:return void s.xiaoBaiSearchMain((t=>{u.once(c.EVENT_AFTER_DRAW,(function(){let s=new V;s.src_pos=Vt(t),s.dec_pos=jt(t),i.makeMove(t)||(s.src_pos=0,s.dec_pos=0),s.is_mate=i.isMate()?1:0,s.chess_whole=i.toFen(),e(s)}))}))}s.searchMain(I._userData.room.rival.robot_ai_lv,400,(t=>{var s=new V;s.src_pos=Vt(t),s.dec_pos=jt(t),i.makeMove(t)||(s.src_pos=0,s.dec_pos=0),s.is_mate=i.isMate()?1:0,s.chess_whole=i.toFen(),e(s)}))}),0)}))}send_msg_self_move(t){(q.Instance.isHaoyouRoom()||q.Instance.isJiFenRoom()||q.Instance.isTongqianRoom())&&j.sendPlayChess(t)}addMove(t,e){return console.log("addMove",t),this.pos.legalMove(t)?this.pos.makeMove(t)?(this.moveAni(t,e),!0):(y.show("不能送将！"),this.moveAni(t,e,!1),!1):(console.log("不合法",t),this.moveAni(t,e,!1),!1)}showHuiheLabel(t){}drawOldAndNewSelect(t,e,s){let i=this.imgSquares[this.flipped(t)],o=this.imgSquares[this.flipped(e)];s?(i.getChildByName("track1").active=!0,i.getChildByName("track2").active=!1,o.getChildByName("track1").active=!1,o.getChildByName("track2").active=!0):(i.getChildByName("track1").active=!1,i.getChildByName("track2").active=!1,o.getChildByName("track1").active=!1,o.getChildByName("track2").active=!1)}postAddMove(t,e){if(this.showHuiheLabel(e),this.mvLast>0&&(this.drawSquare(Vt(this.mvLast),!1,!1),this.drawSquare(jt(this.mvLast),!1,!1),this.drawOldAndNewSelect(Vt(this.mvLast),jt(this.mvLast),!1)),this.mv_self_last>0&&this.drawOldAndNewSelect(Vt(this.mv_self_last),jt(this.mv_self_last),!1),this.mv_rival_last>0&&this.drawOldAndNewSelect(Vt(this.mv_rival_last),jt(this.mv_rival_last),!1),this.drawSquare(Vt(t),!0,!1),this.drawSquare(jt(t),!0,!1),this.drawOldAndNewSelect(Vt(t),jt(t),!0),this.sqSelected=0,this.mvLast=t,this.pos.isMate()){this.result=e?3:1;for(var s=zt(this.pos.sdPlayer)+0,i=0;i<256;i++)if(this.pos.squares[i]==s){i;break}return this.animated,this.postMate(e),!1}if(this.pos.captured()){var o=!1;for(i=0;i<256;i++)if(kt(i)&&(7&this.pos.squares[i])>2){o=!0;break}if(!o)return y.show("双方都没有进攻棋子了，作和！"),this.heqi(),!1}else if(this.pos.pcList.length>100){for(var a=!1,n=2;n<=100;n++)if(this.pos.pcList[this.pos.pcList.length-n]>0){a=!0;break}if(!a)return y.show("超过自然限着，作和"),this.heqi(),!1}return this.pos.inCheck()?this.FaceKingWarning():this.pos.captured()&&this.onchiGameAni(),this.bushu++,this.refreshBushulabel(),this.response(),!0}refreshBushulabel(){}heqi(){this.result=2,this.busy=!1,E.renjiboyi===q.Instance.chesstype?this.gameEnd(0,!0):0==I._userData.room.firstid&&j.heqi_game()}postMate(t){if(console.log("移动的是不是电脑",t,this.result),E.renjiboyi===q.Instance.chesstype){let e=t?1:0;this.gameEnd(e)}else t||this.postMateNew();this.busy=!1}postMateNew(){console.log("result",this.result),this.busy=!1}setSearch(t){this.search=0==t?null:new G,this.search.setSearch(this.pos,t)}updateRound(){(q.Instance.isHaoyouRoom()||q.Instance.isJiFenRoom()||q.Instance.isTongqianRoom())&&(1===this.who_round?this.busy=!1:this.busy=!0)}response(){if(null!=I._userData.room&&console.log("谁的回合",I._userData.room.round),null!=this.search&&this.computerMove()){var t=this;this.busy=!0,setTimeout((()=>{q.Instance.chesstype==E.renjiboyi?0==C.selectIndex?t.search.xiaoBaiSearchMain((e=>{u.once(c.EVENT_AFTER_DRAW,(function(){t.addMove(e,!0)}))})):t.search.searchMain(C.selectIndex+1,t.millis,(e=>{u.once(c.EVENT_AFTER_DRAW,(function(){t.addMove(e,!0)}))})):q.Instance.isHaoyouRoom()&&console.log("轮到好友走棋子")}),200)}else this.busy=!1}computerMove(){if(null===I._userData.room||void 0===I._userData.room)return this.pos.sdPlayer==this.computer;if(q.Instance.chesstype==E.renjiboyi);else if(q.Instance.isHaoyouRoom()||q.Instance.isJiFenRoom()||q.Instance.isTongqianRoom())return this.pos.sdPlayer==I._userData.room.firstid;return this.pos.sdPlayer==this.computer}flushBoard(){this.mvLast=this.pos.mvList[this.pos.mvList.length-1];for(var t=0;t<256;t++)kt(t)&&this.drawSquare(t,t==Vt(this.mvLast)||t==jt(this.mvLast),!1)}drawCanMovePath(t){for(var e=0;e<t.length;e++){var s=t[e],i=this.imgSquares[this.flipped(s)];i&&(i.getChildByName("path").active=!0)}}hideAllPath(){for(let t=0;t<this.imgSquares.length;t++){const e=this.imgSquares[t];e&&(e.getChildByName("path").active=!1)}}hideAllTrack(){for(let t=0;t<this.imgSquares.length;t++){const e=this.imgSquares[t];e&&(e.getChildByName("track1").active=!1,e.getChildByName("track2").active=!1)}}drawSquare(t,e,s){var i=this.imgSquares[this.flipped(t)],o=i.getChildByName("chess_bg").getComponent(d),a=o.node.getChildByName("chess_qz").getComponent(d);let n=Lt[this.pos.squares[t]];var h=i.getChildByName("chess_put_down_shadow");"oo"==n?(o.enabled=!1,a.node.active=!1,h.active=!1):S.LoadImg(n,a,(()=>{this.moveNode.active=!1,o.enabled=!0,h.active=!0,a.node.active=!0}),this),e?s&&("oo"==n||S.LoadImg("s_"+n,a,(()=>{a.node.getComponent(m).width=90,a.node.getComponent(m).height=83,a.node.position=new _(a.node.position.x,13,a.node.position.z)}),this),o.node.getComponent(m).width=112,o.node.getComponent(m).height=117,o.spriteFrame=this.select_chess_icon):(a.node.getComponent(m).width=80,a.node.getComponent(m).height=79,a.node.position=new _(a.node.position.x,10,a.node.position.z),o.spriteFrame=this.moveNode.getChildByName("chess_bg").getComponent(d).spriteFrame,o.node.getComponent(m).width=104,o.node.getComponent(m).height=107)}flipped(t){return 0==this.computer?function(t){return 254-t}(t):t}huiqi(t){this.result=0,this.pos.mvList.length>1&&this.pos.undoMakeMove(),this.flushBoard(),this.hideAllPath(),console.log("isReSelf",t),console.log("this.mvLast",this.mvLast),this.mvLast>0&&(this.drawSquare(Vt(this.mvLast),!1,!1),this.drawSquare(jt(this.mvLast),!1,!1),this.drawOldAndNewSelect(Vt(this.mvLast),jt(this.mvLast),!1)),t?this.mv_self_last>0&&(this.mvLast=this.mv_rival_last,this.drawOldAndNewSelect(Vt(this.mv_self_last),jt(this.mv_self_last),!0)):this.mv_rival_last>0&&this.drawOldAndNewSelect(Vt(this.mv_rival_last),jt(this.mv_rival_last),!0),this.response(),console.log("this.mvLast == ",this.mvLast)}}).instance=null,At.g_isStartFirstGame=!0,dt=e((mt=At).prototype,"bottom_node",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pt=e(mt.prototype,"JueshaAniPrefab",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),vt=e(mt.prototype,"FaceKingPrefab",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),gt=e(mt.prototype,"startGameAniPrefab",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ft=e(mt.prototype,"chiAniPrefab",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),wt=e(mt.prototype,"GBoardChess",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),St=e(mt.prototype,"chessNode",[tt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),bt=e(mt.prototype,"chess_nor_Node",[et],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),yt=e(mt.prototype,"wait_haoyou",[st],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),It=e(mt.prototype,"wait_jifen",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Nt=e(mt.prototype,"wait_renji",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Tt=e(mt.prototype,"wait_tongqian",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qt=e(mt.prototype,"chatNode",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Et=e(mt.prototype,"select_chess_icon",[ht],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ct=e(mt.prototype,"jiesuan_node",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Mt=e(mt.prototype,"headNode",[lt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Gt=e(mt.prototype,"uiLayer",[ut],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pt=e(mt.prototype,"chat_view",[ct],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_t=mt))||_t));i._RF.pop()}}}));

System.register("chunks:///_virtual/GDSave.ts",["cc","./GBaseData.ts"],(function(t){"use strict";var e,s;return{setters:[function(t){e=t.cclegacy},function(t){s=t.default}],execute:function(){e._RF.push({},"d2d3a6E3wRKdqF3dK1Tg3oN","GDSave",void 0);t("default",class extends s{constructor(...t){super(...t),this.customData={}}}),e._RF.pop()}}}));

System.register("chunks:///_virtual/Group.ts",["cc","./enum.ts"],(function(e){"use strict";var i,t;return{setters:[function(e){i=e.cclegacy},function(e){t=e.StretchDirection}],execute:function(){i._RF.push({},"c701cxQvelFbLzv3DVRhj2t","Group",void 0);e("Group",class{get adapter(){return this._adapter}get index(){return this._index}get models(){return this._models}get size(){return this._size}get oldSize(){return this._oldSize}get anchorPoint(){return this._anchorPoint}get position(){return this._position}get oldPosition(){return this._oldPosition}get totalMinSize(){return this._totalMinSize}get totalPreferredSize(){return this._totalPreferredSize}get totalFlexibleSize(){return this._totalFlexibleSize}get isFixed(){return this._isFixed}get fixedIndex(){return this._fixedIndex}constructor(e){this._adapter=void 0,this._index=-1,this._models=[],this._size={x:0,y:0},this._oldSize={x:0,y:0},this._anchorPoint={x:.5,y:.5},this._position={x:0,y:0},this._oldPosition={x:0,y:0},this._totalMinSize={x:0,y:0},this._totalPreferredSize={x:0,y:0},this._totalFlexibleSize={x:0,y:0},this._isFixed=!1,this._fixedIndex=-1,this._adapter=e,this.internal_reset()}findModelIndex(e){return this.models.findIndex((i=>i.index==e))}internal_reset(){this._models=[],this._size={x:0,y:0},this._oldSize={x:0,y:0},this._anchorPoint={x:.5,y:.5},this._position={x:0,y:0},this._oldPosition={x:0,y:0},this._totalMinSize={x:0,y:0},this._totalPreferredSize={x:0,y:0},this._totalFlexibleSize={x:0,y:0},this._isFixed=!1,this._fixedIndex=-1,this._setAnchorPoint()}internal_setPosition(e){var i=this.adapter.mainAxis;this.oldPosition[i]=this.position[i],this.position[i]=e}internal_setIndex(e){this._index=e}internal_insert(e,i,t){i.internal_reset();var s=this.models;if(this.internal_reset(),this._fixedIndex=e.fixedIndex,!t)for(let t=0;t<s.length;t++){const n=s[t];if(!(n.index<e.modelIndex))break;if(!this._insertHandler(n,i))return e.modelIndex=n.index,e.fixedIndex=this.isFixed?this.index:e.fixedIndex,!0}for(let t=e.modelIndex;t<this.adapter.modelManager.length;t++){const s=this.adapter.modelManager.get(t);if(!this._insertHandler(s,i))return e.modelIndex=s.index,e.fixedIndex=this.isFixed?this.index:e.fixedIndex,s.index}return!1}internal_includes(e){for(let i=0;i<e.length;i++){const t=e[i];if(-1!=this.models.findIndex((e=>e.data==t)))return!0}return!1}_insertHandler(e,i){if(i.internal_isWrap(e,this))return i.internal_reset(),!1;i.internal_push(e),e.element.fixed&&(this._isFixed=!0,this._fixedIndex=-1);var t=this.adapter.mainAxis,s=this.adapter.crossAxis;return(!e.element.ignoreLayout||e.element.ignoreLayout&&e.element.placeholder)&&(this.size[t]=Math.max(this.size[t],e.size[t]*e.scale[t])),this.size[s]=this.adapter.crossAxisSize,this.oldSize[t]=this.size[t],this.oldSize[s]=this.size[s],this.models.push(e),!0}_setAnchorPoint(){switch(this.adapter.viewManager.stretchDirection){case t.Center:this.anchorPoint[this.adapter.mainAxis]=.5;break;case t.Header:this.anchorPoint[this.adapter.mainAxis]=1-this.adapter.mainAxisAnchorPoint;break;default:this.anchorPoint[this.adapter.mainAxis]=this.adapter.mainAxisAnchorPoint}}}),i._RF.pop()}}}));

System.register("chunks:///_virtual/helper.ts",["cc"],(function(t){"use strict";var a;return{setters:[function(t){a=t.cclegacy}],execute:function(){a._RF.push({},"d16dfIj/wBDe7lg2eRhY7du","helper",void 0);class r{static smoothStep(t,a,r){return a*(r=-2*(r=this.clamp01(r))*r*r+3*r*r)+t*(1-r)}static smoothDamp(t,a,r,e,n,i){var s=2/(e=Math.max(1e-4,e)),c=s*i,x=1/(1+c+.48*c*c+.235*c*c*c),o=t-a,p=a,u=n*e,h=(r+s*(o=this.clamp(o,0-u,u)))*i;r=(r-s*h)*x;var m=(a=t-o)+(o+h)*x;return p-t>0==m>p&&(r=((m=p)-p)/i),{velocity:r,position:m}}static clamp01(t){return this.clamp(t,0,1)}static clamp(t,a=0,r=1){return Math.min(Math.max(t,a),r)}static sign(t){return t>=0?1:-1}static lerp(t,a,r){return t+(a-t)*this.clamp01(r)}static approximately(t,a){return Math.abs(a-t)<Math.max(1e-4*Math.max(Math.abs(t),Math.abs(a)),8*this.Epsilon)}static round(t,a){return Math.round(t*Math.pow(10,a))/Math.pow(10,a)}static pingpang(t){var a=t;a=Math.abs(t);var r=Math.trunc(a);return r%2==0?a-=r:a=1-(a-r),a}static isNumber(t){return"number"==typeof t&&!isNaN(t)}static progress(t,a,r,e){return t+(a-t)*e}static getGuid(){var t=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(a){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==a?r:3&r|8).toString(16)}))}}t("Helper",r),r.Epsilon=1401298e-51,r.Infinity=1/0,a._RF.pop()}}}));

System.register("chunks:///_virtual/Holder.ts",["cc","./helper.ts","./ModelManager.ts"],(function(e){"use strict";var t,i,s,a,o,n;return{setters:[function(e){t=e.cclegacy,i=e.UITransform,s=e.Node,a=e._decorator},function(e){o=e.Helper},function(e){n=e.ModelManager}],execute:function(){var h;t._RF.push({},"06194IgtVlOubt8kvkPRvBb","Holder",void 0);const{ccclass:r,property:d}=a;e("Holder",r("Holder")(h=class{get node(){return this._node}get transform(){return this._transform}get code(){return this._code}get adapter(){return this._adapter}get model(){return this._model}get view(){return this._view}get data(){return this._model&&this._model.data}get fixedIndex(){return this._fixedIndex}get oldData(){return this._oldData}get element(){return this._model&&this._model.element}get index(){return this._model&&this._model.index}constructor(e,t,s){this._node=void 0,this._transform=void 0,this._code=void 0,this._adapter=void 0,this._model=void 0,this._view=void 0,this._fixedIndex=-1,this._oldData=null,this._oldElement=null,this._isCallCreated=!1,this._isLayout=!1,this._node=e,this._code=t,this._adapter=s,this._transform=this.node.getComponent(i)}internal_visible(e,t,i){this._view=e,this._model=t,this._oldElement=Object.assign({},t.element),this._model.element.update=this._updateElement.bind(this),this._oldData=this.data,i&&(this.node.active=!0,this._isCallCreated||(this._isCallCreated=!0,this.onCreated()),this.element.fixed&&(this._fixedIndex=this.view.group.models.findIndex((e=>e.index==this.model.index))),this.transform.setContentSize(this.model.size.x,this.model.size.y),this.node.setScale(this.model.scale.x,this.model.scale.y),this._register(),this.onVisible(),this._model.update=this._updateHandler.bind(this))}_updateElement(){this._oldElement.layer!=this.element.layer&&(this.node.parent=this.adapter.scrollManager.getLayerNode(this.element.layer),this._oldElement.layer=this.element.layer),(this._oldElement.wrapAfterMode!=this.element.wrapAfterMode||this._oldElement.wrapBeforeMode!=this.element.wrapBeforeMode||this._oldElement.ignoreLayout!=this.element.ignoreLayout||this.element.ignoreLayout&&this._oldElement.placeholder!=this.element.placeholder)&&(this.adapter.viewManager.internal_updateVisibleView(this.model.index),this._oldElement.wrapAfterMode=this.element.wrapAfterMode,this._oldElement.wrapBeforeMode=this.element.wrapBeforeMode,this._oldElement.ignoreLayout=this.element.ignoreLayout,this._oldElement.placeholder=this.element.placeholder)}_updateHandler(){this._model.update=()=>{},this.onVisible(),this._model.update=this._updateHandler.bind(this)}internal_disable(){this.adapter.scrollManager.internal_disableTouchTarget(this.node),this.onDisable(),this._unregister(),this._model.update=()=>{},this._model.element.update=()=>{},this._view=null,this._model=null,this._fixedIndex=-1,this._isLayout=!1,this._oldData=null,this.node.active=!1}internal_layout(){var e={x:this.model.size.x,y:this.model.size.y};this.adapter.layoutManager.isControlMainAxisSize&&(e[this.adapter.mainAxis]=this.model.layoutSize[this.adapter.mainAxis]),this.adapter.layoutManager.isControlCrossAxisSize&&(e[this.adapter.crossAxis]=this.model.layoutSize[this.adapter.crossAxis]),this._isLayout=!0,this.transform.setContentSize(e.x,e.y),this._isLayout=!1,this.node.setPosition(this.model.position.x,this.model.position.y)}_register(){this.node.on(s.EventType.SIZE_CHANGED,this._onSizeChanged,this),this.node.on(s.EventType.TRANSFORM_CHANGED,this._onScaleChanged,this),this.node.on(s.EventType.ANCHOR_CHANGED,this._onAnchorPointChanged,this),this._adapter.modelManager.on(n.Event.ON_UPDATE,this._updateHandler,this)}_unregister(){this.node.off(s.EventType.SIZE_CHANGED,this._onSizeChanged,this),this.node.off(s.EventType.TRANSFORM_CHANGED,this._onScaleChanged,this),this.node.off(s.EventType.ANCHOR_CHANGED,this._onAnchorPointChanged,this),this._adapter.modelManager.off(n.Event.ON_UPDATE,this._updateHandler,this)}_onSizeChanged(){if(!this._isLayout){var e=o.approximately(this.model.size[this.adapter.mainAxis],this.transform.contentSize[this.adapter.mainAxis]),t=o.approximately(this.model.size[this.adapter.crossAxis],this.transform.contentSize[this.adapter.crossAxis]);this.model.size.x=this.transform.width,this.model.size.y=this.transform.height,e&&t||this.view.internal_holderChanged(e)}}_onScaleChanged(e){if(e==s.TransformBit.SCALE&&(this.adapter.layoutManager.controlScaleWidth||this.adapter.layoutManager.controlScaleHeight)){var t=o.approximately(this.model.scale[this.adapter.mainAxis],this.node.scale[this.adapter.mainAxis]),i=o.approximately(this.model.scale[this.adapter.crossAxis],this.node.scale[this.adapter.crossAxis]);this.model.scale.x=this.node.scale.x,this.model.scale.y=this.node.scale.y,t&&i||this.view.internal_holderChanged(t)}}_onAnchorPointChanged(){var e=o.approximately(this.model.anchorPoint[this.adapter.mainAxis],this.transform.anchorPoint[this.adapter.mainAxis]),t=o.approximately(this.model.anchorPoint[this.adapter.crossAxis],this.transform.anchorPoint[this.adapter.crossAxis]);this.model.anchorPoint.x=this.transform.anchorPoint.x,this.model.anchorPoint.y=this.transform.anchorPoint.y,e&&t||this.view.internal_holderChanged(e)}})||h);t._RF.pop()}}}));

System.register("chunks:///_virtual/http.ts",["cc"],(function(t){"use strict";var e,o;return{setters:[function(t){e=t.cclegacy,o=t._decorator}],execute:function(){var s;e._RF.push({},"3cbbevk6fBN0bFZt79KbKI3","http",void 0);const{ccclass:n,property:a}=o;t("http",n("http")(s=class{static login(){var t=new XMLHttpRequest;t.open("POST","http://120.79.128.142:9502/api/v1/login"),t.setRequestHeader("Content-Type","text/plain"),t.send("{“token”:””,”wx_openid”:””,”wx_name”:””,”wx_avatar”:””,”ios_openid”:””,”account”:”13412598083”,”verify_code”:”1234”}");["loadstart","abort","error","load","loadend","timeout"].forEach((function(e){t["on"+e]=function(){var t="\nEvent : "+e,o="";"timeout"===e?o+="(timeout)":"loadend"===e&&(o+="...loadend!"),console.log("str==",t),console.log("lstr==",o)}})),t.onreadystatechange=function(){4===t.readyState&&t.status>=200?console.log("xml.responseText==",t.responseText):404===t.status?console.log("status ==","404 page not found!"):3===t.readyState?console.log("status ==","Request dealing!"):2===t.readyState?console.log("status ==","Request received!"):1===t.readyState?console.log("status ==","Server connection established! Request hasn't been received"):0===t.readyState&&console.log("status ==","Request hasn't been initiated!")}}})||s);e._RF.pop()}}}));

System.register("chunks:///_virtual/huobi_shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResMng.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,o,s,l,r,a,c,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator,l=t.Component,r=t.Label,a=t.Sprite},function(t){c=t.ResMng},function(t){u=t.UIButton}],execute:function(){var _,h,p,m,b,g,d,f,y,v,w;n._RF.push({},"92605miKD1DcbVH2tx0PfX/","huobi_shop_item",void 0);const{ccclass:z,property:C}=s;t("huobi_shop_item",(_=z("huobi_shop_item"),h=C(o),p=C(o),m=C(o),b=C(o),_((f=e((d=class extends l{constructor(...t){super(...t),i(this,"lab_name",f,this),i(this,"lab_sell",y,this),i(this,"sp_icon",v,this),i(this,"on_select_bg",w,this),this.m_item_data=null,this.m_cur_id=0}start(){u.BindClick(this.node,(()=>{this.on_select_bg.active||console.log("当前选中商品",this.m_item_data)}),this)}onSelect(){this.on_select_bg.active=!0}unSelect(){this.on_select_bg.active=!1}update(t){}show(t){this.m_item_data=t,this.lab_name.getComponent(r).string=this.m_item_data.name,this.lab_sell.getComponent(r).string=this.m_item_data.sell,c.LoadItem(this.m_item_data.id,this.sp_icon.getComponent(a))}}).prototype,"lab_name",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(d.prototype,"lab_sell",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(d.prototype,"sp_icon",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(d.prototype,"on_select_bg",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=d))||g));n._RF.pop()}}}));

System.register("chunks:///_virtual/Indicator.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ScrollAdapter.ts","./enum.ts","./PageViewManager.ts"],(function(t){"use strict";var e,i,n,o,a,r,s,l,c,h,p,u,d,g,_,y,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.SpriteFrame,a=t._decorator,r=t.Component,s=t.Color,l=t.Layout,c=t.Node,h=t.Sprite,p=t.UITransform,u=t.Button,d=t.EventHandler,g=t.Size},function(t){_=t.ScrollAdapter},function(t){y=t.IndicatorMode},function(t){f=t.PageViewManager}],execute:function(){var m,C,S,M,b,w,z,I,E,v,L;n._RF.push({},"39a65BHli1DW4GsARI0mFR5","Indicator",void 0);const{ccclass:P,property:N}=a;t("Indicator",(m=P("Indicator"),C=N(_),S=N({type:o}),M=N({type:y}),m((z=e((w=class extends r{constructor(...t){super(...t),i(this,"adapter",z,this),i(this,"spriteFrame",I,this),i(this,"indicatorMode",E,this),i(this,"cellSize",v,this),i(this,"spacing",L,this),this._indicators=[],this._layout=null,this._color=new s}get layout(){return null==this._layout&&(this._layout=this.getComponent(l)||this.addComponent(l),this.adapter.isHorizontal?(this._layout.type=l.Type.HORIZONTAL,this._layout.spacingX=this.spacing):(this._layout.type=l.Type.VERTICAL,this._layout.spacingY=this.spacing),this._layout.resizeMode=l.ResizeMode.CONTAINER),this._layout}__preload(){this.adapter&&(this.adapter.pageViewManager.on(f.Event.ON_PAGE_LENGTH_CHANGED,this._onPageLengthChanged,this),this.adapter.pageViewManager.on(f.Event.ON_SCROLL_PAGE_END,this._onScrollPageEnd,this))}_onScrollPageEnd(){this.changedState()}_onPageLengthChanged(){if(!this.adapter)return;const t=this._indicators,e=this.adapter.viewManager.groupLength;if(e===t.length)return;let i=0;if(e>t.length)for(i=0;i<e;++i)t[i]||(t[i]=this._createIndicator(i));else{for(i=t.length-e;i>0;--i){const e=t[i-1];this.node.removeChild(e.node),t.splice(i-1,1)}}this.layout&&this.layout.enabledInHierarchy&&this.layout.updateLayout(),this.changedState()}_createIndicator(t){const e=new c;e.layer=this.node.layer;const i=e.addComponent(h);i.spriteFrame=this.spriteFrame,i.sizeMode=h.SizeMode.CUSTOM,e.parent=this.node;var n=e.getComponent(p);if(n.setContentSize(this.cellSize),this.indicatorMode==y.Button){var o=e.getComponent(u)||e.addComponent(u),a=new d;a.component="Indicator",a.handler="_click",a.target=this.node,a.customEventData=t,o.clickEvents.push(a)}return n}_click(t,e){this.adapter.pageViewManager.scrollToPage(this.adapter.pageViewManager.pageTurningSpeed,e)}changedState(){const t=this._indicators;if(0===t.length||!this.adapter)return;const e=this.adapter.pageViewManager.currentIndex;if(!(e>=t.length)){for(let e=0;e<t.length;++e){const i=t[e].getComponent(h);this._color.set(i.color),this._color.a=127.5,i.color=this._color}if(t[e]){const i=t[e].getComponent(h);this._color.set(i.color),this._color.a=255,i.color=this._color}}}}).prototype,"adapter",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(w.prototype,"spriteFrame",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(w.prototype,"indicatorMode",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return y.Normal}}),v=e(w.prototype,"cellSize",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new g(10,10)}}),L=e(w.prototype,"spacing",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),b=w))||b));n._RF.pop()}}}));

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

System.register("chunks:///_virtual/invite_firend_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./enum.ts","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts","./Tools.ts","./send_firend_duizhan.ts"],(function(t){"use strict";var e,n,i,a,r,s,o,u,l,_,h,p,c,b,g,m,f,d,k,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,r=t.SpriteFrame,s=t._decorator,o=t.Component,u=t.Sprite,l=t.Label,_=t.Color},function(t){h=t.friendType},function(t){p=t.ClientEvent},function(t){c=t.xiaoxi_haoyou_status_type,b=t.Constant},function(t){g=t.GameMng},function(t){m=t.UIButton},function(t){f=t.UIManager},function(t){d=t.msgManager},function(t){k=t.Tools},function(t){y=t.send_firend_duizhan}],execute:function(){var C,v,z,w,F,j,E,M,I,D,x,B,U,H,N,R,S,T,G,P,X,A,L,O,V,Q,W,q,J;i._RF.push({},"5adb5haQbFNl6weVz6g5Byv","invite_firend_item",void 0);const{ccclass:K,property:Y}=s;t("invite_firend_item",(C=K("invite_firend_item"),v=Y(a),z=Y(a),w=Y(a),F=Y(a),j=Y(a),E=Y(a),M=Y(a),I=Y(a),D=Y(r),x=Y(r),B=Y(r),U=Y(r),H=Y(r),C((S=e((R=class extends o{constructor(...t){super(...t),n(this,"img_head",S,this),n(this,"lab_name",T,this),n(this,"lab_status",G,this),n(this,"btn_jiaohu",P,this),n(this,"rank_node",X,this),n(this,"rank_lab",A,this),n(this,"rank_spr",L,this),n(this,"img_bg",O,this),n(this,"sp_btn_add",V,this),n(this,"sp_btn_yue",Q,this),n(this,"sp_rank_1",W,this),n(this,"sp_rank_2",q,this),n(this,"sp_rank_3",J,this)}start(){}show(t,e,n){m.BindClick(this.btn_jiaohu,(()=>{if(t.cur_status===c.deng_dai_kai_ju)d.user_join_room(t.userid),p.dispatchEvent(b.UI_EVENT.UI_MSG_ADD_FIREND_ROOM);else if(t.cur_status===c.xian_guang){f.AddPrefab(g.Instance.send_firend_duizhan).getComponent(y).show(t)}}),this),this.btn_jiaohu.active=!1,k.loadWeiXinHead(t.user_avatar,this.img_head.getComponent(u)),this.lab_name.getComponent(l).string=t.user_name;let i="闲逛";switch(t.cur_status){case c.deng_dai_kai_ju:this.btn_jiaohu.active=!0,this.btn_jiaohu.getComponent(u).spriteFrame=this.sp_btn_add,i="等待对局";break;case c.xian_guang:this.btn_jiaohu.active=!0,this.btn_jiaohu.getComponent(u).spriteFrame=this.sp_btn_yue,i="闲逛";break;case c.dui_zhan:this.btn_jiaohu.active=!1,i="正在对战";break;case c._null:this.img_head.getComponent(u).grayscale=!0,this.btn_jiaohu.active=!1,i="离线"}if(e===h.haoyou_list&&(this.btn_jiaohu.active=!1),this.lab_status.getComponent(l).string=i,this.rank_node.active=!1,h.haoyou_paihang===e){this.btn_jiaohu.active=!1,this.img_head.getComponent(u).grayscale=!1,this.rank_node.active=!0,this.rank_lab.getComponent(l).string="";let e=new _;g._userData.userid===t.userid?this.img_bg.getComponent(u).color=e.fromHEX("#BECCE6"):this.img_bg.getComponent(u).color=e.fromHEX("#FFFFFF"),0===n?this.rank_spr.getComponent(u).spriteFrame=this.sp_rank_1:1===n?this.rank_spr.getComponent(u).spriteFrame=this.sp_rank_2:2===n?this.rank_spr.getComponent(u).spriteFrame=this.sp_rank_3:(this.rank_spr.getComponent(u).spriteFrame=null,this.rank_lab.getComponent(l).string=n+1+""),this.lab_status.getComponent(l).string="["+t.integral_level_name+"] "+t.integral}}update(t){}}).prototype,"img_head",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(R.prototype,"lab_name",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(R.prototype,"lab_status",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(R.prototype,"btn_jiaohu",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=e(R.prototype,"rank_node",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(R.prototype,"rank_lab",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(R.prototype,"rank_spr",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(R.prototype,"img_bg",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(R.prototype,"sp_btn_add",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=e(R.prototype,"sp_btn_yue",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=e(R.prototype,"sp_rank_1",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(R.prototype,"sp_rank_2",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=e(R.prototype,"sp_rank_3",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=R))||N));i._RF.pop()}}}));

System.register("chunks:///_virtual/invite_firend_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./clientEvent.ts","./constant.ts","./GameMng.ts","./msgManager.ts","./invite_firend_item.ts"],(function(e){"use strict";var t,i,n,o,s,a,r,l,h,c,d,_,u,g,p,f,w,y,T,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Prefab,s=e.UITransform,a=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){c=e.Holder},function(e){d=e.ScrollAdapter},function(e){_=e.View},function(e){u=e.friendType,g=e.ReleaseState},function(e){p=e.ReleaseManager},function(e){f=e.ClientEvent},function(e){w=e.Constant},function(e){y=e.GameMng},function(e){T=e.msgManager},function(e){b=e.invite_firend_item}],execute:function(){var m,v,P,M,E,F,S,D,I,L,O,A,H,U,z,x;n._RF.push({},"dd595adxS9FbbsdgTbC4/6W","invite_firend_manager",void 0);const{ccclass:R,property:V}=r;e("invite_firend_manager",(m=R("daoju_shop_view"),v=V(o),P=V(s),M=V(a),E=V(s),F=V(a),S=V({type:u}),D=V({type:u}),m((O=t((L=class extends d{constructor(...e){super(...e),i(this,"invite_Prefab",O,this),i(this,"header",A,this),i(this,"loading",H,this),i(this,"foot",U,this),i(this,"foot_loading",z,this),i(this,"_contentType",x,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1}get contentType(){return this._contentType}set contentType(e){e!=this._contentType&&(this._contentType=e)}start(){this.initView(),f.on(w.UI_EVENT.UI_MSG_UPDATE_FIREND_LIST,this.recv_firend_list,this)}onDestroy(){f.off(w.UI_EVENT.UI_MSG_UPDATE_FIREND_LIST,this.recv_firend_list,this)}initView(){this.releaseManager.on(p.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(p.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever()}onEnable(){T.get_firend_list()}recv_firend_list(){this.modelManager.clear();var e=[];e=this._contentType===u.haoyou_paihang?y.getFirendRankList():y.getFirendList(),this.modelManager.insert(e,0),this.scrollManager.scrollToHeader(0)}async onPullUp(e){if(e.state==g.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==g.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var n=new h;n.set(this.foot_loading.color),n.a=255*Math.min(i,1),this.foot_loading.color=n}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==g.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.onEnable(),this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==g.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}getPrefab(e){return this.invite_Prefab}getHolder(e,t){return new C(e,t,this)}getView(){return new N(this)}initElement(e,t){}scrollToHeader(){this.scrollManager.scrollToFooter(1)}}).prototype,"invite_Prefab",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(L.prototype,"header",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(L.prototype,"loading",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(L.prototype,"foot",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(L.prototype,"foot_loading",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(L.prototype,"_contentType",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.haoyou_yaoqing}}),t(L.prototype,"contentType",[D],Object.getOwnPropertyDescriptor(L.prototype,"contentType"),L.prototype),I=L))||I));class N extends _{onVisible(){}onDisable(){}}class C extends c{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(b),this._shopItem.show(this.data,this.adapter._contentType,this.index)}onVisible(){}onDisable(){}}n._RF.pop()}}}));

System.register("chunks:///_virtual/invite_firend.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GBaseUI.ts","./UIButton.ts","./UITips.ts","./native_manager.ts"],(function(t){"use strict";var n,i,e,o,s,r,c,a,l,u,_;return{setters:[function(t){n=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){e=t.cclegacy,o=t.Node,s=t._decorator},function(t){r=t.ClientEvent},function(t){c=t.Constant},function(t){a=t.default},function(t){l=t.UIButton},function(t){u=t.default},function(t){_=t.native_manager}],execute:function(){var f,d,h,p,b,v,I;e._RF.push({},"f5290hwvH1AcZDWnFz+kkRn","invite_firend",void 0);const{ccclass:y,property:D}=s;t("invite_firend",(f=y("invite_firend"),d=D(o),h=D(o),f((v=n((b=class extends a{constructor(...t){super(...t),i(this,"btn_close",v,this),i(this,"btn_yaoqing",I,this)}start(){l.BindClick(this.btn_close,(()=>{this.closeUI()}),this),l.BindClick(this.btn_yaoqing,(()=>{this.closeUI(),_.share()}),this),r.on(c.UI_EVENT.UI_MSG_ADD_FIREND_ROOM,this.add_firend_room,this)}onDestroy(){r.off(c.UI_EVENT.UI_MSG_ADD_FIREND_ROOM,this.add_firend_room,this)}update(t){}add_firend_room(){u.show("成功加入好友房间！"),this.closeUI()}}).prototype,"btn_close",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=n(b.prototype,"btn_yaoqing",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=b))||p));e._RF.pop()}}}));

System.register("chunks:///_virtual/ItemDataConfig.ts",["cc","./constant.ts"],(function(e){"use strict";var t,n,i,s;return{setters:[function(e){t=e.cclegacy,n=e._decorator},function(e){i=e.shop_item_type,s=e.item_type}],execute:function(){var a,_;t._RF.push({},"aa728Z36OpPw4CFtEssdTEf","ItemDataConfig",void 0);const{ccclass:l,property:m}=n;e("default",l("ItemDataConfig")(((_=class e{constructor(){this.item_config=new Map}static get Instance(){return null===e._instance&&(e._instance=new e,e._instance.initItem()),e._instance}getItemById(t){return e.Instance.item_config.get(t)}getShopQipanList(){let t=[];for(let n=1;n<=1;n++){let i=[];i.push(e.Instance.getItemById((2e3+n).toString())),t.push(i)}return t}getShopYuanBaoList(){let t=[];for(let n=1;n<=7;n++)t.push(e.Instance.getItemById(n.toString()));return t}getShopQiHunList(){let t=[];for(let n=1;n<=7;n++)t.push(e.Instance.getItemById((10+n).toString()));return t}getShopTongQianList(){let t=[];for(let n=1;n<=7;n++)t.push(e.Instance.getItemById((20+n).toString()));return t}getShopQiZiList(){let t=[];for(let n=1;n<=6;n++)t.push(e.Instance.getItemById((3e3+n).toString()));return t}getShopTouXiangKuangList(){let t=[];for(let n=1;n<=1;n++)t.push(e.Instance.getItemById((4e3+n).toString()));return t}getShopJiShiQiList(){let t=[];for(let n=1;n<=1;n++)t.push(e.Instance.getItemById((5e3+n).toString()));return t}getShopQiPaoList(){let t=[];for(let n=1;n<=1;n++)t.push(e.Instance.getItemById((6e3+n).toString()));return t}getShopDaoJuList(){let t=[],n=e.Instance.getItemById("1001");n.num=10,t.push(n);let i=e.Instance.getItemById("1002");i.num=1,t.push(i);let s=e.Instance.getItemById("1003");s.num=1,t.push(s);let a=e.Instance.getItemById("1004");a.num=2,t.push(a);let _=e.Instance.getItemById("1005");_.num=2,t.push(_);let l=e.Instance.getItemById("1006");return l.num=2,t.push(l),t}initItem(){let t=new d;t.id="1001",t.name="体力卡",t.sell="1万",t.type=i.ti_li_ka,t.item_type=s.dao_ju,e.Instance.item_config.set(t.id,t);let n=new d;n.id="1002",n.name="复活卡",n.sell="1万",n.type=i.fu_huo_ka,n.item_type=s.dao_ju,e.Instance.item_config.set(n.id,n);let a=new d;a.id="1003",a.name="提示卡",a.sell="1万",a.type=i.ti_shi_ka,a.item_type=s.dao_ju,e.Instance.item_config.set(a.id,a);let _=new d;_.id="1004",_.name="悔棋卡",_.sell="1万",_.type=i.hui_qi_ka,_.item_type=s.dao_ju,e.Instance.item_config.set(_.id,_);let l=new d;l.id="1005",l.name="分析卡",l.sell="1万",l.type=i.fen_xi_ka,l.item_type=s.dao_ju,e.Instance.item_config.set(l.id,l);let m=new d;m.id="1006",m.name="算力卡",m.sell="1万",m.type=i.suan_li_ka,m.item_type=s.dao_ju,e.Instance.item_config.set(m.id,m);let c=new d;c.id="2000",c.name="经典木棋盘",c.sell="100",c.item_type=s.qi_pan,e.Instance.item_config.set(c.id,c);let o=new d;o.id="2001",o.name="卯兔添福",o.sell="100",o.item_type=s.qi_pan,e.Instance.item_config.set(o.id,o);let p=new d;p.id="2002",p.name="大闹天空",p.sell="200",p.item_type=s.qi_pan,e.Instance.item_config.set(p.id,p);let g=new d;g.id="2003",g.name="壁画故梦",g.sell="200",g.item_type=s.qi_pan,e.Instance.item_config.set(g.id,g);let I=new d;I.id="2004",I.name="桃花源记",I.sell="250",I.item_type=s.qi_pan,e.Instance.item_config.set(I.id,I);let y=new d;y.id="2005",y.name="君临天下",y.sell="250",y.item_type=s.qi_pan,e.Instance.item_config.set(y.id,y);let f=new d;f.id="2006",f.name="金虎贺岁",f.sell="250",f.item_type=s.qi_pan,e.Instance.item_config.set(f.id,f);let u=new d;u.id="2007",u.name="天女下凡",u.sell="250",u.item_type=s.qi_pan,e.Instance.item_config.set(u.id,u);let w=new d;w.id="2008",w.name="清幽茶道",w.sell="250",w.item_type=s.qi_pan,e.Instance.item_config.set(w.id,w);let r=new d;r.id="2009",r.name="凤舞九天",r.sell="250",r.item_type=s.qi_pan,e.Instance.item_config.set(r.id,r);let h=new d;h.id="2010",h.name="闲云野鹤",h.sell="250",h.item_type=s.qi_pan,e.Instance.item_config.set(h.id,h);let q=new d;q.id="2011",q.name="一鸣惊人",q.sell="250",q.item_type=s.qi_pan,e.Instance.item_config.set(q.id,q);let x=new d;x.id="2012",x.name="叱诧风云",x.sell="250",x.item_type=s.qi_pan,e.Instance.item_config.set(x.id,x);let S=new d;S.id="2013",S.name="鸿门宴",S.sell="250",S.item_type=s.qi_pan,e.Instance.item_config.set(S.id,S);let B=new d;B.id="2014",B.name="打破山河",B.sell="250",B.item_type=s.qi_pan,e.Instance.item_config.set(B.id,B);let k=new d;k.id="2015",k.name="金牛降世",k.sell="250",k.item_type=s.qi_pan,e.Instance.item_config.set(k.id,k);let j=new d;j.id="2016",j.name="汕海绘卷",j.sell="250",j.item_type=s.qi_pan,e.Instance.item_config.set(j.id,j);let L=new d;L.id="2017",L.name="扭转乾坤",L.sell="250",L.item_type=s.qi_pan,e.Instance.item_config.set(L.id,L);let b=new d;b.id="2018",b.name="皓月无痕",b.sell="250",b.item_type=s.qi_pan,e.Instance.item_config.set(b.id,b);let z=new d;z.id="2019",z.name="天地无极",z.sell="250",z.item_type=s.qi_pan,e.Instance.item_config.set(z.id,z);let Q=new d;Q.id="3000",Q.name="经典木棋子",Q.sell="1000",Q.item_type=s.qi_zi,e.Instance.item_config.set(Q.id,Q);let D=new d;D.id="3001",D.name="马中赤兔",D.sell="1000",D.item_type=s.qi_zi,e.Instance.item_config.set(D.id,D);let v=new d;v.id="3002",v.name="东海明珠",v.sell="1000",v.item_type=s.qi_zi,e.Instance.item_config.set(v.id,v);let C=new d;C.id="3003",C.name="三国战鼓",C.sell="1000",C.item_type=s.qi_zi,e.Instance.item_config.set(C.id,C);let F=new d;F.id="3004",F.name="千年桃木",F.sell="1000",F.item_type=s.qi_zi,e.Instance.item_config.set(F.id,F);let T=new d;T.id="3005",T.name="枯木逢春",T.sell="1000",T.item_type=s.qi_zi,e.Instance.item_config.set(T.id,T);let E=new d;E.id="3006",E.name="楚汉双雄",E.sell="1000",E.item_type=s.qi_zi,e.Instance.item_config.set(E.id,E);let J=new d;J.id="4000",J.name="默认头像框",J.sell="1000",J.des="默认头像框,快去解锁其他头像框吧",J.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(J.id,J);let P=new d;P.id="4001",P.name="大展宏图",P.sell="1000",P.des="通过卯兔迎新春夺宝获取",P.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(P.id,P);let R=new d;R.id="4002",R.name="齐天大圣",R.sell="1000",R.des="通过大闹天空夺宝获取",R.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(R.id,R);let Z=new d;Z.id="4003",Z.name="隐士高人",Z.sell="1000",Z.des="通过桃花源记活动获取",Z.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(Z.id,Z);let H=new d;H.id="4004",H.name="玄武至尊",H.sell="1000",H.des="通过决战九州获取",H.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(H.id,H);let K=new d;K.id="4005",K.name="玄武主宰",K.sell="1000",K.des="通过武林大会获取",K.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(K.id,K);let M=new d;M.id="4006",M.name="飞龙承运",M.sell="1000",M.des="传说中四爪为蟒-五爪天子，四爪诸侯...",M.item_type=s.tou_xiang_kuang,e.Instance.item_config.set(M.id,M);let O=new d;O.id="5000",O.name="默认计时器",O.sell="1000",O.des="默认计时器,快去解锁其他计时器吧",O.item_type=s.ji_shi_qi,e.Instance.item_config.set(O.id,O);let X=new d;X.id="5001",X.name="如意金箍棒",X.sell="1000",X.des="通过大闹天空活动获取",X.item_type=s.ji_shi_qi,e.Instance.item_config.set(X.id,X);let Y=new d;Y.id="5002",Y.name="桃园花镜",Y.sell="活动限定",Y.des="通过大闹天空活动获取",Y.item_type=s.ji_shi_qi,e.Instance.item_config.set(Y.id,Y);let A=new d;A.id="5003",A.name="四面楚歌",A.sell="活动限定",A.des="通过大闹天空活动获取",A.item_type=s.ji_shi_qi,e.Instance.item_config.set(A.id,A);let G=new d;G.id="5004",G.name="清凉一夏",G.sell="活动限定",G.des="通过大话西游活动获取",G.item_type=s.ji_shi_qi,e.Instance.item_config.set(G.id,G);let N=new d;N.id="5005",N.name="千年应龙",N.sell="活动限定",N.des="通过山海经活动获取",N.item_type=s.ji_shi_qi,e.Instance.item_config.set(N.id,N);let U=new d;U.id="6000",U.name="默认气泡",U.sell="活动限定",U.des="默认气泡,快去解锁其他聊天气泡吧",U.item_type=s.qi_pao,e.Instance.item_config.set(U.id,U);let V=new d;V.id="6001",V.name="蟠桃宴",V.sell="活动限定",V.des="通过大闹天空活动获取",V.item_type=s.qi_pao,e.Instance.item_config.set(V.id,V);let W=new d;W.id="6002",W.name="项羽舞剑",W.sell="活动限定",W.des="通过鸿门宴活动获取",W.item_type=s.qi_pao,e.Instance.item_config.set(W.id,W);let $=new d;$.id="6003",$.name="北冥鲲鹏",$.sell="活动限定",$.des="通过山海经活动获取",$.item_type=s.qi_pao,e.Instance.item_config.set($.id,$);let ee=new d;ee.id="1",ee.name="元宝",ee.sell="￥6",ee.des="x60",ee.item_type=s.yuan_bao,e.Instance.item_config.set(ee.id,ee);let te=new d;te.id="2",te.name="元宝",te.sell="￥18",te.des="x180",te.item_type=s.yuan_bao,e.Instance.item_config.set(te.id,te);let ne=new d;ne.id="3",ne.name="元宝",ne.sell="￥30",ne.des="x300",ne.item_type=s.yuan_bao,e.Instance.item_config.set(ne.id,ne);let ie=new d;ie.id="4",ie.name="元宝",ie.sell="￥68",ie.des="x680",ie.item_type=s.yuan_bao,e.Instance.item_config.set(ie.id,ie);let se=new d;se.id="5",se.name="元宝",se.sell="￥128",se.des="x1280",se.item_type=s.yuan_bao,e.Instance.item_config.set(se.id,se);let ae=new d;ae.id="6",ae.name="元宝",ae.sell="￥298",ae.des="x2980",ae.item_type=s.yuan_bao,e.Instance.item_config.set(ae.id,ae);let _e=new d;_e.id="7",_e.name="元宝",_e.sell="￥648",_e.des="x6480",_e.item_type=s.yuan_bao,e.Instance.item_config.set(_e.id,_e);let le=new d;le.id="11",le.name="棋魂",le.sell="60",le.des="x6万",le.item_type=s.qi_hun,e.Instance.item_config.set(le.id,le);let me=new d;me.id="12",me.name="棋魂",me.sell="180",me.des="x18万",me.item_type=s.qi_hun,e.Instance.item_config.set(me.id,me);let de=new d;de.id="13",de.name="棋魂",de.sell="300",de.des="x30万",de.item_type=s.qi_hun,e.Instance.item_config.set(de.id,de);let ce=new d;ce.id="14",ce.name="棋魂",ce.sell="680",ce.des="x68万",ce.item_type=s.qi_hun,e.Instance.item_config.set(ce.id,ce);let oe=new d;oe.id="15",oe.name="棋魂",oe.sell="1280",oe.des="x128万",oe.item_type=s.qi_hun,e.Instance.item_config.set(oe.id,oe);let pe=new d;pe.id="16",pe.name="棋魂",pe.sell="2980",pe.des="x298万",pe.item_type=s.qi_hun,e.Instance.item_config.set(pe.id,pe);let ge=new d;ge.id="17",ge.name="棋魂",ge.sell="6480",ge.des="x648万",ge.item_type=s.qi_hun,e.Instance.item_config.set(ge.id,ge);let Ie=new d;Ie.id="21",Ie.name="铜钱",Ie.sell="60",Ie.des="x6万",Ie.item_type=s.tong_qian,e.Instance.item_config.set(Ie.id,Ie);let ye=new d;ye.id="22",ye.name="铜钱",ye.sell="180",ye.des="x18万",ye.item_type=s.tong_qian,e.Instance.item_config.set(ye.id,ye);let fe=new d;fe.id="23",fe.name="铜钱",fe.sell="300",fe.des="x30万",fe.item_type=s.tong_qian,e.Instance.item_config.set(fe.id,fe);let ue=new d;ue.id="24",ue.name="铜钱",ue.sell="680",ue.des="x68万",ue.item_type=s.tong_qian,e.Instance.item_config.set(ue.id,ue);let we=new d;we.id="25",we.name="铜钱",we.sell="1280",we.des="x128万",we.item_type=s.tong_qian,e.Instance.item_config.set(we.id,we);let re=new d;re.id="26",re.name="铜钱",re.sell="2980",re.des="x298万",re.item_type=s.tong_qian,e.Instance.item_config.set(re.id,re);let he=new d;he.id="27",he.name="铜钱",he.sell="6480",he.des="x648万",he.item_type=s.tong_qian,e.Instance.item_config.set(he.id,he)}})._instance=null,a=_))||a);class d{constructor(){this.name="",this.url="",this.type=0,this.item_type=0,this.sell="",this.des="",this.id="",this.num=0}}e("itemData",d),t._RF.pop()}}}));

System.register("chunks:///_virtual/ji_shi_qi_select_info.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts"],(function(t){"use strict";var e,i,n,r,s,o,l,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t.Node,s=t._decorator,o=t.Component,l=t.Label},function(t){a=t.UIButton}],execute:function(){var u,c,_,b,p,h,f,m,d,y,g;n._RF.push({},"cdff5COw+tKmLZmr7+8UtYN","ji_shi_qi_select_info",void 0);const{ccclass:D,property:w}=s;t("ji_shi_qi_select_info",(u=D("ji_shi_qi_select_info"),c=w(r),_=w(r),b=w(r),p=w(r),u((m=e((f=class extends o{constructor(...t){super(...t),i(this,"lab_des",m,this),i(this,"lab_name",d,this),i(this,"sp_icon",y,this),i(this,"btn_buy",g,this),this.m_curData=null}start(){a.BindClick(this.btn_buy,(()=>{}),this)}show(t){this.m_curData=t,this.lab_des.getComponent(l).string=this.m_curData.des,this.lab_name.getComponent(l).string=this.m_curData.name}update(t){}}).prototype,"lab_des",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(f.prototype,"lab_name",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(f.prototype,"sp_icon",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(f.prototype,"btn_buy",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=f))||h));n._RF.pop()}}}));

System.register("chunks:///_virtual/jifen_jiesuan.ts",["./rollupPluginModLoBabelHelpers.js","cc","./jifenDataConfig.ts","./GameMng.ts"],(function(e){"use strict";var t,r,n,s,i,l,o,a,u,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,i=e._decorator,l=e.Component,o=e.Label,a=e.ProgressBar},function(e){u=e.jifenDataConfig},function(e){c=e.GameMng}],execute:function(){var _,b,p,g,f,h,m,v,y,j,d,C,D,w,z;n._RF.push({},"8dbbdU0uMJGIpBErTT6OUk4","jifen_jiesuan",void 0);const{ccclass:M,property:x}=i;e("jifen_jiesuan",(_=M("jifen_jiesuan"),b=x(s),p=x(s),g=x(s),f=x(s),h=x(s),m=x(s),_((j=t((y=class extends l{constructor(...e){super(...e),r(this,"lab_user_score",j,this),r(this,"lab_get_score",d,this),r(this,"progress_bar",C,this),r(this,"lab_cur_level",D,this),r(this,"lab_next_level",w,this),r(this,"lab_level_progress",z,this)}start(){}show(e){this.node.active=!0;let t=u.Instance.getDataByLevel(c._userData.integral_level+1),r=t.name,n=t.score;this.lab_user_score.getComponent(o).string=e.user_score+"";let s=1===e.result?"+":"-";if(this.lab_get_score.getComponent(o).string=s+Math.abs(e.get_score)+"",this.lab_cur_level.getComponent(o).string=c._userData.integral_level_name,this.lab_next_level.getComponent(o).string=r,this.lab_level_progress.getComponent(o).string=e.user_score+"/"+n,e.user_score<0){let t=n+Math.abs(e.user_score),r=t-Math.abs(e.user_score);this.progress_bar.getComponent(a).progress=r/t}else this.progress_bar.getComponent(a).progress=e.user_score/n}update(e){}}).prototype,"lab_user_score",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(y.prototype,"lab_get_score",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(y.prototype,"progress_bar",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(y.prototype,"lab_cur_level",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(y.prototype,"lab_next_level",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(y.prototype,"lab_level_progress",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=y))||v));n._RF.pop()}}}));

System.register("chunks:///_virtual/jifen_rule_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts"],(function(e){"use strict";var t,i,n,r,s,c,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.Node,s=e._decorator},function(e){c=e.default},function(e){o=e.UIButton}],execute:function(){var u,l,a,p,_;n._RF.push({},"a4440G7Tn1LeKDjp+dP2jdx","jifen_rule_view",void 0);const{ccclass:f,property:d}=s;e("jifen_rule_view",(u=f("jifen_rule_view"),l=d(r),u((_=t((p=class extends c{constructor(...e){super(...e),i(this,"btn_close",_,this)}start(){o.BindClick(this.btn_close,(()=>{this.closeUI()}),this)}update(e){}}).prototype,"btn_close",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),a=p))||a));n._RF.pop()}}}));

System.register("chunks:///_virtual/jifenchangCreate.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./ScenceMng.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts"],(function(t){"use strict";var n,e,i,s,a,r,o,c,_,u,l,h,g,f;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Node,a=t._decorator,r=t.Component},function(t){o=t.ClientEvent},function(t){c=t.matching_5_10_20_type,_=t.Constant},function(t){u=t.GameMng},function(t){l=t.default},function(t){h=t.UIButton},function(t){g=t.UIManager},function(t){f=t.msgManager}],execute:function(){var b,p,d,m,C,M,y,E,I;i._RF.push({},"b2effueHONH+7yWe2hLNQ4B","jifenchangCreate",void 0);const{ccclass:v,property:B}=a;t("jifenchangCreate",(b=v("jifenchangCreate"),p=B(s),d=B(s),m=B(s),b((y=n((M=class extends r{constructor(...t){super(...t),e(this,"btn_5",y,this),e(this,"btn_10",E,this),e(this,"btn_20",I,this)}start(){h.BindClick(this.btn_5,(()=>{this.sendMsg(c._5)}),this),h.BindClick(this.btn_10,(()=>{this.sendMsg(c._10)}),this),h.BindClick(this.btn_20,(()=>{this.sendMsg(c._20)}),this),o.on(_.EVENT_TYPE.MSG_MATCHING_5_10_20,this.onCreate,this)}sendMsg(t){switch(t){case c._5:f.matching_5_10_20(c._5);break;case c._10:f.matching_5_10_20(c._10);break;case c._20:f.matching_5_10_20(c._20)}g.AddPrefab(u.Instance.uiloading)}onDestroy(){o.off(_.EVENT_TYPE.MSG_MATCHING_5_10_20,this.onCreate,this)}onCreate(t){console.log("room",t),g.removeLoadingLayer(),u.updateRoomData(t),l.Instance.load("Chess")}update(t){}}).prototype,"btn_5",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=n(M.prototype,"btn_10",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=n(M.prototype,"btn_20",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=M))||C));i._RF.pop()}}}));

System.register("chunks:///_virtual/jifenDataConfig.ts",["cc"],(function(e){"use strict";var n,t;return{setters:[function(e){n=e.cclegacy,t=e._decorator}],execute:function(){var c,s;n._RF.push({},"1d4a6AtdXFE2JxQiPkSyV/S","jifenDataConfig",void 0);const{ccclass:a,property:i}=t;e("jifenDataConfig",a("jifenDataConfig")(((s=class e{constructor(){this.level_config=new Map}static get Instance(){return null===e._instance&&(e._instance=new e,e._instance.initData()),e._instance}getDataByLevel(n){return n>=13&&(n=13),e.Instance.level_config.get(n+"")}initData(){let n=new l;n.name="草民",n.score=-400,e._instance.level_config.set("1",n);let t=new l;t.name="县丞",t.score=50,e._instance.level_config.set("2",t);let c=new l;c.name="县令",c.score=100,e._instance.level_config.set("3",c);let s=new l;s.name="都尉",s.score=200,e._instance.level_config.set("4",s);let a=new l;a.name="校尉",a.score=350,e._instance.level_config.set("5",a);let i=new l;i.name="常伺",i.score=500,e._instance.level_config.set("6",i);let o=new l;o.name="中郎将",o.score=700,e._instance.level_config.set("7",o);let _=new l;_.name="太守",_.score=900,e._instance.level_config.set("8",_);let r=new l;r.name="刺史",r.score=1200,e._instance.level_config.set("9",r);let f=new l;f.name="将军",f.score=1500,e._instance.level_config.set("10",f);let g=new l;g.name="太尉",g.score=1900,e._instance.level_config.set("11",g);let v=new l;v.name="大将军",v.score=2400,e._instance.level_config.set("12",v);let m=new l;m.name="霸王",m.score=3e3,e._instance.level_config.set("13",m)}})._instance=null,c=s))||c);class l{constructor(){this.name="",this.score=0}}e("jifenData",l),n._RF.pop()}}}));

System.register("chunks:///_virtual/jishiqi_shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,s,l,o,a,c,r,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,l=t._decorator,o=t.Component,a=t.Label},function(t){c=t.ClientEvent},function(t){r=t.Constant},function(t){_=t.UIButton}],execute:function(){var u,h,p,m,b,d,g,f,y,v,S;n._RF.push({},"1ccd9UPRR5KSIyF4AblB8Gn","jishiqi_shop_item",void 0);const{ccclass:E,property:I}=l;t("jishiqi_shop_item",(u=E("jishiqi_shop_item"),h=I(s),p=I(s),m=I(s),b=I(s),u((f=e((g=class extends o{constructor(...t){super(...t),i(this,"lab_name",f,this),i(this,"lab_sell",y,this),i(this,"sp_icon",v,this),i(this,"on_select_bg",S,this),this.m_item_data=null,this.m_cur_id=0,this.m_contentType=null}start(){_.BindClick(this.node,(()=>{this.on_select_bg.active||(console.log("当前选中商品",this.m_item_data),c.dispatchEvent(r.UI_EVENT.UI_MSG_UPDATE_SELECT_JISHIQI,this.m_item_data.id))}),this)}onSelect(){this.on_select_bg.active=!0}unSelect(){this.on_select_bg.active=!1}update(t){}show(t,e,i){this.m_contentType=i,e===t.id?this.onSelect():this.unSelect(),this.m_item_data=t,this.lab_name.getComponent(a).string=this.m_item_data.name,this.lab_sell.getComponent(a).string=this.m_item_data.sell}}).prototype,"lab_name",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(g.prototype,"lab_sell",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(g.prototype,"sp_icon",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(g.prototype,"on_select_bg",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=g))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/jishiqi_shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./clientEvent.ts","./ItemDataConfig.ts","./constant.ts","./GameMng.ts","./ji_shi_qi_select_info.ts","./shop_jishiqi_page.ts"],(function(e){"use strict";var t,i,s,o,n,a,r,h,l,_,c,p,d,u,f,g,w,y,T,b,m,P;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,o=e.Prefab,n=e.UITransform,a=e.Sprite,r=e.Node,h=e._decorator,l=e.Tween,_=e.Color},function(e){c=e.Holder},function(e){p=e.ScrollAdapter},function(e){d=e.View},function(e){u=e.ContentType,f=e.ReleaseState},function(e){g=e.ReleaseManager},function(e){w=e.ClientEvent},function(e){y=e.default},function(e){T=e.Constant},function(e){b=e.GameMng},function(e){m=e.ji_shi_qi_select_info},function(e){P=e.shop_jishiqi_page}],execute:function(){var v,I,M,E,S,j,F,q,D,L,z,H,O,U,A,C,V,x,R,N;s._RF.push({},"91e6dG1RrVD5LyUVSbRMx/j","jishiqi_shop_view",void 0);const{ccclass:G,property:B}=h;e("jishiqi_shop_view",(v=G("jishiqi_shop_view"),I=B(o),M=B(n),E=B(a),S=B(n),j=B(a),F=B(o),q=B(r),D=B({type:u}),L=B({type:u}),v((O=t((H=class extends p{constructor(...e){super(...e),i(this,"shopPrefab",O,this),i(this,"header",U,this),i(this,"loading",A,this),i(this,"foot",C,this),i(this,"foot_loading",V,this),i(this,"item_prefab",x,this),i(this,"show_info_node",R,this),i(this,"_contentType",N,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1,this.jishiqi_list_data=[],this.cur_select_id=""}get contentType(){return this._contentType}set contentType(e){e!=this._contentType&&(this._contentType=e)}start(){this.initView()}initView(){this.releaseManager.on(g.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(g.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever(),this._contentType===u.bag?this.jishiqi_list_data=b.getBagJiShiQiList():this.jishiqi_list_data=y.Instance.getShopJiShiQiList(),this.init_shop_item(),w.on(T.UI_EVENT.UI_MSG_UPDATE_SELECT_JISHIQI,this.notice,this)}onDestroy(){w.off(T.UI_EVENT.UI_MSG_UPDATE_SELECT_JISHIQI,this.notice,this)}notice(e){this.cur_select_id=e,this.show_info_node.getComponent(m).show(y.Instance.getItemById(e)),this.modelManager.update()}init_shop_item(){var e=[];this.jishiqi_list_data.length<=0||(this.cur_select_id=this.jishiqi_list_data[0].id,this.show_info_node.getComponent(m).show(y.Instance.getItemById(this.cur_select_id)),e.push(this.jishiqi_list_data),this.modelManager.clear(),this.modelManager.insert(e),this.scrollManager.scrollToFooter(0))}async onPullUp(e){if(e.state==f.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==f.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var s=new _;s.set(this.foot_loading.color),s.a=255*Math.min(i,1),this.foot_loading.color=s}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==f.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==f.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new _;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{this.init_shop_item(),e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{this.scheduleOnce((()=>{e([])}),0)}))}scrollToHeader(){this.scrollManager.scrollToFooter(1)}getPrefab(e){return this.shopPrefab}getHolder(e,t){return new Q(e,t,this)}getView(){return new J(this)}initElement(e,t){}}).prototype,"shopPrefab",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(H.prototype,"header",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(H.prototype,"loading",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(H.prototype,"foot",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(H.prototype,"foot_loading",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(H.prototype,"item_prefab",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(H.prototype,"show_info_node",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(H.prototype,"_contentType",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.shop}}),t(H.prototype,"contentType",[L],Object.getOwnPropertyDescriptor(H.prototype,"contentType"),H.prototype),z=H))||z));class J extends d{onVisible(){}onDisable(){}}class Q extends c{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(P)}onVisible(){this._shopItem.show(this,this.adapter.item_prefab,this.data,this.adapter.cur_select_id,this.adapter.contentType)}onDisable(){this._shopItem.hide()}}s._RF.pop()}}}));

System.register("chunks:///_virtual/joinRoom.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts"],(function(t){"use strict";var e,n,i,r,o,u,s,a,l,b,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.Node,o=t._decorator,u=t.Component,s=t.Label},function(t){a=t.GameMng},function(t){l=t.UIButton},function(t){b=t.UIManager},function(t){c=t.msgManager}],execute:function(){var h,m,p,g,d,f,y,C,N,R,j,B,z,D,M;i._RF.push({},"fd558ajxXFLjIjO5uQuOug5","joinRoom",void 0);const{ccclass:S,property:k}=o;t("joinRoom",(h=S("joinRoom"),m=k(r),p=k(r),g=k(r),d=k(r),f=k(r),y=k(r),h((R=e((N=class extends u{constructor(...t){super(...t),n(this,"btnClose",R,this),n(this,"btnReStart",j,this),n(this,"btnDelete",B,this),n(this,"btnSure",z,this),n(this,"labNumber",D,this),n(this,"numberNodeParent",M,this),this.num=""}start(){for(let e=0;e<10;e++){var t=this.numberNodeParent.getChildByName("number_"+e);l.BindClick(t,(()=>{this.updateLab(e+"")}),this)}l.BindClick(this.btnClose,(()=>{this.node.destroy()}),this),l.BindClick(this.btnReStart,(()=>{this.num="",this.labNumber.getComponent(s).string=this.num}),this),l.BindClick(this.btnDelete,(()=>{this.num=this.num.substring(0,this.num.length-1),this.labNumber.getComponent(s).string=this.num}),this),l.BindClick(this.btnSure,(()=>{b.AddPrefab(a.Instance.uiloading),c.joinRoom(this.num)}),this)}onDestroy(){}updateLab(t){this.num=this.num+t,this.labNumber.getComponent(s).string=this.num}update(t){}}).prototype,"btnClose",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(N.prototype,"btnReStart",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(N.prototype,"btnDelete",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(N.prototype,"btnSure",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(N.prototype,"labNumber",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(N.prototype,"numberNodeParent",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=N))||C));i._RF.pop()}}}));

System.register("chunks:///_virtual/LayoutManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Manager.ts","./enum.ts","./helper.ts"],(function(t){"use strict";var e,i,r,o,n,a,s,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,o=t._decorator},function(t){n=t.Manager},function(t){a=t.ChildAlignment,s=t.Orientation},function(t){l=t.Helper}],execute:function(){var h,c,g,p,_,u,d,S,z,A,f,y,x,m,H,O,b,T,E,v,C,L;r._RF.push({},"d91f5nGeD5IbK7eVk2CJPJh","LayoutManager",void 0);const{ccclass:W,property:M}=o;var D;!function(t){t[t.ON_LAYOUT_COMPLATED=0]="ON_LAYOUT_COMPLATED",t[t.ON_CHANGED_LAYOUT_STATE=1]="ON_CHANGED_LAYOUT_STATE"}(D||(D={}));t("LayoutManager",(h=W("LayoutManager"),c=M({type:a}),g=M({type:a}),p=M({group:{id:"0",name:"forceExpand"}}),_=M({group:{id:"0",name:"forceExpand"}}),u=M({group:{id:"0",name:"controlSize"}}),d=M({group:{id:"0",name:"controlSize"}}),S=M({group:{id:"0",name:"controlScale"}}),z=M({group:{id:"0",name:"controlScale"}}),h(((L=class extends n{constructor(...t){super(...t),i(this,"_childAlignment",y,this),i(this,"_spacing",x,this),i(this,"_reverseArrangement",m,this),i(this,"delayLayout",H,this),i(this,"_forceExpandWidth",O,this),i(this,"_forceExpandHeight",b,this),i(this,"_controlSizeWidth",T,this),i(this,"_controlSizeHeight",E,this),i(this,"_controlScaleWidth",v,this),i(this,"_controlScaleHeight",C,this),this._isDirty=!1,this._layoutQueue=[]}get childAlignment(){return this._childAlignment}set childAlignment(t){t!=this._childAlignment&&(this._childAlignment=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get spacing(){return this._spacing}set spacing(t){t!=this._spacing&&(this._spacing=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get reverseArrangement(){return this._reverseArrangement}set reverseArrangement(t){t!=this._reverseArrangement&&(this._reverseArrangement=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get forceExpandWidth(){return this._forceExpandWidth}set forceExpandWidth(t){t!=this._forceExpandWidth&&(this._forceExpandWidth=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get forceExpandHeight(){return this._forceExpandHeight}set forceExpandHeight(t){t!=this._forceExpandHeight&&(this._forceExpandHeight=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get controlSizeWidth(){return this._controlSizeWidth}set controlSizeWidth(t){t!=this._controlSizeWidth&&(this._controlSizeWidth=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get controlSizeHeight(){return this._controlSizeHeight}set controlSizeHeight(t){t!=this._controlSizeHeight&&(this._controlSizeHeight=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get controlScaleWidth(){return this._controlScaleWidth}set controlScaleWidth(t){t!=this._controlScaleWidth&&(this._controlScaleWidth=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get controlScaleHeight(){return this._controlScaleHeight}set controlScaleHeight(t){t!=this._controlScaleHeight&&(this._controlScaleHeight=t,this.emit(D.ON_CHANGED_LAYOUT_STATE))}get top(){return this.adapter.isVertical?0:this.adapter.viewManager.top}get bottom(){return this.adapter.isVertical?0:this.adapter.viewManager.bottom}get left(){return this.adapter.isHorizontal?0:this.adapter.viewManager.left}get right(){return this.adapter.isHorizontal?0:this.adapter.viewManager.right}get horizontal(){return this.left+this.right}get vertical(){return this.top+this.bottom}get isControlMainAxisSize(){return this.adapter.isHorizontal&&this.controlSizeWidth||this.adapter.isVertical&&this.controlSizeHeight}get isControlCrossAxisSize(){return this.adapter.isHorizontal&&this.controlSizeHeight||this.adapter.isVertical&&this.controlSizeWidth}get isControlCrossAxisScale(){return this.adapter.isHorizontal&&this.controlScaleHeight||this.adapter.isVertical&&this.controlScaleWidth}onInit(){}layout(t){t&&(this.delayLayout?(this.unLayout(t.index),this._layoutQueue.push(t),this._isDirty=!0):(this._layoutHandler(t),this.emit(D.ON_LAYOUT_COMPLATED,[t.index])))}unLayout(t){-1!=(t=this._layoutQueue.findIndex((e=>e.index==t)))&&this._layoutQueue.splice(t,1)}_layoutHandler(t){this._calcAlongAxis(t,s.Horizontal,this.adapter.isHorizontal),this._setChildrenAlongAxis(t,s.Horizontal,this.adapter.isHorizontal),this._calcAlongAxis(t,s.Vertical,this.adapter.isHorizontal),this._setChildrenAlongAxis(t,s.Vertical,this.adapter.isHorizontal)}_calcAlongAxis(t,e,i){var r=e==s.Horizontal?this.horizontal:this.vertical,o=this._getControlSize(e),n=this._getControlScale(e),a=this._getForceExpandSize(e),l=r,h=r,c=0,g=i!=(e==s.Vertical),p=this._getLayoutList(t.models);for(let t=0;t<p.length;t++){const i=p[t];var{min:_,preferred:u,flexible:d}=this._getChildSizes(i,e,o,a);if(n){var S=i.scale[this._getAxis(e)];_*=S,u*=S,d*=S}g?(l=Math.max(_+r,l),h=Math.max(u+r,h),c=Math.max(d,c)):(l+=_+this.spacing,h+=u+this.spacing,c+=d)}!g&&p.length>0&&(l-=this.spacing,h-=this.spacing),h=Math.max(l,h),this._setLayoutInputForAxis(t,l,h,c,e)}_getControlSize(t){return t==s.Horizontal?this.controlSizeWidth:this.controlSizeHeight}_getControlScale(t){return t==s.Horizontal?this.controlScaleWidth:this.controlScaleHeight}_getForceExpandSize(t){return t==s.Horizontal?this.forceExpandWidth:this.forceExpandHeight}_setChildrenAlongAxis(t,e,i){var r=t.size[this._getAxis(e)],o=this._getControlSize(e),n=this._getControlScale(e),a=this._getForceExpandSize(e),h=this._getAlignmentOnAxis(e),c=this._getLayoutList(t.models),g=i!=(e==s.Vertical),p=this.reverseArrangement?c.length-1:0,_=this.reverseArrangement?0:c.length,u=this.reverseArrangement?-1:1,d=this._getAxis(e);if(g)for(var S=r-(e==s.Horizontal?this.horizontal:this.vertical),z=p;this.reverseArrangement?z>=_:z<_;z+=u){const i=c[z];var{min:A,preferred:f,flexible:y}=this._getChildSizes(i,e,o,a);let s=n?i.scale[d]:1;var x=l.clamp(S,A,y>0?r:f),m=this._getStartOffset(t,e,x*s);if(o)this._setChildAlongAxisWithScale(t,i,e,m,s,x);else{var H=(x-i.size[d])*h;H*=s,this._setChildAlongAxisWithScale(t,i,e,m+H,s)}}else{var O=e==s.Horizontal?this.left:this.top,b=0,T=r-this._getTotalPreferredSize(t,e);T>0&&(0==this._getTotalFlexibleSize(t,e)?O=this._getStartOffset(t,e,this._getTotalPreferredSize(t,e)-(e==s.Horizontal?this.horizontal:this.vertical)):this._getTotalFlexibleSize(t,e)>0&&(b=T/this._getTotalFlexibleSize(t,e)));var E=0;this._getTotalMinSize(t,e)!=this._getTotalPreferredSize(t,e)&&(E=l.clamp01((r-this._getTotalMinSize(t,e))/(this._getTotalPreferredSize(t,e)-this._getTotalMinSize(t,e))));for(z=p;this.reverseArrangement?z>=_:z<_;z+=u){var v=c[z],{min:A,preferred:f,flexible:y}=this._getChildSizes(v,e,o,a);let i=n?v.scale[d]:1;var C=l.lerp(A,f,E);if(C+=y*b,o)this._setChildAlongAxisWithScale(t,v,e,O,i,C);else{H=(C-v.size[d])*h;this._setChildAlongAxisWithScale(t,v,e,O+H,i)}O+=C*i+this.spacing}}}_setChildAlongAxisWithScale(t,e,i,r,o,n){if(null==e)return;const a=this._getAxis(i);var l=0;isNaN(n)?l=e.size[a]:(e.layoutSize[a]=n,l=n);var h={x:e.position.x,y:e.position.y},c=0;i==s.Horizontal?(c=r+l*e.anchorPoint[a]*o,c-=t.size[a]*t.anchorPoint[a],c+=t.position[a]):(c=-r-l*(1-e.anchorPoint[a])*o,c+=t.size[a]*(1-t.anchorPoint[a]),c+=t.position[a]),h[a]=c,e.position=h}_getStartOffset(t,e,i){var r=i+(e==s.Horizontal?this.horizontal:this.vertical),o=t.size[this._getAxis(e)]-r,n=this._getAlignmentOnAxis(e);return(e==s.Horizontal?this.left:this.top)+o*n}_setLayoutInputForAxis(t,e,i,r,o){var n=this._getAxis(o);t.totalMinSize[n]=e,t.totalPreferredSize[n]=i,t.totalFlexibleSize[n]=r}_getAxis(t){return t==s.Horizontal?"x":"y"}_getMinSize(t,e){return t.minSize[this._getAxis(e)]}_getPreferredSize(t,e){var i=this._getAxis(e);return Math.max(t.minSize[i],t.preferredSize[i])}_getFlexibleSize(t,e){return t.flexibleSize[this._getAxis(e)]}_getTotalMinSize(t,e){return t.totalMinSize[this._getAxis(e)]}_getTotalPreferredSize(t,e){return t.totalPreferredSize[this._getAxis(e)]}_getTotalFlexibleSize(t,e){return t.totalFlexibleSize[this._getAxis(e)]}_getChildSizes(t,e,i,r){var o,n,a;return i?(o=this._getMinSize(t.element,e),n=this._getPreferredSize(t.element,e),a=this._getFlexibleSize(t.element,e)):(n=o=t.size[this._getAxis(e)],a=0),r&&(a=Math.max(a,1)),{min:o,preferred:n,flexible:a}}_getAlignmentOnAxis(t){return t==s.Horizontal?this.adapter.layoutManager.childAlignment%3*.5:.5*Math.floor(this.adapter.layoutManager.childAlignment/3)}_getLayoutList(t){var e=[];for(let i=0;i<t.length;i++){const r=t[i];r.element.ignoreLayout||e.push(r)}return e}internal_lateUpdate(t){if(this._isDirty){this._isDirty=!1;for(var e=[];this._layoutQueue.length>0;){var i=this._layoutQueue.shift();this._layoutHandler(i),e.push(i.index)}e.length>0&&this.emit(D.ON_LAYOUT_COMPLATED,e)}}}).Event=D,y=e((f=L).prototype,"_childAlignment",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return a.UpperLeft}}),e(f.prototype,"childAlignment",[g],Object.getOwnPropertyDescriptor(f.prototype,"childAlignment"),f.prototype),x=e(f.prototype,"_spacing",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e(f.prototype,"spacing",[M],Object.getOwnPropertyDescriptor(f.prototype,"spacing"),f.prototype),m=e(f.prototype,"_reverseArrangement",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(f.prototype,"reverseArrangement",[M],Object.getOwnPropertyDescriptor(f.prototype,"reverseArrangement"),f.prototype),H=e(f.prototype,"delayLayout",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),O=e(f.prototype,"_forceExpandWidth",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e(f.prototype,"forceExpandWidth",[p],Object.getOwnPropertyDescriptor(f.prototype,"forceExpandWidth"),f.prototype),b=e(f.prototype,"_forceExpandHeight",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e(f.prototype,"forceExpandHeight",[_],Object.getOwnPropertyDescriptor(f.prototype,"forceExpandHeight"),f.prototype),T=e(f.prototype,"_controlSizeWidth",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(f.prototype,"controlSizeWidth",[u],Object.getOwnPropertyDescriptor(f.prototype,"controlSizeWidth"),f.prototype),E=e(f.prototype,"_controlSizeHeight",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(f.prototype,"controlSizeHeight",[d],Object.getOwnPropertyDescriptor(f.prototype,"controlSizeHeight"),f.prototype),v=e(f.prototype,"_controlScaleWidth",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(f.prototype,"controlScaleWidth",[S],Object.getOwnPropertyDescriptor(f.prototype,"controlScaleWidth"),f.prototype),C=e(f.prototype,"_controlScaleHeight",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(f.prototype,"controlScaleHeight",[z],Object.getOwnPropertyDescriptor(f.prototype,"controlScaleHeight"),f.prototype),A=f))||A));r._RF.pop()}}}));

System.register("chunks:///_virtual/LoginView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./ScenceMng.ts","./UIButton.ts","./UIManager.ts","./UITips.ts","./native_manager.ts","./msgManager.ts"],(function(t){"use strict";var n,e,i,o,s,a,r,l,u,c,h,_,g,p,b,f;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Node,s=t._decorator,a=t.Component,r=t.Label},function(t){l=t.ClientEvent},function(t){u=t.Constant},function(t){c=t.GameMng},function(t){h=t.default},function(t){_=t.UIButton},function(t){g=t.UIManager},function(t){p=t.default},function(t){b=t.native_manager},function(t){f=t.msgManager}],execute:function(){var d,m,v,w,L,z,y,C,E,I,M,x,G,V,N,U,B,D,R;i._RF.push({},"8e3a608wWJG0L6VW+pzVDWe","LoginView",void 0);const{ccclass:S,property:O}=s;t("LoginView",(d=S("LoginView"),m=O(o),v=O(o),w=O(o),L=O(o),z=O(o),y=O(o),C=O(o),E=O(o),d((x=n((M=class extends a{constructor(...t){super(...t),e(this,"btn_wx",x,this),e(this,"btn_phone",G,this),e(this,"btn_close_phone",V,this),e(this,"eb_zhanghao",N,this),e(this,"lab_verson",U,this),e(this,"btn_phone_login",B,this),e(this,"phone_status_node",D,this),e(this,"wx_status_node",R,this)}start(){this.wx_status_node.active=!0,this.phone_status_node.active=!1,_.BindClick(this.btn_wx,(()=>{b.wxLogin()}),this),_.BindClick(this.btn_phone_login,(()=>{this.eb_zhanghao.getComponent(r).string.length<11?p.show("输入正确格式"):(g.AddPrefab(c.Instance.uiloading),console.log("this.eb_zhanghao.getComponent(Label).string == ",this.eb_zhanghao.getComponent(r).string),f.login(this.eb_zhanghao.getComponent(r).string))}),this),this.lab_verson.getComponent(r).string=u.GAME_VERSION,_.BindClick(this.btn_phone,(()=>{this.wx_status_node.active=!1,this.phone_status_node.active=!0}),this),_.BindClick(this.btn_close_phone,(()=>{this.wx_status_node.active=!0,this.phone_status_node.active=!1}),this),l.on(u.EVENT_TYPE.MSG_LOGON,this.onRecvLogin,this)}onDestroy(){l.off(u.EVENT_TYPE.MSG_LOGON,this.onRecvLogin,this)}onRecvLogin(t){g.removeLoadingLayer(),c.setUserData(t),console.log("data",this.name,t),null!=t.room_info?(c.updateRoomData(t.room_info),h.Instance.load("Chess")):(l.dispatchEvent(u.UI_EVENT.UI_MSG_LOGIN_FINISH),this.node.active=!1)}update(t){}}).prototype,"btn_wx",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=n(M.prototype,"btn_phone",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=n(M.prototype,"btn_close_phone",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=n(M.prototype,"eb_zhanghao",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=n(M.prototype,"lab_verson",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=n(M.prototype,"btn_phone_login",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=n(M.prototype,"phone_status_node",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=n(M.prototype,"wx_status_node",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=M))||I));i._RF.pop()}}}));

System.register("chunks:///_virtual/main",["./AutoDestroy.ts","./ChatAndMenu.ts","./CanjuModel.ts","./CellCanJuSel.ts","./UICanJuSel.ts","./ChessRBSel.ts","./ChessThink.ts","./GBoardChess.ts","./UIEndChess.ts","./jifen_jiesuan.ts","./ChessPos.ts","./ChessMng.ts","./UIChessLvSel.ts","./UIDiffSel.ts","./diffCell.ts","./Search.ts","./UIDialog.ts","./UIduizhan.ts","./UIjiesuan.ts","./UIjiesuanchess.ts","./createFirendRoom.ts","./http.ts","./menuList.ts","./tongqian_jiesuan.ts","./waitFirend.ts","./waitJifen.ts","./waitView.ts","./wait_renji.ts","./wait_tongqian.ts","./GameConst.ts","./GameLaunch.ts","./GameMng.ts","./LoginView.ts","./UIButtonBack.ts","./about_view.ts","./activity_manager.ts","./activity_view.ts","./bag_view.ts","./bag_zhuang_ban_manager.ts","./bag_zhuangban_node.ts","./btn_hui.ts","./chat_text_cell.ts","./chat_view.ts","./check_view.ts","./chess_btns.ts","./chess_setting_view.ts","./daoju_node.ts","./daoju_shop_view.ts","./email_view.ts","./email_view_manager.ts","./emote.ts","./faxian_view.ts","./friend_list_view.ts","./invite_firend.ts","./invite_firend_item.ts","./invite_firend_manager.ts","./recv_firend_duizhan.ts","./send_firend_duizhan.ts","./yue_zhan_view.ts","./huobi_shop_item.ts","./ji_shi_qi_select_info.ts","./jifen_rule_view.ts","./jifenchangCreate.ts","./jishiqi_shop_item.ts","./jishiqi_shop_view.ts","./mine_view.ts","./music_setting_view.ts","./page_btn.ts","./rank_view.ts","./privacy_setting.ts","./qi_pao_select_info.ts","./qijie_view.ts","./qipan_shop_item.ts","./qipan_shop_view.ts","./qipao_shop_item.ts","./qipao_shop_view.ts","./qizi_shop_item.ts","./qizi_shop_view.ts","./renjiCreate.ts","./self_info_view.ts","./setting_view.ts","./shop_huobi.ts","./shop_huobi_page.ts","./shop_item.ts","./shop_jishiqi_page.ts","./shop_page.ts","./shop_qipan_page.ts","./shop_qipao_page.ts","./shop_qizi_page.ts","./shop_touxiangkuang_page.ts","./shop_type_btn.ts","./shop_view.ts","./shop_zhuang_ban_manager.ts","./faxian_view_manager.ts","./qijie_view_manager.ts","./wode_view_manager.ts","./xiaqi_view_manager.ts","./xiaqi_view_page.ts","./xiaqi_xinxi_firend_item.ts","./tong_qian_lab.ts","./tongqianCreate.ts","./tou_xiang_kuang_select_info.ts","./touxiangkuang_shop_item.ts","./touxiangkuang_shop_view.ts","./user_info_view.ts","./welfare_manager.ts","./welfare_view.ts","./xueqi_view.ts","./zhuangban_node.ts","./Tools.ts","./activityData.ts","./bagData.ts","./emailData.ts","./privacyData.ts","./roomData.ts","./settlementData.ts","./setupData.ts","./timeCountData.ts","./userData.ts","./wearData.ts","./welfareData.ts","./Group.ts","./Holder.ts","./Manager.ts","./ScrollAdapter.ts","./View.ts","./Indicator.ts","./Scrollbar.ts","./debug.ts","./enum.ts","./interface.ts","./helper.ts","./CenterManager.ts","./LayoutManager.ts","./ModelManager.ts","./PageViewManager.ts","./ReleaseManager.ts","./ScrollManager.ts","./ViewManager.ts","./clientEvent.ts","./ItemDataConfig.ts","./jifenDataConfig.ts","./xinxiDataConfig.ts","./constant.ts","./debug_view.ts","./fill.ts","./fnt_count.ts","./ADSDK.ts","./BasePlatform.ts","./PlatformMng.ts","./WeixinPlatfrom.ts","./AudioMng.ts","./ButtonMusic.ts","./ButtonSound.ts","./GBaseData.ts","./GBaseUI.ts","./GDSave.ts","./GameData.ts","./GameUtil.ts","./ResMng.ts","./ScenceMng.ts","./Singleton.ts","./UIButton.ts","./UILoading.ts","./UIManager.ts","./UISetting.ts","./UITips.ts","./joinRoom.ts","./native_manager.ts","./gameSocket.ts","./msgManager.ts","./time.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],execute:function(){}}}));

System.register("chunks:///_virtual/Manager.ts",["cc"],(function(t){"use strict";var e,a;return{setters:[function(t){e=t.cclegacy,a=t._decorator}],execute:function(){var n;e._RF.push({},"9e556t6rHxO6ZbZa4CSsrXu","Manager",void 0);const{ccclass:i,property:s}=a;t("Manager",i("Manager")(n=class{constructor(){this._inited=!1,this._eventMap=new Map,this._adapter=null}get adapter(){return this._adapter}internal_create(t){this._adapter=t}internal_init(){this._inited||(this._inited=!0,this.onInit())}on(t,e,a,n=!1){this._eventMap.has(t)||this._eventMap.set(t,[]);var i=this._eventMap.get(t);null!=i&&i.find((t=>t.target==a&&t.callback==e))||i.push({callback:e,target:a,once:n})}off(t,e,a){if(this._eventMap.has(t)){var n=this._eventMap.get(t),i=null==n?void 0:n.findIndex((t=>t.callback==e&&t.target==a));-1!=i&&n.splice(i,1)}}emit(t,...e){if(this._eventMap.has(t)){var a=this._eventMap.get(t);for(let t=0;t<a.length;t++){const n=a[t];n.callback.call(n.target,...e),n.once&&(a.splice(t,1),t--)}}}})||n);e._RF.pop()}}}));

System.register("chunks:///_virtual/menuList.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts","./GBoardChess.ts","./UIDialog.ts"],(function(t){"use strict";var i,n,e,r,s,u,o,l,h,a,c,_,p,b,m,f,g,q,d,C,E;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){e=t.cclegacy,r=t.Node,s=t.SpriteFrame,u=t._decorator,o=t.Component,l=t.Color,h=t.director,a=t.Director,c=t.Label,_=t.Button,p=t.Sprite},function(t){b=t.ClientEvent},function(t){m=t.Constant},function(t){f=t.GameMng},function(t){g=t.UIButton},function(t){q=t.UIManager},function(t){d=t.msgManager},function(t){C=t.default},function(t){E=t.default}],execute:function(){var y,U,S,w,z,I,T,B,M,k,N,v,D,F,A,G,L,Q,P,V,R,H,X,x,K,j,O,W,J,Y,Z,$,tt,it,nt,et,rt;e._RF.push({},"2a0aa0kc6RPCKgAKzONX/3y","menuList",void 0);const{ccclass:st,property:ut}=u;t("menuList",(y=st("menuList"),U=ut(r),S=ut(r),w=ut(s),z=ut(s),I=ut(r),T=ut(s),B=ut(s),M=ut(r),k=ut(s),N=ut(s),v=ut(r),D=ut(r),F=ut(r),A=ut(r),G=ut(r),L=ut(r),Q=ut(r),y((R=i((V=class extends o{constructor(...t){super(...t),n(this,"btn_quit",R,this),n(this,"spr_renshu",H,this),n(this,"sp_renshu_1",X,this),n(this,"sp_renshu_0",x,this),n(this,"spr_qiuhe",K,this),n(this,"sp_qiuhe_1",j,this),n(this,"sp_qiuhe_0",O,this),n(this,"spr_huiqi",W,this),n(this,"sp_huiqi_0",J,this),n(this,"sp_huiqi_1",Y,this),n(this,"btn_renshu",Z,this),n(this,"btn_qiuhe",$,this),n(this,"btn_huiqi",tt,this),n(this,"lab_qiuhe",it,this),n(this,"lab_huiqi",nt,this),n(this,"lab_renshu",et,this),n(this,"btn_shezhi",rt,this),this.color=new l}start(){g.BindClick(this.btn_quit,(function(){this.onClickQuit(),E.Show((()=>{d.quitRoom()}),(()=>{}),"是否确定退出",C.instance.uiLayer,!0)}),this),g.BindClick(this.btn_renshu,(function(){this.onClickQuit(),E.Show((()=>{d.renshu_game()}),(()=>{}),"是否认输",C.instance.uiLayer,!0)}),this),g.BindClick(this.btn_qiuhe,(function(){this.onClickQuit(),b.dispatchEvent(m.UI_EVENT.UI_MSG_BTN_HEQI)}),this),g.BindClick(this.btn_shezhi,(function(){this.onClickQuit(),q.AddPrefab(f.Instance.uiChessSettingView)}),this),g.BindClick(this.btn_huiqi,(function(){this.onClickQuit(),b.dispatchEvent(m.UI_EVENT.UI_MSG_BTN_HUIQI)}),this),this.updateBtnsStatus(),b.on(m.UI_EVENT.UI_MSG_UPDATE_MENU_STATUS,this.updateBtnsStatus,this)}onDestroy(){b.off(m.UI_EVENT.UI_MSG_UPDATE_MENU_STATUS,this.updateBtnsStatus,this)}onEnable(){h.once(a.EVENT_AFTER_DRAW,(function(){b.dispatchEvent(m.UI_EVENT.UI_MSG_UPDATE_MENU_STATUS)}))}updateBtnsStatus(){this.lab_huiqi.getComponent(c).string="悔棋("+C.instance.huiqi_number+")",this.lab_qiuhe.getComponent(c).string="和棋("+C.instance.heqi_number+")";var t=this.color.fromHEX("#949494");this.lab_huiqi.getComponent(c).color=t,this.lab_qiuhe.getComponent(c).color=t,this.lab_renshu.getComponent(c).color=t,this.btn_huiqi.getComponent(_).enabled=!1,this.btn_qiuhe.getComponent(_).enabled=!1,this.btn_renshu.getComponent(_).enabled=!1,this.spr_renshu.getComponent(p).spriteFrame=this.sp_renshu_0,this.spr_qiuhe.getComponent(p).spriteFrame=this.sp_qiuhe_0,this.spr_huiqi.getComponent(p).spriteFrame=this.sp_huiqi_0,console.log("当前是游戏已开",C.instance.rund_number),console.log("悔棋剩余",C.instance.huiqi_number),console.log("和棋剩余",C.instance.heqi_number),C.instance.isStartGame&&C.instance.rund_number>=3&&(this.color=this.color.fromHEX("#5F3D36"),C.instance.rund_number>=10&&(this.btn_renshu.getComponent(_).enabled=!0,this.lab_renshu.getComponent(c).color=this.color,this.spr_renshu.getComponent(p).spriteFrame=this.sp_renshu_1),1===C.instance.who_round?console.log("当前是自己回合"):(console.log("当前是对手回合"),C.instance.isStartGame&&(C.instance.huiqi_number>0&&C.instance.huiqi_setup!=C.instance.rund_number&&(this.btn_huiqi.getComponent(_).enabled=!0,this.lab_huiqi.getComponent(c).color=this.color,this.spr_huiqi.getComponent(p).spriteFrame=this.sp_huiqi_1),C.instance.rund_number>=10&&C.instance.heqi_number>0&&(this.btn_qiuhe.getComponent(_).enabled=!0,this.lab_qiuhe.getComponent(c).color=this.color,this.spr_qiuhe.getComponent(p).spriteFrame=this.sp_qiuhe_1))))}update(t){}onClickQuit(){this.node.active=!1}}).prototype,"btn_quit",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=i(V.prototype,"spr_renshu",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=i(V.prototype,"sp_renshu_1",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=i(V.prototype,"sp_renshu_0",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=i(V.prototype,"spr_qiuhe",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=i(V.prototype,"sp_qiuhe_1",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=i(V.prototype,"sp_qiuhe_0",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=i(V.prototype,"spr_huiqi",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=i(V.prototype,"sp_huiqi_0",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=i(V.prototype,"sp_huiqi_1",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=i(V.prototype,"btn_renshu",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=i(V.prototype,"btn_qiuhe",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tt=i(V.prototype,"btn_huiqi",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=i(V.prototype,"lab_qiuhe",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nt=i(V.prototype,"lab_huiqi",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=i(V.prototype,"lab_renshu",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),rt=i(V.prototype,"btn_shezhi",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=V))||P));e._RF.pop()}}}));

System.register("chunks:///_virtual/mine_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./UIDialog.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts","./native_manager.ts","./gameSocket.ts","./Tools.ts"],(function(t){"use strict";var n,e,i,a,r,l,s,o,u,c,b,_,f,h,p,g,d;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,r=t._decorator,l=t.Component,s=t.Label,o=t.Sprite},function(t){u=t.ClientEvent},function(t){c=t.Constant},function(t){b=t.default},function(t){_=t.GameMng},function(t){f=t.UIButton},function(t){h=t.UIManager},function(t){p=t.native_manager},function(t){g=t.default},function(t){d=t.Tools}],execute:function(){var m,w,v,y,C,I,z,D,B,k,E,S,U,j,M,N,P,G,H,q,A;i._RF.push({},"aed705+cJZEHaWN2Nzji5bd","mine_view",void 0);const{ccclass:L,property:T}=r;t("mine_view",(m=L("mine_view"),w=T(a),v=T(a),y=T(a),C=T(a),I=T(a),z=T(a),D=T(a),B=T(a),k=T(a),m((U=n((S=class extends l{constructor(...t){super(...t),e(this,"btn_setting",U,this),e(this,"btn_self_info",j,this),e(this,"btn_quit",M,this),e(this,"btn_share",N,this),e(this,"lab_name",P,this),e(this,"lab_id",G,this),e(this,"lab_login_name",H,this),e(this,"head_spr",q,this),e(this,"btn_jifen",A,this)}start(){f.BindClick(this.btn_quit,(()=>{b.Show((()=>{g.Instance.stopConnected=!0,u.dispatchEvent(c.UI_EVENT.UI_MSG_SHOW_LOGIN)}),(()=>{}),"您确定要退出登陆吗？",null,!0)}),this),f.BindClick(this.btn_setting,(()=>{h.AddPrefab(_.Instance.uiSettingView)}),this),f.BindClick(this.btn_self_info,(()=>{h.AddPrefab(_.Instance.self_info_view)}),this),f.BindClick(this.btn_share,(()=>{p.share()}),this),f.BindClick(this.btn_jifen,(()=>{h.AddPrefab(_.Instance.uijifen_rule)}),this)}onEnable(){null!=_._userData&&(this.lab_name.getComponent(s).string=_._userData.user_name,this.lab_id.getComponent(s).string="ID:"+_._userData.userid,this.lab_login_name.getComponent(s).string=_._userData.user_name,d.loadWeiXinHead(_._userData.user_avatar,this.head_spr.getComponent(o)))}update(t){}}).prototype,"btn_setting",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=n(S.prototype,"btn_self_info",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=n(S.prototype,"btn_quit",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=n(S.prototype,"btn_share",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=n(S.prototype,"lab_name",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=n(S.prototype,"lab_id",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=n(S.prototype,"lab_login_name",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=n(S.prototype,"head_spr",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=n(S.prototype,"btn_jifen",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=S))||E));i._RF.pop()}}}));

System.register("chunks:///_virtual/ModelManager.ts",["cc","./Manager.ts","./enum.ts","./helper.ts"],(function(e){"use strict";var t,i,s,n,o,l,r,a;return{setters:[function(e){t=e.cclegacy,i=e._decorator,s=e.Node,n=e.UITransform},function(e){o=e.Manager},function(e){l=e.WrapMode,r=e.Layer},function(e){a=e.Helper}],execute:function(){var h,d;t._RF.push({},"18c36plR9VHHbXIt40bKQ+w","ModelManager",void 0);const{ccclass:c,property:_}=i;var p;!function(e){e[e.ON_CLEAR=0]="ON_CLEAR",e[e.ON_INSERT=1]="ON_INSERT",e[e.ON_REMOVE=2]="ON_REMOVE",e[e.ON_MOVE=3]="ON_MOVE",e[e.ON_UPDATE=4]="ON_UPDATE",e[e.ON_CHANGE_BEFORE=5]="ON_CHANGE_BEFORE"}(p||(p={}));e("ModelManager",c("ModelManager")(((d=class extends o{constructor(...e){super(...e),this._modelList=[],this._length=0}get length(){return this._length}get modelList(){return this._modelList}onInit(){}async insert(e,t=this.length){var i=this._toArray(e);t=a.clamp(t,0,this.length),this.emit(p.ON_CHANGE_BEFORE),this._insertHandler(i,t),this._length=this._modelList.length,i.length>0&&this.emit(p.ON_INSERT,t)}_insertHandler(e,t){var i=t;this._length=this._modelList.length;var s=[];const n=(e,t)=>((r=this._getNewModel(e)).index=t,this._modelList.push(r),r),o=e=>{var t=this.get(i);if(t)s.push(this._copyModel(t,{})),t.data=e,t.index=i,this._initModel(t);else{let t=n(e,i);this._initModel(t)}i++};for(let t=0,i=e.length;t<i;t++)o(e[t]);for(let e=0;e<s.length;e++){const t=s[e];var l=i+e;if(this.get(l)){var r=this.get(l);s.push(this._copyModel(r,{})),this._copyModel(t,r)}else{let e=n(t.data,l);this._copyModel(t,e)}}}remove(e,t=1){if(0!=t&&!(e<0||e>=this.length)){var i=this.length;this.emit(p.ON_CHANGE_BEFORE);for(let o=e;o<this.length;o++){var s=this.get(o),n=this.get(o+t);if(!n){i=o;break}this._copyModel(n,s),s.index=o}this._modelList.splice(i,this.length),this._length=this._modelList.length,this.emit(p.ON_REMOVE,e)}}move(e,t,i){if(!(e<0||t<=0)){this.emit(p.ON_CHANGE_BEFORE);var s=this._modelList.map((e=>this._copyModel(e,{}))),n=s.splice(e,t);s.splice(i,0,...n);for(let e=0;e<s.length;e++)this._copyModel(s[e],this._modelList[e]);var o=Math.min(e,i);this.emit(p.ON_MOVE,o)}}update(){this.emit(p.ON_UPDATE)}clear(){this._modelList.length=0,this._length=0,this.emit(p.ON_CLEAR)}has(e){return!!this._modelList[e]}get(e){return isNaN(e)?null:this._modelList[e]}slice(e,t){return 0==this.length?[]:this._modelList.slice(e,t)}_toArray(e){return e?e instanceof Array?e:[e]:[]}_getNewModel(e){return{data:e,index:-1,code:null,size:{x:0,y:0},layoutSize:{x:0,y:0},scale:{x:0,y:0},position:{x:0,y:0},anchorPoint:{x:0,y:0},element:{wrapBeforeMode:l.Wrap,wrapAfterMode:l.Nowrap,ignoreLayout:!1,placeholder:!1,minSize:{x:0,y:0},preferredSize:{x:0,y:0},flexibleSize:{x:0,y:0},layer:r.Lowest,fixed:!1,fixedOffset:0,fixedSpacing:null,update:()=>{}},isValid:!0,update:()=>{}}}_initModel(e){var t=this.adapter.getPrefab(e.data);if(!t)throw Error("预制体不能为空");if(t instanceof s){let i=t.getComponent(n);e.code=t.uuid,e.size={x:i.width,y:i.height},e.scale={x:i.node.scale.x,y:i.node.scale.y},e.anchorPoint={x:i.anchorPoint.x,y:i.anchorPoint.y}}else{let i=t.data.getComponent(n);e.code=t.data._prefab.fileId,e.size={x:i.width,y:i.height},e.scale={x:i.node.scale.x,y:i.node.scale.y},e.anchorPoint={x:i.anchorPoint.x,y:i.anchorPoint.y}}e.layoutSize={x:0,y:0},e.position={x:0,y:0},e.element={wrapBeforeMode:l.Wrap,wrapAfterMode:l.Nowrap,ignoreLayout:!1,placeholder:!1,minSize:{x:0,y:0},preferredSize:{x:0,y:0},flexibleSize:{x:0,y:0},layer:r.Lowest,fixed:!1,fixedOffset:0,fixedSpacing:null,update:()=>{}},this.adapter.initElement(e.element,e.data)}_copyModel(e,t){e.element.update=()=>{};const i=(e,t)=>{for(const s in e){const n=e[s];"data"!=s?"index"!=s&&(null!=n&&"object"==typeof n?(t[s]={},i(n,t[s])):t[s]=n):t[s]=n}};return i(e,t),t}}).Event=p,h=d))||h);t._RF.pop()}}}));

System.register("chunks:///_virtual/msgManager.ts",["cc","./clientEvent.ts","./constant.ts","./UIDialog.ts","./GameMng.ts","./UIManager.ts","./native_manager.ts","./Tools.ts","./gameSocket.ts"],(function(e){"use strict";var t,s,i,n,_,a,c,r,d;return{setters:[function(e){t=e.cclegacy},function(e){s=e.ClientEvent},function(e){i=e.Constant},function(e){n=e.default},function(e){_=e.GameMng},function(e){a=e.UIManager},function(e){c=e.native_manager},function(e){r=e.Tools},function(e){d=e.default}],execute:function(){t._RF.push({},"2ccbfquIkNFlZFkbLCHYngD","msgManager",void 0);class o{static login(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_LOGON,userid:"",wx_openid:"",wx_name:"",wx_avatar:"",ios_openid:"",account:e,verify_code:"1234"});d.Instance.send_cmd(t)}static wxlogin(e,t,s,n,_,a,c){let r=JSON.stringify({action:i.EVENT_TYPE.MSG_LOGON,userid:"",wx_openid:t,wx_name:e,wx_avatar:c,ios_openid:"",account:"",verify_code:"1234",sex:s,province:n,city:_,country:a});d.Instance.send_cmd(r)}static createRoom(e,t,s,n,a,c){let r=JSON.stringify({countdown:a,everystepaddtime:c,action:i.EVENT_TYPE.MSG_CREATE_ROOM,userid:_._userData.userid,totaltime:e,everysteptime:t,firstid:s,roomtype:n});d.Instance.send_cmd(r)}static createRoomByRoomType(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_CREATE_ROOM,userid:_._userData.userid,roomtype:e});d.Instance.send_cmd(t)}static matching_5_10_20(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_MATCHING_5_10_20,userid:_._userData.userid,matching_type:e});d.Instance.send_cmd(t)}static find_matching_5_10_20(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_FIND_MATCHING_5_10_20,userid:_._userData.userid});d.Instance.send_cmd(e)}static open_matching_5_10_20(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_OPEN_MATCHING_5_10_20,userid:_._userData.userid});d.Instance.send_cmd(e)}static cancel_matching_5_10_20(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_CANCEL_MATCHING_5_10_20,userid:_._userData.userid});d.Instance.send_cmd(e)}static joinRoom(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_JOIN_ROOM,userid:_._userData.userid,roomid:e});d.Instance.send_cmd(t)}static user_join_room(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_USER_JOIN_ROOM,userid:_._userData.userid,friend_id:e});d.Instance.send_cmd(t)}static ready(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_READY,userid:_._userData.userid});d.Instance.send_cmd(e)}static kickRival(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_KICK_ROOM,userid:_._userData.userid});d.Instance.send_cmd(e)}static quitRoom(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_QUIT_ROOM,userid:_._userData.userid});d.Instance.send_cmd(e)}static sendPlayChess(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_OWN_PLAYCHESS,userid:_._userData.userid,src_pos:e.src_pos,dec_pos:e.dec_pos,chess_whole:e.chess_whole,des_who:e.des_who,robot_data:e.robot_data,is_mate:e.is_mate});d.Instance.send_cmd(t)}static final_game(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_FINAL_GAME,userid:_._userData.userid});d.Instance.send_cmd(e)}static renshu_game(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_REN_SHU_GAME,userid:_._userData.userid});d.Instance.send_cmd(e)}static heqi_game(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_HE_QI_GAME,userid:_._userData.userid});d.Instance.send_cmd(e)}static qingqiu_heqi_game(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_HEQI_QINGQIU,userid:_._userData.userid});d.Instance.send_cmd(e)}static tongzhi_heqi_game(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_HEQI_TONGZHI,userid:_._userData.userid,type:e});d.Instance.send_cmd(t)}static qingqiu_huiqi_game(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_HUIQI_QINGQIU,userid:_._userData.userid});d.Instance.send_cmd(e)}static tongzhi_huiqi_game(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_HUIQI_TONGZHI,userid:_._userData.userid,type:e});d.Instance.send_cmd(t)}static ad_tongbi(e){let t=JSON.stringify({action:i.EVENT_TYPE.ADS_TONG_QIAN,userid:_._userData.userid,type:e});d.Instance.send_cmd(t)}static get_firend_list(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_GET_FIREND_LIST,userid:_._userData.userid});d.Instance.send_cmd(e)}static get_online_firend_list(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_GET_ONLINE_FIREND_LIST,userid:_._userData.userid});d.Instance.send_cmd(e)}static add_firend(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_ADD_FIREND,userid:_._userData.userid,friend_id:e});d.Instance.send_cmd(t)}static fa_qi_yue_zhan(e,t){let s=JSON.stringify({action:i.EVENT_TYPE.MSG_FA_QI_YUE_ZHAN,userid:_._userData.userid,friend_id:t,room_type:e});d.Instance.send_cmd(s)}static fa_qi_room_yue_zhan(e){let t=JSON.stringify({action:i.EVENT_TYPE.MSG_FA_QI_YUE_ZHAN,userid:_._userData.userid,friend_id:e});d.Instance.send_cmd(t)}static yue_zhan_tong_zhi(e,t){let s=JSON.stringify({action:i.EVENT_TYPE.MSG_YUE_ZHAN_TONG_ZHI,userid:_._userData.userid,status:e,friend_id:t});d.Instance.send_cmd(s)}static send_chat(e,t){let s=JSON.stringify({action:i.EVENT_TYPE.MSG_SEND_CHAT,userid:_._userData.userid,chat_id:e,chat_text:t});d.Instance.send_cmd(s)}static relink(){let e=JSON.stringify({action:i.EVENT_TYPE.MSG_RELINK,userid:_._userData.userid});console.log("发送一次重连请求",e),d.Instance.send_cmd(e)}static recv(e){console.log("接收消息",e);let t=JSON.parse(e),_=t.code===i.ERROR_CODE.ERROR_TONG_BI_BU_ZU;1e4!=t.code?(a.removeLoadingLayer(),a.removeWaitViewLayer(),void 0===t.message||null===t.message||""===t.message?console.error("recv json_data.data error!",t):n.Show((()=>{_&&(o.quitRoom(),c.showRewardVideo())}),(()=>{}),t.message,a.Instance.TopLayer,_)):null!=t.action&&null!=t.content&&null!=t.content?(console.log("json.action",t.action),s.dispatchEvent(t.action,t.content)):console.error("recv json_data.data error!",t)}static reConnect(){d.Instance.connect(r.makeUrl())}}e("msgManager",o),t._RF.pop()}}}));

System.register("chunks:///_virtual/music_setting_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts","./page_btn.ts"],(function(t){"use strict";var e,i,s,n,c,u,o,r;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,n=t.Node,c=t._decorator},function(t){u=t.default},function(t){o=t.UIButton},function(t){r=t.page_btn}],execute:function(){var l,_,a,b,g,p,h,m,f;s._RF.push({},"fba69DQ2RJOersTAY+GFMbD","music_setting_view",void 0);const{ccclass:d,property:v}=c;t("music_setting_view",(l=d("music_setting_view"),_=v(n),a=v(n),b=v(n),l((h=e((p=class extends u{constructor(...t){super(...t),i(this,"btn_close",h,this),i(this,"btn_bg_music",m,this),i(this,"btn_chess_music",f,this)}start(){o.BindClick(this.btn_close,(()=>{this.closeUI()}),this),o.BindClick(this.btn_bg_music,(()=>{this.clickToggle(this.btn_bg_music)}),this),o.BindClick(this.btn_chess_music,(()=>{this.clickToggle(this.btn_chess_music)}),this)}clickToggle(t){t.getComponent(r).isSelect()?t.getComponent(r).status_unselect():t.getComponent(r).status_select()}update(t){}}).prototype,"btn_close",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(p.prototype,"btn_bg_music",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(p.prototype,"btn_chess_music",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=p))||g));s._RF.pop()}}}));

System.register("chunks:///_virtual/native_manager.ts",["cc","./waitView.ts","./GameMng.ts","./UIManager.ts","./UITips.ts","./msgManager.ts","./Tools.ts"],(function(e){"use strict";var a,t,r,i,o,n,c,s,p,l,d,_;return{setters:[function(e){a=e.cclegacy,t=e.sys,r=e.native,i=e.director,o=e.Director,n=e._decorator},function(e){c=e.waitView},function(e){s=e.GameMng},function(e){p=e.UIManager},function(e){l=e.default},function(e){d=e.msgManager},function(e){_=e.Tools}],execute:function(){var v;a._RF.push({},"264d3J8LnBHzqjupuVMS8wV","native_manager",void 0);const{ccclass:g,property:m}=n;e("native_manager",g("native_manager")(v=class e{static wxLogin(){p.AddPrefab(s.Instance.uiloading),("ANDROID"==t.platform||"IOS"==t.platform)&&(r.jsbBridgeWrapper.dispatchEventToNative("send_ios_login"),r.jsbBridgeWrapper.removeNativeEventListener("receive_ios_login",e.ios_login),r.jsbBridgeWrapper.addNativeEventListener("receive_ios_login",e.ios_login))}static ios_login(e){var a=JSON.parse(e);if(console.log("wxLogin",e),""!=e){for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const t=a[e];console.log("wxLogin",t)}d.wxlogin(a.nickname,a.openId,a.sex,a.property,a.city,a.country,a.headimgurl)}}static share(){"ANDROID"==t.platform?setTimeout((()=>{r.reflection.callStaticMethod("com/cocos/game/AppActivity","shareWx","(Ljava/lang/String;)V",_.getShareObj())}),1e3):"IOS"==t.platform&&r.jsbBridgeWrapper.dispatchEventToNative("shareWx",_.getShareObj())}static check_jump_info(){e.recv_jump_info(),"ANDROID"==t.platform?r.jsbBridgeWrapper.dispatchEventToNative("check_jump_info"):"IOS"==t.platform&&i.once(o.EVENT_AFTER_DRAW,(function(){r.jsbBridgeWrapper.dispatchEventToNative("check_jump_info")}))}static recv_jump_info_call(e){var a=JSON.parse(e);a.firendOpenId&&(s.firendOpenId=a.firendOpenId),console.log("recv_jump_info_call",e),c.Show("等待加入房间！")}static reward_callback(e){console.log("reward_callback",e),p.removeLoadingLayer(),"1"===e?(c.Show("等待发放奖励"),s.reward_tong_bi=!0):l.show("非常抱歉，您未获取到广告奖励！")}static recv_jump_info(){("ANDROID"==t.platform||"IOS"==t.platform)&&(r.jsbBridgeWrapper.removeNativeEventListener("recv_jump_info",e.recv_jump_info_call),r.jsbBridgeWrapper.addNativeEventListener("recv_jump_info",e.recv_jump_info_call))}static hideSplash(){"ANDROID"==t.platform?setTimeout((()=>{r.reflection.callStaticMethod("com/cocos/game/AppActivity","hideSplash","()V")}),1e3):"IOS"==t.platform&&r.jsbBridgeWrapper.dispatchEventToNative("hideSplash")}static showRewardVideo(){"ANDROID"==t.platform||"IOS"==t.platform?(r.jsbBridgeWrapper.dispatchEventToNative("show_reward_video"),r.jsbBridgeWrapper.removeNativeEventListener("reward_callback",e.reward_callback),r.jsbBridgeWrapper.addNativeEventListener("reward_callback",e.reward_callback)):d.ad_tongbi(1)}})||v);a._RF.pop()}}}));

System.register("chunks:///_virtual/page_btn.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,s,n,i,o,l,r,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,s=t.initializerDefineProperty},function(t){n=t.cclegacy,i=t.Node,o=t._decorator,l=t.Component,r=t.Color,a=t.Label}],execute:function(){var c,u,_,p,b,h,d,f,g;n._RF.push({},"fdb60l8tcJDrI1bxeHXFZ40","page_btn",void 0);const{ccclass:m,property:v}=o;t("page_btn",(c=m("page_btn"),u=v(i),_=v(i),p=v(i),c((d=e((h=class extends l{constructor(...t){super(...t),s(this,"select_status_node",d,this),s(this,"unselect_status_node",f,this),s(this,"lab",g,this),this.color=new r}start(){}status_select(){this.select_status_node.active=!0,this.unselect_status_node.active=!1,null!=this.lab&&(this.lab.getComponent(a).color=this.color.fromHEX("#FFFFFF"))}isSelect(){return this.select_status_node.active}status_unselect(){this.select_status_node.active=!1,this.unselect_status_node.active=!0,null!=this.lab&&(this.lab.getComponent(a).color=this.color.fromHEX("#A48C80"))}update(t){}}).prototype,"select_status_node",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(h.prototype,"unselect_status_node",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(h.prototype,"lab",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=h))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/PageViewManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Manager.ts","./enum.ts","./ScrollManager.ts","./ViewManager.ts"],(function(e){"use strict";var t,r,i,n,a,s,l,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e._decorator},function(e){a=e.Manager},function(e){s=e.AlwaysScroll},function(e){l=e.ScrollManager},function(e){o=e.ViewManager}],execute:function(){var h,g,c,d,_,u,p,b,E,T,O,L,S,f;i._RF.push({},"9a9b8/q4JFHHb650TtGE+gS","PageViewManager",void 0);const{ccclass:N,property:P}=n;var v;!function(e){e[e.ON_PAGE_LENGTH_CHANGED=0]="ON_PAGE_LENGTH_CHANGED",e[e.ON_SCROLL_PAGE_BEFOR=1]="ON_SCROLL_PAGE_BEFOR",e[e.ON_SCROLL_PAGE_END=2]="ON_SCROLL_PAGE_END"}(v||(v={}));e("PageViewManager",(h=N("PageViewManager"),g=P("boolean"),c=P({range:[0,1],slide:!0,step:.01,visible:function(){return this.enabled}}),d=P({range:[0,1],slide:!0,step:.01,visible:function(){return this.enabled}}),_=P({visible:function(){return this.enabled}}),u=P({visible:function(){return this.enabled}}),h(((f=class extends a{constructor(...e){super(...e),r(this,"_enabled",E,this),r(this,"scrollThreshold",T,this),r(this,"pageTurningEventTiming",O,this),r(this,"autoPageTurningThreshold",L,this),r(this,"pageTurningSpeed",S,this),this._currentIndex=0}get enabled(){return this._enabled}set enabled(e){e!=this._enabled&&(this._enabled=e,this._enabled?this._register():this._unregister())}get currentIndex(){return this._currentIndex}get length(){return this.adapter.viewManager.groupLength}onInit(){this._register()}_register(){this.adapter&&this.enabled&&(this.adapter.scrollManager.on(l.Event.ON_SCROLL_END,this._handleReleaseLogic,this),this.adapter.scrollManager.on(l.Event.ON_SCROLL_CANCEL,this._handleReleaseLogic,this),this.adapter.scrollManager.on(l.Event.ON_SCROLL_TO_GROUPINDEX_BEFOR,this._onScrollToIndex,this),this.adapter.viewManager.on(o.Event.ON_UPDATE_VIEWS,this._onUpdateViews,this,!0))}_unregister(){this.adapter&&!this.enabled&&(this.adapter.scrollManager.off(l.Event.ON_SCROLL_END,this._handleReleaseLogic,this),this.adapter.scrollManager.off(l.Event.ON_SCROLL_CANCEL,this._handleReleaseLogic,this),this.adapter.scrollManager.off(l.Event.ON_SCROLL_TO_GROUPINDEX_BEFOR,this._onScrollToIndex,this),this.adapter.viewManager.off(o.Event.ON_UPDATE_VIEWS,this._onUpdateViews,this))}scrollToPage(e,t,r){t<0||t>=this.length||t==this.currentIndex&&0!=this.adapter.scrollManager.calcOffset()||(this.adapter.scrollManager.scrollToGroupIndex(e,t,r),this.emit(v.ON_SCROLL_PAGE_BEFOR,t))}scrollToPrevPage(e=this.pageTurningSpeed,t=s.Header){0!=this._currentIndex?this.scrollToPage(e,this._currentIndex-1,t):this.adapter.viewManager.loopHeader&&this.scrollToPage(e,this.length-1,t)}scrollToNextPage(e=this.pageTurningSpeed,t=s.Footer){this._currentIndex>=this.length-1?this.adapter.viewManager.loopFooter&&this.scrollToPage(e,0,t):this.scrollToPage(e,this._currentIndex+1,t)}_onUpdateViews(){this.emit(v.ON_PAGE_LENGTH_CHANGED),this._currentIndex=0,this.scrollToPage(this.pageTurningSpeed,this._currentIndex)}_onScrollToIndex(e){this._currentIndex=e,this.emit(v.ON_SCROLL_PAGE_END,e)}_handleReleaseLogic(e){if(this._enabled&&this.adapter.scrollManager.isMyEventAndMoved){var t=e.getUIStartLocation()[this.adapter.mainAxis]-e.getUILocation()[this.adapter.mainAxis],r=this._getNextIndex(t);this._isScrollable(t)||this._isQuicklyScrollable(this.adapter.scrollManager.velocity)?this.scrollToPage(this.pageTurningSpeed,r):this.scrollToPage(this.pageTurningSpeed,this._currentIndex)}}_getNextIndex(e){var t=this._currentIndex;return this.adapter.isHorizontal?this.adapter.isArrangeAxisStart?e>0?t++:e<0&&t--:(e<0&&t++,e>0&&t--):this.adapter.isArrangeAxisStart?e<0?t++:e>0&&t--:e>0?t++:e<0&&t--,t>=this.length&&this.adapter.viewManager.loopFooter?t=0:t<0&&this.adapter.viewManager.loopHeader&&(t=this.length-1),(t<0||t>=this.length)&&(t=this._currentIndex),t}_isScrollable(e){return Math.abs(e)>=this.adapter.mainAxisSize*this.scrollThreshold}_isQuicklyScrollable(e){return Math.abs(e)>this.autoPageTurningThreshold}}).Event=v,E=t((b=f).prototype,"_enabled",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t(b.prototype,"enabled",[g],Object.getOwnPropertyDescriptor(b.prototype,"enabled"),b.prototype),T=t(b.prototype,"scrollThreshold",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),O=t(b.prototype,"pageTurningEventTiming",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),L=t(b.prototype,"autoPageTurningThreshold",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),S=t(b.prototype,"pageTurningSpeed",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.3}}),p=b))||p));i._RF.pop()}}}));

System.register("chunks:///_virtual/PlatformMng.ts",["cc","./Singleton.ts","./BasePlatform.ts","./WeixinPlatfrom.ts"],(function(t){"use strict";var n,e,a,c;return{setters:[function(t){n=t.cclegacy},function(t){e=t.Singleton},function(t){a=t.BasePlatform},function(t){c=t.WeixinPlatfrom}],execute:function(){let s;t("Channel",void 0),n._RF.push({},"cca5bQvoIxMeKWEVKGIx2s/","PlatformMng",void 0),function(t){t[t.native=-1]="native",t[t.debug=0]="debug",t[t.wx=1]="wx"}(s||(s=t("Channel",{})));class o extends(e()){static get platform(){switch(o.channo){case s.debug:case s.wx:return a.Instance}}static get wx_platform(){return c.Instance}}t("default",o),o.channo=s.debug,o.channelUserInfo=null,o.hadGetUserInfo=!1,n._RF.pop()}}}));

System.register("chunks:///_virtual/privacy_setting.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./check_view.ts","./page_btn.ts"],(function(t){"use strict";var i,e,n,a,c,r,l,s,o,u,h,_,b,p;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,c=t._decorator,r=t.Label},function(t){l=t.ClientEvent},function(t){s=t.privacy_type,o=t.Constant},function(t){u=t.GameMng},function(t){h=t.default},function(t){_=t.UIButton},function(t){b=t.check_view},function(t){p=t.page_btn}],execute:function(){var y,f,g,v,C,z,k,w,m,d,P,I,E,U,j,D,B,S,V,A,M;n._RF.push({},"e7d942mFgxMDqxSFUVwMi/G","privacy_setting",void 0);const{ccclass:R,property:G}=c;t("privacy_setting",(y=R("privacy_setting"),f=G(a),g=G(a),v=G(a),C=G(a),z=G(a),k=G(a),w=G(a),m=G(a),d=G(a),y((E=i((I=class extends h{constructor(...t){super(...t),e(this,"btn_close",E,this),e(this,"btn_on_or_off",U,this),e(this,"btn_yuzhan",j,this),e(this,"btn_liuyan",D,this),e(this,"btn_zhanji",B,this),e(this,"lab_yuzhan",S,this),e(this,"lab_liuyan",V,this),e(this,"lab_zhanji",A,this),e(this,"check_view",M,this)}start(){_.BindClick(this.btn_close,(()=>{!0===this.check_view.active?this.check_view.active=!1:this.closeUI()}),this),_.BindClick(this.btn_on_or_off,(()=>{this.clickToggle(this.btn_on_or_off)}),this),_.BindClick(this.btn_yuzhan,(()=>{this.showSelectPrivacyCheck(s.yue_zhan)}),this),_.BindClick(this.btn_liuyan,(()=>{this.showSelectPrivacyCheck(s.liu_yan)}),this),_.BindClick(this.btn_zhanji,(()=>{this.showSelectPrivacyCheck(s.zhan_ji)}),this),this.udpateCheckPrivacy(),l.on(o.UI_EVENT.UI_MSG_UPDATE_PRIVACY,this.udpateCheckPrivacy,this)}onDestroy(){l.off(o.UI_EVENT.UI_MSG_UPDATE_PRIVACY,this.udpateCheckPrivacy,this)}udpateCheckPrivacy(){this.lab_zhanji.getComponent(r).string=o.CHECK_PRIVACY[s.zhan_ji].select_list[u._userData.privacy.zhanji_type],this.lab_liuyan.getComponent(r).string=o.CHECK_PRIVACY[s.liu_yan].select_list[u._userData.privacy.liuyan_type],this.lab_yuzhan.getComponent(r).string=o.CHECK_PRIVACY[s.yue_zhan].select_list[u._userData.privacy.yuezhan_type]}showSelectPrivacyCheck(t){this.check_view.active=!0,this.check_view.getComponent(b).show(t)}clickToggle(t){t.getComponent(p).isSelect()?t.getComponent(p).status_unselect():t.getComponent(p).status_select()}update(t){}}).prototype,"btn_close",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=i(I.prototype,"btn_on_or_off",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=i(I.prototype,"btn_yuzhan",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=i(I.prototype,"btn_liuyan",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(I.prototype,"btn_zhanji",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=i(I.prototype,"lab_yuzhan",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=i(I.prototype,"lab_liuyan",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=i(I.prototype,"lab_zhanji",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=i(I.prototype,"check_view",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=I))||P));n._RF.pop()}}}));

System.register("chunks:///_virtual/privacyData.ts",["cc"],(function(t){"use strict";var c,a;return{setters:[function(t){c=t.cclegacy,a=t._decorator}],execute:function(){var r;c._RF.push({},"d17d9chyw5JD6lHFCMt1Q30","privacyData",void 0);const{ccclass:s,property:e}=a;t("privacyData",s("privacyData")(r=class{constructor(){this.zhanji_type=0,this.liuyan_type=0,this.yuezhan_type=0}})||r);c._RF.pop()}}}));

System.register("chunks:///_virtual/qi_pao_select_info.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts"],(function(t){"use strict";var e,i,n,r,o,a,s,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t.Node,o=t._decorator,a=t.Component,s=t.Label},function(t){l=t.UIButton}],execute:function(){var u,c,p,_,b,f,h,m,d,y,g;n._RF.push({},"9060cPfs6pB7KfG7u+5Bj5L","qi_pao_select_info",void 0);const{ccclass:D,property:B}=o;t("qi_pao_select_info",(u=D("qi_pao_select_info"),c=B(r),p=B(r),_=B(r),b=B(r),u((m=e((h=class extends a{constructor(...t){super(...t),i(this,"lab_des",m,this),i(this,"lab_name",d,this),i(this,"sp_icon",y,this),i(this,"btn_buy",g,this),this.m_curData=null}start(){l.BindClick(this.btn_buy,(()=>{}),this)}show(t){this.m_curData=t,this.lab_des.getComponent(s).string=this.m_curData.des,this.lab_name.getComponent(s).string=this.m_curData.name}update(t){}}).prototype,"lab_des",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(h.prototype,"lab_name",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(h.prototype,"sp_icon",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(h.prototype,"btn_buy",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=h))||f));n._RF.pop()}}}));

System.register("chunks:///_virtual/qijie_view_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var i,t,r,n,a,s,c;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Prefab,a=e._decorator,s=e.Component,c=e.instantiate}],execute:function(){var o,u,l,p,_;r._RF.push({},"2eb1ctm6RlNN5WE3U35jQrC","qijie_view_manager",void 0);const{ccclass:v,property:d}=a;e("qijie_view_manager",(o=v("qijie_view_manager"),u=d(n),o((_=i((p=class extends s{constructor(...e){super(...e),t(this,"qijien_view",_,this)}start(){this.node.addChild(c(this.qijien_view))}update(e){}}).prototype,"qijien_view",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));r._RF.pop()}}}));

System.register("chunks:///_virtual/qijie_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./UIManager.ts"],(function(t){"use strict";var e,n,i,r,a,o,s,c,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,r=t.Node,a=t._decorator,o=t.Component},function(t){s=t.GameMng},function(t){c=t.UIButton},function(t){u=t.UIManager}],execute:function(){var l,p,b,d,_,f,h;i._RF.push({},"06359I/tupJFZ5NvYfcwrFW","qijie_view",void 0);const{ccclass:g,property:v}=a;t("qijie_view",(l=g("qijie_view"),p=v(r),b=v(r),l((f=e((_=class extends o{constructor(...t){super(...t),n(this,"btn_haoyou",f,this),n(this,"btn_bangdan",h,this)}start(){c.BindClick(this.btn_haoyou,(()=>{u.AddPrefab(s.Instance.friend_list_view)}),this),c.BindClick(this.btn_bangdan,(()=>{u.AddPrefab(s.Instance.rank_view)}),this)}update(t){}}).prototype,"btn_haoyou",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=e(_.prototype,"btn_bangdan",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=_))||d));i._RF.pop()}}}));

System.register("chunks:///_virtual/qipan_shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts"],(function(t){"use strict";var e,i,n,o,s,l,a,r;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator,l=t.Component,a=t.Label},function(t){r=t.UIButton}],execute:function(){var u,c,p,_,m,h,b,d,f;n._RF.push({},"c05b7WapqFCnJMrHV56Tuul","qipan_shop_item",void 0);const{ccclass:g,property:y}=s;t("qipan_shop_item",(u=g("qipan_shop_item"),c=y(o),p=y(o),_=y(o),u((b=e((h=class extends l{constructor(...t){super(...t),i(this,"lab_name",b,this),i(this,"lab_sell",d,this),i(this,"sp_icon",f,this),this.m_item_data=null,this.m_contentType=null}start(){r.BindClick(this.node,(()=>{console.log("当前选中商品",this.m_item_data)}),this)}update(t){}show(t,e){this.m_item_data=t,this.m_contentType=e,this.lab_name.getComponent(a).string=this.m_item_data.name,this.lab_sell.getComponent(a).string=this.m_item_data.sell}}).prototype,"lab_name",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(h.prototype,"lab_sell",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(h.prototype,"sp_icon",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=h))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/qipan_shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./ItemDataConfig.ts","./GameMng.ts","./shop_qipan_page.ts"],(function(e){"use strict";var t,i,s,o,n,a,r,h,l,p,c,_,u,d,g,f,w,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,o=e.Prefab,n=e.UITransform,a=e.Sprite,r=e._decorator,h=e.Tween,l=e.Color},function(e){p=e.Holder},function(e){c=e.ScrollAdapter},function(e){_=e.View},function(e){u=e.ContentType,d=e.ReleaseState},function(e){g=e.ReleaseManager},function(e){f=e.default},function(e){w=e.GameMng},function(e){y=e.shop_qipan_page}],execute:function(){var b,T,m,P,v,M,F,q,O,z,S,H,I,A,D,L,x,E;s._RF.push({},"5cba5YNJgxF4rJRsNUIF6Ic","qipan_shop_view",void 0);const{ccclass:R,property:V}=r;e("qipan_shop_view",(b=R("qipan_shop_view"),T=V(o),m=V(n),P=V(a),v=V(n),M=V(a),F=V(o),q=V({type:u}),O=V({type:u}),b((H=t((S=class extends c{constructor(...e){super(...e),i(this,"shopPrefab",H,this),i(this,"header",I,this),i(this,"loading",A,this),i(this,"foot",D,this),i(this,"foot_loading",L,this),i(this,"item_prefab",x,this),i(this,"_contentType",E,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1,this.qipan_list_data=[],this.cur_page=0}get contentType(){return this._contentType}set contentType(e){e!=this._contentType&&(this._contentType=e)}start(){this.initView()}initView(){this.releaseManager.on(g.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(g.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new h(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new h(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new h(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new h(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever(),this._contentType===u.bag?this.qipan_list_data.push(w.getBagQiPanList()):this._contentType===u.shop&&(this.qipan_list_data=f.Instance.getShopQipanList()),this.init_shop_item()}init_shop_item(){var e=[];if(this._contentType===u.bag)e.push(this.qipan_list_data[0]);else{let t=this.cur_page===this.qipan_list_data.length-1?1:3;for(let i=0;i<t;i++)e.push(this.qipan_list_data[t-1-i]);this.cur_page=2}this.modelManager.clear(),this.modelManager.insert(e),this.scrollManager.scrollToFooter(0)}async onPullUp(e){if(e.state==d.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==d.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new h(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var s=new l;s.set(this.foot_loading.color),s.a=255*Math.min(i,1),this.foot_loading.color=s}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){e.state==d.RELEASE&&this._isHeaderPlay&&(this._loadTween.start(),e.wait(),this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop());var t=e.progress;if(e.state==d.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new h(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new l;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{this.init_shop_item(),e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{if(this.cur_page++,this.cur_page>=this.qipan_list_data.length)this.scheduleOnce((()=>{e([])}),0);else{var i=[];let t=this.cur_page>=this.qipan_list_data.length-1?1:2;for(let e=0;e<t;e++)i.push(this.qipan_list_data[this.cur_page+(t-1-e)]);this.cur_page+=t-1,this.scheduleOnce((()=>{e(i)}),1)}}))}scrollToHeader(){this.scrollManager.scrollToFooter(1)}getPrefab(e){return this.shopPrefab}getHolder(e,t){return new C(e,t,this)}getView(){return new U(this)}initElement(e,t){}}).prototype,"shopPrefab",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(S.prototype,"header",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(S.prototype,"loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(S.prototype,"foot",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(S.prototype,"foot_loading",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(S.prototype,"item_prefab",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(S.prototype,"_contentType",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.shop}}),t(S.prototype,"contentType",[O],Object.getOwnPropertyDescriptor(S.prototype,"contentType"),S.prototype),z=S))||z));class U extends _{onVisible(){}onDisable(){}}class C extends p{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(y)}onVisible(){console.log("onVisible",this.data),this._shopItem.show(this,this.adapter.item_prefab,this.data,this.adapter.contentType)}onDisable(){this._shopItem.hide()}}s._RF.pop()}}}));

System.register("chunks:///_virtual/qipao_shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,o,s,l,a,r,c,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator,l=t.Component,a=t.Label},function(t){r=t.ClientEvent},function(t){c=t.Constant},function(t){_=t.UIButton}],execute:function(){var u,p,h,m,b,d,g,f,v,y,E;n._RF.push({},"738e5vwBE5DZoLpUgDvZY1E","qipao_shop_item",void 0);const{ccclass:C,property:S}=s;t("qipao_shop_item",(u=C("qipao_shop_item"),p=S(o),h=S(o),m=S(o),b=S(o),u((f=e((g=class extends l{constructor(...t){super(...t),i(this,"lab_name",f,this),i(this,"lab_sell",v,this),i(this,"sp_icon",y,this),i(this,"on_select_bg",E,this),this.m_contentType=null,this.m_item_data=null,this.m_cur_id=0}start(){_.BindClick(this.node,(()=>{this.on_select_bg.active||(console.log("当前选中商品",this.m_item_data),r.dispatchEvent(c.UI_EVENT.UI_MSG_UPDATE_SELECT_QIPAO,this.m_item_data.id))}),this)}onSelect(){this.on_select_bg.active=!0}unSelect(){this.on_select_bg.active=!1}update(t){}show(t,e,i){e===t.id?this.onSelect():this.unSelect(),this.m_item_data=t,this.m_contentType=i,this.lab_name.getComponent(a).string=this.m_item_data.name,this.lab_sell.getComponent(a).string=this.m_item_data.sell}}).prototype,"lab_name",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(g.prototype,"lab_sell",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(g.prototype,"sp_icon",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(g.prototype,"on_select_bg",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=g))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/qipao_shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./clientEvent.ts","./ItemDataConfig.ts","./constant.ts","./GameMng.ts","./qi_pao_select_info.ts","./shop_qipao_page.ts"],(function(e){"use strict";var t,i,o,s,n,a,r,h,l,_,p,c,d,u,f,g,w,y,m,T,b,P;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Prefab,n=e.UITransform,a=e.Sprite,r=e.Node,h=e._decorator,l=e.Tween,_=e.Color},function(e){p=e.Holder},function(e){c=e.ScrollAdapter},function(e){d=e.View},function(e){u=e.ContentType,f=e.ReleaseState},function(e){g=e.ReleaseManager},function(e){w=e.ClientEvent},function(e){y=e.default},function(e){m=e.Constant},function(e){T=e.GameMng},function(e){b=e.qi_pao_select_info},function(e){P=e.shop_qipao_page}],execute:function(){var v,M,E,I,S,F,O,q,A,z,D,L,U,C,H,V,x,R,N,B;o._RF.push({},"a21b7afMUhPYZ7Jn+EJCmH8","qipao_shop_view",void 0);const{ccclass:G,property:Q}=h;e("qipao_shop_view",(v=G("qipao_shop_view"),M=Q(s),E=Q(n),I=Q(a),S=Q(n),F=Q(a),O=Q(s),q=Q(r),A=Q({type:u}),z=Q({type:u}),v((U=t((L=class extends c{constructor(...e){super(...e),i(this,"shopPrefab",U,this),i(this,"header",C,this),i(this,"loading",H,this),i(this,"foot",V,this),i(this,"foot_loading",x,this),i(this,"item_prefab",R,this),i(this,"show_info_node",N,this),i(this,"_contentType",B,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1,this.qipao_list_data=[],this.cur_select_id=""}get contentType(){return this._contentType}set contentType(e){e!=this._contentType&&(this._contentType=e)}start(){this.initView()}initView(){this.releaseManager.on(g.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(g.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever(),this._contentType===u.bag?this.qipao_list_data=T.getBagQiPaoList():this.qipao_list_data=y.Instance.getShopQiPaoList(),this.init_shop_item(),w.on(m.UI_EVENT.UI_MSG_UPDATE_SELECT_QIPAO,this.notice,this)}onDestroy(){w.off(m.UI_EVENT.UI_MSG_UPDATE_SELECT_QIPAO,this.notice,this)}notice(e){this.cur_select_id=e,this.show_info_node.getComponent(b).show(y.Instance.getItemById(e)),this.modelManager.update()}init_shop_item(){if(this.qipao_list_data.length<=0);else{var e=[];this.cur_select_id=this.qipao_list_data[0].id,this.show_info_node.getComponent(b).show(y.Instance.getItemById(this.cur_select_id)),e.push(this.qipao_list_data),this.modelManager.clear(),this.modelManager.insert(e),this.scrollManager.scrollToFooter(0)}}async onPullUp(e){if(e.state==f.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==f.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var o=new _;o.set(this.foot_loading.color),o.a=255*Math.min(i,1),this.foot_loading.color=o}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==f.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==f.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new _;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{this.init_shop_item(),e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{this.scheduleOnce((()=>{e([])}),0)}))}scrollToHeader(){this.scrollManager.scrollToFooter(1)}getPrefab(e){return this.shopPrefab}getHolder(e,t){return new j(e,t,this)}getView(){return new W(this)}initElement(e,t){}}).prototype,"shopPrefab",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(L.prototype,"header",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(L.prototype,"loading",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(L.prototype,"foot",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(L.prototype,"foot_loading",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(L.prototype,"item_prefab",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(L.prototype,"show_info_node",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(L.prototype,"_contentType",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.shop}}),t(L.prototype,"contentType",[z],Object.getOwnPropertyDescriptor(L.prototype,"contentType"),L.prototype),D=L))||D));class W extends d{onVisible(){}onDisable(){}}class j extends p{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(P)}onVisible(){this._shopItem.show(this,this.adapter.item_prefab,this.data,this.adapter.cur_select_id,this.adapter.contentType)}onDisable(){this._shopItem.hide()}}o._RF.pop()}}}));

System.register("chunks:///_virtual/qizi_shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts"],(function(t){"use strict";var e,i,n,o,s,l,r,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator,l=t.Component,r=t.Label},function(t){a=t.UIButton}],execute:function(){var c,u,_,p,m,h,b,d,f;n._RF.push({},"e18172uOv5C7ZOxTFgRHJfA","qizi_shop_item",void 0);const{ccclass:g,property:y}=s;t("qizi_shop_item",(c=g("qizi_shop_item"),u=y(o),_=y(o),p=y(o),c((b=e((h=class extends l{constructor(...t){super(...t),i(this,"lab_name",b,this),i(this,"lab_sell",d,this),i(this,"sp_icon",f,this),this.m_item_data=null,this.m_content_type=void 0}start(){a.BindClick(this.node,(()=>{console.log("当前选中商品",this.m_item_data)}),this)}update(t){}show(t,e){this.m_item_data=t,this.m_content_type=e,this.lab_name.getComponent(r).string=this.m_item_data.name,this.lab_sell.getComponent(r).string=this.m_item_data.sell}}).prototype,"lab_name",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=e(h.prototype,"lab_sell",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(h.prototype,"sp_icon",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=h))||m));n._RF.pop()}}}));

System.register("chunks:///_virtual/qizi_shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./ItemDataConfig.ts","./GameMng.ts","./shop_qizi_page.ts"],(function(e){"use strict";var t,i,o,s,n,a,r,l,h,p,c,u,_,d,g,f,w,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Prefab,n=e.UITransform,a=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){p=e.Holder},function(e){c=e.ScrollAdapter},function(e){u=e.View},function(e){_=e.ContentType,d=e.ReleaseState},function(e){g=e.ReleaseManager},function(e){f=e.default},function(e){w=e.GameMng},function(e){y=e.shop_qizi_page}],execute:function(){var b,T,m,P,v,z,M,F,H,O,L,S,D,q,A,E,I,x;o._RF.push({},"92817Rv8MZDNbHZQHWTCLm0","qizi_shop_view",void 0);const{ccclass:R,property:V}=r;e("qizi_shop_view",(b=R("qizi_shop_view"),T=V(s),m=V(n),P=V(a),v=V(n),z=V(a),M=V(s),F=V({type:_}),H=V({type:_}),b((S=t((L=class extends c{constructor(...e){super(...e),i(this,"shopPrefab",S,this),i(this,"header",D,this),i(this,"loading",q,this),i(this,"foot",A,this),i(this,"foot_loading",E,this),i(this,"item_prefab",I,this),i(this,"_contentType",x,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1,this.qizi_list_data=[],this.cur_page=0}get contentType(){return this._contentType}set contentType(e){e!=this._contentType&&(this._contentType=e)}start(){this.initView()}initView(){this.releaseManager.on(g.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(g.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever(),this._contentType===_.bag?this.qizi_list_data.push(w.getBagQiZiList()):this.qizi_list_data=f.Instance.getShopQiZiList(),this.init_shop_item()}init_shop_item(){var e=[];e.push(this.qizi_list_data),this.modelManager.clear(),this.modelManager.insert(e),this.scrollManager.scrollToFooter(0)}async onPullUp(e){if(e.state==d.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==d.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var o=new h;o.set(this.foot_loading.color),o.a=255*Math.min(i,1),this.foot_loading.color=o}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==d.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==d.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{this.init_shop_item(),e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{this.cur_page++,this.scheduleOnce((()=>{e([])}),0)}))}scrollToHeader(){this.scrollManager.scrollToFooter(1)}getPrefab(e){return this.shopPrefab}getHolder(e,t){return new U(e,t,this)}getView(){return new C(this)}initElement(e,t){}}).prototype,"shopPrefab",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(L.prototype,"header",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(L.prototype,"loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(L.prototype,"foot",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(L.prototype,"foot_loading",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(L.prototype,"item_prefab",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(L.prototype,"_contentType",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _.shop}}),t(L.prototype,"contentType",[H],Object.getOwnPropertyDescriptor(L.prototype,"contentType"),L.prototype),O=L))||O));class C extends u{onVisible(){}onDisable(){}}class U extends p{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(y)}onVisible(){console.log("onVisible",this.data),this._shopItem.show(this,this.adapter.item_prefab,this.data,this.adapter.contentType)}onDisable(){this._shopItem.hide()}}o._RF.pop()}}}));

System.register("chunks:///_virtual/rank_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts"],(function(t){"use strict";var e,n,r,i,s,o,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){r=t.cclegacy,i=t.Node,s=t._decorator},function(t){o=t.default},function(t){c=t.UIButton}],execute:function(){var u,a,l,p,f;r._RF.push({},"8fbdc8v4PRIGL5SkVOWS1Fg","rank_view",void 0);const{ccclass:_,property:d}=s;t("rank_view",(u=_("rank_view"),a=d(i),u((f=e((p=class extends o{constructor(...t){super(...t),n(this,"btn_close",f,this)}start(){c.BindClick(this.btn_close,(()=>{this.closeUI()}),this)}onDestroy(){}update(t){}}).prototype,"btn_close",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=p))||l));r._RF.pop()}}}));

System.register("chunks:///_virtual/recv_firend_duizhan.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./GBaseUI.ts","./UIButton.ts","./UITips.ts","./msgManager.ts","./Tools.ts"],(function(t){"use strict";var e,i,n,s,r,u,o,l,a,c,h,_,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t._decorator,u=t.Sprite,o=t.Label},function(t){l=t.yuezhan_jieguo},function(t){a=t.default},function(t){c=t.UIButton},function(t){h=t.default},function(t){_=t.msgManager},function(t){b=t.Tools}],execute:function(){var p,d,f,m,g,y,z,j,v,w,B,I,U,C,k;n._RF.push({},"a952dOY1phEuKGT91iJBMLk","recv_firend_duizhan",void 0);const{ccclass:D,property:M}=r;t("recv_firend_duizhan",(p=D("recv_firend_duizhan"),d=M(s),f=M(s),m=M(s),g=M(s),y=M(s),z=M(s),p((w=e((v=class extends a{constructor(...t){super(...t),i(this,"btn_close",w,this),i(this,"btn_jieshou",B,this),i(this,"btn_jujue",I,this),i(this,"lab_time",U,this),i(this,"img_head",C,this),i(this,"lab_name",k,this),this.time_=10}start(){}show(t){b.loadWeiXinHead(t.user_avatar,this.img_head.getComponent(u)),this.lab_name.getComponent(o).string=t.user_name,c.BindClick(this.btn_close,(()=>{this.closeUI()}),this),c.BindClick(this.btn_jieshou,(()=>{_.yue_zhan_tong_zhi(l.tong_yi,t.userid),this.closeUI()}),this),c.BindClick(this.btn_jujue,(()=>{_.yue_zhan_tong_zhi(l.ju_jue,t.userid),this.closeUI()}),this),this.schedule((()=>{this.time_<=0&&(h.show("您拒绝对方的邀请！"),this.closeUI()),this.lab_time.getComponent(o).string="("+this.time_+")",this.time_--}),1)}onDestroy(){this.unscheduleAllCallbacks()}update(t){}}).prototype,"btn_close",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(v.prototype,"btn_jieshou",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(v.prototype,"btn_jujue",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(v.prototype,"lab_time",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(v.prototype,"img_head",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(v.prototype,"lab_name",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=v))||j));n._RF.pop()}}}));

System.register("chunks:///_virtual/ReleaseManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Manager.ts","./enum.ts","./ScrollManager.ts"],(function(t){"use strict";var e,i,s,a,r,n,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,a=t._decorator},function(t){r=t.Manager},function(t){n=t.ReleaseState},function(t){o=t.ScrollManager}],execute:function(){var l,h,p,_,u,d,g,c,f,L,b,v,S,E;s._RF.push({},"584779mBRhND6eHOQ3xrp/1","ReleaseManager",void 0);const{ccclass:m,property:R}=a;var w;!function(t){t[t.ON_PULL_UP=0]="ON_PULL_UP",t[t.ON_PULL_DOWN=1]="ON_PULL_DOWN",t[t.ON_PULL_LEFT=2]="ON_PULL_LEFT",t[t.ON_PULL_RIGHT=3]="ON_PULL_RIGHT"}(w||(w={}));t("ReleaseManager",(l=m("ReleaseManager"),h=R("boolean"),p=R({range:[0,1],slide:!0,step:.01,visible:function(){return this.enabled}}),_=R({range:[0,1],slide:!0,step:.01,visible:function(){return this.enabled}}),u=R({range:[0,1],slide:!0,step:.01,visible:function(){return this.enabled}}),d=R({range:[0,1],slide:!0,step:.01,visible:function(){return this.enabled}}),l(((E=class extends r{constructor(...t){super(...t),i(this,"_enabled",f,this),i(this,"left",L,this),i(this,"right",b,this),i(this,"top",v,this),i(this,"bottom",S,this),this._pullUp=void 0,this._pullDown=void 0,this._pullLeft=void 0,this._pullRight=void 0}get enabled(){return this._enabled}set enabled(t){t!=this._enabled&&(this._enabled=t)}get max(){return this.enabled?this.adapter.isHorizontal?this._pullLeft?this._pullLeft.expand:0:this._pullDown?this._pullDown.expand:0:0}get min(){return this.enabled?this.adapter.isHorizontal?this._pullRight?this._pullRight.expand:0:this._pullUp?this._pullUp.expand:0:0}onInit(){this.enabled&&(this._pullUp=new M(this,w.ON_PULL_UP,this.bottom),this._pullDown=new M(this,w.ON_PULL_DOWN,this.top),this._pullLeft=new M(this,w.ON_PULL_LEFT,this.right),this._pullRight=new M(this,w.ON_PULL_RIGHT,this.left),this.adapter.scrollManager.on(o.Event.ON_SCROLL_START,this.onScrollStart,this),this.adapter.scrollManager.on(o.Event.ON_SCROLL_END,this.onScrollEnd,this),this.adapter.scrollManager.on(o.Event.ON_SCROLL_CANCEL,this.onScrollEnd,this),this.checkLoop(),console.log("release创建完成"))}checkLoop(){this.adapter.isHorizontal?this.adapter.isArrangeAxisStart?(this.left>0&&(this.adapter.viewManager.loopHeader=!1),this.right>0&&(this.adapter.viewManager.loopFooter=!1)):(this.left>0&&(this.adapter.viewManager.loopFooter=!1),this.right>0&&(this.adapter.viewManager.loopHeader=!1)):this.adapter.isArrangeAxisStart?(this.top>0&&(this.adapter.viewManager.loopHeader=!1),this.bottom>0&&(this.adapter.viewManager.loopFooter=!1)):(this.top>0&&(this.adapter.viewManager.loopFooter=!1),this.bottom>0&&(this.adapter.viewManager.loopHeader=!1))}onScrollStart(){this.adapter.isHorizontal?(this.left>0&&this._pullRight._setState(n.IDLE),this.right>0&&this._pullLeft._setState(n.IDLE)):(this.top>0&&this._pullDown._setState(n.IDLE),this.bottom>0&&this._pullUp._setState(n.IDLE))}onScrollEnd(){this.adapter.isHorizontal?(this.left>0&&this._pullRight._setState(n.RELEASE),this.right>0&&this._pullLeft._setState(n.RELEASE)):(this.top>0&&this._pullDown._setState(n.RELEASE),this.bottom>0&&this._pullUp._setState(n.RELEASE))}internal_lateUpdate(t){if(this.enabled){var e=this.adapter.scrollManager.boundaryOffset;this.adapter.scrollManager.dragging||(e=0),this.adapter.isHorizontal?(this.left>0&&this._pullRight._set(Math.max(-e,0),e<0),this.right>0&&this._pullLeft._set(Math.max(e,0),e>0)):(this.top>0&&this._pullDown._set(Math.max(e,0),e>0),this.bottom>0&&this._pullUp._set(Math.max(-e,0),e<0))}}}).Event=w,f=e((c=E).prototype,"_enabled",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(c.prototype,"enabled",[h],Object.getOwnPropertyDescriptor(c.prototype,"enabled"),c.prototype),L=e(c.prototype,"left",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b=e(c.prototype,"right",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),v=e(c.prototype,"top",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),S=e(c.prototype,"bottom",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),g=c))||g));class M{get expand(){return this._expand}get progress(){return this._progress}get offset(){return this._offset}get state(){return this._state}constructor(t,e,i){this._expand=0,this._progress=0,this._offset=0,this._state=void 0,this._defaultPercentage=void 0,this._manager=void 0,this._event=void 0,this._stop=void 0,this._defaultPercentage=i,this._manager=t,this._event=e}_set(t,e){e&&(this._stop=!1),this._stop||(this._offset=t,this._progress=t/(this._defaultPercentage*this._manager.adapter.mainAxisSize),this._stop=this._offset<=.1,this._setState(n.PULL),this._manager.emit(this._event,this))}_setState(t){this._state!=n.WAIT&&(t==n.PULL&&this._state==n.RELEASE||(this._state=t))}wait(t=this._defaultPercentage*this._manager.adapter.mainAxisSize){this._expand=t,this._state=n.WAIT}release(){this._expand=0,this._state=n.IDLE,this.offset<=.1&&(this._offset=0,this._progress=0,this._manager.emit(this._event,this))}}t("ReleaseEvent",M),s._RF.pop()}}}));

System.register("chunks:///_virtual/renjiCreate.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ChessRBSel.ts","./ChessMng.ts","./UIDiffSel.ts","./ScenceMng.ts","./UIButton.ts"],(function(e){"use strict";var t,n,i,o,l,r,s,c,a,d,h,u,b,g,_,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.Label,l=e.Node,r=e.Slider,s=e._decorator,c=e.Component,a=e.Color,d=e.Sprite},function(e){h=e.default},function(e){u=e.default,b=e.ChessType},function(e){g=e.default},function(e){_=e.default},function(e){f=e.UIButton}],execute:function(){var p,S,m,C,x,I,y,v,F,E,B,D,H,j,X,w;i._RF.push({},"4701b753oRN07a+A9BALNWj","renjiCreate",void 0);const{ccclass:z,property:A}=s;e("renjiCreate",(p=z("renjiCreate"),S=A(o),m=A(o),C=A(o),x=A(l),I=A(l),y=A(r),p(((w=class e extends c{constructor(...e){super(...e),n(this,"nandu_lab",E,this),n(this,"guoguanlv_lab",B,this),n(this,"nandu_lv_lab",D,this),n(this,"btn_hongse",H,this),n(this,"btn_heise",j,this),n(this,"nandu_sd",X,this),this.selectSlider=0,this.old_selectSlider=0,this.select_index=0,this.index=0,this.color=new a}start(){var e=this;f.BindClick(this.btn_hongse,(()=>{if(1!=h.selIndex){e.color=e.color.fromHEX("#E70000"),e.btn_hongse.getComponent(d).color=e.color,e.color=e.color.fromHEX("#EDE4D5"),e.btn_heise.getComponent(d).color=e.color,e.color=e.color.fromHEX("#000000"),e.btn_heise.getChildByName("Label").getComponent(o).color=e.color,e.color=e.color.fromHEX("#FFFFFF"),e.btn_hongse.getChildByName("Label").getComponent(o).color=e.color;var t=e.btn_hongse.getSiblingIndex();e.btn_hongse.setSiblingIndex(e.btn_heise.getSiblingIndex()),e.btn_heise.setSiblingIndex(t),h.selIndex=1}}),this),f.BindClick(this.btn_heise,(()=>{if(0!=h.selIndex){e.color=e.color.fromHEX("#EDE4D5"),e.btn_hongse.getComponent(d).color=e.color,e.color=e.color.fromHEX("#4D4C4A"),e.btn_heise.getComponent(d).color=e.color,e.color=e.color.fromHEX("#000000"),e.btn_hongse.getChildByName("Label").getComponent(o).color=e.color,e.color=e.color.fromHEX("#FFFFFF"),e.btn_heise.getChildByName("Label").getComponent(o).color=e.color;var t=e.btn_hongse.getSiblingIndex();e.btn_hongse.setSiblingIndex(e.btn_heise.getSiblingIndex()),e.btn_heise.setSiblingIndex(t),h.selIndex=0}}),this),this.updateInfo(),h.selIndex=0}update(e){this.selectSlider!=this.old_selectSlider&&(this.old_selectSlider=this.selectSlider,this.updateInfo())}onSlider(e){this.selectSlider=e._progress}updateInfo(){var t=0;this.old_selectSlider<.2?(t=0,this.select_index=.2):this.old_selectSlider>.2&&this.old_selectSlider<.4?(t=1,this.select_index=.4):this.old_selectSlider>.4&&this.old_selectSlider<.6?(t=2,this.select_index=.6):this.old_selectSlider>.6&&this.old_selectSlider<.8?(t=3,this.select_index=.8):this.old_selectSlider>.8&&(t=4,this.select_index=1),this.index=t,this.nandu_lab.string=e.lvArr[t],this.guoguanlv_lab.string=e.ndArr[t],this.nandu_lv_lab.string=t.toString()}onCreateRenji(){g.selectIndex=this.index,u.Instance.chesstype=b.renjiboyi,console.log("UIButton onclick"),_.Instance.load("Chess")}}).lvArr=["小白","普通","中等","困难","大師"],w.ndArr=["55.6%","31.5%","35.9","40.69%","14.14%"],E=t((F=w).prototype,"nandu_lab",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(F.prototype,"guoguanlv_lab",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(F.prototype,"nandu_lv_lab",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(F.prototype,"btn_hongse",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(F.prototype,"btn_heise",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=t(F.prototype,"nandu_sd",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=F))||v));i._RF.pop()}}}));

System.register("chunks:///_virtual/ResMng.ts",["cc"],(function(t){"use strict";var e,a,n,l;return{setters:[function(t){e=t.cclegacy,a=t._decorator,n=t.resources,l=t.SpriteFrame}],execute:function(){var s,r;e._RF.push({},"d5ae7Jgqf5MYp45mn883pfv","ResMng",void 0);const{ccclass:c,property:o}=a;t("ResMng",c("ResMng")(((r=class t{constructor(){}static get Instance(){return null===t._instance&&(t._instance=new t),t._instance}static LoadImg(t,e,a=null,s=null){n.load("img/"+t+"/spriteFrame",l,((n,l)=>{n?console.log("not find","img/"+t):(e&&l&&(e.spriteFrame=l),a&&a.call(s))}))}static LoadAvatar(t,e,a=null,s=null){n.load("avatar/"+t+"/spriteFrame",l,((n,l)=>{n?console.log("not find","avatar/"+t):(e&&l&&(e.spriteFrame=l),a&&a.call(s))}))}static LoadEmote(t,e,a=null,s=null){n.load("chat_emote/"+t+"/spriteFrame",l,((n,l)=>{n?console.log("not find","avatar/"+t):(e&&l&&(e.spriteFrame=l),a&&a.call(s))}))}static LoadItem(t,e,a=null,s=null){n.load("item/"+t+"/spriteFrame",l,((n,l)=>{n?console.log("not find","img/"+t):(e&&l&&(e.spriteFrame=l),a&&a.call(s))}))}})._instance=null,s=r))||s);e._RF.pop()}}}));

System.register("chunks:///_virtual/roomData.ts",["cc"],(function(t){"use strict";var s,i;return{setters:[function(t){s=t.cclegacy,i=t._decorator}],execute:function(){var r;s._RF.push({},"0a7f5YrBstLBZkFOYtenT45","roomData",void 0);const{ccclass:e,property:a}=i;t("roomData",e("roomData")(r=class{constructor(){this.roomid=null,this.everystepaddtime=null,this.countdown=null,this.rival=null,this.ready=0,this.wait_rival_status=0,this.wait_rival_startGame_status=0,this.rivalIsOffline=0,this.totaltime=0,this.everysteptime=0,this.firstid=0,this.roomtype=0,this.ownerid=0,this.chess=null,this.game_number=null,this.round=0,this.time_count_data=null,this.heqi_number=3,this.huiqi_number=3,this.huiqi_setup=0,this.chat_history_list=null,this.isfirst_start=0}})||r);s._RF.pop()}}}));

System.register("chunks:///_virtual/ScenceMng.ts",["cc","./GameMng.ts","./Singleton.ts","./UILoading.ts","./UIManager.ts"],(function(e){"use strict";var n,t,o,s,c,a,r;return{setters:[function(e){n=e.cclegacy,t=e.director,o=e._decorator},function(e){s=e.GameMng},function(e){c=e.Singleton},function(e){a=e.default},function(e){r=e.UIManager}],execute:function(){var i;n._RF.push({},"35457aBid1LIY29zjr9dHAc","ScenceMng",void 0);const{ccclass:d,property:l}=o;e("default",d(i=class extends(c()){constructor(...e){super(...e),this.loadts=null}load(e){let n=r.AddPrefab(s.Instance.uiloading);this.loadts=n.getComponent(a),t.preloadScene(e,this.onProgress.bind(this),(()=>{t.loadScene(e)}))}loadGameLaunch(e){t.preloadScene(e,this.onProgress.bind(this),(()=>{t.loadScene(e)}))}onProgress(e,n,t){}})||i);n._RF.pop()}}}));

System.register("chunks:///_virtual/ScrollAdapter.ts",["./rollupPluginModLoBabelHelpers.js","cc","./enum.ts","./CenterManager.ts","./LayoutManager.ts","./ModelManager.ts","./PageViewManager.ts","./ReleaseManager.ts","./ScrollManager.ts","./ViewManager.ts"],(function(e){"use strict";var t,r,a,i,n,s,l,o,g,c,h,u,M,p;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){a=e.cclegacy,i=e._decorator,n=e.Component},function(e){s=e.Orientation,l=e.ArrangeAxis},function(e){o=e.CenterManager},function(e){g=e.LayoutManager},function(e){c=e.ModelManager},function(e){h=e.PageViewManager},function(e){u=e.ReleaseManager},function(e){M=e.ScrollManager},function(e){p=e.ViewManager}],execute:function(){var w,A,d,f,v,m,_,b,x,y,S,z,V,P,H;a._RF.push({},"d5d1crBDMFIA4umJNt7GKmz","ScrollAdapter",void 0);const{ccclass:U,property:C}=i;e("ScrollAdapter",(w=U("ScrollAdapter"),A=C(M),d=C(p),f=C(g),v=C(h),m=C(u),_=C(o),w((y=t((x=class extends n{constructor(...e){super(...e),r(this,"scrollManager",y,this),r(this,"viewManager",S,this),r(this,"layoutManager",z,this),r(this,"pageViewManager",V,this),r(this,"releaseManager",P,this),r(this,"centerManager",H,this),this.modelManager=new c}get isVertical(){return this.scrollManager.orientation==s.Vertical}get isHorizontal(){return this.scrollManager.orientation==s.Horizontal}get isArrangeAxisStart(){return this.viewManager.arrangeAxis==l.Start}get mainAxis(){return this.isVertical?"y":"x"}get crossAxis(){return this.isVertical?"x":"y"}get mainAxisAnchorPoint(){let e=this.isVertical?1:0;return this.isArrangeAxisStart?e:1-e}get mainAxisSize(){return this.scrollManager.view.contentSize[this.mainAxis]}get crossAxisSize(){return this.scrollManager.view.contentSize[this.crossAxis]}get multiplier(){var e=this.isVertical?-1:1;return this.isArrangeAxisStart?-e:e}get paddingHeader(){return this.isHorizontal?this.isArrangeAxisStart?this.viewManager.left:this.viewManager.right:this.isArrangeAxisStart?this.viewManager.top:this.viewManager.bottom}get paddingFooter(){return this.isHorizontal?this.isArrangeAxisStart?this.viewManager.right:this.viewManager.left:this.isArrangeAxisStart?this.viewManager.bottom:this.viewManager.top}get mainAxisPadding(){return this.isHorizontal?this.viewManager.left+this.viewManager.right:this.viewManager.top+this.viewManager.bottom}getParentAdapter(e){if(null!=e){var t=e.getComponent("ScrollAdapter");return t||this.getParentAdapter(e.parent)}}__preload(){this.scrollManager.internal_create(this),this.viewManager.internal_create(this),this.modelManager.internal_create(this),this.releaseManager.internal_create(this),this.layoutManager.internal_create(this),this.pageViewManager.internal_create(this),this.centerManager.internal_create(this),this.viewManager.internal_init(),this.releaseManager.internal_init(),this.layoutManager.internal_init(),this.pageViewManager.internal_init(),this.centerManager.internal_init(),this.scrollManager.internal_init(),this.modelManager.internal_init()}lateUpdate(e){this.scrollManager.internal_lateUpdate(e),this.viewManager.internal_lateUpdate(e),this.layoutManager.internal_lateUpdate(e),this.releaseManager.internal_lateUpdate(e)}}).prototype,"scrollManager",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new M}}),S=t(x.prototype,"viewManager",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new p}}),z=t(x.prototype,"layoutManager",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new g}}),V=t(x.prototype,"pageViewManager",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new h}}),P=t(x.prototype,"releaseManager",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),H=t(x.prototype,"centerManager",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new o}}),b=x))||b));a._RF.pop()}}}));

System.register("chunks:///_virtual/Scrollbar.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ScrollAdapter.ts","./enum.ts","./helper.ts","./ScrollManager.ts"],(function(t){"use strict";var i,e,r,s,n,a,o,h,l,c,p,u,_,d,f,g,m,b,S;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){r=t.cclegacy,s=t.Color,n=t.Sprite,a=t.SpriteFrame,o=t._decorator,h=t.Component,l=t.UITransform,c=t.Node,p=t.v3,u=t.Vec2},function(t){_=t.ScrollAdapter},function(t){d=t.ScrollbarDirection,f=t.Transition,g=t.Orientation},function(t){m=t.Helper},function(t){b=t.ScrollManager,S=t.ADAPTER}],execute:function(){var T,v,y,E,w,H,z,C,M,O,A,L,x,R,U,G,D,I,N,P,V,k,F,B,j,K,W,q,J,Q,X,Y,Z,$,tt,it,et,rt,st,nt;r._RF.push({},"e7832mHcjNK2r9z66HM2mwU","Scrollbar",void 0);const{ccclass:at,property:ot}=o,ht=new s;t("Scrollbar",(T=at("Scrollbar"),v=ot(_),y=ot(n),E=ot({type:d,tooltip:"滚动方向"}),w=ot({tooltip:"开启后会允许用户滑动进度条"}),H=ot({range:[0,1],slide:!0,step:.001,visible:function(){return this.interactable},tooltip:"可拖拽的最小限制，默认=0不限制,仅当你开启了循环,并且你的item会实时修改主轴尺寸时,那么你应该适当限制拖拽区域"}),z=ot({range:[0,1],slide:!0,step:.001,visible:function(){return this.interactable},tooltip:"可拖拽的最大限制，默认=1不限制,仅当你开启了循环,并且你的item会实时修改主轴尺寸时,那么你应该适当限制拖拽区域"}),C=ot({type:f}),M=ot({type:f,visible:function(){return this.interactable}}),O=ot({type:n,visible:function(){return this.transition!=f.None&&this.interactable}}),A=ot({type:a,visible:function(){return this.transition==f.SpriteSwap&&this.interactable}}),L=ot({type:a,visible:function(){return this.transition==f.SpriteSwap&&this.interactable}}),x=ot({visible:function(){return this.transition==f.ColorTint&&this.interactable}}),R=ot({visible:function(){return this.transition==f.ColorTint&&this.interactable}}),U=ot({visible:function(){return this.transition==f.Scale&&this.interactable}}),G=ot({visible:function(){return this.transition==f.Scale&&this.interactable}}),D=ot({visible:function(){return this.transition==f.Scale||this.transition==f.ColorTint&&this.interactable}}),I=ot({range:[0,11],slide:!0,step:1,tooltip:"用于进度的步数。值为 < 2 将禁用"}),N=ot({tooltip:"开启后会在滚动条无更新时自动隐藏"}),P=ot({visible:function(){return this.enableAutoHide},tooltip:"自动隐藏滚动条的时间"}),T((F=i((k=class extends h{constructor(...t){super(...t),e(this,"adapter",F,this),e(this,"handle",B,this),e(this,"direction",j,this),e(this,"interactable",K,this),e(this,"dragMinLimit",W,this),e(this,"dragMaxLimit",q,this),e(this,"_transition",J,this),e(this,"targetGraphic",Q,this),e(this,"hoverSprite",X,this),e(this,"pressedSprite",Y,this),e(this,"hoverColor",Z,this),e(this,"pressedColor",$,this),e(this,"hoverScale",tt,this),e(this,"pressedScale",it,this),e(this,"transitionDuration",et,this),e(this,"numberOfSteps",rt,this),e(this,"enableAutoHide",st,this),e(this,"autoHideTime",nt,this),this._transitionInfo=void 0,this._targetEnter=void 0,this._targetStart=void 0,this._isDirty=!1,this._transform=void 0,this._handleTransform=void 0,this._size=0,this._value=-1,this._pointerEvent=void 0,this._offset=void 0,this._isHide=void 0,this._opacity=255,this._autoHideRemainingTime=void 0,this._rawTargetScale=void 0,this._rawTargetFrame=void 0,this._rawTargetColor=void 0}get transition(){return this._transition}set transition(t){t!=this._transition&&(this._transition=t,t!=f.None&&(this.targetGraphic||(this.targetGraphic=this.handle)))}get size(){return this._size}set size(t){t!=this._size&&(this._size=m.clamp(t,.01,1),this._isDirty=!0)}get value(){return this._value}set value(t){t!=this._value&&(this._value=this.getSteps(t),this._isDirty=!0)}get stepSize(){return this.numberOfSteps>1?1/(this.numberOfSteps-1):.1}get transform(){return this._transform||(this._transform=this.node.getComponent(l)),this._transform}get handleTransform(){return this.handle?(this._handleTransform||(this._handleTransform=this.handle.node.getComponent(l)),this._handleTransform):null}get xy(){return this.axis==g.Horizontal?"x":"y"}get wh(){return this.axis==g.Horizontal?"width":"height"}get axis(){return this.direction==d.Left_To_Right||this.direction==d.Right_To_Left?g.Horizontal:g.Vertical}__preload(){this.transform.setAnchorPoint(.5,.5),this.handleTransform.setAnchorPoint(.5,.5),this.handle.node.setPosition(0,0),this.adapter&&(this.adapter.scrollManager.on(b.Event.ON_UPDATE_PERCENTAGE,this._onUpdateScrollbar,this),this._updateVisuals()),this.targetGraphic&&(this._rawTargetScale=this.targetGraphic.node.getScale().clone(),this._rawTargetFrame=this.targetGraphic.spriteFrame,this._rawTargetColor=this.targetGraphic.color.clone()),this._openAutoHide(!0)}onEnable(){const t=this.node.getComponent(n);t&&(this._opacity=t.color.a),this.adapter&&(this.node[S]=!0,this.node.on(c.EventType.TOUCH_START,this._onTouchStart,this),this.node.on(c.EventType.TOUCH_MOVE,this._onTouchMove,this),this.node.on(c.EventType.TOUCH_END,this._onTouchEnd,this),this.node.on(c.EventType.TOUCH_CANCEL,this._onTouchEnd,this),this.node.on(c.EventType.MOUSE_ENTER,this._mouseEnter,this),this.node.on(c.EventType.MOUSE_LEAVE,this._mouseLeave,this),this.targetGraphic&&(this.targetGraphic.node.on(c.EventType.MOUSE_ENTER,this._targetMouseEnter,this),this.targetGraphic.node.on(c.EventType.MOUSE_LEAVE,this._targetMouseLeave,this)))}onDisable(){this.node.off(c.EventType.TOUCH_START,this._onTouchStart,this),this.node.off(c.EventType.TOUCH_MOVE,this._onTouchMove,this),this.node.off(c.EventType.TOUCH_END,this._onTouchEnd,this),this.node.off(c.EventType.TOUCH_CANCEL,this._onTouchEnd,this),this.node.off(c.EventType.MOUSE_ENTER,this._mouseEnter,this),this.node.off(c.EventType.MOUSE_LEAVE,this._mouseLeave,this),this.targetGraphic&&(this.targetGraphic.node.off(c.EventType.MOUSE_ENTER,this._targetMouseEnter,this),this.targetGraphic.node.off(c.EventType.MOUSE_LEAVE,this._targetMouseLeave,this))}_targetMouseEnter(){switch(this._targetEnter=!0,this._openAutoHide(!1),this.transition){case f.Scale:this._transitionScale(this._targetStart?this.pressedScale:this.hoverScale);break;case f.SpriteSwap:this._transitionSprite(this._targetStart?this.pressedSprite:this.hoverSprite);break;case f.ColorTint:this._transitionColor(this._targetStart?this.pressedColor:this.hoverColor)}}_targetMouseLeave(){switch(this._targetEnter=!1,this._openAutoHide(!0),this.transition){case f.Scale:this._transitionScale(this._targetStart?this.pressedScale:this._rawTargetScale);break;case f.SpriteSwap:this._transitionSprite(this._targetStart?this.pressedSprite:this._rawTargetFrame);break;case f.ColorTint:this._transitionColor(this._targetStart?this.pressedColor:this._rawTargetColor)}}_transitionScale(t){t&&this.targetGraphic&&(this._transitionInfo={time:0,from:this.targetGraphic.node.getScale().clone(),to:t})}_transitionColor(t){t&&this.targetGraphic&&(this._transitionInfo={time:0,from:this.targetGraphic.color,to:t})}_transitionSprite(t){t&&this.targetGraphic&&(this.targetGraphic.spriteFrame=t)}_mouseEnter(t){this.interactable&&this._openAutoHide(!1)}_mouseLeave(t){this.interactable&&this._openAutoHide(!0)}_openAutoHide(t){this.enableAutoHide&&(this._autoHideRemainingTime=this.autoHideTime,this._isHide=t,t||this._setOpacity(this._opacity))}_onTouchStart(t){if(this.interactable&&1!=this.size&&0!=this.size){this._openAutoHide(!1),this._pointerEvent=null,this._targetStart=!0;var i=t.getUIStartLocation();if(this._offset=this.handleTransform.convertToNodeSpaceAR(p(i.x,i.y)),Math.abs(this._offset[this.xy])>.5*this.handleTransform[this.wh]){this._offset=null,this._pointerEvent=t;var e=this._calcPercentage(t);this._setPercentage(e)}this.transition==f.Scale?this._transitionScale(this.pressedScale):this.transition==f.SpriteSwap?this._transitionSprite(this.pressedSprite):this.transition==f.ColorTint&&this._transitionColor(this.pressedColor)}}_onTouchMove(t){if(this.interactable&&1!=this.size&&0!=this.size&&this._offset){var i=this._calcPercentage(t,this._offset[this.xy]);this._setPercentage(i)}}_onTouchEnd(t){if(this.interactable&&1!=this.size&&0!=this.size){switch(this._offset=null,this._pointerEvent=null,this._targetStart=!1,this.transition){case f.Scale:this._transitionScale(this._targetEnter?this.hoverScale:this._rawTargetScale);break;case f.SpriteSwap:this._transitionSprite(this._targetEnter?this.hoverSprite:this._rawTargetFrame);break;case f.ColorTint:this._transitionColor(this._targetEnter?this.hoverColor:this._rawTargetColor)}this.adapter.centerManager.scrollToCenter()}}_setPercentage(t){this.adapter.scrollManager.stopScroll(),this.adapter.scrollManager.setPercentage(t)}_calcPercentage(t,i=0){var e=(this.axis==g.Horizontal?this.transform.width:this.transform.height)*(1-this.size),r=t.getUILocation(),s=this.transform.convertToNodeSpaceAR(p(r.x,r.y))[this.xy]-i-.5*-this.transform[this.wh];s-=.5*this.handleTransform[this.wh];var n=this.adapter.scrollManager.percentage;switch(this.direction){case d.Right_To_Left:case d.Top_To_Bottom:n=m.clamp(1-s/e,this.dragMinLimit,this.dragMaxLimit);break;case d.Left_To_Right:case d.Bottom_To_Top:n=m.clamp(s/e,this.dragMinLimit,this.dragMaxLimit)}return this.getSteps(n)}_onUpdateScrollbar(t,i){var e=0,r=0;this.adapter.viewManager.virtualSize>0&&(e=this.adapter.viewManager.virtualSize>=this.adapter.mainAxisSize?m.clamp01((this.adapter.mainAxisSize-Math.abs(i))/this.adapter.viewManager.virtualSize):1),r=t,this.size=e,this.numberOfSteps>1&&(r=Math.round(r*(this.numberOfSteps-1))/(this.numberOfSteps-1),r=m.clamp01(r)),this.value=r,this._autoHideRemainingTime=this.autoHideTime,this._setOpacity(this._opacity)}_updateVisuals(){if(this.handleTransform&&this.adapter){var t={x:0,y:0},i={x:0,y:0},e=this.adapter.mainAxis,r=m.clamp01(this.value)*(1-this.size);t[e]=r,i[e]=r+this.size;var s=this.transform.contentSize[this.wh]-i[e]*this.transform.contentSize[this.wh],n=t[e]*this.transform.contentSize[this.wh],a=this.handle.node.getPosition();switch(this.direction){case d.Bottom_To_Top:case d.Left_To_Right:a[this.xy]=.5*(n-s);break;case d.Top_To_Bottom:case d.Right_To_Left:a[this.xy]=.5*(s-n)}this.handleTransform[this.wh]=this.transform.contentSize[this.wh]-s-n,this.handle.node.setPosition(a)}}update(t){this._clearDirty(),this._autoHide(t),this._tranitionHandler(t)}_clearDirty(){if(this._isDirty&&(this._isDirty=!1,this._updateVisuals(),this._pointerEvent)){var t=this._pointerEvent.getUILocation();this._offset=this.handleTransform.convertToNodeSpaceAR(p(t.x,t.y)),this._pointerEvent=null}}_autoHide(t){if(this.enableAutoHide&&this._isHide&&!(this._autoHideRemainingTime<=0)&&(this._autoHideRemainingTime-=t,this._autoHideRemainingTime<=this.autoHideTime)){this._autoHideRemainingTime=Math.max(0,this._autoHideRemainingTime);var i=this._opacity*(this._autoHideRemainingTime/this.autoHideTime);this._setOpacity(i)}}_tranitionHandler(t){var i=this.targetGraphic;if(this.transition==f.None||!i||!this._transitionInfo)return;this._transitionInfo.time+=t;let e=1;if(this.transitionDuration>0&&(e=this._transitionInfo.time/this.transitionDuration),e>=1&&(e=1),this.transition==f.Scale){this._transitionInfo.current=i.node.getScale();let t=this._transitionInfo.from,r=this._transitionInfo.to;this._transitionInfo.current.x=m.lerp(t.x,r.x,e),this._transitionInfo.current.y=m.lerp(t.y,r.y,e),i.node.setScale(this._transitionInfo.current)}else if(this.transition==f.ColorTint){let t=this._transitionInfo.from,r=this._transitionInfo.to;s.lerp(ht,t,r,e),i.color=ht}1===e&&(this._transitionInfo=null)}_setOpacity(t){if(!this.handle)return;const i=function(i){i&&(ht.set(i.color),ht.a=t,i.color=ht)};i(this.node.getComponent(n)),i(this.handle.getComponent(n))}getSteps(t){return this.numberOfSteps>1&&(t=Math.round(t*(this.numberOfSteps-1))/(this.numberOfSteps-1),t=m.clamp(t,this.dragMinLimit,this.dragMaxLimit)),t}}).prototype,"adapter",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(k.prototype,"handle",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=i(k.prototype,"direction",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.Top_To_Bottom}}),K=i(k.prototype,"interactable",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),W=i(k.prototype,"dragMinLimit",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),q=i(k.prototype,"dragMaxLimit",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),J=i(k.prototype,"_transition",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return f.None}}),i(k.prototype,"transition",[M],Object.getOwnPropertyDescriptor(k.prototype,"transition"),k.prototype),Q=i(k.prototype,"targetGraphic",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=i(k.prototype,"hoverSprite",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=i(k.prototype,"pressedSprite",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=i(k.prototype,"hoverColor",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return s.WHITE.clone()}}),$=i(k.prototype,"pressedColor",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new s(211,211,211,255)}}),tt=i(k.prototype,"hoverScale",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u(1,1)}}),it=i(k.prototype,"pressedScale",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u(1.2,1.2)}}),et=i(k.prototype,"transitionDuration",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.2}}),rt=i(k.prototype,"numberOfSteps",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),st=i(k.prototype,"enableAutoHide",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nt=i(k.prototype,"autoHideTime",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),V=k))||V));r._RF.pop()}}}));

System.register("chunks:///_virtual/ScrollManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Manager.ts","./debug.ts","./enum.ts","./helper.ts","./ViewManager.ts"],(function(t){"use strict";var e,i,n,a,r,s,o,h,l,c,_,d,p,u,g,v,E,O,M,T;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Vec3,r=t.UITransform,s=t._decorator,o=t.Node,h=t.Widget,l=t.EventTouch,c=t.macro,_=t.easing},function(t){d=t.Manager},null,function(t){p=t.Orientation,u=t.TouchMode,g=t.MovementType,v=t.NestedDirection,E=t.ScrollDirection,O=t.Layer},function(t){M=t.Helper},function(t){T=t.ViewManager}],execute:function(){var y,A,f,S,m,w,b,P,C,N,L,x,D,H,R,z,I,U,V,F,B,G,k,X,W,Z,j,q,Y,K;n._RF.push({},"6000cNyEYlC4aj/Efw70/yK","ScrollManager",void 0);const{ccclass:J,property:Q}=s,$=new a,tt=t("ADAPTER","__ADAPTER__");var et;!function(t){t[t.ON_SCROLL=0]="ON_SCROLL",t[t.ON_UPDATE_PERCENTAGE=1]="ON_UPDATE_PERCENTAGE",t[t.ON_VIEW_SIZE_CHANGED=2]="ON_VIEW_SIZE_CHANGED",t[t.ON_ABOUT_TO_STOP=3]="ON_ABOUT_TO_STOP",t[t.ON_SCROLL_START=4]="ON_SCROLL_START",t[t.ON_SCROLL_END=5]="ON_SCROLL_END",t[t.ON_SCROLL_CANCEL=6]="ON_SCROLL_CANCEL",t[t.ON_CHANGED_ORIENTATION=7]="ON_CHANGED_ORIENTATION",t[t.ON_SCROLL_TO_GROUPINDEX_BEFOR=8]="ON_SCROLL_TO_GROUPINDEX_BEFOR",t[t.ON_SCROLL_TO_GROUPINDEX_AFTER=9]="ON_SCROLL_TO_GROUPINDEX_AFTER",t[t.ON_SCROLL_TO_MODELINDEX_BEFOR=10]="ON_SCROLL_TO_MODELINDEX_BEFOR",t[t.ON_SCROLL_TO_MODELINDEX_AFTER=11]="ON_SCROLL_TO_MODELINDEX_AFTER"}(et||(et={}));t("ScrollManager",(y=J("ScrollManager"),A=Q(r),f=Q(r),S=Q(r),m=Q(r),w=Q({type:p}),b=Q({type:p}),P=Q({type:u}),C=Q({type:g}),N=Q({range:[0,1],slide:!0,step:.001,visible:function(){return this.movementType==g.Elastic}}),L=Q({range:[0,1],slide:!0,step:.001,visible:function(){return this.inertia}}),x=Q({tooltip:"当滚动速度小于这个值时，会发送ON_ABOUT_TO_STOP广播"}),D=Q({tooltip:"取消子节点的Button点击事件"}),H=Q({range:[0,.5],slide:!0,step:.001,visible:function(){return this.inertia}}),R=Q({range:[.5,1],slide:!0,step:.001,visible:function(){return this.inertia}}),y(((K=class extends d{constructor(...t){super(...t),i(this,"_view",U,this),i(this,"_content",V,this),i(this,"_orientation",F,this),i(this,"touchMode",B,this),i(this,"movementType",G,this),i(this,"elasticity",k,this),i(this,"inertia",X,this),i(this,"decelerationRate",W,this),i(this,"aboutToStopVelocity",Z,this),i(this,"cancelInnerEvents",j,this),i(this,"nestedMinThreshold",q,this),i(this,"nestedMaxThreshold",Y,this),this.__debug_graphics=void 0,this._boundaryOffset=0,this._viewWidget=null,this._parentAdapter=void 0,this._layerLowest=void 0,this._layerMedium=void 0,this._layerHighest=void 0,this._percentage=0,this._velocity=0,this._dragging=!1,this._scrolling=!1,this._isCanceledEvent=!1,this._contentStartPosition=new a,this._prevContentPosition=new a,this._nestedDirection=v.Both,this._parentTouch=!1,this._stopCheckNested=!1,this._scrollHandlePercentage=null,this._scrollHandlePosition=null,this._isEmitAboutToStop=!1,this._isMyEventAndMoved=!1,this._scrollDirection=E.None,this._laseScrollDirection=E.None,this._touchEvent=null,this.test=!1}get view(){return this._view}set view(t){this._view=t}get content(){return this._content}set content(t){this._content=t}get orientation(){return this._orientation}set orientation(t){t!=this._orientation&&(this._orientation=t,this.emit(et.ON_CHANGED_ORIENTATION))}get _viewMin(){return-this.adapter.mainAxisSize}get _viewMax(){return this.adapter.mainAxisSize}get _defaultMin(){return 1==this.adapter.multiplier?-this.adapter.mainAxisSize:0}get _defaultMax(){return 1==this.adapter.multiplier?0:this.adapter.mainAxisSize}get isMyEventAndMoved(){return this._isMyEventAndMoved}get velocity(){return this._velocity}get scrollDirection(){return this._scrollDirection}get laseScrollDirection(){return this._laseScrollDirection}get percentage(){return this._percentage}get dragging(){return this._dragging}get boundaryOffset(){return this._boundaryOffset}get parentAdapter(){return this._parentAdapter}get canAutoScroll(){return!this.dragging&&this.adapter.viewManager.virtualSize>this.adapter.mainAxisSize}get canTouch(){return this.touchMode==u.AlwaysAllow||this.touchMode!=u.Disabled&&(!!this.adapter.centerManager.enabled||(!!this.adapter.releaseManager.enabled||this.adapter.viewManager.virtualSize>this.adapter.mainAxisSize))}get contentPosition(){return this.content.node.position[this.adapter.mainAxis]}onInit(){this._initView(),this._initContent(),this._parentAdapter=this.adapter.getParentAdapter(this.adapter.node.parent),this.view.node[tt]=!0,this.adapter.viewManager.on(T.Event.ON_UPDATE_VIEWS,this._onUpdateViews,this),this.adapter.viewManager.on(T.Event.ON_CHANGED_VIRTUALSIZE,this._onChangedVirtualSize,this),this.adapter.viewManager.on(T.Event.ON_CHANGED_OVERFLOWHEADER,this._onChangedOverflowHeader,this),this.adapter.viewManager.on(T.Event.ON_RESET_ALL_STATE,this._onResetAllState,this),this.adapter.viewManager.on(T.Event.ON_CLEARVIEWS,this._onResetAllState,this),this.adapter.node.on(o.EventType.SIZE_CHANGED,this._onAdapterSizeChanged,this),this.view.node.on(o.EventType.SIZE_CHANGED,this._onViewSizeChanged,this),this._registerTouchEvent(),this.__createDebug(),this.view.scheduleOnce((()=>{this._updatePercentage()}))}_initView(){if(!this.view)throw Error("ScrollManager view 参数为空！");var t={x:.5,y:.5};t[this.adapter.mainAxis]=this.adapter.mainAxisAnchorPoint,this.view.setAnchorPoint(t.x,t.y);var e=this.view.getComponent(h);e||((e=this.view.addComponent(h)).isAlignLeft=e.isAlignRight=e.isAlignTop=e.isAlignBottom=!0,e.left=e.right=e.top=e.bottom=0),e.updateAlignment(),this._viewWidget=e}__createDebug(){}__drawDebug(){if(this.__debug_graphics){this.__debug_graphics.clear();var t=this.adapter.mainAxis,e=this.adapter.crossAxis,i=this.adapter.multiplier,n={x:0,y:0},a={x:0,y:0};a[t]=this.adapter.viewManager.virtualSize,a[e]=this.adapter.crossAxisSize,n[t]=this.contentPosition-a[t]*this.content.anchorPoint[t]*i,n[t]+=this.adapter.viewManager.overflowHeader,n[e]-=a[e]*this.view.anchorPoint[e],this.__debug_graphics.fillRect(n.x,n.y,a.x,a.y),this.__debug_graphics.stroke()}}_initContent(){if(!this.content)throw Error("ScrollManager content 参数为空！");this.content.setAnchorPoint(this.view.anchorPoint);var t={x:0,y:0};t[this.adapter.crossAxis]=this.view.contentSize[this.adapter.crossAxis],this.content.setContentSize(t.x,t.y),this._layerLowest||(this._layerLowest=new o("_layerLowest"),this._layerMedium=new o("_layerMedium"),this._layerHighest=new o("_layerHighest"),this.content.node.addChild(this._layerLowest),this.content.node.addChild(this._layerMedium),this.content.node.addChild(this._layerHighest)),this._updateContentPosition({x:0,y:0})}_registerTouchEvent(){this.view.node.on(o.EventType.TOUCH_START,this._onTouchStart,this,!0),this.view.node.on(o.EventType.TOUCH_END,this._onTouchEnd,this,!0),this.view.node.on(o.EventType.TOUCH_CANCEL,this._onTouchCancel,this,!0),this.view.node.on(o.EventType.TOUCH_MOVE,this._onTouchMove,this,!0)}_bubbleToParent(t){this._parentAdapter&&this._parentAdapter.scrollManager.view.node.dispatchEvent(t)}_emitCancelEvent(t){if(this._isCanceledEvent)return;const e=t.getUILocation();e.subtract(t.getUIStartLocation()),this.cancelInnerEvents&&e.length()>7&&t.target!==this.view.node&&(this._simulateEvent(t,o.EventType.MOUSE_LEAVE),this._simulateEvent(t,o.EventType.TOUCH_CANCEL),this._isCanceledEvent=!0)}_simulateEvent(t,e,i=!0){if(!t)return;const n=new l(t.getTouches(),t.bubbles,e);var a=t.target;n.type=e,n.touch=t.touch,n.simulate=i,a.dispatchEvent(n)}_onUpdateViews(){this._velocity=0,this._updatePercentage()}_onChangedVirtualSize(){this._updatePercentage(),null!=this._scrollHandlePosition&&null!=this._scrollHandlePosition.change&&this._scrollHandlePosition.change()}_onChangedOverflowHeader(t){this.__drawDebug()}_onResetAllState(){this._velocity=0,this._scrolling=!1,this._dragging=!1,this._isMyEventAndMoved=!1,this._scrollDirection=E.None,this._percentage=0,this._isEmitAboutToStop=!1,this._boundaryOffset=0,this._isCanceledEvent=!1,this._parentTouch=!1,this._stopCheckNested=!1,this._scrollDirection=E.None,this._touchEvent=null,this.stopScroll(),this._initView(),this._initContent()}_onAdapterSizeChanged(){this._viewWidget.updateAlignment()}_onViewSizeChanged(){this.emit(et.ON_VIEW_SIZE_CHANGED)}_isMyEvent(t,e){return t.eventPhase==l.AT_TARGET||!e||e[0]==this.view.node&&!t.target[tt]}_onTouchStart(t){this._velocity=0,this._dragging=!0,this._isMyEventAndMoved=!1,this._isCanceledEvent=!1,this._parentTouch=!1,this._stopCheckNested=!1,this._isEmitAboutToStop=!1,this._scrollDirection=E.None,this._contentStartPosition.set(this.content.node.position),this._touchEvent=t,this.stopScroll(),this._calcNestedDirection(),this.emit(et.ON_SCROLL_START)}_onTouchEnd(t,e){this._dragging=!1,this._touchEvent=null,this.emit(et.ON_SCROLL_END,t)}_onTouchCancel(t,e){t.simulate||(this._dragging=!1,this._touchEvent=null,this.emit(et.ON_SCROLL_CANCEL,t))}_onTouchMove(t,e){if(this._isMyEvent(t,e)){if(this._emitCancelEvent(t),this._parentTouch||!this.canTouch)return this._bubbleToParent(t);if(this._touchEvent){var i=this.adapter.mainAxis,n=t.getUILocation(),a=t.getUIStartLocation(),r=n.subtract(a);if(!r.equals2f(0,0)){var s={x:0,y:0};s[i]=this._contentStartPosition[i]+r[i];var o=s[i]-this.contentPosition,h=this.calcOffset(o),l=this.adapter.isHorizontal?-1:1;s[i]+=l*h,this.movementType==g.Elastic&&0!=h&&(s[i]-=l*this._rubberDelta(h,this.adapter.mainAxisSize)),this._checkNested(t,s,this._parentAdapter),this._parentTouch?this._bubbleToParent(t):(this._isMyEventAndMoved=!0,this._updateContentPosition(s))}}}}_calcNestedDirection(){this._parentAdapter&&(this.percentage<=this.nestedMinThreshold&&!this.adapter.viewManager.loopHeader?this._nestedDirection=1==this.adapter.multiplier?v.Footer:v.Header:this.percentage>=this.nestedMaxThreshold&&!this.adapter.viewManager.loopFooter?this._nestedDirection=1==this.adapter.multiplier?v.Header:v.Footer:this._nestedDirection=v.Both)}_checkNested(t,e,i){if(i&&!this._stopCheckNested){if(this.orientation==i.scrollManager.orientation){var n=e[this.adapter.mainAxis]-this._contentStartPosition[this.adapter.mainAxis];if(Math.abs(n)<=.1)return;this._nestedDirection==v.Footer?n<0&&(this._parentTouch=!0):this._nestedDirection==v.Header&&n>0&&(this._parentTouch=!0)}else{var a=0,r=0;if(t instanceof l){var s=t.getUIStartLocation(),o=t.getUILocation();a=Math.abs(s.x-o.x),r=Math.abs(s.y-o.y)}else a=Math.abs(t.getScrollX()),r=Math.abs(t.getScrollY());if(a==r)return;a>r?this.adapter.isVertical&&(this._parentTouch=!0):r>a&&this.adapter.isHorizontal&&(this._parentTouch=!0)}if(!this._parentTouch&&i.scrollManager.parentAdapter)return this._checkNested(t,e,i.scrollManager.parentAdapter);this._stopCheckNested=!0}}_updateContentPosition(t,e=!0){this._updateScrollDirection(t),this.content.node.setPosition(t.x,t.y),this.emit(et.ON_SCROLL,this._scrollDirection),e?this._updatePercentage():this.__drawDebug()}_updatePrevContentPosition(){this._prevContentPosition.set(this.content.node.position)}_calcPercentage(t,e){var i=this.internal_getHiddenSize(),n=this.adapter.viewManager.loopHeader,a=this.adapter.viewManager.loopFooter,r=this.adapter.multiplier,s=this.adapter.viewManager.overflowHeader,o=t*r;if(this.adapter.isHorizontal?o-=e*r:o+=e*r,a)o+=(s+(i+=this.adapter.viewManager.spacing)*r)*r,this.adapter.centerManager.enabled?o+=this.adapter.centerManager.getContainerOffset():o+=this.adapter.paddingHeader,o+=1,o%=i;else if(n){o+=this.adapter.mainAxisSize-1,this.adapter.centerManager.enabled?o-=this.adapter.centerManager.getContainerOffset():o-=this.adapter.paddingFooter,o+=(s+i*r)*r,t*-r>s*r&&(o+=this.adapter.viewManager.spacing),o%=i}else o+=s*r,this.adapter.centerManager.enabled?o+=this.adapter.centerManager.getContainerOffset():o+=this.adapter.paddingHeader,o>i&&(o=i);return o/i}_updatePercentage(){var t=this.calcOffset();this.adapter.viewManager.virtualSize<=this.adapter.mainAxisSize?this._percentage=0:this._percentage=this._calcPercentage(this.contentPosition,t),this.emit(et.ON_UPDATE_PERCENTAGE,this._percentage,t),this.__drawDebug()}internal_disableTouchTarget(t){if(this._touchEvent&&this._touchEvent.target==t){var e=this._touchEvent;this._simulateEvent(e,o.EventType.TOUCH_CANCEL,!1),this._simulateEvent(e,o.EventType.MOUSE_LEAVE,!1),this._touchEvent=null}}internal_getHiddenSize(){var t=this.adapter.viewManager.loopHeader,e=this.adapter.viewManager.loopFooter,i=this.adapter.viewManager.virtualSize;return t||e||this.adapter.centerManager.enabled||(i-=this.adapter.mainAxisSize,i+=this.adapter.mainAxisPadding),i}_getContentMinBoundaryOffset(t,e){return!this.adapter.viewManager.header||!this.adapter.centerManager.enabled&&this.adapter.viewManager.virtualSize<=this.adapter.mainAxisSize?this.adapter.isHorizontal?e+this._defaultMax+t:e+this._defaultMin+t:this.adapter.viewManager.min+t}_getContentMaxBoundaryOffset(t,e){return!this.adapter.viewManager.header||!this.adapter.centerManager.enabled&&this.adapter.viewManager.virtualSize<=this.adapter.mainAxisSize?this.adapter.isHorizontal?e+this._defaultMin+t:e+this._defaultMax+t:this.adapter.viewManager.max+t}_getMaxBoundaryOffset(t){var e=this._viewMax;return this.adapter.isHorizontal?this.adapter.isArrangeAxisStart?t:e+t:this.adapter.isArrangeAxisStart?-t:e-t}_getMinBoundaryOffset(t){var e=this._viewMin;return this.adapter.isHorizontal?this.adapter.isArrangeAxisStart?e+t:t:this.adapter.isArrangeAxisStart?e-t:-t}_rubberDelta(t,e){return(1-1/(.55*Math.abs(t)/e+1))*e*Math.sign(t)}_calcElastic(t,e,i){var n=this.adapter.mainAxis,a=this.elasticity;this._scrolling&&(a*=3);var r=this.adapter.isHorizontal?-1:1,{velocity:s,position:o}=M.smoothDamp(this.contentPosition,this.contentPosition+r*e,this._velocity,a,M.Infinity,t);Math.abs(s)<1&&(s=0),this._velocity=s,i[n]=o}_calcInertia(t,e){this._velocity*=Math.pow(this.decelerationRate,t),Math.abs(this._velocity)<1&&(this._velocity=0),e[this.adapter.mainAxis]+=this._velocity*t}_calcClamped(t){var e=this.adapter.mainAxis,i=t[e]-this.contentPosition,n=this.calcOffset(i);this.adapter.isHorizontal?t[e]-=n:t[e]+=n}_updateScrollDirection(t){var e=t[this.adapter.mainAxis]-this.contentPosition;0!=e?(this.adapter.isHorizontal?this._scrollDirection=e>0?E.Right:E.Left:this._scrollDirection=e>0?E.Up:E.Down,this._laseScrollDirection=this._scrollDirection):this._scrollDirection=E.None}internal_setContentPosition(t,e=!0){var i={x:0,y:0};i[this.adapter.mainAxis]=t,this._updateContentPosition(i,e)}internal_lateUpdate(t){this.test||(this._autoScrolling(t),this._scrollHandler(t,this._scrollHandlePosition,this._scrollPositionHandler.bind(this)),this._scrollHandler(t,this._scrollHandlePercentage,this._scrollPercentageHandler.bind(this)))}_autoScrolling(t){var e=this.calcOffset();if(this._boundaryOffset=e,this._dragging||0==e&&0==this._velocity||(this.content.node.getPosition($),this.movementType==g.Elastic&&0!=e?this._calcElastic(t,e,$):this.inertia?this._calcInertia(t,$):this._velocity=0,this.movementType==g.Clamped&&this._calcClamped($),this._updateContentPosition($)),this._dragging&&this.inertia){var i=(this.contentPosition-this._prevContentPosition[this.adapter.mainAxis])/t;this._velocity=M.lerp(this._velocity,i,10*t)}this._prevContentPosition.equals(this.content.node.position)||this._updatePrevContentPosition(),!this._isEmitAboutToStop&&!this._dragging&&Math.abs(this._velocity)<=this.aboutToStopVelocity&&(this._scrollHandlePercentage||this._scrollHandlePosition||(this.emit(et.ON_ABOUT_TO_STOP,this._velocity),this._isEmitAboutToStop=!0)),this._scrolling=!1}_scrollHandler(t,e,i){if(null!=e){e.deltaTime+=t;var n=e.deltaTime/(e.duration>c.FLT_EPSILON?e.duration:c.FLT_EPSILON);n=M.clamp01(n);var a=_.quintOut(n);e.current=M.progress(e.from,e.to,e.current,a),i(e,n)}}_scrollPercentageHandler(t,e){var i=this.percentage;if(this.setPercentage(t.current),1==e||i==this.percentage){var n=!0;this._scrollHandlePercentage.stop&&(n=this._scrollHandlePercentage.stop()),n&&(this._scrollHandlePercentage=null)}}_scrollPositionHandler(t,e){var i={x:0,y:0};i[this.adapter.mainAxis]=t.current,this._setAutoScroll(i),(1==e||Math.abs(this.contentPosition-t.to)<=1e-4)&&(this._scrollHandlePosition.stop&&this._scrollHandlePosition.stop(),this._scrollHandlePosition=null)}_setAutoScroll(t){const e=t=>{this._updateContentPosition(t),this._updatePrevContentPosition(),this._velocity=0};e(t);var i=this.calcOffset();if(0!=i){var n=this.adapter.isHorizontal?-1:1;return t[this.adapter.mainAxis]+=i*n,e(t),!1}return!0}_scrollToPosition(t,e,i){if(!this.canAutoScroll)return!1;var n=e();return!(null==n||Math.abs(this.contentPosition-n)<c.FLT_EPSILON)&&(this._scrollHandlePercentage=null,this._scrollHandlePosition={current:0,from:this.contentPosition,to:n,deltaTime:0,duration:Math.max(0,t),change:()=>{n=e(),this._scrollHandlePosition.to=n},stop:()=>{i()}},!0)}getLayerNode(t){switch(t){case O.Medium:return this._layerMedium;case O.Highest:return this._layerHighest;default:return this._layerLowest}}scrollToModelIndex(t,e,i){var n=this.adapter.viewManager.getGroupIndexByModelIndex(e);if(-1!=n){var a=!1;this._scrollToPosition(t,(()=>{var t=this.adapter.centerManager.getPositionByGroupIndex(n,i,a);return a=!0,t}),(()=>{this.emit(et.ON_SCROLL_TO_MODELINDEX_AFTER,e)}))&&this.emit(et.ON_SCROLL_TO_MODELINDEX_BEFOR,e)}}scrollToGroupIndex(t,e,i){var n=!1;this._scrollToPosition(t,(()=>{var t=this.adapter.centerManager.getPositionByGroupIndex(e,i,n);return n=!0,t}),(()=>{this.emit(et.ON_SCROLL_TO_GROUPINDEX_AFTER,e)}))&&this.emit(et.ON_SCROLL_TO_GROUPINDEX_BEFOR,e)}scrollToHeader(t){this.scrollToGroupIndex(t,0)}scrollToFooter(t){this.scrollToGroupIndex(t,this.adapter.viewManager.groupLength-1)}scrollToPercentage(t,e){if(!this.canAutoScroll)return!1;Math.abs(this._percentage-e)<.001||(e=M.clamp01(e),t=Math.max(0,t),this._scrollHandlePercentage=null,this._scrollHandlePercentage={deltaTime:0,duration:t,current:0,from:this._percentage,to:e})}stopVelocity(){this._velocity=0}stopScroll(){this._scrollHandlePosition=null,this._scrollHandlePercentage=null,this.stopVelocity()}setPercentage(t){for(var e=this.internal_getHiddenSize(),i={x:0,y:0},n=0,a=null;n<100;){n++;var r=this._percentage-t;if(null!=a&&this._percentage===a)break;if(Math.abs(r)<c.FLT_EPSILON)break;a=this._percentage;var s=this.contentPosition-r*this.adapter.multiplier*e;if(i[this.adapter.mainAxis]=s,!this._setAutoScroll(i))break}100==n&&console.warn("循环次数已达最大值，尽量不要在滚动过程中频繁修改尺寸")}calcOffset(t=0,e=this.contentPosition){var i=0;if(this.movementType==g.Unrestricted)return i;var n=this._getContentMaxBoundaryOffset(t,e),a=this._getContentMinBoundaryOffset(t,e),r=this._getMaxBoundaryOffset(n),s=this._getMinBoundaryOffset(a);!this.adapter.centerManager.enabled&&this.adapter.viewManager.virtualSize>this.adapter.mainAxisSize&&(this.adapter.isVertical?(r-=this.adapter.viewManager.top,s+=this.adapter.viewManager.bottom):(r-=this.adapter.viewManager.left,s+=this.adapter.viewManager.right));var o=0,h=0;if(this.adapter.centerManager.enabled&&this.adapter.viewManager.groupLength>0)h=this.adapter.centerManager.max,o=this.adapter.centerManager.min;else{var l=this.adapter.viewManager.getMagneticOffset();r-=l,s-=l}return this.adapter.releaseManager.enabled&&(h=Math.max(h,this.adapter.releaseManager.max),o=Math.max(o,this.adapter.releaseManager.min)),r-=h,(s+=o)<-.001?i=s:r>.001&&(i=r),i}}).Event=et,U=e((I=K).prototype,"_view",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(I.prototype,"view",[f],Object.getOwnPropertyDescriptor(I.prototype,"view"),I.prototype),V=e(I.prototype,"_content",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(I.prototype,"content",[m],Object.getOwnPropertyDescriptor(I.prototype,"content"),I.prototype),F=e(I.prototype,"_orientation",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.Vertical}}),e(I.prototype,"orientation",[b],Object.getOwnPropertyDescriptor(I.prototype,"orientation"),I.prototype),B=e(I.prototype,"touchMode",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return u.Auto}}),G=e(I.prototype,"movementType",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g.Elastic}}),k=e(I.prototype,"elasticity",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),X=e(I.prototype,"inertia",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),W=e(I.prototype,"decelerationRate",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.135}}),Z=e(I.prototype,"aboutToStopVelocity",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),j=e(I.prototype,"cancelInnerEvents",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),q=e(I.prototype,"nestedMinThreshold",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.001}}),Y=e(I.prototype,"nestedMaxThreshold",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.999}}),z=I))||z));n._RF.pop()}}}));

System.register("chunks:///_virtual/Search.ts",["cc","./GameUtil.ts"],(function(s){"use strict";var t,i,e;return{setters:[function(s){t=s.cclegacy,i=s._decorator},function(s){e=s.default}],execute:function(){var h;t._RF.push({},"e4b6eTq0xlONKqt+FNt5m8u","Search",void 0);const{ccclass:l}=i;s("default",l("Search")(h=class{constructor(){this.hashMask=null,this.pos=null,this.index=0,this.getT=0,this.getdp=0,this.getmillis=0,this.mvResult=0,this.allNodes=0,this.historyTable=[],this.hashTable=[],this.killerTable=[],this.callfun=function(s){},this.allMillis=0}setSearch(s,t){this.hashMask=(1<<t)-1,this.pos=s}getHashItem(){return this.hashTable[this.pos.zobristKey&this.hashMask]}probeHash(s,t,i,e){var h=this.getHashItem();if(h.zobristLock!=this.pos.zobristLock)return e[0]=0,-o;e[0]=h.mv;var l=!1;if(h.vl>v){if(h.vl<=n)return-o;h.vl-=this.pos.distance,l=!0}else if(h.vl<-v){if(h.vl>=-n)return-o;h.vl+=this.pos.distance,l=!0}else if(h.vl==this.pos.drawValue())return-o;return h.depth<i&&!l?-o:h.flag==d?h.vl>=t?h.vl:-o:h.flag==m?h.vl<=s?h.vl:-o:h.vl}recordHash(s,t,i,e){var h=this.getHashItem();if(!(h.depth>i)){if(h.flag=s,h.depth=i,t>v){if(0==e&&t<=n)return;h.vl=t+this.pos.distance}else if(t<-v){if(0==e&&t>=-n)return;h.vl=t-this.pos.distance}else{if(t==this.pos.drawValue()&&0==e)return;h.vl=t}h.mv=e,h.zobristLock=this.pos.zobristLock}}setBestMove(s,t){this.historyTable[this.pos.historyIndex(s)]+=t*t;var i=this.killerTable[this.pos.distance];i[0]!=s&&(i[1]=i[0],i[0]=s)}searchQuiesc(s,t){var i=s;this.allNodes++;var e=this.pos.mateValue();if(e>=t)return e;var h=this.pos.repStatus(1);if(h>0)return this.pos.repValue(h);if(this.pos.distance==p)return this.pos.evaluate();var l,a,n,v=-o,u=[],c=[];if(this.pos.inCheck()){u=this.pos.generateMoves(null);for(var f=0;f<u.length;f++)c.push(this.historyTable[this.pos.historyIndex(u[f])]);r(u,c)}else{if((e=this.pos.evaluate())>v){if(e>=t)return e;v=e,i=Math.max(e,i)}r(u=this.pos.generateMoves(c),c);for(f=0;f<u.length;f++)if(c[f]<10||c[f]<20&&(n=u[f],l=n>>8,a=this.pos.sdPlayer,(128&l)!=a<<7)){u.length=f;break}}for(f=0;f<u.length;f++)if(this.pos.makeMove(u[f])&&(e=-this.searchQuiesc(-t,-i),this.pos.undoMakeMove(),e>v)){if(e>=t)return e;v=e,i=Math.max(e,i)}return v==-o?this.pos.mateValue():v}searchFull(s,t,i,e){var h=s;if(i<=0)return this.searchQuiesc(h,t);this.allNodes++;var l=this.pos.mateValue();if(l>=t)return l;var a=this.pos.repStatus(1);if(a>0)return this.pos.repValue(a);var r=[0];if((l=this.probeHash(h,t,i,r))>-o)return l;if(this.pos.distance==p)return this.pos.evaluate();if(!e&&!this.pos.inCheck()&&this.pos.nullOkay()&&(this.pos.nullMove(),l=-this.searchFull(-t,1-t,i-c-1,!0),this.pos.undoNullMove(),l>=t&&(this.pos.nullSafe()||this.searchFull(h,t,i-c,!0)>=t)))return l;for(var n,v=m,f=-o,g=0,k=new u(r[0],this.pos,this.killerTable,this.historyTable);(n=k.next())>0;)if(this.pos.makeMove(n)){var b=this.pos.inCheck()||k.singleReply?i:i-1;if((f==-o||(l=-this.searchFull(-h-1,-h,b,!1))>h&&l<t)&&(l=-this.searchFull(-t,-h,b,!1)),this.pos.undoMakeMove(),l>f){if(f=l,l>=t){v=d,g=n;break}l>h&&(h=l,v=M,g=n)}}return f==-o?this.pos.mateValue():(this.recordHash(v,f,i,g),g>0&&this.setBestMove(g,i),f)}searchRoot(s){for(var t,i=-o,e=new u(this.mvResult,this.pos,this.killerTable,this.historyTable);(t=e.next())>0;)if(this.pos.makeMove(t)){var h,l=this.pos.inCheck()?s:s-1;i==-o?h=-this.searchFull(-o,o,l,!0):(h=-this.searchFull(-i-1,-i,l,!1))>i&&(h=-this.searchFull(-o,-i,l,!0)),this.pos.undoMakeMove(),h>i&&(i=h,this.mvResult=t,i>-v&&i<v&&(i=(i+=Math.floor(Math.random()*f)-Math.floor(Math.random()*f))==this.pos.drawValue()?i-1:i))}return this.setBestMove(this.mvResult,s),i}searchUnique(s,t){var i,e=new u(this.mvResult,this.pos,this.killerTable,this.historyTable);for(e.next();(i=e.next())>0;)if(this.pos.makeMove(i)){var h=-this.searchFull(-s,1-s,this.pos.inCheck()?t:t-1,!1);if(this.pos.undoMakeMove(),h>=s)return!1}return!0}SIDE_TAG(s){return 8+(s<<3)}OPP_SIDE_TAG(s){return 16-(s<<3)}MOVE(s,t){return s+(t<<8)}xiaoBaiSearchMain(s){this.callfun=s;var t=[];console.log("this.pos.sdPlayer == ",this.pos.sdPlayer);var i=this.SIDE_TAG(this.pos.sdPlayer),h=this.OPP_SIDE_TAG(this.pos.sdPlayer);for(let s=0;s<this.pos.squares.length;s++){0!=(this.pos.squares[s]&i)&&t.push(s)}console.log("小白",t);var l=[];for(let s=0;s<t.length;s++){var a=t[s],r=this.pos.findAllCanMove(a);for(let s=0;s<r.length;s++){var o=r[s],n=this.MOVE(a,o);if(this.pos.makeMove(n))if(l.push(n),this.pos.undoMakeMove(),0!=(this.pos.squares[o]&h))return void this.callfun(n)}}var v=e.RandomRangeInt(0,l.length);this.callfun(l[v])}searchMain(s,t,i){if(this.mvResult=this.pos.bookMove(),this.mvResult>0){if(this.pos.makeMove(this.mvResult),0==this.pos.repStatus(3))return this.pos.undoMakeMove(),this.mvResult;this.pos.undoMakeMove()}this.hashTable=[];for(var e=0;e<=this.hashMask;e++)this.hashTable.push({depth:0,flag:0,vl:0,mv:0,zobristLock:0});this.killerTable=[];for(e=0;e<p;e++)this.killerTable.push([0,0]);this.historyTable=[];for(e=0;e<4096;e++)this.historyTable.push(0);this.mvResult=0,this.allNodes=0,this.pos.distance=0,this.getT=(new Date).getTime(),this.index=1,this.getdp=s,this.getmillis=t,this.callfun=i,this.abc()}abc(){setTimeout((()=>{var s=this.searchRoot(this.index);return this.allMillis=(new Date).getTime()-this.getT,this.allMillis>this.getmillis||s>v||s<-v||this.searchUnique(1-v,this.index)?(this.callfun(this.mvResult),void(this.callfun=null)):void(this.index<=this.getdp?(this.index++,this.abc()):(this.callfun(this.mvResult),this.callfun=null))}),0)}getKNPS(){return this.allNodes/this.allMillis}})||h);var a=[0,1,4,13,40,121,364,1093];function r(s,t){for(var i=1;a[i]<s.length;)i++;for(i--;i>0;){for(var e=a[i],h=e;h<s.length;h++){for(var l=s[h],r=t[h],o=h-e;o>=0&&r>t[o];)s[o+e]=s[o],t[o+e]=t[o],o-=e;s[o+e]=l,t[o+e]=r}i--}}var o=1e4,n=o-100,v=o-200;function u(s,t,i,e){if(this.mvs=[],this.vls=[],this.mvHash=this.mvKiller1=this.mvKiller2=0,this.pos=t,this.historyTable=e,this.phase=0,this.index=0,this.singleReply=!1,t.inCheck()){this.phase=4;for(var h=t.generateMoves(null),l=0;l<h.length;l++){var a=h[l];t.makeMove(a)&&(t.undoMakeMove(),this.mvs.push(a),this.vls.push(a==s?2147483647:e[t.historyIndex(a)]))}r(this.mvs,this.vls),this.singleReply=1==this.mvs.length}else this.mvHash=s,this.mvKiller1=i[t.distance][0],this.mvKiller2=i[t.distance][1]}u.prototype.next=function(){switch(this.phase){case 0:if(this.phase=1,this.mvHash>0)return this.mvHash;case 1:if(this.phase=2,this.mvKiller1!=this.mvHash&&this.mvKiller1>0&&this.pos.legalMove(this.mvKiller1))return this.mvKiller1;case 2:if(this.phase=3,this.mvKiller2!=this.mvHash&&this.mvKiller2>0&&this.pos.legalMove(this.mvKiller2))return this.mvKiller2;case 3:this.phase=4,this.mvs=this.pos.generateMoves(null),this.vls=[];for(var s=0;s<this.mvs.length;s++)this.vls.push(this.historyTable[this.pos.historyIndex(this.mvs[s])]);r(this.mvs,this.vls),this.index=0;default:for(;this.index<this.mvs.length;){var t=this.mvs[this.index];if(this.index++,t!=this.mvHash&&t!=this.mvKiller1&&t!=this.mvKiller2)return t}}return 0};var p=64,c=2,f=8,m=1,d=2,M=3;t._RF.pop()}}}));

System.register("chunks:///_virtual/self_info_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./Tools.ts"],(function(t){"use strict";var e,i,n,r,l,a,s,o,u,c,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t.Node,l=t._decorator,a=t.Label,s=t.Sprite},function(t){o=t.GameMng},function(t){u=t.default},function(t){c=t.UIButton},function(t){b=t.Tools}],execute:function(){var h,_,p,f,d,g,m,w,y,B,k,z,v,C,U,D,G,I,M,L,S;n._RF.push({},"cba10O1QUlBU6aLESMgrwGT","self_info_view",void 0);const{ccclass:T,property:x}=l;t("self_info_view",(h=T("self_info_view"),_=x(r),p=x(r),f=x(r),d=x(r),g=x(r),m=x(r),w=x(r),y=x(r),B=x(r),h((v=e((z=class extends u{constructor(...t){super(...t),i(this,"btn_close",v,this),i(this,"btn_header",C,this),i(this,"btn_nick",U,this),i(this,"btn_area",D,this),i(this,"btn_real",G,this),i(this,"btn_phone",I,this),i(this,"btn_address",M,this),i(this,"lab_name",L,this),i(this,"head_spr",S,this)}start(){c.BindClick(this.btn_close,(()=>{this.closeUI()}),this),c.BindClick(this.btn_header,(()=>{}),this),c.BindClick(this.btn_nick,(()=>{}),this),c.BindClick(this.btn_area,(()=>{}),this),c.BindClick(this.btn_real,(()=>{}),this),c.BindClick(this.btn_phone,(()=>{}),this),c.BindClick(this.btn_address,(()=>{}),this)}onEnable(){this.lab_name.getComponent(a).string=o._userData.user_name,b.loadWeiXinHead(o._userData.user_avatar,this.head_spr.getComponent(s))}update(t){}}).prototype,"btn_close",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(z.prototype,"btn_header",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(z.prototype,"btn_nick",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(z.prototype,"btn_area",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(z.prototype,"btn_real",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(z.prototype,"btn_phone",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(z.prototype,"btn_address",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(z.prototype,"lab_name",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=e(z.prototype,"head_spr",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=z))||k));n._RF.pop()}}}));

System.register("chunks:///_virtual/send_firend_duizhan.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts","./msgManager.ts"],(function(e){"use strict";var t,n,i,s,r,c,o,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,s=e.Node,r=e._decorator},function(e){c=e.default},function(e){o=e.UIButton},function(e){l=e.msgManager}],execute:function(){var u,a,d,h,_,f,p,b,g;i._RF.push({},"7e479q6hqpM5on7fswLheWG","send_firend_duizhan",void 0);const{ccclass:y,property:z}=r;e("send_firend_duizhan",(u=y("send_firend_duizhan"),a=z(s),d=z(s),h=z(s),u((p=t((f=class extends c{constructor(...e){super(...e),n(this,"btn_close",p,this),n(this,"btn_send",b,this),n(this,"btn_cancel",g,this)}start(){}show(e){o.BindClick(this.btn_close,(()=>{this.closeUI()}),this),o.BindClick(this.btn_send,(()=>{l.fa_qi_room_yue_zhan(e.userid+""),this.closeUI()}),this),o.BindClick(this.btn_cancel,(()=>{this.closeUI()}),this)}update(e){}}).prototype,"btn_close",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=t(f.prototype,"btn_send",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=t(f.prototype,"btn_cancel",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=f))||_));i._RF.pop()}}}));

System.register("chunks:///_virtual/setting_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIDialog.ts","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./UIManager.ts"],(function(t){"use strict";var i,e,n,s,r,o,u,l,a,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,r=t._decorator},function(t){o=t.default},function(t){u=t.GameMng},function(t){l=t.default},function(t){a=t.UIButton},function(t){c=t.UIManager}],execute:function(){var b,_,h,g,p,f,d,v,w,y,m,I,B,k,z;n._RF.push({},"ae46aW+MWZJ8II7oE+l035g","setting_view",void 0);const{ccclass:C,property:U}=r;t("setting_view",(b=C("setting_view"),_=U(s),h=U(s),g=U(s),p=U(s),f=U(s),d=U(s),b((y=i((w=class extends l{constructor(...t){super(...t),e(this,"btn_close",y,this),e(this,"btn_chess_setting",m,this),e(this,"btn_music_setting",I,this),e(this,"btn_privacy",B,this),e(this,"btn_logout",k,this),e(this,"btn_about",z,this)}start(){a.BindClick(this.btn_close,(()=>{this.closeUI()}),this),a.BindClick(this.btn_chess_setting,(()=>{c.AddPrefab(u.Instance.uiChessSettingView)}),this),a.BindClick(this.btn_music_setting,(()=>{c.AddPrefab(u.Instance.music_setting_view)}),this),a.BindClick(this.btn_privacy,(()=>{c.AddPrefab(u.Instance.privacy_setting_view)}),this),a.BindClick(this.btn_logout,(()=>{o.Show((()=>{}),(()=>{}),"游戏账号注销需要您退出当前账号，点击确定将退出并前往注销页面，您确定要退出吗？",null,!0)}),this),a.BindClick(this.btn_about,(()=>{c.AddPrefab(u.Instance.about_view)}),this)}update(t){}}).prototype,"btn_close",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=i(w.prototype,"btn_chess_setting",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=i(w.prototype,"btn_music_setting",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(w.prototype,"btn_privacy",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(w.prototype,"btn_logout",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=i(w.prototype,"btn_about",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=w))||v));n._RF.pop()}}}));

System.register("chunks:///_virtual/settlementData.ts",["cc"],(function(t){"use strict";var e,s;return{setters:[function(t){e=t.cclegacy,s=t._decorator}],execute:function(){var r;e._RF.push({},"ef48btTA3hPQpU4Gt6AQ4PV","settlementData",void 0);const{ccclass:c,property:i}=s;t("settlementData",c("settlementData")(r=class{constructor(){this.result=0,this.server_time="",this.round=0,this.user_score=0,this.get_score=0,this.get_tong_bi=0,this.isheqi=!1,this.result_type=0}})||r);e._RF.pop()}}}));

System.register("chunks:///_virtual/setupData.ts",["cc"],(function(t){"use strict";var s,e;return{setters:[function(t){s=t.cclegacy,e=t._decorator}],execute:function(){var i;s._RF.push({},"b90594AwDJIRasRTDg8ljns","setupData",void 0);const{ccclass:u,property:c}=e;t("setupData",u("setupData")(i=class{constructor(){this.userid=0,this.src_pos=0,this.dec_pos=0,this.chess_whole="",this.rund_number=0,this.des_who="",this.is_mate=0,this.heqi_number=0,this.huiqi_number=0,this.huiqi_setup=0,this.wait_select_result=null,this.pvp_time=null,this.robot_data=null}})||i);s._RF.pop()}}}));

System.register("chunks:///_virtual/shop_huobi_page.ts",["./rollupPluginModLoBabelHelpers.js","cc","./huobi_shop_item.ts"],(function(e){"use strict";var t,i,o,n,r,a,s,p,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,n=e.Node,r=e._decorator,a=e.Component,s=e.Label,p=e.instantiate},function(e){l=e.huobi_shop_item}],execute:function(){var u,c,h,_,b,g,m;o._RF.push({},"72906IwsoROE4Nu9xPwo3w+","shop_huobi_page",void 0);const{ccclass:d,property:f}=r;e("shop_huobi_page",(u=d("shop_huobi_page"),c=f(n),h=f(n),u((g=t((b=class extends a{constructor(...e){super(...e),i(this,"page_view",g,this),i(this,"lab_name",m,this)}start(){}update(e){}show(e,t){this.page_view.removeAllChildren(),this.lab_name.getComponent(s).string=t[0].name;for(let o=0;o<t.length;o++){const n=t[o];var i=p(e);this.page_view.addChild(i),i.getComponent(l).show(n)}}hide(){}}).prototype,"page_view",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(b.prototype,"lab_name",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=b))||_));o._RF.pop()}}}));

System.register("chunks:///_virtual/shop_huobi.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemDataConfig.ts","./shop_huobi_page.ts"],(function(t){"use strict";var e,i,o,n,r,s,a,h,u,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,n=t.Prefab,r=t.Node,s=t._decorator,a=t.Component,h=t.instantiate},function(t){u=t.default},function(t){p=t.shop_huobi_page}],execute:function(){var c,l,b,f,g,d,m,P,_;o._RF.push({},"b07f9Ehu8BM0o/eBqg7s0gf","shop_huobi",void 0);const{ccclass:y,property:C}=s;t("shop_huobi",(c=y("shop_huobi"),l=C(n),b=C(n),f=C(r),c((m=e((d=class extends a{constructor(...t){super(...t),i(this,"shopPrefab",m,this),i(this,"itemPrefab",P,this),i(this,"content",_,this)}start(){var t=u.Instance.getShopYuanBaoList(),e=u.Instance.getShopQiHunList(),i=u.Instance.getShopTongQianList(),o=h(this.shopPrefab);o.getComponent(p).show(this.itemPrefab,t),this.content.addChild(o);var n=h(this.shopPrefab);n.getComponent(p).show(this.itemPrefab,e),this.content.addChild(n);var r=h(this.shopPrefab);r.getComponent(p).show(this.itemPrefab,i),this.content.addChild(r)}update(t){}}).prototype,"shopPrefab",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(d.prototype,"itemPrefab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=e(d.prototype,"content",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=d))||g));o._RF.pop()}}}));

System.register("chunks:///_virtual/shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResMng.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,s,o,a,l,r,c,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,s=t.Node,o=t._decorator,a=t.Component,l=t.Label,r=t.Sprite},function(t){c=t.ResMng},function(t){u=t.UIButton}],execute:function(){var m,p,_,h,d,b,g,f,y;n._RF.push({},"6338caVNdxALq0tRIWKyos9","shop_item",void 0);const{ccclass:C,property:R}=o;t("shop_item",(m=C("shop_item"),p=R(s),_=R(s),h=R(s),m((g=e((b=class extends a{constructor(...t){super(...t),i(this,"lab_name",g,this),i(this,"lab_sell",f,this),i(this,"sp_icon",y,this),this.m_item_data=null}start(){u.BindClick(this.node,(()=>{console.log("当前选中商品",this.m_item_data)}),this)}update(t){}show(t){this.m_item_data=t,this.lab_name.getComponent(l).string=this.m_item_data.name+"x"+this.m_item_data.num,this.lab_sell.getComponent(l).string=this.m_item_data.sell,c.LoadItem(this.m_item_data.id,this.sp_icon.getComponent(r))}}).prototype,"lab_name",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(b.prototype,"lab_sell",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(b.prototype,"sp_icon",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=b))||d));n._RF.pop()}}}));

System.register("chunks:///_virtual/shop_jishiqi_page.ts",["cc","./jishiqi_shop_item.ts"],(function(t){"use strict";var i,s,e,o,n;return{setters:[function(t){i=t.cclegacy,s=t.Component,e=t.instantiate,o=t._decorator},function(t){n=t.jishiqi_shop_item}],execute:function(){var h;i._RF.push({},"8b827CdK2ZI+q9YTCNt7mY+","shop_jishiqi_page",void 0);const{ccclass:c,property:p}=o;t("shop_jishiqi_page",c("shop_jishiqi_page")(h=class extends s{start(){}update(t){}show(t,i,s,o,h){this.node.removeAllChildren();for(let t=0;t<s.length;t++){const p=s[t];var c=e(i);this.node.addChild(c),c.getComponent(n).show(p,o,h)}}hide(){}})||h);i._RF.pop()}}}));

System.register("chunks:///_virtual/shop_page.ts",["cc","./shop_item.ts"],(function(t){"use strict";var e,s,o,n,c;return{setters:[function(t){e=t.cclegacy,s=t.Component,o=t.instantiate,n=t._decorator},function(t){c=t.shop_item}],execute:function(){var p;e._RF.push({},"9db29FPhKtOQ4rrOK93lOJq","shop_page",void 0);const{ccclass:r,property:a}=n;t("shop_page",r("shop_page")(p=class extends s{start(){}update(t){}show(t,e,s){for(let t=0;t<s.length;t++){const p=s[t];var n=o(e);this.node.addChild(n),n.getComponent(c).show(p)}}hide(){}})||p);e._RF.pop()}}}));

System.register("chunks:///_virtual/shop_qipan_page.ts",["cc","./qipan_shop_item.ts"],(function(e){"use strict";var t,n,s,o,i;return{setters:[function(e){t=e.cclegacy,n=e.Component,s=e.instantiate,o=e._decorator},function(e){i=e.qipan_shop_item}],execute:function(){var p;t._RF.push({},"6c6e9fi7+9NqYGSh3X4o3+z","shop_qipan_page",void 0);const{ccclass:a,property:c}=o;e("shop_qipan_page",a("shop_qipan_page")(p=class extends n{start(){}update(e){}show(e,t,n,o){this.node.removeAllChildren();for(let e=0;e<n.length;e++){const a=n[e];var p=s(t);this.node.addChild(p),p.getComponent(i).show(a,o)}}hide(){}})||p);t._RF.pop()}}}));

System.register("chunks:///_virtual/shop_qipao_page.ts",["cc","./qipao_shop_item.ts"],(function(e){"use strict";var t,o,s,p,a;return{setters:[function(e){t=e.cclegacy,o=e.Component,s=e.instantiate,p=e._decorator},function(e){a=e.qipao_shop_item}],execute:function(){var i;t._RF.push({},"9e834seKTlCv79u4kdD2xR2","shop_qipao_page",void 0);const{ccclass:n,property:c}=p;e("shop_qipao_page",n("shop_qipao_page")(i=class extends o{start(){}update(e){}show(e,t,o,p,i){this.node.removeAllChildren();for(let e=0;e<o.length;e++){const c=o[e];var n=s(t);this.node.addChild(n),n.getComponent(a).show(c,p,i)}}hide(){}})||i);t._RF.pop()}}}));

System.register("chunks:///_virtual/shop_qizi_page.ts",["cc","./qizi_shop_item.ts"],(function(t){"use strict";var e,i,s,o,n;return{setters:[function(t){e=t.cclegacy,i=t.Component,s=t.instantiate,o=t._decorator},function(t){n=t.qizi_shop_item}],execute:function(){var c;e._RF.push({},"942ebjhuBJEJK0IcMRXvWtg","shop_qizi_page",void 0);const{ccclass:p,property:r}=o;t("shop_qizi_page",p("shop_qizi_page")(c=class extends i{start(){}update(t){}show(t,e,i,o){this.node.removeAllChildren();for(let t=0;t<i.length;t++){const p=i[t];var c=s(e);this.node.addChild(c),c.getComponent(n).show(p,o)}}hide(){}})||c);e._RF.pop()}}}));

System.register("chunks:///_virtual/shop_touxiangkuang_page.ts",["cc","./touxiangkuang_shop_item.ts"],(function(t){"use strict";var n,e,o,a,s;return{setters:[function(t){n=t.cclegacy,e=t.Component,o=t.instantiate,a=t._decorator},function(t){s=t.touxiangkuang_shop_item}],execute:function(){var i;n._RF.push({},"3f277XINgVCcp7JzwAB3Q11","shop_touxiangkuang_page",void 0);const{ccclass:u,property:g}=a;t("shop_touxiangkuang_page",u("shop_touxiangkuang_page")(i=class extends e{start(){}update(t){}show(t,n,e,a,i){this.node.removeAllChildren();for(let t=0;t<e.length;t++){const g=e[t];var u=o(n);this.node.addChild(u),u.getComponent(s).show(g,a,i)}}hide(){}})||i);n._RF.pop()}}}));

System.register("chunks:///_virtual/shop_type_btn.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,s,c,r,n,o;return{setters:[function(e){t=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){c=e.cclegacy,r=e.Node,n=e._decorator,o=e.Component}],execute:function(){var p,i,l,u,a;c._RF.push({},"b028fL112BJKZxWbupFDYZt","shop_type_btn",void 0);const{ccclass:_,property:b}=n;e("shop_type_btn",(p=_("shop_type_btn"),i=b(r),p((a=t((u=class extends o{constructor(...e){super(...e),s(this,"selectSp",a,this)}start(){}onSelect(){this.selectSp.active=!0}unSelect(){this.selectSp.active=!1}update(e){}}).prototype,"selectSp",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=u))||l));c._RF.pop()}}}));

System.register("chunks:///_virtual/shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./GBaseUI.ts","./UIButton.ts","./shop_type_btn.ts"],(function(e){"use strict";var t,n,i,a,s,c,u,o,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.Node,s=e._decorator},function(e){c=e.shop_type},function(e){u=e.default},function(e){o=e.UIButton},function(e){l=e.shop_type_btn}],execute:function(){var r,_,h,b,p,d,g,S,f,y,z,w,j,v,m,C,k;i._RF.push({},"9f3240cwlpG3YOodvwJhjzO","shop_view",void 0);const{ccclass:B,property:I}=s;e("shop_view",(r=B("shop_view"),_=I(a),h=I(a),b=I(a),p=I(a),d=I(a),g=I(a),S=I(a),r((z=t((y=class extends u{constructor(...e){super(...e),n(this,"btn_close",z,this),n(this,"btn_select_daoju",w,this),n(this,"btn_select_zhuangban",j,this),n(this,"btn_select_yuanbao",v,this),n(this,"node_select_daoju",m,this),n(this,"node_select_zhuangban",C,this),n(this,"node_select_yuanbao",k,this),this.curSelect=c.dao_ju}initSelectView(){o.BindClick(this.btn_select_daoju,(()=>{this.curSelect===c.dao_ju||(this.curSelect=c.dao_ju,this.updateSelectStatus())}),this),o.BindClick(this.btn_select_zhuangban,(()=>{this.curSelect===c.zhuang_ban||(this.curSelect=c.zhuang_ban,this.updateSelectStatus())}),this),o.BindClick(this.btn_select_yuanbao,(()=>{this.curSelect===c.huo_bi||(this.curSelect=c.huo_bi,this.updateSelectStatus())}),this),this.updateSelectStatus()}updateSelectStatus(){switch(this.btn_select_daoju.getComponent(l).unSelect(),this.btn_select_zhuangban.getComponent(l).unSelect(),this.btn_select_yuanbao.getComponent(l).unSelect(),this.curSelect){case c.dao_ju:this.btn_select_daoju.getComponent(l).onSelect();break;case c.zhuang_ban:this.btn_select_zhuangban.getComponent(l).onSelect();break;case c.huo_bi:this.btn_select_yuanbao.getComponent(l).onSelect()}this.updateView()}updateView(){switch(this.node_select_daoju.active=!1,this.node_select_zhuangban.active=!1,this.node_select_yuanbao.active=!1,this.curSelect){case c.dao_ju:this.node_select_daoju.active=!0;break;case c.zhuang_ban:this.node_select_zhuangban.active=!0;break;case c.huo_bi:this.node_select_yuanbao.active=!0}}start(){o.BindClick(this.btn_close,(()=>{this.closeUI()}),this),this.initSelectView()}update(e){}}).prototype,"btn_close",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(y.prototype,"btn_select_daoju",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(y.prototype,"btn_select_zhuangban",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(y.prototype,"btn_select_yuanbao",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(y.prototype,"node_select_daoju",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(y.prototype,"node_select_zhuangban",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(y.prototype,"node_select_yuanbao",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=y))||f));i._RF.pop()}}}));

System.register("chunks:///_virtual/shop_zhuang_ban_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts"],(function(i){"use strict";var e,t,a,n,r,s,o;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){a=i.cclegacy,n=i.Node,r=i._decorator,s=i.Component},function(i){o=i.zhuang_ban_type}],execute:function(){var u,c,_,l,h,p,v,b,g,w,q,f,z;a._RF.push({},"fbbf68SnvtO2bDxHrdqaE6h","shop_zhuang_ban_manager",void 0);const{ccclass:m,property:y}=r;i("shop_zhuang_ban_manager",(u=m("shop_zhuang_ban_manager"),c=y(n),_=y(n),l=y(n),h=y(n),p=y(n),u((g=e((b=class extends s{constructor(...i){super(...i),t(this,"qipan_view",g,this),t(this,"qizi_view",w,this),t(this,"touxiangkuang_view",q,this),t(this,"jishiqi_view",f,this),t(this,"qipao_view",z,this)}start(){}show(i){switch(this.qipan_view.active=!1,this.qizi_view.active=!1,this.touxiangkuang_view.active=!1,this.jishiqi_view.active=!1,this.qipao_view.active=!1,i){case o.qi_pan:this.qipan_view.active=!0;break;case o.qi_zi:this.qizi_view.active=!0;break;case o.tou_xiang_kuang:this.touxiangkuang_view.active=!0;break;case o.ji_shi_qi:this.jishiqi_view.active=!0;break;case o.qi_pao:this.qipao_view.active=!0}}update(i){}}).prototype,"qipan_view",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(b.prototype,"qizi_view",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=e(b.prototype,"touxiangkuang_view",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=e(b.prototype,"jishiqi_view",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(b.prototype,"qipao_view",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=b))||v));a._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 get Instance(){return null==n._Instance&&(n._Instance=new this),n._Instance}}return n._Instance=null,n})),t._RF.push({},"4c3f0RZjDRKUbvZC4/XYoHD","Singleton",void 0),t._RF.pop()}}}));

System.register("chunks:///_virtual/time.ts",["cc","./Tools.ts"],(function(t){"use strict";var i,s,e,m,r;return{setters:[function(t){i=t.cclegacy,s=t.Component,e=t.Label,m=t._decorator},function(t){r=t.Tools}],execute:function(){var n;i._RF.push({},"197411lSplLDqt62QicW7b1","time",void 0);const{ccclass:c,property:o}=m;t("time",c("time")(n=class extends s{constructor(...t){super(...t),this.isStart=!1,this.curTimme=0,this.initTimme=0,this.delta=1}start(){}update(t){this.isStart&&(this.delta>=1&&(this.curTimme<0||(this.node.getComponent(e).string=r.ms_time(this.curTimme),this.curTimme-=1),this.delta=0),this.delta+=t)}startAni(t){this.initTimme!=t&&(this.initTimme=t,this.curTimme=t),1==this.isStart||(this.node.getComponent(e).string=r.ms_time(this.curTimme),this.initTimme=t)}stopAni(){this.isStart=!1}})||n);i._RF.pop()}}}));

System.register("chunks:///_virtual/timeCountData.ts",["cc"],(function(t){"use strict";var e,l;return{setters:[function(t){e=t.cclegacy,l=t._decorator}],execute:function(){var i;e._RF.push({},"1cd91uwKflIlLdAZzDoFip+","timeCountData",void 0);const{ccclass:s,property:n}=l;t("timeCountData",s("timeCountData")(i=class{constructor(){this.self_total_time=null,this.self_every_step_time=null,this.self_countdown=null,this.rival_countdown=null,this.rival_total_time=null,this.rival_every_step_time=null,this.round_id=null}})||i);e._RF.pop()}}}));

System.register("chunks:///_virtual/tong_qian_lab.ts",["cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./Tools.ts"],(function(t){"use strict";var n,e,o,a,s,i,_,r;return{setters:[function(t){n=t.cclegacy,e=t.Component,o=t.Label,a=t._decorator},function(t){s=t.ClientEvent},function(t){i=t.Constant},function(t){_=t.GameMng},function(t){r=t.Tools}],execute:function(){var c;n._RF.push({},"206a6+rCTBO36wOpeX9lJ2u","tong_qian_lab",void 0);const{ccclass:u,property:g}=a;t("tong_qian_lab",u("tong_qian_lab")(c=class extends e{start(){s.on(i.UI_EVENT.UI_MSG_UPDATE_TONG_QIAN,this.onUpdate,this)}onDestroy(){s.off(i.UI_EVENT.UI_MSG_UPDATE_TONG_QIAN,this.onUpdate,this)}onUpdate(){null!=_._userData&&(this.getComponent(o).string=r.getTongBiNumber(_._userData.bag.tong_bi))}onEnable(){null!=_._userData&&(this.getComponent(o).string=r.getTongBiNumber(_._userData.bag.tong_bi))}update(t){}})||c);n._RF.pop()}}}));

System.register("chunks:///_virtual/tongqian_jiesuan.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./Tools.ts"],(function(t){"use strict";var n,e,i,a,o,r,l,s,g;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,o=t._decorator,r=t.Component,l=t.Label},function(t){s=t.GameMng},function(t){g=t.Tools}],execute:function(){var u,_,b,c,p,f,h,m,v;i._RF.push({},"de846yKpJZEbIfImyv2FsgL","tongqian_jiesuan",void 0);const{ccclass:q,property:y}=o;t("tongqian_jiesuan",(u=q("tongqian_jiesuan"),_=y(a),b=y(a),c=y(a),u((h=n((f=class extends r{constructor(...t){super(...t),e(this,"lab_get_tongbi",h,this),e(this,"rival_tongqian_lab",m,this),e(this,"self_tongqian_lab",v,this)}start(){}show(t){this.node.active=!0,this.rival_tongqian_lab.parent.active=!0;let n=1===t.result?"+":"-";this.rival_tongqian_lab.getComponent(l).string=g.getTongBiNumber(s._userData.room.rival.tong_bi),this.self_tongqian_lab.getComponent(l).string=g.getTongBiNumber(s._userData.bag.tong_bi),this.lab_get_tongbi.getComponent(l).string=n+Math.abs(t.get_tong_bi)+""}update(t){}}).prototype,"lab_get_tongbi",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=n(f.prototype,"rival_tongqian_lab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=n(f.prototype,"self_tongqian_lab",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=f))||p));i._RF.pop()}}}));

System.register("chunks:///_virtual/tongqianCreate.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts","./native_manager.ts","./msgManager.ts"],(function(n){"use strict";var t,i,e,o,a,r,s,c,u,g,l,h;return{setters:[function(n){t=n.applyDecoratedDescriptor,i=n.initializerDefineProperty},function(n){e=n.cclegacy,o=n.Node,a=n._decorator,r=n.Component},function(n){s=n.room_type},function(n){c=n.GameMng},function(n){u=n.UIButton},function(n){g=n.UIManager},function(n){l=n.native_manager},function(n){h=n.msgManager}],execute:function(){var _,b,p,f,d,m,j,y,q,z,M;e._RF.push({},"32a8fga0AxDyriE8jCtQhAq","tongqianCreate",void 0);const{ccclass:C,property:B}=a;n("tongqianCreate",(_=C("tongqianCreate"),b=B(o),p=B(o),f=B(o),d=B(o),_((y=t((j=class extends r{constructor(...n){super(...n),i(this,"btn_chuji",y,this),i(this,"btn_zhongji",q,this),i(this,"btn_gaoji",z,this),i(this,"btn_ads_tongqian",M,this)}start(){u.BindClick(this.btn_chuji,(()=>{this.sendMsg(s._chuji_tongqian)}),this),u.BindClick(this.btn_zhongji,(()=>{this.sendMsg(s._zhongji_tongqian)}),this),u.BindClick(this.btn_ads_tongqian,(()=>{l.showRewardVideo()}),this)}sendMsg(n){switch(n){case s._chuji_tongqian:h.createRoomByRoomType(s._chuji_tongqian);break;case s._zhongji_tongqian:h.createRoomByRoomType(s._zhongji_tongqian)}g.AddPrefab(c.Instance.uiloading)}onDestroy(){}}).prototype,"btn_chuji",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(j.prototype,"btn_zhongji",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(j.prototype,"btn_gaoji",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(j.prototype,"btn_ads_tongqian",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=j))||m));e._RF.pop()}}}));

System.register("chunks:///_virtual/Tools.ts",["cc","./constant.ts","./GBoardChess.ts","./GameMng.ts"],(function(e){"use strict";var t,a,r,s,n,i,o,u,c,l,g;return{setters:[function(e){t=e.cclegacy,a=e._decorator,r=e.assetManager,s=e.Texture2D,n=e.SpriteFrame,i=e.isValid,o=e.Sprite},function(e){u=e.Constant,c=e.xiaoxi_haoyou_status_type},function(e){l=e.default},function(e){g=e.GameMng}],execute:function(){var d,p;t._RF.push({},"cd9aea7or9LS454Tu8DyeQM","Tools",void 0);const{ccclass:m,property:f}=a;e("Tools",m("Tools")(((p=class e{static time(e){return e<60?e+"秒":e/60+"分"}static ms_time(e){var t=Math.floor(e/60);t<0&&(t=0);var a=t.toString(),r=e%60;r<0&&(r=0);var s=r.toString();return t<10&&t>=0&&(a="0"+t),r<10&&r>=0&&(s="0"+r),a+":"+s}static makeUrl(){return"ws://"+u.SEVER_INFO.IP+":"+u.SEVER_INFO.PORT+"/ws"}static getShareObj(){let e=0;null!=g._userData.room&&(e=g._userData.room.roomid);let t="";null!=g._userData.userid&&null!=g._userData.userid&&(t=g._userData.userid+"");let a={webpageUrl:"http://xiangqi.moyue2020.com/xint.html?"+("firendOpenId="+t+"&roomId="+e),title:"楚汉对决，等你来战！",description:"末将在！待主公一声令下，必将杀他个片甲不留..."};return JSON.stringify(a)}static loadWeiXinHead(t,a){if(null!=e.cache[t])return void(a.spriteFrame=e.cache[t]);let i=null;"png"!=t.substring(t.length-3,t.length)&&(i={ext:".png"}),r.loadRemote(t,i,((r,i)=>{if(!r&&i){let r=e.cache[t];if(!r){const o=new s;o.image=i,r=new n,r.texture=o,i.addRef(),e.cache[t]=r,a.spriteFrame=r}r.addRef()}}))}releaseRemoteSprite(t){if(!i(t))return;const a=t.getComponent(o);if(a&&a.spriteFrame){const t=a.spriteFrame;if(a.spriteFrame.decRef(!1),a.spriteFrame=null,t.refCount<=0){let a=t.texture;var r,s;if(t.packable)a=null==(r=t.original)?void 0:r._texture;if(a)delete e.cache[a.image._nativeUrl],null==(s=a.image)||s.decRef(),a.destroy();t.destroy()}}}static getAvatarByIndex(e){return e<=14&&e>0?"PubImgs_avatar_avatar"+e:"PubImgs_avatar_avatar1"}static getTongBiNumber(e){let t=e+"";return e>=1e4&&(t=e/1e4+"",t=t.length>=3?t.substring(0,3):t.substring(0,t.length),t+="万"),t}static getUserStatusNameByStatus(e){let t="";switch(e){case c.deng_dai_kai_ju:t="等待对局";break;case c.xian_guang:t="闲逛";break;case c.dui_zhan:t="正在对战"}return t}static getChessPos(){let e=[],t=[];for(const t in l.instance.pos.squares)0!=l.instance.pos.squares[t]&&e.push({sq:t,pc:l.instance.pos.squares[t],x:0,y:0});for(let r=0;r<e.length;r++){const s=e[r];var a=l.instance.imgSquares[l.instance.flipped(s.sq)];s.x=a.position.x,s.y=a.position.y,t.push(s)}return t}}).cache={},d=p))||d);t._RF.pop()}}}));

System.register("chunks:///_virtual/tou_xiang_kuang_select_info.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./Tools.ts"],(function(t){"use strict";var e,n,i,a,r,o,s,u,l,c,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Node,r=t._decorator,o=t.Component,s=t.Sprite,u=t.Label},function(t){l=t.GameMng},function(t){c=t.UIButton},function(t){_=t.Tools}],execute:function(){var p,b,h,g,f,m,d,y,D,z,k,w,x;i._RF.push({},"2717eOis/1MB5QqgIj0z61Z","tou_xiang_kuang_select_info",void 0);const{ccclass:v,property:B}=r;t("tou_xiang_kuang_select_info",(p=v("tou_xiang_kuang_select_info"),b=B(a),h=B(a),g=B(a),f=B(a),m=B(a),p((D=e((y=class extends o{constructor(...t){super(...t),n(this,"lab_des",D,this),n(this,"lab_name",z,this),n(this,"sp_icon",k,this),n(this,"sp_head",w,this),n(this,"btn_buy",x,this),this.m_curData=null}start(){c.BindClick(this.btn_buy,(()=>{}),this),_.loadWeiXinHead(l._userData.user_avatar,this.sp_head.getComponent(s))}show(t){this.m_curData=t,this.lab_des.getComponent(u).string=this.m_curData.des,this.lab_name.getComponent(u).string=this.m_curData.name}update(t){}}).prototype,"lab_des",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(y.prototype,"lab_name",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(y.prototype,"sp_icon",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(y.prototype,"sp_head",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(y.prototype,"btn_buy",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=y))||d));i._RF.pop()}}}));

System.register("chunks:///_virtual/touxiangkuang_shop_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./UIButton.ts"],(function(t){"use strict";var e,i,n,o,s,a,l,r,c,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Node,s=t._decorator,a=t.Component,l=t.Label},function(t){r=t.ClientEvent},function(t){c=t.Constant},function(t){_=t.UIButton}],execute:function(){var u,h,p,m,g,b,d,f,v,y,E;n._RF.push({},"1f9aa/gPQRMJoJHh1WM9MLf","touxiangkuang_shop_item",void 0);const{ccclass:C,property:S}=s;t("touxiangkuang_shop_item",(u=C("touxiangkuang_shop_item"),h=S(o),p=S(o),m=S(o),g=S(o),u((f=e((d=class extends a{constructor(...t){super(...t),i(this,"lab_name",f,this),i(this,"lab_sell",v,this),i(this,"sp_icon",y,this),i(this,"on_select_bg",E,this),this.m_item_data=null,this.m_cur_id=0,this.m_content_type=void 0}start(){_.BindClick(this.node,(()=>{this.on_select_bg.active||(console.log("当前选中商品",this.m_item_data),r.dispatchEvent(c.UI_EVENT.UI_MSG_UPDATE_SELECT_TOUXIANGKUANG,this.m_item_data.id))}),this)}onSelect(){this.on_select_bg.active=!0}unSelect(){this.on_select_bg.active=!1}update(t){}show(t,e,i){this.m_content_type=i,e===t.id?this.onSelect():this.unSelect(),this.m_item_data=t,this.lab_name.getComponent(l).string=this.m_item_data.name,this.lab_sell.getComponent(l).string=this.m_item_data.sell}}).prototype,"lab_name",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(d.prototype,"lab_sell",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(d.prototype,"sp_icon",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(d.prototype,"on_select_bg",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=d))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/touxiangkuang_shop_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./clientEvent.ts","./ItemDataConfig.ts","./constant.ts","./GameMng.ts","./shop_touxiangkuang_page.ts","./tou_xiang_kuang_select_info.ts"],(function(t){"use strict";var e,i,n,o,s,a,r,h,l,u,_,c,g,p,d,f,w,y,T,m,b,P;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,o=t.Prefab,s=t.UITransform,a=t.Sprite,r=t.Node,h=t._decorator,l=t.Tween,u=t.Color},function(t){_=t.Holder},function(t){c=t.ScrollAdapter},function(t){g=t.View},function(t){p=t.ContentType,d=t.ReleaseState},function(t){f=t.ReleaseManager},function(t){w=t.ClientEvent},function(t){y=t.default},function(t){T=t.Constant},function(t){m=t.GameMng},function(t){b=t.shop_touxiangkuang_page},function(t){P=t.tou_xiang_kuang_select_info}],execute:function(){var v,M,x,E,I,A,S,U,k,F,O,z,D,L,H,C,N,V,G,R;n._RF.push({},"9c68fsZvMJHXp4Su6+tABnN","touxiangkuang_shop_view",void 0);const{ccclass:B,property:X}=h;t("touxiangkuang_shop_view",(v=B("touxiangkuang_shop_view"),M=X(o),x=X(s),E=X(a),I=X(s),A=X(a),S=X(o),U=X(r),k=X({type:p}),F=X({type:p}),v((D=e((z=class extends c{constructor(...t){super(...t),i(this,"shopPrefab",D,this),i(this,"header",L,this),i(this,"loading",H,this),i(this,"foot",C,this),i(this,"foot_loading",N,this),i(this,"item_prefab",V,this),i(this,"show_info_node",G,this),i(this,"_contentType",R,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1,this.touxiangkuang_list_data=[],this.cur_select_id=""}get contentType(){return this._contentType}set contentType(t){t!=this._contentType&&(this._contentType=t)}start(){this.initView()}initView(){this.releaseManager.on(f.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(f.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever(),this._contentType===p.bag?this.touxiangkuang_list_data=m.getBagTouXiangKuangList():this.touxiangkuang_list_data=y.Instance.getShopTouXiangKuangList(),this.init_shop_item(),w.on(T.UI_EVENT.UI_MSG_UPDATE_SELECT_TOUXIANGKUANG,this.notice,this)}onDestroy(){w.off(T.UI_EVENT.UI_MSG_UPDATE_SELECT_TOUXIANGKUANG,this.notice,this)}notice(t){this.cur_select_id=t,this.show_info_node.getComponent(P).show(y.Instance.getItemById(t)),this.modelManager.update()}init_shop_item(){var t=[];this.touxiangkuang_list_data.length<=0||(this.cur_select_id=this.touxiangkuang_list_data[0].id,this.show_info_node.getComponent(P).show(y.Instance.getItemById(this.cur_select_id)),t.push(this.touxiangkuang_list_data),this.modelManager.clear(),this.modelManager.insert(t),this.scrollManager.scrollToFooter(0))}async onPullUp(t){if(t.state==d.RELEASE&&this._isFootPlay){this._loadFootTween.start(),t.wait();var e=await this.loadMore();this.modelManager.insert(e,0),this.scheduleOnce((()=>{t.release()})),this._loadFootTween.stop()}var i=t.progress;if(t.state==d.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=t.offset;var n=new u;n.set(this.foot_loading.color),n.a=255*Math.min(i,1),this.foot_loading.color=n}this.foot_loading.node.angle=-360*t.progress}async onPullDown(t){if(t.state==d.RELEASE&&this._isHeaderPlay){this._loadTween.start(),t.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{t.release()})),this._loadTween.stop()}var e=t.progress;if(t.state==d.WAIT&&(e=.8),e>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=t.offset;var i=new u;i.set(this.loading.color),i.a=255*Math.min(e,1),this.loading.color=i}this.loading.node.angle=-360*t.progress}reLoad(){return new Promise(((t,e)=>{var i=[];this.scheduleOnce((()=>{this.init_shop_item(),t(i)}),1)}))}loadMore(){return new Promise(((t,e)=>{this.scheduleOnce((()=>{t([])}),0)}))}scrollToHeader(){this.scrollManager.scrollToFooter(1)}getPrefab(t){return this.shopPrefab}getHolder(t,e){return new W(t,e,this)}getView(){return new K(this)}initElement(t,e){}}).prototype,"shopPrefab",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(z.prototype,"header",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(z.prototype,"loading",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(z.prototype,"foot",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(z.prototype,"foot_loading",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=e(z.prototype,"item_prefab",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=e(z.prototype,"show_info_node",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(z.prototype,"_contentType",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.shop}}),e(z.prototype,"contentType",[F],Object.getOwnPropertyDescriptor(z.prototype,"contentType"),z.prototype),O=z))||O));class K extends g{onVisible(){}onDisable(){}}class W extends _{constructor(...t){super(...t),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(b)}onVisible(){this._shopItem.show(this,this.adapter.item_prefab,this.data,this.adapter.cur_select_id,this.adapter.contentType)}onDisable(){this._shopItem.hide()}}n._RF.pop()}}}));

System.register("chunks:///_virtual/UIButton.ts",["cc","./GameMng.ts","./AudioMng.ts"],(function(t){"use strict";var n,c,o,e,u;return{setters:[function(t){n=t.cclegacy,c=t.Button,o=t._decorator},function(t){e=t.GameMng},function(t){u=t.default}],execute:function(){var s;n._RF.push({},"6c057BQjwVNqKMyqoWTCyGB","UIButton",void 0);const{ccclass:a,property:l}=o;t("UIButton",a("UIButton")(s=class{static BindClick(t,n,o,s=e.Instance.buttonclick){null==t.getComponent(c)?console.log(t.name,"null"):t.on("click",(()=>{n.call(o),u.Instance.PlaySoundByName(s)}),o)}})||s);n._RF.pop()}}}));

System.register("chunks:///_virtual/UIButtonBack.ts",["cc","./AudioMng.ts","./UIButton.ts","./ScenceMng.ts","./GameMng.ts"],(function(n){"use strict";var t,e,c,s,a,o,u,i;return{setters:[function(n){t=n.cclegacy,e=n.Component,c=n.director,s=n._decorator},function(n){a=n.default},function(n){o=n.UIButton},function(n){u=n.default},function(n){i=n.GameMng}],execute:function(){var l;t._RF.push({},"80407nfY9xIPIPb8Xn5KJxB","UIButtonBack",void 0);const{ccclass:r,property:f}=s;n("default",r(l=class extends e{start(){o.BindClick(this.node,(()=>{let n=c.getScene().name;console.log(n),"ChessDiffSel"==n||"ChessCanJuSel"==n?u.Instance.load("GameLaunch"):"Chess"==n&&(a.Instance.PlayBGM(i.Instance.mainbgm),u.Instance.load("GameLaunch"))}),this)}})||l);t._RF.pop()}}}));

System.register("chunks:///_virtual/UICanJuSel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts","./GameMng.ts","./CanjuModel.ts","./CellCanJuSel.ts"],(function(t){"use strict";var e,i,a,n,l,s,r,u,c,h,o;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){a=t.cclegacy,n=t.Node,l=t._decorator,s=t.Component,r=t.instantiate},function(t){u=t.UIButton},function(t){c=t.GameMng},function(t){h=t.default},function(t){o=t.default}],execute:function(){var g,m,p,d,P,f,N,b;a._RF.push({},"889a1+M39JKR5tDAmwbWrJe","UICanJuSel",void 0);const{ccclass:x,property:C}=l;t("default",(g=C({type:n}),m=C(n),p=C(n),x((f=e((P=class extends s{constructor(...t){super(...t),i(this,"content",f,this),this.maxGridNum=12,this.allPageNum=0,this.curPage=1,i(this,"btnNext",N,this),i(this,"btnUp",b,this)}start(){u.BindClick(this.btnNext,(()=>{this.nextPage()}),this),u.BindClick(this.btnUp,(()=>{this.upPage()}),this),this.initUI()}initUI(){for(let t=0;t<h.Instance.canjuDataArr.length;t++){let e=r(c.Instance.canjuCell);e.getComponent(o).setData(t),this.content.addChild(e)}let t=Math.floor(h.Instance.getCurMaxLevel()/this.maxGridNum);h.Instance.getCurMaxLevel()%this.maxGridNum!=0&&(t+=1),this.curPage=t,this.getallpage(),this.selectPage(this.curPage)}getallpage(){let t=h.Instance.canjuDataArr.length;return this.allPageNum=Math.floor(t/this.maxGridNum),0!=t%this.maxGridNum&&(this.allPageNum+=1),this.allPageNum}nextPage(){this.curPage<this.allPageNum&&this.curPage++,this.selectPage(this.curPage)}upPage(){this.curPage>1&&this.curPage--,this.selectPage(this.curPage)}selectPage(t){if(this.btnUp.active=1!=t,t>this.allPageNum)return;let e=this.maxGridNum;if(t==this.allPageNum){let t=h.Instance.canjuDataArr.length%this.maxGridNum;0!=t&&(e=t)}this.content.removeAllChildren();let i=(t-1)*this.maxGridNum;t>=this.allPageNum?this.btnNext.active=!1:this.btnNext.active=!0;for(let t=0;t<e;t++){let e=r(c.Instance.canjuCell);this.content.addChild(e),e.getComponent(o).setData(i+t)}}}).prototype,"content",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(P.prototype,"btnNext",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(P.prototype,"btnUp",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=P))||d));a._RF.pop()}}}));

System.register("chunks:///_virtual/UIChessLvSel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./GameMng.ts","./diffCell.ts"],(function(e){"use strict";var t,n,s,r,l,c,o,i,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){s=e.cclegacy,r=e.Node,l=e._decorator,c=e.instantiate},function(e){o=e.default},function(e){i=e.GameMng},function(e){a=e.default}],execute:function(){var u,d,f,p,h;s._RF.push({},"0786dtTNLRKx48dxwEohJyG","UIChessLvSel",void 0);const{ccclass:g,property:v}=l;e("default",(u=v({type:r}),g(((h=class e extends o{constructor(...e){super(...e),n(this,"content",p,this)}start(){for(let t=0;t<e.lvArr.length;t++){let e=c(i.Instance.chessselCell);e.getComponent(a).setData(t),this.content.addChild(e)}}}).lvArr=["普通","中等","困难"],h.selectIndex=0,p=t((f=h).prototype,"content",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f))||d));s._RF.pop()}}}));

System.register("chunks:///_virtual/UIDialog.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./GBaseUI.ts","./UIManager.ts"],(function(t){"use strict";var i,e,l,n,a,o,s,r,u,c;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){l=t.cclegacy,n=t.Label,a=t.Node,o=t._decorator},function(t){s=t.GameMng},function(t){r=t.UIButton},function(t){u=t.default},function(t){c=t.UIManager}],execute:function(){var g,d,b,h,p,f,_,C,D;l._RF.push({},"b3f125Ul45PYZTtiga6Q2+Q","UIDialog",void 0);const{ccclass:I,property:U}=o;t("default",(g=U(n),d=U(a),b=U(a),I(((D=class t extends u{constructor(...t){super(...t),e(this,"lab_des",f,this),e(this,"btn_queding",_,this),e(this,"btn_quxiao",C,this)}static Show(i,e,l,n,a){t.dialog_des=l,t.isShowCancel=a,t.DialogCancelCall=e,t.DialogSureCall=i,c.AddPrefab(s.Instance.uiDialog,n)}start(){this.btn_quxiao.active=t.isShowCancel,r.BindClick(this.btn_queding,(()=>{this.closeUI(),t.DialogSureCall()}),this),r.BindClick(this.btn_quxiao,(()=>{this.closeUI(),t.DialogCancelCall()}),this)}update(i){null!=t.dialog_des&&(this.lab_des.getComponent(n).string=t.dialog_des.toString(),t.dialog_des=null)}static DialogSureCall(){}static DialogCancelCall(){}}).dialog_des=null,D.isShowCancel=!0,f=i((p=D).prototype,"lab_des",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=i(p.prototype,"btn_queding",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(p.prototype,"btn_quxiao",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=p))||h));l._RF.pop()}}}));

System.register("chunks:///_virtual/UIDiffSel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./Tools.ts"],(function(t){"use strict";var e,n,r,i,o,s,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){r=t.cclegacy,i=t.Node,o=t._decorator,s=t.Sprite},function(t){c=t.default},function(t){l=t.Tools}],execute:function(){var a,u,p,f,d,g,y;r._RF.push({},"9c5c3nvC7FMiL1gtwds43qx","UIDiffSel",void 0);const{ccclass:b,property:h}=o;t("default",(a=h({type:i}),u=h({type:i}),b(((y=class extends c{constructor(...t){super(...t),n(this,"content",d,this),n(this,"testSf",g,this)}start(){l.loadWeiXinHead("http://xq_img.xwrun.com/PubImgs_avatar_avatar6.png",this.testSf.getComponent(s))}}).lvArr=["小白","普通","中等","困难","大師","中級大師","高級大師","超級大師"],y.selectIndex=0,d=e((f=y).prototype,"content",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(f.prototype,"testSf",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=f))||p));r._RF.pop()}}}));

System.register("chunks:///_virtual/UIduizhan.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./GBaseUI.ts","./UIManager.ts","./createFirendRoom.ts"],(function(n){"use strict";var t,e,i,o,a,r,s,l,u,c,h,b;return{setters:[function(n){t=n.applyDecoratedDescriptor,e=n.initializerDefineProperty},function(n){i=n.cclegacy,o=n.Node,a=n._decorator,r=n.Label},function(n){s=n.GameMng,l=n.quit_chess_show_view},function(n){u=n.UIButton},function(n){c=n.default},function(n){h=n.UIManager},function(n){b=n.createFirendRoom}],execute:function(){var g,p,d,f,m,y,w,R,C,v,z,J,j,N,q,B,I,_,k,T,U,F,M;i._RF.push({},"b4025Fg/EtO1Zs/mL6s77B5","UIduizhan",void 0);const{ccclass:H,property:P}=a;n("default",(g=P(o),p=P(o),d=P(o),f=P(o),m=P(o),y=P(o),w=P(o),R=P(o),C=P(o),v=P(o),H(((M=class n extends c{constructor(...n){super(...n),e(this,"btnClose",j,this),e(this,"btnRenji",N,this),e(this,"btnHaoyou",q,this),e(this,"btnJifen",B,this),e(this,"btnTongqian",I,this),e(this,"btnJoinRoom",_,this),e(this,"nodeRenji",k,this),e(this,"labName",T,this),e(this,"nodeJifen",U,this),e(this,"nodeTongqian",F,this)}static Show(t){n.show_type=t,h.AddPrefab(s.Instance.uiduizhan)}start(){if(u.BindClick(this.btnClose,(()=>{this.closeUI()}),this),u.BindClick(this.btnRenji,(()=>{this.labName.getComponent(r).string="人机对战",this.nodeRenji.active=!0}),this),u.BindClick(this.btnJifen,(()=>{this.labName.getComponent(r).string="积分场",this.nodeJifen.active=!0}),this),u.BindClick(this.btnTongqian,(()=>{this.labName.getComponent(r).string="铜钱场",this.nodeTongqian.active=!0}),this),u.BindClick(this.btnJoinRoom,(()=>{console.log("btnJoinRoom","btnJoinRoom"),h.AddPrefab(s.Instance.joinRoom,this.node)}),this),u.BindClick(this.btnHaoyou,(()=>{b.Show(this.node.parent)}),this),null!=n.show_type)switch(n.show_type){case l.haoyou:b.Show(this.node.parent);break;case l.renji:this.labName.getComponent(r).string="人机对战",this.nodeRenji.active=!0;break;case l.jifen:this.labName.getComponent(r).string="积分场",this.nodeJifen.active=!0;break;case l.tongqian:this.labName.getComponent(r).string="铜钱",this.nodeTongqian.active=!0}}closeUI(){let n=!0;!0===this.nodeRenji.active&&(this.nodeRenji.active=!1,n=!1,this.labName.getComponent(r).string="象棋"),!0===this.nodeJifen.active&&(this.nodeJifen.active=!1,n=!1,this.labName.getComponent(r).string="象棋"),!0===this.nodeTongqian.active&&(n=!1,this.nodeTongqian.active=!1,this.labName.getComponent(r).string="象棋"),n&&this.node.destroy()}}).show_type=null,j=t((J=M).prototype,"btnClose",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(J.prototype,"btnRenji",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=t(J.prototype,"btnHaoyou",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(J.prototype,"btnJifen",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=t(J.prototype,"btnTongqian",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(J.prototype,"btnJoinRoom",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(J.prototype,"nodeRenji",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(J.prototype,"labName",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(J.prototype,"nodeJifen",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(J.prototype,"nodeTongqian",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=J))||z));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIEndChess.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AudioMng.ts","./UIButton.ts","./GameData.ts","./GameMng.ts","./CanjuModel.ts","./ChessMng.ts","./UIDiffSel.ts","./GBoardChess.ts"],(function(t){"use strict";var e,n,i,a,s,l,r,o,u,c,b,h,f,p,d,m,v;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.Animation,s=t.Node,l=t.Label,r=t._decorator,o=t.Component},function(t){u=t.default},function(t){c=t.UIButton},function(t){b=t.default},function(t){h=t.GameMng},function(t){f=t.default},function(t){p=t.default,d=t.ChessType},function(t){m=t.default},function(t){v=t.default}],execute:function(){var y,g,w,I,M,L,S,z,A,C,G,B,x,D,j,R,U,k,N,P;i._RF.push({},"7e16eAmU89LDKGG1hfVEV5R","UIEndChess",void 0);const{ccclass:_,property:E}=r;t("default",(y=E(a),g=E(a),w=E(s),I=E(s),M=E(s),L=E(s),S=E(s),z=E(l),A=E(l),_((B=e((G=class extends o{constructor(...t){super(...t),n(this,"winAnimation",B,this),n(this,"failAnimation",x,this),n(this,"btnRestart",D,this),n(this,"btnMoreLv",j,this),n(this,"btnback",R,this),n(this,"winSp",U,this),n(this,"failSp",k,this),n(this,"endtimelabel",N,this),n(this,"bushulabel",P,this)}start(){c.BindClick(this.btnMoreLv,(()=>{p.Instance.chesstype==d.renjiboyi?m.selectIndex++:p.Instance.chesstype==d.canju&&f.Instance.selectNextLv(),this.node.active=!1,v.instance.restartGame()}),this),c.BindClick(this.btnRestart,(()=>{this.node.active=!1,v.instance.restartGame()}),this)}setData(t,e,n){this.endtimelabel.string=e,this.bushulabel.string=n.toString(),0==t?(u.Instance.PlaySoundByName(h.Instance.winclip),this.winSp.active=!0,this.failSp.active=!1,this.winAnimation.play("win"),p.Instance.chesstype==d.renjiboyi?m.selectIndex<m.lvArr.length-1?this.btnMoreLv.active=!0:this.btnMoreLv.active=!1:p.Instance.chesstype==d.canju&&(f.Instance.selectLv==f.Instance.getCurMaxLevel()&&f.Instance.updateMaxLevel(),this.btnMoreLv.active=!0),b.SaveGame()):(u.Instance.PlaySoundByName(h.Instance.failclip),this.winSp.active=!1,this.failSp.active=!0,this.failAnimation.play("win"),this.btnMoreLv.active=!1)}}).prototype,"winAnimation",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(G.prototype,"failAnimation",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=e(G.prototype,"btnRestart",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(G.prototype,"btnMoreLv",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(G.prototype,"btnback",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(G.prototype,"winSp",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(G.prototype,"failSp",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(G.prototype,"endtimelabel",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(G.prototype,"bushulabel",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=G))||C));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIjiesuan.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./AudioMng.ts","./GameData.ts","./GameUtil.ts","./ResMng.ts","./UIButton.ts","./msgManager.ts","./Tools.ts","./GBoardChess.ts","./jifen_jiesuan.ts","./ChessMng.ts","./UIDiffSel.ts","./tongqian_jiesuan.ts"],(function(e){"use strict";var t,n,i,a,s,r,o,l,u,_,c,h,p,m,b,f,d,g,v,y,w,D,C,I,z,j,S;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){i=e.cclegacy,a=e.Node,s=e.SpriteFrame,r=e._decorator,o=e.Component,l=e.Vec3,u=e.Sprite,_=e.Label},function(e){c=e.ClientEvent},function(e){h=e.Constant},function(e){p=e.GameMng,m=e.quit_chess_show_view},function(e){b=e.default},function(e){f=e.default},function(e){d=e.default},function(e){g=e.ResMng},function(e){v=e.UIButton},function(e){y=e.msgManager},function(e){w=e.Tools},function(e){D=e.default},function(e){C=e.jifen_jiesuan},function(e){I=e.default,z=e.ChessType},function(e){j=e.default},function(e){S=e.tongqian_jiesuan}],execute:function(){var q,k,B,U,M,R,W,F,G,E,H,T,x,L,N,A,P,X,J,V,O,Q,K,Y,Z,$,ee,te,ne,ie,ae,se,re,oe,le,ue,_e,ce,he,pe,me,be,fe;i._RF.push({},"ab040swrudC36rLJu6FpOLW","UIjiesuan",void 0);const{ccclass:de,property:ge}=r;e("UIjiesuan",(q=de("UIjiesuan"),k=ge(a),B=ge(a),U=ge(a),M=ge(a),R=ge(a),W=ge(a),F=ge(a),G=ge(s),E=ge(s),H=ge(s),T=ge(a),x=ge(a),L=ge(a),N=ge(a),A=ge(a),P=ge(a),X=ge(a),J=ge(a),V=ge(a),O=ge(a),q((Y=t((K=class extends o{constructor(...e){super(...e),n(this,"btn_close",Y,this),n(this,"btn_new",Z,this),n(this,"btn_again",$,this),n(this,"btn_share",ee,this),n(this,"btn_reinfo",te,this),n(this,"lab_des",ne,this),n(this,"sp_isWin",ie,this),n(this,"winSp",ae,this),n(this,"loseSp",se,this),n(this,"heqiSp",re,this),n(this,"self_head_sp",oe,this),n(this,"rival_head_sp",le,this),n(this,"self_name",ue,this),n(this,"rival_name",_e,this),n(this,"block_node",ce,this),n(this,"ui_node",he,this),n(this,"jifen_node",pe,this),n(this,"tongqian_node",me,this),n(this,"rival_tongbi_node",be,this),n(this,"self_tongbi_node",fe,this)}start(){let e=this;v.BindClick(this.btn_close,(()=>{e.node.active=!1}),this),v.BindClick(this.btn_new,(()=>{I.Instance.isHaoyouRoom()?(p.Instance.quit_view=m.haoyou,y.quitRoom()):z.renjiboyi==I.Instance.chesstype&&(p.Instance.quit_view=m.renji,D.instance.recvQuit())}),this),v.BindClick(this.btn_again,(()=>{this.node.active=!1,I.Instance.isHaoyouRoom()?null===p._userData.room||c.dispatchEvent(h.UI_EVENT.UI_MSG_ready):z.renjiboyi==I.Instance.chesstype?D.instance.restartGame():I.Instance.isJiFenRoom()&&c.dispatchEvent(h.UI_EVENT.UI_MSG_5_10_20_ready)}),this),v.BindClick(this.btn_share,(()=>{}),this),v.BindClick(this.btn_reinfo,(()=>{}),this)}update(e){}setData(e,t,n){if(this.block_node.active=!0,this.rival_tongbi_node.active=!1,this.self_tongbi_node.active=!1,this.ui_node.scale=new l(0,0,1),this.scheduleOnce((()=>{this.ui_node.scale=new l(1,1,1)}),2),I.Instance.chesstype===z.renjiboyi&&(e.result=1-e.result),1==e.result?(this.sp_isWin.getComponent(u).spriteFrame=this.winSp,b.Instance.PlaySoundByName(p.Instance.winclip)):0==e.result&&(this.sp_isWin.getComponent(u).spriteFrame=this.loseSp,b.Instance.PlaySoundByName(p.Instance.failclip)),null!=(e=D.instance.last_settlementData))switch(e.result_type){case 0:break;case 1:e.result;break;case 2:case 3:break;case 4:this.sp_isWin.getComponent(u).spriteFrame=this.heqiSp}this.self_name.getComponent(_).string=p._userData.user_name,""!=p._userData.user_avatar&&w.loadWeiXinHead(p._userData.user_avatar,this.self_head_sp.getComponent(u));let i="";I.Instance.chesstype===z.renjiboyi?(i="人机对战,",this.rival_name.getComponent(_).string=j.lvArr[j.selectIndex],g.LoadAvatar(w.getAvatarByIndex(j.selectIndex+1),this.rival_head_sp.getComponent(u)),this.lab_des.getComponent(_).string=i+n+"步,"+d.timestampToTime()):I.Instance.isHaoyouRoom()?(i="好友对战,",null!=p._userData.room&&(null!=p._userData.room.rival&&(this.rival_name.getComponent(_).string=p._userData.room.rival.user_name,""!=p._userData.room.rival.user_avatar&&w.loadWeiXinHead(p._userData.room.rival.user_avatar,this.rival_head_sp.getComponent(u))),null!=D.instance.last_settlementData&&(this.lab_des.getComponent(_).string=i+D.instance.last_settlementData.round+"回合,"+D.instance.last_settlementData.server_time))):I.Instance.isJiFenRoom()?(i="积分对战,",this.jifen_node.getComponent(C).show(e),null!=p._userData.room&&(null!=p._userData.room.rival&&(this.rival_name.getComponent(_).string=p._userData.room.rival.user_name,""!=p._userData.room.rival.user_avatar&&w.loadWeiXinHead(p._userData.room.rival.user_avatar,this.rival_head_sp.getComponent(u))),null!=D.instance.last_settlementData&&(this.lab_des.getComponent(_).string=i+D.instance.last_settlementData.round+"回合,"+D.instance.last_settlementData.server_time))):I.Instance.isTongqianRoom()&&(this.rival_tongbi_node.active=!0,this.self_tongbi_node.active=!0,i="铜钱对战,",this.tongqian_node.getComponent(S).show(e),null!=p._userData.room&&(null!=p._userData.room.rival&&(this.rival_name.getComponent(_).string=p._userData.room.rival.user_name,""!=p._userData.room.rival.user_avatar&&w.loadWeiXinHead(p._userData.room.rival.user_avatar,this.rival_head_sp.getComponent(u))),null!=D.instance.last_settlementData&&(this.lab_des.getComponent(_).string=i+D.instance.last_settlementData.round+"回合,"+D.instance.last_settlementData.server_time))),f.SaveGame()}}).prototype,"btn_close",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=t(K.prototype,"btn_new",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=t(K.prototype,"btn_again",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=t(K.prototype,"btn_share",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=t(K.prototype,"btn_reinfo",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=t(K.prototype,"lab_des",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=t(K.prototype,"sp_isWin",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=t(K.prototype,"winSp",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=t(K.prototype,"loseSp",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),re=t(K.prototype,"heqiSp",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),oe=t(K.prototype,"self_head_sp",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=t(K.prototype,"rival_head_sp",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=t(K.prototype,"self_name",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_e=t(K.prototype,"rival_name",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce=t(K.prototype,"block_node",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),he=t(K.prototype,"ui_node",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),pe=t(K.prototype,"jifen_node",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),me=t(K.prototype,"tongqian_node",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),be=t(K.prototype,"rival_tongbi_node",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fe=t(K.prototype,"self_tongbi_node",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=K))||Q));i._RF.pop()}}}));

System.register("chunks:///_virtual/UIjiesuanchess.ts",["cc","./ResMng.ts","./GBoardChess.ts"],(function(e){"use strict";var s,t,n,o,c,l,i,a,h;return{setters:[function(e){s=e.cclegacy,t=e.Component,n=e.instantiate,o=e.UITransform,c=e.Vec3,l=e.Sprite,i=e._decorator},function(e){a=e.ResMng},function(e){h=e.default}],execute:function(){var r;s._RF.push({},"fcd5bVZ0GVEsJwdHlu1iskV","UIjiesuanchess",void 0);const{ccclass:u,property:d}=i;var p=["oo",null,null,null,null,null,null,null,"hj","hs","hx","hm","hc","hp","hz",null,"bj","bs","bx","bm","bc","bp","bz",null];e("UIjiesuanchess",u("UIjiesuanchess")(r=class extends t{start(){}onEnable(){this.showChessByPos()}showChessByPos(){if(this.node.children.length<32)for(let e=0;e<32;e++){let e=n(h.instance.chessNode);e.active=!1,e.parent=this.node}for(let s=0;s<32;s++)if(h.instance.result_pos.length<=s)this.node.children[s].active=!1;else{const t=h.instance.result_pos[s];let n=this.node.children[s];n.active=!0,n.getComponent(o).setContentSize(106,106),n.position=new c(parseFloat(t.x),parseFloat(t.y));var e=n.getChildByName("chess_bg").getComponent(l).node.getChildByName("chess_qz").getComponent(l);let i=p[t.pc];e.node.active=!0,a.LoadImg(i,e,(()=>{}),this)}}update(e){}})||r);s._RF.pop()}}}));

System.register("chunks:///_virtual/UILoading.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIManager.ts"],(function(e){"use strict";var t,i,n,s,r,o,a,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,r=e._decorator,o=e.Component},function(e){a=e.GameMng},function(e){c=e.UIManager}],execute:function(){var l,u,g,h,p,d,b,f,_;n._RF.push({},"365caLtvOdI2LmYetRBuw0Q","UILoading",void 0);const{ccclass:y,property:m}=r;e("default",(l=m(s),u=m(s),g=m(s),y(((_=class e extends o{constructor(...e){super(...e),i(this,"progress",d,this),i(this,"bg",b,this),i(this,"chess_jiang_zi",f,this),this.angle=180}static deley_show(t){console.log("deley_show");var i=c.AddPrefab(a.Instance.uiloading);return i.getComponent(e).deley(t),i}deley(e){this.chess_jiang_zi.active=!1,this.bg.active=!1,this.scheduleOnce((()=>{this.chess_jiang_zi.active=!0,this.bg.active=!0}),e)}start(){this.schedule(this.dt,.01)}dt(){this.progress.angle=this.progress.angle+2}onDestroy(){this.unschedule(this.dt)}})._time=-1,d=t((p=_).prototype,"progress",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=t(p.prototype,"bg",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=t(p.prototype,"chess_jiang_zi",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=p))||h));n._RF.pop()}}}));

System.register("chunks:///_virtual/UIManager.ts",["cc","./GameMng.ts","./user_info_view.ts"],(function(e){"use strict";var t,n,a,s,i,o;return{setters:[function(e){t=e.cclegacy,n=e._decorator,a=e.instantiate,s=e.find},function(e){i=e.GameMng},function(e){o=e.user_info_view}],execute:function(){var r,l;t._RF.push({},"b409bJ4J9FAE5f0WRMkPJ+3","UIManager",void 0);const{ccclass:c,property:L}=n;e("UIManager",c("UIManager")(((l=class e{constructor(){this.topLayer=null}static get Instance(){return null===e._instance&&(e._instance=new e),e._instance}static AddPrefab(t,n=null){let s=a(t);return null==n&&(n=e.Instance.TopLayer,"UILoading"!==t.name&&"waitView"!==t.name&&"Dialog"!==t.name||(this.pushLayer(s),console.log("_prefab name ",t.name))),n.addChild(s),s}static addUserInfoViewPrefab(t){let n=a(i.Instance.uiuserinfo);return e.Instance.TopLayer.addChild(n),n.getComponent(o).show(t),n}get TopLayer(){return this.topLayer=s("Canvas"),this.topLayer}static removeLoadingLayer(){console.log("removeLoadingLayer");for(let e=0;e<this.topLayerList.length;e++){const t=this.topLayerList[e];t&&(console.log("element.name",t.name),"UILoading"==t.name&&(t.destroy(),this.topLayerList[e]=null))}}static removeWaitViewLayer(){for(let e=0;e<this.topLayerList.length;e++){const t=this.topLayerList[e];t&&(console.log("element.name",t.name),"waitView"===t.name&&(t.destroy(),this.topLayerList[e]=null))}}static removeDialogViewLayer(){for(let e=0;e<this.topLayerList.length;e++){const t=this.topLayerList[e];t&&(console.log("element.name",t.name),"Dialog"===t.name&&(t.destroy(),this.topLayerList[e]=null))}}static pushLayer(e){for(let t=0;t<this.topLayerList.length;t++)if(null==this.topLayerList[t])return void(this.topLayerList[t]=e);return this.topLayerList.push(e)}})._instance=null,l.topLayerList=[],r=l))||r);t._RF.pop()}}}));

System.register("chunks:///_virtual/UISetting.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./UIButton.ts","./GBaseUI.ts","./UIManager.ts"],(function(t){"use strict";var e,n,i,s,r,o,c,a,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Node,r=t._decorator},function(t){o=t.GameMng},function(t){c=t.UIButton},function(t){a=t.default},function(t){u=t.UIManager}],execute:function(){var l,f,p,d;i._RF.push({},"5f590VNrMlMQKyxyCKT53RK","UISetting",void 0);const{ccclass:g,property:I}=r;t("default",(l=I(s),g((d=e((p=class extends a{constructor(...t){super(...t),n(this,"btnClose",d,this)}static Show(t){u.AddPrefab(o.Instance.uisetting,t)}start(){c.BindClick(this.btnClose,(()=>{this.closeUI()}),this)}}).prototype,"btnClose",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=p))||f));i._RF.pop()}}}));

System.register("chunks:///_virtual/UITips.ts",["cc","./GameMng.ts","./UIManager.ts"],(function(t){"use strict";var s,e,n,i,o,a,r,c;return{setters:[function(t){s=t.cclegacy,e=t.Component,n=t.Vec3,i=t.tween,o=t.Label,a=t._decorator},function(t){r=t.GameMng},function(t){c=t.UIManager}],execute:function(){var l;s._RF.push({},"dbcc5I39WtGrYmAMnpT+OzT","UITips",void 0);const{ccclass:d,property:h}=a;t("default",d(l=class t extends e{constructor(...t){super(...t),this.pos=new n,this.toscale=new n,this.targetworldPos=new n,this.isPlayAnim=!1,this.startScale=new n(1,1,1),this.onestepScale=new n(1,1,1),this.randPos=new n}playAnim(){this.isPlayAnim=!0,this.node.setPosition(this.pos),this.node.setScale(this.startScale),i(this.node).to(.6,{scale:new n(this.onestepScale.x,this.onestepScale.y,0)},{easing:"smooth"}).delay(.3).hide().call((()=>{this.isPlayAnim=!1,this.node.destroy()})).start()}static show(s,e){let n=c.AddPrefab(r.Instance.uitips).getComponent(t);n.getComponentInChildren(o).string=s,e&&(n.targetworldPos=e.clone()),n.randPos.y=200,n.randPos.add(n.targetworldPos),n.playAnim()}update(t){this.isPlayAnim&&(this.targetworldPos.y+=200*t,this.node.setPosition(this.targetworldPos))}})||l);s._RF.pop()}}}));

System.register("chunks:///_virtual/user_info_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./UITips.ts","./msgManager.ts","./Tools.ts"],(function(t){"use strict";var e,i,n,r,s,o,a,u,l,c,d,_,f,b,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t.Node,s=t._decorator,o=t.Sprite,a=t.Label},function(t){u=t.ClientEvent},function(t){l=t.Constant},function(t){c=t.GameMng},function(t){d=t.default},function(t){_=t.UIButton},function(t){f=t.default},function(t){b=t.msgManager},function(t){p=t.Tools}],execute:function(){var h,g,m,v,y,D,w,E,I,M,z,B,C;n._RF.push({},"827c6BLXQNJhJzy8ckWQAXS","user_info_view",void 0);const{ccclass:T,property:N}=s;t("user_info_view",(h=T("user_info_view"),g=N(r),m=N(r),v=N(r),y=N(r),D=N(r),h((I=e((E=class extends d{constructor(...t){super(...t),i(this,"lab_name",I,this),i(this,"btn_close",M,this),i(this,"spr_icon",z,this),i(this,"lab_id",B,this),i(this,"btn_add_firend",C,this)}start(){_.BindClick(this.btn_close,(()=>{this.closeUI()}),this),u.on(l.EVENT_TYPE.MSG_ADD_FIREND,this.on_add_firend,this)}onDestroy(){u.off(l.EVENT_TYPE.MSG_ADD_FIREND,this.on_add_firend,this)}on_add_firend(){f.show("添加好友成功！")}show(t){let e=this;t.userid===c._userData.userid||c.isMyFirend(t.userid)?this.btn_add_firend.active=!1:this.btn_add_firend.active=!0,_.BindClick(this.btn_add_firend,(()=>{b.add_firend(t.userid),e.btn_add_firend.active=!1}),this),p.loadWeiXinHead(t.user_avatar,this.spr_icon.getComponent(o)),this.lab_name.getComponent(a).string=t.user_name,this.lab_id.getComponent(a).string="ID:"+t.userid}update(t){}}).prototype,"lab_name",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=e(E.prototype,"btn_close",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(E.prototype,"spr_icon",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(E.prototype,"lab_id",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(E.prototype,"btn_add_firend",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=E))||w));n._RF.pop()}}}));

System.register("chunks:///_virtual/userData.ts",["cc","./constant.ts","./bagData.ts","./privacyData.ts","./wearData.ts"],(function(t){"use strict";var i,s,l,n,a,e,r;return{setters:[function(t){i=t.cclegacy,s=t._decorator},function(t){l=t.room_rival_type,n=t.robot_ai_level},function(t){a=t.bagData},function(t){e=t.privacyData},function(t){r=t.wearData}],execute:function(){var u;i._RF.push({},"2f1365cDDVLI4y+MUwIGUQ6","userData",void 0);const{ccclass:o,property:c}=s;t("userData",o("userData")(u=class{constructor(){this.userid=null,this.user_name=null,this.mobile=null,this.introduction=null,this.user_avatar=null,this.wx_openid=null,this.wx_name=null,this.wx_avatar=null,this.qcoin=null,this.status=null,this.is_register=null,this.login_type=null,this.action=null,this.cur_status=null,this.integral=null,this.integral_level=null,this.integral_level_name=null,this.room=null,this.is_robot=l.play,this.robot_ai_lv=n.xiaobai,this.room_info=null,this.privacy=new e,this.wear=new r,this.bag=new a,this.tong_bi=0,this.friend_list=[],this.online_friend_list=[],this.email_list=[]}})||u);i._RF.pop()}}}));

System.register("chunks:///_virtual/View.ts",["cc","./debug.ts","./enum.ts","./helper.ts","./LayoutManager.ts","./ViewManager.ts"],(function(e){"use strict";var t,i,a,r,s,o,n;return{setters:[function(e){t=e.cclegacy,i=e._decorator},function(e){a=e.DEBUG_DRAW_LIND_WIDTH},function(e){r=e.WrapMode},function(e){s=e.Helper},function(e){o=e.LayoutManager},function(e){n=e.ViewManager}],execute:function(){var h;t._RF.push({},"20c27Yt8z5L9bZJqa8MgjS3","View",void 0);const{ccclass:l,property:d}=i;e("View",l("View")(h=class{get isOverflowFixed(){return this._isOverflowFixed}get adapter(){return this._adapter}get group(){return this._group}get holderList(){return this._holderList}get index(){return this.group?this.group.index:-1}constructor(e){this.__debug_graphics=void 0,this._adapter=void 0,this._total=0,this._innerSize=0,this._group=null,this._holderList=[],this._isOverflowFixed=void 0,this._adapter=e,this.internal_reset(),this.__createDebug()}__createDebug(){}__drawDebug(){if(this.__debug_graphics&&this.group){this.__debug_graphics.clear();var e=this.adapter.mainAxis,t=this.adapter.crossAxis,i={x:0,y:0},r={x:this.group.size.x,y:this.group.size.y},s={x:this.group.anchorPoint.x,y:this.group.anchorPoint.y};i[e]=this.group.position[e]-r[e]*s[e],i[e]+=.5*a,i[t]=this.group.position[t]-r[t]*(1-s[t]),i[t]+=.5*a,r[e]-=a,r[t]-=a,this.__debug_graphics.roundRect(i.x,i.y,r.x,r.y,2),this.__debug_graphics.stroke()}}getFixedHolders(){if(!this.group.isFixed)return[];var e=[],t=this.holderList.length;for(let i=0;i<t;i++){const t=this.holderList[i];t.model.element.fixed&&e.push(t)}return e}internal_isWrap(e,t){var i=!1,a=t&&t.models[t.models.length-1];if(a)switch(e.element.wrapBeforeMode){case r.Wrap:i=!0;break;case r.Nowrap:i=a.element.wrapAfterMode==r.Wrap;break;case r.Auto:(i=a.element.wrapAfterMode==r.Wrap)||(i=this._calculateInnerSize(e,t))}return i}internal_reset(){this._group=null,this._innerSize=0,this._total=0,this._holderList.length=0,this._isOverflowFixed=!0,this.__debug_graphics&&this.__debug_graphics.clear()}internal_push(e){this._total++;var t=this.adapter.crossAxis;(!e.element.ignoreLayout||e.element.ignoreLayout&&e.element.placeholder)&&(0!=this._innerSize&&(this._innerSize+=this.adapter.layoutManager.spacing),this._innerSize+=e.size[t])}internal_recycleHolders(e){for(let t=0;t<this._holderList.length;t++){const i=this._holderList[t];i.internal_disable(),e(i)}this._holderList.length=0}internal_visible(e,t){this._group=e,this.register(),this._createHolders(t),this.adapter.layoutManager.layout(this.group),this.onVisible()}internal_disable(){this.adapter.layoutManager.unLayout(this.index),this.unregister(),this.onDisable(),this.internal_reset()}internal_holderChanged(e){var t=!0,i=this.adapter.mainAxis,a=this.group.size[i];if(!e){var r=0;for(let e=0;e<this.group.models.length;e++){const t=this.group.models[e];var o=t.size[i];(this.adapter.isVertical&&this.adapter.layoutManager.controlScaleHeight||this.adapter.isHorizontal&&this.adapter.layoutManager.controlScaleWidth)&&(o*=t.scale[i]),r=Math.max(r,o)}s.approximately(this.group.size[i],r)||(this.group.oldSize[i]=this.group.size[i],this.group.size[i]=r,t=!1)}t?this.adapter.layoutManager.layout(this.group):this.adapter.viewManager.internal_viewChanged(this,a)}register(){this.adapter.viewManager.on(n.Event.ON_SCROLL,this._onScroll,this),this.adapter.viewManager.on(n.Event.ON_LATEUPDATE,this._onLateUpdate,this),this.adapter.layoutManager.on(o.Event.ON_LAYOUT_COMPLATED,this._onLayoutComplated,this),this.adapter.layoutManager.on(o.Event.ON_CHANGED_LAYOUT_STATE,this._onChangedLayoutState,this)}unregister(){this.adapter.viewManager.off(n.Event.ON_SCROLL,this._onScroll,this),this.adapter.viewManager.off(n.Event.ON_LATEUPDATE,this._onLateUpdate,this),this.adapter.layoutManager.off(o.Event.ON_LAYOUT_COMPLATED,this._onLayoutComplated,this),this.adapter.layoutManager.off(o.Event.ON_CHANGED_LAYOUT_STATE,this._onChangedLayoutState,this)}_createHolders(e){var t=this.adapter.mainAxis;for(let r=0;r<this.group.models.length;r++){const s=this.group.models[r];var i=!1,a=e&&e(s);a||(a=this.adapter.viewManager.internal_getHolder(s),i=!0),s.position[t]=this.group.position[t],a.internal_visible(this,s,i),this._holderList.push(a)}}_calculateInnerSize(e,t){if(0==this._total)return!1;var i=e.size[this.adapter.crossAxis];return this._innerSize+i+this.adapter.layoutManager.spacing>t.size[this.adapter.crossAxis]}_onLayoutComplated(e){if(-1!=e.indexOf(this.index)){for(let e=0;e<this.holderList.length;e++){this.holderList[e].internal_layout()}this.group.isFixed&&this._calcFixedPosition()}}_calcFixedPosition(){var e=this._holderList.length,t=this.adapter.mainAxis;for(let o=0;o<e;o++){const e=this._holderList[o];if(e.element.fixed){var i={x:e.model.position.x,y:e.model.position.y},a=0,r=this._getModelBoundary(e.model);if(this._isNeedFixed(r)){i[t]-=r;var s=this.adapter.viewManager.getNextFixedHolders(this.index);a=this._getRelativeNextHolderOffset(e,s)}i[t]+=a*this.adapter.multiplier,i[t]!=e.node.position[t]&&e.node.setPosition(i.x,i.y)}}}_onChangedLayoutState(){this.adapter.layoutManager.layout(this.group)}_onScroll(){this.group.isFixed&&0!=this._holderList.length&&this._calcFixedPosition()}_onLateUpdate(e){}_isNeedFixed(e){return 1==this.adapter.multiplier?e>=0:e<=0}_getModelBoundary(e){var t=s.isNumber(e.element.fixedOffset)?e.element.fixedOffset:0;return 1==this.adapter.multiplier?this._getModelHeaderBoundary(e)+t:this._getModelFooterBoundary(e)-t}_getModelHeaderBoundary(e){var t=this.adapter.mainAxis;return e.position[t]+e.size[t]*(1-e.anchorPoint[t])*e.scale[t]+this.adapter.scrollManager.contentPosition}_getModelFooterBoundary(e){var t=this.adapter.mainAxis;return e.position[t]-e.size[t]*e.anchorPoint[t]*e.scale[t]+this.adapter.scrollManager.contentPosition}_getModelSizeWithSpacing(e){var t=this.adapter.mainAxis,i=s.isNumber(e.element.fixedOffset)?e.element.fixedOffset:0,a=s.isNumber(e.element.fixedSpacing)?e.element.fixedSpacing:this.adapter.viewManager.spacing;return e.size[t]*e.scale[t]+i+a}_getReatureRelativeBoundary(e,t){var i=1==this.adapter.multiplier?this._getModelHeaderBoundary(e):this._getModelFooterBoundary(e),a=1==this.adapter.multiplier?i+t:t-i;return Math.min(a,t)}_getRelativeNextHolderOffset(e,t){var i=t.length,a=this.adapter.crossAxis,r=this._getModelSizeWithSpacing(e.model),s=0;for(let l=0;l<i;l++){const i=t[l];var o=this._getReatureRelativeBoundary(i.model,r),n=e.model.scale[a]==i.model.scale[a],h=e.model.size[a]==i.model.size[a];if(e.fixedIndex==i.fixedIndex&&n&&h){s=o>0?o:0;break}o>0&&(s=Math.max(s,o))}return s}})||h);t._RF.pop()}}}));

System.register("chunks:///_virtual/ViewManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Group.ts","./Manager.ts","./View.ts","./enum.ts","./helper.ts","./ModelManager.ts","./ScrollManager.ts"],(function(e){"use strict";var i,t,r,s,a,n,o,h,l,d,p,u,_,c,g;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){r=e.cclegacy,s=e._decorator,a=e.instantiate},function(e){n=e.Group},function(e){o=e.Manager},function(e){h=e.View},function(e){l=e.ArrangeAxis,d=e.StretchDirection,p=e.MagneticDirection,u=e.ScrollDirection},function(e){_=e.Helper},function(e){c=e.ModelManager},function(e){g=e.ScrollManager}],execute:function(){var f,v,x,m,b,w,A,H,V,z,S,F,E,I,y,O,M,P,D,N,T,G,L,C,R,B,k,U,W,Z,j;r._RF.push({},"74bbbWBWzpGspxEpsEO9xIS","ViewManager",void 0);const{ccclass:q,property:J}=s;var K;!function(e){e[e.ON_SCROLL=0]="ON_SCROLL",e[e.ON_LATEUPDATE=1]="ON_LATEUPDATE",e[e.ON_CLEARVIEWS=2]="ON_CLEARVIEWS",e[e.ON_UPDATE_VIEWS=3]="ON_UPDATE_VIEWS",e[e.ON_CHANGED_VIRTUALSIZE=4]="ON_CHANGED_VIRTUALSIZE",e[e.ON_MAGNETIC=5]="ON_MAGNETIC",e[e.ON_CHANGED_OVERFLOWHEADER=6]="ON_CHANGED_OVERFLOWHEADER",e[e.ON_RESET_ALL_STATE=7]="ON_RESET_ALL_STATE",e[e.ON_CHANGED_SPACING=8]="ON_CHANGED_SPACING"}(K||(K={}));e("ViewManager",(f=q("ViewManager"),v=J({type:l}),x=J({type:l}),m=J({type:d}),b=J({range:[0,1],slide:!0,step:.01}),w=J({range:[0,1],slide:!0,step:.01}),A=J({group:{id:"padding",name:"padding"}}),H=J({group:{id:"padding",name:"padding"}}),V=J({group:{id:"padding",name:"padding"}}),z=J({group:{id:"padding",name:"padding"}}),S=J({type:p,visible:function(){return this.magnetic}}),F=J({visible:function(){return this.magnetic}}),E=J({tooltip:"当item尺寸改变时,是否触发磁吸",visible:function(){return this.magnetic}}),f(((j=class extends o{constructor(...e){super(...e),t(this,"_arrangeAxis",O,this),t(this,"stretchDirection",M,this),t(this,"overflowOffset",P,this),t(this,"enterOffset",D,this),t(this,"_spacing",N,this),t(this,"left",T,this),t(this,"right",G,this),t(this,"top",L,this),t(this,"bottom",C,this),t(this,"magnetic",R,this),t(this,"magneticDirection",B,this),t(this,"magneticDuration",k,this),t(this,"magneticSizeChanges",U,this),t(this,"loopHeader",W,this),t(this,"loopFooter",Z,this),this._groupLength=0,this._cacheGroups=[],this._groups=[],this._disableViews=[],this._visibleViews=[],this._fixedViews=[],this._disableHolders=[],this._isFill=!1,this._headerIndex=-1,this._footerIndex=-1,this._virtualSize=0,this._overflowHeader=0,this._cacheHeadeDatas=[],this._cacheHeadePosition=void 0}get arrangeAxis(){return this._arrangeAxis}set arrangeAxis(e){e!=this._arrangeAxis&&(this._arrangeAxis=e,this._resetAllState())}get spacing(){return this._spacing}set spacing(e){e!=this._spacing&&(this._spacing=e,this._resetAllState())}get header(){return this._visibleViews[0]}get footer(){return this._visibleViews[this._visibleViews.length-1]}get overflowHeader(){return this._overflowHeader}set overflowHeader(e){e!=this._overflowHeader&&(this._overflowHeader=e,this.emit(K.ON_CHANGED_OVERFLOWHEADER,e))}get virtualSize(){return this._virtualSize}set virtualSize(e){e!=this._virtualSize&&(this._virtualSize=e,this.emit(K.ON_CHANGED_VIRTUALSIZE))}get groupLength(){return this._groupLength}get visibleLength(){return this._visibleViews.length}get min(){return this.header?this.adapter.isArrangeAxisStart?this.internal_getGroupFooterBoundary(this.footer.group):this.internal_getGroupHeaderBoundary(this.header.group):0}get max(){return this.header?this.adapter.isArrangeAxisStart?this.internal_getGroupHeaderBoundary(this.header.group):this.internal_getGroupFooterBoundary(this.footer.group):0}onInit(){this.adapter.modelManager.on(c.Event.ON_CHANGE_BEFORE,this._onModelChangeBefore,this),this.adapter.modelManager.on(c.Event.ON_INSERT,this._updateGroups,this),this.adapter.modelManager.on(c.Event.ON_REMOVE,this._updateGroups,this),this.adapter.modelManager.on(c.Event.ON_MOVE,this._updateGroups,this),this.adapter.modelManager.on(c.Event.ON_CLEAR,this._onClearModel,this),this.adapter.scrollManager.on(g.Event.ON_SCROLL,this._onScroll,this),this.adapter.scrollManager.on(g.Event.ON_VIEW_SIZE_CHANGED,this._resetAllState,this),this.adapter.scrollManager.on(g.Event.ON_CHANGED_ORIENTATION,this._resetAllState,this)}_clearAll(){for(let e=0,i=this._visibleViews.length;e<i;e++)this._recycleViewToDisableViews(this._visibleViews[e]);this._cacheGroups.push(...this._groups),this._clearFixedViews(),this._visibleViews.length=0,this._groups.length=0,this.virtualSize=0,this.overflowHeader=0}_onClearModel(){this._clearAll(),this.emit(K.ON_CLEARVIEWS)}_resetAllState(){this._clearAll(),this.internal_updateVisibleView(0),this.emit(K.ON_RESET_ALL_STATE)}_onModelChangeBefore(){if(this.header&&this.virtualSize>this.adapter.mainAxisSize){var e=this.getVisibleIndexByGroupIndex(0);if(-1!=e){var i=this._visibleViews[e];this._cacheHeadeDatas=i.group.models.map((e=>e.data)),this._cacheHeadePosition={x:i.group.position.x,y:i.group.position.y}}else this._cacheHeadeDatas=this.header.group.models.map((e=>e.data)),this._cacheHeadePosition={x:this.header.group.position.x,y:this.header.group.position.y}}}_updateGroups(e){var i=this._getViewFromDisibleViews(null),t=this.getGroupIndexByModelIndex(e);-1==t&&(t=this._groupLength-1);var r=null,s=!1,a={modelIndex:e,fixedIndex:-1},n=this._groups[t-1];for(n&&(a.fixedIndex=n.fixedIndex);;){(r=this._groups[t])||((r=this._getGroupFromCache()).internal_setIndex(this._groups.length),this._groups.push(r),t=this._groups.length);var o=r.internal_insert(a,i,s);if(t++,s=!0,!o)break}var h=this._groups.splice(t,this._groups.length);this._cacheGroups.push(...h),this._groupLength=this._groups.length;var l=-1,d=0;this._cacheHeadeDatas.length>0&&(l=this._groups.findIndex((e=>e.internal_includes(this._cacheHeadeDatas))));var u=this._groups[l];u&&(d+=u.size[this.adapter.mainAxis]+this.spacing,u.internal_setPosition(this._cacheHeadePosition[this.adapter.mainAxis]));for(let e=l-1;e>=0;e--){var _=this._groups[e];this._calcMainAxisPosition(_,u,p.Header),d+=_.size[this.adapter.mainAxis]+this.spacing,u=_}u=this._groups[l];for(let e=l+1;e<this.groupLength;e++){_=this._groups[e];this._calcMainAxisPosition(_,u,p.Footer),d+=_.size[this.adapter.mainAxis]+this.spacing,u=_}d-=this.spacing,this._virtualSize=Math.max(0,d),this._resetOverflowHeader(this._groups[0]),i.internal_reset(),this._disableViews.push(i),this.updateVisibles(l),this._cacheHeadeDatas=[],this._cacheHeadePosition=null}updateVisibles(e){var i=[];e=Math.max(0,e);const t=e=>{var t=i.findIndex((i=>i.oldData==e.data));return-1!=t?i.splice(t,1)[0]:null};for(let e=0;e<this._visibleViews.length;e++){const t=this._visibleViews[e];i=i.concat(t.holderList),t.internal_reset()}var r=this.adapter.mainAxisSize,s=0,a=this.visibleLength;for(let i=e,o=this._groups.length;i<o;i++){const e=this._groups[i];if(this.getVisibleMainAxisSize()>=r&&a<=0)break;(n=this._visibleViews[s++])||(n=this._getViewFromDisibleViews(e.index),this._visibleViews.push(n)),n.internal_visible(e,t),a--}for(let e=this._visibleViews.length-1;e>=0;e--){var n;if((n=this._visibleViews[e]).holderList.length>0)break;this._disableFromVisibleViews(e)}for(let e=0,t=i.length;e<t;e++){const t=i[e];t.internal_disable(),this._disableHolders.push(t)}this._forceFill(),this._calcMagnetic(),this.emit(K.ON_UPDATE_VIEWS)}_getGroupFromCache(){var e=this._cacheGroups.pop();return e||(e=new n(this.adapter)),e.internal_reset(),e}_calcMagnetic(){if(this.magnetic&&this.header){var e=!1;0==this.adapter.scrollManager.velocity&&(this.magneticDirection==p.Footer?this.footer.index==this._groupLength-1&&(this.adapter.scrollManager.scrollToFooter(this.magneticDuration),e=!0):0==this.header.index&&(this.adapter.scrollManager.scrollToHeader(this.magneticDuration),e=!0)),this.emit(K.ON_MAGNETIC,e)}}_calcMainAxisPosition(e,i,t){if(e)if(i){var r,s,a=this.adapter.mainAxis,n=this.adapter.multiplier,o=t==p.Footer?1:-1;t==p.Footer?(r=1==n?i.anchorPoint[a]:1-i.anchorPoint[a],s=1==n?1-e.anchorPoint[a]:e.anchorPoint[a]):(r=1==n?1-i.anchorPoint[a]:i.anchorPoint[a],s=1==n?e.anchorPoint[a]:1-e.anchorPoint[a]);var h=i.position[a];h-=i.size[a]*r*o*n,h-=this.spacing*n*o,h-=e.size[a]*s*o*n,e.internal_setPosition(h)}else e.internal_setPosition(this._getMainAxisHeaderPosition(e))}_getMainAxisHeaderPosition(e){var i=0,t=0;return this.adapter.isVertical?(i=this.adapter.isArrangeAxisStart?-this.top:this.bottom,t=this.adapter.isArrangeAxisStart?1-e.anchorPoint[this.adapter.mainAxis]:e.anchorPoint[this.adapter.mainAxis]):(i=this.adapter.isArrangeAxisStart?this.left:-this.right,t=this.adapter.isArrangeAxisStart?e.anchorPoint[this.adapter.mainAxis]:1-e.anchorPoint[this.adapter.mainAxis]),i-=t*e.size[this.adapter.mainAxis]*this.adapter.multiplier}_getViewFromDisibleViews(e){var i=null;if(null!=e){var t=this._fixedViews.findIndex((i=>i.index==e));if(-1!=t){var r=this._fixedViews.splice(t,1)[0];this._recycleViewToDisableViews(r)}}return i||(i=this._disableViews.pop()),i||(i=this.adapter.getView()),i}_getHolderFromDisableHolders(e){var i=this._disableHolders.findIndex((i=>i.code==e.code));if(-1!=i)return this._disableHolders.splice(i,1)[0]}_disableFromVisibleViews(e){var i=-1;i=e instanceof h?this._visibleViews.findIndex((i=>i.index==e.index)):e,this._recycleViewToDisableViews(this._visibleViews[i]),this._visibleViews.splice(i,1)}_recycleViewToDisableViews(e){e&&(e.internal_recycleHolders((e=>this._disableHolders.push(e))),e.internal_disable(),this._disableViews.push(e))}_clearFixedViews(){for(let e=0,i=this._fixedViews.length;e<i;e++){const i=this._fixedViews[e];this._recycleViewToDisableViews(i)}this._fixedViews.length=0}_checkHeaderInvisible(){this.header&&(this.loopFooter||this.footer.index!=this.groupLength-1)&&this._isOverflowHeader(this.header.group)&&(this._disableFromVisibleViews(0),this._checkHeaderInvisible())}_checkFooterInvisible(){this.footer&&(this.loopHeader||0!=this.header.index)&&this._isOverflowFooter(this.footer.group)&&(this._disableFromVisibleViews(this._visibleViews.length-1),this._checkFooterInvisible())}_isOverflowHeader(e,i=this.overflowOffset){var t=this.internal_getGroupFooterBoundary(e);return i*=e.size[this.adapter.mainAxis],1==this.adapter.multiplier?t>=i:t<=-i}_isOverflowFooter(e,i=this.overflowOffset){var t=this.internal_getGroupHeaderBoundary(e);return i*=e.size[this.adapter.mainAxis],1==this.adapter.multiplier?t+this.adapter.mainAxisSize<=-i:t-this.adapter.mainAxisSize>=i}_isEnterFooter(e){if(!e)return!1;var i=this.internal_getGroupFooterBoundary(e),t=this.enterOffset*e.size[this.adapter.mainAxis];return 1==this.adapter.multiplier?i+this.adapter.mainAxisSize+t>=0:i-this.adapter.mainAxisSize-t<=0}_isEnterHeader(e){if(!e)return!1;var i=this.internal_getGroupHeaderBoundary(e),t=this.overflowOffset*e.size[this.adapter.mainAxis];return 1==this.adapter.multiplier?i-t<=0:i+t>=0}_fillHeader(){var e=this._groups[this._headerIndex];if(this._isEnterHeader(e)){var{index:i,size:t}=this._accumTargetSizeTowardsHeader(e.index,this.internal_getInitHeaderSize(e)),r=this._groups[i];if(r&&-1==this.getVisibleIndexByGroupIndex(i)){var s=this.internal_convertSizeToHeaderPosition(t,r);r.internal_setPosition(s);var a=this._getViewFromDisibleViews(r.index);this._visibleViews.unshift(a),a.internal_visible(r),0==a.index&&this._resetOverflowHeader(a.group),this._headerIndex=r.index,this._fillHeader()}}}_fillFooter(){var e=this._groups[this._footerIndex];if(this._isEnterFooter(e)){var{index:i,size:t}=this._accumTargetSizeTowardsFooter(e.index,this.internal_getInitFooterSize(e)),r=this._groups[i];if(r&&-1==this.getVisibleIndexByGroupIndex(i)){var s=this.internal_convertSizeToFooterPosition(t,r);r.internal_setPosition(s);var a=this._getViewFromDisibleViews(r.index);this._visibleViews.push(a),a.internal_visible(r),0==a.index&&this._resetOverflowHeader(a.group),this._footerIndex=r.index,this._fillFooter()}}}_fillFixedView(){if(this.header&&(-1!=this.header.group.fixedIndex||this.header.group.isFixed)){var e=this.header.index,i=this.adapter.mainAxis,t=this.internal_getInitHeaderSize(this.header.group);for(let n=e-1;n>=0;n--){var r=this._groups[n];if(!r)return void console.error("_fillFixedView错误 找不到group",n);if(t+=r.size[i]+this.spacing,r.isFixed){var s=this.internal_convertSizeToHeaderPosition(t,r);if(-1!=this._fixedViews.findIndex((e=>e.index==r.index))){_.approximately(s,r.position[i])||(r.internal_setPosition(s),this.adapter.layoutManager.layout(r));break}this._clearFixedViews();s=this.internal_convertSizeToHeaderPosition(t,r);r.internal_setPosition(s);var a=this._getViewFromDisibleViews(r.index);a.internal_visible(r),this._fixedViews.push(a);break}}}}_accumTargetSizeTowardsHeader(e,i){for(var t=this._groups.length;;){if(0==e&&this.loopHeader&&(e=t),0==e)return{index:e,size:i};if(e--,!this._groups[e])return{index:e,size:i};if((i+=this.internal_accumulationSize(e))>=0)return{index:e,size:i}}}_accumTargetSizeTowardsFooter(e,i){for(var t=this._groups.length;;){if(e==t-1&&this.loopFooter&&(e=-1),e==t-1)return{index:e,size:i};if(e++,!this._groups[e])return{index:e,size:i};if((i+=this.internal_accumulationSize(e))>=0)return{index:e,size:i}}}_fillFooterHandle(){this._checkHeaderInvisible(),this._fillFooter()}_fillHeaderHandle(){this._checkFooterInvisible(),this._fillHeader()}_forceFill(){this._updateHeaderFooterIndex(),this._fillHeaderHandle(),this._fillFooterHandle()}_updateHeaderFooterIndex(){this._headerIndex=this.header?this.header.index:0,this._footerIndex=this.footer?this.footer.index:0}_onScroll(e){if(0!=this._groups.length){switch(this._updateHeaderFooterIndex(),e){case u.Up:case u.Left:this.adapter.isArrangeAxisStart?this._fillFooterHandle():this._fillHeaderHandle();break;case u.Down:case u.Right:this.adapter.isArrangeAxisStart?this._fillHeaderHandle():this._fillFooterHandle()}this._fillFixedView(),this.emit(K.ON_SCROLL)}}_stretchToHeader(e,i){var t=this._visibleViews[e];for(let e=i;e>=0;e--){const i=this._visibleViews[e];t&&(this._calcMainAxisPosition(i.group,t.group,p.Header),this.adapter.layoutManager.layout(i.group)),t=i}}_stretchToFooter(e,i){var t=this._visibleViews[e];for(let e=i;e<this._visibleViews.length;e++){const i=this._visibleViews[e];t&&(this._calcMainAxisPosition(i.group,t.group,p.Footer),this.adapter.layoutManager.layout(i.group)),t=i}}_resetOverflowHeader(e){if(!e)return this.overflowHeader=0;var i=this.adapter.mainAxis,t=e.anchorPoint[i];t=1==this.adapter.multiplier?1-t:t;var r=e.position[i];r+=e.size[i]*t*this.adapter.multiplier,this.overflowHeader=r}_calcOverflowHeader(e,i,t){var r=this.getVisibleIndexByGroupIndex(0);if(-1!=r){var s=this._visibleViews[r];return this._resetOverflowHeader(s.group)}var a=this.adapter.mainAxis,n=e.anchorPoint[a];n=1==this.adapter.multiplier?1-n:n;var o=e.oldSize[a],h=e.size[a],l=this.adapter.multiplier;switch(this.stretchDirection){case d.Header:var p=e.oldPosition[a]+o*n*l;(u=1==l?this.overflowHeader>=p:this.overflowHeader<=p)&&(this.overflowHeader+=(h-o)*l);break;case d.Footer:p=e.oldPosition[a]+o*n*l;(u=1==l?this.overflowHeader>=p:this.overflowHeader<=p)||(this.overflowHeader-=(h-o)*l);break;case d.Center:p=e.oldPosition[a]+o*n*l;(u=1==l?this.overflowHeader>=p:this.overflowHeader<=p)?this.overflowHeader+=.5*(h-o)*l:this.overflowHeader-=.5*(h-o)*l;break;case d.Auto:p=e.oldPosition[a]+o*n*l;var u=1==l?this.overflowHeader>=p:this.overflowHeader<=p;i<=t&&(p=e.oldPosition[a]+o*n*l,u=-1==l?this.overflowHeader>=p:this.overflowHeader<=p),u&&(i<=t?this.overflowHeader-=(h-o)*l:this.overflowHeader+=(h-o)*l)}}internal_lateUpdate(e){this._isFill&&(this._isFill=!1,this._forceFill()),this.emit(K.ON_LATEUPDATE,e)}internal_viewChanged(e,i){var t=e.group.size[this.adapter.mainAxis]-i;this.virtualSize+=t;var r=this.getVisibleIndexByGroupIndex(e.index),s=-1;if(this.stretchDirection==d.Footer){let i=r-1;this._visibleViews[i]||this.adapter.layoutManager.layout(e.group),this._stretchToFooter(i,r)}else if(this.stretchDirection==d.Header){let i=r+1;this._visibleViews[i]||this.adapter.layoutManager.layout(e.group),this._stretchToHeader(i,r)}else if(this.stretchDirection==d.Center)this.adapter.layoutManager.layout(e.group),this._stretchToHeader(r,r-1),this._stretchToFooter(r,r+1);else{if(-1==(s=this.adapter.centerManager.getCenterVisibleIndex()))throw Error("找不到中心索引"+e.index);var a=this._visibleViews[s];this.adapter.layoutManager.layout(a.group),this._stretchToHeader(s,s-1),this._stretchToFooter(s,s+1)}this._calcOverflowHeader(e.group,s,r),this.magneticSizeChanges&&this._calcMagnetic(),this._isFill=!0,this.emit(K.ON_CHANGED_VIRTUALSIZE)}internal_getHolder(e){var i=this._getHolderFromDisableHolders(e);if(!i){var t=this.adapter.getPrefab(e.data),r=a(t);i=this.adapter.getHolder(r,e.code)}return i.node.parent=this.adapter.scrollManager.getLayerNode(e.element.layer),i}internal_updateVisibleView(e){this._onModelChangeBefore(),this._updateGroups(e)}internal_getGroupFooterBoundary(e){if(!e)return 0;var i=e.anchorPoint[this.adapter.mainAxis];i=1==this.adapter.multiplier?i:1-i;var t=e.position[this.adapter.mainAxis];return t-=e.size[this.adapter.mainAxis]*i*this.adapter.multiplier,t+=this.adapter.scrollManager.contentPosition}internal_getGroupHeaderBoundary(e){if(!e)return 0;var i=e.anchorPoint[this.adapter.mainAxis];return i=1==this.adapter.multiplier?1-i:i,e.position[this.adapter.mainAxis]+this.adapter.scrollManager.contentPosition+i*e.size[this.adapter.mainAxis]*this.adapter.multiplier}internal_getInitHeaderSize(e){if(!e)return 0;var i=e.anchorPoint[this.adapter.mainAxis];i=1==this.adapter.multiplier?1-i:i;var t=-e.position[this.adapter.mainAxis]*this.adapter.multiplier;return t-=e.size[this.adapter.mainAxis]*i,t-=this.adapter.scrollManager.contentPosition*this.adapter.multiplier,t=this.adapter.mainAxisSize-t}internal_getInitFooterSize(e){if(!e)return 0;var i=e.anchorPoint[this.adapter.mainAxis];i=1==this.adapter.multiplier?i:1-i;var t=-e.position[this.adapter.mainAxis]*this.adapter.multiplier;return t+=e.size[this.adapter.mainAxis]*i,t-=this.adapter.scrollManager.contentPosition*this.adapter.multiplier}internal_accumulationSize(e){var i=this._groups[e];return i?i.size[this.adapter.mainAxis]+this.spacing:0}internal_convertSizeToFooterPosition(e,i){var t=i.anchorPoint[this.adapter.mainAxis];t=1==this.adapter.multiplier?t:1-t;var r=i.size[this.adapter.mainAxis]*t,s=-this.adapter.scrollManager.contentPosition;return s-=this.adapter.multiplier*e-this.adapter.multiplier*r}internal_convertSizeToHeaderPosition(e,i){var t=i.anchorPoint[this.adapter.mainAxis];t=1==this.adapter.multiplier?1-t:t;var r=i.size[this.adapter.mainAxis]*t,s=this.adapter.multiplier*e-this.adapter.multiplier*r;return s-=this.adapter.multiplier*this.adapter.mainAxisSize,s-=this.adapter.scrollManager.contentPosition}getGroup(e){return this._groups[e]}getVisibleView(e){return this._visibleViews[e]}getVisibleMainAxisSize(){if(0==this._visibleViews.length)return 0;var e=0,i=this.adapter.mainAxis;for(let t=0,r=this._visibleViews.length;t<r;t++){const r=this._visibleViews[t];r.group&&(e+=r.group.size[i]+this.spacing)}return e-=this.spacing}getGroupIndexByModelIndex(e){for(let i=0,t=this._groups.length;i<t;i++){if(-1!=this._groups[i].findModelIndex(e))return i}return-1}getVisibleIndexByGroupIndex(e){return this._visibleViews.findIndex((i=>i.index==e))}getNextFixedHolders(e){var i=[];for(let t=this.getVisibleIndexByGroupIndex(e)+1,r=this._visibleViews.length;t<r;t++){const r=this._visibleViews[t];if(r.index!=e&&r.group.isFixed){i=r.getFixedHolders();break}}return i}getMagneticOffset(){if(!this.magnetic)return 0;var e=this.adapter.isHorizontal?-this.adapter.multiplier:this.adapter.multiplier;return this.magneticDirection==p.Footer?this.footer?Math.max(0,this.adapter.mainAxisSize-this.adapter.mainAxisPadding-this.getVisibleMainAxisSize())*e:this.adapter.mainAxisSize*e:0}}).Event=K,O=i((y=j).prototype,"_arrangeAxis",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l.Start}}),i(y.prototype,"arrangeAxis",[x],Object.getOwnPropertyDescriptor(y.prototype,"arrangeAxis"),y.prototype),M=i(y.prototype,"stretchDirection",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.Auto}}),P=i(y.prototype,"overflowOffset",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.3}}),D=i(y.prototype,"enterOffset",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),N=i(y.prototype,"_spacing",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(y.prototype,"spacing",[J],Object.getOwnPropertyDescriptor(y.prototype,"spacing"),y.prototype),T=i(y.prototype,"left",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),G=i(y.prototype,"right",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),L=i(y.prototype,"top",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),C=i(y.prototype,"bottom",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),R=i(y.prototype,"magnetic",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),B=i(y.prototype,"magneticDirection",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.Header}}),k=i(y.prototype,"magneticDuration",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),U=i(y.prototype,"magneticSizeChanges",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W=i(y.prototype,"loopHeader",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=i(y.prototype,"loopFooter",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=y))||I));r._RF.pop()}}}));

System.register("chunks:///_virtual/wait_renji.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UIButton.ts","./GBoardChess.ts"],(function(t){"use strict";var e,r,n,i,s,a,o,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.initializerDefineProperty},function(t){n=t.cclegacy,i=t.Node,s=t._decorator,a=t.Component},function(t){o=t.UIButton},function(t){c=t.default}],execute:function(){var u,l,p,_,d;n._RF.push({},"e551a/rR6ZOCIIiS5cOB62a","wait_renji",void 0);const{ccclass:f,property:b}=s;t("wait_renji",(u=f("wait_renji"),l=b(i),u((d=e((_=class extends a{constructor(...t){super(...t),r(this,"btn_re_start",d,this)}start(){o.BindClick(this.btn_re_start,(()=>{c.instance.restartGame()}),this)}update(t){}}).prototype,"btn_re_start",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=_))||p));n._RF.pop()}}}));

System.register("chunks:///_virtual/wait_tongqian.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts","./GBoardChess.ts","./waitView.ts"],(function(t){"use strict";var i,n,e,a,o,r,s,_,u,l,c,h,d,m,b,p;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){e=t.cclegacy,a=t.Node,o=t._decorator,r=t.Component,s=t.Label},function(t){_=t.ClientEvent},function(t){u=t.room_type,l=t.Constant},function(t){c=t.GameMng},function(t){h=t.UIButton},function(t){d=t.UIManager},function(t){m=t.msgManager},function(t){b=t.default},function(t){p=t.waitView}],execute:function(){var f,g,y,v,R,w,E,M,G,C,N,T,I,z,D,V,A,P,S;e._RF.push({},"20e36/au6tHL5capA2xe8qK","wait_tongqian",void 0);const{ccclass:H,property:L}=o;t("wait_tongqian",(f=H("wait_tongqian"),g=L(a),y=L(a),v=L(a),R=L(a),w=L(a),E=L(a),M=L(a),G=L(a),f((T=i((N=class extends r{constructor(...t){super(...t),n(this,"lab_menpiao",T,this),n(this,"lab_duzhu",I,this),n(this,"btn_start",z,this),n(this,"onReady",D,this),n(this,"onReady_2",V,this),n(this,"btn_start_2",A,this),n(this,"node_newRound",P,this),n(this,"node_initRound",S,this)}start(){if(null!=c._userData.room){let t=this;c._userData.room.game_number>1?(this.node_newRound.active=!0,this.node_initRound.active=!1):(this.node_newRound.active=!1,this.node_initRound.active=!0),c._userData.room.roomtype===u._chuji_tongqian?(this.lab_menpiao.getComponent(s).string="对局门票: 1000",this.lab_duzhu.getComponent(s).string="单局输赢: 5000"):c._userData.room.roomtype===u._zhongji_tongqian&&(this.lab_menpiao.getComponent(s).string="对局门票: 3000",this.lab_duzhu.getComponent(s).string="单局输赢: 20000"),h.BindClick(this.btn_start,(function(){t.ready()}),this),h.BindClick(this.btn_start_2,(()=>{t.ready()}),this)}_.on(l.EVENT_TYPE.MSG_OPEN_MATCHING_5_10_20,this.openRoom,this),_.on(l.EVENT_TYPE.MSG_FIND_MATCHING_5_10_20,this.findRoom,this),_.on(l.EVENT_TYPE.MSG_CANCEL_MATCHING_5_10_20,this.cancelMatching,this),_.on(l.UI_EVENT.UI_MSG_5_10_20_ready,this.ready,this)}onDestroy(){_.off(l.EVENT_TYPE.MSG_OPEN_MATCHING_5_10_20,this.openRoom,this),_.off(l.EVENT_TYPE.MSG_CANCEL_MATCHING_5_10_20,this.cancelMatching,this),_.off(l.EVENT_TYPE.MSG_FIND_MATCHING_5_10_20,this.findRoom,this),_.off(l.UI_EVENT.UI_MSG_5_10_20_ready,this.ready,this)}ready(){p.Show("正在匹配！"),b.instance.hideAllChess(),m.open_matching_5_10_20()}cancelMatching(){d.removeWaitViewLayer()}findRoom(t){d.removeWaitViewLayer(),c.updateRoomData(t),console.log("findRoom",t)}openRoom(t){this.onReady.active=!0,this.btn_start.active=!1,d.removeWaitViewLayer(),c.updateRoomData(t),console.log("findRoom",t)}recvReady(t){console.log("fuck!",t),c._userData.room.game_number>1?3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start_2.active=!1,this.onReady_2.active=!0):(this.btn_start_2.active=!0,this.onReady_2.active=!1):3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start.active=!1,this.onReady.active=!0):(this.btn_start.active=!0,this.onReady.active=!1)}recvAgainRound(t){null!=t&&(this.node_newRound.active=!0,this.node_initRound.active=!1,3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start_2.active=!1,this.onReady_2.active=!0):(this.btn_start_2.active=!0,this.onReady_2.active=!1))}}).prototype,"lab_menpiao",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=i(N.prototype,"lab_duzhu",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=i(N.prototype,"btn_start",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=i(N.prototype,"onReady",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=i(N.prototype,"onReady_2",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=i(N.prototype,"btn_start_2",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=i(N.prototype,"node_newRound",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=i(N.prototype,"node_initRound",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=N))||C));e._RF.pop()}}}));

System.register("chunks:///_virtual/waitFirend.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./UILoading.ts","./UIManager.ts","./msgManager.ts","./Tools.ts","./ChessMng.ts"],(function(t){"use strict";var i,e,n,a,o,r,s,u,l,_,c,b,d,h,m,y,p,f;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,o=t._decorator,r=t.Component,s=t.Label},function(t){u=t.ClientEvent},function(t){l=t.room_type,_=t.Constant},function(t){c=t.GameMng},function(t){b=t.UIButton},function(t){d=t.default},function(t){h=t.UIManager},function(t){m=t.msgManager},function(t){y=t.Tools},function(t){p=t.default,f=t.ChessType}],execute:function(){var g,v,w,R,D,z,C,G,I,j,M,B,U,q,E,F,L,k,P,T,S,A,N,x,V,H,J,K,O,Q,W;n._RF.push({},"893aaL1SPBBLoJGIGwpLM/z","waitFirend",void 0);const{ccclass:X,property:Y}=o;t("waitFirend",(g=X("waitFirend"),v=Y(a),w=Y(a),R=Y(a),D=Y(a),z=Y(a),C=Y(a),G=Y(a),I=Y(a),j=Y(a),M=Y(a),B=Y(a),U=Y(a),q=Y(a),E=Y(a),g((k=i((L=class extends r{constructor(...t){super(...t),e(this,"lab_dumiao",k,this),e(this,"lab_jushu",P,this),e(this,"lab_bushu",T,this),e(this,"lab_meibujiashi",S,this),e(this,"btn_start",A,this),e(this,"btn_start_2",N,this),e(this,"btn_yaoqing",x,this),e(this,"btn_yaoqing_2",V,this),e(this,"onReady",H,this),e(this,"onReady_2",J,this),e(this,"lab_roomid",K,this),e(this,"lab_new_roomid",O,this),e(this,"node_newRound",Q,this),e(this,"node_initRound",W,this)}start(){p.Instance.chesstype===f.renjiboyi||null!=c._userData.room&&(c._userData.room.game_number>1?(this.node_newRound.active=!0,this.node_initRound.active=!1):(this.node_newRound.active=!1,this.node_initRound.active=!0)),this.lab_meibujiashi.active=!1,this.lab_dumiao.active=!1,this.lab_roomid.getComponent(s).string="象棋";let t=this;null!=c._userData.room&&(this.lab_jushu.getComponent(s).string="局时："+y.time(c._userData.room.totaltime),this.lab_bushu.getComponent(s).string="步时："+y.time(c._userData.room.everysteptime),c._userData.room.roomtype===l._jing_dian_hao_you&&c._userData.room.countdown>0&&(this.lab_dumiao.active=!0,this.lab_dumiao.getComponent(s).string="读秒："+y.time(c._userData.room.countdown)),c._userData.room.roomtype===l._mei_miao_die_jia_hao_you&&c._userData.room.everystepaddtime>0&&(this.lab_meibujiashi.active=!0,this.lab_meibujiashi.getComponent(s).string="每步加时："+y.time(c._userData.room.everystepaddtime)),3!=c._userData.room.wait_rival_startGame_status&&1!=c._userData.room.wait_rival_startGame_status||(this.btn_start.active=!1,this.onReady.active=!0),b.BindClick(this.btn_start,(function(){t.sendReady(t.btn_start)}),this),b.BindClick(this.btn_start_2,(function(){t.sendReady(t.btn_start_2)}),this),b.BindClick(this.btn_yaoqing,(function(){h.AddPrefab(c.Instance.invite_firend_view)}),this),b.BindClick(this.btn_yaoqing_2,(function(){h.AddPrefab(c.Instance.invite_firend_view)}),this),this.lab_roomid.getComponent(s).string="象棋【"+c._userData.room.roomid+"】",this.lab_new_roomid.getComponent(s).string="象棋【"+c._userData.room.roomid+"】"),u.on(_.UI_EVENT.UI_MSG_ready,this.sendReady,this)}sendReady(t=null){t&&(t.active=!1),d.deley_show(2),m.ready()}onDestroy(){u.off(_.UI_EVENT.UI_MSG_ready,this.sendReady,this)}recvReady(t){console.log("recvReady",t.wait_rival_startGame_status),p.Instance.chesstype===f.renjiboyi||(c._userData.room.game_number>1?3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start_2.active=!1,this.onReady_2.active=!0):(this.btn_start_2.active=!0,this.onReady_2.active=!1):3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start.active=!1,this.onReady.active=!0):(this.btn_start.active=!0,this.onReady.active=!1))}recvAgainRound(t){null!=t&&(this.node_newRound.active=!0,this.node_initRound.active=!1,3!=t.wait_rival_startGame_status&&1!=t.wait_rival_startGame_status||(this.btn_start_2.active=!1,this.onReady_2.active=!0))}setData(){}update(t){}}).prototype,"lab_dumiao",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=i(L.prototype,"lab_jushu",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=i(L.prototype,"lab_bushu",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=i(L.prototype,"lab_meibujiashi",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=i(L.prototype,"btn_start",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=i(L.prototype,"btn_start_2",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=i(L.prototype,"btn_yaoqing",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=i(L.prototype,"btn_yaoqing_2",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=i(L.prototype,"onReady",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=i(L.prototype,"onReady_2",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=i(L.prototype,"lab_roomid",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=i(L.prototype,"lab_new_roomid",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=i(L.prototype,"node_newRound",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=i(L.prototype,"node_initRound",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=L))||F));n._RF.pop()}}}));

System.register("chunks:///_virtual/waitJifen.ts",["./rollupPluginModLoBabelHelpers.js","cc","./clientEvent.ts","./constant.ts","./GameMng.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts","./Tools.ts","./GBoardChess.ts","./waitView.ts"],(function(t){"use strict";var i,n,e,a,o,s,r,_,u,l,c,h,b,d,m,f;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){e=t.cclegacy,a=t.Node,o=t._decorator,s=t.Component,r=t.Label},function(t){_=t.ClientEvent},function(t){u=t.Constant},function(t){l=t.GameMng},function(t){c=t.UIButton},function(t){h=t.UIManager},function(t){b=t.msgManager},function(t){d=t.Tools},function(t){m=t.default},function(t){f=t.waitView}],execute:function(){var p,g,v,y,R,w,E,C,M,G,N,T,z,I,A,D,V,S,P,B,H,L,U,j,k;e._RF.push({},"ed1e5+OuaNCm7CdWMHLqndp","waitJifen",void 0);const{ccclass:Y,property:F}=o;t("waitJifen",(p=Y("waitJifen"),g=F(a),v=F(a),y=F(a),R=F(a),w=F(a),E=F(a),C=F(a),M=F(a),G=F(a),N=F(a),T=F(a),p((A=i((I=class extends s{constructor(...t){super(...t),n(this,"lab_jushu",A,this),n(this,"lab_bushu",D,this),n(this,"lab_meibujiashi",V,this),n(this,"btn_start",S,this),n(this,"btn_huanzhuo",P,this),n(this,"btn_huanzhuo_2",B,this),n(this,"onReady",H,this),n(this,"onReady_2",L,this),n(this,"btn_start_2",U,this),n(this,"node_newRound",j,this),n(this,"node_initRound",k,this)}start(){if(null!=l._userData.room){let t=this;l._userData.room.game_number>1?(this.node_newRound.active=!0,this.node_initRound.active=!1):(this.node_newRound.active=!1,this.node_initRound.active=!0),this.lab_jushu.getComponent(r).string="局时："+d.time(l._userData.room.totaltime),this.lab_bushu.getComponent(r).string="步时："+d.time(l._userData.room.everysteptime)+"前3步=30秒",this.lab_meibujiashi.getComponent(r).string="局时用完判胜负",c.BindClick(this.btn_start,(function(){t.ready()}),this),c.BindClick(this.btn_huanzhuo,(function(){f.Show("寻找对局！",(()=>{b.cancel_matching_5_10_20()})),m.instance.hideAllChess(),b.find_matching_5_10_20()}),this),c.BindClick(this.btn_huanzhuo_2,(function(){f.Show("寻找对局！",(()=>{b.cancel_matching_5_10_20()})),m.instance.hideAllChess(),b.find_matching_5_10_20()}),this),c.BindClick(this.btn_start_2,(()=>{t.onReady_2.active=!0,t.btn_start_2.active=!1,m.instance.hideAllChess(),b.open_matching_5_10_20()}),this)}_.on(u.EVENT_TYPE.MSG_OPEN_MATCHING_5_10_20,this.openRoom,this),_.on(u.EVENT_TYPE.MSG_FIND_MATCHING_5_10_20,this.findRoom,this),_.on(u.EVENT_TYPE.MSG_CANCEL_MATCHING_5_10_20,this.cancelMatching,this),_.on(u.UI_EVENT.UI_MSG_5_10_20_ready,this.ready,this)}onDestroy(){_.off(u.EVENT_TYPE.MSG_OPEN_MATCHING_5_10_20,this.openRoom,this),_.off(u.EVENT_TYPE.MSG_CANCEL_MATCHING_5_10_20,this.cancelMatching,this),_.off(u.EVENT_TYPE.MSG_FIND_MATCHING_5_10_20,this.findRoom,this),_.off(u.UI_EVENT.UI_MSG_5_10_20_ready,this.ready,this)}ready(){this.btn_start.active=!1,m.instance.hideAllChess(),b.open_matching_5_10_20()}cancelMatching(){h.removeWaitViewLayer()}findRoom(t){h.removeWaitViewLayer(),l.updateRoomData(t),console.log("findRoom",t)}openRoom(t){this.onReady.active=!0,this.btn_start.active=!1,h.removeWaitViewLayer(),l.updateRoomData(t),console.log("findRoom",t)}recvReady(t){console.log("fuck!",t),l._userData.room.game_number>1?3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start_2.active=!1,this.onReady_2.active=!0):(this.btn_start_2.active=!0,this.onReady_2.active=!1):3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start.active=!1,this.onReady.active=!0):(this.btn_start.active=!0,this.onReady.active=!1)}recvAgainRound(t){null!=t&&(this.node_newRound.active=!0,this.node_initRound.active=!1,3==t.wait_rival_startGame_status||1==t.wait_rival_startGame_status?(this.btn_start_2.active=!1,this.onReady_2.active=!0):(this.btn_start_2.active=!0,this.onReady_2.active=!1))}update(t){}}).prototype,"lab_jushu",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=i(I.prototype,"lab_bushu",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=i(I.prototype,"lab_meibujiashi",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=i(I.prototype,"btn_start",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=i(I.prototype,"btn_huanzhuo",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(I.prototype,"btn_huanzhuo_2",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=i(I.prototype,"onReady",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=i(I.prototype,"onReady_2",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=i(I.prototype,"btn_start_2",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=i(I.prototype,"node_newRound",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(I.prototype,"node_initRound",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=I))||z));e._RF.pop()}}}));

System.register("chunks:///_virtual/waitView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./UIManager.ts"],(function(t){"use strict";var e,i,n,a,l,s,c,r,o,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Label,l=t.Node,s=t._decorator},function(t){c=t.GameMng},function(t){r=t.default},function(t){o=t.UIButton},function(t){u=t.UIManager}],execute:function(){var d,_,g,p,h,b,f,w,y,m,B,I;n._RF.push({},"210caZxipNM/ayqaKqBRKGr","waitView",void 0);const{ccclass:M,property:z}=s;t("waitView",(d=M("waitView"),_=z(a),g=z(l),p=z(l),h=z(l),d(((I=class t extends r{constructor(...t){super(...t),i(this,"lab_des",w,this),i(this,"btn_cancel",y,this),i(this,"lab_loading",m,this),i(this,"sp_loading",B,this),this.status_string=["。","。。","。。。"],this.status_count=0,this.time_count=0}start(){o.BindClick(this.btn_cancel,(()=>{t._cancel_call&&t._cancel_call()}),this),this.schedule(this.dt,.01)}onDestroy(){this.unschedule(this.dt)}static Show(e,i=null){t.dialog_des=e,t._cancel_call=i,u.AddPrefab(c.Instance.uiWaitView)}dt(){this.sp_loading.angle=this.sp_loading.angle+2}update(e){t.dialog_des&&(this.lab_des.getComponent(a).string=t.dialog_des,t.dialog_des=null)}}).dialog_des=null,I._cancel_call=!1,w=e((f=I).prototype,"lab_des",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(f.prototype,"btn_cancel",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=e(f.prototype,"lab_loading",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(f.prototype,"sp_loading",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=f))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/wearData.ts",["cc"],(function(t){"use strict";var a,i;return{setters:[function(t){a=t.cclegacy,i=t._decorator}],execute:function(){var r;a._RF.push({},"18e87kncWpNdbEp6P50t3ZQ","wearData",void 0);const{ccclass:c,property:e}=i;t("wearData",c("wearData")(r=class{constructor(){this.avatar_id="4000",this.timer_id="5000",this.bubble_id="6000",this.qipan_id="2000",this.qizi_id="3000"}})||r);a._RF.pop()}}}));

System.register("chunks:///_virtual/WeixinPlatfrom.ts",["cc","./BasePlatform.ts"],(function(e){"use strict";var o,t;return{setters:[function(e){o=e.cclegacy},function(e){t=e.BasePlatform}],execute:function(){o._RF.push({},"9e30c5GvYVLHYGD2NYc+pI9","WeixinPlatfrom",void 0);const s=window.wx;class a extends t{constructor(...e){super(...e),this.CustomAd=null}init(){s.showShareMenu({withShareTicket:!1,menus:["shareAppMessage","shareTimeline"]})}initAd(){this.preloadVideoAd(),this.preloadPageAd(),this.preloadCustomAd(),this.preloadBanner()}preloadBanner(){let e=s.getSystemInfoSync();this.bannerAd&&(this.bannerAd.destroy(),this.bannerAd=null),this.bannerAd=s.createBannerAd({adUnitId:"adunit-d76fbf8ce99c082c",adIntervals:30,style:{left:e.screenWidth/2-150,top:e.screenHeight-104,width:300}}),this.bannerAd.onError((e=>{console.log(e)}))}showBannerAD(){this.bannerAd?this.bannerAd.show():this.preloadBanner()}hideBannerAD(){this.bannerAd&&this.bannerAd.hide();let e=new Date;e.getTime()-this.bannerdisTime>this.bannerrefreshTime&&(this.bannerdisTime=e.getTime(),this.preloadBanner())}preloadCustomAd(){this.CustomAd=s.createCustomAd({adUnitId:"adunit-6a2e548124d12e3c",adIntervals:30,style:{left:15,top:50,fixed:!1}}),this.CustomAd.onError((e=>{console.log(e),this.CustomAd=null}))}showCustomAd(){s.createCustomAd&&(this.CustomAd?this.CustomAd.show().catch((e=>{console.log(e),a.Instance.preloadCustomAd()})):this.preloadCustomAd())}hiddenCustomAd(){s.createCustomAd&&this.CustomAd&&this.CustomAd.isShow()&&this.CustomAd.hide()}preloadPageAd(){this.pagead=s.createInterstitialAd({adUnitId:"adunit-5902ce873b2b89b6"}),this.pagead.load(),this.pagead.onClose((e=>{a.Instance.closePageAd()}))}showPageAd(e,o,t){console.log("展示插屏"),this.pagead?this.pagead.show().catch((e=>{console.log(e),o&&o()})):o&&o()}closePageAd(){console.log("关闭插屏"),this.pagead&&this.pagead.destroy(),this.pagead=null,this.preloadPageAd()}preloadVideoAd(){let e=this;this.rewardedVideoAd=s.createRewardedVideoAd({adUnitId:"adunit-665b09c03e7629ad"}),this.rewardedVideoAd.onLoad((()=>{console.log("激励视频 广告加载成功"),e.videoloaded=!0})),this.rewardedVideoAd.onClose(this.closeVideoAd),this.rewardedVideoAd.onError((e=>{console.log(e)}))}closeVideoAd(e){let o=a.Instance;o.videoloaded=!1,o.videoSucCall&&(o.videoSucCall(e),o.videoSucCall=null)}showVideoAd(e,o,t){console.log("wx"),this.videoSucCall=e;let s=this.rewardedVideoAd;this.videoloaded?s.show().catch((e=>{console.log(e),o&&o()})):s.load().then((()=>{s.show().catch((e=>{console.log(e),o&&o()}))})).catch((e=>{console.log(e),o&&o()}))}postMessage(e){s.getOpenDataContext().postMessage(e)}setUserCloudStorage(e){s.setUserCloudStorage(e)}showPlatformMsg(){let e=this;this.showModal({title:"提示",content:"分享失败，请分享到30人群",confirmText:"去分享",success(o){o.confirm?(console.log("用户点击确定"),e.share(this.shareobj,null,null)):o.cancel&&console.log("用户点击取消")}})}showModal(e){s.showModal(e)}share(e,o,t){let a=e;null==a&&(a=this.shareobj),s.shareAppMessage(a)}CloudServer_Login(e,o){s.cloud.callFunction({name:"login",success:o=>{console.log("wxCloudServer_Login"),e&&e(o)},fail:e=>{console.log("wxCloudServer_LoginErr",e),o&&o()}})}CloudServer_uploadScore(e,o){s.cloud.callFunction({name:"uploadScore",data:{userData:e,rankkey:o},success:e=>{console.log("wxCloudServer_uploadScore"),console.log(e)},fail:e=>{console.log("wxCloudServer_uploadScoreErr",e)}})}CloudServer_querRank(e,o,t){s.cloud.callFunction({name:"querRank",data:{rankkey:e},success:e=>{console.log("wxCloudServer_querRank"),console.log(e);let t=[];if(e.result&&e.result.data)for(let o=0;o<e.result.data.length;o++){var s=e.result.data[o];let a=0;s.userData&&s.userData.rankScore&&(a=s.userData.rankScore);let n={rankScore:a,avatarUrl:s.userData.avatarUrl?s.userData.avatarUrl:"openDataContext/render/avatar.png",nickname:s.userData.nickname?s.userData.nickname:"游客",gid:s.userData.openid?s.userData.openid:""};t.push(n)}o&&o(t)},fail:e=>{console.log("wxCloudServer_querRankErr",e),t&&t()}})}getuserinfo(e,o){return new Promise(((t,a)=>{s.getSetting({success(a){if(a.authSetting["scope.userInfo"])s.getUserInfo({success(o){t(o.userInfo),e&&e(o.userInfo)}});else if(s.createUserInfoButton){console.log("wx.createUserInfoButton");let o=s.getSystemInfoSync(),a=o.screenWidth,n=o.screenHeight;const r=s.createUserInfoButton({type:"text",text:"",style:{left:0,top:0,width:a,height:n}});r.onTap((o=>{r.destroy(),t(o.userInfo),e&&e(o.userInfo)}))}else s.getUserInfo({success(o){t(o.userInfo),e&&e(o.userInfo)},fail(e){t(null),o&&o()}})},fail(){t(null),o&&o()}})}))}}e("WeixinPlatfrom",a),a.wxOpenid="",o._RF.pop()}}}));

System.register("chunks:///_virtual/welfare_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./GameMng.ts"],(function(e){"use strict";var t,i,o,s,a,n,r,l,h,d,c,u,g,f,w;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){o=e.cclegacy,s=e.Prefab,a=e.UITransform,n=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){d=e.Holder},function(e){c=e.ScrollAdapter},function(e){u=e.View},function(e){g=e.ReleaseState},function(e){f=e.ReleaseManager},function(e){w=e.GameMng}],execute:function(){var _,p,b,P,T,m,v,y,M,H,F,A,O;o._RF.push({},"81948gpVkJHPbIVvwDyTfAl","welfare_manager",void 0);const{ccclass:S,property:z}=r;e("welfare_manager",(_=S("daoju_shop_view"),p=z(s),b=z(a),P=z(n),T=z(a),m=z(n),_((M=t((y=class extends c{constructor(...e){super(...e),i(this,"invite_Prefab",M,this),i(this,"header",H,this),i(this,"loading",F,this),i(this,"foot",A,this),i(this,"foot_loading",O,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1}start(){this.initView()}initView(){this.releaseManager.on(f.Event.ON_PULL_UP,this.onPullUp,this),this.releaseManager.on(f.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever();var e=w.getWelfareList();this.modelManager.insert(e,0),this.scrollManager.scrollToHeader(0)}async onPullUp(e){if(e.state==g.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==g.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var o=new h;o.set(this.foot_loading.color),o.a=255*Math.min(i,1),this.foot_loading.color=o}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==g.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.scrollToHeader(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==g.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}getPrefab(e){return this.invite_Prefab}getHolder(e,t){return new D(e,t,this)}getView(){return new L(this)}initElement(e,t){}scrollToHeader(){this.scrollManager.scrollToHeader(1)}}).prototype,"invite_Prefab",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(y.prototype,"header",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(y.prototype,"loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=t(y.prototype,"foot",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(y.prototype,"foot_loading",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=y))||v));class L extends u{onVisible(){}onDisable(){}}class D extends d{onCreated(){}onVisible(){}onDisable(){}}o._RF.pop()}}}));

System.register("chunks:///_virtual/welfare_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GBaseUI.ts","./UIButton.ts"],(function(e){"use strict";var t,i,r,n,l,o,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){r=e.cclegacy,n=e.Node,l=e._decorator},function(e){o=e.default},function(e){s=e.UIButton}],execute:function(){var c,u,a,f,p,_,d;r._RF.push({},"af07de84T5HAJCg4mBDN2bD","welfare_view",void 0);const{ccclass:b,property:w}=l;e("welfare_view",(c=b("welfare_view"),u=w(n),a=w(n),c((_=t((p=class extends o{constructor(...e){super(...e),i(this,"btn_close",_,this),i(this,"node_select_fuli",d,this)}start(){s.BindClick(this.btn_close,(()=>{this.closeUI()}),this)}update(e){}}).prototype,"btn_close",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(p.prototype,"node_select_fuli",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=p))||f));r._RF.pop()}}}));

System.register("chunks:///_virtual/welfareData.ts",["cc"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.cclegacy,r=t._decorator}],execute:function(){var s;e._RF.push({},"1077aRTrfVCjI7SsjqW7shq","welfareData",void 0);const{ccclass:a,property:c}=r;t("welfareData",a("welfareData")(s=class{constructor(){this.title="",this.description="",this.time=""}})||s);e._RF.pop()}}}));

System.register("chunks:///_virtual/wode_view_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,r,i,n,o,a,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Prefab,o=e._decorator,a=e.Component,s=e.instantiate}],execute:function(){var c,u,l,d,p;i._RF.push({},"abce6qAbJRAIb5FRsVKpbOL","wode_view_manager",void 0);const{ccclass:w,property:_}=o;e("wode_view_manager",(c=w("wode_view_manager"),u=_(n),c((p=t((d=class extends a{constructor(...e){super(...e),r(this,"wode_view",p,this)}start(){this.node.addChild(s(this.wode_view))}update(e){}}).prototype,"wode_view",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=d))||l));i._RF.pop()}}}));

System.register("chunks:///_virtual/xiaqi_view_manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Holder.ts","./ScrollAdapter.ts","./View.ts","./enum.ts","./ReleaseManager.ts","./clientEvent.ts","./xinxiDataConfig.ts","./constant.ts","./msgManager.ts","./xiaqi_view_page.ts"],(function(e){"use strict";var t,i,s,o,n,a,r,l,h,_,d,u,c,g,f,w,p,m,T;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){s=e.cclegacy,o=e.Prefab,n=e.UITransform,a=e.Sprite,r=e._decorator,l=e.Tween,h=e.Color},function(e){_=e.Holder},function(e){d=e.ScrollAdapter},function(e){u=e.View},function(e){c=e.ReleaseState},function(e){g=e.ReleaseManager},function(e){f=e.ClientEvent},function(e){w=e.default},function(e){p=e.Constant},function(e){m=e.msgManager},function(e){T=e.xiaqi_view_page}],execute:function(){var v,b,y,E,I,P,M,S,L,x,F,O,N;s._RF.push({},"ac1f9n7wh9Nz5wX/BVZ8G3v","xiaqi_view_manager",void 0);const{ccclass:D,property:H}=r;e("xiaqi_view_manager",(v=D("xiaqi_view_manager"),b=H(o),y=H(n),E=H(a),I=H(n),P=H(a),v((L=t((S=class extends d{constructor(...e){super(...e),i(this,"shopPrefab",L,this),i(this,"header",x,this),i(this,"loading",F,this),i(this,"foot",O,this),i(this,"foot_loading",N,this),this._headerTween=void 0,this._loadTween=void 0,this._footTween=void 0,this._loadFootTween=void 0,this._isHeaderPlay=!1,this._isFootPlay=!1,this.list_data=[],this.cur_select_id=""}start(){this.initView(),f.on(p.UI_EVENT.UI_MSG_SHOW_LOGIN,this.quit_login,this),f.on(p.UI_EVENT.UI_MSG_UPDATE_ONLINE_FIREND_LIST,this.update_onLine_firend_list,this)}onDestroy(){f.off(p.UI_EVENT.UI_MSG_SHOW_LOGIN,this.quit_login,this),f.off(p.UI_EVENT.UI_MSG_UPDATE_ONLINE_FIREND_LIST,this.update_onLine_firend_list,this)}update_onLine_firend_list(){this.updateview()}quit_login(){this.list_data=[]}initView(){this.releaseManager.on(g.Event.ON_PULL_DOWN,this.onPullDown,this),this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadTween=new l(this.loading.node).by(1,{angle:-360}).union().repeatForever(),this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._loadFootTween=new l(this.foot_loading.node).by(1,{angle:-360}).union().repeatForever()}updateview(){this.list_data=w.Instance.getItems(),1===this.modelManager.modelList.length||this.scrollManager.scrollToHeader(0),this.modelManager.clear();var e=[];e.push(this.list_data),this.modelManager.insert(e,0),console.log("更新一次列表")}onEnable(){this.list_data.length<=0&&m.get_online_firend_list()}async onPullUp(e){if(e.state==c.RELEASE&&this._isFootPlay){this._loadFootTween.start(),e.wait();var t=await this.loadMore();this.modelManager.insert(t,0),this.scheduleOnce((()=>{e.release()})),this._loadFootTween.stop()}var i=e.progress;if(e.state==c.WAIT&&(i=.8),i>=.8)this._isFootPlay||(this._footTween=new l(this.foot).to(.518,{height:this.releaseManager.bottom*this.mainAxisSize},{easing:"elasticOut"}),this._footTween.start(),this._isFootPlay=!0);else{this._footTween.stop(),this._isFootPlay=!1,this.foot.height=e.offset;var s=new h;s.set(this.foot_loading.color),s.a=255*Math.min(i,1),this.foot_loading.color=s}this.foot_loading.node.angle=-360*e.progress}async onPullDown(e){if(e.state==c.RELEASE&&this._isHeaderPlay){this._loadTween.start(),e.wait();await this.reLoad();this.updateview(),this.scheduleOnce((()=>{e.release()})),this._loadTween.stop()}var t=e.progress;if(e.state==c.WAIT&&(t=.8),t>=.8)this._isHeaderPlay||(this._headerTween=new l(this.header).to(.518,{height:this.releaseManager.top*this.mainAxisSize},{easing:"elasticOut"}),this._headerTween.start(),this._isHeaderPlay=!0);else{this._headerTween.stop(),this._isHeaderPlay=!1,this.header.height=e.offset;var i=new h;i.set(this.loading.color),i.a=255*Math.min(t,1),this.loading.color=i}this.loading.node.angle=-360*e.progress}reLoad(){return new Promise(((e,t)=>{var i=[];this.scheduleOnce((()=>{e(i)}),1)}))}loadMore(){return new Promise(((e,t)=>{this.scheduleOnce((()=>{e([])}),0)}))}scrollToHeader(){this.scrollManager.scrollToFooter(1)}getPrefab(e){return this.shopPrefab}getHolder(e,t){return new A(e,t,this)}getView(){return new U(this)}initElement(e,t){}}).prototype,"shopPrefab",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(S.prototype,"header",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(S.prototype,"loading",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=t(S.prototype,"foot",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(S.prototype,"foot_loading",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=S))||M));class U extends u{onVisible(){}onDisable(){}}class A extends _{constructor(...e){super(...e),this._shopItem=null}onCreated(){this._shopItem=this.node.getComponent(T)}onVisible(){this._shopItem.show(this.data)}onDisable(){this._shopItem.hide()}}s._RF.pop()}}}));

System.register("chunks:///_virtual/xiaqi_view_page.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./xiaqi_xinxi_firend_item.ts"],(function(e){"use strict";var i,t,n,a,r,o,s,c,p,u;return{setters:[function(e){i=e.applyDecoratedDescriptor,t=e.initializerDefineProperty},function(e){n=e.cclegacy,a=e.Node,r=e.Prefab,o=e._decorator,s=e.Component,c=e.instantiate},function(e){p=e.xiaoxi_item_type},function(e){u=e.xiaqi_xinxi_firend_item}],execute:function(){var l,_,f,h,d,b,g,v,w,x,y;n._RF.push({},"ebee8BdgbBGR6e+NmLDsMJ1","xiaqi_view_page",void 0);const{ccclass:m,property:j}=o;e("xiaqi_view_page",(l=m("xiaqi_view_page"),_=j(a),f=j(r),h=j(r),d=j(r),l((v=i((g=class extends s{constructor(...e){super(...e),t(this,"page_view",v,this),t(this,"firend_pf",w,this),t(this,"video_pf",x,this),t(this,"canju_pf",y,this)}start(){}update(e){}show(e){this.page_view.removeAllChildren();for(let t=0;t<e.length;t++){const n=e[t];var i=null;switch(n.type){case p.haoyou:(i=c(this.firend_pf)).getComponent(u).show(n);break;case p.shipin:i=c(this.video_pf);break;case p.canju:i=c(this.canju_pf)}if(i)switch(this.page_view.addChild(i),n.type){case p.haoyou:case p.shipin:case p.canju:}}}hide(){}}).prototype,"page_view",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=i(g.prototype,"firend_pf",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=i(g.prototype,"video_pf",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=i(g.prototype,"canju_pf",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=g))||b));n._RF.pop()}}}));

System.register("chunks:///_virtual/xiaqi_xinxi_firend_item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./UIButton.ts","./msgManager.ts","./Tools.ts","./yue_zhan_view.ts"],(function(t){"use strict";var i,e,n,a,s,r,o,u,_,l,h,c,p,b;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,s=t.SpriteFrame,r=t._decorator,o=t.Component,u=t.Sprite,_=t.Label},function(t){l=t.xiaoxi_haoyou_status_type},function(t){h=t.UIButton},function(t){c=t.msgManager},function(t){p=t.Tools},function(t){b=t.yue_zhan_view}],execute:function(){var d,m,g,f,x,y,j,v,w,z,q,C,k,F,B;n._RF.push({},"fd148EZoPtDTZQvHjvVlQ01","xiaqi_xinxi_firend_item",void 0);const{ccclass:D,property:H}=r;t("xiaqi_xinxi_firend_item",(d=D("xiaqi_xinxi_firend_item"),m=H(a),g=H(a),f=H(a),x=H(a),y=H(s),j=H(s),d((z=i((w=class extends o{constructor(...t){super(...t),e(this,"img_head",z,this),e(this,"lab_name",q,this),e(this,"lab_status",C,this),e(this,"btn_jiaohu",k,this),e(this,"sp_btn_add",F,this),e(this,"sp_btn_yue",B,this),this._xiaqi=null}start(){}show(t){h.BindClick(this.btn_jiaohu,(()=>{this._xiaqi&&(this._xiaqi.status_type===l.deng_dai_kai_ju?c.user_join_room(t.id):this._xiaqi.status_type===l.xian_guang&&b.show(t))}),this),this.btn_jiaohu.active=!1,this._xiaqi=t,p.loadWeiXinHead(t.user_avatar,this.img_head.getComponent(u)),this.lab_name.getComponent(_).string=t.name;let i="闲逛";switch(t.status_type){case l.deng_dai_kai_ju:this.btn_jiaohu.active=!0,this.btn_jiaohu.getComponent(u).spriteFrame=this.sp_btn_add,i="等待对局";break;case l.xian_guang:this.btn_jiaohu.active=!0,this.btn_jiaohu.getComponent(u).spriteFrame=this.sp_btn_yue,i="闲逛";break;case l.dui_zhan:this.btn_jiaohu.active=!1,i="正在对战"}this.lab_status.getComponent(_).string=i}update(t){}}).prototype,"img_head",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=i(w.prototype,"lab_name",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(w.prototype,"lab_status",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(w.prototype,"btn_jiaohu",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=i(w.prototype,"sp_btn_add",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(w.prototype,"sp_btn_yue",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=w))||v));n._RF.pop()}}}));

System.register("chunks:///_virtual/xinxiDataConfig.ts",["cc","./constant.ts","./GameMng.ts","./Tools.ts"],(function(t){"use strict";var e,s,n,i,a,u;return{setters:[function(t){e=t.cclegacy,s=t._decorator},function(t){n=t.xiaoxi_haoyou_status_type,i=t.xiaoxi_item_type},function(t){a=t.GameMng},function(t){u=t.Tools}],execute:function(){var c,o;e._RF.push({},"980cds0wmVLCII/Xi6j1gLl","xinxiDataConfig",void 0);const{ccclass:r,property:_}=s;t("default",r("xinxiDataConfig")(((o=class t{constructor(){this.item_config=new Map}static get Instance(){return null===t._instance&&(t._instance=new t,t._instance.initItem()),t._instance}getItemById(e){return t.Instance.item_config.get(e)}getItems(){let e=[];if(null!=a._userData)for(let s=0;s<a._userData.online_friend_list.length;s++){const n=a._userData.online_friend_list[s];let c=new m;c.id=n.userid+"",c.name=n.user_name,c.status=u.getUserStatusNameByStatus(n.cur_status),c.status_type=n.cur_status,c.type=i.haoyou,c.user_avatar=n.user_avatar,t.Instance.item_config.set(c.id,c),e.push(c)}for(let s=2;s<=4;s++)e.push(t.Instance.getItemById((1e3+s).toString()));for(let s=2;s<=4;s++)e.push(t.Instance.getItemById((1e3+s).toString()));return e}initItem(){let e=new m;e.id="1002",e.name="视频课程",e.des="好口碑！买年卡返100元京东卡！",e.jump_des="【招生】当肥冬季特训2月11日开课！",e.time="一分钟以内",e.type=i.shipin,t.Instance.item_config.set(e.id,e);let s=new m;s.id="1004",s.name="视频课程",s.des="人机小白不服气，请大侠赐教！",s.jump_des="【人机挑战】",s.time="一分钟以内",s.type=i.shipin,t.Instance.item_config.set(s.id,s);let n=new m;n.id="1003",n.name="残局挑战",n.des="伦敦市仅1289人能破",n.jump_des="【残局挑战】",n.time="一分钟以内",n.type=i.canju,t.Instance.item_config.set(n.id,n)}})._instance=null,c=o))||c);class m{constructor(){this.name="",this.url="",this.type=0,this.status_type=n._null,this.status="",this.des="",this.jump_des="",this.user_avatar="",this.time="",this.id="",this.num=0}}t("xiaoxiData",m),e._RF.pop()}}}));

System.register("chunks:///_virtual/xueqi_view.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){"use strict";var e,t,n,r,u,l;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){n=i.cclegacy,r=i.Node,u=i._decorator,l=i.Component}],execute:function(){var a,o,c,s,b,p,h,_,f,g,w,x,y,z,k;n._RF.push({},"66106YTEklD554HKNE0ipV1","xueqi_view",void 0);const{ccclass:m,property:d}=u;i("xueqi_view",(a=m("xueqi_view"),o=d(r),c=d(r),s=d(r),b=d(r),p=d(r),h=d(r),a((g=e((f=class extends l{constructor(...i){super(...i),t(this,"btn_qimengkecheng",g,this),t(this,"btn_zaixiankecheng",w,this),t(this,"btn_tikuxunlian",x,this),t(this,"btn_ziwofenxi",y,this),t(this,"btn_dashikaiju",z,this),t(this,"btn_qipu",k,this)}start(){}update(i){}}).prototype,"btn_qimengkecheng",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(f.prototype,"btn_zaixiankecheng",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(f.prototype,"btn_tikuxunlian",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(f.prototype,"btn_ziwofenxi",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(f.prototype,"btn_dashikaiju",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(f.prototype,"btn_qipu",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=f))||_));n._RF.pop()}}}));

System.register("chunks:///_virtual/yue_zhan_view.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./GameMng.ts","./GBaseUI.ts","./UIButton.ts","./UIManager.ts","./msgManager.ts"],(function(n){"use strict";var e,t,i,o,s,r,a,c,u,_,l;return{setters:[function(n){e=n.applyDecoratedDescriptor,t=n.initializerDefineProperty},function(n){i=n.cclegacy,o=n.Node,s=n._decorator},function(n){r=n.yuezhan_room},function(n){a=n.GameMng},function(n){c=n.default},function(n){u=n.UIButton},function(n){_=n.UIManager},function(n){l=n.msgManager}],execute:function(){var f,h,p,b,d,g,y,w,z;i._RF.push({},"81ce7tChsZIzrpyiVFMTjL0","yue_zhan_view",void 0);const{ccclass:m,property:v}=s;n("yue_zhan_view",(f=m("yue_zhan_view"),h=v(o),p=v(o),b=v(o),f((y=e((g=class n extends c{constructor(...n){super(...n),t(this,"btn_close",y,this),t(this,"btn_10_fen",w,this),t(this,"btn_20_fen",z,this)}start(){}_show(n){u.BindClick(this.btn_close,(()=>{this.closeUI()}),this),u.BindClick(this.btn_10_fen,(()=>{console.log("xiaqi.id==",n.id),l.fa_qi_yue_zhan(r._10_fen,n.id)}),this),u.BindClick(this.btn_20_fen,(()=>{l.fa_qi_yue_zhan(r._20_fen,n.id)}),this)}static show(e){console.log("_show_show"),_.AddPrefab(a.Instance.yue_zhan_view).getComponent(n)._show(e)}update(n){}}).prototype,"btn_close",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(g.prototype,"btn_10_fen",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(g.prototype,"btn_20_fen",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=g))||d));i._RF.pop()}}}));

System.register("chunks:///_virtual/zhuangban_node.ts",["./rollupPluginModLoBabelHelpers.js","cc","./constant.ts","./UIButton.ts","./shop_type_btn.ts","./shop_zhuang_ban_manager.ts"],(function(t){"use strict";var i,e,n,a,u,s,o,c,r,l;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){n=t.cclegacy,a=t.Node,u=t._decorator,s=t.Component},function(t){o=t.zhuang_ban_type},function(t){c=t.UIButton},function(t){r=t.shop_type_btn},function(t){l=t.shop_zhuang_ban_manager}],execute:function(){var h,p,_,b,g,S,q,d,m,f,z,k,C,y,w;n._RF.push({},"c4f9bsjBehDrKDiyFVNG+CM","zhuangban_node",void 0);const{ccclass:j,property:x}=u;t("zhuangban_node",(h=j("zhuangban_node"),p=x(a),_=x(a),b=x(a),g=x(a),S=x(a),q=x(a),h((f=i((m=class extends s{constructor(...t){super(...t),e(this,"btn_qipan",f,this),e(this,"btn_qizi",z,this),e(this,"btn_touxiangkuang",k,this),e(this,"btn_jishiqi",C,this),e(this,"btn_qipao",y,this),e(this,"view_manager",w,this),this.curSelect=o.qi_pan}start(){c.BindClick(this.btn_qipan,(()=>{this.curSelect===o.qi_pan||(this.curSelect=o.qi_pan,this.updateSelectStatus())}),this),c.BindClick(this.btn_qizi,(()=>{this.curSelect===o.qi_zi||(this.curSelect=o.qi_zi,this.updateSelectStatus())}),this),c.BindClick(this.btn_touxiangkuang,(()=>{this.curSelect===o.tou_xiang_kuang||(this.curSelect=o.tou_xiang_kuang,this.updateSelectStatus())}),this),c.BindClick(this.btn_jishiqi,(()=>{this.curSelect===o.ji_shi_qi||(this.curSelect=o.ji_shi_qi,this.updateSelectStatus())}),this),c.BindClick(this.btn_qipao,(()=>{this.curSelect===o.qi_pao||(this.curSelect=o.qi_pao,this.updateSelectStatus())}),this),this.updateSelectStatus()}updateSelectStatus(){switch(this.btn_qipan.getComponent(r).unSelect(),this.btn_qizi.getComponent(r).unSelect(),this.btn_touxiangkuang.getComponent(r).unSelect(),this.btn_jishiqi.getComponent(r).unSelect(),this.btn_qipao.getComponent(r).unSelect(),this.curSelect){case o.qi_pan:this.btn_qipan.getComponent(r).onSelect();break;case o.qi_zi:this.btn_qizi.getComponent(r).onSelect();break;case o.tou_xiang_kuang:this.btn_touxiangkuang.getComponent(r).onSelect();break;case o.ji_shi_qi:this.btn_jishiqi.getComponent(r).onSelect();break;case o.qi_pao:this.btn_qipao.getComponent(r).onSelect()}this.updateView()}updateView(){this.view_manager.getComponent(l).show(this.curSelect)}update(t){}}).prototype,"btn_qipan",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=i(m.prototype,"btn_qizi",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=i(m.prototype,"btn_touxiangkuang",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(m.prototype,"btn_jishiqi",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=i(m.prototype,"btn_qipao",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=i(m.prototype,"view_manager",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=m))||d));n._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 () { }
    };
    });
});