(function () {
  'use strict';

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

  };
  //初始化变量
  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.nativeAd = null;    //原生广告变量
    Advertisement.isLoad = false; //原生广告就绪
    Advertisement.isShow = false; //原生广告就绪

    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 = true;      //防止原生广告是否请求频繁判断
    Advertisement.insert = true;      //防止插屏广告是否请求频繁判断
    Advertisement.bannerReady = false;      //防止banner广告请求频繁判断
    Advertisement.isAutoBanner = true;
    Advertisement.video = true;      //防止video请求过于频繁
    Advertisement.bgmusic = 0;        //背景音乐ID
    Advertisement.adId = '';          //原生广告返回ID
    Advertisement.nativeAdl = null;
    Advertisement.adLabel = null;
    Advertisement.bannerID = "";
    Advertisement.imenu = false;
    Advertisement.pkname = '';
    Advertisement.hutui = null;
    Advertisement.imag = null;
    Advertisement.closeBtn = null;
    Advertisement.closet = false;

    Advertisement.socketTimeOut = null;
   

    Advertisement.screenWidth = 0;
    Advertisement.screenHeight = 0;

    Advertisement.initSystemInfo();
    var two  = 0;
    Advertisement.nativeAdV();
    // Advertisement.bannerAdver();
    Advertisement.insertAdverV2();
    
    Advertisement.data = null;
    qg.getSystemInfo({
        success: function (data) {
            console.log(`handling success， screenHeight = ${data.screenHeight}`);
            Advertisement.data = data;
        }
    });
    this.testDate = new Date();

    
  };


  /**
     * 在这个时间前不显示广告
     * @param _year 年
     * @param _month 月
     * @param _date 日
     * @param _h 小时
     * @param _m 分钟
     * @returns 
     */
  Advertisement.TimeManger = function(_year, _month, _date, _h,){
    var nowdate = new Date();
    //年
    var year = nowdate.getFullYear();
    //月
    var month = nowdate.getMonth() + 1;
    //日
    var date = nowdate.getDate();
    //周几
    var day = nowdate.getDay();
    //小时
    var h = nowdate.getHours();
    //分钟
    var m = nowdate.getMinutes();
    //秒
    var s = nowdate.getSeconds();
    console.log(year, month, date, h, m);
    if (year > _year) {
      return true
    } else if (year == _year) {
      if (month > _month) {
        return true;
      } else if (month == _month) {
        if (date > _date) {
          return true;
        } else if (date == _date) {
          if (h > _h) {
            return true;
          }
          else {
            return false;
          }
        }
        else {
          return false;
        }
      } else {
        return false;
      }
    } else {
      return false;
    }
  };
  var JGt  = 0;
  Advertisement.jiangeP = function(){
    
    if (Laya.timer.currTimer - JGt > 3000) {
      JGt = Laya.timer.currTimer;
   
      return true;
    }
    else {
      return false;
    }
  };
  Advertisement.insertAdverV2 = function () {
    
    
      if(Advertisement.jiangeP() == true)
      {
        if(!Advertisement.TimeManger(2025,5,5,19) ) return;
        console.log('*-/-*'),
        Advertisement.showNative();
      }
      
    
     

     
  },

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

  //VIVO获取系统信息
  Advertisement.initSystemInfo = function () {
    qg.getSystemInfo({
      success: function (data) {
        console.log(`handling success， brand = ${data.brand}`);
        Advertisement.screenHeight = data.screenHeight;
        Advertisement.screenWidth = data.screenWidth;
      }
    });
  },

    
    //VIVO原生插屏广告横屏
    Advertisement.nativeAdV = function () {
      console.log("测试log0:", Advertisement.isLoad);
      if (Advertisement.screenHeight && Advertisement.screenWidth) {
        console.log("测试log1:", Advertisement.isLoad);
        Advertisement.nativeAd = qg.createCustomAd({
          posId: '2290af137e3848bcbc28112f0fd390ea',
          style: {
            // left: (Advertisement.screenWidth - (Advertisement.screenWidth/1080)*525)/2,
            top: Advertisement.screenHeight / 2
            // left: Advertisement.data.screenWidth / 4,
            // top: Advertisement.data.screenHeight / 8
          }
        });
      }
      else {
        console.log("测试log2:", Advertisement.isLoad);
        Advertisement.nativeAd = qg.createCustomAd({
          posId: '2290af137e3848bcbc28112f0fd390ea',
          style: {
            top: 500
            // left: Advertisement.data.screenWidth / 4,
            //       top: Advertisement.data.screenHeight / 8
          }
        });
      }
      Advertisement.nativeAd.onLoad(() => {
        Advertisement.isLoad = true;
        console.log("原生广告onLoad");
      });
      Advertisement.nativeAd.onError(err => {
        console.log("原生模板广告加载失败", err);
        Advertisement.isLoad = false;
        Laya.timer.once(1000, this, Advertisement.nativeAdV);
      });
    },

    
    Advertisement.showNative = 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: '2290af137e3848bcbc28112f0fd390ea',
                  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('周一五')
      // )
  },
    //VIVObanner广告


    //VIVO插屏广告
    Advertisement.insertV = function () {
      console.log('Advertisement.insertV');
      // Advertisement.showNative();
      // Advertisement.nativeAdV();
      Advertisement.showNative();
    };

    // //VIVO激励视频


  Advertisement.videoAdverV = function (e) {
    Advertisement.showTip("暂无广告，请重试");
    Advertisement.videop = e;
    if (Advertisement.videoAd == null) {
        Advertisement.videoAd = qg.createRewardedVideoAd({
            posId: '4e63b3b2bdf9494a837f3e5f4a19ca93' //输入广告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.showTip("暂无广告，请重试");
                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();
            }
        });
    }
    var adload = Advertisement.videoAd.load();

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

  Advertisement.showTip = function (str) {
    let te = new Laya.Label();
    te.text = str;
    te.fontSize = 38;
    te.zOrder = 99999;
    te.color = "#FFFFFF";//FFFFFF
    te.x = 280;
    te.y = 300;
    
    Laya.stage.addChild(te);
    Laya.timer.once(2 * 1000,this,()=>{
      te.destroy();
    });
  };
  Advertisement.specialPeriod = function () {
    console.log('休息休息鲲鲲亲眼睛');
    this.testDate = new Date();
        setInterval(() => {
            Laya.loader.create("prefab/TimeDialog.json",Laya.Handler.create(this,function(){
              var n = Laya.loader.getRes("prefab/TimeDialog.json");
              var g = new Laya.View();
              g.createView(n);
              Laya.stage.addChild(g);
              g.x = -180,
              g.y = -320,
              Advertisement.insertAdverV2();
              console.log('休息休息鲲鲲亲眼睛2222');
              setTimeout(() => {
                g.destroy();
              }, 2000);
            }));
        }, 30000);
  };

  ! function() {
  	"use strict";
  	var t, e, i;
  	! function(t) {
  		t[t.Portrait = 0] = "Portrait", t[t.Landscape = 1] = "Landscape";
  	}(t || (t = {}));
  	class s {
  		constructor(t) {
  			this.onFuiLoaded = (() => {
  				fgui.UIPackage.getByName(this._package) || fgui.UIPackage.addPackage(this._aniUrl(this._package));
  			}), this._coms = [], this.getMcCom = ((t, e) => {
  				this._swich && this.loadRes(Laya.Handler.create(this, this.onResLoaded, [t, e]));
  			}), this._package = t, this._swich = !0;
  		}
  		_aniUrl(t) {
  			return "res/ani/" + t
  		}
  		onResLoaded(t, i) {
  			if (!this._swich) return;
  			null == this._coms && (this._coms = []);
  			let s = this._package + "Ani",
  				a = fgui.UIPackage.createObject(this._package, s, i);
  			if (!a) throw new Error("资源名错误 或 不存在" + s);
  			a instanceof e.GMovieClip && a.setPivot(.5, .5, !0), a.displayObject.hitArea = null, a.displayObject.mouseThrough = !0, this._coms.push(a), t && t.runWith(a), t = null;
  		}
  		loadRes(t) {
  			Laya.loader.load([{
  				url: this._aniUrl(this._package) + "_atlas0.png",
  				type: Laya.Loader.IMAGE
  			}, {
  				url: this._aniUrl(this._package) + ".fui",
  				type: Laya.Loader.BUFFER
  			}], Laya.Handler.create(this, () => {
  				this.onFuiLoaded(), t && t.run(), t = null;
  			}), null, Laya.Loader.IMAGE);
  		}
  		clearMcAndCom() {
  			this._swich = !1, null != this._coms && (this._coms.forEach((t, e) => {
  				t && t.dispose(!1);
  			}), this._coms = null);
  			let t = this._aniUrl(this._package) + "_atlas0.png";
  			Laya.loader.cancelLoadByUrl(t), Laya.loader.clearTextureRes(t);
  		}
  	}
  	class a {
  		static get mcArr() {
  			return this._mcArr
  		}
  		static get handNum() {
  			return this._handNum
  		}
  		static getMcByType(t, e, i) {
  			return a._mcArr[t] || (a._mcArr[t] = new s(t)), a._mcArr[t].getMcCom(e, i), a._handNum[t] ? a._handNum[t]++ : a._handNum[t] = 1, a._mcArr[t]
  		}
  		static loadMcRes(t, e) {
  			a._mcArr[t] || (a._mcArr[t] = new s(t)), a._mcArr[t].loadRes(e);
  		}
  		static addMcNode(t) {
  			a._mcArr[t] || (a._mcArr[t] = new s(t)), a._handNum[t] ? a._handNum[t]++ : a._handNum[t] = 1;
  		}
  		static clearAllMcByType(t) {
  			null != a._handNum[t] && (delete a._handNum[t], this._mcArr[t].clearMcAndCom(), delete a._mcArr[t]);
  		}
  		static clearMcTimesByType(t, e = 1) {
  			let i = a._handNum[t];
  			null != i && (a._handNum[t] = i - e, a._handNum[t] <= 0 && (i > 0 && this._mcArr[t].clearMcAndCom(), a._handNum[t] <= 0 && (delete a._mcArr[t], delete a._handNum[t])));
  		}
  	}
  	a._mcArr = {}, a._handNum = {},
  		function(t) {
  			t.GButton = class extends fgui.GButton {};
  			t.UIPackage = class extends fgui.UIPackage {};
  			t.UIObjectFactory = class extends fgui.UIObjectFactory {};
  			t.GComboBox = class extends fgui.GComboBox {};
  			t.GComponent = class extends fgui.GComponent {
  				dispose() {
  					Laya.timer.clearAll(this), super.dispose();
  				}
  				close() {
  					Laya.timer.clearAll(this);
  				}
  				updateHitTestArea(t) {
  					let e = fgui.UIPackage.getItemByURL(t);
  					null != e && null != e.pixelHitTestData && (this._displayObject.hitArea = new fgui.PixelHitTest(e.pixelHitTestData, 0, 0), this._displayObject.mouseThrough = !1, this._displayObject.hitTestPrior = !0);
  				}
  				getChildByName(t) {
  					let e = this._children.length;
  					for (let i = 0; i < e; ++i)
  						if (this._children[i].name == t) return this._children[i];
  					return null
  				}
  			};
  			t.GGraph = class extends fgui.GGraph {};
  			t.GGroup = class extends fgui.GGroup {};
  			t.GImage = class extends fgui.GImage {};
  			t.GLabel = class extends fgui.GLabel {};
  			t.GList = class extends fgui.GList {};
  			t.Controller = class extends fgui.Controller {};
  			t.Transition = class extends fgui.Transition {};
  			t.GLoader = class extends fgui.GLoader {
  				set urlAndClearLast(t) {
  					if (this.url && this.url != t) {
  						fgui.ToolSet.startsWith(this.url, "ui://") || Laya.loader.clearTextureRes(this.url);
  						let t = this.displayObject.destroyed ? null : this.content;
  						if (t && t instanceof fgui.MovieClip) {
  							let t = this._contentItem;
  							a.clearMcTimesByType(t ? t.owner.name : "");
  						}
  					}
  					this.url = t;
  				}
  				setUrlByPack(t, e) {
  					let i = fgui.UIPackage.getByName(t);
  					i && Laya.loader.getRes(i.customId + ".fui") ? (this.urlAndClearLast = fgui.UIPackage.getItemURL(t, e), this.content && this.content instanceof fgui.MovieClip && a.addMcNode(t)) : (this.urlAndClearLast = "", a.loadMcRes(t, Laya.Handler.create(this, () => {
  						this._displayObject.destroyed || "" != this.url || this.setUrlByPack(t, e);
  					})));
  				}
  				set sizeGrid(t) {
  					this.content instanceof Laya.Image && (this.content.sizeGrid = t);
  				}
  				dispose() {
  					this.urlAndClearLast = "", super.dispose();
  				}
  			};
  			t.GMovieClip = class extends fgui.GMovieClip {
  				stop() {
  					this.playing = !1;
  				}
  				stopAtFrame(t) {
  					this.stop(), this.frame = t;
  				}
  				dispose() {
  					this.stop(), super.dispose();
  				}
  				playOnce(t, e = !0, i = -1) {
  					i = e ? -1 : i, this.setPlaySettings(0, -1, 1, i, Laya.Handler.create(this, t => {
  						t && t.run(), e && this.dispose();
  					}, [t]));
  				}
  			};
  			t.GProgressBar = class extends fgui.GProgressBar {};
  			t.GRichText = class extends fgui.GRichTextField {};
  			t.GScrollBar = class extends fgui.GScrollBar {};
  			t.GSlider = class extends fgui.GSlider {};
  			t.GTextField = class extends fgui.GBasicTextField {};
  			t.GTextInput = class extends fgui.GTextInput {};
  		}(e || (e = {}));
  	class n extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "RockerCom")
  		}
  		onConstruct() {
  			this.m_item = this.getChildAt(0);
  		}
  	}
  	n.URL = "ui://kk7g5mmmi98xn";
  	class o extends Laya.EventDispatcher {
  		static get instance() {
  			return null == this._instance && (this._instance = new o), this._instance
  		}
  		eventUI(t, e) {
  			console.log("UI " + t), o.instance.event(t, e);
  		}
  		event3d(t, e) {
  			console.log("Scene " + t), o.instance.event(t, e);
  		}
  		onUI(t, e, i, s) {
  			o.instance.on(t, e, i, s);
  		}
  		offUI(t, e, i) {
  			o.instance.off(t, e, i);
  		}
  		off3d(t, e, i, s) {
  			o.instance.off(t, e, i);
  		}
  		on3d(t, e, i, s) {
  			o.instance.on(t, e, i, s);
  		}
  	}! function(t) {
  		t.COINCHANGE = "coinChange", t.CHANGEHERO = "changeHero", t.Start = "Start", t.Revive = "Revive", t.End = "End", t.GamePasue = "GamePause", t.GameResume = "GameResume", t.SkinChanged = "SkinChanged", t.DeerAtt = "DeerAtt", t.DeerDisAtt = "DeerDisAtt", t.DeerJump = "DeerJump", t.DeerLongNeck = "DeerLongNeck", t.StopLongNeck = "StopLongNeck", t.SwitchNeckForm = "SwitchNeckForm", t.RockerInit = "RockerInit", t.RockerMove = "RockerMove", t.PickUpWeapon = "PickUpWeapon", t.TurnOffWeapon = "TurnOffWeapon", t.CarForwardNo = "CarForwardNo", t.CarBackNo = "CarBackNo", t.CarLeftNo = "CarLeftNo", t.CarRightNo = "CarRightNo", t.CarForward = "CarForward", t.CarBack = "CarBack", t.CarLeft = "CarLeft", t.CarRight = "CarRight", t.DeerForward = "DeerForward", t.OpenDrive = "OpenDrive", t.OffDrive = "OffDrive", t.CarDrive = "CarDrive", t.CarOffDrive = "CarDriveNo", t.GuideStart = "GuideStart", t.GuideFinish = "GuideFinish", t.MountDrive = "MountDrive", t.MountOffDrive = "MountOffDrive", t.MechaDirve = "MechaDirve", t.MechaOffDirve = "MechaOffDirve", t.MechaAtt = "MechaAtt", t.MechaDisAtt = "MechaDisAtt", t.MechaFlight = "MechaFlight", t.MechaNoFlight = "MechaNoFlight", t.FlyCattleDirve = "FlyCattleDirve", t.FlyCattleOffDirve = "FlyCattleOffDirve", t.CloseTimer = "CloseTimer", t.ZhengYiWin = "ZhengYiWin", t.HideCrazy = "HideCrazy", t.ShowCrazy = "ShowCrazy", t.initStateWeapon = "initStateWeapon";
  	}(i || (i = {}));
  	class r {
  		static Replace(t, e, i) {
  			let s = t.indexOf(e);
  			return !(s < 0) && (t.splice(s, 1, i), !0)
  		}
  		static Remove(t, e) {
  			let i = t.indexOf(e);
  			return !(i < 0) && (t.splice(i, 1), !0)
  		}
  		static RemoveAt(t, e) {
  			return !(t.length <= e) && (t.splice(e, 1), !0)
  		}
  		static Contains(t, e) {
  			return t.indexOf(e) >= 0
  		}
  		static Copy(t) {
  			let e = [];
  			for (let i = 0; i < t.length; ++i) e.push(t[i]);
  			return e
  		}
  	}
  	class h {
  		static ToHex(t) {
  			return t.toString(16)
  		}
  		static RandomFromArrayExcept(t, e) {
  			let i = [];
  			for (let s = 0; s < t.length; ++s) e != t[s] && i.push(t[s]);
  			return this.RandomFromArray(i)
  		}
  		static RandomFromArray(t) {
  			return t[h.RandomInt(0, t.length)]
  		}
  		static RandomArrayFromArray(t, e) {
  			let i = [],
  				s = [];
  			for (let e = 0; e < t.length; ++e) s.push(e);
  			for (let a = 0; a < e; ++a) {
  				let e = h.RandomInt(0, s.length),
  					a = s[e];
  				r.RemoveAt(s, e), i.push(t[a]);
  			}
  			return i
  		}
  		static RandomFromWithWeight(t, e) {
  			if (null == t || 0 == t.length) return null;
  			var i = 0;
  			for (var s of e) i += s;
  			for (var a = h.Random(0, i), n = 0, o = 0; o < t.length; ++o)
  				if (a < (n += e[o])) return t[o];
  			return t[t.length - 1]
  		}
  		static RandomInt(t, e) {
  			return Math.floor(this.Random(t, e))
  		}
  		static Random(t, e) {
  			return (e - t) * Math.random() + t
  		}
  		static RandomRatio(t) {
  			return t > .01 * h.RandomInt(0, 1e4)
  		}
  		static Clamp(t, e, i) {
  			return t < e ? e : t > i ? i : t
  		}
  		static Clamp01(t) {
  			return this.Clamp(t, 0, 1)
  		}
  		static Sign(t) {
  			return 0 == t ? 1 : t > 0 ? 1 : -1
  		}
  		static GetNumCount(t) {
  			for (var e = 0, i = t; i / 10 > 0;) i = Math.floor(i / 10), e++;
  			return e
  		}
  		static Lerp(t, e, i) {
  			return t + (e - t) * h.Clamp01(i)
  		}
  		static MoveTowardsAngle(t, e, i) {
  			var s = h.DeltaAngle(t, e);
  			return 0 - i < s && s < i ? e : (e = t + s, h.MoveTowards(t, e, i))
  		}
  		static MoveTowards(t, e, i) {
  			return Math.abs(e - t) <= i ? e : t + Math.sign(e - t) * i
  		}
  		static DeltaAngle(t, e) {
  			var i = h.Repeat(e - t, 360);
  			return i > 180 && (i -= 360), i
  		}
  		static Repeat(t, e) {
  			return h.Clamp(t - Math.floor(t / e) * e, 0, e)
  		}
  		static IsSimilar(t, e) {
  			return t == e
  		}
  	}
  	h.Deg2Rad = .0175, h.Rad2Deg = 57.2958;
  	class l {
  		static get temp() {
  			return l.__temp__ || (l.__temp__ = l.zeroNew), l.__temp__.setValue(0, 0, 0), l.__temp__
  		}
  		static get s_up() {
  			return l.__up__ || (l.__up__ = l.up), l.__up__.setValue(0, 1, 0), l.__up__
  		}
  		static get s_down() {
  			return l.__down__ || (l.__down__ = l.down), l.__down__.setValue(0, -1, 0), l.__down__
  		}
  		static get s_forward() {
  			return l.__forward__ || (l.__forward__ = l.forward), l.__forward__.setValue(0, 0, 1), l.__forward__
  		}
  		static get s_zero() {
  			return l.__zero__ || (l.__zero__ = l.zeroNew), l.__zero__.setValue(0, 0, 0), l.__zero__
  		}
  		static get s_one() {
  			return l.__one__ || (l.__one__ = l.one), l.__one__.setValue(1, 1, 1), l.__one__
  		}
  		static get up() {
  			return new Laya.Vector3(0, 1, 0)
  		}
  		static get down() {
  			return new Laya.Vector3(0, -1, 0)
  		}
  		static get forward() {
  			return new Laya.Vector3(0, 0, 1)
  		}
  		static get zeroNew() {
  			return new Laya.Vector3(0, 0, 0)
  		}
  		static get one() {
  			return new Laya.Vector3(1, 1, 1)
  		}
  		static get back() {
  			return new Laya.Vector3(0, 0, -1)
  		}
  		static get left() {
  			return new Laya.Vector3(-1, 0, 0)
  		}
  		static get right() {
  			return new Laya.Vector3(1, 0, 0)
  		}
  		static v3toOne(t) {
  			let e = Laya.Vector3.distance(t, this.zero);
  			return Laya.Vector3.scale(t, 1 / e, t), t
  		}
  		static Cross(t, e) {
  			var i = new Laya.Vector3(0, 0, 0);
  			return Laya.Vector3.cross(t, e, i), i
  		}
  		static Subtract(t, e) {
  			var i = new Laya.Vector3(0, 0, 0);
  			return Laya.Vector3.subtract(t, e, i), i
  		}
  		static ClampMagnitude(t, e) {
  			var i = new Laya.Vector3(0, 0, 0);
  			return i = Laya.Vector3.distanceSquared(t, i) > e * e ? l.Scale(l.Normalize(t), e) : t
  		}
  		static Normalize(t) {
  			var e = new Laya.Vector3(0, 0, 0);
  			return Laya.Vector3.normalize(t, e), e
  		}
  		static Add(...t) {
  			for (var e = new Laya.Vector3(0, 0, 0), i = 0; i < t.length; ++i) {
  				var s = t[i];
  				e.x += s.x, e.y += s.y, e.z += s.z;
  			}
  			return e
  		}
  		static Scale(t, e) {
  			var i = new Laya.Vector3(0, 0, 0);
  			return Laya.Vector3.scale(t, e, i), i
  		}
  		static ScaleV3(t, e) {
  			return new Laya.Vector3(t.x * e.x, t.y * e.y, t.z * e.z)
  		}
  		static Dot(t, e) {
  			return Laya.Vector3.dot(t, e)
  		}
  		static Lerp(t, e, i) {
  			var s = new Laya.Vector3(0, 0, 0);
  			return Laya.Vector3.lerp(t, e, i, s), s
  		}
  		static MagnitudeSqrt(t) {
  			return t.x * t.x + t.y * t.y + t.z * t.z
  		}
  		static Magnitude(t) {
  			return Math.sqrt(this.MagnitudeSqrt(t))
  		}
  		static Magnitude2D(t) {
  			return Math.sqrt(t.x * t.x + t.z * t.z)
  		}
  		static Distance(t, e) {
  			var i = l.Subtract(t, e);
  			return l.Magnitude(i)
  		}
  		static Distance2D(t, e) {
  			let i = t.x - e.x,
  				s = t.z - e.z;
  			return Math.sqrt(i * i + s * s)
  		}
  		static DistanceSqrt(t, e) {
  			let i = l.Subtract(t, e);
  			return i.x * i.x + i.y * i.y + i.z * i.z
  		}
  		static DistanceSqrt2D(t, e) {
  			let i = l.Subtract(t, e);
  			return i.x * i.x + i.z * i.z
  		}
  		static SignAngleAsix(t, e, i) {
  			let s = l.Normalize(i),
  				a = l.Dot(t, s),
  				n = l.Subtract(t, l.Scale(s, a)),
  				o = l.Dot(e, s),
  				r = l.Subtract(e, l.Scale(s, o)),
  				c = l.Normalize(n),
  				d = l.Normalize(r),
  				u = 57.29578 * Math.acos(h.Clamp(Laya.Vector3.dot(c, d), -1, 1)),
  				_ = l.Cross(c, d);
  			return u * h.Sign(Laya.Vector3.dot(i, _))
  		}
  		static SignedAngle(t, e, i) {
  			var s = l.Normalize(t),
  				a = l.Normalize(e),
  				n = 57.29578 * Math.acos(h.Clamp(Laya.Vector3.dot(s, a), -1, 1)),
  				o = l.Cross(s, a);
  			return n * h.Sign(Laya.Vector3.dot(i, o))
  		}
  		static Angle(t, e) {
  			var i = l.Normalize(t),
  				s = l.Normalize(e);
  			return 57.29578 * Math.acos(h.Clamp(Laya.Vector3.dot(i, s), -1, 1))
  		}
  		static SmoothDamp(t, e, i, s, a, n) {
  			var o = 2 / s,
  				r = o * n,
  				h = 1 / (1 + r + .48 * r * r + .235 * r * r * r),
  				c = l.Subtract(t, e),
  				d = e.clone(),
  				u = a * s;
  			c = l.ClampMagnitude(c, u);
  			var _ = l.Subtract(t, c),
  				m = l.Scale(l.Add(i, l.Scale(c, o)), n),
  				p = l.Scale(l.Subtract(i, l.Scale(m, o)), h);
  			i.x = p.x, i.y = p.y, i.z = p.z;
  			var g = l.Add(_, l.Scale(l.Add(c, m), h));
  			return l.Dot(l.Subtract(d, t), l.Subtract(g, d)) > 0 && (g = d, i.x = 0, i.y = 0, i.z = 0), g
  		}
  		static Fix(t, e) {
  			Math.abs(t.x) < e && (t.x = 0), Math.abs(t.y) < e && (t.y = 0), Math.abs(t.z) < e && (t.z = 0);
  		}
  		static IsSame(t, e) {
  			return t.x == e.x && t.y == e.y && t.z == e.z
  		}
  		static WrapFromUnity(t, e, i) {
  			return new Laya.Vector3(-t, e, i)
  		}
  		static CalcPosWithASpeed(t, e, i, s) {
  			let a = l.Scale(e, t),
  				n = l.Scale(i, t * t / 2);
  			return l.Add(a, n, s)
  		}
  		static InitialTransform(t) {
  			t.localPosition = l.s_zero, t.localScale = l.s_one, t.rotationEuler = l.s_zero;
  		}
  		static InSector(t, e, i, s, a, n) {
  			let o = l.temp;
  			if (o.setValue((e.x - t.x) * (1 - n.x), (e.y - t.y) * (1 - n.y), (e.z - t.z) * (1 - n.z)), l.MagnitudeSqrt(o) <= i * i) {
  				if (l.Angle(a, o) <= s) return !0
  			}
  			return !1
  		}
  	}
  	l.zero = new Laya.Vector3;
  	class c {
  		static deg2rad(t) {
  			return t * Math.PI / 180
  		}
  		static isZero(t) {
  			return 0 == t.x && 0 == t.y && 0 == t.z
  		}
  		static SwitchParent(t, e) {
  			if (t && e) {
  				let i = t.transform.scale.clone(),
  					s = t.transform.position.clone(),
  					a = t.transform.rotationEuler.clone();
  				e.addChild(t), t.transform.scale = i, t.transform.position = s, t.transform.rotationEuler = a;
  			}
  		}
  		static SwitchParentLocal(t, e) {
  			if (t && e) {
  				let i = t.transform.localScale.clone(),
  					s = t.transform.localPosition.clone(),
  					a = t.transform.localRotationEuler.clone();
  				e.addChild(t), t.transform.localScale = i, t.transform.localPosition = s, t.transform.localRotationEuler = a;
  			}
  		}
  		static direOneDis(t, e) {
  			let i = t.distance(e.x, e.y),
  				s = c.minus(t, e);
  			return Laya.Vector2.scale(s, 1 / i, s), s
  		}
  		static updateRotation(t) {
  			return c.angleByPoint({
  				x: 0,
  				y: 0
  			}, {
  				x: t.x,
  				y: t.z
  			})
  		}
  		static updateRotationDelayY(t, e, i) {
  			let s = this.angleByPoint(l.zeroNew, {
  				x: t.x,
  				y: t.z
  			});
  			return c.updateRotationByAngle(s, e, i)
  		}
  		static updateRotationDelayX(t, e, i) {
  			let s = this.angleByPoint(l.zeroNew, {
  				x: t.z,
  				y: t.y
  			});
  			return c.updateRotationByAngle(s, e, i)
  		}
  		static updateRotationDelayZ(t, e, i) {
  			let s = this.angleByPoint(l.zeroNew, {
  				x: t.y,
  				y: t.x
  			});
  			return c.updateRotationByAngle(s, e, i)
  		}
  		static updateRotationByAngle(t, e, i, s = 1) {
  			let a = this.getIncludeAngle(t, e),
  				n = 0 == s ? 18 / i : i;
  			if (Math.abs(a) <= n) return a;
  			let o = i;
  			return 0 == s && (this._tempAngle != t && (this._offset = a), o = this._offset * i / 10), o *= Laya.timer.scale, a > 0 ? o : a < 0 ? -o : void 0
  		}
  		static direOneDisV3(t, e) {
  			let i = Laya.Vector3.distance(t, e),
  				s = new Laya.Vector3;
  			return Laya.Vector3.subtract(t, e, s), Laya.Vector3.scale(s, 1 / i, s), s
  		}
  		static angleByPoint(t, e) {
  			return -parseFloat((180 * Math.atan2(t.x - e.x, -(t.y - e.y)) / Math.PI)
  				.toFixed(2))
  		}
  		static minus(t, e) {
  			return new Laya.Vector2(t.x - e.x, t.y - e.y)
  		}
  		static getIncludeAngle(t, e) {
  			-180 == t && (t = 180);
  			let i = t - (e %= 360);
  			return i > 180 && (i -= 360), i < -180 && (i = 360 + i), i > 180 && console.log("错误"), i
  		}
  		static Shuffle(t) {
  			for (let e = t.length; e; e--) {
  				let i = Math.floor(Math.random() * e);
  				[t[e - 1], t[i]] = [t[i], t[e - 1]];
  			}
  			return t
  		}
  		static GetDate() {
  			var t = new Date;
  			return t.getFullYear() + "年" + (t.getMonth() + 1) + "月" + t.getDate() + "日"
  		}
  		static TimeToString(t, e = 0) {
  			var i = Math.floor(t / 1e3),
  				s = i % 60,
  				a = Math.floor(i / 60) % 60,
  				n = Math.floor(i / 3600) % 24;
  			return 0 == e ? c.formatNumber(n) + ":" + c.formatNumber(a) + ":" + c.formatNumber(s) : c.formatNumber(n) + "小时" + c.formatNumber(a) + "分钟" + c.formatNumber(s) + "秒"
  		}
  		static formatNumber(t) {
  			var e = t.toString();
  			return e[1] ? e : "0" + e
  		}
  		static rand(t) {
  			return t[Math.floor(Math.random() * t.length)]
  		}
  		static randByWeight(...t) {
  			for (var e = 0, i = 0; i < t.length; i++) e += Number(t[i]);
  			var s = Math.random() * e,
  				a = 0;
  			for (i = 0; i < t.length; i++) {
  				var n = a;
  				if (a += Number(t[i]), s >= n && s <= a) return i
  			}
  			return 0
  		}
  		static hexToRgba01(t) {
  			return new Laya.Vector4(parseInt("0x" + t.slice(1, 3)) / 255, parseInt("0x" + t.slice(3, 5)) / 255, parseInt("0x" + t.slice(5, 7)) / 255, 1)
  		}
  		static rgb01ToHex(t, e, i) {
  			return "#" + ((t = Math.min(255, Math.round(255 * t))) << 16 | (e = Math.min(255, Math.round(255 * e))) << 8 | (i = Math.min(255, Math.round(255 * i))))
  				.toString(16)
  		}
  		static rgb255ToHex(t, e, i) {
  			return "#" + (t << 16 | e << 8 | i)
  				.toString(16)
  		}
  		static hexToRgb01(t) {
  			return new Laya.Vector3(parseInt("0x" + t.slice(1, 3)) / 255, parseInt("0x" + t.slice(3, 5)) / 255, parseInt("0x" + t.slice(5, 7)) / 255)
  		}
  		static rgb255Torgb01(t) {
  			return t.x /= 255, t.y /= 255, t.z /= 255, t
  		}
  		static Angle2(t, e) {
  			var i = (t.x * e.x + t.y * e.y + t.z * e.z) / (Math.sqrt(t.x * t.x + t.y * t.y + t.z * t.z) * Math.sqrt(e.x * e.x + e.y * e.y + e.z * e.z));
  			return i < -1 && (i = -1), i > 1 && (i = 1), 180 * Math.acos(i) / Math.PI
  		}
  		static Save(t, e) {
  			var i = Laya.Browser.document.createElement("a");
  			i.download = e, i.style.display = "none";
  			var s = new Blob([JSON.stringify(t)]);
  			i.href = URL.createObjectURL(s), document.body.appendChild(i), i.click(), document.body.removeChild(i);
  		}
  		static SaveArray(t, e) {
  			var i = Laya.Browser.document.createElement("a");
  			i.download = e, i.style.display = "none";
  			new ArrayBuffer(4 * t.length);
  			var s = new Blob([t]);
  			i.href = URL.createObjectURL(s), document.body.appendChild(i), i.click(), document.body.removeChild(i);
  		}
  		static vibrateShort() {
  			window.wx && Laya.timer.callLater(wx, wx.vibrateShort, [null]);
  		}
  		static vibrateLong() {
  			window.wx && Laya.timer.callLater(wx, wx.vibrateLong, [null]);
  		}
  		static get TodayMS() {
  			var t = new Date;
  			return t.setHours(0, 0, 0, 0), t.getTime()
  		}
  		static get CurrentTime() {
  			return (new Date)
  				.getTime()
  		}
  		static WaitFrame(t) {
  			return new Promise(e => {
  				Laya.timer.frameOnce(t, null, e);
  			})
  		}
  		static WaitTime(t) {
  			return new Promise(e => {
  				t <= 0 ? e() : setTimeout(e, t);
  			})
  		}
  		static WaitWithBlock(t) {
  			return new Promise(e => {
  				var i = () => {
  					Laya.timer.delta, t() && (Laya.timer.clear(null, i), e());
  				};
  				Laya.timer.frameLoop(1, null, i);
  			})
  		}
  		static WaitTimeWithBlock(t, e) {
  			return new Promise(i => {
  				var s = 0,
  					a = () => {
  						var n = Math.min(100, Laya.timer.delta);
  						((s += n) >= t || e()) && (Laya.timer.clear(null, a), i());
  					};
  				Laya.timer.frameLoop(1, null, a);
  			})
  		}
  		static WaitTimeWithDuartionCall(t, e, i) {
  			return new Promise(s => {
  				var a = 0,
  					n = 0;
  				i();
  				var o = () => {
  					var r = Math.min(100, Laya.timer.delta);
  					(a += r, (n += r) >= e) && (n -= e, 0 == i() && (Laya.timer.clear(null, o), s()));
  					t > 0 && a >= t && (Laya.timer.clear(null, o), s());
  				};
  				Laya.timer.frameLoop(1, null, o);
  			})
  		}
  		static LoadUI(t) {
  			return console.log("load ui ", t), new Promise(e => {
  				fgui.UIPackage.loadPackage(t, Laya.Handler.create(null, e));
  			})
  		}
  		static WaitAnimation(t, e = 1) {
  			return new Promise(i => {
  				null != t ? t.play(Laya.Handler.create(null, i), e) : i();
  			})
  		}
  		static PromiseQueue(t, ...e) {
  			var i = Promise.resolve(t);
  			return e && e.forEach(t => {
  				i = i.then(t);
  			}), i
  		}
  		static SaveImgToTempPath(t, e = null) {
  			return new Promise(i => {
  				var s = window.wx;
  				if (null != s) {
  					var a = (e = null == e ? t.toBase64("image/png", 1) : e)
  						.indexOf("base64,") + 7,
  						n = s.getFileSystemManager(),
  						o = c.CurrentTime,
  						r = s.env.USER_DATA_PATH + "/pic" + o + ".png";
  					n.writeFile({
  						filePath: r,
  						data: e.slice(a),
  						encoding: "base64",
  						success: t => {
  							i(r);
  						},
  						fail: t => {
  							console.log(t), i(null);
  						}
  					});
  				} else i(null);
  			})
  		}
  		static OppoSaveImgToTempPath(t) {
  			return new Promise(e => {
  				var i = window.wx;
  				if (null != i) {
  					var s = i.getFileSystemManager(),
  						a = c.CurrentTime,
  						n = i.env.USER_DATA_PATH + "/pic" + a + ".png";
  					s.writeFile({
  						filePath: n,
  						data: t,
  						encoding: "binary",
  						success: t => {
  							e(n);
  						},
  						fail: t => {
  							console.log(t), e(null);
  						}
  					});
  				} else e(null);
  			})
  		}
  		static DistancePointWithLine(t, e, i) {
  			return Math.abs(this.SignDistancePointWithLine(t, e, i))
  		}
  		static PointToSegmentDist(t, e, i) {
  			var s = (i.x - e.x) * (t.x - e.x) + (i.y - e.y) * (t.y - e.y);
  			if (s <= 0) return Math.sqrt((t.x - e.x) * (t.x - e.x) + (t.y - e.y) * (t.y - e.y));
  			var a = (i.x - e.x) * (i.x - e.x) + (i.y - e.y) * (i.y - e.y);
  			if (s >= a) return Math.sqrt((t.x - i.x) * (t.x - i.x) + (t.y - i.y) * (t.y - i.y));
  			var n = s / a,
  				o = e.x + (i.x - e.x) * n,
  				r = e.y + (i.y - e.y) * n;
  			return Math.sqrt((t.x - o) * (t.x - o) + (r - t.y) * (r - t.y))
  		}
  		static PointToSegmentDist2(t, e, i, s, a, n) {
  			var o = (a - i) * (t - i) + (n - s) * (e - s);
  			if (o <= 0) return Math.sqrt((t - i) * (t - i) + (e - s) * (e - s));
  			var r = (a - i) * (a - i) + (n - s) * (n - s);
  			if (o >= r) return Math.sqrt((t - a) * (t - a) + (e - n) * (e - n));
  			var h = o / r,
  				l = i + (a - i) * h,
  				c = s + (n - s) * h;
  			return Math.sqrt((t - l) * (t - l) + (c - e) * (c - e))
  		}
  		static SignDistancePointWithLine(t, e, i) {
  			var s = new Laya.Vector3;
  			Laya.Vector3.subtract(t, e, s);
  			var a = new Laya.Vector3(-i.z, 0, i.x);
  			return Laya.Vector3.cross(new Laya.Vector3(0, 0, 1), i, a), Laya.Vector3.normalize(a, a), Laya.Vector3.dot(s, a)
  		}
  		static CheckSegmentLineIntersect(t, e, i, s) {
  			var a = this.SignDistancePointWithLine(t, i, s),
  				n = this.SignDistancePointWithLine(e, i, s);
  			return !(!Laya.MathUtils3D.isZero(a) && !Laya.MathUtils3D.isZero(n)) || Math.sign(a) != Math.sign(n)
  		}
  		static SegmentLineIntersectPos(t, e, i, s) {
  			var a = this.DistancePointWithLine(t, i, s),
  				n = new Laya.Vector3;
  			Laya.Vector3.add(t, e, n);
  			var o = a / (a + this.DistancePointWithLine(n, i, s)),
  				r = new Laya.Vector3;
  			return Laya.Vector3.scale(e, o, r), Laya.Vector3.add(t, r, r), r
  		}
  		static LineIntersectPos(t, e, i, s) {
  			var a = new Laya.Vector3;
  			Laya.Vector3.subtract(i, t, a);
  			var n = e.x * s.y - e.y * s.x,
  				o = (a.x * s.y - a.y * s.x) / n;
  			return Laya.Vector3.scale(e, o, e), Laya.Vector3.add(t, e, a), a
  		}
  		static AngleLerpWithSpeed(t, e, i, s) {
  			var a = e - t;
  			a < -180 ? a += 360 : a > 180 && (a -= 360);
  			var n = i;
  			return a < 0 && (n = -i), (t += n * s) > 360 && (t -= 360), t < 0 && (t += 360), t
  		}
  		static AngleLerp(t, e, i) {
  			var s = e - t;
  			return s < -180 ? s += 360 : s > 180 && (s -= 360), (t += s * i) > 360 && (t -= 360), t < 0 && (t += 360), t
  		}
  		static GetAllSKinMeshRender(t, e) {
  			if (t instanceof Laya.SkinnedMeshSprite3D) {
  				var i = t.skinnedMeshRenderer;
  				e.push(i);
  			}
  			for (let i = 0; i < t.numChildren; i++) {
  				var s = t.getChildAt(i);
  				this.GetAllSKinMeshRender(s, e);
  			}
  		}
  		static GetAllMeshRenderer(t, e) {
  			if (t instanceof Laya.MeshSprite3D) {
  				var i = t.meshRenderer;
  				e.push(i);
  			}
  			for (let i = 0; i < t.numChildren; i++) {
  				var s = t.getChildAt(i);
  				this.GetAllMeshRenderer(s, e);
  			}
  		}
  		static SetAllMeshRendererMat(t, e) {
  			t instanceof Laya.MeshSprite3D && (t.meshRenderer.sharedMaterial = e);
  			for (let s = 0; s < t.numChildren; s++) {
  				var i = t.getChildAt(s);
  				this.SetAllMeshRendererMat(i, e);
  			}
  		}
  		static GetChildNode(t, e) {
  			if (t.name == e) return t;
  			if (!(t.numChildren > 0)) return null;
  			for (let s = 0; s < t.numChildren; s++) {
  				var i = this.GetChildNode(t.getChildAt(s), e);
  				if (null != i) return i
  			}
  		}
  		static SetPhysicGroup(t, e) {
  			var i = t.getComponent(Laya.PhysicsCollider);
  			null != i && (i.collisionGroup = e);
  			var s = t.getComponent(Laya.Rigidbody3D);
  			null != s && (s.collisionGroup = e);
  			for (var a = 0; a < t.numChildren; a++) this.SetPhysicGroup(t.getChildAt(a), e);
  		}
  		static ParseVector3(t) {
  			var e = t.split(",");
  			return new Laya.Vector3(Number(e[0]), Number(e[1]), Number(e[2]))
  		}
  		static getPhysicComponent(t) {
  			let e = t.getComponent(Laya.PhysicsCollider);
  			return e || (e = t.getComponent(Laya.Rigidbody3D)), e
  		}
  	}
  	var d, u, _, m, p, g, f, y, C, w, L, b, S, k, v, I, P, A, O;

  	function __awaiter(t, e, i, s) {
  		return new(i || (i = Promise))(function(a, n) {
  			function fulfilled(t) {
  				try {
  					step(s.next(t));
  				} catch (t) {
  					n(t);
  				}
  			}

  			function rejected(t) {
  				try {
  					step(s.throw(t));
  				} catch (t) {
  					n(t);
  				}
  			}

  			function step(t) {
  				t.done ? a(t.value) : new i(function(e) {
  						e(t.value);
  					})
  					.then(fulfilled, rejected);
  			}
  			step((s = s.apply(t, e || []))
  				.next());
  		})
  	}
  	class R {
  		static Load(t, e, i = null) {
  			i && i.once && (i.once = !1), Laya.loader.create(t, e, i);
  		}
  		static Load2d(t, e, i = null) {
  			i && i.once && (i.once = !1), Laya.loader.load(t, e, i);
  		}
  		static LoadAsync(t, e = null) {
  			return new Promise(function(i) {
  				R.Load(t, Laya.Handler.create(null, () => {
  					i();
  				}), e);
  			})
  		}
  		static Load2dAsync(t, e = null) {
  			return new Promise(function(i) {
  				R.Load2d(t, Laya.Handler.create(null, () => {
  					i();
  				}), e);
  			})
  		}
  		static Get(t, e = !1) {
  			let i = Laya.loader.getRes(t);
  			return null == i ? (console.error("资源尚未加载", t), null) : e ? i : i.clone()
  		}
  		static LoadAndGet(t, e = !1) {
  			return __awaiter(this, void 0, void 0, function*() {
  				return yield R.LoadAsync(t), R.Get(t, e)
  			})
  		}
  		static Unload(t) {
  			Laya.loader.clearRes(t);
  		}
  	}
  	class D {
  		constructor() {
  			this.Prefabs = "@dogBoss@@dogBossPos@@skinDeer@@dieFX@@cdeng@@panda_break@@deer@@laser@@Antlers@@bear@@sheep@@panda@@rabbit@@car1@@car4@@Scenes@@SL_baozha@@ptRunSwimEf@@boss_jiguangbaodian@@PTDL_Prop_Deerhead@@mechaBorn@@car2@@boss_gjluodian@@Mecha@@car3@@peopel_2@@peopel_1@@peopel_nv1@@peopel_nv2@@people@@AK@@rifle@@handGun@@bullet@@gz_texiao@@cases@@machine@@sword@@allCarRoad@@monsterRoad@@guangyun@@people1@@whale@@whale_break@@Horse@@plane@@ptRunEf@@shazi@@Zebra@@Horse_01@@bulletEf@@rhinoceros@@cattle_01@@cattle@@baton@@gunEf@@carBoom@@buildBoom@@bsAtt2@@langan@@lanqiujia@@taidao@@elephant@@policeBorn@@qy@@shouji1@@shouji2@@shouji3@@shouji4@@Building_6@@Building_12_1@@Building_13_1@@Building_14_1@@Building_2_1@@Building_12@@Building_3@@Building_4@@Building_5@@Building_1@@Building_7@@Building_9@@Building_10@@Building_11@@Building_13@@Building_14@@Building_15@@Building_2@@Building_8@@yuncai@@Building_16@@Building_17@@Building_18@@Building_19@@Building_20@@Building_21@@Building_22@@Building_23@@Building_24@@Building_25@@Building_26@@Building_27@@Building_28@@Building_29@@Building_30@@Building_34@@Building_35@@Building_36@@Building_37@@Building_38@@Building_39@@Building_40@@Building_41@@Building_42@@Building_43@@Building_44@@Building_45@@Building_46@@Building_47@@Building_48@@Building_49@@Building_50@@Building_51@@Building_52@@Building_53@@Building_54@@Building_55@@Building_56@@Building_57@@Building_58@@Building_59@@Building_60@@Building_61@@car_break_1@@car_break_2@@car_break_3@@Building_break_24@@Building_break_56@@Building_break_60@@Building_break_29@@Building_break_36@@Building_break_25@@Building_break_26@@Building_break_23@@Building_break_19@@Building_break_20@@Building_break_21@@Building_break_15@@Building_break_17@@Building_break_18@@Building_break_12@@Building_break_13@@Building_break_14@@Building_break_9@@Building_break_10@@Building_break_11@@Building_break_4@@Building_break_5@@Building_break_8@@Building_break_1@@Building_break_2@@Building_break_3@@Building_break_16@@PTDL_Prop_jiguan_01@@PTDL_Prop_jiguan_02@@PTDL_Prop_jiguan_03@@PTDL_Prop_jiguan_04@@PTDL_Vehicle_car_05@@PTDL_Scenes_Cloud_01@@PTDL_Scenes_Cloud_02@@PTDL_Scenes_Cloud_03@@PTDL_Scenes_luji_02@@PTDL_Scenes_Sky@@PTDL_Scenes_luji_03@@PTDL_Scenes_luji_04@@PTDL_Scenes_03@@Building_break_27@@Building_break_28@@Building_break_30@@Building_break_34@@Building_break_61@@Building_break_54@", this.Prefabs1 = "@boss_gjluodian@@Mecha@@peopel_2@@peopel_nv1@@car3@@peopel_nv2@@bullet@@AK@@rifle@@handGun@@peopel_1@@gz_texiao@@people@@bulletMecha@", this.Prefabs2 = "@Building_6@@Building_12_1@@Building_14_1@@Building_2_1@@Building_12@@Building_14@@Building_8@@Building_17@@Building_5@@Building_19@@Building_20@@Building_4@@Building_11@@Building_13@@Building_15@@Building_16@@Building_21@@Building_22@@Building_23@@Building_26@@Building_24@@Building_27@@Building_28@@Building_29@@Building_34@@Building_38@@Building_41@@Building_42@@Building_43@@Building_51@@Building_54@@Building_45@@Building_3@@Building_9@@Building_10@@Building_2@@Building_25@@Building_30@@Building_7@@Building_13_1@", this.Prefabs3 = "@Building_break_60@@deer@@skinDeer@@deer_new@@Building_break_24@@Building_break_29@@Building_break_36@@Building_break_25@@Building_break_23@@Building_break_19@@Building_break_20@@Building_break_21@@Building_break_15@@Building_break_17@@Building_break_18@@Building_break_13@@Building_break_14@@Building_break_10@@Building_break_11@@Building_break_8@@Building_break_1@@Building_break_2@@PTDL_Prop_jiguan_02@@PTDL_Prop_jiguan_04@@PTDL_Vehicle_car_05@@PTDL_Scenes_Sky@@Building_break_9@@Building_break_4@@Building_break_5@@Building_break_3@@Building_break_16@@PTDL_Prop_jiguan_01@@PTDL_Prop_jiguan_03@@PTDL_Scenes_Cloud_01@@PTDL_Scenes_Cloud_03@@Building_break_56@@Building_break_12@@PTDL_Scenes_Cloud_02@@Building_break_27@@Building_break_28@@Building_break_30@@Building_break_34@@Building_break_61@@Building_break_54@@PTDL_Scenes_luji_03@@PTDL_Scenes_03@@PTDL_Scenes_luji_02@@PTDL_Scenes_luji_04@@machine@@monsterRoad@@allCarRoad@@people1@@whale@@Building_1@@Building_18@@Building_35@@Building_37@@Building_44@@Building_50@@Building_52@@Building_53@@Building_55@@Building_57@@Building_59@@Building_46@@Building_60@@Building_61@@Building_39@@Building_40@@Building_36@@Building_47@@Building_48@@Building_58@@Building_49@@Building_56@@cases@", this.Prefabs4 = "@car_break_1@@car_break_2@@car_break_3@@shouji1@@shouji4@@shouji3@@langan@@car2@@whale_break@@plane@@policeBorn@@yuncai@@shazi@@bsAtt2@@Horse_01@@elephant@@baton@@boss_jiguangbaodian@@Scenes@@lanqiujia@@qy@@rhinoceros@@carBoom@@sword@@Horse@@cattle@@PTDL_Prop_Deerhead@@shouji2@@Zebra@@guangyun@@cattle_01@@taidao@@bulletEf@@ptRunEf@@mechaBorn@@gunEf@@buildBoom@";
  		}
  	}
  	class x extends D {}
  	class B {}
  	B.logStyle = "\n        color: #fff;\n        background-color: #8d93ab;\n        border-radius: 3px;\n        line-height: 15px;\n        ", B.comStyle = "\n        color: #fff;\n        background-color: #ade498;\n        border-radius: 3px;\n        line-height: 15px;\n        ", B.warnStyle = "\n        color: #5c6e06;\n        background-color: #ffa931;\n        border-radius: 3px;\n        line-height: 15px;\n        ", B.errorStyle = "\n        color: #fff;\n        background-color: #ec0101;\n        border-radius: 3px;\n        line-height: 15px;\n        ", B.platformStyle = "\n        color: #52575d;\n        background-color: #e3fdfd;\n        border-radius: 3px;\n        line-height: 15px;\n        ";
  	class M {
  		static log(...t) {
  			console.log(`%c ${t}`, B.logStyle);
  		}
  		static warn(...t) {
  			console.log(`%c ${t}`, B.warnStyle);
  		}
  		static error(...t) {
  			console.log(`%c ${t}`, B.errorStyle);
  		}
  		static packLog(...t) {
  			return [`%c ${t} `, B.logStyle]
  		}
  		static comLog(...t) {
  			return [`%c ${t} `, B.comStyle]
  		}
  		static packWarn(...t) {
  			return [`%c 警告: ${t} `, B.warnStyle]
  		}
  		static packError(...t) {
  			return [`%c 错误: ${t} `, B.errorStyle]
  		}
  		static packPlatform(...t) {
  			return [`%c 平台: ${t} `, B.platformStyle]
  		}
  	}! function(t) {
  		t.RootRes = "res", t.Fgui = "fgui";
  	}(d || (d = {}));
  	class T {}
  	T.CDNURLs = [];
  	class U {}
  	U.subpackages = [{
  		name: "res",
  		root: "res/"
  	}, {
  		name: "fgui",
  		root: "fgui/"
  	}, {
  		name: "Prefabs",
  		root: "Prefabs/"
  	}, {
  		name: "Prefabs1",
  		root: "Prefabs1/"
  	}, {
  		name: "Prefabs2",
  		root: "Prefabs2/"
  	}, {
  		name: "Prefabs3",
  		root: "Prefabs3/"
  	}, {
  		name: "Prefabs4",
  		root: "Prefabs4/"
  	}];
  	class V {
  		constructor() {
  			this.m_KeyResList = {}, this.m_KeyResList_ = {}, this.m_KeyResList = {
  				[d.RootRes]: d.RootRes + "/",
  				[d.Fgui]: d.RootRes + "/" + d.Fgui + "/"
  			};
  			let t = new x;
  			for (let e in t) d[e] = e, this.m_KeyResList[d[e]] = d.RootRes + "/" + d[e] + "/", console.log("注入预制体资源路径", this.m_KeyResList[d[e]]);
  			for (let t in this.m_KeyResList) this.m_KeyResList_[t] = this.m_KeyResList[t];
  			this.setRes();
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new V), this._instance
  		}
  		setRes() {
  			for (let t of U.subpackages) this.editKeyResList(t.name, t.root);
  			for (let t of T.CDNURLs) this.editKeyResList(t.name, t.root);
  		}
  		getResURL(t) {
  			return this.m_KeyResList[t]
  		}
  		editKeyResList(t, e) {
  			let i = this.m_KeyResList_[t];
  			if (i) {
  				console.log("修改关键点资源路径", i, "替换成", e);
  				for (let t in this.m_KeyResList)
  					if (this.m_KeyResList[t] = this.m_KeyResList[t].replace(i, e), Laya.Browser.onQGMiniGame || Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onTTMiniGame) {
  						let t = this.getWx();
  						0 == Laya.Browser.onQGMiniGame ? "Prefabs/" != e && "Prefabs3/" != e || null == t || (e = t.env.USER_DATA_PATH + "/1/" + e, console.log("网络下载解压后修改关键点资源路径", e)) : "Prefabs1/" != e && "Prefabs2/" != e && "Prefabs4/" != e || null == t || (e = t.env.USER_DATA_PATH + "/1/" + e, console.log("网络下载解压后修改关键点资源路径", e));
  					} this.m_KeyResList_[t] = e;
  			} else console.log("修改资源路径失败，没有" + t + "这个关键路径！");
  		}
  		getWx() {
  			return Laya.Browser.onWeiXin ? Laya.Browser.window.wx : Laya.Browser.onQQMiniGame ? Laya.Browser.window.qq : Laya.Browser.onTTMiniGame ? Laya.Browser.window.tt : Laya.Browser.onQGMiniGame || Laya.Browser.onVVMiniGame || Laya.Browser.onKGMiniGame ? Laya.Browser.window.qg : null
  		}
  	}
  	class E {
  		static config_url() {
  			return E.getDomain() + "res/url/lvConfig/level.json"
  		}
  		static build_url(t) {
  			return E.getDomain() + "res/url/build/" + t + ".png"
  		}
  		static assist_url(t) {
  			return E.getDomain() + "res/url/assist/" + t + ".png"
  		}
  		static music_url(t) {
  			return Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onTTMiniGame ? E.getDomain() + "res/url/music/" + t + ".mp3" : Laya.Browser.onAndroid || Laya.Browser.onIOS ? E.getDomain() + "res/url/music2/" + t + ".wav" : E.getDomain() + "res/url/music/" + t + ".mp3"
  		}
  		static sound_url(t) {
  			return Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onTTMiniGame ? E.getDomain() + "res/audio/" + t + ".mp3" : Laya.Browser.onAndroid || Laya.Browser.onIOS ? E.getDomain() + "res/audio2/" + t + ".wav" : E.getDomain() + "res/audio/" + t + ".mp3"
  		}
  		static mesIcon_url(t) {
  			return E.getDomain() + "res/url/mesIcon/" + t + ".png"
  		}
  		static img_url(t, e) {
  			return E.getDomain() + "res/img/" + t + "." + e
  		}
  		static fieldIcon_url(t) {
  			return E.getDomain() + "res/url/field/" + t + ".png"
  		}
  		static skillIcon_url(t) {
  			return E.getDomain() + "res/url/skill/" + t + ".png"
  		}
  		static levelIcon_url(t) {
  			return E.getDomain() + "res/icon/levelIcon/" + t + ".png"
  		}
  		static fgui_url() {
  			return V.instance.getResURL(d.Fgui)
  		}
  		static prefab_url(t) {
  			for (let e in this._AllPrefabsNames)
  				if (-1 != this._AllPrefabsNames[e].indexOf("@" + t + "@")) return V.instance.getResURL(d[e]) + "Conventional/" + t + ".lh";
  			console.log(...M.packError("没有在场景找到预制体", t, "可能是没有导出场景预制体列表导致的。"));
  		}
  		static getDomain() {
  			return ""
  		}
  	}
  	E._AllPrefabsNames = new x;
  	class G {
  		constructor(t) {
  			this._prefabRes = [], this.prefabs = {}, this._sceneConfig = t;
  		}
  		get scene() {
  			let t = this._scene;
  			return this._scene || (t = new Laya.Sprite3D, setTimeout(() => {
  				t.destroy();
  			}, 0)), t
  		}
  		loadRes(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield R.LoadAsync(this.scenePrefabUrl(), t);
  			})
  		}
  		buildScene(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				return this._scene ? this._scene : (yield this.loadRes(t), this._scene = new Laya.Sprite3D, Oa.s3d.addChild(this._scene), this._buildScene(this._sceneConfig, this._scene), this._scene)
  			})
  		}
  		clearScene() {
  			this._scene && (this._scene.destroy(), this._prefabRes = [], this.prefabs = {}, this._scene = null);
  		}
  		scenePrefabResName() {
  			if (this._sceneConfig) return (!this._prefabRes || this._prefabRes.length <= 0) && this._getPrefabName(this._prefabRes, this._sceneConfig), this._prefabRes;
  			console.error("场景配置表 不存在");
  		}
  		scenePrefabUrl() {
  			let t = [],
  				e = this.scenePrefabResName();
  			return e && e.forEach(e => {
  				t.push(E.prefab_url(e));
  			}), t
  		}
  		_buildScene(t, e) {
  			let i = t.prefabName;
  			if (i) {
  				t = t;
  				let s = R.Get(E.prefab_url(i));
  				s && (Aa.instance.initNode(s, t), e.addChild(s), this.prefabs[i] = this.prefabs[i] || [], this.prefabs[i].push(s));
  			} else if ((t = t)
  				.child) {
  				let i = new Laya.Sprite3D;
  				Aa.instance.initNode(i, t), e.addChild(i), t.child.forEach(t => {
  					this._buildScene(t, i);
  				});
  			}
  		}
  		_getPrefabName(t, e) {
  			if (e) {
  				let i = e.prefabName;
  				i ? (e = e, t.indexOf(i) < 0 && t.push(i)) : (e = e)
  					.child && e.child.forEach(e => {
  						this._getPrefabName(t, e);
  					});
  			}
  		}
  	}
  	class j {
  		static SplitToIntArray(t, e) {
  			for (var i = t.split(e), s = [], a = 0; a < i.length; ++a) {
  				var n = parseInt(i[a]);
  				isNaN(n) && (n = 0), s.push(n);
  			}
  			return s
  		}
  		static IntArrToStr(t) {
  			for (var e = "", i = 0; i < t.length; ++i) e += t[i].toFixed(0), i < t.length - 1 && (e += ",");
  			return e
  		}
  		static IsNullOrEmpty(t) {
  			return null == t || "" == t
  		}
  	}! function(t) {
  		t[t.None = 0] = "None", t[t.Web = 1] = "Web", t[t.WX = 2] = "WX", t[t.QQ = 3] = "QQ", t[t.BD = 4] = "BD", t[t.Oppo = 5] = "Oppo", t[t.Vivo = 6] = "Vivo", t[t.TT = 7] = "TT", t[t.QTT = 8] = "QTT";
  	}(u || (u = {}));
  	class N {}
  	class F {
  		constructor() {
  			this._shareInfoList = [];
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new F), this._instance
  		}
  		AddShareInfo(t) {
  			for (let e of this._shareInfoList)
  				if (e.shareId == t.shareId) return;
  			this._shareInfoList.push(t);
  		}
  		GetShareInfo(t = null) {
  			if (0 == this._shareInfoList.length) {
  				return new N
  			}
  			if (null != t)
  				for (let e of this._shareInfoList)
  					if (e.shareId == t) return e;
  			return h.RandomFromArray(this._shareInfoList)
  		}
  		ShareAppMessage(t) {}
  	}
  	class H {}
  	H.PAUSE_AUDIO = "PAUSE_AUDIO", H.RESUM_AUDIO = "RESUM_AUDIO", H.AD_CONFIG_GETTED = "AD_CONFIG_GETTED", H.SELF_AD_INITED = "SELF_AD_INITED";
  	class W {
  		constructor() {
  			this.supportRecord = !1, this.isRecording = !1, this.isPausing = !1, this.isRecordSuccess = !1;
  		}
  		StartRecord(t, e) {
  			console.log("该平台" + he.platformStr + "不支持录制视频");
  		}
  		StopRecord(t) {
  			console.log("该平台" + he.platformStr + "不支持录制视频");
  		}
  		Pause(t) {
  			console.log("该平台" + he.platformStr + "不支持录制视频");
  		}
  		Resume(t) {
  			console.log("该平台" + he.platformStr + "不支持录制视频");
  		}
  		RecordClip(t) {
  			console.log("该平台" + he.platformStr + "不支持录制视频");
  		}
  		ShareVideo(t, e, i) {
  			i && i.run();
  		}
  	}
  	class z {
  		constructor() {
  			this.items = {};
  		}
  		set(t, e) {
  			return this.items[t] = e, !0
  		}
  		has(t) {
  			return this.items.hasOwnProperty(t)
  		}
  		remove(t) {
  			return !!this.has(t) && (delete this.items[t], !0)
  		}
  		get(t) {
  			return this.has(t) ? this.items[t] : void 0
  		}
  		keys() {
  			return Object.keys(this.items)
  		}
  		get length() {
  			return this.keys()
  				.length
  		}
  		clear() {
  			this.items = {};
  		}
  	}
  	class Y {
  		constructor() {
  			this.needFitScreen = !1;
  		}
  	}! function(t) {
  		t.Main = "Main", t.Panel = "Panel", t.Popup = "Popup", t.Tip = "Tip";
  	}(_ || (_ = {}));
  	class q {
  		static getLayer(t) {
  			switch (t) {
  				case _.Main:
  					return this.mainLayer;
  				case _.Panel:
  					return this.panelLayer;
  				case _.Popup:
  					return this.popupLayer;
  				case _.Tip:
  					return this.tipLayer
  			}
  		}
  		static Init(t = null) {
  			this.safeArea = t, fgui.UIConfig.packageFileExtension = "bin", Laya.stage.addChild(fgui.GRoot.inst.displayObject), this.mainLayer = fgui.GRoot.inst.addChild(new fgui.GComponent), this.panelLayer = fgui.GRoot.inst.addChild(new fgui.GComponent), this.popupLayer = fgui.GRoot.inst.addChild(new fgui.GComponent), this.tipLayer = fgui.GRoot.inst.addChild(new fgui.GComponent), this.UpdateAllUI(), Laya.stage.on(Laya.Event.RESIZE, this, this.UpdateAllUI);
  		}
  		static _clearLayerUI(t) {
  			t.length > 0 && (t.forEach(t => {
  				t && t.Hide();
  			}), t = []);
  		}
  		static AddUI(t, e = null, i, s) {
  			let a = t.createInstance();
  			return i == _.Panel ? (this._clearLayerUI(q.panels), s && q.panels.push(s)) : i == _.Main && (this._clearLayerUI(q.mains), s && q.mains.push(s)), this.getLayer(i)
  				.addChild(a), null == e && (e = new Y), null != e && e.needFitScreen ? (a.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height - this.top - this.bottom), a.y = this.top) 
  				: a.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height), this._cacheMap.set(a.constructor.name, e), window[a.constructor.name] = a,Advertisement.insertAdverV2(), console.log("打开界面", a.constructor.name), a
  		}
  		static UpdateAllUI() {
  			let t = Laya.stage.width,
  				e = Laya.stage.height;
  			if (null != this.safeArea) {
  				let t = Laya.stage.width / this.safeArea.width;
  				this.top = this.safeArea.top * t, this.bottom = this.safeArea.bottom - this.safeArea.height - this.safeArea.top * t;
  			}
  			fgui.GRoot.inst.setSize(t, e);
  			let i = fgui.GRoot.inst.numChildren;
  			for (let t = 0; t < i; ++t) {
  				let e = fgui.GRoot.inst.getChildAt(t),
  					i = this._cacheMap.get(e.constructor.name);
  				null != i && i.needFitScreen ? (e.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height - this.top - this.bottom), e.y = this.top) : e.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height);
  			}
  		}
  		static CheckIn(t, e, i) {
  			return e > t.x && e < t.x + t.width && i > t.y && i < t.y + t.height
  		}
  	}
  	q.top = 0, q.bottom = 0, q._cacheMap = new z, q.panels = [], q.mains = [];
  	class K {
  		static get instance() {
  			return null == this._instance ? (console.error("sdk尚未初始化,请先调用CreateInstance进行初始化"), null) : this._instance
  		}
  		static get isInited() {
  			return null != this._instance
  		}
  		static CreateInstace(t, e, i) {
  			if (null != this._instance) return console.error("SDK不能反复进行初始化"), this._instance;
  			this._instance = new t, console.log("开始初始化SDK");
  			let s = K.getChannel();
  			return this._instance.Init(e, s, i), console.log(`channel=${s}`), he.instance.onLoginEnd = Laya.Handler.create(null, () => {
  				he.instance.platform == u.WX ? he.instance.loginCode ? K.instance.Login(he.instance.loginCode, he.instance.GetFromAppId()) : console.log("wx平台未登录,跳过登录sdk") : he.instance.loginState.isLogin ? K.instance.Login(he.instance.loginState.code, he.instance.GetFromAppId()) : console.log("平台未登录,跳过登录sdk");
  			}), this._instance
  		}
  		static getChannel() {
  			let t = he.instance.GetStorage("user_from_channel"),
  				e = he.instance.lauchOption;
  			return console.log("本地channel", t), t || (e && e.query && (t = e.query.channel, console.log("options channel", t)), t || (console.log("没有本地数据,channel默认 own"), t = "own"), he.instance.SetStorage("user_from_channel", t)), t
  		}
  	}
  	class Q {
  		constructor() {
  			this._scaleSmall = .8, this._tweenTime = 180, this._layer = _.Panel, this._needFilScreen = !1, this._isShow = !1, this._sortOrder = 10;
  		}
  		get ui() {
  			return this._ui
  		}
  		get isShow() {
  			return this._isShow
  		}
  		_InitBottom() {
  			let t = this.ui.m_bottom_group;
  			this._defaultBottomHeight = null == t ? 0 : t.y;
  		}
  		_SetBottomDown(t = 0) {
  			let e = this.ui.m_bottom_group;
  			null != e && (e.y = this._defaultBottomHeight + t);
  		}
  		Show(t = null) {
  			if (this._isShow) return;
  			this._isShow = !0, this._openParam = t;
  			let e = new Y;
  			e.needFitScreen = this._needFilScreen, this._ui = q.AddUI(this._classDefine, e, this._layer, this), this._OnShow(), this._ui.sortingOrder = this._sortOrder;
  			if (this._ui.m_anim_enter && K.instance.isDelayClose) {
  				this._ui.m_anim_enter.play(Laya.Handler.create(this, this._CallEnterAnimEnd));
  			}
  		}
  		_CallEnterAnimEnd() {
  			this._OnEnterAnimEnd();
  		}
  		_OnEnterAnimEnd() {}
  		_OnShow() {}
  		Hide(t = !0) {
  			if (null == this._ui) return;
  			if (this._ui.isDisposed) return;
  			this._isShow = !1, this._OnHide();
  			if (this._ui.m_anim_exit) {
  				this._ui.m_anim_exit.play(Laya.Handler.create(this, this._DoHide, [t]));
  			} else this._DoHide(t);
  		}
  		_DoHide(t) {
  			t ? this.ui.dispose() : this.ui.removeFromParent();
  		}
  		_OnHide() {}
  	}
  	class X extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonToast")
  		}
  		onConstruct() {
  			this.m_toast = this.getChildAt(0);
  		}
  	}
  	X.URL = "ui://75kiu87kovsy7";
  	class J extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_toast")
  		}
  		onConstruct() {
  			this.m_toast_str = this.getChildAt(1), this.m_show = this.getTransitionAt(0);
  		}
  	}
  	J.URL = "ui://75kiu87kovsy8";
  	class Z extends Q {
  		constructor() {
  			super(...arguments), this._layer = _.Tip;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Z, this._instance._classDefine = X), this._instance
  		}
  		Show(t = null) {
  			if (this._openParam = t, null == this._ui) {
  				let t = new Y;
  				this._ui = q.AddUI(this._classDefine, t, this._layer), this._ui.sortingOrder = Number.MAX_SAFE_INTEGER, this.ui.m_toast.visible = !1, this._OnShow();
  			}
  			this._DoToast(this._openParam);
  		}
  		_DoToast(t) {
  			let e = J.createInstance();
  			this.ui.addChild(e), e.setXY(this.ui.m_toast.x, this.ui.m_toast.y), e.m_toast_str.text = t, e.m_show.play(Laya.Handler.create(this, () => {
  				e.dispose();
  			}));
  		}
  		Hide(t = !0) {}
  	}
  	class $ extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonLoad")
  		}
  		onConstruct() {
  			this.m_big_bg = this.getChildAt(0), this.m_small_bg = this.getChildAt(1), this.m_load = this.getChildAt(2);
  		}
  	}
  	$.URL = "ui://75kiu87kmhasc";
  	class tt extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new tt, this._instance._classDefine = $), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this._sortOrder = Number.MAX_SAFE_INTEGER;
  			let t = this._openParam[0],
  				e = this._openParam[1];
  			this.ui.m_load.m_text_load.text = t, e ? (this.ui.m_small_bg.visible = !1, this.ui.m_big_bg.visible = !0) : (this.ui.m_small_bg.visible = !0, this.ui.m_big_bg.visible = !1);
  		}
  	}
  	class et {
  		static NextFrame() {
  			return this.Frames(1)
  		}
  		static Frames(t) {
  			return new Promise(function(e) {
  				Laya.timer.frameOnce(t, null, () => {
  					e();
  				});
  			})
  		}
  		static Seconds(t) {
  			return new Promise(function(e) {
  				Laya.timer.once(1e3 * t, null, () => {
  					e();
  				});
  			})
  		}
  	}
  	class it extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "FlyPanel")
  		}
  		onConstruct() {
  			this.m_test = this.getChildAt(0);
  		}
  	}
  	it.URL = "ui://75kiu87kh75rf";
  	class st extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_fly_coin")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(0);
  		}
  	}
  	st.URL = "ui://75kiu87kh75rh";
  	class at extends Q {
  		constructor() {
  			super(...arguments), this._layer = _.Tip;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new at, this._instance._classDefine = it), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this._sortOrder = Number.MAX_SAFE_INTEGER - 1, this.ui.m_test.dispose();
  		}
  		BoomObjs(t, e, i = 1, s = 10) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let a = t.localToGlobal();
  				a.x -= t.width / 2, a.y -= t.height / 2;
  				let n = 1e3 * i;
  				for (let i = 0; i < e; ++i) {
  					let e = st.createInstance();
  					this.ui.addChild(e), null != t.url ? e.m_icon.url = t.url : null != t.resourceURL && (e.m_icon.url = t.resourceURL), e.m_icon.setSize(t.width, t.height), e.setPivot(t.pivotX, t.pivotY), e.setXY(a.x, a.y);
  					let i = new Laya.Vector2(a.x + h.Random(-s, s), a.y + h.Random(-s, s));
  					Laya.Tween.to(e, {
  						x: i.x,
  						y: i.y
  					}, n, Laya.Ease.quadOut, Laya.Handler.create(this, () => {
  						e.dispose();
  					}));
  				}
  				yield et.Seconds(i);
  			})
  		}
  		BoomCoins(t, e = null, i = 100, s = 1, a = 10) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let n = t.localToGlobal(),
  					o = 1e3 * s;
  				for (let t = 0; t < i; ++t) {
  					let t = st.createInstance();
  					this.ui.addChild(t), null != e && (t.m_icon.url = e), t.setXY(n.x, n.y);
  					let i = new Laya.Vector2(n.x + h.Random(-a, a), n.y + h.Random(-a, a));
  					Laya.Tween.to(t, {
  						x: i.x,
  						y: i.y
  					}, o, Laya.Ease.quadInOut, Laya.Handler.create(this, () => {
  						t.dispose();
  					}));
  				}
  				yield et.Seconds(s);
  			})
  		}
  		FlyObjs(t, e, i, s, a) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let n = t.localToGlobal();
  				n.x -= t.width / 2, n.y -= t.height / 2;
  				let o = e.localToGlobal(),
  					r = .6 * s * 1e3,
  					l = .4 * s * 1e3;
  				for (let e = 0; e < i; ++e) {
  					let e = st.createInstance();
  					this.ui.addChild(e), null != t.url ? e.m_icon.url = t.url : null != t.resourceURL && (e.m_icon.url = t.resourceURL), e.m_icon.setSize(t.width, t.height), e.setPivot(t.pivotX, t.pivotY), e.setXY(n.x, n.y);
  					let i = new Laya.Vector2(n.x + h.Random(-a, a), n.y + h.Random(-a, a));
  					Laya.Tween.to(e, {
  						x: i.x,
  						y: i.y
  					}, r, Laya.Ease.quadInOut, Laya.Handler.create(this, () => {
  						Laya.Tween.to(e, {
  							x: o.x,
  							y: o.y
  						}, l, Laya.Ease.quadInOut, Laya.Handler.create(this, () => {
  							e.dispose();
  						}));
  					}));
  				}
  				yield et.Seconds(s);
  			})
  		}
  		FlyCoins(t, e, i = null, s = 100, a = 1, n = 10) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let o = t.localToGlobal(),
  					r = e.localToGlobal(),
  					l = .6 * a * 1e3,
  					c = .4 * a * 1e3;
  				for (let t = 0; t < s; ++t) {
  					let t = st.createInstance();
  					this.ui.addChild(t), null != i && (t.m_icon.url = i), t.setXY(o.x, o.y);
  					let e = new Laya.Vector2(o.x + h.Random(-n, n), o.y + h.Random(-n, n));
  					Laya.Tween.to(t, {
  						x: e.x,
  						y: e.y
  					}, l, Laya.Ease.quadInOut, Laya.Handler.create(this, () => {
  						Laya.Tween.to(t, {
  							x: r.x,
  							y: r.y
  						}, c, Laya.Ease.quadInOut, Laya.Handler.create(this, () => {
  							t.dispose();
  						}));
  					}));
  				}
  				yield et.Seconds(a);
  			})
  		}
  	}
  	class nt {
  		constructor() {
  			this.coinCount = 1e3, this.choseDeerId = 1, this.sensitivity = 0, this.visualangle = 0, this.taskPro = 10, this.guideId = 1, this.firstShowInfo = 0, this.currentSkinId = 1, this.getSkinPart = [], this.isActiveEffect = !1, this.skinHPBuff = 0, this.skinSpeedBuff = 0, this.skinWeaponBuff = 0, this.skinNormalAttBuff = 0, this.isHaveMecha = !1, this.isAntlerEnable = !1, this.iscollarEnable = !1, this.isclothesEnable = !1, this.islegsEnable = !1, this.isfeetEnable = !1, this.istailEnable = !1;
  		}
  	}
  	class ot {
  		constructor() {
  			this._savePath = "game01.sav";
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new ot, this._instance._ReadFromFile()), this._instance._saveData
  		}
  		static addCoin(t) {
  			ot.instance.coinCount += t, ot.instance.coinCount < 0 && (ot.instance.coinCount = 0), o.instance.event(i.COINCHANGE), ot.SaveToDisk();
  		}
  		static SaveToDisk() {
  			if (!this._instance) return;
  			let t = JSON.stringify(this._instance._saveData);
  			Laya.LocalStorage.setJSON(this._instance._savePath, t), de.SaveToDisk();
  		}
  		_ReadFromFile() {
  			let t = Laya.LocalStorage.getJSON(this._savePath);
  			if (console.log("保存的数据:", t), this._saveData = new nt, !j.IsNullOrEmpty(t)) {
  				let e = JSON.parse(t);
  				for (let t in e) this._saveData[t] = e[t];
  			}
  		}
  	}! function(t) {
  		t.config = class {}, t.path = "res/config/SignConfig.json";
  	}(m || (m = {})),
  	function(t) {
  		t[t.Normal = 0] = "Normal", t[t.InCheck = 1] = "InCheck", t[t.NoGame = 2] = "NoGame";
  	}(p || (p = {}));
  	class rt {}
  	class ht extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonSign2")
  		}
  		onConstruct() {
  			this.m_isSigned = this.getControllerAt(0), this.m_btn_videoRwd = this.getChildAt(3), this.m_btn_nornalRwd = this.getChildAt(4), this.m_btn_close = this.getChildAt(5), this.m_dayList = this.getChildAt(6);
  		}
  	}
  	ht.URL = "ui://75kiu87kkj717j";
  	class lt extends Q {
  		get ui() {
  			return this._ui
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new lt, this._instance._classDefine = ht), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new rt, null == this._openParam) console.error("请传入 CommonRewardData  onGetSkin  onGetMoney 用于初始化签到界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			de.instance.isSigned || 7 != de.instance.signDayCount || (de.instance.signDayCount = 0, de.SaveToDisk()), this.ui.m_isSigned.selectedIndex = de.instance.isSigned ? 1 : 0, this.ui.m_btn_close.onClick(this, this.Hide), this.ui.m_btn_nornalRwd.onClick(this, this.onNormalGet), this.ui.m_btn_videoRwd.onClick(this, this.onVideoGet), this.ui.m_dayList.setVirtual(), this.ui.m_dayList.itemRenderer = Laya.Handler.create(this, this.renderItem, null, !1), this.ui.m_dayList.on(fgui.Events.CLICK_ITEM, this, this.onItemClick), this.ui.m_dayList.numItems = 7, he.instance.HideBannerAd();
  		}
  		onItemClick(t) {}
  		renderItem(t, e) {
  			e.m_type.selectedIndex = 6 == t ? 2 : t % 2 == 0 ? 1 : 0;
  			let i = m.dataList[t];
  			e.m_day.text = `第${i.id}天`, e.m_icon.url = i.icon;
  			let s = K.instance.checkState != p.InCheck || 1 == i.type;
  			e.m_title.text = s ? i.title : `+${i.value}`, de.instance.isSigned ? t < de.instance.signDayCount ? e.m_state.selectedIndex = 2 : e.m_state.selectedIndex = 0 : t == de.instance.signDayCount ? (e.m_state.selectedIndex = 1, this.todayData = i, this.ui.m_btn_nornalRwd.title = 1 == i.type ? "只拿皮肤" : "只拿金币") : t < de.instance.signDayCount ? e.m_state.selectedIndex = 2 : e.m_state.selectedIndex = 0;
  		}
  		onVideoGet() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (yield he.instance.ShowRewardVideoAdAsync()) {
  					de.instance.signDayCount++, de.instance.isSigned = !0, this.ui.m_isSigned.selectedIndex = 1, this.ui.m_dayList.refreshVirtualList();
  					let t = 1 == this.todayData.type ? `${this.todayData.title}+${this.todayData.money}金币` : `${this.todayData.value+this.todayData.money}金币`;
  					Ht.Toast(`恭喜获得 ${t}`), 1 == this.todayData.type ? (this.getSkin(this.todayData.value), ot.instance.coinCount += this.todayData.money, ot.SaveToDisk()) : (ot.instance.coinCount += this.todayData.money + this.todayData.value, ot.SaveToDisk()), de.SaveToDisk(), this.Hide();
  				} else Ht.Toast("跳过广告无法获得奖励");
  			})
  		}
  		getSkin(t) {
  			this._openData && this._openData.onGetSkin(t);
  		}
  		onNormalGet() {
  			1 == this.todayData.type ? this.getSkin(this.todayData.value) : (Ht.Toast(`恭喜获得 ${this.todayData.money}金币`), ot.instance.coinCount += this.todayData.money, ot.SaveToDisk()), de.instance.signDayCount++, de.instance.isSigned = !0, de.SaveToDisk(), this.Hide();
  		}
  		_OnHide() {}
  	}
  	class ct {
  		constructor() {
  			this.rewardText = "+300", this.rewardIcon = null, this.onClose = null;
  		}
  	}
  	class dt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonOneMore")
  		}
  		onConstruct() {
  			this.m_view = this.getChildAt(1);
  		}
  	}
  	dt.URL = "ui://75kiu87kgxi82t";
  	class ut extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new ut, this._instance._classDefine = dt), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new ct, null == this._openParam) console.error("请传入OneMoreOpenData用于再来一份界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this.ui.m_view.m_btn_close.onClick(this, this._OnClickClose), this.ui.m_view.m_btn_normal_get.onClick(this, this._OnClickNormalGet), this.ui.m_view.m_btn_double_get.onClick(this, this._OnClickDoubleGet), this._openData.rewardIcon && (this.ui.m_view.m_icon.url = this._openData.rewardIcon), this._openData.rewardText && (this.ui.m_view.m_text_value.text = this._openData.rewardText);
  		}
  		_OnClickClose() {
  			this._openData.onClose && this._openData.onClose.runWith(0), this.Hide();
  		}
  		_OnClickNormalGet() {
  			this._openData.onClose && this._openData.onClose.runWith([1, this.ui.m_view.m_icon]), this.Hide();
  		}
  		_OnClickDoubleGet() {
  			return __awaiter(this, void 0, void 0, function*() {
  				(yield he.instance.ShowRewardVideoAdAsync()) ? (this._openData.onClose && this._openData.onClose.runWith([2, this.ui.m_view.m_icon]), this.Hide()) : Ht.Toast("跳过广告无法获得奖励");
  			})
  		}
  	}
  	class _t {
  		constructor() {
  			this.noticeStr = "让所有人都知道你的厉害", this.rewardIcon = null, this.rewardText = "x500", this.onClose = null;
  		}
  	}
  	class mt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonEndShare")
  		}
  		onConstruct() {
  			this.m_view = this.getChildAt(1);
  		}
  	}
  	mt.URL = "ui://75kiu87kbg00z";
  	class pt extends Q {
  		constructor() {
  			super(...arguments), this.clickCount = 0;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new pt, this._instance._classDefine = mt), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new _t, null == this._openParam) console.error("请传入EndShareOpenData用于初始化结算分享界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this._openData.noticeStr && (this.ui.m_view.m_text_info.text = this._openData.noticeStr), this._openData.rewardIcon && (this.ui.m_view.m_icon_reward.url = this._openData.rewardIcon), this._openData.rewardText && (this.ui.m_view.m_text_reward.text = this._openData.rewardText), this.clickCount = 0, this.ui.m_view.m_btn_nothanks.onClick(this, this._OnClickClose), this.ui.m_view.m_btn_share.onClick(this, this._OnClickShare), this.ui.m_view.m_btn_share.m_btn_type.selectedIndex = 1, he.instance.ShowBannerAd();
  		}
  		_OnClickShare() {
  			he.instance.recordManager.ShareVideo(Laya.Handler.create(null, () => {
  				this._openData.onClose && this._openData.onClose.runWith([1, this.ui.m_view.m_icon_reward]), this.Hide();
  			}), Laya.Handler.create(null, () => {
  				Ht.Toast("取消分享无法获得奖励");
  			}), Laya.Handler.create(null, () => {
  				Ht.Toast("分享失败:无视频可分享");
  			}));
  		}
  		_OnClickClose() {
  			0 != this.clickCount ? (this._openData.onClose && this._openData.onClose.runWith([0, this.ui.m_view.m_icon_reward]), this.Hide()) : this.clickCount++;
  		}
  		_OnHide() {
  			he.instance.HideBannerAd();
  		}
  	}
  	class gt {
  		constructor() {
  			this.enableShowGames = !0, this.iconPath = null, this.showText = null, this.rewardCount = 30, this.onClose = null;
  		}
  	}
  	class ft extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonEndReward")
  		}
  		onConstruct() {
  			this.m_btn_toggle_check = this.getChildAt(2), this.m_text_str = this.getChildAt(3), this.m_btn_get = this.getChildAt(4), this.m_icon_reward = this.getChildAt(5), this.m_text_add = this.getChildAt(6), this.m___bottomgames = this.getChildAt(7), this.m___nativeinpage = this.getChildAt(8), this.m___endSG = this.getChildAt(9), this.m_anim_enter = this.getTransitionAt(0);
  		}
  	}
  	ft.URL = "ui://75kiu87kbg0019";
  	class yt extends Q {
  		constructor() {
  			super(...arguments), this.checkFlag = !0;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new yt, this._instance._classDefine = ft), this._instance
  		}
  		get _needWatchAd() {
  			switch (K.instance.checkState) {
  				case p.NoGame:
  					return 0 == de.instance.endRewardMissMode ? this._isChecked : !this._isChecked;
  				default:
  					return this._isChecked
  			}
  		}
  		_OnShow() {
  			if (super._OnShow(), this.checkFlag = de.instance.checkFlag, this._openData = new gt, null == this._openParam) console.error("请传入EndRewardOpenData用于初始化结算分享界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this._openData.enableShowGames = he.instance.isSupportJumpOther && this._openData.enableShowGames, this.ui.m_btn_get.m_btn_type.selectedIndex = 3, K.instance.checkState == p.NoGame ? this.changeCheck() : this.ui.m_btn_toggle_check.m_selected.selectedIndex = 0, null != this._openData.showText && (this.ui.m_text_str.text = this._openData.showText), null != this._openData.iconPath && (this.ui.m_icon_reward.url = this._openData.iconPath), this.ui.m_text_add.text = "+" + this._openData.rewardCount, this.ui.m_btn_get.onClick(this, this._OnClickNormalGet), this.ui.m_btn_toggle_check.onClick(this, this._OnClickToggle), he.instance.ShowBannerAd();
  		}
  		_OnClickToggle() {
  			this.ui.m_btn_toggle_check.m_selected.selectedIndex = (this.ui.m_btn_toggle_check.m_selected.selectedIndex + 1) % 2;
  		}
  		changeCheck() {
  			K.instance.checkState == p.NoGame && (this.ui.m_btn_toggle_check.title = de.instance.checkFlag ? "观看五倍奖励视频" : "不看五倍奖励视频", this.ui.m_btn_toggle_check.m_selected.selectedIndex = de.instance.checkFlag ? 1 : 0);
  		}
  		_OnClickBack() {
  			this._openData.onClose && this._openData.onClose.runWith([2, this.ui.m_icon_reward]), this.Hide();
  		}
  		_OnClickNormalGet() {
  			return __awaiter(this, void 0, void 0, function*() {
  				K.instance.checkState != p.NoGame ? 1 == this.ui.m_btn_toggle_check.m_selected.selectedIndex ? yield this._OnClickDoubleGet(): this.noPayClose(): 1 == this.ui.m_btn_toggle_check.m_selected.selectedIndex ? this.checkFlag ? yield this._OnClickDoubleGet(): this.noPayClose(): this.checkFlag ? this.noPayClose() : yield this._OnClickDoubleGet();
  			})
  		}
  		noPayClose() {
  			this._openData.onClose && this._openData.onClose.runWith([0, this.ui.m_icon_reward]), this.checkFlag = !this.checkFlag, this.Hide();
  		}
  		_OnClickDoubleGet() {
  			return __awaiter(this, void 0, void 0, function*() {
  				(yield he.instance.ShowRewardVideoAdAsync()) ? (this._openData.onClose && this._openData.onClose.runWith([1, this.ui.m_icon_reward]), this.Hide()) : Ht.Toast("跳过广告无法获得奖励");
  			})
  		}
  		_OnHide() {
  			he.instance.HideBannerAd(), K.instance.checkState == p.NoGame && (de.instance.checkFlag = this.checkFlag, de.SaveToDisk());
  		}
  	}
  	class Ct {
  		constructor() {
  			this.enableShowGames = !0, this.showText = null, this.onClose = null;
  		}
  	}
  	class wt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonEndLose")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_text_str = this.getChildAt(2), this.m_btn_no = this.getChildAt(3), this.m_btn_watchad = this.getChildAt(4), this.m___othergames = this.getChildAt(5), this.m___wxSG = this.getChildAt(6), this.m_anim_enter = this.getTransitionAt(0);
  		}
  	}
  	wt.URL = "ui://75kiu87krk935i";
  	class Lt extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new Lt, this._instance._classDefine = wt), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new Ct, null == this._openParam) console.error("请传入EndLoseOpenData用于初始化通关失败界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			null != this._openData.showText && (this.ui.m_text_str.text = this._openData.showText), this.ui.m_c1.selectedIndex = this._openData.enableShowGames ? 0 : 1, this.ui.m_btn_no.onClick(this, this._OnClickRestart), this.ui.m_btn_watchad.onClick(this, this._OnClickWatchAd), he.instance.ShowBannerAd();
  		}
  		_OnClickWatchAd() {
  			return __awaiter(this, void 0, void 0, function*() {})
  		}
  		_OnClickRestart() {
  			this._openData.onClose && this._openData.onClose.runWith([0]), this.Hide();
  		}
  		_OnHide() {
  			he.instance.HideBannerAd();
  		}
  	}
  	class bt {
  		constructor() {
  			this.startProgress = 0, this.endProgress = 50, this.tweenTime = 1, this.iconPath = null, this.onClose = null;
  		}
  	}
  	class St extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonUnlockProgress")
  		}
  		onConstruct() {
  			this.m_check_state = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_btn_get = this.getChildAt(2), this.m_icon_bg = this.getChildAt(3), this.m_text_progress = this.getChildAt(4), this.m_btn_nothanks = this.getChildAt(5), this.m_show_close = this.getTransitionAt(0);
  		}
  	}
  	St.URL = "ui://75kiu87krk935n";
  	class kt extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new kt, this._instance._classDefine = St), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new bt, null == this._openParam) console.error("请传入UnlockProgressOpenData用于初始化进度解锁界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			let t = this.ui.m_icon_bg.resourceURL;
  			this.ui.m_icon_bg.visible = !1;
  			let e = this.ui.getChildIndex(this.ui.m_icon_bg) + 1;
  			this._openData.iconPath && (t = this._openData.iconPath);
  			let i = fgui.UIPackage.createObjectFromURL(t)
  				.asImage;
  			switch (this.ui.addChildAt(i, e), i.setPivot(this.ui.m_icon_bg.pivotX, this.ui.m_icon_bg.pivotY, !0), i.setXY(this.ui.m_icon_bg.x, this.ui.m_icon_bg.y), i.grayed = !0, this._imgFront = fgui.UIPackage.createObjectFromURL(t)
  				.asImage, this.ui.addChildAt(this._imgFront, e + 1), this._imgFront.setPivot(this.ui.m_icon_bg.pivotX, this.ui.m_icon_bg.pivotY, !0), this._imgFront.setXY(this.ui.m_icon_bg.x, this.ui.m_icon_bg.y), this._imgFront.fillMethod = fgui.FillMethod.Vertical, this._imgFront.fillOrigin = fgui.FillOrigin.Bottom, this._imgFront.fillAmount = .01 * this._openData.startProgress, this.ui.m_text_progress.text = this._openData.startProgress + "%", this._TweenProgress(), K.instance.checkState) {
  				case p.InCheck:
  					this.ui.m_check_state.selectedIndex = 1;
  					break;
  				case p.NoGame:
  				case p.Normal:
  					this.ui.m_check_state.selectedIndex = 0;
  			}
  			this.ui.m_btn_get.visible = !1, this.ui.m_btn_get.onClick(this, this._OnClickGet), this.ui.m_btn_nothanks.onClick(this, this._OnClickClose);
  		}
  		_TweenProgress() {
  			return __awaiter(this, void 0, void 0, function*() {
  				let t = 0;
  				for (; t < this._openData.tweenTime;) {
  					yield et.Frames(1), t += Laya.timer.delta / 1e3;
  					let e = h.Lerp(this._openData.startProgress, this._openData.endProgress, h.Clamp01(t / this._openData.tweenTime));
  					this._imgFront.fillAmount = .01 * e, this.ui.m_text_progress.text = e.toFixed(0) + "%";
  				}
  				this._openData.endProgress < 100 ? this._OnClickClose() : (this.ui.m_btn_get.m_bg_type.selectedIndex = 1, this.ui.m_btn_get.m_btn_type.selectedIndex = K.instance.checkState == p.NoGame ? 0 : 3, this.ui.m_btn_get.visible = !0, this.ui.m_show_close.play());
  			})
  		}
  		_OnClickClose() {
  			this._openData.onClose && this._openData.onClose.runWith([0]), this.Hide();
  		}
  		_OnClickGet() {
  			K.instance.checkState == p.NoGame ? this._OnClickWatchAd() : (this._openData.onClose && this._openData.onClose.runWith([2]), this.Hide());
  		}
  		_OnClickWatchAd() {
  			return __awaiter(this, void 0, void 0, function*() {
  				(yield he.instance.ShowRewardVideoAdAsync()) ? (this._openData.onClose && this._openData.onClose.runWith([1]), this.Hide()) : Ht.Toast("跳过广告无法获得奖励");
  			})
  		}
  	}
  	class vt {
  		constructor() {
  			this.offlineMinutes = 0, this.rewardCount = 1234, this.rewardScake = 3.5, this.onClose = null;
  		}
  	}
  	class It extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonOffline")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(3), this.m_text_max_offline_time = this.getChildAt(4), this.m_btn_nothanks = this.getChildAt(5), this.m_text_value = this.getChildAt(6), this.m_btn_double_get = this.getChildAt(7), this.m_view_scale = this.getChildAt(8), this.m_text_offline_time = this.getChildAt(9), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	It.URL = "ui://75kiu87kbg001m";
  	class Pt extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new Pt, this._instance._classDefine = It), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new vt, null == this._openParam) console.error("请传入OfflineOpenData用于初始化离线奖励界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this.ui.m_text_offline_time.text = "离线时间" + this._GetOfflineTimStr(this._openData.offlineMinutes), this.ui.m_text_max_offline_time.text = "离线最多可获得2小时收益", this.ui.m_text_value.text = "+" + le.GetCoinStr(this._openData.rewardCount), this.ui.m_btn_double_get.text = "+" + le.GetCoinStr(this._openData.rewardCount), this.ui.m_btn_nothanks.onClick(this, this._OnClickNoThanks), this.ui.m_btn_double_get.onClick(this, this._OnClickDoubleGet);
  		}
  		_GetOfflineTimStr(t) {
  			let e = Math.floor(t % 60),
  				i = Math.floor(t / 60);
  			return e < 10 ? "0" + i + "小时0" + e + "分钟" : "0" + i + "小时" + e + "分钟"
  		}
  		_OnClickDoubleGet() {
  			this._openData.onClose && this._openData.onClose.runWith([1, this.ui.m_icon]), this.Hide();
  		}
  		_OnClickNoThanks() {
  			this._openData.onClose && this._openData.onClose.runWith([0, this.ui.m_icon]), this.Hide();
  		}
  	}
  	class At {}
  	class Ot extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonSet")
  		}
  		onConstruct() {
  			this.m_view = this.getChildAt(1);
  		}
  	}
  	Ot.URL = "ui://75kiu87kbg0023";
  	class Rt extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new Rt, this._instance._classDefine = Ot), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new At, null == this._openParam);
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this._UpdateUI(), this.ui.m_view.m_toggle_music.onClick(this, this._OnClickToggleMusic), this.ui.m_view.m_toggle_shake.onClick(this, this._OnClickToggleShake), this.ui.m_view.m_btn_close.onClick(this, this._OnClickClose);
  		}
  		_UpdateUI() {
  			this.ui.m_view.m_toggle_music.m_c1.selectedIndex = de.instance.isMusicOn ? 1 : 0, this.ui.m_view.m_toggle_shake.m_c1.selectedIndex = de.instance.isShakeOn ? 1 : 0;
  		}
  		_OnClickClose() {
  			this.Hide(), this._openData.onClose && this._openData.onClose.run();
  		}
  		_OnClickToggleMusic() {
  			de.instance.isMusicOn = !de.instance.isMusicOn, this._UpdateUI(), de.SaveToDisk(), this._openData.onToggleChange && this._openData.onToggleChange.run();
  		}
  		_OnClickToggleShake() {
  			de.instance.isShakeOn = !de.instance.isShakeOn, this._UpdateUI(), de.SaveToDisk(), this._openData.onToggleChange && this._openData.onToggleChange.run();
  		}
  	}
  	class Dt {
  		constructor() {
  			this.iconList = [], this.titleList = [], this.rollWeight = [1, 1, 1, 1, 1, 1, 1];
  		}
  	}
  	class xt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonRoll")
  		}
  		onConstruct() {
  			this.m_view_roll = this.getChildAt(1), this.m_pointer = this.getChildAt(2), this.m_btn_close = this.getChildAt(4), this.m_btn_roll = this.getChildAt(5), this.m_rewardPannel = this.getChildAt(6), this.m___nativeinpage = this.getChildAt(7);
  		}
  	}
  	xt.URL = "ui://75kiu87kbg002d";
  	class Bt extends Q {
  		constructor() {
  			super(...arguments), this._randomIndex = [0, 1, 2, 3, 4, 5, 6, 7], this._unitDegree = 45, this._rotateTime = 4e3, this._rotateCount = 5;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Bt, this._instance._classDefine = xt), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this.isFake = !1, this._openData = new Dt, null == this._openParam) console.error("请传入RollOpenData用于初始化大转盘界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this.ui.m_rewardPannel.visible = !1, K.instance.checkState == p.NoGame && (this.ui.m_rewardPannel.m_c1.selectedIndex = 1), this.ui.m_btn_roll.m_btn_type.selectedIndex = de.instance.freeRollCount > 0 ? 3 : 0, this.ui.m_btn_close.onClick(this, this._OnClickClose), this.ui.m_btn_roll.onClick(this, this._OnClickRoll), this.ui.m_rewardPannel.m_btn_get.onClick(this, this.onGetReward);
  			for (let t = 0; t < 8; ++t) {
  				let e = this.ui.m_view_roll.getChildAt(t + 1);
  				this._openData.iconList[t] ? e.m_icon.url = this._openData.iconList[t] : (e.m_icon.url = "ui://75kiu87kbg002p", this._openData.iconList[t] = "ui://75kiu87kbg002p"), this._openData.titleList[t] ? e.m_text_title.text = this._openData.titleList[t] : (e.m_text_title.text = "测试数据" + t, this._openData.titleList[t] = "测试数据" + t);
  			}
  			he.instance.ShowBannerAd();
  		}
  		onGetReward() {
  			if (this.isFake) return this.onRewardGot(), void this._OnClickRoll();
  			K.instance.checkState == p.NoGame ? this._fakeGet() : this.onRewardGot();
  		}
  		onRewardGot() {
  			this.ui.m_view_roll.rotation = this._cacheDegree, this.ui.m_rewardPannel.visible = !1, this._openData.onRolled && this._openData.onRolled.runWith([this._cacheIndex, this.ui.m_pointer]), this.isFake = !1;
  		}
  		_fakeGet() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.isFake = !0, yield et.Seconds(1), this.onRewardGot();
  			})
  		}
  		_OnClickRoll() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (de.instance.freeRollCount > 0) return de.instance.freeRollCount--, de.SaveToDisk(), void this._DoRoll()
  			})
  		}
  		_DoRoll() {
  			Ht.LockScreen(), this._cacheIndex = h.RandomFromWithWeight(this._randomIndex, this._openData.rollWeight);
  			let t = this._cacheIndex * this._unitDegree;
  			this._cacheDegree = t + .2 * h.Random(-this._unitDegree, this._unitDegree);
  			let e = 360 * this._rotateCount + this._cacheDegree;
  			Laya.Tween.to(this.ui.m_view_roll, {
  				rotation: e
  			}, this._rotateTime, Laya.Ease.quadOut, Laya.Handler.create(this, this._OnRollEnd));
  		}
  		_OnRollEnd() {
  			this.ui.m_rewardPannel.visible = !0, this.ui.m_rewardPannel.m_img.url = this._openData.iconList[this._cacheIndex], this.ui.m_rewardPannel.m_txt_reward.text = this._openData.titleList[this._cacheIndex], this.ui.m_btn_roll.m_btn_type.selectedIndex = de.instance.freeRollCount > 0 ? 3 : 0, Ht.UnlockScreen();
  		}
  		_OnClickClose() {
  			this.Hide();
  		}
  		_OnHide() {
  			he.instance.HideBannerAd();
  		}
  	}
  	class Mt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonLockScreen")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0);
  		}
  	}
  	Mt.URL = "ui://75kiu87ki2wq2s";
  	class Tt extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new Tt, this._instance._classDefine = Mt), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this._sortOrder = Number.MAX_SAFE_INTEGER;
  		}
  	}
  	class Ut extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "BonusBox")
  		}
  		onConstruct() {
  			this.m_canclose = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_btn_close = this.getChildAt(5), this.m_tog = this.getChildAt(6), this.m_boxList = this.getChildAt(7), this.m_keyList = this.getChildAt(8), this.m_btn_ad = this.getChildAt(9), this.m_txt_count = this.getChildAt(10), this.m_t1 = this.getTransitionAt(0), this.m_delay = this.getTransitionAt(1);
  		}
  	}
  	Ut.URL = "ui://75kiu87kkj718g";
  	class Vt extends Q {
  		constructor() {
  			super(...arguments), this.keyCount = 3, this.weight = [2, 2, 2, 5, 5, 5, 5, 5, 5], this.adItems = [], this.datas = [];
  		}
  		get ui() {
  			return this._ui
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Vt, this._instance._classDefine = Ut), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new rt, null == this._openParam) console.error("请传入CommonRewardData用于初始化宝箱界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this.keyCount = 3, this._openData && (this.datas = this._openData.datas), this.adItems = h.RandomArrayFromArray([0, 1, 2, 3, 4, 5, 6, 7, 8], 3), this.ui.m_btn_close.visible = he.instance.platform == u.Oppo, this.ui.m_keyList.setVirtual(), this.ui.m_keyList.itemRenderer = Laya.Handler.create(this, this.renderKeyItem, null, !1), this.ui.m_keyList.numItems = 3, this.ui.m_keyList.refreshVirtualList(), this.ui.m_boxList.setVirtual(), this.ui.m_boxList.itemRenderer = Laya.Handler.create(this, this.renderBoxItem, null, !1), this.ui.m_boxList.on(fgui.Events.CLICK_ITEM, this, this.clickBox), this.ui.m_boxList.numItems = 9, this.ui.m_boxList.refreshVirtualList(), this.ui.m_btn_close.onClick(this, this.Hide), this.ui.m_txt_count.text = `可免费开启${this.keyCount}个宝箱`, this.ui.m_btn_ad.onClick(this, this.addKey), this.ui.m_tog.m_selected.selectedIndex = K.instance.checkState == p.InCheck ? 0 : 1, this.ui.m_tog.onClick(this, () => {
  				this.ui.m_tog.m_selected.selectedIndex = (this.ui.m_tog.m_selected.selectedIndex + 1) % 2, this.ui.m_btn_ad.m_ad.selectedIndex = this.ui.m_tog.m_selected.selectedIndex;
  			}), this.ui.m_btn_ad.m_ad.selectedIndex = this.ui.m_tog.m_selected.selectedIndex;
  		}
  		addKey() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (1 == this.ui.m_tog.m_selected.selectedIndex) {
  					(yield he.instance.ShowRewardVideoAdAsync()) ? (this.keyCount = 3, this.ui.m_keyList.refreshVirtualList(), this.ui.m_txt_count.text = `可免费开启${this.keyCount}个宝箱`) : Ht.Toast("跳过广告无法获得奖励");
  				} else this.Hide();
  			})
  		}
  		clickBox(t) {
  			1 == parseInt(t.data.toString()) || 0 == this.keyCount ? this.getAdBonus(t) : this.getBonus(t);
  		}
  		getAdBonus(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				(yield he.instance.ShowRewardVideoAdAsync()) ? this.getBonus(t): Ht.Toast("跳过广告无法获得奖励");
  			})
  		}
  		getBonus(t) {
  			let e = h.RandomFromWithWeight(this.datas, this.weight);
  			t.m_title.text = `${1==e.type?"皮肤":"金币"}${e.value}`, t.m_icon.url = e.icon, Ht.Toast(`恭喜获得${1==e.type?"皮肤":"金币"}${e.value}`), t.m_isclicked.selectedIndex = 1, 0 == e.type ? (ot.instance.coinCount += e.value, ot.SaveToDisk()) : this._openData.onGetSkin(), this.keyCount > 0 && (this.keyCount -= 1, this.ui.m_keyList.refreshVirtualList(), this.ui.m_canclose.selectedIndex = this.keyCount < 1 ? 1 : 0), this.ui.m_txt_count.text = `可免费开启${this.keyCount}个宝箱`;
  		}
  		renderKeyItem(t, e) {
  			t < this.keyCount ? e.m_select.selectedIndex = 1 : e.m_select.selectedIndex = 0;
  		}
  		renderBoxItem(t, e) {
  			this.adItems.indexOf(t) >= 0 ? (e.m_ad.selectedIndex = 1, e.data = 1) : (e.m_ad.selectedIndex = 0, e.data = 0);
  		}
  		_OnHide() {}
  	}
  	class Et extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "ExSkin")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(3), this.m_btn_close = this.getChildAt(5), this.m_btn_ad = this.getChildAt(6), this.m_list_pro = this.getChildAt(7), this.m_tog = this.getChildAt(9), this.m_anim_enter = this.getTransitionAt(0), this.m_t1 = this.getTransitionAt(1);
  		}
  	}
  	Et.URL = "ui://75kiu87kkj7184";
  	class Gt extends Q {
  		get ui() {
  			return this._ui
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Gt, this._instance._classDefine = Et), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new rt, null == this._openParam) console.error("请传入CommonRewardData用于初始化限定皮肤界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this._openData && this._openData.datas && (this.ui.m_icon.url = this._openData.datas[0].icon), de.instance.ExSkinAdCount >= 3 && (de.instance.ExSkinAdCount = 0, de.SaveToDisk()), this.ui.m_list_pro.setVirtual(), this.ui.m_list_pro.itemRenderer = Laya.Handler.create(this, this.showProgress, null, !1), this.ui.m_list_pro.numItems = 3, this.ui.m_list_pro.refreshVirtualList(), this.ui.m_btn_close.onClick(this, () => {
  				this.Hide();
  			}), this.ui.m_btn_ad.onClick(this, this.getReward), this.ui.m_tog.onClick(this, () => {
  				this.ui.m_tog.m_selected.selectedIndex = (this.ui.m_tog.m_selected.selectedIndex + 1) % 2, this.ui.m_btn_ad.m_ad.selectedIndex = this.ui.m_tog.m_selected.selectedIndex;
  			}), he.instance.platform == u.Oppo && (this.ui.m_btn_close.visible = !0, this.ui.m_tog.visible = !1, this.ui.m_tog.m_selected.selectedIndex = 1), K.instance.checkState == p.InCheck ? this.ui.m_tog.m_selected.selectedIndex = 0 : this.ui.m_tog.m_selected.selectedIndex = 1, this.ui.m_btn_ad.m_ad.selectedIndex = this.ui.m_tog.m_selected.selectedIndex, he.instance.ShowBannerAd();
  		}
  		getReward() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (1 == this.ui.m_tog.m_selected.selectedIndex) {
  					(yield he.instance.ShowRewardVideoAdAsync()) ? (de.instance.ExSkinAdCount += 1, de.SaveToDisk(), this.ui.m_list_pro.refreshVirtualList(), de.instance.ExSkinAdCount >= 3 && this.getSkin()) : Ht.Toast("跳过广告无法获得奖励");
  				} else this.Hide();
  			})
  		}
  		getSkin() {
  			this._openData && this._openData.onGetSkin && this._openData.onGetSkin(), de.instance.ExSkinAdCount = 0, de.SaveToDisk(), this.Hide();
  		}
  		showProgress(t, e) {
  			t < de.instance.ExSkinAdCount ? e.m_select.selectedIndex = 1 : e.m_select.selectedIndex = 0;
  		}
  		_OnHide() {
  			he.instance.HideBannerAd();
  		}
  	}
  	class jt {
  		constructor() {
  			this.onClose = null;
  		}
  	}
  	class Nt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "TrySkin")
  		}
  		onConstruct() {
  			this.m_check_type = this.getControllerAt(0), this.m_oppo = this.getControllerAt(1), this.m_bg = this.getChildAt(0), this.m_haro = this.getChildAt(1), this.m_icon = this.getChildAt(4), this.m_btn_pay = this.getChildAt(5), this.m_btn_watch = this.getChildAt(6), this.m_btn_close = this.getChildAt(7), this.m_btn_no = this.getChildAt(8), this.m_btn_try = this.getChildAt(9), this.m_t0 = this.getTransitionAt(0), this.m_anim_enter = this.getTransitionAt(1);
  		}
  	}
  	Nt.URL = "ui://75kiu87kkj719w";
  	class Ft extends Q {
  		constructor() {
  			super(...arguments), this.needPay = !1;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Ft, this._instance._classDefine = Nt), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this._openData = new jt, null == this._openParam) console.error("请传入TrySkinOpenData用于初始化皮肤试用界面");
  			else
  				for (let t in this._openParam) this._openData[t] = this._openParam[t];
  			this.Init();
  		}
  		Init() {
  			switch (K.instance.checkState) {
  				case p.InCheck:
  				case p.Normal:
  				default:
  					this.ui.m_check_type.selectedIndex = 1, this.ui.m_btn_no.title = "不了，谢谢", this.ui.m_btn_watch.title = "点击试用", he.instance.platform == u.Oppo && (this.ui.m_check_type.selectedIndex = 1, this.ui.m_btn_pay.m_select.selectedIndex = 0, this.ui.m_btn_no.title = "不了，谢谢", this.ui.m_btn_watch.title = "点击试用", this.ui.m_oppo.selectedIndex = 1);
  					break;
  				case p.NoGame:
  					this.ui.m_check_type.selectedIndex = 2, this.ui.m_btn_no.title = "试用，谢谢";
  			}
  			this.ui.m_btn_close.onClick(this, this.Hide), this.ui.m_btn_watch.onClick(this, this.onVideoClick), this.ui.m_btn_try.onClick(this, this.onVideoClick), this.ui.m_btn_pay.onClick(this, this._onToggleClick), this.ui.m_btn_no.onClick(this, this._onClickNo), this._openData && this._openData.iconPaths && (this._ui.m_icon.url = this._openData.iconPaths[0]);
  		}
  		_onClickNo() {
  			K.instance.checkState == p.InCheck || he.instance.platform == u.Oppo ? this.Hide() : 1 == this.ui.m_btn_pay.m_select.selectedIndex ? this.onVideoClick() : this.Hide();
  		}
  		_onToggleClick() {
  			if (K.instance.checkState == p.InCheck) return;
  			if (K.instance.checkState == p.Normal) return void(this.ui.m_btn_pay.m_select.selectedIndex = (this.ui.m_btn_pay.m_select.selectedIndex + 1) % 2);
  			let t = h.RandomInt(0, 100);
  			this.needPay = t < K.instance.payRate, this.needPay ? this.onVideoClick() : (this.ui.m_btn_pay.m_select.selectedIndex = (this.ui.m_btn_pay.m_select.selectedIndex + 1) % 2, this.ui.m_btn_no.title = 1 == this.ui.m_btn_pay.m_select.selectedIndex ? "试用，谢谢" : "不用，谢谢");
  		}
  		onVideoClick() {
  			return __awaiter(this, void 0, void 0, function*() {
  				(yield he.instance.ShowRewardVideoAdAsync()) ? this._openData && this._openData.onClose && (this._openData.onClose.runWith(0), this.Hide()): Ht.Toast("完整观看视频可获得奖励");
  			})
  		}
  		_OnHide() {}
  	}
  	class Ht {
  		static Toast(t) {
  			console.log("[Toast]" + t), Z.instance.Show(t);
  		}
  		static ShowLoading(t, e = !1) {
  			tt.instance.isShow ? console.log("加载弹窗界面已打开") : tt.instance.Show([t, e]);
  		}
  		static HideLoading() {
  			tt.instance.Hide();
  		}
  		static BoomObjs(t, e = 10, i = 1, s = 60) {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield at.instance.BoomObjs(t, e, i, s);
  			})
  		}
  		static FlyObjsTo(t, e, i = 10, s = 1, a = 60) {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield at.instance.FlyObjs(t, e, i, s, a);
  			})
  		}
  		static FlyCoinsTo(t, e, i = null, s = 10, a = 1, n = 60) {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield at.instance.FlyCoins(t, e, i, s, a, n);
  			})
  		}
  		static BoomCoins(t, e = null, i = 10, s = 1, a = 60) {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield at.instance.BoomCoins(t, e, i, s, a);
  			})
  		}
  		static ShowSignUI(t) {
  			lt.instance.Show(t);
  		}
  		static ShowOneMore(t) {
  			ut.instance.Show(t);
  		}
  		static ShowEndShare(t) {
  			pt.instance.Show(t);
  		}
  		static ShowEndReward(t) {
  			yt.instance.Show(t);
  		}
  		static ShowEndLose(t) {
  			Lt.instance.Show(t);
  		}
  		static ShowUnlockProgress(t) {
  			kt.instance.Show(t);
  		}
  		static ShowOffline(t) {
  			Pt.instance.Show(t);
  		}
  		static ShowTrySkin(t) {
  			Ft.instance.Show(t);
  		}
  		static ShowSet(t) {
  			Rt.instance.Show(t);
  		}
  		static ShowRoll(t) {
  			Bt.instance.Show(t);
  		}
  		static LockScreen() {
  			Tt.instance.Show();
  		}
  		static UnlockScreen() {
  			Tt.instance.Hide();
  		}
  		static ShowBonusBox() {
  			console.error("demo 数据");
  			let t = new rt;
  			t.datas = [{
  				type: 0,
  				value: 10,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 20,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 30,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 40,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 50,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 60,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 70,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 0,
  				value: 80,
  				icon: "ui://75kiu87kbg0016"
  			}, {
  				type: 1,
  				value: 9,
  				icon: "test/test.png"
  			}], t.onGetSkin = (() => {
  				Ht.Toast("恭喜获得皮肤");
  			}), Vt.instance.Show(t);
  		}
  		static ShowExSKin() {
  			console.error("demo 数据");
  			let t = new rt;
  			t.datas = [{
  				type: 1,
  				value: 9,
  				icon: "test/test.png"
  			}], t.onGetSkin = (() => {
  				Ht.Toast(`恭喜获得限定 皮肤 ${t.datas[0].value}`);
  			}), Gt.instance.Show(t);
  		}
  	}
  	class Wt {
  		Vibrate(t) {
  			console.log("调用震动", t);
  		}
  	}
  	class zt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "item_gameBig")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1), this.m_title = this.getChildAt(2), this.m_player = this.getChildAt(3), this.m_red = this.getChildAt(4);
  		}
  	}
  	zt.URL = "ui://75kiu87kr3yg7d";
  	class Yt extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "GameCenter")
  		}
  		onConstruct() {
  			this.m_topList = this.getChildAt(5), this.m_centerList = this.getChildAt(6), this.m_btn_close = this.getChildAt(7), this.m_anim_enter = this.getTransitionAt(0);
  		}
  	}
  	Yt.URL = "ui://75kiu87kr3yg75";
  	class qt extends Q {
  		constructor() {
  			super(...arguments), this._posId = 5;
  		}
  		get ui() {
  			return this._ui
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new qt, this._instance._classDefine = Yt), this._instance
  		}
  		_OnShow() {
  			if (super._OnShow(), this.cacheAds = K.instance.adManager.GetADListByLocationId(this._posId), !this.cacheAds) return console.error("获取广告ID失败GameCenter"), void this.Hide();
  			this.ui.m_topList.setVirtualAndLoop(), this.ui.m_topList.itemRenderer = Laya.Handler.create(this, this.renderItem, null, !1), this.ui.m_topList.on(fgui.Events.CLICK_ITEM, this, this.clickItem), this.ui.m_topList.numItems = this.cacheAds.length, this.ui.m_topList.refreshVirtualList(), Laya.timer.loop(5e3, this, () => {
  				this.ui.m_topList.scrollPane.scrollRight(1.15625, !0);
  			}), this.ui.m_centerList.setVirtual(), this.ui.m_centerList.itemRenderer = Laya.Handler.create(this, this.renderItem, null, !1), this.ui.m_centerList.on(fgui.Events.CLICK_ITEM, this, this.clickItem), this.ui.m_centerList.numItems = this.cacheAds.length, this.ui.m_centerList.refreshVirtualList(), Laya.timer.loop(100, this, () => {
  				this.ui.m_centerList.scrollPane.scrollDown(.005, !0);
  			}), this.ui.m_btn_close.onClick(this, this.Hide), he.instance.HideBannerAd(), this.ui.m_btn_close.visible = !1, Laya.timer.once(3e3, this, () => {
  				this.ui.m_btn_close.visible = !0;
  			});
  			let t = [];
  			this.cacheAds.forEach(e => {
  				let i = {};
  				i.ad_id = e.ad_id, i.location_id = this._posId, i.num = 1, t.push(i);
  			});
  		}
  		clickItem(t) {
  			let e = t.data.id,
  				i = t.data.path,
  				s = t.data.adid;
  			he.instance.NavigateToApp(e, i, null, !1, !1, s);
  		}
  		renderItem(t, e) {
  			let i = this.cacheAds[t],
  				s = {
  					id: i.ad_appid,
  					path: i.ad_path,
  					adid: i.ad_id
  				};
  			e.data = s, e.m_title.text = i.ad_name, e.m_icon.m_icon.url = i.ad_img, e.m_red.visible = 1 == i.ad_dot, e instanceof zt && (e.m_player.text = `${i.ad_count}人玩`);
  		}
  		_OnHide() {}
  	}
  	class Kt {
  		constructor() {
  			this.platform = u.WX, this.safeArea = null, this.recordManager = new W, this.device = new Wt, this.loginCode = null, this.isSupportJumpOther = !0, this._isBannerLoaded = !1, this._isVideoLoaded = !1, this._isInterstitialLoaded = !1, this._cacheVideoAD = !1, this.NavigateToAppSuccess = null;
  		}
  		Init(t) {
  			this._base = window.wx, null != this._base ? (this.platformData = t, this._InitLauchOption(), this._Login(), this._InitSystemInfo(), window.iplatform = this) : console.error("平台初始化错误", he.platformStr);
  		}
  		_CheckUpdate() {}
  		_Login() {
  			this.loginState = {
  				isLogin: !1,
  				code: ""
  			};
  			let t = {};
  			t.success = (t => {
  				this.loginCode = t.code, this._OnLoginSuccess(t), console.error(this.loginState);
  			}), t.fail = (t => {
  				console.error(he.platformStr, "登录失败", t), this.loginState.isLogin = !1, this.loginState.code = "";
  			}), t.complete = (() => {
  				null != this.onLoginEnd && this.onLoginEnd.run();
  			}), this._base.login(t);
  		}
  		GetStorage(t) {
  			if (this.base && this.base.getStorageSync && t) try {
  				return this.base.getStorageSync(t)
  			} catch (t) {
  				return console.log("getStorageSync error: ", JSON.stringify(t)), null
  			}
  		}
  		SetStorage(t, e) {
  			if (this.base && this.base.getStorageSync && t) try {
  				return this.base.setStorageSync(t, e)
  			} catch (t) {
  				console.log("setStorageSync error: ", JSON.stringify(t));
  			}
  		}
  		_OnLoginSuccess(t) {
  			console.log(he.platformStr, "登录成功", t), Ht.Toast("登录成功"), this.loginState.isLogin = !0, this.loginState.code = t.code;
  		}
  		_InitLauchOption() {
  			this._base.onShow(this._OnShow), this._base.onHide(this._OnHide);
  			let t = this._base.getLaunchOptionsSync();
  			this._OnShow(t);
  		}
  		_InitShareInfo() {
  			this._base.showShareMenu({
  				withShareTicket: !0,
  				success: t => {
  					console.log("InitShareSuccess", t);
  				},
  				fail: t => {
  					console.log("InitShareFailed", t);
  				},
  				complete: t => {
  					console.log("InitShareComplete", t);
  				}
  			}), this._base.onShareAppMessage(() => {
  				let t = F.instance.GetShareInfo();
  				return Kt._WrapShareInfo(t)
  			});
  		}
  		static _WrapShareInfo(t) {
  			let e = {};
  			if (t.shareTitle && (e.title = t.shareTitle), t.shareImg && (e.imageUrl = t.shareImg), t.sharePath) {
  				e.query = {};
  				let i = t.sharePath.split("?")[1].split("&");
  				for (let t of i) {
  					let i = t.split("=");
  					e.query[i[0]] = i[1];
  				}
  			}
  			return e
  		}
  		_InitSystemInfo() {
  			this.base = this._base;
  			try {
  				this.systemInfo = this._base.getSystemInfoSync(), console.log("系统信息已获取", this.systemInfo), this.safeArea = this.systemInfo.safeArea, this._cacheScreenScale = this.systemInfo.screenWidth / Laya.stage.width;
  			} catch (t) {
  				console.error(t), console.error("获取设备信息失败,执行默认初始化"), this.safeArea = null;
  			}
  		}
  		_CreateInterstitalAd() {
  			if (j.IsNullOrEmpty(this.platformData.interstitialId)) return void console.log("无有效的插页广告ID,取消加载");
  			this._interstitalFailedCount = 0;
  			let t = {};
  			t.adUnitId = this.platformData.interstitialId, this._intersitialAd = this._base.createInterstitialAd(t), this._intersitialAd.onLoad(() => {
  				console.log("插页广告加载成功"), this._isInterstitialLoaded = !0;
  			}), this._intersitialAd.onError(t => {
  				this._interstitalFailedCount++, console.error("插页广告加载失败", t), this._interstitalFailedCount > 10 && (console.log("第", this._interstitalFailedCount, "次重新加载插页广告"), this._intersitialAd.load());
  			});
  		}
  		_CreateVideoAd() {
  			if (!this._cacheVideoAD) return void console.log("当前策略为不缓存视频广告");
  			let t = this._base.createRewardedVideoAd;
  			if (null == t) return void console.error("无createRewardedVideoAd方法,跳过初始化");
  			if (j.IsNullOrEmpty(this.platformData.rewardVideoId)) return void console.log("无有效的视频广告ID,取消加载");
  			this._videoFailedCount = 0;
  			let e = {};
  			e.adUnitId = this.platformData.rewardVideoId, this._rewardVideo = t(e), this._rewardVideo.onLoad(() => {
  				console.log("视频广告加载成功"), this._isVideoLoaded = !0;
  			}), this._rewardVideo.onError(t => {
  				this._videoFailedCount++, console.error("视频广告加载失败", t), this._videoFailedCount > 10 && (console.log("第", this._videoFailedCount, "次重新加载视频广告"), this._rewardVideo.load());
  			}), this._rewardVideo.onClose(t => {
  				Laya.stage.event(H.RESUM_AUDIO), console.log("视频回调", t);
  				let e = t.isEnded;
  				et.NextFrame()
  					.then(() => {
  						e ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run();
  					});
  			});
  		}
  		_CreateBannerAd() {
  			if (j.IsNullOrEmpty(this.platformData.bannerId)) return void console.log("无有效的banner广告ID,取消加载");
  			let t = this._base.getSystemInfoSync()
  				.windowWidth,
  				e = this._base.getSystemInfoSync()
  				.windowHeight,
  				i = {};
  			i.adUnitId = this.platformData.bannerId, i.adIntervals = 30;
  			let s = {
  				left: 0,
  				top: 0,
  				width: 300
  			};
  			i.style = s, this._bannerAd = this._base.createBannerAd(i), this._isBannerLoaded = !1, this._bannerAd.onLoad(() => {
  				console.log("banner加载成功"), this._isBannerLoaded = !0, this._bannerAd.style.top = e - this._bannerAd.style.realHeight, this._bannerAd.style.left = (t - this._bannerAd.style.realWidth) / 2;
  			}), this._bannerAd.onError(t => {
  				console.error("banner广告加载失败", t);
  			});
  		}
  		IsBannerAvaliable() {
  			return this._isBannerLoaded
  		}
  		IsVideoAvaliable() {
  			return this._isVideoLoaded
  		}
  		IsInterstitalAvaliable() {
  			return this._isInterstitialLoaded
  		}
  		ShowBannerAd() {
  			this.IsBannerAvaliable() && this._bannerAd.show();
  		}
  		HideBannerAd() {
  			this._bannerAd.hide();
  		}
  		_DoCacheShowVideo(t, e) {
  			this._isVideoLoaded ? (this._rewardSuccessed = t, this._rewardSkipped = e, this._isVideoLoaded = !1, Laya.stage.event(H.PAUSE_AUDIO), this._rewardVideo.show()) : console.error("视频广告尚未加载好");
  		}
  		_DoNoCacheShowVideo(t, e) {
  			if (this._rewardSuccessed = t, this._rewardSkipped = e, j.IsNullOrEmpty(this.platformData.rewardVideoId)) return console.log("无有效的视频广告ID,取消加载"), void e.run();
  			let i = this._base.createRewardedVideoAd;
  			if (null == i) return console.error("无createRewardedVideoAd方法,跳过初始化"), void e.run();
  			Ht.ShowLoading("广告拉取中..."), this._videoFailedCount = 0;
  			let s = {};
  			s.adUnitId = this.platformData.rewardVideoId, this._rewardVideo && this._rewardVideo.offClose(this.onVideoClose), this._rewardVideo = i(s), this._rewardVideo.onLoad(() => {
  					console.log("视频广告加载成功"), this._isVideoLoaded = !0;
  				}), this._rewardVideo.onError(t => {
  					this._videoFailedCount++, console.error("视频广告加载失败", t, this._videoFailedCount), Ht.HideLoading();
  				}), this._rewardVideo.onClose(t => {
  					Laya.stage.event(H.RESUM_AUDIO), console.log("视频回调", t);
  					let e = t.isEnded;
  					et.NextFrame()
  						.then(() => {
  							e ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run();
  						});
  				}), this._rewardVideo.load()
  				.then(() => (console.log("激励视频 加载成功"), this._rewardVideo.show()
  					.then(() => {
  						Ht.HideLoading();
  					})
  					.catch(t => {
  						console.error(t), Ht.Toast("视频加载失败，请稍后再试！"), Ht.HideLoading();
  					})));
  		}
  		onVideoClose(t) {
  			Laya.stage.event(H.RESUM_AUDIO), console.log("视频回调", t);
  			let e = t.isEnded;
  			et.NextFrame()
  				.then(() => {
  					e ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run();
  				});
  		}
  		ShowRewardVideoAd(t, e) {
  			this._cacheVideoAD ? this._DoCacheShowVideo(t, e) : this._DoNoCacheShowVideo(t, e);
  		}
  		ShowRewardVideoAdAsync() {
  			return new Promise(function(t) {
  				he.instance.ShowRewardVideoAd(Laya.Handler.create(this, () => {
  					t(!0);
  				}), Laya.Handler.create(this, () => {
  					t(!1);
  				}));
  			})
  		}
  		ShowInterstitalAd() {}
  		GetFromAppId() {
  			return null == this.lauchOption.referrerInfo ? null : j.IsNullOrEmpty(this.lauchOption.referrerInfo.appId) ? null : this.lauchOption.referrerInfo.appId
  		}
  		_OnShow(t) {}
  		_OnHide(t) {}
  		ShareAppMessage(t, e, i) {}
  		LoadSubpackage(t, e, i, s) {
  			console.log("加载wx分包"), e && e.run();
  		}
  		RecordEvent(t, e) {
  			console.log("记录事件", t, e);
  		}
  		CreateShareVideoBtn(t, e, i, s) {}
  		HideShareVideoBtn() {
  			null != this._shareVideoBtn && this._shareVideoBtn.hide();
  		}
  		ShowToast(t) {}
  		OpenGameBox(t) {
  			console.error("当前平台", he.platformStr, "暂不支持互推游戏盒子");
  		}
  		NavigateToApp(t, e, i, s, a, n) {
  			return new Promise((a, n) => {
  				wx.navigateToMiniProgram({
  					appId: t,
  					path: e,
  					extraData: i,
  					envVersion: "",
  					success: t => {
  						console.log("小游戏跳转成功", t), a(!0);
  					},
  					fail: () => {
  						console.log("小游戏跳转失败："), n(!1), s && qt.instance.Show();
  					},
  					complete: () => {}
  				});
  			})
  		}
  		createShortcut() {
  			console.log("暂未实现");
  		}
  	}! function(t) {
  		t.config = class {}, t.path = "res/config/PackConst.json";
  	}(g || (g = {}));
  	class Qt extends W {
  		constructor(t) {
  			super(), this.supportRecord = !0, this._base = t, this.isRecording = !1, this.isRecordSuccess = !1, this.isPausing = !1, this._nativeManager = this._base.getGameRecorderManager(), this._nativeManager.onStart(t => {
  				console.log("平台开始录制", t), this.isRecording = !0, this.isRecordSuccess = !1, this._cacheStartHandle && this._cacheStartHandle.run();
  			}), this._nativeManager.onStop(t => {
  				console.log("平台停止录制", t), this.videoSavePath = t.videoPath, this.isRecording = !1, this.isRecordSuccess = !0, this._cacheStopHandle ? this._cacheStopHandle.run() : this._cacheOverTimeHandle && this._cacheOverTimeHandle.run();
  			}), this._nativeManager.onError(t => {
  				console.log("录制发生错误", t), this.isRecordSuccess = !1, this.isRecording = !1;
  			}), this._nativeManager.onPause(t => {
  				console.log("暂停录制视频", t), this.isPausing = !0, this._cachePauseHandle && this._cachePauseHandle.run();
  			}), this._nativeManager.onResume(t => {
  				console.log("暂停录制视频", t), this.isPausing = !1, this._cacheResumeHandle && this._cacheResumeHandle.run();
  			});
  		}
  		StartRecord(t, e) {
  			console.log("调用开始录屏"), this._cacheStartHandle = t, this._cacheOverTimeHandle = e, this._cacheStopHandle = null, this._nativeManager.start({
  				duration: 300
  			});
  		}
  		Pause(t) {
  			this.isRecording ? this.isPausing ? console.log("当前录制状态已暂停") : (console.log("调用暂停录制"), this._cachePauseHandle = t, this._nativeManager.pause()) : console.error("当前未开始录制,无法暂停录制");
  		}
  		Resume(t) {
  			this.isRecording ? this.isPausing ? (console.log("调用恢复录制"), this._cacheResumeHandle = t, this._nativeManager.resume()) : console.log("当前录制状态正在进行中") : console.error("当前未开始录制,无法恢复录制");
  		}
  		RecordClip(t) {
  			this.isRecording ? this.isPausing ? console.log("当前录制状态已暂停,无法记录精彩时刻") : null == t ? this._nativeManager.recordClip({}) : this._nativeManager.recordClip({
  				timeRange: t
  			}) : console.error("当前未开始录制,无法记录精彩时刻");
  		}
  		StopRecord(t) {
  			console.log("调用结束录屏"), this._cacheStopHandle = t, this._nativeManager.stop();
  		}
  		ShareVideo(t, e, i) {
  			if (console.log(g.data), this.isRecordSuccess) {
  				let i = {
  					channel: "video",
  					title: "",
  					desc: "",
  					imageUrl: "",
  					templateId: g.data.share_id,
  					query: "",
  					extra: {
  						videoPath: this.videoSavePath,
  						videoTopics: g.data.topics
  					},
  					success() {
  						t && t.run();
  					},
  					fail(t) {
  						e && e.run();
  					}
  				};
  				this._base.shareAppMessage(i);
  			} else console.log("无视频可以分享"), i && i.run();
  		}
  	}
  	class Xt extends Wt {
  		constructor(t) {
  			super(), this._base = t;
  		}
  		Vibrate(t) {
  			console.log("调用震动", t), t ? this._base.vibrateLong({
  				success(t) {},
  				fail(t) {
  					console.error("调用震动失败", t);
  				},
  				complete(t) {}
  			}) : this._base.vibrateShort({
  				success(t) {},
  				fail(t) {
  					console.error("调用震动失败", t);
  				},
  				complete(t) {}
  			});
  		}
  	}
  	class Jt extends Kt {
  		constructor() {
  			super(...arguments), this.platform = u.TT, this._showVideoLoad = !1;
  		}
  		Init(t) {
  			if (this._base = window.tt, null == this._base) return void console.error("平台初始化错误");
  			this.platformData = t;
  			let e = this._base.getSystemInfoSync();
  			"ios" == e.platform && (this.isSupportJumpOther = !1);
  			let [i, s] = e.SDKVersion.split(".");
  			i >= 1 && s >= 33 || (this.isSupportJumpOther = !1), this._InitLauchOption(), this._InitShareInfo(), this._InitSystemInfo(), this._CreateBannerAd(), this._CreateVideoAd(), this._CreateInterstitalAd(), this.recordManager = new Qt(this._base), this.device = new Xt(this._base), window.iplatform = this;
  		}
  		_CreateBannerAd() {
  			if (j.IsNullOrEmpty(this.platformData.bannerId)) return void console.log("无有效的banner广告ID,取消加载");
  			let t = this._base.getSystemInfoSync()
  				.windowWidth,
  				e = this._base.getSystemInfoSync()
  				.windowHeight,
  				i = {};
  			i.adUnitId = this.platformData.bannerId, i.adIntervals = 30;
  			let s = {
  				left: 0,
  				top: 0
  			};
  			s.width = t, i.style = s, this._bannerAd = this._base.createBannerAd(i), this._isBannerLoaded = !1, this._bannerAd.onLoad(() => {
  				console.log("banner加载成功", this._bannerAd), this._isBannerLoaded = !0;
  			}), this._bannerAd.onError(t => {
  				console.error("banner广告加载失败", t), this._bannerAd;
  			}), this._bannerAd.onResize(i => {
  				this._bannerAd.style.top = e - i.height, this._bannerAd.style.left = (t - i.width) / 2;
  			});
  		}
  		RecordEvent(t, e) {
  			let i = this._base.reportAnalytics;
  			i ? (null == e && (e = {}), i(t, e)) : console.error("reportAnalytics 方法不存在");
  		}
  		ShowBannerAd() {
  			this.IsBannerAvaliable() && this._bannerAd.show();
  		}
  		ShareAppMessage(t, e, i) {
  			console.log("分享消息", t);
  			let s = Kt._WrapShareInfo(t);
  			s.success = (() => {
  				e && e.run();
  			}), s.fail = (() => {
  				i && i.run();
  			}), this._base.shareAppMessage(s);
  		}
  		OpenGameBox(t) {
  			let e = [];
  			for (let i = 0; i < t.length; ++i) e.push({
  				appId: t[i]
  			});
  			this._base.showMoreGamesModal({
  				appLaunchOptions: e
  			});
  		}
  		NavigateToApp(t, e, i) {
  			return null
  		}
  	}
  	class Zt extends Kt {
  		constructor() {
  			super(...arguments), this.platform = u.BD, this._showVideoLoad = !1;
  		}
  		Init(t) {
  			this._base = window.swan, null != this._base ? (this.platformData = t, this._InitLauchOption(), this._InitShareInfo(), this._InitSystemInfo(), this._isBannerLoaded = !1, this._isBannerShowed = !1, this._CreateVideoAd(), this._CreateInterstitalAd(), window.iplatform = this) : console.error("平台初始化错误");
  		}
  		_CreateBannerAd() {
  			if (j.IsNullOrEmpty(this.platformData.bannerId)) return void console.log("无有效的banner广告ID,取消加载");
  			let t = this._base.getSystemInfoSync()
  				.windowWidth,
  				e = this._base.getSystemInfoSync()
  				.windowHeight,
  				i = {};
  			i.adUnitId = this.platformData.bannerId, i.appSid = this.sid;
  			let s = {
  				left: 0,
  				top: 0
  			};
  			s.width = t, i.style = s, this._bannerAd = this._base.createBannerAd(i), this._bannerAd.onLoad(() => {
  				console.log("banner加载成功"), this._isBannerLoaded = !0, this._bannerAd.style.top = e - this._bannerAd.style.height, this._bannerAd.show();
  			}), this._bannerAd.onError(t => {
  				console.error("banner广告加载失败", t);
  			});
  		}
  		_CreateVideoAd() {
  			if (j.IsNullOrEmpty(this.platformData.rewardVideoId)) return void console.log("无有效的视频广告ID,取消加载");
  			this._videoFailedCount = 0;
  			let t = {};
  			t.adUnitId = this.platformData.rewardVideoId, t.appSid = this.sid, this._rewardVideo = this._base.createRewardedVideoAd(t), this._rewardVideo.onLoad(() => {
  				console.log("视频广告加载成功"), this._isVideoLoaded = !0;
  			}), this._rewardVideo.onError(t => {
  				this._videoFailedCount++, console.error("视频广告加载失败", t), this._videoFailedCount > 10 && (console.log("第", this._videoFailedCount, "次重新加载视频广告"), this._rewardVideo.load());
  			}), this._rewardVideo.onClose(t => {
  				this._base.hideLoading(), Laya.stage.event(H.RESUM_AUDIO), console.log("视频回调", t), t.isEnded ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run(), this._rewardVideo.load();
  			});
  		}
  		_CreateInterstitalAd() {}
  		LoadSubpackage(t, e, i, s) {
  			let a = {};
  			a.name = t, a.success = (() => {
  					console.log("分包加载成功", t), e && e.run();
  				}), a.fail = (() => {
  					console.error("分包加载失败", t), i && i.run();
  				}), this._base.loadSubpackage(a)
  				.onProgressUpdate(t => {
  					if (s) {
  						let e = t.progress / 100;
  						isNaN(e) && (e = t.loaded / t.total), s.runWith(e);
  					}
  				});
  		}
  		RecordEvent(t, e) {
  			this._base.reportAnalytics(t, e);
  		}
  		ShowBannerAd() {
  			this._isBannerLoaded || this._CreateBannerAd();
  		}
  		HideBannerAd() {
  			this._isBannerLoaded && (this._isBannerLoaded = !1, this._bannerAd && this._bannerAd.destroy());
  		}
  	}
  	class $t extends Kt {
  		constructor() {
  			super(...arguments), this.platform = u.QTT;
  		}
  		Init(t) {
  			this._base = window.qttGame, null != this._base ? (this.platformData = t, window.iplatform = this) : console.error("平台初始化错误");
  		}
  		IsBannerAvaliable() {
  			return !0
  		}
  		ShowBannerAd() {
  			this._base.showBanner({
  				index: 1
  			});
  		}
  		HideBannerAd() {
  			this._base.hideBanner();
  		}
  		IsVideoAvaliable() {
  			return !0
  		}
  		ShowRewardVideoAd(t, e) {}
  		ShowInterstitalAd() {}
  		ShowHDReward() {
  			let t = {
  				index: 1,
  				rewardtype: 1
  			};
  			this._base.showHDReward(t);
  		}
  		RecordEvent(t, e) {
  			console.log("记录事件", t, e);
  		}
  	}
  	class te extends Kt {
  		constructor() {
  			super(...arguments), this.platform = u.QQ, this.isBannerShowing = !1;
  		}
  		Init(t) {
  			this._base = window.qq, null != this._base ? (this.platformData = t, this._InitLauchOption(), this._Login(), this._InitShareInfo(), this._InitSystemInfo(), this._CreateBannerAd(), this._CreateVideoAd(), this._CreateInterstitalAd(), window.iplatform = this, console.error("平台初始化完成", he.platformStr)) : console.error("平台初始化错误", he.platformStr);
  		}
  		_InitSystemInfo() {
  			try {
  				let t = this._base.getSystemInfoSync();
  				this._cacheScreenScale = t.screenWidth / Laya.stage.width, this.safeArea = {}, this.safeArea.width = t.windowWidth, this.safeArea.height = t.windowHeight, this.safeArea.top = t.statusBarHeight, this.safeArea.bottom = 0, console.log("QQ覆写_InitSystemInfo", this.safeArea);
  			} catch (t) {
  				console.error(t), console.error("获取设备信息失败,执行默认初始化"), this.safeArea = null;
  			}
  		}
  		_CreateBannerAd(t) {
  			if (j.IsNullOrEmpty(this.platformData.bannerId)) return void console.log("无有效的banner广告ID,取消加载");
  			let e = this._base.getSystemInfoSync()
  				.windowWidth,
  				i = this._base.getSystemInfoSync()
  				.windowHeight,
  				s = {};
  			s.adUnitId = this.platformData.bannerId;
  			let a = {};
  			a.top = i - 80, a.width = 300, a.left = (e - a.width) / 2, s.style = a, this._bannerAd = this._base.createBannerAd(s), this._isBannerLoaded = !1, this._bannerAd.onLoad(() => {
  				console.log("qq banner加载成功", this._bannerAd), this._isBannerLoaded = !0, t && this._bannerAd.show();
  			}), this._bannerAd.onError(t => {
  				console.error("banner广告加载失败", t);
  			}), this._bannerAd.onResize(t => {
  				console.log("onResize", t), this._bannerAd.style.top = i - 80, this._bannerAd.style.left = (e - 300) / 2, console.log("onResize", this._bannerAd);
  			});
  		}
  		IsBannerAvaliable() {
  			return this._isBannerLoaded
  		}
  		IsVideoAvaliable() {
  			return this._isVideoLoaded
  		}
  		IsInterstitalAvaliable() {
  			return this._isInterstitialLoaded
  		}
  		ShowBannerAd() {
  			this.IsBannerAvaliable() && (this._bannerAd.show(), this.isBannerShowing = !0, Laya.timer.loop(15e3, this, this.refreshBanner));
  		}
  		refreshBanner() {
  			this.isBannerShowing && (console.log("refresh banner"), this._bannerAd.hide(), this._CreateBannerAd(!0));
  		}
  		HideBannerAd() {
  			this.IsBannerAvaliable() && (this._bannerAd && (this._bannerAd.hide(), Laya.timer.clear(this, this.refreshBanner), this.isBannerShowing = !1), this._CreateBannerAd());
  		}
  		_DoCacheShowVideo(t, e) {
  			this._isVideoLoaded ? (this._rewardSuccessed = t, this._rewardSkipped = e, this._isVideoLoaded = !1, Laya.stage.event(H.PAUSE_AUDIO), this._rewardVideo.show()) : console.error("视频广告尚未加载好");
  		}
  		_DoNoCacheShowVideo(t, e) {
  			if (this._rewardSuccessed = t, this._rewardSkipped = e, !this._isVideoLoaded || !this._rewardVideo) {
  				if (j.IsNullOrEmpty(this.platformData.rewardVideoId)) return console.log("无有效的视频广告ID,取消加载"), void e.run();
  				let t = this._base.createRewardedVideoAd;
  				if (null == t) return console.error("无createRewardedVideoAd方法,跳过初始化"), void e.run();
  				Ht.ShowLoading("广告拉取中..."), this._videoFailedCount = 0;
  				let i = {};
  				i.adUnitId = this.platformData.rewardVideoId, this._rewardVideo = t(i), this._rewardVideo.onLoad(() => {
  					console.log("视频广告加载成功"), this._isVideoLoaded = !0;
  				}), this._rewardVideo.onError(t => {
  					this._videoFailedCount++, console.error("视频广告加载失败", t, this._videoFailedCount);
  				}), this._rewardVideo.onClose(t => {
  					Laya.stage.event(H.RESUM_AUDIO), console.log(" NoCache - 视频回调", t);
  					let e = t.isEnded;
  					console.log("noCache---", e, "----", !!this._rewardSuccessed, "-----", !!this._rewardSkipped), e ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run();
  				});
  			}
  			this._rewardVideo.show()
  				.then(() => {
  					Ht.HideLoading();
  				})
  				.catch(t => {
  					console.log("广告组件出现问题", t), this._rewardVideo.load()
  						.then(() => (console.log("手动加载成功"), this._rewardVideo.show()
  							.then(() => {
  								Ht.HideLoading();
  							})));
  				});
  		}
  		ShowRewardVideoAd(t, e) {
  			this._cacheVideoAD ? this._DoCacheShowVideo(t, e) : this._DoNoCacheShowVideo(t, e);
  		}
  		ShowRewardVideoAdAsync() {
  			return new Promise(function(t) {
  				he.instance.ShowRewardVideoAd(Laya.Handler.create(this, () => {
  					t(!0);
  				}, null, !0), Laya.Handler.create(this, () => {
  					t(!1);
  				}, null, !0));
  			})
  		}
  		ShowInterstitalAd() {}
  		OpenGameBox(t = []) {
  			this.showAppBox();
  		}
  		showAppBox() {
  			this.appBox && this.appBox.show();
  		}
  		createAppBox(t) {
  			this.appBox || (this.appBox = this._base.createAppBox({
  					adUnitId: "54b23210b2bf2e85c874beb4bae96003"
  				})), this.appBox.load()
  				.then(() => {
  					t && this.appBox.show();
  				}), this.appBox.onClose(() => {
  					console.log("关闭盒子");
  				});
  		}
  		hideAppBox() {
  			this.appBox && this.appBox.destroy();
  		}
  		showBlockAd(t = 1) {
  			let e = {
  				adUnitId: "2f0aa99d54d9aedb40bbca4c21065c03",
  				style: {
  					left: 55,
  					top: Laya.stage.height / 2
  				},
  				size: t,
  				orientation: "vertical"
  			};
  			this.blockAd = this._base.createBlockAd(e), this.blockAd.onLoad(() => {
  				console.log("积木广告加载完成"), this.blockAd.show()
  					.then(() => {
  						console.log("积木展示成功");
  					})
  					.catch(t => {
  						console.error("积木展示失败", t);
  					});
  			}), this.blockAd.onError(t => {
  				console.error("积木广告加载错误", t);
  			}), this.blockAd.onResize(t => {
  				console.log("积木resize", t);
  			});
  		}
  		hideBlockAd() {
  			this.blockAd && (this.blockAd.hide(), this.blockAd.destroy());
  		}
  	}
  	class ee extends W {
  		constructor() {
  			super(...arguments), this.supportRecord = !1;
  		}
  		ShareVideo(t, e, i) {
  			this.supportRecord ? (console.log("强制模拟成功"), t && t.run()) : (console.log("强制模拟失败"), i && i.run());
  		}
  	}
  	class ie {
  		constructor() {
  			this.platform = u.Web, this.safeArea = null, this.recordManager = new ee, this.device = new Wt, this.systemInfo = null, this.isSupportJumpOther = !0;
  		}
  		Init(t) {
  			this.loginState = {
  				isLogin: !1,
  				code: null
  			}, Laya.timer.once(500, this, this._FakeLoginEnd);
  		}
  		_FakeLoginEnd() {
  			this.onLoginEnd && this.onLoginEnd.run();
  		}
  		IsBannerAvaliable() {
  			return !1
  		}
  		IsVideoAvaliable() {
  			return !0
  		}
  		IsInterstitalAvaliable() {
  			return !1
  		}
  		ShowBannerAd() {
  			console.log("调用ShowBannerAd");
  		}
  		HideBannerAd() {
  			console.log("调用HideBannerAd");
  		}
  		ShowRewardVideoAd(t, e) {
  			console.log("调用ShowRewardVideoAd");
  		}
  		ShowRewardVideoAdAsync() {
  			return null
  		}
  		ShowInterstitalAd() {}
  		GetFromAppId() {
  			return null
  		}
  		ShareAppMessage(t, e = null, i = null) {}
  		LoadSubpackage(t, e, i) {
  			e && e.run();
  		}
  		RecordEvent(t, e) {
  			console.log("记录事件", t, e);
  		}
  		ShareVideoInfo() {
  			console.log(he.platformStr, "暂未实现录屏功能");
  		}
  		_CheckUpdate() {}
  		ShowToast(t) {}
  		OpenGameBox() {
  			console.error("当前平台", he.platformStr, "暂不支持互推游戏盒子");
  		}
  		NavigateToApp(t, e, i) {
  			return new Promise((e, i) => {
  				console.error("当前平台", he.platformStr, `暂不支持小程序跳转appid:${t}`), e(!1);
  			})
  		}
  		createShortcut() {
  			console.log("创建桌面图标");
  		}
  		GetStorage(t) {
  			return console.log("读本地存储"), Laya.LocalStorage.getItem(t)
  		}
  		SetStorage(t, e) {
  			console.log("写本地存储"), Laya.LocalStorage.setItem(t, e);
  		}
  	}
  	class se extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "ImageBanner")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_img_banner = this.getChildAt(1), this.m_img_icon = this.getChildAt(2), this.m_img_adnotice = this.getChildAt(3), this.m_btn_close = this.getChildAt(4);
  		}
  	}
  	se.URL = "ui://75kiu87kqdeh5t";
  	class ae extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new ae, this._instance._classDefine = se), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this._sortOrder = 500, this._fakeBannerData = this._openParam, this.ui.m_img_banner.url = this._fakeBannerData.imgPath, this.ui.m_img_adnotice.url = this._fakeBannerData.noticePath, this.ui.m_img_banner.onClick(this, this._OnClickBanner), this.ui.m_btn_close.onClick(this, this._OnClickClose), this._fakeBannerData.owner.reportAdShow({
  				adId: this._fakeBannerData.adId
  			});
  		}
  		_OnClickBanner() {
  			console.log("点击banner", this._fakeBannerData), this._fakeBannerData.owner.reportAdClick({
  				adId: this._fakeBannerData.adId
  			}), he.instance.ShowBannerAd();
  		}
  		_OnClickClose() {
  			console.log("点击关闭banner", this._fakeBannerData), this.Hide();
  		}
  	}
  	class ne {}
  	class oe extends Kt {
  		constructor() {
  			super(...arguments), this.platform = u.Oppo, this.safeArea = null, this.recordManager = new W, this.device = new Wt, this.isSupportJumpOther = !0, this._isBannerLoaded = !1, this._isVideoLoaded = !1, this._isInterstitialLoaded = !1, this._isInterstitialCanShow = !0, this._nativeAdLoaded = !1, this._cacheVideoAD = !1;
  		}
  		Init(t) {
  			this._base = window.qg, null != this._base ? (this.platformData = t, this._InitLauchOption(), this._Login(), this._InitSystemInfo(), this.getSystemInfo(), this.systemInfo.platformVersion >= 1051 || this._base.initAdService({
  				appId: t.appId,
  				isDebug: !0,
  				success: () => {
  					console.log("oppo广告", "初始化广告服务成功", t), this._CreateVideoAd();
  				},
  				fail: () => {
  					console.error("oppo广告", "初始化广告服务失败");
  				}
  			}), window.iplatform = this) : console.error("平台初始化错误", he.platformStr);
  		}
  		getSystemInfo() {
  			this._base.getSystemInfo({
  				success: t => {
  					this.systemInfo = t, console.log(this.systemInfo);
  				},
  				fail: () => {},
  				complete: () => {}
  			});
  		}
  		reportMonitor() {
  			console.log("oppo上报数据", this.systemInfo), this.systemInfo && this.systemInfo.platformVersion >= 1060 && this._base.reportMonitor("game_scene", 0);
  		}
  		_CheckUpdate() {}
  		_Login() {
  			this.loginState = {
  				isLogin: !1,
  				code: ""
  			};
  			let t = {};
  			t.success = (t => {
  				this._OnLoginSuccess(t);
  			}), t.fail = (t => {
  				console.error(he.platformStr, "登录失败", t), this.loginState.isLogin = !1, this.loginState.code = "";
  			}), t.complete = (t => {
  				null != this.onLoginEnd && this.onLoginEnd.run();
  			}), this._base.login(t);
  		}
  		_OnLoginSuccess(t) {
  			console.log(he.platformStr, "登录成功", t), this.loginState.isLogin = !0, this.loginState.code = t.token;
  		}
  		ShareAppMessage(t, e, i) {}
  		_InitLauchOption() {
  			this._base.onShow(this._OnShow), this._base.onHide(this._OnHide);
  			let t = this._base.getLaunchOptionsSync();
  			this._OnShow(t);
  		}
  		canCreateShortcut() {
  			return new Promise((t, e) => {
  				qg.hasShortcutInstalled({
  					success: function(e) {
  						t(e);
  					},
  					fail: function(t) {
  						e();
  					},
  					complete: function() {}
  				});
  			})
  		}
  		createShortcut() {
  			return new Promise((t, e) => {
  				qg.hasShortcutInstalled({
  					success: function(i) {
  						0 == i ? qg.installShortcut({
  							success: function() {
  								t();
  							},
  							fail: function(t) {
  								e();
  							},
  							complete: function() {}
  						}) : t();
  					},
  					fail: function(t) {
  						e();
  					},
  					complete: function() {}
  				});
  			})
  		}
  		_CreateInterstitalAd() {}
  		_CreateVideoAd() {
  			if (!this._cacheVideoAD) return void console.log("当前策略为不缓存视频广告");
  			let t = this._base.createRewardedVideoAd;
  			if (null == t) return void console.error("无createRewardedVideoAd方法,跳过初始化");
  			if (j.IsNullOrEmpty(this.platformData.rewardVideoId)) return void console.log("无有效的视频广告ID,取消加载");
  			this._videoFailedCount = 0;
  			let e = {};
  			e.adUnitId = this.platformData.rewardVideoId, this._rewardVideo = t(e), this._rewardVideo.onLoad(() => {
  				console.log("视频广告加载成功"), this._isVideoLoaded = !0;
  			}), this._rewardVideo.onError(t => {
  				this._videoFailedCount++, console.error("视频广告加载失败", t), this._videoFailedCount > 10 && (console.log("第", this._videoFailedCount, "次重新加载视频广告"), this._rewardVideo.load());
  			}), this._rewardVideo.onClose(t => {
  				Laya.stage.event(H.RESUM_AUDIO), console.log("视频回调", t);
  				let e = t.isEnded;
  				et.NextFrame()
  					.then(() => {
  						e ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run();
  					});
  			});
  		}
  		IsBannerAvaliable() {
  			return this._isBannerLoaded
  		}
  		IsVideoAvaliable() {
  			return this._isVideoLoaded
  		}
  		IsInterstitalAvaliable() {
  			return !1
  		}
  		IsNativeAvaliable() {
  			return this._nativeAdLoaded
  		}
  		ShowBannerAd() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (K.instance.checkState == p.InCheck) return void console.log("审核中");
  				if (j.IsNullOrEmpty(this.platformData.bannerId)) return void console.log("无有效的banner广告ID,取消加载");
  				if (this._bannerAd) return this._bannerAd.show(), void console.log("展示已有banner");
  				this.HideBannerAd(), this._bannerAd = this._base.createBannerAd({
  					adUnitId: this.platformData.bannerId
  				});
  				let t = !0,
  					e = !1;
  				for (this._bannerAd.show()
  					.then(i => {
  						console.log("banner加载成功", i), 0 == i.code && (e = !0), t = !1;
  					})
  					.catch(e => {
  						console.error("banner加载失败", e), t = !1;
  					}); t;) yield et.NextFrame();
  				if (!e) {
  					console.log("banner展示失败,展示native广告"), this._bannerAd && (this._bannerAd.destroy(), this._bannerAd = null);
  					for (let t = 0; t < this.platformData.nativeIconIds.length; ++t) {
  						if (yield this._ShowNativeBanner(t)) break;
  						this._bannerAd.destroy();
  					}
  				}
  			})
  		}
  		_ShowNativeBanner(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let e = this.base.createNativeAd({
  					adUnitId: this.platformData.nativeBannerIds[t]
  				});
  				this._bannerAd = e;
  				let i = yield e.load();
  				if (0 == i.code) {
  					let t = i.adList;
  					if (null == t || 0 == t.length) return console.error("native banner加载失败", i), !1;
  					let e = t[0];
  					if (null == e) return console.error("native banner加载失败", i), !1;
  					let s = new ne;
  					return s.imgPath = e.imgUrlList[0], s.noticePath = e.logoUrl, s.adId = e.adId, s.owner = this._bannerAd, s.iconPath = e.icon, ae.instance.Show(s), !0
  				}
  				return console.error("native banner加载失败", i), !1
  			})
  		}
  		HideBannerAd() {
  			this._bannerAd && (this._bannerAd.destroy(), this._bannerAd = null), ae.instance.Hide();
  		}
  		ShowNativeAd() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.IsNativeAvaliable();
  			})
  		}
  		HideNativeAd() {
  			this.IsNativeAvaliable();
  		}
  		_DoCacheShowVideo(t, e) {
  			this._isVideoLoaded ? (this._rewardSuccessed = t, this._rewardSkipped = e, this._isVideoLoaded = !1, Laya.stage.event(H.PAUSE_AUDIO), this._rewardVideo.show()) : console.error("视频广告尚未加载好");
  		}
  		_DoNoCacheShowVideo(t, e) {
  			if (this._rewardSuccessed = t, this._rewardSkipped = e, j.IsNullOrEmpty(this.platformData.rewardVideoId)) return console.log("无有效的视频广告ID,取消加载"), void(this._rewardSkipped && this._rewardSkipped.run());
  			let i = this._base.createRewardedVideoAd;
  			if (null == i) return console.error("无createRewardedVideoAd方法,跳过初始化"), void(this._rewardSkipped && this._rewardSkipped.run());
  			this._rewardVideo && this._rewardVideo.destroy(), Ht.ShowLoading("广告拉取中...");
  			let s = {};
  			s.adUnitId = this.platformData.rewardVideoId, this._rewardVideo = i(s), console.log("广告创建完成", s), this._rewardVideo.onClose(t => {
  					Laya.stage.event(H.RESUM_AUDIO), console.log("视频回调", t);
  					let e = t.isEnded;
  					et.NextFrame()
  						.then(() => {
  							e ? this._rewardSuccessed && this._rewardSuccessed.run() : this._rewardSkipped && this._rewardSkipped.run();
  						});
  				}), this._rewardVideo.onError(t => {
  					console.log("广告组件出现问题", t), Ht.HideLoading(), this._rewardSkipped && this._rewardSkipped.run();
  				}), this._rewardVideo.onLoad(t => {
  					console.log("广告加载成功", t), Ht.HideLoading();
  				}), this._rewardVideo.load()
  				.then(() => {
  					this._rewardVideo.show();
  				});
  		}
  		ShowRewardVideoAd(t, e) {}
  		ShowRewardVideoAdAsync() {
  			return new Promise(function(t) {
  				he.instance.ShowRewardVideoAd(Laya.Handler.create(this, () => {
  					t(!0);
  				}), Laya.Handler.create(this, () => {
  					t(!1);
  				}));
  			})
  		}
  		_DisableInterstitalAd() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this._isInterstitialCanShow = !1, yield et.Seconds(60), this._isInterstitialCanShow = !0;
  			})
  		}
  		GetFromAppId() {
  			return null == this.lauchOption.referrerInfo ? null : j.IsNullOrEmpty(this.lauchOption.referrerInfo.appId) ? null : this.lauchOption.referrerInfo.appId
  		}
  		CreatShortcut() {
  			return new Promise((t, e) => {
  				qg.hasShortcutInstalled({
  					success: function(i) {
  						0 == i ? qg.installShortcut({
  							success: function() {
  								t();
  							},
  							fail: function(t) {
  								e();
  							},
  							complete: function() {}
  						}) : t();
  					},
  					fail: function(t) {
  						e();
  					},
  					complete: function() {}
  				});
  			})
  		}
  		LoadSubpackage(t, e, i, s) {
  			let a = {};
  			a.name = t, a.success = (() => {
  					console.log("分包加载成功", t), e && e.run();
  				}), a.fail = (() => {
  					console.error("分包加载失败", t), i && i.run();
  				}), this._base.loadSubpackage(a)
  				.onProgressUpdate(t => {
  					console.log("分包加载进度", t), s && s.runWith(t.progress / 100);
  				});
  		}
  		RecordEvent(t, e) {
  			console.log("[记录事件]", t, e);
  		}
  		CreateShareVideoBtn(t, e, i, s) {}
  		HideShareVideoBtn() {
  			null != this._shareVideoBtn && this._shareVideoBtn.hide();
  		}
  		ShowToast(t) {}
  		OpenGameBox(t) {
  			console.error("当前平台", he.platformStr, "暂不支持互推游戏盒子");
  		}
  		NavigateToApp(t, e, i) {
  			return new Promise((s, a) => {
  				Laya.Browser.window.qg.navigateToMiniGame({
  					pkgName: t,
  					path: e,
  					extraData: i,
  					success: function() {
  						s(!0), console.log("oppo小游戏跳转成功");
  					},
  					fail: function(t) {
  						a(!1), console.log("oppo小游戏跳转失败：", JSON.stringify(t));
  					}
  				});
  			})
  		}
  	}
  	class re {
  		static CreateInstance() {
  			let t, e = null != window.qttGame;
  			return null != window.tt ? t = new Jt : Laya.Browser.onMiniGame ? t = new Kt : Laya.Browser.onBDMiniGame ? t = new Zt : e ? t = new $t : Laya.Browser.onQQMiniGame ? t = new te : Laya.Browser.onQGMiniGame ? t = new oe : (console.log("未识别平台,默认创建为web", Laya.Browser.userAgent), t = new ie), t
  		}
  	}
  	class he {
  		static get instance() {
  			return null == this._instance && console.error("对象尚未初始化,请先调用CreateInstance进行初始化"), this._instance
  		}
  		static CreateInstance(t = null) {
  			return null != this._instance ? (console.error("已调用过平台创建为", he.GetPlatformStr(this._instance.platform), "不能重复创建"), this._instance) : (this._instance = re.CreateInstance(), this._instance.appId = t, console.log("平台实例创建完成", he.GetPlatformStr(this._instance.platform)), window.LTPlatform = this._instance, this._instance)
  		}
  		static get platformStr() {
  			return he.GetPlatformStr(this._instance.platform)
  		}
  		static GetPlatformStr(t) {
  			switch (t) {
  				case u.BD:
  					return "百度";
  				case u.None:
  					return "未识别";
  				case u.Oppo:
  					return "Oppo";
  				case u.QQ:
  					return "QQ";
  				case u.TT:
  					return "头条";
  				case u.Vivo:
  					return "Vivo";
  				case u.Web:
  					return "网页";
  				case u.WX:
  					return "微信";
  				case u.QTT:
  					return "趣头条";
  				default:
  					return "未定义" + t
  			}
  		}
  	}
  	class le {
  		static get deltaTime() {
  			return this._recordFrame != Laya.timer.currFrame && (this._deltaTime = Math.min(Laya.timer.delta, 100), this._deltaTimeSec = .001 * this._deltaTime, this._recordFrame = Laya.timer.currFrame), this._deltaTime * this.timeScale
  		}
  		static get deltaTimeSec() {
  			return this._recordFrame != Laya.timer.currFrame && (this._deltaTime = Math.min(Laya.timer.delta, 100), this._deltaTimeSec = .001 * this._deltaTime, this._recordFrame = Laya.timer.currFrame), this._deltaTimeSec * this.timeScale
  		}
  		static CachFile(t) {
  			if (Laya.Browser.onWeiXin) {
  				var e = Laya.URL.formatURL(t);
  				null == Laya.MiniAdpter.getFileInfo(e) && Laya.MiniAdpter.downLoadFile(e);
  			}
  		}
  		static translate(t, e) {
  			let i = new Laya.Vector3;
  			return Laya.Matrix4x4.createFromQuaternion(t.rotation, Laya.Transform3D._tempMatrix0), Laya.Vector3.transformCoordinate(e, Laya.Transform3D._tempMatrix0, Laya.Transform3D._tempVector30), Laya.Vector3.add(t.position, Laya.Transform3D._tempVector30, i), i
  		}
  		static InverseTransformPoint(t, e) {
  			let i = new Laya.Matrix4x4;
  			t.worldMatrix.invert(i);
  			let s = new Laya.Vector3;
  			return Laya.Vector3.transformCoordinate(e, i, s), s
  		}
  		static GetPointFrom3DWorld(t, e, i) {
  			let s = new Laya.Vector4;
  			return t.worldToViewportPoint(e, s), null != i ? i.globalToLocal(s.x, s.y) : new Laya.Point(s.x, s.y)
  		}
  		static DownLoadFiles(t, e, i) {
  			Laya.loader.create(t, e, i, null, null, null, 1, !0);
  		}
  		static SetShadow(t, e, i) {
  			let s = t.meshRenderer;
  			null != s && (s.castShadow = e, s.receiveShadow = i);
  			let a = t.skinnedMeshRenderer;
  			null != a && (a.castShadow = e, a.receiveShadow = i);
  			let n = t;
  			for (let t = 0; t < n.numChildren; ++t) {
  				let s = n.getChildAt(t);
  				this.SetShadow(s, e, i);
  			}
  		}
  		static GetComponentsInChildren(t, e) {
  			let i = [];
  			return this._GetComponentsInChildrenHelper(t, e, i), i
  		}
  		static _GetComponentsInChildrenHelper(t, e, i) {
  			let s = t.getComponents(e);
  			if (null != s)
  				for (let t = 0; t < s.length; ++t) i.push(s[t]);
  			for (let s = 0; s < t.numChildren; ++s) {
  				let a = t.getChildAt(s);
  				this._GetComponentsInChildrenHelper(a, e, i);
  			}
  		}
  		static EnableShadow(t, e) {
  			t.shadowMode = Laya.ShadowMode.Hard, t.shadowDistance = e, t.shadowResolution = 512, t.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascades;
  		}
  		static findChild(t, e, i = !0) {
  			return i && t.name == e ? t : le._findChild(t._children, e)
  		}
  		static _findChild(t, e) {
  			if (!t) return null;
  			let i = [];
  			for (var s = 0; s < t.length; s++) {
  				var a = t[s];
  				if (a.name == e) return a;
  				a.numChildren && (i = i.concat(a._children));
  			}
  			return i.length ? le._findChild(i, e) : null
  		}
  		static GetCoinStr(t) {
  			if (null == this._strMap) {
  				this._strMap = ["", "K", "M", "B", "T", "Q"];
  				for (let t = 0; t < 500; ++t) {
  					let e = String.fromCharCode(Math.floor(t / 24) + 97),
  						i = String.fromCharCode(Math.floor(t % 24) + 97);
  					this._strMap.push(e + i);
  				}
  			}
  			let e = 0;
  			for (; t > 1e3;) t /= 1e3, e++;
  			return e >= this._strMap.length ? (console.error("单位表越界"), t.toFixed(1) + "aa") : e <= 0 ? t.toFixed(0) : t.toFixed(1) + this._strMap[e]
  		}
  		static GetCoinStr1(t) {
  			if (null == this._strMap) {
  				this._strMap = ["", "K", "M", "B", "T", "Q"];
  				for (let t = 0; t < 500; ++t) {
  					let e = String.fromCharCode(Math.floor(t / 24) + 97),
  						i = String.fromCharCode(Math.floor(t % 24) + 97);
  					this._strMap.push(e + i);
  				}
  			}
  			let e = 0;
  			for (; t > 1e3;) t /= 1e3, e++;
  			return e >= this._strMap.length ? (console.error("单位表越界"), t.toFixed(1) + "aa") : e <= 0 ? t.toFixed(0) : t.toFixed(0) + this._strMap[e]
  		}
  		static makeTimeLeftString(t, e = "：", i = !1) {
  			var s, a = "";
  			if (t <= 0) return a += "00:00";
  			if (t > le.ONE_YEAR) return a = "大于一年";
  			if (i) {
  				var n;
  				if (t > le.ONE_DAY) a = (n = Math.floor(t / le.ONE_DAY)) + "天";
  				else if (t >= 3600) a = (s = Math.floor(t / 3600)) + "时";
  				else {
  					var o, r;
  					(o = Math.floor(t / 60)) < 10 && (a += "0"), a += o.toString() + e, (r = t % 60) < 10 && (a += "0"), a += r.toString();
  				}
  				return a
  			}
  			if (t > le.ONE_DAY && (a = (n = Math.floor(t / le.ONE_DAY)) + "天", t -= n * le.ONE_DAY, i)) return (s = Math.floor(t / 3600)) > 0 && (a += s + "时"), a;
  			return t <= 0 ? a += "00:00" : (a = "", (s = Math.floor(t / 3600)) > 0 && (a += s < 10 ? "0" + s.toString() + e : s.toString() + e), (o = Math.floor((t - 3600 * s) / 60)) > 0 || s > 0 ? (o < 10 && (a += "0"), a += o.toString() + e) : a += "00" + e, (r = t % 60) < 10 && (a += "0"), a += r.toString())
  		}
  		static SwitchParent(t, e) {
  			if (t && e) {
  				let i = t.transform.getWorldLossyScale()
  					.clone(),
  					s = t.transform.position.clone(),
  					a = t.transform.rotationEuler.clone();
  				e.addChild(t), t.transform.setWorldLossyScale(i), t.transform.position = s, t.transform.rotationEuler = a;
  			}
  		}
  		static SwitchParentLocal(t, e) {
  			if (t && e) {
  				let i = t.transform.localScale.clone(),
  					s = t.transform.localPosition.clone(),
  					a = t.transform.localRotationEuler.clone();
  				e.addChild(t), t.transform.localScale = i, t.transform.localPosition = s, t.transform.localRotationEuler = a;
  			}
  		}
  		static GetCurrentDayCount(t) {
  			return Math.floor(t / 1e3 / 60 / 60 / 24)
  		}
  		static SetLayer(t, e) {
  			t.layer = e;
  			for (let i = 0; i < t.numChildren; ++i) {
  				let s = t.getChildAt(i);
  				this.SetLayer(s, e);
  			}
  		}
  		static Vibrate(t = !0) {
  			de.instance.isShakeOn && he.instance.device.Vibrate(t);
  		}
  		static GetCross(t, e, i) {
  			return (e.x - t.x) * (i.z - t.z) - (i.x - t.x) * (e.z - t.z)
  		}
  		static IsPointInMatrix(t, e, i, s, a) {
  			return this.GetCross(t, e, a) * this.GetCross(i, s, a) >= 0 && this.GetCross(e, i, a) * this.GetCross(s, t, a) >= 0
  		}
  		static PosToPosRoate(t, e, i) {
  			let s = (t.x - e.x) * Math.cos(i) - (t.z - e.z) * Math.sin(i) + e.x,
  				a = (t.x - e.x) * Math.sin(i) + (t.z - e.z) * Math.cos(i) + e.z;
  			return new Laya.Vector3(s, t.y, a)
  		}
  		static copyFguiCom(t) {
  			let i = e.UIPackage.createObjectFromURL(t.resourceURL);
  			return t._children.forEach((t, e) => {
  				t instanceof fgui.GLoader ? i.getChildAt(e)
  					.url = t.url : t instanceof fgui.GTextInput && (i.getChildAt(e)
  						.text = t.text);
  			}), i
  		}
  		static splitNode(t, e) {
  			let i = t.indexOf(e);
  			i >= 0 && t.splice(i, 1);
  		}
  	}
  	le.timeScale = 1, le._recordFrame = 0, le._deltaTime = 30, le._deltaTimeSec = .016, le.ONE_YEAR = 31536e3, le.ONE_DAY = 86400;
  	class ce {
  		constructor() {
  			this.lastOpenTick = 0, this.isNewDay = !0, this.isSigned = !1, this.signDayCount = 0, this.isMusicOn = !0, this.isSoundOn = !0, this.isShakeOn = !0, this.interstitialCount = 0, this.trySignMissMode = 0, this.checkFlag = !0, this.endRewardMissMode = 0, this.freeRollCount = 1, this.EggPassIds = [], this.EggSecretIds = [], this.EggPasswordIds = [], this.levelId = 1;
  		}
  	}
  	class de {
  		constructor() {
  			this._savePath = "ltg-common-save.sav";
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new de, this._instance._ReadFromFile(), this._instance._InitData()), this._instance._saveData
  		}
  		static SaveToDisk() {
  			if (!this._instance) return;
  			let t = JSON.stringify(this._instance._saveData);
  			Laya.LocalStorage.setJSON(this._instance._savePath, t);
  		}
  		_InitData() {
  			if (this._saveData.isNewDay = !1, 0 == this._saveData.lastOpenTick) this._saveData.isNewDay = !0;
  			else {
  				let t = le.GetCurrentDayCount(this._saveData.lastOpenTick);
  				le.GetCurrentDayCount(Date.now()) != t && (this._saveData.isNewDay = !0, this._saveData.interstitialCount = 0);
  			}
  			this._saveData.lastOpenTick = Date.now(), this._saveData.isNewDay && (this._saveData.isSigned = !1, this._saveData.freeRollCount = 1), de.SaveToDisk();
  		}
  		_ReadFromFile() {
  			let t = Laya.LocalStorage.getJSON(this._savePath);
  			if (this._saveData = new ce, !j.IsNullOrEmpty(t)) {
  				let e = JSON.parse(t);
  				for (let t in e) this._saveData[t] = e[t];
  			}
  			console.log("common savedata:", this._saveData);
  		}
  	}! function(t) {
  		t.CoinChange = "coinChange", t.GameWin = "gameWin", t.GameFail = "gameFail", t.HpChange = "HpChange", t.ClearHPBar = "ClearHPBar", t.DeerAttacked = "DeerAttacked", t.DeerDead = "DeerDead", t.DeerStopDance = "DearStopDance", t.TaskChange = "TaskChange", t.TaskFinish = "TaskFinish", t.TaskFail = "TaskFail", t.CanDropWeapon = "CanDropWeapon", t.NoDropWeapon = "NoDropWeapon", t.CanHandLife = "CanHandLife", t.NoHandLife = "NoHandLife", t.CanCarDrive = "CanCarDrive", t.NoCarDrive = "NoCarDrive", t.CanHorse = "CanHorse", t.NoCanHorse = "NoCanHorse", t.CanMecha = "CanMecha", t.NoCanMecha = "NoCanMecha", t.CanFlyCattle = "CanFlyCattle", t.NoCanFlyCattle = "NoCanFlyCattle", t.CattleArrive = "CattleArrive", t.CanContralP = "CanContralP", t.NoContralP = "noContralP", t.RiskLvAdd = "RiskLvAdd", t.RiskIntegralChange = "RiskIntegralChange", t.PolicesOver = "PolicesOver", t.longNeck = "longNeck", t.disWeapon = "disWeapon", t.viewPolice = "viewPolice", t.startViewPolice = "startViewPolice", t.endViewPolice = "endViewPolice", t.bossStartAtt = "bossStartAtt", t.bossHpChange = "bossHpChange", t.bossEndAtt = "bossEndAtt", t.attackStateChange = "attackStateChange", t.skipBornAni = "skipBornAni", t.BuildDestroy = "BuildDestory";
  	}(f || (f = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/LevelConfig.json";
  	}(y || (y = {})),
  	function(t) {
  		t.Deer = "deer", t.Tree = "tree", t.plane = "plane", t.allCarRoad = "allCarRoad", t.MonsterRoad = "monsterRoad", t.PoliceBorn = "policeBorn", t.SL_baozha = "SL_baozha", t.yuncai = "yuncai", t.mechaTriggerDeer = "Building_58", t.mechaTriggerCattle = "Building_57";
  	}(C || (C = {}));
  	class ue {}
  	ue.Deer = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER1, ue.Ray = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER2, ue.Monster = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER3, ue.Plane = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER4, ue.Build = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER5, ue.Car = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER6, ue.Weapon = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER7, ue.People = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER8, ue.Mecha = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER9;
  	class _e {
  		static getInst() {
  			return this.instance || (this.instance = new this), this.instance
  		}
  	}
  	class me extends _e {}! function(t) {
  		t.TRIGGER_START = "TRIGGER_START", t.TRIGGER_STAY = "TRIGGER_STAY", t.TRIGGER_EXIT = "TRIGGER_EXIT", t.COLLIDE_START = "COLLIDE_START", t.COLLIDE_STAY = "COLLIDE_STAY", t.COLLIDE_EXIT = "COLLIDE_EXIT";
  	}(w || (w = {}));
  	class pe extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.eventer = new Laya.EventDispatcher;
  		}
  		onTriggerEnter(t) {
  			this.eventer.event(w.TRIGGER_START, t);
  		}
  		onTriggerStay(t) {
  			this.eventer.event(w.TRIGGER_STAY, t);
  		}
  		onTriggerExit(t) {
  			this.eventer.event(w.TRIGGER_EXIT, t);
  		}
  		onCollisionEnter(t) {
  			this.eventer.event(w.COLLIDE_START, t);
  		}
  		onCollisionStay(t) {
  			this.eventer.event(w.COLLIDE_STAY, t);
  		}
  		onCollisionExit(t) {
  			this.eventer.event(w.COLLIDE_EXIT, t);
  		}
  	}
  	class ge {
  		initDisplay(t) {
  			this.displayObject = t, this.displayObject.active = !0, this._model = this.getModel() || this.displayObject, this.trigger = this.getTrigger(), this.onEvent();
  		}
  		getModel() {
  			return this.displayObject.getChildAt(0)
  		}
  		getTrigger() {
  			return [this._model.addComponent(pe)]
  		}
  		onEvent() {
  			this.trigger && this.trigger.forEach(t => {
  				t && (t.eventer.on(w.TRIGGER_START, this, this.onTriggerEnter, [t]), t.eventer.on(w.TRIGGER_STAY, this, this.onTriggerStay, [t]), t.eventer.on(w.TRIGGER_EXIT, this, this.onTriggerExit, [t]), t.eventer.on(w.COLLIDE_START, this, this.onCollisionEnter, [t]), t.eventer.on(w.COLLIDE_STAY, this, this.onCollisionStay, [t]), t.eventer.on(w.COLLIDE_EXIT, this, this.onCollisionExit, [t]));
  			});
  		}
  		offEvent() {
  			this.trigger && this.trigger.forEach(t => {
  				t && (t.eventer.off(w.TRIGGER_START, this, this.onTriggerEnter), t.eventer.off(w.TRIGGER_STAY, this, this.onTriggerStay), t.eventer.off(w.TRIGGER_EXIT, this, this.onTriggerExit), t.eventer.off(w.COLLIDE_START, this, this.onCollisionEnter), t.eventer.off(w.COLLIDE_STAY, this, this.onCollisionStay), t.eventer.off(w.COLLIDE_EXIT, this, this.onCollisionExit));
  			});
  		}
  		onTriggerEnter(t, e) {}
  		onTriggerExit(t, e) {}
  		onTriggerStay(t, e) {}
  		onCollisionEnter(t, e) {}
  		onCollisionStay(t, e) {}
  		onCollisionExit(t, e) {}
  		clearTrigger() {
  			this.trigger && (this.trigger.forEach(t => {
  				t.destroy();
  			}), this.trigger = null);
  		}
  		dispose(t = !0) {
  			this.offEvent(), this.clearTrigger(), this.displayObject && t && (this.displayObject.destroy(), this.displayObject = null), Laya.timer.clearAll(this);
  		}
  	}
  	class fe {}
  	fe.collisionName = "collisions", fe.deerName = "deerName", fe.weaponPoint = "weaponPoint", fe.weaponAttPoint = "weaponAttPoint", fe.cameraControl = "Control", fe.cameraNode = "camera", fe.muzzle = "muzzle", fe.fist = "fist", fe.fTyre = "FTyres", fe.bTyre = "BTyres", fe.deerJiao = "jiao", fe.hand = "hand", fe.taiheng = "taiheng", fe.weiqi = "weiqi", fe.cases = "cases", fe.cars = "cars", fe.boomEff = "boomEff", fe.collsionSelf = "collsionSelf", fe.bsRunEf = "bsRunEf", fe.ptRunEf = "ptRunEf", fe.carBoom = "carBoom", fe.buildBoom = "buildBoom", fe.bulletEf = "bulletEf", fe.gunEf = "gunEf", fe.ptAttEf = "ptAttEf", fe.bsAttEf1 = "bsAttEf1", fe.bsAttEf2 = "bsAttEf2", fe.speedLineEf = "shuduxian", fe.swardAttEf = "swardAttEf", fe.swardAttTrail = "swardAttTrail", fe.leftFfoot = "Bip001 L Finger0Nub", fe.leftBfoot = "Bip001 L Toe0Nub", fe.rightFfoot = "Bip001 R Finger0Nub", fe.rightBfoot = "Bip001 R Toe0Nub", fe.sheep = "sheep", fe.ray = "ray", fe.laser = "laser", fe.laser1 = "laser1", fe.laser2 = "laser2", fe.jiguang = "jiguang", fe.weaponEff = "weaponEff", fe.guangyunEff = "guangyun", fe.blockRoads = "blockRoads", fe.buildBound = "Bound", fe.swim = "swim", fe.zdke = "zdke", fe.qHuo = "qy", fe.center = "center", fe.doorLeft = "doorLeft", fe.doorRight = "doorRight", fe.upPlane = "upPlane", fe.baton = "baton", fe.attEff = "attEff", fe.attedPos = "attedPos", fe.rabbit = "rabbit", fe.Antlers = "Antlers", fe.mount = "mount", fe.leftPedal = "leftPedal", fe.rightPedal = "rightPedal", fe.carWaterBloom = "shuihua",
  		function(t) {
  			t[t.friendly = 0] = "friendly", t[t.enemy = 1] = "enemy";
  		}(L || (L = {})),
  		function(t) {
  			t.config = class {}, t.path = "res/config/EffectConfig.json";
  		}(b || (b = {}));
  	class ye {
  		static FixPath(t) {
  			return E.prefab_url(t)
  		}
  		static lvIconPath(t) {
  			return "res/icon/levelIcon/" + t + ".png"
  		}
  		static prefabPath(t) {
  			return E.prefab_url(t)
  		}
  	}
  	class Ce {
  		constructor() {
  			this._Init();
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Ce), this._instance
  		}
  		_Init() {
  			this._effectRoot = new Laya.Sprite3D("EffectManager"), Oa.s3d.addChild(this._effectRoot), this._effectMap = new z, this._continueEffects = [];
  		}
  		Preload(t) {
  			for (let e = 0; e < b.dataList.length; ++e) {
  				let i = b.dataList[e];
  				if (i.need_preload) {
  					let e = ye.FixPath(i.model_path);
  					t.push(e);
  				}
  			}
  		}
  		WarmEffects() {
  			return __awaiter(this, void 0, void 0, function*() {
  				let t = [];
  				for (let e = 0; e < b.dataList.length; ++e) {
  					let i = b.dataList[e];
  					if (i.need_preload) {
  						let e = ye.FixPath(i.model_path),
  							s = R.Get(e, !0);
  						if (null == s) {
  							console.log("特效", i, "不存在");
  							continue
  						}
  						let a = this._effectRoot.addChild(s);
  						t.push(a), this._effectMap.set(i.id, a);
  					}
  				}
  				yield et.NextFrame();
  				for (let e of t) e.removeSelf();
  			})
  		}
  		StopEffectByIndex(t) {
  			if (null == t) return;
  			if (t < 0) return;
  			if (t >= this._continueEffects.length) return;
  			this._continueEffects[t].destroy(), r.RemoveAt(this._continueEffects, t);
  		}
  		GetEffectObjById(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let e = b.data[t];
  				if (null == e) return console.error("无效的特效id", t), null;
  				let i = this._effectMap.get(t);
  				if (null == i) {
  					let t = ye.FixPath(e.model_path);
  					yield R.LoadAsync(t), i = R.Get(t), this._effectMap.set(e.id, i);
  				}
  				return i.clone()
  			})
  		}
  		PlayEffectByData(t, e = null) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let i = yield this.GetEffectObjById(t.effectId);
  				if (null != e && null != i.getChildAt(0)) {
  					let t = i.getChildAt(0)
  						.particleSystem;
  					null != t && (t.startRotationConstant = -e.y);
  				}
  				return null != t.parent ? t.parent.addChild(i) : this._effectRoot.addChild(i), null != t.setPos && (i.transform.position = t.setPos.clone()), null != t.setRot && (i.transform.rotation = t.setRot.clone()), null != t.setScale && i.transform.setWorldLossyScale(t.setScale), t.continueTime ? (yield et.Seconds(t.continueTime), i.destroy(), -1) : (this._continueEffects.push(i), this._continueEffects.length - 1)
  			})
  		}
  		PlayEffectById(t, e = 2, i = null, s = null, a = null) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let n = new we(t);
  				return n.continueTime = e, n.setPos = i, n.setRot = s, this.PlayEffectByData(n, a)
  			})
  		}
  	}
  	class we {
  		constructor(t) {
  			this.continueTime = 2, this.setPos = null, this.setRot = null, this.setScale = null, this.parent = null, this.effectId = t;
  		}
  	}! function(t) {
  		t.none = "none", t.idle = "idle", t.idleAtt = "idleAtt", t.walkAtt = "moveAtt", t.runAtt = "runAtt", t.att = "att", t.atted = "atted", t.dying = "dying", t.run = "run", t.runL = "runL", t.runR = "runR", t.jump = "jump", t.neck = "neck", t.die = "die", t.walk = "walk", t.walkL = "walkL", t.walkR = "walkR", t.walkBack = "back", t.bs = "bs", t.bsIdle = "bsIdle", t.riding = "riding", t.flight = "flight", t.down = "down", t.attPuase = "attPuase", t.reAtt = "reAtt";
  	}(S || (S = {}));
  	class Le extends ge {
  		constructor(t) {
  			super(), this.faction = L.enemy, this.lastHp = 0, this._hp = 0, this._hpLimit = 100, this._dff = 0, this._dieIntegral = 0, this._canBurstOut = !1, this.initDisplay(t);
  		}
  		initHp(t) {
  			this._hpLimit = t, this._hp = t, this.lastHp = t;
  		}
  		get hp() {
  			return this._hp
  		}
  		get hpLimit() {
  			return this._hpLimit
  		}
  		initDisplay(t) {
  			super.initDisplay(t), this.onlyId = t.id, this._weaponPoint = le.findChild(this.displayObject, fe.weaponPoint), this.lifeState = S.none;
  		}
  		setMotion(t, e = !1) {
  			if (!e) {
  				if (this.lifeState == t) return;
  				if (this.lifeState == S.att || this.lifeState == S.dying || this.lifeState == S.die || this.lifeState == S.jump || this.lifeState == S.atted || this.lifeState == S.riding || this.lifeState == S.bs) return !1
  			}
  			return this.lastLifeState = this.lifeState, this.lifeState = t, this.stateChange(), !0
  		}
  		setInitWeapon(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this._initWeapon = t, this.initWeapon = yield this.getWeapon(t);
  			})
  		}
  		getWeapon(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (t) {
  					let e = Pa.instance.getWeaponByType(t.type),
  						i = t.weaponPrefabName;
  					if (this._weaponPoint && i) {
  						yield R.LoadAsync(E.prefab_url(i));
  						let s = R.Get(E.prefab_url(i));
  						s.active = !0, this._weaponPoint.addChild(s), e.initWeapon(t, s, this.faction);
  					} else if (t.weaponNode) {
  						let i = le.findChild(this.displayObject, t.weaponNode);
  						e.initWeapon(t, i, this.faction);
  					}
  					return e
  				}
  				return null
  			})
  		}
  		startAtt() {}
  		stateChange() {
  			this.lifeState == S.atted && (this.lifeState = S.idle);
  		}
  		attedPos() {
  			return this.displayObject.transform.position
  		}
  		aimTarget(t) {}
  		rotateY() {
  			return this.displayObject.transform.rotationEuler.y
  		}
  		setCanBurstOut() {
  			this._canBurstOut = !0;
  		}
  		getTrigger() {
  			let t = c.getPhysicComponent(this._model);
  			if (t) return t.collisionGroup = this._collisionGroup, t[fe.collsionSelf] = this, this._canCollideWith && (t.canCollideWith = this._canCollideWith), [this._model.addComponent(pe)]; {
  				let t = this.displayObject.getChildByName(fe.collisionName);
  				if (t) {
  					let e = [];
  					return t._children.forEach(t => {
  						let i = c.getPhysicComponent(t);
  						i && (i.collisionGroup = this._collisionGroup, i[fe.collsionSelf] = this, this._canCollideWith && (i.canCollideWith = this._canCollideWith), e.push(t.addComponent(pe)));
  					}), e
  				}
  			}
  		}
  		atted(t, e) {
  			if (t <= this._dff || this.isDie()) return;
  			this._atterPos = e;
  			let i, s = t - this._dff;
  			return this.addHp(-s, e, t), null != this.displayObject && (i = this.displayObject.name.substr(0, 5), this.isDie() || "Horse" == i || "Zebra" == i || "Mecha" == i || this.setMotion(S.atted, !0)), Ce.instance.PlayEffectById(this.getAttackedEffID(), .5, null == e ? this.displayObject.transform.position : e), this._hp
  		}
  		getAttackedEffID() {
  			switch (Math.round(3 * Math.random())) {
  				case 0:
  					return 8;
  				case 1:
  					return 9;
  				case 2:
  					return 10;
  				case 3:
  					return 11;
  				default:
  					return 9
  			}
  		}
  		flyed(t) {}
  		addHp(t, e, i) {
  			this.isDie() || (this.lastHp = this._hp, this._hp += t, this._hp > this._hpLimit && (this._hp = this._hpLimit), this._hp <= 0 && (this._hp = 0), this.attPos = e, 0 == this._hp ? (this.die(), o.instance.event3d(f.ClearHPBar, this)) : o.instance.event3d(f.HpChange, [this, i]));
  		}
  		pos() {
  			return this.displayObject.transform.position
  		}
  		beforePos() {
  			return null
  		}
  		canCatched() {
  			return !this.isDie()
  		} catch (t) {
  			le.SwitchParent(this.displayObject, t), this.displayObject.transform.localPosition = new Laya.Vector3;
  		}
  		putDowned() {
  			le.SwitchParent(this.displayObject, Pa.instance.scene.scene);
  		}
  		isDie() {
  			return this.lifeState == S.die
  		}
  		die() {
  			Laya.Tween.clearAll(this.displayObject.transform), this.setMotion(S.die, !0);
  		}
  		dispose(t = !0) {
  			super.dispose(t);
  		}
  		breakFly() {}
  	}
  	class be {
  		constructor() {
  			o.instance.onUI(i.OpenDrive, this, this.OpenDrive);
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new be), this._instance
  		}
  		setCanCattle(t) {
  			this.cattle || t && t.lifeState == S.idle || (!this.canCattle && t && o.instance.event3d(f.CanFlyCattle), this.canCattle && !t && o.instance.event3d(f.NoCanFlyCattle), this.canCattle = t);
  		}
  		setCanHorse(t) {
  			this.horse || (!this.canHorse && t && o.instance.event3d(f.CanHorse), this.canHorse && !t && o.instance.event3d(f.NoCanHorse), this.canHorse = t);
  		}
  		setCanDriveCar(t) {
  			this.driveCar || (!this.canDriveCar && t && o.instance.event3d(f.CanCarDrive), this.canDriveCar && !t && o.instance.event3d(f.NoCarDrive), this.canDriveCar = t);
  		}
  		setCanMecha(t) {
  			this.mecha || (!this.canMecha && t && o.instance.event3d(f.CanMecha), this.canMecha && !t && o.instance.event3d(f.NoCanMecha), this.canMecha = t);
  		}
  		reset() {
  			this.driveCar = null, this.canDriveCar = null;
  		}
  		_carBack(t) {
  			this.horse ? this.horse.back(t) : this.driveCar ? this.driveCar.back(t) : this.mecha && this.mecha.back(t);
  		}
  		_carFoward(t) {
  			this.horse ? this.horse.forward(t) : this.driveCar ? this.driveCar.forward(t) : this.mecha && this.mecha.forward(t);
  		}
  		_carLeft(t) {
  			this.horse ? this.horse.left(t) : this.driveCar ? this.driveCar.left(t) : this.mecha && this.mecha.left(t);
  		}
  		_carRight(t) {
  			this.horse ? this.horse.right(t) : this.driveCar ? this.driveCar.right(t) : this.mecha && this.mecha.right(t);
  		}
  		_mountDrive(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let e = Pa.instance.deer;
  				t ? (this.horse = this.canHorse, this.horse.riding(e), yield e.drive(this.horse), Pa.instance.cameraScript.horseView()) : (e.noDrive(!1), this.horse && this.horse.disRiding(), this.horse = null, this.canHorse = null, Pa.instance.cameraScript.deerView());
  			})
  		}
  		_mechaDirve(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				console.log("驾驶机甲", t);
  				let e = Pa.instance.deer;
  				t ? (this.mecha = this.canMecha, this.mecha.riding(e), yield e.drive(this.mecha), Pa.instance.cameraScript.mechaView()) : (e.noDrive(!1), this.mecha && this.mecha.disRiding(), this.mecha = null, this.canMecha = null, Pa.instance.cameraScript.deerView());
  			})
  		}
  		_cattleMount(t) {
  			let e = Pa.instance.deer;
  			t ? (this.cattle = this.canCattle, e.driveFlyCattile(this.cattle)) : (this.cattle = null, e.noDrive(!1));
  		}
  		_carDrive(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let e = Pa.instance.deer;
  				t ? (this.driveCar = this.canDriveCar, this.driveCar.drive(!0), e.drive(this.driveCar), this.driveCar.cheDeng.active = !0, Pa.instance.cameraScript.carView()) : (this.driveCar.cheDeng.active = !1, this.canDriveCar.cheDeng.active = !1, e.noDrive(!1), this.driveCar && this.driveCar.drive(!1), this.driveCar = null, this.canDriveCar = null, Pa.instance.cameraScript.deerView());
  			})
  		}
  		OpenDrive() {
  			o.instance.onUI(i.CarBack, this, this._carBack, [!0]), o.instance.onUI(i.CarBackNo, this, this._carBack, [!1]), o.instance.onUI(i.CarForward, this, this._carFoward, [!0]), o.instance.onUI(i.CarForwardNo, this, this._carFoward, [!1]), o.instance.onUI(i.CarLeft, this, this._carLeft, [!0]), o.instance.onUI(i.CarLeftNo, this, this._carLeft, [!1]), o.instance.onUI(i.CarRight, this, this._carRight, [!0]), o.instance.onUI(i.CarRightNo, this, this._carRight, [!1]), o.instance.onUI(i.OffDrive, this, this.OffDrive), o.instance.onUI(i.CarDrive, this, this._carDrive, [!0]), o.instance.onUI(i.CarOffDrive, this, this._carDrive, [!1]), o.instance.onUI(i.MountDrive, this, this._mountDrive, [!0]), o.instance.onUI(i.MountOffDrive, this, this._mountDrive, [!1]), o.instance.onUI(i.MechaDirve, this, this._mechaDirve, [!0]), o.instance.onUI(i.MechaOffDirve, this, this._mechaDirve, [!1]), o.instance.onUI(i.FlyCattleDirve, this, this._cattleMount, [!0]), o.instance.onUI(i.FlyCattleOffDirve, this, this._cattleMount, [!1]), this.driveCar && this._carDrive(!1), this.horse && this._mountDrive(!1), this.mecha && this._mechaDirve(!1), this.cattle && this._cattleMount(!1);
  		}
  		OffDrive() {
  			console.log("关所有驾驶"), o.instance.offUI(i.CarBack, this, this._carBack), o.instance.offUI(i.CarBackNo, this, this._carBack), o.instance.offUI(i.CarForward, this, this._carFoward), o.instance.offUI(i.CarForwardNo, this, this._carFoward), o.instance.offUI(i.CarLeft, this, this._carLeft), o.instance.offUI(i.CarLeftNo, this, this._carLeft), o.instance.offUI(i.CarRight, this, this._carRight), o.instance.offUI(i.CarRightNo, this, this._carRight), o.instance.offUI(i.OffDrive, this, this.OffDrive), o.instance.offUI(i.CarDrive, this, this._carDrive), o.instance.offUI(i.CarOffDrive, this, this._carDrive), o.instance.offUI(i.MountDrive, this, this._mountDrive), o.instance.offUI(i.MountOffDrive, this, this._mountDrive), o.instance.offUI(i.MechaDirve, this, this._mechaDirve), o.instance.offUI(i.MechaOffDirve, this, this._mechaDirve), o.instance.offUI(i.FlyCattleDirve, this, this._cattleMount), o.instance.offUI(i.FlyCattleOffDirve, this, this._cattleMount), this.driveCar && this._carDrive(!1), this.horse && this._mountDrive(!1), this.mecha && this._mechaDirve(!1), this.cattle && this._cattleMount(!1);
  		}
  	}! function(t) {
  		t.config = class {}, t.path = "res/config/MonsterConfig.json";
  	}(k || (k = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/WeaponConfig.json";
  	}(v || (v = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/TaskConfig.json";
  	}(I || (I = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/DeerConfig.json";
  	}(P || (P = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/RiskConfig.json";
  	}(A || (A = {}));
  	class Se {
  		constructor(t) {
  			this.levelData = y.data[t], this.levelData.taskId && (this.taskVo = new Pe(this.levelData.taskId));
  		}
  	}
  	class ke {
  		constructor(t) {
  			this.riskData = A.data[t], this.monsterVos = [], this.monsterRes = [];
  			let e = JSON.parse(this.riskData.monsters);
  			for (let t in e)
  				if (e[t]) {
  					for (let i = 0; i < e[t]; i++) this.monsterVos.push(new Ie(parseInt(t)));
  					let i = k.data[t];
  					i && this.monsterRes.push(i.prefabName);
  				} this.viewPolice = k.data[this.riskData.viewPolice];
  		}
  	}
  	class ve {
  		constructor(t) {
  			this.deerConfig = P.data[t];
  		}
  	}
  	class Ie {
  		constructor(t) {
  			this.monsterConfig = k.data[t], this.monsterConfig.weaponId && (this.weaponConfig = v.data[this.monsterConfig.weaponId]), this.monsterConfig.moveRange && (this.range = JSON.parse(this.monsterConfig.moveRange));
  		}
  	}
  	class Pe {
  		constructor(t) {
  			this.taskConfig = I.data[t], this.reset();
  		}
  		reset() {
  			this.finish = !1, this.pro = 0;
  		}
  		get taskTimes() {
  			return this.taskConfig.taskTimes
  		}
  	}
  	class Ae {
  		constructor() {
  			this.levelVos = {}, this.level_data = [], this.taskLvs = [], this.initData();
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Ae), this._instance
  		}
  		initData() {
  			y.dataList.forEach(t => {
  				this.level_data[t.lv] = this.level_data[t.lv] || [], this.level_data[t.lv].push(t), t.taskId && this.taskLvs.push(t);
  			});
  		}
  		levelVoByLv(t, e) {
  			let i = this.getLevelConfigByLv(t, e);
  			return i ? this.levelVos[t + "_" + e] || (this.levelVos[t + "_" + e] = new Se(i.id)) : null
  		}
  		levelVoById(t) {
  			let e = y.data[t];
  			return e ? this.levelVoByLv(e.lv, e.smallLv) : null
  		}
  		getLevelConfigByLv(t, e) {
  			return this.level_data[t][e - 1]
  		}
  		get_level_datas(t) {
  			return t = t || 1, this.level_data[t]
  		}
  		nowLevelVo() {
  			let t = y.data[de.instance.levelId];
  			return this.levelVoByLv(t.lv, t.smallLv)
  		}
  		nextLevelVo() {
  			let t = de.instance.levelId + 1;
  			return y.data[t] ? this.levelVoById(t) : this.levelVoById(de.instance.levelId)
  		}
  		nowLevelId() {
  			return de.instance.levelId
  		}
  		nextLevelId() {
  			return this.nextLevelVo()
  				.levelData.id
  		}
  	}
  	class Oe {
  		constructor() {}
  		static get instance() {
  			return null == this._instance && (this._instance = new Oe), this._instance
  		}
  		startTask(t) {
  			this.taskVo = t, t && (this._nowTask = t.taskConfig.taskType, console.log("任务" + t.taskConfig.taskType), o.instance.on3d(f.TaskChange, this, this._onTaskChange));
  		}
  		resetTask() {
  			this._nowTask = null, this.taskVo = null;
  		}
  		_onTaskChange(t) {
  			if (t != this._nowTask) return;
  			this.taskVo.pro++, this.taskVo.pro >= Ae.instance.nowLevelVo()
  				.taskVo.taskTimes && o.instance.event3d(f.TaskFinish);
  		}
  	}

  	function deg2rad(t) {
  		return t * Math.PI / 180
  	}

  	function direOneDisV3(t, e) {
  		let i = Laya.Vector3.distance(t, e),
  			s = new Laya.Vector3;
  		return Laya.Vector3.subtract(t, e, s), Laya.Vector3.scale(s, 1 / i, s), s
  	}

  	function isZero(t) {
  		return 0 == t.x && 0 == t.y && 0 == t.z
  	}

  	function getLinearVelocity(t, e, i, s) {
  		let a = function(t, e) {
  				return Math.sqrt(2 * t * e)
  			}(t.y - e.y, s || Da.gravity),
  			n = function(t, e, i, s) {
  				let a = t.y - e.y;
  				return Math.sqrt(Math.abs(2 * a / (s || Da.gravity))) + Math.sqrt(Math.abs(2 * (e.y - i.y) / (s || Da.gravity)))
  			}(t, e, i, s),
  			o = (i.z - t.z) / n,
  			r = (i.x - t.x) / n;
  		return new Laya.Vector3(r, a, o)
  	}! function(t) {
  		t[t.force = 1] = "force", t[t.pos = 2] = "pos", t[t.velocity = 3] = "velocity", t[t.character = 4] = "character";
  	}(O || (O = {}));
  	var Re, De, xe, Be, Me, Te, Ue, Ve, Ee, Ge, je, Ne;
  	new Laya.Vector3(0, 1, 0);
  	class Fe extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this._startDrag = !1, this._touchStartPos = new Laya.Point, this._touchMovePos = new Laya.Point, this.dragMinDis = 10, this.openMove = !0, this.onlyRotate = !1, this.moveUseOimo = !1, this.alwayFowardSpeed = 0, this.forceSpeed = 1, this.posSpeed = 1, this.velocitySpeed = 1, this.characterSpeed = 1, this.rotationSpeed = 10, this.dire = new Laya.Vector3, this._moveType = O.pos, this.deerMoveSpeed = 0, this.lastY = 0, this.landTimer = 0, this.needLand = !1, this._lastWalkType = Es.center, this._tempQuaternion = new Laya.Quaternion, this._isSlowSpeed = !0, this._isUpRotate = !1, this._tempWaitToRun = !1, this._direOffset = 0, this.turnV = new Laya.Vector3, this.turnUP = new Laya.Vector3, this.turnQ = new Laya.Quaternion, this._testHitResult = new Laya.HitResult, this._testTimer = 0, this._testInterva = 1e3, this._testRayTo = new Laya.Vector3(0, 3, 0);
  		}
  		onAwake() {
  			super.onAwake(), this._model = this.owner;
  		}
  		onStart() {
  			this.lastY = this._model.transform.position.y;
  		}
  		setMoveType(t) {
  			this._moveType = t, this._moveType == O.character && (Da.useOimo && this.moveUseOimo ? this._oimoRig = this.deer.oimoRig : (this._rigidBody = this._model.getComponent(Laya.Rigidbody3D), this._rigidBody.enabled = !0, this._rigidBody.collisionGroup = ue.Deer, this._characterController = this._model.addComponent(Laya.CharacterController), this._characterController.colliderShape = new Laya.CapsuleColliderShape(.35, 1, Laya.ColliderShape.SHAPEORIENTATION_UPY), this._characterController.colliderShape.localOffset = new Laya.Vector3(0, .45, .1), this._characterController.colliderShape.updateLocalTransformations(), this._characterController.collisionGroup = ue.Deer, this._characterController.upAxis = new Laya.Vector3(0, 1, 0), this._characterController.stepHeight = .3, this._characterController.friction = 1, this._characterController[fe.collsionSelf] = this.deer));
  		}
  		setDownSpeed(t) {
  			this._characterController && (this._characterController.fallSpeed = t);
  		}
  		setJumpSpeed(t) {
  			this._characterController && (this._characterController.jumpSpeed = t);
  		}
  		get isGround() {
  			return this._checkGrounded()
  		}
  		onUpdate() {
  			if (super.onUpdate(), this.deer.NeckIK.turnNeckSub(null), Oa.gameOverOrPause || this.destroyed || be.instance.driveCar) return this.characterStop();
  			if (this.onlyRotate) return void this._updataDire();
  			if (!this.openMove) return;
  			if (me.getInst()
  				.PlayerPos = this._model.transform.position, le.deltaTime / 1e3 <= 0) return;
  			this._updateDireAndMove();
  			let t = this._checkGrounded(),
  				e = this.deer.lifeState;
  			if (t) e == S.jump && this.deer.setMotion(S.idle, !0);
  			else if (e == S.idle || e == S.walk || e == S.run) this.deer.setMotion(S.jump), this.deer.deerForm == Gs.Crazy ? this.deer.playAni(Vs.bsFly) : this.deer.playAni(Vs.fly);
  			else if (e == S.jump && this.deer.deerForm == Gs.Normal && this.needLand) {
  				this._model.transform.position.y - this.lastY < 0 && (this.landTimer += le.deltaTime, this.landTimer > 300 && (this.needLand = !1, this.deer.playAni(Vs.land)));
  			}
  			this.lastY = this._model.transform.position.y;
  		}
  		openRocker() {
  			this.rocker = Oa.rocker;
  		}
  		stopRocker() {
  			this.rocker && this.rocker.stopRockerView();
  		}
  		closeRocker() {
  			this.rocker = null;
  		}
  		characterMove(t, e = null) {
  			if (this._characterController && 0 != this.deer.ani.speed) {
  				if (Laya.Vector3.normalize(t, t), Da.deerOpenTurn) {
  					if (this.alwayFowardSpeed) this.deerMoveSpeed = this.alwayFowardSpeed;
  					else if (e) this.deerMoveSpeed = e;
  					else if (!isZero(t))
  						if (this.deer.deerForm == Gs.Normal ? null != Oe.instance.taskVo && 5 == Oe.instance.taskVo.taskConfig.rewardType ? this.deerMoveSpeed = this._isSlowSpeed ? Da.deerMoveTurnSpeed : Da.deerMoveSpeed * (1 + Oe.instance.taskVo.taskConfig.reward / 100) : this.deerMoveSpeed = this._isSlowSpeed ? Da.deerMoveTurnSpeed : Da.deerMoveSpeed : null != Oe.instance.taskVo && 5 == Oe.instance.taskVo.taskConfig.rewardType ? this.deerMoveSpeed = this._isSlowSpeed ? Da.deerCrazyMoveTurnSpeed : Da.deerCrazyMoveSpeed * (1 + Oe.instance.taskVo.taskConfig.reward / 100) : this.deerMoveSpeed = this._isSlowSpeed ? Da.deerCrazyMoveTurnSpeed : Da.deerCrazyMoveSpeed, this._isSlowSpeed) {
  							let t = this.deer.setMotion(S.walk);
  							this._lastWalkType != this.walkTurnDire() && (this._lastWalkType = this.walkTurnDire(), !t && this.deer.stateChange());
  						} else this.deer.setMotion(S.run);
  					(this._isUpRotate || this.alwayFowardSpeed) && (this.deer.displayObject.transform.getForward(t), Laya.Vector3.scale(t, -1, t));
  				} else this.deer.lifeState == S.att ? this.deerMoveSpeed = 0 : this.deerMoveSpeed = this.characterSpeed;
  				Laya.Vector3.scale(t, this.deerMoveSpeed, t), Da.useOimo && this.moveUseOimo ? this._oimoRig.linearVelocity.set(t.x, t.y, t.z) : this._characterController.move(t), this.deer.deerForm != Gs.Crazy || this.deer.lifeState != S.run && this.deer.lifeState != S.walk ? this.deer.startAni() : this.deer.setAniSpeed(10 * Laya.Vector3.distance(l.zero, t));
  			}
  		}
  		characterJump(t) {
  			this._characterController && this._checkGrounded() && (this._characterController.jump(t), this.needLand = !0, this.landTimer = 0);
  		}
  		openCharacter(t) {
  			this._characterController && (this._characterController.enabled = t);
  		}
  		characterStop() {
  			this._characterController && this._characterController.move(l.zeroNew);
  		}
  		destroy() {
  			this.characterStop(), this.closeRocker(), this._characterController && this._characterController.destroy(), this._characterController = null, super.destroy();
  		}
  		_updataDire() {
  			if (!this.rocker || !this.deer || be.instance.mecha) return;
  			if (this.rocker.dire.cloneTo(this.dire), isZero(this.dire)) return;
  			if (!this.deer.canRotate()) return;
  			let t = Oa.camera.transform.rotationEuler.y;
  			Laya.Quaternion.createFromYawPitchRoll(deg2rad(t), 0, 0, this._tempQuaternion), Laya.Vector3.transformQuat(this.dire, this._tempQuaternion, this.dire);
  			let e = c.updateRotation(this.dire);
  			this.owner.transform.localRotationEulerY = e;
  		}
  		_updateDireAndMove() {
  			let t = !1;
  			if (this.rocker && this.deer && !be.instance.mecha) {
  				if (this.rocker.dire.cloneTo(this.dire), isZero(this.dire)) this.deerMoveSpeed = 0, this.deer.setMotion(S.idle), this._tempWaitToRun = !1, this._isSlowSpeed = !0;
  				else {
  					let e = Oa.camera.transform.rotationEuler.y;
  					Laya.Quaternion.createFromYawPitchRoll(deg2rad(e), 0, 0, this._tempQuaternion), Laya.Vector3.transformQuat(this.dire, this._tempQuaternion, this.dire), this.deer.canRotate() && (t = !0);
  				}
  				Laya.Vector3.scale(this.dire, le.deltaTime / 1e3, this.dire), this._moveByType(this.dire, this._moveType, t);
  			}
  		}
  		walkTurnDire() {
  			if (this._isUpRotate) {
  				if (this._direOffset > 0) return Es.right;
  				if (this._direOffset < 0) return Es.left
  			}
  			return Es.center
  		}
  		_moveByType(t, e = this._moveType, i = !0) {
  			if (i) {
  				if (Da.deerOpenTurn) {
  					let e = this.deer.deerForm == Gs.Crazy ? Da.deerCrazyRotateSpeed : Da.deerRotateSpeed,
  						i = c.updateRotation(t),
  						s = Math.abs(i - this.owner.transform.localRotationEulerY);
  					this._direOffset = c.updateRotationDelayY(t, this.owner.transform.localRotationEulerY, e), this.owner.transform.localRotationEulerY += this._direOffset, s < Da.deerRMinRiao ? this.deer.deerForm == Gs.Crazy ? this._setSlowSpeed() : this._tempWaitToRun || (this._tempWaitToRun = !0, this._isUpRotate = !1, Laya.timer.once(Da.deerMoveToRunTime, this, this._setSlowSpeed, null, !0)) : (Laya.timer.clear(this, this._setSlowSpeed), this._tempWaitToRun = !1, this._isSlowSpeed = !0, this._isUpRotate = !0);
  				} else this.owner.transform.localRotationEulerY = c.updateRotation(t);
  				if (this.deer.deerForm == Gs.Normal) {
  					let t = this.deer.lifeState;
  					if (t == S.idle || t == S.walk || t == S.runL || t == S.runR || t == S.walkBack || t == S.jump) {
  						this.deer.displayObject.transform.getForward(this.turnV), Laya.Vector3.scale(this.turnV, -1, this.turnV), Laya.Vector3.normalize(this.turnV, this.turnV);
  						var s = c.Angle2(this.turnV, this.dire);
  						s < 3 ? this.deer.NeckIK.turnNeckSub(null) : (s = Math.min(Math.abs(s), 90), Laya.Vector3.cross(this.turnV, this.dire, this.turnUP), Laya.Vector3.normalize(this.turnUP, this.turnUP), Laya.Quaternion.createFromAxisAngle(this.turnUP, c.deg2rad(s), this.turnQ), Laya.Vector3.transformQuat(this.turnV, this.turnQ, this.turnV), Laya.Vector3.normalize(this.turnV, this.turnV), Laya.Vector3.scale(this.turnV, 10, this.turnV), Laya.Vector3.add(this.deer.displayObject.transform.position, this.turnV, this.turnV), this.turnV.y = this.deer.NeckIK.headBone.target.transform.position.y, this.deer.NeckIK.turnNeckSub(this.turnV));
  					} else this.deer.NeckIK.turnNeckSub(null);
  				} else this.deer.NeckIK.turnNeckSub(null);
  			} else this._isSlowSpeed = !1, this._isUpRotate = !1;
  			this.deer.canMove() ? this.characterMove(t) : this.deerMoveSpeed = 0;
  		}
  		_setSlowSpeed() {
  			this._isSlowSpeed = !1;
  		}
  		_checkGrounded() {
  			return !this.deer || !this._characterController || this._characterController.isGrounded
  		}
  		TestWay() {
  			if (this._testTimer += Laya.timer.delta, this._testTimer <= this._testInterva) return;
  			this._testTimer = 0;
  			let t = null,
  				e = this.owner.transform.position.clone();
  			if (e.y += 3, Oa.s3d.physicsSimulation.raycastFromTo(e, this._testRayTo, this._testHitResult, ue.Ray, ue.Build)) {
  				let e = this._testHitResult.collider.owner.parent.parent;
  				if (e && e.name.indexOf("Building") >= 0) {
  					let i = Pa.instance.blockBuilds;
  					for (let s = 0; s < i.length; s++)
  						if (i[s].EqualDisplayBuild(e)) {
  							t = i[s];
  							break
  						} if (t) {
  						let i = t.GetNearestWapPointFromBound(this.owner.transform.position, this.deer.pos());
  						return console.log("获取路径点成功:" + e.name), console.log(i), !0
  					}
  					console.log("获取build失败:" + e.name);
  				} else console.log("不是build:" + e.name);
  			} else console.log("没有射到什么东西");
  			return !1
  		}
  	}
  	class He {
  		static ScreenPosToWorldPos(t, e, i) {
  			let s = new Laya.Ray(l.zeroNew, l.zeroNew);
  			t.viewportPointToRay(e, s);
  			let a = l.s_down,
  				n = l.Dot(a, s.direction),
  				o = s.origin.y / n,
  				r = l.Scale(s.direction, o);
  			return l.Add(s.origin, r)
  		}
  		static GetPointFrom3DWorld(t, e, i, s) {
  			let a = i || new Laya.Vector4;
  			return t.worldToViewportPoint(e, a), null != s ? s.globalToLocal(a.x, a.y) : new Laya.Point(a.x, a.y)
  		}
  		static ScreenPosToRay(t, e, i) {
  			i = i || new Laya.Ray(l.zeroNew, l.zeroNew);
  			let s = new Laya.Vector2(e.x / Laya.stage.width, e.y / Laya.stage.height);
  			return t.normalizedViewportPointToRay(s, i), i
  		}
  	}
  	class We {
  		constructor() {
  			this.deerPeople = [];
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new We), this._instance
  		}
  		setContralPeople(t) {
  			!this.aimPeople && t && o.instance.event3d(f.CanContralP), this.aimPeople && !t && (this.aimPeople = null, o.instance.event3d(f.NoContralP)), this.aimPeople = t;
  		}
  	}! function(t) {
  		t[t.None = 0] = "None", t[t.guanqiaanniu = 1] = "guanqiaanniu", t[t.fristLv = 2] = "fristLv", t[t.yaogan = 3] = "yaogan", t[t.slideScreen = 4] = "slideScreen", t[t.jump = 5] = "jump", t[t.longNeck = 6] = "longNeck", t[t.neckToJump = 7] = "neckToJump", t[t.bs = 8] = "bs", t[t.att = 9] = "att", t[t.task = 10] = "task", t[t.guanqiaanniu2 = 11] = "guanqiaanniu2", t[t.twoLv = 12] = "twoLv", t[t.breakLv = 13] = "breakLv", t[t.lv = 14] = "lv";
  	}(Re || (Re = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/GuideConfig.json";
  	}(De || (De = {}));
  	class ze extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "guideView")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_att = this.getChildAt(1), this.m_longNeck = this.getChildAt(2), this.m_jump = this.getChildAt(3), this.m_bs = this.getChildAt(4), this.m_rocker = this.getChildAt(5), this.m_changeDeerBtn = this.getChildAt(6), this.m_halloBtn = this.getChildAt(7), this.m_danceBtn = this.getChildAt(8), this.m_normal = this.getChildAt(9), this.m_window = this.getChildAt(10), this.m_btn_skip = this.getChildAt(38), this.m_t1 = this.getTransitionAt(0), this.m_t2 = this.getTransitionAt(1), this.m_t3 = this.getTransitionAt(2), this.m_t4 = this.getTransitionAt(3), this.m_t5 = this.getTransitionAt(4), this.m_t6 = this.getTransitionAt(5), this.m_t7 = this.getTransitionAt(6), this.m_t8 = this.getTransitionAt(7);
  		}
  	}
  	ze.URL = "ui://kk7g5mmmxyl16r";
  	class Ye extends Q {
  		static get instance() {
  			return null == this._instance && (this._instance = new Ye, this._instance._classDefine = ze), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this._guideBtn = this._openParam[2];
  			let t = this._guideBtn;
  			if (t) {
  				this.ui.mask = null, this.ui.opaque = !0, this._tempBtn = le.copyFguiCom(this._guideBtn), this._guideBtn.visible = !1, this._tempBtn.onClick(this, () => {
  					let t = new Laya.Event;
  					this._guideBtn.displayObject.event(Laya.Event.CLICK, t.setTo(Laya.Event.CLICK, this._guideBtn.displayObject, this._guideBtn.displayObject));
  				}), this.ui.addChildAt(this._tempBtn, 1);
  				let e = t.localToGlobal();
  				this._tempBtn.setXY(e.x, e.y);
  			} else {
  				this.ui.opaque = !1, this.ui.setMask(this.ui.m_window.displayObject, !0);
  				let t = this._openParam[0];
  				if (t) {
  					let e = Math.min(t.width, t.height) + 20;
  					this.ui.m_window.setXY(t.x + e / 2 - 10, t.y + e / 2 - 10), this.ui.m_window.width = e, this.ui.m_window.height = e;
  				}
  			}
  			this.ui.m_type.selectedIndex = this._openParam[1] - 1, 3 == this.ui.m_type.selectedIndex ? this.ui.touchable = !1 : this.ui.touchable = !0, this.ui.m_btn_skip.onClick(this, this._onSkipClick);
  		}
  		_onSkipClick() {
  			Ye.instance.Hide(), qe.instance.finishGuide(ot.instance.guideId), ot.instance.guideId = 11, ot.SaveToDisk(), qe.instance.nowGuideId = ot.instance.guideId - 1, o.instance.eventUI(i.GuideFinish);
  		}
  		_yindao() {
  			this.ui.m_type.selectedIndex = 0;
  		}
  		setWindowRect() {}
  	}
  	class qe {
  		constructor() {
  			this.guideing = !1, this.nowGuideId = ot.instance.guideId;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new qe), this._instance
  		}
  		isGuide() {
  			return ot.instance.guideId <= Re.task
  		}
  		triggerGuide(t, e, i) {
  			if (this.guideing) return;
  			if (ot.instance.guideId > Re.task && t < ot.instance.guideId) return;
  			let s = De.data[ot.instance.guideId];
  			if (t > ot.instance.guideId || !s || t == Re.lv) return;
  			let a = De.data[t];
  			this._startGuide(e, t, i), a.force || Laya.timer.once(3e3, this, this.finishGuide, [t]);
  		}
  		_startGuide(t, e, s) {
  			this.guideing = !0, this.nowGuideId = e, Ye.instance.Hide(), Ye.instance.Show([t, e, s]), o.instance.eventUI(i.GuideStart);
  		}
  		finishGuide(t) {
  			let e = De.data[this.nowGuideId];
  			e && t != e.type || (this.nowGuideId++, this.guideing = !1, t == ot.instance.guideId && (ot.instance.guideId++, ot.SaveToDisk()), e && (Ye.instance.Hide(), o.instance.eventUI(i.GuideFinish)));
  		}
  		firstLvPassGuide() {}
  	}
  	class Ke extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "GameUI")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_policeType = this.getControllerAt(1), this.m_task = this.getControllerAt(2), this.m_touchView = this.getChildAt(0), this.m_bossBar = this.getChildAt(1), this.m_flipCom = this.getChildAt(2), this.m_att = this.getChildAt(3), this.m_longNeck = this.getChildAt(4), this.m_jump = this.getChildAt(5), this.m_bs = this.getChildAt(6), this.m_rockerCom = this.getChildAt(7), this.m_changeDeerBtn = this.getChildAt(8), this.m_halloBtn = this.getChildAt(9), this.m_danceBtn = this.getChildAt(10), this.m_mechaForwardBtn = this.getChildAt(11), this.m_mechaRightBtn = this.getChildAt(12), this.m_mechaBackBtn = this.getChildAt(13), this.m_mechaLeftBtn = this.getChildAt(14), this.m_normal = this.getChildAt(15), this.m_backBtn = this.getChildAt(16), this.m_forwardBtn = this.getChildAt(17), this.m_leftBtn = this.getChildAt(18), this.m_rightBtn = this.getChildAt(19), this.m_car = this.getChildAt(20), this.m_riskCom = this.getChildAt(21), this.m_dropOrCarCom = this.getChildAt(22), this.m_pauseBtn = this.getChildAt(23), this.m_center = this.getChildAt(24), this.m_cross1 = this.getChildAt(25), this.m_cross = this.getChildAt(26), this.m_dropWeapon = this.getChildAt(27), this.m_getUp = this.getChildAt(28), this.m_deerBlood = this.getChildAt(29), this.m_countDown = this.getChildAt(47), this.m_taskPro = this.getChildAt(48), this.m_warningTip = this.getChildAt(49), this.m_des = this.getChildAt(50), this.m_winComa = this.getChildAt(52), this.m_btn_skip = this.getChildAt(54), this.m_tishiView = this.getChildAt(55), this.m_jiangli = this.getChildAt(56), this.m_jiangliText = this.getChildAt(57), this.m_warningAni = this.getTransitionAt(0), this.m_attacked = this.getTransitionAt(1), this.m_winCom = this.getTransitionAt(2), this.m_show = this.getTransitionAt(3);
  		}
  	}
  	Ke.URL = "ui://kk7g5mmmdb64o";
  	class Qe extends e.GProgressBar {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "bloodBar")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_text = this.getChildAt(2), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	Qe.URL = "ui://kk7g5mmmwe3bw";
  	class Xe extends Laya.Script {
  			constructor() {
  				super(...arguments), this._updateActions = [], this._lateUpdateActions = [], this._preRenderActions = [];
  			}
  			static get instance() {
  				if (null == this._instance) {
  					let t = new Laya.Sprite;
  					this._instance = t.addComponent(Xe), Laya.stage.addChild(t);
  				}
  				return this._instance
  			}
  			_GetActionList(t) {
  				switch (t) {
  					case xe.Update:
  						return this._updateActions;
  					case xe.LateUpdate:
  						return this._lateUpdateActions;
  					case xe.PreRender:
  						return this._preRenderActions;
  					default:
  						return console.error("未处理的actionType类型", t), null
  				}
  			}
  			AddAction(t, e, i, s) {
  				let a = this._GetActionList(t);
  				if (null == a) return;
  				for (let t = 0; t < a.length; ++t) {
  					let s = a[t];
  					if (s.caller == e && s.method == i) return void console.warn("已存在重复注册事件,取消注册")
  				}
  				let n = Laya.Handler.create(e, i, s, !1);
  				a.push(n);
  			}
  			RemoveAction(t, e, i) {
  				let s = this._GetActionList(t);
  				if (null != s)
  					for (let t = 0; t < s.length; ++t) {
  						let a = s[t];
  						if (a.caller == e && a.method == i) return void(s = s.splice(t, 1))
  					}
  			}
  			onUpdate() {
  				for (let t = 0; t < this._updateActions.length; ++t) {
  					this._updateActions[t].run();
  				}
  			}
  			onLateUpdate() {
  				for (let t = 0; t < this._lateUpdateActions.length; ++t) {
  					this._lateUpdateActions[t].run();
  				}
  			}
  			onPreRender() {
  				for (let t = 0; t < this._preRenderActions.length; ++t) {
  					this._preRenderActions[t].run();
  				}
  			}
  			onDestroy() {
  				Xe._instance = null;
  			}
  		}! function(t) {
  			t[t.Update = 0] = "Update", t[t.LateUpdate = 1] = "LateUpdate", t[t.PreRender = 2] = "PreRender";
  		}(xe || (xe = {})),
  		function(t) {
  			t[t.None = 0] = "None", t[t.killFiveCar = 1] = "killFiveCar", t[t.deerOnePeople = 2] = "deerOnePeople", t[t.killTenTree = 3] = "killTenTree", t[t.killSheep = 4] = "killSheep", t[t.killCarByKnife = 5] = "killCarByKnife", t[t.killBear = 6] = "killBear", t[t.gotoKoalaBuild = 7] = "gotoKoalaBuild", t[t.rabbitPolice = 8] = "rabbitPolice", t[t.alloyDeer = 9] = "alloyDeer", t[t.killKoala = 10] = "killKoala";
  		}(Be || (Be = {})),
  		function(t) {
  			t.config = class {}, t.path = "res/config/BuildConfig.json";
  		}(Me || (Me = {})),
  		function(t) {
  			t[t.None = 0] = "None", t[t.sheep = 1] = "sheep", t[t.bear = 2] = "bear", t[t.rabbit = 3] = "rabbit", t[t.people = 4] = "people";
  		}(Te || (Te = {}));
  	class Je {
  		constructor() {
  			this.monsterVos = {}, this.deerVos = {}, this.buildConfigByPrefab = {}, this.riskVos = {}, this.canBurstOutWeapon = [], v.dataList.forEach(t => {
  				t.burstOut && this.canBurstOutWeapon.push(t);
  			}), Me.dataList.forEach(t => {
  				this.buildConfigByPrefab[t.prefabName] = t;
  			}), A.dataList.forEach(t => {
  				this.riskVos[t.id] = new ke(t.id);
  			});
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Je), this._instance
  		}
  		getDeerVoById(t) {
  			return this.deerVos[t] || (this.deerVos[t] = new ve(t)), this.deerVos[t]
  		}
  		getMonsterVoById(t) {
  			return this.monsterVos[t] || (this.monsterVos[t] = new Ie(t)), this.monsterVos[t]
  		}
  		getMonsterVoByType(t) {
  			return this.getMonsterVoById(t)
  		}
  		getRandomDropWeapon() {
  			return h.RandomFromArray(this.canBurstOutWeapon)
  		}
  	}! function(t) {
  		t[t.A = 0] = "A", t[t.B = 1] = "B", t[t.C = 2] = "C", t[t.D = 3] = "D", t[t.E = 4] = "E";
  	}(Ue || (Ue = {}));
  	class Ze {
  		constructor() {
  			this.nowIntegral = 0, this.setRiskLv(1);
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Ze), this._instance
  		}
  		getNowRiskType() {
  			if (this.nowRiskVo) {
  				switch (this.nowRiskVo.riskData.riskDesc) {
  					case "A":
  						return Ue.E;
  					case "B":
  						return Ue.B;
  					case "C":
  						return Ue.C;
  					case "D":
  						return Ue.D;
  					case "E":
  						return Ue.E
  				}
  			}
  		}
  		getNowPro() {
  			if (this.nowRiskVo) return this.nowIntegral / this.nowRiskVo.riskData.needIntegral
  		}
  		setRiskLv(t) {
  			this.nowIntegral = 1 == t ? 0 : this.nowIntegral - this.nowRiskVo.riskData.needIntegral, this.lastRiskVo = this.nowRiskVo, this.nowRiskVo = Je.instance.riskVos[t], this._preload();
  		}
  		addIntegral(t) {
  			de.instance.levelId > 1 && de.instance.levelId <= 4 || this.nowRiskVo && (this.nowIntegral += t, this.nowIntegral >= this.nowRiskVo.riskData.needIntegral && (this.setRiskLv(this.nowRiskVo.riskData.id + 1), o.instance.event3d(f.RiskLvAdd)), o.instance.event3d(f.RiskIntegralChange));
  		}
  		_preload() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.nowRiskVo && (yield R.LoadAsync(this._scenePrefabUrl()));
  			})
  		}
  		_scenePrefabUrl() {
  			let t = [];
  			return this.nowRiskVo.monsterRes.forEach(e => {
  				t.push(E.prefab_url(e));
  			}), t
  		}
  	}
  	class $e {
  		constructor() {
  			this._oimoId = 1, this._oimoRigDic = new z, this._transformDic = new z, this._oimoOffset = new z, this._oimoRigDicR = new z, this._transformDicR = new z, this._oimoOffsetR = new z, this._tempOimoV3 = new OIMO.Vec3, this._tempOimoQuat = new OIMO.Quat, this._tempQuaternion = new Laya.Quaternion, this._init();
  		}
  		get oimoWorld() {
  			return this._oimoWorld
  		}
  		static get instance() {
  			return $e._instance || ($e._instance = new $e), $e._instance
  		}
  		_init() {
  			this._oimoWorld = this.CreateWolrd(), window.oimoWorld = this._oimoWorld;
  		}
  		CreateWolrd() {
  			return new OIMO.World({
  				timestep: 1 / 60,
  				iterations: 8,
  				broadphase: 2,
  				worldscale: 1,
  				random: !1,
  				info: !1,
  				gravity: [0, -9.8, 0]
  			})
  		}
  		CreateSphereFromObj(t, e, i, s = !0, a = !0, n = !1, o = 10) {
  			let r = this.getColliderPos(i, e),
  				h = this.getSphereSize(i, e.scale),
  				l = this._createRigBox(t, r, e.rotationEuler, h, s, "sphere", o);
  			this._oimoId++;
  			let c = l.tId = this._oimoId;
  			return a && (this._oimoRigDic.set(c, l), this._transformDic.set(c, e)), n && (this._oimoRigDicR.set(c, l), this._transformDicR.set(c, e)), l
  		}
  		CreateBoxFromObj(t, e, i, s = !0, a = !0, n = !1, o = 10) {
  			let r = this.getColliderPos(i, e),
  				h = this.getBoxSize(i, e.scale),
  				l = this._createRigBox(t, r, e.rotationEuler, h, s, "box", o);
  			this._oimoId++;
  			let c = l.tId = this._oimoId;
  			return a && (this._oimoRigDic.set(c, l), this._transformDic.set(c, e), null != this._oimoOffset.get(c) && console.error(c, "has key"), this._oimoOffset.set(c, i.localOffset.clone())), n && (this._oimoRigDicR.set(c, l), this._transformDicR.set(c, e), this._oimoOffsetR.set(c, i.localOffset)), l
  		}
  		_createRigBox(t, e, i, s, a, n = "box", o = 10) {
  			return t.add({
  				type: n,
  				size: [s.x, s.y, s.z],
  				pos: [e.x, e.y, e.z],
  				rot: [i.x, i.y, i.z],
  				move: a,
  				density: o,
  				friction: .8,
  				restitution: .1,
  				belongsTo: 1,
  				collidesWith: 4294967295
  			})
  		}
  		setCollideData(t, e, i, s, a) {
  			for (var n = t.shapes; null !== n; n = n.next) null != e && (n.belongsTo = e), null != i && (n.collidesWith = i), null != s && (n.restitution = s), null != a && (n.friction = a);
  		}
  		AddJoint(t, e, i, s, a, n, o, r) {
  			return this.oimoWorld.add({
  				type: t,
  				body1: e,
  				body2: i,
  				pos1: null != s ? [s.x, s.y, s.z] : s,
  				pos2: null != a ? [a.x, a.y, a.z] : a,
  				spring: n,
  				axe1: o,
  				axe2: r,
  				collision: !1
  			})
  		}
  		RemoveJoint(t) {
  			this.oimoWorld.removeJoint(t);
  		}
  		setCanMove(t, e) {
  			e ? t.setupMass(OIMO.BODY_DYNAMIC, !1) : t.setupMass(OIMO.BODY_STATIC, !1);
  		}
  		clearRig() {
  			this._oimoWorld.clear(), this._oimoRigDic.clear(), this._transformDic.clear(), this._oimoOffset.clear(), this._oimoRigDicR.clear(), this._transformDicR.clear(), this._oimoOffsetR.clear(), this._oimoId = 1;
  		}
  		addRig(t, e = this._oimoWorld) {
  			t && e.addRigidBody(t);
  		}
  		RemoveRig(t, e = this._oimoWorld, i = !0) {
  			if (t) {
  				if (i) {
  					let e = t.tId;
  					this._oimoRigDic.remove(e), this._transformDic.remove(e), this._oimoOffset.remove(e), this._oimoRigDicR.remove(e), this._transformDicR.remove(e), this._oimoOffsetR.remove(e);
  				}
  				e.removeRigidBody(t);
  			}
  		}
  		updateAllTrans() {
  			this._oimoRigDic.keys()
  				.forEach(t => {
  					this.UpdateTrans(this._transformDic.get(t), this._oimoRigDic.get(t), this._oimoOffset.get(t));
  				});
  		}
  		updateAllTransReverse() {
  			this._oimoRigDicR.keys()
  				.forEach(t => {
  					this.UpdateTransReverse(this._transformDicR.get(t), this._oimoRigDicR.get(t), this._oimoOffsetR.get(t));
  				});
  		}
  		UpdateTransReverse(t, e, i) {
  			if (!t || !e) return;
  			let s = t.position;
  			if (i && !isZero(i)) {
  				let e = this.getDireOffset(t, i, !0);
  				this._tempOimoV3.set(e.x, e.y, e.z);
  			} else this._tempOimoV3.set(s.x, s.y, s.z);
  			e.setPosition(this._tempOimoV3);
  			let a = t.rotation;
  			this._tempOimoQuat.set(a.x, a.y, a.z, a.w), e.setQuaternion(this._tempOimoQuat);
  		}
  		getDireOffset(t, e, i = !1) {
  			let s = e.clone();
  			return i && Laya.Vector3.scale(s, -1, s), Laya.Quaternion.createFromYawPitchRoll(c.deg2rad(t.rotationEuler.y), c.deg2rad(t.rotationEuler.x), c.deg2rad(t.rotationEuler.z), this._tempQuaternion), Laya.Vector3.transformQuat(s, this._tempQuaternion, s), Laya.Vector3.subtract(t.position, s, s), s
  		}
  		UpdateTrans(t, e, i) {
  			if (!t || !e) return;
  			let s = e.getPosition();
  			t.position.x = s.x, t.position.y = s.y, t.position.z = s.z, i && !isZero(i) && (t.position = this.getDireOffset(t, i)), t.position = t.position;
  			let a = e.getQuaternion();
  			t.rotation.x = a.x, t.rotation.y = a.y, t.rotation.z = a.z, t.rotation.w = a.w, t.rotation = t.rotation;
  		}
  		getBoxSize(t, e) {
  			let i = new Laya.Vector3;
  			return i.x = t.sizeX, i.y = t.sizeY, i.z = t.sizeZ, Laya.Vector3.multiply(i, e, i), i
  		}
  		getSphereSize(t, e) {
  			let i = new Laya.Vector3;
  			return i.x = t.radius, i.y = t.radius, i.z = t.radius, Laya.Vector3.multiply(i, e, i), i
  		}
  		getColliderPos(t, e) {
  			return le.translate(e, t.localOffset)
  		}
  		v3(t, e, i) {
  			return new OIMO.Vec3(t, e, i)
  		}
  		v3B(t) {
  			return new OIMO.Vec3(t.x, t.y, t.z)
  		}
  		Quat(t) {
  			return new OIMO.Quat(t.x, t.y, t.z, t.w)
  		}
  	}
  	class ti {
  		constructor() {}
  		static linearModel(t, e, i) {
  			if (t instanceof Laya.MeshSprite3D) {
  				var s = t,
  					a = s.meshFilter.sharedMesh,
  					n = [];
  				a.getPositions(n);
  				for (var o = a.getSubMesh(0)
  					.getIndices(), r = 0; r < o.length; r += 3) {
  					var h = n[o[r]],
  						l = n[o[r + 1]],
  						c = n[o[r + 2]];
  					Laya.Vector3.transformCoordinate(h, s.transform.worldMatrix, this.transVertex0), Laya.Vector3.transformCoordinate(l, s.transform.worldMatrix, this.transVertex1), Laya.Vector3.transformCoordinate(c, s.transform.worldMatrix, this.transVertex2), e.addLine(this.transVertex0, this.transVertex1, i, i), e.addLine(this.transVertex1, this.transVertex2, i, i), e.addLine(this.transVertex2, this.transVertex0, i, i);
  				}
  			}
  			r = 0;
  			for (var d = t.numChildren; r < d; r++) ti.linearModel(t.getChildAt(r), e, i);
  		}
  		static DrawBoundingBox(t, e, i) {
  			t.meshRenderer.bounds._boundBox.getCorners(ti.corners);
  			var s = new Laya.Vector3(0, 0, 90);
  			ti.DrawTwelveLines(ti.corners[0], ti.corners[1], s, e), s.setValue(0, 0, 0), ti.DrawTwelveLines(ti.corners[1], ti.corners[2], s, e), s.setValue(0, 0, 90), ti.DrawTwelveLines(ti.corners[2], ti.corners[3], s, e), s.setValue(0, 0, 0), ti.DrawTwelveLines(ti.corners[3], ti.corners[0], s, e), s.setValue(0, 0, 90), ti.DrawTwelveLines(ti.corners[4], ti.corners[5], s, e), s.setValue(0, 0, 0), ti.DrawTwelveLines(ti.corners[5], ti.corners[6], s, e), s.setValue(0, 0, 90), ti.DrawTwelveLines(ti.corners[6], ti.corners[7], s, e), s.setValue(0, 0, 0), ti.DrawTwelveLines(ti.corners[7], ti.corners[4], s, e), s.setValue(90, 0, 0), ti.DrawTwelveLines(ti.corners[0], ti.corners[4], s, e), s.setValue(90, 0, 0), ti.DrawTwelveLines(ti.corners[1], ti.corners[5], s, e), s.setValue(90, 0, 0), ti.DrawTwelveLines(ti.corners[2], ti.corners[6], s, e), s.setValue(90, 0, 0), ti.DrawTwelveLines(ti.corners[3], ti.corners[7], s, e);
  		}
  		static DrawTwelveLines(t, e, i, s) {
  			var a = Laya.Vector3.distance(t, e),
  				n = s.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createCylinder(.004, a, 3)));
  			i && n.transform.rotate(i, !0, !1);
  			var o = n.transform.position,
  				r = t.x + e.x,
  				h = t.y + e.y,
  				l = t.z + e.z;
  			o.setValue(r / 2, h / 2, l / 2), n.transform.position = o;
  		}
  	}
  	ti.transVertex0 = new Laya.Vector3, ti.transVertex1 = new Laya.Vector3, ti.transVertex2 = new Laya.Vector3, ti.corners = [];
  	class ei {
  		static DrawLine(t, e, i, s = null) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let a = window.s3d;
  				if (null == a) return void console.error("无s3d对象,无法drawline");
  				let n = new Laya.PixelLineSprite3D(1);
  				n.addLine(t, e, i, i), a.addChild(n), s ? yield et.Seconds(s): yield et.NextFrame(), n.destroy();
  			})
  		}
  		static DrawRay(t, e, i = null) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.DrawLine(t.origin, l.Add(l.Scale(t.direction, 100), t.origin), e, i);
  			})
  		}
  		static PrintNodes(t, e = 0) {
  			if (null != t) {
  				for (var i = "", s = 0; s < e; ++s) i += "--|";
  				i += t.name, console.log(i);
  				for (s = 0; s < t.numChildren; ++s) this.PrintNodes(t.getChildAt(s), e + 1);
  			} else console.log("null");
  		}
  		static PrintAvatarNodes(t, e = 0) {
  			if (null != t) {
  				for (var i = "", s = 0; s < e; ++s) i += "--|";
  				i += t.name, console.log(i);
  				for (s = 0; s < t.getChildCount(); ++s) this.PrintAvatarNodes(t.getChildByIndex(s), e + 1);
  			} else console.log("null");
  		}
  		static CreateSphere(t, e = .5, i = Laya.Color.WHITE) {
  			let s = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(e)),
  				a = new Laya.BlinnPhongMaterial;
  			return a.albedoColor = new Laya.Vector4(i.r, i.g, i.b, 1), s.meshRenderer.material = a, s.transform.position = t, s
  		}
  		static CreateBox(t, e = .5, i = Laya.Color.WHITE) {
  			let s = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(e)),
  				a = new Laya.BlinnPhongMaterial;
  			return a.albedoColor = new Laya.Vector4(i.r, i.g, i.b, 1), s.meshRenderer.material = a, s.transform.position = t, s
  		}
  		static DrawMesh(t, e, i, s = Laya.Color.GREEN, a = null) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let n = [];
  				t.getPositions(n);
  				let o = t.getIndices(),
  					r = o.length / 3,
  					h = new Laya.PixelLineSprite3D(o.length);
  				for (let t = 0; t < r; ++t) {
  					let e = o[3 * t],
  						i = o[3 * t + 1],
  						a = o[3 * t + 2];
  					h.addLine(n[e], n[i], s, s), h.addLine(n[i], n[a], s, s), h.addLine(n[e], n[a], s, s);
  				}
  				window.s3d.addChild(h), h.transform.position = e, h.transform.rotation = i, a ? yield et.Seconds(a): yield et.NextFrame(), h.destroy();
  			})
  		}
  	}
  	class ii {
  		constructor() {
  			this._sprSpeed = new z, this._sprRotSpeed = new z, this.deltaPos = new Laya.Vector3;
  		}
  		static startBreak(t, e) {
  			let i = new ii;
  			return i.setData(t, e), i
  		}
  		static clearAll() {
  			for (let t = this._breakScript.length - 1; t >= 0; t--) this._breakScript[t] && this._breakScript[t].dispose();
  		}
  		static clear(t) {
  			le.splitNode(this._breakScript, t);
  		}
  		setData(t, e) {
  			this._breakSpr = t, this._centerPos = e, this._breakSpr.forEach(t => {
  				let i = new Laya.Vector3;
  				Laya.Vector3.subtract(t.transform.position, e, i), i.y = Math.abs(2 * i.y), i.x *= .2, i.z *= .2, Laya.Vector3.normalize(i, i), Laya.Vector3.scale(i, Da.buildBoomSpeed + 5 * (.5 - Math.random()), i), this._sprSpeed.set(t.id, i), this._sprRotSpeed.set(t.id, new Laya.Vector3(90 * (.5 - Math.random()), 90 * (.5 - Math.random()), 90 * (.5 - Math.random())));
  			}), Xe.instance.AddAction(xe.Update, this, this.onUpdate), Laya.timer.once(1e3 * Da.buildBoomDisTime, this, this.dispose);
  		}
  		onUpdate() {
  			if (this._breakSpr && this._centerPos) {
  				let t = le.deltaTime / 1e3,
  					e = t * Da.gravity;
  				this._breakSpr.forEach(i => {
  					if (!i.destroyed) {
  						let s = i.transform.position,
  							a = this._sprSpeed.get(i.id);
  						a.y += 2 * e, Laya.Vector3.scale(a, t, this.deltaPos), Laya.Vector3.add(s, this.deltaPos, s), i.transform.position = s;
  						let n = this._sprRotSpeed.get(i.id);
  						i.transform.localRotationEulerX += t * n.x, i.transform.localRotationEulerY += t * n.y, i.transform.localRotationEulerZ += t * n.z;
  					}
  				});
  			}
  		}
  		dispose() {
  			Xe.instance.RemoveAction(xe.Update, this, this.onUpdate);
  			for (let t = this._breakSpr.length - 1; t >= 0; t--) {
  				this._breakSpr[t].destroy(!0);
  			}
  			this._breakSpr = null, this._centerPos = null, this._sprSpeed.clear(), this._sprSpeed = null, ii.clear(this);
  		}
  	}
  	ii._breakScript = [],
  		function(t) {
  			t[t.None = 0] = "None", t[t.Tree = 1] = "Tree", t[t.House = 2] = "House";
  		}(Ve || (Ve = {}));
  	class si extends Le {
  		constructor() {
  			super(...arguments), this._canBurstOut = !0, this.initScale = new Laya.Vector3, this._loadBreak = !1, this.isTween = !1;
  		}
  		initDisplay(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.displayObject = t;
  			})
  		}
  		_initData() {
  			this._useOimo(), this._radiusSqrts = [], this._boxCollidersPos = [], this._vertexsPos = [];
  			let t = this.displayObject.getChildByName(fe.blockRoads);
  			this.displayObject.transform.localScale.cloneTo(this.initScale), t && (this.isBlock = !0, t._children.forEach((t, e) => {
  				let i = t.transform.scale,
  					s = t.transform.position,
  					a = Math.sqrt(i.x * i.x + i.z * i.z) / 2;
  				this._radiusSqrts.push(a * a), this._boxCollidersPos.push(s.clone()), this._vertexsPos[e] = [];
  				let n = s.clone();
  				n.x += i.x / 2, n.z += i.z / 2;
  				let o = s.clone();
  				o.x += i.x / 2, o.z -= i.z / 2;
  				let r = s.clone();
  				r.x -= i.x / 2, r.z -= i.z / 2;
  				let h = s.clone();
  				h.x -= i.x / 2, h.z += i.z / 2;
  				let l = t.transform.rotationEuler.y;
  				this._vertexsPos[e].push(le.PosToPosRoate(n, s, l)), this._vertexsPos[e].push(le.PosToPosRoate(o, s, l)), this._vertexsPos[e].push(le.PosToPosRoate(r, s, l)), this._vertexsPos[e].push(le.PosToPosRoate(h, s, l));
  			}));
  		}
  		_useOimo() {
  			if (Da.useOimo) {
  				if (!this._addOimo(this.displayObject)) {
  					let t = this.displayObject.getChildByName(fe.collisionName);
  					t && t._children.forEach(t => {
  						this._addOimo(t), Pa.instance.allBuildCollisionNum++;
  					});
  				}
  			}
  		}
  		_addOimo(t) {
  			let e = c.getPhysicComponent(t);
  			if (e) {
  				let s = e.colliderShape;
  				if (s instanceof Laya.BoxColliderShape) {
  					if (this.oimoRig = $e.instance.CreateBoxFromObj($e.instance.oimoWorld, t.transform, s, !1, !1, !1), Da.oimoView) {
  						let e = ei.CreateBox(new Laya.Vector3);
  						e.active = !1, t.addChild(e);
  						let a = $e.instance.getColliderPos(s, t.transform),
  							n = $e.instance.getBoxSize(s, t.transform.scale);
  						e.transform.position = a, e.transform.scale = n;
  						var i = Oa.s3d.addChild(new Laya.PixelLineSprite3D(100));
  						ti.linearModel(e, i, Laya.Color.GREEN);
  					}
  				} else s instanceof Laya.SphereColliderShape && (this.oimoRig = $e.instance.CreateSphereFromObj($e.instance.oimoWorld, t.transform, s, !1, !1, !1));
  				return $e.instance.setCollideData(this.oimoRig, ue.Build), this.oimoRig.sleep(), !0
  			}
  			return !1
  		}
  		getModel() {
  			return this.displayObject
  		}
  		getTrigger() {
  			let t = super.getTrigger();
  			if (!this.bulidConfig.destory) return t
  		}
  		setBuildConfig(t) {
  			this._dieIntegral = t.killIntegral, this.bulidConfig = t, super.initHp(t.hp), this._dff = t.dff, 3 == t.type ? this._collisionGroup = ue.Plane : (this._collisionGroup = ue.Build, this._canCollideWith = ue.Deer | ue.Ray | ue.Weapon | ue.Car), super.initDisplay(this.displayObject), this._initData(), this.InitBound();
  		}
  		atted(t, e) {
  			if (this.bulidConfig.destory) return this._loadBreak || (R.LoadAsync(E.prefab_url(this.bulidConfig.breakPrefabName)), this._loadBreak = !0), super.atted(t, e)
  		}
  		radiusSqrt() {
  			return this._radiusSqrts
  		}
  		collidersCenterPos() {
  			return this._boxCollidersPos
  		}
  		vertexsPos() {
  			return this._vertexsPos
  		}
  		onTriggerEnter(t, e) {}
  		onCollisionEnter(t, e) {}
  		stateChange() {
  			this.lifeState == S.atted && (this.isTween || this.hitAni());
  		}
  		hitAni() {
  			this.isTween = !0;
  			let t = this.initScale;
  			Laya.Tween.to(this.displayObject.transform, {
  				localScaleX: 1.05 * t.x,
  				localScaleY: 1.05 * t.y,
  				localScaleZ: 1.05 * t.z
  			}, 80, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
  				Laya.Tween.to(this.displayObject.transform, {
  					localScaleX: t.x,
  					localScaleY: t.y,
  					localScaleZ: t.z
  				}, 120, Laya.Ease.elasticOut, Laya.Handler.create(this, () => {
  					this.isTween = !1, this.setMotion(S.idle, !0);
  				}));
  			}));
  		}
  		die() {
  			Ze.instance.addIntegral(this._dieIntegral);
  			let t = Math.random();
  			if (this._canBurstOut = t > .5, this._canBurstOut) {
  				let t = this.displayObject.transform.position.clone();
  				t.y += .6, Pa.instance.randomDropWeapon(t);
  			}
  			this.bulidConfig.type == Ve.Tree && o.instance.event3d(f.TaskChange, Be.killTenTree), super.die(), this.break(), this.dispose(), Pa.instance.DestoryBuild(this);
  		}
  		break () {
  			return __awaiter(this, void 0, void 0, function*() {
  				let t = this.displayObject.getChildByName(fe.center),
  					e = t ? t.transform.position : this.displayObject.transform.position.clone(),
  					i = this.displayObject.transform.position.clone();
  				if (yield R.LoadAsync(E.prefab_url(this.bulidConfig.breakPrefabName)), this.isDie()) {
  					let t = R.Get(E.prefab_url(this.bulidConfig.breakPrefabName));
  					le.SwitchParent(t, Pa.instance.scene.scene), t.transform.position = i, ii.startBreak(t._children, e);
  				}
  			})
  		}
  		dispose(t = !0) {
  			const e = Object.create(null, {
  				dispose: {
  					get: () => super.dispose
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				Pa.instance.RemoveAvoidLP(this), this.displayObject && !this.displayObject.destroyed && Laya.Tween.clearAll(this.displayObject.transform), e.dispose.call(this, t);
  			})
  		}
  		get Bound() {
  			return this.bound
  		}
  		InitBound() {
  			let t = this.displayObject.getChildByName(fe.buildBound);
  			if (t) {
  				this.bound = new Array;
  				for (let e = 0; e < t.numChildren; e++) {
  					let i = t.getChildAt(e);
  					if (!i) throw this.displayObject.name + " bound节点下" + e.toString() + "未找到";
  					this.bound.push(i.transform.position);
  				}
  			}
  		}
  		GetNearestWapPointFromBound(t, e) {
  			if (null == t || null == e) throw new Error("参数为空（不允许）");
  			if (this.bound && this.bound.length > 0) {
  				let e = 1 / 0,
  					i = -1;
  				for (let s = 0; s < this.bound.length; s++) {
  					let a = new Laya.Vector3(0, 0, 0);
  					Laya.Vector3.subtract(t, this.bound[s], a);
  					let n = a.x * a.x + a.z * a.z;
  					n < e && (e = n, i = s);
  				}
  				return {
  					position: this.bound[i].clone(),
  					index: i
  				}
  			}
  			return console.warn("返回鹿的位置，建筑没有设置bound:" + this.displayObject.name), {
  				position: e.clone(),
  				index: -1
  			}
  		}
  		GetNextWayPointFromBound(t, e) {
  			let i = {
  				position: e.clone(),
  				index: -1
  			};
  			if (this.bound && this.bound.length > 0) {
  				if (t.index < 0 || t.index >= this.bound.length) throw ": WP的索引越界，是不是找错了建筑？试图在" + this.displayObject.name + " bound中寻找索引" + t.index;
  				if (null == t || null == e) throw new Error("参数为空（不允许）");
  				try {
  					let s = t.index - 1;
  					s = s < 0 ? this.bound.length - 1 : s;
  					let a = t.index + 1;
  					a = a >= this.bound.length ? 0 : a;
  					let n = Laya.Vector3.distanceSquared(e, this.bound[s]) <= Laya.Vector3.distanceSquared(e, this.bound[a]) ? s : a;
  					i.position = this.bound[n].clone(), i.index = n;
  				} catch (t) {
  					console.error("获取下一个路径点时发生了错误,返回鹿位置:" + this.displayObject.name), console.error(t), i = {
  						position: e.clone(),
  						index: -1
  					};
  				}
  			} else console.warn("建筑没有设置bound:" + this.displayObject.name);
  			return i
  		}
  		EqualDisplayBuild(t) {
  			return null != t && null != this.displayObject && t.name == this.displayObject.name
  		}
  	}! function(t) {
  		t[t.Friendly = 0] = "Friendly", t[t.Enemy = 1] = "Enemy";
  	}(Ee || (Ee = {}));
  	class ai extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.autoAtt = !1, this._isNear = !0, this.routeNum = 60, this.tempRoute = [], this.openRouteRecord = !1, this.openDelayedAim = !1;
  		}
  		setData(t, e, i) {
  			this._attAim = i, this._self = e, t instanceof Ie && t.weaponConfig ? (this.attRange = t.weaponConfig.attRange, this.autoAtt = !0) : (this.attRange = -1, this.autoAtt = !1), t instanceof ve && (this.openRouteRecord = !0);
  		}
  		onAwake() {
  			super.onAwake(), this._model = this.owner;
  		}
  		onUpdate() {
  			if (super.onUpdate(), Pa.instance.viewPoliceBorn) return;
  			Laya.timer.delta <= 0 || Oa.gameOverOrPause || (this.openRouteRecord && (this.tempRoute.push(this._self.attedPos()
  				.clone()), this.tempRoute.length > this.routeNum && (this.beforeTimePos = this.tempRoute.splice(0, 1)[0])), this.autoAtt && (this._checkAndAtt(), this.openDelayedAim && this._attAim && this._self.aimTarget(this._attAim.beforePos())));
  		}
  		attOnceByPos(t) {
  			this._isNear || t && t.cloneTo(this._attPos), this._att();
  		}
  		setNearOrFar(t) {
  			this._isNear = t;
  		}
  		startAtt() {
  			this.autoAtt = !0;
  		}
  		stopAtt() {
  			this.autoAtt = !1;
  		}
  		_checkAndAtt(t = 0) {
  			if (-1 == this.attRange) return this._att(t);
  			let e = this._model.transform.position,
  				i = this._attAim.pos();
  			if (Laya.Vector3.distance(e, i) < this.attRange) return this._att(t);
  			this._self.lifeState != S.att && this._self.lifeState != S.attPuase && this._self.lifeState != S.idleAtt || (this._self.setMotion(S.walk, !0), console.log("攻击之外，切换成追击状态"));
  		}
  		_att(t = 0) {
  			t > 0 ? Laya.timer.once(t, this, () => {
  				this._self.startAtt();
  			}) : this._self.startAtt(), this._targetRotateY = null;
  		}
  		destroy() {
  			super.destroy();
  		}
  	}! function(t) {
  		t[t.None = 0] = "None", t[t.Sheep = 1] = "Sheep", t[t.Bear = 2] = "Bear", t[t.Rabbit = 3] = "Rabbit", t[t.People = 4] = "People", t[t.Fly = 5] = "Fly", t[t.Kun = 6] = "Kun", t[t.Elephant = 7] = "Elephant", t[t.Panda = 8] = "Panda", t[t.cattle = 9] = "cattle", t[t.dogBoss = 10] = "dogBoss";
  	}(Ge || (Ge = {}));
  	class ni extends Le {
  		constructor() {
  			super(...arguments), this._openAipath = !1;
  		}
  		initDisplay(t) {
  			this._collisionGroup = this._collisionGroup || ue.Monster, this._canCollideWith = ue.Deer | ue.Ray | ue.Weapon | ue.Car, super.initDisplay(t), this._attScript = this.displayObject.addComponent(ai);
  		}
  		setMonsterVo(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.monsterVo = t;
  				let e = t.monsterConfig;
  				this._dieIntegral = e.killIntegral, this._hp = e.hpLimit, this.lastHp = e.hpLimit, this._hpLimit = e.hpLimit, this._dff = e.dff;
  				let i = v.data[e.weaponId];
  				e.isAtt && i && (yield this.setInitWeapon(i)), this.setMotion(S.idle), this._attScript.setData(this.monsterVo, this, Pa.instance.deer);
  				let s = this.monsterVo.monsterConfig.radius;
  				if (this._radiusSqrt = s * s, this.monsterVo.weaponConfig) {
  					let t = this.monsterVo.weaponConfig.attRange;
  					this._attRangeSqrt = t * t;
  				}
  			})
  		}
  		getModel() {
  			return this.displayObject
  		}
  		startAtt(t = !0) {
  			let e = this.initWeapon.att(Pa.instance.deer.attedPos(), t);
  			return e && (this.setMotion(S.att), Laya.timer.clearAll(this), Laya.timer.once(18e3, this, () => {
  				this.setMotion(S.idle), this.endAtt(), Laya.timer.clearAll(this);
  			}, null, !1)), e
  		}
  		attRangeSqrt() {
  			return this._attRangeSqrt
  		}
  		radiusSqrt() {
  			return this._radiusSqrt
  		}
  		endAtt() {}
  		onTriggerEnter(t, e) {}
  		onCollisionEnter(t, e) {}
  		stateChange() {
  			if (!this.ani) return console.warn("暂时 没有怪物动作");
  			this.ani.crossFade(this.lifeState, .1, 0, 0);
  		}
  		dispose(t = !0) {
  			Laya.timer.clearAll(this), this._attScript && this._attScript.destroy(), this._attScript = null, super.dispose(t);
  		}
  		die() {
  			super.die(), this._attScript && this._attScript.destroy(), this._attScript = null;
  		}
  		suportAipath() {
  			this._openAipath = !0;
  		}
  	}! function(t) {
  		t[t.shazi = 1] = "shazi", t[t.ptRunSwimEf = 2] = "ptRunSwimEf", t[t.SL_baozha = 3] = "SL_baozha", t[t.ptRunEf = 4] = "ptRunEf", t[t.bulletEf = 5] = "bulletEf", t[t.buildBoom = 6] = "buildBoom", t[t.bsAtt2 = 7] = "bsAtt2", t[t.attacked0 = 8] = "attacked0", t[t.attacked1 = 9] = "attacked1", t[t.attacked2 = 10] = "attacked2", t[t.attacked3 = 11] = "attacked3", t[t.die = 12] = "die";
  	}(je || (je = {})),
  	function(t) {
  		t.choose = "choose", t.chooseMain = "choose_main", t.bgm = "bgm", t.bgm_ui = "bgm_ui", t.win = "win", t.bulletBoom = "bulletBoom", t.shouleiBoom = "shouleiBoom", t.policeBorn = "policeBorn", t.deerDie = "deerDie", t.sheepDie = "sheepDie", t.sheepAtt = "sheepAtt", t.deerSun = "deerSun", t.wearGun = "wearGun", t.handGun = "handGun", t.killPolice = "killPolice", t.whale = "whale", t.horseRide = "horse_ride", t.horseStop = "horse_stop", t.cow = "cow", t.footStep = "footstep", t.peopleAtted = "people_atted", t.peopleAttedNv = "people_attedNv", t.bsRun = "bsRun", t.bsStop = "bsStop", t.pickSword = "pickSword", t.bossBGM = "bossBGM", t.stopMecha = "stopMecha", t.openMecha = "openMecha", t.flyMecha = "flyMecha", t.moveMecha = "moveMecha", t.addSpeedMecha = "addSpeedMecha", t.taskFinish = "taskFinish", t.car = "car";
  	}(Ne || (Ne = {}));
  	class oi {
  		constructor() {
  			this._bgPast = [], this._urlBGM = "", this._urlSOUND = "", this._sounds = [];
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new oi), this._instance
  		}
  		Preload(t) {
  			t.push(E.music_url(Ne.bgm));
  		}
  		setMusicOpen(t, e = !1) {
  			de.instance.isMusicOn = t, fgui.UIConfig.buttonSound = t ? E.sound_url(Ne.choose) : "", de.SaveToDisk(), t ? this.playBGM(e ? Ne.bgm_ui : Ne.bgm) : this.pauseBGM();
  		}
  		setSoundOpen(t) {
  			de.instance.isSoundOn = t, de.SaveToDisk(), Laya.SoundManager.soundMuted = !t, t || this.pauseSound();
  		}
  		playBGM(t) {
  			null != t && this._bgPast.slice(-1)[0] != t ? (this._bgPast.push(t), this._urlBGM = E.music_url(t), this._playMusic(), console.log("播放背景音乐1", t)) : "" != this._urlBGM && (this._playMusic(), console.log("播放背景音乐2", t));
  			Advertisement.specialPeriod();
  		}
  		// huyan() {
  		// 	setInterval(() => {
  		// 		console.log('休息休息鲲鲲亲眼睛');
  			   
  		// 		Advertisement.insertAdverV2();
  		// 		let ape = new Laya.Sprite();
  		// 		this.addChild(ape);
  		// 		ape.x = 100;
  		// 		ape.y = 200;
  		// 		ape.loadImage("res/TT.jpg");
  		// 		Laya.timer.once(2 * 1000, this, function () {
  		// 			ape.visible = false;
  		// 		});
  		// 	}, 30000);
  		// }
  		shiftBGM(t) {
  			if (this._bgPast.slice(-1)[0] == t) {
  				this._bgPast.pop(), this._bgPast.slice(-1)[0] && (this._urlBGM = E.music_url(t), this._playMusic());
  			}
  		}
  		pauseBGM() {
  			Laya.SoundManager.stopMusic(), console.log("停止播放音乐", this._urlBGM);
  		}
  		pauseSound() {
  			Laya.SoundManager.stopAllSound();
  		}
  		playSound(t, e, i, s, a, n = 1) {
  			if (this._urlSOUND = E.sound_url(t), !Pa.instance.viewPoliceBorn && de.instance.isSoundOn) {
  				for (let t = 0; t < this._sounds.length; t++)
  					if (this._sounds[t] && this._sounds[t].url.indexOf(this._urlSOUND) >= 0) {
  						this._sounds[t].stop(), this._sounds.splice(t, 1);
  						break
  					} let t = Laya.SoundManager.playSound(this._urlSOUND, e, i, s, a);
  				t && (t.volume = n), this._sounds.push(t);
  			}
  		}

  		stopSound(t) {
  			this._urlSOUND = E.sound_url(t), Laya.SoundManager.stopSound(this._urlSOUND);
  		}
  		_playMusic() {
  			de.instance.isMusicOn && (Laya.SoundManager.stopMusic(), Laya.SoundManager.playMusic(this._urlBGM, 0));
  		}
  	}
  	class ri extends ni {
  		initDisplay(t) {
  			super.initDisplay(t);
  			let e = t.getChildAt(0);
  			e && (this.ani = e.getComponent(Laya.Animator)), this._boxCollsion = c.getPhysicComponent(t);
  		}
  		getModel() {
  			return this.displayObject
  		}
  		fastRun() {}
  		run() {}
  		bornInCenter(t, e, i) {
  			Pa.instance.scene.scene.addChild(this.displayObject);
  			let s = e % 10,
  				a = Math.floor(e / 10),
  				n = s % 2 == 0,
  				o = new Laya.Vector3,
  				r = t;
  			o.x = r.x + (n ? s : -s) + h.Random(-.5, .5), o.z = r.z + a + h.Random(-.5, .5), o.y = r.y, this.displayObject.transform.position = o, this.setMonsterVo(i);
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t), this._policeMove = this.displayObject.addComponent(Ti), this._policeMove.setData(t, this, Pa.instance.deer), this.initData();
  			})
  		} catch (t) {
  			this.closeOimoRig(), this._policeMove && this._policeMove.stop(), super.catch(t), le.splitNode(Pa.instance.canHandLifes, this);
  		}
  		putDowned() {
  			super.putDowned(), this.addOimoRig(), this._policeMove && this._policeMove.start(), Pa.instance.canHandLifes.push(this);
  		}
  		addOimoRig() {
  			if (Da.useOimo && !this.oimoRig) {
  				let t = this._boxCollsion.colliderShape;
  				this.oimoRig = $e.instance.CreateBoxFromObj($e.instance.oimoWorld, this.displayObject.transform, t, !0, !0), $e.instance.setCollideData(this.oimoRig, ue.Monster, ue.Plane);
  			}
  		}
  		closeOimoRig() {
  			this.oimoRig && ($e.instance.RemoveRig(this.oimoRig), this.oimoRig = null);
  		}
  		initData() {}
  		dispose() {
  			this.clear(), this.closeOimoRig(), super.dispose();
  		}
  		clear() {
  			Pa.instance.offPolice(this), this._policeMove && this._policeMove.destroy(), this._policeMove = null;
  		}
  		stateChange() {
  			this.ani && (this.lifeState != S.att && this.lifeState != S.run && this.lifeState != S.die || this.ani.crossFade(this.lifeState, .1, 0, 0));
  		}
  		die() {
  			super.die(), console.log(Pa.instance.polices.length), console.log(Pa), Ce.instance.PlayEffectById(je.die, 3, this.displayObject.transform.position), (1 != Pa.instance.polices.length || null == Oe.instance.taskVo || 4 == Oe.instance.taskVo.taskConfig.taskType || Oa.gameOver) && (1 != Pa.instance.polices.length || null != Oe.instance.taskVo || Oa.gameOver) || (o.instance.eventUI(i.ZhengYiWin), oi.instance.playSound(Ne.taskFinish)), this._policeMove && this._policeMove.destroy(), this._policeMove = null;
  		}
  	}
  	class hi extends ri {
  		constructor() {
  			super(...arguments), this._UP = new Laya.Vector3(0, 1, 0), this._startJuji = !1;
  		}
  		initDisplay(t) {
  			super.initDisplay(t);
  			let e = le.findChild(t, "tu_mox");
  			e && (this.ani = e.getComponent(Laya.Animator)), console.error("rabbit ani", this.ani);
  		}
  		initData() {
  			this._policeMove.openRotate = !1, this._attScript.openDelayedAim = !0;
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t);
  			})
  		}
  		aimTarget(t) {
  			if (t && this.initWeapon.attInterval() <= 0) {
  				this.displayObject.transform.lookAt(t, this._UP, !0);
  				this.initWeapon.displayObject.transform.lookAt(t, this._UP, !1);
  				this.initWeapon.aimTarget(t) ? this._startJuji || (this._startJuji = !0, Laya.timer.loop(Da.rabitAimTime, this, this.openAtt)) : (Laya.timer.clear(this, this.openAtt), this._startJuji = !1);
  			}
  		}
  		openAtt() {
  			this.initWeapon.openAtt();
  		}
  		stateChange() {
  			this.lifeState != S.att && this.lifeState != S.run && this.lifeState != S.idle && this.lifeState != S.die && this.lifeState != S.walk || this.ani && this.ani.crossFade(this.lifeState, .1, 0, 0);
  		}
  		die() {
  			super.die(), Laya.timer.clearAll(this), o.instance.event3d(f.TaskChange, Be.rabbitPolice), Laya.Tween.to(this.displayObject.transform, {
  				localScaleX: 0,
  				localScaleY: 0,
  				localScaleZ: 0
  			}, 200, Laya.Ease.elasticInOut, Laya.Handler.create(this, this.clear));
  		}
  	}
  	class li {
  		static get currentTime() {
  			return Laya.timer.currTimer
  		}
  	}
  	li.gravity = new Laya.Vector3(0, -10, 0), li.damping = .95, li.fixedDeltaTime = 33, li.fixedDeltaTimeSeconds = li.fixedDeltaTime / 1e3, li.constraintAccuracy = 3, li.pointMasses = [], li.constraints = [], li.groundY = 1;
  	var ci = new Laya.Vector3,
  		di = new Laya.Vector3;
  	class ui {
  		constructor(t, e, i, s) {
  			this.p1 = t, this.p2 = e, this.resetingDistance = i, this.stiffness = s;
  		}
  		solve() {
  			let t = di;
  			Laya.Vector3.subtract(this.p1.currentPos, this.p2.currentPos, t);
  			let e = Laya.Vector3.scalarLength(t),
  				i = e;
  			0 == i && (i = 1);
  			let s = (this.resetingDistance - e) / i,
  				a = this.p1.invMass / (this.p1.invMass + this.p2.invMass) * this.stiffness,
  				n = this.stiffness - a;
  			Laya.Vector3.scale(t, a * s, ci), Laya.Vector3.add(this.p1.currentPos, ci, this.p1.currentPos), Laya.Vector3.scale(t, -1 * n * s, ci), Laya.Vector3.add(this.p2.currentPos, ci, this.p2.currentPos);
  		}
  	}
  	var _i = new Laya.Vector3;
  	class mi {
  		constructor(t, e = 1, i = "") {
  			this.velocity = new Laya.Vector3, this._pinned = !1, this.links = [], this._currentPos = t, this.lastPos = this._currentPos.clone(), this.acc = new Laya.Vector3, this.mass = e, this.invMass = this.mass > 0 ? 1 / this.mass : 0, this.name = i;
  		}
  		get pinned() {
  			return this._pinned
  		}
  		set pinned(t) {
  			this._pinned = t, "Bip001 Head" == this.name && console.log("------------------------", this._pinned);
  		}
  		set currentPos(t) {
  			this._currentPos = t;
  		}
  		get currentPos() {
  			return this._currentPos
  		}
  		UpdatePhysics(t) {
  			this.ApplyForce(li.gravity);
  			let e = _i;
  			Laya.Vector3.subtract(this._currentPos, this.lastPos, e), Laya.Vector3.scale(e, t, this.velocity), this._currentPos.cloneTo(this.lastPos), Laya.Vector3.scale(e, li.damping, e);
  			let i = t * t,
  				s = this._currentPos;
  			s.x += e.x + this.acc.x * i, s.y += e.y + this.acc.y * i, s.z += e.z + this.acc.z * i, this.pinned && (this.pinNode ? Laya.Vector3.lerp(this._currentPos, this.pinNode.transform.position, .2, this._currentPos) : this.pinPos && this._currentPos.setValue(this.pinPos.x, this.pinPos.y, this.pinPos.z)), this.acc.setValue(0, 0, 0);
  		}
  		SolveConstraints() {
  			for (let t = 0; t < this.links.length; t++) this.links[t].solve();
  			this.currentPos.y = Math.max(this.currentPos.y, li.groundY);
  		}
  		ApplyForce(t) {
  			this.acc.x += t.x * this.invMass, this.acc.y += t.y * this.invMass, this.acc.z += t.z * this.invMass;
  		}
  		AttachTo(t, e, i) {
  			let s = new ui(this, t, e, i);
  			this.links.push(s);
  		}
  	}
  	class pi {
  		constructor() {
  			this.leftOverDeltaTime = 0;
  		}
  		Update() {
  			if (this.currentTime = li.currentTime, null == this.preTime) return void(this.preTime = this.currentTime);
  			let t = this.currentTime - this.preTime;
  			this.preTime = this.currentTime;
  			let e = Math.ceil((t + this.leftOverDeltaTime) / li.fixedDeltaTime);
  			e = Math.min(e, 5), this.leftOverDeltaTime = t - e * li.fixedDeltaTime;
  			for (let t = 1; t <= e; t++) {
  				for (let t = 0; t < li.constraintAccuracy; t++) {
  					for (let t = 0; t < li.pointMasses.length; t++) {
  						li.pointMasses[t].SolveConstraints();
  					}
  					for (let t = 0; t < li.constraints.length; t++) {
  						li.constraints[t].SolveConstraints();
  					}
  				}
  				for (let t = 0; t < li.pointMasses.length; t++) {
  					li.pointMasses[t].UpdatePhysics(li.fixedDeltaTimeSeconds);
  				}
  			}
  		}
  	}
  	class gi {
  		constructor() {
  			this.physics = new pi;
  		}
  		static get inst() {
  			return null == this._inst && (this._inst = new gi), this._inst
  		}
  		Update() {
  			this.physics.Update();
  		}
  		Fake() {}
  		stop() {
  			Xe.instance.RemoveAction(xe.Update, this, this.Update);
  		}
  		start() {
  			Xe.instance.AddAction(xe.Update, this, this.Update);
  		}
  	}
  	class fi {
  		constructor() {
  			this.pointMasses = [], this.pointMassesMap = {}, gi.inst.Fake();
  		}
  		CreatePointMass(t, e, i) {
  			let s = new mi(t, e, i);
  			return li.pointMasses.push(s), this.pointMasses.push(s), null != i && (this.pointMassesMap[i] = s), s
  		}
  		GetPoint(t) {
  			return this.pointMasses[t]
  		}
  		Connect(t, e, i, s) {
  			t < this.pointMasses.length && e < this.pointMasses.length && this.pointMasses[t].AttachTo(this.pointMasses[e], i, s);
  		}
  		GetPointByName(t) {
  			return this.pointMassesMap[t]
  		}
  		ConnectByName(t, e, i, s) {
  			var a = this.GetPointByName(t),
  				n = this.GetPointByName(e);
  			null != a && null !== n && a.AttachTo(n, i, s);
  		}
  		Destory() {
  			for (let t = 0; t < this.pointMasses.length; t++) {
  				let e = this.pointMasses[t],
  					i = li.pointMasses.indexOf(e);
  				li.pointMasses.splice(i, 1);
  			}
  			gi.inst.stop();
  		}
  		SetPinByIndex(t, e) {
  			var i = this.pointMasses[t];
  			i.pinned = null != e, i.pinPos = e;
  		}
  		SetPinByName(t, e) {
  			for (let s = 0; s < this.pointMasses.length; s++) {
  				var i = this.pointMasses[s];
  				i.name == t && (i.pinned = null != e, i.pinPos = e);
  			}
  		}
  		SetLockByIndex(t, e = !0) {
  			var i = this.pointMasses[t];
  			e ? (i.pinned = !0, i.pinPos = i.currentPos.clone()) : (i.pinned = !1, i.pinPos = null);
  		}
  		SetLockByName(t, e = !0) {
  			for (let s = 0; s < this.pointMasses.length; s++) {
  				var i = this.pointMasses[s];
  				i.name == t && (e ? (i.pinned = !0, i.pinPos = i.currentPos.clone()) : (i.pinned = !1, i.pinPos = null));
  			}
  		}
  		GetChildNode(t, e) {
  			if (t.name == e) return t;
  			if (!(t.numChildren > 0)) return null;
  			for (let s = 0; s < t.numChildren; s++) {
  				var i = this.GetChildNode(t.getChildAt(s), e);
  				if (null != i) return i
  			}
  		}
  		GetDistance(t, e, i) {
  			var s = this.GetChildNode(t, e),
  				a = this.GetChildNode(t, i);
  			return null != s && null != a ? Laya.Vector3.distance(s.transform.position, a.transform.position) : 0
  		}
  	}
  	class yi {
  		constructor(t) {
  			this.localPostion = new Laya.Vector3, this.localEular = new Laya.Vector3, this.node = t, t.transform.localPosition.cloneTo(this.localPostion), t.transform.localRotationEuler.cloneTo(this.localEular);
  		}
  	}
  	var Ci, wi, Li, bi, Si, ki, vi, Ii, Pi, Ai, Oi = new Laya.Vector3(0, 1, 0);
  	class Ri extends fi {
  		constructor(t, e) {
  			super(), this.nodes = [], this.bones = {}, this.deltaPos = new Laya.Vector3, this.deltaVel = new Laya.Vector3, this.restLen = 0, this._tmpDir = new Laya.Vector3, this._tmpDir1 = new Laya.Vector3, this._UP = new Laya.Vector3(0, 1, 0), this._tempQ = new Laya.Quaternion, this._target = new Laya.Vector3, this.model = t, this.scene = e, this.pinPoint = new mi(this.model.transform.position.clone(), 1, "center"), li.pointMasses.push(this.pinPoint), this.pinPoint.pinned = !1, this.pinPoint.pinNode = this.model;
  			var i = this.CreatePointMassByNode("Bip002 R Forearm");
  			this.ConnectNode(i, this.pinPoint, 1, .1);
  			var s = this.dragPoint = this.CreatePointMassByNode("Bip002 R Hand", !0);
  			this.headNode = this.bones[s.name].node;
  			this.ConnectNode(s, i, 1, .15), this.restLen = Laya.Vector3.distance(this.pinPoint.currentPos, this.model.transform.position), this.updateCom = this.model.addComponent(Di), this.updateCom.onPreRenderFunc = (() => {
  				this.onUpdate();
  			}), this.Disable();
  		}
  		onUpdate() {
  			if (Laya.Vector3.lerp(this._target, this.dragPoint.pinPos, .1, this.dragPoint.pinPos), this.dragPoint.pinned) {
  				Laya.Vector3.subtract(this.pinPoint.currentPos, this.model.transform.position, this.deltaPos);
  				var t = Laya.Vector3.scalarLength(this.deltaPos);
  				if (!Laya.MathUtils3D.isZero(t)) {
  					Laya.Vector3.normalize(this.deltaPos, this.deltaPos);
  					var e = this.pinPoint.currentPos;
  					e.x -= this.deltaPos.x * t * .1, e.y -= this.deltaPos.y * t * .1, e.z -= this.deltaPos.z * t * .1;
  					var i = 3e3 * (t - this.restLen) + 100 * Laya.Vector3.dot(this.deltaVel, this.deltaPos) / t;
  					Laya.Vector3.scale(this.deltaPos, i, this.deltaPos);
  				}
  				var s = this._tmpDir1;
  				Laya.Vector3.subtract(this._target, this.model.transform.position, s), Laya.Vector3.scale(s, -1, s), Laya.Vector3.add(this.model.transform.position, s, s);
  				var a = this.model.transform.localRotationEulerX,
  					n = this.model.transform.localRotationEulerY,
  					o = this.model.transform.localRotationEulerZ;
  				this.model.transform.lookAt(s, Oi);
  				var r = this.model.transform.localRotationEulerX,
  					h = this.model.transform.localRotationEulerY,
  					l = this.model.transform.localRotationEulerZ;
  				this.model.transform.localRotationEulerX = Laya.MathUtil.lerp(a, r, .1), this.model.transform.localRotationEulerY = Laya.MathUtil.lerp(n, h, .07), this.model.transform.localRotationEulerZ = Laya.MathUtil.lerp(o, l, .1);
  			}
  			for (var c = 0; c < this.pointMasses.length; c++) this.nodes[c].transform.position = this.pointMasses[c].currentPos;
  			s = this._tmpDir1;
  			Laya.Vector3.subtract(this._target, this.model.transform.position, s), Laya.Vector3.scale(s, -1, s), Laya.Vector3.add(this.model.transform.position, s, s), this.headNode.transform.lookAt(s, Oi);
  		}
  		CreatePointMassByNode(t, e = !1, i = 1) {
  			var s = this.GetChildNode(this.model, t);
  			if (null != s) {
  				this.nodes.push(s);
  				var a = new yi(s);
  				return this.bones[t] = a, this.CreatePointMass(s.transform.position.clone(), i, t)
  			}
  		}
  		ConnectNodeByName(t, e, i = 1) {
  			var s = this.GetDistance(this.model, t, e);
  			this.ConnectByName(t, e, s, i);
  		}
  		ConnectNode(t, e, i = 1, s = 1) {
  			var a = Laya.Vector3.distance(t.currentPos, e.currentPos) * s;
  			e.AttachTo(t, a, i);
  		}
  		Drag(t, e = 50, i = 10) {
  			return this._target = t, Laya.timer.clearAll(this), gi.inst.start(), this.dragResolve && (Laya.timer.clear(this, this._onDrag), this.dragResolve(), this.pinPoint.pinned && this.SetPin(!1)), new Promise(s => {
  				var a = new Laya.HitResult,
  					n = new Laya.Vector3;
  				this.model.transform.position.cloneTo(n), n.y += 2, this.scene.physicsSimulation.rayCast(new Laya.Ray(n, new Laya.Vector3(0, -1, 0)), a, 10, ue.Ray, ue.Plane | ue.Build) && (li.groundY = a.point.y + .3), this.SetPin(!0), this.dragPoint.pinned = !0, this.dragPoint.pinPos = this.dragPoint.pinPos || new Laya.Vector3, this.dragPoint.currentPos.cloneTo(this.dragPoint.pinPos);
  				var o = new Laya.Vector3;
  				Laya.Vector3.subtract(t, this.headNode.transform.position, o), Laya.Vector3.normalize(o, o), Laya.timer.frameLoop(1, this, this._onDrag, [t, o, i * i, e]);
  			})
  		}
  		_onDrag(t, e, i, s) {
  			var a = s * Laya.timer.delta * .001;
  			(Laya.Vector3.scale(e, a, this._tmpDir), Laya.Vector3.add(this.dragPoint.pinPos, this._tmpDir, this.dragPoint.pinPos), Laya.Vector3.subtract(t, this.dragPoint.pinPos, this._tmpDir), this.pinPoint.pinned) && (Laya.Vector3.distanceSquared(t, this.dragPoint.pinPos) >= i && this.SetPin(!1));
  			Laya.Vector3.dot(this._tmpDir, e) <= 0 && (Laya.timer.clear(this, this._onDrag), t.cloneTo(this.dragPoint.pinPos), this.dragResolve && this.dragResolve(), this.pinPoint.pinned && this.SetPin(!1));
  		}
  		Release() {
  			Laya.timer.clear(this, this._onDrag), this.dragResolve && (this.dragResolve(), this.dragResolve = null), this.dragPoint.pinned = !1, this.SetPin(!0);
  			this.updateCom.enabled = !1, Laya.timer.once(600, this, () => {
  				for (var t = 0; t < this.pointMasses.length; t++) {
  					var e = this.pointMasses[t],
  						i = (this.bones[e.name], li.pointMasses.indexOf(e));
  					i >= 0 && li.pointMasses.splice(i, 1);
  				}
  			});
  		}
  		SetPin(t = !0) {
  			this.pinPoint.pinned = t;
  		}
  		Disable() {
  			gi.inst.stop(), Laya.timer.clearAll(this), this.SetPin(!1), this.updateCom.enabled = !1;
  			for (var t = 0; t < this.pointMasses.length; t++) {
  				var e = this.pointMasses[t],
  					i = li.pointMasses.indexOf(e);
  				i >= 0 && li.pointMasses.splice(i, 1);
  			}
  			this.model.transform.localRotationEulerX = this.model.transform.localRotationEulerZ = 0, this.model.transform.localScale = new Laya.Vector3(1, 1, 1);
  		}
  		Enable() {
  			this.model.getComponent(Laya.Animator);
  			this.updateCom.enabled = !0;
  			for (var t = 0; t < this.nodes.length; t++) this.nodes[t].transform.position.cloneTo(this.pointMasses[t].currentPos), this.nodes[t].transform.position.cloneTo(this.pointMasses[t].lastPos);
  			for (t = 0; t < this.pointMasses.length; t++) {
  				var e = this.pointMasses[t];
  				li.pointMasses.indexOf(e) < 0 && li.pointMasses.push(e);
  			}
  		}
  	}
  	class Di extends Laya.Script3D {
  		onUpdate() {
  			this.onUpdateFunc && this.onUpdateFunc();
  		}
  		onPreRender() {
  			this.onPreRenderFunc && this.onPreRenderFunc();
  		}
  	}
  	class xi extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.posSpeed = 1, this.rotationSpeed = 10, this.dire = new Laya.Vector3, this.range = [], this.openMove = !0, this.openRotate = !0, this._hitResult = new Laya.HitResult, this._ownerPos = new Laya.Vector3, this._feetPos = new Laya.Vector3(0, -10, 0);
  		}
  		setData(t, e, i, s = !1) {
  			if (this._monsterVo = t, this.deer = i, this._self = e, t.range) {
  				let i = 0,
  					a = 0,
  					n = 0;
  				for (let e in t.range) {
  					let s = t.range[e];
  					this.range.push(new Laya.Vector3(s[0], 0, s[1])), i += s[0], a += s[1], n++;
  				}
  				if (s) {
  					i /= n, a /= n, i -= e.displayObject.transform.position.x, a -= e.displayObject.transform.position.z;
  					for (let t of this.range) t.x -= i, t.z -= a;
  				}
  				this.centerPos = new Laya.Vector3((this.range[0].x + this.range[2].x) / 2, 0, (this.range[0].z + this.range[2].z) / 2);
  			}
  			Laya.timer.once(1e3, this, this._randomPos);
  		}
  		onAwake() {
  			super.onAwake(), this._model = this.owner;
  		}
  		onUpdate() {
  			if (super.onUpdate(), this.destroyed || !this.openMove) return;
  			if (!(le.deltaTime / 1e3 <= 0) && this._self.lifeState != S.att && this._self.lifeState != S.dying && this._self.lifeState != S.die) {
  				if (this._self instanceof Gi) {
  					if (!this._self.canRandomMove()) return;
  					if (this._self.action == wi.dance || this._self.action == wi.sayHallo) return
  				}
  				this._moveToPos();
  			}
  		}
  		_moveToPos() {
  			if (this._tempPos) {
  				this.owner.transform.position.cloneTo(this._ownerPos), this._ownerPos.y = 0;
  				let t = direOneDisV3(this._tempPos, this._ownerPos),
  					e = this._monsterVo.monsterConfig;
  				Laya.Vector3.scale(t, Laya.timer.delta / 1e3 * e.slowMoveSpeed, t), this.openRotate && (this.owner.transform.localRotationEulerY = c.updateRotation(t)), this._updatePos(t), this._self.lifeState != S.walk && this._self.setMotion(S.walk), Laya.Vector3.distance(this._ownerPos, this._tempPos) <= 1 && (this._tempPos = null, Laya.timer.once(1e3, this, this._randomPos));
  			} else this._self.lifeState != S.idle && (this._self.setMotion(S.idle), this._self instanceof Mi && (this.enabled = !1));
  		}
  		_randomPos() {
  			let t = new Laya.Vector3;
  			Laya.Vector3.subtract(this.range[1], this.range[0], t), Laya.Vector3.scale(t, Math.random(), t);
  			let e = new Laya.Vector3;
  			Laya.Vector3.subtract(this.range[3], this.range[0], e), Laya.Vector3.scale(e, Math.random(), e), this._tempPos = this._tempPos || new Laya.Vector3, Laya.Vector3.add(t, e, this._tempPos), Laya.Vector3.add(this.range[0], this._tempPos, this._tempPos);
  		}
  		_updatePos(t) {
  			let e = this._monsterVo.monsterConfig.type == Ge.cattle ? Pa.instance.cattles : Pa.instance.peoples,
  				i = this._self.pos(),
  				s = this._self.radiusSqrt();
  			for (const a of e) {
  				if (a == this._self || a.isDie()) continue;
  				let e, n;
  				if (a instanceof ri ? (e = [a.monsterVo.monsterConfig.radius], n = [a.pos()
  					.clone()
  				]) : a instanceof si && (e = a.radiusSqrt(), n = a.collidersCenterPos()), e && !(e.length <= 0))
  					for (let a = 0; a < e.length; a++) {
  						n[a].y = i.y;
  						let o = l.Add(i, t);
  						if (l.DistanceSqrt(o, n[a]) > s + e[a]) continue;
  						let r = l.Normalize(l.Subtract(i, n[a])),
  							h = -l.Dot(t, r);
  						h < 0 || (Laya.Vector3.scale(r, h, r), Laya.Vector3.add(t, r, t));
  					}
  			}
  			t.y = 0;
  			let a = this.owner.transform,
  				n = a.position.clone();
  			n.y += 5;
  			let o = l.Add(t, this._model.transform.position);
  			this._feetPos.x = n.x, this._feetPos.z = n.z, Oa.s3d.physicsSimulation.raycastFromTo(n, this._feetPos, this._hitResult, ue.Ray, ue.Plane) && (o.y = this._hitResult.point.y), a.position = o;
  		}
  	}
  	class Bi extends Laya.AnimatorStateScript {
  		onStateEnter() {}
  		onStateUpdate() {}
  		onStateExit() {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield et.NextFrame();
  				let t = this.dogBoss.ani.getControllerLayer(0)
  					._crossPlayState;
  				if (!t) return;
  				let e = t.name;
  				if (e == Ci.idleAtt) this.dogBoss.playAni(S.att);
  				else if (e == Ci.att) {
  					let t = Pa.instance.deer.beforePos(),
  						e = Laya.Vector3.distance(t, this.dogBoss.displayObject.transform.position);
  					this.dogBoss._dogBossArm.Enable(), this.dogBoss._dogBossArm.Drag(t, 100, e), this.dogBoss.setMotion(S.attPuase, !0);
  				} else e == Ci.attPuase && (this.dogBoss.setMotion(S.idleAtt, !0), this.dogBoss._dogBossArm.Release());
  			})
  		}
  	}! function(t) {
  		t.att = "att", t.idle = "idle", t.up = "qili", t.atted = "atted", t.die = "die", t.walk = "walk", t.idleAtt = "idleAtt", t.attPuase = "attPuase", t.reAtt = "reAtt";
  	}(Ci || (Ci = {}));
  	class Mi extends ri {
  		constructor() {
  			super(...arguments), this.isDeer = !1, this.isDead = !1;
  		}
  		initDisplay(t) {
  			super.initDisplay(t);
  			this.displayObject;
  			this._dogBossArm = new Ri(this.displayObject, Oa.s3d), this.ani.getControllerLayer(0)
  				._states.forEach(t => {
  					t.addScript(Bi)
  						.dogBoss = this;
  				});
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t), this._attScript.autoAtt = !1, this._attScript.openDelayedAim = !0, this._policeMove.enabled = !1, t.range && (this._randomMove = this.displayObject.addComponent(xi), this._randomMove.setData(t, this, Pa.instance.deer, !0), this._randomMove.enabled = !1);
  			})
  		}
  		getModel() {
  			return this.displayObject.getChildAt(0)
  		}
  		atted(t, e) {
  			if (!this.isDie() && !this.isDead && null != this.displayObject) return this.lifeState != S.att && (this.lifeState == S.idle && this.playAni(Ci.up), this._attScript && (this._attScript.autoAtt = !0, this._attScript.openDelayedAim = !0), oi.instance.playSound(Ne.bossBGM, 0, null, null, .2, .6), this._policeMove.enabled = !0, this.isDeer = !0, this._randomMove && (this._randomMove.openMove = !1, this._randomMove.enabled = !1)), o.instance.event(f.bossHpChange, this.hp), o.instance.event(f.bossStartAtt, [0]), super.atted(t, e)
  		}
  		stateChange() {
  			if (this.ani) {
  				let t = "";
  				this.lifeState == S.att || this.lifeState == S.atted || this.lifeState == S.idle || this.lifeState == S.idleAtt || this.lifeState == S.attPuase || this.lifeState == S.die ? (t = this.lifeState, this.lifeState == S.idle ? (this.ani.speed = 1, this._policeMove && this.isDeer && (this._policeMove.enabled = !0)) : this.lifeState == S.att ? this.playAni(Ci.att, .3) : this.lifeState == S.idleAtt && Laya.timer.frameOnce(3, this, () => {
  					this._dogBossArm.Release();
  				})) : this.lifeState == S.run ? (this.ani.speed = 3, t = Ci.walk, this._policeMove && this.isDeer && (this._policeMove.enabled = !0), this._dogBossArm.Release()) : this.lifeState == S.walk && (this.ani.speed = 1.5, t = Ci.walk, this._policeMove && this.isDeer && (this._policeMove.enabled = !0), this._dogBossArm.Release()), this.playAni(t);
  			}
  		}
  		playAni(t, e = .1) {
  			this.ani.crossFade(t, e, 0, 0);
  		}
  		GetChildNode(t, e) {
  			if (t.name == e) return t;
  			if (!(t.numChildren > 0)) return null;
  			for (let s = 0; s < t.numChildren; s++) {
  				var i = this.GetChildNode(t.getChildAt(s), e);
  				if (null != i) return i
  			}
  		}
  		endAtt() {
  			Laya.timer.clearAll(this.startAtt), this._attScript && (this._attScript.autoAtt = !1, this._attScript.openDelayedAim = !1, this._policeMove.enabled = !1, this.isDeer = !1, this.lifeState == S.att && this.playAni(S.walk), this._randomMove && (this._randomMove.enabled = !0, this._randomMove.openMove = !0)), o.instance.event(f.bossEndAtt), oi.instance.stopSound(Ne.bossBGM);
  		}
  		dispose() {
  			oi.instance.stopSound(Ne.bossBGM), super.dispose();
  		}
  		die() {
  			this.isDead = !0, super.die(), this.initWeapon.stopAtt(), this.initWeapon.dispose(), this.ani.enabled = !1, o.instance.event(f.bossHpChange, 0), oi.instance.stopSound(Ne.bossBGM), Laya.Tween.to(this.displayObject.transform, {
  				localPositionY: .5,
  				localScaleX: 0,
  				localScaleY: 0,
  				localScaleZ: 0
  			}, 400, Laya.Ease.linearInOut, Laya.Handler.create(this, this.clear));
  		}
  	}
  	class Ti extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.posSpeed = 1, this.rotationSpeed = 10, this.dire = new Laya.Vector3, this.openFollow = !0, this.openRotate = !0, this._hitResult = new Laya.HitResult, this._start = !0, this._90Quaternion = new Laya.Quaternion, this._r90Quaternion = new Laya.Quaternion, this._speed = 0, this._runtimeHitResult = new Laya.HitResult, this._feetPos = new Laya.Vector3(0, -10, 0), this.speed = 1, this._currentWP = {
  				position: new Laya.Vector3(0, 0, 0),
  				index: -999
  			}, this._runtimeRaycastHit = new Laya.HitResult, this._runtimeYResult = new Laya.HitResult, this._hasReachWp = !1, this._reachDistanceSqr = 2, this._runtimeTimer = 0, this._viewInterval = 500, this._steerings = new Array, this._steeringForce = new Laya.Vector3(0, 0, 0), this._acceleration = new Laya.Vector3(0, 0, 0), this._computerInverval = .1, this._computerTimer = 0, this._velocity = new Laya.Vector3(0, 0, 0), this._deltaVelocity = new Laya.Vector3(0, 0, 0), this._deltaDistance = new Laya.Vector3(0, 0, 0), this._nextPosition = new Laya.Vector3(0, 0, 0);
  		}
  		get self() {
  			return this._self
  		}
  		setData(t, e, i) {
  			this._monsterVo = t, this.deer = i, this._self = e;
  		}
  		onAwake() {
  			super.onAwake(), this._model = this.owner, Laya.Quaternion.createFromYawPitchRoll(deg2rad(90), 0, 0, this._90Quaternion), Laya.Quaternion.createFromYawPitchRoll(deg2rad(-90), 0, 0, this._r90Quaternion), this._steerings.push(new Ui(this)), this._steerings.push(new Vi(this));
  		}
  		onUpdate() {
  			if (super.onUpdate(), this.destroyed || !this._start) return;
  			if (!(le.deltaTime / 1e3 <= 0 || this._self.lifeState == S.att || this._self.lifeState == S.dying || this._self.lifeState == S.die || this._self.lifeState == S.idleAtt || this._self.lifeState == S.attPuase || this._self instanceof Gi && (this._self.action == wi.dance || this._self.action == wi.sayHallo) || this.self instanceof hi && 1 == this.self._startJuji)) {
  				if (this.self instanceof Mi) {
  					let t = new Laya.Vector3(this.self.displayObject.transform.position.x, 0, this.self.displayObject.transform.position.z);
  					Laya.Vector3.distance(this.self._randomMove.centerPos, t) > 30 && this.self.endAtt();
  				}
  				this.openFollow && this._follow();
  			}
  		}
  		start() {
  			this._start = !0;
  		}
  		stop() {
  			this._start = !1;
  		}
  		destroy() {
  			super.destroy();
  		}
  		_follow() {
  			let t = this.owner.transform.position,
  				e = this.deer.attedPos(),
  				i = new Laya.Vector3;
  			Laya.Vector3.subtract(t, e, i), i.y = 0;
  			let s = Laya.Vector3.scalarLength(i),
  				a = this._monsterVo.monsterConfig.warning;
  			if (this._self instanceof Gi && s <= Da.peopleFollowDis) this._self.setMotion(S.idle, !0);
  			else if (-1 == a || s < a) {
  				this._currentWP.index >= 0 && (e = this._currentWP.position);
  				let i = direOneDisV3(e, t),
  					a = this._monsterVo.monsterConfig,
  					n = s >= a.slowRange;
  				this._speed = n ? a.moveSpeed : a.slowMoveSpeed, Laya.Vector3.scale(i, Laya.timer.delta / 1e3 * this._speed, i), n ? this.self instanceof Mi ? this._self.setMotion(S.walk) : this._self.setMotion(S.run) : this._self.setMotion(S.walk), this.UpdatePostition();
  			} else this._self.setMotion(S.idle);
  		}
  		_updatePos(t) {
  			t.y = 0;
  			let e = Pa.instance.polices.concat(Pa.instance.blockBuilds);
  			e = e.concat(Pa.instance.deerPeoples);
  			let i = this.owner.transform.position,
  				s = this.deer.pos(),
  				a = l.DistanceSqrt(i, s);
  			if (a < this._self.attRangeSqrt()) return;
  			let n = this._self.radiusSqrt();
  			for (const s of e) {
  				if (s == this._self || s.isDie()) continue;
  				let e, o, r, h = !1;
  				if (s instanceof ri || s instanceof Gi ? (e = [s.monsterVo.monsterConfig.radius], o = [s.pos()
  					.clone()
  				]) : s instanceof si && (h = !0, e = s.radiusSqrt(), o = s.collidersCenterPos(), r = s.vertexsPos()), e && !(e.length <= 0))
  					for (let r = 0; r < e.length; r++) {
  						o[r].y = i.y;
  						let c = l.Add(i, t);
  						if (l.DistanceSqrt(c, o[r]) > n + e[r]) continue;
  						let d = this.owner.transform.position.clone();
  						d.y += 5;
  						let u = this.deer.pos()
  							.clone();
  						if (u.y += 5, Oa.s3d.physicsSimulation.raycastFromTo(d, u, this._runtimeHitResult) || s instanceof ri)
  							if (h && a > e[r]) Laya.Vector3.transformQuat(t, this._r90Quaternion, t);
  							else {
  								let e = l.Normalize(l.Subtract(i, o[r])),
  									s = -l.Dot(t, e);
  								if (s < 0) continue;
  								Laya.Vector3.scale(e, s, e), Laya.Vector3.add(t, e, t);
  							}
  					}
  			}
  			let o = this.owner.transform;
  			i.y += 5, Laya.Vector3.add(t, o.position, o.position), this._feetPos.x = i.x, this._feetPos.z = i.z, Oa.s3d.physicsSimulation.raycastFromTo(i, this._feetPos, this._hitResult, ue.Ray, ue.Plane) && (o.position.y = this._hitResult.point.y), o.position = o.position;
  		}
  		get target() {
  			return this._currentWP.position
  		}
  		get position() {
  			return this.owner.transform.position
  		}
  		ExistBuildBetween() {
  			let t = null,
  				e = this.owner.transform.position.clone();
  			e.y += 2;
  			let i = this.deer.pos()
  				.clone();
  			if (i.y = e.y, Oa.s3d.physicsSimulation.raycastFromTo(e, i, this._runtimeRaycastHit, ue.Ray, ue.Build)) {
  				let e = this._runtimeRaycastHit.collider.owner.parent.parent;
  				if (e && 0 == e.name.indexOf("Building")) {
  					let i = Pa.instance.blockBuilds;
  					for (let s = 0; s < i.length; s++)
  						if (i[s].EqualDisplayBuild(e)) {
  							t = i[s];
  							break
  						}
  				}
  			}
  			return t
  		}
  		IsLastBuild(t) {
  			return !(!t || t != this._currentBlockBuild)
  		}
  		GetNearestWayPoint(t) {
  			return t.GetNearestWapPointFromBound(this.owner.transform.position, this.deer.pos())
  		}
  		GetNextWpNearBuild(t, e) {
  			return t.GetNextWayPointFromBound(e, this.deer.pos())
  		}
  		UpdatePositionY(t) {
  			if (null == t) throw ": 参数为空（不允许）";
  			t.y = 0;
  			let e = t.clone();
  			e.y += 5;
  			let i = t.clone();
  			return i.y -= 5, Oa.s3d.physicsSimulation.raycastFromTo(e, i, this._runtimeYResult, ue.Ray, ue.Plane) ? this._runtimeYResult.point.y : 0
  		}
  		UpdatePostition() {
  			if (!(Laya.Vector3.distanceSquared(this.owner.transform.position, this.deer.pos()) < 1))
  				if (this._hasReachWp) {
  					let t = this.ExistBuildBetween();
  					t ? (this.IsLastBuild(t) && this._currentWP && this._currentWP.index >= 0 ? this._currentWP = this.GetNextWpNearBuild(t, this._currentWP) : this._currentWP = this.GetNearestWayPoint(t), this._currentBlockBuild = t) : (this._currentWP.position = this.deer.pos()
  						.clone(), this._currentWP.index = -1, this._currentBlockBuild = null), this._hasReachWp = !1;
  				} else {
  					if (this._runtimeTimer += Laya.timer.delta, this._runtimeTimer > this._viewInterval) {
  						this._runtimeTimer = 0;
  						let t = this.ExistBuildBetween();
  						if (t) this._reachDistanceSqr = 2, this.IsLastBuild(t) || (this._currentWP = t.GetNearestWapPointFromBound(this.owner.transform.position, this.deer.pos()), this._currentBlockBuild = t);
  						else {
  							let t = this._monsterVo.monsterConfig.warning,
  								e = t * t;
  							this._reachDistanceSqr = t <= 0 ? 0 : e, this._currentBlockBuild = null, this._currentWP.position = this.deer.pos()
  								.clone(), this._currentWP.index = -1;
  						}
  					}
  					if (this._currentWP.index < -900) return;
  					let t = new Laya.Vector3(0, 0, 0);
  					this.self instanceof Mi ? Laya.Vector3.subtract(this.deer.pos(), this.owner.transform.position, t) : Laya.Vector3.subtract(this._currentWP.position, this.owner.transform.position, t), t.y = 0;
  					let e = t.x * t.x + t.z * t.z;
  					e > this._reachDistanceSqr ? (this.self instanceof Mi && (this.self.lifeState != S.walk && (this.self.lifeState = S.walk, this.self.setMotion(S.walk, !0)), e > 200 && this.self.endAtt()), this.ComputerForce(), this.Domove()) : this._hasReachWp = !0;
  				}
  		}
  		get _sqrVelocity() {
  			return Laya.Vector3.scalarLengthSquared(this._velocity)
  		}
  		get sqrMaxSpeed() {
  			return this._speed * this._speed
  		}
  		get maxSpeed() {
  			return this._speed
  		}
  		get velocity() {
  			return this._velocity
  		}
  		get deltaTime() {
  			return Laya.timer.delta / 1e3
  		}
  		ComputerForce() {
  			this._computerTimer += this.deltaTime, this._computerTimer > this._computerInverval && (this._computerTimer = 0, this._steeringForce.toDefault(), this._steerings.forEach(t => {
  				if (t.forceEnable) {
  					let e = t.AddForce();
  					Laya.Vector3.scale(e, t.forceWight, e), Laya.Vector3.add(this._steeringForce, e, this._steeringForce);
  				}
  			}), Laya.Vector3.scale(this._steeringForce, 1, this._acceleration));
  		}
  		Domove() {
  			Laya.Vector3.scale(this._acceleration, this.deltaTime, this._deltaVelocity), Laya.Vector3.add(this._velocity, this._deltaVelocity, this._velocity), this._sqrVelocity > this.sqrMaxSpeed && (Laya.Vector3.normalize(this._velocity, this._velocity), Laya.Vector3.scale(this._velocity, this._speed, this._velocity)), this._velocity.y = 0, Laya.Vector3.scale(this._velocity, this.deltaTime, this._deltaDistance), Laya.Vector3.add(this.owner.transform.position, this._deltaDistance, this._nextPosition), this._nextPosition.y = this.UpdatePositionY(this._nextPosition), this.owner.transform.position = this._nextPosition;
  			let t = new Laya.Vector3;
  			Laya.Vector3.subtract(this.deer.pos(), this.owner.transform.position, t), this.openRotate && Laya.Vector3.scalarLengthSquared(t) > .05 && (this.owner.transform.localRotationEulerY = c.updateRotation(t));
  		}
  	}
  	class Ui {
  		constructor(t) {
  			this._sqrSlowDist = 1, this._toTarget = new Laya.Vector3(0, 0, 0), this._desiredVelocity = new Laya.Vector3(0, 0, 0), this._returnForce = new Laya.Vector3(0, 0, 0), this.forceWight = 1, this.ai = t;
  		}
  		get forceEnable() {
  			return !!this.ai || (console.error("抵达行为所属的AI为空，未设置归属（不允许）,此模块不会生效"), !1)
  		}
  		AddForce() {
  			return this._returnForce.toDefault(), Laya.Vector3.subtract(this.ai.target, this.ai.position, this._toTarget), Laya.Vector3.scalarLengthSquared(this._toTarget) > this._sqrSlowDist ? (Laya.Vector3.normalize(this._toTarget, this._toTarget), Laya.Vector3.scale(this._toTarget, this.ai.maxSpeed, this._desiredVelocity), Laya.Vector3.subtract(this._desiredVelocity, this.ai.velocity, this._returnForce)) : (Laya.Vector3.subtract(this._toTarget, this.ai.velocity, this._desiredVelocity), Laya.Vector3.subtract(this._desiredVelocity, this.ai.velocity, this._returnForce)), this._returnForce
  		}
  	}
  	class Vi {
  		constructor(t) {
  			this._comfortDistance = .3, this._multiplierInsideComfortDist = 1, this.forceWight = 1, this._steeringForce = new Laya.Vector3(0, 0, 0), this._toNeighbor = new Laya.Vector3(0, 0, 0), this.ai = t;
  		}
  		get forceEnable() {
  			return !!this.ai || (console.error("群体保持距离行为所属的AI为空，未设置归属（不允许）,此模块不会生效"), !1)
  		}
  		get _neighbors() {
  			return Pa.instance.polices.concat(Pa.instance.deerPeoples)
  				.concat(Pa.instance.avoidLS)
  		}
  		AddForce() {
  			this._steeringForce.toDefault();
  			for (const t of this._neighbors)
  				if (t && t != this.ai.self && null != t.displayObject) {
  					Laya.Vector3.subtract(this.ai.position, t.pos(), this._toNeighbor);
  					let e = Laya.Vector3.scalarLength(this._toNeighbor);
  					if (e < 4) {
  						Laya.Vector3.normalize(this._toNeighbor, this._toNeighbor), Laya.Vector3.scale(this._toNeighbor, 3 / e / 7, this._toNeighbor), Laya.Vector3.add(this._steeringForce, this._toNeighbor, this._steeringForce), e < this._comfortDistance && Laya.Vector3.scale(this._steeringForce, this._multiplierInsideComfortDist, this._steeringForce);
  						let i = t.__avoid;
  						null != i && Laya.Vector3.scale(this._steeringForce, i, this._steeringForce);
  					}
  				} return this._steeringForce
  		}
  	}
  	class Ei extends Laya.AnimatorStateScript {
  		onStateEnter() {}
  		onStateUpdate() {}
  		onStateExit() {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield et.NextFrame();
  				let t = this.people.ani.getControllerLayer(0)
  					.getCurrentPlayState()
  					.animatorState.name;
  				t == wi.dance || t == wi.sayHallo ? this.people.setMotion(S.idle, !0) : t != wi.atted && t != wi.qi || this.people.setMotion(S.idle, !0);
  			})
  		}
  	}! function(t) {
  		t.none = "", t.dance = "dance", t.sayHallo = "sayHallo", t.atted = "atted2", t.Caught = "Caught", t.idle = "idle", t.walk = "walk", t.die = "die", t.dao = "dao", t.paxia = "paxia", t.qi = "qi";
  	}(wi || (wi = {}));
  	class Gi extends ni {
  		constructor() {
  			super(...arguments), this.isDeer = !1, this.attackedPos = new Laya.Vector3, this._hitResult = new Laya.HitResult, this.sound = !1, this._UP = new Laya.Vector3(0, 1, 0), this.isDao = !1;
  		}
  		initDisplay(t) {
  			this._collisionGroup = ue.People, this._canCollideWith = ue.Deer | ue.Ray | ue.Weapon, super.initDisplay(t), this._collsion = c.getPhysicComponent(t), this._collsion && (this._collsion[fe.collsionSelf] = this), this._antlers = le.findChild(t, fe.Antlers), this._antlers && (this._antlers.active = !1), this.shadow = le.findChild(t, "shadow"), this.ani = t.getChildAt(0)
  				.getComponent(Laya.Animator), this.ani.getControllerLayer(0)
  				._states.forEach(t => {
  					t.addScript(Ei)
  						.people = this;
  				}), this.setMotion(S.idle), this.faction = L.enemy, Pa.instance.canHandLifes.push(this), o.instance.on3d(f.DeerStopDance, this, this.StopDance);
  		}
  		canRandomMove() {
  			return !(this.isDeer || this.lifeState != S.idle && this.lifeState != S.run && this.lifeState != S.walk)
  		}
  		getModel() {
  			return this.displayObject
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t), this._policeMove = this.displayObject.addComponent(Ti), this._policeMove.setData(t, this, Pa.instance.deer), this._policeMove.openFollow = !1, this.attNum = t.monsterConfig.att, t.range && (this._randomMove = this.displayObject.addComponent(xi), this._randomMove.setData(t, this, Pa.instance.deer, !0));
  			})
  		}
  		onCollisionEnter(t, e) {
  			if (!this.isDeer) return;
  			let i = e.other[fe.collsionSelf];
  			if (i && i instanceof Le) {
  				if (i.faction == this.faction) return;
  				this.displayObject.transform.position.cloneTo(this.attackedPos), this.attackedPos.y += 1, i.atted(this.attNum, this.attackedPos);
  			}
  		}
  		deerSun(t) {
  			if (t) {
  				this.isDeer = !0, this._canCollideWith = ue.Deer | ue.Build | ue.Car | ue.Monster | ue.Ray, o.instance.event3d(f.TaskChange, Be.deerOnePeople), this._policeMove.openFollow = !0, this.faction = L.friendly;
  				let t = Ne.deerSun + h.RandomInt(1, 3);
  				oi.instance.playSound(t), Pa.instance.deerPeoples.push(this), this._antlers && (this._antlers.active = !0), this.displayObject.transform.localRotationEuler = new Laya.Vector3(0, 0, 0);
  			} else {
  				this.isDeer = !1, this._canCollideWith = ue.Deer | ue.Ray | ue.Weapon, this._policeMove.openFollow = !1, this.faction = L.enemy, this.setMotion(S.idle), this.displayObject.transform.localRotationEuler = new Laya.Vector3(0, 0, 0);
  				let t = Pa.instance.deerPeoples.indexOf(this);
  				t >= 0 && Pa.instance.deerPeoples.splice(t, 1), this._antlers && (this._antlers.active = !1);
  			}
  			this._collsion.canCollideWith = this._canCollideWith;
  		}
  		deerSunReversal() {
  			this.deerSun(!this.isDeer);
  		} catch (t) {
  			this._randomMove && (this._randomMove.openMove = !1), super.catch(t), this._playAni(wi.Caught), this._collsion.canCollideWith = null, le.splitNode(Pa.instance.canHandLifes, this), this.shadow.active = !1;
  		}
  		putDowned() {
  			super.putDowned(), this._playAni(wi.idle), this._collsion.canCollideWith = this._canCollideWith, this.displayObject.transform.rotationEuler.x = 0, this.displayObject.transform.rotationEuler.z = 0, this.displayObject.transform.rotationEuler = this.displayObject.transform.rotationEuler;
  			let t = this.displayObject.transform.position.clone();
  			t.y += 5;
  			let e = new Laya.Vector3;
  			e.x = t.x, e.y = -10, e.z = t.z, Oa.s3d.physicsSimulation.raycastFromTo(t, e, this._hitResult, ue.Ray, ue.Plane) && (t.y = this._hitResult.point.y), this.displayObject.transform.position = t, Pa.instance.canHandLifes.push(this), this._randomMove && (this._randomMove.openMove = !0), this.setMotion(S.idle), this.shadow.active = !0;
  		}
  		sayHello() {
  			this._lookAtDeer(), this.action = wi.sayHallo, this._playAni(this.action);
  		}
  		dance() {
  			this._lookAtDeer(), this.action = wi.dance, this._playAni(this.action);
  		}
  		StopDance() {
  			this.action = wi.idle, this._playAni(this.action), this.setMotion(S.idle);
  		}
  		canCatched() {
  			return !0
  		}
  		atted(t, e) {
  			if (!this.isDao) return this._collsion.enabled = !1, this.sound || (this.sound = !0, "peopel_n" == this._collsion.owner.name.substr(0, 8) ? oi.instance.playSound(Ne.peopleAttedNv) : oi.instance.playSound(Ne.peopleAtted), Laya.timer.once(800, this, () => {
  				this.sound = !1;
  			})), super.atted(t, e)
  		}
  		_lookAtDeer() {
  			this.displayObject.transform.lookAt(Pa.instance.deer.displayObject.transform.position, this._UP, !0), this.displayObject.transform.localRotationEulerY += 180;
  		}
  		stateChange() {
  			this.lifeState == S.run || this.lifeState == S.walk || this.lifeState == S.idle || this.lifeState == S.die ? (this._playAni(this.lifeState), this.action = this.lifeState) : this.lifeState == S.atted && (this.isDao ? this._playAni(wi.paxia) : (this.isDao = !0, this._playAni(wi.dao)), this.action = wi.dao, Laya.timer.clear(this, this.onStandup), Laya.timer.once(1e3, this, this.onStandup));
  		}
  		onStandup() {
  			this.isDao = !1, this._playAni(wi.qi), this._collsion.enabled = !0;
  		}
  		_playAni(t, e = .1) {
  			this.ani && this.ani.crossFade(t, e, 0, 0);
  		}
  		die() {
  			super.die(), o.instance.off3d(f.DeerStopDance, this, this.StopDance), this._collsion.destroy();
  		}
  	}
  	class ji extends Qe {
  		constructor() {
  			super(...arguments), this._pos = new Laya.Vector4, this.use = !1, this.realPos = new Laya.Vector3;
  		}
  		onConstruct() {
  			super.onConstruct();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "bloodBar")
  		}
  		setLifeSprite(t) {
  			this._lifeSprite != t && (this._lifeSprite = t, Xe.instance.AddAction(xe.Update, this, this._LogicUpdate));
  		}
  		hpChange(t) {
  			this.displayObject && ((null == this.lifeSpritePos || this.lifeSpritePos.x < -5) && (this.displayObject.visible = !1), this._lifeSprite instanceof Gi && (this.displayObject.visible = !0), this.max = this._lifeSprite.hpLimit, this.value = this._lifeSprite.lastHp, this.m_text.text = "" + t, this.m_t0.play(), this.tweenValue(this._lifeSprite.hp, Da.hpDownTime), this.lifeSpritePos = this._lifeSprite.displayObject.transform.position, Laya.timer.once(2, this, () => {
  				this.displayObject.visible = !0;
  			}), null != this._lifeSprite.attPos && (this.offsetPos = new Laya.Vector3, Laya.Vector3.subtract(this._lifeSprite.attPos, this.lifeSpritePos, this.offsetPos)), this.use && Laya.timer.clearAll(this), this.use = !0, Laya.timer.once(1e3 * Da.hpDisTime, this, () => {
  				hs.instance.clearBloodBar(this), this.dispose();
  			}));
  		}
  		dispose() {
  			if (this.displayObject) try {
  				Laya.timer.clearAll(this), Xe.instance.RemoveAction(xe.Update, this, this._LogicUpdate), super.dispose();
  			} catch (t) {
  				console.error("Blood bar dispose error:", t);
  			} else console.warn("Blood bar display object is null , can't dispose");
  		}
  		_LogicUpdate() {
  			this.lifeSpritePos && (null != this.offsetPos ? Laya.Vector3.add(this.lifeSpritePos, this.offsetPos, this.realPos) : this.lifeSpritePos.cloneTo(this.realPos), Oa.camera.worldToViewportPoint(this.realPos, this._pos), this.x = this._pos.x, this.y = this._pos.y, this._pos.w < 0 && (this.visible = !1, hs.instance.clearBloodBar(this), this.dispose())), 0 == Oa.camera.enableRender && this.dispose();
  		}
  	}
  	class Ni extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "setView")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_musicBtn = this.getChildAt(6), this.m_soundBtn = this.getChildAt(7), this.m_returnBtn = this.getChildAt(8), this.m_restartBtn = this.getChildAt(9), this.m_closeBtn = this.getChildAt(10), this.m_slider = this.getChildAt(11), this.m_shiJiaoslider = this.getChildAt(12);
  		}
  	}
  	Ni.URL = "ui://kk7g5mmmlgqv39";
  	class Fi extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "Main")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_lvBtn = this.getChildAt(1), this.m_bg = this.getChildAt(2), this.m_startBtn = this.getChildAt(3), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	Fi.URL = "ui://kk7g5mmmjhmq1";
  	class Hi extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "failView")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_returnBtn = this.getChildAt(4), this.m_restartBtn = this.getChildAt(5), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	Hi.URL = "ui://kk7g5mmmoigv1l";
  	class Wi {
  		constructor() {
  			this.platform = [Laya.Browser.onWeiXin2, Laya.Browser.onVVMiniGame, Laya.Browser.onKGMiniGame, Laya.Browser.onQGMiniGame, Laya.Browser.onHWMiniGame, Laya.Browser.onTTMiniGame, Laya.Browser.onQQMiniGame, Laya.Browser.onBDMiniGame], this.xiamiVid = "9ae13c0e2adff55159f849757b811f14", this.xiaomiSid = "1877b6c7f05923579cf5386943b5947e", this.opBid = "738255", this.opVid = "738258", this.opBoxid = "738259", this.opSid = "738257", this.ttBid = "2eacc1bc9am64ln580", this.ttSid = "4gv98g2pqg6hq20c3p", this.ttVid = "3004cgs7n1tm2ekli2", this.wxbid = "adunit-60803e20c4548e84", this.wxsid = "2300003220_02", this.wxvid = "2300003220_01", this.qbid = "af412587f60d7581e91ab9fc695bd6ec", this.qsid = "4e8c4c0621724511f1b7ae1e9f3fc501", this.qvid = "d89ff8c8dd6db9f157e12b30f1d8a918", this.qheid = "0c27d0dddb946322a648f67a708aed8e", this.qjimu = "f825b42aac3d50c3a831492e10f93931", this.isClose = !0, this.isDone = 0;
  		}
  		addDesk() {
  			if (this.platform[6]) {
  				let t = Laya.Browser.window.qq;
  				t.saveAppToDesktop({
  					success: () => {
  						t.showToast({
  							title: "添加桌面成功",
  							icon: "success",
  							duration: 2e3
  						});
  					},
  					fail: () => {
  						t.showToast({
  							title: "添加桌面失败",
  							icon: "fail",
  							duration: 2e3
  						});
  					}
  				});
  			} else this.platform[3] && qg.hasShortcutInstalled({
  				success: function(t) {
  					0 == t ? qg.installShortcut({
  						success: function() {
  							qg.showToast({
  								title: "添加桌面成功",
  								icon: "success",
  								duration: 2e3
  							});
  						},
  						fail: function(t) {
  							qg.showToast({
  								title: "添加桌面失败",
  								icon: "fail",
  								duration: 2e3
  							});
  						}
  					}) : qg.showToast({
  						title: "你已添加桌面了",
  						icon: "success",
  						duration: 2e3
  					});
  				}
  			});
  		}
  		loadBanner(t = !0) {
  			if (this.platform[0]) {
  				wx.createBannerAd({
  						adUnitId: this.wxbid,
  						style: {
  							left: 300,
  							top: 0,
  							width: 350
  						}
  					})
  					.show();
  			} else if (this.platform[1]);
  			else if (this.platform[2]);
  			else if (this.platform[3]) 1 == t ? (this.top = 0, this.left = 600) : (this.top = 900, this.left = 600), this.opBannerAd = qg.createBannerAd({
  				adUnitId: this.opBid,
  				style: {
  					top: this.top,
  					left: this.left,
  					width: 900,
  					height: 300
  				}
  			}), this.opBannerAd.show(), this.opBannerAd.onLoad(function() {
  				console.log("banner 广告加载成功");
  			}), this.opBannerAd.onHide(function() {});
  			else if (this.platform[4]);
  			else if (this.platform[5]) {
  				var e = 0;
  				e = t ? 0 : 280, null != Laya.Browser.window.tt && (this.tt = window.tt, this.ttBannerAd = this.tt.createBannerAd({
  					adUnitId: this.ttBid,
  					adIntervals: 50,
  					style: {
  						top: e,
  						left: 300,
  						width: 200
  					}
  				}), this.ttBannerAd.show(), this.ttBannerAd.onLoad(() => {
  					this.ttBannerAd.show();
  				}));
  			} else if (this.platform[6]) {
  				console.log("qBanner");
  				let t = Laya.Browser.window.qq,
  					e = t.createBannerAd({
  						adUnitId: this.qbid,
  						style: {
  							top: 0,
  							left: 300,
  							width: 320
  						}
  					});
  				this.qBannerAd = e;
  				t.getSystemInfoSync();
  				e.onResize(t => {
  					console.log("Resize后正式宽高:", t.width, t.height), e.style.top = 0, e.style.left = 300, e.show()
  						.then(() => {
  							console.log("bannerAd show ok");
  						})
  						.catch(t => {
  							console.log("bannerAd show error", t);
  						});
  				});
  			}
  		}
  		editBanner(t = !1) {
  			Laya.Browser.onQGMiniGame && (null != this.opBannerAd ? this.opBannerAd.style = 0 == t ? {
  				top: 900,
  				left: 600,
  				width: 900,
  				height: 300
  			} : {
  				top: 0,
  				left: 600,
  				width: 900,
  				height: 300
  			} : Laya.Browser.onTTMiniGame && null != this.ttBannerAd && (this.ttBannerAd.style = 0 == t ? {
  				top: 280,
  				left: 300,
  				width: 200
  			} : {
  				top: 0,
  				left: 300,
  				width: 200
  			}, this.ttBannerAd.show(), this.ttBannerAd.onLoad(() => {
  				this.ttBannerAd.show();
  			})));
  		}
  		hiddenBanner() {
  			Laya.Browser.onTTMiniGame ? null != this.ttBannerAd && this.ttBannerAd.hide() : Laya.Browser.onQQMiniGame && null != this.qBannerAd && this.qBannerAd.hide();
  		}
  		loadHezi() {
  			if (this.platform[0]);
  			else if (this.platform[1]);
  			else if (this.platform[2]);
  			else if (this.platform[3]) {
  				var t;
  				qg.getNetworkType({
  						success: function(t) {
  							t.networkType.startsWith("none");
  						}
  					}), qg.getSystemInfoSync()
  					.platformVersionCode >= 1076 ? t = qg.createGamePortalAd({
  						adUnitId: this.opBoxid
  					}) : console.log("快应用平台版本号低于1076，暂不支持互推盒子相关 API"), t.load()
  					.then(function() {
  						console.log("load success"), t.show();
  					})
  					.catch(function(t) {
  						qg.showToast({
  							title: "暂无广告",
  							icon: "success",
  							duration: 1e3
  						}), console.log("load fail with:" + t.errCode + "," + t.errMsg);
  					}), t.onError(function(t) {});
  			} else if (this.platform[4]);
  			else if (this.platform[6]) {
  				let t = Laya.Browser.window.qq,
  					e = t.createAppBox({
  						adUnitId: this.qheid
  					});
  				e.load()
  					.then(() => {
  						e.show();
  					})
  					.catch(function(e) {
  						t.showToast({
  							title: "暂无广告",
  							icon: "success",
  							duration: 1e3
  						}), console.log("load fail with:" + e.errCode + "," + e.errMsg);
  					});
  			} else if (this.platform[5]) {
  				if (null == Laya.Browser.window.tt) return void this.showMsgDlg(adsDlg);
  				let t = window.tt;
  				"ios" !== t.getSystemInfoSync()
  					.platform ? t.showMoreGamesModal({
  						appLaunchOptions: [{
  							appId: "tt611c17a1fe25de8002",
  							query: "foo=bar&baz=qux",
  							extraData: {}
  						}],
  						success(t) {
  							console.log("success", t.errMsg);
  						},
  						fail(t) {
  							console.log("fail", t.errMsg);
  						}
  					}) : t.showToast({
  						title: " iOS不支持此功能"
  					});
  			}
  		}
  		loadScreen() {
  			Laya.timer.once(10, this, () => {
  				if (this.platform[0]) {
  					let t = null;
  					wx.createInterstitialAd && (t = wx.createInterstitialAd({
  							adUnitId: this.wxsid
  						})), t && t.show()
  						.catch(t => {
  							console.error(t);
  						});
  				} else if (this.platform[1]);
  				else if (this.platform[2]) {
  					qg.createInterstitialAd({
  							adUnitId: this.xiaomiSid
  						})
  						.show();
  				} else if (this.platform[3]) this.addyuansheng();
  				else if (this.platform[4]);
  				else if (this.platform[5]) {
  					this.loadBanner(!0), null != Laya.Browser.window.tt && (this.tt = window.tt, this.ad = this.tt.createInterstitialAd({
  							adUnitId: this.ttSid
  						}), this.ad.load()
  						.then(() => {
  							this.ad.show()
  								.then(() => {
  									console.log("插屏广告展示成功");
  								});
  						})
  						.catch(t => {
  							console.log(t);
  						}), this.ad.onClose(() => {
  							Laya.timer.once(2e3, this, () => {
  								this.hiddenBanner();
  							});
  						}));
  				} else if (this.platform[6]) {
  					let t = Laya.Browser.window.qq;
  					this.ad = t.createInterstitialAd({
  							adUnitId: this.qsid
  						}), this.ad.load()
  						.then(() => {
  							this.ad.show()
  								.then(() => {
  									console.log("插屏广告展示成功");
  								});
  						})
  						.catch(t => {
  							console.log(t);
  						});
  				}
  			});
  		}
  		loadVideo(t = null) {
  			let e = this;
  			if (this.platform[0]) {
  				let t;
  				(t = wx.createRewardedVideoAd({
  					adUnitId: this.wxvid
  				}))
  				.show()
  					.catch(() => {
  						t.load()
  							.then(() => t.show())
  							.catch(t => {
  								this.showToast("暂无广告"), console.log("激励视频 广告显示失败");
  							});
  					}), t.onClose(t => {
  						1 == t.isEnded ? (console.log("播放广告完成，发放奖励"), this.showToast("激励视频广告完成，发放奖励"), Laya.stage.event("isDone", [!0])) : (this.showToast("播放广告未完成"), console.log("激励视频广告未完成"), Laya.stage.event("isDone", [!1]));
  					});
  			} else if (this.platform[1]) this.showMsgDlg(t);
  			else if (this.platform[2]) {
  				var i = qg.createRewardedVideoAd({
  					adUnitId: this.xiamiVid
  				});
  				i.show(), i.onClose(t => {
  					let i = t.isEnded;
  					console.log("ad" + i), e.isDone = 1 == i ? 1 : -1;
  				}), i.onError(e => {
  					this.showMsgDlg(t);
  				});
  			} else if (this.platform[3]) {
  				this.isClose = !0, this.isDone = 0;
  				var s = qg.createRewardedVideoAd({
  					adUnitId: this.opVid
  				});
  				s.load()
  					.catch(t => {
  						this.showToast("暂无广告"), console.log("激励视频 广告显示失败");
  					}), s.onLoad(function() {
  						console.log("激励视频加载成功"), s.show(), Laya.stage.event("videoShow");
  					}), s.onClose(this.close = (t => {
  						if (0 == this.isClose) return;
  						this.isClose = !1, 1 == t.isEnded ? (e.isDone = 1, console.log("激励视频广告完成，发放奖励"), Laya.stage.event("isDone", [!0])) : (e.isDone = -1, console.log("激励视频广告未完成"), Laya.stage.event("isDone", [!1]));
  					})), s.onError(e => {
  						console.log(e), this.showToast("暂无广告"), s.offClose(this.close), this.showMsgDlg(t);
  					});
  			} else if (this.platform[4]) this.showMsgDlg(t);
  			else if (this.platform[5]) {
  				if (null != Laya.Browser.window.tt) {
  					this.tt = window.tt;
  					let e = this.tt.createRewardedVideoAd({
  						adUnitId: this.ttVid,
  						multiton: !0,
  						multitonRewardedMsg: "观看下一个可领取更多奖励"
  					});
  					e.onClose(t => {
  							1 == t.isEnded ? (console.log("激励视频广告完成，发放奖励"), Laya.stage.event("isDone", [!0])) : (console.log("激励视频广告未完成"), Laya.stage.event("isDone", [!1]));
  						}), e.onError(e => {
  							this.showMsgDlg(t);
  						}), e.show()
  						.then(() => {
  							Laya.stage.event("videoShow"), console.log("广告显示成功");
  						})
  						.catch(e => {
  							this.showMsgDlg(t);
  						});
  				}
  			} else if (this.platform[6]) {
  				console.log("激励视频广告");
  				let e = Laya.Browser.window.qq.createRewardedVideoAd({
  					adUnitId: this.qvid
  				});
  				e.onClose(t => {
  						1 == t.isEnded ? (console.log("激励视频广告完成，发放奖励"), Laya.stage.event("isDone", [!0])) : (console.log("激励视频广告未完成"), Laya.stage.event("isDone", [!1]));
  					}), e.onError(e => {
  						this.showToast("暂无广告"), this.showMsgDlg(t);
  					}), e.show()
  					.then(() => {
  						Laya.stage.event("videoShow"), console.log("广告显示成功");
  					})
  					.catch(e => {
  						this.showToast("暂无广告"), this.showMsgDlg(t);
  					});
  			} else if (this.platform[7]) {
  				this.SoundManager.setSoundEnable(!1);
  				let e = Laya.Browser.window.swan.createRewardedVideoAd({
  					adUnitId: "7660270",
  					appSid: "bdb18f63"
  				});
  				e.onClose(t => {
  						Laya.timer.once(1e3, this, () => {
  							this.SoundManager.setSoundEnable(!0);
  						}), 1 == t.isEnded ? (console.log("激励视频广告完成，发放奖励"), Laya.stage.event("isDone", [!0])) : (console.log("激励视频广告未完成"), Laya.stage.event("isDone", [!1]));
  					}), e.onError(e => {
  						this.showMsgDlg(t), this.SoundManager.setSoundEnable(!0);
  					}), e.show()
  					.then(() => {
  						Laya.stage.event("videoShow"), console.log("广告显示成功");
  					})
  					.catch(e => {
  						this.showMsgDlg(t), this.SoundManager.setSoundEnable(!0);
  					});
  			} else this.showMsgDlg(t);
  		}
  		loadJiMu() {
  			if (Laya.Browser.onQQMiniGame) {
  				let t = Laya.Browser.window.qq.createBlockAd({
  					adUnitId: this.qjimu,
  					size: 4,
  					orientation: "landscape",
  					style: {
  						left: 10,
  						top: 80
  					}
  				});
  				this.jumu = t, t.show(), t.onError(t => {
  					console.log(t);
  				});
  			}
  		}
  		jimuDestroy() {
  			null != this.jumu && this.jumu.destroy();
  		}
  		showMsgDlg(t, e = null, i = !0) {}
  		static videocallBackSuccess() {
  			this.isDone = 1, console.log("激励视频广告完成，发放奖励"), Laya.stage.event("isDone", [!0]);
  		}
  		addyuansheng() {
  			if (Laya.Browser.onQGMiniGame) {
  				qg.createCustomAd({
  						adUnitId: this.opSid,
  						style: {
  							top: 150,
  							left: 900,
  							width: 900
  						}
  					})
  					.show()
  					.then(() => {
  						console.log("show success");
  					})
  					.catch(t => {
  						console.log("show fail with:" + t.errCode + "," + t.errMsg);
  					});
  			}
  		}
  		showToast(t) {
  			let e;
  			Laya.Browser.onWeiXin ? e = Laya.Browser.window.wx : Laya.Browser.onQQMiniGame ? e = Laya.Browser.window.qq : Laya.Browser.onKGMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onVVMiniGame ? e = Laya.Browser.window.qg : Laya.Browser.onTTMiniGame && (e = Laya.Browser.window.tt), e.showToast({
  				title: t,
  				icon: "success",
  				duration: 1e3
  			});
  		}
  	}
  	class zi extends Q {
  		constructor() {
  			super(...arguments), this.ad = new Wi;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new zi, this._instance._classDefine = Hi), this._instance
  		}
  		_OnShow() {
  			this.ad.loadScreen(), super._OnShow();
  			let t = Math.floor(Pa.instance.skinTimerNum / 60 * 10);
  			ot.addCoin(t), this.ad.showToast("获得" + t + "金币"), console.log("获得" + t + "金币"), this.ui.m_restartBtn.onClick(this, this._onRestartBtn), this.ui.m_returnBtn.onClick(this, this._onReturnBtn);
  			let e = null != this._openParam && null != this._openParam.mode ? this._openParam.mode : "free_mode";
  			this.ui.m_type.setSelectedPage(e);
  		}
  		_onRestartBtn() {
  			this.Hide(), null != Pa.instance.deer && (Pa.instance.deer.weaponArrs = [], o.instance.eventUI(i.OffDrive)), Pa.instance.startLvGame(de.instance.levelId);
  		}
  		_onReturnBtn() {
  			this.Hide(), null != Pa.instance.deer && (Pa.instance.deer.weaponArrs = [], o.instance.eventUI(i.OffDrive)), Pa.instance.endGame(), os.instance.Show();
  		}
  	}
  	class Yi extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "winView")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_winCom = this.getChildAt(1), this.m_restartBtn = this.getChildAt(2), this.m_nextBtn = this.getChildAt(3), this.m_returnBtn = this.getChildAt(5), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	Yi.URL = "ui://kk7g5mmmecqo2q";
  	class qi extends Q {
  		constructor() {
  			super(...arguments), this.ad = new Wi;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new qi, this._instance._classDefine = Yi), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this.ad.loadScreen();
  			let t = Math.floor(Pa.instance.skinTimerNum / 60 * 10);
  			ot.addCoin(t), this.ad.showToast("获得" + t + "金币"), console.log("获得" + t + "金币"), this.ui.m_restartBtn.onClick(this, this._onRestartBtn), this.ui.m_returnBtn.onClick(this, this._onReturnBtn), this.ui.m_nextBtn.onClick(this, this._onNextBtn), 11 == ot.instance.guideId && (this.ui.m_type.selectedIndex = 1, ot.instance.guideId = 12, ot.SaveToDisk());
  		}
  		_onReturnBtn() {
  			this.Hide(), Pa.instance.endGame(), os.instance.Show();
  		}
  		_onNextBtn() {
  			if (Ae.instance.nextLevelId() > 11) return Pa.instance.deer.weaponArrs = [], o.instance.eventUI(i.OffDrive), Pa.instance.endGame(), os.instance.Show(), void this.Hide();
  			Pa.instance.startLvGame(Ae.instance.nextLevelId()), this.Hide();
  		}
  		_onRestartBtn() {
  			console.log("重新开始"), this.Hide(), console.warn("Game task restart"), Pa.instance.deer.weaponArrs = [], o.instance.eventUI(i.OffDrive), Pa.instance.startLvGame(de.instance.levelId);
  		}
  	}
  	class Ki extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "levelView")
  		}
  		onConstruct() {
  			this.m_backBtn = this.getChildAt(0), this.m_list = this.getChildAt(2);
  		}
  	}
  	Ki.URL = "ui://kk7g5mmmlgqv3t";
  	class Qi extends Laya.Script {
  		constructor() {
  			super(), this.intType = 1e3, this.numType = 1e3, this.strType = "hello laya", this.boolType = !0;
  		}
  		onEnable() {}
  		onDisable() {}
  	}
  	class Xi extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "skinShow")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_leftBtn = this.getChildAt(2), this.m_rightBtn = this.getChildAt(3), this.m_skinPoint = this.getChildAt(4), this.m_list = this.getChildAt(5), this.m_title = this.getChildAt(6), this.m_startBtn = this.getChildAt(7), this.m_noStartBtn = this.getChildAt(8), this.m_buffSet = this.getChildAt(9), this.m_skinTai = this.getChildAt(10), this.m_closeBtn = this.getChildAt(11), this.m_titleDesc = this.getChildAt(12), this.m_titleIcon = this.getChildAt(13), this.m_skinTitleIcon = this.getChildAt(14), this.m_getSkinNum = this.getChildAt(15), this.m_effectDesc = this.getChildAt(16), this.m_getPartCmp = this.getChildAt(17), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	Xi.URL = "ui://kk7g5mmmbe8pb8",
  		function(t) {
  			t.config = class {}, t.path = "res/config/SkinConfig.json";
  		}(Li || (Li = {}));
  	class Ji {
  		constructor() {
  			this.skin_data = [], this.initData();
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Ji), this._instance
  		}
  		initData() {
  			this.skin_data = Li.dataList;
  		}
  		byIdGetSkinData(t) {
  			return this.skin_data.find(e => e.id == t)
  		}
  		byNameGetSkinData(t) {
  			return this.skin_data.find(e => e.skinName == t)
  		}
  	}
  	class Zi {
  		constructor(t = fgui.GRoot.inst, e) {
  			this.camera = new Laya.Camera(0, .1, 1e3), this.top3DScene(t), this.m_show3DNode = new Laya.Sprite3D, this.scene.addChild(this.m_show3DNode), this.setShow3DNode(e);
  		}
  		get show3DNode() {
  			return this.m_show3DNode
  		}
  		setShow3DNode(t) {
  			let e = new Laya.Vector3;
  			this.camera.convertScreenCoordToOrthographicCoord(new Laya.Vector3(t.x, t.y, 0), e), this.m_show3DNode.transform.position = e, this.orthographicVerticalSize = t.z;
  		}
  		set orthographicVerticalSize(t) {
  			this.camera.orthographicVerticalSize = t;
  		}
  		set lightIntensity(t) {
  			this.directionLight.intensity = t;
  		}
  		top3DScene(t) {
  			this.scene = new Laya.Scene3D, t.displayObject.addChild(this.scene), this.scene.mouseEnabled = !1, this.scene.addChild(this.camera), this.camera.orthographic = !0, this.camera.clearFlag = Laya.CameraClearFlags.Nothing, this.directionLight = new Laya.DirectionLight, this.directionLight.intensity = .8, this.scene.addChild(this.directionLight);
  		}
  	}
  	class $i extends Laya.Script {
  		constructor() {
  			super(), this.intType = 1e3, this.numType = 1e3, this.strType = "hello laya", this.boolType = !0;
  		}
  		onAwake() {
  			this.ad = new Wi;
  		}
  		onEnable() {
  			this.owner.getChildByName("clickGame")
  				.on(Laya.Event.CLICK, this, this.moreGame), this.owner.getChildByName("clickYinsi")
  				.on(Laya.Event.CLICK, this, this.yinsi);
  		}
  		onUpdate() {}
  		onDisable() {}
  		moreGame() {
  			console.log("moreGame"), this.ad.loadHezi();
  		}
  		yinsi() {
  			console.log("yinshi"), Laya.stage.event("showYinsi");
  		}
  	}
  	class ts extends Q {
  		constructor() {
  			super(...arguments), this.skinGetNum = 0, this.isSkinEffectEnable = !1, this.ad = new Wi;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new ts, this._instance._classDefine = Xi), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this.ad.loadBanner(), this.ui.m_getPartCmp.m_coinLock.onClick(this, this._onClickGetSkinPart), this.ui.m_getPartCmp.m_adLock.onClick(this, this._onClickAdGetSkinPart), this.ui.m_closeBtn.onClick(this, this._onCloseBtnClick), this.ui.m_startBtn.onClick(this, this._onStartBtnClick), this.ui.m_noStartBtn.onClick(this, this._onNoStartBtnClick), this.ui.m_leftBtn.onClick(this, this._onLeftBtnClick), this.ui.m_rightBtn.onClick(this, this._onRightBtnClick), this.ui.m_getPartCmp.m_closeBtn.onClick(this, () => {
  				this.ui.m_getPartCmp.visible = !1, this._deer.active = !0;
  			}), this.m_3dShowNode = new Zi(this.ui, new Laya.Vector3(this.ui.m_skinPoint.x, this.ui.m_skinPoint.y, 10)), this.m_3dShowNode.show3DNode.addComponent(es), 1 == ot.instance.currentSkinId ? (ot.instance.currentSkinId = 2, ot.SaveToDisk(), this.update3DSkinShow(2)) : this.update3DSkinShow(ot.instance.currentSkinId);
  			Advertisement.insertAdverV2();
  		}
  		update3DSkinShow(t = 1) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let e;
  				if (this.skinGetNum = 0, this.ui.m_rightBtn.visible = !0, this.ui.m_leftBtn.visible = !0, 1 == t && (this.ui.m_leftBtn.visible = !1), t == Li.dataList.length && (this.ui.m_rightBtn.visible = !1), !(e = Ji.instance.byIdGetSkinData(t))) return;
  				let i = this.m_3dShowNode.show3DNode;
  				if (yield R.LoadAsync(ye.prefabPath(e.skinName)), !this._isShow) return;
  				this.m_3dShowNode.show3DNode.destroyChildren(), this._deer = R.Get(ye.prefabPath(e.skinName));
  				let s = le.findChild(this._deer, "lujiao");
  				switch (s.active = !1, i.addChild(this._deer), this._showOrHideDeerPart(this._deer, "shengdan_01", !1), this._showOrHideDeerPart(this._deer, "shengdan_02", !1), this._showOrHideDeerPart(this._deer, "shengdan_03", !1), this._showOrHideDeerPart(this._deer, "shengdan_04", !1), this._showOrHideDeerPart(this._deer, "shengdan_05", !1), this._showOrHideDeerPart(this._deer, "shengdan_06", !1), this._showOrHideDeerPart(this._deer, "zhaocai_01", !1), this._showOrHideDeerPart(this._deer, "zhaocai_02", !1), this._showOrHideDeerPart(this._deer, "zhaocai_03", !1), this._showOrHideDeerPart(this._deer, "zhaocai_04", !1), this._showOrHideDeerPart(this._deer, "zhaocai_05", !1), this._showOrHideDeerPart(this._deer, "zhaocai_06", !1), ot.instance.skinHPBuff = 0, ot.instance.skinSpeedBuff = 0, ot.instance.skinWeaponBuff = 0, ot.instance.skinNormalAttBuff = 0, ot.instance.isAntlerEnable = !1, ot.instance.iscollarEnable = !1, ot.instance.isclothesEnable = !1, ot.instance.islegsEnable = !1, ot.instance.isfeetEnable = !1, ot.instance.istailEnable = !1, ot.SaveToDisk(), this.ui.m_titleIcon.url = ye.lvIconPath(e.nameIcon), this.ui.m_skinTitleIcon.url = ye.lvIconPath(e.nameIcon), this.ui.m_titleDesc.text = e.skinDesc, this.ui.m_effectDesc.text = e.effectDesc, this.ui.m_list.itemRenderer = Laya.Handler.create(this, this._renderItem, [e], !1), this.ui.m_list.numItems = 6, this.ui.m_getSkinNum.text = "(" + this.skinGetNum + "/6)", 6 == this.skinGetNum ? ot.instance.isActiveEffect = !0 : ot.instance.isActiveEffect = !1, ot.instance.isAntlerEnable ? s.active = !1 : s.active = !0, ot.instance.currentSkinId) {
  					case 1:
  						console.log("该皮肤没有显示的部件"), s.active = !0;
  						break;
  					case 2:
  						this._showOrHideDeerPart(this._deer, "zhaocai_01", ot.instance.isAntlerEnable), this._showOrHideDeerPart(this._deer, "zhaocai_02", ot.instance.iscollarEnable), this._showOrHideDeerPart(this._deer, "zhaocai_03", ot.instance.isclothesEnable), this._showOrHideDeerPart(this._deer, "zhaocai_04", ot.instance.islegsEnable), this._showOrHideDeerPart(this._deer, "zhaocai_05", ot.instance.isfeetEnable), this._showOrHideDeerPart(this._deer, "zhaocai_06", ot.instance.istailEnable);
  						break;
  					case 3:
  						this._showOrHideDeerPart(this._deer, "shengdan_01", ot.instance.isAntlerEnable), this._showOrHideDeerPart(this._deer, "shengdan_02", ot.instance.iscollarEnable), this._showOrHideDeerPart(this._deer, "shengdan_03", ot.instance.isclothesEnable), this._showOrHideDeerPart(this._deer, "shengdan_04", ot.instance.islegsEnable), this._showOrHideDeerPart(this._deer, "shengdan_05", ot.instance.isfeetEnable), this._showOrHideDeerPart(this._deer, "shengdan_06", ot.instance.istailEnable);
  				}
  				this.ui.m_buffSet.m_hpText.text = ot.instance.skinHPBuff + "%", this.ui.m_buffSet.m_speedText.text = ot.instance.skinSpeedBuff + "%", this.ui.m_buffSet.m_weaponText.text = ot.instance.skinWeaponBuff + "%", this.ui.m_buffSet.m_normalText.text = ot.instance.skinNormalAttBuff + "%";
  			})
  		}
  		_renderItem(t, e, i) {
  			switch (i.m_c1.selectedIndex = 0, i.touchable = !0, e) {
  				case 0:
  					-1 != ot.instance.getSkinPart.indexOf(ye.lvIconPath(t.antler)) || 1 == ot.instance.currentSkinId ? (i.m_c1.selectedIndex = 1, ot.instance.skinWeaponBuff += t.anterBuff, ot.instance.isAntlerEnable = !0, ot.SaveToDisk(), this.skinGetNum++, i.touchable = !1) : i.onClick(this, this._showGetSkinPartCmp, [e, t]), i.m_icon.url = ye.lvIconPath(t.antler), i.m_titleIcon.url = ye.lvIconPath("lu_01");
  					break;
  				case 1:
  					-1 != ot.instance.getSkinPart.indexOf(ye.lvIconPath(t.collar)) || 1 == ot.instance.currentSkinId ? (i.m_c1.selectedIndex = 1, ot.instance.skinHPBuff += t.collarBuff, ot.instance.iscollarEnable = !0, ot.SaveToDisk(), this.skinGetNum++, i.touchable = !1) : i.onClick(this, this._showGetSkinPartCmp, [e, t]), i.m_icon.url = ye.lvIconPath(t.collar), i.m_titleIcon.url = ye.lvIconPath("lu_02");
  					break;
  				case 2:
  					-1 != ot.instance.getSkinPart.indexOf(ye.lvIconPath(t.clothes)) || 1 == ot.instance.currentSkinId ? (i.m_c1.selectedIndex = 1, ot.instance.skinHPBuff += t.clothesBuff, ot.instance.isclothesEnable = !0, ot.SaveToDisk(), this.skinGetNum++, i.touchable = !1) : i.onClick(this, this._showGetSkinPartCmp, [e, t]), i.m_icon.url = ye.lvIconPath(t.clothes), i.m_titleIcon.url = ye.lvIconPath("lu_03");
  					break;
  				case 3:
  					-1 != ot.instance.getSkinPart.indexOf(ye.lvIconPath(t.legs)) || 1 == ot.instance.currentSkinId ? (i.m_c1.selectedIndex = 1, ot.instance.skinSpeedBuff += t.legsBuff, ot.instance.islegsEnable = !0, ot.SaveToDisk(), this.skinGetNum++, i.touchable = !1) : i.onClick(this, this._showGetSkinPartCmp, [e, t]), i.m_icon.url = ye.lvIconPath(t.legs), i.m_titleIcon.url = ye.lvIconPath("lu_04");
  					break;
  				case 4:
  					-1 != ot.instance.getSkinPart.indexOf(ye.lvIconPath(t.feet)) || 1 == ot.instance.currentSkinId ? (i.m_c1.selectedIndex = 1, ot.instance.skinNormalAttBuff += t.feetBuff, ot.instance.isfeetEnable = !0, ot.SaveToDisk(), this.skinGetNum++, i.touchable = !1) : i.onClick(this, this._showGetSkinPartCmp, [e, t]), i.m_icon.url = ye.lvIconPath(t.feet), i.m_titleIcon.url = ye.lvIconPath("lu_05");
  					break;
  				case 5:
  					-1 != ot.instance.getSkinPart.indexOf(ye.lvIconPath(t.tail)) || 1 == ot.instance.currentSkinId ? (i.m_c1.selectedIndex = 1, ot.instance.skinSpeedBuff += t.tailBuff, ot.instance.istailEnable = !0, ot.SaveToDisk(), this.skinGetNum++, i.touchable = !1) : i.onClick(this, this._showGetSkinPartCmp, [e, t]), i.m_icon.url = ye.lvIconPath(t.tail), i.m_titleIcon.url = ye.lvIconPath("lu_06");
  			}
  		}
  		_showGetSkinPartCmp(t, e) {
  			switch (this.ui.m_getPartCmp.visible = !0, this._deer.active = !1, this.ui.m_getPartCmp.m_titleIcon.url = ye.lvIconPath(e.titleIcon), t) {
  				case 0:
  					this.ui.m_getPartCmp.m_partNameIcon.url = ye.lvIconPath("lu_01"), this.ui.m_getPartCmp.m_partIcon.url = ye.lvIconPath(e.antler), this.ui.m_getPartCmp.m_buffIcon.url = ye.lvIconPath("3"), this.ui.m_getPartCmp.m_buffDesc.text = "武器攻击力提升" + e.anterBuff + "%";
  					break;
  				case 1:
  					this.ui.m_getPartCmp.m_partNameIcon.url = ye.lvIconPath("lu_02"), this.ui.m_getPartCmp.m_partIcon.url = ye.lvIconPath(e.collar), this.ui.m_getPartCmp.m_buffIcon.url = ye.lvIconPath("1"), this.ui.m_getPartCmp.m_buffDesc.text = "生命值提升" + e.collarBuff + "%";
  					break;
  				case 2:
  					this.ui.m_getPartCmp.m_partNameIcon.url = ye.lvIconPath("lu_03"), this.ui.m_getPartCmp.m_partIcon.url = ye.lvIconPath(e.clothes), this.ui.m_getPartCmp.m_buffIcon.url = ye.lvIconPath("1"), this.ui.m_getPartCmp.m_buffDesc.text = "生命值提升" + e.clothesBuff + "%";
  					break;
  				case 3:
  					this.ui.m_getPartCmp.m_partNameIcon.url = ye.lvIconPath("lu_04"), this.ui.m_getPartCmp.m_partIcon.url = ye.lvIconPath(e.legs), this.ui.m_getPartCmp.m_buffIcon.url = ye.lvIconPath("5"), this.ui.m_getPartCmp.m_buffDesc.text = "速度提升" + e.legsBuff + "%";
  					break;
  				case 4:
  					this.ui.m_getPartCmp.m_partNameIcon.url = ye.lvIconPath("lu_05"), this.ui.m_getPartCmp.m_partIcon.url = ye.lvIconPath(e.feet), this.ui.m_getPartCmp.m_buffIcon.url = ye.lvIconPath("2"), this.ui.m_getPartCmp.m_buffDesc.text = "普通攻击提升" + e.feetBuff + "%";
  					break;
  				case 5:
  					this.ui.m_getPartCmp.m_partNameIcon.url = ye.lvIconPath("lu_06"), this.ui.m_getPartCmp.m_partIcon.url = ye.lvIconPath(e.tail), this.ui.m_getPartCmp.m_buffIcon.url = ye.lvIconPath("5"), this.ui.m_getPartCmp.m_buffDesc.text = "速度提升" + e.tailBuff + "%";
  			}
  		}
  		_onClickAdGetSkinPart() {

  			console.log("------------------1"),
  				Advertisement.videoAdverV(() => {
  					//  this.ad.loadVideo(), Laya.stage.on("isDone", this, t => {
  					// 	1 == t ? 
  					this._onClickAdGetSkinSuccess();
  					// 	: this.ad.showToast("播放未完成, 无法获取奖励")
  					// })
  				});
  			
  		}
  		_onClickAdGetSkinSuccess() {
  			this.ui.m_getPartCmp.visible = !1, console.log("获得该衣服部件"), ot.instance.getSkinPart.push(this.ui.m_getPartCmp.m_partIcon.url), ot.SaveToDisk(), this.update3DSkinShow(ot.instance.currentSkinId);
  		}
  		_showOrHideDeerPart(t, e, i) {
  			let s = le.findChild(t, e);
  			s && (s.active = i);
  		}
  		_onCloseBtnClick() {
  			this.Hide(), ts.isLevelModel ? is.instance.Show() : (os.instance.Show(), Laya.loader.create("prefab/bgLogo.json", Laya.Handler.create(this, function() {
  				this.cellView2 = Laya.loader.getRes("prefab/bgLogo.json"), this.cell2 = new Laya.View, this.cell2.createView(this.cellView2), this.cell2.x = 100, this.cell2.x = 300;
  				for (let t = 0; t < Laya.stage.numChildren; t++)
  					if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  						.numChildren > 0) {
  						this.mainIndex = t, Laya.stage.getChildAt(t)
  							.addChild(this.cell);
  						break
  					} Laya.stage.getChildAt(this.mainIndex)
  					.addChild(this.cell2), this.cell2.addComponent(Qi);
  			})), Laya.loader.create("prefab/more.json", Laya.Handler.create(this, function() {
  				this.cellView = Laya.loader.getRes("prefab/more.json"), this.cell2 = new Laya.View, this.cell2.createView(this.cellView), console.log(this.cell2), this.cell2.pos(680, 600), console.log(Laya.stage);
  				for (let t = 0; t < Laya.stage.numChildren; t++)
  					if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  						.numChildren > 0) {
  						this.mainIndex = t, Laya.stage.getChildAt(t)
  							.addChild(this.cell2);
  						break
  					} this.cell2.addComponent($i);
  			})));
  			Advertisement.insertAdverV2();
  		}
  		_onStartBtnClick() {
  			this.Hide(), console.log("装备当前穿戴部件进行游戏"), ts.isLevelModel ? Pa.instance.startLvGame(ts._item.levelVo.levelData.id) : Pa.instance.startLvGame(1);
  		}
  		_onNoStartBtnClick() {
  			this.Hide(), console.log("使用默认皮肤进行游戏"), ot.instance.currentSkinId = 1, ot.SaveToDisk(), ts.isLevelModel ? Pa.instance.startLvGame(ts._item.levelVo.levelData.id) : Pa.instance.startLvGame(1);
  		}
  		_onLeftBtnClick() {
  			ot.instance.currentSkinId--, ot.SaveToDisk(), this.update3DSkinShow(ot.instance.currentSkinId);
  		}
  		_onRightBtnClick() {
  			ot.instance.currentSkinId++, ot.SaveToDisk(), this.update3DSkinShow(ot.instance.currentSkinId);
  		}
  		_onClickGetSkinPart() {
  			ot.instance.coinCount >= Number(this.ui.m_getPartCmp.m_coinLock.m_coinNum.text) ? (this.ui.m_getPartCmp.visible = !1, console.log("获得该衣服部件"), ot.instance.getSkinPart.push(this.ui.m_getPartCmp.m_partIcon.url), ot.addCoin(-Number(this.ui.m_getPartCmp.m_coinLock.m_coinNum.text)), ot.SaveToDisk(), this.update3DSkinShow(ot.instance.currentSkinId)) : (this.ad.showToast("金币不足"), console.log("金币不足"));
  			Advertisement.insertAdverV2();
  		}
  		_OnHide() {
  			super._OnHide();
  		}
  	}
  	ts.isLevelModel = !0;
  	class es extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.m_roteSpeed = .1;
  		}
  		onAwake() {
  			this.m_transform = this.owner.transform;
  		}
  		onUpdate() {
  			this.m_transform.rotationEuler.y += this.m_roteSpeed, this.m_transform.rotationEuler = this.m_transform.rotationEuler;
  		}
  	}
  	class is extends Q {
  		constructor() {
  			super(...arguments), this._layer = _.Main, this.ad = new Wi;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new is, this._instance._classDefine = Ki), this._instance
  		}
  		_OnShow() {
  			const t = Object.create(null, {
  				_OnShow: {
  					get: () => super._OnShow
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				let e;
  				t._OnShow.call(this), 0 == Laya.Browser.onQGMiniGame && this.ad.loadScreen(), this.ui.m_backBtn.onClick(this, this._onBackBtn), Laya.Browser.onWeiXin && (this.ui.m_backBtn.x += 100), this.ui.m_list.itemRenderer = Laya.Handler.create(this, this.renderItem, null, !1), this.ui.m_list.on(fgui.Events.CLICK_ITEM, this, this.onItemClick), this.ui.m_list.numItems = Ae.instance.taskLvs.length, this.ui.m_list.scrollToView(0), 1 == ot.instance.taskPro ? (e = this.ui.m_list.getChildAt(0), qe.instance.triggerGuide(Re.fristLv, e, e)) : 2 == ot.instance.taskPro ? (e = this.ui.m_list.getChildAt(1), qe.instance.triggerGuide(Re.twoLv, e, e)) : (e = this.ui.m_list.getChildAt(ot.instance.taskPro), qe.instance.triggerGuide(Re.lv, e, e));
  			})
  			Advertisement.insertAdverV2();
  		}
  		onItemClick(t) {
  			t.canPlay() && (this.Hide(), 1 == ot.instance.taskPro ? qe.instance.finishGuide(Re.fristLv) : 2 == ot.instance.taskPro && qe.instance.finishGuide(Re.twoLv), ts.instance.Show(), ts._item = t, ts.isLevelModel = !0);
  		}
  		renderItem(t, e) {
  			let i = Ae.instance.taskLvs;
  			e.setData(Ae.instance.levelVoById(i[t].id));
  		}
  		_onBackBtn() {
  			this.Hide(), os.instance.Show();
  			Advertisement.insertAdverV2();
  		}
  	}
  	class ss extends fgui.GComponent {
  		static createInstance() {
  			return fgui.UIPackage.createObject("Load", "splash")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_progress = this.getChildAt(1);
  		}
  	}
  	ss.URL = "ui://n3oedpp6nihr0";
  	class as extends Laya.Script {
  		constructor() {
  			super(), this.intType = 1e3, this.numType = 1e3, this.strType = "hello laya", this.boolType = !0;
  		}
  		onAwake() {
  			this.ad = new Wi;
  		}
  		onEnable() {
  			this.owner.getChildByName("addCoins")
  				.on(Laya.Event.CLICK, this, this.addCoinsByVideo);
  				Advertisement.insertAdverV2();
  		}
  		onUpdate() {
  			this.owner.getChildAt(1)
  				.text = "金币: " + ot.instance.coinCount;
  		}
  		onDisable() {}
  		addCoinsByVideo() {
  			console.log("------------------2"),
  				Advertisement.videoAdverV(() => {
  			// this.ad.loadVideo(), 
  			console.log("视频增加金币");
  				});
  		}
  	}
  	class ns extends Laya.Script {
  		constructor() {
  			super();
  		}
  		onEnable() {
  			this.scene = this.owner.scene, console.log("init"), this.scene.OK.on(Laya.Event.CLICK, this, () => {
  				console.log("退出场景"), this.scene.PrivacyScreeen.visible = !1;
  			}), this.scene.yinsi.on(Laya.Event.CLICK, this, this.yinsiShow), this.scene.xieyi.on(Laya.Event.CLICK, this, this.xieyiShow), this.scene.okyinsi.on(Laya.Event.CLICK, this, this.backToMain), this.scene.okxieyi.on(Laya.Event.CLICK, this, this.backToMain);
  		}
  		yinsiShow() {
  			console.log("111"), this.scene.main.visible = !1, this.scene.yonghu1.visible = !0, this.scene.yonghu1.y = 0;
  		}
  		xieyiShow() {
  			console.log("222"), this.scene.main.visible = !1, this.scene.yonghu2.visible = !0, this.scene.yonghu2.y = 0;
  		}
  		backToMain() {
  			this.scene.main.visible = !0, this.scene.yonghu1.visible = !1, this.scene.yonghu2.visible = !1;
  		}
  	}
  	class os extends Q {
  		constructor() {
  			super(...arguments), this._layer = _.Main, this.mainIndex = 0, this.ad = new Wi;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new os, this._instance._classDefine = Fi), this._instance
  		}
  		_OnShow() {
  			super._OnShow();
  			let t = this._ui.parent;
  			for (let e = 0; e < t._children.length; e++) t.getChildAt(e) instanceof ss && t.getChildAt(e)
  				.dispose();
  			Laya.loader.create("prefab/ss.json", Laya.Handler.create(this, function() {
  				if (this.cellView = Laya.loader.getRes("prefab/ss.json"), this.cell = new Laya.View, this.cell.createView(this.cellView), console.log(this.cell), this.cell.x = 600, this.cell.name = "coins", this.cell.getChildAt(1)
  					.text = "金币: " + ot.instance.coinCount, this.cell.scale(.6, .6), console.log(Laya.stage), Laya.Browser.onAndroid || Laya.Browser.onIOS || Laya.Browser.onPC) var t = 0;
  				for (let e = 0; e < Laya.stage.numChildren; e++)
  					if (Laya.stage.getChildAt(e) instanceof Laya.Scene3D)(Laya.Browser.onAndroid || Laya.Browser.onIOS || Laya.Browser.onPC) && 1 == t++ && Laya.stage.getChildAt(e)
  						.removeSelf();
  					else if (Laya.stage.getChildAt(e) instanceof Laya.Sprite && Laya.stage.getChildAt(e)
  					.numChildren > 0) {
  					this.mainIndex = e, Laya.stage.getChildAt(e)
  						.addChild(this.cell);
  					break
  				}
  				this.cell.addComponent(as);
  			})), Laya.loader.create("prefab/bgLogo.json", Laya.Handler.create(this, function() {
  				this.cellView2 = Laya.loader.getRes("prefab/bgLogo.json"), this.cell2 = new Laya.View, this.cell2.createView(this.cellView2), this.cell2.x = 100, this.cell2.x = 300;
  				for (let t = 0; t < Laya.stage.numChildren; t++)
  					if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  						.numChildren > 0) {
  						this.mainIndex = t, Laya.stage.getChildAt(t)
  							.addChild(this.cell);
  						break
  					} Laya.stage.getChildAt(this.mainIndex)
  					.addChild(this.cell2), this.cell2.addComponent(Qi);
  			})), this.createMore(), this.createPrivacyScreen(), Laya.stage.on("showYinsi", this, () => {
  				this.cellYinsi.visible = !0;
  			}), console.log(this.ui.m_startBtn.x, this.ui.m_startBtn.y, this.ui.m_startBtn.width, this.ui.m_startBtn.height, this.ui.m_startBtn.sortingOrder, this.ui.m_startBtn.parent), this.ui.m_startBtn.onClick(this, this._OnClickGame), this.ui.m_lvBtn.onClick(this, this._OnLevelOpen), o.instance.on3d(f.GameFail, this, this._OnGameFail), o.instance.on3d(f.TaskFinish, this, this._taskFinish), o.instance.on3d(f.TaskFail, this, this._taskFail), qe.instance.triggerGuide(Re.guanqiaanniu, this.ui.m_lvBtn, this.ui.m_lvBtn), oi.instance.setMusicOpen(de.instance.isMusicOn, !0), oi.instance.setSoundOpen(de.instance.isSoundOn), 12 == ot.instance.guideId && (this.ui.m_type.selectedIndex = 1, ot.instance.guideId = 13, ot.SaveToDisk());
  		}
  		createMore() {
  			Laya.loader.create("prefab/more.json", Laya.Handler.create(this, function() {
  				this.cellView = Laya.loader.getRes("prefab/more.json"), this.cell = new Laya.View, this.cell.createView(this.cellView), console.log(this.cell), this.cell.pos(680, 600), console.log(Laya.stage);
  				for (let t = 0; t < Laya.stage.numChildren; t++)
  					if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  						.numChildren > 0) {
  						this.mainIndex = t, Laya.stage.getChildAt(t)
  							.addChild(this.cell);
  						break
  					} this.cell.addComponent($i);
  			}));
  		}
  		createPrivacyScreen() {
  			Laya.loader.create("prefab/PrivacyScreeen1.json", Laya.Handler.create(this, function() {
  				this.cellView = Laya.loader.getRes("prefab/PrivacyScreeen1.json"), this.cellYinsi = new Laya.View, this.cellYinsi.createView(this.cellView), console.log(this.cellYinsi), this.cellYinsi.x -= 200, console.log(Laya.stage);
  				for (let t = 0; t < Laya.stage.numChildren; t++)
  					if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  						.numChildren > 0) {
  						Laya.stage.getChildAt(t)
  							.addChild(this.cellYinsi);
  						break
  					} this.cellYinsi.visible = !1, this.cellYinsi.addComponent(ns);
  			}));
  		}
  		_taskFinish() {
  			Oa.gameOver = !0, o.instance.eventUI(i.CloseTimer), null != Oe.instance.taskVo && Oe.instance.taskVo.taskConfig.id == ot.instance.taskPro && (ot.instance.taskPro++, ot.SaveToDisk()), qi.instance.Show();
  		}
  		_taskFail() {
  			Oa.gameOver = !0, zi.instance.Show({
  				mode: "task_mode"
  			});
  		}
  		_OnGameFail(t) {
  			Oa.gameOver = !0, zi.instance.Show(t);
  		}
  		_OnLevelOpen() {
  			0 == Laya.Browser.onQGMiniGame && this.ad.loadScreen(), this.cellYinsi.visible = !1, oi.instance.playSound(Ne.chooseMain), qe.instance.finishGuide(Re.guanqiaanniu), is.instance.Show(), Laya.LocalStorage.setItem("mainIndex", this.mainIndex + "");
  			let t = Laya.stage.getChildAt(this.mainIndex);
  			t.getChildByName("bg")
  				.removeSelf(), t.getChildByName("more")
  				.removeSelf();
  		}
  		_OnClickGame() {
  			0 == Laya.Browser.onQGMiniGame && this.ad.loadScreen(), this.cellYinsi.visible = !1, oi.instance.playSound(Ne.chooseMain), ts.instance.Show(), ts.isLevelModel = !1, Laya.LocalStorage.setItem("mainIndex", this.mainIndex + "");
  			let t = Laya.stage.getChildAt(this.mainIndex);
  			t.getChildByName("bg")
  				.removeSelf(), t.getChildByName("more")
  				.removeSelf();
  		}
  		_OnHide() {
  			super._OnHide();
  		}
  	}
  	class rs extends Q {
  		constructor() {
  			super(...arguments), this.ad = null;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new rs, this._instance._classDefine = Ni), this._instance
  		}
  		_OnShow() {
  			super._OnShow(), this.ui.m_restartBtn.onClick(this, this._onRestartBtn), this.ui.m_closeBtn.onClick(this, this._onCloseBtn), this.ui.m_returnBtn.onClick(this, this._onReturnBtn), this.ui.m_musicBtn.onClick(this, this._onMusicBtn), this.ui.m_soundBtn.onClick(this, this._onSoundBtn), this.ui.m_slider.changeOnClick = !0, this.ui.m_slider.canDrag = !0, this.ui.m_slider.on(fgui.Events.STATE_CHANGED, this, this._slider), this.ui.m_slider.value = ot.instance.sensitivity, this.ui.m_shiJiaoslider.changeOnClick = !0, this.ui.m_shiJiaoslider.canDrag = !0, this.ui.m_shiJiaoslider.on(fgui.Events.STATE_CHANGED, this, this._shijiaoSlider), this.ui.m_shiJiaoslider.value = ot.instance.visualangle, this.ui.m_shiJiaoslider.wholeNumbers = !0, this.ui.m_shiJiaoslider.max = 2, this.ui.m_musicBtn.selected = de.instance.isMusicOn, this.ui.m_soundBtn.selected = de.instance.isSoundOn;
  		}
  		_slider(t) {
  			ot.instance.sensitivity = this.ui.m_slider.value, ot.SaveToDisk();
  		}
  		_shijiaoSlider() {
  			ot.instance.visualangle = this.ui.m_shiJiaoslider.value, Pa.instance.cameraScript.changeView(), ot.SaveToDisk();
  		}
  		_onMusicBtn() {
  			oi.instance.setMusicOpen(this.ui.m_musicBtn.selected), ot.SaveToDisk();
  		}
  		_onSoundBtn() {
  			oi.instance.setSoundOpen(this.ui.m_soundBtn.selected), ot.SaveToDisk();
  		}
  		setAd(t) {
  			this.ad = t;
  		}
  		_onReturnBtn() {
  			null != this.ad && this.ad.jimuDestroy(), this.Hide(), Pa.instance.deer.weaponArrs = [], o.instance.eventUI(i.OffDrive), Pa.instance.endGame(), os.instance.Show();
  		}
  		_onCloseBtn() {
  			this.Hide();
  		}
  		_onRestartBtn() {
  			this.Hide(), Pa.instance.deer.weaponArrs = [], o.instance.eventUI(i.OffDrive), Pa.instance.startLvGame(de.instance.levelId);
  		}
  	}! function(t) {
  		t[t.canDrop = 0] = "canDrop", t[t.turnOff = 1] = "turnOff", t[t.canCar = 2] = "canCar", t[t.carOff = 3] = "carOff", t[t.canHorse = 4] = "canHorse", t[t.carOffHorse = 5] = "carOffHorse", t[t.canMecha = 6] = "canMecha", t[t.carOffMecha = 7] = "carOffMecha", t[t.CanFlyCattle = 8] = "CanFlyCattle", t[t.carOffFlyCattle = 9] = "carOffFlyCattle";
  	}(bi || (bi = {}));
  	class hs extends Q {
  		constructor() {
  			super(...arguments), this._layer = _.Main, this._canDrive = !1, this._canHorse = !1, this._canMecha = !1, this._canFlyCattle = !1, this._canDropW = !1, this._dropLock = !1, this._bloodBars = [], this.isInitStateMecha = !1, this.ad = new Wi, this._leftBtnDown = !1, this._rightBtnDown = !1, this._backBtnDown = !1, this._forwardBtnDown = !1;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new hs, this._instance._classDefine = Ke), this._instance
  		}
  		_OnShow() {
  			for (let t = 0; t < Laya.stage.numChildren; t++)
  				if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  					.numChildren > 0) {
  					let e = Laya.stage.getChildAt(t);
  					for (let t = 0; t < e.numChildren; t++)
  						if (e.getChildAt(t) instanceof Laya.View) {
  							e.getChildAt(t)
  								.removeSelf();
  						}
  				} console.log("进入关卡"), this.ad.loadBanner(), this.ad.loadJiMu(), 0 == Laya.Browser.onQGMiniGame && this.ad.loadScreen(), Laya.Browser.onWeiXin, super._OnShow(), o.instance.event(i.OpenDrive), this.isInitStateMecha = !1, this.ui.m_des.text = "", null != Oe.instance.taskVo && (this.ui.m_jiangli.visible = !0, this.ui.m_jiangliText.visible = !0, this.ui.m_jiangli.url = ye.lvIconPath("" + Oe.instance.taskVo.taskConfig.rewardType), this.ui.m_jiangliText.text = Oe.instance.taskVo.taskConfig.rewardtxt), this.ui.m_bossBar.visible = !1, this.ui.m_att.on(Laya.Event.MOUSE_DOWN, this, this._onAtt), this.ui.m_att.on(Laya.Event.MOUSE_OUT, this, this._onDisAtt), this.ui.m_att.on(Laya.Event.MOUSE_UP, this, this._onDisAtt), this.ui.m_longNeck.on(Laya.Event.MOUSE_DOWN, this, this._onLongNeck), this.ui.m_longNeck.on(Laya.Event.MOUSE_OUT, this, this._onDisLongNeck), this.ui.m_longNeck.on(Laya.Event.MOUSE_UP, this, this._onDisLongNeck), this.ui.m_rockerCom.on(Laya.Event.MOUSE_DOWN, this, this._onRockerCom), this.ui.m_bs.onClick(this, this._onBs), this.ui.m_dropOrCarCom.onClick(this, this._onDropOrCar), this.ui.m_dropOrCarCom.on(Laya.Event.MOUSE_DOWN, this, this._onDropOrCarComDown), this.ui.m_dropOrCarCom.on(Laya.Event.MOUSE_UP, this, this._onDropOrCarComUp), this.ui.m_dropOrCarCom.on(Laya.Event.MOUSE_OUT, this, this._onDropOrCarComUp), this.ui.m_pauseBtn.onClick(this, this._onPauseBtn), Laya.stage.on(Laya.Event.KEY_DOWN, this, this.onKeyDown), Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp), this.ui.m_leftBtn.on(Laya.Event.MOUSE_DOWN, this, this._leftBtn, [!0]), this.ui.m_leftBtn.on(Laya.Event.MOUSE_UP, this, this._leftBtn, [!1]), this.ui.m_leftBtn.on(Laya.Event.MOUSE_OUT, this, this._leftBtn, [!1]), this.ui.m_rightBtn.on(Laya.Event.MOUSE_DOWN, this, this._rightBtn, [!0]), this.ui.m_rightBtn.on(Laya.Event.MOUSE_UP, this, this._rightBtn, [!1]), this.ui.m_rightBtn.on(Laya.Event.MOUSE_OUT, this, this._rightBtn, [!1]), this.ui.m_backBtn.on(Laya.Event.MOUSE_DOWN, this, this._backBtn, [!0]), this.ui.m_backBtn.on(Laya.Event.MOUSE_UP, this, this._backBtn, [!1]), this.ui.m_backBtn.on(Laya.Event.MOUSE_OUT, this, this._backBtn, [!1]), this.ui.m_forwardBtn.on(Laya.Event.MOUSE_DOWN, this, this._forwardBtn, [!0]), this.ui.m_forwardBtn.on(Laya.Event.MOUSE_UP, this, this._forwardBtn, [!1]), this.ui.m_forwardBtn.on(Laya.Event.MOUSE_OUT, this, this._forwardBtn, [!1]), this.ui.m_mechaLeftBtn.on(Laya.Event.MOUSE_DOWN, this, this._leftBtn, [!0]), this.ui.m_mechaLeftBtn.on(Laya.Event.MOUSE_UP, this, this._leftBtn, [!1]), this.ui.m_mechaLeftBtn.on(Laya.Event.MOUSE_OUT, this, this._leftBtn, [!1]), this.ui.m_mechaRightBtn.on(Laya.Event.MOUSE_DOWN, this, this._rightBtn, [!0]), this.ui.m_mechaRightBtn.on(Laya.Event.MOUSE_UP, this, this._rightBtn, [!1]), this.ui.m_mechaRightBtn.on(Laya.Event.MOUSE_OUT, this, this._rightBtn, [!1]), this.ui.m_mechaBackBtn.on(Laya.Event.MOUSE_DOWN, this, this._backBtn, [!0]), this.ui.m_mechaBackBtn.on(Laya.Event.MOUSE_UP, this, this._backBtn, [!1]), this.ui.m_mechaBackBtn.on(Laya.Event.MOUSE_OUT, this, this._backBtn, [!1]), this.ui.m_mechaForwardBtn.on(Laya.Event.MOUSE_DOWN, this, this._forwardBtn, [!0]), this.ui.m_mechaForwardBtn.on(Laya.Event.MOUSE_UP, this, this._forwardBtn, [!1]), this.ui.m_mechaForwardBtn.on(Laya.Event.MOUSE_OUT, this, this._forwardBtn, [!1]), this.ui.m_jump.onClick(this, this._onJump), this.ui.m_changeDeerBtn.onClick(this, this._onDeerPeople), this.ui.m_danceBtn.onClick(this, this._onDancePeople), this.ui.m_halloBtn.onClick(this, this._onHalloPeople), this.ui.m_pauseBtn.onClick(this, this._onSetView), Laya.Browser.onKGMiniGame && (this.ui.m_pauseBtn.y += 65, this.ui.m_pauseBtn.x -= 10, this.ui.m_pauseBtn.scaleX = 1.2, this.ui.m_pauseBtn.scaleY = 1.2), console.log("111");
  			let t = P.data[ot.instance.choseDeerId];
  			null != Oe.instance.taskVo && 1 == Oe.instance.taskVo.taskConfig.rewardType ? (this.ui.m_deerBlood.max = t.hp * (1 + Oe.instance.taskVo.taskConfig.reward / 100), this.ui.m_deerBlood.value = t.hp * (1 + Oe.instance.taskVo.taskConfig.reward / 100)) : (this.ui.m_deerBlood.max = t.hp, this.ui.m_deerBlood.value = t.hp), o.instance.on3d(f.CanDropWeapon, this, this._onCanDropWeapon), o.instance.on3d(f.NoDropWeapon, this, this._onNoDropWeapon), o.instance.on3d(f.CanHandLife, this, this._onCanHandWeapon), o.instance.on3d(f.NoHandLife, this, this._onNoHandWeapon), o.instance.on3d(f.CanCarDrive, this, this._onCanCarDrive), o.instance.on3d(f.NoCarDrive, this, this._onNoCarDrive), o.instance.on3d(f.CanHorse, this, this._onCanHorse), o.instance.on3d(f.NoCanHorse, this, this._onNoHorse), o.instance.on3d(f.CanMecha, this, this._onCanMecha), o.instance.on3d(f.NoCanMecha, this, this._onNoCanMecha), o.instance.on3d(f.CanFlyCattle, this, this._onCanFlyCattle), o.instance.on3d(f.NoCanFlyCattle, this, this._onNoCanFlyCattle), o.instance.on3d(f.HpChange, this, this._onHpChange), o.instance.on3d(f.ClearHPBar, this, this._onClearHPBar), o.instance.on3d(f.RiskIntegralChange, this, this._updateRiskPro), o.instance.on3d(f.RiskLvAdd, this, this._updateRiskLv), o.instance.on3d(f.CanContralP, this, this._onCanContralP), o.instance.on3d(f.NoContralP, this, this._onNoContralP), o.instance.on3d(f.longNeck, this, this._onLongNeckSuc), o.instance.on3d(f.disWeapon, this, this._onDisWeapon), o.instance.on3d(f.startViewPolice, this, this._onStartViewPolice), o.instance.on3d(f.endViewPolice, this, this._onStopViewPolice), o.instance.on3d(f.viewPolice, this, this._onViewPolice), o.instance.on3d(f.TaskChange, this, this._onTaskChange), o.instance.on3d(f.bossStartAtt, this, this._bossStartAtt), o.instance.on3d(f.bossHpChange, this, this._bossHpChange), o.instance.on3d(f.bossEndAtt, this, this._bossEndAtt), o.instance.on3d(f.GameFail, this, this._onGameFail), o.instance.on3d(f.TaskFail, this, this._onGameFail), o.instance.on3d(f.DeerAttacked, this, this._onDeerAttacked), o.instance.on3d(f.attackStateChange, this, this._onAttackStateChange), o.instance.on3d(f.CattleArrive, this, this._onSetOffSlyCattle), o.instance.onUI(i.HideCrazy, this, this.hideCrazy), o.instance.onUI(i.ShowCrazy, this, this.showCrazy), o.instance.onUI(i.CloseTimer, this, this._closeTimer), o.instance.onUI(i.ZhengYiWin, this, this._zhenyiWin), this._updateRiskLv(), this._updateRiskPro(), this.ui.m_dropWeapon.visible = !1, this.ui.m_warningTip.visible = !1, this.ui.m_getUp.visible = !1, Laya.timer.once(3e3, this, () => {
  				qe.instance.triggerGuide(Re.yaogan, this.ui.m_rockerCom);
  			}), qe.instance.isGuide() || this.startCountDown(), o.instance.onUI(i.GuideFinish, this, this._onGuideFinish), oi.instance.setMusicOpen(de.instance.isMusicOn, !1), Laya.Browser.onPC && Laya.stage.on(Laya.Event.KEY_DOWN, this, this.keyJump), console.log("2222");
  		}
  		_onAttackStateChange(t) {
  			t ? this.ui.m_att.m_type.selectedIndex = 0 : Pa.instance.deerWeaponNum <= 0 ? this.ui.m_att.m_type.selectedIndex = 0 : this.ui.m_att.m_type.selectedIndex = 1;
  		}
  		_bossHpChange(t) {
  			this.ui.m_bossBar.value = t, t <= 0 && this._bossEndAtt();
  		}
  		_bossEndAtt() {
  			this.ui.m_bossBar.visible = !1;
  		}
  		_bossStartAtt(t) {
  			1 == t && (this.ui.m_bossBar.m_bossName.selectedIndex = 1), this.ui.m_bossBar.visible = !0;
  		}
  		_onBtnSkipClick() {
  			o.instance.event3d(f.skipBornAni);
  		}
  		_zhenyiWin() {
  			this.ui.m_winCom.stop(), this.ui.m_winCom.play(), this.ui.m_winComa.m_t0.stop(), this.ui.m_winComa.m_t1.stop(), this.ui.m_winComa.m_t0.play(), this.ui.m_winComa.m_t1.play();
  		}
  		_onGuideFinish() {
  			let t = qe.instance.nowGuideId;
  			console.log(t), De.data[t].linkGuide && Laya.timer.once(2e3, this, () => {
  				t == Re.slideScreen ? qe.instance.triggerGuide(Re.slideScreen, null) : t == Re.jump ? qe.instance.triggerGuide(Re.jump, this.ui.m_jump) : t == Re.bs ? qe.instance.triggerGuide(Re.bs, this.ui.m_bs) : t == Re.att ? qe.instance.triggerGuide(Re.att, this.ui.m_att) : t == Re.task && (qe.instance.triggerGuide(Re.task, null), this.startCountDown());
  			});
  		}
  		startCountDown() {
  			console.log("任务开始");
  			let t = Oe.instance.taskVo;
  			if (this.ui.m_task.selectedIndex = 0, !t) return;
  			this.ui.m_task.selectedIndex = t.taskConfig.id, this.ui.m_des.text = t.taskConfig.desc;
  			let e = t.taskConfig.taskTimes;
  			this.ui.m_taskPro.text = e > 0 ? "0/" + e : null;
  			let i = t.taskConfig.time;
  			i <= 0 || (this._countDownTime = i, this.ui.m_countDown.text = le.makeTimeLeftString(this._countDownTime), Laya.timer.loop(1e3, this, () => {
  				this._countDownTime--, this.ui.m_countDown.text = le.makeTimeLeftString(this._countDownTime), this._countDownTime <= 0 && o.instance.event3d(f.TaskFail);
  			}));
  		}
  		_closeTimer() {
  			this.ui.m_countDown.visible = !1, Laya.timer.clearAll(this);
  		}
  		onKeyDown(t) {
  			let e = t.nativeEvent.code;
  			"KeyD" == e ? o.instance.eventUI(i.CarRight) : "KeyA" == e ? o.instance.eventUI(i.CarLeft) : "KeyW" == e && o.instance.eventUI(i.DeerForward);
  		}
  		onKeyUp(t) {
  			let e = t.nativeEvent.code;
  			"KeyD" == e ? o.instance.eventUI(i.CarRightNo) : "KeyA" == e ? o.instance.eventUI(i.CarLeftNo) : "KeyW" == e && o.instance.eventUI(i.DeerForward);
  		}
  		clearBloodBar(t) {
  			let e = this._bloodBars.indexOf(t);
  			e >= 0 && this._bloodBars.splice(e);
  		}
  		_onTaskChange() {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield et.NextFrame();
  				let t = Oe.instance.taskVo;
  				if (t) {
  					let e = t.taskConfig.taskTimes;
  					this.ui.m_taskPro.text = e > 0 ? Oe.instance.taskVo.pro + "/" + e : null;
  				}
  			})
  		}
  		_onRockerCom() {
  			qe.instance.nowGuideId == Re.yaogan && Laya.timer.once(1e3, this, () => {
  				qe.instance.finishGuide(Re.yaogan);
  			});
  		}
  		_onSetView() {
  			this.ad.loadScreen(), rs.instance.setAd(this.ad), rs.instance.Show();
  		}
  		_onCanContralP() {
  			this.ui.m_changeDeerBtn.visible = !0, this.ui.m_danceBtn.visible = !0, this.ui.m_halloBtn.visible = !0, 0 == ot.instance.firstShowInfo && Laya.timer.once(3e3, this, this.showTiShiView);
  		}
  		_onNoContralP() {
  			this.ui.m_changeDeerBtn.visible = !1, this.ui.m_danceBtn.visible = !1, this.ui.m_halloBtn.visible = !1, 0 == ot.instance.firstShowInfo && Laya.timer.clear(this, this.showTiShiView);
  		}
  		showTiShiView() {}
  		_leftBtn(t) {
  			this._leftBtnDown != t && (this._leftBtnDown = t, t ? o.instance.eventUI(i.CarLeft) : o.instance.eventUI(i.CarLeftNo));
  		}
  		_rightBtn(t) {
  			this._rightBtnDown != t && (this._rightBtnDown = t, t ? o.instance.eventUI(i.CarRight) : o.instance.eventUI(i.CarRightNo));
  		}
  		_backBtn(t) {
  			this._backBtnDown != t && (this._backBtnDown = t, t ? o.instance.eventUI(i.CarBack) : o.instance.eventUI(i.CarBackNo));
  		}
  		_forwardBtn(t) {
  			this._forwardBtnDown != t && (this._forwardBtnDown = t, t ? o.instance.eventUI(i.CarForward) : o.instance.eventUI(i.CarForwardNo));
  		}
  		_onStartViewPolice() {
  			o.instance.eventUI(i.MechaDisAtt), null == Oe.instance.taskVo && o.instance.eventUI(i.DeerDisAtt), this._lastUIType = this.ui.m_type.selectedIndex, this.ui.m_type.selectedIndex = 2, this.ui.m_policeType.selectedIndex = 0;
  		}
  		_onViewPolice(t) {
  			this.ui.m_policeType.selectedIndex = t;
  		}
  		_onStopViewPolice() {
  			this.ui.m_type.selectedIndex = this._lastUIType, this.ui.m_policeType.selectedIndex = 0;
  		}
  		_onDisWeapon() {
  			Pa.instance.deerWeaponNum > 0 ? (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropWeapon.visible = !0) : (console.log(Pa.instance.deer.isDriving), console.log(this.ui.m_dropOrCarCom.m_type.selectedIndex), (!Pa.instance.deer.isDriving || 9 != this.ui.m_dropOrCarCom.m_type.selectedIndex && 3 != this.ui.m_dropOrCarCom.m_type.selectedIndex && 5 != this.ui.m_dropOrCarCom.m_type.selectedIndex && 7 != this.ui.m_dropOrCarCom.m_type.selectedIndex) && (this.ui.m_dropOrCarCom.visible = !1), this.ui.m_dropWeapon.visible = !1), Pa.instance.deerWeaponNum <= 0 && (this.ui.m_att.m_type.selectedIndex = 0);
  		}
  		_onPauseBtn() {}
  		_updateRiskPro() {
  			let t = Ze.instance.getNowRiskType(),
  				e = this.ui.m_riskCom["m_value" + t],
  				i = Ze.instance.getNowPro();
  			e.fillAmount = i;
  		}
  		_updateRiskLv() {
  			let t = Ze.instance.getNowRiskType();
  			this.ui.m_riskCom.m_lv.selectedIndex = t, t < Ue.E && this.ui.m_warningAni.play(null, 1);
  		}
  		_onLongNeckSuc() {
  			this.ui.m_getUp.visible = !0;
  		}
  		_onDropOrCarComDown() {
  			this._dropBtnDown = !0;
  			let t = this.ui.m_dropOrCarCom.m_type.selectedIndex,
  				e = this.ui.m_dropWeapon.m_pro;
  			Laya.Tween.clearAll(e), this._dropLock = !1, t == bi.turnOff && (e.fillAmount = 1, Laya.Tween.to(e, {
  				fillAmount: 0
  			}, 1e3 * Da.turnOffWTime, null, Laya.Handler.create(this, () => {
  				o.instance.eventUI(i.TurnOffWeapon), e.fillAmount = 1, this._dropLock = !0;
  			})));
  		}
  		_onDropOrCarComUp() {
  			if (!this._dropBtnDown) return;
  			this._dropBtnDown = !1;
  			let t = this.ui.m_dropOrCarCom.m_type.selectedIndex,
  				e = this.ui.m_dropWeapon.m_pro;
  			Laya.Tween.clearAll(e), t == bi.turnOff && Laya.Tween.to(e, {
  				fillAmount: 1
  			}, 1e3 * Da.turnOffBackTime, null);
  		}
  		_onHpChange(t, e) {
  			if (t && t.deerConfig) return void this.ui.m_deerBlood.tweenValue(t.hp, Da.hpDownTime);
  			if (0 == Oa.camera.enableRender) return;
  			let i = this._bloodBars[t.onlyId] || ji.createInstance();
  			i.parent || this.ui.addChild(i), this._bloodBars[t.onlyId] = i, i.setLifeSprite(t), i.hpChange(e);
  		}
  		_onClearHPBar(t) {
  			if (t && t.deerConfig) return void this.ui.m_deerBlood.tweenValue(t.hp, Da.hpDownTime);
  			let e = this._bloodBars[t.onlyId];
  			null != e && (this.clearBloodBar(e), e.dispose());
  		}
  		_checkInCar() {
  			return this.ui.m_dropOrCarCom.m_type.selectedIndex == bi.carOff
  		}
  		_checkHorse() {
  			return this.ui.m_dropOrCarCom.m_type.selectedIndex == bi.carOffHorse
  		}
  		_checkMecha() {
  			return this.ui.m_dropOrCarCom.m_type.selectedIndex == bi.carOffMecha
  		}
  		_checkCattle() {
  			return this.ui.m_dropOrCarCom.m_type.selectedIndex == bi.carOffFlyCattle
  		}
  		_onCanHorse() {
  			this._canHorse = !0, this._checkHorse() || Pa.instance.deer.lifeState == S.neck || (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canHorse);
  		}
  		_onNoHorse() {
  			this._canHorse = !1, this._checkHorse() || (this.ui.m_dropOrCarCom.visible = !1, this._canDropW ? this._onCanDropWeapon(null) : this._onNoDropWeapon());
  		}
  		_onCanMecha() {
  			this._canMecha = !0, this._checkMecha() || Pa.instance.deer.lifeState == S.neck || (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canMecha, this.isInitStateMecha || null == Oe.instance.taskVo || 6 != Oe.instance.taskVo.taskConfig.rewardType || (Laya.timer.once(500, this, () => {
  				this._onDropOrCar();
  			}), this.isInitStateMecha = !0));
  		}
  		_onNoCanMecha() {
  			this._canMecha = !1, this._checkMecha() || (this.ui.m_dropOrCarCom.visible = !1, this._canDropW ? this._onCanDropWeapon(null) : this._onNoDropWeapon());
  		}
  		_onCanFlyCattle() {
  			this._canFlyCattle = !0, this._checkCattle() || Pa.instance.deer.lifeState == S.neck || (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.CanFlyCattle);
  		}
  		_onNoCanFlyCattle() {
  			this._canFlyCattle = !1, this._checkCattle() || (this.ui.m_dropOrCarCom.visible = !1, this._canDropW ? this._onCanDropWeapon(null) : this._onNoDropWeapon());
  		}
  		_onCanCarDrive() {
  			this._canDrive = !0, this._checkInCar() || Pa.instance.deer.lifeState == S.neck || (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canCar);
  		}
  		_onNoCarDrive() {
  			this._canDrive = !1, this._checkInCar() || (this.ui.m_dropOrCarCom.visible = !1, this._canDropW ? this._onCanDropWeapon(null) : this._onNoDropWeapon());
  		}
  		_onCanHandWeapon() {
  			Pa.instance.deer.deerForm != Gs.Crazy && (this.ui.m_flipCom.visible = !0);
  		}
  		_onNoHandWeapon() {
  			this.ui.m_flipCom.visible = !1;
  		}
  		_onNoDropWeapon() {
  			this._canDropW = !1, this._checkInCar() || this._checkHorse() || (Pa.instance.deerWeaponNum > 0 ? (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.turnOff, this.ui.m_dropWeapon.visible = !0, this.ui.m_dropWeapon.m_pro.fillAmount = 1) : this._canDrive || this._canHorse || this._canMecha || (this.ui.m_dropOrCarCom.visible = !1));
  		}
  		_onCanDropWeapon(t) {
  			this._canDropW = !0, this._checkInCar() || this._checkHorse() || (this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropWeapon.visible = !1, this._canDrive || this._canHorse || this._canMecha || (this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canDrop));
  		}
  		_onDropOrCar() {
  			if (this._dropLock) return;
  			switch (this.ui.m_dropOrCarCom.m_type.selectedIndex) {
  				case bi.canDrop:
  					o.instance.eventUI(i.PickUpWeapon), this.ui.m_att.m_type.selectedIndex = 1;
  					break;
  				case 1:
  					o.instance.eventUI(i.TurnOffWeapon), this.ui.m_att.m_type.selectedIndex = 0;
  					break;
  				case bi.canCar:
  					this.ui.m_type.selectedIndex = 1, this._canDrive = !1, this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.carOff, o.instance.eventUI(i.CarDrive);
  					break;
  				case bi.carOff:
  					this.ui.m_type.selectedIndex = 0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canCar, this._onNoCarDrive(), o.instance.eventUI(i.CarOffDrive);
  					break;
  				case bi.canHorse:
  					this.ui.m_type.selectedIndex = 1, this._canHorse = !1, this.ui.m_dropOrCarCom.visible = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.carOffHorse, o.instance.eventUI(i.MountDrive), this.ui.m_dropOrCarCom.touchable = !1, Laya.timer.once(2e3, this, () => {
  						this.ui.m_dropOrCarCom.touchable = !0;
  					});
  					break;
  				case bi.carOffHorse:
  					this.ui.m_type.selectedIndex = 0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canHorse, this._canHorse = !0, this._onNoCarDrive(), o.instance.eventUI(i.MountOffDrive), this.ui.m_dropOrCarCom.touchable = !1, Laya.timer.once(900, this, () => {
  						this.ui.m_dropOrCarCom.touchable = !0;
  					});
  					break;
  				case bi.canMecha:
  					this.ui.m_type.selectedIndex = 3, this._canMecha = !1, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.carOffMecha, this.ui.m_longNeck.m_c1.selectedIndex = 1, this.ui.m_att.m_type.selectedIndex = 2, o.instance.eventUI(i.MechaDirve), this.ui.m_dropOrCarCom.touchable = !1, Laya.timer.once(2e3, this, () => {
  						this.ui.m_dropOrCarCom.touchable = !0;
  					});
  					break;
  				case bi.carOffMecha:
  					this.ui.m_type.selectedIndex = 0, this._canMecha = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.canMecha, this.ui.m_longNeck.m_c1.selectedIndex = 0, Pa.instance.deerWeaponNum <= 0 ? this.ui.m_att.m_type.selectedIndex = 0 : this.ui.m_att.m_type.selectedIndex = 1, this._onNoCarDrive(), o.instance.eventUI(i.MechaOffDirve), Laya.timer.once(900, this, () => {
  						this.ui.m_dropOrCarCom.touchable = !0;
  					});
  					break;
  				case bi.CanFlyCattle:
  					this.ui.m_type.selectedIndex = 4, this._canFlyCattle = !1, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.carOffFlyCattle, this.ui.m_longNeck.m_c1.selectedIndex = 1, o.instance.eventUI(i.FlyCattleDirve), this.ui.m_dropOrCarCom.touchable = !1, Laya.timer.once(2e3, this, () => {
  						this.ui.m_dropOrCarCom.touchable = !0;
  					});
  					break;
  				case bi.carOffFlyCattle:
  					this.ui.m_type.selectedIndex = 0, this._canFlyCattle = !0, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.CanFlyCattle, this.ui.m_longNeck.m_c1.selectedIndex = 0, Pa.instance.deerWeaponNum <= 0 ? this.ui.m_att.m_type.selectedIndex = 0 : this.ui.m_att.m_type.selectedIndex = 1, this._onNoCarDrive(), o.instance.eventUI(i.FlyCattleOffDirve), Laya.timer.once(900, this, () => {
  						this.ui.m_dropOrCarCom.touchable = !0;
  					});
  			}
  		}
  		_onSetOffSlyCattle() {
  			this._canFlyCattle ? (this._canFlyCattle = !1, this.ui.m_dropOrCarCom.m_type.selectedIndex = bi.CanFlyCattle, this.ui.m_longNeck.m_c1.selectedIndex = 0, Pa.instance.deerWeaponNum <= 0 ? this.ui.m_att.m_type.selectedIndex = 0 : this.ui.m_att.m_type.selectedIndex = 1, this._onNoCarDrive(), o.instance.eventUI(i.FlyCattleOffDirve), Laya.timer.once(900, this, () => {
  				this.ui.m_dropOrCarCom.touchable = !0;
  			})) : console.log("当前状态不变");
  		}
  		_onBs() {
  			qe.instance.finishGuide(Re.bs), o.instance.eventUI(i.SwitchNeckForm), this.ui.m_bs.visible = !1, Laya.timer.once(500, this, () => {
  				this.ui.m_bs.visible = !0;
  			});
  		}
  		hideCrazy() {
  			this.ui.m_bs.visible = !1;
  		}
  		showCrazy() {
  			this.ui.m_bs.visible = !0;
  		}
  		_onAtt() {
  			3 != this.ui.m_type.selectedIndex ? (this._attDown = !0, qe.instance.finishGuide(Re.att), o.instance.eventUI(i.DeerAtt)) : (this._attDown = !0, console.log("机甲攻击"), o.instance.eventUI(i.MechaAtt));
  		}
  		_onDisAtt(t) {
  			this._attDown && (3 != this.ui.m_type.selectedIndex ? (this._attDown = !1, o.instance.eventUI(i.DeerDisAtt)) : (this._attDown = !1, console.log("机甲不攻击"), o.instance.eventUI(i.MechaDisAtt)));
  		}
  		_onLongNeck() {
  			this._longNeckDown = !0, 0 == this.ui.m_longNeck.m_c1.selectedIndex ? (qe.instance.finishGuide(Re.longNeck), o.instance.eventUI(i.DeerLongNeck), this.ui.m_dropOrCarCom.visible = !1) : 1 == this.ui.m_longNeck.m_c1.selectedIndex && (console.log("向上飞"), o.instance.eventUI(i.MechaFlight));
  		}
  		_onDisLongNeck() {
  			this._longNeckDown && (this._longNeckDown = !1, 0 == this.ui.m_longNeck.m_c1.selectedIndex ? o.instance.eventUI(i.StopLongNeck) : 1 == this.ui.m_longNeck.m_c1.selectedIndex && o.instance.eventUI(i.MechaNoFlight));
  		}
  		_onJump() {
  			qe.instance.finishGuide(Re.jump), qe.instance.finishGuide(Re.neckToJump), o.instance.eventUI(i.DeerJump), this.ui.m_getUp.visible = !1, Pa.instance.deer.weaponArrs.length > 0 && (this.ui.m_dropOrCarCom.visible = !0);
  		}
  		_onDeerPeople() {
  			We.instance.aimPeople.deerSunReversal();
  		}
  		_onHalloPeople() {
  			We.instance.aimPeople.sayHello();
  		}
  		_onDancePeople() {
  			We.instance.aimPeople.dance(), Pa.instance.deer.dance();
  		}
  		_onGameFail() {
  			this.ui.m_deerBlood.m_stat.setSelectedPage("fail");
  		}
  		_onDeerAttacked() {
  			this.ui.m_attacked.play();
  		}
  		_OnHide() {
  			let t = this.ui.m_dropWeapon.m_pro;
  			Laya.Tween.clearAll(t), Laya.Tween.clearAll(this.crossUi()), Laya.timer.clearAll(this), this.ui.m_att.off(Laya.Event.MOUSE_DOWN, this, this._onAtt), this.ui.m_att.off(Laya.Event.MOUSE_OUT, this, this._onDisAtt), this.ui.m_att.off(Laya.Event.MOUSE_UP, this, this._onDisAtt), this.ui.m_longNeck.off(Laya.Event.MOUSE_DOWN, this, this._onLongNeck), this.ui.m_longNeck.off(Laya.Event.MOUSE_OUT, this, this._onDisLongNeck), this.ui.m_longNeck.off(Laya.Event.MOUSE_UP, this, this._onDisLongNeck), this.ui.m_mechaLeftBtn.off(Laya.Event.MOUSE_DOWN, this, this._leftBtn), this.ui.m_mechaLeftBtn.off(Laya.Event.MOUSE_UP, this, this._leftBtn), this.ui.m_mechaLeftBtn.off(Laya.Event.MOUSE_OUT, this, this._leftBtn), this.ui.m_mechaRightBtn.off(Laya.Event.MOUSE_DOWN, this, this._rightBtn), this.ui.m_mechaRightBtn.off(Laya.Event.MOUSE_UP, this, this._rightBtn), this.ui.m_mechaRightBtn.off(Laya.Event.MOUSE_OUT, this, this._rightBtn), this.ui.m_mechaBackBtn.off(Laya.Event.MOUSE_DOWN, this, this._backBtn), this.ui.m_mechaBackBtn.off(Laya.Event.MOUSE_UP, this, this._backBtn), this.ui.m_mechaBackBtn.off(Laya.Event.MOUSE_OUT, this, this._backBtn), this.ui.m_mechaForwardBtn.off(Laya.Event.MOUSE_DOWN, this, this._forwardBtn), this.ui.m_mechaForwardBtn.off(Laya.Event.MOUSE_UP, this, this._forwardBtn), this.ui.m_mechaForwardBtn.off(Laya.Event.MOUSE_OUT, this, this._forwardBtn), this.ui.m_bs.offClick(this, this._onBs), this.ui.m_dropOrCarCom.offClick(this, this._onDropOrCar), this.ui.m_jump.offClick(this, this._onJump), o.instance.off3d(f.CanDropWeapon, this, this._onCanDropWeapon), o.instance.off3d(f.NoDropWeapon, this, this._onNoDropWeapon), o.instance.off3d(f.CanHandLife, this, this._onCanHandWeapon), o.instance.off3d(f.NoHandLife, this, this._onNoHandWeapon), o.instance.off3d(f.CanCarDrive, this, this._onCanCarDrive), o.instance.off3d(f.NoCarDrive, this, this._onNoCarDrive), o.instance.off3d(f.CanHorse, this, this._onCanHorse), o.instance.off3d(f.NoCanHorse, this, this._onNoHorse), o.instance.off3d(f.CanMecha, this, this._onCanMecha), o.instance.off3d(f.NoCanMecha, this, this._onNoCanMecha), o.instance.off3d(f.CanFlyCattle, this, this._onCanFlyCattle), o.instance.off3d(f.NoCanFlyCattle, this, this._onNoCanFlyCattle), o.instance.off3d(f.HpChange, this, this._onHpChange), o.instance.off3d(f.ClearHPBar, this, this._onClearHPBar), o.instance.off3d(f.RiskIntegralChange, this, this._updateRiskPro), o.instance.off3d(f.RiskLvAdd, this, this._updateRiskLv), o.instance.off3d(f.CanContralP, this, this._onCanContralP), o.instance.off3d(f.NoContralP, this, this._onNoContralP), o.instance.off3d(f.longNeck, this, this._onLongNeckSuc), o.instance.off3d(f.disWeapon, this, this._onDisWeapon), o.instance.off3d(f.startViewPolice, this, this._onStartViewPolice), o.instance.off3d(f.endViewPolice, this, this._onStopViewPolice), o.instance.off3d(f.viewPolice, this, this._onViewPolice), o.instance.off3d(f.TaskChange, this, this._onTaskChange), o.instance.off3d(f.bossStartAtt, this, this._bossStartAtt), o.instance.off3d(f.bossHpChange, this, this._bossHpChange), o.instance.off3d(f.bossEndAtt, this, this._bossEndAtt), o.instance.off3d(f.GameFail, this, this._onGameFail), o.instance.off3d(f.TaskFail, this, this._onGameFail), o.instance.off3d(f.DeerAttacked, this, this._onDeerAttacked), o.instance.off3d(f.attackStateChange, this, this._onAttackStateChange), o.instance.off3d(f.CattleArrive, this, this._onSetOffSlyCattle), o.instance.offUI(i.HideCrazy, this, this.hideCrazy), o.instance.offUI(i.ShowCrazy, this, this.showCrazy), o.instance.offUI(i.ZhengYiWin, this, this._zhenyiWin), Laya.stage.off(Laya.Event.KEY_DOWN, this, this.keyJump);
  		}
  		keyJump(t) {
  			t.keyCode == Laya.Keyboard.SPACE && this._onJump();
  		}
  		crossUi() {
  			return 3 == this.ui.m_type.selectedIndex ? this.ui.m_cross1 : this.ui.m_cross
  		}
  		crossUi1() {
  			return this.ui.m_cross1
  		}
  	}
  	class ls extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.right = !1, this.left = !1, this._forward = !1, this._back = !1, this._tyreRotateY = 0, this._speed = 0, this._dire = new Laya.Vector3, this.openMove = !1;
  		}
  		get back() {
  			return this._back
  		}
  		set back(t) {
  			this._back = t, this.horse.setMotion(S.idle);
  		}
  		get forward() {
  			return this._forward
  		}
  		set forward(t) {
  			this._forward = t, this.horse.setMotion(S.idle);
  		}
  		setMoveType() {
  			this._rigidBody = this.owner.getComponent(Laya.Rigidbody3D), this._rigidBody.enabled = !1, this._rigidBody.collisionGroup = ue.Car, this._characterController = this.owner.addComponent(Laya.CharacterController), this._characterController.colliderShape = new Laya.CapsuleColliderShape(.5, 2), this._characterController.colliderShape.localOffset = new Laya.Vector3(0, 1, 0), this._characterController.colliderShape.updateLocalTransformations(), this._characterController.collisionGroup = ue.Deer, this._characterController.upAxis = new Laya.Vector3(0, 1, 0), this._characterController.stepHeight = .4, this._characterController.friction = 1, this._characterController[fe.collsionSelf] = this.horse;
  		}
  		downHorse() {
  			this._characterController.destroy(), this._characterController = null;
  		}
  		setHorse(t) {
  			this.horse = t, this._rigidBody = this.horse.rig;
  		}
  		onUpdate() {
  			this.openMove && (this._updateTyreRotate(), this._updateSelfRotate(), this._updateSpeed(), Oa.carEularY = this.horse.displayObject.transform.rotationEuler.y), this._characterController && !this._characterController.isGrounded ? this.horse.shadow.active = !1 : this.horse.shadow.active = !0, null != this._characterController && this._characterController.isGrounded && !this.openMove && this.downHorse();
  		}
  		fTyreRotateY() {
  			return this._tyreRotateY
  		}
  		_updateSpeed() {
  			let t = this.horse.carConfig,
  				e = .001 * Laya.timer.delta,
  				i = t.addSpeed * e;
  			0 == this._speed && this._dire.toDefault(), this.forward ? (this._speed += i, this._speed > t.fSpeed && (this._speed = t.fSpeed)) : this.back ? (this._speed -= 4 * i, this._speed < -t.bSpeed && (this._speed = -t.bSpeed)) : 0 != this._speed && (this._speed += this._speed > 0 ? 4 * -i : 4 * i, Math.abs(this._speed) <= t.bSpeed && (this._speed = 0)), this.horse.displayObject.transform.getForward(this._dire), Laya.Vector3.scale(this._dire, -this._speed * e, this._dire), Math.abs(this._dire.x) < .01 && (this._dire.x = 0), Math.abs(this._dire.y) < .01 && (this._dire.y = 0), Math.abs(this._dire.z) < .01 && (this._dire.z = 0), isZero(this._dire) && 0 == this._tyreRotateY ? this.horse.setMotion(S.idle) : this._speed > .01 ? this._tyreRotateY < -30 ? this.horse.setMotion(S.runL) : this._tyreRotateY > 30 ? this.horse.setMotion(S.runR) : this.horse.setMotion(S.run) : this._speed < 0 ? this.horse.setMotion(S.walkBack) : this._tyreRotateY < 0 ? this.horse.setMotion(S.walkL) : this._tyreRotateY > 0 && this.horse.setMotion(S.walkR), this._characterController.move(this._dire);
  		}
  		_updateTyreRotate() {
  			let t = this.horse.carConfig;
  			this.right ? (this._tyreRotateY < 0 && (this._tyreRotateY = 0), this._tyreRotateY += t.rotateSpeed, this._tyreRotateY > t.maxRAngle && (this._tyreRotateY = t.maxRAngle)) : this.left ? (this._tyreRotateY > 0 && (this._tyreRotateY = 0), this._tyreRotateY -= t.rotateSpeed, this._tyreRotateY < -t.maxRAngle && (this._tyreRotateY = -t.maxRAngle)) : this._tyreRotateY = 0;
  		}
  		_updateSelfRotate() {
  			let t = 0;
  			this._speed >= 0 && this._tyreRotateY < 0 || this._speed < 0 && this._tyreRotateY > 0 ? t = -Math.abs(this._tyreRotateY) * Da.carSelfRRadio : (this._speed >= 0 && this._tyreRotateY > 0 || this._speed < 0 && this._tyreRotateY < 0) && (t = Math.abs(this._tyreRotateY) * Da.carSelfRRadio), 0 != t && (this.owner.transform.localRotationEulerY -= t);
  		}
  	}! function(t) {
  		t[t.Friendly = 0] = "Friendly", t[t.Enemy = 1] = "Enemy";
  	}(Si || (Si = {}));
  	class cs extends Laya.Script3D {
  			constructor() {
  				super(...arguments), this.attInterval = 0, this.canAtt = !0;
  			}
  			setData(t, e) {
  				this._weaponConfig = t, this._weapon = e;
  			}
  			onUpdate() {
  				super.onUpdate(), Oa.gameOverOrPause || this._upAttIntervalTime();
  			}
  			_upAttIntervalTime() {
  				let t = Laya.timer.delta;
  				t <= 0 || this.attInterval <= 0 || (this.attInterval -= t);
  			}
  			checkCanAtt() {
  				return !!(this.attInterval <= 0 && this.canAtt)
  			}
  			resetAttInterVal() {
  				this.attInterval = this._weaponConfig.attInterval;
  			}
  			destroy() {
  				super.destroy();
  			}
  		}! function(t) {
  			t[t.None = 0] = "None", t[t.NearFight = 1] = "NearFight", t[t.DeerFist = 2] = "DeerFist", t[t.handGun = 3] = "handGun", t[t.cases = 4] = "cases", t[t.selfWeapon = 5] = "selfWeapon", t[t.AK = 6] = "AK", t[t.sword = 7] = "sword", t[t.machine = 8] = "machine", t[t.Rifle = 9] = "Rifle", t[t.laser = 10] = "laser", t[t.snipe = 11] = "snipe", t[t.bullet = 12] = "bullet";
  		}(ki || (ki = {})),
  		function(t) {
  			t.None = "None", t.Fist = "fist", t.DeerFist = "deerFist", t.cases = "cases", t.handGun = "handGun", t.AK = "AK", t.Rifle = "rifle", t.sword = "sword", t.machine = "machine";
  		}(vi || (vi = {}));
  	class ds extends ge {
  		constructor() {
  			super(...arguments), this.weaponNode = null, this.attState = !1, this._canCollideWith = ue.People | ue.Monster | ue.Build | ue.Car | ue.Deer, this._canCollideWithDeer = ue.People | ue.Monster | ue.Build | ue.Car, this._hasAddLife = [];
  		}
  		initWeapon(t, e, i, s) {
  			const a = Object.create(null, {
  				initDisplay: {
  					get: () => super.initDisplay
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				this.weaponConfig = t, this.weaponType = this.weaponConfig.type;
  				let n = this.weaponConfig.weaponPrefabName;
  				this.faction = i;
  				let r = this._canCollideWith;
  				if (t.putInHand && Pa.instance.canHandLifes.push(this), e ? (this.displayObject = e, this.faction == L.friendly && (r = this._canCollideWithDeer)) : n && (yield R.LoadAsync(E.prefab_url(n)), this.displayObject = R.Get(E.prefab_url(n))), !this.displayObject) return console.warn("没有武器资源 需要解决");
  				this._guangyunEff = le.findChild(this.displayObject, fe.guangyunEff), this._guangyunEff && (this._guangyunEff.active = !1), s && (Aa.instance.getNowScene()
  					.scene.addChild(this.displayObject), this.displayObject.transform.position = s.clone(), this._guangyunEff && (this._guangyunEff.active = !0)), this._weaponScript = this.displayObject.addComponent(cs), this.muzzle = le.findChild(this.displayObject, fe.muzzle), this._weaponScript.setData(t, this), this.weaponAttPoint = le.findChild(this.displayObject, fe.weaponAttPoint), this._collsion = c.getPhysicComponent(this.displayObject), this._collsion && (this._collsion.collisionGroup = ue.Weapon, this._collsion.canCollideWith = r, this._collsion[fe.collsionSelf] = this), this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig && (this.rig.isTrigger = !0, this.rig.isKinematic = !0), o.instance.on3d(f.BuildDestroy, this, this.TyrFailOnBuildDestory), a.initDisplay.call(this, this.displayObject), this.initData();
  			})
  		}
  		view(t) {
  			this._model && !this._model.destroyed && (this._model.active = t);
  		}
  		initData() {}
  		getModel() {
  			return this.displayObject
  		}
  		getTrigger() {
  			return this.weaponType == ki.NearFight || this.weaponType == ki.DeerFist || this.weaponType == ki.sword ? [this._model.addComponent(pe)] : []
  		}
  		onTriggerEnter(t, e) {}
  		onTriggerExit(t, e) {}
  		onTriggerStay(t, e) {
  			let i = e[fe.collsionSelf];
  			if (this.attState && e.owner && i && i instanceof Le) {
  				if (i.faction == this.faction) return;
  				if (this._hasAddLife.indexOf(i) < 0) {
  					this._hasAddLife.push(i);
  					let t = null;
  					(t = this.displayObject ? this.displayObject.transform.position.clone() : i.displayObject.transform.position.clone())
  					.y = this.displayObject.transform.position.y + .5, i instanceof gs && i.faction == L.friendly ? i.deerMaster.mountAtted(this.weaponConfig.att, t) : null != Oe.instance.taskVo && 2 == Oe.instance.taskVo.taskConfig.rewardType ? 1 != this.weaponConfig.type && 2 != this.weaponConfig.type || (console.log("普通攻击伤害提高" + Oe.instance.taskVo.taskConfig.reward + "%"), i instanceof si ? i.atted(Math.ceil(this.weaponConfig.att / 3 * (1 + Oe.instance.taskVo.taskConfig.reward / 100)), t) : i.atted(Math.ceil(this.weaponConfig.att * (1 + Oe.instance.taskVo.taskConfig.reward / 100)), t)) : i instanceof si ? i.atted(Math.ceil(this.weaponConfig.att / 3), t) : i.atted(this.weaponConfig.att, t);
  				}
  			}
  		}
  		onCollisionEnter(t, e) {}
  		onCollisionStay(t, e) {}
  		onCollisionExit(t, e) {}
  		wear(t, e) {
  			this._lifeSprite = t, e.active = !0, this.weaponNode = e, le.SwitchParent(this.displayObject, e), this.displayObject.transform.localRotationEuler = new Laya.Vector3, this.displayObject.transform.localPosition = new Laya.Vector3;
  			let i = this.displayObject.transform.localScale;
  			Laya.Vector3.multiply(i, e.transform.localScale, i), this.displayObject.transform.localScale = this.displayObject.transform.localScale, this._guangyunEff && (this._guangyunEff.active = !1), this._collsion && (this._collsion.canCollideWith = this._canCollideWithDeer), this.weaponConfig.putInHand && le.splitNode(Pa.instance.canHandLifes, this);
  		}
  		takeOff() {
  			this._lifeSprite = null, this.displayObject.active = !0, le.SwitchParent(this.displayObject, Aa.instance.getNowScene()
  				.scene);
  			let t = Pa.instance.deer.pos()
  				.clone();
  			t.y += 5;
  			let e = t.clone();
  			e.y = -5;
  			let i = new Laya.HitResult;
  			Oa.s3d.physicsSimulation.raycastFromTo(t, e, i, ue.Ray, ue.Plane | ue.Build | ue.Car | ue.Mecha) ? (i.point.y += .1, this.displayObject.transform.position = i.point, console.warn("武器掉落在地面")) : (this.displayObject.transform.position = Pa.instance.deer.displayObject.transform.position, console.warn("武器掉落在鹿的位置")), this.displayObject.transform.rotationEuler = new Laya.Vector3, this._guangyunEff && (this._guangyunEff.active = !0), this._collsion && (this._collsion.canCollideWith = this._canCollideWith), this.weaponConfig.putInHand && Pa.instance.canHandLifes.push(this);
  		}
  		TyrFailOnBuildDestory() {
  			this._lifeSprite || 10 != this.weaponType && 11 != this.weaponType && (console.warn("武器1s后下落"), Laya.timer.once(1e3, this, () => {
  				if (this.displayObject && this.displayObject.transform) {
  					let t = this.displayObject.transform.position.clone();
  					t.y += 5;
  					let e = t.clone();
  					e.y = -5;
  					let i = new Laya.HitResult;
  					if (Oa.s3d.physicsSimulation.raycastFromTo(t, e, i, ue.Ray, ue.Plane | ue.Build | ue.Car | ue.Mecha))
  						if (this.displayObject.transform.position.y - i.point.y > .3) {
  							let t = i.point.clone();
  							t.y += .1, this.displayObject.transform.position = t, console.warn("武器设置新位置", this.weaponType), this.displayObject.transform.rotationEuler = new Laya.Vector3;
  						} else console.warn("武器没有移动位置", this.weaponType);
  					else console.warn("么有射到东西", this.weaponType);
  				}
  			}));
  		}
  		att(t, e = !0) {
  			if (this.displayObject) return !(this.attState || !this._weaponScript.checkCanAtt()) && (this._hasAddLife = [], this._weaponScript.resetAttInterVal(), Laya.timer.once(this.weaponConfig.attStartTime, this, t => {
  				1 == e && oi.instance.playSound(this.weaponConfig.sound), this.attState = !0, this._att(t);
  				let i = this.weaponConfig.attEndTime - this.weaponConfig.attStartTime;
  				Laya.timer.once(i, this, () => {
  					this.stopAtt();
  				});
  			}, [t], !1), !0)
  		}
  		stopAtt() {
  			Laya.timer.clearAll(this), this.attState = !1, this._hasAddLife = [], this._weaponScript.resetAttInterVal();
  		}
  		muzzlePos() {
  			return this.muzzle ? this.muzzle.transform.position : null
  		}
  		_att(t) {}
  		dispose() {
  			if (Laya.timer.clearAll(this), this.displayObject) {
  				console.log("调用"), o.instance.off3d(f.BuildDestroy, this, this.TyrFailOnBuildDestory);
  				let t = c.getPhysicComponent(this.displayObject);
  				t && (t[fe.collsionSelf] = null), this.displayObject.destroy();
  			}
  			this.displayObject = null, this._lifeSprite = null, this.weaponConfig = null, this.weaponType = null, super.dispose();
  		}
  	}
  	class us {
  		static get identify() {
  			return us.FromEulerAngle(0, 0, 0)
  		}
  		static FromVector3(t) {
  			return this.FromEulerAngle(t.x, t.y, t.z)
  		}
  		static ToEulerAngle(t) {
  			var e = new Laya.Vector3;
  			t.getYawPitchRoll(e);
  			var i = new Laya.Vector3;
  			return i.x = e.y * us._angleToRandin, i.y = e.x * us._angleToRandin, i.z = e.z * us._angleToRandin, i
  		}
  		static WrapFromUnity(t, e, i, s) {
  			return new Laya.Quaternion(-t, e, i, -s)
  		}
  		static ConvertFromUnity(t) {
  			return new Laya.Quaternion(-t.x, t.y, t.z, -t.w)
  		}
  		static Euler(t, e, i) {
  			return this.FromEulerAngle(t, e, i)
  		}
  		static FromEulerAngle(t, e, i) {
  			var s = t / 2 * h.Deg2Rad,
  				a = Math.cos(s),
  				n = Math.sin(s),
  				o = e / 2 * h.Deg2Rad,
  				r = Math.cos(o),
  				l = Math.sin(o),
  				c = i / 2 * h.Deg2Rad,
  				d = Math.cos(c),
  				u = Math.sin(c),
  				_ = n * r * d - a * l * u,
  				m = a * l * d + n * r * u,
  				p = a * r * u - n * l * d,
  				g = a * r * d + n * l * u;
  			return new Laya.Quaternion(_, m, p, g)
  		}
  		static MultiplyQ(t, e) {
  			var i = Laya.Quaternion.DEFAULT;
  			return Laya.Quaternion.multiply(t, e, i), i
  		}
  		static Copy(t) {
  			return new Laya.Quaternion(t.x, t.y, t.z, t.w)
  		}
  		static Multiply(t, e) {
  			var i = t.x + t.x,
  				s = t.y + t.y,
  				a = t.z + t.z,
  				n = t.x * i,
  				o = t.y * s,
  				r = t.z * a,
  				h = t.x * s,
  				c = t.x * a,
  				d = t.y * a,
  				u = t.w * i,
  				_ = t.w * s,
  				m = t.w * a,
  				p = l.zeroNew;
  			return p.x = (1 - (o + r)) * e.x + (h - m) * e.y + (c + _) * e.z, p.y = (h + m) * e.x + (1 - (n + r)) * e.y + (d - u) * e.z, p.z = (c - _) * e.x + (d + u) * e.y + (1 - (n + o)) * e.z, p
  		}
  		static Lerp(t, e, i) {
  			var s = Laya.Quaternion.DEFAULT;
  			return Laya.Quaternion.lerp(t, e, i, s), s
  		}
  	}
  	us._angleToRandin = 180 / Math.PI;
  	class _s extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.right = !1, this.left = !1, this.forward = !1, this.back = !1, this._auto = !0, this.driving = !1, this._nowRouteIndex = 0, this._tyreRotateY = 0, this._speed = 0, this._dire = new Laya.Vector3, this._canDirve = !0, this.jointSet = !1, this.wheelRigs = [], this.wheelJoints = [], this._oimoTempPos = new OIMO.Vec3, this._tempQ = new Laya.Quaternion, this._UP = new Laya.Vector3(0, 1, 0), this._0V3 = new Laya.Vector3(0, 0, 0), this._tempQuaternion = new Laya.Quaternion, this.ns = 1, this._timer = 0, this._runtimeYResult = new Laya.HitResult;
  		}
  		set auto(t) {
  			this._auto = t, Da.useOimo && Da.carUseOimo ? this._oimoRig.linearVelocity.set(0, 0, 0) : this._rig.linearVelocity = new Laya.Vector3;
  		}
  		get autoDrive() {
  			return this._auto && this._routes && this._routes.length > 0
  		}
  		setCar(t) {
  			this.car = t, this._rig = this.car.rig, this._oimoRig = this.car.oimoRig;
  		}
  		setRoutes(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this._routes = t, t && (this._routes[0].cloneTo(this.car.displayObject.transform.position), Da.useOimo && Da.carUseOimo && (this.car.oimoRig.testWakeUp(), this.car.oimoRig.awake(), this.car.oimoRig.isKinematic = !0, this.car.oimoRig.isStatic = !1));
  			})
  		}
  		onAwake() {
  			this._waterBloomNode && (this._waterBloomNode.active = !1);
  		}
  		onStart() {
  			this.audioTimer = 5 * Math.random() + 10;
  		}
  		get _waterBloomNode() {
  			return null == this._fxShuiHuaNode && (this._fxShuiHuaNode = this.owner.getChildByName(fe.carWaterBloom)), this._fxShuiHuaNode
  		}
  		onUpdate() {
  			if (this.car)
  				if (this._auto) {
  					if (this._routes && (this._autoMove(), this.wheelRotation(), this.audioTimer -= le.deltaTimeSec, this.audioTimer <= 0)) {
  						this.audioTimer = 5 * Math.random() + 10;
  						let t = Laya.Vector3.distance(this.car.displayObject.transform.position, Pa.instance.deer.displayObject.transform.position);
  						t < 100 && oi.instance.playSound(Ne.car, 1, null, null, null, 1 - t / 100);
  					}
  				} else {
  					if (this.UpdateOnStayOnWater(), !this._canDirve) return void console.log("car cant dirve in sky");
  					this._updateTyreRotate(), this._checkTurnOver() ? Oa.carEularY = null : (this.jointSet || (this.addWheelJoint(), this.jointSet = !0), this._updateSelfRotate(), this._updateSpeed(), this.driving ? Oa.carEularY = this.car.displayObject.transform.rotationEuler.y : Oa.carEularY = null);
  				}
  		}
  		fTyreRotateY() {
  			return this._tyreRotateY
  		}
  		setWheel() {
  			if (this.m_fTyresT = [], this.m_bTyresT = [], null != this.car.fTyres)
  				for (let t = 0, e = this.car.fTyres.numChildren; t < e; t++) this.m_fTyresT.push(this.car.fTyres.getChildAt(t)
  					.transform);
  			if (null != this.car.bTyres)
  				for (let t = 0, e = this.car.bTyres.numChildren; t < e; t++) this.m_bTyresT.push(this.car.bTyres.getChildAt(t)
  					.transform);
  		}
  		addWheelJoint() {
  			this.setWheel();
  			let t = this.car.displayObject.getChildByName("wheel");
  			if (null != t)
  				for (var e = 0, i = t.numChildren; e < i; e++) {
  					var s = t.getChildAt(e);
  					let i = $e.instance.CreateSphereFromObj($e.instance.oimoWorld, s.transform, new Laya.SphereColliderShape(.5), !0, !0, !1, 20);
  					$e.instance.setCollideData(i, ue.Car), this.wheelRigs.push(i);
  					new Laya.Vector3(i.position.x - this._oimoRig.position.x, i.position.y - this._oimoRig.position.y, i.position.z - this._oimoRig.position.z);
  					let a = $e.instance.AddJoint("joint", this._oimoRig, i, s.transform.localPosition, new Laya.Vector3, [5 * i.mass, 1]);
  					this.wheelJoints.push(a);
  				}
  		}
  		wheelRotation() {
  			this.m_bTyresT || this.m_fTyresT || this.setWheel();
  			let t = 180 * this.car.carConfig.autoSpeed / (.5 * Math.PI);
  			for (let e of this.m_fTyresT) e.localRotationEulerX += t;
  			for (let e of this.m_bTyresT) e.localRotationEulerX += t;
  		}
  		_autoMove() {
  			this.car.cheDeng.active = !0;
  			let t = this._nowRouteIndex + 1;
  			t = t >= this._routes.length ? 0 : t;
  			let e = this.car.displayObject.transform,
  				i = e.position,
  				s = direOneDisV3(this._routes[t], i),
  				a = this.car.carConfig.autoSpeed,
  				n = new Laya.Vector3;
  			Laya.Vector3.subtract(this._0V3, s, n), Laya.Quaternion.rotationLookAt(n, this._UP, this._tempQ), this._tempQ.invert(this._tempQ);
  			let o = us.Lerp(e.localRotation, this._tempQ, .1);
  			if (Laya.Vector3.normalize(s, s), Laya.Vector3.scale(s, a, s), Da.useOimo && Da.carUseOimo) {
  				let t = $e.instance._oimoOffset.get(this.car.oimoRig.id);
  				if (this.car.displayObject.name.includes("_9") && t.setValue(0, 1.74, 0), !t) return;
  				let i = $e.instance.getDireOffset(e, t, !0);
  				Laya.Vector3.add(i, s, s), this._oimoTempPos.x = s.x, this._oimoTempPos.y = s.y, this._oimoTempPos.z = s.z, this.car.oimoRig.awake(), this.car.oimoRig.setPosition(this._oimoTempPos), this.car.oimoRig.setQuaternion($e.instance.Quat(o));
  			} else e.localRotation = o, Laya.Vector3.add(i, s, s), this.car.displayObject.transform.position = s;
  			Laya.Vector3.distance(i, this._routes[t]) < 1 && (this._nowRouteIndex++, this._nowRouteIndex = this._nowRouteIndex >= this._routes.length ? 0 : this._nowRouteIndex);
  		}
  		_checkTurnOver() {
  			if (!this.car.isGrounded) return !0;
  			let t = this.car.displayObject.transform.rotationEuler;
  			return !(Math.abs(t.x) < Da.carTurnOffR && Math.abs(t.z) < Da.carTurnOffR)
  		}
  		_updateTyreRotate() {
  			let t = this.car.fTyres,
  				e = this.car.carConfig;
  			t && (this.right ? (this._tyreRotateY < 0 && (this._tyreRotateY = 0), this._tyreRotateY += e.rotateSpeed, this._tyreRotateY > e.maxRAngle && (this._tyreRotateY = e.maxRAngle)) : this.left ? (this._tyreRotateY > 0 && (this._tyreRotateY = 0), this._tyreRotateY -= e.rotateSpeed, this._tyreRotateY < -e.maxRAngle && (this._tyreRotateY = -e.maxRAngle)) : this._tyreRotateY = 0, t._children.forEach(t => {
  				t.transform.localRotationEulerY = -this._tyreRotateY;
  			}));
  		}
  		_updateSpeed() {
  			let t = this.car.carConfig,
  				e = t.addSpeed;
  			if (0 == this._speed && this._dire.toDefault(), this.forward ? (this._speed += e, this._speed > t.fSpeed && (this._speed = t.fSpeed)) : this.back ? (this._speed -= e, this._speed < -t.bSpeed && (this._speed = -t.bSpeed)) : 0 != this._speed && (this._speed += this._speed > 0 ? -t.bSpeed : t.bSpeed, Math.abs(this._speed) <= t.bSpeed && (this._speed = 0)), this.car.displayObject.transform.getForward(this._dire), Laya.Vector3.scale(this._dire, -this._speed, this._dire), Math.abs(this._dire.x) < .01 && (this._dire.x = 0), Math.abs(this._dire.y) < .01 && (this._dire.y = 0), Math.abs(this._dire.z) < .01 && (this._dire.z = 0), isZero(this._dire)) Da.useOimo && this._oimoRig.linearVelocity.set(.98 * this._oimoRig.linearVelocity.x, .98 * this._oimoRig.linearVelocity.y, .98 * this._oimoRig.linearVelocity.z);
  			else {
  				if (Da.useOimo && Da.carUseOimo) {
  					!1 ? this._oimoRig.applyImpulse($e.instance.v3(0, 0, 0), $e.instance.v3B(this._dire)) : isZero(this._dire) || this._oimoRig.linearVelocity.set(this._dire.x, this._dire.y, this._dire.z);
  				} else this._rig.linearVelocity = this._dire;
  				if (null != this.wheelRigs)
  					for (let t of this.wheelRigs) t.angularVelocity.set(0, 0, 0);
  			}
  		}
  		_updateSelfRotate() {
  			let t = 0;
  			this._speed > 0 ? this.ns = 1 : this._speed < 0 && (this.ns = -1), t = this._speed > 0 && this._tyreRotateY < 0 || this._speed < 0 && this._tyreRotateY > 0 ? -Math.abs(this._tyreRotateY) * Da.carSelfRRadio : this._speed > 0 && this._tyreRotateY > 0 || this._speed < 0 && this._tyreRotateY < 0 ? Math.abs(this._tyreRotateY) * Da.carSelfRRadio : this.ns * this._tyreRotateY * Da.carSelfRRadio, Da.useOimo && Da.carUseOimo ? (0 != t && this._oimoRig.linearVelocity.testZero() && this._oimoRig.linearVelocity.lengthSq() > .7 ? this._oimoRig.angularVelocity.set(this._oimoRig.angularVelocity.x, -t, this._oimoRig.angularVelocity.z) : this._oimoRig.angularVelocity.set(.9 * this._oimoRig.angularVelocity.x, .9 * this._oimoRig.angularVelocity.y, .9 * this._oimoRig.angularVelocity.z), this._speed) : 0 != t ? (this._rig.angularDamping = .9, this._rig.angularVelocity = new Laya.Vector3(this._rig.angularVelocity.x, t, this._rig.angularVelocity.z)) : this._rig.angularDamping = 1;
  		}
  		destroy() {
  			this.car = null, super.destroy();
  		}
  		onDestroy() {
  			if (this.wheelJoints)
  				for (let t of this.wheelJoints) $e.instance.RemoveJoint(t);
  			if (this.wheelRigs)
  				for (let t of this.wheelRigs) $e.instance.RemoveRig(t, $e.instance.oimoWorld, !0);
  		}
  		UpdateOnStayOnWater() {
  			if (this._timer += Laya.timer.delta, this._timer > 1e3 && (this.UpdateEnable(), this._timer = 0, this._waterBloomNode)) {
  				let t = this.owner.transform.position.clone();
  				t.y += 5;
  				let e = t.clone();
  				if (e.y = -10, Oa.s3d.physicsSimulation.raycastFromTo(t, e, this._runtimeYResult, ue.Ray, ue.Plane)) {
  					this._runtimeYResult.collider.owner.name.indexOf(fe.swim) > -1 && this._waterBloomNode.transform.position.y < -3 ? this._waterBloomNode.active || (console.log("Enter water aera,open water bloom"), this._waterBloomNode.active = !0) : this._waterBloomNode.active && (console.log("Exit water aera,close water bloom"), this._waterBloomNode.active = !1);
  				} else this._waterBloomNode.active && (console.log("Exit water aera,close water bloom"), this._waterBloomNode.active = !1);
  			}
  		}
  		UpdateEnable() {
  			let t = this.owner.transform.position.clone();
  			t.y += 5;
  			let e = t.clone();
  			if (e.y = -10, Oa.s3d.physicsSimulation.raycastFromTo(t, e, this._runtimeYResult, ue.Ray, ue.Plane | ue.Build)) {
  				let t = this.owner.transform.position.y - this._runtimeYResult.point.y;
  				this._canDirve = t < 1.5;
  			} else this._canDirve = !1;
  		}
  	}
  	class ms extends Le {
  		constructor() {
  			super(...arguments), this._canBurstOut = !0, this.isGrounded = !0, this._dirveState = 0;
  		}
  		initDisplay(t) {
  			this._collisionGroup = ue.Car, Da.useOimo && Da.carUseOimo ? this._canCollideWith = ue.Deer | ue.Ray | ue.Weapon | ue.Plane : this._canCollideWith = ue.Weapon | ue.Deer | ue.Car | ue.Ray | ue.Plane | ue.Build, super.initDisplay(t), this._init();
  			var e = this.displayObject.getChildByName("tou");
  			e && (e.active = !1);
  		}
  		_init() {
  			let t = this.displayObject.getComponent(Laya.Rigidbody3D);
  			if (t[fe.collsionSelf] = this, this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.cheDeng = this.displayObject.getChildByName("chedeng"), Da.useOimo && Da.carUseOimo) {
  				let e = t.colliderShape;
  				this.cheDeng.active = !1, this.oimoRig = $e.instance.CreateBoxFromObj($e.instance.oimoWorld, this.displayObject.transform, e, !1, !0, !1, 30), $e.instance.setCollideData(this.oimoRig, ue.Car), this.displayObject.name.includes("_9") && console.log(this.displayObject.name, this.oimoRig, e), this.oimoRig.sleep(), this.oimoRig.car = !0, this.rig.isKinematic = !0, this.rig.isTrigger = !1, this.rig.gravity = new Laya.Vector3;
  			} else this.rig && (this.rig.friction = 1, this.rig.sleepAngularVelocity = 1, this.rig.rollingFriction = 0, this.rig.angularDamping = 0, this.rig.mass = 1e4, this.rig.angularFactor = new Laya.Vector3(1, 0, 0), this.rig.isTrigger = !1, this.rig.gravity = new Laya.Vector3(0, Da.gravity, 0));
  			this.setCanMove(!1), this._moveScript = this.displayObject.addComponent(_s), this._moveScript.setCar(this), this._moveScript.auto = !0, this.fTyres = this.displayObject.getChildByName(fe.fTyre), this.bTyres = this.displayObject.getChildByName(fe.bTyre), this._taiheng = this.displayObject.getChildByName(fe.taiheng), this._weiqi = this.displayObject.getChildByName(fe.weiqi), this._taiheng && (this._taiheng.active = !1), this._weiqi && (this._weiqi.active = !1);
  		}
  		driveSpr() {
  			return this.isMotuoche() ? this.displayObject.getChildByName("ride") : this.displayObject
  		}
  		getModel() {
  			return this.displayObject
  		}
  		isMotuoche() {
  			return "car2" == this.carConfig.carPrefabName
  		}
  		setCarConfig(t) {
  			this.carConfig = t, this._dieIntegral = t.killIntegral, super.initHp(t.hp), this._dff = t.dff;
  		}
  		fTyreRotateY() {
  			this._moveScript.fTyreRotateY();
  		}
  		setRoute(t) {
  			if (!t) return;
  			let e = [];
  			t._children.forEach(t => {
  				e.push(t.transform.position.clone());
  			}), this._moveScript.setRoutes(e);
  		}
  		forward(t) {
  			this._moveScript.forward = t, this._moveScript.forward && (this._moveScript.back = !1);
  		}
  		back(t) {
  			this._moveScript.back = t, this._moveScript.back && (this._moveScript.forward = !1);
  		}
  		right(t) {
  			this._moveScript.right = t, this._moveScript.right && (this._moveScript.left = !1);
  		}
  		left(t) {
  			this._moveScript.left = t, this._moveScript.left && (this._moveScript.right = !1);
  		}
  		flight(t) {
  			this._moveScript.flight = t, this._moveScript.flight && (this._moveScript.flight = !1);
  		}
  		onTriggerStay(t, e) {
  			if (this.isGrounded = !0, e.collisionGroup == ue.Weapon) {
  				let t = e[fe.collsionSelf];
  				t ? this._attedType = t.weaponType : console.log("cuowu");
  			} else e.collisionGroup == ue.Plane && (this.isGrounded = !1);
  		}
  		onTriggerEnter(t, e) {
  			if (e.collisionGroup == ue.Weapon) {
  				let t = e[fe.collsionSelf];
  				t && (this._attedType = t.weaponType);
  			}
  		}
  		onTriggerExit(t, e) {
  			e.collisionGroup == ue.Plane && (this.isGrounded = !1);
  		}
  		onCollisionEnter(t, e) {
  			let i = e.other.collisionGroup;
  			i == ue.Deer && (Pa.instance.deer.deerForm == Gs.Crazy ? (this._moveScript ? (this._moveScript.auto = !1, this._moveScript.setRoutes(null)) : console.warn("机甲被鹿撞??????"), this.setCanMove(!0), this.oimoRig.testWakeUp(), this.oimoRig.awake()) : this._moveScript.autoDrive && i == ue.Deer && Pa.instance.deer.flyed(this.displayObject.transform.position)), this._dirveState > 0 && (this._dirveState = 0, Laya.timer.once(5e3, this, this.SetMoveFalseOnCollision));
  		}
  		onCollisionStay(t, e) {
  			if (e.other.collisionGroup == ue.Plane) {
  				this.isGrounded = !0, e.other.collisionGroup == ue.Plane && e.other.owner.name.indexOf(fe.swim) >= 0 && console.log("water");
  			}
  		}
  		onCollisionExit(t, e) {
  			e.other.collisionGroup == ue.Plane && (this.isGrounded = !1);
  		}
  		drive(t) {
  			var e = this.displayObject.getChildByName("tou");
  			e && (e.active = t), t ? (this._dirveState = 0, this.faction = L.friendly, this.setCanMove(!0), this._moveScript.auto = !1, this._moveScript.driving = !0, Da.useOimo && Da.carUseOimo && this.oimoRig.setRotation($e.instance.v3(0, this.displayObject.transform.rotationEuler.y, 0)), this._taiheng && (this._taiheng.active = !1), this._weiqi && (this._weiqi.active = !0)) : (this._dirveState++, this.faction = L.enemy, Oa.carEularY = null, this.OnGetOffCar(), this._moveScript.auto = !0, this._moveScript.driving = !1, this._taiheng && (this._taiheng.active = !1), this._weiqi && (this._weiqi.active = !1));
  		}
  		dispose() {
  			Pa.instance.RemoveAvoidLP(this), Laya.timer.clearAll(this), this._moveScript && this._moveScript.destroy(), this._moveScript = null, this.oimoRig = null, Da.useOimo && Da.carUseOimo && $e.instance.RemoveRig(this.oimoRig);
  		}
  		clear() {
  			const t = Object.create(null, {
  				dispose: {
  					get: () => super.dispose
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				this._moveScript && this._moveScript.destroy();
  				let e = this.displayObject.getChildByName(fe.center),
  					i = e ? e.transform.position : this.displayObject.transform.position.clone(),
  					s = this.displayObject.transform.position.clone();
  				if (t.dispose.call(this), this._moveScript = null, null == this.carConfig.breakPrefabName || "" == this.carConfig.breakPrefabName) return;
  				yield R.LoadAsync(E.prefab_url(this.carConfig.breakPrefabName));
  				let a = R.Get(E.prefab_url(this.carConfig.breakPrefabName));
  				le.SwitchParent(a, Pa.instance.scene.scene), a.transform.position = s, ii.startBreak(a._children, i);
  			})
  		}
  		die() {
  			const t = Object.create(null, {
  				die: {
  					get: () => super.die
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				t.die.call(this), Ze.instance.addIntegral(this._dieIntegral);
  				let e = Math.random();
  				if (this._canBurstOut = e > .9, this._canBurstOut) {
  					let t = this.displayObject.transform.position.clone();
  					t.y += .1, Pa.instance.randomDropWeapon(t);
  				}
  				this._attedType && this._attedType == ki.sword && o.instance.event3d(f.TaskChange, Be.killCarByKnife), o.instance.event3d(f.TaskChange, Be.killFiveCar), yield et.NextFrame(), oi.instance.playSound("rifle"), o.instance.event3d(f.BuildDestroy), this.clear();
  			})
  		}
  		setCanMove(t) {
  			Da.useOimo && Da.carUseOimo && this.oimoRig ? (this.oimoRig.isDynamic = t, this.oimoRig.isStatic = !t, this.oimoRig.isKinematic = !t, $e.instance.setCanMove(this.oimoRig, t)) : this.rig.isKinematic = !t;
  		}
  		OnGetOffCar() {
  			Da.useOimo && Da.carUseOimo && this.oimoRig ? (this.oimoRig.isDynamic = !0, this.oimoRig.isStatic = !1, this.oimoRig.isKinematic = !1, $e.instance.setCanMove(this.oimoRig, !0)) : this.rig.isKinematic = !1;
  		}
  		SetMoveFalseOnCollision() {
  			this._moveScript.driving || (console.warn("deer get off car ,turn off car oimo rig"), this.setCanMove(!1));
  		}
  		atted(t, e) {
  			return this.faction == L.friendly ? (Pa.instance.deer.atted(t, e), 0) : super.atted(t, e)
  		}
  	}
  	class ps extends Laya.Script3D {
  		foot() {
  			oi.instance.playSound(Ne.footStep + this.getRandom(), 1, null, null, null, .2);
  		}
  		getRandom() {
  			return h.RandomInt(1, 5)
  		}
  	}
  	class gs extends ms {
  		constructor() {
  			super(...arguments), this.onWater = !1;
  		}
  		_init() {
  			this.ani = this.displayObject.getChildAt(0)
  				.getComponent(Laya.Animator), this.displayObject.getChildAt(0)
  				.addComponent(ps), this.displayObject.getChildAt(0)
  				.addComponent(fs)
  				.horse = this, this.setMotion(S.idle), this._moveScript = this.displayObject.addComponent(ls), this._moveScript.setHorse(this), this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig && (this.rig.isKinematic = !0), this._mountSpr = le.findChild(this.displayObject, fe.mount), this.leftPedal = this.displayObject.getChildByName(fe.leftPedal), this.rightPedal = this.displayObject.getChildByName(fe.rightPedal), this.zqt = le.findChild(this.displayObject, "Bip001 L Finger0"), this.yqt = le.findChild(this.displayObject, "Bip001 R Finger0"), this.zht = le.findChild(this.displayObject, "Bip001 L Toe0"), this.yht = le.findChild(this.displayObject, "Bip001 R Toe0"), this.shadow = le.findChild(this.displayObject, "shadow");
  		}
  		driveSpr() {
  			return this._mountSpr
  		}
  		onTriggerStay(t, e) {}
  		onTriggerEnter(t, e) {}
  		onCollisionEnter(t, e) {}
  		onCollisionStay(t, e) {
  			e.other.collisionGroup == ue.Plane && (e.other.owner.name.indexOf(fe.swim) >= 0 ? this.onWater = !0 : this.onWater = !1);
  		}
  		onCollisionExit(t, e) {}
  		riding(t) {
  			oi.instance.playSound(Ne.horseRide), this._moveScript.setMoveType(), this._moveScript.openMove = !0, this.faction = L.friendly, this.deerMaster = t, this.shadow.active = !0;
  		}
  		disRiding() {
  			this._moveScript.openMove = !1, this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig && (this.rig.enabled = !0, this.rig.isKinematic = !0), this.setMotion(S.idle), oi.instance.playSound(Ne.horseStop), this.faction = L.enemy, this.deerMaster = null, Oa.carEularY = null, this.shadow.active = !0;
  		}
  		getModel() {
  			return this.displayObject
  		}
  		stateChange() {
  			if (this.lifeState == S.idle || this.lifeState == S.run || this.lifeState == S.walkL || this.lifeState == S.walkR || this.lifeState == S.runL || this.lifeState == S.runR || this.lifeState == S.walkBack) {
  				let t = this.lifeState;
  				this.ani.crossFade(t, .1, 0, 0);
  			}
  		}
  		die() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.setMotion(S.die), Ze.instance.addIntegral(this._dieIntegral), Laya.Tween.to(this.displayObject.transform, {
  					localScaleX: 0,
  					localScaleY: 0,
  					localScaleZ: 0
  				}, 200, Laya.Ease.elasticInOut, Laya.Handler.create(this, this.clear));
  			})
  		}
  	}
  	class fs extends Laya.Script3D {
  		zqt() {
  			this.horse.onWater && (console.log("zqt"), Ce.instance.PlayEffectById(je.ptRunSwimEf, 2, this.horse.zqt.transform.position));
  		}
  		yqt() {
  			this.horse.onWater && (console.log("yqt"), Ce.instance.PlayEffectById(je.ptRunSwimEf, 2, this.horse.yqt.transform.position));
  		}
  		zht() {
  			this.horse.onWater && (console.log("zht"), Ce.instance.PlayEffectById(je.ptRunSwimEf, 2, this.horse.zht.transform.position));
  		}
  		yht() {
  			this.horse.onWater && (console.log("yht"), Ce.instance.PlayEffectById(je.ptRunSwimEf, 2, this.horse.yht.transform.position));
  		}
  	}
  	class ys extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.right = !1, this.left = !1, this._forward = !1, this._back = !1, this._flight = !1, this._tyreRotateY = 0, this._tyreRotateX = 0, this._speed = 0, this._dire = new Laya.Vector3, this.openMove = !1, this.isMove = !1, this.fall = !1, this.falling = !1;
  		}
  		get back() {
  			return this._back
  		}
  		set back(t) {
  			this._back = t;
  		}
  		get forward() {
  			return this._forward
  		}
  		set forward(t) {
  			this._forward = t;
  		}
  		get flight() {
  			return this._flight
  		}
  		set flight(t) {
  			this._flight = t, this.mecha.setMotion(S.idle);
  		}
  		setMoveType() {
  			this._rigidBody = this.owner.getComponent(Laya.Rigidbody3D), this._rigidBody.enabled = !1, this._rigidBody.collisionGroup = ue.Car, this._characterController = this.owner.addComponent(Laya.CharacterController), this._characterController.colliderShape = new Laya.CapsuleColliderShape(.5, 2), this._characterController.colliderShape.localOffset = new Laya.Vector3(0, 1, 0), this._characterController.colliderShape.updateLocalTransformations(), this._characterController.collisionGroup = ue.Deer, this._characterController.upAxis = new Laya.Vector3(0, 1, 0), this._characterController.stepHeight = .4, this._characterController.jumpSpeed = 5, this._characterController.friction = 1, this._characterController[fe.collsionSelf] = this.mecha;
  		}
  		downMecha() {
  			console.log("卸下机甲"), this.mecha.rig.enabled = !0, this.mecha.rig.isKinematic = !0;
  		}
  		setMecha(t) {
  			this.mecha = t, this._rigidBody = this.mecha.rig;
  		}
  		onUpdate() {
  			this.openMove ? (this._updateDire(), this._updateTyreRotate(), this._updateSelfRotate(), this._updateSpeed(), this._updateSelfFlight(), Oa.carEularY = this.mecha.displayObject.transform.rotationEuler.y) : this._characterController && this._characterController.isGrounded && (this.downMecha(), this._characterController.destroy(), this._characterController = null);
  		}
  		_updateDire() {
  			if (this.rocker.dire.cloneTo(this._dire), isZero(this._dire)) return this.forward = !1, this.back = !1, this.left = !1, this.right = !1, void(this.mecha.flight || this.mecha.setMotion(S.idle));
  			Math.abs(this._dire.z) >= Math.abs(this._dire.x) ? this._dire.z < 0 ? (this.forward = !0, this.back = !1, this.left = !1, this.right = !1) : (this.forward = !1, this.back = !0, this.left = !1, this.right = !1) : this._dire.x < 0 ? (this.forward = !1, this.back = !1, this.left = !0, this.right = !1) : (this.forward = !1, this.back = !1, this.left = !1, this.right = !0);
  		}
  		fTyreRotateY() {
  			return this._tyreRotateY
  		}
  		fTyreRotateX() {
  			return this._tyreRotateX
  		}
  		openRocker() {
  			this.rocker = Oa.rocker;
  		}
  		stopRocker() {
  			this.rocker && this.rocker.stopRockerView();
  		}
  		closeRocker() {
  			this.rocker = null;
  		}
  		_updateSpeed() {
  			let t = this.mecha.carConfig,
  				e = .001 * Laya.timer.delta,
  				i = t.addSpeed * e;
  			0 == this._speed && this._dire.toDefault(), this.forward ? (this._speed += i, this._speed > t.fSpeed && (this._speed = t.fSpeed), this._tyreRotateX < 0 && (this._tyreRotateX = 0), this._tyreRotateX += t.rotateSpeed, this._tyreRotateX > 30 && (this._tyreRotateX = 30)) : this.back ? (this._speed -= 4 * i, this._speed < -t.bSpeed && (this._speed = -t.bSpeed), this._tyreRotateX > 0 && (this._tyreRotateX = 0), this._tyreRotateX -= t.rotateSpeed, this._tyreRotateX < -30 && (this._tyreRotateX = -30)) : (0 != this._speed && (this._speed += this._speed > 0 ? 4 * -i : 4 * i, Math.abs(this._speed) <= t.bSpeed && (this._speed = 0)), this._tyreRotateX = 0), this.mecha.displayObject.transform.getForward(this._dire), Laya.Vector3.scale(this._dire, -this._speed * e, this._dire), Math.abs(this._dire.x) < .01 && (this._dire.x = 0), Math.abs(this._dire.y) < .01 && (this._dire.y = 0), Math.abs(this._dire.z) < .01 && (this._dire.z = 0), isZero(this._dire) && 0 == this._tyreRotateY ? (this.mecha.setMotion(S.idle), 1 == this.isMove && (this.isMove = !1, oi.instance.stopSound(Ne.moveMecha))) : this._speed > .01 ? this._tyreRotateY < -30 ? 1 != this._characterController.isGrounded || this.flight ? this.mecha.setMotion(S.flight) : (0 == this.isMove && (this.isMove = !0, this.falling ? oi.instance.stopSound(Ne.moveMecha) : oi.instance.playSound(Ne.moveMecha, 0)), this.mecha.setMotion(S.walk)) : (this._tyreRotateY, 1 != this._characterController.isGrounded || this.flight ? this.mecha.setMotion(S.flight) : (0 == this.isMove && (this.isMove = !0, this.falling ? oi.instance.stopSound(Ne.moveMecha) : oi.instance.playSound(Ne.moveMecha, 0)), this.mecha.setMotion(S.walk))) : this._speed < 0 ? 1 != this._characterController.isGrounded || this.flight ? this.mecha.setMotion(S.flight) : (0 == this.isMove && (this.isMove = !0, this.falling ? oi.instance.stopSound(Ne.moveMecha) : oi.instance.playSound(Ne.moveMecha, 0)), this.mecha.setMotion(S.walk)) : this._tyreRotateY < 0 ? 1 != this._characterController.isGrounded || this.flight ? this.mecha.setMotion(S.flight) : (0 == this.isMove && (this.isMove = !0, this.falling ? oi.instance.stopSound(Ne.moveMecha) : oi.instance.playSound(Ne.moveMecha, 0)), this.mecha.setMotion(S.walk)) : this._tyreRotateY > 0 && (1 != this._characterController.isGrounded || this.flight ? this.mecha.setMotion(S.flight) : (0 == this.isMove && (this.isMove = !0, this.falling ? oi.instance.stopSound(Ne.moveMecha) : oi.instance.playSound(Ne.moveMecha, 0)), this.mecha.setMotion(S.walk))), !this._characterController.isGrounded || this.flight ? this.owner.transform.localRotationEulerX = this._tyreRotateX : (this.owner.transform.localRotationEulerX = 0, this._characterController.move(this._dire));
  		}
  		_updateTyreRotate() {
  			let t = this.mecha.carConfig;
  			this.right ? (this._tyreRotateY < 0 && (this._tyreRotateY = 0), this._tyreRotateY += t.rotateSpeed, this._tyreRotateY > t.maxRAngle && (this._tyreRotateY = t.maxRAngle)) : this.left ? (this._tyreRotateY > 0 && (this._tyreRotateY = 0), this._tyreRotateY -= t.rotateSpeed, this._tyreRotateY < -t.maxRAngle && (this._tyreRotateY = -t.maxRAngle)) : this._tyreRotateY = 0;
  		}
  		_updateSelfRotate() {
  			let t = 0;
  			this._speed >= 0 && this._tyreRotateY < 0 || this._speed < 0 && this._tyreRotateY > 0 ? t = -Math.abs(this._tyreRotateY) * Da.carSelfRRadio : (this._speed >= 0 && this._tyreRotateY > 0 || this._speed < 0 && this._tyreRotateY < 0) && (t = Math.abs(this._tyreRotateY) * Da.carSelfRRadio), 0 != t && (this.owner.transform.localRotationEulerY -= t);
  		}
  		_updateSelfFlight() {
  			if (this.flight) {
  				this.mecha.setMotion(S.flight), this.mecha.particalSys.active = !0, this._characterController.fallSpeed = 0;
  				let t = 6 * le.deltaTimeSec;
  				this.mecha.shadow.active = !1, this._characterController.move(new Laya.Vector3(this._dire.x, this._dire.y + t, this._dire.z)), 1 == this.falling && (this.falling = !1), 0 == this.fall && (this.fall = !0, this.falling = !1, oi.instance.stopSound(Ne.moveMecha), oi.instance.playSound(Ne.flyMecha, -1), this._characterController.fallSpeed = 1);
  			} else this._characterController.fallSpeed = 55, this.mecha.particalSys.active = !1, this._characterController.isGrounded ? 1 == this.fall && 1 == this.falling && (this.fall = !1, this.falling = !1, console.log("到地面"), this.mecha.shadow.active = !0, oi.instance.stopSound(Ne.flyMecha), (this.forward || this.back || this.left || this.right) && oi.instance.playSound(Ne.moveMecha, 0)) : (0 == this.falling && (this.falling = !0), this.mecha.setMotion(S.flight), this._characterController.fallSpeed = 30, this._characterController.move(this._dire), this.mecha.shadow.active = !1, oi.instance.stopSound(Ne.moveMecha));
  		}
  	}
  	class Cs extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.posSpeed = 1, this.rotationSpeed = 10, this._tempDire = new Laya.Vector3, this.randomTimer = 0;
  		}
  		onAwake() {
  			super.onAwake(), this._model = this.owner, this.startPos = this.owner.transform.position, this.rig = this.owner.getComponent(Laya.Rigidbody3D), this.rig && (this.rig.isKinematic = !1);
  		}
  		setDire(t, e) {
  			this._dire = t, this._overMaxRange = e;
  		}
  		setRoute(t, e, i) {
  			this.startPos = t.clone(), this.targetPos = e, this._overMaxRange = i, this._dire = c.direOneDisV3(t, e);
  		}
  		onUpdate() {
  			super.onUpdate(), this._offsetDire && (this.randomTimer += Laya.timer.delta, this.randomTimer > 600 && (this.randomTimer = 0, this.randomOffset())), Laya.timer.delta <= 0 || !this._dire || !this._model || (this._dire.cloneTo(this._tempDire), this._offsetDire && (Laya.Vector3.add(this._tempDire, this._offsetDire, this._tempDire), Laya.Vector3.normalize(this._tempDire, this._tempDire)), Laya.Vector3.scale(this._tempDire, Laya.timer.scale * this.weaponConfig.speed, this._tempDire), this._moveByType(this._tempDire), this._checkRange());
  		}
  		randomOffset(t = .05) {
  			null != this._offsetDire ? this._offsetDire.setValue((.5 - Math.random()) * t, (.5 - Math.random()) * t, (.5 - Math.random()) * t) : this._offsetDire = new Laya.Vector3;
  		}
  		destroy() {
  			super.destroy();
  		}
  		_checkRange() {
  			let t = Da.bulletRange;
  			Laya.Vector3.distance(this.owner.transform.position, this.startPos) > t && this.weapon && this.weapon.dispose();
  		}
  		_moveByType(t) {
  			this.rig && (this.rig.linearVelocity = t);
  		}
  		updatePos(t) {
  			if (c.isZero(t)) return;
  			let e = this._model.transform.position;
  			e.x += t.x * this.posSpeed, e.y += t.y * this.posSpeed, e.z += t.z * this.posSpeed, this._model.transform.position = e, Laya.Vector3.distance(e, this.startPos) > Da.bulletRange && this._overMaxRange && (this._overMaxRange.run(), this._overMaxRange.recover(), this._overMaxRange = null);
  		}
  	}
  	class ws {
  		constructor() {
  			this._objMap = new z;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new ws), this._instance
  		}
  		clear() {
  			this._objMap.clear();
  		}
  		InitObjPool(t, e) {
  			if (e && !this._objMap.has(t)) {
  				var i = new Ls;
  				i.sampleObj = e, this._objMap.set(t, i);
  			}
  		}
  		GetObj(t) {
  			var e = this._objMap.get(t);
  			return null == e ? null : e.GenNew()
  		}
  		ReturnObj(t, e) {
  			var i = this._objMap.get(t);
  			return null == i ? (e.destroy(!0), !1) : i.ReturnObj(e)
  		}
  	}
  	class Ls {
  		constructor() {
  			this._cacheList = [], this.maxCount = 50;
  		}
  		GenNew() {
  			return this._cacheList.length > 0 ? this._cacheList.pop() : this.sampleObj.destroyed ? null : Laya.Sprite3D.instantiate(this.sampleObj)
  		}
  		ReturnObj(t) {
  			return this._cacheList.length >= this.maxCount ? (t.destroy(!0), !1) : (this._cacheList.push(t), !0)
  		}
  	}! function(t) {
  		t.bullet = "bullet", t.cases = "cases";
  	}(Ii || (Ii = {})),
  	function(t) {
  		t[t.LINE = 1] = "LINE";
  	}(Pi || (Pi = {})),
  	function(t) {
  		t.fly = "fly", t.boom = "boom";
  	}(Ai || (Ai = {}));
  	class bs extends ge {
  		constructor(t, e) {
  			super(), this._bulletType = Pi.LINE, this._tempQuaternion = new Laya.Quaternion, this.offsetV = new Laya.Vector3, this._weaponConfig = t, this.attNum = t.att, this.faction = e, this.weaponType = ki.bullet;
  		}
  		startAtt(t, e, i = !1) {
  			const s = Object.create(null, {
  				initDisplay: {
  					get: () => super.initDisplay
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				this._dire = e, yield R.LoadAsync(ye.prefabPath(this._weaponConfig.prefabName));
  				let a = ws.instance.GetObj(Ii.bullet) || R.Get(ye.prefabPath(this._weaponConfig.prefabName));
  				ws.instance.InitObjPool(Ii.bullet, a), a.transform.position = t, c.SwitchParent(a, Aa.instance.getNowScene()
  					.scene), s.initDisplay.call(this, a);
  				let n = Oa.camera.transform.rotationEuler;
  				Laya.Quaternion.createFromYawPitchRoll(deg2rad(n.y), deg2rad(n.x), deg2rad(n.z), this._tempQuaternion), Laya.Vector3.transformQuat(a.transform.rotationEuler, this._tempQuaternion, a.transform.rotationEuler), a.transform.rotationEuler = new Laya.Vector3(n.x, n.y, n.z), this._flyScripte = this._model.addComponent(Cs), this._flyScripte.weaponConfig = this._weaponConfig, this._flyScripte.posSpeed = this._weaponConfig.speed, this._flyScripte.weapon = this, this._rig = this._model.getComponent(Laya.Rigidbody3D), this._rig.collisionGroup = ue.Weapon, this._rig.canCollideWith = ue.People | ue.Plane | ue.Monster | ue.Build | ue.Car | ue.Deer, this._rig.gravity = new Laya.Vector3, this._rig[fe.collsionSelf] = this, this._flyScripte.setDire(this._dire, Laya.Handler.create(this, this.dispose)), i && this._flyScripte.randomOffset();
  			})
  		}
  		playAction(t, e = Number.NEGATIVE_INFINITY, i = !1, s = .2) {
  			return !(!i && (Oa.gameOverOrPause || t == this._heroState)) && (this.ani.crossFade(t, s, 0, e), this._heroState = t, !0)
  		}
  		onTriggerEnter(t, e) {
  			return __awaiter(this, void 0, void 0, function*() {
  				let t = this.displayObject.transform.position.clone(),
  					i = Pa.instance.deer.displayObject.transform.position,
  					s = Laya.Vector3.distance(t, i),
  					a = e[fe.collsionSelf];
  				if (a && a instanceof Le) {
  					if (a.faction == this.faction) return;
  					Laya.Vector3.scale(this._dire, s / 25, this.offsetV), Laya.Vector3.subtract(t, this.offsetV, t);
  					let e = this._weaponConfig.att;
  					switch (null != Oe.instance.taskVo && 3 == Oe.instance.taskVo.taskConfig.rewardType ? (console.log("武器伤害提升" + (Oe.instance.taskVo.taskConfig.reward + ot.instance.skinWeaponBuff) + "%"), e = Math.ceil(e * (1 + (Oe.instance.taskVo.taskConfig.reward + ot.instance.skinWeaponBuff) / 100))) : e = Math.ceil(e * (1 + ot.instance.skinWeaponBuff / 100)), this._weaponConfig.weaponPrefabName) {
  						case "handGun":
  							Pa.instance.deer.isHandGunUp ? a.atted(Math.ceil(1.2 * e), t) : a.atted(e, t);
  							break;
  						case "AK":
  							Pa.instance.deer.isAKUp ? a.atted(Math.ceil(1.2 * e), t) : a.atted(e, t);
  							break;
  						case "machine":
  							Pa.instance.deer.isMachineUp ? a.atted(Math.ceil(1.2 * e), t) : a.atted(e, t);
  							break;
  						case "sword":
  							Pa.instance.deer.isSwordUp ? a.atted(Math.ceil(1.2 * e), t) : a.atted(e, t);
  							break;
  						case "rifle":
  							Pa.instance.deer.isRifleUp ? a.atted(Math.ceil(1.2 * e), t) : a.atted(e, t);
  							break;
  						default:
  							a.atted(e, t);
  					}
  				}
  				if (this.offEvent(), Ce.instance.PlayEffectById(je.bulletEf, 2, t), s < 100) {
  					let t = 1 - s / 100;
  					t *= t, oi.instance.playSound(Ne.bulletBoom, 1, null, null, null, t);
  				}
  				yield et.Frames(1), this.clearFly(), this.dispose();
  			})
  		}
  		clearFly() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this._flyScripte && this._flyScripte.destroy(), this._flyScripte = null;
  			})
  		}
  		getModel() {
  			return this.displayObject
  		}
  		dispose() {
  			Laya.timer.clearAll(this), this.offEvent(), this.clearTrigger(), this._flyScripte && this._flyScripte.destroy(), this._flyScripte = null, this._rig && (this._rig[fe.collsionSelf] = null, this._rig = null), this.displayObject && (this.displayObject.removeSelf(), ws.instance.ReturnObj(Ii.cases, this.displayObject));
  		}
  	}
  	class Ss extends ms {
  		constructor() {
  			super(...arguments), this.leftAtt = !0;
  		}
  		_init() {
  			this.ani = this.displayObject.getComponent(Laya.Animator), this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig && (this.rig.enabled = !0, this.rig.isKinematic = !0), this.weaponConfig = v[5], this.setMotion(S.idle), this._moveScript = this.displayObject.addComponent(ys), this._moveScript.setMecha(this), this._mountSpr = le.findChild(this.displayObject, fe.mount), this.crossUi = this.displayObject.addComponent(Is), this.crossUi.ui = hs.instance.crossUi1(), this.crossUi.isMecha = !0, this.crossUi.crossHair = !1, this.leftPedal = this.displayObject.getChildByName(fe.leftPedal), this.rightPedal = this.displayObject.getChildByName(fe.rightPedal), o.instance.onUI(i.MechaFlight, this, this.flighting), o.instance.onUI(i.MechaNoFlight, this, this.noFlighting), o.instance.onUI(i.MechaAtt, this, this.mechaOpenAtt), o.instance.onUI(i.MechaDisAtt, this, this.mechaStopAtt), this.particalSys = this.displayObject.getChildByName("jijiayan"), this.muzzle = this.displayObject.getChildByName("muzzle"), this.muzzle1 = this.displayObject.getChildByName("muzzle1"), this.qy = this.displayObject.getChildByName("qy"), this.qy1 = this.displayObject.getChildByName("qy1"), this.qy.active = !1, this.qy1.active = !1, this.particalSys.active = !1, this.shadow = le.findChild(this.displayObject, "shadow"), null != Oe.instance.taskVo && 6 == Oe.instance.taskVo.taskConfig.rewardType && (console.log("初始状态为装甲模式"), this.displayObject.transform.position = new Laya.Vector3(-193.4, -1.02, 218.1), Pa.instance.deer.displayObject.transform.position = new Laya.Vector3(-191, -.966, 215.8), Pa.instance.deer.displayObject.transform.rotation = this.displayObject.transform.rotation, this.rig.isKinematic = !0);
  		}
  		driveSpr() {
  			return this._mountSpr
  		}
  		getFlag() {
  			return this._collisionGroup == ue.Car
  		}
  		riding(t) {
  			this.rig.overrideGravity = !0, this.rig.gravity = new Laya.Vector3(0, -100, 0), this._collisionGroup = ue.Plane, this.faction = L.friendly, oi.instance.playSound(Ne.openMecha), this._moveScript.setMoveType(), this._moveScript.openMove = !0, this.deerMaster = t, this.deerMaster.rig.enabled = !0, this.deerMaster.rig.isTrigger = !0, this.deerMaster.rig.isKinematic = !0, this._moveScript.openRocker(), this.shadow.active = !0;
  		}
  		disRiding() {
  			this._moveScript.openMove = !1, this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig, this.setMotion(S.idle), oi.instance.stopSound(Ne.moveMecha), oi.instance.stopSound(Ne.handGun), oi.instance.stopSound(Ne.flyMecha), this.deerMaster.lifeState != S.die && oi.instance.playSound(Ne.stopMecha), this.faction = L.enemy, this.deerMaster.rig.enabled = !1, this.deerMaster.rig.isTrigger = !1, this.deerMaster.rig.isKinematic = !1, this.deerMaster = null, Oa.carEularY = null, this._collisionGroup = ue.Car, this._moveScript.stopRocker(), this.shadow.active = !0;
  		}
  		flighting() {
  			this._moveScript.flight = !0;
  		}
  		noFlighting() {
  			this._moveScript.flight = !1;
  		}
  		getModel() {
  			return this.displayObject
  		}
  		stateChange() {
  			if (this.lifeState == S.idle || this.lifeState == S.walk || this.lifeState == S.down || this.lifeState == S.flight) {
  				let t = this.lifeState;
  				this.ani.crossFade(t, .1, 0, 0);
  			}
  		}
  		mechaOpenAtt() {
  			if (this.leftAtt) {
  				this.leftAtt = !1, null == this.muzzle && (this.muzzle = this.displayObject.getChildByName("muzzle"));
  				let t = c.direOneDisV3(this.crossUi.point3d, this.muzzle.transform.position),
  					e = this._createBullet();
  				e && e.startAtt(this.muzzle.transform.position, t, !0), this.qy && (this.qy.active = !0), Laya.timer.once(100, this, this.mechaOpenAtt), oi.instance.playSound(Ne.handGun);
  			} else {
  				this.leftAtt = !0, null == this.muzzle1 && (this.muzzle1 = this.displayObject.getChildByName("muzzle1"));
  				let t = c.direOneDisV3(this.crossUi.point3d, this.muzzle1.transform.position),
  					e = this._createBullet();
  				e && e.startAtt(this.muzzle1.transform.position, t, !0), this.qy1 && (this.qy1.active = !0), Laya.timer.once(100, this, this.mechaOpenAtt), oi.instance.playSound(Ne.handGun);
  			}
  		}
  		mechaStopAtt() {
  			this.qy.active = !1, this.qy1.active = !1, Laya.timer.clearAll(this);
  		}
  		die() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.setMotion(S.die), Ze.instance.addIntegral(this._dieIntegral), Laya.Tween.to(this.displayObject.transform, {
  					localScaleX: 0,
  					localScaleY: 0,
  					localScaleZ: 0
  				}, 200, Laya.Ease.elasticInOut, Laya.Handler.create(this, this.clear)), this.dispose();
  			})
  		}
  		_createBullet() {
  			let t = v.dataList[15];
  			return new bs(t, L.friendly)
  		}
  		onCollisionEnter(t, e) {}
  		dispose() {
  			console.log("diaoyong"), o.instance.offUI(i.MechaFlight, this, this.flighting), o.instance.offUI(i.MechaNoFlight, this, this.noFlighting), o.instance.offUI(i.MechaAtt, this, this.mechaOpenAtt), o.instance.offUI(i.MechaDisAtt, this, this.mechaStopAtt), super.dispose();
  		}
  	}
  	class ks extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this._nowRouteIndex = 0, this._tyreRotateY = 0, this._startMove = !1, this.mountDeer = !0, this._tempQ = new Laya.Quaternion, this._UP = new Laya.Vector3(0, 1, 0);
  		}
  		set startMove(t) {
  			this._startMove = t, t && oi.instance.playSound(Ne.cow);
  		}
  		get startMove() {
  			return this._startMove
  		}
  		setCattle(t) {
  			this.cattle = t;
  		}
  		onAwake() {
  			o.instance.onUI(i.FlyCattleOffDirve, this, this.onNoDrive), this.fx = this.owner.getChildByName("yan"), this.fx.active = !1;
  		}
  		onDestroy() {
  			o.instance.offUI(i.FlyCattleOffDirve, this, this.onNoDrive);
  		}
  		setRoutes(t) {
  			this._routes = t, t && this._routes[0].cloneTo(this.cattle.displayObject.transform.position);
  		}
  		onUpdate() {
  			this.startMove && (this.cattle.shadow.active = !1, this._autoMove(), this.mountDeer && (Pa.instance.deer.displayObject.transform.position = this.cattle.displayObject.transform.position));
  		}
  		onNoDrive() {
  			this.mountDeer = !1;
  		}
  		_autoMove() {
  			let t = this._nowRouteIndex + 1;
  			t = t >= this._routes.length ? 0 : t;
  			let e = 2 * this.cattle.carConfig.autoSpeed;
  			this._moveToPos(this._routes[t], e);
  		}
  		_moveToPos(t, e) {
  			let i = this.cattle.displayObject.transform,
  				s = i.position,
  				a = direOneDisV3(t, s);
  			Laya.Vector3.scale(a, e, a), Laya.Vector3.add(s, a, i.position), i.position = i.position, Laya.Vector3.scale(a, -1, a), Laya.Quaternion.rotationLookAt(a, this._UP, this._tempQ), this._tempQ.invert(this._tempQ);
  			let n = us.Lerp(i.rotation, this._tempQ, .02);
  			i.rotation = n, Laya.Vector3.distance(s, t) <= e && (this._nowRouteIndex++, this._nowRouteIndex >= this._routes.length - 1 && (this.startMove = !1, this.destroy(), this.fx.active = !1, this.cattle._moveScript = null, Pa.instance.deer.isDriving && Pa.instance.deer.noDrive(!1), o.instance.event3d(f.CattleArrive)));
  		}
  	}
  	class vs extends ms {
  		constructor() {
  			super(...arguments), this.isDead = !1;
  		}
  		_init() {
  			this.ani = this.displayObject.getChildAt(0)
  				.getComponent(Laya.Animator), this.setMotion(S.idle), this._moveScript = this.displayObject.addComponent(ks), this._moveScript.setCattle(this), this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig && (this.rig.isKinematic = !0), this.shadow = le.findChild(this.displayObject, "shadow");
  		}
  		stateChange() {
  			if (this.lifeState == S.idle || this.lifeState == S.run || this.lifeState == S.walk || this.lifeState == S.die) {
  				let t = this.lifeState;
  				this.ani.crossFade(t, .1, 0, 0);
  			}
  		}
  		atted(t, e) {
  			return this.isDie() || this.isDead ? 0 : super.atted(t, e)
  		}
  		die() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.isDead = !0, this.setMotion(S.die), this._moveScript.fx.active = !0, this.shadow.active = !1, oi.instance.playSound(Ne.cow), this.displayObject.transform.localPositionY += 1;
  			})
  		}
  		onCollisionEnter(t, e) {}
  	}
  	class Is extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.farRange = Da.crossFarDis, this.collisionMask = ue.Build | ue.Car | ue.People | ue.Monster, this.collisonGroup = ue.Ray, this.point3d = new Laya.Vector3, this.crossHair = !1, this.openCross = !0, this.deerState = 0, this._point = new Laya.Vector2, this._ray = new Laya.Ray(new Laya.Vector3, new Laya.Vector3), this._boxShape = new Laya.BoxColliderShape(Da.crossRange, Da.crossRange, Da.crossRange), this._hitResult = new Laya.HitResult, this.isMecha = !1, this._targetPos = new Laya.Vector2, this._cameraLastPos = new Laya.Vector3, this._cameraLastR = new Laya.Vector3;
  		}
  		onUpdate() {
  			!Oa.gameOverOrPause && this.ui && this.ui.displayObject && this._updateUi();
  		}
  		_updateUi() {
  			if (!this.openCross) return this.isMecha || (this.ui.visible = !1), this.ui.x = this._point.x, void(this.ui.y = this._point.y);
  			let t = Oa.cameraControl.transform;
  			if (Laya.Vector3.distance(this._cameraLastPos, t.position) < .01 && Laya.Vector3.distance(this._cameraLastR, t.rotationEuler) < .01 && this._refreshInterval > 0) return;
  			this._refreshInterval < 0 && (this._refreshInterval = Da.refreshInterval), this._refreshInterval -= Laya.timer.delta, t.position.cloneTo(this._cameraLastPos), t.rotationEuler.cloneTo(this._cameraLastR);
  			let e = this._getNowCross();
  			if (this._hitSucCheck(), this.ui)
  				if (this.crossHair) {
  					let t = Oa.camera,
  						i = le.GetPointFrom3DWorld(t, e, null);
  					if (0 == this.ui.visible) return this.ui.visible = !0, void this.ui.setXY(Laya.stage.width / 2, Laya.stage.height / 2);
  					if (this.ui.visible = !0, 0 == this.deerState ? hs.instance.ui.m_longNeck.visible = !0 : hs.instance.ui.m_longNeck.visible = !1, Math.abs(this._targetPos.x - i.x) < .1 && Math.abs(this._targetPos.y - i.y) < .1) return;
  					if (this._targetPos.x == i.x && this._targetPos.y == i.y) return;
  					this._targetPos.setValue(i.x, i.y), Laya.Tween.to(this.ui, {
  						x: this._targetPos.x,
  						y: this._targetPos.y
  					}, Da.crossUITweenTime), hs.instance.isShow && qe.instance.nowGuideId == Re.longNeck && qe.instance.triggerGuide(Re.longNeck, hs.instance.ui.m_longNeck);
  				} else this.isMecha || (this.ui.visible = !1), this.ui.x = this._point.x, this.ui.y = this._point.y, hs.instance.isShow && qe.instance.nowGuideId == Re.longNeck || (hs.instance.ui.m_longNeck.visible = !1);
  		}
  		_getNowCross() {
  			let t = Oa.camera;
  			if (this._point.x = Laya.stage.width / 2, this._point.y = Laya.stage.height / 2, He.ScreenPosToRay(t, this._point, this._ray), this._hitResult.collider = null, this._hitResult.succeeded = !1, Oa.s3d.physicsSimulation.rayCast(this._ray, this._hitResult, this.farRange, this.collisonGroup, this.collisionMask)) this._hitResult.point.cloneTo(this.point3d), this.isMecha || (this.crossHair = !0);
  			else {
  				this.crossHair = !1;
  				let t = this._ray.direction;
  				Laya.Vector3.add(this._ray.origin, t, this._ray.origin), Laya.Vector3.scale(t, this.farRange, t), Laya.Vector3.add(this._ray.origin, t, this.point3d), Oa.s3d.physicsSimulation.shapeCast(this._boxShape, this._ray.origin, this.point3d, this._hitResult, null, null, this.collisonGroup, this.collisionMask) && (this._hitResult.point.cloneTo(this.point3d), this.isMecha || (this.crossHair = !0));
  			}
  			return this.point3d
  		}
  		_hitSucCheck() {
  			if (!(be.instance.driveCar || be.instance.horse || be.instance.mecha || be.instance.cattle)) {
  				if (this._hitResult.succeeded) {
  					this._hitResult.succeeded = !1;
  					let t = this._hitResult.collider.collisionGroup,
  						e = Pa.instance.deer.displayObject.transform.position;
  					if (t == ue.Car) {
  						let t = this._hitResult.collider[fe.collsionSelf];
  						if (t instanceof vs) {
  							let i = t.displayObject.transform.position;
  							if (t.isDead && Laya.Vector3.distance(i, e) < Da.canContralPeopleDis) return We.instance.setContralPeople(null), be.instance.setCanDriveCar(null), be.instance.setCanHorse(null), be.instance.setCanMecha(null), void be.instance.setCanCattle(t)
  						} else if (t instanceof gs) {
  							let i = t.displayObject.transform.position;
  							if (Laya.Vector3.distance(i, e) < Da.canContralPeopleDis) return We.instance.setContralPeople(null), be.instance.setCanDriveCar(null), be.instance.setCanHorse(t), be.instance.setCanMecha(null), void be.instance.setCanCattle(null)
  						} else if (t instanceof Ss) {
  							let i = t.displayObject.transform.position;
  							if (Laya.Vector3.distance(i, e) < Da.canContralPeopleDis) return We.instance.setContralPeople(null), be.instance.setCanDriveCar(null), be.instance.setCanHorse(null), be.instance.setCanMecha(t), void be.instance.setCanCattle(null)
  						} else if (t instanceof ms) {
  							let i = t.displayObject.transform.position;
  							if (Laya.Vector3.distance(i, e) < t.carConfig.radius) return We.instance.setContralPeople(null), be.instance.setCanHorse(null), be.instance.setCanDriveCar(t), be.instance.setCanMecha(null), void be.instance.setCanCattle(null)
  						}
  					}
  					if (t == ue.People) {
  						let t = this._hitResult.collider[fe.collsionSelf],
  							i = t.displayObject.transform.position;
  						if (Laya.Vector3.distance(i, e) < Da.canContralPeopleDis) return be.instance.setCanHorse(null), be.instance.setCanDriveCar(null), We.instance.setContralPeople(t), be.instance.setCanMecha(null), void be.instance.setCanCattle(null)
  					}
  					be.instance.setCanHorse(null), be.instance.setCanDriveCar(null), We.instance.setContralPeople(null), be.instance.setCanMecha(null), be.instance.setCanCattle(null);
  				}
  				be.instance.setCanHorse(null), be.instance.setCanDriveCar(null), We.instance.setContralPeople(null), be.instance.setCanMecha(null), be.instance.setCanCattle(null);
  			}
  		}
  		setDeerState(t) {
  			this.deerState = t;
  		}
  		destroy() {
  			Laya.Tween.clearAll(this.ui), super.destroy();
  		}
  	}
  	class Ps extends Laya.AnimatorStateScript {
  		constructor() {
  			super(...arguments), this._leftEffFWalk = .4, this._leftEffBWalk = 0, this._rightEffFWalk = 0, this._rightEffBWalk = .4, this._leftEffFRun = .1, this._leftEffBRun = .55, this._rightEffFRun = 0, this._rightEffBRun = .8, this._timeOffset = .01;
  		}
  		onStateEnter() {}
  		onStateUpdate() {
  			let t, e = this.deer.ani.getControllerLayer(0)
  				.getCurrentPlayState(),
  				i = e._normalizedPlayTime,
  				s = e.animatorState.name;
  			s == Vs.walk ? Math.abs(i - this._leftEffFWalk) < this._timeOffset ? t = this.deer.leftFfoot.transform : Math.abs(i - this._leftEffBWalk) < this._timeOffset ? t = this.deer.leftBfoot.transform : Math.abs(i - this._rightEffBWalk) < this._timeOffset ? t = this.deer.rightBfoot.transform : Math.abs(i - this._rightEffFWalk) < this._timeOffset && (t = this.deer.rightFfoot.transform) : s == Vs.run && (Math.abs(i - this._leftEffFRun) < this._timeOffset ? t = this.deer.leftFfoot.transform : Math.abs(i - this._leftEffBRun) < this._timeOffset ? t = this.deer.leftBfoot.transform : Math.abs(i - this._rightEffFRun) < this._timeOffset ? t = this.deer.rightFfoot.transform : Math.abs(i - this._rightEffBRun) < this._timeOffset && (t = this.deer.rightBfoot.transform)), t && (this.deer.onWater ? Ce.instance.PlayEffectById(je.ptRunSwimEf, 2, t.position, t.rotation) : (Ce.instance.PlayEffectById(je.shazi, 2, t.position, t.rotation), Ce.instance.PlayEffectById(je.ptRunEf, 2, t.position, null, this.deer.displayObject.transform.rotationEuler)));
  		}
  		onStateExit() {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield et.NextFrame();
  				let t = this.deer.ani.getControllerLayer(0)
  					._crossPlayState;
  				if (!t) return;
  				let e = t.name;
  				e == Vs.bs || e == Vs.bsAtt2 || e == Vs.bsAttSward ? this.deer.setMotion(S.idle, !0) : e == Vs.att ? this.deer.setMotion(S.idle, !0) : e == Vs.bsAtt1 ? this.deer.lifeState != S.att ? (this.deer.playAni(Vs.bsAtt2), this.deer.attSpecialAtt()) : this.deer.playAni(Vs.bsAtt1) : e == Vs.jump ? this.deer.playAni(Vs.fly) : e == Vs.bsJump && this.deer.playAni(Vs.bsFly);
  			})
  		}
  	}
  	class As extends ds {
  		constructor() {
  			super();
  		}
  		initData() {
  			this._addOimoRig();
  		}
  		_att(t) {}
  		_addOimoRig() {
  			if (Da.useOimo && !this.oimoRig) {
  				let t = this._collsion.colliderShape;
  				this.oimoRig = $e.instance.CreateBoxFromObj($e.instance.oimoWorld, this.displayObject.transform, t, !0), $e.instance.setCollideData(this.oimoRig, ue.Weapon);
  			}
  		} catch (t) {
  			this.closeRig(), oi.instance.playSound(Ne.pickSword);
  		}
  		closeRig() {
  			this.oimoRig && ($e.instance.RemoveRig(this.oimoRig), this.oimoRig = null);
  		}
  		putDowned() {
  			this._addOimoRig();
  		}
  		dispose() {
  			this.closeRig(), super.dispose();
  		}
  	}
  	class Os {
  		constructor(t) {
  			this.localPostion = new Laya.Vector3, this.localEular = new Laya.Vector3, this.node = t, t.transform.localPosition.cloneTo(this.localPostion), t.transform.localRotationEuler.cloneTo(this.localEular);
  		}
  	}
  	var Rs = new Laya.Vector3(0, 1, 0);
  	class Ds extends fi {
  		constructor(t, e, i) {
  			super(), this.nodes = [], this.bones = {}, this.deltaPos = new Laya.Vector3, this.deltaVel = new Laya.Vector3, this.restLen = 0, this._tmpDir = new Laya.Vector3, this._tmpDir1 = new Laya.Vector3, this._UP = new Laya.Vector3(0, 1, 0), this._tempQ = new Laya.Quaternion, this._target = new Laya.Vector3, this.model = t, this.scene = e, this.rig = i;
  			var s = this.followDeer = new Laya.Sprite3D("deerFollow");
  			Pa.instance.scene.scene.addChild(s), this.followRig = s.addComponent(Laya.Rigidbody3D), this.followRig.colliderShape = i.colliderShape.clone(), this.followRig.collisionGroup = i.collisionGroup, this.followRig.canCollideWith = i.canCollideWith, this.followRig.mass = 2 * i.mass, this.followRig.ccdMotionThreshold = .1, this.followRig.ccdSweptSphereRadius = 1, this.followRig.overrideGravity = !0, this.followRig.gravity = new Laya.Vector3(0, -20, 0), this.followRig.angularDamping = .6, this.followRig.linearDamping = .3, this.followRig.restitution = 0, this.followRig.friction = .8, this.followRig.rollingFriction = .4, this.followRig.isKinematic = !0, this.pinPoint = new mi(this.model.transform.position.clone(), 1, "center"), li.pointMasses.push(this.pinPoint), this.pinPoint.pinned = !1, this.pinPoint.pinNode = this.model;
  			var a = this.CreatePointMassByNode("Bip001 Neck1");
  			this.ConnectNode(a, this.pinPoint, 1, .1);
  			var n = this.CreatePointMassByNode("Bip001 Neck2"),
  				o = this.CreatePointMassByNode("Bip001 Neck3"),
  				r = this.CreatePointMassByNode("Bip001 Neck4"),
  				h = this.CreatePointMassByNode("Bip001 Neck5"),
  				l = this.CreatePointMassByNode("Bip001 Neck6"),
  				c = this.dragPoint = this.CreatePointMassByNode("Bip001 Head", !0);
  			this.headNode = this.bones[c.name].node;
  			this.ConnectNode(c, l, 1, .15), this.ConnectNode(l, h, 1, .15), this.ConnectNode(h, r, 1, .15), this.ConnectNode(r, o, 1, .15), this.ConnectNode(o, n, 1, .15), this.ConnectNode(n, a, 1, .15), this.restLen = Laya.Vector3.distance(this.pinPoint.currentPos, this.model.transform.position), this.updateCom = this.model.addComponent(xs), this.updateCom.onPreRenderFunc = (() => {
  				this.onUpdate();
  			}), this.Disable();
  		}
  		_setStartRig() {
  			this.rig.ccdMotionThreshold = .1, this.rig.ccdSweptSphereRadius = 1, this.rig.overrideGravity = !0, this.rig.angularDamping = .8, this.rig.linearDamping = .5, this.rig.gravity = new Laya.Vector3(0, -20, 0), this.rig.friction = .6, this.rig.rollingFriction = .6, this.rig.restitution = .1, this.rig.enabled = !1;
  		}
  		_setEndRig() {
  			this.rig.angularDamping = .5, this.rig.linearDamping = .5, this.rig.restitution = .4, this.rig.gravity = new Laya.Vector3(0, -30, 0), this.rig.friction = .999, this.rig.rollingFriction = .9999;
  		}
  		onUpdate() {
  			if (Laya.Vector3.lerp(this._target, this.dragPoint.pinPos, .1, this.dragPoint.pinPos), this.dragPoint.pinned) {
  				Laya.Vector3.subtract(this.pinPoint.currentPos, this.model.transform.position, this.deltaPos), Laya.Vector3.subtract(this.pinPoint.velocity, this.rig.linearVelocity, this.deltaVel);
  				var t = Laya.Vector3.scalarLength(this.deltaPos);
  				if (!Laya.MathUtils3D.isZero(t)) {
  					Laya.Vector3.normalize(this.deltaPos, this.deltaPos);
  					var e = this.pinPoint.currentPos;
  					e.x -= this.deltaPos.x * t * .1, e.y -= this.deltaPos.y * t * .1, e.z -= this.deltaPos.z * t * .1;
  					var i = 3e3 * (t - this.restLen) + 100 * Laya.Vector3.dot(this.deltaVel, this.deltaPos) / t;
  					Laya.Vector3.scale(this.deltaPos, i, this.deltaPos), this.followRig.applyForce(this.deltaPos);
  				}
  				var s = this._tmpDir1;
  				Laya.Vector3.subtract(this._target, this.model.transform.position, s), Laya.Vector3.scale(s, -1, s), Laya.Vector3.add(this.model.transform.position, s, s);
  				var a = this.model.transform.localRotationEulerX,
  					n = this.model.transform.localRotationEulerY,
  					o = this.model.transform.localRotationEulerZ;
  				this.model.transform.lookAt(s, Rs);
  				var r = this.model.transform.localRotationEulerX,
  					h = this.model.transform.localRotationEulerY,
  					l = this.model.transform.localRotationEulerZ;
  				this.model.transform.localRotationEulerX = Laya.MathUtil.lerp(a, r, .1), this.model.transform.localRotationEulerY = Laya.MathUtil.lerp(n, h, .07), this.model.transform.localRotationEulerZ = Laya.MathUtil.lerp(o, l, .1);
  			}
  			for (var c = 0; c < this.pointMasses.length; c++) this.nodes[c].transform.position = this.pointMasses[c].currentPos;
  			s = this._tmpDir1;
  			Laya.Vector3.subtract(this._target, this.model.transform.position, s), Laya.Vector3.scale(s, -1, s), Laya.Vector3.add(this.model.transform.position, s, s), this.headNode.transform.lookAt(s, Rs);
  		}
  		CreatePointMassByNode(t, e = !1, i = 1) {
  			var s = this.GetChildNode(this.model, t);
  			if (null != s) {
  				this.nodes.push(s);
  				var a = new Os(s);
  				return this.bones[t] = a, this.CreatePointMass(s.transform.position.clone(), i, t)
  			}
  		}
  		ConnectNodeByName(t, e, i = 1) {
  			var s = this.GetDistance(this.model, t, e);
  			this.ConnectByName(t, e, s, i);
  		}
  		ConnectNode(t, e, i = 1, s = 1) {
  			var a = Laya.Vector3.distance(t.currentPos, e.currentPos) * s;
  			e.AttachTo(t, a, i);
  		}
  		Drag(t, e = 50, i = 10) {
  			return this._target = t, Laya.timer.clearAll(this), Laya.timer.frameLoop(1, this, this._LookAt), this.followDeer.transform.position = this.model.transform.position, this.followDeer.transform.position.y += .5, this.followDeer.transform.position = this.followDeer.transform.position, this.followRig.isKinematic = !1, this._setStartRig(), gi.inst.start(), this.dragResolve && (Laya.timer.clear(this, this._onDrag), this.dragResolve(), this.pinPoint.pinned && this.SetPin(!1)), new Promise(s => {
  				var a = new Laya.HitResult,
  					n = new Laya.Vector3;
  				this.model.transform.position.cloneTo(n), n.y += 2, this.scene.physicsSimulation.rayCast(new Laya.Ray(n, new Laya.Vector3(0, -1, 0)), a, 10, ue.Ray, ue.Plane | ue.Build) && (li.groundY = a.point.y + .3), this.SetPin(!0), this.dragPoint.pinned = !0, this.dragPoint.pinPos = this.dragPoint.pinPos || new Laya.Vector3, this.dragPoint.currentPos.cloneTo(this.dragPoint.pinPos);
  				var o = new Laya.Vector3;
  				Laya.Vector3.subtract(t, this.dragPoint.pinPos, o), Laya.Vector3.normalize(o, o), Laya.timer.frameLoop(1, this, this._onDrag, [t, o, i * i, e]);
  			})
  		}
  		_onDrag(t, e, i, s) {
  			var a = s * Laya.timer.delta * .001;
  			(Laya.Vector3.scale(e, a, this._tmpDir), Laya.Vector3.add(this.dragPoint.pinPos, this._tmpDir, this.dragPoint.pinPos), Laya.Vector3.subtract(t, this.dragPoint.pinPos, this._tmpDir), this.pinPoint.pinned) && (Laya.Vector3.distanceSquared(t, this.dragPoint.pinPos) >= i && this.SetPin(!1));
  			Laya.Vector3.dot(this._tmpDir, e) <= 0 && (Laya.timer.clear(this, this._onDrag), t.cloneTo(this.dragPoint.pinPos), this.dragResolve && this.dragResolve(), this.pinPoint.pinned && this.SetPin(!1));
  		}
  		_LookAt() {
  			this.model.transform.position = this.followDeer.transform.position;
  		}
  		Release() {
  			this._setEndRig(), Laya.timer.clear(this, this._onDrag), this.dragResolve && (this.dragResolve(), this.dragResolve = null), this.dragPoint.pinned = !1, this.SetPin(!0), Laya.timer.clear(this, this._LookAt), this.rig.enabled = !0, this.rig.linearVelocity = this.followRig.linearVelocity.clone(), Laya.Vector3.normalize(this.rig.linearVelocity, this.rig.linearVelocity), Laya.Vector3.scale(this.rig.linearVelocity, 1, this.rig.linearVelocity), this.rig.linearVelocity = this.rig.linearVelocity;
  			this.rig.applyTorqueImpulse(new Laya.Vector3(10 * (.5 - Math.random()) * .5, 10 * (.5 - Math.random()), 10 * (.5 - Math.random()) * .5)), this.followRig.isKinematic = !0, this.followDeer.transform.position = this.model.transform.position, this.followDeer.transform.position.y += 1, this.followDeer.transform.position = this.followDeer.transform.position, this.updateCom.enabled = !1, Laya.timer.once(600, this, () => {
  				for (var t = 0; t < this.pointMasses.length; t++) {
  					var e = this.pointMasses[t],
  						i = (this.bones[e.name], li.pointMasses.indexOf(e));
  					i >= 0 && li.pointMasses.splice(i, 1);
  				}
  			});
  		}
  		SetPin(t = !0) {
  			this.pinPoint.pinned = t;
  		}
  		Disable() {
  			gi.inst.stop(), Laya.timer.clearAll(this), this.rig.enabled = !1, this.SetPin(!1), this.updateCom.enabled = !1;
  			for (var t = 0; t < this.pointMasses.length; t++) {
  				var e = this.pointMasses[t],
  					i = li.pointMasses.indexOf(e);
  				i >= 0 && li.pointMasses.splice(i, 1);
  			}
  			this.model.transform.localRotationEulerX = this.model.transform.localRotationEulerZ = 0, this.model.transform.localScale = new Laya.Vector3(1, 1, 1);
  		}
  		Enable() {
  			this.model.getComponent(Laya.Animator);
  			this.updateCom.enabled = !0;
  			for (var t = 0; t < this.nodes.length; t++) this.nodes[t].transform.position.cloneTo(this.pointMasses[t].currentPos), this.nodes[t].transform.position.cloneTo(this.pointMasses[t].lastPos);
  			for (t = 0; t < this.pointMasses.length; t++) {
  				var e = this.pointMasses[t];
  				li.pointMasses.indexOf(e) < 0 && li.pointMasses.push(e);
  			}
  		}
  	}
  	class xs extends Laya.Script3D {
  		onUpdate() {
  			this.onUpdateFunc && this.onUpdateFunc();
  		}
  		onPreRender() {
  			this.onPreRenderFunc && this.onPreRenderFunc();
  		}
  	}
  	class Bs {
  		static Angle2(t, e) {
  			var i = (t.x * e.x + t.y * e.y + t.z * e.z) / (Math.sqrt(t.x * t.x + t.y * t.y + t.z * t.z) * Math.sqrt(e.x * e.x + e.y * e.y + e.z * e.z));
  			return i < -1 && (i = -1), i > 1 && (i = 1), 180 * Math.acos(i) / Math.PI
  		}
  		static Rad2(t, e) {
  			var i = (t.x * e.x + t.y * e.y + t.z * e.z) / (Math.sqrt(t.x * t.x + t.y * t.y + t.z * t.z) * Math.sqrt(e.x * e.x + e.y * e.y + e.z * e.z));
  			return i < -1 && (i = -1), i > 1 && (i = 1), Math.acos(i)
  		}
  		static CheckVec3(t) {
  			Laya.MathUtils3D.isZero(t.x) && Laya.MathUtils3D.isZero(t.y) && Laya.MathUtils3D.isZero(t.z) && t.setValue(0, 1, 0);
  		}
  	}
  	class Ms {
  		constructor(t, e, i = 90, s) {
  			for (var a of (this.pos = [], this.tempV = new Laya.Vector3, this.tempV2 = new Laya.Vector3, this.EPS = Laya.MathUtils3D.zeroTolerance, this.q = new Laya.Quaternion, this.pos = t, this.lengths = e, this.rootPos = t[0].clone(), this.sqrMaxLength = 0, e)) this.sqrMaxLength += a;
  			console.log("max distance", this.sqrMaxLength), this.sqrMaxLength *= this.sqrMaxLength, this.angle = i, this.rootDir = s;
  		}
  		set Target(t) {
  			this.goalPos = t, this.Update();
  		}
  		get EndPos() {
  			return this.pos[this.pos.length - 1]
  		}
  		EndToRoot() {
  			for (var t = this.goalPos, e = this.tempV, i = this.tempV2, s = this.pos.length - 1; s >= 0; s--) {
  				var a = this.pos[s];
  				if (a.setValue(t.x, t.y, t.z), s > 0) {
  					let o = this.pos[s - 1];
  					if (s < this.pos.length - 1) {
  						var n = this.pos[s + 1];
  						Laya.Vector3.subtract(o, a, e), Bs.CheckVec3(e), Laya.Vector3.subtract(n, a, i), Bs.CheckVec3(i), Bs.Angle2(e, i) < this.angle ? (Laya.Vector3.cross(e, i, e), Laya.Vector3.normalize(e, e), Laya.Quaternion.createFromAxisAngle(e, -Laya.Utils.toRadian(this.angle), this.q), Laya.Vector3.transformQuat(i, this.q, e)) : Laya.Vector3.subtract(o, a, e);
  					} else Laya.Vector3.subtract(o, a, e), Bs.CheckVec3(e);
  					Laya.Vector3.normalize(e, e), Laya.Vector3.scale(e, this.lengths[s - 1], e), Laya.Vector3.add(a, e, e), t = e;
  				}
  			}
  		}
  		RootToEnd() {
  			for (var t = this.rootPos, e = this.tempV, i = this.tempV2, s = 0; s < this.pos.length; s++) {
  				var a = this.pos[s];
  				if (a.setValue(t.x, t.y, t.z), s < this.pos.length - 1) {
  					var n = this.pos[s + 1];
  					if (s > 0) {
  						var o = this.pos[s - 1];
  						Laya.Vector3.subtract(o, a, i), Bs.CheckVec3(i), Laya.Vector3.subtract(n, a, e), Bs.CheckVec3(e), Bs.Angle2(e, i) < this.angle ? (Laya.Vector3.cross(i, e, e), Laya.Vector3.normalize(e, e), Laya.Quaternion.createFromAxisAngle(e, Laya.Utils.toRadian(this.angle), this.q), Laya.Vector3.transformQuat(i, this.q, e)) : Laya.Vector3.subtract(n, a, e);
  					} else Laya.Vector3.subtract(n, a, e), Bs.CheckVec3(e);
  					Laya.Vector3.normalize(e, e), Laya.Vector3.scale(e, this.lengths[s], e), Laya.Vector3.add(a, e, e), t = e;
  				}
  			}
  		}
  		Update() {
  			this.EndToRoot(), this.RootToEnd();
  		}
  	}
  	class Ts extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.nodes = [], this.pos = [], this.bones = [], this._targetPos = new Laya.Vector3, this._targetPosSub = new Laya.Vector3;
  		}
  		onAwake() {
  			super.onAwake(), this.node = this.owner;
  			let t = this.node,
  				e = [],
  				i = [],
  				s = [],
  				a = this.GetChildNode(t, "Bip001 Head"),
  				n = this.GetChildNode(t, "headTarget");
  			this.headBone = new Us(t, a, n.transform.position), this.rootCenter = this.GetChildNode(t, "rootcenter");
  			let o = this.GetChildNode(t, "endBone");
  			for (var r = 1; r <= 6; r++) {
  				let e = this.GetChildNode(t, "Bip001 Neck" + (r > 0 ? r : ""));
  				i.push(e);
  			}
  			this.nodes.push(...i), i.push(o);
  			for (r = 0; r < i.length - 1; r++) {
  				var h = new Us(t, i[r], i[r + 1].transform.position);
  				if (this.bones.push(h), e.push(h.node.transform.position), r > 0) {
  					let t = e.length - 1,
  						i = Laya.Vector3.distance(e[t], e[t - 1]);
  					s.push(i);
  				}
  			}
  			this.ik = new Ms(e, s, 100, new Laya.Vector3(0, 0, -1));
  		}
  		onPreRender() {
  			if (null == this.targetPos && null == this.targetPosSub) return this.headBone.node.transform.position = this.headBone.target.transform.position, void this.headBone.CopyRot();
  			var t = this.targetPos || this.targetPosSub,
  				e = new Laya.Vector3;
  			Laya.Vector3.subtract(t, this.rootCenter.transform.position, e);
  			Laya.Vector3.normalize(e, e), Laya.Vector3.scale(e, .4, e), Laya.Vector3.add(this.rootCenter.transform.position, e, t), this.ik.Target = t, Laya.Vector3.scale(e, 10, e), Laya.Vector3.add(this.rootCenter.transform.position, e, e);
  			for (var i = 0; i < this.bones.length; i++) {
  				let t = this.bones[i];
  				this.bones[i].node;
  				i < this.bones.length - 1 ? t.LookAt(this.bones[i + 1].pos) : t.LookAtLerp(e, null != this.targetPos ? .7 : .1, Ks), t.Fresh();
  			}
  			for (i = this.bones.length - 1; i >= 1; i--) this.bones[i].Update();
  			this.headBone.node.transform.position = this.headBone.target.transform.position, this.headBone.LookAtLerp(e, null != this.targetPos ? .7 : .1);
  		}
  		turnNeckSub(t) {
  			null == t ? this.targetPosSub = null : (t.cloneTo(this._targetPosSub), this.targetPosSub = this._targetPosSub);
  		}
  		turnNeck(t) {
  			t.cloneTo(this._targetPos), this.targetPos = this._targetPos;
  		}
  		stopTurnNeck() {
  			this.targetPos = null;
  		}
  		destroy() {
  			super.destroy();
  		}
  		GetChildNode(t, e) {
  			if (t.name == e) return t;
  			if (!(t.numChildren > 0)) return null;
  			for (let s = 0; s < t.numChildren; s++) {
  				var i = this.GetChildNode(t.getChildAt(s), e);
  				if (null != i) return i
  			}
  		}
  	}
  	class Us {
  		constructor(t, e, i, s = !1, a = .05) {
  			this.name = e.name, this.target = e, this.node = new Laya.Sprite3D, t.addChild(this.node), this.node.transform.position = e.transform.position, i instanceof Laya.Quaternion ? this.node.transform.rotation = i : this.node.transform.lookAt(i, Ks);
  			let n = this.proxyNode = s ? new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(a, a, a)) : new Laya.Sprite3D;
  			this.node.addChild(n), n.transform.position = e.transform.position, n.transform.rotation = e.transform.rotation;
  		}
  		get pos() {
  			return this.node.transform.position
  		}
  		Fresh() {
  			this.node.transform.position = this.pos;
  		}
  		FreshRot() {
  			this.target.transform.rotation = this.proxyNode.transform.rotation;
  		}
  		Update(t = .2) {
  			Laya.Vector3.lerp(this.target.transform.position, this.proxyNode.transform.position, t, this.target.transform.position), this.target.transform.position = this.target.transform.position, Laya.Quaternion.lerp(this.target.transform.rotation, this.proxyNode.transform.rotation, t, this.target.transform.rotation), this.target.transform.rotation = this.target.transform.rotation;
  		}
  		LookAt(t, e = Us.UP) {
  			this.node.transform.lookAt(t, e), this.target.transform.rotation = this.proxyNode.transform.rotation;
  		}
  		LookAtLerp(t, e = .7, i = Us.UP) {
  			this.node.transform.lookAt(t, i), null == this.tempRot && (this.tempRot = this.target.transform.rotation.clone()), Laya.Quaternion.slerp(this.tempRot, this.proxyNode.transform.rotation, e, this.tempRot), this.target.transform.rotation = this.tempRot;
  		}
  		CopyRot() {
  			null == this.tempRot ? this.tempRot = this.target.transform.rotation.clone() : this.target.transform.rotation.cloneTo(this.tempRot);
  		}
  	}
  	Us.UP = new Laya.Vector3(0, 1, 0);
  	var Vs, Es, Gs, js, Ns, Fs, Hs, Ws, zs, Ys, qs, Ks = new Laya.Vector3(0, 1, 0);
  	class Qs extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.initScale = new Laya.Vector3, this.scale = new Laya.Vector3;
  		}
  		onAwake() {
  			this.trans = this.owner.transform, this.trans.localScale.cloneTo(this.initScale);
  		}
  		onUpdate() {
  			if (this.trans.position.x = this.deer.displayObject.transform.position.x, this.trans.position.z = this.deer.displayObject.transform.position.z, this.deer.lifeState != S.jump) this.trans.position.y = this.deer.displayObject.transform.position.y + .03, this.initScale.cloneTo(this.scale);
  			else {
  				let t = this.deer.displayObject.transform.position.y - this.trans.position.y;
  				if (t < 0) this.scale.setValue(0, 0, 0);
  				else {
  					let e = (5 - t) / 5;
  					e = Math.min(e, 1), e = Math.max(.3, e), Laya.Vector3.scale(this.initScale, e, this.scale);
  				}
  			}
  			if (this.deer instanceof Js) {
  				switch (this.deer.aniName) {
  					case Vs.Doll_1:
  					case Vs.Doll_2:
  					case Vs.riding:
  						this.scale.setValue(0, 0, 0);
  				}
  			}
  			0 == this.deer.displayObject.active && this.scale.setValue(0, 0, 0), this.trans.position = this.trans.position, this.trans.localRotationEulerY = this.deer.displayObject.transform.localRotationEulerY, this.trans.localScale = this.scale;
  		}
  	}
  	class Xs extends Laya.Script3D {
  			fight() {
  				this.deer.attStepOneAtt();
  			}
  		}! function(t) {
  			t.dance = "dance", t.run = "run", t.bsRun = "bsRun", t.att = "att", t.bsAtt1 = "bsAtt1", t.bsAtt2 = "bsAtt2", t.bsAttSward = "bsAttSward", t.idle = "idle", t.bsIdle = "bsIdle", t.bs = "bs", t.walk = "walk", t.jump = "jump", t.land = "land", t.bsJump = "bsJump", t.fly = "fly", t.bsFly = "bsFly", t.bsLand = "bsLand", t.walk_L = "walk_L", t.walk_R = "walk_R", t.beattacked = "beattacked", t.Doll_1 = "Doll_1", t.Doll_2 = "Doll_2", t.riding = "riding", t.upMount_L = "upMount_L", t.upMount_R = "upMount_R";
  		}(Vs || (Vs = {})),
  		function(t) {
  			t[t.None = 0] = "None", t[t.left = 1] = "left", t[t.right = 2] = "right", t[t.center = 3] = "center";
  		}(Es || (Es = {})),
  		function(t) {
  			t[t.Normal = 0] = "Normal", t[t.Crazy = 1] = "Crazy";
  		}(Gs || (Gs = {}));
  	class Js extends Le {
  		constructor() {
  			super(...arguments), this.weapons = {}, this.weaponArrs = [], this.onWater = !1, this.openBuwawa = !1, this.isHandGunUp = !1, this.isAKUp = !1, this.isMachineUp = !1, this.isRifleUp = !1, this.isSwordUp = !1, this.isCasesUp = !1, this.isDriving = !1, this.attTime = 0, this.attWarm = !1, this.atting = !1, this._neckToJump = !1, this._waitTimer = 0, this.isPlayBsRun = !1, this.canPlayBsStop = !1;
  		}
  		get NeckIK() {
  			return this._neckIK
  		}
  		initDisplay(t) {
  			const e = Object.create(null, {
  				initDisplay: {
  					get: () => super.initDisplay
  				},
  				initHp: {
  					get: () => super.initHp
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				this.parent = t, t = t.getChildAt(0), this.initScale = t.transform.localScale.clone(), this._collisionGroup = ue.Deer, this.faction = L.friendly, e.initDisplay.call(this, t), this._attScript = this.displayObject.addComponent(ai), this.jiao = this.displayObject.getChildByName(fe.deerJiao), this.hand = le.findChild(this.displayObject, fe.hand), this.attedPosSp = this.displayObject.getChildByName(fe.attedPos), this._bsRunEf = this.displayObject.getChildByName(fe.bsRunEf), this._bsRunEf.particleSystem.stop(), this.attEff = le.findChild(this.displayObject, fe.ptAttEf), this.attEff && (this.attEff.active = !1), this.bsAttEff = le.findChild(this.displayObject, fe.bsAttEf1), this.bsAttEff && (this.bsAttEff.active = !1), this.swardAttEff = le.findChild(this.displayObject, fe.swardAttEf), this.swardAttEff && (this.swardAttEff.active = !1), this.speedLineEff = le.findChild(this.displayObject, fe.speedLineEf), this.speedLineEff && (this.speedLineEff.active = !1), this.swardAttTrail = le.findChild(this.hand, fe.swardAttTrail), this.swardAttTrail && (this.swardAttTrail.active = !1), this.leftFfoot = le.findChild(this.displayObject, fe.leftFfoot), this.leftBfoot = le.findChild(this.displayObject, fe.leftBfoot), this.rightFfoot = le.findChild(this.displayObject, fe.rightFfoot), this.rightBfoot = le.findChild(this.displayObject, fe.rightBfoot), this.bsAttEf2 = le.findChild(this.displayObject, fe.bsAttEf2), this.deerVo = Je.instance.getDeerVoById(ot.instance.choseDeerId), null != Oe.instance.taskVo && 1 == Oe.instance.taskVo.taskConfig.rewardType ? (console.log("血量提升" + Oe.instance.taskVo.taskConfig.reward + ot.instance.skinHPBuff + "%"), e.initHp.call(this, this.deerVo.deerConfig.hp * (1 + (Oe.instance.taskVo.taskConfig.reward + ot.instance.skinHPBuff) / 100))) : e.initHp.call(this, this.deerVo.deerConfig.hp * (1 + ot.instance.skinHPBuff / 100)), this.attNum = this.deerVo.deerConfig.att, this._dff = this.deerVo.deerConfig.dff, this.deerConfig = P.data[ot.instance.choseDeerId], this.displayObject.transform.localRotationEulerY -= 90, this.ani = this.displayObject.getComponent(Laya.Animator), this.displayObject.addComponent(ps), this.displayObject.addComponent(Xs)
  					.deer = this, this.ani.getControllerLayer(0)
  					._states.forEach(t => {
  						t.addScript(Ps)
  							.deer = this;
  					}), this.moveScript = this.displayObject.addComponent(Fe), this._neckIK = this.displayObject.addComponent(Ts), this.moveScript.deer = this, this.moveScript.setMoveType(O.character), this._updateDeerSpeed(Da.deerMoveSpeed), this._openRocker(), this.setMotion(S.idle), this.crossUi = this.displayObject.addComponent(Is), this.crossUi.ui = hs.instance.crossUi(), this.deerForm = Gs.Normal, this.rig = this.displayObject.getComponent(Laya.Rigidbody3D), this.rig.collisionGroup = ue.Deer, this.rig.angularDamping = .4, this.rig.mass = 100, this.rig.rollingFriction = .6, this.rig.friction = .5, Da.useOimo && this._openRig(), this._onEvent(), this.attScriptInit(), this._normalTypeSet(), this._initBone(), this.crazyWeapon = yield this.getWeapon(v.data[this.deerConfig.crazyWeaponId]), this.crazyTwoWeapon = yield this.getWeapon(v.data[this.deerConfig.crazyTwoWeaponId]), yield this.setInitWeapon(v.data[this.deerConfig.weaponId]), this.shadow = le.findChild(this.displayObject, "shadow"), Pa.instance.scene.scene.addChild(this.shadow), this.shadow.addComponent(Qs)
  						.deer = this, o.instance.onUI(i.GuideStart, this, this._onGuideStart);
  			})
  		}
  		_onGuideStart() {
  			this.moveScript && this.moveScript.stopRocker();
  		}
  		_initBone() {
  			this.verletDeerBone = new Ds(this.displayObject, Oa.s3d, this.rig);
  		}
  		getModel() {
  			return this.displayObject
  		}
  		attScriptInit() {
  			this._attScript.setData(this.deerVo, this);
  		}
  		attedPos() {
  			return this.attedPosSp.transform.position
  		}
  		beforePos() {
  			return this._attScript.beforeTimePos
  		}
  		noDrive(t = !0) {
  			if (Da.useOimo && this._creatOimoRig(), le.SwitchParent(this.displayObject, this.parent), this.displayObject.transform.localScale = this.initScale, this.moveScript.openCharacter(!0), t) {
  				let t = new Laya.Vector3;
  				this.displayObject.transform.getUp(t), this.displayObject.transform.translate(t);
  			} else {
  				this.isDriving = !1;
  				let t = new Laya.Vector3;
  				this.displayObject.transform.getRight(t), Laya.Vector3.normalize(t, t), t.y += 2, this.displayObject.transform.translate(t);
  			}
  			null != this.crossUi && (this.crossUi.openCross = !0), this.displayObject.transform.rotationEuler = new Laya.Vector3(0, this.displayObject.transform.rotationEuler.y, 0), this.setMotion(S.idle, !0), this.isDriving = !1;
  		}
  		driveFlyCattile(t) {
  			t._moveScript && (t._moveScript.startMove = !0), Da.useOimo && (this.oimoRig.sleep(), this.oimoRig.dispose(), this.rig.enabled = !1), this.isDriving = !0, this.moveScript.openCharacter(!1), this._setDeerForm(Gs.Normal), this.crossUi.openCross = !1, this.playAni(Vs.Doll_1, .1, !0, 2);
  		}
  		drive(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (this.isDriving = !0, this.moveScript.openCharacter(!1), Da.useOimo && (this.oimoRig.sleep(), this.oimoRig.dispose(), this.rig.enabled = !1), t instanceof gs) {
  					let e = this.displayObject,
  						i = e.transform.position,
  						s = t.leftPedal.transform.position,
  						a = t.rightPedal.transform.position;
  					Laya.Vector3.distance(s, i) > Laya.Vector3.distance(a, i) ? (le.SwitchParent(e, t.leftPedal), this.playAni(Vs.upMount_L)) : (le.SwitchParent(e, t.rightPedal), this.playAni(Vs.upMount_R)), e.transform.localPosition = new Laya.Vector3, e.transform.localRotationEuler = new Laya.Vector3, this._bsRunEf && this._bsRunEf.particleSystem.stop(), yield et.Seconds(2);
  				}
  				le.SwitchParent(this.displayObject, t.driveSpr()), this.displayObject.transform.localRotationEuler = new Laya.Vector3, this.displayObject.transform.localPosition = new Laya.Vector3, this._setDeerForm(Gs.Normal), t instanceof gs || t instanceof Ss || (this.displayObject.transform.localScale = new Laya.Vector3(.01, .01, .01)), t instanceof Ss && (this.rig.enabled = !0), this.setMotion(S.riding), this.crossUi.openCross = !1;
  			})
  		}
  		_creatOimoRig() {
  			let t = new Laya.BoxColliderShape(1, 1.2, 1);
  			if (t.localOffset.y = .5, this.oimoRig = $e.instance.CreateBoxFromObj($e.instance.oimoWorld, this.displayObject.transform, t, !0, !1, !0), $e.instance.setCollideData(this.oimoRig, ue.Deer), Da.oimoView) {
  				let i = ei.CreateBox(new Laya.Vector3);
  				i.active = !1, this.displayObject.addChild(i);
  				let s = $e.instance.getColliderPos(t, this.displayObject.transform),
  					a = $e.instance.getBoxSize(t, this.displayObject.transform.scale);
  				i.transform.position = s, i.transform.scale = a;
  				var e = Oa.s3d.addChild(new Laya.PixelLineSprite3D(100));
  				ti.linearModel(i, e, Laya.Color.GREEN);
  			}
  		}
  		_onEvent() {
  			o.instance.onUI(i.DeerLongNeck, this, this._longNeck), o.instance.onUI(i.StopLongNeck, this, this._stopLongNeck), o.instance.onUI(i.DeerAtt, this, this.openAtt), o.instance.onUI(i.DeerDisAtt, this, this.stopAtt), o.instance.onUI(i.SwitchNeckForm, this, this._switchDeerForm), o.instance.onUI(i.DeerJump, this, this._onNeckJump), o.instance.onUI(i.RockerInit, this, this._openRocker);
  		}
  		_removeEvent() {
  			o.instance.offUI(i.DeerLongNeck, this, this._longNeck), o.instance.offUI(i.StopLongNeck, this, this._stopLongNeck), o.instance.offUI(i.DeerAtt, this, this.openAtt), o.instance.offUI(i.DeerDisAtt, this, this.stopAtt), o.instance.offUI(i.SwitchNeckForm, this, this._switchDeerForm), o.instance.offUI(i.DeerJump, this, this._onNeckJump), o.instance.offUI(i.RockerInit, this, this._openRocker), o.instance.offUI(i.GuideStart, this, this._onGuideStart);
  		}
  		_normalTypeSet() {
  			null != Oe.instance.taskVo && 5 == Oe.instance.taskVo.taskConfig.rewardType ? (console.log("速度提升" + (Oe.instance.taskVo.taskConfig.reward + ot.instance.skinSpeedBuff) + "%"), this._updateDeerSpeed(Da.deerMoveSpeed * (1 + (Oe.instance.taskVo.taskConfig.reward + ot.instance.skinSpeedBuff) / 100))) : this._updateDeerSpeed(Da.deerMoveSpeed * (1 + ot.instance.skinSpeedBuff / 100)), this.moveScript.setDownSpeed(Da.deerDownSpeed);
  		}
  		_crazyTypeSet() {
  			null != Oe.instance.taskVo && 5 == Oe.instance.taskVo.taskConfig.rewardType ? this._updateDeerSpeed(Da.deerCrazyDownSpeed * (1 + (Oe.instance.taskVo.taskConfig.reward + ot.instance.skinSpeedBuff) / 100)) : this._updateDeerSpeed(Da.deerCrazyMoveSpeed * (1 + ot.instance.skinSpeedBuff / 100)), this.moveScript.setDownSpeed(Da.deerCrazyDownSpeed);
  		}
  		_updateDeerSpeed(t) {
  			this.moveScript.characterSpeed = t;
  		}
  		_setDeerForm(t) {
  			if (this.deerForm != t)
  				if (this.deerForm = this.deerForm == Gs.Normal ? Gs.Crazy : Gs.Normal, this.deerForm == Gs.Crazy) {
  					if (console.log("疯狂模式"), this.crossUi.setDeerState(1), this._crazyTypeSet(), this.lifeState == S.jump) this.setMotion(S.jump, !0);
  					else {
  						this.setMotion(S.bs, !0), this._moveFoward();
  						Pa.instance.canHandLife;
  					}
  					Pa.instance.cameraScript.creazyDeerView();
  				} else this.crossUi.setDeerState(0), console.log("正常模式"), this.putDownLifeOrSward(), this._normalTypeSet(), this.lifeState == S.idle ? this.setMotion(S.idle, !0) : this.lifeState == S.jump ? this.setMotion(S.jump, !0) : this.setMotion(S.idle), Pa.instance.cameraScript.deerView();
  		}
  		_switchDeerForm() {
  			if (this.lifeState == S.bs) return;
  			if (this.deerForm == Gs.Crazy && this.lifeState == S.att) return;
  			let t = this.deerForm == Gs.Normal ? Gs.Crazy : Gs.Normal;
  			t == Gs.Normal ? o.instance.event3d(f.attackStateChange, !1) : o.instance.event3d(f.attackStateChange, !0), this._setDeerForm(t);
  		}
  		onTriggerEnter(t, e) {
  			this._collisionEnter(t, e), null != Oe.instance.taskVo && 7 == Oe.instance.taskVo.taskConfig.taskType && "task" == e.owner.name && o.instance.event3d(f.TaskChange, Be.gotoKoalaBuild);
  		}
  		onCollisionEnter(t, e) {
  			this._collisionEnter(t, e.other);
  		}
  		onCollisionStay(t, e) {
  			e.other.collisionGroup == ue.Plane && (e.other.owner.name.indexOf(fe.swim) >= 0 ? this.onWater = !0 : this.onWater = !1);
  		}
  		_collisionEnter(t, e) {
  			let i = e[fe.collsionSelf];
  			if (this.deerForm == Gs.Crazy && this.aniName != Vs.bsIdle && this.aniName != Vs.dance && i && i instanceof Le && this.lifeState != S.bs) {
  				if (i.faction == this.faction || i instanceof si) return;
  				var s = i.displayObject.transform.position.clone();
  				s.y = this.displayObject.transform.position.y + 1, i.atted(this.attNum, s);
  			}
  		}
  		dance() {
  			this.playAni(Vs.dance, .1);
  		}
  		catchLifeOrSward(t) {
  			!this.catchLifeSp && t && (t instanceof Le && !t.canCatched() || (this.catchLifeSp = t, t instanceof As && this.wearWeapon(t, this.hand), t.catch(this.hand)));
  		}
  		putDownLifeOrSward() {
  			this.catchLifeSp && (this.catchLifeSp.putDowned(), this.catchLifeSp instanceof As && -1 != this.weaponArrs.indexOf(this.catchLifeSp) && this.disWeapon(this.catchLifeSp), this.catchLifeSp instanceof Gi && (this.catchLifeSp.displayObject.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)), this.catchLifeSp = null);
  		}
  		wearWeapon(t, e = null) {
  			let i = this.weapons[t.weaponType];
  			if (i) {
  				let t = this.weaponArrs.indexOf(i);
  				switch (this.weaponArrs.splice(t, 1), console.log(i.weaponType + "伤害提升"), i.weaponConfig.weaponPrefabName) {
  					case "handGun":
  						this.isHandGunUp = !0;
  						break;
  					case "cases":
  						this.isCasesUp = !0;
  						break;
  					case "AK":
  						this.isAKUp = !0;
  						break;
  					case "machine":
  						this.isMachineUp = !0;
  						break;
  					case "sword":
  						this.isSwordUp = !0;
  						break;
  					case "rifle":
  						this.isRifleUp = !0;
  				}
  				i.dispose();
  			}
  			this.weapons[t.weaponType] = t, this.weaponArrs.push(t), e = e || this._weaponSpriteByType(t.weaponConfig.weaponPrefabName), t.wear(this, e), o.instance.event3d(f.disWeapon);
  		}
  		disNewWeapon() {
  			let t = this.weaponArrs[this.weaponArrs.length - 1];
  			return this.disWeapon(t)
  		}
  		disWeapon(t) {
  			if (!t) return;
  			delete this.weapons[t.weaponType];
  			let e = this.weaponArrs.indexOf(t);
  			switch (this.weaponArrs.splice(e, 1), t.takeOff(), t.weaponConfig.weaponPrefabName) {
  				case "handGun":
  					this.isHandGunUp = !1;
  					break;
  				case "cases":
  					this.isCasesUp = !1;
  					break;
  				case "AK":
  					this.isAKUp = !1;
  					break;
  				case "machine":
  					this.isMachineUp = !1;
  					break;
  				case "sword":
  					this.isSwordUp = !1;
  					break;
  				case "rifle":
  					this.isRifleUp = !1;
  			}
  			return o.instance.event3d(f.disWeapon), t
  		}
  		getWeaponByType(t) {
  			return this.weapons[t]
  		}
  		deerHornPos() {
  			if (this.jiao) return this.jiao.transform.position
  		}
  		openAtt() {
  			this.lifeState == S.none && this.weapons[ki.sword] || (this._attScript.startAtt(), this.attTime = c.CurrentTime);
  		}
  		stopAtt() {
  			return __awaiter(this, void 0, void 0, function*() {
  				var t = 500 - (c.CurrentTime - this.attTime);
  				t > 0 ? Laya.timer.once(t, this, this._stopAtt) : this._stopAtt();
  			})
  		}
  		_stopAtt() {
  			this.attWarm = !1, this.atting = !1, Laya.timer.clear(this, this._startHandAtt), this._attScript.stopAtt(), this.lifeState == S.att && (this.lifeState = S.none), this.moveScript.alwayFowardSpeed = 0, this.attEff && (this.attEff.active = !1), this.bsAttEff && (this.bsAttEff.active = !1), this.weaponArrs && this.weaponArrs.forEach(t => {
  				t.stopAtt();
  			}), this._neckIK.stopTurnNeck();
  		}
  		startAtt() {
  			if (this.lifeState != S.dying && this.lifeState != S.die && this.lifeState != S.bs && this.lifeState != S.atted && this.lifeState != S.neck) switch (this.deerForm) {
  				case Gs.Normal:
  					if (this._getWeaponNum() <= 0) {
  						if (this.lifeState == S.jump) return;
  						0 == this.attWarm ? (this.attWarm = !0, Laya.timer.once(100, this, this._startHandAtt)) : this.atting && this._startHandAtt();
  					} else {
  						this._neckIK.turnNeck(this.crossUi.point3d);
  						for (let t in this.weapons) this.weapons[t].att(this.crossUi.point3d);
  						Pa.instance.cameraScript.Shake();
  					}
  					this._getWeaponNum() > 0 ? (this.lifeState == S.run ? this.setMotion(S.walkAtt) : this.lifeState == S.walk && this.setMotion(S.runAtt), this.lifeState == S.idle && this.setMotion(S.idleAtt)) : this.setMotion(S.att);
  					break;
  				case Gs.Crazy:
  					if (this.lifeState == S.jump) return;
  					this.weapons[ki.sword] ? (this.weapons[ki.sword].att(), this.swardAtt(!0)) : this.bsAttEff && (this.bsAttEff.active = !0), this.setMotion(S.att);
  			}
  		}
  		_startHandAtt() {
  			this.attWarm = !1, this.atting = !0, this.attEff && (this.attEff.active = !0), this.initWeapon.att();
  		}
  		attStepOneAtt() {
  			this.crazyWeapon.att();
  		}
  		attSpecialAtt() {
  			this.crazyTwoWeapon.att(), Ce.instance.PlayEffectById(je.bsAtt2, 2, this.bsAttEf2.transform.position, this.bsAttEf2.transform.rotation);
  		}
  		swardAtt(t) {
  			this.swardAttTrail && (this.swardAttTrail.active = t), this.swardAttEff && (this.swardAttEff.active = t);
  		}
  		_moveFoward() {
  			let t = new Laya.Vector3;
  			this.moveScript.openMove = !1, this.displayObject.transform.getForward(t), Laya.Vector3.scale(t, -Da.switchCrazyDeerDis, t), this.moveScript.characterMove(t, Da.deerCrazyMoveSpeed);
  		}
  		_getWeaponNum() {
  			return null == this.weaponArrs ? 0 : this.weaponArrs.length
  		}
  		_weaponSpriteByType(t) {
  			return le.findChild(this.displayObject, t)
  		}
  		_onNeckJump() {
  			this.setMotion(S.jump);
  		}
  		_openRocker() {
  			this.moveScript.openRocker();
  		}
  		atted(t, e, i) {
  			return o.instance.event3d(f.DeerAttacked), null == e && ((e = this.displayObject.transform.position.clone())
  				.y += .5), super.atted(t, e)
  		}
  		mountAtted(t, e) {
  			if (o.instance.event3d(f.DeerAttacked), null == e && ((e = this.displayObject.transform.position.clone())
  				.y += .5), t <= this._dff || this.isDie()) return;
  			this._atterPos = e;
  			let i = t - this._dff;
  			return this.addHp(-i, e, t), Ce.instance.PlayEffectById(this.getAttackedEffID(), .5, null == e ? this.displayObject.transform.position : e), this._hp
  		}
  		flyed(t) {
  			if (this.lifeState == S.riding) return;
  			this.openBuwawa = !0, o.instance.eventUI(i.HideCrazy), this.moveScript.openMove = !1;
  			let e = direOneDisV3(this.attedPos(), t);
  			e.y += 1, Laya.Vector3.normalize(e, e), Laya.Vector3.scale(e, 400, e), this._closeRig(), this.rig.enabled = !0, this.rig.applyImpulse(e, new Laya.Vector3(.2 * (.5 - Math.random()), 0, .2 * (.5 - Math.random()))), this.rig.linearDamping = .4, this.playAni(Vs.Doll_1, .1, !0, 2), this.startGroundCheck();
  		}
  		startGroundCheck() {
  			Laya.timer.frameLoop(3, this, this.groudCheck);
  		}
  		groudCheck() {
  			this.rig.enabled && Laya.Vector3.scalarLengthSquared(this.rig.linearVelocity) < 1 && (Laya.timer.clear(this, this.groudCheck), this.playAni(Vs.Doll_1, .1, !0, .2));
  		}
  		checkCanLongNeck() {
  			return !(!this.crossUi.point3d || !this.crossUi.crossHair || this.deerForm != Gs.Normal) || (this.deerForm == Gs.Crazy && (new Wi)
  				.showToast("暴走模式下不支持此操作"), !1)
  		}
  		_longNeck() {
  			if (this.checkCanLongNeck()) {
  				this.lifeState = S.neck, this.playAni(Vs.Doll_1, .3, !1, 3), this.openBuwawa = !0, o.instance.eventUI(i.HideCrazy), this.moveScript.openMove = !1, this._closeRig();
  				let t = this.crossUi.point3d.clone(),
  					e = Laya.Vector3.distance(t, this.displayObject.transform.position);
  				this.verletDeerBone.Enable(), this.verletDeerBone.Drag(t, 50, e), o.instance.eventUI(i.HideCrazy), o.instance.event3d(f.longNeck);
  			}
  		}
  		_stopLongNeck() {
  			this.openBuwawa && (this.verletDeerBone.Release(), this.rig.linearDamping = 0, this.playAni(Vs.Doll_1, .1, !0, 1), this.startGroundCheck()), qe.instance.finishGuide(Re.longNeck), this._neckToJump || qe.instance.nowGuideId != Re.neckToJump || (this._neckToJump = !0, o.instance.eventUI(i.ShowCrazy), Laya.timer.once(1500, this, () => {
  				hs.instance.isShow && qe.instance.triggerGuide(Re.neckToJump, hs.instance.ui.m_jump);
  			}));
  		}
  		resetCheck(t) {
  			this._waitTimer += Laya.timer.delta, this._waitTimer > 800 && (this._waitTimer > 2e3 || Math.abs(t - this.displayObject.transform.position.y) < .5) && (Laya.timer.clear(this, this.resetCheck), this.verletDeerBone.Disable(), this.startAni(), this._openRig(), this._waitTimer = 0, Laya.timer.once(500, this, () => {
  				Pa.instance.cameraScript.cAnchorFollow(Oa.cameraControl, this.displayObject, hs.instance.ui.m_touchView, Da.cameraControlToDeerOffset);
  			}));
  		}
  		_stopRagDoll() {
  			this.verletDeerBone.Disable(), this.startAni(), this._openRig(), this.openBuwawa = !1, this.moveScript.openMove = !0, o.instance.eventUI(i.ShowCrazy);
  		}
  		_closeRig() {
  			Da.useOimo ? this.oimoRig && ($e.instance.RemoveRig(this.oimoRig), this.oimoRig = null) : this.rig && (this.rig.enabled = !1), this.moveScript.openCharacter(!1);
  		}
  		_openRig() {
  			Da.useOimo ? this.oimoRig || this._creatOimoRig() : this.rig && (this.rig.enabled = !0), this.moveScript.openCharacter(!0);
  		}
  		pauseAni() {
  			this.ani.speed = 0;
  		}
  		setAniSpeed(t) {
  			this.ani.speed = t;
  		}
  		startAni() {
  			this.ani.speed = 1;
  		}
  		setMotion(t, e = !1) {
  			if (this.openBuwawa) {
  				if (t != S.jump) return;
  				this._stopRagDoll();
  			}
  			t != S.idle && t != S.walk && t != S.run || this.lifeState != S.att && this.lifeState != S.walkAtt && this.lifeState != S.runAtt || this._getWeaponNum() > 0 && (t = Math.abs(this.moveScript.deerMoveSpeed) >= .07 ? S.runAtt : Math.abs(this.moveScript.deerMoveSpeed) >= .04 ? S.walkAtt : S.idleAtt), t == S.run && Pa.instance.cameraScript.RunShake();
  			let i = super.setMotion(t, e);
  			return this.lifeState == S.idle && (this.moveScript && (this.moveScript.openMove = !0), this.swardAtt(!1)), i
  		}
  		stateChange() {
  			let t = this.lifeState,
  				e = .03;
  			if (this.moveScript.onlyRotate = !1, this._bsRunEf && this._bsRunEf.particleSystem.stop(), this.deerForm == Gs.Crazy) this.lifeState == S.att ? (this.moveScript.openMove = !1, this.moveScript.onlyRotate = this.canRotate(), this.moveScript.characterStop(), t = Vs.bsAtt1, this.weapons[ki.sword] && (t = Vs.bsAttSward)) : this.lifeState == S.run || this.lifeState == S.walk ? (this._bsRunEf && this._bsRunEf.particleSystem.play(), this._crazyTypeSet(), t = Vs.bsRun) : this.lifeState == S.idle ? t = Vs.bsIdle : this.lifeState == S.jump && (this.moveScript.openMove = !0, this.swardAtt(!1), this._updateDeerSpeed(Da.deerCrazyJumpMoveSpeed), this.moveScript.setJumpSpeed(Da.deerCrazyH), t = Vs.bsJump);
  			else {
  				let i = this._getWeaponNum() <= 0;
  				this.lifeState != S.att && this.lifeState != S.walkAtt && this.lifeState != S.runAtt || i && (this.lastLifeState == S.idle && (e = .045), this.moveScript.alwayFowardSpeed = Da.alwayFowardSpeed), i && this.lifeState == S.idle && (this.lastLifeState != S.none && this.lastLifeState != S.att || (e = .4)), i || this.lifeState != S.idle && this.lifeState != S.idleAtt ? i || this.lifeState != S.walk && this.lifeState != S.walkAtt ? i || this.lifeState != S.run && this.lifeState != S.runAtt ? this.lifeState == S.jump && this.moveScript.setJumpSpeed(Da.deerNormalH) : t = Vs.run : t = Vs.walk : t = Vs.idle, this.lastLifeState != S.walk && this.lastLifeState != S.walkAtt || this.lifeState != S.run && this.lifeState != S.runAtt || (e = .2);
  			}
  			this.lifeState == S.jump && this.moveScript.characterJump(), this.lifeState == S.atted && (t = this.deerForm == Gs.Normal ? Vs.beattacked : Vs.bsIdle, this.moveScript.characterStop(), this.moveScript.openMove = !1, Laya.timer.once(Da.attedTime, this, () => {
  				this.isDie() || (this.setMotion(S.idle, !0), this.moveScript && (this.moveScript.openMove = !0));
  			})), this.speedLineEff && (this.speedLineEff.active = t == Vs.bsRun), t == Vs.bsRun || t == Vs.bs ? this.PlayBsRun() : this.StopBsRun(), this.playAni(t, e);
  		}
  		PlayBsRun() {
  			0 == this.isPlayBsRun && (this.canPlayBsStop = !0, this.isPlayBsRun = !0, oi.instance.playSound(Ne.bsRun, 0));
  		}
  		StopBsRun() {
  			this.isPlayBsRun && (oi.instance.stopSound(Ne.bsRun), this.isPlayBsRun = !1), this.canPlayBsStop && (this.canPlayBsStop = !1);
  		}
  		playAni(t, e = .1, i = !1, s = 1) {
  			this.openBuwawa && !i || this.aniName == t && t != Vs.bsAtt1 || (this.aniName == Vs.dance && o.instance.event3d(f.DeerStopDance), this.aniName = t, this.ani.crossFade(t, e, 0, 0), this.ani.speed = s);
  		}
  		canRotate() {
  			let t = this.ani.getControllerLayer(0)
  				.getCurrentPlayState()
  				.animatorState.name;
  			return this.lifeState != S.bs && this.lifeState != S.die && this.lifeState != S.dying && t != Vs.bsAtt2 && t != Vs.bsAtt1
  		}
  		canMove() {
  			return !(this.lifeState == S.att && this.deerForm == Gs.Crazy)
  		}
  		hitAni() {}
  		clear() {
  			this._removeEvent(), this.moveScript && this.moveScript.destroy(), this.crossUi && this.crossUi.destroy(), this.crossUi = null, this._attScript && this._attScript.destroy();
  		}
  		dispose(t = !0) {
  			this.clear(), this.verletDeerBone.Destory(), this.verletDeerBone = null, super.dispose(t);
  		}
  		die() {
  			this.lifeState == S.riding && o.instance.eventUI(i.OffDrive), this.clear(), super.die(), this.lifeState = S.die, oi.instance.stopSound(Ne.bossBGM), Oa.carEularY = null, o.instance.event3d(f.GameFail);
  			let t = Ne.deerDie + h.RandomInt(1, 8);
  			oi.instance.playSound(t);
  		}
  		FindChild(t, e) {
  			let i = e.getChildByName(t);
  			if (i) return i;
  			if (e.numChildren > 0) {
  				for (let s = 0; s < e.numChildren; s++) {
  					let a = e.getChildAt(s);
  					if (i = this.FindChild(t, a)) break
  				}
  				return i
  			}
  			return null
  		}
  	}! function(t) {
  		t.config = class {}, t.path = "res/config/CarConfig.json";
  	}(js || (js = {}));
  	class Zs extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this._hasCanDropWeapon = !1, this._posItems = new z, this._posItemCopys = new z;
  		}
  		onAwake() {
  			super.onAwake();
  		}
  		onUpdate() {
  			super.onUpdate(), Oa.gameOverOrPause || Pa.instance.deer && (this.updateAllBendTrans(), $e.instance.oimoWorld.timeStep = le.deltaTime / 1e3, $e.instance.oimoWorld.step(), $e.instance.updateAllTrans(), $e.instance.updateAllTransReverse(), Pa.instance.deer.isDriving || (this.hasCanDropWeapon(), this.hanCanHandWeapon()), this.updateCameraRender());
  		}
  		updateCameraRender() {
  			let t = Me.dataList,
  				e = Pa.instance.deer.displayObject.transform.position;
  			t.forEach(t => {
  					if (-1 == t.viewDis) return;
  					let i = Pa.instance.scene.prefabs[t.prefabName];
  					i && i.forEach(i => {
  						if (!i.destroyed) {
  							let s = Laya.Vector3.distance(i.transform.position, e);
  							i.layer = s > t.viewDis ? 1 : 0;
  						}
  					});
  				}), js.dataList.forEach(t => {
  					let i = Pa.instance.scene.prefabs[t.carPrefabName];
  					i && i.forEach(i => {
  						if (!i.destroyed) {
  							let s = Laya.Vector3.distance(i.transform.position, e);
  							i.layer = s > t.viewDis ? 1 : 0;
  						}
  					});
  				}), Pa.instance.polices.concat(Pa.instance.peoples)
  				.concat(Pa.instance.cattles)
  				.forEach(t => {
  					let i = t.displayObject;
  					if (!i.destroyed) {
  						let t = Laya.Vector3.distance(i.transform.position, e);
  						i.layer = t > Da.monsterCanViewDis ? 1 : 0;
  					}
  				});
  		}
  		hanCanHandWeapon() {
  			let t = Pa.instance.canHandLifes,
  				e = Da.canHandLife,
  				i = Pa.instance.deer.displayObject.transform.position;
  			for (let s = 0; s < t.length; s++) {
  				let a = t[s];
  				if (!(a instanceof Gi && a.isDeer) && (a && a.displayObject)) {
  					if (Laya.Vector3.distance(a.displayObject.transform.position, i) <= e) return void(Pa.instance.canHandLife || (Pa.instance.canHandLife = a, o.instance.event3d(f.CanHandLife)))
  				}
  			}
  			Pa.instance.canHandLife && (Pa.instance.canHandLife = null, o.instance.event3d(f.NoHandLife));
  		}
  		hasCanDropWeapon() {
  			let t = this.getCanDropWeapon();
  			if (t && !this._hasCanDropWeapon) {
  				if (this._hasCanDropWeapon = !0, o.instance.event3d(f.CanDropWeapon, t), Pa.instance.isNewEnter && null != Oe.instance.taskVo && 4 == Oe.instance.taskVo.taskConfig.rewardType) {
  					console.log("初始状态装备武器");
  					for (let t = 0; t < Oe.instance.taskVo.taskConfig.reward; t++) Laya.timer.once(200, this, () => {
  						o.instance.eventUI(i.PickUpWeapon);
  					});
  					Pa.instance.isNewEnter = !1;
  				}
  			} else !t && this._hasCanDropWeapon && (this._hasCanDropWeapon = !1, o.instance.event3d(f.NoDropWeapon));
  		}
  		getCanDropWeapon() {
  			let t = Pa.instance.weapons,
  				e = Da.canPickUpWeapon,
  				i = Pa.instance.deer.displayObject.transform.position;
  			for (let s = 0; s < t.length; s++) {
  				let a = t[s];
  				if (a && a.displayObject && a.weaponConfig.putInHead) {
  					if (Laya.Vector3.distance(a.displayObject.transform.position, i) <= e) return a
  				}
  			}
  		}
  		bendPos(t, e) {
  			this._posItems.set(t.id, t), this._posItemCopys.set(t.id, e);
  		}
  		removeBend(t) {
  			t && (this._posItems.remove(t.id), this._posItemCopys.remove(t.id));
  		}
  		updateAllBendTrans() {
  			this._posItems.keys()
  				.forEach(t => {
  					this.UpdateTrans(this._posItems.get(t), this._posItemCopys.get(t));
  				});
  		}
  		UpdateTrans(t, e) {
  			t && e && (t.transform.rotationEuler.cloneTo(e.transform.rotationEuler), e.transform.rotationEuler = e.transform.rotationEuler, t.transform.position.cloneTo(e.transform.position), e.transform.position = e.transform.position, t.transform.scale.cloneTo(e.transform.scale), e.transform.scale = e.transform.scale);
  		}
  	}! function(t) {
  		t[t.Normal = 0] = "Normal", t[t.Car = 1] = "Car", t[t.Crazy = 2] = "Crazy", t[t.Ride = 3] = "Ride", t[t.Mecha = 4] = "Mecha";
  	}(Ns || (Ns = {}));
  	class $s extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.viewType = Ns.Normal, this.deerViewPose = new Laya.Vector3, this.shakeOffset = new Laya.Vector3, this.shakeTarget = new Laya.Vector3(.05, .01, .05), this.shakeTarget2 = new Laya.Vector3(-.04, -.01, -.02), this.shakeZero = new Laya.Vector3, this.cameraTween = !1, this.hit = new Laya.HitResult, this.dir = new Laya.Vector3, this.lastCameraPos = new Laya.Vector3, this.checkTmp = new Laya.Vector3, this.castShape = new Laya.BoxColliderShape(1, .4, 1), this.curTouchId = 0, this._dire = new Laya.Vector3, this.originPoint = new Laya.Point, this._speed = Da.cameraControlSpeed, this._tempV3 = new Laya.Vector3(0, -60), this._currentVelocity = new Laya.Vector3;
  		}
  		cAnchorFollow(t, e, i, s) {
  			this._cAnchor = t, this._posOffSet = s, this._followSprite = e, this._updateCAnchor(), this._touchView = i, this._touchView.on(Laya.Event.MOUSE_DOWN, this, this._onMouseDown), this._touchView.on(Laya.Event.MOUSE_UP, this, this._onMouseUp), this._touchView.on(Laya.Event.MOUSE_OUT, this, this._onMouseUp);
  		}
  		Shake() {
  			Laya.MathUtils3D.isZero(this.shakeOffset.x) && Laya.MathUtils3D.isZero(this.shakeOffset.y) && Laya.MathUtils3D.isZero(this.shakeOffset.z) && (this.shakeTarget.setValue(.05, .01, .05), this.shakeTarget2.setValue(-.04, -.01, -.02), this.deerViewPose.setValue(-.35, .5, -2), Laya.Tween.clearAll(this.shakeOffset), Laya.Tween.to(this.shakeOffset, this.shakeTarget, 30, Laya.Ease.bounceIn), Laya.Tween.to(this.shakeOffset, this.shakeTarget2, 30, Laya.Ease.bounceIn, null, 80), Laya.Tween.to(this.shakeOffset, this.shakeZero, 100, Laya.Ease.bounceOut, Laya.Handler.create(this.shakeOffset, this.shakeOffset.setValue, [0, 0, 0]), 100));
  		}
  		RunShake() {
  			Laya.MathUtils3D.isZero(this.shakeOffset.x) && Laya.MathUtils3D.isZero(this.shakeOffset.y) && Laya.MathUtils3D.isZero(this.shakeOffset.z) && (this.shakeTarget.setValue(0, .1, 0), this.shakeTarget2.setValue(0, .1, 0), this.deerViewPose.setValue(-.35, .5, -2), Laya.Tween.clearAll(this.shakeOffset), Laya.Tween.to(this.shakeOffset, this.shakeTarget, 100, Laya.Ease.linearInOut), Laya.Tween.to(this.shakeOffset, this.shakeTarget2, 100, Laya.Ease.linearInOut, null, 100), Laya.Tween.to(this.shakeOffset, this.shakeZero, 100, Laya.Ease.linearInOut, Laya.Handler.create(this.shakeOffset, this.shakeOffset.setValue, [0, 0, 0]), 300));
  		}
  		carView() {
  			this.viewType = Ns.Car;
  			var t = this.getViewScale();
  			let e = Oa.camera;
  			Oa.camera.fieldOfView = 50, Laya.Tween.clearAll(e.transform), this.cameraTween = !0, Laya.Tween.to(e.transform, {
  				localPositionX: -.35 * t,
  				localPositionZ: -5 * t,
  				localPositionY: 3 * t
  			}, 500, null, Laya.Handler.create(this, () => {
  				console.log("car view ", t, Laya.Vector3.scalarLength(e.transform.localPosition)), this.cameraTween = !1;
  			}));
  		}
  		deerView() {
  			this.viewType = Ns.Normal;
  			let t = Oa.camera;
  			var e = this.getViewScale();
  			Oa.camera.fieldOfView = 50, Laya.Tween.clearAll(t.transform), this.cameraTween = !0, Laya.Tween.to(t.transform, {
  				localPositionX: -.35 * e,
  				localPositionZ: -2 * e,
  				localPositionY: .5 * e
  			}, 500, null, Laya.Handler.create(this, () => {
  				console.log("deer view ", e, Laya.Vector3.scalarLength(t.transform.localPosition)), this.cameraTween = !1;
  			}));
  		}
  		creazyDeerView() {
  			this.viewType = Ns.Crazy;
  			let t = Oa.camera;
  			Oa.camera.fieldOfView = 50, Laya.Tween.clearAll(t.transform);
  			var e = this.getViewScale();
  			this.cameraTween = !0, Laya.Tween.to(t.transform, {
  				localPositionX: -.35 * e,
  				localPositionZ: -3.2 * e,
  				localPositionY: 1.7 * e
  			}, 500, null, Laya.Handler.create(this, () => {
  				console.log("crazy view ", e, Laya.Vector3.scalarLength(t.transform.localPosition)), this.cameraTween = !1;
  			}));
  		}
  		horseView() {
  			this.viewType = Ns.Ride;
  			let t = Oa.camera;
  			Oa.camera.fieldOfView = 50;
  			var e = this.getViewScale();
  			Laya.Tween.clearAll(t.transform), this.cameraTween = !0, Laya.Tween.to(t.transform, {
  				localPositionX: -.35 * e,
  				localPositionZ: -4 * e,
  				localPositionY: 1.7 * e
  			}, 500, null, Laya.Handler.create(this, () => {
  				console.log("ride view ", e, Laya.Vector3.scalarLength(t.transform.localPosition)), this.cameraTween = !1;
  			}));
  		}
  		mechaView() {
  			this.viewType = Ns.Mecha;
  			let t = Oa.camera;
  			Oa.camera.fieldOfView = 50;
  			var e = this.getViewScale();
  			Laya.Tween.clearAll(t.transform), this.cameraTween = !0, Laya.Tween.to(t.transform, {
  				localPositionX: -.35 * e,
  				localPositionZ: -10 * e,
  				localPositionY: 5 * e
  			}, 1e3, null, Laya.Handler.create(this, () => {
  				console.log("Mecha view ", e, Laya.Vector3.scalarLength(t.transform.localPosition)), this.cameraTween = !1;
  			}));
  		}
  		changeView() {
  			switch (this.viewType) {
  				case Ns.Normal:
  					this.deerView();
  					break;
  				case Ns.Car:
  					this.carView();
  					break;
  				case Ns.Crazy:
  					this.creazyDeerView();
  					break;
  				case Ns.Ride:
  					this.horseView();
  					break;
  				case Ns.Mecha:
  					this.mechaView();
  			}
  		}
  		getViewMaxDis() {
  			var t = this.getViewScale();
  			switch (this.viewType) {
  				case Ns.Normal:
  					return 2.091052366632648 * t;
  				case Ns.Car:
  					return 5.841446738608511 * t;
  				case Ns.Crazy:
  					return 3.6403983298534794 * t;
  				case Ns.Ride:
  					return 4.190763653560053 * t;
  				case Ns.Mecha:
  					return 11.2 * t
  			}
  			return 2.091052366632648 * t
  		}
  		getViewScale() {
  			switch (ot.instance.visualangle) {
  				case 0:
  					return 1;
  				case 1:
  					return 1.2;
  				case 2:
  					return 1.6
  			}
  		}
  		closeFollow() {
  			this._followSprite = null, this._cAnchor = null;
  		}
  		stopCAnchorFollow() {
  			this._followSprite = null, this._cAnchor = null, this._posOffSet = null;
  		}
  		onUpdate() {
  			if (!this._followSprite) return;
  			this._cAnchor && this._updateCAnchor(), this._updateRotate();
  			let t = Oa.camera;
  			null != this.deerViewPose && (t.transform.localRotationEulerX = 5 * this.shakeOffset.x - 25, t.transform.localRotationEulerY = 180 + 5 * this.shakeOffset.y, t.transform.localRotationEulerZ = 5 * this.shakeOffset.z);
  		}
  		onLateUpdate() {
  			this.check();
  		}
  		_updateCAnchor() {
  			this._cAnchor && this._followSprite && (Laya.Vector3.add(this._followSprite.transform.position, this._posOffSet, this._cAnchor.transform.position), this._cAnchor.transform.position = this._cAnchor.transform.position);
  		}
  		check() {
  			if (this.cameraTween) return;
  			let t = Oa.camera,
  				e = Oa.cameraControl,
  				i = this.getViewMaxDis();
  			Laya.Vector3.subtract(t.transform.position, e.transform.position, this.checkTmp), Laya.Vector3.normalize(this.checkTmp, this.checkTmp), Laya.Vector3.scale(this.checkTmp, i + .5, this.checkTmp), Laya.Vector3.add(e.transform.position, this.checkTmp, this.checkTmp), Oa.s3d.physicsSimulation.shapeCast(this.castShape, e.transform.position, this.checkTmp, this.hit, e.transform.rotation, e.transform.rotation, ue.Ray, ue.Build | ue.Plane) && (i = Laya.Vector3.distance(this.hit.point, e.transform.position)), Laya.Vector3.subtract(t.transform.position, e.transform.position, this.dir), Laya.Vector3.normalize(this.dir, this.dir), Laya.Vector3.scale(this.dir, i, this.dir), Laya.Vector3.add(e.transform.position, this.dir, this.dir), Laya.Vector3.lerp(this.dir, t.transform.position, .2, t.transform.position), t.transform.position = t.transform.position, t.transform.position.cloneTo(this.lastCameraPos);
  		}
  		dispose() {
  			let t = Oa.camera;
  			Laya.Tween.clearAll(t.transform), this.stopCAnchorFollow(), this._cAnchor = null;
  		}
  		_onMouseDown(t) {
  			this.curTouchId = t.touchId, this._touchView.on(Laya.Event.MOUSE_MOVE, this, this._onMove), this.originPoint.x = t.stageX, this.originPoint.y = t.stageY, this.originRotate = Oa.cameraControl.transform.rotationEuler.clone();
  		}
  		_updateRotate() {
  			let t = Oa.cameraControl.transform;
  			if (isZero(this._tempV3)) null != Oa.carEularY && (t.rotationEuler.y = h.MoveTowardsAngle(t.rotationEuler.y, Oa.carEularY, 90 * le.deltaTimeSec), t.rotationEuler = t.rotationEuler);
  			else if (this.viewType == Ns.Mecha) {
  				let e = l.SmoothDamp(t.rotationEuler, this._tempV3, this._currentVelocity, 200, 2 * this._speed, Laya.timer.delta);
  				if (t.rotationEuler.x = e.x, t.rotationEuler.y = e.y, t.rotationEuler = t.rotationEuler, Math.floor(this._tempV3.y) == Math.floor(t.rotationEuler.y)) {
  					Oa.rocker._dire = new Laya.Vector3(0, 0, 0);
  				}
  			} else {
  				let e = l.SmoothDamp(t.rotationEuler, this._tempV3, this._currentVelocity, 100, 2 * this._speed, Laya.timer.delta);
  				t.rotationEuler.x = e.x, t.rotationEuler.y = e.y, t.rotationEuler = t.rotationEuler;
  			}
  		}
  		_onMove(t) {
  			if (this.curTouchId && t.touchId != this.curTouchId) return;
  			let e = (t.stageX - this.originPoint.x) * this._speed,
  				i = (t.stageY - this.originPoint.y) * this._speed,
  				s = this.originRotate.x + i;
  			if (s >= Da.cameraControlXMaxR || s <= Da.cameraControlXMinR) return;
  			let a = this.originRotate.y - e;
  			if (this._tempV3.x = s, this._tempV3.y = a, this.viewType == Ns.Mecha)
  				if (e > 0) {
  					Oa.rocker._dire = new Laya.Vector3(127, 0, 0);
  				} else if (e < 0) {
  				Oa.rocker._dire = new Laya.Vector3(-127, 0, 0);
  			} else {
  				Oa.rocker._dire = new Laya.Vector3(0, 0, 0);
  			}
  		}
  		_onMouseUp(t) {
  			if (t.touchId == this.curTouchId && (this._touchView.off(Laya.Event.MOUSE_MOVE, this, this._onMove), this.originPoint.reset(), this.curTouchId = null, this.originRotate = null, this._tempV3.setValue(0, 0, 0), this.viewType == Ns.Mecha)) {
  				Oa.rocker._dire = new Laya.Vector3(0, 0, 0);
  			}
  		}
  	}
  	class ta extends ds {
  		initData() {
  			this._zdke = this.displayObject.getChildByName(fe.zdke), this._zdke && (this._zdke.active = !1), this._qy = this.displayObject.getChildByName(fe.qHuo), this._qy && (this._qy.active = !1);
  		}
  		_att(t) {
  			let e = this.muzzlePos();
  			e || console.error("不存在枪口位置");
  			let i = c.direOneDisV3(t, e),
  				s = this._createBullet();
  			s && s.startAtt(e, i), this._zdke && (this._zdke.active = !0), this._qy && (this._qy.active = !0);
  		}
  		wear(t, e) {
  			super.wear(t, e), oi.instance.playSound(Ne.wearGun);
  		}
  		stopAtt() {
  			super.stopAtt(), this._qy && (this._qy.active = !1), this._zdke && (this._zdke.active = !1);
  		}
  		_createBullet() {
  			let t = this.weaponConfig;
  			return new bs(t, this.faction)
  		}
  	}
  	class ea extends ta {}
  	class ia extends ta {}
  	class sa extends ge {
  		constructor(t, e) {
  			super(), this._isBoom = !1, this._hasAttedLife = [], this._attRange = 10, this._weaponConfig = t, this.faction = e, this.attNum = t.att, this.weaponType = ki.cases;
  		}
  		closeRig() {}
  		startAtt(t, e) {
  			const i = Object.create(null, {
  				initDisplay: {
  					get: () => super.initDisplay
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield R.LoadAsync(ye.prefabPath(this._weaponConfig.prefabName));
  				let s = R.Get(ye.prefabPath(this._weaponConfig.prefabName));
  				ws.instance.InitObjPool(Ii.cases, s), s.transform.position = t, this._guangyunEff = s.getChildByName(fe.guangyunEff), this._guangyunEff && (this._guangyunEff.active = !1), this.viewObj = s.getChildByName(fe.cases), this.viewObj.active = !0, c.SwitchParent(s, Aa.instance.getNowScene()
  					.scene);
  				let a = c.angleByPoint(l.zeroNew, {
  					x: e.x,
  					y: e.z
  				});
  				s.transform.localRotationEulerY = a, i.initDisplay.call(this, s), s.transform.scale = new Laya.Vector3(1, 1, 1), this._rig = this._model.getComponent(Laya.Rigidbody3D), this._rig.collisionGroup = ue.Weapon, this._rig.canCollideWith = ue.Build | ue.Car | ue.Monster | ue.Deer, this._rig.enabled = !1, this._rig.isTrigger = !0, this._rig.isKinematic = !0, this._rig.gravity = new Laya.Vector3, this._rig[fe.collsionSelf] = this;
  				let n = (Math.max(-1, e.y) + 1) * Da.hToCasesDis,
  					o = s.transform.position,
  					r = e.x * (n + 1),
  					h = e.z * (n + 1),
  					d = new Laya.Vector3(o.x + r, o.y, o.z + h),
  					u = getLinearVelocity(o, new Laya.Vector3(o.x + r / 2, o.y + Math.abs(n), o.z + h / 2), d);
  				if (Da.useOimo) {
  					let t = this._rig.colliderShape;
  					this.oimoRig = $e.instance.CreateSphereFromObj($e.instance.oimoWorld, this.displayObject.transform, t, !0, !0, !1), console.log("添加手榴弹物理----------" + this.oimoRig.id), $e.instance.setCollideData(this.oimoRig, ue.Weapon, ue.Build | ue.Car | ue.Plane), this.oimoRig.linearVelocity = new OIMO.Vec3(u.x, u.y, u.z);
  				}
  				Laya.timer.once(1e3 * Da.casesBoomTime, this, this._boom);
  			})
  		}
  		onTriggerEnter(t, e) {
  			if (this._isBoom) {
  				let t = e[fe.collsionSelf];
  				if (t && t instanceof Le && this._hasAttedLife.indexOf(t) < 0) {
  					if (t.flyed(this.displayObject.transform.position), t.faction == this.faction) return;
  					Pa.instance.deer.isCasesUp ? t.atted(1.2 * this._weaponConfig.att, this.displayObject.transform.position) : t.atted(this._weaponConfig.att, this.displayObject.transform.position), this._hasAttedLife.push(t);
  				}
  			}
  		}
  		offEvent() {
  			super.offEvent(), Laya.timer.clearAll(this);
  		}
  		_boom() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (this._isBoom = !0, this._rig.enabled = !0, oi.instance.playSound(Ne.shouleiBoom), yield et.NextFrame(), this._guangyunEff && (this._guangyunEff.active = !1), Da.useOimo && (this.oimoRig.linearVelocity = new OIMO.Vec3), this._removeRig(), !this.displayObject || this.displayObject.destroyed) return this.dispose();
  				this.displayObject.transform.scale = new Laya.Vector3(this._attRange, this._attRange, this._attRange), this.viewObj.active = !1, Laya.timer.once(1e3 * Da.bulletDisTime, this, this.dispose), Ce.instance.PlayEffectById(je.SL_baozha, 2, this.displayObject.transform.position);
  			})
  		}
  		getModel() {
  			return this.displayObject
  		}
  		_removeRig() {
  			this.oimoRig && (console.log("移除手榴弹----------" + this.oimoRig.id), $e.instance.RemoveRig(this.oimoRig), this.oimoRig = null);
  		}
  		dispose() {
  			super.dispose(), this._hasAttedLife = [], this._isBoom = !1, Laya.timer.clearAll(this), this.offEvent(), this.clearTrigger(), this._rig[fe.collsionSelf] = null, this.displayObject && (this.displayObject.removeSelf(), ws.instance.ReturnObj(Ii.cases, this.displayObject)), this._removeRig();
  		}
  	}
  	class aa extends ta {
  		_att(t) {
  			let e = this.muzzlePos();
  			e || console.error("不存在枪口位置");
  			let i = c.direOneDisV3(t, e),
  				s = new sa(this.weaponConfig, this.faction);
  			s && s.startAtt(e, i);
  		}
  	}
  	class na extends ds {
  		_att(t) {
  			console.log("拳头攻击");
  		}
  		view(t) {
  			this.displayObject && !this.displayObject.destroyed && (this.displayObject.getChildAt(0)
  				.active = t);
  		}
  	}
  	class oa extends na {}
  	class ra extends Laya.AnimatorStateScript {
  		onStateEnter() {}
  		onStateExit() {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield et.NextFrame();
  				let t = this.bear.ani.getControllerLayer(0)
  					._crossPlayState;
  				if (!t) return;
  				let e = t.name;
  				e == Fs.atted ? this.bear.playAni(Fs.hou) : e == Fs.hou && this.bear.setMotion(S.idle, !0);
  			})
  		}
  	}! function(t) {
  		t.att = "att", t.idle = "idle", t.hou = "hou", t.down = "down", t.up = "up", t.atted = "atted", t.die = "die", t.walk = "walk";
  	}(Fs || (Fs = {}));
  	class ha extends ri {
  		initDisplay(t) {
  			super.initDisplay(t), this.ani.getControllerLayer(0)
  				._states.forEach(t => {
  					t.addScript(ra)
  						.bear = this;
  				});
  		}
  		atted(t, e) {
  			if (this instanceof ha && console.log(""), t <= this._dff || this.isDie()) return;
  			this._atterPos = e;
  			let i = t - this._dff;
  			return this.addHp(-i, e, t), this.isDie() || this.setMotion(S.atted, !0), this._hp
  		}
  		stateChange() {
  			if (this.ani) {
  				let t = "";
  				this.lifeState == S.att || this.lifeState == S.atted || this.lifeState == S.idle || this.lifeState == S.die ? (t = this.lifeState, this.lifeState == S.idle ? this._policeMove && (this._policeMove.enabled = !0) : this.lifeState == S.atted && this._policeMove && (this._policeMove.enabled = !1)) : this.lifeState == S.run ? (t = Fs.down, this._policeMove && (this._policeMove.enabled = !0)) : this.lifeState == S.walk && (t = Fs.walk, this._policeMove && (this._policeMove.enabled = !0)), this.playAni(t);
  			}
  		}
  		playAni(t, e = .1) {
  			this.ani.crossFade(t, e, 0, 0);
  		}
  		die() {
  			super.die(), this.clear(), this._boxCollsion.enabled = !1, o.instance.event3d(f.TaskChange, Be.killBear), this.addOimoRig(), Laya.Tween.to(this.displayObject.transform, {
  				localScaleX: 0,
  				localScaleY: 0,
  				localScaleZ: 0
  			}, 1e3, Laya.Ease.elasticInOut, Laya.Handler.create(this, this.clear));
  		}
  	}
  	class la extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.carMoveUseOimo = !0, this.right = !1, this.left = !1, this.forward = !1, this.back = !1, this.auto = !0, this._nowRouteIndex = 0, this._tyreRotateY = 0, this._tempQ = new Laya.Quaternion, this._UP = new Laya.Vector3(0, 1, 0);
  		}
  		setFlySprite(t) {
  			this.flyMonster = t;
  		}
  		setRoutes(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this._routes = t, this._routes[0].cloneTo(this.flyMonster.displayObject.transform.position), Da.useOimo && this.carMoveUseOimo && (yield et.NextFrame());
  			})
  		}
  		onUpdate() {
  			this.flyMonster && (this._followSp ? this._attFollowSp() : this._routes && this._autoMove());
  		}
  		fTyreRotateY() {
  			return this._tyreRotateY
  		}
  		openFollow(t) {
  			this._followSp = t;
  		}
  		_attFollowSp() {
  			let t = this.flyMonster.monsterVo.monsterConfig.moveSpeed;
  			this._moveToPos(this._followSp.transform.position, t);
  		}
  		_autoMove() {
  			let t = this._nowRouteIndex + 1;
  			t = t >= this._routes.length ? 0 : t;
  			let e = this.flyMonster.monsterVo.monsterConfig.slowMoveSpeed;
  			this._moveToPos(this._routes[t], e);
  		}
  		_moveToPos(t, e) {
  			let i = this.flyMonster.displayObject.transform,
  				s = i.position,
  				a = direOneDisV3(t, s);
  			Laya.Vector3.scale(a, e, a), Laya.Vector3.add(s, a, i.position), i.position = i.position, Laya.Vector3.scale(a, -1, a), Laya.Quaternion.rotationLookAt(a, this._UP, this._tempQ), this._tempQ.invert(this._tempQ);
  			let n = us.Lerp(i.rotation, this._tempQ, .02);
  			i.rotation = n, Laya.Vector3.distance(s, t) <= e && this._routes && (this._nowRouteIndex++, this._nowRouteIndex = this._nowRouteIndex >= this._routes.length ? 0 : this._nowRouteIndex);
  		}
  	}
  	class ca extends ni {
  		initDisplay(t) {
  			super.initDisplay(t), this._flyScript = t.addComponent(la), this._flyScript.setFlySprite(this);
  		}
  		setFlyRoute(t) {
  			if (!t) return;
  			let e = [];
  			t._children.forEach(t => {
  				e.push(t.transform.position.clone());
  			}), this._flyScript.setRoutes(e);
  		}
  		dispose(t = !0) {
  			this._flyScript && this._flyScript.destroy(), super.dispose(t);
  		}
  		die() {
  			super.die(), this._flyScript && this._flyScript.destroy(), o.instance.event3d(f.TaskChange, Be.killKoala);
  		}
  	}
  	class da extends ca {
  		constructor() {
  			super(...arguments), this._openFollow = !1, this.sound = !1;
  		}
  		initDisplay(t) {
  			super.initDisplay(t), this._ani = this.displayObject.getChildAt(0)
  				.getComponent(Laya.Animator);
  		}
  		onTriggerEnter(t, e) {
  			e.collisionGroup != ue.Deer || this.isDie() || Pa.instance.deer.atted(this.monsterVo.monsterConfig.att);
  		}
  		onCollisionEnter(t, e) {
  			e.other.collisionGroup != ue.Deer || this.isDie() || Pa.instance.deer.atted(this.monsterVo.monsterConfig.att);
  		}
  		atted(t, e) {
  			return this._flyScript.openFollow(Pa.instance.deer.displayObject), Laya.timer.frameLoop(2, this, this.checkAtt), this.sound || (this.sound = !0, oi.instance.playSound(Ne.whale), Laya.timer.once(3e3, this, () => {
  				this.sound = !1;
  			})), super.atted(t, e)
  		}
  		checkAtt() {
  			Laya.Vector3.distanceSquared(this.displayObject.transform.position, Pa.instance.deer.displayObject.transform.position) < Da.whaleAttDisSqr && this._ani.play("att");
  		}
  		die() {
  			const t = Object.create(null, {
  				die: {
  					get: () => super.die
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				t.die.call(this), Laya.timer.clearAll(this);
  				let e = this.displayObject.transform.position.clone();
  				this.dispose(), yield R.LoadAsync(E.prefab_url("whale_break"));
  				let i = R.Get(E.prefab_url("whale_break"));
  				le.SwitchParent(i, Pa.instance.scene.scene), i.transform.position = e, ii.startBreak(i._children, e);
  			})
  		}
  	}
  	class ua extends ri {
  		initDisplay(t) {
  			super.initDisplay(t);
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t);
  				let i = le.findChild(this.displayObject, this._initWeapon.weaponNode);
  				this._attAni = i.getComponent(Laya.Animator);
  				let s = le.findChild(this.displayObject, fe.sheep, !1);
  				this._runAni = s.getComponent(Laya.Animator), this._runAni.enabled = !1, Laya.timer.once(3 * Math.random(), this, this.openAni), this._attEff = this.displayObject.getChildByName(fe.attEff);
  			})
  		}
  		openAni() {
  			this._runAni.enabled = !0;
  		}
  		_dieFly() {
  			if (Da.useOimo) {
  				this.addOimoRig();
  				let t = direOneDisV3(this.attedPos(), this._atterPos || Pa.instance.deer.displayObject.transform.position);
  				t.y += 1, Laya.Vector3.scale(t, Da.sheepRepelSpeed, t), console.log(t), this.oimoRig.linearVelocity = $e.instance.v3B(t);
  				let e = new Laya.Vector3(Math.random(), Math.random(), Math.random());
  				Laya.Vector3.scale(e, Da.sheepRepelRSpeed, e), this.oimoRig.angularVelocity = $e.instance.v3B(e), this._runAni.enabled = !1, this._attAni.enabled = !1, Laya.timer.once(1e3, this, () => {
  					$e.instance.setCollideData(this.oimoRig, ue.Monster, ue.Plane | ue.Deer);
  				});
  			}
  		}
  		stateChange() {
  			this.lifeState == S.att ? (this._attAni.play(S.att, 0, 0), this._attEff.particleSystem.play(), this.initWeapon.view(!0)) : this.initWeapon.view(!1);
  		}
  		canCatched() {
  			return this.isDie()
  		}
  		die() {
  			super.die(), this._boxCollsion.enabled = !1, oi.instance.playSound(Ne.sheepDie), this._runAni.enabled = !1, this._attAni.enabled = !1, o.instance.event3d(f.TaskChange, Be.killSheep), Laya.Tween.to(this.displayObject.transform, {
  				localPositionY: .5,
  				localScaleX: 0,
  				localScaleY: 0,
  				localScaleZ: 0
  			}, 400, Laya.Ease.linearInOut, Laya.Handler.create(this, this.clear));
  		}
  	}
  	class _a extends ca {
  		initDisplay(t) {
  			super.initDisplay(t);
  		}
  		die() {
  			super.die();
  		}
  	}
  	class ma extends ca {
  		initDisplay(t) {
  			super.initDisplay(t);
  		}
  		die() {
  			super.die();
  		}
  	}
  	class pa extends ni {
  		constructor() {
  			super(...arguments), this._UP = new Laya.Vector3(0, -1, 0), this.isDead = !1;
  		}
  		initDisplay(t) {
  			super.initDisplay(t), this.ani = this.displayObject.getChildAt(0)
  				.getComponent(Laya.Animator), this.setMotion(S.idle);
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t), this._attScript.autoAtt = !1, this._attScript.openDelayedAim = !0;
  			})
  		}
  		getModel() {
  			return this.displayObject.getChildAt(0)
  		}
  		atted(t) {
  			if (!this.isDie() && !this.isDead && null != this.displayObject) return this.lifeState != S.att && (oi.instance.playSound(Ne.bossBGM, 0, null, null, .2, .6), this._readyAtt(), this.startAtt(!1), o.instance.event(f.bossStartAtt, [1])), o.instance.event(f.bossHpChange, this.hp), super.atted(t)
  		}
  		dispose() {
  			oi.instance.stopSound(Ne.bossBGM), super.dispose();
  		}
  		_readyAtt() {
  			this.openAim();
  		}
  		openAim() {
  			this._attScript && (this._attScript.autoAtt = !0, this._attScript.openDelayedAim = !0);
  		}
  		endAtt() {
  			this._attScript && (this._attScript.autoAtt = !1, this._attScript.openDelayedAim = !1), this._model.transform.localPosition = new Laya.Vector3, this._model.transform.localRotationEuler = new Laya.Vector3, o.instance.event(f.bossEndAtt), oi.instance.stopSound(Ne.bossBGM);
  		}
  		aimTarget(t) {
  			t && this.initWeapon.attState && (this._model.transform.lookAt(t, this._UP, !1), this._model.transform.localRotationEulerX += -270, this.initWeapon.aimTarget(t));
  		}
  		die() {
  			const t = Object.create(null, {
  				die: {
  					get: () => super.die
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				this.isDead = !0, o.instance.event(f.bossHpChange, 0), o.instance.event3d(f.TaskChange, Be.killKoala), t.die.call(this);
  				let e = this.displayObject.transform.position.clone();
  				this.initWeapon.stopAtt(), this.initWeapon.dispose(), oi.instance.stopSound(Ne.bossBGM), yield R.LoadAsync(E.prefab_url("panda_break")), this.dispose();
  				let i = R.Get(E.prefab_url("panda_break"));
  				le.SwitchParent(i, Pa.instance.scene.scene), i.transform.position = e, ii.startBreak(i._children, e);
  			})
  		}
  	}
  	class ga extends ta {
  		constructor() {
  			super(...arguments), this._ray = new Laya.Ray(new Laya.Vector3, new Laya.Vector3), this._hitResult = new Laya.HitResult, this._dire = new Laya.Vector3, this.point3d = new Laya.Vector3;
  		}
  		initData() {
  			this._weaponScript.canAtt = !1, this._raySp = le.findChild(this.displayObject, fe.ray), this.faction = L.enemy;
  		}
  		aimTarget(t) {
  			if (!t) return;
  			let e = !1,
  				i = this.weaponConfig.attRange,
  				s = this._raySp.transform.position.clone();
  			return this._ray.origin = s, Laya.Vector3.distance(t, s) > i ? i = 0 : (Laya.Vector3.subtract(t, s, this._dire), this._ray.direction = this._dire, Oa.s3d.physicsSimulation.rayCast(this._ray, this._hitResult, this.weaponConfig.attRange, ue.Ray, ue.Build | ue.Car | ue.Deer) && (this._hitResult.point.cloneTo(this.point3d), e = this._hitResult.collider.collisionGroup == ue.Deer, i = Laya.Vector3.distance(s, this.point3d)), e || (this._weaponScript.canAtt = !1)), this._raySp.transform.localScaleZ = i, e
  		}
  		attInterval() {
  			return this._weaponScript.attInterval
  		}
  		openAtt() {
  			this._weaponScript.canAtt = !0;
  		}
  		stopAtt() {
  			super.stopAtt(), this._weaponScript.canAtt = !1, this._raySp.transform.localScaleZ = 0;
  		}
  	}
  	class fa extends ds {
  		constructor() {
  			super(...arguments), this._hitResult = new Laya.HitResult, this._dire = new Laya.Vector3, this._laserAtt = !1, this.point3d = new Laya.Vector3, this._UP = new Laya.Vector3(0, 1, 0), this.soundCount = 200;
  		}
  		initData() {
  			this._laser = le.findChild(this.displayObject, fe.laser), this._eye1 = le.findChild(this.displayObject, fe.laser1), this._jiguang1 = le.findChild(this._eye1, fe.jiguang), this._eye2 = le.findChild(this.displayObject, fe.laser2), this._jiguang2 = le.findChild(this._eye2, fe.jiguang), this._eye1.active = !1, this._eye2.active = !1, this._baoza1 = le.findChild(this._eye1, "baoza"), this._baoza2 = le.findChild(this._eye2, "baoza"), this._baoza1.active = !1, this._baoza2.active = !1, this._yan1 = le.findChild(this._eye1, "yan"), this._yan2 = le.findChild(this._eye2, "yan"), this._yan1.active = !1, this._yan2.active = !1;
  		}
  		_att(t) {
  			this._eye1.active = !0, this._eye2.active = !0, this._laserAtt = !0;
  		}
  		aimTarget(t) {
  			if (!t || !this._laserAtt) return;
  			this.soundCount += Laya.timer.delta;
  			let e = this.rayToPos(this._eye1.transform.position, t, this._baoza1, this._yan1);
  			e ? this._attDeer() : (e = this.rayToPos(this._eye2.transform.position, t, this._baoza2, this._yan2)) && this._attDeer();
  			let i = this._hitResult.point,
  				s = Laya.Vector3.distance(this._eye1.transform.position, i);
  			return this._eye1.transform.lookAt(i, this._UP, !1), this._eye2.transform.lookAt(i, this._UP, !1), this._jiguang1.transform.localScale = new Laya.Vector3(s, 1, 1), this._jiguang2.transform.localScale = new Laya.Vector3(s, 1, 1), this._eye1.transform.localRotationEulerX += 180, this._eye2.transform.localRotationEulerX += 180, e
  		}
  		stopAtt() {
  			super.stopAtt(), this._eye1.active = !1, this._eye2.active = !1;
  		}
  		rayToPos(t, e, i, s) {
  			let a = !1,
  				n = t.clone(),
  				o = direOneDisV3(e, n);
  			if (Laya.Vector3.scale(o, 10, o), Laya.Vector3.add(e, o, e), Oa.s3d.physicsSimulation.raycastFromTo(n, e, this._hitResult, ue.Ray, ue.Build | ue.Car | ue.Deer | ue.Plane)) {
  				let t = this._hitResult.collider.collisionGroup;
  				if (a = t == ue.Deer, t == ue.Car) {
  					let t = this._hitResult.collider[fe.collsionSelf];
  					t instanceof ms && (a = t.faction == L.friendly);
  				}
  				i.transform.position = this._hitResult.point.clone(), t == ue.Plane && (s.transform.position = this._hitResult.point.clone(), this.soundCount >= 300 && (this.soundCount = 0, oi.instance.playSound("laser", 1, null, null, null, .3)), s.active = !0);
  			} else i.active = !1, s.active = !1;
  			return a
  		}
  		_attDeer() {
  			Pa.instance.deer.atted(this.weaponConfig.att), Pa.instance.deer.flyed(this.displayObject.transform.position);
  		}
  	}
  	class ya extends ta {}
  	class Ca extends ta {}
  	class wa {
  		constructor() {
  			this._oncePosOffset = new Laya.Vector3(-23.3, 13.5, 0), this._onceRotateOffset = new Laya.Vector3(-12, -90, 0), this._twoPosOffset = new Laya.Vector3(-10, 10.5, 0), this._threePosOffset = new Laya.Vector3(-7, 4, 0), this._threeRotateOffset = new Laya.Vector3(-30, -90, 0), this._fourPosOffset = new Laya.Vector3(-2.6, 2.3, 0), this._fivePosOffset = new Laya.Vector3(-3, .5, -1.4), this._fiveRotateOffset = new Laya.Vector3(-12.5, -110, 0), this._sixPosOffset = new Laya.Vector3(-3, 1.2, -1.4);
  		}
  		initDisplay(t) {
  			this._disobject = t, this._doorLeft = this._disobject.getChildByName(fe.doorLeft), this._doorRight = this._disobject.getChildByName(fe.doorRight), this._upPlane = this._disobject.getChildByName(fe.upPlane), o.instance.on3d(f.skipBornAni, this, this._skipBornAni);
  		}
  		stopAni() {
  			this._newCamera && (this._newCamera.enableRender = !1, Laya.Tween.clearAll(this._newCamera.transform), this._newCamera.destroy(), this._upPlane && Laya.Tween.clearAll(this._upPlane.transform), Laya.timer.clearAll(this));
  		}
  		producePolice() {
  			return __awaiter(this, void 0, void 0, function*() {
  				if (de.instance.levelId > 1 && de.instance.levelId <= 4) return;
  				o.instance.event3d(f.startViewPolice), oi.instance.playSound(Ne.policeBorn), Pa.instance.viewPoliceBorn = !0, this._upPlane.transform.localPositionY = -3, this._doorLeft.transform.localPositionZ = 0, this._doorRight.transform.localPositionZ = 0;
  				let t = Ze.instance.lastRiskVo;
  				var e = Ze.instance.getNowRiskType();
  				this._bornAni(e == Ue.D, Laya.Handler.create(this, () => __awaiter(this, void 0, void 0, function*() {
  					if (t) {
  						let e = t.monsterVos.length;
  						for (let i = 0; i < e; i++) {
  							let e = t.monsterVos[i],
  								s = E.prefab_url(e.monsterConfig.prefabName);
  							yield R.LoadAsync(s);
  							let a = Pa.instance.getMonsterByType(e.monsterConfig.type, R.Get(s));
  							a.bornInCenter(this._disobject.transform.position, i, e), Pa.instance.polices.push(a), Pa.instance.viewPoliceBorn = !1, oi.instance.stopSound(Ne.policeBorn);
  						}
  					}
  					console.log(t.monsterVos.length);
  				})));
  				let i = t.riskData.viewPolice;
  				this._viewPoliceType = i;
  				let s = E.prefab_url(t.viewPolice.prefabName);
  				if (yield R.LoadAsync(s), i == Ge.Sheep) {
  					let t = R.Get(s),
  						e = R.Get(s),
  						i = R.Get(s);
  					this._upPlane.addChild(t), this._upPlane.addChild(e), this._upPlane.addChild(i), le.findChild(t, fe.baton)
  						.active = !1, le.findChild(e, fe.baton)
  						.active = !1, le.findChild(i, fe.baton)
  						.active = !1, le.findChild(t, fe.attEff)
  						.active = !1, le.findChild(e, fe.attEff)
  						.active = !1, le.findChild(i, fe.attEff)
  						.active = !1, t.transform.localPosition = new Laya.Vector3, e.transform.localPosition = new Laya.Vector3(0, 0, -1.4), i.transform.localPosition = new Laya.Vector3(0, 0, 1.4), t.transform.localRotationEuler = new Laya.Vector3(0, -90, 0), e.transform.localRotationEuler = new Laya.Vector3(0, -90, 0), i.transform.localRotationEuler = new Laya.Vector3(0, -90, 0);
  				} else if (i == Ge.Bear) {
  					let t = R.Get(s);
  					this._bear = t, this._upPlane.addChild(t), t.transform.localRotationEuler = new Laya.Vector3(0, -180, 0), t.getChildAt(0)
  						.getComponent(Laya.Animator)
  						.play(Fs.down);
  				} else if (i == Ge.Rabbit) {
  					let t = R.Get(s);
  					t.active = !0, this._upPlane.addChild(t), t.transform.localPosition = new Laya.Vector3, t.transform.localRotationEuler = new Laya.Vector3(0, 90, 0);
  				}
  			})
  		}
  		_bornAni(t = !1, e) {
  			if (t) return void this._bornAniShort(e);
  			Oa.camera.enableRender = !1, this._newCamera = this._newCamera || new Laya.Camera, this._newCamera.enableRender = !0;
  			let i = this._newCamera;
  			i.fieldOfView = 50, this._disobject.addChild(i), i.transform.localPosition = new Laya.Vector3, i.transform.localRotationEuler = new Laya.Vector3;
  			let s = i.transform;
  			s.localPosition = this._oncePosOffset.clone(), s.localRotationEuler = this._onceRotateOffset.clone(), Laya.Tween.to(s, {
  				localPositionX: this._twoPosOffset.x,
  				localPositionY: this._twoPosOffset.y,
  				localPositionZ: this._twoPosOffset.z
  			}, 1e3, null, Laya.Handler.create(this, () => {
  				console.log("第1步"), Laya.Tween.to(s, {
  					localRotationEulerX: this._threeRotateOffset.x,
  					localRotationEulerY: this._threeRotateOffset.y,
  					localRotationEulerZ: this._threeRotateOffset.z
  				}, 1e3), Laya.Tween.to(s, {
  					localPositionX: this._threePosOffset.x,
  					localPositionY: this._threePosOffset.y,
  					localPositionZ: this._threePosOffset.z
  				}, 1e3, null, Laya.Handler.create(this, () => {
  					console.log("第2步"), Laya.Tween.to(this._doorLeft.transform, {
  						localPositionZ: -3
  					}, 600), Laya.Tween.to(this._doorRight.transform, {
  						localPositionZ: 3
  					}, 600, null, Laya.Handler.create(this, () => {
  						Laya.Tween.to(s, {
  							localPositionX: this._fourPosOffset.x,
  							localPositionY: this._fourPosOffset.y,
  							localPositionZ: this._fourPosOffset.z
  						}, 1500, null, Laya.Handler.create(this, () => {
  							Laya.timer.once(500, this, () => {
  								console.log("第3步"), s.localPosition = this._fivePosOffset.clone(), s.localRotationEuler = this._fiveRotateOffset.clone(), this._upPlane.transform.localPositionY = -2, Laya.Tween.to(this._upPlane.transform, {
  									localPositionY: 0
  								}, 600, null, Laya.Handler.create(this, () => {
  									if (console.log("第4步"), this._viewPoliceType == Ge.Bear) {
  										this._bear.getChildAt(0)
  											.getComponent(Laya.Animator)
  											.play(Fs.up);
  									}
  									o.instance.event3d(f.viewPolice, this._viewPoliceType), Laya.timer.once(700, this, () => {
  										console.log("第5步"), this._upPlane.destroyChildren(), this._newCamera.enableRender = !1, Oa.camera.enableRender = !0, e && e.run(), o.instance.event3d(f.endViewPolice);
  									});
  								})), Laya.Tween.to(s, {
  									localPositionX: this._sixPosOffset.x,
  									localPositionY: this._sixPosOffset.y,
  									localPositionZ: this._sixPosOffset.z
  								}, 1500);
  							});
  						})), Laya.Tween.to(this._upPlane.transform, {
  							localPositionY: 0
  						}, 1200);
  					}));
  				}));
  			}));
  		}
  		_skipBornAni() {
  			this._upPlane.destroyChildren(), this.stopAni(), Oa.camera.enableRender = !0, o.instance.event3d(f.endViewPolice);
  		}
  		_bornAniShort(t) {
  			Oa.camera.enableRender = !1, this._newCamera = this._newCamera || new Laya.Camera, this._newCamera.enableRender = !0;
  			let e = this._newCamera;
  			e.fieldOfView = 50, this._disobject.addChild(e), e.transform.localPosition = new Laya.Vector3, e.transform.localRotationEuler = new Laya.Vector3;
  			let i = e.transform;
  			i.localPosition = this._twoPosOffset.clone(), i.localRotationEuler = this._onceRotateOffset.clone(), Laya.Tween.to(i, {
  				localRotationEulerX: this._threeRotateOffset.x,
  				localRotationEulerY: this._threeRotateOffset.y,
  				localRotationEulerZ: this._threeRotateOffset.z
  			}, 1e3), Laya.Tween.to(i, {
  				localPositionX: this._threePosOffset.x,
  				localPositionY: this._threePosOffset.y,
  				localPositionZ: this._threePosOffset.z
  			}, 1e3, null, Laya.Handler.create(this, () => {
  				Laya.Tween.to(this._doorLeft.transform, {
  					localPositionZ: -3
  				}, 1e3), Laya.Tween.to(this._doorRight.transform, {
  					localPositionZ: 3
  				}, 1e3, null, Laya.Handler.create(this, () => {
  					Laya.Tween.to(i, {
  						localPositionX: this._fourPosOffset.x,
  						localPositionY: this._fourPosOffset.y,
  						localPositionZ: this._fourPosOffset.z
  					}, 2e3, null, Laya.Handler.create(this, () => {
  						Laya.timer.once(500, this, () => {
  							if (this._viewPoliceType == Ge.Bear) {
  								this._bear.getChildAt(0)
  									.getComponent(Laya.Animator)
  									.play(Fs.up);
  							}
  							o.instance.event3d(f.viewPolice, this._viewPoliceType), Laya.timer.once(1500, this, () => {
  								this._upPlane.destroyChildren(), this._newCamera.enableRender = !1, Oa.camera.enableRender = !0, t && t.run(), o.instance.event3d(f.endViewPolice);
  							});
  						});
  					})), Laya.Tween.to(this._upPlane.transform, {
  						localPositionY: 0
  					}, 2e3);
  				}));
  			}));
  		}
  	}
  	class La extends ni {
  		constructor() {
  			super(...arguments), this.canSound = !0;
  		}
  		initDisplay(t) {
  			this._canCollideWith = ue.Weapon | ue.Ray | ue.Deer, super.initDisplay(t);
  			let e = t.getChildAt(0);
  			e && (this.ani = e.getComponent(Laya.Animator));
  		}
  		stateChange() {
  			this.lifeState != S.walk && this.lifeState != S.idle && this.lifeState != S.die || this.ani.crossFade(this.lifeState, .1, 0, 0);
  		}
  		setMonsterVo(t) {
  			const e = Object.create(null, {
  				setMonsterVo: {
  					get: () => super.setMonsterVo
  				}
  			});
  			return __awaiter(this, void 0, void 0, function*() {
  				yield e.setMonsterVo.call(this, t), this._randomMove = this.displayObject.addComponent(xi), this._randomMove.setData(t, this, Pa.instance.deer);
  			})
  		}
  		atted(t, e) {
  			return this.canSound && (this.canSound = !1, oi.instance.playSound(Ne.cow)), Laya.timer.once(2e3, this, () => {
  				this.canSound = !0;
  			}), super.atted(t, e)
  		}
  		canCatched() {
  			return this.isDie()
  		} catch (t) {
  			super.catch(t);
  			var e = c.getPhysicComponent(this.displayObject);
  			null != e && (e.enabled = !1);
  		}
  		putDowned() {
  			super.putDowned();
  			var t = c.getPhysicComponent(this.displayObject);
  			null != t && (t.enabled = !0);
  		}
  		die() {
  			super.die(), le.splitNode(Pa.instance.cattles, this), Ce.instance.PlayEffectById(je.die, 3, this.displayObject.transform.position), Laya.Tween.to(this.displayObject.transform, {
  				localScaleX: 0,
  				localScaleY: 0,
  				localScaleZ: 0
  			}, 100, Laya.Ease.elasticInOut, Laya.Handler.create(this, this.dispose));
  		}
  	}
  	class ba extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "loadView")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_neckCom = this.getChildAt(2), this.m__lu = this.getChildAt(3), this.m_plan = this.getChildAt(4);
  		}
  	}
  	ba.URL = "ui://kk7g5mmml0y74n";
  	class Sa extends Q {
  		constructor() {
  			super(...arguments), this._layer = _.Main;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Sa, this._instance._classDefine = ba), this._instance
  		}
  		_OnShow() {
  			console.log("LOADING", Laya.stage);
  			for (let t = 0; t < Laya.stage.numChildren; t++)
  				if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  					.numChildren > 0) {
  					let e = Laya.stage.getChildAt(t),
  						i = 0;
  					for (let t = 0; t < e.numChildren; t++)
  						if (e.getChildAt(t) instanceof Laya.View) {
  							let s = e.getChildAt(t);
  							0 == i++ ? s.visible = !1 : s.removeSelf();
  						}
  				} super._OnShow(), this.ui.m_neckCom.height = 60, Laya.Tween.to(this.ui.m_neckCom, {
  				height: 150
  			}, 1500);
  		}
  		_OnHide() {
  			Laya.Tween.clearAll(this.ui.m_neckCom);
  		}
  		setPlan(t) {
  			this._isShow && (this.ui.m_plan.value = t, this.ui.m_plan.m_panNumber.text = `${Math.floor(t)-1} %`, this.ui.m_plan.m_flash.x = t / 100 * this.ui.m_plan.width);
  		}
  	}
  	class ka extends Le {
  		initDisplay(t) {
  			this._collisionGroup = ue.Build, this._canCollideWith = ue.Deer, super.initDisplay(t), o.instance.on3d(f.CattleArrive, this, this.onCattleArrive);
  		}
  		dispose() {
  			super.dispose(), o.instance.off3d(f.CattleArrive, this, this.onCattleArrive);
  		}
  		onCattleArrive() {
  			o.instance.off3d(f.CattleArrive, this, this.onCattleArrive), ka.IsTrigger = !0, Laya.Tween.to(this.displayObject.transform, {
  				localPositionY: this.displayObject.transform.localPositionY - .7
  			}, 1e3, null, Laya.Handler.create(this, this.onTweenEnd));
  		}
  		onTweenEnd() {
  			va.Check();
  		}
  		atted(t, e) {
  			if (!(t <= this._dff || this.isDie())) return 0
  		}
  	}
  	ka.IsTrigger = !1;
  	class va extends Laya.Script3D {
  		constructor() {
  			super(...arguments), this.UP = new Laya.Vector3(0, 1, 0);
  		}
  		static Check() {
  			ka.IsTrigger && Ia.IsTrigger && (o.instance.event3d(f.startViewPolice), Pa.instance.scene.prefabs.mechaBorn[0].addComponent(va));
  		}
  		onStart() {
  			this.mechaRoot = this.owner.getChildByName("init"), this.mechaSp = Pa.instance.scene.prefabs.Mecha[0], this.mechaSp.active = !0, Oa.camera.enableRender = !1, this._newCamera = this._newCamera || new Laya.Camera, this._newCamera.fieldOfView = 70, this.owner.addChild(this._newCamera), this._newCamera.transform.localPosition = new Laya.Vector3;
  		}
  		onUpdate() {
  			this._newCamera.fieldOfView > 30 && (this._newCamera.fieldOfView -= 10 * le.deltaTimeSec), this._newCamera.transform.lookAt(this.mechaRoot.transform.position, this.UP), this.mechaRoot.transform.localPositionY -= 7 * le.deltaTimeSec, this.mechaSp.transform.position = this.mechaRoot.transform.position, this.mechaRoot.transform.localPositionY < -1 && (this.mechaRoot.transform.localPositionY = -1, this.mechaSp.transform.position = this.mechaRoot.transform.position, Laya.timer.once(1e3, this, () => {
  				Oa.camera.enableRender = !0, this.mechaSp.getChildByName("shadow")
  					.active = !1, o.instance.event3d(f.endViewPolice), null != Oe.instance.taskVo && 9 == Oe.instance.taskVo.taskConfig.taskType && o.instance.event3d(f.TaskChange, Be.alloyDeer), this.owner.destroy(!0), ot.instance.isHaveMecha = !0, ot.SaveToDisk();
  			}));
  		}
  		onDestroy() {}
  	}
  	class Ia extends Le {
  		initDisplay(t) {
  			this._collisionGroup = ue.Build, this._canCollideWith = ue.Deer | ue.Ray | ue.Weapon, super.initDisplay(t), Ia.IsTrigger = !1;
  		}
  		onCollisionEnter(t, e) {
  			console.log("碰撞了" + e.other.owner.name), "deer" == e.other.owner.name && 0 == Ia.IsTrigger && ka.IsTrigger && (Ia.IsTrigger = !0, this.clearTrigger(), Laya.Tween.to(this.displayObject.transform, {
  				localPositionY: this.displayObject.transform.localPositionY - .7
  			}, 1e3, null, Laya.Handler.create(this, this.onTweenEnd)));
  		}
  		onTweenEnd() {
  			va.Check();
  		}
  		atted(t, e) {
  			if (!(t <= this._dff || this.isDie())) return 0
  		}
  	}
  	Ia.IsTrigger = !1;
  	class Pa {
  		constructor() {
  			this.weapons = [], this.canHandLifes = [], this.initMonster = [], this.cars = [], this.polices = [], this.peoples = [], this.cattles = [], this.otherMonster = [], this.deerPeoples = [], this.skinTimerNum = 0, this.builds = [], this.blockBuilds = [], this.avoidLS = [], this.policeBorns = [], this.allBuildCollisionNum = 0, this.viewPoliceBorn = !1;
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Pa), this._instance
  		}
  		get deerWeaponNum() {
  			return this.deer && this.deer.weaponArrs ? this.deer.weaponArrs.length : 0
  		}
  		enterGame() {
  			return __awaiter(this, void 0, void 0, function*() {
  				this._initCamera(), this._initLight(), o.instance.onUI(i.Start, this, this.startLvGame), o.instance.onUI(i.PickUpWeapon, this, this._onPickUpWeapon), o.instance.onUI(i.TurnOffWeapon, this, this._onTurnOffWeapon), o.instance.on3d(f.RiskLvAdd, this, this._producePolice);
  			})
  		}
  		startLvGame(t) {
  			return __awaiter(this, void 0, void 0, function*() {
  				this.endGame(), this.isNewEnter = !0, Oa.carEularY = null, Sa.instance.Show(), yield et.Frames(2), this.clear(), this.scene = Aa.instance.getSceneByLv(t), this.scene.clearScene(), de.instance.levelId = t, de.SaveToDisk();
  				let e = Ae.instance.nowLevelVo();
  				if (e.taskVo && e.taskVo.reset(), e.taskVo) {
  					let t = e.taskVo.taskConfig.id;
  					ot.instance.taskPro = t > ot.instance.taskPro ? t : ot.instance.taskPro, ot.instance.taskPro >= 10 && (ot.instance.taskPro = 10), ot.SaveToDisk();
  				}
  				if (Oe.instance.startTask(e.taskVo), Ze.instance.setRiskLv(1), be.instance.reset(), yield this.scene.buildScene(Laya.Handler.create(this, t => {
  					Sa.instance.setPlan(100 * t);
  				}, void 0, !1)), hs.instance.Show(), Oa.camera.enableRender = !0, this._initDeer(), this._initBuilds(), this._initCar(), this._initMonster(), this._initPlane(), this._initBorns(), this._initYun(), this._initMechaTrigger(), null != Oe.instance.taskVo && 4 == Oe.instance.taskVo.taskConfig.rewardType)
  					for (let t = 0; t < Oe.instance.taskVo.taskConfig.reward; t++) switch (t) {
  						case 0:
  							this.dropWeapon(10, this.deer.displayObject.transform.position, !1);
  							break;
  						case 1:
  							this.dropWeapon(3, this.deer.displayObject.transform.position, !1);
  							break;
  						case 2:
  							this.dropWeapon(9, this.deer.displayObject.transform.position, !1);
  							break;
  						case 3:
  							this.dropWeapon(4, this.deer.displayObject.transform.position, !1);
  							break;
  						case 4:
  							this.dropWeapon(6, this.deer.displayObject.transform.position, !1);
  					} else this.dropWeapon(6, this.deer.displayObject.transform.position, !0);
  				this.deer && (this.deer.weaponArrs = []), this.gameScript = this.scene.scene.addComponent(Zs), this.cameraScript = this.scene.scene.addComponent($s), this.cameraScript.cAnchorFollow(Oa.cameraControl, this.deer.attedPosSp, hs.instance.ui.m_touchView, Da.cameraControlToDeerOffset), this.cameraScript.deerView(), Oa.cameraControl.transform.localRotationEuler = new Laya.Vector3(-38, -60, 0), this._showDeerPart(this.deer.displayObject), this.skinEffect();
  			})
  		}
  		_showDeerPart(t) {
  			console.log("显示和隐藏部件");
  			let e = le.findChild(t, "lujiao");
  			switch (this._showOrHideDeerPart(t, "shengdan_01", !1), this._showOrHideDeerPart(t, "shengdan_02", !1), this._showOrHideDeerPart(t, "shengdan_03", !1), this._showOrHideDeerPart(t, "shengdan_04", !1), this._showOrHideDeerPart(t, "shengdan_05", !1), this._showOrHideDeerPart(t, "shengdan_06", !1), this._showOrHideDeerPart(t, "zhaocai_01", !1), this._showOrHideDeerPart(t, "zhaocai_02", !1), this._showOrHideDeerPart(t, "zhaocai_03", !1), this._showOrHideDeerPart(t, "zhaocai_04", !1), this._showOrHideDeerPart(t, "zhaocai_05", !1), this._showOrHideDeerPart(t, "zhaocai_06", !1), ot.instance.isAntlerEnable ? e.active = !1 : e.active = !0, ot.instance.currentSkinId) {
  				case 1:
  					console.log("该套装没有显示部件"), e.active = !0;
  					break;
  				case 2:
  					this._showOrHideDeerPart(t, "zhaocai_01", ot.instance.isAntlerEnable), this._showOrHideDeerPart(t, "zhaocai_02", ot.instance.iscollarEnable), this._showOrHideDeerPart(t, "zhaocai_03", ot.instance.isclothesEnable), this._showOrHideDeerPart(t, "zhaocai_04", ot.instance.islegsEnable), this._showOrHideDeerPart(t, "zhaocai_05", ot.instance.isfeetEnable), this._showOrHideDeerPart(t, "zhaocai_06", ot.instance.istailEnable);
  					break;
  				case 3:
  					this._showOrHideDeerPart(t, "shengdan_01", ot.instance.isAntlerEnable), this._showOrHideDeerPart(t, "shengdan_02", ot.instance.iscollarEnable), this._showOrHideDeerPart(t, "shengdan_03", ot.instance.isclothesEnable), this._showOrHideDeerPart(t, "shengdan_04", ot.instance.islegsEnable), this._showOrHideDeerPart(t, "shengdan_05", ot.instance.isfeetEnable), this._showOrHideDeerPart(t, "shengdan_06", ot.instance.istailEnable);
  			}
  		}
  		_showOrHideDeerPart(t, e, i) {
  			let s = le.findChild(t, e);
  			s && (s.active = i);
  		}
  		endGame() {
  			this.clear(), this.scene = Aa.instance.getSceneByLv(de.instance.levelId), this.scene.clearScene();
  		}
  		RemoveAvoidLP(t) {
  			let e = this.avoidLS.indexOf(t);
  			e >= 0 && this.avoidLS.splice(e, 1);
  		}
  		clear() {
  			Oa.gameOver = !1, ws.instance.clear(), Oe.instance.resetTask(), ii.clearAll(), this.gameScript && this.gameScript.destroy(), this.gameScript = null, this.cameraScript && this.cameraScript.destroy(), this.cameraScript = null, this.policeBorns.forEach(t => {
  				t.stopAni();
  			}), this.policeBorns = [], this.builds.forEach(t => {
  				t && t.dispose();
  			}), this.builds = [], this.blockBuilds = [], this.avoidLS = [], this.cars.forEach(t => {
  				t && t.dispose();
  			}), this.cars = [], this.initMonster.forEach(t => {
  				t && t.dispose();
  			}), this.initMonster = [], this.peoples = [], this.cattles = [], this.canHandLifes.forEach(t => {
  				t.dispose();
  			}), this.canHandLifes = [], this.deerPeoples = [], this.canHandLife = null, this.weapons.forEach(t => {
  				t.dispose();
  			}), this.weapons = [], this.deer && this.deer.dispose(), this.deer = null, this.polices && this.polices.forEach(t => {
  				t && t.dispose();
  			}), this.polices = [], this.otherMonster && this.otherMonster.forEach(t => {
  				t && t.dispose();
  			}), this.otherMonster = [], Oa.cameraControl.transform.localRotationEuler = new Laya.Vector3(0, 180, 0), Da.useOimo && $e.instance.clearRig(), this.allBuildCollisionNum = 0, null != this.mechaTriggerCattle && this.mechaTriggerCattle.dispose(), null != this.mechaTriggerCattle && this.mechaTriggerDeer.dispose();
  		}
  		randomDropWeapon(t) {
  			let e = Je.instance.getRandomDropWeapon();
  			this.dropWeapon(e.id, t);
  		}
  		dropWeapon(t, e, i = !1) {
  			let s = v.data[t],
  				a = this.getWeaponByType(s.type);
  			return this.weapons.push(a), i && ((e = e.clone())
  				.x += 5 * (.5 - Math.random()), e.z += 5 * (.5 - Math.random())), a.initWeapon(s, null, L.friendly, e), a
  		}
  		getWeaponByType(t) {
  			switch (t) {
  				case ki.sword:
  					return new As;
  				case ki.AK:
  					return new ea;
  				case ki.handGun:
  					return new ia;
  				case ki.cases:
  					return new aa;
  				case ki.NearFight:
  					return new na;
  				case ki.DeerFist:
  					return new oa;
  				case ki.snipe:
  					return new ga;
  				case ki.laser:
  					return new fa;
  				case ki.machine:
  					return new ya;
  				case ki.Rifle:
  					return new Ca
  			}
  		}
  		getMonsterByType(t, e) {
  			switch (t) {
  				case Ge.Bear:
  					return new ha(e);
  				case Ge.Fly:
  					return new _a(e);
  				case Ge.People:
  					return new Gi(e);
  				case Ge.Rabbit:
  					return new hi(e);
  				case Ge.Sheep:
  					return new ua(e);
  				case Ge.Kun:
  					return new da(e);
  				case Ge.Elephant:
  					return new ma(e);
  				case Ge.Panda:
  					return new pa(e);
  				case Ge.cattle:
  					return new La(e);
  				case Ge.dogBoss:
  					return new Mi(e)
  			}
  		}
  		offPolice(t) {
  			let e = Pa.instance.polices.indexOf(t);
  			e >= 0 && (Pa.instance.polices.splice(e, 1), Pa.instance.polices.length <= 0 && (o.instance.event3d(f.PolicesOver), oi.instance.playSound(Ne.killPolice)));
  		}
  		_producePolice() {
  			let t = h.RandomInt(0, this.policeBorns.length);
  			this.policeBorns[t].producePolice();
  		}
  		_initPlane() {
  			let t = this.scene.prefabs[C.plane][0];
  			t && t._children.forEach(t => {
  				let e = c.getPhysicComponent(t);
  				if (e && (e.collisionGroup = ue.Plane, Da.useOimo)) {
  					let i = e.colliderShape,
  						s = $e.instance.CreateBoxFromObj($e.instance.oimoWorld, t.transform, i, !1, !0, !1);
  					$e.instance.setCollideData(s, ue.Plane);
  				}
  			});
  		}
  		_initBuilds() {
  			this.builds = [], Me.dataList.forEach(t => {
  				let e = this.scene.prefabs[t.prefabName],
  					i = "Building_23" == t.prefabName || "Building_24" == t.prefabName || "Building_25" == t.prefabName;
  				e && e.forEach(e => {
  					let s = new si(e);
  					i && (s.__avoid = 4, this.avoidLS.push(s)), s.setBuildConfig(t), this.builds.push(s), s.isBlock && this.blockBuilds.push(s);
  				});
  			});
  		}
  		DestoryBuild(t) {
  			let e = this.blockBuilds.indexOf(t);
  			e < 0 || this.blockBuilds.splice(e, e + 1), oi.instance.playSound("rifle"), o.instance.event3d(f.BuildDestroy);
  		}
  		_initCar() {
  			this.cars = [];
  			let t = js.dataList,
  				e = this.scene.prefabs[C.allCarRoad][0];
  			t.forEach(t => {
  				if ("Horse" == t.carPrefabName || "Zebra" == t.carPrefabName || "Horse_01" == t.carPrefabName) {
  					let e = this.scene.prefabs[t.carPrefabName];
  					e && e.forEach(e => {
  						new gs(e)
  							.setCarConfig(t);
  					});
  				} else if ("cattle" == t.carPrefabName) {
  					let e = this.scene.prefabs[t.carPrefabName];
  					e && e.forEach(e => {
  						let i = new vs(e);
  						i.setCarConfig(t);
  						let s = this.scene.prefabs[C.MonsterRoad][0].getChildByName("road_5");
  						i.setRoute(s), this.cars.push(i);
  					});
  				} else if ("Mecha" == t.carPrefabName) {
  					let e = this.scene.prefabs[t.carPrefabName];
  					e && e.forEach(e => {
  						let i = new Ss(e);
  						i.setCarConfig(t), null != Oe.instance.taskVo && Oe.instance.taskVo.taskConfig.taskType < 10 ? i.displayObject.active = !1 : ot.instance.isHaveMecha || (i.displayObject.active = !1), this.cars.push(i);
  					});
  				} else {
  					let i = this.scene.prefabs[t.carPrefabName];
  					i && i.forEach(i => {
  						let s = i.name,
  							a = null;
  						if (s.indexOf("sport") >= 0) {
  							let t = s.charAt(s.length - 1);
  							a = e.getChildByName("road_" + t);
  						}
  						let n = new ms(i);
  						this.avoidLS.push(n), n.__avoid = 10, n.setRoute(a), n.setCarConfig(t), this.cars.push(n);
  					});
  				}
  			});
  		}
  		_initYun() {
  			this.scene.prefabs[C.yuncai][0]._children.forEach(t => {
  				t.layer = 0;
  			});
  		}
  		_initMechaTrigger() {
  			let t = this.scene.prefabs[C.mechaTriggerDeer][0];
  			this.mechaTriggerDeer = new Ia(t);
  			let e = this.scene.prefabs[C.mechaTriggerCattle][0];
  			this.mechaTriggerCattle = new ka(e);
  		}
  		_initMonster() {
  			this.peoples = [];
  			let t = k.dataList,
  				e = this.scene.prefabs[C.MonsterRoad][0];
  			t.forEach(t => {
  				let i = this.scene.prefabs[t.prefabName];
  				i && i.forEach(i => {
  					let s = this.getMonsterByType(t.type, i);
  					if (!s) return;
  					t.type == Ge.People ? this.peoples.push(s) : t.type == Ge.cattle ? this.cattles.push(s) : this.otherMonster.push(s), this.initMonster.push(s), s.setMonsterVo(Je.instance.getMonsterVoById(t.id));
  					let a = i.name,
  						n = null;
  					if (a.indexOf("sport") >= 0) {
  						let t = a.charAt(a.length - 1);
  						n = e.getChildByName("road_" + t), s.setFlyRoute(n);
  					}
  				});
  			});
  		}
  		_initBorns() {
  			this.policeBorns = [];
  			let t = this.scene.prefabs[C.PoliceBorn];
  			t && t.forEach(t => {
  				let e = new wa;
  				e.initDisplay(t), this.policeBorns.push(e);
  			});
  		}
  		_onPickUpWeapon() {
  			let t = this.gameScript.getCanDropWeapon();
  			if (t && this.deer) {
  				this.deer.wearWeapon(t);
  				let e = this.weapons.indexOf(t);
  				if (this.weapons.splice(e, 1), t.weaponConfig.putInHand) {
  					let e = this.weapons.indexOf(t);
  					this.canHandLifes.splice(e, 1);
  				}
  			}
  		}
  		skinEffect() {
  			if (ot.instance.isActiveEffect) switch (ot.instance.currentSkinId) {
  				case 1:
  					console.log("该套装没有皮肤效果");
  					break;
  				case 2:
  					this._zhaoCaiEffect(), console.log("激活招财套装效果,死亡之后游戏没进行1分钟，获得10金币");
  					break;
  				case 3:
  					this._shengDanEffect(), console.log("激活圣诞套装效果，没一分钟获得一个圣诞礼物");
  			}
  		}
  		_zhaoCaiEffect() {
  			Laya.timer.loop(1e3, this, () => {
  				this.skinTimerNum++;
  			});
  		}
  		_shengDanEffect() {
  			console.log("获得圣诞礼物"), Laya.timer.loop(6e4, this, this.randomDropWeapon, [this.deer.displayObject.transform.position]);
  		}
  		_onTurnOffWeapon() {
  			if (this.deer) {
  				let t = this.deer.disNewWeapon();
  				this.weapons.push(t), t.weaponConfig.putInHand && this.canHandLifes.push(t);
  			}
  		}
  		_initDeer() {
  			let t = this.scene.prefabs[C.Deer][0];
  			this.deer = new Js(t);
  		}
  		_initCamera() {}
  		_initLight() {
  			Oa.light;
  		}
  	}
  	class Aa {
  		constructor() {
  			this._levelConfig = {}, this._scenes = [];
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Aa), this._instance
  		}
  		initConfig() {
  			let t = E.config_url(),
  				e = R.Get(t, !0);
  			if (e.root)
  				for (let t = 0; t < e.root.length; t++) {
  					let i = e.root[t];
  					this._levelConfig[i.name] = i;
  				}
  			Laya.loader.clearRes(t);
  		}
  		initCamera(t) {
  			let e = this._levelConfig.camera;
  			e && this.initNode(t, e);
  		}
  		initLight(t) {
  			let e = this._levelConfig.light;
  			e && this.initNode(t, e);
  		}
  		Preload(t) {
  			t.push(E.config_url());
  			let e = this.getSceneByLv(de.instance.levelId)
  				.scenePrefabUrl();
  			t.push.apply(t, e);
  		}
  		preloadSceneRes(t) {
  			this.getSceneByLv(t)
  				.loadRes();
  		}
  		gameWin() {
  			Laya.timer.clearAll(Pa), o.instance.event3d(f.GameWin);
  		}
  		gameFail() {
  			Laya.timer.clearAll(Pa), o.instance.event3d(f.GameFail);
  		}
  		getNowScene() {
  			return this.getSceneByLv(de.instance.levelId)
  		}
  		getSceneByLv(t) {
  			let e = y.data[t];
  			e || console.error("不存在此关卡--", t);
  			let i = e.sceneName;
  			return this._scenes[i] || (this._scenes[i] = new G(this._levelConfig[i])), this._scenes[i]
  		}
  		getLvResName(t) {
  			return this.getSceneByLv(t)
  				.scenePrefabResName()
  		}
  		getLvResUrl(t) {
  			return this.getSceneByLv(t)
  				.scenePrefabUrl()
  		}
  		initNode(t, e) {
  			t.name = e.name, t.transform.localPosition = this._parseVector3(e.position), t.transform.localRotationEuler = this._parseVector3(e.euler), t.transform.localScale = this._parseVector3(e.scale);
  		}
  		_parseVector3(t) {
  			var e = t.split(",");
  			return new Laya.Vector3(Number(e[0]), Number(e[1]), Number(e[2]))
  		}
  	}! function(t) {
  		t.JPG = "jpg", t.PNG = "png";
  	}(Hs || (Hs = {}));
  	class Oa {
  		static InitAll() {
  			Da.support3D && (this.s3d = Laya.stage.addChildAt(new Laya.Scene3D, 0), this.s3d.physicsSimulation.continuousCollisionDetection = !0, this.cameraControl = new Laya.Sprite3D, this.camera = new Laya.Camera, this.cameraControl.addChild(this.camera), this.camera.fieldOfView = 50, this.s3d.addChild(this.cameraControl), Aa.instance.initCamera(this.camera), this.light = new Laya.DirectionLight, this.s3d.addChild(this.light), Aa.instance.initLight(this.light), Da.useOimo, this.camera.removeAllLayers(), this.camera.addLayer(0)), Oa.blackMat = this.createMat("#000000"), Oa.grayMat = this.createMat("#00BFFF"), Oa.yellowMat = this.createMat("#FFFF00"), Oa.redMat = this.createMat("#FF6347"), Oa.blueMat = this.createMat("#4169E1"), Oa.greenMat = this.createMat("#006400"), Oa.purpleMat = this.createMat("#D8BFD8"), Oa.yellowPlugMat = this.createMat("#FFFF00"), Oa.redPlugMat = this.createMat("#ff0000"), Oa.bluePlugMat = this.createMat("#0000ff"), Oa.greenPlugMat = this.createMat("#00ff00"), o.instance.onUI(i.GamePasue, this, this._changePlay, [!1]), o.instance.onUI(i.GameResume, this, this._changePlay, [!0]);
  		}
  		static get gameOverOrPause() {
  			return this.pause || this.gameOver
  		}
  		static _changePlay(t) {
  			this.pause = !t;
  		}
  		static _addSkyBox() {
  			this.camera.clearFlag = Laya.CameraClearFlags.Sky, Laya.Texture2D.load(E.img_url("skyBox", Hs.JPG), Laya.Handler.create(this, t => {
  				let e = Oa.s3d.skyRenderer,
  					i = new Laya.SkyPanoramicMaterial;
  				i.panoramicTexture = t, e.material = i;
  			}));
  		}
  		static createMat(t) {
  			var e = new Laya.BlinnPhongMaterial;
  			return e.shininess = .01, e.albedoIntensity = .5, e.albedoColor = c.hexToRgba01(t), e
  		}
  	}
  	class Ra extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "levelItem")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_c2 = this.getControllerAt(1), this.m_bg = this.getChildAt(0), this.m_lvImg = this.getChildAt(1), this.m_lock = this.getChildAt(2), this.m_jiangli = this.getChildAt(15), this.m_jiangliText = this.getChildAt(16), this.m_jiangli2 = this.getChildAt(17), this.m_jiangli2text = this.getChildAt(18);
  		}
  	}
  	Ra.URL = "ui://kk7g5mmmlgqv45";
  	class Da {}
  	Da.enableStat = !1, Da.comToClass = {
  		RockerCom: class extends n {
  			constructor() {
  				super(...arguments), this.curTouchId = 0, this.isDown = !1, this.angle = -1, this._dire = new Laya.Vector3, this.dragForce = new Laya.Vector3, this.radians = -1, this.isleftControl = !0, this.dis = 128, this.keyTemp = new Laya.Vector3;
  			}
  			onConstruct() {
  				super.onConstruct(), this.setTouchSprite(this.displayObject), Oa.rocker = this, o.instance.eventUI(i.RockerInit);
  			}
  			setTouchSprite(t) {
  				this.offEvent(), this.touchRect = t, this.touchRect.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown), Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp), Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseUp), Laya.Browser.onPC && (Laya.stage.on(Laya.Event.KEY_PRESS, this, this.onKeyPress), Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp)), this.originPiont = new Laya.Point(this.width / 2, this.height / 2);
  			}
  			offEvent() {
  				Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.onMove), Laya.stage.off(Laya.Event.MOUSE_UP, this, this.onMouseUp), Laya.stage.off(Laya.Event.MOUSE_OUT, this, this.onMouseUp), Laya.stage.off(Laya.Event.KEY_PRESS, this, this.onKeyPress), Laya.stage.off(Laya.Event.KEY_UP, this, this.onKeyUp), this.touchRect && this.touchRect.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown);
  			}
  			dispose() {
  				this.offEvent(), super.dispose();
  			}
  			stopRockerView() {
  				this.isDown = !1, Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.onMove), this.m_item.m_knob.setXY(this.width / 2, this.height / 2), this.radians = this.angle = -1, this.dragForce.toDefault(), this._dire.toDefault();
  			}
  			onMouseDown(t) {
  				this.curTouchId = t.touchId, this.isDown = !1, Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMove), this.onMove(t), o.instance.eventUI(i.RockerMove);
  			}
  			onKeyUp() {
  				Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.W) || Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.S) || Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.A) || Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.D) || (this.keyTemp.setValue(0, 0, 0), this.keyTemp.cloneTo(this._dire));
  			}
  			onKeyPress(t) {
  				this.keyTemp.setValue(0, 0, 0), Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.W) && (this.keyTemp.z = -1), Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.S) && (this.keyTemp.z = 1), Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.A) && (this.keyTemp.x = -1), Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.D) && (this.keyTemp.x = 1), Laya.Vector3.normalize(this.keyTemp, this.keyTemp), this.keyTemp.cloneTo(this._dire);
  			}
  			onMouseUp(t) {
  				t.touchId == this.curTouchId && this.stopRockerView();
  			}
  			onMove(t) {
  				if (t.touchId != this.curTouchId) return;
  				this._locationPos = this.displayObject.globalToLocal(new Laya.Point(t.stageX, t.stageY), !1), this.m_item.m_knob.setXY(this._locationPos.x, this._locationPos.y), this.deltaX = this._locationPos.x - this.originPiont.x, this.deltaY = this._locationPos.y - this.originPiont.y;
  				var e = this.deltaX * this.deltaX,
  					i = this.deltaY * this.deltaY;
  				this.angle = 180 * Math.atan2(this.deltaX, this.deltaY) / Math.PI;
  				let s = c.direOneDis(this.originPiont, this._locationPos);
  				if (this.dragForce.x = s.x || 0, this.dragForce.z = s.y || 0, this.angle < 0 && (this.angle += 360), this.angle = Math.round(this.angle), this.radians = Math.PI / 180 * this.angle, e + i >= this.dis * this.dis) {
  					var a = Math.floor(Math.sin(this.radians) * this.dis + this.originPiont.x),
  						n = Math.floor(Math.cos(this.radians) * this.dis + this.originPiont.y);
  					this.m_item.m_knob.setXY(a, n);
  				} else this.m_item.m_knob.setXY(this._locationPos.x, this._locationPos.y);
  				this._dire.x = this.m_item.m_knob.x - this.originPiont.x, this._dire.z = this.m_item.m_knob.y - this.originPiont.y;
  			}
  			get dire() {
  				return this._dire
  			}
  			dragDis() {
  				if (this._locationPos && this.originPiont) return this._locationPos.distance(this.originPiont.x, this.originPiont.y)
  			}
  		},
  		bloodBar: ji,
  		levelItem: class extends Ra {
  			static createInstance() {
  				return e.UIPackage.createObject("Main", "levelItem")
  			}
  			setData(t) {
  				this.levelVo = t;
  				let e = t.taskVo.taskConfig;
  				this.m_c2.selectedIndex = e.id - 1, this.m_jiangli.url = E.levelIcon_url("" + e.rewardType), this.m_jiangliText.text = e.rewardtxt, this.m_lvImg.url = E.levelIcon_url(e.icon), e.id <= ot.instance.taskPro ? (this.m_c1.selectedIndex = 0, this.m_bg.enabled = !0, this.m_lvImg.enabled = !0) : (this.m_c1.selectedIndex = 1, this.m_bg.enabled = !1, this.m_lvImg.enabled = !1, this.m_jiangli.visible = !1, this.m_jiangliText.visible = !1);
  			}
  			canPlay() {
  				return 0 == this.m_c1.selectedIndex && this.levelVo.taskVo.taskConfig.open
  			}
  		}
  	}, Da.gravity = -10, Da.support2D = !1, Da.support3D = !0, Da.useOimo = !0, Da.carUseOimo = !0, Da.oimoView = !1, Da.cameraControlToDeerOffset = new Laya.Vector3(0, .8, 0), Da.bulletRange = 200, Da.bulletDisTime = 1, Da.attRotateSpeed = 1, Da.canPickUpWeapon = 2, Da.canHandLife = 2, Da.attedTime = 100, Da.cameraControlSpeed = .4, Da.cameraControlXMaxR = 100, Da.cameraControlXMinR = -100, Da.crossFarDis = 40, Da.hpDownTime = .5, Da.hpDisTime = 1.5, Da.crossRange = 2, Da.peopleFollowDis = 3, Da.turnOffWTime = 2, Da.turnOffBackTime = .3, Da.deerOpenTurn = !0, Da.deerRotateSpeed = 3, Da.deerCrazyRotateSpeed = 10, Da.deerMoveTurnSpeed = .05, Da.deerCrazyMoveTurnSpeed = .03, Da.deerMinRunSpeed = 35, Da.deerMoveSpeed = .08, Da.deerCrazyMoveSpeed = .2, Da.deerJumpMoveSpeed = .08, Da.deerCrazyJumpMoveSpeed = .15, Da.deerDownSpeed = 75, Da.deerCrazyDownSpeed = 55, Da.switchCrazyDeerDis = 2, Da.alwayFowardSpeed = .01, Da.deerCrazyH = 25, Da.deerNormalH = 17, Da.deerMoveToRunTime = 500, Da.deerRMinRiao = 50, Da.normalDeerCH = 1, Da.neckDeerCH = 0, Da.hToCasesDis = 1, Da.casesBoomTime = 4, Da.buildBoomDisTime = 4, Da.buildBoomSpeed = 18, Da.carSelfRRadio = .01, Da.carTurnOffR = 30, Da.sheepRepelSpeed = 5, Da.sheepRepelRSpeed = 2, Da.monsterRotateSpeed = 2, Da.canContralPeopleDis = 4, Da.crossUITweenTime = 50, Da.refreshInterval = 1e3, Da.rabitAimTime = 500, Da.monsterCanViewDis = 200, Da.whaleAttDisSqr = 12100;
  	class xa {
  		constructor() {
  			this._states = new z;
  		}
  		get count() {
  			return this._states.length
  		}
  		Add(t) {
  			this._states.set(t.id, t);
  		}
  		Remove(t) {
  			return this._states.remove(t)
  		}
  		RemoveAll() {
  			this._states.clear(), this.currState = null;
  		}
  		ExitCurrState(t = null) {
  			null != this.currState && (this.currState.OnExit(null, t), this.currState = null);
  		}
  		ChangeState(t, e = null) {
  			console.log("切换场景", t);
  			var i = this.Find(t);
  			return console.log("场景", i), console.log("当前场景", this.currState), null != i ? (null != this.currState && this.currState.OnExit(i, e), this.lastState = this.currState, this.currState = i, i.OnEnter(this.lastState, e), !0) : (console.error("不存在的状态ID:" + t), !1)
  		}
  		LogicUpdate(t) {
  			let e = this.currState.GetNextState();
  			0 != e && this.ChangeState(e), this.OnRunning(null, t);
  		}
  		OnRunning(t, e) {
  			null != this.currState && this.currState.OnRunning(t, e);
  		}
  		Find(t) {
  			return this._states.get(t)
  		}
  	}
  	class Ba {
  		constructor() {
  			this.appId = "", this.appKey = "", this.bannerId = "", this.rewardVideoId = "", this.interstitialId = "", this.nativeId = "", this.nativeBannerIds = [], this.nativeIconIds = [], this.nativeinterstitialIds = [], this.nativeinpageIds = [];
  		}
  	}
  	class Ma {}
  	Ma.version = "0.0.1";
  	class Ta {
  		constructor() {
  			this._adDict = new z;
  		}
  		InitADs(t, e) {
  			this._adDict[t] = e, console.log("广告位置信息初始化完成,位置ID:", t, "广告信息:", e), Laya.stage.event(H.SELF_AD_INITED, t);
  		}
  		HandleClickAd(t) {}
  		RecordShow(...t) {}
  		GetADListByLocationId(t) {
  			return this._adDict[t]
  		}
  	}
  	class Ua {
  		static SendPro(t, e = null, i = null, s = "get", a = null, n = "json", o = ["Content-Type", "application/json"]) {
  			let r = new Laya.HttpRequest;
  			r.http.timeout = 1e4, null != e && r.once(Laya.Event.COMPLETE, e.caller, e.method), null != i && r.once(Laya.Event.ERROR, i.caller, i.method), r.send(t, JSON.stringify(a), s, n, o), this.enableDebug && console.log(t, a, s, n, o);
  		}
  		static Send(t, e = null, i = null, s = !1, a = null, n = "text", o) {
  			let r = t.split(this._url_split),
  				h = r[0],
  				l = r[1];
  			if (null == l && (l = ""), s) {
  				if (null != a) {
  					j.IsNullOrEmpty(l) || (l += this._param_split);
  					for (let t in a) l += t + this._value_split + a[t] + this._param_split;
  					l = l.slice(0, l.length - 1);
  				}
  				let t = h;
  				j.IsNullOrEmpty(l) || (t = h + this._url_split + l), this.SendPro(t, e, i, this._get_method, null, n, o);
  			} else {
  				if (!j.IsNullOrEmpty(l)) {
  					null == a && (a = {});
  					let t = l.split(this._param_split);
  					for (let e of t) {
  						let t = e.split(this._value_split);
  						a[t[0]] = t[1];
  					}
  				}
  				this.SendPro(h, e, i, this._post_method, a, n, o);
  			}
  		}
  	}
  	Ua._post_method = "post", Ua._get_method = "get", Ua._url_split = "?", Ua._param_split = "&", Ua._value_split = "=", Ua.enableDebug = !1;
  	class Va {
  		constructor() {
  			this.uid = "sdk_test";
  		}
  		Init(t, e, i, s) {
  			this.checkState = p.Normal, this.isADConfigInited = !0, this.isADEnable = !0, this.isConfigEnable = !0, this.flg = t, this.channel = e, this.controlVersion = i, this.appId = s, this.adManager = new Ta, this._RequestCheckState(), console.log("SDK:Init", this);
  		}
  		_RequestCheckState() {}
  		Login(t, e) {
  			console.log("SDK:Login", t, e);
  		}
  		RequestRemoteConfig() {
  			console.log("SDK:RequestRemoteConfig");
  		}
  		RequestADList() {
  			console.log("SDK:RequestADList");
  		}
  	}
  	class Ea {
  		constructor() {
  			this.screenOrientation = t.Landscape;
  		}
  		get _currentState() {
  			return this._fsm.currState
  		}
  		get designWidth() {
  			switch (this.screenOrientation) {
  				case t.Portrait:
  					return 750;
  				case t.Landscape:
  					return 1468;
  				default:
  					return console.error("未处理的屏幕初始化方向", this.screenOrientation), 0
  			}
  		}
  		get designHeight() {
  			switch (this.screenOrientation) {
  				case t.Portrait:
  					return 1468;
  				case t.Landscape:
  					return 750;
  				default:
  					return console.error("未处理的屏幕初始化方向", this.screenOrientation), 0
  			}
  		}
  		InitGame() {
  			he.CreateInstance(), console.log("游戏开始初始化,当前框架版本号", Ma.version), this._Init();
  		}
  		_Init() {
  			let t = new Ba;
  			this._HandleInitPlatform(he.instance.platform, t), he.instance.Init(t), this._HandleSDK(), K.isInited || K.CreateInstace(Va, "default", "default"), this.setGui(), q.Init(he.instance.safeArea), Laya.timer.frameOnce(1, this, this._NextFramUpdate);
  		}
  		setGui() {
  			e.UIObjectFactory.setComponentItemClass(0, e.GImage), e.UIObjectFactory.setComponentItemClass(1, e.GMovieClip), e.UIObjectFactory.setComponentItemClass(3, e.GGraph), e.UIObjectFactory.setComponentItemClass(4, e.GLoader), e.UIObjectFactory.setComponentItemClass(5, e.GGroup), e.UIObjectFactory.setComponentItemClass(6, e.GTextField), e.UIObjectFactory.setComponentItemClass(7, e.GRichText), e.UIObjectFactory.setComponentItemClass(8, e.GTextInput), e.UIObjectFactory.setComponentItemClass(9, e.GComponent), e.UIObjectFactory.setComponentItemClass(10, e.GList), e.UIObjectFactory.setComponentItemClass(11, e.GLabel), e.UIObjectFactory.setComponentItemClass(12, e.GButton), e.UIObjectFactory.setComponentItemClass(13, e.GComboBox), e.UIObjectFactory.setComponentItemClass(14, e.GProgressBar), e.UIObjectFactory.setComponentItemClass(15, e.GSlider), e.UIObjectFactory.setComponentItemClass(16, e.GScrollBar);
  		}
  		_NextFramUpdate() {
  			this._fsm = new xa, this._InitFsm(), 0 != this._fsm.count ? (this._fsm.ChangeState(1), this._RegistUpdate()) : console.error("请在_InitFsm中先进行状态注册");
  		}
  		_RegistUpdate() {
  			Xe.instance.AddAction(xe.Update, this, this._LogicUpdate), Xe.instance.AddAction(xe.LateUpdate, this, this._LateUpdate);
  		}
  		_UnRegistUpdate() {
  			Xe.instance.RemoveAction(xe.Update, this, this._LogicUpdate), Xe.instance.RemoveAction(xe.LateUpdate, this, this._LateUpdate);
  		}
  		_HandleSDK() {}
  		_HandleInitPlatform(t, e) {}
  		_LogicUpdate() {
  			let t = Laya.timer.delta / 1e3,
  				e = this._currentState.GetNextState();
  			if (0 != e && !this._fsm.ChangeState(e, null)) return console.error("场景切换发生错误,无法进行切换,终止游戏流程"), void this._UnRegistUpdate();
  			this._fsm.OnRunning(null, t);
  		}
  		_LateUpdate() {
  			let t = Laya.timer.delta / 1e3;
  			this._currentState.OnLateUpdate(t);
  		}
  		_InitFsm() {}
  	}
  	class Ga {
  		static get needLoadCount() {
  			return this._configList.length
  		}
  		static AddConfig(t) {
  			Ga._configList.push(t);
  		}
  		static StartLoad(t, e = null) {
  			if (0 != Ga._configList.length) {
  				var i = [];
  				for (let t of Ga._configList) i.push(t.path);
  				i.push(E.config_url()), Laya.loader.create(i, Laya.Handler.create(this, () => {
  					for (let t of Ga._configList) {
  						t.data = Laya.loader.getRes(t.path), t.dataList = [];
  						for (let e in t.data) {
  							let i = t.data[e];
  							null != i && t.dataList.push(i);
  						}
  						t.dataList.length > 0 && (t.lastData = t.dataList[t.dataList.length - 1]);
  					}
  					t && t.run();
  				}), e);
  			} else t && t.run();
  		}
  	}
  	Ga._configList = [],
  		function(t) {
  			t[t.None = 0] = "None", t[t.Splash = 1] = "Splash", t[t.Main = 2] = "Main";
  		}(Ws || (Ws = {}));
  	class ja {
  		constructor(t) {
  			this.id = t;
  		}
  		GetNextState() {
  			return this.isFinished ? this.nextState : 0
  		}
  		OnEnter(t, e) {
  			this.isFinished = !1, this.nextState = 0, this.passTime = 0, this.deltaTime = 0, this._DoEnter(t, e);
  		}
  		OnRunning(t, e) {
  			this.isFinished || (this.deltaTime = e, this.passTime += e, this._DoRunning(t));
  		}
  		OnExit(t, e) {
  			this._DoExit(t, e);
  		}
  		OnLateUpdate(t) {
  			this.isFinished || this._DoLateUpdate(t);
  		}
  		_DoLateUpdate(t) {}
  		_DoEnter(t, e) {}
  		_DoRunning(t) {}
  		_DoExit(t, e) {}
  	}! function(t) {
  		t[t.MainPack = 1] = "MainPack", t[t.SubPack = 2] = "SubPack", t[t.Remote = 3] = "Remote";
  	}(zs || (zs = {}));
  	class Na {
  		constructor() {
  			this._packs = [];
  		}
  		static get instance() {
  			return null == this._instance && (this._instance = new Na), this._instance
  		}
  		get packs() {
  			return this._packs
  		}
  		get baseUrl() {
  			return this._baseUrl
  		}
  		get _totalProgress() {
  			let t = this._subpackProgress.length,
  				e = 0;
  			for (let t of this._subpackProgress) e += t;
  			return e / t
  		}
  		InitLoadSet() {
  			if (j.IsNullOrEmpty(this._baseUrl)) return;
  			let t = null;
  			switch (he.instance.platform) {
  				case u.TT:
  				case u.WX:
  					t = Laya.MiniAdpter;
  					break;
  				case u.BD:
  					t = Laya.BMiniAdapter;
  					break;
  				case u.QQ:
  					t = Laya.QQMiniAdapter;
  					break;
  				case u.Oppo:
  					t = Laya.QGMiniAdapter;
  			}
  			if (null != t) {
  				t.nativefiles = [];
  				for (let e of this._packs) t.nativefiles.push(e.path);
  			}
  		}
  		SetRemoteUrl(t) {
  			this._baseUrl = t;
  		}
  		AddPackData(...t) {
  			t.forEach(t => {
  				this._packs.push(t);
  			});
  		}
  		LoadSubPack(t, e) {
  			this._subpackLoaded = [], this._subpackProgress = [];
  			for (let t = 0; t < this._packs.length; ++t) {
  				this._packs[t].pathType == zs.SubPack && (this._subpackLoaded.push(!1), this._subpackProgress.push(0));
  			}
  			let i = 0;
  			for (let s = 0; s < this._packs.length; ++s) {
  				let a = this._packs[s];
  				if (a.pathType == zs.SubPack) {
  					let s = i;
  					he.instance.LoadSubpackage(a.name, Laya.Handler.create(this, () => {
  						this._subpackLoaded[s] = !0;
  						for (let t = 0; t < this._subpackLoaded.length; ++t)
  							if (!this._subpackLoaded[t]) return;
  						t && t.run();
  					}), Laya.Handler.create(this, () => {
  						console.error("分包加载失败", a);
  					}), Laya.Handler.create(this, t => {
  						this._subpackProgress[s] = t, e && e.runWith(this._totalProgress);
  					}, null, !1)), i++;
  				}
  			}
  			0 == i && (e.runWith(1), t && t.run());
  		}
  	}
  	class Fa {
  		constructor(t, e = 1) {
  			this.packPath = t, this.atliasCount = e;
  		}
  		PushUrl(t) {
  			if (t.push({
  				url: this.packPath + ".bin",
  				type: Laya.Loader.BUFFER
  			}), 0 != this.atliasCount) {
  				t.push({
  					url: this.packPath + "_atlas0.png",
  					type: Laya.Loader.IMAGE
  				});
  				for (let e = 1; e < this.atliasCount; ++e) t.push({
  					url: this.packPath + "_atlas0_" + e + ".png",
  					type: Laya.Loader.IMAGE
  				});
  			}
  		}
  		AddPackage() {
  			fgui.UIPackage.addPackage(this.packPath);
  		}
  	}
  	class Ha extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "side_ads")
  		}
  		onConstruct() {
  			this.m_list = this.getChildAt(2), this.m_btn_return = this.getChildAt(3);
  		}
  	}
  	Ha.URL = "ui://75kiu87k74v84c";
  	class Wa extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "hot_game")
  		}
  		onConstruct() {
  			this.m_ic = this.getChildAt(1), this.m_anim_idle = this.getTransitionAt(0);
  		}
  	}
  	Wa.URL = "ui://75kiu87k74v84g";
  	class za extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "NativeInPage")
  		}
  		onConstruct() {
  			this.m_bg1 = this.getChildAt(0), this.m_ad = this.getChildAt(1), this.m_btn_close = this.getChildAt(2);
  		}
  	}
  	za.URL = "ui://75kiu87k92486v";
  	class Ya extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "AdInpageComp")
  		}
  		onConstruct() {
  			this.m_img = this.getChildAt(1), this.m_icon = this.getChildAt(2), this.m_tag = this.getChildAt(3), this.m_title = this.getChildAt(4), this.m_desc = this.getChildAt(5);
  		}
  	}
  	Ya.URL = "ui://75kiu87k92486w";
  	class qa extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "iconLongComp")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(0), this.m_tag = this.getChildAt(1), this.m_title = this.getChildAt(2), this.m_desc = this.getChildAt(3);
  		}
  	}
  	qa.URL = "ui://75kiu87k92486x";
  	class Ka extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "OpenAds")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_centerList = this.getChildAt(2), this.m_btn_close = this.getChildAt(3);
  		}
  	}
  	Ka.URL = "ui://75kiu87k9vu5ag";
  	class Qa extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_endshare")
  		}
  		onConstruct() {
  			this.m_btn_share = this.getChildAt(2), this.m_text_info = this.getChildAt(3), this.m_icon_reward = this.getChildAt(4), this.m_text_reward = this.getChildAt(5), this.m_btn_nothanks = this.getChildAt(6), this.m_anim_enter = this.getTransitionAt(0);
  		}
  	}
  	Qa.URL = "ui://75kiu87kbg0017";
  	class Xa extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_game_icon")
  		}
  		onConstruct() {
  			this.m_mask = this.getChildAt(1), this.m_icon = this.getChildAt(2);
  		}
  	}
  	Xa.URL = "ui://75kiu87kbg001h";
  	class Ja extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_end_games")
  		}
  		onConstruct() {
  			this.m_sharegames = this.getChildAt(1);
  		}
  	}
  	Ja.URL = "ui://75kiu87kbg001k";
  	class Za extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_title")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1);
  		}
  	}
  	Za.URL = "ui://75kiu87kbg001l";
  	class $a extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonTrySkin")
  		}
  		onConstruct() {
  			this.m_btn_thanks = this.getChildAt(2), this.m_list_item = this.getChildAt(3), this.m_btn_toggle_check = this.getChildAt(4), this.m_anim_enter1 = this.getTransitionAt(0);
  		}
  	}
  	$a.URL = "ui://75kiu87kbg001v";
  	class tn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_try_skin")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1);
  		}
  	}
  	tn.URL = "ui://75kiu87kbg0022";
  	class en extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_toggle_01")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0);
  		}
  	}
  	en.URL = "ui://75kiu87kbg002a";
  	class sn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_set")
  		}
  		onConstruct() {
  			this.m_btn_close = this.getChildAt(2), this.m_toggle_music = this.getChildAt(5), this.m_toggle_shake = this.getChildAt(6);
  		}
  	}
  	sn.URL = "ui://75kiu87kbg002b";
  	class an extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_roll")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(0), this.m_text_title = this.getChildAt(1);
  		}
  	}
  	an.URL = "ui://75kiu87kbg002q";
  	class nn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_roll_bg")
  		}
  		onConstruct() {
  			this.m_item_1 = this.getChildAt(1), this.m_item_2 = this.getChildAt(2), this.m_item_3 = this.getChildAt(3), this.m_item_4 = this.getChildAt(4), this.m_item_5 = this.getChildAt(5), this.m_item_6 = this.getChildAt(6), this.m_item_7 = this.getChildAt(7), this.m_item_8 = this.getChildAt(8);
  		}
  	}
  	nn.URL = "ui://75kiu87kbg002r";
  	class on extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonGameEgg")
  		}
  		onConstruct() {
  			this.m_noEgg = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_eggLsit = this.getChildAt(8), this.m_info = this.getChildAt(9), this.m_btn_close = this.getChildAt(10), this.m_txt_eggName = this.getChildAt(11), this.m_txt_getState = this.getChildAt(12), this.m_btn_getSec = this.getChildAt(13), this.m_btn_getPass = this.getChildAt(14), this.m_txt_disable = this.getChildAt(16);
  		}
  	}
  	on.URL = "ui://75kiu87kdywvai";
  	class rn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "info")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1);
  		}
  	}
  	rn.URL = "ui://75kiu87kdywvb2";
  	class hn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_getegg")
  		}
  		onConstruct() {
  			this.m_lockState = this.getControllerAt(0);
  		}
  	}
  	hn.URL = "ui://75kiu87kdywvb3";
  	class ln extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "eggItem")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_icon = this.getChildAt(0), this.m_shake = this.getTransitionAt(0);
  		}
  	}
  	ln.URL = "ui://75kiu87kdywvb6";
  	class cn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "eggIcon")
  		}
  		onConstruct() {
  			this.m_lockState = this.getControllerAt(0), this.m_selected = this.getControllerAt(1), this.m_icon = this.getChildAt(4);
  		}
  	}
  	cn.URL = "ui://75kiu87kdywvb8";
  	class dn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "SideGames")
  		}
  		onConstruct() {
  			this.m_show = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_btn_show = this.getChildAt(1), this.m_red = this.getChildAt(2), this.m_ads = this.getChildAt(3);
  		}
  	}
  	dn.URL = "ui://75kiu87keq3z6e";
  	class un extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_one_more")
  		}
  		onConstruct() {
  			this.m_btn_close = this.getChildAt(1), this.m_icon = this.getChildAt(3), this.m_btn_normal_get = this.getChildAt(4), this.m_text_value = this.getChildAt(5), this.m_btn_double_get = this.getChildAt(6);
  		}
  	}
  	un.URL = "ui://75kiu87kgxi82w";
  	class _n extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_toggle_02")
  		}
  		onConstruct() {
  			this.m_selected = this.getControllerAt(0);
  		}
  	}
  	_n.URL = "ui://75kiu87kgxi832";
  	class mn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "NativeIcon")
  		}
  		onConstruct() {
  			this.m_icon_img = this.getChildAt(0), this.m_icon_tip = this.getChildAt(1);
  		}
  	}
  	mn.URL = "ui://75kiu87kh8ea5w";
  	class pn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "End3X3Ad")
  		}
  		onConstruct() {
  			this.m_list = this.getChildAt(1);
  		}
  	}
  	pn.URL = "ui://75kiu87ki816ae";
  	class gn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonSign")
  		}
  		onConstruct() {
  			this.m_view = this.getChildAt(1), this.m___nativeinpage = this.getChildAt(2);
  		}
  	}
  	gn.URL = "ui://75kiu87kit2ij";
  	class fn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_double_get")
  		}
  		onConstruct() {
  			this.m_btn_type = this.getControllerAt(0), this.m_bg_type = this.getControllerAt(1);
  		}
  	}
  	fn.URL = "ui://75kiu87kit2iq";
  	class yn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_sign")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_text_day = this.getChildAt(3), this.m_icon_reward = this.getChildAt(4), this.m_text_reward = this.getChildAt(5);
  		}
  	}
  	yn.URL = "ui://75kiu87kit2ix";
  	class Cn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_common_sign")
  		}
  		onConstruct() {
  			this.m_check_state = this.getControllerAt(0), this.m_signed = this.getControllerAt(1), this.m_view_day7 = this.getChildAt(3), this.m_list_day = this.getChildAt(4), this.m_toggle_watchad = this.getChildAt(5), this.m_btn_get = this.getChildAt(6), this.m_btn_close = this.getChildAt(7), this.m_btn_watchad = this.getChildAt(8);
  		}
  	}
  	Cn.URL = "ui://75kiu87kit2iy";
  	class wn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonEndSliderADs")
  		}
  		onConstruct() {
  			this.m_list = this.getChildAt(1);
  		}
  	}
  	wn.URL = "ui://75kiu87kj9at6j";
  	class Ln extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "Native320")
  		}
  		onConstruct() {
  			this.m_img = this.getChildAt(0), this.m_tag = this.getChildAt(1), this.m_icon = this.getChildAt(2), this.m_title = this.getChildAt(3), this.m_desc = this.getChildAt(4), this.m_btn_close = this.getChildAt(5);
  		}
  	}
  	Ln.URL = "ui://75kiu87kk7jc6i";
  	class bn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_normal0")
  		}
  		onConstruct() {
  			this.m_ad = this.getControllerAt(0);
  		}
  	}
  	bn.URL = "ui://75kiu87kkj717q";
  	class Sn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "SignItem")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_state = this.getControllerAt(1), this.m_bg1 = this.getChildAt(2), this.m_d7 = this.getChildAt(3), this.m_day = this.getChildAt(4), this.m_title = this.getChildAt(5), this.m_icon = this.getChildAt(6);
  		}
  	}
  	Sn.URL = "ui://75kiu87kkj717t";
  	class kn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_twoIcon")
  		}
  		onConstruct() {
  			this.m_ad = this.getControllerAt(0), this.m_anim = this.getTransitionAt(0);
  		}
  	}
  	kn.URL = "ui://75kiu87kkj7186";
  	class vn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "tog_progress")
  		}
  		onConstruct() {
  			this.m_select = this.getControllerAt(0);
  		}
  	}
  	vn.URL = "ui://75kiu87kkj7189";
  	class In extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_watch")
  		}
  		onConstruct() {
  			this.m_ad = this.getControllerAt(0);
  		}
  	}
  	In.URL = "ui://75kiu87kkj718s";
  	class Pn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "Roll")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_view_roll = this.getChildAt(1), this.m_pointer = this.getChildAt(2), this.m_btn_close = this.getChildAt(3), this.m_btn_roll = this.getChildAt(4), this.m_player = this.getChildAt(5), this.m_progress_roll = this.getChildAt(6), this.m_btn_reward = this.getChildAt(7), this.m_progress = this.getChildAt(8), this.m_lbl_count = this.getChildAt(10), this.m_text = this.getChildAt(11), this.m_tween_rotate = this.getTransitionAt(0);
  		}
  	}
  	Pn.URL = "ui://75kiu87kkj718y";
  	class An extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_roll_bg_new")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_item_1 = this.getChildAt(1), this.m_item_2 = this.getChildAt(2), this.m_item_3 = this.getChildAt(3), this.m_item_4 = this.getChildAt(4), this.m_item_5 = this.getChildAt(5), this.m_item_6 = this.getChildAt(6), this.m_item_7 = this.getChildAt(7), this.m_item_8 = this.getChildAt(8);
  		}
  	}
  	An.URL = "ui://75kiu87kkj7190";
  	class On extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "item_roll")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(0), this.m_text_title = this.getChildAt(1);
  		}
  	}
  	On.URL = "ui://75kiu87kkj7192";
  	class Rn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_rollClose")
  		}
  		onConstruct() {
  			this.m_btn_close = this.getChildAt(0);
  		}
  	}
  	Rn.URL = "ui://75kiu87kkj7195";
  	class Dn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_roll")
  		}
  		onConstruct() {
  			this.m_isFree = this.getControllerAt(0), this.m_btn_bg = this.getChildAt(0), this.m_sp_watch = this.getChildAt(1), this.m_sp_title = this.getChildAt(2);
  		}
  	}
  	Dn.URL = "ui://75kiu87kkj7197";
  	class xn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "player")
  		}
  		onConstruct() {
  			this.m_sp_player_bg = this.getChildAt(0), this.m_sp_zuanshi = this.getChildAt(1), this.m_lbl_playerMoney = this.getChildAt(2);
  		}
  	}
  	xn.URL = "ui://75kiu87kkj719b";
  	class Bn extends e.GProgressBar {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "progress_roll")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0);
  		}
  	}
  	Bn.URL = "ui://75kiu87kkj719e";
  	class Mn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_rollReward")
  		}
  		onConstruct() {
  			this.m_btn_reward = this.getChildAt(0);
  		}
  	}
  	Mn.URL = "ui://75kiu87kkj719h";
  	class Tn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "toggle_nogame")
  		}
  		onConstruct() {
  			this.m_select = this.getControllerAt(0), this.m_type = this.getControllerAt(1);
  		}
  	}
  	Tn.URL = "ui://75kiu87kkj71a2";
  	class Un extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "NativeBigAd")
  		}
  		onConstruct() {
  			this.m_img = this.getChildAt(0), this.m_tag = this.getChildAt(1), this.m_icon = this.getChildAt(2), this.m_title = this.getChildAt(3), this.m_desc = this.getChildAt(4), this.m_btn_close = this.getChildAt(5);
  		}
  	}
  	Un.URL = "ui://75kiu87kl2ax4k";
  	class Vn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "btn_normal")
  		}
  		onConstruct() {
  			this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	Vn.URL = "ui://75kiu87kl2ax4l";
  	class En extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_load")
  		}
  		onConstruct() {
  			this.m_text_load = this.getChildAt(2), this.m_rotate = this.getTransitionAt(0);
  		}
  	}
  	En.URL = "ui://75kiu87kmhase";
  	class Gn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "NativeIconLong")
  		}
  		onConstruct() {
  			this.m_bg1 = this.getChildAt(0), this.m_ad = this.getChildAt(1), this.m_btn_close = this.getChildAt(2);
  		}
  	}
  	Gn.URL = "ui://75kiu87kocvx6t";
  	class jn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "FakeBanner_V")
  		}
  		onConstruct() {
  			this.m_banner = this.getChildAt(0);
  		}
  	}
  	jn.URL = "ui://75kiu87kovsy4";
  	class Nn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "FakeRewardVideo")
  		}
  		onConstruct() {
  			this.m_btn_reward = this.getChildAt(1), this.m_btn_skip = this.getChildAt(3);
  		}
  	}
  	Nn.URL = "ui://75kiu87kovsy9";
  	class Fn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "FakeInterstital")
  		}
  		onConstruct() {
  			this.m_btn_close = this.getChildAt(2);
  		}
  	}
  	Fn.URL = "ui://75kiu87kovsyb";
  	class Hn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "EndSlideGames")
  		}
  		onConstruct() {
  			this.m_ad = this.getChildAt(0);
  		}
  	}
  	Hn.URL = "ui://75kiu87kp2ld6k";
  	class Wn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "slideAds")
  		}
  		onConstruct() {
  			this.m_list0 = this.getChildAt(0), this.m_list1 = this.getChildAt(1), this.m_list2 = this.getChildAt(2);
  		}
  	}
  	Wn.URL = "ui://75kiu87kp2ld6n";
  	class zn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_game")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1), this.m_text_name = this.getChildAt(2);
  		}
  	}
  	zn.URL = "ui://75kiu87kp2ld6o";
  	class Yn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_game140")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(0), this.m_text_name = this.getChildAt(1);
  		}
  	}
  	Yn.URL = "ui://75kiu87kp2ld6p";
  	class qn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "BonusItem")
  		}
  		onConstruct() {
  			this.m_ad = this.getControllerAt(0), this.m_isclicked = this.getControllerAt(1), this.m_icon = this.getChildAt(2), this.m_title = this.getChildAt(3), this.m_adicon = this.getChildAt(4), this.m_lock = this.getChildAt(5);
  		}
  	}
  	qn.URL = "ui://75kiu87kpknzbd";
  	class Kn extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "tog_key")
  		}
  		onConstruct() {
  			this.m_select = this.getControllerAt(0);
  		}
  	}
  	Kn.URL = "ui://75kiu87kpknzbh";
  	class Qn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_sign_big")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_text_day = this.getChildAt(3), this.m_icon_reward = this.getChildAt(4), this.m_text_reward = this.getChildAt(5);
  		}
  	}
  	Qn.URL = "ui://75kiu87kq0fh56";
  	class Xn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "item_game")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1), this.m_title = this.getChildAt(2), this.m_red = this.getChildAt(3);
  		}
  	}
  	Xn.URL = "ui://75kiu87kr3yg7b";
  	class Jn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "GameIconF")
  		}
  		onConstruct() {
  			this.m_mask = this.getChildAt(0), this.m_icon = this.getChildAt(1), this.m_title = this.getChildAt(2);
  		}
  	}
  	Jn.URL = "ui://75kiu87kr3yg7g";
  	class Zn extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "WxSideGames")
  		}
  		onConstruct() {
  			this.m_ad0 = this.getChildAt(0), this.m_ad1 = this.getChildAt(1), this.m_ad2 = this.getChildAt(2), this.m_ad3 = this.getChildAt(3);
  		}
  	}
  	Zn.URL = "ui://75kiu87kr3yg7h";
  	class $n extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "item_gameSmall")
  		}
  		onConstruct() {
  			this.m_icon = this.getChildAt(1), this.m_title = this.getChildAt(2), this.m_red = this.getChildAt(3), this.m_shake = this.getTransitionAt(0);
  		}
  	}
  	$n.URL = "ui://75kiu87kr3yg7i";
  	class to extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "CommonSign_02")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_img_content_bg = this.getChildAt(1), this.m_img_title = this.getChildAt(2), this.m_btn_watchad = this.getChildAt(3), this.m_view_day7 = this.getChildAt(4), this.m_list_day = this.getChildAt(5), this.m_toggle_watchad = this.getChildAt(6), this.m_btn_close = this.getChildAt(7);
  		}
  	}
  	to.URL = "ui://75kiu87kre3i3a";
  	class eo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_item_sign_02")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_img_current = this.getChildAt(2), this.m_text_day = this.getChildAt(3), this.m_icon_reward = this.getChildAt(4), this.m_text_reward = this.getChildAt(5);
  		}
  	}
  	eo.URL = "ui://75kiu87kre3i3i";
  	class io extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "sliderADs")
  		}
  		onConstruct() {
  			this.m_list = this.getChildAt(1);
  		}
  	}
  	io.URL = "ui://75kiu87kulgb5x";
  	class so extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "rewardPannel")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_btn_get = this.getChildAt(2), this.m_btn_close = this.getChildAt(3), this.m_img = this.getChildAt(4), this.m_txt_reward = this.getChildAt(5), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	so.URL = "ui://75kiu87kvkou6z";
  	class ao extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("LTGame", "view_sharegames_big")
  		}
  		onConstruct() {
  			this.m_img_game_bg = this.getChildAt(0), this.m_list_games = this.getChildAt(1);
  		}
  	}
  	ao.URL = "ui://75kiu87kwjpo4i";
  	class no {
  		static bindAll() {
  			e.UIObjectFactory.setPackageItemExtension(Ha.URL, Ha), e.UIObjectFactory.setPackageItemExtension(Wa.URL, Wa), e.UIObjectFactory.setPackageItemExtension(za.URL, za), e.UIObjectFactory.setPackageItemExtension(Ya.URL, Ya), e.UIObjectFactory.setPackageItemExtension(qa.URL, qa), e.UIObjectFactory.setPackageItemExtension(Ka.URL, Ka), e.UIObjectFactory.setPackageItemExtension(Qa.URL, Qa), e.UIObjectFactory.setPackageItemExtension(ft.URL, ft), e.UIObjectFactory.setPackageItemExtension(Xa.URL, Xa), e.UIObjectFactory.setPackageItemExtension(Ja.URL, Ja), e.UIObjectFactory.setPackageItemExtension(Za.URL, Za), e.UIObjectFactory.setPackageItemExtension(It.URL, It), e.UIObjectFactory.setPackageItemExtension($a.URL, $a), e.UIObjectFactory.setPackageItemExtension(tn.URL, tn), e.UIObjectFactory.setPackageItemExtension(Ot.URL, Ot), e.UIObjectFactory.setPackageItemExtension(en.URL, en), e.UIObjectFactory.setPackageItemExtension(sn.URL, sn), e.UIObjectFactory.setPackageItemExtension(xt.URL, xt), e.UIObjectFactory.setPackageItemExtension(an.URL, an), e.UIObjectFactory.setPackageItemExtension(nn.URL, nn), e.UIObjectFactory.setPackageItemExtension(mt.URL, mt), e.UIObjectFactory.setPackageItemExtension(on.URL, on), e.UIObjectFactory.setPackageItemExtension(rn.URL, rn), e.UIObjectFactory.setPackageItemExtension(hn.URL, hn), e.UIObjectFactory.setPackageItemExtension(ln.URL, ln), e.UIObjectFactory.setPackageItemExtension(cn.URL, cn), e.UIObjectFactory.setPackageItemExtension(dn.URL, dn), e.UIObjectFactory.setPackageItemExtension(dt.URL, dt), e.UIObjectFactory.setPackageItemExtension(un.URL, un), e.UIObjectFactory.setPackageItemExtension(_n.URL, _n), e.UIObjectFactory.setPackageItemExtension(it.URL, it), e.UIObjectFactory.setPackageItemExtension(st.URL, st), e.UIObjectFactory.setPackageItemExtension(mn.URL, mn), e.UIObjectFactory.setPackageItemExtension(Mt.URL, Mt), e.UIObjectFactory.setPackageItemExtension(pn.URL, pn), e.UIObjectFactory.setPackageItemExtension(gn.URL, gn), e.UIObjectFactory.setPackageItemExtension(fn.URL, fn), e.UIObjectFactory.setPackageItemExtension(yn.URL, yn), e.UIObjectFactory.setPackageItemExtension(Cn.URL, Cn), e.UIObjectFactory.setPackageItemExtension(wn.URL, wn), e.UIObjectFactory.setPackageItemExtension(Ln.URL, Ln), e.UIObjectFactory.setPackageItemExtension(ht.URL, ht), e.UIObjectFactory.setPackageItemExtension(bn.URL, bn), e.UIObjectFactory.setPackageItemExtension(Sn.URL, Sn), e.UIObjectFactory.setPackageItemExtension(Et.URL, Et), e.UIObjectFactory.setPackageItemExtension(kn.URL, kn), e.UIObjectFactory.setPackageItemExtension(vn.URL, vn), e.UIObjectFactory.setPackageItemExtension(Ut.URL, Ut), e.UIObjectFactory.setPackageItemExtension(In.URL, In), e.UIObjectFactory.setPackageItemExtension(Pn.URL, Pn), e.UIObjectFactory.setPackageItemExtension(An.URL, An), e.UIObjectFactory.setPackageItemExtension(On.URL, On), e.UIObjectFactory.setPackageItemExtension(Rn.URL, Rn), e.UIObjectFactory.setPackageItemExtension(Dn.URL, Dn), e.UIObjectFactory.setPackageItemExtension(xn.URL, xn), e.UIObjectFactory.setPackageItemExtension(Bn.URL, Bn), e.UIObjectFactory.setPackageItemExtension(Mn.URL, Mn), e.UIObjectFactory.setPackageItemExtension(Nt.URL, Nt), e.UIObjectFactory.setPackageItemExtension(Tn.URL, Tn), e.UIObjectFactory.setPackageItemExtension(Un.URL, Un), e.UIObjectFactory.setPackageItemExtension(Vn.URL, Vn), e.UIObjectFactory.setPackageItemExtension($.URL, $), e.UIObjectFactory.setPackageItemExtension(En.URL, En), e.UIObjectFactory.setPackageItemExtension(Gn.URL, Gn), e.UIObjectFactory.setPackageItemExtension(jn.URL, jn), e.UIObjectFactory.setPackageItemExtension(X.URL, X), e.UIObjectFactory.setPackageItemExtension(J.URL, J), e.UIObjectFactory.setPackageItemExtension(Nn.URL, Nn), e.UIObjectFactory.setPackageItemExtension(Fn.URL, Fn), e.UIObjectFactory.setPackageItemExtension(Hn.URL, Hn), e.UIObjectFactory.setPackageItemExtension(Wn.URL, Wn), e.UIObjectFactory.setPackageItemExtension(zn.URL, zn), e.UIObjectFactory.setPackageItemExtension(Yn.URL, Yn), e.UIObjectFactory.setPackageItemExtension(qn.URL, qn), e.UIObjectFactory.setPackageItemExtension(Kn.URL, Kn), e.UIObjectFactory.setPackageItemExtension(Qn.URL, Qn), e.UIObjectFactory.setPackageItemExtension(se.URL, se), e.UIObjectFactory.setPackageItemExtension(Yt.URL, Yt), e.UIObjectFactory.setPackageItemExtension(Xn.URL, Xn), e.UIObjectFactory.setPackageItemExtension(zt.URL, zt), e.UIObjectFactory.setPackageItemExtension(Jn.URL, Jn), e.UIObjectFactory.setPackageItemExtension(Zn.URL, Zn), e.UIObjectFactory.setPackageItemExtension($n.URL, $n), e.UIObjectFactory.setPackageItemExtension(to.URL, to), e.UIObjectFactory.setPackageItemExtension(eo.URL, eo), e.UIObjectFactory.setPackageItemExtension(wt.URL, wt), e.UIObjectFactory.setPackageItemExtension(St.URL, St), e.UIObjectFactory.setPackageItemExtension(io.URL, io), e.UIObjectFactory.setPackageItemExtension(so.URL, so), e.UIObjectFactory.setPackageItemExtension(ao.URL, ao);
  		}
  	}
  	class oo {
  		constructor() {
  			this.isDone = !1, this.isDone2 = !1, this.index = 0, this.subIndex = 1, Laya.LocalStorage.setItem("fenbao", !1);
  		}
  		getIsDone() {
  			return this.isDone
  		}
  		downloadUnzip() {
  			var t;
  			let e = this;
  			if (Laya.Browser.onWeiXin2) t = Laya.Browser.window.wx;
  			else if (Laya.Browser.onQQMiniGame) t = Laya.Browser.window.qq;
  			else if (Laya.Browser.onTTMiniGame) t = Laya.Browser.window.tt;
  			else {
  				if (!(Laya.Browser.onQGMiniGame || Laya.Browser.onVVMiniGame || Laya.Browser.onKGMiniGame)) return;
  				t = Laya.Browser.window.qg;
  			}
  			0 == Laya.onQGMiniGame ? t.showLoading({
  				title: "下载资源中…"
  			}) : t.showToast({
  				title: "加载资源中…",
  				icon: "success",
  				duration: 1e3
  			});
  			let i = Laya.LocalStorage.getItem("isDir");
  			var s = t.env.USER_DATA_PATH + "/1",
  				a = "https://bigbird.top/lu2.zip";
  			if (Laya.Browser.onQGMiniGame && (a = "https://bigbird.top/lu3.zip"), console.log("isDir", i), null == i || "" == i) {
  				t.downloadFile({
  						url: a,
  						success: function(i) {
  							a = i.tempFilePath, console.log("下载完成", a), 0 == Laya.onQGMiniGame && t.showLoading({
  									title: ":进行解压中…"
  								}), t.getFileSystemManager()
  								.unzip({
  									zipFilePath: a,
  									targetPath: s,
  									success: i => {
  										0 == Laya.onQGMiniGame && t.showLoading({
  											title: "解压完成"
  										}), t.hideLoading(), console.log("3D加载文件在", s), e.isDone2 = !0, Laya.LocalStorage.setItem("isDir", "true");
  									},
  									fail: t => {
  										console.error("解压失败 " + a), console.error(t.errMsg);
  									}
  								});
  						}
  					})
  					.onProgressUpdate(e => {
  						console.log("压缩包下载进度", e.progress), 0 == Laya.onQGMiniGame && t.showLoading({
  							title: "下载进度" + e.progress + "%"
  						}), 100 == e.progress && console.log("下载完成将解压到", s);
  					});
  			}
  		}
  		loadSubpackage() {
  			if (console.log("-----------------------加载分包----------------------------------"), Laya.Browser.onWeiXin2) {
  				var t = Laya.Browser.window.wx,
  					e = 0;
  				let s = ["res", "fgui", "Prefabs", "Prefabs1", "Prefabs2", "Prefabs3", "Prefabs4"];
  				var i = this;
  				for (let a of s) {
  					t.loadSubpackage({
  						name: a,
  						success(t) {
  							console.info(a + ":加载分包 sound 成功"), 6 == e++ && (i.isDone = !0);
  						},
  						fail(t) {
  							console.info(t);
  						}
  					});
  				}
  			} else if (Laya.Browser.onTTMiniGame2) {
  				t = Laya.Browser.window.wx, Laya.Browser.onTTMiniGame && (t = Laya.Browser.window.tt);
  				e = 0;
  				let s = ["Game", "Lwg", "Prefab", "res", "js"];
  				if (5 == (i = this)
  					.index) return void(i.isDone = !0);
  				t.loadSubpackage({
  					name: s[i.index++],
  					success(t) {
  						console.info(s[i.index - 1] + ":加载分包 sound 成功"), i.loadSubpackage();
  					},
  					fail(t) {
  						console.info(t);
  					}
  				});
  			} else if (Laya.Browser.onVVMiniGame) {
  				qg.getSystemInfoSync()
  					.platformVersionCode >= 1052 && qg.loadSubpackage({
  						name: "sound",
  						success: function(t) {
  							console.log("VIVO分包成功");
  						},
  						fail: function(t) {
  							console.log("VIVO分包失败");
  						},
  						complete: function() {}
  					});
  			} else if (Laya.Browser.onQGMiniGame) {
  				e = 0;
  				let t = ["res", "fgui", "Prefabs", "Prefabs3"];
  				i = this;
  				for (let s of t) {
  					qg.loadSubpackage({
  						name: s,
  						success(t) {
  							console.info(s + ":加载分包 sound 成功"), 3 == e++ && (i.isDone = !0);
  						},
  						fail(t) {
  							console.info(t);
  						}
  					});
  				}
  			} else if (Laya.Browser.onKGMiniGame) {
  				e = 0;
  				let t = ["res", "fgui", "Prefabs", "Prefabs1", "Prefabs2", "Prefabs3", "Prefabs4"];
  				i = this;
  				for (let s of t) {
  					qg.loadSubpackage({
  						name: s,
  						success(t) {
  							console.info(s + ":加载分包 sound 成功"), 6 == e++ && (i.isDone = !0);
  						},
  						fail(t) {
  							console.info(t);
  						}
  					});
  				}
  			} else if (Laya.Browser.onQQMiniGame) {
  				t = Laya.Browser.window.qq, e = 0;
  				let s = ["res", "fgui", "Prefabs1", "Prefabs2", "Prefabs4"];
  				i = this;
  				for (let a of s) {
  					t.loadSubpackage({
  						name: a,
  						success(t) {
  							console.info(a + ":加载分包 sound 成功"), 4 == e++ && (i.isDone = !0);
  						},
  						fail(t) {
  							console.info(t);
  						}
  					});
  				}
  			} else if (Laya.Browser.onBDMiniGame) {
  				t = Laya.Browser.window.swan;
  				let e = ["sound", "HidenObjects", "Doctor", "Cleaning", "Decoration", "Fishes", "DressUp"];
  				i = this;
  				console.log(t);
  				for (let s of e) {
  					t.loadSubpackage({
  							name: s,
  							success(t) {
  								console.info(s + ":加载分包 sound 成功"), i.isDone = !0;
  							},
  							fail(t) {}
  						})
  						.onProgressUpdate(t => {
  							console.log("下载进度", t.progress), console.log("已经下载的数据长度", t.totalBytesWritten), console.log("预期需要下载的数据总长度", t.totalBytesExpectedToWrite);
  						});
  				}
  			}
  		}
  		loadSubpackage2() {}
  	}
  	class ro extends Laya.Script {
  		constructor() {
  			super();
  		}
  		onEnable() {
  			this.scene = this.owner.scene, console.log("init");
  			var t = Laya.LocalStorage.getItem("privacy");
  			if (null != t && "true" == t) return this.scene.main.visible = !0, void this.EnterSplashScreen();
  			this.scene.name, this.scene.OK.on(Laya.Event.CLICK, this, this.EnterSplashScreen), this.scene.Cancle.on(Laya.Event.CLICK, this, this.ExitGame), this.scene.yinsi.on(Laya.Event.CLICK, this, this.yinsiShow), this.scene.xieyi.on(Laya.Event.CLICK, this, this.xieyiShow), this.scene.okyinsi.on(Laya.Event.CLICK, this, this.backToMain), this.scene.okxieyi.on(Laya.Event.CLICK, this, this.backToMain);
  		}
  		EnterSplashScreen() {
  			"Privacy" == this.scene.name ? (Laya.LocalStorage.setItem("privacy", "true"), Laya.Scene.open("Scene/LwgInit.scene")) : (Laya.stage.event("Privacy"), Laya.LocalStorage.setItem("privacy", "true"), this.scene.main.visible = !1, this.owner.removeSelf());
  		}
  		ExitGame() {
  			console.log("exit game");
  			var t = {};
  			if (Laya.Browser.onQGMiniGame || Laya.Browser.onVVMiniGame) qg.exitApplication(t);
  			else if (Laya.Browser.onQQMiniGame) {
  				Laya.Browser.window.qq.exitMiniProgram(t);
  			}
  		}
  		yinsiShow() {
  			console.log("111"), this.scene.main.visible = !1, this.scene.yonghu1.visible = !0, this.scene.yonghu1.y = 0;
  		}
  		xieyiShow() {
  			console.log("222"), this.scene.main.visible = !1, this.scene.yonghu2.visible = !0, this.scene.yonghu2.y = 0;
  		}
  		backToMain() {
  			this.scene.main.visible = !0, this.scene.yonghu1.visible = !1, this.scene.yonghu2.visible = !1;
  		}
  	}
  	class ho extends ja {
  		constructor() {
  			switch (super(Ws.Splash), this._initUiPack = new Fa("fgui_load/Load"), this._needLoadOtherUIPack = [new Fa(E.fgui_url() + "Main", 3)], this._loadProgressWeight = [10, 1, 5, 2], this._configProgress = 0, this._otherUIProgress = 0, this._resProgress = 0, this._subPackProgress = 0, this._isUIShowed = !1, this._jsonPath = "subpack.json", he.instance.platform) {
  				case u.WX:
  				case u.QQ:
  					this._loadProgressWeight = [10, 1, 5, 2];
  					break;
  				default:
  					this._loadProgressWeight = [1, 1, 5, 2];
  			}
  		}
  		get _loadProgress() {
  			let t = this._loadProgressWeight[0] + this._loadProgressWeight[1] + this._loadProgressWeight[2] + this._loadProgressWeight[3];
  			return (this._loadProgressWeight[0] * this._subPackProgress + this._loadProgressWeight[1] * this._configProgress + this._loadProgressWeight[2] * this._resProgress + this._loadProgressWeight[3] * this._otherUIProgress) / t * 100
  		}
  		createPrivacyScreen() {
  			Laya.loader.create("prefab/PrivacyScreeen.json", Laya.Handler.create(this, function() {
  				this.cellView = Laya.loader.getRes("prefab/PrivacyScreeen.json"), this.cell = new Laya.View, this.cell.createView(this.cellView), console.log(this.cell), this.cell.x -= 200, console.log(Laya.stage);
  				for (let t = 0; t < Laya.stage.numChildren; t++)
  					if (!(Laya.stage.getChildAt(t) instanceof Laya.Scene3D) && Laya.stage.getChildAt(t) instanceof Laya.Sprite && Laya.stage.getChildAt(t)
  						.numChildren > 0) {
  						this.mainIndex = t, Laya.stage.getChildAt(t)
  							.addChild(this.cell);
  						break
  					} this.cell.addComponent(ro);
  			}));
  		}
  		_DoEnter() {
  			Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onQGMiniGame || Laya.Browser.onTTMiniGame ? (this.createPrivacyScreen(), Laya.stage.on("Privacy", this, () => {
  				this._DoEnter2();
  			})) : this._DoEnter2();
  		}
  		_DoEnter2() {
  			const t = new oo;
  			this.tt = t, this.tt.loadSubpackage(), this._OnJsonLoaded();
  		}
  		_OnJsonLoaded() {
  			Na.instance.InitLoadSet(), this._InitUI();
  		}
  		_InitUI() {
  			he.instance.RecordEvent("开始初始化启动界面", null), no.bindAll(), this._OnBindUI();
  			let t = [];
  			this._initUiPack.PushUrl(t), Laya.loader.load(t, Laya.Handler.create(this, this._OnUILoaded));
  		}
  		_OnBindUI() {}
  		_OnUILoaded() {
  			this._initUiPack.AddPackage();
  			let t = new Y;
  			t.needFitScreen = !1, this._ui = q.AddUI(this._splashUIClass, t, _.Main), this._ui.sortingOrder = Number.MAX_SAFE_INTEGER, this._progressUI = this._ui.m_progress, this._progressUI.value = 0, this._isUIShowed = !0, he.instance.RecordEvent("启动界面初始化完成", null), he.instance.platform == u.Oppo && he.instance.reportMonitor(), Na.instance.LoadSubPack(Laya.Handler.create(this, this._OnPackLoaded), Laya.Handler.create(this, this._OnPackProgress, null, !1));
  		}
  		_OnPackProgress(t) {
  			this._subPackProgress = t;
  		}
  		_OnPackLoaded() {
  			Laya.Browser.onQGMiniGame || Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onWeiXin || Laya.Browser.onTTMiniGame ? Laya.timer.frameLoop(1, this, () => {
  				console.log("分包加载完成---", this.tt.isDone), this.tt.isDone && (Laya.timer.clearAll(this), this._StartLoad(), Laya.LocalStorage.setItem("fenbao", "true"));
  			}) : this._StartLoad();
  		}
  		_StartLoad() {
  			if (he.instance.RecordEvent("开始加载配置表", null), this._OnSetLoadConfig(), Ga.needLoadCount <= 0) return this._configProgress = 1, void this._OnConfigLoaded();
  			Ga.StartLoad(Laya.Handler.create(this, this._OnConfigLoaded), Laya.Handler.create(this, this._OnConfigProgress, null, !1));
  		}
  		_OnSetLoadConfig() {}
  		_OnConfigProgress(t) {
  			this._configProgress = t;
  		}
  		_OnConfigLoaded() {
  			if (Aa.instance.initConfig(), he.instance.RecordEvent("开始加载剩余UI资源", null), 0 == this._needLoadOtherUIPack.length) return void this._OnOtherUILoaded();
  			let t = [];
  			for (let e = 0; e < this._needLoadOtherUIPack.length; ++e) {
  				this._needLoadOtherUIPack[e].PushUrl(t);
  			}
  			Laya.loader.load(t, Laya.Handler.create(this, this._OnOtherUILoaded), Laya.Handler.create(this, this._OnOtherUIProgress, null, !1));
  		}
  		_OnOtherUIProgress(t) {
  			this._otherUIProgress = t;
  		}
  		_OnOtherUILoaded() {
  			(Laya.Browser.onQGMiniGame || Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onWeiXin || Laya.Browser.onTTMiniGame) && "true" != Laya.LocalStorage.getItem("fenbao2") ? this.tt.downloadUnzip() : this._onOtherUILoaded2(), Laya.Browser.onQGMiniGame || Laya.Browser.onQQMiniGame || Laya.Browser.onKGMiniGame || Laya.Browser.onTTMiniGame ? Laya.timer.frameLoop(1, this, () => {
  				this.tt.isDone2 && (Laya.LocalStorage.setItem("fenbao2", "true"), Laya.timer.clearAll(this), this._onOtherUILoaded2());
  			}) : this._onOtherUILoaded2();
  		}
  		_onOtherUILoaded2() {
  			he.instance.RecordEvent("开始加载剩余游戏资源", null);
  			for (let t = 0; t < this._needLoadOtherUIPack.length; ++t) {
  				let e = this._needLoadOtherUIPack[t];
  				e.AddPackage(), console.log(e, "已加载");
  			}
  			this.setPackageItemExtension();
  			let t = [];
  			if (this._OnGameResPrepared(t), 0 == t.length) return this._resProgress = 1, void this._OnResLoaded();
  			Laya.loader.create(t, Laya.Handler.create(this, this._OnResLoaded), Laya.Handler.create(this, this._OnResProgress, null, !1));
  		}
  		setPackageItemExtension() {
  			let t = Da.comToClass;
  			for (const i in t) e.UIObjectFactory.setPackageItemExtension(e.UIPackage.getItemURL("Main", i), t[i]);
  		}
  		_OnGameResPrepared(t) {}
  		_OnResProgress(t) {
  			this._resProgress = t;
  		}
  		_OnResLoaded() {
  			this._progressUI.value = 100, he.instance.RecordEvent("进入游戏", null), this._OnGameResLoaded();
  		}
  		_OnGameResLoaded() {}
  		_DoRunning() {
  			this._isUIShowed && (this._progressUI.value = this._loadProgress, this._ui.m_progress.m_flash.x = 8 * this._loadProgress, this._ui.m_progress.m_lu.x = 8 * this._loadProgress);
  		}
  		_DoExit() {
  			console.log("splash UI", this._ui);
  			let t = this._ui.parent;
  			for (let e = 0; e < t._children.length; e++) console.log("销毁", e), t.getChildAt(e)
  				.dispose();
  		}
  	}
  	class lo extends fgui.GProgressBar {
  		static createInstance() {
  			return fgui.UIPackage.createObject("Load", "progress_simple")
  		}
  		onConstruct() {
  			this.m_lu = this.getChildAt(3), this.m_flash = this.getChildAt(4);
  		}
  	}
  	lo.URL = "ui://n3oedpp6nihr1";
  	class co {
  		static bindAll() {
  			fgui.UIObjectFactory.setExtension(ss.URL, ss), fgui.UIObjectFactory.setExtension(lo.URL, lo);
  		}
  	}
  	class uo extends e.GProgressBar {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "bossBar")
  		}
  		onConstruct() {
  			this.m_bossName = this.getControllerAt(0);
  		}
  	}
  	uo.URL = "ui://kk7g5mmm9boc8x";
  	class _o extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "shou_huadong")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	_o.URL = "ui://kk7g5mmmag0p9h";
  	class mo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "parts")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_icon = this.getChildAt(1), this.m_titleIcon = this.getChildAt(2), this.m_mask = this.getChildAt(3), this.m_lock = this.getChildAt(4);
  		}
  	}
  	mo.URL = "ui://kk7g5mmmbe8pbd";
  	class po extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "buffCmp")
  		}
  		onConstruct() {
  			this.m_hpIcon = this.getChildAt(0), this.m_hpText = this.getChildAt(1), this.m_speedIcon = this.getChildAt(2), this.m_speedText = this.getChildAt(3), this.m_weaponIcon = this.getChildAt(4), this.m_weaponText = this.getChildAt(5), this.m_normalAtt = this.getChildAt(6), this.m_normalText = this.getChildAt(7);
  		}
  	}
  	po.URL = "ui://kk7g5mmmbe8pbe";
  	class go extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "jinbao")
  		}
  		onConstruct() {
  			this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	go.URL = "ui://kk7g5mmmc4wpau";
  	class fo extends e.GProgressBar {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "deerBlood")
  		}
  		onConstruct() {
  			this.m_stat = this.getControllerAt(0);
  		}
  	}
  	fo.URL = "ui://kk7g5mmmd7qvy";
  	class yo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "GameUI")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_policeType = this.getControllerAt(1), this.m_task = this.getControllerAt(2), this.m_touchView = this.getChildAt(0), this.m_bossBar = this.getChildAt(1), this.m_flipCom = this.getChildAt(2), this.m_att = this.getChildAt(3), this.m_longNeck = this.getChildAt(4), this.m_jump = this.getChildAt(5), this.m_bs = this.getChildAt(6), this.m_rockerCom = this.getChildAt(7), this.m_changeDeerBtn = this.getChildAt(8), this.m_halloBtn = this.getChildAt(9), this.m_danceBtn = this.getChildAt(10), this.m_mechaForwardBtn = this.getChildAt(11), this.m_mechaRightBtn = this.getChildAt(12), this.m_mechaBackBtn = this.getChildAt(13), this.m_mechaLeftBtn = this.getChildAt(14), this.m_normal = this.getChildAt(15), this.m_backBtn = this.getChildAt(16), this.m_forwardBtn = this.getChildAt(17), this.m_leftBtn = this.getChildAt(18), this.m_rightBtn = this.getChildAt(19), this.m_car = this.getChildAt(20), this.m_riskCom = this.getChildAt(21), this.m_dropOrCarCom = this.getChildAt(22), this.m_pauseBtn = this.getChildAt(23), this.m_center = this.getChildAt(24), this.m_cross1 = this.getChildAt(25), this.m_cross = this.getChildAt(26), this.m_dropWeapon = this.getChildAt(27), this.m_getUp = this.getChildAt(28), this.m_deerBlood = this.getChildAt(29), this.m_countDown = this.getChildAt(47), this.m_taskPro = this.getChildAt(48), this.m_warningTip = this.getChildAt(49), this.m_des = this.getChildAt(50), this.m_winComa = this.getChildAt(52), this.m_btn_skip = this.getChildAt(54), this.m_tishiView = this.getChildAt(55), this.m_jiangli = this.getChildAt(56), this.m_jiangliText = this.getChildAt(57), this.m_warningAni = this.getTransitionAt(0), this.m_attacked = this.getTransitionAt(1), this.m_winCom = this.getTransitionAt(2), this.m_show = this.getTransitionAt(3);
  		}
  	}
  	yo.URL = "ui://kk7g5mmmdb64o";
  	class Co extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "winCom")
  		}
  		onConstruct() {
  			this.m_t0 = this.getTransitionAt(0), this.m_t1 = this.getTransitionAt(1);
  		}
  	}
  	Co.URL = "ui://kk7g5mmmecqo2r";
  	class wo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "riskCom")
  		}
  		onConstruct() {
  			this.m_lv = this.getControllerAt(0), this.m_value4 = this.getChildAt(1), this.m_value3 = this.getChildAt(3), this.m_value2 = this.getChildAt(5), this.m_value1 = this.getChildAt(7), this.m_value0 = this.getChildAt(9);
  		}
  	}
  	wo.URL = "ui://kk7g5mmmezkb24";
  	class Lo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "getSkinCmp")
  		}
  		onConstruct() {
  			this.m_bg = this.getChildAt(0), this.m_closeBtn = this.getChildAt(2), this.m_titleIcon = this.getChildAt(3), this.m_partIcon = this.getChildAt(5), this.m_partNameIcon = this.getChildAt(6), this.m_buffIcon = this.getChildAt(7), this.m_buffDesc = this.getChildAt(8), this.m_coinLock = this.getChildAt(9), this.m_adLock = this.getChildAt(10);
  		}
  	}
  	Lo.URL = "ui://kk7g5mmmf76wcy";
  	class bo extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "skinCoinLock")
  		}
  		onConstruct() {
  			this.m_coinNum = this.getChildAt(1);
  		}
  	}
  	bo.URL = "ui://kk7g5mmmf76wcz";
  	class So extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "TestRT")
  		}
  		onConstruct() {
  			this.m_img_display = this.getChildAt(0), this.m_btn_back = this.getChildAt(1);
  		}
  	}
  	So.URL = "ui://kk7g5mmmhlhem";
  	class ko extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "cross1")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_cross1 = this.getChildAt(0), this.m_fill = this.getChildAt(2);
  		}
  	}
  	ko.URL = "ui://kk7g5mmmklawao";
  	class vo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "neckCom")
  		}
  		onConstruct() {
  			this.m_head = this.getChildAt(1);
  		}
  	}
  	vo.URL = "ui://kk7g5mmml0y750";
  	class Io extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "Slider1_grip")
  		}
  		onConstruct() {
  			this.m_bar = this.getChildAt(0);
  		}
  	}
  	Io.URL = "ui://kk7g5mmmlgqv3p";
  	class Po extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "dropOrCarCom")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_dropOff = this.getChildAt(2);
  		}
  	}
  	Po.URL = "ui://kk7g5mmmnbeju";
  	class Ao extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "breakLvBtn")
  		}
  		onConstruct() {
  			this.m_mask = this.getChildAt(0);
  		}
  	}
  	Ao.URL = "ui://kk7g5mmmnelp2z";
  	class Oo extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "lvBtn")
  		}
  		onConstruct() {
  			this.m_mask = this.getChildAt(0);
  		}
  	}
  	Oo.URL = "ui://kk7g5mmmnelp34";
  	class Ro extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "returnBtn")
  		}
  		onConstruct() {
  			this.m_image = this.getChildAt(0);
  		}
  	}
  	Ro.URL = "ui://kk7g5mmmnoov9d";
  	class Do extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "restartBtn")
  		}
  		onConstruct() {
  			this.m_image = this.getChildAt(0);
  		}
  	}
  	Do.URL = "ui://kk7g5mmmnoov9f";
  	class xo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "dropWeapon")
  		}
  		onConstruct() {
  			this.m_pro = this.getChildAt(2);
  		}
  	}
  	xo.URL = "ui://kk7g5mmmoigv1e";
  	class Bo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "RockerItem")
  		}
  		onConstruct() {
  			this.m_knob = this.getChildAt(1);
  		}
  	}
  	Bo.URL = "ui://kk7g5mmmoigv1k";
  	class Mo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "figerCom")
  		}
  		onConstruct() {
  			this.m_guide = this.getTransitionAt(0);
  		}
  	}
  	Mo.URL = "ui://kk7g5mmmopto7v";
  	class To extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "tishiView")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0), this.m_bg = this.getChildAt(0), this.m_closeBtn = this.getChildAt(6);
  		}
  	}
  	To.URL = "ui://kk7g5mmmrnuaav";
  	class Uo extends e.GProgressBar {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "progress_simple")
  		}
  		onConstruct() {
  			this.m_panNumber = this.getChildAt(2), this.m_flash = this.getChildAt(3);
  		}
  	}
  	Uo.URL = "ui://kk7g5mmmtmisd2";
  	class Vo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "neckLongCom")
  		}
  		onConstruct() {
  			this.m_c1 = this.getControllerAt(0);
  		}
  	}
  	Vo.URL = "ui://kk7g5mmmubdir";
  	class Eo extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "attCom")
  		}
  		onConstruct() {
  			this.m_type = this.getControllerAt(0);
  		}
  	}
  	Eo.URL = "ui://kk7g5mmmubdis";
  	class Go extends e.GComponent {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "Test")
  		}
  		onConstruct() {
  			this.m_img_bg = this.getChildAt(0), this.m_btn_back = this.getChildAt(1);
  		}
  	}
  	Go.URL = "ui://kk7g5mmmyllkl";
  	class jo extends e.GButton {
  		constructor() {
  			super();
  		}
  		static createInstance() {
  			return e.UIPackage.createObject("Main", "btn_skip")
  		}
  		onConstruct() {
  			this.m_t0 = this.getTransitionAt(0);
  		}
  	}
  	jo.URL = "ui://kk7g5mmmylxt9b";
  	class No {
  		static bindAll() {
  			e.UIObjectFactory.setPackageItemExtension(uo.URL, uo), e.UIObjectFactory.setPackageItemExtension(_o.URL, _o), e.UIObjectFactory.setPackageItemExtension(Xi.URL, Xi), e.UIObjectFactory.setPackageItemExtension(mo.URL, mo), e.UIObjectFactory.setPackageItemExtension(po.URL, po), e.UIObjectFactory.setPackageItemExtension(go.URL, go), e.UIObjectFactory.setPackageItemExtension(fo.URL, fo), e.UIObjectFactory.setPackageItemExtension(yo.URL, yo), e.UIObjectFactory.setPackageItemExtension(Yi.URL, Yi), e.UIObjectFactory.setPackageItemExtension(Co.URL, Co), e.UIObjectFactory.setPackageItemExtension(wo.URL, wo), e.UIObjectFactory.setPackageItemExtension(Lo.URL, Lo), e.UIObjectFactory.setPackageItemExtension(bo.URL, bo), e.UIObjectFactory.setPackageItemExtension(So.URL, So), e.UIObjectFactory.setPackageItemExtension(n.URL, n), e.UIObjectFactory.setPackageItemExtension(Fi.URL, Fi), e.UIObjectFactory.setPackageItemExtension(ko.URL, ko), e.UIObjectFactory.setPackageItemExtension(ba.URL, ba), e.UIObjectFactory.setPackageItemExtension(vo.URL, vo), e.UIObjectFactory.setPackageItemExtension(Ni.URL, Ni), e.UIObjectFactory.setPackageItemExtension(Io.URL, Io), e.UIObjectFactory.setPackageItemExtension(Ki.URL, Ki), e.UIObjectFactory.setPackageItemExtension(Ra.URL, Ra), e.UIObjectFactory.setPackageItemExtension(Po.URL, Po), e.UIObjectFactory.setPackageItemExtension(Ao.URL, Ao), e.UIObjectFactory.setPackageItemExtension(Oo.URL, Oo), e.UIObjectFactory.setPackageItemExtension(Ro.URL, Ro), e.UIObjectFactory.setPackageItemExtension(Do.URL, Do), e.UIObjectFactory.setPackageItemExtension(xo.URL, xo), e.UIObjectFactory.setPackageItemExtension(Bo.URL, Bo), e.UIObjectFactory.setPackageItemExtension(Hi.URL, Hi), e.UIObjectFactory.setPackageItemExtension(Mo.URL, Mo), e.UIObjectFactory.setPackageItemExtension(To.URL, To), e.UIObjectFactory.setPackageItemExtension(Uo.URL, Uo), e.UIObjectFactory.setPackageItemExtension(Vo.URL, Vo), e.UIObjectFactory.setPackageItemExtension(Eo.URL, Eo), e.UIObjectFactory.setPackageItemExtension(Qe.URL, Qe), e.UIObjectFactory.setPackageItemExtension(ze.URL, ze), e.UIObjectFactory.setPackageItemExtension(Go.URL, Go), e.UIObjectFactory.setPackageItemExtension(jo.URL, jo);
  		}
  	}! function(t) {
  		t.config = class {}, t.path = "res/config/EggConfig.json";
  	}(Ys || (Ys = {})),
  	function(t) {
  		t.config = class {}, t.path = "res/config/GameConst.json";
  	}(qs || (qs = {}));
  	class Fo extends ho {
  		constructor() {
  			super(), this._splashUIClass = ss;
  		}
  		_OnBindUI() {
  			co.bindAll(), No.bindAll();
  		}
  		_OnSetLoadConfig() {
  			Ga.AddConfig(b), Ga.AddConfig(qs), Ga.AddConfig(g), Ga.AddConfig(Ys), Ga.AddConfig(m), Ga.AddConfig(Li), Ga.AddConfig(y), Ga.AddConfig(I), Ga.AddConfig(P), Ga.AddConfig(js), Ga.AddConfig(v), Ga.AddConfig(Me), Ga.AddConfig(A), Ga.AddConfig(k), Ga.AddConfig(De);
  		}
  		_OnGameResPrepared(t) {
  			Oa.InitAll(), oi.instance.Preload(t), Ce.instance.Preload(t);
  		}
  		_OnGameResLoaded() {
  			return __awaiter(this, void 0, void 0, function*() {
  				yield Ce.instance.WarmEffects(), this.isFinished = !0, this.nextState = Ws.Main;
  			})
  		}
  	}
  	class Ho extends ja {
  		constructor() {
  			super(Ws.Main);
  		}
  		_DoEnter() {
  			Da.support2D && (Laya.Physics && Laya.Physics.enable(), Laya.PhysicsDebugDraw.enable()), Da.support3D && Pa.instance.enterGame(), os.instance.Show();
  		}
  	}
  	new class {
  		constructor(e) {
  			this._mainLogic = new e, Laya.MouseManager.multiTouchEnabled = !0, Laya.Shader3D.debugMode = !0;
  			let i = () => {
  				switch (this._mainLogic.screenOrientation) {
  					case t.Landscape:
  						Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL;
  						break;
  					case t.Portrait:
  						Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL;
  						break;
  					default:
  						console.error("未处理的屏幕初始化方向", this._mainLogic.screenOrientation);
  				}
  				Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO, Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE, Laya.stage.alignH = Laya.Stage.ALIGN_CENTER, Laya.URL.exportSceneToJson = !0, Da.enableStat && Laya.Stat.show(), this._mainLogic.InitGame();
  				Advertisement.initVal();
  			};
  			if (Da.support3D) {
  				let t = new Config3D;
  				t.octreeCulling = !1, t.enableMultiLight = !1, t.isAntialias = !0, Laya3D.init(this._mainLogic.designWidth, this._mainLogic.designHeight, t, Laya.Handler.create(null, () => {
  					i();
  				}));
  			} else Laya.init(this._mainLogic.designWidth, this._mainLogic.designHeight), i();
  			// this.onfenbao1();
  		}
  		onfenbao1()
          {
              let self = this;
              const loadTaskB = qg.loadSubpackage({
                  name: 'res',
                         success: function (data) {
                             self.onfenbao2();
                         },
                         fail: function (err) {
                                console.info('加载分包 bao3 失败', err);
                                self.onfenbao1();
                         },
                         complete: function(){
                          console.info('++++++++++++241234');
                         // 不管分包加载成功还是失败都会执行此回调
                        }
                  });
          }
          onfenbao2()
          {
              let self = this;
              const loadTaskB = qg.loadSubpackage({
                  name: 'Prefabs3',
                         success: function (data) {
                             self.onfenbao3();
                         },
                         fail: function (err) {
                                console.info('加载分包 bao2 失败', err);
                                self.onfenbao2();
                         },
                         complete: function(){
                          console.info('++++++++++++241234');
                         // 不管分包加载成功还是失败都会执行此回调
                        }
                  });
          }
          onfenbao3() {
              let self = this;
              const loadTaskB = qg.loadSubpackage({
                  name: 'Prefabs',
                  success: function (data) {
                      console.info('加载分包 bao3 成功');

                      //-------
                      let i = () => {
  						switch (self._mainLogic.screenOrientation) {
  							case t.Landscape:
  								Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL;
  								break;
  							case t.Portrait:
  								Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL;
  								break;
  							default:
  								console.error("未处理的屏幕初始化方向", self._mainLogic.screenOrientation);
  						}
  						Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO, Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE, Laya.stage.alignH = Laya.Stage.ALIGN_CENTER, Laya.URL.exportSceneToJson = !0, Da.enableStat && Laya.Stat.show(), self._mainLogic.InitGame();
  						Advertisement.initVal();
  						
  					};
  					if (Da.support3D) {
  						let t = new Config3D;
  						t.octreeCulling = !1, t.enableMultiLight = !1, t.isAntialias = !0, Laya3D.init(self._mainLogic.designWidth, self._mainLogic.designHeight, t, Laya.Handler.create(null, () => {
  							i();
  						}));
  					} else Laya.init(self._mainLogic.designWidth, self._mainLogic.designHeight), i();
                  },
                  fail: function (err) {
                      console.info('加载分包 bao3 失败', err);
                      self.onfenbao3();
                  },
                  complete: function () {
                      console.info('++++++++++++241234');
                      // 不管分包加载成功还是失败都会执行此回调
                  }
              }
              );
          }
  		
  	}(class extends Ea {
  		constructor() {
  			super(), this._appId = "ttbe90c82d21ba845b", this._resVersion = "0515", this._gameName = "p_ltg";
  		}
  		_HandleInitPlatform(t, e) {
  			switch (t) {
  				case u.Web:
  					console.log("web平台,默认框架测试数据"), this._appId = "88888888";
  					break;
  				case u.TT:
  					this._resVersion = "v0.0.2", e.appId = "ttd60ba0b64931e10f", e.bannerId = "1bhbt9cjpr9a35bd30", e.rewardVideoId = "6tnnb4e3em519ja6d2", e.interstitialId = "8oe7qjl1pon2g930jf", Na.instance.SetRemoteUrl(`https://hs.yz1.com/res/down/public/${this._gameName}/${this._resVersion}_tt/`);
  					break;
  				case u.WX:
  					this._resVersion = "v0.0.1", e.appId = "wx7bcca975ff17ebe9", e.bannerId = "adunit-11a2571806b5fc5c", e.rewardVideoId = "adunit-fa6dd5b431c41ceb", e.interstitialId = "adunit-abe9d252f3a3956c", Na.instance.SetRemoteUrl(`https://hs.y61.com/res/down/public/${this._gameName}/${this._resVersion}_wx/`);
  					break;
  				case u.Oppo:
  					this._resVersion = "0710", e.appId = "30302891", e.appKey = "6fyGQ6x2pzk8W84c0s04ows00", e.bannerId = "195984", e.rewardVideoId = "195985", e.nativeBannerIds = ["195994", "195995", "195998"], e.nativeIconIds = ["195986", "196003"], e.nativeinpageIds = ["195999", "196002", "196003"], Na.instance.SetRemoteUrl(`https://hs.yz0.com/res/down/public/${this._gameName}/${this._resVersion}_oppo/`);
  					break;
  				default:
  					console.error("未处理平台内容", he.platformStr, "请在MainStart中添加处理");
  			}
  			e.appId && (this._appId = e.appId);
  		}
  		_HandleSDK() {
  			switch (he.instance.platform) {
  				case u.WX:
  				case u.Web:
  				case u.Oppo:
  				case u.TT:
  					K.CreateInstace(Va, "yfct", this._appId);
  			}
  		}
  		_InitFsm() {
  			this._fsm.Add(new Fo), this._fsm.Add(new Ho);
  		}
  	});
  }();

}());
