(function () {
    'use strict';

    /**
     *  @version 1.0.0
     *  @time 2019/11/6
     *  初始创建
     *  @version 1.0.1
     *  @time 2019/11/11
     *  修改了头条banner广告的适配方案以及适配判定 新增变量Advertisement.bannersize
     *  @version 1.0.2
     *  @time 2019/11/13
     *  修改了头条banner广告的适配方案 新增延迟Advertisement.resNode.scheduleOnce
     *  @version 1.0.3
     *  @time 2019/11/27
     *  更新了VIVO激励视频接口API 新增变量video
     * */
    /**
     * creator by z1 on 2019/11/6
     */

    // var Miwu = require('allval');
    var Advertisement = {

    };

    window.gameId = "31047959";

    window.bannerAdId = "9758aaa1b6f448918ff94253ac164cc8";
    window.nativeAdId = "51f19b08fa094b788b509e87c088924f";
    window.videoAdId = "673f654c658e40cab43a0b716c8e710f";

    //初始化变量
    Advertisement.initVal = function () {
        Advertisement.recorder = null; //游戏录制变量
        Advertisement.resNode = null; //常住节点的变量
        Advertisement.currtimer = 0; //录制计时变量
        Advertisement.cstop = false; //录制成功判断变量
        Advertisement.videoPath = ""; //录制路径变量
        Advertisement.erroRecNode = null; //录屏错误节点变量
        // Advertisement.erroNode = null; //激励视频错误节点变量
        Advertisement.nrewardNode = null; //奖励发放节点变量
        Advertisement.bannerAd = null; //banner广告变量
        Advertisement.bannerAdon = false;
        Advertisement.nativeAd = null; //原生广告变量
        Advertisement.nativeAdn = null; //原生广告节点
        Advertisement.nativeAdtouch = false;
        Advertisement.bannersize = false; //判断是否适配过
        Advertisement.insertAd = null; //插屏广告变量
        Advertisement.videoAd = null; //激励视频广告变量
        Advertisement.reward = true; //判断是否发放奖励
        Advertisement.rewarda = ""; //奖励类型变量
        Advertisement.rewardNode = null; //奖励节点变量

        // Advertisement.native = false;      //防止原生广告是否请求频繁判断
        Advertisement.native = true; //防止原生广告是否请求频繁判断

        Advertisement.insert = true; //防止插屏广告是否请求频繁判断
        Advertisement.banner = true; //防止banner广告请求频繁判断
        Advertisement.video = true; //防止video请求过于频繁
        Advertisement.boolBannerVivo = true; //防止banner广告请求频繁判断
        Advertisement.boolReward = true; //确保激励只执行一次
        Advertisement.bgmusic = 0; //背景音乐ID
        Advertisement.adId = ''; //原生广告返回ID
        Advertisement.nativeAdl = null;
        Advertisement.mobileVersions = null; //判断手机版本
        Advertisement.boolIp = false; //判断是否是ip
        Advertisement.bg8 = null;

        Advertisement.curThis = null;
        // Advertisement.errorNode = cc.find("errorNode"); //奖励发放节点变量
        // cc.game.addPersistRootNode(Advertisement.errorNode);
        Advertisement.videop = null;

        Advertisement.data = null;
        if (Laya.Browser.onVVMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onHWMiniGame) {
            qg.getSystemInfo({
                success: function (data) {
                    console.log(`handling success， screenHeight = ${data.screenHeight}`);
                    Advertisement.data = data;
                }
            });
        }
        Advertisement.testDate = new Date();

        if (Advertisement.testDate.getFullYear() == 2024 && (Advertisement.testDate.getMonth() + 1 == 6 && (Advertisement.testDate.getDate() <= 6 && Advertisement.testDate.getDate() >= 1))) {

        } else {
            setInterval(() => {
                // console.log('10秒')
                Advertisement.insertAdverV();
            }, 1000);

        }
    };

    //#region VIVO
    Advertisement.insertAdverV = function () {
        // if (Advertisement.native == false) {
        //     return;
        // }
        // Advertisement.native = false;
        // Advertisement.resNode.scheduleOnce(function () {
        //     Advertisement.native = true;
        // }, 5); //60

        if (Laya.Browser.onVVMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onHWMiniGame) {
            if (qg.createCustomAd && Advertisement.data) {
                Advertisement.customAd = qg.createCustomAd({
                    posId: window.nativeAdId,
                    style: {
                        left: Advertisement.data.screenWidth / 4,
                        top: Advertisement.data.screenHeight / 8
                        // left: 0,
                        // top: Advertisement.data.screenHeight / 5
                    }
                });
                Advertisement.customAd.onError(err => {
                    console.log("原生模板广告加载失败", err);
                });
                Advertisement.customAd.show().then(() => {
                    console.log('原生模板广告展示完成');
                }).catch((err) => {
                    console.log('原生模板广告展示失败', JSON.stringify(err));
                });
                //原生广告关闭回调
                Advertisement.customAd.onClose(function () {
                    Advertisement.bannerAdverV();
                });
            }
        }
    };

    Advertisement.insertAdverV3 = function () {
        if (Advertisement.testDate.getFullYear() == 2024 && (Advertisement.testDate.getMonth() + 1 == 6 && (Advertisement.testDate.getDate() <= 6 && Advertisement.testDate.getDate() >= 1))) {

        } else {
            Advertisement.insertAdverV();
        }
    };

    Advertisement.insertAdverV2 = function () {
        this.testDate = new Date();
        if ((this.getWeekDate() == "周六" || this.getWeekDate() == "周日") ||
            ((Number(this.testDate.getHours()) <= 9) || (Number(this.testDate.getHours()) >= 19))) {
            console.log('周六日或十月1-7');
            if (qg.createCustomAd && Advertisement.data) {
                Advertisement.customAd = qg.createCustomAd({
                    posId: window.nativeAdId,
                    style: {
                        // left: Advertisement.data.screenWidth / 4,
                        // top: Advertisement.data.screenHeight / 8
                        left: 0,
                        top: Advertisement.data.screenHeight / 5
                    }
                });
                Advertisement.customAd.onError(err => {
                    console.log("原生模板广告加载失败", err);
                });
                Advertisement.customAd.show().then(() => {
                    console.log('原生模板广告展示完成');
                }).catch((err) => {
                    console.log('原生模板广告展示失败', JSON.stringify(err));
                });
                //原生广告关闭回调
                // Advertisement.customAd.onClose(function() {
                //     Advertisement.bannerAdverV();
                // })
            }
            Advertisement.bannerAdverV();
        } else (
            console.log('周一五')
        );
    };

    //销毁原生
    Advertisement.DestroyV = function () {
        Advertisement.customAd.destroy();
    };

    //VIVObanner广告
    Advertisement.bannerAdverV = function () {
        return;
        if (Advertisement.boolBannerVivo) {
            //销毁之前存在的banner广告
            if (Advertisement.bannerAd != null) {
                Advertisement.bannerAd.destroy();
                Advertisement.bannerAd = null;
            }
            Advertisement.boolBannerVivo = false;
            Advertisement.bannerAd = qg.createBannerAd({
                posId: window.bannerAdId, //输入广告ID
                style: {
                    // left:0,
                    // top:0
                }
            });
            let adshow = Advertisement.bannerAd.show();
            // 调用then和catch之前需要对show的结果做下判空处理，防止出错（如果没有判空，在平台版本为1052以及以下的手机上将会出现错误）
            adshow && adshow.then(() => {
                console.log("banner广告展示成功");
                Advertisement.resNode.scheduleOnce(function () {
                    Advertisement.boolBannerVivo = true;
                }, 10);
            }).catch((err) => {
                switch (err.code) {
                    case 30003:
                        console.log("新用户7天内不能曝光Banner，请将手机时间调整为7天后，退出游戏重新进入");
                        //   qg.showToast({
                        //       message: "banner广告展示失败：30003"
                        //   });
                        break;
                    case 30009:
                        console.log("10秒内调用广告次数超过1次，10秒后再调用");
                        //   qg.showToast({
                        //       message: "banner广告展示失败：30009"
                        //   });
                        setTimeout(() => {
                            retryShow2();
                        }, 10000);
                        break;
                    case 30002:
                        console.log("加载广告失败，重新加载广告");
                        //   qg.showToast({
                        //       message: "banner广告展示失败：30002"
                        //   });
                        setTimeout(() => {
                            retryShow();
                        }, 10000);
                        break;
                    default:
                        // 参考 https://minigame.vivo.com.cn/documents/#/lesson/open-ability/ad?id=广告错误码信息 对错误码做分类处理
                        console.log("banner广告展示失败");
                        console.log(JSON.stringify(err));
                        //   qg.showToast({
                        //       message: `banner广告展示失败${JSON.stringify(err)}`
                        //   });
                        break;
                }
            });
            Advertisement.bannerAd.onClose(function () {
                Advertisement.resNode.scheduleOnce(function () {
                    // Advertisement.boolBannerVivo = true;
                    Advertisement.bannerAdverV();

                }, 60);
            });

            function retryShow() {
                let bannerAdRetey = qg.createBannerAd({
                    posId: window.bannerAdId, //输入广告ID
                    style: {}
                });
                let adShowRetry = bannerAdRetey.show();
                adShowRetry && adShowRetry.catch((error) => {
                    console.log("banner广告展示失败-重试");
                    console.log(JSON.stringify(error));
                    // qg.showToast({
                    //     message: `banner广告展示失败-重试${JSON.stringify(error)}`
                    // });
                });
            }

            function retryShow2() {
                Advertisement.boolBannerVivo = true;
            }

        }

    };
    //#endregion

    //#region OPPO
    //oppo广告初始化  在游戏最开始初始化的时候调用
    // Advertisement.oppoAdInit = function () {
    //     qg.initAdService({
    //         appId: window.gameId,     //输入APPID
    //         isDebug: true,
    //         success: function (res) {
    //             console.log("success");
    //         },
    //         fail: function (res) {
    //             console.log("fail:" + res.code + res.msg);
    //         },
    //         complete: function (res) {
    //             console.log("complete");
    //         }
    //     });
    // }

    // Advertisement.insertAdverV = function () {
    //     console.log("点击原生");
    //     // if (qg.createCustomAd && Advertisement.data) {
    //     Advertisement.customAd = qg.createCustomAd({
    //         adUnitId: window.nativeAdId,
    //         style: {
    //             // top: 0,
    //             // // left: 0,
    //             // width: 1200
    //             left: 300,
    //             top: Advertisement.data.screenHeight / 8,
    //             width: Advertisement.data.screenWidth - 600
    //         }
    //     })
    //     Advertisement.customAd.onLoad(() => {
    //         console.log('customAd广告加载成功')
    //     })
    //     Advertisement.customAd.onError((err) => {
    //         console.log(err)
    //     })
    //     Advertisement.customAd.show().then(() => {
    //         console.log('show success')
    //     }).catch((error) => {
    //         console.log('show fail with:' + error.errCode + ',' + error.errMsg)
    //     })
    // }

    // Advertisement.insertAdverV3 = function () {
    //     this.testDate = new Date();
    //     if (
    //         // (this.getWeekDate() == "周六" || this.getWeekDate() == "周日") 
    //         // ||
    //         ((Number(this.testDate.getMonth()) + 1) != 3 && Number(this.testDate.getDate()) != 29)
    //         // ||
    //         //     ((Number(this.testDate.getHours()) >= 17) && (Number(this.testDate.getHours()) <= 23 && Number(this.testDate.getMinutes()) <= 50))
    //     ) {
    //         console.log('周六日或十月1-7')
    //         console.log("点击原生");
    //         // if (qg.createCustomAd && Advertisement.data) {
    //         //     Advertisement.customAd = qg.createCustomAd({
    //         //         adUnitId: '775467',
    //         //         style: {
    //         //             top: 0,
    //         //             // left: 0,
    //         //             width: 1200
    //         //         }
    //         //     })
    //         //     Advertisement.customAd.onLoad(() => {
    //         //         console.log('customAd广告加载成功')
    //         //     })
    //         //     Advertisement.customAd.onError((err) => {
    //         //         console.log(err)
    //         //     })
    //         //     Advertisement.customAd.show().then(() => {
    //         //         console.log('show success')
    //         //     }).catch((error) => {
    //         //         console.log('show fail with:' + error.errCode + ',' + error.errMsg)
    //         //     })
    //         Advertisement.nativeAdV();
    //     }
    //     else (
    //         console.log('周一五')
    //     )
    // }

    //销毁原生
    // Advertisement.DestroyV = function () {
    //     Advertisement.customAd.destroy();
    // }

    // //VIVObanner广告
    // Advertisement.bannerAdverV = function () {
    //     if (Advertisement.bannerAd != null) {
    //         return;
    //     }
    //     if (Advertisement.bannerc < 5) {
    //         if (Advertisement.bannerAd != null) {
    //             Advertisement.bannerAd.destroy();
    //             Advertisement.bannerAd = null;
    //         }
    //         Advertisement.bannerAd = qg.createBannerAd({
    //             posId: window.bannerAdId
    //         })
    //         Advertisement.bannerAd.show()
    //         Advertisement.bannerAd.onShow(function () {
    //             console.log("banner 广告显示");

    //         })
    //         Advertisement.bannerAd.onHide(function () {
    //             Advertisement.bannerc++;
    //             Laya.LocalStorage.setItem('userbanner', Advertisement.bannerc);
    //             Advertisement.bannerAd.hide();
    //             Advertisement.bannerAd.destroy()
    //             Advertisement.bannerAd = null;
    //         })
    //         Advertisement.bannerAd.onError(function (err) {
    //             console.log(err);
    //             Advertisement.bannerAd.destroy()
    //             Advertisement.bannerAd = null;
    //         })
    //     }
    // }


    // Advertisement.bannerDestroy = function () {
    //     if (Advertisement.bannerAd != null) {
    //         Advertisement.bannerAd.destroy();
    //         Advertisement.bannerAd = null;
    //         Advertisement.bannersize = false;
    //     }
    // }

    // //VIVO自渲染原生插屏广告
    // Advertisement.insertAdverV = function () {
    //     var Image = Laya.Image;
    //     Advertisement.native = false;
    //     Laya.timer.once(10 * 1000, this, () => {
    //         Advertisement.native = true;
    //     });
    //     //Advertisement.resNode.scheduleOnce(function(){
    //     // Advertisement.native = true;//841323
    //     //},10)
    //     let nativeAd = qg.createNativeAd({
    //         posId: window.nativeAdId
    //     });
    //     let adLoad = nativeAd.load();
    //     adLoad && adLoad.then(() => {
    //         console.log('原生广告读取完成', JSON.stringify(res));
    //     }).catch(err => {
    //         console.log('加载失败', JSON.stringify(err));
    //         // console.log("进入插屏");
    //         // const interstitialAd = qg.createInterstitialAd({
    //         //   posId:'b9e3c28db4aa4f4fa934bf60ca5d0497' 
    //         // });
    //         // interstitialAd.onError(err => {
    //         //   console.log("插屏广告加载失败", err);
    //         // });
    //         // interstitialAd.show().then(()=>{ 
    //         //   console.log('插屏广告展示完成');
    //         // }).catch((err)=>{
    //         //   console.log('插屏广告展示失败', JSON.stringify(err));
    //         // })
    //     })
    //     nativeAd.onLoad(function (res) {
    //         console.log('原生广告加载完成', JSON.stringify(res));
    //         if (res && res.adList) {
    //             Advertisement.adId = res.adList[0].adId;
    //             console.log(res.adList[0]);
    //             // Laya.loader.load(res.adList[0].imgUrlList[0],Laya.Handler.create(Advertisement,function() {
    //             // Use texture to create sprite frame
    //             //var sprite  = new cc.SpriteFrame(texture);
    //             console.log('原生广告展现后续');
    //             reportAdShow();
    //             //Advertisement.resNode.scheduleOnce(function(){
    //             //console.log(Laya.loader.getRes(res.adList[0].imgUrlList[0]));
    //             //console.log(res.adList[0].imgUrlList);
    //             //let texture = Laya.loader.getRes(res.adList[0].imgUrlList[0]);
    //             // console.log(texture)
    //             if (Advertisement.nativeAdn == null) {
    //                 Advertisement.nativeAdn = new Laya.Sprite();
    //                 Advertisement.nativeAdn.width = 600;
    //                 Advertisement.nativeAdn.height = 500;
    //                 Advertisement.nativeAdn.pivotX = 300;
    //                 Advertisement.nativeAdn.pivotY = 250;
    //                 Advertisement.nativeAdn.x = Laya.stage.width / 2;
    //                 Advertisement.nativeAdn.y = Laya.stage.height / 2;
    //                 Advertisement.nativeAdn.visible = false;
    //                 // Advertisement.nativeAdn.mouseEnabled = true;
    //                 // Advertisement.nativeAdn.mouseThrough = false;  
    //                 Advertisement.nativeAdn.hitTestPrior = false;
    //                 Advertisement.nativeAdn.zOrder = 100;
    //                 Laya.stage.addChild(Advertisement.nativeAdn);

    //                 // Advertisement.imag = new Laya.Sprite();
    //                 // Advertisement.imag.width = 30;
    //                 // Advertisement.imag.height = 30;
    //                 // Advertisement.imag.pivotX = 15;
    //                 // Advertisement.imag.pivotY = 15;
    //                 // Advertisement.imag.x = Advertisement.nativeAdn.width-Advertisement.imag.width;
    //                 // Advertisement.imag.y = Advertisement.imag.height;
    //                 // Advertisement.imag.visible = true;
    //                 // Advertisement.imag.mouseEnabled = true;
    //                 // Advertisement.imag.mouseThrough = false;  
    //                 // Advertisement.imag.loadImage('res/btn_close.png');
    //                 // Advertisement.nativeAdn.addChild(Advertisement.imag);

    //                 Advertisement.closeBtn = new Laya.Image();
    //                 Advertisement.closeBtn.width = 28;
    //                 Advertisement.closeBtn.height = 28;
    //                 Advertisement.closeBtn.pivotX = 22.5;
    //                 Advertisement.closeBtn.pivotY = 22.5;
    //                 Advertisement.closeBtn.x = Advertisement.nativeAdn.width - Advertisement.closeBtn.width / 2;
    //                 Advertisement.closeBtn.y = Advertisement.closeBtn.height / 2;
    //                 Advertisement.closeBtn.visible = true;
    //                 // Advertisement.closeBtn.mouseEnabled = true;
    //                 // Advertisement.closeBtn.mouseThrough = false;  
    //                 Advertisement.closeBtn.loadImage('res/atlas/btn_close.png');
    //                 Advertisement.nativeAdn.addChild(Advertisement.closeBtn);

    //                 // Advertisement.nativeAdn.on(Laya.Event.MOUSE_UP,Advertisement.nativeAdn,reportAdClick);
    //                 // Advertisement.closeBtn.on(Laya.Event.MOUSE_UP,Advertisement.closeBtn,close_Btn);
    //             }
    //             //Advertisement.imag.visible = true;
    //             // //},0.3);
    //             //Advertisement.nativeAdn.loadImage(res.adList[0].imgUrlList[0]);
    //             Advertisement.nativeAdn.texture = res.adList[0].imgUrlList[0];
    //             console.log(Advertisement.nativeAdn.texture, '原生广告图片');
    //             //Advertisement.closet = false;
    //             //Advertisement.nativeAdn.texture = texture;
    //             //Advertisement.nativeAdl.text = res.adList[0].title;
    //             //console.log( Advertisement.imag,'图片');
    //             // var dialog = new Image(res.adList[0].imgUrlList[0]);
    //             // dialog.pos(0,0);
    //             // dialog.anchorX = 0;
    //             // dialog.anchorY = 0;
    //             // dialog.width = 640;
    //             // dialog.height = 480;

    //             // Advertisement.nativeAdn.addChild(dialog);
    //             // console.log(dialog);
    //             // console.log(dialog.source);
    //             // Laya.loader.load('http://pfs.pinduoduo.com/phone_adx/5f5d6df62b38bd897bab7dec3e1455be.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DoHMACf6FzEmrUMOe8Hman8EKSbi2WB3e%26q-sign-time%3D1599709456%3B1600055056%26q-key-time%3D1599709456%3B1600055056%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D6f0bf19129f54fd2b744802a36a6ec721c5094a1',Laya.Handler.create(this, function(){
    //             //   let texture = Laya.loader.getRes('http://pfs.pinduoduo.com/phone_adx/5f5d6df62b38bd897bab7dec3e1455be.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DoHMACf6FzEmrUMOe8Hman8EKSbi2WB3e%26q-sign-time%3D1599709456%3B1600055056%26q-key-time%3D1599709456%3B1600055056%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D6f0bf19129f54fd2b744802a36a6ec721c5094a1');
    //             //   console.log(texture);
    //             //   let sp = new Laya.Sprite();
    //             //   sp.texture = texture;
    //             //   Laya.stage.addChild(sp);
    //             // }));
    //             //  Advertisement.imag.skin = res.adList[0].imgUrlList[0];
    //             //  console.log(Advertisement.imag.skin,'图片皮肤显示');
    //             //  console.log( Advertisement.imag,'图片');
    //             if (Advertisement.adLabel == null) {
    //                 let te = new Laya.Label();
    //                 te.text = "广告";
    //                 te.fontSize = 30;
    //                 te.color = "#FFFFFF";
    //                 te.bottom = 0;
    //                 te.right = 0;
    //                 Advertisement.adLabel = te;
    //                 Advertisement.nativeAdn.addChild(te);
    //             }
    //             // if(Advertisement.advs == "shop")
    //             // {
    //             //   Advertisement.nativeAdn.x = Laya.stage.width/2;
    //             //   Advertisement.nativeAdn.y = Laya.stage.height/3.5;
    //             // }
    //             // else
    //             // {
    //             //   Advertisement.nativeAdn.x = Laya.stage.width/2;
    //             //   Advertisement.nativeAdn.y = Laya.stage.height/2.5;
    //             // }
    //             Advertisement.nativeAdn.visible = true;
    //             Advertisement.nativeAdn.on(Laya.Event.MOUSE_UP, Advertisement.nativeAdn, reportAdClick);
    //             Advertisement.closeBtn.on(Laya.Event.MOUSE_DOWN, Advertisement.closeBtn, close_Btn);
    //             // }));
    //         }
    //     })
    //     // 注意：需要先调用reportAdShow上报广告曝光，才能调用reportAdClick去上报点击！！！
    //     function close_Btn() {
    //         Advertisement.nativeAdn.visible = false;
    //         Advertisement.closet = true;
    //     }
    //     function reportAdShow() {
    //         nativeAd.reportAdShow({ adId: Advertisement.adId });
    //     }
    //     function reportAdClick() {
    //         if (Advertisement.closet) {
    //             Advertisement.closet = false;
    //             return;
    //         }
    //         // if(Advertisement.nativeAdtouch)
    //         // {
    //         //   return;
    //         // }
    //         // Advertisement.nativeAdtouch = true;
    //         nativeAd.reportAdClick({ adId: Advertisement.adId });
    //     }
    // }

    // //Cocos OPPO原生
    // Advertisement.insertAdverV = function () {
    //     Advertisement.native = false;
    //     Advertisement.resNode.scheduleOnce(function () {
    //         Advertisement.native = true;
    //     }, 10)
    //     let nativeAd = qg.createNativeAd({
    //         posId: window.nativeAdId,
    //     });
    //     let adLoad = nativeAd.load();
    //     adLoad && adLoad.then(() => {
    //         console.log('原生广告读取完成', JSON.stringify(res));
    //     }).catch(err => {
    //         console.log('加载失败', JSON.stringify(err));
    //     })
    //     nativeAd.onLoad(function (res) {
    //         console.log('原生广告加载完成', JSON.stringify(res));
    //         if (res && res.adList) {
    //             Advertisement.adId = res.adList[0].adId;
    //             // cc.loader.load(res.adList[0].imgUrlList[0], function (err, texture) {
    //             cc.assetManager.loadRemote(res.adList[0].iconUrlList[0], { ext: '.png' }, function (err, texture) {
    //                 console.log(11111111);
    //                 if (err) {
    //                     console.log(222222222);
    //                     console.log(err);
    //                 }
    //                 console.log(33333333);
    //                 // Use texture to create sprite frame
    //                 var sprite = new cc.SpriteFrame(texture);
    //                 reportAdShow();
    //                 // Advertisement.resNode.scheduleOnce(function(){
    //                 Advertisement.nativeAdn.active = true;
    //                 // },0.3);
    //                 Advertisement.nativeAdimg.getComponent(cc.Sprite).spriteFrame = sprite;
    //                 Advertisement.nativeAdl.getComponent(cc.Label).string = res.adList[0].title;
    //                 Advertisement.nativeAdn.on(cc.Node.EventType.TOUCH_START, reportAdClick, Advertisement.nativeAdn);
    //             });
    //         }
    //     })
    //     // 注意：需要先调用reportAdShow上报广告曝光，才能调用reportAdClick去上报点击！！！
    //     function reportAdShow() {
    //         nativeAd.reportAdShow({ adId: Advertisement.adId });
    //     }
    //     function reportAdClick() {
    //         // if(Advertisement.nativeAdtouch)
    //         // {
    //         //   return;
    //         // }
    //         Advertisement.nativeAdtouch = true;
    //         nativeAd.reportAdClick({ adId: Advertisement.adId });
    //     }
    //     // this.customAd.show().then(() => {
    //     //     console.log("show success");
    //     // }).catch((error) => {
    //     //     console.log("show fail with:" + error.errCode + "," + error.errMsg);
    //     // });
    // }
    //#endregion

    //#region 通用
    //获取当前是周几
    Advertisement.getWeekDate = function () {
        var now = new Date();
        var day = now.getDay();
        var weeks = new Array(
            "周日",
            "周一",
            "周二",
            "周三",
            "周四",
            "周五",
            "周六",
        );
        var week = weeks[day];
        console.log(week);
        return week;
    };

    //  import Advertisement = require('');
    // import Advertisement from "";
    // let Advertisement = require("Advertisement_API");
    // Advertisement.rewarda = 'reward1';
    // Advertisement.videop = this;
    // Advertisement.videoAdverV();
    // //VIVO激励视频

    Advertisement.videoAdverV = function (e) {
        if (Laya.Browser.onVVMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onHWMiniGame) {
            Advertisement.videop = e;

            if (Advertisement.videoAd == null) {
                Advertisement.videoAd = qg.createRewardedVideoAd({
                    posId: window.videoAdId //输入广告ID
                });
                Advertisement.videoAd.onLoad(() => {
                    console.log("激励视频已加载");
                    // cc.audioEngine.pauseAll();
                    var adshow = Advertisement.videoAd.show();
                    // 调用then和catch之前需要对show的结果做下判空处理，防止出错（如果没有判空，在平台版本为1052以及以下的手机上将会出现错误）
                    Advertisement.reward = true;
                    adshow && adshow.then(() => {
                        console.log("激励视频广告显示成功");
                    }).catch(err => {
                        console.log("激励视频广告显示失败", err);
                        Advertisement.errorNode.opacity = 255;
                        setTimeout(() => {
                            Advertisement.errorNode.opacity = 0;
                        }, 3000);
                    });
                });
                Advertisement.videoAd.onError(err => {
                    console.log("激励视频异常", err);
                });
                Advertisement.videoAd.onClose(res => {
                    if (res && res.isEnded) {
                        if (Advertisement.reward) //判断是否发放过奖励
                        {
                            Advertisement.reward = false;
                            // cc.audioEngine.resumeAll();

                            Advertisement.videop && Advertisement.videop();
                            Advertisement.videop = null;
                        }
                    } else {
                        console.log("播放中途退出，不下发游戏奖励");
                        // cc.audioEngine.resumeAll();

                        Advertisement.videop = null;
                    }
                });
            }
            var adload = Advertisement.videoAd.load();

            // 调用then和catch之前需要对load的结果做下判空处理，防止出错（如果没有判空，在平台版本为1052以及以下的手机上将会出现错误）
            adload && adload.then(() => {
                console.log("激励视频广告加载成功");
            }).catch(err => {
                console.log("激励视频广告加载失败", err);
                // Advertisement.errorNode.opacity = 255;
                // setTimeout(() => {
                //     Advertisement.errorNode.opacity = 0;
                // }, 3000);
                qg.showToast({
                    message: "当前无广告，请稍后尝试"
                });
            });
        } else {
            e();
        }
    };

    Advertisement.bannerDestroy = function () {
        if (Advertisement.bannerAd != null) {
            Advertisement.bannerAd.destroy();
            Advertisement.bannerAd = null;
            Advertisement.bannersize = false;
        }
    };

    // module.exports = Advertisement;

    !(function () {
    	"use strict";
    	var e;
    	!(function (e) {
    		(e[(e.ANDROID = 0)] = "ANDROID"),
    			(e[(e.APPLE = 1)] = "APPLE"),
    			(e[(e.BAIDU = 2)] = "BAIDU"),
    			(e[(e.OPPO = 3)] = "OPPO"),
    			(e[(e.QQGAME = 4)] = "QQGAME"),
    			(e[(e.TOUTIAO = 5)] = "TOUTIAO"),
    			(e[(e.VIVO = 6)] = "VIVO"),
    			(e[(e.WEB = 7)] = "WEB"),
    			(e[(e.WEIXIN = 8)] = "WEIXIN");
    	})(e || (e = {}));
    	class t extends Laya.Script {
    		constructor() {
    			super(...arguments), (this.isDebug = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new t()), this._instance.init(), this._instance);
    		}
    		init() { }
    		initAds(e) {
    			(this._view = e),
    				(this.ads = this._view.getChild("AdsSimulator").asGroup),
    				(this.loading = this._view.getChild("loading1").asImage),
    				(this.ads_close = this._view.getChild("close").asButton),
    				(this.ads_cancel = this._view.getChild("cancel").asButton),
    				(this.ads_timer = this._view.getChild("toast1").asGroup),
    				(this.ads_timer_label = this._view.getChild("content1").asLabel),
    				(this.ads_image = this._view.getChild("n13").asImage),
    				this.ads_close.onClick(this, this.OnCloseAdsClick),
    				this.ads_cancel.onClick(this, this.OnCancelAdsClick),
    				(this.ads.visible = !1);
    		}
    		ShowAds(e, t) {
    			(this._view.visible = !0),
    				(this.on_ads_success = e),
    				(this.on_ads_fail = t),
    				(this.ads.visible = !0),
    				(this.ads_image.visible = !0),
    				(this.ads_close.visible = !1),
    				(this.ads_timer.visible = !0),
    				(this.ads_timer_label.text = Gt.instance.testAdTime + "秒后可获得奖励"),
    				(this.ads_reward_time = Gt.instance.testAdTime),
    				(this.loading.visible = !0),
    				Laya.timer.loop(1e3, this, this.ShowAdsTimer);
    		}
    		ShowAdsTimer() {
    			this.ads_reward_time--,
    				(this.ads_timer_label.text = this.ads_reward_time + "秒后可获得奖励"),
    				this.ads_reward_time <= 0 &&
    				(Laya.timer.clear(this, this.ShowAdsTimer),
    					(this.ads.visible = !1),
    					this.on_ads_success && this.on_ads_success(),
    					(this.ads_timer.visible = !1));
    		}
    		OnCloseAdsClick() {
    			(this.ads.visible = !1),
    				(this._view.visible = !1),
    				Laya.timer.clear(this, this.ShowAdsTimer),
    				this.on_ads_success && this.on_ads_success();
    		}
    		OnCancelAdsClick() {
    			(this.ads.visible = !1),
    				(this._view.visible = !1),
    				Laya.timer.clear(this, this.ShowAdsTimer),
    				this.on_ads_fail && this.on_ads_fail();
    		}
    		OnJumpGame() { }
    		OnShareGame() { }
    		Random(e, t) {
    			return Math.floor(Math.random() * (t - e + 1)) + e;
    		}
    	}
    	class s {
    		static JudgeArea(e, t) {
    			this.POST("https://www.dreamgear82.com/getLocalnew.php", "", function (s) {
    				if (t)
    					if (s) {
    						console.log("resp == " + s);
    						for (let i = 0, a = e.length; i < a; i++) if (s.indexOf(e[i]) > -1) return void t(!0);
    						t(!1);
    					} else t(!0);
    			});
    		}
    		static POST(e, t, s) {
    			let i = new XMLHttpRequest();
    			(i.onreadystatechange = function () {
    				if (4 == i.readyState && i.status >= 200 && i.status <= 207) {
    					let e = i.responseText;
    					null != s && s(e);
    				} else i.readyState > 3 && s(null);
    			}),
    				i.open("POST", e),
    				i.send(t);
    		}
    		static GET(e, t) {
    			let s = new XMLHttpRequest();
    			(s.onreadystatechange = function () {
    				if (4 == s.readyState && s.status >= 200 && s.status <= 207) {
    					let e = s.responseText;
    					null != t && t(e);
    				} else s.readyState > 3 && t(null);
    			}),
    				s.open("GET", e),
    				s.send();
    		}
    	}
    	class i { }
    	class a {
    		constructor() {
    			(this.iconUrl = ""), (this.jumpKey = ""), (this.mark = ""), (this.mid = ""), (this.txt = "");
    		}
    		initData(e, t, s, i, a) {
    			(this.iconUrl = e), (this.jumpKey = t), (this.mark = s), (this.mid = i), (this.txt = a);
    		}
    	}
    	var n = {};
    	!(function (e, t) {
    		for (var s in t) e[s] = t[s];
    	})(
    		n,
    		(function (e) {
    			var t = {};
    			function n(s) {
    				if (t[s]) return t[s].exports;
    				var i = (t[s] = {
    					i: s,
    					l: !1,
    					exports: {},
    				});
    				return e[s].call(i.exports, i, i.exports, n), (i.l = !0), i.exports;
    			}
    			return (
    				(n.m = e),
    				(n.c = t),
    				(n.d = function (e, t, s) {
    					n.o(e, t) ||
    						Object.defineProperty(e, t, {
    							configurable: !1,
    							enumerable: !0,
    							get: s,
    						});
    				}),
    				(n.r = function (e) {
    					Object.defineProperty(e, "__esModule", {
    						value: !0,
    					});
    				}),
    				(n.n = function (e) {
    					var t =
    						e && e.__esModule
    							? function () {
    								return e.default;
    							}
    							: function () {
    								return e;
    							};
    					return n.d(t, "a", t), t;
    				}),
    				(n.o = function (e, t) {
    					return Object.prototype.hasOwnProperty.call(e, t);
    				}),
    				(n.p = ""),
    				n((n.s = 1))
    			);
    		})([
    			function (e, t, s) {
    				Object.defineProperty(t, "__esModule", {
    					value: !0,
    				});
    				var i = (function () {
    					function t() { }
    					return (
    						(t.lerr = function () {
    							for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
    							e.unshift("====>"), console.error.apply(window, e);
    						}),
    						(t.llog = function () {
    							for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
    							e.unshift("====>"), console.log.apply(window, e);
    						}),
    						(t.twoInt = function (e) {
    							return e < 10 ? "0" + e : e;
    						}),
    						(t.todayStr = function () {
    							var e = new Date();
    							return "" + e.getFullYear() + t.twoInt(e.getMonth() + 1) + t.twoInt(e.getDate());
    						}),
    						(t.randomInt = function (e, t) {
    							return Math.floor(Math.random() * (t - e + 1) + e);
    						}),
    						(t.saveData = function (e, t) {
    							var s = window.localStorage;
    							s && s.setItem("kcSdk_" + e, t);
    						}),
    						(t.loadData = function (e) {
    							var t = window.localStorage;
    							if (t) {
    								var s = t.getItem("kcSdk_" + e);
    								if (s) return s;
    							}
    							return null;
    						}),
    						(t.encodeUTF8 = function (e) {
    							var t,
    								s,
    								i,
    								a = [];
    							for (t = 0; t < e.length; t++)
    								(s = e.charCodeAt(t)) < 128
    									? a.push(s)
    									: s < 2048
    										? a.push(192 + ((s >> 6) & 31), 128 + (63 & s))
    										: ((i = 55296 ^ s) >> 10 == 0
    											? ((s = (i << 10) + (56320 ^ e.charCodeAt(++t)) + 65536),
    												a.push(240 + ((s >> 18) & 7), 128 + ((s >> 12) & 63)))
    											: a.push(224 + ((s >> 12) & 15)),
    											a.push(128 + ((s >> 6) & 63), 128 + (63 & s)));
    							return a;
    						}),
    						(t.s = function (e) {
    							var s,
    								i,
    								a,
    								n = new Uint8Array(t.encodeUTF8(e)),
    								o = 16 + (((n.length + 8) >>> 6) << 4);
    							for (
    								(e = new Uint8Array(o << 2)).set(new Uint8Array(n.buffer)),
    								e = new Uint32Array(e.buffer),
    								a = new DataView(e.buffer),
    								s = 0;
    								s < o;
    								s++
    							)
    								e[s] = a.getUint32(s << 2);
    							(e[n.length >> 2] |= 128 << (24 - 8 * (3 & n.length))), (e[o - 1] = n.length << 3);
    							var r = [],
    								c = [
    									function () {
    										return (g[1] & g[2]) | (~g[1] & g[3]);
    									},
    									function () {
    										return g[1] ^ g[2] ^ g[3];
    									},
    									function () {
    										return (g[1] & g[2]) | (g[1] & g[3]) | (g[2] & g[3]);
    									},
    									function () {
    										return g[1] ^ g[2] ^ g[3];
    									},
    								],
    								h = function (e, t) {
    									return (e << t) | (e >>> (32 - t));
    								},
    								l = [1518500249, 1859775393, -1894007588, -899497514],
    								g = [1732584193, -271733879, null, null, -1009589776];
    							for (g[2] = ~g[0], g[3] = ~g[1], s = 0; s < e.length; s += 16) {
    								var u = g.slice(0);
    								for (i = 0; i < 80; i++)
    									(r[i] = i < 16 ? e[s + i] : h(r[i - 3] ^ r[i - 8] ^ r[i - 14] ^ r[i - 16], 1)),
    										(a = (h(g[0], 5) + c[(i / 20) | 0]() + g[4] + r[i] + l[(i / 20) | 0]) | 0),
    										(g[1] = h(g[1], 30)),
    										g.pop(),
    										g.unshift(a);
    								for (i = 0; i < 5; i++) g[i] = (g[i] + u[i]) | 0;
    							}
    							for (a = new DataView(new Uint32Array(g).buffer), s = 0; s < 5; s++) g[s] = a.getUint32(s << 2);
    							return Array.prototype.map
    								.call(new Uint8Array(new Uint32Array(g).buffer), function (e) {
    									return (e < 16 ? "0" : "") + e.toString(16);
    								})
    								.join("");
    						}),
    						(t.b = function (e) {
    							var t = [];
    							for (var s in e) t.push(s);
    							t = t.sort();
    							for (var i = "", a = 0; a < t.length; a++) {
    								var n = e[t[a]];
    								"object" == typeof n && (n = this.b(n)), (i += t[a] + n);
    							}
    							return i;
    						}),
    						(t.a = function (e, s, i) {
    							var a = [];
    							for (var n in e) null !== e[n] && void 0 !== e[n] ? a.push(n) : delete e[n];
    							a = a.sort();
    							var o = t.b(e);
    							return s && (o += s), (o += i || "pH0Xhyenu2e1zdUg"), t.s(o);
    						}),
    						(t.jax = function (e, s, i) {
    							i ||
    								(i = function (e) {
    									if (e) return t.lerr(e);
    								});
    							var a = new XMLHttpRequest(),
    								n = new Date().getTime();
    							(s.s = t.a(s, n)),
    								a.open("POST", e, !0),
    								a.setRequestHeader("Content-Type", "application/json; charset=utf-8"),
    								a.setRequestHeader("ts", "" + n);
    							var o = JSON.stringify(s);
    							a.send(o),
    								(a.onload = function () {
    									if (200 == a.status) {
    										var e = {
    											jaxERR: "" + a.responseText,
    										};
    										try {
    											e = JSON.parse(a.responseText);
    										} catch (e) {
    											e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
    											return (
    												t.lerr(e),
    												i(null, {
    													re: "1111",
    													err: "jsonErr:" + a.responseText,
    												})
    											);
    										}
    										return i(null, e);
    									}
    									return i(null, {
    										re: "9" + a.status,
    									});
    								});
    						}),
    						t
    					);
    				})();
    				(t.jax = i.jax),
    					(t.llog = i.llog),
    					(t.lerr = i.lerr),
    					(t.saveData = i.saveData),
    					(t.loadData = i.loadData),
    					(t.randomInt = i.randomInt),
    					(t.todayStr = i.todayStr);
    			},
    			function (e, s, i) {
    				Object.defineProperty(s, "__esModule", {
    					value: !0,
    				});
    				var a = i(0),
    					n = (function () {
    						function t() {
    							(this.version = "203"),
    								(this.jumpGap = 3e3),
    								(this.lastJumpT = 0),
    								(this.htHost = "https://dk.gametdd.com/htApi/ht_api/"),
    								(this.picType = "jpg"),
    								(this.stageTime = 0);
    						}
    						return (
    							(t.instance = function () {
    								return t.me ? t.me : ((t.me = new t()), t.me);
    							}),
    							(t.prototype.getUid = function () {
    								return t.Uid ? t.Uid : ((t.Uid = a.loadData("uid")), t.Uid || "null");
    							}),
    							(t.prototype.getOpenId = function () {
    								return t.openId ? t.openId : ((t.openId = a.loadData("openId")), t.openId || "null");
    							}),
    							(t.prototype.setUid = function (e) {
    								e && ((t.Uid = e), a.saveData("uid", e));
    							}),
    							(t.prototype.setOpenId = function (e) {
    								e && ((t.openId = e), a.saveData("openId", e));
    							}),
    							(t.prototype.jht = function (e, s, i) {
    								t.Gid
    									? ((s.v = this.version),
    										a.jax(this.htHost + e, s, function (e, t) {
    											return e || !t
    												? (a.llog("jhtERR", e), i(e || new Error("no re")))
    												: 0 !== t.re
    													? (a.llog("jht FAILED!" + JSON.stringify(t)), i(new Error("err:" + t.re)))
    													: void i(null, t);
    										}))
    									: a.llog("htSdk 未初始化!!jht");
    							}),
    							(t.prototype.init = function (e, s, i) {
    								var n = this;
    								if ((a.llog("HTS init v:" + this.version + "," + e + "," + !!s), !e))
    									return a.llog("HTS no gid."), i(new Error("htSdk 无gid"));
    								t.Gid = e;
    								var o = a.loadData("htHost");
    								o && (this.htHost = o);
    								var r = a.loadData("picType");
    								r && (this.picType = r);
    								var c = {
    									gid: e,
    									uid: this.getUid(),
    									openId: this.getOpenId(),
    								};
    								a.llog("hts init start..." + this.picType + "," + this.htHost),
    									this.jht("init2", c, function (e, o) {
    										e
    											? i(e)
    											: (a.llog("hts init done:" + o.re),
    												n.setUid(o.uid),
    												o.iconPre && (t.IconPre = o.iconPre),
    												o.picType && ((n.picType = o.picType), a.saveData("picType", o.picType)),
    												o.jumpGap && (n.jumpGap = o.jumpGap),
    												i(null, "ok"),
    												o.htHost && o.htHost !== n.htHost && ((n.htHost = o.htHost), a.saveData("htHost", o.htHost)),
    												s || (s = window.wx));
    									});
    							}),
    							(t.prototype.getBox = function (e, s) {
    								var i = this;
    								if (!t.IconPre || !t.Gid)
    									return a.llog("htSdk 未初始化!!" + t.IconPre), s(new Error("htSdk 未初始化 getBox"));
    								var n = {
    									bid: e,
    								};
    								this.jht("getBox", n, function (a, n) {
    									if (a) return s(a);
    									if (0 !== n.re || !n.arr) return s(new Error("服务配置有误bid:" + e + ",re:" + n.re));
    									for (var o = [], r = 0; r < n.arr.length; r++) {
    										for (var c = n.arr[r], h = [], l = 0; l < c.length; l++) {
    											var g = c[l].split("@"),
    												u = "",
    												d = "";
    											g.length >= 4 && "0" !== g[3] && (u = "_" + g[3]),
    												g.length >= 5 && (d = g[4]),
    												h.push({
    													jumpKey: g[1],
    													mid: g[0],
    													iconUrl: t.IconPre + g[0] + u + "." + i.picType,
    													txt: g[2],
    													mark: d,
    												});
    										}
    										o.push(h);
    									}
    									s(null, o);
    								});
    							}),
    							(t.prototype.jumpTo = function (e, s, i) {
    								var n = this;
    								if (t.Gid) {
    									var o = new Date().getTime();
    									if (o - this.lastJumpT < this.jumpGap) a.llog("jumpTo too");
    									else {
    										this.lastJumpT = o;
    										var r = {
    											gid: t.Gid,
    											uid: this.getUid(),
    											bid: e,
    											mid: s,
    										};
    										e
    											? s
    												? (i && (r.fail = "true"),
    													a.llog("jumpTo", JSON.stringify(r)),
    													this.jht("jumpTo", r, function (e, t) {
    														e || n.setUid(t.uid);
    													}))
    												: a.llog("jumpTo 无mid")
    											: a.llog("jumpTo 无bid");
    									}
    								} else a.llog("htSdk 未初始化!! jumpTo");
    							}),
    							(t.prototype.jumpFail = function (e, t) {
    								this.jumpTo(e, t, !0);
    							}),
    							(t.prototype.navigateToMiniProgram = function (e, s) {
    								if (t.Gid)
    									if ((s || (s = window.wx), s)) {
    										var i = "hts_gid=" + t.Gid,
    											n = a.loadData("hts_link");
    										n && n.length > 5 && (i += "&hts_link=" + n),
    											e.path && e.path.length > 0 ? (e.path += "&" + i) : (e.path = "?" + i),
    											s.navigateToMiniProgram(e);
    									} else a.llog("navigateToMiniProgram 无channelObj");
    								else a.llog("htSdk 未初始化!!navigateToMiniProgram");
    							}),
    							(t.prototype.jumpFrom = function (e) {
    								var s = this;
    								if (t.Gid)
    									if (e)
    										if ((a.llog("query", e), e.hts_gid)) {
    											var i = {
    												query: e,
    												gid: t.Gid,
    												uid: this.getUid(),
    												openId: this.getOpenId(),
    											};
    											a.llog("jumpFrom", JSON.stringify(i)),
    												this.jht("jumpFrom", i, function (e, t) {
    													e || (t.hts_link && a.saveData("hts_link", t.hts_link), t.uid && s.setUid(t.uid));
    												});
    										} else a.llog("jumpFrom no hts_gid:", e);
    									else a.llog("jumpFrom query is empty!", e);
    								else a.llog("htSdk 未初始化!!jumpFrom");
    							}),
    							(t.prototype.bindOpenId = function (e, s) {
    								this.jht(
    									"bindOpenId",
    									{
    										openId: e,
    										gid: t.Gid,
    										uid: this.getUid(),
    									},
    									s
    								),
    									this.setOpenId(e);
    							}),
    							(t.prototype.codeForOpenId = function (e, s) {
    								var i = this;
    								this.jht(
    									"codeForOpenId",
    									{
    										code: e,
    										uid: this.getUid(),
    										gid: t.Gid,
    									},
    									function (e, t) {
    										if (e) return a.lerr(e), s(e);
    										t.data ? (t.data.openid && i.setOpenId(t.data.openid), s(null, t.data)) : s(),
    											t.uid && i.setUid(t.uid);
    									}
    								);
    							}),
    							(t.prototype.stageLog = function (e, s, i, n) {
    								var o = {
    									eventName: e,
    									stageId: s,
    									openId: this.getOpenId(),
    									gid: t.Gid,
    									uid: this.getUid(),
    									userProps: i,
    								};
    								n && (o.stageTime = n),
    									this.jht("stageLog", o, function (e) {
    										if (e) return a.lerr(e);
    									});
    							}),
    							(t.prototype.stageStart = function (e, t) {
    								(this.stageTime = 0), this.stageLog("start", e, t);
    							}),
    							(t.prototype.stageFail = function (e, t) {
    								(this.stageTime = Date.now() - this.stageTime),
    									this.stageLog("fail", e, t, this.stageTime),
    									(this.stageTime = 0);
    							}),
    							(t.prototype.stageComplet = function (e, t) {
    								(this.stageTime = Date.now() - this.stageTime),
    									this.stageLog("complet", e, t, this.stageTime),
    									(this.stageTime = 0);
    							}),
    							(t.prototype.userUpdate = function (e) {
    								this.jht(
    									"userUpdate",
    									{
    										openId: this.getOpenId(),
    										gid: t.Gid,
    										uid: this.getUid(),
    										userProps: e,
    									},
    									function (e) {
    										if (e) return a.lerr(e);
    									}
    								);
    							}),
    							(t.prototype.eventReport = function (e, s, i) {
    								this.jht(
    									"eventReport",
    									{
    										eventName: e,
    										eventProp: s,
    										openId: this.getOpenId(),
    										gid: t.Gid,
    										uid: this.getUid(),
    										userProps: i,
    									},
    									function (e) {
    										if (e) return a.lerr(e);
    									}
    								);
    							}),
    							(t.prototype.sceneReport = function (e, s, i) {
    								this.jht(
    									"sceneReport",
    									{
    										sceneName: e,
    										sceneTime: s,
    										openId: this.getOpenId(),
    										gid: t.Gid,
    										uid: this.getUid(),
    										userProps: i,
    									},
    									function (e) {
    										if (e) return a.lerr(e);
    									}
    								);
    							}),
    							(t.prototype.getSharePic = function (e, t) {
    								this.jht(
    									"getSharePic",
    									{
    										game: e,
    									},
    									t
    								);
    							}),
    							(t.prototype.shareTo = function (e) {
    								this.jht(
    									"shareTo",
    									{
    										wxPicId: e,
    									},
    									function (t) {
    										t ? a.lerr(t) : a.llog("shareTo OK," + e);
    									}
    								);
    							}),
    							(t.prototype.shareFrom = function (e) {
    								this.jht(
    									"shareFrom",
    									{
    										wxPicId: e,
    									},
    									function (t) {
    										t ? a.lerr(t) : a.llog("shareFrom OK," + e);
    									}
    								);
    							}),
    							(t.prototype.jreq = function (e, t, s) {
    								a.jax(e, t, s);
    							}),
    							t
    						);
    					})();
    				s.default = n.instance();
    			},
    		])
    	);
    	var o = n.default;
    	class r {
    		constructor() {
    			this.htSdk = o;
    		}
    		static instance() {
    			return r.me ? r.me : ((r.me = new r()), r.me);
    		}
    		getUid() {
    			return this.htSdk.getUid();
    		}
    		init(e, t, s) {
    			this.htSdk.init(e, t, s);
    		}
    		getBox(e, t) {
    			this.htSdk.getBox(e, t);
    		}
    		jumpFrom(e) {
    			this.htSdk.jumpFrom(e);
    		}
    		jumpTo(e, t) {
    			this.htSdk.jumpTo(e, t);
    		}
    		jumpFail(e, t) {
    			this.htSdk.jumpFail(e, t);
    		}
    		navigateToMiniProgram(e, t) {
    			this.htSdk.navigateToMiniProgram(e, t);
    		}
    		bindOpenId(e, t) {
    			this.htSdk.bindOpenId(e, t);
    		}
    		codeForOpenId(e, t) {
    			this.htSdk.codeForOpenId(e, t);
    		}
    		stageStart(e, t) {
    			this.htSdk.stageStart(e, t);
    		}
    		stageFail(e, t) {
    			this.htSdk.stageFail(e, t);
    		}
    		stageComplet(e, t) {
    			this.htSdk.stageComplet(e, t);
    		}
    		stageLog(e, t, s) {
    			this.htSdk.stageLog(e, t, s);
    		}
    		userUpdate(e) {
    			this.htSdk.userUpdate(e);
    		}
    		eventReport(e, t, s) {
    			this.htSdk.eventReport(e, t, s);
    		}
    		sceneReport(e, t, s) {
    			this.htSdk.sceneReport(e, t, s);
    		}
    		getSharePic(e, t) {
    			this.htSdk.getSharePic(e, t);
    		}
    		shareTo(e) {
    			this.htSdk.shareTo(e);
    		}
    		shareFrom(e) {
    			this.htSdk.shareFrom(e);
    		}
    		jreq(e, t, s) {
    			this.htSdk.jreq(e, t, s);
    		}
    	}
    	const c = r.instance();
    	class h extends Laya.Script {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		playMenuOpenAni(e) {
    			this._content.setScale(0.1, 0.1),
    				fgui.GTween.to2(0.1, 0.1, 1, 1, 0.3)
    					.setTarget(this._content, this._content.setScale)
    					.setEase(fgui.EaseType.BackOut)
    					.onComplete(e, this);
    		}
    		playMenuCloseAni(e) {
    			this._content.setScale(1, 1),
    				fgui.GTween.to2(1, 1, 0.1, 0.1, 0.3)
    					.setTarget(this._content, this._content.setScale)
    					.setEase(fgui.EaseType.BackIn)
    					.onComplete(e, this);
    		}
    		nativeSuc() {
    			this.isDebug && console.log("nativeSuc");
    		}
    		nativeFail() {
    			this.isDebug && console.log("nativeFail");
    		}
    	}
    	class l extends Laya.Script {
    		constructor() {
    			super();
    		}
    		onEnable() { }
    		onDisable() { }
    	}
    	(l.game_channel = 1),
    		(l.isCanSkipTeach = !1),
    		(l.isUseReloadFunction = !1),
    		(l.reloadWaitTime = 10),
    		(l.isUsePreLoadInHall = !0),
    		(l.isUsePrivacyPolicy = !1),
    		(l.LOCAL_CACHE = {
    			NEWGAME: "newGame",
    			CREATEDATA: "createData",
    			PLAYER: "player",
    			SETTINGS: "settings",
    			CARINFO: "carInfo",
    			ACHIEVE: "achieve",
    			MUSEUM: "museum",
    			TIME: "time",
    			BAGINFO: "bagInfo",
    			DATA_VERSION: "dataVersion",
    			ACCOUNT: "account",
    			HISTORY: "history",
    		}),
    		(l.CAR_TYPE = {
    			DIGGER: 1,
    			ROBOT_ARM: 2,
    			BULLDOZER: 3,
    			GROUND_HAMMER: 4,
    			FORKLIFT: 5,
    		}),
    		(l.UI_STATE = {
    			UI_STATE_NONE: 0,
    			UI_STATE_HALL: 1,
    			UI_STATE_SETTING: 2,
    			UI_STATE_ONLINE_GIFT: 3,
    			UI_STATE_SING_IN: 4,
    			UI_STATE_GARAGE: 5,
    			UI_STATE_ACHIEVE: 6,
    			UI_STATE_SUPER_GIFT: 7,
    			UI_STATE_BUY_COIN: 8,
    			UI_STATE_BUY_ENERGY: 9,
    			UI_STATE_GET_REWARD: 10,
    			UI_STATE_TASK: 11,
    			UI_STATE_MISSION: 12,
    			UI_STATE_MAINGAME: 13,
    			UI_STATE_GAME_SUC: 14,
    			UI_STATE_GAME_FAIL: 15,
    			UI_STATE_LIMIT_USE: 16,
    			UI_STATE_QUESTION: 17,
    			UI_STATE_MOREGAME: 18,
    			UI_STATE_LIMITGET: 19,
    			UI_STATE_LIMITTRY: 20,
    			UI_STATE_SHAREGAME: 21,
    			UI_STATE_COLLECTION: 22,
    			UI_STATE_QUICKWIN: 23,
    			UI_STATE_HIDEBOX: 24,
    			UI_STATE_SMALLMSG: 25,
    			UI_STATE_BLESSBAG: 26,
    			UI_STATE_GOTOTEACH: 27,
    			UI_STATE_PRIVACYPOLICY: 28,
    			UI_STATE_TASK_UNLOCK_TIP: 29,
    			UI_STATE_TOOL_MENU: 30,
    			UI_STATE_TOOL_UNLOCK: 31,
    			UI_STATE_STAGE_UNLOCK_TIP: 32,
    			UI_STATE_MUSEUM: 33,
    			UI_STATE_MUSEUM_DETAIL: 34,
    			UI_STATE_LOADING: 998,
    			UI_STATE_CHEAT: 999,
    		}),
    		(l.BTN_TYPE = {
    			BTN_TYPE_HOME: 0,
    			BTN_TYPE_SETTING: 1,
    			BTN_TYPE_RESET: 2,
    			BTN_TYPE_STAGE: 3,
    			BTN_TYPE_MISSION: 4,
    			BTN_TYPE_UP: 5,
    			BTN_TYPE_DOWN: 6,
    			BTN_TYPE_STOP: 7,
    			BTN_TYPE_LEFT: 8,
    			BTN_TYPE_RIGHT: 9,
    			BTN_TYPE_SCREEN: 10,
    			BTN_TYPE_CONTROL1: 11,
    			BTN_TYPE_CONTROL2_1: 12,
    			BTN_TYPE_CONTROL2_2: 13,
    			BTN_TYPE_TOOL: 14,
    			BTN_TYPE_TOOL1: 15,
    			BTN_TYPE_TOOL2: 16,
    			BTN_TYPE_TOOL3: 17,
    			BTN_TYPE_TOOL4: 18,
    			BTN_TYPE_TOOL5: 19,
    			BTN_TYPE_TOOL_CLOSE: 20,
    			BTN_TYPE_TOOL_BLACK: 21,
    		}),
    		(l.TASK_TYPE = {
    			TASK_TYPE_TASK_01: 1,
    			TASK_TYPE_TASK_02: 2,
    			TASK_TYPE_TASK_03: 3,
    			TASK_TYPE_TASK_04: 4,
    			TASK_TYPE_TASK_05: 5,
    			TASK_TYPE_TASK_06: 6,
    			TASK_TYPE_TASK_07: 7,
    			TASK_TYPE_TASK_08: 8,
    			TASK_TYPE_TASK_09: 9,
    			TASK_TYPE_TASK_10: 10,
    			TASK_TYPE_TASK_11: 11,
    			TASK_TYPE_TASK_12: 12,
    			TASK_TYPE_TASK_13: 13,
    			TASK_TYPE_TASK_PRIMARY_1: 51,
    			TASK_TYPE_TASK_PRIMARY_2: 52,
    			TASK_TYPE_TASK_PRIMARY_3: 53,
    			TASK_TYPE_TASK_TEACH_1: 101,
    			TASK_TYPE_TASK_TEACH_2: 102,
    			TASK_TYPE_TASK_TEACH_3: 103,
    		}),
    		(l.CAR_SHOW_TYPE = {
    			CAR_SHOW_TYPE_1: 1,
    			CAR_SHOW_TYPE_2: 2,
    			CAR_SHOW_TYPE_3: 3,
    			CAR_SHOW_TYPE_4: 4,
    			CAR_SHOW_TYPE_5: 5,
    			CAR_SHOW_TYPE_6: 6,
    			CAR_SHOW_TYPE_7: 7,
    			CAR_SHOW_TYPE_8: 8,
    		});
    	class g { }
    	class u { }
    	class d { }
    	class _ { }
    	class S { }
    	class y { }
    	class m { }
    	class p { }
    	class T { }
    	class w { }
    	class C {
    		static LoadConfig(e) {
    			Laya.loader.load(
    				"res/config/Config_Property.json",
    				Laya.Handler.create(this, function (t) {
    					if (null != t && null != t) {
    						for (let e = 0; e < t.length; e++) {
    							let s = new g();
    							(s.car_id = t[e].car_id),
    								(s.quality = t[e].quality),
    								(s.model_id = t[e].model_id),
    								(s.name = t[e].name),
    								(s.car_type = t[e].car_type),
    								(s.car_speed = t[e].car_speed),
    								(s.car_quicken = t[e].car_quicken),
    								(s.car_roll = t[e].car_roll),
    								(s.car_skid = t[e].car_skid),
    								(s.car_turn = t[e].car_turn),
    								(s.car_control = t[e].car_control),
    								(s.car_power = t[e].car_power),
    								(s.skin_id = t[e].skin_id),
    								(s.unlock_condition = t[e].unlock_condition),
    								(s.unlock_oppo_condition = t[e].unlock_oppo_condition),
    								(s.unlock_price = t[e].unlock_price),
    								(s.unlock_pay = t[e].unlock_pay),
    								C.Config_Property_Map.set(t[e].id, s);
    						}
    						Laya.loader.clearRes("config/Config_Property.json"),
    							this.loaded_count++,
    							null != e && e(this.loaded_count, this.config_count);
    					}
    				})
    			),
    				Laya.loader.load(
    					"res/config/Config_Task.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new u();
    								(s.task_id = t[e].task_id),
    									(s.task_type = t[e].task_type),
    									(s.task_car = t[e].task_car),
    									(s.task_name = t[e].task_name),
    									(s.task_introduce = t[e].task_introduce),
    									(s.task_num = t[e].task_num),
    									(s.task_time = t[e].task_time),
    									(s.task_reward = t[e].task_reward),
    									(s.task_energy = t[e].task_energy),
    									(s.task_open = t[e].task_open),
    									C.Config_Task_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Task.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_Energy.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new d();
    								(s.energy_limit = t[e].energy_limit),
    									(s.energy_storage = t[e].energy_storage),
    									(s.energy_time = t[e].energy_time),
    									(s.energy_consumption = t[e].energy_consumption),
    									(s.energy_video = t[e].energy_video),
    									C.Config_Energy_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Energy.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_Glod.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new _();
    								(s.gold_video = t[e].gold_video), C.Config_Glod_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Glod.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_SignIn.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new S();
    								(s.sign_day = t[e].sign_day),
    									(s.sign_reward = t[e].sign_reward),
    									(s.sign_1_reward = t[e].sign_1_reward),
    									(s.sign_special = t[e].sign_special),
    									(s.sign_note = t[e].sign_note),
    									C.Config_SignIn_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_SignIn.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_Package.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new y();
    								(s.package_name = t[e].package_name),
    									(s.package_type = t[e].package_type),
    									(s.package_video = t[e].package_video),
    									(s.package_information = t[e].package_information),
    									C.Config_Package_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Package.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_Achievement.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new m();
    								(s.achievement_id = t[e].achievement_id),
    									(s.achievement_type = t[e].achievement_type),
    									(s.achievement_name = t[e].achievement_name),
    									(s.achievement_mode = t[e].achievement_mode),
    									(s.achievement_introduce = t[e].achievement_introduce),
    									(s.achievement_num = t[e].achievement_num),
    									(s.achievement_reward = t[e].achievement_reward),
    									C.Config_Achievement_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Achievement.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_Props.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new p();
    								(s.prop_id = t[e].prop_id),
    									(s.prop_name = t[e].prop_name),
    									(s.prop_instructions = t[e].prop_instructions),
    									(s.prop_type = t[e].prop_type),
    									(s.quality = t[e].quality),
    									C.Config_Props_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Props.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_OnlineRewards.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new T();
    								(s.online_time = t[e].online_time),
    									(s.gold_award = t[e].gold_award),
    									C.Config_OnlineRewards_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_OnlineRewards.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				),
    				Laya.loader.load(
    					"res/config/Config_Museum.json",
    					Laya.Handler.create(this, function (t) {
    						if (null != t && null != t) {
    							for (let e = 0; e < t.length; e++) {
    								let s = new w();
    								(s.preview_img_id = t[e].preview_img_id),
    									(s.img_id = t[e].img_id),
    									(s.unlock = t[e].unlock),
    									(s.prop_name = t[e].prop_name),
    									(s.prop_instructions = t[e].prop_instructions),
    									C.Config_Museum_Map.set(t[e].id, s);
    							}
    							Laya.loader.clearRes("config/Config_Museum.json"),
    								this.loaded_count++,
    								null != e && e(this.loaded_count, this.config_count);
    						}
    					})
    				);
    		}
    	}
    	(C.Config_Property_Map = new Map()),
    		(C.Config_Task_Map = new Map()),
    		(C.Config_Energy_Map = new Map()),
    		(C.Config_Glod_Map = new Map()),
    		(C.Config_SignIn_Map = new Map()),
    		(C.Config_Package_Map = new Map()),
    		(C.Config_Achievement_Map = new Map()),
    		(C.Config_Props_Map = new Map()),
    		(C.Config_OnlineRewards_Map = new Map()),
    		(C.Config_Museum_Map = new Map()),
    		(C.config_count = 10),
    		(C.loaded_count = 0);
    	class P extends Laya.Script {
    		constructor() {
    			super(),
    				(this.jsonData = null),
    				(this.path = null),
    				(this.KEY_CONFIG = "testConfig"),
    				(this.markSave = !1),
    				(this.saveTimer = -1),
    				(this.isDebug = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new P()), this._instance.init(), this._instance);
    		}
    		onEnable() { }
    		onDisable() { }
    		init() {
    			this.jsonData = {
    				userId: "",
    			};
    			let e = Laya.LocalStorage.getItem(this.KEY_CONFIG);
    			if ((this.isDebug && console.log("content == " + e), e && e.length)) {
    				e.startsWith("@") && (e = e.substring(1));
    				try {
    					const t = JSON.parse(e);
    					this.jsonData = t;
    				} catch (e) { }
    			}
    			this.saveTimer = setInterval(() => {
    				this.scheduleSave();
    			}, 500);
    		}
    		setConfigDataWithoutSave(e, t) {
    			const s = this.jsonData.userId;
    			this.jsonData[s] ? (this.jsonData[s][e] = t) : console.error("no account can not save");
    		}
    		setConfigData(e, t) {
    			this.setConfigDataWithoutSave(e, t), this.save();
    		}
    		getConfigData(e) {
    			const t = this.jsonData.userId;
    			if (this.jsonData[t]) {
    				const s = this.jsonData[t][e];
    				return s || "";
    			}
    			return console.log("no account can not load"), "";
    		}
    		setGlobalData(e, t) {
    			(this.jsonData[e] = t), this.save();
    		}
    		getGlobalData(e) {
    			return this.jsonData[e];
    		}
    		setUserId(e) {
    			(this.jsonData.userId = e), this.jsonData[e] || (this.jsonData[e] = {}), this.save();
    		}
    		getUserId() {
    			return this.jsonData.userId;
    		}
    		scheduleSave() {
    			this.isDebug && console.log("scheduleSave"), this.markSave;
    		}
    		markModified() {
    			this.markSave = !0;
    		}
    		save() {
    			let e = JSON.stringify(this.jsonData);
    			(this.markSave = !1), Laya.LocalStorage.setItem(this.KEY_CONFIG, e);
    		}
    		parseUrl(e) {
    			if (!e || ("string" == typeof e && e.length <= 0)) return;
    			let t = {};
    			if ("string" == typeof e) {
    				(e = e.split("?")[1]).split("&").forEach(function (e) {
    					const s = e.indexOf("=");
    					if (-1 !== s) {
    						const i = e.substring(0, s);
    						t[i] = e.substring(s + 1);
    					}
    				});
    			} else t = e;
    			t.action && this.setGlobalData("urlParams", t),
    				t.source && this.setGlobalData("source", t.source),
    				t.adchannelid && this.setGlobalData("adchannelid", t.adchannelid);
    		}
    		static generateGuestAccount() {
    			return `${Date.now()}${0 | (Math.random(), 10)}`;
    		}
    	}
    	class L extends Laya.Script {
    		constructor() {
    			super(),
    				(this.serverTime = 0),
    				(this.localTime = 0),
    				(this.isDebug = !1),
    				(this.userId = ""),
    				(this.playerInfo = {}),
    				(this.settingInfo = {}),
    				(this.timeInfo = {}),
    				(this.carInfo = {}),
    				(this.achieveInfo = {}),
    				(this.museumInfo = {}),
    				(this.lastOnlineTime = 0),
    				(this.loginTime = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new L()), this._instance.init(), this._instance);
    		}
    		onEnable() { }
    		onDisable() { }
    		init() { }
    		loadGlobalCache() {
    			let e = P.instance.getUserId();
    			e && (this.userId = e);
    		}
    		loadFromCache() {
    			if (
    				(this.isDebug && console.log("loadFromCache"),
    					(this.settingInfo = this.loadDataByKey(l.LOCAL_CACHE.SETTINGS)),
    					this.isDebug && console.log("this.settingInfo  == " + this.settingInfo),
    					(this.playerInfo = this.loadDataByKey(l.LOCAL_CACHE.PLAYER)),
    					this.isDebug && console.log("this.playerInfo  == " + this.playerInfo),
    					16 == this.playerInfo.stageDatas.length && this.playerInfo.stageDatas.splice(0, 3),
    					this.savePlayerInfoToLocalCache(),
    					(null != this.playerInfo.isNewPlayer && null != this.playerInfo.isNewPlayer) ||
    					((this.playerInfo.isNewPlayer = !0), this.savePlayerInfoToLocalCache()),
    					(null != this.playerInfo.isNewLoginPlayer && null != this.playerInfo.isNewLoginPlayer) ||
    					((this.playerInfo.isNewLoginPlayer = !1), this.savePlayerInfoToLocalCache()),
    					(null != this.playerInfo.tool1 && null != this.playerInfo.tool1) ||
    					((this.playerInfo.tool1 = 1),
    						(this.playerInfo.tool2 = 1),
    						(this.playerInfo.tool3 = 0),
    						(this.playerInfo.tool4 = 0),
    						(this.playerInfo.tool5 = 0)),
    					(null != this.playerInfo.isCompleteTeach && null != this.playerInfo.isCompleteTeach) ||
    					(0 == this.playerInfo.teachStage
    						? (this.playerInfo.isCompleteTeach = !0)
    						: (this.playerInfo.isCompleteTeach = !1)),
    					null == this.playerInfo.stageDatas[0].isNew || null == this.playerInfo.stageDatas[0].isNew)
    			) {
    				for (let e = 0; e < this.playerInfo.stageDatas.length; e++) this.playerInfo.stageDatas[e].isNew = 0;
    				this.savePlayerInfoToLocalCache();
    			}
    			if (null == this.playerInfo.advStageDatas[0].isNew || null == this.playerInfo.advStageDatas[0].isNew) {
    				for (let e = 0; e < this.playerInfo.advStageDatas.length; e++) this.playerInfo.advStageDatas[e].isNew = 0;
    				this.savePlayerInfoToLocalCache();
    			}
    			if (null == this.playerInfo.stageTryDatas || null == this.playerInfo.stageTryDatas) {
    				this.playerInfo.stageTryDatas = [];
    				for (let e = 0; e < 13; e++) {
    					let e = {
    						times: 0,
    					};
    					this.playerInfo.stageTryDatas.push(e);
    				}
    			} else
    				16 == this.playerInfo.stageTryDatas.length && this.playerInfo.stageTryDatas.splice(0, 3),
    					this.savePlayerInfoToLocalCache();
    			if (
    				((this.carInfo = this.loadDataByKey(l.LOCAL_CACHE.CARINFO)),
    					this.isDebug && console.log("this.carInfo  == " + this.carInfo),
    					6 == this.carInfo.carDatas.length)
    			) {
    				for (let e = 0; e < 2; e++) {
    					let t = {};
    					(t.carID = 6 + e + 1), (t.state = 0 == e ? 1 : 0), (t.adUnlock = 0), this.carInfo.carDatas.push(t);
    				}
    				this.saveCarInfoToLocalCache();
    			}
    			if (
    				((this.achieveInfo = this.loadDataByKey(l.LOCAL_CACHE.ACHIEVE)),
    					this.isDebug && console.log("this.achieveInfo  == " + this.achieveInfo),
    					this.achieveInfo.achieveDatas.length < C.Config_Achievement_Map.size)
    			) {
    				let e = [];
    				for (let t = 0; t < C.Config_Achievement_Map.size; t++) {
    					let s = {};
    					(s.id = t + 1), (s.state = 0), (s.level = 1), (s.curTimes = 0), e.push(s);
    				}
    				for (let t = 0; t < this.achieveInfo.achieveDatas.length - 2; t++)
    					(e[t].id = this.achieveInfo.achieveDatas[t].id),
    						(e[t].state = this.achieveInfo.achieveDatas[t].state),
    						(e[t].level = this.achieveInfo.achieveDatas[t].level),
    						(e[t].curTimes = this.achieveInfo.achieveDatas[t].curTimes);
    				(e[e.length - 1].id = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 1].id),
    					(e[e.length - 1].state = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 1].state),
    					(e[e.length - 1].level = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 1].level),
    					(e[e.length - 1].curTimes = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 1].curTimes),
    					(e[e.length - 2].id = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 2].id),
    					(e[e.length - 2].state = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 2].state),
    					(e[e.length - 2].level = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 2].level),
    					(e[e.length - 2].curTimes = this.achieveInfo.achieveDatas[this.achieveInfo.achieveDatas.length - 2].curTimes),
    					(this.achieveInfo.achieveDatas = e);
    			}
    			if (
    				((this.museumInfo = this.loadDataByKey(l.LOCAL_CACHE.MUSEUM)),
    					this.isDebug && console.log("this.museumInfo.museumDatas == " + this.museumInfo.museumDatas),
    					null == this.museumInfo.museumDatas || null == this.museumInfo.museumDatas)
    			) {
    				this.createMuseumInfo();
    				for (let e = 0; e < this.playerInfo.stageDatas.length; e++)
    					1 == this.playerInfo.stageDatas[e].stageState && (this.museumInfo.museumDatas[e].state = 1);
    				for (let e = 0; e < this.playerInfo.advStageDatas.length; e++)
    					1 == this.playerInfo.advStageDatas[e].stageState && (this.museumInfo.museumDatas[13 + e].state = 1);
    				this.saveMuseumInfoToLocalCache();
    			}
    			(this.timeInfo = this.loadDataByKey(l.LOCAL_CACHE.TIME)),
    				this.isDebug && console.log("this.timeInfo  == " + this.timeInfo),
    				(this.lastOnlineTime = this.timeInfo.onlineTime),
    				(this.loginTime = new Date().getTime()),
    				(this.timeInfo.onlineLJTime = 0),
    				this.saveTimeToLocalCache();
    		}
    		loadDataByKey(e) {
    			let t = {},
    				s = P.instance.getConfigData(e);
    			if ((this.isDebug && console.log("str =" + e + "= " + s), s))
    				try {
    					t = JSON.parse(s);
    				} catch (e) {
    					e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
    					t = {};
    				}
    			return t;
    		}
    		createSettingInfo() {
    			(this.settingInfo.isMusic = !0),
    				(this.settingInfo.isSound = !0),
    				(this.settingInfo.isHigh = 0),
    				(this.settingInfo.userName = "我"),
    				this.saveSettingInfoToLocalCache();
    		}
    		createPlayerInfo(e) {
    			this.isDebug && console.log("创建新账号信息"),
    				(this.playerInfo.gold = 0),
    				(this.playerInfo.energy = 50),
    				(this.playerInfo.reEnergyStartTime = 0),
    				(this.playerInfo.createDate = new Date()),
    				(this.playerInfo.isHasGetSuperGift = !1),
    				(this.playerInfo.onlineRewardTimes = 1),
    				(this.playerInfo.onlineRewardLJTime = 0),
    				(this.playerInfo.recordonlineRewardTime = new Date().getTime()),
    				(this.playerInfo.signInDays = 0),
    				(this.playerInfo.twoDaySignIn = 0),
    				(this.playerInfo.threeDaySignIn = 0),
    				(this.playerInfo.fiveDaySignIn = 0),
    				(this.playerInfo.sevenDaySignIn = 0),
    				(this.playerInfo.isSignInCurDay = !1),
    				(this.playerInfo.teachStage = 1),
    				(this.playerInfo.teachStep = 1),
    				(this.playerInfo.isCompleteTeach = !1),
    				(this.playerInfo.isQuestionTip = !1),
    				(this.playerInfo.limitGetShowed = !1),
    				(this.playerInfo.limitGetStartTime = 0),
    				(this.playerInfo.sharedGameInCurDay = !1),
    				(this.playerInfo.loginGameFromSmallGame = !1),
    				(this.playerInfo.isHadCollectionGame = !1),
    				(this.playerInfo.freeTryTimes = 1),
    				(this.playerInfo.isNewPlayer = !0),
    				(this.playerInfo.isNewLoginPlayer = !0),
    				(this.playerInfo.tool1 = 1),
    				(this.playerInfo.tool2 = 1),
    				(this.playerInfo.tool3 = 0),
    				(this.playerInfo.tool4 = 0),
    				(this.playerInfo.tool5 = 0),
    				(this.playerInfo.stageDatas = []),
    				(this.playerInfo.stageTryDatas = []);
    			for (let e = 0; e < 13; e++) {
    				let t = {};
    				(t.stageID = e + 1), (t.stageState = 0), (t.isNew = 0 == e ? 1 : 0), this.playerInfo.stageDatas.push(t);
    				let s = {
    					times: 0,
    				};
    				this.playerInfo.stageTryDatas.push(s);
    			}
    			this.playerInfo.advStageDatas = [];
    			for (let e = 0; e < 13; e++) {
    				let t = {};
    				(t.stageID = e + 1), (t.stageState = 0), (t.isNew = 0 == e ? 1 : 0), this.playerInfo.advStageDatas.push(t);
    			}
    			(this.playerInfo.saveDay = new Date().getDate()),
    				this.isDebug && console.log("this.playerInfo.createDate == " + this.playerInfo.createDate),
    				this.savePlayerInfoToLocalCache(),
    				this.createSettingInfo(),
    				this.createCarInfo(),
    				this.createAchieveInfo(),
    				this.createMuseumInfo(),
    				Laya.LocalStorage.setItem(l.LOCAL_CACHE.CREATEDATA, "1");
    		}
    		createCarInfo() {
    			(this.carInfo.curUseCar = 1),
    				(this.carInfo.testCar = 2),
    				(this.carInfo.lastLimitTimeCar = 0),
    				(this.carInfo.carDatas = []),
    				console.log("JsonLoader.Config_Property_Map.size == " + C.Config_Property_Map.size);
    			for (let e = 0; e < C.Config_Property_Map.size; e++) {
    				let t = {};
    				(t.carID = e + 1), (t.state = 0 == e ? 1 : 0), (t.adUnlock = 0), this.carInfo.carDatas.push(t);
    			}
    			this.saveCarInfoToLocalCache();
    		}
    		createAchieveInfo() {
    			(this.achieveInfo.achieveDatas = []),
    				console.log("JsonLoader.Config_Achievement_Map.size == " + C.Config_Achievement_Map.size);
    			for (let e = 0; e < C.Config_Achievement_Map.size; e++) {
    				let t = {};
    				(t.id = e + 1), (t.state = 0), (t.level = 1), (t.curTimes = 0), this.achieveInfo.achieveDatas.push(t);
    			}
    			this.saveAchieveInfoToLocalCache();
    		}
    		createMuseumInfo() {
    			this.museumInfo.museumDatas = [];
    			for (let e = 0; e < C.Config_Museum_Map.size; e++) {
    				let e = {
    					state: 0,
    					getted: 0,
    				};
    				this.museumInfo.museumDatas.push(e);
    			}
    			this.saveMuseumInfoToLocalCache();
    		}
    		saveSettingInfoToLocalCache() {
    			this.saveTimeToLocalCache(), P.instance.setConfigData(l.LOCAL_CACHE.SETTINGS, JSON.stringify(this.settingInfo));
    		}
    		savePlayerInfoToLocalCache() {
    			this.saveTimeToLocalCache(), P.instance.setConfigData(l.LOCAL_CACHE.PLAYER, JSON.stringify(this.playerInfo));
    		}
    		saveCarInfoToLocalCache() {
    			this.saveTimeToLocalCache(), P.instance.setConfigData(l.LOCAL_CACHE.CARINFO, JSON.stringify(this.carInfo));
    		}
    		saveAchieveInfoToLocalCache() {
    			this.saveTimeToLocalCache(), P.instance.setConfigData(l.LOCAL_CACHE.ACHIEVE, JSON.stringify(this.achieveInfo));
    		}
    		saveMuseumInfoToLocalCache() {
    			this.saveTimeToLocalCache(), P.instance.setConfigData(l.LOCAL_CACHE.MUSEUM, JSON.stringify(this.museumInfo));
    		}
    		saveTimeToLocalCache() {
    			this.isDebug,
    				(this.timeInfo.onlineTime = new Date().getTime()),
    				(this.timeInfo.onlineLJTime = this.timeInfo.onlineTime - this.loginTime),
    				P.instance.setConfigData(l.LOCAL_CACHE.TIME, JSON.stringify(this.timeInfo));
    		}
    		syncServerTime(e) {
    			(this.serverTime = e), (this.localTime = Date.now());
    		}
    		getCurrentTime() {
    			let e = Date.now() - this.localTime;
    			return this.serverTime + e;
    		}
    	}
    	class f extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.isForward = !1),
    				(this.isBackAway = !1),
    				(this.isLeft = !1),
    				(this.isRight = !1),
    				(this.isLeftOut = !1),
    				(this.isRightOut = !1),
    				(this.isRunFont = !1),
    				(this.isRunBack = !1),
    				(this.isColliderFontStop = !1),
    				(this.isColliderBackStop = !1),
    				(this.isBrake = !1),
    				(this.isPlayCarMoveSound = !1),
    				(this.isPlayArmRotateSound = !1),
    				(this.isPlayArmPushSound = !1),
    				(this.isPlayDamageStongeSound = !1),
    				(this.isPlayArmAutoSound = !1),
    				(this.mapRate = 0),
    				(this.initSpeed = 0),
    				(this.curSpeed = 0),
    				(this.maxSpeed = 0),
    				(this.curAccSpeed = 0),
    				(this.accTime = 0),
    				(this.stopTime = 0),
    				(this.inertiaTime = 0),
    				(this.inertiaAccSpeed = 0),
    				(this.brakeAccSpeed = 0),
    				(this.maxSteeringAngle = 30),
    				(this.isControl = !1),
    				(this.isTrunArm = -1),
    				(this.curArmAngle = 0),
    				(this.minArmAngle = -80),
    				(this.maxArmAngle = 80),
    				(this.isTrunBackArm = -1),
    				(this.curBackArmAngle = 0),
    				(this.minBackArmAngle = -65),
    				(this.maxBackArmAngle = 0),
    				(this.isTrunFrontArm = -1),
    				(this.curFrontArmAngle = 0),
    				(this.minFrontArmAngle = -20),
    				(this.maxFrontArmAngle = 150),
    				(this.isTrunLiftArm = -1),
    				(this.curLiftArmAngle = 0),
    				(this.minLiftArmAngle = -50),
    				(this.maxLiftArmAngle = 0),
    				(this.isPlayWJJAni = !1),
    				(this.isHaveDirtInBucket = !1),
    				(this.isHaveObjectInTick = !1),
    				(this.curStageProcess = 0),
    				(this.isLoadGameEnterUIComplete = !1),
    				(this.isLoadSceneComplete = !1),
    				(this.isLoadUIComplete = !1),
    				(this.isLoadTeachUIComplete = !1),
    				(this.isLoadStageMapComplete = !1),
    				(this.isLoadPlayerComplete = !1),
    				(this.isLoadNativeUIComplete = !1),
    				(this.isArriveTaskPos = !1),
    				(this.isShowTargetPosSign = !1),
    				(this.isShowDiggerPosSign = !1),
    				(this.isShowPlacePosSign = !1),
    				(this.isPlayerUpdate = !1),
    				(this.isStartCollision = !1),
    				(this.curTreeIdex = 0),
    				(this.isAniTouchEnable = !1),
    				(this.recordCarPosition = null),
    				(this.recordCarRotation = null),
    				(this.recordCarLocalPosition = null),
    				(this.recordCarLocalRotation = null),
    				(this.recordCarLocalRotationEuler = null),
    				(this.recordCaremaPosition = null),
    				(this.recordCaremaRotation = null),
    				(this.recordCaremaLocalPosition = null),
    				(this.recordCaremaLocalRotation = null),
    				(this.recordCaremaLocalRotationEuler = null),
    				(this.isStartStageAni = !1),
    				(this.curFadeShowPos = 0),
    				(this.curProgress = 0),
    				(this.isGamePreLoad = !1),
    				(this.isNeedShowQuestion = !1),
    				(this.curEnergyTime = 0),
    				(this.isStartRestoreEnergy = !1),
    				(this.curStoneIndex = 0),
    				(this.curDiggerDirtPos = 0),
    				(this.isNeedOpenTask = !1),
    				(this.isNeedOpenSignIn = !1),
    				(this.curLimitGetTime = 0),
    				(this.curTryCarType = 0),
    				(this.curTryAdsXsCarType = 0),
    				(this.shareStartTime = 0),
    				(this.isStartShareGame = !1),
    				(this.completeStageTimes = 0),
    				(this.isNeedShowLimitGetInSuccess = !1),
    				(this.isNeeShowLimitUse = !1),
    				(this.isCanGetHideBox = !1),
    				(this.isCompleteTeachGetReward = !1),
    				(this.retryTime = 0),
    				(this.curBuyID = 0),
    				(this.leftTouchID = 0),
    				(this.rightTouchID = 0),
    				(this.isNeedReloadMap = !1),
    				(this.curNeedUnlockStageIndex = 0),
    				(this.curNeedCarTypeForStageUnlock = 0),
    				(this.isUseADTimesStage = !1),
    				(this.curUseToolType = 0),
    				(this.isShowControl = !1),
    				(this.isNewPlayer = !1),
    				(this.curShowMuseumID = 0),
    				(this.isNeedShowGetCardAni = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new f()), this._instance.init(), this._instance);
    		}
    		init() { }
    		getTaskName(e) {
    			return C.Config_Task_Map.get(e).task_name;
    		}
    		getTaskNumber(e) {
    			return C.Config_Task_Map.get(e).task_num;
    		}
    		getTaskTime(e) {
    			return C.Config_Task_Map.get(e).task_time;
    		}
    		getTaskCar(e) {
    			return C.Config_Task_Map.get(e).task_car;
    		}
    		getToolType(e) {
    			let t = 0;
    			switch (f.instance.getTaskCar(e)) {
    				case 3:
    					t = 1;
    					break;

    				case 2:
    					t = 2;
    					break;

    				case 4:
    					t = 3;
    					break;

    				case 1:
    					t = 4;
    					break;

    				case 5:
    					t = 5;
    			}
    			return t;
    		}
    		isHaveTool(e) {
    			let t = !1;
    			switch (e) {
    				case 1:
    					1 == L.instance.playerInfo.tool1 && (t = !0);
    					break;

    				case 2:
    					1 == L.instance.playerInfo.tool2 && (t = !0);
    					break;

    				case 3:
    					1 == L.instance.playerInfo.tool3 && (t = !0);
    					break;

    				case 4:
    					1 == L.instance.playerInfo.tool4 && (t = !0);
    					break;

    				case 5:
    					1 == L.instance.playerInfo.tool5 && (t = !0);
    			}
    			return t;
    		}
    		getTaskReward(e) {
    			return C.Config_Task_Map.get(e).task_reward;
    		}
    		getTaskIntroduce(e) {
    			return C.Config_Task_Map.get(e).task_introduce;
    		}
    		getTaskEnergy(e) {
    			return C.Config_Task_Map.get(e).task_energy;
    		}
    		getTaskOpen(e) {
    			return C.Config_Task_Map.get(e).task_open;
    		}
    		getCarResType(e) {
    			switch (e) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					return 1;

    				case 2:
    				case 4:
    					return 3;

    				case 3:
    					return 2;
    			}
    		}
    		getCarName(e) {
    			let t = "";
    			switch (e) {
    				case 1:
    					t = "大黄蜂工程车";
    					break;

    				case 2:
    					t = "蓝精灵工程车";
    					break;

    				case 3:
    					t = "社会银工程车";
    					break;

    				case 4:
    					t = "少女心工程车";
    					break;

    				case 5:
    					t = "红细胞工程车";
    					break;

    				case 6:
    					t = "特战队工程车";
    			}
    			return t;
    		}
    		WorldToScreen(e, t) {
    			var s = e.transform,
    				i = this.InverseTransformPoint(s, t),
    				a = i.z,
    				n = (0.5 * e.fieldOfView * Math.PI) / 180,
    				o = a * Math.tan(n),
    				r = o * e.aspectRatio,
    				c = new Laya.Vector3(),
    				h = new Laya.Vector3();
    			s.getRight(h);
    			var l = new Laya.Vector3(h.x * r, h.y * r, h.z * r);
    			Laya.Vector3.subtract(s.position, l, c);
    			var g = new Laya.Vector3();
    			s.getUp(g);
    			var u = new Laya.Vector3(g.x * o, g.y * o, g.z * o);
    			Laya.Vector3.subtract(c, u, c);
    			var d = new Laya.Vector3();
    			s.getForward(d);
    			var _ = new Laya.Vector3(-d.x * a, -d.y * a, -d.z * a);
    			Laya.Vector3.add(c, _, c);
    			var S = new Laya.Vector3();
    			(S.x = Laya.stage.width / r / 2), (S.y = Laya.stage.height / o / 2), (S.z = 0);
    			var y = new Laya.Vector3(),
    				m = this.InverseTransformPoint(s, c);
    			return Laya.Vector3.subtract(i, m, y), (y = new Laya.Vector3(y.x * S.x, y.y * S.y, i.z));
    		}
    		ScreenToWorld(e, t) {
    			var s = t.z,
    				i = (0.5 * e.fieldOfView * Math.PI) / 180,
    				a = s * Math.tan(i),
    				n = a * e.aspectRatio,
    				o = new Laya.Vector3(),
    				r = e.transform,
    				c = new Laya.Vector3();
    			r.getRight(c);
    			var h = new Laya.Vector3(c.x * n, c.y * n, c.z * n);
    			Laya.Vector3.subtract(r.position, h, o);
    			var l = new Laya.Vector3();
    			r.getUp(l);
    			var g = new Laya.Vector3(l.x * a, l.y * a, l.z * a);
    			Laya.Vector3.subtract(o, g, o);
    			var u = new Laya.Vector3();
    			r.getForward(u);
    			var d = new Laya.Vector3(-u.x * s, -u.y * s, -u.z * s);
    			Laya.Vector3.add(o, d, o);
    			var _ = new Laya.Vector3();
    			(_.x = (n / Laya.stage.width) * t.x * 2), (_.y = (a / Laya.stage.height) * t.y * 2), (_.z = 0);
    			var S = new Laya.Vector3();
    			return (o = this.InverseTransformPoint(r, o)), Laya.Vector3.add(o, _, S), (S = this.TransformPoint(r, S));
    		}
    		InverseTransformPoint(e, t) {
    			var s = new Laya.Vector3();
    			e.getRight(s);
    			var i = new Laya.Vector3();
    			e.getUp(i);
    			var a = new Laya.Vector3();
    			e.getForward(a);
    			var n = new Laya.Vector3(-a.x, -a.y, -a.z),
    				o = this.ProjectDistance(t, e.position, s),
    				r = this.ProjectDistance(t, e.position, i),
    				c = this.ProjectDistance(t, e.position, n);
    			return new Laya.Vector3(o, r, c);
    		}
    		TransformPoint(e, t) {
    			var s = new Laya.Vector3();
    			return Laya.Vector3.transformQuat(t, e.rotation, s), Laya.Vector3.add(s, e.position, s), s;
    		}
    		ProjectDistance(e, t, s) {
    			var i = new Laya.Vector3();
    			Laya.Vector3.subtract(e, t, i);
    			var a = (this.Angle(i, s) * Math.PI) / 180,
    				n = Laya.Vector3.distance(e, t);
    			return (n *= Math.cos(a));
    		}
    		Angle(e, t) {
    			var s =
    				(e.x * t.x + e.y * t.y + e.z * t.z) /
    				(Math.sqrt(e.x * e.x + e.y * e.y + e.z * e.z) * Math.sqrt(t.x * t.x + t.y * t.y + t.z * t.z));
    			return (180 * Math.acos(s)) / Math.PI;
    		}
    		getRandouNum(e, t) {
    			let s = t - e,
    				i = Math.random();
    			return e + Math.round(i * s);
    		}
    		getArmControlValue(e) {
    			switch (e) {
    				case 1:
    					return 0.2;

    				case 2:
    					return 0.5;

    				case 3:
    					return 1;

    				case 4:
    					return 1.5;

    				case 5:
    					return 2;

    				case 6:
    					return 2.5;

    				case 7:
    					return 3;

    				case 8:
    					return 3.5;

    				case 9:
    					return 4;

    				case 10:
    					return 5;
    			}
    			return 0;
    		}
    	}
    	class b extends Laya.EventDispatcher {
    		constructor(e) {
    			super(),
    				(this.isDebug = !1),
    				(this._button = e.getChild("joystick").asButton),
    				(this._button.changeStateOnClick = !1),
    				(this._thumb = this._button.getChild("thumb")),
    				(this._touchArea = e.getChild("joystick_touch")),
    				(this._center = e.getChild("joystick_center")),
    				(this._InitX = this._center.x),
    				(this._InitY = this._center.y),
    				(this.touchId = -1),
    				(this.radius = 150),
    				(this._curPos = new Laya.Point()),
    				this._touchArea.on(Laya.Event.MOUSE_DOWN, this, this.onTouchDown);
    		}
    		Trigger(e) {
    			this.onTouchDown(e);
    		}
    		onTouchDown(e) {
    			if (-1 == this.touchId) {
    				(f.instance.isControl = !0),
    					(this.touchId = e.touchId),
    					null != this._tweener && (this._tweener.kill(), (this._tweener = null)),
    					this.isDebug &&
    					(console.log("Laya.stage.mouseX == " + Laya.stage.mouseX),
    						console.log("Laya.stage.mouseY == " + Laya.stage.mouseY)),
    					fgui.GRoot.inst.globalToLocal(Laya.stage.mouseX, Laya.stage.mouseY, this._curPos),
    					this.isDebug &&
    					(console.log("this._curPos.x == " + this._curPos.x), console.log("this._curPos.y == " + this._curPos.y));
    				var t = this._curPos.x,
    					s = this._curPos.y;
    				this.isDebug && (console.log("bx == " + t), console.log("by == " + s)),
    					(this._button.selected = !0),
    					(this._lastStageX = t),
    					(this._lastStageY = s),
    					(this._startStageX = t),
    					(this._startStageY = s),
    					(this._button.x = t),
    					(this._button.y = s),
    					this.isDebug && (console.log("this._InitX == " + this._InitX), console.log("this._InitY == " + this._InitY));
    				var i = t - this._InitX,
    					a = s - this._InitY;
    				this.isDebug && (console.log("deltaX == " + i), console.log("deltaY == " + a));
    				var n = (180 * Math.atan2(a, i)) / Math.PI;
    				this.isDebug && console.log("degrees == " + n),
    					(this._thumb.rotation = n + 90),
    					Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.OnTouchMove),
    					Laya.stage.on(Laya.Event.MOUSE_UP, this, this.OnTouchUp),
    					this.event(b.JoystickDown, n);
    			}
    		}
    		OnTouchUp(e) {
    			-1 != this.touchId &&
    				e.touchId == this.touchId &&
    				((f.instance.isControl = !1),
    					(this.touchId = -1),
    					(this._thumb.rotation = this._thumb.rotation + 180),
    					(this._tweener = fgui.GTween.to2(this._button.x, this._button.y, this._InitX, this._InitY, 0.3)
    						.setTarget(this._button, this._button.setXY)
    						.setEase(fgui.EaseType.CircOut)
    						.onComplete(this.onTweenComplete, this)),
    					Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.OnTouchMove),
    					Laya.stage.off(Laya.Event.MOUSE_UP, this, this.OnTouchUp),
    					this.event(b.JoystickUp));
    		}
    		onTweenComplete() {
    			(this._tweener = null),
    				(this._button.selected = !1),
    				(this._thumb.rotation = 0),
    				(this._center.visible = !0),
    				(this._center.x = this._InitX),
    				(this._center.y = this._InitY);
    		}
    		OnTouchMove(e) {
    			if (-1 != this.touchId && e.touchId == this.touchId) {
    				this.isDebug && console.log("OnTouchMove -----------------------------------------------"),
    					fgui.GRoot.inst.globalToLocal(Laya.stage.mouseX, Laya.stage.mouseY, this._curPos);
    				var t = this._curPos.x,
    					s = this._curPos.y;
    				this.isDebug && (console.log("bx == " + t), console.log("by == " + s));
    				var i = t - this._lastStageX,
    					a = s - this._lastStageY;
    				this.isDebug && (console.log("moveX == " + i), console.log("moveY == " + a)),
    					(this._lastStageX = t),
    					(this._lastStageY = s),
    					this.isDebug &&
    					(console.log("this._lastStageX == " + this._lastStageX),
    						console.log("this._lastStageY == " + this._lastStageY));
    				var n = this._button.x + i,
    					o = this._button.y + a,
    					r = n - this._startStageX,
    					c = o - this._startStageY,
    					h = Math.atan2(c, r),
    					l = (180 * h) / Math.PI;
    				this._thumb.rotation = l + 90;
    				var g = this.radius * Math.cos(h),
    					u = this.radius * Math.sin(h);
    				Math.abs(r) > Math.abs(g) && (r = g),
    					Math.abs(c) > Math.abs(u) && (c = u),
    					(n = this._startStageX + r) < 0 && (n = 0),
    					(o = this._startStageY + c) > fgui.GRoot.inst.height && (o = fgui.GRoot.inst.height),
    					(this._button.x = n),
    					(this._button.y = o),
    					this.event(b.JoystickMoving, l);
    			}
    		}
    	}
    	(b.JoystickMoving = "JoystickMoving"), (b.JoystickUp = "JoystickUp"), (b.JoystickDown = "JoystickDown");
    	class I extends Laya.EventDispatcher {
    		constructor(e) {
    			super(),
    				(this.isDebug = !1),
    				(this._button = e.getChild("joystick1").asButton),
    				(this._button.changeStateOnClick = !1),
    				(this._thumb = this._button.getChild("thumb")),
    				(this._touchArea = e.getChild("joystick_touch1")),
    				(this._center = e.getChild("joystick_center1")),
    				(this._InitX = this._center.x),
    				(this._InitY = this._center.y),
    				(this.touchId = -1),
    				(this.radius = 150),
    				(this._curPos = new Laya.Point()),
    				this._touchArea.on(Laya.Event.MOUSE_DOWN, this, this.onTouchDown);
    		}
    		Trigger(e) {
    			this.onTouchDown(e);
    		}
    		onTouchDown(e) {
    			if (
    				(this.isDebug && console.log("onTouchDown ======================================================="),
    					-1 == this.touchId)
    			) {
    				(f.instance.isControl = !0),
    					(this.touchId = e.touchId),
    					null != this._tweener && (this._tweener.kill(), (this._tweener = null)),
    					this.isDebug &&
    					(console.log("Laya.stage.mouseX == " + Laya.stage.mouseX),
    						console.log("Laya.stage.mouseY == " + Laya.stage.mouseY)),
    					fgui.GRoot.inst.globalToLocal(Laya.stage.mouseX, Laya.stage.mouseY, this._curPos),
    					this.isDebug &&
    					(console.log("this._curPos.x == " + this._curPos.x), console.log("this._curPos.y == " + this._curPos.y));
    				var t = this._curPos.x,
    					s = this._curPos.y;
    				this.isDebug && (console.log("bx == " + t), console.log("by == " + s)),
    					(this._button.selected = !0),
    					(this._lastStageX = t),
    					(this._lastStageY = s),
    					(this._startStageX = t),
    					(this._startStageY = s),
    					(this._button.x = t),
    					(this._button.y = s),
    					this.isDebug && (console.log("this._InitX == " + this._InitX), console.log("this._InitY == " + this._InitY));
    				var i = t - this._InitX,
    					a = s - this._InitY;
    				this.isDebug && (console.log("deltaX == " + i), console.log("deltaY == " + a));
    				var n = (180 * Math.atan2(a, i)) / Math.PI;
    				this.isDebug && console.log("degrees == " + n),
    					(this._thumb.rotation = n + 90),
    					Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.OnTouchMove),
    					Laya.stage.on(Laya.Event.MOUSE_UP, this, this.OnTouchUp),
    					this.event(I.JoystickDown, n);
    			}
    		}
    		OnTouchUp(e) {
    			this.isDebug &&
    				(console.log("OnTouchUp ======================================================="),
    					console.log("evt.touchId == " + e.touchId),
    					console.log("this.touchId == " + this.touchId)),
    				-1 != this.touchId &&
    				e.touchId == this.touchId &&
    				((f.instance.isControl = !1),
    					(this.touchId = -1),
    					(this._thumb.rotation = this._thumb.rotation + 180),
    					(this._tweener = fgui.GTween.to2(this._button.x, this._button.y, this._InitX, this._InitY, 0.3)
    						.setTarget(this._button, this._button.setXY)
    						.setEase(fgui.EaseType.CircOut)
    						.onComplete(this.onTweenComplete, this)),
    					Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.OnTouchMove),
    					Laya.stage.off(Laya.Event.MOUSE_UP, this, this.OnTouchUp),
    					this.event(I.JoystickUp));
    		}
    		onTweenComplete() {
    			(this._tweener = null),
    				(this._button.selected = !1),
    				(this._thumb.rotation = 0),
    				(this._center.visible = !0),
    				(this._center.x = this._InitX),
    				(this._center.y = this._InitY);
    		}
    		OnTouchMove(e) {
    			if (
    				(this.isDebug && (console.log("evt.touchId == " + e.touchId), console.log("this.touchId == " + this.touchId)),
    					-1 != this.touchId && e.touchId == this.touchId)
    			) {
    				this.isDebug && console.log("-----------------------------------------------");
    				var t = Laya.stage.mouseX,
    					s = Laya.stage.mouseY;
    				this.isDebug && (console.log("bx == " + t), console.log("by == " + s));
    				var i = t - this._lastStageX,
    					a = s - this._lastStageY;
    				this.isDebug && (console.log("moveX == " + i), console.log("moveY == " + a)),
    					(this._lastStageX = t),
    					(this._lastStageY = s),
    					this.isDebug &&
    					(console.log("this._lastStageX == " + this._lastStageX),
    						console.log("this._lastStageY == " + this._lastStageY));
    				var n = this._button.x + i,
    					o = this._button.y + a,
    					r = n - this._startStageX,
    					c = o - this._startStageY,
    					h = Math.atan2(c, r),
    					l = (180 * h) / Math.PI;
    				this._thumb.rotation = l + 90;
    				var g = this.radius * Math.cos(h),
    					u = this.radius * Math.sin(h);
    				Math.abs(r) > Math.abs(g) && (r = g),
    					Math.abs(c) > Math.abs(u) && (c = u),
    					(n = this._startStageX + r) < 0 && (n = 0),
    					(o = this._startStageY + c) > fgui.GRoot.inst.height && (o = fgui.GRoot.inst.height),
    					(this._button.x = n),
    					(this._button.y = o),
    					this.event(I.JoystickMoving, l);
    			}
    		}
    	}
    	(I.JoystickMoving = "JoystickMoving"), (I.JoystickUp = "JoystickUp"), (I.JoystickDown = "JoystickDown");
    	class k extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.handInitPosX = 0),
    				(this.handInitPosY = 0),
    				(this.isPlayLight = !1),
    				(this.playLigth = !1),
    				(this.offsetX = 0),
    				(this.offsetY = 0),
    				(this.hand1InitPosX = 0),
    				(this.hand1InitPosY = 0),
    				(this.isPlayLight1 = !1),
    				(this.playLigth1 = !1),
    				(this.offsetX1 = 0),
    				(this.offsetY1 = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new k()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._teachHandGroup = this._view.getChild("n2").asGroup),
    				(this._teachLight = this._view.getChild("n0").asImage),
    				(this._teachHand = this._view.getChild("n1").asImage),
    				(this._teachHand1Group = this._view.getChild("n9").asGroup),
    				(this._teachLight1 = this._view.getChild("n7").asImage),
    				(this._teachHand1 = this._view.getChild("n8").asImage),
    				(this._teachMsgGroup = this._view.getChild("n6").asGroup),
    				(this._teachMsg = this._view.getChild("n5").asLabel),
    				this.showTeachHand(!1, 0, 0, 0),
    				this.showTeachMsg(!1, "", 0, 0);
    		}
    		showHand(e) {
    			this._teachHand.visible = e;
    		}
    		showHand1(e) {
    			this._teachHand1.visible = e;
    		}
    		showTeachHandMove(e, t, s, i) {
    			if (((this._teachHandGroup.visible = e), (this._teachLight.visible = !1), e)) {
    				switch (((this.handInitPosX = s), (this.handInitPosY = i), t)) {
    					case 1:
    						(this.offsetX = 100), (this.offsetY = 0);
    						break;

    					case 2:
    						(this.offsetX = 0), (this.offsetY = 100);
    				}
    				(this._teachHand.x = this.handInitPosX + this.offsetX),
    					(this._teachHand.y = this.handInitPosY + this.offsetY),
    					(this.isPlayLight = !1),
    					(this.handTween1 = Laya.Tween.to(
    						this._teachHand,
    						{
    							x: this.handInitPosX - this.offsetX,
    							y: this.handInitPosY - this.offsetY,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.handMoveEnd3),
    						0
    					));
    			} else this.handTween1 && Laya.Tween.clear(this.handTween1), this.handTween2 && Laya.Tween.clear(this.handTween2);
    		}
    		handMoveEnd3() {
    			this.handTween1 && Laya.Tween.clear(this.handTween1),
    				(this.handTween2 = Laya.Tween.to(
    					this._teachHand,
    					{
    						x: this.handInitPosX + this.offsetX,
    						y: this.handInitPosY + this.offsetY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd4),
    					0
    				));
    		}
    		handMoveEnd4() {
    			this.handTween2 && Laya.Tween.clear(this.handTween2),
    				(this.handTween1 = Laya.Tween.to(
    					this._teachHand,
    					{
    						x: this.handInitPosX - this.offsetX,
    						y: this.handInitPosY - this.offsetY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd3),
    					0
    				));
    		}
    		showTeachHand1Move(e, t, s, i) {
    			if (((this._teachHand1Group.visible = e), (this._teachLight1.visible = !1), e)) {
    				switch (((this.hand1InitPosX = s), (this.hand1InitPosY = i), t)) {
    					case 1:
    						(this.offsetX1 = 100), (this.offsetY1 = 0);
    						break;

    					case 2:
    						(this.offsetX1 = 0), (this.offsetY1 = 100);
    				}
    				(this._teachHand1.x = this.hand1InitPosX + this.offsetX1),
    					(this._teachHand1.y = this.hand1InitPosY + this.offsetY1),
    					(this.isPlayLight1 = !1),
    					(this.handTween1 = Laya.Tween.to(
    						this._teachHand1,
    						{
    							x: this.hand1InitPosX - this.offsetX1,
    							y: this.hand1InitPosY - this.offsetY1,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.handMoveEnd5),
    						0
    					));
    			} else
    				this.hand1Tween1 && Laya.Tween.clear(this.hand1Tween1), this.hand1Tween2 && Laya.Tween.clear(this.hand1Tween2);
    		}
    		handMoveEnd5() {
    			this.hand1Tween1 && Laya.Tween.clear(this.hand1Tween1),
    				(this.hand1Tween2 = Laya.Tween.to(
    					this._teachHand1,
    					{
    						x: this.hand1InitPosX + this.offsetX1,
    						y: this.hand1InitPosY + this.offsetY1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd6),
    					0
    				));
    		}
    		handMoveEnd6() {
    			this.hand1Tween2 && Laya.Tween.clear(this.hand1Tween2),
    				(this.hand1Tween1 = Laya.Tween.to(
    					this._teachHand1,
    					{
    						x: this.hand1InitPosX - this.offsetX1,
    						y: this.hand1InitPosY - this.offsetY1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd5),
    					0
    				));
    		}
    		showTeachHand(e, t, s, i) {
    			if (((this._teachHandGroup.visible = e), (this._teachLight.visible = !0), e)) {
    				switch (t) {
    					case 1:
    						this._teachHand.setScale(1, 1), (this.offsetX = 50), (this.offsetY = 50);
    						break;

    					case 2:
    						this._teachHand.setScale(-1, 1), (this.offsetX = -50), (this.offsetY = 50);
    						break;

    					case 3:
    						this._teachHand.setScale(1, -1), (this.offsetX = 50), (this.offsetY = -50);
    						break;

    					case 4:
    						this._teachHand.setScale(-1, -1), (this.offsetX = -50), (this.offsetY = -50);
    				}
    				(this.handInitPosX = s),
    					(this.handInitPosY = i),
    					(this._teachLight.x = s),
    					(this._teachLight.y = i),
    					(this._teachHand.x = this.handInitPosX + this.offsetX),
    					(this._teachHand.y = this.handInitPosY + this.offsetY),
    					this._teachLight.setScale(1.5, 1.5),
    					(this._teachLight.alpha = 0),
    					(this.isPlayLight = !0),
    					(this.playLigth = !1),
    					(this.handTween1 = Laya.Tween.to(
    						this._teachHand,
    						{
    							x: this.handInitPosX,
    							y: this.handInitPosY,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.handMoveEnd1),
    						0
    					));
    			} else this.handTween1 && Laya.Tween.clear(this.handTween1), this.handTween2 && Laya.Tween.clear(this.handTween2);
    		}
    		handMoveEnd1() {
    			this.handTween1 && Laya.Tween.clear(this.handTween1),
    				(this.handTween2 = Laya.Tween.to(
    					this._teachHand,
    					{
    						x: this.handInitPosX + this.offsetX,
    						y: this.handInitPosY + this.offsetY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd2),
    					0
    				)),
    				this.isPlayLight &&
    				(this.playLigth ||
    					((this.playLigth = !0),
    						(this.lightTween1 = Laya.Tween.to(
    							this._teachLight,
    							{
    								scaleX: 1,
    								scaleY: 1,
    								alpha: 1,
    							},
    							500,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.ligthEnd1),
    							0
    						))));
    		}
    		handMoveEnd2() {
    			this.handTween2 && Laya.Tween.clear(this.handTween2),
    				(this.handTween1 = Laya.Tween.to(
    					this._teachHand,
    					{
    						x: this.handInitPosX,
    						y: this.handInitPosY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd1),
    					0
    				));
    		}
    		ligthEnd1() {
    			this.lightTween1 && Laya.Tween.clear(this.lightTween1),
    				(this.lightTween2 = Laya.Tween.to(
    					this._teachLight,
    					{
    						scaleX: 1.5,
    						scaleY: 1.5,
    						alpha: 0,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd2),
    					0
    				));
    		}
    		ligthEnd2() {
    			this.lightTween2 && Laya.Tween.clear(this.lightTween2),
    				(this.lightTween1 = Laya.Tween.to(
    					this._teachLight,
    					{
    						scaleX: 1,
    						scaleY: 1,
    						alpha: 1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd1),
    					0
    				));
    		}
    		showTeachHand1(e, t, s, i) {
    			if (((this._teachHand1Group.visible = e), (this._teachLight1.visible = !0), e)) {
    				switch (t) {
    					case 1:
    						this._teachHand1.setScale(1, 1), (this.offsetX1 = 50), (this.offsetY1 = 50);
    						break;

    					case 2:
    						this._teachHand1.setScale(-1, 1), (this.offsetX1 = -50), (this.offsetY1 = 50);
    						break;

    					case 3:
    						this._teachHand1.setScale(1, -1), (this.offsetX1 = 50), (this.offsetY1 = -50);
    						break;

    					case 4:
    						this._teachHand1.setScale(-1, -1), (this.offsetX1 = -50), (this.offsetY1 = -50);
    				}
    				(this.hand1InitPosX = s),
    					(this.hand1InitPosY = i),
    					(this._teachLight1.x = s),
    					(this._teachLight1.y = i),
    					(this._teachHand1.x = this.hand1InitPosX + this.offsetX1),
    					(this._teachHand1.y = this.hand1InitPosY + this.offsetY1),
    					this._teachLight1.setScale(1.5, 1.5),
    					(this._teachLight1.alpha = 0),
    					(this.isPlayLight1 = !0),
    					(this.playLigth1 = !1),
    					(this.hand1Tween1 = Laya.Tween.to(
    						this._teachHand1,
    						{
    							x: this.hand1InitPosX,
    							y: this.hand1InitPosY,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.hand1MoveEnd1),
    						0
    					));
    			} else
    				this.hand1Tween1 && Laya.Tween.clear(this.hand1Tween1), this.hand1Tween2 && Laya.Tween.clear(this.hand1Tween2);
    		}
    		hand1MoveEnd1() {
    			this.hand1Tween1 && Laya.Tween.clear(this.hand1Tween1),
    				(this.hand1Tween2 = Laya.Tween.to(
    					this._teachHand1,
    					{
    						x: this.hand1InitPosX + this.offsetX1,
    						y: this.hand1InitPosY + this.offsetY1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.hand1MoveEnd2),
    					0
    				)),
    				this.isPlayLight1 &&
    				(this.playLigth1 ||
    					((this.playLigth1 = !0),
    						(this.light1Tween1 = Laya.Tween.to(
    							this._teachLight1,
    							{
    								scaleX: 1,
    								scaleY: 1,
    								alpha: 1,
    							},
    							500,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.ligthEnd3),
    							0
    						))));
    		}
    		hand1MoveEnd2() {
    			this.hand1Tween2 && Laya.Tween.clear(this.hand1Tween2),
    				(this.hand1Tween1 = Laya.Tween.to(
    					this._teachHand1,
    					{
    						x: this.hand1InitPosX,
    						y: this.hand1InitPosY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.hand1MoveEnd1),
    					0
    				));
    		}
    		ligthEnd3() {
    			this.light1Tween1 && Laya.Tween.clear(this.light1Tween1),
    				(this.light1Tween2 = Laya.Tween.to(
    					this._teachLight1,
    					{
    						scaleX: 1.5,
    						scaleY: 1.5,
    						alpha: 0,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd4),
    					0
    				));
    		}
    		ligthEnd4() {
    			this.light1Tween2 && Laya.Tween.clear(this.light1Tween2),
    				(this.light1Tween1 = Laya.Tween.to(
    					this._teachLight1,
    					{
    						scaleX: 1,
    						scaleY: 1,
    						alpha: 1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd3),
    					0
    				));
    		}
    		showTeachMsg(e, t, s, i) {
    			(this._teachMsgGroup.visible = e),
    				(this._teachMsgGroup.x = s),
    				(this._teachMsgGroup.y = i),
    				e && (this._teachMsg.text = t);
    		}
    	}
    	class D {
    		static setURL(e) {
    			this.url = e;
    		}
    		static init(e, t = "") { }
    		static Login(e) { }
    		static StartLevel(e, t = -1, s = "") { }
    		static LevelSuccessed(e, t = -1, s = "") { }
    		static LevelFailed(e, t = -1, s = "") { }
    		static SendEvent(e, t = 0, s) { }
    		static POST(e) { }
    		static judgeLevelEvent(e) {
    			return !1;
    		}
    		static getUid() {
    			return 0;
    		}
    		static Random(e, t) {
    			return Math.floor(Math.random() * (t - e + 1)) + e;
    		}
    	}
    	(D.isTest = !1),
    		(D.url = "https://www.dreamgear82.com/httpstransmit.php?port=20433"),
    		(D.appid = -1),
    		(D.uid = -1),
    		(D.channel = "weixin"),
    		(D.is_level_single_clac = !1);
    	class v extends Laya.Script {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new v()), this._instance.init(), this._instance);
    		}
    		init() { }
    		getAchieveDataIndex(e, t) {
    			let s = 0;
    			switch (t) {
    				case 1:
    					s = 13 * (e - 1) + 3;
    					break;

    				case 2:
    					s = 13 * (e - 1) + 2;
    					break;

    				case 3:
    					s = 13 * (e - 1) + 6;
    					break;

    				case 4:
    					s = 13 * (e - 1) + 1;
    					break;

    				case 5:
    					s = 13 * (e - 1) + 4;
    					break;

    				case 6:
    					s = 13 * (e - 1) + 5;
    					break;

    				case 7:
    					s = 13 * (e - 1) + 13;
    					break;

    				case 8:
    					s = 13 * (e - 1) + 7;
    					break;

    				case 9:
    					s = 13 * (e - 1) + 8;
    					break;

    				case 10:
    					s = 13 * (e - 1) + 9;
    					break;

    				case 11:
    					s = 13 * (e - 1) + 10;
    					break;

    				case 12:
    					s = 13 * (e - 1) + 11;
    					break;

    				case 13:
    					s = 13 * (e - 1) + 12;
    			}
    			return s - 1;
    		}
    		updateCarAchieve(e, t) {
    			if (
    				(this.isDebug && (console.log("carType == " + e), console.log("stageType == " + t)),
    					0 == L.instance.achieveInfo.achieveDatas[this.getAchieveDataIndex(e, t)].state)
    			) {
    				L.instance.achieveInfo.achieveDatas[this.getAchieveDataIndex(e, t)].curTimes += 1;
    				let s = C.Config_Achievement_Map.get(this.getAchieveDataIndex(e, t) + 1).achievement_num.split("|"),
    					i = parseInt(s[L.instance.achieveInfo.achieveDatas[this.getAchieveDataIndex(e, t)].level - 1]);
    				L.instance.achieveInfo.achieveDatas[this.getAchieveDataIndex(e, t)].curTimes >= i &&
    					(L.instance.achieveInfo.achieveDatas[this.getAchieveDataIndex(e, t)].state = 1);
    			}
    			L.instance.saveAchieveInfoToLocalCache();
    		}
    		updateCarAchieveForGetReward(e) {
    			1 == L.instance.achieveInfo.achieveDatas[e].state &&
    				(L.instance.achieveInfo.achieveDatas[e].level >= 4
    					? (L.instance.achieveInfo.achieveDatas[e].state = 2)
    					: ((L.instance.achieveInfo.achieveDatas[e].level += 1), (L.instance.achieveInfo.achieveDatas[e].state = 0))),
    				L.instance.saveAchieveInfoToLocalCache();
    		}
    		updateCommonAchieve(e) {
    			switch (e) {
    				case 1:
    					if (0 == L.instance.achieveInfo.achieveDatas[104].state) {
    						L.instance.achieveInfo.achieveDatas[104].curTimes += 1;
    						let e = C.Config_Achievement_Map.get(105).achievement_num.split("|"),
    							t = parseInt(e[L.instance.achieveInfo.achieveDatas[104].level - 1]);
    						L.instance.achieveInfo.achieveDatas[104].curTimes >= t &&
    							(L.instance.achieveInfo.achieveDatas[104].state = 1);
    					} else
    						1 == L.instance.achieveInfo.achieveDatas[104].state &&
    							(L.instance.achieveInfo.achieveDatas[104].level >= 4
    								? (L.instance.achieveInfo.achieveDatas[104].state = 2)
    								: ((L.instance.achieveInfo.achieveDatas[104].level += 1),
    									(L.instance.achieveInfo.achieveDatas[104].curTimes = 0),
    									(L.instance.achieveInfo.achieveDatas[104].state = 0)));
    					break;

    				case 2:
    					if (0 == L.instance.achieveInfo.achieveDatas[105].state) {
    						L.instance.achieveInfo.achieveDatas[105].curTimes += 1;
    						let e = C.Config_Achievement_Map.get(106).achievement_num.split("|"),
    							t = parseInt(e[L.instance.achieveInfo.achieveDatas[105].level - 1]);
    						L.instance.achieveInfo.achieveDatas[105].curTimes >= t &&
    							(L.instance.achieveInfo.achieveDatas[105].state = 1);
    					} else
    						1 == L.instance.achieveInfo.achieveDatas[105].state &&
    							(L.instance.achieveInfo.achieveDatas[105].level >= 4
    								? (L.instance.achieveInfo.achieveDatas[105].state = 2)
    								: ((L.instance.achieveInfo.achieveDatas[105].level += 1),
    									(L.instance.achieveInfo.achieveDatas[105].curTimes = 0),
    									(L.instance.achieveInfo.achieveDatas[105].state = 0)));
    			}
    			L.instance.saveAchieveInfoToLocalCache();
    		}
    	}
    	class A extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.isSoundPlay = !1),
    				(this.isEffectPlay = !1),
    				(this.isHighPicQuality = !1),
    				(this.isBGMPlaying = !1),
    				(this.isLoopSoundPlaying = !1),
    				(this.isCheckLimitGift = !1),
    				(this.isCheckTime = !1),
    				(this.isUseCheat = !1),
    				(this.isShowGameClub = !1),
    				(this.isFristDotForSignIn_1 = !1),
    				(this.isFristDotForSignIn_2 = !1),
    				(this.isFristDotForSkipStage_1 = !1),
    				(this.isFristDotForSkipStage_2 = !1),
    				(this.isFristDotForQuickWin_1 = !1),
    				(this.isFristDotForQuickWin_2 = !1),
    				(this.isFristDotForTaskTry_1 = !1),
    				(this.isFristDotForTaskTry_2 = !1),
    				(this.isFristDotForReLife_1 = !1),
    				(this.isFristDotForReLife_2 = !1),
    				(this.isFristDotForDouble_1 = !1),
    				(this.isFristDotForDouble_2 = !1),
    				(this.isFristDotForBuyEnergy_1 = !1),
    				(this.isFristDotForBuyEnergy_2 = !1),
    				(this.isFristDotForBuyGold_1 = !1),
    				(this.isFristDotForBuyGold_2 = !1),
    				(this.isFristDotForAchieveReward_1 = !1),
    				(this.isFristDotForAchieveReward_2 = !1),
    				(this.isFristDotForBox3000_1 = !1),
    				(this.isFristDotForBox3000_2 = !1),
    				(this.isFristDotForLimitGet_1 = !1),
    				(this.isFristDotForLimitGet_2 = !1),
    				(this.isFristDotForSuperGift_1 = !1),
    				(this.isFristDotForSuperGift_2 = !1),
    				(this.isFristDotForLimitUse_1 = !1),
    				(this.isFristDotForLimitUse_2 = !1),
    				(this.isFristDotForLimitTry1_1 = !1),
    				(this.isFristDotForLimitTry1_2 = !1),
    				(this.isFristDotForLimitTry2_1 = !1),
    				(this.isFristDotForLimitTry2_2 = !1),
    				(this.isFristDotForLimitTry3_1 = !1),
    				(this.isFristDotForLimitTry3_2 = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new A()), this._instance.init(), this._instance);
    		}
    		init() { }
    		PauseBgm() {
    			L.instance.settingInfo.isMusic &&
    				A.instance.isBGMPlaying &&
    				(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1));
    		}
    		resumeBgm() {
    			mt.uiStates[0] == l.UI_STATE.UI_STATE_HALL &&
    				L.instance.settingInfo.isMusic &&
    				(A.instance.isBGMPlaying ||
    					((A.instance.isBGMPlaying = !0),
    						Laya.SoundManager.playMusic("res/sound/M_menu_00.mp3", 0, new Laya.Handler(this, this.onComplete)))),
    				mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME &&
    				L.instance.settingInfo.isMusic &&
    				(A.instance.isBGMPlaying ||
    					((A.instance.isBGMPlaying = !0),
    						Laya.SoundManager.playMusic("res/sound/M_menu_01.mp3", 0, new Laya.Handler(this, this.onComplete))));
    		}
    		onComplete() { }
    		reSetFristDot() {
    			(this.isFristDotForSignIn_1 = !1),
    				(this.isFristDotForSkipStage_1 = !1),
    				(this.isFristDotForQuickWin_1 = !1),
    				(this.isFristDotForTaskTry_1 = !1),
    				(this.isFristDotForReLife_1 = !1),
    				(this.isFristDotForDouble_1 = !1),
    				(this.isFristDotForBuyEnergy_1 = !1),
    				(this.isFristDotForBuyGold_1 = !1),
    				(this.isFristDotForAchieveReward_1 = !1),
    				(this.isFristDotForBox3000_1 = !1),
    				(this.isFristDotForLimitGet_1 = !1),
    				(this.isFristDotForSuperGift_1 = !1),
    				(this.isFristDotForLimitUse_1 = !1),
    				(this.isFristDotForLimitTry1_1 = !1),
    				(this.isFristDotForLimitTry2_1 = !1),
    				(this.isFristDotForSignIn_2 = !1),
    				(this.isFristDotForSkipStage_2 = !1),
    				(this.isFristDotForQuickWin_2 = !1),
    				(this.isFristDotForTaskTry_2 = !1),
    				(this.isFristDotForReLife_2 = !1),
    				(this.isFristDotForDouble_2 = !1),
    				(this.isFristDotForBuyEnergy_2 = !1),
    				(this.isFristDotForBuyGold_2 = !1),
    				(this.isFristDotForAchieveReward_2 = !1),
    				(this.isFristDotForBox3000_2 = !1),
    				(this.isFristDotForLimitGet_2 = !1),
    				(this.isFristDotForSuperGift_2 = !1),
    				(this.isFristDotForLimitUse_2 = !1),
    				(this.isFristDotForLimitTry1_2 = !1),
    				(this.isFristDotForLimitTry2_2 = !1);
    		}
    		reSetGameDataByPreDay() {
    			L.instance.playerInfo.saveDay != new Date().getDate() &&
    				((L.instance.playerInfo.isSignInCurDay = !1),
    					(L.instance.playerInfo.isQuestionTip = !1),
    					(L.instance.playerInfo.sharedGameInCurDay = !1),
    					0 == L.instance.carInfo.carDatas[3].state &&
    					((L.instance.playerInfo.limitGetShowed = !1), (L.instance.playerInfo.limitGetStartTime = 0)),
    					7 == L.instance.playerInfo.signInDays &&
    					((L.instance.playerInfo.signInDays = 0),
    						(L.instance.playerInfo.twoDaySignIn = 0),
    						(L.instance.playerInfo.threeDaySignIn = 0),
    						(L.instance.playerInfo.fiveDaySignIn = 0),
    						(L.instance.playerInfo.sevenDaySignIn = 0)),
    					(L.instance.playerInfo.saveDay = new Date().getDate()),
    					(L.instance.playerInfo.onlineRewardTimes = 1),
    					(L.instance.playerInfo.onlineRewardLJTime = 0),
    					(L.instance.playerInfo.recordonlineRewardTime = new Date().getTime()),
    					L.instance.savePlayerInfoToLocalCache());
    		}
    		startCheckFunctionIsComplete() {
    			L.instance.playerInfo.onlineRewardTimes <= 4
    				? (this.isCheckLimitGift = !0)
    				: ((this.isCheckLimitGift = !1), Laya.stage.event("showBtnNew", [1, !1])),
    				this.checkIsSignInAndReward()
    					? Laya.stage.event("showBtnNew", [2, !0])
    					: Laya.stage.event("showBtnNew", [2, !1]);
    		}
    		stopCheckFunctionIsComplete() {
    			this.isCheckLimitGift = !1;
    		}
    		checkFunctionIsComplete() {
    			this.checkLimitTimeGift();
    		}
    		checkLimitTimeGift() {
    			if (this.isCheckLimitGift) {
    				this.isDebug &&
    					(console.log(
    						"PlayerData.instance.playerInfo.onlineRewardLJTime == " + L.instance.playerInfo.onlineRewardLJTime
    					),
    						console.log("PlayerData.instance.timeInfo.onlineLJTime == " + L.instance.timeInfo.onlineLJTime));
    				let e = (new Date().getTime() - L.instance.playerInfo.recordonlineRewardTime) / 1e3 / 60;
    				this.isDebug &&
    					(console.log("time ================= " + e),
    						console.log(
    							"(PlayerData.instance.playerInfo.onlineRewardLJTime + time) == " +
    							(L.instance.playerInfo.onlineRewardLJTime + e)
    						)),
    					L.instance.playerInfo.onlineRewardLJTime + e >=
    						C.Config_OnlineRewards_Map.get(L.instance.playerInfo.onlineRewardTimes).online_time
    						? ((this.isCheckLimitGift = !1),
    							(L.instance.playerInfo.recordonlineRewardTime = new Date().getTime()),
    							(L.instance.playerInfo.onlineRewardLJTime += e),
    							L.instance.savePlayerInfoToLocalCache(),
    							Laya.stage.event("showBtnNew", [1, !0]))
    						: (Laya.stage.event("showBtnNew", [1, !1]),
    							(L.instance.playerInfo.recordonlineRewardTime = new Date().getTime()),
    							(L.instance.playerInfo.onlineRewardLJTime += e),
    							L.instance.savePlayerInfoToLocalCache());
    			}
    		}
    		checkIsShowLimitUse() {
    			let e = 0,
    				t = [];
    			if (
    				("okk" != Laya.LocalStorage.getItem("newPlayerFirstSy") &&
    					0 == L.instance.carInfo.carDatas[3].state &&
    					t.push(3),
    					t.length <= 0)
    			)
    				for (let e = 0; e < L.instance.carInfo.carDatas.length; e++)
    					0 == L.instance.carInfo.carDatas[e].state && 3 != e && t.push(e);
    			if (
    				(this.isDebug &&
    					(console.log("noHaveCars.length == " + t.length),
    						console.log("PlayerData.instance.carInfo.lastLimitTimeCar == " + L.instance.carInfo.lastLimitTimeCar)),
    					t.length > 0)
    			)
    				if (
    					(this.isDebug && console.log("(noHaveCars[noHaveCars.length - 1] + 1) == " + (t[t.length - 1] + 1)),
    						L.instance.carInfo.lastLimitTimeCar >= t[t.length - 1] + 1)
    				)
    					(e = t[0] + 1), (L.instance.carInfo.lastLimitTimeCar = e), L.instance.saveCarInfoToLocalCache();
    				else
    					for (let s = 0; s < t.length; s++)
    						if (
    							(this.isDebug && console.log("(noHaveCars[" + s + "] + 1) == " + (t[s] + 1)),
    								t[s] + 1 != L.instance.carInfo.lastLimitTimeCar && t[s] + 1 > L.instance.carInfo.lastLimitTimeCar)
    						) {
    							(e = t[s] + 1),
    								this.isDebug && console.log("carType == " + e),
    								(L.instance.carInfo.lastLimitTimeCar = e),
    								L.instance.saveCarInfoToLocalCache();
    							break;
    						}
    			return e;
    		}
    		checkIsSignInAndReward() {
    			let e = !1;
    			return (
    				7 != L.instance.playerInfo.signInDays &&
    				(L.instance.playerInfo.isSignInCurDay || (e = !0),
    					1 == L.instance.playerInfo.twoDaySignIn && (e = !0),
    					1 == L.instance.playerInfo.threeDaySignIn && (e = !0),
    					1 == L.instance.playerInfo.fiveDaySignIn && (e = !0),
    					1 == L.instance.playerInfo.sevenDaySignIn && (e = !0)),
    				e
    			);
    		}
    		getStageIndexByID(e) {
    			let t = 0;
    			switch (e) {
    				case "task_01":
    				case "task_17":
    					t = 1;
    					break;

    				case "task_02":
    				case "task_18":
    					t = 2;
    					break;

    				case "task_03":
    				case "task_19":
    					t = 3;
    					break;

    				case "task_04":
    				case "task_20":
    					t = 4;
    					break;

    				case "task_05":
    				case "task_21":
    					t = 5;
    					break;

    				case "task_06":
    				case "task_22":
    					t = 6;
    					break;

    				case "task_07":
    				case "task_23":
    					t = 7;
    					break;

    				case "task_08":
    				case "task_24":
    					t = 8;
    					break;

    				case "task_09":
    				case "task_25":
    					t = 9;
    					break;

    				case "task_10":
    				case "task_26":
    					t = 10;
    					break;

    				case "task_11":
    				case "task_27":
    					t = 11;
    					break;

    				case "task_12":
    				case "task_28":
    					t = 12;
    					break;

    				case "task_13":
    				case "task_29":
    					t = 13;
    					break;

    				case "task_14":
    					t = 14;
    					break;

    				case "task_15":
    					t = 15;
    					break;

    				case "task_16":
    					t = 16;
    			}
    			return t;
    		}
    	}
    	class M { }
    	(M.share_title = "我居然挖到了金子，快来帮我一起挖"),
    		(M.share_image_url = ""),
    		(M.channel = e.WEIXIN),
    		(M.vibrate = !0),
    		(M.record_path = null),
    		(M.is_recording = !1),
    		(M.is_less_three_second = !1),
    		(M.record_start_time = 0),
    		(M.record_topics_1 = "涂鸦世界"),
    		(M.record_topics_2 = "像素涂色");
    	const E = {
    		login: "login",
    		signup: "signup",
    		custom: "custom",
    		video: "video",
    		prop: "prop",
    		guide: "guide",
    		level: "level",
    		load: "load",
    		onlineTime: "onlineTime",
    	};
    	class x {
    		constructor() { }
    		static report(e, t = !1) {
    			e && e.event
    				? e.event == E.load
    					? 1 == e.type
    						? ((x.uuidStr = x.generateUUID()),
    							x.uuidStr
    								? ((x.loadStartTime = x.getTime()), (e.userId = x.uuidStr), (e.len = 0), x.send(e, t))
    								: console.log(".....is loaded"))
    						: 2 == e.type
    							? x.uuidStr
    								? (x.loadStartTime ? (e.len = "" + (x.getTime() - x.loadStartTime)) : (e.len = 0),
    									(e.userId = x.uuidStr),
    									x.send(e, t))
    								: console.log(".....is loaded 2")
    							: console.error(".....shu fen load type error")
    					: e.event == E.login
    						? e.userId
    							? ((x.openid = e.userId), x.send(e, t))
    							: console.error("......shufen no openid...")
    						: x.send(e, t)
    				: console.error(".....shu fen data error");
    		}
    		static sendAll() {
    			if ((x.sendT && (clearTimeout(x.sendT), (x.sendT = null)), x.sendDataList.length > 0)) {
    				for (let e = 0; e < x.sendDataList.length; e++) {
    					const t = x.sendDataList[e];
    					x.send(t, !0);
    				}
    				x.sendDataList = [];
    			}
    		}
    		static send(e, t) {
    			if (
    				(e.appid || (e.appid = x.appid),
    					e.userId || (e.userId = x.openid),
    					e.timestamp || (e.timestamp = "" + Math.floor(x.getTime() / 1e3)),
    					t)
    			) {
    				var s = x.object2String(e, "&") + "&" + x.secret;
    				(e.sign = x.getMD5(s)), x.httpRequest(x.shufenUrl, e, null, null, "POST");
    			} else x.sendDataList.length > 0 ? (x.sendDataList.push(e), x.queueToSend()) : x.send(e, !0);
    		}
    		static queueToSend() {
    			if (x.sendDataList.length > 0) {
    				const e = x.sendDataList.shift();
    				x.send(e, !0),
    					x.sendDataList.length > 0
    						? (x.sendT = setTimeout(function () {
    							x.queueToSend();
    						}, 50))
    						: (x.sendT = null);
    			}
    		}
    		static getTime() {
    			return new Date().getTime();
    		}
    		static generateUUID() {
    			let e = "mj_rsck_local_uuid" + x.appid,
    				t = Laya.LocalStorage.getItem(e);
    			if (t && t.length > 0) return null;
    			var s = new Date().getTime();
    			let i = Math.floor(s / 1e5) % 1e6;
    			var a = "xx-xxx-yxx-xx".replace(/[xy]/g, function (e) {
    				var t = (s + 16 * Math.random()) % 16 | 0;
    				return (s = Math.floor(s / 16)), ("x" == e ? t : (3 & t) | 8).toString(16);
    			}),
    				n = "mj_" + x.appid + "_" + i + "_" + a;
    			return Laya.LocalStorage.setItem(e, n), n;
    		}
    		static object2String(e, t) {
    			for (var s = Object.keys(e).sort(), i = "", a = 0; a < s.length; a++)
    				a == s.length - 1 ? (i += s[a] + "=" + e[s[a]]) : (i += s[a] + "=" + e[s[a]] + t);
    			return console.log("数据1", i), i;
    		}
    		static getMD5(e) {
    			function md5_RotateLeft(e, t) {
    				return (e << t) | (e >>> (32 - t));
    			}
    			function md5_AddUnsigned(e, t) {
    				var s, i, a, n, o;
    				return (
    					(a = 2147483648 & e),
    					(n = 2147483648 & t),
    					(o = (1073741823 & e) + (1073741823 & t)),
    					(s = 1073741824 & e) & (i = 1073741824 & t)
    						? 2147483648 ^ o ^ a ^ n
    						: s | i
    							? 1073741824 & o
    								? 3221225472 ^ o ^ a ^ n
    								: 1073741824 ^ o ^ a ^ n
    							: o ^ a ^ n
    				);
    			}
    			function md5_FF(e, t, s, i, a, n, o) {
    				return (
    					(e = md5_AddUnsigned(
    						e,
    						md5_AddUnsigned(
    							md5_AddUnsigned(
    								(function (e, t, s) {
    									return (e & t) | (~e & s);
    								})(t, s, i),
    								a
    							),
    							o
    						)
    					)),
    					md5_AddUnsigned(md5_RotateLeft(e, n), t)
    				);
    			}
    			function md5_GG(e, t, s, i, a, n, o) {
    				return (
    					(e = md5_AddUnsigned(
    						e,
    						md5_AddUnsigned(
    							md5_AddUnsigned(
    								(function (e, t, s) {
    									return (e & s) | (t & ~s);
    								})(t, s, i),
    								a
    							),
    							o
    						)
    					)),
    					md5_AddUnsigned(md5_RotateLeft(e, n), t)
    				);
    			}
    			function md5_HH(e, t, s, i, a, n, o) {
    				return (
    					(e = md5_AddUnsigned(
    						e,
    						md5_AddUnsigned(
    							md5_AddUnsigned(
    								(function (e, t, s) {
    									return e ^ t ^ s;
    								})(t, s, i),
    								a
    							),
    							o
    						)
    					)),
    					md5_AddUnsigned(md5_RotateLeft(e, n), t)
    				);
    			}
    			function md5_II(e, t, s, i, a, n, o) {
    				return (
    					(e = md5_AddUnsigned(
    						e,
    						md5_AddUnsigned(
    							md5_AddUnsigned(
    								(function (e, t, s) {
    									return t ^ (e | ~s);
    								})(t, s, i),
    								a
    							),
    							o
    						)
    					)),
    					md5_AddUnsigned(md5_RotateLeft(e, n), t)
    				);
    			}
    			function md5_WordToHex(e) {
    				var t,
    					s = "",
    					i = "";
    				for (t = 0; t <= 3; t++) s += (i = "0" + ((e >>> (8 * t)) & 255).toString(16)).substr(i.length - 2, 2);
    				return s;
    			}
    			var t,
    				s,
    				i,
    				a,
    				n,
    				o,
    				r,
    				c,
    				h,
    				l = new Array();
    			for (
    				l = (function (e) {
    					for (
    						var t, s = e.length, i = s + 8, a = 16 * ((i - (i % 64)) / 64 + 1), n = new Array(a - 1), o = 0, r = 0;
    						r < s;

    					)
    						(o = (r % 4) * 8), (n[(t = (r - (r % 4)) / 4)] = n[t] | (e.charCodeAt(r) << o)), r++;
    					return (
    						(o = (r % 4) * 8),
    						(n[(t = (r - (r % 4)) / 4)] = n[t] | (128 << o)),
    						(n[a - 2] = s << 3),
    						(n[a - 1] = s >>> 29),
    						n
    					);
    				})(
    					(e = (function (e) {
    						e = e.replace(/\r\n/g, "\n");
    						for (var t = "", s = 0; s < e.length; s++) {
    							var i = e.charCodeAt(s);
    							i < 128
    								? (t += String.fromCharCode(i))
    								: i > 127 && i < 2048
    									? ((t += String.fromCharCode((i >> 6) | 192)), (t += String.fromCharCode((63 & i) | 128)))
    									: ((t += String.fromCharCode((i >> 12) | 224)),
    										(t += String.fromCharCode(((i >> 6) & 63) | 128)),
    										(t += String.fromCharCode((63 & i) | 128)));
    						}
    						return t;
    					})(e))
    				),
    				o = 1732584193,
    				r = 4023233417,
    				c = 2562383102,
    				h = 271733878,
    				t = 0;
    				t < l.length;
    				t += 16
    			)
    				(s = o),
    					(i = r),
    					(a = c),
    					(n = h),
    					(o = md5_FF(o, r, c, h, l[t + 0], 7, 3614090360)),
    					(h = md5_FF(h, o, r, c, l[t + 1], 12, 3905402710)),
    					(c = md5_FF(c, h, o, r, l[t + 2], 17, 606105819)),
    					(r = md5_FF(r, c, h, o, l[t + 3], 22, 3250441966)),
    					(o = md5_FF(o, r, c, h, l[t + 4], 7, 4118548399)),
    					(h = md5_FF(h, o, r, c, l[t + 5], 12, 1200080426)),
    					(c = md5_FF(c, h, o, r, l[t + 6], 17, 2821735955)),
    					(r = md5_FF(r, c, h, o, l[t + 7], 22, 4249261313)),
    					(o = md5_FF(o, r, c, h, l[t + 8], 7, 1770035416)),
    					(h = md5_FF(h, o, r, c, l[t + 9], 12, 2336552879)),
    					(c = md5_FF(c, h, o, r, l[t + 10], 17, 4294925233)),
    					(r = md5_FF(r, c, h, o, l[t + 11], 22, 2304563134)),
    					(o = md5_FF(o, r, c, h, l[t + 12], 7, 1804603682)),
    					(h = md5_FF(h, o, r, c, l[t + 13], 12, 4254626195)),
    					(c = md5_FF(c, h, o, r, l[t + 14], 17, 2792965006)),
    					(o = md5_GG(o, (r = md5_FF(r, c, h, o, l[t + 15], 22, 1236535329)), c, h, l[t + 1], 5, 4129170786)),
    					(h = md5_GG(h, o, r, c, l[t + 6], 9, 3225465664)),
    					(c = md5_GG(c, h, o, r, l[t + 11], 14, 643717713)),
    					(r = md5_GG(r, c, h, o, l[t + 0], 20, 3921069994)),
    					(o = md5_GG(o, r, c, h, l[t + 5], 5, 3593408605)),
    					(h = md5_GG(h, o, r, c, l[t + 10], 9, 38016083)),
    					(c = md5_GG(c, h, o, r, l[t + 15], 14, 3634488961)),
    					(r = md5_GG(r, c, h, o, l[t + 4], 20, 3889429448)),
    					(o = md5_GG(o, r, c, h, l[t + 9], 5, 568446438)),
    					(h = md5_GG(h, o, r, c, l[t + 14], 9, 3275163606)),
    					(c = md5_GG(c, h, o, r, l[t + 3], 14, 4107603335)),
    					(r = md5_GG(r, c, h, o, l[t + 8], 20, 1163531501)),
    					(o = md5_GG(o, r, c, h, l[t + 13], 5, 2850285829)),
    					(h = md5_GG(h, o, r, c, l[t + 2], 9, 4243563512)),
    					(c = md5_GG(c, h, o, r, l[t + 7], 14, 1735328473)),
    					(o = md5_HH(o, (r = md5_GG(r, c, h, o, l[t + 12], 20, 2368359562)), c, h, l[t + 5], 4, 4294588738)),
    					(h = md5_HH(h, o, r, c, l[t + 8], 11, 2272392833)),
    					(c = md5_HH(c, h, o, r, l[t + 11], 16, 1839030562)),
    					(r = md5_HH(r, c, h, o, l[t + 14], 23, 4259657740)),
    					(o = md5_HH(o, r, c, h, l[t + 1], 4, 2763975236)),
    					(h = md5_HH(h, o, r, c, l[t + 4], 11, 1272893353)),
    					(c = md5_HH(c, h, o, r, l[t + 7], 16, 4139469664)),
    					(r = md5_HH(r, c, h, o, l[t + 10], 23, 3200236656)),
    					(o = md5_HH(o, r, c, h, l[t + 13], 4, 681279174)),
    					(h = md5_HH(h, o, r, c, l[t + 0], 11, 3936430074)),
    					(c = md5_HH(c, h, o, r, l[t + 3], 16, 3572445317)),
    					(r = md5_HH(r, c, h, o, l[t + 6], 23, 76029189)),
    					(o = md5_HH(o, r, c, h, l[t + 9], 4, 3654602809)),
    					(h = md5_HH(h, o, r, c, l[t + 12], 11, 3873151461)),
    					(c = md5_HH(c, h, o, r, l[t + 15], 16, 530742520)),
    					(o = md5_II(o, (r = md5_HH(r, c, h, o, l[t + 2], 23, 3299628645)), c, h, l[t + 0], 6, 4096336452)),
    					(h = md5_II(h, o, r, c, l[t + 7], 10, 1126891415)),
    					(c = md5_II(c, h, o, r, l[t + 14], 15, 2878612391)),
    					(r = md5_II(r, c, h, o, l[t + 5], 21, 4237533241)),
    					(o = md5_II(o, r, c, h, l[t + 12], 6, 1700485571)),
    					(h = md5_II(h, o, r, c, l[t + 3], 10, 2399980690)),
    					(c = md5_II(c, h, o, r, l[t + 10], 15, 4293915773)),
    					(r = md5_II(r, c, h, o, l[t + 1], 21, 2240044497)),
    					(o = md5_II(o, r, c, h, l[t + 8], 6, 1873313359)),
    					(h = md5_II(h, o, r, c, l[t + 15], 10, 4264355552)),
    					(c = md5_II(c, h, o, r, l[t + 6], 15, 2734768916)),
    					(r = md5_II(r, c, h, o, l[t + 13], 21, 1309151649)),
    					(o = md5_II(o, r, c, h, l[t + 4], 6, 4149444226)),
    					(h = md5_II(h, o, r, c, l[t + 11], 10, 3174756917)),
    					(c = md5_II(c, h, o, r, l[t + 2], 15, 718787259)),
    					(r = md5_II(r, c, h, o, l[t + 9], 21, 3951481745)),
    					(o = md5_AddUnsigned(o, s)),
    					(r = md5_AddUnsigned(r, i)),
    					(c = md5_AddUnsigned(c, a)),
    					(h = md5_AddUnsigned(h, n));
    			return (md5_WordToHex(o) + md5_WordToHex(r) + md5_WordToHex(c) + md5_WordToHex(h)).toLowerCase();
    		}
    		static httpRequest(e, t, s, i, a = "GET") {
    			var n = "";
    			for (var o in t) n && (n += "&"), (n += o + "=" + t[o]);
    			var r = new XMLHttpRequest();
    			(r.onreadystatechange = function () {
    				if (4 == r.readyState)
    					if (r.status >= 200 && r.status < 400) {
    						var t = r.responseText;
    						if ((console.log("返回成功", t), t)) {
    							if (-1 != e.indexOf(".json")) a = JSON.parse(t);
    							else var a = JSON.parse(t);
    							i && i(a, s);
    						} else console.log("返回数据不存在"), i && i(!1, s);
    					} else console.log("请求失败"), i && i(!1, s);
    			}),
    				"GET" == a
    					? (r.open("GET", e + "?" + n, !0), r.send())
    					: (r.open("POST", e, !0), r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), r.send(n)),
    				console.log("调用链接：" + e + "?" + n);
    		}
    	}
    	(x.appid = "mjloklrhtw2w81yrzdop"),
    		(x.secret = "2xjnoz5xf6ilmhsn52rbw7604bitc8"),
    		(x.shufenUrl = "https://ddht.jinkezhexin.com/shufen/writeLog"),
    		(x.loadStartTime = null),
    		(x.sendDataList = []),
    		(x.sendT = null),
    		(x.uuidStr = null),
    		(x.openid = null);
    	class B {
    		static ShuFenReport(t, s = !0) {
    			switch (M.channel) {
    				case e.WEIXIN:
    					x.report(t, s);
    			}
    		}
    		static ShuFenReport_video(e, t) {
    			B.ShuFenReport({
    				event: E.video,
    				cid: e,
    				type: t,
    			});
    		}
    		static ShuFenReport_guide(e, t, s = !0) {
    			"okk" != Laya.LocalStorage.getItem(e + "_sfGuide_" + t) &&
    				(B.ShuFenReport(
    					{
    						event: E.guide,
    						cid: e,
    						type: t,
    					},
    					s
    				),
    					Laya.LocalStorage.setItem(e + "_sfGuide_" + t, "okk"));
    		}
    		static ShuFenReport_custom(e, t = !0) {
    			B.ShuFenReport(
    				{
    					event: E.custom,
    					cid: e,
    				},
    				t
    			);
    		}
    		static ShuFenReport_level(e, t, s = !0) {
    			B.ShuFenReport(
    				{
    					event: E.level,
    					cid: e,
    					type: t,
    				},
    				s
    			);
    		}
    	}
    	class R extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curReward = 0), (this.isStartClose = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new R()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			switch (
    			((this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnDouble = this._content.getChild("n3").asButton),
    				this.btnDouble.onClick(this, this.onClickDouble),
    				(this.btnClose = this._content.getChild("n2").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this.btnBack = this._content.getChild("n7").asButton),
    				this.btnBack.onClick(this, this.onClickBack),
    				(this.rewardNum = this._content.getChild("n5").asTextField),
    				console.log("Constant.game_channel ============= " + l.game_channel),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    					(this.vad1 = this._content.getChild("n14").asCom),
    						(this.vadList1 = this.vad1.getChild("n1").asList),
    						(this.vad2 = this._content.getChild("n15").asCom),
    						(this.vadList2 = this.vad2.getChild("n1").asList),
    						this.vadList1.setVirtualAndLoop(),
    						this.vadList2.setVirtualAndLoop(),
    						(this.vad1.visible = !0),
    						(this.vad2.visible = !0);
    					break;

    				case 2:
    				case 3:
    					(this.vad1 = this._content.getChild("n14").asCom),
    						(this.vadList1 = this.vad1.getChild("n1").asList),
    						(this.vad2 = this._content.getChild("n15").asCom),
    						(this.vadList2 = this.vad2.getChild("n1").asList),
    						this.vadList1.setVirtualAndLoop(),
    						this.vadList2.setVirtualAndLoop(),
    						(this.vad1.visible = !1),
    						(this.vad2.visible = !1);
    					break;

    				case 4:
    					(this.btnShareSp = this._content.getChild("n16").asButton),
    						this.btnShareSp.onClick(this, this.onClickShareSp);
    			}
    			this.initUI();
    		}
    		initUI() {
    			if (
    				(this.isDebug &&
    					(console.log("initUI"),
    						console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    						console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    					(this.isStartClose = !1),
    					Gt.instance.ClearCustomAd(),
    					Gt.instance.CreateCustomAd(3),
    					Gt.instance.CreateCustomAd(4),
    					Ie.instance.curStageIndex < 100)
    			) {
    				switch (
    				(Ie.instance.curStageIndex < 10
    					? B.ShuFenReport_level("lv00" + Ie.instance.curStageIndex, 3)
    					: B.ShuFenReport_level("lv0" + Ie.instance.curStageIndex, 3),
    					f.instance.isUseADTimesStage ||
    					(Ie.instance.curStageIndex < 14
    						? (this.isDebug && console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex),
    							0 == L.instance.playerInfo.stageDatas[Ie.instance.curStageIndex - 1].stageState &&
    							((L.instance.playerInfo.stageDatas[Ie.instance.curStageIndex - 1].stageState = 1),
    								13 == Ie.instance.curStageIndex
    									? (L.instance.playerInfo.advStageDatas[Ie.instance.curStageIndex - 13].isNew = 1)
    									: (L.instance.playerInfo.stageDatas[Ie.instance.curStageIndex].isNew = 1),
    								L.instance.savePlayerInfoToLocalCache(),
    								0 == L.instance.museumInfo.museumDatas[Ie.instance.curStageIndex - 1].state &&
    								((L.instance.museumInfo.museumDatas[Ie.instance.curStageIndex - 1].state = 1),
    									L.instance.saveMuseumInfoToLocalCache())))
    						: 0 == L.instance.playerInfo.advStageDatas[Ie.instance.curStageIndex - 13 - 1].stageState &&
    						((L.instance.playerInfo.advStageDatas[Ie.instance.curStageIndex - 13 - 1].stageState = 1),
    							L.instance.savePlayerInfoToLocalCache(),
    							0 == L.instance.museumInfo.museumDatas[Ie.instance.curStageIndex - 1].state &&
    							((L.instance.museumInfo.museumDatas[Ie.instance.curStageIndex - 1].state = 1),
    								L.instance.saveMuseumInfoToLocalCache()))),
    					(this.curReward = parseInt(f.instance.getTaskReward(Ie.instance.curStageIndex))),
    					(this.rewardNum.text = "x" + this.curReward),
    					(this.btnDouble.visible = !0),
    					(this.btnClose.visible = !1),
    					(this.btnBack.visible = !0),
    					L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_07.mp3"),
    					l.game_channel)
    				) {
    					case 0:
    					case 1:
    						Tt.instance.vBidDatas.length > 0
    							? ((this.vad1.visible = !0),
    								(this.vad2.visible = !0),
    								(this.vadList1.itemRenderer = Laya.Handler.create(this, this.renderListItem1, null, !1)),
    								(this.vadList1.numItems = Tt.instance.vBidDatas.length),
    								(this.vadList2.itemRenderer = Laya.Handler.create(this, this.renderListItem2, null, !1)),
    								(this.vadList2.numItems = Tt.instance.vBidDatas.length))
    							: ((this.vad1.visible = !1), (this.vad2.visible = !1));
    						break;

    					case 2:
    					case 3:
    						(this.vad1.visible = !1), (this.vad2.visible = !1);
    						break;

    					case 4:
    						(this.btnDouble.x = 620),
    							(this.btnBack.x = 960),
    							(this.btnShareSp.visible = !0),
    							(this.btnShareSp.x = 1300);
    				}
    				this.playMenuOpenAni(this.onShown.bind(this));
    			} else {
    				switch (l.game_channel) {
    					case 0:
    					case 1:
    					case 2:
    					case 3:
    						(this.vad1.visible = !1),
    							(this.vad2.visible = !1),
    							(this.btnDouble.visible = !1),
    							(this.btnClose.visible = !0),
    							(this.btnBack.visible = !1);
    						break;

    					case 4:
    						(this.btnDouble.visible = !1),
    							(this.btnClose.visible = !0),
    							(this.btnBack.visible = !1),
    							(this.btnShareSp.visible = !1);
    				}
    				(this.curReward = 100),
    					(this.rewardNum.text = "x" + this.curReward),
    					L.instance.settingInfo.isSound &&
    					(this.isDebug && console.log("播放打开音效"), Laya.SoundManager.playSound("res/sound/M_game_07.mp3")),
    					this.playMenuOpenAni(this.onShown.bind(this));
    			}
    			Laya.stage.on("onClickClose", this, this.onClickClose);

    			//原生
    			console.log("任务完成");
    			Advertisement.insertAdverV();
    		}
    		onShown() {
    			switch (
    			(this.isDebug && console.log("onShown"),
    				Ie.instance.curStageIndex > 100 &&
    				(this.isDebug &&
    					(console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    						console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep)),
    					(L.instance.playerInfo.gold += 100),
    					L.instance.savePlayerInfoToLocalCache(),
    					3 == L.instance.playerInfo.teachStage && 5 == L.instance.playerInfo.teachStep
    						? (Q.instance.stopNextStep(),
    							(L.instance.playerInfo.teachStep = 6),
    							L.instance.savePlayerInfoToLocalCache(),
    							Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    						: (Q.instance.stopNextStep(),
    							Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))),
    				1 != L.instance.carInfo.carDatas[3].state &&
    				f.instance.isNeedShowLimitGetInSuccess &&
    				((f.instance.isNeedShowLimitGetInSuccess = !1),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITGET) && mt.instance.showLimitGetMenu(3)),
    				Ie.instance.curStageIndex < 100 &&
    				((2 != l.game_channel && 3 != l.game_channel) || Laya.stage.event("startShowSmallDaoMsg", [60])),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    					Laya.timer.frameLoop(2, this, this.GameListSlide);
    			}
    		}
    		GameListSlide() {
    			this.vadList1.scrollPane.scrollDown(0.005, !1), this.vadList2.scrollPane.scrollDown(0.005, !1);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch (
    			(mt.instance.popMenu(l.UI_STATE.UI_STATE_GAME_SUC),
    				this._view.removeFromParent(),
    				Laya.stage.off("onClickClose", this, this.onClickClose),
    				Gt.instance.ClearCustomAd(),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    				case 2:
    				case 3:
    					Laya.timer.clear(this, this.GameListSlide);
    			}
    			switch (e) {
    				case 0:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_TASK) && mt.instance.showTaskMenu(2);
    					break;

    				case 1:
    					switch ((B.ShuFenReport_guide("lost022", 2), l.game_channel)) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this)),
    								null != Gt.instance.gametddCof_p5 &&
    								0 != Gt.instance.gametddCof_p5 &&
    								Gt.instance.RandomRange(1, 100) <= Gt.instance.gametddCof_p5 &&
    								Gt.instance.ShowVideo(null, null, null);
    					}
    					(f.instance.isNeedOpenTask = !0), Laya.stage.event("backToHall");
    					break;

    				case 2:
    					Q.instance.hideTeach(), Laya.stage.event("nextTeachStage");
    					break;

    				case 3:
    					Q.instance.hideTeach(), Laya.stage.event("backToHall");
    			}
    		}
    		onClickDouble() {
    			this.isDebug && console.log("onClickDouble"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				D.SendEvent("双倍奖励弹出次数", 3031, !1),
    				D.SendEvent("双倍奖励弹出人数", 3032, !0),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			D.SendEvent("双倍奖励拉取成功数", 3033, !1),
    				A.instance.isFristDotForDouble_1 ||
    				((A.instance.isFristDotForDouble_1 = !0), D.SendEvent("双倍奖励首次拉取成功数", 3035, !1));
    		}
    		adSuccess() {
    			this.isDebug && console.log("adSuccess"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("双倍奖励完播数", 3034, !1),
    				A.instance.isFristDotForDouble_2 ||
    				((A.instance.isFristDotForDouble_2 = !0), D.SendEvent("双倍奖励首次拉取完播数", 3036, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curReward = 2 * this.curReward),
    				(this.rewardNum.text = "x" + this.curReward),
    				(this.btnDouble.visible = !1);
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			if (
    				(this.isDebug && console.log("onClickClose"),
    					L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					!this.isStartClose)
    			)
    				if (
    					((this.isStartClose = !0),
    						console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    						console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    						Ie.instance.curStageIndex > 100)
    				)
    					switch (L.instance.playerInfo.teachStage) {
    						case 1:
    							D.SendEvent("玩家完成教学1点击继续任务次数", 1009, !1),
    								(L.instance.playerInfo.teachStage = 2),
    								(L.instance.playerInfo.teachStep = 1),
    								L.instance.savePlayerInfoToLocalCache(),
    								(this.curCloseIndex = 2),
    								this.playMenuCloseAni(this.onHide.bind(this));
    							break;

    						case 2:
    							D.SendEvent("玩家完成教学2点击继续任务次数", 1012, !1),
    								(L.instance.playerInfo.teachStage = 0),
    								(L.instance.playerInfo.teachStep = 1),
    								(L.instance.playerInfo.isCompleteTeach = !0),
    								L.instance.savePlayerInfoToLocalCache(),
    								(f.instance.isCompleteTeachGetReward = !0),
    								(this.curCloseIndex = 3),
    								this.playMenuCloseAni(this.onHide.bind(this));
    					}
    				else
    					(L.instance.playerInfo.gold += this.curReward),
    						L.instance.savePlayerInfoToLocalCache(),
    						(this.curCloseIndex = 0),
    						this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickBack() {
    			this.isDebug && console.log("onClickBack"),
    				Ie.instance.curStageIndex > 100 ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					(L.instance.playerInfo.gold += this.curReward),
    					L.instance.savePlayerInfoToLocalCache(),
    					B.ShuFenReport_guide("lost022", 1),
    					(this.curCloseIndex = 1),
    					this.playMenuCloseAni(this.onHide.bind(this)));
    		}
    		onClickShareSp() {
    			if ((this.isDebug && console.log("onClickBack"), !(Ie.instance.curStageIndex > 100)))
    				switch (
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"), l.game_channel)
    				) {
    					case 4:
    						Gt.instance.shareRecord(this.shareRecordSucess.bind(this), this.shareRecordFai.bind(this));
    				}
    		}
    		shareRecordSucess() {
    			this.isDebug && console.log("shareRecordSucess"),
    				Tt.instance.isStateRecord &&
    				((Tt.instance.isStateRecord = !1),
    					(L.instance.playerInfo.gold += 50),
    					L.instance.savePlayerInfoToLocalCache(),
    					(this.btnShareSp.visible = !1),
    					(this.btnDouble.x = 780),
    					(this.btnBack.x = 1120),
    					(mt.instance.getRewardMenuType = 0),
    					(mt.instance.getItemValue = 50),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward());
    		}
    		shareRecordFai() {
    			this.isDebug && console.log("shareRecordFai"), (Tt.instance.isStateRecord = !1);
    		}
    		getCloseBtnX() {
    			return (
    				this.isDebug && console.log("Laya.stage.width == " + Laya.stage.width),
    				(Laya.stage.width * this.btnClose.x) / 1920
    			);
    		}
    		getCloseBtnY() {
    			return (
    				this.isDebug && console.log("Laya.stage.height == " + Laya.stage.height),
    				(Laya.stage.height * this.btnClose.y) / 1080
    			);
    		}
    		renderListItem1(e, t) {
    			this.isDebug &&
    				(console.log("renderListItem1"),
    					console.log("index == " + e),
    					console.log("adManage.instance.vBidDatas.length == " + Tt.instance.vBidDatas.length));
    			var s = t;
    			s.setDataIndex(e),
    				s.setGameIcon(Tt.instance.vBidDatas[e].iconUrl),
    				s.setGameName(Tt.instance.vBidDatas[e].txt),
    				s.setMark(Tt.instance.vBidDatas[e].mark);
    		}
    		renderListItem2(e, t) {
    			this.isDebug &&
    				(console.log("renderListItem2"),
    					console.log("index == " + e),
    					console.log("adManage.instance.vBidDatas.length == " + Tt.instance.vBidDatas.length));
    			var s = t;
    			s.setDataIndex(e),
    				s.setGameIcon(Tt.instance.vBidDatas[e].iconUrl),
    				s.setGameName(Tt.instance.vBidDatas[e].txt),
    				s.setMark(Tt.instance.vBidDatas[e].mark);
    		}
    		onClickItem(e) {
    			if (
    				(this.isDebug && console.log("onClickItem == dataIndex == " + e),
    					L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    					Tt.instance.moreGameDatas.length > 0)
    			) {
    				let t = Tt.instance.moreGameDatas[e];
    				Tt.instance.openMoreGame(t.jumpKey, t.mid);
    			}
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class N extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curState = 0);
    		}
    		onEnable() {
    			this.isDebug && console.log("baffle == onEnable"), (this.curNode = this.owner);
    		}
    		onDisable() { }
    		onUpdate() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onTriggerEnter(e) {
    			if (f.instance.isStartCollision)
    				switch (
    				(this.isDebug &&
    					(console.log("rearBucket == onTriggerEnter"),
    						console.log("other.owner.name == " + e.owner.name),
    						console.log("other.owner.parent.name == " + e.owner.parent.name)),
    					Ie.instance.getStageTypeByStageIndex())
    				) {
    					case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					case l.TASK_TYPE.TASK_TYPE_TASK_05:
    						switch (this.curState) {
    							case 0:
    								if (
    									-1 != e.owner.name.indexOf("small_dirt_") &&
    									!f.instance.isHaveDirtInBucket &&
    									!f.instance.isPlayWJJAni
    								) {
    									switch (
    									((f.instance.isPlayWJJAni = !0),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.showAllControlKey(!1),
    										e.owner.name)
    									) {
    										case "small_dirt_1":
    											f.instance.curDiggerDirtPos = 1;
    											break;

    										case "small_dirt_2":
    											f.instance.curDiggerDirtPos = 2;
    											break;

    										case "small_dirt_3":
    											f.instance.curDiggerDirtPos = 3;
    											break;

    										case "small_dirt_4":
    											f.instance.curDiggerDirtPos = 4;
    											break;

    										case "small_dirt_5":
    											f.instance.curDiggerDirtPos = 5;
    											break;

    										case "small_dirt_6":
    											f.instance.curDiggerDirtPos = 6;
    									}
    									this.curPlayer.getComponent(Laya.Script3D).playDiggingAni();
    								}
    								break;

    							case 1:
    								-1 != e.owner.name.indexOf("triggerNode") &&
    									f.instance.isHaveDirtInBucket &&
    									(f.instance.isPlayWJJAni ||
    										((f.instance.isPlayWJJAni = !0),
    											$.instance.showControl1(!1),
    											$.instance.showControl2(!1),
    											(f.instance.isShowControl = !1),
    											$.instance.showAllControlKey(!1),
    											this.curPlayer.getComponent(Laya.Script3D).playDropDirtAni()));
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    						if (-1 != e.owner.name.indexOf("dirt_") && !f.instance.isHaveDirtInBucket && !f.instance.isPlayWJJAni) {
    							switch (
    							((f.instance.isPlayWJJAni = !0),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.showAllControlKey(!1),
    								e.owner.name)
    							) {
    								case "dirt_1":
    									f.instance.curDiggerDirtPos = 1;
    									break;

    								case "dirt_2":
    									f.instance.curDiggerDirtPos = 2;
    									break;

    								case "dirt_3":
    									f.instance.curDiggerDirtPos = 3;
    							}
    							this.curPlayer.getComponent(Laya.Script3D).playDiggingAni();
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_04:
    						switch (this.curState) {
    							case 0:
    								if (-1 != e.owner.name.indexOf("dirt_") && !f.instance.isHaveDirtInBucket && !f.instance.isPlayWJJAni) {
    									switch (
    									((f.instance.isPlayWJJAni = !0),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.showAllControlKey(!1),
    										e.owner.name)
    									) {
    										case "dirt_1":
    											f.instance.curDiggerDirtPos = 1;
    											break;

    										case "dirt_2":
    											f.instance.curDiggerDirtPos = 2;
    											break;

    										case "dirt_3":
    											f.instance.curDiggerDirtPos = 3;
    									}
    									this.curPlayer.getComponent(Laya.Script3D).playDiggingAni();
    								}
    								break;

    							case 1:
    								if (
    									-1 != e.owner.name.indexOf("triggerNode") &&
    									f.instance.isHaveDirtInBucket &&
    									!f.instance.isPlayWJJAni
    								) {
    									switch (
    									((f.instance.isPlayWJJAni = !0),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.showAllControlKey(!1),
    										e.owner.name)
    									) {
    										case "dirt_1":
    											f.instance.curDiggerDirtPos = 1;
    											break;

    										case "dirt_2":
    											f.instance.curDiggerDirtPos = 2;
    											break;

    										case "dirt_3":
    											f.instance.curDiggerDirtPos = 3;
    									}
    									this.curPlayer.getComponent(Laya.Script3D).playDropDirtAni();
    								}
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_07:
    						switch (this.curState) {
    							case 0:
    								if (
    									-1 != e.owner.name.indexOf("big_dirt_") &&
    									!f.instance.isHaveDirtInBucket &&
    									!f.instance.isPlayWJJAni
    								) {
    									switch (
    									((f.instance.isPlayWJJAni = !0),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.showAllControlKey(!1),
    										e.owner.name)
    									) {
    										case "big_dirt_1":
    											f.instance.curDiggerDirtPos = 1;
    											break;

    										case "big_dirt_2":
    											f.instance.curDiggerDirtPos = 2;
    											break;

    										case "big_dirt_3":
    											f.instance.curDiggerDirtPos = 3;
    									}
    									this.curPlayer.getComponent(Laya.Script3D).playDiggingAni();
    								}
    								break;

    							case 1:
    								-1 != e.owner.name.indexOf("triggerNode") &&
    									f.instance.isHaveDirtInBucket &&
    									(f.instance.isPlayWJJAni ||
    										((f.instance.isPlayWJJAni = !0),
    											$.instance.showControl1(!1),
    											$.instance.showControl2(!1),
    											(f.instance.isShowControl = !1),
    											$.instance.showAllControlKey(!1),
    											this.curPlayer.getComponent(Laya.Script3D).playDropDirtAni()));
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2:
    						switch ((this.isDebug && console.log("this.curState == " + this.curState), this.curState)) {
    							case 0:
    								-1 != e.owner.name.indexOf("dirt_") &&
    									2 == L.instance.playerInfo.teachStage &&
    									4 == L.instance.playerInfo.teachStep &&
    									(f.instance.isHaveDirtInBucket ||
    										f.instance.isPlayWJJAni ||
    										((f.instance.isPlayWJJAni = !0),
    											$.instance.showControl1(!1),
    											$.instance.showControl2(!1),
    											(f.instance.isShowControl = !1),
    											$.instance.showAllControlKey(!1),
    											this.curPlayer.getComponent(Laya.Script3D).playDiggingAni(),
    											Q.instance.stopNextStep()));
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    						switch ((this.isDebug && console.log("this.curState == " + this.curState), this.curState)) {
    							case 1:
    								-1 != e.owner.name.indexOf("triggerNode") &&
    									3 == L.instance.playerInfo.teachStage &&
    									5 == L.instance.playerInfo.teachStep &&
    									f.instance.isHaveDirtInBucket &&
    									(console.log("gameLogic.instance.isPlayWJJAni == " + f.instance.isPlayWJJAni),
    										f.instance.isPlayWJJAni ||
    										((f.instance.isPlayWJJAni = !0),
    											$.instance.showControl1(!1),
    											$.instance.showControl2(!1),
    											(f.instance.isShowControl = !1),
    											$.instance.showAllControlKey(!1),
    											(f.instance.isShowPlacePosSign = !1),
    											$.instance.showPlaceSign(!1, "", 0, 0),
    											console.log("103 =================1111================== playDropDirtAni "),
    											this.curPlayer.getComponent(Laya.Script3D).playDropDirtAni(),
    											Q.instance.stopNextStep()));
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_03:
    						switch (e.owner.parent.name) {
    							case "house_cracks_1":
    								-1 != e.owner.name.indexOf("H") &&
    									(Ie.instance.isHouse1Damaged ||
    										(Ie.instance.house1DamageCount >= 10
    											? ((Ie.instance.isHouse1Damaged = !0),
    												Ie.instance.playHouseAni(1),
    												(f.instance.curStageProcess += 1),
    												$.instance.setTaskCurProgress(f.instance.curStageProcess),
    												v.instance.updateCarAchieve(
    													L.instance.carInfo.curUseCar,
    													Ie.instance.getStageTypeByStageIndex()
    												),
    												f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    												(Ie.instance.isChallengeLevel()
    													? D.SendEvent("挑战任务8：拆除房屋。完成次数统计", 2024, !1)
    													: D.SendEvent("普通任务8：拆除房屋。完成次数统计", 2011, !1),
    													(f.instance.isShowDiggerPosSign = !1),
    													(f.instance.isShowPlacePosSign = !1),
    													(f.instance.isShowTargetPosSign = !1),
    													$.instance.showDiggerSign(!1, "", 0, 0),
    													$.instance.showTaskTargetSign(!1, 0, 0),
    													this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    													$.instance.showControl1(!1),
    													$.instance.showControl2(!1),
    													$.instance.showSlider1(!1),
    													$.instance.showSlider2(!1),
    													(f.instance.isShowControl = !1),
    													$.instance.stopChecHideBox(),
    													$.instance.stopCheckQuickWin(),
    													Laya.stage.event("hideBox_ClickClose"),
    													Laya.stage.event("quickWin_ClickClose"),
    													mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    											: (L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_13.mp3"),
    												Ie.instance.hideItem(1, e.owner.name))));
    								break;

    							case "house_cracks_2":
    								-1 != e.owner.name.indexOf("H") &&
    									(Ie.instance.isHouse2Damaged ||
    										(Ie.instance.house2DamageCount >= 10
    											? ((Ie.instance.isHouse2Damaged = !0),
    												Ie.instance.playHouseAni(2),
    												console.log("44444444"),
    												(f.instance.curStageProcess += 1),
    												$.instance.setTaskCurProgress(f.instance.curStageProcess),
    												v.instance.updateCarAchieve(
    													L.instance.carInfo.curUseCar,
    													Ie.instance.getStageTypeByStageIndex()
    												),
    												f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    												(Ie.instance.isChallengeLevel()
    													? D.SendEvent("挑战任务8：拆除房屋。完成次数统计", 2024, !1)
    													: D.SendEvent("普通任务8：拆除房屋。完成次数统计", 2011, !1),
    													(f.instance.isShowDiggerPosSign = !1),
    													(f.instance.isShowPlacePosSign = !1),
    													(f.instance.isShowTargetPosSign = !1),
    													$.instance.showDiggerSign(!1, "", 0, 0),
    													$.instance.showTaskTargetSign(!1, 0, 0),
    													this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    													$.instance.showControl1(!1),
    													$.instance.showControl2(!1),
    													$.instance.showSlider1(!1),
    													$.instance.showSlider2(!1),
    													(f.instance.isShowControl = !1),
    													$.instance.stopChecHideBox(),
    													$.instance.stopCheckQuickWin(),
    													Laya.stage.event("hideBox_ClickClose"),
    													Laya.stage.event("quickWin_ClickClose"),
    													mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    											: (L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_13.mp3"),
    												Ie.instance.hideItem(2, e.owner.name))));
    								break;

    							case "house_cracks_3":
    								-1 != e.owner.name.indexOf("H") &&
    									(Ie.instance.isHouse3Damaged ||
    										(Ie.instance.house3DamageCount >= 10
    											? ((Ie.instance.isHouse3Damaged = !0),
    												Ie.instance.playHouseAni(3),
    												console.log("5555555"),
    												(f.instance.curStageProcess += 1),
    												$.instance.setTaskCurProgress(f.instance.curStageProcess),
    												v.instance.updateCarAchieve(
    													L.instance.carInfo.curUseCar,
    													Ie.instance.getStageTypeByStageIndex()
    												),
    												f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    												(Ie.instance.isChallengeLevel()
    													? D.SendEvent("挑战任务8：拆除房屋。完成次数统计", 2024, !1)
    													: D.SendEvent("普通任务8：拆除房屋。完成次数统计", 2011, !1),
    													(f.instance.isShowDiggerPosSign = !1),
    													(f.instance.isShowPlacePosSign = !1),
    													(f.instance.isShowTargetPosSign = !1),
    													$.instance.showDiggerSign(!1, "", 0, 0),
    													$.instance.showTaskTargetSign(!1, 0, 0),
    													this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    													$.instance.showControl1(!1),
    													$.instance.showControl2(!1),
    													$.instance.showSlider1(!1),
    													$.instance.showSlider2(!1),
    													(f.instance.isShowControl = !1),
    													$.instance.stopChecHideBox(),
    													$.instance.stopCheckQuickWin(),
    													Laya.stage.event("hideBox_ClickClose"),
    													Laya.stage.event("quickWin_ClickClose"),
    													mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    											: (L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_13.mp3"),
    												Ie.instance.hideItem(3, e.owner.name))));
    						}
    				}
    		}
    		onTriggerStay(e) {
    			f.instance.isStartCollision;
    		}
    		onTriggerExit(e) {
    			f.instance.isStartCollision;
    		}
    	}
    	class U extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		onEnable() {
    			this.isDebug && console.log("baffle == onEnable"), (this.curNode = this.owner), this.initBaffleAni();
    		}
    		onDisable() {
    			this.isDebug && console.log("baffle == onDisable");
    		}
    		onUpdate() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		showBaffle() {
    			this.playBaffleAni();
    		}
    		initBaffleAni() {
    			this.isDebug && console.log("initBaffleAni"),
    				this.baffleAnimator ||
    				((this.baffleAnimator = this.curNode.getComponent(Laya.Animator)),
    					this.baffleAnimator.getDefaultState().addScript(G),
    					(this.baffleAnimator.getDefaultState().clip.islooping = !0));
    		}
    		playBaffleAni() {
    			this.isDebug && console.log("playBaffleAni"), this.baffleAnimator && this.baffleAnimator.play("DA", 0, 0);
    		}
    		onTriggerEnter(e) {
    			if (f.instance.isStartCollision)
    				switch (
    				(this.isDebug &&
    					(console.log("baffle == onTriggerEnter"),
    						console.log("other.owner.name == " + e.owner.name),
    						console.log("other.owner.parent.name == " + e.owner.parent.name)),
    					Ie.instance.getStageTypeByStageIndex())
    				) {
    					case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					case l.TASK_TYPE.TASK_TYPE_TASK_13:
    						switch (e.owner.name) {
    							case "stone1":
    								1 == Ie.instance.curDiggerPos && Ie.instance.playStageAni(1);
    								break;

    							case "stone2":
    								2 == Ie.instance.curDiggerPos && Ie.instance.playStageAni(2);
    								break;

    							case "stone3":
    								3 == Ie.instance.curDiggerPos && Ie.instance.playStageAni(3);
    						}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_11:
    						switch (e.owner.parent.name) {
    							case "road_damage_1":
    								-1 != e.owner.name.indexOf("road_damage_1_Part") &&
    									(Ie.instance.isRoad1Damaged ||
    										((Ie.instance.road1DamageCount += 1),
    											Ie.instance.road1DamageCount >= 5
    												? ((Ie.instance.isRoad1Damaged = !0),
    													Ie.instance.playRoadAni(1),
    													(f.instance.curStageProcess += 1),
    													$.instance.setTaskCurProgress(f.instance.curStageProcess),
    													v.instance.updateCarAchieve(
    														L.instance.carInfo.curUseCar,
    														Ie.instance.getStageTypeByStageIndex()
    													),
    													f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    													(Ie.instance.isChallengeLevel()
    														? D.SendEvent("挑战任务11：打破道路。完成次数统计", 2027, !1)
    														: D.SendEvent("普通任务11：打破道路。完成次数统计", 2014, !1),
    														(f.instance.isShowDiggerPosSign = !1),
    														(f.instance.isShowPlacePosSign = !1),
    														(f.instance.isShowTargetPosSign = !1),
    														$.instance.showDiggerSign(!1, "", 0, 0),
    														$.instance.showTaskTargetSign(!1, 0, 0),
    														this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    														$.instance.showControl1(!1),
    														$.instance.showControl2(!1),
    														$.instance.showSlider1(!1),
    														$.instance.showSlider2(!1),
    														(f.instance.isShowControl = !1),
    														$.instance.stopChecHideBox(),
    														$.instance.stopCheckQuickWin(),
    														Laya.stage.event("hideBox_ClickClose"),
    														Laya.stage.event("quickWin_ClickClose"),
    														mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    												: Ie.instance.hideItem(1, e.owner.name)));
    								break;

    							case "road_damage_2":
    								-1 != e.owner.name.indexOf("road_damage_2_Part") &&
    									(Ie.instance.isRoad2Damaged ||
    										((Ie.instance.road2DamageCount += 1),
    											Ie.instance.road2DamageCount >= 5
    												? ((Ie.instance.isRoad2Damaged = !0),
    													Ie.instance.playRoadAni(2),
    													(f.instance.curStageProcess += 1),
    													$.instance.setTaskCurProgress(f.instance.curStageProcess),
    													v.instance.updateCarAchieve(
    														L.instance.carInfo.curUseCar,
    														Ie.instance.getStageTypeByStageIndex()
    													),
    													f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    													(Ie.instance.isChallengeLevel()
    														? D.SendEvent("挑战任务11：打破道路。完成次数统计", 2027, !1)
    														: D.SendEvent("普通任务11：打破道路。完成次数统计", 2014, !1),
    														(f.instance.isShowDiggerPosSign = !1),
    														(f.instance.isShowPlacePosSign = !1),
    														(f.instance.isShowTargetPosSign = !1),
    														$.instance.showDiggerSign(!1, "", 0, 0),
    														$.instance.showTaskTargetSign(!1, 0, 0),
    														this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    														$.instance.showControl1(!1),
    														$.instance.showControl2(!1),
    														$.instance.showSlider1(!1),
    														$.instance.showSlider2(!1),
    														(f.instance.isShowControl = !1),
    														$.instance.stopChecHideBox(),
    														$.instance.stopCheckQuickWin(),
    														Laya.stage.event("hideBox_ClickClose"),
    														Laya.stage.event("quickWin_ClickClose"),
    														mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    												: Ie.instance.hideItem(2, e.owner.name)));
    								break;

    							case "road_damage_3":
    								-1 != e.owner.name.indexOf("road_damage_3_Part") &&
    									(Ie.instance.isRoad3Damaged ||
    										((Ie.instance.road3DamageCount += 1),
    											Ie.instance.road3DamageCount >= 5
    												? ((Ie.instance.isRoad3Damaged = !0),
    													Ie.instance.playRoadAni(3),
    													(f.instance.curStageProcess += 1),
    													$.instance.setTaskCurProgress(f.instance.curStageProcess),
    													v.instance.updateCarAchieve(
    														L.instance.carInfo.curUseCar,
    														Ie.instance.getStageTypeByStageIndex()
    													),
    													f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    													(Ie.instance.isChallengeLevel()
    														? D.SendEvent("挑战任务11：打破道路。完成次数统计", 2027, !1)
    														: D.SendEvent("普通任务11：打破道路。完成次数统计", 2014, !1),
    														(f.instance.isShowDiggerPosSign = !1),
    														(f.instance.isShowPlacePosSign = !1),
    														(f.instance.isShowTargetPosSign = !1),
    														$.instance.showDiggerSign(!1, "", 0, 0),
    														$.instance.showTaskTargetSign(!1, 0, 0),
    														this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    														$.instance.showControl1(!1),
    														$.instance.showControl2(!1),
    														$.instance.showSlider1(!1),
    														$.instance.showSlider2(!1),
    														(f.instance.isShowControl = !1),
    														$.instance.stopChecHideBox(),
    														$.instance.stopCheckQuickWin(),
    														Laya.stage.event("hideBox_ClickClose"),
    														Laya.stage.event("quickWin_ClickClose"),
    														mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    												: Ie.instance.hideItem(3, e.owner.name)));
    						}
    				}
    		}
    		onTriggerStay(e) {
    			f.instance.isStartCollision && this.isDebug;
    		}
    		onTriggerExit(e) {
    			f.instance.isStartCollision &&
    				(this.isDebug && (console.log("baffle == onTriggerExit"), console.log("other.owner.name == " + e.owner.name)),
    					e.owner.name);
    		}
    	}
    	class G extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() { }
    		onStateUpdate() { }
    		onStateExit() { }
    	}
    	class F extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.guandaoPrefab = null),
    				(this.guandao1 = null),
    				(this.guandao2 = null),
    				(this.guandao3 = null),
    				(this.guandao1_1 = null),
    				(this.guandao2_1 = null),
    				(this.guandao3_1 = null),
    				(this.guandaoInTicks = null),
    				(this.pos_light = null),
    				(this.targePos = new Laya.Vector3(0.104, 0.039, -0.851)),
    				(this.diggerPos = new Laya.Vector3(0.014, 0.0115, -0.897)),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new F()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage1 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/Guandao1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Guandao1.lh");
    			switch (
    			((this.guandaoPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.guandao1 = Laya.Pool.getItemByCreateFun("Guandao", this.creatGundaoFun, this)),
    				(this.guandao1.name = "Guandao1"),
    				(this.guandao2 = Laya.Pool.getItemByCreateFun("Guandao", this.creatGundaoFun, this)),
    				(this.guandao2.name = "Guandao2"),
    				(this.guandao3 = Laya.Pool.getItemByCreateFun("Guandao", this.creatGundaoFun, this)),
    				(this.guandao3.name = "Guandao3"),
    				(this.guandao1_1 = Laya.Pool.getItemByCreateFun("Guandao", this.creatGundaoFun, this)),
    				(this.guandao1_1.name = "Guandao1_1"),
    				(this.guandao2_1 = Laya.Pool.getItemByCreateFun("Guandao", this.creatGundaoFun, this)),
    				(this.guandao2_1.name = "Guandao2_1"),
    				(this.guandao3_1 = Laya.Pool.getItemByCreateFun("Guandao", this.creatGundaoFun, this)),
    				(this.guandao3_1.name = "Guandao3_1"),
    				this.curScene.addChild(this.guandao1),
    				this.curScene.addChild(this.guandao2),
    				this.curScene.addChild(this.guandao3),
    				this.curScene.addChild(this.guandao1_1),
    				this.curScene.addChild(this.guandao2_1),
    				this.curScene.addChild(this.guandao3_1),
    				(this.guandaoInTicks = Laya.Pool.getItemByCreateFun("GuandaoInTick", this.creatGundaoFun, this)),
    				(this.guandaoInTicks.name = "GundaoInTicks"),
    				this.curPlayer.getComponent(Laya.Script3D).curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.guandaoInTicks.transform.localPosition = new Laya.Vector3(0, -0.2146, -0.038)),
    						(this.guandaoInTicks.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    						(this.guandaoInTicks.transform.localScale = new Laya.Vector3(10, 10, 10));
    					break;

    				case 2:
    				case 4:
    					(this.guandaoInTicks.transform.localPosition = new Laya.Vector3(0, -0.464, 0.09)),
    						(this.guandaoInTicks.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    						(this.guandaoInTicks.transform.localScale = new Laya.Vector3(10, 10, 10));
    					break;

    				case 3:
    					(this.guandaoInTicks.transform.localPosition = new Laya.Vector3(0, -0.451, 0.072)),
    						(this.guandaoInTicks.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    						(this.guandaoInTicks.transform.localScale = new Laya.Vector3(13, 13, 13));
    			}
    			this.curPlayer.getComponent(Laya.Script3D).getTicks().addChild(this.guandaoInTicks),
    				(this.guandaoInTicks.active = !1),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatGundaoFun() {
    			return console.log("creatGundaoFun"), Laya.Sprite3D.instantiate(this.guandaoPrefab, this.curScene);
    		}
    		initStage() {
    			this.isDebug && console.log("stage5 === initStage"),
    				(this.guandao1.transform.localPosition = new Laya.Vector3(0.05110002, 0.0115, -0.8652)),
    				(this.guandao1.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.guandao2.transform.localPosition = new Laya.Vector3(0.014, 0.0115, -0.897)),
    				(this.guandao2.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.guandao3.transform.localPosition = new Laya.Vector3(-0.02200001, 0.0115, -0.8652)),
    				(this.guandao3.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.guandao1_1.transform.localPosition = new Laya.Vector3(0.2652, -0.0235, -0.7425)),
    				(this.guandao1_1.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.guandao2_1.transform.localPosition = new Laya.Vector3(0.1817, -0.0227, -0.7425)),
    				(this.guandao2_1.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.guandao3_1.transform.localPosition = new Laya.Vector3(0.09914999, -0.0227, -0.7425)),
    				(this.guandao3_1.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.guandao1.meshRenderer.enable = !0),
    				(this.guandao2.meshRenderer.enable = !0),
    				(this.guandao3.meshRenderer.enable = !0),
    				(this.guandao1_1.active = !0),
    				(this.guandao2_1.active = !0),
    				(this.guandao3_1.active = !0),
    				(this.guandao1_1.meshRenderer.enable = !1),
    				(this.guandao2_1.meshRenderer.enable = !1),
    				(this.guandao3_1.meshRenderer.enable = !1),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(this._manager.curDiggerPos = 0),
    				(f.instance.curStageProcess = 0),
    				(f.instance.isHaveObjectInTick = !1),
    				(Ie.instance.curDiggerPos = 1),
    				(Ie.instance.gandao1Complete = !1),
    				(Ie.instance.gandao2Complete = !1),
    				(Ie.instance.gandao3Complete = !1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage5 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 0.104 - 0.4 &&
    				this.curPlayer.transform.localPositionX <= 0.504 &&
    				this.curPlayer.transform.localPositionZ <= 0.4 - 0.851 &&
    				this.curPlayer.transform.localPositionZ >= -1.251 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(this._manager.curDiggerPos = 1),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showGuanDaoOnGroun(e, t) {
    			switch (e) {
    				case 1:
    					this.guandao1.active = t;
    					break;

    				case 2:
    					this.guandao2.active = t;
    					break;

    				case 3:
    					this.guandao3.active = t;
    			}
    		}
    		showGuanDaoOnPlace(e, t) {
    			switch (e) {
    				case 1:
    					this.guandao1_1.meshRenderer.enable = t;
    					break;

    				case 2:
    					this.guandao2_1.meshRenderer.enable = t;
    					break;

    				case 3:
    					this.guandao3_1.meshRenderer.enable = t;
    			}
    		}
    		showDiggerPos(e) {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "抓起散落的管道", e.x, e.y);
    			}
    		}
    		showPlacePos(e) {
    			if (this.curCarema)
    				switch (e) {
    					case 1:
    						{
    							this.curCarema.viewport.project(
    								this.guandao1_1.transform.localPosition,
    								this.curCarema.projectionViewMatrix,
    								this._outPos2
    							);
    							let e = new Laya.Vector2(
    								this._outPos2.x / Laya.stage.clientScaleX,
    								this._outPos2.y / Laya.stage.clientScaleY
    							);
    							this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 &&
    								e.x <= Laya.stage.width &&
    								e.y >= 0 &&
    								e.y <= Laya.stage.height &&
    								$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    						}
    						break;

    					case 2:
    						{
    							this.curCarema.viewport.project(
    								this.guandao2_1.transform.localPosition,
    								this.curCarema.projectionViewMatrix,
    								this._outPos2
    							);
    							let e = new Laya.Vector2(
    								this._outPos2.x / Laya.stage.clientScaleX,
    								this._outPos2.y / Laya.stage.clientScaleY
    							);
    							this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 &&
    								e.x <= Laya.stage.width &&
    								e.y >= 0 &&
    								e.y <= Laya.stage.height &&
    								$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    						}
    						break;

    					case 3: {
    						this.curCarema.viewport.project(
    							this.guandao3_1.transform.localPosition,
    							this.curCarema.projectionViewMatrix,
    							this._outPos2
    						);
    						let e = new Laya.Vector2(
    							this._outPos2.x / Laya.stage.clientScaleX,
    							this._outPos2.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    					}
    				}
    		}
    		exitStageProcess() {
    			this.guandao1 && (this.guandao1.removeSelf(), Laya.Pool.recover("Guandao", this.guandao1)),
    				this.guandao2 && (this.guandao2.removeSelf(), Laya.Pool.recover("Guandao", this.guandao2)),
    				this.guandao3 && (this.guandao3.removeSelf(), Laya.Pool.recover("Guandao", this.guandao3)),
    				this.guandao1_1 && (this.guandao1_1.removeSelf(), Laya.Pool.recover("Guandao", this.guandao1_1)),
    				this.guandao2_1 && (this.guandao2_1.removeSelf(), Laya.Pool.recover("Guandao", this.guandao2_1)),
    				this.guandao3_1 && (this.guandao3_1.removeSelf(), Laya.Pool.recover("Guandao", this.guandao3_1)),
    				this.guandaoInTicks &&
    				(this.guandaoInTicks.removeSelf(), Laya.Pool.recover("GuandaoInTick", this.guandaoInTicks)),
    				this.guandaoPrefab && this.guandaoPrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class Y extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		onEnable() {
    			this.curNode = this.owner;
    		}
    		onDisable() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onUpdate() { }
    		onTriggerEnter(e) {
    			switch (
    			(this.isDebug &&
    				(console.log("ticks == onTriggerEnter"),
    					console.log("ticks == other.owner.name == " + e.owner.name),
    					console.log("ticks == other.owner.parent.name == " + e.owner.parent.name),
    					console.log("ticks == stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    				Ie.instance.getStageTypeByStageIndex())
    			) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					if (f.instance.isHaveObjectInTick)
    						switch ((this.isDebug && console.log("夹子里有物体"), e.owner.name)) {
    							case "Guandao1_1":
    								this.curPlayer.getComponent(Laya.Script3D).playTicksAni(1),
    									this.curPlayer.getComponent(Laya.Script3D).showGuandaoOnTick(!1),
    									F.instance.showGuanDaoOnPlace(1, !0),
    									(f.instance.isHaveObjectInTick = !1),
    									(Ie.instance.gandao1Complete = !0),
    									Ie.instance.gandao2Complete
    										? Ie.instance.gandao3Complete
    											? (Ie.instance.curDiggerPos = 0)
    											: (Ie.instance.curDiggerPos = 3)
    										: (Ie.instance.curDiggerPos = 2),
    									(f.instance.isShowDiggerPosSign = !0),
    									(f.instance.isShowPlacePosSign = !1),
    									$.instance.showPlaceSign(!1, "", 0, 0),
    									(f.instance.curStageProcess += 1),
    									$.instance.setTaskCurProgress(f.instance.curStageProcess),
    									v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    									f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    									(Ie.instance.isChallengeLevel()
    										? D.SendEvent("挑战任务6：建设管道。完成次数统计", 2022, !1)
    										: D.SendEvent("普通任务6：建设管道。完成次数统计", 2009, !1),
    										(f.instance.isShowDiggerPosSign = !1),
    										(f.instance.isShowPlacePosSign = !1),
    										(f.instance.isShowTargetPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										$.instance.showTaskTargetSign(!1, 0, 0),
    										this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										$.instance.showSlider1(!1),
    										$.instance.showSlider2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.stopChecHideBox(),
    										$.instance.stopCheckQuickWin(),
    										Laya.stage.event("hideBox_ClickClose"),
    										Laya.stage.event("quickWin_ClickClose"),
    										mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu());
    								break;

    							case "Guandao2_1":
    								this.curPlayer.getComponent(Laya.Script3D).playTicksAni(1),
    									this.curPlayer.getComponent(Laya.Script3D).showGuandaoOnTick(!1),
    									F.instance.showGuanDaoOnPlace(2, !0),
    									(f.instance.isHaveObjectInTick = !1),
    									(Ie.instance.gandao2Complete = !0),
    									Ie.instance.gandao1Complete
    										? Ie.instance.gandao3Complete
    											? (Ie.instance.curDiggerPos = 0)
    											: (Ie.instance.curDiggerPos = 3)
    										: (Ie.instance.curDiggerPos = 1),
    									(f.instance.isShowDiggerPosSign = !0),
    									(f.instance.isShowPlacePosSign = !1),
    									$.instance.showPlaceSign(!1, "", 0, 0),
    									console.log("7777777"),
    									(f.instance.curStageProcess += 1),
    									$.instance.setTaskCurProgress(f.instance.curStageProcess),
    									v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    									f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    									(Ie.instance.isChallengeLevel()
    										? D.SendEvent("挑战任务6：建设管道。完成次数统计", 2022, !1)
    										: D.SendEvent("普通任务6：建设管道。完成次数统计", 2009, !1),
    										(f.instance.isShowDiggerPosSign = !1),
    										(f.instance.isShowPlacePosSign = !1),
    										(f.instance.isShowTargetPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										$.instance.showTaskTargetSign(!1, 0, 0),
    										this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										$.instance.showSlider1(!1),
    										$.instance.showSlider2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.stopChecHideBox(),
    										$.instance.stopCheckQuickWin(),
    										Laya.stage.event("hideBox_ClickClose"),
    										Laya.stage.event("quickWin_ClickClose"),
    										mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu());
    								break;

    							case "Guandao3_1":
    								this.curPlayer.getComponent(Laya.Script3D).playTicksAni(1),
    									this.curPlayer.getComponent(Laya.Script3D).showGuandaoOnTick(!1),
    									F.instance.showGuanDaoOnPlace(3, !0),
    									(f.instance.isHaveObjectInTick = !1),
    									(Ie.instance.gandao3Complete = !0),
    									Ie.instance.gandao1Complete
    										? Ie.instance.gandao2Complete
    											? (Ie.instance.curDiggerPos = 0)
    											: (Ie.instance.curDiggerPos = 2)
    										: (Ie.instance.curDiggerPos = 1),
    									(f.instance.isShowDiggerPosSign = !0),
    									(f.instance.isShowPlacePosSign = !1),
    									$.instance.showPlaceSign(!1, "", 0, 0),
    									console.log("8888888"),
    									(f.instance.curStageProcess += 1),
    									$.instance.setTaskCurProgress(f.instance.curStageProcess),
    									v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    									f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    									(Ie.instance.isChallengeLevel()
    										? D.SendEvent("挑战任务6：建设管道。完成次数统计", 2022, !1)
    										: D.SendEvent("普通任务6：建设管道。完成次数统计", 2009, !1),
    										(f.instance.isShowDiggerPosSign = !1),
    										(f.instance.isShowPlacePosSign = !1),
    										(f.instance.isShowTargetPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										$.instance.showTaskTargetSign(!1, 0, 0),
    										this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										$.instance.showSlider1(!1),
    										$.instance.showSlider2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.stopChecHideBox(),
    										$.instance.stopCheckQuickWin(),
    										Laya.stage.event("hideBox_ClickClose"),
    										Laya.stage.event("quickWin_ClickClose"),
    										mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu());
    						}
    					else
    						switch ((this.isDebug && console.log("夹子里没物体"), e.owner.name)) {
    							case "Guandao1":
    								this.curPlayer.getComponent(Laya.Script3D).playTicksAni(2),
    									this.curPlayer.getComponent(Laya.Script3D).showGuandaoOnTick(!0),
    									F.instance.showGuanDaoOnGroun(1, !1),
    									(f.instance.isHaveObjectInTick = !0),
    									(f.instance.isShowDiggerPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									(f.instance.isShowPlacePosSign = !0);
    								break;

    							case "Guandao2":
    								this.curPlayer.getComponent(Laya.Script3D).playTicksAni(2),
    									this.curPlayer.getComponent(Laya.Script3D).showGuandaoOnTick(!0),
    									F.instance.showGuanDaoOnGroun(2, !1),
    									(f.instance.isHaveObjectInTick = !0),
    									(f.instance.isShowDiggerPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									(f.instance.isShowPlacePosSign = !0);
    								break;

    							case "Guandao3":
    								this.curPlayer.getComponent(Laya.Script3D).playTicksAni(2),
    									this.curPlayer.getComponent(Laya.Script3D).showGuandaoOnTick(!0),
    									F.instance.showGuanDaoOnGroun(3, !1),
    									(f.instance.isHaveObjectInTick = !0),
    									(f.instance.isShowDiggerPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									(f.instance.isShowPlacePosSign = !0);
    						}
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					switch (e.owner.name) {
    						case "tree_1":
    							this.isDebug && console.log("与树1发生碰撞, 触发动画"),
    								f.instance.isStartStageAni ||
    								((f.instance.isStartStageAni = !0),
    									(f.instance.isShowDiggerPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									(Ie.instance.isTree1Damaged = !0),
    									Ie.instance.showStageAni(1));
    							break;

    						case "tree_2":
    							this.isDebug && console.log("与树2发生碰撞, 触发动画"),
    								f.instance.isStartStageAni ||
    								((f.instance.isStartStageAni = !0),
    									(f.instance.isShowDiggerPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									(Ie.instance.isTree2Damaged = !0),
    									Ie.instance.showStageAni(2));
    							break;

    						case "tree_3":
    							this.isDebug && console.log("与树3发生碰撞, 触发动画"),
    								f.instance.isStartStageAni ||
    								((f.instance.isStartStageAni = !0),
    									(f.instance.isShowDiggerPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									(Ie.instance.isTree3Damaged = !0),
    									Ie.instance.showStageAni(3));
    					}
    			}
    		}
    		onTriggerStay(e) { }
    		onTriggerExit(e) {
    			console.log("ticks == onTriggerExit"), console.log("other.owner.name == " + e.owner.name);
    		}
    	}
    	class O extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curState = 0);
    		}
    		onEnable() {
    			this.curNode = this.owner;
    		}
    		onDisable() { }
    		onUpdate() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onTriggerEnter(e) {
    			if (f.instance.isStartCollision)
    				switch (
    				(this.isDebug &&
    					(console.log("rearBucket == onTriggerEnter"),
    						console.log("other.owner.name == " + e.owner.name),
    						console.log("other.owner.parent.name == " + e.owner.parent.name)),
    					Ie.instance.getStageTypeByStageIndex())
    				) {
    					case l.TASK_TYPE.TASK_TYPE_TASK_10:
    						if (f.instance.isHaveObjectInTick)
    							this.isDebug && console.log("叉子上有物体"),
    								"triggerNode2" == e.owner.name &&
    								(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_16.mp3"),
    									Ie.instance.showBoxOnTruck(),
    									this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!1),
    									(f.instance.isHaveObjectInTick = !1),
    									(f.instance.isShowPlacePosSign = !1),
    									$.instance.showPlaceSign(!1, "", 0, 0),
    									(f.instance.curStageProcess += 1),
    									$.instance.setTaskCurProgress(f.instance.curStageProcess),
    									v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    									f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    										? (Ie.instance.isChallengeLevel()
    											? D.SendEvent("挑战任务10：叉车装载。完成次数统计", 2026, !1)
    											: D.SendEvent("普通任务10：叉车装载。完成次数统计", 2013, !1),
    											(f.instance.isShowDiggerPosSign = !1),
    											(f.instance.isShowPlacePosSign = !1),
    											(f.instance.isShowTargetPosSign = !1),
    											$.instance.showPlaceSign(!1, "", 0, 0),
    											$.instance.showTaskTargetSign(!1, 0, 0),
    											$.instance.showLeftSign(!1, 0),
    											$.instance.showRightSign(!1, 0),
    											$.instance.showDownSign(!1, 0),
    											$.instance.showUpSign(!1, 0),
    											this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    											$.instance.showControl1(!1),
    											$.instance.showControl2(!1),
    											$.instance.showSlider1(!1),
    											$.instance.showSlider2(!1),
    											(f.instance.isShowControl = !1),
    											$.instance.stopChecHideBox(),
    											$.instance.stopCheckQuickWin(),
    											Laya.stage.event("hideBox_ClickClose"),
    											Laya.stage.event("quickWin_ClickClose"),
    											mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    										: ((f.instance.isShowDiggerPosSign = !0),
    											$.instance.showSlider2(!0),
    											(f.instance.isShowControl = !0),
    											$.instance.showAllControlKey(!0)));
    						else
    							switch ((this.isDebug && console.log("叉子上没物体"), e.owner.name)) {
    								case "box_1":
    									(f.instance.isHaveObjectInTick = !0),
    										L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    										Ie.instance.hideItem(1, "box_1"),
    										this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!0),
    										(f.instance.isShowDiggerPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										(f.instance.isShowPlacePosSign = !0);
    									break;

    								case "box_2":
    									(f.instance.isHaveObjectInTick = !0),
    										L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    										Ie.instance.hideItem(2, "box_2"),
    										this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!0),
    										(f.instance.isShowDiggerPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										(f.instance.isShowPlacePosSign = !0);
    									break;

    								case "box_3":
    									(f.instance.isHaveObjectInTick = !0),
    										L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    										Ie.instance.hideItem(3, "box_3"),
    										this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!0),
    										(f.instance.isShowDiggerPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										(f.instance.isShowPlacePosSign = !0);
    							}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_12:
    						if (f.instance.isHaveObjectInTick)
    							switch ((this.isDebug && console.log("叉子上有物体"), e.owner.name)) {
    								case "triggerNode3":
    									0 == f.instance.curStageProcess &&
    										(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_16.mp3"),
    											Ie.instance.showCarOnTruck(1),
    											this.curPlayer.getComponent(Laya.Script3D).showRCarOnForks(!1),
    											(f.instance.isHaveObjectInTick = !1),
    											(f.instance.isShowPlacePosSign = !1),
    											$.instance.showPlaceSign(!1, "", 0, 0),
    											(f.instance.curStageProcess += 1),
    											$.instance.setTaskCurProgress(f.instance.curStageProcess),
    											v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    											(f.instance.isShowDiggerPosSign = !0));
    									break;

    								case "triggerNode4":
    									1 == f.instance.curStageProcess &&
    										(Ie.instance.showCarOnTruck(2),
    											L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_16.mp3"),
    											this.curPlayer.getComponent(Laya.Script3D).showYCarOnForks(!1),
    											(f.instance.isHaveObjectInTick = !1),
    											(f.instance.isShowPlacePosSign = !1),
    											$.instance.showPlaceSign(!1, "", 0, 0),
    											(f.instance.curStageProcess += 1),
    											$.instance.setTaskCurProgress(f.instance.curStageProcess),
    											v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    											f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    											(Ie.instance.isChallengeLevel()
    												? D.SendEvent("挑战任务12：汽车救援。完成次数统计", 2028, !1)
    												: D.SendEvent("普通任务12：汽车救援。完成次数统计", 2015, !1),
    												(f.instance.isShowDiggerPosSign = !1),
    												(f.instance.isShowPlacePosSign = !1),
    												(f.instance.isShowTargetPosSign = !1),
    												$.instance.showPlaceSign(!1, "", 0, 0),
    												$.instance.showTaskTargetSign(!1, 0, 0),
    												$.instance.showLeftSign(!1, 0),
    												$.instance.showRightSign(!1, 0),
    												$.instance.showDownSign(!1, 0),
    												$.instance.showUpSign(!1, 0),
    												this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    												$.instance.showControl1(!1),
    												$.instance.showControl2(!1),
    												$.instance.showSlider1(!1),
    												$.instance.showSlider2(!1),
    												(f.instance.isShowControl = !1),
    												$.instance.stopChecHideBox(),
    												$.instance.stopCheckQuickWin(),
    												Laya.stage.event("hideBox_ClickClose"),
    												Laya.stage.event("quickWin_ClickClose"),
    												mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()));
    							}
    						else
    							switch ((this.isDebug && console.log("叉子上没物体"), e.owner.name)) {
    								case "redCarOnGround":
    									0 == f.instance.curStageProcess &&
    										((f.instance.isHaveObjectInTick = !0),
    											Ie.instance.hideItem(1, "redCar"),
    											this.curPlayer.getComponent(Laya.Script3D).showRCarOnForks(!0),
    											L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    											(f.instance.isShowDiggerPosSign = !1),
    											$.instance.showDiggerSign(!1, "", 0, 0),
    											(f.instance.isShowPlacePosSign = !0));
    									break;

    								case "yellowCarOnGround":
    									1 == f.instance.curStageProcess &&
    										((f.instance.isHaveObjectInTick = !0),
    											Ie.instance.hideItem(2, "yellowCar"),
    											this.curPlayer.getComponent(Laya.Script3D).showYCarOnForks(!0),
    											L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    											(f.instance.isShowDiggerPosSign = !1),
    											$.instance.showDiggerSign(!1, "", 0, 0),
    											(f.instance.isShowPlacePosSign = !0));
    							}
    						break;

    					case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    						if (!f.instance.isHaveObjectInTick)
    							switch ((this.isDebug && console.log("叉子上没物体"), e.owner.name)) {
    								case "box_1":
    									(f.instance.isHaveObjectInTick = !0),
    										L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    										Ie.instance.hideItem(1, "box_1"),
    										this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!0),
    										(f.instance.isShowDiggerPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										Ie.instance.reShowPosLight();
    									break;

    								case "box_2":
    									(f.instance.isHaveObjectInTick = !0),
    										L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    										Ie.instance.hideItem(2, "box_2"),
    										this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!0),
    										(f.instance.isShowDiggerPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										Ie.instance.reShowPosLight();
    									break;

    								case "box_3":
    									(f.instance.isHaveObjectInTick = !0),
    										L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_15.mp3"),
    										Ie.instance.hideItem(3, "box_3"),
    										this.curPlayer.getComponent(Laya.Script3D).showBoxOnForks(!0),
    										(f.instance.isShowDiggerPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										Ie.instance.reShowPosLight();
    							}
    				}
    		}
    		onTriggerStay(e) {
    			f.instance.isStartCollision;
    		}
    		onTriggerExit(e) {
    			f.instance.isStartCollision;
    		}
    	}
    	class H extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curState = 0);
    		}
    		onEnable() {
    			this.isDebug && console.log("baffle == onEnable"), (this.curNode = this.owner);
    		}
    		onDisable() { }
    		onUpdate() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onTriggerEnter(e) {
    			if (f.instance.isStartCollision)
    				switch (
    				(this.isDebug &&
    					(console.log("rearBucket == onTriggerEnter"),
    						console.log("other.owner.name == " + e.owner.name),
    						console.log("other.owner.parent.name == " + e.owner.parent.name)),
    					Ie.instance.getStageTypeByStageIndex())
    				) {
    					case l.TASK_TYPE.TASK_TYPE_TASK_08:
    						switch (e.owner.name) {
    							case "brick_wall1":
    								Ie.instance.playWallAni(0);
    								break;

    							case "brick_wall2":
    								Ie.instance.playWallAni(1);
    								break;

    							case "brick_wall3":
    								Ie.instance.playWallAni(2);
    								break;

    							case "brick_wall4":
    								Ie.instance.playWallAni(3);
    								break;

    							case "brick_wall5":
    								Ie.instance.playWallAni(4);
    								break;

    							case "brick_wall6":
    								Ie.instance.playWallAni(5);
    								break;

    							case "brick_wall7":
    								Ie.instance.playWallAni(6);
    								break;

    							case "brick_wall8":
    								Ie.instance.playWallAni(7);
    								break;

    							case "brick_wall9":
    								Ie.instance.playWallAni(8);
    								break;

    							case "brick_wall10":
    								Ie.instance.playWallAni(9);
    								break;

    							case "brick_wall11":
    								Ie.instance.playWallAni(10);
    								break;

    							case "brick_wall12":
    								Ie.instance.playWallAni(11);
    								break;

    							case "brick_wall13":
    								Ie.instance.playWallAni(12);
    								break;

    							case "brick_wall14":
    								Ie.instance.playWallAni(13);
    								break;

    							case "brick_wall15":
    								Ie.instance.playWallAni(14);
    						}
    				}
    		}
    		onTriggerStay(e) {
    			f.instance.isStartCollision;
    		}
    		onTriggerExit(e) {
    			f.instance.isStartCollision;
    		}
    	}
    	class V extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.isPreLoadMapResComplete = !1),
    				(this.isPreLoadWJJResComplete = !1),
    				(this.isPreLoadWJJ2ResComplete = !1),
    				(this.isPreLoadWJJ3ResComplete = !1),
    				(this.isPreLoadWJJItemResComplete = !1),
    				(this.isPreLoadWJJSkinResComplete = !1),
    				(this.isPreLoadNpcResComplete = !1),
    				(this.carSkinTextures = new Map()),
    				(this.isTeach = !1),
    				(this.curLoadType = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new V()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadTeachRes() {
    			(this.curLoadType = 1),
    				this.isPreLoadMapResComplete || this.preLoadMapRes(),
    				this.isPreLoadWJJResComplete || this.preLoadWJJRes(),
    				this.isPreLoadWJJSkinResComplete || this.preLoadWJJSkinRes();
    		}
    		checkLoadTeachComplete() {
    			return (
    				this.isDebug &&
    				(console.log("this.isPreLoadMapResComplete == " + this.isPreLoadMapResComplete),
    					console.log("this.isPreLoadWJJResComplete == " + this.isPreLoadWJJResComplete),
    					console.log("this.isPreLoadWJJSkinResComplete == " + this.isPreLoadWJJSkinResComplete)),
    				!!(this.isPreLoadMapResComplete && this.isPreLoadWJJResComplete && this.isPreLoadWJJSkinResComplete)
    			);
    		}
    		loadAllRes() {
    			this.isDebug &&
    				(console.log("loadAllRes"), console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    				(this.curLoadType = 0),
    				this.isPreLoadMapResComplete || this.preLoadMapRes(),
    				this.isPreLoadWJJResComplete || this.preLoadWJJRes(),
    				this.isPreLoadWJJ2ResComplete || this.preLoadWJJ2Res(),
    				this.isPreLoadWJJ3ResComplete || this.preLoadWJJ3Res(),
    				this.isPreLoadWJJItemResComplete || this.preLoadWJJItemRes(),
    				this.isPreLoadWJJSkinResComplete || this.preLoadWJJSkinRes(),
    				this.isPreLoadNpcResComplete || this.preLoadNpcRes();
    		}
    		checkAllComplete() {
    			return (
    				this.isDebug &&
    				(console.log("this.isPreLoadMapResComplete == " + this.isPreLoadMapResComplete),
    					console.log("this.isPreLoadWJJResComplete == " + this.isPreLoadWJJResComplete),
    					console.log("this.isPreLoadWJJ2ResComplete == " + this.isPreLoadWJJ2ResComplete),
    					console.log("this.isPreLoadWJJItemResComplete == " + this.isPreLoadWJJItemResComplete),
    					console.log("this.isPreLoadWJJSkinResComplete == " + this.isPreLoadWJJSkinResComplete),
    					console.log("this.isPreLoadNpcResComplete == " + this.isPreLoadNpcResComplete)),
    				!!(
    					this.isPreLoadMapResComplete &&
    					this.isPreLoadWJJResComplete &&
    					this.isPreLoadWJJ2ResComplete &&
    					this.isPreLoadWJJ3ResComplete &&
    					this.isPreLoadWJJItemResComplete &&
    					this.isPreLoadWJJSkinResComplete &&
    					this.isPreLoadNpcResComplete
    				)
    			);
    		}
    		reLoadAllRes() {
    			this.isDebug && console.log("reLoadAllRes"),
    				0 == this.curLoadType
    					? (this.isPreLoadMapResComplete || this.preLoadMapRes(),
    						this.isPreLoadWJJResComplete || this.preLoadWJJRes(),
    						this.isPreLoadWJJ2ResComplete || this.preLoadWJJ2Res(),
    						this.isPreLoadWJJ3ResComplete || this.preLoadWJJ3Res(),
    						this.isPreLoadWJJItemResComplete || this.preLoadWJJItemRes(),
    						this.isPreLoadWJJSkinResComplete || this.preLoadWJJSkinRes(),
    						this.isPreLoadNpcResComplete || this.preLoadNpcRes())
    					: (this.isPreLoadMapResComplete || this.preLoadMapRes(),
    						this.isPreLoadWJJResComplete || this.preLoadWJJRes(),
    						this.isPreLoadWJJSkinResComplete || this.preLoadWJJSkinRes());
    		}
    		preLoadResInHall() {
    			this.isPreLoadMapResComplete || this.preLoadMapRes(),
    				this.isPreLoadWJJResComplete || this.preLoadWJJRes(),
    				this.isPreLoadWJJ2ResComplete || this.preLoadWJJ2Res(),
    				this.isPreLoadWJJ3ResComplete || this.preLoadWJJ3Res(),
    				this.isPreLoadWJJItemResComplete || this.preLoadWJJItemRes(),
    				this.isPreLoadWJJSkinResComplete || this.preLoadWJJSkinRes(),
    				this.isPreLoadNpcResComplete || this.preLoadNpcRes();
    		}
    		preLoadMapRes() {
    			if ((this.isDebug && console.log("preLoadMapRes"), 2 == L.instance.settingInfo.isHigh)) {
    				let e = [
    					"res/3DRes/LayaScene_MainScene/Conventional/MainScene.ls",
    					"res/3DRes/LayaScene_MainScene/Conventional/MAP.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/practice_map.lh",
    				];
    				Laya.loader.create(e, Laya.Handler.create(this, this.onPreLoadMapResFinish));
    			} else {
    				let e = [
    					"res/3DRes/LayaScene_MainScene/Conventional/MainScene.ls",
    					"res/3DRes/LayaScene_MainScene/Conventional/map_low.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/practice_map.lh",
    				];
    				Laya.loader.create(e, Laya.Handler.create(this, this.onPreLoadMapResFinish));
    			}
    		}
    		onPreLoadTeachMapResFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/practice_map.lh");
    			this.isDebug && console.log("Maps.numChildren == " + e.numChildren),
    				(e.getChildByName("d27").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("d33").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("d35").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("d036").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("d037").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e1").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e2").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e3").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e4").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e5").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e6").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("e7").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("h9").meshFilter.sharedMesh.lock = !0);
    			let t = e.getChildByName("map");
    			(t.meshFilter.sharedMesh.lock = !0), this.isDebug && console.log("map.numChildren == " + t.numChildren);
    			for (let e = 0; e < t.numChildren; e++) {
    				t.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    			}
    			e.getChildByName("sky").meshFilter.sharedMesh.lock = !0;
    		}
    		onPreLoadMapResFinish() {
    			if ((this.onPreLoadTeachMapResFinish(), 2 == L.instance.settingInfo.isHigh)) {
    				let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/MAP.lh");
    				this.isDebug && console.log("Maps.numChildren == " + e.numChildren);
    				let t = e.getChildByName("diffuse");
    				this.isDebug && console.log("diffuse.numChildren == " + t.numChildren);
    				for (let e = 0; e < t.numChildren; e++) {
    					t.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let s = e.getChildByName("enclosure");
    				this.isDebug && console.log("enclosure.numChildren == " + s.numChildren);
    				for (let e = 0; e < s.numChildren; e++) {
    					s.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let i = e.getChildByName("highway");
    				this.isDebug && console.log("highway.numChildren == " + i.numChildren);
    				for (let e = 0; e < i.numChildren; e++) {
    					i.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let a = e.getChildByName("house");
    				this.isDebug && console.log("house.numChildren == " + a.numChildren);
    				for (let e = 0; e < a.numChildren; e++) {
    					a.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let n = e.getChildByName("map");
    				(n.meshFilter.sharedMesh.lock = !0), this.isDebug && console.log("map.numChildren == " + n.numChildren);
    				for (let e = 0; e < n.numChildren; e++) {
    					n.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				(e.getChildByName("river").meshFilter.sharedMesh.lock = !0),
    					(e.getChildByName("sky").meshFilter.sharedMesh.lock = !0);
    				let o = e.getChildByName("street_lamp");
    				this.isDebug && console.log("street_lamp.numChildren == " + o.numChildren);
    				for (let e = 0; e < o.numChildren; e++) {
    					o.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let r = e.getChildByName("tree");
    				this.isDebug && console.log("tree.numChildren == " + r.numChildren);
    				for (let e = 0; e < r.numChildren; e++) {
    					r.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    			} else {
    				let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/map_low.lh");
    				this.isDebug && console.log("Maps.numChildren == " + e.numChildren);
    				let t = e.getChildByName("diffuse");
    				this.isDebug && console.log("diffuse.numChildren == " + t.numChildren);
    				for (let e = 0; e < t.numChildren; e++) {
    					t.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let s = e.getChildByName("enclosure");
    				this.isDebug && console.log("enclosure.numChildren == " + s.numChildren);
    				for (let e = 0; e < s.numChildren; e++) {
    					s.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let i = e.getChildByName("highway");
    				this.isDebug && console.log("highway.numChildren == " + i.numChildren);
    				for (let e = 0; e < i.numChildren; e++) {
    					i.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let a = e.getChildByName("house");
    				this.isDebug && console.log("house.numChildren == " + a.numChildren);
    				for (let e = 0; e < a.numChildren; e++) {
    					a.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let n = e.getChildByName("map");
    				(n.meshFilter.sharedMesh.lock = !0), this.isDebug && console.log("map.numChildren == " + n.numChildren);
    				for (let e = 0; e < n.numChildren; e++) {
    					n.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				(e.getChildByName("river").meshFilter.sharedMesh.lock = !0),
    					(e.getChildByName("sky").meshFilter.sharedMesh.lock = !0);
    				let o = e.getChildByName("street_lamp");
    				this.isDebug && console.log("street_lamp.numChildren == " + o.numChildren);
    				for (let e = 0; e < o.numChildren; e++) {
    					o.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    				let r = e.getChildByName("tree");
    				this.isDebug && console.log("tree.numChildren == " + r.numChildren);
    				for (let e = 0; e < r.numChildren; e++) {
    					r.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    				}
    			}
    			this.isPreLoadMapResComplete = !0;
    		}
    		preLoadWJJRes() {
    			this.isPreLoadWJJResComplete = !1;
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/WJJ.lh"],
    				Laya.Handler.create(this, this.onPreLoadWJJResFinish)
    			);
    		}
    		onPreLoadWJJResFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/WJJ.lh");
    			(e.meshFilter.sharedMesh.lock = !0), this.isDebug && console.log("wjj.numChildren == " + e.numChildren);
    			let t = e.getChildByName("B1");
    			(t.meshFilter.sharedMesh.lock = !0), (t.getChildByName("Forks").meshFilter.sharedMesh.lock = !0);
    			let s = t.getChildByName("Front_Bucket_B");
    			(s.meshFilter.sharedMesh.lock = !0),
    				(s.getChildByName("Front_Bucket_B_2").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("HENCOCK_1").meshFilter.sharedMesh.lock = !0);
    			let i = e.getChildByName("B3");
    			i.meshFilter.sharedMesh.lock = !0;
    			let a = i.getChildByName("Z3");
    			a.meshFilter.sharedMesh.lock = !0;
    			let n = a.getChildByName("B2");
    			n.meshFilter.sharedMesh.lock = !0;
    			let o = n.getChildByName("B2_2");
    			o.meshFilter.sharedMesh.lock = !0;
    			let r = o.getChildByName("Rear_Bucket");
    			(r.meshFilter.sharedMesh.lock = !0), (r.getChildByName("dirt_5").meshFilter.sharedMesh.lock = !0);
    			let c = o.getChildByName("Ticks_B");
    			(c.meshFilter.sharedMesh.lock = !0), (c.getChildByName("Ticks_B_2").meshFilter.sharedMesh.lock = !0);
    			let h = o.getChildByName("Baffle");
    			(h.meshFilter.sharedMesh.lock = !0), (h.getChildByName("Baffle_2").meshFilter.sharedMesh.lock = !0);
    			let l = e.getChildByName("ZL");
    			(l.meshFilter.sharedMesh.lock = !0),
    				(l.getChildByName("L1_Object").getChildByName("L1").meshFilter.sharedMesh.lock = !0);
    			let g = e.getChildByName("ZR");
    			(l.meshFilter.sharedMesh.lock = !0),
    				(g.getChildByName("L2_Object").getChildByName("L2").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("L3_Object").getChildByName("L3").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("Driver").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("fontBody").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("backBody").meshFilter.sharedMesh.lock = !0),
    				(this.isPreLoadWJJResComplete = !0);
    		}
    		preLoadWJJ2Res() {
    			this.isPreLoadWJJ2ResComplete = !1;
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/WJJ_2.lh"],
    				Laya.Handler.create(this, this.onPreLoadWJJ2ResFinish)
    			);
    		}
    		onPreLoadWJJ2ResFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/WJJ_2.lh");
    			this.isDebug && console.log("wjj_2.numChildren == " + e.numChildren),
    				(e.getChildByName("L").meshFilter.sharedMesh.lock = !0);
    			let t = e.getChildByName("WJJ_2");
    			t.meshFilter.sharedMesh.lock = !0;
    			let s = t.getChildByName("B1");
    			(s.meshFilter.sharedMesh.lock = !0), (s.getChildByName("Forks").meshFilter.sharedMesh.lock = !0);
    			let i = s.getChildByName("Front_Bucket_B");
    			(i.meshFilter.sharedMesh.lock = !0), (i.getChildByName("Front_Bucket_B_2").meshFilter.sharedMesh.lock = !0);
    			let a = t.getChildByName("B2");
    			a.meshFilter.sharedMesh.lock = !0;
    			let n = a.getChildByName("B2_2");
    			n.meshFilter.sharedMesh.lock = !0;
    			let o = n.getChildByName("Rear_Bucket");
    			(o.meshFilter.sharedMesh.lock = !0), (o.getChildByName("dirt_5").meshFilter.sharedMesh.lock = !0);
    			let r = n.getChildByName("Ticks_B");
    			(r.meshFilter.sharedMesh.lock = !0), (r.getChildByName("Ticks_B_2").meshFilter.sharedMesh.lock = !0);
    			let c = n.getChildByName("Baffle");
    			(c.meshFilter.sharedMesh.lock = !0),
    				(c.getChildByName("Baffle_2").meshFilter.sharedMesh.lock = !0),
    				(t.getChildByName("Driver").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("fontBody").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("backBody").meshFilter.sharedMesh.lock = !0),
    				(this.isPreLoadWJJ2ResComplete = !0);
    		}
    		preLoadWJJ3Res() {
    			this.isPreLoadWJJ3ResComplete = !1;
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/WJJ_3.lh"],
    				Laya.Handler.create(this, this.onPreLoadWJJ3ResFinish)
    			);
    		}
    		onPreLoadWJJ3ResFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/WJJ_3.lh");
    			this.isDebug && console.log("wjj_2.numChildren == " + e.numChildren);
    			let t = e.getChildByName("B1");
    			(t.meshFilter.sharedMesh.lock = !0), (t.getChildByName("Forks").meshFilter.sharedMesh.lock = !0);
    			let s = t.getChildByName("Front_Bucket_B");
    			(s.meshFilter.sharedMesh.lock = !0),
    				(s.getChildByName("Front_Bucket_B_2").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("L").meshFilter.sharedMesh.lock = !0);
    			let i = e.getChildByName("WJJ_3");
    			i.meshFilter.sharedMesh.lock = !0;
    			let a = i.getChildByName("B2");
    			a.meshFilter.sharedMesh.lock = !0;
    			let n = a.getChildByName("B2_2");
    			n.meshFilter.sharedMesh.lock = !0;
    			let o = n.getChildByName("Rear_Bucket");
    			(o.meshFilter.sharedMesh.lock = !0), (o.getChildByName("dirt_5").meshFilter.sharedMesh.lock = !0);
    			let r = n.getChildByName("Ticks_B");
    			(r.meshFilter.sharedMesh.lock = !0), (r.getChildByName("Ticks_B_2").meshFilter.sharedMesh.lock = !0);
    			let c = n.getChildByName("Baffle");
    			(c.meshFilter.sharedMesh.lock = !0),
    				(c.getChildByName("Baffle_2").meshFilter.sharedMesh.lock = !0),
    				(i.getChildByName("Driver").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("fontBody").meshFilter.sharedMesh.lock = !0),
    				(e.getChildByName("backBody").meshFilter.sharedMesh.lock = !0),
    				(this.isPreLoadWJJ3ResComplete = !0);
    		}
    		preLoadWJJItemRes() {
    			this.isPreLoadWJJItemResComplete = !1;
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/hancock_texture_08_02.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/hancock_texture_07_02.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadWJJItemResFinish)
    			);
    		}
    		onPreLoadWJJItemResFinish() {
    			(Laya.loader.getRes(
    				"res/3DRes/LayaScene_MainScene/Conventional/hancock_texture_07_02.lh"
    			).meshFilter.sharedMesh.lock = !0),
    				(Laya.loader.getRes(
    					"res/3DRes/LayaScene_MainScene/Conventional/hancock_texture_08_02.lh"
    				).meshFilter.sharedMesh.lock = !0),
    				(this.isPreLoadWJJItemResComplete = !0);
    		}
    		preLoadWJJSkinRes() {
    			this.isPreLoadWJJSkinResComplete = !1;
    			Laya.loader.create(
    				[
    					"res/3DRes/Materials/Engineering_1_1.png",
    					"res/3DRes/Materials/Engineering_2_1.png",
    					"res/3DRes/Materials/Engineering_3_1.png",
    					"res/3DRes/Materials/Engineering_4_1.png",
    					"res/3DRes/Materials/Engineering_5_1.png",
    					"res/3DRes/Materials/Engineering_6_1.png",
    					"res/3DRes/Materials/Engineering_7_1.png",
    					"res/3DRes/Materials/Engineering_8_1.png",
    				],
    				Laya.Handler.create(this, this.onPreLoadWJJSkinResFinish)
    			);
    		}
    		onPreLoadWJJSkinResFinish() {
    			let e = Laya.Loader.getRes("res/3DRes/Materials/Engineering_1_1.png");
    			(e.lock = !0), this.carSkinTextures.set(1, e);
    			let t = Laya.Loader.getRes("res/3DRes/Materials/Engineering_2_1.png");
    			(t.lock = !0), this.carSkinTextures.set(2, t);
    			let s = Laya.Loader.getRes("res/3DRes/Materials/Engineering_3_1.png");
    			(s.lock = !0), this.carSkinTextures.set(3, s);
    			let i = Laya.Loader.getRes("res/3DRes/Materials/Engineering_4_1.png");
    			(i.lock = !0), this.carSkinTextures.set(4, i);
    			let a = Laya.Loader.getRes("res/3DRes/Materials/Engineering_5_1.png");
    			(a.lock = !0), this.carSkinTextures.set(5, a);
    			let n = Laya.Loader.getRes("res/3DRes/Materials/Engineering_6_1.png");
    			(n.lock = !0), this.carSkinTextures.set(6, n);
    			let o = Laya.Loader.getRes("res/3DRes/Materials/Engineering_7_1.png");
    			(o.lock = !0), this.carSkinTextures.set(7, o);
    			let r = Laya.Loader.getRes("res/3DRes/Materials/Engineering_8_1.png");
    			(r.lock = !0), this.carSkinTextures.set(8, r), (this.isPreLoadWJJSkinResComplete = !0);
    		}
    		preLoadNpcRes() {
    			this.isPreLoadNpcResComplete = !1;
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/Bus.lh", "res/3DRes/LayaScene_MainScene/Conventional/PickUp.lh"],
    				Laya.Handler.create(this, this.onpreLoadNpcResFinish)
    			);
    		}
    		onpreLoadNpcResFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/PickUp.lh");
    			e.meshFilter.sharedMesh.lock = !0;
    			for (let t = 0; t < e.numChildren; t++) {
    				e.getChildAt(t).meshFilter.sharedMesh.lock = !0;
    			}
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Bus.lh");
    			t.meshFilter.sharedMesh.lock = !0;
    			for (let e = 0; e < t.numChildren; e++) {
    				t.getChildAt(e).meshFilter.sharedMesh.lock = !0;
    			}
    			this.isPreLoadNpcResComplete = !0;
    		}
    		getCarSkin(e) {
    			var t = new Laya.BlinnPhongMaterial();
    			switch (e) {
    				case 1:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_1_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 2:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_2_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 3:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_3_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 4:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_4_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 5:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_5_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 6:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_6_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 7:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_7_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    					break;

    				case 8:
    					Laya.Texture2D.load(
    						"res/3DRes/Materials/Engineering_8_1.png",
    						Laya.Handler.create(this, function (e) {
    							t.albedoTexture = e;
    						})
    					);
    			}
    			return t;
    		}
    		getCarIcon(e) {
    			return "ui://Common/ui_game_car_0" + e;
    		}
    		getCarName(e) {
    			return "ui://Common/ui_font_car_name_0" + e;
    		}
    		getToolIcon(e) {
    			switch (e) {
    				case 1:
    					return "ui://Common/tool_05_ic";

    				case 2:
    					return "ui://Common/tool_04_ic";

    				case 3:
    					return "ui://Common/tool_01_ic";

    				case 4:
    					return "ui://Common/tool_03_ic";

    				case 5:
    					return "ui://Common/tool_02_ic";
    			}
    		}
    		getToolName(e) {
    			switch (e) {
    				case 1:
    					return "ui://Common/tool_05_t";

    				case 2:
    					return "ui://Common/tool_04_t";

    				case 3:
    					return "ui://Common/tool_01_t";

    				case 4:
    					return "ui://Common/tool_03_t";

    				case 5:
    					return "ui://Common/tool_02_t";
    			}
    		}
    	}
    	class K extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		onEnable() {
    			this.curNode = this.owner;
    		}
    		onDisable() { }
    		onUpdate() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onTriggerEnter(e) {
    			this.isDebug &&
    				(console.log("frontBody -- onTriggerEnter"), console.log("other.owner.name =onTriggerEnter= " + e.owner.name));
    			let t = !1;
    			-1 != e.owner.name.indexOf("h") && "house" == e.owner.parent.name && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("e") &&
    				("enclosure" == e.owner.parent.name && ((f.instance.curSpeed = 0), (t = !0)),
    					"practice_map" == e.owner.parent.name && ((f.instance.curSpeed = 0), (t = !0))),
    				-1 != e.owner.name.indexOf("plane") && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("shan") && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("keng") && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("Truck") && ((f.instance.curSpeed = 0), (t = !0)),
    				t &&
    				(this.isDebug &&
    					(console.log("gameLogic.instance.isRunFont == " + f.instance.isRunFont),
    						console.log("gameLogic.instance.isRunBack == " + f.instance.isRunBack),
    						console.log("gameLogic.instance.isColliderBackStop == " + f.instance.isColliderBackStop),
    						console.log("gameLogic.instance.isColliderFontStop == " + f.instance.isColliderFontStop)),
    					!f.instance.isRunFont ||
    					f.instance.isColliderBackStop ||
    					f.instance.isColliderFontStop ||
    					(f.instance.isColliderFontStop = !0));
    		}
    		onTriggerStay(e) {
    			this.isDebug && (console.log("play -- onTriggerStay"), console.log("other.owner.name == " + e.owner.name));
    			let t = !1;
    			-1 != e.owner.name.indexOf("h") && "house" == e.owner.parent.name && (t = !0),
    				-1 != e.owner.name.indexOf("e") &&
    				("enclosure" == e.owner.parent.name && (t = !0), "practice_map" == e.owner.parent.name && (t = !0)),
    				-1 != e.owner.name.indexOf("plane") && (t = !0),
    				-1 != e.owner.name.indexOf("shan") && (t = !0),
    				-1 != e.owner.name.indexOf("Truck") && (t = !0),
    				-1 != e.owner.name.indexOf("keng") && (t = !0),
    				t &&
    				(this.isDebug &&
    					(console.log("play -- onTriggerStay"),
    						console.log("other.owner.name == " + e.owner.name),
    						console.log("gameLogic.instance.isRunFont == " + f.instance.isRunFont),
    						console.log("gameLogic.instance.isRunBack == " + f.instance.isRunBack),
    						console.log("gameLogic.instance.isColliderBackStop == " + f.instance.isColliderBackStop),
    						console.log("gameLogic.instance.isColliderFontStop == " + f.instance.isColliderFontStop)),
    					!f.instance.isRunFont ||
    					f.instance.isColliderBackStop ||
    					f.instance.isColliderFontStop ||
    					(f.instance.isColliderFontStop = !0));
    		}
    		onTriggerExit(e) {
    			this.isDebug &&
    				(console.log("frontBody -- onTriggerExit"),
    					console.log("other.owner.name =onTriggerExit= " + e.owner.name),
    					console.log("other.owner.parent.name =onTriggerExit= " + e.owner.parent.name));
    			let t = !1;
    			-1 != e.owner.name.indexOf("h") && "house" == e.owner.parent.name && (t = !0),
    				-1 != e.owner.name.indexOf("e") &&
    				("enclosure" == e.owner.parent.name && (t = !0), "practice_map" == e.owner.parent.name && (t = !0)),
    				-1 != e.owner.name.indexOf("plane") && (t = !0),
    				-1 != e.owner.name.indexOf("shan") && (t = !0),
    				-1 != e.owner.name.indexOf("Truck") && (t = !0),
    				-1 != e.owner.name.indexOf("keng") && (t = !0),
    				this.isDebug && console.log("isStop == " + t),
    				t && (this.isDebug && console.log("解除碰撞"), (f.instance.isColliderFontStop = !1));
    		}
    	}
    	class W extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		onEnable() {
    			this.curNode = this.owner;
    		}
    		onDisable() { }
    		onUpdate() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onTriggerEnter(e) {
    			this.isDebug &&
    				(console.log("backBody -- onTriggerEnter"), console.log("other.owner.name =onTriggerEnter= " + e.owner.name));
    			let t = !1;
    			-1 != e.owner.name.indexOf("h") && "house" == e.owner.parent.name && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("e") &&
    				("enclosure" == e.owner.parent.name && ((f.instance.curSpeed = 0), (t = !0)),
    					"practice_map" == e.owner.parent.name && ((f.instance.curSpeed = 0), (t = !0))),
    				-1 != e.owner.name.indexOf("plane") && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("shan") && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("keng") && ((f.instance.curSpeed = 0), (t = !0)),
    				-1 != e.owner.name.indexOf("Truck") && ((f.instance.curSpeed = 0), (t = !0)),
    				t &&
    				(this.isDebug &&
    					(console.log("gameLogic.instance.isRunFont == " + f.instance.isRunFont),
    						console.log("gameLogic.instance.isRunBack == " + f.instance.isRunBack),
    						console.log("gameLogic.instance.isColliderBackStop == " + f.instance.isColliderBackStop),
    						console.log("gameLogic.instance.isColliderFontStop == " + f.instance.isColliderFontStop)),
    					!f.instance.isRunBack ||
    					f.instance.isColliderBackStop ||
    					f.instance.isColliderFontStop ||
    					(f.instance.isColliderBackStop = !0));
    		}
    		onTriggerStay(e) {
    			this.isDebug && (console.log("backBody -- onTriggerStay"), console.log("other.owner.name == " + e.owner.name));
    			let t = !1;
    			-1 != e.owner.name.indexOf("h") && "house" == e.owner.parent.name && (t = !0),
    				-1 != e.owner.name.indexOf("e") &&
    				("enclosure" == e.owner.parent.name && (t = !0), "practice_map" == e.owner.parent.name && (t = !0)),
    				-1 != e.owner.name.indexOf("plane") && (t = !0),
    				-1 != e.owner.name.indexOf("shan") && (t = !0),
    				-1 != e.owner.name.indexOf("Truck") && (t = !0),
    				-1 != e.owner.name.indexOf("keng") && (t = !0),
    				t &&
    				(this.isDebug &&
    					(console.log("play -- onTriggerStay"),
    						console.log("other.owner.name == " + e.owner.name),
    						console.log("gameLogic.instance.isRunFont == " + f.instance.isRunFont),
    						console.log("gameLogic.instance.isRunBack == " + f.instance.isRunBack),
    						console.log("gameLogic.instance.isColliderBackStop == " + f.instance.isColliderBackStop),
    						console.log("gameLogic.instance.isColliderFontStop == " + f.instance.isColliderFontStop)),
    					!f.instance.isRunBack ||
    					f.instance.isColliderBackStop ||
    					f.instance.isColliderFontStop ||
    					(f.instance.isColliderBackStop = !0));
    		}
    		onTriggerExit(e) {
    			this.isDebug &&
    				(console.log("backBody -- onTriggerExit"),
    					console.log("other.owner.name =onTriggerExit= " + e.owner.name),
    					console.log("other.owner.parent.name =onTriggerExit= " + e.owner.parent.name));
    			let t = !1;
    			-1 != e.owner.name.indexOf("h") && "house" == e.owner.parent.name && (t = !0),
    				-1 != e.owner.name.indexOf("e") &&
    				("enclosure" == e.owner.parent.name && (t = !0), "practice_map" == e.owner.parent.name && (t = !0)),
    				-1 != e.owner.name.indexOf("plane") && (t = !0),
    				-1 != e.owner.name.indexOf("shan") && (t = !0),
    				-1 != e.owner.name.indexOf("Truck") && (t = !0),
    				-1 != e.owner.name.indexOf("keng") && (t = !0),
    				this.isDebug && console.log("isStop == " + t),
    				t && (this.isDebug && console.log("解除碰撞"), (f.instance.isColliderBackStop = !1));
    		}
    	}
    	class j extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		onEnable() {
    			this.curNode = this.owner;
    		}
    		onDisable() { }
    		init(e) {
    			this.curPlayer = e;
    		}
    		onUpdate() { }
    		onTriggerEnter(e) {
    			switch (
    			(this.isDebug &&
    				(console.log("ticks2 == onTriggerEnter"),
    					console.log("ticks2 == other.owner.name == " + e.owner.name),
    					console.log("ticks2 == other.owner.parent.name == " + e.owner.parent.name),
    					console.log("ticks2 == stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    				Ie.instance.getStageTypeByStageIndex())
    			) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					if (
    						(this.isDebug &&
    							console.log("ticks2 == gameLogic.instance.isStartStageAni == " + f.instance.isStartStageAni),
    							f.instance.isStartStageAni)
    					)
    						switch (e.owner.name) {
    							case "tg_1":
    								this.curPlayer.getComponent(Laya.Script3D).hideTreeBranch(1);
    								break;

    							case "tg_2":
    								this.curPlayer.getComponent(Laya.Script3D).hideTreeBranch(2);
    								break;

    							case "tg_3":
    								this.curPlayer.getComponent(Laya.Script3D).hideTreeBranch(3);
    								break;

    							case "tg_4":
    								this.curPlayer.getComponent(Laya.Script3D).hideTreeBranch(4);
    								break;

    							case "tg_5":
    								this.curPlayer.getComponent(Laya.Script3D).hideTreeBranch(5);
    								break;

    							case "tg_6":
    								this.curPlayer.getComponent(Laya.Script3D).hideTreeBranch(6);
    						}
    			}
    		}
    		onTriggerStay(e) {
    			this.isDebug;
    		}
    		onTriggerExit(e) {
    			this.isDebug && (console.log("ticks == onTriggerExit"), console.log("other.owner.name == " + e.owner.name));
    		}
    	}
    	class X extends Laya.Script3D {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.curTreePosX = 0),
    				(this.curUseCar = 0),
    				(this.curCarType = 0),
    				(this.treeTween1 = null),
    				(this.treeTween2 = null),
    				(this.treeTween3 = null),
    				(this.treeTween4 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new X()), this._instance);
    		}
    		onEnable() {
    			this.isDebug && console.log("Player onEnable"),
    				(X._instance = this),
    				Laya.stage.on(Laya.Event.KEY_DOWN, this, this.onKeyDown),
    				Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp),
    				Laya.stage.on("setPlayerTeach", this, this.setTeach),
    				Laya.stage.on("initCar", this, this.initCar);
    		}
    		onDisable() {
    			this.isDebug && console.log("Player onDisable"), this.stopCarMove();
    		}
    		loadCar(e) {
    			switch (
    			(this.isDebug && console.log("Player loadCar"),
    				(this.curCarType = e),
    				(this.curNode = this.owner),
    				this.isDebug && console.log(this.curNode),
    				(this.newbillinMaterial = new Laya.BlinnPhongMaterial()),
    				e)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					{
    						this.zl = this.curNode.getChildByName("ZL");
    						let e = this.zl.getChildByName("L1_Object");
    						(this.carLFWheel = e.getChildByName("L1")), (this.zr = this.curNode.getChildByName("ZR"));
    						let t = this.zr.getChildByName("L2_Object");
    						this.carRFWheel = t.getChildByName("L2");
    						let s = this.curNode.getChildByName("L3_Object");
    						(this.carBWheel = s.getChildByName("L3")),
    							(this.armCompent = this.curNode.getChildByName("B3")),
    							(this.mechanicalArm = this.armCompent.getChildByName("Z3")),
    							(f.instance.curArmAngle = this.mechanicalArm.transform.localRotationEulerY),
    							(this.backArm = this.mechanicalArm.getChildByName("B2")),
    							(f.instance.curBackArmAngle = this.backArm.transform.localRotationEulerX),
    							(this.frontArm = this.backArm.getChildByName("B2_2")),
    							(f.instance.curFrontArmAngle = this.frontArm.transform.localRotationEulerX),
    							(this.rearBucket = this.frontArm.getChildByName("Rear_Bucket")),
    							this.rearBucket.addComponent(N).init(this.curNode),
    							(this.rearBucket.active = !1),
    							(this.rearBucketDirt = this.rearBucket.getChildByName("dirt_5")),
    							(this.rearBucketDirt.active = !1),
    							(this.ticks = this.frontArm.getChildByName("Ticks_B")),
    							(this.ticks2 = this.ticks.getChildByName("Ticks_B_2")),
    							this.ticks.addComponent(Y).init(this.curNode),
    							(this.ticks.active = !1),
    							this.ticks2.addComponent(j).init(this.curNode),
    							(this.baffle = this.frontArm.getChildByName("Baffle")),
    							this.baffle.addComponent(U).init(this.curNode),
    							(this.baffle.active = !1),
    							(this.liftingArm = this.curNode.getChildByName("B1")),
    							(this.forks = this.liftingArm.getChildByName("Forks")),
    							this.forks.addComponent(O).init(this.curNode),
    							(this.forks.active = !1),
    							(this.frontBucket = this.liftingArm.getChildByName("Front_Bucket_B")),
    							(this.frontBucket.active = !1),
    							(this.frontBucket2 = this.frontBucket.getChildByName("Front_Bucket_B_2")),
    							this.frontBucket2.addComponent(H).init(this.curNode),
    							(this.fontBody = this.curNode.getChildByName("fontBody")),
    							this.fontBody.addComponent(K),
    							(this.backBody = this.curNode.getChildByName("backBody")),
    							this.backBody.addComponent(W);
    					}
    					break;

    				case 2:
    				case 4:
    					(this.lvdai = this.curNode.getChildByName("L")),
    						(this.wjjBody = this.curNode.getChildByName("WJJ_3")),
    						(this.backArm = this.wjjBody.getChildByName("B2")),
    						(f.instance.curBackArmAngle = this.backArm.transform.localRotationEulerX),
    						(this.frontArm = this.backArm.getChildByName("B2_2")),
    						(f.instance.curFrontArmAngle = this.frontArm.transform.localRotationEulerX),
    						(this.rearBucket = this.frontArm.getChildByName("Rear_Bucket")),
    						this.rearBucket.addComponent(N).init(this.curNode),
    						(this.rearBucket.active = !1),
    						(this.rearBucketDirt = this.rearBucket.getChildByName("dirt_5")),
    						(this.rearBucketDirt.active = !1),
    						(this.ticks = this.frontArm.getChildByName("Ticks_B")),
    						(this.ticks2 = this.ticks.getChildByName("Ticks_B_2")),
    						this.ticks.addComponent(Y).init(this.curNode),
    						(this.ticks.active = !1),
    						this.ticks2.addComponent(j).init(this.curNode),
    						(this.baffle = this.frontArm.getChildByName("Baffle")),
    						this.baffle.addComponent(U).init(this.curNode),
    						(this.baffle.active = !1),
    						(this.liftingArm = this.curNode.getChildByName("B1")),
    						(this.forks = this.liftingArm.getChildByName("Forks")),
    						this.forks.addComponent(O).init(this.curNode),
    						(this.forks.active = !1),
    						(this.frontBucket = this.liftingArm.getChildByName("Front_Bucket_B")),
    						(this.frontBucket.active = !1),
    						(this.frontBucket2 = this.frontBucket.getChildByName("Front_Bucket_B_2")),
    						this.frontBucket2.addComponent(H).init(this.curNode),
    						(this.fontBody = this.curNode.getChildByName("fontBody")),
    						this.fontBody.addComponent(K),
    						(this.backBody = this.curNode.getChildByName("backBody")),
    						this.backBody.addComponent(W);
    					break;

    				case 3:
    					(this.lvdai = this.curNode.getChildByName("L")),
    						(this.wjjBody = this.curNode.getChildByName("WJJ_2")),
    						(this.backArm = this.wjjBody.getChildByName("B2")),
    						(f.instance.curBackArmAngle = this.backArm.transform.localRotationEulerX),
    						(this.frontArm = this.backArm.getChildByName("B2_2")),
    						(f.instance.curFrontArmAngle = this.frontArm.transform.localRotationEulerX),
    						(this.rearBucket = this.frontArm.getChildByName("Rear_Bucket")),
    						this.rearBucket.addComponent(N).init(this.curNode),
    						(this.rearBucket.active = !1),
    						(this.rearBucketDirt = this.rearBucket.getChildByName("dirt_5")),
    						(this.rearBucketDirt.active = !1),
    						(this.ticks = this.frontArm.getChildByName("Ticks_B")),
    						(this.ticks2 = this.ticks.getChildByName("Ticks_B_2")),
    						this.ticks.addComponent(Y).init(this.curNode),
    						(this.ticks.active = !1),
    						this.ticks2.addComponent(j).init(this.curNode),
    						(this.baffle = this.frontArm.getChildByName("Baffle")),
    						this.baffle.addComponent(U).init(this.curNode),
    						(this.baffle.active = !1),
    						(this.liftingArm = this.wjjBody.getChildByName("B1")),
    						(this.forks = this.liftingArm.getChildByName("Forks")),
    						this.forks.addComponent(O).init(this.curNode),
    						(this.forks.active = !1),
    						(this.frontBucket = this.liftingArm.getChildByName("Front_Bucket_B")),
    						(this.frontBucket.active = !1),
    						(this.frontBucket2 = this.frontBucket.getChildByName("Front_Bucket_B_2")),
    						this.frontBucket2.addComponent(H).init(this.curNode),
    						(this.fontBody = this.curNode.getChildByName("fontBody")),
    						this.fontBody.addComponent(K),
    						(this.backBody = this.curNode.getChildByName("backBody")),
    						this.backBody.addComponent(W);
    			}
    			this.isDebug &&
    				(console.log("gameLogic.instance.curTryCarType == " + f.instance.curTryCarType),
    					console.log("PlayerData.instance.carInfo.curUseCar == " + L.instance.carInfo.curUseCar)),
    				0 != f.instance.curTryCarType
    					? (this.setCarSkin(f.instance.curTryCarType),
    						this.setCarInfo(f.instance.curTryCarType),
    						(f.instance.curTryCarType = 0))
    					: (this.setCarSkin(L.instance.carInfo.curUseCar), this.setCarInfo(L.instance.carInfo.curUseCar));
    		}
    		getTicks() {
    			return this.ticks;
    		}
    		getForks() {
    			return this.forks;
    		}
    		initCar() {
    			switch ((this.isDebug && console.log("Player initCar"), this.curCarType)) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.armCompent.transform.localPosition = new Laya.Vector3(1.602102e-8, 0.003851813, -6.993517e-16)),
    						(this.armCompent.transform.localRotationEuler = new Laya.Vector3(0, 180, 0)),
    						(this.mechanicalArm.transform.localRotationEulerY = 0),
    						(this.backArm.transform.localRotationEulerX = -10),
    						(this.frontArm.transform.localRotationEulerX = -10),
    						(this.liftingArm.transform.localRotationEulerX = 0),
    						(this.forks.transform.localRotationEulerX = -90),
    						(this.frontBucket.transform.localRotationEulerX = -30),
    						(this.rearBucket.transform.localRotationEulerX = -60),
    						(f.instance.curArmAngle = this.mechanicalArm.transform.localRotationEulerY);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.wjjBody.transform.localRotationEulerY = 0),
    						(this.backArm.transform.localRotationEulerX = 0),
    						(this.frontArm.transform.localRotationEulerX = 0),
    						(this.liftingArm.transform.localRotationEulerX = 0),
    						(this.forks.transform.localRotationEulerX = 0),
    						(this.frontBucket.transform.localRotationEulerX = 0),
    						(this.rearBucket.transform.localRotationEulerX = 0),
    						(f.instance.curArmAngle = this.wjjBody.transform.localRotationEulerY);
    			}
    			(f.instance.curBackArmAngle = this.backArm.transform.localRotationEulerX),
    				(f.instance.curFrontArmAngle = this.frontArm.transform.localRotationEulerX),
    				(f.instance.curLiftArmAngle = this.liftingArm.transform.localRotationEulerX),
    				(f.instance.isForward = !1),
    				(f.instance.isBackAway = !1),
    				(f.instance.isLeft = !1),
    				(f.instance.isRight = !1),
    				(f.instance.isRunFont = !1),
    				(f.instance.isRunBack = !1),
    				(f.instance.isColliderFontStop = !1),
    				(f.instance.isColliderBackStop = !1),
    				(f.instance.isBrake = !1),
    				(f.instance.curSpeed = 0);
    		}
    		setCarSkin(e) {
    			switch ((console.log("setCarSkin == carType == " + e), (this.curUseCar = e), e)) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					if (7 == e || 8 == e)
    						switch (
    						(null != this.curNode.getChildByName("item") && this.curNode.getChildByName("item").removeSelf(), e)
    						) {
    							case 7:
    								{
    									let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/hancock_texture_07_02.lh");
    									(e.name = "item"), this.curNode.addChild(e);
    								}
    								break;

    							case 8: {
    								let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/hancock_texture_08_02.lh");
    								(e.name = "item"), this.curNode.addChild(e);
    							}
    						}
    					else null != this.curNode.getChildByName("item") && this.curNode.getChildByName("item").removeSelf();
    					(this.newbillinMaterial = V.instance.getCarSkin(e)),
    						this.isDebug && console.log(this.curNode),
    						(this.curNode.meshRenderer.material = this.newbillinMaterial),
    						(this.liftingArm.meshRenderer.material = this.newbillinMaterial),
    						(this.carLFWheel.meshRenderer.material = this.newbillinMaterial),
    						(this.carRFWheel.meshRenderer.material = this.newbillinMaterial),
    						(this.carBWheel.meshRenderer.material = this.newbillinMaterial),
    						(this.mechanicalArm.meshRenderer.material = this.newbillinMaterial),
    						(this.backArm.meshRenderer.material = this.newbillinMaterial),
    						(this.frontArm.meshRenderer.material = this.newbillinMaterial),
    						(this.rearBucket.meshRenderer.material = this.newbillinMaterial),
    						(this.ticks.meshRenderer.material = this.newbillinMaterial),
    						(this.ticks2.meshRenderer.material = this.newbillinMaterial),
    						(this.baffle.meshRenderer.material = this.newbillinMaterial),
    						(this.forks.meshRenderer.material = this.newbillinMaterial),
    						(this.frontBucket.meshRenderer.material = this.newbillinMaterial),
    						(this.frontBucket2.meshRenderer.material = this.newbillinMaterial),
    						(this.armCompent.meshRenderer.material = this.newbillinMaterial),
    						(this.zl.meshRenderer.material = this.newbillinMaterial),
    						(this.zr.meshRenderer.material = this.newbillinMaterial);
    					break;

    				case 2:
    				case 4:
    					(this.newbillinMaterial = V.instance.getCarSkin(e)),
    						(this.liftingArm.meshRenderer.material = this.newbillinMaterial),
    						(this.forks.meshRenderer.material = this.newbillinMaterial),
    						(this.frontBucket.meshRenderer.material = this.newbillinMaterial),
    						(this.frontBucket2.meshRenderer.material = this.newbillinMaterial),
    						(this.lvdai.meshRenderer.material = this.newbillinMaterial),
    						(this.wjjBody.meshRenderer.material = this.newbillinMaterial),
    						(this.backArm.meshRenderer.material = this.newbillinMaterial),
    						(this.frontArm.meshRenderer.material = this.newbillinMaterial),
    						(this.rearBucket.meshRenderer.material = this.newbillinMaterial),
    						(this.ticks.meshRenderer.material = this.newbillinMaterial),
    						(this.ticks2.meshRenderer.material = this.newbillinMaterial),
    						(this.baffle.meshRenderer.material = this.newbillinMaterial);
    			}
    		}
    		changeSkin(e) {
    			this.isDebug &&
    				(console.log("changeSkin == carType == " + e), console.log("this.curCarType == " + this.curCarType)),
    				(this.curUseCar = e);
    		}
    		setTeach(e, t) {
    			switch (e) {
    				case 2:
    					switch (t) {
    						case 1:
    							(f.instance.isTrunArm = -1), (this.mechanicalArm.transform.localRotationEulerY = 0);
    							break;

    						case 2:
    							(f.instance.isTrunFrontArm = -1),
    								(f.instance.curFrontArmAngle = 90),
    								(this.frontArm.transform.localRotationEulerX = f.instance.curFrontArmAngle);
    					}
    			}
    		}
    		starCarMove() {
    			f.instance.isPlayerUpdate || ((f.instance.isPlayerUpdate = !0), Laya.timer.loop(10, this, this.carMove));
    		}
    		stopCarMove() {
    			f.instance.isPlayerUpdate && ((f.instance.isPlayerUpdate = !1), Laya.timer.clear(this, this.carMove));
    		}
    		carMove() {
    			if ((this.isDebug, f.instance.isPlayerUpdate)) {
    				if (f.instance.isForward) {
    					this.isDebug && console.log("向前"),
    						this.playWheelRoll(0),
    						f.instance.isLeft &&
    						(this.curNode.transform.localRotationEulerY +=
    							f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    						f.instance.isRight &&
    						(this.curNode.transform.localRotationEulerY -=
    							f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    						(f.instance.curSpeed += f.instance.curAccSpeed),
    						f.instance.curSpeed >= f.instance.maxSpeed && (f.instance.curSpeed = f.instance.maxSpeed),
    						this.isDebug && console.log("gameLogic.instance.curSpeed == " + f.instance.curSpeed);
    					let e = (this.curNode.transform.localRotationEulerY / 180) * Math.PI;
    					this.isDebug &&
    						(console.log("deg == " + e),
    							console.log("Math.sin(deg) == " + Math.sin(e)),
    							console.log("Math.cos(deg) == " + Math.cos(e)),
    							console.log("gameLogic.instance.isColliderFontStop == " + f.instance.isColliderFontStop)),
    						f.instance.isColliderFontStop ||
    						((this.curNode.transform.localPositionX += f.instance.curSpeed * Math.sin(e)),
    							(this.curNode.transform.localPositionZ += f.instance.curSpeed * Math.cos(e))),
    						this.isDebug &&
    						(console.log("this.curNode.transform.localPositionX == " + this.curNode.transform.localPositionX),
    							console.log("this.curNode.transform.localPositionZ == " + this.curNode.transform.localPositionZ));
    				} else if (f.instance.isBackAway) {
    					this.isDebug && console.log("向后"),
    						this.playWheelRoll(1),
    						f.instance.isLeft &&
    						(this.curNode.transform.localRotationEulerY -=
    							f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    						f.instance.isRight &&
    						(this.curNode.transform.localRotationEulerY +=
    							f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    						(f.instance.curSpeed += f.instance.curAccSpeed),
    						f.instance.curSpeed >= f.instance.maxSpeed && (f.instance.curSpeed = f.instance.maxSpeed),
    						this.isDebug && console.log("gameLogic.instance.curSpeed == " + f.instance.curSpeed);
    					let e = (this.curNode.transform.localRotationEulerY / 180) * Math.PI;
    					this.isDebug &&
    						(console.log("deg == " + e),
    							console.log("Math.sin(deg) == " + Math.sin(e)),
    							console.log("Math.cos(deg) == " + Math.cos(e)),
    							console.log("gameLogic.instance.isColliderBackStop == " + f.instance.isColliderBackStop)),
    						f.instance.isColliderBackStop ||
    						((this.curNode.transform.localPositionX -= f.instance.curSpeed * Math.sin(e)),
    							(this.curNode.transform.localPositionZ -= f.instance.curSpeed * Math.cos(e))),
    						this.isDebug &&
    						(console.log("this.curNode.transform.localPositionX == " + this.curNode.transform.localPositionX),
    							console.log("this.curNode.transform.localPositionZ == " + this.curNode.transform.localPositionZ));
    				} else if (f.instance.isColliderBackStop || f.instance.isColliderFontStop)
    					(f.instance.curSpeed = 0),
    						(f.instance.isForward = !1),
    						(f.instance.isBackAway = !1),
    						(f.instance.isRunFont = !1),
    						(f.instance.isRunBack = !1);
    				else if (
    					(f.instance.isBrake
    						? (f.instance.curSpeed -= f.instance.brakeAccSpeed)
    						: (f.instance.curSpeed -= f.instance.inertiaAccSpeed),
    						f.instance.curSpeed <= 0)
    				)
    					(f.instance.curSpeed = 0),
    						(f.instance.isForward = !1),
    						(f.instance.isBackAway = !1),
    						(f.instance.isRunFont = !1),
    						(f.instance.isRunBack = !1);
    				else {
    					let e = (this.curNode.transform.localRotationEulerY / 180) * Math.PI;
    					f.instance.isRunFont &&
    						(f.instance.isLeft &&
    							(this.curNode.transform.localRotationEulerY +=
    								f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    							f.instance.isRight &&
    							(this.curNode.transform.localRotationEulerY -=
    								f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    							(this.curNode.transform.localPositionX += f.instance.curSpeed * Math.sin(e)),
    							(this.curNode.transform.localPositionZ += f.instance.curSpeed * Math.cos(e)),
    							this.playWheelRoll(0)),
    						f.instance.isRunBack &&
    						(f.instance.isLeft &&
    							(this.curNode.transform.localRotationEulerY -=
    								f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    							f.instance.isRight &&
    							(this.curNode.transform.localRotationEulerY +=
    								f.instance.curSpeed * C.Config_Property_Map.get(this.curUseCar).car_turn * 30),
    							(this.curNode.transform.localPositionX -= f.instance.curSpeed * Math.sin(e)),
    							(this.curNode.transform.localPositionZ -= f.instance.curSpeed * Math.cos(e)),
    							this.playWheelRoll(1));
    				}
    				this.playWheelTurn(),
    					-1 != f.instance.isTrunArm && this.playArmTurn(f.instance.isTrunArm),
    					-1 != f.instance.isTrunBackArm && this.playBackArmTurn(f.instance.isTrunBackArm),
    					-1 != f.instance.isTrunFrontArm && this.playFrontArmTurn(f.instance.isTrunFrontArm),
    					-1 != f.instance.isTrunLiftArm && this.playLiftArmTurn(f.instance.isTrunLiftArm),
    					Ie.instance.checkIsArriveTaskLoacation();
    			}
    		}
    		setCarInfo(e) {
    			this.isDebug && console.log("setCarInfo ===================================================");
    			let t = C.Config_Property_Map.get(e).car_speed,
    				s = C.Config_Property_Map.get(e).car_quicken,
    				i = C.Config_Property_Map.get(e).car_skid,
    				a = C.Config_Property_Map.get(e).car_roll,
    				n = C.Config_Property_Map.get(e).car_control;
    			switch (
    			(this.isDebug &&
    				(console.log("maxSpeed === " + t),
    					console.log("accSpeedTime === " + s),
    					console.log("stopTime === " + i),
    					console.log("inertiaTime === " + a),
    					console.log("carControl === " + n)),
    				(f.instance.mapRate = 0.001),
    				(f.instance.initSpeed = 0),
    				(f.instance.curSpeed = 0),
    				(f.instance.maxSpeed = ((1e3 * t) / 3600) * f.instance.mapRate),
    				(f.instance.accTime = (1e3 * s) / 10),
    				(f.instance.curAccSpeed = (f.instance.maxSpeed - 0) / f.instance.accTime),
    				(f.instance.stopTime = (1e3 * i) / 10),
    				(f.instance.inertiaTime = (1e3 * a) / 10),
    				(f.instance.brakeAccSpeed = (f.instance.maxSpeed - 0) / f.instance.stopTime),
    				(f.instance.inertiaAccSpeed = (f.instance.maxSpeed - 0) / f.instance.inertiaTime),
    				(f.instance.maxSpeed = f.instance.maxSpeed / 2),
    				this.isDebug &&
    				(console.log(" gameLogic.instance.maxSpeed === " + f.instance.maxSpeed),
    					console.log("gameLogic.instance.accTime === " + f.instance.accTime),
    					console.log("gameLogic.instance.curAccSpeed === " + f.instance.curAccSpeed),
    					console.log("gameLogic.instance.stopTime === " + f.instance.stopTime),
    					console.log("gameLogic.instance.brakeAccSpeed === " + f.instance.brakeAccSpeed),
    					console.log("gameLogic.instance.inertiaAccSpeed === " + f.instance.inertiaAccSpeed)),
    				e)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					switch (C.Config_Property_Map.get(e).car_type) {
    						case "小型":
    							this.curNode.transform.localScale = new Laya.Vector3(0.09, 0.09, 0.09);
    							break;

    						case "中型":
    							this.curNode.transform.localScale = new Laya.Vector3(0.1, 0.1, 0.1);
    							break;

    						case "大型":
    							this.curNode.transform.localScale = new Laya.Vector3(0.12, 0.12, 0.12);
    					}
    					(f.instance.minBackArmAngle = -65),
    						(f.instance.maxBackArmAngle = 0),
    						(f.instance.minFrontArmAngle = -20),
    						(f.instance.maxFrontArmAngle = 150),
    						(f.instance.minLiftArmAngle = -50),
    						(f.instance.maxLiftArmAngle = 0);
    					break;

    				case 2:
    				case 4:
    					(this.curNode.transform.localScale = new Laya.Vector3(0.08, 0.08, 0.08)),
    						(f.instance.minBackArmAngle = 0),
    						(f.instance.maxBackArmAngle = 60),
    						(f.instance.minFrontArmAngle = -120),
    						(f.instance.maxFrontArmAngle = 0),
    						(f.instance.minFrontArmAngle = -120),
    						(f.instance.maxFrontArmAngle = 0),
    						(f.instance.minLiftArmAngle = -60),
    						(f.instance.maxLiftArmAngle = 0);
    					break;

    				case 3:
    					(this.curNode.transform.localScale = new Laya.Vector3(0.07, 0.07, 0.07)),
    						(f.instance.minBackArmAngle = 0),
    						(f.instance.maxBackArmAngle = 80),
    						(f.instance.minFrontArmAngle = -20),
    						(f.instance.maxFrontArmAngle = 150),
    						(f.instance.minFrontArmAngle = -120),
    						(f.instance.maxFrontArmAngle = 0),
    						(f.instance.minLiftArmAngle = -60),
    						(f.instance.maxLiftArmAngle = 0);
    			}
    		}
    		resetCarInfo(e) {
    			this.isDebug && console.log("resetCarInfo == carType == " + e);
    			let t = C.Config_Property_Map.get(e).car_speed,
    				s = C.Config_Property_Map.get(e).car_quicken,
    				i = C.Config_Property_Map.get(e).car_skid,
    				a = C.Config_Property_Map.get(e).car_roll;
    			C.Config_Property_Map.get(e).car_control;
    			switch (
    			((f.instance.mapRate = 0.001),
    				(f.instance.initSpeed = 0),
    				(f.instance.curSpeed = 0),
    				(f.instance.maxSpeed = ((1e3 * t) / 3600) * f.instance.mapRate),
    				(f.instance.accTime = (1e3 * s) / 10),
    				(f.instance.curAccSpeed = (f.instance.maxSpeed - 0) / f.instance.accTime),
    				(f.instance.stopTime = (1e3 * i) / 10),
    				(f.instance.inertiaTime = (1e3 * a) / 10),
    				(f.instance.brakeAccSpeed = (f.instance.maxSpeed - 0) / f.instance.stopTime),
    				(f.instance.inertiaAccSpeed = (f.instance.maxSpeed - 0) / f.instance.inertiaTime),
    				(f.instance.maxSpeed = f.instance.maxSpeed / 2),
    				e)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					switch (C.Config_Property_Map.get(e).car_type) {
    						case "小型":
    							this.curNode.transform.localScale = new Laya.Vector3(0.09, 0.09, 0.09);
    							break;

    						case "中型":
    							this.curNode.transform.localScale = new Laya.Vector3(0.1, 0.1, 0.1);
    							break;

    						case "大型":
    							this.curNode.transform.localScale = new Laya.Vector3(0.12, 0.12, 0.12);
    					}
    					break;

    				case 2:
    				case 4:
    					this.curNode.transform.localScale = new Laya.Vector3(0.08, 0.08, 0.08);
    					break;

    				case 3:
    					this.curNode.transform.localScale = new Laya.Vector3(0.07, 0.07, 0.07);
    			}
    		}
    		showItemPosInfo() {
    			if (this.isDebug) {
    				switch (
    				(console.log("==================车辆的位置========================="),
    					console.log(this.curNode.transform.position),
    					console.log(this.curNode.transform.rotation),
    					console.log(this.curNode.transform.localPosition),
    					console.log(this.curNode.transform.localRotation),
    					console.log(this.curNode.transform.localRotationEuler),
    					console.log("==================机械臂========================="),
    					this.curCarType)
    				) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						console.log(this.mechanicalArm.transform.localRotationEuler);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						console.log(this.wjjBody.transform.localRotationEuler);
    				}
    				console.log("==================后臂========================="),
    					console.log(this.backArm.transform.localRotationEuler),
    					console.log("==================前臂========================="),
    					console.log(this.frontArm.transform.localRotationEuler),
    					console.log("==================ticker========================="),
    					console.log(this.ticks.transform.localRotationEuler),
    					console.log("==================ticker2========================="),
    					console.log(this.ticks2.transform.localRotationEuler),
    					console.log("==================摄像机信息========================");
    			}
    		}
    		setStage2Ani() {
    			switch (
    			(this.isDebug && console.log("setStage2Ani"),
    				(f.instance.isTrunArm = -1),
    				(f.instance.isTrunBackArm = -1),
    				(f.instance.isTrunFrontArm = -1),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.mechanicalArm.transform.localRotationEuler = new Laya.Vector3(0, -0, -0)),
    						(this.backArm.transform.localRotationEuler = new Laya.Vector3(-45, 9.706282055745342e-20, -0)),
    						(this.frontArm.transform.localRotationEuler = new Laya.Vector3(99, 9.706282055745342e-20, -0)),
    						(this.ticks.transform.localRotationEuler = new Laya.Vector3(0, -270, 35)),
    						(this.ticks2.transform.localRotationEuler = new Laya.Vector3(60.00000089058411, -0, -0));
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.wjjBody.transform.localRotationEuler = new Laya.Vector3(0, -0, -0)),
    						(this.backArm.transform.localRotationEuler = new Laya.Vector3(50, -0, -0)),
    						(this.frontArm.transform.localRotationEuler = new Laya.Vector3(-120, 0, -0)),
    						(this.ticks.transform.localRotationEuler = new Laya.Vector3(0, -270, -20)),
    						(this.ticks2.transform.localRotationEuler = new Laya.Vector3(-15, -0, -0));
    			}
    			if (this.ticks.getChildByName("treeInTicks")) {
    				switch (this.curCarType) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						(this.ticks.getChildByName("treeInTicks").transform.localPosition = new Laya.Vector3(
    							-0.816,
    							-0.214,
    							-0.087
    						)),
    							(this.ticks.getChildByName("treeInTicks").transform.localRotationEuler = new Laya.Vector3(35, -0, -90));
    						break;

    					case 2:
    					case 4:
    					case 3:
    						(this.ticks.getChildByName("treeInTicks").transform.localPosition = new Laya.Vector3(0.824, -0.462, 0.139)),
    							(this.ticks.getChildByName("treeInTicks").transform.localRotationEuler = new Laya.Vector3(35, -180, -90));
    				}
    				(this.ticks.getChildByName("treeInTicks").getChildByName("tg_1").active = !0),
    					(this.ticks.getChildByName("treeInTicks").getChildByName("tg_2").active = !0),
    					(this.ticks.getChildByName("treeInTicks").getChildByName("tg_3").active = !0),
    					(this.ticks.getChildByName("treeInTicks").getChildByName("tg_4").active = !0),
    					(this.ticks.getChildByName("treeInTicks").getChildByName("tg_5").active = !0),
    					(this.ticks.getChildByName("treeInTicks").getChildByName("tg_6").active = !0);
    			}
    		}
    		setTickToInit() {
    			(this.ticks.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				this.ticks.getChildByName("treeInTicks") &&
    				((this.ticks.getChildByName("treeInTicks").transform.localPosition = new Laya.Vector3(
    					-0.816,
    					-0.214,
    					-0.087
    				)),
    					(this.ticks.getChildByName("treeInTicks").transform.localRotationEuler = new Laya.Vector3(35, -0, -90)));
    		}
    		playTickTrunAni() {
    			this.isDebug && console.log("playTickTrunAni"),
    				Laya.stage.event(
    					"CreateDropTree1Particle",
    					new Laya.Vector3(
    						this.ticks.transform.position.x,
    						this.ticks.transform.position.y,
    						this.ticks.transform.position.z
    					)
    				),
    				Laya.Tween.to(
    					this.ticks.transform,
    					{
    						localRotationEulerY: -360,
    						localRotationEulerZ: -0,
    					},
    					1e3,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.tickTrunComplete),
    					0
    				),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_12.mp3");
    		}
    		tickTrunComplete() {
    			if ((this.isDebug && console.log("tickTrunComplete"), this.ticks.getChildByName("treeInTicks")))
    				switch (
    				((this.curTreePosX = this.ticks.getChildByName("treeInTicks").transform.localPositionX),
    					this.isDebug && console.log(" this.curTreePosX == " + this.curTreePosX),
    					this.curCarType)
    				) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						this.treeTween1 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionX: this.curTreePosX - 1.2,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.treeMoveEnd1),
    							0
    						);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						this.treeTween1 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionX: this.curTreePosX - 0.8,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.treeMoveEnd1),
    							0
    						);
    				}
    		}
    		treeMoveEnd1() {
    			if ((Laya.Tween.clear(this.treeTween1), this.ticks.getChildByName("treeInTicks")))
    				switch (this.curCarType) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						this.treeTween2 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionX: this.curTreePosX + 0.8,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.treeMoveEnd2),
    							0
    						);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						this.treeTween2 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionX: this.curTreePosX + 1.2,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.treeMoveEnd2),
    							0
    						);
    				}
    		}
    		treeMoveEnd2() {
    			if ((Laya.Tween.clear(this.treeTween2), this.ticks.getChildByName("treeInTicks")))
    				switch (this.curCarType) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						this.treeTween3 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionX: this.curTreePosX,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.treeMoveEnd3),
    							0
    						);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						this.treeTween3 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionX: this.curTreePosX,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.treeMoveEnd3),
    							0
    						);
    				}
    		}
    		treeMoveEnd3() {
    			if ((Laya.Tween.clear(this.treeTween3), this.ticks.getChildByName("treeInTicks")))
    				switch (this.curCarType) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						this.treeTween4 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionY: -0.586,
    								localPositionZ: 0.443,
    							},
    							1e3,
    							Laya.Ease.bounceOut,
    							Laya.Handler.create(this, this.treeBranchDropEnd),
    							0
    						);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						this.treeTween4 = Laya.Tween.to(
    							this.ticks.getChildByName("treeInTicks").transform,
    							{
    								localPositionY: -0.54,
    								localPositionZ: -0.5,
    							},
    							1e3,
    							Laya.Ease.bounceOut,
    							Laya.Handler.create(this, this.treeBranchDropEnd),
    							0
    						);
    				}
    		}
    		treeBranchDropEnd() {
    			switch (
    			(Laya.Tween.clear(this.treeTween4),
    				console.log("2222222"),
    				(f.instance.curStageProcess += 1),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    				$.instance.shwoFadeIn(2),
    				Ie.instance.getStageTypeByStageIndex())
    			) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					(L.instance.playerInfo.stage2Times += 1), L.instance.savePlayerInfoToLocalCache();
    			}
    		}
    		hideTreeBranch(e) {
    			switch (e) {
    				case 1:
    					this.ticks.getChildByName("treeInTicks").getChildByName("tg_1").active = !1;
    					break;

    				case 2:
    					this.ticks.getChildByName("treeInTicks").getChildByName("tg_2").active = !1;
    					break;

    				case 3:
    					this.ticks.getChildByName("treeInTicks").getChildByName("tg_3").active = !1;
    					break;

    				case 4:
    					this.ticks.getChildByName("treeInTicks").getChildByName("tg_4").active = !1;
    					break;

    				case 5:
    					this.ticks.getChildByName("treeInTicks").getChildByName("tg_5").active = !1;
    					break;

    				case 6:
    					this.ticks.getChildByName("treeInTicks").getChildByName("tg_6").active = !1;
    			}
    			Laya.stage.event(
    				"CreateDropTree1Particle",
    				new Laya.Vector3(
    					this.ticks.transform.position.x,
    					this.ticks.transform.position.y,
    					this.ticks.transform.position.z
    				)
    			);
    		}
    		onUpdate() { }
    		onKeyDown(e) {
    			console.log("🚀 ~ file: bundle.js:6681 ~ X ~ onKeyDown ~ onKeyDown:");
    			let t = e.keyCode;
    			switch ((this.isDebug && console.log("onKeyDown == keyCode == " + t), t)) {
    				case 87:
    					this.isDebug && console.log("key == W"),
    						0 == f.instance.curSpeed && 0 == f.instance.isForward && 0 == f.instance.isBackAway
    							? ((f.instance.isForward = !0),
    								(f.instance.isBackAway = !1),
    								(f.instance.isRunFont = !0),
    								(f.instance.isRunBack = !1),
    								f.instance.isPlayCarMoveSound ||
    								((f.instance.isPlayCarMoveSound = !0),
    									L.instance.settingInfo.isSound &&
    									(Laya.Browser.onIOS
    										? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    										: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))))
    							: f.instance.curSpeed > 0 &&
    							1 == f.instance.isRunFont &&
    							((f.instance.isForward = !0),
    								(f.instance.isBackAway = !1),
    								(f.instance.isRunFont = !0),
    								(f.instance.isRunBack = !1),
    								f.instance.isPlayCarMoveSound ||
    								((f.instance.isPlayCarMoveSound = !0),
    									L.instance.settingInfo.isSound &&
    									(Laya.Browser.onIOS
    										? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    										: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))));
    					break;

    				case 83:
    					this.isDebug &&
    						(console.log("key == S"),
    							console.log("gameLogic.instance.curSpeed == " + f.instance.curSpeed),
    							console.log("gameLogic.instance.isForward == " + f.instance.isForward),
    							console.log("gameLogic.instance.isBackAway == " + f.instance.isBackAway)),
    						0 == f.instance.curSpeed && 0 == f.instance.isForward && 0 == f.instance.isBackAway
    							? ((f.instance.isBackAway = !0),
    								(f.instance.isForward = !1),
    								(f.instance.isRunFont = !1),
    								(f.instance.isRunBack = !0),
    								f.instance.isPlayCarMoveSound ||
    								((f.instance.isPlayCarMoveSound = !0),
    									L.instance.settingInfo.isSound &&
    									(Laya.Browser.onIOS
    										? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    										: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))))
    							: f.instance.curSpeed > 0 &&
    							1 == f.instance.isRunBack &&
    							((f.instance.isBackAway = !0),
    								(f.instance.isForward = !1),
    								(f.instance.isRunFont = !1),
    								(f.instance.isRunBack = !0),
    								f.instance.isPlayCarMoveSound ||
    								((f.instance.isPlayCarMoveSound = !0),
    									L.instance.settingInfo.isSound &&
    									(Laya.Browser.onIOS
    										? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    										: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))));
    					break;

    				case 65:
    					this.isDebug && console.log("key == A"), (f.instance.isLeft = !0);
    					break;

    				case 68:
    					this.isDebug && console.log("key == D"), (f.instance.isRight = !0);
    			}
    		}
    		onKeyUp(e) {
    			let t = e.keyCode;
    			switch ((this.isDebug && console.log("onKeyUp == keyCode == " + t), t)) {
    				case 87:
    					this.isDebug && console.log("key == W"),
    						(f.instance.isForward = !1),
    						L.instance.settingInfo.isSound &&
    						(Laya.Browser.onIOS
    							? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    							: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    						(f.instance.isPlayCarMoveSound = !1);
    					break;

    				case 83:
    					this.isDebug && console.log("key == S"),
    						(f.instance.isBackAway = !1),
    						L.instance.settingInfo.isSound &&
    						(Laya.Browser.onIOS
    							? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    							: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    						(f.instance.isPlayCarMoveSound = !1);
    					break;

    				case 65:
    					this.isDebug && console.log("key == A"), (f.instance.isLeft = !1);
    					break;

    				case 68:
    					this.isDebug && console.log("key == D"), (f.instance.isRight = !1);
    			}
    		}
    		playWheelRoll(e) {
    			switch (this.curCarType) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					1 == e
    						? ((this.carBWheel.transform.localRotationEulerX -= 2e3 * f.instance.curSpeed),
    							(this.carLFWheel.transform.localRotationEulerX -= 2e3 * f.instance.curSpeed),
    							(this.carRFWheel.transform.localRotationEulerX -= 2e3 * f.instance.curSpeed))
    						: ((this.carBWheel.transform.localRotationEulerX += 2e3 * f.instance.curSpeed),
    							(this.carLFWheel.transform.localRotationEulerX += 2e3 * f.instance.curSpeed),
    							(this.carRFWheel.transform.localRotationEulerX += 2e3 * f.instance.curSpeed));
    					break;

    				case 2:
    				case 4:
    				case 3:
    					1 == e
    						? (this.lvdai.meshRenderer.materials[1].tilingOffset.w -= 20 * f.instance.curSpeed)
    						: (this.lvdai.meshRenderer.materials[1].tilingOffset.w += 20 * f.instance.curSpeed);
    			}
    		}
    		playWheelTurn() {
    			switch (this.curCarType) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					f.instance.isRight
    						? (this.carLFWheel.transform.localRotationEulerY <= 0
    							? ((this.carLFWheel.transform.localRotationEulerY -= 5),
    								this.carLFWheel.transform.localRotationEulerY <= -1 * f.instance.maxSteeringAngle &&
    								(this.carLFWheel.transform.localRotationEulerY = -1 * f.instance.maxSteeringAngle))
    							: (this.carLFWheel.transform.localRotationEulerY -= 5),
    							this.carRFWheel.transform.localRotationEulerY <= 0
    								? ((this.carRFWheel.transform.localRotationEulerY -= 5),
    									this.carRFWheel.transform.localRotationEulerY <= -1 * f.instance.maxSteeringAngle &&
    									(this.carRFWheel.transform.localRotationEulerY = -1 * f.instance.maxSteeringAngle))
    								: (this.carRFWheel.transform.localRotationEulerY -= 5))
    						: f.instance.isLeft
    							? (this.carLFWheel.transform.localRotationEulerY >= 0
    								? ((this.carLFWheel.transform.localRotationEulerY += 5),
    									this.carLFWheel.transform.localRotationEulerY >= f.instance.maxSteeringAngle &&
    									(this.carLFWheel.transform.localRotationEulerY = f.instance.maxSteeringAngle))
    								: (this.carLFWheel.transform.localRotationEulerY += 5),
    								this.carRFWheel.transform.localRotationEulerY >= 0
    									? ((this.carRFWheel.transform.localRotationEulerY += 5),
    										this.carRFWheel.transform.localRotationEulerY >= f.instance.maxSteeringAngle &&
    										(this.carRFWheel.transform.localRotationEulerY = f.instance.maxSteeringAngle))
    									: (this.carRFWheel.transform.localRotationEulerY += 5))
    							: (this.carLFWheel.transform.localRotationEulerY < 0
    								? ((this.carLFWheel.transform.localRotationEulerY += 5),
    									this.carLFWheel.transform.localRotationEulerY >= 0 &&
    									(this.carLFWheel.transform.localRotationEulerY = 0))
    								: this.carLFWheel.transform.localRotationEulerY > 0 &&
    								((this.carLFWheel.transform.localRotationEulerY -= 5),
    									this.carLFWheel.transform.localRotationEulerY <= 0 &&
    									(this.carLFWheel.transform.localRotationEulerY = 0)),
    								this.carRFWheel.transform.localRotationEulerY < 0
    									? ((this.carRFWheel.transform.localRotationEulerY += 5),
    										this.carRFWheel.transform.localRotationEulerY >= 0 &&
    										(this.carRFWheel.transform.localRotationEulerY = 0))
    									: this.carRFWheel.transform.localRotationEulerY > 0 &&
    									((this.carRFWheel.transform.localRotationEulerY -= 5),
    										this.carRFWheel.transform.localRotationEulerY <= 0 &&
    										(this.carRFWheel.transform.localRotationEulerY = 0)));
    			}
    		}
    		playArmTurn(e) {
    			switch (
    			(this.isDebug &&
    				(console.log("playArmTurn == dir == " + e),
    					console.log(
    						"JsonLoader.Config_Property_Map.get(this.curUseCar).car_control == " +
    						C.Config_Property_Map.get(this.curUseCar).car_control
    					)),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					0 == e
    						? ((f.instance.curArmAngle += f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_control
    						)),
    							f.instance.curArmAngle > f.instance.maxArmAngle && (f.instance.curArmAngle = f.instance.maxArmAngle))
    						: ((f.instance.curArmAngle -= f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_control
    						)),
    							f.instance.curArmAngle < f.instance.minArmAngle && (f.instance.curArmAngle = f.instance.minArmAngle)),
    						(this.mechanicalArm.transform.localRotationEulerY = f.instance.curArmAngle);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					0 == e
    						? ((f.instance.curArmAngle += f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_control
    						)),
    							f.instance.curArmAngle > f.instance.maxArmAngle && (f.instance.curArmAngle = f.instance.maxArmAngle))
    						: ((f.instance.curArmAngle -= f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_control
    						)),
    							f.instance.curArmAngle < f.instance.minArmAngle && (f.instance.curArmAngle = f.instance.minArmAngle)),
    						(this.wjjBody.transform.localRotationEulerY = f.instance.curArmAngle);
    			}
    		}
    		playBackArmTurn(e) {
    			switch (
    			(this.isDebug &&
    				(console.log("playBackArmTurn == dir == " + e),
    					console.log(
    						"JsonLoader.Config_Property_Map.get(this.curUseCar).car_power == " +
    						C.Config_Property_Map.get(this.curUseCar).car_power
    					)),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					0 == e
    						? ((f.instance.curBackArmAngle -= f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curBackArmAngle < f.instance.minBackArmAngle &&
    							(f.instance.curBackArmAngle = f.instance.minBackArmAngle))
    						: ((f.instance.curBackArmAngle += f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curBackArmAngle > f.instance.maxBackArmAngle &&
    							(f.instance.curBackArmAngle = f.instance.maxBackArmAngle)),
    						(this.backArm.transform.localRotationEulerX = f.instance.curBackArmAngle);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					0 == e
    						? ((f.instance.curBackArmAngle += f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curBackArmAngle > f.instance.maxBackArmAngle &&
    							(f.instance.curBackArmAngle = f.instance.maxBackArmAngle))
    						: ((f.instance.curBackArmAngle -= f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curBackArmAngle < f.instance.minBackArmAngle &&
    							(f.instance.curBackArmAngle = f.instance.minBackArmAngle)),
    						(this.backArm.transform.localRotationEulerX = f.instance.curBackArmAngle);
    			}
    		}
    		playFrontArmTurn(e) {
    			switch (
    			(this.isDebug &&
    				(console.log("playFrontArmTurn == dir == " + e),
    					console.log("gameLogic.instance.curFrontArmAngle == " + f.instance.curFrontArmAngle),
    					console.log("gameLogic.instance.minFrontArmAngle == " + f.instance.minFrontArmAngle),
    					console.log("gameLogic.instance.maxFrontArmAngle == " + f.instance.maxFrontArmAngle),
    					console.log("gameLogic.instance.curFrontArmAngle == " + f.instance.curFrontArmAngle),
    					console.log(
    						"JsonLoader.Config_Property_Map.get(this.curUseCar).car_power == " +
    						C.Config_Property_Map.get(this.curUseCar).car_power
    					)),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					0 == e
    						? ((f.instance.curFrontArmAngle -= f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curFrontArmAngle < f.instance.minFrontArmAngle &&
    							(f.instance.curFrontArmAngle = f.instance.minFrontArmAngle))
    						: ((f.instance.curFrontArmAngle += f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curFrontArmAngle > f.instance.maxFrontArmAngle &&
    							(f.instance.curFrontArmAngle = f.instance.maxFrontArmAngle)),
    						this.isDebug && console.log("gameLogic.instance.curFrontArmAngle =1= " + f.instance.curFrontArmAngle);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					0 == e
    						? ((f.instance.curFrontArmAngle += f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curFrontArmAngle > f.instance.maxFrontArmAngle &&
    							(f.instance.curFrontArmAngle = f.instance.maxFrontArmAngle))
    						: ((f.instance.curFrontArmAngle -= f.instance.getArmControlValue(
    							C.Config_Property_Map.get(this.curUseCar).car_power
    						)),
    							f.instance.curFrontArmAngle < f.instance.minFrontArmAngle &&
    							(f.instance.curFrontArmAngle = f.instance.minFrontArmAngle)),
    						this.isDebug && console.log("gameLogic.instance.curFrontArmAngle =1= " + f.instance.curFrontArmAngle);
    			}
    			this.frontArm.transform.localRotationEulerX = f.instance.curFrontArmAngle;
    		}
    		playLiftArmTurn(e) {
    			switch ((this.isDebug && console.log("playLiftArmTurn == dir == " + e), this.curCarType)) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					1 == e
    						? ((f.instance.curLiftArmAngle -= 1),
    							f.instance.curLiftArmAngle < f.instance.minLiftArmAngle &&
    							(f.instance.curLiftArmAngle = f.instance.minLiftArmAngle))
    						: ((f.instance.curLiftArmAngle += 1),
    							f.instance.curLiftArmAngle > f.instance.maxLiftArmAngle &&
    							(f.instance.curLiftArmAngle = f.instance.maxLiftArmAngle)),
    						(this.liftingArm.transform.localRotationEulerX = f.instance.curLiftArmAngle),
    						this.forks.active && (this.forks.transform.localRotationEulerX = -90 - f.instance.curLiftArmAngle);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					1 == e
    						? ((f.instance.curLiftArmAngle -= 1),
    							f.instance.curLiftArmAngle < f.instance.minLiftArmAngle &&
    							(f.instance.curLiftArmAngle = f.instance.minLiftArmAngle))
    						: ((f.instance.curLiftArmAngle += 1),
    							f.instance.curLiftArmAngle > f.instance.maxLiftArmAngle &&
    							(f.instance.curLiftArmAngle = f.instance.maxLiftArmAngle)),
    						(this.liftingArm.transform.localRotationEulerX = f.instance.curLiftArmAngle),
    						this.forks.active && (this.forks.transform.localRotationEulerX = -1 * f.instance.curLiftArmAngle);
    			}
    		}
    		initTicksAni() {
    			this.isDebug && console.log("initTicksAni"),
    				this.ticksAnimator ||
    				((this.ticksAnimator = this.ticks.getComponent(Laya.Animator)),
    					this.ticksAnimator.getDefaultState().addScript(z),
    					this.ticksAnimator.getControllerLayer(0).getAnimatorState("off").addScript(J));
    		}
    		playTicksAni(e) {
    			if ((this.isDebug && console.log("playTicksAni == state ==" + e), this.ticksAnimator))
    				switch (e) {
    					case 1:
    						this.ticksAnimator.play("on", 0, 0);
    						break;

    					case 2:
    						this.ticksAnimator.play("off", 0, 0);
    				}
    		}
    		showGuandaoOnTick(e) {
    			this.ticks.getChildByName("GundaoInTicks") && (this.ticks.getChildByName("GundaoInTicks").active = e);
    		}
    		changeCarType(e) {
    			if (
    				(console.log("changeCarType == type == " + e),
    					console.log("this.curCarType == " + this.curCarType),
    					e == l.CAR_TYPE.DIGGER || e == l.CAR_TYPE.ROBOT_ARM || e == l.CAR_TYPE.GROUND_HAMMER)
    			)
    				switch (this.curCarType) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						(this.armCompent.active = !0),
    							(this.liftingArm.active = !1),
    							(this.rearBucket.active = !1),
    							(this.ticks.active = !1),
    							(this.baffle.active = !1);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						(this.backArm.active = !0),
    							(this.liftingArm.active = !1),
    							(this.rearBucket.active = !1),
    							(this.ticks.active = !1),
    							(this.baffle.active = !1);
    				}
    			if (e == l.CAR_TYPE.BULLDOZER || e == l.CAR_TYPE.FORKLIFT)
    				switch (this.curCarType) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						(this.armCompent.active = !1),
    							(this.liftingArm.active = !0),
    							(this.forks.active = !1),
    							(this.frontBucket.active = !1);
    						break;

    					case 2:
    					case 4:
    					case 3:
    						(this.backArm.active = !1),
    							(this.liftingArm.active = !0),
    							(this.forks.active = !1),
    							(this.frontBucket.active = !1);
    				}
    			switch (e) {
    				case l.CAR_TYPE.DIGGER:
    					this.rearBucket.active = !0;
    					break;

    				case l.CAR_TYPE.ROBOT_ARM:
    					this.initTicksAni(), (this.ticks.active = !0);
    					break;

    				case l.CAR_TYPE.GROUND_HAMMER:
    					(this.baffle.active = !0), this.baffle.getComponent(Laya.Script3D).showBaffle();
    					break;

    				case l.CAR_TYPE.BULLDOZER:
    					this.frontBucket.active = !0;
    					break;

    				case l.CAR_TYPE.FORKLIFT:
    					this.forks.active = !0;
    			}
    		}
    		playDiggingAni() {
    			switch (
    			(this.isDebug && console.log("playDiggingAni"),
    				this.isDebug && console.log("gameLogic.instance.isPlayArmPushSound == " + f.instance.isPlayArmPushSound),
    				f.instance.isPlayArmAutoSound ||
    				((f.instance.isPlayArmAutoSound = !0),
    					L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_05_1.mp3", 0)),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					Laya.Tween.to(
    						this.backArm.transform,
    						{
    							localRotationEulerX: -40,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.backArmRotateEnd),
    						0
    					),
    						Laya.Tween.to(
    							this.frontArm.transform,
    							{
    								localRotationEulerX: 10,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.frontArmRotateEnd),
    							500
    						);
    					break;

    				case 2:
    				case 4:
    					Laya.Tween.to(
    						this.backArm.transform,
    						{
    							localRotationEulerX: 60,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.backArmRotateEnd),
    						0
    					),
    						Laya.Tween.to(
    							this.frontArm.transform,
    							{
    								localRotationEulerX: -80,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.frontArmRotateEnd),
    							500
    						);
    					break;

    				case 3:
    					Laya.Tween.to(
    						this.backArm.transform,
    						{
    							localRotationEulerX: 65,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.backArmRotateEnd),
    						0
    					),
    						Laya.Tween.to(
    							this.frontArm.transform,
    							{
    								localRotationEulerX: -120,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.frontArmRotateEnd),
    							500
    						);
    			}
    		}
    		backArmRotateEnd() {
    			this.isDebug && console.log("backArmRotateEnd"),
    				(f.instance.curBackArmAngle = this.backArm.transform.localRotationEulerX);
    		}
    		frontArmRotateEnd() {
    			switch (
    			(this.isDebug && console.log("frontArmRotateEnd"),
    				(f.instance.curFrontArmAngle = this.frontArm.transform.localRotationEulerX),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					Laya.Tween.to(
    						this.rearBucket.transform,
    						{
    							localRotationEulerX: -90,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.diggingAniEnd),
    						0
    					);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					Laya.Tween.to(
    						this.rearBucket.transform,
    						{
    							localRotationEulerX: 90,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.diggingAniEnd),
    						0
    					);
    			}
    		}
    		diggingAniEnd() {
    			switch (
    			(this.isDebug && console.log("diggingAniEnd"),
    				this.showRearBucketDirt(!0),
    				Ie.instance.hideItem(f.instance.curDiggerDirtPos, "dirt"),
    				this.curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					Laya.Tween.to(
    						this.backArm.transform,
    						{
    							localRotationEulerX: 0,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.backArmRotateEnd1),
    						0
    					),
    						Laya.Tween.to(
    							this.frontArm.transform,
    							{
    								localRotationEulerX: -20,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.frontArmRotateEnd1),
    							0
    						);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					Laya.Tween.to(
    						this.backArm.transform,
    						{
    							localRotationEulerX: 30,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.backArmRotateEnd1),
    						0
    					),
    						Laya.Tween.to(
    							this.frontArm.transform,
    							{
    								localRotationEulerX: -60,
    							},
    							1e3,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.frontArmRotateEnd1),
    							0
    						);
    			}
    		}
    		backArmRotateEnd1() {
    			this.isDebug && console.log("backArmRotateEnd"),
    				(f.instance.curBackArmAngle = this.backArm.transform.localRotationEulerX);
    		}
    		frontArmRotateEnd1() {
    			this.isDebug && console.log("frontArmRotateEnd"),
    				(f.instance.curFrontArmAngle = this.frontArm.transform.localRotationEulerX),
    				f.instance.isPlayArmAutoSound &&
    				((f.instance.isPlayArmAutoSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    				(f.instance.isPlayWJJAni = !1),
    				$.instance.showControl1(!0),
    				$.instance.showControl2(!0),
    				(f.instance.isShowControl = !0),
    				$.instance.showAllControlKey(!0),
    				this.setRearBucketState(1),
    				102 == Ie.instance.curStageIndex
    					? (D.SendEvent("玩家成功完成1次挖土次数", 1011, !1),
    						(f.instance.curStageProcess += 1),
    						$.instance.setTaskCurProgress(f.instance.curStageProcess),
    						(f.instance.isPlayerUpdate = !1),
    						Q.instance.hideTeach(),
    						2 == L.instance.playerInfo.teachStage &&
    						4 == L.instance.playerInfo.teachStep &&
    						((L.instance.playerInfo.teachStep = 5), L.instance.savePlayerInfoToLocalCache()),
    						$.instance.showControl1(!1),
    						$.instance.showControl2(!1),
    						$.instance.showSlider1(!1),
    						$.instance.showSlider2(!1),
    						(f.instance.isShowControl = !1),
    						$.instance.stopChecHideBox(),
    						$.instance.stopCheckQuickWin(),
    						Laya.stage.event("hideBox_ClickClose"),
    						Laya.stage.event("quickWin_ClickClose"),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    					: Ie.instance.getStageTypeByStageIndex() == l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2
    						? ((f.instance.curStageProcess += 1),
    							$.instance.setTaskCurProgress(f.instance.curStageProcess),
    							f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    							(D.SendEvent("初级挖掘（新）完成次数统计", 2002, !1),
    								(f.instance.isShowDiggerPosSign = !1),
    								(f.instance.isShowPlacePosSign = !1),
    								(f.instance.isShowTargetPosSign = !1),
    								$.instance.showDiggerSign(!1, "", 0, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								this.stopCarMove(),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								$.instance.showSlider1(!1),
    								$.instance.showSlider2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.stopChecHideBox(),
    								$.instance.stopCheckQuickWin(),
    								Laya.stage.event("hideBox_ClickClose"),
    								Laya.stage.event("quickWin_ClickClose"),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()))
    						: ((f.instance.isShowDiggerPosSign = !1),
    							$.instance.showDiggerSign(!1, "", 0, 0),
    							(f.instance.isShowPlacePosSign = !0));
    		}
    		playDropDirtAni() {
    			this.isDebug && console.log("playDropDirtAni"),
    				console.log("gameLogic.instance.curStageProcess =4= " + f.instance.curStageProcess),
    				Laya.stage.event(
    					"CreateDropSmokeParticle",
    					new Laya.Vector3(
    						this.rearBucket.transform.position.x,
    						this.rearBucket.transform.position.y + 0.02,
    						this.rearBucket.transform.position.z
    					)
    				),
    				Ie.instance.showTruckSmoke(!0),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_11.mp3"),
    				Laya.Tween.to(
    					this.rearBucket.transform,
    					{
    						localRotationEulerX: 0,
    					},
    					1e3,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.dropingDirtEnd),
    					0
    				);
    		}
    		dropingDirtEnd() {
    			this.isDebug && console.log("diggingAniEnd");
    		}
    		showRearBucketDirt(e) {
    			(this.rearBucketDirt.active = e), (f.instance.isHaveDirtInBucket = e);
    		}
    		setRearBucketState(e) {
    			this.rearBucket.getComponent(Laya.Script3D).curState = e;
    		}
    		showTreeInTicks(e) {
    			switch ((this.isDebug && console.log("showTreeInTicks"), this.curCarType)) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.ticks.transform.localRotationEuler = new Laya.Vector3(0, -270, 35)),
    						this.ticks.getChildByName("treeInTicks") && (this.ticks.getChildByName("treeInTicks").active = e);
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.ticks.transform.localRotationEuler = new Laya.Vector3(0, -270, -20)),
    						this.ticks.getChildByName("treeInTicks") && (this.ticks.getChildByName("treeInTicks").active = e);
    			}
    		}
    		playStoneEffect() {
    			Laya.stage.event(
    				"creatStoneEffectParticle",
    				new Laya.Vector3(
    					this.baffle.transform.position.x,
    					this.baffle.transform.position.y,
    					this.baffle.transform.position.z
    				)
    			);
    		}
    		showBoxOnForks(e) {
    			this.isDebug && console.log("shwoBoxOnForks"),
    				this.forks.getChildByName("boxOnFork") && (this.forks.getChildByName("boxOnFork").active = e);
    		}
    		showYCarOnForks(e) {
    			this.isDebug && console.log("showYCarOnForks"),
    				this.forks.getChildByName("yCarOnFork") && (this.forks.getChildByName("yCarOnFork").active = e);
    		}
    		showRCarOnForks(e) {
    			this.isDebug && console.log("showRCarOnForks"),
    				this.forks.getChildByName("rCarOnFork") && (this.forks.getChildByName("rCarOnFork").active = e);
    		}
    	}
    	class J extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() { }
    		onStateUpdate() { }
    		onStateExit() { }
    	}
    	class z extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() { }
    		onStateUpdate() { }
    		onStateExit() { }
    	}
    	class Z extends Laya.Script {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Z()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("n18").asCom),
    				(this.btnBlack = this._view.getChild("n19").asButton),
    				this.btnBlack.onClick(this, this.onClickBlack),
    				(this.btnClose = this._content.getChild("btnClose").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this.btnTool1 = this._content.getChild("tool1").asButton),
    				this.btnTool1.onClick(this, this.onClickTool1),
    				(this.btnTool2 = this._content.getChild("tool2").asButton),
    				this.btnTool2.onClick(this, this.onClickTool2),
    				(this.btnTool3 = this._content.getChild("tool3").asButton),
    				this.btnTool3.onClick(this, this.onClickTool3),
    				(this.btnTool4 = this._content.getChild("tool4").asButton),
    				this.btnTool4.onClick(this, this.onClickTool4),
    				(this.btnTool5 = this._content.getChild("tool5").asButton),
    				this.btnTool5.onClick(this, this.onClickTool5),
    				(this.curToolIcon = this._content.getChild("n7").asLoader),
    				(this.curToolName = this._content.getChild("n8").asLoader),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				this.setCurUseTool(f.instance.curUseToolType),
    				this.initBtnShow(),
    				this.playMenuOpenAni();
    		}
    		setCurUseTool(e) {
    			(this.curToolIcon.url = V.instance.getToolIcon(e)), (this.curToolName.url = V.instance.getToolName(e));
    		}
    		playMenuOpenAni() {
    			this._view.getTransition("open").play(Laya.Handler.create(this, this.onShown));
    		}
    		playMenuCloseAni() {
    			this._view.getTransition("close").play(Laya.Handler.create(this, this.onHide));
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				2 == Ie.instance.curStageIndex &&
    				Q.instance.isShowTeachInStage &&
    				(Q.instance.stopNextStep(), Q.instance.showTeach(4, Q.instance.stageTeachStep));
    		}
    		getTool2BtnX() {
    			return this._content.x + (this.btnTool2.x - this._content.width / 2);
    		}
    		getTool2BtnY() {
    			return this._content.y - (this._content.height - this.btnTool2.y);
    		}
    		getCloseBtnX() {
    			return this._content.x + (this.btnClose.x - this._content.width / 2);
    		}
    		getCloseBtnY() {
    			return this._content.y - (this._content.height - this.btnClose.y);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			this.curCloseIndex;
    			mt.instance.popMenu(l.UI_STATE.UI_STATE_TOOL_MENU), this._view.removeFromParent();
    		}
    		initBtnShow() {
    			1 == L.instance.playerInfo.tool1
    				? 1 == f.instance.curUseToolType
    					? ((this.btnTool1.getChild("n0").visible = !1),
    						(this.btnTool1.getChild("n1").visible = !1),
    						(this.btnTool1.getChild("n2").visible = !0),
    						(this.btnTool1.getChild("n5").visible = !1))
    					: ((this.btnTool1.getChild("n0").visible = !0),
    						(this.btnTool1.getChild("n1").visible = !1),
    						(this.btnTool1.getChild("n2").visible = !1),
    						(this.btnTool1.getChild("n5").visible = !1))
    				: ((this.btnTool1.getChild("n0").visible = !1),
    					(this.btnTool1.getChild("n1").visible = !0),
    					(this.btnTool1.getChild("n2").visible = !1),
    					(this.btnTool1.getChild("n5").visible = !0)),
    				1 == L.instance.playerInfo.tool2
    					? 2 == f.instance.curUseToolType
    						? ((this.btnTool2.getChild("n0").visible = !1),
    							(this.btnTool2.getChild("n1").visible = !1),
    							(this.btnTool2.getChild("n2").visible = !0),
    							(this.btnTool2.getChild("n5").visible = !1))
    						: ((this.btnTool2.getChild("n0").visible = !0),
    							(this.btnTool2.getChild("n1").visible = !1),
    							(this.btnTool2.getChild("n2").visible = !1),
    							(this.btnTool2.getChild("n5").visible = !1))
    					: ((this.btnTool2.getChild("n0").visible = !1),
    						(this.btnTool2.getChild("n1").visible = !0),
    						(this.btnTool2.getChild("n2").visible = !1),
    						(this.btnTool2.getChild("n5").visible = !0)),
    				1 == L.instance.playerInfo.tool3
    					? 3 == f.instance.curUseToolType
    						? ((this.btnTool3.getChild("n0").visible = !1),
    							(this.btnTool3.getChild("n1").visible = !1),
    							(this.btnTool3.getChild("n2").visible = !0),
    							(this.btnTool3.getChild("n5").visible = !1))
    						: ((this.btnTool3.getChild("n0").visible = !0),
    							(this.btnTool3.getChild("n1").visible = !1),
    							(this.btnTool3.getChild("n2").visible = !1),
    							(this.btnTool3.getChild("n5").visible = !1))
    					: ((this.btnTool3.getChild("n0").visible = !1),
    						(this.btnTool3.getChild("n1").visible = !0),
    						(this.btnTool3.getChild("n2").visible = !1),
    						(this.btnTool3.getChild("n5").visible = !0)),
    				1 == L.instance.playerInfo.tool4
    					? 4 == f.instance.curUseToolType
    						? ((this.btnTool4.getChild("n0").visible = !1),
    							(this.btnTool4.getChild("n1").visible = !1),
    							(this.btnTool4.getChild("n2").visible = !0),
    							(this.btnTool4.getChild("n5").visible = !1))
    						: ((this.btnTool4.getChild("n0").visible = !0),
    							(this.btnTool4.getChild("n1").visible = !1),
    							(this.btnTool4.getChild("n2").visible = !1),
    							(this.btnTool4.getChild("n5").visible = !1))
    					: ((this.btnTool4.getChild("n0").visible = !1),
    						(this.btnTool4.getChild("n1").visible = !0),
    						(this.btnTool4.getChild("n2").visible = !1),
    						(this.btnTool4.getChild("n5").visible = !0)),
    				1 == L.instance.playerInfo.tool5
    					? 5 == f.instance.curUseToolType
    						? ((this.btnTool5.getChild("n0").visible = !1),
    							(this.btnTool5.getChild("n1").visible = !1),
    							(this.btnTool5.getChild("n2").visible = !0),
    							(this.btnTool5.getChild("n5").visible = !1))
    						: ((this.btnTool5.getChild("n0").visible = !0),
    							(this.btnTool5.getChild("n1").visible = !1),
    							(this.btnTool5.getChild("n2").visible = !1),
    							(this.btnTool5.getChild("n5").visible = !1))
    					: ((this.btnTool5.getChild("n0").visible = !1),
    						(this.btnTool5.getChild("n1").visible = !0),
    						(this.btnTool5.getChild("n2").visible = !1),
    						(this.btnTool5.getChild("n5").visible = !0));
    		}
    		onClickBlack() {
    			this.isDebug && console.log("onClickBlack"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL_BLACK, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					(this.curCloseIndex = 0),
    					this.playMenuCloseAni());
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL_CLOSE, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					2 == Ie.instance.curStageIndex &&
    					Q.instance.isShowTeachInStage &&
    					(Q.instance.hideTeach(),
    						Q.instance.stopNextStep(),
    						5 == Q.instance.stageTeachStep && (Q.instance.isShowTeachInStage = !1)),
    					(this.curCloseIndex = 0),
    					this.playMenuCloseAni());
    		}
    		onClickTool1() {
    			this.isDebug && console.log("onClickTool1"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL1, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					L.instance.playerInfo.tool1 == l.CAR_TYPE.DIGGER
    						? f.instance.curUseToolType != l.CAR_TYPE.DIGGER &&
    						((f.instance.curUseToolType = l.CAR_TYPE.DIGGER),
    							this.setCurUseTool(l.CAR_TYPE.DIGGER),
    							this.initBtnShow(),
    							$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    							X.instance.changeCarType(l.CAR_TYPE.DIGGER))
    						: mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) &&
    						mt.instance.showToolUnlockTip(l.CAR_TYPE.DIGGER, 0));
    		}
    		onClickTool2() {
    			this.isDebug && console.log("onClickTool2"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL2, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					1 == L.instance.playerInfo.tool2
    						? f.instance.curUseToolType != l.CAR_TYPE.ROBOT_ARM
    							? ((f.instance.curUseToolType = l.CAR_TYPE.ROBOT_ARM),
    								this.setCurUseTool(l.CAR_TYPE.ROBOT_ARM),
    								this.initBtnShow(),
    								$.instance.setCurUseTool(l.CAR_TYPE.ROBOT_ARM),
    								X.instance.changeCarType(l.CAR_TYPE.ROBOT_ARM),
    								2 == Ie.instance.curStageIndex &&
    								Q.instance.isShowTeachInStage &&
    								(Q.instance.hideTeach(),
    									4 == Q.instance.stageTeachStep && (Q.instance.stageTeachStep = 5),
    									Q.instance.stopNextStep(),
    									Q.instance.showTeach(4, Q.instance.stageTeachStep)))
    							: 2 == Ie.instance.curStageIndex &&
    							Q.instance.isShowTeachInStage &&
    							(Q.instance.hideTeach(),
    								4 == Q.instance.stageTeachStep && (Q.instance.stageTeachStep = 5),
    								Q.instance.stopNextStep(),
    								Q.instance.showTeach(4, Q.instance.stageTeachStep))
    						: mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) &&
    						mt.instance.showToolUnlockTip(l.CAR_TYPE.ROBOT_ARM, 0));
    		}
    		onClickTool3() {
    			this.isDebug && console.log("onClickTool3"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL3, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					1 == L.instance.playerInfo.tool3
    						? f.instance.curUseToolType != l.CAR_TYPE.BULLDOZER &&
    						((f.instance.curUseToolType = l.CAR_TYPE.BULLDOZER),
    							this.setCurUseTool(l.CAR_TYPE.BULLDOZER),
    							this.initBtnShow(),
    							$.instance.setCurUseTool(l.CAR_TYPE.BULLDOZER),
    							X.instance.changeCarType(l.CAR_TYPE.BULLDOZER))
    						: mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) &&
    						mt.instance.showToolUnlockTip(l.CAR_TYPE.BULLDOZER, 0));
    		}
    		onClickTool4() {
    			this.isDebug && console.log("onClickTool4"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL4, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					1 == L.instance.playerInfo.tool4
    						? f.instance.curUseToolType != l.CAR_TYPE.GROUND_HAMMER &&
    						((f.instance.curUseToolType = l.CAR_TYPE.GROUND_HAMMER),
    							this.setCurUseTool(l.CAR_TYPE.GROUND_HAMMER),
    							this.initBtnShow(),
    							$.instance.setCurUseTool(l.CAR_TYPE.GROUND_HAMMER),
    							X.instance.changeCarType(l.CAR_TYPE.GROUND_HAMMER))
    						: mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) &&
    						mt.instance.showToolUnlockTip(l.CAR_TYPE.GROUND_HAMMER, 0));
    		}
    		onClickTool5() {
    			this.isDebug && console.log("onClickTool5"),
    				(Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL5, 2, Q.instance.stageTeachStep)) ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					1 == L.instance.playerInfo.tool5
    						? f.instance.curUseToolType != l.CAR_TYPE.FORKLIFT &&
    						((f.instance.curUseToolType = l.CAR_TYPE.FORKLIFT),
    							this.setCurUseTool(l.CAR_TYPE.FORKLIFT),
    							this.initBtnShow(),
    							$.instance.setCurUseTool(l.CAR_TYPE.FORKLIFT),
    							X.instance.changeCarType(l.CAR_TYPE.FORKLIFT))
    						: mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) &&
    						mt.instance.showToolUnlockTip(l.CAR_TYPE.FORKLIFT, 0));
    		}
    	}
    	class Q extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.waitTime = 0),
    				(this.curStep = 0),
    				(this.taskTipPosX = 0),
    				(this.taskTipPosY = 0),
    				(this.nextStepTime = 5),
    				(this.isShowTeachInStage = !1),
    				(this.stageTeachStep = 0),
    				(this.isShowingTeach = !1),
    				(this.teach1Msgs = [
    					"按住<油门键>可以让挖掘机前进，我们来试试，走到前方目标地点吧。",
    					"",
    					"按住<倒车键>可以让挖掘机向后行驶，我们把车倒回目标地点吧。",
    					"",
    					"方向键<左右>可以控制转弯，按住<刹车键>可以让车停下来。",
    					"接下来我们去第2个目标地点吧，他就在前方。",
    					"点击<继续任务>，让我们继续下一部分的学习。",
    				]),
    				(this.teach2Msgs = [
    					"<左旋>与<右旋> 按钮，可以控制机械臂左右摆动。",
    					"<张开>与<闭合> 按钮，可以控制<挖斗>的张开和闭合。",
    					"<抬起>与<放下> 按钮，可以控制机械臂上下转动。",
    					"下面让我们来挖掘第一铲土吧。",
    					"请选择继续游戏。接下来的内容更精彩。",
    				]),
    				(this.teach3Msgs = [
    					"接下来让我们将土装进车里吧。",
    					"按住机械臂方向键，调整机械臂位置。",
    					"操作小机械臂，调整正确的位置。",
    					"操作大机械臂，调整到车斗上方倾倒沙土。",
    					"下面让我们将土装进车里吧。",
    					"教学告一段落，让我们继续吧！",
    				]),
    				(this.teach4Msgs = [
    					"当前任务不能用 挖斗 完成，我们点击这里查看下任务说明",
    					"看来需要更换 钳爪 才能完成任务。",
    					"点击这里，打开工具栏",
    					"我们把 挖斗 切换成 钳爪。 点击钳爪。",
    					"切换成功，让我们开始伐木。",
    				]),
    				(this.teach5Msgs = ["点击<任务按钮>可以查看闯关要求，要切记噢。"]);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Q()), this._instance.init(), this._instance);
    		}
    		init() { }
    		isCanTouch(e, t, s) {
    			if (0 != L.instance.playerInfo.teachStage) {
    				if (Ie.instance.curStageIndex > 100) {
    					let i = !1;
    					switch (e) {
    						case l.BTN_TYPE.BTN_TYPE_HOME:
    						case l.BTN_TYPE.BTN_TYPE_SETTING:
    						case l.BTN_TYPE.BTN_TYPE_RESET:
    						case l.BTN_TYPE.BTN_TYPE_STAGE:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    										case 6:
    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_MISSION:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    											i = !0;
    											break;

    										case 2:
    										case 3:
    										case 4:
    										case 5:
    										case 6:
    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_UP:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    											i = !1;
    											break;

    										case 2:
    											i = !0;
    											break;

    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    											break;

    										case 6:
    											i = !0;
    											break;

    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_DOWN:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    											i = !1;
    											break;

    										case 4:
    											i = !0;
    											break;

    										case 5:
    											i = !1;
    											break;

    										case 6:
    											i = !0;
    											break;

    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_STOP:
    						case l.BTN_TYPE.BTN_TYPE_LEFT:
    						case l.BTN_TYPE.BTN_TYPE_RIGHT:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    											break;

    										case 6:
    											i = !0;
    											break;

    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_SCREEN:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    											break;

    										case 6:
    											i = !0;
    											break;

    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    											i = !1;
    									}
    									break;

    								case 3:
    									switch (s) {
    										case 1:
    											i = !0;
    											break;

    										case 2:
    										case 3:
    										case 4:
    										case 5:
    										case 6:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_CONTROL1:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    										case 6:
    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    									switch (s) {
    										case 1:
    											i = !0;
    											break;

    										case 2:
    										case 3:
    											i = !1;
    											break;

    										case 4:
    											i = !0;
    											break;

    										case 5:
    											i = !1;
    									}
    									break;

    								case 3:
    									switch (s) {
    										case 1:
    											i = !1;
    											break;

    										case 2:
    											i = !0;
    											break;

    										case 3:
    										case 4:
    											i = !1;
    											break;

    										case 5:
    											i = !0;
    											break;

    										case 6:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_CONTROL2_1:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    										case 6:
    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    									switch (s) {
    										case 1:
    											i = !1;
    											break;

    										case 2:
    											i = !0;
    											break;

    										case 3:
    											i = !1;
    											break;

    										case 4:
    											i = !0;
    											break;

    										case 5:
    											i = !1;
    									}
    									break;

    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    											i = !1;
    											break;

    										case 3:
    											i = !0;
    											break;

    										case 4:
    											i = !1;
    											break;

    										case 5:
    											i = !0;
    											break;

    										case 6:
    											i = !1;
    									}
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_CONTROL2_2:
    							switch (t) {
    								case 1:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    										case 4:
    										case 5:
    										case 6:
    										case 7:
    										case 8:
    										case 9:
    											i = !1;
    									}
    									break;

    								case 2:
    									switch (s) {
    										case 1:
    										case 2:
    											i = !1;
    											break;

    										case 3:
    										case 4:
    											i = !0;
    											break;

    										case 5:
    											i = !1;
    									}
    									break;

    								case 3:
    									switch (s) {
    										case 1:
    										case 2:
    										case 3:
    											i = !1;
    											break;

    										case 4:
    										case 5:
    											i = !0;
    											break;

    										case 6:
    											i = !1;
    									}
    							}
    					}
    					return i;
    				}
    				return !0;
    			}
    			if (2 == t && 2 == Ie.instance.curStageIndex) {
    				if (this.isShowTeachInStage) {
    					let t = !1;
    					switch (e) {
    						case l.BTN_TYPE.BTN_TYPE_HOME:
    						case l.BTN_TYPE.BTN_TYPE_SETTING:
    						case l.BTN_TYPE.BTN_TYPE_RESET:
    						case l.BTN_TYPE.BTN_TYPE_STAGE:
    							switch (s) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_MISSION:
    							switch (s) {
    								case 1:
    									t = !0;
    									break;

    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_UP:
    							switch (s) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    									t = !1;
    									break;

    								case 7:
    								case 8:
    									t = !0;
    									break;

    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_DOWN:
    							switch (s) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    									t = !1;
    									break;

    								case 5:
    									t = !0;
    									break;

    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_STOP:
    							switch (s) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    									t = !1;
    									break;

    								case 6:
    									t = !0;
    									break;

    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_LEFT:
    						case l.BTN_TYPE.BTN_TYPE_RIGHT:
    							switch (s) {
    								case 1:
    								case 2:
    								case 3:
    									t = !1;
    									break;

    								case 4:
    									t = !0;
    									break;

    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_SCREEN:
    							switch (s) {
    								case 1:
    								case 2:
    									t = !1;
    									break;

    								case 3:
    									t = !0;
    									break;

    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_CONTROL1:
    						case l.BTN_TYPE.BTN_TYPE_CONTROL2_1:
    						case l.BTN_TYPE.BTN_TYPE_CONTROL2_2:
    							switch (s) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    									t = !1;
    									break;

    								case 3:
    									t = !0;
    									break;

    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL1:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL2:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    								case 3:
    									t = !1;
    									break;

    								case 4:
    									t = !0;
    									break;

    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL3:
    						case l.BTN_TYPE.BTN_TYPE_TOOL4:
    						case l.BTN_TYPE.BTN_TYPE_TOOL5:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL_CLOSE:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    									t = !1;
    									break;

    								case 5:
    									t = !0;
    									break;

    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL_BLACK:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    								case 3:
    								case 4:
    								case 5:
    								case 6:
    								case 7:
    								case 8:
    								case 9:
    									t = !1;
    							}
    					}
    					return t;
    				}
    				return !0;
    			}
    			if (2 == t && 2 == Ie.instance.curStageIndex) {
    				if (this.isShowTeachInStage) {
    					let t = !1;
    					switch (e) {
    						case l.BTN_TYPE.BTN_TYPE_HOME:
    						case l.BTN_TYPE.BTN_TYPE_SETTING:
    						case l.BTN_TYPE.BTN_TYPE_RESET:
    						case l.BTN_TYPE.BTN_TYPE_STAGE:
    							switch (s) {
    								case 1:
    								case 2:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_MISSION:
    							switch (s) {
    								case 1:
    									t = !0;
    									break;

    								case 2:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_UP:
    						case l.BTN_TYPE.BTN_TYPE_DOWN:
    						case l.BTN_TYPE.BTN_TYPE_STOP:
    						case l.BTN_TYPE.BTN_TYPE_LEFT:
    						case l.BTN_TYPE.BTN_TYPE_RIGHT:
    						case l.BTN_TYPE.BTN_TYPE_SCREEN:
    						case l.BTN_TYPE.BTN_TYPE_CONTROL1:
    						case l.BTN_TYPE.BTN_TYPE_CONTROL2_1:
    						case l.BTN_TYPE.BTN_TYPE_CONTROL2_2:
    							switch (s) {
    								case 1:
    								case 2:
    									t = !1;
    							}
    							break;

    						case l.BTN_TYPE.BTN_TYPE_TOOL:
    						case l.BTN_TYPE.BTN_TYPE_TOOL1:
    						case l.BTN_TYPE.BTN_TYPE_TOOL2:
    						case l.BTN_TYPE.BTN_TYPE_TOOL3:
    						case l.BTN_TYPE.BTN_TYPE_TOOL4:
    						case l.BTN_TYPE.BTN_TYPE_TOOL5:
    						case l.BTN_TYPE.BTN_TYPE_TOOL_CLOSE:
    						case l.BTN_TYPE.BTN_TYPE_TOOL_BLACK:
    							switch ((console.log("teachStep == " + s), s)) {
    								case 1:
    								case 2:
    									t = !1;
    							}
    					}
    					return t;
    				}
    				return !0;
    			}
    			return !0;
    		}
    		showTeach(e, t) {
    			switch (
    			(this.isDebug &&
    				(console.log("showTeach == teachStage == " + e), console.log("showTeach == teachStep == " + t)),
    				e)
    			) {
    				case 1:
    					switch (t) {
    						case 1:
    							B.ShuFenReport_guide("lost003", 1),
    								$.instance.showBtnByType(l.BTN_TYPE.BTN_TYPE_UP),
    								k.instance.showTeachHand1(!1, 0, 0, 0),
    								k.instance.showHand(!0),
    								k.instance.showTeachHand(
    									!0,
    									1,
    									$.instance.getUpBtn().x + $.instance.getUpBtn().width / 2,
    									$.instance.getUpBtn().y + $.instance.getUpBtn().height / 2
    								),
    								k.instance.showTeachMsg(!0, this.teach1Msgs[t - 1], 50, 500),
    								Laya.SoundManager.playSound("res/sound/n1.mp3", 1, Laya.Handler.create(this, this.soundN1Complete));
    							break;

    						case 2:
    							B.ShuFenReport_guide("lost004", 1),
    								k.instance.showTeachHand1(!1, 0, 0, 0),
    								k.instance.showHand(!1),
    								k.instance.showTeachHand(
    									!0,
    									1,
    									$.instance.getUpBtn().x + $.instance.getUpBtn().width / 2,
    									$.instance.getUpBtn().y + $.instance.getUpBtn().height / 2
    								),
    								k.instance.showTeachMsg(!1, "", 0, 0),
    								Laya.SoundManager.playSound("res/sound/n2.mp3", 1, Laya.Handler.create(this, this.soundN2Complete));
    							break;

    						case 3:
    							B.ShuFenReport_guide("lost004", 2),
    								B.ShuFenReport_guide("lost005", 1),
    								$.instance.showBtnByType(l.BTN_TYPE.BTN_TYPE_DOWN),
    								k.instance.showTeachHand1(!1, 0, 0, 0),
    								k.instance.showHand(!0),
    								k.instance.showTeachHand(
    									!0,
    									1,
    									$.instance.getDownBtn().x + $.instance.getDownBtn().width / 2,
    									$.instance.getDownBtn().y + $.instance.getDownBtn().height / 2
    								),
    								k.instance.showTeachMsg(!0, this.teach1Msgs[t - 1], 50, 500),
    								Laya.SoundManager.playSound("res/sound/n3.mp3", 1, Laya.Handler.create(this, this.soundN3Complete));
    							break;

    						case 4:
    							B.ShuFenReport_guide("lost006", 1),
    								k.instance.showTeachHand1(!1, 0, 0, 0),
    								k.instance.showHand(!1),
    								k.instance.showTeachHand(
    									!0,
    									1,
    									$.instance.getDownBtn().x + $.instance.getDownBtn().width / 2,
    									$.instance.getDownBtn().y + $.instance.getDownBtn().height / 2
    								),
    								k.instance.showTeachMsg(!1, "", 0, 0);
    							break;

    						case 5:
    							B.ShuFenReport_guide("lost006", 2),
    								$.instance.showBtnByType(l.BTN_TYPE.BTN_TYPE_LEFT),
    								$.instance.showBtnByType(l.BTN_TYPE.BTN_TYPE_RIGHT),
    								$.instance.showBtnByType(l.BTN_TYPE.BTN_TYPE_STOP),
    								k.instance.showHand1(!0),
    								k.instance.showTeachHand1(
    									!0,
    									4,
    									$.instance.getLeftBtn().x + $.instance.getLeftBtn().width / 2,
    									$.instance.getLeftBtn().y + $.instance.getLeftBtn().height / 2
    								),
    								k.instance.showHand(!0),
    								k.instance.showTeachHand(
    									!0,
    									4,
    									$.instance.getStopBtn().x + $.instance.getStopBtn().width / 2,
    									$.instance.getStopBtn().y + $.instance.getStopBtn().height / 2
    								),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach1Msgs[t - 1],
    									$.instance.getLeftBtn().x,
    									$.instance.getLeftBtn().y - 500
    								),
    								Laya.SoundManager.playSound("res/sound/n4.mp3", 1, Laya.Handler.create(this, this.soundN4Complete));
    							break;

    						case 6:
    							B.ShuFenReport_guide("lost007", 1),
    								k.instance.showTeachHand1(!1, 0, 0, 0),
    								k.instance.showTeachHand(!1, 0, 0, 0),
    								k.instance.showTeachMsg(!1, "", 0, 0),
    								Laya.SoundManager.playSound("res/sound/n5.mp3", 1, Laya.Handler.create(this, this.soundN5Complete)),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach1Msgs[t - 1],
    									$.instance.getLeftBtn().x,
    									$.instance.getLeftBtn().y - 500
    								);
    							break;

    						case 7:
    							B.ShuFenReport_guide("lost007", 2),
    								B.ShuFenReport_guide("lost008", 1),
    								k.instance.showHand(!0),
    								k.instance.showTeachHand(!0, 1, R.instance.getCloseBtnX(), R.instance.getCloseBtnY()),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach1Msgs[t - 1],
    									R.instance.getCloseBtnX() - 1e3,
    									R.instance.getCloseBtnY() - 400
    								),
    								Laya.SoundManager.playSound("res/sound/n10.mp3");
    					}
    					break;

    				case 2:
    					switch (t) {
    						case 1:
    							B.ShuFenReport_guide("lost008", 2),
    								B.ShuFenReport_guide("lost009", 1),
    								k.instance.showTeachHandMove(
    									!0,
    									1,
    									$.instance.getControl2().x + $.instance.getControl2().width / 2,
    									$.instance.getControl2().y + $.instance.getControl2().height / 2
    								),
    								k.instance.showTeachMsg(!0, this.teach2Msgs[t - 1], 50, Laya.stage.height - 440),
    								Laya.SoundManager.playSound("res/sound/n6.mp3", 1, Laya.Handler.create(this, this.soundN6Complete));
    							break;

    						case 2:
    							B.ShuFenReport_guide("lost009", 2),
    								B.ShuFenReport_guide("lost010", 1),
    								k.instance.showTeachHandMove(
    									!0,
    									1,
    									$.instance.getControl1().x + $.instance.getControl1().width / 2,
    									$.instance.getControl1().y + $.instance.getControl1().height / 2
    								),
    								k.instance.showTeachMsg(!0, this.teach2Msgs[t - 1], Laya.stage.width - 852, Laya.stage.height - 440),
    								Laya.SoundManager.playSound("res/sound/n8.mp3", 1, Laya.Handler.create(this, this.soundN7Complete));
    							break;

    						case 3:
    							B.ShuFenReport_guide("lost010", 2),
    								B.ShuFenReport_guide("lost011", 1),
    								Laya.stage.event("setPlayerTeach", [2, 1]),
    								k.instance.showTeachHandMove(
    									!0,
    									2,
    									$.instance.getControl1().x + $.instance.getControl1().width / 2,
    									$.instance.getControl1().y + $.instance.getControl1().height / 2
    								),
    								k.instance.showTeachMsg(!0, this.teach2Msgs[t - 1], Laya.stage.width - 852, Laya.stage.height - 440),
    								Laya.SoundManager.playSound("res/sound/n7.mp3", 1, Laya.Handler.create(this, this.soundN8Complete));
    							break;

    						case 4:
    							B.ShuFenReport_guide("lost011", 2),
    								Laya.stage.event("setPlayerTeach", [2, 1]),
    								this.hideTeach(),
    								(f.instance.isShowDiggerPosSign = !0),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach2Msgs[t - 1],
    									$.instance.getControl1().x - 900,
    									$.instance.getControl1().y - 300
    								),
    								Laya.SoundManager.playSound("res/sound/n11.mp3");
    							break;

    						case 5:
    							B.ShuFenReport_guide("lost012", 1),
    								k.instance.showTeachHand(!0, 1, R.instance.getCloseBtnX(), R.instance.getCloseBtnY()),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach2Msgs[t - 1],
    									R.instance.getCloseBtnX() - 1e3,
    									R.instance.getCloseBtnY() - 400
    								),
    								L.instance.playerInfo.isCompleteTeach || Laya.SoundManager.playSound("res/sound/n12.mp3"),
    								B.ShuFenReport_guide("lost012", 2);
    					}
    					break;

    				case 3:
    					switch (t) {
    						case 1:
    							k.instance.showTeachHand(!0, 1, Q.instance.taskTipPosX, Q.instance.taskTipPosY),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach3Msgs[t - 1],
    									Q.instance.taskTipPosX + 200,
    									Q.instance.taskTipPosY
    								),
    								(this.waitTime = 0),
    								(this.curStep = L.instance.playerInfo.teachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 2:
    							k.instance.showTeachHandMove(
    								!0,
    								1,
    								$.instance.getControl2().x + $.instance.getControl2().width / 2,
    								$.instance.getControl2().y + $.instance.getControl2().height / 2
    							),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach3Msgs[t - 1],
    									$.instance.getControl2().x + 300,
    									$.instance.getControl2().y - 100
    								),
    								(this.waitTime = 0),
    								(this.curStep = L.instance.playerInfo.teachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 3:
    							k.instance.showTeachHandMove(
    								!0,
    								1,
    								$.instance.getControl1().x + $.instance.getControl1().width / 2,
    								$.instance.getControl1().y + $.instance.getControl1().height / 2
    							),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach3Msgs[t - 1],
    									$.instance.getControl1().x - 600,
    									$.instance.getControl1().y - 100
    								),
    								(this.waitTime = 0),
    								(this.curStep = L.instance.playerInfo.teachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 4:
    							Laya.stage.event("setPlayerTeach", [2, 1]),
    								k.instance.showTeachHandMove(
    									!0,
    									2,
    									$.instance.getControl1().x + $.instance.getControl1().width / 2,
    									$.instance.getControl1().y + $.instance.getControl1().height / 2
    								),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach3Msgs[t - 1],
    									$.instance.getControl1().x - 600,
    									$.instance.getControl1().y - 100
    								),
    								(this.waitTime = 0),
    								(this.curStep = L.instance.playerInfo.teachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 5:
    							Laya.stage.event("setPlayerTeach", [2, 1]),
    								this.hideTeach(),
    								(f.instance.isShowPlacePosSign = !0),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach3Msgs[t - 1],
    									Q.instance.taskTipPosX + 200,
    									Q.instance.taskTipPosY
    								),
    								(this.waitTime = 0),
    								(this.curStep = L.instance.playerInfo.teachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 6:
    							k.instance.showTeachHand(!0, 1, R.instance.getCloseBtnX(), R.instance.getCloseBtnY()),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach3Msgs[t - 1],
    									R.instance.getCloseBtnX() - 800,
    									R.instance.getCloseBtnY() - 50
    								),
    								(this.waitTime = 0),
    								(this.curStep = L.instance.playerInfo.teachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    					}
    					break;

    				case 4:
    					switch (t) {
    						case 1:
    							k.instance.showTeachHand(
    								!0,
    								1,
    								$.instance.getMissionBtn().x + $.instance.getMissionBtn().width / 2,
    								$.instance.getMissionBtn().y + $.instance.getMissionBtn().height / 2
    							),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach4Msgs[t - 1],
    									$.instance.getMissionBtn().x + 200,
    									$.instance.getMissionBtn().y + 200
    								),
    								(this.waitTime = 0),
    								(this.curStep = this.stageTeachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 2:
    							mt.uiStates[mt.uiStates.length - 1] != l.UI_STATE.UI_STATE_MISSION
    								? mt.instance.pushMenu(l.UI_STATE.UI_STATE_MISSION) && mt.instance.showMissionMenu()
    								: (k.instance.showTeachHand(!0, 1, ke.instance.getCloseBtnX(), ke.instance.getCloseBtnY()),
    									k.instance.showTeachMsg(
    										!0,
    										this.teach4Msgs[t - 1],
    										ke.instance.getCloseBtnX() - 900,
    										ke.instance.getCloseBtnY() - 600
    									)),
    								(this.waitTime = 0),
    								(this.curStep = this.stageTeachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 3:
    							this.isDebug &&
    								(console.log("gameLogic.instance.isPlayerUpdate == " + f.instance.isPlayerUpdate),
    									console.log("TeachManage.instance.taskTipPosX == " + Q.instance.taskTipPosX),
    									console.log("TeachManage.instance.taskTipPosY == " + Q.instance.taskTipPosY)),
    								mt.uiStates[mt.uiStates.length - 1] == l.UI_STATE.UI_STATE_MISSION
    									? ke.instance.onClickClose()
    									: (k.instance.showTeachHand(
    										!0,
    										3,
    										$.instance.getToolBtn().x,
    										$.instance.getToolBtn().y - $.instance.getToolBtn().width / 2
    									),
    										k.instance.showTeachMsg(
    											!0,
    											this.teach4Msgs[t - 1],
    											$.instance.getToolBtn().x - 900,
    											$.instance.getToolBtn().y - 600
    										),
    										(this.waitTime = 0),
    										(this.curStep = this.stageTeachStep),
    										Laya.timer.loop(1e3, this, this.nextStep));
    							break;

    						case 4:
    							mt.uiStates[mt.uiStates.length - 1] != l.UI_STATE.UI_STATE_TOOL_MENU
    								? mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_MENU) && mt.instance.showToolMenu()
    								: (k.instance.showTeachHand(!0, 3, Z.instance.getTool2BtnX(), Z.instance.getTool2BtnY()),
    									k.instance.showTeachMsg(
    										!0,
    										this.teach4Msgs[t - 1],
    										Z.instance.getTool2BtnX() - 900,
    										Z.instance.getTool2BtnY() - 400
    									)),
    								(this.waitTime = 0),
    								(this.curStep = this.stageTeachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    							break;

    						case 5:
    							k.instance.showTeachHand(!0, 3, Z.instance.getCloseBtnX(), Z.instance.getCloseBtnY()),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach4Msgs[t - 1],
    									Z.instance.getCloseBtnX() - 900,
    									Z.instance.getCloseBtnY() - 400
    								),
    								(this.waitTime = 0),
    								(this.curStep = this.stageTeachStep),
    								Laya.timer.loop(1e3, this, this.nextStep);
    					}
    					break;

    				case 5:
    					switch (t) {
    						case 1:
    							k.instance.showTeachHand1(!1, 0, 0, 0),
    								k.instance.showTeachHand(
    									!0,
    									1,
    									$.instance.getMissionBtn().x + $.instance.getMissionBtn().width / 2,
    									$.instance.getMissionBtn().y + $.instance.getMissionBtn().height / 2
    								),
    								k.instance.showTeachMsg(
    									!0,
    									this.teach5Msgs[t - 1],
    									$.instance.getMissionBtn().x + 200,
    									$.instance.getMissionBtn().y + 200
    								),
    								Laya.SoundManager.playSound("res/sound/n9.mp3");
    					}
    			}
    		}
    		soundN1Complete() {
    			console.log("soundN1Complete"),
    				this.isShowingTeach &&
    				1 == L.instance.playerInfo.teachStep &&
    				((L.instance.playerInfo.teachStep = 2),
    					B.ShuFenReport_guide("lost003", 2),
    					L.instance.savePlayerInfoToLocalCache(),
    					this.stopNextStep(),
    					this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep));
    		}
    		soundN2Complete() {
    			console.log("soundN2Complete");
    		}
    		soundN3Complete() {
    			console.log("soundN3Complete"),
    				console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep),
    				this.isShowingTeach &&
    				3 == L.instance.playerInfo.teachStep &&
    				((L.instance.playerInfo.teachStep = 4),
    					L.instance.savePlayerInfoToLocalCache(),
    					B.ShuFenReport_guide("lost005", 2),
    					this.stopNextStep(),
    					this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep));
    		}
    		soundN4Complete() {
    			console.log("soundN4Complete"),
    				console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep),
    				this.isShowingTeach &&
    				5 == L.instance.playerInfo.teachStep &&
    				((L.instance.playerInfo.teachStep = 6),
    					L.instance.savePlayerInfoToLocalCache(),
    					this.stopNextStep(),
    					this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep));
    		}
    		soundN5Complete() {
    			console.log("soundN5Complete"),
    				console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep);
    		}
    		soundN6Complete() {
    			console.log("soundN6Complete"),
    				console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep),
    				this.isShowingTeach &&
    				(Laya.stage.event("setPlayerTeach", [2, 1]),
    					(L.instance.playerInfo.teachStep = 2),
    					L.instance.savePlayerInfoToLocalCache(),
    					k.instance.showTeachHand(!1, 0, 0, 0),
    					k.instance.showTeachMsg(!1, "", 0, 0),
    					f.instance.isPlayArmPushSound &&
    					((f.instance.isPlayArmPushSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    					f.instance.isPlayArmRotateSound &&
    					((f.instance.isPlayArmRotateSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    					f.instance.isPlayArmAutoSound &&
    					((f.instance.isPlayArmAutoSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    					this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep));
    		}
    		soundN7Complete() {
    			console.log("soundN7Complete"),
    				console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep),
    				this.isShowingTeach &&
    				(Laya.stage.event("setPlayerTeach", [2, 1]),
    					(L.instance.playerInfo.teachStep = 3),
    					L.instance.savePlayerInfoToLocalCache(),
    					k.instance.showTeachHand(!1, 0, 0, 0),
    					k.instance.showTeachMsg(!1, "", 0, 0),
    					f.instance.isPlayArmPushSound &&
    					((f.instance.isPlayArmPushSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    					f.instance.isPlayArmRotateSound &&
    					((f.instance.isPlayArmRotateSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    					f.instance.isPlayArmAutoSound &&
    					((f.instance.isPlayArmAutoSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    					this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep));
    		}
    		soundN8Complete() {
    			console.log("soundN7Complete"),
    				console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep),
    				this.isShowingTeach &&
    				(Laya.stage.event("setPlayerTeach", [2, 1]),
    					(L.instance.playerInfo.teachStep = 4),
    					L.instance.savePlayerInfoToLocalCache(),
    					k.instance.showTeachHand(!1, 0, 0, 0),
    					k.instance.showTeachMsg(!1, "", 0, 0),
    					f.instance.isPlayArmPushSound &&
    					((f.instance.isPlayArmPushSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    					f.instance.isPlayArmRotateSound &&
    					((f.instance.isPlayArmRotateSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    					f.instance.isPlayArmAutoSound &&
    					((f.instance.isPlayArmAutoSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    					this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep));
    		}
    		hideTeach() {
    			k.instance.showTeachHand(!1, 0, 0, 0), k.instance.showTeachMsg(!1, "", 0, 0);
    		}
    		stopNextStep() {
    			this.isDebug && console.log("stopNextStep"), Laya.timer.clear(this, this.nextStep);
    		}
    		nextStep() {
    			this.isDebug &&
    				(console.log("nextStep"),
    					console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    					console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep)),
    				Ie.instance.curStageIndex > 100
    					? (2 == L.instance.playerInfo.teachStage && 5 == this.nextStepTime && (this.nextStepTime = 3),
    						(this.waitTime += 1),
    						this.waitTime >= this.nextStepTime &&
    						(Laya.timer.clear(this, this.nextStep),
    							this.curStep == L.instance.playerInfo.teachStep &&
    							(2 == L.instance.playerInfo.teachStage && 1 == L.instance.playerInfo.teachStep
    								? (Laya.stage.event("setPlayerTeach", [2, 1]),
    									(L.instance.playerInfo.teachStep = 2),
    									L.instance.savePlayerInfoToLocalCache(),
    									k.instance.showTeachHand(!1, 0, 0, 0),
    									k.instance.showTeachMsg(!1, "", 0, 0),
    									f.instance.isPlayArmPushSound &&
    									((f.instance.isPlayArmPushSound = !1),
    										L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    									f.instance.isPlayArmRotateSound &&
    									((f.instance.isPlayArmRotateSound = !1),
    										L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    									f.instance.isPlayArmAutoSound &&
    									((f.instance.isPlayArmAutoSound = !1),
    										L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    									this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    								: 2 == L.instance.playerInfo.teachStage && 2 == L.instance.playerInfo.teachStep
    									? (Laya.stage.event("setPlayerTeach", [2, 1]),
    										(L.instance.playerInfo.teachStep = 3),
    										L.instance.savePlayerInfoToLocalCache(),
    										k.instance.showTeachHand(!1, 0, 0, 0),
    										k.instance.showTeachMsg(!1, "", 0, 0),
    										f.instance.isPlayArmPushSound &&
    										((f.instance.isPlayArmPushSound = !1),
    											L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    										f.instance.isPlayArmRotateSound &&
    										((f.instance.isPlayArmRotateSound = !1),
    											L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    										f.instance.isPlayArmAutoSound &&
    										((f.instance.isPlayArmAutoSound = !1),
    											L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    										this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    									: 2 == L.instance.playerInfo.teachStage && 3 == L.instance.playerInfo.teachStep
    										? (Laya.stage.event("setPlayerTeach", [2, 1]),
    											(L.instance.playerInfo.teachStep = 4),
    											L.instance.savePlayerInfoToLocalCache(),
    											k.instance.showTeachHand(!1, 0, 0, 0),
    											k.instance.showTeachMsg(!1, "", 0, 0),
    											f.instance.isPlayArmPushSound &&
    											((f.instance.isPlayArmPushSound = !1),
    												L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    											f.instance.isPlayArmRotateSound &&
    											((f.instance.isPlayArmRotateSound = !1),
    												L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    											f.instance.isPlayArmAutoSound &&
    											((f.instance.isPlayArmAutoSound = !1),
    												L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    											this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    										: 2 == L.instance.playerInfo.teachStage && 4 == L.instance.playerInfo.teachStep
    											? (Laya.stage.event("setPlayerTeach", [2, 1]),
    												f.instance.isHaveDirtInBucket ||
    												f.instance.isPlayWJJAni ||
    												((f.instance.isPlayWJJAni = !0),
    													$.instance.showControl1(!1),
    													$.instance.showControl2(!1),
    													(f.instance.isShowControl = !1),
    													$.instance.showAllControlKey(!1),
    													X.instance.playDiggingAni()))
    											: 2 == L.instance.playerInfo.teachStage && 5 == L.instance.playerInfo.teachStep
    												? Laya.stage.event("onClickClose")
    												: 3 == L.instance.playerInfo.teachStage && 2 == L.instance.playerInfo.teachStep
    													? (Laya.stage.event("setPlayerTeach", [2, 1]),
    														(L.instance.playerInfo.teachStep = 3),
    														L.instance.savePlayerInfoToLocalCache(),
    														k.instance.showTeachHand(!1, 0, 0, 0),
    														k.instance.showTeachMsg(!1, "", 0, 0),
    														f.instance.isPlayArmPushSound &&
    														((f.instance.isPlayArmPushSound = !1),
    															L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    														f.instance.isPlayArmRotateSound &&
    														((f.instance.isPlayArmRotateSound = !1),
    															L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    														f.instance.isPlayArmAutoSound &&
    														((f.instance.isPlayArmAutoSound = !1),
    															L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    														this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    													: 3 == L.instance.playerInfo.teachStage && 3 == L.instance.playerInfo.teachStep
    														? (Laya.stage.event("setPlayerTeach", [2, 1]),
    															(L.instance.playerInfo.teachStep = 4),
    															L.instance.savePlayerInfoToLocalCache(),
    															k.instance.showTeachHand(!1, 0, 0, 0),
    															k.instance.showTeachMsg(!1, "", 0, 0),
    															f.instance.isPlayArmPushSound &&
    															((f.instance.isPlayArmPushSound = !1),
    																L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    															f.instance.isPlayArmRotateSound &&
    															((f.instance.isPlayArmRotateSound = !1),
    																L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    															f.instance.isPlayArmAutoSound &&
    															((f.instance.isPlayArmAutoSound = !1),
    																L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    															this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    														: 3 == L.instance.playerInfo.teachStage && 4 == L.instance.playerInfo.teachStep
    															? (Laya.stage.event("setPlayerTeach", [2, 1]),
    																(L.instance.playerInfo.teachStep = 5),
    																L.instance.savePlayerInfoToLocalCache(),
    																k.instance.showTeachHand(!1, 0, 0, 0),
    																k.instance.showTeachMsg(!1, "", 0, 0),
    																f.instance.isPlayArmPushSound &&
    																((f.instance.isPlayArmPushSound = !1),
    																	L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    																f.instance.isPlayArmRotateSound &&
    																((f.instance.isPlayArmRotateSound = !1),
    																	L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    																f.instance.isPlayArmAutoSound &&
    																((f.instance.isPlayArmAutoSound = !1),
    																	L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    																this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    															: 3 == L.instance.playerInfo.teachStage && 5 == L.instance.playerInfo.teachStep
    																? Laya.stage.event("setPlayerTeach", [2, 2])
    																: 3 == L.instance.playerInfo.teachStage && 6 == L.instance.playerInfo.teachStep
    																	? Laya.stage.event("onClickClose")
    																	: (L.instance.playerInfo.teachStage,
    																		(L.instance.playerInfo.teachStep += 1),
    																		L.instance.savePlayerInfoToLocalCache(),
    																		k.instance.showTeachHand(!1, 0, 0, 0),
    																		k.instance.showTeachMsg(!1, "", 0, 0),
    																		this.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep)))))
    					: ((this.waitTime += 1),
    						this.waitTime >= this.nextStepTime &&
    						(Laya.timer.clear(this, this.nextStep),
    							this.curStep == this.stageTeachStep &&
    							(5 == this.stageTeachStep
    								? Z.instance.onClickClose()
    								: 4 == this.stageTeachStep
    									? Z.instance.onClickTool2()
    									: ((this.stageTeachStep += 1),
    										k.instance.showTeachHand(!1, 0, 0, 0),
    										k.instance.showTeachMsg(!1, "", 0, 0),
    										this.showTeach(4, this.stageTeachStep)))));
    		}
    		stopTeachAnoExitTeach() {
    			this.stopNextStep(),
    				this.hideTeach(),
    				(this.isShowingTeach = !1),
    				Laya.SoundManager.stopAllSound(),
    				Laya.stage.event("backToHall");
    		}
    	}
    	class q extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.offsetX = 0),
    				(this.offsetY = 0),
    				(this.handInitPosX = 0),
    				(this.handInitPosY = 0),
    				(this.isPlayLight = !1),
    				(this.playLigth = !1),
    				(this.curPosX = 0),
    				(this.curPosY = 0),
    				(this.curType = 0),
    				(this.tipTime = 0),
    				(this.tipTime1 = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new q()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._light = this._view.getChild("light").asImage),
    				(this._Hand = this._view.getChild("hand").asImage);
    		}
    		showHandTip(e, t, s, i) {
    			if (
    				(this.isDebug &&
    					(console.log("showHandTip"),
    						console.log("isShow == " + e),
    						console.log("type == " + t),
    						console.log("x == " + s),
    						console.log("y == " + i)),
    					(this._view.visible = e),
    					e)
    			) {
    				switch (t) {
    					case 1:
    						this._Hand.setScale(1, 1), (this.offsetX = 50), (this.offsetY = 50);
    						break;

    					case 2:
    						this._Hand.setScale(-1, 1), (this.offsetX = -50), (this.offsetY = 50);
    						break;

    					case 3:
    						this._Hand.setScale(1, -1), (this.offsetX = 50), (this.offsetY = -50);
    						break;

    					case 4:
    						this._Hand.setScale(-1, -1), (this.offsetX = -50), (this.offsetY = -50);
    				}
    				(this.handInitPosX = s),
    					(this.handInitPosY = i),
    					(this._light.x = s),
    					(this._light.y = i),
    					(this._Hand.x = this.handInitPosX + this.offsetX),
    					(this._Hand.y = this.handInitPosY + this.offsetY),
    					this._light.setScale(1.5, 1.5),
    					(this._light.alpha = 0),
    					(this.isPlayLight = !0),
    					(this.playLigth = !1),
    					(this.handTween1 = Laya.Tween.to(
    						this._Hand,
    						{
    							x: this.handInitPosX,
    							y: this.handInitPosY,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.handMoveEnd1),
    						0
    					));
    			} else
    				this.handTween1 && Laya.Tween.clear(this.handTween1),
    					this.handTween2 && Laya.Tween.clear(this.handTween2),
    					this.lightTween1 && Laya.Tween.clear(this.lightTween1),
    					this.lightTween2 && Laya.Tween.clear(this.lightTween2);
    		}
    		handMoveEnd1() {
    			this.handTween1 && Laya.Tween.clear(this.handTween1),
    				(this.handTween2 = Laya.Tween.to(
    					this._Hand,
    					{
    						x: this.handInitPosX + this.offsetX,
    						y: this.handInitPosY + this.offsetY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd2),
    					0
    				)),
    				this.isPlayLight &&
    				(this.playLigth ||
    					((this.playLigth = !0),
    						(this.lightTween1 = Laya.Tween.to(
    							this._light,
    							{
    								scaleX: 1,
    								scaleY: 1,
    								alpha: 1,
    							},
    							500,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.ligthEnd1),
    							0
    						))));
    		}
    		handMoveEnd2() {
    			this.handTween2 && Laya.Tween.clear(this.handTween2),
    				(this.handTween1 = Laya.Tween.to(
    					this._Hand,
    					{
    						x: this.handInitPosX,
    						y: this.handInitPosY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd1),
    					0
    				));
    		}
    		ligthEnd1() {
    			this.handTween1 && Laya.Tween.clear(this.lightTween1),
    				(this.lightTween2 = Laya.Tween.to(
    					this._light,
    					{
    						scaleX: 1.5,
    						scaleY: 1.5,
    						alpha: 0,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd2),
    					0
    				));
    		}
    		ligthEnd2() {
    			this.handTween2 && Laya.Tween.clear(this.lightTween2),
    				(this.lightTween1 = Laya.Tween.to(
    					this._light,
    					{
    						scaleX: 1,
    						scaleY: 1,
    						alpha: 1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd1),
    					0
    				));
    		}
    		showBtnHandTip(e, t, s) {
    			(this.curPosX = t),
    				(this.curPosY = s),
    				(this._view.x = t),
    				(this._view.y = s),
    				(this.curType = e),
    				(this.tipTime = 0),
    				this.showHandTip(!0, e, 100, 100);
    		}
    		startHandTip(e, t, s) {
    			(this.curPosX = t),
    				(this.curPosY = s),
    				(this._view.x = t),
    				(this._view.y = s),
    				(this.curType = e),
    				(this.tipTime = 0),
    				this.showHandTip(!0, e, 100, 100),
    				Laya.timer.loop(1e3, this, this.handTip);
    		}
    		handTip() {
    			(this.tipTime += 1),
    				this.tipTime > 3 &&
    				(Laya.timer.clear(this, this.handTip),
    					(this.tipTime1 = 0),
    					this.showHandTip(!1, 0, 0, 0),
    					Laya.timer.loop(1e3, this, this.nextStartHandTip));
    		}
    		nextStartHandTip() {
    			(this.tipTime1 += 1),
    				this.tipTime1 > 10 &&
    				(Laya.timer.clear(this, this.nextStartHandTip), this.startHandTip(this.curType, this.curPosX, this.curPosY));
    		}
    		stopStartGameTip() {
    			Laya.timer.clear(this, this.handTip),
    				Laya.timer.clear(this, this.nextStartHandTip),
    				this.showHandTip(!1, 0, 0, 0);
    		}
    	}
    	class $ extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curTaskTime = 0),
    				(this.missionTipTime = 0),
    				(this.missionTiptrans = null),
    				(this.isShake = !1),
    				(this.quickWinTime = 0),
    				(this.showQuickWinTime = 0),
    				(this.hideBoxTime = 0),
    				(this.showHideBoxTime = 0),
    				(this.handTipTime = 0),
    				(this.curShowIndex = 0),
    				(this.tipShowTime = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new $()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._allBtn = this._view.getChild("n75").asGroup),
    				(this._stageUI = this._view.getChild("n43").asGroup),
    				(this._stageUI.visible = !1),
    				(this._btnStage = this._view.getChild("n23").asButton),
    				(this._timeUI = this._view.getChild("n41").asGroup),
    				(this._labelTime = this._view.getChild("n40").asLabel),
    				(this._taskProcess = this._view.getChild("n45").asSlider),
    				this._taskProcess.on(fairygui.Events.STATE_CHANGED, this, this.onProcessBarChange),
    				(this._btnHome = this._view.getChild("n46").asButton),
    				(this._btnSetting = this._view.getChild("n15").asButton),
    				(this._btnReset = this._view.getChild("n14").asButton),
    				(this._btnTask = this._view.getChild("n16").asButton),
    				(this._btnStage = this._view.getChild("n23").asButton),
    				(this._btnSelTool = this._view.getChild("n99").asButton),
    				(this._btnSkipTeach = this._view.getChild("n101").asButton),
    				this._btnHome.onClick(this, this.onClickHomeBtn),
    				this._btnSetting.onClick(this, this.onClickSettingBtn),
    				this._btnTask.onClick(this, this.onClickTaskBtn),
    				this._btnReset.onClick(this, this.onClickResetBtn),
    				this._btnStage.onClick(this, this.onClickStageBtn),
    				this._btnSelTool.onClick(this, this.onClickSelToolBtn),
    				this._btnSkipTeach.onClick(this, this.onClickSkipTeachBtn),
    				(this._controlUI1 = this._view.getChild("n27").asGroup),
    				(this._controlUI2 = this._view.getChild("n30").asGroup),
    				(this._controlUI1.visible = !0),
    				(this._controlUI2.visible = !0),
    				(this._slider1 = this._view.getChild("n21").asSlider),
    				(this._slider1.visible = !1),
    				(this._slider1.value = 50),
    				this._slider1.on(fairygui.Events.STATE_CHANGED, this, this.onSlider1Changed),
    				this._slider1.on(Laya.Event.MOUSE_UP, this, this.onSlider1Up),
    				this._slider1.on(Laya.Event.MOUSE_OUT, this, this.onSlider1Out),
    				(this._slider2 = this._view.getChild("n22").asSlider),
    				(this._slider2.visible = !1),
    				(this._slider2.value = 50),
    				this._slider2.on(fairygui.Events.STATE_CHANGED, this, this.onSlider2Changed),
    				this._slider2.on(Laya.Event.MOUSE_UP, this, this.onSlider2Up),
    				this._slider2.on(Laya.Event.MOUSE_OUT, this, this.onSlider2Out),
    				(this._btnLeft = this._view.getChild("n18").asButton),
    				(this._btnRight = this._view.getChild("n19").asButton),
    				(this._btnUp = this._view.getChild("n11").asButton),
    				(this._btnDown = this._view.getChild("n12").asButton),
    				(this._btnStop = this._view.getChild("n13").asButton),
    				this._btnLeft.on(Laya.Event.MOUSE_DOWN, this, this.leftMouseDown),
    				this._btnLeft.on(Laya.Event.MOUSE_UP, this, this.leftMouseUp),
    				this._btnLeft.on(Laya.Event.MOUSE_OUT, this, this.leftMouseOut),
    				this._btnRight.on(Laya.Event.MOUSE_DOWN, this, this.rightMouseDown),
    				this._btnRight.on(Laya.Event.MOUSE_UP, this, this.rightMouseUp),
    				this._btnRight.on(Laya.Event.MOUSE_OUT, this, this.rightMouseOut),
    				this._btnUp.on(Laya.Event.MOUSE_DOWN, this, this.upMouseDown),
    				this._btnUp.on(Laya.Event.MOUSE_UP, this, this.upMouseUp),
    				this._btnUp.on(Laya.Event.MOUSE_OUT, this, this.upMouseOut),
    				this._btnDown.on(Laya.Event.MOUSE_DOWN, this, this.downMouseDown),
    				this._btnDown.on(Laya.Event.MOUSE_UP, this, this.downMouseUp),
    				this._btnDown.on(Laya.Event.MOUSE_OUT, this, this.downMouseOut),
    				this._btnStop.on(Laya.Event.MOUSE_DOWN, this, this.stopMouseDown),
    				this._btnStop.on(Laya.Event.MOUSE_UP, this, this.stopMouseUp),
    				this._btnUp.on(Laya.Event.MOUSE_OUT, this, this.stopMouseOut),
    				(this._joystick = new b(this._view)),
    				this._joystick.on(b.JoystickDown, this, this.onJoystickDown),
    				this._joystick.on(b.JoystickMoving, this, this.onJoystickMoving),
    				this._joystick.on(b.JoystickUp, this, this.onJoystickUp),
    				(this._joystick1 = new I(this._view)),
    				this._joystick1.on(I.JoystickDown, this, this.onJoystick1Down),
    				this._joystick1.on(I.JoystickMoving, this, this.onJoystick1Moving),
    				this._joystick1.on(I.JoystickUp, this, this.onJoystick1Up),
    				(this._leftSign = this._view.getChild("n55").asGroup),
    				(this._rightSign = this._view.getChild("n59").asGroup),
    				(this._downSign = this._view.getChild("n52").asGroup),
    				(this._upSign = this._view.getChild("n71").asGroup),
    				(this._leftSign.visible = !1),
    				(this._rightSign.visible = !1),
    				(this._downSign.visible = !1),
    				(this._upSign.visible = !1),
    				(this._goToTaskSign = this._view.getChild("n62").asGroup),
    				(this._diggerSign = this._view.getChild("n65").asGroup),
    				(this._placeSign = this._view.getChild("n68").asGroup),
    				(this._goToTaskSign.visible = !1),
    				(this._diggerSign.visible = !1),
    				(this._placeSign.visible = !1),
    				(this._diggerLabel = this._view.getChild("n73").asLabel),
    				(this._placeLabel = this._view.getChild("n72").asLabel),
    				(this._fadeImg = this._view.getChild("n76").asImage),
    				(this._fadeImg.visible = !1),
    				(this._missionTip = this._view.getChild("n79").asImage),
    				(this._limitGet = this._view.getChild("n84").asGroup),
    				(this._limitGetLight = this._view.getChild("n83").asImage),
    				(this._btnLimitGet = this._view.getChild("n82").asButton),
    				this._btnLimitGet.onClick(this, this.onClickLimitGet),
    				(this._limitGetTime = this._view.getChild("n85").asLabel),
    				(this._limitTry1 = this._view.getChild("n97").asGroup),
    				(this._btnLimit1 = this._view.getChild("n93").asButton),
    				this._btnLimit1.onClick(this, this.onClickLimit1),
    				(this._limitTry2 = this._view.getChild("n98").asGroup),
    				(this._btnLimit2 = this._view.getChild("n94").asButton),
    				this._btnLimit2.onClick(this, this.onClickLimit2),
    				(this._handTip = this._view.getChild("n92").asCom),
    				q.instance.loadUI(this._handTip),
    				this._view.on(Laya.Event.MOUSE_DOWN, this, this.viewMouseDown),
    				this._view.on(Laya.Event.MOUSE_UP, this, this.viewMouseUp),
    				this._view.on(Laya.Event.MOUSE_OUT, this, this.viewMouseOut),
    				this.initUI(),
    				Gt.instance.ClearCustomAd(!0),
    				Gt.instance.CreateCustomAd(1),
    				Gt.instance.CreateCustomAd(2);
    		}
    		viewMouseDown(e) {
    			console.log("🚀 ~ file: bundle.js:9481 ~ $ ~ viewMouseDown ~ viewMouseDown:");
    			this.isDebug && console.log("viewMouseDown");
    		}
    		viewMouseUp(e) {
    			console.log("🚀 ~ file: bundle.js:9484 ~ $ ~ viewMouseUp ~ viewMouseUp:");
    			this.isDebug && console.log("viewMouseUp"),
    				console.log("e.touchId == " + e.touchId),
    				f.instance.isLeftOut &&
    				f.instance.leftTouchID == e.touchId &&
    				((f.instance.isLeftOut = !1), f.instance.isLeft && (f.instance.isLeft = !1)),
    				f.instance.isRightOut &&
    				f.instance.rightTouchID == e.touchId &&
    				((f.instance.isRightOut = !1), f.instance.isRight && (f.instance.isRight = !1));
    		}
    		viewMouseOut(e) {
    			this.isDebug && console.log("viewMouseOut");
    		}
    		initUI() {
    			Ie.instance.curStageIndex < 100
    				? (3 != l.game_channel && (this.showLimitTry1(!0), this.showLimitTry2(!0)), (this._btnReset.visible = !0))
    				: (this.showLimitTry1(!1), this.showLimitTry2(!1), (this._btnReset.visible = !1)),
    				q.instance.showHandTip(!1, 0, 0, 0);
    		}
    		showLimitTry1(e) {
    			1 == L.instance.carInfo.carDatas[7].state ? (this._limitTry1.visible = !1) : (this._limitTry1.visible = e);
    		}
    		showLimitTry2(e) {
    			1 == L.instance.carInfo.carDatas[5].state ? (this._limitTry2.visible = !1) : (this._limitTry2.visible = e);
    		}
    		getToolBtn() {
    			return this._btnSelTool;
    		}
    		getMissionBtn() {
    			return this._btnTask;
    		}
    		getLeftBtn() {
    			return this._btnLeft;
    		}
    		getRightBtn() {
    			return this._btnRight;
    		}
    		getUpBtn() {
    			return this._btnUp;
    		}
    		getDownBtn() {
    			return this._btnDown;
    		}
    		getStopBtn() {
    			return this._btnStop;
    		}
    		getControl1() {
    			return this._controlUI1;
    		}
    		getControl2() {
    			return this._controlUI2;
    		}
    		onProcessBarChange() {
    			this.isDebug &&
    				(console.log("onProcessBarChange"), console.log("this._taskProcess.value == " + this._taskProcess.value));
    		}
    		onSlider1Changed() {
    			this.isDebug && (console.log("onSlider1Changed"), console.log("this._slider1.value == " + this._slider1.value)),
    				this.checkIsShowHideBox(),
    				this._slider1.value > 50
    					? (f.instance.isTrunLiftArm = 0)
    					: this._slider1.value < 50 && (f.instance.isTrunLiftArm = 1);
    		}
    		onSlider1Up() {
    			this.isDebug && console.log("onSlider1Up"), (this._slider1.value = 50), (f.instance.isTrunLiftArm = -1);
    		}
    		onSlider1Out() {
    			this.isDebug && console.log("onSlider1Out"), (this._slider1.value = 50), (f.instance.isTrunLiftArm = -1);
    		}
    		onSlider2Changed() {
    			this.isDebug && (console.log("onSlider2Changed"), console.log("this._slider2.value == " + this._slider2.value)),
    				this.checkIsShowHideBox(),
    				this._slider2.value > 50
    					? (f.instance.isTrunLiftArm = 0)
    					: this._slider2.value < 50 && (f.instance.isTrunLiftArm = 1);
    		}
    		onSlider2Up() {
    			this.isDebug && console.log("onSlider2Up"), (this._slider2.value = 50), (f.instance.isTrunLiftArm = -1);
    		}
    		onSlider2Out() {
    			this.isDebug && console.log("onSlider2Out"), (this._slider2.value = 50), (f.instance.isTrunLiftArm = -1);
    		}
    		onJoystickDown(e) {
    			if ((this.isDebug && console.log("onJoystickDown"), !f.instance.isAniTouchEnable))
    				if (
    					(this.checkIsShowHideBox(),
    						f.instance.isPlayArmPushSound ||
    						((f.instance.isPlayArmPushSound = !0),
    							L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_05.mp3", 0)),
    						e > -45 && e < 45)
    				) {
    					if (
    						(this.isDebug && console.log("前臂向下"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_1,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_1, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunFrontArm = 0), (f.instance.isTrunBackArm = -1);
    				} else if (e >= 45 && e <= 135) {
    					if (
    						(this.isDebug && console.log("后臂向后"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_2,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_2, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunBackArm = 0), (f.instance.isTrunFrontArm = -1);
    				} else if (e >= -135 && e <= -45) {
    					if (
    						(this.isDebug && console.log("后臂向前"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_2,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_2, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunBackArm = 1), (f.instance.isTrunFrontArm = -1);
    				} else {
    					if (
    						(this.isDebug && console.log("前臂向上"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_1,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_1, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunFrontArm = 1), (f.instance.isTrunBackArm = -1);
    				}
    		}
    		onJoystickMoving(e) {
    			if ((this.isDebug && console.log("degree == " + e), !f.instance.isAniTouchEnable))
    				if (e > -45 && e < 45) {
    					if (
    						(this.isDebug && console.log("前臂向下"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_1,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_1, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunFrontArm = 0), (f.instance.isTrunBackArm = -1);
    				} else if (e >= 45 && e <= 135) {
    					if (
    						(this.isDebug && console.log("后臂向后"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_2,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_2, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunBackArm = 0), (f.instance.isTrunFrontArm = -1);
    				} else if (e >= -135 && e <= -45) {
    					if (
    						(this.isDebug && console.log("后臂向前"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_2,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_2, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunBackArm = 1), (f.instance.isTrunFrontArm = -1);
    				} else {
    					if (
    						(this.isDebug && console.log("前臂向上"),
    							!Q.instance.isCanTouch(
    								l.BTN_TYPE.BTN_TYPE_CONTROL2_1,
    								L.instance.playerInfo.teachStage,
    								L.instance.playerInfo.teachStep
    							))
    					)
    						return;
    					if (
    						Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL2_1, 2, Q.instance.stageTeachStep)
    					)
    						return;
    					(f.instance.isTrunFrontArm = 1), (f.instance.isTrunBackArm = -1);
    				}
    		}
    		onJoystickUp() {
    			this.isDebug && console.log("onJoystickUp"),
    				f.instance.isAniTouchEnable ||
    				((f.instance.isTrunFrontArm = -1),
    					(f.instance.isTrunBackArm = -1),
    					f.instance.isPlayArmPushSound &&
    					((f.instance.isPlayArmPushSound = !1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    					(f.instance.isPlayArmPushSound = !1));
    		}
    		onJoystick1Down(e) {
    			this.isDebug && console.log("onJoystick1Down"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_CONTROL1,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL1, 2, Q.instance.stageTeachStep)) ||
    						(this.checkIsShowHideBox(),
    							f.instance.isPlayArmRotateSound ||
    							((f.instance.isPlayArmRotateSound = !0),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_04.mp3", 0)),
    							(f.instance.isTrunArm = e < 90 && e > -90 ? 1 : 0))));
    		}
    		onJoystick1Moving(e) {
    			this.isDebug && console.log("degree == " + e),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_CONTROL1,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL1, 2, Q.instance.stageTeachStep)) ||
    						(f.instance.isTrunArm = e < 90 && e > -90 ? 1 : 0)));
    		}
    		onJoystick1Up() {
    			this.isDebug && console.log("onJoystick1Up"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_CONTROL1,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_CONTROL1, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.isTrunArm = -1),
    							L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3"),
    							(f.instance.isPlayArmRotateSound = !1))));
    		}
    		onClickHomeBtn() {
    			this.isDebug && console.log("MainScene onClickHomeBtn"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_HOME,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_HOME, 2, Q.instance.stageTeachStep)) ||
    						(Ie.instance.isChallengeLevel()
    							? Ie.instance.curStageIndex < 22 &&
    							(D.SendEvent(
    								"第" + (Ie.instance.curStageIndex - 16) + "关点击返回主界面按钮的人数",
    								6e3 + 2 * (Ie.instance.curStageIndex - 16 - 1) + 1,
    								!0
    							),
    								D.SendEvent(
    									"第" + (Ie.instance.curStageIndex - 16) + "关点击返回主界面按钮的次数",
    									6e3 + 2 * (Ie.instance.curStageIndex - 16 - 1) + 2,
    									!1
    								))
    							: Ie.instance.curStageIndex < 6 &&
    							(D.SendEvent(
    								"第" + Ie.instance.curStageIndex + "关点击返回主界面按钮的人数",
    								6e3 + 2 * (Ie.instance.curStageIndex - 1) + 1,
    								!0
    							),
    								D.SendEvent(
    									"第" + Ie.instance.curStageIndex + "关点击返回主界面按钮的次数",
    									6e3 + 2 * (Ie.instance.curStageIndex - 1) + 2,
    									!1
    								)),
    							L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							mt.instance.showDialogMenu(1, "返回主页将中断当前任务，无法获得任务奖励，确定要返回吗？"))));
    		}
    		onClickSettingBtn() {
    			this.isDebug && console.log("MainScene onClickSettingBtn"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_SETTING,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_SETTING, 2, Q.instance.stageTeachStep)) ||
    						(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_SETTING) && mt.instance.showSettingMenu())));
    		}
    		onClickTaskBtn() {
    			this.isDebug && console.log("MainScene onClickTaskBtn"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_MISSION,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_MISSION, 2, Q.instance.stageTeachStep)) ||
    						(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							2 == Ie.instance.curStageIndex
    								? Q.instance.isShowTeachInStage &&
    								(Q.instance.hideTeach(), 1 == Q.instance.stageTeachStep && (Q.instance.stageTeachStep = 2))
    								: 1 == Ie.instance.curStageIndex &&
    								Q.instance.isShowTeachInStage &&
    								(Q.instance.hideTeach(),
    									Q.instance.stopNextStep(),
    									1 == Q.instance.stageTeachStep && (Q.instance.isShowTeachInStage = !1)),
    							this.showMissionTip(!1),
    							B.ShuFenReport_guide("lost019", 1),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_MISSION) && mt.instance.showMissionMenu())));
    		}
    		onClickResetBtn() {
    			this.isDebug && console.log("MainScene onClickResetBtn"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_RESET,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_RESET, 2, Q.instance.stageTeachStep)) ||
    						(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							Ie.instance.isChallengeLevel()
    								? Ie.instance.curStageIndex < 22 &&
    								(D.SendEvent(
    									"第" + (Ie.instance.curStageIndex - 16) + "关点击重置按钮的人数",
    									5e3 + 2 * (Ie.instance.curStageIndex - 16 - 1) + 1,
    									!0
    								),
    									D.SendEvent(
    										"第" + (Ie.instance.curStageIndex - 16) + "关点击重置按钮的次数",
    										5e3 + 2 * (Ie.instance.curStageIndex - 16 - 1) + 2,
    										!1
    									))
    								: Ie.instance.curStageIndex < 6 &&
    								(D.SendEvent(
    									"第" + Ie.instance.curStageIndex + "关点击重置按钮的人数",
    									5e3 + 2 * (Ie.instance.curStageIndex - 1) + 1,
    									!0
    								),
    									D.SendEvent(
    										"第" + Ie.instance.curStageIndex + "关点击重置按钮的次数",
    										5e3 + 2 * (Ie.instance.curStageIndex - 1) + 2,
    										!1
    									)),
    							Ie.instance.reSetProcess())));
    		}
    		onClickStageBtn() {
    			this.isDebug && console.log("MainScene onClickStageBtn"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_STAGE,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_STAGE, 2, Q.instance.stageTeachStep)) ||
    						(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"))));
    		}
    		onClickSelToolBtn() {
    			this.isDebug && console.log("MainScene onClickSelToolBtn"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_TOOL,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					(console.log("TeachManage.instance.stageTeachStep == " + Q.instance.stageTeachStep),
    						(Q.instance.isShowTeachInStage &&
    							!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_TOOL, 2, Q.instance.stageTeachStep)) ||
    						(2 == Ie.instance.curStageIndex &&
    							Q.instance.isShowTeachInStage &&
    							(Q.instance.hideTeach(), 3 == Q.instance.stageTeachStep && (Q.instance.stageTeachStep = 4)),
    							L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_MENU) && mt.instance.showToolMenu())));
    		}
    		onClickSkipTeachBtn() {
    			this.isDebug && console.log("MainScene onClickSkipTeachBtn"),
    				f.instance.isAniTouchEnable ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    					101 == Ie.instance.curStageIndex
    						? D.SendEvent("玩家在教学1中点击跳过教学次数", 1014, !1)
    						: 102 == Ie.instance.curStageIndex && D.SendEvent("玩家在教学2中点击跳过教学次数", 1015, !1),
    					mt.instance.showDialogMenu(14, "跳过教学将无法获得金币奖励，\n您确定要跳过？"));
    		}
    		onClickLimit1() {
    			this.isDebug && console.log("MainScene onClickLimit1"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_STAGE,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_STAGE, 2, Q.instance.stageTeachStep)) ||
    						(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITTRY) && mt.instance.showLimitTryMenu(8, 1))));
    		}
    		onClickLimit2() {
    			this.isDebug && console.log("MainScene onClickLimit2"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_STAGE,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_STAGE, 2, Q.instance.stageTeachStep)) ||
    						(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITTRY) && mt.instance.showLimitTryMenu(6, 1))));
    		}
    		leftMouseDown(e) {
    			this.isDebug && console.log("MainScene leftMouseDown"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_LEFT,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_LEFT, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.leftTouchID = e.touchId), Gt.instance.VibrateShort(), (f.instance.isLeft = !0))));
    		}
    		leftMouseUp(e) {
    			this.isDebug && console.log("MainScene leftMouseUp"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_LEFT,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_LEFT, 2, Q.instance.stageTeachStep)) ||
    						(f.instance.isLeft = !1)));
    		}
    		leftMouseOut(e) {
    			this.isDebug && console.log("MainScene leftMouseOut"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_LEFT,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_LEFT, 2, Q.instance.stageTeachStep)) ||
    						(f.instance.isLeftOut = !0)));
    		}
    		rightMouseDown(e) {
    			this.isDebug && console.log("MainScene rightMouseDown"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_RIGHT,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_RIGHT, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.rightTouchID = e.touchId), Gt.instance.VibrateShort(), (f.instance.isRight = !0))));
    		}
    		rightMouseUp(e) {
    			this.isDebug && console.log("MainScene rightMouseUp"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_RIGHT,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_RIGHT, 2, Q.instance.stageTeachStep)) ||
    						(f.instance.isRight = !1)));
    		}
    		rightMouseOut(e) {
    			this.isDebug && console.log("MainScene rightMouseOut"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_RIGHT,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_RIGHT, 2, Q.instance.stageTeachStep)) ||
    						(f.instance.isRightOut = !0)));
    		}
    		upMouseDown(e) {
    			if (
    				(this.isDebug && console.log("MainScene upMouseDown"),
    					!f.instance.isAniTouchEnable &&
    					Q.instance.isCanTouch(
    						l.BTN_TYPE.BTN_TYPE_UP,
    						L.instance.playerInfo.teachStage,
    						L.instance.playerInfo.teachStep
    					) &&
    					(!Q.instance.isShowTeachInStage ||
    						Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_UP, 2, Q.instance.stageTeachStep)))
    			) {
    				if (Ie.instance.curStageIndex < 100 && !Tt.instance.isStateRecord)
    					switch (((Tt.instance.isStateRecord = !0), l.game_channel)) {
    						case 4:
    							Gt.instance.startRecord();
    					}
    				Gt.instance.VibrateShort(),
    					console.log("gameLogic.instance.curSpeed == " + f.instance.curSpeed),
    					console.log("gameLogic.instance.isForward == " + f.instance.isForward),
    					console.log("gameLogic.instance.isBackAway == " + f.instance.isBackAway),
    					console.log("gameLogic.instance.isRunFont == " + f.instance.isRunFont),
    					console.log("gameLogic.instance.isPlayerUpdate == " + f.instance.isPlayerUpdate),
    					console.log("gameLogic.instance.isColliderFontStop == " + f.instance.isColliderFontStop),
    					console.log("gameLogic.instance.isColliderBackStop == " + f.instance.isColliderBackStop),
    					0 == f.instance.curSpeed && 0 == f.instance.isForward && 0 == f.instance.isBackAway
    						? ((f.instance.isForward = !0),
    							(f.instance.isBackAway = !1),
    							(f.instance.isRunFont = !0),
    							(f.instance.isRunBack = !1),
    							f.instance.isPlayCarMoveSound ||
    							((f.instance.isPlayCarMoveSound = !0),
    								L.instance.settingInfo.isSound &&
    								(console.log("Laya.Browser.onIOS == " + Laya.Browser.onIOS),
    									Laya.Browser.onIOS
    										? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    										: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))))
    						: f.instance.curSpeed > 0 &&
    						1 == f.instance.isRunFont &&
    						((f.instance.isForward = !0),
    							(f.instance.isBackAway = !1),
    							(f.instance.isRunFont = !0),
    							(f.instance.isRunBack = !1),
    							f.instance.isPlayCarMoveSound ||
    							((f.instance.isPlayCarMoveSound = !0),
    								L.instance.settingInfo.isSound &&
    								(Laya.Browser.onIOS
    									? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    									: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))));
    			}
    		}
    		upMouseUp(e) {
    			this.isDebug && console.log("MainScene upMouseUp"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_UP,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_UP, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.isForward = !1),
    							L.instance.settingInfo.isSound &&
    							(Laya.Browser.onIOS
    								? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    								: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    							(f.instance.isPlayCarMoveSound = !1))));
    		}
    		upMouseOut(e) {
    			this.isDebug && console.log("MainScene upMouseOut"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_UP,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_UP, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.isForward = !1),
    							L.instance.settingInfo.isSound &&
    							(Laya.Browser.onIOS
    								? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    								: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    							(f.instance.isPlayCarMoveSound = !1))));
    		}
    		downMouseDown(e) {
    			this.isDebug && console.log("MainScene downMouseDown"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_DOWN,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_DOWN, 2, Q.instance.stageTeachStep)) ||
    						(Gt.instance.VibrateShort(),
    							0 == f.instance.curSpeed && 0 == f.instance.isForward && 0 == f.instance.isBackAway
    								? ((f.instance.isBackAway = !0),
    									(f.instance.isForward = !1),
    									(f.instance.isRunFont = !1),
    									(f.instance.isRunBack = !0),
    									f.instance.isPlayCarMoveSound ||
    									((f.instance.isPlayCarMoveSound = !0),
    										L.instance.settingInfo.isSound &&
    										(Laya.Browser.onIOS
    											? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    											: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0))))
    								: f.instance.curSpeed > 0 &&
    								1 == f.instance.isRunBack &&
    								((f.instance.isBackAway = !0),
    									(f.instance.isForward = !1),
    									(f.instance.isRunFont = !1),
    									(f.instance.isRunBack = !0),
    									f.instance.isPlayCarMoveSound ||
    									((f.instance.isPlayCarMoveSound = !0),
    										L.instance.settingInfo.isSound &&
    										(Laya.Browser.onIOS
    											? Laya.SoundManager.playSound("res/sound/M_game_01.wav", 0)
    											: Laya.SoundManager.playSound("res/sound/M_game_01.mp3", 0)))))));
    		}
    		downMouseUp(e) {
    			this.isDebug && console.log("MainScene downMouseUp"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_DOWN,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_DOWN, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.isBackAway = !1),
    							L.instance.settingInfo.isSound &&
    							(Laya.Browser.onIOS
    								? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    								: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    							(f.instance.isPlayCarMoveSound = !1))));
    		}
    		downMouseOut(e) {
    			this.isDebug && console.log("MainScene downMouseOut"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_DOWN,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_DOWN, 2, Q.instance.stageTeachStep)) ||
    						((f.instance.isBackAway = !1),
    							L.instance.settingInfo.isSound &&
    							(Laya.Browser.onIOS
    								? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    								: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    							(f.instance.isPlayCarMoveSound = !1))));
    		}
    		stopMouseDown(e) {
    			this.isDebug && console.log("MainScene stopMouseDown"),
    				f.instance.isAniTouchEnable ||
    				(Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_STOP,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    					((Q.instance.isShowTeachInStage &&
    						!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_STOP, 2, Q.instance.stageTeachStep)) ||
    						(Gt.instance.VibrateShort(),
    							f.instance.curSpeed > 0 &&
    							L.instance.settingInfo.isSound &&
    							Laya.SoundManager.playSound("res/sound/M_game_10.mp3"),
    							(f.instance.isBrake = !0))));
    		}
    		stopMouseUp(e) {
    			this.isDebug && console.log("MainScene stopMouseUp"),
    				Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_STOP,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    				((Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_STOP, 2, Q.instance.stageTeachStep)) ||
    					f.instance.isAniTouchEnable ||
    					(f.instance.isBrake = !1));
    		}
    		stopMouseOut(e) {
    			this.isDebug && console.log("MainScene stopMouseOut"),
    				Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_STOP,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    				((Q.instance.isShowTeachInStage &&
    					!Q.instance.isCanTouch(l.BTN_TYPE.BTN_TYPE_STOP, 2, Q.instance.stageTeachStep)) ||
    					f.instance.isAniTouchEnable ||
    					(f.instance.isBrake = !1));
    		}
    		showControl1(e) {
    			this.isDebug && console.log("showControl1 == isShow == " + e), (this._controlUI1.visible = e);
    		}
    		showControl2(e) {
    			this.isDebug && console.log("showControl2 == isShow == " + e), (this._controlUI2.visible = e);
    		}
    		showSlider1(e) {
    			this.isDebug && console.log("showSlider1 == isShow == " + e), (this._slider1.visible = e);
    		}
    		showSlider2(e) {
    			this.isDebug && console.log("showSlider2 == isShow == " + e), (this._slider2.visible = e);
    		}
    		showTime(e, t) {
    			this.isDebug && console.log("showTime == isShow == " + e),
    				(this._timeUI.visible = e),
    				e
    					? ((this.curTaskTime = t), this.setTime(this.curTaskTime), Laya.timer.loop(1e3, this, this.taskTimeUpdate))
    					: Laya.timer.clear(this, this.taskTimeUpdate);
    		}
    		setTime(e) {
    			let t = e / 60,
    				s = e % 60,
    				i = "";
    			(i += t < 10 ? "0" + Math.floor(t) : "" + Math.floor(t)),
    				(i += ":"),
    				(i += s < 10 ? "0" + Math.floor(s) : "" + Math.floor(s)),
    				(this._labelTime.text = i);
    		}
    		taskTimeUpdate() {
    			(this.curTaskTime -= 1),
    				this.curTaskTime <= 0
    					? ((this.curTaskTime = 0),
    						this.setTime(this.curTaskTime),
    						Laya.timer.clear(this, this.taskTimeUpdate),
    						Ie.instance.failProcess())
    					: this.setTime(this.curTaskTime);
    		}
    		setTaskCurProgress(e) {
    			this.isDebug && console.log("setTaskCurProgress == value == " + e), (this._taskProcess.value = e);
    		}
    		setTaskMaxProgress(e) {
    			this._taskProcess.max = e;
    		}
    		showTaskTargetSign(e, t, s) {
    			this._goToTaskSign.visible = e;
    			let i = this._goToTaskSign.width,
    				a = this._goToTaskSign.height;
    			(this._goToTaskSign.x = t - i / 2), (this._goToTaskSign.y = s - a);
    		}
    		showLeftSign(e, t) {
    			this._leftSign.visible = e;
    			let s = this._leftSign.height;
    			this._leftSign.y = t - s;
    		}
    		showRightSign(e, t) {
    			this._rightSign.visible = e;
    			let s = this._rightSign.height;
    			this._rightSign.y = t - s;
    		}
    		showDownSign(e, t) {
    			this._downSign.visible = e;
    			let s = this._downSign.width;
    			this._downSign.x = t - s / 2;
    		}
    		showUpSign(e, t) {
    			this._upSign.visible = e;
    			let s = this._upSign.width;
    			this._upSign.x = t - s / 2;
    		}
    		showDiggerSign(e, t, s, i) {
    			(this._diggerSign.visible = e), (this._diggerLabel.text = t);
    			let a = this._diggerSign.width,
    				n = this._diggerSign.height;
    			(this._diggerSign.x = s - a / 2), (this._diggerSign.y = i - n);
    		}
    		showPlaceSign(e, t, s, i) {
    			(this._placeSign.visible = e), (this._placeLabel.text = t);
    			let a = this._placeSign.width,
    				n = this._placeSign.height;
    			(this._placeSign.x = s - a / 2), (this._placeSign.y = i - n);
    		}
    		shwoFadeIn(e) {
    			this.isDebug && console.log("shwoFadeIn"),
    				(f.instance.curFadeShowPos = e),
    				(this._fadeImg.visible = !0),
    				this._view.getTransition("fadeIn").play(Laya.Handler.create(this, this.fadeInPlayEnd));
    		}
    		fadeInPlayEnd() {
    			switch (
    			(this.isDebug &&
    				(console.log("fadeInPlayEnd"),
    					console.log("gameLogic.instance.curFadeShowPos == " + f.instance.curFadeShowPos)),
    				f.instance.curFadeShowPos)
    			) {
    				case 1:
    					Ie.instance.initStageAni();
    					break;

    				case 2:
    					Ie.instance.exitStageAni();
    			}
    		}
    		shwoFadeOut() {
    			this.isDebug && console.log("shwoFadeOut"),
    				this._view.getTransition("fadeOut").play(Laya.Handler.create(this, this.fadeOutPlayEnd));
    		}
    		fadeOutPlayEnd() {
    			switch ((this.isDebug && console.log("fadeOutPlayEnd"), f.instance.curFadeShowPos)) {
    				case 1:
    					this.shwoAllBtn(!1), Ie.instance.playStageAni();
    					break;

    				case 2:
    					(this._fadeImg.visible = !1),
    						f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    						(Ie.instance.isChallengeLevel()
    							? D.SendEvent("挑战任务2：伐木作业。完成次数统计", 2018, !1)
    							: D.SendEvent("普通任务2：伐木作业。完成次数统计", 2005, !1),
    							(f.instance.isShowDiggerPosSign = !1),
    							(f.instance.isShowPlacePosSign = !1),
    							(f.instance.isShowTargetPosSign = !1),
    							$.instance.showPlaceSign(!1, "", 0, 0),
    							$.instance.showTaskTargetSign(!1, 0, 0),
    							$.instance.showLeftSign(!1, 0),
    							$.instance.showRightSign(!1, 0),
    							$.instance.showDownSign(!1, 0),
    							$.instance.showUpSign(!1, 0),
    							(f.instance.isPlayerUpdate = !1),
    							$.instance.showControl1(!1),
    							$.instance.showControl2(!1),
    							$.instance.showSlider1(!1),
    							$.instance.showSlider2(!1),
    							(f.instance.isShowControl = !1),
    							$.instance.stopChecHideBox(),
    							$.instance.stopCheckQuickWin(),
    							Laya.stage.event("hideBox_ClickClose"),
    							Laya.stage.event("quickWin_ClickClose"),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu());
    			}
    		}
    		shwoAllBtn(e) {
    			this._allBtn.visible = e;
    		}
    		showAllControlKey(e) {
    			(this._btnLeft.visible = e),
    				(this._btnRight.visible = e),
    				(this._btnDown.visible = e),
    				(this._btnUp.visible = e),
    				(this._btnStop.visible = e),
    				Ie.instance.curStageIndex < 100
    					? ((this._btnReset.visible = e),
    						3 != l.game_channel &&
    						(this.showLimitTry1(e), this.showLimitTry2(e), e ? this.startBtnHandTip() : this.stopBtnHandTip()))
    					: ((this._btnReset.visible = !1), this.showLimitTry1(!1), this.showLimitTry2(!1));
    		}
    		showAllBtnNoGroup(e) {
    			(this._btnLeft.visible = e),
    				(this._btnRight.visible = e),
    				(this._btnDown.visible = e),
    				(this._btnUp.visible = e),
    				(this._btnStop.visible = e),
    				(this._btnReset.visible = e),
    				(this._btnSetting.visible = e),
    				(this._btnHome.visible = e),
    				(this._btnSelTool.visible = e),
    				(this._btnTask.visible = e),
    				(this._taskProcess.visible = e),
    				e || (this.showLimitTry1(e), this.showLimitTry2(e), (this._limitGet.visible = e), this.stopLimitGetTime());
    		}
    		showBtnByType(e) {
    			switch (e) {
    				case l.BTN_TYPE.BTN_TYPE_UP:
    					this._btnUp.visible = !0;
    					break;

    				case l.BTN_TYPE.BTN_TYPE_DOWN:
    					this._btnDown.visible = !0;
    					break;

    				case l.BTN_TYPE.BTN_TYPE_LEFT:
    					this._btnLeft.visible = !0;
    					break;

    				case l.BTN_TYPE.BTN_TYPE_RIGHT:
    					this._btnRight.visible = !0;
    					break;

    				case l.BTN_TYPE.BTN_TYPE_STOP:
    					this._btnStop.visible = !0;
    			}
    		}
    		showTeachSkipBtn(e) {
    			this._btnSkipTeach.visible = e;
    		}
    		showMissionTip(e) {
    			this.isDebug && console.log("showMissionTip"),
    				(this._missionTip.visible = e),
    				e
    					? (null == this.missionTiptrans && (this.missionTiptrans = this._view.getTransition("t5")),
    						this.missionTiptrans && this.missionTiptrans.play(Laya.Handler.create(this, this.missionTipEnd), 1))
    					: this.missionTiptrans && (this.missionTiptrans.stop(), Laya.timer.clear(this, this.missionTipDelayTime));
    		}
    		missionTipDelayTime() {
    			(this.missionTipTime += 1),
    				this.missionTipTime >= 10 &&
    				(Laya.timer.clear(this, this.missionTipDelayTime),
    					(this._missionTip.visible = !0),
    					this.missionTiptrans.play(Laya.Handler.create(this, this.missionTipEnd), 1));
    		}
    		missionTipEnd() {
    			this.missionTiptrans.stop(),
    				(this._missionTip.visible = !1),
    				(this.missionTipTime = 0),
    				Laya.timer.loop(1e3, this, this.missionTipDelayTime);
    		}
    		showNativeAD(e) {
    			console.log("showNativeAD == isShow == " + e),
    				e
    					? Gt.instance.ShowNative(600, 20, this.nativeSuc.bind(this), this.nativeFail.bind(this))
    					: Gt.instance.HideNative();
    		}
    		nativeSuc() {
    			console.log("nativeSuc");
    		}
    		nativeFail() {
    			console.log("nativeFail");
    		}
    		onClickLimitGet() {
    			this.isDebug && console.log("onClickLimitGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITGET) && mt.instance.showLimitGetMenu(2);
    		}
    		showLimitGetBtn() {
    			if (
    				(this.isDebug &&
    					(console.log("showLimitGetBtn"),
    						console.log("PlayerData.instance.playerInfo.limitGetShowed == " + L.instance.playerInfo.limitGetShowed)),
    					L.instance.playerInfo.limitGetShowed)
    			)
    				this._limitGet.visible = !1;
    			else {
    				if (
    					(this.isDebug &&
    						console.log(
    							"PlayerData.instance.playerInfo.limitGetStartTime == " + L.instance.playerInfo.limitGetStartTime
    						),
    						0 == L.instance.playerInfo.limitGetStartTime)
    				)
    					(L.instance.playerInfo.limitGetStartTime = new Date().getTime()),
    						L.instance.savePlayerInfoToLocalCache(),
    						(this._limitGet.visible = !0),
    						(f.instance.curLimitGetTime = 3600),
    						Laya.timer.loop(1e3, this, this.limitGetTime),
    						this.setLimitGetTime(f.instance.curLimitGetTime);
    				else {
    					let e = new Date().getTime();
    					console.log("curTime == " + e);
    					let t = L.instance.playerInfo.limitGetStartTime;
    					console.log("startTime == " + t);
    					let s = e - t;
    					console.log("time == " + s),
    						console.log("(time / 1000 / 3600) == " + s / 1e3 / 3600),
    						s / 1e3 / 3600 >= 1
    							? (Laya.timer.clear(this, this.limitGetTime),
    								(L.instance.playerInfo.limitGetShowed = !0),
    								L.instance.savePlayerInfoToLocalCache(),
    								(this._limitGet.visible = !1))
    							: (this.isShake ||
    								(3600 - Math.floor(s / 1e3) < 60 &&
    									((this.isShake = !0),
    										this._view.getTransition("t5").play(Laya.Handler.create(this, this.callBack), -1))),
    								(this._limitGet.visible = !0),
    								(f.instance.curLimitGetTime = 3600 - Math.floor(s / 1e3)),
    								Laya.timer.loop(1e3, this, this.limitGetTime),
    								this.setLimitGetTime(f.instance.curLimitGetTime));
    				}
    				3 == l.game_channel && q.instance.startHandTip(2, this._btnLimitGet.x, this._btnLimitGet.y);
    			}
    		}
    		limitGetTime() {
    			(f.instance.curLimitGetTime -= 1),
    				f.instance.curLimitGetTime <= 0
    					? (Laya.timer.clear(this, this.limitGetTime),
    						(L.instance.playerInfo.limitGetShowed = !0),
    						L.instance.savePlayerInfoToLocalCache(),
    						(this._limitGet.visible = !1))
    					: this.setLimitGetTime(f.instance.curLimitGetTime);
    		}
    		stopLimitGetTime() {
    			Laya.timer.clear(this, this.limitGetTime),
    				this.isShake && ((this.isShake = !1), this._view.getTransition("t5").stop()),
    				(this._limitGet.visible = !1),
    				q.instance.stopStartGameTip();
    		}
    		setLimitGetTime(e) {
    			let t = e / 60,
    				s = e % 60,
    				i = "";
    			(i += t < 10 ? "0" + Math.floor(t) : "" + Math.floor(t)),
    				(i += ":"),
    				(i += s < 10 ? "0" + Math.floor(s) : "" + Math.floor(s)),
    				(this._limitGetTime.text = i);
    		}
    		callBack() { }
    		startCheckQuickWin() {
    			this.isDebug && console.log("startCheckQuickWin"),
    				(this.quickWinTime = 0),
    				(this.showQuickWinTime = f.instance.getRandouNum(90, 120)),
    				Laya.timer.loop(1e3, this, this.checkQuickWin);
    		}
    		stopCheckQuickWin() {
    			Laya.timer.clear(this, this.checkQuickWin);
    		}
    		checkQuickWin() {
    			this.isDebug && console.log("this.quickWinTime == " + this.quickWinTime),
    				(this.quickWinTime += 1),
    				this.quickWinTime >= this.showQuickWinTime &&
    				(Laya.timer.clear(this, this.checkQuickWin),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_QUICKWIN) && mt.instance.showQuickWinMenu());
    		}
    		startCheckHideBox() {
    			(this.hideBoxTime = 0),
    				(this.showHideBoxTime = f.instance.getRandouNum(60, 90)),
    				Laya.timer.loop(1e3, this, this.checkHideBox);
    		}
    		stopChecHideBox() {
    			Laya.timer.clear(this, this.checkHideBox);
    		}
    		checkHideBox() {
    			(this.hideBoxTime += 1),
    				this.hideBoxTime >= this.showHideBoxTime &&
    				(Laya.timer.clear(this, this.checkHideBox), (f.instance.isCanGetHideBox = !0));
    		}
    		checkIsShowHideBox() {
    			f.instance.isCanGetHideBox &&
    				((f.instance.isCanGetHideBox = !1),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_HIDEBOX) && mt.instance.showHideBoxMenu());
    		}
    		startBtnHandTip() {
    			this.isDebug &&
    				(console.log("startBtnHandTip"),
    					console.log("this._limitGet.visible == " + this._limitGet.visible),
    					console.log("this._limitTry1.visible == " + this._limitTry1.visible),
    					console.log("this._limitTry2.visible == " + this._limitTry2.visible)),
    				(this.handTipTime = 0);
    			let e = !0;
    			this._limitGet.visible
    				? (this.curShowIndex = 0)
    				: this._limitTry1.visible
    					? (this.curShowIndex = 1)
    					: this._limitTry2.visible
    						? (this.curShowIndex = 2)
    						: (e = !1),
    				this.isDebug && (console.log("this.curShowIndex === " + this.curShowIndex), console.log("isShow === " + e)),
    				e ? Laya.timer.loop(1e3, this, this.btnHandTip) : this.stopBtnHandTip();
    		}
    		stopBtnHandTip() {
    			Laya.timer.clear(this, this.btnHandTip),
    				Laya.timer.clear(this, this.showHandTipUpdate),
    				q.instance.showHandTip(!1, 0, 0, 0);
    		}
    		btnHandTip() {
    			if (
    				(this.isDebug && console.log("this.handTipTime === " + this.handTipTime),
    					(this.handTipTime += 1),
    					this.handTipTime >= 5)
    			) {
    				switch (
    				(Laya.timer.clear(this, this.btnHandTip),
    					this.isDebug && console.log("this.curShowIndex=== " + this.curShowIndex),
    					this.curShowIndex)
    				) {
    					case 0:
    						q.instance.showBtnHandTip(2, this._btnLimitGet.x, this._btnLimitGet.y);
    						break;

    					case 1:
    						q.instance.showBtnHandTip(1, this._btnLimit1.x, this._btnLimit1.y);
    						break;

    					case 2:
    						q.instance.showBtnHandTip(1, this._btnLimit2.x, this._btnLimit2.y);
    				}
    				(this.tipShowTime = 0), Laya.timer.loop(1e3, this, this.showHandTipUpdate);
    			}
    		}
    		showHandTipUpdate() {
    			if (((this.tipShowTime += 1), this.tipShowTime >= 3)) {
    				switch (
    				(Laya.timer.clear(this, this.showHandTipUpdate), q.instance.showHandTip(!1, 0, 0, 0), this.curShowIndex)
    				) {
    					case 0:
    						this._limitTry1.visible ? (this.curShowIndex = 1) : this._limitTry2.visible && (this.curShowIndex = 2);
    						break;

    					case 1:
    						this._limitTry2.visible ? (this.curShowIndex = 2) : this._limitGet.visible && (this.curShowIndex = 0);
    						break;

    					case 2:
    						this._limitGet.visible ? (this.curShowIndex = 0) : this._limitTry1.visible && (this.curShowIndex = 1);
    				}
    				(this.handTipTime = 0), Laya.timer.loop(1e3, this, this.btnHandTip);
    			}
    		}
    		setCurUseTool(e) {
    			f.instance.curUseToolType = e;
    			let t = this._btnSelTool.getChild("n5").asLoader,
    				s = this._btnSelTool.getChild("n6").asLoader;
    			if (((t.url = V.instance.getToolIcon(e)), (s.url = V.instance.getToolName(e)), f.instance.isShowControl))
    				switch (
    				($.instance.showControl1(!1),
    					$.instance.showControl2(!1),
    					$.instance.showSlider1(!1),
    					$.instance.showSlider2(!1),
    					e)
    				) {
    					case 1:
    					case 2:
    					case 4:
    						$.instance.showControl1(!0), $.instance.showControl2(!0);
    						break;

    					case 3:
    						$.instance.showSlider1(!0);
    						break;

    					case 5:
    						$.instance.showSlider2(!0);
    				}
    		}
    	}
    	class ee extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.dirtPrefab = null),
    				(this.pos_light = null),
    				(this.particleDropSmokePre = null),
    				(this.particleSmokePre = null),
    				(this.tiggerNode = null),
    				(this.truck = null),
    				(this.targePos = new Laya.Vector3(0.969, 0.039, 0.208)),
    				(this.diggerPos = new Laya.Vector3(0.6404025, 0.039, 0.2596712)),
    				(this.placePos = new Laya.Vector3(0.746, 0.135, 0.019)),
    				(this.truck_dirt_1 = null),
    				(this.truck_dirt_2 = null),
    				(this.truck_dirt_3 = null),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ee()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage3 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/small_dirt_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage3 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/small_dirt_1.lh");
    			(this.dirtPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.dirt_1 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_1.name = "small_dirt_1"),
    				(this.dirt_1.active = !0),
    				(this.dirt_2 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_2.name = "small_dirt_2"),
    				(this.dirt_2.active = !0),
    				(this.dirt_3 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_3.name = "small_dirt_3"),
    				(this.dirt_3.active = !0),
    				(this.dirt_4 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_4.name = "small_dirt_4"),
    				(this.dirt_4.active = !0),
    				(this.dirt_5 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_5.name = "small_dirt_5"),
    				(this.dirt_5.active = !0),
    				(this.dirt_6 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_6.name = "small_dirt_6"),
    				(this.dirt_6.active = !0),
    				this.curScene.addChild(this.dirt_1),
    				this.curScene.addChild(this.dirt_2),
    				this.curScene.addChild(this.dirt_3),
    				this.curScene.addChild(this.dirt_4),
    				this.curScene.addChild(this.dirt_5),
    				this.curScene.addChild(this.dirt_6);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh");
    			this.particleDropSmokePre = Laya.Sprite3D.instantiate(t);
    			let s = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh");
    			(s.transform.localScaleX = 0.1),
    				(s.transform.localScaleY = 0.1),
    				(s.transform.localScaleZ = 0.1),
    				(this.particleSmokePre = Laya.Sprite3D.instantiate(s)),
    				(this.tiggerNode = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh")),
    				this.curScene.addChild(this.tiggerNode),
    				(this.tiggerNode.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck.lh")),
    				this.curScene.addChild(this.truck),
    				(this.truck_dirt_1 = this.truck.getChildByName("dirt_1")),
    				(this.truck_dirt_2 = this.truck.getChildByName("dirt_2")),
    				(this.truck_dirt_3 = this.truck.getChildByName("dirt_3")),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatDirtFun() {
    			return this.isDebug && console.log("creatDirtFun"), Laya.Sprite3D.instantiate(this.dirtPrefab, this.curScene);
    		}
    		initStage() {
    			this.isDebug && console.log("stage3 === initStage"),
    				(this.truck.transform.localPosition = new Laya.Vector3(0.675, 1.175705e-7, 0.015)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.tiggerNode.transform.localPosition = new Laya.Vector3(0.771, 0.0961, 0.015)),
    				(this.tiggerNode.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.dirt_1.transform.localPosition = new Laya.Vector3(0.6404025, 3878521e-12, 0.2596712)),
    				(this.dirt_1.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_2.transform.localPosition = new Laya.Vector3(0.697, 0, 0.175)),
    				(this.dirt_2.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_3.transform.localPosition = new Laya.Vector3(0.62, 0, 0.181)),
    				(this.dirt_3.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_4.transform.localPosition = new Laya.Vector3(0.582, 3878521e-12, 0.2596712)),
    				(this.dirt_4.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_5.transform.localPosition = new Laya.Vector3(0.645, 0, 0.327)),
    				(this.dirt_5.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_6.transform.localPosition = new Laya.Vector3(0.706, 0, 0.262)),
    				(this.dirt_6.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    				(f.instance.isHaveDirtInBucket = !1),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(Ie.instance.curStageIndex))
    					: (B.ShuFenReport_guide("lost018", 2), $.instance.showTime(!1, 0)),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				1 == Ie.instance.curStageIndex &&
    				(Q.instance.isShowTeachInStage ||
    					((Q.instance.isShowTeachInStage = !0),
    						(Q.instance.stageTeachStep = 1),
    						Q.instance.showTeach(5, Q.instance.stageTeachStep))),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage3 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(1.4289696528677662, 0.003, -1.0811741122193588)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, -0.021581856411113685, -0, 0.999767084612136)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(1.4289696528677662, 0.003, -1.0811741122193588)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, -0.021581856411113685, -0, 0.999767084612136)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showTruckDirt(e) {
    			switch (
    			(this.isDebug && console.log("showTruckDirt === times == " + e),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				e)
    			) {
    				case 1:
    					this.truck_dirt_3.active = !0;
    					break;

    				case 2:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0);
    					break;

    				case 3:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0), (this.truck_dirt_1.active = !0);
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 0.861 - 0.3 &&
    				this.curPlayer.transform.localPositionX <= 1.161 &&
    				this.curPlayer.transform.localPositionZ <= 0.51 &&
    				this.curPlayer.transform.localPositionZ >= -0.09 &&
    				(this.isDebug && console.log("到达任务地点"),
    					D.SendEvent("玩家进入关卡1走到任务位置", 1023, !0),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						B.ShuFenReport_guide("lost020", 1),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0),
    						B.ShuFenReport_guide("lost020", 2)));
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里挖土", e.x, e.y);
    			}
    		}
    		showPlacePos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.placePos, this.curCarema.projectionViewMatrix, this._outPos2);
    				let e = new Laya.Vector2(this._outPos2.x / Laya.stage.clientScaleX, this._outPos2.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    			}
    		}
    		showTruckSmoke(e) {
    			e && this.spawnSmokeParticle(new Laya.Vector3(0.7604, 0.0668, 0.012));
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.dirt_1.active = !1;
    					break;

    				case 2:
    					this.dirt_2.active = !1;
    					break;

    				case 3:
    					this.dirt_3.active = !1;
    					break;

    				case 4:
    					this.dirt_4.active = !1;
    					break;

    				case 5:
    					this.dirt_5.active = !1;
    					break;

    				case 6:
    					this.dirt_6.active = !1;
    			}
    		}
    		exitStageProcess() {
    			if (
    				(this.particleDropSmokePre && this.particleDropSmokePre.destroy(),
    					this.particleSmokePre && this.particleSmokePre.destroy(),
    					this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    					this.dirt_1 && (this.dirt_1.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_1)),
    					this.dirt_2 && (this.dirt_2.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_2)),
    					this.dirt_3 && (this.dirt_3.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_3)),
    					this.dirt_4 && (this.dirt_4.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_4)),
    					this.dirt_5 && (this.dirt_5.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_5)),
    					this.dirt_6 && (this.dirt_6.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_6)),
    					this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    					this.dirtPrefab && this.dirtPrefab.destroy(),
    					this.pos_light &&
    					(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    					this.curScene.getChildByName("smokeParticle"))
    			) {
    				let e = this.curScene.getChildByName("smokeParticle");
    				e.removeSelf(), Laya.Pool.recover("Particle2", e);
    			}
    			Laya.stage.off("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		spawnDropSmokeParticle(e) {
    			this.isDebug && (console.log("spawnDropSmokeParticle"), console.log(e)), B.ShuFenReport_guide("lost021", 1);
    			let t = Laya.Pool.getItemByCreateFun("Particle1", this.creatFun, this);
    			(t.transform.position = e),
    				(t.transform.localPosition = e),
    				this.curScene.addChild(t),
    				console.log(t),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("撒落完成"),
    						B.ShuFenReport_guide("lost021", 2),
    						t.removeSelf(),
    						Laya.Pool.recover("Particle1", t),
    						Ie.instance.showTruckSmoke(!1),
    						this.curPlayer && this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    						(f.instance.curStageProcess += 1),
    						(L.instance.playerInfo.stage3Times += 1),
    						L.instance.savePlayerInfoToLocalCache(),
    						this.isDebug &&
    						(console.log("gameLogic.instance.curStageProcess == " + f.instance.curStageProcess),
    							console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    						$.instance.setTaskCurProgress(f.instance.curStageProcess),
    						v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    						f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    							? (Ie.instance.isChallengeLevel()
    								? D.SendEvent("挑战任务1：泥浆装载。完成次数统计", 2017, !1)
    								: D.SendEvent("普通任务1：泥浆装载。完成次数统计", 2004, !1),
    								(f.instance.isShowDiggerPosSign = !1),
    								(f.instance.isShowPlacePosSign = !1),
    								(f.instance.isShowTargetPosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								$.instance.showSlider1(!1),
    								$.instance.showSlider2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.stopChecHideBox(),
    								$.instance.stopCheckQuickWin(),
    								Laya.stage.event("hideBox_ClickClose"),
    								Laya.stage.event("quickWin_ClickClose"),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    							: ((f.instance.isShowPlacePosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								(f.instance.isShowDiggerPosSign = !0)),
    						Ie.instance.showTruckDirt(f.instance.curStageProcess),
    						this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(0),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0),
    						(f.instance.isPlayWJJAni = !1);
    				});
    		}
    		creatFun() {
    			return console.log("creatFun"), Laya.Sprite3D.instantiate(this.particleDropSmokePre, this.curScene);
    		}
    		spawnSmokeParticle(e) {
    			this.isDebug && (console.log("spawnSmokeParticle"), console.log(e)),
    				this.isDebug && console.log(this.particleSmokePre);
    			let t = Laya.Pool.getItemByCreateFun("Particle2", this.creatFun1, this);
    			(t.name = "smokeParticle"),
    				this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("冒烟完成"), t && (t.removeSelf(), Laya.Pool.recover("Particle2", t));
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleSmokePre, this.curScene);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class te extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.treePrefab = null),
    				(this.tree1 = null),
    				(this.tree2 = null),
    				(this.tree3 = null),
    				(this.pos_light = null),
    				(this.treeLightPrefab = null),
    				(this.tree_light1 = null),
    				(this.tree_light2 = null),
    				(this.tree_light3 = null),
    				(this.tree_H_Prefab = null),
    				(this.tree_H_1 = null),
    				(this.tree_H_2 = null),
    				(this.tree_H_3 = null),
    				(this.treeInTicks = null),
    				(this.particleDropTreePre = null),
    				(this.targePos = new Laya.Vector3(0.012, 0.039, 1.355)),
    				(this._manager = null),
    				(this.treeTween1_1 = null),
    				(this.treeTween1_2 = null),
    				(this.treeTween2_1 = null),
    				(this.treeTween2_2 = null),
    				(this.treeTween3_1 = null),
    				(this.treeTween3_2 = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new te()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage2 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4());
    			(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0),
    				Laya.loader.create(
    					[
    						"res/3DRes/LayaScene_MainScene/Conventional/tree_1.lh",
    						"res/3DRes/LayaScene_MainScene/Conventional/tree_H_1.lh",
    						"res/3DRes/LayaScene_MainScene/Conventional/tree_light1.lh",
    						"res/3DRes/LayaScene_MainScene/Conventional/dropTree1.lh",
    						"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    					],
    					Laya.Handler.create(this, this.onPreLoadFinish)
    				),
    				Laya.stage.on("CreateDropTree1Particle", this, this.spawnDropTreeParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage2 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/tree_1.lh");
    			(this.treePrefab = Laya.Sprite3D.instantiate(e)),
    				(this.tree1 = Laya.Pool.getItemByCreateFun("stage2tree", this.creatTreeFun, this)),
    				(this.tree2 = Laya.Pool.getItemByCreateFun("stage2tree", this.creatTreeFun, this)),
    				(this.tree3 = Laya.Pool.getItemByCreateFun("stage2tree", this.creatTreeFun, this)),
    				(this.tree1.name = "tree_1"),
    				(this.tree2.name = "tree_2"),
    				(this.tree3.name = "tree_3"),
    				this.curScene.addChild(this.tree1),
    				this.curScene.addChild(this.tree2),
    				this.curScene.addChild(this.tree3);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/tree_light1.lh");
    			(this.treeLightPrefab = Laya.Sprite3D.instantiate(t)),
    				(this.tree_light1 = Laya.Pool.getItemByCreateFun("stage2treeLight", this.creatTreeLightFun, this)),
    				(this.tree_light2 = Laya.Pool.getItemByCreateFun("stage2treeLight", this.creatTreeLightFun, this)),
    				(this.tree_light3 = Laya.Pool.getItemByCreateFun("stage2treeLight", this.creatTreeLightFun, this)),
    				this.curScene.addChild(this.tree_light1),
    				this.curScene.addChild(this.tree_light2),
    				this.curScene.addChild(this.tree_light3),
    				(this.tree1.active = !0),
    				(this.tree2.active = !0),
    				(this.tree3.active = !0);
    			let s = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/tree_H_1.lh");
    			(this.tree_H_Prefab = Laya.Sprite3D.instantiate(s)),
    				(this.tree_H_1 = Laya.Pool.getItemByCreateFun("stage2treeH", this.creatTreeHFun, this)),
    				(this.tree_H_2 = Laya.Pool.getItemByCreateFun("stage2treeH", this.creatTreeHFun, this)),
    				(this.tree_H_3 = Laya.Pool.getItemByCreateFun("stage2treeH", this.creatTreeHFun, this)),
    				this.curScene.addChild(this.tree_H_1),
    				this.curScene.addChild(this.tree_H_2),
    				this.curScene.addChild(this.tree_H_3);
    			let i = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/dropTree1.lh");
    			switch (
    			((this.particleDropTreePre = Laya.Sprite3D.instantiate(i)),
    				(this.treeInTicks = Laya.Pool.getItemByCreateFun("treeInTick", this.creatTreeFun, this)),
    				(this.treeInTicks.name = "treeInTicks"),
    				this.curPlayer.getComponent(Laya.Script3D).curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.treeInTicks.transform.localPosition = new Laya.Vector3(-0.816, -0.214, -0.087)),
    						(this.treeInTicks.transform.localRotationEuler = new Laya.Vector3(35, 0, -90)),
    						(this.treeInTicks.transform.localScale = new Laya.Vector3(10, 10, 10));
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.treeInTicks.transform.localPosition = new Laya.Vector3(0.824, -0.462, 0.139)),
    						(this.treeInTicks.transform.localRotationEuler = new Laya.Vector3(35, -180, -90)),
    						(this.treeInTicks.transform.localScale = new Laya.Vector3(10, 10, 10));
    			}
    			this.curPlayer.getComponent(Laya.Script3D).getTicks().addChild(this.treeInTicks),
    				(this.treeInTicks.active = !1),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatTreeFun() {
    			return console.log("creatTreeFun"), Laya.Sprite3D.instantiate(this.treePrefab, this.curScene);
    		}
    		creatTreeLightFun() {
    			return console.log("creatTreeLightFun"), Laya.Sprite3D.instantiate(this.treeLightPrefab, this.curScene);
    		}
    		creatTreeHFun() {
    			return console.log("creatTreeHFun"), Laya.Sprite3D.instantiate(this.tree_H_Prefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage2 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(1.4289696528677662, 0.003, -1.0811741122193588)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, -0.021581856411113685, -0, 0.999767084612136)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(1.4289696528677662, 0.003, -1.0811741122193588)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, -0.021581856411113685, -0, 0.999767084612136)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initStage() {
    			this.isDebug && console.log("stage2 === initStage"),
    				(this.tree1.transform.localPosition = new Laya.Vector3(0.237, 0, 1.631)),
    				(this.tree1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree2.transform.localPosition = new Laya.Vector3(-0.2266338, 0, 1.926)),
    				(this.tree2.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree3.transform.localPosition = new Laya.Vector3(-0.591, 0, 1.682)),
    				(this.tree3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree1.active = !0),
    				(this.tree2.active = !0),
    				(this.tree3.active = !0),
    				(this.tree_light1.transform.localPosition = new Laya.Vector3(0.237, 0.005, 1.631)),
    				(this.tree_light1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree_light2.transform.localPosition = new Laya.Vector3(-0.2266338, 0.005, 1.926)),
    				(this.tree_light2.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree_light3.transform.localPosition = new Laya.Vector3(-0.591, 0.005, 1.682)),
    				(this.tree_light3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree_light1.active = !0),
    				(this.tree_light2.active = !0),
    				(this.tree_light3.active = !0),
    				(this.tree_H_1.transform.localPosition = new Laya.Vector3(0.237, 0, 1.631)),
    				(this.tree_H_1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree_H_2.transform.localPosition = new Laya.Vector3(-0.2266338, 0, 1.926)),
    				(this.tree_H_2.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree_H_3.transform.localPosition = new Laya.Vector3(-0.591, 0, 1.682)),
    				(this.tree_H_3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.tree_H_1.active = !1),
    				(this.tree_H_2.active = !1),
    				(this.tree_H_3.active = !1),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(this._manager.isTree1Damaged = !1),
    				(this._manager.isTree2Damaged = !1),
    				(this._manager.isTree3Damaged = !1),
    				(this._manager.curDiggerPos = 0),
    				(f.instance.curStageProcess = 0),
    				(f.instance.isHaveObjectInTick = !1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				this.shwoTree1Light(!0),
    				this.shwoTree2Light(!0),
    				this.shwoTree3Light(!0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				2 == Ie.instance.curStageIndex && k.instance.showTeachHand1(!1, 0, 0, 0),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= -0.629 &&
    				this.curPlayer.transform.localPositionX <= 0.371 &&
    				this.curPlayer.transform.localPositionZ <= 1.578 + 0.5 &&
    				this.curPlayer.transform.localPositionZ >= 1.078 &&
    				(f.instance.isArriveTaskPos ||
    					(this.isDebug && console.log("到达任务地点"),
    						(f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(this._manager.curDiggerPos = 1),
    						(f.instance.isShowDiggerPosSign = !0),
    						2 == Ie.instance.curStageIndex &&
    						(Q.instance.isShowTeachInStage ||
    							((Q.instance.isShowTeachInStage = !0),
    								(Q.instance.stageTeachStep = 1),
    								Q.instance.showTeach(4, Q.instance.stageTeachStep),
    								(f.instance.curSpeed = 0),
    								(f.instance.isForward = !1),
    								(f.instance.isBackAway = !1),
    								(f.instance.isRunFont = !1),
    								(f.instance.isRunBack = !1)))));
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showDiggerPos(e) {
    			if (this.curCarema)
    				switch (e) {
    					case 1:
    						{
    							this.curCarema.viewport.project(
    								this.tree1.transform.localPosition,
    								this.curCarema.projectionViewMatrix,
    								this._outPos1
    							);
    							let e = new Laya.Vector2(
    								this._outPos1.x / Laya.stage.clientScaleX,
    								this._outPos1.y / Laya.stage.clientScaleY
    							);
    							this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 &&
    								e.x <= Laya.stage.width &&
    								e.y >= 0 &&
    								e.y <= Laya.stage.height &&
    								$.instance.showDiggerSign(!0, "用钳爪抓起树干", e.x, e.y);
    						}
    						break;

    					case 2:
    						{
    							this.curCarema.viewport.project(
    								this.tree2.transform.localPosition,
    								this.curCarema.projectionViewMatrix,
    								this._outPos1
    							);
    							let e = new Laya.Vector2(
    								this._outPos1.x / Laya.stage.clientScaleX,
    								this._outPos1.y / Laya.stage.clientScaleY
    							);
    							this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 &&
    								e.x <= Laya.stage.width &&
    								e.y >= 0 &&
    								e.y <= Laya.stage.height &&
    								$.instance.showDiggerSign(!0, "用钳爪抓起树干", e.x, e.y);
    						}
    						break;

    					case 3: {
    						this.curCarema.viewport.project(
    							this.tree3.transform.localPosition,
    							this.curCarema.projectionViewMatrix,
    							this._outPos1
    						);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "用钳爪抓起树干", e.x, e.y);
    					}
    				}
    		}
    		shwoTree1Light(e) {
    			this.isDebug && console.log("shwoTree1Light == isShow" + e),
    				this.tree_light1 &&
    				((this.tree_light1.active = e),
    					e
    						? ((this.tree_light1.transform.localScaleX = 0.01),
    							(this.tree_light1.transform.localScaleZ = 0.01),
    							(this.treeTween1_1 = Laya.Tween.to(
    								this.tree_light1.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.treeTween1_1 && Laya.Tween.clear(this.treeTween1_1),
    							this.treeTween1_2 && Laya.Tween.clear(this.treeTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.treeTween1_1 &&
    				(Laya.Tween.clear(this.treeTween1_1),
    					this.tree_light1 &&
    					(this.treeTween1_2 = Laya.Tween.to(
    						this.tree_light1.transform,
    						{
    							localScaleX: 0.01,
    							localScaleZ: 0.01,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.treeTween1_2 &&
    				(Laya.Tween.clear(this.treeTween1_2),
    					this.tree_light1 &&
    					(this.treeTween1_1 = Laya.Tween.to(
    						this.tree_light1.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    		shwoTree2Light(e) {
    			this.isDebug && console.log("shwoTree2Light == isShow" + e),
    				this.tree_light2 &&
    				((this.tree_light2.active = e),
    					e
    						? ((this.tree_light2.transform.localScaleX = 0.01),
    							(this.tree_light2.transform.localScaleZ = 0.01),
    							(this.treeTween2_1 = Laya.Tween.to(
    								this.tree_light2.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light2End1),
    								0
    							)))
    						: (this.treeTween2_1 && Laya.Tween.clear(this.treeTween2_1),
    							this.treeTween2_2 && Laya.Tween.clear(this.treeTween2_2)));
    		}
    		light2End1() {
    			this.isDebug && console.log("light2End1"),
    				Laya.Tween.clear(this.treeTween2_1),
    				this.tree_light2 &&
    				(this.treeTween2_2 = Laya.Tween.to(
    					this.tree_light2.transform,
    					{
    						localScaleX: 0.01,
    						localScaleZ: 0.01,
    					},
    					1e3,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.light2End2),
    					0
    				));
    		}
    		light2End2() {
    			this.isDebug && console.log("light2End2"),
    				Laya.Tween.clear(this.treeTween2_2),
    				this.tree_light2 &&
    				(this.treeTween2_1 = Laya.Tween.to(
    					this.tree_light2.transform,
    					{
    						localScaleX: 0.02,
    						localScaleZ: 0.02,
    					},
    					1e3,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.light2End1),
    					0
    				));
    		}
    		shwoTree3Light(e) {
    			this.isDebug && console.log("shwoTree3Light == isShow" + e),
    				this.tree_light3 &&
    				((this.tree_light3.active = e),
    					e
    						? ((this.tree_light3.transform.localScaleX = 0.01),
    							(this.tree_light3.transform.localScaleZ = 0.01),
    							(this.treeTween3_1 = Laya.Tween.to(
    								this.tree_light3.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light3End1),
    								0
    							)))
    						: (this.treeTween3_1 && Laya.Tween.clear(this.treeTween3_1),
    							this.treeTween3_2 && Laya.Tween.clear(this.treeTween3_2)));
    		}
    		light3End1() {
    			this.isDebug && console.log("light3End1"),
    				Laya.Tween.clear(this.treeTween3_1),
    				this.tree_light3 &&
    				(this.treeTween3_2 = Laya.Tween.to(
    					this.tree_light3.transform,
    					{
    						localScaleX: 0.01,
    						localScaleZ: 0.01,
    					},
    					1e3,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.light3End2),
    					0
    				));
    		}
    		light3End2() {
    			this.isDebug && console.log("light3End2"),
    				Laya.Tween.clear(this.treeTween3_2),
    				this.tree_light3 &&
    				(this.treeTween3_1 = Laya.Tween.to(
    					this.tree_light3.transform,
    					{
    						localScaleX: 0.02,
    						localScaleZ: 0.02,
    					},
    					1e3,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.light3End1),
    					0
    				));
    		}
    		showStageAni(e) {
    			this.isDebug &&
    				(console.log("showStageAni == index == " + e),
    					console.log(this.curPlayer.transform.position),
    					console.log(this.curPlayer.transform.rotation),
    					console.log(this.curPlayer.transform.localPosition),
    					console.log(this.curPlayer.transform.localRotation),
    					console.log(this.curPlayer.transform.localRotationEuler),
    					console.log(this.curCarema.transform.position),
    					console.log(this.curCarema.transform.rotation),
    					console.log(this.curCarema.transform.localPosition),
    					console.log(this.curCarema.transform.localRotation),
    					console.log(this.curCarema.transform.localRotationEuler)),
    				(f.instance.curTreeIdex = e),
    				(f.instance.recordCarPosition = new Laya.Vector3(
    					this.curPlayer.transform.position.x,
    					this.curPlayer.transform.position.y,
    					this.curPlayer.transform.position.z
    				)),
    				(f.instance.recordCarRotation = new Laya.Quaternion(
    					this.curPlayer.transform.rotation.x,
    					this.curPlayer.transform.rotation.y,
    					this.curPlayer.transform.rotation.z,
    					this.curPlayer.transform.rotation.w
    				)),
    				(f.instance.recordCarLocalPosition = new Laya.Vector3(
    					this.curPlayer.transform.localPosition.x,
    					this.curPlayer.transform.localPosition.y,
    					this.curPlayer.transform.localPosition.z
    				)),
    				(f.instance.recordCarLocalRotation = new Laya.Quaternion(
    					this.curPlayer.transform.localRotation.x,
    					this.curPlayer.transform.localRotation.y,
    					this.curPlayer.transform.localRotation.z,
    					this.curPlayer.transform.localRotation.w
    				)),
    				(f.instance.recordCarLocalRotationEuler = new Laya.Vector3(
    					this.curPlayer.transform.localRotationEuler.x,
    					this.curPlayer.transform.localRotationEuler.y,
    					this.curPlayer.transform.localRotationEuler.z
    				)),
    				(f.instance.recordCaremaPosition = new Laya.Vector3(
    					this.curCarema.transform.position.x,
    					this.curCarema.transform.position.y,
    					this.curCarema.transform.position.z
    				)),
    				(f.instance.recordCaremaRotation = new Laya.Quaternion(
    					this.curCarema.transform.rotation.x,
    					this.curCarema.transform.rotation.y,
    					this.curCarema.transform.rotation.z,
    					this.curPlayer.transform.rotation.w
    				)),
    				(f.instance.recordCaremaLocalPosition = new Laya.Vector3(
    					this.curCarema.transform.localPosition.x,
    					this.curCarema.transform.localPosition.y,
    					this.curCarema.transform.localPosition.z
    				)),
    				(f.instance.recordCaremaLocalRotation = new Laya.Quaternion(
    					this.curCarema.transform.localRotation.x,
    					this.curCarema.transform.localRotation.y,
    					this.curCarema.transform.localRotation.z,
    					this.curCarema.transform.localRotation.w
    				)),
    				(f.instance.recordCaremaLocalRotationEuler = new Laya.Vector3(
    					this.curCarema.transform.localRotationEuler.x,
    					this.curCarema.transform.localRotationEuler.y,
    					this.curCarema.transform.localRotationEuler.z
    				)),
    				(f.instance.isAniTouchEnable = !0),
    				(f.instance.curSpeed = 0),
    				(f.instance.isForward = !1),
    				(f.instance.isBackAway = !1),
    				(f.instance.isRunFont = !1),
    				(f.instance.isRunBack = !1),
    				f.instance.isPlayArmPushSound &&
    				((f.instance.isPlayArmPushSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    				f.instance.isPlayArmRotateSound &&
    				((f.instance.isPlayArmRotateSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    				f.instance.isPlayCarMoveSound &&
    				((f.instance.isPlayCarMoveSound = !1),
    					L.instance.settingInfo.isSound &&
    					(Laya.Browser.onIOS
    						? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    						: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3"))),
    				$.instance.shwoFadeIn(1);
    		}
    		initStageAni() {
    			switch (
    			(this.isDebug &&
    				(console.log("initStageAni"), console.log("gameLogic.instance.curTreeIdex == " + f.instance.curTreeIdex)),
    				this.curPlayer.getComponent(Laya.Script3D).curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					switch (f.instance.curTreeIdex) {
    						case 1:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(0.0129, 0.003, 1.4435)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									-0,
    									0.43807447932586574,
    									0,
    									0.8989386800907899
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(0.0129, 0.003, 1.4435)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									-0,
    									0.43807447932586574,
    									0,
    									0.8989386800907899
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 51.96217948717946, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									0.46485590206000216,
    									0.20982408928871155,
    									0.7578196364386959
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.018147409628637996,
    									0.9743605066413393,
    									0.085245498518493,
    									0.20742584121496702
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									0.46485590206000216,
    									0.20982408928871155,
    									0.7578196364386959
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.018147409628637996,
    									0.9743605066413393,
    									0.085245498518493,
    									0.20742584121496702
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-10.000000000000005,
    									155.96409378068472,
    									0
    								));
    							break;

    						case 2:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.503, 0.003, 1.843)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									-0,
    									0.6134726731648052,
    									0,
    									0.7897159484776967
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.503, 0.003, 1.843)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									-0,
    									0.6134726731648052,
    									0,
    									0.7897159484776967
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 75.68205128205132, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									0.20265512380686915,
    									0.20982408928871155,
    									1.2498261063109637
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.032382875163281116,
    									0.9248793269502001,
    									0.08091645623766291,
    									0.37013795682993983
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									0.20265512380686915,
    									0.20982408928871155,
    									1.2498261063109637
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.032382875163281116,
    									0.9248793269502001,
    									0.08091645623766291,
    									0.37013795682993983
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-10.000000000004157,
    									136.37729171161322,
    									0
    								));
    							break;

    						case 3:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.308, 0.003, 1.635)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									0,
    									-0.6365615401575121,
    									-0,
    									0.771225910866781
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.308, 0.003, 1.635)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									0,
    									-0.6365615401575121,
    									-0,
    									0.771225910866781
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -79.07179487179506, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									-1.2076714474801238,
    									0.2201171781420708,
    									2.0843206874146296
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.08616297823202346,
    									-0.4671850828173799,
    									-0.04580789788158244,
    									0.8787580304422693
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									-1.2076714474801238,
    									0.2201171781420708,
    									2.0843206874146296
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.08616297823202346,
    									-0.4671850828173799,
    									-0.04580789788158244,
    									0.8787580304422693
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-11.200000000435052,
    									-55.994017088733145,
    									0
    								));
    					}
    					break;

    				case 2:
    				case 4:
    					switch (f.instance.curTreeIdex) {
    						case 1:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.017, 0.003, 1.447)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									-0,
    									0.43807447932586574,
    									0,
    									0.8989386800907899
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.017, 0.003, 1.447)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									-0,
    									0.43807447932586574,
    									0,
    									0.8989386800907899
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 51.96217948717946, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									0.46485590206000216,
    									0.20982408928871155,
    									0.7578196364386959
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.018147409628637996,
    									0.9743605066413393,
    									0.085245498518493,
    									0.20742584121496702
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									0.46485590206000216,
    									0.20982408928871155,
    									0.7578196364386959
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.018147409628637996,
    									0.9743605066413393,
    									0.085245498518493,
    									0.20742584121496702
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-10.000000000000005,
    									155.96409378068472,
    									0
    								));
    							break;

    						case 2:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.498, 0.003, 1.843)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									-0,
    									0.6134726731648052,
    									0,
    									0.7897159484776967
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.498, 0.003, 1.843)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									-0,
    									0.6134726731648052,
    									0,
    									0.7897159484776967
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 75.68205128205132, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									0.20265512380686915,
    									0.20982408928871155,
    									1.2498261063109637
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.032382875163281116,
    									0.9248793269502001,
    									0.08091645623766291,
    									0.37013795682993983
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									0.20265512380686915,
    									0.20982408928871155,
    									1.2498261063109637
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.032382875163281116,
    									0.9248793269502001,
    									0.08091645623766291,
    									0.37013795682993983
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-10.000000000004157,
    									136.37729171161322,
    									0
    								));
    							break;

    						case 3:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.308, 0.003, 1.647)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									0,
    									-0.6365615401575121,
    									-0,
    									0.771225910866781
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.308, 0.003, 1.647)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									0,
    									-0.6365615401575121,
    									-0,
    									0.771225910866781
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -79.07179487179506, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									-1.2076714474801238,
    									0.2201171781420708,
    									2.0843206874146296
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.08616297823202346,
    									-0.4671850828173799,
    									-0.04580789788158244,
    									0.8787580304422693
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									-1.2076714474801238,
    									0.2201171781420708,
    									2.0843206874146296
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.08616297823202346,
    									-0.4671850828173799,
    									-0.04580789788158244,
    									0.8787580304422693
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-11.200000000435052,
    									-55.994017088733145,
    									0
    								));
    					}
    					break;

    				case 3:
    					switch (f.instance.curTreeIdex) {
    						case 1:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(0.047, 0.003, 1.467)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									-0,
    									0.43807447932586574,
    									0,
    									0.8989386800907899
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(0.04, 0.003, 1.467)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									-0,
    									0.43807447932586574,
    									0,
    									0.8989386800907899
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 51.96217948717946, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									0.46485590206000216,
    									0.20982408928871155,
    									0.7578196364386959
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.018147409628637996,
    									0.9743605066413393,
    									0.085245498518493,
    									0.20742584121496702
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									0.46485590206000216,
    									0.20982408928871155,
    									0.7578196364386959
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.018147409628637996,
    									0.9743605066413393,
    									0.085245498518493,
    									0.20742584121496702
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-10.000000000000005,
    									155.96409378068472,
    									0
    								));
    							break;

    						case 2:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.46, 0.003, 1.854)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									-0,
    									0.6134726731648052,
    									0,
    									0.7897159484776967
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.46, 0.003, 1.854)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									-0,
    									0.6134726731648052,
    									0,
    									0.7897159484776967
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 75.68205128205132, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									0.20265512380686915,
    									0.20982408928871155,
    									1.2498261063109637
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.032382875163281116,
    									0.9248793269502001,
    									0.08091645623766291,
    									0.37013795682993983
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									0.20265512380686915,
    									0.20982408928871155,
    									1.2498261063109637
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.032382875163281116,
    									0.9248793269502001,
    									0.08091645623766291,
    									0.37013795682993983
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-10.000000000004157,
    									136.37729171161322,
    									0
    								));
    							break;

    						case 3:
    							(f.instance.curSpeed = 0),
    								(this.curPlayer.transform.position = new Laya.Vector3(-0.3507, 0.003, 1.6305)),
    								(this.curPlayer.transform.rotation = new Laya.Quaternion(
    									0,
    									-0.6365615401575121,
    									-0,
    									0.771225910866781
    								)),
    								(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.3507, 0.003, 1.6305)),
    								(this.curPlayer.transform.localRotation = new Laya.Quaternion(
    									0,
    									-0.6365615401575121,
    									-0,
    									0.771225910866781
    								)),
    								(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -79.07179487179506, -0)),
    								this.curPlayer.getComponent(Laya.Script3D).setStage2Ani(),
    								(this.curCarema.transform.position = new Laya.Vector3(
    									-1.2076714474801238,
    									0.2201171781420708,
    									2.0843206874146296
    								)),
    								(this.curCarema.transform.rotation = new Laya.Quaternion(
    									-0.08616297823202346,
    									-0.4671850828173799,
    									-0.04580789788158244,
    									0.8787580304422693
    								)),
    								(this.curCarema.transform.localPosition = new Laya.Vector3(
    									-1.2076714474801238,
    									0.2201171781420708,
    									2.0843206874146296
    								)),
    								(this.curCarema.transform.localRotation = new Laya.Quaternion(
    									-0.08616297823202346,
    									-0.4671850828173799,
    									-0.04580789788158244,
    									0.8787580304422693
    								)),
    								(this.curCarema.transform.localRotationEuler = new Laya.Vector3(
    									-11.200000000435052,
    									-55.994017088733145,
    									0
    								));
    					}
    			}
    			$.instance.shwoFadeOut();
    		}
    		playStageAni() {
    			switch (
    			(this.isDebug &&
    				(console.log("playStageAni"), console.log("gameLogic.instance.curTreeIdex == " + f.instance.curTreeIdex)),
    				f.instance.curTreeIdex)
    			) {
    				case 1:
    					(this.tree1.active = !1),
    						this.curPlayer.getComponent(Laya.Script3D).showTreeInTicks(!0),
    						(this.tree_H_1.active = !0),
    						this.curPlayer.getComponent(Laya.Script3D).playTickTrunAni();
    					break;

    				case 2:
    					(this.tree2.active = !1),
    						this.curPlayer.getComponent(Laya.Script3D).showTreeInTicks(!0),
    						(this.tree_H_2.active = !0),
    						this.curPlayer.getComponent(Laya.Script3D).playTickTrunAni();
    					break;

    				case 3:
    					(this.tree3.active = !1),
    						this.curPlayer.getComponent(Laya.Script3D).showTreeInTicks(!0),
    						(this.tree_H_3.active = !0),
    						this.curPlayer.getComponent(Laya.Script3D).playTickTrunAni();
    			}
    		}
    		exitStageAni() {
    			this.isDebug &&
    				(console.log("exitStageAni"), console.log("gameLogic.instance.curTreeIdex == " + f.instance.curTreeIdex)),
    				(this.curPlayer.transform.position = f.instance.recordCarPosition),
    				(this.curPlayer.transform.rotation = f.instance.recordCarRotation),
    				(this.curPlayer.transform.localPosition = f.instance.recordCarLocalPosition),
    				(this.curPlayer.transform.localRotation = f.instance.recordCarLocalRotation),
    				(this.curPlayer.transform.localRotationEuler = f.instance.recordCarLocalRotationEuler),
    				(this.curCarema.transform.position = f.instance.recordCaremaPosition),
    				(this.curCarema.transform.rotation = f.instance.recordCaremaRotation),
    				(this.curCarema.transform.localPosition = f.instance.recordCaremaLocalPosition),
    				(this.curCarema.transform.localRotation = f.instance.recordCaremaLocalRotation),
    				(this.curCarema.transform.localRotationEuler = f.instance.recordCaremaLocalRotationEuler),
    				this.curPlayer.getComponent(Laya.Script3D).showTreeInTicks(!1),
    				this.curPlayer.getComponent(Laya.Script3D).setTickToInit(),
    				(f.instance.isAniTouchEnable = !1),
    				(f.instance.isStartStageAni = !1),
    				$.instance.shwoAllBtn(!0);
    			let e = 0;
    			switch (
    			((e = this._manager.isTree1Damaged
    				? this._manager.isTree2Damaged
    					? this._manager.isTree3Damaged
    						? 0
    						: 3
    					: 2
    				: 1),
    				(this._manager.curDiggerPos = e),
    				(f.instance.isShowDiggerPosSign = !0),
    				$.instance.shwoFadeOut(),
    				f.instance.curTreeIdex)
    			) {
    				case 1:
    					this.shwoTree1Light(!1);
    					break;

    				case 2:
    					this.shwoTree2Light(!1);
    					break;

    				case 3:
    					this.shwoTree3Light(!1);
    			}
    		}
    		exitStageProcess() {
    			this.shwoTree1Light(!1),
    				this.shwoTree2Light(!1),
    				this.shwoTree3Light(!1),
    				this.particleDropTreePre && this.particleDropTreePre.destroy(),
    				this.tree1 && (this.tree1.removeSelf(), Laya.Pool.recover("stage2tree", this.tree1), (this.tree1 = null)),
    				this.tree2 && (this.tree2.removeSelf(), Laya.Pool.recover("stage2tree", this.tree2), (this.tree2 = null)),
    				this.tree3 && (this.tree3.removeSelf(), Laya.Pool.recover("stage2tree", this.tree3), (this.tree3 = null)),
    				this.treeInTicks && (this.treeInTicks.removeSelf(), Laya.Pool.recover("treeInTick", this.treeInTicks)),
    				this.treePrefab && this.treePrefab.destroy(),
    				this.tree_light1 &&
    				(this.tree_light1.removeSelf(),
    					Laya.Pool.recover("stage2treeLight", this.tree_light1),
    					(this.tree_light1 = null)),
    				this.tree_light2 &&
    				(this.tree_light2.removeSelf(),
    					Laya.Pool.recover("stage2treeLight", this.tree_light2),
    					(this.tree_light2 = null)),
    				this.tree_light3 &&
    				(this.tree_light3.removeSelf(),
    					Laya.Pool.recover("stage2treeLight", this.tree_light3),
    					(this.tree_light3 = null)),
    				this.treeLightPrefab && this.treeLightPrefab.destroy(),
    				this.tree_H_1 &&
    				(this.tree_H_1.removeSelf(), Laya.Pool.recover("stage2treeH", this.tree_H_1), (this.tree_H_1 = null)),
    				this.tree_H_2 &&
    				(this.tree_H_2.removeSelf(), Laya.Pool.recover("stage2treeH", this.tree_H_2), (this.tree_H_2 = null)),
    				this.tree_H_3 &&
    				(this.tree_H_3.removeSelf(), Laya.Pool.recover("stage2treeH", this.tree_H_3), (this.tree_H_3 = null)),
    				this.tree_H_Prefab && this.tree_H_Prefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    				Laya.stage.off("CreateDropTree1Particle", this, this.spawnDropTreeParticle);
    		}
    		spawnDropTreeParticle(e) {
    			this.isDebug && (console.log("spawnDropSmokeParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("Particle3", this.creatFun, this);
    			(t.transform.position = e),
    				(t.transform.localPosition = e),
    				this.curScene.addChild(t),
    				this.isDebug && console.log(t),
    				Laya.timer.once(3e3, this, function () {
    					this.isDebug && console.log("撒落完成"), t.removeSelf(), Laya.Pool.recover("Particle3", t);
    				});
    		}
    		creatFun() {
    			return (
    				this.isDebug && console.log("creatFun"), Laya.Sprite3D.instantiate(this.particleDropTreePre, this.curScene)
    			);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.poslight1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		poslight1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.poslight1End2),
    						0
    					)));
    		}
    		poslight1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.poslight1End1),
    						0
    					)));
    		}
    	}
    	class se extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.targePos = new Laya.Vector3(1.426, 0.273, 0.121)),
    				(this.diggerPos = new Laya.Vector3(1.746, 0.112, -0.03)),
    				(this.diggerPos1 = new Laya.Vector3(1.734, 0.039, 0.282)),
    				(this.diggerPos2 = new Laya.Vector3(1.986, 0.112, 0.066)),
    				(this.house1 = null),
    				(this.house2 = null),
    				(this.house3 = null),
    				(this.house1Animator = null),
    				(this.house2Animator = null),
    				(this.house3Animator = null),
    				(this.particleSmokePre = null),
    				(this.pos_light = null),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new se()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage1 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/house_cracks_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/house_cracks_2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/house_cracks_3.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage1 === onPreLoadFinish"),
    				(this.house1 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/house_cracks_1.lh")),
    				(this.house2 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/house_cracks_2.lh")),
    				(this.house3 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/house_cracks_3.lh")),
    				this.curScene.addChild(this.house1),
    				this.curScene.addChild(this.house2),
    				this.curScene.addChild(this.house3);
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh");
    			(e.transform.localScaleX = 0.1),
    				(e.transform.localScaleY = 0.1),
    				(e.transform.localScaleZ = 0.1),
    				(this.particleSmokePre = Laya.Sprite3D.instantiate(e)),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		initStage() {
    			this.isDebug && console.log("stage6 === initStage"),
    				this.isDebug &&
    				(console.log("this.house1.numChildren == " + this.house1.numChildren),
    					console.log("this.house2.numChildren == " + this.house2.numChildren),
    					console.log("this.house3.numChildren == " + this.house3.numChildren));
    			for (let e = 0; e < this.house1.numChildren; e++) this.house1.getChildAt(e).active = !0;
    			for (let e = 0; e < this.house2.numChildren; e++) this.house2.getChildAt(e).active = !0;
    			for (let e = 0; e < this.house3.numChildren; e++) this.house3.getChildAt(e).active = !0;
    			(this._manager.house1DamageCount = 0),
    				(this._manager.house2DamageCount = 0),
    				(this._manager.house3DamageCount = 0),
    				(this._manager.isHouse1Damaged = !1),
    				(this._manager.isHouse2Damaged = !1),
    				(this._manager.isHouse3Damaged = !1),
    				this.initHouseAni(),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    				(f.instance.isHaveDirtInBucket = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(1.4289696528677662, 0.003, -1.0811741122193588)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, -0.021581856411113685, -0, 0.999767084612136)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(1.4289696528677662, 0.003, -1.0811741122193588)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, -0.021581856411113685, -0, 0.999767084612136)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initHouseAni() {
    			this.isDebug && console.log("initHouseAni"),
    				this.house1Animator || (this.house1Animator = this.house1.getComponent(Laya.Animator)),
    				this.house2Animator || (this.house2Animator = this.house2.getComponent(Laya.Animator)),
    				this.house3Animator || (this.house3Animator = this.house3.getComponent(Laya.Animator));
    		}
    		playHouse1Ani() {
    			this.isDebug && console.log("playHouse1Ani"),
    				this.house1Animator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					this.house1Animator.getControllerLayer(0).getAnimatorState("action").addScript(ie),
    					(this.house1Animator.getControllerLayer(0).getAnimatorState("action").clip.islooping = !1),
    					this.house1Animator.play("action", 0, 0),
    					Gt.instance.VibrateLong(),
    					this.spawnSmokeParticle(
    						new Laya.Vector3(this.house1.transform.localPositionX, 0, this.house1.transform.localPositionZ)
    					));
    		}
    		playHouse2Ani() {
    			this.isDebug && console.log("playHouse2Ani"),
    				this.house2Animator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					this.house2Animator.getControllerLayer(0).getAnimatorState("action").addScript(ae),
    					(this.house2Animator.getControllerLayer(0).getAnimatorState("action").clip.islooping = !1),
    					this.house2Animator.play("action", 0, 0),
    					Gt.instance.VibrateLong(),
    					this.spawnSmokeParticle(
    						new Laya.Vector3(this.house2.transform.localPositionX, 0, this.house2.transform.localPositionZ)
    					));
    		}
    		playHouse3Ani() {
    			this.isDebug && console.log("playHouse3Ani"),
    				this.house3Animator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					this.house3Animator.getControllerLayer(0).getAnimatorState("action").addScript(ne),
    					(this.house3Animator.getControllerLayer(0).getAnimatorState("action").clip.islooping = !1),
    					this.house3Animator.play("action", 0, 0),
    					Gt.instance.VibrateLong(),
    					this.spawnSmokeParticle(
    						new Laya.Vector3(this.house3.transform.localPositionX, 0, this.house3.transform.localPositionZ)
    					));
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 1.329 &&
    				this.curPlayer.transform.localPositionX <= 1.829 + 0.5 &&
    				this.curPlayer.transform.localPositionZ <= 0.635 &&
    				this.curPlayer.transform.localPositionZ >= -0.365 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(this._manager.curDiggerPos = 1),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showDiggerPos(e) {
    			switch (e) {
    				case 1:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    					break;

    				case 2:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos1, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    					break;

    				case 3:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos2, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    			}
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.house1.getChildByName(t).active &&
    						((Ie.instance.house1DamageCount += 1), (this.house1.getChildByName(t).active = !1));
    					break;

    				case 2:
    					this.house2.getChildByName(t).active &&
    						((Ie.instance.house2DamageCount += 1), (this.house2.getChildByName(t).active = !1));
    					break;

    				case 3:
    					this.house3.getChildByName(t).active &&
    						((Ie.instance.house3DamageCount += 1), (this.house3.getChildByName(t).active = !1));
    			}
    		}
    		exitStageProcess() {
    			if (
    				(this.house1 && (this.house1.removeSelf(), this.house1.destroy()),
    					this.house2 && (this.house2.removeSelf(), this.house2.destroy()),
    					this.house3 && (this.house3.removeSelf(), this.house3.destroy()),
    					this.house1Animator && (this.house1Animator.destroy(), (this.house1Animator = null)),
    					this.house2Animator && (this.house2Animator.destroy(), (this.house2Animator = null)),
    					this.house3Animator && (this.house3Animator.destroy(), (this.house3Animator = null)),
    					this.particleSmokePre && this.particleSmokePre.destroy(),
    					this.pos_light &&
    					(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    					this.curScene.getChildByName("smokeParticle"))
    			) {
    				let e = this.curScene.getChildByName("smokeParticle");
    				e.removeSelf(), Laya.Pool.recover("Particle2", e);
    			}
    		}
    		spawnSmokeParticle(e) {
    			this.isDebug && (console.log("spawnSmokeParticle"), console.log(e)),
    				this.isDebug && console.log(this.particleSmokePre);
    			let t = Laya.Pool.getItemByCreateFun("Particle2", this.creatFun1, this);
    			(t.name = "smokeParticle"),
    				t && this.curScene.addChild(t),
    				(t.transform.localScale = new Laya.Vector3(0.15, 0.15, 0.15)),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("冒烟完成1"), t && (t.removeSelf(), Laya.Pool.recover("Particle2", t));
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleSmokePre, this.curScene);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class ie extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() {
    			console.log("house1Ani 动画开始播放了");
    		}
    		onStateUpdate() {
    			console.log("house1Ani 动画状态更新了");
    		}
    		onStateExit() {
    			console.log("house1Ani 动画退出了");
    		}
    	}
    	class ae extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() {
    			console.log("house2Ani 动画开始播放了");
    		}
    		onStateUpdate() {
    			console.log("house2Ani 动画状态更新了");
    		}
    		onStateExit() {
    			console.log("house2Ani 动画退出了");
    		}
    	}
    	class ne extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() {
    			console.log("house3Ani 动画开始播放了");
    		}
    		onStateUpdate() {
    			console.log("house3Ani 动画状态更新了");
    		}
    		onStateExit() {
    			console.log("house3Ani 动画退出了");
    		}
    	}
    	class oe extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.dirtPrefab = null),
    				(this.dirt_1 = null),
    				(this.dirt_2 = null),
    				(this.dirt_3 = null),
    				(this.particleDropSmokePre = null),
    				(this.particleSmokePre = null),
    				(this.tiggerNode = null),
    				(this.truck = null),
    				(this.pos_light = null),
    				(this.targePos = new Laya.Vector3(2.56, 0.039, -2.901)),
    				(this.diggerPos = new Laya.Vector3(2.559, 0.039, -2.494)),
    				(this.placePos = new Laya.Vector3(2.213, 0.135, -2.623)),
    				(this.truck_dirt_1 = null),
    				(this.truck_dirt_2 = null),
    				(this.truck_dirt_3 = null),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new oe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage1 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/dirt_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage1 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/dirt_1.lh");
    			(this.dirtPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.dirt_1 = Laya.Pool.getItemByCreateFun("dirt", this.creatDirtFun, this)),
    				(this.dirt_1.name = "dirt_1"),
    				(this.dirt_1.active = !0),
    				(this.dirt_2 = Laya.Pool.getItemByCreateFun("dirt", this.creatDirtFun, this)),
    				(this.dirt_2.name = "dirt_2"),
    				(this.dirt_2.active = !0),
    				(this.dirt_3 = Laya.Pool.getItemByCreateFun("dirt", this.creatDirtFun, this)),
    				(this.dirt_3.name = "dirt_3"),
    				(this.dirt_3.active = !0),
    				this.curScene.addChild(this.dirt_1),
    				this.curScene.addChild(this.dirt_2),
    				this.curScene.addChild(this.dirt_3),
    				(this.dirt_1.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_2.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_3.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh");
    			this.particleDropSmokePre = Laya.Sprite3D.instantiate(t);
    			let s = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh");
    			(s.transform.localScaleX = 0.1),
    				(s.transform.localScaleY = 0.1),
    				(s.transform.localScaleZ = 0.1),
    				(this.particleSmokePre = Laya.Sprite3D.instantiate(s)),
    				(this.tiggerNode = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh")),
    				this.curScene.addChild(this.tiggerNode),
    				(this.tiggerNode.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck.lh")),
    				this.curScene.addChild(this.truck),
    				(this.truck_dirt_1 = this.truck.getChildByName("dirt_1")),
    				(this.truck_dirt_2 = this.truck.getChildByName("dirt_2")),
    				(this.truck_dirt_3 = this.truck.getChildByName("dirt_3")),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatDirtFun() {
    			return this.isDebug && console.log("creatDirtFun"), Laya.Sprite3D.instantiate(this.dirtPrefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initStage() {
    			this.isDebug && console.log("stage1 === initStage"),
    				(this.truck.transform.localPosition = new Laya.Vector3(2.138092, 1.175705e-7, -2.689699)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, 45, 0)),
    				(this.tiggerNode.transform.localPosition = new Laya.Vector3(2.197489, 0.0961, -2.630302)),
    				(this.tiggerNode.transform.localRotationEuler = new Laya.Vector3(0, 45, 0)),
    				(this.dirt_1.transform.localPosition = new Laya.Vector3(2.41, -0.032, -2.469)),
    				(this.dirt_1.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_2.transform.localPosition = new Laya.Vector3(2.546, -0.045, -2.497)),
    				(this.dirt_2.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_3.transform.localPosition = new Laya.Vector3(2.642, -0.056, -2.489)),
    				(this.dirt_3.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    				(f.instance.isHaveDirtInBucket = !1),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showTruckDirt(e) {
    			switch (
    			(this.isDebug && console.log("showTruckDirt === times == " + e),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				e)
    			) {
    				case 1:
    					this.truck_dirt_3.active = !0;
    					break;

    				case 2:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0);
    					break;

    				case 3:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0), (this.truck_dirt_1.active = !0);
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 2.114 &&
    				this.curPlayer.transform.localPositionX <= 2.914 &&
    				this.curPlayer.transform.localPositionZ <= -2.22 &&
    				this.curPlayer.transform.localPositionZ >= -3.22 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里挖土", e.x, e.y);
    			}
    		}
    		showPlacePos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.placePos, this.curCarema.projectionViewMatrix, this._outPos2);
    				let e = new Laya.Vector2(this._outPos2.x / Laya.stage.clientScaleX, this._outPos2.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    			}
    		}
    		showTruckSmoke(e) {
    			e && this.spawnSmokeParticle(new Laya.Vector3(2.1885, 0.072, -2.6225));
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.dirt_1.active = !1;
    					break;

    				case 2:
    					this.dirt_2.active = !1;
    					break;

    				case 3:
    					this.dirt_3.active = !1;
    			}
    		}
    		exitStageProcess() {
    			if (
    				(this.particleDropSmokePre && this.particleDropSmokePre.destroy(),
    					this.particleSmokePre && this.particleSmokePre.destroy(),
    					this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    					this.dirt_1 && (this.dirt_1.removeSelf(), Laya.Pool.recover("dirt", this.dirt_1)),
    					this.dirt_2 && (this.dirt_2.removeSelf(), Laya.Pool.recover("dirt", this.dirt_2)),
    					this.dirt_3 && (this.dirt_3.removeSelf(), Laya.Pool.recover("dirt", this.dirt_3)),
    					this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    					this.dirtPrefab && this.dirtPrefab.destroy(),
    					this.pos_light &&
    					(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    					this.curScene.getChildByName("smokeParticle"))
    			) {
    				let e = this.curScene.getChildByName("smokeParticle");
    				e.removeSelf(), Laya.Pool.recover("Particle2", e);
    			}
    			Laya.stage.off("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		spawnDropSmokeParticle(e) {
    			this.isDebug && (console.log("spawnDropSmokeParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("Particle1", this.creatFun, this);
    			(t.transform.position = e),
    				(t.transform.localPosition = e),
    				this.curScene.addChild(t),
    				console.log(t),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("撒落完成"),
    						t.removeSelf(),
    						Laya.Pool.recover("Particle1", t),
    						Ie.instance.showTruckSmoke(!1),
    						this.curPlayer && this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    						this.isDebug &&
    						(console.log("gameLogic.instance.curStageProcess == " + f.instance.curStageProcess),
    							console.log("11111111")),
    						(f.instance.curStageProcess += 1),
    						this.isDebug && console.log("gameLogic.instance.curStageProcess =2= " + f.instance.curStageProcess),
    						(L.instance.playerInfo.stage4Times += 1),
    						L.instance.savePlayerInfoToLocalCache(),
    						console.log("gameLogic.instance.curStageProcess =1= " + f.instance.curStageProcess),
    						$.instance.setTaskCurProgress(f.instance.curStageProcess),
    						v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    						f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    							? (Ie.instance.isChallengeLevel()
    								? D.SendEvent("挑战任务4：挖掘基础。完成次数统计", 2020, !1)
    								: D.SendEvent("普通任务4：挖掘基础。完成次数统计", 2007, !1),
    								(f.instance.isShowDiggerPosSign = !1),
    								(f.instance.isShowPlacePosSign = !1),
    								(f.instance.isShowTargetPosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								$.instance.showSlider1(!1),
    								$.instance.showSlider2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.stopChecHideBox(),
    								$.instance.stopCheckQuickWin(),
    								Laya.stage.event("hideBox_ClickClose"),
    								Laya.stage.event("quickWin_ClickClose"),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    							: ((f.instance.isShowPlacePosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								(f.instance.isShowDiggerPosSign = !0)),
    						Ie.instance.showTruckDirt(f.instance.curStageProcess),
    						this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(0),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0),
    						(f.instance.isPlayWJJAni = !1);
    				});
    		}
    		creatFun() {
    			return console.log("creatFun"), Laya.Sprite3D.instantiate(this.particleDropSmokePre, this.curScene);
    		}
    		spawnSmokeParticle(e) {
    			this.isDebug && (console.log("spawnSmokeParticle"), console.log(e)),
    				this.isDebug && console.log(this.particleSmokePre);
    			let t = Laya.Pool.getItemByCreateFun("Particle2", this.creatFun1, this);
    			(t.name = "smokeParticle"),
    				(t.transform.localScale = new Laya.Vector3(0.05, 0.05, 0.1)),
    				this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("冒烟完成1"), t && (t.removeSelf(), Laya.Pool.recover("Particle2", t));
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleSmokePre, this.curScene);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class re extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.dirtPrefab = null),
    				(this.particleDropSmokePre = null),
    				(this.particleSmokePre = null),
    				(this.tiggerNode = null),
    				(this.truck = null),
    				(this.truck_dirt_1 = null),
    				(this.truck_dirt_2 = null),
    				(this.truck_dirt_3 = null),
    				(this.pos_light = null),
    				(this.targePos = new Laya.Vector3(0.171, 0.039, -0.868)),
    				(this.diggerPos = new Laya.Vector3(0.1707, 0.039, -0.7217)),
    				(this.placePos = new Laya.Vector3(-0.0639, 0.0961, -0.9127)),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new re()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage4 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/small_dirt_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage4 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/small_dirt_1.lh");
    			(this.dirtPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.dirt_1 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_1.name = "small_dirt_1"),
    				(this.dirt_1.active = !0),
    				(this.dirt_2 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_2.name = "small_dirt_2"),
    				(this.dirt_2.active = !0),
    				(this.dirt_3 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_3.name = "small_dirt_3"),
    				(this.dirt_3.active = !0),
    				(this.dirt_4 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_4.name = "small_dirt_4"),
    				(this.dirt_4.active = !0),
    				(this.dirt_5 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_5.name = "small_dirt_5"),
    				(this.dirt_5.active = !0),
    				(this.dirt_6 = Laya.Pool.getItemByCreateFun("smallDirt", this.creatDirtFun, this)),
    				(this.dirt_6.name = "small_dirt_6"),
    				(this.dirt_6.active = !0),
    				this.curScene.addChild(this.dirt_1),
    				this.curScene.addChild(this.dirt_2),
    				this.curScene.addChild(this.dirt_3),
    				this.curScene.addChild(this.dirt_4),
    				this.curScene.addChild(this.dirt_5),
    				this.curScene.addChild(this.dirt_6),
    				(this.dirt_1.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_2.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_3.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_4.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_5.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_6.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh");
    			this.particleDropSmokePre = Laya.Sprite3D.instantiate(t);
    			let s = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh");
    			(s.transform.localScaleX = 0.1),
    				(s.transform.localScaleY = 0.1),
    				(s.transform.localScaleZ = 0.1),
    				(this.particleSmokePre = Laya.Sprite3D.instantiate(s)),
    				(this.tiggerNode = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh")),
    				this.curScene.addChild(this.tiggerNode),
    				(this.tiggerNode.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck.lh")),
    				this.curScene.addChild(this.truck),
    				(this.truck_dirt_1 = this.truck.getChildByName("dirt_1")),
    				(this.truck_dirt_2 = this.truck.getChildByName("dirt_2")),
    				(this.truck_dirt_3 = this.truck.getChildByName("dirt_3")),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatDirtFun() {
    			return this.isDebug && console.log("creatDirtFun"), Laya.Sprite3D.instantiate(this.dirtPrefab, this.curScene);
    		}
    		initStage() {
    			this.isDebug && console.log("stage4 === initStage"),
    				(this.truck.transform.localPosition = new Laya.Vector3(-0.1553, 1.175705e-7, -0.906)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.tiggerNode.transform.localPosition = new Laya.Vector3(-0.0639, 0.0961, -0.9127)),
    				(this.tiggerNode.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.dirt_1.transform.localPosition = new Laya.Vector3(0.1604025, -0.0123, -0.6931)),
    				(this.dirt_1.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_2.transform.localPosition = new Laya.Vector3(0.2507, -0.02300388, -0.7726712)),
    				(this.dirt_2.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_3.transform.localPosition = new Laya.Vector3(0.14, -0.023, -0.789)),
    				(this.dirt_3.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_4.transform.localPosition = new Laya.Vector3(0.0422, -0.023, -0.688)),
    				(this.dirt_4.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_5.transform.localPosition = new Laya.Vector3(0.086, -0.023, -0.731)),
    				(this.dirt_5.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_6.transform.localPosition = new Laya.Vector3(0.226, -0.023, -0.7016)),
    				(this.dirt_6.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    				(f.instance.isHaveDirtInBucket = !1),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showTruckDirt(e) {
    			switch (
    			(this.isDebug && console.log("showTruckDirt === times == " + e),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				e)
    			) {
    				case 1:
    					this.truck_dirt_3.active = !0;
    					break;

    				case 2:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0);
    					break;

    				case 3:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0), (this.truck_dirt_1.active = !0);
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= -0.335 &&
    				this.curPlayer.transform.localPositionX <= 0.465 &&
    				this.curPlayer.transform.localPositionZ <= 0.4 - 0.853 &&
    				this.curPlayer.transform.localPositionZ >= -0.853 - 0.4 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里挖土", e.x, e.y);
    			}
    		}
    		showPlacePos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.placePos, this.curCarema.projectionViewMatrix, this._outPos2);
    				let e = new Laya.Vector2(this._outPos2.x / Laya.stage.clientScaleX, this._outPos2.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    			}
    		}
    		showTruckSmoke(e) {
    			e && this.spawnSmokeParticle(new Laya.Vector3(-0.0639, 0.072, -0.9127));
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.dirt_1.active = !1;
    					break;

    				case 2:
    					this.dirt_2.active = !1;
    					break;

    				case 3:
    					this.dirt_3.active = !1;
    					break;

    				case 4:
    					this.dirt_4.active = !1;
    					break;

    				case 5:
    					this.dirt_5.active = !1;
    					break;

    				case 6:
    					this.dirt_6.active = !1;
    			}
    		}
    		exitStageProcess() {
    			if (
    				(this.particleDropSmokePre && this.particleDropSmokePre.destroy(),
    					this.particleSmokePre && this.particleSmokePre.destroy(),
    					this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    					this.dirt_1 && (this.dirt_1.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_1)),
    					this.dirt_2 && (this.dirt_2.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_2)),
    					this.dirt_3 && (this.dirt_3.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_3)),
    					this.dirt_4 && (this.dirt_4.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_4)),
    					this.dirt_5 && (this.dirt_5.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_5)),
    					this.dirt_6 && (this.dirt_6.removeSelf(), Laya.Pool.recover("smallDirt", this.dirt_6)),
    					this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    					this.dirtPrefab && this.dirtPrefab.destroy(),
    					this.pos_light &&
    					(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    					this.curScene.getChildByName("smokeParticle"))
    			) {
    				let e = this.curScene.getChildByName("smokeParticle");
    				e.removeSelf(), Laya.Pool.recover("Particle2", e);
    			}
    			Laya.stage.off("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		spawnDropSmokeParticle(e) {
    			this.isDebug && (console.log("spawnDropSmokeParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("Particle1", this.creatFun, this);
    			(t.transform.position = e),
    				(t.transform.localPosition = e),
    				this.curScene.addChild(t),
    				console.log(t),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("撒落完成"),
    						t.removeSelf(),
    						Laya.Pool.recover("Particle1", t),
    						Ie.instance.showTruckSmoke(!1),
    						this.curPlayer && this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    						(f.instance.curStageProcess += 1),
    						(L.instance.playerInfo.stage5Times += 1),
    						L.instance.savePlayerInfoToLocalCache(),
    						this.isDebug &&
    						(console.log("gameLogic.instance.curStageProcess == " + f.instance.curStageProcess),
    							console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    						$.instance.setTaskCurProgress(f.instance.curStageProcess),
    						v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    						f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    							? (Ie.instance.isChallengeLevel()
    								? D.SendEvent("挑战任务5：管道挖掘。完成次数统计", 2021, !1)
    								: D.SendEvent("普通任务5：管道挖掘。完成次数统计", 2008, !1),
    								(f.instance.isShowDiggerPosSign = !1),
    								(f.instance.isShowPlacePosSign = !1),
    								(f.instance.isShowTargetPosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								$.instance.showSlider1(!1),
    								$.instance.showSlider2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.stopChecHideBox(),
    								$.instance.stopCheckQuickWin(),
    								Laya.stage.event("hideBox_ClickClose"),
    								Laya.stage.event("quickWin_ClickClose"),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    							: ((f.instance.isShowPlacePosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								(f.instance.isShowDiggerPosSign = !0)),
    						Ie.instance.showTruckDirt(f.instance.curStageProcess),
    						this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(0),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0),
    						(f.instance.isPlayWJJAni = !1);
    				});
    		}
    		creatFun() {
    			return console.log("creatFun"), Laya.Sprite3D.instantiate(this.particleDropSmokePre, this.curScene);
    		}
    		spawnSmokeParticle(e) {
    			this.isDebug && (console.log("spawnSmokeParticle"), console.log(e)),
    				this.isDebug && console.log(this.particleSmokePre);
    			let t = Laya.Pool.getItemByCreateFun("Particle2", this.creatFun1, this);
    			(t.name = "smokeParticle"),
    				this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("冒烟完成"), t && (t.removeSelf(), Laya.Pool.recover("Particle2", t));
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleSmokePre, this.curScene);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class ce extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.dirtPrefab = null),
    				(this.dirt_1 = null),
    				(this.dirt_2 = null),
    				(this.dirt_3 = null),
    				(this.particleDropSmokePre = null),
    				(this.particleSmokePre = null),
    				(this.tiggerNode = null),
    				(this.truck = null),
    				(this.pos_light = null),
    				(this.targePos = new Laya.Vector3(-2.307, 0.039, -0.786)),
    				(this.diggerPos = new Laya.Vector3(-2.594, 0.039, -1.058)),
    				(this.placePos = new Laya.Vector3(-2.0515, 0.135, -1.1221)),
    				(this.truck_dirt_1 = null),
    				(this.truck_dirt_2 = null),
    				(this.truck_dirt_3 = null),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ce()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage7 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/big_dirt_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage7 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/big_dirt_1.lh");
    			(this.dirtPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.dirt_1 = Laya.Pool.getItemByCreateFun("bigDirt", this.creatDirtFun, this)),
    				(this.dirt_1.name = "big_dirt_1"),
    				(this.dirt_1.active = !0),
    				(this.dirt_2 = Laya.Pool.getItemByCreateFun("bigDirt", this.creatDirtFun, this)),
    				(this.dirt_2.name = "big_dirt_2"),
    				(this.dirt_2.active = !0),
    				(this.dirt_3 = Laya.Pool.getItemByCreateFun("bigDirt", this.creatDirtFun, this)),
    				(this.dirt_3.name = "big_dirt_3"),
    				(this.dirt_3.active = !0),
    				this.curScene.addChild(this.dirt_1),
    				this.curScene.addChild(this.dirt_2),
    				this.curScene.addChild(this.dirt_3),
    				(this.dirt_1.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_2.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.dirt_3.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh");
    			this.particleDropSmokePre = Laya.Sprite3D.instantiate(t);
    			let s = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh");
    			(s.transform.localScaleX = 0.1),
    				(s.transform.localScaleY = 0.1),
    				(s.transform.localScaleZ = 0.1),
    				(this.particleSmokePre = Laya.Sprite3D.instantiate(s)),
    				(this.tiggerNode = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh")),
    				this.curScene.addChild(this.tiggerNode),
    				(this.tiggerNode.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck.lh")),
    				this.curScene.addChild(this.truck),
    				(this.truck_dirt_1 = this.truck.getChildByName("dirt_1")),
    				(this.truck_dirt_2 = this.truck.getChildByName("dirt_2")),
    				(this.truck_dirt_3 = this.truck.getChildByName("dirt_3")),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatDirtFun() {
    			return this.isDebug && console.log("creatDirtFun"), Laya.Sprite3D.instantiate(this.dirtPrefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage7 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initStage() {
    			this.isDebug && console.log("stage7 === initStage"),
    				(this.truck.transform.localPosition = new Laya.Vector3(-1.968, 1.175705e-7, -1.122)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.tiggerNode.transform.localPosition = new Laya.Vector3(-2.063, 0.0961, -1.134)),
    				(this.tiggerNode.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.dirt_1.transform.localPosition = new Laya.Vector3(-2.662, -0.033, -0.843)),
    				(this.dirt_1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.dirt_2.transform.localPosition = new Laya.Vector3(-2.491, -0.033, -1.283355)),
    				(this.dirt_2.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.dirt_3.transform.localPosition = new Laya.Vector3(-2.559, -0.033, -1.023)),
    				(this.dirt_3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    				(f.instance.isHaveDirtInBucket = !1),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showTruckDirt(e) {
    			switch (
    			(this.isDebug && console.log("showTruckDirt === times == " + e),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				e)
    			) {
    				case 1:
    					this.truck_dirt_3.active = !0;
    					break;

    				case 2:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0);
    					break;

    				case 3:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0), (this.truck_dirt_1.active = !0);
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= -2.541 &&
    				this.curPlayer.transform.localPositionX <= -1.941 &&
    				this.curPlayer.transform.localPositionZ <= -0.532 &&
    				this.curPlayer.transform.localPositionZ >= -1.132 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里挖土", e.x, e.y);
    			}
    		}
    		showPlacePos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.placePos, this.curCarema.projectionViewMatrix, this._outPos2);
    				let e = new Laya.Vector2(this._outPos2.x / Laya.stage.clientScaleX, this._outPos2.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showPlaceSign(!0, "放到这里", e.x, e.y);
    			}
    		}
    		showTruckSmoke(e) {
    			e && this.spawnSmokeParticle(new Laya.Vector3(-2.0515, 0.072, -1.1221));
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.dirt_1.active = !1;
    					break;

    				case 2:
    					this.dirt_2.active = !1;
    					break;

    				case 3:
    					this.dirt_3.active = !1;
    			}
    		}
    		exitStageProcess() {
    			if (
    				(this.particleDropSmokePre && this.particleDropSmokePre.destroy(),
    					this.particleSmokePre && this.particleSmokePre.destroy(),
    					this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    					this.dirt_1 && (this.dirt_1.removeSelf(), Laya.Pool.recover("bigDirt", this.dirt_1)),
    					this.dirt_2 && (this.dirt_2.removeSelf(), Laya.Pool.recover("bigDirt", this.dirt_2)),
    					this.dirt_3 && (this.dirt_3.removeSelf(), Laya.Pool.recover("bigDirt", this.dirt_3)),
    					this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    					this.dirtPrefab && this.dirtPrefab.destroy(),
    					this.pos_light &&
    					(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    					this.curScene.getChildByName("smokeParticle"))
    			) {
    				let e = this.curScene.getChildByName("smokeParticle");
    				e.removeSelf(), Laya.Pool.recover("Particle2", e);
    			}
    			Laya.stage.off("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		spawnDropSmokeParticle(e) {
    			this.isDebug && (console.log("spawnDropSmokeParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("Particle1", this.creatFun, this);
    			(t.transform.position = e),
    				(t.transform.localPosition = e),
    				this.curScene.addChild(t),
    				console.log(t),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("撒落完成"),
    						t.removeSelf(),
    						Laya.Pool.recover("Particle1", t),
    						Ie.instance.showTruckSmoke(!1),
    						this.curPlayer && this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    						(f.instance.curStageProcess += 1),
    						(L.instance.playerInfo.stage7Times += 1),
    						L.instance.savePlayerInfoToLocalCache(),
    						this.isDebug &&
    						(console.log("gameLogic.instance.curStageProcess == " + f.instance.curStageProcess),
    							console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    						$.instance.setTaskCurProgress(f.instance.curStageProcess),
    						v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    						f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    							? (Ie.instance.isChallengeLevel()
    								? D.SendEvent("挑战任务7：河流挖掘。完成次数统计", 2023, !1)
    								: D.SendEvent("普通任务7：河流挖掘。完成次数统计", 2010, !1),
    								(f.instance.isShowDiggerPosSign = !1),
    								(f.instance.isShowPlacePosSign = !1),
    								(f.instance.isShowTargetPosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								$.instance.showSlider1(!1),
    								$.instance.showSlider2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.stopChecHideBox(),
    								$.instance.stopCheckQuickWin(),
    								Laya.stage.event("hideBox_ClickClose"),
    								Laya.stage.event("quickWin_ClickClose"),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    							: ((f.instance.isShowPlacePosSign = !1),
    								$.instance.showPlaceSign(!1, "", 0, 0),
    								(f.instance.isShowDiggerPosSign = !0)),
    						Ie.instance.showTruckDirt(f.instance.curStageProcess),
    						this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(0),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0),
    						(f.instance.isPlayWJJAni = !1);
    				});
    		}
    		creatFun() {
    			return console.log("creatFun"), Laya.Sprite3D.instantiate(this.particleDropSmokePre, this.curScene);
    		}
    		spawnSmokeParticle(e) {
    			this.isDebug && (console.log("spawnSmokeParticle"), console.log(e)),
    				this.isDebug && console.log(this.particleSmokePre);
    			let t = Laya.Pool.getItemByCreateFun("Particle2", this.creatFun1, this);
    			(t.name = "smokeParticle"),
    				this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("冒烟完成"), t && (t.removeSelf(), Laya.Pool.recover("Particle2", t));
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleSmokePre, this.curScene);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class he extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curState = 0), (this.wallAnimator = null);
    		}
    		onEnable() {
    			this.isDebug && console.log("baffle == onEnable"), (this.curNode = this.owner), this.initWallAni();
    		}
    		onDisable() {
    			this.wallAnimator && (this.wallAnimator.destroy(), (this.wallAnimator = null));
    		}
    		onUpdate() { }
    		initWallAni() {
    			this.isDebug && console.log("initWallAni"),
    				this.wallAnimator ||
    				((this.wallAnimator = this.curNode.getChildAt(0).getComponent(Laya.Animator)),
    					this.wallAnimator.getDefaultState().addScript(le),
    					(this.wallAnimator.getDefaultState().clip.islooping = !1));
    		}
    		playWallAni() {
    			this.isDebug && console.log("playWallAni"),
    				this.wallAnimator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					this.wallAnimator.play("action", 0, 0));
    		}
    	}
    	class le extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() {
    			console.log("wallBrickAni 动画开始播放了");
    		}
    		onStateUpdate() {
    			console.log("wallBrickAni 动画状态更新了");
    		}
    		onStateExit() {
    			console.log("wallBrickAni 动画退出了");
    		}
    	}
    	class ge extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.targePos = new Laya.Vector3(1.02, -0.023, -2.266)),
    				(this.diggerPos = new Laya.Vector3(0.9649, -5e-4, -2.2929)),
    				(this.wallPrefab = null),
    				(this.pos_light = null),
    				(this.walls = []),
    				(this.wallStates = []),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ge()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage8 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/brick_wall.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			if ((this.isDebug && console.log("stage8 === onPreLoadFinish"), this.walls.length > 0)) {
    				for (let e = 0; e < this.walls.length; e++)
    					this.walls[e].removeSelf(), Laya.Pool.recover("wall", this.walls[e]);
    				this.walls.splice(0, this.walls.length);
    			}
    			this.wallStates.length > 0 && this.wallStates.splice(0, this.wallStates.length);
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/brick_wall.lh");
    			this.wallPrefab = Laya.Sprite3D.instantiate(e);
    			for (let e = 0; e < 15; e++) {
    				let t = Laya.Pool.getItemByCreateFun("wall", this.creatWallFun, this);
    				switch (((t.getChildAt(0).name = "brick_wall" + (e + 1)), e)) {
    					case 0:
    						(t.transform.localPosition = new Laya.Vector3(0.63, 0, -1.928)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 1:
    						(t.transform.localPosition = new Laya.Vector3(0.7306, 0, -1.928)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 2:
    						(t.transform.localPosition = new Laya.Vector3(0.8312, 0, -1.928)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 3:
    						(t.transform.localPosition = new Laya.Vector3(0.9317, 0, -1.928)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 4:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -1.9935)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 5:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -2.0936)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 6:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -2.1935)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 7:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -2.2929)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 8:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -2.3931)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 9:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -2.4928)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 10:
    						(t.transform.localPosition = new Laya.Vector3(0.9649, -5e-4, -2.593)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0));
    						break;

    					case 11:
    						(t.transform.localPosition = new Laya.Vector3(0.9284, 0, -2.6586)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 12:
    						(t.transform.localPosition = new Laya.Vector3(0.8287, 0, -2.6586)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 13:
    						(t.transform.localPosition = new Laya.Vector3(0.7298, 0, -2.6586)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    						break;

    					case 14:
    						(t.transform.localPosition = new Laya.Vector3(0.6301, 0, -2.6586)),
    							(t.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    				}
    				t.addComponent(he), this.curScene.addChild(t), this.walls.push(t), this.wallStates.push(0);
    			}
    			(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatWallFun() {
    			return this.isDebug && console.log("creatDirtFun"), Laya.Sprite3D.instantiate(this.wallPrefab, this.curScene);
    		}
    		initStage() {
    			this.isDebug && console.log("stage8 === initStage"),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage7 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 0.52 &&
    				this.curPlayer.transform.localPositionX <= 1.52 &&
    				this.curPlayer.transform.localPositionZ <= -1.766 &&
    				this.curPlayer.transform.localPositionZ >= -2.766 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showSlider1(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "破坏墙壁", e.x, e.y);
    			}
    		}
    		playWallAni(e) {
    			console.log("playWallAni == index == " + e),
    				0 == this.wallStates[e] &&
    				((this.wallStates[e] = 1),
    					this.walls[e].getComponent(Laya.Script3D).playWallAni(),
    					Gt.instance.VibrateLong(),
    					(f.instance.curStageProcess += 1),
    					$.instance.setTaskCurProgress(f.instance.curStageProcess),
    					v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    					f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    					(Ie.instance.isChallengeLevel()
    						? D.SendEvent("挑战任务3：拆除墙壁。完成次数统计", 2019, !1)
    						: D.SendEvent("普通任务3：拆除墙壁。完成次数统计", 2006, !1),
    						(f.instance.isShowDiggerPosSign = !1),
    						(f.instance.isShowPlacePosSign = !1),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showDiggerSign(!1, "", 0, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    						$.instance.showControl1(!1),
    						$.instance.showControl2(!1),
    						$.instance.showSlider1(!1),
    						$.instance.showSlider2(!1),
    						(f.instance.isShowControl = !1),
    						$.instance.stopChecHideBox(),
    						$.instance.stopCheckQuickWin(),
    						Laya.stage.event("hideBox_ClickClose"),
    						Laya.stage.event("quickWin_ClickClose"),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()));
    		}
    		exitStageProcess() {
    			if (this.walls.length > 0) {
    				for (let e = 0; e < this.walls.length; e++)
    					this.walls[e].removeSelf(), Laya.Pool.recover("wall", this.walls[e]);
    				this.walls.splice(0, this.walls.length);
    			}
    			this.wallStates.length > 0 && this.wallStates.splice(0, this.wallStates.length),
    				this.wallPrefab && this.wallPrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class ue extends Laya.Script3D {
    		constructor() {
    			super(), (this.isDebug = !1), (this.stoneAnimator = null), (this.offsetY = 0);
    		}
    		onEnable() {
    			this.isDebug && console.log("baffle == onEnable"),
    				(this.curNode = this.owner),
    				(this.initPos = new Laya.Vector3(
    					this.curNode.transform.localPositionX,
    					this.curNode.transform.localPositionY,
    					this.curNode.transform.localPositionZ
    				)),
    				(this.offsetY = 10),
    				this.initStoneAni();
    		}
    		onDisable() { }
    		onUpdate() { }
    		initStoneAni() {
    			this.isDebug && console.log("initStoneAni"),
    				this.stoneAnimator ||
    				((this.stoneAnimator = this.curNode.getChildAt(0).getComponent(Laya.Animator)),
    					this.stoneAnimator.getControllerLayer(0).getAnimatorState("fragmentation").addScript(de),
    					(this.stoneAnimator.getDefaultState().clip.islooping = !1));
    		}
    		playStoneStandAni() {
    			this.isDebug && console.log("playStoneStandAni"), this.stoneAnimator && this.stoneAnimator.play("stand", 0, 0);
    		}
    		playStoneAni() {
    			this.isDebug && console.log("playStoneAni"),
    				this.stoneAnimator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					(this.stoneAnimator.getControllerLayer(0).getAnimatorState("fragmentation").clip.islooping = !1),
    					this.stoneAnimator.play("fragmentation", 0, 0));
    		}
    		playStoneShakeAni() {
    			this.isDebug && console.log("playStoneShakeAni"), this.stoneAnimator.play("shock", 0, 0);
    		}
    	}
    	class de extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() {
    			console.log("stoneBrickAni 动画开始播放了");
    		}
    		onStateUpdate() {
    			console.log("stoneBrickAni 动画状态更新了");
    		}
    		onStateExit() {
    			console.log("stoneBrickAni 动画退出了"), Ie.instance.playStageAni(3 + f.instance.curStoneIndex);
    		}
    	}
    	class _e extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this._manager = null),
    				(this.targePos = new Laya.Vector3(-2.236, 0, -1.026)),
    				(this.diggerPos1 = new Laya.Vector3(-2.834, 0, -0.709)),
    				(this.diggerPos2 = new Laya.Vector3(-2.607, 0, -1.137)),
    				(this.diggerPos3 = new Laya.Vector3(-2.492, 0, -1.383)),
    				(this.stonePrefab = null),
    				(this.riverPos1 = new Laya.Vector3(0, 0, 4.35)),
    				(this.riverPos2 = new Laya.Vector3(0, 0, 3.98)),
    				(this.riverPos3 = new Laya.Vector3(0, 0, 3.65)),
    				(this.riverPos4 = new Laya.Vector3(0, 0, 0)),
    				(this.stone1 = null),
    				(this.stone2 = null),
    				(this.stone3 = null),
    				(this.pos_light = null),
    				(this.particleStoneEffectPrefab = null),
    				(this.river = null),
    				(this.isPlayingAni = !1),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new _e()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/stone.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/stoneEffect.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("creatStoneEffectParticle", this, this.spawnStoneEffectParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage9 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/stone.lh");
    			(this.stonePrefab = Laya.Sprite3D.instantiate(e)),
    				(this.stone1 = Laya.Pool.getItemByCreateFun("stone", this.creatStoneFun, this)),
    				console.log(this.stone1),
    				(this.stone1.getChildAt(0).name = "stone1"),
    				null == this.stone1.getComponent(ue) && this.stone1.addComponent(ue),
    				(this.stone1.active = !0),
    				this.curScene.addChild(this.stone1),
    				(this.stone2 = Laya.Pool.getItemByCreateFun("stone", this.creatStoneFun, this)),
    				(this.stone2.getChildAt(0).name = "stone2"),
    				null == this.stone2.getComponent(ue) && this.stone2.addComponent(ue),
    				(this.stone2.active = !0),
    				this.curScene.addChild(this.stone2),
    				(this.stone3 = Laya.Pool.getItemByCreateFun("stone", this.creatStoneFun, this)),
    				(this.stone3.getChildAt(0).name = "stone3"),
    				null == this.stone3.getComponent(ue) && this.stone3.addComponent(ue),
    				(this.stone3.active = !0),
    				this.curScene.addChild(this.stone3);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/stoneEffect.lh");
    			(this.particleStoneEffectPrefab = Laya.Sprite3D.instantiate(t)),
    				(this.river = this.curMap.getChildByName("river")),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatStoneFun() {
    			return this.isDebug && console.log("creatStoneFun"), Laya.Sprite3D.instantiate(this.stonePrefab, this.curScene);
    		}
    		initStage() {
    			(this.stone1.transform.localPosition = new Laya.Vector3(-2.834, 0, -0.709)),
    				(this.stone1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.stone2.transform.localPosition = new Laya.Vector3(-2.607, 0, -1.137)),
    				(this.stone2.transform.localRotationEuler = new Laya.Vector3(0, 180, 0)),
    				(this.stone3.transform.localPosition = new Laya.Vector3(-2.492, 0, -1.383)),
    				(this.stone3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				(this.river.transform.localPosition = this.riverPos1),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				(Ie.instance.curDiggerPos = 1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage7 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showDiggerPos(e) {
    			switch (e) {
    				case 1:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos1, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    					break;

    				case 2:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos2, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    					break;

    				case 3:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos3, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= -2.984 &&
    				this.curPlayer.transform.localPositionX <= 0.6 - 2.384 &&
    				this.curPlayer.transform.localPositionZ <= 0.6 - 1.026 &&
    				this.curPlayer.transform.localPositionZ >= -1.626 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		spawnStoneEffectParticle(e) {
    			this.isDebug && (console.log("spawnStoneEffectParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("stoneEffect", this.creatFun1, this);
    			this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					switch (
    					(this.isDebug && console.log("冒烟完成1"),
    						t.removeSelf(),
    						Laya.Pool.recover("stoneEffect", t),
    						f.instance.isPlayDamageStongeSound &&
    						((f.instance.isPlayDamageStongeSound = !1),
    							L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_14.mp3")),
    						f.instance.curStoneIndex)
    					) {
    						case 1:
    							this.stone1.getComponent(Laya.Script3D).playStoneAni();
    							break;

    						case 2:
    							this.stone2.getComponent(Laya.Script3D).playStoneAni();
    							break;

    						case 3:
    							this.stone3.getComponent(Laya.Script3D).playStoneAni();
    					}
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleStoneEffectPrefab);
    		}
    		exitStageProcess() {
    			f.instance.isPlayDamageStongeSound &&
    				((f.instance.isPlayDamageStongeSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_14.mp3")),
    				this.stone1 && (this.stone1.removeSelf(), Laya.Pool.recover("stone", this.stone1)),
    				this.stone2 && (this.stone2.removeSelf(), Laya.Pool.recover("stone", this.stone2)),
    				this.stone3 && (this.stone3.removeSelf(), Laya.Pool.recover("stone", this.stone3)),
    				this.stonePrefab && this.stonePrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    				Laya.stage.off("creatStoneEffectParticle", this, this.spawnStoneEffectParticle);
    		}
    		playStageAni(e) {
    			switch (e) {
    				case 1:
    				case 2:
    				case 3:
    					if (!this.isPlayingAni) {
    						switch (
    						((this.isPlayingAni = !0),
    							(f.instance.curStoneIndex = e),
    							(f.instance.isAniTouchEnable = !0),
    							(f.instance.curSpeed = 0),
    							(f.instance.isForward = !1),
    							(f.instance.isBackAway = !1),
    							(f.instance.isRunFont = !1),
    							(f.instance.isRunBack = !1),
    							(f.instance.isTrunArm = -1),
    							(f.instance.isTrunBackArm = -1),
    							(f.instance.isTrunFrontArm = -1),
    							f.instance.isPlayArmPushSound &&
    							((f.instance.isPlayArmPushSound = !1),
    								L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    							f.instance.isPlayArmRotateSound &&
    							((f.instance.isPlayArmRotateSound = !1),
    								L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    							f.instance.isPlayCarMoveSound &&
    							((f.instance.isPlayCarMoveSound = !1),
    								L.instance.settingInfo.isSound &&
    								(Laya.Browser.onIOS
    									? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    									: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3"))),
    							$.instance.showControl1(!1),
    							$.instance.showControl2(!1),
    							(f.instance.isShowControl = !1),
    							$.instance.showAllControlKey(!1),
    							e)
    						) {
    							case 1:
    								this.stone1.getComponent(Laya.Script3D).playStoneShakeAni();
    								break;

    							case 2:
    								this.stone2.getComponent(Laya.Script3D).playStoneShakeAni();
    								break;

    							case 3:
    								this.stone3.getComponent(Laya.Script3D).playStoneShakeAni();
    						}
    						this.curPlayer.getComponent(Laya.Script3D).playStoneEffect(),
    							f.instance.isPlayDamageStongeSound ||
    							((f.instance.isPlayDamageStongeSound = !0),
    								L.instance.settingInfo.isSound &&
    								Laya.SoundManager.playSound(
    									"res/sound/M_game_14.mp3",
    									0,
    									Laya.Handler.create(this, this.damageSoundComplete)
    								)),
    							Gt.instance.VibrateLong();
    					}
    					break;

    				case 4:
    					(this.stone1.active = !1), this.playRiverMove(1);
    					break;

    				case 5:
    					(this.stone2.active = !1), this.playRiverMove(2);
    					break;

    				case 6:
    					(this.stone3.active = !1), this.playRiverMove(3);
    			}
    		}
    		damageSoundComplete() {
    			this.isDebug && console.log("damageSoundComplete");
    		}
    		stopStageAni(e) {
    			if (this.isPlayingAni)
    				switch (((this.isPlayingAni = !1), e)) {
    					case 1:
    						this.stone1.getComponent(Laya.Script3D).stopStoneShakeAni();
    						break;

    					case 2:
    						this.stone2.getComponent(Laya.Script3D).stopStoneShakeAni();
    						break;

    					case 3:
    						this.stone3.getComponent(Laya.Script3D).stopStoneShakeAni();
    				}
    		}
    		playRiverMove(e) {
    			switch ((this.isDebug && console.log("playRiverMove == index == " + e), e)) {
    				case 1:
    					Laya.Tween.to(
    						this.river.transform,
    						{
    							localPositionZ: this.riverPos2.z,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.riverEnd),
    						0
    					);
    					break;

    				case 2:
    					Laya.Tween.to(
    						this.river.transform,
    						{
    							localPositionZ: this.riverPos3.z,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.riverEnd),
    						0
    					);
    					break;

    				case 3:
    					Laya.Tween.to(
    						this.river.transform,
    						{
    							localPositionZ: this.riverPos4.z,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.riverEnd),
    						0
    					);
    			}
    		}
    		riverEnd() {
    			this.isDebug &&
    				(console.log("riverEnd"), console.log("gameLogic.instance.curStageProcess == " + f.instance.curStageProcess)),
    				(f.instance.curStageProcess += 1),
    				(L.instance.playerInfo.stage9Times += 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    				(this.isPlayingAni = !1),
    				(f.instance.isAniTouchEnable = !1),
    				f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    					? (Ie.instance.isChallengeLevel()
    						? D.SendEvent("挑战任务9：河路疏通。完成次数统计", 2025, !1)
    						: D.SendEvent("普通任务9：河路疏通。完成次数统计", 2012, !1),
    						(f.instance.isShowDiggerPosSign = !1),
    						(f.instance.isShowPlacePosSign = !1),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showPlaceSign(!1, "", 0, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    						$.instance.showControl1(!1),
    						$.instance.showControl2(!1),
    						$.instance.showSlider1(!1),
    						$.instance.showSlider2(!1),
    						(f.instance.isShowControl = !1),
    						$.instance.stopChecHideBox(),
    						$.instance.stopCheckQuickWin(),
    						Laya.stage.event("hideBox_ClickClose"),
    						Laya.stage.event("quickWin_ClickClose"),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    					: ((Ie.instance.curDiggerPos += 1),
    						(f.instance.isShowDiggerPosSign = !0),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class Se extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this._manager = null),
    				(this.truck = null),
    				(this.tiggerNode = null),
    				(this.boxPrefab = null),
    				(this.box_1 = null),
    				(this.box_2 = null),
    				(this.box_3 = null),
    				(this.truch_box_1 = null),
    				(this.truch_box_2 = null),
    				(this.truch_box_3 = null),
    				(this.pos_light = null),
    				(this.boxOnFork = null),
    				(this.targePos = new Laya.Vector3(-0.518, 0.039, -1.984)),
    				(this.diggerPos = new Laya.Vector3(-0.3309, 4072986e-12, -1.9197)),
    				(this.placePos = new Laya.Vector3(-0.5503, 0.135, -2.1954)),
    				(this.curBoxIndex = 0),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Se()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/F_box_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck_2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/F_box_1.lh");
    			switch (
    			((this.boxPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.box_1 = Laya.Pool.getItemByCreateFun("Box", this.creatBoxFun, this)),
    				(this.box_1.name = "box_1"),
    				(this.box_2 = Laya.Pool.getItemByCreateFun("Box", this.creatBoxFun, this)),
    				(this.box_2.name = "box_2"),
    				(this.box_3 = Laya.Pool.getItemByCreateFun("Box", this.creatBoxFun, this)),
    				(this.box_3.name = "box_3"),
    				(this.box_1.active = !0),
    				(this.box_2.active = !0),
    				(this.box_3.active = !0),
    				this.curScene.addChild(this.box_1),
    				this.curScene.addChild(this.box_2),
    				this.curScene.addChild(this.box_3),
    				(this.boxOnFork = Laya.Pool.getItemByCreateFun("BoxOnFork", this.creatBoxFun, this)),
    				(this.boxOnFork.name = "boxOnFork"),
    				this.curPlayer.getComponent(Laya.Script3D).curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.boxOnFork.transform.localPosition = new Laya.Vector3(0.005, -0.274, -0.236)),
    						(this.boxOnFork.transform.localRotationEuler = new Laya.Vector3(90, 0, 0)),
    						(this.boxOnFork.transform.localScale = new Laya.Vector3(12.5, 12.5, 12.5));
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.boxOnFork.transform.localPosition = new Laya.Vector3(-0.006, -0.176, 0.364)),
    						(this.boxOnFork.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    						(this.boxOnFork.transform.localScale = new Laya.Vector3(12.5, 12.5, 12.5));
    			}
    			this.curPlayer.getComponent(Laya.Script3D).getForks().addChild(this.boxOnFork),
    				(this.boxOnFork.active = !1),
    				(this.tiggerNode = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode2.lh")),
    				this.curScene.addChild(this.tiggerNode),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck_2.lh")),
    				this.curScene.addChild(this.truck),
    				(this.truch_box_1 = this.truck.getChildByName("F_box_2")),
    				(this.truch_box_2 = this.truck.getChildByName("F_box_3")),
    				(this.truch_box_3 = this.truck.getChildByName("F_box_4")),
    				(this.truch_box_1.active = !1),
    				(this.truch_box_2.active = !1),
    				(this.truch_box_3.active = !1),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatBoxFun() {
    			return console.log("creatBoxFun"), Laya.Sprite3D.instantiate(this.boxPrefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initStage() {
    			(this.truck.transform.localPosition = new Laya.Vector3(-0.5503, 0.005, -2.1954)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.tiggerNode.transform.localPosition = new Laya.Vector3(-0.4912, 0.0654, -2.1932)),
    				(this.tiggerNode.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.box_1.transform.localPosition = new Laya.Vector3(-0.3309, 4072986e-12, -1.9821)),
    				(this.box_1.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.box_2.transform.localPosition = new Laya.Vector3(-0.3309, 4072986e-12, -1.9197)),
    				(this.box_2.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.box_3.transform.localPosition = new Laya.Vector3(-0.3309, 4072986e-12, -1.8575)),
    				(this.box_3.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.box_1.active = !0),
    				(this.box_2.active = !0),
    				(this.box_3.active = !0),
    				(this.truch_box_1.active = !1),
    				(this.truch_box_2.active = !1),
    				(this.truch_box_3.active = !1),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				(this.curBoxIndex = 0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				(f.instance.isHaveObjectInTick = !1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		showBoxOnTruck() {
    			switch ((this.isDebug && console.log("showBoxOnTruck"), this.curBoxIndex)) {
    				case 0:
    					this.truch_box_1.active = !0;
    					break;

    				case 1:
    					this.truch_box_2.active = !0;
    					break;

    				case 2:
    					this.truch_box_3.active = !0;
    			}
    			this.curBoxIndex += 1;
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.box_1.active = !1;
    					break;

    				case 2:
    					this.box_2.active = !1;
    					break;

    				case 3:
    					this.box_3.active = !1;
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= -1.018 &&
    				this.curPlayer.transform.localPositionX <= 0.5 - 0.518 &&
    				this.curPlayer.transform.localPositionZ <= -1.484 &&
    				this.curPlayer.transform.localPositionZ >= -2.484 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showSlider2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里抬起货物", e.x, e.y);
    			}
    		}
    		showPlacePos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.placePos, this.curCarema.projectionViewMatrix, this._outPos2);
    				let e = new Laya.Vector2(this._outPos2.x / Laya.stage.clientScaleX, this._outPos2.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showPlaceSign(!0, "放到车上", e.x, e.y);
    			}
    		}
    		exitStageProcess() {
    			this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    				this.box_1 && (this.box_1.removeSelf(), Laya.Pool.recover("Box", this.box_1)),
    				this.box_2 && (this.box_2.removeSelf(), Laya.Pool.recover("Box", this.box_2)),
    				this.box_3 && (this.box_3.removeSelf(), Laya.Pool.recover("Box", this.box_3)),
    				this.boxOnFork && (this.boxOnFork.removeSelf(), Laya.Pool.recover("BoxOnFork", this.boxOnFork)),
    				this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    				this.boxPrefab && this.boxPrefab.destroy(),
    				this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class ye extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this._manager = null),
    				(this.targePos = new Laya.Vector3(3.002, 0, 1.186)),
    				(this.diggerPos = new Laya.Vector3(2.479, 0, 1.186)),
    				(this.road1 = null),
    				(this.road2 = null),
    				(this.road3 = null),
    				(this.pos_light = null),
    				(this.road1Animator = null),
    				(this.road2Animator = null),
    				(this.road3Animator = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ye()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/road_damage_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/road_damage_2.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/road_damage_3.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage6 === onPreLoadFinish"),
    				(this.road1 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/road_damage_1.lh")),
    				(this.road2 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/road_damage_2.lh")),
    				(this.road3 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/road_damage_3.lh")),
    				this.curScene.addChild(this.road1),
    				this.curScene.addChild(this.road2),
    				this.curScene.addChild(this.road3),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		initStage() {
    			this.isDebug && console.log("stage11 === initStage"),
    				this.isDebug &&
    				(console.log("this.road1.numChildren == " + this.road1.numChildren),
    					console.log("this.road2.numChildren == " + this.road2.numChildren),
    					console.log("this.road3.numChildren == " + this.road3.numChildren)),
    				(this.road1.transform.localPosition = new Laya.Vector3(2.2162, 0, 1.192)),
    				(this.road1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.road2.transform.localPosition = new Laya.Vector3(2.4802, 0, 1.192)),
    				(this.road2.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.road3.transform.localPosition = new Laya.Vector3(2.7379, 0, 1.192)),
    				(this.road3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0));
    			for (let e = 0; e < this.road1.numChildren; e++) this.road1.getChildAt(e).active = !0;
    			for (let e = 0; e < this.road2.numChildren; e++) this.road2.getChildAt(e).active = !0;
    			for (let e = 0; e < this.road3.numChildren; e++) this.road3.getChildAt(e).active = !0;
    			(this._manager.road1DamageCount = 0),
    				(this._manager.road2DamageCount = 0),
    				(this._manager.road3DamageCount = 0),
    				(this._manager.isRoad1Damaged = !1),
    				(this._manager.isRoad2Damaged = !1),
    				(this._manager.isRoad3Damaged = !1),
    				this.initRoadAni(),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.01, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initRoadAni() {
    			this.isDebug && console.log("initRoadAni"),
    				this.road1Animator ||
    				((this.road1Animator = this.road1.getComponent(Laya.Animator)),
    					this.road1Animator.getControllerLayer(0).getAnimatorState("action").addScript(me)),
    				this.road2Animator ||
    				((this.road2Animator = this.road2.getComponent(Laya.Animator)),
    					this.road2Animator.getControllerLayer(0).getAnimatorState("action").addScript(me)),
    				this.road3Animator ||
    				((this.road3Animator = this.road3.getComponent(Laya.Animator)),
    					this.road3Animator.getControllerLayer(0).getAnimatorState("action").addScript(me));
    		}
    		playRoad1Ani() {
    			this.isDebug && console.log("playRoad1Ani"),
    				this.road1Animator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					(this.road1Animator.getControllerLayer(0).getAnimatorState("action").clip.islooping = !1),
    					this.road1Animator.play("action", 0, 0));
    		}
    		playRoad2Ani() {
    			this.isDebug && console.log("playRoad2Ani"),
    				this.road2Animator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					(this.road2Animator.getControllerLayer(0).getAnimatorState("action").clip.islooping = !1),
    					this.road2Animator.play("action", 0, 0));
    		}
    		playRoad3Ani() {
    			this.isDebug && console.log("playRoad3Ani"),
    				this.road3Animator &&
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_03.mp3"),
    					(this.road3Animator.getControllerLayer(0).getAnimatorState("action").clip.islooping = !1),
    					this.road3Animator.play("action", 0, 0));
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 2.115 &&
    				this.curPlayer.transform.localPositionX <= 3.115 &&
    				this.curPlayer.transform.localPositionZ <= 1.645 &&
    				this.curPlayer.transform.localPositionZ >= 0.645 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    			}
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.road1.getChildByName(t).active = !1;
    					break;

    				case 2:
    					this.road2.getChildByName(t).active = !1;
    					break;

    				case 3:
    					this.road3.getChildByName(t).active = !1;
    			}
    		}
    		exitStageProcess() {
    			this.road1 && (this.road1.removeSelf(), this.road1.destroy()),
    				this.road2 && (this.road2.removeSelf(), this.road2.destroy()),
    				this.road3 && (this.road3.removeSelf(), this.road3.destroy()),
    				this.road1Animator && (this.road1Animator.destroy(), (this.road1Animator = null)),
    				this.road2Animator && (this.road2Animator.destroy(), (this.road2Animator = null)),
    				this.road3Animator && (this.road3Animator.destroy(), (this.road3Animator = null)),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class me extends Laya.AnimatorStateScript {
    		constructor() {
    			super();
    		}
    		onStateEnter() {
    			console.log("roadDamageAni 动画开始播放了");
    		}
    		onStateUpdate() {
    			console.log("roadDamageAni 动画状态更新了");
    		}
    		onStateExit() {
    			console.log("roadDamageAni 动画退出了");
    		}
    	}
    	class pe extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this._manager = null),
    				(this.rCarPrefab = null),
    				(this.yCarPrefab = null),
    				(this.truckPrefab = null),
    				(this.rTruck = null),
    				(this.rCarOnTruck = null),
    				(this.yTruck = null),
    				(this.yCarOnTruck = null),
    				(this.tiggerNode1 = null),
    				(this.tiggerNode2 = null),
    				(this.redCar = null),
    				(this.yellowCar = null),
    				(this.rCarOnFork = null),
    				(this.yCarOnFork = null),
    				(this.pos_light = null),
    				(this.targePos = new Laya.Vector3(1.38, 0.039, -1)),
    				(this.diggerPos1 = new Laya.Vector3(1.3927, 0.0037, -0.9957)),
    				(this.diggerPos2 = new Laya.Vector3(1.4774, 0.0042, -1.0342)),
    				(this.placePos1 = new Laya.Vector3(1.011, 0.135, -1.062)),
    				(this.placePos2 = new Laya.Vector3(1.8255, 0.135, -1.062)),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new pe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/Car_yellow.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Car_red.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck_3.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode3.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode4.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Car_red.lh");
    			this.rCarPrefab = Laya.Sprite3D.instantiate(e);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Car_yellow.lh");
    			this.yCarPrefab = Laya.Sprite3D.instantiate(t);
    			let s = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck_3.lh");
    			switch (
    			((this.truckPrefab = Laya.Sprite3D.instantiate(s)),
    				(this.rTruck = Laya.Pool.getItemByCreateFun("truck", this.creatTruckFun, this)),
    				this.curScene.addChild(this.rTruck),
    				(this.rCarOnTruck = Laya.Pool.getItemByCreateFun("redCar", this.creatRedCarFun, this)),
    				(this.rCarOnTruck.transform.localPosition = new Laya.Vector3(-0.0021, 0.0335, 0.0567)),
    				(this.rCarOnTruck.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.rCarOnTruck.transform.localScale = new Laya.Vector3(1, 1, 1)),
    				this.rTruck.addChild(this.rCarOnTruck),
    				(this.yTruck = Laya.Pool.getItemByCreateFun("truck", this.creatTruckFun, this)),
    				this.curScene.addChild(this.yTruck),
    				(this.yCarOnTruck = Laya.Pool.getItemByCreateFun("yellowCar", this.creatYellowCarFun, this)),
    				(this.yCarOnTruck.transform.localPosition = new Laya.Vector3(1e-4, 0.0323, 0.0658)),
    				(this.yCarOnTruck.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.yCarOnTruck.transform.localScale = new Laya.Vector3(1, 1, 1)),
    				this.yTruck.addChild(this.yCarOnTruck),
    				(this.redCar = Laya.Pool.getItemByCreateFun("redCar", this.creatRedCarFun, this)),
    				(this.redCar.name = "redCarOnGround"),
    				(this.redCar.transform.localScale = new Laya.Vector3(1, 1, 1)),
    				this.curScene.addChild(this.redCar),
    				(this.yellowCar = Laya.Pool.getItemByCreateFun("yellowCar", this.creatYellowCarFun, this)),
    				(this.yellowCar.name = "yellowCarOnGround"),
    				(this.yellowCar.transform.localScale = new Laya.Vector3(1, 1, 1)),
    				this.curScene.addChild(this.yellowCar),
    				(this.rCarOnFork = Laya.Pool.getItemByCreateFun("redCar", this.creatRedCarFun, this)),
    				(this.rCarOnFork.name = "rCarOnFork"),
    				this.curPlayer.getComponent(Laya.Script3D).curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.rCarOnFork.transform.localPosition = new Laya.Vector3(-0.153, -0.231, -0.295)),
    						(this.rCarOnFork.transform.localRotationEuler = new Laya.Vector3(180, 90, 90)),
    						(this.rCarOnFork.transform.localScale = new Laya.Vector3(10, 10, 10));
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.rCarOnFork.transform.localPosition = new Laya.Vector3(-0.153, -0.295, 0.435)),
    						(this.rCarOnFork.transform.localRotationEuler = new Laya.Vector3(180, 90, 180)),
    						(this.rCarOnFork.transform.localScale = new Laya.Vector3(10, 10, 10));
    			}
    			switch (
    			(this.curPlayer.getComponent(Laya.Script3D).getForks().addChild(this.rCarOnFork),
    				(this.rCarOnFork.active = !1),
    				(this.yCarOnFork = Laya.Pool.getItemByCreateFun("yellowCar", this.creatYellowCarFun, this)),
    				(this.yCarOnFork.name = "yCarOnFork"),
    				this.curPlayer.getComponent(Laya.Script3D).curCarType)
    			) {
    				case 1:
    				case 5:
    				case 6:
    				case 7:
    				case 8:
    					(this.yCarOnFork.transform.localPosition = new Laya.Vector3(-0.153, -0.231, -0.295)),
    						(this.yCarOnFork.transform.localRotationEuler = new Laya.Vector3(180, 90, 90)),
    						(this.yCarOnFork.transform.localScale = new Laya.Vector3(10, 10, 10));
    					break;

    				case 2:
    				case 4:
    				case 3:
    					(this.yCarOnFork.transform.localPosition = new Laya.Vector3(-0.153, -0.295, 0.435)),
    						(this.yCarOnFork.transform.localRotationEuler = new Laya.Vector3(180, 90, 180)),
    						(this.yCarOnFork.transform.localScale = new Laya.Vector3(10, 10, 10));
    			}
    			this.curPlayer.getComponent(Laya.Script3D).getForks().addChild(this.yCarOnFork),
    				(this.yCarOnFork.active = !1),
    				(this.tiggerNode1 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode3.lh")),
    				this.curScene.addChild(this.tiggerNode1),
    				(this.tiggerNode2 = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode4.lh")),
    				this.curScene.addChild(this.tiggerNode2),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatTruckFun() {
    			return console.log("creatTruckFun"), Laya.Sprite3D.instantiate(this.truckPrefab, this.curScene);
    		}
    		creatRedCarFun() {
    			return console.log("creatRedCarFun"), Laya.Sprite3D.instantiate(this.rCarPrefab, this.curScene);
    		}
    		creatYellowCarFun() {
    			return console.log("creatYellowCarFun"), Laya.Sprite3D.instantiate(this.yCarPrefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		initStage() {
    			(this.rTruck.transform.localPosition = new Laya.Vector3(1.011, 0.0059, -1.062)),
    				(this.rTruck.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.yTruck.transform.localPosition = new Laya.Vector3(1.8255, 0.0059, -1.062)),
    				(this.yTruck.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.redCar.transform.localPosition = new Laya.Vector3(1.3927, 0.0037, -0.9957)),
    				(this.redCar.transform.localRotationEuler = new Laya.Vector3(0, 11.76, 0)),
    				(this.yellowCar.transform.localPosition = new Laya.Vector3(1.4774, 0.0042, -1.0342)),
    				(this.yellowCar.transform.localRotationEuler = new Laya.Vector3(0, 76.34, 0)),
    				(this.tiggerNode1.transform.localPosition = new Laya.Vector3(1.0725, 0.0631, -1.0602)),
    				(this.tiggerNode1.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.tiggerNode2.transform.localPosition = new Laya.Vector3(1.7639, 0.0543, -1.061)),
    				(this.tiggerNode2.transform.localRotationEuler = new Laya.Vector3(0, 90, 0)),
    				(this.rCarOnTruck.active = !1),
    				(this.yCarOnTruck.active = !1),
    				(this.redCar.active = !0),
    				(this.yellowCar.active = !0),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				(f.instance.isHaveObjectInTick = !1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showDiggerPos() {
    			switch (f.instance.curStageProcess) {
    				case 0:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos1, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "抬起红车", e.x, e.y);
    					}
    					break;

    				case 1:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos2, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "抬起黄车", e.x, e.y);
    					}
    			}
    		}
    		showPlacePos() {
    			switch (f.instance.curStageProcess) {
    				case 0:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.placePos1, this.curCarema.projectionViewMatrix, this._outPos2);
    						let e = new Laya.Vector2(
    							this._outPos2.x / Laya.stage.clientScaleX,
    							this._outPos2.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showPlaceSign(!0, "放到拖车上", e.x, e.y);
    					}
    					break;

    				case 1:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.placePos2, this.curCarema.projectionViewMatrix, this._outPos2);
    						let e = new Laya.Vector2(
    							this._outPos2.x / Laya.stage.clientScaleX,
    							this._outPos2.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showPlaceSign(!0, "放到拖车上", e.x, e.y);
    					}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 1.38 - 0.5 &&
    				this.curPlayer.transform.localPositionX <= 1.88 &&
    				this.curPlayer.transform.localPositionZ <= -0.5 &&
    				this.curPlayer.transform.localPositionZ >= -1.5 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showSlider2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		exitStageProcess() {
    			this.tiggerNode1 && (this.tiggerNode1.removeSelf(), this.tiggerNode1.destroy()),
    				this.tiggerNode2 && (this.tiggerNode2.removeSelf(), this.tiggerNode2.destroy()),
    				this.rTruck && (this.rTruck.removeSelf(), Laya.Pool.recover("truck", this.rTruck)),
    				this.yTruck && (this.yTruck.removeSelf(), Laya.Pool.recover("truck", this.yTruck)),
    				this.truckPrefab && this.truckPrefab.destroy(),
    				this.rCarOnTruck && (this.rCarOnTruck.removeSelf(), Laya.Pool.recover("redCar", this.rCarOnTruck)),
    				this.redCar && (this.redCar.removeSelf(), Laya.Pool.recover("redCar", this.redCar)),
    				this.rCarOnFork && (this.rCarOnFork.removeSelf(), Laya.Pool.recover("redCar", this.rCarOnFork)),
    				this.rCarPrefab && this.rCarPrefab.destroy(),
    				this.yCarOnTruck && (this.yCarOnTruck.removeSelf(), Laya.Pool.recover("yellowCar", this.yCarOnTruck)),
    				this.yellowCar && (this.yellowCar.removeSelf(), Laya.Pool.recover("yellowCar", this.yellowCar)),
    				this.yCarOnFork && (this.yCarOnFork.removeSelf(), Laya.Pool.recover("yellowCar", this.yCarOnFork)),
    				this.yCarPrefab && this.yCarPrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.redCar.active = !1;
    					break;

    				case 2:
    					this.yellowCar.active = !1;
    			}
    		}
    		showCarOnTruck(e) {
    			switch (e) {
    				case 1:
    					this.rCarOnTruck.active = !0;
    					break;

    				case 2:
    					this.yCarOnTruck.active = !0;
    			}
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class Te extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this._manager = null),
    				(this.targePos = new Laya.Vector3(-0.399, 0, 2.88)),
    				(this.diggerPos1 = new Laya.Vector3(-0.069, 0, 2.969)),
    				(this.diggerPos2 = new Laya.Vector3(0.176, 0, 2.912)),
    				(this.diggerPos3 = new Laya.Vector3(0.177, 0, 3.217)),
    				(this.stonePrefab = null),
    				(this.stone1 = null),
    				(this.stone2 = null),
    				(this.stone3 = null),
    				(this.pos_light = null),
    				(this.particleStoneEffectPrefab = null),
    				(this.isPlayingAni = !1),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Te()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/stone.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/stoneEffect.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("creatStoneEffectParticle", this, this.spawnStoneEffectParticle);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage13 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/stone.lh");
    			(this.stonePrefab = Laya.Sprite3D.instantiate(e)),
    				(this.stone1 = Laya.Pool.getItemByCreateFun("stone", this.creatStoneFun, this)),
    				(this.stone1.getChildAt(0).name = "stone1"),
    				null == this.stone1.getComponent(ue) && this.stone1.addComponent(ue),
    				(this.stone1.active = !0),
    				this.curScene.addChild(this.stone1),
    				(this.stone2 = Laya.Pool.getItemByCreateFun("stone", this.creatStoneFun, this)),
    				(this.stone2.getChildAt(0).name = "stone2"),
    				null == this.stone2.getComponent(ue) && this.stone2.addComponent(ue),
    				(this.stone2.active = !0),
    				this.curScene.addChild(this.stone2),
    				(this.stone3 = Laya.Pool.getItemByCreateFun("stone", this.creatStoneFun, this)),
    				(this.stone3.getChildAt(0).name = "stone3"),
    				null == this.stone3.getComponent(ue) && this.stone3.addComponent(ue),
    				(this.stone3.active = !0),
    				this.curScene.addChild(this.stone3);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/stoneEffect.lh");
    			(this.particleStoneEffectPrefab = Laya.Sprite3D.instantiate(t)),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatStoneFun() {
    			return this.isDebug && console.log("creatStoneFun"), Laya.Sprite3D.instantiate(this.stonePrefab, this.curScene);
    		}
    		initStage() {
    			(this.stone1.transform.localPosition = new Laya.Vector3(-0.069, 0.053, 2.969)),
    				(this.stone1.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.stone2.transform.localPosition = new Laya.Vector3(0.176, 0.029, 2.912)),
    				(this.stone2.transform.localRotationEuler = new Laya.Vector3(0, 180, 0)),
    				(this.stone3.transform.localPosition = new Laya.Vector3(0.177, 0.034, 3.217)),
    				(this.stone3.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				Ie.instance.isChallengeLevel()
    					? $.instance.showTime(!0, f.instance.getTaskTime(this._manager.curStageIndex))
    					: $.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				(Ie.instance.curDiggerPos = 1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage13 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(3.562, 0.003, -3.193)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 0, -1)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -0, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [180]);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showDiggerPos(e) {
    			switch (e) {
    				case 1:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos1, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    					break;

    				case 2:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos2, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    					break;

    				case 3:
    					if (this.curCarema) {
    						this.curCarema.viewport.project(this.diggerPos3, this.curCarema.projectionViewMatrix, this._outPos1);
    						let e = new Laya.Vector2(
    							this._outPos1.x / Laya.stage.clientScaleX,
    							this._outPos1.y / Laya.stage.clientScaleY
    						);
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    							e.x >= 0 &&
    							e.x <= Laya.stage.width &&
    							e.y >= 0 &&
    							e.y <= Laya.stage.height &&
    							$.instance.showDiggerSign(!0, "破坏这里", e.x, e.y);
    					}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= -0.799 &&
    				this.curPlayer.transform.localPositionX <= 0.4 - 0.399 &&
    				this.curPlayer.transform.localPositionZ <= 3.28 &&
    				this.curPlayer.transform.localPositionZ >= 2.48 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		spawnStoneEffectParticle(e) {
    			this.isDebug && (console.log("spawnStoneEffectParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("stoneEffect", this.creatFun1, this);
    			this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					switch (
    					(this.isDebug && console.log("冒烟完成1"),
    						t.removeSelf(),
    						Laya.Pool.recover("stoneEffect", t),
    						f.instance.isPlayDamageStongeSound &&
    						((f.instance.isPlayDamageStongeSound = !1),
    							L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_14.mp3")),
    						f.instance.curStoneIndex)
    					) {
    						case 1:
    							this.stone1.getComponent(Laya.Script3D).playStoneAni();
    							break;

    						case 2:
    							this.stone2.getComponent(Laya.Script3D).playStoneAni();
    							break;

    						case 3:
    							this.stone3.getComponent(Laya.Script3D).playStoneAni();
    					}
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleStoneEffectPrefab);
    		}
    		exitStageProcess() {
    			f.instance.isPlayDamageStongeSound &&
    				((f.instance.isPlayDamageStongeSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_14.mp3")),
    				this.stone1 && (this.stone1.removeSelf(), Laya.Pool.recover("stone", this.stone1)),
    				this.stone2 && (this.stone2.removeSelf(), Laya.Pool.recover("stone", this.stone2)),
    				this.stone3 && (this.stone3.removeSelf(), Laya.Pool.recover("stone", this.stone3)),
    				this.stonePrefab && this.stonePrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null)),
    				Laya.stage.off("creatStoneEffectParticle", this, this.spawnStoneEffectParticle);
    		}
    		playStageAni(e) {
    			switch (e) {
    				case 1:
    				case 2:
    				case 3:
    					if (!this.isPlayingAni) {
    						switch (
    						((this.isPlayingAni = !0),
    							(f.instance.curStoneIndex = e),
    							(f.instance.isAniTouchEnable = !0),
    							(f.instance.curSpeed = 0),
    							(f.instance.isForward = !1),
    							(f.instance.isBackAway = !1),
    							(f.instance.isRunFont = !1),
    							(f.instance.isRunBack = !1),
    							(f.instance.isTrunArm = -1),
    							(f.instance.isTrunBackArm = -1),
    							(f.instance.isTrunFrontArm = -1),
    							f.instance.isPlayArmPushSound &&
    							((f.instance.isPlayArmPushSound = !1),
    								L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    							f.instance.isPlayArmRotateSound &&
    							((f.instance.isPlayArmRotateSound = !1),
    								L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    							f.instance.isPlayCarMoveSound &&
    							((f.instance.isPlayCarMoveSound = !1),
    								L.instance.settingInfo.isSound &&
    								(Laya.Browser.onIOS
    									? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    									: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3"))),
    							$.instance.showControl1(!1),
    							$.instance.showControl2(!1),
    							(f.instance.isShowControl = !1),
    							$.instance.showAllControlKey(!1),
    							e)
    						) {
    							case 1:
    								this.stone1.getComponent(Laya.Script3D).playStoneShakeAni();
    								break;

    							case 2:
    								this.stone2.getComponent(Laya.Script3D).playStoneShakeAni();
    								break;

    							case 3:
    								this.stone3.getComponent(Laya.Script3D).playStoneShakeAni();
    						}
    						this.curPlayer.getComponent(Laya.Script3D).playStoneEffect(),
    							f.instance.isPlayDamageStongeSound ||
    							((f.instance.isPlayDamageStongeSound = !0),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_14.mp3", 0)),
    							Gt.instance.VibrateLong();
    					}
    					break;

    				case 4:
    					(this.stone1.active = !1), this.gameComplete();
    					break;

    				case 5:
    					(this.stone2.active = !1), this.gameComplete();
    					break;

    				case 6:
    					(this.stone3.active = !1), this.gameComplete();
    			}
    		}
    		stopStageAni(e) {
    			if (this.isPlayingAni)
    				switch (((this.isPlayingAni = !1), e)) {
    					case 1:
    						this.stone1.getComponent(Laya.Script3D).stopStoneShakeAni();
    						break;

    					case 2:
    						this.stone2.getComponent(Laya.Script3D).stopStoneShakeAni();
    						break;

    					case 3:
    						this.stone3.getComponent(Laya.Script3D).stopStoneShakeAni();
    				}
    		}
    		gameComplete() {
    			this.isDebug && console.log("riverEnd"),
    				(f.instance.curStageProcess += 1),
    				(L.instance.playerInfo.stage13Times += 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				v.instance.updateCarAchieve(L.instance.carInfo.curUseCar, Ie.instance.getStageTypeByStageIndex()),
    				(this.isPlayingAni = !1),
    				(f.instance.isAniTouchEnable = !1),
    				f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex)
    					? (Ie.instance.isChallengeLevel()
    						? D.SendEvent("挑战任务13：隧道施工。完成次数统计", 2029, !1)
    						: D.SendEvent("普通任务13：隧道施工。完成次数统计", 2016, !1),
    						(f.instance.isShowDiggerPosSign = !1),
    						(f.instance.isShowPlacePosSign = !1),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showPlaceSign(!1, "", 0, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    						$.instance.showControl1(!1),
    						$.instance.showControl2(!1),
    						$.instance.showSlider1(!1),
    						$.instance.showSlider2(!1),
    						(f.instance.isShowControl = !1),
    						$.instance.stopChecHideBox(),
    						$.instance.stopCheckQuickWin(),
    						Laya.stage.event("hideBox_ClickClose"),
    						Laya.stage.event("quickWin_ClickClose"),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())
    					: ((Ie.instance.curDiggerPos += 1),
    						(f.instance.isShowDiggerPosSign = !0),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class we extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.pos_light = null),
    				(this.targePos1 = new Laya.Vector3(0.028, 0, -1.055)),
    				(this.targePos2 = new Laya.Vector3(-0.928, 0, -1.055)),
    				(this.targePos3 = new Laya.Vector3(0.134, 0, -0.677)),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new we()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage101 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh"],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage101 === onPreLoadFinish"),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		initPlayer() {
    			this.isDebug &&
    				(console.log("stage101 === initPlayer"),
    					console.log(this.curPlayer.transform.position),
    					console.log(this.curPlayer.transform.rotation),
    					console.log(this.curPlayer.transform.localPosition),
    					console.log(this.curPlayer.transform.localRotation),
    					console.log(this.curPlayer.transform.localRotationEuler)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(-0.928, 0.003, -1.055)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 90, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				Laya.stage.event("resetCarema", [-90]);
    		}
    		initStage() {
    			this.isDebug && console.log("stage101 === initStage"),
    				D.SendEvent("玩家进人教学1界面次数", 1005, !1),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos1.x, 0.005, this.targePos1.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				(this._manager.curPosIndex = 1),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				(f.instance.isArriveTaskPos = !1),
    				$.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(1),
    				$.instance.setTaskCurProgress(0),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!1),
    				$.instance.showAllBtnNoGroup(!1),
    				$.instance.showTeachSkipBtn(!0),
    				(Q.instance.isShowingTeach = !0),
    				this.shwoPosLight(!0);
    		}
    		delayTimeShowTeach() {
    			Q.instance.stopNextStep(),
    				Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep);
    		}
    		showTargetPos() {
    			if (this.curCarema)
    				switch (this._manager.curPosIndex) {
    					case 1:
    						{
    							this.curCarema.viewport.project(this.targePos1, this.curCarema.projectionViewMatrix, this._outPos);
    							let e = new Laya.Vector2(
    								this._outPos.x / Laya.stage.clientScaleX,
    								this._outPos.y / Laya.stage.clientScaleY
    							);
    							if (
    								(this.isDebug && console.log("========================================================="),
    									$.instance.showLeftSign(!1, 0),
    									$.instance.showRightSign(!1, 0),
    									$.instance.showDownSign(!1, 0),
    									$.instance.showUpSign(!1, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    									e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    							)
    								$.instance.showTaskTargetSign(!0, e.x, e.y);
    							else {
    								this.isDebug &&
    									(console.log(this.curCarema.transform.localRotationEulerY),
    										console.log(this.targePos1),
    										console.log(this.curPlayer.transform.position));
    								let e = Math.atan2(
    									this.targePos1.z - this.curPlayer.transform.position.z,
    									this.targePos1.x - this.curPlayer.transform.position.x
    								);
    								this.isDebug && console.log("radio == " + e);
    								let t = (180 * e) / Math.PI;
    								this.isDebug && console.log("angel == " + t);
    								let s = this.curCarema.transform.localRotationEulerY + t;
    								this.isDebug && console.log("targetAnale == " + s);
    								let i = (360 + (s % 360)) % 360;
    								if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    									let e = 0;
    									i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    										this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    								} else if (i > 135 && i < 225) {
    									let e = i - 135;
    									this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    								} else if (i >= 225 && i <= 315) {
    									let e = i - 225;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    								} else {
    									let e = i - 45;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    								}
    							}
    						}
    						break;

    					case 2:
    						{
    							this.curCarema.viewport.project(this.targePos2, this.curCarema.projectionViewMatrix, this._outPos);
    							let e = new Laya.Vector2(
    								this._outPos.x / Laya.stage.clientScaleX,
    								this._outPos.y / Laya.stage.clientScaleY
    							);
    							if (
    								(this.isDebug && console.log("========================================================="),
    									$.instance.showLeftSign(!1, 0),
    									$.instance.showRightSign(!1, 0),
    									$.instance.showDownSign(!1, 0),
    									$.instance.showUpSign(!1, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    									e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    							)
    								$.instance.showTaskTargetSign(!0, e.x, e.y);
    							else {
    								this.isDebug &&
    									(console.log(this.curCarema.transform.localRotationEulerY),
    										console.log(this.targePos2),
    										console.log(this.curPlayer.transform.position));
    								let e = Math.atan2(
    									this.targePos2.z - this.curPlayer.transform.position.z,
    									this.targePos2.x - this.curPlayer.transform.position.x
    								);
    								this.isDebug && console.log("radio == " + e);
    								let t = (180 * e) / Math.PI;
    								this.isDebug && console.log("angel == " + t);
    								let s = this.curCarema.transform.localRotationEulerY + t;
    								this.isDebug && console.log("targetAnale == " + s);
    								let i = (360 + (s % 360)) % 360;
    								if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    									let e = 0;
    									i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    										this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    								} else if (i > 135 && i < 225) {
    									let e = i - 135;
    									this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    								} else if (i >= 225 && i <= 315) {
    									let e = i - 225;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    								} else {
    									let e = i - 45;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    								}
    							}
    						}
    						break;

    					case 3: {
    						this.curCarema.viewport.project(this.targePos3, this.curCarema.projectionViewMatrix, this._outPos);
    						let e = new Laya.Vector2(
    							this._outPos.x / Laya.stage.clientScaleX,
    							this._outPos.y / Laya.stage.clientScaleY
    						);
    						if (
    							(this.isDebug && console.log("========================================================="),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    						)
    							$.instance.showTaskTargetSign(!0, e.x, e.y);
    						else {
    							this.isDebug &&
    								(console.log(this.curCarema.transform.localRotationEulerY),
    									console.log(this.targePos3),
    									console.log(this.curPlayer.transform.position));
    							let e = Math.atan2(
    								this.targePos3.z - this.curPlayer.transform.position.z,
    								this.targePos3.x - this.curPlayer.transform.position.x
    							);
    							this.isDebug && console.log("radio == " + e);
    							let t = (180 * e) / Math.PI;
    							this.isDebug && console.log("angel == " + t);
    							let s = this.curCarema.transform.localRotationEulerY + t;
    							this.isDebug && console.log("targetAnale == " + s);
    							let i = (360 + (s % 360)) % 360;
    							if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    								let e = 0;
    								i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    									this.isDebug && console.log("y  == " + e);
    								let t = (e * Laya.stage.height) / 90;
    								this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    							} else if (i > 135 && i < 225) {
    								let e = i - 135;
    								this.isDebug && console.log("y  == " + e);
    								let t = (e * Laya.stage.height) / 90;
    								this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    							} else if (i >= 225 && i <= 315) {
    								let e = i - 225;
    								this.isDebug && console.log("x  == " + e);
    								let t = (e * Laya.stage.width) / 90;
    								this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    							} else {
    								let e = i - 45;
    								this.isDebug && console.log("x  == " + e);
    								let t = (e * Laya.stage.width) / 90;
    								this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    							}
    						}
    					}
    				}
    		}
    		checkIsArriveTaskLoacation() {
    			if (this.curPlayer)
    				switch (this._manager.curPosIndex) {
    					case 1:
    						this.curPlayer.transform.localPositionX >= this.targePos1.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos1.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos1.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos1.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点1"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								D.SendEvent("玩家点击前进走到目标位置次数", 1006, !1),
    								(f.instance.curSpeed = 0),
    								(f.instance.isForward = !1),
    								(f.instance.isBackAway = !1),
    								(f.instance.isRunFont = !1),
    								(f.instance.isRunBack = !1),
    								L.instance.settingInfo.isSound &&
    								(Laya.Browser.onIOS
    									? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    									: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    								(f.instance.isPlayCarMoveSound = !1),
    								(this._manager.curPosIndex = 2),
    								(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos2.x, 0.005, this.targePos2.z)),
    								2 == L.instance.playerInfo.teachStep &&
    								((L.instance.playerInfo.teachStep = 3),
    									L.instance.savePlayerInfoToLocalCache(),
    									Q.instance.stopNextStep(),
    									Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep)));
    						break;

    					case 2:
    						this.curPlayer.transform.localPositionX >= this.targePos2.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos2.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos2.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos2.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点2"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								D.SendEvent("玩家按住后退键走到目标位置次数", 1007, !1),
    								(f.instance.curSpeed = 0),
    								(f.instance.isForward = !1),
    								(f.instance.isBackAway = !1),
    								(f.instance.isRunFont = !1),
    								(f.instance.isRunBack = !1),
    								L.instance.settingInfo.isSound &&
    								(Laya.Browser.onIOS
    									? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    									: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    								(f.instance.isPlayCarMoveSound = !1),
    								(this._manager.curPosIndex = 3),
    								(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos3.x, 0.005, this.targePos3.z)),
    								4 == L.instance.playerInfo.teachStep &&
    								((L.instance.playerInfo.teachStep = 5),
    									L.instance.savePlayerInfoToLocalCache(),
    									Q.instance.stopNextStep(),
    									Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep)));
    						break;

    					case 3:
    						this.curPlayer.transform.localPositionX >= this.targePos3.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos3.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos3.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos3.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点3"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								D.SendEvent("玩家自己操作转弯走到目标位置次数", 1008, !1),
    								(f.instance.curSpeed = 0),
    								(f.instance.isForward = !1),
    								(f.instance.isBackAway = !1),
    								(f.instance.isRunFont = !1),
    								(f.instance.isRunBack = !1),
    								L.instance.settingInfo.isSound &&
    								(Laya.Browser.onIOS
    									? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    									: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    								(f.instance.isPlayCarMoveSound = !1),
    								6 == L.instance.playerInfo.teachStep &&
    								((L.instance.playerInfo.teachStep = 7), L.instance.savePlayerInfoToLocalCache()),
    								(f.instance.isShowDiggerPosSign = !1),
    								(f.instance.isShowPlacePosSign = !1),
    								(f.instance.isShowTargetPosSign = !1),
    								$.instance.showDiggerSign(!1, "", 0, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    								$.instance.showControl1(!1),
    								$.instance.showControl2(!1),
    								$.instance.showSlider1(!1),
    								$.instance.showSlider2(!1),
    								(f.instance.isShowControl = !1),
    								$.instance.stopChecHideBox(),
    								$.instance.stopCheckQuickWin(),
    								Laya.stage.event("hideBox_ClickClose"),
    								Laya.stage.event("quickWin_ClickClose"),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu());
    				}
    		}
    		exitStageProcess() {
    			this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class Ce extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.dirtPrefab = null),
    				(this.dirt_1 = null),
    				(this.dirt_2 = null),
    				(this.dirt_3 = null),
    				(this.truck = null),
    				(this.targePos = new Laya.Vector3(0.013, 0.039, -0.677)),
    				(this.diggerPos = new Laya.Vector3(0.112, 0.039, -0.39)),
    				(this._manager = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ce()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage1 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				this.initPlayer();
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/dirt_1.lh", "res/3DRes/LayaScene_MainScene/Conventional/Truck.lh"],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				(f.instance.isShowTargetPosSign = !1),
    				(f.instance.isShowDiggerPosSign = !0),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    		}
    		onPreLoadFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/dirt_1.lh");
    			(this.dirtPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.dirt_1 = Laya.Pool.getItemByCreateFun("dirtPool", this.creatFun, this)),
    				(this.dirt_1.name = "dirt_1"),
    				(this.dirt_1.active = !0),
    				(this.dirt_2 = Laya.Pool.getItemByCreateFun("dirtPool", this.creatFun, this)),
    				(this.dirt_2.name = "dirt_1"),
    				(this.dirt_2.active = !0),
    				(this.dirt_3 = Laya.Pool.getItemByCreateFun("dirtPool", this.creatFun, this)),
    				(this.dirt_3.name = "dirt_1"),
    				(this.dirt_3.active = !0),
    				this.curScene.addChild(this.dirt_1),
    				this.curScene.addChild(this.dirt_2),
    				this.curScene.addChild(this.dirt_3),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck.lh")),
    				this.curScene.addChild(this.truck),
    				this.initStage();
    		}
    		creatFun() {
    			return console.log("creatFun"), Laya.Sprite3D.instantiate(this.dirtPrefab, this.curScene);
    		}
    		initStage() {
    			this.isDebug && console.log("stage1 === initStage"),
    				D.SendEvent("玩家进人教学2界面次数", 1010, !1),
    				(this.truck.transform.localPosition = new Laya.Vector3(-0.327, 1.175705e-7, -0.646)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, 45, 0)),
    				(this.dirt_1.transform.localPosition = new Laya.Vector3(0.293, -0.032, -0.386)),
    				(this.dirt_1.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_2.transform.localPosition = new Laya.Vector3(0.107, -0.045, -0.3681)),
    				(this.dirt_2.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_3.transform.localPosition = new Laya.Vector3(-0.0884, -0.0519, -0.3682)),
    				(this.dirt_3.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				$.instance.showControl1(!0),
    				$.instance.showControl2(!0),
    				(f.instance.isShowControl = !0),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isArriveTaskPos = !1),
    				$.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(1),
    				$.instance.setTaskCurProgress(0),
    				this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(0),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showAllBtnNoGroup(!1),
    				$.instance.showTeachSkipBtn(!0),
    				(Q.instance.isShowingTeach = !0),
    				$.instance.showMissionTip(!1);
    		}
    		delayTimeShowTeach() {
    			Q.instance.stopNextStep(),
    				Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(f.instance.curSpeed = 0),
    				(this.curPlayer.transform.position = new Laya.Vector3(0.045, 0.003, -0.6595)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, 0, 1, 0)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(0.045, 0.003, -0.6595)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, 0, 1, 0)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(0, 0, -0)),
    				Laya.stage.event("setTeachCarema"),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER);
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 2.114 &&
    				this.curPlayer.transform.localPositionX <= 2.914 &&
    				this.curPlayer.transform.localPositionZ <= -2.22 &&
    				this.curPlayer.transform.localPositionZ >= -3.22 &&
    				this.isDebug;
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里挖土", e.x, e.y);
    			}
    		}
    		exitStageProcess() {
    			this.dirt_1 && (this.dirt_1.removeSelf(), this.dirt_1.destroy()),
    				this.dirt_2 && (this.dirt_2.removeSelf(), this.dirt_2.destroy()),
    				this.dirt_3 && (this.dirt_3.removeSelf(), this.dirt_3.destroy()),
    				this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    				this.dirtPrefab && this.dirtPrefab.destroy();
    		}
    	}
    	class Pe extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.particleDropSmokePre = null),
    				(this.particleSmokePre = null),
    				(this.tiggerNode = null),
    				(this.truck = null),
    				(this.targePos = new Laya.Vector3(2.552, 0.039, -2.494)),
    				(this.diggerPos = new Laya.Vector3(2.559, 0.039, -2.494)),
    				(this.placePos = new Laya.Vector3(2.213, 0.135, -2.623)),
    				(this.truck_dirt_1 = null),
    				(this.truck_dirt_2 = null),
    				(this.truck_dirt_3 = null),
    				(this._manager = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Pe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage1 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				this.initPlayer(),
    				(f.instance.isShowTargetPosSign = !1),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !0),
    				$.instance.showDiggerSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/Truck.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			),
    				Laya.stage.on("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		onPreLoadFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft.lh");
    			this.particleDropSmokePre = Laya.Sprite3D.instantiate(e);
    			let t = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/SmokeWhiteSoft2.lh");
    			(t.transform.localScaleX = 0.1),
    				(t.transform.localScaleY = 0.1),
    				(t.transform.localScaleZ = 0.1),
    				(this.particleSmokePre = Laya.Sprite3D.instantiate(t)),
    				(this.tiggerNode = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/triggerNode.lh")),
    				this.curScene.addChild(this.tiggerNode),
    				(this.tiggerNode.getComponent(Laya.PhysicsCollider).collisionGroup =
    					Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2),
    				(this.truck = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Truck.lh")),
    				this.curScene.addChild(this.truck),
    				(this.truck_dirt_1 = this.truck.getChildByName("dirt_1")),
    				(this.truck_dirt_2 = this.truck.getChildByName("dirt_2")),
    				(this.truck_dirt_3 = this.truck.getChildByName("dirt_3")),
    				this.initStage();
    		}
    		initStage() {
    			this.isDebug &&
    				(console.log("stage103 === initStage"),
    					console.log(this.curPlayer.transform.position),
    					console.log(this.curPlayer.transform.rotation),
    					console.log(this.curPlayer.transform.localPosition),
    					console.log(this.curPlayer.transform.localRotation),
    					console.log(this.curPlayer.transform.localRotationEuler)),
    				(this.truck.transform.localPosition = new Laya.Vector3(2.138092, 1.175705e-7, -2.689699)),
    				(this.truck.transform.localRotationEuler = new Laya.Vector3(0, 45, 0)),
    				(this.tiggerNode.transform.localPosition = new Laya.Vector3(2.197489, 0.0961, -2.630302)),
    				(this.tiggerNode.transform.localRotationEuler = new Laya.Vector3(0, 45, 0)),
    				$.instance.showControl1(!0),
    				$.instance.showControl2(!0),
    				(f.instance.isShowControl = !0),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isArriveTaskPos = !1),
    				$.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(1),
    				$.instance.setTaskCurProgress(0),
    				this.curPlayer &&
    				(this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!0),
    					this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(1)),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!1);
    		}
    		delayTimeShowTeach() {
    			Q.instance.stopNextStep(),
    				Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(f.instance.curSpeed = 0),
    				(this.curPlayer.transform.position = new Laya.Vector3(2.2804, 0.003, -2.7296)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(-0.3826833808788962, 0, -0.9238795538375647, 0)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(2.2804, 0.003, -2.7296)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(-0.3826833808788962, 0, -0.9238795538375647, 0)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(0, 135.00000638598746, -0)),
    				Laya.stage.event("setTeachCarema"),
    				X.instance.changeCarType(l.CAR_TYPE.DIGGER),
    				X.instance.changeCarType(l.CAR_TYPE.BULLDOZER);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		showTruckDirt(e) {
    			switch (
    			(this.isDebug && console.log("showTruckDirt === times == " + e),
    				(this.truck_dirt_1.active = !1),
    				(this.truck_dirt_2.active = !1),
    				(this.truck_dirt_3.active = !1),
    				e)
    			) {
    				case 1:
    					this.truck_dirt_3.active = !0;
    					break;

    				case 2:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0);
    					break;

    				case 3:
    					(this.truck_dirt_3.active = !0), (this.truck_dirt_2.active = !0), (this.truck_dirt_1.active = !0);
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= 2.114 &&
    				this.curPlayer.transform.localPositionX <= 2.914 &&
    				this.curPlayer.transform.localPositionZ <= -2.22 &&
    				this.curPlayer.transform.localPositionZ >= -3.22 &&
    				this.isDebug &&
    				console.log("到达任务地点");
    		}
    		showPlacePos() {
    			if ((this.isDebug && console.log("showPlacePos"), this.curCarema)) {
    				this.curCarema.viewport.project(this.placePos, this.curCarema.projectionViewMatrix, this._outPos2);
    				let e = new Laya.Vector2(this._outPos2.x / Laya.stage.clientScaleX, this._outPos2.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					((Q.instance.taskTipPosX = e.x),
    						(Q.instance.taskTipPosY = e.y),
    						$.instance.showPlaceSign(!0, "放到这里", e.x, e.y));
    			}
    		}
    		showTruckSmoke(e) {
    			this.isDebug && console.log("showTruckSmoke"),
    				e && this.spawnSmokeParticle(new Laya.Vector3(2.1885, 0.072, -2.6225));
    		}
    		exitStageProcess() {
    			if (this.curScene.getChildByName("smokeParticle")) {
    				let e = this.curScene.getChildByName("smokeParticle");
    				e.removeSelf(), Laya.Pool.recover("Particle2", e);
    			}
    			this.particleSmokePre && this.particleSmokePre.destroy(),
    				this.tiggerNode && (this.tiggerNode.removeSelf(), this.tiggerNode.destroy()),
    				this.truck && (this.truck.removeSelf(), this.truck.destroy()),
    				this.particleDropSmokePre && this.particleDropSmokePre.destroy(),
    				Laya.stage.off("CreateDropSmokeParticle", this, this.spawnDropSmokeParticle);
    		}
    		spawnDropSmokeParticle(e) {
    			this.isDebug && (console.log("spawnDropSmokeParticle"), console.log(e));
    			let t = Laya.Pool.getItemByCreateFun("Particle1", this.creatFun, this);
    			(t.transform.position = e),
    				(t.transform.localPosition = e),
    				this.curScene.addChild(t),
    				console.log(t),
    				Laya.timer.once(5e3, this, function () {
    					switch (
    					(this.isDebug && console.log("撒落完成"),
    						t.removeSelf(),
    						Laya.Pool.recover("Particle1", t),
    						Ie.instance.curStageIndex)
    					) {
    						case 103:
    							Ie.instance.showTruckSmoke(!1),
    								this.curPlayer && this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    								(f.instance.curStageProcess += 1),
    								Ie.instance.showTruckDirt(f.instance.curStageProcess),
    								this.isDebug &&
    								(console.log("gameLogic.instance.curStageProcess == " + f.instance.curStageProcess),
    									console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    								$.instance.setTaskCurProgress(f.instance.curStageProcess),
    								f.instance.curStageProcess >= 1 &&
    								((f.instance.isShowDiggerPosSign = !1),
    									(f.instance.isShowPlacePosSign = !1),
    									(f.instance.isShowTargetPosSign = !1),
    									$.instance.showPlaceSign(!1, "", 0, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    									$.instance.showControl1(!1),
    									$.instance.showControl2(!1),
    									$.instance.showSlider1(!1),
    									$.instance.showSlider2(!1),
    									(f.instance.isShowControl = !1),
    									mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()),
    								this.curPlayer.getComponent(Laya.Script3D).setRearBucketState(0);
    					}
    					$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						$.instance.showAllControlKey(!0),
    						(f.instance.isPlayWJJAni = !1);
    				});
    		}
    		creatFun() {
    			return console.log("creatFun"), Laya.Sprite3D.instantiate(this.particleDropSmokePre, this.curScene);
    		}
    		spawnSmokeParticle(e) {
    			this.isDebug && (console.log("spawnSmokeParticle"), console.log(e)), console.log(this.particleSmokePre);
    			let t = Laya.Pool.getItemByCreateFun("Particle2", this.creatFun1, this);
    			(t.name = "smokeParticle"),
    				this.curScene.addChild(t),
    				(t.transform.localPosition = e),
    				Laya.timer.once(5e3, this, function () {
    					this.isDebug && console.log("冒烟完成"), t && (t.removeSelf(), Laya.Pool.recover("Particle2", t));
    				});
    		}
    		creatFun1() {
    			return console.log("creatFun1"), Laya.Sprite3D.instantiate(this.particleSmokePre, this.curScene);
    		}
    	}
    	class Le extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.pos_light = null),
    				(this.targePos1 = new Laya.Vector3(-0.811, 0.039, -1.082)),
    				(this.targePos2 = new Laya.Vector3(1.084, 0.039, -0.777)),
    				(this.targePos3 = new Laya.Vector3(1.054, 0.135, 0.936)),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Le()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage51 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				["res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh"],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage51 === onPreLoadFinish"),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		initStage() {
    			this.isDebug && console.log("stage51 === initStage"),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos1.x, 0.005, this.targePos1.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				(this._manager.curPosIndex = 1),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				$.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage51 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(-1.055, 0.003, 0.976)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, -1, -0, 6.123233995736766e-17)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(-1.055, 0.003, 0.976)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, -1, -0, 6.123233995736766e-17)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -180, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [0]);
    		}
    		showTargetPos() {
    			if (this.curCarema)
    				switch (this._manager.curPosIndex) {
    					case 1:
    						{
    							this.curCarema.viewport.project(this.targePos1, this.curCarema.projectionViewMatrix, this._outPos);
    							let e = new Laya.Vector2(
    								this._outPos.x / Laya.stage.clientScaleX,
    								this._outPos.y / Laya.stage.clientScaleY
    							);
    							if (
    								(this.isDebug && console.log("========================================================="),
    									$.instance.showLeftSign(!1, 0),
    									$.instance.showRightSign(!1, 0),
    									$.instance.showDownSign(!1, 0),
    									$.instance.showUpSign(!1, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    									e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    							)
    								$.instance.showTaskTargetSign(!0, e.x, e.y);
    							else {
    								this.isDebug &&
    									(console.log(this.curCarema.transform.localRotationEulerY),
    										console.log(this.targePos1),
    										console.log(this.curPlayer.transform.position));
    								let e = Math.atan2(
    									this.targePos1.z - this.curPlayer.transform.position.z,
    									this.targePos1.x - this.curPlayer.transform.position.x
    								);
    								this.isDebug && console.log("radio == " + e);
    								let t = (180 * e) / Math.PI;
    								this.isDebug && console.log("angel == " + t);
    								let s = this.curCarema.transform.localRotationEulerY + t;
    								this.isDebug && console.log("targetAnale == " + s);
    								let i = (360 + (s % 360)) % 360;
    								if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    									let e = 0;
    									i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    										this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    								} else if (i > 135 && i < 225) {
    									let e = i - 135;
    									this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    								} else if (i >= 225 && i <= 315) {
    									let e = i - 225;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    								} else {
    									let e = i - 45;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    								}
    							}
    						}
    						break;

    					case 2:
    						{
    							this.curCarema.viewport.project(this.targePos2, this.curCarema.projectionViewMatrix, this._outPos);
    							let e = new Laya.Vector2(
    								this._outPos.x / Laya.stage.clientScaleX,
    								this._outPos.y / Laya.stage.clientScaleY
    							);
    							if (
    								(this.isDebug && console.log("========================================================="),
    									$.instance.showLeftSign(!1, 0),
    									$.instance.showRightSign(!1, 0),
    									$.instance.showDownSign(!1, 0),
    									$.instance.showUpSign(!1, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    									e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    							)
    								$.instance.showTaskTargetSign(!0, e.x, e.y);
    							else {
    								this.isDebug &&
    									(console.log(this.curCarema.transform.localRotationEulerY),
    										console.log(this.targePos2),
    										console.log(this.curPlayer.transform.position));
    								let e = Math.atan2(
    									this.targePos2.z - this.curPlayer.transform.position.z,
    									this.targePos2.x - this.curPlayer.transform.position.x
    								);
    								this.isDebug && console.log("radio == " + e);
    								let t = (180 * e) / Math.PI;
    								this.isDebug && console.log("angel == " + t);
    								let s = this.curCarema.transform.localRotationEulerY + t;
    								this.isDebug && console.log("targetAnale == " + s);
    								let i = (360 + (s % 360)) % 360;
    								if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    									let e = 0;
    									i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    										this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    								} else if (i > 135 && i < 225) {
    									let e = i - 135;
    									this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    								} else if (i >= 225 && i <= 315) {
    									let e = i - 225;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    								} else {
    									let e = i - 45;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    								}
    							}
    						}
    						break;

    					case 3: {
    						this.curCarema.viewport.project(this.targePos3, this.curCarema.projectionViewMatrix, this._outPos);
    						let e = new Laya.Vector2(
    							this._outPos.x / Laya.stage.clientScaleX,
    							this._outPos.y / Laya.stage.clientScaleY
    						);
    						if (
    							(this.isDebug && console.log("========================================================="),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    						)
    							$.instance.showTaskTargetSign(!0, e.x, e.y);
    						else {
    							this.isDebug &&
    								(console.log(this.curCarema.transform.localRotationEulerY),
    									console.log(this.targePos3),
    									console.log(this.curPlayer.transform.position));
    							let e = Math.atan2(
    								this.targePos3.z - this.curPlayer.transform.position.z,
    								this.targePos3.x - this.curPlayer.transform.position.x
    							);
    							this.isDebug && console.log("radio == " + e);
    							let t = (180 * e) / Math.PI;
    							this.isDebug && console.log("angel == " + t);
    							let s = this.curCarema.transform.localRotationEulerY + t;
    							this.isDebug && console.log("targetAnale == " + s);
    							let i = (360 + (s % 360)) % 360;
    							if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    								let e = 0;
    								i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    									this.isDebug && console.log("y  == " + e);
    								let t = (e * Laya.stage.height) / 90;
    								this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    							} else if (i > 135 && i < 225) {
    								let e = i - 135;
    								this.isDebug && console.log("y  == " + e);
    								let t = (e * Laya.stage.height) / 90;
    								this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    							} else if (i >= 225 && i <= 315) {
    								let e = i - 225;
    								this.isDebug && console.log("x  == " + e);
    								let t = (e * Laya.stage.width) / 90;
    								this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    							} else {
    								let e = i - 45;
    								this.isDebug && console.log("x  == " + e);
    								let t = (e * Laya.stage.width) / 90;
    								this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    							}
    						}
    					}
    				}
    		}
    		checkIsArriveTaskLoacation() {
    			if (this.curPlayer)
    				switch (this._manager.curPosIndex) {
    					case 1:
    						this.curPlayer.transform.localPositionX >= this.targePos1.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos1.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos1.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos1.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点1"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								(this._manager.curPosIndex = 2),
    								(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos2.x, 0.005, this.targePos2.z)));
    						break;

    					case 2:
    						this.curPlayer.transform.localPositionX >= this.targePos2.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos2.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos2.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos2.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点2"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								(this._manager.curPosIndex = 3),
    								(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos3.x, 0.005, this.targePos3.z)));
    						break;

    					case 3:
    						this.curPlayer.transform.localPositionX >= this.targePos3.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos3.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos3.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos3.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点3"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								(f.instance.curStageProcess += 1),
    								$.instance.setTaskCurProgress(f.instance.curStageProcess),
    								f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    								(D.SendEvent("初级驾驶（新）完成次数统计", 2001, !1),
    									(f.instance.isShowDiggerPosSign = !1),
    									(f.instance.isShowPlacePosSign = !1),
    									(f.instance.isShowTargetPosSign = !1),
    									$.instance.showDiggerSign(!1, "", 0, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    									$.instance.showControl1(!1),
    									$.instance.showControl2(!1),
    									$.instance.showSlider1(!1),
    									$.instance.showSlider2(!1),
    									(f.instance.isShowControl = !1),
    									$.instance.stopChecHideBox(),
    									$.instance.stopCheckQuickWin(),
    									Laya.stage.event("hideBox_ClickClose"),
    									Laya.stage.event("quickWin_ClickClose"),
    									mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu()));
    				}
    		}
    		exitStageProcess() {
    			this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class fe extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this.dirtPrefab = null),
    				(this.dirt_1 = null),
    				(this.dirt_2 = null),
    				(this.dirt_3 = null),
    				(this.pos_light = null),
    				(this.targePos = new Laya.Vector3(0.136, 0.039, -0.652)),
    				(this.diggerPos = new Laya.Vector3(0.107, 0.039, -0.3681)),
    				(this.placePos = new Laya.Vector3(2.213, 0.135, -2.623)),
    				(this._manager = null),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new fe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			this.isDebug && console.log("stage1 === loadMap"),
    				(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/dirt_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("stage1 === onPreLoadFinish");
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/dirt_1.lh");
    			(this.dirtPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.dirt_1 = Laya.Pool.getItemByCreateFun("dirt", this.creatDirtFun, this)),
    				(this.dirt_1.name = "dirt_1"),
    				(this.dirt_1.active = !0),
    				(this.dirt_2 = Laya.Pool.getItemByCreateFun("dirt", this.creatDirtFun, this)),
    				(this.dirt_2.name = "dirt_2"),
    				(this.dirt_2.active = !0),
    				(this.dirt_3 = Laya.Pool.getItemByCreateFun("dirt", this.creatDirtFun, this)),
    				(this.dirt_3.name = "dirt_3"),
    				(this.dirt_3.active = !0),
    				this.curScene.addChild(this.dirt_1),
    				this.curScene.addChild(this.dirt_2),
    				this.curScene.addChild(this.dirt_3),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatDirtFun() {
    			return this.isDebug && console.log("creatDirtFun"), Laya.Sprite3D.instantiate(this.dirtPrefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage1 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(-1.016, 0.003, -1.018)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(-0, 0.7071067811865475, 0, 0.7071067811865476)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(-1.016, 0.003, -1.018)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(-0, 0.7071067811865475, 0, 0.7071067811865476)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, 90, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [-90]);
    		}
    		initStage() {
    			this.isDebug && console.log("stage1 === initStage"),
    				(this.dirt_1.transform.localPosition = new Laya.Vector3(0.293, -0.032, -0.386)),
    				(this.dirt_1.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_2.transform.localPosition = new Laya.Vector3(0.107, -0.045, -0.3681)),
    				(this.dirt_2.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.dirt_3.transform.localPosition = new Laya.Vector3(-0.0884, -0.0519, -0.3682)),
    				(this.dirt_3.transform.localRotationEuler = new Laya.Vector3(-90, 0, 0)),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				this.curPlayer.getComponent(Laya.Script3D).showRearBucketDirt(!1),
    				(f.instance.isHaveDirtInBucket = !1),
    				(f.instance.isArriveTaskPos = !1),
    				$.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		showTargetPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    				let e = new Laya.Vector2(this._outPos.x / Laya.stage.clientScaleX, this._outPos.y / Laya.stage.clientScaleY);
    				if (
    					(this.isDebug && console.log("========================================================="),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    						e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    				)
    					$.instance.showTaskTargetSign(!0, e.x, e.y);
    				else {
    					this.isDebug &&
    						(console.log(this.curCarema.transform.localRotationEulerY),
    							console.log(this.targePos),
    							console.log(this.curPlayer.transform.position));
    					let e = Math.atan2(
    						this.targePos.z - this.curPlayer.transform.position.z,
    						this.targePos.x - this.curPlayer.transform.position.x
    					);
    					this.isDebug && console.log("radio == " + e);
    					let t = (180 * e) / Math.PI;
    					this.isDebug && console.log("angel == " + t);
    					let s = this.curCarema.transform.localRotationEulerY + t;
    					this.isDebug && console.log("targetAnale == " + s);
    					let i = (360 + (s % 360)) % 360;
    					if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    						let e = 0;
    						i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    							this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    					} else if (i > 135 && i < 225) {
    						let e = i - 135;
    						this.isDebug && console.log("y  == " + e);
    						let t = (e * Laya.stage.height) / 90;
    						this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    					} else if (i >= 225 && i <= 315) {
    						let e = i - 225;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    					} else {
    						let e = i - 45;
    						this.isDebug && console.log("x  == " + e);
    						let t = (e * Laya.stage.width) / 90;
    						this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    					}
    				}
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			this.curPlayer &&
    				this.curPlayer.transform.localPositionX >= this.targePos.x - 0.1 &&
    				this.curPlayer.transform.localPositionX <= this.targePos.x + 0.1 &&
    				this.curPlayer.transform.localPositionZ <= this.targePos.z + 0.1 &&
    				this.curPlayer.transform.localPositionZ >= this.targePos.z - 0.1 &&
    				(this.isDebug && console.log("到达任务地点"),
    					f.instance.isArriveTaskPos ||
    					((f.instance.isArriveTaskPos = !0),
    						L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    						this.shwoPosLight(!1),
    						$.instance.showControl1(!0),
    						$.instance.showControl2(!0),
    						(f.instance.isShowControl = !0),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						$.instance.showLeftSign(!1, 0),
    						$.instance.showRightSign(!1, 0),
    						$.instance.showDownSign(!1, 0),
    						$.instance.showUpSign(!1, 0),
    						(f.instance.isShowDiggerPosSign = !0)));
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里挖土", e.x, e.y);
    			}
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.dirt_1.active = !1;
    					break;

    				case 2:
    					this.dirt_2.active = !1;
    					break;

    				case 3:
    					this.dirt_3.active = !1;
    			}
    		}
    		exitStageProcess() {
    			this.dirt_1 && (this.dirt_1.removeSelf(), Laya.Pool.recover("dirt", this.dirt_1)),
    				this.dirt_2 && (this.dirt_2.removeSelf(), Laya.Pool.recover("dirt", this.dirt_2)),
    				this.dirt_3 && (this.dirt_3.removeSelf(), Laya.Pool.recover("dirt", this.dirt_3)),
    				this.dirtPrefab && this.dirtPrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class be extends Laya.Script {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.curScene = null),
    				(this.curPlayer = null),
    				(this.curCarema = null),
    				(this.curMap = null),
    				(this._manager = null),
    				(this.boxPrefab = null),
    				(this.box_1 = null),
    				(this.box_2 = null),
    				(this.box_3 = null),
    				(this.pos_light = null),
    				(this.boxOnFork = null),
    				(this.targePos = new Laya.Vector3(-0.321, 0.039, -0.2564)),
    				(this.targePos1 = new Laya.Vector3(0.564, 0.039, -0.196)),
    				(this.diggerPos = new Laya.Vector3(-0.43, 0.039, -0.197)),
    				(this.curBoxIndex = 0),
    				(this.posTween1_1 = null),
    				(this.posTween1_2 = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new be()), this._instance.init(), this._instance);
    		}
    		init() { }
    		setManager(e) {
    			this._manager = e;
    		}
    		loadMap(e, t, s, i) {
    			(this.curScene = e),
    				(this.curPlayer = s),
    				(this.curCarema = i),
    				(this.curMap = t),
    				(this._outPos = new Laya.Vector4()),
    				(this._outPos1 = new Laya.Vector4()),
    				(this._outPos2 = new Laya.Vector4()),
    				(f.instance.isShowTargetPosSign = !0),
    				(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				$.instance.showDiggerSign(!1, "", 0, 0),
    				$.instance.showPlaceSign(!1, "", 0, 0);
    			Laya.loader.create(
    				[
    					"res/3DRes/LayaScene_MainScene/Conventional/F_box_1.lh",
    					"res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh",
    				],
    				Laya.Handler.create(this, this.onPreLoadFinish)
    			);
    		}
    		onPreLoadFinish() {
    			let e = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/F_box_1.lh");
    			(this.boxPrefab = Laya.Sprite3D.instantiate(e)),
    				(this.box_1 = Laya.Pool.getItemByCreateFun("Box", this.creatBoxFun, this)),
    				(this.box_1.name = "box_1"),
    				(this.box_2 = Laya.Pool.getItemByCreateFun("Box", this.creatBoxFun, this)),
    				(this.box_2.name = "box_2"),
    				(this.box_3 = Laya.Pool.getItemByCreateFun("Box", this.creatBoxFun, this)),
    				(this.box_3.name = "box_3"),
    				(this.box_1.active = !0),
    				(this.box_2.active = !0),
    				(this.box_3.active = !0),
    				this.curScene.addChild(this.box_1),
    				this.curScene.addChild(this.box_2),
    				this.curScene.addChild(this.box_3),
    				(this.boxOnFork = Laya.Pool.getItemByCreateFun("BoxOnFork", this.creatBoxFun, this)),
    				(this.boxOnFork.name = "boxOnFork"),
    				(this.boxOnFork.transform.localPosition = new Laya.Vector3(0.005, -0.274, -0.236)),
    				(this.boxOnFork.transform.localRotationEuler = new Laya.Vector3(90, 0, 0)),
    				(this.boxOnFork.transform.localScale = new Laya.Vector3(12.5, 12.5, 12.5)),
    				this.curPlayer.getComponent(Laya.Script3D).getForks().addChild(this.boxOnFork),
    				(this.boxOnFork.active = !1),
    				(this.pos_light = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/pos_light.lh")),
    				this.curScene.addChild(this.pos_light),
    				this.initPlayer(),
    				this.initStage();
    		}
    		creatBoxFun() {
    			return console.log("creatBoxFun"), Laya.Sprite3D.instantiate(this.boxPrefab, this.curScene);
    		}
    		initPlayer() {
    			this.isDebug && console.log("stage53 === initPlayer"),
    				(this.curPlayer.transform.position = new Laya.Vector3(0.205, 0.003, -0.661)),
    				(this.curPlayer.transform.rotation = new Laya.Quaternion(0, -0.7071067811865475, -0, 0.7071067811865476)),
    				(this.curPlayer.transform.localPosition = new Laya.Vector3(0.205, 0.003, -0.661)),
    				(this.curPlayer.transform.localRotation = new Laya.Quaternion(0, -0.7071067811865475, -0, 0.7071067811865476)),
    				(this.curPlayer.transform.localRotationEuler = new Laya.Vector3(-0, -90, -0)),
    				this.curPlayer.getComponent(Laya.Script3D).changeCarType(l.CAR_TYPE.DIGGER),
    				$.instance.setCurUseTool(l.CAR_TYPE.DIGGER),
    				this.curPlayer.getComponent(Laya.Script3D).initCar(),
    				Laya.stage.event("resetCarema", [90]);
    		}
    		initStage() {
    			(this.box_1.transform.localPosition = new Laya.Vector3(-0.43, 4072986e-12, -0.197)),
    				(this.box_1.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.box_2.transform.localPosition = new Laya.Vector3(-0.43, 4072986e-12, -0.3202001)),
    				(this.box_2.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.box_3.transform.localPosition = new Laya.Vector3(-0.43, 4072986e-12, -0.258)),
    				(this.box_3.transform.localRotationEuler = new Laya.Vector3(0, -90, 0)),
    				(this.box_1.active = !0),
    				(this.box_2.active = !0),
    				(this.box_3.active = !0),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos.x, 0.005, this.targePos.z)),
    				(this.pos_light.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
    				(this.pos_light.active = !0),
    				(this.curBoxIndex = 0),
    				(this._manager.curPosIndex = 1),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				$.instance.showAllControlKey(!0),
    				(f.instance.isArriveTaskPos = !1),
    				$.instance.showTime(!1, 0),
    				(f.instance.curStageProcess = 0),
    				(f.instance.isHaveObjectInTick = !1),
    				$.instance.setTaskMaxProgress(f.instance.getTaskNumber(this._manager.curStageIndex)),
    				$.instance.setTaskCurProgress(f.instance.curStageProcess),
    				(f.instance.isStartCollision = !0),
    				(f.instance.isLoadStageMapComplete = !0),
    				$.instance.showMissionTip(!0),
    				$.instance.showAllBtnNoGroup(!0),
    				$.instance.showTeachSkipBtn(!1),
    				this.shwoPosLight(!0),
    				Laya.stage.event("startCarMove", 1),
    				Laya.stage.event("startCarMove", 2);
    		}
    		hideItem(e, t) {
    			switch (e) {
    				case 1:
    					this.box_1.active = !1;
    					break;

    				case 2:
    					this.box_2.active = !1;
    					break;

    				case 3:
    					this.box_3.active = !1;
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			if (this.curPlayer)
    				switch (this._manager.curPosIndex) {
    					case 1:
    						this.curPlayer.transform.localPositionX >= this.targePos.x - 0.2 &&
    							this.curPlayer.transform.localPositionX <= this.targePos.x + 0.2 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos.z + 0.2 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos.z - 0.2 &&
    							(this.isDebug && console.log("到达任务地点1"),
    								f.instance.isArriveTaskPos ||
    								((f.instance.isArriveTaskPos = !0),
    									L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    									this.shwoPosLight(!1),
    									$.instance.showSlider2(!0),
    									(f.instance.isShowControl = !0),
    									(f.instance.isShowTargetPosSign = !1),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									$.instance.showLeftSign(!1, 0),
    									$.instance.showRightSign(!1, 0),
    									$.instance.showDownSign(!1, 0),
    									$.instance.showUpSign(!1, 0),
    									(f.instance.isShowDiggerPosSign = !0)));
    						break;

    					case 2:
    						this.curPlayer.transform.localPositionX >= this.targePos1.x - 0.1 &&
    							this.curPlayer.transform.localPositionX <= this.targePos1.x + 0.1 &&
    							this.curPlayer.transform.localPositionZ <= this.targePos1.z + 0.1 &&
    							this.curPlayer.transform.localPositionZ >= this.targePos1.z - 0.1 &&
    							(this.isDebug && console.log("到达任务地点2"),
    								L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    								f.instance.isHaveObjectInTick &&
    								((f.instance.curStageProcess += 1),
    									$.instance.setTaskCurProgress(f.instance.curStageProcess),
    									f.instance.curStageProcess >= f.instance.getTaskNumber(Ie.instance.curStageIndex) &&
    									(D.SendEvent("初级搬运（新）完成次数统计", 2003, !1),
    										(f.instance.isShowDiggerPosSign = !1),
    										(f.instance.isShowPlacePosSign = !1),
    										(f.instance.isShowTargetPosSign = !1),
    										$.instance.showDiggerSign(!1, "", 0, 0),
    										$.instance.showTaskTargetSign(!1, 0, 0),
    										this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    										$.instance.showControl1(!1),
    										$.instance.showControl2(!1),
    										$.instance.showSlider1(!1),
    										$.instance.showSlider2(!1),
    										(f.instance.isShowControl = !1),
    										$.instance.stopChecHideBox(),
    										$.instance.stopCheckQuickWin(),
    										Laya.stage.event("hideBox_ClickClose"),
    										Laya.stage.event("quickWin_ClickClose"),
    										mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu())));
    				}
    		}
    		showTargetPos() {
    			if (this.curCarema)
    				switch (this._manager.curPosIndex) {
    					case 1:
    						{
    							this.curCarema.viewport.project(this.targePos, this.curCarema.projectionViewMatrix, this._outPos);
    							let e = new Laya.Vector2(
    								this._outPos.x / Laya.stage.clientScaleX,
    								this._outPos.y / Laya.stage.clientScaleY
    							);
    							if (
    								(this.isDebug && console.log("========================================================="),
    									$.instance.showLeftSign(!1, 0),
    									$.instance.showRightSign(!1, 0),
    									$.instance.showDownSign(!1, 0),
    									$.instance.showUpSign(!1, 0),
    									$.instance.showTaskTargetSign(!1, 0, 0),
    									this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    									e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    							)
    								$.instance.showTaskTargetSign(!0, e.x, e.y);
    							else {
    								this.isDebug &&
    									(console.log(this.curCarema.transform.localRotationEulerY),
    										console.log(this.targePos),
    										console.log(this.curPlayer.transform.position));
    								let e = Math.atan2(
    									this.targePos.z - this.curPlayer.transform.position.z,
    									this.targePos.x - this.curPlayer.transform.position.x
    								);
    								this.isDebug && console.log("radio == " + e);
    								let t = (180 * e) / Math.PI;
    								this.isDebug && console.log("angel == " + t);
    								let s = this.curCarema.transform.localRotationEulerY + t;
    								this.isDebug && console.log("targetAnale == " + s);
    								let i = (360 + (s % 360)) % 360;
    								if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    									let e = 0;
    									i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    										this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    								} else if (i > 135 && i < 225) {
    									let e = i - 135;
    									this.isDebug && console.log("y  == " + e);
    									let t = (e * Laya.stage.height) / 90;
    									this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    								} else if (i >= 225 && i <= 315) {
    									let e = i - 225;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    								} else {
    									let e = i - 45;
    									this.isDebug && console.log("x  == " + e);
    									let t = (e * Laya.stage.width) / 90;
    									this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    								}
    							}
    						}
    						break;

    					case 2: {
    						this.curCarema.viewport.project(this.targePos1, this.curCarema.projectionViewMatrix, this._outPos);
    						let e = new Laya.Vector2(
    							this._outPos.x / Laya.stage.clientScaleX,
    							this._outPos.y / Laya.stage.clientScaleY
    						);
    						if (
    							(this.isDebug && console.log("========================================================="),
    								$.instance.showLeftSign(!1, 0),
    								$.instance.showRightSign(!1, 0),
    								$.instance.showDownSign(!1, 0),
    								$.instance.showUpSign(!1, 0),
    								$.instance.showTaskTargetSign(!1, 0, 0),
    								this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    								e.x >= 0 && e.x <= Laya.stage.width && e.y >= 0 && e.y <= Laya.stage.height)
    						)
    							$.instance.showTaskTargetSign(!0, e.x, e.y);
    						else {
    							this.isDebug &&
    								(console.log(this.curCarema.transform.localRotationEulerY),
    									console.log(this.targePos1),
    									console.log(this.curPlayer.transform.position));
    							let e = Math.atan2(
    								this.targePos1.z - this.curPlayer.transform.position.z,
    								this.targePos1.x - this.curPlayer.transform.position.x
    							);
    							this.isDebug && console.log("radio == " + e);
    							let t = (180 * e) / Math.PI;
    							this.isDebug && console.log("angel == " + t);
    							let s = this.curCarema.transform.localRotationEulerY + t;
    							this.isDebug && console.log("targetAnale == " + s);
    							let i = (360 + (s % 360)) % 360;
    							if ((this.isDebug && console.log("showAngle == " + i), (i >= 0 && i < 45) || (i > 315 && i <= 360))) {
    								let e = 0;
    								i >= 0 && i < 45 ? (e = 45 - i) : i > 315 && i <= 360 && (e = i - 270),
    									this.isDebug && console.log("y  == " + e);
    								let t = (e * Laya.stage.height) / 90;
    								this.isDebug && console.log("showY == " + t), $.instance.showRightSign(!0, t);
    							} else if (i > 135 && i < 225) {
    								let e = i - 135;
    								this.isDebug && console.log("y  == " + e);
    								let t = (e * Laya.stage.height) / 90;
    								this.isDebug && console.log("showY == " + t), $.instance.showLeftSign(!0, Laya.stage.height - t);
    							} else if (i >= 225 && i <= 315) {
    								let e = i - 225;
    								this.isDebug && console.log("x  == " + e);
    								let t = (e * Laya.stage.width) / 90;
    								this.isDebug && console.log("showX == " + t), $.instance.showUpSign(!0, t);
    							} else {
    								let e = i - 45;
    								this.isDebug && console.log("x  == " + e);
    								let t = (e * Laya.stage.width) / 90;
    								this.isDebug && console.log("showX == " + t), $.instance.showDownSign(!0, Laya.stage.width - t);
    							}
    						}
    					}
    				}
    		}
    		showDiggerPos() {
    			if (this.curCarema) {
    				this.curCarema.viewport.project(this.diggerPos, this.curCarema.projectionViewMatrix, this._outPos1);
    				let e = new Laya.Vector2(this._outPos1.x / Laya.stage.clientScaleX, this._outPos1.y / Laya.stage.clientScaleY);
    				this.isDebug && (console.log("targetPos.x == " + e.x), console.log("targetPos.y == " + e.y)),
    					e.x >= 0 &&
    					e.x <= Laya.stage.width &&
    					e.y >= 0 &&
    					e.y <= Laya.stage.height &&
    					$.instance.showDiggerSign(!0, "这里抬起货物", e.x, e.y);
    			}
    		}
    		exitStageProcess() {
    			this.box_1 && (this.box_1.removeSelf(), Laya.Pool.recover("Box", this.box_1)),
    				this.box_2 && (this.box_2.removeSelf(), Laya.Pool.recover("Box", this.box_2)),
    				this.box_3 && (this.box_3.removeSelf(), Laya.Pool.recover("Box", this.box_3)),
    				this.boxOnFork && (this.boxOnFork.removeSelf(), Laya.Pool.recover("BoxOnFork", this.boxOnFork)),
    				this.boxPrefab && this.boxPrefab.destroy(),
    				this.pos_light &&
    				(this.shwoPosLight(!1), this.pos_light.removeSelf(), this.pos_light.destroy, (this.pos_light = null));
    		}
    		reShowPoslight() {
    			this.isDebug && console.log("reShowPoslight"),
    				(this._manager.curPosIndex = 2),
    				(this.pos_light.transform.localPosition = new Laya.Vector3(this.targePos1.x, 0.005, this.targePos1.z)),
    				(f.instance.isShowTargetPosSign = !0),
    				this.shwoPosLight(!0);
    		}
    		shwoPosLight(e) {
    			this.isDebug && console.log("shwoPosLight == isShow" + e),
    				this.pos_light &&
    				((this.pos_light.active = e),
    					e
    						? ((this.pos_light.transform.localScaleX = 0.05),
    							(this.pos_light.transform.localScaleZ = 0.05),
    							(this.posTween1_1 = Laya.Tween.to(
    								this.pos_light.transform,
    								{
    									localScaleX: 0.02,
    									localScaleZ: 0.02,
    								},
    								1e3,
    								Laya.Ease.linearNone,
    								Laya.Handler.create(this, this.light1End1),
    								0
    							)))
    						: (this.posTween1_1 && Laya.Tween.clear(this.posTween1_1),
    							this.posTween1_2 && Laya.Tween.clear(this.posTween1_2)));
    		}
    		light1End1() {
    			this.isDebug && console.log("light1End1"),
    				this.posTween1_1 &&
    				(Laya.Tween.clear(this.posTween1_1),
    					this.pos_light &&
    					(this.posTween1_2 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.05,
    							localScaleZ: 0.05,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End2),
    						0
    					)));
    		}
    		light1End2() {
    			this.isDebug && console.log("light1End2"),
    				this.posTween1_2 &&
    				(Laya.Tween.clear(this.posTween1_2),
    					this.pos_light &&
    					(this.posTween1_1 = Laya.Tween.to(
    						this.pos_light.transform,
    						{
    							localScaleX: 0.02,
    							localScaleZ: 0.02,
    						},
    						1e3,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.light1End1),
    						0
    					)));
    		}
    	}
    	class Ie extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.curStageIndex = 1),
    				(this.curStageType = 0),
    				(this.curDiggerPos = 1),
    				(this.curMapType = 0),
    				(this.curPlayerCarResType = 0),
    				(this.house1DamageCount = 0),
    				(this.house2DamageCount = 0),
    				(this.house3DamageCount = 0),
    				(this.isHouse1Damaged = !1),
    				(this.isHouse2Damaged = !1),
    				(this.isHouse3Damaged = !1),
    				(this.road1DamageCount = 0),
    				(this.road2DamageCount = 0),
    				(this.road3DamageCount = 0),
    				(this.isRoad1Damaged = !1),
    				(this.isRoad2Damaged = !1),
    				(this.isRoad3Damaged = !1),
    				(this.isTree1Damaged = !1),
    				(this.isTree2Damaged = !1),
    				(this.isTree3Damaged = !1),
    				(this.gandao1Complete = !1),
    				(this.gandao2Complete = !1),
    				(this.gandao3Complete = !1),
    				(this.newStageIndex = 0),
    				(this.curPosIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ie()), this._instance.init(), this._instance);
    		}
    		init() {
    			ee.instance.setManager(this),
    				te.instance.setManager(this),
    				se.instance.setManager(this),
    				oe.instance.setManager(this),
    				re.instance.setManager(this),
    				F.instance.setManager(this),
    				ce.instance.setManager(this),
    				ge.instance.setManager(this),
    				_e.instance.setManager(this),
    				Se.instance.setManager(this),
    				ye.instance.setManager(this),
    				pe.instance.setManager(this),
    				Te.instance.setManager(this),
    				Le.instance.setManager(this),
    				fe.instance.setManager(this),
    				be.instance.setManager(this),
    				we.instance.setManager(this),
    				Ce.instance.setManager(this),
    				Pe.instance.setManager(this);
    		}
    		isChallengeLevel() {
    			return this.curStageIndex > 13;
    		}
    		getStageTypeByStageIndex() {
    			switch (this.curStageIndex) {
    				case 1:
    				case 14:
    					return l.TASK_TYPE.TASK_TYPE_TASK_01;

    				case 2:
    				case 15:
    					return l.TASK_TYPE.TASK_TYPE_TASK_02;

    				case 3:
    				case 16:
    					return l.TASK_TYPE.TASK_TYPE_TASK_08;

    				case 4:
    				case 17:
    					return l.TASK_TYPE.TASK_TYPE_TASK_04;

    				case 5:
    				case 18:
    					return l.TASK_TYPE.TASK_TYPE_TASK_05;

    				case 6:
    				case 19:
    					return l.TASK_TYPE.TASK_TYPE_TASK_06;

    				case 7:
    				case 20:
    					return l.TASK_TYPE.TASK_TYPE_TASK_07;

    				case 8:
    				case 21:
    					return l.TASK_TYPE.TASK_TYPE_TASK_03;

    				case 9:
    				case 22:
    					return l.TASK_TYPE.TASK_TYPE_TASK_09;

    				case 10:
    				case 23:
    					return l.TASK_TYPE.TASK_TYPE_TASK_10;

    				case 11:
    				case 24:
    					return l.TASK_TYPE.TASK_TYPE_TASK_11;

    				case 12:
    				case 25:
    					return l.TASK_TYPE.TASK_TYPE_TASK_12;

    				case 13:
    				case 26:
    					return l.TASK_TYPE.TASK_TYPE_TASK_13;

    				case 101:
    					return l.TASK_TYPE.TASK_TYPE_TASK_TEACH_1;

    				case 102:
    					return l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2;

    				case 103:
    					return l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3;
    			}
    			return 0;
    		}
    		loadMap(e, t, s, i) {
    			switch (
    			(this.isDebug && console.log("this.curStageIndex == " + this.curStageIndex), this.getStageTypeByStageIndex())
    			) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_1:
    					Le.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_1:
    					we.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2:
    					Ce.instance.loadMap(e, t, s, i);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.loadMap(e, t, s, i);
    			}
    		}
    		checkIsArriveTaskLoacation() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_1:
    					Le.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_1:
    					we.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2:
    					Ce.instance.checkIsArriveTaskLoacation();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.checkIsArriveTaskLoacation();
    			}
    		}
    		showTargetPos() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_1:
    					Le.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_1:
    					we.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2:
    					Ce.instance.showTargetPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.showTargetPos();
    			}
    		}
    		showDiggerPos() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.showDiggerPos(this.curDiggerPos);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.showDiggerPos(this.curDiggerPos);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.showDiggerPos(this.curDiggerPos);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.showDiggerPos(this.curDiggerPos);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.showDiggerPos(this.curDiggerPos);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.showDiggerPos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2:
    					Ce.instance.showDiggerPos();
    			}
    		}
    		showPlacePos() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.showPlacePos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.showPlacePos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.showPlacePos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.showPlacePos(this.curDiggerPos);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.showPlacePos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.showPlacePos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.showPlacePos();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.showPlacePos();
    			}
    		}
    		reShowPosLight() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.reShowPoslight();
    			}
    		}
    		showTruckDirt(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.showTruckDirt(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.showTruckDirt(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.showTruckDirt(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.showTruckDirt(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.showTruckDirt(e);
    			}
    		}
    		showTruckSmoke(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.showTruckSmoke(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.showTruckSmoke(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.showTruckSmoke(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.showTruckSmoke(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.showTruckSmoke(e);
    			}
    		}
    		showBoxOnTruck() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.showBoxOnTruck();
    			}
    		}
    		showCarOnTruck(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.showCarOnTruck(e);
    			}
    		}
    		hideItem(e, t) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.hideItem(e, t);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.hideItem(e, t);
    			}
    		}
    		playHouseAni(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					switch (e) {
    						case 1:
    							se.instance.playHouse1Ani();
    							break;

    						case 2:
    							se.instance.playHouse2Ani();
    							break;

    						case 3:
    							se.instance.playHouse3Ani();
    					}
    			}
    		}
    		playRoadAni(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					switch (e) {
    						case 1:
    							ye.instance.playRoad1Ani();
    							break;

    						case 2:
    							ye.instance.playRoad2Ani();
    							break;

    						case 3:
    							ye.instance.playRoad3Ani();
    					}
    			}
    		}
    		playWallAni(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.playWallAni(e);
    			}
    		}
    		showStageAni(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.showStageAni(e);
    			}
    		}
    		initStageAni() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.initStageAni();
    			}
    		}
    		playStageAni(e) {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.playStageAni();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.playStageAni(e);
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.playStageAni(e);
    			}
    		}
    		exitStageAni() {
    			switch (this.getStageTypeByStageIndex()) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.exitStageAni();
    			}
    		}
    		failProcess() {
    			(f.instance.isShowDiggerPosSign = !1),
    				(f.instance.isShowPlacePosSign = !1),
    				(f.instance.isShowTargetPosSign = !1),
    				$.instance.showPlaceSign(!1, "", 0, 0),
    				$.instance.showTaskTargetSign(!1, 0, 0),
    				$.instance.showLeftSign(!1, 0),
    				$.instance.showRightSign(!1, 0),
    				$.instance.showDownSign(!1, 0),
    				$.instance.showUpSign(!1, 0),
    				(f.instance.isPlayerUpdate = !1),
    				$.instance.showControl1(!1),
    				$.instance.showControl2(!1),
    				$.instance.showSlider1(!1),
    				$.instance.showSlider2(!1),
    				(f.instance.isShowControl = !1),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_FAIL) && mt.instance.showGameFailMenu();
    		}
    		reSetProcess() {
    			switch (
    			((f.instance.curSpeed = 0),
    				(f.instance.isForward = !1),
    				(f.instance.isBackAway = !1),
    				(f.instance.isLeft = !1),
    				(f.instance.isRight = !1),
    				(f.instance.isRunFont = !1),
    				(f.instance.isRunBack = !1),
    				(f.instance.isColliderFontStop = !1),
    				(f.instance.isColliderBackStop = !1),
    				(f.instance.isBrake = !1),
    				(f.instance.curSpeed = 0),
    				this.getStageTypeByStageIndex())
    			) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_1:
    					Le.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.initPlayer();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_1:
    					we.instance.initPlayer();
    			}
    			f.instance.isPlayerUpdate = !0;
    		}
    		exitStageProcess() {
    			switch (
    			(this.isDebug && (console.log("exitStageProcess"), console.log("this.curStageIndex == " + this.curStageIndex)),
    				this.getStageTypeByStageIndex())
    			) {
    				case l.TASK_TYPE.TASK_TYPE_TASK_01:
    					ee.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_02:
    					te.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_03:
    					se.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_04:
    					oe.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_05:
    					re.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_06:
    					F.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_07:
    					ce.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_08:
    					ge.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_09:
    					_e.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_10:
    					Se.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_11:
    					ye.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_12:
    					pe.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_13:
    					Te.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_1:
    					Le.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_2:
    					fe.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_PRIMARY_3:
    					be.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_1:
    					we.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_2:
    					Ce.instance.exitStageProcess();
    					break;

    				case l.TASK_TYPE.TASK_TYPE_TASK_TEACH_3:
    					Pe.instance.exitStageProcess();
    			}
    		}
    	}
    	class ke extends h {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this._uiManager = null),
    				(this.curTaskType = 0),
    				(this.curShowTaskIndex = 0),
    				(this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ke()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e, t) {
    			(this._view = e),
    				(this._uiManager = t),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnClose = this._content.getChild("n20").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this.carIcon = this._content.getChild("n3").asLoader),
    				(this.modeGroup = this._content.getChild("n7").asGroup),
    				(this.rewardGroup = this._content.getChild("n12").asGroup),
    				(this.timeGroup = this._content.getChild("n16").asGroup),
    				(this.modeTitle = this._content.getChild("n5").asLabel),
    				(this.toolName = this._content.getChild("n24").asLabel),
    				(this.toolIcon = this._content.getChild("n23").asLoader),
    				(this.modeMsg = this._content.getChild("n6").asLabel),
    				(this.rewardMsg = this._content.getChild("n11").asLabel),
    				(this.timeMsg = this._content.getChild("n15").asLabel),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("missionMenu initUI"),
    				B.ShuFenReport_guide("lost019", 2),
    				(this.curShowTaskIndex = Ie.instance.curStageIndex),
    				this.curShowTaskIndex > 13 && this.curShowTaskIndex <= 100 ? (this.curTaskType = 1) : (this.curTaskType = 0),
    				this.setTaskContent(),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("任务说明");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("missionMenu onShown"),
    				Ie.instance.curStageIndex > 100 &&
    				(this.isDebug &&
    					(console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    						console.log("PlayerData.instance.playerInfo.teachStep == " + L.instance.playerInfo.teachStep)),
    					Q.instance.stopNextStep(),
    					Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep)),
    				2 == Ie.instance.curStageIndex &&
    				Q.instance.isShowTeachInStage &&
    				(Q.instance.stopNextStep(), Q.instance.showTeach(4, Q.instance.stageTeachStep));
    		}
    		onHide() {
    			this.isDebug && console.log("missionMenu onHide");
    			let e = this.curCloseIndex;
    			switch ((this._uiManager.popMenu(l.UI_STATE.UI_STATE_MISSION), this._view.removeFromParent(), e)) {
    				case 0:
    					if (f.instance.isNeeShowLimitUse) {
    						f.instance.isNeeShowLimitUse = !1;
    						let e = A.instance.checkIsShowLimitUse();
    						this.isDebug && console.log("showCarType == " + e),
    							0 != e &&
    							((f.instance.curTryCarType = L.instance.carInfo.lastLimitTimeCar),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMIT_USE) && mt.instance.showLimitTimeUse());
    					}
    					break;

    				case 1:
    					Q.instance.stopNextStep(),
    						Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep);
    					break;

    				case 2:
    					Q.instance.stopNextStep(), Q.instance.showTeach(4, Q.instance.stageTeachStep);
    			}
    		}
    		onClickClose() {
    			this.isDebug && console.log("missionMenu onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				2 == Ie.instance.curStageIndex && Q.instance.isShowTeachInStage
    					? (Q.instance.hideTeach(),
    						2 == Q.instance.stageTeachStep && (Q.instance.stageTeachStep = 3),
    						(this.curCloseIndex = 2))
    					: (this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		setTaskContent() {
    			if ((this.isDebug && console.log("missionMenu setTaskContent"), this.curShowTaskIndex > 100))
    				switch (
    				((this.timeGroup.visible = !1), (this.carIcon.url = "ui://Common/ui_rw_gcc_03"), this.curShowTaskIndex)
    				) {
    					case 101:
    						(this.modeTitle.text = "挖掘模式"),
    							(this.toolName.text = "挖斗"),
    							(this.toolIcon.url = V.instance.getToolIcon(1)),
    							(this.modeMsg.text = "将挖掘机开到指定位置"),
    							(this.rewardMsg.text = "x250");
    						break;

    					case 102:
    						(this.modeTitle.text = "挖掘模式"),
    							(this.toolName.text = "挖斗"),
    							(this.toolIcon.url = V.instance.getToolIcon(1)),
    							(this.modeMsg.text = "挖掘游戏中的第一次土"),
    							(this.rewardMsg.text = "x250");
    						break;

    					case 103:
    						(this.modeTitle.text = "挖掘模式"),
    							(this.toolName.text = "挖斗"),
    							(this.toolIcon.url = V.instance.getToolIcon(1)),
    							(this.modeMsg.text = "将挖掘出的土放到车中"),
    							(this.rewardMsg.text = "x500");
    				}
    			else {
    				switch (
    				(1 == this.curTaskType
    					? ((this.timeGroup.visible = !0), (this.timeMsg.text = f.instance.getTaskTime(this.curShowTaskIndex) + "s"))
    					: (this.timeGroup.visible = !1),
    					f.instance.getTaskCar(this.curShowTaskIndex))
    				) {
    					case 3:
    						(this.modeTitle.text = "挖掘模式:"),
    							(this.toolName.text = "挖斗"),
    							(this.toolIcon.url = V.instance.getToolIcon(1));
    						break;

    					case 2:
    						(this.modeTitle.text = "液压抓斗:"),
    							(this.toolName.text = "钳爪"),
    							(this.toolIcon.url = V.instance.getToolIcon(2));
    						break;

    					case 4:
    						(this.modeTitle.text = "铲车模式:"),
    							(this.toolName.text = "铲斗"),
    							(this.toolIcon.url = V.instance.getToolIcon(3));
    						break;

    					case 1:
    						(this.modeTitle.text = "液压锤:"),
    							(this.toolName.text = "液压锤"),
    							(this.toolIcon.url = V.instance.getToolIcon(4));
    						break;

    					case 5:
    						(this.modeTitle.text = "叉车模式:"),
    							(this.toolName.text = V.instance.getToolName(5)),
    							(this.toolName.text = "叉车");
    				}
    				(this.modeMsg.text = f.instance.getTaskIntroduce(this.curShowTaskIndex)),
    					(this.rewardMsg.text = "x" + f.instance.getTaskReward(this.curShowTaskIndex)),
    					(this.carIcon.url = "ui://Common/ui_rw_gcc_0" + f.instance.getTaskCar(this.curShowTaskIndex));
    			}
    		}
    		getCloseBtnX() {
    			return (
    				this.isDebug && console.log("Laya.stage.width == " + Laya.stage.width),
    				(Laya.stage.width * this.btnClose.x) / 1920
    			);
    		}
    		getCloseBtnY() {
    			return (
    				this.isDebug && console.log("Laya.stage.height == " + Laya.stage.height),
    				(Laya.stage.height * this.btnClose.y) / 1080
    			);
    		}
    	}
    	class De extends h {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.isWatchAD = !0),
    				(this.curTaskType = 0),
    				(this.curShowTaskIndex = 0),
    				(this.curCloseIndex = 0),
    				(this.itemArr = []),
    				(this.itemArr1 = []),
    				(this.curTryCarType = 0),
    				(this.isPlayingGetCardAni = !1),
    				(this.isCanGetCard = !1),
    				(this.canGetCardPos = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new De()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			this.isDebug && console.log("loadUI"),
    				(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._carIcon = this._content.getChild("n5").asLoader),
    				(this._carName = this._content.getChild("carName").asLoader),
    				(this._btnClose = this._content.getChild("n6").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnTask = this._content.getChild("n28").asButton),
    				this._btnTask.onClick(this, this.onClickTask),
    				(this._btnADTask = this._content.getChild("n36").asButton),
    				this._btnADTask.onClick(this, this.onClickADTask),
    				(this._btnBackToHall = this._content.getChild("n31").asButton),
    				this._btnBackToHall.onClick(this, this.onClickBackToHall),
    				(this._btnCommonTask = this._content.getChild("n23").asButton),
    				this._btnCommonTask.onClick(this, this.onClickCommonTask),
    				(this._btnChallengeTask = this._content.getChild("n24").asButton),
    				this._btnChallengeTask.onClick(this, this.onClickChallengeTask),
    				(this._upArrow = this._content.getChild("n27").asImage),
    				(this._downArrow = this._content.getChild("n26").asImage),
    				(this._taskIntroduceGroup = this._content.getChild("n13").asGroup),
    				(this._taskRewardGroup = this._content.getChild("n18").asGroup),
    				(this._taskTimeGroup = this._content.getChild("n22").asGroup),
    				(this._taskMode = this._content.getChild("n11").asLabel),
    				(this._toolName = this._content.getChild("n43").asLabel),
    				(this._toolIcon = this._content.getChild("n42").asLoader),
    				(this._taskIntroduce = this._content.getChild("n12").asLabel),
    				(this._taskReward = this._content.getChild("n17").asLabel),
    				(this._taskTime = this._content.getChild("n21").asLabel),
    				(this._btnMuseum = this._content.getChild("n45").asButton),
    				this._btnMuseum.onClick(this, this.onClickMuseum),
    				//FIX博物馆
    				(this._btnMuseum.visible = false),
    				(this._btnContinue = this._content.getChild("n30").asButton),
    				this._btnContinue.onClick(this, this.onClickTask),
    				(this._flyCard = this._content.getChild("n46").asImage),
    				(this._flyCard.visible = !1),
    				(this._btnCommonTask.selected = !0),
    				(this.curTaskType = 0),
    				(this.curShowTaskIndex = Ie.instance.curStageIndex),
    				this.itemArr.length > 0 && this.itemArr.splice(0, this.itemArr.length),
    				this.itemArr1.length > 0 && this.itemArr1.splice(0, this.itemArr1.length),
    				(this._ptlist = this._content.getChild("n25").asList),
    				(this._tzlist = this._content.getChild("n41").asList),
    				this._ptlist.on(fgui.Events.CLICK_ITEM, this, this.onClickItem),
    				this._tzlist.on(fgui.Events.CLICK_ITEM, this, this.onClickItem),
    				(this._ptlist.itemRenderer = Laya.Handler.create(this, this.renderListItem, null, !1)),
    				(this._ptlist.numItems = 13),
    				(this._tzlist.itemRenderer = Laya.Handler.create(this, this.renderListItem1, null, !1)),
    				(this._tzlist.numItems = 13),
    				this.initUI(),
    				Laya.stage.on("updateTaskUI", this, this.updateTaskUI),
    				Laya.stage.on("backToLastPos", this, this.backToLastPos),
    				Laya.stage.on("closeStageUnlock", this, this.closeStageUnlock),
    				Laya.stage.on("playGetCardAni", this, this.playGetCardAni);
    		}
    		closeStageUnlock(e) {
    			(this.curCloseIndex = e), this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		backToLastPos() {
    			switch (
    			(console.log("backToLastPos"), console.log("this.curTaskType == " + this.curTaskType), this.curTaskType)
    			) {
    				case 0: {
    					let e = -1;
    					for (let t = 0; t < L.instance.playerInfo.stageDatas.length; t++)
    						if (1 == L.instance.playerInfo.stageDatas[t].isNew) {
    							e = t;
    							break;
    						}
    					if ((console.log("newPos ==== " + e), -1 != e))
    						(this.itemArr[this.curShowTaskIndex - 1].selected = !1),
    							(this.curShowTaskIndex = e + 1),
    							(this.itemArr[this.curShowTaskIndex - 1].selected = !0),
    							this.setTaskContent(),
    							this.updateList();
    					else {
    						let e = 0;
    						for (let t = 0; t < L.instance.playerInfo.stageDatas.length; t++)
    							if (0 == L.instance.playerInfo.stageDatas[t].stageState) {
    								e = t;
    								break;
    							}
    						(this.itemArr[this.curShowTaskIndex - 1].selected = !1),
    							(this.curShowTaskIndex = e + 1),
    							(this.itemArr[this.curShowTaskIndex - 1].selected = !0),
    							this.setTaskContent(),
    							this.updateList();
    					}
    				}
    			}
    		}
    		initUI() {
    			switch (
    			(this.isDebug &&
    				(console.log("initUI"), console.log("stageManager.instance.curStageIndex == " + Ie.instance.curStageIndex)),
    				Gt.instance.ClearCustomAd(!0),
    				B.ShuFenReport_guide("lost016", 2),
    				D.SendEvent("玩家首次进入任务1界面", 1020, !0),
    				(this.isWatchAD = !1),
    				mt.instance.curTaskOpenPos)
    			) {
    				case 0:
    					{
    						(this._btnContinue.visible = !1), (this._btnClose.visible = !0), (this._btnBackToHall.visible = !1);
    						let e = 0;
    						for (let t = 0; t < L.instance.playerInfo.stageDatas.length; t++)
    							if (0 == L.instance.playerInfo.stageDatas[t].stageState) {
    								e = t;
    								break;
    							}
    						if (0 == e && 0 != L.instance.playerInfo.stageDatas[0].stageState) {
    							for (let t = 0; t < L.instance.playerInfo.advStageDatas.length; t++)
    								if (0 == L.instance.playerInfo.advStageDatas[t].stageState) {
    									e = t;
    									break;
    								}
    							this.curShowTaskIndex = e + 1 + 13;
    						} else this.curShowTaskIndex = e + 1;
    					}
    					break;

    				case 1:
    					(this._btnContinue.visible = !0),
    						(this._btnClose.visible = !1),
    						(this._btnBackToHall.visible = !1),
    						(this.curShowTaskIndex = Ie.instance.curStageIndex);
    					break;

    				case 2:
    					(this._btnContinue.visible = !1),
    						(this._btnClose.visible = !1),
    						(this._btnBackToHall.visible = !0),
    						(this.curShowTaskIndex = Ie.instance.curStageIndex + 1);
    			}
    			if (
    				(this.isDebug && console.log("this.curShowTaskIndex == " + this.curShowTaskIndex),
    					this.curShowTaskIndex > 13
    						? ((this.curTaskType = 1),
    							(this._btnCommonTask.touchable = !0),
    							(this._btnCommonTask.getChild("n5").visible = !1),
    							(this._btnChallengeTask.touchable = !1),
    							(this._btnChallengeTask.getChild("n5").visible = !0),
    							(this._ptlist.visible = !1),
    							(this._tzlist.visible = !0))
    						: ((this.curTaskType = 0),
    							(this._btnCommonTask.touchable = !1),
    							(this._btnCommonTask.getChild("n5").visible = !1),
    							(this._btnChallengeTask.touchable = !0),
    							(this._btnChallengeTask.getChild("n5").visible = !0),
    							(this._ptlist.visible = !0),
    							(this._tzlist.visible = !1)),
    					(this._btnCommonTask.getChild("lock").visible = !1),
    					(this._btnChallengeTask.getChild("lock").visible = !1),
    					0 == f.instance.curTryCarType)
    			) {
    				if (f.instance.completeStageTimes % 2 == 1) {
    					let e = A.instance.checkIsShowLimitUse();
    					0 != e &&
    						((this.curTryCarType = e),
    							D.SendEvent("任务界面试用弹出次数", 3019, !1),
    							D.SendEvent("任务界面试用弹出人数", 3020, !0));
    				}
    			} else this.curTryCarType = f.instance.curTryCarType;
    			this.setTaskContent(),
    				this.playMenuOpenAni(this.onShown.bind(this)),
    				0 == this.curTaskType ? this.updateList() : this.updateList1();

    			//原生
    			console.log("任务栏");
    			Advertisement.insertAdverV3();
    		}
    		updateTaskUI() {
    			0 == this.curTaskType ? this.updateList() : this.updateList1();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				this.isCanGetCard && ((this.isCanGetCard = !1), this.playFlyCardAni(this.canGetCardPos));
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_TASK), this._view.removeFromParent(), e)) {
    				case 0:
    					break;

    				case 1:
    					(Ie.instance.curStageIndex = this.curShowTaskIndex),
    						Ie.instance.curStageIndex < 100 &&
    						(Ie.instance.curStageIndex < 10
    							? (B.ShuFenReport_level("lv00" + Ie.instance.curStageIndex, 1),
    								1 == Ie.instance.curStageIndex && B.ShuFenReport_guide("lost018", 1))
    							: B.ShuFenReport_level("lv0" + Ie.instance.curStageIndex, 1)),
    						Laya.stage.event("goToGame"),
    						null != Gt.instance.gametddCof_p5 &&
    						0 != Gt.instance.gametddCof_p5 &&
    						Gt.instance.RandomRange(1, 100) <= Gt.instance.gametddCof_p5 &&
    						Gt.instance.ShowVideo(null, null, null);
    					break;

    				case 2:
    					Gt.instance.ClearCustomAd(!0),
    						Gt.instance.CreateCustomAd(1),
    						Gt.instance.CreateCustomAd(2),
    						Laya.stage.event("backToHall");
    					break;

    				case 3:
    					(Ie.instance.newStageIndex = this.curShowTaskIndex),
    						mt.instance.showDialogMenu(3, "确定中断当前任务，开始新的任务吗？");
    					break;

    				case 4:
    					Ie.instance.exitStageProcess(),
    						(Ie.instance.curStageIndex = this.curShowTaskIndex),
    						Laya.stage.event("goToNewStage");
    					break;

    				case 5:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_BUY_ENERGY) && mt.instance.showBuyEnergyMenu();
    					break;

    				case 6:
    					(Ie.instance.curStageIndex = this.curShowTaskIndex), Laya.stage.event("goToTeach");
    					break;

    				case 7:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM) && mt.instance.showMuseumMenu();
    					break;

    				case 8:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_GARAGE) && mt.instance.showGarageMenu();
    			}
    		}
    		setTaskContent() {
    			switch (
    			(this.isDebug &&
    				(console.log("setTaskContent"),
    					console.log("setTaskContent this.curShowTaskInde == " + this.curShowTaskIndex),
    					console.log("PlayerData.instance.playerInfo.teachStage" + L.instance.playerInfo.teachStage)),
    				this.curTaskType)
    			) {
    				case 0:
    					switch (((this._taskTimeGroup.visible = !1), f.instance.getTaskCar(this.curShowTaskIndex))) {
    						case 3:
    							(this._taskMode.text = "挖掘模式:"),
    								(this._toolIcon.url = V.instance.getToolIcon(1)),
    								(this._toolName.text = "挖斗");
    							break;

    						case 2:
    							(this._taskMode.text = "液压抓斗:"),
    								(this._toolIcon.url = V.instance.getToolIcon(2)),
    								(this._toolName.text = "钳爪");
    							break;

    						case 4:
    							(this._taskMode.text = "铲车模式:"),
    								(this._toolIcon.url = V.instance.getToolIcon(3)),
    								(this._toolName.text = "铲斗");
    							break;

    						case 1:
    							(this._taskMode.text = "液压锤:"),
    								(this._toolIcon.url = V.instance.getToolIcon(4)),
    								(this._toolName.text = "液压锤");
    							break;

    						case 5:
    							(this._taskMode.text = "叉车模式:"),
    								(this._toolIcon.url = V.instance.getToolIcon(5)),
    								(this._toolName.text = "叉车");
    					}
    					(this._taskIntroduce.text = f.instance.getTaskIntroduce(this.curShowTaskIndex)),
    						(this._taskReward.text = "x" + f.instance.getTaskReward(this.curShowTaskIndex));
    					break;

    				case 1:
    					switch (
    					((this._taskTimeGroup.visible = !0),
    						(this._taskTime.text = f.instance.getTaskTime(this.curShowTaskIndex) + "s"),
    						f.instance.getTaskCar(this.curShowTaskIndex))
    					) {
    						case 3:
    							(this._taskMode.text = "挖掘模式:"),
    								(this._toolIcon.url = V.instance.getToolIcon(1)),
    								(this._toolName.text = "挖斗");
    							break;

    						case 2:
    							(this._taskMode.text = "液压抓斗:"),
    								(this._toolIcon.url = V.instance.getToolIcon(2)),
    								(this._toolName.text = "钳爪");
    							break;

    						case 4:
    							(this._taskMode.text = "铲车模式:"),
    								(this._toolIcon.url = V.instance.getToolIcon(3)),
    								(this._toolName.text = "铲斗");
    							break;

    						case 1:
    							(this._taskMode.text = "液压锤:"),
    								(this._toolIcon.url = V.instance.getToolIcon(4)),
    								(this._toolName.text = "液压锤");
    							break;

    						case 5:
    							(this._taskMode.text = "叉车模式:"),
    								(this._toolIcon.url = V.instance.getToolIcon(5)),
    								(this._toolName.text = "叉车");
    					}
    					(this._taskIntroduce.text = f.instance.getTaskIntroduce(this.curShowTaskIndex)),
    						(this._taskReward.text = "x" + f.instance.getTaskReward(this.curShowTaskIndex));
    			}
    			if (0 == this.curTaskType && 101 == this.curShowTaskIndex)
    				0 == f.instance.curTryCarType
    					? ((this._carIcon.url = V.instance.getCarIcon(L.instance.carInfo.curUseCar)),
    						(this._carName.url = V.instance.getCarName(L.instance.carInfo.curUseCar)))
    					: ((this._carIcon.url = V.instance.getCarIcon(f.instance.curTryCarType)),
    						(this._carName.url = V.instance.getCarName(f.instance.curTryCarType))),
    					(this._btnADTask.visible = !1),
    					(this._btnTask.visible = !0),
    					(this._btnContinue.visible = !1),
    					(this._btnClose.visible = !0),
    					(this._btnTask.x = 862),
    					(this._btnClose.x = 1243);
    			else {
    				let e = A.instance.checkIsShowLimitUse();
    				this.isDebug && console.log("showCarType == " + e),
    					0 == e
    						? (this.isDebug && console.log("PlayerData.instance.carInfo.curUseCar == " + L.instance.carInfo.curUseCar),
    							(this._carIcon.url = V.instance.getCarIcon(L.instance.carInfo.curUseCar)),
    							(this._carName.url = V.instance.getCarName(L.instance.carInfo.curUseCar)),
    							(this._btnADTask.visible = !1),
    							(this._btnTask.visible = !0),
    							(this._btnContinue.visible = !1),
    							(this._btnClose.visible = !0),
    							(this._btnTask.x = 862),
    							(this._btnClose.x = 1243),
    							1 == mt.instance.curTaskOpenPos && Ie.instance.curStageIndex == this.curShowTaskIndex
    								? ((this._btnTask.enabled = !1), this.enableBtnTask(!1))
    								: ((this._btnTask.enabled = !0), this.enableBtnTask(!0)))
    						: (this.isDebug && console.log("gameLogic.instance.curTryCarType == " + f.instance.curTryCarType),
    							0 == f.instance.curTryCarType
    								? f.instance.completeStageTimes % 2 == 1
    									? (this.isDebug && console.log(" =====推荐===== "),
    										(this._carIcon.url = V.instance.getCarIcon(this.curTryCarType)),
    										(this._carName.url = V.instance.getCarName(this.curTryCarType)),
    										(this._btnADTask.visible = !0),
    										(this._btnTask.visible = !1),
    										(this._btnContinue.visible = !0),
    										(this._btnClose.visible = !0),
    										(this._btnADTask.x = 751),
    										(this._btnContinue.x = 1067),
    										(this._btnClose.x = 1382))
    									: (this.isDebug && console.log(" =====不推荐===== "),
    										this.isDebug &&
    										console.log("PlayerData.instance.carInfo.curUseCar == " + L.instance.carInfo.curUseCar),
    										(this._carIcon.url = V.instance.getCarIcon(L.instance.carInfo.curUseCar)),
    										(this._carName.url = V.instance.getCarName(L.instance.carInfo.curUseCar)),
    										(this._btnADTask.visible = !1),
    										(this._btnTask.visible = !0),
    										(this._btnContinue.visible = !1),
    										(this._btnClose.visible = !0),
    										(this._btnTask.x = 862),
    										(this._btnClose.x = 1243),
    										1 == mt.instance.curTaskOpenPos && Ie.instance.curStageIndex == this.curShowTaskIndex
    											? ((this._btnTask.enabled = !1), this.enableBtnTask(!1))
    											: ((this._btnTask.enabled = !0), this.enableBtnTask(!0)))
    								: (this.isDebug && console.log(" ====有试用===== "),
    									this.isDebug && console.log("gameLogic.instance.curTryCarType == " + f.instance.curTryCarType),
    									(this._carIcon.url = V.instance.getCarIcon(f.instance.curTryCarType)),
    									(this._carName.url = V.instance.getCarName(f.instance.curTryCarType)),
    									(this._btnADTask.visible = !1),
    									(this._btnTask.visible = !0),
    									(this._btnContinue.visible = !1),
    									(this._btnClose.visible = !0),
    									(this._btnTask.x = 862),
    									(this._btnClose.x = 1243),
    									1 == mt.instance.curTaskOpenPos && Ie.instance.curStageIndex == this.curShowTaskIndex
    										? ((this._btnTask.enabled = !1), this.enableBtnTask(!1))
    										: ((this._btnTask.enabled = !0), this.enableBtnTask(!0))));
    			}
    		}
    		enableBtnTask(e) {
    			this._btnTask.enabled = e;
    		}
    		callBack1() { }
    		enableBtnADTask(e) {
    			switch (((this._btnADTask.enabled = e), l.game_channel)) {
    				case 0:
    				case 1:
    				case 2:
    				case 3:
    					e
    						? this._content.getTransition("t2").play(Laya.Handler.create(this, this.callBack2), -1)
    						: this._content.getTransition("t2").stop();
    			}
    		}
    		callBack2() { }
    		onClickCommonTask() {
    			if (
    				(this.isDebug && console.log("onClickCommonTask"),
    					!this.isPlayingGetCardAni &&
    					(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    						1 == this.curTaskType))
    			) {
    				(this.curTaskType = 0),
    					(this._btnCommonTask.touchable = !1),
    					(this._btnCommonTask.getChild("n5").visible = !1),
    					(this._btnChallengeTask.touchable = !0),
    					(this._btnChallengeTask.getChild("n5").visible = !0);
    				let e = 0;
    				for (let t = 0; t < L.instance.playerInfo.stageDatas.length; t++)
    					if (0 == L.instance.playerInfo.stageDatas[t].stageState) {
    						e = t;
    						break;
    					}
    				(this.curShowTaskIndex = e + 1),
    					this.setTaskContent(),
    					(this._ptlist.visible = !0),
    					(this._tzlist.visible = !1),
    					this.updateList();
    			}
    		}
    		onClickMuseum() {
    			this.isDebug && console.log("onClickMuseum"),
    				this.isPlayingGetCardAni ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    					(this.curCloseIndex = 7),
    					this.playMenuCloseAni(this.onHide.bind(this)));
    		}
    		onClickChallengeTask() {
    			if (
    				(this.isDebug &&
    					(console.log("onClickChallengeTask"),
    						console.log(
    							"PlayerData.instance.playerInfo.stageDatas[4].stageState == " +
    							L.instance.playerInfo.stageDatas[4].stageState
    						)),
    					!this.isPlayingGetCardAni &&
    					(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    						this.isDebug && console.log("this.curTaskType == " + this.curTaskType),
    						0 == this.curTaskType))
    			) {
    				(this.curTaskType = 1),
    					(this._btnCommonTask.touchable = !0),
    					(this._btnCommonTask.getChild("n5").visible = !0),
    					(this._btnChallengeTask.touchable = !1),
    					(this._btnChallengeTask.getChild("n5").visible = !1);
    				let e = 0;
    				for (let t = 0; t < L.instance.playerInfo.advStageDatas.length; t++)
    					if (0 == L.instance.playerInfo.advStageDatas[t].stageState) {
    						e = t;
    						break;
    					}
    				(this.curShowTaskIndex = e + 1 + 13),
    					this.setTaskContent(),
    					(this._ptlist.visible = !1),
    					(this._tzlist.visible = !0),
    					this.updateList1();
    			}
    		}
    		onClickContinue() {
    			this.isDebug && console.log("onClickContinue"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickBackToHall() {
    			this.isDebug && console.log("onClickBackToHall"),
    				this.isPlayingGetCardAni ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    					(this.curCloseIndex = 2),
    					this.playMenuCloseAni(this.onHide.bind(this)));
    		}
    		onClickTask() {
    			if (
    				(this.isDebug &&
    					(console.log("onClickTask"),
    						console.log("uiManager.instance.curTaskOpenPos == " + mt.instance.curTaskOpenPos),
    						console.log("this.curShowTaskIndex == " + this.curShowTaskIndex)),
    					!this.isPlayingGetCardAni)
    			)
    				if (
    					(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    						this.curShowTaskIndex < 100)
    				)
    					if (L.instance.playerInfo.energy >= f.instance.getTaskEnergy(this.curShowTaskIndex)) {
    						let e = f.instance.getToolType(this.curShowTaskIndex);
    						if (f.instance.isHaveTool(e))
    							B.ShuFenReport_guide("lost017", 1), B.ShuFenReport_guide("lost017", 2), this.startTask();
    						else {
    							let e = f.instance.getToolType(this.curShowTaskIndex);
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) && mt.instance.showToolUnlockTip(e, 1);
    						}
    					} else
    						this.isDebug && console.log("体力不足"),
    							(this.curCloseIndex = 5),
    							this.playMenuCloseAni(this.onHide.bind(this));
    				else
    					(f.instance.isNeeShowLimitUse = !1), (this.curCloseIndex = 6), this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		startTask() {
    			if ((this.isDebug && console.log("开始任务"), "-1" == f.instance.getTaskOpen(this.curShowTaskIndex)))
    				switch (
    				(0 == f.instance.curTryCarType && (f.instance.isNeeShowLimitUse = !0),
    					(L.instance.playerInfo.energy -= f.instance.getTaskEnergy(this.curShowTaskIndex)),
    					this.curShowTaskIndex > 13
    						? 1 == L.instance.playerInfo.advStageDatas[this.curShowTaskIndex - 13 - 1].isNew &&
    						(L.instance.playerInfo.advStageDatas[this.curShowTaskIndex - 13 - 1].isNew = 0)
    						: 1 == L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew &&
    						(L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew = 0),
    					L.instance.savePlayerInfoToLocalCache(),
    					mt.instance.curTaskOpenPos)
    				) {
    					case 0:
    						(this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this));
    						break;

    					case 1:
    						(this.curCloseIndex = 4), this.playMenuCloseAni(this.onHide.bind(this));
    				}
    			else
    				switch (this.curTaskType) {
    					case 0:
    						if (
    							1 ==
    							L.instance.playerInfo.stageDatas[
    								A.instance.getStageIndexByID(f.instance.getTaskOpen(this.curShowTaskIndex)) - 1
    							].stageState
    						)
    							switch (
    							(0 == f.instance.curTryCarType && (f.instance.isNeeShowLimitUse = !0),
    								(L.instance.playerInfo.energy -= f.instance.getTaskEnergy(this.curShowTaskIndex)),
    								1 == L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew &&
    								(L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew = 0),
    								L.instance.savePlayerInfoToLocalCache(),
    								mt.instance.curTaskOpenPos)
    							) {
    								case 0:
    									(this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this));
    									break;

    								case 1:
    									(this.curCloseIndex = 4), this.playMenuCloseAni(this.onHide.bind(this));
    							}
    						else if (L.instance.playerInfo.stageTryDatas[this.curShowTaskIndex - 1].times > 0)
    							switch (
    							((L.instance.playerInfo.stageTryDatas[this.curShowTaskIndex - 1].times -= 1),
    								(L.instance.playerInfo.energy -= f.instance.getTaskEnergy(this.curShowTaskIndex)),
    								1 == L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew &&
    								(L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew = 0),
    								0 == f.instance.curTryCarType && (f.instance.isNeeShowLimitUse = !0),
    								(f.instance.isUseADTimesStage = !0),
    								mt.instance.curTaskOpenPos)
    							) {
    								case 0:
    									(this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this));
    									break;

    								case 1:
    									(this.curCloseIndex = 4), this.playMenuCloseAni(this.onHide.bind(this));
    							}
    						break;

    					case 1: {
    						let e = !1,
    							t = 0;
    						switch (f.instance.getTaskOpen(this.curShowTaskIndex)) {
    							case "car_4":
    								1 == L.instance.carInfo.carDatas[3].state && ((e = !0), (t = 4));
    								break;

    							case "car_6":
    								1 == L.instance.carInfo.carDatas[5].state && ((e = !0), (t = 6));
    								break;

    							case "car_7":
    								1 == L.instance.carInfo.carDatas[6].state && ((e = !0), (t = 7));
    								break;

    							case "car_8":
    								1 == L.instance.carInfo.carDatas[7].state && ((e = !0), (t = 8));
    						}
    						if (e)
    							switch (
    							(0 == f.instance.curTryCarType && (f.instance.isNeeShowLimitUse = !0),
    								(L.instance.playerInfo.energy -= f.instance.getTaskEnergy(this.curShowTaskIndex)),
    								1 == L.instance.playerInfo.advStageDatas[this.curShowTaskIndex - 13 - 1].isNew &&
    								(L.instance.playerInfo.advStageDatas[this.curShowTaskIndex - 13 - 1].isNew = 0),
    								L.instance.savePlayerInfoToLocalCache(),
    								mt.instance.curTaskOpenPos)
    							) {
    								case 0:
    									(this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this));
    									break;

    								case 1:
    									(this.curCloseIndex = 4), this.playMenuCloseAni(this.onHide.bind(this));
    							}
    					}
    				}
    		}
    		onClickADTask() {
    			if (
    				(this.isDebug &&
    					(console.log("onClickTask"),
    						console.log("uiManager.instance.curTaskOpenPos == " + mt.instance.curTaskOpenPos),
    						console.log("this.curShowTaskIndex == " + this.curShowTaskIndex)),
    					!this.isPlayingGetCardAni)
    			)
    				if (
    					(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    						L.instance.playerInfo.energy >= f.instance.getTaskEnergy(this.curShowTaskIndex))
    				) {
    					this.isDebug && console.log("开始任务");
    					let e = f.instance.getToolType(this.curShowTaskIndex);
    					if (f.instance.isHaveTool(e)) this.startADTask();
    					else {
    						let e = f.instance.getToolType(this.curShowTaskIndex);
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK) && mt.instance.showToolUnlockTip(e, 2);
    					}
    				} else
    					this.isDebug && console.log("体力不足"),
    						(this.curCloseIndex = 5),
    						this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		startADTask() {
    			if ("-1" == f.instance.getTaskOpen(this.curShowTaskIndex))
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    			else
    				switch (this.curTaskType) {
    					case 0:
    						1 ==
    							L.instance.playerInfo.stageDatas[
    								A.instance.getStageIndexByID(f.instance.getTaskOpen(this.curShowTaskIndex)) - 1
    							].stageState
    							? Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this))
    							: L.instance.playerInfo.stageTryDatas[this.curShowTaskIndex - 1].times > 0 &&
    							Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    						break;

    					case 1: {
    						let e = !1,
    							t = 0;
    						switch (f.instance.getTaskOpen(this.curShowTaskIndex)) {
    							case "car_4":
    								1 == L.instance.carInfo.carDatas[3].state && ((e = !0), (t = 4));
    								break;

    							case "car_6":
    								1 == L.instance.carInfo.carDatas[5].state && ((e = !0), (t = 6));
    								break;

    							case "car_7":
    								1 == L.instance.carInfo.carDatas[6].state && ((e = !0), (t = 7));
    								break;

    							case "car_8":
    								1 == L.instance.carInfo.carDatas[7].state && ((e = !0), (t = 8));
    						}
    						e && Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    					}
    				}
    		}
    		adLoaded() {
    			D.SendEvent("任务界面试用拉取成功数", 3021, !1),
    				A.instance.isFristDotForTaskTry_1 ||
    				((A.instance.isFristDotForTaskTry_1 = !0), D.SendEvent("任务界面试用首次拉取成功数", 3023, !1));
    		}
    		adSuccess() {
    			switch (
    			(2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("任务界面试用完播数", 3022, !1),
    				A.instance.isFristDotForTaskTry_2 ||
    				((A.instance.isFristDotForTaskTry_2 = !0), D.SendEvent("任务界面试用首次拉取完播数", 3024, !1)),
    				L.instance.playerInfo.stageTryDatas[this.curShowTaskIndex - 1].times > 0 &&
    				((L.instance.playerInfo.stageTryDatas[this.curShowTaskIndex - 1].times -= 1),
    					(f.instance.isUseADTimesStage = !0)),
    				(f.instance.curTryCarType = this.curTryCarType),
    				(f.instance.isNeeShowLimitUse = !1),
    				(L.instance.playerInfo.energy -= f.instance.getTaskEnergy(this.curShowTaskIndex)),
    				this.curShowTaskIndex > 13
    					? 1 == L.instance.playerInfo.advStageDatas[this.curShowTaskIndex - 13 - 1].isNew &&
    					(L.instance.playerInfo.advStageDatas[this.curShowTaskIndex - 13 - 1].isNew = 0)
    					: 1 == L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew &&
    					(L.instance.playerInfo.stageDatas[this.curShowTaskIndex - 1].isNew = 0),
    				L.instance.savePlayerInfoToLocalCache(),
    				mt.instance.curTaskOpenPos)
    			) {
    				case 0:
    					(this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this));
    					break;

    				case 1:
    					(this.curCloseIndex = 4), this.playMenuCloseAni(this.onHide.bind(this));
    			}
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onClickIsWatchAD() {
    			this.isWatchAD ? (this.isWatchAD = !1) : (this.isWatchAD = !0), this.setTaskContent();
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				this.isPlayingGetCardAni ||
    				(L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    					(this.curCloseIndex = 0),
    					this.playMenuCloseAni(this.onHide.bind(this)));
    		}
    		renderListItem(e, t) {
    			this.isDebug &&
    				(console.log("renderListItem == index == " + e),
    					console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage));
    			var s = t;
    			let i = C.Config_Task_Map.get(e + 1).task_name;
    			if (
    				(this.isDebug && console.log("titleStr == " + i),
    					(s.title = i),
    					s.setSelectTitle(i),
    					s.setTaskIndex(e),
    					"-1" == C.Config_Task_Map.get(e + 1).task_open)
    			)
    				s.showLock(!1);
    			else {
    				let t = C.Config_Task_Map.get(e + 1).task_open,
    					i = A.instance.getStageIndexByID(t) - 1,
    					a = L.instance.playerInfo.stageDatas[i].stageState;
    				this.isDebug &&
    					(console.log("task_open == " + t), console.log("dataIndex == " + i), console.log("state == " + a)),
    					1 == a ? s.showLock(!1) : 0 != L.instance.playerInfo.stageTryDatas[i].times ? s.showLock(!1) : s.showLock(!0);
    			}
    			if (
    				(0 == L.instance.playerInfo.stageDatas[e].stageState
    					? (s.showComplete(!1), s.showCard(!0))
    					: 0 == L.instance.museumInfo.museumDatas[e].getted
    						? (s.showComplete(!1), s.showCard(!0))
    						: (s.showComplete(!0), s.showCard(!1)),
    					this.isDebug && console.log("this.curShowTaskIndex == " + this.curShowTaskIndex),
    					this.curShowTaskIndex >= 100)
    			)
    				0 == e && (s.selected = !0);
    			else {
    				e == this.curShowTaskIndex - 1 && (s.selected = !0);
    			}
    			this.itemArr.push(s);
    		}
    		renderListItem1(e, t) {
    			this.isDebug && console.log("renderListItem1 == index == " + e);
    			var s = t;
    			let i = f.instance.getTaskName(13 + e + 1);
    			if (((s.title = i), s.setSelectTitle(i), s.setTaskIndex(e), "-1" == f.instance.getTaskOpen(13 + e + 1)))
    				s.showLock(!1);
    			else {
    				let t = f.instance.getTaskOpen(13 + e + 1);
    				switch ((this.isDebug && console.log("task_open == " + t), t)) {
    					case "car_4":
    						1 == L.instance.carInfo.carDatas[3].state ? s.showLock(!1) : s.showLock(!0);
    						break;

    					case "car_6":
    						1 == L.instance.carInfo.carDatas[5].state ? s.showLock(!1) : s.showLock(!0);
    						break;

    					case "car_7":
    						1 == L.instance.carInfo.carDatas[6].state ? s.showLock(!1) : s.showLock(!0);
    						break;

    					case "car_8":
    						1 == L.instance.carInfo.carDatas[7].state ? s.showLock(!1) : s.showLock(!0);
    				}
    			}
    			0 == L.instance.playerInfo.advStageDatas[e].stageState
    				? (s.showComplete(!1), s.showCard(!0))
    				: 0 == L.instance.museumInfo.museumDatas[13 + e].getted
    					? (s.showComplete(!1), s.showCard(!0))
    					: (s.showComplete(!0), s.showCard(!1)),
    				e == this.curShowTaskIndex - 13 - 1 && (s.selected = !0),
    				this.itemArr1.push(s);
    		}
    		onClickItem(e) {
    			var t = e;
    			switch (
    			(this.isDebug && console.log("curItem.getTaskIndex() == ", t.getTaskIndex()),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				this.curTaskType)
    			) {
    				case 0:
    					if (
    						((this.curShowTaskIndex = t.getTaskIndex() + 1),
    							"-1" != C.Config_Task_Map.get(this.curShowTaskIndex).task_open)
    					) {
    						let e = C.Config_Task_Map.get(this.curShowTaskIndex).task_open,
    							t = A.instance.getStageIndexByID(e) - 1,
    							s = L.instance.playerInfo.stageDatas[t].stageState;
    						this.isDebug && console.log("state == " + s),
    							0 == s &&
    							0 == L.instance.playerInfo.stageTryDatas[this.curShowTaskIndex - 1].times &&
    							((f.instance.curNeedUnlockStageIndex = this.curShowTaskIndex),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_TASK_UNLOCK_TIP) && mt.instance.showTaskUnlockTip());
    					}
    					break;

    				case 1:
    					if (
    						((this.curShowTaskIndex = 13 + (t.getTaskIndex() + 1)),
    							"-1" != C.Config_Task_Map.get(this.curShowTaskIndex).task_open)
    					) {
    						let e = f.instance.getTaskOpen(this.curShowTaskIndex);
    						console.log("task_open == " + e);
    						let t = !1,
    							s = 0;
    						switch (e) {
    							case "car_4":
    								(s = 4), 1 == L.instance.carInfo.carDatas[3].state && (t = !0);
    								break;

    							case "car_6":
    								(s = 6), 1 == L.instance.carInfo.carDatas[5].state && (t = !0);
    								break;

    							case "car_7":
    								(s = 7), 1 == L.instance.carInfo.carDatas[6].state && (t = !0);
    								break;

    							case "car_8":
    								(s = 8), 1 == L.instance.carInfo.carDatas[7].state && (t = !0);
    						}
    						t ||
    							(console.log("carType == " + s),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_STAGE_UNLOCK_TIP) && mt.instance.showStageUnlockTip(s));
    					}
    			}
    			this.setTaskContent();
    		}
    		updateList() {
    			if (
    				(this.isDebug &&
    					(console.log("onUpdateList"),
    						console.log("this.itemArr.length" + this.itemArr.length),
    						console.log("this.curTaskType == " + this.curTaskType)),
    					this.itemArr.length > 0)
    			) {
    				this.itemArr.length > 13 && (this.itemArr[0].removeFromParent(), this.itemArr.splice(0, 1)),
    					this.isDebug && console.log("this.itemArr.length ==== " + this.itemArr.length);
    				for (let e = 0; e < this.itemArr.length; e++) {
    					if ((this.isDebug && console.log("i ===== " + e), "-1" == C.Config_Task_Map.get(e + 1).task_open))
    						this.itemArr[e].showLock(!1);
    					else {
    						let t = C.Config_Task_Map.get(e + 1).task_open,
    							s = A.instance.getStageIndexByID(t) - 1,
    							i = L.instance.playerInfo.stageDatas[s].stageState;
    						this.isDebug &&
    							(console.log("task_open == " + t), console.log("dataIndex == " + s), console.log("state == " + i)),
    							1 == i
    								? this.itemArr[e].showLock(!1)
    								: 0 != L.instance.playerInfo.stageTryDatas[e].times
    									? this.itemArr[e].showLock(!1)
    									: this.itemArr[e].showLock(!0);
    					}
    					this.isDebug &&
    						console.log(
    							"PlayerData.instance.playerInfo.stageDatas[i].stageState == " +
    							L.instance.playerInfo.stageDatas[e].stageState
    						),
    						0 == L.instance.playerInfo.stageDatas[e].stageState
    							? (this.itemArr[e].showComplete(!1), this.itemArr[e].showCard(!0))
    							: 0 == L.instance.museumInfo.museumDatas[e].getted
    								? (this.itemArr[e].showComplete(!1), this.itemArr[e].showCard(!0))
    								: (this.itemArr[e].showComplete(!0), this.itemArr[e].showCard(!1)),
    						console.log(
    							"PlayerData.instance.playerInfo.stageDatas[i].isNew == " + L.instance.playerInfo.stageDatas[e].isNew
    						),
    						0 == L.instance.playerInfo.stageDatas[e].isNew
    							? this.itemArr[e].showNewTip(!1)
    							: this.itemArr[e].showNewTip(!0);
    					let t = this.curShowTaskIndex - 1;
    					this.itemArr[e].selected = e == t;
    				}
    				let e = -1;
    				for (let t = 0; t < 13; t++)
    					if (1 == L.instance.museumInfo.museumDatas[t].state && 0 == L.instance.museumInfo.museumDatas[t].getted) {
    						e = t;
    						break;
    					}
    				console.log("getCardPos == " + e),
    					-1 != e
    						? (this.curShowTaskIndex < 100 && this._ptlist.scrollPane.setPosY(84 * e),
    							this.isCanGetCard ||
    							((this.isCanGetCard = !0),
    								(this.canGetCardPos = e),
    								0 == L.instance.museumInfo.museumDatas[e].getted &&
    								((L.instance.museumInfo.museumDatas[e].getted = 1), L.instance.saveMuseumInfoToLocalCache())))
    						: this.curShowTaskIndex < 100 && this._ptlist.scrollPane.setPosY(84 * (this.curShowTaskIndex - 1));
    			}
    		}
    		updateList1() {
    			if (
    				(this.isDebug &&
    					(console.log("onUpdateList"),
    						console.log("this.itemArr1.length" + this.itemArr.length),
    						console.log("this.curTaskType == " + this.curTaskType)),
    					this.itemArr1.length > 0)
    			) {
    				for (let e = 0; e < this.itemArr1.length; e++) {
    					if ((this.isDebug && console.log("i ===== " + e), "-1" == f.instance.getTaskOpen(13 + e + 1)))
    						this.itemArr1[e].showLock(!1);
    					else {
    						let t = f.instance.getTaskOpen(13 + e + 1);
    						switch ((this.isDebug && console.log("task_open == " + t), t)) {
    							case "car_4":
    								1 == L.instance.carInfo.carDatas[3].state
    									? this.itemArr1[e].showLock(!1)
    									: this.itemArr1[e].showLock(!0);
    								break;

    							case "car_6":
    								1 == L.instance.carInfo.carDatas[5].state
    									? this.itemArr1[e].showLock(!1)
    									: this.itemArr1[e].showLock(!0);
    								break;

    							case "car_7":
    								1 == L.instance.carInfo.carDatas[6].state
    									? this.itemArr1[e].showLock(!1)
    									: this.itemArr1[e].showLock(!0);
    								break;

    							case "car_8":
    								1 == L.instance.carInfo.carDatas[7].state
    									? this.itemArr1[e].showLock(!1)
    									: this.itemArr1[e].showLock(!0);
    						}
    					}
    					0 == L.instance.playerInfo.advStageDatas[e].stageState
    						? (this.itemArr1[e].showComplete(!1), this.itemArr1[e].showCard(!0))
    						: 0 == L.instance.museumInfo.museumDatas[13 + e].getted
    							? (this.itemArr1[e].showComplete(!1), this.itemArr1[e].showCard(!0))
    							: (this.itemArr1[e].showComplete(!0), this.itemArr1[e].showCard(!1)),
    						console.log(
    							"PlayerData.instance.playerInfo.advStageDatas[" +
    							e +
    							"].isNew == " +
    							L.instance.playerInfo.advStageDatas[e].isNew
    						),
    						0 == L.instance.playerInfo.advStageDatas[e].isNew
    							? this.itemArr1[e].showNewTip(!1)
    							: this.itemArr1[e].showNewTip(!0);
    					let t = this.curShowTaskIndex - 13 - 1;
    					this.itemArr1[e].selected = e == t;
    				}
    				let e = -1;
    				for (let t = 13; t < 26; t++)
    					if (
    						(console.log(
    							"PlayerData.instance.museumInfo.museumDatas[" +
    							t +
    							"].state == " +
    							L.instance.museumInfo.museumDatas[t].state
    						),
    							console.log(
    								"PlayerData.instance.museumInfo.museumDatas[" +
    								t +
    								"].state == " +
    								L.instance.museumInfo.museumDatas[t].state
    							),
    							1 == L.instance.museumInfo.museumDatas[t].state && 0 == L.instance.museumInfo.museumDatas[t].getted)
    					) {
    						e = t;
    						break;
    					}
    				console.log("getCardPos =1= " + e),
    					-1 != e
    						? (this._tzlist.scrollPane.setPosY(84 * (e - 13)),
    							this.isCanGetCard ||
    							((this.isCanGetCard = !0),
    								(this.canGetCardPos = e),
    								0 == L.instance.museumInfo.museumDatas[e].getted &&
    								((L.instance.museumInfo.museumDatas[e].getted = 1), L.instance.saveMuseumInfoToLocalCache()),
    								this.isCanGetCard && this.playFlyCardAni(this.canGetCardPos - 13)))
    						: this._tzlist.scrollPane.setPosY(84 * (this.curShowTaskIndex - 13 - 1));
    			}
    		}
    		playFlyCardAni(e) {
    			if ((console.log("playFlyCardAni == pos == " + e), !this.isPlayingGetCardAni)) {
    				this.isPlayingGetCardAni = !0;
    				let t = this.itemArr[e].getCardLocalPosX() - (Laya.stage.width - 1920) / 2,
    					s = this.itemArr[e].getCardLocalPosY() - (Laya.stage.height - 1080) / 2;
    				(this._flyCard.x = t),
    					(this._flyCard.y = s),
    					(this._flyCard.alpha = 1),
    					this._flyCard.setScale(1, 1),
    					this.itemArr[e].showCard(!1),
    					(this._flyCard.visible = !0),
    					Laya.Tween.to(
    						this._flyCard,
    						{
    							x: 960,
    							y: 540,
    							scaleX: 3,
    							scaleY: 3,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.flyEnd),
    						0,
    						!0
    					);
    			}
    		}
    		flyEnd() {
    			console.log("flyEnd"),
    				(f.instance.curShowMuseumID = this.canGetCardPos + 1),
    				(f.instance.isNeedShowGetCardAni = !0),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM_DETAIL) && mt.instance.showMuseumDetail();
    		}
    		playGetCardAni() {
    			(this._flyCard.x = 960), (this._flyCard.y = 540), (this._flyCard.alpha = 1), this._flyCard.setScale(3, 3);
    			let e = this._btnMuseum.localToGlobal().x - (Laya.stage.width - 1920) / 2,
    				t = this._btnMuseum.localToGlobal().y - (Laya.stage.height - 1080) / 2;
    			Laya.Tween.to(
    				this._flyCard,
    				{
    					x: e,
    					y: t,
    					scaleX: 1,
    					scaleY: 1,
    					alpha: 0,
    				},
    				500,
    				Laya.Ease.linearNone,
    				Laya.Handler.create(this, this.flyEnd1),
    				0,
    				!0
    			);
    		}
    		flyEnd1() {
    			console.log("flyEnd1"),
    				(this._flyCard.visible = !1),
    				this.canGetCardPos < 13 ? this.updateList() : this.updateList1(),
    				(this.isPlayingGetCardAni = !1);
    		}
    	}
    	class ve extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ve()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnContinue = this._content.getChild("n1").asButton),
    				this.btnContinue.onClick(this, this.onClickContinue),
    				(this.btnRelife = this._content.getChild("n4").asButton),
    				this.btnRelife.onClick(this, this.onClickRelife),
    				(this.btnSkip = this._content.getChild("n2").asButton),
    				this.btnSkip.onClick(this, this.onClickSkip),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_08.mp3"),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI ve");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_GAME_FAIL), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (
    					(Ie.instance.curStageIndex < 100 &&
    						(Ie.instance.curStageIndex < 10
    							? B.ShuFenReport_level("lv00" + Ie.instance.curStageIndex, 2)
    							: B.ShuFenReport_level("lv0" + Ie.instance.curStageIndex, 2)),
    						l.game_channel)
    					) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					Laya.stage.event("backToHall");
    					break;

    				case 1:
    					Ie.instance.reSetProcess(), $.instance.showTime(!0, f.instance.getTaskTime(Ie.instance.curStageIndex));
    					break;

    				case 2:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu();
    			}
    		}
    		onClickContinue() {
    			this.isDebug && console.log("onClickContinue"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickRelife() {
    			this.isDebug && console.log("onClickRelife"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				D.SendEvent("立即复活弹出次数", 3025, !1),
    				D.SendEvent("立即复活弹出人数", 3026, !0),
    				Gt.instance.ShowVideo(this.adSuccess1.bind(this), this.adFail1.bind(this), this.adLoaded1.bind(this));
    		}
    		adLoaded1() {
    			D.SendEvent("立即复活拉取成功数", 3027, !1),
    				A.instance.isFristDotForReLife_1 ||
    				((A.instance.isFristDotForReLife_1 = !0), D.SendEvent("立即复活首次拉取成功数", 3029, !1));
    		}
    		adSuccess1() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("立即复活完播数", 3028, !1),
    				A.instance.isFristDotForReLife_2 ||
    				((A.instance.isFristDotForReLife_2 = !0), D.SendEvent("立即复活首次拉取完播数", 3030, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail1() {
    			console.log("adFail1"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onClickSkip() {
    			this.isDebug && console.log("onClickSkip"),
    				D.SendEvent("跳过关卡弹出次数", 3007, !1),
    				D.SendEvent("跳过关卡弹出人数", 3008, !0),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			D.SendEvent("跳过关卡拉取成功数", 3009, !1),
    				A.instance.isFristDotForSkipStage_1 ||
    				((A.instance.isFristDotForSkipStage_1 = !0), D.SendEvent("跳过关卡首次拉取成功数", 3011, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("跳过关卡完播数", 3010, !1),
    				A.instance.isFristDotForSkipStage_2 ||
    				((A.instance.isFristDotForSkipStage_2 = !0), D.SendEvent("跳过关卡首次拉取完播数", 3012, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curCloseIndex = 2),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			this.isDebug && console.log("onPageSuccess");
    		}
    		onPageFail() {
    			this.isDebug && console.log("onPageFail");
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Ae {
    		constructor() {
    			(this.menuType = 0), (this.itemValue = 0), (this.carType = 0);
    		}
    		initData(e, t, s) {
    			(this.menuType = e), (this.itemValue = t), (this.carType = s);
    		}
    	}
    	class Me {
    		static Pay(e, t, s, i) {
    			if (
    				(console.log("调用支付！"),
    					(this.callback = i),
    					(this.item_id = "" + t),
    					this.login_time + 6e4 >= new Date().getTime())
    			) {
    				console.log("已登陆，发起购买");
    				let i = this.Encrypt(e + "|" + t + "|" + s + "|" + this.uid + "|" + this.token + "|" + this.eversion);
    				(i = this.URLEncode(i)), this.POST(this.OPPOPAYREQ, i, this.OnPay.bind(this));
    			} else console.log("登陆"), this.Login(e + "|" + t + "|" + s);
    		}
    		static OnPay(e) {
    			if ((console.log("OnPay == data_str == " + e), e.length > 10)) {
    				let t = JSON.parse(e);
    				if (1 == t.status) {
    					let e = this;
    					(t = t.data),
    						qg.pay({
    							appId: t.appid,
    							token: e.token,
    							timestamp: t.timestamp,
    							paySign: t.sign,
    							orderNo: t.o_order,
    							success: function (t) {
    								console.log("res.data.code == " + t.data.code),
    									0 == t.data.code && (e.callback(!0, e.item_id), localStorage.setItem("pay_" + e.item_id, "1"));
    							},
    							fail: function (t) {
    								let s = e.error[t.code];
    								s ? e.callback(!1, s + "--code:" + t.code) : e.callback(!1, "未知错误--code:" + t.code);
    							},
    						});
    				} else this.callback(!1, "获取订单信息失败!");
    			} else this.callback(!1, "获取订单信息失败!");
    		}
    		static Login(e) {
    			console.log("Login == rdata == " + e);
    			let t = this;
    			(this.eversion = qg.getSystemInfoSync().platformVersion + ""),
    				qg.login({
    					success: function (s) {
    						console.log("登陆成功");
    						let i = s.data;
    						(t.uid = i.uid),
    							(t.token = i.token),
    							(t.login_time = new Date().getTime()),
    							(e = t.Encrypt(e + "|" + t.uid + "|" + t.token + "|" + t.eversion)),
    							(e = t.URLEncode(e)),
    							t.POST(t.OPPOPAYREQ, e, t.OnPay.bind(t));
    					},
    					fail: function (e) {
    						console.log(JSON.stringify(e)), t.callback(!1, "登录异常!"), console.log("登录异常!");
    					},
    				});
    		}
    		static ResumePay(e) {
    			if (((this.rcallback = e), this.login_time + 6e4 >= new Date().getTime()))
    				this.POST(this.OPPORESUME, this.uid + "", this.OnPayResume.bind(this));
    			else {
    				let t = this;
    				qg.login({
    					success: function (e) {
    						let s = e.data;
    						(t.uid = s.uid),
    							(t.token = s.token),
    							(t.login_time = new Date().getTime()),
    							t.POST(t.OPPORESUME, t.uid + "", t.OnPayResume.bind(t));
    					},
    					fail: function (t) {
    						console.log(JSON.stringify(t)), e(new Array());
    					},
    				});
    			}
    		}
    		static OnPayResume(e) {
    			if (e.length > 10) {
    				let t = JSON.parse(e);
    				if (1 == t.status) {
    					let e = t.data,
    						s = new Array();
    					for (let t = 0; t < e.length; t++)
    						(null != localStorage.getItem("pay_" + e[t]) && localStorage.getItem("pay_" + e[t])) ||
    							(s.push(e[t]), localStorage.setItem("pay_" + e[t], "1"));
    					this.rcallback(s);
    				} else this.rcallback(new Array());
    			}
    		}
    		static Encrypt(e) {
    			let t = this.GetIV();
    			var s = CryptoJS.enc.Utf8.parse(this.KEY_PARAMETER),
    				i = CryptoJS.enc.Utf8.parse(t);
    			let a = CryptoJS.AES.encrypt(e, s, {
    				iv: i,
    				mode: CryptoJS.mode.CBC,
    				padding: CryptoJS.pad.Pkcs7,
    			}).toString();
    			return a.slice(0, 7) + t + a.slice(7, a.length);
    		}
    		static Decrypt(e) {
    			var t = CryptoJS.enc.Utf8.parse(this.KEY_PARAMETER);
    			let s = e.slice(0, 7),
    				i = e.slice(23, e.length),
    				a = e.slice(7, 23);
    			var n = CryptoJS.enc.Utf8.parse(a);
    			e = s + i;
    			let o = CryptoJS.AES.decrypt(e, t, {
    				iv: n,
    				mode: CryptoJS.mode.CBC,
    				padding: CryptoJS.pad.Pkcs7,
    			});
    			return CryptoJS.enc.Utf8.stringify(o);
    		}
    		static GetIV() {
    			let e = "";
    			for (let t = 0; t < 16; t++) e += this.iv_code[Math.floor(Math.random() * this.iv_code.length)];
    			return e;
    		}
    		MD5(e, t, s, i, a) {
    			return CryptoJS.MD5(
    				"appKey=" +
    				e +
    				"&appSecret=" +
    				t +
    				"&pkgName=com.oppo.testgame&timeStamp=1526304757000&token=ccb5ae1cf111de847db508edb90fa633"
    			).toString();
    		}
    		static POST(e, t, s = null) {
    			let i = new XMLHttpRequest();
    			i.open("POST", this.url);
    			let a = "logic=" + e + "&data=" + t;
    			null != s &&
    				(i.onreadystatechange = function () {
    					if (4 == i.readyState && i.status >= 200 && i.status <= 400) {
    						let e = i.responseText;
    						s(e), (s = null);
    					}
    				}),
    				i.send(a);
    		}
    		static URLEncode(e) {
    			return (
    				(e = (e + "").toString()),
    				encodeURIComponent(e)
    					.replace(/!/g, "%21")
    					.replace(/'/g, "%27")
    					.replace(/\(/g, "%28")
    					.replace(/\)/g, "%29")
    					.replace(/\*/g, "%2A")
    					.replace(/%20/g, "+")
    			);
    		}
    	}
    	(Me.OPPOPAYREQ = 1280),
    		(Me.OPPORESUME = 1282),
    		(Me.url = "http://server.dreamgear82.com/httpstransmit.php?port=20399"),
    		(Me.login_time = 0),
    		(Me.uid = 0),
    		(Me.token = null),
    		(Me.eversion = null),
    		(Me.iv_code = [
    			"a",
    			"A",
    			"b",
    			"B",
    			"c",
    			"C",
    			"d",
    			"D",
    			"e",
    			"E",
    			"f",
    			"F",
    			"g",
    			"G",
    			"h",
    			"H",
    			"i",
    			"I",
    			"j",
    			"J",
    			"k",
    			"K",
    			"l",
    			"L",
    			"m",
    			"M",
    			"n",
    			"N",
    			"o",
    			"O",
    			"p",
    			"P",
    			"q",
    			"Q",
    			"r",
    			"R",
    			"s",
    			"S",
    			"t",
    			"T",
    			"u",
    			"U",
    			"v",
    			"V",
    			"w",
    			"W",
    			"x",
    			"X",
    			"y",
    			"Y",
    			"z",
    			"Z",
    			"1",
    			"2",
    			"3",
    			"4",
    			"5",
    			"6",
    			"7",
    			"8",
    			"9",
    			"0",
    		]),
    		(Me.error = {
    			100001: "账号异常",
    			200500: "系统异常",
    			200400: "请求错误",
    			201005: "账号已过期",
    			200404: "数据不存在",
    			200501: "参数错误",
    			200502: "签名错误",
    			301002: "订单号重复",
    			301003: "超过最大限额",
    			301004: "用户取消支付",
    			310040: "支付应用，需要安装或者更新",
    			301005: "结果未知",
    			301007: "版本无更新",
    			301010: "支付失败",
    			301012: "正在处理中",
    			301100: "支付失败",
    			301200: "签名错误",
    			301201: "缺少参数",
    			302003: "对应应用没有开通免费权限",
    			302004: "签约成功，支付失败",
    			305000: "金额错误",
    			305001: "系统错误",
    			305002: "余额不足",
    			305003: "参数异常",
    			305004: "用户不存在",
    			305005: "登录鉴权失败",
    			305006: "商户订单号重复",
    			305555: "支付失败",
    			330000: "余额查询成功",
    			330001: "余额查询失败",
    			330002: "余额查询结果未知",
    			500000: "支付插件异常",
    		}),
    		(Me.KEY_PARAMETER = "WPJXHWXUEBCEXGEO"),
    		(Me.IV_PARAMETER = "0392039203920300");
    	class Ee extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this._itemArr = []), (this.curCloseIndex = 0), (this.curGetIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ee()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			this.isDebug && console.log("loadUI"),
    				(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._garageTitle = this._content.getChild("n3").asImage),
    				(this._shopTitle = this._content.getChild("n18").asImage),
    				(this._coinValue = this._content.getChild("n7").asTextField),
    				(this._energyValue = this._content.getChild("n11").asTextField),
    				(this._btnAddCoin = this._content.getChild("n6").asButton),
    				this._btnAddCoin.onClick(this, this.onClickAddCoin),
    				(this._btnAddEnergy = this._content.getChild("n10").asButton),
    				this._btnAddEnergy.onClick(this, this.onClickAddEnergy),
    				(this.btnClose = this._content.getChild("n14").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this._restore = this._content.getChild("n21").asGroup),
    				(this._btnRestore = this._content.getChild("n19").asButton),
    				this._btnRestore.onClick(this, this.onClickRestore),
    				9 == l.game_channel
    					? ((this._restore.visible = !0), (this._garageTitle.visible = !1), (this._shopTitle.visible = !0))
    					: ((this._restore.visible = !1), (this._garageTitle.visible = !0), (this._shopTitle.visible = !1)),
    				this._itemArr.length > 0 && this._itemArr.splice(0, this._itemArr.length),
    				(this._list = this._content.getChild("n15").asList),
    				(this._list.itemRenderer = Laya.Handler.create(this, this.renderListItem, null, !1)),
    				(this._list.numItems = 8),
    				this.setCoinValue(),
    				this.setEnergyValue(),
    				Laya.stage.on("updateGarageWallet", this, this.setWallet),
    				Laya.stage.on("updateGarageUI", this, this.upDateUI),
    				Laya.stage.on("ClickEquip", this, this.onClickEquip),
    				Laya.stage.on("ClickAdGet", this, this.onClickAdGet),
    				Laya.stage.on("ClickBuy", this, this.onClickBuy),
    				Laya.stage.on("ClickCoinGet", this, this.onClickCoinGet),
    				Laya.stage.on("ClickGiftGet", this, this.onClickGiftGet),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("车库");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"), this.updateList();
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_GARAGE), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					(mt.instance.needBackMenu = l.UI_STATE.UI_STATE_GARAGE),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_SUPER_GIFT) && mt.instance.showSuperGiftMenu();
    					break;

    				case 2:
    					(mt.instance.needBackMenu = l.UI_STATE.UI_STATE_GARAGE), mt.instance.showGetRewardByList();
    			}
    		}
    		setWallet() {
    			this.setCoinValue(), this.setEnergyValue();
    		}
    		upDateUI() {
    			this.updateList();
    		}
    		setCoinValue() {
    			this._coinValue.text = "" + L.instance.playerInfo.gold;
    		}
    		setEnergyValue() {
    			this._energyValue.text = L.instance.playerInfo.energy + "/" + C.Config_Energy_Map.get(1).energy_limit;
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickRestore() {
    			this.isDebug && console.log("onClickRestore"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Me.ResumePay((e) => {
    					if ((console.log(e), e.length > 0)) {
    						for (let t = 0; t < e.length; t++)
    							switch (e[t]) {
    								case 1001:
    									{
    										(L.instance.carInfo.carDatas[5].state = 1),
    											(L.instance.carInfo.curUseCar = 6),
    											L.instance.saveCarInfoToLocalCache(),
    											(L.instance.playerInfo.advStageDatas[4].isNew = 1),
    											(L.instance.playerInfo.advStageDatas[5].isNew = 1),
    											(L.instance.playerInfo.advStageDatas[6].isNew = 1),
    											L.instance.savePlayerInfoToLocalCache();
    										let e = new Ae();
    										e.initData(2, 0, 6), mt.instance.getRewardList.push(e);
    									}
    									break;

    								case 1002:
    									{
    										(L.instance.carInfo.carDatas[6].state = 1),
    											(L.instance.carInfo.curUseCar = 7),
    											L.instance.saveCarInfoToLocalCache(),
    											(L.instance.playerInfo.advStageDatas[7].isNew = 1),
    											(L.instance.playerInfo.advStageDatas[8].isNew = 1),
    											(L.instance.playerInfo.advStageDatas[9].isNew = 1),
    											L.instance.savePlayerInfoToLocalCache();
    										let e = new Ae();
    										e.initData(2, 0, 7), mt.instance.getRewardList.push(e);
    									}
    									break;

    								case 1003:
    									{
    										(L.instance.carInfo.carDatas[7].state = 1),
    											(L.instance.carInfo.curUseCar = 8),
    											L.instance.saveCarInfoToLocalCache(),
    											(L.instance.playerInfo.advStageDatas[10].isNew = 1),
    											(L.instance.playerInfo.advStageDatas[11].isNew = 1),
    											(L.instance.playerInfo.advStageDatas[12].isNew = 1),
    											L.instance.savePlayerInfoToLocalCache();
    										let e = new Ae();
    										e.initData(2, 0, 8), mt.instance.getRewardList.push(e);
    									}
    									break;

    								case 1004: {
    									L.instance.playerInfo.gold += 1800;
    									let e = new Ae();
    									e.initData(0, 1800, 0),
    										mt.instance.getRewardList.push(e),
    										(L.instance.playerInfo.energy += 40),
    										L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    										(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    										(L.instance.playerInfo.isHasGetSuperGift = !0),
    										L.instance.savePlayerInfoToLocalCache();
    									let t = new Ae();
    									t.initData(1, 40, 0),
    										mt.instance.getRewardList.push(t),
    										(L.instance.carInfo.carDatas[1].state = 1),
    										(L.instance.carInfo.curUseCar = 2),
    										L.instance.saveCarInfoToLocalCache(),
    										(L.instance.playerInfo.advStageDatas[1].isNew = 1),
    										(L.instance.playerInfo.advStageDatas[2].isNew = 1),
    										(L.instance.playerInfo.advStageDatas[3].isNew = 1),
    										L.instance.savePlayerInfoToLocalCache();
    									let s = new Ae();
    									s.initData(2, 0, 2),
    										mt.instance.getRewardList.push(s),
    										Laya.stage.event("updateWallet"),
    										Laya.stage.event("hideBtnGift");
    								}
    							}
    						(this.curCloseIndex = 2), this.playMenuCloseAni(this.onHide.bind(this));
    					} else mt.instance.showDialogMenu(13, "没有可恢复的商品。");
    				});
    		}
    		onClickAddCoin() {
    			this.isDebug && console.log("onClickAddCoin"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_BUY_COIN) && mt.instance.showBuyCoinMenu();
    		}
    		onClickAddEnergy() {
    			this.isDebug && console.log("onClickAddEnergy"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_BUY_ENERGY) && mt.instance.showBuyEnergyMenu();
    		}
    		renderListItem(e, t) {
    			this.isDebug && console.log("index == " + e);
    			var s = t;
    			switch (
    			(s.setGarageIndex(e),
    				s.setCarIcon(V.instance.getCarIcon(e + 1)),
    				s.setCarName(V.instance.getCarName(e + 1)),
    				s.setSpeedSlider(C.Config_Property_Map.get(e + 1).car_speed),
    				s.setAccSlider(10 - C.Config_Property_Map.get(e + 1).car_quicken),
    				s.setInertiaSlider(10 - C.Config_Property_Map.get(e + 1).car_turn),
    				s.setBrakeSlider(10 - C.Config_Property_Map.get(e + 1).car_skid),
    				s.setControlSlider(C.Config_Property_Map.get(e + 1).car_control),
    				s.setPowerSlider(C.Config_Property_Map.get(e + 1).car_power),
    				s.setCarType(C.Config_Property_Map.get(e + 1).car_type),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    				case 2:
    				case 3:
    				case 4:
    					if (e + 1 == L.instance.carInfo.curUseCar) s.showByState(1);
    					else if (1 == L.instance.carInfo.carDatas[e].state) s.showByState(0);
    					else
    						switch (C.Config_Property_Map.get(e + 1).unlock_condition) {
    							case 0:
    								s.showByState(3), (s.getBtnCoinGet().title = "" + C.Config_Property_Map.get(e + 1).unlock_price);
    								break;

    							case 1:
    							case 3:
    								{
    									let t = L.instance.carInfo.carDatas[e].adUnlock,
    										i = C.Config_Property_Map.get(e + 1).unlock_price;
    									s.setTryTimes(t, i),
    										s.showByState(2),
    										s.setBtnADGet(0),
    										e + 1 == 4 &&
    										(L.instance.playerInfo.limitGetShowed
    											? ((s.getBtnAdGet().enabled = !1), (s.getBtnAdGet().grayed = !0))
    											: ((s.getBtnAdGet().enabled = !0), (s.getBtnAdGet().grayed = !1)));
    								}
    								break;

    							case 2:
    								s.showByState(4);
    						}
    			}
    			this._itemArr.push(s);
    		}
    		updateList() {
    			if (
    				(console.log("updateList"),
    					console.log("this._itemArr.length == " + this._itemArr.length),
    					this._itemArr.length > 0)
    			)
    				for (let e = 0; e < this._itemArr.length; e++) {
    					let t = this._itemArr[e];
    					switch (
    					(this.isDebug && console.log("item.getGarageIndex() =(" + e + ")= " + t.getGarageIndex()), l.game_channel)
    					) {
    						case 0:
    						case 1:
    						case 2:
    						case 3:
    						case 4:
    							if (t.getGarageIndex() + 1 == L.instance.carInfo.curUseCar) t.showByState(1);
    							else if (1 == L.instance.carInfo.carDatas[t.getGarageIndex()].state) t.showByState(0);
    							else
    								switch (C.Config_Property_Map.get(t.getGarageIndex() + 1).unlock_condition) {
    									case 0:
    										t.showByState(3),
    											(t.getBtnCoinGet().title = "" + C.Config_Property_Map.get(t.getGarageIndex() + 1).unlock_price);
    										break;

    									case 1:
    										{
    											let e = L.instance.carInfo.carDatas[t.getGarageIndex()].adUnlock,
    												s = C.Config_Property_Map.get(t.getGarageIndex() + 1).unlock_price;
    											console.log("curTimes == " + e),
    												console.log("maxTimes == " + s),
    												t.setTryTimes(e, s),
    												t.showByState(2),
    												t.setBtnADGet(0),
    												t.getGarageIndex() + 1 == 4 &&
    												(L.instance.playerInfo.limitGetShowed
    													? ((t.getBtnAdGet().enabled = !1), (t.getBtnAdGet().grayed = !0))
    													: ((t.getBtnAdGet().enabled = !0), (t.getBtnAdGet().grayed = !1)));
    										}
    										break;

    									case 2:
    										t.showByState(4);
    								}
    							break;

    						case 3:
    							if (t.getGarageIndex() + 1 == L.instance.carInfo.curUseCar) t.showByState(1);
    							else if (1 == L.instance.carInfo.carDatas[t.getGarageIndex()].state) t.showByState(0);
    							else
    								switch (C.Config_Property_Map.get(t.getGarageIndex() + 1).unlock_oppo_condition) {
    									case 0:
    										t.showByState(3),
    											(t.getBtnCoinGet().title = "" + C.Config_Property_Map.get(t.getGarageIndex() + 1).unlock_price);
    										break;

    									case 1:
    									case 3:
    										t.showByState(2),
    											t.setBtnADGet(0),
    											t.getGarageIndex() + 1 == 4 &&
    											(L.instance.playerInfo.limitGetShowed
    												? ((t.getBtnAdGet().enabled = !1), (t.getBtnAdGet().grayed = !0))
    												: ((t.getBtnAdGet().enabled = !0), (t.getBtnAdGet().grayed = !1)));
    										break;

    									case 2:
    										t.showByState(4);
    								}
    					}
    				}
    		}
    		onClickEquip(e) {
    			this.isDebug && console.log("onClickEquip == index = " + e),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let t = L.instance.carInfo.curUseCar - 1;
    			this.isDebug && console.log("curUseIndex == " + t),
    				(L.instance.carInfo.curUseCar = e + 1),
    				L.instance.saveCarInfoToLocalCache(),
    				this._itemArr[t].showByState(0),
    				this._itemArr[e].showByState(1);
    		}
    		onClickAdGet(e) {
    			switch (
    			(this.isDebug && console.log("onClickAdGet == index = " + e),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				e)
    			) {
    				case 3:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITGET) && mt.instance.showLimitGetMenu(1);
    					break;

    				case 5:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITTRY) && mt.instance.showLimitTryMenu(6, 0);
    					break;

    				case 6:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITTRY) && mt.instance.showLimitTryMenu(7, 0);
    					break;

    				case 7:
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITTRY) && mt.instance.showLimitTryMenu(8, 0);
    			}
    		}
    		onClickBuy(e) {
    			if (
    				(this.isDebug && console.log("onClickBuy == index = " + e),
    					L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    					3 == l.game_channel)
    			) {
    				switch (e) {
    					case 5:
    						f.instance.curBuyID = 1001;
    						break;

    					case 6:
    						f.instance.curBuyID = 1002;
    						break;

    					case 7:
    						f.instance.curBuyID = 1003;
    				}
    				Me.Pay(95631148, f.instance.curBuyID, "1.0.0", this.payResult.bind(this));
    			}
    		}
    		payResult(e, t) {
    			if ((console.log("is_success == " + e), console.log("msg == " + t), e)) {
    				switch (f.instance.curBuyID) {
    					case 1001:
    						{
    							(L.instance.carInfo.carDatas[5].state = 1),
    								(L.instance.carInfo.curUseCar = 6),
    								L.instance.saveCarInfoToLocalCache(),
    								(L.instance.playerInfo.advStageDatas[4].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[5].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[6].isNew = 1),
    								L.instance.savePlayerInfoToLocalCache();
    							let e = new Ae();
    							e.initData(2, 0, 6), mt.instance.getRewardList.push(e);
    						}
    						break;

    					case 1002:
    						{
    							(L.instance.carInfo.carDatas[6].state = 1),
    								(L.instance.carInfo.curUseCar = 7),
    								L.instance.saveCarInfoToLocalCache(),
    								(L.instance.playerInfo.advStageDatas[7].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[8].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[9].isNew = 1),
    								L.instance.savePlayerInfoToLocalCache();
    							let e = new Ae();
    							e.initData(2, 0, 7), mt.instance.getRewardList.push(e);
    						}
    						break;

    					case 1003: {
    						(L.instance.carInfo.carDatas[7].state = 1),
    							(L.instance.carInfo.curUseCar = 8),
    							L.instance.saveCarInfoToLocalCache(),
    							(L.instance.playerInfo.advStageDatas[10].isNew = 1),
    							(L.instance.playerInfo.advStageDatas[11].isNew = 1),
    							(L.instance.playerInfo.advStageDatas[12].isNew = 1),
    							L.instance.savePlayerInfoToLocalCache();
    						let e = new Ae();
    						e.initData(2, 0, 8), mt.instance.getRewardList.push(e);
    					}
    				}
    				(this.curCloseIndex = 2), this.playMenuCloseAni(this.onHide.bind(this));
    			} else mt.instance.showDialogMenu(12, "购买失败！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickCoinGet(e) {
    			this.isDebug && console.log("onClickCoinGet == index = " + e),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let t = C.Config_Property_Map.get(e + 1).unlock_price;
    			if ((this.isDebug && console.log("price == " + t), L.instance.playerInfo.gold >= t)) {
    				(L.instance.playerInfo.gold -= t),
    					L.instance.savePlayerInfoToLocalCache(),
    					(L.instance.carInfo.carDatas[e].state = 1),
    					(L.instance.carInfo.curUseCar = e + 1),
    					L.instance.saveCarInfoToLocalCache(),
    					v.instance.updateCommonAchieve(2);
    				let s = new Ae();
    				s.initData(2, 0, e + 1),
    					mt.instance.getRewardList.push(s),
    					Laya.stage.event("updateWallet"),
    					(this.curCloseIndex = 2),
    					this.playMenuCloseAni(this.onHide.bind(this));
    			} else mt.instance.pushMenu(l.UI_STATE.UI_STATE_BUY_COIN) && mt.instance.showBuyCoinMenu();
    		}
    		onClickGiftGet(e) {
    			this.isDebug && console.log("onClickGiftGet == index = " + e),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class xe extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.ljItems = []), (this.curCloseIndex = 0), (this.curGetIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new xe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.itemDay1 = this._content.getChild("n5").asCom),
    				(this.itemDay2 = this._content.getChild("n6").asCom),
    				(this.itemDay3 = this._content.getChild("n7").asCom),
    				(this.itemDay4 = this._content.getChild("n8").asCom),
    				(this.itemDay5 = this._content.getChild("n9").asCom),
    				(this.itemDay6 = this._content.getChild("n10").asCom),
    				(this.itemDay7 = this._content.getChild("n11").asCom),
    				(this.btnClose = this._content.getChild("n4").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this.btnSignIn = this._content.getChild("n3").asButton),
    				this.btnSignIn.onClick(this, this.onClickSignIn),
    				(this.btnDouble = this._content.getChild("n26").asButton),
    				this.btnDouble.onClick(this, this.onClickDouble),
    				(this.btnMoreReward = this._content.getChild("n27").asButton),
    				this.btnMoreReward.onClick(this, this.onClickMore),
    				(this._list = this._content.getChild("n14").asList),
    				(this._list.itemRenderer = Laya.Handler.create(this, this.renderListItem, null, !1)),
    				(this._list.numItems = 4),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.setSignInInfo();
    			let e = !1;
    			1 == L.instance.playerInfo.twoDaySignIn
    				? (e = !0)
    				: 1 == L.instance.playerInfo.threeDaySignIn
    					? (e = !0)
    					: 1 == L.instance.playerInfo.fiveDaySignIn
    						? (e = !0)
    						: 1 == L.instance.playerInfo.sevenDaySignIn && (e = !0),
    				1 == L.instance.carInfo.carDatas[l.CAR_SHOW_TYPE.CAR_SHOW_TYPE_4].state
    					? this.itemDay7.showByType(0)
    					: this.itemDay7.showByType(1),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("签到");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("签到界面弹出次数", 3001, !1),
    				D.SendEvent("签到界面弹出人数", 3002, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_SING_IN), this._view.removeFromParent(), e)) {
    				case 0:
    					switch ((B.ShuFenReport_guide("lost015", 2), l.game_channel)) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					0 == L.instance.carInfo.carDatas[l.CAR_SHOW_TYPE.CAR_SHOW_TYPE_4].state &&
    						(L.instance.playerInfo.limitGetShowed ||
    							(mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITGET) && mt.instance.showLimitGetMenu(0)));
    			}
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				B.ShuFenReport_guide("lost015", 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickSignIn() {
    			this.isDebug &&
    				(console.log("onClickSignIn"),
    					console.log("PlayerData.instance.playerInfo.signInDays == " + L.instance.playerInfo.signInDays)),
    				B.ShuFenReport_guide("lost014", 1),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_guide("lost014", 2),
    				(L.instance.playerInfo.signInDays += 1),
    				(L.instance.playerInfo.isSignInCurDay = !0);
    			let e = C.Config_SignIn_Map.get(L.instance.playerInfo.signInDays).sign_1_reward;
    			this.isDebug && console.log("rewardStr == " + e);
    			let t = e.split(";");
    			this.isDebug && (console.log("rewardInfo[0] == " + t[0]), console.log("rewardInfo[1] == " + t[1]));
    			let s = parseInt(t[1]);
    			switch ((this.isDebug && console.log("itemValue == " + s), t[0])) {
    				case "prop_01":
    					(L.instance.playerInfo.gold += s),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = s),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    					break;

    				case "prop_02":
    					(L.instance.playerInfo.energy += s),
    						L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    						(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    						(mt.instance.getRewardMenuType = 1),
    						(mt.instance.getItemValue = s),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    			(this.btnSignIn.visible = !1),
    				2 == L.instance.playerInfo.signInDays
    					? 0 == L.instance.playerInfo.twoDaySignIn && (L.instance.playerInfo.twoDaySignIn = 1)
    					: 3 == L.instance.playerInfo.signInDays
    						? 0 == L.instance.playerInfo.threeDaySignIn && (L.instance.playerInfo.threeDaySignIn = 1)
    						: 5 == L.instance.playerInfo.signInDays
    							? 0 == L.instance.playerInfo.fiveDaySignIn && (L.instance.playerInfo.fiveDaySignIn = 1)
    							: 7 == L.instance.playerInfo.signInDays &&
    							0 == L.instance.playerInfo.sevenDaySignIn &&
    							(L.instance.playerInfo.sevenDaySignIn = 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("upDateUI", 0),
    				this.setSignInInfo();
    		}
    		onClickDouble() {
    			this.isDebug &&
    				(console.log("onClickDouble"),
    					console.log("PlayerData.instance.playerInfo.signInDays == " + L.instance.playerInfo.signInDays)),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_video("ads001", 1),
    				Gt.instance.ShowVideo(
    					this.adSuccessForDouble.bind(this),
    					this.adFailForDouble.bind(this),
    					this.adLoadedForDouble.bind(this)
    				);
    		}
    		adLoadedForDouble() {
    			B.ShuFenReport_video("ads001", 2),
    				D.SendEvent("签到界面拉取成功数", 3003, !1),
    				A.instance.isFristDotForSignIn_1 ||
    				((A.instance.isFristDotForSignIn_1 = !0), D.SendEvent("签到界面首次拉取成功数", 3005, !1));
    		}
    		adSuccessForDouble() {
    			B.ShuFenReport_video("ads001", 3),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("签到界面完播数", 3004, !1),
    				A.instance.isFristDotForSignIn_2 ||
    				((A.instance.isFristDotForSignIn_2 = !0), D.SendEvent("签到界面首次拉取完播数", 3006, !1)),
    				v.instance.updateCommonAchieve(1),
    				(L.instance.playerInfo.signInDays += 1),
    				(L.instance.playerInfo.isSignInCurDay = !0);
    			let e = C.Config_SignIn_Map.get(L.instance.playerInfo.signInDays).sign_1_reward;
    			this.isDebug && console.log("rewardStr == " + e);
    			let t = e.split(";");
    			this.isDebug && (console.log("rewardInfo[0] == " + t[0]), console.log("rewardInfo[1] == " + t[1]));
    			let s = parseInt(t[1]);
    			switch ((this.isDebug && console.log("itemValue == " + s), t[0])) {
    				case "prop_01":
    					(L.instance.playerInfo.gold += 2 * s),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = 2 * s),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    					break;

    				case "prop_02":
    					(L.instance.playerInfo.energy += 2 * s),
    						L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    						(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    						(mt.instance.getRewardMenuType = 1),
    						(mt.instance.getItemValue = 2 * s),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    			(this.btnSignIn.visible = !1),
    				2 == L.instance.playerInfo.signInDays
    					? 0 == L.instance.playerInfo.twoDaySignIn && (L.instance.playerInfo.twoDaySignIn = 1)
    					: 3 == L.instance.playerInfo.signInDays
    						? 0 == L.instance.playerInfo.threeDaySignIn && (L.instance.playerInfo.threeDaySignIn = 1)
    						: 5 == L.instance.playerInfo.signInDays
    							? 0 == L.instance.playerInfo.fiveDaySignIn && (L.instance.playerInfo.fiveDaySignIn = 1)
    							: 7 == L.instance.playerInfo.signInDays &&
    							0 == L.instance.playerInfo.sevenDaySignIn &&
    							(L.instance.playerInfo.sevenDaySignIn = 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("upDateUI", 0),
    				this.setSignInInfo();
    		}
    		adFailForDouble() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onClickMore() {
    			this.isDebug &&
    				(console.log("onClickDouble"),
    					console.log("PlayerData.instance.playerInfo.signInDays == " + L.instance.playerInfo.signInDays)),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ShowVideo(
    					this.adSuccessForMore.bind(this),
    					this.adFailForMore.bind(this),
    					this.adLoadedForMore.bind(this)
    				);
    		}
    		adLoadedForMore() {
    			D.SendEvent("签到界面拉取成功数", 3003, !1),
    				A.instance.isFristDotForSignIn_1 ||
    				((A.instance.isFristDotForSignIn_1 = !0), D.SendEvent("签到界面首次拉取成功数", 3005, !1));
    		}
    		adSuccessForMore() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("签到界面完播数", 3004, !1),
    				A.instance.isFristDotForSignIn_2 ||
    				((A.instance.isFristDotForSignIn_2 = !0), D.SendEvent("签到界面首次拉取完播数", 3006, !1)),
    				v.instance.updateCommonAchieve(1),
    				(L.instance.playerInfo.signInDays += 1),
    				(L.instance.playerInfo.isSignInCurDay = !0),
    				mt.instance.getRewardList.length > 0 && mt.instance.getRewardList.splice(0, mt.instance.getRewardList.length);
    			let e = C.Config_SignIn_Map.get(L.instance.playerInfo.signInDays).sign_1_reward;
    			this.isDebug && console.log("rewardStr == " + e);
    			let t = e.split(";");
    			this.isDebug && (console.log("rewardInfo[0] == " + t[0]), console.log("rewardInfo[1] == " + t[1]));
    			let s = parseInt(t[1]);
    			switch ((this.isDebug && console.log("itemValue == " + s), t[0])) {
    				case "prop_01": {
    					L.instance.playerInfo.gold += s;
    					let e = new Ae();
    					e.initData(0, s, 0), mt.instance.getRewardList.push(e);
    				}
    			}
    			let i = C.Config_SignIn_Map.get(L.instance.playerInfo.signInDays).sign_special.split(";");
    			switch (
    			(this.isDebug && (console.log("rewardInfo1[0] == " + i[0]), console.log("rewardInfo1[1] == " + i[1])), i[0])
    			) {
    				case "game_car_04": {
    					(L.instance.carInfo.carDatas[3].state = 1),
    						(L.instance.carInfo.curUseCar = 4),
    						L.instance.saveCarInfoToLocalCache(),
    						(L.instance.playerInfo.advStageDatas[1].isNew = 1),
    						(L.instance.playerInfo.advStageDatas[2].isNew = 1),
    						(L.instance.playerInfo.advStageDatas[3].isNew = 1),
    						L.instance.savePlayerInfoToLocalCache();
    					let e = new Ae();
    					e.initData(2, 0, 4), mt.instance.getRewardList.push(e);
    				}
    			}
    			mt.instance.showGetRewardByList(),
    				(this.btnSignIn.visible = !1),
    				2 == L.instance.playerInfo.signInDays
    					? 0 == L.instance.playerInfo.twoDaySignIn && (L.instance.playerInfo.twoDaySignIn = 1)
    					: 3 == L.instance.playerInfo.signInDays
    						? 0 == L.instance.playerInfo.threeDaySignIn && (L.instance.playerInfo.threeDaySignIn = 1)
    						: 5 == L.instance.playerInfo.signInDays
    							? 0 == L.instance.playerInfo.fiveDaySignIn && (L.instance.playerInfo.fiveDaySignIn = 1)
    							: 7 == L.instance.playerInfo.signInDays &&
    							0 == L.instance.playerInfo.sevenDaySignIn &&
    							(L.instance.playerInfo.sevenDaySignIn = 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("upDateUI", 0),
    				this.setSignInInfo();
    		}
    		adFailForMore() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		renderListItem(e, t) {
    			this.isDebug && console.log("renderListItem == index == " + e);
    			var s = t;
    			s.setItemIndex(e), s.getBtnAdGet().onClick(this, this.onClickAdGet), this.ljItems.push(s);
    		}
    		onClickAdGet(e) {
    			this.isDebug && console.log("onClickAdGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let t = fgui.GObject.cast(e.target).parent.getItemIndex();
    			console.log("index == " + t),
    				(this.curGetIndex = t),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			D.SendEvent("签到界面拉取成功数", 3003, !1),
    				A.instance.isFristDotForSignIn_1 ||
    				((A.instance.isFristDotForSignIn_1 = !0), D.SendEvent("签到界面首次拉取成功数", 3005, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("签到界面完播数", 3004, !1),
    				A.instance.isFristDotForSignIn_2 ||
    				((A.instance.isFristDotForSignIn_2 = !0), D.SendEvent("签到界面首次拉取完播数", 3006, !1)),
    				v.instance.updateCommonAchieve(1);
    			let e = "";
    			switch (this.curGetIndex) {
    				case 0:
    					(e = C.Config_SignIn_Map.get(2).sign_reward),
    						1 == L.instance.playerInfo.twoDaySignIn && (L.instance.playerInfo.twoDaySignIn = 2);
    					break;

    				case 1:
    					(e = C.Config_SignIn_Map.get(3).sign_reward),
    						1 == L.instance.playerInfo.threeDaySignIn && (L.instance.playerInfo.threeDaySignIn = 2);
    					break;

    				case 2:
    					(e = C.Config_SignIn_Map.get(5).sign_reward),
    						1 == L.instance.playerInfo.fiveDaySignIn && (L.instance.playerInfo.fiveDaySignIn = 2);
    					break;

    				case 3:
    					(e = C.Config_SignIn_Map.get(7).sign_reward),
    						1 == L.instance.playerInfo.sevenDaySignIn && (L.instance.playerInfo.sevenDaySignIn = 2);
    			}
    			this.isDebug && console.log("rewardStr == " + e);
    			let t = e.split(";");
    			this.isDebug && (console.log("rewardInfo[0] == " + t[0]), console.log("rewardInfo[1] == " + t[1]));
    			let s = parseInt(t[1]);
    			switch ((this.isDebug && console.log("itemValue == " + s), t[0])) {
    				case "prop_01":
    					(L.instance.playerInfo.gold += s),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = s),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    					break;

    				case "prop_02":
    					(L.instance.playerInfo.energy += s),
    						L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    						(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    						(mt.instance.getRewardMenuType = 1),
    						(mt.instance.getItemValue = s),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    			L.instance.savePlayerInfoToLocalCache(), Laya.stage.event("upDateUI", 0), this.setSignInInfo();
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		setSignInInfo() {
    			if (
    				(this.isDebug &&
    					(console.log("PlayerData.instance.playerInfo.signInDays == " + L.instance.playerInfo.signInDays),
    						console.log("PlayerData.instance.playerInfo.twoDaySignIn == " + L.instance.playerInfo.twoDaySignIn),
    						console.log("PlayerData.instance.playerInfo.threeDaySignIn == " + L.instance.playerInfo.threeDaySignIn),
    						console.log("PlayerData.instance.playerInfo.fiveDaySignIn == " + L.instance.playerInfo.fiveDaySignIn),
    						console.log("PlayerData.instance.playerInfo.sevenDaySignIn == " + L.instance.playerInfo.sevenDaySignIn)),
    					L.instance.playerInfo.isSignInCurDay)
    			)
    				switch (L.instance.playerInfo.signInDays - 1) {
    					case 0:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(0),
    							this.itemDay3.showByState(0),
    							this.itemDay4.showByState(0),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 1:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(0),
    							this.itemDay4.showByState(0),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 2:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(0),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 3:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 4:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(2),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 5:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(2),
    							this.itemDay6.showByState(2),
    							this.itemDay7.showByState(0);
    						break;

    					case 6:
    					case 7:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(2),
    							this.itemDay6.showByState(2),
    							this.itemDay7.showByState(2);
    				}
    			else
    				switch (L.instance.playerInfo.signInDays) {
    					case 0:
    						this.itemDay1.showByState(1),
    							this.itemDay2.showByState(0),
    							this.itemDay3.showByState(0),
    							this.itemDay4.showByState(0),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 1:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(1),
    							this.itemDay3.showByState(0),
    							this.itemDay4.showByState(0),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 2:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(1),
    							this.itemDay4.showByState(0),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 3:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(1),
    							this.itemDay5.showByState(0),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 4:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(1),
    							this.itemDay6.showByState(0),
    							this.itemDay7.showByState(0);
    						break;

    					case 5:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(2),
    							this.itemDay6.showByState(1),
    							this.itemDay7.showByState(0);
    						break;

    					case 6:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(2),
    							this.itemDay6.showByState(2),
    							this.itemDay7.showByState(1);
    						break;

    					case 7:
    						this.itemDay1.showByState(2),
    							this.itemDay2.showByState(2),
    							this.itemDay3.showByState(2),
    							this.itemDay4.showByState(2),
    							this.itemDay5.showByState(2),
    							this.itemDay6.showByState(2),
    							this.itemDay7.showByState(2);
    				}
    			7 == L.instance.playerInfo.signInDays
    				? ((this.btnSignIn.visible = !1), (this.btnDouble.visible = !1), (this.btnMoreReward.visible = !1))
    				: L.instance.playerInfo.isSignInCurDay
    					? ((this.btnSignIn.visible = !1), (this.btnDouble.visible = !1), (this.btnMoreReward.visible = !1))
    					: 6 == L.instance.playerInfo.signInDays
    						? ((this.btnSignIn.visible = !0),
    							1 == L.instance.carInfo.carDatas[l.CAR_SHOW_TYPE.CAR_SHOW_TYPE_4].state
    								? ((this.btnDouble.visible = !0), (this.btnMoreReward.visible = !1))
    								: ((this.btnDouble.visible = !1), (this.btnMoreReward.visible = !0)))
    						: ((this.btnSignIn.visible = !0), (this.btnDouble.visible = !0), (this.btnMoreReward.visible = !1)),
    				this.ljItems[0].showByState(L.instance.playerInfo.twoDaySignIn),
    				L.instance.playerInfo.signInDays >= 2
    					? this.ljItems[0].setProcess(2)
    					: this.ljItems[0].setProcess(L.instance.playerInfo.signInDays),
    				this.ljItems[1].showByState(L.instance.playerInfo.threeDaySignIn),
    				L.instance.playerInfo.signInDays >= 3
    					? this.ljItems[1].setProcess(3)
    					: this.ljItems[1].setProcess(L.instance.playerInfo.signInDays),
    				this.ljItems[2].showByState(L.instance.playerInfo.fiveDaySignIn),
    				L.instance.playerInfo.signInDays >= 5
    					? this.ljItems[2].setProcess(5)
    					: this.ljItems[2].setProcess(L.instance.playerInfo.signInDays),
    				this.ljItems[3].showByState(L.instance.playerInfo.sevenDaySignIn),
    				L.instance.playerInfo.signInDays >= 7
    					? this.ljItems[3].setProcess(7)
    					: this.ljItems[3].setProcess(L.instance.playerInfo.signInDays);
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Be extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Be()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n6").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n7").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("购买金币");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("我要金币弹出次数", 3043, !1),
    				D.SendEvent("我要金币弹出人数", 3044, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_BUY_COIN), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					(L.instance.playerInfo.gold += C.Config_Glod_Map.get(1).gold_video),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = C.Config_Glod_Map.get(1).gold_video),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    		}
    		onClickADGet() {
    			this.isDebug && console.log("onClickADGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_video("ads005", 1),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			console.log("adLoaded"),
    				B.ShuFenReport_video("ads005", 2),
    				D.SendEvent("我要金币拉取成功数", 3045, !1),
    				A.instance.isFristDotForBuyGold_1 ||
    				((A.instance.isFristDotForBuyGold_1 = !0), D.SendEvent("我要金币首次拉取成功数", 3047, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				B.ShuFenReport_video("ads005", 3),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("我要金币完播数", 3046, !1),
    				A.instance.isFristDotForBuyGold_2 ||
    				((A.instance.isFristDotForBuyGold_2 = !0), D.SendEvent("我要金币首次拉取完播数", 3048, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Re extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Re()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n6").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n7").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("购买燃料");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("补充燃料弹出次数", 3037, !1),
    				D.SendEvent("补充燃料弹出人数", 3038, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_BUY_ENERGY), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					(L.instance.playerInfo.energy += C.Config_Energy_Map.get(1).energy_video),
    						L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    						(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 1),
    						(mt.instance.getItemValue = C.Config_Energy_Map.get(1).energy_video),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    		}
    		onClickADGet() {
    			this.isDebug &&
    				(console.log("onClickADGet"),
    					console.log("PlayerData.instance.playerInfo.energy == " + L.instance.playerInfo.energy)),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_video("ads004", 1),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			B.ShuFenReport_video("ads004", 2),
    				D.SendEvent("补充燃料拉取成功数", 3039, !1),
    				A.instance.isFristDotForBuyEnergy_1 ||
    				((A.instance.isFristDotForBuyEnergy_1 = !0), D.SendEvent("补充燃料首次拉取成功数", 3041, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				B.ShuFenReport_video("ads004", 3),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("补充燃料完播数", 3040, !1),
    				A.instance.isFristDotForBuyEnergy_2 ||
    				((A.instance.isFristDotForBuyEnergy_2 = !0), D.SendEvent("补充燃料首次拉取完播数", 3042, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Ne extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ne()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._bgAD = this._content.getChild("n31").asImage),
    				(this._bgShop = this._content.getChild("n36").asImage),
    				(this._btnClose = this._content.getChild("n1").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n2").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				(this._btnBuy = this._content.getChild("n35").asButton),
    				this._btnBuy.onClick(this, this.onClickBuy),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(this._bgAD.visible = !0),
    				(this._bgShop.visible = !1),
    				(this._btnADGet.visible = !0),
    				(this._btnBuy.visible = !1),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("大礼包");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("蓝精灵车大礼包弹出次数", 3067, !1),
    				D.SendEvent("蓝精灵车大礼包弹出人数", 3068, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_SUPER_GIFT), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					mt.instance.openNeedBackMenu();
    					break;

    				case 1:
    					mt.instance.showGetRewardByList();
    			}
    		}
    		onClickBuy() {
    			this.isDebug && console.log("onClickBuy"), Me.Pay(95631148, 1004, "1.0.0", this.payResult.bind(this));
    		}
    		payResult(e, t) {
    			if ((console.log("is_success == " + e), console.log("msg == " + t), e)) {
    				mt.instance.getRewardList.length > 0 && mt.instance.getRewardList.splice(0, mt.instance.getRewardList.length),
    					(L.instance.playerInfo.gold += 1800);
    				let e = new Ae();
    				e.initData(0, 1800, 0),
    					mt.instance.getRewardList.push(e),
    					(L.instance.playerInfo.energy += 40),
    					L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    					(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    					(L.instance.playerInfo.isHasGetSuperGift = !0),
    					L.instance.savePlayerInfoToLocalCache();
    				let t = new Ae();
    				t.initData(1, 40, 0),
    					mt.instance.getRewardList.push(t),
    					(L.instance.carInfo.carDatas[1].state = 1),
    					(L.instance.carInfo.curUseCar = 2),
    					L.instance.saveCarInfoToLocalCache();
    				let s = new Ae();
    				s.initData(2, 0, 2),
    					mt.instance.getRewardList.push(s),
    					Laya.stage.event("updateWallet"),
    					Laya.stage.event("hideBtnGift"),
    					(this.curCloseIndex = 1),
    					this.playMenuCloseAni(this.onHide.bind(this));
    			} else mt.instance.showDialogMenu(12, "购买失败！");
    		}
    		onClickADGet() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_video("ads003", 1),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			B.ShuFenReport_video("ads003", 2),
    				D.SendEvent("蓝精灵车大礼包拉取成功数", 3069, !1),
    				A.instance.isFristDotForSuperGift_1 ||
    				((A.instance.isFristDotForSuperGift_1 = !0), D.SendEvent("蓝精灵车大礼包首次拉取成功数", 3071, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				B.ShuFenReport_video("ads003", 3),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("蓝精灵车大礼包完播数", 3070, !1),
    				A.instance.isFristDotForSuperGift_2 ||
    				((A.instance.isFristDotForSuperGift_2 = !0), D.SendEvent("蓝精灵车大礼包首次拉取完播数", 3072, !1)),
    				v.instance.updateCommonAchieve(1),
    				mt.instance.getRewardList.length > 0 && mt.instance.getRewardList.splice(0, mt.instance.getRewardList.length),
    				(L.instance.playerInfo.gold += 1800);
    			let e = new Ae();
    			e.initData(0, 1800, 0),
    				mt.instance.getRewardList.push(e),
    				(L.instance.playerInfo.energy += 40),
    				L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    				(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    				(L.instance.playerInfo.isHasGetSuperGift = !0),
    				L.instance.savePlayerInfoToLocalCache();
    			let t = new Ae();
    			t.initData(1, 40, 0),
    				mt.instance.getRewardList.push(t),
    				(L.instance.carInfo.carDatas[1].state = 1),
    				(L.instance.carInfo.curUseCar = 2),
    				L.instance.saveCarInfoToLocalCache(),
    				v.instance.updateCommonAchieve(2);
    			let s = new Ae();
    			s.initData(2, 0, 2),
    				mt.instance.getRewardList.push(s),
    				Laya.stage.event("updateWallet"),
    				Laya.stage.event("hideBtnGift"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Ue extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curCheatStr = ""), (this._uiManager = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ue()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e, t) {
    			(this._view = e),
    				(this._uiManager = t),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n13").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnSound = this._content.getChild("n22").asButton),
    				this._btnSound.onClick(this, this.onClickSound),
    				(this._btnEffect = this._content.getChild("n23").asButton),
    				this._btnEffect.onClick(this, this.onClickEffect),
    				(this._btnHigh = this._content.getChild("n24").asButton),
    				this._btnHigh.onClick(this, this.onClickHigh),
    				(this._btnLow = this._content.getChild("n25").asButton),
    				this._btnLow.onClick(this, this.onClickLow),
    				(this._btnLeft = this._content.getChild("btnLeft").asButton),
    				this._btnLeft.onClick(this, this.onClickLeft),
    				(this._btnCenter = this._content.getChild("btnCenter").asButton),
    				this._btnCenter.onClick(this, this.onClickCenter),
    				(this._btnRight = this._content.getChild("btnRight").asButton),
    				this._btnRight.onClick(this, this.onClickRight),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				L.instance.settingInfo.isMusic
    					? ((A.instance.isSoundPlay = !0), this._btnSound.getController("c1").setSelectedIndex(1))
    					: ((A.instance.isSoundPlay = !1), this._btnSound.getController("c1").setSelectedIndex(0)),
    				L.instance.settingInfo.isSound
    					? ((A.instance.isEffectPlay = !0), this._btnEffect.getController("c1").setSelectedIndex(1))
    					: ((A.instance.isEffectPlay = !1), this._btnEffect.getController("c1").setSelectedIndex(0)),
    				2 == L.instance.settingInfo.isHigh
    					? ((A.instance.isHighPicQuality = !0),
    						this._btnHigh.getController("c1").setSelectedIndex(1),
    						this._btnLow.getController("c1").setSelectedIndex(0))
    					: ((A.instance.isHighPicQuality = !1),
    						this._btnHigh.getController("c1").setSelectedIndex(0),
    						this._btnLow.getController("c1").setSelectedIndex(1)),
    				Laya.stage.on("restoreHigh", this, this.restoreHigh),
    				Laya.stage.on("reStartGame", this, this.reStartGame),
    				this.playMenuOpenAni(this.onShown.bind(this)),
    				(this.curCheatStr = "");

    			//原生
    			console.log("设置");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch (
    			(this._uiManager.popMenu(l.UI_STATE.UI_STATE_SETTING),
    				this._view.removeFromParent(),
    				Laya.stage.off("restoreHigh", this, this.restoreHigh),
    				Laya.stage.off("reStartGame", this, this.reStartGame),
    				e)
    			) {
    				case 0:
    					L.instance.settingInfo.isMusic
    						? A.instance.isBGMPlaying ||
    						((A.instance.isBGMPlaying = !0),
    							this.isDebug && console.log("uiManager.uiStates[0] == " + mt.uiStates[0]),
    							mt.uiStates[0] == l.UI_STATE.UI_STATE_HALL
    								? Laya.SoundManager.playMusic("res/sound/M_menu_00.mp3", 0)
    								: mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME &&
    								Laya.SoundManager.playMusic("res/sound/M_menu_01.mp3", 0))
    						: A.instance.isBGMPlaying && ((A.instance.isBGMPlaying = !1), Laya.SoundManager.stopMusic());
    					break;

    				case 1:
    					A.instance.isHighPicQuality ? (L.instance.settingInfo.isHigh = 2) : (L.instance.settingInfo.isHigh = 1),
    						L.instance.saveSettingInfoToLocalCache(),
    						this.isDebug && console.log("重启游戏"),
    						Laya.stage.event("reLoadGame");
    			}
    		}
    		exitSuc() { }
    		exitFail() { }
    		exitComplete() { }
    		onClickSound() {
    			this.isDebug && console.log("onClickSound"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				A.instance.isSoundPlay
    					? ((A.instance.isSoundPlay = !1), this._btnSound.getController("c1").setSelectedIndex(0))
    					: ((A.instance.isSoundPlay = !0), this._btnSound.getController("c1").setSelectedIndex(1));
    		}
    		onClickEffect() {
    			this.isDebug && console.log("onClickEffect"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				A.instance.isEffectPlay
    					? ((A.instance.isEffectPlay = !1), this._btnEffect.getController("c1").setSelectedIndex(0))
    					: ((A.instance.isEffectPlay = !0), this._btnEffect.getController("c1").setSelectedIndex(1));
    		}
    		onClickHigh() {
    			this.isDebug && console.log("onClickHigh"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				A.instance.isHighPicQuality ||
    				((A.instance.isHighPicQuality = !0),
    					this._btnHigh.getController("c1").setSelectedIndex(1),
    					this._btnLow.getController("c1").setSelectedIndex(0));
    		}
    		onClickLow() {
    			this.isDebug && console.log("onClickLow"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				A.instance.isHighPicQuality &&
    				((A.instance.isHighPicQuality = !1),
    					this._btnHigh.getController("c1").setSelectedIndex(0),
    					this._btnLow.getController("c1").setSelectedIndex(1));
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3");
    			let e = !1;
    			2 == L.instance.settingInfo.isHigh && (e = !0),
    				(L.instance.settingInfo.isMusic = A.instance.isSoundPlay),
    				(L.instance.settingInfo.isSound = A.instance.isEffectPlay),
    				L.instance.saveSettingInfoToLocalCache(),
    				e != A.instance.isHighPicQuality
    					? mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME
    						? mt.instance.showDialogMenu(5, "修改画质，需要重新进入游戏。\n确定返回大厅吗？")
    						: mt.uiStates[0] == l.UI_STATE.UI_STATE_HALL &&
    						((this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this)))
    					: ((this.curCloseIndex = 0), this.playMenuCloseAni(this.onHide.bind(this)));
    		}
    		restoreHigh() {
    			this.isDebug && console.log("restoreHigh"),
    				2 == L.instance.settingInfo.isHigh
    					? ((A.instance.isHighPicQuality = !0),
    						this._btnHigh.getController("c1").setSelectedIndex(1),
    						this._btnLow.getController("c1").setSelectedIndex(0))
    					: ((A.instance.isHighPicQuality = !1),
    						this._btnHigh.getController("c1").setSelectedIndex(0),
    						this._btnLow.getController("c1").setSelectedIndex(1));
    		}
    		reStartGame() {
    			this.isDebug && console.log("reStartGame"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickLeft() {
    			(this.curCheatStr += "1"), this.checkIsOpenCheatFuc();
    		}
    		onClickCenter() {
    			(this.curCheatStr += "2"), this.checkIsOpenCheatFuc();
    		}
    		onClickRight() {
    			(this.curCheatStr += "3"), this.checkIsOpenCheatFuc();
    		}
    		checkIsOpenCheatFuc() {
    			"1133312" == this.curCheatStr &&
    				((A.instance.isUseCheat = !0),
    					Laya.stage.event("showCheatBtn"),
    					mt.instance.showDialogMenu(6, "作弊功能开启\n点击大厅右上角按键进入"));
    		}
    	}
    	class Ge extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ge()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnClose = this._content.getChild("n3").asButton),
    				this.btnClose.onClick(this, this.onClickContinue),
    				(this.light = this._content.getChild("n0").asImage),
    				(this._carNode = this._content.getChild("n6").asGroup),
    				(this._walletNode = this._content.getChild("n10").asGroup),
    				(this._carIcon = this._content.getChild("n4").asLoader),
    				(this._carName = this._content.getChild("n5").asLoader),
    				(this._coinIcon = this._content.getChild("n7").asImage),
    				(this._energyIcon = this._content.getChild("n8").asImage),
    				(this._itemName = this._content.getChild("itemName").asLabel),
    				(this._itemValue = this._content.getChild("itemValue").asLabel),
    				(this._completeTeach = this._content.getChild("n16").asImage),
    				this.initUI();
    		}
    		initUI() {
    			switch (
    			(B.ShuFenReport_guide("lost013", 1),
    				this.isDebug &&
    				(console.log("initUI"),
    					console.log("uiManager.instance.getRewardMenuType == " + mt.instance.getRewardMenuType)),
    				mt.instance.getRewardMenuType)
    			) {
    				case 0:
    					(this._completeTeach.visible = !1),
    						(this._walletNode.visible = !0),
    						(this._carNode.visible = !1),
    						(this._coinIcon.visible = !0),
    						(this._energyIcon.visible = !1),
    						(this._itemName.text = "金币"),
    						(this._itemValue.text = "x" + mt.instance.getItemValue);
    					break;

    				case 1:
    					(this._completeTeach.visible = !1),
    						(this._walletNode.visible = !0),
    						(this._carNode.visible = !1),
    						(this._coinIcon.visible = !1),
    						(this._energyIcon.visible = !0),
    						(this._itemName.text = "燃料"),
    						(this._itemValue.text = "x" + mt.instance.getItemValue);
    					break;

    				case 2:
    					(this._completeTeach.visible = !1),
    						(this._walletNode.visible = !1),
    						(this._carNode.visible = !0),
    						(this._carIcon.url = V.instance.getCarIcon(mt.instance.getCarType)),
    						(this._carName.url = V.instance.getCarName(mt.instance.getCarType));
    					break;

    				case 3:
    					(this._completeTeach.visible = !0),
    						(this._walletNode.visible = !0),
    						(this._carNode.visible = !1),
    						(this._coinIcon.visible = !0),
    						(this._energyIcon.visible = !1),
    						(this._itemName.text = "金币"),
    						(this._itemValue.text = "x" + mt.instance.getItemValue),
    						D.SendEvent("玩家完成教学领取500金币奖励次数", 1013, !1);
    			}
    			L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_game_09.mp3"),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("教学奖励");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_GET_REWARD), this._view.removeFromParent(), e)) {
    				case 0:
    					if ((B.ShuFenReport_guide("lost013", 2), mt.instance.showGetRewardByList()))
    						if (mt.instance.needShowTip > 0) {
    							switch (mt.instance.needShowTip) {
    								case 1:
    									mt.instance.showDialogMenu(9, "恭喜您获得试用资格，请前往游戏中体验吧！");
    									break;

    								case 2:
    									mt.instance.showDialogMenu(9, "恭喜！试用2次后，就能立即获得此挖掘机哟！");
    							}
    							mt.instance.needShowTip = 0;
    						} else mt.instance.openNeedBackMenu();
    			}
    		}
    		onClickContinue() {
    			this.isDebug && console.log("onClickContinue"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class Fe extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curTime = 0), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Fe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("btnCancel").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnGet = this._content.getChild("btnGet").asButton),
    				this._btnGet.onClick(this, this.onClickGet),
    				(this._msg = this._content.getChild("msg").asLabel),
    				(this._timeTitle = this._content.getChild("timeTitle").asLabel),
    				(this._time = this._content.getChild("time").asLabel),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(this._msg.text = "x" + C.Config_OnlineRewards_Map.get(L.instance.playerInfo.onlineRewardTimes).gold_award),
    				this.isDebug &&
    				(console.log(
    					"PlayerData.instance.playerInfo.onlineRewardLJTime == " + L.instance.playerInfo.onlineRewardLJTime
    				),
    					console.log(
    						"JsonLoader.Config_OnlineRewards_Map.get(PlayerData.instance.playerInfo.onlineRewardTimes).online_time == " +
    						C.Config_OnlineRewards_Map.get(L.instance.playerInfo.onlineRewardTimes).online_time
    					)),
    				L.instance.playerInfo.onlineRewardLJTime >=
    					C.Config_OnlineRewards_Map.get(L.instance.playerInfo.onlineRewardTimes).online_time
    					? ((this._btnGet.grayed = !1),
    						(this._btnGet.enabled = !0),
    						(this._timeTitle.visible = !1),
    						(this._time.visible = !1))
    					: ((this._btnGet.grayed = !0),
    						(this._btnGet.enabled = !1),
    						(this._timeTitle.visible = !0),
    						(this._time.visible = !0),
    						(this.curTime =
    							60 *
    							(C.Config_OnlineRewards_Map.get(L.instance.playerInfo.onlineRewardTimes).online_time -
    								L.instance.playerInfo.onlineRewardLJTime)),
    						this.isDebug && console.log("this.curTime == " + this.curTime),
    						this.setTime(),
    						Laya.timer.loop(1e3, this, this.timeSchedule)),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("在线礼盒");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_ONLINE_GIFT), this._view.removeFromParent(), e)) {
    				case 0:
    					break;

    				case 1:
    					(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = C.Config_OnlineRewards_Map.get(
    							L.instance.playerInfo.onlineRewardTimes
    						).gold_award),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward(),
    						(L.instance.playerInfo.gold += C.Config_OnlineRewards_Map.get(
    							L.instance.playerInfo.onlineRewardTimes
    						).gold_award),
    						(L.instance.playerInfo.onlineRewardTimes += 1),
    						(L.instance.playerInfo.onlineRewardLJTime = 0),
    						(L.instance.playerInfo.recordonlineRewardTime = new Date().getTime()),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("upDateUI", 0);
    			}
    		}
    		timeSchedule(e) {
    			(this.curTime -= 1),
    				this.curTime <= 0
    					? ((this._btnGet.grayed = !1), (this._btnGet.enabled = !0), (this._time.visible = !1))
    					: this.setTime();
    		}
    		setTime() {
    			let e = Math.floor(this.curTime / 60),
    				t = Math.floor(this.curTime % 60);
    			this.isDebug && (console.log("minute == " + e), console.log("second == " + t));
    			let s = "";
    			(s += e > 9 ? "" + e : "0" + e), (s += ":"), (s += t > 9 ? "" + t : "0" + t), (this._time.text = s);
    		}
    		onClickGet() {
    			this.isDebug && console.log("onClickGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class Ye extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ye()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n36").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n35").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				(this._btnFreeTry = this._content.getChild("n50").asButton),
    				this._btnFreeTry.onClick(this, this.onClickFreeTry),
    				(this._carIcon = this._content.getChild("n22").asLoader),
    				(this._carName = this._content.getChild("n25").asLoader),
    				(this._progressBar1 = this._content.getChild("n27").asProgress),
    				(this._progressBar2 = this._content.getChild("n33").asProgress),
    				(this._progressBar3 = this._content.getChild("n30").asProgress),
    				(this._progressBar4 = this._content.getChild("n47").asProgress),
    				(this._progressBar5 = this._content.getChild("n48").asProgress),
    				(this._progressBar6 = this._content.getChild("n49").asProgress),
    				(this._progressBar1.max = 80),
    				(this._progressBar2.max = 10),
    				(this._progressBar3.max = 10),
    				(this._progressBar4.max = 10),
    				(this._progressBar5.max = 10),
    				(this._progressBar6.max = 10),
    				this.initUI();

    			//原生
    			console.log("限时体验");
    			Advertisement.insertAdverV3();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				null == L.instance.playerInfo.freeTryTimes &&
    				null == L.instance.playerInfo.freeTryTimes &&
    				((L.instance.playerInfo.freeTryTimes = 1), L.instance.savePlayerInfoToLocalCache()),
    				L.instance.playerInfo.freeTryTimes > 0
    					? ((this._btnADGet.visible = !1),
    						(this._btnFreeTry.visible = !0),
    						(this._btnClose.visible = !1),
    						(L.instance.playerInfo.freeTryTimes -= 1),
    						L.instance.savePlayerInfoToLocalCache())
    					: ((this._btnADGet.visible = !0), (this._btnFreeTry.visible = !1), (this._btnClose.visible = !0)),
    				(this._carIcon.url = V.instance.getCarIcon(L.instance.carInfo.lastLimitTimeCar)),
    				(this._carName.url = V.instance.getCarName(L.instance.carInfo.lastLimitTimeCar)),
    				(this._progressBar1.value = C.Config_Property_Map.get(L.instance.carInfo.lastLimitTimeCar).car_speed),
    				(this._progressBar2.value = 10 - C.Config_Property_Map.get(L.instance.carInfo.lastLimitTimeCar).car_quicken),
    				(this._progressBar3.value = 10 - C.Config_Property_Map.get(L.instance.carInfo.lastLimitTimeCar).car_turn),
    				(this._progressBar4.value = 10 - C.Config_Property_Map.get(L.instance.carInfo.lastLimitTimeCar).car_skid),
    				(this._progressBar5.value = C.Config_Property_Map.get(L.instance.carInfo.lastLimitTimeCar).car_control),
    				(this._progressBar6.value = C.Config_Property_Map.get(L.instance.carInfo.lastLimitTimeCar).car_power),
    				this.playMenuOpenAni(this.onShown.bind(this));
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("游戏内工程车通用试用弹出次数", 3073, !1),
    				D.SendEvent("游戏内工程车通用试用弹出人数", 3074, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_LIMIT_USE), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					Laya.stage.event("resetPlayer"),
    						"okk" != Laya.LocalStorage.getItem("newPlayerFirstSy") &&
    						(Laya.LocalStorage.setItem("newPlayerFirstSy", "okk"),
    							(f.instance.curTryAdsXsCarType = f.instance.curTryCarType));
    			}
    		}
    		onClickFreeTry() {
    			this.isDebug && console.log("onClickFreeTry"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickADGet() {
    			this.isDebug && console.log("onClickADGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			D.SendEvent("游戏内工程车通用试用拉取成功数", 3075, !1),
    				A.instance.isFristDotForLimitUse_1 ||
    				((A.instance.isFristDotForLimitUse_1 = !0), D.SendEvent("游戏内工程车通用试用首次拉取成功数", 3077, !1));
    		}
    		adSuccess() {
    			this.isDebug && console.log("adSuccess"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				v.instance.updateCommonAchieve(1),
    				D.SendEvent("游戏内工程车通用试用完播数", 3076, !1),
    				A.instance.isFristDotForLimitUse_2 ||
    				((A.instance.isFristDotForLimitUse_2 = !0), D.SendEvent("游戏内工程车通用试用首次拉取完播数", 3078, !1)),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(f.instance.curTryCarType = 0),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Oe extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curMsg = ""), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Oe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnOK = this._content.getChild("n3").asButton),
    				this.btnOK.onClick(this, this.onClickOK),
    				(this.btnCancel = this._content.getChild("n4").asButton),
    				this.btnCancel.onClick(this, this.onClickCancel),
    				(this.msg = this._content.getChild("n5").asLabel),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(this.curMsg = mt.instance.curDialogMsg),
    				(this.msg.text = this.curMsg),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("返回主页");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((this._view.removeFromParent(), e)) {
    				case 0:
    					switch (mt.instance.curDialogType) {
    						case 3:
    							Ie.instance.newStageIndex = 0;
    							break;

    						case 5:
    							Laya.stage.event("restoreHigh");
    					}
    					mt.instance.openNeedBackMenu();
    					break;

    				case 1:
    					switch (mt.instance.curDialogType) {
    						case 1:
    							L.instance.playerInfo.isQuestionTip || (f.instance.isNeedShowQuestion = !0),
    								Laya.stage.event("backToHall");
    							break;

    						case 3:
    							Ie.instance.exitStageProcess(),
    								(Ie.instance.curStageIndex = Ie.instance.newStageIndex),
    								Laya.stage.event("goToNewStage");
    							break;

    						case 5:
    							Laya.stage.event("reStartGame");
    							break;

    						case 14:
    							Q.instance.stopTeachAnoExitTeach();
    					}
    			}
    		}
    		onClickOK() {
    			this.isDebug && console.log("onClickOK"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickCancel() {
    			this.isDebug && console.log("onClickCancel"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class He extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this._itemArr = []), (this.curCloseIndex = 0), (this.curGetIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new He()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			this.isDebug && console.log("loadUI"),
    				(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnClose = this._content.getChild("n2").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				this._itemArr.length > 0 && this._itemArr.splice(0, this._itemArr.length),
    				(this._list = this._content.getChild("n4").asList),
    				this._list.setVirtual(),
    				(this._list.itemRenderer = Laya.Handler.create(this, this.renderListItem, null, !1)),
    				(this._list.numItems = C.Config_Achievement_Map.size),
    				Laya.stage.on("updateAchieveUI", this, this.upDateUI),
    				Laya.stage.on("ClickGet", this, this.onClickGet),
    				Laya.stage.on("ClickAdGet", this, this.onClickAdGet),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("成就");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("成就奖励弹出次数", 3049, !1),
    				D.SendEvent("成就奖励弹出人数", 3050, !0),
    				this.updateList();
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_ACHIEVE), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					v.instance.updateCarAchieveForGetReward(this.curGetIndex),
    						(L.instance.playerInfo.gold += this._itemArr[e].getReward()),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = this._itemArr[e].getReward()),
    						(mt.instance.needBackMenu = l.UI_STATE.UI_STATE_ACHIEVE),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    					break;

    				case 2:
    					v.instance.updateCarAchieveForGetReward(this.curGetIndex),
    						(L.instance.playerInfo.gold += 2 * this._itemArr[e].getReward()),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = 2 * this._itemArr[e].getReward()),
    						(mt.instance.needBackMenu = l.UI_STATE.UI_STATE_ACHIEVE),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    		}
    		upDateUI() {
    			this.updateList();
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		renderListItem(e, t) {
    			this.isDebug && console.log("index == " + e);
    			var s = t;
    			s.setDataIndex(e), s.setModeTitle(C.Config_Achievement_Map.get(e + 1).achievement_mode);
    			let i = C.Config_Achievement_Map.get(e + 1).achievement_introduce.split("|");
    			s.setTaskContent1(i[0]), s.setCarName(i[1]), s.setTaskContent2(i[2]);
    			let a = C.Config_Achievement_Map.get(e + 1).achievement_num.split("|"),
    				n = L.instance.achieveInfo.achieveDatas[e].curTimes,
    				o = parseInt(a[L.instance.achieveInfo.achieveDatas[e].level - 1]);
    			s.setTiems(n, o);
    			let r = C.Config_Achievement_Map.get(e + 1).achievement_reward;
    			console.log("taskRewardsStr == " + r);
    			let c = r.split("|");
    			console.log("taskRewardsInfo.length == " + c.length);
    			let h = c[L.instance.achieveInfo.achieveDatas[e].level - 1];
    			console.log("curRewardInfo == " + h);
    			let l = h.split(";");
    			console.log("temp == " + l);
    			let g = parseInt(l[1]);
    			console.log("curReward == " + g), s.setReward(g);
    			let u = L.instance.achieveInfo.achieveDatas[e].state;
    			s.showByState(u), this._itemArr.push(s);
    		}
    		updateList() {
    			if (
    				(console.log("updateList"),
    					console.log("this._itemArr.length == " + this._itemArr.length),
    					this._itemArr.length > 0)
    			)
    				for (let e = 0; e < this._itemArr.length; e++) {
    					let t = this._itemArr[e];
    					console.log("item.getDataIndex() =(" + e + ")= " + t.getDataIndex());
    					let s = C.Config_Achievement_Map.get(t.getDataIndex() + 1).achievement_num.split("|"),
    						i = L.instance.achieveInfo.achieveDatas[t.getDataIndex()].curTimes,
    						a = parseInt(s[L.instance.achieveInfo.achieveDatas[t.getDataIndex()].level - 1]);
    					t.setTiems(i, a);
    					let n = C.Config_Achievement_Map.get(t.getDataIndex() + 1)
    						.achievement_reward.split("|")
    					[L.instance.achieveInfo.achieveDatas[t.getDataIndex()].level - 1].split(";"),
    						o = parseInt(n[1]);
    					t.setReward(o);
    					let r = L.instance.achieveInfo.achieveDatas[t.getDataIndex()].state;
    					t.showByState(r);
    				}
    		}
    		onClickGet(e) {
    			this.isDebug &&
    				(console.log("onClickGet == index = " + e),
    					console.log("this._itemArr[index].getReward() == " + this._itemArr[e].getReward())),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(this.curGetIndex = e),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickAdGet(e) {
    			this.isDebug && console.log("onClickAdGet == index = " + e),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_video("ads002", 1),
    				(this.curGetIndex = e),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			B.ShuFenReport_video("ads002", 2),
    				D.SendEvent("成就奖励拉取成功数", 3051, !1),
    				A.instance.isFristDotForAchieveReward_1 ||
    				((A.instance.isFristDotForAchieveReward_1 = !0), D.SendEvent("成就奖励首次拉取成功数", 3053, !1));
    		}
    		adSuccess() {
    			this.isDebug &&
    				(console.log("adSuccess"),
    					console.log(
    						"PlayerData.instance.carInfo.carDatas[this.curGetIndex].adUnlock =解锁次数= " +
    						L.instance.carInfo.carDatas[this.curGetIndex].adUnlock
    					),
    					console.log(
    						"JsonLoader.Config_Property_Map.get(this.curGetIndex + 1).unlock_price == " +
    						C.Config_Property_Map.get(this.curGetIndex + 1).unlock_price
    					)),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				B.ShuFenReport_video("ads002", 3),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				v.instance.updateCommonAchieve(1),
    				D.SendEvent("成就奖励完播数", 3052, !1),
    				A.instance.isFristDotForAchieveReward_2 ||
    				((A.instance.isFristDotForAchieveReward_2 = !0), D.SendEvent("成就奖励首次拉取完播数", 3054, !1)),
    				(this.curCloseIndex = 2),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Ve extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ve()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("btnClose").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnCHeat1 = this._content.getChild("btnCheat1").asButton),
    				this._btnCHeat1.onClick(this, this.onClickCheat1),
    				(this._btnCHeat2 = this._content.getChild("btnCheat2").asButton),
    				this._btnCHeat2.onClick(this, this.onClickCheat2),
    				(this._btnCHeat3 = this._content.getChild("btnCheat3").asButton),
    				this._btnCHeat3.onClick(this, this.onClickCheat3),
    				(this._btnCHeat4 = this._content.getChild("btnCheat4").asButton),
    				this._btnCHeat4.onClick(this, this.onClickCheat4),
    				(this._btnCHeat5 = this._content.getChild("btnCheat5").asButton),
    				this._btnCHeat5.onClick(this, this.onClickCheat5),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI Ve");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_CHEAT), this._view.removeFromParent(), e)) {
    				case 0:
    					break;

    				case 1:
    					(L.instance.playerInfo.gold += C.Config_Glod_Map.get(1).gold_video),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = C.Config_Glod_Map.get(1).gold_video),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    		}
    		onClickCheat1() {
    			this.isDebug && console.log("onClickCheat1"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(L.instance.playerInfo.gold += 1e5),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("updateWallet");
    		}
    		onClickCheat2() {
    			this.isDebug && console.log("onClickCheat2"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			for (let e = 0; e < L.instance.carInfo.carDatas.length; e++)
    				0 == L.instance.carInfo.carDatas[e].state && (L.instance.carInfo.carDatas[e].state = 1);
    			L.instance.saveCarInfoToLocalCache();
    		}
    		onClickCheat3() {
    			this.isDebug && console.log("onClickCheat3"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			for (let e = 0; e < L.instance.playerInfo.stageDatas.length; e++)
    				0 == L.instance.playerInfo.stageDatas[e].stageState && (L.instance.playerInfo.stageDatas[e].stageState = 1);
    			L.instance.savePlayerInfoToLocalCache();
    		}
    		onClickCheat4() {
    			this.isDebug && console.log("onClickCheat4"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(Gt.instance.testAdTime = 1);
    		}
    		onClickCheat5() {
    			this.isDebug && console.log("onClickCheat5"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				L.instance.playerInfo.energy,
    				C.Config_Energy_Map.get(1).energy_storage,
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("updateWallet");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class Ke extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this._uiManager = null);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ke()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e, t) {
    			(this._view = e),
    				(this._uiManager = t),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnSelectA = this._content.getChild("n6").asButton),
    				this._btnSelectA.onClick(this, this.onClickSelectA),
    				(this._btnSelectB = this._content.getChild("n7").asButton),
    				this._btnSelectB.onClick(this, this.onClickSelectB),
    				(this._btnSelectC = this._content.getChild("n8").asButton),
    				this._btnSelectC.onClick(this, this.onClickSelectC),
    				(this._btnSelectD = this._content.getChild("n9").asButton),
    				this._btnSelectD.onClick(this, this.onClickSelectD),
    				(this._btnOK = this._content.getChild("n13").asButton),
    				this._btnOK.onClick(this, this.onClickOK),
    				(this._btnOK.visible = !1),
    				(this._iconSelectA = this._content.getChild("n5").asImage),
    				(this._iconSelectB = this._content.getChild("n10").asImage),
    				(this._iconSelectC = this._content.getChild("n11").asImage),
    				(this._iconSelectD = this._content.getChild("n12").asImage),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.showSelect(0);

    			console.log("UI Ke");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			this.curCloseIndex;
    			this._uiManager.popMenu(l.UI_STATE.UI_STATE_QUESTION), this._view.removeFromParent();
    		}
    		showSelect(e) {
    			switch (
    			((this._iconSelectA.visible = !1),
    				(this._iconSelectB.visible = !1),
    				(this._iconSelectC.visible = !1),
    				(this._iconSelectD.visible = !1),
    				e)
    			) {
    				case 1:
    					this._iconSelectA.visible = !0;
    					break;

    				case 2:
    					this._iconSelectB.visible = !0;
    					break;

    				case 3:
    					this._iconSelectC.visible = !0;
    					break;

    				case 4:
    					this._iconSelectD.visible = !0;
    			}
    		}
    		onClickSelectA() {
    			this.isDebug && console.log("onClickSelectA"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				this.showSelect(1),
    				D.SendEvent("反馈：选择：A.机械臂太难操作", 4005, !1),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickSelectB() {
    			this.isDebug && console.log("onClickSelectB"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				this.showSelect(2),
    				D.SendEvent("反馈：选择：B.工程车按钮太难控制", 4006, !1),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickSelectC() {
    			this.isDebug && console.log("onClickSelectC"),
    				this.showSelect(3),
    				D.SendEvent("反馈：选择：C.任务枯燥", 4007, !1),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickSelectD() {
    			this.isDebug && console.log("onClickSelectD"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				this.showSelect(4),
    				D.SendEvent("反馈：选择：D.其他原因", 4008, !1),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickOK() {
    			this.isDebug && console.log("onClickOK"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class We extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curGetIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new We()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			this.isDebug && console.log("loadUI"),
    				(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnClose = this._content.getChild("btnBack").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this._list = this._content.getChild("list").asList),
    				this._list.setVirtualAndLoop(),
    				(this._content.visible = !1),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI We");
    		}
    		waitGetDataComplete() {
    			Tt.instance.isGetMoreGameComplete &&
    				(Laya.timer.clear(this, this.waitGetDataComplete),
    					this.isDebug && console.log("adManage.instance.moreGameDatas.length == " + Tt.instance.moreGameDatas.length),
    					(this._list.itemRenderer = Laya.Handler.create(this, this.renderListItem, null, !1)),
    					Tt.instance.moreGameDatas.length % 2 == 0
    						? (this._list.numItems = Tt.instance.moreGameDatas.length / 2)
    						: (this._list.numItems = Tt.instance.moreGameDatas.length));
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"), Laya.timer.frameLoop(2, this, this.GameListSlide);
    		}
    		GameListSlide() {
    			this._list.scrollPane.scrollRight(0.005, !1);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			this.curCloseIndex;
    			mt.instance.popMenu(l.UI_STATE.UI_STATE_MOREGAME),
    				this._view.removeFromParent(),
    				Laya.timer.clear(this, this.GameListSlide);
    		}
    		upDateUI() { }
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				Gt.instance.ClearCustomAd(!0),
    				Gt.instance.CreateCustomAd(1),
    				Gt.instance.CreateCustomAd(2),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		renderListItem(e, t) {
    			this.isDebug &&
    				(console.log("renderList1Item"),
    					console.log("index == " + e),
    					console.log("adManage.instance.moreGameDatas.length == " + Tt.instance.moreGameDatas.length));
    			let s = 0,
    				i = 0;
    			Tt.instance.moreGameDatas.length % 2 == 0
    				? ((s = 2 * e), (i = 2 * e + 1))
    				: ((s = 2 * e) >= Tt.instance.moreGameDatas.length && (s -= Tt.instance.moreGameDatas.length),
    					(i = 2 * e + 1) >= Tt.instance.moreGameDatas.length && (i -= Tt.instance.moreGameDatas.length));
    			var a = t;
    			a.setDataIndex1(s),
    				a.setDataIndex2(i),
    				a.setGameIcon1(Tt.instance.moreGameDatas[s].iconUrl),
    				a.setGameName1(Tt.instance.moreGameDatas[s].txt),
    				a.setMark1(Tt.instance.moreGameDatas[s].mark),
    				a.setGameIcon2(Tt.instance.moreGameDatas[i].iconUrl),
    				a.setGameName2(Tt.instance.moreGameDatas[i].txt),
    				a.setMark2(Tt.instance.moreGameDatas[i].mark);
    		}
    		onClickItem(e) {
    			if (
    				(this.isDebug && console.log("onClickItem == dataIndex == " + e),
    					L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    					Tt.instance.moreGameDatas.length > 0)
    			) {
    				let t = Tt.instance.moreGameDatas[e];
    				Tt.instance.openMoreGame(t.jumpKey, t.mid);
    			}
    		}
    	}
    	class je extends h {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.curTime = 0),
    				(this.curCloseIndex = 0),
    				(this.curXs_carDatasID = 3),
    				(this.curXs_carCPMID = 4);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new je()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n7").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnGet = this._content.getChild("n6").asButton),
    				this._btnGet.onClick(this, this.onClickGet),
    				(this._progressBar = this._content.getChild("n3").asProgress),
    				(this._time = this._content.getChild("n4").asLabel),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(this._progressBar.max = C.Config_Property_Map.get(this.curXs_carCPMID).unlock_price),
    				(this._progressBar.value = L.instance.carInfo.carDatas[this.curXs_carDatasID].adUnlock),
    				(this.curTime = f.instance.curLimitGetTime),
    				this.setTime(),
    				Laya.timer.loop(1e3, this, this.timeSchedule),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("礼包试用");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("限时1H试用粉小猪礼包弹出次数", 3061, !1),
    				D.SendEvent("限时1H试用粉小猪礼包弹出人数", 3062, !0);
    		}
    		onHide() {
    			this.isDebug &&
    				(console.log("onHide"),
    					console.log("uiManager.instance.curLimitGetOpenPos == " + mt.instance.curLimitGetOpenPos));
    			let e = this.curCloseIndex,
    				t = mt.instance.curLimitGetOpenPos;
    			switch (
    			(Laya.timer.clear(this, this.timeSchedule),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_LIMITGET),
    				this._view.removeFromParent(),
    				console.log("index == " + e),
    				console.log("openPos == " + t),
    				e)
    			) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					switch (t) {
    						case 0:
    						case 1:
    						case 3:
    							mt.instance.showDialogMenu(9, "恭喜您获得试用资格，请前往游戏中体验吧！");
    							break;

    						case 2:
    							Laya.stage.event("resetPlayer");
    					}
    					break;

    				case 2:
    					console.log(""),
    						mt.uiStates[0] == l.UI_STATE.UI_STATE_HALL &&
    						(Laya.stage.event("updateGarageUI"), Laya.stage.event("upDateUI", 0)),
    						mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME &&
    						($.instance.stopLimitGetTime(), 2 == t && Laya.stage.event("resetPlayer")),
    						mt.instance.showGetRewardByList();
    			}
    		}
    		timeSchedule(e) {
    			(this.curTime -= 1),
    				this.curTime <= 0
    					? ((this.curTime = 0),
    						this.setTime(),
    						(L.instance.playerInfo.limitGetShowed = !0),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("upDateUI", 0))
    					: this.setTime();
    		}
    		setTime() {
    			let e = Math.floor(this.curTime / 60),
    				t = Math.floor(this.curTime % 60);
    			this.isDebug && (console.log("minute == " + e), console.log("second == " + t));
    			let s = "";
    			(s += e > 9 ? "" + e : "0" + e), (s += ":"), (s += t > 9 ? "" + t : "0" + t), (this._time.text = s);
    		}
    		onClickGet() {
    			this.isDebug && console.log("onClickGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				B.ShuFenReport_video("ads011", 1),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			B.ShuFenReport_video("ads011", 2),
    				D.SendEvent("限时1H试用粉小猪礼包拉取成功数", 3063, !1),
    				A.instance.isFristDotForLimitGet_1 ||
    				((A.instance.isFristDotForLimitGet_1 = !0), D.SendEvent("限时1H试用粉小猪礼包首次拉取成功数", 3065, !1));
    		}
    		adSuccess() {
    			if (
    				(2 == l.game_channel && A.instance.resumeBgm(),
    					this.isDebug && console.log("adSuccess"),
    					B.ShuFenReport_video("ads011", 3),
    					D.SendEvent("广告总曝光次数", 3e3, !1),
    					D.SendEvent("限时1H试用粉小猪礼包完播数", 3064, !1),
    					A.instance.isFristDotForLimitGet_2 ||
    					((A.instance.isFristDotForLimitGet_2 = !0), D.SendEvent("限时1H试用粉小猪礼包首次拉取完播数", 3066, !1)),
    					(L.instance.carInfo.carDatas[this.curXs_carDatasID].adUnlock += 1),
    					L.instance.carInfo.carDatas[this.curXs_carDatasID].adUnlock >=
    					C.Config_Property_Map.get(this.curXs_carCPMID).unlock_price)
    			) {
    				(L.instance.carInfo.carDatas[this.curXs_carDatasID].adUnlock = C.Config_Property_Map.get(
    					this.curXs_carCPMID
    				).unlock_price),
    					(L.instance.carInfo.carDatas[this.curXs_carDatasID].state = 1),
    					(L.instance.carInfo.curUseCar = 4),
    					L.instance.saveCarInfoToLocalCache(),
    					v.instance.updateCommonAchieve(2),
    					(L.instance.playerInfo.advStageDatas[1].isNew = 1),
    					(L.instance.playerInfo.advStageDatas[2].isNew = 1),
    					(L.instance.playerInfo.advStageDatas[3].isNew = 1),
    					L.instance.savePlayerInfoToLocalCache(),
    					(L.instance.playerInfo.limitGetShowed = !0),
    					L.instance.savePlayerInfoToLocalCache();
    				let e = new Ae();
    				e.initData(2, 0, 4),
    					mt.instance.getRewardList.push(e),
    					(f.instance.curTryCarType = this.curXs_carCPMID),
    					(f.instance.isNeedShowLimitGetInSuccess = !1),
    					(this.curCloseIndex = 2),
    					this.playMenuCloseAni(this.onHide.bind(this));
    			} else
    				(f.instance.curTryCarType = this.curXs_carCPMID),
    					mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME && (f.instance.isNeedShowLimitGetInSuccess = !0),
    					L.instance.saveCarInfoToLocalCache(),
    					(this.curCloseIndex = 1),
    					this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Xe extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curCarType = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Xe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e, t) {
    			(this.curCarType = t),
    				(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n5").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n4").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				(this._carIcon = this._content.getChild("n9").asLoader),
    				(this._carName = this._content.getChild("n25").asLoader),
    				(this._reward = this._content.getChild("n12").asLabel),
    				(this._times = this._content.getChild("n8").asLabel),
    				(this._progressBar = this._content.getChild("n6").asProgress),
    				this.initUI(t);
    		}
    		initUI(e) {
    			this.isDebug && console.log("initUI"),
    				(this.curCarType = e),
    				(this._carIcon.url = V.instance.getCarIcon(this.curCarType)),
    				(this._carName.url = V.instance.getCarName(this.curCarType)),
    				(this._times.text = "" + C.Config_Property_Map.get(this.curCarType).unlock_price),
    				(this._progressBar.max = C.Config_Property_Map.get(this.curCarType).unlock_price),
    				(this._progressBar.value = L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("试用");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			switch ((this.isDebug && console.log("onShown"), this.curCarType)) {
    				case 6:
    					D.SendEvent("商城内特战队工程车试用弹出次数", 3079, !1),
    						D.SendEvent("商城内特战队工程车试用弹出人数", 3080, !0);
    					break;

    				case 8:
    					D.SendEvent("商城内机甲王工程车试用弹出次数", 3085, !1),
    						D.SendEvent("商城内机甲王工程车试用弹出人数", 3086, !0);
    			}
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex,
    				t = mt.instance.curLimitTryOpenPos;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_LIMITTRY), this._view.removeFromParent(), e)) {
    				case 0:
    					switch (l.game_channel) {
    						case 1:
    							f.instance.isNewPlayer ||
    								Gt.instance.ShowPage(0, this.onPageSuccess.bind(this), this.onPageFail.bind(this));
    					}
    					break;

    				case 1:
    					if (((mt.instance.needShowTip = 1), mt.instance.showGetRewardByList(), 1 == t)) {
    						switch (((mt.instance.needShowTip = 0), f.instance.curTryCarType)) {
    							case 6:
    								$.instance.showLimitTry2(!0);
    								break;

    							case 8:
    								$.instance.showLimitTry1(!0);
    						}
    						Laya.stage.event("resetPlayer");
    					} else 0 == t && Laya.stage.event("updateGarageUI");
    					break;

    				case 2:
    					if (
    						(Laya.stage.event("updateGarageUI"),
    							(mt.instance.needShowTip = 1),
    							mt.instance.showGetRewardByList(),
    							1 == t)
    					) {
    						switch (((mt.instance.needShowTip = 0), f.instance.curTryCarType)) {
    							case 6:
    								$.instance.showLimitTry2(!0);
    								break;

    							case 8:
    								$.instance.showLimitTry1(!0);
    						}
    						Laya.stage.event("resetPlayer");
    					}
    			}
    		}
    		onClickADGet() {
    			switch (
    			(this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				this.curCarType)
    			) {
    				case 6:
    					B.ShuFenReport_video("ads012", 1);
    					break;

    				case 7:
    					B.ShuFenReport_video("ads013", 1);
    					break;

    				case 8:
    					B.ShuFenReport_video("ads014", 1);
    			}
    			Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			switch (this.curCarType) {
    				case 6:
    					B.ShuFenReport_video("ads012", 2),
    						D.SendEvent("商城内特战队工程车试用拉取成功数", 3081, !1),
    						A.instance.isFristDotForLimitTry1_1 ||
    						((A.instance.isFristDotForLimitTry1_1 = !0),
    							D.SendEvent("商城内特战队工程车试用首次拉取成功数", 3083, !1));
    					break;

    				case 7:
    					B.ShuFenReport_video("ads013", 2);
    					break;

    				case 8:
    					B.ShuFenReport_video("ads014", 2),
    						D.SendEvent("商城内机甲王工程车试用拉取成功数", 3087, !1),
    						A.instance.isFristDotForLimitTry2_1 ||
    						((A.instance.isFristDotForLimitTry2_1 = !0),
    							D.SendEvent("商城内机甲王工程车试用首次拉取成功数", 3089, !1));
    			}
    		}
    		adSuccess(e = !0) {
    			switch (
    			(2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				v.instance.updateCommonAchieve(1),
    				mt.instance.getRewardList.length > 0 && mt.instance.getRewardList.splice(0, mt.instance.getRewardList.length),
    				this.curCarType)
    			) {
    				case 6:
    					{
    						B.ShuFenReport_video("ads012", 3),
    							D.SendEvent("商城内特战队工程车试用完播数", 3082, !1),
    							A.instance.isFristDotForLimitTry1_2 ||
    							((A.instance.isFristDotForLimitTry1_2 = !0),
    								D.SendEvent("商城内特战队工程车试用首次拉取完播数", 3084, !1)),
    							(L.instance.playerInfo.gold += 100),
    							L.instance.savePlayerInfoToLocalCache();
    						let e = new Ae();
    						if (
    							(e.initData(0, 100, 0),
    								mt.instance.getRewardList.push(e),
    								Laya.stage.event("updateWallet"),
    								(L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock += 1),
    								L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock >=
    								C.Config_Property_Map.get(this.curCarType).unlock_price)
    						) {
    							(L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock = C.Config_Property_Map.get(
    								this.curCarType
    							).unlock_price),
    								(L.instance.carInfo.carDatas[this.curCarType - 1].state = 1),
    								(L.instance.carInfo.curUseCar = this.curCarType),
    								L.instance.saveCarInfoToLocalCache(),
    								v.instance.updateCommonAchieve(2);
    							let e = new Ae();
    							e.initData(2, 0, 6),
    								mt.instance.getRewardList.push(e),
    								(f.instance.curTryCarType = 6),
    								(L.instance.playerInfo.advStageDatas[4].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[5].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[6].isNew = 1),
    								L.instance.savePlayerInfoToLocalCache(),
    								(this.curCloseIndex = 2),
    								this.playMenuCloseAni(this.onHide.bind(this));
    						} else
    							(f.instance.curTryCarType = 6),
    								L.instance.saveCarInfoToLocalCache(),
    								(this.curCloseIndex = 1),
    								this.playMenuCloseAni(this.onHide.bind(this));
    					}
    					break;

    				case 7:
    					{
    						B.ShuFenReport_video("ads013", 3),
    							(L.instance.playerInfo.gold += 100),
    							L.instance.savePlayerInfoToLocalCache();
    						let e = new Ae();
    						if (
    							(e.initData(0, 100, 0),
    								mt.instance.getRewardList.push(e),
    								Laya.stage.event("updateWallet"),
    								(L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock += 1),
    								L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock >=
    								C.Config_Property_Map.get(this.curCarType).unlock_price)
    						) {
    							(L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock = C.Config_Property_Map.get(
    								this.curCarType
    							).unlock_price),
    								(L.instance.carInfo.carDatas[this.curCarType - 1].state = 1),
    								(L.instance.carInfo.curUseCar = this.curCarType),
    								L.instance.saveCarInfoToLocalCache(),
    								v.instance.updateCommonAchieve(2);
    							let e = new Ae();
    							e.initData(2, 0, 7),
    								mt.instance.getRewardList.push(e),
    								(f.instance.curTryCarType = 7),
    								(L.instance.playerInfo.advStageDatas[7].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[8].isNew = 1),
    								(L.instance.playerInfo.advStageDatas[9].isNew = 1),
    								L.instance.savePlayerInfoToLocalCache(),
    								(this.curCloseIndex = 2),
    								this.playMenuCloseAni(this.onHide.bind(this));
    						} else
    							(f.instance.curTryCarType = 7),
    								L.instance.saveCarInfoToLocalCache(),
    								(this.curCloseIndex = 1),
    								this.playMenuCloseAni(this.onHide.bind(this));
    					}
    					break;

    				case 8: {
    					B.ShuFenReport_video("ads014", 3),
    						D.SendEvent("商城内机甲王工程车试用完播数", 3088, !1),
    						A.instance.isFristDotForLimitTry2_2 ||
    						((A.instance.isFristDotForLimitTry2_2 = !0),
    							D.SendEvent("商城内机甲王工程车试用首次拉取完播数", 3090, !1)),
    						(L.instance.playerInfo.gold += 100),
    						L.instance.savePlayerInfoToLocalCache();
    					let e = new Ae();
    					if (
    						(e.initData(0, 100, 0),
    							mt.instance.getRewardList.push(e),
    							Laya.stage.event("updateWallet"),
    							(L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock += 1),
    							L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock >=
    							C.Config_Property_Map.get(this.curCarType).unlock_price)
    					) {
    						(L.instance.carInfo.carDatas[this.curCarType - 1].adUnlock = C.Config_Property_Map.get(
    							this.curCarType
    						).unlock_price),
    							(L.instance.carInfo.carDatas[this.curCarType - 1].state = 1),
    							(L.instance.carInfo.curUseCar = this.curCarType),
    							L.instance.saveCarInfoToLocalCache(),
    							v.instance.updateCommonAchieve(2);
    						let e = new Ae();
    						e.initData(2, 0, 8),
    							mt.instance.getRewardList.push(e),
    							(L.instance.playerInfo.advStageDatas[10].isNew = 1),
    							(L.instance.playerInfo.advStageDatas[11].isNew = 1),
    							(L.instance.playerInfo.advStageDatas[12].isNew = 1),
    							L.instance.savePlayerInfoToLocalCache(),
    							(f.instance.curTryCarType = 8),
    							(this.curCloseIndex = 2),
    							this.playMenuCloseAni(this.onHide.bind(this));
    					} else
    						(f.instance.curTryCarType = 8),
    							L.instance.saveCarInfoToLocalCache(),
    							(this.curCloseIndex = 1),
    							this.playMenuCloseAni(this.onHide.bind(this));
    				}
    			}
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Je extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curShareReward = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Je()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n10").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnShare = this._content.getChild("n9").asButton),
    				this._btnShare.onClick(this, this.onClickShare),
    				(this._msg1 = this._content.getChild("n12").asGroup),
    				(this._msg2 = this._content.getChild("n20").asGroup),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(null != L.instance.playerInfo.sharedGameInCurDay && null != L.instance.playerInfo.sharedGameInCurDay) ||
    				((L.instance.playerInfo.sharedGameInCurDay = !1), L.instance.savePlayerInfoToLocalCache()),
    				L.instance.playerInfo.sharedGameInCurDay
    					? ((this._msg1.visible = !1), (this._msg2.visible = !0))
    					: ((this._msg1.visible = !0), (this._msg2.visible = !1)),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI Je");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_SHAREGAME), this._view.removeFromParent(), e)) {
    				case 0:
    					break;

    				case 1:
    					(L.instance.playerInfo.gold += this.curShareReward),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = this.curShareReward),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    					break;

    				case 2:
    					mt.instance.showDialogMenu(10, "分享成功！");
    					break;

    				case 3:
    					mt.instance.showDialogMenu(11, "分享失败！");
    			}
    		}
    		onClickShare() {
    			this.isDebug && console.log("onClickShare"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ShareGame(this.onShareSuccess.bind(this), this.onShareFail.bind(this)),
    				Gt.instance.onShow(this.shareComplete.bind(this)),
    				(f.instance.shareStartTime = new Date().getTime()),
    				(f.instance.isStartShareGame = !0);
    		}
    		onShareSuccess() {
    			this.isDebug && console.log("onShareSuccess");
    		}
    		onShareFail() {
    			this.isDebug && console.log("onShareFail");
    		}
    		shareComplete() {
    			if ((this.isDebug && console.log("success shareComplete"), f.instance.isStartShareGame)) {
    				f.instance.isStartShareGame = !1;
    				let e = new Date().getTime();
    				this.isDebug &&
    					(console.log("curTime == " + e),
    						console.log("gamelogic.instance.shareStartTime == " + f.instance.shareStartTime));
    				let t = e - f.instance.shareStartTime;
    				this.isDebug && console.log("offTime == " + t),
    					t / 1e3 > 3
    						? (this.isDebug && console.log("分享成功 获得分享奖励"),
    							L.instance.playerInfo.sharedGameInCurDay
    								? ((this.curCloseIndex = 2), this.playMenuCloseAni(this.onHide.bind(this)))
    								: ((L.instance.playerInfo.sharedGameInCurDay = !0),
    									L.instance.savePlayerInfoToLocalCache(),
    									(this.curShareReward = 500),
    									(this.curCloseIndex = 1),
    									this.playMenuCloseAni(this.onHide.bind(this))))
    						: (this.isDebug && console.log("分享失败"),
    							(this.curCloseIndex = 3),
    							this.playMenuCloseAni(this.onHide.bind(this)));
    			}
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class ze extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ze()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n11").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI ze");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			this.curCloseIndex;
    			mt.instance.popMenu(l.UI_STATE.UI_STATE_COLLECTION), this._view.removeFromParent();
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class Ze extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curReward = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Ze()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n3").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n2").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				(this._coinValue = this._content.getChild("n8").asLabel),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(this.curReward = 3e3),
    				this.setCoinValue(3e3),
    				this.playMenuOpenAni(this.onShown.bind(this)),
    				Laya.stage.on("hideBox_ClickClose", this, this.onClickClose);

    			console.log("UI Ze");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("保险箱3000金币弹出次数", 3055, !1),
    				D.SendEvent("保险箱3000金币弹出人数", 3056, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch (
    			(mt.instance.popMenu(l.UI_STATE.UI_STATE_HIDEBOX),
    				this._view.removeFromParent(),
    				Laya.stage.off("hideBox_ClickClose", this, this.onClickClose),
    				e)
    			) {
    				case 0:
    					$.instance.startCheckHideBox();
    					break;

    				case 1:
    					(L.instance.playerInfo.gold += this.curReward),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = this.curReward),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward(),
    						$.instance.startCheckHideBox();
    			}
    		}
    		setCoinValue(e) {
    			this._coinValue.text = "" + e;
    		}
    		onClickADGet() {
    			this.isDebug && console.log("onClickADGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			D.SendEvent("保险箱3000金币拉取成功数", 3057, !1),
    				A.instance.isFristDotForBox3000_1 ||
    				((A.instance.isFristDotForBox3000_1 = !0), D.SendEvent("保险箱3000金币首次拉取成功数", 3059, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("保险箱3000金币完播数", 3058, !1),
    				A.instance.isFristDotForBox3000_2 ||
    				((A.instance.isFristDotForBox3000_2 = !0), D.SendEvent("保险箱3000金币首次拉取完播数", 3060, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("HideBox onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class Qe extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Qe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n8").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n6").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				Laya.stage.on("quickWin_ClickClose", this, this.onClickClose),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI Qe");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"),
    				D.SendEvent("摸鱼界面弹出次数", 3014, !1),
    				D.SendEvent("摸鱼界面弹出人数", 3015, !0);
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch (
    			(mt.instance.popMenu(l.UI_STATE.UI_STATE_QUICKWIN),
    				this._view.removeFromParent(),
    				Laya.stage.off("quickWin_ClickClose", this, this.onClickClose),
    				e)
    			) {
    				case 0:
    					$.instance.startCheckQuickWin();
    					break;

    				case 1:
    					if (
    						((f.instance.curStageProcess = f.instance.getTaskNumber(Ie.instance.curStageIndex)),
    							$.instance.setTaskCurProgress(f.instance.curStageProcess),
    							Ie.instance.isChallengeLevel())
    					)
    						switch (Ie.instance.curStageIndex) {
    							case 14:
    								D.SendEvent("挑战任务1：泥浆装载。完成次数统计", 2017, !1);
    								break;

    							case 15:
    								D.SendEvent("挑战任务2：伐木作业。完成次数统计", 2018, !1);
    								break;

    							case 16:
    								D.SendEvent("挑战任务3：拆除墙壁。完成次数统计", 2019, !1);
    								break;

    							case 17:
    								D.SendEvent("挑战任务4：挖掘基础。完成次数统计", 2020, !1);
    								break;

    							case 18:
    								D.SendEvent("挑战任务5：管道挖掘。完成次数统计", 2021, !1);
    								break;

    							case 19:
    								D.SendEvent("挑战任务6：建设管道。完成次数统计", 2022, !1);
    								break;

    							case 20:
    								D.SendEvent("挑战任务7：河流挖掘。完成次数统计", 2023, !1);
    								break;

    							case 21:
    								D.SendEvent("挑战任务8：拆除房屋。完成次数统计", 2024, !1);
    								break;

    							case 22:
    								D.SendEvent("挑战任务9：河路疏通。完成次数统计", 2025, !1);
    								break;

    							case 23:
    								D.SendEvent("挑战任务10：叉车装载。完成次数统计", 2026, !1);
    								break;

    							case 24:
    								D.SendEvent("挑战任务11：打破道路。完成次数统计", 2027, !1);
    								break;

    							case 25:
    								D.SendEvent("挑战任务12：汽车救援。完成次数统计", 2028, !1);
    								break;

    							case 26:
    								D.SendEvent("挑战任务13：隧道施工。完成次数统计", 2029, !1);
    						}
    					else
    						switch (Ie.instance.curStageIndex) {
    							case 1:
    								D.SendEvent("普通任务1：泥浆装载。完成次数统计", 2004, !1);
    								break;

    							case 2:
    								D.SendEvent("普通任务2：伐木作业。完成次数统计", 2005, !1);
    								break;

    							case 3:
    								D.SendEvent("普通任务3：拆除墙壁。完成次数统计", 2006, !1);
    								break;

    							case 4:
    								D.SendEvent("普通任务4：挖掘基础。完成次数统计", 2007, !1);
    								break;

    							case 5:
    								D.SendEvent("普通任务5：管道挖掘。完成次数统计", 2008, !1);
    								break;

    							case 6:
    								D.SendEvent("普通任务6：建设管道。完成次数统计", 2009, !1);
    								break;

    							case 7:
    								D.SendEvent("普通任务7：河流挖掘。完成次数统计", 2010, !1);
    								break;

    							case 8:
    								D.SendEvent("普通任务8：拆除房屋。完成次数统计", 2011, !1);
    								break;

    							case 9:
    								D.SendEvent("普通任务9：河路疏通。完成次数统计", 2012, !1);
    								break;

    							case 10:
    								D.SendEvent("普通任务10：叉车装载。完成次数统计", 2013, !1);
    								break;

    							case 11:
    								D.SendEvent("普通任务11：打破道路。完成次数统计", 2014, !1);
    								break;

    							case 12:
    								D.SendEvent("普通任务12：汽车救援。完成次数统计", 2015, !1);
    								break;

    							case 13:
    								D.SendEvent("普通任务13：隧道施工。完成次数统计", 2016, !1);
    						}
    					(f.instance.isShowDiggerPosSign = !1),
    						(f.instance.isShowPlacePosSign = !1),
    						(f.instance.isShowTargetPosSign = !1),
    						$.instance.showDiggerSign(!1, "", 0, 0),
    						$.instance.showTaskTargetSign(!1, 0, 0),
    						X.instance.stopCarMove(),
    						$.instance.showControl1(!1),
    						$.instance.showControl2(!1),
    						$.instance.showSlider1(!1),
    						$.instance.showSlider2(!1),
    						(f.instance.isShowControl = !1),
    						$.instance.stopChecHideBox(),
    						$.instance.stopCheckQuickWin(),
    						Laya.stage.event("hideBox_ClickClose"),
    						Laya.stage.event("quickWin_ClickClose"),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GAME_SUC) && mt.instance.showGameSucMenu();
    			}
    		}
    		onClickADGet() {
    			this.isDebug && console.log("onClickADGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			D.SendEvent("摸鱼界面拉取成功数", 3015, !1),
    				A.instance.isFristDotForQuickWin_1 ||
    				((A.instance.isFristDotForQuickWin_1 = !0), D.SendEvent("摸鱼界面首次拉取成功数", 3017, !1));
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("摸鱼界面完播数", 3016, !1),
    				A.instance.isFristDotForQuickWin_2 ||
    				((A.instance.isFristDotForQuickWin_2 = !0), D.SendEvent("摸鱼界面首次拉取完播数", 3018, !1)),
    				v.instance.updateCommonAchieve(1),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onPageSuccess() {
    			console.log("onPageSuccess");
    		}
    		onPageFail() {
    			console.log("onPageFail");
    		}
    		onClickClose() {
    			this.isDebug && console.log("quickWin onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			this.isDebug && console.log("onNativePageSuccess"),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Gt.instance.showInsertScreen(!1),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    		onNativePageFail() {
    			this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? Gt.instance.showInsertScreen(!1) : Gt.instance.showInsertScreen(!0),
    				(Tt.instance.page_ad_index += 1),
    				Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    		}
    	}
    	class qe extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.showTime = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new qe()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnOk = this._content.getChild("n5").asButton),
    				this._btnOk.onClick(this, this.onClickOK),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI qe");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"), (this.showTime = 0), Laya.timer.loop(100, this, this.showBlessingBag);
    		}
    		showBlessingBag() {
    			(this.showTime += 1),
    				this.showTime >= 7 &&
    				(Laya.timer.clear(this, this.showBlessingBag),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_BLESSBAG) && mt.instance.showBlessingBagMenu());
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_SMALLMSG), this._view.removeFromParent(), e)) {
    				case 0:
    					Laya.stage.event("startShowSmallDaoMsg", [30]);
    			}
    		}
    		onClickOK() {
    			this.isDebug && console.log("onClickOK"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class $e extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new $e()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnGet = this._content.getChild("n8").asButton),
    				this._btnGet.onClick(this, this.onClickGet),
    				(this._adItem = this._content.getChild("n15").asCom),
    				this._adItem.getChild("btnAD").asButton.onClick(this, this.clickInsertScreen),
    				this._adItem.getChild("btnClose").asButton.onClick(this, this.clickInsertScreenClose),
    				this.initUI();
    		}
    		initUI() {
    			switch ((this.isDebug && console.log("initUI"), l.game_channel)) {
    				case 2:
    				case 3:
    					Gt.instance.ShowPage(
    						Tt.instance.page_ad_index,
    						this.onNativePageSuccess.bind(this),
    						this.onNativePageFail.bind(this)
    					);
    			}
    			this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI $e");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		clickInsertScreen() {
    			this.isDebug && console.log("clickInsertScreen"),
    				Tt.instance.showPageObj.reportAdClick({
    					adId: Tt.instance.showNativeData.adId.toString(),
    				});
    		}
    		clickInsertScreenClose() {
    			this.isDebug && console.log("clickInsertScreenClose"), this.hideInsertScreen();
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_BLESSBAG), this._view.removeFromParent(), e)) {
    				case 0:
    					(L.instance.playerInfo.gold += 100),
    						L.instance.savePlayerInfoToLocalCache(),
    						Laya.stage.event("updateWallet"),
    						(mt.instance.getRewardMenuType = 0),
    						(mt.instance.getItemValue = 100),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    			}
    		}
    		showInsertScreen(e) {
    			if (e)
    				(this._adItem.getChild("adIcon").asLoader.url = Tt.instance.nativeBanner.icon),
    					(this._adItem.getChild("adSign").asLoader.url = Tt.instance.nativeBanner.logoUrl),
    					(this._adItem.getChild("adImage").asLoader.url = Tt.instance.nativeBanner.imgUrlList[0]);
    			else {
    				let e = Tt.instance.nativePages.pop();
    				(Tt.instance.showNativeData = e.nativePageData),
    					(Tt.instance.showPageObj = e.page_obj),
    					(this._adItem.getChild("adIcon").asLoader.url = Tt.instance.showNativeData.icon),
    					(this._adItem.getChild("adSign").asLoader.url = Tt.instance.showNativeData.logoUrl),
    					(this._adItem.getChild("adImage").asLoader.url = Tt.instance.showNativeData.imgUrlList[0]),
    					Tt.instance.nativePages.unshift(e);
    			}
    			this._adItem.visible = !0;
    		}
    		hideInsertScreen() {
    			this._adItem.visible = !1;
    		}
    		onClickGet() {
    			this.isDebug && console.log("onClickGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onNativePageSuccess(e, t) {
    			switch (
    			(this.isDebug && console.log("onNativePageSuccess"),
    				(Tt.instance.isUsePageIDForBanner = !0),
    				(Tt.instance.page_ad_indexForBanner = Tt.instance.page_ad_index),
    				Tt.instance.addPageAdData(t, e),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				this.showInsertScreen(!1),
    				l.game_channel)
    			) {
    				case 2:
    					(Tt.instance.page_ad_index += 1), Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    					break;

    				case 3:
    					(Tt.instance.page_ad_index += 1), Tt.instance.page_ad_index > 3 && (Tt.instance.page_ad_index = 1);
    			}
    		}
    		onNativePageFail() {
    			switch (
    			(this.isDebug && console.log("onNativePageFail"),
    				Tt.instance.nativePages.length > 0 ? this.showInsertScreen(!1) : this.showInsertScreen(!0),
    				l.game_channel)
    			) {
    				case 2:
    					(Tt.instance.page_ad_index += 1), Tt.instance.page_ad_index > 2 && (Tt.instance.page_ad_index = 1);
    					break;

    				case 3:
    					(Tt.instance.page_ad_index += 1), Tt.instance.page_ad_index > 3 && (Tt.instance.page_ad_index = 1);
    			}
    		}
    	}
    	class et extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curMsg = ""), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new et()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.msg1 = this._content.getChild("n5").asImage),
    				(this.msg2 = this._content.getChild("n6").asImage),
    				(this.btnOK = this._content.getChild("n2").asButton),
    				this.btnOK.onClick(this, this.onClickOK),
    				(this.btnCancel = this._content.getChild("n3").asButton),
    				this.btnCancel.onClick(this, this.onClickCancel),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				B.ShuFenReport_guide("lost001", 1),
    				l.isCanSkipTeach
    					? ((this.msg1.visible = !0),
    						(this.msg2.visible = !1),
    						(this.btnOK.visible = !0),
    						(this.btnCancel.visible = !0),
    						(this.btnOK.x = 728),
    						(this.btnCancel.x = 1222))
    					: ((this.msg1.visible = !1),
    						(this.msg2.visible = !0),
    						(this.btnOK.visible = !0),
    						(this.btnCancel.visible = !1),
    						(this.btnOK.x = 960)),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("教学开始");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_GOTOTEACH), this._view.removeFromParent(), e)) {
    				case 0:
    					Laya.stage.event("skipTeach");
    					break;

    				case 1:
    					B.ShuFenReport_guide("lost002", 1), Laya.stage.event("goToTeach");
    			}
    		}
    		onClickOK() {
    			this.isDebug && console.log("onClickOK"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				D.SendEvent("弹出教学，玩家点击确认", 1002, !1),
    				B.ShuFenReport_guide("lost001", 2),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickCancel() {
    			this.isDebug && console.log("onClickCancel"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class st extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new st()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnUnlock = this._content.getChild("n7").asButton),
    				this.btnUnlock.onClick(this, this.onClickUnlock),
    				(this.btnClose = this._content.getChild("n8").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("TaskUnlockTIp initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("解锁关卡");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("TaskUnlockTIp onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("TaskUnlockTIp onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_TASK_UNLOCK_TIP), this._view.removeFromParent(), e)) {
    				case 0:
    					Laya.stage.event("backToLastPos");
    					break;

    				case 1:
    					Laya.stage.event("updateTaskUI");
    			}
    		}
    		onClickClose() {
    			this.isDebug && console.log("TaskUnlockTIp onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickUnlock() {
    			this.isDebug && console.log("TaskUnlockTIp onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				B.ShuFenReport_video("ads007", 1),
    				Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			B.ShuFenReport_video("ads007", 2);
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				B.ShuFenReport_video("ads007", 3),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("玩家提前视频解锁普通关卡的曝光次数", 3103, !1),
    				v.instance.updateCommonAchieve(1),
    				console.log("gameLogic.instance.curNeedUnlockStageIndex == " + f.instance.curNeedUnlockStageIndex),
    				0 == L.instance.playerInfo.stageTryDatas[f.instance.curNeedUnlockStageIndex - 1].times &&
    				(L.instance.playerInfo.stageTryDatas[f.instance.curNeedUnlockStageIndex - 1].times = 3),
    				0 == L.instance.playerInfo.stageDatas[f.instance.curNeedUnlockStageIndex - 1].isNew &&
    				(L.instance.playerInfo.stageDatas[f.instance.curNeedUnlockStageIndex - 1].isNew = 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    	}
    	class it extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curToolType = 0), (this.curOpenPos = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new it()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e, t, s) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._btnClose = this._content.getChild("n3").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				(this._btnADGet = this._content.getChild("n4").asButton),
    				this._btnADGet.onClick(this, this.onClickADGet),
    				(this._toolIcon = this._content.getChild("n6").asLoader),
    				(this._toolName = this._content.getChild("n7").asLoader),
    				this.initUI(t, s);
    		}
    		initUI(e, t) {
    			this.isDebug && console.log("initUI"),
    				(this.curToolType = e),
    				(this.curOpenPos = t),
    				(this._toolIcon.url = V.instance.getToolIcon(e)),
    				(this._toolName.url = V.instance.getToolName(e)),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("解锁部件");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch (
    			(mt.instance.popMenu(l.UI_STATE.UI_STATE_TOOL_UNLOCK),
    				this._view.removeFromParent(),
    				Laya.stage.off("quickWin_ClickClose", this, this.onClickClose),
    				e)
    			) {
    				case 0:
    					switch (this.curOpenPos) {
    						case 1:
    							De.instance.startTask();
    							break;

    						case 2:
    							De.instance.startADTask();
    					}
    					break;

    				case 1:
    					switch (this.curToolType) {
    						case 1:
    							0 == L.instance.playerInfo.tool1 && (L.instance.playerInfo.tool1 = 1);
    							break;

    						case 2:
    							0 == L.instance.playerInfo.tool2 && (L.instance.playerInfo.tool2 = 1);
    							break;

    						case 3:
    							0 == L.instance.playerInfo.tool3 && (L.instance.playerInfo.tool3 = 1);
    							break;

    						case 4:
    							0 == L.instance.playerInfo.tool4 && (L.instance.playerInfo.tool4 = 1);
    							break;

    						case 5:
    							0 == L.instance.playerInfo.tool5 && (L.instance.playerInfo.tool5 = 1);
    					}
    					switch ((L.instance.savePlayerInfoToLocalCache(), this.curOpenPos)) {
    						case 0:
    							(f.instance.curUseToolType = this.curToolType),
    								Z.instance.setCurUseTool(this.curToolType),
    								Z.instance.initBtnShow(),
    								$.instance.setCurUseTool(this.curToolType),
    								X.instance.changeCarType(this.curToolType);
    							break;

    						case 1:
    							De.instance.startTask();
    							break;

    						case 2:
    							De.instance.startADTask();
    					}
    			}
    		}
    		onClickADGet() {
    			switch (
    			(this.isDebug && console.log("onClickADGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				this.curToolType)
    			) {
    				case 3:
    					B.ShuFenReport_video("ads008", 1);
    					break;

    				case 4:
    					B.ShuFenReport_video("ads009", 1);
    					break;

    				case 5:
    					B.ShuFenReport_video("ads010", 1);
    			}
    			Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this));
    		}
    		adLoaded() {
    			switch (this.curToolType) {
    				case 3:
    					B.ShuFenReport_video("ads008", 2);
    					break;

    				case 4:
    					B.ShuFenReport_video("ads009", 2);
    					break;

    				case 5:
    					B.ShuFenReport_video("ads010", 2);
    			}
    		}
    		adSuccess() {
    			switch (
    			(2 == l.game_channel && A.instance.resumeBgm(), D.SendEvent("广告总曝光次数", 3e3, !1), this.curToolType)
    			) {
    				case 3:
    					B.ShuFenReport_video("ads008", 3), D.SendEvent("玩家视频解锁部件3的曝光次数", 3100, !1);
    					break;

    				case 4:
    					B.ShuFenReport_video("ads009", 3), D.SendEvent("玩家视频解锁部件4的曝光次数", 3101, !1);
    					break;

    				case 5:
    					B.ShuFenReport_video("ads010", 3), D.SendEvent("玩家视频解锁部件5的曝光次数", 3102, !1);
    			}
    			v.instance.updateCommonAchieve(1), (this.curCloseIndex = 1), this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		adFail() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				console.log("adFail"),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    		onClickClose() {
    			this.isDebug && console.log("quickWin onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class at extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0), (this.curCarType = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new at()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e, t) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnGoto = this._content.getChild("n4").asButton),
    				this.btnGoto.onClick(this, this.onClickGoto),
    				(this.btnClose = this._content.getChild("n9").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this.carName = this._content.getChild("n11").asLoader),
    				(this.carIcon = this._content.getChild("n7").asLoader),
    				(this.needCarName = this._content.getChild("n5").asLoader),
    				this.initUI(t);
    		}
    		initUI(e) {
    			this.isDebug && console.log("TaskUnlockTIp initUI"),
    				(this.curCarType = e),
    				(this.carName.url = V.instance.getCarName(e)),
    				(this.needCarName.url = V.instance.getCarName(e)),
    				(this.carIcon.url = V.instance.getCarIcon(e)),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI at");
    		}
    		onShown() {
    			this.isDebug && console.log("TaskUnlockTIp onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("TaskUnlockTIp onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_STAGE_UNLOCK_TIP), this._view.removeFromParent(), e)) {
    				case 0:
    					break;

    				case 1:
    					Laya.stage.event("closeStageUnlock", [8]);
    			}
    		}
    		onClickClose() {
    			this.isDebug && console.log("TaskUnlockTIp onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		onClickGoto() {
    			this.isDebug && console.log("onClickGoto"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 1),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class nt extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this._itemArr = []), (this.curCloseIndex = 0), (this.curGetIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new nt()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			this.isDebug && console.log("loadUI"),
    				(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnClose = this._content.getChild("n4").asButton),
    				this.btnClose.onClick(this, this.onClickClose),
    				(this._list = this._content.getChild("n10").asList),
    				(this._list.itemRenderer = Laya.Handler.create(this, this.renderListItem, null, !1)),
    				(this._list.numItems = 13),
    				(this.leftArrow = this._content.getChild("n12").asImage),
    				(this.rightArrow = this._content.getChild("n11").asImage),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				Gt.instance.ClearCustomAd(!0),
    				D.SendEvent("玩家进入博物馆的次数", 4e3, !1),
    				Laya.stage.on("museumClickItem", this, this.onClickItem),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI nt");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown"), this.updateList();
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			this.curCloseIndex;
    			mt.instance.popMenu(l.UI_STATE.UI_STATE_MUSEUM),
    				this._view.removeFromParent(),
    				Laya.stage.off("ClickItem", this, this.onClickItem),
    				mt.uiStates[mt.uiStates.length - 1] != l.UI_STATE.UI_STATE_TASK &&
    				(Gt.instance.ClearCustomAd(!0), Gt.instance.CreateCustomAd(1), Gt.instance.CreateCustomAd(2));
    		}
    		upDateUI() {
    			this.updateList();
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    		renderListItem(e, t) {
    			this.isDebug && (console.log("renderList1Item"), console.log("index == " + e));
    			var s = t;
    			s.initItem(e), this._itemArr.push(s);
    		}
    		onClickItem(e) {
    			this.isDebug && console.log("onClickItem == dataIndex == " + e),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    		}
    		updateList() {
    			if (
    				(this.isDebug && (console.log("updateList"), console.log("this._itemArr.length == " + this._itemArr.length)),
    					this._itemArr.length > 0)
    			)
    				for (let e = 0; e < this._itemArr.length; e++) {
    					this._itemArr[e].initItem(e);
    				}
    		}
    	}
    	class ot extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curMsg = ""), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new ot()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this.btnOK = this._content.getChild("n4").asButton),
    				this.btnOK.onClick(this, this.onClickOK),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"), this.playMenuOpenAni(this.onShown.bind(this));

    			console.log("UI ot");
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			this.curCloseIndex;
    			mt.instance.popMenu(l.UI_STATE.UI_STATE_PRIVACYPOLICY), this._view.removeFromParent();
    		}
    		onClickOK() {
    			this.isDebug && console.log("onClickCancel"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				(this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class rt extends fgui.GButton {
    		constructor() {
    			super(), (this.curDay = 0);
    		}
    		onConstruct() {
    			this._stateController = this.getController("c1");
    		}
    		setCurDay(e) {
    			this.curDay = e;
    		}
    		getCurDay() {
    			return this.curDay;
    		}
    		showByState(e) {
    			this._stateController.selectedIndex = e;
    		}
    	}
    	class ct extends fgui.GButton {
    		constructor() {
    			super(), (this.curDay = 0);
    		}
    		onConstruct() {
    			(this.pigCar = this.getChild("n17").asImage),
    				(this.coinNode = this.getChild("n24").asGroup),
    				(this.addText = this.getChild("addCoin").asLabel),
    				(this._stateController = this.getController("c1"));
    		}
    		showByType(e) {
    			1 == e
    				? ((this.pigCar.visible = !0), (this.addText.visible = !0), (this.coinNode.visible = !1))
    				: ((this.pigCar.visible = !1), (this.addText.visible = !1), (this.coinNode.visible = !0));
    		}
    		setCurDay(e) {
    			this.curDay = e;
    		}
    		getCurDay() {
    			return this.curDay;
    		}
    		showByState(e) {
    			this._stateController.selectedIndex = e;
    		}
    	}
    	class ht extends fgui.GButton {
    		constructor() {
    			super(), (this.curItemIndex = 0);
    		}
    		onConstruct() {
    			(this._process = this.getChild("process").asTextField),
    				(this._stateController = this.getController("c1")),
    				(this._btnAdGet = this.getChild("n4").asButton);
    		}
    		setProcess(e) {
    			switch (this.curItemIndex) {
    				case 0:
    					this._process.text = e + "/2";
    					break;

    				case 1:
    					this._process.text = e + "/3";
    					break;

    				case 2:
    					this._process.text = e + "/5";
    					break;

    				case 3:
    					this._process.text = e + "/7";
    			}
    		}
    		setItemIndex(e) {
    			this.curItemIndex = e;
    		}
    		getItemIndex() {
    			return this.curItemIndex;
    		}
    		showByState(e) {
    			this._stateController.selectedIndex = e;
    		}
    		getBtnAdGet() {
    			return this._btnAdGet;
    		}
    	}
    	class lt extends fgui.GButton {
    		constructor() {
    			super(), (this.curTaskIndex = 0);
    		}
    		onConstruct() {
    			(this._selectTitle = this.getChild("selectTitle").asTextField),
    				(this._lock = this.getChild("lock").asImage),
    				(this._complete = this.getChild("complete").asImage),
    				(this._newTip = this.getChild("n14").asCom),
    				(this._card = this.getChild("card").asImage);
    		}
    		setSelectTitle(e) {
    			this._selectTitle.text = e;
    		}
    		setTaskIndex(e) {
    			this.curTaskIndex = e;
    		}
    		getTaskIndex() {
    			return this.curTaskIndex;
    		}
    		showLock(e) {
    			this._lock.visible = e;
    		}
    		showComplete(e) {
    			this._complete.visible = e;
    		}
    		showNewTip(e) {
    			this._newTip.visible = e;
    		}
    		showCard(e) {
    			this._card.visible = e;
    		}
    		getCardPosX() {
    			return this._card.x;
    		}
    		getCardPosY() {
    			return this._card.y;
    		}
    		getCardLocalPosX() {
    			return this._card.localToGlobal().x;
    		}
    		getCardLocalPosY() {
    			return this._card.localToGlobal().y;
    		}
    		callBack1() { }
    	}
    	class gt extends fgui.GComponent {
    		constructor() {
    			super(), (this.curGarageIndex = 0), (this.curAdGetMode = 0), (this.isDebug = !1);
    		}
    		onConstruct() {
    			(this._btnEquip = this.getChild("btnEquip").asButton),
    				(this._btnEquiped = this.getChild("btnEquiped").asButton),
    				(this._btnEquiped.touchable = !1),
    				(this._btnAdGet = this.getChild("btnYAdGet").asButton),
    				(this._btnCoinGet = this.getChild("btnCoinGet").asButton),
    				(this._btnGiftGet = this.getChild("btnGiftGet").asButton),
    				(this._speedSlider = this.getChild("n11").asProgress),
    				(this._accSlider = this.getChild("n15").asProgress),
    				(this._inertiaSlider = this.getChild("n19").asProgress),
    				(this._brakeSlider = this.getChild("n41").asProgress),
    				(this._controlSlider = this.getChild("n45").asProgress),
    				(this._powerSlider = this.getChild("n49").asProgress),
    				(this._carType = this.getChild("n51").asLabel),
    				(this._accSlider.max = 10),
    				(this._controlSlider.max = 10),
    				(this._speedSlider.max = 100),
    				(this._carIcon = this.getChild("n25").asLoader),
    				(this._speedSlider.max = 100),
    				(this._accSlider.max = 10),
    				(this._controlSlider.max = 10),
    				(this._carName = this.getChild("n22").asLoader),
    				(this._equipIcon = this.getChild("n5").asImage),
    				(this._stateController = this.getController("c1")),
    				(this._tryTimes = this.getChild("n52").asLabel),
    				this._btnEquip.onClick(this, this.onClickEquip),
    				this._btnAdGet.onClick(this, this.onClickAdGet),
    				this._btnCoinGet.onClick(this, this.onClickCoinGet),
    				this._btnGiftGet.onClick(this, this.onClickGiftGet);
    		}
    		setBtnADGet(e) {
    			switch (((this.curAdGetMode = e), e)) {
    				case 0:
    					(this._btnAdGet.getChild("n6").visible = !0), (this._btnAdGet.getChild("n7").visible = !1);
    					break;

    				case 1:
    					(this._btnAdGet.getChild("n6").visible = !1), (this._btnAdGet.getChild("n7").visible = !0);
    			}
    		}
    		showByState(e) {
    			this._stateController.selectedIndex = e;
    		}
    		setGarageIndex(e) {
    			this.curGarageIndex = e;
    		}
    		getGarageIndex() {
    			return this.curGarageIndex;
    		}
    		setCarIcon(e) {
    			this._carIcon.url = e;
    		}
    		setCarName(e) {
    			this._carName.url = e;
    		}
    		setTryTimes(e, t) {
    			console.log("setTryTimes"),
    				console.log("times == " + e),
    				console.log("maxTimes == " + t),
    				(this._tryTimes.text = "试用" + e + "/" + t + " 永久解锁");
    		}
    		setSpeedSlider(e) {
    			this._speedSlider.value = e;
    		}
    		setAccSlider(e) {
    			this._accSlider.value = e;
    		}
    		setInertiaSlider(e) {
    			this._inertiaSlider.value = e;
    		}
    		setBrakeSlider(e) {
    			this._brakeSlider.value = e;
    		}
    		setControlSlider(e) {
    			this._controlSlider.value = e;
    		}
    		setPowerSlider(e) {
    			this._powerSlider.value = e;
    		}
    		setCarType(e) {
    			this._carType.text = e;
    		}
    		getBtnEquip() {
    			return this._btnEquip;
    		}
    		getBtnAdGet() {
    			return this._btnAdGet;
    		}
    		getBtnCoinGet() {
    			return this._btnCoinGet;
    		}
    		getBtnGiftGet() {
    			return this._btnGiftGet;
    		}
    		onClickEquip(e) {
    			this.isDebug && console.log("onClickEquip"), Laya.stage.event("ClickEquip", this.curGarageIndex);
    		}
    		onClickAdGet(e) {
    			this.isDebug && console.log("onClickAdGet"),
    				0 == this.curAdGetMode
    					? Laya.stage.event("ClickAdGet", this.curGarageIndex)
    					: Laya.stage.event("ClickBuy", this.curGarageIndex);
    		}
    		onClickCoinGet(e) {
    			this.isDebug && console.log("onClickCoinGet"), Laya.stage.event("ClickCoinGet", this.curGarageIndex);
    		}
    		onClickGiftGet(e) {
    			this.isDebug && console.log("onClickGiftGet"), Laya.stage.event("ClickGiftGet", this.curGarageIndex);
    		}
    	}
    	class ut extends fgui.GComponent {
    		constructor() {
    			super(), (this.curDataIndex = 0), (this.curReward = 0), (this.isDebug = !1);
    		}
    		onConstruct() {
    			(this._modeTitle = this.getChild("n1").asLabel),
    				(this._taskContent1 = this.getChild("n2").asLabel),
    				(this._carName = this.getChild("n3").asLabel),
    				(this._taskContent2 = this.getChild("n4").asLabel),
    				(this._times = this.getChild("n10").asLabel),
    				(this._reward = this.getChild("n11").asLabel),
    				(this._btnGet = this.getChild("btnGet").asButton),
    				(this._btnAdGet = this.getChild("btnAdGet").asButton),
    				(this._stateController = this.getController("c1")),
    				this._btnGet.onClick(this, this.onClickGet),
    				this._btnAdGet.onClick(this, this.onClickAdGet);
    		}
    		showByState(e) {
    			this._stateController.selectedIndex = e;
    		}
    		setDataIndex(e) {
    			this.curDataIndex = e;
    		}
    		getDataIndex() {
    			return this.curDataIndex;
    		}
    		setModeTitle(e) {
    			this._modeTitle.text = e;
    		}
    		setTaskContent1(e) {
    			this._taskContent1.text = e;
    		}
    		setTaskContent2(e) {
    			this._taskContent2.text = e;
    		}
    		setCarName(e) {
    			this._carName.text = e;
    		}
    		setTiems(e, t) {
    			this._times.text = e + "/" + t;
    		}
    		setReward(e) {
    			(this.curReward = e), (this._reward.text = "" + e);
    		}
    		getReward() {
    			return this.curReward;
    		}
    		getBtnGet() {
    			return this._btnGet;
    		}
    		getBtnAdGet() {
    			return this._btnAdGet;
    		}
    		onClickGet(e) {
    			this.isDebug && console.log("onClickGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Laya.stage.event("ClickGet", this.curDataIndex);
    		}
    		onClickAdGet(e) {
    			this.isDebug && console.log("onClickAdGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Laya.stage.event("ClickAdGet", this.curDataIndex);
    		}
    	}
    	class dt extends fgui.GComponent {
    		constructor() {
    			super(), (this.curDataIndx1 = 0), (this.curDataIndx2 = 0), (this.isDebug = !1);
    		}
    		onConstruct() {
    			(this._btnItem1 = this.getChild("btnItem1").asButton),
    				this._btnItem1.onClick(this, this.onClickItem1),
    				(this._gameIcon1 = this._btnItem1.getChild("gameIcon").asLoader),
    				(this._gameName1 = this._btnItem1.getChild("gameName").asTextField),
    				(this._mark1 = this._btnItem1.getChild("mark").asLabel),
    				(this._btnItem2 = this.getChild("btnItem2").asButton),
    				this._btnItem2.onClick(this, this.onClickItem2),
    				(this._gameIcon2 = this._btnItem2.getChild("gameIcon").asLoader),
    				(this._gameName2 = this._btnItem2.getChild("gameName").asTextField),
    				(this._mark2 = this._btnItem2.getChild("mark").asLabel);
    		}
    		onClickItem1(e) {
    			this.isDebug && console.log("onClickItem1"), Laya.stage.event("ClickItem", this.curDataIndx1);
    		}
    		onClickItem2(e) {
    			this.isDebug && console.log("onClickItem2"), Laya.stage.event("ClickItem", this.curDataIndx2);
    		}
    		setDataIndex1(e) {
    			this.isDebug && console.log("setDataIndex1 == index == " + e), (this.curDataIndx1 = e);
    		}
    		getDataIndex1() {
    			return this.curDataIndx1;
    		}
    		setDataIndex2(e) {
    			this.isDebug && console.log("setDataIndex2 == index == " + e), (this.curDataIndx2 = e);
    		}
    		getDataIndex2() {
    			return this.curDataIndx2;
    		}
    		setGameIcon1(e) {
    			this.isDebug && console.log("setGameIcon1 == url == " + e), (this._gameIcon1.url = e);
    		}
    		setGameIcon2(e) {
    			this.isDebug && console.log("setGameIcon2 == url == " + e), (this._gameIcon2.url = e);
    		}
    		setGameName1(e) {
    			this.isDebug && console.log("setGameName1 == name == " + e), (this._gameName1.text = e);
    			let t = this._gameName1.textWidth;
    			console.log("textWidth1 == " + t),
    				t > 280 ? this._gameName1.setScale(280 / t, 280 / t) : this._gameName1.setScale(1, 1);
    		}
    		setGameName2(e) {
    			this.isDebug && console.log("setGameName2 == name == " + e), (this._gameName2.text = e);
    			let t = this._gameName2.textWidth;
    			console.log("textWidt2 == " + t),
    				t > 300 ? this._gameName2.setScale(280 / t, 280 / t) : this._gameName2.setScale(1, 1);
    		}
    		setMark1(e) {
    			this.isDebug && console.log("setMark1 == mark == " + e),
    				"" == e ? (this._mark1.visible = !1) : ((this._mark1.visible = !0), (this._mark1.text = e));
    		}
    		setMark2(e) {
    			this.isDebug && console.log("setMark2 == mark == " + e),
    				"" == e ? (this._mark2.visible = !1) : ((this._mark2.visible = !0), (this._mark2.text = e));
    		}
    	}
    	class _t extends fgui.GComponent {
    		constructor() {
    			super(), (this.curIndex = 0), (this.isDebug = !1);
    		}
    		onConstruct() {
    			(this._btnItem1 = this.getChild("n17").asButton),
    				this._btnItem1.onClick(this, this.onClickItem1),
    				(this._btnItem2 = this.getChild("n18").asButton),
    				this._btnItem2.onClick(this, this.onClickItem2),
    				(this._btnItem3 = this.getChild("n19").asButton),
    				this._btnItem3.onClick(this, this.onClickItem3);
    		}
    		initItem(e) {
    			console.log("initItem == index == " + e), (this.curIndex = e);
    			let t = e + 1,
    				s = 13 + e + 1,
    				i = 26 + e + 1;
    			this.isDebug && (console.log("data1No == " + t), console.log("data2No == " + s), console.log("data3No == " + i)),
    				this.setBtnShow(1, t),
    				this.setBtnShow(2, s),
    				this.setBtnShow(3, i);
    		}
    		setBtnShow(e, t) {
    			switch ((console.log("btnIndex == " + e), console.log("dataNo == " + t), e)) {
    				case 1:
    					if (
    						(console.log(
    							"PlayerData.instance.museumInfo.museumDatas[dataNo - 1].state == ",
    							L.instance.museumInfo.museumDatas[t - 1].state
    						),
    							0 == L.instance.museumInfo.museumDatas[t - 1].state)
    					) {
    						(this._btnItem1.getChild("n9").visible = !1),
    							(this._btnItem1.getChild("n3").visible = !1),
    							(this._btnItem1.getChild("n5").visible = !0),
    							(this._btnItem1.getChild("n6").visible = !0);
    						let e = "通关任务" + (C.Config_Museum_Map.get(t).unlock - 100) + "以解锁资料";
    						(this._btnItem1.getChild("n6").asLabel.text = e),
    							(this._btnItem1.getChild("n7").visible = !1),
    							(this._btnItem1.getChild("n4").visible = !0),
    							(this._btnItem1.getChild("n4").asLabel.text = "？？？");
    					} else {
    						this._btnItem1.getChild("n9").visible = !0;
    						let e = this._btnItem1.getChild("n9").asLoader;
    						this.isDebug &&
    							console.log(
    								"JsonLoader.Config_Museum_Map.get(dataNo).preview_img_id =1= " +
    								C.Config_Museum_Map.get(t).preview_img_id
    							),
    							(e.url = "ui://Museum/" + C.Config_Museum_Map.get(t).preview_img_id),
    							(this._btnItem1.getChild("n3").visible = !0),
    							(this._btnItem1.getChild("n5").visible = !1),
    							(this._btnItem1.getChild("n6").visible = !1),
    							(this._btnItem1.getChild("n7").visible = !1),
    							(this._btnItem1.getChild("n4").visible = !0),
    							(this._btnItem1.getChild("n4").asLabel.text = C.Config_Museum_Map.get(t).prop_name);
    					}
    					break;

    				case 2:
    					if (
    						(console.log(
    							"PlayerData.instance.museumInfo.museumDatas[dataNo - 1].state == ",
    							L.instance.museumInfo.museumDatas[t - 1].state
    						),
    							0 == L.instance.museumInfo.museumDatas[t - 1].state)
    					) {
    						(this._btnItem2.getChild("n9").visible = !1),
    							(this._btnItem2.getChild("n3").visible = !1),
    							(this._btnItem2.getChild("n5").visible = !0),
    							(this._btnItem2.getChild("n6").visible = !0);
    						let e = "通关挑战" + (C.Config_Museum_Map.get(t).unlock - 200) + "以解锁资料";
    						(this._btnItem2.getChild("n6").asLabel.text = e),
    							(this._btnItem2.getChild("n7").visible = !1),
    							(this._btnItem2.getChild("n4").visible = !0),
    							(this._btnItem2.getChild("n4").asLabel.text = "？？？");
    					} else {
    						this._btnItem2.getChild("n9").visible = !0;
    						let e = this._btnItem2.getChild("n9").asLoader;
    						this.isDebug &&
    							console.log(
    								"JsonLoader.Config_Museum_Map.get(dataNo).preview_img_id =2= " +
    								C.Config_Museum_Map.get(t).preview_img_id
    							),
    							(e.url = "ui://Museum/" + C.Config_Museum_Map.get(t).preview_img_id),
    							(this._btnItem2.getChild("n3").visible = !0),
    							(this._btnItem2.getChild("n5").visible = !1),
    							(this._btnItem2.getChild("n6").visible = !1),
    							(this._btnItem2.getChild("n7").visible = !1),
    							(this._btnItem2.getChild("n4").visible = !0),
    							(this._btnItem2.getChild("n4").asLabel.text = C.Config_Museum_Map.get(t).prop_name);
    					}
    					break;

    				case 3:
    					if (
    						(console.log(
    							"PlayerData.instance.museumInfo.museumDatas.length == " + L.instance.museumInfo.museumDatas.length
    						),
    							t <= L.instance.museumInfo.museumDatas.length)
    					)
    						if (
    							((this._btnItem3.visible = !0),
    								console.log(
    									"PlayerData.instance.museumInfo.museumDatas[dataNo - 1].state == ",
    									L.instance.museumInfo.museumDatas[t - 1].state
    								),
    								0 == L.instance.museumInfo.museumDatas[t - 1].state)
    						) {
    							(this._btnItem3.getChild("n9").visible = !1),
    								(this._btnItem3.getChild("n3").visible = !1),
    								(this._btnItem3.getChild("n5").visible = !0),
    								(this._btnItem3.getChild("n6").visible = !0);
    							let e = "看视频解锁";
    							(this._btnItem3.getChild("n6").asLabel.text = e),
    								(this._btnItem3.getChild("n7").visible = !0),
    								(this._btnItem3.getChild("n4").visible = !0),
    								(this._btnItem3.getChild("n4").asLabel.text = "？？？");
    						} else {
    							this._btnItem3.getChild("n9").visible = !0;
    							let e = this._btnItem3.getChild("n9").asLoader;
    							this.isDebug &&
    								console.log(
    									"JsonLoader.Config_Museum_Map.get(dataNo).preview_img_id =3= " +
    									C.Config_Museum_Map.get(t).preview_img_id
    								),
    								(e.url = "ui://Museum/" + C.Config_Museum_Map.get(t).preview_img_id),
    								(this._btnItem3.getChild("n3").visible = !0),
    								(this._btnItem3.getChild("n5").visible = !1),
    								(this._btnItem3.getChild("n6").visible = !1),
    								(this._btnItem3.getChild("n7").visible = !1),
    								(this._btnItem3.getChild("n4").visible = !0),
    								(this._btnItem3.getChild("n4").asLabel.text = C.Config_Museum_Map.get(t).prop_name);
    						}
    					else this._btnItem3.visible = !1;
    			}
    		}
    		onClickItem1(e) {
    			this.isDebug && console.log("onClickItem1"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let t = this.curIndex + 1;
    			this.isDebug && console.log("data1No == " + t),
    				1 == L.instance.museumInfo.museumDatas[t - 1].state &&
    				((f.instance.curShowMuseumID = t),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM_DETAIL) && mt.instance.showMuseumDetail());
    		}
    		onClickItem2(e) {
    			this.isDebug && console.log("onClickItem2"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let t = 13 + this.curIndex + 1;
    			this.isDebug && console.log("data2No == " + t),
    				1 == L.instance.museumInfo.museumDatas[t - 1].state &&
    				((f.instance.curShowMuseumID = t),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM_DETAIL) && mt.instance.showMuseumDetail());
    		}
    		onClickItem3(e) {
    			this.isDebug && console.log("onClickItem3"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let t = 26 + this.curIndex + 1;
    			this.isDebug && console.log("data3No == " + t),
    				1 == L.instance.museumInfo.museumDatas[t - 1].state
    					? ((f.instance.curShowMuseumID = t),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM_DETAIL) && mt.instance.showMuseumDetail())
    					: (B.ShuFenReport_video("ads006", 1),
    						Gt.instance.ShowVideo(this.adSuccess.bind(this), this.adFail.bind(this), this.adLoaded.bind(this)));
    		}
    		adLoaded() {
    			B.ShuFenReport_video("ads006", 2);
    		}
    		adSuccess() {
    			2 == l.game_channel && A.instance.resumeBgm(),
    				this.isDebug && console.log("adSuccess"),
    				B.ShuFenReport_video("ads006", 3),
    				D.SendEvent("广告总曝光次数", 3e3, !1),
    				D.SendEvent("视频解锁科普条目的次数", 3200, !1);
    			let e = 26 + this.curIndex + 1;
    			this.isDebug && console.log("data3No == " + e),
    				0 == L.instance.museumInfo.museumDatas[e - 1].state &&
    				((L.instance.museumInfo.museumDatas[e - 1].state = 1),
    					(L.instance.museumInfo.museumDatas[e - 1].getted = 1),
    					L.instance.saveMuseumInfoToLocalCache()),
    				(f.instance.curShowMuseumID = e),
    				nt.instance.updateList(),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM_DETAIL) && mt.instance.showMuseumDetail();
    		}
    		adFail() {
    			console.log("adFail"),
    				2 == l.game_channel && A.instance.resumeBgm(),
    				Gt.instance.ShowToast("广告获取失败, 请稍后再试！！！");
    		}
    	}
    	class St extends fgui.GComponent {
    		constructor() {
    			super(), (this.curDataIndx = 0), (this.isDebug = !1);
    		}
    		onConstruct() {
    			(this._btnItem = this.getChild("n0").asButton),
    				this._btnItem.onClick(this, this.onClickItem),
    				(this._gameIcon = this._btnItem.getChild("gameIcon").asCom.getChild("n2").asLoader),
    				(this._gameName = this._btnItem.getChild("gameName").asTextField),
    				(this._mark = this._btnItem.getChild("mark").asLabel);
    		}
    		onClickItem(e) {
    			this.isDebug && console.log("onClickItem1"), Laya.stage.event("ClickItem", this.curDataIndx);
    		}
    		setDataIndex(e) {
    			this.isDebug && console.log("setDataIndex == index == " + e), (this.curDataIndx = e);
    		}
    		getDataIndex() {
    			return this.curDataIndx;
    		}
    		setGameIcon(e) {
    			this.isDebug && console.log("setGameIcon == url == " + e), (this._gameIcon.url = e);
    		}
    		setGameName(e) {
    			this.isDebug && console.log("setGameName1 == name == " + e), (this._gameName.text = e);
    			let t = this._gameName.textWidth;
    			console.log("textWidth1 == " + t),
    				t > 140 ? this._gameName.setScale(140 / t, 140 / t) : this._gameName.setScale(1, 1);
    		}
    		setMark(e) {
    			this.isDebug && console.log("setMark == mark == " + e),
    				"" == e ? (this._mark.visible = !1) : ((this._mark.visible = !0), (this._mark.text = e));
    		}
    	}
    	class yt extends h {
    		constructor() {
    			super(), (this.isDebug = !1), (this.curCloseIndex = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new yt()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._content = this._view.getChild("content").asCom),
    				(this._wjjIcon = this._content.getChild("n8").asLoader),
    				(this._wjjDesc = this._content.getChild("n5").asLabel),
    				(this._btnClose = this._content.getChild("n2").asButton),
    				this._btnClose.onClick(this, this.onClickClose),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug && console.log("initUI"),
    				(this._wjjIcon.url = "ui://Museum/" + C.Config_Museum_Map.get(f.instance.curShowMuseumID).img_id),
    				(this._wjjDesc.text = "      " + C.Config_Museum_Map.get(f.instance.curShowMuseumID).prop_instructions),
    				this.playMenuOpenAni(this.onShown.bind(this));

    			//原生
    			console.log("介绍");
    			Advertisement.insertAdverV3();
    		}
    		onShown() {
    			this.isDebug && console.log("onShown");
    		}
    		onHide() {
    			this.isDebug && console.log("onHide");
    			let e = this.curCloseIndex;
    			switch ((mt.instance.popMenu(l.UI_STATE.UI_STATE_MUSEUM_DETAIL), this._view.removeFromParent(), e)) {
    				case 0:
    					break;

    				case 1:
    					De.instance.playGetCardAni();
    			}
    		}
    		onClickClose() {
    			this.isDebug && console.log("onClickClose"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_02.mp3"),
    				f.instance.isNeedShowGetCardAni ? (this.curCloseIndex = 1) : (this.curCloseIndex = 0),
    				this.playMenuCloseAni(this.onHide.bind(this));
    		}
    	}
    	class mt extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.uiOrder = 3),
    				(this._settingWindow = null),
    				(this._buyCoinWindow = null),
    				(this._buyEnergyWindow = null),
    				(this._superGiftWindow = null),
    				(this._signInWindow = null),
    				(this._gameSucWindow = null),
    				(this._gameFailWindow = null),
    				(this._missionWindow = null),
    				(this._taskWindow = null),
    				(this._garageWindow = null),
    				(this._getRewardWindow = null),
    				(this._limitTimeGift = null),
    				(this._limitTimeUse = null),
    				(this._dialogMenu = null),
    				(this._achieveMenu = null),
    				(this._cheatMenu = null),
    				(this._questionMenu = null),
    				(this._moreGameMenu = null),
    				(this._limitTimesGet = null),
    				(this._limitTimesTry = null),
    				(this._shareGame = null),
    				(this._collectionGame = null),
    				(this._hideBoxMenu = null),
    				(this._quickWinMenu = null),
    				(this._smallMessage = null),
    				(this._blessingBag = null),
    				(this._goToTeachTip = null),
    				(this._privacyPolicyWindow = null),
    				(this._taskUnlockTip = null),
    				(this._toolMenu = null),
    				(this._toolUnlockTip = null),
    				(this._stageUnlockTip = null),
    				(this._museumMenu = null),
    				(this._museumDetail = null),
    				(this.getRewardMenuType = 0),
    				(this.getItemValue = 0),
    				(this.getCarType = 0),
    				(this.getRewardList = []),
    				(this.curDialogMsg = ""),
    				(this.curDialogType = 0),
    				(this.curTaskOpenPos = 0),
    				(this.curLimitGetOpenPos = 0),
    				(this.curLimitTryOpenPos = 0),
    				(this.curLimitTryCarType = 0),
    				(this.curUnlockToolType = 0),
    				(this.curUnlockToolOpenPos = 0),
    				(this.curNeedCarType = 0),
    				(this.needBackMenu = -1),
    				(this.needShowTip = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new mt()), this._instance.init(), this._instance);
    		}
    		init() { }
    		openNeedBackMenu() {
    			if (
    				(this.isDebug && (console.log("openNeedBackMenu"), console.log("this.needBackMenu == " + this.needBackMenu)),
    					-1 != this.needBackMenu)
    			) {
    				switch (this.needBackMenu) {
    					case l.UI_STATE.UI_STATE_SETTING:
    						this.pushMenu(l.UI_STATE.UI_STATE_SETTING) && this.showSettingMenu();
    						break;

    					case l.UI_STATE.UI_STATE_ONLINE_GIFT:
    						this.pushMenu(l.UI_STATE.UI_STATE_ONLINE_GIFT) && this.showLimitTimeGift();
    						break;

    					case l.UI_STATE.UI_STATE_SING_IN:
    						this.pushMenu(l.UI_STATE.UI_STATE_SING_IN) && this.showSignInMenu();
    						break;

    					case l.UI_STATE.UI_STATE_GARAGE:
    						this.pushMenu(l.UI_STATE.UI_STATE_GARAGE) && this.showGarageMenu();
    						break;

    					case l.UI_STATE.UI_STATE_ACHIEVE:
    						this.pushMenu(l.UI_STATE.UI_STATE_ACHIEVE) && this.showAchieveMenu();
    						break;

    					case l.UI_STATE.UI_STATE_SUPER_GIFT:
    						this.pushMenu(l.UI_STATE.UI_STATE_SUPER_GIFT) && this.showSuperGiftMenu();
    						break;

    					case l.UI_STATE.UI_STATE_BUY_COIN:
    						this.pushMenu(l.UI_STATE.UI_STATE_BUY_COIN) && this.showBuyCoinMenu();
    						break;

    					case l.UI_STATE.UI_STATE_BUY_ENERGY:
    						this.pushMenu(l.UI_STATE.UI_STATE_BUY_ENERGY) && this.showBuyEnergyMenu();
    						break;

    					case l.UI_STATE.UI_STATE_GET_REWARD:
    						this.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && this.showGetReward();
    						break;

    					case l.UI_STATE.UI_STATE_TASK:
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_TASK) && mt.instance.showTaskMenu(0);
    				}
    				this.needBackMenu = -1;
    			}
    		}
    		pushMenu(e) {
    			if (this.isDebug) {
    				console.log("pushMenu == uiType == " + e),
    					console.log("uiManager.isShowingDialog == " + mt.isShowingDialog),
    					console.log("uiManager.uiStates.length == " + mt.uiStates.length);
    				for (let e = 0; e < mt.uiStates.length; e++) console.log("uiManager.uiStates[ " + e + "] == " + mt.uiStates[e]);
    				console.log("uiManager.uiStates[uiManager.uiStates.length - 1] == " + mt.uiStates[mt.uiStates.length - 1]);
    			}
    			return mt.uiStates[mt.uiStates.length - 1] != e && (mt.uiStates.push(e), !0);
    		}
    		popMenu(e) {
    			if (this.isDebug) {
    				console.log("popMenu == uiType" + e), console.log("uiManager.uiStates.length == " + mt.uiStates.length);
    				for (let e = 0; e < mt.uiStates.length; e++) console.log("gameLogic.uiStates[ " + e + "] == " + mt.uiStates[e]);
    				console.log("gameLogic.uiStates[gameLogic.uiStates.length - 1] == " + mt.uiStates[mt.uiStates.length - 1]);
    			}
    			if (mt.uiStates[mt.uiStates.length - 1] != e) {
    				let t = mt.uiStates.indexOf(e);
    				-1 != t && mt.uiStates.splice(t, 1);
    			} else mt.uiStates.pop();
    			if (this.isDebug) {
    				console.log("uiManager.uiStates.length == " + mt.uiStates.length);
    				for (let e = 0; e < mt.uiStates.length; e++) console.log("uiManager.uiStates[ " + e + "] == " + mt.uiStates[e]);
    				console.log("uiManager.uiStates[gameLogic.uiStates.length - 1] == " + mt.uiStates[mt.uiStates.length - 1]);
    			}
    		}
    		showGetRewardByList() {
    			if (
    				(this.isDebug && console.log("this.getRewardList.length == " + this.getRewardList.length),
    					this.getRewardList.length > 0)
    			) {
    				let e = this.getRewardList[0];
    				return (
    					(this.getRewardMenuType = e.menuType),
    					(this.getItemValue = e.itemValue),
    					(this.getCarType = e.carType),
    					this.showGetReward(),
    					this.getRewardList.splice(0, 1),
    					!1
    				);
    			}
    			return !0;
    		}
    		showSettingMenu() {
    			this._settingWindow
    				? (fgui.GRoot.inst.addChild(this._settingWindow), Ue.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Setting"],
    					Laya.Handler.create(this, this.onSettingMenuLoaded)
    				);
    		}
    		onSettingMenuLoaded() {
    			null == this._settingWindow &&
    				((this._settingWindow = fgui.UIPackage.createObject("Setting", "SettingMenu").asCom),
    					this._settingWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._settingWindow.makeFullScreen(),
    					(this._settingWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._settingWindow),
    					Ue.instance.loadUI(this._settingWindow, this));
    		}
    		showSuperGiftMenu() {
    			this._superGiftWindow
    				? (fgui.GRoot.inst.addChild(this._superGiftWindow), Ne.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Shop"],
    					Laya.Handler.create(this, this.onSuperGiftMenuLoaded)
    				);
    		}
    		onSuperGiftMenuLoaded() {
    			null == this._superGiftWindow &&
    				((this._superGiftWindow = fgui.UIPackage.createObject("Shop", "superGiftMenu").asCom),
    					this._superGiftWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._superGiftWindow.makeFullScreen(),
    					(this._superGiftWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._superGiftWindow),
    					Ne.instance.loadUI(this._superGiftWindow));
    		}
    		showBuyEnergyMenu() {
    			this._buyEnergyWindow
    				? (fgui.GRoot.inst.addChild(this._buyEnergyWindow), Re.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Shop"],
    					Laya.Handler.create(this, this.onBuyEnergyMenuLoaded)
    				);
    		}
    		onBuyEnergyMenuLoaded() {
    			null == this._buyEnergyWindow &&
    				((this._buyEnergyWindow = fgui.UIPackage.createObject("Shop", "buyEnergyMenu").asCom),
    					this._buyEnergyWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._buyEnergyWindow.makeFullScreen(),
    					(this._buyEnergyWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._buyEnergyWindow),
    					Re.instance.loadUI(this._buyEnergyWindow));
    		}
    		showBuyCoinMenu() {
    			this._buyCoinWindow
    				? (fgui.GRoot.inst.addChild(this._buyCoinWindow), Be.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Shop"],
    					Laya.Handler.create(this, this.onBuyCoinMenuLoaded)
    				);
    		}
    		onBuyCoinMenuLoaded() {
    			null == this._buyCoinWindow &&
    				((this._buyCoinWindow = fgui.UIPackage.createObject("Shop", "buyCoinMenu").asCom),
    					this._buyCoinWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._buyCoinWindow.makeFullScreen(),
    					(this._buyCoinWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._buyCoinWindow),
    					Be.instance.loadUI(this._buyCoinWindow));
    		}
    		showSignInMenu() {
    			this._signInWindow
    				? (fgui.GRoot.inst.addChild(this._signInWindow), xe.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/SignIn"],
    					Laya.Handler.create(this, this.onSignInMenuLoaded)
    				);
    		}
    		onSignInMenuLoaded() {
    			null == this._signInWindow &&
    				(fgui.UIObjectFactory.setExtension("ui://SignIn/SignInItem", rt),
    					fgui.UIObjectFactory.setExtension("ui://SignIn/SignInItem1", ct),
    					fgui.UIObjectFactory.setExtension("ui://SignIn/SignInItem2", ht),
    					(this._signInWindow = fgui.UIPackage.createObject("SignIn", "SignInMenu").asCom),
    					this._signInWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._signInWindow.makeFullScreen(),
    					(this._signInWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._signInWindow),
    					xe.instance.loadUI(this._signInWindow));
    		}
    		showGameSucMenu() {
    			switch (
    			(this.isDebug && console.log("showGameSucMenu"),
    				(f.instance.completeStageTimes += 1),
    				Ie.instance.isChallengeLevel() && $.instance.showTime(!1, 0),
    				l.game_channel)
    			) {
    				case 4:
    					Gt.instance.stopRecord(this.onStopRecordEvent.bind(this));
    			}
    			Laya.timer.once(2e3, this, function () {
    				this._gameSucWindow
    					? (console.log("11111"), fgui.GRoot.inst.addChild(this._gameSucWindow), R.instance.initUI())
    					: (console.log("222222"),
    						fgui.UIPackage.loadPackage(
    							["res/UI/Common", "res/UI/Game"],
    							Laya.Handler.create(this, this.onGameSucMenuLoaded)
    						));
    			});
    		}
    		onStopRecordEvent() {
    			this.isDebug && console.log("onStopRecordEvent");
    		}
    		onGameSucMenuLoaded() {
    			if ((this.isDebug && console.log("onGameSucMenuLoaded"), null == this._gameSucWindow)) {
    				switch (l.game_channel) {
    					case 0:
    					case 1:
    					case 2:
    					case 3:
    						fgui.UIObjectFactory.setExtension("ui://Game/VADItem", St),
    							(this._gameSucWindow = fgui.UIPackage.createObject("Game", "successMenu").asCom);
    						break;

    					case 4:
    						this._gameSucWindow = fgui.UIPackage.createObject("Game", "successMenu1").asCom;
    				}
    				this._gameSucWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._gameSucWindow.makeFullScreen(),
    					(this._gameSucWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._gameSucWindow),
    					R.instance.loadUI(this._gameSucWindow);
    			}
    		}
    		showGameFailMenu() {
    			this._gameFailWindow
    				? (fgui.GRoot.inst.addChild(this._gameFailWindow), ve.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Game"],
    					Laya.Handler.create(this, this.onGameFailMenuLoaded)
    				);
    		}
    		onGameFailMenuLoaded() {
    			null == this._gameFailWindow &&
    				((this._gameFailWindow = fgui.UIPackage.createObject("Game", "failMenu").asCom),
    					this._gameFailWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._gameFailWindow.makeFullScreen(),
    					(this._gameFailWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._gameFailWindow),
    					ve.instance.loadUI(this._gameFailWindow));
    		}
    		showMissionMenu() {
    			this._missionWindow
    				? (fgui.GRoot.inst.addChild(this._missionWindow), ke.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Task"],
    					Laya.Handler.create(this, this.onMissionMenuLoaded)
    				);
    		}
    		onMissionMenuLoaded() {
    			null == this._missionWindow &&
    				((this._missionWindow = fgui.UIPackage.createObject("Task", "missionMenu").asCom),
    					this._missionWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._missionWindow.makeFullScreen(),
    					(this._missionWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._missionWindow),
    					ke.instance.loadUI(this._missionWindow, this));
    		}
    		showTaskMenu(e) {
    			(this.curTaskOpenPos = e),
    				this._taskWindow
    					? (fgui.GRoot.inst.addChild(this._taskWindow), De.instance.initUI())
    					: fgui.UIPackage.loadPackage(
    						["res/UI/Common", "res/UI/Task"],
    						Laya.Handler.create(this, this.onTaskMenuLoaded)
    					);
    		}
    		onTaskMenuLoaded() {
    			null == this._taskWindow &&
    				(fgui.UIObjectFactory.setExtension("ui://Task/listItem", lt),
    					(this._taskWindow = fgui.UIPackage.createObject("Task", "taskMenu1").asCom),
    					this._taskWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._taskWindow.makeFullScreen(),
    					(this._taskWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._taskWindow),
    					De.instance.loadUI(this._taskWindow));
    		}
    		showAchieveMenu() {
    			this._achieveMenu
    				? (fgui.GRoot.inst.addChild(this._achieveMenu), He.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Achieve"],
    					Laya.Handler.create(this, this.onAchieveMenuLoaded)
    				);
    		}
    		onAchieveMenuLoaded() {
    			null == this._achieveMenu &&
    				(fgui.UIObjectFactory.setExtension("ui://Achieve/achieveItem", ut),
    					(this._achieveMenu = fgui.UIPackage.createObject("Achieve", "achieveMenu").asCom),
    					this._achieveMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._achieveMenu.makeFullScreen(),
    					(this._achieveMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._achieveMenu),
    					He.instance.loadUI(this._achieveMenu));
    		}
    		showGarageMenu() {
    			this._garageWindow
    				? (fgui.GRoot.inst.addChild(this._garageWindow), Ee.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Garage"],
    					Laya.Handler.create(this, this.onGarageMenuLoaded)
    				);
    		}
    		onGarageMenuLoaded() {
    			null == this._garageWindow &&
    				(fgui.UIObjectFactory.setExtension("ui://Garage/GarageItem", gt),
    					(this._garageWindow = fgui.UIPackage.createObject("Garage", "GarageMenu").asCom),
    					this._garageWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._garageWindow.makeFullScreen(),
    					(this._garageWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._garageWindow),
    					Ee.instance.loadUI(this._garageWindow));
    		}
    		showGetReward() {
    			this._getRewardWindow
    				? (fgui.GRoot.inst.addChild(this._getRewardWindow), Ge.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Game"],
    					Laya.Handler.create(this, this.onGetRewardLoaded)
    				);
    		}
    		onGetRewardLoaded() {
    			null == this._getRewardWindow &&
    				((this._getRewardWindow = fgui.UIPackage.createObject("Game", "GetReward").asCom),
    					this._getRewardWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._getRewardWindow.makeFullScreen(),
    					(this._getRewardWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._getRewardWindow),
    					Ge.instance.loadUI(this._getRewardWindow));
    		}
    		showLimitTimeGift() {
    			this._limitTimeGift
    				? (fgui.GRoot.inst.addChild(this._limitTimeGift), Fe.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Shop"],
    					Laya.Handler.create(this, this.onLimitTimeGiftLoaded)
    				);
    		}
    		onLimitTimeGiftLoaded() {
    			null == this._limitTimeGift &&
    				((this._limitTimeGift = fgui.UIPackage.createObject("Shop", "LimitTimeGift").asCom),
    					this._limitTimeGift.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._limitTimeGift.makeFullScreen(),
    					(this._limitTimeGift.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._limitTimeGift),
    					Fe.instance.loadUI(this._limitTimeGift));
    		}
    		showLimitTimeUse() {
    			this._limitTimeUse
    				? (fgui.GRoot.inst.addChild(this._limitTimeUse), Ye.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Shop"],
    					Laya.Handler.create(this, this.onLimitTimeUseLoaded)
    				);
    		}
    		onLimitTimeUseLoaded() {
    			if (null == this._limitTimeUse) {
    				switch (l.game_channel) {
    					case 0:
    					case 1:
    					case 2:
    					case 3:
    						this._limitTimeUse = fgui.UIPackage.createObject("Shop", "LimitTimeUse").asCom;
    						break;

    					case 4:
    						this._limitTimeUse = fgui.UIPackage.createObject("Shop", "LimitTimeUse1").asCom;
    				}
    				this._limitTimeUse.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._limitTimeUse.makeFullScreen(),
    					(this._limitTimeUse.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._limitTimeUse),
    					Ye.instance.loadUI(this._limitTimeUse);
    			}
    		}
    		showDialogMenu(e, t) {
    			(this.curDialogType = e),
    				(this.curDialogMsg = t),
    				this._dialogMenu
    					? (fgui.GRoot.inst.addChild(this._dialogMenu), Oe.instance.initUI())
    					: fgui.UIPackage.loadPackage(
    						["res/UI/Common", "res/UI/Game"],
    						Laya.Handler.create(this, this.onDialogMenuLoaded)
    					);
    		}
    		onDialogMenuLoaded() {
    			null == this._dialogMenu &&
    				((this._dialogMenu = fgui.UIPackage.createObject("Game", "DialogMenu").asCom),
    					this._dialogMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._dialogMenu.makeFullScreen(),
    					(this._dialogMenu.sortingOrder = 5),
    					fgui.GRoot.inst.addChild(this._dialogMenu),
    					Oe.instance.loadUI(this._dialogMenu));
    		}
    		showCheatMenu() {
    			this._cheatMenu
    				? (fgui.GRoot.inst.addChild(this._cheatMenu), Ve.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Cheat"],
    					Laya.Handler.create(this, this.onCheatMenuLoaded)
    				);
    		}
    		onCheatMenuLoaded() {
    			null == this._cheatMenu &&
    				((this._cheatMenu = fgui.UIPackage.createObject("Cheat", "CheatMenu").asCom),
    					this._cheatMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._cheatMenu.makeFullScreen(),
    					(this._cheatMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._cheatMenu),
    					Ve.instance.loadUI(this._cheatMenu));
    		}
    		showQuestionMenu() {
    			//FIX问题反馈弹窗
    			// this._questionMenu
    			//   ? (fgui.GRoot.inst.addChild(this._questionMenu), Ke.instance.initUI())
    			//   : fgui.UIPackage.loadPackage(
    			//       ["res/UI/Common", "res/UI/GameEnter"],
    			//       Laya.Handler.create(this, this.onQuestionMenuLoaded)
    			//     );
    		}
    		onQuestionMenuLoaded() {
    			null == this._questionMenu &&
    				((this._questionMenu = fgui.UIPackage.createObject("GameEnter", "QuestionMenu").asCom),
    					this._questionMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._questionMenu.makeFullScreen(),
    					(this._questionMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._questionMenu),
    					Ke.instance.loadUI(this._questionMenu, this));
    		}
    		showMoreGameMenu() {
    			this._moreGameMenu
    				? (fgui.GRoot.inst.addChild(this._moreGameMenu), We.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/MoreGame"],
    					Laya.Handler.create(this, this.onMoreGameMenuLoaded)
    				);
    		}
    		onMoreGameMenuLoaded() {
    			null == this._moreGameMenu &&
    				(fgui.UIObjectFactory.setExtension("ui://MoreGame/mgItem", dt),
    					(this._moreGameMenu = fgui.UIPackage.createObject("MoreGame", "MoreGameMenu").asCom),
    					this._moreGameMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._moreGameMenu.makeFullScreen(),
    					(this._moreGameMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._moreGameMenu),
    					We.instance.loadUI(this._moreGameMenu));
    		}
    		showLimitGetMenu(e) {
    			(this.curLimitGetOpenPos = e),
    				this._limitTimesGet
    					? (fgui.GRoot.inst.addChild(this._limitTimesGet), je.instance.initUI())
    					: fgui.UIPackage.loadPackage(
    						["res/UI/Common", "res/UI/Shop"],
    						Laya.Handler.create(this, this.onLimitGetMenuLoaded)
    					);
    		}
    		onLimitGetMenuLoaded() {
    			null == this._limitTimesGet &&
    				((this._limitTimesGet = fgui.UIPackage.createObject("Shop", "LimitTimesGet").asCom),
    					this._limitTimesGet.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._limitTimesGet.makeFullScreen(),
    					(this._limitTimesGet.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._limitTimesGet),
    					je.instance.loadUI(this._limitTimesGet));
    		}
    		showLimitTryMenu(e, t) {
    			(this.curLimitTryCarType = e),
    				(this.curLimitTryOpenPos = t),
    				this._limitTimesTry
    					? (fgui.GRoot.inst.addChild(this._limitTimesTry), Xe.instance.initUI(e))
    					: fgui.UIPackage.loadPackage(
    						["res/UI/Common", "res/UI/Shop"],
    						Laya.Handler.create(this, this.onLimitTryMenuLoaded)
    					);
    		}
    		onLimitTryMenuLoaded() {
    			null == this._limitTimesTry &&
    				((this._limitTimesTry = fgui.UIPackage.createObject("Shop", "LimitTimeTry").asCom),
    					this._limitTimesTry.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._limitTimesTry.makeFullScreen(),
    					(this._limitTimesTry.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._limitTimesTry),
    					Xe.instance.loadUI(this._limitTimesTry, this.curLimitTryCarType));
    		}
    		showShareGameMenu() {
    			this._shareGame
    				? (fgui.GRoot.inst.addChild(this._shareGame), Je.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Share"],
    					Laya.Handler.create(this, this.onShareGameMenuLoaded)
    				);
    		}
    		onShareGameMenuLoaded() {
    			null == this._shareGame &&
    				((this._shareGame = fgui.UIPackage.createObject("Share", "ShareMenu").asCom),
    					this._shareGame.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._shareGame.makeFullScreen(),
    					(this._shareGame.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._shareGame),
    					Je.instance.loadUI(this._shareGame));
    		}
    		showCollectionGameMenu() {
    			this._collectionGame
    				? (fgui.GRoot.inst.addChild(this._collectionGame), ze.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Share"],
    					Laya.Handler.create(this, this.onCollectionGameMenuLoaded)
    				);
    		}
    		onCollectionGameMenuLoaded() {
    			if (null == this._collectionGame) {
    				switch (l.game_channel) {
    					case 1:
    						this._collectionGame = fgui.UIPackage.createObject("Share", "CollectionMenu").asCom;
    						break;

    					case 4:
    						this._collectionGame = fgui.UIPackage.createObject("Share", "CollectionMenu1").asCom;
    				}
    				this._collectionGame.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._collectionGame.makeFullScreen(),
    					(this._collectionGame.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._collectionGame),
    					ze.instance.loadUI(this._collectionGame);
    			}
    		}
    		showHideBoxMenu() {
    			this._hideBoxMenu
    				? (fgui.GRoot.inst.addChild(this._hideBoxMenu), Ze.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Game"],
    					Laya.Handler.create(this, this.onHideBoxMenuLoaded)
    				);
    		}
    		onHideBoxMenuLoaded() {
    			null == this._hideBoxMenu &&
    				((this._hideBoxMenu = fgui.UIPackage.createObject("Game", "HideBox").asCom),
    					this._hideBoxMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._hideBoxMenu.makeFullScreen(),
    					(this._hideBoxMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._hideBoxMenu),
    					Ze.instance.loadUI(this._hideBoxMenu));
    		}
    		showQuickWinMenu() {
    			this._quickWinMenu
    				? (fgui.GRoot.inst.addChild(this._quickWinMenu), Qe.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Game"],
    					Laya.Handler.create(this, this.onQuickWinMenuLoaded)
    				);
    		}
    		onQuickWinMenuLoaded() {
    			null == this._quickWinMenu &&
    				((this._quickWinMenu = fgui.UIPackage.createObject("Game", "QuickWin").asCom),
    					this._quickWinMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._quickWinMenu.makeFullScreen(),
    					(this._quickWinMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._quickWinMenu),
    					Qe.instance.loadUI(this._quickWinMenu));
    		}
    		showSmallMsgMenu() {
    			this._smallMessage
    				? (fgui.GRoot.inst.addChild(this._smallMessage), qe.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Vivo"],
    					Laya.Handler.create(this, this.onSmallMsgMenuLoaded)
    				);
    		}
    		onSmallMsgMenuLoaded() {
    			null == this._smallMessage &&
    				((this._smallMessage = fgui.UIPackage.createObject("Vivo", "SmallMessage").asCom),
    					this._smallMessage.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._smallMessage.makeFullScreen(),
    					(this._smallMessage.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._smallMessage),
    					qe.instance.loadUI(this._smallMessage));
    		}
    		showBlessingBagMenu() {
    			this._blessingBag
    				? (fgui.GRoot.inst.addChild(this._blessingBag), $e.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Vivo"],
    					Laya.Handler.create(this, this.onBlessingBagMenuLoaded)
    				);
    		}
    		onBlessingBagMenuLoaded() {
    			null == this._blessingBag &&
    				((this._blessingBag = fgui.UIPackage.createObject("Vivo", "BlessingBag").asCom),
    					this._blessingBag.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._blessingBag.makeFullScreen(),
    					(this._blessingBag.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._blessingBag),
    					$e.instance.loadUI(this._blessingBag));
    		}
    		showGoToTeachTip() {
    			this._goToTeachTip
    				? (fgui.GRoot.inst.addChild(this._goToTeachTip), et.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/GameEnter"],
    					Laya.Handler.create(this, this.onGoToTeachLoaded)
    				);
    		}
    		onGoToTeachLoaded() {
    			null == this._goToTeachTip &&
    				((this._goToTeachTip = fgui.UIPackage.createObject("GameEnter", "GoToTeachTip").asCom),
    					this._goToTeachTip.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._goToTeachTip.makeFullScreen(),
    					(this._goToTeachTip.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._goToTeachTip),
    					et.instance.loadUI(this._goToTeachTip));
    		}
    		showPrivacyPolicyMenu() {
    			this._privacyPolicyWindow
    				? (fgui.GRoot.inst.addChild(this._privacyPolicyWindow), ot.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/PrivacyPolicy"],
    					Laya.Handler.create(this, this.onPrivacyPolicyLoaded)
    				);
    		}
    		onPrivacyPolicyLoaded() {
    			null == this._privacyPolicyWindow &&
    				((this._privacyPolicyWindow = fgui.UIPackage.createObject("PrivacyPolicy", "PrivacyPolicy").asCom),
    					this._privacyPolicyWindow.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._privacyPolicyWindow.makeFullScreen(),
    					(this._privacyPolicyWindow.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._privacyPolicyWindow),
    					ot.instance.loadUI(this._privacyPolicyWindow));
    		}
    		showTaskUnlockTip() {
    			this._taskUnlockTip
    				? (fgui.GRoot.inst.addChild(this._taskUnlockTip), st.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Task"],
    					Laya.Handler.create(this, this.onTaskUnlockTipLoaded)
    				);
    		}
    		onTaskUnlockTipLoaded() {
    			null == this._taskUnlockTip &&
    				((this._taskUnlockTip = fgui.UIPackage.createObject("Task", "TaskLockTip").asCom),
    					this._taskUnlockTip.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._taskUnlockTip.makeFullScreen(),
    					(this._taskUnlockTip.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._taskUnlockTip),
    					st.instance.loadUI(this._taskUnlockTip));
    		}
    		showToolMenu() {
    			this._toolMenu
    				? (fgui.GRoot.inst.addChild(this._toolMenu), Z.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Main"],
    					Laya.Handler.create(this, this.onToolMenuLoaded)
    				);
    		}
    		onToolMenuLoaded() {
    			null == this._toolMenu &&
    				((this._toolMenu = fgui.UIPackage.createObject("Main", "ToolMenu").asCom),
    					this._toolMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._toolMenu.makeFullScreen(),
    					(this._toolMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._toolMenu),
    					Z.instance.loadUI(this._toolMenu));
    		}
    		showToolUnlockTip(e, t) {
    			(this.curUnlockToolOpenPos = t),
    				(this.curUnlockToolType = e),
    				this._toolUnlockTip
    					? (fgui.GRoot.inst.addChild(this._toolUnlockTip), it.instance.initUI(e, t))
    					: fgui.UIPackage.loadPackage(["res/UI/Common"], Laya.Handler.create(this, this.onToolUnlockTipLoaded));
    		}
    		onToolUnlockTipLoaded() {
    			null == this._toolUnlockTip &&
    				((this._toolUnlockTip = fgui.UIPackage.createObject("Common", "UnlockToolTip").asCom),
    					this._toolUnlockTip.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._toolUnlockTip.makeFullScreen(),
    					(this._toolUnlockTip.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._toolUnlockTip),
    					it.instance.loadUI(this._toolUnlockTip, this.curUnlockToolType, this.curUnlockToolOpenPos));
    		}
    		showStageUnlockTip(e) {
    			(this.curNeedCarType = e),
    				this._stageUnlockTip
    					? (fgui.GRoot.inst.addChild(this._stageUnlockTip), at.instance.initUI(e))
    					: fgui.UIPackage.loadPackage(
    						["res/UI/Common", "res/UI/Task"],
    						Laya.Handler.create(this, this.onStageUnlockTipLoaded)
    					);
    		}
    		onStageUnlockTipLoaded() {
    			null == this._stageUnlockTip &&
    				((this._stageUnlockTip = fgui.UIPackage.createObject("Task", "StageUnlockTip").asCom),
    					this._stageUnlockTip.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._stageUnlockTip.makeFullScreen(),
    					(this._stageUnlockTip.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._stageUnlockTip),
    					at.instance.loadUI(this._stageUnlockTip, this.curNeedCarType));
    		}
    		showMuseumMenu() {
    			this._museumMenu
    				? (fgui.GRoot.inst.addChild(this._museumMenu), nt.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Museum"],
    					Laya.Handler.create(this, this.onMuseumMenuLoaded)
    				);
    		}
    		onMuseumMenuLoaded() {
    			null == this._museumMenu &&
    				(fgui.UIObjectFactory.setExtension("ui://Museum/museumItem", _t),
    					(this._museumMenu = fgui.UIPackage.createObject("Museum", "MuseumMenu").asCom),
    					this._museumMenu.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._museumMenu.makeFullScreen(),
    					(this._museumMenu.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._museumMenu),
    					nt.instance.loadUI(this._museumMenu));
    		}
    		showMuseumDetail() {
    			this._museumDetail
    				? (fgui.GRoot.inst.addChild(this._museumDetail), yt.instance.initUI())
    				: fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/Museum"],
    					Laya.Handler.create(this, this.onMuseumDetailLoaded)
    				);
    		}
    		onMuseumDetailLoaded() {
    			null == this._museumDetail &&
    				((this._museumDetail = fgui.UIPackage.createObject("Museum", "MuseumDetail").asCom),
    					this._museumDetail.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._museumDetail.makeFullScreen(),
    					(this._museumDetail.sortingOrder = this.uiOrder),
    					fgui.GRoot.inst.addChild(this._museumDetail),
    					yt.instance.loadUI(this._museumDetail));
    		}
    	}
    	(mt.isShowingDialog = !1), (mt.uiStates = []);
    	class pt {
    		constructor() {
    			this.index = 0;
    		}
    		initData(e, t, s) {
    			(this.index = e), (this.page_obj = t), (this.nativePageData = s);
    		}
    	}
    	class Tt {
    		constructor() {
    			(this.iconAdDatas = []),
    				(this.moreGameDatas = []),
    				(this.vBidDatas = []),
    				(this.curIconAdIndex = 0),
    				(this.curMoreGameIndex = 0),
    				(this.curVBidIndex = 0),
    				(this.isDebug = !1),
    				(this.page_ad_index = 1),
    				(this.pagaDataIndex = 0),
    				(this.nativePages = []),
    				(this.isUpdateBanner = !1),
    				(this.isShowNativeBanner = !1),
    				(this.curBannerType = 0),
    				(this.isCanShowBanner = !1),
    				(this.nextGetBannerTime = 0),
    				(this.curNativeBannerIndex = 0),
    				(this.nativeBanner1Fail = !1),
    				(this.nativeBanner2Fail = !1),
    				(this.isUsePageIDForBanner = !1),
    				(this.page_ad_indexForBanner = 0),
    				(this.isStateRecord = !1),
    				(this.isGetMoreGameComplete = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Tt()), this._instance);
    		}
    		loadAdConfig() {
    			(Tt.isLoadConfigComplete = !1),
    				s.GET("https://cdn.lewhy.xyz/userver/config/85703350/1/ad_set.json", this.loadComplete.bind(this));
    		}
    		loadComplete(e) {
    			this.isDebug && console.log("loadComplete == data ==" + e);
    			let t = JSON.parse(e);
    			this.isDebug && console.log("jsonData.length ==" + t.length);
    			for (let e = 0; e < t.length; e++) {
    				let s = new i();
    				(s.ad_banner_1 = t[e].ad_banner_1),
    					(s.ad_banner_time_1 = t[e].ad_banner_time_1),
    					(s.ad_banner_2 = t[e].ad_banner_2),
    					(s.ad_banner_shield_1 = t[e].ad_banner_shield_1),
    					(s.ad_banner_delay_1 = t[e].ad_banner_delay_1),
    					(s.ad_banner_last_1 = t[e].ad_banner_last_1),
    					(s.ad_new_1 = t[e].ad_new_1),
    					(s.ad_new_shield_1 = t[e].ad_new_shield_1),
    					(s.ad_new_delay_1 = t[e].ad_new_delay_1),
    					(s.ad_new_2 = t[e].ad_new_2),
    					(s.ad_new_shield_2 = t[e].ad_new_shield_2),
    					(s.ad_new_delay_2 = t[e].ad_new_delay_2),
    					(s.ad_new_3 = t[e].ad_new_3),
    					(s.ad_new_shield_3 = t[e].ad_new_shield_3),
    					(s.ad_new_delay_3 = t[e].ad_new_delay_3),
    					(s.ad_new_4 = t[e].ad_new_4),
    					(s.ad_new_shield_4 = t[e].ad_new_shield_4),
    					(s.ad_new_delay_4 = t[e].ad_new_delay_4),
    					(s.ad_new_5 = t[e].ad_new_5),
    					(s.ad_new_shield_5 = t[e].ad_new_shield_5),
    					(s.ad_new_delay_5 = t[e].ad_new_delay_5),
    					(s.ad_new_6 = t[e].ad_new_6),
    					(s.ad_new_shield_6 = t[e].ad_new_shield_6),
    					(s.ad_new_delay_6 = t[e].ad_new_delay_6),
    					(s.ad_new_7 = t[e].ad_new_7),
    					(s.ad_new_shield_7 = t[e].ad_new_shield_7),
    					(s.ad_new_delay_7 = t[e].ad_new_delay_7),
    					(s.ad_new_8 = t[e].ad_new_8),
    					(s.ad_new_shield_8 = t[e].ad_new_shield_8),
    					(s.ad_new_delay_8 = t[e].ad_new_delay_8),
    					(s.ad_new_9 = t[e].ad_new_9),
    					(s.ad_new_shield_9 = t[e].ad_new_shield_9),
    					(s.ad_new_delay_9 = t[e].ad_new_delay_9),
    					(s.ad_new_10 = t[e].ad_new_10),
    					(s.ad_new_shield_10 = t[e].ad_new_shield_10),
    					(s.ad_new_delay_10 = t[e].ad_new_delay_10),
    					(s.ad_new_11 = t[e].ad_new_11),
    					(s.ad_new_shield_11 = t[e].ad_new_shield_11),
    					(s.ad_new_delay_11 = t[e].ad_new_delay_11),
    					Tt.ad_set_Map.set(t[e].id, s);
    			}
    			Tt.isLoadConfigComplete = !0;
    		}
    		checkIsJudgeArea() {
    			let e = Tt.ad_set_Map.get(1).ad_new_shield_1.split("|");
    			s.JudgeArea(e, function (e) {
    				console.log("isJudge =屏蔽= " + e), (Tt.isJudgeArea = e);
    			});
    		}
    		initHtAD() { }
    		initComplete(e, t) {
    			this.isDebug && (console.log("initComplete"), console.log(e), console.log(t)),
    				this.getIconAdData(),
    				this.getMoreGameData(),
    				this.getVerticalBidData();
    		}
    		getIconAdData() {
    			this.iconAdDatas.length > 0 && this.iconAdDatas.splice(0, this.iconAdDatas.length),
    				c.getBox(Tt.icon_bid, this.iconBidResult.bind(this));
    		}
    		iconBidResult(e, t) {
    			this.isDebug && (console.log("iconBidResult"), console.log(e), console.log(t));
    			let s = t[0];
    			if ((this.isDebug && console.log("datas.lengt == " + s.length), s.length > 0))
    				for (let e = 0; e < s.length; e++) {
    					let t = new a();
    					t.initData(s[e].iconUrl, s[e].jumpKey, s[e].mark, s[e].mid, s[e].txt), this.iconAdDatas.push(t);
    				}
    		}
    		openIconAdGame(e, t) { }
    		getMoreGameData() {
    			(this.isGetMoreGameComplete = !1),
    				this.moreGameDatas.length > 0 && this.moreGameDatas.splice(0, this.moreGameDatas.length),
    				c.getBox(Tt.moregame_bid, this.moreGameResult.bind(this));
    		}
    		moreGameResult(e, t) {
    			this.isDebug && (console.log("moreGameResult"), console.log(e), console.log(t));
    			let s = t;
    			if ((this.isDebug && console.log("datas.length == " + s.length), s.length > 0))
    				for (let e = 0; e < s.length; e++) {
    					let t = s[e];
    					if ((this.isDebug && console.log("gameDatas.length == " + t.length), t.length > 0))
    						for (let e = 0; e < t.length; e++) {
    							let s = new a();
    							s.initData(t[e].iconUrl, t[e].jumpKey, t[e].mark, t[e].mid, t[e].txt), this.moreGameDatas.push(s);
    						}
    				}
    			this.isGetMoreGameComplete = !0;
    		}
    		openMoreGame(e, t) { }
    		getVerticalBidData() {
    			this.vBidDatas.length > 0 && this.vBidDatas.splice(0, this.vBidDatas.length),
    				c.getBox(Tt.vGame_bid, this.VerticalBidResult.bind(this));
    		}
    		VerticalBidResult(e, t) {
    			this.isDebug && (console.log("VerticalBidResult"), console.log(e), console.log(t));
    			let s = t;
    			if (s.length > 0)
    				for (let e = 0; e < s.length; e++) {
    					let t = s[e];
    					if ((this.isDebug && console.log("gameDatas.length == " + t.length), t.length > 0))
    						for (let e = 0; e < t.length; e++) {
    							let s = new a();
    							s.initData(t[e].iconUrl, t[e].jumpKey, t[e].mark, t[e].mid, t[e].txt), this.vBidDatas.push(s);
    						}
    				}
    		}
    		openVBGame(e, t) {
    			if ((console.log("微信appId == jumpKey == " + e), console.log("mid == " + t), 2 == l.game_channel)) {
    				const s = window.qg;
    				s && s.navigateToMiniGame && (s.navigateToMiniGame = s.navigateToMiniProgram),
    					c.navigateToMiniProgram(
    						{
    							appId: e,
    							success: function () {
    								c.jumpTo(Tt.vGame_bid, t);
    							},
    							fail: function (e) {
    								console.log(JSON.stringify(e)), c.jumpFail(Tt.vGame_bid, t);
    							},
    						},
    						s
    					);
    			} else
    				c.navigateToMiniProgram({
    					appId: e,
    					success: function () {
    						c.jumpTo(Tt.vGame_bid, t);
    					},
    					fail: function (e) {
    						console.log(JSON.stringify(e)), c.jumpFail(Tt.vGame_bid, t);
    					},
    				});
    		}
    		addPageAdData(e, t) {
    			let s = new pt();
    			s.initData(this.pagaDataIndex, e, t), this.nativePages.push(s), (this.pagaDataIndex += 1);
    		}
    	}
    	(Tt.isJudgeArea = !1),
    		(Tt.isBannerAdOutScreen = !1),
    		(Tt.isBannerAdShow = !1),
    		(Tt.isNativeBannerAdShow = !1),
    		(Tt.isLoadConfigComplete = !1),
    		(Tt.curOffsetY = 0),
    		(Tt.isCheckScreen = !1),
    		(Tt.gid = "6130bdc3242975467dad3e72"),
    		(Tt.icon_bid = "61358516818c711b59ff0f59"),
    		(Tt.moregame_bid = "61358529818c711b59ff0f60"),
    		(Tt.vGame_bid = "6135853e818c711b59ff0f64"),
    		(Tt.ad_set_Map = new Map());
    	class wt extends Laya.Script {
    		constructor() {
    			super(), (this.isDebug = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new wt()), this._instance.init(), this._instance);
    		}
    		static randomRange(e, t) {
    			return Math.floor(Math.random() * (t - e + 1) + e);
    		}
    		static isOverlap(e, t) {
    			const s = e.x,
    				i = e.y,
    				a = s + e.width,
    				n = i + e.height,
    				o = t.x,
    				r = t.y,
    				c = o + t.width;
    			return !(r + t.height < i || n < r || s > c || o > a);
    		}
    		static angleToRadian(e) {
    			return (e * Math.PI) / 180;
    		}
    		static radianToAngle(e) {
    			return (180 * e) / Math.PI;
    		}
    		static changeAngle360(e) {
    			let t = e % 360;
    			return t < 0 && (t += 360), t;
    		}
    		static CreateBezierPoints(e, t) {
    			for (var s = [], i = 0; i < t; i++) {
    				var a = this.MultiPointBezier(e, i / t);
    				s.push(a);
    			}
    			return s;
    		}
    		static MultiPointBezier(e, t) {
    			let s = e.length,
    				i = 0,
    				a = 0;
    			for (let n = 0; n < s; n++) {
    				let o = e[n];
    				(i += o.x * Math.pow(1 - t, s - 1 - n) * Math.pow(t, n) * this.erxiangshi(s - 1, n)),
    					(a += o.y * Math.pow(1 - t, s - 1 - n) * Math.pow(t, n) * this.erxiangshi(s - 1, n));
    			}
    			return {
    				x: i,
    				y: a,
    			};
    		}
    		static erxiangshi(e, t) {
    			let s = 1,
    				i = 1;
    			for (; t > 0;) (s *= e), (i *= t), e--, t--;
    			return s / i;
    		}
    		static getDistance(e, t) {
    			let s = t.x - e.x,
    				i = t.y - e.y;
    			return Math.sqrt(s * s + i * i);
    		}
    		init() { }
    	}
    	var Ct = Laya.Vector3,
    		Pt = Laya.Quaternion;
    	class Lt extends Laya.Script3D {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.curPlayer = null),
    				(this.canRotation_X = !0),
    				(this.canRotation_Y = !0),
    				(this.canScale = !0),
    				(this.farZ = 9),
    				(this.farY = 6),
    				(this.scale = 0.6),
    				(this.cameraRotateSpeed = 0.2),
    				(this.AroundPos = new Ct()),
    				(this.mouseSettings = new ft(0, 0.1, 0.3)),
    				(this.angleRange = new bt(10, 60)),
    				(this.distanceRange = new bt(0.5, 0.5)),
    				(this.damper = 5),
    				(this.CurrentAngles = new Ct()),
    				(this.CurrentAnglesTemp = new Ct()),
    				(this.targetAngles = new Ct()),
    				(this.oldPosition1 = new Ct()),
    				(this.oldPosition2 = new Ct()),
    				(this.deltaWheel = 0),
    				(this.FORWORD = new Ct()),
    				(this.lastMouseX = 0),
    				(this.lastMouseY = 0),
    				(this.mouseRunning = !1),
    				(this.tempRotationZ = new Pt()),
    				(this.tempV = new Ct()),
    				(this.tempV1 = new Ct());
    		}
    		onStart() {
    			Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown),
    				Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove),
    				Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp),
    				Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel),
    				Laya.stage.on("resetCarema", this, this.resetCarema),
    				Laya.stage.on("setTeachCarema", this, this.setTeachCarema);
    		}
    		init(e) {
    			(this.curPlayer = e),
    				(this.transform = this.owner.transform),
    				(this.AroundPos.x = this.curPlayer.transform.localPositionX),
    				(this.AroundPos.y = this.curPlayer.transform.localPositionY),
    				(this.AroundPos.z = this.curPlayer.transform.localPositionZ),
    				(this.CurrentAngles = new Ct(this.angleRange.min, this.transform.localRotationEulerY, 0)),
    				(this.targetAngles = new Ct(this.angleRange.min, this.transform.localRotationEulerY, 0)),
    				(this.CurrentDistance = Ct.distance(this.transform.localPosition, this.AroundPos)),
    				(this.targetDistance = Ct.distance(this.transform.localPosition, this.AroundPos));
    		}
    		resetCarema(e) {
    			(this.AroundPos.x = this.curPlayer.transform.localPositionX),
    				(this.AroundPos.y = this.curPlayer.transform.localPositionY),
    				(this.AroundPos.z = this.curPlayer.transform.localPositionZ),
    				(this.CurrentAngles = new Ct(this.angleRange.min, e, 0)),
    				(this.targetAngles = new Ct(this.angleRange.min, e, 0)),
    				(this.CurrentDistance = Ct.distance(this.transform.localPosition, this.AroundPos)),
    				(this.targetDistance = Ct.distance(this.transform.localPosition, this.AroundPos)),
    				this.AroundByMouseInput();
    		}
    		setTeachCarema() {
    			switch (
    			(console.log(
    				"setTeachCarema == PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage
    			),
    				L.instance.playerInfo.teachStage)
    			) {
    				case 2:
    					(this.transform.position = new Laya.Vector3(0.48864952093004055, 0.21497567403316498, -0.9617908156294024)),
    						(this.transform.rotation = new Laya.Quaternion(
    							-0.0401730862476401,
    							0.8966231181077324,
    							0.08317721182248511,
    							0.43305272040427656
    						)),
    						(this.transform.localPosition = new Laya.Vector3(
    							0.48864952093004055,
    							0.21497567403316498,
    							-0.9617908156294024
    						)),
    						(this.transform.localRotation = new Laya.Quaternion(
    							-0.0401730862476401,
    							0.8966231181077324,
    							0.08317721182248511,
    							0.43305272040427656
    						)),
    						(this.transform.localRotationEuler = new Laya.Vector3(-10.6, 128.44059829059842, 0));
    					break;

    				case 3:
    					(this.transform.position = new Laya.Vector3(2.7512880186080935, 0.20984156090021133, -2.5856450971126557)),
    						(this.transform.rotation = new Laya.Quaternion(
    							-0.0700744476537694,
    							0.5925661690031283,
    							0.051853417535409646,
    							0.800790940401347
    						)),
    						(this.transform.localPosition = new Laya.Vector3(
    							2.7512880186080935,
    							0.20984156090021133,
    							-2.5856450971126557
    						)),
    						(this.transform.localRotation = new Laya.Quaternion(
    							-0.0700744476537694,
    							0.5925661690031283,
    							0.051853417535409646,
    							0.800790940401347
    						)),
    						(this.transform.localRotationEuler = new Laya.Vector3(-10.002033383124328, 73.00111366323445, 0));
    			}
    		}
    		showCraemaPos() {
    			this.isDebug &&
    				(console.log("================摄像机坐标====================================================="),
    					console.log(this.transform.position),
    					console.log(this.transform.rotation),
    					console.log(this.transform.localPosition),
    					console.log(this.transform.localRotation),
    					console.log(this.transform.localRotationEuler));
    		}
    		onUpdate() {
    			if (
    				Ie.instance.curStageIndex > 100 &&
    				(2 == L.instance.playerInfo.teachStage || 3 == L.instance.playerInfo.teachStage)
    			)
    				return (
    					f.instance.isShowTargetPosSign && Ie.instance.showTargetPos(),
    					f.instance.isShowDiggerPosSign && Ie.instance.showDiggerPos(),
    					void (f.instance.isShowPlacePosSign && Ie.instance.showPlacePos())
    				);
    			if (!f.instance.isAniTouchEnable && f.instance.isPlayerUpdate) {
    				if (
    					(f.instance.isForward ||
    						f.instance.isBackAway ||
    						f.instance.isLeft ||
    						f.instance.isRight ||
    						f.instance.isControl ||
    						this.AroundByMouseInput(),
    						f.instance.isForward || f.instance.isBackAway)
    				) {
    					(this.AroundPos.x = this.curPlayer.transform.localPositionX),
    						(this.AroundPos.y = this.curPlayer.transform.localPositionY),
    						(this.AroundPos.z = this.curPlayer.transform.localPositionZ),
    						this.isDebug &&
    						(console.log("this.targetAngles.x == " + this.targetAngles.x),
    							console.log("this.targetAngles.y ======== " + this.targetAngles.y),
    							console.log(
    								"this.curPlayer.transform.localRotationEulerY ======== " + this.curPlayer.transform.localRotationEulerY
    							));
    					let e = wt.changeAngle360(this.targetAngles.y);
    					this.isDebug &&
    						(console.log("deg =摄像机= " + e),
    							console.log(
    								"this.curPlayer.transform.localRotationEulerY == " + this.curPlayer.transform.localRotationEulerY
    							));
    					let t = wt.changeAngle360(this.curPlayer.transform.localRotationEulerY);
    					this.isDebug && console.log("deg1 =车= " + t),
    						e != t &&
    						(e > t
    							? e - t >= 180
    								? (this.targetAngles.y -= 100 * f.instance.curSpeed)
    								: (this.targetAngles.y += 100 * f.instance.curSpeed)
    							: e < t &&
    							(t - e >= 180
    								? (this.targetAngles.y += 100 * f.instance.curSpeed)
    								: (this.targetAngles.y -= 100 * f.instance.curSpeed)));
    				} else if (f.instance.isRunFont || f.instance.isRunBack) {
    					(this.AroundPos.x = this.curPlayer.transform.localPositionX),
    						(this.AroundPos.y = this.curPlayer.transform.localPositionY),
    						(this.AroundPos.z = this.curPlayer.transform.localPositionZ),
    						this.isDebug &&
    						(console.log("this.targetAngles.x == " + this.targetAngles.x),
    							console.log("this.targetAngles.y ======== " + this.targetAngles.y),
    							console.log(
    								"this.curPlayer.transform.localRotationEulerY ======== " + this.curPlayer.transform.localRotationEulerY
    							));
    					let e = wt.changeAngle360(this.targetAngles.y);
    					this.isDebug &&
    						(console.log("deg =摄像机= " + e),
    							console.log(
    								"this.curPlayer.transform.localRotationEulerY == " + this.curPlayer.transform.localRotationEulerY
    							));
    					let t = wt.changeAngle360(this.curPlayer.transform.localRotationEulerY);
    					this.isDebug && console.log("deg1 =车= " + t),
    						e != t &&
    						(e > t
    							? e - t >= 180
    								? (this.targetAngles.y -= 100 * f.instance.curSpeed)
    								: (this.targetAngles.y += 100 * f.instance.curSpeed)
    							: e < t &&
    							(t - e >= 180
    								? (this.targetAngles.y += 100 * f.instance.curSpeed)
    								: (this.targetAngles.y -= 100 * f.instance.curSpeed)));
    				}
    				this.canRotation_X || (this.targetAngles.y = 0),
    					this.canRotation_Y || (this.targetAngles.x = 0),
    					(this.CurrentAngles = this.LerpVector3(this.CurrentAngles, this.targetAngles, this.deltaTime * this.damper)),
    					(this.CurrentDistance = this.LerpNum(
    						this.CurrentDistance,
    						this.targetDistance,
    						this.deltaTime * this.damper
    					)),
    					(this.CurrentAnglesTemp.x = -this.CurrentAngles.x),
    					(this.CurrentAnglesTemp.y = this.CurrentAngles.y),
    					(this.CurrentAnglesTemp.z = this.CurrentAngles.z),
    					(f.instance.isForward || f.instance.isBackAway) && this.isDebug,
    					(this.transform.localRotationEuler = this.CurrentAnglesTemp),
    					Ct.scale(this.GetForward, this.CurrentDistance, this.tempV),
    					Ct.subtract(this.AroundPos, this.tempV, this.tempV1),
    					Ct.add(this.tempV1, new Ct(0, 0.12, 0), this.tempV1),
    					(this.transform.localPosition = this.tempV1),
    					(this.lastMouseX = Laya.stage.mouseX),
    					(this.lastMouseY = Laya.stage.mouseY),
    					f.instance.isShowTargetPosSign && Ie.instance.showTargetPos(),
    					f.instance.isShowDiggerPosSign && Ie.instance.showDiggerPos(),
    					f.instance.isShowPlacePosSign && Ie.instance.showPlacePos();
    			}
    		}
    		get TouchCount() {
    			return this.myevent ? this.myevent.touches.length : 0;
    		}
    		get Touchs() {
    			return this.myevent.touches;
    		}
    		get GetAxisX() {
    			return Laya.stage.mouseX - this.lastMouseX;
    		}
    		get GetAxisY() {
    			return Laya.stage.mouseY - this.lastMouseY;
    		}
    		get deltaTime() {
    			return Laya.timer.delta / 1e3;
    		}
    		get GetForward() {
    			return this.transform.getForward(this.FORWORD), this.FORWORD;
    		}
    		mouseDown(e) {
    			if (
    				Q.instance.isCanTouch(
    					l.BTN_TYPE.BTN_TYPE_SCREEN,
    					L.instance.playerInfo.teachStage,
    					L.instance.playerInfo.teachStep
    				) &&
    				!f.instance.isAniTouchEnable
    			)
    				return 3 == L.instance.playerInfo.teachStage && 1 == L.instance.playerInfo.teachStep
    					? (Q.instance.hideTeach(),
    						(L.instance.playerInfo.teachStep = 2),
    						L.instance.savePlayerInfoToLocalCache(),
    						Q.instance.stopNextStep(),
    						void Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep))
    					: void (
    						f.instance.isForward ||
    						f.instance.isBackAway ||
    						f.instance.isLeft ||
    						f.instance.isRight ||
    						f.instance.isControl ||
    						((this.mouseRunning = !0), (this.lastMouseX = Laya.stage.mouseX), (this.lastMouseY = Laya.stage.mouseY))
    					);
    		}
    		mouseMove(e) {
    			this.myevent = e;
    		}
    		mouseWheel(e) {
    			this.deltaWheel = e.delta;
    		}
    		mouseUp(e) {
    			this.mouseRunning = !1;
    		}
    		Clamp(e, t, s) {
    			return e < t ? t : e > s ? s : e;
    		}
    		LerpVector3(e, t, s) {
    			var i = new Ct();
    			return (i.x = e.x + s * (t.x - e.x)), (i.y = e.y + s * (t.y - e.y)), (i.z = e.z + s * (t.z - e.z)), i;
    		}
    		LerpNum(e, t, s) {
    			return e + s * (t - e);
    		}
    		AroundByMobileInput() {
    			if (
    				(this.isDebug && (console.log("AroundByMobileInput"), console.log("this.TouchCount == " + this.TouchCount)),
    					1 == this.TouchCount &&
    					(console.log(this.targetAngles),
    						this.mouseRunning &&
    						((this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity),
    							(this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity),
    							(this.targetAngles.y = this.Clamp(this.targetAngles.y, this.angleRange.min, this.angleRange.max)),
    							(this.m_IsSingleFinger = !0))),
    					this.canScale && this.TouchCount > 1)
    			) {
    				this.m_IsSingleFinger &&
    					((this.oldPosition1 = new Ct(this.Touchs[0].stageX, this.Touchs[0].stageY)),
    						(this.oldPosition2 = new Ct(this.Touchs[1].stageX, this.Touchs[1].stageY)));
    				var e = new Ct(this.Touchs[0].stageX, this.Touchs[0].stageY),
    					t = new Ct(this.Touchs[1].stageX, this.Touchs[1].stageY),
    					s = Ct.distance(e, t),
    					i = Ct.distance(this.oldPosition1, this.oldPosition2);
    				(this.targetDistance -= (s - i) * this.deltaTime * this.mouseSettings.wheelSensitivity),
    					(this.oldPosition1 = e),
    					(this.oldPosition2 = t),
    					(this.m_IsSingleFinger = !1),
    					(this.targetDistance = this.Clamp(this.targetDistance, this.distanceRange.min, this.distanceRange.max));
    			}
    		}
    		AroundByMouseInput() {
    			this.isDebug &&
    				(console.log("this.mouseRunning == " + this.mouseRunning), console.log("this.canScale == " + this.canScale)),
    				this.mouseRunning &&
    				((this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity),
    					(this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity),
    					(this.targetAngles.x = this.Clamp(this.targetAngles.x, this.angleRange.min, this.angleRange.max))),
    				this.canScale &&
    				((this.targetDistance -= this.deltaWheel * this.mouseSettings.wheelSensitivity),
    					(this.deltaWheel = 0),
    					(this.targetDistance = this.Clamp(this.targetDistance, this.distanceRange.min, this.distanceRange.max)));
    		}
    	}
    	class ft {
    		constructor(e, t, s) {
    			(this.mouseButtonID = e), (this.pointerSensitivity = t), (this.wheelSensitivity = s);
    		}
    	}
    	class bt {
    		constructor(e, t) {
    			(this.min = e), (this.max = t);
    		}
    	}
    	class It extends Laya.Script {
    		constructor() {
    			super(...arguments), (this.isDebug = !1), (this.hideHealthTipTime = 0), (this.curValue = 0), (this.step = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new It()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._loadingBar = this._view.getChild("n5").asProgress),
    				(this._loadingBar.value = 0),
    				(this._loadingBar.max = 100),
    				(this._loadingBar1 = this._loadingBar.getChild("n11").asProgress),
    				(this._loadingBar1.value = 0),
    				(this._loadingBar1.max = 100),
    				(this._btnRetry = this._view.getChild("n7").asButton),
    				this._btnRetry.onClick(this, this.onClickRetry),
    				(this._btnRetry.visible = !1),
    				(this._healthTip = this._view.getChild("n11").asCom),
    				3 == l.game_channel
    					? ((this._healthTip.visible = !0), this.startHideHealthTip())
    					: (this._healthTip.visible = !1),
    				this.showLoadingBarAni(),
    				Laya.stage.on("showRetryBtn", this, this.showRetryBtn),
    				Laya.stage.on("hideRetryBtn", this, this.hideRetryBtn),

    				(this._view.getChildAt(2).asLoader.url = "");
    		}
    		startHideHealthTip() {
    			(this.hideHealthTipTime = 0), Laya.timer.loop(1e3, this, this.hideHealthTip);
    		}
    		hideHealthTip() {
    			(this.hideHealthTipTime += 1),
    				this.hideHealthTipTime >= 3 && (Laya.timer.clear(this, this.hideHealthTip), (this._healthTip.visible = !1));
    		}
    		showRetryBtn() {
    			this.isDebug && console.log("showRetryBtn"), (this._btnRetry.visible = !0), this.showBtnTip(!0);
    		}
    		hideRetryBtn() {
    			this.isDebug && console.log("hideRetryBtn"), (this._btnRetry.visible = !1), this.showBtnTip(!1);
    		}
    		onClickRetry() {
    			L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				D.SendEvent("点击重新连接按钮的人数", 4003, !0),
    				D.SendEvent("点击重新连接按钮的次数", 4004, !1),
    				V.instance.reLoadAllRes(),
    				(f.instance.curProgress = 0),
    				Laya.stage.event("updateProgress", f.instance.curProgress);
    		}
    		showBtnTip(e) {
    			this.isDebug && console.log("showBtnTip == isShow == " + e),
    				e
    					? this._view.getTransition("t0").play(Laya.Handler.create(this, this.callBack1), -1)
    					: (this._view.getTransition("t0").stop(), this._btnRetry.setScale(1, 1));
    		}
    		callBack1() { }
    		showLoading(e) {
    			(this._view.visible = e), e ? this.showLoadingBarAni() : this.stopLoadingBarAni();
    		}
    		setProgressValue(e) {
    			this._loadingBar.value = e;
    		}
    		showProgressAni(e, t) {
    			(this.callBack = t),
    				(this._loadingBar1.value = 0),
    				this._loadingBar1.tweenValue(this._loadingBar1.max, e),
    				Laya.timer.frameLoop(1, this, this.onComplete, [this._loadingBar1.value, this._loadingBar1.max]);
    		}
    		stopProgressAni() {
    			Laya.timer.clear(this, this.onComplete);
    		}
    		onComplete(e, t) {
    			this.isDebug && (console.log("curValue == " + e), console.log("maxValue == " + t)),
    				e == t && (Laya.timer.clear(this, this.onComplete), this.callBack());
    		}
    		showLoadingBarAni() {
    			this.isDebug && console.log("showLoadingBarAni"),
    				(this.step = f.instance.getRandouNum(3, 8)),
    				(this.curValue = 0),
    				(this._loadingBar1.value = 0),
    				Laya.timer.frameLoop(1, this, this.onComplete1);
    		}
    		stopLoadingBarAni() {
    			Laya.timer.clear(this, this.onComplete1);
    		}
    		onComplete1() {
    			(this.curValue += this.step),
    				this.curValue >= 100
    					? ((this.step = f.instance.getRandouNum(3, 8)), (this.curValue = 0))
    					: (this._loadingBar1.value = this.curValue);
    		}
    	}
    	class kt extends Laya.Script {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.isConfigLoaded = !1),
    				(this.isLoginFinished = !1),
    				(this.handInitPosX = 0),
    				(this.handInitPosY = 0),
    				(this.isPlayLight = !1),
    				(this.playLigth = !1),
    				(this.offsetX = 0),
    				(this.offsetY = 0),
    				(this.startTime = 0),
    				(this.loadTime = 10),
    				(this.loadTime1 = 30),
    				(this.uid = ""),
    				(this.tipTime = 0),
    				(this.tipTime1 = 0),
    				(this.iconAdTime = 0),
    				(this.isShowingIconAd = !1),
    				(this.isShake = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new kt()), this._instance.init(), this._instance);
    		}
    		init() { }
    		onAwake() {
    			this.isDebug && console.log("GameEnter onAwake");
    		}
    		onEnable() {
    			this.isDebug && console.log("GameEnter onEnable");
    		}
    		onStart() {
    			this.isDebug && console.log("GameEnter onStart");
    		}
    		onDisable() {
    			this.isDebug && console.log("GameEnter onDisable");
    		}
    		loadUI(e) {
    			switch (
    			(this.isDebug && console.log("GameEnter loadUI"),
    				(this._view = e),
    				console.log(this._view),
    				(this._coinValue = this._view.getChild("n5").asTextField),
    				(this._energyValue = this._view.getChild("n9").asTextField),
    				(this._btnAddCoin = this._view.getChild("n2").asButton),
    				this._btnAddCoin.onClick(this, this.onClickAddCoin),
    				(this._btnAddEnergy = this._view.getChild("n7").asButton),
    				this._btnAddEnergy.onClick(this, this.onClickAddEnergy),
    				(this._btnStartGame = this._view.getChild("n21").asButton),
    				this._btnStartGame.onClick(this, this.onClickStartGame),
    				(this._btnSetting = this._view.getChild("n22").asButton),
    				this._btnSetting.onClick(this, this.onClickSetting),
    				(this._btnGiftPackage = this._view.getChild("n23").asButton),
    				this._btnGiftPackage.onClick(this, this.onClickGiftPackage),
    				(this._btnAchieve = this._view.getChild("n24").asButton),
    				this._btnAchieve.onClick(this, this.onClickAchieve),
    				(this._btnGarage = this._view.getChild("n25").asButton),
    				this._btnGarage.onClick(this, this.onClickGarage),
    				(this._btnShop = this._view.getChild("n60").asButton),
    				this._btnShop.onClick(this, this.onClickGarage),
    				(this._btnSignIn = this._view.getChild("n28").asButton),
    				this._btnSignIn.onClick(this, this.onClickSignIn),
    				(this._btnLimitGift = this._view.getChild("n26").asButton),
    				this._btnLimitGift.onClick(this, this.onClickLimitGift),
    				(this._btnCheat = this._view.getChild("btnCheat").asButton),
    				this._btnCheat.onClick(this, this.onClickCheat),
    				(this._btnIconAD = this._view.getChild("btnIconAD").asButton),
    				this._btnIconAD.onClick(this, this.onClickIconAd),
    				(this._btnMoreGame = this._view.getChild("btnMoreGame").asButton),
    				this._btnMoreGame.onClick(this, this.onClickMoreGame),
    				this._btnMoreGame.visible = false,
    				(this._btnShare = this._view.getChild("n54").asButton),
    				this._btnShare.onClick(this, this.onClickShareGame),
    				(this._btnShareForTT = this._view.getChild("n64").asButton),
    				this._btnShareForTT.onClick(this, this.onClickShareGameForTT),
    				(this._btnCollection = this._view.getChild("n55").asButton),
    				this._btnCollection.onClick(this, this.onClickCollection),
    				this._btnCollection.visible = false,
    				(this._btnSave = this._view.getChild("n62").asButton),
    				this._btnSave.onClick(this, this.onClickSave),
    				//FIX添加桌面隐藏
    				this._btnSave.visible = false,
    				(this._btnTeach = this._view.getChild("n65").asButton),
    				this._btnTeach.onClick(this, this.onClickTeach),
    				//FIX首页教学隐藏
    				this._btnTeach.visible = false,
    				(this._btnMuseum = this._view.getChild("n67").asButton),
    				this._btnMuseum.onClick(this, this.onClickMuseum),
    				//FIX首页博物馆隐藏
    				this._btnMuseum.visible = false,
    				(this._flyIcon = this._view.getChild("n31").asImage),
    				(this._flyIcon.visible = !1),
    				(this._energyIcon = this._view.getChild("n10").asImage),
    				(this._energyTime = this._view.getChild("n46").asLabel),
    				(this._teachHandGroup = this._view.getChild("n39").asGroup),
    				(this._teachLight = this._view.getChild("n37").asImage),
    				(this._teachHand = this._view.getChild("n38").asImage),
    				(this._handTip = this._view.getChild("n59").asCom),
    				q.instance.loadUI(this._handTip),
    				(this._newTask = this._view.getChild("n47").asLabel),
    				(this._limitGet = this._view.getChild("n52").asGroup),
    				(this._limitGetLight = this._view.getChild("n51").asImage),
    				(this._btnLimitGet = this._view.getChild("n50").asButton),
    				this._btnLimitGet.onClick(this, this.onClickLimitGet),
    				(this._limitGetTime = this._view.getChild("n53").asLabel),
    				(this._version = this._view.getChild("version").asLabel),
    				(this._view.visible = !1),
    				this.showHandTip(!1, 0, 0, 0),
    				q.instance.showHandTip(!1, 0, 0, 0),
    				Laya.stage.on("upDateUI", this, this.upDateUI),
    				Laya.stage.on("updateWallet", this, this.setWallet),
    				Laya.stage.on("hideBtnGift", this, this.hideBtnGift),
    				Laya.stage.on("showOnLineRewardTip", this, this.showOnlineRewardTip),
    				Laya.stage.on("showBtnNew", this, this.showBtnNew),
    				Laya.stage.on("goToGame", this, this.goToGame),
    				Laya.stage.on("reLoadResouse", this, this.reLoadResouse),
    				Laya.stage.on("showCheatBtn", this, this.showCheatBtn),
    				Laya.stage.on("showEnergyTime", this, this.showEnergyTime),
    				Laya.stage.on("skipTeach", this, this.skipTeach),
    				Laya.stage.on("goToTeach", this, this.goToTeach),
    				Laya.stage.on("loadMainScene", this, this.loadMainScene),
    				l.game_channel)
    			) {
    				//FIX首页分享按钮
    				case 0:
    				case 1:
    					(this._btnShare.visible = !1),
    						(this._btnCollection.visible = !1),
    						(this._btnIconAD.visible = !0),
    						(this._btnSave.visible = !1),
    						(this._btnShareForTT.visible = !1),
    						(this._limitGet.y = 551),
    						null != Gt.instance.gametddCof_p6 && null != Gt.instance.gametddCof_p7
    							? (this._version.text =
    								"版本:" + Gt.instance.wx_version + "." + Gt.instance.gametddCof_p6 + "." + Gt.instance.gametddCof_p7)
    							: (this._version.text = "版本:" + Gt.instance.wx_version),
    						(this._btnGarage.visible = !0),
    						(this._btnShop.visible = !1);
    					this._version.visible = false;
    					break;

    				case 2:
    					(this._btnShare.visible = !1),
    						(this._btnCollection.visible = !1),
    						(this._btnIconAD.visible = !1),
    						(this._btnSave.visible = !1),
    						(this._btnShareForTT.visible = !1),
    						(this._limitGet.y = 230),
    						(this._version.text = "版本:1.0.0-1"),
    						(this._btnGarage.visible = !0),
    						(this._btnShop.visible = !1);
    					this._version.visible = false;
    					break;

    				case 3:
    					(this._btnShare.visible = !1),
    						(this._btnCollection.visible = !1),
    						(this._btnIconAD.visible = !1),
    						(this._btnSave.visible = !1),
    						(this._btnShareForTT.visible = !1),
    						(this._limitGet.y = 230),
    						(this._version.text = "版本:1.0.0-1"),
    						(this._btnGarage.visible = !1),
    						(this._btnShop.visible = !0);
    					this._version.visible = false;
    					break;

    				case 4:
    					(this._btnShare.visible = !1),
    						(this._btnCollection.visible = !1),
    						(this._btnIconAD.visible = !1),
    						(this._btnSave.visible = !1),
    						(this._btnShareForTT.visible = !0),
    						(this._limitGet.y = 230),
    						(this._version.text = "版本:1.0.1-2"),
    						(this._btnGarage.visible = !0),
    						(this._btnShop.visible = !1),
    						(this._newTask.y = 680),
    						(this._btnStartGame.y = 793);
    					this._version.visible = false;
    			}
    			mt.instance.pushMenu(l.UI_STATE.UI_STATE_LOADING),
    				A.instance.isUseCheat ? (this._btnCheat.visible = !0) : (this._btnCheat.visible = !1),
    				this.showBtnNew(1, !1),
    				this.showBtnNew(2, !1),
    				this.showBtnNew(3, !1),
    				this.showBtnNew(4, !1),
    				this.showBtnNew(5, !1),
    				this.initUI();
    		}
    		initUI() {
    			this.isDebug &&
    				(console.log("GameEnter initUI"),
    					console.log("PlayerData.instance.settingInfo.isMusic == " + L.instance.settingInfo.isMusic)),
    				D.SendEvent("记录loading开始时的人数（每个账号只记录一次）首次加载", 4001, !0),
    				D.SendEvent("进入游戏次数", 1e3, !1),
    				this.loadConfig(),
    				(this.startTime = 0),
    				(f.instance.curProgress = 0),
    				Laya.timer.loop(this.loadTime, this, this.startLoadRes),
    				Laya.stage.event("updateProgress", f.instance.curProgress),

    				(this._view.getChildAt(1).asLoader.url = "");
    		}
    		onComplete() {
    			this.isDebug && console.log("GameEnter onComplete");
    		}
    		upDateUI(e) {
    			switch ((this.isDebug && console.log("GameEnter upDateUI == index == " + e), e)) {
    				case 0:
    					switch ((this.setWallet(), A.instance.startCheckFunctionIsComplete(), this.setNewTask(), l.game_channel)) {
    						case 0:
    						case 1:
    							this.showIconAD(), A.instance.isShowGameClub || ((A.instance.isShowGameClub = !0), this.showGameHub(!0));
    					}
    					this.showLimitGetBtn();
    			}
    		}
    		showCheatBtn() {
    			A.instance.isUseCheat && (this._btnCheat.visible = !0);
    		}
    		hideBtnGift() {
    			this._btnGiftPackage.visible = !1;
    		}
    		setWallet() {
    			(this._coinValue.text = "" + Math.floor(L.instance.playerInfo.gold)),
    				(this._energyValue.text =
    					Math.floor(L.instance.playerInfo.energy) + "/" + C.Config_Energy_Map.get(1).energy_limit);
    		}
    		showEnergyTime(e, t) {
    			(this._energyTime.visible = e), e && this.setTime(t);
    		}
    		setTime(e) {
    			let t = e / 60,
    				s = e % 60,
    				i = "";
    			(i += t < 10 ? "0" + Math.floor(t) : "" + Math.floor(t)),
    				(i += ":"),
    				(i += s < 10 ? "0" + Math.floor(s) : "" + Math.floor(s)),
    				(this._energyTime.text = i);
    		}
    		showOnlineRewardTip(e) {
    			e
    				? this._view.getTransition("t1").play(Laya.Handler.create(this, this.callBack), -1)
    				: (this._view.getTransition("t1").stop(), this._btnLimitGift.setScale(1, 1));
    		}
    		callBack() { }
    		setNewTask() {
    			let e = 0;
    			for (let t = 0; t < L.instance.playerInfo.stageDatas.length; t++)
    				if (0 == L.instance.playerInfo.stageDatas[t].stageState) {
    					e = t;
    					break;
    				}
    			if ((console.log("newNormalTaskIndex == " + e), 0 == e))
    				if (0 == L.instance.playerInfo.stageDatas[0].stageState)
    					this._newTask.text = "新任务：" + f.instance.getTaskName(e + 1);
    				else {
    					let e = 0;
    					for (let t = 0; t < L.instance.playerInfo.advStageDatas.length; t++)
    						if (0 == L.instance.playerInfo.advStageDatas[t].stageState) {
    							e = t;
    							break;
    						}
    					this._newTask.text = "新任务：" + f.instance.getTaskName(13 + e + 1) + "(挑战)";
    				}
    			else this._newTask.text = "新任务：" + f.instance.getTaskName(e + 1);
    		}
    		onClickAddCoin() {
    			this.isDebug && console.log("onClickAddCoin"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_BUY_COIN) && mt.instance.showBuyCoinMenu();
    		}
    		onClickAddEnergy() {
    			this.isDebug && console.log("onClickAddEnergy"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_BUY_ENERGY) && mt.instance.showBuyEnergyMenu();
    		}
    		onClickSetting() {
    			this.isDebug && console.log("onClickSetting"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_SETTING) && mt.instance.showSettingMenu();
    		}
    		onClickGiftPackage() {
    			this.isDebug && console.log("onClickGiftPackage"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_SUPER_GIFT) && mt.instance.showSuperGiftMenu();
    		}
    		onClickLimitGift() {
    			this.isDebug && console.log("onClickLimitGift"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				L.instance.playerInfo.onlineRewardTimes <= 4
    					? mt.instance.pushMenu(l.UI_STATE.UI_STATE_ONLINE_GIFT) && mt.instance.showLimitTimeGift()
    					: mt.instance.showDialogMenu(8, "今日的在线礼包已经领完啦，明天再来吧");
    		}
    		onClickLimitGet() {
    			this.isDebug && console.log("onClickLimitGet"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMITGET) && mt.instance.showLimitGetMenu(0);
    		}
    		onClickSignIn() {
    			this.isDebug && console.log("onClickSignIn"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_SING_IN) && mt.instance.showSignInMenu();
    		}
    		onClickGarage() {
    			this.isDebug && console.log("onClickGarage"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_GARAGE) && mt.instance.showGarageMenu();
    		}
    		onClickAchieve() {
    			this.isDebug && console.log("onClickAchieve"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_ACHIEVE) && mt.instance.showAchieveMenu();
    		}
    		onClickStartGame() {
    			this.isDebug && console.log("onClickStartGame"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				D.SendEvent("玩家首次点击开始游戏", 1019, !0),
    				B.ShuFenReport_guide("lost016", 1),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_TASK) && mt.instance.showTaskMenu(0);
    		}
    		onClickCheat() {
    			this.isDebug && console.log("onClickCheat"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_CHEAT) && mt.instance.showCheatMenu();
    		}
    		goToGame() {
    			switch (
    			(this.isDebug && console.log("goToGame"),
    				It.instance.showLoading(!0),
    				L.instance.settingInfo.isMusic &&
    				A.instance.isBGMPlaying &&
    				(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1)),
    				A.instance.stopCheckFunctionIsComplete(),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_HALL),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_LOADING),
    				(this._view.visible = !1),
    				this.stopLimitGetTime(),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    					A.instance.isShowGameClub && ((A.instance.isShowGameClub = !1), this.showGameHub(!1));
    			}
    			this.stopStartGameTip(),
    				q.instance.stopStartGameTip(),
    				1 == l.game_channel && Gt.instance.MoveOutBanner(),
    				1 == Ie.instance.curStageIndex && D.SendEvent("玩家进入关卡1的loading", 1021, !0),
    				(f.instance.curProgress = 0),
    				Laya.stage.event("updateProgress", f.instance.curProgress),
    				Laya.stage.event("loadGameScene"),
    				Laya.timer.loop(50, this, this.waitLoadGameResComplete);
    		}
    		loadConfig() {
    			this.isDebug && console.log("loadConfig"),
    				(this.isConfigLoaded = !1),
    				C.LoadConfig(this.loadConfigComplete.bind(this));
    		}
    		loadConfigComplete(e, t) {
    			this.isDebug && (console.log("main loaded_count == " + e), console.log("main config_count == " + t)),
    				e == t && (this.isDebug && console.log("配置加载完成"), (this.isConfigLoaded = !0));
    		}
    		startLoadRes() {
    			this.isDebug && console.log("this.curProgress == " + f.instance.curProgress),
    				(f.instance.curProgress += 1),
    				f.instance.curProgress >= 30 && this.isConfigLoaded
    					? ((f.instance.curProgress = 30),
    						Laya.timer.clear(this, this.startLoadRes),
    						Laya.stage.event("updateProgress", f.instance.curProgress),
    						Laya.timer.loop(this.loadTime, this, this.waitLoginComplete),
    						L.instance.loadGlobalCache(),
    						L.instance.userId ? (this.uid = L.instance.userId) : (this.uid = P.generateGuestAccount()),
    						this.isDebug && console.log("this.uid = " + this.uid),
    						this.startLogin())
    					: (f.instance.curProgress >= 30 && (f.instance.curProgress = 30),
    						Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		waitLoginComplete() {
    			(f.instance.curProgress += 1),
    				f.instance.curProgress >= 100 && this.isLoginFinished
    					? ((f.instance.curProgress = 100),
    						Laya.timer.clear(this, this.waitLoginComplete),
    						Laya.stage.event("updateProgress", f.instance.curProgress),
    						(A.instance.isCheckTime = !0),
    						L.instance.saveSettingInfoToLocalCache(),
    						A.instance.reSetFristDot(),
    						console.log("PlayerData.instance.playerInfo.isNewPlayer == " + L.instance.playerInfo.isNewPlayer),
    						l.isUsePrivacyPolicy && L.instance.playerInfo.isNewPlayer
    							? (It.instance.showLoading(!1), Laya.stage.event("showLoginView", [!0]))
    							: (Laya.stage.event("showLoginView", [!1]), this.loadMainScene()))
    					: (f.instance.curProgress >= 100 && (f.instance.curProgress = 100),
    						Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		startLogin() {
    			P.instance.setUserId(this.uid),
    				this.isDebug && console.log("当前时间 == " + Date.now()),
    				L.instance.syncServerTime(Date.now()),
    				this.userLogin();
    		}
    		userLogin() {
    			this.isDebug && console.log("PlayerData.instance.playerInfo.createDate == " + L.instance.playerInfo.createDate);
    			let e = Laya.LocalStorage.getItem(l.LOCAL_CACHE.CREATEDATA);
    			this.isDebug && console.log("isCreateData == " + e),
    				"" == e || null == e ? L.instance.createPlayerInfo() : L.instance.loadFromCache(),
    				this.isDebug && console.log("login finished!"),
    				(this.isLoginFinished = !0);
    		}
    		loadMainScene() {
    			if (
    				(this.isDebug &&
    					(console.log("this.isConfigLoaded == " + this.isConfigLoaded),
    						console.log("this.isLoginFinished == " + this.isLoginFinished)),
    					!this.isConfigLoaded || !this.isLoginFinished)
    			)
    				return (
    					this.isConfigLoaded &&
    					this.isDebug &&
    					(console.log("this.isConfigLoaded" + this.isConfigLoaded), console.log("配置加载完成")),
    					void (
    						this.isLoginFinished &&
    						this.isDebug &&
    						(console.log("this.isLoginFinished" + this.isLoginFinished), console.log("登录完成"))
    					)
    				);
    			0 == L.instance.settingInfo.isHigh &&
    				((L.instance.settingInfo.isHigh = 1), L.instance.saveSettingInfoToLocalCache());
    			let e = (new Date().getTime() - L.instance.playerInfo.reEnergyStartTime) / 1e3 / 60 / 5;
    			switch (
    			(L.instance.playerInfo.energy < C.Config_Energy_Map.get(1).energy_limit &&
    				((L.instance.playerInfo.energy += e),
    					L.instance.playerInfo.energy >= C.Config_Energy_Map.get(1).energy_limit &&
    					(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_limit),
    					(L.instance.playerInfo.reEnergyStartTime = new Date().getTime()),
    					L.instance.savePlayerInfoToLocalCache()),
    				Laya.stage.event("startRestoreEnergy"),
    				A.instance.reSetGameDataByPreDay(),
    				L.instance.playerInfo.isNewLoginPlayer
    					? ((L.instance.playerInfo.isNewLoginPlayer = !1),
    						L.instance.savePlayerInfoToLocalCache(),
    						console.log("新玩家"),
    						(f.instance.isNewPlayer = !0))
    					: (f.instance.isNewPlayer = !1),
    				L.instance.settingInfo.isMusic &&
    				(A.instance.isBGMPlaying ||
    					((A.instance.isBGMPlaying = !0),
    						Laya.SoundManager.playMusic("res/sound/M_menu_00.mp3", 0, new Laya.Handler(this, this.onComplete)))),
    				this.setWallet(),
    				this.setNewTask(),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    					this.showIconAD(), A.instance.isShowGameClub || ((A.instance.isShowGameClub = !0), this.showGameHub(!0));
    			}
    			(f.instance.isGamePreLoad = !1),
    				Laya.stage.event("hideRetryBtn"),
    				It.instance.showLoading(!1),
    				(this._view.visible = !0),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_LOADING),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_HALL),
    				D.SendEvent("进入游戏大厅主界面", 1001, !0),
    				(Tt.instance.isUpdateBanner = !0),
    				this.startStartGameTip(),
    				this.showLimitGetBtn(),
    				L.instance.playerInfo.limitGetShowed || q.instance.startHandTip(2, this._btnLimitGet.x, this._btnLimitGet.y),
    				A.instance.startCheckFunctionIsComplete(),
    				l.isUsePreLoadInHall && 0 == L.instance.playerInfo.teachStage && V.instance.preLoadResInHall(),
    				!L.instance.playerInfo.isCompleteTeach && f.instance.isNewPlayer
    					? mt.instance.pushMenu(l.UI_STATE.UI_STATE_GOTOTEACH) && mt.instance.showGoToTeachTip()
    					: this.skipTeach();
    		}
    		loadGameRes() {
    			V.instance.loadAllRes(), Laya.timer.loop(50, this, this.loadGameResComplete);
    		}
    		loadGameResComplete() {
    			if (
    				(this.isDebug &&
    					(console.log("loadGameResComplete"),
    						console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage)),
    					(f.instance.curProgress += 1),
    					0 == L.instance.playerInfo.teachStage)
    			)
    				if (V.instance.checkAllComplete() && f.instance.curProgress > 100) {
    					switch (
    					((f.instance.curProgress = 100),
    						Laya.stage.event("updateProgress", f.instance.curProgress),
    						Laya.timer.clear(this, this.loadGameResComplete),
    						L.instance.settingInfo.isMusic &&
    						(A.instance.isBGMPlaying ||
    							((A.instance.isBGMPlaying = !0),
    								Laya.SoundManager.playMusic("res/sound/M_menu_00.mp3", 0, new Laya.Handler(this, this.onComplete)))),
    						this.setWallet(),
    						this.setNewTask(),
    						l.game_channel)
    					) {
    						case 0:
    						case 1:
    							this.showIconAD(), A.instance.isShowGameClub || ((A.instance.isShowGameClub = !0), this.showGameHub(!0));
    					}
    					if (
    						(this.showLimitGetBtn(),
    							(f.instance.isGamePreLoad = !1),
    							Laya.stage.event("hideRetryBtn"),
    							It.instance.showLoading(!1),
    							(this._view.visible = !0),
    							mt.instance.popMenu(l.UI_STATE.UI_STATE_LOADING),
    							mt.instance.pushMenu(l.UI_STATE.UI_STATE_HALL),
    							(Tt.instance.isUpdateBanner = !0),
    							this.startStartGameTip(),
    							L.instance.playerInfo.limitGetShowed ||
    							q.instance.startHandTip(2, this._btnLimitGet.x, this._btnLimitGet.y),
    							A.instance.startCheckFunctionIsComplete(),
    							L.instance.playerInfo.isSignInCurDay ||
    							(mt.instance.pushMenu(l.UI_STATE.UI_STATE_SING_IN) && mt.instance.showSignInMenu()),
    							1 == l.game_channel &&
    							((null != L.instance.playerInfo.isHadCollectionGame &&
    								null != L.instance.playerInfo.isHadCollectionGame) ||
    								((L.instance.playerInfo.isHadCollectionGame = !1), L.instance.savePlayerInfoToLocalCache()),
    								!L.instance.playerInfo.isHadCollectionGame))
    					) {
    						let e = Gt.instance.getLaunchOptionsSync();
    						this.isDebug && (console.log("sceneNum == " + e), console.log(e)),
    							1089 == e.scene &&
    							((L.instance.playerInfo.isHadCollectionGame = !0),
    								L.instance.savePlayerInfoToLocalCache(),
    								(L.instance.playerInfo.gold += 500),
    								L.instance.savePlayerInfoToLocalCache(),
    								Laya.stage.event("updateWallet"),
    								(mt.instance.getRewardMenuType = 0),
    								(mt.instance.getItemValue = 500),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward());
    					}
    				} else
    					f.instance.curProgress >= 100 && (f.instance.curProgress = 100),
    						Laya.stage.event("updateProgress", f.instance.curProgress);
    			else
    				V.instance.checkAllComplete() && f.instance.curProgress > 70
    					? ((f.instance.curProgress = 70),
    						Laya.stage.event("updateProgress", f.instance.curProgress),
    						Laya.timer.clear(this, this.loadGameResComplete),
    						this.isDebug &&
    						(console.log("判断是否有教程，如果有教程直接进入教程，如果没有教程，进入游戏大厅"),
    							console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage)),
    						(f.instance.isGamePreLoad = !1),
    						Laya.stage.event("hideRetryBtn"),
    						Laya.stage.event("initTeach"),
    						(Ie.instance.curStageIndex = 100 + L.instance.playerInfo.teachStage),
    						Laya.stage.event("loadTeachScene"),
    						Laya.timer.loop(50, this, this.waitLoadGameResComplete))
    					: (f.instance.curProgress >= 70 && (f.instance.curProgress = 70),
    						Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		waitLoadGameResComplete() {
    			(f.instance.curProgress += 1),
    				this.isDebug &&
    				(console.log("waitLoadGameResComplete"),
    					console.log("gameLogic.instance.isLoadUIComplete == " + f.instance.isLoadUIComplete),
    					console.log("gameLogic.instance.isLoadSceneComplete == " + f.instance.isLoadSceneComplete)),
    				2 == Ie.instance.curStageIndex || 1 == Ie.instance.curStageIndex
    					? f.instance.isLoadUIComplete &&
    						f.instance.isLoadSceneComplete &&
    						f.instance.isLoadTeachUIComplete &&
    						f.instance.curProgress >= 85
    						? (this.isDebug &&
    							(console.log("gameLogic.instance.isLoadUIComplete == " + f.instance.isLoadUIComplete),
    								console.log("gameLogic.instance.isLoadSceneComplete == " + f.instance.isLoadSceneComplete)),
    							(f.instance.curProgress = 85),
    							Laya.stage.event("updateProgress", f.instance.curProgress),
    							Laya.timer.clear(this, this.waitLoadGameResComplete),
    							Laya.stage.event("loadStageMap"),
    							Laya.timer.loop(50, this, this.waitLoadStageResComplete))
    						: (f.instance.curProgress >= 85 && (f.instance.curProgress = 85),
    							Laya.stage.event("updateProgress", f.instance.curProgress))
    					: f.instance.isLoadUIComplete && f.instance.isLoadSceneComplete && f.instance.curProgress >= 85
    						? (this.isDebug &&
    							(console.log("gameLogic.instance.isLoadUIComplete == " + f.instance.isLoadUIComplete),
    								console.log("gameLogic.instance.isLoadSceneComplete == " + f.instance.isLoadSceneComplete)),
    							(f.instance.curProgress = 85),
    							Laya.stage.event("updateProgress", f.instance.curProgress),
    							Laya.timer.clear(this, this.waitLoadGameResComplete),
    							Laya.stage.event("loadStageMap"),
    							Laya.timer.loop(50, this, this.waitLoadStageResComplete))
    						: (f.instance.curProgress >= 85 && (f.instance.curProgress = 85),
    							Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		waitLoadStageResComplete() {
    			if (
    				((f.instance.curProgress += 1),
    					this.isDebug &&
    					(console.log("waitLoadStageResComplete"),
    						console.log("gameLogic.instance.isLoadStageMapComplete == " + f.instance.isLoadStageMapComplete)),
    					f.instance.isLoadStageMapComplete && f.instance.curProgress >= 100)
    			) {
    				switch (
    				((f.instance.curProgress = 100),
    					Laya.stage.event("updateProgress", f.instance.curProgress),
    					Laya.timer.clear(this, this.waitLoadStageResComplete),
    					this.setWallet(),
    					this.setNewTask(),
    					l.game_channel)
    				) {
    					case 0:
    					case 1:
    						this.showIconAD();
    				}
    				L.instance.settingInfo.isMusic &&
    					A.instance.isBGMPlaying &&
    					(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1)),
    					A.instance.stopCheckFunctionIsComplete(),
    					D.SendEvent("记录loading结束时的人数（每个账号只记录一次）首次加载", 4002, !0),
    					Ie.instance.curStageIndex > 100 ? Laya.stage.event("showTeachScene") : Laya.stage.event("showGameScene");
    			} else
    				f.instance.curProgress >= 100 && (f.instance.curProgress = 100),
    					Laya.stage.event("updateProgress", f.instance.curProgress);
    		}
    		skipTeach() {
    			// if (L.instance.playerInfo.isSignInCurDay || mt.instance.pushMenu(l.UI_STATE.UI_STATE_SING_IN) && mt.instance.showSignInMenu(),
    			// 1 == l.game_channel && (null != L.instance.playerInfo.isHadCollectionGame && null != L.instance.playerInfo.isHadCollectionGame || (L.instance.playerInfo.isHadCollectionGame = !1,
    			// L.instance.savePlayerInfoToLocalCache()), !L.instance.playerInfo.isHadCollectionGame)) {
    			//     let e = Gt.instance.getLaunchOptionsSync();
    			//     this.isDebug && (console.log("sceneNum == " + e), console.log(e)), 1089 == e.scene && (L.instance.playerInfo.isHadCollectionGame = !0,
    			//     L.instance.savePlayerInfoToLocalCache(), L.instance.playerInfo.gold += 500, L.instance.savePlayerInfoToLocalCache(),
    			//     Laya.stage.event("updateWallet"), mt.instance.getRewardMenuType = 0, mt.instance.getItemValue = 500,
    			//     mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward());
    			// }
    		}
    		goToTeach() {
    			switch (
    			(D.SendEvent("进入教学关卡loading", 1003, !1),
    				It.instance.showLoading(!0),
    				L.instance.settingInfo.isMusic &&
    				A.instance.isBGMPlaying &&
    				(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1)),
    				A.instance.stopCheckFunctionIsComplete(),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_HALL),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_LOADING),
    				(this._view.visible = !1),
    				this.stopLimitGetTime(),
    				l.game_channel)
    			) {
    				case 0:
    				case 1:
    					A.instance.isShowGameClub && ((A.instance.isShowGameClub = !1), this.showGameHub(!1));
    			}
    			this.stopStartGameTip(),
    				q.instance.stopStartGameTip(),
    				1 == l.game_channel && Gt.instance.MoveOutBanner(),
    				(L.instance.playerInfo.teachStage = 1),
    				(L.instance.playerInfo.teachStep = 1),
    				L.instance.savePlayerInfoToLocalCache(),
    				(f.instance.curProgress = 0),
    				Laya.stage.event("updateProgress", f.instance.curProgress),
    				this.LoadTeachRes();
    		}
    		LoadTeachRes() {
    			V.instance.loadTeachRes(),
    				Laya.timer.loop(this.loadTime1, this, this.loadTeachResComplete),
    				l.isUseReloadFunction && ((f.instance.retryTime = 0), Laya.timer.loop(1e3, this, this.onShowRetryBtn));
    		}
    		loadTeachResComplete() {
    			(f.instance.curProgress += 1),
    				V.instance.checkLoadTeachComplete() && f.instance.curProgress > 70
    					? ((f.instance.curProgress = 70),
    						Laya.stage.event("updateProgress", f.instance.curProgress),
    						Laya.timer.clear(this, this.loadTeachResComplete),
    						l.isUseReloadFunction && (Laya.timer.clear(this, this.onShowRetryBtn), Laya.stage.event("hideRetryBtn")),
    						this.isDebug &&
    						(console.log("判断是否有教程，如果有教程直接进入教程，如果没有教程，进入游戏大厅"),
    							console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage)),
    						(f.instance.isGamePreLoad = !1),
    						Laya.stage.event("hideRetryBtn"),
    						Laya.stage.event("initTeach"),
    						(Ie.instance.curStageIndex = 100 + L.instance.playerInfo.teachStage),
    						Laya.stage.event("loadGameScene"),
    						Laya.timer.loop(50, this, this.waitLoadGameResComplete))
    					: (f.instance.curProgress >= 70 && (f.instance.curProgress = 70),
    						Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		onShowRetryBtn() {
    			(f.instance.retryTime += 1), f.instance.retryTime >= l.reloadWaitTime && Laya.stage.event("showRetryBtn");
    		}
    		showHandTip(e, t, s, i) {
    			if (((this._teachHandGroup.visible = e), (this._teachLight.visible = !0), e)) {
    				switch (t) {
    					case 1:
    						this._teachHand.setScale(1, 1), (this.offsetX = 50), (this.offsetY = 50);
    						break;

    					case 2:
    						this._teachHand.setScale(-1, 1), (this.offsetX = -50), (this.offsetY = 50);
    						break;

    					case 3:
    						this._teachHand.setScale(1, -1), (this.offsetX = 50), (this.offsetY = -50);
    						break;

    					case 4:
    						this._teachHand.setScale(-1, -1), (this.offsetX = -50), (this.offsetY = -50);
    				}
    				(this.handInitPosX = s),
    					(this.handInitPosY = i),
    					(this._teachLight.x = s),
    					(this._teachLight.y = i),
    					(this._teachHand.x = this.handInitPosX + this.offsetX),
    					(this._teachHand.y = this.handInitPosY + this.offsetY),
    					this._teachLight.setScale(1.5, 1.5),
    					(this._teachLight.alpha = 0),
    					(this.isPlayLight = !0),
    					(this.playLigth = !1),
    					(this.handTween1 = Laya.Tween.to(
    						this._teachHand,
    						{
    							x: this.handInitPosX,
    							y: this.handInitPosY,
    						},
    						500,
    						Laya.Ease.linearNone,
    						Laya.Handler.create(this, this.handMoveEnd1),
    						0
    					));
    			} else
    				this.handTween1 && Laya.Tween.clear(this.handTween1),
    					this.handTween2 && Laya.Tween.clear(this.handTween2),
    					this.lightTween1 && Laya.Tween.clear(this.lightTween1),
    					this.lightTween2 && Laya.Tween.clear(this.lightTween2);
    		}
    		handMoveEnd1() {
    			this.handTween1 && Laya.Tween.clear(this.handTween1),
    				(this.handTween2 = Laya.Tween.to(
    					this._teachHand,
    					{
    						x: this.handInitPosX + this.offsetX,
    						y: this.handInitPosY + this.offsetY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd2),
    					0
    				)),
    				this.isPlayLight &&
    				(this.playLigth ||
    					((this.playLigth = !0),
    						(this.lightTween1 = Laya.Tween.to(
    							this._teachLight,
    							{
    								scaleX: 1,
    								scaleY: 1,
    								alpha: 1,
    							},
    							500,
    							Laya.Ease.linearNone,
    							Laya.Handler.create(this, this.ligthEnd1),
    							0
    						))));
    		}
    		handMoveEnd2() {
    			this.handTween2 && Laya.Tween.clear(this.handTween2),
    				(this.handTween1 = Laya.Tween.to(
    					this._teachHand,
    					{
    						x: this.handInitPosX,
    						y: this.handInitPosY,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.handMoveEnd1),
    					0
    				));
    		}
    		ligthEnd1() {
    			this.handTween1 && Laya.Tween.clear(this.lightTween1),
    				(this.lightTween2 = Laya.Tween.to(
    					this._teachLight,
    					{
    						scaleX: 1.5,
    						scaleY: 1.5,
    						alpha: 0,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd2),
    					0
    				));
    		}
    		ligthEnd2() {
    			this.handTween2 && Laya.Tween.clear(this.lightTween2),
    				(this.lightTween1 = Laya.Tween.to(
    					this._teachLight,
    					{
    						scaleX: 1,
    						scaleY: 1,
    						alpha: 1,
    					},
    					500,
    					Laya.Ease.linearNone,
    					Laya.Handler.create(this, this.ligthEnd1),
    					0
    				));
    		}
    		showBtnNew(e, t) {
    			switch (
    			(this.isDebug && (console.log("showBtnNew == btnType == " + e), console.log("showBtnNew == isShow == " + t)), e)
    			) {
    				case 1:
    					this._btnLimitGift.getChild("n1").visible = t;
    					break;

    				case 2:
    					this._btnSignIn.getChild("n1").visible = t;
    					break;

    				case 3:
    					switch (l.game_channel) {
    						case 0:
    						case 1:
    						case 2:
    						case 4:
    							this._btnGarage.getChild("n1").visible = t;
    							break;

    						case 3:
    							this._btnShop.getChild("n1").visible = t;
    					}
    					break;

    				case 4:
    					this._btnAchieve.getChild("n1").visible = t;
    					break;

    				case 5:
    					this._btnGiftPackage.getChild("n1").visible = t;
    			}
    		}
    		reLoadResouse() {
    			Laya.timer.clear(this, this.startLoadRes),
    				(C.loaded_count = 0),
    				(this.isConfigLoaded = !1),
    				Laya.timer.clear(this, this.waitLoginComplete),
    				(this.isLoginFinished = !1),
    				Laya.timer.clear(this, this.loadGameResComplete),
    				this.loadConfig(),
    				(this.startTime = 0),
    				(f.instance.curProgress = 0),
    				Laya.timer.loop(50, this, this.startLoadRes),
    				Laya.stage.event("updateProgress", f.instance.curProgress);
    		}
    		startStartGameTip() {
    			(this.tipTime = 0),
    				this.showHandTip(!0, 1, this._btnStartGame.x, this._btnStartGame.y),
    				Laya.timer.loop(1e3, this, this.startGameTip);
    		}
    		startGameTip() {
    			(this.tipTime += 1),
    				this.tipTime > 3 &&
    				(Laya.timer.clear(this, this.startGameTip),
    					(this.tipTime1 = 0),
    					this.showHandTip(!1, 0, 0, 0),
    					Laya.timer.loop(1e3, this, this.nextStartGameTip));
    		}
    		nextStartGameTip() {
    			(this.tipTime1 += 1),
    				this.tipTime1 > 10 && (Laya.timer.clear(this, this.nextStartGameTip), this.startStartGameTip());
    		}
    		stopStartGameTip() {
    			Laya.timer.clear(this, this.startGameTip),
    				Laya.timer.clear(this, this.nextStartGameTip),
    				this.showHandTip(!1, 0, 0, 0);
    		}
    		showIconAD() {
    			(this._btnIconAD.visible = !1), (this.isShowingIconAd = !1);
    		}
    		nextIconAD() {
    			(this.iconAdTime += 1),
    				this.iconAdTime >= 3 &&
    				(Laya.timer.clear(this, this.nextIconAD),
    					(this.isShowingIconAd = !1),
    					(Tt.instance.curIconAdIndex += 1),
    					Tt.instance.curIconAdIndex >= Tt.instance.iconAdDatas.length && (Tt.instance.curIconAdIndex = 0),
    					this.showIconAD());
    		}
    		onClickIconAd() {
    			this.isDebug && console.log("onClickIconAd"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3");
    			let e = Tt.instance.iconAdDatas[Tt.instance.curIconAdIndex];
    			Tt.instance.openIconAdGame(e.jumpKey, e.mid);
    		}
    		onClickMoreGame() {
    			this.isDebug && console.log("onClickMoreGame"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Gt.instance.ClearCustomAd(!0),
    				Gt.instance.CreateCustomAd(6, !1, !0);
    		}
    		onClickShareGame() {
    			this.isDebug && console.log("onClickShareGame"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_SHAREGAME) && mt.instance.showShareGameMenu();
    		}
    		onClickTeach() {
    			this.isDebug && console.log("onClickTeach"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				Laya.stage.event("goToTeach");
    		}
    		onClickMuseum() {
    			this.isDebug && console.log("onClickMuseum"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_MUSEUM) && mt.instance.showMuseumMenu();
    		}
    		onClickShareGameForTT() {
    			switch (
    			(this.isDebug && console.log("onClickShareGameForTT"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				l.game_channel)
    			) {
    				case 4:
    					Gt.instance.ShareGame(this.shareGameSuccess.bind(this), this.shareGameFail.bind(this));
    			}
    		}
    		shareGameSuccess() { }
    		shareGameFail() { }
    		onClickCollection() {
    			this.isDebug && console.log("onClickCollection"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_COLLECTION) && mt.instance.showCollectionGameMenu();
    		}
    		onClickSave() {
    			this.isDebug && console.log("onClickSave"),
    				L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_COLLECTION) && mt.instance.showCollectionGameMenu();
    		}
    		showGameHub(e) {
    			Gt.instance.showGameClubBtn(e, 382, 10);
    		}
    		showNativeAD(e) {
    			this.isDebug && console.log("showNativeAD == isShow == " + e),
    				e
    					? Gt.instance.ShowNative(1420, 150, this.nativeSuc.bind(this), this.nativeFail.bind(this))
    					: Gt.instance.HideNative();
    		}
    		nativeSuc() {
    			this.isDebug && console.log("nativeSuc");
    		}
    		nativeFail() {
    			this.isDebug && console.log("nativeFail");
    		}
    		showLimitGetBtn() {
    			if (
    				(this.isDebug &&
    					(console.log("showLimitGetBtn"),
    						console.log("PlayerData.instance.playerInfo.limitGetShowed == " + L.instance.playerInfo.limitGetShowed)),
    					(null != L.instance.playerInfo.limitGetShowed && null != L.instance.playerInfo.limitGetShowed) ||
    					((L.instance.playerInfo.limitGetShowed = !1),
    						(L.instance.playerInfo.limitGetStartTime = 0),
    						L.instance.savePlayerInfoToLocalCache()),
    					L.instance.playerInfo.limitGetShowed)
    			)
    				this._limitGet.visible = !1;
    			else if (
    				(this.isDebug &&
    					console.log("PlayerData.instance.playerInfo.limitGetStartTime == " + L.instance.playerInfo.limitGetStartTime),
    					0 == L.instance.playerInfo.limitGetStartTime)
    			)
    				(L.instance.playerInfo.limitGetStartTime = new Date().getTime()),
    					L.instance.savePlayerInfoToLocalCache(),
    					(this._limitGet.visible = !0),
    					(f.instance.curLimitGetTime = 3600),
    					Laya.timer.loop(1e3, this, this.limitGetTime),
    					this.setLimitGetTime(f.instance.curLimitGetTime);
    			else {
    				let e = new Date().getTime();
    				console.log("curTime == " + e);
    				let t = L.instance.playerInfo.limitGetStartTime;
    				console.log("startTime == " + t);
    				let s = e - t;
    				console.log("time == " + s),
    					console.log("(time / 1000 / 3600) == " + s / 1e3 / 3600),
    					s / 1e3 / 3600 >= 1
    						? (Laya.timer.clear(this, this.limitGetTime),
    							(L.instance.playerInfo.limitGetShowed = !0),
    							L.instance.savePlayerInfoToLocalCache(),
    							(this._limitGet.visible = !1))
    						: (this.isShake ||
    							(3600 - Math.floor(s / 1e3) < 60 &&
    								((this.isShake = !0),
    									this._view.getTransition("t5").play(Laya.Handler.create(this, this.callBack), -1))),
    							(this._limitGet.visible = !0),
    							(f.instance.curLimitGetTime = 3600 - Math.floor(s / 1e3)),
    							Laya.timer.loop(1e3, this, this.limitGetTime),
    							this.setLimitGetTime(f.instance.curLimitGetTime));
    			}
    		}
    		limitGetTime() {
    			(f.instance.curLimitGetTime -= 1),
    				f.instance.curLimitGetTime <= 0
    					? (Laya.timer.clear(this, this.limitGetTime),
    						(L.instance.playerInfo.limitGetShowed = !0),
    						L.instance.savePlayerInfoToLocalCache(),
    						(this._limitGet.visible = !1))
    					: this.setLimitGetTime(f.instance.curLimitGetTime);
    		}
    		stopLimitGetTime() {
    			Laya.timer.clear(this, this.limitGetTime),
    				this.isShake && ((this.isShake = !1), this._view.getTransition("t5").stop()),
    				(this._limitGet.visible = !1),
    				q.instance.stopStartGameTip();
    		}
    		setLimitGetTime(e) {
    			let t = e / 60,
    				s = e % 60,
    				i = "";
    			(i += t < 10 ? "0" + Math.floor(t) : "" + Math.floor(t)),
    				(i += ":"),
    				(i += s < 10 ? "0" + Math.floor(s) : "" + Math.floor(s)),
    				(this._limitGetTime.text = i);
    		}
    	}
    	class Dt extends Laya.Script {
    		constructor() {
    			super(...arguments), (this.isDebug = !1), (this.isSelect = !1);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Dt()), this._instance.init(), this._instance);
    		}
    		init() { }
    		loadUI(e) {
    			(this._view = e),
    				(this._btnGoToGame = this._view.getChild("n17").asButton),
    				(this._btnSelect = this._view.getChild("n18").asButton),
    				(this._btnPrivacy = this._view.getChild("n20").asButton),
    				this._btnGoToGame.onClick(this, this.onClickGotoRoom),
    				this._btnSelect.onClick(this, this.onClickSelect),
    				this._btnPrivacy.onClick(this, this.onClickPrivacy),
    				(this._btnSelect.getChild("n1").visible = !1),
    				(this.isSelect = !1),
    				(this._btnGoToGame.enabled = !1);
    		}
    		onClickGotoRoom() {
    			L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				(L.instance.playerInfo.isNewPlayer = !1),
    				L.instance.savePlayerInfoToLocalCache(),
    				(this._view.visible = !1),
    				Laya.stage.event("loadMainScene");
    		}
    		onClickSelect() {
    			L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				this.isSelect
    					? ((this.isSelect = !1), (this._btnSelect.getChild("n1").visible = !1), (this._btnGoToGame.enabled = !1))
    					: ((this.isSelect = !0), (this._btnSelect.getChild("n1").visible = !0), (this._btnGoToGame.enabled = !0));
    		}
    		onClickPrivacy() {
    			L.instance.settingInfo.isSound && Laya.SoundManager.playSound("res/sound/M_button_01.mp3"),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_PRIVACYPOLICY) && mt.instance.showPrivacyPolicyMenu();
    		}
    	}
    	class vt extends Laya.Script3D {
    		constructor() {
    			super(),
    				(this.isDebug = !1),
    				(this.carSpeed = 0),
    				(this.carTurnSpeed = 0),
    				(this.carTurnAngle = 0),
    				(this.curPathIndex = 0),
    				(this.carPath = []),
    				(this.carDir = []),
    				(this.carState = 0),
    				(this.curCarType = 0);
    		}
    		onEnable() {
    			this.curNode = this.owner;
    		}
    		onDisable() { }
    		onUpdate() { }
    		initCar(e) {
    			switch (((this.curCarType = e), e)) {
    				case 1:
    					this.carPath.push(new Laya.Vector3(3.614, 0.0066, 1.029)),
    						this.carPath.push(new Laya.Vector3(3.614, 0.0066, -3.039)),
    						this.carPath.push(new Laya.Vector3(3.379, 0.0066, -3.2673)),
    						this.carPath.push(new Laya.Vector3(-0.585, 0.0066, -3.2673)),
    						this.carPath.push(new Laya.Vector3(-0.813, 0.0066, -3.026)),
    						this.carPath.push(new Laya.Vector3(-0.813, 0.0066, 1.011)),
    						this.carPath.push(new Laya.Vector3(-0.586, 0.0066, 1.248)),
    						this.carPath.push(new Laya.Vector3(3.373, 0.0066, 1.248)),
    						this.carDir.push(-180),
    						this.carDir.push(-90),
    						this.carDir.push(0),
    						this.carDir.push(90),
    						(this.carSpeed = 0.005),
    						(this.carTurnSpeed = 0.003),
    						(this.carTurnAngle = 1);
    					break;

    				case 2:
    					this.carPath.push(new Laya.Vector3(-0.838, 0.0037, -3.0241)),
    						this.carPath.push(new Laya.Vector3(-0.838, 0.0037, 1.0145)),
    						this.carPath.push(new Laya.Vector3(-0.585, 0.0037, 1.262)),
    						this.carPath.push(new Laya.Vector3(3.382, 0.0037, 1.262)),
    						this.carPath.push(new Laya.Vector3(3.618, 0.0037, 1.017)),
    						this.carPath.push(new Laya.Vector3(3.618, 0.0037, -3.044)),
    						this.carPath.push(new Laya.Vector3(3.368, 0.0037, -3.273)),
    						this.carPath.push(new Laya.Vector3(-0.588, 0.0037, -3.273)),
    						this.carDir.push(0),
    						this.carDir.push(90),
    						this.carDir.push(180),
    						this.carDir.push(270),
    						(this.carSpeed = 0.005),
    						(this.carTurnSpeed = 0.003),
    						(this.carTurnAngle = 1);
    			}
    			(this.curPathIndex = 0),
    				(this.carState = 0),
    				(1 != e && 2 != e) ||
    				((this.curNode.transform.localPosition = this.carPath[this.curPathIndex]),
    					(this.curNode.transform.localRotationEulerY = this.carDir[this.curPathIndex])),
    				(this.curNode.active = !1);
    		}
    		startRun() {
    			(this.curNode.active = !0), Laya.timer.loop(10, this, this.carMove);
    		}
    		stopRun() {
    			Laya.timer.clear(this, this.carMove), (this.curNode.active = !1);
    		}
    		carMove() {
    			switch (
    			(this.isDebug &&
    				(console.log(
    					"=============================================carMove=========================================="
    				),
    					console.log("this.carState == " + this.carState),
    					console.log("this.curNode.transform.localRotationEulerY == " + this.curNode.transform.localRotationEulerY)),
    				this.curCarType)
    			) {
    				case 1:
    					switch (this.carState) {
    						case 0:
    							switch (
    							(this.isDebug &&
    								(console.log("this.curPathIndex == " + this.curPathIndex),
    									console.log("this.carDir[this.curPathIndex] == " + this.carDir[this.curPathIndex])),
    								this.carDir[this.curPathIndex])
    							) {
    								case -180:
    									(this.curNode.transform.localPositionZ -= this.carSpeed),
    										this.curNode.transform.localPositionZ <= this.carPath[2 * this.curPathIndex + 1].z &&
    										(this.carState = 1);
    									break;

    								case -90:
    									(this.curNode.transform.localPositionX -= this.carSpeed),
    										this.curNode.transform.localPositionX <= this.carPath[2 * this.curPathIndex + 1].x &&
    										(this.carState = 1);
    									break;

    								case 0:
    									(this.curNode.transform.localPositionZ += this.carSpeed),
    										this.curNode.transform.localPositionZ >= this.carPath[2 * this.curPathIndex + 1].z &&
    										(this.carState = 1);
    									break;

    								case 90:
    									(this.curNode.transform.localPositionX += this.carSpeed),
    										this.curNode.transform.localPositionX >= this.carPath[2 * this.curPathIndex + 1].x &&
    										(this.carState = 1);
    							}
    							break;

    						case 1:
    							switch (this.carDir[this.curPathIndex]) {
    								case -180:
    									{
    										let e = this.curPathIndex + 1;
    										e > 3 && (e = 0),
    											(this.curNode.transform.localPositionX -= this.carTurnSpeed),
    											(this.curNode.transform.localPositionZ -= this.carTurnSpeed),
    											(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    											this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    											(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    											this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    											(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    											this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    											this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    											((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    												(this.curPathIndex = e),
    												(this.carState = 0));
    									}
    									break;

    								case -90:
    									{
    										let e = this.curPathIndex + 1;
    										e > 3 && (e = 0),
    											(this.curNode.transform.localPositionX -= this.carTurnSpeed),
    											(this.curNode.transform.localPositionZ += this.carTurnSpeed),
    											(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    											this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    											(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    											this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    											(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    											this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    											this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    											((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    												(this.curPathIndex = e),
    												(this.carState = 0));
    									}
    									break;

    								case 0:
    									{
    										let e = this.curPathIndex + 1;
    										e > 3 && (e = 0),
    											(this.curNode.transform.localPositionX += this.carTurnSpeed),
    											(this.curNode.transform.localPositionZ += this.carTurnSpeed),
    											(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    											this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    											(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    											this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    											(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    											this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    											this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    											((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    												(this.curPathIndex = e),
    												(this.carState = 0));
    									}
    									break;

    								case 90: {
    									let e = this.curPathIndex + 1;
    									e > 3 && (e = 0),
    										(this.curNode.transform.localPositionX += this.carTurnSpeed),
    										(this.curNode.transform.localPositionZ -= this.carTurnSpeed),
    										(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    										this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    										(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    										this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    										(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    										this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    										this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    										((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    											(this.curPathIndex = e),
    											(this.carState = 0));
    								}
    							}
    					}
    					break;

    				case 2:
    					switch (this.carState) {
    						case 0:
    							switch (
    							(this.isDebug &&
    								(console.log("this.curPathIndex == " + this.curPathIndex),
    									console.log("this.carDir[this.curPathIndex] == " + this.carDir[this.curPathIndex])),
    								this.carDir[this.curPathIndex])
    							) {
    								case 0:
    									(this.curNode.transform.localPositionZ += this.carSpeed),
    										this.curNode.transform.localPositionZ >= this.carPath[2 * this.curPathIndex + 1].z &&
    										(this.carState = 1);
    									break;

    								case 90:
    									(this.curNode.transform.localPositionX += this.carSpeed),
    										this.curNode.transform.localPositionX >= this.carPath[2 * this.curPathIndex + 1].x &&
    										(this.carState = 1);
    									break;

    								case 180:
    									(this.curNode.transform.localPositionZ -= this.carSpeed),
    										this.curNode.transform.localPositionZ <= this.carPath[2 * this.curPathIndex + 1].z &&
    										(this.carState = 1);
    									break;

    								case 270:
    									(this.curNode.transform.localPositionX -= this.carSpeed),
    										this.curNode.transform.localPositionX <= this.carPath[2 * this.curPathIndex + 1].x &&
    										(this.carState = 1);
    							}
    							break;

    						case 1:
    							switch (this.carDir[this.curPathIndex]) {
    								case 0:
    									{
    										let e = this.curPathIndex + 1;
    										e > 3 && (e = 0),
    											(this.curNode.transform.localPositionX += this.carTurnSpeed),
    											(this.curNode.transform.localPositionZ += this.carTurnSpeed),
    											(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    											this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    											(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    											this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    											(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    											this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    											this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    											((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    												(this.curPathIndex = e),
    												(this.carState = 0));
    									}
    									break;

    								case 90:
    									{
    										let e = this.curPathIndex + 1;
    										e > 3 && (e = 0),
    											(this.curNode.transform.localPositionX += this.carTurnSpeed),
    											(this.curNode.transform.localPositionZ -= this.carTurnSpeed),
    											(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    											this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    											(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    											this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    											(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    											this.curNode.transform.localPositionX >= this.carPath[2 * e].x &&
    											this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    											((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    												(this.curPathIndex = e),
    												(this.carState = 0));
    									}
    									break;

    								case 180:
    									{
    										let e = this.curPathIndex + 1;
    										e > 3 && (e = 0),
    											(this.curNode.transform.localPositionX -= this.carTurnSpeed),
    											(this.curNode.transform.localPositionZ -= this.carTurnSpeed),
    											(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    											this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    											(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    											this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    											(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    											this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    											this.curNode.transform.localPositionZ <= this.carPath[2 * e].z &&
    											((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    												(this.curPathIndex = e),
    												(this.carState = 0));
    									}
    									break;

    								case 270: {
    									let e = this.curPathIndex + 1;
    									e > 3 && (e = 0),
    										(this.curNode.transform.localPositionX -= this.carTurnSpeed),
    										(this.curNode.transform.localPositionZ += this.carTurnSpeed),
    										(this.curNode.transform.localRotationEulerY += this.carTurnAngle),
    										this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    										(this.curNode.transform.localPositionX = this.carPath[2 * e].x),
    										this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    										(this.curNode.transform.localPositionZ = this.carPath[2 * e].z),
    										this.curNode.transform.localPositionX <= this.carPath[2 * e].x &&
    										this.curNode.transform.localPositionZ >= this.carPath[2 * e].z &&
    										((this.curNode.transform.localRotationEulerY = this.carDir[e]),
    											(this.curPathIndex = e),
    											(this.carState = 0));
    								}
    							}
    					}
    			}
    		}
    	}
    	class At extends Laya.Script {
    		constructor() {
    			super(),
    				(this._hallView = null),
    				(this._loginView = null),
    				(this._loadingView = null),
    				(this._gameView = null),
    				(this._teachView = null),
    				(this._channelView = null),
    				(this.resType_WEIXIN = 2),
    				(this.scene = null),
    				(this.curPlayer = null),
    				(this.curMap = null),
    				(this.directionLight = null),
    				(this.carema = null),
    				(this.car_pickUp = null),
    				(this.car_bus = null),
    				(this.isDebug = !1),
    				(this.updateTimes = 0),
    				(this.delayBannerTimer = 0),
    				(this.isShowBanner = !1),
    				(this.isShowNative = !1),
    				(this.isLoadBannerAD = !1),
    				(this.bannerShowTime = 0),
    				(this.nativebannerShowTime = 0),
    				(this.nativeBannerIndex = 1),
    				(this.smallMsgTime = 0);
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new At()), this._instance.init(), this._instance);
    		}
    		init() { }
    		onEnable() {
    			switch (
    			(this.isDebug && console.log("onEnable"),
    				(At._instance = this),
    				(this.updateTimes = 0),
    				this.isDebug && console.log("Constant.game_channel == " + l.game_channel),
    				l.game_channel)
    			) {
    				case 0:
    					D.init(181001310, "web");
    					break;

    				case 1:
    					console.log("设微信资源路径"), D.init(189000007, "weixin");
    					break;

    				case 2:
    					console.log("设vivo资源路径"),
    						(Laya.URL.basePath = "https://www.dreamgear82.com/userver/resource/94864344/1/"),
    						D.init(189000005, "vivo");
    					break;

    				case 3:
    					console.log("设置oppo资源路径"),
    						(Laya.URL.basePath = "http://h5.dreamgear82.com/digger/1/"),
    						D.init(189000004, "oppo");
    					break;

    				case 4:
    					console.log("设置字节跳动资源路径"),
    						(Laya.URL.basePath = "https://res.dreamgear82.com/resources/98137272/2/"),
    						D.init(189000006, "tt");
    			}
    			switch ((D.Login(D.getUid()), l.game_channel)) {
    				case 0:
    				case 1:
    				case 2:
    				case 3:
    					Tt.instance.initHtAD();
    			}
    			Gt.instance.Init(),
    				L.instance.syncServerTime(Date.now()),
    				(fairygui.UIConfig.packageFileExtension = "txt"),
    				(f.instance.isLoadGameEnterUIComplete = !1),
    				(f.instance.isGamePreLoad = !0),
    				fgui.UIPackage.loadPackage(
    					["res/UI/Common", "res/UI/GameEnter", "res/UI/Channel"],
    					Laya.Handler.create(this, this.onGameEnterUILoaded)
    				),
    				Laya.stage.on("initTeach", this, this.initTeachView),
    				Laya.stage.on("loadStageMap", this, this.loadStageMap),
    				Laya.stage.on("loadGameScene", this, this.loadGameScene),
    				Laya.stage.on("loadTeachScene", this, this.loadTeachScene),
    				Laya.stage.on("nextTeachStage", this, this.nextTeachStage),
    				Laya.stage.on("resetPlayer", this, this.resetPlayer),
    				Laya.stage.on("updateProgress", this, this.updateProgress),
    				Laya.stage.on("showTeachScene", this, this.showTeachScene),
    				Laya.stage.on("showGameScene", this, this.showScene),
    				Laya.stage.on("backToHall", this, this.backToHall),
    				Laya.stage.on("reLoadGame", this, this.reLoadGame),
    				Laya.stage.on("goToNewStage", this, this.goToNewStage),
    				Laya.stage.on("startCarMove", this, this.startCarMove),
    				Laya.stage.on("startRestoreEnergy", this, this.startRestoreEnergy),
    				Laya.stage.on("startShowSmallDaoMsg", this, this.startShowSmallDaoMsg),
    				Laya.stage.on("showLoginView", this, this.showLoginView),
    				Laya.stage.on("changeCarReloadGame", this, this.changeCarReloadGame),
    				Gt.instance.ClearCustomAd(!0),
    				Gt.instance.CreateCustomAd(1),
    				Gt.instance.CreateCustomAd(2),
    				console.log("<>>>>>>>>>>>>>>>>>>>..");
    		}
    		onAudioInterruptionEnd() {
    			this.isDebug && console.log("onAudioInterruptionEnd");
    		}
    		onAudioInterruptionBegin() {
    			this.isDebug && console.log("onAudioInterruptionBegin");
    		}
    		onShow() {
    			this.isDebug && console.log("onShow"), 2 != l.game_channel && A.instance.resumeBgm();
    		}
    		onHide() {
    			this.isDebug && console.log("onHide"), 2 != l.game_channel && A.instance.PauseBgm();
    		}
    		onDisable() {
    			this.isDebug && console.log("onDisable");
    		}
    		onGameEnterUILoaded() {
    			switch (
    			(this.isDebug && console.log("onGameEnterUILoaded"),
    				Laya.stage.addChild(fgui.GRoot.inst.displayObject),
    				this.isDebug &&
    				(console.log("fgui.GRoot.inst.width == " + fgui.GRoot.inst.width),
    					console.log("fgui.GRoot.inst.height == " + fgui.GRoot.inst.height)),
    				this.initLoginView(),
    				this.initLoadView(),
    				this.initChannelView(),
    				this.initHallView(),
    				Gt.instance.onAudioInterruptionEnd(this.onAudioInterruptionEnd.bind(this)),
    				Gt.instance.onAudioInterruptionBegin(this.onAudioInterruptionBegin.bind(this)),
    				Gt.instance.onShow(this.onShow.bind(this)),
    				Gt.instance.onHide(this.onHide.bind(this)),
    				l.game_channel)
    			) {
    				case 0:
    					f.instance.isNewPlayer || this.startShowBannerAd();
    					break;

    				case 1:
    					this.startShowBannerAd();
    					break;

    				case 2:
    					this.startShowNativeBannerAd();
    					break;

    				case 3:
    					(Tt.instance.isCanShowBanner = !1),
    						(this.delayBannerTimer = 0),
    						Laya.timer.loop(1e3, this, this.delayShowBannerForOppo);
    			}
    			f.instance.isLoadGameEnterUIComplete = !0;
    		}
    		initLoadView() {
    			this.isDebug && console.log("initLoadView"),
    				null == this._loadingView
    					? ((this._loadingView = fgui.UIPackage.createObject("GameEnter", "GameLoading").asCom),
    						this._loadingView.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    						this._loadingView.makeFullScreen(),
    						fgui.GRoot.inst.addChild(this._loadingView),
    						It.instance.loadUI(this._loadingView),
    						(this._loadingView.sortingOrder = 5))
    					: It.instance.loadUI(this._loadingView);
    		}
    		initLoginView() {
    			this.isDebug && console.log("initLoginView"),
    				null == this._loginView
    					? ((this._loginView = fgui.UIPackage.createObject("GameEnter", "LogInMenu").asCom),
    						this._loginView.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    						this._loginView.makeFullScreen(),
    						fgui.GRoot.inst.addChild(this._loginView),
    						Dt.instance.loadUI(this._loginView),
    						(this._loginView.sortingOrder = 2))
    					: Dt.instance.loadUI(this._loginView);
    		}
    		showLoginView(e) {
    			console.log("isShow == " + e), (this._loginView.visible = e);
    		}
    		initTeachView() {
    			this.isDebug && console.log("initTeachView"),
    				(f.instance.isLoadTeachUIComplete = !1),
    				fgui.UIPackage.loadPackage(["res/UI/Common", "res/UI/Teach"], Laya.Handler.create(this, this.onTeachUILoaded));
    		}
    		onTeachUILoaded() {
    			null == this._teachView
    				? ((this._teachView = fgui.UIPackage.createObject("Teach", "teachMenu").asCom),
    					this._teachView.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    					this._teachView.makeFullScreen(),
    					fgui.GRoot.inst.addChild(this._teachView),
    					k.instance.loadUI(this._teachView),
    					(this._teachView.sortingOrder = 4))
    				: k.instance.loadUI(this._teachView),
    				(f.instance.isLoadTeachUIComplete = !0);
    		}
    		initHallView() {
    			this.isDebug && console.log("initHallView"),
    				null == this._hallView
    					? ((this._hallView = fgui.UIPackage.createObject("GameEnter", "GameEnter").asCom),
    						this._hallView.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    						this._hallView.makeFullScreen(),
    						fgui.GRoot.inst.addChild(this._hallView),
    						kt.instance.loadUI(this._hallView),
    						(this._hallView.sortingOrder = 0))
    					: kt.instance.loadUI(this._hallView);
    		}
    		initChannelView() {
    			this.isDebug && console.log("initChannelView"),
    				null == this._channelView
    					? ((this._channelView = fgui.UIPackage.createObject("Channel", "ChannelManager").asCom),
    						this._channelView.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height),
    						this._channelView.makeFullScreen(),
    						fgui.GRoot.inst.addChild(this._channelView),
    						Gt.instance.onLoad(this._channelView),
    						(this._channelView.sortingOrder = 6))
    					: Gt.instance.onLoad(this._channelView);
    		}
    		initGameView() {
    			this.isDebug && console.log("initGameView"),
    				null == this._gameView
    					? ((f.instance.isLoadUIComplete = !1),
    						fgui.UIPackage.loadPackage(["res/UI/Common", "res/UI/Main"], Laya.Handler.create(this, this.onUILoaded)))
    					: $.instance.loadUI(this._gameView);
    		}
    		onUILoaded() {
    			this.isDebug && console.log("onUILoaded"),
    				(this._gameView = fgui.UIPackage.createObject("Main", "Main").asCom),
    				this._gameView.makeFullScreen(),
    				fgui.GRoot.inst.addChild(this._gameView),
    				$.instance.loadUI(this._gameView),
    				(this._gameView.sortingOrder = 1),
    				(f.instance.isLoadUIComplete = !0);
    		}
    		loadTeachScene() {
    			this.isDebug && console.log("loadTeachScene"),
    				this.initGameView(),
    				(f.instance.isLoadSceneComplete = !1),
    				Laya.Scene3D.load(
    					"res/3DRes/LayaScene_MainScene/Conventional/MainScene.ls",
    					Laya.Handler.create(this, this.loadFinished)
    				);
    		}
    		loadGameScene() {
    			this.isDebug && console.log("loadGameScene"),
    				this.initGameView(),
    				(2 != Ie.instance.curStageIndex && 1 != Ie.instance.curStageIndex) || this.initTeachView(),
    				(f.instance.isLoadSceneComplete = !1),
    				console.log("Constant.isUseReloadFunction == " + l.isUseReloadFunction),
    				l.isUseReloadFunction && ((f.instance.retryTime = 0), Laya.timer.loop(1e3, this, this.onShowRetryBtn));
    			let e = 0;
    			(e = Ie.instance.curStageIndex > 100 ? 1 : 2 == L.instance.settingInfo.isHigh ? 3 : 2) !=
    				Ie.instance.curMapType &&
    				this.curMap &&
    				(this.curMap.destroy(), (this.curMap = null), (V.instance.isPreLoadMapResComplete = !1)),
    				V.instance.loadAllRes(),
    				Laya.timer.loop(10, this, this.onPreLoadFinish);
    		}
    		onPreLoadFinish() {
    			this.isDebug && console.log("onPreLoadFinish"),
    				V.instance.checkAllComplete() &&
    				(Laya.timer.clear(this, this.onPreLoadFinish),
    					l.isUseReloadFunction && (Laya.timer.clear(this, this.onShowRetryBtn), Laya.stage.event("hideRetryBtn")),
    					this.isDebug && console.log("加载场景"),
    					Laya.Scene3D.load(
    						"res/3DRes/LayaScene_MainScene/Conventional/MainScene.ls",
    						Laya.Handler.create(this, this.loadFinished)
    					));
    		}
    		onShowRetryBtn() {
    			this.isDebug && console.log("onShowRetryBtn === gameLogic.instance.retryTime == " + f.instance.retryTime),
    				(f.instance.retryTime += 1),
    				f.instance.retryTime >= l.reloadWaitTime && Laya.stage.event("showRetryBtn");
    		}
    		loadFinished(e) {
    			if (
    				(this.isDebug && console.log("loadFinished"),
    					(this.scene = e),
    					(this.scene.zOrder = -1),
    					Laya.stage.addChild(e),
    					this.isDebug &&
    					(console.log("this.curMap =========================================="),
    						console.log(this.curMap),
    						console.log("this.curMap ==========================================")),
    					null == this.curMap
    						? (Ie.instance.curStageIndex > 100
    							? (this.isDebug && console.log("practice_map.lh"),
    								(this.curMap = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/practice_map.lh")),
    								(Ie.instance.curMapType = 1))
    							: 2 == L.instance.settingInfo.isHigh
    								? (this.isDebug && console.log("MAP.lh"),
    									(this.curMap = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/MAP.lh")),
    									(Ie.instance.curMapType = 3))
    								: (this.isDebug && console.log("MAP.lh"),
    									(this.curMap = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/map_low.lh")),
    									(Ie.instance.curMapType = 2)),
    							this.scene.addChild(this.curMap))
    						: this.scene.addChild(this.curMap),
    					this.isDebug &&
    					(console.log("this.curPlayer =========================================="),
    						console.log(this.curPlayer),
    						console.log("this.curPlayer ==========================================")),
    					null == this.curPlayer)
    			) {
    				let e = 0;
    				switch (
    				((e = f.instance.curTryCarType > 0 ? f.instance.curTryCarType : L.instance.carInfo.curUseCar),
    					this.isDebug && console.log("loadCarType === " + e),
    					e)
    				) {
    					case 1:
    					case 5:
    					case 6:
    					case 7:
    					case 8:
    						(this.curPlayer = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/WJJ.lh")),
    							this.curPlayer.addComponent(X).loadCar(e);
    						break;

    					case 2:
    					case 4:
    						(this.curPlayer = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/WJJ_3.lh")),
    							this.curPlayer.addComponent(X).loadCar(e);
    						break;

    					case 3:
    						(this.curPlayer = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/WJJ_2.lh")),
    							this.curPlayer.addComponent(X).loadCar(e);
    				}
    				this.scene.addChild(this.curPlayer);
    			}
    			Ie.instance.curStageIndex < 100 &&
    				(null == this.car_pickUp
    					? ((this.car_pickUp = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/PickUp.lh")),
    						this.car_pickUp.addComponent(vt),
    						this.scene.addChild(this.car_pickUp),
    						this.car_pickUp.getComponent(Laya.Script3D).initCar(2))
    					: (this.scene.addChild(this.car_pickUp), this.car_pickUp.getComponent(Laya.Script3D).initCar(2)),
    					null == this.car_bus
    						? ((this.car_bus = Laya.loader.getRes("res/3DRes/LayaScene_MainScene/Conventional/Bus.lh")),
    							this.car_bus.addComponent(vt),
    							this.scene.addChild(this.car_bus),
    							this.car_bus.getComponent(Laya.Script3D).initCar(1))
    						: (this.scene.addChild(this.car_bus), this.car_bus.getComponent(Laya.Script3D).initCar(1))),
    				(this.carema = this.scene.getChildByName("Main Camera")),
    				this.carema.addComponent(Lt).init(this.curPlayer),
    				(this.carema.nearPlane = 0.2),
    				(this.carema.farPlane = 15),
    				(this.directionLight = e.getChildByName("Directional Light")),
    				(this.directionLight.color = new Laya.Vector3(0.7, 0.7, 0.7));
    			var t = this.directionLight.transform.worldMatrix;
    			t.setForward(new Laya.Vector3(-1, -2, -1)),
    				(this.directionLight.transform.worldMatrix = t),
    				2 == L.instance.settingInfo.isHigh
    					? ((this.scene.enableFog = !0),
    						(e.fogColor = new Laya.Vector3(1, 1, 1)),
    						(e.fogStart = 3),
    						(e.fogRange = 8),
    						(this.directionLight.shadowMode = Laya.ShadowMode.Hard),
    						(this.directionLight.shadowDistance = 3),
    						(this.directionLight.shadowResolution = 1024),
    						(this.directionLight.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascades),
    						(this.directionLight.shadowNormalBias = 4))
    					: ((this.scene.enableFog = !0),
    						(e.fogColor = new Laya.Vector3(1, 1, 1)),
    						(e.fogStart = 3),
    						(e.fogRange = 8),
    						(this.directionLight.shadowMode = Laya.ShadowMode.None)),
    				(f.instance.isLoadSceneComplete = !0);
    		}
    		loadStageMap() {
    			this.isDebug && console.log("loadStageMap"),
    				(f.instance.isLoadStageMapComplete = !1),
    				Ie.instance.loadMap(this.scene, this.curMap, this.curPlayer, this.carema);
    		}
    		delayTimeShowTeach() {
    			Q.instance.stopNextStep(),
    				Q.instance.showTeach(L.instance.playerInfo.teachStage, L.instance.playerInfo.teachStep);
    		}
    		nextTeachStage() {
    			this.isDebug && console.log("nextTeachStage"),
    				(this._gameView.visible = !1),
    				It.instance.showLoading(!0),
    				this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    				L.instance.settingInfo.isMusic &&
    				A.instance.isBGMPlaying &&
    				(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1)),
    				L.instance.settingInfo.isSound &&
    				(Laya.Browser.onIOS
    					? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    					: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    				(f.instance.isPlayCarMoveSound = !1),
    				f.instance.isPlayArmPushSound &&
    				((f.instance.isPlayArmPushSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    				f.instance.isPlayArmRotateSound &&
    				((f.instance.isPlayArmRotateSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    				f.instance.isPlayArmAutoSound &&
    				((f.instance.isPlayArmAutoSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    				Ie.instance.exitStageProcess(),
    				this.isDebug && console.log("PlayerData.instance.playerInfo.teachStage == " + L.instance.playerInfo.teachStage),
    				(Ie.instance.curStageIndex = 100 + L.instance.playerInfo.teachStage),
    				(f.instance.curProgress = 0),
    				this.updateProgress(f.instance.curProgress),
    				(f.instance.isLoadSceneComplete = !0),
    				(f.instance.isLoadUIComplete = !0),
    				Laya.timer.loop(50, this, this.waitLoadGameResComplete);
    		}
    		changeCarReloadGame() {
    			this.isDebug && console.log("changeCarReloadGame"),
    				this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_MAINGAME),
    				$.instance.stopLimitGetTime(),
    				$.instance.stopCheckQuickWin(),
    				$.instance.stopChecHideBox(),
    				(this._gameView.visible = !1),
    				Ie.instance.exitStageProcess(),
    				this.curMap && this.curMap.removeSelf(),
    				this.car_bus && (this.car_bus.getComponent(Laya.Script3D).stopRun(), this.car_bus.removeSelf()),
    				this.car_pickUp && (this.car_pickUp.getComponent(Laya.Script3D).stopRun(), this.car_pickUp.removeSelf()),
    				this.curPlayer && (this.curPlayer.removeSelf(), (this.curPlayer = null)),
    				102 == Ie.instance.curStageIndex && (Ie.instance.curStageIndex = 1),
    				this.scene.destroy(),
    				(this.scene = null),
    				Laya.Resource.destroyUnusedResources(),
    				(f.instance.isStartCollision = !1),
    				L.instance.settingInfo.isMusic &&
    				A.instance.isBGMPlaying &&
    				(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1)),
    				L.instance.settingInfo.isSound &&
    				(Laya.Browser.onIOS
    					? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    					: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    				(f.instance.isPlayCarMoveSound = !1),
    				f.instance.isPlayArmPushSound &&
    				((f.instance.isPlayArmPushSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    				f.instance.isPlayArmRotateSound &&
    				((f.instance.isPlayArmRotateSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    				f.instance.isPlayArmAutoSound &&
    				((f.instance.isPlayArmAutoSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    				Laya.stage.event("goToGame");
    		}
    		waitLoadGameResComplete() {
    			(f.instance.curProgress += 1),
    				this.isDebug,
    				f.instance.isLoadUIComplete && f.instance.isLoadSceneComplete && f.instance.curProgress >= 60
    					? (this.isDebug &&
    						(console.log("gameLogic.instance.isLoadUIComplete == " + f.instance.isLoadUIComplete),
    							console.log("gameLogic.instance.isLoadSceneComplete == " + f.instance.isLoadSceneComplete)),
    						(f.instance.curProgress = 60),
    						this.updateProgress(f.instance.curProgress),
    						Laya.timer.clear(this, this.waitLoadGameResComplete),
    						this.loadStageMap(),
    						Laya.timer.loop(50, this, this.waitLoadStageResComplete))
    					: (f.instance.curProgress >= 60 && (f.instance.curProgress = 60),
    						Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		waitLoadStageResComplete() {
    			(f.instance.curProgress += 1),
    				this.isDebug &&
    				(console.log("waitLoadStageResComplete"),
    					console.log("gameLogic.instance.isLoadStageMapComplete == " + f.instance.isLoadStageMapComplete)),
    				f.instance.isLoadStageMapComplete && f.instance.curProgress >= 100
    					? ((f.instance.curProgress = 100),
    						Laya.stage.event("updateProgress", f.instance.curProgress),
    						Laya.timer.clear(this, this.waitLoadStageResComplete),
    						Ie.instance.curStageIndex > 100 ? this.showTeachScene() : this.showScene())
    					: (f.instance.curProgress >= 100 && (f.instance.curProgress = 100),
    						Laya.stage.event("updateProgress", f.instance.curProgress));
    		}
    		showTeachScene() {
    			this.isDebug && console.log("showTeachScene"),
    				L.instance.settingInfo.isMusic &&
    				(A.instance.isBGMPlaying ||
    					((A.instance.isBGMPlaying = !0),
    						Laya.SoundManager.playMusic("res/sound/M_menu_01.mp3", 0, new Laya.Handler(this, this.onComplete)))),
    				D.SendEvent("教学关卡loading结束", 1004, !1),
    				B.ShuFenReport_guide("lost002", 2),
    				It.instance.showLoading(!1),
    				(this._gameView.visible = !0),
    				$.instance.stopLimitGetTime(),
    				3 != l.game_channel && $.instance.stopBtnHandTip(),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_LOADING),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_MAINGAME),
    				this.curPlayer.getComponent(Laya.Script3D).starCarMove(),
    				Ie.instance.curStageIndex > 100 && Laya.timer.frameOnce(30, this, this.delayTimeShowTeach);
    		}
    		showScene() {
    			if (
    				(L.instance.settingInfo.isMusic &&
    					(A.instance.isBGMPlaying ||
    						((A.instance.isBGMPlaying = !0),
    							Laya.SoundManager.playMusic("res/sound/M_menu_01.mp3", 0, new Laya.Handler(this, this.onComplete)))),
    					1 == Ie.instance.curStageIndex && D.SendEvent("玩家进入关卡1的loading结束，进入关卡", 1022, !0),
    					It.instance.showLoading(!1),
    					(this._gameView.visible = !0),
    					$.instance.showLimitGetBtn(),
    					Ie.instance.curStageIndex < 100
    						? 3 != l.game_channel && $.instance.startBtnHandTip()
    						: 3 != l.game_channel && $.instance.stopBtnHandTip(),
    					Ie.instance.curStageIndex > 3 &&
    					Ie.instance.curStageIndex < 100 &&
    					($.instance.startCheckQuickWin(), $.instance.startCheckHideBox()),
    					(2 != l.game_channel && 3 != l.game_channel) || this.startShowSmallDaoMsg(60),
    					mt.instance.popMenu(l.UI_STATE.UI_STATE_LOADING),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_MAINGAME),
    					this.curPlayer.getComponent(Laya.Script3D).starCarMove(),
    					Ie.instance.curStageIndex < 100 && 1 != Ie.instance.curStageIndex && f.instance.isNeeShowLimitUse)
    			) {
    				f.instance.isNeeShowLimitUse = !1;
    				let e = A.instance.checkIsShowLimitUse();
    				this.isDebug && console.log("showCarType == " + e),
    					0 != e &&
    					((f.instance.curTryCarType = L.instance.carInfo.lastLimitTimeCar),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_LIMIT_USE) && mt.instance.showLimitTimeUse());
    			}
    		}
    		onComplete() { }
    		garbageCollection() {
    			this.scene.destroy(), (this.scene = null), Laya.Resource.destroyUnusedResources();
    		}
    		reLoadGameScene() {
    			this.isDebug && console.log("reLoadGameScene"),
    				this.initGameView(),
    				(f.instance.isLoadSceneComplete = !1),
    				Laya.Scene3D.load(
    					"res/3DRes/LayaScene_MainScene/Conventional/MainScene.ls",
    					Laya.Handler.create(this, this.loadFinished)
    				),
    				(f.instance.curProgress = 0),
    				Laya.timer.loop(50, this, this.waitLoadGameResComplete);
    		}
    		resetPlayer() {
    			if (
    				(this.isDebug &&
    					(console.log("resetPlayer"), console.log("gameLogic.instance.curTryCarType == " + f.instance.curTryCarType)),
    					0 != f.instance.curTryCarType)
    			) {
    				let e = this.curPlayer.getComponent(Laya.Script3D).curCarType;
    				this.isDebug &&
    					(console.log("gameLogic.instance.getCarResType(curCarType) == " + f.instance.getCarResType(e)),
    						console.log(
    							"gameLogic.instance.getCarResType(gameLogic.instance.curTryCarType) == " +
    							f.instance.getCarResType(f.instance.curTryCarType)
    						)),
    					f.instance.getCarResType(e) == f.instance.getCarResType(f.instance.curTryCarType)
    						? (this.curPlayer.getComponent(Laya.Script3D).setCarSkin(f.instance.curTryCarType),
    							this.curPlayer.getComponent(Laya.Script3D).resetCarInfo(f.instance.curTryCarType),
    							(f.instance.curTryCarType = 0))
    						: this.changeCarReloadGame();
    			}
    		}
    		backToHall() {
    			this.isDebug && console.log("backToHall"),
    				this.curPlayer.getComponent(Laya.Script3D).stopCarMove(),
    				mt.instance.popMenu(l.UI_STATE.UI_STATE_MAINGAME),
    				$.instance.stopLimitGetTime(),
    				$.instance.stopCheckQuickWin(),
    				$.instance.stopChecHideBox(),
    				(this._gameView.visible = !1),
    				Ie.instance.exitStageProcess(),
    				f.instance.isNeedReloadMap
    					? ((f.instance.isNeedReloadMap = !1),
    						(V.instance.isPreLoadMapResComplete = !1),
    						this.curMap && (this.curMap.removeSelf(), this.curMap.destroy(), (this.curMap = null)))
    					: this.curMap && this.curMap.removeSelf(),
    				this.car_bus && (this.car_bus.getComponent(Laya.Script3D).stopRun(), this.car_bus.removeSelf()),
    				this.car_pickUp && (this.car_pickUp.getComponent(Laya.Script3D).stopRun(), this.car_pickUp.removeSelf()),
    				this.curPlayer && (this.curPlayer.removeSelf(), (this.curPlayer = null)),
    				102 == Ie.instance.curStageIndex && (Ie.instance.curStageIndex = 1),
    				this.scene.destroy(),
    				(this.scene = null),
    				Laya.Resource.destroyUnusedResources(),
    				(f.instance.isStartCollision = !1),
    				L.instance.settingInfo.isMusic &&
    				A.instance.isBGMPlaying &&
    				(Laya.SoundManager.stopMusic(), (A.instance.isBGMPlaying = !1)),
    				L.instance.settingInfo.isSound &&
    				(Laya.Browser.onIOS
    					? Laya.SoundManager.stopSound("res/sound/M_game_01.wav")
    					: Laya.SoundManager.stopSound("res/sound/M_game_01.mp3")),
    				(f.instance.isPlayCarMoveSound = !1),
    				f.instance.isPlayArmPushSound &&
    				((f.instance.isPlayArmPushSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05.mp3")),
    				f.instance.isPlayArmRotateSound &&
    				((f.instance.isPlayArmRotateSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_04.mp3")),
    				f.instance.isPlayArmAutoSound &&
    				((f.instance.isPlayArmAutoSound = !1),
    					L.instance.settingInfo.isSound && Laya.SoundManager.stopSound("res/sound/M_game_05_1.mp3")),
    				(this._hallView.visible = !0),
    				(Tt.instance.isUpdateBanner = !0),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_HALL),
    				L.instance.settingInfo.isMusic &&
    				(A.instance.isBGMPlaying ||
    					((A.instance.isBGMPlaying = !0),
    						Laya.SoundManager.playMusic("res/sound/M_menu_00.mp3", 0, new Laya.Handler(this, this.onComplete)))),
    				Laya.stage.event("upDateUI", 0),
    				f.instance.isNeedShowQuestion
    					? L.instance.playerInfo.isQuestionTip ||
    					((L.instance.playerInfo.isQuestionTip = !0),
    						mt.instance.pushMenu(l.UI_STATE.UI_STATE_QUESTION) && mt.instance.showQuestionMenu())
    					: f.instance.isNeedOpenTask &&
    					((f.instance.isNeedOpenTask = !1),
    						console.log("stageManager.instance.curStageIndex", Ie.instance.curStageIndex),
    						3 == Ie.instance.curStageIndex
    							? ((mt.instance.needBackMenu = l.UI_STATE.UI_STATE_TASK),
    								mt.instance.pushMenu(l.UI_STATE.UI_STATE_SUPER_GIFT) && mt.instance.showSuperGiftMenu())
    							: mt.instance.pushMenu(l.UI_STATE.UI_STATE_TASK) && mt.instance.showTaskMenu(0)),
    				console.log("gameLogic.instance.isCompleteTeachGetReward == " + f.instance.isCompleteTeachGetReward),
    				f.instance.isCompleteTeachGetReward &&
    				((f.instance.isCompleteTeachGetReward = !1),
    					(L.instance.playerInfo.gold += 500),
    					L.instance.savePlayerInfoToLocalCache(),
    					(mt.instance.getRewardMenuType = 3),
    					(mt.instance.getItemValue = 500),
    					Laya.stage.event("updateWallet"),
    					(f.instance.isNeedOpenSignIn = !0),
    					(mt.instance.needBackMenu = l.UI_STATE.UI_STATE_SING_IN),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward());
    		}
    		goToNewStage() {
    			this._hallView && (this._hallView.visible = !1),
    				this._gameView && (this._gameView.visible = !1),
    				this.curMap && this.curMap.removeSelf(),
    				this.curPlayer && (this.curPlayer.removeSelf(), (this.curPlayer = null)),
    				this.car_bus && (this.car_bus.getComponent(Laya.Script3D).stopRun(), this.car_bus.removeSelf()),
    				this.car_pickUp && (this.car_pickUp.getComponent(Laya.Script3D).stopRun(), this.car_pickUp.removeSelf()),
    				this.scene && (this.scene.destroy(), (this.scene = null)),
    				Laya.Resource.destroyUnusedResources(),
    				It.instance.showLoading(!0),
    				this.reLoadGameScene();
    		}
    		onProgressComplet() {
    			It.instance.showLoading(!1);
    		}
    		onUpdate() {
    			if (A.instance.isCheckTime)
    				switch (
    				((this.updateTimes += 1),
    					this.updateTimes % 150 == 0 && (L.instance.saveTimeToLocalCache(), A.instance.checkFunctionIsComplete()),
    					l.game_channel)
    				) {
    					case 0:
    					case 1:
    						mt.uiStates[0] == l.UI_STATE.UI_STATE_HALL
    							? (this.isDebug && console.log("uiManager.uiStates.length == " + mt.uiStates.length),
    								1 == mt.uiStates.length
    									? (this.isShowBanner ||
    										((this.isShowBanner = !0), Gt.instance.MoveInBanner(!1, Laya.stage.height, 0)),
    										this.isShowNative ||
    										((this.isShowNative = !0),
    											Gt.instance.ShowNative(1420, 150, this.nativeSuc.bind(this), this.nativeFail.bind(this))),
    										A.instance.isShowGameClub || ((A.instance.isShowGameClub = !0), kt.instance.showGameHub(!0)))
    									: (this.isShowBanner && ((this.isShowBanner = !1), Gt.instance.MoveOutBanner()),
    										this.isShowNative && ((this.isShowNative = !1), Gt.instance.HideNative()),
    										A.instance.isShowGameClub && ((A.instance.isShowGameClub = !1), kt.instance.showGameHub(!1))))
    							: mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME
    								? Ie.instance.curStageIndex < 100
    									? mt.uiStates.length > 1 && mt.uiStates[1] == l.UI_STATE.UI_STATE_GAME_SUC
    										? this.isShowBanner ||
    										((this.isShowBanner = !0), Gt.instance.MoveInBanner(!1, Laya.stage.height, 0, !0))
    										: this.isShowBanner && ((this.isShowBanner = !1), Gt.instance.MoveOutBanner())
    									: this.isShowNative && ((this.isShowNative = !1), Gt.instance.HideNative())
    								: (this.isShowBanner && ((this.isShowBanner = !1), Gt.instance.MoveOutBanner()),
    									this.isShowNative && ((this.isShowNative = !1), Gt.instance.HideNative()));
    						break;

    					case 2:
    						1 == mt.uiStates.length
    							? this.isShowBanner || ((this.isShowBanner = !0), Gt.instance.MoveInBanner(!1, Laya.stage.height, 0))
    							: this.isShowBanner && ((this.isShowBanner = !1), Gt.instance.MoveOutBanner());
    						break;

    					case 3:
    						Tt.instance.isCanShowBanner &&
    							(1 == mt.uiStates.length
    								? this.isShowBanner || ((this.isShowBanner = !0), Gt.instance.MoveInBanner(!1, Laya.stage.height, 0))
    								: this.isShowBanner && ((this.isShowBanner = !1), Gt.instance.MoveOutBanner()));
    				}
    		}
    		nativeSuc() {
    			this.isDebug && console.log("nativeSuc");
    		}
    		nativeFail() {
    			this.isDebug && console.log("nativeFail");
    		}
    		startRestoreEnergy() {
    			f.instance.isStartRestoreEnergy ||
    				((f.instance.isStartRestoreEnergy = !0),
    					(f.instance.curEnergyTime = 60 * C.Config_Energy_Map.get(1).energy_time),
    					Laya.stage.timerLoop(1e3, this, this.updateEnergyTime));
    		}
    		updateEnergyTime() {
    			f.instance.isStartRestoreEnergy &&
    				((f.instance.curEnergyTime -= 1),
    					f.instance.curEnergyTime <= 0
    						? (L.instance.playerInfo.energy < C.Config_Energy_Map.get(1).energy_limit &&
    							((L.instance.playerInfo.energy += 1),
    								L.instance.playerInfo.energy >= C.Config_Energy_Map.get(1).energy_limit &&
    								(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_limit),
    								Laya.stage.event("updateWallet")),
    							(L.instance.playerInfo.reEnergyStartTime = new Date().getTime()),
    							L.instance.savePlayerInfoToLocalCache(),
    							(f.instance.curEnergyTime = 60 * C.Config_Energy_Map.get(1).energy_time),
    							L.instance.playerInfo.energy < C.Config_Energy_Map.get(1).energy_limit
    								? Laya.stage.event("showEnergyTime", [!0, f.instance.curEnergyTime])
    								: Laya.stage.event("showEnergyTime", [!1, 0]))
    						: L.instance.playerInfo.energy < C.Config_Energy_Map.get(1).energy_limit
    							? Laya.stage.event("showEnergyTime", [!0, f.instance.curEnergyTime])
    							: Laya.stage.event("showEnergyTime", [!1, 0]));
    		}
    		updateProgress(e) {
    			this.isDebug, this._loadingView, It.instance.setProgressValue(e);
    		}
    		showItemPosInfo() {
    			this.curPlayer.getComponent(Laya.Script3D).showItemPosInfo(),
    				this.isDebug &&
    				(console.log("==================摄像机的位置========================="),
    					console.log(this.carema.transform.position),
    					console.log(this.carema.transform.rotation),
    					console.log(this.carema.transform.localPosition),
    					console.log(this.carema.transform.localRotation),
    					console.log(this.carema.transform.localRotationEuler));
    		}
    		reLoadGame() {
    			this.isDebug && console.log("reLoadGame"),
    				mt.uiStates[0] == l.UI_STATE.UI_STATE_MAINGAME
    					? ((f.instance.isNeedReloadMap = !0), this.backToHall())
    					: mt.uiStates[0] == l.UI_STATE.UI_STATE_HALL && (V.instance.isPreLoadMapResComplete = !1);
    		}
    		startCarMove(e) {
    			switch (e) {
    				case 1:
    					this.car_bus && this.car_bus.getComponent(Laya.Script3D).startRun();
    					break;

    				case 2:
    					this.car_pickUp && this.car_pickUp.getComponent(Laya.Script3D).startRun();
    			}
    		}
    		showCareamInfo() {
    			this.carema.getComponent(Laya.Script3D).showCraemaPos();
    		}
    		startShowBannerAd() {
    			(this.isLoadBannerAD = !1),
    				Gt.instance.ShowBanner(0, this.onBannerSuc.bind(this), this.onBannerFail.bind(this), !1),
    				(this.bannerShowTime = 0),
    				Laya.timer.loop(2e3, this, this.showBannerAd),
    				1 == Gt.instance.gametddCof_p4 &&
    				(Gt.instance.showBanner(), (this.bannerShowTime = 0), Laya.timer.loop(2e3, this, this.LoopResetFalseBanner));
    		}
    		LoopResetFalseBanner() {
    			(this.bannerShowTime += 2), this.bannerShowTime >= 10 && ((this.bannerShowTime = 0), Gt.instance.resetBanner());
    		}
    		FalseBannerClick_1() {
    			Gt.instance.ShowVideo(this.adSuccess_falseBanner_1.bind(this), null, null);
    		}
    		FalseBannerClick_2() {
    			Gt.instance.ShowVideo(this.adSuccess_falseBanner_2.bind(this), null, null);
    		}
    		FalseBannerClick_3() {
    			Gt.instance.ShowVideo(this.adSuccess_falseBanner_3.bind(this), null, null);
    		}
    		adSuccess_falseBanner_1() {
    			(L.instance.playerInfo.gold += C.Config_Glod_Map.get(1).gold_video),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("updateWallet"),
    				(mt.instance.getRewardMenuType = 0),
    				(mt.instance.getItemValue = C.Config_Glod_Map.get(1).gold_video),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    		}
    		adSuccess_falseBanner_2() {
    			(L.instance.playerInfo.gold += 500),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("updateWallet"),
    				(mt.instance.needShowTip = 2),
    				(mt.instance.getRewardMenuType = 0),
    				(mt.instance.getItemValue = 500),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    		}
    		adSuccess_falseBanner_3() {
    			(L.instance.playerInfo.energy += C.Config_Energy_Map.get(1).energy_video),
    				L.instance.playerInfo.energy > C.Config_Energy_Map.get(1).energy_storage &&
    				(L.instance.playerInfo.energy = C.Config_Energy_Map.get(1).energy_storage),
    				L.instance.savePlayerInfoToLocalCache(),
    				Laya.stage.event("updateWallet"),
    				(mt.instance.getRewardMenuType = 1),
    				(mt.instance.getItemValue = C.Config_Energy_Map.get(1).energy_video),
    				mt.instance.pushMenu(l.UI_STATE.UI_STATE_GET_REWARD) && mt.instance.showGetReward();
    		}
    		showBannerAd() {
    			Tt.instance.isUpdateBanner &&
    				((this.bannerShowTime += 2),
    					this.bannerShowTime >= 60 &&
    					((this.bannerShowTime = 0),
    						Gt.instance.HideBanner(0),
    						Gt.instance.ShowBanner(0, this.onBannerSuc.bind(this), this.onBannerFail.bind(this), !1)));
    		}
    		onBannerSuc() {
    			this.isDebug && console.log("onBannerSuc"),
    				(Tt.isBannerAdShow = !0),
    				this.isLoadBannerAD
    					? Tt.isBannerAdOutScreen
    						? Gt.instance.MoveOutBanner()
    						: Gt.instance.MoveInBanner(Tt.isCheckScreen, Laya.stage.height, Tt.curOffsetY)
    					: ((this.isLoadBannerAD = !0), Gt.instance.MoveOutBanner());
    		}
    		onBannerFail() {
    			this.isDebug && console.log("onBannerFail"), (this.bannerShowTime = 50);
    		}
    		startShowNativeBannerAd() {
    			this.isDebug && console.log("startShowNativeBannerAd"),
    				Gt.instance.ShowNativeBanner(
    					this.nativeBannerIndex,
    					!1,
    					this.onNativeBannerSuccess.bind(this),
    					this.onNativeBannerFail.bind(this)
    				);
    		}
    		showNativeBannerAd() {
    			console.log("showNativeBannerAd ================ this.nativebannerShowTime == " + this.nativebannerShowTime),
    				Tt.instance.isUpdateBanner &&
    				((this.nativebannerShowTime += 1),
    					this.nativebannerShowTime >= 5 &&
    					(Laya.timer.clear(this, this.showNativeBannerAd),
    						(this.nativeBannerIndex += 1),
    						this.nativeBannerIndex > 2 && (this.nativeBannerIndex = 1),
    						Gt.instance.ShowNativeBanner(
    							this.nativeBannerIndex,
    							!1,
    							this.onNativeBannerSuccess.bind(this),
    							this.onNativeBannerFail.bind(this)
    						)));
    		}
    		onNativeBannerSuccess(e, t) {
    			this.isDebug && (console.log("onNativeBannerSuccess"), console.log(e), console.log(t)),
    				(Tt.isNativeBannerAdShow = !0),
    				(Tt.instance.nativeBanner = e),
    				(Tt.instance.banner_obj = t),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Tt.instance.isShowNativeBanner && Gt.instance.showBanner(),
    				(this.nativebannerShowTime = 0),
    				Laya.timer.loop(1e3, this, this.showNativeBannerAd);
    		}
    		onNativeBannerFail() {
    			this.isDebug && console.log("onNativeBannerFail"),
    				(this.nativebannerShowTime = 0),
    				Laya.timer.loop(1e3, this, this.showNativeBannerAd);
    		}
    		startShowSmallDaoMsg(e) {
    			this.isDebug && console.log("startShowSmallDaoMsg"),
    				(this.smallMsgTime = e),
    				Laya.timer.loop(1e3, this, this.showSmallDaoMsg);
    		}
    		showSmallDaoMsg() {
    			(this.smallMsgTime -= 1),
    				this.smallMsgTime <= 0 &&
    				(Laya.timer.clear(this, this.showSmallDaoMsg),
    					mt.instance.pushMenu(l.UI_STATE.UI_STATE_SMALLMSG) && mt.instance.showSmallMsgMenu());
    		}
    		delayShowBannerForOppo() {
    			this.isDebug && console.log("delayShowBannerForOppo === this.delayBannerTimer == " + this.delayBannerTimer),
    				(this.delayBannerTimer += 1),
    				this.delayBannerTimer > 70 &&
    				(Laya.timer.clear(this, this.delayShowBannerForOppo),
    					(Tt.instance.isCanShowBanner = !0),
    					this.startShowBannerForOppo());
    		}
    		startShowBannerForOppo() {
    			this.isDebug && console.log("startShowBannerForOppo"),
    				(Tt.instance.curBannerType = 1),
    				(Tt.instance.curNativeBannerIndex = 0),
    				Gt.instance.ShowNativeBanner(
    					Tt.instance.curNativeBannerIndex,
    					Tt.instance.isUsePageIDForBanner,
    					this.onNativeBannerSuccessForOppo.bind(this),
    					this.onNativeBannerFailForOppo.bind(this)
    				);
    		}
    		onNativeBannerSuccessForOppo(e, t) {
    			this.isDebug &&
    				(console.log("onNativeBannerSuccessForOppo"),
    					console.log("adManage.instance.isShowNativeBanner == " + Tt.instance.isShowNativeBanner),
    					console.log(e),
    					console.log(t)),
    				0 == Tt.instance.curNativeBannerIndex && (Tt.instance.nativeBanner1Fail = !1),
    				1 == Tt.instance.curNativeBannerIndex && (Tt.instance.nativeBanner2Fail = !1),
    				Tt.isBannerAdShow && Gt.instance.hideBanner(),
    				(Tt.isNativeBannerAdShow = !0),
    				(Tt.instance.nativeBanner = e),
    				(Tt.instance.banner_obj = t),
    				t.reportAdShow({
    					adId: e.adId.toString(),
    				}),
    				Tt.instance.isShowNativeBanner && Gt.instance.showBanner(),
    				(Tt.instance.nextGetBannerTime = 0),
    				Laya.timer.loop(1e3, this, this.nextGetBanner);
    		}
    		nextGetBanner() {
    			this.isDebug && console.log("adManage.instance.nextGetBannerTime == " + Tt.instance.nextGetBannerTime),
    				(Tt.instance.nextGetBannerTime += 1),
    				Tt.instance.nextGetBannerTime >= 40 &&
    				(Laya.timer.clear(this, this.nextGetBanner),
    					Tt.instance.isUsePageIDForBanner
    						? ((Tt.instance.isUsePageIDForBanner = !1),
    							(Tt.instance.curBannerType = 1),
    							Gt.instance.ShowNativeBanner(
    								Tt.instance.curNativeBannerIndex,
    								!0,
    								this.onNativeBannerSuccessForOppo.bind(this),
    								this.onNativeBannerFailForOppo.bind(this)
    							))
    						: ((Tt.instance.curNativeBannerIndex += 1),
    							Tt.instance.curNativeBannerIndex > 1 && (Tt.instance.curNativeBannerIndex = 0),
    							(Tt.instance.curBannerType = 1),
    							Gt.instance.ShowNativeBanner(
    								Tt.instance.curNativeBannerIndex,
    								!1,
    								this.onNativeBannerSuccessForOppo.bind(this),
    								this.onNativeBannerFailForOppo.bind(this)
    							)));
    		}
    		onNativeBannerFailForOppo() {
    			this.isDebug && console.log("onNativeBannerFailForOppo"),
    				0 == Tt.instance.curNativeBannerIndex && (Tt.instance.nativeBanner1Fail = !0),
    				1 == Tt.instance.curNativeBannerIndex && (Tt.instance.nativeBanner2Fail = !0),
    				Tt.instance.nativeBanner1Fail && !Tt.instance.nativeBanner2Fail
    					? ((Tt.instance.curNativeBannerIndex = 1),
    						(Tt.instance.curBannerType = 1),
    						Gt.instance.ShowNativeBanner(
    							Tt.instance.curNativeBannerIndex,
    							Tt.instance.isUsePageIDForBanner,
    							this.onNativeBannerSuccessForOppo.bind(this),
    							this.onNativeBannerFailForOppo.bind(this)
    						))
    					: !Tt.instance.nativeBanner1Fail && Tt.instance.nativeBanner2Fail
    						? ((Tt.instance.curNativeBannerIndex = 0),
    							(Tt.instance.curBannerType = 1),
    							Gt.instance.ShowNativeBanner(
    								Tt.instance.curNativeBannerIndex,
    								Tt.instance.isUsePageIDForBanner,
    								this.onNativeBannerSuccessForOppo.bind(this),
    								this.onNativeBannerFailForOppo.bind(this)
    							))
    						: Tt.instance.nativeBanner1Fail &&
    						Tt.instance.nativeBanner2Fail &&
    						((Tt.instance.curBannerType = 2),
    							Gt.instance.ShowBanner(2, this.onBannerSuccessForOppo.bind(this), this.onBannerFailForOppo.bind(this), !1));
    		}
    		onBannerSuccessForOppo() {
    			this.isDebug &&
    				(console.log("onBannerSuccessForOppo"),
    					console.log("adManage.isBannerAdOutScreen == " + Tt.isBannerAdOutScreen)),
    				(Tt.isBannerAdShow = !0),
    				(Tt.instance.nextGetBannerTime = 0),
    				Laya.timer.loop(1e3, this, this.nextGetBanner);
    		}
    		onBannerFailForOppo() {
    			this.isDebug && console.log("onBannerFailForOppo"),
    				(Tt.instance.nextGetBannerTime = 0),
    				Laya.timer.loop(1e3, this, this.nextGetBanner);
    		}
    	}
    	class Mt extends Laya.Script {
    		constructor() {
    			super(...arguments), (this.isDebug = !1), (this.showTime = 0), (this.curBannerIndex = 0);
    		}
    		onLoad(e) {
    			(this._view = e),
    				(this.backdrop = this._view.getChild("backdrop").asImage),
    				(this.toast = this._view.getChild("toast").asGroup),
    				(this.toast_bg = this._view.getChild("bg").asImage),
    				(this.toast_content = this._view.getChild("content2").asLabel),
    				(this.banner = this._view.getChild("banner").asCom),
    				this.banner.getChild("btnAD").asButton.onClick(this, this.clickBannerBtn),
    				this.banner.getChild("btnClose").asButton.onClick(this, this.clickBannerCloseBtn),
    				(this.insertScreen = this._view.getChild("InsertScreen").asCom),
    				this.insertScreen.getChild("btnAD").asButton.onClick(this, this.clickInsertScreen),
    				this.insertScreen.getChild("btnClose").asButton.onClick(this, this.clickInsertScreenClose),
    				this.Init(),
    				(this.dialog = this._view.getChild("dialog").asGroup),
    				(this.dialog_title = this._view.getChild("title").asLabel),
    				(this.dialog_content = this._view.getChild("content").asLabel),
    				(this.dialog_sure = this._view.getChild("btn_sure").asButton),
    				(this.dialog_cancel = this._view.getChild("btn_cancel").asButton),
    				(this.dialog_ad_sure = this._view.getChild("btn_ad_sure").asButton),
    				this.dialog_sure.onClick(this, this.onDialogSureClick),
    				this.dialog_ad_sure.onClick(this, this.onDialogAdSureClick),
    				this.dialog_cancel.onClick(this, this.onDialogCancelClick),
    				(this.loading = this._view.getChild("loading").asImage),
    				t.instance.initAds(this._view),
    				(this.dialog.visible = !1),
    				(this.backdrop.visible = !1),
    				(this.toast.visible = !1),
    				(this.loading.visible = !1),
    				(this.banner.visible = !1),
    				(this.insertScreen.visible = !1),
    				(this._view.visible = !0);
    		}
    		initWindow() { }
    		showToast(e) {
    			console.log("ChannelTools ShowToast == content == " + e),
    				this.hideToast(),
    				(this.toast_content.text = e),
    				console.log("this.toast_content.width == " + this.toast_content.width),
    				(this.toast_bg.width = this.toast_content.width + 30),
    				(this.toast.visible = !0),
    				Laya.timer.frameOnce(50, this, this.toastAnim);
    		}
    		toastAnim() {
    			this.toastTween = Laya.Tween.to(
    				this.toast,
    				{
    					alpha: 0,
    				},
    				500,
    				Laya.Ease.linearNone,
    				Laya.Handler.create(this, this.hideToast),
    				0
    			);
    		}
    		hideToast() {
    			this.toastTween && (Laya.Tween.clear(this.toastTween), (this.toast.visible = !1), (this.toast.alpha = 1));
    		}
    		showDialog(e) {
    			this.hideDialog(),
    				(this.backdrop.visible = !0),
    				e.title ? (this.dialog_title.text = e.title) : (this.dialog_title.text = "提 示"),
    				e.content ? (this.dialog_content.text = e.content) : (this.dialog_content.text = "err"),
    				e.sure_label
    					? ((this.dialog_sure.title = e.sure_label), (this.dialog_ad_sure.title = e.sure_label))
    					: ((this.dialog_sure.title = "确 定"), (this.dialog_ad_sure.title = "确 定")),
    				e.cancel_label ? (this.dialog_cancel.title = e.cancel_label) : (this.dialog_cancel.title = "取 消"),
    				e.ad_icon
    					? ((this.dialog_sure.visible = !1), (this.dialog_ad_sure.visible = !0))
    					: ((this.dialog_sure.visible = !0), (this.dialog_ad_sure.visible = !1)),
    				e.sure || e.cancel
    					? ((this.dialog_sure.x = 830),
    						(this.dialog_ad_sure.x = 830),
    						(this.dialog_cancel.x = 1090),
    						(this.dialog_cancel.visible = !0))
    					: ((this.dialog_sure.x = 960), (this.dialog_ad_sure.x = 960), (this.dialog_cancel.visible = !1)),
    				(this.dialog_sure_cb = e.sure),
    				(this.dialog_cancel_cb = e.cancel),
    				(this.dialog.visible = !0),
    				Laya.Tween.to(
    					this.dialog,
    					{
    						scale: 1,
    					},
    					200,
    					Laya.Ease.linearNone
    				);
    		}
    		onDialogSureClick() {
    			this.dialog_sure_cb && this.dialog_sure_cb(), this.dialogMinAnim();
    		}
    		onDialogAdSureClick() {
    			this.dialog_sure_cb && this.dialog_sure_cb(), this.dialogMinAnim();
    		}
    		onDialogCancelClick() {
    			this.dialog_cancel_cb && this.dialog_cancel_cb(), this.dialogMinAnim();
    		}
    		dialogMinAnim() {
    			this.dialogTween = Laya.Tween.to(
    				this.dialog,
    				{
    					scale: 0,
    				},
    				200,
    				Laya.Ease.linearNone,
    				Laya.Handler.create(this, this.hideDialog),
    				0
    			);
    		}
    		hideDialog() {
    			Laya.Tween.clear(this.dialogTween),
    				(this.dialog.visible = !1),
    				this.dialog.setScale(0, 0),
    				this.loading.visible || (this.backdrop.visible = !1);
    		}
    		ShowLoading() {
    			(this.loading.visible = !0), (this.backdrop.visible = !0);
    		}
    		HideLoading() {
    			(this.loading.visible = !1), this.dialog.visible || (this.backdrop.visible = !1);
    		}
    		clickBannerBtn() {
    			switch ((this.isDebug && console.log("clickBannerBtn"), l.game_channel)) {
    				case 0:
    				case 1:
    					if ((console.log("clickBannerBtn"), At.instance))
    						switch (this.curBannerIndex) {
    							case 1:
    								At.instance.FalseBannerClick_1();
    								break;

    							case 2:
    								At.instance.FalseBannerClick_2();
    								break;

    							case 3:
    								At.instance.FalseBannerClick_3();
    						}
    					break;

    				default:
    					Tt.instance.banner_obj &&
    						Tt.instance.banner_obj.reportAdClick({
    							adId: Tt.instance.nativeBanner.adId.toString(),
    						});
    			}
    		}
    		clickBannerCloseBtn() {
    			switch ((this.isDebug && console.log("clickBannerCloseBtn"), l.game_channel)) {
    				case 0:
    				case 1:
    					console.log("clickBannerCloseBtn"), this.hideBanner();
    					break;

    				default:
    					this.hideBanner();
    			}
    		}
    		clickInsertScreen() {
    			this.isDebug && console.log("clickInsertScreen"),
    				Tt.instance.showPageObj &&
    				Tt.instance.showPageObj.reportAdClick({
    					adId: Tt.instance.showNativeData.adId.toString(),
    				});
    		}
    		clickInsertScreenClose() {
    			this.isDebug && console.log("clickInsertScreenClose"), this.hideInsertScreen();
    		}
    		showBanner() {
    			switch ((this.isDebug && console.log("showBanner"), l.game_channel)) {
    				case 0:
    				case 1:
    					(this.banner.visible = !0), (this.banner.height = 280), (this.banner.y = 8888);
    					var e = this.banner.getChild("adImage").asImage;
    					(e.width = 700), (e.height = 280), (e.x = 0.5 * (this.banner.width - 700));
    					var t = this.banner.getChild("btnAD").asButton;
    					(t.width = 700), (t.height = 280), (t.x = 500), (t.y = 140);
    					var s = this.banner.getChild("btnClose").asButton;
    					(s.x = 770), (s.y = -80), (s.visible = !1);
    					var i = this.banner.getChild("n9").asImage;
    					(i.width = 700),
    						(i.height = 280),
    						(i.x = e.x),
    						(this.banner.getChild("title").asLabel.visible = !1),
    						(this.banner.getChild("desc").asLabel.visible = !1),
    						(this.curBannerIndex = 0),
    						this.resetBanner();
    					break;

    				default:
    					Tt.instance.nativeBanner &&
    						((this.banner.getChild("adImage").asLoader.url = Tt.instance.nativeBanner.imgUrlList[0]),
    							(this.banner.getChild("adSign").asLoader.url = Tt.instance.nativeBanner.logoUrl),
    							(this.banner.getChild("title").asLabel.text = Tt.instance.nativeBanner.title),
    							(this.banner.getChild("desc").asLabel.text = Tt.instance.nativeBanner.desc),
    							(this.banner.visible = !0));
    			}
    		}
    		resetBanner(e = "", t = "", s = "") {
    			(this.curBannerIndex += 1),
    				(this.banner.getChild("adImage").asLoader.url = "superBanner/banner" + this.curBannerIndex + ".png"),
    				this.curBannerIndex >= 3 && (this.curBannerIndex = 0);
    		}
    		hideBanner() {
    			this.banner.visible = !1;
    		}
    		showInsertScreen(e) {
    			if ((console.log("showInsertScreen == isUseBanner ==" + e), e))
    				console.log(Tt.instance.nativeBanner),
    					Tt.instance.nativeBanner &&
    					((this.insertScreen.getChild("adIcon").asLoader.url = Tt.instance.nativeBanner.icon),
    						(this.insertScreen.getChild("adSign").asLoader.url = Tt.instance.nativeBanner.logoUrl),
    						(this.insertScreen.getChild("adImage").asLoader.url = Tt.instance.nativeBanner.imgUrlList[0]),
    						(this.insertScreen.visible = !0));
    			else if (
    				(console.log("adManage.instance.nativePages.length ==" + Tt.instance.nativePages.length),
    					Tt.instance.nativePages.length > 0)
    			) {
    				let e = Tt.instance.nativePages.pop();
    				(Tt.instance.showNativeData = e.nativePageData),
    					(Tt.instance.showPageObj = e.page_obj),
    					(this.insertScreen.getChild("adIcon").asLoader.url = Tt.instance.showNativeData.icon),
    					(this.insertScreen.getChild("adSign").asLoader.url = Tt.instance.showNativeData.logoUrl),
    					(this.insertScreen.getChild("adImage").asLoader.url = Tt.instance.showNativeData.imgUrlList[0]),
    					Tt.instance.nativePages.unshift(e),
    					(this.insertScreen.visible = !0);
    			}
    		}
    		hideInsertScreen() {
    			this.insertScreen.visible = !1;
    		}
    	}
    	class Et {
    		constructor(e, t, s, i, a, n) {
    			(this.page_obj = null),
    				(this.video_obj = null),
    				(this.banner_obj = null),
    				(this.box_obj = null),
    				(this.juggle_obj = null),
    				(this.native_obj = null),
    				(this.native_banner_1 = null),
    				(this.native_banner_2 = null),
    				(this.native_banner_3 = null),
    				(this.native_banner_4 = null),
    				(this.native_banner_5 = null),
    				(this.native_page_1 = null),
    				(this.native_page_2 = null),
    				(this.native_page_3 = null),
    				(this.is_has_ad = !1),
    				(this.is_has_page = !0),
    				(this.is_has_banner = !0),
    				(this.is_has_native = !1),
    				(this.is_native_banner = !1),
    				(this.is_has_box = !1),
    				(this.is_has_jm = !1),
    				(this.is_has_recorder = !1),
    				(this.is_has_share = !0),
    				(this.is_has_exit = !1),
    				(this.banner_height = 300),
    				(this.appid = e),
    				(this.page_id_list = s),
    				(this.video_id_list = t),
    				(this.banner_id_list = i),
    				(this.native_banner_id_list = a),
    				(this.native_id_list = n),
    				this.InitChannel(),
    				console.log("--------\x3e渠道对象实例化<--------");
    		}
    		isBanner() {
    			return null != this.banner_obj && null != this.banner_obj;
    		}
    		GetCurrentTimestamp(e) {
    			let t = new Date().getTime();
    			return e ? t : Math.floor(0.001 * t);
    		}
    	}
    	class xt extends Et {
    		InitChannel() {
    			(this.is_has_ad = !0), (this.is_has_banner = !1);
    		}
    		CreatePage() { }
    		ShowPage(e, t, s) { }
    		CreateVideo() { }
    		ShowVideo(e, t, s) { }
    		ShowBanner(e, t, s) {
    			s && s();
    		}
    		HideBanner(e) { }
    		ShowNativeBanner(e, t, s, i) {
    			i && i();
    		}
    		HideNativeBanner(e) { }
    		MoveOutBanner() { }
    		MoveInBanner(e, t, s) { }
    		CreateNative() { }
    		ShowNative(e, t, s, i) { }
    		HideNative() { }
    		ShareGame(e, t) { }
    		ShowGameClubButton(e, t, s) { }
    		StartRecord() { }
    		PauseRecord() { }
    		ResumeRecord() { }
    		StopRecord(e) { }
    		ShareRecord(e, t) { }
    		VibrateShort() { }
    		VibrateLong() { }
    		GetSystemInfo() { }
    		NavigateToMiniProgram(e, t, s, i, a, n = !1) { }
    		isLowMobile() {
    			return !0;
    		}
    		OnShow(e) { }
    		OnHide(e) { }
    		OffShow(e) { }
    		OffHide(e) { }
    		GetLaunchOptionsSync() { }
    		GetEnterOptionsSync() { }
    		ExitMiniProgram(e, t, s) { }
    		onAudioInterruptionEnd(e) { }
    		onAudioInterruptionBegin(e) { }
    		reStartGame() { }
    	}
    	class Bt extends Et {
    		InitChannel() {
    			(this.is_has_ad = !0),
    				(this.is_has_box = !1),
    				(this.is_has_native = !1),
    				(this.banner_height = 280),
    				// wx.login({
    				//     success(e) {
    				//         x.httpRequest("https://ddht.jinkezhexin.com/getChannelUserInfo", {
    				//             appid: x.appid,
    				//             token: e.code
    				//         }, null, e => {
    				//             console.warn("wxLogin", e), x.report({
    				//                 event: E.login,
    				//                 userId: e.data.openid
    				//             }, !0);
    				//         }, "POST");
    				//     },
    				//     fail(e) {
    				//         console.log("loginFail", e);
    				//     },
    				//     complete() {}
    				// }), wx.showShareMenu({
    				//     withShareTicket: !0,
    				//     menus: [ "shareAppMessage", "shareTimeline" ]
    				// }), wx.onShareAppMessage(() => ({
    				//     title: M.share_title,
    				//     imageUrl: M.share_image_url
    				// })),
    				// this.gameClubBtn = wx.createGameClubButton({
    				//     icon: "green",
    				//     style: {
    				//         left: 100,
    				//         top: 10,
    				//         width: 40,
    				//         height: 40
    				//     }
    				// }),
    				// this.gameClubBtn.hide(),
    				this.is_has_ad && (this.CreateVideo(), this.CreatePage()),
    				// Bt.sysInfo = wx.getSystemInfoSync(),
    				// Bt.windowW = Bt.sysInfo.windowWidth,
    				// Bt.windowH = Bt.sysInfo.windowHeight,
    				(Bt.windowW = 1334);
    			Bt.windowH = 750;
    			this.Get_gametdd_Cof();
    		}
    		Get_gametdd_Cof() {
    			var e;
    			Laya.LocalStorage.getItem("wx_sid")
    				? (e = Laya.LocalStorage.getItem("wx_sid"))
    				: (e = Gt.instance.getLaunchOptionsSync()) && Laya.LocalStorage.setItem("wx_sid", e);
    			const t = {
    				id: "6136026d818c711b59ff1a49",
    				sid: e,
    			},
    				s = JSON.stringify(t),
    				i = new Laya.HttpRequest();
    			i.once(Laya.Event.COMPLETE, this, (e) => {
    				if (JSON.parse(e) && JSON.parse(e).data) {
    					let t = JSON.parse(e).data;
    					(Gt.instance.gametddCof_p6 = t.p6),
    						(Gt.instance.gametddCof_p7 = t.p7),
    						"yes" == Laya.LocalStorage.getItem("yjhmd") ||
    							("200" == Gt.instance.gametddCof_p7 && "no" == t.p6) ||
    							("1" == Gt.instance.gametddCof_p7 && "no" == t.p6) ||
    							("1" == Gt.instance.gametddCof_p7 && "1" == t.p6)
    							? (Laya.LocalStorage.setItem("yjhmd", "yes"),
    								(Gt.instance.gametddCof_p4 = 0),
    								(Gt.instance.gametddCof_p5 = 0))
    							: "200" == Gt.instance.gametddCof_p7 && "1" == t.p6
    								? (JSON.parse(e).data.p4
    									? (Gt.instance.gametddCof_p4 = parseInt(JSON.parse(e).data.p4))
    									: (Gt.instance.gametddCof_p4 = 0),
    									JSON.parse(e).data.p5
    										? (Gt.instance.gametddCof_p5 = parseInt(JSON.parse(e).data.p5))
    										: (Gt.instance.gametddCof_p5 = 0))
    								: ((Gt.instance.gametddCof_p4 = 0), (Gt.instance.gametddCof_p5 = 0));
    				} else (Gt.instance.gametddCof_p4 = 0), (Gt.instance.gametddCof_p5 = 0);
    			}),
    				i.send("https://ga.gametdd.com/adCtrl/agd/conf", s, "post", "text", [
    					"Content-Type",
    					"application/json; charset=utf-8",
    				]);
    		}
    		CreatePage() {
    			let e = this;
    			// this.page_obj = wx.createInterstitialAd({
    			//     adUnitId: e.page_id_list[0]
    			// }), this.page_obj.load(), this.page_obj.onLoad(function() {
    			console.log("load page successed!"), e.page_successed && e.page_successed();
    			// }), this.page_obj.onError(function(t) {
    			//     console.error(t.errMsg + "----" + t.errCode), e.page_failed && e.page_failed();
    			// });
    		}
    		ShowPage(e, t, s) {
    			let i = this;
    			(this.page_successed = t),
    				(this.page_failed = s),
    				this.page_obj.show().catch((e) => {
    					console.error(e.errMsg + "----" + e.errCode),
    						console.log("show page failed!!!"),
    						i.page_failed && i.page_failed();
    				});
    		}
    		CreateVideo() {
    			let e = this;
    			// this.video_obj = wx.createRewardedVideoAd({
    			//     adUnitId: e.video_id_list[0]
    			// }), this.video_obj.load(), this.video_obj.onLoad(t => {
    			null != e.video_loaded && null != e.video_loaded && e.video_loaded && e.video_loaded();
    			// }), this.video_obj.onClose(t => {
    			//     t.isEnded || void 0 === t ? null != e.video_successed && null != e.video_successed && e.video_successed && e.video_successed() : null != e.video_failed && null != e.video_failed && e.video_failed && e.video_failed();
    			// }), this.video_obj.onError(t => {
    			//     null != e.video_failed && null != e.video_failed && e.video_failed && e.video_failed(),
    			//     console.error(t.errMsg + "----" + t.errCode);
    			// });
    		}
    		ShowVideo(e, t, s) {
    			let i = this;
    			(this.video_loaded = s), (this.video_successed = e), (this.video_failed = t);
    			// , this.video_obj.show().catch(e => {
    			//     console.log("show video failed!!!"), i.video_failed && i.video_failed();
    			// });
    		}
    		ShowBanner(e, t, s) {
    			if (null == this.banner_obj || null == this.banner_obj) {
    				// let i = wx.getSystemInfoSync(),
    				(a = 1334), (n = 750);
    				console.log("windowH =1= " + n), console.log("windowW =1= " + a);
    				let o = this;
    				// this.banner_obj = wx.createBannerAd({
    				//     adUnitId: o.banner_id_list[e],
    				//     style: {
    				//         left: 3e3,
    				//         top: 5e3,
    				//         width: 300
    				//     }
    				// }), this.banner_obj.onLoad(() => {
    				console.log("onLoad"), null != o.banner_obj ? o.banner_obj.show() : console.warn("banner is null!");
    				// }), this.banner_obj.onError(e => {
    				//     console.log("onError"), s && s(), console.error(e.errMsg + "----" + e.errCode);
    				// }), this.banner_obj.onResize(function(e) {
    				//     console.log("res.height =1= " + e.height), console.log(" res.width =1= " + e.width),
    				//     o.banner_obj.style.left = (a - e.width) / 2, o.banner_height = e.height, t && t();
    				// }), this.banner_failed = s;
    			}
    		}
    		HideBanner(e) {
    			null != this.banner_obj && null != this.banner_obj && (this.banner_obj.destroy(), (this.banner_obj = null));
    		}
    		ShowNativeBanner(e, t, s, i) { }
    		HideNativeBanner(e) { }
    		MoveOutBanner() {
    			// if ((console.log("MoveOutBanner"), null != this.banner_obj && null != this.banner_obj)) {
    			//   let e = wx.getSystemInfoSync(),
    			// 	t = e.windowWidth,
    			// 	s = e.windowHeight;
    			//   console.log("windowH =2= " + s), console.log("windowW =2= " + t), (this.banner_obj.style.top = s);
    			// }
    		}
    		MoveInBanner(e, t, s) {
    			// console.log("MoveInBanner === offsetY == " + s);
    			// let i = wx.getSystemInfoSync(),
    			//   a = i.windowWidth,
    			//   n = i.windowHeight;
    			// console.log("windowH =3= " + n), console.log("windowW =3= " + a);
    			// let o = 0;
    			// if ((s > 0 && (o = (n * s) / t), e)) {
    			//   a / n < 0.56 &&
    			// 	null != this.banner_obj &&
    			// 	null != this.banner_obj &&
    			// 	(this.banner_obj.style.top = n - this.banner_height - o);
    			// } else
    			//   null != this.banner_obj && null != this.banner_obj && (this.banner_obj.style.top = n - this.banner_height - o);
    		}
    		CreateNative() { }
    		ShowNative(e, t, s, i) { }
    		HideNative() { }
    		static wx_createCustomAd(e = "", t, s, i = !1, a = !1, n = !0) {
    			// if (wx.createCustomAd) {
    			//     var o = wx.createCustomAd({
    			//         adUnitId: e,
    			//         adIntervals: 10,
    			//         style: {
    			//             left: t,
    			//             top: s,
    			//             width: 500
    			//         }
    			//     });
    			//     a ? Bt.wx_LongshowCustomAd.push(o) : Bt.wx_CustomAd.push(o), o.onLoad(function() {
    			//         console.log("加载wx_CustomAd成功"),
    			//         o.show(),
    			//         i && n && mt.instance.pushMenu(l.UI_STATE.UI_STATE_MOREGAME) && mt.instance.showMoreGameMenu();
    			//     }), o.onHide(function() {
    			//         i && We.instance.onClickClose();
    			//     }), o.onError(e => {
    			//         i && (We.instance.onClickClose(), Gt.instance.ShowToast("更多游戏获取失败, 请稍后再试！！！")),
    			//         console.log("加载wx_CustomAd失败", e);
    			//     });
    			// }
    		}
    		static wx_clearCustomAd(e = !1) {
    			if (null != this.wx_CustomAd && null != this.wx_CustomAd && Bt.wx_CustomAd.length > 0) {
    				for (var t = 0; t < Bt.wx_CustomAd.length; t++)
    					Bt.wx_CustomAd[t] && Bt.wx_CustomAd[t].destroy && Bt.wx_CustomAd[t].destroy();
    				this.wx_CustomAd = [];
    			}
    			if (
    				e &&
    				null != this.wx_LongshowCustomAd &&
    				null != this.wx_LongshowCustomAd &&
    				Bt.wx_LongshowCustomAd.length > 0
    			) {
    				for (t = 0; t < Bt.wx_LongshowCustomAd.length; t++)
    					Bt.wx_LongshowCustomAd[t] && Bt.wx_LongshowCustomAd[t].destroy && Bt.wx_LongshowCustomAd[t].destroy();
    				this.wx_LongshowCustomAd = [];
    			}
    		}
    		ShareGame(e, t) {
    			// console.log("weixin ShareGame"),
    			//   wx.shareAppMessage({
    			// 	title: M.share_title,
    			// 	imageUrl: M.share_image_url,
    			//   });
    		}
    		ShowGameClubButton(e, t, s) {
    			// if (console.log("weixin ShowGameClubButton"), console.log("posX == " + t), console.log("posY == " + s),
    			// e) {
    			//     // let e = wx.getSystemInfoSync(),
    			//     i = 1334,
    			//     a = 750;
    			//     console.log("windowW == " + i), console.log("windowH == " + a);
    			//     let n = t * i / 1920, o = s * a / 1080;
    			//     this.gameClubBtn.style.left = n,
    			//     this.gameClubBtn.style.top = o,
    			//     this.gameClubBtn.show();
    			// } else this.gameClubBtn.hide();
    		}
    		StartRecord() { }
    		PauseRecord() { }
    		ResumeRecord() { }
    		StopRecord(e) { }
    		ShareRecord(e, t) { }
    		GetSystemInfo() {
    			return getSystemInfoSync();
    		}
    		VibrateShort() {
    			console.log("VibrateShort");
    			// wx.vibrateShort({});
    		}
    		VibrateLong() {
    			console.log("VibrateLong");
    			// wx.vibrateLong({});
    		}
    		NavigateToMiniProgram(e, t, s, i, a, n = !1) {
    			// wx.navigateToMiniProgram({
    			//   appId: e,
    			//   path: t,
    			//   extraData: s,
    			//   envVersion: n ? "develop" : "release",
    			//   ON_SUCCESS: i,
    			//   ON_FAILED: a,
    			// });
    		}
    		isLowMobile() {
    			// let e = !1;
    			// var t = wx.getSystemInfoSync();
    			// if ((console.log("_cof_wx", t), t))
    			//   if (t.platform && "ios" == t.platform && t.model) {
    			// 	for (var s = "", i = "", a = 0; a < t.model.length; a++)
    			// 	  a < 8 && (a < 4 && (i += t.model[a]), (s += t.model[a]));
    			// 	if ((console.log("_ipad_name", i), console.log("_ios_wx_name", s), "iPad" == i)) e = !0;
    			// 	else
    			// 	  switch (s) {
    			// 		case "iPhone 5":
    			// 		case "iPhone 6":
    			// 		case "iPhone 7":
    			// 		case "iPhone 8":
    			// 		case "iPhone X":
    			// 		  e = !0;
    			// 		  break;

    			// 		default:
    			// 		  e = !1;
    			// 	  }
    			//   } else e = !t.benchmarkLevel || t.benchmarkLevel <= 20;
    			// else e = !0;
    			// return e;
    		}
    		OnShow(e) {
    			// wx.onShow(e);
    		}
    		OnHide(e) {
    			// wx.onHide(e);
    		}
    		OffShow(e) {
    			// wx.offShow(e);
    		}
    		OffHide(e) {
    			// wx.offHide(e);
    		}
    		GetLaunchOptionsSync() {
    			// return wx.getLaunchOptionsSync();
    		}
    		GetEnterOptionsSync() {
    			// return wx.getEnterOptionsSync();
    		}
    		ExitMiniProgram(e, t, s) {
    			// wx.exitMiniProgram(e, t, s);
    		}
    		onAudioInterruptionEnd(e) {
    			// wx.onAudioInterruptionEnd(e);
    		}
    		onAudioInterruptionBegin(e) {
    			// wx.onAudioInterruptionBegin(e);
    		}
    		reStartGame() {
    			// wx.getUpdateManager().applyUpdate();
    		}
    	}
    	(Bt.wx_CustomAd = []),
    		(Bt.wx_LongshowCustomAd = []),
    		(Bt.wx_CustomAdKey_1 = "adunit-5354ad1e40cd9f05"),
    		(Bt.wx_CustomAdKey_2 = "adunit-dc8d25414704b1a5"),
    		(Bt.wx_CustomAdKey_3 = "adunit-753edc3a6318e2ae"),
    		(Bt.wx_CustomAdKey_4 = "adunit-1fff688dfc09a5d1"),
    		(Bt.wx_CustomAdKey_5 = "adunit-9ace9888a6f3e713"),
    		(Bt.wx_CustomAdKey_6 = "adunit-d52c7a19ebf79d06");
    	class Rt extends Et {
    		constructor() {
    			super(...arguments),
    				(this.show_page_time = 0),
    				(this.show_banner_time = 0),
    				(this.is_first_load_video = !0),
    				(this.isCreated = !1);
    		}
    		InitChannel() {
    			console.log("InitChannel"),
    				(this.is_has_ad = !0),
    				(this.is_has_native = !0),
    				this.is_has_ad && this.CreateVideo(),
    				(this.banner_height = 0);
    		}
    		CreatePage() { }
    		ShowPage(e, t, s) {
    			this.GetCurrentTimestamp(!1);
    			var i = this;
    			switch (e) {
    				case 1:
    					(this.native_page_1 = qg.createNativeAd({
    						posId: this.page_id_list[0],
    					})),
    						this.native_page_1.onLoad(function (e) {
    							e && e.adList ? t && t(e.adList[0], i.native_page_1) : s && s();
    						}),
    						this.native_page_1.onError((e) => {
    							s && s(), console.log("原生插屏1加载异常", e);
    						});
    					break;

    				case 2:
    					(this.native_page_2 = qg.createNativeAd({
    						posId: this.page_id_list[1],
    					})),
    						this.native_page_2.onLoad(function (e) {
    							e && e.adList ? t && t(e.adList[0], i.native_page_2) : s && s();
    						}),
    						this.native_page_2.onError((e) => {
    							s && s(), console.log("原生插屏2加载异常", e);
    						});
    			}
    		}
    		CreateVideo() {
    			console.log("CreateVideo"),
    				(this.video_obj = qg.createRewardedVideoAd({
    					posId: this.video_id_list[0],
    				}));
    			var e = this;
    			this.video_obj.onLoad(function (t) {
    				console.log("激励视频广告加载完成-onload触发", JSON.stringify(t)),
    					console.log("self.is_first_load_video == " + e.is_first_load_video),
    					null != e.video_loaded && null != e.video_loaded && e.video_loaded && e.video_loaded(),
    					e.is_first_load_video || (e.video_obj.show(), A.instance.PauseBgm());
    			}),
    				this.video_obj.onClose((t) => {
    					t.isEnded
    						? null != e.video_successed && null != e.video_successed && e.video_successed && e.video_successed()
    						: null != e.video_failed && null != e.video_failed && e.video_failed && e.video_failed();
    				}),
    				this.video_obj.onError((t) => {
    					console.log("激励视频广告加载失败", t),
    						null != e.video_failed && null != e.video_failed && e.video_failed && e.video_failed();
    				});
    			this.video_obj.onClose((e) => {
    				console.log("视频广告关闭回调"),
    					e && e.isEnded ? console.log("正常播放结束，可以下发游戏奖励") : console.log("播放中途退出，不下发游戏奖励");
    			});
    		}
    		ShowVideo(e, t, s) {
    			console.log("ShowVideo ==========="),
    				(this.video_loaded = s),
    				(this.video_successed = e),
    				(this.video_failed = t),
    				this.is_first_load_video ? (this.video_obj.show(), A.instance.PauseBgm()) : this.video_obj.load(),
    				(this.is_first_load_video = !1);
    		}
    		ShowBanner(e, t, s) {
    			console.log("VIVOChannel == index == " + e);
    			this.GetCurrentTimestamp(!1);
    			var i = this;
    			switch (e) {
    				case 1:
    					(this.native_banner_1 = qg.createNativeAd({
    						posId: this.native_banner_id_list[0],
    					})),
    						this.native_banner_1.onLoad(function (e) {
    							e && e.adList ? t && t(e.adList[0], i.native_banner_1) : s && s();
    						}),
    						this.native_banner_1.onError((e) => {
    							s && s(), console.log("原生广告1加载异常", e);
    						});
    					break;

    				case 2:
    					(this.native_banner_2 = qg.createNativeAd({
    						posId: this.native_banner_id_list[1],
    					})),
    						this.native_banner_2.onLoad(function (e) {
    							e && e.adList ? t && t(e.adList[0], i.native_banner_2) : s && s();
    						}),
    						this.native_banner_2.onError((e) => {
    							s && s(), console.log("原生广告2加载异常", e);
    						});
    			}
    		}
    		HideBanner(e) {
    			switch (e) {
    				case 1:
    					null != this.native_banner_1 &&
    						null != this.native_banner_1 &&
    						(this.native_banner_1.destroy(), (this.native_banner_1 = null));
    					break;

    				case 2:
    					null != this.native_banner_2 &&
    						null != this.native_banner_2 &&
    						(this.native_banner_2.destroy(), (this.native_banner_2 = null));
    			}
    		}
    		ShowNativeBanner(e, t, s, i) {
    			console.log("VIVOChannel == index == " + e);
    			this.GetCurrentTimestamp(!1);
    			var a = this;
    			switch (e) {
    				case 1:
    					(this.native_banner_1 = qg.createNativeAd({
    						posId: this.native_banner_id_list[0],
    					})),
    						this.native_banner_1.onLoad(function (e) {
    							e && e.adList ? s && s(e.adList[0], a.native_banner_1) : i && i();
    						}),
    						this.native_banner_1.onError((e) => {
    							i && i(), console.log("原生广告1加载异常", e);
    						});
    					break;

    				case 2:
    					(this.native_banner_2 = qg.createNativeAd({
    						posId: this.native_banner_id_list[1],
    					})),
    						this.native_banner_2.onLoad(function (e) {
    							e && e.adList ? s && s(e.adList[0], a.native_banner_2) : i && i();
    						}),
    						this.native_banner_2.onError((e) => {
    							i && i(), console.log("原生广告2加载异常", e);
    						});
    			}
    		}
    		HideNativeBanner(e) {
    			switch (e) {
    				case 0:
    					null != this.native_banner_1 &&
    						null != this.native_banner_1 &&
    						(this.native_banner_1.destroy(), (this.native_banner_1 = null));
    					break;

    				case 1:
    					null != this.native_banner_2 &&
    						null != this.native_banner_2 &&
    						(this.native_banner_2.destroy(), (this.native_banner_2 = null));
    			}
    		}
    		MoveOutBanner() {
    			(Tt.instance.isShowNativeBanner = !1), Gt.instance.hideBanner();
    		}
    		MoveInBanner(e, t, s) {
    			(Tt.instance.isShowNativeBanner = !0), Gt.instance.showBanner();
    		}
    		CreateNative() { }
    		ShowNative(e, t, s, i) {
    			let a = this;
    			this.GetCurrentTimestamp(!1);
    			(this.native_obj = qg.createNativeAd({
    				posId: this.native_id_list[0],
    			})),
    				this.native_obj.onLoad(function (e) {
    					e && e.adList ? s && s(e.adList[0], a.native_obj) : i && i();
    				}),
    				this.native_obj.onError((e) => {
    					i && i(), console.log("原生广告加载异常", e);
    				});
    		}
    		ShowGameClubButton(e, t, s) { }
    		HideNative() { }
    		GetSystemInfo() { }
    		ShareGame(e, t) {
    			qg.share();
    		}
    		StartRecord() { }
    		PauseRecord() { }
    		ResumeRecord() { }
    		StopRecord(e) { }
    		ShareRecord(e, t) { }
    		VibrateShort() {
    			qg.vibrateShort();
    		}
    		VibrateLong() {
    			qg.vibrateLong();
    		}
    		NavigateToMiniProgram(e, t, s, i, a, n = !1) { }
    		isLowMobile() {
    			return !0;
    		}
    		OnShow(e) {
    			qg.onShow(e);
    		}
    		OnHide(e) {
    			qg.onHide(e);
    		}
    		OffShow(e) {
    			qg.offShow(e);
    		}
    		OffHide(e) {
    			qg.offHide(e);
    		}
    		GetLaunchOptionsSync() {
    			return qg.getLaunchOptionsSync();
    		}
    		GetEnterOptionsSync() {
    			return qg.getEnterOptionsSync();
    		}
    		ExitMiniProgram(e, t, s) {
    			qg.exitMiniProgram(e, t, s);
    		}
    		onAudioInterruptionEnd(e) { }
    		onAudioInterruptionBegin(e) { }
    		reStartGame() { }
    	}
    	class Nt extends Et {
    		constructor() {
    			super(...arguments), (this.is_first_load_video = !0);
    		}
    		InitChannel() {
    			(this.is_has_ad = !0),
    				(this.is_has_native = !0),
    				(this.is_native_banner = !0),
    				this.is_has_ad && this.CreateVideo();
    			let e = qg.getSystemInfoSync();
    			(this.width = e.windowWidth), (this.height = e.windowHeight), (this.native_timer = 0), (this.banner_timer = 0);
    		}
    		CreatePage() { }
    		ShowPage(e, t, s) {
    			console.log("ShowPage");
    			this.GetCurrentTimestamp(!1);
    			var i = this;
    			switch (e) {
    				case 1:
    					console.log("self.page_id_list[0] == " + i.page_id_list[0]),
    						null != i.native_page_1 && null != i.native_obj && (i.native_page_1.destroy(), (i.native_page_1 = null)),
    						(i.native_page_1 = qg.createNativeAd({
    							adUnitId: i.page_id_list[0],
    						})),
    						i.native_page_1.onLoad(function (e) {
    							e && e.adList ? t && t(e.adList[0], i.native_page_1) : s && s();
    						}),
    						i.native_page_1.onError((e) => {
    							s && s(), console.log("原生插屏1加载异常", e);
    						}),
    						i.native_page_1.load();
    					break;

    				case 2:
    				case 3:
    					console.log("self.page_id_list[1] == " + i.page_id_list[1]),
    						null != i.native_page_2 && null != i.native_obj && (i.native_page_2.destroy(), (i.native_page_2 = null)),
    						(i.native_page_2 = qg.createNativeAd({
    							adUnitId: i.page_id_list[1],
    						})),
    						i.native_page_2.onLoad(function (e) {
    							e && e.adList ? t && t(e.adList[0], i.native_page_2) : s && s();
    						}),
    						i.native_page_2.onError((e) => {
    							s && s(), console.log("原生插屏2加载异常", e);
    						}),
    						i.native_page_2.load();
    			}
    		}
    		CreateVideo() {
    			console.log("CreateVideo"),
    				(this.video_obj = qg.createRewardedVideoAd({
    					adUnitId: this.video_id_list[0],
    				}));
    			var e = this;
    			this.video_obj.onLoad(function (t) {
    				console.log("激励视频广告加载完成-onload触发", JSON.stringify(t)),
    					console.log("self.is_first_load_video == " + e.is_first_load_video),
    					null != e.video_loaded && null != e.video_loaded && e.video_loaded && e.video_loaded(),
    					e.is_first_load_video || e.video_obj.show();
    			}),
    				this.video_obj.onClose((t) => {
    					t.isEnded
    						? null != e.video_successed && null != e.video_successed && e.video_successed && e.video_successed()
    						: null != e.video_failed && null != e.video_failed && e.video_failed && e.video_failed();
    				}),
    				this.video_obj.onError((t) => {
    					console.log("激励视频广告加载失败", t),
    						null != e.video_failed && null != e.video_failed && e.video_failed && e.video_failed();
    				});
    		}
    		ShowVideo(e, t, s) {
    			console.log("ShowVideo ==========="),
    				(this.video_loaded = s),
    				(this.video_successed = e),
    				(this.video_failed = t),
    				this.is_first_load_video ? this.video_obj.show() : this.video_obj.load(),
    				(this.is_first_load_video = !1);
    		}
    		ShowBanner(e, t, s) {
    			console.log("ShowBanner == index == " + e);
    			var i = this;
    			if (null == i.banner_obj || null == i.banner_obj) {
    				let e = qg.getSystemInfoSync(),
    					a = e.windowWidth,
    					n = e.windowHeight;
    				console.log("windowH =1= " + n),
    					console.log("windowW =1= " + a),
    					(i.banner_obj = qg.createBannerAd({
    						adUnitId: i.banner_id_list[0],
    					})),
    					i.banner_obj.onLoad(() => {
    						console.log("onLoad"), t && t();
    					}),
    					i.banner_obj.onError((e) => {
    						console.log("onError"), s && s(), console.error(e.errMsg + "----" + e.errCode);
    					}),
    					i.banner_obj.onResize(function (e) {
    						console.log("onResize"),
    							console.log("res.height =1= " + e.height),
    							console.log("res.width =1= " + e.width),
    							(i.banner_obj.style.left = (a - e.width) / 2),
    							(i.banner_height = e.height),
    							(i.banner_obj.style.top = n - e.height);
    					}),
    					(i.banner_failed = s);
    			}
    		}
    		HideBanner(e) {
    			this.banner_obj && (this.banner_obj.destroy(), (this.banner_obj = null));
    		}
    		ShowNativeBanner(e, t, s, i) {
    			console.log("ShowNativeBanner == index == " + e);
    			var a = this;
    			if (t)
    				switch (Tt.instance.page_ad_indexForBanner) {
    					case 1:
    					case 2:
    						console.log("self.page_id_list[0] == " + a.page_id_list[0]),
    							this.HideNativeBanner(2),
    							(a.native_banner_3 = qg.createNativeAd({
    								adUnitId: a.page_id_list[0],
    							})),
    							a.native_banner_3.onLoad(function (e) {
    								e && e.adList ? s && s(e.adList[0], a.native_banner_3) : i && i();
    							}),
    							a.native_banner_3.onError((e) => {
    								i && i(), console.log("原生广告3加载异常", e);
    							}),
    							a.native_banner_3.load();
    						break;

    					case 2:
    					case 3:
    						console.log("self.page_id_list[0] == " + a.page_id_list[0]),
    							this.HideNativeBanner(3),
    							(a.native_banner_4 = qg.createNativeAd({
    								adUnitId: a.page_id_list[1],
    							})),
    							a.native_banner_4.onLoad(function (e) {
    								e && e.adList ? s && s(e.adList[0], a.native_banner_4) : i && i();
    							}),
    							a.native_banner_4.onError((e) => {
    								i && i(), console.log("原生广告4加载异常", e);
    							}),
    							a.native_banner_4.load();
    				}
    			else
    				switch (e) {
    					case 0:
    					case 1:
    						console.log("self.native_banner_id_list[" + e + "] == " + a.native_banner_id_list[e]),
    							this.HideNativeBanner(0),
    							(a.native_banner_1 = qg.createNativeAd({
    								adUnitId: a.native_banner_id_list[0],
    							})),
    							a.native_banner_1.onLoad(function (e) {
    								e && e.adList ? s && s(e.adList[0], a.native_banner_1) : i && i();
    							}),
    							a.native_banner_1.onError((e) => {
    								i && i(), console.log("原生广告1加载异常", e);
    							}),
    							a.native_banner_1.load();
    				}
    		}
    		HideNativeBanner(e) {
    			switch (e) {
    				case 0:
    					null != this.native_banner_1 &&
    						null != this.native_banner_1 &&
    						(this.native_banner_1.destroy(), (this.native_banner_1 = null));
    					break;

    				case 1:
    					null != this.native_banner_2 &&
    						null != this.native_banner_2 &&
    						(this.native_banner_2.destroy(), (this.native_banner_2 = null));
    					break;

    				case 2:
    					null != this.native_banner_3 &&
    						null != this.native_banner_3 &&
    						(this.native_banner_3.destroy(), (this.native_banner_3 = null));
    					break;

    				case 3:
    					null != this.native_banner_4 &&
    						null != this.native_banner_4 &&
    						(this.native_banner_4.destroy(), (this.native_banner_4 = null));
    					break;

    				case 4:
    					null != this.native_banner_5 &&
    						null != this.native_banner_5 &&
    						(this.native_banner_5.destroy(), (this.native_banner_5 = null));
    			}
    		}
    		MoveOutBanner() {
    			switch (
    			(console.log("OPPOChannel MoveOutBanner"),
    				console.log("adManage.instance.curBannerType == " + Tt.instance.curBannerType),
    				Tt.instance.curBannerType)
    			) {
    				case 1:
    					(Tt.instance.isShowNativeBanner = !1), Gt.instance.hideBanner();
    					break;

    				case 2:
    					this.banner_obj && this.banner_obj.hide();
    			}
    		}
    		MoveInBanner(e, t, s) {
    			switch (
    			(console.log("OPPOChannel MoveInBanner"),
    				console.log("isCheckScreen =3= " + e),
    				console.log("screenH =3= " + t),
    				console.log("offsetY =3= " + s),
    				console.log("adManage.instance.curBannerType =3= " + Tt.instance.curBannerType),
    				Tt.instance.curBannerType)
    			) {
    				case 1:
    					(Tt.instance.isShowNativeBanner = !0), Gt.instance.showBanner();
    					break;

    				case 2:
    					this.banner_obj && this.banner_obj.show();
    			}
    		}
    		CreateNative() { }
    		ShowNative(e, t, s, i) { }
    		HideNative() { }
    		ShowGameClubButton(e, t, s) { }
    		ShareGame(e, t) { }
    		StartRecord() { }
    		PauseRecord() { }
    		ResumeRecord() { }
    		StopRecord(e) { }
    		ShareRecord(e, t) { }
    		GetSystemInfo() { }
    		VibrateShort() {
    			qg.vibrateShort();
    		}
    		VibrateLong() {
    			qg.vibrateLong();
    		}
    		NavigateToMiniProgram(e, t, s, i, a, n = !1) { }
    		isLowMobile() {
    			return !0;
    		}
    		OnShow(e) {
    			qg.onShow(e);
    		}
    		OnHide(e) {
    			qg.onHide(e);
    		}
    		OffShow(e) {
    			qg.offShow(e);
    		}
    		OffHide(e) {
    			qg.offHide(e);
    		}
    		GetLaunchOptionsSync() {
    			return qg.getLaunchOptionsSync();
    		}
    		GetEnterOptionsSync() {
    			return qg.getEnterOptionsSync();
    		}
    		ExitMiniProgram(e, t, s) {
    			qg.exitMiniProgram(e, t, s);
    		}
    		onAudioInterruptionEnd(e) { }
    		onAudioInterruptionBegin(e) { }
    		reStartGame() { }
    	}
    	class Ut extends Et {
    		constructor() {
    			super(...arguments), (this.recorder = null), (this.on_record_stop = null);
    		}
    		InitChannel() {
    			(this.is_has_ad = !0),
    				(this.is_has_share = !0),
    				(this.is_has_recorder = !0),
    				(this.isToutiao = "Toutiao" == tt.getSystemInfoSync().appName),
    				(this.isDev = "devtools" == tt.getSystemInfoSync().appName),
    				this.is_has_ad && (this.CreateVideo(), this.InitRecorder()),
    				(this.banner_height = 165),
    				tt.showShareMenu({
    					withShareTicket: !1,
    				}),
    				tt.onShareAppMessage(function (e) {
    					return {
    						title: M.share_title,
    					};
    				});
    		}
    		CreatePage() { }
    		ShowPage(e, t, s) {
    			if (this.isToutiao) {
    				const e = tt.createInterstitialAd({
    					adUnitId: this.page_id_list[0],
    				});
    				e.load()
    					.then(() => {
    						e.show();
    					})
    					.catch((e) => {
    						console.log(e);
    					});
    			}
    		}
    		CreateVideo() {
    			(this.video_obj = tt.createRewardedVideoAd({
    				adUnitId: this.video_id_list[0],
    			})),
    				this.video_obj.onLoad((e) => {
    					null != this.video_loaded && null != this.video_loaded && this.video_loaded();
    				}),
    				this.video_obj.onClose((e) => {
    					console.log("res.isEnded == " + e.isEnded),
    						e.isEnded
    							? null != this.video_successed && null != this.video_successed && this.video_successed()
    							: null != this.video_failed && null != this.video_failed && this.video_failed();
    				}),
    				this.video_obj.onError((e) => {
    					null != this.video_failed && null != this.video_failed && this.video_failed(),
    						console.error(e.errMsg + "----" + e.errCode);
    				}),
    				this.video_obj.load();
    		}
    		ShowVideo(e, t, s) {
    			(this.video_successed = e),
    				(this.video_failed = t),
    				(this.video_loaded = s),
    				this.video_obj.show().catch((e) => {
    					this.video_failed();
    				});
    		}
    		ShowBanner(e, t, s) {
    			let i = tt.getSystemInfoSync(),
    				a = i.windowWidth,
    				n = i.windowHeight;
    			(this.banner_obj = tt.createBannerAd({
    				adUnitId: this.banner_id_list[0],
    				style: {
    					width: 208,
    				},
    			})),
    				this.banner_obj.onLoad(() => {
    					this.banner_obj.show();
    				}),
    				this.banner_obj.onError((e) => {
    					console.error(e.errMsg + "----" + e.errCode), s && s();
    				});
    			let o = this;
    			(this.banner_obj.style.top = 3e3),
    				(this.banner_obj.style.left = 3e3),
    				this.banner_obj.onResize((e) => {
    					(o.banner_obj.style.top = n - e.height),
    						(o.banner_obj.style.left = (a - e.width) / 2),
    						(o.banner_height = e.height + 10),
    						t && t();
    				});
    		}
    		HideBanner() {
    			null != this.banner_obj && null != this.banner_obj && (this.banner_obj.destroy(), (this.banner_obj = null));
    		}
    		ShowNativeBanner(e, t, s, i) {
    			console.log("ShowNativeBanner == index == " + e);
    		}
    		HideNativeBanner(e) { }
    		MoveOutBanner() { }
    		MoveInBanner(e, t, s) { }
    		CreateBox() { }
    		ShowBox() { }
    		HideBox() { }
    		CreateJuggle() { }
    		ShowJuggle() { }
    		HideJuggle() { }
    		CreateNative() { }
    		ShowNative(e, t, s, i) { }
    		HideNative() { }
    		ShareGame(e, t) {
    			tt.shareAppMessage({
    				desc: M.share_title,
    				imageUrl: M.share_image_url,
    				query: "",
    				success() {
    					console.log("分享成功"), e && e();
    				},
    				fail(e) {
    					console.log("分享失败");
    				},
    			});
    		}
    		ShowGameClubButton(e, t, s) { }
    		InitRecorder() {
    			(this.recorder = tt.getGameRecorderManager()),
    				this.recorder.onStop((e) => {
    					console.log(e),
    						this.GetCurrentTimestamp(!0) - M.record_start_time >= 3e3
    							? ((M.is_less_three_second = !1),
    								(M.record_path = e.videoPath),
    								console.log("ChannelData.record_path == " + M.record_path))
    							: (M.is_less_three_second = !0),
    						(M.is_recording = !1),
    						this.on_record_stop && this.on_record_stop();
    				}),
    				this.recorder.onStart((e) => {
    					(M.is_recording = !0), (M.record_start_time = this.GetCurrentTimestamp(!0));
    				}),
    				this.recorder.onError((e) => {
    					console.log("------\x3e录屏时发生错误<------\n" + e), (M.is_recording = !1);
    				});
    		}
    		StartRecord() {
    			!M.is_recording && this.recorder
    				? ((M.is_recording = !0),
    					this.recorder.start({
    						duration: 300,
    					}))
    				: this.recorder ||
    				(this.InitRecorder(),
    					(M.is_recording = !0),
    					this.recorder.start({
    						duration: 300,
    					}));
    		}
    		PauseRecord() {
    			this.recorder && this.recorder.pause();
    		}
    		ResumeRecord() {
    			this.recorder && this.recorder.resume();
    		}
    		StopRecord(e) {
    			this.recorder && M.is_recording && ((M.is_recording = !1), this.recorder.stop(), (this.on_record_stop = e));
    		}
    		ShareRecord(e, t) {
    			M.is_less_three_second
    				? Gt.instance.ShowToast("录屏失败：录屏时长低于 3 秒")
    				: M.record_path
    					? tt.shareAppMessage({
    						channel: "video",
    						title: "视频分享",
    						desc: "模拟驾驶真实挖掘机，谁敢来挑战？",
    						imageUrl: "",
    						templateId: "1fun9ibc66x2d4gf20",
    						query: "",
    						extra: {
    							videoPath: M.record_path,
    							videoTopics: [M.record_topics_1, M.record_topics_2],
    							video_title: M.share_title,
    						},
    						success() {
    							(M.record_path = null), (M.is_recording = !1), Gt.instance.ShowToast("分享视频成功！"), e && e();
    						},
    						fail(e) {
    							Gt.instance.ShowToast("分享视频失败！"), console.log(e), t && t();
    						},
    					})
    					: Gt.instance.ShowToast("暂无可分享视频");
    		}
    		GetSystemInfo() {
    			return tt.getSystemInfo({});
    		}
    		VibrateShort() {
    			tt.vibrateShort({});
    		}
    		VibrateLong() {
    			tt.vibrateLong({});
    		}
    		isLowMobile() {
    			return !0;
    		}
    		NavigateToMiniProgram(e, t, s, i, a, n = !1) { }
    		OnShow(e) {
    			tt.onShow(e);
    		}
    		OnHide(e) {
    			tt.onHide(e);
    		}
    		OffShow(e) {
    			tt.offShow(e);
    		}
    		OffHide(e) {
    			tt.offHide(e);
    		}
    		GetLaunchOptionsSync() {
    			return tt.getLaunchOptionsSync();
    		}
    		GetEnterOptionsSync() {
    			return tt.getEnterOptionsSync();
    		}
    		ExitMiniProgram(e, t, s) {
    			tt.exitMiniProgram(e, t, s);
    		}
    		onAudioInterruptionEnd(e) { }
    		onAudioInterruptionBegin(e) { }
    		reStartGame() { }
    	}
    	class Gt extends Mt {
    		constructor() {
    			super(...arguments),
    				(this.isDebug = !1),
    				(this.testAdTime = 15),
    				(this.last_video_time = 0),
    				(this.isStartInit = !1),
    				(this.gametddCof_p4 = null),
    				(this.gametddCof_p5 = null),
    				(this.gametddCof_p6 = null),
    				(this.gametddCof_p7 = null),
    				(this.wx_version = "1.1.8");
    		}
    		static get instance() {
    			return this._instance ? this._instance : ((this._instance = new Gt()), this._instance);
    		}
    		Init() {
    			if (
    				(this.isDebug &&
    					(console.log("ChannelManager == Init"),
    						console.log("ChannelData.channel == " + M.channel),
    						console.log("this.isStartInit == " + this.isStartInit)),
    					!this.isStartInit)
    			)
    				//   switch (((this.isStartInit = !0), M.channel)) {
    				// 	default:
    				this.channel_obj = new xt("", [], [], [], [], []);
    			// 	  break;

    			// 	case e.WEIXIN:
    			// 	  (x.appid = "mjloklrhtw2w81yrzdop"),
    			// 		(x.secret = "2xjnoz5xf6ilmhsn52rbw7604bitc8"),
    			// 		(this.channel_obj = new Bt(
    			// 		  "wx06310621f706570f",
    			// 		  ["adunit-fe35347c89af2511"],
    			// 		  ["adunit-9c8a6da207950f96"],
    			// 		  ["adunit-2a4bcde5f75c36dc"],
    			// 		  [],
    			// 		  ["adunit-b9cb28526c15d447"]
    			// 		));
    			// 	  break;

    			// 	case e.VIVO:
    			// 	  this.channel_obj = new Rt(
    			// 		"105510974",
    			// 		["19a631ca9ca049d6a554c2e6b2914e55"],
    			// 		["092d994297144db5a81ac196bf6420d2", "b2b6274d44174788bf4c7bb7e6fd74cd"],
    			// 		[],
    			// 		["8e8529d646d34eb4a502d1a3dff45347", "4c3ec402f0c24d2ea1b8489046f1c8d3"],
    			// 		[]
    			// 	  );
    			// 	  break;

    			// 	case e.OPPO:
    			// 	  this.channel_obj = new Nt("30831909", ["552538"], ["552537", "552535"], ["552519"], ["552530"], []);
    			// 	  break;

    			// 	case e.TOUTIAO:
    			// 	  this.channel_obj = new Ut(
    			// 		"tt5627209ac91eced102",
    			// 		["4alf482jam6a8gak39"],
    			// 		[],
    			// 		["11kf89g590kbi8kbb7"],
    			// 		[],
    			// 		[]
    			// 	  );
    			//   }
    		}
    		ShowToast(e) {
    			this.isDebug && console.log("ChannelManager ShowToast == content == " + e), this.showToast(e);
    		}
    		ShowDialog(e) {
    			this.showDialog(e);
    		}
    		ShowTestAd(e, s) {
    			this.isDebug && console.log("ChannelManager ShowTestAd"), t.instance.ShowAds(e, s);
    		}
    		//FIX解锁广告
    		// ShowVideo(t, s, i) {
    		//   let a = new Date().getTime();
    		//   console.log("now == " + a),
    		//     console.log("now - this.last_video_time == " + (a - this.last_video_time));
    		//     if(a - this.last_video_time > 4e3)
    		//        {((this.last_video_time = a),
    		//         M.channel == e.WEB
    		//           ? t && t()
    		//           : this.channel_obj && this.channel_obj.is_has_ad
    		//           ? this.channel_obj.ShowVideo(t, s, i)
    		//           : this.channel_obj && !this.channel_obj.is_has_ad && (this.ShowToast("暂时没有视频了！"), s && s()))}else{
    		//        (console.log("请求过于频繁，请稍等3秒~"), this.ShowToast("请求过于频繁，请稍等3秒~"));}
    		// }
    		ShowVideo(t, s, i) {
    			//激励
    			console.log("🚀 ~ file: bundle.js:31080 ~ Gt ~ ShowVideo ~ 解锁关卡广告:");

    			let success = () => {
    				// 获取当前时间戳
    				const currentTime = new Date().getTime();

    				// 打印当前时间和与上次视频时间的差值
    				console.log("now == " + currentTime);
    				console.log("now - this.last_video_time == " + (currentTime - this.last_video_time));

    				// 判断是否已经超过4秒（4000毫秒）
    				if (currentTime - this.last_video_time > 4000) {
    					// 更新上次视频时间
    					this.last_video_time = currentTime;

    					// 不论是什么渠道，都直接执行t()（如果存在）
    					if (t) {
    						t();
    					} else if (s) {  // 如果t不存在，尝试执行s()（如果存在）
    						s();
    					}
    				} else {
    					// 请求过于频繁的情况
    					const message = "请求过于频繁，请稍等3秒~";
    					console.log(message);
    					this.ShowToast(message);
    				}
    			};

    			Advertisement.videoAdverV(success);
    		}

    		ShowPage(e, t, s) {
    			this.channel_obj && this.channel_obj.ShowPage(e, t, s);
    		}
    		ShowBanner(e, t, s, i) {
    			if (i) {
    				Laya.stage.width / Laya.stage.height < 0.56 &&
    					this.channel_obj &&
    					((Tt.isBannerAdShow = !1), this.channel_obj.ShowBanner(e, t, s));
    			} else this.channel_obj && ((Tt.isBannerAdShow = !1), this.channel_obj.ShowBanner(e, t, s));
    		}
    		HideBanner(e) {
    			this.channel_obj && ((Tt.isBannerAdShow = !1), this.channel_obj.HideBanner(e));
    		}
    		ShowNativeBanner(e, t, s, i) {
    			this.channel_obj && ((Tt.isNativeBannerAdShow = !1), this.channel_obj.ShowNativeBanner(e, t, s, i));
    		}
    		HideNativeBanner(e) {
    			this.channel_obj && ((Tt.isNativeBannerAdShow = !1), this.channel_obj.HideNativeBanner(e));
    		}
    		MoveOutBanner() {
    			switch ((this.isDebug && console.log("MoveOutBanner"), (Tt.isBannerAdOutScreen = !0), M.channel)) {
    				case e.WEB:
    				case e.WEIXIN:
    					this.channel_obj && this.channel_obj.MoveOutBanner(), (this.banner.y = 8888);
    					break;

    				default:
    					this.channel_obj && this.channel_obj.MoveOutBanner();
    			}
    		}
    		MoveInBanner(t, s, i, a = !1) {
    			switch (
    			(this.isDebug && console.log("ChannelManager MoveInBanner"),
    				(Tt.isBannerAdOutScreen = !1),
    				(Tt.curOffsetY = i),
    				(Tt.isCheckScreen = t),
    				M.channel)
    			) {
    				case e.WEB:
    				case e.WEIXIN:
    					a
    						? (this.banner.y = Laya.stage.height)
    						: (this.channel_obj && this.channel_obj.banner_obj && this.channel_obj.MoveInBanner(t, s, i),
    							(this.banner.y = Laya.stage.height));
    					break;

    				default:
    					this.channel_obj && this.channel_obj.MoveInBanner(t, s, i);
    			}
    		}
    		GetBannerHeight() {
    			return this.channel_obj.banner_height, 0;
    		}
    		ShowNative(e, t, s, i) {
    			this.channel_obj && this.channel_obj.ShowNative(e, t, s, i);
    		}
    		CreateCustomAd(t, s = !1, i = !0) {
    			switch (M.channel) {
    				case e.WEIXIN:
    					switch (t) {
    						case 1:
    							Bt.wx_createCustomAd(Bt.wx_CustomAdKey_1, 120, 50, !1, !0);
    							break;

    						case 2:
    							Bt.wx_createCustomAd(Bt.wx_CustomAdKey_2, Bt.windowW - 200, 50, !1, !0);
    							break;

    						case 3:
    							Bt.wx_createCustomAd(Bt.wx_CustomAdKey_3, 30, 0.5 * (Bt.windowH - 280));
    							break;

    						case 4:
    							Bt.wx_createCustomAd(Bt.wx_CustomAdKey_4, Bt.windowW - 88, 0.5 * (Bt.windowH - 280));
    							break;

    						case 5:
    							Bt.wx_createCustomAd(Bt.wx_CustomAdKey_5, 0.5 * (Bt.windowW - 295), 85);
    							break;

    						case 6:
    							Bt.wx_createCustomAd(Bt.wx_CustomAdKey_6, 0.5 * (Bt.windowW - 500), 0.5 * (Bt.windowH - 350), !0, !1, i);
    					}
    			}
    		}
    		ClearCustomAd(t = !1) {
    			switch (M.channel) {
    				case e.WEIXIN:
    					Bt.wx_clearCustomAd(t);
    			}
    		}
    		HideNative() {
    			this.channel_obj && this.channel_obj.HideNative();
    		}
    		ShareGame(e, t) {
    			this.isDebug && console.log("ChannelManager ShareGame"), this.channel_obj && this.channel_obj.ShareGame(e, t);
    		}
    		showGameClubBtn(e, t, s) {
    			this.isDebug && console.log("ChannelManager showGameClubBtn"),
    				this.channel_obj && this.channel_obj.ShowGameClubButton(e, t, s);
    		}
    		getLaunchOptionsSync() {
    			if ((this.isDebug && console.log("ChannelManager getLaunchOptionsSync"), this.channel_obj))
    				return this.channel_obj.GetLaunchOptionsSync();
    		}
    		onShow(e) {
    			this.channel_obj && this.channel_obj.OnShow(e);
    		}
    		onHide(e) {
    			this.channel_obj && this.channel_obj.OnHide(e);
    		}
    		onAudioInterruptionEnd(e) {
    			this.channel_obj && this.channel_obj.onAudioInterruptionEnd(e);
    		}
    		onAudioInterruptionBegin(e) {
    			this.channel_obj && this.channel_obj.onAudioInterruptionBegin(e);
    		}
    		startRecord() {
    			this.channel_obj && this.channel_obj.StartRecord();
    		}
    		PauseRecord() {
    			this.channel_obj && this.channel_obj.PauseRecord();
    		}
    		ResumeRecord() {
    			this.channel_obj && this.channel_obj.ResumeRecord();
    		}
    		stopRecord(e) {
    			this.channel_obj && this.channel_obj.StopRecord(e);
    		}
    		shareRecord(e, t) {
    			this.channel_obj && null != M.record_path
    				? this.channel_obj.ShareRecord(e, t)
    				: this.ShowToast("暂无可分享视频！");
    		}
    		GetSystemInfo() {
    			if (this.channel_obj) return this.channel_obj.GetSystemInfo();
    		}
    		VibrateShort() {
    			M.vibrate && this.channel_obj && this.channel_obj.VibrateShort();
    		}
    		VibrateLong() {
    			M.vibrate && this.channel_obj && this.channel_obj.VibrateLong();
    		}
    		NavigateToMiniProgram(e, t, s, i, a, n = !1) {
    			this.channel_obj && this.channel_obj.NavigateToMiniProgram(e, t, s, i, a, n);
    		}
    		isLowMobile() {
    			return this.channel_obj.isLowMobile();
    		}
    		GetIsHasAd() {
    			return this.channel_obj.is_has_ad;
    		}
    		GetIsHasRecorder() {
    			return this.channel_obj.is_has_recorder;
    		}
    		GetIsHasShare() {
    			return this.channel_obj.is_has_share;
    		}
    		GetIsHasExit() {
    			return this.channel_obj.is_has_exit;
    		}
    		GetIsHasPage() {
    			return this.channel_obj.is_has_ad && this.channel_obj.is_has_page;
    		}
    		GetIsHasBanner() {
    			return this.channel_obj.is_has_ad && this.channel_obj.is_has_banner;
    		}
    		GetIsHasBox() {
    			return this.channel_obj.is_has_ad && this.channel_obj.is_has_box;
    		}
    		GetIsHasJuggle() {
    			return this.channel_obj.is_has_ad && this.channel_obj.is_has_jm;
    		}
    		exitGame(e, t, s) {
    			this.channel_obj && this.channel_obj.ExitMiniProgram(e, t, s);
    		}
    		reStartGame() {
    			this.channel_obj && this.channel_obj.reStartGame();
    		}
    		RandomRange(e, t) {
    			return e == t ? e : Math.round(Math.random() * (t - e) + e);
    		}
    	}
    	class Ft {
    		constructor() { }
    		static init() {
    			(0, Laya.ClassUtils.regClass)("scene/MainScene.ts", At);
    		}
    	}
    	(Ft.width = 2250),
    		(Ft.height = 1080),
    		(Ft.scaleMode = "showall"),
    		(Ft.screenMode = "none"),
    		(Ft.alignV = "middle"),
    		(Ft.alignH = "center"),
    		(Ft.startScene = "MainScene.scene"),
    		(Ft.sceneRoot = ""),
    		(Ft.debug = !1),
    		(Ft.stat = !1),
    		(Ft.physicsDebug = !1),
    		(Ft.exportSceneToJson = !0),
    		Ft.init();
    	new (class {
    		constructor() {
    			var e = new Config3D();
    			const userAgent = window.navigator.userAgent;
    			if (userAgent.indexOf("OS 15_1") > -1 || userAgent.indexOf("OS 15_0_2") > -1) { Config.useWebGL2 = false; }

    			// var hRatioW = Laya.Browser.clientHeight / Laya.Browser.clientWidth;
    			// let width = 750;
    			// let height = 1334;
    			// if (hRatioW > 1) {
    			// 	Ft.height = height * hRatioW;
    			// }
    			// else {
    			// 	Ft.width = width * hRatioW;
    			// }

    			switch (
    			((e.enableMultiLight = !1),
    				(e.pbrRenderQuality = Laya.PBRRenderQuality.Low),
    				(e.maxLightCount = 1),
    				(e.isAntialias = !1),
    				window.Laya3D ? Laya3D.init(Ft.width, Ft.height, e) : Laya.init(Ft.width, Ft.height, Laya.WebGL),
    				Laya.Physics && Laya.Physics.enable(),
    				Laya.DebugPanel && Laya.DebugPanel.enable(),
    				(Laya.stage.scaleMode = "showall"),
    				(Laya.stage.screenMode = "none"),
    				(Laya.stage.alignV = "middle"),
    				(Laya.stage.alignH = "center"),
    				(Laya.URL.exportSceneToJson = Ft.exportSceneToJson),
    				(Ft.debug || "true" == Laya.Utils.getQueryString("debug")) && Laya.enableDebugPanel(),
    				Ft.physicsDebug && Laya.PhysicsDebugDraw && Laya.PhysicsDebugDraw.enable(),
    				Ft.stat && Laya.Stat.show(),
    				Laya.alertGlobalError(!0),
    				l.game_channel)
    			) {
    				case 1:
    				// Laya.URL.basePath = "https://zswjjmnq-cdn.jinkezhexin.top/weixin/" + Gt.instance.wx_version + "/WJJ/";
    				// Laya.URL.basePath = "/bin/download/";
    			}
    			this.loadSub(() => {
    				Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION);
    			});

    			Advertisement.initVal();
    		}
    		loadSub(e) {
    			let qg = window['qg'];
    			if (window.qg) {
    				let loaded = Laya.LocalStorage.getItem("Loaded");
    				if (loaded != 1) {
    					var downloadTask = qg.download({
    						url: "https://duoduoyou.com.cn/CDN/WaJueJiMoNiQi/DLWJJKC/1.0/bin.zip",
    						success: function (data) {
    							console.log(`handling success, tempFilePath = ${data.tempFilePath}`);
    							qg.unzipFile({
    								srcUri: data.tempFilePath,
    								dstUri: qg.env.USER_DATA_PATH + "/bin",
    								success: function (uri) {
    									console.log("进了这里");
    									console.log(`handling success: ${uri}`);
    									Laya.URL.basePath = qg.env.USER_DATA_PATH + "/bin/";
    									Laya.LocalStorage.setItem("Loaded", 1);

    									e();
    								},
    								fail: function (data, code) {
    									console.log(`handling fail, code = ${code}`);
    								}
    							});
    						},
    						fail: function (data, code) {
    							console.log(`handling fail, code = ${code}`);
    						}
    					});

    					this.progressBar = new Laya.ProgressBar("comp/progress.png");
    					Laya.stage.addChild(this.progressBar);
    					this.progressBar.value = 0;
    					this.progressBar.width = 400;
    					this.progressBar.height = 32;

    					this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2;
    					this.progressBar.y = Laya.stage.height / 2;

    					this.progressBar.sizeGrid = "5,5,5,5";

    					let self = this;
    					downloadTask.onProgressUpdate(function (msg) {
    						console.log('SSSSSSSSSSSSSSSSS');
    						var progress = msg["progress"];
    						console.log(progress + "%");

    						// qg.showToast({
    						//     title: '当前加载 ' + progress + ' %',
    						//     duration: 1000
    						// })

    						self.progressBar.value = progress / 100;
    						if (self.progressBar.value >= 1) {
    							self.progressBar.destroy();
    						}

    					});
    				}
    				else {
    					Laya.URL.basePath = qg.env.USER_DATA_PATH + "/bin/";

    					e();
    				}
    			} else {
    				e();
    			}
    		}
    		onVersionLoaded() {
    			// YYGGames.init("Excavator-Simulator-3D", () => {
    			// 	//  Laya.Text.defaultFont = "Arial";
    			//    YYGGames.gameBanner.visible = false;//关闭滚动推广
    			//    YYGGames.gameBox.visible = false;//关闭交叉推广
    			//    YYGGames.gameBanner.bottom = 10;
    			//    YYGGames.gameBanner.setBannerSize(200, 150);
    			//    YYGGames.icon.scale(0.7, 0.7)
    			//    YYGGames.icon.right = 0;
    			//    YYGGames.icon.skin = "@base/yad.png";
    			//    YYGGames.gameBox.bottom = 0;
    			//    YYGGames.gameBox.game1.left = 58.5;
    			//    YYGGames.gameBox.game2.left = 380;
    			//    YYGGames.gameBox.game1.bottom = 500;
    			//    YYGGames.gameBox.game2.bottom = 500;
    			// this.editcode()
    			//    });//YYGGames
    			//    h5splash.hideLoading();

    			let self = this;
    			Laya.loader.create("prefab/jkgg.prefab", Laya.Handler.create(this, prefab => {
    				let jkgg = Laya.Pool.getItemByCreateFun("jkgg", prefab.create, prefab);
    				jkgg.width = Laya.stage.width;
    				jkgg.height = Laya.stage.height;
    				Laya.stage.addChild(jkgg);
    				Laya.timer.once(3 * 1000, this, function () {
    					jkgg.visible = false;

    					// Laya.loader.load("prefab/fwtk.json", Laya.Handler.create(this, function (pref) {
    					//     var fwtkp = new Laya.Prefab();
    					//     fwtkp.json = pref;
    					//     var fwtks = Laya.Pool.getItemByCreateFun("fwtk", fwtkp.create, fwtkp);
    					//     fwtks.pos(Laya.stage.width / 2, Laya.stage.height / 2);
    					//     fwtks.scaleX = 1;
    					//     fwtks.scaleY = 1;
    					//     fwtks.getChildByName('btn_yes').on(Laya.Event.MOUSE_DOWN, this, function () {
    					//         Laya.LocalStorage.setItem('ycys', JSON.parse('true'));
    					//         fwtks.removeSelf();

    					self.editcode();

    					//     })
    					//     fwtks.getChildByName('btn_no').on(Laya.Event.MOUSE_DOWN, this, function () {
    					//         qg.exitApplication({
    					//             success: function () {
    					//                 console.log("exitApplication success");
    					//             },
    					//             fail: function () {
    					//                 console.log("exitApplication fail");
    					//             },
    					//             complete: function () {
    					//                 console.log("exitApplication complete");
    					//             }
    					//         });
    					//     })
    					//     Laya.stage.addChild(fwtks);
    					// }))

    				});
    			}));
    		}
    		editcode() {
    			Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded));
    			window["showMetheAuthor"] = function () {
    				const iframe = document.createElement("iframe");
    				iframe.style.display = 'none';
    				document.head.appendChild(iframe);
    				const logger = iframe.contentWindow["console"];
    				logger.log.apply(this, [
    					"%c %c %c YYGGAMES %c%s %c %c ",
    					"background: #fb8cb3",
    					"background: #d44a52",
    					"color: #ffffff; background: #871905",
    					"color: #ffffff;background: #871905;",
    					'116,104,101,32,103,97,109,101,32,105,115,32,112,111,119,101,114,101,100,32,98,121,32,121,121,103'
    						.split(",").map(iter => { return String.fromCharCode(~~iter) }).join(""),
    					"background: #d44a52",
    					"background: #fb8cb3"]);
    			};
    		}
    		onConfigLoaded() {
    			Ft.startScene && Laya.Scene.open(Ft.startScene);
    		}
    	})();
    })();

}());
