System.register("chunks:///_virtual/AndroidMgr.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var r,o,n,i;return{setters:[function(e){r=e.inheritsLoose},function(e){o=e.cclegacy,n=e._decorator,i=e.Component}],execute:function(){var t,d;o._RF.push({},"f06a2ngQfROjYOEpzV58qip","AndroidMgr",void 0);var c=n.ccclass;n.property,e("AndroidMgr",c("AndroidMgr")(((d=function(e){function o(){return e.apply(this,arguments)||this}r(o,e);var n=o.prototype;return n.sendAndroid=function(e){if(!o.isDev){var r=window;void 0!==r.AndroidInterface?r.AndroidInterface.performAndroidMethod(e):console.log("安卓方法未定义")}},n.saveDataToAndroid=function(e,r){if(!o.isDev){var n={curLevel:e.stageLevel,curLevelScore:e.score,curLevelTime:e.curLevelTime,isPass:r},i=JSON.stringify(n),t=window;void 0!==t.AndroidInterface?t.AndroidInterface.performAndroidMethod("saveData:"+i):console.log("安卓方法未定义")}},o}(i)).isDev=!1,t=d))||t);o._RF.pop()}}})); System.register("chunks:///_virtual/ArrUtils.ts",["cc"],(function(r){var n,t,e;return{setters:[function(r){n=r.cclegacy,t=r._decorator,e=r.math}],execute:function(){var u;n._RF.push({},"74933iM/7NJ/rs+RegM2kLI","ArrUtils",void 0);var o=t.ccclass;t.property,r("ArrUtils",o("ArrUtils")(u=function(){function r(){}return r.shuffleArray=function(r){var n=[].concat(r);return n.sort((function(){return Math.random()-.5})),n},r.upOrder=function(r){r.sort((function(r,n){return r-n}))},r.downOrder=function(r){r.sort((function(r,n){return n-r}))},r.getRandomUniqueIndex=function(r,n){if(n.size>0){var t=new Array;r.forEach((function(r,e){n.has(e)||t.push(e)}));var u=e.randomRangeInt(0,t.length-1);return n.add(t[u]),t[u]}var o=e.randomRangeInt(0,r.length-1);return n.add(o),o},r.removeLastSet=function(r){var n=Array.from(r);if(0===n.length)return!1;var t=n[n.length-1];return r.delete(t),!0},r}())||u);n._RF.pop()}}})); System.register("chunks:///_virtual/AudioManage.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(o){var n,i,e,u,t,a,c,r;return{setters:[function(o){n=o.inheritsLoose,i=o.createClass},function(o){e=o.cclegacy,u=o._decorator,t=o.AudioSource,a=o.resources,c=o.AudioClip,r=o.Component}],execute:function(){var l,s;e._RF.push({},"ddb2bQZ+Y1HFKtzdgtAjjWR","AudioManage",void 0);var d=u.ccclass;u.property,o("AudioManage",d("AudioManage")(((s=function(o){function e(){return o.apply(this,arguments)||this}n(e,o);var u=e.prototype;return u.onLoad=function(){this.init()},u.init=function(){e._audioSource=this.node.getComponent(t)},u.playMusic=function(o){void 0===o&&(o=!0);var n=e._audioSource;n.loop=o,n.playing||n.play()},u.pauseMusic=function(){var o=e._audioSource;o.playing&&o.stop()},u.playSound=function(o,n){void 0===n&&(n=1);var i=e._audioSource;a.load(o,c,(function(o,e){i.playOneShot(e,n)}))},u.setBgVolume=function(o){e._audioSource.volume=o},u.playSoundCallback=function(o,n,i,u,r){void 0===i&&(i=!1);var l=e._audioSource;l.node.off(t.EventType.ENDED),l.node.on(t.EventType.ENDED,u,r),l.loop=i,a.load(o,c,(function(o,n){o?console.log(o):(l.clip=n,l.play())}))},u.playSoundCallback2=function(o,n,i,u,t){var a=e._audioSource;a.clip=o,a.play()},i(e,null,[{key:"instance",get:function(){return this._instance||(this._instance=new e),this._instance}}]),e}(r))._instance=void 0,s._audioSource=void 0,l=s))||l);e._RF.pop()}}})); System.register("chunks:///_virtual/AudioRecorder.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AudioManage.ts"],(function(e){var o,r,n,t,a,i,c,s;return{setters:[function(e){o=e.inheritsLoose,r=e.asyncToGenerator,n=e.regeneratorRuntime},function(e){t=e.cclegacy,a=e._decorator,i=e.assetManager,c=e.Component},function(e){s=e.AudioManage}],execute:function(){var u;t._RF.push({},"31ca8q4AN9KGZ4Ybwb5RapB","AudioRecorder",void 0);var d=a.ccclass;a.property,e("AudioRecorder",d("AudioRecorder")(u=function(e){function t(){for(var o,r=arguments.length,n=new Array(r),t=0;t","","","",""],e.color=[a.WHITE,a.BLACK,a.RED,a.GREEN,a.BLUE],e}o(e,t);var s=e.prototype;return s.start=function(){if(this.node.parent.getComponent(g)){var t=this.node.parent.getComponent(h),e=.5*t.width,o=.5*t.height,i=.1*e-e,n=o-.1*o,s=this.node.getChildByName("MiscMode"),l=p(s);l.parent=this.node,l.name="Buttons";var r=p(s);r.parent=this.node,r.name="Titles";for(var u=0;u<2;u++){var L=p(this.EnableAllCompositeModeButton.getChildByName("Label"));L.setPosition(i+(u>0?450:150),n,0),L.setScale(.75,.75,.75),L.parent=r;var f=L.getComponent(c);f.string=u?"----------Composite Mode----------":"----------Single Mode----------",f.color=a.WHITE,f.overflow=0,this.labelComponentList[this.labelComponentList.length]=f}n-=20;for(var M=0,b=0;b>1&&(i+=200,M=0);var v=b?p(this.singleModeToggle):this.singleModeToggle;v.setPosition(i,n-20*M,0),v.setScale(.5,.5,.5),v.parent=this.singleModeToggle.parent;var T=v.getComponentInChildren(C);T.string=this.strSingle[b],this.textComponentList[this.textComponentList.length]=T,this.textContentList[this.textContentList.length]=T.string,v.on(d.EventType.TOGGLE,this.toggleSingleMode,this),this.singleModeToggleList[b]=v}i+=200,this.EnableAllCompositeModeButton.setPosition(i+15,n,0),this.EnableAllCompositeModeButton.setScale(.5,.5,.5),this.EnableAllCompositeModeButton.on(m.EventType.CLICK,this.enableAllCompositeMode,this),this.EnableAllCompositeModeButton.parent=l;var S=this.EnableAllCompositeModeButton.getComponentInChildren(c);this.labelComponentList[this.labelComponentList.length]=S;var x=p(this.EnableAllCompositeModeButton);x.setPosition(i+90,n,0),x.setScale(.5,.5,.5),x.on(m.EventType.CLICK,this.changeTextColor,this),x.parent=l,(S=x.getComponentInChildren(c)).string="TextColor",this.labelComponentList[this.labelComponentList.length]=S;var E=p(this.EnableAllCompositeModeButton);E.setPosition(i+200,n,0),E.setScale(.5,.5,.5),E.on(m.EventType.CLICK,this.hideUI,this),E.parent=this.node.parent,(S=E.getComponentInChildren(c)).string="Hide UI",this.labelComponentList[this.labelComponentList.length]=S,this.hideButtonLabel=S,n-=40;for(var I=0;I");return-1===i?t===e:(o=(o=o.substr(i+1)).substr(0,o.search("<")))===e},s.toggleSingleMode=function(t){for(var e=u.root.debugView,o=t.getComponentInChildren(C),i=0;i=this.strColor.length&&(this._currentColorIndex=0);for(var e=0;e";for(var o=0;o=this.timeInterval&&(this.timeStep=0,this.timeLimit--,this.setTime(),this.checkEnd(),o(this.node.getChildByName("alertClock")).to(.2,{angle:-10},{easing:"backOut"}).call((function(){o(e.node.getChildByName("alertClock")).to(.2,{angle:0},{easing:"backOut"}).start()})).start()))},n.clicked=function(t,e){this.isGameing&&this.canClick&&(this.canClick=!1,t.target.getComponent(l).interactable=!1,this.scheduleOnce((function(){this.canClick=!0}),.5))},n.succReset=function(){var t=this;this.isGameing=!1,d.instance.playSound("sound/success",1),this.node.getChildByName("noclick").active=!0,this.timeStart=!1,this.score+=this.scoreMax,this.setScore(),this.turnLevel++,this.turnLevel>=this.optionArr[this.stageLevel].length?(this.turnLevel=0,this.stageLevel++,this.stageLevel>=this.optionArr.length||this.stageLevel>this.maxLevel?(g.isDev?(this.stageLevel=1,this.node.getChildByName("endTip").getChildByName("label1").getComponent(h).string="您总共得分"+this.score+"分。恭喜您通关成功!",this.node.getChildByName("endTip").getChildByName("Button").getChildByName("Label").getComponent(h).string="再完一次",o(this.node.getChildByName("endTip")).to(.2,{position:a(this.node.getChildByName("endTip").getPosition().x,0)}).call((function(){t.setTime()})).start()):(u.instance.pauseMusic(),this.saveDate(3)),this.timeLimit=this.timeLimitMax,this.setTime()):g.isDev?(this.timeLimit=this.timeLimitMax,this.showSuccTip()):this.saveDate(0)):(d.instance.playSound("sound/great",1),this.showSuccTip())},n.showSuccTip=function(){this.node.getChildByName("succTip").active=!0,this.node.getChildByName("succTip").getChildByName("zhengque").getComponent(c.Skeleton).setAnimation(0,"animation",!1),this.scheduleOnce((function(){this.node.getChildByName("succTip").active=!1,this.setTime(),this.initGame()}),1)},n.setScore=function(){this.node.getChildByName("scoreBg").getChildByName("Label2").getComponent(h).string=this.score+"",s("androidMgr").getComponent(g).sendAndroid("setScore:"+this.score)},n.failReset=function(t){var e=this;void 0===t&&(t=!0),this.isGameing=!1,this.node.getChildByName("noclick").active=!0,this.timeStart=!1,this.failCnt++,this.failCnt>=3?(this.score=0,this.setScore(),u.instance.pauseMusic(),g.isDev?(this.node.getChildByName("endTip").getChildByName("label1").getComponent(h).string="通关失败了,没关系,再来一次吧!",this.node.getChildByName("endTip").getChildByName("Button").getChildByName("Label").getComponent(h).string="重新开始",o(this.node.getChildByName("endTip")).to(.2,{position:a(this.node.getChildByName("endTip").getPosition().x,0)}).call((function(){e.setTime(),e.saveDate(1)})).start()):this.saveDate(1),this.timeLimit=this.timeLimitMax,this.setTime()):t?d.instance.playSoundCallback("sound/fail",1,!1,(function(){d.instance.playSoundCallback("sound/jiayou",1,!1,(function(){e.initGame()}))})):this.initGame()},n.resetCardOrder=function(){for(var t=m.shuffleArray(this.optionArr[this.stageLevel][this.turnLevel]),e=0;e0;i--){var f=Math.floor(Math.random()*(i+1)),s=[e[f],e[i]];e[i]=s[0],e[f]=s[1]}return e},r.getRandomUniqueNumbers=function(r,t,n){if(t-r+1n;)if(o[i]>o[i-1]+n)if(o[i]--,i>0&&Math.abs(o[i]-o[i-1])<=2)o[i-1]++;else{if(!(io[i]+n)if(o[i-1]--,i>0&&Math.abs(o[i-1]-o[i-2])<=2)o[i-2]++;else{if(!(i