System.register("chunks:///_virtual/Container_Manager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch_util.ts","./ui.ts","./table_level.ts","./Hall.ts","./UI_Idioms.ts","./UI_Main.ts","./CreateIdiom.ts","./Cube_Infor.ts","./GameCtl.ts","./ch.ts","./table_idiom_order.ts","./table_idiom_unorder_1_3.ts","./table_idiom_unorder_2_2.ts","./table_idiom_unorder_3_1.ts","./table_level_2.ts"],(function(e){var t,o,i,n,r,s,l,c,a,f,u,d,_,h,g,p,m,v,b,y,C,w,R,T,I,x,M,P,k,L,E,z,A,S,N,U;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.inheritsLoose,i=e.initializerDefineProperty,n=e.assertThisInitialized,r=e.createForOfIteratorHelperLoose,s=e.asyncToGenerator,l=e.regeneratorRuntime},function(e){c=e.cclegacy,a=e._decorator,f=e.Node,u=e.Prefab,d=e.NodePool,_=e.instantiate,h=e.director,g=e.Component,p=e.RigidBody,m=e.BoxCollider,v=e.Quat,b=e.tween,y=e.Vec3},function(e){C=e.default},function(e){w=e.gui},function(e){R=e.table_level},function(e){T=e.Hall},function(e){I=e.UI_Idioms},function(e){x=e.UI_Main},function(e){M=e.CreateIdiom},function(e){P=e.Cube_Infor,k=e.Cube_State},function(e){L=e.GameCtl},function(e){E=e.ch},function(e){z=e.table_idiom_order},function(e){A=e.table_idiom_unorder_1_3},function(e){S=e.table_idiom_unorder_2_2},function(e){N=e.table_idiom_unorder_3_1},function(e){U=e.table_level_2}],execute:function(){var D,H,B,F,G,j,O,Q,Y,Z,V,X,q,J,K;c._RF.push({},"e84de8IXbZDjZbYlbQpevuI","Container_Manager",void 0);var W=a.ccclass,$=a.property;e("Container_Manager",(D=W("Container_Manager"),H=$(f),B=$(f),F=$([f]),G=$([u]),j=$(M),O=$([f]),D((Z=t((Y=function(e){function t(){for(var t,o=arguments.length,r=new Array(o),s=0;s0&&(T.getInstance().firstEnter=!1);for(var o=0;o99&&(t=C.getRandomInt(28,100));var u=this.level_config[t].different_grade_level.split("_"),d=this.level_config[t].idiom_type_1.split("_");d=d.filter((function(e){return""!==e})),console.log("idiom_type_1:",d);var _=this.level_config[t].idiom_type_2.split("_");_=_.filter((function(e){return""!==e})),console.log("idiom_type_2:",_);var h=this.level_config[t].count/(d.length+_.length);console.log("count:",h);var g={};for(var p in[].concat(d).forEach((function(t){var o=e.config.filter((function(e){return e.piece_1_word===t&&e.difficulty===u[0]}));if(console.log("筛选 "+t+" 后的成语:",o),o.length0)for(var v=this.config_1_3.filter((function(e){return"easy"===e.difficulty})),b=0;b0)for(var M=this.config_1_3.filter((function(e){return"hard"===e.difficulty})),P=0;P0)for(var E=this.config_2_2.filter((function(e){return"easy"===e.difficulty})),z=0;z0)for(var N=this.config_2_2.filter((function(e){return"hard"===e.difficulty})),U=0;U0)for(var B=this.config_3_1.filter((function(e){return"easy"===e.difficulty})),F=0;F0)for(var O=this.config_1_3.filter((function(e){return"hard"===e.difficulty})),Q=0;Q=60&&(r=!0,t.Container.canTouch=!0,console.log("所有方块已拿完或没有方块了,停止动画")),a+=.01,r||requestAnimationFrame(s)}}()}else{for(var s=0;s<2*this.Container.idioms.length;s++){var c=this.Container.getCube();if(null!=c&&c.getComponent(h).state===d.live){var l=c;l.parent=u.getScene(),l.setPosition(this.startPos[s].position.x,this.startPos[s].position.y,this.startPos[s].position.z),this.Container.nodeReferences.push(l),s>1&&(l.getComponent(h).state=d.wait)}}this.Container.canTouch=!0}},n}(l)).prototype,"startPos",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=y))||m));r._RF.pop()}}})); System.register("chunks:///_virtual/Cube_Infor.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,n,o,r,a,s,u,l,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,o=t.assertThisInitialized,r=t.createClass},function(t){a=t.cclegacy,s=t._decorator,u=t.Label,l=t.RigidBody,c=t.Component}],execute:function(){var h,d,p,f,b,v,g,x,y;a._RF.push({},"0fe67dkVupFZYUR3uRu1sAy","Cube_Infor",void 0);var w=s.ccclass,S=s.property,_=t("Cube_State",function(t){return t[t.live=0]="live",t[t.wait=1]="wait",t[t.dead=2]="dead",t}({}));t("Cube_Infor",(h=w("Cube_Infor"),d=S(u),p=S(u),f=S(l),h((g=e((v=function(t){function e(){for(var e,i=arguments.length,r=new Array(i),a=0;a-160&&e<-30?this.ShowFront():e>30&&e<=160?this.ShowBack():this.ShowBothSides()},a.ShowFront=function(){this.txt.node.active=!0,this.txt2.node.active=!1},a.ShowBack=function(){this.txt.node.active=!1,this.txt2.node.active=!0},a.ShowBothSides=function(){this.txt.node.active=!0,this.txt2.node.active=!0},r(e,[{key:"Text",get:function(){return this.txt.string},set:function(t){this.txt.string=t,this.txt2.string=t}}]),e}(c)).prototype,"txt",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=e(v.prototype,"txt2",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=e(v.prototype,"rigidbody",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=v))||b));a._RF.pop()}}})); System.register("chunks:///_virtual/GameCtl.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui.ts","./UI_Idioms.ts","./UI_Main.ts","./Container_Manager.ts","./Cube_Infor.ts","./Hall.ts","./UI_LatticeFull.ts","./UI_Lock.ts","./Toast.ts","./audio.ts"],(function(e){var n,t,o,i,a,r,s,c,l,d,u,h,m,f,C,g,_,p,y,b,v,k,T,I,x,w,L,A,z,M,N,R;return{setters:[function(e){n=e.applyDecoratedDescriptor,t=e.inheritsLoose,o=e.initializerDefineProperty,i=e.assertThisInitialized,a=e.createForOfIteratorHelperLoose,r=e.asyncToGenerator,s=e.regeneratorRuntime},function(e){c=e.cclegacy,l=e._decorator,d=e.Camera,u=e.Node,h=e.find,m=e.geometry,f=e.PhysicsSystem,C=e.Layers,g=e.Vec3,_=e.RigidBody,p=e.Quat,y=e.tween,b=e.sp,v=e.Component},function(e){k=e.gui},function(e){T=e.UI_Idioms},function(e){I=e.UI_Main},function(e){x=e.Container_Manager},function(e){w=e.Cube_Infor,L=e.Cube_State},function(e){A=e.Hall},function(e){z=e.UI_LatticeFull},function(e){M=e.UI_Lock},function(e){N=e.Toast},function(e){R=e.default}],execute:function(){var P,S,U,E,W,O,H,G,F,D;c._RF.push({},"5237f+4/ftIlKW+rC062l8C","GameCtl",void 0);var j=l.ccclass,B=l.property;e("GameCtl",(P=j("GameCtl"),S=B(d),U=B([u]),E=B(u),P(((D=function(e){function n(){for(var n,t=arguments.length,a=new Array(t),r=0;r0){var o,i=t[0].collider.node;(null==(o=i.getComponent(w))?void 0:o.state)===L.live?(R.getInstance().playOneShot("sound/click_Cube"),A.getInstance().firstEnter&&this.Container.nodeReferences.length>4&&(k.get(I).getLayout().Hands[this.Container.nodeReferences.indexOf(i)].active=!1),this.entryContainer(i)):"Lock"===i.name&&this.UnLock(i)}}console.log("发射了射线")}},c.entryContainer=function(e){var n=this,t=-1,o=new g,i=e.getComponent(w).Text.length;switch(console.log(i),i){case 1:for(var r=0;r=-180&&C<0?p.fromEuler(f,-90,0,0):p.fromEuler(f,90,0,0),this.Container.canTouch=!1,y(e).to(.2,{position:new g(o.x,o.y,o.z+.4),rotation:f}).call((function(){n.Container.idiom_combine.set(e.getComponent(w),t);var o=[];if(n.Container.checkIdiom_Combine(e.getComponent(w),o))console.log("匹配的成语方块:",o),n.combine_ani(o[0],o[1]);else{k.get(T).light_Show(e.getComponent(w));for(var i,r=0,s=a(n.Container.node_isIdiom);!(i=s()).done;){1==i.value&&r++}r==n.Container.unlock_Num?k.show(z):r>=n.Container.unlock_Num-2&&9!=n.Container.unlock_Num&&(n.Container.is_Show_UI_Lock||(k.show(M),n.Container.is_Show_UI_Lock=!0)),n.Container.canTouch=!0}})).start()}},c.combine_ani=function(e,n){var t=this;this.Container.canTouch=!0;for(var o=this.Container.idiom_combine.get(e);o0?(t.Empty_Ad.node.active=!1,t.Empty_RedPoint_num.node.parent.active=!0,t.Empty_RedPoint_num.string=c.toString()):(t.Empty_Ad.node.active=!0,t.Empty_RedPoint_num.node.parent.active=!1),(o=_.getInstance().player.get_item(3))>0?(t.Eliminate_Ad.node.active=!1,t.Eliminate_RedPoint_num.node.parent.active=!0,t.Eliminate_RedPoint_num.string=o.toString()):(t.Eliminate_Ad.node.active=!0,t.Eliminate_RedPoint_num.node.parent.active=!1),u.get(m).evt.emit(u.get(m).evt.key.pause),this.onButtonEvent(t.Close_Btn,(function(){u.close(i),u.show(p)})),this.onButtonEvent(t.Eliminate,n(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.getInstance().playOneShot("sound/click_Btn"),!(c<=0)){e.next=8;break}return e.next=4,chsdk.playRewardAd("获得道具1");case 4:e.sent&&(_.getInstance().player.add_item(1,1),_.getInstance().player.use_item(1),u.close(i),u.get(m).evt.emit(u.get(m).evt.key.resume)),e.next=11;break;case 8:_.getInstance().player.use_item(1),u.close(i),u.get(m).evt.emit(u.get(m).evt.key.resume);case 11:case"end":return e.stop()}}),e)})))),this.onButtonEvent(t.Empty,n(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.getInstance().playOneShot("sound/click_Btn"),!(o<=0)){e.next=8;break}return e.next=4,chsdk.playRewardAd("获得道具3");case 4:e.sent&&(_.getInstance().player.add_item(3,1),_.getInstance().player.use_item(3),u.close(i),u.get(m).evt.emit(u.get(m).evt.key.resume)),e.next=11;break;case 8:_.getInstance().player.use_item(3),u.close(i),u.get(m).evt.emit(u.get(m).evt.key.resume);case 11:case"end":return e.stop()}}),e)})))),this.onButtonEvent(t.Click,(function(){y.getInstance().playOneShot("sound/click_Btn"),u.close(i),u.show(p)}));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),i}(o))||f);i._RF.pop()}}})); System.register("chunks:///_virtual/UI_Lock.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui_base.ts","./ui.ts","./ModuleDef.ts","./Layout_Lock.ts","./UI_Main.ts","./audio.ts"],(function(e){var t,n,o,r,c,u,a,i,s,f,l,k,p;return{setters:[function(e){t=e.inheritsLoose,n=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){r=e.cclegacy,c=e._decorator},function(e){u=e.default},function(e){a=e.GameUILayers,i=e.gui},function(e){s=e.ModuleDef},function(e){f=e.Layout_Lock},function(e){l=e.ani_ui,k=e.UI_Main},function(e){p=e.default}],execute:function(){var _;r._RF.push({},"8fb82Ol44hAxperkef41f5v","UI_Lock",void 0);var v=c.ccclass;c.property,e("UI_Lock",v("UI_Lock")(_=function(e){function r(){return e.call(this,s.GAME,"ui/UI_Lock/Lock",a.HUD,f)||this}return t(r,e),r.prototype.onCreated=function(){var e=n(o().mark((function e(){var t,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.getLayout(),l(t.Close_Btn.node.parent),c=i.get(k).getLayout(),i.get(k).evt.emit(i.get(k).evt.key.pause),this.onButtonEvent(t.Close_Btn,(function(){p.getInstance().playOneShot("sound/click_Btn"),i.close(r),i.get(k).evt.emit(i.get(k).evt.key.resume)}),this),this.onButtonEvent(t.Ensure_Btn,n(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p.getInstance().playOneShot("sound/click_Btn"),e.next=3,chsdk.playRewardAd("解锁槽位");case 3:if(!e.sent){e.next=16;break}t=0;case 6:if(!(t<2)){e.next=16;break}if(!c.Container.Lock_node[t].active){e.next=13;break}return c.Container.Lock_node[t].active=!1,c.Container.unlock_Num+=1,i.close(r),i.get(k).evt.emit(i.get(k).evt.key.resume),e.abrupt("return");case 13:t++,e.next=6;break;case 16:case"end":return e.stop()}}),e)}))),this);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),r}(u))||_);r._RF.pop()}}})); System.register("chunks:///_virtual/UI_Main.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch.ts","./ui.ts","./ui_base.ts","./ModuleDef.ts","./UI_GameRules.ts","./UI_Idioms.ts","./UI_Settings.ts","./UI_Win.ts","./Layout_Main.ts","./Container_Manager.ts","./Hall.ts","./UI_TimesOver.ts","./audio.ts"],(function(t){var n,e,i,s,a,o,r,u,c,l,_,h,f,g,m,v,p,d,y,I;return{setters:[function(t){n=t.inheritsLoose,e=t.asyncToGenerator,i=t.regeneratorRuntime},function(t){s=t.cclegacy,a=t._decorator,o=t.find},function(t){r=t.ch},function(t){u=t.gui,c=t.GameUILayers},function(t){l=t.default},function(t){_=t.ModuleDef},function(t){h=t.UI_GameRules},function(t){f=t.UI_Idioms},function(t){g=t.UI_Settings},function(t){m=t.UI_Win},function(t){v=t.Layout_Main},function(t){p=t.Container_Manager},function(t){d=t.Hall},function(t){y=t.UI_TimesOver},function(t){I=t.default}],execute:function(){var C;t("ani_ui",(function(t,n){void 0===n&&(n=1);u.scale_elasticOut_anim(t,1.2,.5,n)})),s._RF.push({},"31872b9CC5Fd6kJNVMdC0MF","UI_Main",void 0);var M=a.ccclass;a.property,t("UI_Main",M("UI_Main")(C=function(t){function s(){var n;return(n=t.call(this,_.GAME,"ui/UI_Main/Main",c.GAME,v)||this).evt=r.get_new_event(),n.running=!0,n}n(s,t);var a=s.prototype;return a.onCreated=function(){var t=e(i().mark((function t(){var n,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.getLayout()).Container=o("Container").getComponent(p),this.onButtonEvent(n.Pause_Btn,e(i().mark((function t(n){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:I.getInstance().playOneShot("sound/click_Btn"),u.show(g),s.pause();case 3:case"end":return t.stop()}}),t)}))),this),this.onButtonEvent(n.Rules_Btn,e(i().mark((function t(n){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:I.getInstance().playOneShot("sound/click_Btn"),u.show(h);case 2:case"end":return t.stop()}}),t)}))),this),n.Level.string="第"+(d.getInstance().player.get_max_floor()+1)+"关",n.Remain_Cube_Des.string="剩余:"+2*u.get(f).idioms.length,this.new_level(),d.getInstance().player.get_max_floor(),n.schedule((function(){if(s.running){if(0!=n.time){n.time-=1;var t=Math.floor(n.time/60),e=n.time%60;n.Count_Down_Des.string=(t>=10?t:"0"+t)+":"+(e>=10?e:"0"+e)}else n.Container.idioms.length>0&&(u.show(y),s.running=!1);n.Container.idioms.length<=0&&(console.log("恭喜你,通关成功"),d.getInstance().player.set_pass_level(1),d.getInstance().player.set_max_floor(d.getInstance().player.get_max_floor()+1),d.getInstance().player.setDirty(),d.getInstance().player.save_rank_floor(),d.getInstance().player.save(),u.show(m),s.running=!1)}}),1),this.evt.on(this.evt.key.pause,this.pause,this),this.evt.on(this.evt.key.resume,this.resume,this),this.evt.on(this.evt.key.next_level,this.new_level,this),this.evt.on(this.evt.key.update_remain,this.remain,this),this.evt.on(this.evt.key.update_ui_idioms,this.ui_idioms,this);case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),a.new_level=function(){var t=d.getInstance().player.get_max_floor(),n=this.getLayout();0==t?(n.Eliminate_Btn.node.active=!1,n.Shuffle_Btn.node.active=!1,n.Empty_Btn.node.active=!1):(n.Eliminate_Btn.node.active=!0,n.Shuffle_Btn.node.active=!0,n.Empty_Btn.node.active=!0),n.time=n.Container.time;var e=Math.floor(n.Container.time/60),i=n.Container.time%60;n.Count_Down_Des.string=(e>=10?e:"0"+e)+":"+(i>=10?i:"0"+i),n.Remain_Cube_Des.string="剩余:"+2*u.get(f).idioms.length,n.Level.string="第"+(d.getInstance().player.get_max_floor()+1)+"关",0==t?n.Hands.forEach((function(t){t.active=!0})):n.Hands.forEach((function(t){t.active=!1})),this.running=!0,I.getInstance().play("sound/bgm")},a.remain=function(){this.getLayout().Remain_Cube_Des.string="剩余:"+2*u.get(f).idioms.length},a.ui_idioms=function(){u.get(f).init()},a.pause=function(){this.running=!1},a.resume=function(){this.running=!0},a.onDispose=function(){this.getLayout().unscheduleAllCallbacks()},s}(l))||C);s._RF.pop()}}})); System.register("chunks:///_virtual/UI_Rank_Item.ts",["./rollupPluginModLoBabelHelpers.js","cc","./UI_Head_Icon.ts","./ch.ts"],(function(e){var t,i,n,r,a,l,o,s,u,c,p,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,r=e.assertThisInitialized},function(e){a=e.cclegacy,l=e._decorator,o=e.Sprite,s=e.SpriteFrame,u=e.Label,c=e.Component},function(e){p=e.UI_Head_Icon},function(e){h=e.ch}],execute:function(){var f,g,d,b,m,_,I,y,v,M,w,z,B,N,R,k,F,H,L;a._RF.push({},"ac170vYiRpERZJoeSznhVhO","UI_Rank_Item",void 0);var S=l.ccclass,U=l.property;e("UI_Rank_Item",(f=S("UI_Rank_Item"),g=U(o),d=U([s]),b=U(o),m=U([s]),_=U(u),I=U(p),y=U(u),v=U(u),f((z=t((w=function(e){function t(){for(var t,i=arguments.length,a=new Array(i),l=0;l3),this.Num.string=101==e?"未上榜":e<=3?"":e.toString(),this.Name.string=h.sdk.getDefNickName(i),this.Level.string=(null!=(r=i.score)?r:0)+"关",console.log(i),this.Head_Icon.show(i.userId.toString(),i.head)):this.node.active=!1},t}(c)).prototype,"Bg",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(w.prototype,"Bgs",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),N=t(w.prototype,"Medal",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(w.prototype,"Medals",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),k=t(w.prototype,"Num",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=t(w.prototype,"Head_Icon",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(w.prototype,"Name",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(w.prototype,"Level",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=w))||M));a._RF.pop()}}})); System.register("chunks:///_virtual/UI_Rank.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui.ts","./ui_base.ts","./UIWaiting.ts","./ModuleDef.ts","./Layout_Rank.ts","./UI_Rank_Item.ts","./UI_Main.ts","./Hall.ts"],(function(e){var n,t,o,s,a,i,r,c,u,l,_,h,f,g;return{setters:[function(e){n=e.inheritsLoose,t=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){s=e.cclegacy,a=e._decorator},function(e){i=e.GameUILayers,r=e.gui},function(e){c=e.default},function(e){u=e.UIWaiting},function(e){l=e.ModuleDef},function(e){_=e.Layout_Rank},function(e){h=e.UI_Rank_Item},function(e){f=e.ani_ui},function(e){g=e.Hall}],execute:function(){var d;s._RF.push({},"25b8cJMNUNOA77jdI7BF1kA","UI_Rank",void 0);var k=a.ccclass,p=(a.property,1);e("UI_Rank",k("UI_Rank")(d=function(e){function s(){var n;return(n=e.call(this,l.GAME,"ui/UI_Rank/Rank",i.HUD,_)||this)._owner=void 0,n._data=void 0,n._openContext=void 0,n}n(s,e);var a=s.prototype;return a.onCreated=function(){var e=this,n=this.getLayout();f(n.Close_Btn.node.parent),this.onButtonEvent(n.Close_Btn,t(o().mark((function e(n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.close(s);case 1:case"end":return e.stop()}}),e)}))),this),n.onList1=function(n,t){n.getComponent(h).showInfo(t+1,p,e._data[t],!1)},n.onList2=function(e,n){},n.Rank_Toggle_1.isChecked=1==p,n.Rank_Toggle_2.isChecked=2==p,this.show(),this.onToggleEvent(n.Rank_Toggle_1,(function(n,t){n.isChecked&&e.show(t)}),this,1),this.onToggleEvent(n.Rank_Toggle_2,(function(n,t){n.isChecked&&e.show(t)}),this,2)},a.show=function(){var e=t(o().mark((function e(n){var t,s,a,i,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getLayout(),null==n){e.next=5;break}if(n!=p){e.next=4;break}return e.abrupt("return");case 4:p=n;case 5:if(t.Rank_Toggle_1.isChecked=1==p,t.Rank_Toggle_2.isChecked=2==p,1!=p&&null!=n){e.next=23;break}return e.next=10,r.show(u);case 10:return t.list1.node.active=!0,t.list2.node.active=!1,t.list1.numItems=0,e.next=15,g.getInstance().player.get_rank_floor();case 15:s=e.sent,this._data=s.list,this._owner=s.owner,a=s.index,t.list1.numItems=this._data.length,this._owner||(this._owner={head:g.getInstance().player.avatarUrl,nickName:g.getInstance().player.nickName,score:0,userId:0,province:g.getInstance().player.user_info.province}),t.own1_item.showInfo(a,p,this._owner,!0),r.close(u);case 23:if(2!=p){e.next=39;break}return e.next=26,r.show(u);case 26:return t.list2.node.active=!0,t.list1.node.active=!1,t.list2.numItems=0,e.next=31,g.getInstance().player.get_rank_floor();case 31:i=e.sent,this._data=i.list,this._owner=i.owner,c=i.index,t.list2.numItems=this._data.length,this._owner||(this._owner={head:g.getInstance().player.avatarUrl,nickName:g.getInstance().player.nickName,score:0,userId:0,province:g.getInstance().player.user_info.province}),t.own2_item.showInfo(c,p,this._owner,!0),r.close(u);case 39:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}(),s}(c))||d);s._RF.pop()}}})); System.register("chunks:///_virtual/UI_Settings.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Layout_Settings.ts","./UI_Main.ts","./ch.ts","./ui.ts","./ui_base.ts","./ModuleDef.ts","./UI_Tips.ts","./audio.ts"],(function(e){var t,n,o,s,i,c,a,u,r,f,d,g,p,h,l,_;return{setters:[function(e){t=e.inheritsLoose,n=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){s=e.cclegacy,i=e._decorator,c=e.director},function(e){a=e.Layout_Settings},function(e){u=e.ani_ui,r=e.UI_Main},function(e){f=e.ch},function(e){d=e.GameUILayers,g=e.gui},function(e){p=e.default},function(e){h=e.ModuleDef},function(e){l=e.UI_Tips},function(e){_=e.default}],execute:function(){var v;s._RF.push({},"74e38zkF0dMfY6EeNgP2Gbx","UI_Settings",void 0);var B=i.ccclass;i.property,e("UI_Settings",B("UI_Settings")(v=function(e){function s(){return e.call(this,h.GAME,"ui/UI_Settings/Settings",d.HUD,a)||this}return t(s,e),s.prototype.onCreated=function(){var e=n(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.getLayout(),"hall"==c.getScene().name?(t.Defeat_Btn.node.active=!1,t.Replay_Btn.node.active=!1,t.Question_Btn.node.active=f.sdk.createFeedbackButton(f.util.getBtnOp(t.Question_Btn.node))):"game"==c.getScene().name&&(t.Defeat_Btn.node.active=!0,t.Replay_Btn.node.active=!0,f.sdk.destoryFeedbackButton(),t.Question_Btn.node.active=!1),u(t.Close_Btn.node.parent),this.onButtonEvent(t.Close_Btn,n(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_.getInstance().playOneShot("sound/click_Btn"),g.close(s),"game"==c.getScene().name&&g.get(r).evt.emit(g.get(r).evt.key.resume);case 3:case"end":return e.stop()}}),e)}))),this),t.Toggle_Music.isChecked=0!=f.audio.volumeMusic,t.Toggle_Sound.isChecked=f.audio.switchEffect,this.onToggleEvent(t.Toggle_Music,n(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f.audio.volumeMusic=t.isChecked,f.audio.save();case 2:case"end":return e.stop()}}),e)}))),this),this.onToggleEvent(t.Toggle_Sound,n(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f.audio.switchEffect=t.isChecked,f.audio.save();case 2:case"end":return e.stop()}}),e)}))),this),this.onButtonEvent(t.Defeat_Btn,n(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _.getInstance().playOneShot("sound/click_Btn"),e.next=3,g.show(l);case 3:g.get(l).init(!0);case 4:case"end":return e.stop()}}),e)}))),this),this.onButtonEvent(t.Replay_Btn,n(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _.getInstance().playOneShot("sound/click_Btn"),e.next=3,g.show(l);case 3:g.get(l).init(!1);case 4:case"end":return e.stop()}}),e)}))),this);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),s}(p))||v);s._RF.pop()}}})); System.register("chunks:///_virtual/UI_SideBar.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui.ts","./ui_base.ts","./ModuleDef.ts","./Layout_SideBar.ts","./UI_Main.ts","./Start.ts","./audio.ts"],(function(t){var n,e,o,r,i,a,u,c,s,d,f,l,p;return{setters:[function(t){n=t.inheritsLoose,e=t.asyncToGenerator,o=t.regeneratorRuntime},function(t){r=t.cclegacy,i=t._decorator},function(t){a=t.GameUILayers,u=t.gui},function(t){c=t.default},function(t){s=t.ModuleDef},function(t){d=t.Layout_SideBar},function(t){f=t.ani_ui},function(t){l=t.Start},function(t){p=t.default}],execute:function(){var _;r._RF.push({},"53621eOLopL4LGEoVokwFS4","UI_SideBar",void 0);var B=i.ccclass;i.property,t("UI_SideBar",B("UI_SideBar")(_=function(t){function r(){return t.call(this,s.GAME,"ui/UI_SideBar/SideBar",a.HUD,d)||this}return n(r,t),r.prototype.onCreated=function(){var t=e(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=this.getLayout(),f(n.Close_Btn.node.parent),this.onButtonEvent(n.Close_Btn,(function(){p.getInstance().playOneShot("sound/click_Btn"),u.close(r)})),this.onButtonEvent(n.Go_SideBar,(function(){p.getInstance().playOneShot("sound/click_Btn"),chsdk.goToSidebar()})),n.Logo.spriteFrame=n.Logos[l.packId];case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),r}(c))||_);r._RF.pop()}}})); System.register("chunks:///_virtual/UI_Sign.ts",["./rollupPluginModLoBabelHelpers.js","cc","./sign.ts","./ui.ts","./ui_base.ts","./ModuleDef.ts","./UI_Main.ts","./Layout_Sign.ts","./Hall.ts","./audio.ts"],(function(e){var t,n,r,a,i,o,s,c,u,g,f,l,p,_,d;return{setters:[function(e){t=e.inheritsLoose,n=e.asyncToGenerator,r=e.regeneratorRuntime},function(e){a=e.cclegacy,i=e._decorator,o=e.Sprite},function(e){s=e.default},function(e){c=e.GameUILayers,u=e.gui},function(e){g=e.default},function(e){f=e.ModuleDef},function(e){l=e.ani_ui},function(e){p=e.Layout_Sign},function(e){_=e.Hall},function(e){d=e.default}],execute:function(){var h;a._RF.push({},"0aee2ozI6tC95ZSVqBOl1ws","UI_Sign",void 0);var S=i.ccclass;i.property,e("UI_Sign",S("UI_Sign")(h=function(e){function a(){return e.call(this,f.GAME,"ui/UI_Sign/Sign",c.HUD,p)||this}t(a,e);var i=a.prototype;return i.onCreated=function(){var e=n(r().mark((function e(){var t,i=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.getLayout(),l(t.Return.node.parent.parent),this.onButtonEvent(t.Return,(function(){d.getInstance().playOneShot("sound/click_Btn"),u.close(a)})),this.onButtonEvent(t.Free_Get,n(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.getInstance().playOneShot("sound/click_Btn"),t.Toggle.isChecked?i.Sign(!0):i.Sign(!1);case 2:case"end":return e.stop()}}),e)})))),this.init_Sign();case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),i.init_Sign=function(){var e=n(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this.getLayout(),n=0;n<7;n++)t.Sign_Reward[n].show(n+1);s.getInstance().checkSigin()||(t.Free_Get.node.getComponent(o).grayscale=!0,t.Free_Get.interactable=!1);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),i.Sign=function(){var e=n(r().mark((function e(t){var n,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getLayout(),e.next=3,s.getInstance().signIn();case 3:if(0!=(a=e.sent)){e.next=7;break}e.next=18;break;case 7:if(!t){e.next=14;break}return e.next=10,chsdk.playRewardAd("领取双倍签到奖励");case 10:e.sent&&(_.getInstance().player.set_watch_ad_num(1),n.Sign_Reward[a-1].show(a),n.Sign_Reward[a-1].add_Item(t),n.Free_Get.node.getComponent(o).grayscale=!0,n.Free_Get.interactable=!1),e.next=18;break;case 14:n.Sign_Reward[a-1].show(a),n.Sign_Reward[a-1].add_Item(t),n.Free_Get.node.getComponent(o).grayscale=!0,n.Free_Get.interactable=!1;case 18:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),a}(g))||h);a._RF.pop()}}})); System.register("chunks:///_virtual/UI_Store.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui.ts","./ui_base.ts","./ModuleDef.ts","./Layout_Store.ts","./UI_Main.ts","./Hall.ts","./Toast.ts","./table_store.ts","./audio.ts"],(function(e){var t,n,a,o,r,s,c,i,u,l,g,_,f,p,d,y;return{setters:[function(e){t=e.inheritsLoose,n=e.asyncToGenerator,a=e.regeneratorRuntime},function(e){o=e.cclegacy,r=e._decorator,s=e.Sprite},function(e){c=e.GameUILayers,i=e.gui},function(e){u=e.default},function(e){l=e.ModuleDef},function(e){g=e.Layout_Store},function(e){_=e.ani_ui},function(e){f=e.Hall},function(e){p=e.Toast},function(e){d=e.table_store},function(e){y=e.default}],execute:function(){var h;o._RF.push({},"60b3bv9XPZJKYK+7QPAcISg","UI_Store",void 0);var w=r.ccclass;r.property,e("UI_Store",w("UI_Store")(h=function(e){function o(){var t;return(t=e.call(this,l.GAME,"ui/UI_Store/Store",c.HUD,g)||this).config=void 0,t}t(o,e);var r=o.prototype;return r.onCreated=function(){var e=n(a().mark((function e(){var t,r,c,u,l,g,h=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.config=d.getList(),console.log(this.config),t=this.getLayout(),_(t.Close_Btn.node.parent),r=f.getInstance().player.get_store_state(),console.log("商店数组:"+r),this.onButtonEvent(t.Close_Btn,n(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y.getInstance().playOneShot("sound/click_Btn"),i.close(o);case 2:case"end":return e.stop()}}),e)})))),c=a().mark((function e(o){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0==r[o]?h.onButtonEvent(t.Free_Gets[o],n(a().mark((function e(n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.getInstance().playOneShot("sound/click_Btn"),0==o){e.next=8;break}return e.next=4,chsdk.playRewardAd("获得道具"+h.config[o].type);case 4:e.sent&&(f.getInstance().player.set_watch_ad_num(1),f.getInstance().player.add_item(h.config[o].type,1),t.Free_Gets[o].interactable=!1,t.Free_Gets[o].node.getComponent(s).grayscale=!0,r[o]=!0,f.getInstance().player.set_store_state(r),p.makeText(i.getLayerNode(5),"获得道具:"+h.config[o].name).show()),e.next=12;break;case 8:return e.next=10,chsdk.playRewardAd("获得铜币");case 10:e.sent&&(f.getInstance().player.set_watch_ad_num(1),f.getInstance().player.set_coin(f.getInstance().player.get_coin()+100),t.Free_Gets[o].interactable=!1,t.Free_Gets[o].node.getComponent(s).grayscale=!0,h.show_Coin(),r[o]=!0,f.getInstance().player.set_store_state(r),p.makeText(i.getLayerNode(5),"获得铜币:X100").show());case 12:case"end":return e.stop()}}),e)}))),h):(t.Free_Gets[o].interactable=!1,t.Free_Gets[o].node.getComponent(s).grayscale=!0);case 1:case"end":return e.stop()}}),e)})),u=0;case 9:if(!(u=h.config[o+1].cost?(f.getInstance().player.add_item(h.config[o+1],1),f.getInstance().player.set_coin(f.getInstance().player.get_coin()-h.config[o+1].cost),p.makeText(i.getLayerNode(5),"获得道具:"+h.config[o+1].name).show(),h.show_Coin()):p.makeText(i.getLayerNode(5),"铜币不足").show();case 1:case"end":return e.stop()}}),e)}))),h);case 1:case"end":return e.stop()}}),e)})),g=0;case 16:if(!(g0?(t.AddTime_Ad.node.active=!1,t.RedPoint_num.node.parent.active=!0,t.RedPoint_num.string=i.toString()):(t.AddTime_Ad.node.active=!0,t.RedPoint_num.node.parent.active=!1),t.progressBar.progress=(u.get(_).getLayout().Container.count-u.get(_).getLayout().Container.idioms.length)/u.get(_).getLayout().Container.count,console.log(u.get(_).getLayout().Container.count,u.get(_).getLayout().Container.idioms.length),t.progressBar_Percent.string=Math.floor(100*t.progressBar.progress)+"%",this.onButtonEvent(t.Close_Btn,(function(){f.getInstance().playOneShot("sound/click_Btn"),u.close(r),u.show(l)})),this.onButtonEvent(t.AddTime,n(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f.getInstance().playOneShot("sound/click_Btn"),!(i<=0)){e.next=8;break}return e.next=4,chsdk.playRewardAd("获得道具5");case 4:e.sent&&(u.close(r),d.getInstance().player.add_item(5,1),d.getInstance().player.use_item(5),u.get(_).evt.emit(u.get(_).evt.key.resume)),e.next=11;break;case 8:u.close(r),d.getInstance().player.use_item(5),u.get(_).evt.emit(u.get(_).evt.key.resume);case 11:case"end":return e.stop()}}),e)}))));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),r}(s))||m);r._RF.pop()}}})); System.register("chunks:///_virtual/UI_Tips.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui_base.ts","./ui.ts","./ModuleDef.ts","./Layout_Tips.ts","./UI_Settings.ts","./ResUtil.ts","./SceneDef.ts","./UI_Hall.ts","./UI_Main.ts","./audio.ts"],(function(t){var e,n,o,i,s,c,u,a,r,l,f,_,p,g,v,d;return{setters:[function(t){e=t.inheritsLoose,n=t.asyncToGenerator,o=t.regeneratorRuntime},function(t){i=t.cclegacy,s=t._decorator},function(t){c=t.default},function(t){u=t.gui,a=t.GameUILayers},function(t){r=t.ModuleDef},function(t){l=t.Layout_Tips},function(t){f=t.UI_Settings},function(t){_=t.ResUtil},function(t){p=t.SceneDef},function(t){g=t.UI_Hall},function(t){v=t.UI_Main},function(t){d=t.default}],execute:function(){var y;i._RF.push({},"1ebdc1x6S9DYpzaA7oW0hw3","UI_Tips",void 0);var h=s.ccclass;s.property,t("UI_Tips",h("UI_Tips")(y=function(t){function i(){return t.call(this,r.GAME,"ui/UI_Tips/Tips",a.ALERT,l)||this}e(i,t);var s=i.prototype;return s.onCreated=function(){var t=this.getLayout();this.onButtonEvent(t.Close_Btn,(function(){d.getInstance().playOneShot("sound/click_Btn"),u.close(i)}))},s.init=function(t){var e=this.getLayout();this.onButtonEvent(e.Ensure_Btn,n(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d.getInstance().playOneShot("sound/click_Btn"),u.close(i),u.close(f),!t){e.next=10;break}return e.next=6,u.closeAll();case 6:u.show(g),_.loadScene(p.Hall,r.GAME,!0),e.next=16;break;case 10:u.close(i),u.close(f),u.get(v).evt.emit(u.get(v).evt.key.next_level),u.get(v).getLayout().Container.level_idioms(),u.get(v).evt.emit(u.get(v).evt.key.update_ui_idioms),u.get(v).evt.emit(u.get(v).evt.key.update_remain);case 16:case"end":return e.stop()}}),e)})))),this.onButtonEvent(e.Cancel_Btn,(function(){d.getInstance().playOneShot("sound/click_Btn"),u.close(i)}))},i}(c))||y);i._RF.pop()}}})); System.register("chunks:///_virtual/UI_Win.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui.ts","./ui_base.ts","./ResUtil.ts","./ModuleDef.ts","./SceneDef.ts","./UI_Hall.ts","./UI_Main.ts","./Layout_Win.ts","./Container_Manager.ts","./Hall.ts","./audio.ts"],(function(t){var e,n,r,i,a,o,c,s,u,l,f,p,_,d,g,h,y,v,I,m;return{setters:[function(t){e=t.inheritsLoose,n=t.asyncToGenerator,r=t.regeneratorRuntime},function(t){i=t.cclegacy,a=t._decorator,o=t.find,c=t.Sprite},function(t){s=t.GameUILayers,u=t.gui},function(t){l=t.default},function(t){f=t.ResUtil},function(t){p=t.ModuleDef},function(t){_=t.SceneDef},function(t){d=t.UI_Hall},function(t){g=t.ani_ui,h=t.UI_Main},function(t){y=t.Layout_Win},function(t){v=t.Container_Manager},function(t){I=t.Hall},function(t){m=t.default}],execute:function(){var B;i._RF.push({},"83142byQEVIGK9m///c1wq2","UI_Win",void 0);var U=a.ccclass;a.property,t("UI_Win",U("UI_Win")(B=function(t){function i(){return t.call(this,p.GAME,"ui/UI_Win/Win",s.HUD,y)||this}return e(i,t),i.prototype.onCreated=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.getLayout(),g(e.Three_Btn.node.parent.parent),e.Container=o("Container").getComponent(v),I.getInstance().player.set_coin(I.getInstance().player.get_coin()+50),this.onButtonEvent(e.Three_Btn,n(r().mark((function t(n){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m.getInstance().playOneShot("sound/click_Btn"),t.next=3,chsdk.playRewardAd("三倍获取铜币");case 3:t.sent&&(I.getInstance().player.set_coin(I.getInstance().player.get_coin()+150-50),e.Three_Btn.interactable=!1,e.Three_Btn.node.getComponent(c).grayscale=!0,e.Txt.string="铜币+150");case 5:case"end":return t.stop()}}),t)}))),this),this.onButtonEvent(e.Next_Btn,n(r().mark((function t(n){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m.getInstance().playOneShot("sound/click_Btn"),u.get(h).evt.emit(u.get(h).evt.key.next_level),u.close(i),e.Container.level_idioms(),u.get(h).evt.emit(u.get(h).evt.key.update_ui_idioms),u.get(h).evt.emit(u.get(h).evt.key.update_remain);case 6:case"end":return t.stop()}}),t)}))),this),this.onButtonEvent(e.ReturnHall_Btn,n(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m.getInstance().playOneShot("sound/click_Btn"),t.next=3,u.closeAll();case 3:u.show(d),f.loadScene(_.Hall,p.GAME,!0);case 5:case"end":return t.stop()}}),t)}))),this);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i}(l))||B);i._RF.pop()}}})); (function(r) { r('virtual:///prerequisite-imports/module_game', 'chunks:///_virtual/module_game'); })(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 () { } }; }); });